From 82d8fdb783bf82bf5c883885ea30c940b20e723b Mon Sep 17 00:00:00 2001 From: buqiyuan Date: Fri, 5 Apr 2024 20:14:15 +0800 Subject: [PATCH] Update ghPages 63721b3b9b51a19285d6c83c11dc7098e4c95b02 --- .nojekyll | 0 assets/404-B1OsPDbN.js | 1 + assets/404-Ccf55FSH.css | 1 + assets/404-HGF6Q5qM.gif | Bin 0 -> 164227 bytes assets/ApiSelect-BY9BsMzM.css | 1 + ...ue_type_script_setup_true_lang-C4dv5akm.js | 13 + assets/AvatarUpload-B06LZjT5.js | 1 + ...ue_type_script_setup_true_lang-BBAPnjEy.js | 1 + assets/DeptTree-Bay4_0Hy.js | 1 + assets/DeptTree-CVDsyyWk.css | 1 + assets/about-DdIj9yhf.js | 8 + assets/analysis-DNySu1oN.svg | 1 + assets/antdv-CA3HmnGF.js | 457 ++ assets/antdv-Cm_1FYRq.css | 1 + assets/button-8rpOV9mS.js | 1 + assets/columns-QsbRxPAv.js | 1 + assets/columns-hGlKOK8p.js | 1 + assets/common-Cs_BZJVP.js | 1 + assets/comp-not-found-D70RKVnQ.js | 1 + assets/createContextMenu-CabejWWU.js | 1 + assets/custom-modal-Coj6FCnc.js | 1 + assets/dateUtil-CLVblcqH.js | 1 + assets/dynamic-table-BQjCxF2y.css | 1 + assets/dynamic-table-D_nTPUiI.js | 104 + assets/en-D5M7dULx.js | 1 + assets/file-operate-button-list-C4kIbcZg.js | 1 + ...ue_type_script_setup_true_lang-DoYY5hJq.js | 1 + assets/file-preview-drawer-CDPxoUrR.js | 1 + ...ue_type_script_setup_true_lang-B65YCOxq.js | 1 + assets/file-upload-drawer-P5Jyzo4g.js | 1 + ...ue_type_script_setup_true_lang-JocSrPFm.js | 1 + assets/hero-D9-Ux1OM.js | 1 + assets/heroInfo-BLl5eolZ.css | 1 + assets/heroInfo-D4smN-Wd.js | 1 + assets/huawei-charge-BQW_wHW1.css | 1 + assets/huawei-charge-Bss6kDPo.js | 1 + assets/index-4XSHMzfV.css | 1 + assets/index-B190qUs9.js | 1 + assets/index-B9vsgMem.js | 1 + assets/index-BLgoZEx9.js | 1 + assets/index-BMGn7lG7.js | 1 + assets/index-BOynXUZK.js | 1 + assets/index-BU4CKU8u.js | 1 + assets/index-BYC9TJbH.js | 1 + assets/index-BfaAYYKt.js | 265 ++ assets/index-Bim9QLTv.css | 1 + assets/index-BjqVZB_B.css | 1 + assets/index-BretoAFT.js | 1 + assets/index-Bsl7xV-M.js | 1 + assets/index-C0s1KjFx.css | 1 + assets/index-C4hwjCib.css | 1 + assets/index-C6RfX9Ht.js | 1 + assets/index-C8l0bQRJ.js | 1 + assets/index-C9ZwpWbN.css | 1 + assets/index-CDgH2F_h.js | 1 + assets/index-CPnd3GcN.js | 31 + assets/index-CRuGszvn.js | 1 + assets/index-CkvRAjRT.css | 1 + assets/index-Co-CN6BJ.js | 1 + assets/index-Cplhzeoj.css | 1 + assets/index-DD9rBWB7.css | 1 + assets/index-DMl8i_tO.js | 1 + assets/index-DYh_Kt4L.js | 80 + assets/index-DaQtkMDS.js | 1 + assets/index-Dh63Mb8b.js | 1 + assets/index-DhAqDJxd.js | 1 + assets/index-DpkfR9M9.css | 1 + assets/index-DsESwUd-.js | 1 + assets/index-DsdHwOnw.js | 1 + assets/index-Du8Yb6v1.js | 1 + assets/index-GMVB7fFo.js | 1 + assets/index-GTgkPUrI.js | 1 + assets/index-HkihZAi4.js | 1 + assets/index-J85A-avW.css | 1 + assets/index-XVu8KlAH.js | 1 + assets/index-dMb4ADR-.js | 1 + assets/index-jPlsseCV.js | 1 + assets/index-nOP2swfo.js | 1 + assets/index-sxiFJCm3.css | 1 + assets/index-yecx3EJq.js | 1 + ...ue_vue_type_style_index_0_lang-BojqjIZ9.js | 1 + assets/input-number-range-BryjMukN.js | 1 + ...ue_type_script_setup_true_lang-ScYJYJ0O.js | 1 + assets/is-bed24ebq.js | 1 + assets/login-BPsOMwzg.svg | 68 + assets/logo-BSiV-LMt.png | Bin 0 -> 60745 bytes assets/logo-DzsBprQM.js | 1 + assets/manage-m9S-s5h8.js | 1 + assets/overview-0xUs1e88.css | 1 + assets/overview-1xyNrddl.js | 53 + assets/overview-header-item-BTKOmu3y.js | 1 + assets/overview-header-item-NCWjCQCF.css | 1 + assets/route-one-DuMuzcEA.js | 1 + assets/route-three-DgK4R5fZ.js | 1 + assets/route-two-BeGKDvBB.js | 1 + ...ue_type_script_setup_true_lang-DYh3o6wW.js | 1 + assets/settings-gp5ZFXBX.js | 1 + assets/sortable.esm-BvVcoYKu.js | 7 + assets/tabsView-D314N5Ym.js | 1 + assets/tinymce.min-BLJv-IOT.js | 4 + assets/upload-modal-yr-ULc6N.js | 1 + ...ue_type_script_setup_true_lang-Y1tTIcR3.js | 1 + assets/useForm-CwEGkVLb.js | 1 + assets/useFormModal-DA4o0YFS.js | 1 + assets/useModal-tDF6160r.js | 1 + assets/vue-Dbi1xauY.js | 25 + assets/xiaomi-charge-DfeZQ_aL.css | 1 + assets/xiaomi-charge-Xch04TcS.js | 1 + assets/zh_CN-C6ePmZhp.js | 1 + assets/zh_CN-D2ZaekyI.js | 428 ++ favicon.ico | Bin 0 -> 4286 bytes iconfont.js | 1 + index.html | 18 + mockServiceWorker.js | 912 ++++ .../skins/content/default/content.css | 61 + .../skins/content/default/content.js | 2 + .../skins/content/default/content.min.css | 1 + .../skins/ui/oxide-dark/content.css | 766 ++++ .../skins/ui/oxide-dark/content.inline.css | 779 ++++ .../skins/ui/oxide-dark/content.inline.js | 2 + .../ui/oxide-dark/content.inline.min.css | 1 + .../skins/ui/oxide-dark/content.js | 2 + .../skins/ui/oxide-dark/content.min.css | 1 + tinymce-resource/skins/ui/oxide-dark/skin.css | 3766 +++++++++++++++++ tinymce-resource/skins/ui/oxide-dark/skin.js | 2 + .../skins/ui/oxide-dark/skin.min.css | 1 + .../skins/ui/oxide-dark/skin.shadowdom.css | 30 + .../skins/ui/oxide-dark/skin.shadowdom.js | 2 + .../ui/oxide-dark/skin.shadowdom.min.css | 1 + tinymce-resource/skins/ui/oxide/content.css | 785 ++++ .../skins/ui/oxide/content.inline.css | 779 ++++ .../skins/ui/oxide/content.inline.js | 2 + .../skins/ui/oxide/content.inline.min.css | 1 + tinymce-resource/skins/ui/oxide/content.js | 2 + .../skins/ui/oxide/content.min.css | 1 + tinymce-resource/skins/ui/oxide/skin.css | 3763 ++++++++++++++++ tinymce-resource/skins/ui/oxide/skin.js | 2 + tinymce-resource/skins/ui/oxide/skin.min.css | 1 + .../skins/ui/oxide/skin.shadowdom.css | 30 + .../skins/ui/oxide/skin.shadowdom.js | 2 + .../skins/ui/oxide/skin.shadowdom.min.css | 1 + 141 files changed, 13354 insertions(+) create mode 100644 .nojekyll create mode 100644 assets/404-B1OsPDbN.js create mode 100644 assets/404-Ccf55FSH.css create mode 100644 assets/404-HGF6Q5qM.gif create mode 100644 assets/ApiSelect-BY9BsMzM.css create mode 100644 assets/ApiSelect.vue_vue_type_script_setup_true_lang-C4dv5akm.js create mode 100644 assets/AvatarUpload-B06LZjT5.js create mode 100644 assets/AvatarUpload.vue_vue_type_script_setup_true_lang-BBAPnjEy.js create mode 100644 assets/DeptTree-Bay4_0Hy.js create mode 100644 assets/DeptTree-CVDsyyWk.css create mode 100644 assets/about-DdIj9yhf.js create mode 100644 assets/analysis-DNySu1oN.svg create mode 100644 assets/antdv-CA3HmnGF.js create mode 100644 assets/antdv-Cm_1FYRq.css create mode 100644 assets/button-8rpOV9mS.js create mode 100644 assets/columns-QsbRxPAv.js create mode 100644 assets/columns-hGlKOK8p.js create mode 100644 assets/common-Cs_BZJVP.js create mode 100644 assets/comp-not-found-D70RKVnQ.js create mode 100644 assets/createContextMenu-CabejWWU.js create mode 100644 assets/custom-modal-Coj6FCnc.js create mode 100644 assets/dateUtil-CLVblcqH.js create mode 100644 assets/dynamic-table-BQjCxF2y.css create mode 100644 assets/dynamic-table-D_nTPUiI.js create mode 100644 assets/en-D5M7dULx.js create mode 100644 assets/file-operate-button-list-C4kIbcZg.js create mode 100644 assets/file-operate-button-list.vue_vue_type_script_setup_true_lang-DoYY5hJq.js create mode 100644 assets/file-preview-drawer-CDPxoUrR.js create mode 100644 assets/file-preview-drawer.vue_vue_type_script_setup_true_lang-B65YCOxq.js create mode 100644 assets/file-upload-drawer-P5Jyzo4g.js create mode 100644 assets/file-upload-drawer.vue_vue_type_script_setup_true_lang-JocSrPFm.js create mode 100644 assets/hero-D9-Ux1OM.js create mode 100644 assets/heroInfo-BLl5eolZ.css create mode 100644 assets/heroInfo-D4smN-Wd.js create mode 100644 assets/huawei-charge-BQW_wHW1.css create mode 100644 assets/huawei-charge-Bss6kDPo.js create mode 100644 assets/index-4XSHMzfV.css create mode 100644 assets/index-B190qUs9.js create mode 100644 assets/index-B9vsgMem.js create mode 100644 assets/index-BLgoZEx9.js create mode 100644 assets/index-BMGn7lG7.js create mode 100644 assets/index-BOynXUZK.js create mode 100644 assets/index-BU4CKU8u.js create mode 100644 assets/index-BYC9TJbH.js create mode 100644 assets/index-BfaAYYKt.js create mode 100644 assets/index-Bim9QLTv.css create mode 100644 assets/index-BjqVZB_B.css create mode 100644 assets/index-BretoAFT.js create mode 100644 assets/index-Bsl7xV-M.js create mode 100644 assets/index-C0s1KjFx.css create mode 100644 assets/index-C4hwjCib.css create mode 100644 assets/index-C6RfX9Ht.js create mode 100644 assets/index-C8l0bQRJ.js create mode 100644 assets/index-C9ZwpWbN.css create mode 100644 assets/index-CDgH2F_h.js create mode 100644 assets/index-CPnd3GcN.js create mode 100644 assets/index-CRuGszvn.js create mode 100644 assets/index-CkvRAjRT.css create mode 100644 assets/index-Co-CN6BJ.js create mode 100644 assets/index-Cplhzeoj.css create mode 100644 assets/index-DD9rBWB7.css create mode 100644 assets/index-DMl8i_tO.js create mode 100644 assets/index-DYh_Kt4L.js create mode 100644 assets/index-DaQtkMDS.js create mode 100644 assets/index-Dh63Mb8b.js create mode 100644 assets/index-DhAqDJxd.js create mode 100644 assets/index-DpkfR9M9.css create mode 100644 assets/index-DsESwUd-.js create mode 100644 assets/index-DsdHwOnw.js create mode 100644 assets/index-Du8Yb6v1.js create mode 100644 assets/index-GMVB7fFo.js create mode 100644 assets/index-GTgkPUrI.js create mode 100644 assets/index-HkihZAi4.js create mode 100644 assets/index-J85A-avW.css create mode 100644 assets/index-XVu8KlAH.js create mode 100644 assets/index-dMb4ADR-.js create mode 100644 assets/index-jPlsseCV.js create mode 100644 assets/index-nOP2swfo.js create mode 100644 assets/index-sxiFJCm3.css create mode 100644 assets/index-yecx3EJq.js create mode 100644 assets/index.vue_vue_type_style_index_0_lang-BojqjIZ9.js create mode 100644 assets/input-number-range-BryjMukN.js create mode 100644 assets/input-number-range.vue_vue_type_script_setup_true_lang-ScYJYJ0O.js create mode 100644 assets/is-bed24ebq.js create mode 100644 assets/login-BPsOMwzg.svg create mode 100644 assets/logo-BSiV-LMt.png create mode 100644 assets/logo-DzsBprQM.js create mode 100644 assets/manage-m9S-s5h8.js create mode 100644 assets/overview-0xUs1e88.css create mode 100644 assets/overview-1xyNrddl.js create mode 100644 assets/overview-header-item-BTKOmu3y.js create mode 100644 assets/overview-header-item-NCWjCQCF.css create mode 100644 assets/route-one-DuMuzcEA.js create mode 100644 assets/route-three-DgK4R5fZ.js create mode 100644 assets/route-two-BeGKDvBB.js create mode 100644 assets/schema-form.vue_vue_type_script_setup_true_lang-DYh3o6wW.js create mode 100644 assets/settings-gp5ZFXBX.js create mode 100644 assets/sortable.esm-BvVcoYKu.js create mode 100644 assets/tabsView-D314N5Ym.js create mode 100644 assets/tinymce.min-BLJv-IOT.js create mode 100644 assets/upload-modal-yr-ULc6N.js create mode 100644 assets/upload-modal.vue_vue_type_script_setup_true_lang-Y1tTIcR3.js create mode 100644 assets/useForm-CwEGkVLb.js create mode 100644 assets/useFormModal-DA4o0YFS.js create mode 100644 assets/useModal-tDF6160r.js create mode 100644 assets/vue-Dbi1xauY.js create mode 100644 assets/xiaomi-charge-DfeZQ_aL.css create mode 100644 assets/xiaomi-charge-Xch04TcS.js create mode 100644 assets/zh_CN-C6ePmZhp.js create mode 100644 assets/zh_CN-D2ZaekyI.js create mode 100644 favicon.ico create mode 100644 iconfont.js create mode 100644 index.html create mode 100644 mockServiceWorker.js create mode 100644 tinymce-resource/skins/content/default/content.css create mode 100644 tinymce-resource/skins/content/default/content.js create mode 100644 tinymce-resource/skins/content/default/content.min.css create mode 100644 tinymce-resource/skins/ui/oxide-dark/content.css create mode 100644 tinymce-resource/skins/ui/oxide-dark/content.inline.css create mode 100644 tinymce-resource/skins/ui/oxide-dark/content.inline.js create mode 100644 tinymce-resource/skins/ui/oxide-dark/content.inline.min.css create mode 100644 tinymce-resource/skins/ui/oxide-dark/content.js create mode 100644 tinymce-resource/skins/ui/oxide-dark/content.min.css create mode 100644 tinymce-resource/skins/ui/oxide-dark/skin.css create mode 100644 tinymce-resource/skins/ui/oxide-dark/skin.js create mode 100644 tinymce-resource/skins/ui/oxide-dark/skin.min.css create mode 100644 tinymce-resource/skins/ui/oxide-dark/skin.shadowdom.css create mode 100644 tinymce-resource/skins/ui/oxide-dark/skin.shadowdom.js create mode 100644 tinymce-resource/skins/ui/oxide-dark/skin.shadowdom.min.css create mode 100644 tinymce-resource/skins/ui/oxide/content.css create mode 100644 tinymce-resource/skins/ui/oxide/content.inline.css create mode 100644 tinymce-resource/skins/ui/oxide/content.inline.js create mode 100644 tinymce-resource/skins/ui/oxide/content.inline.min.css create mode 100644 tinymce-resource/skins/ui/oxide/content.js create mode 100644 tinymce-resource/skins/ui/oxide/content.min.css create mode 100644 tinymce-resource/skins/ui/oxide/skin.css create mode 100644 tinymce-resource/skins/ui/oxide/skin.js create mode 100644 tinymce-resource/skins/ui/oxide/skin.min.css create mode 100644 tinymce-resource/skins/ui/oxide/skin.shadowdom.css create mode 100644 tinymce-resource/skins/ui/oxide/skin.shadowdom.js create mode 100644 tinymce-resource/skins/ui/oxide/skin.shadowdom.min.css diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 000000000..e69de29bb diff --git a/assets/404-B1OsPDbN.js b/assets/404-B1OsPDbN.js new file mode 100644 index 000000000..9679f7f1b --- /dev/null +++ b/assets/404-B1OsPDbN.js @@ -0,0 +1 @@ +import{d as s,W as n,a5 as c,a6 as e,k as r,Y as u,G as _,ac as d,a7 as p,a8 as i}from"./vue-Dbi1xauY.js";import{_ as l}from"./index-CPnd3GcN.js";import"./antdv-CA3HmnGF.js";const m=s({name:"NotFound"}),h="/vue3-antdv-admin/assets/404-HGF6Q5qM.gif",o=t=>(p("data-v-335ec657"),t=t(),i(),t),f={class:"page-container"},v=o(()=>e("h1",null,"404",-1)),F=o(()=>e("h1",null,"OOPS!你好像走丢了...",-1)),k=o(()=>e("img",{src:h,alt:""},null,-1));function x(t,C,E,I,N,S){const a=d("RouterLink");return n(),c("div",f,[e("div",null,[v,F,r(a,{to:{path:"/",replace:!0},class:"ant-btn ant-btn-primary"},{default:u(()=>[_("回到首页")]),_:1})]),k])}const D=l(m,[["render",x],["__scopeId","data-v-335ec657"]]);export{D as default}; diff --git a/assets/404-Ccf55FSH.css b/assets/404-Ccf55FSH.css new file mode 100644 index 000000000..12643b0d7 --- /dev/null +++ b/assets/404-Ccf55FSH.css @@ -0,0 +1 @@ +.page-container[data-v-335ec657]{display:flex;align-items:center;justify-content:center;width:100%;height:100%;background-color:#fff} diff --git a/assets/404-HGF6Q5qM.gif b/assets/404-HGF6Q5qM.gif new file mode 100644 index 0000000000000000000000000000000000000000..cd6e0d9433421b3f29d0ec0c40f755e354728000 GIT binary patch literal 164227 zcmeFZWmH>j*Dkt}AW4u?O0nV^CJJ??B{WLN%@&ckY+J4b9iZvx<3D_n2&|&Z&h4vq*>(t`hn@MF%=w~&6z}y zqP(U8LV`?U5=a3N2|;mT9wtG40Z~4FVLkx~UI8K0^+%YW=^qEn^=Qs!7AS2+rGJcd zeI?Ce>FVl;;^T97cSpJlAsw7wUAL8x;NutM6BOjVuEFc#Y42*{!E5ir`p+H|&0S2L ztsGsg9PF9?>e1w-!)sS*mg|}ReF=7s|LWG>1^Kt-AWa?Y_&iJ;`2>*se=X^s6*V;e z->cf${j0W%tG4-n&G&!o*yV|*qdA|pxr@VVXH)a*>a2ea<%m*nHaBr~aDL+8VEfOz zsAcKk>fmDO;K-z)@Yh`vL5eUTG)zpb?Efm}`dd2<4U~$#i>ryfskw@xG|P2QNGmHd zl!SnSh`fT5khrj-kbuB_QF#SHMF}|}5d{S$1u-QFrGK_nbTEBwXKwHM&$ed&)mHdF zw*3ndc8=F0E1El7xtW_OIXl=f{cY(etN%O~f&bXwKiZo8=ebjScm6 zwKdgMmG3Ib%Sua%iwX^&K2DM^%sxR|Jju#lhtKOd5p=PoxFf|G-tjg^I&iIIVx?hY*t zH5KJ;id*D2$!?I65EH>+P(lKHJO~&B0L+(o_z-{*-~q0Wzw8o#kIUhVHnYmIEUUEL z>2%~7cePvas66mKz+rP7m3cl>P=r9bpJ-F`m$<6F(|e{Ih=<+t0+IKfs3OzHH{*M1 zNSYT8#i>kGz8+lsvLgxoiE{v;T3$iHA@1Jj2sA+YIy5#eUJg!49+`?JH%-XO&OzFw zq!l`o2IiKPXNMP6`MFlq)dy8pH~V86+Bh3h@(M9LZkB{V|mw?>p%0QGnHXw(N zY&W=islbdV0OY7VIe`tGo`3qyBN!|l*}U&WXQjlfYz|e%m9^I%upwc0O*Q>Crzq4@ z#lt2lO08awWy`u9o2}j|nWUEw5k(CPKhQ4p2^Y=eUg3HoE>>#&cJg>Tui`~-8UNPn zN2)cJk34wVl+EUv*ko!+PH))jl|SpAd#mQQpHBSd-0<`cfbPdywvGJ=nb{Zb0TGKf zmd}*84MiVi;W5z&=@U99k{;VWlQYjsR(Un{^|^??nQCea=}2(#?rgota{6I%ywPw8+ZNrUMfmMG0Dd(DLv)qSymlC zNkBb{VvN(m=<|z{9U~(T;om9Mdz_2t%lBXAd@1~t7IFT>t(dN z$fY8eJ=W>1%33TESv4o*QXGQ`(HSmTkBT$hk5xNg6uiMO9Rr2vi6YE&o)&p`!!{ISv$d06>ay_BeL5+FPHCjZk_G$V&!#>`CD3bO89yR zguEzwWysR4D{mi!AbYmm?qI#CzsPpGN090BhRm{jvl(z~d?85ES4J#Q$t)yZ^MPLY z>%pMVhGT7v*v9bEfYi@2{x-Rl94B{Cg^UybL=KIkDUjuyE1Y!Th21;jUj4-}opT6%CyY^G5hl}1ZwL%9# zMy|{F@BO!;`yP9$_6~n`+T91eVcjvhe|}!PpuOkUIc|sxem0y9G^}+n@H+Tlcj%`G z24%M!2A$x>03I;_BIq+$2zt&05lgB3-LgS{+ZYWZ#-fSP5g?f3b1=_E$8C_YI$dP$ zH&QG;oJJ8uwwMa44`zlW@Pc>)9}<`#dRg@B!NQS@_|Cebw+MzqeACes#p3r_^#pvi zD{f2AuXK`%$Ep!Gvy4LlQJjDtsVyEq>$pb>y~zF!aAqw_`+ZXo-1jKpr7%Ffm4cA$ zuK{^0&M>Y~4=Osr!d(Mb7&mm4@6Fd>3X zB=^V+(L=ZWP{0{i`{dRr$M|XKBU_&*x&)&|_XoJNlWT-@rfjY9$hoH#+0i*#s$0S; zdegT>H9)BQMKU&CQ|~}e3utazfx}Va-kL6jv+7tiLU)bWp1Ok8KCWK>?bbp~ts;um zvYkdxl>73HWah$kjR%;|=T8AY7P9hhh6;59nHh% z$fb0gY|KHVydSWI*6+aePxTdFsDY>V%d3$HJNv?908-tEPc?Jb;SvA0u17i~w`?mv zg%g1?uH1}pDQk8wVv^A-J+dIGlpGMb?EG<>dmve}>`QzbnO3A2{#R)R>pjPhXB=nl zN7C~y#fN&6@6S582Oaip)d=X;54wQ;3Lr`?XbLIb&A)koE>{bjC3Wl~L&~Y+H$OSp z&HFRAbXpu z&V2$J!aE$bo66p1cl4hX$=cV7W~q-}s-_YW=m_>8yv>;dbw9}L)!wB0rcDr$3TMeE z0u_0!bLr>2$M7K2zj_BjdoIJ@n`7T@@!(Vbq;90h5XxqC0>S>YK-A39;e^se(-z5- z<&HSvf(Ygo1dYm#|)bu^7x~5>u4l9 z#?JE2PckM3W-qF@d2nN6@V9-p#&iSa*X3Wq_50nAp20Q2DKrWoj3)-fTE0aU{sB@5$EFHtjC(<5xetF&*)v&r1y;=_LN zC3CBZF%TgVmz%@NK1d~fFm4FUMlAm5X5?J%)&4a{#dJCIP!g!P_m&#CcNO8F{zK09 z_ij4l`q!$CQ4`?pVZ`HK{d~B~4cx(LfY0yl*S;G!h5me)#^JUte1k%KalD6buQs$I zUs3)3@&=eePjH~U9-w)coC!Cz%&4e|Jlt+?py@2V$(zA@&-@@*-~J}Q6GDJQ3&1z_ zKYiux-|xe+sl}%Ih9~9ihX+o8r8lV+@Oqul{oWUAiJZWz(}2e}1MhJL%{&Vv7YiJG5XAK=NE{t>y6R2W9rVWC$E?}u z^gNjSRj?SD|84ProQ`iUyeM;zO=iw8MaEeKRq;rNX)w{@AhB=k^;hMst5pUc!eXN^RF+ zNqR)!`>AyH(&CE4Lqu+}^Nr{bCsf*h2 z2)i+%Cbi;u7XY2=3J1=Fv-!n*uZsaL+)-?AsQ59bh;S1>3{t@pp8D3AHAWPOU72~i zi4ddoj2%jj9UF+fACHcbi-q2b6V>IT6Mr`L1;hapASfm0ZsFqz^A6?5*Zw&jf@UQ8GOV_w`$><~;$eCDCz z`R412H#{e?MevScD#Dn{!`m{^c_o$)o#gHu?N*aSKau2po^;wI?YsqcRbfwnCOV(^ zI*TWj4q%Y)A+ljfdQd8lOJ5LK5Uw}{YMMO%AQ_=T8*7y^(u8sDP2^_6SY9SOOr~bh zMC3ddrF{;$QJSa#OAVSugV4_Shk+!Psa=J^me1oQYLc!HaqGqDKYP+OY0_&;qkANL z`$~C>B>XhF=&>ysBU}2BGzodBl+!Ai8|Py0R3HRo39~hs-@;;LN+Hj!;$p(6ZAz2Z ztX#wEvTDua(!=iTU1qJ*q)8dajfX|u56hOm6vL@MhtNIGKD*2Y!o8EGv$-ZxRyNZg zIAz1i-q7TT>svq;+2c2e! zE}vH#cWa*i29Oq{$Kh`(lV(be2Qo@ToX*^ZsHW%yQ!ZCi$$4_x$r6o1sFCJEcL;z54IKUF_NJ&qe#iN&@vtf~~y?`N1LmMP&K%&uOU*B|ssl(geNIWHGP?N;axY z9-WpUr0`Ji|DUPartv)m0qPC=1Qw^!n38BI*_uewDMNHvKp`Z zb;G4xX~NBA<$b8K_PKJMC%pC642BXB@2@HvUg>s*^NewB#v> zSm&z*yqnXj{8eNusQ9i6AGE|>DWy=kUiPl`zPY&zPuG2UvSA9t+0Y}}s?;xFmim%8 zZNtqU??mq#?9rB}^j7`WtHfP_mqg`-IP8}>3Pk$#oBa*h6RMunRFV9wnY6?&P+=cb zp<^JbMU;bX>{z%9a&o5EGM3B8S93I!CFwxw5a}g4)f|4cRUany}?u;WLbU%yQzx^dj7|YKzC|1y4V?FHM_0qRDt+<7#)-VDiD;G(E;V z-R)I6#_Gjun-{TmJB_a>6B%in=nfn2S~basG>Mls@eedFTJr1KNWQkQpP{f{t9pn`G|JlEr@tFWH~wCR z_;9C6!%g>)wj&AE;rqDbvs&rQU9q{gj*z(y^OKIn7bSsT^~OI`ue~U}n{J}gFSOm( z89&!aw*HLhZr6L&E;5dnM-g2?WnDPfStoR*t8crNpTi){#;KIZ7+k>%Yj1hh|MbQ$ z2cit)UXkv7oo-l?wsA!F2R92uJs3l~834~*{Mj+Ze zkf+}76)^9gNR{Y}yq8#f&tLuiB{81aFR+DozYL}yS>10N`91*k-kiAK>07@`#d|mJ z0cTrp*NXl(BLk?#eqLa}-y0G*0uJ^b6u}JMtsab&f<#wuD`$LnWE`}$uzO7 zKEYu;@jY^aJ!fKOWP)vRVw!l8m1%NJeUim^awu|=A!qXauhEhAv9riACi+np>8WtN zsn6b1h&>S9-sEw`)Yp+I#P2C#=_yf?ab69u1h3f9uVHBe(R=TPlo756MSelgnRThRWfsGpKc2E_7jqKdd++K=kBNN_D|0YKIsmBGRXYIq48PL z?(>}Br`X-kLxG>2GZBuXgRj4X+}{p*c6{;w_Jx(VU;uxH0sX=uZG`1qgAsq`HlY6H zVi%QasWHAJHOoLYJ0|5HBn?pF%|MJ*@wDo+DrOn@=d3bg4|bF@I-qUf8D1?l;QIC2PPW&j^l#XGod=TKp;iOXjftY%UJYdWyY z&vpzon`^dz1aQZ7R8EpLK>lChM$?$mMlU!*!{w zmBW5IO2-YqtPRU789y0rbk?R#<*NE0%8;=YOx9+^7~*a8#u%6&nPF4aa8tu+Gn;fP zHJS^T{%3t>d8;sMBlpiOI2q_2=@$1qTWRMy+-0ZEex1m%6Uw~P#<007#C>#gvw@T? zhGDl|W@8E19nRVqU|=&^bpL3$=X1WxYrpsTPs^Jz{Xrf=vk&3pYtZCd zH9m(#j7Q`#2OaYi%GE2kvacCqw+cy_gxNt{+U%pAB(8j2X{f-a9ihI^oJKLm25%_Gf&$Kki_m3e4m z1QOr-VU&Rh1eQwu%@q%~O>%57OLFXElwgJBd($d=WafhxX&M z^?E_>>>n1+Md@h?P*{Y=TSt<+ddnrG8!%8LzXqUb8HMhYIc@+=K~bd$0~{KbTGc4X zMH){Y+tg`85fmQM^_~@88s5;~$w1oEMlsSkSX4J%H8znjG?T&bJ-v0lu)C^nHGv_z z60^0vba1R(^6|uf{OlZk*+lshJu`bnSRIXhhDTJ^vi^{nJ{Ure{H6n!l@EJ`aIOs% zi0ap%lXRweMU<(``@;~2PyM=fEfiogV3BBkls3X6Ac4>CIjt=6nE&?aNL+5_Xzl}T zdp#}+t~g>)Qmc#VL-~&?>ZKOBjv|v|`Fb%-n{Wh>U9E?SEi|QMnJduQtGByyv(Xo^ zV4rwrBZi&hakaMS*dHpbd^w63OXuW|y7$(YB_81#AEjqh@>a(aK=_U8Aw~mXnQ%e6?)N zj@BPLGj%o#V;ybh2aCNCj1N28FHbh7%ZE@CwargPg|3SkOHEQhisSuTemib|Hl zc^aXH0my#DN~G}T&t8s_ z$}g_u+5QL4*vfSiR(?`MybQWa8#8F8UbxB3Mviucqgm)E6P-WodEMuZV1;8;*h%-? zNA1&7QW2Hg)U5{|h2bpsbhsEi{R0Hmq2@0DC_FGK+L*!HhWvR^39 zloFf)NAGgnc`bS8>f7>^Hjt*!u_|QEYo#5p*<@L}8N4x7!kPQ>so>L>)9;KbZ^9iZ zc+$(=2UW>leU7N9mwMm$`#6c@xwp$#1YnW;Dzn||#@4CxIp1O`K;ZDm=HgHt79M-Z zv*uA@R+|{5lqKipViA^N;(GQgb#ZgLK&{+xw6)>?Pn;=JFGizN*|C(U+v17l&E*LGzvIkuB}#nV(m&|F7BxKtMZi^Xlb+aWHCDNQ z&^YWq$JT1R76aa@1D3W)Nw)uqcQ$jZ`zol9Uzkql{L(}j_7;?n@)KUB^-}FN)arkbfexg`?@ZqCaiMmNGVMY zx2h`?x&IkGf^iwy!ixzKW^P&lL1dUh`bxZB)P>PVv{76gP#(0iG1cOFv{nm8J z1ELe~<6X%W!4$Mf>CN&0hwSdxcs6032yRk_xU&9b&sQ=ZRI8zfryytlZ9 zYs-@~abv5$;M#IO-iLsDGbfPJdNVhaqii!TQgnMWAKMMvDoA*l_sYeC<>tTnX>lMb*z@XI%-RU4 zo)-+S_8L7?mHBo6gxM&|X=Mtm$^7FUTCMADp;T8}Psp?JYtc8wBNEG(=F#<@# zld`f?Vhz(Xvx_24Q>_b%-vuBs?f^w)gGY6UJBYlnvD1Kovc&@w-!<^CI?oQE92{3? zaP)7R_>3~`_X5>@nHTBq_4~B2##J5pZESs)tu!iq@0hXs!`J1Ld1QUm_T}2<)%%~t z4?$qnZ}m65MF|#i075D~8{M!B#bEeul#9pYXX>bP)Jwe7fjng+#=AIYDbMhi_d(Bu+XqGr0Pn z;vBe9+~s`g3%#cGxTjN=79@Q~TC2pSta7I{Ujx`-R4N-)dvlAxhJyqK&qx(a?#RC%;s zTG(9}?e=zGRgTZ$R-(zo)fT$FvZ;)=?x6ELnV zC|AFQzeD7-Z1@BOI}ik6n;NQ#?&DL*9{P1!Jk`JTlcx?2VEBFkX|B_TW=?~tjt zhjx0BF>St~T3B)kmn)CO;zvCJTo~>}XbIoZ@Rh|*8}m;n56M5!IG|O)sr;ZKh#Von zdeY_m_+sR$QO^Vs>JehFRtrC)dPU?c%&I12*YnK?p#ome`qrU5Z;sOln`Kp(4qXgr zr>~pNY9{ociX@VEYvQW!fPPL<;5nmJb&vMPeTpJOwn7tc^mxues%2dm-c{vX(3?EY zLvI<7kx3H8pH#Q)x)*c~;xoO;l_WtkR`nimk8~=HQBW=5pKu-i_JWO7$x6e&l;^f^ zMsIXV!)DvEo$ z@CzRgdKL-M$$K+%g8#cht`(QdgjPy74oG;_tn)EieOO^(%N7F=S27#Z^E2BLV}rhy zVw}luf$$8QX(+GBJo{o1>Zr_05S;^NufPL6#K_a$#^6cO1(Irz_1&hA#e*xeFc6&e z-4qs3oOmopVKoTmuFL`JSE%Ec>4I?~L9uu+G8&o(Iq17nmZ3ry$#)Vl=+JjJ4X1ui zl0To|hm6D$yw+c&ckt++B6h@ZmH=DF;@}jyMer{n5E&6H9WV0e7EdzaiqUlkD4LKXxAm1(>_qnPgYUSycx*wvy-eoTukEtVxI(+W}js7l$8O(|Wbojm-p2=$}%l8Ng{vFfKXy&q+|qh&fx z!=Ea>ev})Nl zC?R{vp+xq?_0}tA&p=X`F+PTk_hYq(`ucO;S>DQWp0_XbH? zWge+f-|pbz?g<2T^qE#b-xOuPA9;lQFhtWf`cYB`I|NL8`j*Dj^I-1yP>ZPI|3onQr>+xSj4CXkx%PO zCLpMAVu`Y=Vu1qXM{FQmmTeMwTx;Tpo`2wT;{5(7VNcJ&P4ZV`&&f49QwL5swTR@^ z=!MIsS!LbS6=n-Ig}7Cp1k>pivOkVNmAsHsky50v)m1lGDN*py*;Q<)8ENe3+g{N! zcWKd9roEpDY4POaYQ}%2v-q46!S%ycw-~?e$-033ZgZqrW5QEAG8c)HSx?3bFHP}> z6PD$L55Ee%WfdX%T=u40=8>11?No!o!u)9ZbM$D3uRkfnb`v$w7^Yx-2)amsU>^S_}tJT5v-> zZ*dj=APr*{BV$k;Ij)YggmwrtO&)4fk?a^@SM({G2%m&l_Ieu-RlB=veY-lg3{Fga2!c>e@JBqq zY$#urhS6>);FI;GVF}Un+Hy?nXq$)rDlZogp_l%({6vSE>bGL*lC)}!gNRF<81N$b zooQffks)24haSgwq>^kyL02+)&eQ>h5g{Wacj9D6;RmrxAIw&VPZ$^(dz^ha$ujd` z4|YJHi69>O2bG!;em|In6?(7?kKC!kd{MoVKUj?poB&VrgAupSCK>NeS#M$Y2tar< z^kScs(_cU!-aAe;3*2mWgQM#Nl_7*yw|xA+#Sk0z13atm9?WR$n268WYZ*e;&Cpq% zI691iwqJ*thhfXDq_0e^Fs~D|I73{>5en9no`ZrZZrD51q1E1FyGM5CPd54$=-Wsi z7ccvLs&C(agBTrmMhQ%b#beh?5r7=utdP)8_Ale)GJG(+stNp(;<#T2^=w*i#m39Q zSEnH(2Rwg*5u~i31DA{&sA?%GGO`y`cT>2DtE;DPYe~YH7!V&h!T6dm9?Hl-5SFEz z?sYZZnxx_t#Va&n*?Is+GXP&=x`%t46G&y|2S1vSr>r&9ntRA7#-0&6^(B5=<^yEgFQlNrn6>xbUI75>0CB_$WQhf%~GcRNP1 zBJ!EtLX~a}I(R>#&Y~JOLo-A(2impE(J$#j&ekSjgwrfkkG1X#jvd9Y$#J!AqH`8@9%Tr&^<(Hi@WFt8zu5Pp-Q#frGZ=&Nhy@hIUC zZBmIe+15_~#s=c=RT*d{TadFkXUlvsQQ34NyYy}3tv z@cM#&#aG<0@TsI$*T^5&C)Z{hggx#ahM zlis_`FAe5I+1c0Zo9ytNguElDP^IGu|fYOcP z&NY`DLRKCTc#rNg{eR^g%%;moyCgZeZe@NZ~tsf>T(-6Rlu{@+obmN3*rXdhd=S+CL{8M0fZH2vo`R-zKVgsA3o*9eyJaV%CqLY9ddJ9`xQUPX z==5nQkyqh$@$4)ChnHl?r#rHzYZFCFiA8cK5&4fC%2jTEQz;z*?|y?5to?ijY3L=1 zRNNtf5sHlOkMafKYBFlXV%{6?lnp>B7IhA^gziWMzS;1x{B^>1OGaH+Gb`ruL<$vZ zydX37=0c)2BE_&v5`HM^;cnz>gombchU_zCAnS;dspxptN<(oM4z66cjK$eR-$q;3fvLCd)olF=>JAl_Z+A0q;$oQ96$RE!QRkcP} zTi2wY4inXcO1}r(mgvwNx8V9fH;(X&j@HLIPB!db(e^BDbg`hmF#!Lf^m?DEhyEvR zwIEv#ugMN26&uIVSX&t37OlK2=UB^~2OY7{bpp_0EKI3qxqoS|^LPKvrLIq~aA((k=mymXo6WoDg&0))xU>-Rp0%Nw;0*B z?8=Fm*7ksfq&rKP^xJC6<2DMYF`oJh*7nUp9{2hqHd!$YVOvXx-_W)91%_>Rt3UXJ zf?9o{KR*|cElM5@PLqp5h@lKH2pOBBlnYE;^7oxj@j&;FcDYLQiMK4!0G%2imIY%b ze0t8_*B&&$i5-2vUhJHh0H5wQ-!t9e$hfBj-hSZ+o=9dp8kGf2#v3*5Ke$Kn1dX<> zrH4^WwBK;N@s_Ma7V?;^OHIHy;O+z!o`x15EN$^k>&rV_r^V%fj6>ifmt5vw$x`I{ zK%j}NG07vc#%YnI=kSc%SN1b_a6QKmaWocR-2-grcOy)Qi3!jDf&5Lpo8h`6d6Z3q z?~z_d5yr&%)C0=>IKi}|NK5s6+Ao9sqOC_!j*4U8yq~Q@kN(CD?p@f>;XTg}Jj8Av%WQSCJ&|!n&>}-28fd<<{DS~9{Oi#By z+^8mx7`Ns4qDZM^PO2TRhM*JeP*%6vo=oSI<+#%XyXKOK$U()A-gUDj& z;BzIn;m7z}?Hf#cDg*l4kE1{TDwZWwo$wE?NjBXrlA{`)2u7Xel0}s$a;i>->-~*O zXdq>e_*h8l^G!xxF}xpA@)>6OZ_x(fb+qyGe`g5(e=oIe%oIRfzqgA zln0mSRj~vf4PEP8QpxNJ9bDMW`qn%50cQ}f++O+h;BIoyk!C-=tA~Gpr56RcCW!pS zb$&tBi!}6MI65XdMOen$2uQk)HdtccW@hJ=M5h-T`TCVsyCLIjoG5CVZIB^u;gl^{ zBN?bW2;|Z|q|sK<05lCxqF%;(gip}%`WiBeDeRYxX$@<^gS@YvCmi+-QRbx zk6ih7@ngno`}6Kk>|U$ch#c18h+$MRWfWi9bB$W5?E!yYpBV*gyDju?{?{k587WY{@qm$Egj~ zdnF&MJ|?#`F3%YIBSCB%@baN2O}_KD!d0#z)hK){Pt-BFX-1p1%#uWX-(=An>-mhU z#qBRSFaDm#ss!tDw(_cC3BRiYbc-az=MJ2N90?rrgBMO5y~#q1tG`;}V4sU`m1WUu zhTQ0F5EBE@J-9erF3mADn;_HRjE^7A35b11wKgajwz9^PQAHZhr z;~?VH%?xi@#Y>pz@P?U~VW4o#QlP4>E;v9{c7`!Tcp$9Hp{}07nbqk+FJ8RT`VZWroq;;V{aU`B)A*pnzBbG)v84SP+K2lk9pZRW%0)0WoZ$K?Y?7Srq5_<83~EgFkhP~^M^;6JcVjKLyCw@jQ0<_+!F_HX;zzd#n97Gc%d@Jhsj9&l!C1zH*u!XOI=?d& zLM*SU4YqMLILz1kYjDJ)Jza>F`Ud&QyHZzmSDxFFQ-_mmJl{jXOhUXp6Ry8A6eptD z-l}|jXl&sBB}(@lDR{Dm`%bqYd~MQ+aLZtVjus|{x=?}d z+G0!YJJmuT<-i1NSQIsE#^=-! z(lYq*qUVpgN6+nveaP(;LlV*%`RJ%c@Sv({udZ${!_{GkEO8!Lh;knb?NO+*dLDW5 zU>^tSC`>CdkD^%lJ-6ObxNiHy5hlk@o}`=zLv=qwHfp8$+ZmOSmS!Nxn1??FcdW0K zI*2-cv7e=%FIo$mPwY|hfcor+-0akZ9v2!SL0%im+Q&*ai5V29J&y5XV`Ka&t|F~d z`-d)JgzAPg*8#1yYiyvFtF((h@HW|Eo*8?U=( zpE|rOvbB$uCzE1?KyWfiXoih1Sw+!2Pax52myOitviH$^PRhuL1#M>O-*m2r1svjj z;v-IJCmBuh9H=itf77`RBa5XrRK~sLPO>gWie=89$D}-ukNXvv2jqkW{CiM94?uyz z|A)!H7MQC4p4yN)@cO&J6ayt(Gfn-G^_ReOyCb+iZA$yveISaN>g{C_EITolLa4&K4PtjN>#!o36~NTD#!7pw)AZXSg672@;}vc z?U)Q_Na7GzT&q|b>Kbh3tIX{>uF@lV<{n={H|Ee6cYn=pHCARUqN;!YdOIsnQv~{@e#f}XL!8` z9B_7r6r&EiJrW@ji8o%(|GJ2VeJpes-q%+R*_{*eJ3zMf;_WOQp{q!PS`SYHKi3@y z$SJyB*shK*Ov(lN{Br;GfPpkCgV5NUi`Wu^^EjY~_WL3bgYv-dC?GfBu|74k7e~b_ zreGt>6s8cikI#DEGVL>=;Ve@V;~`v{lg2RKTH`#JQ2(GpG#jQF{D6GB84~kH&S?dv z2!Ae*$6b-a*=H6|TL5X$Chw9zf-Vm0#%a(^#yLqdCTecIi z$U6j59MI;=*U+$Llfj6P`mL-(Br~pT(vEGjF}JcUhE5#}3Y1;sWyY_|t>(DGr&DTw zG&FF?dM6%TMM3>aU3Fkoj{KPQ=7#wZEvJGyFP!v2&%p$#O4nCv&my^%YGDmn0;^rjc=YJ5_N|E@3sco~r5 zX)NeR&($!Ex^O%bg8blc^ff+Xf(>enekaY7KL28%DlI>s3P@ipM?U`EJ-;F!ZA3`+ zM5}u`U)@FmFQ#`^?mMHSPbH4^wyR9h4C52vf*!VM?Z0W@ws-|g*@#6ivL{5Z?;<{q zDJ>W$=b%@oxc*%KNx`%+aKOcnX?M1BDHppyVt^XzUg5jb}3$(h&hYu^s!r3~4KGHkl ze_rteQ)9a}r1`xWClZg4gWaTFhXG8)xzGp7J>+SJfe7_n__M(t%GSdm{>WV7SIWJ# zbBDna&EE)|#KG%Fhaplk%w!Mv+c|YHPBL^aN6RpZH$`g*gIP`R$vEZMD;GnHoEIqq zFR=JJ0)YTt9+gAM`)QUgepHukS6;HTTzgs6Zul8h%k56_t5+00n)b}*^3>(mAp6y)A@A5wj8sFf@x%MQ0w z8L>F4O`Y&w63SQ6Fn;>C)P_LaKT{jU;se(L)1RQEb#+dX#Ou^X|9)CmAG75BP&G?} zli+jLVrcBp|6u1Y{+nyRyU}s@^&cs0y9!;35H00PgjxGvu07I}l2D!nq+11SD=+O{ z+j)Z#IsE#OxNAHAC%POJSg29;^%+0hn+g!$NBi0FlUk^PKvw<{kq;Rtp~32J??)vi z3-Ngwy(QI8xpwW-!ZUob^GYKMY%)vAs$Kag3#}`!U3)$_^mSNbOSeHFX1Te~+~?15y0_zU)3i;NPLli0(Inmd*fM3DAv{bl zWf;x#VtM!#Y*HmP=lHv;#m!e0R+3RaPE)5KK{@ZhW=yDQ1r>+Gl<+*2nCvIIvgNAP z?jptDf()|69h69Zj*D519`N-(&zJh-5}gFH+xBA(w;#^(qI5PJI&?iJYi6mcOQai7 zG-D0STmYT}RfsilKZn^+H==3Jg~r8#4EXa(F@tJ~&lvE#@uj%9tkSe61lHdmwj7-w z5PG;w6I;cs;^l?fd1W^6XFmDhg7vV9pAYQ)TSs&=L|$z4_l6<>{>GGpgU!eCXZ!U` zR%gIAK_a6sM((s#dQ0gmfY8BiqAJP_16LOTekvL3ZYI(06KDF&#LEj&>XBE zq}%Etn-6Sm-OmX(v@E5KwYZW4qPPX*A}sxf2TQW@m=N^&ZrjU6rH1|`+(5I}Q+zXe z$HHrQhaU`SUiP;EtELEaSIlCp5v5B) zx`kor9+2+t?sfoaL_lvrL>amp0RiPV?!C`B_ukKWp6mBF%yq5Ln%8@+^)(acVj!7z zVW%h<8yu=HK{v2NOO2I56gR0F$2ghCBf2F6C--?c)*Vo9Q=GR4hEwrkKV>#M9|5{e zQczESuN8Gde`i_JgNjf!Hu$rUaqMmf8bUVw@uqid@E0xYxc+Ay?bsInm;Ioi*$QVz z&==>MfF{A4Gu5E)dHgI|ME9f3y`ZRL(iZ;L!LHu7WUkjeMO{+Q&%u%4M?Mo-3rfhf z>~PVJYkL-MQzR&_)x{TF{x%iW9b$1L{;}GAMrnmjG9VmioFB*gjT@=kN!1pO#U2dN zIw_C2)7()e8U}-}pdHdmRV@O>@Yl|>m3i3t&+!r}jUJ*pXb>s?gWyfL`-i^6s4cR4 zAJ#Il?p1rwIJ?G(SJ)r~AGID|Ti)t0*^MPz5W(- zQ`pVM)DDuKRaBhglpj}I8UH5P%#OUGs>%CKl8aq%bC=8O+A^xf?stz^>8N~xK*+#^ zD~vH@tn)euC*X>aklXsqXB5lL^uMk=PR>b-O01YPu8$95} z)n)kGYxLnX9~!F6?R>HaZJ!wF42>4ZU3wPZvbwpQ(RcAodb*{~E z`+K(v(ow6+4tjpjseyv_8j|smuVM-R8etQ$*;@hp*vKd`*$?UxJ5`u#-G)pq2LISk z=!+gY1k3uWZ_Rv_xdvYNDIBhTbiVGr{3Z68s7@*1;{83)>+5zU+%(cgPbmMzoh;%UE&#g0H()RQRj^?WV{xq?FU z928b4s9s^4=WcW{2u#y~3b0ZGCi%j0>H5lTXrCnBE$~%32&$aGzC;6UnVZVUNk1jp zlV?xd>;)FLAh!iOkJij;g-FLVh(>$x=%(uBQ5DDgdz{Uv#8dKH8Ur%sU=`tvkx3`03=dr zaAF0kG>9=1+G^Ghn5mLRb|ocZUJVsvpQ*R82eP|zP?KaJM??LesrQ>JFprE-ja-qA zn^YN(4#nffK|n=nm18bZc{4W(0`~hVljqZY4UO9I7)ffqSA92Q)n;6Ocs(__=|1AS z!E8N~$$)t&dzY_GYBsFu*JA&}Mv=35_nBWxVDDPA*F3`#nGz8#66?~+rtcgC^r`*Q z`-KaMm1cmCBl?IUUwu&;h53tw0i8IU)|LbimonEB)}_dw>oJ9SD4Y|rZg!=x@XQ^` zt(MRMi~IWPC3S6X9u{ZKi}NJu&jjGl>goagMA-h3pMvRLI~Tl_Lp94MVfqieHhm*% zIw7<1^}fdo!GV6%<%uQ%P$+4o0y+J7k0RM{Zea7p@p|p`@2j(Yd|aLspD_8w2AQoyw~}iNISyj_$C+iq;Ntl@fP<5ZKQ9=CnREGFUeq@xZ7`aavfE*T` zl&pt%WQCXOHz~P!LI{XmW_EsAxse*9TS-nueN=3GaaLVJyN4)Ev#VcvN1v@IT_`Ht zrGM;+7^KHNylwoGO4m>j_OGwXg;AMQALo|^XQJm;Hdk3ctY>W<@D9u_L>!)p#wBl@ z9f($6I{i24<0mLQ8rsGsHRVdH51td+Wkjjc!rWB-R?`K$C~IorxwbYCpat>4pSz&Eh#u2s+0~&-)gd>%==WR zln>(fmHI28RHfe|`^L@8;re<^fP50%(Wqh=@Wdn2Kxx{6`5{gv<)-24)z4%ob>4&Pdm!0ld@9Ix zp{6Osi_@p#jhF3G7kqPirt#ICfB{0vv(*o!@p4@e7Z<-0(SEnzohiKnrc9x(DG2v4 zxe#LBw0j})l4T&tEseAt__9XoX>jd)6=JF@vqhdHbNc9mC90G zSmi7W0t-4n0RlA4XjR}OeM{3sRWD^6ex)jT;i?dafb=8jIsiA2aIGcOjS=Dz;_DM< zXPtR?%qUJG;a1CK>45maha_zhl>Z>%4h8EaO41S3=}H(W2ZEG%9uz)o=F#eRKr!C0 zbZzbnL?XllpUxb5P)LU_xe1dR<6kqIKqPWbsVduGs{CDd?6>x$?wIdosv_f`8vMy* zx-D)ldvzXiv&%@a3fHL5@J*6I78reE`xY-JMt@Ej=#gJsZxp3E$=&#e*-uGL0Bl!- zXM^6s9PVp?s0^_eRgIZ>ot);WdDy+Gj@RgwCo(xQQ20BYoI`$nQ@b7=2n9 z{8K0V&Zi(uj4hl6JYY*Kb3qZSoX52}mqsk;I}&4n<*NG3@Qw=JK0H6S+|POI4~Fx<947Lly+|=W8@vN>waw;6v+e6^lw?nbWoDUi@_ng% zLUl+`OPEbliO|%|FirSPU=24IsW9&NkSbVb1?RHseY`iF+O4_<2@!Ztb>oe{po5iE zHFn(5;ARG&{~CGO&)x@`H?Z6)|cAT;Ox<+YHQjhDO+xf3cf%EI07ArJte z!@mSN`s5+H04jg{OCXY#5ucr3TE!-3VKlWugKRXy0LS*dqXLtnn%LVt4ZPFz^K%?e4v)U5AucWeV0XZF_`mYSMR zufztDch0*Dj~=|Z8FZ$gJIohud^=?H;OQ36B8RG(*raxdze1j3&YHokY{*C6GL4`s@~s59wX*AKSz2H^;8)6t8cU5KMe#2Ux~;E; z!Di$NR|R`I*gMh>pts`zEUIlb6t+F&o48HBmx#WAIDB@zbb;x&6mS70WGAh3?E|^@ zFpv5$ncXz_Ata9=m?!UyJ+!g9ZV?7ZL~w*F9F+Ej3yg7(yO?D0TuzM+amM}8JNMG#z>4O!>qv?af_{Y4F$|)iM zcp=$MPl3K<(;D^?@`?13zBhIyb!+5~9p&gmmmK6O)MG9Zl<3n_&l9UeET^0h5NB49 z4~`KS$l*Ss=P!7ujo^qOmR^~#&EGP z!W4y{j=_xEN`{OY5q0!E3aa8pz=Z|-sh;iB=N)Vjx+Q_As@X=uT$Qfb)EflDYF!y{ zJ4_48pR!vNLWJ%$TRk6fWFADjiWqN+f`ZyjyO@UFtf1>fnZI{@Rr4a$r#cY$6=42~ z`KO{LqT7Udeh6EN)Yj-tk*V5&9HY^D16)m)(EfYqD;>L5bi5H?ljK@DqAQo8s}w1)A5<1G7z6QPXYu&f6k4NlqFN($No_ zZ_AT#NsWyf@4o-Ut^C}T|LNP7A79$wILWWhLwKVP_dIA}_FQ;w1tvDu1rk90AN3Lu z&sIBt#l5Q3L6Ol|)MCX^EC?4MsiO??eG}0Jo3Rd1SrA0xWUoUrXD)g-1R2;*p#{`h zo+LBoH3Wq1)4DSCW%3iCFKY%E`OuiR=069tgT&OL^ZaSD)pC__ z{nGi!)6bbT{dKio*LR8JuSI|V+$gR6eX-NJ|NHV_NbLIRWaicNuk*hf{c9R$ATh$! z7g&@9c#0(~dM@fXb&Nc>MJfE^s3V$>ULbUUwl@QCesg6Y;_Q3xFO6I(@t^HK>4uZrZ-1v= zfZyG|e@Lbr^Obf8&@1RDPWm_o$JWPidyw~5Zw#}ZIoYQTKI*~V2nYLoYU0TO(e^_! zhm$wVna*m5e^C+1RAV-cCK#vRDsLlizx3Q=fRl!|+l(sqRvP_Y{}&Y^fC6j3a! zC7^6_LyxE;D;E(j8~l8bB5nNNOAAE9qf{rZ_|ihD%&(LC=N@lTq`Qg%`LYw22~}A~ z7JWkY@W1uZSO6sdhqMcCcITMOO8%0~U26WAh?;DZ_qnsk*Zv-+{V@ICU zzw<@=j7~j+p)CJg@FQMziXUs@O+M6f3IJK39^ZU&Uiti+hFkuTpWY~ED`n>NJ^u7my1d04 z@tl^rQiy`4!j%m7ar={Tm~KY3luA{ZjeVfwY~2v0N|1}zRP&sWSY5X9|9gJys2h)PnZ6&1(nymynbzezTn7VuoK zC561v&adG$4>BCk5p-CC9&tSQW=QU@8*nvqz(K93`f9H$;uU3kxts6rU~jbjubgXi2B?D6U_7-vu#orh&qFV{AEL!ZkQf3aW;@rRcF= z2rd#}QUn*BI4kyRoXGj`a=bzv!?HJ08_At0n^Ctyp;vE|NQeeKJ$EQ6Eb@Z6B7gB1p9 zNX7;Pcu*c%81JjR84qZCS}x$_R6#_bYHTzL1hUT&luhLs5%OkObG?KyxL+uN;QIF> zLBtUJz*qIDUIhcx_#mpf$ZCU;q_+d4#73yVuiO~HjTC0%=mSXpA{1HWZyX`U_RG~=jEz8V zT8NoQ&lSN;lKGc&cTNG~72mpnF{m@!zp@^(lG1lLL_FzduSZaasbk`DTT&W(4KThp zTAJiP+JvlfAOcE)r;cHA1krA6D)AhR6iNhche8yFy~n@HVmjU zCSvZ%-bHm!_FIH8(Y^JcD8u=nAufKD>=Htc^=J5tn<(>ZM*a@Rw$j4NJfAItykSo$ zseg^x3Jig%gogy;TA&z1VNZ&^hPb}%;g|Ek!^A9|qdottnpWWW+eQBcV(tCGFJ&t5 zZraaar#>Qg6OPU^xG}2x3>#G^3mq=}zf1f7FdUq`f-ca^aUVsCFrKH{2>KzQO9W5L zgHC|&5XICI(#^9G;QxFs?uvydpPS-zWe906s$Z)hIDXL}``GFZUQ4{|1IU!s@0oFg z(`)wvSZAdfa>@dbpU~eX*Mn|QErtag=Q9{TDd&#rjZFF4Pel-Zmy^Ne)pKSv%_ZHv zISypPD=X4I#@<MUP4B*a%pR}6U_q$?P^Y1hxWCAy z!uBggU3>=-ar?>20=Gtp%I{YIldG>RBXt@V)h>|qtFNqqNDZviG)zI*l#e4F{cEQ- zsnpzx#MGzvA+Zid@d?jw2aR4~e~Ab;VN?EPwJ~a%U5d}?=zw?|v&W6su3w&L5wcPTwPvmXQ#~G-tpT!*^pzlg z3-14~a=+Cb#WPkg{r#W&+ZCxp$}TeS#3HH$%BK$4Kl|I7CaU3t09_(gNcg~?{q5U3 z4+}^D+~#Hb3qhD#1P_C-xux_FNgjr&?ddsZ!>@+j1LvP3@6y+ObEYE$PZVp_H}{mv zCAiI#xN?sqbw0fn!r$2bUeVkq1uUmlC03Z3fA691z~-mN4{F04?_zh#TkUcw4>+VT z0BU#oqSpBj?M3ymf93HpP*}U9i+c8v_LjBK7?Z=$e2XY zP{ldpLKamIABHmDI>%8kCf1on*klcZBDm@zmMBD{CRs^<+-ZGiu?$l#5$f@@Wg5i_ zxJBTd0&z9{@CwhP2KY+SJDEtUlxKs5R;l`cnfYYX23J73)zN_! zIW;ofn(47l{Ys_?Gscq9ep+KS%Qq2jBl_CF4V7v48~P~ky*2=l5g{sJ`|`~%=hCNt zg7)B41Kn7#0QbR)vXAGxP4bXYJe2p}%Ci$;WdLM{6j$JLnT69z$d@$@OF^Y)$g}jD63v$BY5T~0kJ)I)LLP2sUz@0D2}gnTdvyNu5z9N<=*#`#!&n`Gg0`Miw-AfsVmn1XQ6JGUXqNw zP|c^w#2u zt(V;VY657T7j^MP|5F01izybi(HJwDJ4$IAU-g2OkKsht6FzCd#d3!#H8ejwPBs2s zOfGO+EC26hT~@p;|3BFKRyX3mh>Jtj6MTIB+{Is5>>o1`nc^h)_+mxXV}%Stt5h_ez9FG@Vvn4)tUbcw;X zlUgQDuOB$tB5Mbe+t3QSTlV~u+NzQ7UTln64zdl#{A4~lKCe%`m#~N@E?FLl7H^Z; zrD6Wik452b@hg*6Bh&r$QE;E54Dd<8f>Odbf4UV8k?^ z%UhVqt}=e`aUcapoO}(`=R}(eLli=bN%yMAm`;is#{~CP3jNi7J`cWy5bFv#yRj$F zFf%<+3HO`&$>6#&c;DUH+y3W4sVt#9b$=HZGNq}&FQJEnueswd5u?r=tF^|>FWOFS zi!YU1vlcpBY))NqDCeiW+01FqS&xr+sd=$ZqMxJXjCPFEcY=MXnQ2l3O2V-m0(~?Ejjon#zR`fQDoJ__S^EuBpz-^Khg@qUXcG z!tCB?cPiH@Qy7hP8ra5LpEfs~U%xJ&jO+lz2BS<&Qzqn79uD&oC5Cg6u#_N|BScR< zmmvajhpc3>r?y-$B~i3W^z9tyBB;g@92<4N#mgc|PP?5TR%$T9idp|VmM8K-)PYrU zSCS7e8Gtm>T7s;`4)W$zpI2^Hm^OAf^VX8ASvLQUPiQ8pv04GL$B5L3aBcT5z ziXzK(MgS>Goe!wCY8v+WNdhP9g&9+44u?qQI!A`bxiQW?8EsnR5g2{rzJV|Xcta4; zoAINGM-Ru3KOn&(CzGmvvq3<7Nmzmvj&BOTf6RN3GUkOmpd--job7#YkHGapAH3~! zhtfM#y&L5<#x#dp2kMi{eN`&T9hrC!~{f;x3$v=f^H}vRvK^S25&T~P8uye=Mc~fuTddxDEjx>D zO1HOG-4=gsM~HF!?p)`p`gLOgEYeOtf9?PJ;PB2=z~oPS4t_-n%Q75eJFq>snKu*) z=-Cc@?roCKK1>7!jRt`fScsE#kvfhTFkKZjQ7*hs`djUjQmwojI{Z!KYdF-PN)U;k zbYFJU$*RlXMBRNDcluvK=%2(E!lm{PPC^@&gfN^aQz`v(3|$yoJ^%p|U3_(FEoNxW;5zk}*QmP)h}mO2 zEU^rVjVVg7S)@Ot);BsEUTzDi2_7V|xrf zAsNsLN$%+PFb-`2l)W3XYDR_kjZYf}M`J(ErgsemPJUUqBi0jx?=ux5=05=H@d&&q zwe{Bi4=%Cl*w&w?d-hvFyLTnE!WAhc&(JwtfMq%~HMk-RA9_6B+;(>{AB&1L=IBp8m6_ZZM)#G2{m!vHn%-bw3f z8FHB=FVEp+`cH|I=MFt-?ew2Xb(&ih{`L4_eSc!o-Nsk!Mvs|5tP&TVpTpX|v3FEw z!uAb}{Ud)$WeOu2d$ZQ|q)2Bz<*UXNa}2tYOf3yJ@G?D$Va&AVxZLm*{rOaNleHBT zGeL`MvYV_heCEPJh;*Q9(wa|vUECWquSi~X`=OlFzA%~MmFUf@w&Io1p#3ywY`f^j zRK0s$K=wOV6*gY=^*wNB#J);JVB3Agq@Tyjk0oE3{3i5e|C;=f{zt&OU+hb}V9mha z1757q9jI;iwXgiujB)^2P$nk$DBUzK1PPx7h4O2g_W3iAbD&_PDT`(i`&s84QCX8f z&gjI+{3WPZUt52KKoTS*j+fBZf`T4(OBDeB9Welk9xqcy->c}uH=AxjS?Qz{1y(7v z$sevHKeIDrN>w(hFQ#~k9#KwLjEO8xx1<81GG5h<5M(gDe8`pRE?Uk_M}H%o5B6%b z{6QvK$AafsXh8aggjdGYda|?V);uuq!l$fAg;2K7ic@M-nTXpMTh33piA&NnL9hNI|eg31`|SV+4@XKD=@0TucRM;XMx3fnoFpm(Bu!dx9; z=7QHOlcN&5oP(Oh`NC5LQ;z)5PxZSYDKR9P?H>G>L+xp0T0&6j5c%+~RAc%5lFNxl zj&I8mfI8u!IY|J?L6o@|-E~x-6CKz-Q>!TmLX^st!5ps~*y>(W40*Rw&RLdGl;!M~#32hUsOeS0;NhQ!>OQZlY< zO>zgL8;2!7_M*PZWy*Qn@TPD?;tY~TrAaWydC1i_1XC_+SzdcT*Ym0-d4z%G?R=X@s|IV~_noz_e(^Hj2z+7XOkGY1Vgukq4sP@K4dduV@K`A4qgsai{K=0WNo#&JcVxQvUie zfW3MnJS+nGJ`m1zgK+iiHj*E10O9T<62FU-W6;%Ml4M&TEDPQJ6%#_k%mGzy3#J$q z2zZ)?`(}jgqx_`%h*wzUly?YuqXpx}B1{03kf~+obtaS_{|43FxJjRb43o9sgcr@; zWPtVh#mNWL2BoNQ;vnv~X_Ohl@2Psz>bm%Q=yAe2(mKWB_F@DXEOv2_PKk?{SOu)b z`bry!k9<7tiC!T)Sb*?0Ixa3m0Z8|%bwE{c3KJJo#LcIn@wvVJAL|J$n?v{U>j}pl zmOS!bWK}!Jqv{LO1fI33f0d&0l#y84ZRuD0!eg3TMX&->{u{;kBgP~DA;!Yn-I~He zY~TJxG0O22BmWP@Pz`aW5xJH3=PP2x2reoNj1Zs|wfcu*^enohUurU2{7I(x($EmL zu6wF(qk_t7m{@l)8Y;gC(}1|tG(C)ip~;_esYs?xPC;oIH|C9XNqKF0 zXqK%>bX{vOqS4jFrR}XN0uuCsDiAwtAVyy09yv1kxFM!_>hqnk_Z}}GLo*Aabe-=2 zEx2{TFL56>c0*wOsX(fpy;IhNw3^ei@eAPLd2=VV^S3Tv&|5M_wfpGy5ZJNR9Qg2t zqT?q#+=5I5zm2>hD|mHYn>TF9Dt=AA?3=|9mVo9^5?=FvwPM@Cg%Aa*LbP3~vBZVobPZhkwr zN0>+FR6*w2D&EXQk4bg)PgpG;xOq_BYt=<~Zppx4E)>Wp?U^d&aGic zaf9=ORMQ4JDMRxn%meTPI`h1%D#bNVe-+SJ{z>#E@Qh-h!p-E%{gPn2#qIu&@--0pFp!sUgCGcGkdSi?BbG>04u+CT=LI}heL@*R7Y9({ntnZL7RJMX?MM61 z>#{}2V7v*?vRQ4QF#d`%WrCS{09TaUu)1=rjQRGO=HYRC5`;#S5=Hd<~@y+{zj&Pl-LjeVTo_!uxA7AKKc zUi3BsrUeROmWwEO?0q98sw$CQ7Cfye|Mfc2nv-eY_LbW3CvZ z*>z-1<&wo3t`I)RTdIs45op~x8bb^TH@dNKV;dN6E$rBUd(3Y{e1IYIj?-Drwei%K z{W*G)&B7MAHE8p#X}z|8K9 zvxKNH3M!!x!{NLxh&qT0)a#2Oz>(|o*Ajonq50TRq$<(?nj9SqNy(>hH_Y3&`HOxM zDg_kA>auJX*hp~|cG|EsiDM1?*Qgp7DUxJvikzY%o3wx=9EPf{)VhaOHVVDuD&V_A zE(u=Q_RFw38CiinTDkGv|{qG=tT{B?+7-d^5b@s?8xhzoJ|e-75PlY9L8?*YMo%JAvGd1414UuWjd zf91dVg=o}>m6!!gyZ;n{_AF^a2mvyW??A%){y>VBv_6hPt%jiDC$j;LX4%34P$t6c8*YLuy$xxZb?bLNl|H4 za=B?`b;D}}jg^BShbE{)}SKkW+xj&}3fAqFfCM^h!B7BH8d-E5{Z zCvP1M2R{PdYEQ=(S1{QJJREf%tlI-R8pkN8;~>*YGVuPs#b@rr~8BBb8&g8Gqq z5&SIgo%an*~$H|8Pi(d^ z!uh-f(Cyy_R|(Dwf#j6RIN{$xzupWw)8joLzha$Tu?A-tqz zW+c#^!G5%`w@d+q-KeF2UgUz0lWDmdVjeAnOY4gf3-CtANdY32!*16A@-e??NA983 zZ={Dr-AbG+O3coawu(?a!tf;XBE5K^Qei{Iu!+}Sh?BTj53JIN7QIl-M_#rE8|GEQc+*_OaydOIN@Ynt*F{m1StLr}Bg)>eGnH={Q-kK_hX0@X`A zl~hejL}hGns;_E|_8QUj*Uj17Bq_}Src7nRLl+k!(7s2HobtNjm_7<*?%`eUJlbW? z=!3EqvbHp&Q?*M2e&9rY-M1Z9k>M&x_O@?Beuou;Uj*<6_8%Wa|ClhZOQdZz$5wp5 zD?HJ4e)zSn!_iy&XoSDC>S$E>j|{h1jfahM^I=gSTI3{n0zMg210^+{SB(r#+`gH` zLi1X=Qw#DO4OENYbce#Uja5L*g4rN~hip^ZxQ?HiOFd zVH2)_NJ%D_nP0$Rxs9ooIrr^@mhZRx@1HM5@YUc8pVI#?8E%6$X<;`@L}ffzS&OQb zaT%?O4bU3B3G5C(94o!d%AljN8|!y)2J2xHy_&?Z?W-QT666x@MD9=Y1A@1AfqQbK zxe_PFq?og@nGad#XWF{)ZKraGT-S3)(?HiBFVaXGkDp^|8!nir;(n8#zv&9RxL8)X z{`BK5GpVyNcm?>&pase2yl-_Xw6LWcCU&bW-jaUu0TV2Z@7zNSy{*+tL}aZXE$M7U zd({V#mqvj{MS^%S3lN!e5r(KbLLt>JP!A-4V)T8e<|J+jpPSn39giS(pC^39j^gPM z4sE=_LgLUS%f=cP_TUXO?R|FD;oV6h^-o{vpCSfrI)GEe&tsS=4eRc8Kb<0a=5J1w zb>4nc^N_%CPKT2lYRs*!$%32f5~tZAUb8dXbxf5 ze#e*GGv{3v%f5OA!c&JLe}$QbKmesQ_wU+EhPS{!{!@E%l=0zg*`(Ef@rd)thZ2e0 zrtMeiS&;BJ^*`ZkwsAB@(h$JUqlLG?qG{omyFl(+e-3$lG;wtZ08;yp1?GB5_u#QV zISg-stzOdj8u$mqrKBo(`B(yhRDo&v1$rC2iBnXOdXEgugkhXnOKrmDF zbBA;BqJg+my!KYzn&ui#9yB`ggEktf2GH0ab^LTHm`H=!N+_S-w4TTZMenJ~HswCb z40Bd&j$D6UReq~ciZ;q4IrW}l=jj|mzxc@uCVUgmkIwO4u48ohngl zdbUo#sfkb`b~DrV;MyVy|1_}*=@=&Yd#V~KmNt=r2SFA;U7N?{<-Q$M`Os|86lj3) zXFCAhjLoA;y1tGd$%s;$@CwJy(V*`gHiyKl^DE9vDgpF19?b0&v(za!?*N%1T-T>r zr05@hQ#;wIyydW7(@x;+^zFIv9TSn;(fd2#Ser$~yG_vcta;;)CfOhBg< z6DWW#g7`X6nfqKR09K)^1l!KfUQY%l( zf<;uM#B@|VX)xmCVXt~ou$c-qM(_)z{_cpXEP!jR*7V(ovg3y_$g5VTkRnJL{CYcr zubW41aP9JU-?|5AL9A+$5H2M?5fve&X|EEemC1DE+DzQo>uej;+V9qnfr<89oo?g5 zoCy{_z+QQp0tiSM>S}4xyj_SSmh&4BLQer_(d4}vt` zT`dpHU)yrjP4{wpgt~L52*^xOaPXF9tR6D{MVTFc@}%-d=h1s3o2HaV-=BQ^*CEgG z$6rrus(*Yo_S*e1V;U}UI%}Egc>2Y*^mQ$mey6GhLeCATh7gYXc}$3s0-B~o#A2lg z+*<3TKN!G~jZ+eL{MxXQ)Rf+Dbx6d$8(0-sRhNIyWs5DOXz3iR+;L!XzFu{=&DkBb zbywuyK$6yZw-n6;$?gQzDe`=GosC)Du`J8s*?)T8P?>293_?f+8V?nM=f7oD&uq;`h1wD1lU?(?h2-21KS^AKAfEKGBqBqN zg7ar}ZU42eVm@<&|DXFR|6Je_V*y9%5fuDoysAQ1pRF15@GC84FP#{#XZ3v@;}ELX ze~-Aa0`T*6fd8QJzZwT5X*KN4po|Y=RZ9bK;D z60M^G@w7nDhsrLepsZY#)z`hWqAoSTv$nnkB~Je4WmHP*+m}Y2T>w|?khOSmQ1kFa z1}k|mKGYoZVOC)@);agff=FoGr_Z=GA;j1`pl5wgjFqMz^=W$ltnxwpr>*n#%{1J( zTdECfBj7u+xsWC1g;Xfc)Vbpw#gcSnx}cHqM*c!i7?TBX93oLvkpR@X&QJ|aEErAB zH;SW%P%{joqF&C$oF*FTWVePajss2%V{%I1bYyc0obQV{3uS*ml6i!RvO%+zFs%|5 zPh&@^MT1?VC;Ci-Ky~k1kByX8##?Bc7k60#9M%i0476)rba(-iF8#)w9zk~@UnR0= z>z6EIst>fT+7NUv(Z3ABXwxaOsxz}a)`Gq~*r;$O&h_NT)5A;&l)ZjRrhm&(AIv+y z2J>sZ`>pYHKk1~BjBeH7uOB*!a9KBDup*%v^{=0KpS^g6TXU*qpzHIFkNLzE{WFfn z$2(Q-pu2sAW-T&(KirSFJUszBnk+sK2w;W1qmOVBvOQx%fwt;Qu3={^Wed;AjiyW~ zJ~kswLkb9;7s*M?pA3b`Yj2o&as?Ec;XkPY8KecfmlaTO_C&xU3{iYsFmauP6i7>Fr-hkU+T^}*U&n5hf|U7-aeO6j+Mo6S>7_Y&d~Voq9o{^afS< zg019JLi~YoPqsyRGo&4EHP+0jgF0c++C*oV4CDGy1N+_U=2`2?-IjUJ?cLT^d~>_e z9chZK{2WjLXn)Co*-qNX!R){%bKqiSJ8`;7JqE}Fr-bR0gY_;R%grEi(yKA9w=j=9w5f{R987{u|dAmmxOwD}rYBRzRsWXX=01R6H#>9+#YPIDRj)UUfX7 z@ZacG_3ILlVBL59Iab^cS4)!7z7qr-Du8>8=on`A0SJS4ltvZc&QfhK+iHRlmQ=?9 zfbE@~pf3uf2jXq4{G^2QGoH5zXYpCXcK~gn%OB+wm$&cY@{eAJeyi+p90G*Bn!9zw zx7MhgHYPYjme$*3^PJ`F%S$}lcYEfCU`M(6$!$bDYrj~2L-M`7Hlb7Ta^bs^;=r!n zix;7LhJpbD0Onx9tGR^>MWO>k!E3Lb&vbVPj}2SML*{YHCZWf9pMMkluokPFpHK_yagaspZ}7P!rv$*OKD4wTBP}RYWlzEpuMlN z@PGYXhY0=IXX3ZwPx(itAeoi@VF8R#l{|XsAAi^RiIl3JQ>x>4JFKH90nY)b?=Ac1 zS0ffKNj^X-h=y-ymOC9pwjXBl&wvSKA^$cU(J*U5j`uB~*&*8F% z!rT}a*ZpAMuv8rz8>~?Yqx<`;%i#uVKh__RnQik zA&gXm0m_e?B3``!#4@EmPqHMk95&;+eVw7uE@agcBOKYz4Zg`M7RtafXZ#qm(wg0L z#pnQT;$e=zj%vtA4=;F>GjT-uT5ha=DiWCZ=y`L*{Dd-lm3%F_pFDoTI-|>?G zhc7Y39a-OVDgK^5QmEktbj};HnJ(7*8qqx#<@mM1Ytl)=OnL8VXS(}2*;Taa5^;Oe z?>c7LQk`h>Oru5s<}oe`Hkit=EwPk_3}-DTNQlWPv-DOK$kY05gzo~!0P zz1g=Pf_tKVT@ekN5XmKh@411dk+^Fz$c;rUQvm<<7nCef4w#z;49 z8vfW=MmeG*0g@KUmX}80D=2DR5FM(`unb|#@#YejZ5i(Olds_i#VXYtaU_Im11w_b zI0c~L+@en{J-Br2c;s%qu$u%TU&=;#zYwiAr7*n+ofC$W5?hfI8=LB-zEyHA;U)DJ z;1i-{IG_P$6fu@S$x?j6GYeNV=(8L@mDA^j=`)UGg>mPB3*8wJYeo?*4|$4x;iHkc z-ZHS1(o9r^enfhUlHlWVy1q@0%9os*xhcP8Ns4?KE=mgu(<-d0+~=YyAJsk@5E8)d zApimcI-nqM6Z6-5jmW<=&95uDb)SJ+w4Ze5w0!Z_;%qCL_hD;WiRuG1wL~om1&$S9 zceztx>W&?|Yn`;f!>#|ajD+-8s$eJs!k!8Cq0$QUqoRHfLMo$R1*Qzd2vh7w>55~0 zHA%|{l)~ow=vXo_4KR{zdsl9e^{>5krv47jtc(k!gM&bPf0I@6dj9T&GKEoJnh<^U z$+Wig?*H2|QWB6+q#l5GqNF$;k1eG&>>)U&OYn^?a z^EbTL?|$#+dF~)DBRcTi6hqUP&0C#&)UE3hBE<&X>S>O*^Z-QmyJ9e(f|LB)2yy5z zIlDOd_|3it`IpxWZesS+5Hgf`tnyM~K4UH@|VZsM#hwCc@_cR&-s( zx)Zpxf|@_ASI~Yh`EVX2%>8tOb*ESG+1*O7;XjRCJtE@^gk5Br};J{_Zbb^i`+%`gJ?$o10|M!vQrPh0)U za4u7B`aD!K{SE0TOUWa%mxfvyDO7(4O(=#up8tK$RzUoTFEt8>7P#4dyG5hy<*55f zh42CP+VU_`y?>dYRc8ph4sZZa92Z5NbbswIm8)l(z1z*6wt-sBU#fbfFxEE?0VuJ$ zKCvjq`sPSO2G!L75*vmmCaFcbnIPlH7|vpom^Puu1V4#S=(VN-89%e zVu}3tx$E0EzJ}zji|;L2h?}FSO)ETDCLtnmj#RK1uqqr(Q1&sV2&^MxMez0VHrGSAm|)ows`+Z?(kYGm&7d^(Gb{d@?#eWr8xrJLL+8X;Y9Z;7R=LWd zX#88VIr@&TS4Jl{WXDsTagh5G;uL^{J|=&#S>86a$ungw#qa#1{JFzCP-~XjfI)Mz z&<;O!da7Yxjv@ucw=eTA5~m%_z7!gHG)*nZfI>nJ@87eh*9{ewzw-x^;Q&+(?iU{q%tk>E%U} zpCtnrt$la-B`W(C>5nrF^w-zL%i%rEIbIHk)wxTDf6quHAV5`o$M8|Iwa6NT&d9~+ zE_-G3%Ww$*-5M!Ns~jjIXI2w>-?Y7G9V}9+ydLfK3&s@NNX@sdBNsQ7|4G!L-_19rc~3zV7-LLuiJQa&*= z*;?MR#4nAxl$FFpKDeYv4Z@0@$x*wL7>~Ffs_gXsT>28L`nXiRV=m5GZU7-*UCl9w z2&`a~_aL~foT!|zrfiv-GieI@Eoal11h9&1iD`|;xXt7CkJ`Rj6MSnwpR)SaakW+U zt&^pE|2YU>)58?6QQZJZ3%S}qYIbld;HxL%t>yYa%U9lA$EikVAAgs#8{PlXC}XgT zbN~n(e8qx1q$PCzdDP{RL@&^Zt0~@x!<4M!H_C&)TRq0L5z&n!j%9QHNsjgZ37WK< zKrCFq!Rc2Tofu@hjrt)F+d5tO{FB8%q!ix6FJ3N0Sm4NdkPBwc{(#i?6=6i4aol}=ciI#8a)z{b8{n_28mtT~seo5EAD)=ppUcOqvMzh0E z?h_macYh9WJ_G}NCj_!!+C^30@O^#0`7Od|%mu-n8&F7N!Z`R7-nb9AgVB=HU9uN|KX)vLdvegEhGHR^p>VdHyHI zRGomKuzK(rlgnR8*ZcPpD5>PRLlw_fzKr1Yl~WEzC_jv$%8{*p{CAZU6fpeHtz?WiT zOE?Q{@gDc-g1uD1>>drhfe` z+X%?m#}{B24wrfM_1xv*t}G6Gn2>5u@N2A#Tv^y0I-yAYjm`}$_c~E+Mh{S(82ElF zvC7-(xsAC;sj`l)a{=fWL2fn(Ma{nmCECtg0~vthz5t9g69ERJOR8g0 zji(ZHDR1Rm;8S&>SjJFn7_lf0JzL>h6b;G6=RLL>t&vWF)v$HR7O#WG&xUUHD*a{W z5|tb+q}wBpC9_q;uCsO}MK$fbH@}=7rdJbyqUG924>v-U%rmp(u|$@itJyu3L8t#X zzu)z|M)bqv&2J$RI`^$RU~DX0mH@h2+7sp(5)Y`X9IZElGTZ9?9bK?ekd-+be(=-t z?bQ&bLIcClCxRilJam=KQ=vR8Dh3gPL0=eXVU=#ikzJz{h5!kcTq9E&Pc#47>%!miqvu9#$6Tfx8t3rvwuFYPTPe~s=6_62xl}e0#BE=TmZ8KrTOr>2$~Q~) zbY2xJ;^%sx8MSo79~~`3{OHq>WP1471ke56!%^+qp1o_!<(_k($9T_Cbohx_KWHVB z|Aac5mwS)dUcdV0fJe~>GNbBoi+{?P;RBicGJUHA?~FXO)5g*9y*^4rlU9!-?|RTd zt_S$=v*5Ng_vt=9`p?J+ZiwGV0If7V{+|d?y?rFf!vx$1>P3{I)^FD0Q>sC3{BnXY zWBft-zRv@agnECM=>IQRmyWLg zy`WAi{eyMlq@hWyk^!T~%{uZj*1pSsu+E)Y;WdEx6~;MhA`Nj-0}=~{#Kys;$$T*y zQD}TdCbveiQ7SYrt1v4u$2hN`s4|2P?3h>85GfvXwK$od z#dD>OD(u)8j%YyH=i1#Z7o`#6;juE4-}IH=@(|66agZ85kx~rpLY0&mOzO#o$Tz!w zox;ui)=G9WHF!8&c$b6k{bao zU&Q7`1(gOT6`IKq0$QTFwJt_~Gu0?AH%0LQoo%ROGoCle^40 zg}td;`9;m4B>4$urMpIUwvfUU3lIlh;b3T*Nzv>Ar2!6Zvj70DD^Y?1qFTF4i<-Ae z%h;=q_V%mLxSR*oy<}F_kO#%uLAA~OyTz1IOQlw24ixacTfE6f1Os)fYUuLnIQ6?_ zh0A;Vm4yr69VA;YB0O|UbM72Zy~E^3o=V-J`+W^(-pW?^v){v|k|P*6kN^Kz7Y`!m zL!)u7jSesckSX$h!}mOtC5J_@e;&6zA@w{S;@gMAo53CcULvexk8-@rH9q86FT=~e z&maPB*-yU&?qCCNRnml@F9yWUN!7>+&MBVUatKiy5~K@I>b|oSn&}bcem-ZG{IY-g zpj#Ay%h1LWk<3@pXV>*4IbboEA5*1mduUD!fm(>>n*{m8#Ki`GVVi;kfB zeQ($;#A6inblGq3*V33jpn|~a7c>B?%?rBh@ig!hpYfaY8RqEVe?3r}jdij4Jhr1| zu}b;2`jY6t{x?eu?_b-XN>9~Hq2fIW$uLY?qscN>KVRdEl|v7HfNH7O3K zK^OHuY2C;_XhK2fj0b5{tMY6x0Z-noIH>$M^KSq?ge?qAoftTa`O zR|N$ylD&pTjju_81Y8v<u$32c%27Ae0j>%h+Oqa+x_h&-%n5muRiSK)#uLd_-Vk$=fRCV z>`?u2#PG$(j`4q$(l<4b_hExT6og*5xrubQ0ysQ_(*96c^La0KI<_399o=Gjb4puH zxnOP?IuJIk+Dc9USsWHUDa+Pp2CKXZx9;#VHu&0oY-_1ieR67MeUnF7GgDE|nc?e7 zkIj+*SY_uFlhLt{*_l{Xx?`D`WIn%Prqoc{WyZ(%Yzd7OT4LKuwRwR5ELpzv1ti`h zVE{kfT!|lTZ`(-!PT5fQ{W}u{(K=>UpGp$*%%F|OIytNdp=?I}QqQ-+@o`3Q?})gS zoxBWL8FXQ05XW9|ev;*0NwGjOGTy$k3!eS1TT}{KE59m<51AA-&1dAZw}6@D!VVHp zm8gCE;8bPFni6QuL23n=fOVaU_}h24^>#CZTn!6*Xe-!9mtp_hwWDLJmYu?~qt=5) z%n*Fs&-tH2@V}4E)(;4=zwLLGVNc9z74!C8^XozJ0zBU5{OBh0Q?9^qR$H!q zfb6Z#DXILlds$-cRC|4~q-yNL5jg_Mha<1%DH~E~0-ijZVoi!1=rgE#@;#Zq%BCU3 zT%ks&2wr9Lu)sFu&~S+fTzx)oZ_L#^CF-FiOsZ?u+&uk&@mj<^Ur9--kYge80>(@P z7fDMxY%@wZKZsB>MN>cmM8LEgD+#2ZS*?B^kPqPq3CQBpu%GxV zbvK>(^V{hX?G*$OJCoP{OVDF5V+Ya3D;4Fi<@TkP< zC8T6!Gx1TzWe_K#iX(&b^)pMV{5{JJkQlwVm5QdTvt{!KT^d<8ry}%#Vl4s)ZX6sp zgtWOkK_{jSN$Xr2W|mUF3MshqN@%-38*Yqh*@a0KmofX};6m@(a$Q z^1BaRuyVSvM2HNfOu8vrQ`e8_`3#fTw9kb{=#XLe?N*1c_%|L#LN(OnXg1#rsxo^z*A?D4Lg325pe5!y5Rn4~+{`@^R+?Qye6Oc(E5z%Zf z+~4lWbi`l8XkrpStky;?1mCRA5FU$FW)*B8G7Isx2h5$5mnw=6yV&dk4vR@_A0DFa za~>?A{fp#AS(=W6KScZ7jTvY>-JW=TMo04?@l2hK#iVj9^W@@4sAQiH`a9HDaydA8 z+`+r!=2HA~&j%Kt-*wkY$Mbf%x6f~XDgJEoM*?^x4SZ45GayWURb`HWf3i3@hmkle zW+8yWthqao%7ua|_?Ul(o~1qVN+<9U+yIL8M3X)@RH5D#D~xZ-e4SUIPz6YVy&$zt zj9)$T28-pKO(P0L_ah)yxV75Y>1EcjNs#3A8wUDQ{?zA*uOD?Yv#C~|7%>{#vNNU7 z=pBc}={C;dq^A^z8iF{YL;wWZjhkH=@4Nk`@3`yXvby@xFmCe(GpH7)M;tjb^Y}l4 z$Y#g2-rW^4R4?5v%y8M;EkgZ;UsTjs{0pyv*wM1PumXL)iPFe-X~#tn{Cazf;HK8< zGW_bf87uOxwCkR#{<#?Q+L7ECt3ut$IWD3)Z|#HI`v18AuLN-(HE$$Y9sLu(#B~ke zc-R~1-|$+(_PcQKxwNG|%>RDNO)x=K2IzWBh~z4|g;-1D^*q|^Y7m9RR2Px+wwx5w z$PHry?+I)9_C7(46yxDNJUNbh;KPp|utlIwiMX3~yN1O_2r;E?j`C-58K)RvW7sDY zBq6M7KPP^?tXWI+%0onu^o?su{YaYaVP9q2p z(jUZF&PP8`j)>^1AH@C-5v@e_s!M$fIhCFM01aVn4`_)3;^t0;M{65Fb@a6uL4CUD zPe_CY!V@C;j$?vq17dGMn4sD@RyRxl@BuOUiE&q@FO(E`jqaoVZmIylSI%yw z8{~qv{$1e*1&scabj>5G8HTg|4O-bWfqhaAbjnH5Yk$(UCklgiVgPEs`=4qf5SY+C zTkVb|KpfGt5!<#76HZ<_2d3peq$`JRM8X`Ziy>Xsl5bvVfn70u&5Ei%mGzw=E6*0{JrVOk#F~7J}>yJ41&#WQY7}mY;b&D6)vqQ50gEt#j_D;i711*V+26SF=>$q2m+o#EN#N|+81-Nb>LQfNvSSu*?Da8}(J zhnZZICMvzE%|qix2Dv0@3s=`Ryu6r72&i+~t>sT|(p+Toyt)2Gta-fh%;ApMy+V;^ zSWOZXkv3dw{0UGWFB7xazBrvB7OoF@@v9GaNOIFPpHZ)zM@?2*bVqeKK8l)Rc=Scd zbRL&(q0Qq0x@3P92JIDI<2wSmof?Ryq^BI~q@UkwEwfr4)4ka{`pja2H=YY}_r`aj z7OCQRa)X%6`M~Q8uRnWmVzZDvZu~3f=g*53edG$^)u0=8slm#vFaB1wf&Z{Ln4X`w z6##G~IeKjvRBJt$BL-;nT?uA8*p>}psx&YPjjS2_J>yCJh@(V58y>8h%F4{5tz^2H6y%A&mGX+1Vl%~@ zr7w@mbj;N(94n%B%LTiaJt)PzA=QjR_cxLiLc#K^K+x+{ct;R%glW<_YKbqt?-HcC zlbfJ!xm%EenJ@nhT5A(PZ0$#TfgTW@H-MgNWe!A zgz|A&DulWZa1&MHc)$CI@?k%?XGd~W&qT2Vk4^gSdEDbOSV=BTFh6qm?NLPVIQtoO z?WDq31m0J9?O**v29}so%@?A-`T+*4T8$*iMeL9Ag@d2?0c@x%8u9J@yWUT;Pez{f z+eYhJ+=NJdKV) zo=nk%`TS-ue|i}4d7cc5u==U>Js5=kZ`L~~VCJNW;KH3l1qX>;cDA>*Z zDu3}I3&uu4Fikf_F2jeXq@UPFwd>u+ch09srhqWgK#UK%Nu2Z~N)h9Oc6tg`Qvhl@ zV(y`@$iM-L>d+8O6ezDXLP?!6J}E1kF(vvfAP!ZOWF2K*kXc;i0x2_B_o{Akrtxf4uFMu=RayBfQ{dtuk>K6q7D0-vgn_xWvnl!i0!@_R!>J=thu6YUyn78P`OH zi6YM5$1v8!evrRS5(_0xhPze+&!L5Ztjg2Ml zAoY*;J3M}niIP$T0(87=VjSLH^%!!KWH6cCHE=M#7d_tDY_um}#*Nq6cQ(TCa5ud$ zJwW0YhtPg(rT)7J?i>0;YM^D4PDNXjoldNeh9!El#9p*FnjBi`nSHXQ7bl&qv^aBi zx4o=q57p6j`K^l8UpUE2yy0{!J@nQ1(oMj^VFNn))rZbsH&BN1|5bGQ+45YsN7;25!S)GAt$iF)qi&CJGA=O!IxPFge`u z-T+L1kcO=mUVI7P%4Uj5k_C(S>#UNkH0#FQt#tc-_HEaDio4Hn2$@i3$$FUo!5!~X z6gq=5vKmmg3!m?@Qg{W%Td* z76}oe%QI+9O8pyb5O5yoP^U#D$!;y>5!qVSu5Z0IA(}gtrhdK`V6b;tNq!PF`;7q0 z$6nhHvOFI#{7747 zO+RcAp~FA$cCdXDr^!O{VeI))dvA+)x@T1$3z6dT1jB|k)`Sd02XCLA=xD(B%K^fM zWc=yylX$IpgF1XQ)>$E_z7HHZY~;a@EYNh~2LP=-T7-z4?6h2=Ac~6RMPV@VQIh90 z9r~*!u2Rp88P$>B+AD!hzt3g@+*ixS^1uB64ow^vrBU&gEv4?uX^-X0(#yi!%Cd{7 zS}PLrv=OD51Q?%g`_z92Q_v1V>#3?^Dof1umks6u|;;Do5zi zmL)m=ebYpQftRzt%Psa1N%66%#w~v>)zNWyNwEOEu0NJC(37wf8S)qr3CJIKIm(T) zsIoju8#gav$Y6T+<+xcKN18er&}%dHE&B9CoU0cs9vRsRd-k~QQ zA25dVPmdu3_CRpK=Q-BupoICA6v{EDiPddQaLDxR&gcGp;>@E@aly;y!=q7vz#kW# zSNJ#2t!WvYunBN=g!yuK{4c3Q^Km}Gxx*wIzW58| zwT5s%gwI?<&yCYFUsXOGyrm8KMec>tpUZ%EGQ+lcw z!M>LouJg+MFs?{fQ`NX3;Yk_iA#sJ-Y@;*dG+R!yBN28=@q0a85|31Dm&r@s@U9n8 z&5S(>#pQ*E2K4O5M(SB+Pr+wA= za}2umrA&Xkv%{nK+xo3rIabHdmDL7{W@WzTb|bI_yk6HA*mALy*wuZ=Tf9r=D>;|z)vhIUXH(k%cF@2|l>5%~2s?F-RbTb*g`c zml1e1C-fhr=YKX${{=6}(rorXEJC&wwnAxm3_1lH^?WytM$Nv602@BXLaNvZhevxM z&^tsAej*C+J|4l*wM=!C1~D-S=sO$o8W zO@4B%SxJc{w@=fdM96ng|BV4$*l2N1z)6io!AXaHOGsVNqqKop>AoxXaG<7IW_9S- zH?lrXBo#KS@uXpb-=_k-5<3{u6BM@z=d;SGPG~A^v+riuSFk3=qRu!TxG0oFemK}% zkec8bR((Borl^Brpi^J&%xVq_zp02pTqTL1u$J>^yMQ-!4wPLyYFL|&*<|9_9O0B68UgQS2iR6f4+AA}(75Hc~&! z{wM;ac$b`L{}WWk|1VJShHR!JocpH~xU zJ>8ftYAVt9G49WXF`T8&i1-~mxBlkV5@M?ZfIdQoguYa>Qwnqpi;WY8yfFY!2FIso zF!@CW1ZC#M)A(BgNb}1=N!_hHV#@2B)ZPQN>RZhVQRXFWUAkmdO?};iPYaR2(vRct zf&Pg}5gO7?D?shnMRpoYMdZ>38_j1IkIj8Xqgkiw2uuN5?^7I3hPEBnJlUXCaL~^|dtAwQCfD0fs@Po2J+5cW2U=eP-`uGz zeVg15X?q|2uvYmpM2a(sNVBo7^$`$_cl5C3X|;Wwm=yYXo!t*h!8Q#(p>~c!hHBUh zUvFI$qr&%3hP9i+DG%pgmr{-Zg|fxMX9V6V+bmg)X|cRL%2%dvwBAhX=b31KP4L})$Q+sTWO z<=D;tYm#bZ>MIOEDEk5*!07hy@>pV6P)1BK8~C=hsin}OR!CPV4-8h6NK+ry1E^6i z0aS<{Ki;f*1tuuKL!a^?Q)CbZ)+AUlAM^1#q$JU|aa;5R{dI8B@P0s(OS(15!kln6 z6_#QdC+RTR4@2_(N)2v`b+fm&N#ycjAY^Qwc@;cTSWp2AGAZC zbzbsxnso~2=`Ry&osbj6v)btE5Zd!1?s@=uVwsbXCqxh8llgjR=Pw0Fu<8|;1_|wS zXves?xE$lf+hTYiSiPJzpW4!t>pGWSF7!+&i0#%BJ$v|IY4Qm;rnW~9%;)5#`3+Xz za;!voL=4ij$r=*}+q=Z`zZ-RleY;HuUr?Hg^j~`Bz38_r4XW&(@yffyvdW(C)l6ht z7kUnHA{lBz`Q3zGWk(Z~ilkV++xsiKMQA6Vx4|*5=wX^De(Hx7#O|LkEt?{Z--U|t zmyh#+hL`LHppMI3eY~#ARI_b6fnyh{|D1kk0sk94@t)d_2%-4!7d;V+W_}0)$PEy| z1+XwXnd0+Z2e~+2eA7QjA|9Rlk-)rbr#`LhN-itp5Q8LT0pM~Hc;n5j1*x45SQr@` zq6G2N0}6%4#EQ^F=$i$_rKT|?_?ri&=fpv>EWkFoB|bFKR-TyZ%LIhwyP770e3z)= z=FZnNl=YQfANnOAJx)afqlWHCfaBOCPb(4#?fAODMmpq7oU*tfxZ?DAbC0pWXLf&& z?9jXYcmukG`F%$xgz zW4ep)sR>)9A<^MKzY#POdwzW4hknz$wyPH6Gbrv=x7VReTaz7iqj48!>P z+14WjF^l9#k*(tODDm%X3*iiEFoqyT#OwTMUR20NoP_6~Nd#Pi@?)$D21$sx^-4CA zbX;~Z^dyLV>p$tqe@#Cb-fkoBn#8bg2tiYvtY%R&N|kQcA>H_CYayc0b+-5 zRWn4;n6&s8u!P;UAi`#2N8#PG-jgokps{A(d7H>*6*2Z~2>V~fJ72&Z# z^#^Z-;AR}Zee6~cmBBpK{G-cq@JW>RN;_lw{ImMY)7Gl0{z_##0xaHX8>*j6VgnUK zGzU^$3``k3?Rx^xj|dJb`OvlJLiYoEi5$8505D-;t7fK{k=2ikuF4M1pG8-zko>oF z$brkz1AhR6K09Feo+u&Cgrw8!x^9)7g=$hz`^aLS7#Q$A5b#a>ec%%eOnhZAyQ3E= zv%PXL1P`!T`^1SF&6#7X?#TbF^5{X~q>dlo(V?)Dmk;IDasasm^};I# zTa4rV!!zbFxiQP8=xRqBQ}39EB}+4*_mP)L*+qB%BSBvTg9(lQU>D^(UX#hON`LKX zqdA3$4ZwU_o`aZ?rM=Iks}Q4kOk;~P;W9n7DegzsB?Ki8WI%l#4Fr%{6LwhdBfFGRccMGmz_5!Zx11Iy z;jt_aaS5PkeFCIV)tIKEu6~aRR{MfRa;4!=q0a7G@q8;t!K$TXmsv!!&EaDE{mZ*qSl|@qfBVfiAqjz9E=y zc|e$OyK6cgKAj}ovruc0fruGl#z=ytQ#2d(k}!tR46=~Y3n2e#u6|FJp)i-6UvEn? zUV#v9Y(&#M(-#;162BjCcK1>KJuDeaD4f1BWlA!p8BQ}r?YwvS~r8WeFZ4&#~Cinjx@j2;ItM6x{0rxDn&N%Xq<%RDvHTZ^)+aEX&ac2qW8C zCzo2H+%bxta^K6XQ0GS%1t)Rr7bHyhsd~u`iDnEzace^ig8y-Oi?E@2k@n4D<`0AvrOT6ZjfA^xMJsYi_A*b zqPj-03JZZI+ZIz`S-Wm$e78-nNmsx6paFW=V$`5*;_H-CbwBaZUs~^`lKY#s}@%fEUEyr@dO9n{9p>x$s*AonTFA@>5h7NcH z?tG11XNc1fNhcjf{h~JiV>}4w7NzsCwqQ7!&v+;U-@X8pDEMh%q~uIVDhuu})y`JG zQvr~P3$e|_+|A;+~Uywe+tR*Mt!Dv3>rIHA}x8^}kI`zx44`;o^NLJ>Xo%Wah;{5&uv`Xz5$;x0nr+#I>|Jio=tY~ly z60md^Ta==>`dZ3pl&0O|dkpINUKI_8&NBbX`PA{gN5TiH--DhdyX!;_L|^@X(_`^X z(E2FC;4>-z(ka9^5y0c8Ln2*g}?7lfRhOnoLOdM_tfbdR(^T+Z?hO4Qu)P3mKCb+K7)=kovn z$TqQ;flTjN}X7YiDtlX$aKsY`=onE1|hL3&tzpp3j z2Mngu+DSI1FOCotu{C;RhRw+Zdlg1BQpk4(xWxo>tuO!c*}T9!o5H_8o7|yo&kzdL z?54j)QA6jL}<|m{ZMgEExLF(GfIvCw+WJ54LY!uzZ~EN8AU3 zB{h5VrYVfLd-|C>oBR5QXa@Ft``mT@3f%gAMoap2D@W~B5_ zE6F9x@&wyfrk91}G(^^_La9%c`x{V-Y^X>r`H z75nOGixop(tZYs^N3Hu@a!n;4$|d53;3|DxS{zcJ8us<;RHZ>r*aL;e^4U7`FPNWM zW5s-v{rXU*LQ~~po7>sm;;`#VK<9t{%=AW@Ym8F~X%x(yF{5(5PoHB)yKr6JP{yBU z(^|hINV2Q>j=4sF9U*cfPCkeqj_KF@fg7RFe|J-d#jmD7=V=;0T+dKm%QV#> z!hPE8o#*3x8r#mk!UWmR7fe(FYkfHhQnk-E?>lt9DM~RPdRz>#bV-@c;KWYrP6+Q_ zEq)te#1Bt)SWMl@cDtwD2MC_(V~@$1dQ(b*0=evkX04g`mpZ>0!Y;2l5}_!RpU~DQ zli1@3m2|E=@_)$!Pz^<(T#qFnDPO&@xT&1U~rN-{*pKas0O<2@Xd0|V%PVB=r` zXaQWDm}k`oIQ`pNo2!hCY?DrfJJ#;s5ft{=d2|3@6Lft79UE=mzal8m6gD57WNR=2 z%5qhTSV?p|=9XWQ6cHenAVQkeOm0qjeiw=-tIZ_VQP_ytUefAy|l^H7FWErKNB~f!I>wTLzV26|zo6 z;M<|NWQz=$RH3sAiy+mcp%_*VTTqcIl~7J;9Q#J7p!&y0TAQ@HqU#nC)_p zL-92y0I=p=eB%>Y*4^56g{z&J|(+_eLXrFalzh8bJYQ7{<*mg;q zEldseNo!|0+xE!MhW&25k=}iZj;><-6?8niI34WsdlM_;J$Jq<)h%)zKP1cNdnn8h zAMYq;$p)abgEF`&QKl!@bpWDV?mNn*`l1Vpjl#gW_N!n(qlS@jwgsDCSmS2#I#BD! zbE%+*Ntbi@9Ny1Ug9vdcWxZtz!2v!@VSxO&r)~z!IM@OfQn3o(aQ-gv;Vw1;A zfjUFet9YtGEj@|AgJ$D+^elMIlf8GRFvWE4MNz!vRI`*Di6F&BtWPC)!4Ri*Vk_%c zNt0<9-b#p8$m^|-H2LCm@_u1KdzZOT1IIK}J|nVqx>yWGwHJ{k(6ke;cfC?t5<6F9 zncVOj&Q{qn#DOm806B10b5ggI1*WJtaMiNMB<1R30?w3lMKLTqp}4(5S(vGN=M)cRd;;rkw*Ykl+@n1&EJlOMcUztGlc z7GhGuY{*=|43LPIQL=U@yI~=IeDy9I$t35B5`;~3a245zmQ`0P%JKe^#JXcJ5;U&u zba;_v5RHC69Ykl-IOCNO5kG!6YjN$qebuN?r$juR>zvJyjbNhq{1f5D)iAoIsWlM0 z@LVvH&DGNH+K=DX6kmC}Z7}UL;{zWvME%)7NhIC^xrJ=5$2~J_MXR+q53lzt_dkgq z)VE2B%A1z)p^vi4CY*`f_s7KYy9l1bzp)Aa5QTk)51 z>1a;iB<7ZX#J!RA>qIP~O5%F(v!2I~v1H{ZL`NSaWI??HJ`y*%XQLfI&-Sx#W5^}; z@vHBAzAt$Noe}vJ8tr={wRlA*5{j?FNAjxezqR7!oO%?KxZQ=!bim@W?p>vjr%(oN zpoTFL*lk>XPYMO1t&W=)+^Hi=f&&F)a`u8|dhW*=D2nBy#^c=lAlR=%WDejULVzy; z%0Q9km>%0JNScNXQ_pRHq!@7Xz2&I|gg2=&Aj_NaxXc{<0rGkG7u|S*o47cSuE(LJ_QwjqX@y9`Vfm2Xm027gtIRIA&DU?(n zM?!Cad~SJ)$CZ%_RR7qm+IpJ!x7v*Y9@meA4s_FM2~E&3#cCV+hn1!$oc3>_S_VR6w4vjT-%S!_yE@3pEC?7;G(9x zKvyMSz=mf5UTB5@%M*L$D3%0&rcEq4Ub#(RAYJkJa3U;`UEFDR)hOF~ zf3JgGijBvgoL zJ-4~%_b!v>mky;|1L8f3*4hd(WC@DZCM9sb2UOD!{YsbczN+egLo9k)0~IF;FnVvQ z?L`OZLe$mNCs+~CDJYacd~55uxQrj{%a8qr1JVNXm3)y}Z+RL^a-Oi5zh|H2E_hU` z1_S8W{Lm&HY)sBF1sZi&%=d1o6pA%-+cj;xT{?1U9(-Bpm^{3&C3@L15n1W%u`;=< zti8;OR3GKrj?1;oN0I*!6C55Z%-hVpqX#r5cr@vFu zO6y?`GUoAw&A%w=EeB4YFI+APfR^*KpA`RBWtBR&3_cx9nf*CU@q3H|-%FF59M3?d z`;P;^u((Ye&XM%q^@v{u(jUwZ1D{G38CXvv@BVwOkV-woTtvv--5(TOAXSIb`iu|K=eXR_x|(!X&!A_@MPh~ zt))(3Y6_)iZoQMGu|6;!WJ|&n2@=n4H1h_G^VwCTN}}LB-omQu<6F2y*gkaX%f9xw zghccdU}czG_QP+Y)dz~z*@&UUi6yW5iW8Ezcyo8;p8GIR7yDb$a+zoQ=fEje1G&qK zXoFJi$>CT)Qa8VVd3;SnJUYGZ2f=Kp=59Mit`NO&@Aee`2=?+8W=0bop*V&1n7-goskEw%x zX>pGr>$z%=9%mMEXH2u_y6L&Tg$8BqmEXQn!=4FSaA= z%`W!?rtrh*s-9jU%I!wj#a6S#L~g8a?R#FN>j0va4EGvlEaz9tjqM>kkfGhuZM#sA z;XwM$fIv7>V#Bup<&Kfm~baAqUeLOB!b92{gyJRYtwK=#~4ew@N~e(>xIx9v+Qtiv?J zRj~O@TYj3&!`kn&7FHMMl&_Ovu5|9%+`R2xb-ymDeZwcvD=TE)Zi^R7HX>`G1Fp@} zktQw8^9tVfSDVSz%|Dh>;$e?&*B!Z@x6l#>c<=R;Hc2S%1>11n97KJQyg5XYdv^nh ztQIA|wPAfLJ!&Ib5j=_cy#)F;&7j{67-<812Y<5D#(XVdpAP&90@|X}aStER6^Ans z@A*zqcITA=gZ{76y@CJ3*IW2S9j@Ek-x&rbs1b$^=>|bjNf|;)KpI3qL^>3a24NVw zyKCs~kWd^#S{xA&kp^j%7BKjYd+&43KKt{Y_n&yybKmz`*Lv5zGaXYP|NFs{i{P`W z_FR9&kG=;RyY_M*Dx^QDB#ygoP=Qoz&-eSYCEjWN9)#I{<*XDrq!JKzJ2)5-i$KDN z4>C%$fOAjx)Hb?7km{H}k8w({$QoN#b0p#p4j{|j3*pJMfM4+fQ}6C!$*~qlF#tr% zhYoM?FM@Nr1*g$TI5V0PNEw$wympNwmLFI^-(D%pJgQD>wcdgX37a+)D4!SnINHS2S~DglvK-r#{bgJrzkR_&oQZm)0TmDNxq&J<5_cr9$jY` zmHf7pSh&k2VS)y%_-M0a7y%|(M=e1#ZOT+`@AXSt0}|@ZDGy6}fm~k=YLO4nYim|F zUP)`qnk7+eyj+qQ-qXI5o#K{3Vb4UiH%>YJtl;b9lKhsHYS4fI0&0X~4@%S}Nxnt} zM=jI;M(TNzc@zYiZ&C|w-$hH#p@M$P^{H)@zq^K#4EbzRe)(>+o~$27-lYR$)u-YU z8)>Kz=C6v{7B}BZQ{c+EURKbN;q_A|9+n>oS4jm6_2#Zy0XOL?SaH$A5yrvZTE~wJ zi-8Z6Wk*o(kPuheHVMeoGhJC`M{Cf^*s1AyNjgf{blFLx(3re72xV(R8}$*D*qS@d zQ)>2f&*&cgjg$!OU<>;W(|eCS(-YEcAN|z4XIfR=l=-&C?&j#HapUEttkqr1htjhq z>C?>>^1Kcb)pf&7`X=sar9;*`rk5zD8!ork+IY%FApgT+`QbkWugfexWK4bCG=Jk? zXx9pTDIN^QeHapORf_E&$Qh$Byd#FWOaw(ff?HnAo=NJBkXY(kbBcclb0%U* zzK^_-sMFX<+9;5#_gaswEQIhk@!-r9uL|xbR@3mUl3QA*j+KSX zv;38^w|s@Ns_WbYsz()1tH^n1B!p|*SGt2FCFVt_7`oAfAGtImhQAyV0 z()^0+4(_7K4teJ*d`vJynDxVB;l(HZazmBv??D_cth1dr!(rc(lfHEZ^b7TOnemjM zNg2>+B~lah4K7~JZjjq8x>J8u5711^1nEB3KoQ(65dge06cmx5pCAP=eRUAsbvmR< zZ0s=Z>aYDba9)W66obvP2E<#>LZTPwMbuNJ-Km$$+5&y=9|Yx5Scp^89_`wVSC0p1 z5ga_wco?OYs7BD&>%dhb9dg&}QxAS9O2W-{K%T-DuO*yGD0!NkKfC8X*PPWW0Df?) zg|OX}^e9OB0d?tOvz_wiHt1OlRJeD8%XyJ9Vy^7y>&;K`tJ=OZaf+7VK`u{zt8Nf` z4jM1oKlN+LNM#p%i{7fbOm`hbv@6K&THlfXxqCU(lJw1H303H%COrfa6+r*i3;aQUJ3_Z*84Oo~8 z2qG~QMR=7E^6HcWcAvBBQubb`fL0;mFGRt*&q0qnpS^@v9&mzfQZ8pZ6@q}2qnX1vFm%sy@#PXGa zL8UezDuN;o9-R_`SlWw^rvTGa;)iv-XkxPdPr>`|j>dlsiyC@O87Y(bUsc6hA*n7I z?7C>MK;|7=umP#B%{qL2NRt}%6dGq(3NGmYYvsG=nC$Th%Hy>eBCn-B5$U^pZ5VTn zf+I+f$9{ewOIw5jlO2{?KC9j_F8tCUbvjj9J}Xn5BlSb**Hn^U2x-Dq3Ls8Mj-QE) zaF?FUkebr9@YWX&J$mEAC7jacCgOK1f3V%v2#&8kz}3!P4mR22=i-lGxgp3$Si??D8*}$MBX{F*5 zwD*0sQiJPKSda&%np?&Bx3QCEW_oa`Td1?TUe*-*5M8|G?;Z=^s7aYBI@0H)Yjlt$ zW5aK)q~OFVft^{N$Zz^U{1mUvgEJGTQCnEpZ_uNs9iQ%dO{Ygp*;;us&Dv+5v{Y!< zI+={lPJb&b@pP|svA^?qwv)cC?Kj@uxpKx_Xuqk(&=fkbJ@S9(eIxtkChjsfWV52rrB%YfCPl-#^iXQyi@^kCX z)6use9;yUZBDc3XTIBO62}l1kZ)`}Y5JJsD5uic@hb1I>()$NQ!|3CavU7BOiP-DR zN4X`X()m%wg;`~_bzBv$w$;V;ZKYKH4zRe^7q1ggG?fldYw$xJP8MnQ0A~2TXGgyW z&8vw|Hoa3GG49>7E9l84@0Qgq1^T{q@5RCG1K}@kH)amcgb}d$@0jHyII8Du9*4pb znGma@;>Tj=efp}=)w_uh3=Qc)_35}NK6Z8HX$uL5vQpxq$^|oPs5qCVV~XmmqT7LO zXQnXpy@w+$la7BV&*X09*YdKw%TebZFnFc@Q=wpXk8{cUlj?iP#;vUq8?OuRCrKwd z)@DpM)G_AP^@XTwJ@MU z`dBO4g)SkrSw6p)+{Ml+rw|bTdGG$_3 z&CRrY?1N3(xW2lQ7=r2`N#?bI@uZ9@`eFg&Kx96gSKk-vCtx)^mZ>zbS)8$Dlwpfl z)|OU+Dixjekx|w(@FDD?-O6+2*TTQ#cJvHygxbVc_7<>kZLQ;E`|n|aXW5y($+0IL zAwayUUK*!FVsr8MLScW zgJn4DrBBbR$xmQ84#)xaQKf4m-DZwV{4Na=bDAsf7$=b=kY z;-XBnHqp+&RuzXB^OtOArCjL+iMm(IPWL0bs*Q9(Y-dUnoOmgih#o0}xHuMsG)I@b zzQV)-?q@K>;pGtKRuat1poS+r+-gafKH5STRUZ`jjRq-1g?X3{z^dCMd^5tRXK=UC z{MqGRn0&$=Ud0%?YB3IC3`^kUG7bdOKVvjPhs!Xu0m5AVjD#1c*NDAVvk>G zgtU5b#r0zoEtK+-Jk-H+9(%cC?~kyVZK&gKuCxpGL%-X4_zAz6mh51+ZZ7jN<}-cv z77$Y+2{a%tT1{09j0mAbBBM5*nbh@N47`8&OPz!gcuuxi5pzobgi8T;ag?#Vt(R(D z%-0&T-m&bQH%=7&wb#d>^lSg|V7e?FTYnw)&_g}G7qH=Ak6Rz>5(kb%Q4d6Zd{_*Z zUz`n5s62X={RDihe~j{Nii|h+;u1r7MS@B7)T1w46T`$~ z3n}dX#qBjj><=~cvC=ewa+Pe9yL%|@E zIc|{>4k#&_BN5A^2o@ipy*087zN=!xWdx{3D&k@phD`Zb$b!{1-IM?C!S8?Tpob4W zQ9YCm6g`Bwl|4c7@Us<^L-&qNw?qc}=^A2NYJ~iy8|eh36k6e^VC09%GT;E%HHNj> zB^4L#t$5UlpeOf#Pc2$dWZ|aB%;aUEDyx9v3nKYxwc7?w#Pm8tFRhRBHpJaKS=;z z?^Dq`9T%X$;5c|3sdXZi^A2!j0{w!>$DQvI`P|Etzc^gc01Q#*l2DQg0jg4`Fp$9Y z2$L_MyJ|#p>L$2Iivwdsu=sfGDz4? zV{y>v{abcdAk4ZWO0{R)|F`Kw8U-`;lLcVbK_SEpvp0>oLI8?AGch~I-aF!+E|8Ix zTUvH2KeCW2Gp@Y8L5Qlr)c~j|Y3%H}jB2qfs(sm4PXF4TCbq7BEEthu_KYTQ^zF1e zQ-Q~e-j53o-Bs>1#Z!wL+OQS(=*i9RcbDH|*5>zq$c7(c<~mL<#6-{}yaHMB7?{D> zEQ3Ji>rkXd#Un;oMn@!2P)ibunY|tRLx3XGW{*=HLk_=?sj@%d=}v8BmHxGPz^bKw z&6#gZwXyJa9_+Z%*+M*qn!5aH*;Gmp~bmCDDIJ2^;{=^ zv)9rk;x)9|#PrT1KCH zZ@xKnxL{}V108s}Wa?h9o>QMHUP439j-jJL06iny1pr|-WrKtM5Gehx4rrX~c<+ z4S{30+XZ-dc8DJj`s+DO)lGIRW-uqSE`@_7_msWv zmsRFxAtyA7^E5{U2eWwtItl}xZVN8^ZhR742@g&tfU>bSddkVcE)JWps2iPq#X9E| z^N}fLej91oP9~M`7{Bd`Lb||DTS?VI%vF{ARG{q+NWGV=Ys9&$zf$G; z3Spssxh8)0ho3frbOLgdxw|<;mZmSF+<YQImEylm*OZRFE*a1XxouwmGgPd@!;x)7jg_tf=A*pzR_Qw%~2$PGj{yn zZqI`$?|$!QpcdXU@JKx08BHO`QFrq5_#KE*=tgV^$`vRd!3D*iqh=GV~{!4%9>mV=%cOM z^S9e9g1@eKaUqmkMbe^7LeeiaKxMuUO}n-V6XGM)GUteMcL9;KIFQI*6-kiC6upT) z%n1_Jikc(gL77+lua>3%bN`9q%%UM>8oc{Q)#)^*R0N)gkq=LnCNs?!d8C2K@=TUS z!WPB$Ki;{e)0F6f>Jf($K;o*&(hQlntKJ%zo7qXy6p3Z06;Xp~)&@B|jCR)x&NSW9 z(Ye!-oX=2+TJ#jnB>H3AV#VTP5XNg^1j%yJ%B?ZxtNcmY6&vzX_r?Vyn+y1J`I)u_ z2R++pq2FD;zz!YB0xb`3Zq41dB%-98Z_ElOFj&cQb{7al-O1qI2`aP>{YdZ8@OzqpYsz$awyJ_Nlcno- zi)1Jv#Ay%vP=^ltcDP47c)O?E%o8x;T{d|xJ}tyfhoJwm4fo12rU^gB{){b^e;a9( zGD1`CZeC3lm_68eo>mzhP(eAsVA2tuk`aEJ^PVpUV28L73UgJu#?N$*-D5iT$yAT6 zq9D-hXMg~2I#~c0;{){d(=LOh#{G!`SIVk z!vn%UZigYV^V>8GPuZe>^RTZXwH^e=xg6m=n4fDUl8`1t3hn;_`9gObszanvA*%r|krD2++Tq8YSY& z)De`-fF_%9d*Hi|!mKnNDt0I*=jV}8(F*jiM>=ZWzQl}r8h!9xGr-3wy#VKi%1XSS zn^IU=rB-ZXksDs!)O;(m&axrDrR$|E?1c;9*!k*B6;*;KakCmR@Ghpd)DQNS@G%PU zI@=!z>z`SEGBg)JV?4gHZ5H<>U}1Xa;2vr?daCj8{PrwIITZu8KYxyYP2IBMy= zW8<mYI^quiT#ebI#@)-9PPqh_$rpzP+xz^CH8j{t5X5l3W;<>6?%2oPiW) zW*=`V!cD}yvf@7V=ZJc*TkAjDv@E`9d#m=!b$ZCAR`Ytz&6up_X3|b}cNUMwo~<#t z2ftZ-thi`SPegBBIi;Qn$#V9nvkvimK{T(*=J$4be+A!kQ+PVp<-12d_@W{H&j+#_ zlb>10-2evQ?6bn;hP#zQ;M0-Qh&N=ve?#YBVD`qI3kWSEi~|m*-?t2*vL-PKRi1nw z>_<03!x)Z6o+?6rc%F_uYGfZC~kL$M_fmW71(&b zn#iSu%2Nk$5)aylJ2_3j7o2iAQXL$nYi!Mn09SB)iRG2c;^ne(kLpi1(Uj(6u+1lw zVg+?O%IICQ_sT*AA4}O^_Dpx~B!5f4KwnO;c>Wl=O zl7EC0rPI9sQVw=AQzB~Dr!AJuiF-n&S^3N=RV2|eiq&=JKsB~#LfyGmcrJS5Qu9Go zSiQ2Arb9xa9RN31&U6#cv6J= znj6&L6pDT+XVIWbN@nGP=7#Qv6;F?_Dozz-pz+c|9FVnd=aLV9z3uFVP**h&}h`_-``fU&Y+SQMJ^=_;?DDS`NJsMzrVlHin!QuS9o_ z31f511OMV}K;>h?;BLfg9>cZEv$~`rV+HVaPY{_@k|mw`B2Ao+%1)MU^!-c=IzisP zn^KQs%;h-gTVMkhm%Y$Y#BV&^=u8ExpCYK}(WBpD$SztRs|fMbRYd3z266NTiE!Y; zuT%_jL-gz-D6BdEqnGgiQ!zCKfSA%>00|98E2w=U4U)+DL3JxQlk|I9gBIpO^4=W@ zr|)SHb^N(NWw=}wkO2_~gf3TxBTlc9wxjHLr`$l4o!`^g7}vQf9kpqfuI41U*xlrf zd~2JoN9nYtB+2Fod&CUNbReR_KVh_8+212W=fGm~j(xsuh53Fi8!Ssq1le1Mu==qL z`3^YLYSth$JhJ@O!%y;bE6=FwQw3C}aJpAsUL+TAs%$7GB@&)Rql)WxH(?-Y{m`<> z@Iz+M9X%N!&CAUh?vTxCcCKTBMTHc7p1u8LLo*Jm3s4B~X~K2iQ<3rHP%v&#vsU$5 z#ACuKpI0KT3r*46Oord!b%Ks%jU=3Wps8c6rmP)_Fu5@mqWZhsxJNUpCAl@VA)vy5 zA?c%NlPB)_D`E34-B)M7k3t?A*=rxmjGSp0#Cx)0Cu#Pkxv$p zGeotNx|SsW({1BwD&|psXMWr4MP)r4v+(j|51}x<0Q?*HA+?5@-Os)mF9jj03Is2%5gS>V*dxby}obdDU&V; zN$-IAdv=`SdJ*$;R_ z6pfz|K$S_HGY#nrG);?wvdSA8#i}B008~&@XBQtLrP_`r(Cy`$PO4OQn!16vrTIAf z+WzsW`0n=(Kwtgzf*r9c2sXC3Za1^??8TRjZ$_wL>{`e76D0)GCy(Ca9~biamDShc znDHS}E0i_L?>KrR1X*{hKfL4YkKvv$a_=9%tQre;z9cmBl^dVPqIPjZ#PJ|sDJj&r zt^f3@?U>iKOVc*1>UQH1vYcnXe8o453so+djH0ep%BRXflRW%rdX%tK+4}O{8$t?? zMP3+_+Z!Z8v>v{>5ki)-G}7V};~1-n%ouFn7@GJJLI2&r%)iz4)y~IU%jUWz`gKye z>ghL&2dVPSyAo?pT;F=M_?+dM2=mZ+i={J-etr+!F;OHicy13H3ek9d)w!N{#p?El z$97#%3`K{x@^0R$zV$LgRP)T<@~+DoG_7C;o#!XKDgCgx!jjG3{@dIu2C_wqfII8! z-cNwUKkVniEL1Hoek_cH!w(my>S=Jwf!;s$Kxk<2Z+k6_0V@G?;ZNolf}nd z7_gK$*i;YZhFPs8sgqS=lOYIrR5C9zD@%@M?)Jd~la^#g5sPUn3!-?N7L`d2FW6=NKLHp!iE?ui;V@8$~26+?%VSp+#lgPFPh`^I6=ZT z%RMDa!3ZnyP#)8dB+K9kgov(%RH_nq+7`pb+!%S(`4E{g^sh$AB2>Bhzc)&X`Teu$ zVvu-tR20B~wwbM8A&mzv`B*)yV8O6L(L~0>B`PFgo^?yTSF|@6wDJ?rE-Nl8;)e!l z^7OFNA{B*B#KU2~<|uk@tBKhE8G9v(Ewqw7&o@pKklqUGXwadeQ_(Z^dF#o68Y=V*T&UZP(~2quG=D%59tXmFQ9fkZqFV_1qc z8Z^@r45WjBrM77tv$3J^t#w9PJJbt)A8T(V)yqf;qqfX=Iu?#eDCI>E$+NfdH>T>N z>1wPg$#3VTqXEBH&P6Dq&&Kbh8An;`pmt|=g3P+POuIJ1aCCNDvn?*C)P;#Qedb-d zFev?)i$*Qyp6S0I7})>>u<{>@x9ccP#l_t)^)F{BKBt!xL{vPU34t?HxgH|cy4LJz zU(wYpusSOu;q>ojbuGgtrvG`tU&X7BL8TtI{h%EDO5Ci<(le>~-vVH6y2Q zhjUR8RrUZ??Z}6CM5XJq?up4cPpY>dPk?D?e%*fhjRQ^W#y6YAR4>Ap?FG$a@A zogF3~_9hAyH@Z0P*|sYR-5np|Q<-%9K}yn=q>ETO3B11*^7F^S zr_P5q zDDt@i1nGdF-Q5yEx}G>XrlweK!wMB&R`wO?gb+S;%(tuMaM_VH z2861R5`&k~J1I$C=Q}w08JXLqec7EP^|l^J=O)q3&fNMWrLN5jN)~`)moCoO7X(29 zO`v9>JP?TJfG-6|$ar*>z+^ayZ*3R&t`zXT*B!OCBlbx}@UmZMefKj6x>gaSPy#?8 z1rOa`=LYzalF%D1)xD&?@BF5dvVa)?plFfUFpxSc`AYrZYExchJAT>cf5B=fWiv8e%UQv_+qp0Bj-6h{|={gKuJMJ@TMryd1`I(~}`uL@=aB1}*ukmSJu5Rwq>Flosq4ZE$i_Y~^dVny=?hoLTd3_!$- zY2c1Sk1CD{z2(W1$ELCG1wCNu3-MpMp+>z9#?R!E{Dz`Ko zedmy_(e33gJHcSVp8Uo`injp|6z*W)&vb$_zdzfAF)o3gaCrbTk`Gk1(fByk7Esam zQ5*>3gq6`W#PaZhShl2ZDS~_RzsXi22vBvEs>7HTWgEGt=fO7?TAq)mSZE8IzAi9J z0j_?rW?39En7o7|(RgJIo+GXQ9Cbj!p0=bDf;76qd>kfn91NJxPEuou4qiJ)qozEs}#9Wl-yX|1%Wt+s;RndxOdX^7OWv1S;Z8IU^{0N6h@#_=JRpDbm9< zEtLQ&_h;cr$thwee^-Mb`ry>Od=Er=fH5p5v7n;TpeV+arVLxv)GS@|*fcwrxbWmb zWW2Z+l+gHUpbD1h5EuMr@LdWjy2p;jx}5MS?DdETtbcYngo#+kHrBbaZIAe}?zOnJ zb7-kWLIIr^nI_rsfYct@=vLK5R`d0luYQH?8f<4D?BeZOD93B+JL=hF*r@D5#} zTx)-?*rAS4yGSl^py9e@N^5c>AacJ{HH*bjEGqRopHB3!x$4nb%0oi7vJw54a@sXq zzGlX_^9U_*86cW8tmRsDGQJz|%r;3+o*SAMJ(6>WPl;t0glNHaJgXc9I zTowWu@@6kZ{da`ir0B$S^OhWCLTh`<&yL!VI=6LudY$Oj^Ns?N7Gp75 z(N|R0)5e|ez0eU6X>tj#3#RA`V7dAAV-oKVdWN>aZ&Q6g={`0Vc0k%2Q-m+(i#v`f zFAJzY(2yTIUjLlob$6f5|8(L@Pr=RHh4b?td-aI;0^h!X^SHs)3l;$X$M**%2oJhw zH68##=+);gf@uZXIp~RL30%l5gi+-(o2h!C2=kw%Md;nkS?dgPHaaUK0mB~E~j=!$o1WG`5o(3n%YaTpe=8VTYO0pC2E%sLVHnhfrPRFY~ z*33t*riNu^U;$-TU!^qjiDlaqL6>{$Z1(wp9a5wWy`HTsX|<8(GcIV0^b5rC-qBV-wp7 zzJ_ck9J9FtABtb=n ziG1^_nQ~>|rSW^w=LkbQ9!9ss`BjDiy%*eRVgx9H+4_a+*)~>E!d~u2y9J}JS^!Tt z=fuJsU&H0d(ao%sV|t`ynJjzeY-s$I+Y|z^stt>Esd!R4iGc9uBwV{j{d8y5AvBlU zGp_n*MY>^zj!r-FQBxY2TZO>SBY1BkP30orKyb-Vk*qiSA9LOcLbmY8QO(c14+S(F zdG1i_ODgM9>)TEdJ)zGWSBrXEr{lXByg2pmxNpwfOZ}WUsGhSV$^7h)!(0ks6Bp4- zIq4d{7?cswZu!zP%*|7;nefcRKRep!a9(U0 z`H0;i&Aztg!$Y!10Bu!i1*GkU;RByg)sjE;w2b-uunS%mvnR{m!v9!KzVC9qTv(6r ztAHCF3Kv=j6aGrik89KtexJ;F{~IbeP$+dL@z0r3e-1!`P?vbT4Ch!7hy1k=k&>;A z1|r$i(feM6*B2m8%iPaBuPJ6id?*v`-ag_$uu6r3HQk{5+ZNRHK8nY1ahUv$70F_T z%q1Vp!%L`T1j6ezwfIt)cqs9-9WF&TyBGc+4c8IGW8l9FSyDtWG6PiBUN?39DFtHl z@)j8yGa&ku;!n{6AcIr9;D|2-U!Mapc-yN|qnG^n81VpNqYq8khq~|LNn9h}NRlbW zLuMX9NtV?(0sTZ8);_lKL^ZbfV36BnFe`(vqDUDM=5F(dR~|hqB&i=}8f!znW~zD; z#~GZ@S_~7_fJ&R~2U(#?srjVUb*7h7qK?p&Fde_mL7Gxz}&C~-A4Us3@#%SFR#;TxxE6sYj*v4ap9@Npu zZy61sdC>sn-a9^_)Zp8tSoP9)?}TDQ1r^9{|9opp|tIuK{G*6sd=<*9N}$(^4BGbO|SJ#E2& z_5ZlaRar~BrT3)v{@1jH+u}_E;)hBg`;Bm-kA>KmCLN2xcy+NkD%^<~H25o0N1G#G z7XX;Vy}u&GO?rER>WJv!eDusGEIdM<9(K=Mk>>iN$mEn%F24ZRyBKUzT7H28!X-`* zU~&(|RaK*lG9T-^Rn)Y!O8aLSx#d>2b-$*se_)pr@_Mih0qd|Qx|)aHr&7iCInp#w z%%&iwrXAkoeO~n$E%6v1Sle-$AM*&_-aWKkZ}6OXcl1;L+lCkFXrF~KbXGwY=A+0x zv={#Bi5DQ?qJAj?{4kJ$G}WYW6^>XyN+UNLdEg;G_Ab))B+pO}+frD+o%bIRU3?IwX&Z!qabPd0u zYKrl4!}dK#L7xXaaAzaN8UWe`UyVk&615lOhrS5nw8j1A58KPrCaJrajKKVTzpr2a zq9qD8j?PaHW#<93Lf2127dK4M4j^^g590L5>OzE;M`|3a@3FLW1F7^B4Tb4!-U(B3 zAy@@5bM-w$GEp+FNN|He)*<|Vl2@qtG-p=AK~1Ni$ZLU3iX`?+nZ-g(`VWg>SN}-C z6C7+di<9UmrLl2ZRa_W^VinXjHARXjO{T{Ewi%xt9D6fvMr!n?S$WM2J~99+uE#m* zTia2w58Ru`_432=QxSW1?emr5-S9cWNKK_AOnT!66$qClz!kGitPYA$iS8>&Wwv%K z%(OEbDif64-r~pQ@9`sP8D)eJrO6yiRk#)*Y=zwrqPnK-fIz%)9Bo6`uf(qk-zN$X zvAdGEC!~E{1;W>T7T*g7T^83>ylB2Ih{u2;;~Q$42@@X_!4n51_!r@O3}T98hPt$n z`RPmOx}Po1G$e4wraHCB^vNr1fxCCMp*<(Mk8htAH3nZk>h&Y(6lMjuB0iI1it!IR z?q7PLptU41z=sWs=ld>onxYxY;Z056zcAKPWgu|6g z%bP7X^lRrOFw|_DFR}CdEnh1a?Dpco3w)=weKUq{@~&N_V|-lqNta^jbT#pvtNL21 zLZQ^$OdYs=&HhQB??y!Vp7h0L$p?O)tr{TyT%x#sd;}=(68pK^^6|gP(Zs79+LIsX zY2@bFYuf)1C@u$qSNxHs@+^Pe_x|05_%~|Aq{XY_*j4oJ6IlpMVr1-JQ9bI3~`<2w)b7I zOFa&F#S+R`3do9;y(eK1D5f4Cx^<-rG+xwBH+U+_QYG;kV-EfU<*c5>grB}HRqGRDwlYV21XR)ffZ)~Nb7B-RVF=ZFax1t zhbLS2N!lcmAXllm#XmuDa;=d1t(DC6NCKqIkd()wQpbD5fVHHh96jZjgVmfYVm_`= z*RImf7?~`SIj*c`+17g^(_>fL{2!wb6xagJ{?{l}X04|qVu1LUTk-;*`X=~qXn+SV zFbw&J%7n?p6IEt(K02E|q5SVo&*8)M&y)>`k$e9bh4@DrM@gjmpZO3&1Bz5GmI^co zOc-&e$43uyy$eXj5qEl?egS%cvDU<$oVe0zcW}_k>J3j3hpN>bo8g#%He_RZq>UN}YUs&37M7;NDo7&nlTKVkx zWpw}4aMmnji%4oV#v@zjjeRiqXi_N^SGq>sSs2RxTg4 z-ZzN?3Kup@QbTKlsh2J_pdd>;W3lAIRA9F~JJslTpY9_#(t)#ZBXWS}Q$zVgsC39| z0JAQivZ7duKB?4!({Sbeeaa&k^dI)!&>Y$+qLW?yhq=MOHj)u#5Y!(V~Y;!C}CPfM;MG0+&az>9g_=H4@rz<{! zUrl#=26ocvrhIn^1-Ic?nWx5=*l#$rQKU`e?)EQ zC9Rdo>#YCH^w1r}TF<{Ed-%0JN9s9&7r5rw{A<&QOd9c)$>?rPc|Pz`3*OKd!7C zdV1aJz?X;C>lvMhn#$qJ_E>U{Ytq!N9?z?b8V}#gqA?G^$fJOiYK3ds(I1R{?lr+l zHXDvm59)!|2#Y(HZlFkVU5{s%T;861-c6(Q7Ibos*H}aq+=FLQDy&bGX#BB_g>H zLa3=G1aAmn*ndLPpTvZKix<1WU9bmkisf{$godippLM?u#%_N9bx2UV^80Agj z8TVOla4h0?VAtLNl zMZ(-FLM{?V^JzdyWV#`u#s5Cl4xqe827VmtVO7L*5k4R({yxecrA#)uH&DD>4{?=K zh8Q_W(kx&i9Ywg8`|-e)12-Up#payitd~mYYLu$hXG&72x_mD(KGnR0_Y#vTlTvcL zR;~?Qy?VGjmwR0FToKiYI-s|r3yPHk3DatHm}&Qf(N*#XNVsXu%LVzALprK=V6`eiHO?P8( zaNMi&FmErmTy8_-o!{(X{^?lxtsleh0?!W%07?fQ2nXRiycq}6u25poWVE?D>D}3) z3j4PNH7h^{d?lLZ0n&>l{&*Y5e21#K5^Fs-7eSYQ!XLk1Tqhz!5*c{`ydD<#YndnZ zl`@0=TISiL1=y+oB17H@XSd1d8>Q~~--B^C7zx00(3s1R9=9i1X6Q8pPbg1h?q zQ8;_xX>b2nJv~jgJq?Cvna_m{IsmYq(vM4_1MfeN5EInT5U{mp^X*&v&sNjCXx0zT zY(E`)!|Kk#s=m|lGBWbRwVvXOkw?1Q5PM0!l7?+Rb zGPsDgnhDdrnksa=iQ)^5L2IU0thKYQ+5}J!FAWl!Z{$SLVX|xKwbHXRQ4I<)-5NF2~^I*4+5= z8H0FdgNJsYh>KLN)wNKjo893vtCPd7aa50mn3`KXt;^jGcchCJ2zpctqN4TgOjFMH zb_{S?2+W&2+mL6Xq+Txb=WVm;Ry#M{f&+qGOuK(c=}g|tyy^YznlIHBONBw}IJnEJ zZSIcMyFah?Pxrt4C&likAoUWoCTJv_>Ziqr0#p>K`WU7t0Ki-Xk8unw8BnQ8^n~=O zz(_HuZR=%fay!#y6pNpaW~5vq|4L+HUd2i@&n>+rC}W+#Pz*0C0Usx|5*ZREIwGZ> zAVS!Dq=Ke8Q%_P|=USs>(aIzO-)9?a;5w@JA^^0ZW9cov$4tm%?*2_)_eXq^wpr5- zQGA>%n2z6nsN|ZZkS;i=YOONU-eZ`)O2`OV zmH*KkaAxu)lN2EDi#8N~-dRR)Qm0rFifqA8@9kc2Kr)rS`hQI46?Pl7uKo(Ae92J9 z@#cn-YsWVunW46+Z^PC0pVIfMHRtIk(69FEmL7BeIvG{!2Ic3_P@$2%DgJ(3oP$@9Q6~n_8SuvW0%F`TQ)!%>gHAh}^7j+YtS45vU_#ns0t1jv8uW zXKSe@kI%jkbJJ(*p(!gJU-BdVNMEcK`QrqN<8H`oiN?iP5(}g~(CCrNNZl7>z7gN5 zcRg5gWd&bMj4MIgxxaQa^b#3O^8+cpXz=i&IC@FVpWXFHih|HHt$P3eQTNt=QMX&a z_{@+q62s6b(xrlgAc8}uw3LW+i-1Tf4k_K;-Q6V)NVkXxNOyxYh;lyM_r3S_-t|1^ zIs1Fg>-#5MKU{0Q*IMrw`c8~t5ysEntw1DtB!=-EbbQ}usCGEJ`=Qh+CdqqV_Oi;^ z4`ET_?l=QD&HZy?{Xp|Cc2bHME{Nt8%PXoKb>%#0=wj0CpZSQV5 zRV7W2Fueq;iz|WAm@5RoS~<~xut0kN$?VsCv-01@)&xPl7H$*)ro8&5G4=KiWG~%)eErl2p6LnO z6Bs+a1@07VFan(*-~#Uz9-Wr%PKFz=t8AZ=QCMW2mGfK`;h0)nQ!8Bh*c4Gv*YchV zmfdKU{IVL|^FA)2BdojkVx{%6Nq#H*FL{=t51Bh~8&^BXB#uC<497K=(5%mF(*R3rs5Id1Wh zj#h9hx^(q|bMJ&mxMm4+1MIMuXiF;Em^_yMJGY^t2xC>{laoPsYt0M7z#jp3%fzlB z4%(00D|SZA9iY!8IIGHx-t5d|My#Gzh?qV3M9*e1VYt+9-bTB95tg{b{zWiK)B+k+ zGZ3Tor7y-Qa4om;(t)3m)5+F-TIq64Fm!Ds@1WWP z!`*3HyrFE5V8-Sd$;|t>v?6`U^W)7w+(oa#!~SBGP0<5}tVkJ<5R(WFUV6g3I?{;= z1@aYr5HKl2Ux6p%)3~dKYe9ZOujVuO=tE_dFs`TP1K^y=f3sFT+8YzV}SobFrv~*_BBtKpZzr^)bOY0%CK9=>jo@UDS4JpT)8S zc=pyPUna(&^KUkANR@>h=@4V)&8Tof`}X-5D|F`r&G|-@k`ym%#(sL))b`*$#syE! z*tM3IS-uN3!t*jOzcdb#Sh_WQWIxDNiP z%icNc4a`iF_Je#=i99g83p__y;*84SN3rLM7(z-d2GliBT6jNXR4dAEQ%2fZ z1c1?b>7Xx0?$6rrqHiT1f3@qnc{1hr<=M%!%WBEVKZ5g8L4pgu(8trEGCPmIL~4l& z4aah-v|_o7m$PD!(jV7eF2VFb;7q9FFgLi+I?xU)Y?Y<~f~O~s-e#Nf;M~%Zv9;Xb zbXP=yjcK-B-l2Dq0xKa}zyYUqmizu-XxwBuv1Zp)JtSAU>;uT6u34mVW|tdzyl{|Z zeYQfVBG5M=q1*x53Y$8uJ@793!9&{po2Y5BXNSC&6~z6DVXMntG>l=cfB~J36D4sQhH^H~;cTjSk_+7MyIGt8 zlk-PH1HKU%((WkyzKzLflFzwBX8FZ@aGrjeMl}9W0p>m$YlWf4DQUB)v7AbDZZDsf`aRyg4 z`T(^2YmLr?Et|+D3yrS2TL0yiEX!2`M}X+jHrUZX!mK@~ZrPQ1riMOt5J_OzFkin` z?KUvT-aKbUh|H}8YV?e`eR~IBwqR=R?)TQ;;wHjS3Zec8a36{mhIuGydujLrYx>C7 zZ*+l(+4TGZ7ueH;$BxOsEmp{69k_YEE{762z&NOcByTX>Qe|ZLgCmD=phf&zPJa@U z#XZab^_)TX`|g1k>v!^1LL^Vd?^E#>q~<89SDM^eXX?)4Ms6hu+M8(4w z5x19IYpKfY!;c-LZ%5UI+iwb0e&Py~jT4}ql(*_DT4YgR^yJ+dKfg6Fqt?W08xhG* zI8hGneV$svAC1%6{9AfIwgrDiKIB3G zTP}c|xoX#pyzyGtj4gRe^U+xFrEU~tdtG)M2q)PS!;y62hJ?9jarCM6RXu9&hb zc0Fq<&QDkMG!TsAQ>=aO9rMhBDQH4~6`U$6J6NsKB8Nf=)n!064>I>4mGotL6Dlpm zo*Up(IGb<3*{6K2KZTn4+iTV^&JfHJib;9foT}aC_3u5;(|2WYGV_i&N3<=r=; zKRbfbF1b(cO?MEY4%E{~x3pRyR$=Z)gSq#jooFx#m+r{o(+kYn3K&5;28LoRsCrHe z!i4thnbgB3UlZef$O+!!^upHyqtR~tmqo- zBN1`v%ImKQ0qCED=EQMmyc5d#)~+{_~zE)4TzY@33+i(fqcOIZy-- z3N~1;T)~YeH65weA=d8q69y1)0`Zzm23vr5qAQ7|Y_fv)J**p2BdW-)4^9w=SYGL&zbO452#s@zsYH+1jz+^F5}yY)C(sILpxKUz~O? z_x=5P`WFQJFT!GcNHqVkx-!LD{8n9!@RjPn7?}XKL=+f1cyHkaITE>uL(XPrtO?@| zN8-?i4~s!oNrl8C;2P*y2sT^7QwaI19CY{()dW&Zwf(o*>M+Nir#NuI4pY?Aeaz*+ zBE23n0izanxp)UJar2basesjFONjPzDpo3`fi1M7;c0^GkM6W6rAG#A9{v!jfXqmk zEIS}spi)aaGTn&F9eM=XkjolzD$t=D-dlT#t*2u3u)w3d&=!8-r&Syyy>C_8e7vz) zhQ{XHDsKn!ynm^#`vb6NP$=N%ahd)pHymBSXpr;_YO+ATT}69giIF!OI1I)ROi$Xu z;h&saYho$x%WOJyg74yt-GPBy4zaoR(3s>ld#$*v#d~ddcenmcb+xoJ+HYgYD|Tq* zsB6CS?pD`@L+za}ukKU}tiIv}G7)Sx%S3VB*$j!2ZTt84PSPx5;cC<1WbpLmjtYLij|djr+PflWRiti3^S=WxViP$At;0tAh0iC%|9;0pFdGY`keT z)!LZM_{Dj(#A`-|Dtz4@SwzD$@3$C!5`jl^)44Z{FuK7vzxjj0?DOET@qAqRBgdD{y!-k=oMpp`>X8kqWc_VR8FmqV+iGV-)xuSBl!{N5kH(9=HhV_2` z_D{^|ay@Fu?cQ$byMd}Yq^Dn|$0?+Q6R(B2wLhj+e%txrmO^MaF%z6MuDZLz?}137$*oR-nwK|iL}2kOmKt?s5eNt#E_18VC||zVLn{q+?T;Kth3nh& zzi8dA%J2#3$FF5L61Ggw&Bc-WN6ZPJ5QpcK|8B8~2NET?_Dr_qH;`+RK_96|<8@~` z5g<&ueHQm~20$6#LOS_ffd#QSOy;>bg243ZN+?7|`AQ2!N#+=llpId> zR9^Q@LP}1qbDDu!mSlB1R!!%BKfeeMC8@x>cy~x@6_b)6wrrqB zg41A1MTBSK{cTP#$nKWyD~$atvZ+&xor{LCF1Gx~cl#gv9B=G)0|fGBqoNC6O*$_uJ{RD^zyU*bR!bOUzkh zrew27Cxgjhr6&H16!WVxT=L>4l_U;)OU^5d|yYE3b|Go@! z>EA7m=>tIS(6#;U8}7g&;<|azelN{~zWu)X&#;4jo-X-=fuP&kS%4+<&5<+gX%|A|C zJuNVvFzDhrLVM}zfc5yzwi6EK;r7XlA+e5FkAQcuK(O1v_Q^sp@tjlcJ;csN_gnXA zfkk%i8L@G^Y`o3x+Z*rdFA0L4E1C4Ay$LQ{d;NXSIhTC&Sss|C%tHt)e)#NsE+~Pj z3FiUJ++ET}=gICO=rG(A^2&JL1@iubygNReJItLdR5`5?M^)fG7I^q%(EKhQ?wfaH z6G0DJAUmm-KN^Z0ZZ}iWo)&QI&7=XT>r06nV9Xuf55R@$!6hX`HN6$d$pN~H8D1@+@EWqL|#P$sB9>LOYkk-jc z?n$XU!dc3sFpPg!r}L6C&{&c2G}NLHhI>22Y6}G}9p}K^!w=QlO8RE8oFlwY5j2q% zT|}btuI0x!zYfmWl34R@3C(Y=*l?y|uP?GPWMQ&TU&VxRY02^HJIFPNld=lSb-Yg? zfH-EyuqEUPzCS8=O!C&_u=c%MT2UDj;%z!^!Kd)}4A(xODP;#lepg?#&yri0dddiT zxAdch?W{QUXryIdeZY1?!o_F*5rKh%kN#lcUY43rCr^h$*<_|aLuw2V0XQ4{%ThTo z(Ddrq_cusA*Slax&(v*#P)+`wS6FgR63qyL<7U?)+GXY|u4;MXMz~Fr5a0x&|8@8D z{-oDjo2vr}ov9nZEA(f5_Cy~@F?@Nouz2*!L&bs2J0>MH?JgN2SRLWz13>B&lB_p5 zc>tvLEy>o*y&}JBX4aWC%;C7`5?|&rRut9kxu7JEQU|m2Y7INqjDo`e z3l8sFje(gv%%J=%idx(>Fpt`KPexBh0$pB@m{m&t^n}F|hlz>qu##6e>TazUBl^!&Vi*nxQpWqdU4(& zD2+7OZr})S60hG%>EWVqr1-dZp41@}BFU@8_Tm@4(qiG4J5Foh{z} zg`Zq}&szze@zqIRe`hly$JodBsY?`}zd}t}#OCwEry(!Lq@I`XmFqv=wjP18skBa5 z#ECe55ltFkz_9D0y&K%L-hVt`_5r_jhM#J#F4X-4e%7?X;uA22`{njYNH8Z|eYn8v zkNsf(+k>ae@mU)up`@eR4)b@e&zxK?(?;8#uRj!MS;XS?-l<#@m~puWuKuF`ef_R2 z!P)A2zd_V;?$=uvd$|C`bF(?@$N6q$oap^+#{0_1^-f0R!{S?<=!*zi+~?kVqnp~` z;dhOSSzEOScJ5K~JJ^je0!~lA6V_z~-e2qQQ%1p$p0Dc`dzX(ytep6Kr9{2-Z9-n8 zlVeTtLm`)+M(Kl@9&iZ4)my35Ar#tJ5LpgwQi^m+Z0>iC(^hidi`qb%vLKh~4S7ro z6iiFD4f9oy7Ce0#mWPy}YTVSq_P>FjH7r4eK&!P(8W5$aNHQvMXhAJ9@jU6Js6>gh zREv!W3&$mh$2fxY`oZKuYf_iGp7z1Ql3=Q&wYJ-(-$Ly445=+mQG$~ZK{qiq33j`? z=n(0_RYoZI_wKF-kWC0Jy~&NLqav82a)i?%J;FT)#4Nra^2u7W9B;2%A@rNq-KCf~ z$F&{~Gemgxo#+esiS}zsBU%tWW=GRtG9E#)$PHLRirUA3^BUt5?5 z*|MO{apf=Lh+VvzARGZW{?q7Kwf`nWE_(nIr(9cMQz>=<_$o!wCU?;ovgq2XD0=u0?{t*WBOmePZe~ct?iw7^rD_0pZ;{%`dR;7CR|@gs0qfwrEaB9t8T>1VZIsVGIv}ymzHJ!!Qw!U{b%_;9kec>5b#ip0tNnnL!gA1t+J@z^gPV z_pR07WVjZ?aU>_6LXA}!^!|$0z1K8u7d}ig3)W>$7!BL058-HF=i0(8cL-2b&gbx>evH8jMQ!GiayC+jw+Hu`lJ|nzdEa zd_bnkVaxVng_8Y%uv3{MtYs4&Z3snZ$~;P6<_*WEHt~LzF^;n{)i^LBy=Q0xoodD5 z9QM55aIiX@rI4oduJLGdyvllZ@ZFyxg#Y(jSO)2D^l>~rZe76G9@L6ODyRj_A57fh z5GaKKWgtVk1qh>&Cp{AeUo%7cCj(sxXJX!88;jSBe8~X5m;VHZpFq_+}B(QDq%hVMLcRmvyhen&6FxN^9}^8DuW3olJp|pob&KtBhr8 zW2;gMDO_?18=-UGuAOq)+^(DRsj(%Rn`Gpq5Ya$T{QdEcfMTY7YM9gSP$O&)XO_m_Vc2uNSyGU)ko=~K*y21TLXN9 zN+-cqqsY4tYesYQL--4HzutfOh5s?WQ@>Hzw8Mk|XL{|Vc-C~~Bx(EW)~Od=1GW9O zNqX~Bc)&O^`%>LWV3cEbx(>jRp)RxZFk6Qieu~g~Fu+$4S`NCKdS{80PAPMl&2K03 za+%I-?X=tHZ7~{)+(SQet^9+&kRN^Q*6{|p8l5{%^U0w5R=lxxYoA`x;Q4Ci6=^Zk zICZVRz}@a*Q}|p7eMMS)wHE)B-erO;lEQ6wBJQ~;xFt-VZ9_*URXA`d?e_cQ_j#w8 z7MfwFZWsGu+z-xa?IN;l&DaUqkkWgb=rcQmmUBuFB(N>vXQ5UL9bdSVyafF&$0^2E z#GEG)Qw*f~r3ky;ZPZWzsJ_5$t?p3Q+Rp zK?Hr>(l;}QR5H|zsaH?iH(Pl^jI*=o02dBn5BX5{DdX$PF(@QjqXrH{UI_ zFwAhWe7rr`d(!(F*xkm=buJ=u9vo3gT#V=U*V%E4d7_`tEEfc3%W3Qn2ZdZjhbpbh zGiBZeR~(LFC2A`?&b;lL3yFlg_jEnh{H6gbzj18k+6EH03)p+S!cr5*pw>I$_u&;2 zKQyLK`JtWnh!4{bHH~}?TDv#m+02yG{^EEUsv5N7t7rY)O5k%<4IGl|SeIQxGf+FV zqRQ}{!Z;<5&T@|>6SRm-&AlaNc=F}fRM3ONK{em!>4Z;Gr7`kF14q_5UJ=mFN)t`0 z`u>Dv#{{LwC#~L(A`6lz!I+kpA#cXJ$(P=BFud#}e-CfM@v)zEijs4pVCSRs%<4k8 zqDWr-2<1`!oEpdMPi#TBSd5;0NRnn<;HX_mNzwId{~Ij~zxbaCk^g96y2pQwxcS9; zLlmPJV6u4FT1}2M9@mtI{O)u-d0bmRP-5%c_w~5E7We&j$>T+V+chGLe_F<2fC&H8 z{SrB%y_@&UU9J9l6ERR}6_>p-p5o4g`(Cj%OLTK!K|Bdjf?R<`SKY5q3N*4>lRUdu zf8W-gCPD1E%i!+!OMWhdl^O__7Znf~WZ`73f$$HGijEP6g&HA9_+nGj(g}QwlTy<2 z^52kTnMC9klvkJln>$=s8DKmmjvHnMqHJhx@3@=k@;s-re}ENMY=@{H{5;Uo1H|Bb z7@H{|`)FS}yIhXDFgdldl~z6RqHcQo(4+fJ-_bd0ZO;Led<ho_ zXm88iA$?n6>u{+8yR zDoN=F{O+(HdsRapGDNh_l3tLkKfH#2+5LipuTX@Lu^^J`{CS>c(tK>2Q1nreOwnb1 z48OZ-fohqJapvnPd~3Z_+vTMu_fJ~7O|Q}hpLOuq^*5UxQ?(?3O=22@d^z?M%&6PC z@7I7Rj9qVrD zYlKgGddy%(KINYh>PN|agNOV=77vr(LCYjee80^&vVf~+iCszbOfFhYbi&X;MzbKt zTw*&TCss^a6YPv_7eIoqqkDJ7T;BuQn>Z#mykc&r#JXw^gR|3OycooR`{8x2SR2dc$cSfcb#e3GIyt=4nm|3&w6$3E9(>a)Ch&I zmkJ(ow3VSJhdqm!)^v*r-rYfMRthwaue==+|Lev1|BLST4;N?N;Lm*w$CAYEBSC$z{O% z`Yo4wYUfU?ywY~V(S+^s+&ZquU=v()$E&32!GHibH{oUs- z8;#V;KThV9-`qd$XZ%^;KgCP``jnn!PV{>ZZ}_{j0OO8#C!fLRIfrl*{Pe3~9g~K=s(H{umbASzp5#oUz1EP0N zgWu+Y>CIP2fu-N~s7_lC#M=TYoQ z5!HMPm1j~tT3TbjS6G4Zj0Q!I!`>~>@)7iy6mzs+|Pf5t1zX%@gGlM~hj&=>-L*W>pDao6UIMyDHk6 z^(HOhcl2}aHT#;*5 zDyYsoVB`{s7^T~=wp03}93vCXRZCU8#7irw5R;X=U2J{+wpLO#Q*46DXL3_7kwOE3w!%Jknns zQJNkq#Wk77;uZX&@iM%`(onGU| z09kJ>dm&-3I;gh4$@h()dOGRUZKfWXxr>a7bJlibZC`4WH+?j{=2-vY$%PwE<8UGD zB@q6y@3#5)dB%=w`N5O5VE4x#18mivt+(0s)%H#AxScf3;g`8|Da`CAo;0sLEOYzP zH*?&0@@_Ar?A5Bm?D^zL%jrOw$4TGp&-0V_N)6e%pQVa4Ah=neF|wD${d3sDr>*eN zavxU3dD!FAHi|*JUNW1)CmRM*RGqi+=4*t_f0bragCHO{IQQ52lf$O3(2i^94_@w5 zU9v!o8|+k4B!N=%zw>e@)p3Ks35&+xRNe#e>S>Q^0@ zgG|yHh!=Qr)qxF35Kc-U1c`faY+O8ls80mJGazC$og`cxlnO+wqOy}!uOe2f49Ic} zKqM8_&F}8REKCsoEghYFFx*lDL`>JvFcU$YarwtDLu9RXQBC8sMK2xv2Ip2XCi{%1 zSGUtYZ5a8@>>PQZziqZ3U%XE87(0gsW9$+_+%Slh3tv(u~9E$$ANX;*@@SNarH#8t8bDB9gH-JHX0t^zav3+JyJIB z<&v?tRUM2*_SA0DZ}ZD*_F^Jc;f`lh!6m0Z@tfgVAb$9e2T4+o(RDX@7BY?bLq?s8fcBD#NZRn zTQGz%aZmfaotK>s&<6`mW4%3-rNzV*piGHS+J~4%YiRa#M-OkaX@_b$t()G~^mf6;-h%=A*Jq#%YHV6no&1(j8(MQ7uORQ7(WBK-1L)N(1Wto0 z)<~uxQN#oYN!32pSUapzU_5ceDxspXdzPTq3g1`aA?D5-1Abth154Qu9s`+Zwc1dQsZnJ zH?p%@gfEv5!Fk&Jt?28mv)w+tY8VUmN}3(+Nv=Ixg{Vj4Am9*+YI-oE#f=BPFb`52dTbe4 zam2lF@9UMMxU|}BWVL%fWRo!vskJt$*m6&r;Lm5`79Z$Z?7Z3eKI8E(eP9R;_vGRG zOmJIU0xI+^fTr*UTqM2#rZMcR(r-le1h-u+B`knxG?SvvMdFfB^`n|5CL?xNcPDG? zH;8#LiI0E1^i7tzP?vsVNV|nNVTe5V8XhCbk*utEB#(DJgp__=uv`3|TA0dx1{x{S zOd^5(i1_v_YF-K%IkEguL~l0RLA@Nd;~llMDHS%Eo?a2@k6{^wAhySH3am!qI?0ha z#E&OD^=n6B>!+e`X`OZJ1M%c7?M&QK{QX7@2MOJ;vWdM53Se;cu;Km{URw4WR+`@u zokw#8vn;zwcs_xAX!7obS;{^)>P;Ni%eya}-UUk`PMJ?$z0YqssBO!Zc0RRAyS=Xb z3R@%1g^4ZS5jt#xn9G2Nuz@>WWiZ$d)$wSF_?UZDL(ML$GRcoLq|+uoM!H2Olf7Kc zk#hstj7RrIH~)j`PyUvA8IB7$P(p)v1vy z8-wi=6JJE^^<%L?zf{{)Wa>kZJ4H3;E^{~W3D9WcdhvSgIM23RuDay zcAUUirt5$Pv)20O3@_4ZtCUfTk2;gNW~8x!!8SpyXZ>-YP5w3M$3+9DGa&JRVzsdRbIni3C!wR6mUPQ! zpD_qEu)wjSSW|8)_G9WA#JP69^GPz6t{fkzX6)|VrYXEO$JOGy&4`4tI-E>| zl|`Lv0Mi+kydIs$h7X@tvUKXaPMhPCyvg=qWWW1@DTe=Xu*nT-bZ07qbrkQqB!f(E zyI`t=kQPlLt5rhMr~8TVU5YDrk{X^8-6_SrHLP%Jmm`1BOANB0`}74fkr<|<7S>AP z3P4(D#w_1w_*I#6g#d`adA}flL=MeOU8}z$fZZfm;0Mp}bQ*@C=RG!nVscH{{}f~d z%96dY?e>0dFHWs_vhs0-+kkD+%?>1?m}(=y`W9UYkAICI(7RIRJcZ$c93JA5{ie(j zuzT}Rha@^FIpsQ;t{Nf{$eeYt3w{D*&X)S)7V0Co%WCUHVFYncalPx&t-K`7PeHP6 zJ-tjYM5SSI-$*OLkWtI0iL!w)qnDF&IiFp|=U1W!U29gieB0d!!nY5cE8GzKhv!!7 zuAsB;5T^>2{(-xmxH(%uzMw(dThXoUR-B3jM8FA+?v!@cEL{kVMB&~VVRm;Ev+U)< z+1twHZrf+tjmZfJGwLWl38Q`q9`iwaV*B&zdOPLj454eaLjI#Uz478n;#2Fnd84tI zN8IlM_tz7j>Zz)gLv!`UWA$4>+RkLAssd(TQxzozU^g3h*?nLy@VN9N8l%O*@RQvs zj^S}CX($d}Nq*3E0sS07hdxQwN;Z^D!@^f)&>g!S8zPeRPXggb<0z`<)5OJ(>pq(@ z*4lg^(|A7q!}DZ&7VUlQy3&6H0pu%VVQRt?AXu7n2DI^XRlTFK>9G~I} z0w)=d<+0ddqb;=|rZWQBDdtl3G-+DPI(jMgWL9e#{w#%SnZW`ZYgyrcMgU-*9!o-r zSe4e~w1wf;Q08!5EBwMci|d8FK8cX@@>F_GSoK(9A&j)S&>BWN)vH+gJ~wa$x1H=? zvA+MW%;5he0{AG)T5>p|cz65olZwpEqfrg5XGfp4%}b8P^qjYkz8Ji{d0a~u{j7H4 zOKQpSC(Pn-5Dc`q9eiY3w-4|CNYG#;fJ&o&&JK1G8tk_<(g zXC(*>TF&5p@9PfP5pW3z9^j?<)hid|xp7eRx)>kh75wsRH!u3^T*ezrKo17>Kb^Q| zfCi_gdtxx5&QGzMtL(vE6#WL6tb&O=B_Wnu()W9Lh|r8Yq_Cvjb$-d`J{M`Z7hrq0gCaB)zZu&HmS4#kG7 zeMf^{)ueLQ$YayhBT4PGAABZGw!_4*d;049F6wq68bgF;@mdr=1j7*p0`d$3#&|gl zKcX?{qm5yo$AvjycYHa97c=hL$x`fm!wAbpFj6OoYw%k|Mw4VPQ~LHOTG>SfZDh0Z zP{>KTqQkR%=yM)OnQ*~Lw0&Ft(`H0xeh0GvT{6gc?NDJE+^Jj88%Owarw^=C}D&_ z%GW{=xJ&1u<>zpeWpSR!Cdmyur(bRUuPQy_PnEtfP@}2kud`ll#~ad8V?%yhX z#6rXs^^qw3u@x}uos!JicL8*nwZ~1fb|rDNWnZVGmCt}#&-{hrvo}7z;$)tRxPHMQ zLb&dskx_;)0_{i9iP7GgDM{%*FiIVQgpB;xWaipw1!d(zxfRt`uwtFOnkIt?9oOd8 zwh!&P^&Q=1EjnF2gUG&|p-<^SqhACA#=lPSOis_)&CV}bE-tSbtgdfqZElb5?i~ag zj~&i^JpC?nt_dnVh0@6G4Zialy||$#%h*E>ZKPmn$~KK{HwS0P+PQqB?BXO7z9-?c zoF!{Mka(#g)T4&g5lfLp&kg;QAWn~C&2m3d-MlYVRJjGO5kH`hUqE1hm~IoO!)t1Fv* zkHWY{r&wP;|G}S_Q@_8yVzDcnu}ei|9^!qCmXiBaMa&!v7h9AG{-YIy>60PF#65sw zk-#ocMWVUvU#|Awz8Ab>F;}}JjIDPqc-xWp1A)5pWy_*FFzZQ&OZ;|gq-ZY#ZjH2K z>pS+o-gV-SEswuxB|h~@pE7qn)WmBxhf>)CEyjgQm~r(>Ue!M4Ta6ImhSU!EB(K^H5QfsTe{4@*7y7u zm0n5R(=(Y}M+}0Ar_u((bmX256eO5?4g-D7pKs;C3rD$-x`i*|5xj5#gYUuVvwe^Y z+{iAtTRJ!XbuHXV0%nDAMmUB|aykwLIZ>52T|TbQz+OZDo%T7oEzH5WZ~YDu7YO)X zZ%7E9&j@2bR~txn$P{IJFAu~^LR^O4`^4JiYc$48(7^qO`~8rPO~UW!6LW#Iw0Xv(5+KYj`@t`D?>B4u(x z7SQBpb|l!u<%#zGV^2`W>#^588(TdjR?ark%RK5{lx5KgZ;d``aoc#l8|q?mvGdbs z*XWD&#kcMtjf;3v#gfNUM2WO}`wZOW{43-fUmBq?aeMCG*qR~YkUVGl7JV2d;ogVW zY{=L8I&a=HoH1!MGhxzF&;p_Czc_T50TEqYpp@V7ro7Q_4jnd|f2%^TcK;I5)t&9| z8{Yh#@i1O|yf_Zv&GM_8&lLfC0EpI&mheyXJr)THi zFMj;I1UxcnWXscAy>W?CH&BBh81@2vem+| zg*Y~x@2 zAw4hmXz)+*c~JH@xwXap1LI9@;L#P!`UG%EYPErG$StTq76#JO5md41Xn8g^JF(CL z6&Fc=a>cvow_oc|#T=mFxIs}8DwfwUf6y8--#jq2^ogs}pr?(Ow98X)`W(T|5F$Ca zV3254szV!E#tpiVoqx|$tH}m)3paHh|YdB z9Ut)Q364)^hrDRFRRvtuF_Qw~T8yd~V5MUk;WR#uwSOiA!GR{7@V9X+&%4yd-OToH z3$n#S5y6hu$Ea)B|8b(VoN3Q^* zK%#wk;piB7Y&>)Z0H3whu&8&qL11#fc9g#;9-3bEcIdcwFvAm&F&v}XKLWx|zyrEP z&0M|+$8^cg3XzDnP{ol!d^DCOmDKT3A*bxgj^^z}E{Tet!S z#3JW4(8OS+&*{v>FB=U$S~lkMRw-DhSwAd%jJaMyd7%Z1{I@O3d~>57G7h$XZrn)CdWFpyzK zSF${P{{y&z4MZ2$Q4#Uazvq$VXp3e# z>bV885pN~{lmiilkkd%ZMG$%1qDku$$-a_?6~4)Q#Yc%qd!;T1K_m`U(XT&}6NCeT zfV2MgBd?=MEztkiup-$y|E^*EvmYtQ%UI^leEdIYSgsrZhdza@>Z)O>!5aUQ4Qqts zFF%q|KKU;{a;m%HzxOmv@?%29$iU&;$V+?-NBT$7&>bY&ljKpl0U^E`DG}y1h!{$hh;rBv zj)7W(zm>vESCJsc<6eM61ROJnFz8>ZKyK$+7>U8^yCs9M=f~SYgoq_$V&ouTqD@uH zXcQ`kH_UWRK%kyMnD?F`W6WGUZVaA?c!6Xjm*69>_>b`cEHGv98>V>b9>{rqf|23Y zL_QBWuSYL5fz}1zsvnF{2|oj?nT>q7k;+GQ2FBnSWLJ*0r7BcTQmd~w6~%)mT83P3 zx%mdswo@u&Io~<=33BWFfGm7cuRRyD3OY51K-ty`$Sa+~LFu7x-ixJH^@7Nvua5Ft zRGqNGfvCb*!{Y1-wsdPFn##n$5J&@6UvV+iVso~BY2yR3T#8ZwRnMdoUqZ-vu5B&> zQw$)f;XD-7kPc{@E5_~i`T(d`)2-VB!SBm03zl$&Ao<1`2B1>xi%tBN(?FB*Rz@ko zHlN#%kek%M;>0T_H^iUB9UMS5Z}nfN)qjE$H7pZ;cca*Ld+T5J8&0&SWc?i{-Vapi z{|zUm`F=;4S$qCFoXC7T{a2i5ms$1)PJH3r@K>D3!r5_!6F+qI2UJK54*d^tBF7(% z@YioQz6=2xp*It*YdhoLH$vzz0e}-#?{xpyIMIPes12==#7r+qnp7hm7@<6niQJ4X zhGNmCJE=TwvmUKyqA35|`>&?e|7YLs{pBSH`>&1g-%YE3xKRM&j!X_x3iub$O-BRJ z6Y)poIokY5(O8TIYnTI!NgFJTs*GrQMaEAGZBfj zNTOr35d~@xJu)6pFzX|DZoErQwlOh=om3>moGOADpOkxUMchD?2NcaZ{*ejnOjn(g z%9|O^0(GCPio(|v=RrqsBhO>SUGGulLrG;D2@~$%ZCGSnXEFe#VRIFRC#c=m6;Di* z*03bOs6X=5=5m7)CEIg+V@o3~vGgsZdUtM((=5)kMH-gKL4=v=@R2buk7~G>9OIC! zC>#kSW_yCMnTA`dO*IsdIGN(<#i9l)=bc%#lNe$(C=K`Z``GBOGBsbuve2;`jW=v7 z_5oGddl!G}#Qe^+i|*ellPW#{}{I`q)A583}G`T!N6rX~3keZY#r z>c2J2{n{HX3|N3q`X;dMpAK`bh=5=RkUBWzmtih4EamTpx$6;s`J@0^t+H1kYkp0q z+S1zDl}FJ1`!FZb@$r{WYEd!!-yY`v*(d!=Z*0akWa5cp17F4{_OzqfRz%*lZ`F5e>2SK+{TmDfPXbCfnu0Tv90YLiBAzaEw;T& zs`F8=wB3dM!%FG@SD*ARmN9|t=%=@shP5={j@&4G+U$;KFyYcCVCIE5B8 zpw5N!tHdieyF#8YujRwR&nlrNFgI+?uvB(7I9t-IF@v@HT9apZE+S0pBB?O zK)RO6uy&y~z^^78l!wF4(E-w8fDz>sowIMKlve6kOUkP8AhXDyxptIBvhc;_#31I( zCGR7IJ4(Yi9K|519<7B6m`^~SzTg~j>YJ3sKohNnV}2#T_&UY|syd5y$0<5XZo+9g zwJETnULBMV3*Tt`xLtAccoWcnBi(O-q5i_8Wek!9-mNq@^l}I+2doicm>OIhamTsn zU0h0>mz+>aMm!a)394ZmBG`L0_XCEY;*KENVc(4h>~BuJA$StKZ<<7|lI_rWY?Anf=QgZ=o9Y;?|R+JjmA2s*l@yLxJ3`~Pj2<+p#Pzdy#w zC@5MZ(vQg!eJ?0Z?d(pGdYCi(X0qJ*uFNnQmYR5hBveh>@qxi?Sy9LdQ}psEt=KvE znIU`jJH=)cC{hMj0POXTH~l5pd)PJfw5fd<)a6xphjmx!OqrLMBch_~g;Ce#L*KyO z|C4`ap;ArBU|9?{d?%9f_C!n zp__@6m0!_KLEq+>i`UwXm2X7&saAJk(aqS@n*h2ga_jp*Y$iJceuy22qOD66M^^s? z-TduuXY=!8F=dBRc94G}D0#=f(_7bMi4?EaeC7+fnX-cTif;Dy8?UI-DqBijPnzwX zDAsM57#^CuIa&2fj)e+l^srq(ZL-P;#xA_Ye3Zi8=(-D#xn;X$b< zYS>kCnNb)v5~m^bqIf`F>=KFXILKP^l7-)L$&r?{plmj+q0+1b`yN!ex{Ew4Gd`p{y5_qwXS(U*jxpE=@{-LR~ciU0#(SN7am*45#yf&Vy-Q2a$^pu{c-e ze|X(8&;Y(ZB-`+gs~lE?<7yzAL_=RT-zKOHP{mDMi;FPmz|*NZMnr5iA&=D_GJr&vbmm<`LEQD*LoqBM5=$tcKndRng^;8iETO>USX7#pTehE2 zP$AMIZb_(U-z5}ODEoE^1tVDWh_CGUq+-d`S3-f4yW`2?QrN(9-Sssrp`f;~`TC7H z$=lx&3V-33`x!CqJRn%j^!1^5zLfqod@N5Xn&DiYi*dBq|E}y z-J=>ec4^I)3X40YX;ezTrZqiaGhJx+Y@x_hhv`1nwwFPm7U<&8-y;|mLHgA1C(Me$OM|yiFpoubmem_P_PP~mUz4r0(n7I zlem*P6-PiEl%^6nsDXPyB9}tNQkoBy%6H}c*~}B{qe~=iU9Xo&JVr>^as=K`_F|45 z<><}iznT`5&hyE-7bI0wz((q}Zat2he%^^)K1cniwLG3ncu)#g(uZD9eslo}Qsm56 zC|4HGhr*9^f{No`jTT3P^@KJ3l7Q%2RP{wBUeYWmpQ9Z^lQw~B3Hm`g@=R@@>eGW2 z5eQU;ID#qcISmdHT^_qKHvobn7lz22m?*qba)+nhJcq5%U0A;E&FcCr0ANseg1%=3pdWp!FXrq z7BGCk;|oRiIBs~bjx{MuRL2AH z!JipR(TT3oLrTVfP0{JuA{2$9(zQ#6Np$auUa@vvx%bCHfq(E2^Q8=WLW<-)kpzKn zqjaR<2>P=IqNWg!;`QMZbX zQ3i#@Ca56Lrs7Bhyf+Tl1l|ieiC2J5QX^qkjn+W115imM+ma|bnjJU&a|L@)A_U&j z8x8IRvW`BnVU|guY@RXUW(btU8B!~DJa9<6h9B5B9Qa8Tqw`Vv{LG``1y%?YIs^|j zT6luMWp;@+(niDdsEcWS30<(o9gCyhrWydHpJ@|P4Bu#eQr*Cg#a0ycCPB`4Np^+e zCpaK=L+P_z>ZGWS4rqz={!xR4JIKJ8?>`1`UBa~Q+o*Zr(y=#c9)Z4$8b)%gU(tQM z{L7IeCLv?z)}UVKmHd;yZVJQSZrLV&LU}dc=1{K2;kt8znckJ{*ld9++>Dxjw^-dZ6;R9 zaklj0z!~9VetBf#NOmefYR7RFq1uWE#uFJ*!Bt95mr4G>TT^xvN90~iRYFB32OOE&{_`hZ^qgQ^+F=-|N=L9Z5=bfaPU1 zmB26~lJKZ#OY;~kHkcThoF>Mp=bVledKhNr7um%X140jn(#o33(5v5t9_r`YJ4Neu ze->ab8z>z9S?D1etTgg??`PoyueEeMM+0&*KWYW{Mzm%J`)cHL1 z>NPm}qulJDGex$3B{%yH;D6uCOs#@~Ud=h`+|v?|5~om21mjSPqfA8D(esCJ5Yh<{ zsDO#NqOA1Q1qDfdK9C;ws*qGXuhu9dDZC?)nG^>!NNlWeHf=mbD{zoF$*^`}k<4J} z0<*k|sb7(tg+-@@EJ4p;Zx-Wq%Dzm-$-$spYVp}(3V*Kx;KCZRrdTSlYOJ&1AUjAL zKcdx1Q&L%cO(xz!f}RBhcM*nz&DR1}m~cGCRSMG(qh)85{Nsy7V;~=3;QA3ZJ0DVt zSaeA@hreB|2cm}S(0(`$yHdT~zfze6?^~%pANAU&dWtX5$KE9(!B73lW_?#Z)s^n5 zo-)nDUM_8|)2t1AtkY5>2DF#KA^Lvm#IB)O)sy4p_@v{M;o4Ejd#Wb|l02;Hi6O1D zLN4(eF3{YPT)sylOI-ne2H&>+AytB#odqLU)l+W9Bv$n#Jo@1AY;ce4qbJsOORH-a z7oYy2>gn(Q3`MuJ@$Af%3uyMfrRjXpum)M3&bA1khdC&d)IVr$0k#AU>VPq@uR=RVgx}vz-lj1~|i$ zd10q84LuQzt1Hl$qlb8 zg)CV^?eAEyT2|GSu*Rf!cVuTHI|_x*n{dcMWarq{N?y4jIkXev3HnOy7ok=^6gelb z9^rv=zOP3GK~;JCFlXDoFWM!Qs{CDP9}59?J^BWIeSJ5iCmLRRY{C8&{Q61S7kV+` zi?q**ASu;6B`wn^BMYOSlN%2^pI=a_T2dBKbgrVZR{CmPqj*D8t8mM;_7m4{_z+_| zelQ2X2E|q18Z{dF0)BaP&OAH`-hDUdMJ;}l_9fB+FY(`%_Wivg|6ES5aWpVp=+gOX zrFF|WP|;jo*e>{W$d3V#_E{gtQ4V5@A_!!iq!XzAYXV~h9FE@?82@vMyyee|yzJ5- zuJsrI(;h>r&QY-u@l8hP53eLg2$1zh5onTPTFp(Q1U$`Kv>!nsCZRs^8o_bIVR7h#0e0Gt_Nl?=d>`<0u zNvHmHzK9X0K<;*Ss7upq$nA|YLXt5|coBRNXVK{AmH_n0KmEC^b4+F5j90aF+ zuV$+<{oit%Z03h{_ZLmM^u2JBFV&nSKIE>*<4dws?{!X+4ouYOt;`Bu`zlnGQ~8D~ z0YX(f)7|}L4_ESu%go^k02maeyuw|fYKFV6bY-p5)w(p8enaCm$=0@{YMu5Q--N0a z*|$c=QtZcfg{sWW8cs8hXMG<%SrDTHs@a)#7gzeVQ1$Os^H-s2fZ>21GZ>nUV*iAo zV(wJVQxc{>SGKapZB7mt0}M(I!kARu6)Ts&=sHTJ-9KIXen9(3IGN1dMu9}1640N@ z<^MU=9QkL}{3Wn`_Z-Go2IVWRMD=X6cO=?x8#pAV3U54qReVX6Yjn*Hb3mcdrHe z8vO`L+Fzh$o!@}Zb>Wu6FYT7}7r-ZAgaKZo@m~}&-jnHHDZaQpn8rN#i;`N=H74E? zy$gJ@i>7C3XJ+qLQp-^qVk&ESfp*)}d?KmE9o7aYshNm%+X1ejq6c`5=HDDC2aQ$s zO_Yw_Eg_ltrldB00PGZhrlkI}0+sVeDDPuG2GG(u`pvFm?Do`-4D^^iM z`cT0+5@BO`vc1i11$U@#7XV6X<|OAe!c>9E&%$L%v?EouHifI$!>0~(z(9@9sv|sZ$L5o>#M40-#GuSz>+m$ z`9Z1Qi2u7v{Sd~rEfKlA7a#LUzM>sx$ijdIXsm#3fKlhP{gToZ(=q~5w6d}Rw1ble zOChIwSA0V|j7qR*2cXnXZ0+pn)s5H%)-&>e2KX;4_4n78Qv^OPDF?qCiZj2@l?LI> zHEvRH2#-Z$r)aa}CH_#ds4xmmnP8!mAtFEbAnhW{ZEA8K0;vI~5;Ycvm>K!9e}Gc| zzXGgt@70&E$A({^I{T~!0-*}awT9Y#y$8gUJe>kzDJn5NC3SIs1yKR79&&KP{t7A@ z_|~DmUzFM>LZ~4R8X=hmJR(@L0JPc&9t(&9yULj`)gj0 z{T1{@%>FYQx<}2Z1SPA}d-JOLgNM0~IhYQXUIOl_KlUP^3Fl^OBsz6D6fAJ@-cjSnLvQk2?U7Axf8;p(=X5B$ zztW+;UX=QIgnp%F*cT4k5|+vvI!rD~#z_}#YV32I*@*z@mWFPp3L*QS-B=Y28F>GQ zZG3dq&t@YrjkPWBzSDwtifkqcRJZ%+#_BHIRbpWTyFp;h8sclXRjJfr`i0+h4I z^V#7O8mwiGA>t`#8pX|}8cu!JJ{y@=r$3~3ru5T;_vTg=n6rnf6lWG#uo%>mDsN@c zM7gVl>4`k-4wq)EkNdA!9{)K7cSTW5(5RepjqVVsor^j8)RRIJ-cUl z411vK&)cFBEiWB5jr(K85dbYOYG2D+E%+_!2`kt`J+UU+lGi03@i zr$)}RM-hl3MSVP3oE7@w4J3B*CQQ)_L+m_8(qZg3aZaT3XUziK*>ZK3XdH-8-sSda zo)|Ix1!re=Vm#&i89w@?(D6Og^Zx_?4!}k${#nJ9SsaE#n@1CMb(D(KwPe(^#lr-? zz8az%vIc;PgG_b0h(4MW-$%}3x3ahUw=%Y}-xk;?IR&<*yzqwnd2pghh|xLlad^&xxh=Xz9TbV84((Vc*n%va;ar)^D0@O1{5yae@c{^e*yS z=L&yRx(}lMvaG4%?G~2vpt;&NyyF~S*}yNHhx6P&7M3qjSmenFy_l$YKFWk-yEvV+ zls$-=S7jHX-se0NAgljk%+-YL>1g_{7664++~_roUDjL&_mP|bD(f$$MK0~qvQj8f z6WK24ToI4<8;H{&-a((0>qW~XYif5zLY^!rvhX;_d+utvpLqa$O)-la6MqcBp)!)t z!6FG~3Bq`nvPnK>%{>M)O!lOU8FIRNk zxAw)Vx3<;9_!CC_gZ9BxkHTp%aOtg;h+9K&zqe}FrsEwa>{MTtq!!Nx3X7=@dKnlC`e zzgEPDNhM@cmeu2r7pdM5i5d!EpDb6eFwNR@`Zq!-{y9~q`Day@hpz#L7VswNh>1`6 zX)}j|#lxLFRZ}2*v^Zwpp9FhVc58!42Or3I`YvL^URL-B+Fxike`WRmnT!xPh`};$ z9-NF{-k!d4AJBehUHq{*0}4Pp+g<%Hki>^2CZ&c&qyg>hB6wF8xV!pW_?B0(bM0AE zjO?0fiLV0U#V_q_FK0lhWp5Gdy1vV}{mq<#-xM09#K5jKMU2PzK8!fjFCL(u2~07y zz??jNzN;q=wJ@BasytUe=C`0sb;6fGirA$Dk&{GBL8D`09a*Goz!tUEg;pxlbwJ(v zx6)4jIfeE+=$KWHHWPBgFNDD*wnL7fWKmpR_z;VR9<%zy+#!0K>Fx*xdghVO$L@dqJYWD_$Lv2!MN{CvWoK)5XgD21NkMS>kVSgzE z?4MI^8h=!7D?=J;QKOw_kycuFHRQxq8Hk`D(v)!StGbj?3`?-cNa45GEq@mggA^g0 z5URb}`1@az*gC`g0eStG)~`Q}c?tkU{UYW`gc7U%+waQwnq$Ko^V>cDZ^t|tv*NMw zc>8a3qTqpeaY8_j&8?nrNnvBIcw;l^7zqJ?YWNa^94(8=&YEm#ZDAr2^4uH}Ug|%b zp7VQDh^Hf1l4gv_ zUzX@zU;;i;wl^h|V&;i>I9KC}DT1>d>px@&F^v+MlR!m_gcqUoPIm3zyl8;ZA^|7w z+r0FJ^9sJJu)p(?KUrHDIKM)y0IT$f8`!+WzNxUc`Ej(K?pT4)0fD06pk3bklJ~Dl z>sx}Dkt23uHZ~pSX}-n>@ZKCg9YBH@OAMBmygYn^3;^{@{O^3VCy2BHG9&GQ`Q0bv z7{R}*rCXobdDv>Kw8)XnwwoZfM4TdcX$@)tS{}&|%i2POo9}L37RSp34E>8#B}Jp; zp)7!wj+}Bp{vbr>==nXv&;McG`@+wqMPX6$B$(RmN1&oe=o~Jc9kT>JV}}p~M{!aL z6scXhBCRV~Q!;PQ|9QYTO5$6NA*pij0uArx7LyosAt9d$XCvun@B#^r-&c7y>Ku8$ zs=NukU5HF;SJHfw2HZMZqdQEMaoZ9XsJxF5K>r`@e+M`?tM+o@r>`G|`Uz)y7WvxA?u91n-u%W4mM;~;pt*%|av#YX4 zudjbt?I!k3i6Tn8b64gzkf4cGTxdU;7lQdOWDc%8<(QE#f0j|8RK1B6xK&>L0A$x) z2053pB56AP7b=b-`c2QrTsm+{Pn8@1_qB<(&b>~y{R>e*f1XLQD{#}1!J9fKI|hC{ zU2Qs&hpS=2O#wqbw6NxMKM>GrFl&Dx;v~nzcCF8lYzAGb#}RmQMD}^^R}-&A7m{SV z37O6fs7;t!IVc9E}XbXkEi{ZR>BLLUH6~g z`2leM;a{t~-JSoNsrnnZFYUX=zf#;d!zuQVV*t4Bp<7C! z=xaBc{2HYXMn!kUm$FLHXTn#?Dn8)bl-KYqTJIj5jV=)+w%!NVQ3Jhp=LZy}Ec@Qi z>tc;G<#z&=P4z2Wx7ZLEU*(Z06?=O{AhL|B?6G4OqjI(T!?$g;HlFG4cGDU?uLOna z5}2r63X6&54T(#XCk7{_C4sbIcIlYV$lQX{`C1-@WnR(cRs5O2D_1a~zKPLDx3Rg& z_uBPNgSM{PRGq86L+U*@3vcM$8o47qK5sJ}xV57xq1#+l?hxjcwX1`=W@9C~r@}|w_MFcss3}D^Y^Y9G}4U^PSCJv8@ zJ!KV_m}KjqnwtDAm{iQ9px8E{q`bn}Z&#wPa^Bphz9k3L+}bXZZd!DsCl1!#I~W!@ zbc-|Ce0byzE7)Ru;vOCG)P?DpJJEM%7l50)iwnzUk5_v~pRK<%eE#aKME|=FDgz&H z%$a$;KLP}k!Vh%Tmhca3^pyuAFVL5eJCSy99pto81UuwcL`U&^MKW&;cE#15-5~>q z5tB&?ahnY#>N$T2CWWsu{bz$oGnvIZ3E1e7f@Ub(fL@y;FT4>gwIV~w$8CetXSuhjoM9$Ayr*di5{?a=ttp8RD@GiWUQY>+0%~d zmnRQDUwc~Jfyeo*ribiEc-2C~(1N`_pY1cQrV(;(uJE8AFmwnIeYk(qE(@Rd-u>^4 z>{;untq&`mNBEttIp=>646#Sh{KA` z*EhCBXI<|Qs5HLX*~b~xKjbWDaqZ?POUrrU+hcd*O{VTXFunh9Ru@PNSDjyMyl1?; z(r`z2^7%{UXRqE0-+I>uGVT4aBjf}2elsF}-4Aw-TG2`_E6D`0o55y!$d63SWO(4J znKbTT>c;(*s|9j0A&EOE5jY3)&6ML?o!+G5GVN(q)N|N03l(vC-~UWjZ#5Z&mO2Xj zgqa+H2yzs%@$Yk^3_0$t=_E8LO(*$Q!m}=EB)b$%^vPUcH77N~M)Xq;|5Fwk^-G7h z^(&sv$P*jJx?d}{dvKOx`uG_QAxGxEm;-v1hM|5BZ)J^t#y{%WyV_PM^RHef{`7zG zm-u#_xa?pM%2*Fl5{|uWVSJbR(lI2je|ffbh@{|+Is;A zW?<>dtb&?4Cs=KL^QD$+ZI`i{>s@PnL_1b}!QXh^@>Us9lb*u(G%DuagYt*PV+Kzi z7fx!EEUfZXtYuE<6FqyLiqXCQD(kM!hpkTx?>_VA9sq{K4JRce)xt#ggRT%{1iLCl zpy^o^hv1ECx;C@Xk<^mm^$U&wTARzYW4EnJ{9`=t-`t1x3CcKdNXQwe=udWsp!5sf` zGhzgED%t6~23#TeD?2g0iuD-ObC>V>79T{W-hbhUKN;}i<1ITtKuMtE9T0kjOjgSe z*#D&|;}S0hC4Eh6SB=EvXMhdz3QCi_$|_@Bf$-a1tc6E@R|C%0ij9KM?%Yk`9KNMf z@H|{VgU6jKC!$p|&aeba^uh>IN zP^ zQiy{^riSDJ6c!$NWe{gCL2rQ zS*H~gXR8}%mQ-eWeeKH4EwyE>*X`QcJ1^|zknBcYjoA0-RD8`ww)Hg_yFdG+Jwpd% zHCOo%z4DB0`FUlLa@fY3w^tXGUc8%oxn1nnzPa(P8iT!|0dU4hh4x@1B^=Qk($PcTe!?RSj5=^6tgox`qW!+cB@?jUa)a zCP{Q+l9q>F0szCDrX>m2CRWcXEaEFLjw`OHq@yj@0eMz66z1gWtDCT45nwF1vB(A2$V|bnk5TQ zh8&lhES(d*03RiJ+LfrG>~$ivnB`EZ8Q5RxCRuPug9s$_VtH(rAfwVD;rTq}J3h+Vvys-0--Wn^o(hl>;)4W@6rV-jl5D{D$dYVR?J)kMKWtr7FB(+M@h<*Krw&fEY^q=!a(+i~Tmp*10?4%M1{lnVdf*2}uptV<1eu!i@kyzk)I`&8 z`fc7|O4(iwWht(BImESlkMNrCOLn>)GX83ADo>M(hrMw4?AeT7z50pQ$D*V^Jb;t; zK|;&gACIzx4LrF|x$BBo)CXc$cJ(8y5jZLAra+KMbJ_Gd^=<6A&}y!Z{GO*(_g|qgPlU{BcZj zhFR@iqg1%;xUm=8f_=zQ=}fcO3N=a#5&eL54->B;G^Wkb^giAD30- zzlYAxoO8Mzm*u&oGw&oT=1|u8a&h${w0Y#S272rCP=wX_oI}3suise0ecq>SWC3TL z-6eKFz!5nN;%O2+rGJzFraO?N{ctXv!a``k_XL}6mmjUqSVtIJ5t}J|c9Pd9thxer zG_s0%l!1_cTsJIA2!zB$M;l!bQ;>_ZXu-qGnml0fLVpQ!yq7yZE)C&*j zSXd7xbGWQ7MxXgCw3Kj?+IT7Lv`8H^l{wV&CN5*MCvE1(QpzYWohENlb|b2$3)ig+ z21?d+L0b~Ty;WDV2w?jCxprJbEQF#{PBih?&Jak0(Cd=Rdiif%KzZ(LL#4zBj}M1& zOwhue>5+<#9c3wappMddH)k49^W3bZZhV(9C#a*SgTD6Wt(kJ}o4B0aHN~#R&vzQ8 z$M5*L;8UaR0*z-Grh}`H5GYP#(+p1Ag9(+xyb0#(@g#}zq@-n&R7-1#B zmP0Emf=jaW%^L;(E_(`Uoa-dQ6+LxwP=r|tp+;mNa39w4Vi^^ypJRJ}vwSV*LUyD= zJ_r6Knq2Pwk6j=+7i!vWg;|l~WZvl&StD$Lh7hp8&CG!7eBG)pc|!D+j9}ngsOyA8 zOpObXhNTi}Qf~KLD7o{SQInL5Z}0IsMm5r)s-M5T@7T}%?t#nQi|-zKELXZyzy*e0 zKC)v{1zRypBeqCm%C2nnv2C;nQLx7#-_L6*e)d~T4A^vE(moq~YFUX11m3|xplVL7 zloVHeSgUAS|M0Y?pXcMV`n&cYpEoa8eOzyQxBl@(2mZ0`jUI9b;D{V+_4do*lP|Vk zjmjMR^m;WAGp8x^lmof*ypW<6o=36SBk4Ye|XmP;`7Ii{$o4aukSkS zeA-&B-ub-!?gele0)YYH%XUDhHqbCd41^qeFnq%g8Hs_i%61ayZvf{)F?c5jI*GhC z0_YLBFd5k{;`EI`HpN^5oq;a0){P+E$XtY_Y&X@+MzGLuE|L2{H|>Xw5ELR086w-m zK(!evtC&ZeGSI^!ycwn%nMYDA+smQ98Lm5=N7gjZ%j2~fVT{P9=$Gv?;!lrLqTN8@ za&({p9wVy%6$pp=9pnQ=w41x)eMZN3Ek_~|ZWr%}e$jbQC;e``0{Oh9e{w9GF<_M9&D22DnF0WzW{Ze);=(wMmO7|MFj7q#; z=5q0|$DT8XKAhRP0LgGuaTjzfnOMygLK340>BWW4-`UO85!0#=B%c*dUItL0(!0~fwYRDaWs(SF5+RU0`^V?EMJW28d+EJN=nfLvS!(3 zHCHcGSX9?GH7f>Ym}Molbab9{Z!-sl0VkSSX)B#TaW}`iw0bW9Cz@Lbh+Ri#W^1mw z0wMpJqMDiS33ADmvvvhMwGUe0y-&Dw# z-Og)$ldjEqy+vbCv?1u^5)H--)9~DY*gDNj8(tk)KsF%SD@YmPi8xgo(07_mr!lP| zEU+`M56Abu zXF=rrfxQn83`H>^uTa?>Ot~P;L0Ayaf7ZGXN;Aq_v~4xCiUL1-zj_K3D!g`>)UYG8 z*aSupRMy{VgND`lfSytp(h3ISlk$SZ;WvcI?U3dc)@$5&Of{Lc3|GsNNQTQgP_|=3 z^ISVLJ1rm1LYf|>*`CGIcwHKo4Db8->a4e^2^EmOWCLMpCelrt)fl{X5#ST%_PnRPs zo%AtUyaUde;^a`sedkFv1<4VrSJcN<#{621^PctJVg#KD8i=OlyhKSeF?@9tO>wc- zKt$|$^tgHe+bqWTUE<@E8Z8n+w@D zAznKx&eac2t^V9|52OKi(kN7IpQoZ`!7uVCHZH>>ac&IUXXv@O&B6Ap-J5>E7qk7! zRY*(%w^+kh8uyOvi;(qJ%NL*ikM-O}{`AdAE5&@Oy90fKt(#Gfk@?iivi-s{o6#P_ z`Lyo_`b9r%#-I@e^!RcE5>zi^Llp}c$Om_OZfs-$6RX^yy#7m|=N7P>92`{kdYOPh z6tc<44XLM(6VuLWanP|kUSIyQUy-||QMTX~t6 zyxbM-@{wfItE-GMJ%?53y1lkcc5B>7X8g&H}EVGUi;!175eW zr55E?b@i?_mJw+U*V@zwysg2o*6Y1}r$UlCK~eo9x7o?UTx&KyIk%*x+Xc~ z=F{_dsVc<3Yx&vA9S@&}&tJva1%hW@e|Xd37x589HFE(Eno3&CstX@i{GZ^%s*U}VSb71@&?44&1~ zEFzZSw@8ncbp34jM%9?wXFC2o$Ma3XyXCIw!C74j&sw;UR|ZW!x;?RzfxLSgb?^A* z{6GSy(a3(0K^a)kFemfMX){pw^{2L|MU=}OX2+Nw6?4FSdN{y0~Hg2 zJx(q2C@x`^v#EtQSux!Fu%4{I=vR{2VYGLa5s`v6!};tL?4|jqUD%cn>tySR<7%kt z`xlPZfH+Eqw1BfabQH!N_()zflg(i};h;)QL(tRmY9CCw0|75^%8`AWY8c$C&9`#6 zRv5{P|kh>gmwau(thR=zPMbKZOJmHIeNx3ea_Ue|~GrQoXK(}d2f1#0Bggb_-|+*NxII5HVVWc9W@jn$q#kaYG4__y zkPcrQqVss;ExY>*jEi&ilu|cHa3KpaTj&xCf|{Im7oQPDDhJG7gDRf8DUSLKz7u^d z%Jo5@>9hCC*~`YKb_g*k(N6bvTY2jHTV70Q3A`VkHZ&`rW`|DuTxMclYyZvqe1xi_ z9~9+hV4gPw@ClD!^gxEuPP#%aY^Ap-aU(fluJ0&p-cz*XLXR zy;lA*u|%7#>OzpbsWS1GxSVH`@J-J@a5C= zI5VvNVU)|hgDw(~>=rSLIn~rA5!gIxpvBJXRmLo$Sg2oa#5w&{W)P<6L`{e?t6f6u z3-d8t(`BS9*-sA*`l^|q~VYP+t+En}CL*52DEWZ=^ZqKxUkJ<7;k z=60!aY`Ras(;W=!x%Z^;j_1_eazj|aqmh;MOxlS>(Cmx1af5;22k$-w)5^Ubd?ll* z(k9_dz|kXl_Fk*)0meMJ1=X07VHCGPB1|0l{TxRKUAJY`2gKt@fn|NdiP!{K)@|!2 z-tiaRI(+=@WZU53NmSOEfOJ^cM)7Dii4@ftuj6zQK8l`=)Av|V*GrUAwDZHY3Wfd7 z1qn{zpQyN%X;7UWv`V4^9BqutJBP=&u18>4-FDG3rP3d*#a#0IntC!X$Q7obR91Az zsMm*PfpqR7??M*=zv5@UXD`)^Gu%O5&)##*D}bnz`qE`>V@_SriD)o}hh~n}nl<)a zWKguf){(sN_EU!A0UkP3F8z7$H^EDz`3gD8*LRn7+wYngv8O|R%L^ZAI{ZaH&A^8r zx5FBSP3JgdjjX=}I0aiMGj6_~B8Hc^1KN(qHSLaju1!m2N)Z*oayq6^8`K@vUkp6@li4AB6Vo-7Z`NiXH+*7-Gth7I~Dbl!b3&*Kipq zHo%pnXadR_Hj0jpN?VYl4Hd&9Rlf>0REOP;HE_2utS&$ic@aroubEY39a`@MsL+s2z)Ugi7-d{10giLp`_k$q^sc%8?L9;9e z7l^et329t-JNqP}Yn<9C-{o%x5UV^}$4AnkKul2HHvWT@mfM?yOo5bgH|Eb};)ma^ z^?OAkobdhOpcZ5lJj1WJDL^OipNi9ARCC@_O-Z@KCj)ZH`OfO zbiU_qTq!*&5CL@kzL_A$`z}pRE|(C)+~<5`PlgC0aiBa~v;NECTTgHdO**D|SnRtW ztCdtr!1~+79@qc1ZJWtE87tEm)!+&rtGuEu6ws1w3O!ZnVP7 z%^r0xYdp0_ykL2-{*kF8g?@XZiaKWdXziVLkj{c(!R$VqwL%CBNfb#2gzK!~lmp!3_KF zDGZ8f=Vbg9aUr0vp3T;D>0JF#|uB-}9u*&nVZfLZirOmGeU2D40fodVaSQ@8w z4h{)jCblyoj=Fhgf{V7y)tIt=@?oc5uML=Z;L%bO_lUa@?7{Mj!dcJx#f`UFcLOTk zZKvM~oG*BDL`YVr*)A2v!IW673NkvtxTc07GCmzfafgYYgg3vR6YmrYFaqRdLl}V( zu za^uvNY~sqxLKX+?=0JfL?GkIQMkf}pzqhq^Sh|`K<@p(ro=R#JESFyxdlDwlT*hgz zaRhgGVOockeGQCv(&%KR6LjN>$H0*h=HSD{nK%7$1~?Lr{muwbX>WUfVc>STk(ey# za_4#};_*hd(Kfqm!ChZ>qanY8AD&w(`>JiTV$MJ%_&Rs+@o0rG-Zb94;44I43G_%p zJl!Y!C0fRsWZ`d3+bM_bpMpb1cA7NR-Hh+vo`p`(=$;R;x0wXB< z0{O{lAqlTDWH0C7VxK{vaJe~iCb+D0SU+%*@?N*9h<@qqSP9d#%!6RmD)R|^)q#Li zOP0g)gep@V78!BW8%2Z{#^I4!2uR5i5m*skkR3DJ5`f{PmtUa)MqLSkFOL^9NsRoA zT%mxm%_>WJ9&)AVa(pRUNs)_w7uX_RKcbX3y3B^8rDx60R~WMvRZ*vZR|1#G5Ls?3 z1ez`5ZeatI_zb+N;ygD!Rl&7vTdmTVQVz3<9WXmvY`G1sAu0gesU%)`YPza}v+0qr z0N0TU38$(QV@+FGeDB&gkewS}Y)H*Z34ZaU>g-X28wH>T-HniNj}9obiC_HsMTp}v z%owym*G;%H-q}r@bFZ`ia3I&qe#)FWz5sk#>II@v!6JvFP-@KLQT})DaR!Czy{B&m z)L+H}AAg*CDMs8E1v)BqpRYbrG{dPLuJo$oQjDoIVb7gnJZjvj0^KZ0NOH1W$h2zg z^}Nbh$0)pM7dI68o^|sl!6P(Wm2XblJ-(s>(Rlhv`LWOC?j~1HqujSgp$JDA{2+~f z&IhNceM0BVQm)Y~2+Br77Q$jsr%2PEc6jWxJ~HvSxopKtv{in|{qU1DKMgZa03%oC zSZl;$V3w9esP7?%@_S?%P!GZ z^h03i?e?Pxmz{Q!A#F!L@XOo(K#cs+|K11~pVgz21tr2z!-sfBK*$bq=rQ{1N7`1^SIAhEPQux#I5yJ)<&eIA#mf< z#fH!XZ=;C6uca%0Od~tDei{DajUVzSrTmYIoU-U_)2I;{wdC4IUm$vn<*N@(k9-s7K0++w>jo5s{b0w^G+uM%b{mpC=v;kMlb53rHEdot;FN%W83Cq# zCR?k3vG@$yL30ffD;!AlVQa`-Rrl)&Be7mXjL$6{Njn`tc6F7lcr;(g%R(T$o;^H8 z!9+Og!;^*aB+X*HE-xZfdxf#d1rm58SL)TxAqL#}JCqs?%123=4y2S#$67xnIOm~K z_UJl+^!nJ=NzSY7L4^4Brw zF&yb?h+C*})vdBoe_o{iN!QD#-I0M&E#1T#SzXE-JpewF`auGN1Ix6)b|OT?)7rcc^Yrk$7o|*Rr(!& zSDFsYc~Ch0Y=8#45X6Tho){f)-jU5egpvivl>AUMuSsZUWa^MVc^=!a-|3E2|8O1x zNk;gQ1t7(NHMx@k&Oap^4&sEibVr>eU?+&Xp!m`ZF3k}JPhfvNEg7b6mowjs= zwbw_3jys3PVu*NY22f%zNSM_=ihu75qTW3XgC_sAH>-qNq&qQVvg? zR>6O^6cKd&f$Qu>H}g@%Y_jrp`LS*iTBH%q%*)(O{LM{2zJQ}JmxUp`vnj>2~E(FF^Quwa- zZ*?zA6!4s!V`QQi_A0EaZGkm?RO?((EswqYVr}8`>5X}W%C=w)oo~eEkW9DttIm!r zk>ApyHzXi<6tOK^1y)M_iz^ZF=#uC23~%Af{f}WE8Ibm3ESd?JozKx*IWQ95Ga#x; zA3VdrXYv=?q5oU7==}d)%m3r8U+-qk8E&-${G{8avRo5jFyy}C(HG7rL6W(H2OzJF zg~F!APLlC@UzqO}E|t6eb?bjOc-tp^GjnY^OKcL|5iPPlYp7b`d!Q?bZVIWMjj{B}d>X>OJXU-v;W+1)i-MLFB z3t}QIpAf(gBE(IkAQ|8p0mQvJ5l|}YxRE4h=U^nzh88lpKo$WrPfP(QsO)NOV!mBr za9vBQJ-3{F)3weny{PmX#Q%@H_kL?~-`fSBgg}ZAB3-G{yMRbXLy-=mAR;2YcLAkK zXi|kxr4xGZRX_|yx)c>eLj`4;UYK|FN58>Vfr{mc@jhg(m7gRlaR#*w&kO zgDB;7ARpaQVph`xI@*35n8*#@d_ns23;%hWoGWaOwJYB)*x5QSrbq;|TFzHi3_Rc> zm2GlDTZ9X0XCeg5oh8h1YM($9#4`mra~HIT<7{X3Gefw!65aJZj$!Bam7fl?;W zF>8$xLT)cgnqQ){=rqI83n$LgQavD=g@5+9y8<@Usjzf(usBZM$O1vRqB$!{y-Vt7f2@f8ClS>YTp{HR7qD~M zC>>Ljnxb54=5EKo$3;iU#uKg!UnGqv- zcIX%hqh(BdnQm#pGsIoKqEb1H-rP*Gk9?@Whh-e8*6D*>l!eoIWfIXvgQVe}{B97? z-ig1G%L}lTUu<6DXCWc;#}jLj{$P^I7XbKgJMv;HYWw+zaK~O4PCv!E;kx+>cHY=l zlG^EXJhpZ!IXbxY7WmYuo~-eMwg$DHs%EDib0B?cG5!5jW9_}~LqT6b2CQRaM;4s3 zpqCp8W{oHh=^j@{m{D7&j)w-pbwm{4G#5w+J@a?is##&)3A<=EKSB0BvW_Sygwkc2 z^hG3Z`=`N_hL-RVv1g*z{WpQ1R?*7coqLQ>O9KUVwekv8IAH0p_lSp6D0EW6{eACC zmrSkYwj?HRV9G`O=Pgo|M4tO&d%6@}%48K1U!}<8n3>3vZAmZMSYY!drh{A_>hY zK4MXCW`V783o^F(wpyeB8(#J1e%n2L5q>)aZx)%|Bc@S*!I8`V!VcruAPB=WFn93K zd%HalPW#$%iMQmLYvj?p!Q)8V@ps2$i$~#I*k3>21w+VE0f6lPeLKwhzZdRnY52}T zKWWnStBAbtfW(FE=yh&stw8oZvswT6NPy0AhYsHv%P?^JK;<|!tUX(!J1b?%9Z z*R*cd3y|&EQy&cwhUfeuFTui(%ABZ@Qo5sar8%IwO#J6z|1)b&S$ej`wfv8|f4TeP zt$xSj7+sWEM~KN$6DCVI$2tPr*VC-~1V zOTgpIag5VAcGL9?7Z@diol{wNNHt5V^Xz!Nm*0-Qzw=} z#}GtfM{nOv7MhGMh zSl<1*_j&Wf;m=$lb@Z)0)iEk*}nV<_h+{MH~ha> zoX-=0{dp7yFSE2iHdzRw+^y8=H~sJ-;D@0WU>x}J2i%Mn;)x|3D}q!{C^dz!_tnrJ zKixjSHr08rhN7XOK?qt0UUWF~5n&Ea5;b)yl50~09?h?)#~gERVa)8ID0^ZK@EYl! zhu~ZCM#gmRV9v!W*1aTBUd-DzPngvWRh^aIG6NA{ALZHZG%x)M;BHyvFj39OZg*ObkzR7|~&>ViC8 z@QtbBs#$ZCAjT5cYkFFz`0MQS!To63xyB8;R~EUr`LTpd=&u6^w$T@1$V;-ncA8k5>xp4ar>*$@ z3Ifw(H!Jw^K6*0X=%rX^w>`0GmQ6pMQ3uZI$WV#q9rdwJX4f)v>Ej9X27ocqauNv5 zZN*QN%ml%`G1@pbG2<R&t0K_Y0F-EFV!!4hdU7c^NJTgINRQBdPn*~yG0I^Vd!B&s*j0- z%~zOApl1c%9AZeUs=h6e_>VO+!rX*?kC*LqW3zgU@ejH`Df^FvufA2lyPem!oef#@ z^)v$(-wwPxwb|f_#}a2xKMP-%0!B&K1vt%c^D{The$Xo1bPf3Oy59fi!3~6Kwa?4y zymsCXtiQSsm(KV2ALX)*{`wx&N*O4zI~o@gtnltHRF7L=w;$azbW0Qrq|DYW%^1xt z$RmZjf_QYXFd@TM8Yg_nZ6X0lfOjeBZ+XMT)Bb~2sp-@ChYPJllIj)6Tc21s zY>XM1+%EQ?oYPxme6w!h;2!_3i#zY?!hG*TZ{ z6Igs6uAMPXE$*)kg&c`yPW6WL1VE;)%|uwgKc~f{WP&^#&+1RSu6F!@GotPjIvKhA zB-5T`=@MuKs@o>MWYo#RUYX*w5-S;}VmWspSN2L<{gKwAwGeO7wQ;)3Zz6o`zVMHR zYPOAdYKZ4gl^71W%QK3XX6HG*TN`ZUw=gae>Ux<_bKvsoiMR5%=j8zZdApEmgS=&d zoryamfc`zf3CNvujl9%NTBiVu7a8Zj+F4QVn+h9xCr5xhB*fJA*dhb2Fk;_YF93tQe4ph=(2YR4+j`p zG(tGFwpk+>e~n?$?6GXDQQ-}CT~RT31c!*2QG7n){H#=etls`Ihluzux}I>Q`_KXk zp4}R&gwwyw^HEn7OVuAr!ElQxd7}Z90C?zIY@&|u8Ftzm>Gm4wQcNO+=`A((AsKG$ z96ZUclRiUPyxXPA+z%26pK@%EM0j)WA7Odug4m}+asVfvu!7j4qL5G@i*begvrPnI zabZ^N3iF*`bM~Y;8pYV(&>w=q>O#sKW76S;MitX*<+UcdLGV6M7J%`I=t6{=sKgXX zC3r!`8kuPZkmMeH>O3Y5G4qXsNMONsmp8tNPHH{r2cNm%T6lY&jOn|=MpH6+A6l!$ zL0i8PgPWlB79EdDz*?Ti7VVDFn@$*lLr}2`;f1Z1f?vffJw2SA6SDqJ2jzyuuk_VY zqQf_8&@*UtY-y?x5j7Ca(vGy ztA~dT87XW3>ZFf**nDNN>M0Akf1oCmn7-Y5n3&|Kc(~%4_W%jn=?A~2a6sdtoD^cV>rCwjoZ}$4K@q z$KDDbb_jZ($Dx2Z^xzop@6n$HgVTTT^q1wGp#MkReg0aLa0QZ_4Q}7(4;g_-5VHx$thIU z4WO%Dz3YhZ?dhFaXqor`dHZp-_I60m*xGib}!~j@!uLW&fT^i zOp}s#w(`DEJgP*3?EIm=AF7!o8oeN%Hm;*qsC(I8a9`ZvS^!&!(U(%|;#a^yll#Qr zE5cM^WT=FUW`nV8lv7`m09|usSdr}!SLHj=DalsF*v?&|I^=oUg8QXVO-KDX^?kSk@lQQNyp(%i=Db zG-8K3kR{0vR~tNNBz1hd>HnooNcEHui2jOD-n+$PrVj#* zAMjC!j_1f6-+9@IJAA^Uc#K0t=@Bsdk!GeLujCkDA<*mIS|o5!23*)>UaH)OPjL*- zBd8L*HAxzn)VlomgRK@KMSle^AOk_cfK}Q|4H|gy2x>(s8LMlBPZ*Y3L_=C4I1-)- zmUhSMb~NP2>Vt{{rFIoynH*;o84|~fN80egod!UScs79>14zB)7Jhz_t}tV%(YefhBIF6q&9MswHrE)gC& zWYU4weF%)z7;re7Pqk}JSz=P-P>%A(WkAU@@i<6T`n;W-(7uBrv~q3j7AaZ9m=kT9 zhJzX$KJ%937}l@TCwLidcy<6*Uo_|JRI&N8vY`l^z_6NH;L5U7_TET-9c@=%}tQprl0>zfich9PBZt$U0yE4PaLKyHDZf`Hm*C8&I zcka?2_DWe4<8__;I`5fRs={G%0q{2_rtw757_NZxmRUC>o2*nF-#}pYx2+}atCUL- zxs}(iN!qvP#Y<}X9k)XvUeO}N51H-nCG2UjnER9w85n6)SpH568YzPDGK)3t=w4*? ztW-MwWD{{IY#}3GyJ^|r9^kZ=&4<0uM{wPh@v5Ot#*#icb*W|RYYqB`P$Okv%y#d; z$WguGB*-6BZ&X#ljXYS@p~u6*9h}#4OrySW6;xk3Hy@4P{vI}bwQFWy)gtg$mC(IOArXXPRXJP#-sByxUlVyvVUZhx5YDOY+~Zppk2@8 zOyA4hV9Ev}ZcJef0E+fFNd>oL6ZHI4ORZc8 zZL%(=@S7I z{{dfOqZVnsO=;o2+Rl$N4PgP-XwC`0ZwMn9zjUZ(_+om0y_&E6HMbMufZ~0drt1n- zd&?g~0O!&EAZa8)qTh#h^K+P)Y4Zt(UXp9xQA9I|uwtI#ksEEd(?ra@e|T>O!dAA= z9S7L``a-X#XBA2EXz8Qa z%p*Et46jI>$vcb)x5?xM#o{V<918A4_!uiUeUk*>nzS2!#DBOF5~CPv$w>+0K7)$q z6a2;&t0U2s>uYF({Dc%=8skC=86eeD&B)FaramQ3DFJGEtHThhgzdtNM(^A^!1Xne zWu)`VTi0o@yZGW9hIm`<+>V}Gii8OE{1pV8Y1;0596#@BK@;yFchP7M5}Skd9OEq3 z#h>9T&05>$D}y^5QI?<1(olu_wU!b|$rp_j&N7*lsZ=VSB+^+$YS!=4GvJAJ!)Jlc z+L$0Ccx7@CUhug7#ih0kD25Z)RfqAsk87AvCODyxnA>M5W*zoQt7CNql-u~n%F|kF zVop_ayLCm8upY^DvjP+B;nftd52ZEtHB0Et;or}`>V&~Df?-bstqn+ePWN@Q`Wp(L z+b!{AnKLI@EHdAPQvlytdp%0*^Vq~bfFN$sTA`A`eD!X9>cwa*z$RX#^?dXO*-wR0 z2XcA%%LuVMq@%ym=NmX=G|hpAz%$r>$jzIupk7{$M-SiXF&W>JyX{D~>1i2AcEQ6r zu;~67*ka|^S)X^EUq6^9LK{haD6-NsO!g+47fe>*__S4osdRUOZl0~CF(adiX&Th^8~fg zT74zgXs&?f2gIL9qd%3@mi_tDF*jm)m+d+(4kk+ddw%SZFH^!*ciJ&wp^4w4z&8gZ z-jK2pPolu*{dgVBfVq;BC@|nA3s5poF`@mVf8 zd8K86c+2eanpzv>LW}CUmM6L>RhtNr*3K>^^g}C%E2uZ~3N>0c55F9|=@}9A>TQcq zuPr2LdcJnz-kXKxQkGG72ytaA#q0gu{*vvlIF_dm{0gjo=PKPCjP4g%)lL5~BmH^cE)Ni>7pb@y4mcVVLcJt@M%9-!Dq96` z3&MqkZe-1Js@)Svd^gnOITR}&CA6h&a(DTt(h;(ns2-BoRCkZR)Q6>A9^xiO# za#?Z;Hwbz6>X^AER{s0b&wAY6k_Z!x@ZFE|xtC|oJw4#NUC?&9c@}xNxz{*B&wlBd zFCV1gYv+SsqDpg=D+4#pjzz$%7%_xIV>}0uDa4=wK&P&E1<@4+&oeOHXV8p*CxL4* zQZU{;u|w_J4=_}fcdh_*u%9hL0{w~|d2SNGK9YV|&w-{UD>aRg-nUzPbm>RSqS*Sm zG&7C3 z6TSKKi;-~Mw>)XGfZH;`r|vXw-tdnny!n8<14TZqF<3}qt7fF?XP|g(m9!lsgGew8 zY@l`tnvJZ|qd53WOR~$>oXHvR0E(>QY*=ovu$V%aq@nJ5B{!#;gJWwMwgLk*9HGgE zittVrEXEk;V;;EHSUK-!$WSJ<4?0!RG^|x~r?~Hi<{|`WSa)gT)xlQz0)$hmNEl{J ztwYumq~h2!4K2{~OP`X@!1enO5Y&g;VW~$)r)#^-#oG}XR$A+ynyd}wx_WHwwC>Wf zL=*2au%C~ty%)?0l$pX`-4$bIi*x#L|AMWI*@!-k*3IG0dqB{OuPs_>quo1N4Pq*K zMZ_`d*A-E(^|4R)r7>m>MxjCW$6%|8cvt{*w{YylQno=3CD~nS%+*jh~W>H5=OB_|2|9@ZnE)MQbc) zhYKGauM|9XIr>`^c*L#@!?x+mjg-6O#~Ykz_Vsfh=Ntq@*t-<=uFG<_4T*x8%AN5! zKZ<}2%AO}JYtr~nuV1MCZ+teaULuW&(yz577RJ80+#X4E=hS5!d;L}X(`kas_7F1- zIaXu;2AeOxoe9)>U?6ZxIEWToNPgzckQ=7{w{*d3_>i@XhyRNPbMYKxs8M!zy1NmV zT&(&F*8a+j>2)Hh;$OU?f5-q=WxLBHfjsu#5@OP%Tzl~Z;EFQ&?{y9|Wo``dl`I^Rno*@Y# zwEb0xQ$k7(AvrZ&H`6&6taG?gaIGjC^bDEbi!=A}t8Z<)8r)>z6Vcw?BZERzHX~}D zzZl`TH_!|`8J!$OJ+tZLU>yuKUBf_?xw*gJ}5nRZ+K z4n44+AEA&7LVS7+>EX^*lKcXk@m0GP16K?L3}&W=Oqm`rDg9dE8PD%elvF#m5s$3n zI+fyrZO!~v$N3^7$js$cq{q^g4Ed0hh}6^I`G4wITyF5SQm5BW>d~T4blGdX^7yB= zv-)FtqCoH6&uJ7{6Sa(;14vy8p||z;8TP{MMw*LHR7anR($JpQFcsyB_!3=Dcg8q0 z!v@+Ues}h{o{4nIphncBj64mLOqIKjk_N1Uesv|21B zrFO9v4^>CpiFp2LqD7)VQw=Lx<~pBlyivBe<>PY!$R!nvSoPD7Z45kd@%HRA*c9gk z5@N#LwLR{Ps@Kv3>02vl{h1F?G(c8R!gw&0mUrytxlmsZyF8TlHe=q2unS?ux+&!8 z5lYqaFSGfAXT32BLX!D%Nr4no04R`VY}-dB>(s3AR}@tq#a5JP0mNh}L2Nf^(LAa* zgL{DtWDwnYF7BV|?PTX| z@9&W(ui)ytw!NkT9lc(uw|?_^Aw zXHp>E$<8q`ksyhcAuZm^k0jq}t$c2NFLe_C)eba}$+)A08BYbMLY^#fVy>gG;bglL;6*~UV5(7-@b|M2C z-)F>!mc>7NOh}kpFzUWLW*3|q;V{eQ_Un$ zHEP^chT?^-V$k|Gm(D$GgM98Ybdmx7yJq}~?DgyChqK>cb|Xpw`#q=i^qKgum|5dH@@WlE_saG8`c61at1~dY`^|OPZ}sTdscz>qX$@Gf8!&gqSc>!< zD>$AallvHx(-SSvi*AUh6BDdo#F0Ogd4=hQpS7D)?#Jos3^uWGRD z1Xnf-lpCdXZCLw$uS31#6<#%ZL|YVZl0CF3=KkHwQKIuQg09Jz!FBw(9IX|$qI<-+ zU)DV9{pmRq$zg>Tx;Ey0o!7?{OhuGJj&ojc<`^Qt%)4yeTGnBdJ8p_w-l~K zF`PYOC71hjikU?OGW(D!lA~h9LI5@?`tdwp0-Gg;NP^kyBm5#*_Q0`^;N+1_m|Tb- z<$UryL2G*9Jw#su{~oQPatjqN?H1XUY_vQ72`?LSW{JV34!@L^P>~j#;Y8+Rnn@&< zTBdj=SQH}wY?`gmeVLWzoGKy`$PP`oZb<=QOXn32Zkk`o_huI1Ewu0^lokctN*^uC zoGvN_E10(-Fmk7;Hw6dEqHCn&nS)r;+~6gJ3LXZxAh@li&08BYHyEhMyzLr@8XtI%IAUT^vw|trhQ)>}+2j zmvx07F1_mX)h}z?bnaggEj;)6G?AnO!ND~A2qt(G)afS`vr0`BNOWePRoXCbv%m_3 z^>TX4G4+{8kdyXvq_%grIK-2a4aS#LkPJE88GiV}nJ7s1LUpYoe3bgDnFvHG?(TV} zZL&(wB)RhBeYdOYH^iNo#eYsVoTsb_o^&QBeqp(GOnX3$UEjGl)nZ|IAE_5zb06dS z9gm$RJbIx#BQuxP^;YfGqqCE44VBH5As@#Sp!73E0L(dXLZRi!4KwUVmFHeTLnSXn zzFCA{!1*|(Ys!B;UT%qZpj>=!u{D%x-d zlHQ4iLv}^od=&kR*EYk2csvQdKkFIcrUXOVfe_H!tvPaTL5(mj&PxyZx7YADuuOyEQ{o{n^ihI5jUjVR% zDnU-Rf=WCG_b`r-(~2se!C{o`*Zc|#P$2ZmZ^%yhd`gKU^*3bqp+VSOhEUOX2Y|NE zJMNxW0nO-y#3X5yhn~G-GB_^&=uUceenAAmB(Jcn+yWI_5?@hQf0YH{gl}kVlW`9= z3(Wvec-|@(`|#&O-3G3q#=|e`1FM}NUazJr44%CSdpBRu=L5O9u#(u}+qt?K)impD zH@aYF4&LJkh}!8V0tnj*a36u3r7)emh*b!7tBuE2p^+AO!BVvg_1Lqr4`STl>4u5%MkR>QvAJP+S}9&V9$LFfMU|VEUL5s2 zWV~fGl&#(NJF=@Z{o#afvE&FmHAmcShI7kRfA?)QSRJgSq!?3ZGgxLN`V|`m$c=2W z*JZq!n8W#fxol8vJAuX0uX1oFZfnhRk16iwfhTu_M8qHE0PAzi1X=7J*SHVUOh42qyuk^N8$Gnc`z44+L7&J_gH7 zn=QmPFpXJKKodkb@Sh^ai18e~{m@u79cm!ynwYqCGWDHEYb7I>TbKwFDoWBdU==MyTvn7|EONe>XtE1{;fI=fa(CNg#wmX`<0wbm+LJUn4VSV#q5 zPpgRs^^6gi-O|^9lC}EGt+Cm)NGjC4^27=Py*h6?j~n05hYKmZWJdsv0tT8>b*@sj z9FPElV}7nKlVKTyZ(VtJ+pf;M0P9NEX;+3c74>TR?~{HcAzi-lu1NSPa%G|gO@+v* zg-4|kJ+An2b2v=fsIT!Y^0Sn0+NF}AKWvz+8R~usgD+)ICF8?I0sX{UP z4W(ykjTKSD?0`1O3m;DaGVIDXSI?+i&E`ojvu-B-@*bGmdU{P^*cj{$_l@M^++9wZib!KJjf5;5hmZcZe1&MCsq*6si7{SY)H(IR*) z8UmT)`)Ve|cwSZb$){9X(Ds?>wfSwC@OK)9osg~LMap(uAj8G}Y!f-kwIU?TgfNouvS%GF+Od@@Vw(c!de9cHp7G%>;EEN>=e}8 zfyjJ`6V$G0SUY9+WC1km|KexD5z>NBs(IuF-NAZ)%@fa!i`!L?dnet+po2@-=JrXC zCMybY_j+PfDk0YabtY5K10>JQSmI4=g39aam1qLYY(UhO^>+Z!?OokGl||+dptfhY zt;q?Z`r=i6<^93eZ%aFz$EQC$?)3t4=9YZYy@|^kAv5=%eBQm!Leu9=^=a?B-lPve zbBKf`ZkpBvAqsh0F6tO{g=^ET?U2>xVFDZ$Zp}<}cRh6>myT+mziZJS&#QNArj;*R zI7Cggr|Ykt*sm@T=&(j}P4|6gmiW)oQ;3G5r*hw-CjH^p?O$X&Pf7>yjf}h~Wlyv5 zjJRk$adE1(<8@R_xnYuNe1M!R6~Azvlj$V^#%7yoJ@s|6dlTwV&|uf?x!5j z$FUFS4-dpYe3v>lm-An~I`zSnmhe5CZ0+-#n852}JOmwB6dPF06U)gE7C^rFo0Muc zAI8vO6Y}6RNVia8?w7m>mv`f37vkK-EJP+V%`HTW=%faR$c*)~i=OJTnS1mCFzk(z zLwR6hX~_7r94H7W3uuY6rKorbrkec3dh8P@pm&`wI+@R`la4n#McNwx>c3fY72PcG5I$O-J4()8?R zIh6`8+|+e>g1pBz3l|n{oeGH|Zu zEWBJ))c3ThpvrT5yC2(>6xH)P516Qp6$`G#ked!5N;h6M(a|sL_KCl7+EcpF7V5+R z+uzt5m9K~Fj|uug>J4d`J}Zy=l4B874;9{ry^;{Q(>TFzCR7KB(I!o( zt;VzWfXL{Rv)gL$2^>oVO_SN5)NKO6n_J5dBvj1ZuK_nBz+xTgsO$F}<3Zz0qF!=Z zc1{>ehJF^IsMw0m!z?DWq`F3j<-S!+ZF7rEUZ6!#3Rr~9gDST=Q`I#o)HLG1>d(0`e;mME^eWhecsd z1{MP6552BS*%gM#9~N67!*)e5c(uGEIiKIh!ua9&ceMnSez}t(WN~%PMUYV8c5g@2 z+bH=_*-iTUT*w;968I(!Lo}2iD4+kBztF13ot>nWah)KwWUf#6G8fZklys)K(AeC@ zS?@DgK5z2gQ?|`R@Qk~YIVxA?${k~Z{qu^a?xF0DPS4Gfm= z@ZUW6^kPfSBJhFruN^##|M5K7poVyWnL9>Pyx zU#@s{`LX6vSsM(XbH(5yy2BzIU)6#PwVN_C;Q#n3 z=9Zjd{a4h-S_E4-xpFi28%MPP3dVsQW;`8LJtO(vmt8kzLqGcGgGm3!Bi&s1I=PFi zy?gYSoP-93OO%ha;a6lIL3=bcf8K$f4Y2`+EZnrafKD^#f;STS@}zHNJ=yL%V-Q&x z5baSLL1zcm%8d63TyCDO-mDf9NW1#nCde)L8%gfK^>_dlc022U%eqXI#3!y%uR#OZ6tDNX`Of2RuGu* zYG+Y)^{+{U@-;U%pKn0>v6#)GqlyRI5%r-kH*3+yZ>6op_R_|{wAHhzA#NFuz~-da z=U<%G+Wi)TF(`Kdo)Il~`KkX8A`x*Y5>bpJTUw+jyY4HB+8|JO0D zCcVTNTY7)!v+olT;^?&>CkFU8mI@Id@mP4$gzTN%6>kL|<38Xqep?vrs(n`^3^YN? zIT>7y#)D24_5`C7EcZsa+`bE9xoKWxWf)i45pZC4?<*!488&zbI#EiOyqv4VW*9B;5C|Q;jmxVQ>CzIJK?T#V@`i`nSRh#~vNmotEdn&Z1(!kecluxm5Hz zMWtD*O{T$yzTEh#uiqfQ!&IV4BVg!jz&TKT`JIHdDu3k+-g14Gw#-3;$-&S1AnYZd z+f^UkUx0+1UiNzyaR$xzoUl%&0b^5tHa`wvX_TOJye-(;u==V*@8lS7Tz^wz`TH?` z4qo8YBIMQOGHWY~Cwnk)!FE9`j^lBf-?s@Q`vcj&GlUStr&mG}qrx<;h^-k{in!}p zJ%`&RO`6x@W(`P$=bmZ0QflC$NDlYbk3~$M>uv16r8dP?)jVbhYGyDDJ`R>4k09I^ z01nyc$rCKHP-vZ0orh-^+_8Z&`cv})@XY3rP!8WZNQ9hms)gdGrwER4u`X)h(Z!CB z7O_8o8jiSw2n463Bzj;Ja`~(}8j#}urWLPKMvcQ4D65kv8yni@C0`X8_{1#i4>BM& z6r$D%AzC;KN|e5?LRxC$z)6QONO04)+b==1jXo-n(hu9?Af6^{Mx>s3Kxe8vj7=pc z1*ow`(~6k!pve7ud8uP9BBKiAjLQ^@Vmf_-9{?+l-@(RmeYD_XpCtGw3&>LJ&QfEr z2uSPZSkS!+#q_Qsgzr&Ut?4GtiJt5reM59h{(ETs%lq@4$819e(cO*q%9_wdAFJ}u z&8O&s7h4qO;8o0rx$B#45-q6n?Ym{%YwhwC(OVQG;(67~UpGk=o<3fg-a^AqB@k^P zfe9j%l;zu7)QuWV+sxGO6t*$6mNvv*><|9ke)eL8-2t{!Ny3Mq+U%W)^-JJNQ(tG8dp0f`9!_CYn;!iJnB#p_Jxd@)B z!-W{h&BKp)RpD=oNjF`-{R=Grhm+;+$M|2!@jsQM{bvk`9O5r45P^r^C*aCWHHGuq z9<&&yQ-i%t!{b5-W*nBDrw@0jyB2%%rm`{Va0Cg|ET##G{jKCYAylpsnRu zbA_!p@p*M?RCn)CQDa@%@OT{EfF02F@@*)=9U?qE7r-*sy*R&Yhnlc|v$AQ|>glqz ze`m&{{>#xV7OVG5-@#oK)$mkeh$`YGB%;QgBFuw9CbI>a#}r9(A-#qHp5GhCDpe$k zs9RJCysHMX(r3iXAP?98|Kr-|i^epNp$aa*h{ zdwAhsAFrEm-&2@sk{zF@*B{=AjdHg7-+t>XPEa`RDE-B?(H9cH4Xor`B71-b`He4_ z{y9EmR1JY*NB*$im%*k#8ez!}C~(a=z4^kHo}o&y$}|s9}%x@9AfK zw8uQp5}Q258yYFsG(`en$-bFVUOKy~mcS!YT5wLsLh@r`q4E>sc(o0+Pp5UrL_VcV zGvNx2%{I^3q^)2gm!uu4O0@yogB`9%sMmaNGHr^cLg1`Z1IxB3V-YBfRew$kZQ(Cc zbdDMzEK`8^3nh7Ia-SFZxQ?wCLM>=C05h=Qw?id}72zPNPBK}=g`NOE`tUOuXJUth@`ao+a9moXJQ&z zk%ny-S&b5jyKme=<-4Y=;-Z7w>@#*eNM)LThD?(83raFAJ`eah>;Luh*AF;2SUns{ z?{YZ*|0_tvc(RlLFx_Mvdv8Sqs|ZloE+I{cWrHwp8=??n5H6KXeP0ep(^yIiYRVZ& zW@a%*vwcO8C-t+dt&<`=b)rekecs{nA9g~tdkm3MGQ)AXmW;x}#J&mSb!A$%v`Yns zt=CIqB6;E1kRpJ-j(iQ?7_E-I=HrKSf-bk z*ir|w4w;2+ei7$S7AXT+VRPEm@3!jg-D5$&-bEWNdvGu~ELcA@Jm!%TOXQ8{lSN7g z0|1QzC-1JXh}=rgDJ;5(_rGNV!YU8S*8EInbyIP!qi=J2R-;wJ)2`SjPHo-&fwfMM zs{^CnWmXkq6P|faKq}aa z*Ua(bd4d8nNxiddzlciL#p$yeNjrG0&PWEmejg9fd{wG1D?h$R#G5i8In<9O#Fx46 zXe5(A%cX`>e^d#(sD51}^2(i&xFMqScj<8?BT_t4f}FqTt!5$cC_x>SoC{Agd}xr2 z2rZ^^xP3uGh&pBQ6-U8fLIdtb7wXEjhXfl_;MM6xz{W7!E;xeqv(P+v;wcu_;L^?|7U zmQGZ*rEiA)KI8e&)}VwpLsu0{#r&0bR+69FS>c$!vwxK#_u+1DnevG?7USh@wpQ6JBO2DumLUxTK z&dHLwNa=*LxRY2!j2WKPdu22s^$S zp>8Dx{7}=4U=e?7MWr|x5uT(jwHjolZ2<0Ru!|6giSkT@0#>EjxgaRLh)5Tysqj)z zIxjIYBvoJLdNBoyeoa?$;Ld;&00GS2!MxI;*fU9F>vXc?b&;p2yES zXqsk0u8Ko5haM@Ew!||8VV30uNV)Yv%9ZnW+bPcr+xccPo8CPepi?=w2M=(b_>B)?Eid_y9B;}HBC~CNTx^3 zrDMVUzrd=h(3jWxH~(^}PFbBy-q{sb9!xtm|9SH6{|2n?{=swozwuIiyc~223qZ-t zlFF$N5HfwX8#mi<16JFmFszxC?jG=X*E$4d=U|^XH;1-T5l09^Y%f^i5OH{bx`-m= zLirh5#CB)Wz!*woW(o#BnY|l(6p$mskO_fYb-0V@oH)-ylK-S^0^k+*xZ$S>-uHyQ2Ncmx1TcK>o>nK zMnLD%04S25$$T3e=0&ll#3O3i&wA5cDDz7Z{n%oy)H{uQHZgX`P0Jtq2}r+iU%a8ShQMdE_Fvx3z!VI z)PC%fY*NhDl1^J36dkar@;2+T$-rICX%{@pzWS23lL`Bx^INR~# zsWAmfz9}8MM9ik_=^bi{1OZc%AIm#S$u3HxJORFq09bL`JR&Li)gaeL?pS9Hd&rzV zP;Tl9mGZNl{ctn-{IgrY(U-kI_}J~h`kh}p!KS!2rm-AuSZln=ac~WJznLKV(v(Ih zmBGqXFrCV|H|$uL?(-l#t|Syr8$%?*nb0W~Rt!c^oS!5wpn&ofZK4Irua!`cUeF<1 zfXQ%wdr_tq~|Kw*pEw zJQdqr1HAtj=Is;Q8$MCbUPvuh?2X8M1=TYw9JDR} z`MUgn0tSEjf*p_;D;Mk%2JCmQ`ZSmd=z#q#Z-XE$QGSq0g-jF6Mi#XpWw@G&BeoRl zsk_n8wk*&#z_lAK`{~}B*|n`6o@zO%?(ubcBIaR@vODln)om9EH@V82&hGLF~pg?by-51R8 z@T3%jN1a`8y~V#nPdS+i1wLQ{`)~L@2njXQ4hoBm(nMKD$Kj)FZaT-OJobcyr)K_- z_P)cf>FilMkPrxFAyN#uh8n6ZfD{205RoPX1wjO)N)hQbQW6L)AcWo_^w3dMKvAlS zfQuEeW2L!*iv>m3d%giR?(Xlt_bqpK@9*9JU_R$O^UR!?XXfOt%65Q-7FQ;xRxxXh zgc$L4%|{BI{8~3QpyyRSXozPtI}Y3}3b`xUJl8Lj4lgQ5+i zm-Bk#Mpj=IXIIw;{_Wt95;Q=2~zW^GQo@2Cr0Eq$XqVm zqRgo5=W_2Sz%)Oca0_Hwtme-}5W_d!Hq+kKS1h$k*v?$WByR70;a!8njU(EV;dh>_ z9cx*&hOp&G*1EfGeowY0nY1C9e z&9vAbuxvHKCBf{O(EEJnx?ucfohp>azxy2xd~~_AMccZsi+!8wxwDJ!=AI0dns=T1 zBr5!J=HWu~DL+m|tnwJA@W?X9KmT?A+Mk+wUg&p0VWKE#)N`VEiDKSPO_Y+6 zijxfLDzC}1|JvW*72Ld*z;znH`Xf%UyonwzBz~^PUuDfLT~5r?8n8f{daKVL({GGJ z^opgEn@4p0xLOBw55;i|ZC-nCy;b$On8t_;(;<{Krw*=t+5S}4`EbW%^`c1A%fpMb z6Pe144GOvDyG1LCfGeF(XiNi=A7TsTji%FrQVrthM(cO)h0Pbk6Bgq zT$yaRKD38EM^f|Dc+0|q%7%-RCu}1e&OCIgzkW6T?yPBtpw2}wABuOQP~-4o2W*Yv zQ{sdK_S27MW|?zj=lLW$!;5dd!4>|k+-+|_GssI&%5{99(asDI`+in+4K5I=joZM zF`wqS$9^~8w2Zv}Xg26M{2^OewnYMSz-v-8CBfXZJg$yMuSmXPRUYgIg@bxR7?Yhx z^VS{g;R(3emm$CZvn#cnP&LGlKQJhC)#rI-CJ}$9f!dn%Q?Yi%4TSBKJs)aY(m~rK zIBZYVrxd+nug%R?hl@7Y4hfBr&l?N??s`?*!(4)WHgKDD1Zq({<1&=C#3IB*IJ=}&xF_fM`i%R?+^>BcCwomDqF->1lU$5^THv1W%USszgOg~iktX`u-4m1WYbPm+B zK@c~T<-<%jV9y)ZhF@+{4Eq@rKK0Z&_(0(^&3BPZaak1;7h!0}LyAuUy(GFU^?+u2 zj#ab+M{d!sWQXkHa=rYD>U1%;!kPxP+Qya?UN09|=CSs*RW2bN=cJksCU*7rxYqZd zzch46tZev-{e`PHtghc2GyUoIy*u6`_lv~(Tm~K$i=B1!n^PF1gffKKCZZY0I zp0<1bA-!$#)00Z_z3$l47)84Q;sq_mH>)>1l{-e%Q5TlBfZclPd?8Ju?-?pQsRBd8 zk9@vta_P8RVYaH;=DA4$fpY~Kfz$UcwbqQ3>csNmj88DHRv2a~+7F(nyxtaveU>LrIdq&p*VWzATi@1qL5-vF;*bglb2vQp z%JmyJM{jM*+#5I+bj|ww{VN=_$Ns#7W&(Gf58eAYXvFlzobQy8!0ej~&lZCp?Rok> z_6d(8-2pDB`1IQBP8rIIsmaBwg!1#rA}U_@298x+Oq1A7TVr&*@=_+yD%ROuI$kxD zOK=%1GHR{9T=@SPr0M^AkX}pbCUc;I2%H=mkLC5aQDEZ-*F$m@nFELEh9h*HRi9#T z1hN$uYCIb+V5S$`mO;9-$f$Xn80g^(tlZfQ zco#IB@}w^NSS!42-?#RMq1lCTg^?PmhLFe@lU1qDR<09KfSN#>kfV~)H+ znfM|Iq!nO=X$`T2S>Mpu)SOw@(t6_LskZhG@#Ck@vOwC`fBr%?r^*%5pcRNu)5g+N9dpJ1k#2t?c8FqW4O79}nbAq!*7T2OW} z7X@Xfqom^}Peu8)*$M!Rd7tRY?C3o&-gDv7pj@y4ZRpC?Yb+uhyKVI2o%;_Uj6He! z?D@px)HDlYbFY5+2V>v;tn_P50xuekH=HYrJ@Rg5n~o!cal4-vsflSx?}jPIVIx|^ zF`s{UO5rdF!boW9Vm4Xm>hK25>Bs(RM;I4;@v2WJJWXOi(hwW9kd+{n<8e1ecGYVM zi63_hN;$z#gxSXD5)*fm*-H%JFcj=GES&?!^;zPVqpqGM9(CW~^!1}I@Id+!SN{-B ztcCs1@`VVndksiP!G|r-0v%}YCa7Y9rmvHp!DK zqZh-`XuB(S=BOjlqpQ<|J4Iz|z~kCx(6nppZhP}fR*k@0=$?lzMtyhBvi_+cG!e;J zxp_oPzD(F*dXZ0InX6@`cTNon1Fvgpma1r}5|{kePh2u>4KOWc$uy5?1>rs&`Vp%V zmT8@wGR6G5>Muk@)Jg&_=_?6bwv;h$EKp1;6Xr7V>C#-cU_ee8k%Mch+ouV?Z122L za`%?-&ygb&h2XW~A05L6!5AtXL`@1Y2QZqrUr|U&sfmNSZux#vO-}ewdk6X=7%NyAXUxI>72q zb35YIQH#!2jYc!wJ9F&=ip|MW(21#AefZ8ZLL82M3Fdj~NNj#23h!O)f=ny-I#}%$ zR=dad4{f3?+vG)RU}eE#F8KR9F%!QAqx#OP0Gs5vD*Lvl3ZTmajd9^QR)Ufimq>16 z+vg8W+YNXKN;ewIkGYz2Hc2&1-B5qPbzAyP6y?C~<)bpBCIj*}fTu$V#xnVP+LtDg z%i}|gp5An!+-V9cgqq;qje$QQ*j+n~YjAk6Ei@a4kuHo#266GRP-YP;APY z$XK`%Bcpebp#xeXD_@E1P^uq$!Cn4FM)7{jtQ7L);N+%^2EHzEWZDD8cdw^twJ=#^ zq8-eBlV6WaHzNPAWsw&uywrbJMX`8QwHuNhTtl!Z4o{Xz#wJ&kfOZ@h$ z?Y+e^m*_v_H|@Y&%}7(*q5@;eVMaKnGPt591Xbr+^qX^9GV17(QIk_vDe0Z|Yr4ey zEgkAW44)S>DBr%2tr<`AzvP{vO-~ivVMwSRd%?`O@)EtdIj?3iH5f4vZXY9b`*bR2 zl-l*HxkpB&Z_YPG?TUnAxO8B`GU;whTDnGgWd3ptFLA1%R8?;?uFc78pcFP!u)^@; zQB7@rfxoj5q6^BBh4Rx@Xjc)VHC>pBFzDDGTDS1`$VmkWVAenuiX@c@TIJg|OUGdf zr*+!LOOzX2pkuSmwK?;!LlFuKS98xq9k8DNU085(fqXJ2*A9ut<=Gs@2NaiANMXV& z{mPh*rHQr)zq9H`U{%7BRe&k5PxUSg*)220MUi5Din^)DhR(`>@Or`?DqsKG23r%c zKGlSKq|Eq7??$ImfmN$_+NYfaxldN!1drE|<4qS=7Da0Nv2vfKV3iyJkyw^GJevi7 zV{|biJKQ?9%!gjRU$-_{m)Q_f+7bd6{+(^miKQ;v_95KC%HA}>idF*=Y&*nak`RmW z0v6j8E>Y~%n&oKPJSHHWw`HY3c2gL)=)>;kLAAYBHRzW?o15Rm?6$h(SRM*Jbmowduq|m>|9b^`SyJfSOwFHBVAZf|8;zIXG8XaC^n$k@4^H zopRoRn11eTsPYH0w-+1aQqxkxmYg)xCNEj5Fe%ubQR3p{FYQy|ZE9Z&a<|$Bc#E%P zbXsiMZ|qy5IqH&qlT!*e8a;TPXc6z>ZHX}Nq zg0!bPytLLEF6Emf{KxmX?5pzA;lglTgEd{IC#!*B+6Q!jVJvpzV(~AgOfb70_^O4B z(r`6etT`-nDkTsx7rx~e{FoLp!Y+Rv4MO|t2aAs)qqXc~G{S%*d`o)6gK6+AmaisL zOUkr)G3BOCdl=Q$m;kAS`e=0Cv6#A(AqQL9!`aSm5cb6rVwdSekz^dKL>#uueq0Mo z?3`AL?@wrv#%Q7ppN$^UEUiq&cxkQ{y3r6qyKK4!Qj?Pgl$VEfpD;+GQe~9>zLu)k3|}7jl>KmXj1qM_Xt0^kZF5TTJIo~ znl0|OX>O>|onFws#5l0`UZi{kgt?%21;^jnRaETcSyEQ6C@daY!K|&Ui-hwwkaU|9 zTfBZ_+aXr0Ph37T(sFiGUZZ1lEmHr$TdKL7lcT)HK;`kLPWT+W-bEtCwi)k^IZ_wU zrNm=%^Hu7IH1bZiMpIYG#Qq(`k;a#2ptsCB=Pzf*cC8S55CigDyquAR)}<7g0!E;7 zNHvM~VBHba{wDYEq(*k~9fXlN4zUhy`9hhjM5NeoxRpl^SsCUDz1z*5CNb1n1T_J2 zR$ig8eP+!zE2VQj$q3yiwDbzY^Piu%6TYu-=%qM5mFs%kJj=M>MO6A>dS+&bvqzR; zhP7Y*K6GITHM~4(H@qs!ad&O#&a?)0Us$qhHQ=_mFHUMtPsiJ9U$}orCp-5g$l12= z!wp~s%iIRtWQR0f1OUy_$omK)_NB>7g~2WY$zHjIGNc~9?z0ncQU{ZVASl>Tv@o&p zmOH-WBFi=wulnr>q{?bt;^rPut09EfJ)DD z4$00-*=`zw0j);u%rX+Pq%!>QQt_|lm{|>#?Igcp@5{3Rwq0&~neN%BTDPZBM3IF=szxV0c?-x$WCkO{Wy{^ z%ZgvXX+ivw_GAVAEqkDR(>Em-%1!XrCHoAd(W-b}`?9)v?SO`egN){=)O_(%-*XD& z8W04R;~2R0;$etuseBKQn5~QA9CR-ROtA)C~Bw zP1aoU*zH!dcP0ApCcMu~(bU36k2-VB#Z8C^GSxLSP9B}8>J7bWSP)djeo38zq8SyH z8XNLxRR?y|f2~FWm399n zHIl(Uqek*dXN-}sB3zRxspH7?R^z?T33Je`0~OWj zq78|VkZ<4ZR@PtjbIh>wiFapb%$!Rn$A8bvUm5TZDyn~d3GC{halMd`?@=E`+m6t3 zafF+bE?s}c1*R9b_LETbqz;*f!iUTmn}_u%32~zI`{u9an-quW4BOeL@Bcw0FmP-^ zJ{PIvFnsP!0iRi?#;JR⋘jgFP=;s&56II*5tLII8*PlN8jx1nb5rMA@;htGb{z% zve2><;}yOubOr{5YaftlUuqy8r|o>kA;qejtE{ueLbnW3n0j!_zLM+XfD^AMUVGvQ zs}P_)1h$TeB5~k*IXhfJOx(AeZ|Q0Ax4h*Cf8H&Bm1`<*A&?!(h;qS1LlJTdyo{4a zhX)~fMUn%q^eHMa)mdlPR{nrfK?BbGyhs-zMc( z+Vp3#A1am_Mfp!_+kYe8{)=kc^L`Wx2Ru$wNSRp9DN4=yA!tFzapx2Qsff0eAn{W8 z&|4>52&Y$Yh__xJudZR7TCMU*BnyeMQ*KzXKl#T4B|mHiKMGz}*oM>(RzwcC?Tl9a zxc6PZ{?mQA>;&!zONQNqVU}Dw%E(jJg{_Ct{)2+U>^roj4~xL@DOV4LD-J?`hm8vC z%Dw0a-E(0Ne4fxddE$=NhSFPe?Q0U&2Tm+>Zsn5H+IWN#ewihgao{!QZZn)35*&>=fAf?}>!NZO63TX0YjSv+I(`#rGCgo6SD zsTnZiUf$EU7es9+yG1w;!$_F&`0m0e@^gakZKs8^6X7Xmie7d=pU%6*4$~u4Txr0ijuSyAHUDzv7)B?hg z23_hVXO`A!bKJx#S0}IoMI)Cy8WVpEEU_x65c37RK3j5+29mR`4f`#G1ES*M5255` zl4TVWzV_Vzupj!@NADMZ`Q>lkOXtOk5OgFz=*6iEZ?PoP8GYQGn;k<9D`C!DaGc{t z$tyiNj9A`l5mT@-2B)4Aja#T`cN*^bdy$~G&mu@$?vJ*X_BEYd+;NK$^tt+ZS;&gH zx~w$c+B2Gj`E`%lOuHj43We@Cj004Ks0AMvH5Y$`iK&6D9p7>?T7ZSS}-jLZX z_HdB6)DW-R&S|Xz1$I(+ycLn_Jy@KuiBPoWh{$w%#LHbws_W^f5%Ik*x2@Y32_847 z=)>AE@kdi5P)KDI3YU|UrIL~MyN38*4}ia;GD!0_FTXIc(`V{YObVYk4`#eSJLcIZzBXj+Cb$?tz!F($d5`e2~FXRh&j{eh8l zTW~Y4ga(v-`P3rpu}_a|_YGWZ<@m5;PY>)0Lf%p3C()-5;d1Pq?R_vB>^^MeQdCHF zab7L&CF{yg44g{BX~ePBylc^kl#47}2<7ky1nwLSf`k&shv=aQAjSz=uOz$TB*4X1 zw*#SlGJqJG?}q7-!1Q;NbEw94VStMORHB%)FczJghsLHzZRhn%D=W80$%~_KwYc?l zIJxQyNHO-;b+-SGxL{wXu`Hg4q`&@fscDciSl08%`<4}TCs=OnAMbQz#LmkhG)0J* zdA*n!hf}RoOidqG7WyrId}}uBJ-w)WFHF4i+$SLYP17_F&hCA;3&`*!K6KDaG+t%* ziLcOr;}^1G#dQsLvSo+X03Q#(;=?&Z1X-!vz*{D(@O8N2v(CdLi&tS`7kK;VJWE2F zVo@OjriBv|+J4xcLlCQY{xS@7#1H4b*z_JOT(MHIN&~NYjUDd0BgpXyk(fC1gJ`gg z+{Zsa3X9$-pP!FGV|k?y3hzpt%~fs{g^qZ?^;dez@X`H2hvdj7*&Y z#^#(IwO-IaOp$zr3KQbQ2@phtGKcc`Xb#GbH{*3;%oR7%yZRz46D*?Er0e?{?s~QF zwfOC3#nLCgF0zIzWZrNSqef1=;}b^gRnqv0Yes~Jk2*s%6p2xB3}Z)%6+p_PFA*jc zAO+KJnOz>X;Yd}y5!BlIBDvxftg~LJW+JjAxq2XgPOGUqtI-IpSv%)-{*Es+@a&%( zXtO^Ytmdg(^RvYSC=h7a?vIFyNlfzfk8=#7(bEs1sOrLKjH)aOS6nEk7>uVTWB^&8 z4MAMBczX#_e4_*NA13*3kHo)53hRHu&Ar`~wV7)taHfm_sTlYvmhTper$8(D@P;8TD9}p24Z4*_I!T~aC?0Uw zlbS^HjrUGWrl(sXBb9iC^YYx4^$ul}GBkD98JVDPOq_HrPJRn^-Tt!H6DlaQzJ1;1 zMr4Z~mVC0W->TO_{`{Y!r}`fhbz)bDoBj4L%TlwmkeVEyfrV`9U8GQ0(%p!<^6RH1>$ac zFf9b03CUlLo}njRp}biqjiJ3}%41^T!}BI=II;jZdd7yMi1=5!>yqo-*>aoieZ4Rz zd2Ow<7!IZWm?c%Gg~8LHsZIz-VXlrIT_wq05RS^Jj~i|JW)~vNquy!1AyX(wcONlK zOcKox6L(k)4fgRLpl;^Hn(k6iSck?2Y9wS;RuLmqgwbX=+~&sZXyHv!)u-At1KjJa z+@y^|+I#zC6vUexaNB$O|NB*)|3)~{a^M$JWIA_KI~$}^TdJLQkh}Tb4N6!VjtE^V zRX}82b|wMYuo8mdEF={g)KW^sA~IkbBE4nCGPwsjg&#?!hb3TQR~=-Q9XhF@@+iLG ze$COf7>zvZI0+ zQi&s6%1}{_AY6`FE1?4FDn8L7VGLV>p@P zlb-#R6+a^Im}H_b+GD3Wub$GvPQtb~q1+r15!^?q078%A*Mx*^=X|#hUbd4vMDQ^; zY-`Zt&1+>V9k+;ln18&V?+$x`_IoVh^COT5rCU~K*U#%-2+d(jpjVqDS)SkX+LG8- z!J19-l$VBZ*$zyw2Bos)*fwO1IM&e`St>17cf6}x?VKwn zrsvNRng4sxk;3TX>7HZ?0;d@vp>qxq&MDq2X9Pc)drTV9KdU+2Lk?4ZCCSw|cMjcH z8ak)jO;FP%i%H@>_KZqK+~&Gr9E&lKe?-Mz)s@ucm!b~wa2EtVjQbdoxAzD3RQh|= zxO(b{2U=x6K8~H&HSqlUJ%OL$u#(V@xP~PLvdl6JufAm-3{9~*UX@uV3ko=`lF4sx zTmx$2_L8oNg@|)86EmO5?%w{;$RE*ATUZ&1+Aou)ijLBvC4z6^GGwzDH6b@|%U(5J6>~JNhEslJ)n-(M6fY*n423C^ z=54G#S*3Dfw_M4oKYyC#e=^Y|Yzc~Sl+caYiQDSfwgHv3n;+dI7pl zI7ZF*GfxMNSzhm6P@ng_HUYO6r&xaCf)-{Bt~x+@w&`jQCi16#Wn##ELgKhxM?{4V zTXOt8NL)R$O4O?lPJMf1bru#0TQ&cpgeNUcY3{&0o|i7RZ613eTrT5(X1qmYSR`%m z`3chD?e+Ixv};GE+yd>wDAJw9&yLswQaG77JeHT7oMLVT6j2$O8`JI6fcjG$73+iv zEnJ$?{F}53|IQ#Oz8D*`0xcn8)O|+X7c7LgbG*8ngUN>=VJ7Kh3O!v+LZVHN@jfsW z%@3O}?D_NPI^cyPkvZnvHwE&^$WgdpKI_RkO&Py~eM# zId*DXoWTq(rJIrLL*@`NCcn~$tI=NCdxh+OHDoSosUO8FuEI`ZjQJ)QAd0A4a-KdB?rrp47%i(x!Tr5s*&Zp&cE zaAyY)47_jT>(?S-)Nbxr)0}m7^p~T;$gI_KXK%hHu4n(W?l3GJHV6a%X>fgZ{0l}O z|3>nVqW`noPMsgu)s0($?u~CG>T=xj5)%Ny9a`5dq<%Q8Wg?LY0Lv>O6Cu?!eXKxO61TqJvg~H4vHD48-H(#qEaCX99 z`euZk3NOdE+Ufu-mcti@1v=5?@iGrvlJ^YB3tHwA&C42qJNB>!XwQY(Dg!#4=g7kX zWiCwpW*dPD_~mjQRDG!SyvXUNBGQ*Ph~7E1qG(;o-PtPDbEA}>KZizoW%l#EJ zpLs0X6Z;VTELFEL=bcUR%&`WZ^5BpS_ggT#1=Y2LTS=9Pjm7b89qXF!nx`yYZ-f}b z*Z=DX2H6g*rARkK#FDZz%uMqN#U0&?NI^<_q{A60!l^a1aI_MC|*XdL^5YKrX+ai6QS(3l}erb1RpG GY5fOuZZib{ literal 0 HcmV?d00001 diff --git a/assets/ApiSelect-BY9BsMzM.css b/assets/ApiSelect-BY9BsMzM.css new file mode 100644 index 000000000..55dc5ee8c --- /dev/null +++ b/assets/ApiSelect-BY9BsMzM.css @@ -0,0 +1 @@ +.basic-help__wrap p{margin-bottom:0}[data-v-bff590e6] .ant-form-item-control-input-content{display:flex;align-items:center}[data-v-bff590e6] .ant-form-item-control-input-content>div{flex:auto}.collapse-icon[data-v-af0a3cde]{transform:rotate(var(--4cf09dcc));transition:transform .3s} diff --git a/assets/ApiSelect.vue_vue_type_script_setup_true_lang-C4dv5akm.js b/assets/ApiSelect.vue_vue_type_script_setup_true_lang-C4dv5akm.js new file mode 100644 index 000000000..3d42fc2bd --- /dev/null +++ b/assets/ApiSelect.vue_vue_type_script_setup_true_lang-C4dv5akm.js @@ -0,0 +1,13 @@ +import{L as S,aw as ne,ax as ae,aj as J,ay as oe,az as se,X as ie,ag as ue,aA as X,aB as le,aC as ce,aD as fe,aE as B,aF as pe,aG as de,af as ye,aH as W,aI as ve,o as be,av as he,aJ as me,aK as I}from"./antdv-CA3HmnGF.js";import{i as D}from"./is-bed24ebq.js";import{h as ge}from"./index-CPnd3GcN.js";import{d as Oe,f as A,c as G,u as b,h as je,w as _e,W as we,X as Se,am as Te,ae as Pe,Y as N,k as R,a6 as Fe,G as $e,ak as ke,_ as Be,Z as Ae,au as Le,av as xe}from"./vue-Dbi1xauY.js";const ct={Input:S,InputGroup:S.Group,InputPassword:S.Password,InputSearch:S.Search,InputTextArea:S.TextArea,InputNumber:ne,AutoComplete:ae,Select:J,TreeSelect:oe,Tree:se,Switch:ie,RadioGroup:ue.Group,Checkbox:X,CheckboxGroup:X.Group,Cascader:le,Slider:ce,Rate:fe,DatePicker:B,MonthPicker:B.MonthPicker,RangePicker:B.RangePicker,WeekPicker:B.WeekPicker,TimePicker:pe,Upload:de,Divider:ye};var De=(e=>(e[e.XS=480]="XS",e[e.SM=576]="SM",e[e.MD=768]="MD",e[e.LG=992]="LG",e[e.XL=1200]="XL",e[e.XXL=1600]="XXL",e))(De||{});const w=new Map;w.set("XS",480);w.set("SM",576);w.set("MD",768);w.set("LG",992);w.set("XL",1200);w.set("XXL",1600);const ft=Object.keys(W()),pt={...W(),layout:{type:String,default:"horizontal"},initialValues:{type:Object,default:()=>({})},labelWidth:{type:[Number,String],default:0},fieldMapToTime:{type:Array,default:()=>[]},compact:{type:Boolean},schemas:{type:[Array],default:()=>[]},mergeDynamicData:{type:Object,default:null},baseRowStyle:{type:Object},baseColProps:{type:Object},autoSetPlaceHolder:{type:Boolean,default:!0},autoSubmitOnEnter:{type:Boolean,default:!1},submitOnReset:{type:Boolean},submitOnChange:{type:Boolean},disabled:{type:Boolean},emptySpan:{type:[Number,Object],default:0},showAdvancedButton:{type:Boolean},transformDateFunc:{type:Function,default:e=>{var t;return((t=e==null?void 0:e.format)==null?void 0:t.call(e,"YYYY-MM-DD HH:mm:ss"))??e}},rulesMessageJoinLabel:{type:Boolean,default:!0},autoAdvancedLine:{type:Number,default:3},alwaysShowLines:{type:Number,default:1},showActionButtonGroup:{type:Boolean,default:!0},actionColOptions:Object,showResetButton:{type:Boolean,default:!0},autoFocusFirstItem:{type:Boolean},resetButtonOptions:Object,showSubmitButton:{type:Boolean,default:!0},submitButtonOptions:Object,resetFunc:Function,submitFunc:Function,tableInstance:{type:Object},rowProps:Object},dt={register:e=>D(e),reset:e=>D(e),submit:e=>D(e),"advanced-change":()=>!0};/*! + * is-plain-object + * + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. + */function Y(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ne(e){var t,r;return Y(e)===!1?!1:(t=e.constructor,t===void 0?!0:(r=t.prototype,!(Y(r)===!1||r.hasOwnProperty("isPrototypeOf")===!1)))}function T(){return T=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(a[r]=e[r]);return a}const Ce={silent:!1,logLevel:"warn"},Me=["validator"],K=Object.prototype,E=K.toString,Ve=K.hasOwnProperty,Z=/^\s*function (\w+)/;function q(e){var t;const r=(t=e==null?void 0:e.type)!==null&&t!==void 0?t:e;if(r){const n=r.toString().match(Z);return n?n[1]:""}return""}const h=Ne,Xe=e=>e;let c=Xe;const O=(e,t)=>Ve.call(e,t),Ie=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},j=Array.isArray||function(e){return E.call(e)==="[object Array]"},_=e=>E.call(e)==="[object Function]",L=(e,t)=>h(e)&&O(e,"_vueTypes_name")&&(!t||e._vueTypes_name===t),Q=e=>h(e)&&(O(e,"type")||["_vueTypes_name","validator","default","required"].some(t=>O(e,t)));function C(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function m(e,t,r=!1){let n,a=!0,o="";n=h(e)?e:{type:e};const s=L(n)?n._vueTypes_name+" - ":"";if(Q(n)&&n.type!==null){if(n.type===void 0||n.type===!0||!n.required&&t==null)return a;j(n.type)?(a=n.type.some(i=>m(i,t,!0)===!0),o=n.type.map(i=>q(i)).join(" or ")):(o=q(n),a=o==="Array"?j(t):o==="Object"?h(t):o==="String"||o==="Number"||o==="Boolean"||o==="Function"?function(i){if(i==null)return"";const u=i.constructor.toString().match(Z);return u?u[1].replace(/^Async/,""):""}(t)===o:t instanceof n.type)}if(!a){const i=`${s}value "${t}" should be of type "${o}"`;return r===!1?(c(i),!1):i}if(O(n,"validator")&&_(n.validator)){const i=c,u=[];if(c=l=>{u.push(l)},a=n.validator(t),c=i,!a){const l=(u.length>1?"* ":"")+u.join(` +* `);return u.length=0,r===!1?(c(l),a):l}}return a}function f(e,t){const r=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get(){return this.required=!0,this}},def:{value(a){return a===void 0?this.type===Boolean||Array.isArray(this.type)&&this.type.includes(Boolean)?void(this.default=void 0):(O(this,"default")&&delete this.default,this):_(a)||m(this,a,!0)===!0?(this.default=j(a)?()=>[...a]:h(a)?()=>Object.assign({},a):a,this):(c(`${this._vueTypes_name} - invalid default value: "${a}"`),this)}}}),{validator:n}=r;return _(n)&&(r.validator=C(n,r)),r}function d(e,t){const r=f(e,t);return Object.defineProperty(r,"validate",{value(n){return _(this.validator)&&c(`${this._vueTypes_name} - calling .validate() will overwrite the current custom validator function. Validator info: +${JSON.stringify(this)}`),this.validator=C(n,this),this}})}function z(e,t,r){const n=function(u){const l={};return Object.getOwnPropertyNames(u).forEach(v=>{l[v]=Object.getOwnPropertyDescriptor(u,v)}),Object.defineProperties({},l)}(t);if(n._vueTypes_name=e,!h(r))return n;const{validator:a}=r,o=U(r,Me);if(_(a)){let{validator:u}=n;u&&(u=(i=(s=u).__original)!==null&&i!==void 0?i:s),n.validator=C(u?function(l){return u.call(this,l)&&a.call(this,l)}:a,n)}var s,i;return Object.assign(n,o)}function x(e){return e.replace(/^(?!\s*$)/gm," ")}const Ge=()=>d("any",{}),Re=()=>d("function",{type:Function}),H=()=>d("boolean",{type:Boolean}),Ye=()=>d("string",{type:String}),qe=()=>d("number",{type:Number}),ze=()=>d("array",{type:Array}),He=()=>d("object",{type:Object}),Je=()=>f("integer",{type:Number,validator(e){const t=Ie(e);return t===!1&&c(`integer - "${e}" is not an integer`),t}}),We=()=>f("symbol",{validator(e){const t=typeof e=="symbol";return t===!1&&c(`symbol - invalid value "${e}"`),t}}),Ue=()=>Object.defineProperty({type:null,validator(e){const t=e===null;return t===!1&&c("nullable - value should be null"),t}},"_vueTypes_name",{value:"nullable"});function Ke(e,t="custom validation failed"){if(typeof e!="function")throw new TypeError("[VueTypes error]: You must provide a function as argument");return f(e.name||"<>",{type:null,validator(r){const n=e(r);return n||c(`${this._vueTypes_name} - ${t}`),n}})}function Ee(e){if(!j(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");const t=`oneOf - value should be one of "${e.map(n=>typeof n=="symbol"?n.toString():n).join('", "')}".`,r={validator(n){const a=e.indexOf(n)!==-1;return a||c(t),a}};if(e.indexOf(null)===-1){const n=e.reduce((a,o)=>{if(o!=null){const s=o.constructor;a.indexOf(s)===-1&&a.push(s)}return a},[]);n.length>0&&(r.type=n)}return f("oneOf",r)}function Ze(e){if(!j(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");let t=!1,r=!1,n=[];for(let o=0;on.indexOf(o)===s);const a=r===!1&&n.length>0?n:null;return f("oneOfType",t?{type:a,validator(o){const s=[],i=e.some(u=>{const l=m(u,o,!0);return typeof l=="string"&&s.push(l),l===!0});return i||c(`oneOfType - provided value does not match any of the ${s.length} passed-in validators: +${x(s.join(` +`))}`),i}}:{type:a})}function Qe(e){return f("arrayOf",{type:Array,validator(t){let r="";const n=t.every(a=>(r=m(e,a,!0),r===!0));return n||c(`arrayOf - value validation error: +${x(r)}`),n}})}function et(e){return f("instanceOf",{type:e})}function tt(e){return f("objectOf",{type:Object,validator(t){let r="";const n=Object.keys(t).every(a=>(r=m(e,t[a],!0),r===!0));return n||c(`objectOf - value validation error: +${x(r)}`),n}})}function rt(e){const t=Object.keys(e),r=t.filter(a=>{var o;return!((o=e[a])===null||o===void 0||!o.required)}),n=f("shape",{type:Object,validator(a){if(!h(a))return!1;const o=Object.keys(a);if(r.length>0&&r.some(s=>o.indexOf(s)===-1)){const s=r.filter(i=>o.indexOf(i)===-1);return c(s.length===1?`shape - required property "${s[0]}" is not defined.`:`shape - required properties "${s.join('", "')}" are not defined.`),!1}return o.every(s=>{if(t.indexOf(s)===-1)return this._vueTypes_isLoose===!0||(c(`shape - shape definition does not include a "${s}" property. Allowed keys: "${t.join('", "')}".`),!1);const i=m(e[s],a[s],!0);return typeof i=="string"&&c(`shape - "${s}" property validation error: + ${x(i)}`),i===!0})}});return Object.defineProperty(n,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(n,"loose",{get(){return this._vueTypes_isLoose=!0,this}}),n}const nt=["name","validate","getter"],at=(()=>{var e;return(e=class{static get any(){return Ge()}static get func(){return Re().def(this.defaults.func)}static get bool(){return this.defaults.bool===void 0?H():H().def(this.defaults.bool)}static get string(){return Ye().def(this.defaults.string)}static get number(){return qe().def(this.defaults.number)}static get array(){return ze().def(this.defaults.array)}static get object(){return He().def(this.defaults.object)}static get integer(){return Je().def(this.defaults.integer)}static get symbol(){return We()}static get nullable(){return Ue()}static extend(t){if(c("VueTypes.extend is deprecated. Use the ES6+ method instead. See https://dwightjack.github.io/vue-types/advanced/extending-vue-types.html#extending-namespaced-validators-in-es6 for details."),j(t))return t.forEach(u=>this.extend(u)),this;const{name:r,validate:n=!1,getter:a=!1}=t,o=U(t,nt);if(O(this,r))throw new TypeError(`[VueTypes error]: Type "${r}" already defined`);const{type:s}=o;if(L(s))return delete o.type,Object.defineProperty(this,r,a?{get:()=>z(r,s,o)}:{value(...u){const l=z(r,s,o);return l.validator&&(l.validator=l.validator.bind(l,...u)),l}});let i;return i=a?{get(){const u=Object.assign({},o);return n?d(r,u):f(r,u)},enumerable:!0}:{value(...u){const l=Object.assign({},o);let v;return v=n?d(r,l):f(r,l),l.validator&&(v.validator=l.validator.bind(v,...u)),v},enumerable:!0},Object.defineProperty(this,r,i)}}).defaults={},e.sensibleDefaults=void 0,e.config=Ce,e.custom=Ke,e.oneOf=Ee,e.instanceOf=et,e.oneOfType=Ze,e.arrayOf=Qe,e.objectOf=tt,e.shape=rt,e.utils={validate:(t,r)=>m(r,t,!0)===!0,toType:(t,r,n=!1)=>n?d(t,r):f(t,r)},e})();function ee(e={func:()=>{},bool:!0,string:"",number:0,array:()=>[],object:()=>({}),integer:0}){var t;return(t=class extends at{static get sensibleDefaults(){return T({},this.defaults)}static set sensibleDefaults(r){this.defaults=r!==!1?T({},r!==!0?r:e):{}}}).defaults=T({},e),t}class yt extends ee(){}const ot=ee({func:void 0,bool:void 0,string:void 0,number:void 0,object:void 0,integer:void 0});class g extends ot{static get style(){return d("style",{type:[String,Object]})}static get VNodeChild(){return d("VNodeChild",{type:void 0})}}const vt=Oe({name:"ApiSelect",inheritAttrs:!1,__name:"ApiSelect",props:{...ve(),value:[Array,Object,String,Number],numberToString:g.bool,api:{type:Function,default:null},params:{type:Object,default:()=>({})},resultField:g.string.def(""),labelField:g.string.def("label"),valueField:g.string.def("value"),immediate:g.bool.def(!0),alwaysLoad:g.bool.def(!1)},emits:["options-change","change"],setup(e,{emit:t}){const r=e,n=t,a=A([]),o=A(!1),s=A(!0),i=A([]),{t:u}=ge(),l=G(()=>r),v=G(()=>{const{labelField:p,valueField:y,numberToString:F}=r;return b(a).reduce(($,k)=>{if(k){const V=k[y];$.push({...be(k,[p,y]),label:k[p],value:F?`${V}`:V})}return $},[])});je(()=>{r.immediate&&!r.alwaysLoad&&P()}),_e(()=>r.params,()=>{!b(s)&&P()},{deep:!0});async function P(){const p=r.api;if(!(!p||!he(p))){a.value=[];try{o.value=!0;const y=await p(r.params);if(Array.isArray(y)){a.value=y,M();return}r.resultField&&(a.value=me(y,r.resultField)||[]),M()}catch(y){console.warn(y)}finally{o.value=!1}}}async function te(p){p&&(r.alwaysLoad?await P():!r.immediate&&b(s)&&(await P(),s.value=!1))}function M(){n("options-change",b(v))}function re(p,...y){i.value=y}return(p,y)=>(we(),Se(b(J),Be(l.value,{options:v.value,onDropdownVisibleChange:te,onChange:re}),Te({_:2},[Pe(Object.keys(p.$slots),F=>({name:F,fn:N($=>[Ae(p.$slots,F,Le(xe($||{})))])})),o.value?{name:"suffixIcon",fn:N(()=>[R(b(I),{spin:""})]),key:"0"}:void 0,o.value?{name:"notFoundContent",fn:N(()=>[Fe("span",null,[R(b(I),{spin:"",class:"mr-1"}),$e(" "+ke(b(u)("component.form.apiSelectNotFound")),1)])]),key:"1"}:void 0]),1040,["options"]))}});export{vt as _,pt as a,dt as b,ct as c,ft as d,De as s}; diff --git a/assets/AvatarUpload-B06LZjT5.js b/assets/AvatarUpload-B06LZjT5.js new file mode 100644 index 000000000..6fedbf0d7 --- /dev/null +++ b/assets/AvatarUpload-B06LZjT5.js @@ -0,0 +1 @@ +import{_ as o}from"./AvatarUpload.vue_vue_type_script_setup_true_lang-BBAPnjEy.js";import"./dateUtil-CLVblcqH.js";import"./antdv-CA3HmnGF.js";import"./vue-Dbi1xauY.js";import"./index-CPnd3GcN.js";export{o as default}; diff --git a/assets/AvatarUpload.vue_vue_type_script_setup_true_lang-BBAPnjEy.js b/assets/AvatarUpload.vue_vue_type_script_setup_true_lang-BBAPnjEy.js new file mode 100644 index 000000000..a3fcdfd19 --- /dev/null +++ b/assets/AvatarUpload.vue_vue_type_script_setup_true_lang-BBAPnjEy.js @@ -0,0 +1 @@ +import{f as m}from"./dateUtil-CLVblcqH.js";import{T as P,A as k}from"./index-CPnd3GcN.js";import{A as M,U as i,a0 as N,e as v,M as V,an as B,aG as O}from"./antdv-CA3HmnGF.js";import{k as s,a as T,d as j,as as G,f as r,c as q,w as D,W as h,a5 as f,Y as w,u as _,ad as E,a6 as I,F}from"./vue-Dbi1xauY.js";function J(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!T(t)}const g=t=>/^https?:\/\//.test(t)?t:P+t,Q=[{title:"头像",width:80,dataIndex:"avatar",hideInSearch:!0,customRender:({record:t})=>s(M,{src:g(t.avatar)},null)},{title:"用户名",width:120,dataIndex:"username"},{title:"呢称",width:120,hideInSearch:!0,dataIndex:"nickname"},{title:"所在部门",dataIndex:"dept",hideInSearch:!0,width:180,customRender:({record:t})=>s(i,null,{default:()=>{var a;return[(a=t.dept)==null?void 0:a.name]}})},{title:"所属角色",dataIndex:"roleNames",hideInSearch:!0,width:220,customRender:({record:t})=>{let a;return s(N,null,J(a=t.roles.map(n=>s(i,{color:"success",key:n.id},{default:()=>[n.name]})))?a:{default:()=>[a]})}},{title:"邮箱",width:120,dataIndex:"email"},{title:"手机",width:120,dataIndex:"phone"},{title:"备注",width:120,dataIndex:"remark"},{title:"状态",dataIndex:"status",width:100,hideInSearch:!0,formItemProps:{component:"Select",componentProps:{options:[{label:"启用",value:1},{label:"禁用",value:0}]}},customRender:({record:t})=>{const a=~~t.status===1;return s(i,{color:a?"success":"red"},{default:()=>[a?"启用":"禁用"]})}},{title:"创建时间",dataIndex:"createdAt",width:120,hideInSearch:!0,customRender:({record:t})=>m(t.createdAt)},{title:"修改时间",dataIndex:"updatedAt",width:120,hideInSearch:!0,customRender:({record:t})=>m(t.createdAt)}],L={key:0},Y=I("div",{style:{"margin-top":"8px"}},"Upload",-1),z=["src"],X=j({name:"AvatarUpload",inheritAttrs:!1,__name:"AvatarUpload",props:{value:{},valueModifiers:{}},emits:["update:value"],setup(t){const a=G(t,"value"),n=r([]),u=r(!1),c=r(""),d=r(""),p=q(()=>g(a.value)),x=D(a,e=>{e&&!n.value.length&&(n.value=[{uid:`vc-upload-${Date.now()}-1`,name:e.split("/").at(-1),status:"done",url:p.value}],x())}),A=e=>{const o=e.type==="image/jpeg"||e.type==="image/png";o||v.error("You can only upload JPG/PNG file!");const l=e.size/1024/1024<2;return l||v.error("Image must smaller than 2MB!"),o&&l},y=async e=>{const{filename:o}=await k.toolsUpload.uploadUpload({file:e});a.value=o},b=async e=>{await y(e.file)},S=({file:e})=>{e.status="done",n.value=[e]},U=e=>{a.value="",n.value=[]},R=()=>{u.value=!1,d.value=""},C=async e=>{!e.url&&!e.preview&&(e.preview=p.value),c.value=e.url||e.preview,u.value=!0,d.value=e.name||e.url.substring(e.url.lastIndexOf("/")+1)};return(e,o)=>{const l=V;return h(),f(F,null,[s(_(O),{"file-list":n.value,name:"avatar","list-type":"picture-card",class:"min-h-[110px]","custom-request":b,onBeforeUpload:A,onChange:S,onRemove:U,onPreview:C},{default:w(()=>[n.value.length<1?(h(),f("div",L,[s(_(B)),Y])):E("",!0)]),_:1},8,["file-list"]),s(l,{open:u.value,title:d.value,footer:null,onCancel:R},{default:w(()=>[I("img",{alt:"example",style:{width:"100%"},src:c.value},null,8,z)]),_:1},8,["open","title"])],64)}}});export{X as _,Q as b}; diff --git a/assets/DeptTree-Bay4_0Hy.js b/assets/DeptTree-Bay4_0Hy.js new file mode 100644 index 000000000..e97c518fe --- /dev/null +++ b/assets/DeptTree-Bay4_0Hy.js @@ -0,0 +1 @@ +import{A,d as B,_ as C}from"./index-CPnd3GcN.js";import{ai as N,bu as V,v as b,x as z,y as E,az as F}from"./antdv-CA3HmnGF.js";import{d as L,f as p,c as U,W as $,a5 as G,a6 as y,k as l,Y as d,G as x,F as M,a7 as P,a8 as W}from"./vue-Dbi1xauY.js";const Y=u=>(P("data-v-204de9e8"),u=u(),W(),u),j={style:{"--border":1},class:"header"},q=Y(()=>y("div",{class:"title"},"组织架构",-1)),H=L({name:"DeptTree",__name:"DeptTree",emits:["select","init"],setup(u,{emit:g}){const _=g,i=p(""),c=p([]),s=p([]),m=p(!0),v=U(()=>f(N(c.value),i.value)),f=(t,e="")=>t.filter(n=>{var a,o;return(a=n.children)!=null&&a.length&&(n.children=f(n.children,e),n.children.length)?!0:(o=n.name)==null?void 0:o.includes(e)}),D=async()=>{c.value=await A.systemDept.deptList({}),s.value=[...s.value,...c.value.map(t=>Number(t.id))],_("init",c.value)},T=t=>{_("select",t[0])},h=(t,e=[])=>t.reduce((n,a)=>{var o;return n.push(a.id),(o=a.children)!=null&&o.length&&h(a.children,n),n},e),k=()=>{s.value=h(v.value)},K=t=>{s.value=t,m.value=!1};return D(),(t,e)=>{const n=V,a=B,o=b,w=z,I=E,S=F;return $(),G(M,null,[y("div",j,[q,l(n,{value:i.value,"onUpdate:value":e[0]||(e[0]=r=>i.value=r),size:"small",placeholder:"搜索"},null,8,["value"]),l(I,null,{overlay:d(()=>[l(w,null,{default:d(()=>[l(o,{onClick:k},{default:d(()=>[x(" 展开全部 ")]),_:1}),l(o,{onClick:e[1]||(e[1]=r=>s.value=[])},{default:d(()=>[x(" 折叠全部 ")]),_:1})]),_:1})]),default:d(()=>[l(a,{icon:"ant-design:more-outlined",size:"20",class:"flex-shrink-0"})]),_:1})]),l(S,{expandedKeys:s.value,"onUpdate:expandedKeys":e[2]||(e[2]=r=>s.value=r),"auto-expand-parent":m.value,"tree-data":v.value,"field-names":{key:"id",title:"name"},onSelect:T,onExpand:K},null,8,["expandedKeys","auto-expand-parent","tree-data"])],64)}}}),R=C(H,[["__scopeId","data-v-204de9e8"]]);export{R as default}; diff --git a/assets/DeptTree-CVDsyyWk.css b/assets/DeptTree-CVDsyyWk.css new file mode 100644 index 000000000..c2ec832aa --- /dev/null +++ b/assets/DeptTree-CVDsyyWk.css @@ -0,0 +1 @@ +.header[data-v-204de9e8]{display:flex;align-items:center;margin-bottom:10px;padding-bottom:10px;border-bottom:1px solid #eee}.title[data-v-204de9e8]{margin-right:6px;font-size:16px;font-weight:600;white-space:nowrap} diff --git a/assets/about-DdIj9yhf.js b/assets/about-DdIj9yhf.js new file mode 100644 index 000000000..046df2855 --- /dev/null +++ b/assets/about-DdIj9yhf.js @@ -0,0 +1,8 @@ +import{ac as u,Q as i,U as f}from"./antdv-CA3HmnGF.js";import{d as w,W as c,a5 as m,k as t,Y as n,u as e,G as g,ak as v,F as y,ae as b,X as h}from"./vue-Dbi1xauY.js";var j={pkg:{name:"vue3-antdv-admin",version:"2.0.0",packageManager:"pnpm@8.10.2",type:"module",engines:{node:">=18"},author:{name:"buqiyuan",email:"1743369777@qq.com",url:"https://github.com/buqiyuan"},scripts:{preinstall:"npx only-allow pnpm",postinstall:"pnpm nx:build",bootstrap:"pnpm install",serve:"npm run dev",dev:"vite dev",build:"rimraf dist && cross-env NODE_ENV=production vite build","build:watch":"rimraf dist && cross-env NODE_ENV=production vite build --watch","build:pkg":'pnpm -r --paralle --filter="./packages/*" run build',"nx:build":"nx run-many -t build --exclude @admin-pkg/components","nx:build:watch":"nx watch --all -- nx run \\$NX_PROJECT_NAME:build",preview:"npm run build --watch && vite preview","preview:dist":"vite preview",openapi:"npx tsx openapi.config.ts","clean:cache":"npx rimraf node_modules/.cache/ && npx rimraf node_modules/.vite","clean:lib":"npx rimraf node_modules packages/*/node_modules",lint:"pnpm lint:eslint && pnpm lint:prettier && pnpm lint:stylelint","lint:eslint":'eslint --cache --max-warnings 0 "{src,mocks}/**/*.{vue,ts,tsx}" --fix',"lint:prettier":'prettier --write "src/**/*.{js,json,tsx,css,less,scss,vue,html,md}"',"lint:stylelint":'stylelint --cache --fix "**/*.{vue,less,postcss,css,scss}" --cache --cache-location node_modules/.cache/stylelint/',"lint:lint-staged":"lint-staged",prepare:"husky",release:"git push && git push origin --tags","gen:changelog":"conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md",reinstall:"rimraf pnpm-lock.yaml && rimraf package.lock.json && pnpm clean:lib && npm run bootstrap","test:gzip":"npx http-server dist --cors --gzip -c-1","test:br":"npx http-server dist --cors --brotli -c-1"},dependencies:{"@ant-design/icons-vue":"~7.0.1","@iconify/vue":"^4.1.1","@tinymce/tinymce-vue":"^5.1.1","@vueuse/core":"~10.9.0","ant-design-vue":"~4.1.2",axios:"~1.6.8","crypto-js":"^4.2.0",dayjs:"~1.11.10",echarts:"^5.5.0","file-saver":"~2.0.5","lodash-es":"~4.17.21",mitt:"~3.0.1",nprogress:"~1.0.0-1",pinia:"~2.1.7","pinia-plugin-persistedstate":"^3.2.1","qiniu-js":"^3.4.2",qs:"~6.12.0",sortablejs:"~1.15.2",tinymce:"^6.8.3",vue:"~3.4.21","vue-echarts":"^6.6.9","vue-i18n":"9.11.0","vue-router":"~4.3.0","vue-types":"~5.1.1","vue-virtual-scroller":"2.0.0-beta.8",xlsx:"~0.18.5"},devDependencies:{"@admin-pkg/components":"workspace:*","@admin-pkg/vite-plugin-msw":"workspace:*","@admin-pkg/vite-plugin-tinymce-resource":"workspace:*","@commitlint/cli":"~19.2.1","@commitlint/config-conventional":"~19.1.0","@faker-js/faker":"^8.4.1","@iconify-json/ant-design":"^1.1.15","@iconify-json/ep":"^1.1.15","@iconify/json":"^2.2.195","@types/crypto-js":"^4.2.2","@types/lodash-es":"~4.17.12","@types/node":"~20.11.16","@types/sortablejs":"^1.15.8","@typescript-eslint/eslint-plugin":"~7.5.0","@typescript-eslint/parser":"~7.5.0","@umijs/openapi":"^1.11.1","@vitejs/plugin-vue":"~5.0.4","@vitejs/plugin-vue-jsx":"~3.1.0","@vue/tsconfig":"^0.5.1",commitizen:"~4.3.0","conventional-changelog-cli":"~4.1.0","core-js":"^3.36.1","cross-env":"~7.0.3",eslint:"~8.57.0","eslint-config-prettier":"~9.1.0","eslint-define-config":"~2.1.0","eslint-plugin-import":"~2.29.1","eslint-plugin-prettier":"~5.1.3","eslint-plugin-unused-imports":"^3.1.0","eslint-plugin-vue":"~9.24.0",husky:"~9.0.11",less:"~4.2.0","lint-staged":"~15.2.2",msw:"^2.2.13",nx:"^18.2.2",postcss:"~8.4.38","postcss-html":"~1.6.0","postcss-less":"~6.0.0",prettier:"~3.2.5",rimraf:"~5.0.5",stylelint:"~16.3.1","stylelint-config-property-sort-order-smacss":"^10.0.0","stylelint-config-recommended":"~14.0.0","stylelint-config-recommended-vue":"~1.5.0","stylelint-config-standard":"~36.0.0","stylelint-order":"~6.0.4","stylelint-prettier":"^5.0.0",typescript:"~5.4.3",unocss:"^0.58.9","unplugin-vue-components":"~0.26.0",vite:"~5.2.8","vite-plugin-checker":"~0.6.4","vite-plugin-inspect":"^0.8.3","vite-plugin-mkcert":"^1.17.5","vite-plugin-svg-icons":"~2.0.1","vue-eslint-parser":"~9.4.2","vue-tsc":"~1.8.27"},__npminstall_done:!1,repository:{type:"git",url:"https://github.com/buqiyuan/vue3-antdv-admin"},homepage:"https://buqiyuan.gitee.io/vue3-antdv-admin",keywords:["vue","ant-design-vue","vue3","ts","tsx","admin","typescript"],license:"MIT",target:"web",pnpm:{overrides:{}},workspaces:["packages/*"]},lastBuildTime:"2024-04-05 20:13:49"};const q=w({name:"About",__name:"about",setup(N){const{pkg:s,lastBuildTime:x}=j,_={...s.dependencies,...s.devDependencies},r=({url:a="",text:p})=>{const o=/^http(s)?:/.test(a)?a:`https://www.npmjs.com/package/${a}`;return t("a",{href:o,target:"_blank"},[p])},d=a=>{var p;return((p=_[a].match(/\d+/))==null?void 0:p[0])||""},k=` + 的前端项目是基于 Vue${d("vue")}.x、 + Vite${d("vite")}.x、 + Ant-Design-Vue${d("ant-design-vue")}.x 、 + TypeScript${d("typescript")}.x 开发, + 内置了动态路由、权限验证、并提供了常用的功能组件,帮助你快速搭建企业级中后台产品原型。 + 原则上不会限制任何代码用于商用。 + `;return(a,p)=>(c(),m("div",null,[t(e(u),null,{default:n(()=>[t(e(u).Meta,{title:"关于"},{description:n(()=>[t(r,{url:e(s).author.url,text:e(s).name},null,8,["url","text"]),g(v(k))]),_:1})]),_:1}),t(e(u),{class:"mt-3"},{default:n(()=>[t(e(i),{title:"项目信息",column:2,bordered:""},{default:n(()=>[t(e(i).Item,{label:"版本"},{default:n(()=>[t(e(f),{color:"processing"},{default:n(()=>[g(v(e(s).version),1)]),_:1})]),_:1}),t(e(i).Item,{label:"最后编译时间"},{default:n(()=>[t(e(f),{color:"processing"},{default:n(()=>[g(v(e(x)),1)]),_:1})]),_:1}),t(e(i).Item,{label:"GitHub"},{default:n(()=>[t(r,{url:e(s).repository.url,text:"GitHub"},null,8,["url"])]),_:1}),t(e(i).Item,{label:"预览地址"},{default:n(()=>[t(r,{url:e(s).homepage,text:"预览地址"},null,8,["url"])]),_:1})]),_:1})]),_:1}),t(e(u),{class:"mt-3"},{default:n(()=>[t(e(i),{title:"生产环境依赖",bordered:""},{default:n(()=>[(c(!0),m(y,null,b(e(s).dependencies,(o,l)=>(c(),h(e(i).Item,{key:l,label:l},{default:n(()=>[t(r,{url:l,text:o},null,8,["url","text"])]),_:2},1032,["label"]))),128))]),_:1})]),_:1}),t(e(u),{class:"mt-3"},{default:n(()=>[t(e(i),{title:"开发环境依赖",bordered:""},{default:n(()=>[(c(!0),m(y,null,b(e(s).devDependencies,(o,l)=>(c(),h(e(i).Item,{key:l,label:l},{default:n(()=>[t(r,{url:l,text:o},null,8,["url","text"])]),_:2},1032,["label"]))),128))]),_:1})]),_:1})]))}});export{q as default}; diff --git a/assets/analysis-DNySu1oN.svg b/assets/analysis-DNySu1oN.svg new file mode 100644 index 000000000..9c2da5576 --- /dev/null +++ b/assets/analysis-DNySu1oN.svg @@ -0,0 +1 @@ +- \ No newline at end of file diff --git a/assets/antdv-CA3HmnGF.js b/assets/antdv-CA3HmnGF.js new file mode 100644 index 000000000..e25da9850 --- /dev/null +++ b/assets/antdv-CA3HmnGF.js @@ -0,0 +1,457 @@ +import{c as P,i as Xe,p as Ke,F as nt,a as Zt,C as N$,T as Gp,d as J,r as vt,g as Dn,o as Ve,b as ao,e as An,w as ue,f as Z,u as Lt,s as Y,h as Le,j as Je,t as k$,k as f,l as af,m as Kt,n as u8,q as rn,v as ko,x as zr,y as lt,z as Be,A as Wn,B as jm,D as Xp,E as Up,G as go,H as B$,I as Rr,J as _t,K as d8,L as Yp,M as f8,N as p8,O as nc,P as F$,Q as v8}from"./vue-Dbi1xauY.js";var cr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ur(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Zne(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function o(){return this instanceof o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,r.get?r:{enumerable:!0,get:function(){return e[o]}})}),n}const vn=function(){for(var e=arguments.length,t=new Array(e),n=0;n{const t=e;return t.install=function(n){n.component(t.displayName||t.name,e)},e};function Hr(){return{type:[Function,Array]}}function Ne(e){return{type:Object,default:e}}function Ce(e){return{type:Boolean,default:e}}function de(e){return{type:Function,default:e}}function xt(e,t){const n={validator:()=>!0,default:e};return n}function ba(){return{validator:()=>!0}}function ht(e){return{type:Array,default:e}}function je(e){return{type:String,default:e}}function Ge(e,t){return e?{type:e,default:t}:xt(t)}const qp="anticon",L$=Symbol("GlobalFormContextKey"),h8=e=>{Ke(L$,e)},m8=()=>Xe(L$,{validateMessages:P(()=>{})}),b8=()=>({iconPrefixCls:String,getTargetContainer:{type:Function},getPopupContainer:{type:Function},prefixCls:String,getPrefixCls:{type:Function},renderEmpty:{type:Function},transformCellText:{type:Function},csp:Ne(),input:Ne(),autoInsertSpaceInButton:{type:Boolean,default:void 0},locale:Ne(),pageHeader:Ne(),componentSize:{type:String},componentDisabled:{type:Boolean,default:void 0},direction:{type:String,default:"ltr"},space:Ne(),virtual:{type:Boolean,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},form:Ne(),pagination:Ne(),theme:Ne(),select:Ne(),wave:Ne()}),Qp=Symbol("configProvider"),z$={getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:P(()=>qp),getPopupContainer:P(()=>()=>document.body),direction:P(()=>"ltr")},oc=()=>Xe(Qp,z$),y8=e=>Ke(Qp,e);var H$=typeof global=="object"&&global&&global.Object===Object&&global,S8=typeof self=="object"&&self&&self.Object===Object&&self,lo=H$||S8||Function("return this")(),Kn=lo.Symbol,j$=Object.prototype,$8=j$.hasOwnProperty,C8=j$.toString,il=Kn?Kn.toStringTag:void 0;function x8(e){var t=$8.call(e,il),n=e[il];try{e[il]=void 0;var o=!0}catch{}var r=C8.call(e);return o&&(t?e[il]=n:delete e[il]),r}var w8=Object.prototype,O8=w8.toString;function P8(e){return O8.call(e)}var I8="[object Null]",T8="[object Undefined]",Vm=Kn?Kn.toStringTag:void 0;function So(e){return e==null?e===void 0?T8:I8:Vm&&Vm in Object(e)?x8(e):P8(e)}function En(e){return e!=null&&typeof e=="object"}var M8="[object Symbol]";function rc(e){return typeof e=="symbol"||En(e)&&So(e)==M8}function ni(e,t){for(var n=-1,o=e==null?0:e.length,r=Array(o);++n0){if(++t>=iO)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function dO(e){return function(){return e}}var $s=function(){try{var e=Ur(Object,"defineProperty");return e({},"",{}),e}catch{}}(),fO=$s?function(e,t){return $s(e,"toString",{configurable:!0,enumerable:!1,value:dO(t),writable:!0})}:Zp;const pO=fO;var K$=uO(pO);function vO(e,t){for(var n=-1,o=e==null?0:e.length;++n-1}var bO=9007199254740991,yO=/^(?:0|[1-9]\d*)$/;function ac(e,t){var n=typeof e;return t=t??bO,!!t&&(n=="number"||n!="symbol"&&yO.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=CO}function Yr(e){return e!=null&&nv(e.length)&&!Jp(e)}function xO(e,t,n){if(!an(n))return!1;var o=typeof t;return(o=="number"?Yr(n)&&ac(t,n.length):o=="string"&&t in n)?oi(n[t],e):!1}function Y$(e){return lc(function(t,n){var o=-1,r=n.length,a=r>1?n[r-1]:void 0,l=r>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(r--,a):void 0,l&&xO(n[0],n[1],l)&&(a=r<3?void 0:a,r=1),t=Object(t);++o-1}function N5(e,t){var n=this.__data__,o=uc(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}function Ho(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t0&&n(i)?t>1?lv(i,t-1,n,o,r):av(r,i):o||(r[r.length]=i)}return r}function Z5(e){var t=e==null?0:e.length;return t?lv(e,1):[]}function nC(e){return K$(U$(e,void 0,Z5),e+"")}var iv=eC(Object.getPrototypeOf,Object),J5="[object Object]",eP=Function.prototype,tP=Object.prototype,oC=eP.toString,nP=tP.hasOwnProperty,oP=oC.call(Object);function pc(e){if(!En(e)||So(e)!=J5)return!1;var t=iv(e);if(t===null)return!0;var n=nP.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&oC.call(n)==oP}function rP(e,t,n){var o=-1,r=e.length;t<0&&(t=-t>r?0:r+t),n=n>r?r:n,n<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(r);++oi))return!1;var u=a.get(e),c=a.get(t);if(u&&c)return u==t&&c==e;var d=-1,p=!0,g=n&L7?new Ra:void 0;for(a.set(e,t),a.set(t,e);++d=t||w<0||d&&M>=a}function y(){var O=Du();if(b(O))return S(O);i=setTimeout(y,h(O))}function S(O){return i=void 0,p&&o?g(O):(o=r=void 0,l)}function $(){i!==void 0&&clearTimeout(i),u=0,o=s=r=i=void 0}function x(){return i===void 0?l:S(Du())}function C(){var O=Du(),w=b(O);if(o=arguments,r=this,s=O,w){if(i===void 0)return m(s);if(d)return clearTimeout(i),i=setTimeout(y,t),g(s)}return i===void 0&&(i=setTimeout(y,t)),l}return C.cancel=$,C.flush=x,C}function ff(e,t,n){(n!==void 0&&!oi(e[t],n)||n===void 0&&!(t in e))&&ev(e,t,n)}function dv(e){return En(e)&&Yr(e)}function pf(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function _I(e){return Xa(e,ri(e))}function DI(e,t,n,o,r,a,l){var i=pf(e,n),s=pf(t,n),u=l.get(s);if(u){ff(e,n,u);return}var c=a?a(i,s,n+"",e,t,l):void 0,d=c===void 0;if(d){var p=Jt(s),g=!p&&_a(s),m=!p&&!g&&cc(s);c=s,p||g||m?Jt(i)?c=i:dv(i)?c=W$(i):g?(d=!1,c=aC(s,!0)):m?(d=!1,c=uC(s,!0)):c=[]:pc(s)||Ea(s)?(c=i,Ea(i)?c=_I(i):(!an(i)||Jp(i))&&(c=dC(s))):d=!1}d&&(l.set(s,c),r(c,s,o,a,l),l.delete(s)),ff(e,n,c)}function fv(e,t,n,o,r){e!==t&&yC(t,function(a,l){if(r||(r=new to),an(a))DI(e,t,l,n,fv,o,r);else{var i=o?o(pf(e,l),a,l+"",e,t,r):void 0;i===void 0&&(i=a),ff(e,l,i)}},ri)}var eoe=Y$(function(e,t,n,o){fv(e,t,n,o)});function SC(e,t,n){for(var o=-1,r=e==null?0:e.length;++o-1?r[a?t[l]:l]:void 0}}var RI=Math.max;function NI(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var r=n==null?0:H8(n);return r<0&&(r=RI(o+r,0)),G$(e,gc(t),r)}var kI=AI(NI);function BI(e){for(var t=-1,n=e==null?0:e.length,o={};++t=120&&c.length>=120)?new Ra(l&&c):void 0}c=e[0];var d=-1,p=i[0];e:for(;++d1),a}),Xa(e,cC(e),n),o&&(n=Sa(n,QI|ZI|JI,qI));for(var r=t.length;r--;)wC(n,t[r]);return n});function OC(e,t,n,o){if(!an(e))return e;t=Ya(t,e);for(var r=-1,a=t.length,l=a-1,i=e;i!=null&&++r=sT){var u=t?null:iT(e);if(u)return uv(u);l=!1,r=xs,s=new Ra}else s=t?[]:i;e:for(;++otypeof e=="function",pT=Array.isArray,vT=e=>typeof e=="string",gT=e=>e!==null&&typeof e=="object",hT=/^on[^a-z]/,mT=e=>hT.test(e),hv=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},bT=/-(\w)/g,qr=hv(e=>e.replace(bT,(t,n)=>n?n.toUpperCase():"")),yT=/\B([A-Z])/g,ST=hv(e=>e.replace(yT,"-$1").toLowerCase()),$T=hv(e=>e.charAt(0).toUpperCase()+e.slice(1)),CT=Object.prototype.hasOwnProperty,S0=(e,t)=>CT.call(e,t);function xT(e,t,n,o){const r=e[n];if(r!=null){const a=S0(r,"default");if(a&&o===void 0){const l=r.default;o=r.type!==Function&&fT(l)?l():l}r.type===Boolean&&(!S0(t,n)&&!a?o=!1:o===""&&(o=!0))}return o}function xr(e){return typeof e=="number"?`${e}px`:e}function va(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return typeof e=="function"?e(t):e??n}function wT(e){let t;const n=new Promise(r=>{t=e(()=>{r(!0)})}),o=()=>{t==null||t()};return o.then=(r,a)=>n.then(r,a),o.promise=n,o}function te(){const e=[];for(let t=0;t0},e.prototype.connect_=function(){!vf||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),ET?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!vf||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,o=n===void 0?"":n,r=MT.some(function(a){return!!~o.indexOf(a)});r&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),TC=function(e,t){for(var n=0,o=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof Na(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new LT(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Na(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(o){return new zT(o.target,o.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),EC=typeof WeakMap<"u"?new WeakMap:new IC,_C=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=_T.getInstance(),o=new HT(t,n,this);EC.set(this,o)}return e}();["observe","unobserve","disconnect"].forEach(function(e){_C.prototype[e]=function(){var t;return(t=EC.get(this))[e].apply(t,arguments)}});var jT=function(){return typeof ws.ResizeObserver<"u"?ws.ResizeObserver:_C}();const mv=jT,gf=e=>e!=null&&e!=="",rt=(e,t)=>{const n=v({},e);return Object.keys(t).forEach(o=>{const r=n[o];if(r)r.type||r.default?r.default=t[o]:r.def?r.def(t[o]):n[o]={type:r,default:t[o]};else throw new Error(`not have ${o} prop`)}),n},DC=e=>{const t=Object.keys(e),n={},o={},r={};for(let a=0,l=t.length;a0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n={},o=/;(?![^(]*\))/g,r=/:(.+)/;return typeof e=="object"?e:(e.split(o).forEach(function(a){if(a){const l=a.split(r);if(l.length>1){const i=t?qr(l[0].trim()):l[0].trim();n[i]=l[1].trim()}}}),n)},_o=(e,t)=>e[t]!==void 0,AC=Symbol("skipFlatten"),mt=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const n=Array.isArray(e)?e:[e],o=[];return n.forEach(r=>{Array.isArray(r)?o.push(...mt(r,t)):r&&r.type===nt?r.key===AC?o.push(r):o.push(...mt(r.children,t)):r&&Zt(r)?t&&!bv(r)?o.push(r):t||o.push(r):gf(r)&&o.push(r)}),o},bc=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(Zt(e))return e.type===nt?t==="default"?mt(e.children):[]:e.children&&e.children[t]?mt(e.children[t](n)):[];{const o=e.$slots[t]&&e.$slots[t](n);return mt(o)}},Pn=e=>{var t;let n=((t=e==null?void 0:e.vnode)===null||t===void 0?void 0:t.el)||e&&(e.$el||e);for(;n&&!n.tagName;)n=n.nextSibling;return n},WT=e=>{const t={};if(e.$&&e.$.vnode){const n=e.$.vnode.props||{};Object.keys(e.$props).forEach(o=>{const r=e.$props[o],a=ST(o);(r!==void 0||a in n)&&(t[o]=r)})}else if(Zt(e)&&typeof e.type=="object"){const n=e.props||{},o={};Object.keys(n).forEach(a=>{o[qr(a)]=n[a]});const r=e.type.props||{};Object.keys(r).forEach(a=>{const l=xT(r,o,a,o[a]);(l!==void 0||a in o)&&(t[a]=l)})}return t},RC=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,r;if(e.$){const a=e[t];if(a!==void 0)return typeof a=="function"&&o?a(n):a;r=e.$slots[t],r=o&&r?r(n):r}else if(Zt(e)){const a=e.props&&e.props[t];if(a!==void 0&&e.props!==null)return typeof a=="function"&&o?a(n):a;e.type===nt?r=e.children:e.children&&e.children[t]&&(r=e.children[t],r=o&&r?r(n):r)}return Array.isArray(r)&&(r=mt(r),r=r.length===1?r[0]:r,r=r.length===0?void 0:r),r};function C0(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n={};return e.$?n=v(v({},n),e.$attrs):n=v(v({},n),e.props),DC(n)[t?"onEvents":"events"]}function KT(e){const n=((Zt(e)?e.props:e.$attrs)||{}).class||{};let o={};return typeof n=="string"?n.split(" ").forEach(r=>{o[r.trim()]=!0}):Array.isArray(n)?te(n).split(" ").forEach(r=>{o[r.trim()]=!0}):o=v(v({},o),n),o}function NC(e,t){let o=((Zt(e)?e.props:e.$attrs)||{}).style||{};if(typeof o=="string")o=VT(o,t);else if(t&&o){const r={};return Object.keys(o).forEach(a=>r[qr(a)]=o[a]),r}return o}function GT(e){return e.length===1&&e[0].type===nt}function bv(e){return e&&(e.type===N$||e.type===nt&&e.children.length===0||e.type===Gp&&e.children.trim()==="")}function Tt(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const t=[];return e.forEach(n=>{Array.isArray(n)?t.push(...n):(n==null?void 0:n.type)===nt?t.push(...Tt(n.children)):t.push(n)}),t.filter(n=>!bv(n))}function sl(e){if(e){const t=Tt(e);return t.length?t:void 0}else return e}function kt(e){return Array.isArray(e)&&e.length===1&&(e=e[0]),e&&e.__v_isVNode&&typeof e.type!="symbol"}function Nt(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"default";var o,r;return(o=t[n])!==null&&o!==void 0?o:(r=e[n])===null||r===void 0?void 0:r.call(e)}const ho=J({compatConfig:{MODE:3},name:"ResizeObserver",props:{disabled:Boolean,onResize:Function},emits:["resize"],setup(e,t){let{slots:n}=t;const o=vt({width:0,height:0,offsetHeight:0,offsetWidth:0});let r=null,a=null;const l=()=>{a&&(a.disconnect(),a=null)},i=c=>{const{onResize:d}=e,p=c[0].target,{width:g,height:m}=p.getBoundingClientRect(),{offsetWidth:h,offsetHeight:b}=p,y=Math.floor(g),S=Math.floor(m);if(o.width!==y||o.height!==S||o.offsetWidth!==h||o.offsetHeight!==b){const $={width:y,height:S,offsetWidth:h,offsetHeight:b};v(o,$),d&&Promise.resolve().then(()=>{d(v(v({},$),{offsetWidth:h,offsetHeight:b}),p)})}},s=Dn(),u=()=>{const{disabled:c}=e;if(c){l();return}const d=Pn(s);d!==r&&(l(),r=d),!a&&d&&(a=new mv(i),a.observe(d))};return Ve(()=>{u()}),ao(()=>{u()}),An(()=>{l()}),ue(()=>e.disabled,()=>{u()},{flush:"post"}),()=>{var c;return(c=n.default)===null||c===void 0?void 0:c.call(n)[0]}}});let kC=e=>setTimeout(e,16),BC=e=>clearTimeout(e);typeof window<"u"&&"requestAnimationFrame"in window&&(kC=e=>window.requestAnimationFrame(e),BC=e=>window.cancelAnimationFrame(e));let x0=0;const yv=new Map;function FC(e){yv.delete(e)}function We(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;x0+=1;const n=x0;function o(r){if(r===0)FC(n),e();else{const a=kC(()=>{o(r-1)});yv.set(n,a)}}return o(t),n}We.cancel=e=>{const t=yv.get(e);return FC(t),BC(t)};let LC=!1;try{const e=Object.defineProperty({},"passive",{get(){LC=!0}});window.addEventListener("testPassive",null,e),window.removeEventListener("testPassive",null,e)}catch{}const zt=LC;function wt(e,t,n,o){if(e&&e.addEventListener){let r=o;r===void 0&&zt&&(t==="touchstart"||t==="touchmove"||t==="wheel")&&(r={passive:!1}),e.addEventListener(t,n,r)}return{remove:()=>{e&&e.removeEventListener&&e.removeEventListener(t,n)}}}const zC=Symbol("DisabledContextKey"),gn=()=>Xe(zC,Z(void 0)),HC=e=>{const t=gn();return Ke(zC,P(()=>{var n;return(n=e.value)!==null&&n!==void 0?n:t.value})),e},jC={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages"},XT={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},UT=XT,YT={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},VC=YT,qT={lang:v({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},UT),timePickerLocale:v({},VC)},Ps=qT,Sn="${label} is not a valid ${type}",QT={locale:"en",Pagination:jC,DatePicker:Ps,TimePicker:VC,Calendar:Ps,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Sn,method:Sn,array:Sn,object:Sn,number:Sn,date:Sn,boolean:Sn,integer:Sn,float:Sn,regexp:Sn,email:Sn,url:Sn,hex:Sn},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"}},Gn=QT,Sv=J({compatConfig:{MODE:3},name:"LocaleReceiver",props:{componentName:String,defaultLocale:{type:[Object,Function]},children:{type:Function}},setup(e,t){let{slots:n}=t;const o=Xe("localeData",{}),r=P(()=>{const{componentName:l="global",defaultLocale:i}=e,s=i||Gn[l||"global"],{antLocale:u}=o,c=l&&u?u[l]:{};return v(v({},typeof s=="function"?s():s),c||{})}),a=P(()=>{const{antLocale:l}=o,i=l&&l.locale;return l&&l.exist&&!i?Gn.locale:i});return()=>{const l=e.children||n.default,{antLocale:i}=o;return l==null?void 0:l(r.value,a.value,i)}}});function $o(e,t,n){const o=Xe("localeData",{});return[P(()=>{const{antLocale:a}=o,l=Lt(t)||Gn[e||"global"],i=e&&a?a[e]:{};return v(v(v({},typeof l=="function"?l():l),i||{}),Lt(n)||{})})]}function $v(e){for(var t=0,n,o=0,r=e.length;r>=4;++o,r-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(r){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}const w0="%";class ZT{constructor(t){this.cache=new Map,this.instanceId=t}get(t){return this.cache.get(Array.isArray(t)?t.join(w0):t)||null}update(t,n){const o=Array.isArray(t)?t.join(w0):t,r=this.cache.get(o),a=n(r);a===null?this.cache.delete(o):this.cache.set(o,a)}}const JT=ZT,WC="data-token-hash",Nr="data-css-hash",ga="__cssinjs_instance__";function Hl(){const e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${Nr}]`)||[],{firstChild:n}=document.head;Array.from(t).forEach(r=>{r[ga]=r[ga]||e,r[ga]===e&&document.head.insertBefore(r,n)});const o={};Array.from(document.querySelectorAll(`style[${Nr}]`)).forEach(r=>{var a;const l=r.getAttribute(Nr);o[l]?r[ga]===e&&((a=r.parentNode)===null||a===void 0||a.removeChild(r)):o[l]=!0})}return new JT(e)}const KC=Symbol("StyleContextKey"),e9=()=>{var e,t,n;const o=Dn();let r;if(o&&o.appContext){const a=(n=(t=(e=o.appContext)===null||e===void 0?void 0:e.config)===null||t===void 0?void 0:t.globalProperties)===null||n===void 0?void 0:n.__ANTDV_CSSINJS_CACHE__;a?r=a:(r=Hl(),o.appContext.config.globalProperties&&(o.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__=r))}else r=Hl();return r},GC={cache:Hl(),defaultCache:!0,hashPriority:"low"},yc=()=>{const e=e9();return Xe(KC,Y(v(v({},GC),{cache:e})))},t9=e=>{const t=yc(),n=Y(v(v({},GC),{cache:Hl()}));return ue([()=>Lt(e),t],()=>{const o=v({},t.value),r=Lt(e);Object.keys(r).forEach(l=>{const i=r[l];r[l]!==void 0&&(o[l]=i)});const{cache:a}=r;o.cache=o.cache||Hl(),o.defaultCache=!a&&t.value.defaultCache,n.value=o},{immediate:!0}),Ke(KC,n),n},n9=()=>({autoClear:Ce(),mock:je(),cache:Ne(),defaultCache:Ce(),hashPriority:je(),container:Ge(),ssrInline:Ce(),transformers:ht(),linters:ht()});Vt(J({name:"AStyleProvider",inheritAttrs:!1,props:n9(),setup(e,t){let{slots:n}=t;return t9(e),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}));function XC(e,t,n,o){const r=yc(),a=Y(""),l=Y();Le(()=>{a.value=[e,...t.value].join("%")});const i=s=>{r.value.cache.update(s,u=>{const[c=0,d]=u||[];return c-1===0?(o==null||o(d,!1),null):[c-1,d]})};return ue(a,(s,u)=>{u&&i(u),r.value.cache.update(s,c=>{const[d=0,p]=c||[],m=p||n();return[d+1,m]}),l.value=r.value.cache.get(a.value)[1]},{immediate:!0}),Je(()=>{i(a.value)}),l}function hn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function er(e,t){return e&&e.contains?e.contains(t):!1}const O0="data-vc-order",o9="vc-util-key",hf=new Map;function UC(){let{mark:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return e?e.startsWith("data-")?e:`data-${e}`:o9}function Sc(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function r9(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function YC(e){return Array.from((hf.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function qC(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!hn())return null;const{csp:n,prepend:o}=t,r=document.createElement("style");r.setAttribute(O0,r9(o)),n!=null&&n.nonce&&(r.nonce=n==null?void 0:n.nonce),r.innerHTML=e;const a=Sc(t),{firstChild:l}=a;if(o){if(o==="queue"){const i=YC(a).filter(s=>["prepend","prependQueue"].includes(s.getAttribute(O0)));if(i.length)return a.insertBefore(r,i[i.length-1].nextSibling),r}a.insertBefore(r,l)}else a.appendChild(r);return r}function QC(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=Sc(t);return YC(n).find(o=>o.getAttribute(UC(t))===e)}function Is(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=QC(e,t);n&&Sc(t).removeChild(n)}function a9(e,t){const n=hf.get(e);if(!n||!er(document,n)){const o=qC("",t),{parentNode:r}=o;hf.set(e,r),e.removeChild(o)}}function jl(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var o,r,a;const l=Sc(n);a9(l,n);const i=QC(t,n);if(i)return!((o=n.csp)===null||o===void 0)&&o.nonce&&i.nonce!==((r=n.csp)===null||r===void 0?void 0:r.nonce)&&(i.nonce=(a=n.csp)===null||a===void 0?void 0:a.nonce),i.innerHTML!==e&&(i.innerHTML=e),i;const s=qC(e,n);return s.setAttribute(UC(n),t),s}function l9(e,t){if(e.length!==t.length)return!1;for(let n=0;n1&&arguments[1]!==void 0?arguments[1]:!1,o={map:this.cache};return t.forEach(r=>{var a;o?o=(a=o==null?void 0:o.map)===null||a===void 0?void 0:a.get(r):o=void 0}),o!=null&&o.value&&n&&(o.value[1]=this.cacheCallTimes++),o==null?void 0:o.value}get(t){var n;return(n=this.internalGet(t,!0))===null||n===void 0?void 0:n[0]}has(t){return!!this.internalGet(t)}set(t,n){if(!this.has(t)){if(this.size()+1>ka.MAX_CACHE_SIZE+ka.MAX_CACHE_OFFSET){const[r]=this.keys.reduce((a,l)=>{const[,i]=a;return this.internalGet(l)[1]{if(a===t.length-1)o.set(r,{value:[n,this.cacheCallTimes++]});else{const l=o.get(r);l?l.map||(l.map=new Map):o.set(r,{map:new Map}),o=o.get(r).map}})}deleteByPath(t,n){var o;const r=t.get(n[0]);if(n.length===1)return r.map?t.set(n[0],{map:r.map}):t.delete(n[0]),(o=r.value)===null||o===void 0?void 0:o[0];const a=this.deleteByPath(r.map,n.slice(1));return(!r.map||r.map.size===0)&&!r.value&&t.delete(n[0]),a}delete(t){if(this.has(t))return this.keys=this.keys.filter(n=>!l9(n,t)),this.deleteByPath(this.cache,t)}}ka.MAX_CACHE_SIZE=20;ka.MAX_CACHE_OFFSET=5;let P0={};function i9(e,t){}function s9(e,t){}function ZC(e,t,n){!t&&!P0[n]&&(e(!1,n),P0[n]=!0)}function Cv(e,t){ZC(i9,e,t)}function c9(e,t){ZC(s9,e,t)}function u9(){}let d9=u9;const yt=d9;let I0=0;class JC{constructor(t){this.derivatives=Array.isArray(t)?t:[t],this.id=I0,t.length===0&&yt(t.length>0),I0+=1}getDerivativeToken(t){return this.derivatives.reduce((n,o)=>o(t,n),void 0)}}const Nu=new ka;function e2(e){const t=Array.isArray(e)?e:[e];return Nu.has(t)||Nu.set(t,new JC(t)),Nu.get(t)}const T0=new WeakMap;function Ts(e){let t=T0.get(e)||"";return t||(Object.keys(e).forEach(n=>{const o=e[n];t+=n,o instanceof JC?t+=o.id:o&&typeof o=="object"?t+=Ts(o):t+=o}),T0.set(e,t)),t}function f9(e,t){return $v(`${t}_${Ts(e)}`)}const Sl=`random-${Date.now()}-${Math.random()}`.replace(/\./g,""),t2="_bAmBoO_";function p9(e,t,n){var o,r;if(hn()){jl(e,Sl);const a=document.createElement("div");a.style.position="fixed",a.style.left="0",a.style.top="0",t==null||t(a),document.body.appendChild(a);const l=n?n(a):(o=getComputedStyle(a).content)===null||o===void 0?void 0:o.includes(t2);return(r=a.parentNode)===null||r===void 0||r.removeChild(a),Is(Sl),l}return!1}let ku;function v9(){return ku===void 0&&(ku=p9(`@layer ${Sl} { .${Sl} { content: "${t2}"!important; } }`,e=>{e.className=Sl})),ku}const M0={},g9=!0,h9=!1,m9=!g9&&!h9?"css-dev-only-do-not-override":"css",wr=new Map;function b9(e){wr.set(e,(wr.get(e)||0)+1)}function y9(e,t){typeof document<"u"&&document.querySelectorAll(`style[${WC}="${e}"]`).forEach(o=>{var r;o[ga]===t&&((r=o.parentNode)===null||r===void 0||r.removeChild(o))})}const S9=0;function $9(e,t){wr.set(e,(wr.get(e)||0)-1);const n=Array.from(wr.keys()),o=n.filter(r=>(wr.get(r)||0)<=0);n.length-o.length>S9&&o.forEach(r=>{y9(r,t),wr.delete(r)})}const C9=(e,t,n,o)=>{const r=n.getDerivativeToken(e);let a=v(v({},r),t);return o&&(a=o(a)),a};function x9(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Z({});const o=yc(),r=P(()=>v({},...t.value)),a=P(()=>Ts(r.value)),l=P(()=>Ts(n.value.override||M0));return XC("token",P(()=>[n.value.salt||"",e.value.id,a.value,l.value]),()=>{const{salt:s="",override:u=M0,formatToken:c,getComputedToken:d}=n.value,p=d?d(r.value,u,e.value):C9(r.value,u,e.value,c),g=f9(p,s);p._tokenKey=g,b9(g);const m=`${m9}-${$v(g)}`;return p._hashId=m,[p,m]},s=>{var u;$9(s[0]._tokenKey,(u=o.value)===null||u===void 0?void 0:u.cache.instanceId)})}var w9={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},n2="comm",o2="rule",r2="decl",O9="@import",P9="@keyframes",I9="@layer",a2=Math.abs,xv=String.fromCharCode;function l2(e){return e.trim()}function Ji(e,t,n){return e.replace(t,n)}function T9(e,t,n){return e.indexOf(t,n)}function Vl(e,t){return e.charCodeAt(t)|0}function Wl(e,t,n){return e.slice(t,n)}function Eo(e){return e.length}function M9(e){return e.length}function xi(e,t){return t.push(e),e}var $c=1,Ba=1,i2=0,Xn=0,Rt=0,Qa="";function wv(e,t,n,o,r,a,l,i){return{value:e,root:t,parent:n,type:o,props:r,children:a,line:$c,column:Ba,length:l,return:"",siblings:i}}function E9(){return Rt}function _9(){return Rt=Xn>0?Vl(Qa,--Xn):0,Ba--,Rt===10&&(Ba=1,$c--),Rt}function no(){return Rt=Xn2||mf(Rt)>3?"":" "}function N9(e,t){for(;--t&&no()&&!(Rt<48||Rt>102||Rt>57&&Rt<65||Rt>70&&Rt<97););return Cc(e,es()+(t<6&&kr()==32&&no()==32))}function bf(e){for(;no();)switch(Rt){case e:return Xn;case 34:case 39:e!==34&&e!==39&&bf(Rt);break;case 40:e===41&&bf(e);break;case 92:no();break}return Xn}function k9(e,t){for(;no()&&e+Rt!==57;)if(e+Rt===84&&kr()===47)break;return"/*"+Cc(t,Xn-1)+"*"+xv(e===47?e:no())}function B9(e){for(;!mf(kr());)no();return Cc(e,Xn)}function F9(e){return A9(ts("",null,null,null,[""],e=D9(e),0,[0],e))}function ts(e,t,n,o,r,a,l,i,s){for(var u=0,c=0,d=l,p=0,g=0,m=0,h=1,b=1,y=1,S=0,$="",x=r,C=a,O=o,w=$;b;)switch(m=S,S=no()){case 40:if(m!=108&&Vl(w,d-1)==58){T9(w+=Ji(Bu(S),"&","&\f"),"&\f",a2(u?i[u-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:w+=Bu(S);break;case 9:case 10:case 13:case 32:w+=R9(m);break;case 92:w+=N9(es()-1,7);continue;case 47:switch(kr()){case 42:case 47:xi(L9(k9(no(),es()),t,n,s),s);break;default:w+="/"}break;case 123*h:i[u++]=Eo(w)*y;case 125*h:case 59:case 0:switch(S){case 0:case 125:b=0;case 59+c:y==-1&&(w=Ji(w,/\f/g,"")),g>0&&Eo(w)-d&&xi(g>32?_0(w+";",o,n,d-1,s):_0(Ji(w," ","")+";",o,n,d-2,s),s);break;case 59:w+=";";default:if(xi(O=E0(w,t,n,u,c,r,i,$,x=[],C=[],d,a),a),S===123)if(c===0)ts(w,t,O,O,x,a,d,i,C);else switch(p===99&&Vl(w,3)===110?100:p){case 100:case 108:case 109:case 115:ts(e,O,O,o&&xi(E0(e,O,O,0,0,r,i,$,r,x=[],d,C),C),r,C,d,i,o?x:C);break;default:ts(w,O,O,O,[""],C,0,i,C)}}u=c=g=0,h=y=1,$=w="",d=l;break;case 58:d=1+Eo(w),g=m;default:if(h<1){if(S==123)--h;else if(S==125&&h++==0&&_9()==125)continue}switch(w+=xv(S),S*h){case 38:y=c>0?1:(w+="\f",-1);break;case 44:i[u++]=(Eo(w)-1)*y,y=1;break;case 64:kr()===45&&(w+=Bu(no())),p=kr(),c=d=Eo($=w+=B9(es())),S++;break;case 45:m===45&&Eo(w)==2&&(h=0)}}return a}function E0(e,t,n,o,r,a,l,i,s,u,c,d){for(var p=r-1,g=r===0?a:[""],m=M9(g),h=0,b=0,y=0;h0?g[S]+" "+$:Ji($,/&\f/g,g[S])))&&(s[y++]=x);return wv(e,t,n,r===0?o2:i,s,u,c,d)}function L9(e,t,n,o){return wv(e,t,n,n2,xv(E9()),Wl(e,2,-2),0,o)}function _0(e,t,n,o,r){return wv(e,t,n,r2,Wl(e,0,o),Wl(e,o+1,-1),o,r)}function yf(e,t){for(var n="",o=0;o{const[a,l]=r.split(":");Br[a]=l});const o=document.querySelector(`style[${D0}]`);o&&(s2=!1,(e=o.parentNode)===null||e===void 0||e.removeChild(o)),document.body.removeChild(t)}}function V9(e){return j9(),!!Br[e]}function W9(e){const t=Br[e];let n=null;if(t&&hn())if(s2)n=H9;else{const o=document.querySelector(`style[${Nr}="${Br[e]}"]`);o?n=o.innerHTML:delete Br[e]}return[n,t]}const A0=hn(),K9="_skip_check_",c2="_multi_value_";function R0(e){return yf(F9(e),z9).replace(/\{%%%\:[^;];}/g,";")}function G9(e){return typeof e=="object"&&e&&(K9 in e||c2 in e)}function X9(e,t,n){if(!t)return e;const o=`.${t}`,r=n==="low"?`:where(${o})`:o;return e.split(",").map(l=>{var i;const s=l.trim().split(/\s+/);let u=s[0]||"";const c=((i=u.match(/^\w+/))===null||i===void 0?void 0:i[0])||"";return u=`${c}${r}${u.slice(c.length)}`,[u,...s.slice(1)].join(" ")}).join(",")}const N0=new Set,Sf=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{root:n,injectHash:o,parentSelectors:r}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]};const{hashId:a,layer:l,path:i,hashPriority:s,transformers:u=[],linters:c=[]}=t;let d="",p={};function g(b){const y=b.getName(a);if(!p[y]){const[S]=Sf(b.style,t,{root:!1,parentSelectors:r});p[y]=`@keyframes ${b.getName(a)}${S}`}}function m(b){let y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return b.forEach(S=>{Array.isArray(S)?m(S,y):S&&y.push(S)}),y}if(m(Array.isArray(e)?e:[e]).forEach(b=>{const y=typeof b=="string"&&!n?{}:b;if(typeof y=="string")d+=`${y} +`;else if(y._keyframe)g(y);else{const S=u.reduce(($,x)=>{var C;return((C=x==null?void 0:x.visit)===null||C===void 0?void 0:C.call(x,$))||$},y);Object.keys(S).forEach($=>{var x;const C=S[$];if(typeof C=="object"&&C&&($!=="animationName"||!C._keyframe)&&!G9(C)){let O=!1,w=$.trim(),M=!1;(n||o)&&a?w.startsWith("@")?O=!0:w=X9($,a,s):n&&!a&&(w==="&"||w==="")&&(w="",M=!0);const[I,_]=Sf(C,t,{root:M,injectHash:O,parentSelectors:[...r,w]});p=v(v({},p),_),d+=`${w}${I}`}else{let O=function(M,I){const _=M.replace(/[A-Z]/g,F=>`-${F.toLowerCase()}`);let D=I;!w9[M]&&typeof D=="number"&&D!==0&&(D=`${D}px`),M==="animationName"&&(I!=null&&I._keyframe)&&(g(I),D=I.getName(a)),d+=`${_}:${D};`};const w=(x=C==null?void 0:C.value)!==null&&x!==void 0?x:C;typeof C=="object"&&(C!=null&&C[c2])&&Array.isArray(w)?w.forEach(M=>{O($,M)}):O($,w)}})}}),!n)d=`{${d}}`;else if(l&&v9()){const b=l.split(",");d=`@layer ${b[b.length-1].trim()} {${d}}`,b.length>1&&(d=`@layer ${l}{%%%:%}${d}`)}return[d,p]};function U9(e,t){return $v(`${e.join("%")}${t}`)}function $f(e,t){const n=yc(),o=P(()=>e.value.token._tokenKey),r=P(()=>[o.value,...e.value.path]);let a=A0;return XC("style",r,()=>{const{path:l,hashId:i,layer:s,nonce:u,clientOnly:c,order:d=0}=e.value,p=r.value.join("|");if(V9(p)){const[w,M]=W9(p);if(w)return[w,o.value,M,{},c,d]}const g=t(),{hashPriority:m,container:h,transformers:b,linters:y,cache:S}=n.value,[$,x]=Sf(g,{hashId:i,hashPriority:m,layer:s,path:l.join("-"),transformers:b,linters:y}),C=R0($),O=U9(r.value,C);if(a){const w={mark:Nr,prepend:"queue",attachTo:h,priority:d},M=typeof u=="function"?u():u;M&&(w.csp={nonce:M});const I=jl(C,O,w);I[ga]=S.instanceId,I.setAttribute(WC,o.value),Object.keys(x).forEach(_=>{N0.has(_)||(N0.add(_),jl(R0(x[_]),`_effect-${_}`,{mark:Nr,prepend:"queue",attachTo:h}))})}return[C,o.value,O,x,c,d]},(l,i)=>{let[,,s]=l;(i||n.value.autoClear)&&A0&&Is(s,{mark:Nr})}),l=>l}class Y9{constructor(t,n){this._keyframe=!0,this.name=t,this.style=n}getName(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return t?`${t}-${this.name}`:this.name}}const Ue=Y9,q9="4.1.2",Kl=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Yt(e,t){Q9(e)&&(e="100%");var n=Z9(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function wi(e){return Math.min(1,Math.max(0,e))}function Q9(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Z9(e){return typeof e=="string"&&e.indexOf("%")!==-1}function u2(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Oi(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Er(e){return e.length===1?"0"+e:String(e)}function J9(e,t,n){return{r:Yt(e,255)*255,g:Yt(t,255)*255,b:Yt(n,255)*255}}function k0(e,t,n){e=Yt(e,255),t=Yt(t,255),n=Yt(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),a=0,l=0,i=(o+r)/2;if(o===r)l=0,a=0;else{var s=o-r;switch(l=i>.5?s/(2-o-r):s/(o+r),o){case e:a=(t-n)/s+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function eM(e,t,n){var o,r,a;if(e=Yt(e,360),t=Yt(t,100),n=Yt(n,100),t===0)r=n,a=n,o=n;else{var l=n<.5?n*(1+t):n+t-n*t,i=2*n-l;o=Fu(i,l,e+1/3),r=Fu(i,l,e),a=Fu(i,l,e-1/3)}return{r:o*255,g:r*255,b:a*255}}function Cf(e,t,n){e=Yt(e,255),t=Yt(t,255),n=Yt(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),a=0,l=o,i=o-r,s=o===0?0:i/o;if(o===r)a=0;else{switch(o){case e:a=(t-n)/i+(t>16,g:(e&65280)>>8,b:e&255}}var wf={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function ua(e){var t={r:0,g:0,b:0},n=1,o=null,r=null,a=null,l=!1,i=!1;return typeof e=="string"&&(e=iM(e)),typeof e=="object"&&(wo(e.r)&&wo(e.g)&&wo(e.b)?(t=J9(e.r,e.g,e.b),l=!0,i=String(e.r).substr(-1)==="%"?"prgb":"rgb"):wo(e.h)&&wo(e.s)&&wo(e.v)?(o=Oi(e.s),r=Oi(e.v),t=tM(e.h,o,r),l=!0,i="hsv"):wo(e.h)&&wo(e.s)&&wo(e.l)&&(o=Oi(e.s),a=Oi(e.l),t=eM(e.h,o,a),l=!0,i="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=u2(n),{ok:l,format:e.format||i,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var aM="[-\\+]?\\d+%?",lM="[-\\+]?\\d*\\.\\d+%?",nr="(?:".concat(lM,")|(?:").concat(aM,")"),Lu="[\\s|\\(]+(".concat(nr,")[,|\\s]+(").concat(nr,")[,|\\s]+(").concat(nr,")\\s*\\)?"),zu="[\\s|\\(]+(".concat(nr,")[,|\\s]+(").concat(nr,")[,|\\s]+(").concat(nr,")[,|\\s]+(").concat(nr,")\\s*\\)?"),Jn={CSS_UNIT:new RegExp(nr),rgb:new RegExp("rgb"+Lu),rgba:new RegExp("rgba"+zu),hsl:new RegExp("hsl"+Lu),hsla:new RegExp("hsla"+zu),hsv:new RegExp("hsv"+Lu),hsva:new RegExp("hsva"+zu),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function iM(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(wf[e])e=wf[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Jn.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Jn.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Jn.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Jn.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Jn.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Jn.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Jn.hex8.exec(e),n?{r:wn(n[1]),g:wn(n[2]),b:wn(n[3]),a:B0(n[4]),format:t?"name":"hex8"}:(n=Jn.hex6.exec(e),n?{r:wn(n[1]),g:wn(n[2]),b:wn(n[3]),format:t?"name":"hex"}:(n=Jn.hex4.exec(e),n?{r:wn(n[1]+n[1]),g:wn(n[2]+n[2]),b:wn(n[3]+n[3]),a:B0(n[4]+n[4]),format:t?"name":"hex8"}:(n=Jn.hex3.exec(e),n?{r:wn(n[1]+n[1]),g:wn(n[2]+n[2]),b:wn(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function wo(e){return!!Jn.CSS_UNIT.exec(String(e))}var st=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var o;if(t instanceof e)return t;typeof t=="number"&&(t=rM(t)),this.originalInput=t;var r=ua(t);this.originalInput=t,this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this.roundA=Math.round(100*this.a)/100,this.format=(o=n.format)!==null&&o!==void 0?o:r.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=r.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,o,r,a=t.r/255,l=t.g/255,i=t.b/255;return a<=.03928?n=a/12.92:n=Math.pow((a+.055)/1.055,2.4),l<=.03928?o=l/12.92:o=Math.pow((l+.055)/1.055,2.4),i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),.2126*n+.7152*o+.0722*r},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=u2(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=Cf(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Cf(this.r,this.g,this.b),n=Math.round(t.h*360),o=Math.round(t.s*100),r=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(o,"%, ").concat(r,"%)"):"hsva(".concat(n,", ").concat(o,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=k0(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=k0(this.r,this.g,this.b),n=Math.round(t.h*360),o=Math.round(t.s*100),r=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(o,"%, ").concat(r,"%)"):"hsla(".concat(n,", ").concat(o,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),xf(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),nM(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),o=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(o,")"):"rgba(".concat(t,", ").concat(n,", ").concat(o,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(Yt(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(Yt(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+xf(this.r,this.g,this.b,!1),n=0,o=Object.entries(wf);n=0,a=!n&&r&&(t.startsWith("hex")||t==="name");return a?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(o=this.toRgbString()),t==="prgb"&&(o=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(o=this.toHexString()),t==="hex3"&&(o=this.toHexString(!0)),t==="hex4"&&(o=this.toHex8String(!0)),t==="hex8"&&(o=this.toHex8String()),t==="name"&&(o=this.toName()),t==="hsl"&&(o=this.toHslString()),t==="hsv"&&(o=this.toHsvString()),o||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=wi(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=wi(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=wi(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=wi(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),o=(n.h+t)%360;return n.h=o<0?360+o:o,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var o=this.toRgb(),r=new e(t).toRgb(),a=n/100,l={r:(r.r-o.r)*a+o.r,g:(r.g-o.g)*a+o.g,b:(r.b-o.b)*a+o.b,a:(r.a-o.a)*a+o.a};return new e(l)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var o=this.toHsl(),r=360/n,a=[this];for(o.h=(o.h-(r*t>>1)+720)%360;--t;)o.h=(o.h+r)%360,a.push(new e(o));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),o=n.h,r=n.s,a=n.v,l=[],i=1/t;t--;)l.push(new e({h:o,s:r,v:a})),a=(a+i)%1;return l},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),o=new e(t).toRgb(),r=n.a+o.a*(1-n.a);return new e({r:(n.r*n.a+o.r*o.a*(1-n.a))/r,g:(n.g*n.a+o.g*o.a*(1-n.a))/r,b:(n.b*n.a+o.b*o.a*(1-n.a))/r,a:r})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),o=n.h,r=[this],a=360/t,l=1;l=60&&Math.round(e.h)<=240?o=n?Math.round(e.h)-Pi*t:Math.round(e.h)+Pi*t:o=n?Math.round(e.h)+Pi*t:Math.round(e.h)-Pi*t,o<0?o+=360:o>=360&&(o-=360),o}function H0(e,t,n){if(e.h===0&&e.s===0)return e.s;var o;return n?o=e.s-F0*t:t===f2?o=e.s+F0:o=e.s+sM*t,o>1&&(o=1),n&&t===d2&&o>.1&&(o=.1),o<.06&&(o=.06),Number(o.toFixed(2))}function j0(e,t,n){var o;return n?o=e.v+cM*t:o=e.v-uM*t,o>1&&(o=1),Number(o.toFixed(2))}function Bo(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],o=ua(e),r=d2;r>0;r-=1){var a=L0(o),l=Ii(ua({h:z0(a,r,!0),s:H0(a,r,!0),v:j0(a,r,!0)}));n.push(l)}n.push(Ii(o));for(var i=1;i<=f2;i+=1){var s=L0(o),u=Ii(ua({h:z0(s,i),s:H0(s,i),v:j0(s,i)}));n.push(u)}return t.theme==="dark"?dM.map(function(c){var d=c.index,p=c.opacity,g=Ii(fM(ua(t.backgroundColor||"#141414"),ua(n[d]),p*100));return g}):n}var $a={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},$l={},Hu={};Object.keys($a).forEach(function(e){$l[e]=Bo($a[e]),$l[e].primary=$l[e][5],Hu[e]=Bo($a[e],{theme:"dark",backgroundColor:"#141414"}),Hu[e].primary=Hu[e][5]});var pM=$l.gold,vM=$l.blue;const p2=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function gM(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const Ov={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},hM=v(v({},Ov),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, +'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', +'Noto Color Emoji'`,fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1}),xc=hM;function v2(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:o}=t;const{colorSuccess:r,colorWarning:a,colorError:l,colorInfo:i,colorPrimary:s,colorBgBase:u,colorTextBase:c}=e,d=n(s),p=n(r),g=n(a),m=n(l),h=n(i),b=o(u,c);return v(v({},b),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[10],colorInfoBg:h[1],colorInfoBgHover:h[2],colorInfoBorder:h[3],colorInfoBorderHover:h[4],colorInfoHover:h[4],colorInfo:h[6],colorInfoActive:h[7],colorInfoTextHover:h[8],colorInfoText:h[9],colorInfoTextActive:h[10],colorBgMask:new st("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const mM=e=>{let t=e,n=e,o=e,r=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?o=1:e>=6&&(o=2),e>4&&e<8?r=4:e>=8&&(r=6),{borderRadius:e>16?16:e,borderRadiusXS:o,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:r}};function bM(e){const{motionUnit:t,motionBase:n,borderRadius:o,lineWidth:r}=e;return v({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:r+1},mM(o))}const Oo=(e,t)=>new st(e).setAlpha(t).toRgbString(),cl=(e,t)=>new st(e).darken(t).toHexString(),yM=e=>{const t=Bo(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},SM=(e,t)=>{const n=e||"#fff",o=t||"#000";return{colorBgBase:n,colorTextBase:o,colorText:Oo(o,.88),colorTextSecondary:Oo(o,.65),colorTextTertiary:Oo(o,.45),colorTextQuaternary:Oo(o,.25),colorFill:Oo(o,.15),colorFillSecondary:Oo(o,.06),colorFillTertiary:Oo(o,.04),colorFillQuaternary:Oo(o,.02),colorBgLayout:cl(n,4),colorBgContainer:cl(n,0),colorBgElevated:cl(n,0),colorBgSpotlight:Oo(o,.85),colorBorder:cl(n,15),colorBorderSecondary:cl(n,6)}};function $M(e){const t=new Array(10).fill(null).map((n,o)=>{const r=o-1,a=e*Math.pow(2.71828,r/5),l=o>1?Math.floor(a):Math.ceil(a);return Math.floor(l/2)*2});return t[1]=e,t.map(n=>{const o=n+8;return{size:n,lineHeight:o/n}})}const g2=e=>{const t=$M(e),n=t.map(r=>r.size),o=t.map(r=>r.lineHeight);return{fontSizeSM:n[0],fontSize:n[1],fontSizeLG:n[2],fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:o[1],lineHeightLG:o[2],lineHeightSM:o[0],lineHeightHeading1:o[6],lineHeightHeading2:o[5],lineHeightHeading3:o[4],lineHeightHeading4:o[3],lineHeightHeading5:o[2]}};function wc(e){const t=Object.keys(Ov).map(n=>{const o=Bo(e[n]);return new Array(10).fill(1).reduce((r,a,l)=>(r[`${n}-${l+1}`]=o[l],r),{})}).reduce((n,o)=>(n=v(v({},n),o),n),{});return v(v(v(v(v(v(v({},e),t),v2(e,{generateColorPalettes:yM,generateNeutralColorPalettes:SM})),g2(e.fontSize)),gM(e)),p2(e)),bM(e))}function ju(e){return e>=0&&e<=255}function Ti(e,t){const{r:n,g:o,b:r,a}=new st(e).toRgb();if(a<1)return e;const{r:l,g:i,b:s}=new st(t).toRgb();for(let u=.01;u<=1;u+=.01){const c=Math.round((n-l*(1-u))/u),d=Math.round((o-i*(1-u))/u),p=Math.round((r-s*(1-u))/u);if(ju(c)&&ju(d)&&ju(p))return new st({r:c,g:d,b:p,a:Math.round(u*100)/100}).toRgbString()}return new st({r:n,g:o,b:r,a:1}).toRgbString()}var CM=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{delete o[g]});const r=v(v({},n),o),a=480,l=576,i=768,s=992,u=1200,c=1600,d=2e3;return v(v(v({},r),{colorLink:r.colorInfoText,colorLinkHover:r.colorInfoHover,colorLinkActive:r.colorInfoActive,colorFillContent:r.colorFillSecondary,colorFillContentHover:r.colorFill,colorFillAlter:r.colorFillQuaternary,colorBgContainerDisabled:r.colorFillTertiary,colorBorderBg:r.colorBgContainer,colorSplit:Ti(r.colorBorderSecondary,r.colorBgContainer),colorTextPlaceholder:r.colorTextQuaternary,colorTextDisabled:r.colorTextQuaternary,colorTextHeading:r.colorText,colorTextLabel:r.colorTextSecondary,colorTextDescription:r.colorTextTertiary,colorTextLightSolid:r.colorWhite,colorHighlight:r.colorError,colorBgTextHover:r.colorFillSecondary,colorBgTextActive:r.colorFill,colorIcon:r.colorTextTertiary,colorIconHover:r.colorText,colorErrorOutline:Ti(r.colorErrorBg,r.colorBgContainer),colorWarningOutline:Ti(r.colorWarningBg,r.colorBgContainer),fontSizeIcon:r.fontSizeSM,lineWidth:r.lineWidth,controlOutlineWidth:r.lineWidth*2,controlInteractiveSize:r.controlHeight/2,controlItemBgHover:r.colorFillTertiary,controlItemBgActive:r.colorPrimaryBg,controlItemBgActiveHover:r.colorPrimaryBgHover,controlItemBgActiveDisabled:r.colorFill,controlTmpOutline:r.colorFillQuaternary,controlOutline:Ti(r.colorPrimaryBg,r.colorBgContainer),lineType:r.lineType,borderRadius:r.borderRadius,borderRadiusXS:r.borderRadiusXS,borderRadiusSM:r.borderRadiusSM,borderRadiusLG:r.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:r.sizeXXS,paddingXS:r.sizeXS,paddingSM:r.sizeSM,padding:r.size,paddingMD:r.sizeMD,paddingLG:r.sizeLG,paddingXL:r.sizeXL,paddingContentHorizontalLG:r.sizeLG,paddingContentVerticalLG:r.sizeMS,paddingContentHorizontal:r.sizeMS,paddingContentVertical:r.sizeSM,paddingContentHorizontalSM:r.size,paddingContentVerticalSM:r.sizeXS,marginXXS:r.sizeXXS,marginXS:r.sizeXS,marginSM:r.sizeSM,margin:r.size,marginMD:r.sizeMD,marginLG:r.sizeLG,marginXL:r.sizeXL,marginXXL:r.sizeXXL,boxShadow:` + 0 1px 2px 0 rgba(0, 0, 0, 0.03), + 0 1px 6px -1px rgba(0, 0, 0, 0.02), + 0 2px 4px 0 rgba(0, 0, 0, 0.02) + `,boxShadowSecondary:` + 0 6px 16px 0 rgba(0, 0, 0, 0.08), + 0 3px 6px -4px rgba(0, 0, 0, 0.12), + 0 9px 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowTertiary:` + 0 1px 2px 0 rgba(0, 0, 0, 0.03), + 0 1px 6px -1px rgba(0, 0, 0, 0.02), + 0 2px 4px 0 rgba(0, 0, 0, 0.02) + `,screenXS:a,screenXSMin:a,screenXSMax:l-1,screenSM:l,screenSMMin:l,screenSMMax:i-1,screenMD:i,screenMDMin:i,screenMDMax:s-1,screenLG:s,screenLGMin:s,screenLGMax:u-1,screenXL:u,screenXLMin:u,screenXLMax:c-1,screenXXL:c,screenXXLMin:c,screenXXLMax:d-1,screenXXXL:d,screenXXXLMin:d,boxShadowPopoverArrow:"3px 3px 7px rgba(0, 0, 0, 0.1)",boxShadowCard:` + 0 1px 2px -2px ${new st("rgba(0, 0, 0, 0.16)").toRgbString()}, + 0 3px 6px 0 ${new st("rgba(0, 0, 0, 0.12)").toRgbString()}, + 0 5px 12px 4px ${new st("rgba(0, 0, 0, 0.09)").toRgbString()} + `,boxShadowDrawerRight:` + -6px 0 16px 0 rgba(0, 0, 0, 0.08), + -3px 0 6px -4px rgba(0, 0, 0, 0.12), + -9px 0 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowDrawerLeft:` + 6px 0 16px 0 rgba(0, 0, 0, 0.08), + 3px 0 6px -4px rgba(0, 0, 0, 0.12), + 9px 0 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowDrawerUp:` + 0 6px 16px 0 rgba(0, 0, 0, 0.08), + 0 3px 6px -4px rgba(0, 0, 0, 0.12), + 0 9px 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowDrawerDown:` + 0 -6px 16px 0 rgba(0, 0, 0, 0.08), + 0 -3px 6px -4px rgba(0, 0, 0, 0.12), + 0 -9px 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),o)}const Pv=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),Iv=(e,t,n,o,r)=>{const a=e/2,l=0,i=a,s=n*1/Math.sqrt(2),u=a-n*(1-1/Math.sqrt(2)),c=a-t*(1/Math.sqrt(2)),d=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),p=2*a-c,g=d,m=2*a-s,h=u,b=2*a-l,y=i,S=a*Math.sqrt(2)+n*(Math.sqrt(2)-2),$=n*(Math.sqrt(2)-1);return{pointerEvents:"none",width:e,height:e,overflow:"hidden","&::after":{content:'""',position:"absolute",width:S,height:S,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${t}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"},"&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e,height:e/2,background:o,clipPath:{_multi_value_:!0,value:[`polygon(${$}px 100%, 50% ${$}px, ${2*a-$}px 100%, ${$}px 100%)`,`path('M ${l} ${i} A ${n} ${n} 0 0 0 ${s} ${u} L ${c} ${d} A ${t} ${t} 0 0 1 ${p} ${g} L ${m} ${h} A ${n} ${n} 0 0 0 ${b} ${y} Z')`]},content:'""'}}};function Ms(e,t){return Kl.reduce((n,o)=>{const r=e[`${o}-1`],a=e[`${o}-3`],l=e[`${o}-6`],i=e[`${o}-7`];return v(v({},n),t(o,{lightColor:r,lightBorderColor:a,darkColor:l,textColor:i}))},{})}const mn={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},et=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),ai=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),ro=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),wM=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),OM=(e,t)=>{const{fontFamily:n,fontSize:o}=e,r=`[class^="${t}"], [class*=" ${t}"]`;return{[r]:{fontFamily:n,fontSize:o,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[r]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},Fo=e=>({outline:`${e.lineWidthBold}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Lo=e=>({"&:focus-visible":v({},Fo(e))});function Qe(e,t,n){return o=>{const r=P(()=>o==null?void 0:o.value),[a,l,i]=Qr(),{getPrefixCls:s,iconPrefixCls:u}=oc(),c=P(()=>s()),d=P(()=>({theme:a.value,token:l.value,hashId:i.value,path:["Shared",c.value]}));$f(d,()=>[{"&":wM(l.value)}]);const p=P(()=>({theme:a.value,token:l.value,hashId:i.value,path:[e,r.value,u.value]}));return[$f(p,()=>{const{token:g,flush:m}=IM(l.value),h=typeof n=="function"?n(g):n,b=v(v({},h),l.value[e]),y=`.${r.value}`,S=ze(g,{componentCls:y,prefixCls:r.value,iconCls:`.${u.value}`,antCls:`.${c.value}`},b),$=t(S,{hashId:i.value,prefixCls:r.value,rootPrefixCls:c.value,iconPrefixCls:u.value,overrideComponentToken:l.value[e]});return m(e,b),[OM(l.value,r.value),$]}),i]}}const h2=typeof CSSINJS_STATISTIC<"u";let Of=!0;function ze(){for(var e=arguments.length,t=new Array(e),n=0;n{Object.keys(r).forEach(l=>{Object.defineProperty(o,l,{configurable:!0,enumerable:!0,get:()=>r[l]})})}),Of=!0,o}function PM(){}function IM(e){let t,n=e,o=PM;return h2&&(t=new Set,n=new Proxy(e,{get(r,a){return Of&&t.add(a),r[a]}}),o=(r,a)=>{Array.from(t)}),{token:n,keys:t,flush:o}}const TM=e2(wc),Es={token:xc,hashed:!0},m2=Symbol("DesignTokenContext"),Pf=Y(),MM=e=>{Ke(m2,e),ue(e,()=>{Pf.value=Lt(e),k$(Pf)},{immediate:!0,deep:!0})},EM=J({props:{value:Ne()},setup(e,t){let{slots:n}=t;return MM(P(()=>e.value)),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}});function Qr(){const e=Xe(m2,P(()=>Pf.value||Es)),t=P(()=>`${q9}-${e.value.hashed||""}`),n=P(()=>e.value.theme||TM),o=x9(n,P(()=>[xc,e.value.token]),P(()=>({salt:t.value,override:v({override:e.value.token},e.value.components),formatToken:xM})));return[n,P(()=>o.value[0]),P(()=>e.value.hashed?o.value[1]:"")]}const b2=J({compatConfig:{MODE:3},setup(){const[,e]=Qr(),t=P(()=>new st(e.value.colorBgBase).toHsl().l<.5?{opacity:.65}:{});return()=>f("svg",{style:t.value,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},[f("g",{fill:"none","fill-rule":"evenodd"},[f("g",{transform:"translate(24 31.67)"},[f("ellipse",{"fill-opacity":".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"},null),f("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"},null),f("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"},null),f("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"},null),f("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"},null)]),f("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"},null),f("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},[f("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"},null),f("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"},null)])])])}});b2.PRESENTED_IMAGE_DEFAULT=!0;const _M=b2,y2=J({compatConfig:{MODE:3},setup(){const[,e]=Qr(),t=P(()=>{const{colorFill:n,colorFillTertiary:o,colorFillQuaternary:r,colorBgContainer:a}=e.value;return{borderColor:new st(n).onBackground(a).toHexString(),shadowColor:new st(o).onBackground(a).toHexString(),contentColor:new st(r).onBackground(a).toHexString()}});return()=>f("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},[f("g",{transform:"translate(0 1)",fill:"none","fill-rule":"evenodd"},[f("ellipse",{fill:t.value.shadowColor,cx:"32",cy:"33",rx:"32",ry:"7"},null),f("g",{"fill-rule":"nonzero",stroke:t.value.borderColor},[f("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"},null),f("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:t.value.contentColor},null)])])])}});y2.PRESENTED_IMAGE_SIMPLE=!0;const DM=y2,AM=e=>{const{componentCls:t,margin:n,marginXS:o,marginXL:r,fontSize:a,lineHeight:l}=e;return{[t]:{marginInline:o,fontSize:a,lineHeight:l,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:o,opacity:e.opacityImage,img:{height:"100%"},svg:{height:"100%",margin:"auto"}},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:o,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},RM=Qe("Empty",e=>{const{componentCls:t,controlHeightLG:n}=e,o=ze(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n*2.5,emptyImgHeightMD:n,emptyImgHeightSM:n*.875});return[AM(o)]});var NM=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({prefixCls:String,imageStyle:Ne(),image:xt(),description:xt()}),Tv=J({name:"AEmpty",compatConfig:{MODE:3},inheritAttrs:!1,props:kM(),setup(e,t){let{slots:n={},attrs:o}=t;const{direction:r,prefixCls:a}=Ee("empty",e),[l,i]=RM(a);return()=>{var s,u;const c=a.value,d=v(v({},e),o),{image:p=((s=n.image)===null||s===void 0?void 0:s.call(n))||S2,description:g=((u=n.description)===null||u===void 0?void 0:u.call(n))||void 0,imageStyle:m,class:h=""}=d,b=NM(d,["image","description","imageStyle","class"]);return l(f(Sv,{componentName:"Empty",children:y=>{const S=typeof g<"u"?g:y.description,$=typeof S=="string"?S:"empty";let x=null;return typeof p=="string"?x=f("img",{alt:$,src:p},null):x=p,f("div",N({class:te(c,h,i.value,{[`${c}-normal`]:p===$2,[`${c}-rtl`]:r.value==="rtl"})},b),[f("div",{class:`${c}-image`,style:m},[x]),S&&f("p",{class:`${c}-description`},[S]),n.default&&f("div",{class:`${c}-footer`},[Tt(n.default())])])}},null))}}});Tv.PRESENTED_IMAGE_DEFAULT=S2;Tv.PRESENTED_IMAGE_SIMPLE=$2;const Or=Vt(Tv),Mv=e=>{const{prefixCls:t}=Ee("empty",e);return(o=>{switch(o){case"Table":case"List":return f(Or,{image:Or.PRESENTED_IMAGE_SIMPLE},null);case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return f(Or,{image:Or.PRESENTED_IMAGE_SIMPLE,class:`${t.value}-small`},null);default:return f(Or,null,null)}})(e.componentName)};function BM(e){return f(Mv,{componentName:e},null)}const C2=Symbol("SizeContextKey"),x2=()=>Xe(C2,Z(void 0)),w2=e=>{const t=x2();return Ke(C2,P(()=>e.value||t.value)),e},Ee=(e,t)=>{const n=x2(),o=gn(),r=Xe(Qp,v(v({},z$),{renderEmpty:w=>af(Mv,{componentName:w})})),a=P(()=>r.getPrefixCls(e,t.prefixCls)),l=P(()=>{var w,M;return(w=t.direction)!==null&&w!==void 0?w:(M=r.direction)===null||M===void 0?void 0:M.value}),i=P(()=>{var w;return(w=t.iconPrefixCls)!==null&&w!==void 0?w:r.iconPrefixCls.value}),s=P(()=>r.getPrefixCls()),u=P(()=>{var w;return(w=r.autoInsertSpaceInButton)===null||w===void 0?void 0:w.value}),c=r.renderEmpty,d=r.space,p=r.pageHeader,g=r.form,m=P(()=>{var w,M;return(w=t.getTargetContainer)!==null&&w!==void 0?w:(M=r.getTargetContainer)===null||M===void 0?void 0:M.value}),h=P(()=>{var w,M,I;return(M=(w=t.getContainer)!==null&&w!==void 0?w:t.getPopupContainer)!==null&&M!==void 0?M:(I=r.getPopupContainer)===null||I===void 0?void 0:I.value}),b=P(()=>{var w,M;return(w=t.dropdownMatchSelectWidth)!==null&&w!==void 0?w:(M=r.dropdownMatchSelectWidth)===null||M===void 0?void 0:M.value}),y=P(()=>{var w;return(t.virtual===void 0?((w=r.virtual)===null||w===void 0?void 0:w.value)!==!1:t.virtual!==!1)&&b.value!==!1}),S=P(()=>t.size||n.value),$=P(()=>{var w,M,I;return(w=t.autocomplete)!==null&&w!==void 0?w:(I=(M=r.input)===null||M===void 0?void 0:M.value)===null||I===void 0?void 0:I.autocomplete}),x=P(()=>{var w;return(w=t.disabled)!==null&&w!==void 0?w:o.value}),C=P(()=>{var w;return(w=t.csp)!==null&&w!==void 0?w:r.csp}),O=P(()=>{var w,M;return(w=t.wave)!==null&&w!==void 0?w:(M=r.wave)===null||M===void 0?void 0:M.value});return{configProvider:r,prefixCls:a,direction:l,size:S,getTargetContainer:m,getPopupContainer:h,space:d,pageHeader:p,form:g,autoInsertSpaceInButton:u,renderEmpty:c,virtual:y,dropdownMatchSelectWidth:b,rootPrefixCls:s,getPrefixCls:r.getPrefixCls,autocomplete:$,csp:C,iconPrefixCls:i,disabled:x,select:r.select,wave:O}};function qe(e,t){const n=v({},e);for(let o=0;ot||a>e&&l=t&&i>=n?a-e-o:l>t&&in?l-t+r:0}var K0=function(e,t){var n=window,o=t.scrollMode,r=t.block,a=t.inline,l=t.boundary,i=t.skipOverflowHiddenElements,s=typeof l=="function"?l:function(ye){return ye!==l};if(!V0(e))throw new TypeError("Invalid target");for(var u,c,d=document.scrollingElement||document.documentElement,p=[],g=e;V0(g)&&s(g);){if((g=(c=(u=g).parentElement)==null?u.getRootNode().host||null:c)===d){p.push(g);break}g!=null&&g===document.body&&Vu(g)&&!Vu(document.documentElement)||g!=null&&Vu(g,i)&&p.push(g)}for(var m=n.visualViewport?n.visualViewport.width:innerWidth,h=n.visualViewport?n.visualViewport.height:innerHeight,b=window.scrollX||pageXOffset,y=window.scrollY||pageYOffset,S=e.getBoundingClientRect(),$=S.height,x=S.width,C=S.top,O=S.right,w=S.bottom,M=S.left,I=r==="start"||r==="nearest"?C:r==="end"?w:C+$/2,_=a==="center"?M+x/2:a==="end"?O:M,D=[],F=0;F=0&&M>=0&&w<=h&&O<=m&&C>=R&&w<=k&&M>=B&&O<=E)return D;var L=getComputedStyle(z),j=parseInt(L.borderLeftWidth,10),K=parseInt(L.borderTopWidth,10),G=parseInt(L.borderRightWidth,10),U=parseInt(L.borderBottomWidth,10),X=0,ee=0,oe="offsetWidth"in z?z.offsetWidth-z.clientWidth-j-G:0,Q="offsetHeight"in z?z.offsetHeight-z.clientHeight-K-U:0,W="offsetWidth"in z?z.offsetWidth===0?0:A/z.offsetWidth:0,q="offsetHeight"in z?z.offsetHeight===0?0:T/z.offsetHeight:0;if(d===z)X=r==="start"?I:r==="end"?I-h:r==="nearest"?Mi(y,y+h,h,K,U,y+I,y+I+$,$):I-h/2,ee=a==="start"?_:a==="center"?_-m/2:a==="end"?_-m:Mi(b,b+m,m,j,G,b+_,b+_+x,x),X=Math.max(0,X+y),ee=Math.max(0,ee+b);else{X=r==="start"?I-R-K:r==="end"?I-k+U+Q:r==="nearest"?Mi(R,k,T,K,U+Q,I,I+$,$):I-(R+T/2)+Q/2,ee=a==="start"?_-B-j:a==="center"?_-(B+A/2)+oe/2:a==="end"?_-E+G+oe:Mi(B,E,A,j,G+oe,_,_+x,x);var re=z.scrollLeft,le=z.scrollTop;I+=le-(X=Math.max(0,Math.min(le+X/q,z.scrollHeight-T/q+Q))),_+=re-(ee=Math.max(0,Math.min(re+ee/W,z.scrollWidth-A/W+oe)))}D.push({el:z,top:X,left:ee})}return D};function O2(e){return e===Object(e)&&Object.keys(e).length!==0}function FM(e,t){t===void 0&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach(function(o){var r=o.el,a=o.top,l=o.left;r.scroll&&n?r.scroll({top:a,left:l,behavior:t}):(r.scrollTop=a,r.scrollLeft=l)})}function LM(e){return e===!1?{block:"end",inline:"nearest"}:O2(e)?e:{block:"start",inline:"nearest"}}function zM(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(O2(t)&&typeof t.behavior=="function")return t.behavior(n?K0(e,t):[]);if(n){var o=LM(t);return FM(K0(e,o),o.behavior)}}function HM(e,t,n,o){const r=n-t;return e/=o/2,e<1?r/2*e*e*e+t:r/2*((e-=2)*e*e+2)+t}function If(e){return e!=null&&e===e.window}function jM(e,t){var n,o;if(typeof window>"u")return 0;const r=t?"scrollTop":"scrollLeft";let a=0;return If(e)?a=e[t?"pageYOffset":"pageXOffset"]:e instanceof Document?a=e.documentElement[r]:(e instanceof HTMLElement||e)&&(a=e[r]),e&&!If(e)&&typeof a!="number"&&(a=(o=((n=e.ownerDocument)!==null&&n!==void 0?n:e).documentElement)===null||o===void 0?void 0:o[r]),a}function VM(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:n=()=>window,callback:o,duration:r=450}=t,a=n(),l=jM(a,!0),i=Date.now(),s=()=>{const c=Date.now()-i,d=HM(c>r?r:c,l,e,r);If(a)?a.scrollTo(window.pageXOffset,d):a instanceof Document||a.constructor.name==="HTMLDocument"?a.documentElement.scrollTop=d:a.scrollTop=d,c=0||(r[n]=e[n]);return r}function X0(e){return((t=e)!=null&&typeof t=="object"&&Array.isArray(t)===!1)==1&&Object.prototype.toString.call(e)==="[object Object]";var t}var M2=Object.prototype,E2=M2.toString,WM=M2.hasOwnProperty,_2=/^\s*function (\w+)/;function U0(e){var t,n=(t=e==null?void 0:e.type)!==null&&t!==void 0?t:e;if(n){var o=n.toString().match(_2);return o?o[1]:""}return""}var Vr=function(e){var t,n;return X0(e)!==!1&&typeof(t=e.constructor)=="function"&&X0(n=t.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1},KM=function(e){return e},nn=KM,Gl=function(e,t){return WM.call(e,t)},GM=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},Fa=Array.isArray||function(e){return E2.call(e)==="[object Array]"},La=function(e){return E2.call(e)==="[object Function]"},_s=function(e){return Vr(e)&&Gl(e,"_vueTypes_name")},D2=function(e){return Vr(e)&&(Gl(e,"type")||["_vueTypes_name","validator","default","required"].some(function(t){return Gl(e,t)}))};function Ev(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function Zr(e,t,n){var o;n===void 0&&(n=!1);var r=!0,a="";o=Vr(e)?e:{type:e};var l=_s(o)?o._vueTypes_name+" - ":"";if(D2(o)&&o.type!==null){if(o.type===void 0||o.type===!0||!o.required&&t===void 0)return r;Fa(o.type)?(r=o.type.some(function(d){return Zr(d,t,!0)===!0}),a=o.type.map(function(d){return U0(d)}).join(" or ")):r=(a=U0(o))==="Array"?Fa(t):a==="Object"?Vr(t):a==="String"||a==="Number"||a==="Boolean"||a==="Function"?function(d){if(d==null)return"";var p=d.constructor.toString().match(_2);return p?p[1]:""}(t)===a:t instanceof o.type}if(!r){var i=l+'value "'+t+'" should be of type "'+a+'"';return n===!1?(nn(i),!1):i}if(Gl(o,"validator")&&La(o.validator)){var s=nn,u=[];if(nn=function(d){u.push(d)},r=o.validator(t),nn=s,!r){var c=(u.length>1?"* ":"")+u.join(` +* `);return u.length=0,n===!1?(nn(c),r):c}}return r}function _n(e,t){var n=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get:function(){return this.required=!0,this}},def:{value:function(r){return r!==void 0||this.default?La(r)||Zr(this,r,!0)===!0?(this.default=Fa(r)?function(){return[].concat(r)}:Vr(r)?function(){return Object.assign({},r)}:r,this):(nn(this._vueTypes_name+' - invalid default value: "'+r+'"'),this):this}}}),o=n.validator;return La(o)&&(n.validator=Ev(o,n)),n}function mo(e,t){var n=_n(e,t);return Object.defineProperty(n,"validate",{value:function(o){return La(this.validator)&&nn(this._vueTypes_name+` - calling .validate() will overwrite the current custom validator function. Validator info: +`+JSON.stringify(this)),this.validator=Ev(o,this),this}})}function Y0(e,t,n){var o,r,a=(o=t,r={},Object.getOwnPropertyNames(o).forEach(function(d){r[d]=Object.getOwnPropertyDescriptor(o,d)}),Object.defineProperties({},r));if(a._vueTypes_name=e,!Vr(n))return a;var l,i,s=n.validator,u=T2(n,["validator"]);if(La(s)){var c=a.validator;c&&(c=(i=(l=c).__original)!==null&&i!==void 0?i:l),a.validator=Ev(c?function(d){return c.call(this,d)&&s.call(this,d)}:s,a)}return Object.assign(a,u)}function Oc(e){return e.replace(/^(?!\s*$)/gm," ")}var XM=function(){return mo("any",{})},UM=function(){return mo("function",{type:Function})},YM=function(){return mo("boolean",{type:Boolean})},qM=function(){return mo("string",{type:String})},QM=function(){return mo("number",{type:Number})},ZM=function(){return mo("array",{type:Array})},JM=function(){return mo("object",{type:Object})},eE=function(){return _n("integer",{type:Number,validator:function(e){return GM(e)}})},tE=function(){return _n("symbol",{validator:function(e){return typeof e=="symbol"}})};function nE(e,t){if(t===void 0&&(t="custom validation failed"),typeof e!="function")throw new TypeError("[VueTypes error]: You must provide a function as argument");return _n(e.name||"<>",{validator:function(n){var o=e(n);return o||nn(this._vueTypes_name+" - "+t),o}})}function oE(e){if(!Fa(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");var t='oneOf - value should be one of "'+e.join('", "')+'".',n=e.reduce(function(o,r){if(r!=null){var a=r.constructor;o.indexOf(a)===-1&&o.push(a)}return o},[]);return _n("oneOf",{type:n.length>0?n:void 0,validator:function(o){var r=e.indexOf(o)!==-1;return r||nn(t),r}})}function rE(e){if(!Fa(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");for(var t=!1,n=[],o=0;o0&&n.some(function(s){return l.indexOf(s)===-1})){var i=n.filter(function(s){return l.indexOf(s)===-1});return nn(i.length===1?'shape - required property "'+i[0]+'" is not defined.':'shape - required properties "'+i.join('", "')+'" are not defined.'),!1}return l.every(function(s){if(t.indexOf(s)===-1)return a._vueTypes_isLoose===!0||(nn('shape - shape definition does not include a "'+s+'" property. Allowed keys: "'+t.join('", "')+'".'),!1);var u=Zr(e[s],r[s],!0);return typeof u=="string"&&nn('shape - "'+s+`" property validation error: + `+Oc(u)),u===!0})}});return Object.defineProperty(o,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(o,"loose",{get:function(){return this._vueTypes_isLoose=!0,this}}),o}var co=function(){function e(){}return e.extend=function(t){var n=this;if(Fa(t))return t.forEach(function(d){return n.extend(d)}),this;var o=t.name,r=t.validate,a=r!==void 0&&r,l=t.getter,i=l!==void 0&&l,s=T2(t,["name","validate","getter"]);if(Gl(this,o))throw new TypeError('[VueTypes error]: Type "'+o+'" already defined');var u,c=s.type;return _s(c)?(delete s.type,Object.defineProperty(this,o,i?{get:function(){return Y0(o,c,s)}}:{value:function(){var d,p=Y0(o,c,s);return p.validator&&(p.validator=(d=p.validator).bind.apply(d,[p].concat([].slice.call(arguments)))),p}})):(u=i?{get:function(){var d=Object.assign({},s);return a?mo(o,d):_n(o,d)},enumerable:!0}:{value:function(){var d,p,g=Object.assign({},s);return d=a?mo(o,g):_n(o,g),g.validator&&(d.validator=(p=g.validator).bind.apply(p,[d].concat([].slice.call(arguments)))),d},enumerable:!0},Object.defineProperty(this,o,u))},P2(e,null,[{key:"any",get:function(){return XM()}},{key:"func",get:function(){return UM().def(this.defaults.func)}},{key:"bool",get:function(){return YM().def(this.defaults.bool)}},{key:"string",get:function(){return qM().def(this.defaults.string)}},{key:"number",get:function(){return QM().def(this.defaults.number)}},{key:"array",get:function(){return ZM().def(this.defaults.array)}},{key:"object",get:function(){return JM().def(this.defaults.object)}},{key:"integer",get:function(){return eE().def(this.defaults.integer)}},{key:"symbol",get:function(){return tE()}}]),e}();function A2(e){var t;return e===void 0&&(e={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}),(t=function(n){function o(){return n.apply(this,arguments)||this}return I2(o,n),P2(o,null,[{key:"sensibleDefaults",get:function(){return ns({},this.defaults)},set:function(r){this.defaults=r!==!1?ns({},r!==!0?r:e):{}}}]),o}(co)).defaults=ns({},e),t}co.defaults={},co.custom=nE,co.oneOf=oE,co.instanceOf=lE,co.oneOfType=rE,co.arrayOf=aE,co.objectOf=iE,co.shape=sE,co.utils={validate:function(e,t){return Zr(t,e,!0)===!0},toType:function(e,t,n){return n===void 0&&(n=!1),n?mo(e,t):_n(e,t)}};(function(e){function t(){return e.apply(this,arguments)||this}return I2(t,e),t})(A2());const V=A2({func:void 0,bool:void 0,string:void 0,number:void 0,array:void 0,object:void 0,integer:void 0});V.extend([{name:"looseBool",getter:!0,type:Boolean,default:void 0},{name:"style",getter:!0,type:[String,Object],default:void 0},{name:"VueNode",getter:!0,type:null}]);function cE(e){return e.default=void 0,e}const bt=(e,t,n)=>{Cv(e,`[ant-design-vue: ${t}] ${n}`)};function q0(e,t){const{key:n}=e;let o;return"value"in e&&({value:o}=e),n??(o!==void 0?o:`rc-index-key-${t}`)}function R2(e,t){const{label:n,value:o,options:r}=e||{};return{label:n||(t?"children":"label"),value:o||"value",options:r||"options"}}function uE(e){let{fieldNames:t,childrenAsData:n}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const o=[],{label:r,value:a,options:l}=R2(t,!1);function i(s,u){s.forEach(c=>{const d=c[r];if(u||!(l in c)){const p=c[a];o.push({key:q0(c,o.length),groupOption:u,data:c,label:d,value:p})}else{let p=d;p===void 0&&n&&(p=c.label),o.push({key:q0(c,o.length),group:!0,data:c,label:p}),i(c[l],!0)}})}return i(e,!1),o}function Tf(e){const t=v({},e);return"props"in t||Object.defineProperty(t,"props",{get(){return t}}),t}function dE(e,t){if(!t||!t.length)return null;let n=!1;function o(a,l){let[i,...s]=l;if(!i)return[a];const u=a.split(i);return n=n||u.length>1,u.reduce((c,d)=>[...c,...o(d,s)],[]).filter(c=>c)}const r=o(e,t);return n?r:null}function fE(){return""}function pE(e){return e?e.ownerDocument:window.document}function N2(){}const vE=()=>({action:V.oneOfType([V.string,V.arrayOf(V.string)]).def([]),showAction:V.any.def([]),hideAction:V.any.def([]),getPopupClassNameFromAlign:V.any.def(fE),onPopupVisibleChange:Function,afterPopupVisibleChange:V.func.def(N2),popup:V.any,popupStyle:{type:Object,default:void 0},prefixCls:V.string.def("rc-trigger-popup"),popupClassName:V.string.def(""),popupPlacement:String,builtinPlacements:V.object,popupTransitionName:String,popupAnimation:V.any,mouseEnterDelay:V.number.def(0),mouseLeaveDelay:V.number.def(.1),zIndex:Number,focusDelay:V.number.def(0),blurDelay:V.number.def(.15),getPopupContainer:Function,getDocument:V.func.def(pE),forceRender:{type:Boolean,default:void 0},destroyPopupOnHide:{type:Boolean,default:!1},mask:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},popupAlign:V.object.def(()=>({})),popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},maskTransitionName:String,maskAnimation:String,stretch:String,alignPoint:{type:Boolean,default:void 0},autoDestroy:{type:Boolean,default:!1},mobile:Object,getTriggerDOMNode:Function}),_v={visible:Boolean,prefixCls:String,zIndex:Number,destroyPopupOnHide:Boolean,forceRender:Boolean,animation:[String,Object],transitionName:String,stretch:{type:String},align:{type:Object},point:{type:Object},getRootDomNode:{type:Function},getClassNameFromAlign:{type:Function},onAlign:{type:Function},onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function},onTouchstart:{type:Function}},gE=v(v({},_v),{mobile:{type:Object}}),hE=v(v({},_v),{mask:Boolean,mobile:{type:Object},maskAnimation:String,maskTransitionName:String});function Dv(e){let{prefixCls:t,animation:n,transitionName:o}=e;return n?{name:`${t}-${n}`}:o?{name:o}:{}}function k2(e){const{prefixCls:t,visible:n,zIndex:o,mask:r,maskAnimation:a,maskTransitionName:l}=e;if(!r)return null;let i={};return(l||a)&&(i=Dv({prefixCls:t,transitionName:l,animation:a})),f(rn,N({appear:!0},i),{default:()=>[Kt(f("div",{style:{zIndex:o},class:`${t}-mask`},null),[[u8("if"),n]])]})}k2.displayName="Mask";const mE=J({compatConfig:{MODE:3},name:"MobilePopupInner",inheritAttrs:!1,props:gE,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(e,t){let{expose:n,slots:o}=t;const r=Z();return n({forceAlign:()=>{},getElement:()=>r.value}),()=>{var a;const{zIndex:l,visible:i,prefixCls:s,mobile:{popupClassName:u,popupStyle:c,popupMotion:d={},popupRender:p}={}}=e,g=v({zIndex:l},c);let m=mt((a=o.default)===null||a===void 0?void 0:a.call(o));m.length>1&&(m=f("div",{class:`${s}-content`},[m])),p&&(m=p(m));const h=te(s,u);return f(rn,N({ref:r},d),{default:()=>[i?f("div",{class:h,style:g},[m]):null]})}}});var bE=function(e,t,n,o){function r(a){return a instanceof n?a:new n(function(l){l(a)})}return new(n||(n=Promise))(function(a,l){function i(c){try{u(o.next(c))}catch(d){l(d)}}function s(c){try{u(o.throw(c))}catch(d){l(d)}}function u(c){c.done?a(c.value):r(c.value).then(i,s)}u((o=o.apply(e,t||[])).next())})};const Q0=["measure","align",null,"motion"],yE=(e,t)=>{const n=Y(null),o=Y(),r=Y(!1);function a(s){r.value||(n.value=s)}function l(){We.cancel(o.value)}function i(s){l(),o.value=We(()=>{let u=n.value;switch(n.value){case"align":u="motion";break;case"motion":u="stable";break}a(u),s==null||s()})}return ue(e,()=>{a("measure")},{immediate:!0,flush:"post"}),Ve(()=>{ue(n,()=>{switch(n.value){case"measure":t();break}n.value&&(o.value=We(()=>bE(void 0,void 0,void 0,function*(){const s=Q0.indexOf(n.value),u=Q0[s+1];u&&s!==-1&&a(u)})))},{immediate:!0,flush:"post"})}),Je(()=>{r.value=!0,l()}),[n,i]},SE=e=>{const t=Y({width:0,height:0});function n(r){t.value={width:r.offsetWidth,height:r.offsetHeight}}return[P(()=>{const r={};if(e.value){const{width:a,height:l}=t.value;e.value.indexOf("height")!==-1&&l?r.height=`${l}px`:e.value.indexOf("minHeight")!==-1&&l&&(r.minHeight=`${l}px`),e.value.indexOf("width")!==-1&&a?r.width=`${a}px`:e.value.indexOf("minWidth")!==-1&&a&&(r.minWidth=`${a}px`)}return r}),n]};function Z0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,o)}return n}function J0(e){for(var t=1;t=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function VE(e,t,n,o){var r=ot.clone(e),a={width:t.width,height:t.height};return o.adjustX&&r.left=n.left&&r.left+a.width>n.right&&(a.width-=r.left+a.width-n.right),o.adjustX&&r.left+a.width>n.right&&(r.left=Math.max(n.right-a.width,n.left)),o.adjustY&&r.top=n.top&&r.top+a.height>n.bottom&&(a.height-=r.top+a.height-n.bottom),o.adjustY&&r.top+a.height>n.bottom&&(r.top=Math.max(n.bottom-a.height,n.top)),ot.mix(r,a)}function kv(e){var t,n,o;if(!ot.isWindow(e)&&e.nodeType!==9)t=ot.offset(e),n=ot.outerWidth(e),o=ot.outerHeight(e);else{var r=ot.getWindow(e);t={left:ot.getWindowScrollLeft(r),top:ot.getWindowScrollTop(r)},n=ot.viewportWidth(r),o=ot.viewportHeight(r)}return t.width=n,t.height=o,t}function ib(e,t){var n=t.charAt(0),o=t.charAt(1),r=e.width,a=e.height,l=e.left,i=e.top;return n==="c"?i+=a/2:n==="b"&&(i+=a),o==="c"?l+=r/2:o==="r"&&(l+=r),{left:l,top:i}}function _i(e,t,n,o,r){var a=ib(t,n[1]),l=ib(e,n[0]),i=[l.left-a.left,l.top-a.top];return{left:Math.round(e.left-i[0]+o[0]-r[0]),top:Math.round(e.top-i[1]+o[1]-r[1])}}function sb(e,t,n){return e.leftn.right}function cb(e,t,n){return e.topn.bottom}function WE(e,t,n){return e.left>n.right||e.left+t.widthn.bottom||e.top+t.height=n.right||o.top>=n.bottom}function Bv(e,t,n){var o=n.target||t,r=kv(o),a=!GE(o,n.overflow&&n.overflow.alwaysByViewport);return W2(e,r,n,a)}Bv.__getOffsetParent=Df;Bv.__getVisibleRectForElement=Nv;function XE(e,t,n){var o,r,a=ot.getDocument(e),l=a.defaultView||a.parentWindow,i=ot.getWindowScrollLeft(l),s=ot.getWindowScrollTop(l),u=ot.viewportWidth(l),c=ot.viewportHeight(l);"pageX"in t?o=t.pageX:o=i+t.clientX,"pageY"in t?r=t.pageY:r=s+t.clientY;var d={left:o,top:r,width:0,height:0},p=o>=0&&o<=i+u&&r>=0&&r<=s+c,g=[n.points[0],"cc"];return W2(e,d,J0(J0({},n),{},{points:g}),p)}function ut(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,r=e;if(Array.isArray(e)&&(r=Tt(e)[0]),!r)return null;const a=ko(r,t,o);return a.props=n?v(v({},a.props),t):a.props,yt(typeof a.props.class!="object"),a}function UE(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return e.map(o=>ut(o,t,n))}function Cl(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Array.isArray(e))return e.map(r=>Cl(r,t,n,o));{if(!Zt(e))return e;const r=ut(e,t,n,o);return Array.isArray(r.children)&&(r.children=Cl(r.children)),r}}function YE(e,t,n){zr(ko(e,v({},t)),n)}const K2=e=>(e||[]).some(t=>Zt(t)?!(t.type===N$||t.type===nt&&!K2(t.children)):!0)?e:null;function Ic(e,t,n,o){var r;const a=(r=e[t])===null||r===void 0?void 0:r.call(e,n);return K2(a)?a:o==null?void 0:o()}const Tc=e=>{if(!e)return!1;if(e.offsetParent)return!0;if(e.getBBox){const t=e.getBBox();if(t.width||t.height)return!0}if(e.getBoundingClientRect){const t=e.getBoundingClientRect();if(t.width||t.height)return!0}return!1};function qE(e,t){return e===t?!0:!e||!t?!1:"pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t?e.clientX===t.clientX&&e.clientY===t.clientY:!1}function QE(e,t){e!==document.activeElement&&er(t,e)&&typeof e.focus=="function"&&e.focus()}function fb(e,t){let n=null,o=null;function r(l){let[{target:i}]=l;if(!document.documentElement.contains(i))return;const{width:s,height:u}=i.getBoundingClientRect(),c=Math.floor(s),d=Math.floor(u);(n!==c||o!==d)&&Promise.resolve().then(()=>{t({width:c,height:d})}),n=c,o=d}const a=new mv(r);return e&&a.observe(e),()=>{a.disconnect()}}const ZE=(e,t)=>{let n=!1,o=null;function r(){clearTimeout(o)}function a(l){if(!n||l===!0){if(e()===!1)return;n=!0,r(),o=setTimeout(()=>{n=!1},t.value)}else r(),o=setTimeout(()=>{n=!1,a()},t.value)}return[a,()=>{n=!1,r()}]},JE={align:Object,target:[Object,Function],onAlign:Function,monitorBufferTime:Number,monitorWindowResize:Boolean,disabled:Boolean};function pb(e){return typeof e!="function"?null:e()}function vb(e){return typeof e!="object"||!e?null:e}const e_=J({compatConfig:{MODE:3},name:"Align",props:JE,emits:["align"],setup(e,t){let{expose:n,slots:o}=t;const r=Z({}),a=Z(),[l,i]=ZE(()=>{const{disabled:p,target:g,align:m,onAlign:h}=e;if(!p&&g&&a.value){const b=a.value;let y;const S=pb(g),$=vb(g);r.value.element=S,r.value.point=$,r.value.align=m;const{activeElement:x}=document;return S&&Tc(S)?y=Bv(b,S,m):$&&(y=XE(b,$,m)),QE(x,b),h&&y&&h(b,y),!0}return!1},P(()=>e.monitorBufferTime)),s=Z({cancel:()=>{}}),u=Z({cancel:()=>{}}),c=()=>{const p=e.target,g=pb(p),m=vb(p);a.value!==u.value.element&&(u.value.cancel(),u.value.element=a.value,u.value.cancel=fb(a.value,l)),(r.value.element!==g||!qE(r.value.point,m)||!vv(r.value.align,e.align))&&(l(),s.value.element!==g&&(s.value.cancel(),s.value.element=g,s.value.cancel=fb(g,l)))};Ve(()=>{lt(()=>{c()})}),ao(()=>{lt(()=>{c()})}),ue(()=>e.disabled,p=>{p?i():l()},{immediate:!0,flush:"post"});const d=Z(null);return ue(()=>e.monitorWindowResize,p=>{p?d.value||(d.value=wt(window,"resize",l)):d.value&&(d.value.remove(),d.value=null)},{flush:"post"}),An(()=>{s.value.cancel(),u.value.cancel(),d.value&&d.value.remove(),i()}),n({forceAlign:()=>l(!0)}),()=>{const p=o==null?void 0:o.default();return p?ut(p[0],{ref:a},!0,!0):null}}});vn("bottomLeft","bottomRight","topLeft","topRight");const Fv=e=>e!==void 0&&(e==="topLeft"||e==="topRight")?"slide-down":"slide-up",bo=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return v(e?{name:e,appear:!0,enterFromClass:`${e}-enter ${e}-enter-prepare ${e}-enter-start`,enterActiveClass:`${e}-enter ${e}-enter-prepare`,enterToClass:`${e}-enter ${e}-enter-active`,leaveFromClass:` ${e}-leave`,leaveActiveClass:`${e}-leave ${e}-leave-active`,leaveToClass:`${e}-leave ${e}-leave-active`}:{css:!1},t)},Mc=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return v(e?{name:e,appear:!0,appearActiveClass:`${e}`,appearToClass:`${e}-appear ${e}-appear-active`,enterFromClass:`${e}-appear ${e}-enter ${e}-appear-prepare ${e}-enter-prepare`,enterActiveClass:`${e}`,enterToClass:`${e}-enter ${e}-appear ${e}-appear-active ${e}-enter-active`,leaveActiveClass:`${e} ${e}-leave`,leaveToClass:`${e}-leave-active`}:{css:!1},t)},en=(e,t,n)=>n!==void 0?n:`${e}-${t}`,t_=J({compatConfig:{MODE:3},name:"PopupInner",inheritAttrs:!1,props:_v,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(e,t){let{expose:n,attrs:o,slots:r}=t;const a=Y(),l=Y(),i=Y(),[s,u]=SE(Be(e,"stretch")),c=()=>{e.stretch&&u(e.getRootDomNode())},d=Y(!1);let p;ue(()=>e.visible,O=>{clearTimeout(p),O?p=setTimeout(()=>{d.value=e.visible}):d.value=!1},{immediate:!0});const[g,m]=yE(d,c),h=Y(),b=()=>e.point?e.point:e.getRootDomNode,y=()=>{var O;(O=a.value)===null||O===void 0||O.forceAlign()},S=(O,w)=>{var M;const I=e.getClassNameFromAlign(w),_=i.value;i.value!==I&&(i.value=I),g.value==="align"&&(_!==I?Promise.resolve().then(()=>{y()}):m(()=>{var D;(D=h.value)===null||D===void 0||D.call(h)}),(M=e.onAlign)===null||M===void 0||M.call(e,O,w))},$=P(()=>{const O=typeof e.animation=="object"?e.animation:Dv(e);return["onAfterEnter","onAfterLeave"].forEach(w=>{const M=O[w];O[w]=I=>{m(),g.value="stable",M==null||M(I)}}),O}),x=()=>new Promise(O=>{h.value=O});ue([$,g],()=>{!$.value&&g.value==="motion"&&m()},{immediate:!0}),n({forceAlign:y,getElement:()=>l.value.$el||l.value});const C=P(()=>{var O;return!(!((O=e.align)===null||O===void 0)&&O.points&&(g.value==="align"||g.value==="stable"))});return()=>{var O;const{zIndex:w,align:M,prefixCls:I,destroyPopupOnHide:_,onMouseenter:D,onMouseleave:F,onTouchstart:z=()=>{},onMousedown:H}=e,T=g.value,A=[v(v({},s.value),{zIndex:w,opacity:T==="motion"||T==="stable"||!d.value?null:0,pointerEvents:!d.value&&T!=="stable"?"none":null}),o.style];let R=mt((O=r.default)===null||O===void 0?void 0:O.call(r,{visible:e.visible}));R.length>1&&(R=f("div",{class:`${I}-content`},[R]));const E=te(I,o.class,i.value),B=d.value||!e.visible?bo($.value.name,$.value):{};return f(rn,N(N({ref:l},B),{},{onBeforeEnter:x}),{default:()=>!_||e.visible?Kt(f(e_,{target:b(),key:"popup",ref:a,monitorWindowResize:!0,disabled:C.value,align:M,onAlign:S},{default:()=>f("div",{class:E,onMouseenter:D,onMouseleave:F,onMousedown:jm(H,["capture"]),[zt?"onTouchstartPassive":"onTouchstart"]:jm(z,["capture"]),style:A},[R])}),[[Wn,d.value]]):null})}}}),n_=J({compatConfig:{MODE:3},name:"Popup",inheritAttrs:!1,props:hE,setup(e,t){let{attrs:n,slots:o,expose:r}=t;const a=Y(!1),l=Y(!1),i=Y(),s=Y();return ue([()=>e.visible,()=>e.mobile],()=>{a.value=e.visible,e.visible&&e.mobile&&(l.value=!0)},{immediate:!0,flush:"post"}),r({forceAlign:()=>{var u;(u=i.value)===null||u===void 0||u.forceAlign()},getElement:()=>{var u;return(u=i.value)===null||u===void 0?void 0:u.getElement()}}),()=>{const u=v(v(v({},e),n),{visible:a.value}),c=l.value?f(mE,N(N({},u),{},{mobile:e.mobile,ref:i}),{default:o.default}):f(t_,N(N({},u),{},{ref:i}),{default:o.default});return f("div",{ref:s},[f(k2,u,null),c])}}});function o_(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function gb(e,t,n){const o=e[t]||{};return v(v({},o),n)}function r_(e,t,n,o){const{points:r}=n,a=Object.keys(e);for(let l=0;l0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=typeof e=="function"?e(this.$data,this.$props):e;if(this.getDerivedStateFromProps){const o=this.getDerivedStateFromProps(WT(this),v(v({},this.$data),n));if(o===null)return;n=v(v({},n),o||{})}v(this.$data,n),this._.isMounted&&this.$forceUpdate(),lt(()=>{t&&t()})},__emit(){const e=[].slice.call(arguments,0);let t=e[0];t=`on${t[0].toUpperCase()}${t.substring(1)}`;const n=this.$props[t]||this.$attrs[t];if(e.length&&n)if(Array.isArray(n))for(let o=0,r=n.length;o1&&arguments[1]!==void 0?arguments[1]:{inTriggerContext:!0};Ke(G2,{inTriggerContext:t.inTriggerContext,shouldRender:P(()=>{const{sPopupVisible:n,popupRef:o,forceRender:r,autoDestroy:a}=e||{};let l=!1;return(n||o||r)&&(l=!0),!n&&a&&(l=!1),l})})},a_=()=>{Lv({},{inTriggerContext:!1});const e=Xe(G2,{shouldRender:P(()=>!1),inTriggerContext:!1});return{shouldRender:P(()=>e.shouldRender.value||e.inTriggerContext===!1)}},X2=J({compatConfig:{MODE:3},name:"Portal",inheritAttrs:!1,props:{getContainer:V.func.isRequired,didUpdate:Function},setup(e,t){let{slots:n}=t,o=!0,r;const{shouldRender:a}=a_();function l(){a.value&&(r=e.getContainer())}Xp(()=>{o=!1,l()}),Ve(()=>{r||l()});const i=ue(a,()=>{a.value&&!r&&(r=e.getContainer()),r&&i()});return ao(()=>{lt(()=>{var s;a.value&&((s=e.didUpdate)===null||s===void 0||s.call(e,e))})}),()=>{var s;return a.value?o?(s=n.default)===null||s===void 0?void 0:s.call(n):r?f(Up,{to:r},n):null:null}}});let Uu;function As(e){if(typeof document>"u")return 0;if(e||Uu===void 0){const t=document.createElement("div");t.style.width="100%",t.style.height="200px";const n=document.createElement("div"),o=n.style;o.position="absolute",o.top="0",o.left="0",o.pointerEvents="none",o.visibility="hidden",o.width="200px",o.height="150px",o.overflow="hidden",n.appendChild(t),document.body.appendChild(n);const r=t.offsetWidth;n.style.overflow="scroll";let a=t.offsetWidth;r===a&&(a=n.clientWidth),document.body.removeChild(n),Uu=r-a}return Uu}function hb(e){const t=e.match(/^(.*)px$/),n=Number(t==null?void 0:t[1]);return Number.isNaN(n)?As():n}function l_(e){if(typeof document>"u"||!e||!(e instanceof Element))return{width:0,height:0};const{width:t,height:n}=getComputedStyle(e,"::-webkit-scrollbar");return{width:hb(t),height:hb(n)}}const i_=`vc-util-locker-${Date.now()}`;let mb=0;function s_(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}function c_(e){const t=P(()=>!!e&&!!e.value);mb+=1;const n=`${i_}_${mb}`;Le(o=>{if(hn()){if(t.value){const r=As(),a=s_();jl(` +html body { + overflow-y: hidden; + ${a?`width: calc(100% - ${r}px);`:""} +}`,n)}else Is(n);o(()=>{Is(n)})}},{flush:"post"})}let hr=0;const os=hn(),bb=e=>{if(!os)return null;if(e){if(typeof e=="string")return document.querySelectorAll(e)[0];if(typeof e=="function")return e();if(typeof e=="object"&&e instanceof window.HTMLElement)return e}return document.body},zv=J({compatConfig:{MODE:3},name:"PortalWrapper",inheritAttrs:!1,props:{wrapperClassName:String,forceRender:{type:Boolean,default:void 0},getContainer:V.any,visible:{type:Boolean,default:void 0},autoLock:Ce(),didUpdate:Function},setup(e,t){let{slots:n}=t;const o=Y(),r=Y(),a=Y(),l=Y(1),i=hn()&&document.createElement("div"),s=()=>{var g,m;o.value===i&&((m=(g=o.value)===null||g===void 0?void 0:g.parentNode)===null||m===void 0||m.removeChild(o.value)),o.value=null};let u=null;const c=function(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)||o.value&&!o.value.parentNode?(u=bb(e.getContainer),u?(u.appendChild(o.value),!0):!1):!0},d=()=>os?(o.value||(o.value=i,c(!0)),p(),o.value):null,p=()=>{const{wrapperClassName:g}=e;o.value&&g&&g!==o.value.className&&(o.value.className=g)};return ao(()=>{p(),c()}),c_(P(()=>e.autoLock&&e.visible&&hn()&&(o.value===document.body||o.value===i))),Ve(()=>{let g=!1;ue([()=>e.visible,()=>e.getContainer],(m,h)=>{let[b,y]=m,[S,$]=h;os&&(u=bb(e.getContainer),u===document.body&&(b&&!S?hr+=1:g&&(hr-=1))),g&&(typeof y=="function"&&typeof $=="function"?y.toString()!==$.toString():y!==$)&&s(),g=!0},{immediate:!0,flush:"post"}),lt(()=>{c()||(a.value=We(()=>{l.value+=1}))})}),Je(()=>{const{visible:g}=e;os&&u===document.body&&(hr=g&&hr?hr-1:hr),s(),We.cancel(a.value)}),()=>{const{forceRender:g,visible:m}=e;let h=null;const b={getOpenCount:()=>hr,getContainer:d};return l.value&&(g||m||r.value)&&(h=f(X2,{getContainer:d,ref:r,didUpdate:e.didUpdate},{default:()=>{var y;return(y=n.default)===null||y===void 0?void 0:y.call(n,b)}})),h}}}),u_=["onClick","onMousedown","onTouchstart","onMouseenter","onMouseleave","onFocus","onBlur","onContextmenu"],ii=J({compatConfig:{MODE:3},name:"Trigger",mixins:[Jr],inheritAttrs:!1,props:vE(),setup(e){const t=P(()=>{const{popupPlacement:r,popupAlign:a,builtinPlacements:l}=e;return r&&l?gb(l,r,a):a}),n=Y(null),o=r=>{n.value=r};return{vcTriggerContext:Xe("vcTriggerContext",{}),popupRef:n,setPopupRef:o,triggerRef:Y(null),align:t,focusTime:null,clickOutsideHandler:null,contextmenuOutsideHandler1:null,contextmenuOutsideHandler2:null,touchOutsideHandler:null,attachId:null,delayTimer:null,hasPopupMouseDown:!1,preClickTime:null,preTouchTime:null,mouseDownTimeout:null,childOriginEvents:{}}},data(){const e=this.$props;let t;return this.popupVisible!==void 0?t=!!e.popupVisible:t=!!e.defaultPopupVisible,u_.forEach(n=>{this[`fire${n}`]=o=>{this.fireEvents(n,o)}}),{prevPopupVisible:t,sPopupVisible:t,point:null}},watch:{popupVisible(e){e!==void 0&&(this.prevPopupVisible=this.sPopupVisible,this.sPopupVisible=e)}},created(){Ke("vcTriggerContext",{onPopupMouseDown:this.onPopupMouseDown,onPopupMouseenter:this.onPopupMouseenter,onPopupMouseleave:this.onPopupMouseleave}),Lv(this)},deactivated(){this.setPopupVisible(!1)},mounted(){this.$nextTick(()=>{this.updatedCal()})},updated(){this.$nextTick(()=>{this.updatedCal()})},beforeUnmount(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),We.cancel(this.attachId)},methods:{updatedCal(){const e=this.$props;if(this.$data.sPopupVisible){let n;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextmenuToShow())&&(n=e.getDocument(this.getRootDomNode()),this.clickOutsideHandler=wt(n,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(n=n||e.getDocument(this.getRootDomNode()),this.touchOutsideHandler=wt(n,"touchstart",this.onDocumentClick,zt?{passive:!1}:!1)),!this.contextmenuOutsideHandler1&&this.isContextmenuToShow()&&(n=n||e.getDocument(this.getRootDomNode()),this.contextmenuOutsideHandler1=wt(n,"scroll",this.onContextmenuClose)),!this.contextmenuOutsideHandler2&&this.isContextmenuToShow()&&(this.contextmenuOutsideHandler2=wt(window,"blur",this.onContextmenuClose))}else this.clearOutsideHandler()},onMouseenter(e){const{mouseEnterDelay:t}=this.$props;this.fireEvents("onMouseenter",e),this.delaySetPopupVisible(!0,t,t?null:e)},onMouseMove(e){this.fireEvents("onMousemove",e),this.setPoint(e)},onMouseleave(e){this.fireEvents("onMouseleave",e),this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay)},onPopupMouseenter(){const{vcTriggerContext:e={}}=this;e.onPopupMouseenter&&e.onPopupMouseenter(),this.clearDelayTimer()},onPopupMouseleave(e){var t;if(e&&e.relatedTarget&&!e.relatedTarget.setTimeout&&er((t=this.popupRef)===null||t===void 0?void 0:t.getElement(),e.relatedTarget))return;this.isMouseLeaveToHide()&&this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay);const{vcTriggerContext:n={}}=this;n.onPopupMouseleave&&n.onPopupMouseleave(e)},onFocus(e){this.fireEvents("onFocus",e),this.clearDelayTimer(),this.isFocusToShow()&&(this.focusTime=Date.now(),this.delaySetPopupVisible(!0,this.$props.focusDelay))},onMousedown(e){this.fireEvents("onMousedown",e),this.preClickTime=Date.now()},onTouchstart(e){this.fireEvents("onTouchstart",e),this.preTouchTime=Date.now()},onBlur(e){er(e.target,e.relatedTarget||document.activeElement)||(this.fireEvents("onBlur",e),this.clearDelayTimer(),this.isBlurToHide()&&this.delaySetPopupVisible(!1,this.$props.blurDelay))},onContextmenu(e){e.preventDefault(),this.fireEvents("onContextmenu",e),this.setPopupVisible(!0,e)},onContextmenuClose(){this.isContextmenuToShow()&&this.close()},onClick(e){if(this.fireEvents("onClick",e),this.focusTime){let n;if(this.preClickTime&&this.preTouchTime?n=Math.min(this.preClickTime,this.preTouchTime):this.preClickTime?n=this.preClickTime:this.preTouchTime&&(n=this.preTouchTime),Math.abs(n-this.focusTime)<20)return;this.focusTime=0}this.preClickTime=0,this.preTouchTime=0,this.isClickToShow()&&(this.isClickToHide()||this.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault(),e&&e.domEvent&&e.domEvent.preventDefault();const t=!this.$data.sPopupVisible;(this.isClickToHide()&&!t||t&&this.isClickToShow())&&this.setPopupVisible(!this.$data.sPopupVisible,e)},onPopupMouseDown(){const{vcTriggerContext:e={}}=this;this.hasPopupMouseDown=!0,clearTimeout(this.mouseDownTimeout),this.mouseDownTimeout=setTimeout(()=>{this.hasPopupMouseDown=!1},0),e.onPopupMouseDown&&e.onPopupMouseDown(...arguments)},onDocumentClick(e){if(this.$props.mask&&!this.$props.maskClosable)return;const t=e.target,n=this.getRootDomNode(),o=this.getPopupDomNode();(!er(n,t)||this.isContextMenuOnly())&&!er(o,t)&&!this.hasPopupMouseDown&&this.delaySetPopupVisible(!1,.1)},getPopupDomNode(){var e;return((e=this.popupRef)===null||e===void 0?void 0:e.getElement())||null},getRootDomNode(){var e,t,n,o;const{getTriggerDOMNode:r}=this.$props;if(r){const a=((t=(e=this.triggerRef)===null||e===void 0?void 0:e.$el)===null||t===void 0?void 0:t.nodeName)==="#comment"?null:Pn(this.triggerRef);return Pn(r(a))}try{const a=((o=(n=this.triggerRef)===null||n===void 0?void 0:n.$el)===null||o===void 0?void 0:o.nodeName)==="#comment"?null:Pn(this.triggerRef);if(a)return a}catch{}return Pn(this)},handleGetPopupClassFromAlign(e){const t=[],n=this.$props,{popupPlacement:o,builtinPlacements:r,prefixCls:a,alignPoint:l,getPopupClassNameFromAlign:i}=n;return o&&r&&t.push(r_(r,a,e,l)),i&&t.push(i(e)),t.join(" ")},getPopupAlign(){const e=this.$props,{popupPlacement:t,popupAlign:n,builtinPlacements:o}=e;return t&&o?gb(o,t,n):n},getComponent(){const e={};this.isMouseEnterToShow()&&(e.onMouseenter=this.onPopupMouseenter),this.isMouseLeaveToHide()&&(e.onMouseleave=this.onPopupMouseleave),e.onMousedown=this.onPopupMouseDown,e[zt?"onTouchstartPassive":"onTouchstart"]=this.onPopupMouseDown;const{handleGetPopupClassFromAlign:t,getRootDomNode:n,$attrs:o}=this,{prefixCls:r,destroyPopupOnHide:a,popupClassName:l,popupAnimation:i,popupTransitionName:s,popupStyle:u,mask:c,maskAnimation:d,maskTransitionName:p,zIndex:g,stretch:m,alignPoint:h,mobile:b,forceRender:y}=this.$props,{sPopupVisible:S,point:$}=this.$data,x=v(v({prefixCls:r,destroyPopupOnHide:a,visible:S,point:h?$:null,align:this.align,animation:i,getClassNameFromAlign:t,stretch:m,getRootDomNode:n,mask:c,zIndex:g,transitionName:s,maskAnimation:d,maskTransitionName:p,class:l,style:u,onAlign:o.onPopupAlign||N2},e),{ref:this.setPopupRef,mobile:b,forceRender:y});return f(n_,x,{default:this.$slots.popup||(()=>RC(this,"popup"))})},attachParent(e){We.cancel(this.attachId);const{getPopupContainer:t,getDocument:n}=this.$props,o=this.getRootDomNode();let r;t?(o||t.length===0)&&(r=t(o)):r=n(this.getRootDomNode()).body,r?r.appendChild(e):this.attachId=We(()=>{this.attachParent(e)})},getContainer(){const{$props:e}=this,{getDocument:t}=e,n=t(this.getRootDomNode()).createElement("div");return n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.width="100%",this.attachParent(n),n},setPopupVisible(e,t){const{alignPoint:n,sPopupVisible:o,onPopupVisibleChange:r}=this;this.clearDelayTimer(),o!==e&&(_o(this,"popupVisible")||this.setState({sPopupVisible:e,prevPopupVisible:o}),r&&r(e)),n&&t&&e&&this.setPoint(t)},setPoint(e){const{alignPoint:t}=this.$props;!t||!e||this.setState({point:{pageX:e.pageX,pageY:e.pageY}})},handlePortalUpdate(){this.prevPopupVisible!==this.sPopupVisible&&this.afterPopupVisibleChange(this.sPopupVisible)},delaySetPopupVisible(e,t,n){const o=t*1e3;if(this.clearDelayTimer(),o){const r=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=setTimeout(()=>{this.setPopupVisible(e,r),this.clearDelayTimer()},o)}else this.setPopupVisible(e,n)},clearDelayTimer(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)},clearOutsideHandler(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextmenuOutsideHandler1&&(this.contextmenuOutsideHandler1.remove(),this.contextmenuOutsideHandler1=null),this.contextmenuOutsideHandler2&&(this.contextmenuOutsideHandler2.remove(),this.contextmenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)},createTwoChains(e){let t=()=>{};const n=C0(this);return this.childOriginEvents[e]&&n[e]?this[`fire${e}`]:(t=this.childOriginEvents[e]||n[e]||t,t)},isClickToShow(){const{action:e,showAction:t}=this.$props;return e.indexOf("click")!==-1||t.indexOf("click")!==-1},isContextMenuOnly(){const{action:e}=this.$props;return e==="contextmenu"||e.length===1&&e[0]==="contextmenu"},isContextmenuToShow(){const{action:e,showAction:t}=this.$props;return e.indexOf("contextmenu")!==-1||t.indexOf("contextmenu")!==-1},isClickToHide(){const{action:e,hideAction:t}=this.$props;return e.indexOf("click")!==-1||t.indexOf("click")!==-1},isMouseEnterToShow(){const{action:e,showAction:t}=this.$props;return e.indexOf("hover")!==-1||t.indexOf("mouseenter")!==-1},isMouseLeaveToHide(){const{action:e,hideAction:t}=this.$props;return e.indexOf("hover")!==-1||t.indexOf("mouseleave")!==-1},isFocusToShow(){const{action:e,showAction:t}=this.$props;return e.indexOf("focus")!==-1||t.indexOf("focus")!==-1},isBlurToHide(){const{action:e,hideAction:t}=this.$props;return e.indexOf("focus")!==-1||t.indexOf("blur")!==-1},forcePopupAlign(){var e;this.$data.sPopupVisible&&((e=this.popupRef)===null||e===void 0||e.forceAlign())},fireEvents(e,t){this.childOriginEvents[e]&&this.childOriginEvents[e](t);const n=this.$props[e]||this.$attrs[e];n&&n(t)},close(){this.setPopupVisible(!1)}},render(){const{$attrs:e}=this,t=Tt(bc(this)),{alignPoint:n,getPopupContainer:o}=this.$props,r=t[0];this.childOriginEvents=C0(r);const a={key:"trigger"};this.isContextmenuToShow()?a.onContextmenu=this.onContextmenu:a.onContextmenu=this.createTwoChains("onContextmenu"),this.isClickToHide()||this.isClickToShow()?(a.onClick=this.onClick,a.onMousedown=this.onMousedown,a[zt?"onTouchstartPassive":"onTouchstart"]=this.onTouchstart):(a.onClick=this.createTwoChains("onClick"),a.onMousedown=this.createTwoChains("onMousedown"),a[zt?"onTouchstartPassive":"onTouchstart"]=this.createTwoChains("onTouchstart")),this.isMouseEnterToShow()?(a.onMouseenter=this.onMouseenter,n&&(a.onMousemove=this.onMouseMove)):a.onMouseenter=this.createTwoChains("onMouseenter"),this.isMouseLeaveToHide()?a.onMouseleave=this.onMouseleave:a.onMouseleave=this.createTwoChains("onMouseleave"),this.isFocusToShow()||this.isBlurToHide()?(a.onFocus=this.onFocus,a.onBlur=this.onBlur):(a.onFocus=this.createTwoChains("onFocus"),a.onBlur=u=>{u&&(!u.relatedTarget||!er(u.target,u.relatedTarget))&&this.createTwoChains("onBlur")(u)});const l=te(r&&r.props&&r.props.class,e.class);l&&(a.class=l);const i=ut(r,v(v({},a),{ref:"triggerRef"}),!0,!0),s=f(zv,{key:"portal",getContainer:o&&(()=>o(this.getRootDomNode())),didUpdate:this.handlePortalUpdate,visible:this.$data.sPopupVisible},{default:this.getComponent});return f(nt,null,[i,s])}});var d_=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{const t=e===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}}}},p_=J({name:"SelectTrigger",inheritAttrs:!1,props:{dropdownAlign:Object,visible:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},dropdownClassName:String,dropdownStyle:V.object,placement:String,empty:{type:Boolean,default:void 0},prefixCls:String,popupClassName:String,animation:String,transitionName:String,getPopupContainer:Function,dropdownRender:Function,containerWidth:Number,dropdownMatchSelectWidth:V.oneOfType([Number,Boolean]).def(!0),popupElement:V.any,direction:String,getTriggerDOMNode:Function,onPopupVisibleChange:Function,onPopupMouseEnter:Function,onPopupFocusin:Function,onPopupFocusout:Function},setup(e,t){let{slots:n,attrs:o,expose:r}=t;const a=P(()=>{const{dropdownMatchSelectWidth:i}=e;return f_(i)}),l=Z();return r({getPopupElement:()=>l.value}),()=>{const i=v(v({},e),o),{empty:s=!1}=i,u=d_(i,["empty"]),{visible:c,dropdownAlign:d,prefixCls:p,popupElement:g,dropdownClassName:m,dropdownStyle:h,direction:b="ltr",placement:y,dropdownMatchSelectWidth:S,containerWidth:$,dropdownRender:x,animation:C,transitionName:O,getPopupContainer:w,getTriggerDOMNode:M,onPopupVisibleChange:I,onPopupMouseEnter:_,onPopupFocusin:D,onPopupFocusout:F}=u,z=`${p}-dropdown`;let H=g;x&&(H=x({menuNode:g,props:e}));const T=C?`${z}-${C}`:O,A=v({minWidth:`${$}px`},h);return typeof S=="number"?A.width=`${S}px`:S&&(A.width=`${$}px`),f(ii,N(N({},e),{},{showAction:I?["click"]:[],hideAction:I?["click"]:[],popupPlacement:y||(b==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:a.value,prefixCls:z,popupTransitionName:T,popupAlign:d,popupVisible:c,getPopupContainer:w,popupClassName:te(m,{[`${z}-empty`]:s}),popupStyle:A,getTriggerDOMNode:M,onPopupVisibleChange:I}),{default:n.default,popup:()=>f("div",{ref:l,onMouseenter:_,onFocusin:D,onFocusout:F},[H])})}}}),v_=p_,Ze={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){const{keyCode:n}=t;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=Ze.F1&&n<=Ze.F12)return!1;switch(n){case Ze.ALT:case Ze.CAPS_LOCK:case Ze.CONTEXT_MENU:case Ze.CTRL:case Ze.DOWN:case Ze.END:case Ze.ESC:case Ze.HOME:case Ze.INSERT:case Ze.LEFT:case Ze.MAC_FF_META:case Ze.META:case Ze.NUMLOCK:case Ze.NUM_CENTER:case Ze.PAGE_DOWN:case Ze.PAGE_UP:case Ze.PAUSE:case Ze.PRINT_SCREEN:case Ze.RIGHT:case Ze.SHIFT:case Ze.UP:case Ze.WIN_KEY:case Ze.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=Ze.ZERO&&t<=Ze.NINE||t>=Ze.NUM_ZERO&&t<=Ze.NUM_MULTIPLY||t>=Ze.A&&t<=Ze.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case Ze.SPACE:case Ze.QUESTION_MARK:case Ze.NUM_PLUS:case Ze.NUM_MINUS:case Ze.NUM_PERIOD:case Ze.NUM_DIVISION:case Ze.SEMICOLON:case Ze.DASH:case Ze.EQUALS:case Ze.COMMA:case Ze.PERIOD:case Ze.SLASH:case Ze.APOSTROPHE:case Ze.SINGLE_QUOTE:case Ze.OPEN_SQUARE_BRACKET:case Ze.BACKSLASH:case Ze.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},$e=Ze,Ec=(e,t)=>{let{slots:n}=t;var o;const{class:r,customizeIcon:a,customizeIconProps:l,onMousedown:i,onClick:s}=e;let u;return typeof a=="function"?u=a(l):u=a,f("span",{class:r,onMousedown:c=>{c.preventDefault(),i&&i(c)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},[u!==void 0?u:f("span",{class:r.split(/\s+/).map(c=>`${c}-icon`)},[(o=n.default)===null||o===void 0?void 0:o.call(n)])])};Ec.inheritAttrs=!1;Ec.displayName="TransBtn";Ec.props={class:String,customizeIcon:V.any,customizeIconProps:V.any,onMousedown:Function,onClick:Function};const Rs=Ec;function g_(e){e.target.composing=!0}function yb(e){e.target.composing&&(e.target.composing=!1,h_(e.target,"input"))}function h_(e,t){const n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Yu(e,t,n,o){e.addEventListener(t,n,o)}const m_={created(e,t){(!t.modifiers||!t.modifiers.lazy)&&(Yu(e,"compositionstart",g_),Yu(e,"compositionend",yb),Yu(e,"change",yb))}},si=m_,b_={inputRef:V.any,prefixCls:String,id:String,inputElement:V.VueNode,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,editable:{type:Boolean,default:void 0},activeDescendantId:String,value:String,open:{type:Boolean,default:void 0},tabindex:V.oneOfType([V.number,V.string]),attrs:V.object,onKeydown:{type:Function},onMousedown:{type:Function},onChange:{type:Function},onPaste:{type:Function},onCompositionstart:{type:Function},onCompositionend:{type:Function},onFocus:{type:Function},onBlur:{type:Function}},y_=J({compatConfig:{MODE:3},name:"SelectInput",inheritAttrs:!1,props:b_,setup(e){let t=null;const n=Xe("VCSelectContainerEvent");return()=>{var o;const{prefixCls:r,id:a,inputElement:l,disabled:i,tabindex:s,autofocus:u,autocomplete:c,editable:d,activeDescendantId:p,value:g,onKeydown:m,onMousedown:h,onChange:b,onPaste:y,onCompositionstart:S,onCompositionend:$,onFocus:x,onBlur:C,open:O,inputRef:w,attrs:M}=e;let I=l||Kt(f("input",null,null),[[si]]);const _=I.props||{},{onKeydown:D,onInput:F,onFocus:z,onBlur:H,onMousedown:T,onCompositionstart:A,onCompositionend:R,style:E}=_;return I=ut(I,v(v(v(v(v({type:"search"},_),{id:a,ref:w,disabled:i,tabindex:s,autocomplete:c||"off",autofocus:u,class:te(`${r}-selection-search-input`,(o=I==null?void 0:I.props)===null||o===void 0?void 0:o.class),role:"combobox","aria-expanded":O,"aria-haspopup":"listbox","aria-owns":`${a}_list`,"aria-autocomplete":"list","aria-controls":`${a}_list`,"aria-activedescendant":p}),M),{value:d?g:"",readonly:!d,unselectable:d?null:"on",style:v(v({},E),{opacity:d?null:0}),onKeydown:k=>{m(k),D&&D(k)},onMousedown:k=>{h(k),T&&T(k)},onInput:k=>{b(k),F&&F(k)},onCompositionstart(k){S(k),A&&A(k)},onCompositionend(k){$(k),R&&R(k)},onPaste:y,onFocus:function(){clearTimeout(t),z&&z(arguments.length<=0?void 0:arguments[0]),x&&x(arguments.length<=0?void 0:arguments[0]),n==null||n.focus(arguments.length<=0?void 0:arguments[0])},onBlur:function(){for(var k=arguments.length,B=new Array(k),L=0;L{H&&H(B[0]),C&&C(B[0]),n==null||n.blur(B[0])},100)}}),I.type==="textarea"?{}:{type:"search"}),!0,!0),I}}}),U2=y_,S_=`accept acceptcharset accesskey action allowfullscreen allowtransparency +alt async autocomplete autofocus autoplay capture cellpadding cellspacing challenge +charset checked classid classname colspan cols content contenteditable contextmenu +controls coords crossorigin data datetime default defer dir disabled download draggable +enctype form formaction formenctype formmethod formnovalidate formtarget frameborder +headers height hidden high href hreflang htmlfor for httpequiv icon id inputmode integrity +is keyparams keytype kind label lang list loop low manifest marginheight marginwidth max maxlength media +mediagroup method min minlength multiple muted name novalidate nonce open +optimum pattern placeholder poster preload radiogroup readonly rel required +reversed role rowspan rows sandbox scope scoped scrolling seamless selected +shape size sizes span spellcheck src srcdoc srclang srcset start step style +summary tabindex target title type usemap value width wmode wrap`,$_=`onCopy onCut onPaste onCompositionend onCompositionstart onCompositionupdate onKeydown + onKeypress onKeyup onFocus onBlur onChange onInput onSubmit onClick onContextmenu onDoubleclick onDblclick + onDrag onDragend onDragenter onDragexit onDragleave onDragover onDragstart onDrop onMousedown + onMouseenter onMouseleave onMousemove onMouseout onMouseover onMouseup onSelect onTouchcancel + onTouchend onTouchmove onTouchstart onTouchstartPassive onTouchmovePassive onScroll onWheel onAbort onCanplay onCanplaythrough + onDurationchange onEmptied onEncrypted onEnded onError onLoadeddata onLoadedmetadata + onLoadstart onPause onPlay onPlaying onProgress onRatechange onSeeked onSeeking onStalled onSuspend onTimeupdate onVolumechange onWaiting onLoad onError`,Sb=`${S_} ${$_}`.split(/[\s\n]+/),C_="aria-",x_="data-";function $b(e,t){return e.indexOf(t)===0}function dr(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=v({},t);const o={};return Object.keys(e).forEach(r=>{(n.aria&&(r==="role"||$b(r,C_))||n.data&&$b(r,x_)||n.attr&&(Sb.includes(r)||Sb.includes(r.toLowerCase())))&&(o[r]=e[r])}),o}const Y2=Symbol("OverflowContextProviderKey"),Af=J({compatConfig:{MODE:3},name:"OverflowContextProvider",inheritAttrs:!1,props:{value:{type:Object}},setup(e,t){let{slots:n}=t;return Ke(Y2,P(()=>e.value)),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}),w_=()=>Xe(Y2,P(()=>null));var O_=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);re.responsive&&!e.display),a=Z();o({itemNodeRef:a});function l(i){e.registerSize(e.itemKey,i)}return An(()=>{l(null)}),()=>{var i;const{prefixCls:s,invalidate:u,item:c,renderItem:d,responsive:p,registerSize:g,itemKey:m,display:h,order:b,component:y="div"}=e,S=O_(e,["prefixCls","invalidate","item","renderItem","responsive","registerSize","itemKey","display","order","component"]),$=(i=n.default)===null||i===void 0?void 0:i.call(n),x=d&&c!==oa?d(c):$;let C;u||(C={opacity:r.value?0:1,height:r.value?0:oa,overflowY:r.value?"hidden":oa,order:p?b:oa,pointerEvents:r.value?"none":oa,position:r.value?"absolute":oa});const O={};return r.value&&(O["aria-hidden"]=!0),f(ho,{disabled:!p,onResize:w=>{let{offsetWidth:M}=w;l(M)}},{default:()=>f(y,N(N(N({class:te(!u&&s),style:C},O),S),{},{ref:a}),{default:()=>[x]})})}}});var qu=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{var a;if(!r.value){const{component:d="div"}=e,p=qu(e,["component"]);return f(d,N(N({},p),o),{default:()=>[(a=n.default)===null||a===void 0?void 0:a.call(n)]})}const l=r.value,{className:i}=l,s=qu(l,["className"]),{class:u}=o,c=qu(o,["class"]);return f(Af,{value:null},{default:()=>[f(rs,N(N(N({class:te(i,u)},s),c),e),n)]})}}});var I_=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({id:String,prefixCls:String,data:Array,itemKey:[String,Number,Function],itemWidth:{type:Number,default:10},renderItem:Function,renderRawItem:Function,maxCount:[Number,String],renderRest:Function,renderRawRest:Function,suffix:V.any,component:String,itemComponent:V.any,onVisibleChange:Function,ssr:String,onMousedown:Function}),_c=J({name:"Overflow",inheritAttrs:!1,props:M_(),emits:["visibleChange"],setup(e,t){let{attrs:n,emit:o,slots:r}=t;const a=P(()=>e.ssr==="full"),l=Y(null),i=P(()=>l.value||0),s=Y(new Map),u=Y(0),c=Y(0),d=Y(0),p=Y(null),g=Y(null),m=P(()=>g.value===null&&a.value?Number.MAX_SAFE_INTEGER:g.value||0),h=Y(!1),b=P(()=>`${e.prefixCls}-item`),y=P(()=>Math.max(u.value,c.value)),S=P(()=>!!(e.data.length&&e.maxCount===q2)),$=P(()=>e.maxCount===Q2),x=P(()=>S.value||typeof e.maxCount=="number"&&e.data.length>e.maxCount),C=P(()=>{let T=e.data;return S.value?l.value===null&&a.value?T=e.data:T=e.data.slice(0,Math.min(e.data.length,i.value/e.itemWidth)):typeof e.maxCount=="number"&&(T=e.data.slice(0,e.maxCount)),T}),O=P(()=>S.value?e.data.slice(m.value+1):e.data.slice(C.value.length)),w=(T,A)=>{var R;return typeof e.itemKey=="function"?e.itemKey(T):(R=e.itemKey&&(T==null?void 0:T[e.itemKey]))!==null&&R!==void 0?R:A},M=P(()=>e.renderItem||(T=>T)),I=(T,A)=>{g.value=T,A||(h.value=T{l.value=A.clientWidth},D=(T,A)=>{const R=new Map(s.value);A===null?R.delete(T):R.set(T,A),s.value=R},F=(T,A)=>{u.value=c.value,c.value=A},z=(T,A)=>{d.value=A},H=T=>s.value.get(w(C.value[T],T));return ue([i,s,c,d,()=>e.itemKey,C],()=>{if(i.value&&y.value&&C.value){let T=d.value;const A=C.value.length,R=A-1;if(!A){I(0),p.value=null;return}for(let E=0;Ei.value){I(E-1),p.value=T-k-d.value+c.value;break}}e.suffix&&H(0)+d.value>i.value&&(p.value=null)}}),()=>{const T=h.value&&!!O.value.length,{itemComponent:A,renderRawItem:R,renderRawRest:E,renderRest:k,prefixCls:B="rc-overflow",suffix:L,component:j="div",id:K,onMousedown:G}=e,{class:U,style:X}=n,ee=I_(n,["class","style"]);let oe={};p.value!==null&&S.value&&(oe={position:"absolute",left:`${p.value}px`,top:0});const Q={prefixCls:b.value,responsive:S.value,component:A,invalidate:$.value},W=R?(ye,me)=>{const ce=w(ye,me);return f(Af,{key:ce,value:v(v({},Q),{order:me,item:ye,itemKey:ce,registerSize:D,display:me<=m.value})},{default:()=>[R(ye,me)]})}:(ye,me)=>{const ce=w(ye,me);return f(rs,N(N({},Q),{},{order:me,key:ce,item:ye,renderItem:M.value,itemKey:ce,registerSize:D,display:me<=m.value}),null)};let q=()=>null;const re={order:T?m.value:Number.MAX_SAFE_INTEGER,className:`${b.value} ${b.value}-rest`,registerSize:F,display:T};if(E)E&&(q=()=>f(Af,{value:v(v({},Q),re)},{default:()=>[E(O.value)]}));else{const ye=k||T_;q=()=>f(rs,N(N({},Q),re),{default:()=>typeof ye=="function"?ye(O.value):ye})}const le=()=>{var ye;return f(j,N({id:K,class:te(!$.value&&B,U),style:X,onMousedown:G},ee),{default:()=>[C.value.map(W),x.value?q():null,L&&f(rs,N(N({},Q),{},{order:m.value,class:`${b.value}-suffix`,registerSize:z,display:!0,style:oe}),{default:()=>L}),(ye=r.default)===null||ye===void 0?void 0:ye.call(r)]})};return f(ho,{disabled:!S.value,onResize:_},{default:le})}}});_c.Item=P_;_c.RESPONSIVE=q2;_c.INVALIDATE=Q2;const xa=_c,Z2=Symbol("TreeSelectLegacyContextPropsKey");function E_(e){return Ke(Z2,e)}function Dc(){return Xe(Z2,{})}const __={id:String,prefixCls:String,values:V.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:V.any,placeholder:V.any,disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:V.oneOfType([V.number,V.string]),removeIcon:V.any,choiceTransitionName:String,maxTagCount:V.oneOfType([V.number,V.string]),maxTagTextLength:Number,maxTagPlaceholder:V.any.def(()=>e=>`+ ${e.length} ...`),tagRender:Function,onToggleOpen:{type:Function},onRemove:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},Cb=e=>{e.preventDefault(),e.stopPropagation()},D_=J({name:"MultipleSelectSelector",inheritAttrs:!1,props:__,setup(e){const t=Y(),n=Y(0),o=Y(!1),r=Dc(),a=P(()=>`${e.prefixCls}-selection`),l=P(()=>e.open||e.mode==="tags"?e.searchValue:""),i=P(()=>e.mode==="tags"||e.showSearch&&(e.open||o.value));Ve(()=>{ue(l,()=>{n.value=t.value.scrollWidth},{flush:"post",immediate:!0})});function s(p,g,m,h,b){return f("span",{class:te(`${a.value}-item`,{[`${a.value}-item-disabled`]:m}),title:typeof p=="string"||typeof p=="number"?p.toString():void 0},[f("span",{class:`${a.value}-item-content`},[g]),h&&f(Rs,{class:`${a.value}-item-remove`,onMousedown:Cb,onClick:b,customizeIcon:e.removeIcon},{default:()=>[go("×")]})])}function u(p,g,m,h,b,y){var S;const $=C=>{Cb(C),e.onToggleOpen(!open)};let x=y;return r.keyEntities&&(x=((S=r.keyEntities[p])===null||S===void 0?void 0:S.node)||{}),f("span",{key:p,onMousedown:$},[e.tagRender({label:g,value:p,disabled:m,closable:h,onClose:b,option:x})])}function c(p){const{disabled:g,label:m,value:h,option:b}=p,y=!e.disabled&&!g;let S=m;if(typeof e.maxTagTextLength=="number"&&(typeof m=="string"||typeof m=="number")){const x=String(S);x.length>e.maxTagTextLength&&(S=`${x.slice(0,e.maxTagTextLength)}...`)}const $=x=>{var C;x&&x.stopPropagation(),(C=e.onRemove)===null||C===void 0||C.call(e,p)};return typeof e.tagRender=="function"?u(h,S,g,y,$,b):s(m,S,g,y,$)}function d(p){const{maxTagPlaceholder:g=h=>`+ ${h.length} ...`}=e,m=typeof g=="function"?g(p):g;return s(m,m,!1)}return()=>{const{id:p,prefixCls:g,values:m,open:h,inputRef:b,placeholder:y,disabled:S,autofocus:$,autocomplete:x,activeDescendantId:C,tabindex:O,onInputChange:w,onInputPaste:M,onInputKeyDown:I,onInputMouseDown:_,onInputCompositionStart:D,onInputCompositionEnd:F}=e,z=f("div",{class:`${a.value}-search`,style:{width:n.value+"px"},key:"input"},[f(U2,{inputRef:b,open:h,prefixCls:g,id:p,inputElement:null,disabled:S,autofocus:$,autocomplete:x,editable:i.value,activeDescendantId:C,value:l.value,onKeydown:I,onMousedown:_,onChange:w,onPaste:M,onCompositionstart:D,onCompositionend:F,tabindex:O,attrs:dr(e,!0),onFocus:()=>o.value=!0,onBlur:()=>o.value=!1},null),f("span",{ref:t,class:`${a.value}-search-mirror`,"aria-hidden":!0},[l.value,go(" ")])]),H=f(xa,{prefixCls:`${a.value}-overflow`,data:m,renderItem:c,renderRest:d,suffix:z,itemKey:"key",maxCount:e.maxTagCount,key:"overflow"},null);return f(nt,null,[H,!m.length&&!l.value&&f("span",{class:`${a.value}-placeholder`},[y])])}}}),A_=D_,R_={inputElement:V.any,id:String,prefixCls:String,values:V.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:V.any,placeholder:V.any,disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:V.oneOfType([V.number,V.string]),activeValue:String,backfill:{type:Boolean,default:void 0},optionLabelRender:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},Hv=J({name:"SingleSelector",setup(e){const t=Y(!1),n=P(()=>e.mode==="combobox"),o=P(()=>n.value||e.showSearch),r=P(()=>{let u=e.searchValue||"";return n.value&&e.activeValue&&!t.value&&(u=e.activeValue),u}),a=Dc();ue([n,()=>e.activeValue],()=>{n.value&&(t.value=!1)},{immediate:!0});const l=P(()=>e.mode!=="combobox"&&!e.open&&!e.showSearch?!1:!!r.value),i=P(()=>{const u=e.values[0];return u&&(typeof u.label=="string"||typeof u.label=="number")?u.label.toString():void 0}),s=()=>{if(e.values[0])return null;const u=l.value?{visibility:"hidden"}:void 0;return f("span",{class:`${e.prefixCls}-selection-placeholder`,style:u},[e.placeholder])};return()=>{var u,c,d,p;const{inputElement:g,prefixCls:m,id:h,values:b,inputRef:y,disabled:S,autofocus:$,autocomplete:x,activeDescendantId:C,open:O,tabindex:w,optionLabelRender:M,onInputKeyDown:I,onInputMouseDown:_,onInputChange:D,onInputPaste:F,onInputCompositionStart:z,onInputCompositionEnd:H}=e,T=b[0];let A=null;if(T&&a.customSlots){const R=(u=T.key)!==null&&u!==void 0?u:T.value,E=((c=a.keyEntities[R])===null||c===void 0?void 0:c.node)||{};A=a.customSlots[(d=E.slots)===null||d===void 0?void 0:d.title]||a.customSlots.title||T.label,typeof A=="function"&&(A=A(E))}else A=M&&T?M(T.option):T==null?void 0:T.label;return f(nt,null,[f("span",{class:`${m}-selection-search`},[f(U2,{inputRef:y,prefixCls:m,id:h,open:O,inputElement:g,disabled:S,autofocus:$,autocomplete:x,editable:o.value,activeDescendantId:C,value:r.value,onKeydown:I,onMousedown:_,onChange:R=>{t.value=!0,D(R)},onPaste:F,onCompositionstart:z,onCompositionend:H,tabindex:w,attrs:dr(e,!0)},null)]),!n.value&&T&&!l.value&&f("span",{class:`${m}-selection-item`,title:i.value},[f(nt,{key:(p=T.key)!==null&&p!==void 0?p:T.value},[A])]),s()])}}});Hv.props=R_;Hv.inheritAttrs=!1;const N_=Hv;function k_(e){return![$e.ESC,$e.SHIFT,$e.BACKSPACE,$e.TAB,$e.WIN_KEY,$e.ALT,$e.META,$e.WIN_KEY_RIGHT,$e.CTRL,$e.SEMICOLON,$e.EQUALS,$e.CAPS_LOCK,$e.CONTEXT_MENU,$e.F1,$e.F2,$e.F3,$e.F4,$e.F5,$e.F6,$e.F7,$e.F8,$e.F9,$e.F10,$e.F11,$e.F12].includes(e)}function J2(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=null,n;Je(()=>{clearTimeout(n)});function o(r){(r||t===null)&&(t=r),clearTimeout(n),n=setTimeout(()=>{t=null},e)}return[()=>t,o]}function Ul(){const e=t=>{e.current=t};return e}const B_=J({name:"Selector",inheritAttrs:!1,props:{id:String,prefixCls:String,showSearch:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},values:V.array,multiple:{type:Boolean,default:void 0},mode:String,searchValue:String,activeValue:String,inputElement:V.any,autofocus:{type:Boolean,default:void 0},activeDescendantId:String,tabindex:V.oneOfType([V.number,V.string]),disabled:{type:Boolean,default:void 0},placeholder:V.any,removeIcon:V.any,maxTagCount:V.oneOfType([V.number,V.string]),maxTagTextLength:Number,maxTagPlaceholder:V.any,tagRender:Function,optionLabelRender:Function,tokenWithEnter:{type:Boolean,default:void 0},choiceTransitionName:String,onToggleOpen:{type:Function},onSearch:Function,onSearchSubmit:Function,onRemove:Function,onInputKeyDown:{type:Function},domRef:Function},setup(e,t){let{expose:n}=t;const o=Ul();let r=!1;const[a,l]=J2(0),i=y=>{const{which:S}=y;(S===$e.UP||S===$e.DOWN)&&y.preventDefault(),e.onInputKeyDown&&e.onInputKeyDown(y),S===$e.ENTER&&e.mode==="tags"&&!r&&!e.open&&e.onSearchSubmit(y.target.value),k_(S)&&e.onToggleOpen(!0)},s=()=>{l(!0)};let u=null;const c=y=>{e.onSearch(y,!0,r)!==!1&&e.onToggleOpen(!0)},d=()=>{r=!0},p=y=>{r=!1,e.mode!=="combobox"&&c(y.target.value)},g=y=>{let{target:{value:S}}=y;if(e.tokenWithEnter&&u&&/[\r\n]/.test(u)){const $=u.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");S=S.replace($,u)}u=null,c(S)},m=y=>{const{clipboardData:S}=y;u=S.getData("text")},h=y=>{let{target:S}=y;S!==o.current&&(document.body.style.msTouchAction!==void 0?setTimeout(()=>{o.current.focus()}):o.current.focus())},b=y=>{const S=a();y.target!==o.current&&!S&&y.preventDefault(),(e.mode!=="combobox"&&(!e.showSearch||!S)||!e.open)&&(e.open&&e.onSearch("",!0,!1),e.onToggleOpen())};return n({focus:()=>{o.current.focus()},blur:()=>{o.current.blur()}}),()=>{const{prefixCls:y,domRef:S,mode:$}=e,x={inputRef:o,onInputKeyDown:i,onInputMouseDown:s,onInputChange:g,onInputPaste:m,onInputCompositionStart:d,onInputCompositionEnd:p},C=$==="multiple"||$==="tags"?f(A_,N(N({},e),x),null):f(N_,N(N({},e),x),null);return f("div",{ref:S,class:`${y}-selector`,onClick:h,onMousedown:b},[C])}}}),F_=B_;function L_(e,t,n){function o(r){var a,l,i;let s=r.target;s.shadowRoot&&r.composed&&(s=r.composedPath()[0]||s);const u=[(a=e[0])===null||a===void 0?void 0:a.value,(i=(l=e[1])===null||l===void 0?void 0:l.value)===null||i===void 0?void 0:i.getPopupElement()];t.value&&u.every(c=>c&&!c.contains(s)&&c!==s)&&n(!1)}Ve(()=>{window.addEventListener("mousedown",o)}),Je(()=>{window.removeEventListener("mousedown",o)})}function z_(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10;const t=Y(!1);let n;const o=()=>{clearTimeout(n)};return Ve(()=>{o()}),[t,(a,l)=>{o(),n=setTimeout(()=>{t.value=a,l&&l()},e)},o]}const ex=Symbol("BaseSelectContextKey");function H_(e){return Ke(ex,e)}function ci(){return Xe(ex,{})}const jv=()=>{if(typeof navigator>"u"||typeof window>"u")return!1;const e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};function Ns(e){if(!B$(e))return vt(e);const t=new Proxy({},{get(n,o,r){return Reflect.get(e.value,o,r)},set(n,o,r){return e.value[o]=r,!0},deleteProperty(n,o){return Reflect.deleteProperty(e.value,o)},has(n,o){return Reflect.has(e.value,o)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return vt(t)}var j_=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({prefixCls:String,id:String,omitDomProps:Array,displayValues:Array,onDisplayValuesChange:Function,activeValue:String,activeDescendantId:String,onActiveValueChange:Function,searchValue:String,onSearch:Function,onSearchSplit:Function,maxLength:Number,OptionList:V.any,emptyOptions:Boolean}),Ac=()=>({showSearch:{type:Boolean,default:void 0},tagRender:{type:Function},optionLabelRender:{type:Function},direction:{type:String},tabindex:Number,autofocus:Boolean,notFoundContent:V.any,placeholder:V.any,onClear:Function,choiceTransitionName:String,mode:String,disabled:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},onDropdownVisibleChange:{type:Function},getInputElement:{type:Function},getRawInputElement:{type:Function},maxTagTextLength:Number,maxTagCount:{type:[String,Number]},maxTagPlaceholder:V.any,tokenSeparators:{type:Array},allowClear:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:void 0},inputIcon:V.any,clearIcon:V.any,removeIcon:V.any,animation:String,transitionName:String,dropdownStyle:{type:Object},dropdownClassName:String,dropdownMatchSelectWidth:{type:[Boolean,Number],default:void 0},dropdownRender:{type:Function},dropdownAlign:Object,placement:{type:String},getPopupContainer:{type:Function},showAction:{type:Array},onBlur:{type:Function},onFocus:{type:Function},onKeyup:Function,onKeydown:Function,onMousedown:Function,onPopupScroll:Function,onInputKeyDown:Function,onMouseenter:Function,onMouseleave:Function,onClick:Function}),K_=()=>v(v({},W_()),Ac());function tx(e){return e==="tags"||e==="multiple"}const Vv=J({compatConfig:{MODE:3},name:"BaseSelect",inheritAttrs:!1,props:rt(K_(),{showAction:[],notFoundContent:"Not Found"}),setup(e,t){let{attrs:n,expose:o,slots:r}=t;const a=P(()=>tx(e.mode)),l=P(()=>e.showSearch!==void 0?e.showSearch:a.value||e.mode==="combobox"),i=Y(!1);Ve(()=>{i.value=jv()});const s=Dc(),u=Y(null),c=Ul(),d=Y(null),p=Y(null),g=Y(null),m=Z(!1),[h,b,y]=z_();o({focus:()=>{var W;(W=p.value)===null||W===void 0||W.focus()},blur:()=>{var W;(W=p.value)===null||W===void 0||W.blur()},scrollTo:W=>{var q;return(q=g.value)===null||q===void 0?void 0:q.scrollTo(W)}});const x=P(()=>{var W;if(e.mode!=="combobox")return e.searchValue;const q=(W=e.displayValues[0])===null||W===void 0?void 0:W.value;return typeof q=="string"||typeof q=="number"?String(q):""}),C=e.open!==void 0?e.open:e.defaultOpen,O=Y(C),w=Y(C),M=W=>{O.value=e.open!==void 0?e.open:W,w.value=O.value};ue(()=>e.open,()=>{M(e.open)});const I=P(()=>!e.notFoundContent&&e.emptyOptions);Le(()=>{w.value=O.value,(e.disabled||I.value&&w.value&&e.mode==="combobox")&&(w.value=!1)});const _=P(()=>I.value?!1:w.value),D=W=>{const q=W!==void 0?W:!w.value;w.value!==q&&!e.disabled&&(M(q),e.onDropdownVisibleChange&&e.onDropdownVisibleChange(q))},F=P(()=>(e.tokenSeparators||[]).some(W=>[` +`,`\r +`].includes(W))),z=(W,q,re)=>{var le,ye;let me=!0,ce=W;(le=e.onActiveValueChange)===null||le===void 0||le.call(e,null);const se=re?null:dE(W,e.tokenSeparators);return e.mode!=="combobox"&&se&&(ce="",(ye=e.onSearchSplit)===null||ye===void 0||ye.call(e,se),D(!1),me=!1),e.onSearch&&x.value!==ce&&e.onSearch(ce,{source:q?"typing":"effect"}),me},H=W=>{var q;!W||!W.trim()||(q=e.onSearch)===null||q===void 0||q.call(e,W,{source:"submit"})};ue(w,()=>{!w.value&&!a.value&&e.mode!=="combobox"&&z("",!1,!1)},{immediate:!0,flush:"post"}),ue(()=>e.disabled,()=>{O.value&&e.disabled&&M(!1),e.disabled&&!m.value&&b(!1)},{immediate:!0});const[T,A]=J2(),R=function(W){var q;const re=T(),{which:le}=W;if(le===$e.ENTER&&(e.mode!=="combobox"&&W.preventDefault(),w.value||D(!0)),A(!!x.value),le===$e.BACKSPACE&&!re&&a.value&&!x.value&&e.displayValues.length){const se=[...e.displayValues];let ie=null;for(let fe=se.length-1;fe>=0;fe-=1){const Se=se[fe];if(!Se.disabled){se.splice(fe,1),ie=Se;break}}ie&&e.onDisplayValuesChange(se,{type:"remove",values:[ie]})}for(var ye=arguments.length,me=new Array(ye>1?ye-1:0),ce=1;ce1?q-1:0),le=1;le{const q=e.displayValues.filter(re=>re!==W);e.onDisplayValuesChange(q,{type:"remove",values:[W]})},B=Y(!1),L=function(){b(!0),e.disabled||(e.onFocus&&!B.value&&e.onFocus(...arguments),e.showAction&&e.showAction.includes("focus")&&D(!0)),B.value=!0},j=Z(!1),K=function(){if(j.value||(m.value=!0,b(!1,()=>{B.value=!1,m.value=!1,D(!1)}),e.disabled))return;const W=x.value;W&&(e.mode==="tags"?e.onSearch(W,{source:"submit"}):e.mode==="multiple"&&e.onSearch("",{source:"blur"})),e.onBlur&&e.onBlur(...arguments)},G=()=>{j.value=!0},U=()=>{j.value=!1};Ke("VCSelectContainerEvent",{focus:L,blur:K});const X=[];Ve(()=>{X.forEach(W=>clearTimeout(W)),X.splice(0,X.length)}),Je(()=>{X.forEach(W=>clearTimeout(W)),X.splice(0,X.length)});const ee=function(W){var q,re;const{target:le}=W,ye=(q=d.value)===null||q===void 0?void 0:q.getPopupElement();if(ye&&ye.contains(le)){const ie=setTimeout(()=>{var fe;const Se=X.indexOf(ie);Se!==-1&&X.splice(Se,1),y(),!i.value&&!ye.contains(document.activeElement)&&((fe=p.value)===null||fe===void 0||fe.focus())});X.push(ie)}for(var me=arguments.length,ce=new Array(me>1?me-1:0),se=1;se{};return Ve(()=>{ue(_,()=>{var W;if(_.value){const q=Math.ceil((W=u.value)===null||W===void 0?void 0:W.offsetWidth);oe.value!==q&&!Number.isNaN(q)&&(oe.value=q)}},{immediate:!0,flush:"post"})}),L_([u,d],_,D),H_(Ns(v(v({},Rr(e)),{open:w,triggerOpen:_,showSearch:l,multiple:a,toggleOpen:D}))),()=>{const W=v(v({},e),n),{prefixCls:q,id:re,open:le,defaultOpen:ye,mode:me,showSearch:ce,searchValue:se,onSearch:ie,allowClear:fe,clearIcon:Se,showArrow:Ie,inputIcon:ge,disabled:Oe,loading:we,getInputElement:ae,getPopupContainer:ne,placement:pe,animation:xe,transitionName:Te,dropdownStyle:ke,dropdownClassName:ve,dropdownMatchSelectWidth:he,dropdownRender:be,dropdownAlign:Me,showAction:Ae,direction:_e,tokenSeparators:Re,tagRender:Ye,optionLabelRender:tt,onPopupScroll:at,onDropdownVisibleChange:it,onFocus:ct,onBlur:Et,onKeyup:Dt,onKeydown:Bt,onMousedown:Pt,onClear:Qt,omitDomProps:sn,getRawInputElement:Rn,displayValues:Yn,onDisplayValuesChange:cn,emptyOptions:vr,activeDescendantId:Pe,activeValue:He,OptionList:Fe}=W,gt=j_(W,["prefixCls","id","open","defaultOpen","mode","showSearch","searchValue","onSearch","allowClear","clearIcon","showArrow","inputIcon","disabled","loading","getInputElement","getPopupContainer","placement","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","showAction","direction","tokenSeparators","tagRender","optionLabelRender","onPopupScroll","onDropdownVisibleChange","onFocus","onBlur","onKeyup","onKeydown","onMousedown","onClear","omitDomProps","getRawInputElement","displayValues","onDisplayValuesChange","emptyOptions","activeDescendantId","activeValue","OptionList"]),At=me==="combobox"&&ae&&ae()||null,It=typeof Rn=="function"&&Rn(),un=v({},gt);let Gt;It&&(Gt=Qn=>{D(Qn)}),V_.forEach(Qn=>{delete un[Qn]}),sn==null||sn.forEach(Qn=>{delete un[Qn]});const so=Ie!==void 0?Ie:we||!a.value&&me!=="combobox";let yn;so&&(yn=f(Rs,{class:te(`${q}-arrow`,{[`${q}-arrow-loading`]:we}),customizeIcon:ge,customizeIconProps:{loading:we,searchValue:x.value,open:w.value,focused:h.value,showSearch:l.value}},null));let Nn;const St=()=>{Qt==null||Qt(),cn([],{type:"clear",values:Yn}),z("",!1,!1)};!Oe&&fe&&(Yn.length||x.value)&&(Nn=f(Rs,{class:`${q}-clear`,onMousedown:St,customizeIcon:Se},{default:()=>[go("×")]}));const qn=f(Fe,{ref:g},v(v({},s.customSlots),{option:r.option})),kn=te(q,n.class,{[`${q}-focused`]:h.value,[`${q}-multiple`]:a.value,[`${q}-single`]:!a.value,[`${q}-allow-clear`]:fe,[`${q}-show-arrow`]:so,[`${q}-disabled`]:Oe,[`${q}-loading`]:we,[`${q}-open`]:w.value,[`${q}-customize-input`]:At,[`${q}-show-search`]:l.value}),Xo=f(v_,{ref:d,disabled:Oe,prefixCls:q,visible:_.value,popupElement:qn,containerWidth:oe.value,animation:xe,transitionName:Te,dropdownStyle:ke,dropdownClassName:ve,direction:_e,dropdownMatchSelectWidth:he,dropdownRender:be,dropdownAlign:Me,placement:pe,getPopupContainer:ne,empty:vr,getTriggerDOMNode:()=>c.current,onPopupVisibleChange:Gt,onPopupMouseEnter:Q,onPopupFocusin:G,onPopupFocusout:U},{default:()=>It?kt(It)&&ut(It,{ref:c},!1,!0):f(F_,N(N({},e),{},{domRef:c,prefixCls:q,inputElement:At,ref:p,id:re,showSearch:l.value,mode:me,activeDescendantId:Pe,tagRender:Ye,optionLabelRender:tt,values:Yn,open:w.value,onToggleOpen:D,activeValue:He,searchValue:x.value,onSearch:z,onSearchSubmit:H,onRemove:k,tokenWithEnter:F.value}),null)});let Uo;return It?Uo=Xo:Uo=f("div",N(N({},un),{},{class:kn,ref:u,onMousedown:ee,onKeydown:R,onKeyup:E}),[h.value&&!w.value&&f("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},[`${Yn.map(Qn=>{let{label:na,value:Zn}=Qn;return["number","string"].includes(typeof na)?na:Zn}).join(", ")}`]),Xo,yn,Nn]),Uo}}}),Rc=(e,t)=>{let{height:n,offset:o,prefixCls:r,onInnerResize:a}=e,{slots:l}=t;var i;let s={},u={display:"flex",flexDirection:"column"};return o!==void 0&&(s={height:`${n}px`,position:"relative",overflow:"hidden"},u=v(v({},u),{transform:`translateY(${o}px)`,position:"absolute",left:0,right:0,top:0})),f("div",{style:s},[f(ho,{onResize:c=>{let{offsetHeight:d}=c;d&&a&&a()}},{default:()=>[f("div",{style:u,class:te({[`${r}-holder-inner`]:r})},[(i=l.default)===null||i===void 0?void 0:i.call(l)])]})])};Rc.displayName="Filter";Rc.inheritAttrs=!1;Rc.props={prefixCls:String,height:Number,offset:Number,onInnerResize:Function};const G_=Rc,nx=(e,t)=>{let{setRef:n}=e,{slots:o}=t;var r;const a=mt((r=o.default)===null||r===void 0?void 0:r.call(o));return a&&a.length?ko(a[0],{ref:n}):a};nx.props={setRef:{type:Function,default:()=>{}}};const X_=nx,U_=20;function xb(e){return"touches"in e?e.touches[0].pageY:e.pageY}const Y_=J({compatConfig:{MODE:3},name:"ScrollBar",inheritAttrs:!1,props:{prefixCls:String,scrollTop:Number,scrollHeight:Number,height:Number,count:Number,onScroll:{type:Function},onStartMove:{type:Function},onStopMove:{type:Function}},setup(){return{moveRaf:null,scrollbarRef:Ul(),thumbRef:Ul(),visibleTimeout:null,state:vt({dragging:!1,pageY:null,startTop:null,visible:!1})}},watch:{scrollTop:{handler(){this.delayHidden()},flush:"post"}},mounted(){var e,t;(e=this.scrollbarRef.current)===null||e===void 0||e.addEventListener("touchstart",this.onScrollbarTouchStart,zt?{passive:!1}:!1),(t=this.thumbRef.current)===null||t===void 0||t.addEventListener("touchstart",this.onMouseDown,zt?{passive:!1}:!1)},beforeUnmount(){this.removeEvents(),clearTimeout(this.visibleTimeout)},methods:{delayHidden(){clearTimeout(this.visibleTimeout),this.state.visible=!0,this.visibleTimeout=setTimeout(()=>{this.state.visible=!1},2e3)},onScrollbarTouchStart(e){e.preventDefault()},onContainerMouseDown(e){e.stopPropagation(),e.preventDefault()},patchEvents(){window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseup",this.onMouseUp),this.thumbRef.current.addEventListener("touchmove",this.onMouseMove,zt?{passive:!1}:!1),this.thumbRef.current.addEventListener("touchend",this.onMouseUp)},removeEvents(){window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp),this.scrollbarRef.current.removeEventListener("touchstart",this.onScrollbarTouchStart,zt?{passive:!1}:!1),this.thumbRef.current&&(this.thumbRef.current.removeEventListener("touchstart",this.onMouseDown,zt?{passive:!1}:!1),this.thumbRef.current.removeEventListener("touchmove",this.onMouseMove,zt?{passive:!1}:!1),this.thumbRef.current.removeEventListener("touchend",this.onMouseUp)),We.cancel(this.moveRaf)},onMouseDown(e){const{onStartMove:t}=this.$props;v(this.state,{dragging:!0,pageY:xb(e),startTop:this.getTop()}),t(),this.patchEvents(),e.stopPropagation(),e.preventDefault()},onMouseMove(e){const{dragging:t,pageY:n,startTop:o}=this.state,{onScroll:r}=this.$props;if(We.cancel(this.moveRaf),t){const a=xb(e)-n,l=o+a,i=this.getEnableScrollRange(),s=this.getEnableHeightRange(),u=s?l/s:0,c=Math.ceil(u*i);this.moveRaf=We(()=>{r(c)})}},onMouseUp(){const{onStopMove:e}=this.$props;this.state.dragging=!1,e(),this.removeEvents()},getSpinHeight(){const{height:e,scrollHeight:t}=this.$props;let n=e/t*100;return n=Math.max(n,U_),n=Math.min(n,e/2),Math.floor(n)},getEnableScrollRange(){const{scrollHeight:e,height:t}=this.$props;return e-t||0},getEnableHeightRange(){const{height:e}=this.$props,t=this.getSpinHeight();return e-t||0},getTop(){const{scrollTop:e}=this.$props,t=this.getEnableScrollRange(),n=this.getEnableHeightRange();return e===0||t===0?0:e/t*n},showScroll(){const{height:e,scrollHeight:t}=this.$props;return t>e}},render(){const{dragging:e,visible:t}=this.state,{prefixCls:n}=this.$props,o=this.getSpinHeight()+"px",r=this.getTop()+"px",a=this.showScroll(),l=a&&t;return f("div",{ref:this.scrollbarRef,class:te(`${n}-scrollbar`,{[`${n}-scrollbar-show`]:a}),style:{width:"8px",top:0,bottom:0,right:0,position:"absolute",display:l?void 0:"none"},onMousedown:this.onContainerMouseDown,onMousemove:this.delayHidden},[f("div",{ref:this.thumbRef,class:te(`${n}-scrollbar-thumb`,{[`${n}-scrollbar-thumb-moving`]:e}),style:{width:"100%",height:o,top:r,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:"99px",cursor:"pointer",userSelect:"none"},onMousedown:this.onMouseDown},null)])}});function q_(e,t,n,o){const r=new Map,a=new Map,l=Z(Symbol("update"));ue(e,()=>{l.value=Symbol("update")});let i;function s(){We.cancel(i)}function u(){s(),i=We(()=>{r.forEach((d,p)=>{if(d&&d.offsetParent){const{offsetHeight:g}=d;a.get(p)!==g&&(l.value=Symbol("update"),a.set(p,d.offsetHeight))}})})}function c(d,p){const g=t(d),m=r.get(g);p?(r.set(g,p.$el||p),u()):r.delete(g),!m!=!p&&(p?n==null||n(d):o==null||o(d))}return An(()=>{s()}),[c,u,a,l]}function Q_(e,t,n,o,r,a,l,i){let s;return u=>{if(u==null){i();return}We.cancel(s);const c=t.value,d=o.itemHeight;if(typeof u=="number")l(u);else if(u&&typeof u=="object"){let p;const{align:g}=u;"index"in u?{index:p}=u:p=c.findIndex(b=>r(b)===u.key);const{offset:m=0}=u,h=(b,y)=>{if(b<0||!e.value)return;const S=e.value.clientHeight;let $=!1,x=y;if(S){const C=y||g;let O=0,w=0,M=0;const I=Math.min(c.length,p);for(let F=0;F<=I;F+=1){const z=r(c[F]);w=O;const H=n.get(z);M=w+(H===void 0?d:H),O=M,F===p&&H===void 0&&($=!0)}const _=e.value.scrollTop;let D=null;switch(C){case"top":D=w-m;break;case"bottom":D=M-S+m;break;default:{const F=_+S;w<_?x="top":M>F&&(x="bottom")}}D!==null&&D!==_&&l(D)}s=We(()=>{$&&a(),h(b-1,x)},2)};h(5)}}}const Z_=typeof navigator=="object"&&/Firefox/i.test(navigator.userAgent),ox=(e,t)=>{let n=!1,o=null;function r(){clearTimeout(o),n=!0,o=setTimeout(()=>{n=!1},50)}return function(a){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const i=a<0&&e.value||a>0&&t.value;return l&&i?(clearTimeout(o),n=!1):(!i||n)&&r(),!n&&i}};function J_(e,t,n,o){let r=0,a=null,l=null,i=!1;const s=ox(t,n);function u(d){if(!e.value)return;We.cancel(a);const{deltaY:p}=d;r+=p,l=p,!s(p)&&(Z_||d.preventDefault(),a=We(()=>{o(r*(i?10:1)),r=0}))}function c(d){e.value&&(i=d.detail===l)}return[u,c]}const eD=14/15;function tD(e,t,n){let o=!1,r=0,a=null,l=null;const i=()=>{a&&(a.removeEventListener("touchmove",s),a.removeEventListener("touchend",u))},s=p=>{if(o){const g=Math.ceil(p.touches[0].pageY);let m=r-g;r=g,n(m)&&p.preventDefault(),clearInterval(l),l=setInterval(()=>{m*=eD,(!n(m,!0)||Math.abs(m)<=.1)&&clearInterval(l)},16)}},u=()=>{o=!1,i()},c=p=>{i(),p.touches.length===1&&!o&&(o=!0,r=Math.ceil(p.touches[0].pageY),a=p.target,a.addEventListener("touchmove",s,{passive:!1}),a.addEventListener("touchend",u))},d=()=>{};Ve(()=>{document.addEventListener("touchmove",d,{passive:!1}),ue(e,p=>{t.value.removeEventListener("touchstart",c),i(),clearInterval(l),p&&t.value.addEventListener("touchstart",c,{passive:!1})},{immediate:!0})}),Je(()=>{document.removeEventListener("touchmove",d)})}var nD=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{const u=t+s,c=r(i,u,{}),d=l(i);return f(X_,{key:d,setRef:p=>o(i,p)},{default:()=>[c]})})}const lD=J({compatConfig:{MODE:3},name:"List",inheritAttrs:!1,props:{prefixCls:String,data:V.array,height:Number,itemHeight:Number,fullHeight:{type:Boolean,default:void 0},itemKey:{type:[String,Number,Function],required:!0},component:{type:[String,Object]},virtual:{type:Boolean,default:void 0},children:Function,onScroll:Function,onMousedown:Function,onMouseenter:Function,onVisibleChange:Function},setup(e,t){let{expose:n}=t;const o=P(()=>{const{height:k,itemHeight:B,virtual:L}=e;return!!(L!==!1&&k&&B)}),r=P(()=>{const{height:k,itemHeight:B,data:L}=e;return o.value&&L&&B*L.length>k}),a=vt({scrollTop:0,scrollMoving:!1}),l=P(()=>e.data||oD),i=Y([]);ue(l,()=>{i.value=_t(l.value).slice()},{immediate:!0});const s=Y(k=>{});ue(()=>e.itemKey,k=>{typeof k=="function"?s.value=k:s.value=B=>B==null?void 0:B[k]},{immediate:!0});const u=Y(),c=Y(),d=Y(),p=k=>s.value(k),g={getKey:p};function m(k){let B;typeof k=="function"?B=k(a.scrollTop):B=k;const L=O(B);u.value&&(u.value.scrollTop=L),a.scrollTop=L}const[h,b,y,S]=q_(i,p,null,null),$=vt({scrollHeight:void 0,start:0,end:0,offset:void 0}),x=Y(0);Ve(()=>{lt(()=>{var k;x.value=((k=c.value)===null||k===void 0?void 0:k.offsetHeight)||0})}),ao(()=>{lt(()=>{var k;x.value=((k=c.value)===null||k===void 0?void 0:k.offsetHeight)||0})}),ue([o,i],()=>{o.value||v($,{scrollHeight:void 0,start:0,end:i.value.length-1,offset:void 0})},{immediate:!0}),ue([o,i,x,r],()=>{o.value&&!r.value&&v($,{scrollHeight:x.value,start:0,end:i.value.length-1,offset:void 0}),u.value&&(a.scrollTop=u.value.scrollTop)},{immediate:!0}),ue([r,o,()=>a.scrollTop,i,S,()=>e.height,x],()=>{if(!o.value||!r.value)return;let k=0,B,L,j;const K=i.value.length,G=i.value,U=a.scrollTop,{itemHeight:X,height:ee}=e,oe=U+ee;for(let Q=0;Q=U&&(B=Q,L=k),j===void 0&&le>oe&&(j=Q),k=le}B===void 0&&(B=0,L=0,j=Math.ceil(ee/X)),j===void 0&&(j=K-1),j=Math.min(j+1,K),v($,{scrollHeight:k,start:B,end:j,offset:L})},{immediate:!0});const C=P(()=>$.scrollHeight-e.height);function O(k){let B=k;return Number.isNaN(C.value)||(B=Math.min(B,C.value)),B=Math.max(B,0),B}const w=P(()=>a.scrollTop<=0),M=P(()=>a.scrollTop>=C.value),I=ox(w,M);function _(k){m(k)}function D(k){var B;const{scrollTop:L}=k.currentTarget;L!==a.scrollTop&&m(L),(B=e.onScroll)===null||B===void 0||B.call(e,k)}const[F,z]=J_(o,w,M,k=>{m(B=>B+k)});tD(o,u,(k,B)=>I(k,B)?!1:(F({preventDefault(){},deltaY:k}),!0));function H(k){o.value&&k.preventDefault()}const T=()=>{u.value&&(u.value.removeEventListener("wheel",F,zt?{passive:!1}:!1),u.value.removeEventListener("DOMMouseScroll",z),u.value.removeEventListener("MozMousePixelScroll",H))};Le(()=>{lt(()=>{u.value&&(T(),u.value.addEventListener("wheel",F,zt?{passive:!1}:!1),u.value.addEventListener("DOMMouseScroll",z),u.value.addEventListener("MozMousePixelScroll",H))})}),Je(()=>{T()});const A=Q_(u,i,y,e,p,b,m,()=>{var k;(k=d.value)===null||k===void 0||k.delayHidden()});n({scrollTo:A});const R=P(()=>{let k=null;return e.height&&(k=v({[e.fullHeight?"height":"maxHeight"]:e.height+"px"},rD),o.value&&(k.overflowY="hidden",a.scrollMoving&&(k.pointerEvents="none"))),k});return ue([()=>$.start,()=>$.end,i],()=>{if(e.onVisibleChange){const k=i.value.slice($.start,$.end+1);e.onVisibleChange(k,i.value)}},{flush:"post"}),{state:a,mergedData:i,componentStyle:R,onFallbackScroll:D,onScrollBar:_,componentRef:u,useVirtual:o,calRes:$,collectHeight:b,setInstance:h,sharedConfig:g,scrollBarRef:d,fillerInnerRef:c,delayHideScrollBar:()=>{var k;(k=d.value)===null||k===void 0||k.delayHidden()}}},render(){const e=v(v({},this.$props),this.$attrs),{prefixCls:t="rc-virtual-list",height:n,itemHeight:o,fullHeight:r,data:a,itemKey:l,virtual:i,component:s="div",onScroll:u,children:c=this.$slots.default,style:d,class:p}=e,g=nD(e,["prefixCls","height","itemHeight","fullHeight","data","itemKey","virtual","component","onScroll","children","style","class"]),m=te(t,p),{scrollTop:h}=this.state,{scrollHeight:b,offset:y,start:S,end:$}=this.calRes,{componentStyle:x,onFallbackScroll:C,onScrollBar:O,useVirtual:w,collectHeight:M,sharedConfig:I,setInstance:_,mergedData:D,delayHideScrollBar:F}=this;return f("div",N({style:v(v({},d),{position:"relative"}),class:m},g),[f(s,{class:`${t}-holder`,style:x,ref:"componentRef",onScroll:C,onMouseenter:F},{default:()=>[f(G_,{prefixCls:t,height:b,offset:y,onInnerResize:M,ref:"fillerInnerRef"},{default:()=>aD(D,S,$,_,c,I)})]}),w&&f(Y_,{ref:"scrollBarRef",prefixCls:t,scrollTop:h,height:n,scrollHeight:b,count:D.length,onScroll:O,onStartMove:()=>{this.state.scrollMoving=!0},onStopMove:()=>{this.state.scrollMoving=!1}},null)])}}),rx=lD;function Wv(e,t,n){const o=Z(e());return ue(t,(r,a)=>{n?n(r,a)&&(o.value=e()):o.value=e()}),o}function iD(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}const ax=Symbol("SelectContextKey");function sD(e){return Ke(ax,e)}function cD(){return Xe(ax,{})}var uD=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r`${r.prefixCls}-item`),i=Wv(()=>a.flattenOptions,[()=>r.open,()=>a.flattenOptions],C=>C[0]),s=Ul(),u=C=>{C.preventDefault()},c=C=>{s.current&&s.current.scrollTo(typeof C=="number"?{index:C}:C)},d=function(C){let O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const w=i.value.length;for(let M=0;M1&&arguments[1]!==void 0?arguments[1]:!1;p.activeIndex=C;const w={source:O?"keyboard":"mouse"},M=i.value[C];if(!M){a.onActiveValue(null,-1,w);return}a.onActiveValue(M.value,C,w)};ue([()=>i.value.length,()=>r.searchValue],()=>{g(a.defaultActiveFirstOption!==!1?d(0):-1)},{immediate:!0});const m=C=>a.rawValues.has(C)&&r.mode!=="combobox";ue([()=>r.open,()=>r.searchValue],()=>{if(!r.multiple&&r.open&&a.rawValues.size===1){const C=Array.from(a.rawValues)[0],O=_t(i.value).findIndex(w=>{let{data:M}=w;return M[a.fieldNames.value]===C});O!==-1&&(g(O),lt(()=>{c(O)}))}r.open&<(()=>{var C;(C=s.current)===null||C===void 0||C.scrollTo(void 0)})},{immediate:!0,flush:"post"});const h=C=>{C!==void 0&&a.onSelect(C,{selected:!a.rawValues.has(C)}),r.multiple||r.toggleOpen(!1)},b=C=>typeof C.label=="function"?C.label():C.label;function y(C){const O=i.value[C];if(!O)return null;const w=O.data||{},{value:M}=w,{group:I}=O,_=dr(w,!0),D=b(O);return O?f("div",N(N({"aria-label":typeof D=="string"&&!I?D:null},_),{},{key:C,role:I?"presentation":"option",id:`${r.id}_list_${C}`,"aria-selected":m(M)}),[M]):null}return n({onKeydown:C=>{const{which:O,ctrlKey:w}=C;switch(O){case $e.N:case $e.P:case $e.UP:case $e.DOWN:{let M=0;if(O===$e.UP?M=-1:O===$e.DOWN?M=1:iD()&&w&&(O===$e.N?M=1:O===$e.P&&(M=-1)),M!==0){const I=d(p.activeIndex+M,M);c(I),g(I,!0)}break}case $e.ENTER:{const M=i.value[p.activeIndex];M&&!M.data.disabled?h(M.value):h(void 0),r.open&&C.preventDefault();break}case $e.ESC:r.toggleOpen(!1),r.open&&C.stopPropagation()}},onKeyup:()=>{},scrollTo:C=>{c(C)}}),()=>{const{id:C,notFoundContent:O,onPopupScroll:w}=r,{menuItemSelectedIcon:M,fieldNames:I,virtual:_,listHeight:D,listItemHeight:F}=a,z=o.option,{activeIndex:H}=p,T=Object.keys(I).map(A=>I[A]);return i.value.length===0?f("div",{role:"listbox",id:`${C}_list`,class:`${l.value}-empty`,onMousedown:u},[O]):f(nt,null,[f("div",{role:"listbox",id:`${C}_list`,style:{height:0,width:0,overflow:"hidden"}},[y(H-1),y(H),y(H+1)]),f(rx,{itemKey:"key",ref:s,data:i.value,height:D,itemHeight:F,fullHeight:!1,onMousedown:u,onScroll:w,virtual:_},{default:(A,R)=>{var E;const{group:k,groupOption:B,data:L,value:j}=A,{key:K}=L,G=typeof A.label=="function"?A.label():A.label;if(k){const Se=(E=L.title)!==null&&E!==void 0?E:wb(G)&&G;return f("div",{class:te(l.value,`${l.value}-group`),title:Se},[z?z(L):G!==void 0?G:K])}const{disabled:U,title:X,children:ee,style:oe,class:Q,className:W}=L,q=uD(L,["disabled","title","children","style","class","className"]),re=qe(q,T),le=m(j),ye=`${l.value}-option`,me=te(l.value,ye,Q,W,{[`${ye}-grouped`]:B,[`${ye}-active`]:H===R&&!U,[`${ye}-disabled`]:U,[`${ye}-selected`]:le}),ce=b(A),se=!M||typeof M=="function"||le,ie=typeof ce=="number"?ce:ce||j;let fe=wb(ie)?ie.toString():void 0;return X!==void 0&&(fe=X),f("div",N(N({},re),{},{"aria-selected":le,class:me,title:fe,onMousemove:Se=>{q.onMousemove&&q.onMousemove(Se),!(H===R||U)&&g(R)},onClick:Se=>{U||h(j),q.onClick&&q.onClick(Se)},style:oe}),[f("div",{class:`${ye}-content`},[z?z(L):ie]),kt(M)||le,se&&f(Rs,{class:`${l.value}-option-state`,customizeIcon:M,customizeIconProps:{isSelected:le}},{default:()=>[le?"✓":null]})])}})])}}}),fD=dD;var pD=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r1&&arguments[1]!==void 0?arguments[1]:!1;return mt(e).map((o,r)=>{var a;if(!kt(o)||!o.type)return null;const{type:{isSelectOptGroup:l},key:i,children:s,props:u}=o;if(t||!l)return vD(o);const c=s&&s.default?s.default():void 0,d=(u==null?void 0:u.label)||((a=s.label)===null||a===void 0?void 0:a.call(s))||i;return v(v({key:`__RC_SELECT_GRP__${i===null?r:String(i)}__`},u),{label:d,options:lx(c||[])})}).filter(o=>o)}function gD(e,t,n){const o=Y(),r=Y(),a=Y(),l=Y([]);return ue([e,t],()=>{e.value?l.value=_t(e.value).slice():l.value=lx(t.value)},{immediate:!0,deep:!0}),Le(()=>{const i=l.value,s=new Map,u=new Map,c=n.value;function d(p){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(let m=0;m0&&arguments[0]!==void 0?arguments[0]:Z("");const t=`rc_select_${mD()}`;return e.value||t}function ix(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function Qu(e,t){return ix(e).join("").toUpperCase().includes(t)}const bD=(e,t,n,o,r)=>P(()=>{const a=n.value,l=r==null?void 0:r.value,i=o==null?void 0:o.value;if(!a||i===!1)return e.value;const{options:s,label:u,value:c}=t.value,d=[],p=typeof i=="function",g=a.toUpperCase(),m=p?i:(b,y)=>l?Qu(y[l],g):y[s]?Qu(y[u!=="children"?u:"label"],g):Qu(y[c],g),h=p?b=>Tf(b):b=>b;return e.value.forEach(b=>{if(b[s]){if(m(a,h(b)))d.push(b);else{const S=b[s].filter($=>m(a,h($)));S.length&&d.push(v(v({},b),{[s]:S}))}return}m(a,h(b))&&d.push(b)}),d}),yD=(e,t)=>{const n=Y({values:new Map,options:new Map});return[P(()=>{const{values:a,options:l}=n.value,i=e.value.map(c=>{var d;return c.label===void 0?v(v({},c),{label:(d=a.get(c.value))===null||d===void 0?void 0:d.label}):c}),s=new Map,u=new Map;return i.forEach(c=>{s.set(c.value,c),u.set(c.value,t.value.get(c.value)||l.get(c.value))}),n.value.values=s,n.value.options=u,i}),a=>t.value.get(a)||n.value.options.get(a)]};function Ot(e,t){const{defaultValue:n,value:o=Z()}=t||{};let r=typeof e=="function"?e():e;o.value!==void 0&&(r=Lt(o)),n!==void 0&&(r=typeof n=="function"?n():n);const a=Z(r),l=Z(r);Le(()=>{let s=o.value!==void 0?o.value:a.value;t.postState&&(s=t.postState(s)),l.value=s});function i(s){const u=l.value;a.value=s,_t(l.value)!==s&&t.onChange&&t.onChange(s,u)}return ue(o,()=>{a.value=o.value}),[l,i]}function pt(e){const t=typeof e=="function"?e():e,n=Z(t);function o(r){n.value=r}return[n,o]}const SD=["inputValue"];function sx(){return v(v({},Ac()),{prefixCls:String,id:String,backfill:{type:Boolean,default:void 0},fieldNames:Object,inputValue:String,searchValue:String,onSearch:Function,autoClearSearchValue:{type:Boolean,default:void 0},onSelect:Function,onDeselect:Function,filterOption:{type:[Boolean,Function],default:void 0},filterSort:Function,optionFilterProp:String,optionLabelProp:String,options:Array,defaultActiveFirstOption:{type:Boolean,default:void 0},virtual:{type:Boolean,default:void 0},listHeight:Number,listItemHeight:Number,menuItemSelectedIcon:V.any,mode:String,labelInValue:{type:Boolean,default:void 0},value:V.any,defaultValue:V.any,onChange:Function,children:Array})}function $D(e){return!e||typeof e!="object"}const CD=J({compatConfig:{MODE:3},name:"VcSelect",inheritAttrs:!1,props:rt(sx(),{prefixCls:"vc-select",autoClearSearchValue:!0,listHeight:200,listItemHeight:20,dropdownMatchSelectWidth:!0}),setup(e,t){let{expose:n,attrs:o,slots:r}=t;const a=Kv(Be(e,"id")),l=P(()=>tx(e.mode)),i=P(()=>!!(!e.options&&e.children)),s=P(()=>e.filterOption===void 0&&e.mode==="combobox"?!1:e.filterOption),u=P(()=>R2(e.fieldNames,i.value)),[c,d]=Ot("",{value:P(()=>e.searchValue!==void 0?e.searchValue:e.inputValue),postState:Q=>Q||""}),p=gD(Be(e,"options"),Be(e,"children"),u),{valueOptions:g,labelOptions:m,options:h}=p,b=Q=>ix(Q).map(q=>{var re,le;let ye,me,ce,se;$D(q)?ye=q:(ce=q.key,me=q.label,ye=(re=q.value)!==null&&re!==void 0?re:ce);const ie=g.value.get(ye);return ie&&(me===void 0&&(me=ie==null?void 0:ie[e.optionLabelProp||u.value.label]),ce===void 0&&(ce=(le=ie==null?void 0:ie.key)!==null&&le!==void 0?le:ye),se=ie==null?void 0:ie.disabled),{label:me,value:ye,key:ce,disabled:se,option:ie}}),[y,S]=Ot(e.defaultValue,{value:Be(e,"value")}),$=P(()=>{var Q;const W=b(y.value);return e.mode==="combobox"&&!(!((Q=W[0])===null||Q===void 0)&&Q.value)?[]:W}),[x,C]=yD($,g),O=P(()=>{if(!e.mode&&x.value.length===1){const Q=x.value[0];if(Q.value===null&&(Q.label===null||Q.label===void 0))return[]}return x.value.map(Q=>{var W;return v(v({},Q),{label:(W=typeof Q.label=="function"?Q.label():Q.label)!==null&&W!==void 0?W:Q.value})})}),w=P(()=>new Set(x.value.map(Q=>Q.value)));Le(()=>{var Q;if(e.mode==="combobox"){const W=(Q=x.value[0])===null||Q===void 0?void 0:Q.value;W!=null&&d(String(W))}},{flush:"post"});const M=(Q,W)=>{const q=W??Q;return{[u.value.value]:Q,[u.value.label]:q}},I=Y();Le(()=>{if(e.mode!=="tags"){I.value=h.value;return}const Q=h.value.slice(),W=q=>g.value.has(q);[...x.value].sort((q,re)=>q.value{const re=q.value;W(re)||Q.push(M(re,q.label))}),I.value=Q});const _=bD(I,u,c,s,Be(e,"optionFilterProp")),D=P(()=>e.mode!=="tags"||!c.value||_.value.some(Q=>Q[e.optionFilterProp||"value"]===c.value)?_.value:[M(c.value),..._.value]),F=P(()=>e.filterSort?[...D.value].sort((Q,W)=>e.filterSort(Q,W)):D.value),z=P(()=>uE(F.value,{fieldNames:u.value,childrenAsData:i.value})),H=Q=>{const W=b(Q);if(S(W),e.onChange&&(W.length!==x.value.length||W.some((q,re)=>{var le;return((le=x.value[re])===null||le===void 0?void 0:le.value)!==(q==null?void 0:q.value)}))){const q=e.labelInValue?W.map(le=>v(v({},le),{originLabel:le.label,label:typeof le.label=="function"?le.label():le.label})):W.map(le=>le.value),re=W.map(le=>Tf(C(le.value)));e.onChange(l.value?q:q[0],l.value?re:re[0])}},[T,A]=pt(null),[R,E]=pt(0),k=P(()=>e.defaultActiveFirstOption!==void 0?e.defaultActiveFirstOption:e.mode!=="combobox"),B=function(Q,W){let{source:q="keyboard"}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E(W),e.backfill&&e.mode==="combobox"&&Q!==null&&q==="keyboard"&&A(String(Q))},L=(Q,W)=>{const q=()=>{var re;const le=C(Q),ye=le==null?void 0:le[u.value.label];return[e.labelInValue?{label:typeof ye=="function"?ye():ye,originLabel:ye,value:Q,key:(re=le==null?void 0:le.key)!==null&&re!==void 0?re:Q}:Q,Tf(le)]};if(W&&e.onSelect){const[re,le]=q();e.onSelect(re,le)}else if(!W&&e.onDeselect){const[re,le]=q();e.onDeselect(re,le)}},j=(Q,W)=>{let q;const re=l.value?W.selected:!0;re?q=l.value?[...x.value,Q]:[Q]:q=x.value.filter(le=>le.value!==Q),H(q),L(Q,re),e.mode==="combobox"?A(""):(!l.value||e.autoClearSearchValue)&&(d(""),A(""))},K=(Q,W)=>{H(Q),(W.type==="remove"||W.type==="clear")&&W.values.forEach(q=>{L(q.value,!1)})},G=(Q,W)=>{var q;if(d(Q),A(null),W.source==="submit"){const re=(Q||"").trim();if(re){const le=Array.from(new Set([...w.value,re]));H(le),L(re,!0),d("")}return}W.source!=="blur"&&(e.mode==="combobox"&&H(Q),(q=e.onSearch)===null||q===void 0||q.call(e,Q))},U=Q=>{let W=Q;e.mode!=="tags"&&(W=Q.map(re=>{const le=m.value.get(re);return le==null?void 0:le.value}).filter(re=>re!==void 0));const q=Array.from(new Set([...w.value,...W]));H(q),q.forEach(re=>{L(re,!0)})},X=P(()=>e.virtual!==!1&&e.dropdownMatchSelectWidth!==!1);sD(Ns(v(v({},p),{flattenOptions:z,onActiveValue:B,defaultActiveFirstOption:k,onSelect:j,menuItemSelectedIcon:Be(e,"menuItemSelectedIcon"),rawValues:w,fieldNames:u,virtual:X,listHeight:Be(e,"listHeight"),listItemHeight:Be(e,"listItemHeight"),childrenAsData:i})));const ee=Z();n({focus(){var Q;(Q=ee.value)===null||Q===void 0||Q.focus()},blur(){var Q;(Q=ee.value)===null||Q===void 0||Q.blur()},scrollTo(Q){var W;(W=ee.value)===null||W===void 0||W.scrollTo(Q)}});const oe=P(()=>qe(e,["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"]));return()=>f(Vv,N(N(N({},oe.value),o),{},{id:a,prefixCls:e.prefixCls,ref:ee,omitDomProps:SD,mode:e.mode,displayValues:O.value,onDisplayValuesChange:K,searchValue:c.value,onSearch:G,onSearchSplit:U,dropdownMatchSelectWidth:e.dropdownMatchSelectWidth,OptionList:fD,emptyOptions:!z.value.length,activeValue:T.value,activeDescendantId:`${a}_list_${R.value}`}),r)}}),Gv=()=>null;Gv.isSelectOption=!0;Gv.displayName="ASelectOption";const xD=Gv,Xv=()=>null;Xv.isSelectOptGroup=!0;Xv.displayName="ASelectOptGroup";const wD=Xv;var OD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};const PD=OD;var ID=Symbol("iconContext"),Uv=function(){return Xe(ID,{prefixCls:Z("anticon"),rootClassName:Z(""),csp:Z()})};function Yv(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function TD(e,t){return e&&e.contains?e.contains(t):!1}var Pb="data-vc-order",MD="vc-icon-key",Rf=new Map;function cx(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):MD}function qv(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function ED(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function ux(e){return Array.from((Rf.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function dx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Yv())return null;var n=t.csp,o=t.prepend,r=document.createElement("style");r.setAttribute(Pb,ED(o)),n&&n.nonce&&(r.nonce=n.nonce),r.innerHTML=e;var a=qv(t),l=a.firstChild;if(o){if(o==="queue"){var i=ux(a).filter(function(s){return["prepend","prependQueue"].includes(s.getAttribute(Pb))});if(i.length)return a.insertBefore(r,i[i.length-1].nextSibling),r}a.insertBefore(r,l)}else a.appendChild(r);return r}function _D(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=qv(t);return ux(n).find(function(o){return o.getAttribute(cx(t))===e})}function DD(e,t){var n=Rf.get(e);if(!n||!TD(document,n)){var o=dx("",t),r=o.parentNode;Rf.set(e,r),e.removeChild(o)}}function AD(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=qv(n);DD(o,n);var r=_D(t,n);if(r)return n.csp&&n.csp.nonce&&r.nonce!==n.csp.nonce&&(r.nonce=n.csp.nonce),r.innerHTML!==e&&(r.innerHTML=e),r;var a=dx(e,n);return a.setAttribute(cx(n),t),a}function Ib(e){for(var t=1;t * { + line-height: 1; +} + +.anticon svg { + display: inline-block; +} + +.anticon::before { + display: none; +} + +.anticon .anticon-icon { + display: block; +} + +.anticon[tabindex] { + cursor: pointer; +} + +.anticon-spin::before, +.anticon-spin { + display: inline-block; + -webkit-animation: loadingCircle 1s infinite linear; + animation: loadingCircle 1s infinite linear; +} + +@-webkit-keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} + +@keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +`;function vx(e){return e&&e.getRootNode&&e.getRootNode()}function BD(e){return Yv()?vx(e)instanceof ShadowRoot:!1}function FD(e){return BD(e)?vx(e):null}var LD=function(){var t=Uv(),n=t.prefixCls,o=t.csp,r=Dn(),a=kD;n&&(a=a.replace(/anticon/g,n.value)),lt(function(){if(Yv()){var l=r.vnode.el,i=FD(l);AD(a,"@ant-design-vue-icons",{prepend:!0,csp:o.value,attachTo:i})}})},zD=["icon","primaryColor","secondaryColor"];function HD(e,t){if(e==null)return{};var n=jD(e,t),o,r;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}function jD(e,t){if(e==null)return{};var n={},o=Object.keys(e),r,a;for(a=0;a=0)&&(n[r]=e[r]);return n}function as(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,o=new Array(t);ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}function aA(e,t){if(e==null)return{};var n={},o=Object.keys(e),r,a;for(a=0;a=0)&&(n[r]=e[r]);return n}gx(vM.primary);var Ja=function(t,n){var o,r=_b({},t,n.attrs),a=r.class,l=r.icon,i=r.spin,s=r.rotate,u=r.tabindex,c=r.twoToneColor,d=r.onClick,p=rA(r,ZD),g=Uv(),m=g.prefixCls,h=g.rootClassName,b=(o={},gl(o,h.value,!!h.value),gl(o,m.value,!0),gl(o,"".concat(m.value,"-").concat(l.name),!!l.name),gl(o,"".concat(m.value,"-spin"),!!i||l.name==="loading"),o),y=u;y===void 0&&d&&(y=-1);var S=s?{msTransform:"rotate(".concat(s,"deg)"),transform:"rotate(".concat(s,"deg)")}:void 0,$=px(c),x=JD($,2),C=x[0],O=x[1];return f("span",_b({role:"img","aria-label":l.name},p,{onClick:d,class:[b,a],tabindex:y}),[f(Qv,{icon:l,primaryColor:C,secondaryColor:O,style:S},null),f(hx,null,null)])};Ja.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:[String,Array]};Ja.displayName="AntdIcon";Ja.inheritAttrs=!1;Ja.getTwoToneColor=QD;Ja.setTwoToneColor=gx;const De=Ja;function Db(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};const{loading:n,multiple:o,prefixCls:r,hasFeedback:a,feedbackIcon:l,showArrow:i}=e,s=e.suffixIcon||t.suffixIcon&&t.suffixIcon(),u=e.clearIcon||t.clearIcon&&t.clearIcon(),c=e.menuItemSelectedIcon||t.menuItemSelectedIcon&&t.menuItemSelectedIcon(),d=e.removeIcon||t.removeIcon&&t.removeIcon(),p=u??f(bn,null,null),g=y=>f(nt,null,[i!==!1&&y,a&&l]);let m=null;if(s!==void 0)m=g(s);else if(n)m=g(f(Un,{spin:!0},null));else{const y=`${r}-suffix`;m=S=>{let{open:$,showSearch:x}=S;return g($&&x?f(ag,{class:y},null):f(Nc,{class:y},null))}}let h=null;c!==void 0?h=c:o?h=f(tg,null,null):h=null;let b=null;return d!==void 0?b=d:b=f(io,null,null),{clearIcon:p,suffixIcon:m,itemIcon:h,removeIcon:b}}function ig(e){const t=Symbol("contextKey");return{useProvide:(r,a)=>{const l=vt({});return Ke(t,l),Le(()=>{v(l,r,a||{})}),l},useInject:()=>Xe(t,e)||{}}}const ks=Symbol("ContextProps"),Bs=Symbol("InternalContextProps"),CA=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:P(()=>!0);const n=Z(new Map),o=(a,l)=>{n.value.set(a,l),n.value=new Map(n.value)},r=a=>{n.value.delete(a),n.value=new Map(n.value)};Dn(),ue([t,n],()=>{}),Ke(ks,e),Ke(Bs,{addFormItemField:o,removeFormItemField:r})},kf={id:P(()=>{}),onFieldBlur:()=>{},onFieldChange:()=>{},clearValidate:()=>{}},Bf={addFormItemField:()=>{},removeFormItemField:()=>{}},Ht=()=>{const e=Xe(Bs,Bf),t=Symbol("FormItemFieldKey"),n=Dn();return e.addFormItemField(t,n.type),Je(()=>{e.removeFormItemField(t)}),Ke(Bs,Bf),Ke(ks,kf),Xe(ks,kf)},Ff=J({compatConfig:{MODE:3},name:"AFormItemRest",setup(e,t){let{slots:n}=t;return Ke(Bs,Bf),Ke(ks,kf),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}),ln=ig({}),Fs=J({name:"NoFormStatus",setup(e,t){let{slots:n}=t;return ln.useProvide({}),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}});function Tn(e,t,n){return te({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const Vo=(e,t)=>t||e,xA=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},wA=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-space-item`]:{"&:empty":{display:"none"}}}}},mx=Qe("Space",e=>[wA(e),xA(e)]),OA=()=>({compactSize:String,compactDirection:V.oneOf(vn("horizontal","vertical")).def("horizontal"),isFirstItem:Ce(),isLastItem:Ce()}),kc=ig(null),fr=(e,t)=>{const n=kc.useInject(),o=P(()=>{if(!n||xC(n))return"";const{compactDirection:r,isFirstItem:a,isLastItem:l}=n,i=r==="vertical"?"-vertical-":"-";return te({[`${e.value}-compact${i}item`]:!0,[`${e.value}-compact${i}first-item`]:a,[`${e.value}-compact${i}last-item`]:l,[`${e.value}-compact${i}item-rtl`]:t.value==="rtl"})});return{compactSize:P(()=>n==null?void 0:n.compactSize),compactDirection:P(()=>n==null?void 0:n.compactDirection),compactItemClassnames:o}},Yl=J({name:"NoCompactStyle",setup(e,t){let{slots:n}=t;return kc.useProvide(null),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}),PA=()=>({prefixCls:String,size:{type:String},direction:V.oneOf(vn("horizontal","vertical")).def("horizontal"),align:V.oneOf(vn("start","end","center","baseline")),block:{type:Boolean,default:void 0}}),IA=J({name:"CompactItem",props:OA(),setup(e,t){let{slots:n}=t;return kc.useProvide(e),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}),Lf=J({name:"ASpaceCompact",inheritAttrs:!1,props:PA(),setup(e,t){let{attrs:n,slots:o}=t;const{prefixCls:r,direction:a}=Ee("space-compact",e),l=kc.useInject(),[i,s]=mx(r),u=P(()=>te(r.value,s.value,{[`${r.value}-rtl`]:a.value==="rtl",[`${r.value}-block`]:e.block,[`${r.value}-vertical`]:e.direction==="vertical"}));return()=>{var c;const d=mt(((c=o.default)===null||c===void 0?void 0:c.call(o))||[]);return d.length===0?null:i(f("div",N(N({},n),{},{class:[u.value,n.class]}),[d.map((p,g)=>{var m;const h=p&&p.key||`${r.value}-item-${g}`,b=!l||xC(l);return f(IA,{key:h,compactSize:(m=e.size)!==null&&m!==void 0?m:"middle",compactDirection:e.direction,isFirstItem:g===0&&(b||(l==null?void 0:l.isFirstItem)),isLastItem:g===d.length-1&&(b||(l==null?void 0:l.isLastItem))},{default:()=>[p]})})]))}}}),TA=e=>({animationDuration:e,animationFillMode:"both"}),MA=e=>({animationDuration:e,animationFillMode:"both"}),Bc=function(e,t,n,o){const a=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` + ${a}${e}-enter, + ${a}${e}-appear + `]:v(v({},TA(o)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:v(v({},MA(o)),{animationPlayState:"paused"}),[` + ${a}${e}-enter${e}-enter-active, + ${a}${e}-appear${e}-appear-active + `]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},EA=new Ue("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),_A=new Ue("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),bx=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,o=`${n}-fade`,r=t?"&":"";return[Bc(o,EA,_A,e.motionDurationMid,t),{[` + ${r}${o}-enter, + ${r}${o}-appear + `]:{opacity:0,animationTimingFunction:"linear"},[`${r}${o}-leave`]:{animationTimingFunction:"linear"}}]},DA=new Ue("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),AA=new Ue("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),RA=new Ue("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),NA=new Ue("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),kA=new Ue("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),BA=new Ue("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),FA=new Ue("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),LA=new Ue("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),zA={"move-up":{inKeyframes:FA,outKeyframes:LA},"move-down":{inKeyframes:DA,outKeyframes:AA},"move-left":{inKeyframes:RA,outKeyframes:NA},"move-right":{inKeyframes:kA,outKeyframes:BA}},za=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:a}=zA[t];return[Bc(o,r,a,e.motionDurationMid),{[` + ${o}-enter, + ${o}-appear + `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Fc=new Ue("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Lc=new Ue("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),zc=new Ue("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Hc=new Ue("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),HA=new Ue("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),jA=new Ue("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),VA=new Ue("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),WA=new Ue("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),KA={"slide-up":{inKeyframes:Fc,outKeyframes:Lc},"slide-down":{inKeyframes:zc,outKeyframes:Hc},"slide-left":{inKeyframes:HA,outKeyframes:jA},"slide-right":{inKeyframes:VA,outKeyframes:WA}},yo=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:a}=KA[t];return[Bc(o,r,a,e.motionDurationMid),{[` + ${o}-enter, + ${o}-appear + `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},sg=new Ue("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),GA=new Ue("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Fb=new Ue("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Lb=new Ue("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),XA=new Ue("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),UA=new Ue("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),YA=new Ue("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),qA=new Ue("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),QA=new Ue("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),ZA=new Ue("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),JA=new Ue("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),eR=new Ue("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),tR={zoom:{inKeyframes:sg,outKeyframes:GA},"zoom-big":{inKeyframes:Fb,outKeyframes:Lb},"zoom-big-fast":{inKeyframes:Fb,outKeyframes:Lb},"zoom-left":{inKeyframes:YA,outKeyframes:qA},"zoom-right":{inKeyframes:QA,outKeyframes:ZA},"zoom-up":{inKeyframes:XA,outKeyframes:UA},"zoom-down":{inKeyframes:JA,outKeyframes:eR}},el=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:a}=tR[t];return[Bc(o,r,a,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[` + ${o}-enter, + ${o}-appear + `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},nR=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, + opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, + opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),jc=nR,zb=e=>{const{controlPaddingHorizontal:t}=e;return{position:"relative",display:"block",minHeight:e.controlHeight,padding:`${(e.controlHeight-e.fontSize*e.lineHeight)/2}px ${t}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,boxSizing:"border-box"}},oR=e=>{const{antCls:t,componentCls:n}=e,o=`${n}-item`;return[{[`${n}-dropdown`]:v(v({},et(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[` + &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-bottomLeft, + &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-bottomLeft + `]:{animationName:Fc},[` + &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topLeft, + &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topLeft + `]:{animationName:zc},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-bottomLeft`]:{animationName:Lc},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topLeft`]:{animationName:Hc},"&-hidden":{display:"none"},"&-empty":{color:e.colorTextDisabled},[`${o}-empty`]:v(v({},zb(e)),{color:e.colorTextDisabled}),[`${o}`]:v(v({},zb(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":v({flex:"auto"},mn),"&-state":{flex:"none"},[`&-active:not(${o}-option-disabled)`]:{backgroundColor:e.controlItemBgHover},[`&-selected:not(${o}-option-disabled)`]:{color:e.colorText,fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive,[`${o}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${o}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},yo(e,"slide-up"),yo(e,"slide-down"),za(e,"move-up"),za(e,"move-down")]},ra=2;function yx(e){let{controlHeightSM:t,controlHeight:n,lineWidth:o}=e;const r=(n-t)/2-o,a=Math.ceil(r/2);return[r,a]}function Zu(e,t){const{componentCls:n,iconCls:o}=e,r=`${n}-selection-overflow`,a=e.controlHeightSM,[l]=yx(e),i=t?`${n}-${t}`:"";return{[`${n}-multiple${i}`]:{fontSize:e.fontSize,[r]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${l-ra}px ${ra*2}px`,borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.colorBgContainerDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${ra}px 0`,lineHeight:`${a}px`,content:'"\\a0"'}},[` + &${n}-show-arrow ${n}-selector, + &${n}-allow-clear ${n}-selector + `]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${n}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:a,marginTop:ra,marginBottom:ra,lineHeight:`${a-e.lineWidth*2}px`,background:e.colorFillSecondary,border:`${e.lineWidth}px solid ${e.colorSplit}`,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,userSelect:"none",marginInlineEnd:ra*2,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${n}-disabled&`]:{color:e.colorTextDisabled,borderColor:e.colorBorder,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":v(v({},ai()),{display:"inline-block",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${o}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${r}-item + ${r}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-l,"\n &-input,\n &-mirror\n ":{height:a,fontFamily:e.fontFamily,lineHeight:`${a}px`,transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}function rR(e){const{componentCls:t}=e,n=ze(e,{controlHeight:e.controlHeightSM,controlHeightSM:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),[,o]=yx(e);return[Zu(e),Zu(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInlineStart:e.controlPaddingHorizontalSM-e.lineWidth,insetInlineEnd:"auto"},[`${t}-selection-search`]:{marginInlineStart:o}}},Zu(ze(e,{fontSize:e.fontSizeLG,controlHeight:e.controlHeightLG,controlHeightSM:e.controlHeight,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),"lg")]}function Ju(e,t){const{componentCls:n,inputPaddingHorizontalBase:o,borderRadius:r}=e,a=e.controlHeight-e.lineWidth*2,l=Math.ceil(e.fontSize*1.25),i=t?`${n}-${t}`:"";return{[`${n}-single${i}`]:{fontSize:e.fontSize,[`${n}-selector`]:v(v({},et(e)),{display:"flex",borderRadius:r,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:o,insetInlineEnd:o,bottom:0,"&-input":{width:"100%"}},[` + ${n}-selection-item, + ${n}-selection-placeholder + `]:{padding:0,lineHeight:`${a}px`,transition:`all ${e.motionDurationSlow}`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${a}px`}},[`${n}-selection-item`]:{position:"relative",userSelect:"none"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:after`,`${n}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` + &${n}-show-arrow ${n}-selection-item, + &${n}-show-arrow ${n}-selection-placeholder + `]:{paddingInlineEnd:l},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:e.controlHeight,padding:`0 ${o}px`,[`${n}-selection-search-input`]:{height:a},"&:after":{lineHeight:`${a}px`}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${o}px`,"&:after":{display:"none"}}}}}}}function aR(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return[Ju(e),Ju(ze(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${n}px`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:n+e.fontSize*1.5},[` + &${t}-show-arrow ${t}-selection-item, + &${t}-show-arrow ${t}-selection-placeholder + `]:{paddingInlineEnd:e.fontSize*1.5}}}},Ju(ze(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}function lR(e,t,n){const{focusElCls:o,focus:r,borderElCls:a}=n,l=a?"> *":"",i=["hover",r?"focus":null,"active"].filter(Boolean).map(s=>`&:${s} ${l}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":v(v({[i]:{zIndex:2}},o?{[`&${o}`]:{zIndex:2}}:{}),{[`&[disabled] ${l}`]:{zIndex:0}})}}function iR(e,t,n){const{borderElCls:o}=n,r=o?`> ${o}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${r}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function tl(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,o=`${n}-compact`;return{[o]:v(v({},lR(e,o,t)),iR(n,o,t))}}const sR=e=>{const{componentCls:t}=e;return{position:"relative",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.colorBgContainerDisabled},input:{cursor:"not-allowed"}}}},ed=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:o,borderHoverColor:r,outlineColor:a,antCls:l}=t,i=n?{[`${o}-selector`]:{borderColor:r}}:{};return{[e]:{[`&:not(${o}-disabled):not(${o}-customize-input):not(${l}-pagination-size-changer)`]:v(v({},i),{[`${o}-focused& ${o}-selector`]:{borderColor:r,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${a}`,borderInlineEndWidth:`${t.controlLineWidth}px !important`,outline:0},[`&:hover ${o}-selector`]:{borderColor:r,borderInlineEndWidth:`${t.controlLineWidth}px !important`}})}}},cR=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},uR=e=>{const{componentCls:t,inputPaddingHorizontalBase:n,iconCls:o}=e;return{[t]:v(v({},et(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${t}-customize-input) ${t}-selector`]:v(v({},sR(e)),cR(e)),[`${t}-selection-item`]:v({flex:1,fontWeight:"normal"},mn),[`${t}-selection-placeholder`]:v(v({},mn),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${t}-arrow`]:v(v({},ai()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${t}-suffix)`]:{pointerEvents:"auto"}},[`${t}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.colorBgContainer,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${t}-clear`]:{opacity:1}}}),[`${t}-has-feedback`]:{[`${t}-clear`]:{insetInlineEnd:n+e.fontSize+e.paddingXXS}}}},dR=e=>{const{componentCls:t}=e;return[{[t]:{[`&-borderless ${t}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${t}-in-form-item`]:{width:"100%"}}},uR(e),aR(e),rR(e),oR(e),{[`${t}-rtl`]:{direction:"rtl"}},ed(t,ze(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),ed(`${t}-status-error`,ze(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),ed(`${t}-status-warning`,ze(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),tl(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},cg=Qe("Select",(e,t)=>{let{rootPrefixCls:n}=t;const o=ze(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1});return[dR(o)]},e=>({zIndexPopup:e.zIndexPopupBase+50})),Vc=()=>v(v({},qe(sx(),["inputIcon","mode","getInputElement","getRawInputElement","backfill"])),{value:Ge([Array,Object,String,Number]),defaultValue:Ge([Array,Object,String,Number]),notFoundContent:V.any,suffixIcon:V.any,itemIcon:V.any,size:je(),mode:je(),bordered:Ce(!0),transitionName:String,choiceTransitionName:je(""),popupClassName:String,dropdownClassName:String,placement:je(),status:je(),"onUpdate:value":de()}),Hb="SECRET_COMBOBOX_MODE_DO_NOT_USE",po=J({compatConfig:{MODE:3},name:"ASelect",Option:xD,OptGroup:wD,inheritAttrs:!1,props:rt(Vc(),{listHeight:256,listItemHeight:24}),SECRET_COMBOBOX_MODE_DO_NOT_USE:Hb,slots:Object,setup(e,t){let{attrs:n,emit:o,slots:r,expose:a}=t;const l=Z(),i=Ht(),s=ln.useInject(),u=P(()=>Vo(s.status,e.status)),c=()=>{var j;(j=l.value)===null||j===void 0||j.focus()},d=()=>{var j;(j=l.value)===null||j===void 0||j.blur()},p=j=>{var K;(K=l.value)===null||K===void 0||K.scrollTo(j)},g=P(()=>{const{mode:j}=e;if(j!=="combobox")return j===Hb?"combobox":j}),{prefixCls:m,direction:h,configProvider:b,renderEmpty:y,size:S,getPrefixCls:$,getPopupContainer:x,disabled:C,select:O}=Ee("select",e),{compactSize:w,compactItemClassnames:M}=fr(m,h),I=P(()=>w.value||S.value),_=gn(),D=P(()=>{var j;return(j=C.value)!==null&&j!==void 0?j:_.value}),[F,z]=cg(m),H=P(()=>$()),T=P(()=>e.placement!==void 0?e.placement:h.value==="rtl"?"bottomRight":"bottomLeft"),A=P(()=>en(H.value,Fv(T.value),e.transitionName)),R=P(()=>te({[`${m.value}-lg`]:I.value==="large",[`${m.value}-sm`]:I.value==="small",[`${m.value}-rtl`]:h.value==="rtl",[`${m.value}-borderless`]:!e.bordered,[`${m.value}-in-form-item`]:s.isFormItemInput},Tn(m.value,u.value,s.hasFeedback),M.value,z.value)),E=function(){for(var j=arguments.length,K=new Array(j),G=0;G{o("blur",j),i.onFieldBlur()};a({blur:d,focus:c,scrollTo:p});const B=P(()=>g.value==="multiple"||g.value==="tags"),L=P(()=>e.showArrow!==void 0?e.showArrow:e.loading||!(B.value||g.value==="combobox"));return()=>{var j,K,G,U;const{notFoundContent:X,listHeight:ee=256,listItemHeight:oe=24,popupClassName:Q,dropdownClassName:W,virtual:q,dropdownMatchSelectWidth:re,id:le=i.id.value,placeholder:ye=(j=r.placeholder)===null||j===void 0?void 0:j.call(r),showArrow:me}=e,{hasFeedback:ce,feedbackIcon:se}=s;let ie;X!==void 0?ie=X:r.notFoundContent?ie=r.notFoundContent():g.value==="combobox"?ie=null:ie=(y==null?void 0:y("Select"))||f(Mv,{componentName:"Select"},null);const{suffixIcon:fe,itemIcon:Se,removeIcon:Ie,clearIcon:ge}=lg(v(v({},e),{multiple:B.value,prefixCls:m.value,hasFeedback:ce,feedbackIcon:se,showArrow:L.value}),r),Oe=qe(e,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","size","bordered","status"]),we=te(Q||W,{[`${m.value}-dropdown-${h.value}`]:h.value==="rtl"},z.value);return F(f(CD,N(N(N({ref:l,virtual:q,dropdownMatchSelectWidth:re},Oe),n),{},{showSearch:(K=e.showSearch)!==null&&K!==void 0?K:(G=O==null?void 0:O.value)===null||G===void 0?void 0:G.showSearch,placeholder:ye,listHeight:ee,listItemHeight:oe,mode:g.value,prefixCls:m.value,direction:h.value,inputIcon:fe,menuItemSelectedIcon:Se,removeIcon:Ie,clearIcon:ge,notFoundContent:ie,class:[R.value,n.class],getPopupContainer:x==null?void 0:x.value,dropdownClassName:we,onChange:E,onBlur:k,id:le,dropdownRender:Oe.dropdownRender||r.dropdownRender,transitionName:A.value,children:(U=r.default)===null||U===void 0?void 0:U.call(r),tagRender:e.tagRender||r.tagRender,optionLabelRender:r.optionLabel,maxTagPlaceholder:e.maxTagPlaceholder||r.maxTagPlaceholder,showArrow:ce||me,disabled:D.value}),{option:r.option}))}}});po.install=function(e){return e.component(po.name,po),e.component(po.Option.displayName,po.Option),e.component(po.OptGroup.displayName,po.OptGroup),e};po.Option;po.OptGroup;const Ha=po,ug=()=>null;ug.isSelectOption=!0;ug.displayName="AAutoCompleteOption";const wl=ug,dg=()=>null;dg.isSelectOptGroup=!0;dg.displayName="AAutoCompleteOptGroup";const td=dg;function fR(e){var t,n;return((t=e==null?void 0:e.type)===null||t===void 0?void 0:t.isSelectOption)||((n=e==null?void 0:e.type)===null||n===void 0?void 0:n.isSelectOptGroup)}const pR=()=>v(v({},qe(Vc(),["loading","mode","optionLabelProp","labelInValue"])),{dataSource:Array,dropdownMenuStyle:{type:Object,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},prefixCls:String,showSearch:{type:Boolean,default:void 0},transitionName:String,choiceTransitionName:{type:String,default:"zoom"},autofocus:{type:Boolean,default:void 0},backfill:{type:Boolean,default:void 0},filterOption:{type:[Boolean,Function],default:!1},defaultActiveFirstOption:{type:Boolean,default:!0},status:String}),nd=J({compatConfig:{MODE:3},name:"AAutoComplete",inheritAttrs:!1,props:pR(),slots:Object,setup(e,t){let{slots:n,attrs:o,expose:r}=t;yt(),yt(),yt(!e.dropdownClassName);const a=Z(),l=()=>{var c;const d=mt((c=n.default)===null||c===void 0?void 0:c.call(n));return d.length?d[0]:void 0};r({focus:()=>{var c;(c=a.value)===null||c===void 0||c.focus()},blur:()=>{var c;(c=a.value)===null||c===void 0||c.blur()}});const{prefixCls:u}=Ee("select",e);return()=>{var c,d,p;const{size:g,dataSource:m,notFoundContent:h=(c=n.notFoundContent)===null||c===void 0?void 0:c.call(n)}=e;let b;const{class:y}=o,S={[y]:!!y,[`${u.value}-lg`]:g==="large",[`${u.value}-sm`]:g==="small",[`${u.value}-show-search`]:!0,[`${u.value}-auto-complete`]:!0};if(e.options===void 0){const x=((d=n.dataSource)===null||d===void 0?void 0:d.call(n))||((p=n.options)===null||p===void 0?void 0:p.call(n))||[];x.length&&fR(x[0])?b=x:b=m?m.map(C=>{if(kt(C))return C;switch(typeof C){case"string":return f(wl,{key:C,value:C},{default:()=>[C]});case"object":return f(wl,{key:C.value,value:C.value},{default:()=>[C.text]});default:throw new Error("AutoComplete[dataSource] only supports type `string[] | Object[]`.")}}):[]}const $=qe(v(v(v({},e),o),{mode:Ha.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:l,notFoundContent:h,class:S,popupClassName:e.popupClassName||e.dropdownClassName,ref:a}),["dataSource","loading"]);return f(Ha,$,N({default:()=>[b]},qe(n,["default","dataSource","options"])))}}}),doe=v(nd,{Option:wl,OptGroup:td,install(e){return e.component(nd.name,nd),e.component(wl.displayName,wl),e.component(td.displayName,td),e}});var vR={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"};const gR=vR;function jb(e){for(var t=1;t({backgroundColor:e,border:`${o.lineWidth}px ${o.lineType} ${t}`,[`${r}-icon`]:{color:n}}),NR=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:o,marginSM:r,fontSize:a,fontSizeLG:l,lineHeight:i,borderRadiusLG:s,motionEaseInOutCirc:u,alertIconSizeLG:c,colorText:d,paddingContentVerticalSM:p,alertPaddingHorizontal:g,paddingMD:m,paddingContentHorizontalLG:h}=e;return{[t]:v(v({},et(e)),{position:"relative",display:"flex",alignItems:"center",padding:`${p}px ${g}px`,wordWrap:"break-word",borderRadius:s,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:o,lineHeight:0},"&-description":{display:"none",fontSize:a,lineHeight:i},"&-message":{color:d},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${u}, opacity ${n} ${u}, + padding-top ${n} ${u}, padding-bottom ${n} ${u}, + margin-bottom ${n} ${u}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",paddingInline:h,paddingBlock:m,[`${t}-icon`]:{marginInlineEnd:r,fontSize:c,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:o,color:d,fontSize:l},[`${t}-description`]:{display:"block"}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},kR=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:o,colorSuccessBg:r,colorWarning:a,colorWarningBorder:l,colorWarningBg:i,colorError:s,colorErrorBorder:u,colorErrorBg:c,colorInfo:d,colorInfoBorder:p,colorInfoBg:g}=e;return{[t]:{"&-success":Ri(r,o,n,e,t),"&-info":Ri(g,p,d,e,t),"&-warning":Ri(i,l,a,e,t),"&-error":v(v({},Ri(c,u,s,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},BR=e=>{const{componentCls:t,iconCls:n,motionDurationMid:o,marginXS:r,fontSizeIcon:a,colorIcon:l,colorIconHover:i}=e;return{[t]:{"&-action":{marginInlineStart:r},[`${t}-close-icon`]:{marginInlineStart:r,padding:0,overflow:"hidden",fontSize:a,lineHeight:`${a}px`,backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:l,transition:`color ${o}`,"&:hover":{color:i}}},"&-close-text":{color:l,transition:`color ${o}`,"&:hover":{color:i}}}}},FR=e=>[NR(e),kR(e),BR(e)],LR=Qe("Alert",e=>{const{fontSizeHeading3:t}=e,n=ze(e,{alertIconSizeLG:t,alertPaddingHorizontal:12});return[FR(n)]}),zR={success:Wo,info:nl,error:bn,warning:Ko},HR={success:Sx,info:Cx,error:xx,warning:$x},jR=vn("success","info","warning","error"),VR=()=>({type:V.oneOf(jR),closable:{type:Boolean,default:void 0},closeText:V.any,message:V.any,description:V.any,afterClose:Function,showIcon:{type:Boolean,default:void 0},prefixCls:String,banner:{type:Boolean,default:void 0},icon:V.any,closeIcon:V.any,onClose:Function}),WR=J({compatConfig:{MODE:3},name:"AAlert",inheritAttrs:!1,props:VR(),setup(e,t){let{slots:n,emit:o,attrs:r,expose:a}=t;const{prefixCls:l,direction:i}=Ee("alert",e),[s,u]=LR(l),c=Y(!1),d=Y(!1),p=Y(),g=y=>{y.preventDefault();const S=p.value;S.style.height=`${S.offsetHeight}px`,S.style.height=`${S.offsetHeight}px`,c.value=!0,o("close",y)},m=()=>{var y;c.value=!1,d.value=!0,(y=e.afterClose)===null||y===void 0||y.call(e)},h=P(()=>{const{type:y}=e;return y!==void 0?y:e.banner?"warning":"info"});a({animationEnd:m});const b=Y({});return()=>{var y,S,$,x,C,O,w,M,I,_;const{banner:D,closeIcon:F=(y=n.closeIcon)===null||y===void 0?void 0:y.call(n)}=e;let{closable:z,showIcon:H}=e;const T=(S=e.closeText)!==null&&S!==void 0?S:($=n.closeText)===null||$===void 0?void 0:$.call(n),A=(x=e.description)!==null&&x!==void 0?x:(C=n.description)===null||C===void 0?void 0:C.call(n),R=(O=e.message)!==null&&O!==void 0?O:(w=n.message)===null||w===void 0?void 0:w.call(n),E=(M=e.icon)!==null&&M!==void 0?M:(I=n.icon)===null||I===void 0?void 0:I.call(n),k=(_=n.action)===null||_===void 0?void 0:_.call(n);H=D&&H===void 0?!0:H;const B=(A?HR:zR)[h.value]||null;T&&(z=!0);const L=l.value,j=te(L,{[`${L}-${h.value}`]:!0,[`${L}-closing`]:c.value,[`${L}-with-description`]:!!A,[`${L}-no-icon`]:!H,[`${L}-banner`]:!!D,[`${L}-closable`]:z,[`${L}-rtl`]:i.value==="rtl",[u.value]:!0}),K=z?f("button",{type:"button",onClick:g,class:`${L}-close-icon`,tabindex:0},[T?f("span",{class:`${L}-close-text`},[T]):F===void 0?f(io,null,null):F]):null,G=E&&(kt(E)?ut(E,{class:`${L}-icon`}):f("span",{class:`${L}-icon`},[E]))||f(B,{class:`${L}-icon`},null),U=bo(`${L}-motion`,{appear:!1,css:!0,onAfterLeave:m,onBeforeLeave:X=>{X.style.maxHeight=`${X.offsetHeight}px`},onLeave:X=>{X.style.maxHeight="0px"}});return s(d.value?null:f(rn,U,{default:()=>[Kt(f("div",N(N({role:"alert"},r),{},{style:[r.style,b.value],class:[r.class,j],"data-show":!c.value,ref:p}),[H?G:null,f("div",{class:`${L}-content`},[R?f("div",{class:`${L}-message`},[R]):null,A?f("div",{class:`${L}-description`},[A]):null]),k?f("div",{class:`${L}-action`},[k]):null,K]),[[Wn,!c.value]])]}))}}}),foe=Vt(WR),_r=["xxxl","xxl","xl","lg","md","sm","xs"],KR=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`,xxxl:`{min-width: ${e.screenXXXL}px}`});function yg(){const[,e]=Qr();return P(()=>{const t=KR(e.value),n=new Map;let o=-1,r={};return{matchHandlers:{},dispatch(a){return r=a,n.forEach(l=>l(r)),n.size>=1},subscribe(a){return n.size||this.register(),o+=1,n.set(o,a),a(r),o},unsubscribe(a){n.delete(a),n.size||this.unregister()},unregister(){Object.keys(t).forEach(a=>{const l=t[a],i=this.matchHandlers[l];i==null||i.mql.removeListener(i==null?void 0:i.listener)}),n.clear()},register(){Object.keys(t).forEach(a=>{const l=t[a],i=u=>{let{matches:c}=u;this.dispatch(v(v({},r),{[a]:c}))},s=window.matchMedia(l);s.addListener(i),this.matchHandlers[l]={mql:s,listener:i},i(s)})},responsiveMap:t}})}function Sg(){const e=Y({});let t=null;const n=yg();return Ve(()=>{t=n.value.subscribe(o=>{e.value=o})}),An(()=>{n.value.unsubscribe(t)}),e}function zn(e){const t=Y();return Le(()=>{t.value=e()},{flush:"sync"}),t}const GR=e=>{const{antCls:t,componentCls:n,iconCls:o,avatarBg:r,avatarColor:a,containerSize:l,containerSizeLG:i,containerSizeSM:s,textFontSize:u,textFontSizeLG:c,textFontSizeSM:d,borderRadius:p,borderRadiusLG:g,borderRadiusSM:m,lineWidth:h,lineType:b}=e,y=(S,$,x)=>({width:S,height:S,lineHeight:`${S-h*2}px`,borderRadius:"50%",[`&${n}-square`]:{borderRadius:x},[`${n}-string`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},transformOrigin:"0 center"},[`&${n}-icon`]:{fontSize:$,[`> ${o}`]:{margin:0}}});return{[n]:v(v(v(v({},et(e)),{position:"relative",display:"inline-block",overflow:"hidden",color:a,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:r,border:`${h}px ${b} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),y(l,u,p)),{"&-lg":v({},y(i,c,g)),"&-sm":v({},y(s,d,m)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},XR=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:o,groupSpace:r}=e;return{[`${t}-group`]:{display:"inline-flex",[`${t}`]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:o}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:r}}}},wx=Qe("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,o=ze(e,{avatarBg:n,avatarColor:t});return[GR(o),XR(o)]},e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:o,fontSize:r,fontSizeLG:a,fontSizeXL:l,fontSizeHeading3:i,marginXS:s,marginXXS:u,colorBorderBg:c}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:o,textFontSize:Math.round((a+l)/2),textFontSizeLG:i,textFontSizeSM:r,groupSpace:u,groupOverlapping:-s,groupBorderColor:c}}),Ox=Symbol("AvatarContextKey"),UR=()=>Xe(Ox,{}),YR=e=>Ke(Ox,e),qR=()=>({prefixCls:String,shape:{type:String,default:"circle"},size:{type:[Number,String,Object],default:()=>"default"},src:String,srcset:String,icon:V.any,alt:String,gap:Number,draggable:{type:Boolean,default:void 0},crossOrigin:String,loadError:{type:Function}}),QR=J({compatConfig:{MODE:3},name:"AAvatar",inheritAttrs:!1,props:qR(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const r=Y(!0),a=Y(!1),l=Y(1),i=Y(null),s=Y(null),{prefixCls:u}=Ee("avatar",e),[c,d]=wx(u),p=UR(),g=P(()=>e.size==="default"?p.size:e.size),m=Sg(),h=zn(()=>{if(typeof e.size!="object")return;const $=_r.find(C=>m.value[C]);return e.size[$]}),b=$=>h.value?{width:`${h.value}px`,height:`${h.value}px`,lineHeight:`${h.value}px`,fontSize:`${$?h.value/2:18}px`}:{},y=()=>{if(!i.value||!s.value)return;const $=i.value.offsetWidth,x=s.value.offsetWidth;if($!==0&&x!==0){const{gap:C=4}=e;C*2{const{loadError:$}=e;($==null?void 0:$())!==!1&&(r.value=!1)};return ue(()=>e.src,()=>{lt(()=>{r.value=!0,l.value=1})}),ue(()=>e.gap,()=>{lt(()=>{y()})}),Ve(()=>{lt(()=>{y(),a.value=!0})}),()=>{var $,x;const{shape:C,src:O,alt:w,srcset:M,draggable:I,crossOrigin:_}=e,D=($=p.shape)!==null&&$!==void 0?$:C,F=Nt(n,e,"icon"),z=u.value,H={[`${o.class}`]:!!o.class,[z]:!0,[`${z}-lg`]:g.value==="large",[`${z}-sm`]:g.value==="small",[`${z}-${D}`]:!0,[`${z}-image`]:O&&r.value,[`${z}-icon`]:F,[d.value]:!0},T=typeof g.value=="number"?{width:`${g.value}px`,height:`${g.value}px`,lineHeight:`${g.value}px`,fontSize:F?`${g.value/2}px`:"18px"}:{},A=(x=n.default)===null||x===void 0?void 0:x.call(n);let R;if(O&&r.value)R=f("img",{draggable:I,src:O,srcset:M,onError:S,alt:w,crossorigin:_},null);else if(F)R=F;else if(a.value||l.value!==1){const E=`scale(${l.value}) translateX(-50%)`,k={msTransform:E,WebkitTransform:E,transform:E},B=typeof g.value=="number"?{lineHeight:`${g.value}px`}:{};R=f(ho,{onResize:y},{default:()=>[f("span",{class:`${z}-string`,ref:i,style:v(v({},B),k)},[A])]})}else R=f("span",{class:`${z}-string`,ref:i,style:{opacity:0}},[A]);return c(f("span",N(N({},o),{},{ref:s,class:H,style:[T,b(!!F),o.style]}),[R]))}}}),Ol=QR,Bn={adjustX:1,adjustY:1},Fn=[0,0],Px={left:{points:["cr","cl"],overflow:Bn,offset:[-4,0],targetOffset:Fn},right:{points:["cl","cr"],overflow:Bn,offset:[4,0],targetOffset:Fn},top:{points:["bc","tc"],overflow:Bn,offset:[0,-4],targetOffset:Fn},bottom:{points:["tc","bc"],overflow:Bn,offset:[0,4],targetOffset:Fn},topLeft:{points:["bl","tl"],overflow:Bn,offset:[0,-4],targetOffset:Fn},leftTop:{points:["tr","tl"],overflow:Bn,offset:[-4,0],targetOffset:Fn},topRight:{points:["br","tr"],overflow:Bn,offset:[0,-4],targetOffset:Fn},rightTop:{points:["tl","tr"],overflow:Bn,offset:[4,0],targetOffset:Fn},bottomRight:{points:["tr","br"],overflow:Bn,offset:[0,4],targetOffset:Fn},rightBottom:{points:["bl","br"],overflow:Bn,offset:[4,0],targetOffset:Fn},bottomLeft:{points:["tl","bl"],overflow:Bn,offset:[0,4],targetOffset:Fn},leftBottom:{points:["br","bl"],overflow:Bn,offset:[-4,0],targetOffset:Fn}},ZR={prefixCls:String,id:String,overlayInnerStyle:V.any},JR=J({compatConfig:{MODE:3},name:"TooltipContent",props:ZR,setup(e,t){let{slots:n}=t;return()=>{var o;return f("div",{class:`${e.prefixCls}-inner`,id:e.id,role:"tooltip",style:e.overlayInnerStyle},[(o=n.overlay)===null||o===void 0?void 0:o.call(n)])}}});var eN=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{}),overlayStyle:{type:Object,default:void 0},overlayClassName:String,prefixCls:V.string.def("rc-tooltip"),mouseEnterDelay:V.number.def(.1),mouseLeaveDelay:V.number.def(.1),getPopupContainer:Function,destroyTooltipOnHide:{type:Boolean,default:!1},align:V.object.def(()=>({})),arrowContent:V.any.def(null),tipId:String,builtinPlacements:V.object,overlayInnerStyle:{type:Object,default:void 0},popupVisible:{type:Boolean,default:void 0},onVisibleChange:Function,onPopupAlign:Function},setup(e,t){let{slots:n,attrs:o,expose:r}=t;const a=Y(),l=()=>{const{prefixCls:c,tipId:d,overlayInnerStyle:p}=e;return[f("div",{class:`${c}-arrow`,key:"arrow"},[Nt(n,e,"arrowContent")]),f(JR,{key:"content",prefixCls:c,id:d,overlayInnerStyle:p},{overlay:n.overlay})]};r({getPopupDomNode:()=>a.value.getPopupDomNode(),triggerDOM:a,forcePopupAlign:()=>{var c;return(c=a.value)===null||c===void 0?void 0:c.forcePopupAlign()}});const s=Y(!1),u=Y(!1);return Le(()=>{const{destroyTooltipOnHide:c}=e;if(typeof c=="boolean")s.value=c;else if(c&&typeof c=="object"){const{keepParent:d}=c;s.value=d===!0,u.value=d===!1}}),()=>{const{overlayClassName:c,trigger:d,mouseEnterDelay:p,mouseLeaveDelay:g,overlayStyle:m,prefixCls:h,afterVisibleChange:b,transitionName:y,animation:S,placement:$,align:x,destroyTooltipOnHide:C,defaultVisible:O}=e,w=eN(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible"]),M=v({},w);e.visible!==void 0&&(M.popupVisible=e.visible);const I=v(v(v({popupClassName:c,prefixCls:h,action:d,builtinPlacements:Px,popupPlacement:$,popupAlign:x,afterPopupVisibleChange:b,popupTransitionName:y,popupAnimation:S,defaultPopupVisible:O,destroyPopupOnHide:s.value,autoDestroy:u.value,mouseLeaveDelay:g,popupStyle:m,mouseEnterDelay:p},M),o),{onPopupVisibleChange:e.onVisibleChange||Yb,onPopupAlign:e.onPopupAlign||Yb,ref:a,popup:l()});return f(ii,I,{default:n.default})}}}),$g=()=>({trigger:[String,Array],open:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},placement:String,color:String,transitionName:String,overlayStyle:Ne(),overlayInnerStyle:Ne(),overlayClassName:String,openClassName:String,prefixCls:String,mouseEnterDelay:Number,mouseLeaveDelay:Number,getPopupContainer:Function,arrowPointAtCenter:{type:Boolean,default:void 0},autoAdjustOverflow:{type:[Boolean,Object],default:void 0},destroyTooltipOnHide:{type:Boolean,default:void 0},align:Ne(),builtinPlacements:Ne(),children:Array,onVisibleChange:Function,"onUpdate:visible":Function,onOpenChange:Function,"onUpdate:open":Function}),nN={adjustX:1,adjustY:1},qb={adjustX:0,adjustY:0},oN=[0,0];function Qb(e){return typeof e=="boolean"?e?nN:qb:v(v({},qb),e)}function Ix(e){const{arrowWidth:t=4,horizontalArrowShift:n=16,verticalArrowShift:o=8,autoAdjustOverflow:r,arrowPointAtCenter:a}=e,l={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(n+t),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(o+t)]},topRight:{points:["br","tc"],offset:[n+t,-4]},rightTop:{points:["tl","cr"],offset:[4,-(o+t)]},bottomRight:{points:["tr","bc"],offset:[n+t,4]},rightBottom:{points:["bl","cr"],offset:[4,o+t]},bottomLeft:{points:["tl","bc"],offset:[-(n+t),4]},leftBottom:{points:["br","cl"],offset:[-4,o+t]}};return Object.keys(l).forEach(i=>{l[i]=a?v(v({},l[i]),{overflow:Qb(r),targetOffset:oN}):v(v({},Px[i]),{overflow:Qb(r)}),l[i].ignoreShake=!0}),l}function zf(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];for(let t=0,n=e.length;t`${e}-inverse`),aN=["success","processing","error","default","warning"];function Wc(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[...rN,...Kl].includes(e):Kl.includes(e)}function lN(e){return aN.includes(e)}function iN(e,t){const n=Wc(t),o=te({[`${e}-${t}`]:t&&n}),r={},a={};return t&&!n&&(r.background=t,a["--antd-arrow-background-color"]=t),{className:o,overlayStyle:r,arrowStyle:a}}function Ni(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return e.map(n=>`${t}${n}`).join(",")}const Tx=8;function Mx(e){const t=Tx,{sizePopupArrow:n,contentRadius:o,borderRadiusOuter:r,limitVerticalRadius:a}=e,l=n/2-Math.ceil(r*(Math.sqrt(2)-1)),i=(o>12?o+2:12)-l,s=a?t-l:i;return{dropdownArrowOffset:i,dropdownArrowOffsetVertical:s}}function Ex(e,t){const{componentCls:n,sizePopupArrow:o,marginXXS:r,borderRadiusXS:a,borderRadiusOuter:l,boxShadowPopoverArrow:i}=e,{colorBg:s,showArrowCls:u,contentRadius:c=e.borderRadiusLG,limitVerticalRadius:d}=t,{dropdownArrowOffsetVertical:p,dropdownArrowOffset:g}=Mx({sizePopupArrow:o,contentRadius:c,borderRadiusOuter:l,limitVerticalRadius:d}),m=o/2+r;return{[n]:{[`${n}-arrow`]:[v(v({position:"absolute",zIndex:1,display:"block"},Iv(o,a,l,s,i)),{"&:before":{background:s}})],[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:0,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:g}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:g}},[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:0,transform:"translateY(-100%)"},[`&-placement-bottom ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:g}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:g}},[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:0},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${n}-arrow`]:{top:p},[`&-placement-leftBottom ${n}-arrow`]:{bottom:p},[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:0},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${n}-arrow`]:{top:p},[`&-placement-rightBottom ${n}-arrow`]:{bottom:p},[Ni(["&-placement-topLeft","&-placement-top","&-placement-topRight"],u)]:{paddingBottom:m},[Ni(["&-placement-bottomLeft","&-placement-bottom","&-placement-bottomRight"],u)]:{paddingTop:m},[Ni(["&-placement-leftTop","&-placement-left","&-placement-leftBottom"],u)]:{paddingRight:{_skip_check_:!0,value:m}},[Ni(["&-placement-rightTop","&-placement-right","&-placement-rightBottom"],u)]:{paddingLeft:{_skip_check_:!0,value:m}}}}}const sN=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:o,tooltipBg:r,tooltipBorderRadius:a,zIndexPopup:l,controlHeight:i,boxShadowSecondary:s,paddingSM:u,paddingXS:c,tooltipRadiusOuter:d}=e;return[{[t]:v(v(v(v({},et(e)),{position:"absolute",zIndex:l,display:"block","&":[{width:"max-content"},{width:"intrinsic"}],maxWidth:n,visibility:"visible","&-hidden":{display:"none"},"--antd-arrow-background-color":r,[`${t}-inner`]:{minWidth:i,minHeight:i,padding:`${u/2}px ${c}px`,color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:r,borderRadius:a,boxShadow:s},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(a,Tx)}},[`${t}-content`]:{position:"relative"}}),Ms(e,(p,g)=>{let{darkColor:m}=g;return{[`&${t}-${p}`]:{[`${t}-inner`]:{backgroundColor:m},[`${t}-arrow`]:{"--antd-arrow-background-color":m}}}})),{"&-rtl":{direction:"rtl"}})},Ex(ze(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",showArrowCls:"",contentRadius:a,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none"}}]},cN=(e,t)=>Qe("Tooltip",o=>{if((t==null?void 0:t.value)===!1)return[];const{borderRadius:r,colorTextLightSolid:a,colorBgDefault:l,borderRadiusOuter:i}=o,s=ze(o,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:r,tooltipBg:l,tooltipRadiusOuter:i>4?4:i});return[sN(s),el(o,"zoom-big-fast")]},o=>{let{zIndexPopupBase:r,colorBgSpotlight:a}=o;return{zIndexPopup:r+70,colorBgDefault:a}})(e),uN=(e,t)=>{const n={},o=v({},e);return t.forEach(r=>{e&&r in e&&(n[r]=e[r],delete o[r])}),{picked:n,omitted:o}},_x=()=>v(v({},$g()),{title:V.any}),Dx=()=>({trigger:"hover",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),dN=J({compatConfig:{MODE:3},name:"ATooltip",inheritAttrs:!1,props:rt(_x(),{trigger:"hover",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),slots:Object,setup(e,t){let{slots:n,emit:o,attrs:r,expose:a}=t;const{prefixCls:l,getPopupContainer:i,direction:s,rootPrefixCls:u}=Ee("tooltip",e),c=P(()=>{var _;return(_=e.open)!==null&&_!==void 0?_:e.visible}),d=Z(zf([e.open,e.visible])),p=Z();let g;ue(c,_=>{We.cancel(g),g=We(()=>{d.value=!!_})});const m=()=>{var _;const D=(_=e.title)!==null&&_!==void 0?_:n.title;return!D&&D!==0},h=_=>{const D=m();c.value===void 0&&(d.value=D?!1:_),D||(o("update:visible",_),o("visibleChange",_),o("update:open",_),o("openChange",_))};a({getPopupDomNode:()=>p.value.getPopupDomNode(),open:d,forcePopupAlign:()=>{var _;return(_=p.value)===null||_===void 0?void 0:_.forcePopupAlign()}});const y=P(()=>{const{builtinPlacements:_,arrowPointAtCenter:D,autoAdjustOverflow:F}=e;return _||Ix({arrowPointAtCenter:D,autoAdjustOverflow:F})}),S=_=>_||_==="",$=_=>{const D=_.type;if(typeof D=="object"&&_.props&&((D.__ANT_BUTTON===!0||D==="button")&&S(_.props.disabled)||D.__ANT_SWITCH===!0&&(S(_.props.disabled)||S(_.props.loading))||D.__ANT_RADIO===!0&&S(_.props.disabled))){const{picked:F,omitted:z}=uN(NC(_),["position","left","right","top","bottom","float","display","zIndex"]),H=v(v({display:"inline-block"},F),{cursor:"not-allowed",lineHeight:1,width:_.props&&_.props.block?"100%":void 0}),T=v(v({},z),{pointerEvents:"none"}),A=ut(_,{style:T},!0);return f("span",{style:H,class:`${l.value}-disabled-compatible-wrapper`},[A])}return _},x=()=>{var _,D;return(_=e.title)!==null&&_!==void 0?_:(D=n.title)===null||D===void 0?void 0:D.call(n)},C=(_,D)=>{const F=y.value,z=Object.keys(F).find(H=>{var T,A;return F[H].points[0]===((T=D.points)===null||T===void 0?void 0:T[0])&&F[H].points[1]===((A=D.points)===null||A===void 0?void 0:A[1])});if(z){const H=_.getBoundingClientRect(),T={top:"50%",left:"50%"};z.indexOf("top")>=0||z.indexOf("Bottom")>=0?T.top=`${H.height-D.offset[1]}px`:(z.indexOf("Top")>=0||z.indexOf("bottom")>=0)&&(T.top=`${-D.offset[1]}px`),z.indexOf("left")>=0||z.indexOf("Right")>=0?T.left=`${H.width-D.offset[0]}px`:(z.indexOf("right")>=0||z.indexOf("Left")>=0)&&(T.left=`${-D.offset[0]}px`),_.style.transformOrigin=`${T.left} ${T.top}`}},O=P(()=>iN(l.value,e.color)),w=P(()=>r["data-popover-inject"]),[M,I]=cN(l,P(()=>!w.value));return()=>{var _,D;const{openClassName:F,overlayClassName:z,overlayStyle:H,overlayInnerStyle:T}=e;let A=(D=Tt((_=n.default)===null||_===void 0?void 0:_.call(n)))!==null&&D!==void 0?D:null;A=A.length===1?A[0]:A;let R=d.value;if(c.value===void 0&&m()&&(R=!1),!A)return null;const E=$(kt(A)&&!GT(A)?A:f("span",null,[A])),k=te({[F||`${l.value}-open`]:!0,[E.props&&E.props.class]:E.props&&E.props.class}),B=te(z,{[`${l.value}-rtl`]:s.value==="rtl"},O.value.className,I.value),L=v(v({},O.value.overlayStyle),T),j=O.value.arrowStyle,K=v(v(v({},r),e),{prefixCls:l.value,getPopupContainer:i==null?void 0:i.value,builtinPlacements:y.value,visible:R,ref:p,overlayClassName:B,overlayStyle:v(v({},j),H),overlayInnerStyle:L,onVisibleChange:h,onPopupAlign:C,transitionName:en(u.value,"zoom-big-fast",e.transitionName)});return M(f(tN,K,{default:()=>[d.value?ut(E,{class:k}):E],arrowContent:()=>f("span",{class:`${l.value}-arrow-content`},null),overlay:x}))}}}),oo=Vt(dN),fN=e=>{const{componentCls:t,popoverBg:n,popoverColor:o,width:r,fontWeightStrong:a,popoverPadding:l,boxShadowSecondary:i,colorTextHeading:s,borderRadiusLG:u,zIndexPopup:c,marginXS:d,colorBgElevated:p}=e;return[{[t]:v(v({},et(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--antd-arrow-background-color":p,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:n,backgroundClip:"padding-box",borderRadius:u,boxShadow:i,padding:l},[`${t}-title`]:{minWidth:r,marginBottom:d,color:s,fontWeight:a},[`${t}-inner-content`]:{color:o}})},Ex(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",[`${t}-content`]:{display:"inline-block"}}}]},pN=e=>{const{componentCls:t}=e;return{[t]:Kl.map(n=>{const o=e[`${n}-6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":o,[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{background:"transparent"}}}})}},vN=e=>{const{componentCls:t,lineWidth:n,lineType:o,colorSplit:r,paddingSM:a,controlHeight:l,fontSize:i,lineHeight:s,padding:u}=e,c=l-Math.round(i*s),d=c/2,p=c/2-n,g=u;return{[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${d}px ${g}px ${p}px`,borderBottom:`${n}px ${o} ${r}`},[`${t}-inner-content`]:{padding:`${a}px ${g}px`}}}},gN=Qe("Popover",e=>{const{colorBgElevated:t,colorText:n,wireframe:o}=e,r=ze(e,{popoverBg:t,popoverColor:n,popoverPadding:12});return[fN(r),pN(r),o&&vN(r),el(r,"zoom-big")]},e=>{let{zIndexPopupBase:t}=e;return{zIndexPopup:t+30,width:177}}),hN=()=>v(v({},$g()),{content:xt(),title:xt()}),mN=J({compatConfig:{MODE:3},name:"APopover",inheritAttrs:!1,props:rt(hN(),v(v({},Dx()),{trigger:"hover",placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1})),setup(e,t){let{expose:n,slots:o,attrs:r}=t;const a=Z();yt(e.visible===void 0),n({getPopupDomNode:()=>{var p,g;return(g=(p=a.value)===null||p===void 0?void 0:p.getPopupDomNode)===null||g===void 0?void 0:g.call(p)}});const{prefixCls:l,configProvider:i}=Ee("popover",e),[s,u]=gN(l),c=P(()=>i.getPrefixCls()),d=()=>{var p,g;const{title:m=Tt((p=o.title)===null||p===void 0?void 0:p.call(o)),content:h=Tt((g=o.content)===null||g===void 0?void 0:g.call(o))}=e,b=!!(Array.isArray(m)?m.length:m),y=!!(Array.isArray(h)?h.length:m);return!b&&!y?null:f(nt,null,[b&&f("div",{class:`${l.value}-title`},[m]),f("div",{class:`${l.value}-inner-content`},[h])])};return()=>{const p=te(e.overlayClassName,u.value);return s(f(oo,N(N(N({},qe(e,["title","content"])),r),{},{prefixCls:l.value,ref:a,overlayClassName:p,transitionName:en(c.value,"zoom-big",e.transitionName),"data-popover-inject":!0}),{title:d,default:o.default}))}}}),Ax=Vt(mN),bN=()=>({prefixCls:String,maxCount:Number,maxStyle:{type:Object,default:void 0},maxPopoverPlacement:{type:String,default:"top"},maxPopoverTrigger:String,size:{type:[Number,String,Object],default:"default"},shape:{type:String,default:"circle"}}),yN=J({compatConfig:{MODE:3},name:"AAvatarGroup",inheritAttrs:!1,props:bN(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:a}=Ee("avatar",e),l=P(()=>`${r.value}-group`),[i,s]=wx(r);return Le(()=>{const u={size:e.size,shape:e.shape};YR(u)}),()=>{const{maxPopoverPlacement:u="top",maxCount:c,maxStyle:d,maxPopoverTrigger:p="hover",shape:g}=e,m={[l.value]:!0,[`${l.value}-rtl`]:a.value==="rtl",[`${o.class}`]:!!o.class,[s.value]:!0},h=Nt(n,e),b=mt(h).map((S,$)=>ut(S,{key:`avatar-key-${$}`})),y=b.length;if(c&&c[f(Ol,{style:d,shape:g},{default:()=>[`+${y-c}`]})]})),i(f("div",N(N({},o),{},{class:m,style:o.style}),[S]))}return i(f("div",N(N({},o),{},{class:m,style:o.style}),[b]))}}}),Hf=yN;Ol.Group=Hf;Ol.install=function(e){return e.component(Ol.name,Ol),e.component(Hf.name,Hf),e};function Zb(e){let{prefixCls:t,value:n,current:o,offset:r=0}=e,a;return r&&(a={position:"absolute",top:`${r}00%`,left:0}),f("p",{style:a,class:te(`${t}-only-unit`,{current:o})},[n])}function SN(e,t,n){let o=e,r=0;for(;(o+10)%10!==t;)o+=n,r+=n;return r}const $N=J({compatConfig:{MODE:3},name:"SingleNumber",props:{prefixCls:String,value:String,count:Number},setup(e){const t=P(()=>Number(e.value)),n=P(()=>Math.abs(e.count)),o=vt({prevValue:t.value,prevCount:n.value}),r=()=>{o.prevValue=t.value,o.prevCount=n.value},a=Z();return ue(t,()=>{clearTimeout(a.value),a.value=setTimeout(()=>{r()},1e3)},{flush:"post"}),An(()=>{clearTimeout(a.value)}),()=>{let l,i={};const s=t.value;if(o.prevValue===s||Number.isNaN(s)||Number.isNaN(o.prevValue))l=[Zb(v(v({},e),{current:!0}))],i={transition:"none"};else{l=[];const u=s+10,c=[];for(let g=s;g<=u;g+=1)c.push(g);const d=c.findIndex(g=>g%10===o.prevValue);l=c.map((g,m)=>{const h=g%10;return Zb(v(v({},e),{value:h,offset:m-d,current:m===d}))});const p=o.prevCountr()},[l])}}});var CN=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{var a;const l=v(v({},e),n),{prefixCls:i,count:s,title:u,show:c,component:d="sup",class:p,style:g}=l,m=CN(l,["prefixCls","count","title","show","component","class","style"]),h=v(v({},m),{style:g,"data-show":e.show,class:te(r.value,p),title:u});let b=s;if(s&&Number(s)%1===0){const S=String(s).split("");b=S.map(($,x)=>f($N,{prefixCls:r.value,count:Number(s),value:$,key:S.length-x},null))}g&&g.borderColor&&(h.style=v(v({},g),{boxShadow:`0 0 0 1px ${g.borderColor} inset`}));const y=Tt((a=o.default)===null||a===void 0?void 0:a.call(o));return y&&y.length?ut(y,{class:te(`${r.value}-custom-component`)},!1):f(d,h,{default:()=>[b]})}}}),ON=new Ue("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),PN=new Ue("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),IN=new Ue("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),TN=new Ue("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),MN=new Ue("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),EN=new Ue("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),_N=e=>{const{componentCls:t,iconCls:n,antCls:o,badgeFontHeight:r,badgeShadowSize:a,badgeHeightSm:l,motionDurationSlow:i,badgeStatusSize:s,marginXS:u,badgeRibbonOffset:c}=e,d=`${o}-scroll-number`,p=`${o}-ribbon`,g=`${o}-ribbon-wrapper`,m=Ms(e,(b,y)=>{let{darkColor:S}=y;return{[`&${t} ${t}-color-${b}`]:{background:S,[`&:not(${t}-count)`]:{color:S}}}}),h=Ms(e,(b,y)=>{let{darkColor:S}=y;return{[`&${p}-color-${b}`]:{background:S,color:S}}});return{[t]:v(v(v(v({},et(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{zIndex:e.badgeZIndex,minWidth:e.badgeHeight,height:e.badgeHeight,color:e.badgeTextColor,fontWeight:e.badgeFontWeight,fontSize:e.badgeFontSize,lineHeight:`${e.badgeHeight}px`,whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:e.badgeHeight/2,boxShadow:`0 0 0 ${a}px ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:l,height:l,fontSize:e.badgeFontSizeSm,lineHeight:`${l}px`,borderRadius:l/2},[`${t}-multiple-words`]:{padding:`0 ${e.paddingXS}px`},[`${t}-dot`]:{zIndex:e.badgeZIndex,width:e.badgeDotSize,minWidth:e.badgeDotSize,height:e.badgeDotSize,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${a}px ${e.badgeShadowColor}`},[`${t}-dot${d}`]:{transition:`background ${i}`},[`${t}-count, ${t}-dot, ${d}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:EN,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:s,height:s,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorPrimary,backgroundColor:e.colorPrimary,"&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:a,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:ON,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:u,color:e.colorText,fontSize:e.fontSize}}}),m),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:PN,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:IN,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:TN,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:MN,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${d}-custom-component, ${t}-count`]:{transform:"none"},[`${d}-custom-component, ${d}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[`${d}`]:{overflow:"hidden",[`${d}-only`]:{position:"relative",display:"inline-block",height:e.badgeHeight,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${d}-only-unit`]:{height:e.badgeHeight,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${d}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${d}-custom-component`]:{transform:"translate(-50%, -50%)"}}}),[`${g}`]:{position:"relative"},[`${p}`]:v(v(v(v({},et(e)),{position:"absolute",top:u,padding:`0 ${e.paddingXS}px`,color:e.colorPrimary,lineHeight:`${r}px`,whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${p}-text`]:{color:e.colorTextLightSolid},[`${p}-corner`]:{position:"absolute",top:"100%",width:c,height:c,color:"currentcolor",border:`${c/2}px solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),h),{[`&${p}-placement-end`]:{insetInlineEnd:-c,borderEndEndRadius:0,[`${p}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${p}-placement-start`]:{insetInlineStart:-c,borderEndStartRadius:0,[`${p}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},Rx=Qe("Badge",e=>{const{fontSize:t,lineHeight:n,fontSizeSM:o,lineWidth:r,marginXS:a,colorBorderBg:l}=e,i=Math.round(t*n),s=r,u="auto",c=i-2*s,d=e.colorBgContainer,p="normal",g=o,m=e.colorError,h=e.colorErrorHover,b=t,y=o/2,S=o,$=o/2,x=ze(e,{badgeFontHeight:i,badgeShadowSize:s,badgeZIndex:u,badgeHeight:c,badgeTextColor:d,badgeFontWeight:p,badgeFontSize:g,badgeColor:m,badgeColorHover:h,badgeShadowColor:l,badgeHeightSm:b,badgeDotSize:y,badgeFontSizeSm:S,badgeStatusSize:$,badgeProcessingDuration:"1.2s",badgeRibbonOffset:a,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"});return[_N(x)]});var DN=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({prefix:String,color:{type:String},text:V.any,placement:{type:String,default:"end"}}),jf=J({compatConfig:{MODE:3},name:"ABadgeRibbon",inheritAttrs:!1,props:AN(),slots:Object,setup(e,t){let{attrs:n,slots:o}=t;const{prefixCls:r,direction:a}=Ee("ribbon",e),[l,i]=Rx(r),s=P(()=>Wc(e.color,!1)),u=P(()=>[r.value,`${r.value}-placement-${e.placement}`,{[`${r.value}-rtl`]:a.value==="rtl",[`${r.value}-color-${e.color}`]:s.value}]);return()=>{var c,d;const{class:p,style:g}=n,m=DN(n,["class","style"]),h={},b={};return e.color&&!s.value&&(h.background=e.color,b.color=e.color),l(f("div",N({class:`${r.value}-wrapper ${i.value}`},m),[(c=o.default)===null||c===void 0?void 0:c.call(o),f("div",{class:[u.value,p,i.value],style:v(v({},h),g)},[f("span",{class:`${r.value}-text`},[e.text||((d=o.text)===null||d===void 0?void 0:d.call(o))]),f("div",{class:`${r.value}-corner`,style:b},null)])]))}}}),Ls=e=>!isNaN(parseFloat(e))&&isFinite(e),RN=()=>({count:V.any.def(null),showZero:{type:Boolean,default:void 0},overflowCount:{type:Number,default:99},dot:{type:Boolean,default:void 0},prefixCls:String,scrollNumberPrefixCls:String,status:{type:String},size:{type:String,default:"default"},color:String,text:V.any,offset:Array,numberStyle:{type:Object,default:void 0},title:String}),od=J({compatConfig:{MODE:3},name:"ABadge",Ribbon:jf,inheritAttrs:!1,props:RN(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:a}=Ee("badge",e),[l,i]=Rx(r),s=P(()=>e.count>e.overflowCount?`${e.overflowCount}+`:e.count),u=P(()=>s.value==="0"||s.value===0),c=P(()=>e.count===null||u.value&&!e.showZero),d=P(()=>(e.status!==null&&e.status!==void 0||e.color!==null&&e.color!==void 0)&&c.value),p=P(()=>e.dot&&!u.value),g=P(()=>p.value?"":s.value),m=P(()=>(g.value===null||g.value===void 0||g.value===""||u.value&&!e.showZero)&&!p.value),h=Z(e.count),b=Z(g.value),y=Z(p.value);ue([()=>e.count,g,p],()=>{m.value||(h.value=e.count,b.value=g.value,y.value=p.value)},{immediate:!0});const S=P(()=>Wc(e.color,!1)),$=P(()=>({[`${r.value}-status-dot`]:d.value,[`${r.value}-status-${e.status}`]:!!e.status,[`${r.value}-color-${e.color}`]:S.value})),x=P(()=>e.color&&!S.value?{background:e.color,color:e.color}:{}),C=P(()=>({[`${r.value}-dot`]:y.value,[`${r.value}-count`]:!y.value,[`${r.value}-count-sm`]:e.size==="small",[`${r.value}-multiple-words`]:!y.value&&b.value&&b.value.toString().length>1,[`${r.value}-status-${e.status}`]:!!e.status,[`${r.value}-color-${e.color}`]:S.value}));return()=>{var O,w;const{offset:M,title:I,color:_}=e,D=o.style,F=Nt(n,e,"text"),z=r.value,H=h.value;let T=mt((O=n.default)===null||O===void 0?void 0:O.call(n));T=T.length?T:null;const A=!!(!m.value||n.count),R=(()=>{if(!M)return v({},D);const G={marginTop:Ls(M[1])?`${M[1]}px`:M[1]};return a.value==="rtl"?G.left=`${parseInt(M[0],10)}px`:G.right=`${-parseInt(M[0],10)}px`,v(v({},G),D)})(),E=I??(typeof H=="string"||typeof H=="number"?H:void 0),k=A||!F?null:f("span",{class:`${z}-status-text`},[F]),B=typeof H=="object"||H===void 0&&n.count?ut(H??((w=n.count)===null||w===void 0?void 0:w.call(n)),{style:R},!1):null,L=te(z,{[`${z}-status`]:d.value,[`${z}-not-a-wrapper`]:!T,[`${z}-rtl`]:a.value==="rtl"},o.class,i.value);if(!T&&d.value){const G=R.color;return l(f("span",N(N({},o),{},{class:L,style:R}),[f("span",{class:$.value,style:x.value},null),f("span",{style:{color:G},class:`${z}-status-text`},[F])]))}const j=bo(T?`${z}-zoom`:"",{appear:!1});let K=v(v({},R),e.numberStyle);return _&&!S.value&&(K=K||{},K.background=_),l(f("span",N(N({},o),{},{class:L}),[T,f(rn,j,{default:()=>[Kt(f(wN,{prefixCls:e.scrollNumberPrefixCls,show:A,class:C.value,count:b.value,title:E,style:K,key:"scrollNumber"},{default:()=>[B]}),[[Wn,A]])]}),k]))}}});od.install=function(e){return e.component(od.name,od),e.component(jf.name,jf),e};const aa={adjustX:1,adjustY:1},la=[0,0],NN={topLeft:{points:["bl","tl"],overflow:aa,offset:[0,-4],targetOffset:la},topCenter:{points:["bc","tc"],overflow:aa,offset:[0,-4],targetOffset:la},topRight:{points:["br","tr"],overflow:aa,offset:[0,-4],targetOffset:la},bottomLeft:{points:["tl","bl"],overflow:aa,offset:[0,4],targetOffset:la},bottomCenter:{points:["tc","bc"],overflow:aa,offset:[0,4],targetOffset:la},bottomRight:{points:["tr","br"],overflow:aa,offset:[0,4],targetOffset:la}},kN=NN;var BN=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);re.visible,g=>{g!==void 0&&(a.value=g)});const l=Z();r({triggerRef:l});const i=g=>{e.visible===void 0&&(a.value=!1),o("overlayClick",g)},s=g=>{e.visible===void 0&&(a.value=g),o("visibleChange",g)},u=()=>{var g;const m=(g=n.overlay)===null||g===void 0?void 0:g.call(n),h={prefixCls:`${e.prefixCls}-menu`,onClick:i};return f(nt,{key:AC},[e.arrow&&f("div",{class:`${e.prefixCls}-arrow`},null),ut(m,h,!1)])},c=P(()=>{const{minOverlayWidthMatchTrigger:g=!e.alignPoint}=e;return g}),d=()=>{var g;const m=(g=n.default)===null||g===void 0?void 0:g.call(n);return a.value&&m?ut(m[0],{class:e.openClassName||`${e.prefixCls}-open`},!1):m},p=P(()=>!e.hideAction&&e.trigger.indexOf("contextmenu")!==-1?["click"]:e.hideAction);return()=>{const{prefixCls:g,arrow:m,showAction:h,overlayStyle:b,trigger:y,placement:S,align:$,getPopupContainer:x,transitionName:C,animation:O,overlayClassName:w}=e,M=BN(e,["prefixCls","arrow","showAction","overlayStyle","trigger","placement","align","getPopupContainer","transitionName","animation","overlayClassName"]);return f(ii,N(N({},M),{},{prefixCls:g,ref:l,popupClassName:te(w,{[`${g}-show-arrow`]:m}),popupStyle:b,builtinPlacements:kN,action:y,showAction:h,hideAction:p.value||[],popupPlacement:S,popupAlign:$,popupTransitionName:C,popupAnimation:O,popupVisible:a.value,stretch:c.value?"minWidth":"",onPopupVisibleChange:s,getPopupContainer:x}),{popup:u,default:d})}}}),FN=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0}}}}},LN=Qe("Wave",e=>[FN(e)]);function zN(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return t&&t[1]&&t[2]&&t[3]?!(t[1]===t[2]&&t[2]===t[3]):!0}function rd(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&zN(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function HN(e){const{borderTopColor:t,borderColor:n,backgroundColor:o}=getComputedStyle(e);return rd(t)?t:rd(n)?n:rd(o)?o:null}function ad(e){return Number.isNaN(e)?0:e}const jN=J({props:{target:Ne(),className:String},setup(e){const t=Y(null),[n,o]=pt(null),[r,a]=pt([]),[l,i]=pt(0),[s,u]=pt(0),[c,d]=pt(0),[p,g]=pt(0),[m,h]=pt(!1);function b(){const{target:w}=e,M=getComputedStyle(w);o(HN(w));const I=M.position==="static",{borderLeftWidth:_,borderTopWidth:D}=M;i(I?w.offsetLeft:ad(-parseFloat(_))),u(I?w.offsetTop:ad(-parseFloat(D))),d(w.offsetWidth),g(w.offsetHeight);const{borderTopLeftRadius:F,borderTopRightRadius:z,borderBottomLeftRadius:H,borderBottomRightRadius:T}=M;a([F,z,T,H].map(A=>ad(parseFloat(A))))}let y,S,$;const x=()=>{clearTimeout($),We.cancel(S),y==null||y.disconnect()},C=()=>{var w;const M=(w=t.value)===null||w===void 0?void 0:w.parentElement;M&&(zr(null,M),M.parentElement&&M.parentElement.removeChild(M))};Ve(()=>{x(),$=setTimeout(()=>{C()},5e3);const{target:w}=e;w&&(S=We(()=>{b(),h(!0)}),typeof ResizeObserver<"u"&&(y=new ResizeObserver(b),y.observe(w)))}),Je(()=>{x()});const O=w=>{w.propertyName==="opacity"&&C()};return()=>{if(!m.value)return null;const w={left:`${l.value}px`,top:`${s.value}px`,width:`${c.value}px`,height:`${p.value}px`,borderRadius:r.value.map(M=>`${M}px`).join(" ")};return n&&(w["--wave-color"]=n.value),f(rn,{appear:!0,name:"wave-motion",appearFromClass:"wave-motion-appear",appearActiveClass:"wave-motion-appear",appearToClass:"wave-motion-appear wave-motion-appear-active"},{default:()=>[f("div",{ref:t,class:e.className,style:w,onTransitionend:O},null)]})}}});function VN(e,t){const n=document.createElement("div");n.style.position="absolute",n.style.left="0px",n.style.top="0px",e==null||e.insertBefore(n,e==null?void 0:e.firstChild),zr(f(jN,{target:e,className:t},null),n)}function WN(e,t,n){function o(){var r;const a=Pn(e);!((r=n==null?void 0:n.value)===null||r===void 0)&&r.disabled||!a||VN(a,t.value)}return o}const Cg=J({compatConfig:{MODE:3},name:"Wave",props:{disabled:Boolean},setup(e,t){let{slots:n}=t;const o=Dn(),{prefixCls:r,wave:a}=Ee("wave",e),[,l]=LN(r),i=WN(o,P(()=>te(r.value,l.value)),a);let s;const u=()=>{Pn(o).removeEventListener("click",s,!0)};return Ve(()=>{ue(()=>e.disabled,()=>{u(),lt(()=>{const c=Pn(o);c==null||c.removeEventListener("click",s,!0),!(!c||c.nodeType!==1||e.disabled)&&(s=d=>{d.target.tagName==="INPUT"||!Tc(d.target)||!c.getAttribute||c.getAttribute("disabled")||c.disabled||c.className.includes("disabled")||c.className.includes("-leave")||i()},c.addEventListener("click",s,!0))})},{immediate:!0,flush:"post"})}),Je(()=>{u()}),()=>{var c;return(c=n.default)===null||c===void 0?void 0:c.call(n)[0]}}});function zs(e){return e==="danger"?{danger:!0}:{type:e}}const kx=()=>({prefixCls:String,type:String,htmlType:{type:String,default:"button"},shape:{type:String},size:{type:String},loading:{type:[Boolean,Object],default:()=>!1},disabled:{type:Boolean,default:void 0},ghost:{type:Boolean,default:void 0},block:{type:Boolean,default:void 0},danger:{type:Boolean,default:void 0},icon:V.any,href:String,target:String,title:String,onClick:Hr(),onMousedown:Hr()}),Jb=e=>{e&&(e.style.width="0px",e.style.opacity="0",e.style.transform="scale(0)")},e1=e=>{lt(()=>{e&&(e.style.width=`${e.scrollWidth}px`,e.style.opacity="1",e.style.transform="scale(1)")})},t1=e=>{e&&e.style&&(e.style.width=null,e.style.opacity=null,e.style.transform=null)},KN=J({compatConfig:{MODE:3},name:"LoadingIcon",props:{prefixCls:String,loading:[Boolean,Object],existIcon:Boolean},setup(e){return()=>{const{existIcon:t,prefixCls:n,loading:o}=e;if(t)return f("span",{class:`${n}-loading-icon`},[f(Un,null,null)]);const r=!!o;return f(rn,{name:`${n}-loading-icon-motion`,onBeforeEnter:Jb,onEnter:e1,onAfterEnter:t1,onBeforeLeave:e1,onLeave:a=>{setTimeout(()=>{Jb(a)})},onAfterLeave:t1},{default:()=>[r?f("span",{class:`${n}-loading-icon`},[f(Un,null,null)]):null]})}}}),n1=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),GN=e=>{const{componentCls:t,fontSize:n,lineWidth:o,colorPrimaryHover:r,colorErrorHover:a}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-o,[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},n1(`${t}-primary`,r),n1(`${t}-danger`,a)]}},XN=GN;function UN(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function YN(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function qN(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:v(v({},UN(e,t)),YN(e.componentCls,t))}}const QN=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:400,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"> span":{display:"inline-block"},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},"> a":{color:"currentColor"},"&:not(:disabled)":v({},Lo(e)),[`&-icon-only${t}-compact-item`]:{flex:"none"},[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:`calc(100% + ${e.lineWidth*2}px)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:`calc(100% + ${e.lineWidth*2}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},zo=(e,t)=>({"&:not(:disabled)":{"&:hover":e,"&:active":t}}),ZN=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),JN=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),Vf=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),Hs=(e,t,n,o,r,a,l)=>({[`&${e}-background-ghost`]:v(v({color:t||void 0,backgroundColor:"transparent",borderColor:n||void 0,boxShadow:"none"},zo(v({backgroundColor:"transparent"},a),v({backgroundColor:"transparent"},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:r||void 0}})}),xg=e=>({"&:disabled":v({},Vf(e))}),Bx=e=>v({},xg(e)),js=e=>({"&:disabled":{cursor:"not-allowed",color:e.colorTextDisabled}}),Fx=e=>v(v(v(v(v({},Bx(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),zo({color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),Hs(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:v(v(v({color:e.colorError,borderColor:e.colorError},zo({color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Hs(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),xg(e))}),ek=e=>v(v(v(v(v({},Bx(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),zo({color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),Hs(e.componentCls,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:v(v(v({backgroundColor:e.colorError,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`},zo({backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),Hs(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),xg(e))}),tk=e=>v(v({},Fx(e)),{borderStyle:"dashed"}),nk=e=>v(v(v({color:e.colorLink},zo({color:e.colorLinkHover},{color:e.colorLinkActive})),js(e)),{[`&${e.componentCls}-dangerous`]:v(v({color:e.colorError},zo({color:e.colorErrorHover},{color:e.colorErrorActive})),js(e))}),ok=e=>v(v(v({},zo({color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),js(e)),{[`&${e.componentCls}-dangerous`]:v(v({color:e.colorError},js(e)),zo({color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),rk=e=>v(v({},Vf(e)),{[`&${e.componentCls}:hover`]:v({},Vf(e))}),ak=e=>{const{componentCls:t}=e;return{[`${t}-default`]:Fx(e),[`${t}-primary`]:ek(e),[`${t}-dashed`]:tk(e),[`${t}-link`]:nk(e),[`${t}-text`]:ok(e),[`${t}-disabled`]:rk(e)}},wg=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,iconCls:o,controlHeight:r,fontSize:a,lineHeight:l,lineWidth:i,borderRadius:s,buttonPaddingHorizontal:u}=e,c=Math.max(0,(r-a*l)/2-i),d=u-i,p=`${n}-icon-only`;return[{[`${n}${t}`]:{fontSize:a,height:r,padding:`${c}px ${d}px`,borderRadius:s,[`&${p}`]:{width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},"> span":{transform:"scale(1.143)"}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`&:not(${p}) ${n}-loading-icon > ${o}`]:{marginInlineEnd:e.marginXS}}},{[`${n}${n}-circle${t}`]:ZN(e)},{[`${n}${n}-round${t}`]:JN(e)}]},lk=e=>wg(e),ik=e=>{const t=ze(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM});return wg(t,`${e.componentCls}-sm`)},sk=e=>{const t=ze(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG});return wg(t,`${e.componentCls}-lg`)},ck=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},uk=Qe("Button",e=>{const{controlTmpOutline:t,paddingContentHorizontal:n}=e,o=ze(e,{colorOutlineDefault:t,buttonPaddingHorizontal:n});return[QN(o),ik(o),lk(o),sk(o),ck(o),ak(o),XN(o),tl(e,{focus:!1}),qN(e)]}),dk=()=>({prefixCls:String,size:{type:String}}),Lx=ig(),Wf=J({compatConfig:{MODE:3},name:"AButtonGroup",props:dk(),setup(e,t){let{slots:n}=t;const{prefixCls:o,direction:r}=Ee("btn-group",e),[,,a]=Qr();Lx.useProvide(vt({size:P(()=>e.size)}));const l=P(()=>{const{size:i}=e;let s="";switch(i){case"large":s="lg";break;case"small":s="sm";break;case"middle":case void 0:break;default:bt(!i,"Button.Group","Invalid prop `size`.")}return{[`${o.value}`]:!0,[`${o.value}-${s}`]:s,[`${o.value}-rtl`]:r.value==="rtl",[a.value]:!0}});return()=>{var i;return f("div",{class:l.value},[mt((i=n.default)===null||i===void 0?void 0:i.call(n))])}}}),o1=/^[\u4e00-\u9fa5]{2}$/,r1=o1.test.bind(o1);function ki(e){return e==="text"||e==="link"}const qt=J({compatConfig:{MODE:3},name:"AButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:rt(kx(),{type:"default"}),slots:Object,setup(e,t){let{slots:n,attrs:o,emit:r,expose:a}=t;const{prefixCls:l,autoInsertSpaceInButton:i,direction:s,size:u}=Ee("btn",e),[c,d]=uk(l),p=Lx.useInject(),g=gn(),m=P(()=>{var T;return(T=e.disabled)!==null&&T!==void 0?T:g.value}),h=Y(null),b=Y(void 0);let y=!1;const S=Y(!1),$=Y(!1),x=P(()=>i.value!==!1),{compactSize:C,compactItemClassnames:O}=fr(l,s),w=P(()=>typeof e.loading=="object"&&e.loading.delay?e.loading.delay||!0:!!e.loading);ue(w,T=>{clearTimeout(b.value),typeof w.value=="number"?b.value=setTimeout(()=>{S.value=T},w.value):S.value=T},{immediate:!0});const M=P(()=>{const{type:T,shape:A="default",ghost:R,block:E,danger:k}=e,B=l.value,L={large:"lg",small:"sm",middle:void 0},j=C.value||(p==null?void 0:p.size)||u.value,K=j&&L[j]||"";return[O.value,{[d.value]:!0,[`${B}`]:!0,[`${B}-${A}`]:A!=="default"&&A,[`${B}-${T}`]:T,[`${B}-${K}`]:K,[`${B}-loading`]:S.value,[`${B}-background-ghost`]:R&&!ki(T),[`${B}-two-chinese-chars`]:$.value&&x.value,[`${B}-block`]:E,[`${B}-dangerous`]:!!k,[`${B}-rtl`]:s.value==="rtl"}]}),I=()=>{const T=h.value;if(!T||i.value===!1)return;const A=T.textContent;y&&r1(A)?$.value||($.value=!0):$.value&&($.value=!1)},_=T=>{if(S.value||m.value){T.preventDefault();return}r("click",T)},D=T=>{r("mousedown",T)},F=(T,A)=>{const R=A?" ":"";if(T.type===Gp){let E=T.children.trim();return r1(E)&&(E=E.split("").join(R)),f("span",null,[E])}return T};return Le(()=>{bt(!(e.ghost&&ki(e.type)),"Button","`link` or `text` button can't be a `ghost` button.")}),Ve(I),ao(I),Je(()=>{b.value&&clearTimeout(b.value)}),a({focus:()=>{var T;(T=h.value)===null||T===void 0||T.focus()},blur:()=>{var T;(T=h.value)===null||T===void 0||T.blur()}}),()=>{var T,A;const{icon:R=(T=n.icon)===null||T===void 0?void 0:T.call(n)}=e,E=mt((A=n.default)===null||A===void 0?void 0:A.call(n));y=E.length===1&&!R&&!ki(e.type);const{type:k,htmlType:B,href:L,title:j,target:K}=e,G=S.value?"loading":R,U=v(v({},o),{title:j,disabled:m.value,class:[M.value,o.class,{[`${l.value}-icon-only`]:E.length===0&&!!G}],onClick:_,onMousedown:D});m.value||delete U.disabled;const X=R&&!S.value?R:f(KN,{existIcon:!!R,prefixCls:l.value,loading:!!S.value},null),ee=E.map(Q=>F(Q,y&&x.value));if(L!==void 0)return c(f("a",N(N({},U),{},{href:L,target:K,ref:h}),[X,ee]));let oe=f("button",N(N({},U),{},{ref:h,type:B}),[X,ee]);if(!ki(k)){const Q=function(){return oe}();oe=f(Cg,{ref:"wave",disabled:!!S.value},{default:()=>[Q]})}return c(oe)}}});qt.Group=Wf;qt.install=function(e){return e.component(qt.name,qt),e.component(Wf.name,Wf),e};const zx=()=>({arrow:Ge([Boolean,Object]),trigger:{type:[Array,String]},menu:Ne(),overlay:V.any,visible:Ce(),open:Ce(),disabled:Ce(),danger:Ce(),autofocus:Ce(),align:Ne(),getPopupContainer:Function,prefixCls:String,transitionName:String,placement:String,overlayClassName:String,overlayStyle:Ne(),forceRender:Ce(),mouseEnterDelay:Number,mouseLeaveDelay:Number,openClassName:String,minOverlayWidthMatchTrigger:Ce(),destroyPopupOnHide:Ce(),onVisibleChange:{type:Function},"onUpdate:visible":{type:Function},onOpenChange:{type:Function},"onUpdate:open":{type:Function}}),ld=kx(),fk=()=>v(v({},zx()),{type:ld.type,size:String,htmlType:ld.htmlType,href:String,disabled:Ce(),prefixCls:String,icon:V.any,title:String,loading:ld.loading,onClick:Hr()});var pk={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};const vk=pk;function a1(e){for(var t=1;t{const{componentCls:t,antCls:n,paddingXS:o,opacityLoading:r}=e;return{[`${t}-button`]:{whiteSpace:"nowrap",[`&${n}-btn-group > ${n}-btn`]:{[`&-loading, &-loading + ${n}-btn`]:{cursor:"default",pointerEvents:"none",opacity:r},[`&:last-child:not(:first-child):not(${n}-btn-icon-only)`]:{paddingInline:o}}}}},mk=e=>{const{componentCls:t,menuCls:n,colorError:o,colorTextLightSolid:r}=e,a=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:o,"&:hover":{color:r,backgroundColor:o}}}}}},bk=e=>{const{componentCls:t,menuCls:n,zIndexPopup:o,dropdownArrowDistance:r,dropdownArrowOffset:a,sizePopupArrow:l,antCls:i,iconCls:s,motionDurationMid:u,dropdownPaddingVertical:c,fontSize:d,dropdownEdgeChildPadding:p,colorTextDisabled:g,fontSizeIcon:m,controlPaddingHorizontal:h,colorBgElevated:b,boxShadowPopoverArrow:y}=e;return[{[t]:v(v({},et(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:o,display:"block","&::before":{position:"absolute",insetBlock:-r+l/2,zIndex:-9999,opacity:1e-4,content:'""'},[`${t}-wrap`]:{position:"relative",[`${i}-btn > ${s}-down`]:{fontSize:m},[`${s}-down::before`]:{transition:`transform ${u}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[` + &-show-arrow${t}-placement-topLeft, + &-show-arrow${t}-placement-top, + &-show-arrow${t}-placement-topRight + `]:{paddingBottom:r},[` + &-show-arrow${t}-placement-bottomLeft, + &-show-arrow${t}-placement-bottom, + &-show-arrow${t}-placement-bottomRight + `]:{paddingTop:r},[`${t}-arrow`]:v({position:"absolute",zIndex:1,display:"block"},Iv(l,e.borderRadiusXS,e.borderRadiusOuter,b,y)),[` + &-placement-top > ${t}-arrow, + &-placement-topLeft > ${t}-arrow, + &-placement-topRight > ${t}-arrow + `]:{bottom:r,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${t}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${t}-arrow`]:{left:{_skip_check_:!0,value:a}},[`&-placement-topRight > ${t}-arrow`]:{right:{_skip_check_:!0,value:a}},[` + &-placement-bottom > ${t}-arrow, + &-placement-bottomLeft > ${t}-arrow, + &-placement-bottomRight > ${t}-arrow + `]:{top:r,transform:"translateY(-100%)"},[`&-placement-bottom > ${t}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateY(-100%) translateX(-50%)"},[`&-placement-bottomLeft > ${t}-arrow`]:{left:{_skip_check_:!0,value:a}},[`&-placement-bottomRight > ${t}-arrow`]:{right:{_skip_check_:!0,value:a}},[`&${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomLeft, + &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomLeft, + &${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottom, + &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottom, + &${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomRight, + &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Fc},[`&${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topLeft, + &${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topLeft, + &${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-top, + &${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-top, + &${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topRight, + &${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topRight`]:{animationName:zc},[`&${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomLeft, + &${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottom, + &${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Lc},[`&${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topLeft, + &${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-top, + &${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Hc}})},{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:o,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul,li":{listStyle:"none"},ul:{marginInline:"0.3em"}},[`${t}, ${t}-menu-submenu`]:{[n]:v(v({padding:p,listStyleType:"none",backgroundColor:b,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Lo(e)),{[`${n}-item-group-title`]:{padding:`${c}px ${h}px`,color:e.colorTextDescription,transition:`all ${u}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center",borderRadius:e.borderRadiusSM},[`${n}-item-icon`]:{minWidth:d,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${u}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:v(v({clear:"both",margin:0,padding:`${c}px ${h}px`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${u}`,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Lo(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:g,cursor:"not-allowed","&:hover":{color:g,backgroundColor:b,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${e.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:m,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${e.marginXS}px`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:h+e.fontSizeSM},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:g,backgroundColor:b,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[yo(e,"slide-up"),yo(e,"slide-down"),za(e,"move-up"),za(e,"move-down"),el(e,"zoom-big")]]},Hx=Qe("Dropdown",(e,t)=>{let{rootPrefixCls:n}=t;const{marginXXS:o,sizePopupArrow:r,controlHeight:a,fontSize:l,lineHeight:i,paddingXXS:s,componentCls:u,borderRadiusOuter:c,borderRadiusLG:d}=e,p=(a-l*i)/2,{dropdownArrowOffset:g}=Mx({sizePopupArrow:r,contentRadius:d,borderRadiusOuter:c}),m=ze(e,{menuCls:`${u}-menu`,rootPrefixCls:n,dropdownArrowDistance:r/2+o,dropdownArrowOffset:g,dropdownPaddingVertical:p,dropdownEdgeChildPadding:s});return[bk(m),hk(m),mk(m)]},e=>({zIndexPopup:e.zIndexPopupBase+50}));var yk=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{r("update:visible",p),r("visibleChange",p),r("update:open",p),r("openChange",p)},{prefixCls:l,direction:i,getPopupContainer:s}=Ee("dropdown",e),u=P(()=>`${l.value}-button`),[c,d]=Hx(l);return()=>{var p,g;const m=v(v({},e),o),{type:h="default",disabled:b,danger:y,loading:S,htmlType:$,class:x="",overlay:C=(p=n.overlay)===null||p===void 0?void 0:p.call(n),trigger:O,align:w,open:M,visible:I,onVisibleChange:_,placement:D=i.value==="rtl"?"bottomLeft":"bottomRight",href:F,title:z,icon:H=((g=n.icon)===null||g===void 0?void 0:g.call(n))||f(Pg,null,null),mouseEnterDelay:T,mouseLeaveDelay:A,overlayClassName:R,overlayStyle:E,destroyPopupOnHide:k,onClick:B,"onUpdate:open":L}=m,j=yk(m,["type","disabled","danger","loading","htmlType","class","overlay","trigger","align","open","visible","onVisibleChange","placement","href","title","icon","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","onClick","onUpdate:open"]),K={align:w,disabled:b,trigger:b?[]:O,placement:D,getPopupContainer:s==null?void 0:s.value,onOpenChange:a,mouseEnterDelay:T,mouseLeaveDelay:A,open:M??I,overlayClassName:R,overlayStyle:E,destroyPopupOnHide:k},G=f(qt,{danger:y,type:h,disabled:b,loading:S,onClick:B,htmlType:$,href:F,title:z},{default:n.default}),U=f(qt,{danger:y,type:h,icon:H},null);return c(f(Sk,N(N({},j),{},{class:te(u.value,x,d.value)}),{default:()=>[n.leftButton?n.leftButton({button:G}):G,f(ar,K,{default:()=>[n.rightButton?n.rightButton({button:U}):U],overlay:()=>C})]}))}}});var $k={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};const Ck=$k;function l1(e){for(var t=1;tXe(jx,void 0),Wx=e=>{var t,n,o;const{prefixCls:r,mode:a,selectable:l,validator:i,onClick:s,expandIcon:u}=Vx()||{};Ke(jx,{prefixCls:P(()=>{var c,d;return(d=(c=e.prefixCls)===null||c===void 0?void 0:c.value)!==null&&d!==void 0?d:r==null?void 0:r.value}),mode:P(()=>{var c,d;return(d=(c=e.mode)===null||c===void 0?void 0:c.value)!==null&&d!==void 0?d:a==null?void 0:a.value}),selectable:P(()=>{var c,d;return(d=(c=e.selectable)===null||c===void 0?void 0:c.value)!==null&&d!==void 0?d:l==null?void 0:l.value}),validator:(t=e.validator)!==null&&t!==void 0?t:i,onClick:(n=e.onClick)!==null&&n!==void 0?n:s,expandIcon:(o=e.expandIcon)!==null&&o!==void 0?o:u==null?void 0:u.value})},Kx=J({compatConfig:{MODE:3},name:"ADropdown",inheritAttrs:!1,props:rt(zx(),{mouseEnterDelay:.15,mouseLeaveDelay:.1,placement:"bottomLeft",trigger:"hover"}),slots:Object,setup(e,t){let{slots:n,attrs:o,emit:r}=t;const{prefixCls:a,rootPrefixCls:l,direction:i,getPopupContainer:s}=Ee("dropdown",e),[u,c]=Hx(a),d=P(()=>{const{placement:b="",transitionName:y}=e;return y!==void 0?y:b.includes("top")?`${l.value}-slide-down`:`${l.value}-slide-up`});Wx({prefixCls:P(()=>`${a.value}-menu`),expandIcon:P(()=>f("span",{class:`${a.value}-menu-submenu-arrow`},[f(sr,{class:`${a.value}-menu-submenu-arrow-icon`},null)])),mode:P(()=>"vertical"),selectable:P(()=>!1),onClick:()=>{},validator:b=>{yt()}});const p=()=>{var b,y,S;const $=e.overlay||((b=n.overlay)===null||b===void 0?void 0:b.call(n)),x=Array.isArray($)?$[0]:$;if(!x)return null;const C=x.props||{};bt(!C.mode||C.mode==="vertical","Dropdown",`mode="${C.mode}" is not supported for Dropdown's Menu.`);const{selectable:O=!1,expandIcon:w=(S=(y=x.children)===null||y===void 0?void 0:y.expandIcon)===null||S===void 0?void 0:S.call(y)}=C,M=typeof w<"u"&&kt(w)?w:f("span",{class:`${a.value}-menu-submenu-arrow`},[f(sr,{class:`${a.value}-menu-submenu-arrow-icon`},null)]);return kt(x)?ut(x,{mode:"vertical",selectable:O,expandIcon:()=>M}):x},g=P(()=>{const b=e.placement;if(!b)return i.value==="rtl"?"bottomRight":"bottomLeft";if(b.includes("Center")){const y=b.slice(0,b.indexOf("Center"));return bt(!b.includes("Center"),"Dropdown",`You are using '${b}' placement in Dropdown, which is deprecated. Try to use '${y}' instead.`),y}return b}),m=P(()=>typeof e.visible=="boolean"?e.visible:e.open),h=b=>{r("update:visible",b),r("visibleChange",b),r("update:open",b),r("openChange",b)};return()=>{var b,y;const{arrow:S,trigger:$,disabled:x,overlayClassName:C}=e,O=(b=n.default)===null||b===void 0?void 0:b.call(n)[0],w=ut(O,v({class:te((y=O==null?void 0:O.props)===null||y===void 0?void 0:y.class,{[`${a.value}-rtl`]:i.value==="rtl"},`${a.value}-trigger`)},x?{disabled:x}:{})),M=te(C,c.value,{[`${a.value}-rtl`]:i.value==="rtl"}),I=x?[]:$;let _;I&&I.includes("contextmenu")&&(_=!0);const D=Ix({arrowPointAtCenter:typeof S=="object"&&S.pointAtCenter,autoAdjustOverflow:!0}),F=qe(v(v(v({},e),o),{visible:m.value,builtinPlacements:D,overlayClassName:M,arrow:!!S,alignPoint:_,prefixCls:a.value,getPopupContainer:s==null?void 0:s.value,transitionName:d.value,trigger:I,onVisibleChange:h,placement:g.value}),["overlay","onUpdate:visible"]);return u(f(Nx,F,{default:()=>[w],overlay:p}))}}});Kx.Button=Vs;const ar=Kx;var wk=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({prefixCls:String,href:String,separator:V.any,dropdownProps:Ne(),overlay:V.any,onClick:Hr()}),Ws=J({compatConfig:{MODE:3},name:"ABreadcrumbItem",inheritAttrs:!1,__ANT_BREADCRUMB_ITEM:!0,props:Ok(),slots:Object,setup(e,t){let{slots:n,attrs:o,emit:r}=t;const{prefixCls:a}=Ee("breadcrumb",e),l=(s,u)=>{const c=Nt(n,e,"overlay");return c?f(ar,N(N({},e.dropdownProps),{},{overlay:c,placement:"bottom"}),{default:()=>[f("span",{class:`${u}-overlay-link`},[s,f(Nc,null,null)])]}):s},i=s=>{r("click",s)};return()=>{var s;const u=(s=Nt(n,e,"separator"))!==null&&s!==void 0?s:"/",c=Nt(n,e),{class:d,style:p}=o,g=wk(o,["class","style"]);let m;return e.href!==void 0?m=f("a",N({class:`${a.value}-link`,onClick:i},g),[c]):m=f("span",N({class:`${a.value}-link`,onClick:i},g),[c]),m=l(m,a.value),c!=null?f("li",{class:d,style:p},[m,u&&f("span",{class:`${a.value}-separator`},[u])]):null}}});function Pk(e,t,n,o){let r=n?n.call(o,e,t):void 0;if(r!==void 0)return!!r;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;const a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;const i=Object.prototype.hasOwnProperty.bind(t);for(let s=0;s{Ke(Gx,e)},Go=()=>Xe(Gx),Ux=Symbol("ForceRenderKey"),Ik=e=>{Ke(Ux,e)},Yx=()=>Xe(Ux,!1),qx=Symbol("menuFirstLevelContextKey"),Qx=e=>{Ke(qx,e)},Tk=()=>Xe(qx,!0),Ks=J({compatConfig:{MODE:3},name:"MenuContextProvider",inheritAttrs:!1,props:{mode:{type:String,default:void 0},overflowDisabled:{type:Boolean,default:void 0}},setup(e,t){let{slots:n}=t;const o=Go(),r=v({},o);return e.mode!==void 0&&(r.mode=Be(e,"mode")),e.overflowDisabled!==void 0&&(r.overflowDisabled=Be(e,"overflowDisabled")),Xx(r),()=>{var a;return(a=n.default)===null||a===void 0?void 0:a.call(n)}}}),Mk=Xx,Zx=Symbol("siderCollapsed"),Jx=Symbol("siderHookProvider"),Bi="$$__vc-menu-more__key",ew=Symbol("KeyPathContext"),Tg=()=>Xe(ew,{parentEventKeys:P(()=>[]),parentKeys:P(()=>[]),parentInfo:{}}),Ek=(e,t,n)=>{const{parentEventKeys:o,parentKeys:r}=Tg(),a=P(()=>[...o.value,e]),l=P(()=>[...r.value,t]);return Ke(ew,{parentEventKeys:a,parentKeys:l,parentInfo:n}),l},tw=Symbol("measure"),i1=J({compatConfig:{MODE:3},setup(e,t){let{slots:n}=t;return Ke(tw,!0),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}),Mg=()=>Xe(tw,!1),_k=Ek;function nw(e){const{mode:t,rtl:n,inlineIndent:o}=Go();return P(()=>t.value!=="inline"?null:n.value?{paddingRight:`${e.value*o.value}px`}:{paddingLeft:`${e.value*o.value}px`})}let Dk=0;const Ak=()=>({id:String,role:String,disabled:Boolean,danger:Boolean,title:{type:[String,Boolean],default:void 0},icon:V.any,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,originItemValue:Ne()}),ja=J({compatConfig:{MODE:3},name:"AMenuItem",inheritAttrs:!1,props:Ak(),slots:Object,setup(e,t){let{slots:n,emit:o,attrs:r}=t;const a=Dn(),l=Mg(),i=typeof a.vnode.key=="symbol"?String(a.vnode.key):a.vnode.key;bt(typeof a.vnode.key!="symbol","MenuItem",`MenuItem \`:key="${String(i)}"\` not support Symbol type`);const s=`menu_item_${++Dk}_$$_${i}`,{parentEventKeys:u,parentKeys:c}=Tg(),{prefixCls:d,activeKeys:p,disabled:g,changeActiveKeys:m,rtl:h,inlineCollapsed:b,siderCollapsed:y,onItemClick:S,selectedKeys:$,registerMenuInfo:x,unRegisterMenuInfo:C}=Go(),O=Tk(),w=Y(!1),M=P(()=>[...c.value,i]);x(s,{eventKey:s,key:i,parentEventKeys:u,parentKeys:c,isLeaf:!0}),Je(()=>{C(s)}),ue(p,()=>{w.value=!!p.value.find(L=>L===i)},{immediate:!0});const _=P(()=>g.value||e.disabled),D=P(()=>$.value.includes(i)),F=P(()=>{const L=`${d.value}-item`;return{[`${L}`]:!0,[`${L}-danger`]:e.danger,[`${L}-active`]:w.value,[`${L}-selected`]:D.value,[`${L}-disabled`]:_.value}}),z=L=>({key:i,eventKey:s,keyPath:M.value,eventKeyPath:[...u.value,s],domEvent:L,item:v(v({},e),r)}),H=L=>{if(_.value)return;const j=z(L);o("click",L),S(j)},T=L=>{_.value||(m(M.value),o("mouseenter",L))},A=L=>{_.value||(m([]),o("mouseleave",L))},R=L=>{if(o("keydown",L),L.which===$e.ENTER){const j=z(L);o("click",L),S(j)}},E=L=>{m(M.value),o("focus",L)},k=(L,j)=>{const K=f("span",{class:`${d.value}-title-content`},[j]);return(!L||kt(j)&&j.type==="span")&&j&&b.value&&O&&typeof j=="string"?f("div",{class:`${d.value}-inline-collapsed-noicon`},[j.charAt(0)]):K},B=nw(P(()=>M.value.length));return()=>{var L,j,K,G,U;if(l)return null;const X=(L=e.title)!==null&&L!==void 0?L:(j=n.title)===null||j===void 0?void 0:j.call(n),ee=mt((K=n.default)===null||K===void 0?void 0:K.call(n)),oe=ee.length;let Q=X;typeof X>"u"?Q=O&&oe?ee:"":X===!1&&(Q="");const W={title:Q};!y.value&&!b.value&&(W.title=null,W.open=!1);const q={};e.role==="option"&&(q["aria-selected"]=D.value);const re=(G=e.icon)!==null&&G!==void 0?G:(U=n.icon)===null||U===void 0?void 0:U.call(n,e);return f(oo,N(N({},W),{},{placement:h.value?"left":"right",overlayClassName:`${d.value}-inline-collapsed-tooltip`}),{default:()=>[f(xa.Item,N(N(N({component:"li"},r),{},{id:e.id,style:v(v({},r.style||{}),B.value),class:[F.value,{[`${r.class}`]:!!r.class,[`${d.value}-item-only-child`]:(re?oe+1:oe)===1}],role:e.role||"menuitem",tabindex:e.disabled?null:-1,"data-menu-id":i,"aria-disabled":e.disabled},q),{},{onMouseenter:T,onMouseleave:A,onClick:H,onKeydown:R,onFocus:E,title:typeof X=="string"?X:void 0}),{default:()=>[ut(typeof re=="function"?re(e.originItemValue):re,{class:`${d.value}-item-icon`},!1),k(re,ee)]})]})}}}),or={adjustX:1,adjustY:1},Rk={topLeft:{points:["bl","tl"],overflow:or,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:or,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:or,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:or,offset:[4,0]}},Nk={topLeft:{points:["bl","tl"],overflow:or,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:or,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:or,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:or,offset:[4,0]}},kk={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},s1=J({compatConfig:{MODE:3},name:"PopupTrigger",inheritAttrs:!1,props:{prefixCls:String,mode:String,visible:Boolean,popupClassName:String,popupOffset:Array,disabled:Boolean,onVisibleChange:Function},slots:Object,emits:["visibleChange"],setup(e,t){let{slots:n,emit:o}=t;const r=Y(!1),{getPopupContainer:a,rtl:l,subMenuOpenDelay:i,subMenuCloseDelay:s,builtinPlacements:u,triggerSubMenuAction:c,forceSubMenuRender:d,motion:p,defaultMotions:g,rootClassName:m}=Go(),h=Yx(),b=P(()=>l.value?v(v({},Nk),u.value):v(v({},Rk),u.value)),y=P(()=>kk[e.mode]),S=Y();ue(()=>e.visible,C=>{We.cancel(S.value),S.value=We(()=>{r.value=C})},{immediate:!0}),Je(()=>{We.cancel(S.value)});const $=C=>{o("visibleChange",C)},x=P(()=>{var C,O;const w=p.value||((C=g.value)===null||C===void 0?void 0:C[e.mode])||((O=g.value)===null||O===void 0?void 0:O.other),M=typeof w=="function"?w():w;return M?bo(M.name,{css:!0}):void 0});return()=>{const{prefixCls:C,popupClassName:O,mode:w,popupOffset:M,disabled:I}=e;return f(ii,{prefixCls:C,popupClassName:te(`${C}-popup`,{[`${C}-rtl`]:l.value},O,m.value),stretch:w==="horizontal"?"minWidth":null,getPopupContainer:a.value,builtinPlacements:b.value,popupPlacement:y.value,popupVisible:r.value,popupAlign:M&&{offset:M},action:I?[]:[c.value],mouseEnterDelay:i.value,mouseLeaveDelay:s.value,onPopupVisibleChange:$,forceRender:h||d.value,popupAnimation:x.value},{popup:n.popup,default:n.default})}}}),ow=(e,t)=>{let{slots:n,attrs:o}=t;var r;const{prefixCls:a,mode:l}=Go();return f("ul",N(N({},o),{},{class:te(a.value,`${a.value}-sub`,`${a.value}-${l.value==="inline"?"inline":"vertical"}`),"data-menu-list":!0}),[(r=n.default)===null||r===void 0?void 0:r.call(n)])};ow.displayName="SubMenuList";const rw=ow,Bk=J({compatConfig:{MODE:3},name:"InlineSubMenuList",inheritAttrs:!1,props:{id:String,open:Boolean,keyPath:Array},setup(e,t){let{slots:n}=t;const o=P(()=>"inline"),{motion:r,mode:a,defaultMotions:l}=Go(),i=P(()=>a.value===o.value),s=Z(!i.value),u=P(()=>i.value?e.open:!1);ue(a,()=>{i.value&&(s.value=!1)},{flush:"post"});const c=P(()=>{var d,p;const g=r.value||((d=l.value)===null||d===void 0?void 0:d[o.value])||((p=l.value)===null||p===void 0?void 0:p.other),m=typeof g=="function"?g():g;return v(v({},m),{appear:e.keyPath.length<=1})});return()=>{var d;return s.value?null:f(Ks,{mode:o.value},{default:()=>[f(rn,c.value,{default:()=>[Kt(f(rw,{id:e.id},{default:()=>[(d=n.default)===null||d===void 0?void 0:d.call(n)]}),[[Wn,u.value]])]})]})}}});let c1=0;const Fk=()=>({icon:V.any,title:V.any,disabled:Boolean,level:Number,popupClassName:String,popupOffset:Array,internalPopupClose:Boolean,eventKey:String,expandIcon:Function,theme:String,onMouseenter:Function,onMouseleave:Function,onTitleClick:Function,originItemValue:Ne()}),Va=J({compatConfig:{MODE:3},name:"ASubMenu",inheritAttrs:!1,props:Fk(),slots:Object,setup(e,t){let{slots:n,attrs:o,emit:r}=t;var a,l;Qx(!1);const i=Mg(),s=Dn(),u=typeof s.vnode.key=="symbol"?String(s.vnode.key):s.vnode.key;bt(typeof s.vnode.key!="symbol","SubMenu",`SubMenu \`:key="${String(u)}"\` not support Symbol type`);const c=gf(u)?u:`sub_menu_${++c1}_$$_not_set_key`,d=(a=e.eventKey)!==null&&a!==void 0?a:gf(u)?`sub_menu_${++c1}_$$_${u}`:c,{parentEventKeys:p,parentInfo:g,parentKeys:m}=Tg(),h=P(()=>[...m.value,c]),b=Y([]),y={eventKey:d,key:c,parentEventKeys:p,childrenEventKeys:b,parentKeys:m};(l=g.childrenEventKeys)===null||l===void 0||l.value.push(d),Je(()=>{var fe;g.childrenEventKeys&&(g.childrenEventKeys.value=(fe=g.childrenEventKeys)===null||fe===void 0?void 0:fe.value.filter(Se=>Se!=d))}),_k(d,c,y);const{prefixCls:S,activeKeys:$,disabled:x,changeActiveKeys:C,mode:O,inlineCollapsed:w,openKeys:M,overflowDisabled:I,onOpenChange:_,registerMenuInfo:D,unRegisterMenuInfo:F,selectedSubMenuKeys:z,expandIcon:H,theme:T}=Go(),A=u!=null,R=!i&&(Yx()||!A);Ik(R),(i&&A||!i&&!A||R)&&(D(d,y),Je(()=>{F(d)}));const E=P(()=>`${S.value}-submenu`),k=P(()=>x.value||e.disabled),B=Y(),L=Y(),j=P(()=>M.value.includes(c)),K=P(()=>!I.value&&j.value),G=P(()=>z.value.includes(c)),U=Y(!1);ue($,()=>{U.value=!!$.value.find(fe=>fe===c)},{immediate:!0});const X=fe=>{k.value||(r("titleClick",fe,c),O.value==="inline"&&_(c,!j.value))},ee=fe=>{k.value||(C(h.value),r("mouseenter",fe))},oe=fe=>{k.value||(C([]),r("mouseleave",fe))},Q=nw(P(()=>h.value.length)),W=fe=>{O.value!=="inline"&&_(c,fe)},q=()=>{C(h.value)},re=d&&`${d}-popup`,le=P(()=>te(S.value,`${S.value}-${e.theme||T.value}`,e.popupClassName)),ye=(fe,Se)=>{if(!Se)return w.value&&!m.value.length&&fe&&typeof fe=="string"?f("div",{class:`${S.value}-inline-collapsed-noicon`},[fe.charAt(0)]):f("span",{class:`${S.value}-title-content`},[fe]);const Ie=kt(fe)&&fe.type==="span";return f(nt,null,[ut(typeof Se=="function"?Se(e.originItemValue):Se,{class:`${S.value}-item-icon`},!1),Ie?fe:f("span",{class:`${S.value}-title-content`},[fe])])},me=P(()=>O.value!=="inline"&&h.value.length>1?"vertical":O.value),ce=P(()=>O.value==="horizontal"?"vertical":O.value),se=P(()=>me.value==="horizontal"?"vertical":me.value),ie=()=>{var fe,Se;const Ie=E.value,ge=(fe=e.icon)!==null&&fe!==void 0?fe:(Se=n.icon)===null||Se===void 0?void 0:Se.call(n,e),Oe=e.expandIcon||n.expandIcon||H.value,we=ye(Nt(n,e,"title"),ge);return f("div",{style:Q.value,class:`${Ie}-title`,tabindex:k.value?null:-1,ref:B,title:typeof we=="string"?we:null,"data-menu-id":c,"aria-expanded":K.value,"aria-haspopup":!0,"aria-controls":re,"aria-disabled":k.value,onClick:X,onFocus:q},[we,O.value!=="horizontal"&&Oe?Oe(v(v({},e),{isOpen:K.value})):f("i",{class:`${Ie}-arrow`},null)])};return()=>{var fe;if(i)return A?(fe=n.default)===null||fe===void 0?void 0:fe.call(n):null;const Se=E.value;let Ie=()=>null;if(!I.value&&O.value!=="inline"){const ge=O.value==="horizontal"?[0,8]:[10,0];Ie=()=>f(s1,{mode:me.value,prefixCls:Se,visible:!e.internalPopupClose&&K.value,popupClassName:le.value,popupOffset:e.popupOffset||ge,disabled:k.value,onVisibleChange:W},{default:()=>[ie()],popup:()=>f(Ks,{mode:se.value},{default:()=>[f(rw,{id:re,ref:L},{default:n.default})]})})}else Ie=()=>f(s1,null,{default:ie});return f(Ks,{mode:ce.value},{default:()=>[f(xa.Item,N(N({component:"li"},o),{},{role:"none",class:te(Se,`${Se}-${O.value}`,o.class,{[`${Se}-open`]:K.value,[`${Se}-active`]:U.value,[`${Se}-selected`]:G.value,[`${Se}-disabled`]:k.value}),onMouseenter:ee,onMouseleave:oe,"data-submenu-id":c}),{default:()=>f(nt,null,[Ie(),!I.value&&f(Bk,{id:re,open:K.value,keyPath:h.value},{default:n.default})])})]})}}});function aw(e,t){return e.classList?e.classList.contains(t):` ${e.className} `.indexOf(` ${t} `)>-1}function u1(e,t){e.classList?e.classList.add(t):aw(e,t)||(e.className=`${e.className} ${t}`)}function d1(e,t){if(e.classList)e.classList.remove(t);else if(aw(e,t)){const n=e.className;e.className=` ${n} `.replace(` ${t} `," ")}}const Lk=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant-motion-collapse",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return{name:e,appear:t,css:!0,onBeforeEnter:n=>{n.style.height="0px",n.style.opacity="0",u1(n,e)},onEnter:n=>{lt(()=>{n.style.height=`${n.scrollHeight}px`,n.style.opacity="1"})},onAfterEnter:n=>{n&&(d1(n,e),n.style.height=null,n.style.opacity=null)},onBeforeLeave:n=>{u1(n,e),n.style.height=`${n.offsetHeight}px`,n.style.opacity=null},onLeave:n=>{setTimeout(()=>{n.style.height="0px",n.style.opacity="0"})},onAfterLeave:n=>{n&&(d1(n,e),n.style&&(n.style.height=null,n.style.opacity=null))}}},Kc=Lk,zk=()=>({title:V.any,originItemValue:Ne()}),Gs=J({compatConfig:{MODE:3},name:"AMenuItemGroup",inheritAttrs:!1,props:zk(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r}=Go(),a=P(()=>`${r.value}-item-group`),l=Mg();return()=>{var i,s;return l?(i=n.default)===null||i===void 0?void 0:i.call(n):f("li",N(N({},o),{},{onClick:u=>u.stopPropagation(),class:a.value}),[f("div",{title:typeof e.title=="string"?e.title:void 0,class:`${a.value}-title`},[Nt(n,e,"title")]),f("ul",{class:`${a.value}-list`},[(s=n.default)===null||s===void 0?void 0:s.call(n)])])}}}),Hk=()=>({prefixCls:String,dashed:Boolean}),Xs=J({compatConfig:{MODE:3},name:"AMenuDivider",props:Hk(),setup(e){const{prefixCls:t}=Go(),n=P(()=>({[`${t.value}-item-divider`]:!0,[`${t.value}-item-divider-dashed`]:!!e.dashed}));return()=>f("li",{class:n.value},null)}});var jk=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{if(o&&typeof o=="object"){const a=o,{label:l,children:i,key:s,type:u}=a,c=jk(a,["label","children","key","type"]),d=s??`tmp-${r}`,p=n?n.parentKeys.slice():[],g=[],m={eventKey:d,key:d,parentEventKeys:Z(p),parentKeys:Z(p),childrenEventKeys:Z(g),isLeaf:!1};if(i||u==="group"){if(u==="group"){const b=Kf(i,t,n);return f(Gs,N(N({key:d},c),{},{title:l,originItemValue:o}),{default:()=>[b]})}t.set(d,m),n&&n.childrenEventKeys.push(d);const h=Kf(i,t,{childrenEventKeys:g,parentKeys:[].concat(p,d)});return f(Va,N(N({key:d},c),{},{title:l,originItemValue:o}),{default:()=>[h]})}return u==="divider"?f(Xs,N({key:d},c),null):(m.isLeaf=!0,t.set(d,m),f(ja,N(N({key:d},c),{},{originItemValue:o}),{default:()=>[l]}))}return null}).filter(o=>o)}function Vk(e){const t=Y([]),n=Y(!1),o=Y(new Map);return ue(()=>e.items,()=>{const r=new Map;n.value=!1,e.items?(n.value=!0,t.value=Kf(e.items,r)):t.value=void 0,o.value=r},{immediate:!0,deep:!0}),{itemsNodes:t,store:o,hasItmes:n}}const Wk=e=>{const{componentCls:t,motionDurationSlow:n,menuHorizontalHeight:o,colorSplit:r,lineWidth:a,lineType:l,menuItemPaddingInline:i}=e;return{[`${t}-horizontal`]:{lineHeight:`${o}px`,border:0,borderBottom:`${a}px ${l} ${r}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:i},[`> ${t}-item:hover, + > ${t}-item-active, + > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},Kk=e=>{let{componentCls:t,menuArrowOffset:n}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical, + ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${n})`},"&::after":{transform:`rotate(45deg) translateY(${n})`}}}}},f1=e=>v({},Fo(e)),p1=(e,t)=>{const{componentCls:n,colorItemText:o,colorItemTextSelected:r,colorGroupTitle:a,colorItemBg:l,colorSubItemBg:i,colorItemBgSelected:s,colorActiveBarHeight:u,colorActiveBarWidth:c,colorActiveBarBorderSize:d,motionDurationSlow:p,motionEaseInOut:g,motionEaseOut:m,menuItemPaddingInline:h,motionDurationMid:b,colorItemTextHover:y,lineType:S,colorSplit:$,colorItemTextDisabled:x,colorDangerItemText:C,colorDangerItemTextHover:O,colorDangerItemTextSelected:w,colorDangerItemBgActive:M,colorDangerItemBgSelected:I,colorItemBgHover:_,menuSubMenuBg:D,colorItemTextSelectedHorizontal:F,colorItemBgSelectedHorizontal:z}=e;return{[`${n}-${t}`]:{color:o,background:l,[`&${n}-root:focus-visible`]:v({},f1(e)),[`${n}-item-group-title`]:{color:a},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:r}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${x} !important`},[`${n}-item:hover, ${n}-submenu-title:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:y}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:_},"&:active":{backgroundColor:s}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:_},"&:active":{backgroundColor:s}}},[`${n}-item-danger`]:{color:C,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:O}},[`&${n}-item:active`]:{background:M}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:r,[`&${n}-item-danger`]:{color:w},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:s,[`&${n}-item-danger`]:{backgroundColor:I}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:v({},f1(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:D},[`&${n}-popup > ${n}`]:{backgroundColor:l},[`&${n}-horizontal`]:v(v({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:-d,marginBottom:0,borderRadius:0,"&::after":{position:"absolute",insetInline:h,bottom:0,borderBottom:`${u}px solid transparent`,transition:`border-color ${p} ${g}`,content:'""'},"&:hover, &-active, &-open":{"&::after":{borderBottomWidth:u,borderBottomColor:F}},"&-selected":{color:F,backgroundColor:z,"&::after":{borderBottomWidth:u,borderBottomColor:F}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${d}px ${S} ${$}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:i},[`${n}-item, ${n}-submenu-title`]:d&&c?{width:`calc(100% + ${d}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${c}px solid ${r}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${b} ${m}`,`opacity ${b} ${m}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:w}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${b} ${g}`,`opacity ${b} ${g}`].join(",")}}}}}},v1=e=>{const{componentCls:t,menuItemHeight:n,itemMarginInline:o,padding:r,menuArrowSize:a,marginXS:l,marginXXS:i}=e,s=r+a+l;return{[`${t}-item`]:{position:"relative"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`,paddingInline:r,overflow:"hidden",textOverflow:"ellipsis",marginInline:o,marginBlock:i,width:`calc(100% - ${o*2}px)`},[`${t}-submenu`]:{paddingBottom:.02},[`> ${t}-item, + > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`},[`${t}-item-group-list ${t}-submenu-title, + ${t}-submenu-title`]:{paddingInlineEnd:s}}},Gk=e=>{const{componentCls:t,iconCls:n,menuItemHeight:o,colorTextLightSolid:r,dropdownWidth:a,controlHeightLG:l,motionDurationMid:i,motionEaseOut:s,paddingXL:u,fontSizeSM:c,fontSizeLG:d,motionDurationSlow:p,paddingXS:g,boxShadowSecondary:m}=e,h={height:o,lineHeight:`${o}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":v({[`&${t}-root`]:{boxShadow:"none"}},v1(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:v(v({},v1(e)),{boxShadow:m})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${l*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${p}`,`background ${p}`,`padding ${i} ${s}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:h,[`& ${t}-item-group-title`]:{paddingInlineStart:u}},[`${t}-item`]:h}},{[`${t}-inline-collapsed`]:{width:o*2,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item, + > ${t}-item-group > ${t}-item-group-list > ${t}-item, + > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title, + > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${c}px)`,textOverflow:"clip",[` + ${t}-submenu-arrow, + ${t}-submenu-expand-icon + `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:d,lineHeight:`${o}px`,"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:r}},[`${t}-item-group-title`]:v(v({},mn),{paddingInline:g})}}]},g1=e=>{const{componentCls:t,fontSize:n,motionDurationSlow:o,motionDurationMid:r,motionEaseInOut:a,motionEaseOut:l,iconCls:i,controlHeightSM:s}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${o}`,`background ${o}`,`padding ${o} ${a}`].join(","),[`${t}-item-icon, ${i}`]:{minWidth:n,fontSize:n,transition:[`font-size ${r} ${l}`,`margin ${o} ${a}`,`color ${o}`].join(","),"+ span":{marginInlineStart:s-n,opacity:1,transition:[`opacity ${o} ${a}`,`margin ${o}`,`color ${o}`].join(",")}},[`${t}-item-icon`]:v({},ai()),[`&${t}-item-only-child`]:{[`> ${i}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},h1=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:o,borderRadius:r,menuArrowSize:a,menuArrowOffset:l}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:a,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${o}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:a*.6,height:a*.15,backgroundColor:"currentcolor",borderRadius:r,transition:[`background ${n} ${o}`,`transform ${n} ${o}`,`top ${n} ${o}`,`color ${n} ${o}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${l})`},"&::after":{transform:`rotate(-45deg) translateY(${l})`}}}}},Xk=e=>{const{antCls:t,componentCls:n,fontSize:o,motionDurationSlow:r,motionDurationMid:a,motionEaseInOut:l,lineHeight:i,paddingXS:s,padding:u,colorSplit:c,lineWidth:d,zIndexPopup:p,borderRadiusLG:g,radiusSubMenuItem:m,menuArrowSize:h,menuArrowOffset:b,lineType:y,menuPanelMaskInset:S}=e;return[{"":{[`${n}`]:v(v({},ro()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:v(v(v(v(v(v(v({},et(e)),ro()),{marginBottom:0,paddingInlineStart:0,fontSize:o,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${r} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.radiusItem},[`${n}-item-group-title`]:{padding:`${s}px ${u}px`,fontSize:o,lineHeight:i,transition:`all ${r}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${r} ${l}`,`background ${r} ${l}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${r} ${l}`,`background ${r} ${l}`,`padding ${a} ${l}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${r} ${l}`,`padding ${r} ${l}`].join(",")},[`${n}-title-content`]:{transition:`color ${r}`},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:y,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),g1(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${o*2}px ${u}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:p,background:"transparent",borderRadius:g,boxShadow:"none",transformOrigin:"0 0","&::before":{position:"absolute",inset:`${S}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:S},[`> ${n}`]:v(v(v({borderRadius:g},g1(e)),h1(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:m},[`${n}-submenu-title::after`]:{transition:`transform ${r} ${l}`}})}}),h1(e)),{[`&-inline-collapsed ${n}-submenu-arrow, + &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${b})`},"&::after":{transform:`rotate(45deg) translateX(-${b})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${h*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${b})`},"&::before":{transform:`rotate(45deg) translateX(${b})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},Uk=(e,t)=>Qe("Menu",(o,r)=>{let{overrideComponentToken:a}=r;if((t==null?void 0:t.value)===!1)return[];const{colorBgElevated:l,colorPrimary:i,colorError:s,colorErrorHover:u,colorTextLightSolid:c}=o,{controlHeightLG:d,fontSize:p}=o,g=p/7*5,m=ze(o,{menuItemHeight:d,menuItemPaddingInline:o.margin,menuArrowSize:g,menuHorizontalHeight:d*1.15,menuArrowOffset:`${g*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:l}),h=new st(c).setAlpha(.65).toRgbString(),b=ze(m,{colorItemText:h,colorItemTextHover:c,colorGroupTitle:h,colorItemTextSelected:c,colorItemBg:"#001529",colorSubItemBg:"#000c17",colorItemBgActive:"transparent",colorItemBgSelected:i,colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemTextDisabled:new st(c).setAlpha(.25).toRgbString(),colorDangerItemText:s,colorDangerItemTextHover:u,colorDangerItemTextSelected:c,colorDangerItemBgActive:s,colorDangerItemBgSelected:s,menuSubMenuBg:"#001529",colorItemTextSelectedHorizontal:c,colorItemBgSelectedHorizontal:i},v({},a));return[Xk(m),Wk(m),Gk(m),p1(m,"light"),p1(b,"dark"),Kk(m),jc(m),yo(m,"slide-up"),yo(m,"slide-down"),el(m,"zoom-big")]},o=>{const{colorPrimary:r,colorError:a,colorTextDisabled:l,colorErrorBg:i,colorText:s,colorTextDescription:u,colorBgContainer:c,colorFillAlter:d,colorFillContent:p,lineWidth:g,lineWidthBold:m,controlItemBgActive:h,colorBgTextHover:b}=o;return{dropdownWidth:160,zIndexPopup:o.zIndexPopupBase+50,radiusItem:o.borderRadiusLG,radiusSubMenuItem:o.borderRadiusSM,colorItemText:s,colorItemTextHover:s,colorItemTextHoverHorizontal:r,colorGroupTitle:u,colorItemTextSelected:r,colorItemTextSelectedHorizontal:r,colorItemBg:c,colorItemBgHover:b,colorItemBgActive:p,colorSubItemBg:d,colorItemBgSelected:h,colorItemBgSelectedHorizontal:"transparent",colorActiveBarWidth:0,colorActiveBarHeight:m,colorActiveBarBorderSize:g,colorItemTextDisabled:l,colorDangerItemText:a,colorDangerItemTextHover:a,colorDangerItemTextSelected:a,colorDangerItemBgActive:i,colorDangerItemBgSelected:i,itemMarginInline:o.marginXXS}})(e),Yk=()=>({id:String,prefixCls:String,items:Array,disabled:Boolean,inlineCollapsed:Boolean,disabledOverflow:Boolean,forceSubMenuRender:Boolean,openKeys:Array,selectedKeys:Array,activeKey:String,selectable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},tabindex:{type:[Number,String]},motion:Object,role:String,theme:{type:String,default:"light"},mode:{type:String,default:"vertical"},inlineIndent:{type:Number,default:24},subMenuOpenDelay:{type:Number,default:0},subMenuCloseDelay:{type:Number,default:.1},builtinPlacements:{type:Object},triggerSubMenuAction:{type:String,default:"hover"},getPopupContainer:Function,expandIcon:Function,onOpenChange:Function,onSelect:Function,onDeselect:Function,onClick:[Function,Array],onFocus:Function,onBlur:Function,onMousedown:Function,"onUpdate:openKeys":Function,"onUpdate:selectedKeys":Function,"onUpdate:activeKey":Function}),m1=[],Mn=J({compatConfig:{MODE:3},name:"AMenu",inheritAttrs:!1,props:Yk(),slots:Object,setup(e,t){let{slots:n,emit:o,attrs:r}=t;const{direction:a,getPrefixCls:l}=Ee("menu",e),i=Vx(),s=P(()=>{var X;return l("menu",e.prefixCls||((X=i==null?void 0:i.prefixCls)===null||X===void 0?void 0:X.value))}),[u,c]=Uk(s,P(()=>!i)),d=Y(new Map),p=Xe(Zx,Z(void 0)),g=P(()=>p.value!==void 0?p.value:e.inlineCollapsed),{itemsNodes:m}=Vk(e),h=Y(!1);Ve(()=>{h.value=!0}),Le(()=>{bt(!(e.inlineCollapsed===!0&&e.mode!=="inline"),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),bt(!(p.value!==void 0&&e.inlineCollapsed===!0),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead.")});const b=Z([]),y=Z([]),S=Z({});ue(d,()=>{const X={};for(const ee of d.value.values())X[ee.key]=ee;S.value=X},{flush:"post"}),Le(()=>{if(e.activeKey!==void 0){let X=[];const ee=e.activeKey?S.value[e.activeKey]:void 0;ee&&e.activeKey!==void 0?X=Ru([].concat(Lt(ee.parentKeys),e.activeKey)):X=[],da(b.value,X)||(b.value=X)}}),ue(()=>e.selectedKeys,X=>{X&&(y.value=X.slice())},{immediate:!0,deep:!0});const $=Z([]);ue([S,y],()=>{let X=[];y.value.forEach(ee=>{const oe=S.value[ee];oe&&(X=X.concat(Lt(oe.parentKeys)))}),X=Ru(X),da($.value,X)||($.value=X)},{immediate:!0});const x=X=>{if(e.selectable){const{key:ee}=X,oe=y.value.includes(ee);let Q;e.multiple?oe?Q=y.value.filter(q=>q!==ee):Q=[...y.value,ee]:Q=[ee];const W=v(v({},X),{selectedKeys:Q});da(Q,y.value)||(e.selectedKeys===void 0&&(y.value=Q),o("update:selectedKeys",Q),oe&&e.multiple?o("deselect",W):o("select",W))}_.value!=="inline"&&!e.multiple&&C.value.length&&z(m1)},C=Z([]);ue(()=>e.openKeys,function(){let X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:C.value;da(C.value,X)||(C.value=X.slice())},{immediate:!0,deep:!0});let O;const w=X=>{clearTimeout(O),O=setTimeout(()=>{e.activeKey===void 0&&(b.value=X),o("update:activeKey",X[X.length-1])})},M=P(()=>!!e.disabled),I=P(()=>a.value==="rtl"),_=Z("vertical"),D=Y(!1);Le(()=>{var X;(e.mode==="inline"||e.mode==="vertical")&&g.value?(_.value="vertical",D.value=g.value):(_.value=e.mode,D.value=!1),!((X=i==null?void 0:i.mode)===null||X===void 0)&&X.value&&(_.value=i.mode.value)});const F=P(()=>_.value==="inline"),z=X=>{C.value=X,o("update:openKeys",X),o("openChange",X)},H=Z(C.value),T=Y(!1);ue(C,()=>{F.value&&(H.value=C.value)},{immediate:!0}),ue(F,()=>{if(!T.value){T.value=!0;return}F.value?C.value=H.value:z(m1)},{immediate:!0});const A=P(()=>({[`${s.value}`]:!0,[`${s.value}-root`]:!0,[`${s.value}-${_.value}`]:!0,[`${s.value}-inline-collapsed`]:D.value,[`${s.value}-rtl`]:I.value,[`${s.value}-${e.theme}`]:!0})),R=P(()=>l()),E=P(()=>({horizontal:{name:`${R.value}-slide-up`},inline:Kc(`${R.value}-motion-collapse`),other:{name:`${R.value}-zoom-big`}}));Qx(!0);const k=function(){let X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const ee=[],oe=d.value;return X.forEach(Q=>{const{key:W,childrenEventKeys:q}=oe.get(Q);ee.push(W,...k(Lt(q)))}),ee},B=X=>{var ee;o("click",X),x(X),(ee=i==null?void 0:i.onClick)===null||ee===void 0||ee.call(i)},L=(X,ee)=>{var oe;const Q=((oe=S.value[X])===null||oe===void 0?void 0:oe.childrenEventKeys)||[];let W=C.value.filter(q=>q!==X);if(ee)W.push(X);else if(_.value!=="inline"){const q=k(Lt(Q));W=Ru(W.filter(re=>!q.includes(re)))}da(C,W)||z(W)},j=(X,ee)=>{d.value.set(X,ee),d.value=new Map(d.value)},K=X=>{d.value.delete(X),d.value=new Map(d.value)},G=Z(0),U=P(()=>{var X;return e.expandIcon||n.expandIcon||!((X=i==null?void 0:i.expandIcon)===null||X===void 0)&&X.value?ee=>{let oe=e.expandIcon||n.expandIcon;return oe=typeof oe=="function"?oe(ee):oe,ut(oe,{class:`${s.value}-submenu-expand-icon`},!1)}:null});return Mk({prefixCls:s,activeKeys:b,openKeys:C,selectedKeys:y,changeActiveKeys:w,disabled:M,rtl:I,mode:_,inlineIndent:P(()=>e.inlineIndent),subMenuCloseDelay:P(()=>e.subMenuCloseDelay),subMenuOpenDelay:P(()=>e.subMenuOpenDelay),builtinPlacements:P(()=>e.builtinPlacements),triggerSubMenuAction:P(()=>e.triggerSubMenuAction),getPopupContainer:P(()=>e.getPopupContainer),inlineCollapsed:D,theme:P(()=>e.theme),siderCollapsed:p,defaultMotions:P(()=>h.value?E.value:null),motion:P(()=>h.value?e.motion:null),overflowDisabled:Y(void 0),onOpenChange:L,onItemClick:B,registerMenuInfo:j,unRegisterMenuInfo:K,selectedSubMenuKeys:$,expandIcon:U,forceSubMenuRender:P(()=>e.forceSubMenuRender),rootClassName:c}),()=>{var X,ee;const oe=m.value||mt((X=n.default)===null||X===void 0?void 0:X.call(n)),Q=G.value>=oe.length-1||_.value!=="horizontal"||e.disabledOverflow,W=_.value!=="horizontal"||e.disabledOverflow?oe:oe.map((re,le)=>f(Ks,{key:re.key,overflowDisabled:le>G.value},{default:()=>re})),q=((ee=n.overflowedIndicator)===null||ee===void 0?void 0:ee.call(n))||f(Pg,null,null);return u(f(xa,N(N({},r),{},{onMousedown:e.onMousedown,prefixCls:`${s.value}-overflow`,component:"ul",itemComponent:ja,class:[A.value,r.class,c.value],role:"menu",id:e.id,data:W,renderRawItem:re=>re,renderRawRest:re=>{const le=re.length,ye=le?oe.slice(-le):null;return f(nt,null,[f(Va,{eventKey:Bi,key:Bi,title:q,disabled:Q,internalPopupClose:le===0},{default:()=>ye}),f(i1,null,{default:()=>[f(Va,{eventKey:Bi,key:Bi,title:q,disabled:Q,internalPopupClose:le===0},{default:()=>ye})]})])},maxCount:_.value!=="horizontal"||e.disabledOverflow?xa.INVALIDATE:xa.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:re=>{G.value=re}}),{default:()=>[f(Up,{to:"body"},{default:()=>[f("div",{style:{display:"none"},"aria-hidden":!0},[f(i1,null,{default:()=>[W]})])]})]}))}}});Mn.install=function(e){return e.component(Mn.name,Mn),e.component(ja.name,ja),e.component(Va.name,Va),e.component(Xs.name,Xs),e.component(Gs.name,Gs),e};Mn.Item=ja;Mn.Divider=Xs;Mn.SubMenu=Va;Mn.ItemGroup=Gs;const qk=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:v(v({},et(e)),{color:e.breadcrumbBaseColor,fontSize:e.breadcrumbFontSize,[n]:{fontSize:e.breadcrumbIconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:v({color:e.breadcrumbLinkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${e.paddingXXS}px`,borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",marginInline:-e.marginXXS,"&:hover":{color:e.breadcrumbLinkColorHover,backgroundColor:e.colorBgTextHover}},Lo(e)),"li:last-child":{color:e.breadcrumbLastItemColor,[`& > ${t}-separator`]:{display:"none"}},[`${t}-separator`]:{marginInline:e.breadcrumbSeparatorMargin,color:e.breadcrumbSeparatorColor},[`${t}-link`]:{[` + > ${n} + span, + > ${n} + a + `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",padding:`0 ${e.paddingXXS}px`,marginInline:-e.marginXXS,[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.breadcrumbLinkColorHover,backgroundColor:e.colorBgTextHover,a:{color:e.breadcrumbLinkColorHover}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}},Qk=Qe("Breadcrumb",e=>{const t=ze(e,{breadcrumbBaseColor:e.colorTextDescription,breadcrumbFontSize:e.fontSize,breadcrumbIconFontSize:e.fontSize,breadcrumbLinkColor:e.colorTextDescription,breadcrumbLinkColorHover:e.colorText,breadcrumbLastItemColor:e.colorText,breadcrumbSeparatorMargin:e.marginXS,breadcrumbSeparatorColor:e.colorTextDescription});return[qk(t)]}),Zk=()=>({prefixCls:String,routes:{type:Array},params:V.any,separator:V.any,itemRender:{type:Function}});function Jk(e,t){if(!e.breadcrumbName)return null;const n=Object.keys(t).join("|");return e.breadcrumbName.replace(new RegExp(`:(${n})`,"g"),(r,a)=>t[a]||r)}function b1(e){const{route:t,params:n,routes:o,paths:r}=e,a=o.indexOf(t)===o.length-1,l=Jk(t,n);return a?f("span",null,[l]):f("a",{href:`#/${r.join("/")}`},[l])}const Pl=J({compatConfig:{MODE:3},name:"ABreadcrumb",inheritAttrs:!1,props:Zk(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:a}=Ee("breadcrumb",e),[l,i]=Qk(r),s=(d,p)=>(d=(d||"").replace(/^\//,""),Object.keys(p).forEach(g=>{d=d.replace(`:${g}`,p[g])}),d),u=(d,p,g)=>{const m=[...d],h=s(p||"",g);return h&&m.push(h),m},c=d=>{let{routes:p=[],params:g={},separator:m,itemRender:h=b1}=d;const b=[];return p.map(y=>{const S=s(y.path,g);S&&b.push(S);const $=[...b];let x=null;y.children&&y.children.length&&(x=f(Mn,{items:y.children.map(O=>({key:O.path||O.breadcrumbName,label:h({route:O,params:g,routes:p,paths:u($,O.path,g)})}))},null));const C={separator:m};return x&&(C.overlay=x),f(Ws,N(N({},C),{},{key:S||y.breadcrumbName}),{default:()=>[h({route:y,params:g,routes:p,paths:$})]})})};return()=>{var d;let p;const{routes:g,params:m={}}=e,h=mt(Nt(n,e)),b=(d=Nt(n,e,"separator"))!==null&&d!==void 0?d:"/",y=e.itemRender||n.itemRender||b1;g&&g.length>0?p=c({routes:g,params:m,separator:b,itemRender:y}):h.length&&(p=h.map(($,x)=>(yt(typeof $.type=="object"&&($.type.__ANT_BREADCRUMB_ITEM||$.type.__ANT_BREADCRUMB_SEPARATOR)),ko($,{separator:b,key:x}))));const S={[r.value]:!0,[`${r.value}-rtl`]:a.value==="rtl",[`${o.class}`]:!!o.class,[i.value]:!0};return l(f("nav",N(N({},o),{},{class:S}),[f("ol",null,[p])]))}}});var eB=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({prefixCls:String}),Gf=J({compatConfig:{MODE:3},name:"ABreadcrumbSeparator",__ANT_BREADCRUMB_SEPARATOR:!0,inheritAttrs:!1,props:tB(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r}=Ee("breadcrumb",e);return()=>{var a;const{separator:l,class:i}=o,s=eB(o,["separator","class"]),u=mt((a=n.default)===null||a===void 0?void 0:a.call(n));return f("span",N({class:[`${r.value}-separator`,i]},s),[u.length>0?u:"/"])}}});Pl.Item=Ws;Pl.Separator=Gf;Pl.install=function(e){return e.component(Pl.name,Pl),e.component(Ws.name,Ws),e.component(Gf.name,Gf),e};var lw={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(cr,function(){var n=1e3,o=6e4,r=36e5,a="millisecond",l="second",i="minute",s="hour",u="day",c="week",d="month",p="quarter",g="year",m="date",h="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(H){var T=["th","st","nd","rd"],A=H%100;return"["+H+(T[(A-20)%10]||T[A]||T[0])+"]"}},$=function(H,T,A){var R=String(H);return!R||R.length>=T?H:""+Array(T+1-R.length).join(A)+H},x={s:$,z:function(H){var T=-H.utcOffset(),A=Math.abs(T),R=Math.floor(A/60),E=A%60;return(T<=0?"+":"-")+$(R,2,"0")+":"+$(E,2,"0")},m:function H(T,A){if(T.date()1)return H(B[0])}else{var L=T.name;O[L]=T,E=L}return!R&&E&&(C=E),E||!R&&C},_=function(H,T){if(M(H))return H.clone();var A=typeof T=="object"?T:{};return A.date=H,A.args=arguments,new F(A)},D=x;D.l=I,D.i=M,D.w=function(H,T){return _(H,{locale:T.$L,utc:T.$u,x:T.$x,$offset:T.$offset})};var F=function(){function H(A){this.$L=I(A.locale,null,!0),this.parse(A),this.$x=this.$x||A.x||{},this[w]=!0}var T=H.prototype;return T.parse=function(A){this.$d=function(R){var E=R.date,k=R.utc;if(E===null)return new Date(NaN);if(D.u(E))return new Date;if(E instanceof Date)return new Date(E);if(typeof E=="string"&&!/Z$/i.test(E)){var B=E.match(b);if(B){var L=B[2]-1||0,j=(B[7]||"0").substring(0,3);return k?new Date(Date.UTC(B[1],L,B[3]||1,B[4]||0,B[5]||0,B[6]||0,j)):new Date(B[1],L,B[3]||1,B[4]||0,B[5]||0,B[6]||0,j)}}return new Date(E)}(A),this.init()},T.init=function(){var A=this.$d;this.$y=A.getFullYear(),this.$M=A.getMonth(),this.$D=A.getDate(),this.$W=A.getDay(),this.$H=A.getHours(),this.$m=A.getMinutes(),this.$s=A.getSeconds(),this.$ms=A.getMilliseconds()},T.$utils=function(){return D},T.isValid=function(){return this.$d.toString()!==h},T.isSame=function(A,R){var E=_(A);return this.startOf(R)<=E&&E<=this.endOf(R)},T.isAfter=function(A,R){return _(A)25){var c=l(this).startOf(o).add(1,o).date(u),d=l(this).endOf(n);if(c.isBefore(d))return 1}var p=l(this).startOf(o).date(u).startOf(n).subtract(1,"millisecond"),g=this.diff(p,n,!0);return g<0?l(this).startOf("week").week():Math.ceil(g)},i.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}})})(cw);var iB=cw.exports;const sB=ur(iB);var uw={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(cr,function(){return function(n,o){o.prototype.weekYear=function(){var r=this.month(),a=this.week(),l=this.year();return a===1&&r===11?l+1:r===0&&a>=52?l-1:l}}})})(uw);var cB=uw.exports;const uB=ur(cB);var dw={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(cr,function(){var n="month",o="quarter";return function(r,a){var l=a.prototype;l.quarter=function(u){return this.$utils().u(u)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(u-1))};var i=l.add;l.add=function(u,c){return u=Number(u),this.$utils().p(c)===o?this.add(3*u,n):i.bind(this)(u,c)};var s=l.startOf;l.startOf=function(u,c){var d=this.$utils(),p=!!d.u(c)||c;if(d.p(u)===o){var g=this.quarter()-1;return p?this.month(3*g).startOf(n).startOf("day"):this.month(3*g+2).endOf(n).endOf("day")}return s.bind(this)(u,c)}}})})(dw);var dB=dw.exports;const fB=ur(dB);var fw={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(cr,function(){return function(n,o){var r=o.prototype,a=r.format;r.format=function(l){var i=this,s=this.$locale();if(!this.isValid())return a.bind(this)(l);var u=this.$utils(),c=(l||"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((i.$M+1)/3);case"Do":return s.ordinal(i.$D);case"gggg":return i.weekYear();case"GGGG":return i.isoWeekYear();case"wo":return s.ordinal(i.week(),"W");case"w":case"ww":return u.s(i.week(),d==="w"?1:2,"0");case"W":case"WW":return u.s(i.isoWeek(),d==="W"?1:2,"0");case"k":case"kk":return u.s(String(i.$H===0?24:i.$H),d==="k"?1:2,"0");case"X":return Math.floor(i.$d.getTime()/1e3);case"x":return i.$d.getTime();case"z":return"["+i.offsetName()+"]";case"zzz":return"["+i.offsetName("long")+"]";default:return d}});return a.bind(this)(c)}}})})(fw);var pB=fw.exports;const vB=ur(pB);var pw={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(cr,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"},o=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d\d/,a=/\d\d?/,l=/\d*[^-_:/,()\s\d]+/,i={},s=function(h){return(h=+h)+(h>68?1900:2e3)},u=function(h){return function(b){this[h]=+b}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=function(b){if(!b||b==="Z")return 0;var y=b.match(/([+-]|\d\d)/g),S=60*y[1]+(+y[2]||0);return S===0?0:y[0]==="+"?-S:S}(h)}],d=function(h){var b=i[h];return b&&(b.indexOf?b:b.s.concat(b.f))},p=function(h,b){var y,S=i.meridiem;if(S){for(var $=1;$<=24;$+=1)if(h.indexOf(S($,0,b))>-1){y=$>12;break}}else y=h===(b?"pm":"PM");return y},g={A:[l,function(h){this.afternoon=p(h,!1)}],a:[l,function(h){this.afternoon=p(h,!0)}],S:[/\d/,function(h){this.milliseconds=100*+h}],SS:[r,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],s:[a,u("seconds")],ss:[a,u("seconds")],m:[a,u("minutes")],mm:[a,u("minutes")],H:[a,u("hours")],h:[a,u("hours")],HH:[a,u("hours")],hh:[a,u("hours")],D:[a,u("day")],DD:[r,u("day")],Do:[l,function(h){var b=i.ordinal,y=h.match(/\d+/);if(this.day=y[0],b)for(var S=1;S<=31;S+=1)b(S).replace(/\[|\]/g,"")===h&&(this.day=S)}],M:[a,u("month")],MM:[r,u("month")],MMM:[l,function(h){var b=d("months"),y=(d("monthsShort")||b.map(function(S){return S.slice(0,3)})).indexOf(h)+1;if(y<1)throw new Error;this.month=y%12||y}],MMMM:[l,function(h){var b=d("months").indexOf(h)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,u("year")],YY:[r,function(h){this.year=s(h)}],YYYY:[/\d{4}/,u("year")],Z:c,ZZ:c};function m(h){var b,y;b=h,y=i&&i.formats;for(var S=(h=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(I,_,D){var F=D&&D.toUpperCase();return _||y[D]||n[D]||y[F].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(z,H,T){return H||T.slice(1)})})).match(o),$=S.length,x=0;x<$;x+=1){var C=S[x],O=g[C],w=O&&O[0],M=O&&O[1];S[x]=M?{regex:w,parser:M}:C.replace(/^\[|\]$/g,"")}return function(I){for(var _={},D=0,F=0;D<$;D+=1){var z=S[D];if(typeof z=="string")F+=z.length;else{var H=z.regex,T=z.parser,A=I.slice(F),R=H.exec(A)[0];T.call(_,R),I=I.replace(R,"")}}return function(E){var k=E.afternoon;if(k!==void 0){var B=E.hours;k?B<12&&(E.hours+=12):B===12&&(E.hours=0),delete E.afternoon}}(_),_}}return function(h,b,y){y.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(s=h.parseTwoDigitYear);var S=b.prototype,$=S.parse;S.parse=function(x){var C=x.date,O=x.utc,w=x.args;this.$u=O;var M=w[1];if(typeof M=="string"){var I=w[2]===!0,_=w[3]===!0,D=I||_,F=w[2];_&&(F=w[2]),i=this.$locale(),!I&&F&&(i=y.Ls[F]),this.$d=function(A,R,E){try{if(["x","X"].indexOf(R)>-1)return new Date((R==="X"?1e3:1)*A);var k=m(R)(A),B=k.year,L=k.month,j=k.day,K=k.hours,G=k.minutes,U=k.seconds,X=k.milliseconds,ee=k.zone,oe=new Date,Q=j||(B||L?1:oe.getDate()),W=B||oe.getFullYear(),q=0;B&&!L||(q=L>0?L-1:oe.getMonth());var re=K||0,le=G||0,ye=U||0,me=X||0;return ee?new Date(Date.UTC(W,q,Q,re,le,ye,me+60*ee.offset*1e3)):E?new Date(Date.UTC(W,q,Q,re,le,ye,me)):new Date(W,q,Q,re,le,ye,me)}catch{return new Date("")}}(C,M,O),this.init(),F&&F!==!0&&(this.$L=this.locale(F).$L),D&&C!=this.format(M)&&(this.$d=new Date("")),i={}}else if(M instanceof Array)for(var z=M.length,H=1;H<=z;H+=1){w[1]=M[H-1];var T=y.apply(this,w);if(T.isValid()){this.$d=T.$d,this.$L=T.$L,this.init();break}H===z&&(this.$d=new Date(""))}else $.call(this,x)}}})})(pw);var gB=pw.exports;const hB=ur(gB);Ft.extend(hB);Ft.extend(vB);Ft.extend(rB);Ft.extend(lB);Ft.extend(sB);Ft.extend(uB);Ft.extend(fB);Ft.extend((e,t)=>{const n=t.prototype,o=n.format;n.format=function(a){const l=(a||"").replace("Wo","wo");return o.bind(this)(l)}});const mB={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},mr=e=>mB[e]||e.split("_")[0],y1=()=>{c9(!1,"Not match any format. Please help to fire a issue about this.")},bB=/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|k{1,2}|S/g;function S1(e,t,n){const o=[...new Set(e.split(n))];let r=0;for(let a=0;at)return l;r+=n.length}}const $1=(e,t)=>{if(!e)return null;if(Ft.isDayjs(e))return e;const n=t.matchAll(bB);let o=Ft(e,t);if(n===null)return o;for(const r of n){const a=r[0],l=r.index;if(a==="Q"){const i=e.slice(l-1,l),s=S1(e,l,i).match(/\d+/)[0];o=o.quarter(parseInt(s))}if(a.toLowerCase()==="wo"){const i=e.slice(l-1,l),s=S1(e,l,i).match(/\d+/)[0];o=o.week(parseInt(s))}a.toLowerCase()==="ww"&&(o=o.week(parseInt(e.slice(l,l+a.length)))),a.toLowerCase()==="w"&&(o=o.week(parseInt(e.slice(l,l+a.length+1))))}return o},yB={getNow:()=>Ft(),getFixedDate:e=>Ft(e,["YYYY-M-DD","YYYY-MM-DD"]),getEndDate:e=>e.endOf("month"),getWeekDay:e=>{const t=e.locale("en");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:e=>e.year(),getMonth:e=>e.month(),getDate:e=>e.date(),getHour:e=>e.hour(),getMinute:e=>e.minute(),getSecond:e=>e.second(),addYear:(e,t)=>e.add(t,"year"),addMonth:(e,t)=>e.add(t,"month"),addDate:(e,t)=>e.add(t,"day"),setYear:(e,t)=>e.year(t),setMonth:(e,t)=>e.month(t),setDate:(e,t)=>e.date(t),setHour:(e,t)=>e.hour(t),setMinute:(e,t)=>e.minute(t),setSecond:(e,t)=>e.second(t),isAfter:(e,t)=>e.isAfter(t),isValidate:e=>e.isValid(),locale:{getWeekFirstDay:e=>Ft().locale(mr(e)).localeData().firstDayOfWeek(),getWeekFirstDate:(e,t)=>t.locale(mr(e)).weekday(0),getWeek:(e,t)=>t.locale(mr(e)).week(),getShortWeekDays:e=>Ft().locale(mr(e)).localeData().weekdaysMin(),getShortMonths:e=>Ft().locale(mr(e)).localeData().monthsShort(),format:(e,t,n)=>t.locale(mr(e)).format(n),parse:(e,t,n)=>{const o=mr(e);for(let r=0;rArray.isArray(e)?e.map(n=>$1(n,t)):$1(e,t),toString:(e,t)=>Array.isArray(e)?e.map(n=>Ft.isDayjs(n)?n.format(t):n):Ft.isDayjs(e)?e.format(t):e},vw=yB;function Mt(e){const t=d8();return v(v({},e),t)}const gw=Symbol("PanelContextProps"),Eg=e=>{Ke(gw,e)},Co=()=>Xe(gw,{}),Fi={visibility:"hidden"};function pr(e,t){let{slots:n}=t;var o;const r=Mt(e),{prefixCls:a,prevIcon:l="‹",nextIcon:i="›",superPrevIcon:s="«",superNextIcon:u="»",onSuperPrev:c,onSuperNext:d,onPrev:p,onNext:g}=r,{hideNextBtn:m,hidePrevBtn:h}=Co();return f("div",{class:a},[c&&f("button",{type:"button",onClick:c,tabindex:-1,class:`${a}-super-prev-btn`,style:h.value?Fi:{}},[s]),p&&f("button",{type:"button",onClick:p,tabindex:-1,class:`${a}-prev-btn`,style:h.value?Fi:{}},[l]),f("div",{class:`${a}-view`},[(o=n.default)===null||o===void 0?void 0:o.call(n)]),g&&f("button",{type:"button",onClick:g,tabindex:-1,class:`${a}-next-btn`,style:m.value?Fi:{}},[i]),d&&f("button",{type:"button",onClick:d,tabindex:-1,class:`${a}-super-next-btn`,style:m.value?Fi:{}},[u])])}pr.displayName="Header";pr.inheritAttrs=!1;function _g(e){const t=Mt(e),{prefixCls:n,generateConfig:o,viewDate:r,onPrevDecades:a,onNextDecades:l}=t,{hideHeader:i}=Co();if(i)return null;const s=`${n}-header`,u=o.getYear(r),c=Math.floor(u/Do)*Do,d=c+Do-1;return f(pr,N(N({},t),{},{prefixCls:s,onSuperPrev:a,onSuperNext:l}),{default:()=>[c,go("-"),d]})}_g.displayName="DecadeHeader";_g.inheritAttrs=!1;function hw(e,t,n,o,r){let a=e.setHour(t,n);return a=e.setMinute(a,o),a=e.setSecond(a,r),a}function ls(e,t,n){if(!n)return t;let o=t;return o=e.setHour(o,e.getHour(n)),o=e.setMinute(o,e.getMinute(n)),o=e.setSecond(o,e.getSecond(n)),o}function SB(e,t,n,o,r,a){const l=Math.floor(e/o)*o;if(l{H.stopPropagation(),F||o(D)},onMouseenter:()=>{!F&&y&&y(D)},onMouseleave:()=>{!F&&S&&S(D)}},[p?p(D):f("div",{class:`${x}-inner`},[d(D)])]))}C.push(f("tr",{key:O,class:s&&s(M)},[w]))}return f("div",{class:`${t}-body`},[f("table",{class:`${t}-content`},[b&&f("thead",null,[f("tr",null,[b])]),f("tbody",null,[C])])])}ea.displayName="PanelBody";ea.inheritAttrs=!1;const Xf=3,C1=4;function Dg(e){const t=Mt(e),n=eo-1,{prefixCls:o,viewDate:r,generateConfig:a}=t,l=`${o}-cell`,i=a.getYear(r),s=Math.floor(i/eo)*eo,u=Math.floor(i/Do)*Do,c=u+Do-1,d=a.setYear(r,u-Math.ceil((Xf*C1*eo-Do)/2)),p=g=>{const m=a.getYear(g),h=m+n;return{[`${l}-in-view`]:u<=m&&h<=c,[`${l}-selected`]:m===s}};return f(ea,N(N({},t),{},{rowNum:C1,colNum:Xf,baseDate:d,getCellText:g=>{const m=a.getYear(g);return`${m}-${m+n}`},getCellClassName:p,getCellDate:(g,m)=>a.addYear(g,m*eo)}),null)}Dg.displayName="DecadeBody";Dg.inheritAttrs=!1;const Li=new Map;function CB(e,t){let n;function o(){Tc(e)?t():n=We(()=>{o()})}return o(),()=>{We.cancel(n)}}function Uf(e,t,n){if(Li.get(e)&&We.cancel(Li.get(e)),n<=0){Li.set(e,We(()=>{e.scrollTop=t}));return}const r=(t-e.scrollTop)/n*10;Li.set(e,We(()=>{e.scrollTop+=r,e.scrollTop!==t&&Uf(e,t,n-10)}))}function ol(e,t){let{onLeftRight:n,onCtrlLeftRight:o,onUpDown:r,onPageUpDown:a,onEnter:l}=t;const{which:i,ctrlKey:s,metaKey:u}=e;switch(i){case $e.LEFT:if(s||u){if(o)return o(-1),!0}else if(n)return n(-1),!0;break;case $e.RIGHT:if(s||u){if(o)return o(1),!0}else if(n)return n(1),!0;break;case $e.UP:if(r)return r(-1),!0;break;case $e.DOWN:if(r)return r(1),!0;break;case $e.PAGE_UP:if(a)return a(-1),!0;break;case $e.PAGE_DOWN:if(a)return a(1),!0;break;case $e.ENTER:if(l)return l(),!0;break}return!1}function mw(e,t,n,o){let r=e;if(!r)switch(t){case"time":r=o?"hh:mm:ss a":"HH:mm:ss";break;case"week":r="gggg-wo";break;case"month":r="YYYY-MM";break;case"quarter":r="YYYY-[Q]Q";break;case"year":r="YYYY";break;default:r=n?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return r}function bw(e,t,n){const o=e==="time"?8:10,r=typeof t=="function"?t(n.getNow()).length:t.length;return Math.max(o,r)+2}let dl=null;const zi=new Set;function xB(e){return!dl&&typeof window<"u"&&window.addEventListener&&(dl=t=>{[...zi].forEach(n=>{n(t)})},window.addEventListener("mousedown",dl)),zi.add(e),()=>{zi.delete(e),zi.size===0&&(window.removeEventListener("mousedown",dl),dl=null)}}function wB(e){var t;const n=e.target;return e.composed&&n.shadowRoot&&((t=e.composedPath)===null||t===void 0?void 0:t.call(e)[0])||n}const OB=e=>e==="month"||e==="date"?"year":e,PB=e=>e==="date"?"month":e,IB=e=>e==="month"||e==="date"?"quarter":e,TB=e=>e==="date"?"week":e,MB={year:OB,month:PB,quarter:IB,week:TB,time:null,date:null};function yw(e,t){return e.some(n=>n&&n.contains(t))}const eo=10,Do=eo*10;function Ag(e){const t=Mt(e),{prefixCls:n,onViewDateChange:o,generateConfig:r,viewDate:a,operationRef:l,onSelect:i,onPanelChange:s}=t,u=`${n}-decade-panel`;l.value={onKeydown:p=>ol(p,{onLeftRight:g=>{i(r.addYear(a,g*eo),"key")},onCtrlLeftRight:g=>{i(r.addYear(a,g*Do),"key")},onUpDown:g=>{i(r.addYear(a,g*eo*Xf),"key")},onEnter:()=>{s("year",a)}})};const c=p=>{const g=r.addYear(a,p*Do);o(g),s(null,g)},d=p=>{i(p,"mouse"),s("year",p)};return f("div",{class:u},[f(_g,N(N({},t),{},{prefixCls:n,onPrevDecades:()=>{c(-1)},onNextDecades:()=>{c(1)}}),null),f(Dg,N(N({},t),{},{prefixCls:n,onSelect:d}),null)])}Ag.displayName="DecadePanel";Ag.inheritAttrs=!1;const is=7;function ta(e,t){if(!e&&!t)return!0;if(!e||!t)return!1}function EB(e,t,n){const o=ta(t,n);if(typeof o=="boolean")return o;const r=Math.floor(e.getYear(t)/10),a=Math.floor(e.getYear(n)/10);return r===a}function Gc(e,t,n){const o=ta(t,n);return typeof o=="boolean"?o:e.getYear(t)===e.getYear(n)}function Yf(e,t){return Math.floor(e.getMonth(t)/3)+1}function Sw(e,t,n){const o=ta(t,n);return typeof o=="boolean"?o:Gc(e,t,n)&&Yf(e,t)===Yf(e,n)}function Rg(e,t,n){const o=ta(t,n);return typeof o=="boolean"?o:Gc(e,t,n)&&e.getMonth(t)===e.getMonth(n)}function Ao(e,t,n){const o=ta(t,n);return typeof o=="boolean"?o:e.getYear(t)===e.getYear(n)&&e.getMonth(t)===e.getMonth(n)&&e.getDate(t)===e.getDate(n)}function _B(e,t,n){const o=ta(t,n);return typeof o=="boolean"?o:e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)}function $w(e,t,n,o){const r=ta(n,o);return typeof r=="boolean"?r:e.locale.getWeek(t,n)===e.locale.getWeek(t,o)}function wa(e,t,n){return Ao(e,t,n)&&_B(e,t,n)}function Hi(e,t,n,o){return!t||!n||!o?!1:!Ao(e,t,o)&&!Ao(e,n,o)&&e.isAfter(o,t)&&e.isAfter(n,o)}function DB(e,t,n){const o=t.locale.getWeekFirstDay(e),r=t.setDate(n,1),a=t.getWeekDay(r);let l=t.addDate(r,o-a);return t.getMonth(l)===t.getMonth(n)&&t.getDate(l)>1&&(l=t.addDate(l,-7)),l}function Il(e,t,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(t){case"year":return n.addYear(e,o*10);case"quarter":case"month":return n.addYear(e,o);default:return n.addMonth(e,o)}}function Ut(e,t){let{generateConfig:n,locale:o,format:r}=t;return typeof r=="function"?r(e):n.locale.format(o.locale,e,r)}function Cw(e,t){let{generateConfig:n,locale:o,formatList:r}=t;return!e||typeof r[0]=="function"?null:n.locale.parse(o.locale,e,r)}function qf(e){let{cellDate:t,mode:n,disabledDate:o,generateConfig:r}=e;if(!o)return!1;const a=(l,i,s)=>{let u=i;for(;u<=s;){let c;switch(l){case"date":{if(c=r.setDate(t,u),!o(c))return!1;break}case"month":{if(c=r.setMonth(t,u),!qf({cellDate:c,mode:"month",generateConfig:r,disabledDate:o}))return!1;break}case"year":{if(c=r.setYear(t,u),!qf({cellDate:c,mode:"year",generateConfig:r,disabledDate:o}))return!1;break}}u+=1}return!0};switch(n){case"date":case"week":return o(t);case"month":{const i=r.getDate(r.getEndDate(t));return a("date",1,i)}case"quarter":{const l=Math.floor(r.getMonth(t)/3)*3,i=l+2;return a("month",l,i)}case"year":return a("month",0,11);case"decade":{const l=r.getYear(t),i=Math.floor(l/eo)*eo,s=i+eo-1;return a("year",i,s)}}}function Ng(e){const t=Mt(e),{hideHeader:n}=Co();if(n.value)return null;const{prefixCls:o,generateConfig:r,locale:a,value:l,format:i}=t,s=`${o}-header`;return f(pr,{prefixCls:s},{default:()=>[l?Ut(l,{locale:a,format:i,generateConfig:r}):" "]})}Ng.displayName="TimeHeader";Ng.inheritAttrs=!1;const ji=J({name:"TimeUnitColumn",props:["prefixCls","units","onSelect","value","active","hideDisabledOptions"],setup(e){const{open:t}=Co(),n=Y(null),o=Z(new Map),r=Z();return ue(()=>e.value,()=>{const a=o.value.get(e.value);a&&t.value!==!1&&Uf(n.value,a.offsetTop,120)}),Je(()=>{var a;(a=r.value)===null||a===void 0||a.call(r)}),ue(t,()=>{var a;(a=r.value)===null||a===void 0||a.call(r),lt(()=>{if(t.value){const l=o.value.get(e.value);l&&(r.value=CB(l,()=>{Uf(n.value,l.offsetTop,0)}))}})},{immediate:!0,flush:"post"}),()=>{const{prefixCls:a,units:l,onSelect:i,value:s,active:u,hideDisabledOptions:c}=e,d=`${a}-cell`;return f("ul",{class:te(`${a}-column`,{[`${a}-column-active`]:u}),ref:n,style:{position:"relative"}},[l.map(p=>c&&p.disabled?null:f("li",{key:p.value,ref:g=>{o.value.set(p.value,g)},class:te(d,{[`${d}-disabled`]:p.disabled,[`${d}-selected`]:s===p.value}),onClick:()=>{p.disabled||i(p.value)}},[f("div",{class:`${d}-inner`},[p.label])]))])}}});function xw(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",o=String(e);for(;o.length{(n.startsWith("data-")||n.startsWith("aria-")||n==="role"||n==="name")&&!n.startsWith("data-__")&&(t[n]=e[n])}),t}function dt(e,t){return e?e[t]:null}function Hn(e,t,n){const o=[dt(e,0),dt(e,1)];return o[n]=typeof t=="function"?t(o[n]):t,!o[0]&&!o[1]?null:o}function id(e,t,n,o){const r=[];for(let a=e;a<=t;a+=n)r.push({label:xw(a,2),value:a,disabled:(o||[]).includes(a)});return r}const RB=J({compatConfig:{MODE:3},name:"TimeBody",inheritAttrs:!1,props:["generateConfig","prefixCls","operationRef","activeColumnIndex","value","showHour","showMinute","showSecond","use12Hours","hourStep","minuteStep","secondStep","disabledHours","disabledMinutes","disabledSeconds","disabledTime","hideDisabledOptions","onSelect"],setup(e){const t=P(()=>e.value?e.generateConfig.getHour(e.value):-1),n=P(()=>e.use12Hours?t.value>=12:!1),o=P(()=>e.use12Hours?t.value%12:t.value),r=P(()=>e.value?e.generateConfig.getMinute(e.value):-1),a=P(()=>e.value?e.generateConfig.getSecond(e.value):-1),l=Z(e.generateConfig.getNow()),i=Z(),s=Z(),u=Z();Yp(()=>{l.value=e.generateConfig.getNow()}),Le(()=>{if(e.disabledTime){const b=e.disabledTime(l);[i.value,s.value,u.value]=[b.disabledHours,b.disabledMinutes,b.disabledSeconds]}else[i.value,s.value,u.value]=[e.disabledHours,e.disabledMinutes,e.disabledSeconds]});const c=(b,y,S,$)=>{let x=e.value||e.generateConfig.getNow();const C=Math.max(0,y),O=Math.max(0,S),w=Math.max(0,$);return x=hw(e.generateConfig,x,!e.use12Hours||!b?C:C+12,O,w),x},d=P(()=>{var b;return id(0,23,(b=e.hourStep)!==null&&b!==void 0?b:1,i.value&&i.value())}),p=P(()=>{if(!e.use12Hours)return[!1,!1];const b=[!0,!0];return d.value.forEach(y=>{let{disabled:S,value:$}=y;S||($>=12?b[1]=!1:b[0]=!1)}),b}),g=P(()=>e.use12Hours?d.value.filter(n.value?b=>b.value>=12:b=>b.value<12).map(b=>{const y=b.value%12,S=y===0?"12":xw(y,2);return v(v({},b),{label:S,value:y})}):d.value),m=P(()=>{var b;return id(0,59,(b=e.minuteStep)!==null&&b!==void 0?b:1,s.value&&s.value(t.value))}),h=P(()=>{var b;return id(0,59,(b=e.secondStep)!==null&&b!==void 0?b:1,u.value&&u.value(t.value,r.value))});return()=>{const{prefixCls:b,operationRef:y,activeColumnIndex:S,showHour:$,showMinute:x,showSecond:C,use12Hours:O,hideDisabledOptions:w,onSelect:M}=e,I=[],_=`${b}-content`,D=`${b}-time-panel`;y.value={onUpDown:H=>{const T=I[S];if(T){const A=T.units.findIndex(E=>E.value===T.value),R=T.units.length;for(let E=1;E{M(c(n.value,H,r.value,a.value),"mouse")}),F(x,f(ji,{key:"minute"},null),r.value,m.value,H=>{M(c(n.value,o.value,H,a.value),"mouse")}),F(C,f(ji,{key:"second"},null),a.value,h.value,H=>{M(c(n.value,o.value,r.value,H),"mouse")});let z=-1;return typeof n.value=="boolean"&&(z=n.value?1:0),F(O===!0,f(ji,{key:"12hours"},null),z,[{label:"AM",value:0,disabled:p.value[0]},{label:"PM",value:1,disabled:p.value[1]}],H=>{M(c(!!H,o.value,r.value,a.value),"mouse")}),f("div",{class:_},[I.map(H=>{let{node:T}=H;return T})])}}}),NB=RB,kB=e=>e.filter(t=>t!==!1).length;function Xc(e){const t=Mt(e),{generateConfig:n,format:o="HH:mm:ss",prefixCls:r,active:a,operationRef:l,showHour:i,showMinute:s,showSecond:u,use12Hours:c=!1,onSelect:d,value:p}=t,g=`${r}-time-panel`,m=Z(),h=Z(-1),b=kB([i,s,u,c]);return l.value={onKeydown:y=>ol(y,{onLeftRight:S=>{h.value=(h.value+S+b)%b},onUpDown:S=>{h.value===-1?h.value=0:m.value&&m.value.onUpDown(S)},onEnter:()=>{d(p||n.getNow(),"key"),h.value=-1}}),onBlur:()=>{h.value=-1}},f("div",{class:te(g,{[`${g}-active`]:a})},[f(Ng,N(N({},t),{},{format:o,prefixCls:r}),null),f(NB,N(N({},t),{},{prefixCls:r,activeColumnIndex:h.value,operationRef:m}),null)])}Xc.displayName="TimePanel";Xc.inheritAttrs=!1;function Uc(e){let{cellPrefixCls:t,generateConfig:n,rangedValue:o,hoverRangedValue:r,isInView:a,isSameCell:l,offsetCell:i,today:s,value:u}=e;function c(d){const p=i(d,-1),g=i(d,1),m=dt(o,0),h=dt(o,1),b=dt(r,0),y=dt(r,1),S=Hi(n,b,y,d);function $(I){return l(m,I)}function x(I){return l(h,I)}const C=l(b,d),O=l(y,d),w=(S||O)&&(!a(p)||x(p)),M=(S||C)&&(!a(g)||$(g));return{[`${t}-in-view`]:a(d),[`${t}-in-range`]:Hi(n,m,h,d),[`${t}-range-start`]:$(d),[`${t}-range-end`]:x(d),[`${t}-range-start-single`]:$(d)&&!h,[`${t}-range-end-single`]:x(d)&&!m,[`${t}-range-start-near-hover`]:$(d)&&(l(p,b)||Hi(n,b,y,p)),[`${t}-range-end-near-hover`]:x(d)&&(l(g,y)||Hi(n,b,y,g)),[`${t}-range-hover`]:S,[`${t}-range-hover-start`]:C,[`${t}-range-hover-end`]:O,[`${t}-range-hover-edge-start`]:w,[`${t}-range-hover-edge-end`]:M,[`${t}-range-hover-edge-start-near-range`]:w&&l(p,h),[`${t}-range-hover-edge-end-near-range`]:M&&l(g,m),[`${t}-today`]:l(s,d),[`${t}-selected`]:l(u,d)}}return c}const Pw=Symbol("RangeContextProps"),BB=e=>{Ke(Pw,e)},ui=()=>Xe(Pw,{rangedValue:Z(),hoverRangedValue:Z(),inRange:Z(),panelPosition:Z()}),FB=J({compatConfig:{MODE:3},name:"PanelContextProvider",inheritAttrs:!1,props:{value:{type:Object,default:()=>({})}},setup(e,t){let{slots:n}=t;const o={rangedValue:Z(e.value.rangedValue),hoverRangedValue:Z(e.value.hoverRangedValue),inRange:Z(e.value.inRange),panelPosition:Z(e.value.panelPosition)};return BB(o),ue(()=>e.value,()=>{Object.keys(e.value).forEach(r=>{o[r]&&(o[r].value=e.value[r])})}),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}});function Yc(e){const t=Mt(e),{prefixCls:n,generateConfig:o,prefixColumn:r,locale:a,rowCount:l,viewDate:i,value:s,dateRender:u}=t,{rangedValue:c,hoverRangedValue:d}=ui(),p=DB(a.locale,o,i),g=`${n}-cell`,m=o.locale.getWeekFirstDay(a.locale),h=o.getNow(),b=[],y=a.shortWeekDays||(o.locale.getShortWeekDays?o.locale.getShortWeekDays(a.locale):[]);r&&b.push(f("th",{key:"empty","aria-label":"empty cell"},null));for(let x=0;xAo(o,x,C),isInView:x=>Rg(o,x,i),offsetCell:(x,C)=>o.addDate(x,C)}),$=u?x=>u({current:x,today:h}):void 0;return f(ea,N(N({},t),{},{rowNum:l,colNum:is,baseDate:p,getCellNode:$,getCellText:o.getDate,getCellClassName:S,getCellDate:o.addDate,titleCell:x=>Ut(x,{locale:a,format:"YYYY-MM-DD",generateConfig:o}),headerCells:b}),null)}Yc.displayName="DateBody";Yc.inheritAttrs=!1;Yc.props=["prefixCls","generateConfig","value?","viewDate","locale","rowCount","onSelect","dateRender?","disabledDate?","prefixColumn?","rowClassName?"];function kg(e){const t=Mt(e),{prefixCls:n,generateConfig:o,locale:r,viewDate:a,onNextMonth:l,onPrevMonth:i,onNextYear:s,onPrevYear:u,onYearClick:c,onMonthClick:d}=t,{hideHeader:p}=Co();if(p.value)return null;const g=`${n}-header`,m=r.shortMonths||(o.locale.getShortMonths?o.locale.getShortMonths(r.locale):[]),h=o.getMonth(a),b=f("button",{type:"button",key:"year",onClick:c,tabindex:-1,class:`${n}-year-btn`},[Ut(a,{locale:r,format:r.yearFormat,generateConfig:o})]),y=f("button",{type:"button",key:"month",onClick:d,tabindex:-1,class:`${n}-month-btn`},[r.monthFormat?Ut(a,{locale:r,format:r.monthFormat,generateConfig:o}):m[h]]),S=r.monthBeforeYear?[y,b]:[b,y];return f(pr,N(N({},t),{},{prefixCls:g,onSuperPrev:u,onPrev:i,onNext:l,onSuperNext:s}),{default:()=>[S]})}kg.displayName="DateHeader";kg.inheritAttrs=!1;const LB=6;function di(e){const t=Mt(e),{prefixCls:n,panelName:o="date",keyboardConfig:r,active:a,operationRef:l,generateConfig:i,value:s,viewDate:u,onViewDateChange:c,onPanelChange:d,onSelect:p}=t,g=`${n}-${o}-panel`;l.value={onKeydown:b=>ol(b,v({onLeftRight:y=>{p(i.addDate(s||u,y),"key")},onCtrlLeftRight:y=>{p(i.addYear(s||u,y),"key")},onUpDown:y=>{p(i.addDate(s||u,y*is),"key")},onPageUpDown:y=>{p(i.addMonth(s||u,y),"key")}},r))};const m=b=>{const y=i.addYear(u,b);c(y),d(null,y)},h=b=>{const y=i.addMonth(u,b);c(y),d(null,y)};return f("div",{class:te(g,{[`${g}-active`]:a})},[f(kg,N(N({},t),{},{prefixCls:n,value:s,viewDate:u,onPrevYear:()=>{m(-1)},onNextYear:()=>{m(1)},onPrevMonth:()=>{h(-1)},onNextMonth:()=>{h(1)},onMonthClick:()=>{d("month",u)},onYearClick:()=>{d("year",u)}}),null),f(Yc,N(N({},t),{},{onSelect:b=>p(b,"mouse"),prefixCls:n,value:s,viewDate:u,rowCount:LB}),null)])}di.displayName="DatePanel";di.inheritAttrs=!1;const x1=AB("date","time");function Bg(e){const t=Mt(e),{prefixCls:n,operationRef:o,generateConfig:r,value:a,defaultValue:l,disabledTime:i,showTime:s,onSelect:u}=t,c=`${n}-datetime-panel`,d=Z(null),p=Z({}),g=Z({}),m=typeof s=="object"?v({},s):{};function h($){const x=x1.indexOf(d.value)+$;return x1[x]||null}const b=$=>{g.value.onBlur&&g.value.onBlur($),d.value=null};o.value={onKeydown:$=>{if($.which===$e.TAB){const x=h($.shiftKey?-1:1);return d.value=x,x&&$.preventDefault(),!0}if(d.value){const x=d.value==="date"?p:g;return x.value&&x.value.onKeydown&&x.value.onKeydown($),!0}return[$e.LEFT,$e.RIGHT,$e.UP,$e.DOWN].includes($.which)?(d.value="date",!0):!1},onBlur:b,onClose:b};const y=($,x)=>{let C=$;x==="date"&&!a&&m.defaultValue?(C=r.setHour(C,r.getHour(m.defaultValue)),C=r.setMinute(C,r.getMinute(m.defaultValue)),C=r.setSecond(C,r.getSecond(m.defaultValue))):x==="time"&&!a&&l&&(C=r.setYear(C,r.getYear(l)),C=r.setMonth(C,r.getMonth(l)),C=r.setDate(C,r.getDate(l))),u&&u(C,"mouse")},S=i?i(a||null):{};return f("div",{class:te(c,{[`${c}-active`]:d.value})},[f(di,N(N({},t),{},{operationRef:p,active:d.value==="date",onSelect:$=>{y(ls(r,$,!a&&typeof s=="object"?s.defaultValue:null),"date")}}),null),f(Xc,N(N(N(N({},t),{},{format:void 0},m),S),{},{disabledTime:null,defaultValue:void 0,operationRef:g,active:d.value==="time",onSelect:$=>{y($,"time")}}),null)])}Bg.displayName="DatetimePanel";Bg.inheritAttrs=!1;function Fg(e){const t=Mt(e),{prefixCls:n,generateConfig:o,locale:r,value:a}=t,l=`${n}-cell`,i=c=>f("td",{key:"week",class:te(l,`${l}-week`)},[o.locale.getWeek(r.locale,c)]),s=`${n}-week-panel-row`,u=c=>te(s,{[`${s}-selected`]:$w(o,r.locale,a,c)});return f(di,N(N({},t),{},{panelName:"week",prefixColumn:i,rowClassName:u,keyboardConfig:{onLeftRight:null}}),null)}Fg.displayName="WeekPanel";Fg.inheritAttrs=!1;function Lg(e){const t=Mt(e),{prefixCls:n,generateConfig:o,locale:r,viewDate:a,onNextYear:l,onPrevYear:i,onYearClick:s}=t,{hideHeader:u}=Co();if(u.value)return null;const c=`${n}-header`;return f(pr,N(N({},t),{},{prefixCls:c,onSuperPrev:i,onSuperNext:l}),{default:()=>[f("button",{type:"button",onClick:s,class:`${n}-year-btn`},[Ut(a,{locale:r,format:r.yearFormat,generateConfig:o})])]})}Lg.displayName="MonthHeader";Lg.inheritAttrs=!1;const Iw=3,zB=4;function zg(e){const t=Mt(e),{prefixCls:n,locale:o,value:r,viewDate:a,generateConfig:l,monthCellRender:i}=t,{rangedValue:s,hoverRangedValue:u}=ui(),c=`${n}-cell`,d=Uc({cellPrefixCls:c,value:r,generateConfig:l,rangedValue:s.value,hoverRangedValue:u.value,isSameCell:(h,b)=>Rg(l,h,b),isInView:()=>!0,offsetCell:(h,b)=>l.addMonth(h,b)}),p=o.shortMonths||(l.locale.getShortMonths?l.locale.getShortMonths(o.locale):[]),g=l.setMonth(a,0),m=i?h=>i({current:h,locale:o}):void 0;return f(ea,N(N({},t),{},{rowNum:zB,colNum:Iw,baseDate:g,getCellNode:m,getCellText:h=>o.monthFormat?Ut(h,{locale:o,format:o.monthFormat,generateConfig:l}):p[l.getMonth(h)],getCellClassName:d,getCellDate:l.addMonth,titleCell:h=>Ut(h,{locale:o,format:"YYYY-MM",generateConfig:l})}),null)}zg.displayName="MonthBody";zg.inheritAttrs=!1;function Hg(e){const t=Mt(e),{prefixCls:n,operationRef:o,onViewDateChange:r,generateConfig:a,value:l,viewDate:i,onPanelChange:s,onSelect:u}=t,c=`${n}-month-panel`;o.value={onKeydown:p=>ol(p,{onLeftRight:g=>{u(a.addMonth(l||i,g),"key")},onCtrlLeftRight:g=>{u(a.addYear(l||i,g),"key")},onUpDown:g=>{u(a.addMonth(l||i,g*Iw),"key")},onEnter:()=>{s("date",l||i)}})};const d=p=>{const g=a.addYear(i,p);r(g),s(null,g)};return f("div",{class:c},[f(Lg,N(N({},t),{},{prefixCls:n,onPrevYear:()=>{d(-1)},onNextYear:()=>{d(1)},onYearClick:()=>{s("year",i)}}),null),f(zg,N(N({},t),{},{prefixCls:n,onSelect:p=>{u(p,"mouse"),s("date",p)}}),null)])}Hg.displayName="MonthPanel";Hg.inheritAttrs=!1;function jg(e){const t=Mt(e),{prefixCls:n,generateConfig:o,locale:r,viewDate:a,onNextYear:l,onPrevYear:i,onYearClick:s}=t,{hideHeader:u}=Co();if(u.value)return null;const c=`${n}-header`;return f(pr,N(N({},t),{},{prefixCls:c,onSuperPrev:i,onSuperNext:l}),{default:()=>[f("button",{type:"button",onClick:s,class:`${n}-year-btn`},[Ut(a,{locale:r,format:r.yearFormat,generateConfig:o})])]})}jg.displayName="QuarterHeader";jg.inheritAttrs=!1;const HB=4,jB=1;function Vg(e){const t=Mt(e),{prefixCls:n,locale:o,value:r,viewDate:a,generateConfig:l}=t,{rangedValue:i,hoverRangedValue:s}=ui(),u=`${n}-cell`,c=Uc({cellPrefixCls:u,value:r,generateConfig:l,rangedValue:i.value,hoverRangedValue:s.value,isSameCell:(p,g)=>Sw(l,p,g),isInView:()=>!0,offsetCell:(p,g)=>l.addMonth(p,g*3)}),d=l.setDate(l.setMonth(a,0),1);return f(ea,N(N({},t),{},{rowNum:jB,colNum:HB,baseDate:d,getCellText:p=>Ut(p,{locale:o,format:o.quarterFormat||"[Q]Q",generateConfig:l}),getCellClassName:c,getCellDate:(p,g)=>l.addMonth(p,g*3),titleCell:p=>Ut(p,{locale:o,format:"YYYY-[Q]Q",generateConfig:l})}),null)}Vg.displayName="QuarterBody";Vg.inheritAttrs=!1;function Wg(e){const t=Mt(e),{prefixCls:n,operationRef:o,onViewDateChange:r,generateConfig:a,value:l,viewDate:i,onPanelChange:s,onSelect:u}=t,c=`${n}-quarter-panel`;o.value={onKeydown:p=>ol(p,{onLeftRight:g=>{u(a.addMonth(l||i,g*3),"key")},onCtrlLeftRight:g=>{u(a.addYear(l||i,g),"key")},onUpDown:g=>{u(a.addYear(l||i,g),"key")}})};const d=p=>{const g=a.addYear(i,p);r(g),s(null,g)};return f("div",{class:c},[f(jg,N(N({},t),{},{prefixCls:n,onPrevYear:()=>{d(-1)},onNextYear:()=>{d(1)},onYearClick:()=>{s("year",i)}}),null),f(Vg,N(N({},t),{},{prefixCls:n,onSelect:p=>{u(p,"mouse")}}),null)])}Wg.displayName="QuarterPanel";Wg.inheritAttrs=!1;function Kg(e){const t=Mt(e),{prefixCls:n,generateConfig:o,viewDate:r,onPrevDecade:a,onNextDecade:l,onDecadeClick:i}=t,{hideHeader:s}=Co();if(s.value)return null;const u=`${n}-header`,c=o.getYear(r),d=Math.floor(c/rr)*rr,p=d+rr-1;return f(pr,N(N({},t),{},{prefixCls:u,onSuperPrev:a,onSuperNext:l}),{default:()=>[f("button",{type:"button",onClick:i,class:`${n}-decade-btn`},[d,go("-"),p])]})}Kg.displayName="YearHeader";Kg.inheritAttrs=!1;const Qf=3,w1=4;function Gg(e){const t=Mt(e),{prefixCls:n,value:o,viewDate:r,locale:a,generateConfig:l}=t,{rangedValue:i,hoverRangedValue:s}=ui(),u=`${n}-cell`,c=l.getYear(r),d=Math.floor(c/rr)*rr,p=d+rr-1,g=l.setYear(r,d-Math.ceil((Qf*w1-rr)/2)),m=b=>{const y=l.getYear(b);return d<=y&&y<=p},h=Uc({cellPrefixCls:u,value:o,generateConfig:l,rangedValue:i.value,hoverRangedValue:s.value,isSameCell:(b,y)=>Gc(l,b,y),isInView:m,offsetCell:(b,y)=>l.addYear(b,y)});return f(ea,N(N({},t),{},{rowNum:w1,colNum:Qf,baseDate:g,getCellText:l.getYear,getCellClassName:h,getCellDate:l.addYear,titleCell:b=>Ut(b,{locale:a,format:"YYYY",generateConfig:l})}),null)}Gg.displayName="YearBody";Gg.inheritAttrs=!1;const rr=10;function Xg(e){const t=Mt(e),{prefixCls:n,operationRef:o,onViewDateChange:r,generateConfig:a,value:l,viewDate:i,sourceMode:s,onSelect:u,onPanelChange:c}=t,d=`${n}-year-panel`;o.value={onKeydown:g=>ol(g,{onLeftRight:m=>{u(a.addYear(l||i,m),"key")},onCtrlLeftRight:m=>{u(a.addYear(l||i,m*rr),"key")},onUpDown:m=>{u(a.addYear(l||i,m*Qf),"key")},onEnter:()=>{c(s==="date"?"date":"month",l||i)}})};const p=g=>{const m=a.addYear(i,g*10);r(m),c(null,m)};return f("div",{class:d},[f(Kg,N(N({},t),{},{prefixCls:n,onPrevDecade:()=>{p(-1)},onNextDecade:()=>{p(1)},onDecadeClick:()=>{c("decade",i)}}),null),f(Gg,N(N({},t),{},{prefixCls:n,onSelect:g=>{c(s==="date"?"date":"month",g),u(g,"mouse")}}),null)])}Xg.displayName="YearPanel";Xg.inheritAttrs=!1;function Tw(e,t,n){return n?f("div",{class:`${e}-footer-extra`},[n(t)]):null}function Mw(e){let{prefixCls:t,components:n={},needConfirmButton:o,onNow:r,onOk:a,okDisabled:l,showNow:i,locale:s}=e,u,c;if(o){const d=n.button||"button";r&&i!==!1&&(u=f("li",{class:`${t}-now`},[f("a",{class:`${t}-now-btn`,onClick:r},[s.now])])),c=o&&f("li",{class:`${t}-ok`},[f(d,{disabled:l,onClick:p=>{p.stopPropagation(),a&&a()}},{default:()=>[s.ok]})])}return!u&&!c?null:f("ul",{class:`${t}-ranges`},[u,c])}function VB(){return J({name:"PickerPanel",inheritAttrs:!1,props:{prefixCls:String,locale:Object,generateConfig:Object,value:Object,defaultValue:Object,pickerValue:Object,defaultPickerValue:Object,disabledDate:Function,mode:String,picker:{type:String,default:"date"},tabindex:{type:[Number,String],default:0},showNow:{type:Boolean,default:void 0},showTime:[Boolean,Object],showToday:Boolean,renderExtraFooter:Function,dateRender:Function,hideHeader:{type:Boolean,default:void 0},onSelect:Function,onChange:Function,onPanelChange:Function,onMousedown:Function,onPickerValueChange:Function,onOk:Function,components:Object,direction:String,hourStep:{type:Number,default:1},minuteStep:{type:Number,default:1},secondStep:{type:Number,default:1}},setup(e,t){let{attrs:n}=t;const o=P(()=>e.picker==="date"&&!!e.showTime||e.picker==="time"),r=P(()=>24%e.hourStep===0),a=P(()=>60%e.minuteStep===0),l=P(()=>60%e.secondStep===0),i=Co(),{operationRef:s,onSelect:u,hideRanges:c,defaultOpenValue:d}=i,{inRange:p,panelPosition:g,rangedValue:m,hoverRangedValue:h}=ui(),b=Z({}),[y,S]=Ot(null,{value:Be(e,"value"),defaultValue:e.defaultValue,postState:R=>!R&&(d!=null&&d.value)&&e.picker==="time"?d.value:R}),[$,x]=Ot(null,{value:Be(e,"pickerValue"),defaultValue:e.defaultPickerValue||y.value,postState:R=>{const{generateConfig:E,showTime:k,defaultValue:B}=e,L=E.getNow();return R?!y.value&&e.showTime?typeof k=="object"?ls(E,Array.isArray(R)?R[0]:R,k.defaultValue||L):B?ls(E,Array.isArray(R)?R[0]:R,B):ls(E,Array.isArray(R)?R[0]:R,L):R:L}}),C=R=>{x(R),e.onPickerValueChange&&e.onPickerValueChange(R)},O=R=>{const E=MB[e.picker];return E?E(R):R},[w,M]=Ot(()=>e.picker==="time"?"time":O("date"),{value:Be(e,"mode")});ue(()=>e.picker,()=>{M(e.picker)});const I=Z(w.value),_=R=>{I.value=R},D=(R,E)=>{const{onPanelChange:k,generateConfig:B}=e,L=O(R||w.value);_(w.value),M(L),k&&(w.value!==L||wa(B,$.value,$.value))&&k(E,L)},F=function(R,E){let k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{picker:B,generateConfig:L,onSelect:j,onChange:K,disabledDate:G}=e;(w.value===B||k)&&(S(R),j&&j(R),u&&u(R,E),K&&!wa(L,R,y.value)&&!(G!=null&&G(R))&&K(R))},z=R=>b.value&&b.value.onKeydown?([$e.LEFT,$e.RIGHT,$e.UP,$e.DOWN,$e.PAGE_UP,$e.PAGE_DOWN,$e.ENTER].includes(R.which)&&R.preventDefault(),b.value.onKeydown(R)):!1,H=R=>{b.value&&b.value.onBlur&&b.value.onBlur(R)},T=()=>{const{generateConfig:R,hourStep:E,minuteStep:k,secondStep:B}=e,L=R.getNow(),j=SB(R.getHour(L),R.getMinute(L),R.getSecond(L),r.value?E:1,a.value?k:1,l.value?B:1),K=hw(R,L,j[0],j[1],j[2]);F(K,"submit")},A=P(()=>{const{prefixCls:R,direction:E}=e;return te(`${R}-panel`,{[`${R}-panel-has-range`]:m&&m.value&&m.value[0]&&m.value[1],[`${R}-panel-has-range-hover`]:h&&h.value&&h.value[0]&&h.value[1],[`${R}-panel-rtl`]:E==="rtl"})});return Eg(v(v({},i),{mode:w,hideHeader:P(()=>{var R;return e.hideHeader!==void 0?e.hideHeader:(R=i.hideHeader)===null||R===void 0?void 0:R.value}),hidePrevBtn:P(()=>p.value&&g.value==="right"),hideNextBtn:P(()=>p.value&&g.value==="left")})),ue(()=>e.value,()=>{e.value&&x(e.value)}),()=>{const{prefixCls:R="ant-picker",locale:E,generateConfig:k,disabledDate:B,picker:L="date",tabindex:j=0,showNow:K,showTime:G,showToday:U,renderExtraFooter:X,onMousedown:ee,onOk:oe,components:Q}=e;s&&g.value!=="right"&&(s.value={onKeydown:z,onClose:()=>{b.value&&b.value.onClose&&b.value.onClose()}});let W;const q=v(v(v({},n),e),{operationRef:b,prefixCls:R,viewDate:$.value,value:y.value,onViewDateChange:C,sourceMode:I.value,onPanelChange:D,disabledDate:B});switch(delete q.onChange,delete q.onSelect,w.value){case"decade":W=f(Ag,N(N({},q),{},{onSelect:(me,ce)=>{C(me),F(me,ce)}}),null);break;case"year":W=f(Xg,N(N({},q),{},{onSelect:(me,ce)=>{C(me),F(me,ce)}}),null);break;case"month":W=f(Hg,N(N({},q),{},{onSelect:(me,ce)=>{C(me),F(me,ce)}}),null);break;case"quarter":W=f(Wg,N(N({},q),{},{onSelect:(me,ce)=>{C(me),F(me,ce)}}),null);break;case"week":W=f(Fg,N(N({},q),{},{onSelect:(me,ce)=>{C(me),F(me,ce)}}),null);break;case"time":delete q.showTime,W=f(Xc,N(N(N({},q),typeof G=="object"?G:null),{},{onSelect:(me,ce)=>{C(me),F(me,ce)}}),null);break;default:G?W=f(Bg,N(N({},q),{},{onSelect:(me,ce)=>{C(me),F(me,ce)}}),null):W=f(di,N(N({},q),{},{onSelect:(me,ce)=>{C(me),F(me,ce)}}),null)}let re,le;c!=null&&c.value||(re=Tw(R,w.value,X),le=Mw({prefixCls:R,components:Q,needConfirmButton:o.value,okDisabled:!y.value||B&&B(y.value),locale:E,showNow:K,onNow:o.value&&T,onOk:()=>{y.value&&(F(y.value,"submit",!0),oe&&oe(y.value))}}));let ye;if(U&&w.value==="date"&&L==="date"&&!G){const me=k.getNow(),ce=`${R}-today-btn`,se=B&&B(me);ye=f("a",{class:te(ce,se&&`${ce}-disabled`),"aria-disabled":se,onClick:()=>{se||F(me,"mouse",!0)}},[E.today])}return f("div",{tabindex:j,class:te(A.value,n.class),style:n.style,onKeydown:z,onBlur:H,onMousedown:ee},[W,re||le||ye?f("div",{class:`${R}-footer`},[re,le,ye]):null])}}})}const WB=VB(),Ew=e=>f(WB,e),KB={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function _w(e,t){let{slots:n}=t;const{prefixCls:o,popupStyle:r,visible:a,dropdownClassName:l,dropdownAlign:i,transitionName:s,getPopupContainer:u,range:c,popupPlacement:d,direction:p}=Mt(e),g=`${o}-dropdown`;return f(ii,{showAction:[],hideAction:[],popupPlacement:d!==void 0?d:p==="rtl"?"bottomRight":"bottomLeft",builtinPlacements:KB,prefixCls:g,popupTransitionName:s,popupAlign:i,popupVisible:a,popupClassName:te(l,{[`${g}-range`]:c,[`${g}-rtl`]:p==="rtl"}),popupStyle:r,getPopupContainer:u},{default:n.default,popup:n.popupElement})}const Dw=J({name:"PresetPanel",props:{prefixCls:String,presets:{type:Array,default:()=>[]},onClick:Function,onHover:Function},setup(e){return()=>e.presets.length?f("div",{class:`${e.prefixCls}-presets`},[f("ul",null,[e.presets.map((t,n)=>{let{label:o,value:r}=t;return f("li",{key:n,onClick:()=>{e.onClick(r)},onMouseenter:()=>{var a;(a=e.onHover)===null||a===void 0||a.call(e,r)},onMouseleave:()=>{var a;(a=e.onHover)===null||a===void 0||a.call(e,null)}},[o])})])]):null}});function Zf(e){let{open:t,value:n,isClickOutside:o,triggerOpen:r,forwardKeydown:a,onKeydown:l,blurToCancel:i,onSubmit:s,onCancel:u,onFocus:c,onBlur:d}=e;const p=Y(!1),g=Y(!1),m=Y(!1),h=Y(!1),b=Y(!1),y=P(()=>({onMousedown:()=>{p.value=!0,r(!0)},onKeydown:$=>{if(l($,()=>{b.value=!0}),!b.value){switch($.which){case $e.ENTER:{t.value?s()!==!1&&(p.value=!0):r(!0),$.preventDefault();return}case $e.TAB:{p.value&&t.value&&!$.shiftKey?(p.value=!1,$.preventDefault()):!p.value&&t.value&&!a($)&&$.shiftKey&&(p.value=!0,$.preventDefault());return}case $e.ESC:{p.value=!0,u();return}}!t.value&&![$e.SHIFT].includes($.which)?r(!0):p.value||a($)}},onFocus:$=>{p.value=!0,g.value=!0,c&&c($)},onBlur:$=>{if(m.value||!o(document.activeElement)){m.value=!1;return}i.value?setTimeout(()=>{let{activeElement:x}=document;for(;x&&x.shadowRoot;)x=x.shadowRoot.activeElement;o(x)&&u()},0):t.value&&(r(!1),h.value&&s()),g.value=!1,d&&d($)}}));ue(t,()=>{h.value=!1}),ue(n,()=>{h.value=!0});const S=Y();return Ve(()=>{S.value=xB($=>{const x=wB($);if(t.value){const C=o(x);C?(!g.value||C)&&r(!1):(m.value=!0,We(()=>{m.value=!1}))}})}),Je(()=>{S.value&&S.value()}),[y,{focused:g,typing:p}]}function Jf(e){let{valueTexts:t,onTextChange:n}=e;const o=Z("");function r(l){o.value=l,n(l)}function a(){o.value=t.value[0]}return ue(()=>[...t.value],function(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];l.join("||")!==i.join("||")&&t.value.every(s=>s!==o.value)&&a()},{immediate:!0}),[o,r,a]}function Us(e,t){let{formatList:n,generateConfig:o,locale:r}=t;const a=Wv(()=>{if(!e.value)return[[""],""];let s="";const u=[];for(let c=0;cu[0]!==s[0]||!da(u[1],s[1])),l=P(()=>a.value[0]),i=P(()=>a.value[1]);return[l,i]}function ep(e,t){let{formatList:n,generateConfig:o,locale:r}=t;const a=Z(null);let l;function i(d){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(We.cancel(l),p){a.value=d;return}l=We(()=>{a.value=d})}const[,s]=Us(a,{formatList:n,generateConfig:o,locale:r});function u(d){i(d)}function c(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;i(null,d)}return ue(e,()=>{c(!0)}),Je(()=>{We.cancel(l)}),[s,u,c]}function Aw(e,t){return P(()=>e!=null&&e.value?e.value:t!=null&&t.value?(Cv(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.keys(t.value).map(o=>{const r=t.value[o],a=typeof r=="function"?r():r;return{label:o,value:a}})):[])}function GB(){return J({name:"Picker",inheritAttrs:!1,props:["prefixCls","id","tabindex","dropdownClassName","dropdownAlign","popupStyle","transitionName","generateConfig","locale","inputReadOnly","allowClear","autofocus","showTime","showNow","showHour","showMinute","showSecond","picker","format","use12Hours","value","defaultValue","open","defaultOpen","defaultOpenValue","suffixIcon","presets","clearIcon","disabled","disabledDate","placeholder","getPopupContainer","panelRender","inputRender","onChange","onOpenChange","onPanelChange","onFocus","onBlur","onMousedown","onMouseup","onMouseenter","onMouseleave","onContextmenu","onClick","onKeydown","onSelect","direction","autocomplete","showToday","renderExtraFooter","dateRender","minuteStep","hourStep","secondStep","hideDisabledOptions"],setup(e,t){let{attrs:n,expose:o}=t;const r=Z(null),a=P(()=>e.presets),l=Aw(a),i=P(()=>{var B;return(B=e.picker)!==null&&B!==void 0?B:"date"}),s=P(()=>i.value==="date"&&!!e.showTime||i.value==="time"),u=P(()=>ww(mw(e.format,i.value,e.showTime,e.use12Hours))),c=Z(null),d=Z(null),p=Z(null),[g,m]=Ot(null,{value:Be(e,"value"),defaultValue:e.defaultValue}),h=Z(g.value),b=B=>{h.value=B},y=Z(null),[S,$]=Ot(!1,{value:Be(e,"open"),defaultValue:e.defaultOpen,postState:B=>e.disabled?!1:B,onChange:B=>{e.onOpenChange&&e.onOpenChange(B),!B&&y.value&&y.value.onClose&&y.value.onClose()}}),[x,C]=Us(h,{formatList:u,generateConfig:Be(e,"generateConfig"),locale:Be(e,"locale")}),[O,w,M]=Jf({valueTexts:x,onTextChange:B=>{const L=Cw(B,{locale:e.locale,formatList:u.value,generateConfig:e.generateConfig});L&&(!e.disabledDate||!e.disabledDate(L))&&b(L)}}),I=B=>{const{onChange:L,generateConfig:j,locale:K}=e;b(B),m(B),L&&!wa(j,g.value,B)&&L(B,B?Ut(B,{generateConfig:j,locale:K,format:u.value[0]}):"")},_=B=>{e.disabled&&B||$(B)},D=B=>S.value&&y.value&&y.value.onKeydown?y.value.onKeydown(B):!1,F=function(){e.onMouseup&&e.onMouseup(...arguments),r.value&&(r.value.focus(),_(!0))},[z,{focused:H,typing:T}]=Zf({blurToCancel:s,open:S,value:O,triggerOpen:_,forwardKeydown:D,isClickOutside:B=>!yw([c.value,d.value,p.value],B),onSubmit:()=>!h.value||e.disabledDate&&e.disabledDate(h.value)?!1:(I(h.value),_(!1),M(),!0),onCancel:()=>{_(!1),b(g.value),M()},onKeydown:(B,L)=>{var j;(j=e.onKeydown)===null||j===void 0||j.call(e,B,L)},onFocus:B=>{var L;(L=e.onFocus)===null||L===void 0||L.call(e,B)},onBlur:B=>{var L;(L=e.onBlur)===null||L===void 0||L.call(e,B)}});ue([S,x],()=>{S.value||(b(g.value),!x.value.length||x.value[0]===""?w(""):C.value!==O.value&&M())}),ue(i,()=>{S.value||M()}),ue(g,()=>{b(g.value)});const[A,R,E]=ep(O,{formatList:u,generateConfig:Be(e,"generateConfig"),locale:Be(e,"locale")}),k=(B,L)=>{(L==="submit"||L!=="key"&&!s.value)&&(I(B),_(!1))};return Eg({operationRef:y,hideHeader:P(()=>i.value==="time"),onSelect:k,open:S,defaultOpenValue:Be(e,"defaultOpenValue"),onDateMouseenter:R,onDateMouseleave:E}),o({focus:()=>{r.value&&r.value.focus()},blur:()=>{r.value&&r.value.blur()}}),()=>{const{prefixCls:B="rc-picker",id:L,tabindex:j,dropdownClassName:K,dropdownAlign:G,popupStyle:U,transitionName:X,generateConfig:ee,locale:oe,inputReadOnly:Q,allowClear:W,autofocus:q,picker:re="date",defaultOpenValue:le,suffixIcon:ye,clearIcon:me,disabled:ce,placeholder:se,getPopupContainer:ie,panelRender:fe,onMousedown:Se,onMouseenter:Ie,onMouseleave:ge,onContextmenu:Oe,onClick:we,onSelect:ae,direction:ne,autocomplete:pe="off"}=e,xe=v(v(v({},e),n),{class:te({[`${B}-panel-focused`]:!T.value}),style:void 0,pickerValue:void 0,onPickerValueChange:void 0,onChange:null});let Te=f("div",{class:`${B}-panel-layout`},[f(Dw,{prefixCls:B,presets:l.value,onClick:_e=>{I(_e),_(!1)}},null),f(Ew,N(N({},xe),{},{generateConfig:ee,value:h.value,locale:oe,tabindex:-1,onSelect:_e=>{ae==null||ae(_e),b(_e)},direction:ne,onPanelChange:(_e,Re)=>{const{onPanelChange:Ye}=e;E(!0),Ye==null||Ye(_e,Re)}}),null)]);fe&&(Te=fe(Te));const ke=f("div",{class:`${B}-panel-container`,ref:c,onMousedown:_e=>{_e.preventDefault()}},[Te]);let ve;ye&&(ve=f("span",{class:`${B}-suffix`},[ye]));let he;W&&g.value&&!ce&&(he=f("span",{onMousedown:_e=>{_e.preventDefault(),_e.stopPropagation()},onMouseup:_e=>{_e.preventDefault(),_e.stopPropagation(),I(null),_(!1)},class:`${B}-clear`,role:"button"},[me||f("span",{class:`${B}-clear-btn`},null)]));const be=v(v(v(v({id:L,tabindex:j,disabled:ce,readonly:Q||typeof u.value[0]=="function"||!T.value,value:A.value||O.value,onInput:_e=>{w(_e.target.value)},autofocus:q,placeholder:se,ref:r,title:O.value},z.value),{size:bw(re,u.value[0],ee)}),Ow(e)),{autocomplete:pe}),Me=e.inputRender?e.inputRender(be):f("input",be,null),Ae=ne==="rtl"?"bottomRight":"bottomLeft";return f("div",{ref:p,class:te(B,n.class,{[`${B}-disabled`]:ce,[`${B}-focused`]:H.value,[`${B}-rtl`]:ne==="rtl"}),style:n.style,onMousedown:Se,onMouseup:F,onMouseenter:Ie,onMouseleave:ge,onContextmenu:Oe,onClick:we},[f("div",{class:te(`${B}-input`,{[`${B}-input-placeholder`]:!!A.value}),ref:d},[Me,ve,he]),f(_w,{visible:S.value,popupStyle:U,prefixCls:B,dropdownClassName:K,dropdownAlign:G,getPopupContainer:ie,transitionName:X,popupPlacement:Ae,direction:ne},{default:()=>[f("div",{style:{pointerEvents:"none",position:"absolute",top:0,bottom:0,left:0,right:0}},null)],popupElement:()=>ke})])}}})}const XB=GB();function UB(e,t){let{picker:n,locale:o,selectedValue:r,disabledDate:a,disabled:l,generateConfig:i}=e;const s=P(()=>dt(r.value,0)),u=P(()=>dt(r.value,1));function c(h){return i.value.locale.getWeekFirstDate(o.value.locale,h)}function d(h){const b=i.value.getYear(h),y=i.value.getMonth(h);return b*100+y}function p(h){const b=i.value.getYear(h),y=Yf(i.value,h);return b*10+y}return[h=>{var b;if(a&&(!((b=a==null?void 0:a.value)===null||b===void 0)&&b.call(a,h)))return!0;if(l[1]&&u)return!Ao(i.value,h,u.value)&&i.value.isAfter(h,u.value);if(t.value[1]&&u.value)switch(n.value){case"quarter":return p(h)>p(u.value);case"month":return d(h)>d(u.value);case"week":return c(h)>c(u.value);default:return!Ao(i.value,h,u.value)&&i.value.isAfter(h,u.value)}return!1},h=>{var b;if(!((b=a.value)===null||b===void 0)&&b.call(a,h))return!0;if(l[0]&&s)return!Ao(i.value,h,u.value)&&i.value.isAfter(s.value,h);if(t.value[0]&&s.value)switch(n.value){case"quarter":return p(h)EB(o,l,i));case"quarter":case"month":return a((l,i)=>Gc(o,l,i));default:return a((l,i)=>Rg(o,l,i))}}function qB(e,t,n,o){const r=dt(e,0),a=dt(e,1);if(t===0)return r;if(r&&a)switch(YB(r,a,n,o)){case"same":return r;case"closing":return r;default:return Il(a,n,o,-1)}return r}function QB(e){let{values:t,picker:n,defaultDates:o,generateConfig:r}=e;const a=Z([dt(o,0),dt(o,1)]),l=Z(null),i=P(()=>dt(t.value,0)),s=P(()=>dt(t.value,1)),u=g=>a.value[g]?a.value[g]:dt(l.value,g)||qB(t.value,g,n.value,r.value)||i.value||s.value||r.value.getNow(),c=Z(null),d=Z(null);Le(()=>{c.value=u(0),d.value=u(1)});function p(g,m){if(g){let h=Hn(l.value,g,m);a.value=Hn(a.value,null,m)||[null,null];const b=(m+1)%2;dt(t.value,b)||(h=Hn(h,g,b)),l.value=h}else(i.value||s.value)&&(l.value=null)}return[c,d,p]}function ZB(e){return f8()?(p8(e),!0):!1}function JB(e){return typeof e=="function"?e():Lt(e)}function Rw(e){var t;const n=JB(e);return(t=n==null?void 0:n.$el)!==null&&t!==void 0?t:n}function eF(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;Dn()?Ve(e):t?e():lt(e)}function tF(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n=Y(),o=()=>n.value=!!e();return o(),eF(o,t),n}var sd;const Nw=typeof window<"u";Nw&&(!((sd=window==null?void 0:window.navigator)===null||sd===void 0)&&sd.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);const nF=Nw?window:void 0;var oF=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r2&&arguments[2]!==void 0?arguments[2]:{};const{window:o=nF}=n,r=oF(n,["window"]);let a;const l=tF(()=>o&&"ResizeObserver"in o),i=()=>{a&&(a.disconnect(),a=void 0)},s=ue(()=>Rw(e),c=>{i(),l.value&&o&&c&&(a=new ResizeObserver(t),a.observe(c,r))},{immediate:!0,flush:"post"}),u=()=>{i(),s()};return ZB(u),{isSupported:l,stop:u}}function fl(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{width:0,height:0},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{box:o="content-box"}=n,r=Y(t.width),a=Y(t.height);return rF(e,l=>{let[i]=l;const s=o==="border-box"?i.borderBoxSize:o==="content-box"?i.contentBoxSize:i.devicePixelContentBoxSize;s?(r.value=s.reduce((u,c)=>{let{inlineSize:d}=c;return u+d},0),a.value=s.reduce((u,c)=>{let{blockSize:d}=c;return u+d},0)):(r.value=i.contentRect.width,a.value=i.contentRect.height)},n),ue(()=>Rw(e),l=>{r.value=l?t.width:0,a.value=l?t.height:0}),{width:r,height:a}}function O1(e,t){return e&&e[0]&&e[1]&&t.isAfter(e[0],e[1])?[e[1],e[0]]:e}function P1(e,t,n,o){return!!(e||o&&o[t]||n[(t+1)%2])}function aF(){return J({name:"RangerPicker",inheritAttrs:!1,props:["prefixCls","id","popupStyle","dropdownClassName","transitionName","dropdownAlign","getPopupContainer","generateConfig","locale","placeholder","autofocus","disabled","format","picker","showTime","showNow","showHour","showMinute","showSecond","use12Hours","separator","value","defaultValue","defaultPickerValue","open","defaultOpen","disabledDate","disabledTime","dateRender","panelRender","ranges","allowEmpty","allowClear","suffixIcon","clearIcon","pickerRef","inputReadOnly","mode","renderExtraFooter","onChange","onOpenChange","onPanelChange","onCalendarChange","onFocus","onBlur","onMousedown","onMouseup","onMouseenter","onMouseleave","onClick","onOk","onKeydown","components","order","direction","activePickerIndex","autocomplete","minuteStep","hourStep","secondStep","hideDisabledOptions","disabledMinutes","presets","prevIcon","nextIcon","superPrevIcon","superNextIcon"],setup(e,t){let{attrs:n,expose:o}=t;const r=P(()=>e.picker==="date"&&!!e.showTime||e.picker==="time"),a=P(()=>e.presets),l=P(()=>e.ranges),i=Aw(a,l),s=Z({}),u=Z(null),c=Z(null),d=Z(null),p=Z(null),g=Z(null),m=Z(null),h=Z(null),b=Z(null),y=P(()=>ww(mw(e.format,e.picker,e.showTime,e.use12Hours))),[S,$]=Ot(0,{value:Be(e,"activePickerIndex")}),x=Z(null),C=P(()=>{const{disabled:Pe}=e;return Array.isArray(Pe)?Pe:[Pe||!1,Pe||!1]}),[O,w]=Ot(null,{value:Be(e,"value"),defaultValue:e.defaultValue,postState:Pe=>e.picker==="time"&&!e.order?Pe:O1(Pe,e.generateConfig)}),[M,I,_]=QB({values:O,picker:Be(e,"picker"),defaultDates:e.defaultPickerValue,generateConfig:Be(e,"generateConfig")}),[D,F]=Ot(O.value,{postState:Pe=>{let He=Pe;if(C.value[0]&&C.value[1])return He;for(let Fe=0;Fe<2;Fe+=1)C.value[Fe]&&!dt(He,Fe)&&!dt(e.allowEmpty,Fe)&&(He=Hn(He,e.generateConfig.getNow(),Fe));return He}}),[z,H]=Ot([e.picker,e.picker],{value:Be(e,"mode")});ue(()=>e.picker,()=>{H([e.picker,e.picker])});const T=(Pe,He)=>{var Fe;H(Pe),(Fe=e.onPanelChange)===null||Fe===void 0||Fe.call(e,He,Pe)},[A,R]=UB({picker:Be(e,"picker"),selectedValue:D,locale:Be(e,"locale"),disabled:C,disabledDate:Be(e,"disabledDate"),generateConfig:Be(e,"generateConfig")},s),[E,k]=Ot(!1,{value:Be(e,"open"),defaultValue:e.defaultOpen,postState:Pe=>C.value[S.value]?!1:Pe,onChange:Pe=>{var He;(He=e.onOpenChange)===null||He===void 0||He.call(e,Pe),!Pe&&x.value&&x.value.onClose&&x.value.onClose()}}),B=P(()=>E.value&&S.value===0),L=P(()=>E.value&&S.value===1),j=Z(0),K=Z(0),G=Z(0),{width:U}=fl(u);ue([E,U],()=>{!E.value&&u.value&&(G.value=U.value)});const{width:X}=fl(c),{width:ee}=fl(b),{width:oe}=fl(d),{width:Q}=fl(g);ue([S,E,X,ee,oe,Q,()=>e.direction],()=>{K.value=0,S.value?d.value&&g.value&&(K.value=oe.value+Q.value,X.value&&ee.value&&K.value>X.value-ee.value-(e.direction==="rtl"||b.value.offsetLeft>K.value?0:b.value.offsetLeft)&&(j.value=K.value)):S.value===0&&(j.value=0)},{immediate:!0});const W=Z();function q(Pe,He){if(Pe)clearTimeout(W.value),s.value[He]=!0,$(He),k(Pe),E.value||_(null,He);else if(S.value===He){k(Pe);const Fe=s.value;W.value=setTimeout(()=>{Fe===s.value&&(s.value={})})}}function re(Pe){q(!0,Pe),setTimeout(()=>{const He=[m,h][Pe];He.value&&He.value.focus()},0)}function le(Pe,He){let Fe=Pe,gt=dt(Fe,0),At=dt(Fe,1);const{generateConfig:It,locale:un,picker:Gt,order:so,onCalendarChange:yn,allowEmpty:Nn,onChange:St,showTime:qn}=e;gt&&At&&It.isAfter(gt,At)&&(Gt==="week"&&!$w(It,un.locale,gt,At)||Gt==="quarter"&&!Sw(It,gt,At)||Gt!=="week"&&Gt!=="quarter"&&Gt!=="time"&&!(qn?wa(It,gt,At):Ao(It,gt,At))?(He===0?(Fe=[gt,null],At=null):(gt=null,Fe=[null,At]),s.value={[He]:!0}):(Gt!=="time"||so!==!1)&&(Fe=O1(Fe,It))),F(Fe);const kn=Fe&&Fe[0]?Ut(Fe[0],{generateConfig:It,locale:un,format:y.value[0]}):"",Xo=Fe&&Fe[1]?Ut(Fe[1],{generateConfig:It,locale:un,format:y.value[0]}):"";yn&&yn(Fe,[kn,Xo],{range:He===0?"start":"end"});const Uo=P1(gt,0,C.value,Nn),Qn=P1(At,1,C.value,Nn);(Fe===null||Uo&&Qn)&&(w(Fe),St&&(!wa(It,dt(O.value,0),gt)||!wa(It,dt(O.value,1),At))&&St(Fe,[kn,Xo]));let Zn=null;He===0&&!C.value[1]?Zn=1:He===1&&!C.value[0]&&(Zn=0),Zn!==null&&Zn!==S.value&&(!s.value[Zn]||!dt(Fe,Zn))&&dt(Fe,He)?re(Zn):q(!1,He)}const ye=Pe=>E&&x.value&&x.value.onKeydown?x.value.onKeydown(Pe):!1,me={formatList:y,generateConfig:Be(e,"generateConfig"),locale:Be(e,"locale")},[ce,se]=Us(P(()=>dt(D.value,0)),me),[ie,fe]=Us(P(()=>dt(D.value,1)),me),Se=(Pe,He)=>{const Fe=Cw(Pe,{locale:e.locale,formatList:y.value,generateConfig:e.generateConfig});Fe&&!(He===0?A:R)(Fe)&&(F(Hn(D.value,Fe,He)),_(Fe,He))},[Ie,ge,Oe]=Jf({valueTexts:ce,onTextChange:Pe=>Se(Pe,0)}),[we,ae,ne]=Jf({valueTexts:ie,onTextChange:Pe=>Se(Pe,1)}),[pe,xe]=pt(null),[Te,ke]=pt(null),[ve,he,be]=ep(Ie,me),[Me,Ae,_e]=ep(we,me),Re=Pe=>{ke(Hn(D.value,Pe,S.value)),S.value===0?he(Pe):Ae(Pe)},Ye=()=>{ke(Hn(D.value,null,S.value)),S.value===0?be():_e()},tt=(Pe,He)=>({forwardKeydown:ye,onBlur:Fe=>{var gt;(gt=e.onBlur)===null||gt===void 0||gt.call(e,Fe)},isClickOutside:Fe=>!yw([c.value,d.value,p.value,u.value],Fe),onFocus:Fe=>{var gt;$(Pe),(gt=e.onFocus)===null||gt===void 0||gt.call(e,Fe)},triggerOpen:Fe=>{q(Fe,Pe)},onSubmit:()=>{if(!D.value||e.disabledDate&&e.disabledDate(D.value[Pe]))return!1;le(D.value,Pe),He()},onCancel:()=>{q(!1,Pe),F(O.value),He()}}),[at,{focused:it,typing:ct}]=Zf(v(v({},tt(0,Oe)),{blurToCancel:r,open:B,value:Ie,onKeydown:(Pe,He)=>{var Fe;(Fe=e.onKeydown)===null||Fe===void 0||Fe.call(e,Pe,He)}})),[Et,{focused:Dt,typing:Bt}]=Zf(v(v({},tt(1,ne)),{blurToCancel:r,open:L,value:we,onKeydown:(Pe,He)=>{var Fe;(Fe=e.onKeydown)===null||Fe===void 0||Fe.call(e,Pe,He)}})),Pt=Pe=>{var He;(He=e.onClick)===null||He===void 0||He.call(e,Pe),!E.value&&!m.value.contains(Pe.target)&&!h.value.contains(Pe.target)&&(C.value[0]?C.value[1]||re(1):re(0))},Qt=Pe=>{var He;(He=e.onMousedown)===null||He===void 0||He.call(e,Pe),E.value&&(it.value||Dt.value)&&!m.value.contains(Pe.target)&&!h.value.contains(Pe.target)&&Pe.preventDefault()},sn=P(()=>{var Pe;return!((Pe=O.value)===null||Pe===void 0)&&Pe[0]?Ut(O.value[0],{locale:e.locale,format:"YYYYMMDDHHmmss",generateConfig:e.generateConfig}):""}),Rn=P(()=>{var Pe;return!((Pe=O.value)===null||Pe===void 0)&&Pe[1]?Ut(O.value[1],{locale:e.locale,format:"YYYYMMDDHHmmss",generateConfig:e.generateConfig}):""});ue([E,ce,ie],()=>{E.value||(F(O.value),!ce.value.length||ce.value[0]===""?ge(""):se.value!==Ie.value&&Oe(),!ie.value.length||ie.value[0]===""?ae(""):fe.value!==we.value&&ne())}),ue([sn,Rn],()=>{F(O.value)}),o({focus:()=>{m.value&&m.value.focus()},blur:()=>{m.value&&m.value.blur(),h.value&&h.value.blur()}});const Yn=P(()=>E.value&&Te.value&&Te.value[0]&&Te.value[1]&&e.generateConfig.isAfter(Te.value[1],Te.value[0])?Te.value:null);function cn(){let Pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{generateConfig:Fe,showTime:gt,dateRender:At,direction:It,disabledTime:un,prefixCls:Gt,locale:so}=e;let yn=gt;if(gt&&typeof gt=="object"&>.defaultValue){const St=gt.defaultValue;yn=v(v({},gt),{defaultValue:dt(St,S.value)||void 0})}let Nn=null;return At&&(Nn=St=>{let{current:qn,today:kn}=St;return At({current:qn,today:kn,info:{range:S.value?"end":"start"}})}),f(FB,{value:{inRange:!0,panelPosition:Pe,rangedValue:pe.value||D.value,hoverRangedValue:Yn.value}},{default:()=>[f(Ew,N(N(N({},e),He),{},{dateRender:Nn,showTime:yn,mode:z.value[S.value],generateConfig:Fe,style:void 0,direction:It,disabledDate:S.value===0?A:R,disabledTime:St=>un?un(St,S.value===0?"start":"end"):!1,class:te({[`${Gt}-panel-focused`]:S.value===0?!ct.value:!Bt.value}),value:dt(D.value,S.value),locale:so,tabIndex:-1,onPanelChange:(St,qn)=>{S.value===0&&be(!0),S.value===1&&_e(!0),T(Hn(z.value,qn,S.value),Hn(D.value,St,S.value));let kn=St;Pe==="right"&&z.value[S.value]===qn&&(kn=Il(kn,qn,Fe,-1)),_(kn,S.value)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:S.value===0?dt(D.value,1):dt(D.value,0)}),null)]})}const vr=(Pe,He)=>{const Fe=Hn(D.value,Pe,S.value);He==="submit"||He!=="key"&&!r.value?(le(Fe,S.value),S.value===0?be():_e()):F(Fe)};return Eg({operationRef:x,hideHeader:P(()=>e.picker==="time"),onDateMouseenter:Re,onDateMouseleave:Ye,hideRanges:P(()=>!0),onSelect:vr,open:E}),()=>{const{prefixCls:Pe="rc-picker",id:He,popupStyle:Fe,dropdownClassName:gt,transitionName:At,dropdownAlign:It,getPopupContainer:un,generateConfig:Gt,locale:so,placeholder:yn,autofocus:Nn,picker:St="date",showTime:qn,separator:kn="~",disabledDate:Xo,panelRender:Uo,allowClear:Qn,suffixIcon:na,clearIcon:Zn,inputReadOnly:xu,renderExtraFooter:e8,onMouseenter:t8,onMouseleave:n8,onMouseup:o8,onOk:Rm,components:r8,direction:ll,autocomplete:Nm="off"}=e,a8=ll==="rtl"?{right:`${K.value}px`}:{left:`${K.value}px`};function l8(){let dn;const Yo=Tw(Pe,z.value[S.value],e8),Lm=Mw({prefixCls:Pe,components:r8,needConfirmButton:r.value,okDisabled:!dt(D.value,S.value)||Xo&&Xo(D.value[S.value]),locale:so,onOk:()=>{dt(D.value,S.value)&&(le(D.value,S.value),Rm&&Rm(D.value))}});if(St!=="time"&&!qn){const qo=S.value===0?M.value:I.value,c8=Il(qo,St,Gt),Iu=z.value[S.value]===St,zm=cn(Iu?"left":!1,{pickerValue:qo,onPickerValueChange:Tu=>{_(Tu,S.value)}}),Hm=cn("right",{pickerValue:c8,onPickerValueChange:Tu=>{_(Il(Tu,St,Gt,-1),S.value)}});ll==="rtl"?dn=f(nt,null,[Hm,Iu&&zm]):dn=f(nt,null,[zm,Iu&&Hm])}else dn=cn();let Pu=f("div",{class:`${Pe}-panel-layout`},[f(Dw,{prefixCls:Pe,presets:i.value,onClick:qo=>{le(qo,null),q(!1,S.value)},onHover:qo=>{xe(qo)}},null),f("div",null,[f("div",{class:`${Pe}-panels`},[dn]),(Yo||Lm)&&f("div",{class:`${Pe}-footer`},[Yo,Lm])])]);return Uo&&(Pu=Uo(Pu)),f("div",{class:`${Pe}-panel-container`,style:{marginLeft:`${j.value}px`},ref:c,onMousedown:qo=>{qo.preventDefault()}},[Pu])}const i8=f("div",{class:te(`${Pe}-range-wrapper`,`${Pe}-${St}-range-wrapper`),style:{minWidth:`${G.value}px`}},[f("div",{ref:b,class:`${Pe}-range-arrow`,style:a8},null),l8()]);let km;na&&(km=f("span",{class:`${Pe}-suffix`},[na]));let Bm;Qn&&(dt(O.value,0)&&!C.value[0]||dt(O.value,1)&&!C.value[1])&&(Bm=f("span",{onMousedown:dn=>{dn.preventDefault(),dn.stopPropagation()},onMouseup:dn=>{dn.preventDefault(),dn.stopPropagation();let Yo=O.value;C.value[0]||(Yo=Hn(Yo,null,0)),C.value[1]||(Yo=Hn(Yo,null,1)),le(Yo,null),q(!1,S.value)},class:`${Pe}-clear`},[Zn||f("span",{class:`${Pe}-clear-btn`},null)]));const Fm={size:bw(St,y.value[0],Gt)};let wu=0,Ou=0;d.value&&p.value&&g.value&&(S.value===0?Ou=d.value.offsetWidth:(wu=K.value,Ou=p.value.offsetWidth));const s8=ll==="rtl"?{right:`${wu}px`}:{left:`${wu}px`};return f("div",N({ref:u,class:te(Pe,`${Pe}-range`,n.class,{[`${Pe}-disabled`]:C.value[0]&&C.value[1],[`${Pe}-focused`]:S.value===0?it.value:Dt.value,[`${Pe}-rtl`]:ll==="rtl"}),style:n.style,onClick:Pt,onMouseenter:t8,onMouseleave:n8,onMousedown:Qt,onMouseup:o8},Ow(e)),[f("div",{class:te(`${Pe}-input`,{[`${Pe}-input-active`]:S.value===0,[`${Pe}-input-placeholder`]:!!ve.value}),ref:d},[f("input",N(N(N({id:He,disabled:C.value[0],readonly:xu||typeof y.value[0]=="function"||!ct.value,value:ve.value||Ie.value,onInput:dn=>{ge(dn.target.value)},autofocus:Nn,placeholder:dt(yn,0)||"",ref:m},at.value),Fm),{},{autocomplete:Nm}),null)]),f("div",{class:`${Pe}-range-separator`,ref:g},[kn]),f("div",{class:te(`${Pe}-input`,{[`${Pe}-input-active`]:S.value===1,[`${Pe}-input-placeholder`]:!!Me.value}),ref:p},[f("input",N(N(N({disabled:C.value[1],readonly:xu||typeof y.value[0]=="function"||!Bt.value,value:Me.value||we.value,onInput:dn=>{ae(dn.target.value)},placeholder:dt(yn,1)||"",ref:h},Et.value),Fm),{},{autocomplete:Nm}),null)]),f("div",{class:`${Pe}-active-bar`,style:v(v({},s8),{width:`${Ou}px`,position:"absolute"})},null),km,Bm,f(_w,{visible:E.value,popupStyle:Fe,prefixCls:Pe,dropdownClassName:gt,dropdownAlign:It,getPopupContainer:un,transitionName:At,range:!0,direction:ll},{default:()=>[f("div",{style:{pointerEvents:"none",position:"absolute",top:0,bottom:0,left:0,right:0}},null)],popupElement:()=>i8})])}}})}const lF=aF(),iF=lF;var sF=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);re.checked,()=>{a.value=e.checked}),r({focus(){var c;(c=l.value)===null||c===void 0||c.focus()},blur(){var c;(c=l.value)===null||c===void 0||c.blur()}});const i=Z(),s=c=>{if(e.disabled)return;e.checked===void 0&&(a.value=c.target.checked),c.shiftKey=i.value;const d={target:v(v({},e),{checked:c.target.checked}),stopPropagation(){c.stopPropagation()},preventDefault(){c.preventDefault()},nativeEvent:c};e.checked!==void 0&&(l.value.checked=!!e.checked),o("change",d),i.value=!1},u=c=>{o("click",c),i.value=c.shiftKey};return()=>{const{prefixCls:c,name:d,id:p,type:g,disabled:m,readonly:h,tabindex:b,autofocus:y,value:S,required:$}=e,x=sF(e,["prefixCls","name","id","type","disabled","readonly","tabindex","autofocus","value","required"]),{class:C,onFocus:O,onBlur:w,onKeydown:M,onKeypress:I,onKeyup:_}=n,D=v(v({},x),n),F=Object.keys(D).reduce((T,A)=>((A.startsWith("data-")||A.startsWith("aria-")||A==="role")&&(T[A]=D[A]),T),{}),z=te(c,C,{[`${c}-checked`]:a.value,[`${c}-disabled`]:m}),H=v(v({name:d,id:p,type:g,readonly:h,disabled:m,tabindex:b,class:`${c}-input`,checked:!!a.value,autofocus:y,value:S},F),{onChange:s,onClick:u,onFocus:O,onBlur:w,onKeydown:M,onKeypress:I,onKeyup:_,required:$});return f("span",{class:z},[f("input",N({ref:l},H),null),f("span",{class:`${c}-inner`},null)])}}}),Bw=Symbol("radioGroupContextKey"),uF=e=>{Ke(Bw,e)},dF=()=>Xe(Bw,void 0),Fw=Symbol("radioOptionTypeContextKey"),fF=e=>{Ke(Fw,e)},pF=()=>Xe(Fw,void 0),vF=new Ue("antRadioEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),gF=e=>{const{componentCls:t,antCls:n}=e,o=`${t}-group`;return{[o]:v(v({},et(e)),{display:"inline-block",fontSize:0,[`&${o}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},hF=e=>{const{componentCls:t,radioWrapperMarginRight:n,radioCheckedColor:o,radioSize:r,motionDurationSlow:a,motionDurationMid:l,motionEaseInOut:i,motionEaseInOutCirc:s,radioButtonBg:u,colorBorder:c,lineWidth:d,radioDotSize:p,colorBgContainerDisabled:g,colorTextDisabled:m,paddingXS:h,radioDotDisabledColor:b,lineType:y,radioDotDisabledSize:S,wireframe:$,colorWhite:x}=e,C=`${t}-inner`;return{[`${t}-wrapper`]:v(v({},et(e)),{position:"relative",display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${d}px ${y} ${o}`,borderRadius:"50%",visibility:"hidden",animationName:vF,animationDuration:a,animationTimingFunction:i,animationFillMode:"both",content:'""'},[t]:v(v({},et(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center"}),[`${t}-wrapper:hover &, + &:hover ${C}`]:{borderColor:o},[`${t}-input:focus-visible + ${C}`]:v({},Fo(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:r,height:r,marginBlockStart:r/-2,marginInlineStart:r/-2,backgroundColor:$?o:x,borderBlockStart:0,borderInlineStart:0,borderRadius:r,transform:"scale(0)",opacity:0,transition:`all ${a} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:r,height:r,backgroundColor:u,borderColor:c,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${l}`},[`${t}-input`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,insetBlockEnd:0,insetInlineStart:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[C]:{borderColor:o,backgroundColor:$?u:o,"&::after":{transform:`scale(${p/r})`,opacity:1,transition:`all ${a} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[C]:{backgroundColor:g,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:b}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:m,cursor:"not-allowed"},[`&${t}-checked`]:{[C]:{"&::after":{transform:`scale(${S/r})`}}}},[`span${t} + *`]:{paddingInlineStart:h,paddingInlineEnd:h}})}},mF=e=>{const{radioButtonColor:t,controlHeight:n,componentCls:o,lineWidth:r,lineType:a,colorBorder:l,motionDurationSlow:i,motionDurationMid:s,radioButtonPaddingHorizontal:u,fontSize:c,radioButtonBg:d,fontSizeLG:p,controlHeightLG:g,controlHeightSM:m,paddingXS:h,borderRadius:b,borderRadiusSM:y,borderRadiusLG:S,radioCheckedColor:$,radioButtonCheckedBg:x,radioButtonHoverColor:C,radioButtonActiveColor:O,radioSolidCheckedColor:w,colorTextDisabled:M,colorBgContainerDisabled:I,radioDisabledButtonCheckedColor:_,radioDisabledButtonCheckedBg:D}=e;return{[`${o}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:u,paddingBlock:0,color:t,fontSize:c,lineHeight:`${n-r*2}px`,background:d,border:`${r}px ${a} ${l}`,borderBlockStartWidth:r+.02,borderInlineStartWidth:0,borderInlineEndWidth:r,cursor:"pointer",transition:[`color ${s}`,`background ${s}`,`border-color ${s}`,`box-shadow ${s}`].join(","),a:{color:t},[`> ${o}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-r,insetInlineStart:-r,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:r,paddingInline:0,backgroundColor:l,transition:`background-color ${i}`,content:'""'}},"&:first-child":{borderInlineStart:`${r}px ${a} ${l}`,borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b},"&:first-child:last-child":{borderRadius:b},[`${o}-group-large &`]:{height:g,fontSize:p,lineHeight:`${g-r*2}px`,"&:first-child":{borderStartStartRadius:S,borderEndStartRadius:S},"&:last-child":{borderStartEndRadius:S,borderEndEndRadius:S}},[`${o}-group-small &`]:{height:m,paddingInline:h-r,paddingBlock:0,lineHeight:`${m-r*2}px`,"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},"&:hover":{position:"relative",color:$},"&:has(:focus-visible)":v({},Fo(e)),[`${o}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${o}-button-wrapper-disabled)`]:{zIndex:1,color:$,background:x,borderColor:$,"&::before":{backgroundColor:$},"&:first-child":{borderColor:$},"&:hover":{color:C,borderColor:C,"&::before":{backgroundColor:C}},"&:active":{color:O,borderColor:O,"&::before":{backgroundColor:O}}},[`${o}-group-solid &-checked:not(${o}-button-wrapper-disabled)`]:{color:w,background:$,borderColor:$,"&:hover":{color:w,background:C,borderColor:C},"&:active":{color:w,background:O,borderColor:O}},"&-disabled":{color:M,backgroundColor:I,borderColor:l,cursor:"not-allowed","&:first-child, &:hover":{color:M,backgroundColor:I,borderColor:l}},[`&-disabled${o}-button-wrapper-checked`]:{color:_,backgroundColor:D,borderColor:l,boxShadow:"none"}}}},Lw=Qe("Radio",e=>{const{padding:t,lineWidth:n,controlItemBgActiveDisabled:o,colorTextDisabled:r,colorBgContainer:a,fontSizeLG:l,controlOutline:i,colorPrimaryHover:s,colorPrimaryActive:u,colorText:c,colorPrimary:d,marginXS:p,controlOutlineWidth:g,colorTextLightSolid:m,wireframe:h}=e,b=`0 0 0 ${g}px ${i}`,y=b,S=l,$=4,x=S-$*2,C=h?x:S-($+n)*2,O=d,w=c,M=s,I=u,_=t-n,z=ze(e,{radioFocusShadow:b,radioButtonFocusShadow:y,radioSize:S,radioDotSize:C,radioDotDisabledSize:x,radioCheckedColor:O,radioDotDisabledColor:r,radioSolidCheckedColor:m,radioButtonBg:a,radioButtonCheckedBg:a,radioButtonColor:w,radioButtonHoverColor:M,radioButtonActiveColor:I,radioButtonPaddingHorizontal:_,radioDisabledButtonCheckedBg:o,radioDisabledButtonCheckedColor:r,radioWrapperMarginRight:p});return[gF(z),hF(z),mF(z)]});var bF=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({prefixCls:String,checked:Ce(),disabled:Ce(),isGroup:Ce(),value:V.any,name:String,id:String,autofocus:Ce(),onChange:de(),onFocus:de(),onBlur:de(),onClick:de(),"onUpdate:checked":de(),"onUpdate:value":de()}),pn=J({compatConfig:{MODE:3},name:"ARadio",inheritAttrs:!1,props:zw(),setup(e,t){let{emit:n,expose:o,slots:r,attrs:a}=t;const l=Ht(),i=ln.useInject(),s=pF(),u=dF(),c=gn(),d=P(()=>{var M;return(M=h.value)!==null&&M!==void 0?M:c.value}),p=Z(),{prefixCls:g,direction:m,disabled:h}=Ee("radio",e),b=P(()=>(u==null?void 0:u.optionType.value)==="button"||s==="button"?`${g.value}-button`:g.value),y=gn(),[S,$]=Lw(g);o({focus:()=>{p.value.focus()},blur:()=>{p.value.blur()}});const O=M=>{const I=M.target.checked;n("update:checked",I),n("update:value",I),n("change",M),l.onFieldChange()},w=M=>{n("change",M),u&&u.onChange&&u.onChange(M)};return()=>{var M;const I=u,{prefixCls:_,id:D=l.id.value}=e,F=bF(e,["prefixCls","id"]),z=v(v({prefixCls:b.value,id:D},qe(F,["onUpdate:checked","onUpdate:value"])),{disabled:(M=h.value)!==null&&M!==void 0?M:y.value});I?(z.name=I.name.value,z.onChange=w,z.checked=e.value===I.value.value,z.disabled=d.value||I.disabled.value):z.onChange=O;const H=te({[`${b.value}-wrapper`]:!0,[`${b.value}-wrapper-checked`]:z.checked,[`${b.value}-wrapper-disabled`]:z.disabled,[`${b.value}-wrapper-rtl`]:m.value==="rtl",[`${b.value}-wrapper-in-form-item`]:i.isFormItemInput},a.class,$.value);return S(f("label",N(N({},a),{},{class:H}),[f(kw,N(N({},z),{},{type:"radio",ref:p}),null),r.default&&f("span",null,[r.default()])]))}}}),yF=()=>({prefixCls:String,value:V.any,size:je(),options:ht(),disabled:Ce(),name:String,buttonStyle:je("outline"),id:String,optionType:je("default"),onChange:de(),"onUpdate:value":de()}),SF=J({compatConfig:{MODE:3},name:"ARadioGroup",inheritAttrs:!1,props:yF(),setup(e,t){let{slots:n,emit:o,attrs:r}=t;const a=Ht(),{prefixCls:l,direction:i,size:s}=Ee("radio",e),[u,c]=Lw(l),d=Z(e.value),p=Z(!1);return ue(()=>e.value,m=>{d.value=m,p.value=!1}),uF({onChange:m=>{const h=d.value,{value:b}=m.target;"value"in e||(d.value=b),!p.value&&b!==h&&(p.value=!0,o("update:value",b),o("change",m),a.onFieldChange()),lt(()=>{p.value=!1})},value:d,disabled:P(()=>e.disabled),name:P(()=>e.name),optionType:P(()=>e.optionType)}),()=>{var m;const{options:h,buttonStyle:b,id:y=a.id.value}=e,S=`${l.value}-group`,$=te(S,`${S}-${b}`,{[`${S}-${s.value}`]:s.value,[`${S}-rtl`]:i.value==="rtl"},r.class,c.value);let x=null;return h&&h.length>0?x=h.map(C=>{if(typeof C=="string"||typeof C=="number")return f(pn,{key:C,prefixCls:l.value,disabled:e.disabled,value:C,checked:d.value===C},{default:()=>[C]});const{value:O,disabled:w,label:M}=C;return f(pn,{key:`radio-group-value-options-${O}`,prefixCls:l.value,disabled:w||e.disabled,value:O,checked:d.value===O},{default:()=>[M]})}):x=(m=n.default)===null||m===void 0?void 0:m.call(n),u(f("div",N(N({},r),{},{class:$,id:y}),[x]))}}}),$F=J({compatConfig:{MODE:3},name:"ARadioButton",inheritAttrs:!1,props:zw(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r}=Ee("radio",e);return fF("button"),()=>{var a;return f(pn,N(N(N({},o),e),{},{prefixCls:r.value}),{default:()=>[(a=n.default)===null||a===void 0?void 0:a.call(n)]})}}});pn.Group=SF;pn.Button=$F;pn.install=function(e){return e.component(pn.name,pn),e.component(pn.Group.name,pn.Group),e.component(pn.Button.name,pn.Button),e};const Hw=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),rl=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),Wr=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),jw=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":v({},rl(ze(e,{inputBorderHoverColor:e.colorBorder})))}),Vw=e=>{const{inputPaddingVerticalLG:t,fontSizeLG:n,lineHeightLG:o,borderRadiusLG:r,inputPaddingHorizontalLG:a}=e;return{padding:`${t}px ${a}px`,fontSize:n,lineHeight:o,borderRadius:r}},Ug=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),qc=(e,t)=>{const{componentCls:n,colorError:o,colorWarning:r,colorErrorOutline:a,colorWarningOutline:l,colorErrorBorderHover:i,colorWarningBorderHover:s}=e;return{[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:o,"&:hover":{borderColor:i},"&:focus, &-focused":v({},Wr(ze(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:a}))),[`${n}-prefix`]:{color:o}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:s},"&:focus, &-focused":v({},Wr(ze(e,{inputBorderActiveColor:r,inputBorderHoverColor:r,controlOutline:l}))),[`${n}-prefix`]:{color:r}}}},al=e=>v(v({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.inputPaddingVertical}px ${e.inputPaddingHorizontal}px`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},Hw(e.colorTextPlaceholder)),{"&:hover":v({},rl(e)),"&:focus, &-focused":v({},Wr(e)),"&-disabled, &[disabled]":v({},jw(e)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":v({},Vw(e)),"&-sm":v({},Ug(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),Ww=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:v({},Vw(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:v({},Ug(e)),[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${e.inputPaddingHorizontal}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`-${e.inputPaddingVertical+1}px -${e.inputPaddingHorizontal}px`,[`&${n}-select-single:not(${n}-select-customize-input)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px -${e.inputPaddingHorizontal}px`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${t}`]:{float:"inline-start",width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:v(v({display:"block"},ro()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`& > ${t}-affix-wrapper`]:{display:"inline-flex"},[`& > ${n}-picker-range`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-e.lineWidth,borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector, + & > ${n}-select-auto-complete ${t}, + & > ${n}-cascader-picker ${t}, + & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child, + & > ${n}-select:first-child > ${n}-select-selector, + & > ${n}-select-auto-complete:first-child ${t}, + & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child, + & > ${n}-select:last-child > ${n}-select-selector, + & > ${n}-cascader-picker:last-child ${t}, + & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:-e.lineWidth,[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}}),[`&&-sm ${n}-btn`]:{fontSize:e.fontSizeSM,height:e.controlHeightSM,lineHeight:"normal"},[`&&-lg ${n}-btn`]:{fontSize:e.fontSizeLG,height:e.controlHeightLG,lineHeight:"normal"},[`&&-lg ${n}-select-single ${n}-select-selector`]:{height:`${e.controlHeightLG}px`,[`${n}-select-selection-item, ${n}-select-selection-placeholder`]:{lineHeight:`${e.controlHeightLG-2}px`},[`${n}-select-selection-search-input`]:{height:`${e.controlHeightLG}px`}},[`&&-sm ${n}-select-single ${n}-select-selector`]:{height:`${e.controlHeightSM}px`,[`${n}-select-selection-item, ${n}-select-selection-placeholder`]:{lineHeight:`${e.controlHeightSM-2}px`},[`${n}-select-selection-search-input`]:{height:`${e.controlHeightSM}px`}}}},CF=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:o}=e,a=(n-o*2-16)/2;return{[t]:v(v(v(v({},et(e)),al(e)),qc(e,t)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}}})}},xF=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${e.inputAffixPadding}px`}},"&-textarea-with-clear-btn":{padding:"0 !important",border:"0 !important",[`${t}-clear-icon`]:{position:"absolute",insetBlockStart:e.paddingXS,insetInlineEnd:e.paddingXS,zIndex:1}}}},wF=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:o,motionDurationSlow:r,colorIcon:a,colorIconHover:l,iconCls:i}=e;return{[`${t}-affix-wrapper`]:v(v(v(v(v({},al(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:v(v({},rl(e)),{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&:focus":{boxShadow:"none !important"}},"&::before":{width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:o},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),xF(e)),{[`${i}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${r}`,"&:hover":{color:l}}}),qc(e,`${t}-affix-wrapper`))}},OF=e=>{const{componentCls:t,colorError:n,colorSuccess:o,borderRadiusLG:r,borderRadiusSM:a}=e;return{[`${t}-group`]:v(v(v({},et(e)),Ww(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:r}},"&-sm":{[`${t}-group-addon`]:{borderRadius:a}},"&-status-error":{[`${t}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${t}-group-addon:last-child`]:{color:o,borderColor:o}}}})}},PF=e=>{const{componentCls:t,antCls:n}=e,o=`${t}-search`;return{[o]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${o}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.lineHeightLG-2e-4},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${o}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0},[`${o}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${o}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${o}-button`]:{height:e.controlHeightLG},[`&-small ${o}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:-e.lineWidth,borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button, + > ${t}, + ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}};function fi(e){return ze(e,{inputAffixPadding:e.paddingXXS,inputPaddingVertical:Math.max(Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,3),inputPaddingVerticalLG:Math.ceil((e.controlHeightLG-e.fontSizeLG*e.lineHeightLG)/2*10)/10-e.lineWidth,inputPaddingVerticalSM:Math.max(Math.round((e.controlHeightSM-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,0),inputPaddingHorizontal:e.paddingSM-e.lineWidth,inputPaddingHorizontalSM:e.paddingXS-e.lineWidth,inputPaddingHorizontalLG:e.controlPaddingHorizontal-e.lineWidth,inputBorderHoverColor:e.colorPrimaryHover,inputBorderActiveColor:e.colorPrimaryHover})}const IF=e=>{const{componentCls:t,inputPaddingHorizontal:n,paddingLG:o}=e,r=`${t}-textarea`;return{[r]:{position:"relative",[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:n,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto"},"&-status-error,\n &-status-warning,\n &-status-success,\n &-status-validating":{[`&${r}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:o}}},"&-show-count":{[`> ${t}`]:{height:"100%"},"&::after":{color:e.colorTextDescription,whiteSpace:"nowrap",content:"attr(data-count)",pointerEvents:"none",float:"right"}},"&-rtl":{"&::after":{float:"left"}}}}},Yg=Qe("Input",e=>{const t=fi(e);return[CF(t),IF(t),wF(t),OF(t),PF(t),tl(t)]}),cd=(e,t,n,o)=>{const{lineHeight:r}=e,a=Math.floor(n*r)+2,l=Math.max((t-a)/2,0),i=Math.max(t-a-l,0);return{padding:`${l}px ${o}px ${i}px`}},TF=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:o,pickerPanelCellHeight:r,motionDurationSlow:a,borderRadiusSM:l,motionDurationMid:i,controlItemBgHover:s,lineWidth:u,lineType:c,colorPrimary:d,controlItemBgActive:p,colorTextLightSolid:g,controlHeightSM:m,pickerDateHoverRangeBorderColor:h,pickerCellBorderGap:b,pickerBasicCellHoverWithRangeColor:y,pickerPanelCellWidth:S,colorTextDisabled:$,colorBgContainerDisabled:x}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",transition:`all ${a}`,content:'""'},[o]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:`${r}px`,borderRadius:l,transition:`background ${i}, border ${i}`},[`&:hover:not(${n}-in-view), + &:hover:not(${n}-selected):not(${n}-range-start):not(${n}-range-end):not(${n}-range-hover-start):not(${n}-range-hover-end)`]:{[o]:{background:s}},[`&-in-view${n}-today ${o}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${u}px ${c} ${d}`,borderRadius:l,content:'""'}},[`&-in-view${n}-in-range`]:{position:"relative","&::before":{background:p}},[`&-in-view${n}-selected ${o}, + &-in-view${n}-range-start ${o}, + &-in-view${n}-range-end ${o}`]:{color:g,background:d},[`&-in-view${n}-range-start:not(${n}-range-start-single), + &-in-view${n}-range-end:not(${n}-range-end-single)`]:{"&::before":{background:p}},[`&-in-view${n}-range-start::before`]:{insetInlineStart:"50%"},[`&-in-view${n}-range-end::before`]:{insetInlineEnd:"50%"},[`&-in-view${n}-range-hover-start:not(${n}-in-range):not(${n}-range-start):not(${n}-range-end), + &-in-view${n}-range-hover-end:not(${n}-in-range):not(${n}-range-start):not(${n}-range-end), + &-in-view${n}-range-hover-start${n}-range-start-single, + &-in-view${n}-range-hover-start${n}-range-start${n}-range-end${n}-range-end-near-hover, + &-in-view${n}-range-hover-end${n}-range-start${n}-range-end${n}-range-start-near-hover, + &-in-view${n}-range-hover-end${n}-range-end-single, + &-in-view${n}-range-hover:not(${n}-in-range)`]:{"&::after":{position:"absolute",top:"50%",zIndex:0,height:m,borderTop:`${u}px dashed ${h}`,borderBottom:`${u}px dashed ${h}`,transform:"translateY(-50%)",transition:`all ${a}`,content:'""'}},"&-range-hover-start::after,\n &-range-hover-end::after,\n &-range-hover::after":{insetInlineEnd:0,insetInlineStart:b},[`&-in-view${n}-in-range${n}-range-hover::before, + &-in-view${n}-range-start${n}-range-hover::before, + &-in-view${n}-range-end${n}-range-hover::before, + &-in-view${n}-range-start:not(${n}-range-start-single)${n}-range-hover-start::before, + &-in-view${n}-range-end:not(${n}-range-end-single)${n}-range-hover-end::before, + ${t}-panel + > :not(${t}-date-panel) + &-in-view${n}-in-range${n}-range-hover-start::before, + ${t}-panel + > :not(${t}-date-panel) + &-in-view${n}-in-range${n}-range-hover-end::before`]:{background:y},[`&-in-view${n}-range-start:not(${n}-range-start-single):not(${n}-range-end) ${o}`]:{borderStartStartRadius:l,borderEndStartRadius:l,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${n}-range-end:not(${n}-range-end-single):not(${n}-range-start) ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:l,borderEndEndRadius:l},[`&-range-hover${n}-range-end::after`]:{insetInlineStart:"50%"},[`tr > &-in-view${n}-range-hover:first-child::after, + tr > &-in-view${n}-range-hover-end:first-child::after, + &-in-view${n}-start${n}-range-hover-edge-start${n}-range-hover-edge-start-near-range::after, + &-in-view${n}-range-hover-edge-start:not(${n}-range-hover-edge-start-near-range)::after, + &-in-view${n}-range-hover-start::after`]:{insetInlineStart:(S-r)/2,borderInlineStart:`${u}px dashed ${h}`,borderStartStartRadius:u,borderEndStartRadius:u},[`tr > &-in-view${n}-range-hover:last-child::after, + tr > &-in-view${n}-range-hover-start:last-child::after, + &-in-view${n}-end${n}-range-hover-edge-end${n}-range-hover-edge-end-near-range::after, + &-in-view${n}-range-hover-edge-end:not(${n}-range-hover-edge-end-near-range)::after, + &-in-view${n}-range-hover-end::after`]:{insetInlineEnd:(S-r)/2,borderInlineEnd:`${u}px dashed ${h}`,borderStartEndRadius:u,borderEndEndRadius:u},"&-disabled":{color:$,pointerEvents:"none",[o]:{background:"transparent"},"&::before":{background:x}},[`&-disabled${n}-today ${o}::before`]:{borderColor:$}}},MF=e=>{const{componentCls:t,pickerCellInnerCls:n,pickerYearMonthCellWidth:o,pickerControlIconSize:r,pickerPanelCellWidth:a,paddingSM:l,paddingXS:i,paddingXXS:s,colorBgContainer:u,lineWidth:c,lineType:d,borderRadiusLG:p,colorPrimary:g,colorTextHeading:m,colorSplit:h,pickerControlIconBorderWidth:b,colorIcon:y,pickerTextHeight:S,motionDurationMid:$,colorIconHover:x,fontWeightStrong:C,pickerPanelCellHeight:O,pickerCellPaddingVertical:w,colorTextDisabled:M,colorText:I,fontSize:_,pickerBasicCellHoverWithRangeColor:D,motionDurationSlow:F,pickerPanelWithoutTimeCellHeight:z,pickerQuarterPanelContentHeight:H,colorLink:T,colorLinkActive:A,colorLinkHover:R,pickerDateHoverRangeBorderColor:E,borderRadiusSM:k,colorTextLightSolid:B,borderRadius:L,controlItemBgHover:j,pickerTimePanelColumnHeight:K,pickerTimePanelColumnWidth:G,pickerTimePanelCellHeight:U,controlItemBgActive:X,marginXXS:ee}=e,oe=a*7+l*2+4,Q=(oe-i*2)/3-o-l;return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:u,border:`${c}px ${d} ${h}`,borderRadius:p,outline:"none","&-focused":{borderColor:g},"&-rtl":{direction:"rtl",[`${t}-prev-icon, + ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon, + ${t}-super-next-icon`]:{transform:"rotate(-135deg)"}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:oe},"&-header":{display:"flex",padding:`0 ${i}px`,color:m,borderBottom:`${c}px ${d} ${h}`,"> *":{flex:"none"},button:{padding:0,color:y,lineHeight:`${S}px`,background:"transparent",border:0,cursor:"pointer",transition:`color ${$}`},"> button":{minWidth:"1.6em",fontSize:_,"&:hover":{color:x}},"&-view":{flex:"auto",fontWeight:C,lineHeight:`${S}px`,button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:i},"&:hover":{color:g}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",display:"inline-block",width:r,height:r,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:r,height:r,border:"0 solid currentcolor",borderBlockStartWidth:b,borderBlockEndWidth:0,borderInlineStartWidth:b,borderInlineEndWidth:0,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:Math.ceil(r/2),insetInlineStart:Math.ceil(r/2),display:"inline-block",width:r,height:r,border:"0 solid currentcolor",borderBlockStartWidth:b,borderBlockEndWidth:0,borderInlineStartWidth:b,borderInlineEndWidth:0,content:'""'}},"&-prev-icon,\n &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon,\n &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:O,fontWeight:"normal"},th:{height:O+w*2,color:I,verticalAlign:"middle"}},"&-cell":v({padding:`${w}px 0`,color:M,cursor:"pointer","&-in-view":{color:I}},TF(e)),[`&-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-start ${n}, + &-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-end ${n}`]:{"&::after":{position:"absolute",top:0,bottom:0,zIndex:-1,background:D,transition:`all ${F}`,content:'""'}},[`&-date-panel + ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-start + ${n}::after`]:{insetInlineEnd:-(a-O)/2,insetInlineStart:0},[`&-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-end ${n}::after`]:{insetInlineEnd:0,insetInlineStart:-(a-O)/2},[`&-range-hover${t}-range-start::after`]:{insetInlineEnd:"50%"},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:z*4},[n]:{padding:`0 ${i}px`}},"&-quarter-panel":{[`${t}-content`]:{height:H}},[`&-panel ${t}-footer`]:{borderTop:`${c}px ${d} ${h}`},"&-footer":{width:"min-content",minWidth:"100%",lineHeight:`${S-2*c}px`,textAlign:"center","&-extra":{padding:`0 ${l}`,lineHeight:`${S-2*c}px`,textAlign:"start","&:not(:last-child)":{borderBottom:`${c}px ${d} ${h}`}}},"&-now":{textAlign:"start"},"&-today-btn":{color:T,"&:hover":{color:R},"&:active":{color:A},[`&${t}-today-btn-disabled`]:{color:M,cursor:"not-allowed"}},"&-decade-panel":{[n]:{padding:`0 ${i/2}px`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${i}px`},[n]:{width:o},[`${t}-cell-range-hover-start::after`]:{insetInlineStart:Q,borderInlineStart:`${c}px dashed ${E}`,borderStartStartRadius:k,borderBottomStartRadius:k,borderStartEndRadius:0,borderBottomEndRadius:0,[`${t}-panel-rtl &`]:{insetInlineEnd:Q,borderInlineEnd:`${c}px dashed ${E}`,borderStartStartRadius:0,borderBottomStartRadius:0,borderStartEndRadius:k,borderBottomEndRadius:k}},[`${t}-cell-range-hover-end::after`]:{insetInlineEnd:Q,borderInlineEnd:`${c}px dashed ${E}`,borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:L,borderEndEndRadius:L,[`${t}-panel-rtl &`]:{insetInlineStart:Q,borderInlineStart:`${c}px dashed ${E}`,borderStartStartRadius:L,borderEndStartRadius:L,borderStartEndRadius:0,borderEndEndRadius:0}}},"&-week-panel":{[`${t}-body`]:{padding:`${i}px ${l}px`},[`${t}-cell`]:{[`&:hover ${n}, + &-selected ${n}, + ${n}`]:{background:"transparent !important"}},"&-row":{td:{transition:`background ${$}`,"&:first-child":{borderStartStartRadius:k,borderEndStartRadius:k},"&:last-child":{borderStartEndRadius:k,borderEndEndRadius:k}},"&:hover td":{background:j},"&-selected td,\n &-selected:hover td":{background:g,[`&${t}-cell-week`]:{color:new st(B).setAlpha(.5).toHexString()},[`&${t}-cell-today ${n}::before`]:{borderColor:B},[n]:{color:B}}}},"&-date-panel":{[`${t}-body`]:{padding:`${i}px ${l}px`},[`${t}-content`]:{width:a*7,th:{width:a}}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${c}px ${d} ${h}`},[`${t}-date-panel, + ${t}-time-panel`]:{transition:`opacity ${F}`},"&-active":{[`${t}-date-panel, + ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",direction:"ltr",[`${t}-content`]:{display:"flex",flex:"auto",height:K},"&-column":{flex:"1 0 auto",width:G,margin:`${s}px 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${$}`,overflowX:"hidden","&::after":{display:"block",height:K-U,content:'""'},"&:not(:first-child)":{borderInlineStart:`${c}px ${d} ${h}`},"&-active":{background:new st(X).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:ee,[`${t}-time-panel-cell-inner`]:{display:"block",width:G-2*ee,height:U,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:(G-U)/2,color:I,lineHeight:`${U}px`,borderRadius:k,cursor:"pointer",transition:`background ${$}`,"&:hover":{background:j}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:X}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:M,background:"transparent",cursor:"not-allowed"}}}}}},[`&-datetime-panel ${t}-time-panel-column:after`]:{height:K-U+s*2}}}},EF=e=>{const{componentCls:t,colorBgContainer:n,colorError:o,colorErrorOutline:r,colorWarning:a,colorWarningOutline:l}=e;return{[t]:{[`&-status-error${t}`]:{"&, &:not([disabled]):hover":{backgroundColor:n,borderColor:o},"&-focused, &:focus":v({},Wr(ze(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:r}))),[`${t}-active-bar`]:{background:o}},[`&-status-warning${t}`]:{"&, &:not([disabled]):hover":{backgroundColor:n,borderColor:a},"&-focused, &:focus":v({},Wr(ze(e,{inputBorderActiveColor:a,inputBorderHoverColor:a,controlOutline:l}))),[`${t}-active-bar`]:{background:a}}}}},_F=e=>{const{componentCls:t,antCls:n,boxShadowPopoverArrow:o,controlHeight:r,fontSize:a,inputPaddingHorizontal:l,colorBgContainer:i,lineWidth:s,lineType:u,colorBorder:c,borderRadius:d,motionDurationMid:p,colorBgContainerDisabled:g,colorTextDisabled:m,colorTextPlaceholder:h,controlHeightLG:b,fontSizeLG:y,controlHeightSM:S,inputPaddingHorizontalSM:$,paddingXS:x,marginXS:C,colorTextDescription:O,lineWidthBold:w,lineHeight:M,colorPrimary:I,motionDurationSlow:_,zIndexPopup:D,paddingXXS:F,paddingSM:z,pickerTextHeight:H,controlItemBgActive:T,colorPrimaryBorder:A,sizePopupArrow:R,borderRadiusXS:E,borderRadiusOuter:k,colorBgElevated:B,borderRadiusLG:L,boxShadowSecondary:j,borderRadiusSM:K,colorSplit:G,controlItemBgHover:U,presetsWidth:X,presetsMaxWidth:ee}=e;return[{[t]:v(v(v({},et(e)),cd(e,r,a,l)),{position:"relative",display:"inline-flex",alignItems:"center",background:i,lineHeight:1,border:`${s}px ${u} ${c}`,borderRadius:d,transition:`border ${p}, box-shadow ${p}`,"&:hover, &-focused":v({},rl(e)),"&-focused":v({},Wr(e)),[`&${t}-disabled`]:{background:g,borderColor:c,cursor:"not-allowed",[`${t}-suffix`]:{color:m}},[`&${t}-borderless`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":v(v({},al(e)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,"&:focus":{boxShadow:"none"},"&[disabled]":{background:"transparent"}}),"&:hover":{[`${t}-clear`]:{opacity:1}},"&-placeholder":{"> input":{color:h}}},"&-large":v(v({},cd(e,b,y,l)),{[`${t}-input > input`]:{fontSize:y}}),"&-small":v({},cd(e,S,a,$)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:x/2,color:m,lineHeight:1,pointerEvents:"none","> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:C}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:m,lineHeight:1,background:i,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${p}, color ${p}`,"> *":{verticalAlign:"top"},"&:hover":{color:O}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:y,color:m,fontSize:y,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:O},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-clear`]:{insetInlineEnd:l},"&:hover":{[`${t}-clear`]:{opacity:1}},[`${t}-active-bar`]:{bottom:-s,height:w,marginInlineStart:l,background:I,opacity:0,transition:`all ${_} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${x}px`,lineHeight:1},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:$},[`${t}-active-bar`]:{marginInlineStart:$}}},"&-dropdown":v(v(v({},et(e)),MF(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:D,[`&${t}-dropdown-hidden`]:{display:"none"},[`&${t}-dropdown-placement-bottomLeft`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft, + &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight, + &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft, + &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:zc},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft, + &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight, + &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft, + &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:Fc},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft, + &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:Hc},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft, + &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:Lc},[`${t}-panel > ${t}-time-panel`]:{paddingTop:F},[`${t}-ranges`]:{marginBottom:0,padding:`${F}px ${z}px`,overflow:"hidden",lineHeight:`${H-2*s-x/2}px`,textAlign:"start",listStyle:"none",display:"flex",justifyContent:"space-between","> li":{display:"inline-block"},[`${t}-preset > ${n}-tag-blue`]:{color:I,background:T,borderColor:A,cursor:"pointer"},[`${t}-ok`]:{marginInlineStart:"auto"}},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:v({position:"absolute",zIndex:1,display:"none",marginInlineStart:l*1.5,transition:`left ${_} ease-out`},Iv(R,E,k,B,o)),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:B,borderRadius:L,boxShadow:j,transition:`margin ${_}`,[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:X,maxWidth:ee,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:x,borderInlineEnd:`${s}px ${u} ${G}`,li:v(v({},mn),{borderRadius:K,paddingInline:x,paddingBlock:(S-Math.round(a*M))/2,cursor:"pointer",transition:`all ${_}`,"+ li":{marginTop:C},"&:hover":{background:U}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr",[`${t}-panel`]:{borderWidth:`0 0 ${s}px`},"&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, + table`]:{textAlign:"center"},"&-focused":{borderColor:c}}}}),"&-dropdown-range":{padding:`${R*2/3}px 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},yo(e,"slide-up"),yo(e,"slide-down"),za(e,"move-up"),za(e,"move-down")]},DF=e=>{const{componentCls:n,controlHeightLG:o,controlHeightSM:r,colorPrimary:a,paddingXXS:l}=e;return{pickerCellCls:`${n}-cell`,pickerCellInnerCls:`${n}-cell-inner`,pickerTextHeight:o,pickerPanelCellWidth:r*1.5,pickerPanelCellHeight:r,pickerDateHoverRangeBorderColor:new st(a).lighten(20).toHexString(),pickerBasicCellHoverWithRangeColor:new st(a).lighten(35).toHexString(),pickerPanelWithoutTimeCellHeight:o*1.65,pickerYearMonthCellWidth:o*1.5,pickerTimePanelColumnHeight:28*8,pickerTimePanelColumnWidth:o*1.4,pickerTimePanelCellHeight:28,pickerQuarterPanelContentHeight:o*1.4,pickerCellPaddingVertical:l,pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconBorderWidth:1.5}},Kw=Qe("DatePicker",e=>{const t=ze(fi(e),DF(e));return[_F(t),EF(t),tl(e,{focusElCls:`${e.componentCls}-focused`})]},e=>({presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}));function AF(e){const t=Y(),n=Y(!1);function o(){for(var r=arguments.length,a=new Array(r),l=0;l{e(...a)}))}return Je(()=>{n.value=!0,We.cancel(t.value)}),o}function RF(e){const t=Y([]),n=Y(typeof e=="function"?e():e),o=AF(()=>{let a=n.value;t.value.forEach(l=>{a=l(a)}),t.value=[],n.value=a});function r(a){t.value.push(a),o()}return[n,r]}const NF=J({compatConfig:{MODE:3},name:"TabNode",props:{id:{type:String},prefixCls:{type:String},tab:{type:Object},active:{type:Boolean},closable:{type:Boolean},editable:{type:Object},onClick:{type:Function},onResize:{type:Function},renderWrapper:{type:Function},removeAriaLabel:{type:String},onFocus:{type:Function}},emits:["click","resize","remove","focus"],setup(e,t){let{expose:n,attrs:o}=t;const r=Z();function a(s){var u;!((u=e.tab)===null||u===void 0)&&u.disabled||e.onClick(s)}n({domRef:r});function l(s){var u;s.preventDefault(),s.stopPropagation(),e.editable.onEdit("remove",{key:(u=e.tab)===null||u===void 0?void 0:u.key,event:s})}const i=P(()=>{var s;return e.editable&&e.closable!==!1&&!(!((s=e.tab)===null||s===void 0)&&s.disabled)});return()=>{var s;const{prefixCls:u,id:c,active:d,tab:{key:p,tab:g,disabled:m,closeIcon:h},renderWrapper:b,removeAriaLabel:y,editable:S,onFocus:$}=e,x=`${u}-tab`,C=f("div",{key:p,ref:r,class:te(x,{[`${x}-with-remove`]:i.value,[`${x}-active`]:d,[`${x}-disabled`]:m}),style:o.style,onClick:a},[f("div",{role:"tab","aria-selected":d,id:c&&`${c}-tab-${p}`,class:`${x}-btn`,"aria-controls":c&&`${c}-panel-${p}`,"aria-disabled":m,tabindex:m?null:0,onClick:O=>{O.stopPropagation(),a(O)},onKeydown:O=>{[$e.SPACE,$e.ENTER].includes(O.which)&&(O.preventDefault(),a(O))},onFocus:$},[typeof g=="function"?g():g]),i.value&&f("button",{type:"button","aria-label":y||"remove",tabindex:0,class:`${x}-remove`,onClick:O=>{O.stopPropagation(),l(O)}},[(h==null?void 0:h())||((s=S.removeIcon)===null||s===void 0?void 0:s.call(S))||"×"])]);return b?b(C):C}}}),I1={width:0,height:0,left:0,top:0};function kF(e,t){const n=Z(new Map);return Le(()=>{var o,r;const a=new Map,l=e.value,i=t.value.get((o=l[0])===null||o===void 0?void 0:o.key)||I1,s=i.left+i.width;for(let u=0;u{const{prefixCls:a,editable:l,locale:i}=e;return!l||l.showAdd===!1?null:f("button",{ref:r,type:"button",class:`${a}-nav-add`,style:o.style,"aria-label":(i==null?void 0:i.addAriaLabel)||"Add tab",onClick:s=>{l.onEdit("add",{event:s})}},[l.addIcon?l.addIcon():"+"])}}}),BF={prefixCls:{type:String},id:{type:String},tabs:{type:Object},rtl:{type:Boolean},tabBarGutter:{type:Number},activeKey:{type:[String,Number]},mobile:{type:Boolean},moreIcon:V.any,moreTransitionName:{type:String},editable:{type:Object},locale:{type:Object,default:void 0},removeAriaLabel:String,onTabClick:{type:Function},popupClassName:String,getPopupContainer:de()},FF=J({compatConfig:{MODE:3},name:"OperationNode",inheritAttrs:!1,props:BF,emits:["tabClick"],slots:Object,setup(e,t){let{attrs:n,slots:o}=t;const[r,a]=pt(!1),[l,i]=pt(null),s=g=>{const m=e.tabs.filter(y=>!y.disabled);let h=m.findIndex(y=>y.key===l.value)||0;const b=m.length;for(let y=0;y{const{which:m}=g;if(!r.value){[$e.DOWN,$e.SPACE,$e.ENTER].includes(m)&&(a(!0),g.preventDefault());return}switch(m){case $e.UP:s(-1),g.preventDefault();break;case $e.DOWN:s(1),g.preventDefault();break;case $e.ESC:a(!1);break;case $e.SPACE:case $e.ENTER:l.value!==null&&e.onTabClick(l.value,g);break}},c=P(()=>`${e.id}-more-popup`),d=P(()=>l.value!==null?`${c.value}-${l.value}`:null),p=(g,m)=>{g.preventDefault(),g.stopPropagation(),e.editable.onEdit("remove",{key:m,event:g})};return Ve(()=>{ue(l,()=>{const g=document.getElementById(d.value);g&&g.scrollIntoView&&g.scrollIntoView(!1)},{flush:"post",immediate:!0})}),ue(r,()=>{r.value||i(null)}),Wx({}),()=>{var g;const{prefixCls:m,id:h,tabs:b,locale:y,mobile:S,moreIcon:$=((g=o.moreIcon)===null||g===void 0?void 0:g.call(o))||f(Pg,null,null),moreTransitionName:x,editable:C,tabBarGutter:O,rtl:w,onTabClick:M,popupClassName:I}=e;if(!b.length)return null;const _=`${m}-dropdown`,D=y==null?void 0:y.dropdownAriaLabel,F={[w?"marginRight":"marginLeft"]:O};b.length||(F.visibility="hidden",F.order=1);const z=te({[`${_}-rtl`]:w,[`${I}`]:!0}),H=S?null:f(Nx,{prefixCls:_,trigger:["hover"],visible:r.value,transitionName:x,onVisibleChange:a,overlayClassName:z,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:e.getPopupContainer},{overlay:()=>f(Mn,{onClick:T=>{let{key:A,domEvent:R}=T;M(A,R),a(!1)},id:c.value,tabindex:-1,role:"listbox","aria-activedescendant":d.value,selectedKeys:[l.value],"aria-label":D!==void 0?D:"expanded dropdown"},{default:()=>[b.map(T=>{var A,R;const E=C&&T.closable!==!1&&!T.disabled;return f(ja,{key:T.key,id:`${c.value}-${T.key}`,role:"option","aria-controls":h&&`${h}-panel-${T.key}`,disabled:T.disabled},{default:()=>[f("span",null,[typeof T.tab=="function"?T.tab():T.tab]),E&&f("button",{type:"button","aria-label":e.removeAriaLabel||"remove",tabindex:0,class:`${_}-menu-item-remove`,onClick:k=>{k.stopPropagation(),p(k,T.key)}},[((A=T.closeIcon)===null||A===void 0?void 0:A.call(T))||((R=C.removeIcon)===null||R===void 0?void 0:R.call(C))||"×"])]})})]}),default:()=>f("button",{type:"button",class:`${m}-nav-more`,style:F,tabindex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":c.value,id:`${h}-more`,"aria-expanded":r.value,onKeydown:u},[$])});return f("div",{class:te(`${m}-nav-operations`,n.class),style:n.style},[H,f(Gw,{prefixCls:m,locale:y,editable:C},null)])}}}),Xw=Symbol("tabsContextKey"),LF=e=>{Ke(Xw,e)},Uw=()=>Xe(Xw,{tabs:Z([]),prefixCls:Z()}),zF=.1,T1=.01,ss=20,M1=Math.pow(.995,ss);function HF(e,t){const[n,o]=pt(),[r,a]=pt(0),[l,i]=pt(0),[s,u]=pt(),c=Z();function d(C){const{screenX:O,screenY:w}=C.touches[0];o({x:O,y:w}),clearInterval(c.value)}function p(C){if(!n.value)return;C.preventDefault();const{screenX:O,screenY:w}=C.touches[0],M=O-n.value.x,I=w-n.value.y;t(M,I),o({x:O,y:w});const _=Date.now();i(_-r.value),a(_),u({x:M,y:I})}function g(){if(!n.value)return;const C=s.value;if(o(null),u(null),C){const O=C.x/l.value,w=C.y/l.value,M=Math.abs(O),I=Math.abs(w);if(Math.max(M,I){if(Math.abs(_)_?(M=O,m.value="x"):(M=w,m.value="y"),t(-M,-M)&&C.preventDefault()}const b=Z({onTouchStart:d,onTouchMove:p,onTouchEnd:g,onWheel:h});function y(C){b.value.onTouchStart(C)}function S(C){b.value.onTouchMove(C)}function $(C){b.value.onTouchEnd(C)}function x(C){b.value.onWheel(C)}Ve(()=>{var C,O;document.addEventListener("touchmove",S,{passive:!1}),document.addEventListener("touchend",$,{passive:!1}),(C=e.value)===null||C===void 0||C.addEventListener("touchstart",y,{passive:!1}),(O=e.value)===null||O===void 0||O.addEventListener("wheel",x,{passive:!1})}),Je(()=>{document.removeEventListener("touchmove",S),document.removeEventListener("touchend",$)})}function E1(e,t){const n=Z(e);function o(r){const a=typeof r=="function"?r(n.value):r;a!==n.value&&t(a,n.value),n.value=a}return[n,o]}const qg=()=>{const e=Z(new Map),t=n=>o=>{e.value.set(n,o)};return Yp(()=>{e.value=new Map}),[t,e]},_1={width:0,height:0,left:0,top:0,right:0},jF=()=>({id:{type:String},tabPosition:{type:String},activeKey:{type:[String,Number]},rtl:{type:Boolean},animated:Ne(),editable:Ne(),moreIcon:V.any,moreTransitionName:{type:String},mobile:{type:Boolean},tabBarGutter:{type:Number},renderTabBar:{type:Function},locale:Ne(),popupClassName:String,getPopupContainer:de(),onTabClick:{type:Function},onTabScroll:{type:Function}}),D1=J({compatConfig:{MODE:3},name:"TabNavList",inheritAttrs:!1,props:jF(),slots:Object,emits:["tabClick","tabScroll"],setup(e,t){let{attrs:n,slots:o}=t;const{tabs:r,prefixCls:a}=Uw(),l=Y(),i=Y(),s=Y(),u=Y(),[c,d]=qg(),p=P(()=>e.tabPosition==="top"||e.tabPosition==="bottom"),[g,m]=E1(0,(se,ie)=>{p.value&&e.onTabScroll&&e.onTabScroll({direction:se>ie?"left":"right"})}),[h,b]=E1(0,(se,ie)=>{!p.value&&e.onTabScroll&&e.onTabScroll({direction:se>ie?"top":"bottom"})}),[y,S]=pt(0),[$,x]=pt(0),[C,O]=pt(null),[w,M]=pt(null),[I,_]=pt(0),[D,F]=pt(0),[z,H]=RF(new Map),T=kF(r,z),A=P(()=>`${a.value}-nav-operations-hidden`),R=Y(0),E=Y(0);Le(()=>{p.value?e.rtl?(R.value=0,E.value=Math.max(0,y.value-C.value)):(R.value=Math.min(0,C.value-y.value),E.value=0):(R.value=Math.min(0,w.value-$.value),E.value=0)});const k=se=>seE.value?E.value:se,B=Y(),[L,j]=pt(),K=()=>{j(Date.now())},G=()=>{clearTimeout(B.value)},U=(se,ie)=>{se(fe=>k(fe+ie))};HF(l,(se,ie)=>{if(p.value){if(C.value>=y.value)return!1;U(m,se)}else{if(w.value>=$.value)return!1;U(b,ie)}return G(),K(),!0}),ue(L,()=>{G(),L.value&&(B.value=setTimeout(()=>{j(0)},100))});const X=function(){let se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activeKey;const ie=T.value.get(se)||{width:0,height:0,left:0,right:0,top:0};if(p.value){let fe=g.value;e.rtl?ie.rightg.value+C.value&&(fe=ie.right+ie.width-C.value):ie.left<-g.value?fe=-ie.left:ie.left+ie.width>-g.value+C.value&&(fe=-(ie.left+ie.width-C.value)),b(0),m(k(fe))}else{let fe=h.value;ie.top<-h.value?fe=-ie.top:ie.top+ie.height>-h.value+w.value&&(fe=-(ie.top+ie.height-w.value)),m(0),b(k(fe))}},ee=Y(0),oe=Y(0);Le(()=>{let se,ie,fe,Se,Ie,ge;const Oe=T.value;["top","bottom"].includes(e.tabPosition)?(se="width",Se=C.value,Ie=y.value,ge=I.value,ie=e.rtl?"right":"left",fe=Math.abs(g.value)):(se="height",Se=w.value,Ie=y.value,ge=D.value,ie="top",fe=-h.value);let we=Se;Ie+ge>Se&&Iefe+we){pe=Te-1;break}}let xe=0;for(let Te=ne-1;Te>=0;Te-=1)if((Oe.get(ae[Te].key)||_1)[ie]{var se,ie,fe,Se,Ie;const ge=((se=l.value)===null||se===void 0?void 0:se.offsetWidth)||0,Oe=((ie=l.value)===null||ie===void 0?void 0:ie.offsetHeight)||0,we=((fe=u.value)===null||fe===void 0?void 0:fe.$el)||{},ae=we.offsetWidth||0,ne=we.offsetHeight||0;O(ge),M(Oe),_(ae),F(ne);const pe=(((Se=i.value)===null||Se===void 0?void 0:Se.offsetWidth)||0)-ae,xe=(((Ie=i.value)===null||Ie===void 0?void 0:Ie.offsetHeight)||0)-ne;S(pe),x(xe),H(()=>{const Te=new Map;return r.value.forEach(ke=>{let{key:ve}=ke;const he=d.value.get(ve),be=(he==null?void 0:he.$el)||he;be&&Te.set(ve,{width:be.offsetWidth,height:be.offsetHeight,left:be.offsetLeft,top:be.offsetTop})}),Te})},W=P(()=>[...r.value.slice(0,ee.value),...r.value.slice(oe.value+1)]),[q,re]=pt(),le=P(()=>T.value.get(e.activeKey)),ye=Y(),me=()=>{We.cancel(ye.value)};ue([le,p,()=>e.rtl],()=>{const se={};le.value&&(p.value?(e.rtl?se.right=xr(le.value.right):se.left=xr(le.value.left),se.width=xr(le.value.width)):(se.top=xr(le.value.top),se.height=xr(le.value.height))),me(),ye.value=We(()=>{re(se)})}),ue([()=>e.activeKey,le,T,p],()=>{X()},{flush:"post"}),ue([()=>e.rtl,()=>e.tabBarGutter,()=>e.activeKey,()=>r.value],()=>{Q()},{flush:"post"});const ce=se=>{let{position:ie,prefixCls:fe,extra:Se}=se;if(!Se)return null;const Ie=Se==null?void 0:Se({position:ie});return Ie?f("div",{class:`${fe}-extra-content`},[Ie]):null};return Je(()=>{G(),me()}),()=>{const{id:se,animated:ie,activeKey:fe,rtl:Se,editable:Ie,locale:ge,tabPosition:Oe,tabBarGutter:we,onTabClick:ae}=e,{class:ne,style:pe}=n,xe=a.value,Te=!!W.value.length,ke=`${xe}-nav-wrap`;let ve,he,be,Me;p.value?Se?(he=g.value>0,ve=g.value+C.value{const{key:tt}=Re;return f(NF,{id:se,prefixCls:xe,key:tt,tab:Re,style:Ye===0?void 0:Ae,closable:Re.closable,editable:Ie,active:tt===fe,removeAriaLabel:ge==null?void 0:ge.removeAriaLabel,ref:c(tt),onClick:at=>{ae(tt,at)},onFocus:()=>{X(tt),K(),l.value&&(Se||(l.value.scrollLeft=0),l.value.scrollTop=0)}},o)});return f("div",{role:"tablist",class:te(`${xe}-nav`,ne),style:pe,onKeydown:()=>{K()}},[f(ce,{position:"left",prefixCls:xe,extra:o.leftExtra},null),f(ho,{onResize:Q},{default:()=>[f("div",{class:te(ke,{[`${ke}-ping-left`]:ve,[`${ke}-ping-right`]:he,[`${ke}-ping-top`]:be,[`${ke}-ping-bottom`]:Me}),ref:l},[f(ho,{onResize:Q},{default:()=>[f("div",{ref:i,class:`${xe}-nav-list`,style:{transform:`translate(${g.value}px, ${h.value}px)`,transition:L.value?"none":void 0}},[_e,f(Gw,{ref:u,prefixCls:xe,locale:ge,editable:Ie,style:v(v({},_e.length===0?void 0:Ae),{visibility:Te?"hidden":null})},null),f("div",{class:te(`${xe}-ink-bar`,{[`${xe}-ink-bar-animated`]:ie.inkBar}),style:q.value},null)])]})])]}),f(FF,N(N({},e),{},{removeAriaLabel:ge==null?void 0:ge.removeAriaLabel,ref:s,prefixCls:xe,tabs:W.value,class:!Te&&A.value}),PC(o,["moreIcon"])),f(ce,{position:"right",prefixCls:xe,extra:o.rightExtra},null),f(ce,{position:"right",prefixCls:xe,extra:o.tabBarExtraContent},null)])}}}),VF=J({compatConfig:{MODE:3},name:"TabPanelList",inheritAttrs:!1,props:{activeKey:{type:[String,Number]},id:{type:String},rtl:{type:Boolean},animated:{type:Object,default:void 0},tabPosition:{type:String},destroyInactiveTabPane:{type:Boolean}},setup(e){const{tabs:t,prefixCls:n}=Uw();return()=>{const{id:o,activeKey:r,animated:a,tabPosition:l,rtl:i,destroyInactiveTabPane:s}=e,u=a.tabPane,c=n.value,d=t.value.findIndex(p=>p.key===r);return f("div",{class:`${c}-content-holder`},[f("div",{class:[`${c}-content`,`${c}-content-${l}`,{[`${c}-content-animated`]:u}],style:d&&u?{[i?"marginRight":"marginLeft"]:`-${d}00%`}:null},[t.value.map(p=>ut(p.node,{key:p.key,prefixCls:c,tabKey:p.key,id:o,animated:u,active:p.key===r,destroyInactiveTabPane:s}))])])}}});var WF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};const KF=WF;function A1(e){for(var t=1;t{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[yo(e,"slide-up"),yo(e,"slide-down")]]},YF=e=>{const{componentCls:t,tabsCardHorizontalPadding:n,tabsCardHeadBackground:o,tabsCardGutter:r,colorSplit:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:o,border:`${e.lineWidth}px ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:e.colorPrimary,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:`${r}px`}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:`${r}px`}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadiusLG}px 0 0 ${e.borderRadiusLG}px`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},qF=e=>{const{componentCls:t,tabsHoverColor:n,dropdownEdgeChildVerticalPadding:o}=e;return{[`${t}-dropdown`]:v(v({},et(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${o}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":v(v({},mn),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${e.paddingXXS}px ${e.paddingSM}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},QF=e=>{const{componentCls:t,margin:n,colorSplit:o}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:`0 0 ${n}px 0`,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${e.lineWidth}px ${e.lineType} ${o}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, + right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav, + > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:`${n}px`,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:e.controlHeight*1.25,[`${t}-tab`]:{padding:`${e.paddingXS}px ${e.paddingLG}px`,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:`${e.margin}px 0 0 0`},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${e.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-e.lineWidth},borderRight:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},ZF=e=>{const{componentCls:t,padding:n}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXS}px 0`,fontSize:e.fontSize}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${n}px 0`,fontSize:e.fontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXXS*1.5}px ${n}px`}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${e.borderRadius}px ${e.borderRadius}px`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${e.borderRadius}px ${e.borderRadius}px 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadius}px ${e.borderRadius}px 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadius}px 0 0 ${e.borderRadius}px`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXS}px ${n}px ${e.paddingXXS*1.5}px`}}}}}},JF=e=>{const{componentCls:t,tabsActiveColor:n,tabsHoverColor:o,iconCls:r,tabsHorizontalGutter:a}=e,l=`${t}-tab`;return{[l]:{position:"relative",display:"inline-flex",alignItems:"center",padding:`${e.paddingSM}px 0`,fontSize:`${e.fontSize}px`,background:"transparent",border:0,outline:"none",cursor:"pointer","&-btn, &-remove":v({"&:focus:not(:focus-visible), &:active":{color:n}},Lo(e)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-e.marginXXS},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:o},[`&${l}-active ${l}-btn`]:{color:e.colorPrimary,textShadow:e.tabsActiveTextShadow},[`&${l}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${l}-disabled ${l}-btn, &${l}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${l}-remove ${r}`]:{margin:0},[r]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${l} + ${l}`]:{margin:{_skip_check_:!0,value:`0 0 0 ${a}px`}}}},eL=e=>{const{componentCls:t,tabsHorizontalGutter:n,iconCls:o,tabsCardGutter:r}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:`0 0 0 ${n}px`},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[o]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${e.marginSM}px`}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${e.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${e.marginXXS}px`},[o]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:`${r}px`},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},tL=e=>{const{componentCls:t,tabsCardHorizontalPadding:n,tabsCardHeight:o,tabsCardGutter:r,tabsHoverColor:a,tabsActiveColor:l,colorSplit:i}=e;return{[t]:v(v(v(v({},et(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:v({minWidth:`${o}px`,marginLeft:{_skip_check_:!0,value:`${r}px`},padding:`0 ${e.paddingXS}px`,background:"transparent",border:`${e.lineWidth}px ${e.lineType} ${i}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:l}},Lo(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.colorPrimary,pointerEvents:"none"}}),JF(e)),{[`${t}-content`]:{position:"relative",display:"flex",width:"100%","&-animated":{transition:"margin 0.3s"}},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none",flex:"none",width:"100%"}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},nL=Qe("Tabs",e=>{const t=e.controlHeightLG,n=ze(e,{tabsHoverColor:e.colorPrimaryHover,tabsActiveColor:e.colorPrimaryActive,tabsCardHorizontalPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,tabsCardHeight:t,tabsCardGutter:e.marginXXS/2,tabsHorizontalGutter:32,tabsCardHeadBackground:e.colorFillAlter,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120});return[ZF(n),eL(n),QF(n),qF(n),YF(n),tL(n),UF(n)]},e=>({zIndexPopup:e.zIndexPopupBase+50}));let R1=0;const Yw=()=>({prefixCls:{type:String},id:{type:String},popupClassName:String,getPopupContainer:de(),activeKey:{type:[String,Number]},defaultActiveKey:{type:[String,Number]},direction:je(),animated:Ge([Boolean,Object]),renderTabBar:de(),tabBarGutter:{type:Number},tabBarStyle:Ne(),tabPosition:je(),destroyInactiveTabPane:Ce(),hideAdd:Boolean,type:je(),size:je(),centered:Boolean,onEdit:de(),onChange:de(),onTabClick:de(),onTabScroll:de(),"onUpdate:activeKey":de(),locale:Ne(),onPrevClick:de(),onNextClick:de(),tabBarExtraContent:V.any});function oL(e){return e.map(t=>{if(kt(t)){const n=v({},t.props||{});for(const[p,g]of Object.entries(n))delete n[p],n[qr(p)]=g;const o=t.children||{},r=t.key!==void 0?t.key:void 0,{tab:a=o.tab,disabled:l,forceRender:i,closable:s,animated:u,active:c,destroyInactiveTabPane:d}=n;return v(v({key:r},n),{node:t,closeIcon:o.closeIcon,tab:a,disabled:l===""||l,forceRender:i===""||i,closable:s===""||s,animated:u===""||u,active:c===""||c,destroyInactiveTabPane:d===""||d})}return null}).filter(t=>t)}const rL=J({compatConfig:{MODE:3},name:"InternalTabs",inheritAttrs:!1,props:v(v({},rt(Yw(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}})),{tabs:ht()}),slots:Object,setup(e,t){let{attrs:n,slots:o}=t;bt(e.onPrevClick===void 0&&e.onNextClick===void 0,"Tabs","`onPrevClick / @prevClick` and `onNextClick / @nextClick` has been removed. Please use `onTabScroll / @tabScroll` instead."),bt(e.tabBarExtraContent===void 0,"Tabs","`tabBarExtraContent` prop has been removed. Please use `rightExtra` slot instead."),bt(o.tabBarExtraContent===void 0,"Tabs","`tabBarExtraContent` slot is deprecated. Please use `rightExtra` slot instead.");const{prefixCls:r,direction:a,size:l,rootPrefixCls:i,getPopupContainer:s}=Ee("tabs",e),[u,c]=nL(r),d=P(()=>a.value==="rtl"),p=P(()=>{const{animated:w,tabPosition:M}=e;return w===!1||["left","right"].includes(M)?{inkBar:!1,tabPane:!1}:w===!0?{inkBar:!0,tabPane:!0}:v({inkBar:!0,tabPane:!1},typeof w=="object"?w:{})}),[g,m]=pt(!1);Ve(()=>{m(jv())});const[h,b]=Ot(()=>{var w;return(w=e.tabs[0])===null||w===void 0?void 0:w.key},{value:P(()=>e.activeKey),defaultValue:e.defaultActiveKey}),[y,S]=pt(()=>e.tabs.findIndex(w=>w.key===h.value));Le(()=>{var w;let M=e.tabs.findIndex(I=>I.key===h.value);M===-1&&(M=Math.max(0,Math.min(y.value,e.tabs.length-1)),b((w=e.tabs[M])===null||w===void 0?void 0:w.key)),S(M)});const[$,x]=Ot(null,{value:P(()=>e.id)}),C=P(()=>g.value&&!["left","right"].includes(e.tabPosition)?"top":e.tabPosition);Ve(()=>{e.id||(x(`rc-tabs-${R1}`),R1+=1)});const O=(w,M)=>{var I,_;(I=e.onTabClick)===null||I===void 0||I.call(e,w,M);const D=w!==h.value;b(w),D&&((_=e.onChange)===null||_===void 0||_.call(e,w))};return LF({tabs:P(()=>e.tabs),prefixCls:r}),()=>{const{id:w,type:M,tabBarGutter:I,tabBarStyle:_,locale:D,destroyInactiveTabPane:F,renderTabBar:z=o.renderTabBar,onTabScroll:H,hideAdd:T,centered:A}=e,R={id:$.value,activeKey:h.value,animated:p.value,tabPosition:C.value,rtl:d.value,mobile:g.value};let E;M==="editable-card"&&(E={onEdit:(j,K)=>{let{key:G,event:U}=K;var X;(X=e.onEdit)===null||X===void 0||X.call(e,j==="add"?U:G,j)},removeIcon:()=>f(io,null,null),addIcon:o.addIcon?o.addIcon:()=>f(XF,null,null),showAdd:T!==!0});let k;const B=v(v({},R),{moreTransitionName:`${i.value}-slide-up`,editable:E,locale:D,tabBarGutter:I,onTabClick:O,onTabScroll:H,style:_,getPopupContainer:s.value,popupClassName:te(e.popupClassName,c.value)});z?k=z(v(v({},B),{DefaultTabBar:D1})):k=f(D1,B,PC(o,["moreIcon","leftExtra","rightExtra","tabBarExtraContent"]));const L=r.value;return u(f("div",N(N({},n),{},{id:w,class:te(L,`${L}-${C.value}`,{[c.value]:!0,[`${L}-${l.value}`]:l.value,[`${L}-card`]:["card","editable-card"].includes(M),[`${L}-editable-card`]:M==="editable-card",[`${L}-centered`]:A,[`${L}-mobile`]:g.value,[`${L}-editable`]:M==="editable-card",[`${L}-rtl`]:d.value},n.class)}),[k,f(VF,N(N({destroyInactiveTabPane:F},R),{},{animated:p.value}),null)]))}}}),Oa=J({compatConfig:{MODE:3},name:"ATabs",inheritAttrs:!1,props:rt(Yw(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}}),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:r}=t;const a=l=>{r("update:activeKey",l),r("change",l)};return()=>{var l;const i=oL(mt((l=o.default)===null||l===void 0?void 0:l.call(o)));return f(rL,N(N(N({},qe(e,["onUpdate:activeKey"])),n),{},{onChange:a,tabs:i}),o)}}}),aL=()=>({tab:V.any,disabled:{type:Boolean},forceRender:{type:Boolean},closable:{type:Boolean},animated:{type:Boolean},active:{type:Boolean},destroyInactiveTabPane:{type:Boolean},prefixCls:{type:String},tabKey:{type:[String,Number]},id:{type:String}}),tp=J({compatConfig:{MODE:3},name:"ATabPane",inheritAttrs:!1,__ANT_TAB_PANE:!0,props:aL(),slots:Object,setup(e,t){let{attrs:n,slots:o}=t;const r=Z(e.forceRender);ue([()=>e.active,()=>e.destroyInactiveTabPane],()=>{e.active?r.value=!0:e.destroyInactiveTabPane&&(r.value=!1)},{immediate:!0});const a=P(()=>e.active?{}:e.animated?{visibility:"hidden",height:0,overflowY:"hidden"}:{display:"none"});return()=>{var l;const{prefixCls:i,forceRender:s,id:u,active:c,tabKey:d}=e;return f("div",{id:u&&`${u}-panel-${d}`,role:"tabpanel",tabindex:c?0:-1,"aria-labelledby":u&&`${u}-tab-${d}`,"aria-hidden":!c,style:[a.value,n.style],class:[`${i}-tabpane`,c&&`${i}-tabpane-active`,n.class]},[(c||r.value||s)&&((l=o.default)===null||l===void 0?void 0:l.call(o))])}}});Oa.TabPane=tp;Oa.install=function(e){return e.component(Oa.name,Oa),e.component(tp.name,tp),e};const lL=e=>{const{antCls:t,componentCls:n,cardHeadHeight:o,cardPaddingBase:r,cardHeadTabsMarginBottom:a}=e;return v(v({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:o,marginBottom:-1,padding:`0 ${r}px`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,background:"transparent",borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},ro()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":v(v({display:"inline-block",flex:1},mn),{[` + > ${n}-typography, + > ${n}-typography-edit-content + `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:a,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`}}})},iL=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:o,lineWidth:r}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:` + ${r}px 0 0 0 ${n}, + 0 ${r}px 0 0 ${n}, + ${r}px ${r}px 0 0 ${n}, + ${r}px 0 0 0 ${n} inset, + 0 ${r}px 0 0 ${n} inset; + `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:o}}},sL=e=>{const{componentCls:t,iconCls:n,cardActionsLiMargin:o,cardActionsIconSize:r,colorBorderSecondary:a}=e;return v(v({margin:0,padding:0,listStyle:"none",background:e.colorBgContainer,borderTop:`${e.lineWidth}px ${e.lineType} ${a}`,display:"flex",borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px `},ro()),{"& > li":{margin:o,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.cardActionsIconSize*2,fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:`${e.fontSize*e.lineHeight}px`,transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:r,lineHeight:`${r*e.lineHeight}px`}},"&:not(:last-child)":{borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${a}`}}})},cL=e=>v(v({margin:`-${e.marginXXS}px 0`,display:"flex"},ro()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":v({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},mn),"&-description":{color:e.colorTextDescription}}),uL=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:o}=e;return{[`${t}-head`]:{padding:`0 ${n}px`,background:o,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${e.padding}px ${n}px`}}},dL=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},fL=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:o,colorBorderSecondary:r,boxShadow:a,cardPaddingBase:l}=e;return{[t]:v(v({},et(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:a},[`${t}-head`]:lL(e),[`${t}-extra`]:{marginInlineStart:"auto",color:"",fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:v({padding:l,borderRadius:` 0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},ro()),[`${t}-grid`]:iL(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%"},img:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`}},[`${t}-actions`]:sL(e),[`${t}-meta`]:cL(e)}),[`${t}-bordered`]:{border:`${e.lineWidth}px ${e.lineType} ${r}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:-e.lineWidth,marginInlineStart:-e.lineWidth,padding:0}},[`${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:o}}},[`${t}-type-inner`]:uL(e),[`${t}-loading`]:dL(e),[`${t}-rtl`]:{direction:"rtl"}}},pL=e=>{const{componentCls:t,cardPaddingSM:n,cardHeadHeightSM:o}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:o,padding:`0 ${n}px`,fontSize:e.fontSize,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{minHeight:o,paddingTop:0,display:"flex",alignItems:"center"}}}}},vL=Qe("Card",e=>{const t=ze(e,{cardShadow:e.boxShadowCard,cardHeadHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,cardHeadHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardHeadTabsMarginBottom:-e.padding-e.lineWidth,cardActionsLiMargin:`${e.paddingSM}px 0`,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[fL(t),pL(t)]}),gL=()=>({prefixCls:String,width:{type:[Number,String]}}),hL=J({compatConfig:{MODE:3},name:"SkeletonTitle",props:gL(),setup(e){return()=>{const{prefixCls:t,width:n}=e,o=typeof n=="number"?`${n}px`:n;return f("h3",{class:t,style:{width:o}},null)}}}),Zg=hL,mL=()=>({prefixCls:String,width:{type:[Number,String,Array]},rows:Number}),bL=J({compatConfig:{MODE:3},name:"SkeletonParagraph",props:mL(),setup(e){const t=n=>{const{width:o,rows:r=2}=e;if(Array.isArray(o))return o[n];if(r-1===n)return o};return()=>{const{prefixCls:n,rows:o}=e,r=[...Array(o)].map((a,l)=>{const i=t(l);return f("li",{key:l,style:{width:typeof i=="number"?`${i}px`:i}},null)});return f("ul",{class:n},[r])}}}),yL=bL,Qc=()=>({prefixCls:String,size:[String,Number],shape:String,active:{type:Boolean,default:void 0}}),qw=e=>{const{prefixCls:t,size:n,shape:o}=e,r=te({[`${t}-lg`]:n==="large",[`${t}-sm`]:n==="small"}),a=te({[`${t}-circle`]:o==="circle",[`${t}-square`]:o==="square",[`${t}-round`]:o==="round"}),l=typeof n=="number"?{width:`${n}px`,height:`${n}px`,lineHeight:`${n}px`}:{};return f("span",{class:te(t,r,a),style:l},null)};qw.displayName="SkeletonElement";const Zc=qw,SL=new Ue("ant-skeleton-loading",{"0%":{transform:"translateX(-37.5%)"},"100%":{transform:"translateX(37.5%)"}}),Jc=e=>({height:e,lineHeight:`${e}px`}),Pa=e=>v({width:e},Jc(e)),$L=e=>({position:"relative",zIndex:0,overflow:"hidden",background:"transparent","&::after":{position:"absolute",top:0,insetInlineEnd:"-150%",bottom:0,insetInlineStart:"-150%",background:e.skeletonLoadingBackground,animationName:SL,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite",content:'""'}}),ud=e=>v({width:e*5,minWidth:e*5},Jc(e)),CL=e=>{const{skeletonAvatarCls:t,color:n,controlHeight:o,controlHeightLG:r,controlHeightSM:a}=e;return{[`${t}`]:v({display:"inline-block",verticalAlign:"top",background:n},Pa(o)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:v({},Pa(r)),[`${t}${t}-sm`]:v({},Pa(a))}},xL=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:o,controlHeightLG:r,controlHeightSM:a,color:l}=e;return{[`${o}`]:v({display:"inline-block",verticalAlign:"top",background:l,borderRadius:n},ud(t)),[`${o}-lg`]:v({},ud(r)),[`${o}-sm`]:v({},ud(a))}},N1=e=>v({width:e},Jc(e)),wL=e=>{const{skeletonImageCls:t,imageSizeBase:n,color:o,borderRadiusSM:r}=e;return{[`${t}`]:v(v({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:o,borderRadius:r},N1(n*2)),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:v(v({},N1(n)),{maxWidth:n*4,maxHeight:n*4}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},dd=(e,t,n)=>{const{skeletonButtonCls:o}=e;return{[`${n}${o}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${o}-round`]:{borderRadius:t}}},fd=e=>v({width:e*2,minWidth:e*2},Jc(e)),OL=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:o,controlHeightLG:r,controlHeightSM:a,color:l}=e;return v(v(v(v(v({[`${n}`]:v({display:"inline-block",verticalAlign:"top",background:l,borderRadius:t,width:o*2,minWidth:o*2},fd(o))},dd(e,o,n)),{[`${n}-lg`]:v({},fd(r))}),dd(e,r,`${n}-lg`)),{[`${n}-sm`]:v({},fd(a))}),dd(e,a,`${n}-sm`))},PL=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:o,skeletonParagraphCls:r,skeletonButtonCls:a,skeletonInputCls:l,skeletonImageCls:i,controlHeight:s,controlHeightLG:u,controlHeightSM:c,color:d,padding:p,marginSM:g,borderRadius:m,skeletonTitleHeight:h,skeletonBlockRadius:b,skeletonParagraphLineHeight:y,controlHeightXS:S,skeletonParagraphMarginTop:$}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:p,verticalAlign:"top",[`${n}`]:v({display:"inline-block",verticalAlign:"top",background:d},Pa(s)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:v({},Pa(u)),[`${n}-sm`]:v({},Pa(c))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${o}`]:{width:"100%",height:h,background:d,borderRadius:b,[`+ ${r}`]:{marginBlockStart:c}},[`${r}`]:{padding:0,"> li":{width:"100%",height:y,listStyle:"none",background:d,borderRadius:b,"+ li":{marginBlockStart:S}}},[`${r}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${o}, ${r} > li`]:{borderRadius:m}}},[`${t}-with-avatar ${t}-content`]:{[`${o}`]:{marginBlockStart:g,[`+ ${r}`]:{marginBlockStart:$}}},[`${t}${t}-element`]:v(v(v(v({display:"inline-block",width:"auto"},OL(e)),CL(e)),xL(e)),wL(e)),[`${t}${t}-block`]:{width:"100%",[`${a}`]:{width:"100%"},[`${l}`]:{width:"100%"}},[`${t}${t}-active`]:{[` + ${o}, + ${r} > li, + ${n}, + ${a}, + ${l}, + ${i} + `]:v({},$L(e))}}},pi=Qe("Skeleton",e=>{const{componentCls:t}=e,n=ze(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:e.controlHeight*1.5,skeletonTitleHeight:e.controlHeight/2,skeletonBlockRadius:e.borderRadiusSM,skeletonParagraphLineHeight:e.controlHeight/2,skeletonParagraphMarginTop:e.marginLG+e.marginXXS,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.color} 25%, ${e.colorGradientEnd} 37%, ${e.color} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[PL(n)]},e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n}}),IL=()=>({active:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},prefixCls:String,avatar:{type:[Boolean,Object],default:void 0},title:{type:[Boolean,Object],default:void 0},paragraph:{type:[Boolean,Object],default:void 0},round:{type:Boolean,default:void 0}});function pd(e){return e&&typeof e=="object"?e:{}}function TL(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function ML(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function EL(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const _L=J({compatConfig:{MODE:3},name:"ASkeleton",props:rt(IL(),{avatar:!1,title:!0,paragraph:!0}),setup(e,t){let{slots:n}=t;const{prefixCls:o,direction:r}=Ee("skeleton",e),[a,l]=pi(o);return()=>{var i;const{loading:s,avatar:u,title:c,paragraph:d,active:p,round:g}=e,m=o.value;if(s||e.loading===void 0){const h=!!u||u==="",b=!!c||c==="",y=!!d||d==="";let S;if(h){const C=v(v({prefixCls:`${m}-avatar`},TL(b,y)),pd(u));S=f("div",{class:`${m}-header`},[f(Zc,C,null)])}let $;if(b||y){let C;if(b){const w=v(v({prefixCls:`${m}-title`},ML(h,y)),pd(c));C=f(Zg,w,null)}let O;if(y){const w=v(v({prefixCls:`${m}-paragraph`},EL(h,b)),pd(d));O=f(yL,w,null)}$=f("div",{class:`${m}-content`},[C,O])}const x=te(m,{[`${m}-with-avatar`]:h,[`${m}-active`]:p,[`${m}-rtl`]:r.value==="rtl",[`${m}-round`]:g,[l.value]:!0});return a(f("div",{class:x},[S,$]))}return(i=n.default)===null||i===void 0?void 0:i.call(n)}}}),tn=_L,DL=()=>v(v({},Qc()),{size:String,block:Boolean}),AL=J({compatConfig:{MODE:3},name:"ASkeletonButton",props:rt(DL(),{size:"default"}),setup(e){const{prefixCls:t}=Ee("skeleton",e),[n,o]=pi(t),r=P(()=>te(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active,[`${t.value}-block`]:e.block},o.value));return()=>n(f("div",{class:r.value},[f(Zc,N(N({},e),{},{prefixCls:`${t.value}-button`}),null)]))}}),Qw=AL,RL=J({compatConfig:{MODE:3},name:"ASkeletonInput",props:v(v({},qe(Qc(),["shape"])),{size:String,block:Boolean}),setup(e){const{prefixCls:t}=Ee("skeleton",e),[n,o]=pi(t),r=P(()=>te(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active,[`${t.value}-block`]:e.block},o.value));return()=>n(f("div",{class:r.value},[f(Zc,N(N({},e),{},{prefixCls:`${t.value}-input`}),null)]))}}),Zw=RL,NL="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",kL=J({compatConfig:{MODE:3},name:"ASkeletonImage",props:qe(Qc(),["size","shape","active"]),setup(e){const{prefixCls:t}=Ee("skeleton",e),[n,o]=pi(t),r=P(()=>te(t.value,`${t.value}-element`,o.value));return()=>n(f("div",{class:r.value},[f("div",{class:`${t.value}-image`},[f("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",class:`${t.value}-image-svg`},[f("path",{d:NL,class:`${t.value}-image-path`},null)])])]))}}),Jw=kL,BL=()=>v(v({},Qc()),{shape:String}),FL=J({compatConfig:{MODE:3},name:"ASkeletonAvatar",props:rt(BL(),{size:"default",shape:"circle"}),setup(e){const{prefixCls:t}=Ee("skeleton",e),[n,o]=pi(t),r=P(()=>te(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active},o.value));return()=>n(f("div",{class:r.value},[f(Zc,N(N({},e),{},{prefixCls:`${t.value}-avatar`}),null)]))}}),e4=FL;tn.Button=Qw;tn.Avatar=e4;tn.Input=Zw;tn.Image=Jw;tn.Title=Zg;tn.install=function(e){return e.component(tn.name,tn),e.component(tn.Button.name,Qw),e.component(tn.Avatar.name,e4),e.component(tn.Input.name,Zw),e.component(tn.Image.name,Jw),e.component(tn.Title.name,Zg),e};const{TabPane:LL}=Oa,zL=()=>({prefixCls:String,title:V.any,extra:V.any,bordered:{type:Boolean,default:!0},bodyStyle:{type:Object,default:void 0},headStyle:{type:Object,default:void 0},loading:{type:Boolean,default:!1},hoverable:{type:Boolean,default:!1},type:{type:String},size:{type:String},actions:V.any,tabList:{type:Array},tabBarExtraContent:V.any,activeTabKey:String,defaultActiveTabKey:String,cover:V.any,onTabChange:{type:Function}}),HL=J({compatConfig:{MODE:3},name:"ACard",inheritAttrs:!1,props:zL(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:a,size:l}=Ee("card",e),[i,s]=vL(r),u=p=>p.map((m,h)=>Zt(m)&&!bv(m)||!Zt(m)?f("li",{style:{width:`${100/p.length}%`},key:`action-${h}`},[f("span",null,[m])]):null),c=p=>{var g;(g=e.onTabChange)===null||g===void 0||g.call(e,p)},d=function(){let p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],g;return p.forEach(m=>{m&&pc(m.type)&&m.type.__ANT_CARD_GRID&&(g=!0)}),g};return()=>{var p,g,m,h,b,y;const{headStyle:S={},bodyStyle:$={},loading:x,bordered:C=!0,type:O,tabList:w,hoverable:M,activeTabKey:I,defaultActiveTabKey:_,tabBarExtraContent:D=sl((p=n.tabBarExtraContent)===null||p===void 0?void 0:p.call(n)),title:F=sl((g=n.title)===null||g===void 0?void 0:g.call(n)),extra:z=sl((m=n.extra)===null||m===void 0?void 0:m.call(n)),actions:H=sl((h=n.actions)===null||h===void 0?void 0:h.call(n)),cover:T=sl((b=n.cover)===null||b===void 0?void 0:b.call(n))}=e,A=mt((y=n.default)===null||y===void 0?void 0:y.call(n)),R=r.value,E={[`${R}`]:!0,[s.value]:!0,[`${R}-loading`]:x,[`${R}-bordered`]:C,[`${R}-hoverable`]:!!M,[`${R}-contain-grid`]:d(A),[`${R}-contain-tabs`]:w&&w.length,[`${R}-${l.value}`]:l.value,[`${R}-type-${O}`]:!!O,[`${R}-rtl`]:a.value==="rtl"},k=f(tn,{loading:!0,active:!0,paragraph:{rows:4},title:!1},{default:()=>[A]}),B=I!==void 0,L={size:"large",[B?"activeKey":"defaultActiveKey"]:B?I:_,onChange:c,class:`${R}-head-tabs`};let j;const K=w&&w.length?f(Oa,L,{default:()=>[w.map(ee=>{const{tab:oe,slots:Q}=ee,W=Q==null?void 0:Q.tab;bt(!Q,"Card","tabList slots is deprecated, Please use `customTab` instead.");let q=oe!==void 0?oe:n[W]?n[W](ee):null;return q=Ic(n,"customTab",ee,()=>[q]),f(LL,{tab:q,key:ee.key,disabled:ee.disabled},null)})],rightExtra:D?()=>D:null}):null;(F||z||K)&&(j=f("div",{class:`${R}-head`,style:S},[f("div",{class:`${R}-head-wrapper`},[F&&f("div",{class:`${R}-head-title`},[F]),z&&f("div",{class:`${R}-extra`},[z])]),K]));const G=T?f("div",{class:`${R}-cover`},[T]):null,U=f("div",{class:`${R}-body`,style:$},[x?k:A]),X=H&&H.length?f("ul",{class:`${R}-actions`},[u(H)]):null;return i(f("div",N(N({ref:"cardContainerRef"},o),{},{class:[E,o.class]}),[j,G,A&&A.length?U:null,X]))}}}),Tl=HL,jL=()=>({prefixCls:String,title:ba(),description:ba(),avatar:ba()}),np=J({compatConfig:{MODE:3},name:"ACardMeta",props:jL(),slots:Object,setup(e,t){let{slots:n}=t;const{prefixCls:o}=Ee("card",e);return()=>{const r={[`${o.value}-meta`]:!0},a=Nt(n,e,"avatar"),l=Nt(n,e,"title"),i=Nt(n,e,"description"),s=a?f("div",{class:`${o.value}-meta-avatar`},[a]):null,u=l?f("div",{class:`${o.value}-meta-title`},[l]):null,c=i?f("div",{class:`${o.value}-meta-description`},[i]):null,d=u||c?f("div",{class:`${o.value}-meta-detail`},[u,c]):null;return f("div",{class:r},[s,d])}}}),VL=()=>({prefixCls:String,hoverable:{type:Boolean,default:!0}}),op=J({compatConfig:{MODE:3},name:"ACardGrid",__ANT_CARD_GRID:!0,props:VL(),setup(e,t){let{slots:n}=t;const{prefixCls:o}=Ee("card",e),r=P(()=>({[`${o.value}-grid`]:!0,[`${o.value}-grid-hoverable`]:e.hoverable}));return()=>{var a;return f("div",{class:r.value},[(a=n.default)===null||a===void 0?void 0:a.call(n)])}}});Tl.Meta=np;Tl.Grid=op;Tl.install=function(e){return e.component(Tl.name,Tl),e.component(np.name,np),e.component(op.name,op),e};const WL=function(e){return e.replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()}).toLowerCase()},KL=function(e){return/[height|width]$/.test(e)},k1=function(e){let t="";const n=Object.keys(e);return n.forEach(function(o,r){let a=e[o];o=WL(o),KL(o)&&typeof a=="number"&&(a=a+"px"),a===!0?t+=o:a===!1?t+="not "+o:t+="("+o+": "+a+")",r{["touchstart","touchmove","wheel"].includes(e.type)||e.preventDefault()},Ys=e=>{const t=[],n=n4(e),o=o4(e);for(let r=n;re.currentSlide-YL(e),o4=e=>e.currentSlide+qL(e),YL=e=>e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0,qL=e=>e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow,ap=e=>e&&e.offsetWidth||0,Jg=e=>e&&e.offsetHeight||0,r4=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;const o=e.startX-e.curX,r=e.startY-e.curY,a=Math.atan2(r,o);return n=Math.round(a*180/Math.PI),n<0&&(n=360-Math.abs(n)),n<=45&&n>=0||n<=360&&n>=315?"left":n>=135&&n<=225?"right":t===!0?n>=35&&n<=135?"up":"down":"vertical"},eu=e=>{let t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t},gd=(e,t)=>{const n={};return t.forEach(o=>n[o]=e[o]),n},QL=e=>{const t=e.children.length,n=e.listRef,o=Math.ceil(ap(n)),r=e.trackRef,a=Math.ceil(ap(r));let l;if(e.vertical)l=o;else{let g=e.centerMode&&parseInt(e.centerPadding)*2;typeof e.centerPadding=="string"&&e.centerPadding.slice(-1)==="%"&&(g*=o/100),l=Math.ceil((o-g)/e.slidesToShow)}const i=n&&Jg(n.querySelector('[data-index="0"]')),s=i*e.slidesToShow;let u=e.currentSlide===void 0?e.initialSlide:e.currentSlide;e.rtl&&e.currentSlide===void 0&&(u=t-1-e.initialSlide);let c=e.lazyLoadedList||[];const d=Ys(v(v({},e),{currentSlide:u,lazyLoadedList:c}));c=c.concat(d);const p={slideCount:t,slideWidth:l,listWidth:o,trackWidth:a,currentSlide:u,slideHeight:i,listHeight:s,lazyLoadedList:c};return e.autoplaying===null&&e.autoplay&&(p.autoplaying="playing"),p},ZL=e=>{const{waitForAnimate:t,animating:n,fade:o,infinite:r,index:a,slideCount:l,lazyLoad:i,currentSlide:s,centerMode:u,slidesToScroll:c,slidesToShow:d,useCSS:p}=e;let{lazyLoadedList:g}=e;if(t&&n)return{};let m=a,h,b,y,S={},$={};const x=r?a:rp(a,0,l-1);if(o){if(!r&&(a<0||a>=l))return{};a<0?m=a+l:a>=l&&(m=a-l),i&&g.indexOf(m)<0&&(g=g.concat(m)),S={animating:!0,currentSlide:m,lazyLoadedList:g,targetSlide:m},$={animating:!1,targetSlide:m}}else h=m,m<0?(h=m+l,r?l%c!==0&&(h=l-l%c):h=0):!eu(e)&&m>s?m=h=s:u&&m>=l?(m=r?l:l-1,h=r?0:l-1):m>=l&&(h=m-l,r?l%c!==0&&(h=0):h=l-d),!r&&m+d>=l&&(h=l-d),b=Ql(v(v({},e),{slideIndex:m})),y=Ql(v(v({},e),{slideIndex:h})),r||(b===y&&(m=h),b=y),i&&(g=g.concat(Ys(v(v({},e),{currentSlide:m})))),p?(S={animating:!0,currentSlide:h,trackStyle:a4(v(v({},e),{left:b})),lazyLoadedList:g,targetSlide:x},$={animating:!1,currentSlide:h,trackStyle:ql(v(v({},e),{left:y})),swipeLeft:null,targetSlide:x}):S={currentSlide:h,trackStyle:ql(v(v({},e),{left:y})),lazyLoadedList:g,targetSlide:x};return{state:S,nextState:$}},JL=(e,t)=>{let n,o,r;const{slidesToScroll:a,slidesToShow:l,slideCount:i,currentSlide:s,targetSlide:u,lazyLoad:c,infinite:d}=e,g=i%a!==0?0:(i-s)%a;if(t.message==="previous")o=g===0?a:l-g,r=s-o,c&&!d&&(n=s-o,r=n===-1?i-1:n),d||(r=u-a);else if(t.message==="next")o=g===0?a:g,r=s+o,c&&!d&&(r=(s+a)%i+g),d||(r=u+a);else if(t.message==="dots")r=t.index*t.slidesToScroll;else if(t.message==="children"){if(r=t.index,d){const m=lz(v(v({},e),{targetSlide:r}));r>t.currentSlide&&m==="left"?r=r-i:re.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":e.keyCode===37?n?"next":"previous":e.keyCode===39?n?"previous":"next":"",tz=(e,t,n)=>(e.target.tagName==="IMG"&&Ia(e),!t||!n&&e.type.indexOf("mouse")!==-1?"":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}),nz=(e,t)=>{const{scrolling:n,animating:o,vertical:r,swipeToSlide:a,verticalSwiping:l,rtl:i,currentSlide:s,edgeFriction:u,edgeDragged:c,onEdge:d,swiped:p,swiping:g,slideCount:m,slidesToScroll:h,infinite:b,touchObject:y,swipeEvent:S,listHeight:$,listWidth:x}=t;if(n)return;if(o)return Ia(e);r&&a&&l&&Ia(e);let C,O={};const w=Ql(t);y.curX=e.touches?e.touches[0].pageX:e.clientX,y.curY=e.touches?e.touches[0].pageY:e.clientY,y.swipeLength=Math.round(Math.sqrt(Math.pow(y.curX-y.startX,2)));const M=Math.round(Math.sqrt(Math.pow(y.curY-y.startY,2)));if(!l&&!g&&M>10)return{scrolling:!0};l&&(y.swipeLength=M);let I=(i?-1:1)*(y.curX>y.startX?1:-1);l&&(I=y.curY>y.startY?1:-1);const _=Math.ceil(m/h),D=r4(t.touchObject,l);let F=y.swipeLength;return b||(s===0&&(D==="right"||D==="down")||s+1>=_&&(D==="left"||D==="up")||!eu(t)&&(D==="left"||D==="up"))&&(F=y.swipeLength*u,c===!1&&d&&(d(D),O.edgeDragged=!0)),!p&&S&&(S(D),O.swiped=!0),r?C=w+F*($/x)*I:i?C=w-F*I:C=w+F*I,l&&(C=w+F*I),O=v(v({},O),{touchObject:y,swipeLeft:C,trackStyle:ql(v(v({},t),{left:C}))}),Math.abs(y.curX-y.startX)10&&(O.swiping=!0,Ia(e)),O},oz=(e,t)=>{const{dragging:n,swipe:o,touchObject:r,listWidth:a,touchThreshold:l,verticalSwiping:i,listHeight:s,swipeToSlide:u,scrolling:c,onSwipe:d,targetSlide:p,currentSlide:g,infinite:m}=t;if(!n)return o&&Ia(e),{};const h=i?s/l:a/l,b=r4(r,i),y={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(c||!r.swipeLength)return y;if(r.swipeLength>h){Ia(e),d&&d(b);let S,$;const x=m?g:p;switch(b){case"left":case"up":$=x+F1(t),S=u?B1(t,$):$,y.currentDirection=0;break;case"right":case"down":$=x-F1(t),S=u?B1(t,$):$,y.currentDirection=1;break;default:S=x}y.triggerSlideHandler=S}else{const S=Ql(t);y.trackStyle=a4(v(v({},t),{left:S}))}return y},rz=e=>{const t=e.infinite?e.slideCount*2:e.slideCount;let n=e.infinite?e.slidesToShow*-1:0,o=e.infinite?e.slidesToShow*-1:0;const r=[];for(;n{const n=rz(e);let o=0;if(t>n[n.length-1])t=n[n.length-1];else for(const r in n){if(t{const t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){let n;const o=e.listRef,r=o.querySelectorAll&&o.querySelectorAll(".slick-slide")||[];if(Array.from(r).every(i=>{if(e.vertical){if(i.offsetTop+Jg(i)/2>e.swipeLeft*-1)return n=i,!1}else if(i.offsetLeft-t+ap(i)/2>e.swipeLeft*-1)return n=i,!1;return!0}),!n)return 0;const a=e.rtl===!0?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-a)||1}else return e.slidesToScroll},eh=(e,t)=>t.reduce((n,o)=>n&&e.hasOwnProperty(o),!0)?null:console.error("Keys Missing:",e),ql=e=>{eh(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);let t,n;const o=e.slideCount+2*e.slidesToShow;e.vertical?n=o*e.slideHeight:t=az(e)*e.slideWidth;let r={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){const a=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",l=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",i=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";r=v(v({},r),{WebkitTransform:a,transform:l,msTransform:i})}else e.vertical?r.top=e.left:r.left=e.left;return e.fade&&(r={opacity:1}),t&&(r.width=t+"px"),n&&(r.height=n+"px"),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?r.marginTop=e.left+"px":r.marginLeft=e.left+"px"),r},a4=e=>{eh(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);const t=ql(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t},Ql=e=>{if(e.unslick)return 0;eh(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);const{slideIndex:t,trackRef:n,infinite:o,centerMode:r,slideCount:a,slidesToShow:l,slidesToScroll:i,slideWidth:s,listWidth:u,variableWidth:c,slideHeight:d,fade:p,vertical:g}=e;let m=0,h,b,y=0;if(p||e.slideCount===1)return 0;let S=0;if(o?(S=-Ro(e),a%i!==0&&t+i>a&&(S=-(t>a?l-(t-a):a%i)),r&&(S+=parseInt(l/2))):(a%i!==0&&t+i>a&&(S=l-a%i),r&&(S=parseInt(l/2))),m=S*s,y=S*d,g?h=t*d*-1+y:h=t*s*-1+m,c===!0){let $;const x=n;if($=t+Ro(e),b=x&&x.childNodes[$],h=b?b.offsetLeft*-1:0,r===!0){$=o?t+Ro(e):t,b=x&&x.children[$],h=0;for(let C=0;C<$;C++)h-=x&&x.children[C]&&x.children[C].offsetWidth;h-=parseInt(e.centerPadding),h+=b&&(u-b.offsetWidth)/2}}return h},Ro=e=>e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0),cs=e=>e.unslick||!e.infinite?0:e.slideCount,az=e=>e.slideCount===1?1:Ro(e)+e.slideCount+cs(e),lz=e=>e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+iz(e)?"left":"right":e.targetSlide{let{slidesToShow:t,centerMode:n,rtl:o,centerPadding:r}=e;if(n){let a=(t-1)/2+1;return parseInt(r)>0&&(a+=1),o&&t%2===0&&(a+=1),a}return o?0:t-1},sz=e=>{let{slidesToShow:t,centerMode:n,rtl:o,centerPadding:r}=e;if(n){let a=(t-1)/2+1;return parseInt(r)>0&&(a+=1),!o&&t%2===0&&(a+=1),a}return o?t-1:0},L1=()=>!!(typeof window<"u"&&window.document&&window.document.createElement),hd=e=>{let t,n,o,r;e.rtl?r=e.slideCount-1-e.index:r=e.index;const a=r<0||r>=e.slideCount;e.centerMode?(o=Math.floor(e.slidesToShow/2),n=(r-e.currentSlide)%e.slideCount===0,r>e.currentSlide-o-1&&r<=e.currentSlide+o&&(t=!0)):t=e.currentSlide<=r&&r=e.slideCount?l=e.targetSlide-e.slideCount:l=e.targetSlide,{"slick-slide":!0,"slick-active":t,"slick-center":n,"slick-cloned":a,"slick-current":r===l}},cz=function(e){const t={};return(e.variableWidth===void 0||e.variableWidth===!1)&&(t.width=e.slideWidth+(typeof e.slideWidth=="number"?"px":"")),e.fade&&(t.position="relative",e.vertical?t.top=-e.index*parseInt(e.slideHeight)+"px":t.left=-e.index*parseInt(e.slideWidth)+"px",t.opacity=e.currentSlide===e.index?1:0,e.useCSS&&(t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase)),t},md=(e,t)=>e.key+"-"+t,uz=function(e,t){let n;const o=[],r=[],a=[],l=t.length,i=n4(e),s=o4(e);return t.forEach((u,c)=>{let d;const p={message:"children",index:c,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(c)>=0?d=u:d=f("div");const g=cz(v(v({},e),{index:c})),m=d.props.class||"";let h=hd(v(v({},e),{index:c}));if(o.push(Cl(d,{key:"original"+md(d,c),tabindex:"-1","data-index":c,"aria-hidden":!h["slick-active"],class:te(h,m),style:v(v({outline:"none"},d.props.style||{}),g),onClick:()=>{e.focusOnSelect&&e.focusOnSelect(p)}})),e.infinite&&e.fade===!1){const b=l-c;b<=Ro(e)&&l!==e.slidesToShow&&(n=-b,n>=i&&(d=u),h=hd(v(v({},e),{index:n})),r.push(Cl(d,{key:"precloned"+md(d,n),class:te(h,m),tabindex:"-1","data-index":n,"aria-hidden":!h["slick-active"],style:v(v({},d.props.style||{}),g),onClick:()=>{e.focusOnSelect&&e.focusOnSelect(p)}}))),l!==e.slidesToShow&&(n=l+c,n{e.focusOnSelect&&e.focusOnSelect(p)}})))}}),e.rtl?r.concat(o,a).reverse():r.concat(o,a)},l4=(e,t)=>{let{attrs:n,slots:o}=t;const r=uz(n,mt(o==null?void 0:o.default())),{onMouseenter:a,onMouseover:l,onMouseleave:i}=n,s={onMouseenter:a,onMouseover:l,onMouseleave:i},u=v({class:"slick-track",style:n.trackStyle},s);return f("div",u,[r])};l4.inheritAttrs=!1;const dz=l4,fz=function(e){let t;return e.infinite?t=Math.ceil(e.slideCount/e.slidesToScroll):t=Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1,t},i4=(e,t)=>{let{attrs:n}=t;const{slideCount:o,slidesToScroll:r,slidesToShow:a,infinite:l,currentSlide:i,appendDots:s,customPaging:u,clickHandler:c,dotsClass:d,onMouseenter:p,onMouseover:g,onMouseleave:m}=n,h=fz({slideCount:o,slidesToScroll:r,slidesToShow:a,infinite:l}),b={onMouseenter:p,onMouseover:g,onMouseleave:m};let y=[];for(let S=0;S=O&&i<=x:i===O}),M={message:"dots",index:S,slidesToScroll:r,currentSlide:i};y=y.concat(f("li",{key:S,class:w},[ut(u({i:S}),{onClick:I})]))}return ut(s({dots:y}),v({class:d},b))};i4.inheritAttrs=!1;const pz=i4;function s4(){}function c4(e,t,n){n&&n.preventDefault(),t(e,n)}const u4=(e,t)=>{let{attrs:n}=t;const{clickHandler:o,infinite:r,currentSlide:a,slideCount:l,slidesToShow:i}=n,s={"slick-arrow":!0,"slick-prev":!0};let u=function(g){c4({message:"previous"},o,g)};!r&&(a===0||l<=i)&&(s["slick-disabled"]=!0,u=s4);const c={key:"0","data-role":"none",class:s,style:{display:"block"},onClick:u},d={currentSlide:a,slideCount:l};let p;return n.prevArrow?p=ut(n.prevArrow(v(v({},c),d)),{key:"0",class:s,style:{display:"block"},onClick:u},!1):p=f("button",N({key:"0",type:"button"},c),[" ",go("Previous")]),p};u4.inheritAttrs=!1;const d4=(e,t)=>{let{attrs:n}=t;const{clickHandler:o,currentSlide:r,slideCount:a}=n,l={"slick-arrow":!0,"slick-next":!0};let i=function(d){c4({message:"next"},o,d)};eu(n)||(l["slick-disabled"]=!0,i=s4);const s={key:"1","data-role":"none",class:te(l),style:{display:"block"},onClick:i},u={currentSlide:r,slideCount:a};let c;return n.nextArrow?c=ut(n.nextArrow(v(v({},s),u)),{key:"1",class:te(l),style:{display:"block"},onClick:i},!1):c=f("button",N({key:"1",type:"button"},s),[" ",go("Next")]),c};d4.inheritAttrs=!1;var vz=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{this.currentSlide>=e.children.length&&this.changeSlide({message:"index",index:e.children.length-e.slidesToShow,currentSlide:this.currentSlide}),!this.preProps.autoplay&&e.autoplay?this.handleAutoPlay("playing"):e.autoplay?this.handleAutoPlay("update"):this.pause("paused")}),this.preProps=v({},e)}},mounted(){if(this.__emit("init"),this.lazyLoad){const e=Ys(v(v({},this.$props),this.$data));e.length>0&&(this.setState(t=>({lazyLoadedList:t.lazyLoadedList.concat(e)})),this.__emit("lazyLoad",e))}this.$nextTick(()=>{const e=v({listRef:this.list,trackRef:this.track,children:this.children},this.$props);this.updateState(e,!0,()=>{this.adaptHeight(),this.autoplay&&this.handleAutoPlay("playing")}),this.lazyLoad==="progressive"&&(this.lazyLoadTimer=setInterval(this.progressiveLazyLoad,1e3)),this.ro=new mv(()=>{this.animating?(this.onWindowResized(!1),this.callbackTimers.push(setTimeout(()=>this.onWindowResized(),this.speed))):this.onWindowResized()}),this.ro.observe(this.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),t=>{t.onfocus=this.$props.pauseOnFocus?this.onSlideFocus:null,t.onblur=this.$props.pauseOnFocus?this.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",this.onWindowResized):window.attachEvent("onresize",this.onWindowResized)})},beforeUnmount(){var e;this.animationEndCallback&&clearTimeout(this.animationEndCallback),this.lazyLoadTimer&&clearInterval(this.lazyLoadTimer),this.callbackTimers.length&&(this.callbackTimers.forEach(t=>clearTimeout(t)),this.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",this.onWindowResized):window.detachEvent("onresize",this.onWindowResized),this.autoplayTimer&&clearInterval(this.autoplayTimer),(e=this.ro)===null||e===void 0||e.disconnect()},updated(){if(this.checkImagesLoad(),this.__emit("reInit"),this.lazyLoad){const e=Ys(v(v({},this.$props),this.$data));e.length>0&&(this.setState(t=>({lazyLoadedList:t.lazyLoadedList.concat(e)})),this.__emit("lazyLoad"))}this.adaptHeight()},methods:{listRefHandler(e){this.list=e},trackRefHandler(e){this.track=e},adaptHeight(){if(this.adaptiveHeight&&this.list){const e=this.list.querySelector(`[data-index="${this.currentSlide}"]`);this.list.style.height=Jg(e)+"px"}},onWindowResized(e){this.debouncedResize&&this.debouncedResize.cancel(),this.debouncedResize=hc(()=>this.resizeWindow(e),50),this.debouncedResize()},resizeWindow(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(!!!this.track)return;const n=v(v({listRef:this.list,trackRef:this.track,children:this.children},this.$props),this.$data);this.updateState(n,e,()=>{this.autoplay?this.handleAutoPlay("update"):this.pause("paused")}),this.setState({animating:!1}),clearTimeout(this.animationEndCallback),delete this.animationEndCallback},updateState(e,t,n){const o=QL(e);e=v(v(v({},e),o),{slideIndex:o.currentSlide});const r=Ql(e);e=v(v({},e),{left:r});const a=ql(e);(t||this.children.length!==e.children.length)&&(o.trackStyle=a),this.setState(o,n)},ssrInit(){const e=this.children;if(this.variableWidth){let s=0,u=0;const c=[],d=Ro(v(v(v({},this.$props),this.$data),{slideCount:e.length})),p=cs(v(v(v({},this.$props),this.$data),{slideCount:e.length}));e.forEach(m=>{var h,b;const y=((b=(h=m.props.style)===null||h===void 0?void 0:h.width)===null||b===void 0?void 0:b.split("px")[0])||0;c.push(y),s+=y});for(let m=0;m{const r=()=>++n&&n>=t&&this.onWindowResized();if(!o.onclick)o.onclick=()=>o.parentNode.focus();else{const a=o.onclick;o.onclick=()=>{a(),o.parentNode.focus()}}o.onload||(this.$props.lazyLoad?o.onload=()=>{this.adaptHeight(),this.callbackTimers.push(setTimeout(this.onWindowResized,this.speed))}:(o.onload=r,o.onerror=()=>{r(),this.__emit("lazyLoadError")}))})},progressiveLazyLoad(){const e=[],t=v(v({},this.$props),this.$data);for(let n=this.currentSlide;n=-Ro(t);n--)if(this.lazyLoadedList.indexOf(n)<0){e.push(n);break}e.length>0?(this.setState(n=>({lazyLoadedList:n.lazyLoadedList.concat(e)})),this.__emit("lazyLoad",e)):this.lazyLoadTimer&&(clearInterval(this.lazyLoadTimer),delete this.lazyLoadTimer)},slideHandler(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{asNavFor:n,currentSlide:o,beforeChange:r,speed:a,afterChange:l}=this.$props,{state:i,nextState:s}=ZL(v(v(v({index:e},this.$props),this.$data),{trackRef:this.track,useCSS:this.useCSS&&!t}));if(!i)return;r&&r(o,i.currentSlide);const u=i.lazyLoadedList.filter(c=>this.lazyLoadedList.indexOf(c)<0);this.$attrs.onLazyLoad&&u.length>0&&this.__emit("lazyLoad",u),!this.$props.waitForAnimate&&this.animationEndCallback&&(clearTimeout(this.animationEndCallback),l&&l(o),delete this.animationEndCallback),this.setState(i,()=>{n&&this.asNavForIndex!==e&&(this.asNavForIndex=e,n.innerSlider.slideHandler(e)),s&&(this.animationEndCallback=setTimeout(()=>{const{animating:c}=s,d=vz(s,["animating"]);this.setState(d,()=>{this.callbackTimers.push(setTimeout(()=>this.setState({animating:c}),10)),l&&l(i.currentSlide),delete this.animationEndCallback})},a))})},changeSlide(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n=v(v({},this.$props),this.$data),o=JL(n,e);if(!(o!==0&&!o)&&(t===!0?this.slideHandler(o,t):this.slideHandler(o),this.$props.autoplay&&this.handleAutoPlay("update"),this.$props.focusOnSelect)){const r=this.list.querySelectorAll(".slick-current");r[0]&&r[0].focus()}},clickHandler(e){this.clickable===!1&&(e.stopPropagation(),e.preventDefault()),this.clickable=!0},keyHandler(e){const t=ez(e,this.accessibility,this.rtl);t!==""&&this.changeSlide({message:t})},selectHandler(e){this.changeSlide(e)},disableBodyScroll(){const e=t=>{t=t||window.event,t.preventDefault&&t.preventDefault(),t.returnValue=!1};window.ontouchmove=e},enableBodyScroll(){window.ontouchmove=null},swipeStart(e){this.verticalSwiping&&this.disableBodyScroll();const t=tz(e,this.swipe,this.draggable);t!==""&&this.setState(t)},swipeMove(e){const t=nz(e,v(v(v({},this.$props),this.$data),{trackRef:this.track,listRef:this.list,slideIndex:this.currentSlide}));t&&(t.swiping&&(this.clickable=!1),this.setState(t))},swipeEnd(e){const t=oz(e,v(v(v({},this.$props),this.$data),{trackRef:this.track,listRef:this.list,slideIndex:this.currentSlide}));if(!t)return;const n=t.triggerSlideHandler;delete t.triggerSlideHandler,this.setState(t),n!==void 0&&(this.slideHandler(n),this.$props.verticalSwiping&&this.enableBodyScroll())},touchEnd(e){this.swipeEnd(e),this.clickable=!0},slickPrev(){this.callbackTimers.push(setTimeout(()=>this.changeSlide({message:"previous"}),0))},slickNext(){this.callbackTimers.push(setTimeout(()=>this.changeSlide({message:"next"}),0))},slickGoTo(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(e=Number(e),isNaN(e))return"";this.callbackTimers.push(setTimeout(()=>this.changeSlide({message:"index",index:e,currentSlide:this.currentSlide},t),0))},play(){let e;if(this.rtl)e=this.currentSlide-this.slidesToScroll;else if(eu(v(v({},this.$props),this.$data)))e=this.currentSlide+this.slidesToScroll;else return!1;this.slideHandler(e)},handleAutoPlay(e){this.autoplayTimer&&clearInterval(this.autoplayTimer);const t=this.autoplaying;if(e==="update"){if(t==="hovered"||t==="focused"||t==="paused")return}else if(e==="leave"){if(t==="paused"||t==="focused")return}else if(e==="blur"&&(t==="paused"||t==="hovered"))return;this.autoplayTimer=setInterval(this.play,this.autoplaySpeed+50),this.setState({autoplaying:"playing"})},pause(e){this.autoplayTimer&&(clearInterval(this.autoplayTimer),this.autoplayTimer=null);const t=this.autoplaying;e==="paused"?this.setState({autoplaying:"paused"}):e==="focused"?(t==="hovered"||t==="playing")&&this.setState({autoplaying:"focused"}):t==="playing"&&this.setState({autoplaying:"hovered"})},onDotsOver(){this.autoplay&&this.pause("hovered")},onDotsLeave(){this.autoplay&&this.autoplaying==="hovered"&&this.handleAutoPlay("leave")},onTrackOver(){this.autoplay&&this.pause("hovered")},onTrackLeave(){this.autoplay&&this.autoplaying==="hovered"&&this.handleAutoPlay("leave")},onSlideFocus(){this.autoplay&&this.pause("focused")},onSlideBlur(){this.autoplay&&this.autoplaying==="focused"&&this.handleAutoPlay("blur")},customPaging(e){let{i:t}=e;return f("button",null,[t+1])},appendDots(e){let{dots:t}=e;return f("ul",{style:{display:"block"}},[t])}},render(){const e=te("slick-slider",this.$attrs.class,{"slick-vertical":this.vertical,"slick-initialized":!0}),t=v(v({},this.$props),this.$data);let n=gd(t,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]);const{pauseOnHover:o}=this.$props;n=v(v({},n),{focusOnSelect:this.focusOnSelect&&this.clickable?this.selectHandler:null,ref:this.trackRefHandler,onMouseleave:o?this.onTrackLeave:$n,onMouseover:o?this.onTrackOver:$n});let r;if(this.dots===!0&&this.slideCount>=this.slidesToShow){let b=gd(t,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","infinite","appendDots"]);b.customPaging=this.customPaging,b.appendDots=this.appendDots;const{customPaging:y,appendDots:S}=this.$slots;y&&(b.customPaging=y),S&&(b.appendDots=S);const{pauseOnDotsHover:$}=this.$props;b=v(v({},b),{clickHandler:this.changeSlide,onMouseover:$?this.onDotsOver:$n,onMouseleave:$?this.onDotsLeave:$n}),r=f(pz,b,null)}let a,l;const i=gd(t,["infinite","centerMode","currentSlide","slideCount","slidesToShow"]);i.clickHandler=this.changeSlide;const{prevArrow:s,nextArrow:u}=this.$slots;s&&(i.prevArrow=s),u&&(i.nextArrow=u),this.arrows&&(a=f(u4,i,null),l=f(d4,i,null));let c=null;this.vertical&&(c={height:typeof this.listHeight=="number"?`${this.listHeight}px`:this.listHeight});let d=null;this.vertical===!1?this.centerMode===!0&&(d={padding:"0px "+this.centerPadding}):this.centerMode===!0&&(d={padding:this.centerPadding+" 0px"});const p=v(v({},c),d),g=this.touchMove;let m={ref:this.listRefHandler,class:"slick-list",style:p,onClick:this.clickHandler,onMousedown:g?this.swipeStart:$n,onMousemove:this.dragging&&g?this.swipeMove:$n,onMouseup:g?this.swipeEnd:$n,onMouseleave:this.dragging&&g?this.swipeEnd:$n,[zt?"onTouchstartPassive":"onTouchstart"]:g?this.swipeStart:$n,[zt?"onTouchmovePassive":"onTouchmove"]:this.dragging&&g?this.swipeMove:$n,onTouchend:g?this.touchEnd:$n,onTouchcancel:this.dragging&&g?this.swipeEnd:$n,onKeydown:this.accessibility?this.keyHandler:$n},h={class:e,dir:"ltr",style:this.$attrs.style};return this.unslick&&(m={class:"slick-list",ref:this.listRefHandler},h={class:e}),f("div",h,[this.unslick?"":a,f("div",m,[f(dz,n,{default:()=>[this.children]})]),this.unslick?"":l,this.unslick?"":r])}},hz=J({name:"Slider",mixins:[Jr],inheritAttrs:!1,props:v({},t4),data(){return this._responsiveMediaHandlers=[],{breakpoint:null}},mounted(){if(this.responsive){const e=this.responsive.map(n=>n.breakpoint);e.sort((n,o)=>n-o),e.forEach((n,o)=>{let r;o===0?r=vd({minWidth:0,maxWidth:n}):r=vd({minWidth:e[o-1]+1,maxWidth:n}),L1()&&this.media(r,()=>{this.setState({breakpoint:n})})});const t=vd({minWidth:e.slice(-1)[0]});L1()&&this.media(t,()=>{this.setState({breakpoint:null})})}},beforeUnmount(){this._responsiveMediaHandlers.forEach(function(e){e.mql.removeListener(e.listener)})},methods:{innerSliderRefHandler(e){this.innerSlider=e},media(e,t){const n=window.matchMedia(e),o=r=>{let{matches:a}=r;a&&t()};n.addListener(o),o(n),this._responsiveMediaHandlers.push({mql:n,query:e,listener:o})},slickPrev(){var e;(e=this.innerSlider)===null||e===void 0||e.slickPrev()},slickNext(){var e;(e=this.innerSlider)===null||e===void 0||e.slickNext()},slickGoTo(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;var n;(n=this.innerSlider)===null||n===void 0||n.slickGoTo(e,t)},slickPause(){var e;(e=this.innerSlider)===null||e===void 0||e.pause("paused")},slickPlay(){var e;(e=this.innerSlider)===null||e===void 0||e.handleAutoPlay("play")}},render(){var e;let t,n;this.breakpoint?(n=this.responsive.filter(i=>i.breakpoint===this.breakpoint),t=n[0].settings==="unslick"?"unslick":v(v({},this.$props),n[0].settings)):t=v({},this.$props),t.centerMode&&(t.slidesToScroll>1,t.slidesToScroll=1),t.fade&&(t.slidesToShow>1,t.slidesToScroll>1,t.slidesToShow=1,t.slidesToScroll=1);let o=bc(this)||[];o=o.filter(i=>typeof i=="string"?!!i.trim():!!i),t.variableWidth&&(t.rows>1||t.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),t.variableWidth=!1);const r=[];let a=null;for(let i=0;i=o.length));d+=1)c.push(ut(o[d],{key:100*i+10*u+d,tabindex:-1,style:{width:`${100/t.slidesPerRow}%`,display:"inline-block"}}));s.push(f("div",{key:10*i+u},[c]))}t.variableWidth?r.push(f("div",{key:i,style:{width:a}},[s])):r.push(f("div",{key:i},[s]))}if(t==="unslick"){const i="regular slider "+(this.className||"");return f("div",{class:i},[o])}else r.length<=t.slidesToShow&&(t.unslick=!0);const l=v(v(v({},this.$attrs),t),{children:r,ref:this.innerSliderRefHandler});return f(gz,N(N({},l),{},{__propsSymbol__:[]}),this.$slots)}}),mz=e=>{const{componentCls:t,antCls:n,carouselArrowSize:o,carouselDotOffset:r,marginXXS:a}=e,l=-o*1.25,i=a;return{[t]:v(v({},et(e)),{".slick-slider":{position:"relative",display:"block",boxSizing:"border-box",touchAction:"pan-y",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",".slick-track, .slick-list":{transform:"translate3d(0, 0, 0)",touchAction:"pan-y"}},".slick-list":{position:"relative",display:"block",margin:0,padding:0,overflow:"hidden","&:focus":{outline:"none"},"&.dragging":{cursor:"pointer"},".slick-slide":{pointerEvents:"none",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"hidden"},"&.slick-active":{pointerEvents:"auto",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"visible"}},"> div > div":{verticalAlign:"bottom"}}},".slick-track":{position:"relative",top:0,insetInlineStart:0,display:"block","&::before, &::after":{display:"table",content:'""'},"&::after":{clear:"both"}},".slick-slide":{display:"none",float:"left",height:"100%",minHeight:1,img:{display:"block"},"&.dragging img":{pointerEvents:"none"}},".slick-initialized .slick-slide":{display:"block"},".slick-vertical .slick-slide":{display:"block",height:"auto"},".slick-arrow.slick-hidden":{display:"none"},".slick-prev, .slick-next":{position:"absolute",top:"50%",display:"block",width:o,height:o,marginTop:-o/2,padding:0,color:"transparent",fontSize:0,lineHeight:0,background:"transparent",border:0,outline:"none",cursor:"pointer","&:hover, &:focus":{color:"transparent",background:"transparent",outline:"none","&::before":{opacity:1}},"&.slick-disabled::before":{opacity:.25}},".slick-prev":{insetInlineStart:l,"&::before":{content:'"←"'}},".slick-next":{insetInlineEnd:l,"&::before":{content:'"→"'}},".slick-dots":{position:"absolute",insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:15,display:"flex !important",justifyContent:"center",paddingInlineStart:0,listStyle:"none","&-bottom":{bottom:r},"&-top":{top:r,bottom:"auto"},li:{position:"relative",display:"inline-block",flex:"0 1 auto",boxSizing:"content-box",width:e.dotWidth,height:e.dotHeight,marginInline:i,padding:0,textAlign:"center",textIndent:-999,verticalAlign:"top",transition:`all ${e.motionDurationSlow}`,button:{position:"relative",display:"block",width:"100%",height:e.dotHeight,padding:0,color:"transparent",fontSize:0,background:e.colorBgContainer,border:0,borderRadius:1,outline:"none",cursor:"pointer",opacity:.3,transition:`all ${e.motionDurationSlow}`,"&: hover, &:focus":{opacity:.75},"&::after":{position:"absolute",inset:-i,content:'""'}},"&.slick-active":{width:e.dotWidthActive,"& button":{background:e.colorBgContainer,opacity:1},"&: hover, &:focus":{opacity:1}}}}})}},bz=e=>{const{componentCls:t,carouselDotOffset:n,marginXXS:o}=e,r={width:e.dotHeight,height:e.dotWidth};return{[`${t}-vertical`]:{".slick-dots":{top:"50%",bottom:"auto",flexDirection:"column",width:e.dotHeight,height:"auto",margin:0,transform:"translateY(-50%)","&-left":{insetInlineEnd:"auto",insetInlineStart:n},"&-right":{insetInlineEnd:n,insetInlineStart:"auto"},li:v(v({},r),{margin:`${o}px 0`,verticalAlign:"baseline",button:r,"&.slick-active":v(v({},r),{button:r})})}}}},yz=e=>{const{componentCls:t}=e;return[{[`${t}-rtl`]:{direction:"rtl",".slick-dots":{[`${t}-rtl&`]:{flexDirection:"row-reverse"}}}},{[`${t}-vertical`]:{".slick-dots":{[`${t}-rtl&`]:{flexDirection:"column"}}}}]},Sz=Qe("Carousel",e=>{const{controlHeightLG:t,controlHeightSM:n}=e,o=ze(e,{carouselArrowSize:t/2,carouselDotOffset:n/2});return[mz(o),bz(o),yz(o)]},{dotWidth:16,dotHeight:3,dotWidthActive:24});var $z=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({effect:je(),dots:Ce(!0),vertical:Ce(),autoplay:Ce(),easing:String,beforeChange:de(),afterChange:de(),prefixCls:String,accessibility:Ce(),nextArrow:V.any,prevArrow:V.any,pauseOnHover:Ce(),adaptiveHeight:Ce(),arrows:Ce(!1),autoplaySpeed:Number,centerMode:Ce(),centerPadding:String,cssEase:String,dotsClass:String,draggable:Ce(!1),fade:Ce(),focusOnSelect:Ce(),infinite:Ce(),initialSlide:Number,lazyLoad:je(),rtl:Ce(),slide:String,slidesToShow:Number,slidesToScroll:Number,speed:Number,swipe:Ce(),swipeToSlide:Ce(),swipeEvent:de(),touchMove:Ce(),touchThreshold:Number,variableWidth:Ce(),useCSS:Ce(),slickGoTo:Number,responsive:Array,dotPosition:je(),verticalSwiping:Ce(!1)}),xz=J({compatConfig:{MODE:3},name:"ACarousel",inheritAttrs:!1,props:Cz(),setup(e,t){let{slots:n,attrs:o,expose:r}=t;const a=Z();r({goTo:function(m){let h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;var b;(b=a.value)===null||b===void 0||b.slickGoTo(m,h)},autoplay:m=>{var h,b;(b=(h=a.value)===null||h===void 0?void 0:h.innerSlider)===null||b===void 0||b.handleAutoPlay(m)},prev:()=>{var m;(m=a.value)===null||m===void 0||m.slickPrev()},next:()=>{var m;(m=a.value)===null||m===void 0||m.slickNext()},innerSlider:P(()=>{var m;return(m=a.value)===null||m===void 0?void 0:m.innerSlider})}),Le(()=>{yt(e.vertical===void 0)});const{prefixCls:i,direction:s}=Ee("carousel",e),[u,c]=Sz(i),d=P(()=>e.dotPosition?e.dotPosition:e.vertical!==void 0&&e.vertical?"right":"bottom"),p=P(()=>d.value==="left"||d.value==="right"),g=P(()=>{const m="slick-dots";return te({[m]:!0,[`${m}-${d.value}`]:!0,[`${e.dotsClass}`]:!!e.dotsClass})});return()=>{const{dots:m,arrows:h,draggable:b,effect:y}=e,{class:S,style:$}=o,x=$z(o,["class","style"]),C=y==="fade"?!0:e.fade,O=te(i.value,{[`${i.value}-rtl`]:s.value==="rtl",[`${i.value}-vertical`]:p.value,[`${S}`]:!!S},c.value);return u(f("div",{class:O,style:$},[f(hz,N(N(N({ref:a},e),x),{},{dots:!!m,dotsClass:g.value,arrows:h,draggable:b,fade:C,vertical:p.value}),n)]))}}}),poe=Vt(xz),th="__RC_CASCADER_SPLIT__",f4="SHOW_PARENT",p4="SHOW_CHILD";function lr(e){return e.join(th)}function ha(e){return e.map(lr)}function wz(e){return e.split(th)}function Oz(e){const{label:t,value:n,children:o}=e||{},r=n||"value";return{label:t||"label",value:r,key:r,children:o||"children"}}function hl(e,t){var n,o;return(n=e.isLeaf)!==null&&n!==void 0?n:!(!((o=e[t.children])===null||o===void 0)&&o.length)}function Pz(e){const t=e.parentElement;if(!t)return;const n=e.offsetTop-t.offsetTop;n-t.scrollTop<0?t.scrollTo({top:n}):n+e.offsetHeight-t.scrollTop>t.offsetHeight&&t.scrollTo({top:n+e.offsetHeight-t.offsetHeight})}const v4=Symbol("TreeContextKey"),Iz=J({compatConfig:{MODE:3},name:"TreeContext",props:{value:{type:Object}},setup(e,t){let{slots:n}=t;return Ke(v4,P(()=>e.value)),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}),nh=()=>Xe(v4,P(()=>({}))),g4=Symbol("KeysStateKey"),Tz=e=>{Ke(g4,e)},h4=()=>Xe(g4,{expandedKeys:Y([]),selectedKeys:Y([]),loadedKeys:Y([]),loadingKeys:Y([]),checkedKeys:Y([]),halfCheckedKeys:Y([]),expandedKeysSet:P(()=>new Set),selectedKeysSet:P(()=>new Set),loadedKeysSet:P(()=>new Set),loadingKeysSet:P(()=>new Set),checkedKeysSet:P(()=>new Set),halfCheckedKeysSet:P(()=>new Set),flattenNodes:Y([])}),Mz=e=>{let{prefixCls:t,level:n,isStart:o,isEnd:r}=e;const a=`${t}-indent-unit`,l=[];for(let i=0;i({prefixCls:String,focusable:{type:Boolean,default:void 0},activeKey:[Number,String],tabindex:Number,children:V.any,treeData:{type:Array},fieldNames:{type:Object},showLine:{type:[Boolean,Object],default:void 0},showIcon:{type:Boolean,default:void 0},icon:V.any,selectable:{type:Boolean,default:void 0},expandAction:[String,Boolean],disabled:{type:Boolean,default:void 0},multiple:{type:Boolean,default:void 0},checkable:{type:Boolean,default:void 0},checkStrictly:{type:Boolean,default:void 0},draggable:{type:[Function,Boolean]},defaultExpandParent:{type:Boolean,default:void 0},autoExpandParent:{type:Boolean,default:void 0},defaultExpandAll:{type:Boolean,default:void 0},defaultExpandedKeys:{type:Array},expandedKeys:{type:Array},defaultCheckedKeys:{type:Array},checkedKeys:{type:[Object,Array]},defaultSelectedKeys:{type:Array},selectedKeys:{type:Array},allowDrop:{type:Function},dropIndicatorRender:{type:Function},onFocus:{type:Function},onBlur:{type:Function},onKeydown:{type:Function},onContextmenu:{type:Function},onClick:{type:Function},onDblclick:{type:Function},onScroll:{type:Function},onExpand:{type:Function},onCheck:{type:Function},onSelect:{type:Function},onLoad:{type:Function},loadData:{type:Function},loadedKeys:{type:Array},onMouseenter:{type:Function},onMouseleave:{type:Function},onRightClick:{type:Function},onDragstart:{type:Function},onDragenter:{type:Function},onDragover:{type:Function},onDragleave:{type:Function},onDragend:{type:Function},onDrop:{type:Function},onActiveChange:{type:Function},filterTreeNode:{type:Function},motion:V.any,switcherIcon:V.any,height:Number,itemHeight:Number,virtual:{type:Boolean,default:void 0},direction:{type:String},rootClassName:String,rootStyle:Object});var Dz=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r"`v-slot:"+ae+"` ")}`;const a=Y(!1),l=nh(),{expandedKeysSet:i,selectedKeysSet:s,loadedKeysSet:u,loadingKeysSet:c,checkedKeysSet:d,halfCheckedKeysSet:p}=h4(),{dragOverNodeKey:g,dropPosition:m,keyEntities:h}=l.value,b=P(()=>us(e.eventKey,{expandedKeysSet:i.value,selectedKeysSet:s.value,loadedKeysSet:u.value,loadingKeysSet:c.value,checkedKeysSet:d.value,halfCheckedKeysSet:p.value,dragOverNodeKey:g,dropPosition:m,keyEntities:h})),y=zn(()=>b.value.expanded),S=zn(()=>b.value.selected),$=zn(()=>b.value.checked),x=zn(()=>b.value.loaded),C=zn(()=>b.value.loading),O=zn(()=>b.value.halfChecked),w=zn(()=>b.value.dragOver),M=zn(()=>b.value.dragOverGapTop),I=zn(()=>b.value.dragOverGapBottom),_=zn(()=>b.value.pos),D=Y(),F=P(()=>{const{eventKey:ae}=e,{keyEntities:ne}=l.value,{children:pe}=ne[ae]||{};return!!(pe||[]).length}),z=P(()=>{const{isLeaf:ae}=e,{loadData:ne}=l.value,pe=F.value;return ae===!1?!1:ae||!ne&&!pe||ne&&x.value&&!pe}),H=P(()=>z.value?null:y.value?z1:H1),T=P(()=>{const{disabled:ae}=e,{disabled:ne}=l.value;return!!(ne||ae)}),A=P(()=>{const{checkable:ae}=e,{checkable:ne}=l.value;return!ne||ae===!1?!1:ne}),R=P(()=>{const{selectable:ae}=e,{selectable:ne}=l.value;return typeof ae=="boolean"?ae:ne}),E=P(()=>{const{data:ae,active:ne,checkable:pe,disableCheckbox:xe,disabled:Te,selectable:ke}=e;return v(v({active:ne,checkable:pe,disableCheckbox:xe,disabled:Te,selectable:ke},ae),{dataRef:ae,data:ae,isLeaf:z.value,checked:$.value,expanded:y.value,loading:C.value,selected:S.value,halfChecked:O.value})}),k=Dn(),B=P(()=>{const{eventKey:ae}=e,{keyEntities:ne}=l.value,{parent:pe}=ne[ae]||{};return v(v({},ds(v({},e,b.value))),{parent:pe})}),L=vt({eventData:B,eventKey:P(()=>e.eventKey),selectHandle:D,pos:_,key:k.vnode.key});r(L);const j=ae=>{const{onNodeDoubleClick:ne}=l.value;ne(ae,B.value)},K=ae=>{if(T.value)return;const{onNodeSelect:ne}=l.value;ae.preventDefault(),ne(ae,B.value)},G=ae=>{if(T.value)return;const{disableCheckbox:ne}=e,{onNodeCheck:pe}=l.value;if(!A.value||ne)return;ae.preventDefault();const xe=!$.value;pe(ae,B.value,xe)},U=ae=>{const{onNodeClick:ne}=l.value;ne(ae,B.value),R.value?K(ae):G(ae)},X=ae=>{const{onNodeMouseEnter:ne}=l.value;ne(ae,B.value)},ee=ae=>{const{onNodeMouseLeave:ne}=l.value;ne(ae,B.value)},oe=ae=>{const{onNodeContextMenu:ne}=l.value;ne(ae,B.value)},Q=ae=>{const{onNodeDragStart:ne}=l.value;ae.stopPropagation(),a.value=!0,ne(ae,L);try{ae.dataTransfer.setData("text/plain","")}catch{}},W=ae=>{const{onNodeDragEnter:ne}=l.value;ae.preventDefault(),ae.stopPropagation(),ne(ae,L)},q=ae=>{const{onNodeDragOver:ne}=l.value;ae.preventDefault(),ae.stopPropagation(),ne(ae,L)},re=ae=>{const{onNodeDragLeave:ne}=l.value;ae.stopPropagation(),ne(ae,L)},le=ae=>{const{onNodeDragEnd:ne}=l.value;ae.stopPropagation(),a.value=!1,ne(ae,L)},ye=ae=>{const{onNodeDrop:ne}=l.value;ae.preventDefault(),ae.stopPropagation(),a.value=!1,ne(ae,L)},me=ae=>{const{onNodeExpand:ne}=l.value;C.value||ne(ae,B.value)},ce=()=>{const{data:ae}=e,{draggable:ne}=l.value;return!!(ne&&(!ne.nodeDraggable||ne.nodeDraggable(ae)))},se=()=>{const{draggable:ae,prefixCls:ne}=l.value;return ae&&(ae!=null&&ae.icon)?f("span",{class:`${ne}-draggable-icon`},[ae.icon]):null},ie=()=>{var ae,ne,pe;const{switcherIcon:xe=o.switcherIcon||((ae=l.value.slots)===null||ae===void 0?void 0:ae[(pe=(ne=e.data)===null||ne===void 0?void 0:ne.slots)===null||pe===void 0?void 0:pe.switcherIcon])}=e,{switcherIcon:Te}=l.value,ke=xe||Te;return typeof ke=="function"?ke(E.value):ke},fe=()=>{const{loadData:ae,onNodeLoad:ne}=l.value;C.value||ae&&y.value&&!z.value&&!F.value&&!x.value&&ne(B.value)};Ve(()=>{fe()}),ao(()=>{fe()});const Se=()=>{const{prefixCls:ae}=l.value,ne=ie();if(z.value)return ne!==!1?f("span",{class:te(`${ae}-switcher`,`${ae}-switcher-noop`)},[ne]):null;const pe=te(`${ae}-switcher`,`${ae}-switcher_${y.value?z1:H1}`);return ne!==!1?f("span",{onClick:me,class:pe},[ne]):null},Ie=()=>{var ae,ne;const{disableCheckbox:pe}=e,{prefixCls:xe}=l.value,Te=T.value;return A.value?f("span",{class:te(`${xe}-checkbox`,$.value&&`${xe}-checkbox-checked`,!$.value&&O.value&&`${xe}-checkbox-indeterminate`,(Te||pe)&&`${xe}-checkbox-disabled`),onClick:G},[(ne=(ae=l.value).customCheckable)===null||ne===void 0?void 0:ne.call(ae)]):null},ge=()=>{const{prefixCls:ae}=l.value;return f("span",{class:te(`${ae}-iconEle`,`${ae}-icon__${H.value||"docu"}`,C.value&&`${ae}-icon_loading`)},null)},Oe=()=>{const{disabled:ae,eventKey:ne}=e,{draggable:pe,dropLevelOffset:xe,dropPosition:Te,prefixCls:ke,indent:ve,dropIndicatorRender:he,dragOverNodeKey:be,direction:Me}=l.value;return!ae&&pe!==!1&&be===ne?he({dropPosition:Te,dropLevelOffset:xe,indent:ve,prefixCls:ke,direction:Me}):null},we=()=>{var ae,ne,pe,xe,Te,ke;const{icon:ve=o.icon,data:he}=e,be=o.title||((ae=l.value.slots)===null||ae===void 0?void 0:ae[(pe=(ne=e.data)===null||ne===void 0?void 0:ne.slots)===null||pe===void 0?void 0:pe.title])||((xe=l.value.slots)===null||xe===void 0?void 0:xe.title)||e.title,{prefixCls:Me,showIcon:Ae,icon:_e,loadData:Re}=l.value,Ye=T.value,tt=`${Me}-node-content-wrapper`;let at;if(Ae){const Et=ve||((Te=l.value.slots)===null||Te===void 0?void 0:Te[(ke=he==null?void 0:he.slots)===null||ke===void 0?void 0:ke.icon])||_e;at=Et?f("span",{class:te(`${Me}-iconEle`,`${Me}-icon__customize`)},[typeof Et=="function"?Et(E.value):Et]):ge()}else Re&&C.value&&(at=ge());let it;typeof be=="function"?it=be(E.value):it=be,it=it===void 0?Az:it;const ct=f("span",{class:`${Me}-title`},[it]);return f("span",{ref:D,title:typeof be=="string"?be:"",class:te(`${tt}`,`${tt}-${H.value||"normal"}`,!Ye&&(S.value||a.value)&&`${Me}-node-selected`),onMouseenter:X,onMouseleave:ee,onContextmenu:oe,onClick:U,onDblclick:j},[at,ct,Oe()])};return()=>{const ae=v(v({},e),n),{eventKey:ne,isLeaf:pe,isStart:xe,isEnd:Te,domRef:ke,active:ve,data:he,onMousemove:be,selectable:Me}=ae,Ae=Dz(ae,["eventKey","isLeaf","isStart","isEnd","domRef","active","data","onMousemove","selectable"]),{prefixCls:_e,filterTreeNode:Re,keyEntities:Ye,dropContainerKey:tt,dropTargetKey:at,draggingNodeKey:it}=l.value,ct=T.value,Et=dr(Ae,{aria:!0,data:!0}),{level:Dt}=Ye[ne]||{},Bt=Te[Te.length-1],Pt=ce(),Qt=!ct&&Pt,sn=it===ne,Rn=Me!==void 0?{"aria-selected":!!Me}:void 0;return f("div",N(N({ref:ke,class:te(n.class,`${_e}-treenode`,{[`${_e}-treenode-disabled`]:ct,[`${_e}-treenode-switcher-${y.value?"open":"close"}`]:!pe,[`${_e}-treenode-checkbox-checked`]:$.value,[`${_e}-treenode-checkbox-indeterminate`]:O.value,[`${_e}-treenode-selected`]:S.value,[`${_e}-treenode-loading`]:C.value,[`${_e}-treenode-active`]:ve,[`${_e}-treenode-leaf-last`]:Bt,[`${_e}-treenode-draggable`]:Qt,dragging:sn,"drop-target":at===ne,"drop-container":tt===ne,"drag-over":!ct&&w.value,"drag-over-gap-top":!ct&&M.value,"drag-over-gap-bottom":!ct&&I.value,"filter-node":Re&&Re(B.value)}),style:n.style,draggable:Qt,"aria-grabbed":sn,onDragstart:Qt?Q:void 0,onDragenter:Pt?W:void 0,onDragover:Pt?q:void 0,onDragleave:Pt?re:void 0,onDrop:Pt?ye:void 0,onDragend:Pt?le:void 0,onMousemove:be},Rn),Et),[f(Ez,{prefixCls:_e,level:Dt,isStart:xe,isEnd:Te},null),se(),Se(),Ie(),we()])}}});function uo(e,t){if(!e)return[];const n=e.slice(),o=n.indexOf(t);return o>=0&&n.splice(o,1),n}function Io(e,t){const n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function oh(e){return e.split("-")}function y4(e,t){return`${e}-${t}`}function Rz(e){return e&&e.type&&e.type.isTreeNode}function Nz(e,t){const n=[],o=t[e];function r(){(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).forEach(l=>{let{key:i,children:s}=l;n.push(i),r(s)})}return r(o.children),n}function kz(e){if(e.parent){const t=oh(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function Bz(e){const t=oh(e.pos);return Number(t[t.length-1])===0}function j1(e,t,n,o,r,a,l,i,s,u){var c;const{clientX:d,clientY:p}=e,{top:g,height:m}=e.target.getBoundingClientRect(),b=((u==="rtl"?-1:1)*(((r==null?void 0:r.x)||0)-d)-12)/o;let y=i[n.eventKey];if(pz.key===y.key),D=_<=0?0:_-1,F=l[D].key;y=i[F]}const S=y.key,$=y,x=y.key;let C=0,O=0;if(!s.has(S))for(let _=0;_-1.5?a({dragNode:w,dropNode:M,dropPosition:1})?C=1:I=!1:a({dragNode:w,dropNode:M,dropPosition:0})?C=0:a({dragNode:w,dropNode:M,dropPosition:1})?C=1:I=!1:a({dragNode:w,dropNode:M,dropPosition:1})?C=1:I=!1,{dropPosition:C,dropLevelOffset:O,dropTargetKey:y.key,dropTargetPos:y.pos,dragOverNodeKey:x,dropContainerKey:C===0?null:((c=y.parent)===null||c===void 0?void 0:c.key)||null,dropAllowed:I}}function V1(e,t){if(!e)return;const{multiple:n}=t;return n?e.slice():e.length?[e[0]]:e}function bd(e){if(!e)return null;let t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(typeof e=="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return null;return t}function ip(e,t){const n=new Set;function o(r){if(n.has(r))return;const a=t[r];if(!a)return;n.add(r);const{parent:l,node:i}=a;i.disabled||l&&o(l.key)}return(e||[]).forEach(r=>{o(r)}),[...n]}var Fz=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r0&&arguments[0]!==void 0?arguments[0]:[];return Tt(n).map(r=>{var a,l,i,s;if(!Rz(r))return null;const u=r.children||{},c=r.key,d={};for(const[_,D]of Object.entries(r.props))d[qr(_)]=D;const{isLeaf:p,checkable:g,selectable:m,disabled:h,disableCheckbox:b}=d,y={isLeaf:p||p===""||void 0,checkable:g||g===""||void 0,selectable:m||m===""||void 0,disabled:h||h===""||void 0,disableCheckbox:b||b===""||void 0},S=v(v({},d),y),{title:$=(a=u.title)===null||a===void 0?void 0:a.call(u,S),icon:x=(l=u.icon)===null||l===void 0?void 0:l.call(u,S),switcherIcon:C=(i=u.switcherIcon)===null||i===void 0?void 0:i.call(u,S)}=d,O=Fz(d,["title","icon","switcherIcon"]),w=(s=u.default)===null||s===void 0?void 0:s.call(u),M=v(v(v({},O),{title:$,icon:x,switcherIcon:C,key:c,isLeaf:p}),y),I=t(w);return I.length&&(M.children=I),M})}return t(e)}function Lz(e,t,n){const{_title:o,key:r,children:a}=tu(n),l=new Set(t===!0?[]:t),i=[];function s(u){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return u.map((d,p)=>{const g=y4(c?c.pos:"0",p),m=vi(d[r],g);let h;for(let y=0;yp[a]:typeof a=="function"&&(c=p=>a(p)):c=(p,g)=>vi(p[i],g);function d(p,g,m,h){const b=p?p[u]:e,y=p?y4(m.pos,g):"0",S=p?[...h,p]:[];if(p){const $=c(p,y),x={node:p,index:g,pos:y,key:$,parentPos:m.node?m.pos:null,level:m.level+1,nodes:S};t(x)}b&&b.forEach(($,x)=>{d($,x,{node:p,pos:y,level:m?m.level+1:-1},S)})}d(null)}function gi(e){let{initWrapper:t,processEntity:n,onProcessFinished:o,externalGetKey:r,childrenPropName:a,fieldNames:l}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;const s=r||i,u={},c={};let d={posEntities:u,keyEntities:c};return t&&(d=t(d)||d),zz(e,p=>{const{node:g,index:m,pos:h,key:b,parentPos:y,level:S,nodes:$}=p,x={node:g,nodes:$,index:m,key:b,pos:h,level:S},C=vi(b,h);u[h]=x,c[C]=x,x.parent=u[y],x.parent&&(x.parent.children=x.parent.children||[],x.parent.children.push(x)),n&&n(x,d)},{externalGetKey:s,childrenPropName:a,fieldNames:l}),o&&o(d),d}function us(e,t){let{expandedKeysSet:n,selectedKeysSet:o,loadedKeysSet:r,loadingKeysSet:a,checkedKeysSet:l,halfCheckedKeysSet:i,dragOverNodeKey:s,dropPosition:u,keyEntities:c}=t;const d=c[e];return{eventKey:e,expanded:n.has(e),selected:o.has(e),loaded:r.has(e),loading:a.has(e),checked:l.has(e),halfChecked:i.has(e),pos:String(d?d.pos:""),parent:d.parent,dragOver:s===e&&u===0,dragOverGapTop:s===e&&u===-1,dragOverGapBottom:s===e&&u===1}}function ds(e){const{data:t,expanded:n,selected:o,checked:r,loaded:a,loading:l,halfChecked:i,dragOver:s,dragOverGapTop:u,dragOverGapBottom:c,pos:d,active:p,eventKey:g}=e,m=v(v({dataRef:t},t),{expanded:n,selected:o,checked:r,loaded:a,loading:l,halfChecked:i,dragOver:s,dragOverGapTop:u,dragOverGapBottom:c,pos:d,active:p,eventKey:g,key:g});return"props"in m||Object.defineProperty(m,"props",{get(){return e}}),m}const Hz=(e,t)=>P(()=>gi(e.value,{fieldNames:t.value,initWrapper:o=>v(v({},o),{pathKeyEntities:{}}),processEntity:(o,r)=>{const a=o.nodes.map(l=>l[t.value.value]).join(th);r.pathKeyEntities[a]=o,o.key=a}}).pathKeyEntities);function jz(e){const t=Y(!1),n=Z({});return Le(()=>{if(!e.value){t.value=!1,n.value={};return}let o={matchInputWidth:!0,limit:50};e.value&&typeof e.value=="object"&&(o=v(v({},o),e.value)),o.limit<=0&&delete o.limit,t.value=!0,n.value=o}),{showSearch:t,searchConfig:n}}const Ml="__rc_cascader_search_mark__",Vz=(e,t,n)=>{let{label:o}=n;return t.some(r=>String(r[o]).toLowerCase().includes(e.toLowerCase()))},Wz=e=>{let{path:t,fieldNames:n}=e;return t.map(o=>o[n.label]).join(" / ")},Kz=(e,t,n,o,r,a)=>P(()=>{const{filter:l=Vz,render:i=Wz,limit:s=50,sort:u}=r.value,c=[];if(!e.value)return[];function d(p,g){p.forEach(m=>{if(!u&&s>0&&c.length>=s)return;const h=[...g,m],b=m[n.value.children];(!b||b.length===0||a.value)&&l(e.value,h,{label:n.value.label})&&c.push(v(v({},m),{[n.value.label]:i({inputValue:e.value,path:h,prefixCls:o.value,fieldNames:n.value}),[Ml]:h})),b&&d(m[n.value.children],h)})}return d(t.value,[]),u&&c.sort((p,g)=>u(p[Ml],g[Ml],e.value,n.value)),s>0?c.slice(0,s):c});function W1(e,t,n){const o=new Set(e);return e.filter(r=>{const a=t[r],l=a?a.parent:null,i=a?a.children:null;return n===p4?!(i&&i.some(s=>s.key&&o.has(s.key))):!(l&&!l.node.disabled&&o.has(l.key))})}function Zl(e,t,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;var r;let a=t;const l=[];for(let i=0;i{const p=d[n.value];return o?String(p)===String(s):p===s}),c=u!==-1?a==null?void 0:a[u]:null;l.push({value:(r=c==null?void 0:c[n.value])!==null&&r!==void 0?r:s,index:u,option:c}),a=c==null?void 0:c[n.children]}return l}const Gz=(e,t,n)=>P(()=>{const o=[],r=[];return n.value.forEach(a=>{Zl(a,e.value,t.value).every(i=>i.option)?r.push(a):o.push(a)}),[r,o]});function S4(e,t){const n=new Set;return e.forEach(o=>{t.has(o)||n.add(o)}),n}function Xz(e){const{disabled:t,disableCheckbox:n,checkable:o}=e||{};return!!(t||n)||o===!1}function Uz(e,t,n,o){const r=new Set(e),a=new Set;for(let i=0;i<=n;i+=1)(t.get(i)||new Set).forEach(u=>{const{key:c,node:d,children:p=[]}=u;r.has(c)&&!o(d)&&p.filter(g=>!o(g.node)).forEach(g=>{r.add(g.key)})});const l=new Set;for(let i=n;i>=0;i-=1)(t.get(i)||new Set).forEach(u=>{const{parent:c,node:d}=u;if(o(d)||!u.parent||l.has(u.parent.key))return;if(o(u.parent.node)){l.add(c.key);return}let p=!0,g=!1;(c.children||[]).filter(m=>!o(m.node)).forEach(m=>{let{key:h}=m;const b=r.has(h);p&&!b&&(p=!1),!g&&(b||a.has(h))&&(g=!0)}),p&&r.add(c.key),g&&a.add(c.key),l.add(c.key)});return{checkedKeys:Array.from(r),halfCheckedKeys:Array.from(S4(a,r))}}function Yz(e,t,n,o,r){const a=new Set(e);let l=new Set(t);for(let s=0;s<=o;s+=1)(n.get(s)||new Set).forEach(c=>{const{key:d,node:p,children:g=[]}=c;!a.has(d)&&!l.has(d)&&!r(p)&&g.filter(m=>!r(m.node)).forEach(m=>{a.delete(m.key)})});l=new Set;const i=new Set;for(let s=o;s>=0;s-=1)(n.get(s)||new Set).forEach(c=>{const{parent:d,node:p}=c;if(r(p)||!c.parent||i.has(c.parent.key))return;if(r(c.parent.node)){i.add(d.key);return}let g=!0,m=!1;(d.children||[]).filter(h=>!r(h.node)).forEach(h=>{let{key:b}=h;const y=a.has(b);g&&!y&&(g=!1),!m&&(y||l.has(b))&&(m=!0)}),g||a.delete(d.key),m&&l.add(d.key),i.add(d.key)});return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(S4(l,a))}}function jn(e,t,n,o,r,a){let l;a?l=a:l=Xz;const i=new Set(e.filter(u=>!!n[u]));let s;return t===!0?s=Uz(i,r,o,l):s=Yz(i,t.halfCheckedKeys,r,o,l),s}const qz=(e,t,n,o,r)=>P(()=>{const a=r.value||(l=>{let{labels:i}=l;const s=o.value?i.slice(-1):i,u=" / ";return s.every(c=>["string","number"].includes(typeof c))?s.join(u):s.reduce((c,d,p)=>{const g=kt(d)?ut(d,{key:p}):d;return p===0?[g]:[...c,u,g]},[])});return e.value.map(l=>{const i=Zl(l,t.value,n.value),s=a({labels:i.map(c=>{let{option:d,value:p}=c;var g;return(g=d==null?void 0:d[n.value.label])!==null&&g!==void 0?g:p}),selectedOptions:i.map(c=>{let{option:d}=c;return d})}),u=lr(l);return{label:s,value:u,key:u,valueCells:l}})}),$4=Symbol("CascaderContextKey"),Qz=e=>{Ke($4,e)},nu=()=>Xe($4),Zz=()=>{const e=ci(),{values:t}=nu(),[n,o]=pt([]);return ue(()=>e.open,()=>{if(e.open&&!e.multiple){const r=t.value[0];o(r||[])}},{immediate:!0}),[n,o]},Jz=(e,t,n,o,r,a)=>{const l=ci(),i=P(()=>l.direction==="rtl"),[s,u,c]=[Z([]),Z(),Z([])];Le(()=>{let h=-1,b=t.value;const y=[],S=[],$=o.value.length;for(let C=0;C<$&&b;C+=1){const O=b.findIndex(w=>w[n.value.value]===o.value[C]);if(O===-1)break;h=O,y.push(h),S.push(o.value[C]),b=b[h][n.value.children]}let x=t.value;for(let C=0;C{r(h)},p=h=>{const b=c.value.length;let y=u.value;y===-1&&h<0&&(y=b);for(let S=0;S{if(s.value.length>1){const h=s.value.slice(0,-1);d(h)}else l.toggleOpen(!1)},m=()=>{var h;const y=(((h=c.value[u.value])===null||h===void 0?void 0:h[n.value.children])||[]).find(S=>!S.disabled);if(y){const S=[...s.value,y[n.value.value]];d(S)}};e.expose({onKeydown:h=>{const{which:b}=h;switch(b){case $e.UP:case $e.DOWN:{let y=0;b===$e.UP?y=-1:b===$e.DOWN&&(y=1),y!==0&&p(y);break}case $e.LEFT:{i.value?m():g();break}case $e.RIGHT:{i.value?g():m();break}case $e.BACKSPACE:{l.searchValue||g();break}case $e.ENTER:{if(s.value.length){const y=c.value[u.value],S=(y==null?void 0:y[Ml])||[];S.length?a(S.map($=>$[n.value.value]),S[S.length-1]):a(s.value,y)}break}case $e.ESC:l.toggleOpen(!1),open&&h.stopPropagation()}},onKeyup:()=>{}})};function ou(e){let{prefixCls:t,checked:n,halfChecked:o,disabled:r,onClick:a}=e;const{customSlots:l,checkable:i}=nu(),s=i.value!==!1?l.value.checkable:i.value,u=typeof s=="function"?s():typeof s=="boolean"?null:s;return f("span",{class:{[t]:!0,[`${t}-checked`]:n,[`${t}-indeterminate`]:!n&&o,[`${t}-disabled`]:r},onClick:a},[u])}ou.props=["prefixCls","checked","halfChecked","disabled","onClick"];ou.displayName="Checkbox";ou.inheritAttrs=!1;const C4="__cascader_fix_label__";function ru(e){let{prefixCls:t,multiple:n,options:o,activeValue:r,prevValuePath:a,onToggleOpen:l,onSelect:i,onActive:s,checkedSet:u,halfCheckedSet:c,loadingKeys:d,isSelectable:p}=e;var g,m,h,b,y,S;const $=`${t}-menu`,x=`${t}-menu-item`,{fieldNames:C,changeOnSelect:O,expandTrigger:w,expandIcon:M,loadingIcon:I,dropdownMenuColumnStyle:_,customSlots:D}=nu(),F=(g=M.value)!==null&&g!==void 0?g:(h=(m=D.value).expandIcon)===null||h===void 0?void 0:h.call(m),z=(b=I.value)!==null&&b!==void 0?b:(S=(y=D.value).loadingIcon)===null||S===void 0?void 0:S.call(y),H=w.value==="hover";return f("ul",{class:$,role:"menu"},[o.map(T=>{var A;const{disabled:R}=T,E=T[Ml],k=(A=T[C4])!==null&&A!==void 0?A:T[C.value.label],B=T[C.value.value],L=hl(T,C.value),j=E?E.map(W=>W[C.value.value]):[...a,B],K=lr(j),G=d.includes(K),U=u.has(K),X=c.has(K),ee=()=>{!R&&(!H||!L)&&s(j)},oe=()=>{p(T)&&i(j,L)};let Q;return typeof T.title=="string"?Q=T.title:typeof k=="string"&&(Q=k),f("li",{key:K,class:[x,{[`${x}-expand`]:!L,[`${x}-active`]:r===B,[`${x}-disabled`]:R,[`${x}-loading`]:G}],style:_.value,role:"menuitemcheckbox",title:Q,"aria-checked":U,"data-path-key":K,onClick:()=>{ee(),(!n||L)&&oe()},onDblclick:()=>{O.value&&l(!1)},onMouseenter:()=>{H&&ee()},onMousedown:W=>{W.preventDefault()}},[n&&f(ou,{prefixCls:`${t}-checkbox`,checked:U,halfChecked:X,disabled:R,onClick:W=>{W.stopPropagation(),oe()}},null),f("div",{class:`${x}-content`},[k]),!G&&F&&!L&&f("div",{class:`${x}-expand-icon`},[F]),G&&z&&f("div",{class:`${x}-loading-icon`},[z])])})])}ru.props=["prefixCls","multiple","options","activeValue","prevValuePath","onToggleOpen","onSelect","onActive","checkedSet","halfCheckedSet","loadingKeys","isSelectable"];ru.displayName="Column";ru.inheritAttrs=!1;const eH=J({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,setup(e,t){const{attrs:n,slots:o}=t,r=ci(),a=Z(),l=P(()=>r.direction==="rtl"),{options:i,values:s,halfValues:u,fieldNames:c,changeOnSelect:d,onSelect:p,searchOptions:g,dropdownPrefixCls:m,loadData:h,expandTrigger:b,customSlots:y}=nu(),S=P(()=>m.value||r.prefixCls),$=Y([]),x=A=>{if(!h.value||r.searchValue)return;const E=Zl(A,i.value,c.value).map(B=>{let{option:L}=B;return L}),k=E[E.length-1];if(k&&!hl(k,c.value)){const B=lr(A);$.value=[...$.value,B],h.value(E)}};Le(()=>{$.value.length&&$.value.forEach(A=>{const R=wz(A),E=Zl(R,i.value,c.value,!0).map(B=>{let{option:L}=B;return L}),k=E[E.length-1];(!k||k[c.value.children]||hl(k,c.value))&&($.value=$.value.filter(B=>B!==A))})});const C=P(()=>new Set(ha(s.value))),O=P(()=>new Set(ha(u.value))),[w,M]=Zz(),I=A=>{M(A),x(A)},_=A=>{const{disabled:R}=A,E=hl(A,c.value);return!R&&(E||d.value||r.multiple)},D=function(A,R){let E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;p(A),!r.multiple&&(R||d.value&&(b.value==="hover"||E))&&r.toggleOpen(!1)},F=P(()=>r.searchValue?g.value:i.value),z=P(()=>{const A=[{options:F.value}];let R=F.value;for(let E=0;Ej[c.value.value]===k),L=B==null?void 0:B[c.value.children];if(!(L!=null&&L.length))break;R=L,A.push({options:L})}return A});Jz(t,F,c,w,I,(A,R)=>{_(R)&&D(A,hl(R,c.value),!0)});const T=A=>{A.preventDefault()};return Ve(()=>{ue(w,A=>{var R;for(let E=0;E{var A,R,E,k,B;const{notFoundContent:L=((A=o.notFoundContent)===null||A===void 0?void 0:A.call(o))||((E=(R=y.value).notFoundContent)===null||E===void 0?void 0:E.call(R)),multiple:j,toggleOpen:K}=r,G=!(!((B=(k=z.value[0])===null||k===void 0?void 0:k.options)===null||B===void 0)&&B.length),U=[{[c.value.value]:"__EMPTY__",[C4]:L,disabled:!0}],X=v(v({},n),{multiple:!G&&j,onSelect:D,onActive:I,onToggleOpen:K,checkedSet:C.value,halfCheckedSet:O.value,loadingKeys:$.value,isSelectable:_}),oe=(G?[{options:U}]:z.value).map((Q,W)=>{const q=w.value.slice(0,W),re=w.value[W];return f(ru,N(N({key:W},X),{},{prefixCls:S.value,options:Q.options,prevValuePath:q,activeValue:re}),null)});return f("div",{class:[`${S.value}-menus`,{[`${S.value}-menu-empty`]:G,[`${S.value}-rtl`]:l.value}],onMousedown:T,ref:a},[oe])}}});function au(e){const t=Z(0),n=Y();return Le(()=>{const o=new Map;let r=0;const a=e.value||{};for(const l in a)if(Object.prototype.hasOwnProperty.call(a,l)){const i=a[l],{level:s}=i;let u=o.get(s);u||(u=new Set,o.set(s,u)),u.add(i),r=Math.max(r,s)}t.value=r,n.value=o}),{maxLevel:t,levelEntities:n}}function tH(){return v(v({},qe(Ac(),["tokenSeparators","mode","showSearch"])),{id:String,prefixCls:String,fieldNames:Ne(),children:Array,value:{type:[String,Number,Array]},defaultValue:{type:[String,Number,Array]},changeOnSelect:{type:Boolean,default:void 0},displayRender:Function,checkable:{type:Boolean,default:void 0},showCheckedStrategy:{type:String,default:f4},showSearch:{type:[Boolean,Object],default:void 0},searchValue:String,onSearch:Function,expandTrigger:String,options:Array,dropdownPrefixCls:String,loadData:Function,popupVisible:{type:Boolean,default:void 0},popupClassName:String,dropdownClassName:String,dropdownMenuColumnStyle:{type:Object,default:void 0},popupStyle:{type:Object,default:void 0},dropdownStyle:{type:Object,default:void 0},popupPlacement:String,placement:String,onPopupVisibleChange:Function,onDropdownVisibleChange:Function,expandIcon:V.any,loadingIcon:V.any})}function x4(){return v(v({},tH()),{onChange:Function,customSlots:Object})}function nH(e){return Array.isArray(e)&&Array.isArray(e[0])}function K1(e){return e?nH(e)?e:(e.length===0?[]:[e]).map(t=>Array.isArray(t)?t:[t]):[]}const oH=J({compatConfig:{MODE:3},name:"Cascader",inheritAttrs:!1,props:rt(x4(),{}),setup(e,t){let{attrs:n,expose:o,slots:r}=t;const a=Kv(Be(e,"id")),l=P(()=>!!e.checkable),[i,s]=Ot(e.defaultValue,{value:P(()=>e.value),postState:K1}),u=P(()=>Oz(e.fieldNames)),c=P(()=>e.options||[]),d=Hz(c,u),p=W=>{const q=d.value;return W.map(re=>{const{nodes:le}=q[re];return le.map(ye=>ye[u.value.value])})},[g,m]=Ot("",{value:P(()=>e.searchValue),postState:W=>W||""}),h=(W,q)=>{m(W),q.source!=="blur"&&e.onSearch&&e.onSearch(W)},{showSearch:b,searchConfig:y}=jz(Be(e,"showSearch")),S=Kz(g,c,u,P(()=>e.dropdownPrefixCls||e.prefixCls),y,Be(e,"changeOnSelect")),$=Gz(c,u,i),[x,C,O]=[Z([]),Z([]),Z([])],{maxLevel:w,levelEntities:M}=au(d);Le(()=>{const[W,q]=$.value;if(!l.value||!i.value.length){[x.value,C.value,O.value]=[W,[],q];return}const re=ha(W),le=d.value,{checkedKeys:ye,halfCheckedKeys:me}=jn(re,!0,le,w.value,M.value);[x.value,C.value,O.value]=[p(ye),p(me),q]});const I=P(()=>{const W=ha(x.value),q=W1(W,d.value,e.showCheckedStrategy);return[...O.value,...p(q)]}),_=qz(I,c,u,l,Be(e,"displayRender")),D=W=>{if(s(W),e.onChange){const q=K1(W),re=q.map(me=>Zl(me,c.value,u.value).map(ce=>ce.option)),le=l.value?q:q[0],ye=l.value?re:re[0];e.onChange(le,ye)}},F=W=>{if(m(""),!l.value)D(W);else{const q=lr(W),re=ha(x.value),le=ha(C.value),ye=re.includes(q),me=O.value.some(ie=>lr(ie)===q);let ce=x.value,se=O.value;if(me&&!ye)se=O.value.filter(ie=>lr(ie)!==q);else{const ie=ye?re.filter(Ie=>Ie!==q):[...re,q];let fe;ye?{checkedKeys:fe}=jn(ie,{checked:!1,halfCheckedKeys:le},d.value,w.value,M.value):{checkedKeys:fe}=jn(ie,!0,d.value,w.value,M.value);const Se=W1(fe,d.value,e.showCheckedStrategy);ce=p(Se)}D([...se,...ce])}},z=(W,q)=>{if(q.type==="clear"){D([]);return}const{valueCells:re}=q.values[0];F(re)},H=P(()=>e.open!==void 0?e.open:e.popupVisible),T=P(()=>e.dropdownClassName||e.popupClassName),A=P(()=>e.dropdownStyle||e.popupStyle||{}),R=P(()=>e.placement||e.popupPlacement),E=W=>{var q,re;(q=e.onDropdownVisibleChange)===null||q===void 0||q.call(e,W),(re=e.onPopupVisibleChange)===null||re===void 0||re.call(e,W)},{changeOnSelect:k,checkable:B,dropdownPrefixCls:L,loadData:j,expandTrigger:K,expandIcon:G,loadingIcon:U,dropdownMenuColumnStyle:X,customSlots:ee}=Rr(e);Qz({options:c,fieldNames:u,values:x,halfValues:C,changeOnSelect:k,onSelect:F,checkable:B,searchOptions:S,dropdownPrefixCls:L,loadData:j,expandTrigger:K,expandIcon:G,loadingIcon:U,dropdownMenuColumnStyle:X,customSlots:ee});const oe=Z();o({focus(){var W;(W=oe.value)===null||W===void 0||W.focus()},blur(){var W;(W=oe.value)===null||W===void 0||W.blur()},scrollTo(W){var q;(q=oe.value)===null||q===void 0||q.scrollTo(W)}});const Q=P(()=>qe(e,["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","customSlots","showCheckedStrategy","children"]));return()=>{const W=!(g.value?S.value:c.value).length,{dropdownMatchSelectWidth:q=!1}=e,re=g.value&&y.value.matchInputWidth||W?{}:{minWidth:"auto"};return f(Vv,N(N(N({},Q.value),n),{},{ref:oe,id:a,prefixCls:e.prefixCls,dropdownMatchSelectWidth:q,dropdownStyle:v(v({},A.value),re),displayValues:_.value,onDisplayValuesChange:z,mode:l.value?"multiple":void 0,searchValue:g.value,onSearch:h,showSearch:b.value,OptionList:eH,emptyOptions:W,open:H.value,dropdownClassName:T.value,placement:R.value,onDropdownVisibleChange:E,getRawInputElement:()=>{var le;return(le=r.default)===null||le===void 0?void 0:le.call(r)}}),r)}}});var rH={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};const aH=rH;function G1(e){for(var t=1;thn()&&window.document.documentElement,O4=e=>{if(hn()&&window.document.documentElement){const t=Array.isArray(e)?e:[e],{documentElement:n}=window.document;return t.some(o=>o in n.style)}return!1},iH=(e,t)=>{if(!O4(e))return!1;const n=document.createElement("div"),o=n.style[e];return n.style[e]=t,n.style[e]!==o};function ah(e,t){return!Array.isArray(e)&&t!==void 0?iH(e,t):O4(e)}let Vi;const sH=()=>{if(!w4())return!1;if(Vi!==void 0)return Vi;const e=document.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e),Vi=e.scrollHeight===1,document.body.removeChild(e),Vi},P4=()=>{const e=Y(!1);return Ve(()=>{e.value=sH()}),e},I4=Symbol("rowContextKey"),cH=e=>{Ke(I4,e)},uH=()=>Xe(I4,{gutter:P(()=>{}),wrap:P(()=>{}),supportFlexGap:P(()=>{})}),dH=cH,fH=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around ":{justifyContent:"space-around"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},pH=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},vH=(e,t)=>{const{componentCls:n,gridColumns:o}=e,r={};for(let a=o;a>=0;a--)a===0?(r[`${n}${t}-${a}`]={display:"none"},r[`${n}-push-${a}`]={insetInlineStart:"auto"},r[`${n}-pull-${a}`]={insetInlineEnd:"auto"},r[`${n}${t}-push-${a}`]={insetInlineStart:"auto"},r[`${n}${t}-pull-${a}`]={insetInlineEnd:"auto"},r[`${n}${t}-offset-${a}`]={marginInlineEnd:0},r[`${n}${t}-order-${a}`]={order:0}):(r[`${n}${t}-${a}`]={display:"block",flex:`0 0 ${a/o*100}%`,maxWidth:`${a/o*100}%`},r[`${n}${t}-push-${a}`]={insetInlineStart:`${a/o*100}%`},r[`${n}${t}-pull-${a}`]={insetInlineEnd:`${a/o*100}%`},r[`${n}${t}-offset-${a}`]={marginInlineStart:`${a/o*100}%`},r[`${n}${t}-order-${a}`]={order:a});return r},cp=(e,t)=>vH(e,t),gH=(e,t,n)=>({[`@media (min-width: ${t}px)`]:v({},cp(e,n))}),hH=Qe("Grid",e=>[fH(e)]),mH=Qe("Grid",e=>{const t=ze(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[pH(t),cp(t,""),cp(t,"-xs"),Object.keys(n).map(o=>gH(t,n[o],o)).reduce((o,r)=>v(v({},o),r),{})]}),bH=()=>({align:Ge([String,Object]),justify:Ge([String,Object]),prefixCls:String,gutter:Ge([Number,Array,Object],0),wrap:{type:Boolean,default:void 0}}),yH=J({compatConfig:{MODE:3},name:"ARow",inheritAttrs:!1,props:bH(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:a}=Ee("row",e),[l,i]=hH(r);let s;const u=yg(),c=Z({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),d=Z({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),p=$=>P(()=>{if(typeof e[$]=="string")return e[$];if(typeof e[$]!="object")return"";for(let x=0;x<_r.length;x++){const C=_r[x];if(!d.value[C])continue;const O=e[$][C];if(O!==void 0)return O}return""}),g=p("align"),m=p("justify"),h=P4();Ve(()=>{s=u.value.subscribe($=>{d.value=$;const x=e.gutter||0;(!Array.isArray(x)&&typeof x=="object"||Array.isArray(x)&&(typeof x[0]=="object"||typeof x[1]=="object"))&&(c.value=$)})}),Je(()=>{u.value.unsubscribe(s)});const b=P(()=>{const $=[void 0,void 0],{gutter:x=0}=e;return(Array.isArray(x)?x:[x,void 0]).forEach((O,w)=>{if(typeof O=="object")for(let M=0;M<_r.length;M++){const I=_r[M];if(c.value[I]&&O[I]!==void 0){$[w]=O[I];break}}else $[w]=O}),$});dH({gutter:b,supportFlexGap:h,wrap:P(()=>e.wrap)});const y=P(()=>te(r.value,{[`${r.value}-no-wrap`]:e.wrap===!1,[`${r.value}-${m.value}`]:m.value,[`${r.value}-${g.value}`]:g.value,[`${r.value}-rtl`]:a.value==="rtl"},o.class,i.value)),S=P(()=>{const $=b.value,x={},C=$[0]!=null&&$[0]>0?`${$[0]/-2}px`:void 0,O=$[1]!=null&&$[1]>0?`${$[1]/-2}px`:void 0;return C&&(x.marginLeft=C,x.marginRight=C),h.value?x.rowGap=`${$[1]}px`:O&&(x.marginTop=O,x.marginBottom=O),x});return()=>{var $;return l(f("div",N(N({},o),{},{class:y.value,style:v(v({},S.value),o.style)}),[($=n.default)===null||$===void 0?void 0:$.call(n)]))}}}),T4=yH;function Dr(){return Dr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function fs(e,t,n){return $H()?fs=Reflect.construct.bind():fs=function(r,a,l){var i=[null];i.push.apply(i,a);var s=Function.bind.apply(r,i),u=new s;return l&&Jl(u,l.prototype),u},fs.apply(null,arguments)}function CH(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function dp(e){var t=typeof Map=="function"?new Map:void 0;return dp=function(o){if(o===null||!CH(o))return o;if(typeof o!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(o))return t.get(o);t.set(o,r)}function r(){return fs(o,arguments,up(this).constructor)}return r.prototype=Object.create(o.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Jl(r,o)},dp(e)}var xH=/%[sdj%]/g,wH=function(){};function fp(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var o=n.field;t[o]=t[o]||[],t[o].push(n)}),t}function In(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o=a)return i;switch(i){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch{return"[Circular]"}break;default:return i}});return l}return e}function OH(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function jt(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||OH(t)&&typeof e=="string"&&!e)}function PH(e,t,n){var o=[],r=0,a=e.length;function l(i){o.push.apply(o,i||[]),r++,r===a&&n(o)}e.forEach(function(i){t(i,l)})}function X1(e,t,n){var o=0,r=e.length;function a(l){if(l&&l.length){n(l);return}var i=o;o=o+1,i()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},ml={integer:function(t){return ml.number(t)&&parseInt(t,10)===t},float:function(t){return ml.number(t)&&!ml.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!ml.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Q1.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(DH())},hex:function(t){return typeof t=="string"&&!!t.match(Q1.hex)}},AH=function(t,n,o,r,a){if(t.required&&n===void 0){M4(t,n,o,r,a);return}var l=["integer","float","array","regexp","object","method","email","number","date","url","hex"],i=t.type;l.indexOf(i)>-1?ml[i](n)||r.push(In(a.messages.types[i],t.fullField,t.type)):i&&typeof n!==t.type&&r.push(In(a.messages.types[i],t.fullField,t.type))},RH=function(t,n,o,r,a){var l=typeof t.len=="number",i=typeof t.min=="number",s=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=n,d=null,p=typeof n=="number",g=typeof n=="string",m=Array.isArray(n);if(p?d="number":g?d="string":m&&(d="array"),!d)return!1;m&&(c=n.length),g&&(c=n.replace(u,"_").length),l?c!==t.len&&r.push(In(a.messages[d].len,t.fullField,t.len)):i&&!s&&ct.max?r.push(In(a.messages[d].max,t.fullField,t.max)):i&&s&&(ct.max)&&r.push(In(a.messages[d].range,t.fullField,t.min,t.max))},ia="enum",NH=function(t,n,o,r,a){t[ia]=Array.isArray(t[ia])?t[ia]:[],t[ia].indexOf(n)===-1&&r.push(In(a.messages[ia],t.fullField,t[ia].join(", ")))},kH=function(t,n,o,r,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||r.push(In(a.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var l=new RegExp(t.pattern);l.test(n)||r.push(In(a.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},ft={required:M4,whitespace:_H,type:AH,range:RH,enum:NH,pattern:kH},BH=function(t,n,o,r,a){var l=[],i=t.required||!t.required&&r.hasOwnProperty(t.field);if(i){if(jt(n,"string")&&!t.required)return o();ft.required(t,n,r,l,a,"string"),jt(n,"string")||(ft.type(t,n,r,l,a),ft.range(t,n,r,l,a),ft.pattern(t,n,r,l,a),t.whitespace===!0&&ft.whitespace(t,n,r,l,a))}o(l)},FH=function(t,n,o,r,a){var l=[],i=t.required||!t.required&&r.hasOwnProperty(t.field);if(i){if(jt(n)&&!t.required)return o();ft.required(t,n,r,l,a),n!==void 0&&ft.type(t,n,r,l,a)}o(l)},LH=function(t,n,o,r,a){var l=[],i=t.required||!t.required&&r.hasOwnProperty(t.field);if(i){if(n===""&&(n=void 0),jt(n)&&!t.required)return o();ft.required(t,n,r,l,a),n!==void 0&&(ft.type(t,n,r,l,a),ft.range(t,n,r,l,a))}o(l)},zH=function(t,n,o,r,a){var l=[],i=t.required||!t.required&&r.hasOwnProperty(t.field);if(i){if(jt(n)&&!t.required)return o();ft.required(t,n,r,l,a),n!==void 0&&ft.type(t,n,r,l,a)}o(l)},HH=function(t,n,o,r,a){var l=[],i=t.required||!t.required&&r.hasOwnProperty(t.field);if(i){if(jt(n)&&!t.required)return o();ft.required(t,n,r,l,a),jt(n)||ft.type(t,n,r,l,a)}o(l)},jH=function(t,n,o,r,a){var l=[],i=t.required||!t.required&&r.hasOwnProperty(t.field);if(i){if(jt(n)&&!t.required)return o();ft.required(t,n,r,l,a),n!==void 0&&(ft.type(t,n,r,l,a),ft.range(t,n,r,l,a))}o(l)},VH=function(t,n,o,r,a){var l=[],i=t.required||!t.required&&r.hasOwnProperty(t.field);if(i){if(jt(n)&&!t.required)return o();ft.required(t,n,r,l,a),n!==void 0&&(ft.type(t,n,r,l,a),ft.range(t,n,r,l,a))}o(l)},WH=function(t,n,o,r,a){var l=[],i=t.required||!t.required&&r.hasOwnProperty(t.field);if(i){if(n==null&&!t.required)return o();ft.required(t,n,r,l,a,"array"),n!=null&&(ft.type(t,n,r,l,a),ft.range(t,n,r,l,a))}o(l)},KH=function(t,n,o,r,a){var l=[],i=t.required||!t.required&&r.hasOwnProperty(t.field);if(i){if(jt(n)&&!t.required)return o();ft.required(t,n,r,l,a),n!==void 0&&ft.type(t,n,r,l,a)}o(l)},GH="enum",XH=function(t,n,o,r,a){var l=[],i=t.required||!t.required&&r.hasOwnProperty(t.field);if(i){if(jt(n)&&!t.required)return o();ft.required(t,n,r,l,a),n!==void 0&&ft[GH](t,n,r,l,a)}o(l)},UH=function(t,n,o,r,a){var l=[],i=t.required||!t.required&&r.hasOwnProperty(t.field);if(i){if(jt(n,"string")&&!t.required)return o();ft.required(t,n,r,l,a),jt(n,"string")||ft.pattern(t,n,r,l,a)}o(l)},YH=function(t,n,o,r,a){var l=[],i=t.required||!t.required&&r.hasOwnProperty(t.field);if(i){if(jt(n,"date")&&!t.required)return o();if(ft.required(t,n,r,l,a),!jt(n,"date")){var s;n instanceof Date?s=n:s=new Date(n),ft.type(t,s,r,l,a),s&&ft.range(t,s.getTime(),r,l,a)}}o(l)},qH=function(t,n,o,r,a){var l=[],i=Array.isArray(n)?"array":typeof n;ft.required(t,n,r,l,a,i),o(l)},yd=function(t,n,o,r,a){var l=t.type,i=[],s=t.required||!t.required&&r.hasOwnProperty(t.field);if(s){if(jt(n,l)&&!t.required)return o();ft.required(t,n,r,i,a,l),jt(n,l)||ft.type(t,n,r,i,a)}o(i)},QH=function(t,n,o,r,a){var l=[],i=t.required||!t.required&&r.hasOwnProperty(t.field);if(i){if(jt(n)&&!t.required)return o();ft.required(t,n,r,l,a)}o(l)},El={string:BH,method:FH,number:LH,boolean:zH,regexp:HH,integer:jH,float:VH,array:WH,object:KH,enum:XH,pattern:UH,date:YH,url:yd,hex:yd,email:yd,required:qH,any:QH};function pp(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var vp=pp(),hi=function(){function e(n){this.rules=null,this._messages=vp,this.define(n)}var t=e.prototype;return t.define=function(o){var r=this;if(!o)throw new Error("Cannot configure a schema with no rules");if(typeof o!="object"||Array.isArray(o))throw new Error("Rules must be an object");this.rules={},Object.keys(o).forEach(function(a){var l=o[a];r.rules[a]=Array.isArray(l)?l:[l]})},t.messages=function(o){return o&&(this._messages=q1(pp(),o)),this._messages},t.validate=function(o,r,a){var l=this;r===void 0&&(r={}),a===void 0&&(a=function(){});var i=o,s=r,u=a;if(typeof s=="function"&&(u=s,s={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,i),Promise.resolve(i);function c(h){var b=[],y={};function S(x){if(Array.isArray(x)){var C;b=(C=b).concat.apply(C,x)}else b.push(x)}for(var $=0;$3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&o&&n===void 0&&!E4(e,t.slice(0,-1))?e:_4(e,t,n,o)}function gp(e){return ir(e)}function JH(e,t){return E4(e,t)}function ej(e,t,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return ZH(e,t,n,o)}function tj(e,t){return e&&e.some(n=>oj(n,t))}function Z1(e){return typeof e=="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function D4(e,t){const n=Array.isArray(e)?[...e]:v({},e);return t&&Object.keys(t).forEach(o=>{const r=n[o],a=t[o],l=Z1(r)&&Z1(a);n[o]=l?D4(r,a||{}):a}),n}function nj(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;oD4(r,a),e)}function J1(e,t){let n={};return t.forEach(o=>{const r=JH(e,o);n=ej(n,o,r)}),n}function oj(e,t){return!e||!t||e.length!==t.length?!1:e.every((n,o)=>t[o]===n)}const Cn="'${name}' is not a valid ${type}",lu={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:Cn,method:Cn,array:Cn,object:Cn,number:Cn,date:Cn,boolean:Cn,integer:Cn,float:Cn,regexp:Cn,email:Cn,url:Cn,hex:Cn},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}};var iu=function(e,t,n,o){function r(a){return a instanceof n?a:new n(function(l){l(a)})}return new(n||(n=Promise))(function(a,l){function i(c){try{u(o.next(c))}catch(d){l(d)}}function s(c){try{u(o.throw(c))}catch(d){l(d)}}function u(c){c.done?a(c.value):r(c.value).then(i,s)}u((o=o.apply(e,t||[])).next())})};const rj=hi;function aj(e,t){return e.replace(/\$\{\w+\}/g,n=>{const o=n.slice(2,-1);return t[o]})}function hp(e,t,n,o,r){return iu(this,void 0,void 0,function*(){const a=v({},n);delete a.ruleIndex,delete a.trigger;let l=null;a&&a.type==="array"&&a.defaultField&&(l=a.defaultField,delete a.defaultField);const i=new rj({[e]:[a]}),s=nj({},lu,o.validateMessages);i.messages(s);let u=[];try{yield Promise.resolve(i.validate({[e]:t},v({},o)))}catch(p){p.errors?u=p.errors.map((g,m)=>{let{message:h}=g;return kt(h)?ko(h,{key:`error_${m}`}):h}):(console.error(p),u=[s.default()])}if(!u.length&&l)return(yield Promise.all(t.map((g,m)=>hp(`${e}.${m}`,g,l,o,r)))).reduce((g,m)=>[...g,...m],[]);const c=v(v(v({},n),{name:e,enum:(n.enum||[]).join(", ")}),r);return u.map(p=>typeof p=="string"?aj(p,c):p)})}function A4(e,t,n,o,r,a){const l=e.join("."),i=n.map((u,c)=>{const d=u.validator,p=v(v({},u),{ruleIndex:c});return d&&(p.validator=(g,m,h)=>{let b=!1;const S=d(g,m,function(){for(var $=arguments.length,x=new Array($),C=0;C<$;C++)x[C]=arguments[C];Promise.resolve().then(()=>{b||h(...x)})});b=S&&typeof S.then=="function"&&typeof S.catch=="function",b&&S.then(()=>{h()}).catch($=>{h($||" ")})}),p}).sort((u,c)=>{let{warningOnly:d,ruleIndex:p}=u,{warningOnly:g,ruleIndex:m}=c;return!!d==!!g?p-m:d?1:-1});let s;if(r===!0)s=new Promise((u,c)=>iu(this,void 0,void 0,function*(){for(let d=0;dhp(l,t,c,o,a).then(d=>({errors:d,rule:c})));s=(r?ij(u):lj(u)).then(c=>Promise.reject(c))}return s.catch(u=>u),s}function lj(e){return iu(this,void 0,void 0,function*(){return Promise.all(e).then(t=>[].concat(...t))})}function ij(e){return iu(this,void 0,void 0,function*(){let t=0;return new Promise(n=>{e.forEach(o=>{o.then(r=>{r.errors.length&&n([r]),t+=1,t===e.length&&n([])})})})})}const R4=Symbol("formContextKey"),N4=e=>{Ke(R4,e)},lh=()=>Xe(R4,{name:P(()=>{}),labelAlign:P(()=>"right"),vertical:P(()=>!1),addField:(e,t)=>{},removeField:e=>{},model:P(()=>{}),rules:P(()=>{}),colon:P(()=>{}),labelWrap:P(()=>{}),labelCol:P(()=>{}),requiredMark:P(()=>!1),validateTrigger:P(()=>{}),onValidate:()=>{},validateMessages:P(()=>lu)}),k4=Symbol("formItemPrefixContextKey"),sj=e=>{Ke(k4,e)},cj=()=>Xe(k4,{prefixCls:P(()=>"")});function uj(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const dj=()=>({span:[String,Number],order:[String,Number],offset:[String,Number],push:[String,Number],pull:[String,Number],xs:{type:[String,Number,Object],default:void 0},sm:{type:[String,Number,Object],default:void 0},md:{type:[String,Number,Object],default:void 0},lg:{type:[String,Number,Object],default:void 0},xl:{type:[String,Number,Object],default:void 0},xxl:{type:[String,Number,Object],default:void 0},prefixCls:String,flex:[String,Number]}),fj=["xs","sm","md","lg","xl","xxl"],ih=J({compatConfig:{MODE:3},name:"ACol",inheritAttrs:!1,props:dj(),setup(e,t){let{slots:n,attrs:o}=t;const{gutter:r,supportFlexGap:a,wrap:l}=uH(),{prefixCls:i,direction:s}=Ee("col",e),[u,c]=mH(i),d=P(()=>{const{span:g,order:m,offset:h,push:b,pull:y}=e,S=i.value;let $={};return fj.forEach(x=>{let C={};const O=e[x];typeof O=="number"?C.span=O:typeof O=="object"&&(C=O||{}),$=v(v({},$),{[`${S}-${x}-${C.span}`]:C.span!==void 0,[`${S}-${x}-order-${C.order}`]:C.order||C.order===0,[`${S}-${x}-offset-${C.offset}`]:C.offset||C.offset===0,[`${S}-${x}-push-${C.push}`]:C.push||C.push===0,[`${S}-${x}-pull-${C.pull}`]:C.pull||C.pull===0,[`${S}-rtl`]:s.value==="rtl"})}),te(S,{[`${S}-${g}`]:g!==void 0,[`${S}-order-${m}`]:m,[`${S}-offset-${h}`]:h,[`${S}-push-${b}`]:b,[`${S}-pull-${y}`]:y},$,o.class,c.value)}),p=P(()=>{const{flex:g}=e,m=r.value,h={};if(m&&m[0]>0){const b=`${m[0]/2}px`;h.paddingLeft=b,h.paddingRight=b}if(m&&m[1]>0&&!a.value){const b=`${m[1]/2}px`;h.paddingTop=b,h.paddingBottom=b}return g&&(h.flex=uj(g),l.value===!1&&!h.minWidth&&(h.minWidth=0)),h});return()=>{var g;return u(f("div",N(N({},o),{},{class:d.value,style:[p.value,o.style]}),[(g=n.default)===null||g===void 0?void 0:g.call(n)]))}}});var pj={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};const vj=pj;function ey(e){for(var t=1;t{let{slots:n,emit:o,attrs:r}=t;var a,l,i,s,u;const{prefixCls:c,htmlFor:d,labelCol:p,labelAlign:g,colon:m,required:h,requiredMark:b}=v(v({},e),r),[y]=$o("Form"),S=(a=e.label)!==null&&a!==void 0?a:(l=n.label)===null||l===void 0?void 0:l.call(n);if(!S)return null;const{vertical:$,labelAlign:x,labelCol:C,labelWrap:O,colon:w}=lh(),M=p||(C==null?void 0:C.value)||{},I=g||(x==null?void 0:x.value),_=`${c}-item-label`,D=te(_,I==="left"&&`${_}-left`,M.class,{[`${_}-wrap`]:!!O.value});let F=S;const z=m===!0||(w==null?void 0:w.value)!==!1&&m!==!1;if(z&&!$.value&&typeof S=="string"&&S.trim()!==""&&(F=S.replace(/[:|:]\s*$/,"")),e.tooltip||n.tooltip){const A=f("span",{class:`${c}-item-tooltip`},[f(oo,{title:e.tooltip},{default:()=>[f(hj,null,null)]})]);F=f(nt,null,[F,n.tooltip?(i=n.tooltip)===null||i===void 0?void 0:i.call(n,{class:`${c}-item-tooltip`}):A])}b==="optional"&&!h&&(F=f(nt,null,[F,f("span",{class:`${c}-item-optional`},[((s=y.value)===null||s===void 0?void 0:s.optional)||((u=Gn.Form)===null||u===void 0?void 0:u.optional)])]));const T=te({[`${c}-item-required`]:h,[`${c}-item-required-mark-optional`]:b==="optional",[`${c}-item-no-colon`]:!z});return f(ih,N(N({},M),{},{class:D}),{default:()=>[f("label",{for:d,class:T,title:typeof S=="string"?S:"",onClick:A=>o("click",A)},[F])]})};ch.displayName="FormItemLabel";ch.inheritAttrs=!1;const mj=ch,bj=e=>{const{componentCls:t}=e,n=`${t}-show-help`,o=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[o]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut}, + opacity ${e.motionDurationSlow} ${e.motionEaseInOut}, + transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${o}-appear, &${o}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${o}-leave-active`]:{transform:"translateY(-5px)"}}}}},yj=bj,Sj=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},label:{fontSize:e.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),ty=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},$j=e=>{const{componentCls:t}=e;return{[e.componentCls]:v(v(v({},et(e)),Sj(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":v({},ty(e,e.controlHeightSM)),"&-large":v({},ty(e,e.controlHeightLG))})}},Cj=e=>{const{formItemCls:t,iconCls:n,componentCls:o,rootPrefixCls:r}=e;return{[t]:v(v({},et(e)),{marginBottom:e.marginLG,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, + &-hidden.${r}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{display:"inline-block",flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${e.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:e.controlHeight,color:e.colorTextHeading,fontSize:e.fontSize,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:e.colorError,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${o}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${o}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:e.marginXXS/2,marginInlineEnd:e.marginXS},[`&${t}-no-colon::after`]:{content:'" "'}}},[`${t}-control`]:{display:"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${r}-col-'"]):not([class*="' ${r}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:sg,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},xj=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:o}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label.${o}-col-24 + ${n}-control`]:{minWidth:"unset"}}}},wj=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",flexWrap:"nowrap",marginInlineEnd:e.margin,marginBottom:0,"&-with-help":{marginBottom:e.marginLG},[`> ${n}-label, + > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},fa=e=>({margin:0,padding:`0 0 ${e.paddingXS}px`,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{display:"none"}}}),Oj=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${n} ${n}-label`]:fa(e),[t]:{[n]:{flexWrap:"wrap",[`${n}-label, + ${n}-control`]:{flex:"0 0 100%",maxWidth:"100%"}}}}},Pj=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:o}=e;return{[`${t}-vertical`]:{[n]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${t}-item-control`]:{width:"100%"}}},[`${t}-vertical ${n}-label, + .${o}-col-24${n}-label, + .${o}-col-xl-24${n}-label`]:fa(e),[`@media (max-width: ${e.screenXSMax}px)`]:[Oj(e),{[t]:{[`.${o}-col-xs-24${n}-label`]:fa(e)}}],[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{[`.${o}-col-sm-24${n}-label`]:fa(e)}},[`@media (max-width: ${e.screenMDMax}px)`]:{[t]:{[`.${o}-col-md-24${n}-label`]:fa(e)}},[`@media (max-width: ${e.screenLGMax}px)`]:{[t]:{[`.${o}-col-lg-24${n}-label`]:fa(e)}}}},uh=Qe("Form",(e,t)=>{let{rootPrefixCls:n}=t;const o=ze(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:n});return[$j(o),Cj(o),yj(o),xj(o),wj(o),Pj(o),jc(o),sg]}),Ij=J({compatConfig:{MODE:3},name:"ErrorList",inheritAttrs:!1,props:["errors","help","onErrorVisibleChanged","helpStatus","warnings"],setup(e,t){let{attrs:n}=t;const{prefixCls:o,status:r}=cj(),a=P(()=>`${o.value}-item-explain`),l=P(()=>!!(e.errors&&e.errors.length)),i=Z(r.value),[,s]=uh(o);return ue([l,r],()=>{l.value&&(i.value=r.value)}),()=>{var u,c;const d=Kc(`${o.value}-show-help-item`),p=Mc(`${o.value}-show-help-item`,d);return p.role="alert",p.class=[s.value,a.value,n.class,`${o.value}-show-help`],f(rn,N(N({},bo(`${o.value}-show-help`)),{},{onAfterEnter:()=>e.onErrorVisibleChanged(!0),onAfterLeave:()=>e.onErrorVisibleChanged(!1)}),{default:()=>[Kt(f(nc,N(N({},p),{},{tag:"div"}),{default:()=>[(c=e.errors)===null||c===void 0?void 0:c.map((g,m)=>f("div",{key:m,class:i.value?`${a.value}-${i.value}`:""},[g]))]}),[[Wn,!!(!((u=e.errors)===null||u===void 0)&&u.length)]])]})}}}),Tj=J({compatConfig:{MODE:3},slots:Object,inheritAttrs:!1,props:["prefixCls","errors","hasFeedback","onDomErrorVisibleChange","wrapperCol","help","extra","status","marginBottom","onErrorVisibleChanged"],setup(e,t){let{slots:n}=t;const o=lh(),{wrapperCol:r}=o,a=v({},o);return delete a.labelCol,delete a.wrapperCol,N4(a),sj({prefixCls:P(()=>e.prefixCls),status:P(()=>e.status)}),()=>{var l,i,s;const{prefixCls:u,wrapperCol:c,marginBottom:d,onErrorVisibleChanged:p,help:g=(l=n.help)===null||l===void 0?void 0:l.call(n),errors:m=Tt((i=n.errors)===null||i===void 0?void 0:i.call(n)),extra:h=(s=n.extra)===null||s===void 0?void 0:s.call(n)}=e,b=`${u}-item`,y=c||(r==null?void 0:r.value)||{},S=te(`${b}-control`,y.class);return f(ih,N(N({},y),{},{class:S}),{default:()=>{var $;return f(nt,null,[f("div",{class:`${b}-control-input`},[f("div",{class:`${b}-control-input-content`},[($=n.default)===null||$===void 0?void 0:$.call(n)])]),d!==null||m.length?f("div",{style:{display:"flex",flexWrap:"nowrap"}},[f(Ij,{errors:m,help:g,class:`${b}-explain-connected`,onErrorVisibleChanged:p},null),!!d&&f("div",{style:{width:0,height:`${d}px`}},null)]):null,h?f("div",{class:`${b}-extra`},[h]):null])}})}}}),Mj=Tj;function Ej(e){const t=Y(e.value.slice());let n=null;return Le(()=>{clearTimeout(n),n=setTimeout(()=>{t.value=e.value},e.value.length?0:10)}),t}vn("success","warning","error","validating","");const _j={success:Wo,warning:Ko,error:bn,validating:Un};function Sd(e,t,n){let o=e;const r=t;let a=0;try{for(let l=r.length;a({htmlFor:String,prefixCls:String,label:V.any,help:V.any,extra:V.any,labelCol:{type:Object},wrapperCol:{type:Object},hasFeedback:{type:Boolean,default:!1},colon:{type:Boolean,default:void 0},labelAlign:String,prop:{type:[String,Number,Array]},name:{type:[String,Number,Array]},rules:[Array,Object],autoLink:{type:Boolean,default:!0},required:{type:Boolean,default:void 0},validateFirst:{type:Boolean,default:void 0},validateStatus:V.oneOf(vn("","success","warning","error","validating")),validateTrigger:{type:[String,Array]},messageVariables:{type:Object},hidden:Boolean,noStyle:Boolean,tooltip:String});let Aj=0;const Rj="form_item",Nj=J({compatConfig:{MODE:3},name:"AFormItem",inheritAttrs:!1,__ANT_NEW_FORM_ITEM:!0,props:Dj(),slots:Object,setup(e,t){let{slots:n,attrs:o,expose:r}=t;e.prop;const a=`form-item-${++Aj}`,{prefixCls:l}=Ee("form",e),[i,s]=uh(l),u=Y(),c=lh(),d=P(()=>e.name||e.prop),p=Y([]),g=Y(!1),m=Y(),h=P(()=>{const U=d.value;return gp(U)}),b=P(()=>{if(h.value.length){const U=c.name.value,X=h.value.join("_");return U?`${U}_${X}`:`${Rj}_${X}`}else return}),y=()=>{const U=c.model.value;if(!(!U||!d.value))return Sd(U,h.value,!0).v},S=P(()=>y()),$=Y(Zi(S.value)),x=P(()=>{let U=e.validateTrigger!==void 0?e.validateTrigger:c.validateTrigger.value;return U=U===void 0?"change":U,ir(U)}),C=P(()=>{let U=c.rules.value;const X=e.rules,ee=e.required!==void 0?{required:!!e.required,trigger:x.value}:[],oe=Sd(U,h.value);U=U?oe.o[oe.k]||oe.v:[];const Q=[].concat(X||U||[]);return kI(Q,W=>W.required)?Q:Q.concat(ee)}),O=P(()=>{const U=C.value;let X=!1;return U&&U.length&&U.every(ee=>ee.required?(X=!0,!1):!0),X||e.required}),w=Y();Le(()=>{w.value=e.validateStatus});const M=P(()=>{let U={};return typeof e.label=="string"?U.label=e.label:e.name&&(U.label=String(e.name)),e.messageVariables&&(U=v(v({},U),e.messageVariables)),U}),I=U=>{if(h.value.length===0)return;const{validateFirst:X=!1}=e,{triggerName:ee}=U||{};let oe=C.value;if(ee&&(oe=oe.filter(W=>{const{trigger:q}=W;return!q&&!x.value.length?!0:ir(q||x.value).includes(ee)})),!oe.length)return Promise.resolve();const Q=A4(h.value,S.value,oe,v({validateMessages:c.validateMessages.value},U),X,M.value);return w.value="validating",p.value=[],Q.catch(W=>W).then(function(){let W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(w.value==="validating"){const q=W.filter(re=>re&&re.errors.length);w.value=q.length?"error":"success",p.value=q.map(re=>re.errors),c.onValidate(d.value,!p.value.length,p.value.length?_t(p.value[0]):null)}}),Q},_=()=>{I({triggerName:"blur"})},D=()=>{if(g.value){g.value=!1;return}I({triggerName:"change"})},F=()=>{w.value=e.validateStatus,g.value=!1,p.value=[]},z=()=>{var U;w.value=e.validateStatus,g.value=!0,p.value=[];const X=c.model.value||{},ee=S.value,oe=Sd(X,h.value,!0);Array.isArray(ee)?oe.o[oe.k]=[].concat((U=$.value)!==null&&U!==void 0?U:[]):oe.o[oe.k]=$.value,lt(()=>{g.value=!1})},H=P(()=>e.htmlFor===void 0?b.value:e.htmlFor),T=()=>{const U=H.value;if(!U||!m.value)return;const X=m.value.$el.querySelector(`[id="${U}"]`);X&&X.focus&&X.focus()};r({onFieldBlur:_,onFieldChange:D,clearValidate:F,resetField:z}),CA({id:b,onFieldBlur:()=>{e.autoLink&&_()},onFieldChange:()=>{e.autoLink&&D()},clearValidate:F},P(()=>!!(e.autoLink&&c.model.value&&d.value)));let A=!1;ue(d,U=>{U?A||(A=!0,c.addField(a,{fieldValue:S,fieldId:b,fieldName:d,resetField:z,clearValidate:F,namePath:h,validateRules:I,rules:C})):(A=!1,c.removeField(a))},{immediate:!0}),Je(()=>{c.removeField(a)});const R=Ej(p),E=P(()=>e.validateStatus!==void 0?e.validateStatus:R.value.length?"error":w.value),k=P(()=>({[`${l.value}-item`]:!0,[s.value]:!0,[`${l.value}-item-has-feedback`]:E.value&&e.hasFeedback,[`${l.value}-item-has-success`]:E.value==="success",[`${l.value}-item-has-warning`]:E.value==="warning",[`${l.value}-item-has-error`]:E.value==="error",[`${l.value}-item-is-validating`]:E.value==="validating",[`${l.value}-item-hidden`]:e.hidden})),B=vt({});ln.useProvide(B),Le(()=>{let U;if(e.hasFeedback){const X=E.value&&_j[E.value];U=X?f("span",{class:te(`${l.value}-item-feedback-icon`,`${l.value}-item-feedback-icon-${E.value}`)},[f(X,null,null)]):null}v(B,{status:E.value,hasFeedback:e.hasFeedback,feedbackIcon:U,isFormItemInput:!0})});const L=Y(null),j=Y(!1),K=()=>{if(u.value){const U=getComputedStyle(u.value);L.value=parseInt(U.marginBottom,10)}};Ve(()=>{ue(j,()=>{j.value&&K()},{flush:"post",immediate:!0})});const G=U=>{U||(L.value=null)};return()=>{var U,X;if(e.noStyle)return(U=n.default)===null||U===void 0?void 0:U.call(n);const ee=(X=e.help)!==null&&X!==void 0?X:n.help?Tt(n.help()):null,oe=!!(ee!=null&&Array.isArray(ee)&&ee.length||R.value.length);return j.value=oe,i(f("div",{class:[k.value,oe?`${l.value}-item-with-help`:"",o.class],ref:u},[f(T4,N(N({},o),{},{class:`${l.value}-row`,key:"row"}),{default:()=>{var Q,W;return f(nt,null,[f(mj,N(N({},e),{},{htmlFor:H.value,required:O.value,requiredMark:c.requiredMark.value,prefixCls:l.value,onClick:T,label:e.label}),{label:n.label,tooltip:n.tooltip}),f(Mj,N(N({},e),{},{errors:ee!=null?ir(ee):R.value,marginBottom:L.value,prefixCls:l.value,status:E.value,ref:m,help:ee,extra:(Q=e.extra)!==null&&Q!==void 0?Q:(W=n.extra)===null||W===void 0?void 0:W.call(n),onErrorVisibleChanged:G}),{default:n.default})])}}),!!L.value&&f("div",{class:`${l.value}-margin-offset`,style:{marginBottom:`-${L.value}px`}},null)]))}}});function B4(e){let t=!1,n=e.length;const o=[];return e.length?new Promise((r,a)=>{e.forEach((l,i)=>{l.catch(s=>(t=!0,s)).then(s=>{n-=1,o[i]=s,!(n>0)&&(t&&a(o),r(o))})})}):Promise.resolve([])}function ny(e){let t=!1;return e&&e.length&&e.every(n=>n.required?(t=!0,!1):!0),t}function oy(e){return e==null?[]:Array.isArray(e)?e:[e]}function $d(e,t,n){let o=e;t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,"");const r=t.split(".");let a=0;for(let l=r.length;a1&&arguments[1]!==void 0?arguments[1]:Z({}),n=arguments.length>2?arguments[2]:void 0;const o=Zi(Lt(e)),r=vt({}),a=Y([]),l=$=>{v(Lt(e),v(v({},Zi(o)),$)),lt(()=>{Object.keys(r).forEach(x=>{r[x]={autoLink:!1,required:ny(Lt(t)[x])}})})},i=function(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],x=arguments.length>1?arguments[1]:void 0;return x.length?$.filter(C=>{const O=oy(C.trigger||"change");return zI(O,x).length}):$};let s=null;const u=function($){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},C=arguments.length>2?arguments[2]:void 0;const O=[],w={};for(let _=0;_<$.length;_++){const D=$[_],F=$d(Lt(e),D,C);if(!F.isValid)continue;w[D]=F.v;const z=i(Lt(t)[D],oy(x&&x.trigger));z.length&&O.push(c(D,F.v,z,x||{}).then(()=>({name:D,errors:[],warnings:[]})).catch(H=>{const T=[],A=[];return H.forEach(R=>{let{rule:{warningOnly:E},errors:k}=R;E?A.push(...k):T.push(...k)}),T.length?Promise.reject({name:D,errors:T,warnings:A}):{name:D,errors:T,warnings:A}}))}const M=B4(O);s=M;const I=M.then(()=>s===M?Promise.resolve(w):Promise.reject([])).catch(_=>{const D=_.filter(F=>F&&F.errors.length);return Promise.reject({values:w,errorFields:D,outOfDate:s!==M})});return I.catch(_=>_),I},c=function($,x,C){let O=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const w=A4([$],x,C,v({validateMessages:lu},O),!!O.validateFirst);return r[$]?(r[$].validateStatus="validating",w.catch(M=>M).then(function(){let M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];var I;if(r[$].validateStatus==="validating"){const _=M.filter(D=>D&&D.errors.length);r[$].validateStatus=_.length?"error":"success",r[$].help=_.length?_.map(D=>D.errors):null,(I=n==null?void 0:n.onValidate)===null||I===void 0||I.call(n,$,!_.length,_.length?_t(r[$].help[0]):null)}}),w):w.catch(M=>M)},d=($,x)=>{let C=[],O=!0;$?Array.isArray($)?C=$:C=[$]:(O=!1,C=a.value);const w=u(C,x||{},O);return w.catch(M=>M),w},p=$=>{let x=[];$?Array.isArray($)?x=$:x=[$]:x=a.value,x.forEach(C=>{r[C]&&v(r[C],{validateStatus:"",help:null})})},g=$=>{const x={autoLink:!1},C=[],O=Array.isArray($)?$:[$];for(let w=0;w{const x=[];a.value.forEach(C=>{const O=$d($,C,!1),w=$d(m,C,!1);(h&&(n==null?void 0:n.immediate)&&O.isValid||!vv(O.v,w.v))&&x.push(C)}),d(x,{trigger:"change"}),h=!1,m=Zi(_t($))},y=n==null?void 0:n.debounce;let S=!0;return ue(t,()=>{a.value=t?Object.keys(Lt(t)):[],!S&&n&&n.validateOnRuleChange&&d(),S=!1},{deep:!0,immediate:!0}),ue(a,()=>{const $={};a.value.forEach(x=>{$[x]=v({},r[x],{autoLink:!1,required:ny(Lt(t)[x])}),delete r[x]});for(const x in r)Object.prototype.hasOwnProperty.call(r,x)&&delete r[x];v(r,$)},{immediate:!0}),ue(e,y&&y.wait?hc(b,y.wait,eT(y,["wait"])):b,{immediate:n&&!!n.immediate,deep:!0}),{modelRef:e,rulesRef:t,initialModel:o,validateInfos:r,resetFields:l,validate:d,validateField:c,mergeValidateInfo:g,clearValidate:p}}const Bj=()=>({layout:V.oneOf(vn("horizontal","inline","vertical")),labelCol:Ne(),wrapperCol:Ne(),colon:Ce(),labelAlign:je(),labelWrap:Ce(),prefixCls:String,requiredMark:Ge([String,Boolean]),hideRequiredMark:Ce(),model:V.object,rules:Ne(),validateMessages:Ne(),validateOnRuleChange:Ce(),scrollToFirstError:xt(),onSubmit:de(),name:String,validateTrigger:Ge([String,Array]),size:je(),disabled:Ce(),onValuesChange:de(),onFieldsChange:de(),onFinish:de(),onFinishFailed:de(),onValidate:de()});function Fj(e,t){return vv(ir(e),ir(t))}const Pr=J({compatConfig:{MODE:3},name:"AForm",inheritAttrs:!1,props:rt(Bj(),{layout:"horizontal",hideRequiredMark:!1,colon:!0}),Item:Nj,useForm:kj,setup(e,t){let{emit:n,slots:o,expose:r,attrs:a}=t;const{prefixCls:l,direction:i,form:s,size:u,disabled:c}=Ee("form",e),d=P(()=>e.requiredMark===""||e.requiredMark),p=P(()=>{var R;return d.value!==void 0?d.value:s&&((R=s.value)===null||R===void 0?void 0:R.requiredMark)!==void 0?s.value.requiredMark:!e.hideRequiredMark});w2(u),HC(c);const g=P(()=>{var R,E;return(R=e.colon)!==null&&R!==void 0?R:(E=s.value)===null||E===void 0?void 0:E.colon}),{validateMessages:m}=m8(),h=P(()=>v(v(v({},lu),m.value),e.validateMessages)),[b,y]=uh(l),S=P(()=>te(l.value,{[`${l.value}-${e.layout}`]:!0,[`${l.value}-hide-required-mark`]:p.value===!1,[`${l.value}-rtl`]:i.value==="rtl",[`${l.value}-${u.value}`]:u.value},y.value)),$=Z(),x={},C=(R,E)=>{x[R]=E},O=R=>{delete x[R]},w=R=>{const E=!!R,k=E?ir(R).map(gp):[];return E?Object.values(x).filter(B=>k.findIndex(L=>Fj(L,B.fieldName.value))>-1):Object.values(x)},M=R=>{if(!e.model){yt();return}w(R).forEach(E=>{E.resetField()})},I=R=>{w(R).forEach(E=>{E.clearValidate()})},_=R=>{const{scrollToFirstError:E}=e;if(n("finishFailed",R),E&&R.errorFields.length){let k={};typeof E=="object"&&(k=E),F(R.errorFields[0].name,k)}},D=function(){return T(...arguments)},F=function(R){let E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const k=w(R?[R]:void 0);if(k.length){const B=k[0].fieldId.value,L=B?document.getElementById(B):null;L&&zM(L,v({scrollMode:"if-needed",block:"nearest"},E))}},z=function(){let R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(R===!0){const E=[];return Object.values(x).forEach(k=>{let{namePath:B}=k;E.push(B.value)}),J1(e.model,E)}else return J1(e.model,R)},H=(R,E)=>{if(yt(),!e.model)return yt(),Promise.reject("Form `model` is required for validateFields to work.");const k=!!R,B=k?ir(R).map(gp):[],L=[];Object.values(x).forEach(G=>{var U;if(k||B.push(G.namePath.value),!(!((U=G.rules)===null||U===void 0)&&U.value.length))return;const X=G.namePath.value;if(!k||tj(B,X)){const ee=G.validateRules(v({validateMessages:h.value},E));L.push(ee.then(()=>({name:X,errors:[],warnings:[]})).catch(oe=>{const Q=[],W=[];return oe.forEach(q=>{let{rule:{warningOnly:re},errors:le}=q;re?W.push(...le):Q.push(...le)}),Q.length?Promise.reject({name:X,errors:Q,warnings:W}):{name:X,errors:Q,warnings:W}}))}});const j=B4(L);$.value=j;const K=j.then(()=>$.value===j?Promise.resolve(z(B)):Promise.reject([])).catch(G=>{const U=G.filter(X=>X&&X.errors.length);return Promise.reject({values:z(B),errorFields:U,outOfDate:$.value!==j})});return K.catch(G=>G),K},T=function(){return H(...arguments)},A=R=>{R.preventDefault(),R.stopPropagation(),n("submit",R),e.model&&H().then(k=>{n("finish",k)}).catch(k=>{_(k)})};return r({resetFields:M,clearValidate:I,validateFields:H,getFieldsValue:z,validate:D,scrollToField:F}),N4({model:P(()=>e.model),name:P(()=>e.name),labelAlign:P(()=>e.labelAlign),labelCol:P(()=>e.labelCol),labelWrap:P(()=>e.labelWrap),wrapperCol:P(()=>e.wrapperCol),vertical:P(()=>e.layout==="vertical"),colon:g,requiredMark:p,validateTrigger:P(()=>e.validateTrigger),rules:P(()=>e.rules),addField:C,removeField:O,onValidate:(R,E,k)=>{n("validate",R,E,k)},validateMessages:h}),ue(()=>e.rules,()=>{e.validateOnRuleChange&&H()}),()=>{var R;return b(f("form",N(N({},a),{},{onSubmit:A,class:[S.value,a.class]}),[(R=o.default)===null||R===void 0?void 0:R.call(o)]))}}});Pr.useInjectFormItemContext=Ht;Pr.ItemRest=Ff;Pr.install=function(e){return e.component(Pr.name,Pr),e.component(Pr.Item.name,Pr.Item),e.component(Ff.name,Ff),e};const Lj=new Ue("antCheckboxEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),zj=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:v(v({},et(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:v(v({},et(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:v(v({},et(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:v({},Fo(e))},[`${t}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.checkboxSize/14*5,height:e.checkboxSize/14*8,border:`${e.lineWidthBold}px solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[t]:{"&-indeterminate":{[`${t}-inner`]:{"&:after":{top:"50%",insetInlineStart:"50%",width:e.fontSizeLG/2,height:e.fontSizeLG/2,backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${n}:hover ${t}:after`]:{visibility:"visible"},[` + ${n}:not(${n}-disabled), + ${t}:not(${t}-disabled) + `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}},"&:after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderRadius:e.borderRadiusSM,visibility:"hidden",border:`${e.lineWidthBold}px solid ${e.colorPrimary}`,animationName:Lj,animationDuration:e.motionDurationSlow,animationTimingFunction:"ease-in-out",animationFillMode:"backwards",content:'""',transition:`all ${e.motionDurationSlow}`}},[` + ${n}-checked:not(${n}-disabled), + ${t}-checked:not(${t}-disabled) + `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}:after`]:{borderColor:e.colorPrimaryHover}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function su(e,t){const n=ze(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[zj(n)]}const F4=Qe("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[su(n,e)]}),Hj=e=>{const{prefixCls:t,componentCls:n,antCls:o}=e,r=`${n}-menu-item`,a=` + &${r}-expand ${r}-expand-icon, + ${r}-loading-icon + `,l=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return[{[n]:{width:e.controlWidth}},{[`${n}-dropdown`]:[su(`${t}-checkbox`,e),{[`&${o}-select-dropdown`]:{padding:0}},{[n]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${n}-menu-empty`]:{[`${n}-menu`]:{width:"100%",height:"auto",[r]:{color:e.colorTextDisabled}}}},"&-menu":{flexGrow:1,minWidth:e.controlItemWidth,height:e.dropdownHeight,margin:0,padding:e.paddingXXS,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},"&-item":v(v({},mn),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:`${l}px ${e.paddingSM}px`,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover},"&-disabled":{color:e.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[a]:{color:e.colorTextDisabled}},[`&-active:not(${r}-disabled)`]:{"&, &:hover":{fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive}},"&-content":{flex:"auto"},[a]:{marginInlineStart:e.paddingXXS,color:e.colorTextDescription,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}})}}}]},{[`${n}-dropdown-rtl`]:{direction:"rtl"}},tl(e)]},jj=Qe("Cascader",e=>[Hj(e)],{controlWidth:184,controlItemWidth:111,dropdownHeight:180});var Vj=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rs===0?[i]:[...l,t,i],[]),r=[];let a=0;return o.forEach((l,i)=>{const s=a+l.length;let u=e.slice(a,s);a=s,i%2===1&&(u=f("span",{class:`${n}-menu-item-keyword`,key:"seperator"},[u])),r.push(u)}),r}const Kj=e=>{let{inputValue:t,path:n,prefixCls:o,fieldNames:r}=e;const a=[],l=t.toLowerCase();return n.forEach((i,s)=>{s!==0&&a.push(" / ");let u=i[r.label];const c=typeof u;(c==="string"||c==="number")&&(u=Wj(String(u),l,o)),a.push(u)}),a};function Gj(){return v(v({},qe(x4(),["customSlots","checkable","options"])),{multiple:{type:Boolean,default:void 0},size:String,bordered:{type:Boolean,default:void 0},placement:{type:String},suffixIcon:V.any,status:String,options:Array,popupClassName:String,dropdownClassName:String,"onUpdate:value":Function})}const Xj=J({compatConfig:{MODE:3},name:"ACascader",inheritAttrs:!1,props:rt(Gj(),{bordered:!0,choiceTransitionName:"",allowClear:!0}),setup(e,t){let{attrs:n,expose:o,slots:r,emit:a}=t;const l=Ht(),i=ln.useInject(),s=P(()=>Vo(i.status,e.status)),{prefixCls:u,rootPrefixCls:c,getPrefixCls:d,direction:p,getPopupContainer:g,renderEmpty:m,size:h,disabled:b}=Ee("cascader",e),y=P(()=>d("select",e.prefixCls)),{compactSize:S,compactItemClassnames:$}=fr(y,p),x=P(()=>S.value||h.value),C=gn(),O=P(()=>{var E;return(E=b.value)!==null&&E!==void 0?E:C.value}),[w,M]=cg(y),[I]=jj(u),_=P(()=>p.value==="rtl"),D=P(()=>{if(!e.showSearch)return e.showSearch;let E={render:Kj};return typeof e.showSearch=="object"&&(E=v(v({},E),e.showSearch)),E}),F=P(()=>te(e.popupClassName||e.dropdownClassName,`${u.value}-dropdown`,{[`${u.value}-dropdown-rtl`]:_.value},M.value)),z=Z();o({focus(){var E;(E=z.value)===null||E===void 0||E.focus()},blur(){var E;(E=z.value)===null||E===void 0||E.blur()}});const H=function(){for(var E=arguments.length,k=new Array(E),B=0;Be.showArrow!==void 0?e.showArrow:e.loading||!e.multiple),R=P(()=>e.placement!==void 0?e.placement:p.value==="rtl"?"bottomRight":"bottomLeft");return()=>{var E,k;const{notFoundContent:B=(E=r.notFoundContent)===null||E===void 0?void 0:E.call(r),expandIcon:L=(k=r.expandIcon)===null||k===void 0?void 0:k.call(r),multiple:j,bordered:K,allowClear:G,choiceTransitionName:U,transitionName:X,id:ee=l.id.value}=e,oe=Vj(e,["notFoundContent","expandIcon","multiple","bordered","allowClear","choiceTransitionName","transitionName","id"]),Q=B||m("Cascader");let W=L;L||(W=_.value?f(Wa,null,null):f(sr,null,null));const q=f("span",{class:`${y.value}-menu-item-loading-icon`},[f(Un,{spin:!0},null)]),{suffixIcon:re,removeIcon:le,clearIcon:ye}=lg(v(v({},e),{hasFeedback:i.hasFeedback,feedbackIcon:i.feedbackIcon,multiple:j,prefixCls:y.value,showArrow:A.value}),r);return I(w(f(oH,N(N(N({},oe),n),{},{id:ee,prefixCls:y.value,class:[u.value,{[`${y.value}-lg`]:x.value==="large",[`${y.value}-sm`]:x.value==="small",[`${y.value}-rtl`]:_.value,[`${y.value}-borderless`]:!K,[`${y.value}-in-form-item`]:i.isFormItemInput},Tn(y.value,s.value,i.hasFeedback),$.value,n.class,M.value],disabled:O.value,direction:p.value,placement:R.value,notFoundContent:Q,allowClear:G,showSearch:D.value,expandIcon:W,inputIcon:re,removeIcon:le,clearIcon:ye,loadingIcon:q,checkable:!!j,dropdownClassName:F.value,dropdownPrefixCls:u.value,choiceTransitionName:en(c.value,"",U),transitionName:en(c.value,Fv(R.value),X),getPopupContainer:g==null?void 0:g.value,customSlots:v(v({},r),{checkable:()=>f("span",{class:`${u.value}-checkbox-inner`},null)}),tagRender:e.tagRender||r.tagRender,displayRender:e.displayRender||r.displayRender,maxTagPlaceholder:e.maxTagPlaceholder||r.maxTagPlaceholder,showArrow:i.hasFeedback||e.showArrow,onChange:H,onBlur:T,ref:z}),r)))}}}),voe=Vt(v(Xj,{SHOW_CHILD:p4,SHOW_PARENT:f4})),Uj=()=>({name:String,prefixCls:String,options:ht([]),disabled:Boolean,id:String}),Yj=()=>v(v({},Uj()),{defaultValue:ht(),value:ht(),onChange:de(),"onUpdate:value":de()}),qj=()=>({prefixCls:String,defaultChecked:Ce(),checked:Ce(),disabled:Ce(),isGroup:Ce(),value:V.any,name:String,id:String,indeterminate:Ce(),type:je("checkbox"),autofocus:Ce(),onChange:de(),"onUpdate:checked":de(),onClick:de(),skipGroup:Ce(!1)}),Qj=()=>v(v({},qj()),{indeterminate:Ce(!1)}),L4=Symbol("CheckboxGroupContext");var ry=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r(m==null?void 0:m.disabled.value)||c.value);Le(()=>{!e.skipGroup&&m&&m.registerValue(h,e.value)}),Je(()=>{m&&m.cancelValue(h)}),Ve(()=>{yt(!!(e.checked!==void 0||m||e.value===void 0))});const y=C=>{const O=C.target.checked;n("update:checked",O),n("change",C),l.onFieldChange()},S=Z();return a({focus:()=>{var C;(C=S.value)===null||C===void 0||C.focus()},blur:()=>{var C;(C=S.value)===null||C===void 0||C.blur()}}),()=>{var C;const O=mt((C=r.default)===null||C===void 0?void 0:C.call(r)),{indeterminate:w,skipGroup:M,id:I=l.id.value}=e,_=ry(e,["indeterminate","skipGroup","id"]),{onMouseenter:D,onMouseleave:F,onInput:z,class:H,style:T}=o,A=ry(o,["onMouseenter","onMouseleave","onInput","class","style"]),R=v(v(v(v({},_),{id:I,prefixCls:s.value}),A),{disabled:b.value});m&&!M?(R.onChange=function(){for(var L=arguments.length,j=new Array(L),K=0;K`${i.value}-group`),[c,d]=F4(u),p=Z((e.value===void 0?e.defaultValue:e.value)||[]);ue(()=>e.value,()=>{p.value=e.value||[]});const g=P(()=>e.options.map(x=>typeof x=="string"||typeof x=="number"?{label:x,value:x}:x)),m=Z(Symbol()),h=Z(new Map),b=x=>{h.value.delete(x),m.value=Symbol()},y=(x,C)=>{h.value.set(x,C),m.value=Symbol()},S=Z(new Map);return ue(m,()=>{const x=new Map;for(const C of h.value.values())x.set(C,!0);S.value=x}),Ke(L4,{cancelValue:b,registerValue:y,toggleOption:x=>{const C=p.value.indexOf(x.value),O=[...p.value];C===-1?O.push(x.value):O.splice(C,1),e.value===void 0&&(p.value=O);const w=O.filter(M=>S.value.has(M)).sort((M,I)=>{const _=g.value.findIndex(F=>F.value===M),D=g.value.findIndex(F=>F.value===I);return _-D});r("update:value",w),r("change",w),l.onFieldChange()},mergedValue:p,name:P(()=>e.name),disabled:P(()=>e.disabled)}),a({mergedValue:p}),()=>{var x;const{id:C=l.id.value}=e;let O=null;return g.value&&g.value.length>0&&(O=g.value.map(w=>{var M;return f(No,{prefixCls:i.value,key:w.value.toString(),disabled:"disabled"in w?w.disabled:e.disabled,indeterminate:w.indeterminate,value:w.value,checked:p.value.indexOf(w.value)!==-1,onChange:w.onChange,class:`${u.value}-item`},{default:()=>[n.label!==void 0?(M=n.label)===null||M===void 0?void 0:M.call(n,w):w.label]})})),c(f("div",N(N({},o),{},{class:[u.value,{[`${u.value}-rtl`]:s.value==="rtl"},o.class,d.value],id:C}),[O||((x=n.default)===null||x===void 0?void 0:x.call(n))]))}}});No.Group=mp;No.install=function(e){return e.component(No.name,No),e.component(mp.name,mp),e};const goe=Vt(ih);let ps=v({},Gn.Modal);function Zj(e){e?ps=v(v({},ps),e):ps=v({},Gn.Modal)}function Jj(){return ps}const bp="internalMark",vs=J({compatConfig:{MODE:3},name:"ALocaleProvider",props:{locale:{type:Object},ANT_MARK__:String},setup(e,t){let{slots:n}=t;yt(e.ANT_MARK__===bp);const o=vt({antLocale:v(v({},e.locale),{exist:!0}),ANT_MARK__:bp});return Ke("localeData",o),ue(()=>e.locale,r=>{Zj(r&&r.Modal),o.antLocale=v(v({},r),{exist:!0})},{immediate:!0}),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}});vs.install=function(e){return e.component(vs.name,vs),e};const eV=Vt(vs),z4=J({name:"Notice",inheritAttrs:!1,props:["prefixCls","duration","updateMark","noticeKey","closeIcon","closable","props","onClick","onClose","holder","visible"],setup(e,t){let{attrs:n,slots:o}=t,r,a=!1;const l=P(()=>e.duration===void 0?4.5:e.duration),i=()=>{l.value&&!a&&(r=setTimeout(()=>{u()},l.value*1e3))},s=()=>{r&&(clearTimeout(r),r=null)},u=d=>{d&&d.stopPropagation(),s();const{onClose:p,noticeKey:g}=e;p&&p(g)},c=()=>{s(),i()};return Ve(()=>{i()}),An(()=>{a=!0,s()}),ue([l,()=>e.updateMark,()=>e.visible],(d,p)=>{let[g,m,h]=d,[b,y,S]=p;(g!==b||m!==y||h!==S&&S)&&c()},{flush:"post"}),()=>{var d,p;const{prefixCls:g,closable:m,closeIcon:h=(d=o.closeIcon)===null||d===void 0?void 0:d.call(o),onClick:b,holder:y}=e,{class:S,style:$}=n,x=`${g}-notice`,C=Object.keys(n).reduce((w,M)=>((M.startsWith("data-")||M.startsWith("aria-")||M==="role")&&(w[M]=n[M]),w),{}),O=f("div",N({class:te(x,S,{[`${x}-closable`]:m}),style:$,onMouseenter:s,onMouseleave:i,onClick:b},C),[f("div",{class:`${x}-content`},[(p=o.default)===null||p===void 0?void 0:p.call(o)]),m?f("a",{tabindex:0,onClick:u,class:`${x}-close`},[h||f("span",{class:`${x}-close-x`},null)]):null]);return y?f(Up,{to:y},{default:()=>O}):O}}});var tV=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{const{prefixCls:c,animation:d="fade"}=e;let p=e.transitionName;return!p&&d&&(p=`${c}-${d}`),Mc(p)}),s=(c,d)=>{const p=c.key||ly(),g=v(v({},c),{key:p}),{maxCount:m}=e,h=l.value.map(y=>y.notice.key).indexOf(p),b=l.value.concat();h!==-1?b.splice(h,1,{notice:g,holderCallback:d}):(m&&l.value.length>=m&&(g.key=b[0].notice.key,g.updateMark=ly(),g.userPassKey=p,b.shift()),b.push({notice:g,holderCallback:d})),l.value=b},u=c=>{l.value=l.value.filter(d=>{let{notice:{key:p,userPassKey:g}}=d;return(g||p)!==c})};return o({add:s,remove:u,notices:l}),()=>{var c;const{prefixCls:d,closeIcon:p=(c=r.closeIcon)===null||c===void 0?void 0:c.call(r,{prefixCls:d})}=e,g=l.value.map((h,b)=>{let{notice:y,holderCallback:S}=h;const $=b===l.value.length-1?y.updateMark:void 0,{key:x,userPassKey:C}=y,{content:O}=y,w=v(v(v({prefixCls:d,closeIcon:typeof p=="function"?p({prefixCls:d}):p},y),y.props),{key:x,noticeKey:C||x,updateMark:$,onClose:M=>{var I;u(M),(I=y.onClose)===null||I===void 0||I.call(y)},onClick:y.onClick});return S?f("div",{key:x,class:`${d}-hook-holder`,ref:M=>{typeof x>"u"||(M?(a.set(x,M),S(M,w)):a.delete(x))}},null):f(z4,N(N({},w),{},{class:te(w.class,e.hashId)}),{default:()=>[typeof O=="function"?O({prefixCls:d}):O]})}),m={[d]:1,[n.class]:!!n.class,[e.hashId]:!0};return f("div",{class:m,style:n.style||{top:"65px",left:"50%"}},[f(nc,N({tag:"div"},i.value),{default:()=>[g]})])}}});yp.newInstance=function(t,n){const o=t||{},{name:r="notification",getContainer:a,appContext:l,prefixCls:i,rootPrefixCls:s,transitionName:u,hasTransitionName:c,useStyle:d}=o,p=tV(o,["name","getContainer","appContext","prefixCls","rootPrefixCls","transitionName","hasTransitionName","useStyle"]),g=document.createElement("div");a?a().appendChild(g):document.body.appendChild(g);const m=J({compatConfig:{MODE:3},name:"NotificationWrapper",setup(b,y){let{attrs:S}=y;const $=Y(),x=P(()=>Xt.getPrefixCls(r,i)),[,C]=d(x);return Ve(()=>{n({notice(O){var w;(w=$.value)===null||w===void 0||w.add(O)},removeNotice(O){var w;(w=$.value)===null||w===void 0||w.remove(O)},destroy(){zr(null,g),g.parentNode&&g.parentNode.removeChild(g)},component:$})}),()=>{const O=Xt,w=O.getRootPrefixCls(s,x.value),M=c?u:`${x.value}-${u}`;return f(c3,N(N({},O),{},{prefixCls:w}),{default:()=>[f(yp,N(N({ref:$},S),{},{prefixCls:x.value,transitionName:M,hashId:C.value}),null)]})}}}),h=f(m,p);h.appContext=l||h.appContext,zr(h,g)};const H4=yp;let iy=0;const oV=Date.now();function sy(){const e=iy;return iy+=1,`rcNotification_${oV}_${e}`}const rV=J({name:"HookNotification",inheritAttrs:!1,props:["prefixCls","transitionName","animation","maxCount","closeIcon","hashId","remove","notices","getStyles","getClassName","onAllRemoved","getContainer"],setup(e,t){let{attrs:n,slots:o}=t;const r=new Map,a=P(()=>e.notices),l=P(()=>{let c=e.transitionName;if(!c&&e.animation)switch(typeof e.animation){case"string":c=e.animation;break;case"function":c=e.animation().name;break;case"object":c=e.animation.name;break;default:c=`${e.prefixCls}-fade`;break}return Mc(c)}),i=c=>e.remove(c),s=Z({});ue(a,()=>{const c={};Object.keys(s.value).forEach(d=>{c[d]=[]}),e.notices.forEach(d=>{const{placement:p="topRight"}=d.notice;p&&(c[p]=c[p]||[],c[p].push(d))}),s.value=c});const u=P(()=>Object.keys(s.value));return()=>{var c;const{prefixCls:d,closeIcon:p=(c=o.closeIcon)===null||c===void 0?void 0:c.call(o,{prefixCls:d})}=e,g=u.value.map(m=>{var h,b;const y=s.value[m],S=(h=e.getClassName)===null||h===void 0?void 0:h.call(e,m),$=(b=e.getStyles)===null||b===void 0?void 0:b.call(e,m),x=y.map((w,M)=>{let{notice:I,holderCallback:_}=w;const D=M===a.value.length-1?I.updateMark:void 0,{key:F,userPassKey:z}=I,{content:H}=I,T=v(v(v({prefixCls:d,closeIcon:typeof p=="function"?p({prefixCls:d}):p},I),I.props),{key:F,noticeKey:z||F,updateMark:D,onClose:A=>{var R;i(A),(R=I.onClose)===null||R===void 0||R.call(I)},onClick:I.onClick});return _?f("div",{key:F,class:`${d}-hook-holder`,ref:A=>{typeof F>"u"||(A?(r.set(F,A),_(A,T)):r.delete(F))}},null):f(z4,N(N({},T),{},{class:te(T.class,e.hashId)}),{default:()=>[typeof H=="function"?H({prefixCls:d}):H]})}),C={[d]:1,[`${d}-${m}`]:1,[n.class]:!!n.class,[e.hashId]:!0,[S]:!!S};function O(){var w;y.length>0||(Reflect.deleteProperty(s.value,m),(w=e.onAllRemoved)===null||w===void 0||w.call(e))}return f("div",{key:m,class:C,style:n.style||$||{top:"65px",left:"50%"}},[f(nc,N(N({tag:"div"},l.value),{},{onAfterLeave:O}),{default:()=>[x]})])});return f(X2,{getContainer:e.getContainer},{default:()=>[g]})}}}),aV=rV;var lV=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rdocument.body;let cy=0;function sV(){const e={};for(var t=arguments.length,n=new Array(t),o=0;o{r&&Object.keys(r).forEach(a=>{const l=r[a];l!==void 0&&(e[a]=l)})}),e}function j4(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{getContainer:t=iV,motion:n,prefixCls:o,maxCount:r,getClassName:a,getStyles:l,onAllRemoved:i}=e,s=lV(e,["getContainer","motion","prefixCls","maxCount","getClassName","getStyles","onAllRemoved"]),u=Y([]),c=Y(),d=(y,S)=>{const $=y.key||sy(),x=v(v({},y),{key:$}),C=u.value.map(w=>w.notice.key).indexOf($),O=u.value.concat();C!==-1?O.splice(C,1,{notice:x,holderCallback:S}):(r&&u.value.length>=r&&(x.key=O[0].notice.key,x.updateMark=sy(),x.userPassKey=$,O.shift()),O.push({notice:x,holderCallback:S})),u.value=O},p=y=>{u.value=u.value.filter(S=>{let{notice:{key:$,userPassKey:x}}=S;return(x||$)!==y})},g=()=>{u.value=[]},m=()=>f(aV,{ref:c,prefixCls:o,maxCount:r,notices:u.value,remove:p,getClassName:a,getStyles:l,animation:n,hashId:e.hashId,onAllRemoved:i,getContainer:t},null),h=Y([]),b={open:y=>{const S=sV(s,y);(S.key===null||S.key===void 0)&&(S.key=`vc-notification-${cy}`,cy+=1),h.value=[...h.value,{type:"open",config:S}]},close:y=>{h.value=[...h.value,{type:"close",key:y}]},destroy:()=>{h.value=[...h.value,{type:"destroy"}]}};return ue(h,()=>{h.value.length&&(h.value.forEach(y=>{switch(y.type){case"open":d(y.config);break;case"close":p(y.key);break;case"destroy":g();break}}),h.value=[])}),[b,m]}const cV=e=>{const{componentCls:t,iconCls:n,boxShadowSecondary:o,colorBgElevated:r,colorSuccess:a,colorError:l,colorWarning:i,colorInfo:s,fontSizeLG:u,motionEaseInOutCirc:c,motionDurationSlow:d,marginXS:p,paddingXS:g,borderRadiusLG:m,zIndexPopup:h,messageNoticeContentPadding:b}=e,y=new Ue("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:g,transform:"translateY(0)",opacity:1}}),S=new Ue("MessageMoveOut",{"0%":{maxHeight:e.height,padding:g,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}});return[{[t]:v(v({},et(e)),{position:"fixed",top:p,left:"50%",transform:"translateX(-50%)",width:"100%",pointerEvents:"none",zIndex:h,[`${t}-move-up`]:{animationFillMode:"forwards"},[` + ${t}-move-up-appear, + ${t}-move-up-enter + `]:{animationName:y,animationDuration:d,animationPlayState:"paused",animationTimingFunction:c},[` + ${t}-move-up-appear${t}-move-up-appear-active, + ${t}-move-up-enter${t}-move-up-enter-active + `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:S,animationDuration:d,animationPlayState:"paused",animationTimingFunction:c},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[`${t}-notice`]:{padding:g,textAlign:"center",[n]:{verticalAlign:"text-bottom",marginInlineEnd:p,fontSize:u},[`${t}-notice-content`]:{display:"inline-block",padding:b,background:r,borderRadius:m,boxShadow:o,pointerEvents:"all"},[`${t}-success ${n}`]:{color:a},[`${t}-error ${n}`]:{color:l},[`${t}-warning ${n}`]:{color:i},[` + ${t}-info ${n}, + ${t}-loading ${n}`]:{color:s}}},{[`${t}-notice-pure-panel`]:{padding:0,textAlign:"start"}}]},V4=Qe("Message",e=>{const t=ze(e,{messageNoticeContentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`});return[cV(t)]},e=>({height:150,zIndexPopup:e.zIndexPopupBase+10})),uV={info:f(nl,null,null),success:f(Wo,null,null),error:f(bn,null,null),warning:f(Ko,null,null),loading:f(Un,null,null)},dV=J({name:"PureContent",inheritAttrs:!1,props:["prefixCls","type","icon"],setup(e,t){let{slots:n}=t;return()=>{var o;return f("div",{class:te(`${e.prefixCls}-custom-content`,`${e.prefixCls}-${e.type}`)},[e.icon||uV[e.type],f("span",null,[(o=n.default)===null||o===void 0?void 0:o.call(n)])])}}});var fV=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);ra("message",e.prefixCls)),[,s]=V4(i),u=()=>{var h;const b=(h=e.top)!==null&&h!==void 0?h:pV;return{left:"50%",transform:"translateX(-50%)",top:typeof b=="number"?`${b}px`:b}},c=()=>te(s.value,e.rtl?`${i.value}-rtl`:""),d=()=>{var h;return Dv({prefixCls:i.value,animation:(h=e.animation)!==null&&h!==void 0?h:"move-up",transitionName:e.transitionName})},p=f("span",{class:`${i.value}-close-x`},[f(io,{class:`${i.value}-close-icon`},null)]),[g,m]=j4({getStyles:u,prefixCls:i.value,getClassName:c,motion:d,closable:!1,closeIcon:p,duration:(o=e.duration)!==null&&o!==void 0?o:vV,getContainer:(r=e.staticGetContainer)!==null&&r!==void 0?r:l.value,maxCount:e.maxCount,onAllRemoved:e.onAllRemoved});return n(v(v({},g),{prefixCls:i,hashId:s})),m}});let uy=0;function hV(e){const t=Y(null),n=Symbol("messageHolderKey"),o=s=>{var u;(u=t.value)===null||u===void 0||u.close(s)},r=s=>{if(!t.value){const C=()=>{};return C.then=()=>{},C}const{open:u,prefixCls:c,hashId:d}=t.value,p=`${c}-notice`,{content:g,icon:m,type:h,key:b,class:y,onClose:S}=s,$=fV(s,["content","icon","type","key","class","onClose"]);let x=b;return x==null&&(uy+=1,x=`antd-message-${uy}`),wT(C=>(u(v(v({},$),{key:x,content:()=>f(dV,{prefixCls:c,type:h,icon:typeof m=="function"?m():m},{default:()=>[typeof g=="function"?g():g]}),placement:"top",class:te(h&&`${p}-${h}`,d,y),onClose:()=>{S==null||S(),C()}})),()=>{o(x)}))},l={open:r,destroy:s=>{var u;s!==void 0?o(s):(u=t.value)===null||u===void 0||u.destroy()}};return["info","success","warning","error","loading"].forEach(s=>{const u=(c,d,p)=>{let g;c&&typeof c=="object"&&"content"in c?g=c:g={content:c};let m,h;typeof d=="function"?h=d:(m=d,h=p);const b=v(v({onClose:h,duration:m},g),{type:s});return r(b)};l[s]=u}),[l,()=>f(gV,N(N({key:n},e),{},{ref:t}),null)]}function mV(e){return hV(e)}let W4=3,K4,on,bV=1,G4="",X4="move-up",U4=!1,Y4=()=>document.body,q4,Q4=!1;function yV(){return bV++}function SV(e){e.top!==void 0&&(K4=e.top,on=null),e.duration!==void 0&&(W4=e.duration),e.prefixCls!==void 0&&(G4=e.prefixCls),e.getContainer!==void 0&&(Y4=e.getContainer,on=null),e.transitionName!==void 0&&(X4=e.transitionName,on=null,U4=!0),e.maxCount!==void 0&&(q4=e.maxCount,on=null),e.rtl!==void 0&&(Q4=e.rtl)}function $V(e,t){if(on){t(on);return}H4.newInstance({appContext:e.appContext,prefixCls:e.prefixCls||G4,rootPrefixCls:e.rootPrefixCls,transitionName:X4,hasTransitionName:U4,style:{top:K4},getContainer:Y4||e.getPopupContainer,maxCount:q4,name:"message",useStyle:V4},n=>{if(on){t(on);return}on=n,t(n)})}const Z4={info:nl,success:Wo,error:bn,warning:Ko,loading:Un},CV=Object.keys(Z4);function xV(e){const t=e.duration!==void 0?e.duration:W4,n=e.key||yV(),o=new Promise(a=>{const l=()=>(typeof e.onClose=="function"&&e.onClose(),a(!0));$V(e,i=>{i.notice({key:n,duration:t,style:e.style||{},class:e.class,content:s=>{let{prefixCls:u}=s;const c=Z4[e.type],d=c?f(c,null,null):"",p=te(`${u}-custom-content`,{[`${u}-${e.type}`]:e.type,[`${u}-rtl`]:Q4===!0});return f("div",{class:p},[typeof e.icon=="function"?e.icon():e.icon||d,f("span",null,[typeof e.content=="function"?e.content():e.content])])},onClose:l,onClick:e.onClick})})}),r=()=>{on&&on.removeNotice(n)};return r.then=(a,l)=>o.then(a,l),r.promise=o,r}function wV(e){return Object.prototype.toString.call(e)==="[object Object]"&&!!e.content}const ei={open:xV,config:SV,destroy(e){if(on)if(e){const{removeNotice:t}=on;t(e)}else{const{destroy:t}=on;t(),on=null}}};function OV(e,t){e[t]=(n,o,r)=>wV(n)?e.open(v(v({},n),{type:t})):(typeof o=="function"&&(r=o,o=void 0),e.open({content:n,duration:o,type:t,onClose:r}))}CV.forEach(e=>OV(ei,e));ei.warn=ei.warning;ei.useMessage=mV;const PV=ei,IV=e=>{const{componentCls:t,width:n,notificationMarginEdge:o}=e,r=new Ue("antNotificationTopFadeIn",{"0%":{marginTop:"-100%",opacity:0},"100%":{marginTop:0,opacity:1}}),a=new Ue("antNotificationBottomFadeIn",{"0%":{marginBottom:"-100%",opacity:0},"100%":{marginBottom:0,opacity:1}}),l=new Ue("antNotificationLeftFadeIn",{"0%":{right:{_skip_check_:!0,value:n},opacity:0},"100%":{right:{_skip_check_:!0,value:0},opacity:1}});return{[`&${t}-top, &${t}-bottom`]:{marginInline:0},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:r}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginInlineEnd:0,marginInlineStart:o,[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}}}},TV=e=>{const{iconCls:t,componentCls:n,boxShadowSecondary:o,fontSizeLG:r,notificationMarginBottom:a,borderRadiusLG:l,colorSuccess:i,colorInfo:s,colorWarning:u,colorError:c,colorTextHeading:d,notificationBg:p,notificationPadding:g,notificationMarginEdge:m,motionDurationMid:h,motionEaseInOut:b,fontSize:y,lineHeight:S,width:$,notificationIconSize:x}=e,C=`${n}-notice`,O=new Ue("antNotificationFadeIn",{"0%":{left:{_skip_check_:!0,value:$},opacity:0},"100%":{left:{_skip_check_:!0,value:0},opacity:1}}),w=new Ue("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:a,opacity:1},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[n]:v(v(v(v({},et(e)),{position:"fixed",zIndex:e.zIndexPopup,marginInlineEnd:m,[`${n}-hook-holder`]:{position:"relative"},[`&${n}-top, &${n}-bottom`]:{[`${n}-notice`]:{marginInline:"auto auto"}},[`&${n}-topLeft, &${n}-bottomLeft`]:{[`${n}-notice`]:{marginInlineEnd:"auto",marginInlineStart:0}},[`${n}-fade-enter, ${n}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:b,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${n}-fade-leave`]:{animationTimingFunction:b,animationFillMode:"both",animationDuration:h,animationPlayState:"paused"},[`${n}-fade-enter${n}-fade-enter-active, ${n}-fade-appear${n}-fade-appear-active`]:{animationName:O,animationPlayState:"running"},[`${n}-fade-leave${n}-fade-leave-active`]:{animationName:w,animationPlayState:"running"}}),IV(e)),{"&-rtl":{direction:"rtl",[`${n}-notice-btn`]:{float:"left"}}})},{[C]:{position:"relative",width:$,maxWidth:`calc(100vw - ${m*2}px)`,marginBottom:a,marginInlineStart:"auto",padding:g,overflow:"hidden",lineHeight:S,wordWrap:"break-word",background:p,borderRadius:l,boxShadow:o,[`${n}-close-icon`]:{fontSize:y,cursor:"pointer"},[`${C}-message`]:{marginBottom:e.marginXS,color:d,fontSize:r,lineHeight:e.lineHeightLG},[`${C}-description`]:{fontSize:y},[`&${C}-closable ${C}-message`]:{paddingInlineEnd:e.paddingLG},[`${C}-with-icon ${C}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.marginSM+x,fontSize:r},[`${C}-with-icon ${C}-description`]:{marginInlineStart:e.marginSM+x,fontSize:y},[`${C}-icon`]:{position:"absolute",fontSize:x,lineHeight:0,[`&-success${t}`]:{color:i},[`&-info${t}`]:{color:s},[`&-warning${t}`]:{color:u},[`&-error${t}`]:{color:c}},[`${C}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.wireframe?"transparent":e.colorFillContent}},[`${C}-btn`]:{float:"right",marginTop:e.marginSM}}},{[`${C}-pure-panel`]:{margin:0}}]},J4=Qe("Notification",e=>{const t=e.paddingMD,n=e.paddingLG,o=ze(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`,notificationMarginBottom:e.margin,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationIconSize:e.fontSizeLG*e.lineHeightLG,notificationCloseButtonSize:e.controlHeightLG*.55});return[TV(o)]},e=>({zIndexPopup:e.zIndexPopupBase+50,width:384}));function MV(e,t){return t||f("span",{class:`${e}-close-x`},[f(io,{class:`${e}-close-icon`},null)])}f(nl,null,null),f(Wo,null,null),f(bn,null,null),f(Ko,null,null),f(Un,null,null);const EV={success:Wo,info:nl,error:bn,warning:Ko};function _V(e){let{prefixCls:t,icon:n,type:o,message:r,description:a,btn:l}=e,i=null;if(n)i=f("span",{class:`${t}-icon`},[va(n)]);else if(o){const s=EV[o];i=f(s,{class:`${t}-icon ${t}-icon-${o}`},null)}return f("div",{class:te({[`${t}-with-icon`]:i}),role:"alert"},[i,f("div",{class:`${t}-message`},[r]),f("div",{class:`${t}-description`},[a]),l&&f("div",{class:`${t}-btn`},[l])])}function e3(e,t,n){let o;switch(t=typeof t=="number"?`${t}px`:t,n=typeof n=="number"?`${n}px`:n,e){case"top":o={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":o={left:0,top:t,bottom:"auto"};break;case"topRight":o={right:0,top:t,bottom:"auto"};break;case"bottom":o={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":o={left:0,top:"auto",bottom:n};break;default:o={right:0,top:"auto",bottom:n};break}return o}function DV(e){return{name:`${e}-fade`}}var AV=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);re.prefixCls||o("notification")),l=p=>{var g,m;return e3(p,(g=e.top)!==null&&g!==void 0?g:dy,(m=e.bottom)!==null&&m!==void 0?m:dy)},[,i]=J4(a),s=()=>te(i.value,{[`${a.value}-rtl`]:e.rtl}),u=()=>DV(a.value),[c,d]=j4({prefixCls:a.value,getStyles:l,getClassName:s,motion:u,closable:!0,closeIcon:MV(a.value),duration:RV,getContainer:()=>{var p,g;return((p=e.getPopupContainer)===null||p===void 0?void 0:p.call(e))||((g=r.value)===null||g===void 0?void 0:g.call(r))||document.body},maxCount:e.maxCount,hashId:i.value,onAllRemoved:e.onAllRemoved});return n(v(v({},c),{prefixCls:a.value,hashId:i})),d}});function kV(e){const t=Y(null),n=Symbol("notificationHolderKey"),o=i=>{if(!t.value)return;const{open:s,prefixCls:u,hashId:c}=t.value,d=`${u}-notice`,{message:p,description:g,icon:m,type:h,btn:b,class:y}=i,S=AV(i,["message","description","icon","type","btn","class"]);return s(v(v({placement:"topRight"},S),{content:()=>f(_V,{prefixCls:d,icon:typeof m=="function"?m():m,type:h,message:typeof p=="function"?p():p,description:typeof g=="function"?g():g,btn:typeof b=="function"?b():b},null),class:te(h&&`${d}-${h}`,c,y)}))},a={open:o,destroy:i=>{var s,u;i!==void 0?(s=t.value)===null||s===void 0||s.close(i):(u=t.value)===null||u===void 0||u.destroy()}};return["success","info","warning","error"].forEach(i=>{a[i]=s=>o(v(v({},s),{type:i}))}),[a,()=>f(NV,N(N({key:n},e),{},{ref:t}),null)]}function BV(e){return kV(e)}const Ir={};let t3=4.5,n3="24px",o3="24px",Sp="",r3="topRight",a3=()=>document.body,l3=null,$p=!1,i3;function FV(e){const{duration:t,placement:n,bottom:o,top:r,getContainer:a,closeIcon:l,prefixCls:i}=e;i!==void 0&&(Sp=i),t!==void 0&&(t3=t),n!==void 0&&(r3=n),o!==void 0&&(o3=typeof o=="number"?`${o}px`:o),r!==void 0&&(n3=typeof r=="number"?`${r}px`:r),a!==void 0&&(a3=a),l!==void 0&&(l3=l),e.rtl!==void 0&&($p=e.rtl),e.maxCount!==void 0&&(i3=e.maxCount)}function LV(e,t){let{prefixCls:n,placement:o=r3,getContainer:r=a3,top:a,bottom:l,closeIcon:i=l3,appContext:s}=e;const{getPrefixCls:u}=ZV(),c=u("notification",n||Sp),d=`${c}-${o}-${$p}`,p=Ir[d];if(p){Promise.resolve(p).then(m=>{t(m)});return}const g=te(`${c}-${o}`,{[`${c}-rtl`]:$p===!0});H4.newInstance({name:"notification",prefixCls:n||Sp,useStyle:J4,class:g,style:e3(o,a??n3,l??o3),appContext:s,getContainer:r,closeIcon:m=>{let{prefixCls:h}=m;return f("span",{class:`${h}-close-x`},[va(i,{},f(io,{class:`${h}-close-icon`},null))])},maxCount:i3,hasTransitionName:!0},m=>{Ir[d]=m,t(m)})}const zV={success:Sx,info:Cx,error:xx,warning:$x};function HV(e){const{icon:t,type:n,description:o,message:r,btn:a}=e,l=e.duration===void 0?t3:e.duration;LV(e,i=>{i.notice({content:s=>{let{prefixCls:u}=s;const c=`${u}-notice`;let d=null;if(t)d=()=>f("span",{class:`${c}-icon`},[va(t)]);else if(n){const p=zV[n];d=()=>f(p,{class:`${c}-icon ${c}-icon-${n}`},null)}return f("div",{class:d?`${c}-with-icon`:""},[d&&d(),f("div",{class:`${c}-message`},[!o&&d?f("span",{class:`${c}-message-single-line-auto-margin`},null):null,va(r)]),f("div",{class:`${c}-description`},[va(o)]),a?f("span",{class:`${c}-btn`},[va(a)]):null])},duration:l,closable:!0,onClose:e.onClose,onClick:e.onClick,key:e.key,style:e.style||{},class:e.class})})}const Ka={open:HV,close(e){Object.keys(Ir).forEach(t=>Promise.resolve(Ir[t]).then(n=>{n.removeNotice(e)}))},config:FV,destroy(){Object.keys(Ir).forEach(e=>{Promise.resolve(Ir[e]).then(t=>{t.destroy()}),delete Ir[e]})}},jV=["success","info","warning","error"];jV.forEach(e=>{Ka[e]=t=>Ka.open(v(v({},t),{type:e}))});Ka.warn=Ka.warning;Ka.useNotification=BV;const VV=Ka,WV=`-ant-${Date.now()}-${Math.random()}`;function KV(e,t){const n={},o=(l,i)=>{let s=l.clone();return s=(i==null?void 0:i(s))||s,s.toRgbString()},r=(l,i)=>{const s=new st(l),u=Bo(s.toRgbString());n[`${i}-color`]=o(s),n[`${i}-color-disabled`]=u[1],n[`${i}-color-hover`]=u[4],n[`${i}-color-active`]=u[6],n[`${i}-color-outline`]=s.clone().setAlpha(.2).toRgbString(),n[`${i}-color-deprecated-bg`]=u[0],n[`${i}-color-deprecated-border`]=u[2]};if(t.primaryColor){r(t.primaryColor,"primary");const l=new st(t.primaryColor),i=Bo(l.toRgbString());i.forEach((u,c)=>{n[`primary-${c+1}`]=u}),n["primary-color-deprecated-l-35"]=o(l,u=>u.lighten(35)),n["primary-color-deprecated-l-20"]=o(l,u=>u.lighten(20)),n["primary-color-deprecated-t-20"]=o(l,u=>u.tint(20)),n["primary-color-deprecated-t-50"]=o(l,u=>u.tint(50)),n["primary-color-deprecated-f-12"]=o(l,u=>u.setAlpha(u.getAlpha()*.12));const s=new st(i[0]);n["primary-color-active-deprecated-f-30"]=o(s,u=>u.setAlpha(u.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=o(s,u=>u.darken(2))}return t.successColor&&r(t.successColor,"success"),t.warningColor&&r(t.warningColor,"warning"),t.errorColor&&r(t.errorColor,"error"),t.infoColor&&r(t.infoColor,"info"),` + :root { + ${Object.keys(n).map(l=>`--${e}-${l}: ${n[l]};`).join(` +`)} + } + `.trim()}function GV(e,t){const n=KV(e,t);hn()?jl(n,`${WV}-dynamic-theme`):yt()}const XV=e=>{const[t,n]=Qr();return $f(P(()=>({theme:t.value,token:n.value,hashId:"",path:["ant-design-icons",e.value]})),()=>[{[`.${e.value}`]:v(v({},ai()),{[`.${e.value} .${e.value}-icon`]:{display:"block"}})}])};function UV(e,t){const n=P(()=>(e==null?void 0:e.value)||{}),o=P(()=>n.value.inherit===!1||!(t!=null&&t.value)?Es:t.value);return P(()=>{if(!(e!=null&&e.value))return t==null?void 0:t.value;const a=v({},o.value.components);return Object.keys(e.value.components||{}).forEach(l=>{a[l]=v(v({},a[l]),e.value.components[l])}),v(v(v({},o.value),n.value),{token:v(v({},o.value.token),n.value.token),components:a})})}var YV=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{v(Xt,dh),Xt.prefixCls=Ta(),Xt.iconPrefixCls=s3(),Xt.getPrefixCls=(e,t)=>t||(e?`${Xt.prefixCls}-${e}`:Xt.prefixCls),Xt.getRootPrefixCls=()=>Xt.prefixCls?Xt.prefixCls:Ta()});let Cd;const QV=e=>{Cd&&Cd(),Cd=Le(()=>{v(dh,vt(e)),v(Xt,vt(e))}),e.theme&&GV(Ta(),e.theme)},ZV=()=>({getPrefixCls:(e,t)=>t||(e?`${Ta()}-${e}`:Ta()),getIconPrefixCls:s3,getRootPrefixCls:()=>Xt.prefixCls?Xt.prefixCls:Ta()}),_l=J({compatConfig:{MODE:3},name:"AConfigProvider",inheritAttrs:!1,props:b8(),setup(e,t){let{slots:n}=t;const o=oc(),r=(T,A)=>{const{prefixCls:R="ant"}=e;if(A)return A;const E=R||o.getPrefixCls("");return T?`${E}-${T}`:E},a=P(()=>e.iconPrefixCls||o.iconPrefixCls.value||qp),l=P(()=>a.value!==o.iconPrefixCls.value),i=P(()=>{var T;return e.csp||((T=o.csp)===null||T===void 0?void 0:T.value)}),s=XV(a),u=UV(P(()=>e.theme),P(()=>{var T;return(T=o.theme)===null||T===void 0?void 0:T.value})),c=T=>(e.renderEmpty||n.renderEmpty||o.renderEmpty||BM)(T),d=P(()=>{var T,A;return(T=e.autoInsertSpaceInButton)!==null&&T!==void 0?T:(A=o.autoInsertSpaceInButton)===null||A===void 0?void 0:A.value}),p=P(()=>{var T;return e.locale||((T=o.locale)===null||T===void 0?void 0:T.value)});ue(p,()=>{dh.locale=p.value},{immediate:!0});const g=P(()=>{var T;return e.direction||((T=o.direction)===null||T===void 0?void 0:T.value)}),m=P(()=>{var T,A;return(T=e.space)!==null&&T!==void 0?T:(A=o.space)===null||A===void 0?void 0:A.value}),h=P(()=>{var T,A;return(T=e.virtual)!==null&&T!==void 0?T:(A=o.virtual)===null||A===void 0?void 0:A.value}),b=P(()=>{var T,A;return(T=e.dropdownMatchSelectWidth)!==null&&T!==void 0?T:(A=o.dropdownMatchSelectWidth)===null||A===void 0?void 0:A.value}),y=P(()=>{var T;return e.getTargetContainer!==void 0?e.getTargetContainer:(T=o.getTargetContainer)===null||T===void 0?void 0:T.value}),S=P(()=>{var T;return e.getPopupContainer!==void 0?e.getPopupContainer:(T=o.getPopupContainer)===null||T===void 0?void 0:T.value}),$=P(()=>{var T;return e.pageHeader!==void 0?e.pageHeader:(T=o.pageHeader)===null||T===void 0?void 0:T.value}),x=P(()=>{var T;return e.input!==void 0?e.input:(T=o.input)===null||T===void 0?void 0:T.value}),C=P(()=>{var T;return e.pagination!==void 0?e.pagination:(T=o.pagination)===null||T===void 0?void 0:T.value}),O=P(()=>{var T;return e.form!==void 0?e.form:(T=o.form)===null||T===void 0?void 0:T.value}),w=P(()=>{var T;return e.select!==void 0?e.select:(T=o.select)===null||T===void 0?void 0:T.value}),M=P(()=>e.componentSize),I=P(()=>e.componentDisabled),_=P(()=>{var T,A;return(T=e.wave)!==null&&T!==void 0?T:(A=o.wave)===null||A===void 0?void 0:A.value}),D={csp:i,autoInsertSpaceInButton:d,locale:p,direction:g,space:m,virtual:h,dropdownMatchSelectWidth:b,getPrefixCls:r,iconPrefixCls:a,theme:P(()=>{var T,A;return(T=u.value)!==null&&T!==void 0?T:(A=o.theme)===null||A===void 0?void 0:A.value}),renderEmpty:c,getTargetContainer:y,getPopupContainer:S,pageHeader:$,input:x,pagination:C,form:O,select:w,componentSize:M,componentDisabled:I,transformCellText:P(()=>e.transformCellText),wave:_},F=P(()=>{const T=u.value||{},{algorithm:A,token:R}=T,E=YV(T,["algorithm","token"]),k=A&&(!Array.isArray(A)||A.length>0)?e2(A):void 0;return v(v({},E),{theme:k,token:v(v({},xc),R)})}),z=P(()=>{var T,A;let R={};return p.value&&(R=((T=p.value.Form)===null||T===void 0?void 0:T.defaultValidateMessages)||((A=Gn.Form)===null||A===void 0?void 0:A.defaultValidateMessages)||{}),e.form&&e.form.validateMessages&&(R=v(v({},R),e.form.validateMessages)),R});y8(D),h8({validateMessages:z}),w2(M),HC(I);const H=T=>{var A,R;let E=l.value?s((A=n.default)===null||A===void 0?void 0:A.call(n)):(R=n.default)===null||R===void 0?void 0:R.call(n);if(e.theme){const k=function(){return E}();E=f(EM,{value:F.value},{default:()=>[k]})}return f(eV,{locale:p.value||T,ANT_MARK__:bp},{default:()=>[E]})};return Le(()=>{g.value&&(PV.config({rtl:g.value==="rtl"}),VV.config({rtl:g.value==="rtl"}))}),()=>f(Sv,{children:(T,A,R)=>H(R)},null)}});_l.config=QV;_l.install=function(e){e.component(_l.name,_l)};const c3=_l,JV=(e,t)=>{let{attrs:n,slots:o}=t;return f(qt,N(N({size:"small",type:"primary"},e),n),o)},eW=JV,Ki=(e,t,n)=>{const o=$T(n);return{[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${o}Bg`],borderColor:e[`color${o}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},tW=e=>Ms(e,(t,n)=>{let{textColor:o,lightBorderColor:r,lightColor:a,darkColor:l}=n;return{[`${e.componentCls}-${t}`]:{color:o,background:a,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:l,borderColor:l},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),nW=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:o,componentCls:r}=e,a=o-n,l=t-n;return{[r]:v(v({},et(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:`${e.tagLineHeight}px`,whiteSpace:"nowrap",background:e.tagDefaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",[`&${r}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.tagDefaultColor},[`${r}-close-icon`]:{marginInlineStart:l,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${r}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${r}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:a}}),[`${r}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},u3=Qe("Tag",e=>{const{fontSize:t,lineHeight:n,lineWidth:o,fontSizeIcon:r}=e,a=Math.round(t*n),l=e.fontSizeSM,i=a-o*2,s=e.colorFillAlter,u=e.colorText,c=ze(e,{tagFontSize:l,tagLineHeight:i,tagDefaultBg:s,tagDefaultColor:u,tagIconSize:r-2*o,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary});return[nW(c),tW(c),Ki(c,"success","Success"),Ki(c,"processing","Info"),Ki(c,"error","Error"),Ki(c,"warning","Warning")]}),oW=()=>({prefixCls:String,checked:{type:Boolean,default:void 0},onChange:{type:Function},onClick:{type:Function},"onUpdate:checked":Function}),rW=J({compatConfig:{MODE:3},name:"ACheckableTag",inheritAttrs:!1,props:oW(),setup(e,t){let{slots:n,emit:o,attrs:r}=t;const{prefixCls:a}=Ee("tag",e),[l,i]=u3(a),s=c=>{const{checked:d}=e;o("update:checked",!d),o("change",!d),o("click",c)},u=P(()=>te(a.value,i.value,{[`${a.value}-checkable`]:!0,[`${a.value}-checkable-checked`]:e.checked}));return()=>{var c;return l(f("span",N(N({},r),{},{class:[u.value,r.class],onClick:s}),[(c=n.default)===null||c===void 0?void 0:c.call(n)]))}}}),Cp=rW,aW=()=>({prefixCls:String,color:{type:String},closable:{type:Boolean,default:!1},closeIcon:V.any,visible:{type:Boolean,default:void 0},onClose:{type:Function},onClick:Hr(),"onUpdate:visible":Function,icon:V.any,bordered:{type:Boolean,default:!0}}),Dl=J({compatConfig:{MODE:3},name:"ATag",inheritAttrs:!1,props:aW(),slots:Object,setup(e,t){let{slots:n,emit:o,attrs:r}=t;const{prefixCls:a,direction:l}=Ee("tag",e),[i,s]=u3(a),u=Y(!0);Le(()=>{e.visible!==void 0&&(u.value=e.visible)});const c=m=>{m.stopPropagation(),o("update:visible",!1),o("close",m),!m.defaultPrevented&&e.visible===void 0&&(u.value=!1)},d=P(()=>Wc(e.color)||lN(e.color)),p=P(()=>te(a.value,s.value,{[`${a.value}-${e.color}`]:d.value,[`${a.value}-has-color`]:e.color&&!d.value,[`${a.value}-hidden`]:!u.value,[`${a.value}-rtl`]:l.value==="rtl",[`${a.value}-borderless`]:!e.bordered})),g=m=>{o("click",m)};return()=>{var m,h,b;const{icon:y=(m=n.icon)===null||m===void 0?void 0:m.call(n),color:S,closeIcon:$=(h=n.closeIcon)===null||h===void 0?void 0:h.call(n),closable:x=!1}=e,C=()=>x?$?f("span",{class:`${a.value}-close-icon`,onClick:c},[$]):f(io,{class:`${a.value}-close-icon`,onClick:c},null):null,O={backgroundColor:S&&!d.value?S:void 0},w=y||null,M=(b=n.default)===null||b===void 0?void 0:b.call(n),I=w?f(nt,null,[w,f("span",null,[M])]):M,_=e.onClick!==void 0,D=f("span",N(N({},r),{},{onClick:g,class:[p.value,r.class],style:[O,r.style]}),[I,C()]);return i(_?f(Cg,null,{default:()=>[D]}):D)}}});Dl.CheckableTag=Cp;Dl.install=function(e){return e.component(Dl.name,Dl),e.component(Cp.name,Cp),e};const lW=Dl;function iW(e,t){let{slots:n,attrs:o}=t;return f(lW,N(N({color:"blue"},e),o),n)}var sW={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"};const cW=sW;function fy(e){for(var t=1;tD.value||M.value),[H,T]=Kw(C),A=Z();h({focus:()=>{var oe;(oe=A.value)===null||oe===void 0||oe.focus()},blur:()=>{var oe;(oe=A.value)===null||oe===void 0||oe.blur()}});const R=oe=>S.valueFormat?e.toString(oe,S.valueFormat):oe,E=(oe,Q)=>{const W=R(oe);y("update:value",W),y("change",W,Q),$.onFieldChange()},k=oe=>{y("update:open",oe),y("openChange",oe)},B=oe=>{y("focus",oe)},L=oe=>{y("blur",oe),$.onFieldBlur()},j=(oe,Q)=>{const W=R(oe);y("panelChange",W,Q)},K=oe=>{const Q=R(oe);y("ok",Q)},[G]=$o("DatePicker",Ps),U=P(()=>S.value?S.valueFormat?e.toDate(S.value,S.valueFormat):S.value:S.value===""?void 0:S.value),X=P(()=>S.defaultValue?S.valueFormat?e.toDate(S.defaultValue,S.valueFormat):S.defaultValue:S.defaultValue===""?void 0:S.defaultValue),ee=P(()=>S.defaultPickerValue?S.valueFormat?e.toDate(S.defaultPickerValue,S.valueFormat):S.defaultPickerValue:S.defaultPickerValue===""?void 0:S.defaultPickerValue);return()=>{var oe,Q,W,q,re,le;const ye=v(v({},G.value),S.locale),me=v(v({},S),b),{bordered:ce=!0,placeholder:se,suffixIcon:ie=(oe=m.suffixIcon)===null||oe===void 0?void 0:oe.call(m),showToday:fe=!0,transitionName:Se,allowClear:Ie=!0,dateRender:ge=m.dateRender,renderExtraFooter:Oe=m.renderExtraFooter,monthCellRender:we=m.monthCellRender||S.monthCellContentRender||m.monthCellContentRender,clearIcon:ae=(Q=m.clearIcon)===null||Q===void 0?void 0:Q.call(m),id:ne=$.id.value}=me,pe=hW(me,["bordered","placeholder","suffixIcon","showToday","transitionName","allowClear","dateRender","renderExtraFooter","monthCellRender","clearIcon","id"]),xe=me.showTime===""?!0:me.showTime,{format:Te}=me;let ke={};u&&(ke.picker=u);const ve=u||me.picker||"date";ke=v(v(v({},ke),xe?Qs(v({format:Te,picker:ve},typeof xe=="object"?xe:{})):{}),ve==="time"?Qs(v(v({format:Te},pe),{picker:ve})):{});const he=C.value,be=f(nt,null,[ie||(u==="time"?f(f3,null,null):f(d3,null,null)),x.hasFeedback&&x.feedbackIcon]);return H(f(XB,N(N(N({monthCellRender:we,dateRender:ge,renderExtraFooter:Oe,ref:A,placeholder:vW(ye,ve,se),suffixIcon:be,dropdownAlign:p3(O.value,S.placement),clearIcon:ae||f(bn,null,null),allowClear:Ie,transitionName:Se||`${I.value}-slide-up`},pe),ke),{},{id:ne,picker:ve,value:U.value,defaultValue:X.value,defaultPickerValue:ee.value,showToday:fe,locale:ye.lang,class:te({[`${he}-${z.value}`]:z.value,[`${he}-borderless`]:!ce},Tn(he,Vo(x.status,S.status),x.hasFeedback),b.class,T.value,F.value),disabled:_.value,prefixCls:he,getPopupContainer:b.getCalendarContainer||w.value,generateConfig:e,prevIcon:((W=m.prevIcon)===null||W===void 0?void 0:W.call(m))||f("span",{class:`${he}-prev-icon`},null),nextIcon:((q=m.nextIcon)===null||q===void 0?void 0:q.call(m))||f("span",{class:`${he}-next-icon`},null),superPrevIcon:((re=m.superPrevIcon)===null||re===void 0?void 0:re.call(m))||f("span",{class:`${he}-super-prev-icon`},null),superNextIcon:((le=m.superNextIcon)===null||le===void 0?void 0:le.call(m))||f("span",{class:`${he}-super-next-icon`},null),components:h3,direction:O.value,dropdownClassName:te(T.value,S.popupClassName,S.dropdownClassName),onChange:E,onOpenChange:k,onFocus:B,onBlur:L,onPanelChange:j,onOk:K}),null))}}})}const o=n(void 0,"ADatePicker"),r=n("week","AWeekPicker"),a=n("month","AMonthPicker"),l=n("year","AYearPicker"),i=n("time","TimePicker"),s=n("quarter","AQuarterPicker");return{DatePicker:o,WeekPicker:r,MonthPicker:a,YearPicker:l,TimePicker:i,QuarterPicker:s}}var bW={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"};const yW=bW;function vy(e){for(var t=1;tS.value||h.value),[C,O]=Kw(p),w=Z();a({focus:()=>{var B;(B=w.value)===null||B===void 0||B.focus()},blur:()=>{var B;(B=w.value)===null||B===void 0||B.blur()}});const M=B=>u.valueFormat?e.toString(B,u.valueFormat):B,I=(B,L)=>{const j=M(B);s("update:value",j),s("change",j,L),c.onFieldChange()},_=B=>{s("update:open",B),s("openChange",B)},D=B=>{s("focus",B)},F=B=>{s("blur",B),c.onFieldBlur()},z=(B,L)=>{const j=M(B);s("panelChange",j,L)},H=B=>{const L=M(B);s("ok",L)},T=(B,L,j)=>{const K=M(B);s("calendarChange",K,L,j)},[A]=$o("DatePicker",Ps),R=P(()=>u.value&&u.valueFormat?e.toDate(u.value,u.valueFormat):u.value),E=P(()=>u.defaultValue&&u.valueFormat?e.toDate(u.defaultValue,u.valueFormat):u.defaultValue),k=P(()=>u.defaultPickerValue&&u.valueFormat?e.toDate(u.defaultPickerValue,u.valueFormat):u.defaultPickerValue);return()=>{var B,L,j,K,G,U,X;const ee=v(v({},A.value),u.locale),oe=v(v({},u),i),{prefixCls:Q,bordered:W=!0,placeholder:q,suffixIcon:re=(B=l.suffixIcon)===null||B===void 0?void 0:B.call(l),picker:le="date",transitionName:ye,allowClear:me=!0,dateRender:ce=l.dateRender,renderExtraFooter:se=l.renderExtraFooter,separator:ie=(L=l.separator)===null||L===void 0?void 0:L.call(l),clearIcon:fe=(j=l.clearIcon)===null||j===void 0?void 0:j.call(l),id:Se=c.id.value}=oe,Ie=CW(oe,["prefixCls","bordered","placeholder","suffixIcon","picker","transitionName","allowClear","dateRender","renderExtraFooter","separator","clearIcon","id"]);delete Ie["onUpdate:value"],delete Ie["onUpdate:open"];const{format:ge,showTime:Oe}=oe;let we={};we=v(v(v({},we),Oe?Qs(v({format:ge,picker:le},Oe)):{}),le==="time"?Qs(v(v({format:ge},qe(Ie,["disabledTime"])),{picker:le})):{});const ae=p.value,ne=f(nt,null,[re||(le==="time"?f(f3,null,null):f(d3,null,null)),d.hasFeedback&&d.feedbackIcon]);return C(f(iF,N(N(N({dateRender:ce,renderExtraFooter:se,separator:ie||f("span",{"aria-label":"to",class:`${ae}-separator`},[f($W,null,null)]),ref:w,dropdownAlign:p3(g.value,u.placement),placeholder:gW(ee,le,q),suffixIcon:ne,clearIcon:fe||f(bn,null,null),allowClear:me,transitionName:ye||`${b.value}-slide-up`},Ie),we),{},{disabled:y.value,id:Se,value:R.value,defaultValue:E.value,defaultPickerValue:k.value,picker:le,class:te({[`${ae}-${x.value}`]:x.value,[`${ae}-borderless`]:!W},Tn(ae,Vo(d.status,u.status),d.hasFeedback),i.class,O.value,$.value),locale:ee.lang,prefixCls:ae,getPopupContainer:i.getCalendarContainer||m.value,generateConfig:e,prevIcon:((K=l.prevIcon)===null||K===void 0?void 0:K.call(l))||f("span",{class:`${ae}-prev-icon`},null),nextIcon:((G=l.nextIcon)===null||G===void 0?void 0:G.call(l))||f("span",{class:`${ae}-next-icon`},null),superPrevIcon:((U=l.superPrevIcon)===null||U===void 0?void 0:U.call(l))||f("span",{class:`${ae}-super-prev-icon`},null),superNextIcon:((X=l.superNextIcon)===null||X===void 0?void 0:X.call(l))||f("span",{class:`${ae}-super-next-icon`},null),components:h3,direction:g.value,dropdownClassName:te(O.value,u.popupClassName,u.dropdownClassName),onChange:I,onOpenChange:_,onFocus:D,onBlur:F,onPanelChange:z,onOk:H,onCalendarChange:T}),null))}}})}const h3={button:eW,rangeItem:iW};function wW(e){return e?Array.isArray(e)?e:[e]:[]}function Qs(e){const{format:t,picker:n,showHour:o,showMinute:r,showSecond:a,use12Hours:l}=e,i=wW(t)[0],s=v({},e);return i&&typeof i=="string"&&(!i.includes("s")&&a===void 0&&(s.showSecond=!1),!i.includes("m")&&r===void 0&&(s.showMinute=!1),!i.includes("H")&&!i.includes("h")&&o===void 0&&(s.showHour=!1),(i.includes("a")||i.includes("A"))&&l===void 0&&(s.use12Hours=!0)),n==="time"?s:(typeof i=="function"&&delete s.format,{showTime:s})}function m3(e,t){const{DatePicker:n,WeekPicker:o,MonthPicker:r,YearPicker:a,TimePicker:l,QuarterPicker:i}=mW(e,t),s=xW(e,t);return{DatePicker:n,WeekPicker:o,MonthPicker:r,YearPicker:a,TimePicker:l,QuarterPicker:i,RangePicker:s}}const{DatePicker:xd,WeekPicker:wd,MonthPicker:Od,YearPicker:OW,TimePicker:PW,QuarterPicker:Pd,RangePicker:Id}=m3(vw),hoe=v(xd,{WeekPicker:wd,MonthPicker:Od,YearPicker:OW,RangePicker:Id,TimePicker:PW,QuarterPicker:Pd,install:e=>(e.component(xd.name,xd),e.component(Id.name,Id),e.component(Od.name,Od),e.component(wd.name,wd),e.component(Pd.name,Pd),e)});function Gi(e){return e!=null}const IW=e=>{const{itemPrefixCls:t,component:n,span:o,labelStyle:r,contentStyle:a,bordered:l,label:i,content:s,colon:u}=e,c=n;return l?f(c,{class:[{[`${t}-item-label`]:Gi(i),[`${t}-item-content`]:Gi(s)}],colSpan:o},{default:()=>[Gi(i)&&f("span",{style:r},[i]),Gi(s)&&f("span",{style:a},[s])]}):f(c,{class:[`${t}-item`],colSpan:o},{default:()=>[f("div",{class:`${t}-item-container`},[(i||i===0)&&f("span",{class:[`${t}-item-label`,{[`${t}-item-no-colon`]:!u}],style:r},[i]),(s||s===0)&&f("span",{class:`${t}-item-content`,style:a},[s])])]})},Td=IW,TW=e=>{const t=(u,c,d)=>{let{colon:p,prefixCls:g,bordered:m}=c,{component:h,type:b,showLabel:y,showContent:S,labelStyle:$,contentStyle:x}=d;return u.map((C,O)=>{var w,M;const I=C.props||{},{prefixCls:_=g,span:D=1,labelStyle:F=I["label-style"],contentStyle:z=I["content-style"],label:H=(M=(w=C.children)===null||w===void 0?void 0:w.label)===null||M===void 0?void 0:M.call(w)}=I,T=bc(C),A=KT(C),R=NC(C),{key:E}=C;return typeof h=="string"?f(Td,{key:`${b}-${String(E)||O}`,class:A,style:R,labelStyle:v(v({},$),F),contentStyle:v(v({},x),z),span:D,colon:p,component:h,itemPrefixCls:_,bordered:m,label:y?H:null,content:S?T:null},null):[f(Td,{key:`label-${String(E)||O}`,class:A,style:v(v(v({},$),R),F),span:1,colon:p,component:h[0],itemPrefixCls:_,bordered:m,label:H},null),f(Td,{key:`content-${String(E)||O}`,class:A,style:v(v(v({},x),R),z),span:D*2-1,component:h[1],itemPrefixCls:_,bordered:m,content:T},null)]})},{prefixCls:n,vertical:o,row:r,index:a,bordered:l}=e,{labelStyle:i,contentStyle:s}=Xe(y3,{labelStyle:Z({}),contentStyle:Z({})});return o?f(nt,null,[f("tr",{key:`label-${a}`,class:`${n}-row`},[t(r,e,{component:"th",type:"label",showLabel:!0,labelStyle:i.value,contentStyle:s.value})]),f("tr",{key:`content-${a}`,class:`${n}-row`},[t(r,e,{component:"td",type:"content",showContent:!0,labelStyle:i.value,contentStyle:s.value})])]):f("tr",{key:a,class:`${n}-row`},[t(r,e,{component:l?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0,labelStyle:i.value,contentStyle:s.value})])},MW=TW,EW=e=>{const{componentCls:t,descriptionsSmallPadding:n,descriptionsDefaultPadding:o,descriptionsMiddlePadding:r,descriptionsBg:a}=e;return{[`&${t}-bordered`]:{[`${t}-view`]:{border:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto",borderCollapse:"collapse"}},[`${t}-item-label, ${t}-item-content`]:{padding:o,borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`${t}-item-label`]:{backgroundColor:a,"&::after":{display:"none"}},[`${t}-row`]:{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBottom:"none"}},[`&${t}-middle`]:{[`${t}-item-label, ${t}-item-content`]:{padding:r}},[`&${t}-small`]:{[`${t}-item-label, ${t}-item-content`]:{padding:n}}}}},_W=e=>{const{componentCls:t,descriptionsExtraColor:n,descriptionItemPaddingBottom:o,descriptionsItemLabelColonMarginRight:r,descriptionsItemLabelColonMarginLeft:a,descriptionsTitleMarginBottom:l}=e;return{[t]:v(v(v({},et(e)),EW(e)),{"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:l},[`${t}-title`]:v(v({},mn),{flex:"auto",color:e.colorText,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:"auto",color:n,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed"}},[`${t}-row`]:{"> th, > td":{paddingBottom:o},"&:last-child":{borderBottom:"none"}},[`${t}-item-label`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${a}px ${r}px`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}},DW=Qe("Descriptions",e=>{const t=e.colorFillAlter,n=e.fontSizeSM*e.lineHeightSM,o=e.colorText,r=`${e.paddingXS}px ${e.padding}px`,a=`${e.padding}px ${e.paddingLG}px`,l=`${e.paddingSM}px ${e.paddingLG}px`,i=e.padding,s=e.marginXS,u=e.marginXXS/2,c=ze(e,{descriptionsBg:t,descriptionsTitleMarginBottom:n,descriptionsExtraColor:o,descriptionItemPaddingBottom:i,descriptionsSmallPadding:r,descriptionsDefaultPadding:a,descriptionsMiddlePadding:l,descriptionsItemLabelColonMarginRight:s,descriptionsItemLabelColonMarginLeft:u});return[_W(c)]});V.any;const AW=()=>({prefixCls:String,label:V.any,labelStyle:{type:Object,default:void 0},contentStyle:{type:Object,default:void 0},span:{type:Number,default:1}}),RW=J({compatConfig:{MODE:3},name:"ADescriptionsItem",props:AW(),setup(e,t){let{slots:n}=t;return()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}),b3={xxxl:3,xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};function NW(e,t){if(typeof e=="number")return e;if(typeof e=="object")for(let n=0;n<_r.length;n++){const o=_r[n];if(t[o]&&e[o]!==void 0)return e[o]||b3[o]}return 3}function gy(e,t,n){let o=e;return(n===void 0||n>t)&&(o=ut(e,{span:t}),yt()),o}function kW(e,t){const n=mt(e),o=[];let r=[],a=t;return n.forEach((l,i)=>{var s;const u=(s=l.props)===null||s===void 0?void 0:s.span,c=u||1;if(i===n.length-1){r.push(gy(l,a,u)),o.push(r);return}c({prefixCls:String,bordered:{type:Boolean,default:void 0},size:{type:String,default:"default"},title:V.any,extra:V.any,column:{type:[Number,Object],default:()=>b3},layout:String,colon:{type:Boolean,default:void 0},labelStyle:{type:Object,default:void 0},contentStyle:{type:Object,default:void 0}}),y3=Symbol("descriptionsContext"),pa=J({compatConfig:{MODE:3},name:"ADescriptions",inheritAttrs:!1,props:BW(),slots:Object,Item:RW,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:a}=Ee("descriptions",e);let l;const i=Z({}),[s,u]=DW(r),c=yg();Xp(()=>{l=c.value.subscribe(p=>{typeof e.column=="object"&&(i.value=p)})}),Je(()=>{c.value.unsubscribe(l)}),Ke(y3,{labelStyle:Be(e,"labelStyle"),contentStyle:Be(e,"contentStyle")});const d=P(()=>NW(e.column,i.value));return()=>{var p,g,m;const{size:h,bordered:b=!1,layout:y="horizontal",colon:S=!0,title:$=(p=n.title)===null||p===void 0?void 0:p.call(n),extra:x=(g=n.extra)===null||g===void 0?void 0:g.call(n)}=e,C=(m=n.default)===null||m===void 0?void 0:m.call(n),O=kW(C,d.value);return s(f("div",N(N({},o),{},{class:[r.value,{[`${r.value}-${h}`]:h!=="default",[`${r.value}-bordered`]:!!b,[`${r.value}-rtl`]:a.value==="rtl"},o.class,u.value]}),[($||x)&&f("div",{class:`${r.value}-header`},[$&&f("div",{class:`${r.value}-title`},[$]),x&&f("div",{class:`${r.value}-extra`},[x])]),f("div",{class:`${r.value}-view`},[f("table",null,[f("tbody",null,[O.map((w,M)=>f(MW,{key:M,index:M,colon:S,prefixCls:r.value,vertical:y==="vertical",bordered:b,row:w},null))])])])]))}}});pa.install=function(e){return e.component(pa.name,pa),e.component(pa.Item.name,pa.Item),e};const moe=pa,FW=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:o,lineWidth:r}=e;return{[t]:v(v({},et(e)),{borderBlockStart:`${r}px solid ${o}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",margin:`0 ${e.dividerVerticalGutterMargin}px`,verticalAlign:"middle",borderTop:0,borderInlineStart:`${r}px solid ${o}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${o}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${r}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:"5%"},"&::after":{width:"95%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:"95%"},"&::after":{width:"5%"}},[`${t}-inner-text`]:{display:"inline-block",padding:"0 1em"},"&-dashed":{background:"none",borderColor:o,borderStyle:"dashed",borderWidth:`${r}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:r,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},LW=Qe("Divider",e=>{const t=ze(e,{dividerVerticalGutterMargin:e.marginXS,dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG});return[FW(t)]},{sizePaddingEdgeHorizontal:0}),zW=()=>({prefixCls:String,type:{type:String,default:"horizontal"},dashed:{type:Boolean,default:!1},orientation:{type:String,default:"center"},plain:{type:Boolean,default:!1},orientationMargin:[String,Number]}),HW=J({name:"ADivider",inheritAttrs:!1,compatConfig:{MODE:3},props:zW(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:a}=Ee("divider",e),[l,i]=LW(r),s=P(()=>e.orientation==="left"&&e.orientationMargin!=null),u=P(()=>e.orientation==="right"&&e.orientationMargin!=null),c=P(()=>{const{type:g,dashed:m,plain:h}=e,b=r.value;return{[b]:!0,[i.value]:!!i.value,[`${b}-${g}`]:!0,[`${b}-dashed`]:!!m,[`${b}-plain`]:!!h,[`${b}-rtl`]:a.value==="rtl",[`${b}-no-default-orientation-margin-left`]:s.value,[`${b}-no-default-orientation-margin-right`]:u.value}}),d=P(()=>{const g=typeof e.orientationMargin=="number"?`${e.orientationMargin}px`:e.orientationMargin;return v(v({},s.value&&{marginLeft:g}),u.value&&{marginRight:g})}),p=P(()=>e.orientation.length>0?"-"+e.orientation:e.orientation);return()=>{var g;const m=mt((g=n.default)===null||g===void 0?void 0:g.call(n));return l(f("div",N(N({},o),{},{class:[c.value,m.length?`${r.value}-with-text ${r.value}-with-text${p.value}`:"",o.class],role:"separator"}),[m.length?f("span",{class:`${r.value}-inner-text`,style:d.value},[m]):null]))}}}),boe=Vt(HW);ar.Button=Vs;ar.install=function(e){return e.component(ar.name,ar),e.component(Vs.name,Vs),e};const S3=()=>({prefixCls:String,width:V.oneOfType([V.string,V.number]),height:V.oneOfType([V.string,V.number]),style:{type:Object,default:void 0},class:String,rootClassName:String,rootStyle:Ne(),placement:{type:String},wrapperClassName:String,level:{type:[String,Array]},levelMove:{type:[Number,Function,Array]},duration:String,ease:String,showMask:{type:Boolean,default:void 0},maskClosable:{type:Boolean,default:void 0},maskStyle:{type:Object,default:void 0},afterVisibleChange:Function,keyboard:{type:Boolean,default:void 0},contentWrapperStyle:ht(),autofocus:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},motion:de(),maskMotion:Ne()}),jW=()=>v(v({},S3()),{forceRender:{type:Boolean,default:void 0},getContainer:V.oneOfType([V.string,V.func,V.object,V.looseBool])}),VW=()=>v(v({},S3()),{getContainer:Function,getOpenCount:Function,scrollLocker:V.any,inline:Boolean});function WW(e){return Array.isArray(e)?e:[e]}const KW={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"};Object.keys(KW).filter(e=>{if(typeof document>"u")return!1;const t=document.getElementsByTagName("html")[0];return e in(t?t.style:{})})[0];const GW=!(typeof window<"u"&&window.document&&window.document.createElement);var XW=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{lt(()=>{var y;const{open:S,getContainer:$,showMask:x,autofocus:C}=e,O=$==null?void 0:$();m(e),S&&(O&&(O.parentNode,document.body),lt(()=>{C&&c()}),x&&((y=e.scrollLocker)===null||y===void 0||y.lock()))})}),ue(()=>e.level,()=>{m(e)},{flush:"post"}),ue(()=>e.open,()=>{const{open:y,getContainer:S,scrollLocker:$,showMask:x,autofocus:C}=e,O=S==null?void 0:S();O&&(O.parentNode,document.body),y?(C&&c(),x&&($==null||$.lock())):$==null||$.unLock()},{flush:"post"}),An(()=>{var y;const{open:S}=e;S&&(document.body.style.touchAction=""),(y=e.scrollLocker)===null||y===void 0||y.unLock()}),ue(()=>e.placement,y=>{y&&(s.value=null)});const c=()=>{var y,S;(S=(y=a.value)===null||y===void 0?void 0:y.focus)===null||S===void 0||S.call(y)},d=y=>{n("close",y)},p=y=>{y.keyCode===$e.ESC&&(y.stopPropagation(),d(y))},g=()=>{const{open:y,afterVisibleChange:S}=e;S&&S(!!y)},m=y=>{let{level:S,getContainer:$}=y;if(GW)return;const x=$==null?void 0:$(),C=x?x.parentNode:null;u=[],S==="all"?(C?Array.prototype.slice.call(C.children):[]).forEach(w=>{w.nodeName!=="SCRIPT"&&w.nodeName!=="STYLE"&&w.nodeName!=="LINK"&&w!==x&&u.push(w)}):S&&WW(S).forEach(O=>{document.querySelectorAll(O).forEach(w=>{u.push(w)})})},h=y=>{n("handleClick",y)},b=Y(!1);return ue(a,()=>{lt(()=>{b.value=!0})}),()=>{var y,S;const{width:$,height:x,open:C,prefixCls:O,placement:w,level:M,levelMove:I,ease:_,duration:D,getContainer:F,onChange:z,afterVisibleChange:H,showMask:T,maskClosable:A,maskStyle:R,keyboard:E,getOpenCount:k,scrollLocker:B,contentWrapperStyle:L,style:j,class:K,rootClassName:G,rootStyle:U,maskMotion:X,motion:ee,inline:oe}=e,Q=XW(e,["width","height","open","prefixCls","placement","level","levelMove","ease","duration","getContainer","onChange","afterVisibleChange","showMask","maskClosable","maskStyle","keyboard","getOpenCount","scrollLocker","contentWrapperStyle","style","class","rootClassName","rootStyle","maskMotion","motion","inline"]),W=C&&b.value,q=te(O,{[`${O}-${w}`]:!0,[`${O}-open`]:W,[`${O}-inline`]:oe,"no-mask":!T,[G]:!0}),re=typeof ee=="function"?ee(w):ee;return f("div",N(N({},qe(Q,["autofocus"])),{},{tabindex:-1,class:q,style:U,ref:a,onKeydown:W&&E?p:void 0}),[f(rn,X,{default:()=>[T&&Kt(f("div",{class:`${O}-mask`,onClick:A?d:void 0,style:R,ref:l},null),[[Wn,W]])]}),f(rn,N(N({},re),{},{onAfterEnter:g,onAfterLeave:g}),{default:()=>[Kt(f("div",{class:`${O}-content-wrapper`,style:[L],ref:r},[f("div",{class:[`${O}-content`,K],style:j,ref:s},[(y=o.default)===null||y===void 0?void 0:y.call(o)]),o.handler?f("div",{onClick:h,ref:i},[(S=o.handler)===null||S===void 0?void 0:S.call(o)]):null]),[[Wn,W]])]})])}}}),hy=UW;var my=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{},showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",keyboard:!0,forceRender:!1,autofocus:!0}),emits:["handleClick","close"],setup(e,t){let{emit:n,slots:o}=t;const r=Z(null),a=i=>{n("handleClick",i)},l=i=>{n("close",i)};return()=>{const{getContainer:i,wrapperClassName:s,rootClassName:u,rootStyle:c,forceRender:d}=e,p=my(e,["getContainer","wrapperClassName","rootClassName","rootStyle","forceRender"]);let g=null;if(!i)return f(hy,N(N({},p),{},{rootClassName:u,rootStyle:c,open:e.open,onClose:l,onHandleClick:a,inline:!0}),o);const m=!!o.handler||d;return(m||e.open||r.value)&&(g=f(zv,{autoLock:!0,visible:e.open,forceRender:m,getContainer:i,wrapperClassName:s},{default:h=>{var{visible:b,afterClose:y}=h,S=my(h,["visible","afterClose"]);return f(hy,N(N(N({ref:r},p),S),{},{rootClassName:u,rootStyle:c,open:b!==void 0?b:e.open,afterVisibleChange:y!==void 0?y:e.afterVisibleChange,onClose:l,onHandleClick:a}),o)}})),g}}}),qW=YW,QW=e=>{const{componentCls:t,motionDurationSlow:n}=e,o={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${n}`}}};return{[t]:{[`${t}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${n}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${t}-panel-motion`]:{"&-left":[o,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[o,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[o,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[o,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}},ZW=e=>{const{componentCls:t,zIndexPopup:n,colorBgMask:o,colorBgElevated:r,motionDurationSlow:a,motionDurationMid:l,padding:i,paddingLG:s,fontSizeLG:u,lineHeightLG:c,lineWidth:d,lineType:p,colorSplit:g,marginSM:m,colorIcon:h,colorIconHover:b,colorText:y,fontWeightStrong:S,drawerFooterPaddingVertical:$,drawerFooterPaddingHorizontal:x}=e,C=`${t}-content-wrapper`;return{[t]:{position:"fixed",inset:0,zIndex:n,pointerEvents:"none","&-pure":{position:"relative",background:r,[`&${t}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${t}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${t}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${t}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${t}-mask`]:{position:"absolute",inset:0,zIndex:n,background:o,pointerEvents:"auto"},[C]:{position:"absolute",zIndex:n,transition:`all ${a}`,"&-hidden":{display:"none"}},[`&-left > ${C}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${C}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${C}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${C}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${t}-content`]:{width:"100%",height:"100%",overflow:"auto",background:r,pointerEvents:"auto"},[`${t}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${t}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${i}px ${s}px`,fontSize:u,lineHeight:c,borderBottom:`${d}px ${p} ${g}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${t}-extra`]:{flex:"none"},[`${t}-close`]:{display:"inline-block",marginInlineEnd:m,color:h,fontWeight:S,fontSize:u,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${l}`,textRendering:"auto","&:focus, &:hover":{color:b,textDecoration:"none"}},[`${t}-title`]:{flex:1,margin:0,color:y,fontWeight:e.fontWeightStrong,fontSize:u,lineHeight:c},[`${t}-body`]:{flex:1,minWidth:0,minHeight:0,padding:s,overflow:"auto"},[`${t}-footer`]:{flexShrink:0,padding:`${$}px ${x}px`,borderTop:`${d}px ${p} ${g}`},"&-rtl":{direction:"rtl"}}}},JW=Qe("Drawer",e=>{const t=ze(e,{drawerFooterPaddingVertical:e.paddingXS,drawerFooterPaddingHorizontal:e.padding});return[ZW(t),QW(t)]},e=>({zIndexPopup:e.zIndexPopupBase}));var eK=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({autofocus:{type:Boolean,default:void 0},closable:{type:Boolean,default:void 0},closeIcon:V.any,destroyOnClose:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},getContainer:{type:[String,Function,Boolean,Object],default:void 0},maskClosable:{type:Boolean,default:void 0},mask:{type:Boolean,default:void 0},maskStyle:Ne(),rootClassName:String,rootStyle:Ne(),size:{type:String},drawerStyle:Ne(),headerStyle:Ne(),bodyStyle:Ne(),contentWrapperStyle:{type:Object,default:void 0},title:V.any,visible:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},width:V.oneOfType([V.string,V.number]),height:V.oneOfType([V.string,V.number]),zIndex:Number,prefixCls:String,push:V.oneOfType([V.looseBool,{type:Object}]),placement:V.oneOf(tK),keyboard:{type:Boolean,default:void 0},extra:V.any,footer:V.any,footerStyle:Ne(),level:V.any,levelMove:{type:[Number,Array,Function]},handle:V.any,afterVisibleChange:Function,onAfterVisibleChange:Function,onAfterOpenChange:Function,"onUpdate:visible":Function,"onUpdate:open":Function,onClose:Function}),oK=J({compatConfig:{MODE:3},name:"ADrawer",inheritAttrs:!1,props:rt(nK(),{closable:!0,placement:"right",maskClosable:!0,mask:!0,level:null,keyboard:!0,push:by}),slots:Object,setup(e,t){let{emit:n,slots:o,attrs:r}=t;const a=Y(!1),l=Y(!1),i=Y(null),s=Y(!1),u=Y(!1),c=P(()=>{var k;return(k=e.open)!==null&&k!==void 0?k:e.visible});ue(c,()=>{c.value?s.value=!0:u.value=!1},{immediate:!0}),ue([c,s],()=>{c.value&&s.value&&(u.value=!0)},{immediate:!0});const d=Xe("parentDrawerOpts",null),{prefixCls:p,getPopupContainer:g,direction:m}=Ee("drawer",e),[h,b]=JW(p),y=P(()=>e.getContainer===void 0&&(g!=null&&g.value)?()=>g.value(document.body):e.getContainer);bt(!e.afterVisibleChange,"Drawer","`afterVisibleChange` prop is deprecated, please use `@afterVisibleChange` event instead"),Ke("parentDrawerOpts",{setPush:()=>{a.value=!0},setPull:()=>{a.value=!1,lt(()=>{x()})}}),Ve(()=>{c.value&&d&&d.setPush()}),An(()=>{d&&d.setPull()}),ue(u,()=>{d&&(u.value?d.setPush():d.setPull())},{flush:"post"});const x=()=>{var k,B;(B=(k=i.value)===null||k===void 0?void 0:k.domFocus)===null||B===void 0||B.call(k)},C=k=>{n("update:visible",!1),n("update:open",!1),n("close",k)},O=k=>{var B;k||(l.value===!1&&(l.value=!0),e.destroyOnClose&&(s.value=!1)),(B=e.afterVisibleChange)===null||B===void 0||B.call(e,k),n("afterVisibleChange",k),n("afterOpenChange",k)},w=P(()=>{const{push:k,placement:B}=e;let L;return typeof k=="boolean"?L=k?by.distance:0:L=k.distance,L=parseFloat(String(L||0)),B==="left"||B==="right"?`translateX(${B==="left"?L:-L}px)`:B==="top"||B==="bottom"?`translateY(${B==="top"?L:-L}px)`:null}),M=P(()=>{var k;return(k=e.width)!==null&&k!==void 0?k:e.size==="large"?736:378}),I=P(()=>{var k;return(k=e.height)!==null&&k!==void 0?k:e.size==="large"?736:378}),_=P(()=>{const{mask:k,placement:B}=e;if(!u.value&&!k)return{};const L={};return B==="left"||B==="right"?L.width=Ls(M.value)?`${M.value}px`:M.value:L.height=Ls(I.value)?`${I.value}px`:I.value,L}),D=P(()=>{const{zIndex:k,contentWrapperStyle:B}=e,L=_.value;return[{zIndex:k,transform:a.value?w.value:void 0},v({},B),L]}),F=k=>{const{closable:B,headerStyle:L}=e,j=Nt(o,e,"extra"),K=Nt(o,e,"title");return!K&&!B?null:f("div",{class:te(`${k}-header`,{[`${k}-header-close-only`]:B&&!K&&!j}),style:L},[f("div",{class:`${k}-header-title`},[z(k),K&&f("div",{class:`${k}-title`},[K])]),j&&f("div",{class:`${k}-extra`},[j])])},z=k=>{var B;const{closable:L}=e,j=o.closeIcon?(B=o.closeIcon)===null||B===void 0?void 0:B.call(o):e.closeIcon;return L&&f("button",{key:"closer",onClick:C,"aria-label":"Close",class:`${k}-close`},[j===void 0?f(io,null,null):j])},H=k=>{var B;if(l.value&&!e.forceRender&&!s.value)return null;const{bodyStyle:L,drawerStyle:j}=e;return f("div",{class:`${k}-wrapper-body`,style:j},[F(k),f("div",{key:"body",class:`${k}-body`,style:L},[(B=o.default)===null||B===void 0?void 0:B.call(o)]),T(k)])},T=k=>{const B=Nt(o,e,"footer");if(!B)return null;const L=`${k}-footer`;return f("div",{class:L,style:e.footerStyle},[B])},A=P(()=>te({"no-mask":!e.mask,[`${p.value}-rtl`]:m.value==="rtl"},e.rootClassName,b.value)),R=P(()=>bo(en(p.value,"mask-motion"))),E=k=>bo(en(p.value,`panel-motion-${k}`));return()=>{const{width:k,height:B,placement:L,mask:j,forceRender:K}=e,G=eK(e,["width","height","placement","mask","forceRender"]),U=v(v(v({},r),qe(G,["size","closeIcon","closable","destroyOnClose","drawerStyle","headerStyle","bodyStyle","title","push","onAfterVisibleChange","onClose","onUpdate:visible","onUpdate:open","visible"])),{forceRender:K,onClose:C,afterVisibleChange:O,handler:!1,prefixCls:p.value,open:u.value,showMask:j,placement:L,ref:i});return h(f(Yl,null,{default:()=>[f(qW,N(N({},U),{},{maskMotion:R.value,motion:E,width:M.value,height:I.value,getContainer:y.value,rootClassName:A.value,rootStyle:e.rootStyle,contentWrapperStyle:D.value}),{handler:e.handle?()=>e.handle:o.handle,default:()=>H(p.value)})]}))}}}),yoe=Vt(oK),Al=e=>e!=null&&(Array.isArray(e)?Tt(e).length:!0);function gh(e){return Al(e.prefix)||Al(e.suffix)||Al(e.allowClear)}function gs(e){return Al(e.addonBefore)||Al(e.addonAfter)}function xp(e){return typeof e>"u"||e===null?"":String(e)}function Rl(e,t,n,o){if(!n)return;const r=t;if(t.type==="click"){Object.defineProperty(r,"target",{writable:!0}),Object.defineProperty(r,"currentTarget",{writable:!0});const a=e.cloneNode(!0);r.target=a,r.currentTarget=a,a.value="",n(r);return}if(o!==void 0){Object.defineProperty(r,"target",{writable:!0}),Object.defineProperty(r,"currentTarget",{writable:!0}),r.target=e,r.currentTarget=e,e.value=o,n(r);return}n(r)}function $3(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const o=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}const rK=()=>({addonBefore:V.any,addonAfter:V.any,prefix:V.any,suffix:V.any,clearIcon:V.any,affixWrapperClassName:String,groupClassName:String,wrapperClassName:String,inputClassName:String,allowClear:{type:Boolean,default:void 0}}),C3=()=>v(v({},rK()),{value:{type:[String,Number,Symbol],default:void 0},defaultValue:{type:[String,Number,Symbol],default:void 0},inputElement:V.any,prefixCls:String,disabled:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},triggerFocus:Function,readonly:{type:Boolean,default:void 0},handleReset:Function,hidden:{type:Boolean,default:void 0}}),x3=()=>v(v({},C3()),{id:String,placeholder:{type:[String,Number]},autocomplete:String,type:je("text"),name:String,size:{type:String},autofocus:{type:Boolean,default:void 0},lazy:{type:Boolean,default:!0},maxlength:Number,loading:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},showCount:{type:[Boolean,Object]},htmlSize:Number,onPressEnter:Function,onKeydown:Function,onKeyup:Function,onFocus:Function,onBlur:Function,onChange:Function,onInput:Function,"onUpdate:value":Function,onCompositionstart:Function,onCompositionend:Function,valueModifiers:Object,hidden:{type:Boolean,default:void 0},status:String}),aK=J({name:"BaseInput",inheritAttrs:!1,props:C3(),setup(e,t){let{slots:n,attrs:o}=t;const r=Z(),a=i=>{var s;if(!((s=r.value)===null||s===void 0)&&s.contains(i.target)){const{triggerFocus:u}=e;u==null||u()}},l=()=>{var i;const{allowClear:s,value:u,disabled:c,readonly:d,handleReset:p,suffix:g=n.suffix,prefixCls:m}=e;if(!s)return null;const h=!c&&!d&&u,b=`${m}-clear-icon`,y=((i=n.clearIcon)===null||i===void 0?void 0:i.call(n))||"*";return f("span",{onClick:p,onMousedown:S=>S.preventDefault(),class:te({[`${b}-hidden`]:!h,[`${b}-has-suffix`]:!!g},b),role:"button",tabindex:-1},[y])};return()=>{var i,s;const{focused:u,value:c,disabled:d,allowClear:p,readonly:g,hidden:m,prefixCls:h,prefix:b=(i=n.prefix)===null||i===void 0?void 0:i.call(n),suffix:y=(s=n.suffix)===null||s===void 0?void 0:s.call(n),addonAfter:S=n.addonAfter,addonBefore:$=n.addonBefore,inputElement:x,affixWrapperClassName:C,wrapperClassName:O,groupClassName:w}=e;let M=ut(x,{value:c,hidden:m});if(gh({prefix:b,suffix:y,allowClear:p})){const I=`${h}-affix-wrapper`,_=te(I,{[`${I}-disabled`]:d,[`${I}-focused`]:u,[`${I}-readonly`]:g,[`${I}-input-with-clear-btn`]:y&&p&&c},!gs({addonAfter:S,addonBefore:$})&&o.class,C),D=(y||p)&&f("span",{class:`${h}-suffix`},[l(),y]);M=f("span",{class:_,style:o.style,hidden:!gs({addonAfter:S,addonBefore:$})&&m,onMousedown:a,ref:r},[b&&f("span",{class:`${h}-prefix`},[b]),ut(x,{style:null,value:c,hidden:null}),D])}if(gs({addonAfter:S,addonBefore:$})){const I=`${h}-group`,_=`${I}-addon`,D=te(`${h}-wrapper`,I,O),F=te(`${h}-group-wrapper`,o.class,w);return f("span",{class:F,style:o.style,hidden:m},[f("span",{class:D},[$&&f("span",{class:_},[$]),ut(M,{style:null,hidden:null}),S&&f("span",{class:_},[S])])])}return M}}});var lK=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);re.value,()=>{l.value=e.value}),ue(()=>e.disabled,()=>{e.disabled&&(i.value=!1)});const c=w=>{s.value&&$3(s.value,w)};r({focus:c,blur:()=>{var w;(w=s.value)===null||w===void 0||w.blur()},input:s,stateValue:l,setSelectionRange:(w,M,I)=>{var _;(_=s.value)===null||_===void 0||_.setSelectionRange(w,M,I)},select:()=>{var w;(w=s.value)===null||w===void 0||w.select()}});const m=w=>{a("change",w)},h=(w,M)=>{l.value!==w&&(e.value===void 0?l.value=w:lt(()=>{var I;s.value.value!==l.value&&((I=u.value)===null||I===void 0||I.$forceUpdate())}),lt(()=>{M&&M()}))},b=w=>{const{value:M,composing:I}=w.target;if((w.isComposing||I)&&e.lazy||l.value===M)return;const _=w.target.value;Rl(s.value,w,m),h(_)},y=w=>{w.keyCode===13&&a("pressEnter",w),a("keydown",w)},S=w=>{i.value=!0,a("focus",w)},$=w=>{i.value=!1,a("blur",w)},x=w=>{Rl(s.value,w,m),h("",()=>{c()})},C=()=>{var w,M;const{addonBefore:I=n.addonBefore,addonAfter:_=n.addonAfter,disabled:D,valueModifiers:F={},htmlSize:z,autocomplete:H,prefixCls:T,inputClassName:A,prefix:R=(w=n.prefix)===null||w===void 0?void 0:w.call(n),suffix:E=(M=n.suffix)===null||M===void 0?void 0:M.call(n),allowClear:k,type:B="text"}=e,L=qe(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","bordered","htmlSize","lazy","showCount","valueModifiers","showCount","affixWrapperClassName","groupClassName","inputClassName","wrapperClassName"]),j=v(v(v({},L),o),{autocomplete:H,onChange:b,onInput:b,onFocus:S,onBlur:$,onKeydown:y,class:te(T,{[`${T}-disabled`]:D},A,!gs({addonAfter:_,addonBefore:I})&&!gh({prefix:R,suffix:E,allowClear:k})&&o.class),ref:s,key:"ant-input",size:z,type:B});F.lazy&&delete j.onInput,j.autofocus||delete j.autofocus;const K=f("input",qe(j,["size"]),null);return Kt(K,[[si]])},O=()=>{var w;const{maxlength:M,suffix:I=(w=n.suffix)===null||w===void 0?void 0:w.call(n),showCount:_,prefixCls:D}=e,F=Number(M)>0;if(I||_){const z=[...xp(l.value)].length,H=typeof _=="object"?_.formatter({count:z,maxlength:M}):`${z}${F?` / ${M}`:""}`;return f(nt,null,[!!_&&f("span",{class:te(`${D}-show-count-suffix`,{[`${D}-show-count-has-suffix`]:!!I})},[H]),I])}return null};return Ve(()=>{}),()=>{const{prefixCls:w,disabled:M}=e,I=lK(e,["prefixCls","disabled"]);return f(aK,N(N(N({},I),o),{},{ref:u,prefixCls:w,inputElement:C(),handleReset:x,value:xp(l.value),focused:i.value,triggerFocus:c,suffix:O(),disabled:M}),n)}}}),cu=()=>qe(x3(),["wrapperClassName","groupClassName","inputClassName","affixWrapperClassName"]),w3=()=>v(v({},qe(cu(),["prefix","addonBefore","addonAfter","suffix"])),{rows:Number,autosize:{type:[Boolean,Object],default:void 0},autoSize:{type:[Boolean,Object],default:void 0},onResize:{type:Function},onCompositionstart:Hr(),onCompositionend:Hr(),valueModifiers:Object});var sK=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rVo(s.status,e.status)),{direction:c,prefixCls:d,size:p,autocomplete:g}=Ee("input",e),{compactSize:m,compactItemClassnames:h}=fr(d,c),b=P(()=>m.value||p.value),[y,S]=Yg(d),$=gn();r({focus:z=>{var H;(H=l.value)===null||H===void 0||H.focus(z)},blur:()=>{var z;(z=l.value)===null||z===void 0||z.blur()},input:l,setSelectionRange:(z,H,T)=>{var A;(A=l.value)===null||A===void 0||A.setSelectionRange(z,H,T)},select:()=>{var z;(z=l.value)===null||z===void 0||z.select()}});const M=Z([]),I=()=>{M.value.push(setTimeout(()=>{var z,H,T,A;!((z=l.value)===null||z===void 0)&&z.input&&((H=l.value)===null||H===void 0?void 0:H.input.getAttribute("type"))==="password"&&(!((T=l.value)===null||T===void 0)&&T.input.hasAttribute("value"))&&((A=l.value)===null||A===void 0||A.input.removeAttribute("value"))}))};Ve(()=>{I()}),Yp(()=>{M.value.forEach(z=>clearTimeout(z))}),Je(()=>{M.value.forEach(z=>clearTimeout(z))});const _=z=>{I(),a("blur",z),i.onFieldBlur()},D=z=>{I(),a("focus",z)},F=z=>{a("update:value",z.target.value),a("change",z),a("input",z),i.onFieldChange()};return()=>{var z,H,T,A,R,E;const{hasFeedback:k,feedbackIcon:B}=s,{allowClear:L,bordered:j=!0,prefix:K=(z=n.prefix)===null||z===void 0?void 0:z.call(n),suffix:G=(H=n.suffix)===null||H===void 0?void 0:H.call(n),addonAfter:U=(T=n.addonAfter)===null||T===void 0?void 0:T.call(n),addonBefore:X=(A=n.addonBefore)===null||A===void 0?void 0:A.call(n),id:ee=(R=i.id)===null||R===void 0?void 0:R.value}=e,oe=sK(e,["allowClear","bordered","prefix","suffix","addonAfter","addonBefore","id"]),Q=(k||G)&&f(nt,null,[G,k&&B]),W=d.value,q=gh({prefix:K,suffix:G})||!!k,re=n.clearIcon||(()=>f(bn,null,null));return y(f(iK,N(N(N({},o),qe(oe,["onUpdate:value","onChange","onInput"])),{},{onChange:F,id:ee,disabled:(E=e.disabled)!==null&&E!==void 0?E:$.value,ref:l,prefixCls:W,autocomplete:g.value,onBlur:_,onFocus:D,prefix:K,suffix:Q,allowClear:L,addonAfter:U&&f(Yl,null,{default:()=>[f(Fs,null,{default:()=>[U]})]}),addonBefore:X&&f(Yl,null,{default:()=>[f(Fs,null,{default:()=>[X]})]}),class:[o.class,h.value],inputClassName:te({[`${W}-sm`]:b.value==="small",[`${W}-lg`]:b.value==="large",[`${W}-rtl`]:c.value==="rtl",[`${W}-borderless`]:!j},!q&&Tn(W,u.value),S.value),affixWrapperClassName:te({[`${W}-affix-wrapper-sm`]:b.value==="small",[`${W}-affix-wrapper-lg`]:b.value==="large",[`${W}-affix-wrapper-rtl`]:c.value==="rtl",[`${W}-affix-wrapper-borderless`]:!j},Tn(`${W}-affix-wrapper`,u.value,k),S.value),wrapperClassName:te({[`${W}-group-rtl`]:c.value==="rtl"},S.value),groupClassName:te({[`${W}-group-wrapper-sm`]:b.value==="small",[`${W}-group-wrapper-lg`]:b.value==="large",[`${W}-group-wrapper-rtl`]:c.value==="rtl"},Tn(`${W}-group-wrapper`,u.value,k),S.value)}),v(v({},n),{clearIcon:re})))}}}),cK=J({compatConfig:{MODE:3},name:"AInputGroup",inheritAttrs:!1,props:{prefixCls:String,size:{type:String},compact:{type:Boolean,default:void 0}},setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:a,getPrefixCls:l}=Ee("input-group",e),i=ln.useInject();ln.useProvide(i,{isFormItemInput:!1});const s=P(()=>l("input")),[u,c]=Yg(s),d=P(()=>{const p=r.value;return{[`${p}`]:!0,[c.value]:!0,[`${p}-lg`]:e.size==="large",[`${p}-sm`]:e.size==="small",[`${p}-compact`]:e.compact,[`${p}-rtl`]:a.value==="rtl"}});return()=>{var p;return u(f("span",N(N({},o),{},{class:te(d.value,o.class)}),[(p=n.default)===null||p===void 0?void 0:p.call(n)]))}}});var uK=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{var C;(C=l.value)===null||C===void 0||C.focus()},blur:()=>{var C;(C=l.value)===null||C===void 0||C.blur()}});const c=C=>{a("update:value",C.target.value),C&&C.target&&C.type==="click"&&a("search",C.target.value,C),a("change",C)},d=C=>{var O;document.activeElement===((O=l.value)===null||O===void 0?void 0:O.input)&&C.preventDefault()},p=C=>{var O,w;a("search",(w=(O=l.value)===null||O===void 0?void 0:O.input)===null||w===void 0?void 0:w.stateValue,C)},g=C=>{i.value||e.loading||p(C)},m=C=>{i.value=!0,a("compositionstart",C)},h=C=>{i.value=!1,a("compositionend",C)},{prefixCls:b,getPrefixCls:y,direction:S,size:$}=Ee("input-search",e),x=P(()=>y("input",e.inputPrefixCls));return()=>{var C,O,w,M;const{disabled:I,loading:_,addonAfter:D=(C=n.addonAfter)===null||C===void 0?void 0:C.call(n),suffix:F=(O=n.suffix)===null||O===void 0?void 0:O.call(n)}=e,z=uK(e,["disabled","loading","addonAfter","suffix"]);let{enterButton:H=(M=(w=n.enterButton)===null||w===void 0?void 0:w.call(n))!==null&&M!==void 0?M:!1}=e;H=H||H==="";const T=typeof H=="boolean"?f(ag,null,null):null,A=`${b.value}-button`,R=Array.isArray(H)?H[0]:H;let E;const k=R.type&&pc(R.type)&&R.type.__ANT_BUTTON;if(k||R.tagName==="button")E=ut(R,v({onMousedown:d,onClick:p,key:"enterButton"},k?{class:A,size:$.value}:{}),!1);else{const L=T&&!H;E=f(qt,{class:A,type:H?"primary":void 0,size:$.value,disabled:I,key:"enterButton",onMousedown:d,onClick:p,loading:_,icon:L?T:null},{default:()=>[L?null:T||H]})}D&&(E=[E,D]);const B=te(b.value,{[`${b.value}-rtl`]:S.value==="rtl",[`${b.value}-${$.value}`]:!!$.value,[`${b.value}-with-button`]:!!H},o.class);return f(Wt,N(N(N({ref:l},qe(z,["onUpdate:value","onSearch","enterButton"])),o),{},{onPressEnter:g,onCompositionstart:m,onCompositionend:h,size:$.value,prefixCls:x.value,addonAfter:E,suffix:F,onChange:c,class:B,disabled:I}),n)}}}),yy=e=>e!=null&&(Array.isArray(e)?Tt(e).length:!0);function fK(e){return yy(e.addonBefore)||yy(e.addonAfter)}const pK=["text","input"],vK=J({compatConfig:{MODE:3},name:"ClearableLabeledInput",inheritAttrs:!1,props:{prefixCls:String,inputType:V.oneOf(vn("text","input")),value:xt(),defaultValue:xt(),allowClear:{type:Boolean,default:void 0},element:xt(),handleReset:Function,disabled:{type:Boolean,default:void 0},direction:{type:String},size:{type:String},suffix:xt(),prefix:xt(),addonBefore:xt(),addonAfter:xt(),readonly:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},bordered:{type:Boolean,default:!0},triggerFocus:{type:Function},hidden:Boolean,status:String,hashId:String},setup(e,t){let{slots:n,attrs:o}=t;const r=ln.useInject(),a=i=>{const{value:s,disabled:u,readonly:c,handleReset:d,suffix:p=n.suffix}=e,g=!u&&!c&&s,m=`${i}-clear-icon`;return f(bn,{onClick:d,onMousedown:h=>h.preventDefault(),class:te({[`${m}-hidden`]:!g,[`${m}-has-suffix`]:!!p},m),role:"button"},null)},l=(i,s)=>{const{value:u,allowClear:c,direction:d,bordered:p,hidden:g,status:m,addonAfter:h=n.addonAfter,addonBefore:b=n.addonBefore,hashId:y}=e,{status:S,hasFeedback:$}=r;if(!c)return ut(s,{value:u,disabled:e.disabled});const x=te(`${i}-affix-wrapper`,`${i}-affix-wrapper-textarea-with-clear-btn`,Tn(`${i}-affix-wrapper`,Vo(S,m),$),{[`${i}-affix-wrapper-rtl`]:d==="rtl",[`${i}-affix-wrapper-borderless`]:!p,[`${o.class}`]:!fK({addonAfter:h,addonBefore:b})&&o.class},y);return f("span",{class:x,style:o.style,hidden:g},[ut(s,{style:null,value:u,disabled:e.disabled}),a(i)])};return()=>{var i;const{prefixCls:s,inputType:u,element:c=(i=n.element)===null||i===void 0?void 0:i.call(n)}=e;return u===pK[0]?l(s,c):null}}}),gK=` + min-height:0 !important; + max-height:none !important; + height:0 !important; + visibility:hidden !important; + overflow:hidden !important; + position:absolute !important; + z-index:-1000 !important; + top:0 !important; + right:0 !important; + pointer-events: none !important; +`,hK=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],Md={};let Ln;function mK(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Md[n])return Md[n];const o=window.getComputedStyle(e),r=o.getPropertyValue("box-sizing")||o.getPropertyValue("-moz-box-sizing")||o.getPropertyValue("-webkit-box-sizing"),a=parseFloat(o.getPropertyValue("padding-bottom"))+parseFloat(o.getPropertyValue("padding-top")),l=parseFloat(o.getPropertyValue("border-bottom-width"))+parseFloat(o.getPropertyValue("border-top-width")),s={sizingStyle:hK.map(u=>`${u}:${o.getPropertyValue(u)}`).join(";"),paddingSize:a,borderSize:l,boxSizing:r};return t&&n&&(Md[n]=s),s}function bK(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Ln||(Ln=document.createElement("textarea"),Ln.setAttribute("tab-index","-1"),Ln.setAttribute("aria-hidden","true"),document.body.appendChild(Ln)),e.getAttribute("wrap")?Ln.setAttribute("wrap",e.getAttribute("wrap")):Ln.removeAttribute("wrap");const{paddingSize:r,borderSize:a,boxSizing:l,sizingStyle:i}=mK(e,t);Ln.setAttribute("style",`${i};${gK}`),Ln.value=e.value||e.placeholder||"";let s,u,c,d=Ln.scrollHeight;if(l==="border-box"?d+=a:l==="content-box"&&(d-=r),n!==null||o!==null){Ln.value=" ";const g=Ln.scrollHeight-r;n!==null&&(s=g*n,l==="border-box"&&(s=s+r+a),d=Math.max(s,d)),o!==null&&(u=g*o,l==="border-box"&&(u=u+r+a),c=d>u?"":"hidden",d=Math.min(u,d))}const p={height:`${d}px`,overflowY:c,resize:"none"};return s&&(p.minHeight=`${s}px`),u&&(p.maxHeight=`${u}px`),p}const Ed=0,_d=1,Dd=2,yK=J({compatConfig:{MODE:3},name:"ResizableTextArea",inheritAttrs:!1,props:w3(),setup(e,t){let{attrs:n,emit:o,expose:r}=t,a,l;const i=Z(),s=Z({}),u=Z(Dd);Je(()=>{We.cancel(a),We.cancel(l)});const c=()=>{try{if(document.activeElement===i.value){const O=i.value.selectionStart,w=i.value.selectionEnd,M=i.value.scrollTop;i.value.setSelectionRange(O,w),i.value.scrollTop=M}}catch{}},d=Z(),p=Z();Le(()=>{const O=e.autoSize||e.autosize;O?(d.value=O.minRows,p.value=O.maxRows):(d.value=void 0,p.value=void 0)});const g=P(()=>!!(e.autoSize||e.autosize)),m=()=>{u.value=Ed};ue([()=>e.value,d,p,g],()=>{g.value&&m()},{immediate:!0,flush:"post"});const h=Z();ue([u,i],()=>{if(i.value)if(u.value===Ed)u.value=_d;else if(u.value===_d){const O=bK(i.value,!1,d.value,p.value);u.value=Dd,h.value=O}else c()},{immediate:!0,flush:"post"});const b=Dn(),y=Z(),S=()=>{We.cancel(y.value)},$=O=>{u.value===Dd&&(o("resize",O),g.value&&(S(),y.value=We(()=>{m()})))};Je(()=>{S()}),r({resizeTextarea:()=>{m()},textArea:i,instance:b}),yt(e.autosize===void 0);const C=()=>{const{prefixCls:O,disabled:w}=e,M=qe(e,["prefixCls","onPressEnter","autoSize","autosize","defaultValue","allowClear","type","lazy","maxlength","valueModifiers"]),I=te(O,n.class,{[`${O}-disabled`]:w}),_=g.value?h.value:null,D=[n.style,s.value,_],F=v(v(v({},M),n),{style:D,class:I});return(u.value===Ed||u.value===_d)&&D.push({overflowX:"hidden",overflowY:"hidden"}),F.autofocus||delete F.autofocus,F.rows===0&&delete F.rows,f(ho,{onResize:$,disabled:!g.value},{default:()=>[Kt(f("textarea",N(N({},F),{},{ref:i}),null),[[si]])]})};return()=>C()}}),SK=yK;function O3(e,t){return[...e||""].slice(0,t).join("")}function Sy(e,t,n,o){let r=n;return e?r=O3(n,o):[...t||""].lengtho&&(r=t),r}const P3=J({compatConfig:{MODE:3},name:"ATextarea",inheritAttrs:!1,props:w3(),setup(e,t){let{attrs:n,expose:o,emit:r}=t;const a=Ht(),l=ln.useInject(),i=P(()=>Vo(l.status,e.status)),s=Y(e.value===void 0?e.defaultValue:e.value),u=Y(),c=Y(""),{prefixCls:d,size:p,direction:g}=Ee("input",e),[m,h]=Yg(d),b=gn(),y=P(()=>e.showCount===""||e.showCount||!1),S=P(()=>Number(e.maxlength)>0),$=Y(!1),x=Y(),C=Y(0),O=E=>{$.value=!0,x.value=c.value,C.value=E.currentTarget.selectionStart,r("compositionstart",E)},w=E=>{var k;$.value=!1;let B=E.currentTarget.value;if(S.value){const L=C.value>=e.maxlength+1||C.value===((k=x.value)===null||k===void 0?void 0:k.length);B=Sy(L,x.value,B,e.maxlength)}B!==c.value&&(D(B),Rl(E.currentTarget,E,H,B)),r("compositionend",E)},M=Dn();ue(()=>e.value,()=>{var E;"value"in M.vnode.props,s.value=(E=e.value)!==null&&E!==void 0?E:""});const I=E=>{var k;$3((k=u.value)===null||k===void 0?void 0:k.textArea,E)},_=()=>{var E,k;(k=(E=u.value)===null||E===void 0?void 0:E.textArea)===null||k===void 0||k.blur()},D=(E,k)=>{s.value!==E&&(e.value===void 0?s.value=E:lt(()=>{var B,L,j;u.value.textArea.value!==c.value&&((j=(B=u.value)===null||B===void 0?void 0:(L=B.instance).update)===null||j===void 0||j.call(L))}),lt(()=>{k&&k()}))},F=E=>{E.keyCode===13&&r("pressEnter",E),r("keydown",E)},z=E=>{const{onBlur:k}=e;k==null||k(E),a.onFieldBlur()},H=E=>{r("update:value",E.target.value),r("change",E),r("input",E),a.onFieldChange()},T=E=>{Rl(u.value.textArea,E,H),D("",()=>{I()})},A=E=>{const{composing:k}=E.target;let B=E.target.value;if($.value=!!(E.isComposing||k),!($.value&&e.lazy||s.value===B)){if(S.value){const L=E.target,j=L.selectionStart>=e.maxlength+1||L.selectionStart===B.length||!L.selectionStart;B=Sy(j,c.value,B,e.maxlength)}Rl(E.currentTarget,E,H,B),D(B)}},R=()=>{var E,k;const{class:B}=n,{bordered:L=!0}=e,j=v(v(v({},qe(e,["allowClear"])),n),{class:[{[`${d.value}-borderless`]:!L,[`${B}`]:B&&!y.value,[`${d.value}-sm`]:p.value==="small",[`${d.value}-lg`]:p.value==="large"},Tn(d.value,i.value),h.value],disabled:b.value,showCount:null,prefixCls:d.value,onInput:A,onChange:A,onBlur:z,onKeydown:F,onCompositionstart:O,onCompositionend:w});return!((E=e.valueModifiers)===null||E===void 0)&&E.lazy&&delete j.onInput,f(SK,N(N({},j),{},{id:(k=j==null?void 0:j.id)!==null&&k!==void 0?k:a.id.value,ref:u,maxlength:e.maxlength}),null)};return o({focus:I,blur:_,resizableTextArea:u}),Le(()=>{let E=xp(s.value);!$.value&&S.value&&(e.value===null||e.value===void 0)&&(E=O3(E,e.maxlength)),c.value=E}),()=>{var E;const{maxlength:k,bordered:B=!0,hidden:L}=e,{style:j,class:K}=n,G=v(v(v({},e),n),{prefixCls:d.value,inputType:"text",handleReset:T,direction:g.value,bordered:B,style:y.value?void 0:j,hashId:h.value,disabled:(E=e.disabled)!==null&&E!==void 0?E:b.value});let U=f(vK,N(N({},G),{},{value:c.value,status:e.status}),{element:R});if(y.value||l.hasFeedback){const X=[...c.value].length;let ee="";typeof y.value=="object"?ee=y.value.formatter({value:c.value,count:X,maxlength:k}):ee=`${X}${S.value?` / ${k}`:""}`,U=f("div",{hidden:L,class:te(`${d.value}-textarea`,{[`${d.value}-textarea-rtl`]:g.value==="rtl",[`${d.value}-textarea-show-count`]:y.value,[`${d.value}-textarea-in-form-item`]:l.isFormItemInput},`${d.value}-textarea-show-count`,K,h.value),style:j,"data-count":typeof ee!="object"?ee:void 0},[U,l.hasFeedback&&f("span",{class:`${d.value}-textarea-suffix`},[l.feedbackIcon])])}return m(U)}}});var $K={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};const CK=$K;function $y(e){for(var t=1;te?f(mh,null,null):f(IK,null,null),_K=J({compatConfig:{MODE:3},name:"AInputPassword",inheritAttrs:!1,props:v(v({},cu()),{prefixCls:String,inputPrefixCls:String,action:{type:String,default:"click"},visibilityToggle:{type:Boolean,default:!0},visible:{type:Boolean,default:void 0},"onUpdate:visible":Function,iconRender:Function}),setup(e,t){let{slots:n,attrs:o,expose:r,emit:a}=t;const l=Y(!1),i=()=>{const{disabled:b}=e;b||(l.value=!l.value,a("update:visible",l.value))};Le(()=>{e.visible!==void 0&&(l.value=!!e.visible)});const s=Y();r({focus:()=>{var b;(b=s.value)===null||b===void 0||b.focus()},blur:()=>{var b;(b=s.value)===null||b===void 0||b.blur()}});const d=b=>{const{action:y,iconRender:S=n.iconRender||EK}=e,$=MK[y]||"",x=S(l.value),C={[$]:i,class:`${b}-icon`,key:"passwordIcon",onMousedown:O=>{O.preventDefault()},onMouseup:O=>{O.preventDefault()}};return ut(kt(x)?x:f("span",null,[x]),C)},{prefixCls:p,getPrefixCls:g}=Ee("input-password",e),m=P(()=>g("input",e.inputPrefixCls)),h=()=>{const{size:b,visibilityToggle:y}=e,S=TK(e,["size","visibilityToggle"]),$=y&&d(p.value),x=te(p.value,o.class,{[`${p.value}-${b}`]:!!b}),C=v(v(v({},qe(S,["suffix","iconRender","action"])),o),{type:l.value?"text":"password",class:x,prefixCls:m.value,suffix:$});return b&&(C.size=b),f(Wt,N({ref:s},C),n)};return()=>h()}});Wt.Group=cK;Wt.Search=dK;Wt.TextArea=P3;Wt.Password=_K;Wt.install=function(e){return e.component(Wt.name,Wt),e.component(Wt.Group.name,Wt.Group),e.component(Wt.Search.name,Wt.Search),e.component(Wt.TextArea.name,Wt.TextArea),e.component(Wt.Password.name,Wt.Password),e};function DK(){const e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function Zs(e){const t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function uu(){return{keyboard:{type:Boolean,default:void 0},mask:{type:Boolean,default:void 0},afterClose:Function,closable:{type:Boolean,default:void 0},maskClosable:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},destroyOnClose:{type:Boolean,default:void 0},mousePosition:V.shape({x:Number,y:Number}).loose,title:V.any,footer:V.any,transitionName:String,maskTransitionName:String,animation:V.any,maskAnimation:V.any,wrapStyle:{type:Object,default:void 0},bodyStyle:{type:Object,default:void 0},maskStyle:{type:Object,default:void 0},prefixCls:String,wrapClassName:String,rootClassName:String,width:[String,Number],height:[String,Number],zIndex:Number,bodyProps:V.any,maskProps:V.any,wrapProps:V.any,getContainer:V.any,dialogStyle:{type:Object,default:void 0},dialogClass:String,closeIcon:V.any,forceRender:{type:Boolean,default:void 0},getOpenCount:Function,focusTriggerAfterClose:{type:Boolean,default:void 0},onClose:Function,modalRender:Function}}function xy(e,t,n){let o=t;return!o&&n&&(o=`${e}-${n}`),o}let wy=-1;function AK(){return wy+=1,wy}function Oy(e,t){let n=e[`page${t?"Y":"X"}Offset`];const o=`scroll${t?"Top":"Left"}`;if(typeof n!="number"){const r=e.document;n=r.documentElement[o],typeof n!="number"&&(n=r.body[o])}return n}function RK(e){const t=e.getBoundingClientRect(),n={left:t.left,top:t.top},o=e.ownerDocument,r=o.defaultView||o.parentWindow;return n.left+=Oy(r),n.top+=Oy(r,!0),n}const Py={width:0,height:0,overflow:"hidden",outline:"none"},NK=J({compatConfig:{MODE:3},name:"DialogContent",inheritAttrs:!1,props:v(v({},uu()),{motionName:String,ariaId:String,onVisibleChanged:Function,onMousedown:Function,onMouseup:Function}),setup(e,t){let{expose:n,slots:o,attrs:r}=t;const a=Z(),l=Z(),i=Z();n({focus:()=>{var p;(p=a.value)===null||p===void 0||p.focus()},changeActive:p=>{const{activeElement:g}=document;p&&g===l.value?a.value.focus():!p&&g===a.value&&l.value.focus()}});const s=Z(),u=P(()=>{const{width:p,height:g}=e,m={};return p!==void 0&&(m.width=typeof p=="number"?`${p}px`:p),g!==void 0&&(m.height=typeof g=="number"?`${g}px`:g),s.value&&(m.transformOrigin=s.value),m}),c=()=>{lt(()=>{if(i.value){const p=RK(i.value);s.value=e.mousePosition?`${e.mousePosition.x-p.left}px ${e.mousePosition.y-p.top}px`:""}})},d=p=>{e.onVisibleChanged(p)};return()=>{var p,g,m,h;const{prefixCls:b,footer:y=(p=o.footer)===null||p===void 0?void 0:p.call(o),title:S=(g=o.title)===null||g===void 0?void 0:g.call(o),ariaId:$,closable:x,closeIcon:C=(m=o.closeIcon)===null||m===void 0?void 0:m.call(o),onClose:O,bodyStyle:w,bodyProps:M,onMousedown:I,onMouseup:_,visible:D,modalRender:F=o.modalRender,destroyOnClose:z,motionName:H}=e;let T;y&&(T=f("div",{class:`${b}-footer`},[y]));let A;S&&(A=f("div",{class:`${b}-header`},[f("div",{class:`${b}-title`,id:$},[S])]));let R;x&&(R=f("button",{type:"button",onClick:O,"aria-label":"Close",class:`${b}-close`},[C||f("span",{class:`${b}-close-x`},null)]));const E=f("div",{class:`${b}-content`},[R,A,f("div",N({class:`${b}-body`,style:w},M),[(h=o.default)===null||h===void 0?void 0:h.call(o)]),T]),k=bo(H);return f(rn,N(N({},k),{},{onBeforeEnter:c,onAfterEnter:()=>d(!0),onAfterLeave:()=>d(!1)}),{default:()=>[D||!z?Kt(f("div",N(N({},r),{},{ref:i,key:"dialog-element",role:"document",style:[u.value,r.style],class:[b,r.class],onMousedown:I,onMouseup:_}),[f("div",{tabindex:0,ref:a,style:Py,"aria-hidden":"true"},null),F?F({originVNode:E}):E,f("div",{tabindex:0,ref:l,style:Py,"aria-hidden":"true"},null)]),[[Wn,D]]):null]})}}}),kK=J({compatConfig:{MODE:3},name:"DialogMask",props:{prefixCls:String,visible:Boolean,motionName:String,maskProps:Object},setup(e,t){return()=>{const{prefixCls:n,visible:o,maskProps:r,motionName:a}=e,l=bo(a);return f(rn,l,{default:()=>[Kt(f("div",N({class:`${n}-mask`},r),null),[[Wn,o]])]})}}}),Iy=J({compatConfig:{MODE:3},name:"VcDialog",inheritAttrs:!1,props:rt(v(v({},uu()),{getOpenCount:Function,scrollLocker:Object}),{mask:!0,visible:!1,keyboard:!0,closable:!0,maskClosable:!0,destroyOnClose:!1,prefixCls:"rc-dialog",getOpenCount:()=>null,focusTriggerAfterClose:!0}),setup(e,t){let{attrs:n,slots:o}=t;const r=Y(),a=Y(),l=Y(),i=Y(e.visible),s=Y(`vcDialogTitle${AK()}`),u=y=>{var S,$;if(y)er(a.value,document.activeElement)||(r.value=document.activeElement,(S=l.value)===null||S===void 0||S.focus());else{const x=i.value;if(i.value=!1,e.mask&&r.value&&e.focusTriggerAfterClose){try{r.value.focus({preventScroll:!0})}catch{}r.value=null}x&&(($=e.afterClose)===null||$===void 0||$.call(e))}},c=y=>{var S;(S=e.onClose)===null||S===void 0||S.call(e,y)},d=Y(!1),p=Y(),g=()=>{clearTimeout(p.value),d.value=!0},m=()=>{p.value=setTimeout(()=>{d.value=!1})},h=y=>{if(!e.maskClosable)return null;d.value?d.value=!1:a.value===y.target&&c(y)},b=y=>{if(e.keyboard&&y.keyCode===$e.ESC){y.stopPropagation(),c(y);return}e.visible&&y.keyCode===$e.TAB&&l.value.changeActive(!y.shiftKey)};return ue(()=>e.visible,()=>{e.visible&&(i.value=!0)},{flush:"post"}),Je(()=>{var y;clearTimeout(p.value),(y=e.scrollLocker)===null||y===void 0||y.unLock()}),Le(()=>{var y,S;(y=e.scrollLocker)===null||y===void 0||y.unLock(),i.value&&((S=e.scrollLocker)===null||S===void 0||S.lock())}),()=>{const{prefixCls:y,mask:S,visible:$,maskTransitionName:x,maskAnimation:C,zIndex:O,wrapClassName:w,rootClassName:M,wrapStyle:I,closable:_,maskProps:D,maskStyle:F,transitionName:z,animation:H,wrapProps:T,title:A=o.title}=e,{style:R,class:E}=n;return f("div",N({class:[`${y}-root`,M]},dr(e,{data:!0})),[f(kK,{prefixCls:y,visible:S&&$,motionName:xy(y,x,C),style:v({zIndex:O},F),maskProps:D},null),f("div",N({tabIndex:-1,onKeydown:b,class:te(`${y}-wrap`,w),ref:a,onClick:h,role:"dialog","aria-labelledby":A?s.value:null,style:v(v({zIndex:O},I),{display:i.value?null:"none"})},T),[f(NK,N(N({},qe(e,["scrollLocker"])),{},{style:R,class:E,onMousedown:g,onMouseup:m,ref:l,closable:_,ariaId:s.value,prefixCls:y,visible:$,onClose:c,onVisibleChanged:u,motionName:xy(y,z,H)}),o)])])}}}),BK=uu(),FK=J({compatConfig:{MODE:3},name:"DialogWrap",inheritAttrs:!1,props:rt(BK,{visible:!1}),setup(e,t){let{attrs:n,slots:o}=t;const r=Z(e.visible);return Lv({},{inTriggerContext:!1}),ue(()=>e.visible,()=>{e.visible&&(r.value=!0)},{flush:"post"}),()=>{const{visible:a,getContainer:l,forceRender:i,destroyOnClose:s=!1,afterClose:u}=e;let c=v(v(v({},e),n),{ref:"_component",key:"dialog"});return l===!1?f(Iy,N(N({},c),{},{getOpenCount:()=>2}),o):!i&&s&&!r.value?null:f(zv,{autoLock:!0,visible:a,forceRender:i,getContainer:l},{default:d=>(c=v(v(v({},c),d),{afterClose:()=>{u==null||u(),r.value=!1}}),f(Iy,c,o))})}}}),I3=FK;function LK(e){const t=Z(null),n=vt(v({},e)),o=Z([]),r=a=>{t.value===null&&(o.value=[],t.value=We(()=>{let l;o.value.forEach(i=>{l=v(v({},l),i)}),v(n,l),t.value=null})),o.value.push(a)};return Ve(()=>{t.value&&We.cancel(t.value)}),[n,r]}function Ty(e,t,n,o){const r=t+n,a=(n-o)/2;if(n>o){if(t>0)return{[e]:a};if(t<0&&ro)return{[e]:t<0?a:-a};return{}}function zK(e,t,n,o){const{width:r,height:a}=DK();let l=null;return e<=r&&t<=a?l={x:0,y:0}:(e>r||t>a)&&(l=v(v({},Ty("x",n,e,r)),Ty("y",o,t,a))),l}var HK=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{Ke(My,e)},inject:()=>Xe(My,{isPreviewGroup:Y(!1),previewUrls:P(()=>new Map),setPreviewUrls:()=>{},current:Z(null),setCurrent:()=>{},setShowPreview:()=>{},setMousePosition:()=>{},registerImage:null,rootClassName:""})},jK=()=>({previewPrefixCls:String,preview:{type:[Boolean,Object],default:!0},icons:{type:Object,default:()=>({})}}),VK=J({compatConfig:{MODE:3},name:"PreviewGroup",inheritAttrs:!1,props:jK(),setup(e,t){let{slots:n}=t;const o=P(()=>{const C={visible:void 0,onVisibleChange:()=>{},getContainer:void 0,current:0};return typeof e.preview=="object"?_3(e.preview,C):C}),r=vt(new Map),a=Z(),l=P(()=>o.value.visible),i=P(()=>o.value.getContainer),s=(C,O)=>{var w,M;(M=(w=o.value).onVisibleChange)===null||M===void 0||M.call(w,C,O)},[u,c]=Ot(!!l.value,{value:l,onChange:s}),d=Z(null),p=P(()=>l.value!==void 0),g=P(()=>Array.from(r.keys())),m=P(()=>g.value[o.value.current]),h=P(()=>new Map(Array.from(r).filter(C=>{let[,{canPreview:O}]=C;return!!O}).map(C=>{let[O,{url:w}]=C;return[O,w]}))),b=function(C,O){let w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;r.set(C,{url:O,canPreview:w})},y=C=>{a.value=C},S=C=>{d.value=C},$=function(C,O){let w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const M=()=>{r.delete(C)};return r.set(C,{url:O,canPreview:w}),M},x=C=>{C==null||C.stopPropagation(),c(!1),S(null)};return ue(m,C=>{y(C)},{immediate:!0,flush:"post"}),Le(()=>{u.value&&p.value&&y(m.value)},{flush:"post"}),yh.provide({isPreviewGroup:Y(!0),previewUrls:h,setPreviewUrls:b,current:a,setCurrent:y,setShowPreview:c,setMousePosition:S,registerImage:$}),()=>{const C=HK(o.value,[]);return f(nt,null,[n.default&&n.default(),f(M3,N(N({},C),{},{"ria-hidden":!u.value,visible:u.value,prefixCls:e.previewPrefixCls,onClose:x,mousePosition:d.value,src:h.value.get(a.value),icons:e.icons,getContainer:i.value}),null)])}}}),T3=VK,br={x:0,y:0},WK=v(v({},uu()),{src:String,alt:String,rootClassName:String,icons:{type:Object,default:()=>({})}}),KK=J({compatConfig:{MODE:3},name:"Preview",inheritAttrs:!1,props:WK,emits:["close","afterClose"],setup(e,t){let{emit:n,attrs:o}=t;const{rotateLeft:r,rotateRight:a,zoomIn:l,zoomOut:i,close:s,left:u,right:c,flipX:d,flipY:p}=vt(e.icons),g=Y(1),m=Y(0),h=vt({x:1,y:1}),[b,y]=LK(br),S=()=>n("close"),$=Y(),x=vt({originX:0,originY:0,deltaX:0,deltaY:0}),C=Y(!1),O=yh.inject(),{previewUrls:w,current:M,isPreviewGroup:I,setCurrent:_}=O,D=P(()=>w.value.size),F=P(()=>Array.from(w.value.keys())),z=P(()=>F.value.indexOf(M.value)),H=P(()=>I.value?w.value.get(M.value):e.src),T=P(()=>I.value&&D.value>1),A=Y({wheelDirection:0}),R=()=>{g.value=1,m.value=0,h.x=1,h.y=1,y(br),n("afterClose")},E=se=>{se?g.value+=.5:g.value++,y(br)},k=se=>{g.value>1&&(se?g.value-=.5:g.value--),y(br)},B=()=>{m.value+=90},L=()=>{m.value-=90},j=()=>{h.x=-h.x},K=()=>{h.y=-h.y},G=se=>{se.preventDefault(),se.stopPropagation(),z.value>0&&_(F.value[z.value-1])},U=se=>{se.preventDefault(),se.stopPropagation(),z.valueE(),type:"zoomIn"},{icon:i,onClick:()=>k(),type:"zoomOut",disabled:P(()=>g.value===1)},{icon:a,onClick:B,type:"rotateRight"},{icon:r,onClick:L,type:"rotateLeft"},{icon:d,onClick:j,type:"flipX"},{icon:p,onClick:K,type:"flipY"}],W=()=>{if(e.visible&&C.value){const se=$.value.offsetWidth*g.value,ie=$.value.offsetHeight*g.value,{left:fe,top:Se}=Zs($.value),Ie=m.value%180!==0;C.value=!1;const ge=zK(Ie?ie:se,Ie?se:ie,fe,Se);ge&&y(v({},ge))}},q=se=>{se.button===0&&(se.preventDefault(),se.stopPropagation(),x.deltaX=se.pageX-b.x,x.deltaY=se.pageY-b.y,x.originX=b.x,x.originY=b.y,C.value=!0)},re=se=>{e.visible&&C.value&&y({x:se.pageX-x.deltaX,y:se.pageY-x.deltaY})},le=se=>{if(!e.visible)return;se.preventDefault();const ie=se.deltaY;A.value={wheelDirection:ie}},ye=se=>{!e.visible||!T.value||(se.preventDefault(),se.keyCode===$e.LEFT?z.value>0&&_(F.value[z.value-1]):se.keyCode===$e.RIGHT&&z.value{e.visible&&(g.value!==1&&(g.value=1),(b.x!==br.x||b.y!==br.y)&&y(br))};let ce=()=>{};return Ve(()=>{ue([()=>e.visible,C],()=>{ce();let se,ie;const fe=wt(window,"mouseup",W,!1),Se=wt(window,"mousemove",re,!1),Ie=wt(window,"wheel",le,{passive:!1}),ge=wt(window,"keydown",ye,!1);try{window.top!==window.self&&(se=wt(window.top,"mouseup",W,!1),ie=wt(window.top,"mousemove",re,!1))}catch{}ce=()=>{fe.remove(),Se.remove(),Ie.remove(),ge.remove(),se&&se.remove(),ie&&ie.remove()}},{flush:"post",immediate:!0}),ue([A],()=>{const{wheelDirection:se}=A.value;se>0?k(!0):se<0&&E(!0)})}),An(()=>{ce()}),()=>{const{visible:se,prefixCls:ie,rootClassName:fe}=e;return f(I3,N(N({},o),{},{transitionName:e.transitionName,maskTransitionName:e.maskTransitionName,closable:!1,keyboard:!0,prefixCls:ie,onClose:S,afterClose:R,visible:se,wrapClassName:X,rootClassName:fe,getContainer:e.getContainer}),{default:()=>[f("div",{class:[`${e.prefixCls}-operations-wrapper`,fe]},[f("ul",{class:`${e.prefixCls}-operations`},[Q.map(Se=>{let{icon:Ie,onClick:ge,type:Oe,disabled:we}=Se;return f("li",{class:te(ee,{[`${e.prefixCls}-operations-operation-disabled`]:we&&(we==null?void 0:we.value)}),onClick:ge,key:Oe},[ko(Ie,{class:oe})])})])]),f("div",{class:`${e.prefixCls}-img-wrapper`,style:{transform:`translate3d(${b.x}px, ${b.y}px, 0)`}},[f("img",{onMousedown:q,onDblclick:me,ref:$,class:`${e.prefixCls}-img`,src:H.value,alt:e.alt,style:{transform:`scale3d(${h.x*g.value}, ${h.y*g.value}, 1) rotate(${m.value}deg)`}},null)]),T.value&&f("div",{class:te(`${e.prefixCls}-switch-left`,{[`${e.prefixCls}-switch-left-disabled`]:z.value<=0}),onClick:G},[u]),T.value&&f("div",{class:te(`${e.prefixCls}-switch-right`,{[`${e.prefixCls}-switch-right-disabled`]:z.value>=D.value-1}),onClick:U},[c])]})}}}),M3=KK;var GK=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({src:String,wrapperClassName:String,wrapperStyle:{type:Object,default:void 0},rootClassName:String,prefixCls:String,previewPrefixCls:String,previewMask:{type:[Boolean,Function],default:void 0},placeholder:V.any,fallback:String,preview:{type:[Boolean,Object],default:!0},onClick:{type:Function},onError:{type:Function}}),_3=(e,t)=>{const n=v({},e);return Object.keys(t).forEach(o=>{e[o]===void 0&&(n[o]=t[o])}),n};let XK=0;const D3=J({compatConfig:{MODE:3},name:"VcImage",inheritAttrs:!1,props:E3(),emits:["click","error"],setup(e,t){let{attrs:n,slots:o,emit:r}=t;const a=P(()=>e.prefixCls),l=P(()=>`${a.value}-preview`),i=P(()=>{const E={visible:void 0,onVisibleChange:()=>{},getContainer:void 0};return typeof e.preview=="object"?_3(e.preview,E):E}),s=P(()=>{var E;return(E=i.value.src)!==null&&E!==void 0?E:e.src}),u=P(()=>e.placeholder&&e.placeholder!==!0||o.placeholder),c=P(()=>i.value.visible),d=P(()=>i.value.getContainer),p=P(()=>c.value!==void 0),g=(E,k)=>{var B,L;(L=(B=i.value).onVisibleChange)===null||L===void 0||L.call(B,E,k)},[m,h]=Ot(!!c.value,{value:c,onChange:g}),b=Z(u.value?"loading":"normal");ue(()=>e.src,()=>{b.value=u.value?"loading":"normal"});const y=Z(null),S=P(()=>b.value==="error"),$=yh.inject(),{isPreviewGroup:x,setCurrent:C,setShowPreview:O,setMousePosition:w,registerImage:M}=$,I=Z(XK++),_=P(()=>e.preview&&!S.value),D=()=>{b.value="normal"},F=E=>{b.value="error",r("error",E)},z=E=>{if(!p.value){const{left:k,top:B}=Zs(E.target);x.value?(C(I.value),w({x:k,y:B})):y.value={x:k,y:B}}x.value?O(!0):h(!0),r("click",E)},H=()=>{h(!1),p.value||(y.value=null)},T=Z(null);ue(()=>T,()=>{b.value==="loading"&&T.value.complete&&(T.value.naturalWidth||T.value.naturalHeight)&&D()});let A=()=>{};Ve(()=>{ue([s,_],()=>{if(A(),!x.value)return()=>{};A=M(I.value,s.value,_.value),_.value||A()},{flush:"post",immediate:!0})}),An(()=>{A()});const R=E=>UI(E)?E+"px":E;return()=>{const{prefixCls:E,wrapperClassName:k,fallback:B,src:L,placeholder:j,wrapperStyle:K,rootClassName:G}=e,{width:U,height:X,crossorigin:ee,decoding:oe,alt:Q,sizes:W,srcset:q,usemap:re,class:le,style:ye}=n,me=i.value,{icons:ce,maskClassName:se}=me,ie=GK(me,["icons","maskClassName"]),fe=te(E,k,G,{[`${E}-error`]:S.value}),Se=S.value&&B?B:s.value,Ie={crossorigin:ee,decoding:oe,alt:Q,sizes:W,srcset:q,usemap:re,width:U,height:X,class:te(`${E}-img`,{[`${E}-img-placeholder`]:j===!0},le),style:v({height:R(X)},ye)};return f(nt,null,[f("div",{class:fe,onClick:_.value?z:ge=>{r("click",ge)},style:v({width:R(U),height:R(X)},K)},[f("img",N(N(N({},Ie),S.value&&B?{src:B}:{onLoad:D,onError:F,src:L}),{},{ref:T}),null),b.value==="loading"&&f("div",{"aria-hidden":"true",class:`${E}-placeholder`},[j||o.placeholder&&o.placeholder()]),o.previewMask&&_.value&&f("div",{class:[`${E}-mask`,se]},[o.previewMask()])]),!x.value&&_.value&&f(M3,N(N({},ie),{},{"aria-hidden":!m.value,visible:m.value,prefixCls:l.value,onClose:H,mousePosition:y.value,src:Se,alt:Q,getContainer:d.value,icons:ce,rootClassName:G}),null)])}}});D3.PreviewGroup=T3;const UK=D3;var YK={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"};const qK=YK;function Ey(e){for(var t=1;t{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}${e.antCls}-zoom-enter, ${t}${e.antCls}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${e.antCls}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:v(v({},ky("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:v(v({},ky("fixed")),{overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:bx(e)}]},vG=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap`]:{zIndex:e.zIndexPopupBase,position:"fixed",inset:0,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"},[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax})`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${e.marginXS} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:v(v({},et(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${e.margin*2}px)`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.modalHeadingColor,fontWeight:e.fontWeightStrong,fontSize:e.modalHeaderTitleFontSize,lineHeight:e.modalHeaderTitleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.modalContentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadowSecondary,pointerEvents:"auto",padding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`},[`${t}-close`]:v({position:"absolute",top:(e.modalHeaderCloseSize-e.modalCloseBtnSize)/2,insetInlineEnd:(e.modalHeaderCloseSize-e.modalCloseBtnSize)/2,zIndex:e.zIndexPopupBase+10,padding:0,color:e.modalCloseColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalConfirmIconSize,height:e.modalConfirmIconSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"block",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${e.modalCloseBtnSize}px`,textAlign:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.wireframe?"transparent":e.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:e.wireframe?"transparent":e.colorFillContentHover}},Lo(e)),[`${t}-header`]:{color:e.colorText,background:e.modalHeaderBg,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,marginBottom:e.marginXS},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word"},[`${t}-footer`]:{textAlign:"end",background:e.modalFooterBg,marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn:not(${e.antCls}-dropdown-trigger)`]:{marginBottom:0,marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content, + ${t}-body, + ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},gG=e=>{const{componentCls:t}=e,n=`${t}-confirm`;return{[n]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${n}-body-wrapper`]:v({},ro()),[`${n}-body`]:{display:"flex",flexWrap:"wrap",alignItems:"center",[`${n}-title`]:{flex:"0 0 100%",display:"block",overflow:"hidden",color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.modalHeaderTitleFontSize,lineHeight:e.modalHeaderTitleLineHeight,[`+ ${n}-content`]:{marginBlockStart:e.marginXS,flexBasis:"100%",maxWidth:`calc(100% - ${e.modalConfirmIconSize+e.marginSM}px)`}},[`${n}-content`]:{color:e.colorText,fontSize:e.fontSize},[`> ${e.iconCls}`]:{flex:"none",marginInlineEnd:e.marginSM,fontSize:e.modalConfirmIconSize,[`+ ${n}-title`]:{flex:1},[`+ ${n}-title + ${n}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.marginSM}}},[`${n}-btns`]:{textAlign:"end",marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${n}-error ${n}-body > ${e.iconCls}`]:{color:e.colorError},[`${n}-warning ${n}-body > ${e.iconCls}, + ${n}-confirm ${n}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${n}-info ${n}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${n}-success ${n}-body > ${e.iconCls}`]:{color:e.colorSuccess},[`${t}-zoom-leave ${t}-btns`]:{pointerEvents:"none"}}},hG=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},mG=e=>{const{componentCls:t,antCls:n}=e,o=`${t}-confirm`;return{[t]:{[`${t}-content`]:{padding:0},[`${t}-header`]:{padding:e.modalHeaderPadding,borderBottom:`${e.modalHeaderBorderWidth}px ${e.modalHeaderBorderStyle} ${e.modalHeaderBorderColorSplit}`,marginBottom:0},[`${t}-body`]:{padding:e.modalBodyPadding},[`${t}-footer`]:{padding:`${e.modalFooterPaddingVertical}px ${e.modalFooterPaddingHorizontal}px`,borderTop:`${e.modalFooterBorderWidth}px ${e.modalFooterBorderStyle} ${e.modalFooterBorderColorSplit}`,borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`,marginTop:0}},[o]:{[`${n}-modal-body`]:{padding:`${e.padding*2}px ${e.padding*2}px ${e.paddingLG}px`},[`${o}-body`]:{[`> ${e.iconCls}`]:{marginInlineEnd:e.margin,[`+ ${o}-title + ${o}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.margin}}},[`${o}-btns`]:{marginTop:e.marginLG}}}},bG=Qe("Modal",e=>{const t=e.padding,n=e.fontSizeHeading5,o=e.lineHeightHeading5,r=ze(e,{modalBodyPadding:e.paddingLG,modalHeaderBg:e.colorBgElevated,modalHeaderPadding:`${t}px ${e.paddingLG}px`,modalHeaderBorderWidth:e.lineWidth,modalHeaderBorderStyle:e.lineType,modalHeaderTitleLineHeight:o,modalHeaderTitleFontSize:n,modalHeaderBorderColorSplit:e.colorSplit,modalHeaderCloseSize:o*n+t*2,modalContentBg:e.colorBgElevated,modalHeadingColor:e.colorTextHeading,modalCloseColor:e.colorTextDescription,modalFooterBg:"transparent",modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterPaddingVertical:e.paddingXS,modalFooterPaddingHorizontal:e.padding,modalFooterBorderWidth:e.lineWidth,modalConfirmTitleFontSize:e.fontSizeLG,modalIconHoverColor:e.colorIconHover,modalConfirmIconSize:e.fontSize*e.lineHeight,modalCloseBtnSize:e.controlHeightLG*.55});return[vG(r),gG(r),hG(r),A3(r),e.wireframe&&mG(r),el(r,"zoom")]}),wp=e=>({position:e||"absolute",inset:0}),yG=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:o,marginXXS:r,prefixCls:a}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:"#fff",background:new st("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${a}-mask-info`]:v(v({},mn),{padding:`0 ${o}px`,[t]:{marginInlineEnd:r,svg:{verticalAlign:"baseline"}}})}},SG=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:o,previewOperationColorDisabled:r,motionDurationSlow:a}=e,l=new st(n).setAlpha(.1),i=l.clone().setAlpha(.2);return{[`${t}-operations`]:v(v({},et(e)),{display:"flex",flexDirection:"row-reverse",alignItems:"center",color:e.previewOperationColor,listStyle:"none",background:l.toRgbString(),pointerEvents:"auto","&-operation":{marginInlineStart:o,padding:o,cursor:"pointer",transition:`all ${a}`,userSelect:"none","&:hover":{background:i.toRgbString()},"&-disabled":{color:r,pointerEvents:"none"},"&:last-of-type":{marginInlineStart:0}},"&-progress":{position:"absolute",left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%)"},"&-icon":{fontSize:e.previewOperationSize}})}},$G=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:o,previewCls:r,zIndexPopup:a,motionDurationSlow:l}=e,i=new st(t).setAlpha(.1),s=i.clone().setAlpha(.2);return{[`${r}-switch-left, ${r}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:a+1,display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:-e.imagePreviewSwitchSize/2,color:e.previewOperationColor,background:i.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${l}`,pointerEvents:"auto",userSelect:"none","&:hover":{background:s.toRgbString()},"&-disabled":{"&, &:hover":{color:o,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${r}-switch-left`]:{insetInlineStart:e.marginSM},[`${r}-switch-right`]:{insetInlineEnd:e.marginSM}}},CG=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:o,componentCls:r}=e;return[{[`${r}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:v(v({},wp()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"100%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${o} ${t} 0s`,userSelect:"none",pointerEvents:"auto","&-wrapper":v(v({},wp()),{transition:`transform ${o} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${r}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${r}-preview-operations-wrapper`]:{position:"fixed",insetBlockStart:0,insetInlineEnd:0,zIndex:e.zIndexPopup+1,width:"100%"},"&":[SG(e),$G(e)]}]},xG=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:v({},yG(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:v({},wp())}}},wG=e=>{const{previewCls:t}=e;return{[`${t}-root`]:el(e,"zoom"),"&":bx(e,!0)}},R3=Qe("Image",e=>{const t=`${e.componentCls}-preview`,n=ze(e,{previewCls:t,modalMaskBg:new st("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[xG(n),CG(n),A3(ze(n,{componentCls:t})),wG(n)]},e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new st(e.colorTextLightSolid).toRgbString(),previewOperationColorDisabled:new st(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5})),N3={rotateLeft:f(ZK,null,null),rotateRight:f(nG,null,null),zoomIn:f(lG,null,null),zoomOut:f(uG,null,null),close:f(io,null,null),left:f(Wa,null,null),right:f(sr,null,null),flipX:f(Ny,null,null),flipY:f(Ny,{rotate:90},null)},OG=()=>({previewPrefixCls:String,preview:xt()}),PG=J({compatConfig:{MODE:3},name:"AImagePreviewGroup",inheritAttrs:!1,props:OG(),setup(e,t){let{attrs:n,slots:o}=t;const{prefixCls:r,rootPrefixCls:a}=Ee("image",e),l=P(()=>`${r.value}-preview`),[i,s]=R3(r),u=P(()=>{const{preview:c}=e;if(c===!1)return c;const d=typeof c=="object"?c:{};return v(v({},d),{rootClassName:s.value,transitionName:en(a.value,"zoom",d.transitionName),maskTransitionName:en(a.value,"fade",d.maskTransitionName)})});return()=>i(f(T3,N(N({},v(v({},n),e)),{},{preview:u.value,icons:N3,previewPrefixCls:l.value}),o))}}),IG=PG,Tr=J({name:"AImage",inheritAttrs:!1,props:E3(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,rootPrefixCls:a,configProvider:l}=Ee("image",e),[i,s]=R3(r),u=P(()=>{const{preview:c}=e;if(c===!1)return c;const d=typeof c=="object"?c:{};return v(v({icons:N3},d),{transitionName:en(a.value,"zoom",d.transitionName),maskTransitionName:en(a.value,"fade",d.maskTransitionName)})});return()=>{var c,d;const p=((d=(c=l.locale)===null||c===void 0?void 0:c.value)===null||d===void 0?void 0:d.Image)||Gn.Image,g=()=>f("div",{class:`${r.value}-mask-info`},[f(mh,null,null),p==null?void 0:p.preview]),{previewMask:m=n.previewMask||g}=e;return i(f(UK,N(N({},v(v(v({},o),e),{prefixCls:r.value})),{},{preview:u.value,rootClassName:te(e.rootClassName,s.value)}),v(v({},n),{previewMask:typeof m=="function"?m:null})))}}});Tr.PreviewGroup=IG;Tr.install=function(e){return e.component(Tr.name,Tr),e.component(Tr.PreviewGroup.name,Tr.PreviewGroup),e};const Soe=Tr;var TG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};const MG=TG;function By(e){for(var t=1;tNumber.MAX_SAFE_INTEGER)return String(Op()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(eNumber.MAX_SAFE_INTEGER)return new Mr(Number.MAX_SAFE_INTEGER);if(o0&&arguments[0]!==void 0?arguments[0]:!0)?this.isInvalidate()?"":Ih(this.number):this.origin}}class ma{constructor(t){if(this.origin="",k3(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}let n=t;if(Ph(n)&&(n=Number(n)),n=typeof n=="string"?n:Ih(n),Th(n)){const o=Nl(n);this.negative=o.negative;const r=o.trimStr.split(".");this.integer=BigInt(r[0]);const a=r[1]||"0";this.decimal=BigInt(a),this.decimalLen=a.length}else this.nan=!0}getMark(){return this.negative?"-":""}getIntegerStr(){return this.integer.toString()}getDecimalStr(){return this.decimal.toString().padStart(this.decimalLen,"0")}alignDecimal(t){const n=`${this.getMark()}${this.getIntegerStr()}${this.getDecimalStr().padEnd(t,"0")}`;return BigInt(n)}negate(){const t=new ma(this.toString());return t.negative=!t.negative,t}add(t){if(this.isInvalidate())return new ma(t);const n=new ma(t);if(n.isInvalidate())return this;const o=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),r=this.alignDecimal(o),a=n.alignDecimal(o),l=(r+a).toString(),{negativeStr:i,trimStr:s}=Nl(l),u=`${i}${s.padStart(o+1,"0")}`;return new ma(`${u.slice(0,-o)}.${u.slice(-o)}`)}isEmpty(){return this.empty}isNaN(){return this.nan}isInvalidate(){return this.isEmpty()||this.isNaN()}equals(t){return this.toString()===(t==null?void 0:t.toString())}lessEquals(t){return this.add(t.negate().toString()).toNumber()<=0}toNumber(){return this.isNaN()?NaN:Number(this.toString())}toString(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0)?this.isInvalidate()?"":Nl(`${this.getMark()}${this.getIntegerStr()}.${this.getDecimalStr()}`).fullStr:this.origin}}function fo(e){return Op()?new ma(e):new Mr(e)}function Pp(e,t,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";const{negativeStr:r,integerStr:a,decimalStr:l}=Nl(e),i=`${t}${l}`,s=`${r}${a}`;if(n>=0){const u=Number(l[n]);if(u>=5&&!o){const c=fo(e).add(`${r}0.${"0".repeat(n)}${10-u}`);return Pp(c.toString(),t,n,o)}return n===0?s:`${s}${t}${l.padEnd(n,"0").slice(0,n)}`}return i===".0"?s:`${s}${i}`}const DG=200,AG=600,RG=J({compatConfig:{MODE:3},name:"StepHandler",inheritAttrs:!1,props:{prefixCls:String,upDisabled:Boolean,downDisabled:Boolean,onStep:de()},slots:Object,setup(e,t){let{slots:n,emit:o}=t;const r=Z(),a=(i,s)=>{i.preventDefault(),o("step",s);function u(){o("step",s),r.value=setTimeout(u,DG)}r.value=setTimeout(u,AG)},l=()=>{clearTimeout(r.value)};return Je(()=>{l()}),()=>{if(jv())return null;const{prefixCls:i,upDisabled:s,downDisabled:u}=e,c=`${i}-handler`,d=te(c,`${c}-up`,{[`${c}-up-disabled`]:s}),p=te(c,`${c}-down`,{[`${c}-down-disabled`]:u}),g={unselectable:"on",role:"button",onMouseup:l,onMouseleave:l},{upNode:m,downNode:h}=n;return f("div",{class:`${c}-wrap`},[f("span",N(N({},g),{},{onMousedown:b=>{a(b,!0)},"aria-label":"Increase Value","aria-disabled":s,class:d}),[(m==null?void 0:m())||f("span",{unselectable:"on",class:`${i}-handler-up-inner`},null)]),f("span",N(N({},g),{},{onMousedown:b=>{a(b,!1)},"aria-label":"Decrease Value","aria-disabled":u,class:p}),[(h==null?void 0:h())||f("span",{unselectable:"on",class:`${i}-handler-down-inner`},null)])])}}});function NG(e,t){const n=Z(null);function o(){try{const{selectionStart:a,selectionEnd:l,value:i}=e.value,s=i.substring(0,a),u=i.substring(l);n.value={start:a,end:l,value:i,beforeTxt:s,afterTxt:u}}catch{}}function r(){if(e.value&&n.value&&t.value)try{const{value:a}=e.value,{beforeTxt:l,afterTxt:i,start:s}=n.value;let u=a.length;if(a.endsWith(i))u=a.length-n.value.afterTxt.length;else if(a.startsWith(l))u=l.length;else{const c=l[s-1],d=a.indexOf(c,s-1);d!==-1&&(u=d+1)}e.value.setSelectionRange(u,u)}catch(a){`${a.message}`}}return[o,r]}const kG=()=>{const e=Y(0),t=()=>{We.cancel(e.value)};return Je(()=>{t()}),n=>{t(),e.value=We(()=>{n()})}};var BG=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);re||t.isEmpty()?t.toString():t.toNumber(),Ly=e=>{const t=fo(e);return t.isInvalidate()?null:t},B3=()=>({stringMode:Ce(),defaultValue:Ge([String,Number]),value:Ge([String,Number]),prefixCls:je(),min:Ge([String,Number]),max:Ge([String,Number]),step:Ge([String,Number],1),tabindex:Number,controls:Ce(!0),readonly:Ce(),disabled:Ce(),autofocus:Ce(),keyboard:Ce(!0),parser:de(),formatter:de(),precision:Number,decimalSeparator:String,onInput:de(),onChange:de(),onPressEnter:de(),onStep:de(),onBlur:de(),onFocus:de()}),FG=J({compatConfig:{MODE:3},name:"InnerInputNumber",inheritAttrs:!1,props:v(v({},B3()),{lazy:Boolean}),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:r,expose:a}=t;const l=Y(),i=Y(!1),s=Y(!1),u=Y(!1),c=Y(fo(e.value));function d(L){e.value===void 0&&(c.value=L)}const p=(L,j)=>{if(!j)return e.precision>=0?e.precision:Math.max(ti(L),ti(e.step))},g=L=>{const j=String(L);if(e.parser)return e.parser(j);let K=j;return e.decimalSeparator&&(K=K.replace(e.decimalSeparator,".")),K.replace(/[^\w.-]+/g,"")},m=Y(""),h=(L,j)=>{if(e.formatter)return e.formatter(L,{userTyping:j,input:String(m.value)});let K=typeof L=="number"?Ih(L):L;if(!j){const G=p(K,j);if(Th(K)&&(e.decimalSeparator||G>=0)){const U=e.decimalSeparator||".";K=Pp(K,U,G)}}return K},b=(()=>{const L=e.value;return c.value.isInvalidate()&&["string","number"].includes(typeof L)?Number.isNaN(L)?"":L:h(c.value.toString(),!1)})();m.value=b;function y(L,j){m.value=h(L.isInvalidate()?L.toString(!1):L.toString(!j),j)}const S=P(()=>Ly(e.max)),$=P(()=>Ly(e.min)),x=P(()=>!S.value||!c.value||c.value.isInvalidate()?!1:S.value.lessEquals(c.value)),C=P(()=>!$.value||!c.value||c.value.isInvalidate()?!1:c.value.lessEquals($.value)),[O,w]=NG(l,i),M=L=>S.value&&!L.lessEquals(S.value)?S.value:$.value&&!$.value.lessEquals(L)?$.value:null,I=L=>!M(L),_=(L,j)=>{var K;let G=L,U=I(G)||G.isEmpty();if(!G.isEmpty()&&!j&&(G=M(G)||G,U=!0),!e.readonly&&!e.disabled&&U){const X=G.toString(),ee=p(X,j);return ee>=0&&(G=fo(Pp(X,".",ee))),G.equals(c.value)||(d(G),(K=e.onChange)===null||K===void 0||K.call(e,G.isEmpty()?null:Fy(e.stringMode,G)),e.value===void 0&&y(G,j)),G}return c.value},D=kG(),F=L=>{var j;if(O(),m.value=L,!u.value){const K=g(L),G=fo(K);G.isNaN()||_(G,!0)}(j=e.onInput)===null||j===void 0||j.call(e,L),D(()=>{let K=L;e.parser||(K=L.replace(/。/g,".")),K!==L&&F(K)})},z=()=>{u.value=!0},H=()=>{u.value=!1,F(l.value.value)},T=L=>{F(L.target.value)},A=L=>{var j,K;if(L&&x.value||!L&&C.value)return;s.value=!1;let G=fo(e.step);L||(G=G.negate());const U=(c.value||fo(0)).add(G.toString()),X=_(U,!1);(j=e.onStep)===null||j===void 0||j.call(e,Fy(e.stringMode,X),{offset:e.step,type:L?"up":"down"}),(K=l.value)===null||K===void 0||K.focus()},R=L=>{const j=fo(g(m.value));let K=j;j.isNaN()?K=c.value:K=_(j,L),e.value!==void 0?y(c.value,!1):K.isNaN()||y(K,!1)},E=L=>{var j;const{which:K}=L;s.value=!0,K===$e.ENTER&&(u.value||(s.value=!1),R(!1),(j=e.onPressEnter)===null||j===void 0||j.call(e,L)),e.keyboard!==!1&&!u.value&&[$e.UP,$e.DOWN].includes(K)&&(A($e.UP===K),L.preventDefault())},k=()=>{s.value=!1},B=L=>{R(!1),i.value=!1,s.value=!1,r("blur",L)};return ue(()=>e.precision,()=>{c.value.isInvalidate()||y(c.value,!1)},{flush:"post"}),ue(()=>e.value,()=>{const L=fo(e.value);c.value=L;const j=fo(g(m.value));(!L.equals(j)||!s.value||e.formatter)&&y(L,s.value)},{flush:"post"}),ue(m,()=>{e.formatter&&w()},{flush:"post"}),ue(()=>e.disabled,L=>{L&&(i.value=!1)}),a({focus:()=>{var L;(L=l.value)===null||L===void 0||L.focus()},blur:()=>{var L;(L=l.value)===null||L===void 0||L.blur()}}),()=>{const L=v(v({},n),e),{prefixCls:j="rc-input-number",min:K,max:G,step:U=1,defaultValue:X,value:ee,disabled:oe,readonly:Q,keyboard:W,controls:q=!0,autofocus:re,stringMode:le,parser:ye,formatter:me,precision:ce,decimalSeparator:se,onChange:ie,onInput:fe,onPressEnter:Se,onStep:Ie,lazy:ge,class:Oe,style:we}=L,ae=BG(L,["prefixCls","min","max","step","defaultValue","value","disabled","readonly","keyboard","controls","autofocus","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","lazy","class","style"]),{upHandler:ne,downHandler:pe}=o,xe=`${j}-input`,Te={};return ge?Te.onChange=T:Te.onInput=T,f("div",{class:te(j,Oe,{[`${j}-focused`]:i.value,[`${j}-disabled`]:oe,[`${j}-readonly`]:Q,[`${j}-not-a-number`]:c.value.isNaN(),[`${j}-out-of-range`]:!c.value.isInvalidate()&&!I(c.value)}),style:we,onKeydown:E,onKeyup:k},[q&&f(RG,{prefixCls:j,upDisabled:x.value,downDisabled:C.value,onStep:A},{upNode:ne,downNode:pe}),f("div",{class:`${xe}-wrap`},[f("input",N(N(N({autofocus:re,autocomplete:"off",role:"spinbutton","aria-valuemin":K,"aria-valuemax":G,"aria-valuenow":c.value.isInvalidate()?null:c.value.toString(),step:U},ae),{},{ref:l,class:xe,value:m.value,disabled:oe,readonly:Q,onFocus:ke=>{i.value=!0,r("focus",ke)}},Te),{},{onBlur:B,onCompositionstart:z,onCompositionend:H}),null)])])}}});function Ad(e){return e!=null}const LG=e=>{const{componentCls:t,lineWidth:n,lineType:o,colorBorder:r,borderRadius:a,fontSizeLG:l,controlHeightLG:i,controlHeightSM:s,colorError:u,inputPaddingHorizontalSM:c,colorTextDescription:d,motionDurationMid:p,colorPrimary:g,controlHeight:m,inputPaddingHorizontal:h,colorBgContainer:b,colorTextDisabled:y,borderRadiusSM:S,borderRadiusLG:$,controlWidth:x,handleVisible:C}=e;return[{[t]:v(v(v(v({},et(e)),al(e)),qc(e,t)),{display:"inline-block",width:x,margin:0,padding:0,border:`${n}px ${o} ${r}`,borderRadius:a,"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:l,borderRadius:$,[`input${t}-input`]:{height:i-2*n}},"&-sm":{padding:0,borderRadius:S,[`input${t}-input`]:{height:s-2*n,padding:`0 ${c}px`}},"&:hover":v({},rl(e)),"&-focused":v({},Wr(e)),"&-disabled":v(v({},jw(e)),{[`${t}-input`]:{cursor:"not-allowed"}}),"&-out-of-range":{input:{color:u}},"&-group":v(v(v({},et(e)),Ww(e)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:$}},"&-sm":{[`${t}-group-addon`]:{borderRadius:S}}}}),[t]:{"&-input":v(v({width:"100%",height:m-2*n,padding:`0 ${h}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:a,outline:0,transition:`all ${p} linear`,appearance:"textfield",color:e.colorText,fontSize:"inherit",verticalAlign:"top"},Hw(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:{[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",background:b,borderStartStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a,borderEndStartRadius:0,opacity:C===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${p} linear ${p}`,[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` + ${t}-handler-up-inner, + ${t}-handler-down-inner + `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:d,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${n}px ${o} ${r}`,transition:`all ${p} linear`,"&:active":{background:e.colorFillAlter},"&:hover":{height:"60%",[` + ${t}-handler-up-inner, + ${t}-handler-down-inner + `]:{color:g}},"&-up-inner, &-down-inner":v(v({},ai()),{color:d,transition:`all ${p} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:a},[`${t}-handler-down`]:{borderBlockStart:`${n}px ${o} ${r}`,borderEndEndRadius:a},"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"}},[` + ${t}-handler-up-disabled, + ${t}-handler-down-disabled + `]:{cursor:"not-allowed"},[` + ${t}-handler-up-disabled:hover &-handler-up-inner, + ${t}-handler-down-disabled:hover &-handler-down-inner + `]:{color:y}}},{[`${t}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${t}-handler-down`]:{borderBlockStartWidth:0}}}]},zG=e=>{const{componentCls:t,inputPaddingHorizontal:n,inputAffixPadding:o,controlWidth:r,borderRadiusLG:a,borderRadiusSM:l}=e;return{[`${t}-affix-wrapper`]:v(v(v({},al(e)),qc(e,`${t}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:r,padding:0,paddingInlineStart:n,"&-lg":{borderRadius:a},"&-sm":{borderRadius:l},[`&:not(${t}-affix-wrapper-disabled):hover`]:v(v({},rl(e)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},[`input${t}-input`]:{padding:0},"&::before":{width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:n,marginInlineStart:o}}})}},HG=Qe("InputNumber",e=>{const t=fi(e);return[LG(t),zG(t),tl(t)]},e=>({controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:"auto"}));var jG=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rv(v({},zy),{size:je(),bordered:Ce(!0),placeholder:String,name:String,id:String,type:String,addonBefore:V.any,addonAfter:V.any,prefix:V.any,"onUpdate:value":zy.onChange,valueModifiers:Object,status:je()}),Rd=J({compatConfig:{MODE:3},name:"AInputNumber",inheritAttrs:!1,props:VG(),slots:Object,setup(e,t){let{emit:n,expose:o,attrs:r,slots:a}=t;const l=Ht(),i=ln.useInject(),s=P(()=>Vo(i.status,e.status)),{prefixCls:u,size:c,direction:d,disabled:p}=Ee("input-number",e),{compactSize:g,compactItemClassnames:m}=fr(u,d),h=gn(),b=P(()=>{var F;return(F=p.value)!==null&&F!==void 0?F:h.value}),[y,S]=HG(u),$=P(()=>g.value||c.value),x=Y(e.value===void 0?e.defaultValue:e.value),C=Y(!1);ue(()=>e.value,()=>{x.value=e.value});const O=Y(null),w=()=>{var F;(F=O.value)===null||F===void 0||F.focus()};o({focus:w,blur:()=>{var F;(F=O.value)===null||F===void 0||F.blur()}});const I=F=>{e.value===void 0&&(x.value=F),n("update:value",F),n("change",F),l.onFieldChange()},_=F=>{C.value=!1,n("blur",F),l.onFieldBlur()},D=F=>{C.value=!0,n("focus",F)};return()=>{var F,z,H,T;const{hasFeedback:A,isFormItemInput:R,feedbackIcon:E}=i,k=(F=e.id)!==null&&F!==void 0?F:l.id.value,B=v(v(v({},r),e),{id:k,disabled:b.value}),{class:L,bordered:j,readonly:K,style:G,addonBefore:U=(z=a.addonBefore)===null||z===void 0?void 0:z.call(a),addonAfter:X=(H=a.addonAfter)===null||H===void 0?void 0:H.call(a),prefix:ee=(T=a.prefix)===null||T===void 0?void 0:T.call(a),valueModifiers:oe={}}=B,Q=jG(B,["class","bordered","readonly","style","addonBefore","addonAfter","prefix","valueModifiers"]),W=u.value,q=te({[`${W}-lg`]:$.value==="large",[`${W}-sm`]:$.value==="small",[`${W}-rtl`]:d.value==="rtl",[`${W}-readonly`]:K,[`${W}-borderless`]:!j,[`${W}-in-form-item`]:R},Tn(W,s.value),L,m.value,S.value);let re=f(FG,N(N({},qe(Q,["size","defaultValue"])),{},{ref:O,lazy:!!oe.lazy,value:x.value,class:q,prefixCls:W,readonly:K,onChange:I,onBlur:_,onFocus:D}),{upHandler:a.upIcon?()=>f("span",{class:`${W}-handler-up-inner`},[a.upIcon()]):()=>f(_G,{class:`${W}-handler-up-inner`},null),downHandler:a.downIcon?()=>f("span",{class:`${W}-handler-down-inner`},[a.downIcon()]):()=>f(Nc,{class:`${W}-handler-down-inner`},null)});const le=Ad(U)||Ad(X),ye=Ad(ee);if(ye||A){const me=te(`${W}-affix-wrapper`,Tn(`${W}-affix-wrapper`,s.value,A),{[`${W}-affix-wrapper-focused`]:C.value,[`${W}-affix-wrapper-disabled`]:b.value,[`${W}-affix-wrapper-sm`]:$.value==="small",[`${W}-affix-wrapper-lg`]:$.value==="large",[`${W}-affix-wrapper-rtl`]:d.value==="rtl",[`${W}-affix-wrapper-readonly`]:K,[`${W}-affix-wrapper-borderless`]:!j,[`${L}`]:!le&&L},S.value);re=f("div",{class:me,style:G,onClick:w},[ye&&f("span",{class:`${W}-prefix`},[ee]),re,A&&f("span",{class:`${W}-suffix`},[E])])}if(le){const me=`${W}-group`,ce=`${me}-addon`,se=U?f("div",{class:ce},[U]):null,ie=X?f("div",{class:ce},[X]):null,fe=te(`${W}-wrapper`,me,{[`${me}-rtl`]:d.value==="rtl"},S.value),Se=te(`${W}-group-wrapper`,{[`${W}-group-wrapper-sm`]:$.value==="small",[`${W}-group-wrapper-lg`]:$.value==="large",[`${W}-group-wrapper-rtl`]:d.value==="rtl"},Tn(`${u}-group-wrapper`,s.value,A),L,S.value);re=f("div",{class:Se,style:G},[f("div",{class:fe},[se&&f(Yl,null,{default:()=>[f(Fs,null,{default:()=>[se]})]}),re,ie&&f(Yl,null,{default:()=>[f(Fs,null,{default:()=>[ie]})]})])])}return y(ut(re,{style:G}))}}}),$oe=v(Rd,{install:e=>(e.component(Rd.name,Rd),e)}),WG=e=>{const{componentCls:t,colorBgContainer:n,colorBgBody:o,colorText:r}=e;return{[`${t}-sider-light`]:{background:n,[`${t}-sider-trigger`]:{color:r,background:n},[`${t}-sider-zero-width-trigger`]:{color:r,background:n,border:`1px solid ${o}`,borderInlineStart:0}}}},KG=e=>{const{antCls:t,componentCls:n,colorText:o,colorTextLightSolid:r,colorBgHeader:a,colorBgBody:l,colorBgTrigger:i,layoutHeaderHeight:s,layoutHeaderPaddingInline:u,layoutHeaderColor:c,layoutFooterPadding:d,layoutTriggerHeight:p,layoutZeroTriggerSize:g,motionDurationMid:m,motionDurationSlow:h,fontSize:b,borderRadius:y}=e;return{[n]:v(v({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:l,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},[`${n}-header`]:{height:s,paddingInline:u,color:c,lineHeight:`${s}px`,background:a,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:d,color:o,fontSize:b,background:l},[`${n}-content`]:{flex:"auto",minHeight:0},[`${n}-sider`]:{position:"relative",minWidth:0,background:a,transition:`all ${m}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${t}-menu${t}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:p},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:p,color:r,lineHeight:`${p}px`,textAlign:"center",background:i,cursor:"pointer",transition:`all ${m}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:s,insetInlineEnd:-g,zIndex:1,width:g,height:g,color:r,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:a,borderStartStartRadius:0,borderStartEndRadius:y,borderEndEndRadius:y,borderEndStartRadius:0,cursor:"pointer",transition:`background ${h} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${h}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-g,borderStartStartRadius:y,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:y}}}}},WG(e)),{"&-rtl":{direction:"rtl"}})}},GG=Qe("Layout",e=>{const{colorText:t,controlHeightSM:n,controlHeight:o,controlHeightLG:r,marginXXS:a}=e,l=r*1.25,i=ze(e,{layoutHeaderHeight:o*2,layoutHeaderPaddingInline:l,layoutHeaderColor:t,layoutFooterPadding:`${n}px ${l}px`,layoutTriggerHeight:r+a*2,layoutZeroTriggerSize:r});return[KG(i)]},e=>{const{colorBgLayout:t}=e;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140"}}),Mh=()=>({prefixCls:String,hasSider:{type:Boolean,default:void 0},tagName:String});function du(e){let{suffixCls:t,tagName:n,name:o}=e;return r=>J({compatConfig:{MODE:3},name:o,props:Mh(),setup(l,i){let{slots:s}=i;const{prefixCls:u}=Ee(t,l);return()=>{const c=v(v({},l),{prefixCls:u.value,tagName:n});return f(r,c,s)}}})}const Eh=J({compatConfig:{MODE:3},props:Mh(),setup(e,t){let{slots:n}=t;return()=>f(e.tagName,{class:e.prefixCls},n)}}),XG=J({compatConfig:{MODE:3},inheritAttrs:!1,props:Mh(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:a}=Ee("",e),[l,i]=GG(r),s=Z([]);Ke(Jx,{addSider:d=>{s.value=[...s.value,d]},removeSider:d=>{s.value=s.value.filter(p=>p!==d)}});const c=P(()=>{const{prefixCls:d,hasSider:p}=e;return{[i.value]:!0,[`${d}`]:!0,[`${d}-has-sider`]:typeof p=="boolean"?p:s.value.length>0,[`${d}-rtl`]:a.value==="rtl"}});return()=>{const{tagName:d}=e;return l(f(d,v(v({},o),{class:[c.value,o.class]}),n))}}}),UG=du({suffixCls:"layout",tagName:"section",name:"ALayout"})(XG),Nd=du({suffixCls:"layout-header",tagName:"header",name:"ALayoutHeader"})(Eh),kd=du({suffixCls:"layout-footer",tagName:"footer",name:"ALayoutFooter"})(Eh),Bd=du({suffixCls:"layout-content",tagName:"main",name:"ALayoutContent"})(Eh),Fd=UG;var YG={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};const qG=YG;function Hy(e){for(var t=1;t({prefixCls:String,collapsible:{type:Boolean,default:void 0},collapsed:{type:Boolean,default:void 0},defaultCollapsed:{type:Boolean,default:void 0},reverseArrow:{type:Boolean,default:void 0},zeroWidthTriggerStyle:{type:Object,default:void 0},trigger:V.any,width:V.oneOfType([V.number,V.string]),collapsedWidth:V.oneOfType([V.number,V.string]),breakpoint:V.oneOf(vn("xs","sm","md","lg","xl","xxl","xxxl")),theme:V.oneOf(vn("light","dark")).def("dark"),onBreakpoint:Function,onCollapse:Function}),eX=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),Ld=J({compatConfig:{MODE:3},name:"ALayoutSider",inheritAttrs:!1,props:rt(JG(),{collapsible:!1,defaultCollapsed:!1,reverseArrow:!1,width:200,collapsedWidth:80}),emits:["breakpoint","update:collapsed","collapse"],setup(e,t){let{emit:n,attrs:o,slots:r}=t;const{prefixCls:a}=Ee("layout-sider",e),l=Xe(Jx,void 0),i=Y(!!(e.collapsed!==void 0?e.collapsed:e.defaultCollapsed)),s=Y(!1);ue(()=>e.collapsed,()=>{i.value=!!e.collapsed}),Ke(Zx,i);const u=(h,b)=>{e.collapsed===void 0&&(i.value=h),n("update:collapsed",h),n("collapse",h,b)},c=Y(h=>{s.value=h.matches,n("breakpoint",h.matches),i.value!==h.matches&&u(h.matches,"responsive")});let d;function p(h){return c.value(h)}const g=eX("ant-sider-");l&&l.addSider(g),Ve(()=>{ue(()=>e.breakpoint,()=>{try{d==null||d.removeEventListener("change",p)}catch{d==null||d.removeListener(p)}if(typeof window<"u"){const{matchMedia:h}=window;if(h&&e.breakpoint&&e.breakpoint in jy){d=h(`(max-width: ${jy[e.breakpoint]})`);try{d.addEventListener("change",p)}catch{d.addListener(p)}p(d)}}},{immediate:!0})}),Je(()=>{try{d==null||d.removeEventListener("change",p)}catch{d==null||d.removeListener(p)}l&&l.removeSider(g)});const m=()=>{u(!i.value,"clickTrigger")};return()=>{var h,b;const y=a.value,{collapsedWidth:S,width:$,reverseArrow:x,zeroWidthTriggerStyle:C,trigger:O=(h=r.trigger)===null||h===void 0?void 0:h.call(r),collapsible:w,theme:M}=e,I=i.value?S:$,_=Ls(I)?`${I}px`:String(I),D=parseFloat(String(S||0))===0?f("span",{onClick:m,class:te(`${y}-zero-width-trigger`,`${y}-zero-width-trigger-${x?"right":"left"}`),style:C},[O||f(ZG,null,null)]):null,F={expanded:x?f(sr,null,null):f(Wa,null,null),collapsed:x?f(Wa,null,null):f(sr,null,null)},z=i.value?"collapsed":"expanded",H=F[z],T=O!==null?D||f("div",{class:`${y}-trigger`,onClick:m,style:{width:_}},[O||H]):null,A=[o.style,{flex:`0 0 ${_}`,maxWidth:_,minWidth:_,width:_}],R=te(y,`${y}-${M}`,{[`${y}-collapsed`]:!!i.value,[`${y}-has-trigger`]:w&&O!==null&&!D,[`${y}-below`]:!!s.value,[`${y}-zero-width`]:parseFloat(_)===0},o.class);return f("aside",N(N({},o),{},{class:R,style:A}),[f("div",{class:`${y}-children`},[(b=r.default)===null||b===void 0?void 0:b.call(r)]),w||s.value&&D?T:null])}}}),Coe=v(Fd,{Header:Nd,Footer:kd,Content:Bd,Sider:Ld,install:e=>(e.component(Fd.name,Fd),e.component(Nd.name,Nd),e.component(kd.name,kd),e.component(Ld.name,Ld),e.component(Bd.name,Bd),e)});function tX(e,t,n){var o=n||{},r=o.noTrailing,a=r===void 0?!1:r,l=o.noLeading,i=l===void 0?!1:l,s=o.debounceMode,u=s===void 0?void 0:s,c,d=!1,p=0;function g(){c&&clearTimeout(c)}function m(b){var y=b||{},S=y.upcomingOnly,$=S===void 0?!1:S;g(),d=!$}function h(){for(var b=arguments.length,y=new Array(b),S=0;Se?i?(p=Date.now(),a||(c=setTimeout(u?O:C,e))):C():a!==!0&&(c=setTimeout(u?O:C,u===void 0?e-x:e))}return h.cancel=m,h}function nX(e,t,n){var o=n||{},r=o.atBegin,a=r===void 0?!1:r;return tX(e,t,{debounceMode:a!==!1})}const oX=new Ue("antSpinMove",{to:{opacity:1}}),rX=new Ue("antRotate",{to:{transform:"rotate(405deg)"}}),aX=e=>({[`${e.componentCls}`]:v(v({},et(e)),{position:"absolute",display:"none",color:e.colorPrimary,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},"&-nested-loading":{position:"relative",[`> div > ${e.componentCls}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${e.componentCls}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:-e.spinDotSize/2},[`${e.componentCls}-text`]:{position:"absolute",top:"50%",width:"100%",paddingTop:(e.spinDotSize-e.fontSize)/2+2,textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSize/2)-10},"&-sm":{[`${e.componentCls}-dot`]:{margin:-e.spinDotSizeSM/2},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeSM-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSizeSM/2)-10}},"&-lg":{[`${e.componentCls}-dot`]:{margin:-(e.spinDotSizeLG/2)},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeLG-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSizeLG/2)-10}}},[`${e.componentCls}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${e.componentCls}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${e.componentCls}-dot`]:{position:"relative",display:"inline-block",fontSize:e.spinDotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:(e.spinDotSize-e.marginXXS/2)/2,height:(e.spinDotSize-e.marginXXS/2)/2,backgroundColor:e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:oX,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:rX,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeSM,i:{width:(e.spinDotSizeSM-e.marginXXS/2)/2,height:(e.spinDotSizeSM-e.marginXXS/2)/2}},[`&-lg ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeLG,i:{width:(e.spinDotSizeLG-e.marginXXS)/2,height:(e.spinDotSizeLG-e.marginXXS)/2}},[`&${e.componentCls}-show-text ${e.componentCls}-text`]:{display:"block"}})}),lX=Qe("Spin",e=>{const t=ze(e,{spinDotDefault:e.colorTextDescription,spinDotSize:e.controlHeightLG/2,spinDotSizeSM:e.controlHeightLG*.35,spinDotSizeLG:e.controlHeight});return[aX(t)]},{contentHeight:400});var iX=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({prefixCls:String,spinning:{type:Boolean,default:void 0},size:String,wrapperClassName:String,tip:V.any,delay:Number,indicator:V.any});let hs=null;function cX(e,t){return!!e&&!!t&&!isNaN(Number(t))}function uX(e){const t=e.indicator;hs=typeof t=="function"?t:()=>f(t,null,null)}const kl=J({compatConfig:{MODE:3},name:"ASpin",inheritAttrs:!1,props:rt(sX(),{size:"default",spinning:!0,wrapperClassName:""}),setup(e,t){let{attrs:n,slots:o}=t;const{prefixCls:r,size:a,direction:l}=Ee("spin",e),[i,s]=lX(r),u=Y(e.spinning&&!cX(e.spinning,e.delay));let c;return ue([()=>e.spinning,()=>e.delay],()=>{c==null||c.cancel(),c=nX(e.delay,()=>{u.value=e.spinning}),c==null||c()},{immediate:!0,flush:"post"}),Je(()=>{c==null||c.cancel()}),()=>{var d,p;const{class:g}=n,m=iX(n,["class"]),{tip:h=(d=o.tip)===null||d===void 0?void 0:d.call(o)}=e,b=(p=o.default)===null||p===void 0?void 0:p.call(o),y={[s.value]:!0,[r.value]:!0,[`${r.value}-sm`]:a.value==="small",[`${r.value}-lg`]:a.value==="large",[`${r.value}-spinning`]:u.value,[`${r.value}-show-text`]:!!h,[`${r.value}-rtl`]:l.value==="rtl",[g]:!!g};function S(x){const C=`${x}-dot`;let O=Nt(o,e,"indicator");return O===null?null:(Array.isArray(O)&&(O=O.length===1?O[0]:O),Zt(O)?ko(O,{class:C}):hs&&Zt(hs())?ko(hs(),{class:C}):f("span",{class:`${C} ${x}-dot-spin`},[f("i",{class:`${x}-dot-item`},null),f("i",{class:`${x}-dot-item`},null),f("i",{class:`${x}-dot-item`},null),f("i",{class:`${x}-dot-item`},null)]))}const $=f("div",N(N({},m),{},{class:y,"aria-live":"polite","aria-busy":u.value}),[S(r.value),h?f("div",{class:`${r.value}-text`},[h]):null]);if(b&&Tt(b).length){const x={[`${r.value}-container`]:!0,[`${r.value}-blur`]:u.value};return i(f("div",{class:[`${r.value}-nested-loading`,e.wrapperClassName,s.value]},[u.value&&f("div",{key:"loading"},[$]),f("div",{class:x,key:"container"},[b])]))}return i($)}}});kl.setDefaultIndicator=uX;kl.install=function(e){return e.component(kl.name,kl),e};var dX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};const fX=dX;function Vy(e){for(var t=1;t{const r=v(v(v({},e),{size:"small"}),n);return f(Ha,r,o)}}}),bX=J({name:"MiddleSelect",inheritAttrs:!1,props:Vc(),Option:Ha.Option,setup(e,t){let{attrs:n,slots:o}=t;return()=>{const r=v(v(v({},e),{size:"middle"}),n);return f(Ha,r,o)}}}),yr=J({compatConfig:{MODE:3},name:"Pager",inheritAttrs:!1,props:{rootPrefixCls:String,page:Number,active:{type:Boolean,default:void 0},last:{type:Boolean,default:void 0},locale:V.object,showTitle:{type:Boolean,default:void 0},itemRender:{type:Function,default:()=>{}},onClick:{type:Function},onKeypress:{type:Function}},eimt:["click","keypress"],setup(e,t){let{emit:n,attrs:o}=t;const r=()=>{n("click",e.page)},a=l=>{n("keypress",l,r,e.page)};return()=>{const{showTitle:l,page:i,itemRender:s}=e,{class:u,style:c}=o,d=`${e.rootPrefixCls}-item`,p=te(d,`${d}-${e.page}`,{[`${d}-active`]:e.active,[`${d}-disabled`]:!e.page},u);return f("li",{onClick:r,onKeypress:a,title:l?String(i):null,tabindex:"0",class:p,style:c},[s({page:i,type:"page",originalElement:f("a",{rel:"nofollow"},[i])})])}}}),Cr={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},yX=J({compatConfig:{MODE:3},props:{disabled:{type:Boolean,default:void 0},changeSize:Function,quickGo:Function,selectComponentClass:V.any,current:Number,pageSizeOptions:V.array.def(["10","20","50","100"]),pageSize:Number,buildOptionText:Function,locale:V.object,rootPrefixCls:String,selectPrefixCls:String,goButton:V.any},setup(e){const t=Z(""),n=P(()=>!t.value||isNaN(t.value)?void 0:Number(t.value)),o=s=>`${s.value} ${e.locale.items_per_page}`,r=s=>{const{value:u,composing:c}=s.target;s.isComposing||c||t.value===u||(t.value=u)},a=s=>{const{goButton:u,quickGo:c,rootPrefixCls:d}=e;if(!(u||t.value===""))if(s.relatedTarget&&(s.relatedTarget.className.indexOf(`${d}-item-link`)>=0||s.relatedTarget.className.indexOf(`${d}-item`)>=0)){t.value="";return}else c(n.value),t.value=""},l=s=>{t.value!==""&&(s.keyCode===Cr.ENTER||s.type==="click")&&(e.quickGo(n.value),t.value="")},i=P(()=>{const{pageSize:s,pageSizeOptions:u}=e;return u.some(c=>c.toString()===s.toString())?u:u.concat([s.toString()]).sort((c,d)=>{const p=isNaN(Number(c))?0:Number(c),g=isNaN(Number(d))?0:Number(d);return p-g})});return()=>{const{rootPrefixCls:s,locale:u,changeSize:c,quickGo:d,goButton:p,selectComponentClass:g,selectPrefixCls:m,pageSize:h,disabled:b}=e,y=`${s}-options`;let S=null,$=null,x=null;if(!c&&!d)return null;if(c&&g){const C=e.buildOptionText||o,O=i.value.map((w,M)=>f(g.Option,{key:M,value:w},{default:()=>[C({value:w})]}));S=f(g,{disabled:b,prefixCls:m,showSearch:!1,class:`${y}-size-changer`,optionLabelProp:"children",value:(h||i.value[0]).toString(),onChange:w=>c(Number(w)),getPopupContainer:w=>w.parentNode},{default:()=>[O]})}return d&&(p&&(x=typeof p=="boolean"?f("button",{type:"button",onClick:l,onKeyup:l,disabled:b,class:`${y}-quick-jumper-button`},[u.jump_to_confirm]):f("span",{onClick:l,onKeyup:l},[p])),$=f("div",{class:`${y}-quick-jumper`},[u.jump_to,Kt(f("input",{disabled:b,type:"text",value:t.value,onInput:r,onChange:r,onKeyup:l,onBlur:a},null),[[si]]),u.page,x])),f("li",{class:`${y}`},[S,$])}}}),F3={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页"};var SX=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r"u"?t.statePageSize:e;return Math.floor((n.total-1)/o)+1}const xX=J({compatConfig:{MODE:3},name:"Pagination",mixins:[Jr],inheritAttrs:!1,props:{disabled:{type:Boolean,default:void 0},prefixCls:V.string.def("rc-pagination"),selectPrefixCls:V.string.def("rc-select"),current:Number,defaultCurrent:V.number.def(1),total:V.number.def(0),pageSize:Number,defaultPageSize:V.number.def(10),hideOnSinglePage:{type:Boolean,default:!1},showSizeChanger:{type:Boolean,default:void 0},showLessItems:{type:Boolean,default:!1},selectComponentClass:V.any,showPrevNextJumpers:{type:Boolean,default:!0},showQuickJumper:V.oneOfType([V.looseBool,V.object]).def(!1),showTitle:{type:Boolean,default:!0},pageSizeOptions:V.arrayOf(V.oneOfType([V.number,V.string])),buildOptionText:Function,showTotal:Function,simple:{type:Boolean,default:void 0},locale:V.object.def(F3),itemRender:V.func.def(CX),prevIcon:V.any,nextIcon:V.any,jumpPrevIcon:V.any,jumpNextIcon:V.any,totalBoundaryShowSizeChanger:V.number.def(50)},data(){const e=this.$props;let t=zf([this.current,this.defaultCurrent]);const n=zf([this.pageSize,this.defaultPageSize]);return t=Math.min(t,Po(n,void 0,e)),{stateCurrent:t,stateCurrentInputValue:t,statePageSize:n}},watch:{current(e){this.setState({stateCurrent:e,stateCurrentInputValue:e})},pageSize(e){const t={};let n=this.stateCurrent;const o=Po(e,this.$data,this.$props);n=n>o?o:n,_o(this,"current")||(t.stateCurrent=n,t.stateCurrentInputValue=n),t.statePageSize=e,this.setState(t)},stateCurrent(e,t){this.$nextTick(()=>{if(this.$refs.paginationNode){const n=this.$refs.paginationNode.querySelector(`.${this.prefixCls}-item-${t}`);n&&document.activeElement===n&&n.blur()}})},total(){const e={},t=Po(this.pageSize,this.$data,this.$props);if(_o(this,"current")){const n=Math.min(this.current,t);e.stateCurrent=n,e.stateCurrentInputValue=n}else{let n=this.stateCurrent;n===0&&t>0?n=1:n=Math.min(this.stateCurrent,t),e.stateCurrent=n}this.setState(e)}},methods:{getJumpPrevPage(){return Math.max(1,this.stateCurrent-(this.showLessItems?3:5))},getJumpNextPage(){return Math.min(Po(void 0,this.$data,this.$props),this.stateCurrent+(this.showLessItems?3:5))},getItemIcon(e,t){const{prefixCls:n}=this.$props;return RC(this,e,this.$props)||f("button",{type:"button","aria-label":t,class:`${n}-item-link`},null)},getValidValue(e){const t=e.target.value,n=Po(void 0,this.$data,this.$props),{stateCurrentInputValue:o}=this.$data;let r;return t===""?r=t:isNaN(Number(t))?r=o:t>=n?r=n:r=Number(t),r},isValid(e){return $X(e)&&e!==this.stateCurrent},shouldDisplayQuickJumper(){const{showQuickJumper:e,pageSize:t,total:n}=this.$props;return n<=t?!1:e},handleKeyDown(e){(e.keyCode===Cr.ARROW_UP||e.keyCode===Cr.ARROW_DOWN)&&e.preventDefault()},handleKeyUp(e){if(e.isComposing||e.target.composing)return;const t=this.getValidValue(e),n=this.stateCurrentInputValue;t!==n&&this.setState({stateCurrentInputValue:t}),e.keyCode===Cr.ENTER?this.handleChange(t):e.keyCode===Cr.ARROW_UP?this.handleChange(t-1):e.keyCode===Cr.ARROW_DOWN&&this.handleChange(t+1)},changePageSize(e){let t=this.stateCurrent;const n=t,o=Po(e,this.$data,this.$props);t=t>o?o:t,o===0&&(t=this.stateCurrent),typeof e=="number"&&(_o(this,"pageSize")||this.setState({statePageSize:e}),_o(this,"current")||this.setState({stateCurrent:t,stateCurrentInputValue:t})),this.__emit("update:pageSize",e),t!==n&&this.__emit("update:current",t),this.__emit("showSizeChange",t,e),this.__emit("change",t,e)},handleChange(e){const{disabled:t}=this.$props;let n=e;if(this.isValid(n)&&!t){const o=Po(void 0,this.$data,this.$props);return n>o?n=o:n<1&&(n=1),_o(this,"current")||this.setState({stateCurrent:n,stateCurrentInputValue:n}),this.__emit("update:current",n),this.__emit("change",n,this.statePageSize),n}return this.stateCurrent},prev(){this.hasPrev()&&this.handleChange(this.stateCurrent-1)},next(){this.hasNext()&&this.handleChange(this.stateCurrent+1)},jumpPrev(){this.handleChange(this.getJumpPrevPage())},jumpNext(){this.handleChange(this.getJumpNextPage())},hasPrev(){return this.stateCurrent>1},hasNext(){return this.stateCurrentn},runIfEnter(e,t){if(e.key==="Enter"||e.charCode===13){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r0?y-1:0,A=y+1=H*2&&y!==3&&(w[0]=f(yr,{locale:r,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:U,page:U,class:`${e}-item-after-jump-prev`,active:!1,showTitle:this.showTitle,itemRender:c},null),w.unshift(M)),O-y>=H*2&&y!==O-2&&(w[w.length-1]=f(yr,{locale:r,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:X,page:X,class:`${e}-item-before-jump-next`,active:!1,showTitle:this.showTitle,itemRender:c},null),w.push(I)),U!==1&&w.unshift(_),X!==O&&w.push(D)}let k=null;s&&(k=f("li",{class:`${e}-total-text`},[s(o,[o===0?0:(y-1)*S+1,y*S>o?o:y*S])]));const B=!R||!O,L=!E||!O,j=this.buildOptionText||this.$slots.buildOptionText;return f("ul",N(N({unselectable:"on",ref:"paginationNode"},C),{},{class:te({[`${e}`]:!0,[`${e}-disabled`]:t},x)}),[k,f("li",{title:i?r.prev_page:null,onClick:this.prev,tabindex:B?null:0,onKeypress:this.runIfEnterPrev,class:te(`${e}-prev`,{[`${e}-disabled`]:B}),"aria-disabled":B},[this.renderPrev(T)]),w,f("li",{title:i?r.next_page:null,onClick:this.next,tabindex:L?null:0,onKeypress:this.runIfEnterNext,class:te(`${e}-next`,{[`${e}-disabled`]:L}),"aria-disabled":L},[this.renderNext(A)]),f(yX,{disabled:t,locale:r,rootPrefixCls:e,selectComponentClass:m,selectPrefixCls:h,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:y,pageSize:S,pageSizeOptions:b,buildOptionText:j||null,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:z},null)])}}),wX=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`&${t}-mini`]:{[` + &:hover ${t}-item:not(${t}-item-active), + &:active ${t}-item:not(${t}-item-active), + &:hover ${t}-item-link, + &:active ${t}-item-link + `]:{backgroundColor:"transparent"}},[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.paginationItemDisabledBgActive,"&:hover, &:active":{backgroundColor:e.paginationItemDisabledBgActive},a:{color:e.paginationItemDisabledColorActive}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},OX=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`},[`&${t}-mini ${t}-item`]:{minWidth:e.paginationItemSizeSM,height:e.paginationItemSizeSM,margin:0,lineHeight:`${e.paginationItemSizeSM-2}px`},[`&${t}-mini ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.paginationItemSizeSM,height:e.paginationItemSizeSM,margin:0,lineHeight:`${e.paginationItemSizeSM}px`,[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}},[` + &${t}-mini ${t}-prev ${t}-item-link, + &${t}-mini ${t}-next ${t}-item-link + `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.paginationItemSizeSM,marginInlineEnd:0,lineHeight:`${e.paginationItemSizeSM}px`},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.paginationMiniOptionsSizeChangerTop},"&-quick-jumper":{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`,input:v(v({},Ug(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},PX=e=>{const{componentCls:t}=e;return{[` + &${t}-simple ${t}-prev, + &${t}-simple ${t}-next + `]:{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`,verticalAlign:"top",[`${t}-item-link`]:{height:e.paginationItemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.paginationItemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${e.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:e.paginationItemInputBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${e.inputOutlineOffset}px 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},IX=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},"&:focus-visible":v({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},Fo(e))},[` + ${t}-prev, + ${t}-jump-prev, + ${t}-jump-next + `]:{marginInlineEnd:e.marginXS},[` + ${t}-prev, + ${t}-next, + ${t}-jump-prev, + ${t}-jump-next + `]:{display:"inline-block",minWidth:e.paginationItemSize,height:e.paginationItemSize,color:e.colorText,fontFamily:e.paginationFontFamily,lineHeight:`${e.paginationItemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:focus-visible ${t}-item-link`]:v({},Fo(e)),[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:`${e.controlHeight}px`,verticalAlign:"top",input:v(v({},al(e)),{width:e.controlHeightLG*1.25,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},TX=e=>{const{componentCls:t}=e;return{[`${t}-item`]:v(v({display:"inline-block",minWidth:e.paginationItemSize,height:e.paginationItemSize,marginInlineEnd:e.marginXS,fontFamily:e.paginationFontFamily,lineHeight:`${e.paginationItemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${e.paginationItemPaddingInline}px`,color:e.colorText,transition:"none","&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}}},Lo(e)),{"&-active":{fontWeight:e.paginationFontWeightActive,backgroundColor:e.paginationItemBgActive,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}})}},MX=e=>{const{componentCls:t}=e;return{[t]:v(v(v(v(v(v(v(v({},et(e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.paginationItemSize,marginInlineEnd:e.marginXS,lineHeight:`${e.paginationItemSize-2}px`,verticalAlign:"middle"}}),TX(e)),IX(e)),PX(e)),OX(e)),wX(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},EX=e=>{const{componentCls:t}=e;return{[`${t}${t}-disabled`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.paginationItemDisabledBgActive}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[t]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.paginationItemBg},[`${t}-item-link`]:{backgroundColor:e.paginationItemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.paginationItemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.paginationItemBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.paginationItemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},_X=Qe("Pagination",e=>{const t=ze(e,{paginationItemSize:e.controlHeight,paginationFontFamily:e.fontFamily,paginationItemBg:e.colorBgContainer,paginationItemBgActive:e.colorBgContainer,paginationFontWeightActive:e.fontWeightStrong,paginationItemSizeSM:e.controlHeightSM,paginationItemInputBg:e.colorBgContainer,paginationMiniOptionsSizeChangerTop:0,paginationItemDisabledBgActive:e.controlItemBgActiveDisabled,paginationItemDisabledColorActive:e.colorTextDisabled,paginationItemLinkBg:e.colorBgContainer,inputOutlineOffset:"0 0",paginationMiniOptionsMarginInlineStart:e.marginXXS/2,paginationMiniQuickJumperInputWidth:e.controlHeightLG*1.1,paginationItemPaddingInline:e.marginXXS*1.5,paginationEllipsisLetterSpacing:e.marginXXS/2,paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},fi(e));return[MX(t),e.wireframe&&EX(t)]});var DX=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({total:Number,defaultCurrent:Number,disabled:Ce(),current:Number,defaultPageSize:Number,pageSize:Number,hideOnSinglePage:Ce(),showSizeChanger:Ce(),pageSizeOptions:ht(),buildOptionText:de(),showQuickJumper:Ge([Boolean,Object]),showTotal:de(),size:je(),simple:Ce(),locale:Object,prefixCls:String,selectPrefixCls:String,totalBoundaryShowSizeChanger:Number,selectComponentClass:String,itemRender:de(),role:String,responsive:Boolean,showLessItems:Ce(),onChange:de(),onShowSizeChange:de(),"onUpdate:current":de(),"onUpdate:pageSize":de()}),RX=J({compatConfig:{MODE:3},name:"APagination",inheritAttrs:!1,props:AX(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,configProvider:a,direction:l,size:i}=Ee("pagination",e),[s,u]=_X(r),c=P(()=>a.getPrefixCls("select",e.selectPrefixCls)),d=Sg(),[p]=$o("Pagination",jC,Be(e,"locale")),g=m=>{const h=f("span",{class:`${m}-item-ellipsis`},[go("•••")]),b=f("button",{class:`${m}-item-link`,type:"button",tabindex:-1},[l.value==="rtl"?f(sr,null,null):f(Wa,null,null)]),y=f("button",{class:`${m}-item-link`,type:"button",tabindex:-1},[l.value==="rtl"?f(Wa,null,null):f(sr,null,null)]),S=f("a",{rel:"nofollow",class:`${m}-item-link`},[f("div",{class:`${m}-item-container`},[l.value==="rtl"?f(Gy,{class:`${m}-item-link-icon`},null):f(Wy,{class:`${m}-item-link-icon`},null),h])]),$=f("a",{rel:"nofollow",class:`${m}-item-link`},[f("div",{class:`${m}-item-container`},[l.value==="rtl"?f(Wy,{class:`${m}-item-link-icon`},null):f(Gy,{class:`${m}-item-link-icon`},null),h])]);return{prevIcon:b,nextIcon:y,jumpPrevIcon:S,jumpNextIcon:$}};return()=>{var m;const{itemRender:h=n.itemRender,buildOptionText:b=n.buildOptionText,selectComponentClass:y,responsive:S}=e,$=DX(e,["itemRender","buildOptionText","selectComponentClass","responsive"]),x=i.value==="small"||!!(!((m=d.value)===null||m===void 0)&&m.xs&&!i.value&&S),C=v(v(v(v(v({},$),g(r.value)),{prefixCls:r.value,selectPrefixCls:c.value,selectComponentClass:y||(x?mX:bX),locale:p.value,buildOptionText:b}),o),{class:te({[`${r.value}-mini`]:x,[`${r.value}-rtl`]:l.value==="rtl"},o.class,u.value),itemRender:h});return s(f(xX,C,null))}}}),NX=Vt(RX);var kX=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{Ip={x:e.pageX,y:e.pageY},setTimeout(()=>Ip=null,100)};w4()&&wt(document.documentElement,"click",BX,!0);const FX=()=>({prefixCls:String,visible:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},confirmLoading:{type:Boolean,default:void 0},title:V.any,closable:{type:Boolean,default:void 0},closeIcon:V.any,onOk:Function,onCancel:Function,"onUpdate:visible":Function,"onUpdate:open":Function,onChange:Function,afterClose:Function,centered:{type:Boolean,default:void 0},width:[String,Number],footer:V.any,okText:V.any,okType:String,cancelText:V.any,icon:V.any,maskClosable:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},okButtonProps:Ne(),cancelButtonProps:Ne(),destroyOnClose:{type:Boolean,default:void 0},wrapClassName:String,maskTransitionName:String,transitionName:String,getContainer:{type:[String,Function,Boolean,Object],default:void 0},zIndex:Number,bodyStyle:Ne(),maskStyle:Ne(),mask:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},wrapProps:Object,focusTriggerAfterClose:{type:Boolean,default:void 0},modalRender:Function,mousePosition:Ne()}),Vn=J({compatConfig:{MODE:3},name:"AModal",inheritAttrs:!1,props:rt(FX(),{width:520,confirmLoading:!1,okType:"primary"}),setup(e,t){let{emit:n,slots:o,attrs:r}=t;const[a]=$o("Modal"),{prefixCls:l,rootPrefixCls:i,direction:s,getPopupContainer:u}=Ee("modal",e),[c,d]=bG(l);yt(e.visible===void 0);const p=h=>{n("update:visible",!1),n("update:open",!1),n("cancel",h),n("change",!1)},g=h=>{n("ok",h)},m=()=>{var h,b;const{okText:y=(h=o.okText)===null||h===void 0?void 0:h.call(o),okType:S,cancelText:$=(b=o.cancelText)===null||b===void 0?void 0:b.call(o),confirmLoading:x}=e;return f(nt,null,[f(qt,N({onClick:p},e.cancelButtonProps),{default:()=>[$||a.value.cancelText]}),f(qt,N(N({},zs(S)),{},{loading:x,onClick:g},e.okButtonProps),{default:()=>[y||a.value.okText]})])};return()=>{var h,b;const{prefixCls:y,visible:S,open:$,wrapClassName:x,centered:C,getContainer:O,closeIcon:w=(h=o.closeIcon)===null||h===void 0?void 0:h.call(o),focusTriggerAfterClose:M=!0}=e,I=kX(e,["prefixCls","visible","open","wrapClassName","centered","getContainer","closeIcon","focusTriggerAfterClose"]),_=te(x,{[`${l.value}-centered`]:!!C,[`${l.value}-wrap-rtl`]:s.value==="rtl"});return c(f(I3,N(N(N({},I),r),{},{rootClassName:d.value,class:te(d.value,r.class),getContainer:O||(u==null?void 0:u.value),prefixCls:l.value,wrapClassName:_,visible:$??S,onClose:p,focusTriggerAfterClose:M,transitionName:en(i.value,"zoom",e.transitionName),maskTransitionName:en(i.value,"fade",e.maskTransitionName),mousePosition:(b=I.mousePosition)!==null&&b!==void 0?b:Ip}),v(v({},o),{footer:o.footer||m,closeIcon:()=>f("span",{class:`${l.value}-close-x`},[w||f(io,{class:`${l.value}-close-icon`},null)])})))}}}),LX=()=>{const e=Y(!1);return Je(()=>{e.value=!0}),e},zX={type:{type:String},actionFn:Function,close:Function,autofocus:Boolean,prefixCls:String,buttonProps:Ne(),emitEvent:Boolean,quitOnNullishReturnValue:Boolean};function Xy(e){return!!(e&&e.then)}const Tp=J({compatConfig:{MODE:3},name:"ActionButton",props:zX,setup(e,t){let{slots:n}=t;const o=Y(!1),r=Y(),a=Y(!1);let l;const i=LX();Ve(()=>{e.autofocus&&(l=setTimeout(()=>{var d,p;return(p=(d=Pn(r.value))===null||d===void 0?void 0:d.focus)===null||p===void 0?void 0:p.call(d)}))}),Je(()=>{clearTimeout(l)});const s=function(){for(var d,p=arguments.length,g=new Array(p),m=0;m{Xy(d)&&(a.value=!0,d.then(function(){i.value||(a.value=!1),s(...arguments),o.value=!1},p=>(i.value||(a.value=!1),o.value=!1,Promise.reject(p))))},c=d=>{const{actionFn:p}=e;if(o.value)return;if(o.value=!0,!p){s();return}let g;if(e.emitEvent){if(g=p(d),e.quitOnNullishReturnValue&&!Xy(g)){o.value=!1,s(d);return}}else if(p.length)g=p(e.close),o.value=!1;else if(g=p(),!g){s();return}u(g)};return()=>{const{type:d,prefixCls:p,buttonProps:g}=e;return f(qt,N(N(N({},zs(d)),{},{onClick:c,loading:a.value,prefixCls:p},g),{},{ref:r}),n)}}});function sa(e){return typeof e=="function"?e():e}const L3=J({name:"ConfirmDialog",inheritAttrs:!1,props:["icon","onCancel","onOk","close","closable","zIndex","afterClose","visible","open","keyboard","centered","getContainer","maskStyle","okButtonProps","cancelButtonProps","okType","prefixCls","okCancel","width","mask","maskClosable","okText","cancelText","autoFocusButton","transitionName","maskTransitionName","type","title","content","direction","rootPrefixCls","bodyStyle","closeIcon","modalRender","focusTriggerAfterClose","wrapClassName","confirmPrefixCls","footer"],setup(e,t){let{attrs:n}=t;const[o]=$o("Modal");return()=>{const{icon:r,onCancel:a,onOk:l,close:i,okText:s,closable:u=!1,zIndex:c,afterClose:d,keyboard:p,centered:g,getContainer:m,maskStyle:h,okButtonProps:b,cancelButtonProps:y,okCancel:S,width:$=416,mask:x=!0,maskClosable:C=!1,type:O,open:w,title:M,content:I,direction:_,closeIcon:D,modalRender:F,focusTriggerAfterClose:z,rootPrefixCls:H,bodyStyle:T,wrapClassName:A,footer:R}=e;let E=r;if(!r&&r!==null)switch(O){case"info":E=f(nl,null,null);break;case"success":E=f(Wo,null,null);break;case"error":E=f(bn,null,null);break;default:E=f(Ko,null,null)}const k=e.okType||"primary",B=e.prefixCls||"ant-modal",L=`${B}-confirm`,j=n.style||{},K=S??O==="confirm",G=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",U=`${B}-confirm`,X=te(U,`${U}-${e.type}`,{[`${U}-rtl`]:_==="rtl"},n.class),ee=o.value,oe=K&&f(Tp,{actionFn:a,close:i,autofocus:G==="cancel",buttonProps:y,prefixCls:`${H}-btn`},{default:()=>[sa(e.cancelText)||ee.cancelText]});return f(Vn,{prefixCls:B,class:X,wrapClassName:te({[`${U}-centered`]:!!g},A),onCancel:Q=>i==null?void 0:i({triggerCancel:!0},Q),open:w,title:"",footer:"",transitionName:en(H,"zoom",e.transitionName),maskTransitionName:en(H,"fade",e.maskTransitionName),mask:x,maskClosable:C,maskStyle:h,style:j,bodyStyle:T,width:$,zIndex:c,afterClose:d,keyboard:p,centered:g,getContainer:m,closable:u,closeIcon:D,modalRender:F,focusTriggerAfterClose:z},{default:()=>[f("div",{class:`${L}-body-wrapper`},[f("div",{class:`${L}-body`},[sa(E),M===void 0?null:f("span",{class:`${L}-title`},[sa(M)]),f("div",{class:`${L}-content`},[sa(I)])]),R!==void 0?sa(R):f("div",{class:`${L}-btns`},[oe,f(Tp,{type:k,actionFn:l,close:i,autofocus:G==="ok",buttonProps:b,prefixCls:`${H}-btn`},{default:()=>[sa(s)||(K?ee.okText:ee.justOkText)]})])])]})}}}),Ar=[],mi=e=>{const t=document.createDocumentFragment();let n=v(v({},qe(e,["parentContext","appContext"])),{close:a,open:!0}),o=null;function r(){o&&(zr(null,t),o=null);for(var u=arguments.length,c=new Array(u),d=0;dg&&g.triggerCancel);e.onCancel&&p&&e.onCancel(()=>{},...c.slice(1));for(let g=0;g{typeof e.afterClose=="function"&&e.afterClose(),r.apply(this,c)}}),n.visible&&delete n.visible,l(n)}function l(u){typeof u=="function"?n=u(n):n=v(v({},n),u),o&&YE(o,n,t)}const i=u=>{const c=Xt,d=c.prefixCls,p=u.prefixCls||`${d}-modal`,g=c.iconPrefixCls,m=Jj();return f(c3,N(N({},c),{},{prefixCls:d}),{default:()=>[f(L3,N(N({},u),{},{rootPrefixCls:d,prefixCls:p,iconPrefixCls:g,locale:m,cancelText:u.cancelText||m.cancelText}),null)]})};function s(u){const c=f(i,v({},u));return c.appContext=e.parentContext||e.appContext||c.appContext,zr(c,t),c}return o=s(n),Ar.push(a),{destroy:a,update:l}};function z3(e){return v(v({},e),{type:"warning"})}function H3(e){return v(v({},e),{type:"info"})}function j3(e){return v(v({},e),{type:"success"})}function V3(e){return v(v({},e),{type:"error"})}function W3(e){return v(v({},e),{type:"confirm"})}const HX=()=>({config:Object,afterClose:Function,destroyAction:Function,open:Boolean}),jX=J({name:"HookModal",inheritAttrs:!1,props:rt(HX(),{config:{width:520,okType:"primary"}}),setup(e,t){let{expose:n}=t;var o;const r=P(()=>e.open),a=P(()=>e.config),{direction:l,getPrefixCls:i}=oc(),s=i("modal"),u=i(),c=()=>{var m,h;e==null||e.afterClose(),(h=(m=a.value).afterClose)===null||h===void 0||h.call(m)},d=function(){e.destroyAction(...arguments)};n({destroy:d});const p=(o=a.value.okCancel)!==null&&o!==void 0?o:a.value.type==="confirm",[g]=$o("Modal",Gn.Modal);return()=>f(L3,N(N({prefixCls:s,rootPrefixCls:u},a.value),{},{close:d,open:r.value,afterClose:c,okText:a.value.okText||(p?g==null?void 0:g.value.okText:g==null?void 0:g.value.justOkText),direction:a.value.direction||l.value,cancelText:a.value.cancelText||(g==null?void 0:g.value.cancelText)}),null)}});let Uy=0;const VX=J({name:"ElementsHolder",inheritAttrs:!1,setup(e,t){let{expose:n}=t;const o=Y([]);return n({addModal:a=>(o.value.push(a),o.value=o.value.slice(),()=>{o.value=o.value.filter(l=>l!==a)})}),()=>o.value.map(a=>a())}});function WX(){const e=Y(null),t=Y([]);ue(t,()=>{t.value.length&&([...t.value].forEach(l=>{l()}),t.value=[])},{immediate:!0});const n=a=>function(i){var s;Uy+=1;const u=Y(!0),c=Y(null),d=Y(Lt(i)),p=Y({});ue(()=>i,$=>{b(v(v({},B$($)?$.value:$),p.value))});const g=function(){u.value=!1;for(var $=arguments.length,x=new Array($),C=0;C<$;C++)x[C]=arguments[C];const O=x.some(w=>w&&w.triggerCancel);d.value.onCancel&&O&&d.value.onCancel(()=>{},...x.slice(1))};let m;const h=()=>f(jX,{key:`modal-${Uy}`,config:a(d.value),ref:c,open:u.value,destroyAction:g,afterClose:()=>{m==null||m()}},null);m=(s=e.value)===null||s===void 0?void 0:s.addModal(h),m&&Ar.push(m);const b=$=>{d.value=v(v({},d.value),$)};return{destroy:()=>{c.value?g():t.value=[...t.value,g]},update:$=>{p.value=$,c.value?b($):t.value=[...t.value,()=>b($)]}}},o=P(()=>({info:n(H3),success:n(j3),error:n(V3),warning:n(z3),confirm:n(W3)})),r=Symbol("modalHolderKey");return[o.value,()=>f(VX,{key:r,ref:e},null)]}function K3(e){return mi(z3(e))}Vn.useModal=WX;Vn.info=function(t){return mi(H3(t))};Vn.success=function(t){return mi(j3(t))};Vn.error=function(t){return mi(V3(t))};Vn.warning=K3;Vn.warn=K3;Vn.confirm=function(t){return mi(W3(t))};Vn.destroyAll=function(){for(;Ar.length;){const t=Ar.pop();t&&t()}};Vn.install=function(e){return e.component(Vn.name,Vn),e};const G3=e=>{const{value:t,formatter:n,precision:o,decimalSeparator:r,groupSeparator:a="",prefixCls:l}=e;let i;if(typeof n=="function")i=n({value:t});else{const s=String(t),u=s.match(/^(-?)(\d*)(\.(\d+))?$/);if(!u)i=s;else{const c=u[1];let d=u[2]||"0",p=u[4]||"";d=d.replace(/\B(?=(\d{3})+(?!\d))/g,a),typeof o=="number"&&(p=p.padEnd(o,"0").slice(0,o>0?o:0)),p&&(p=`${r}${p}`),i=[f("span",{key:"int",class:`${l}-content-value-int`},[c,d]),p&&f("span",{key:"decimal",class:`${l}-content-value-decimal`},[p])]}}return f("span",{class:`${l}-content-value`},[i])};G3.displayName="StatisticNumber";const KX=G3,GX=e=>{const{componentCls:t,marginXXS:n,padding:o,colorTextDescription:r,statisticTitleFontSize:a,colorTextHeading:l,statisticContentFontSize:i,statisticFontFamily:s}=e;return{[`${t}`]:v(v({},et(e)),{[`${t}-title`]:{marginBottom:n,color:r,fontSize:a},[`${t}-skeleton`]:{paddingTop:o},[`${t}-content`]:{color:l,fontSize:i,fontFamily:s,[`${t}-content-value`]:{display:"inline-block",direction:"ltr"},[`${t}-content-prefix, ${t}-content-suffix`]:{display:"inline-block"},[`${t}-content-prefix`]:{marginInlineEnd:n},[`${t}-content-suffix`]:{marginInlineStart:n}}})}},XX=Qe("Statistic",e=>{const{fontSizeHeading3:t,fontSize:n,fontFamily:o}=e,r=ze(e,{statisticTitleFontSize:n,statisticContentFontSize:t,statisticFontFamily:o});return[GX(r)]}),X3=()=>({prefixCls:String,decimalSeparator:String,groupSeparator:String,format:String,value:Ge([Number,String,Object]),valueStyle:{type:Object,default:void 0},valueRender:de(),formatter:xt(),precision:Number,prefix:ba(),suffix:ba(),title:ba(),loading:Ce()}),tr=J({compatConfig:{MODE:3},name:"AStatistic",inheritAttrs:!1,props:rt(X3(),{decimalSeparator:".",groupSeparator:",",loading:!1}),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:a}=Ee("statistic",e),[l,i]=XX(r);return()=>{var s,u,c,d,p,g,m;const{value:h=0,valueStyle:b,valueRender:y}=e,S=r.value,$=(s=e.title)!==null&&s!==void 0?s:(u=n.title)===null||u===void 0?void 0:u.call(n),x=(c=e.prefix)!==null&&c!==void 0?c:(d=n.prefix)===null||d===void 0?void 0:d.call(n),C=(p=e.suffix)!==null&&p!==void 0?p:(g=n.suffix)===null||g===void 0?void 0:g.call(n),O=(m=e.formatter)!==null&&m!==void 0?m:n.formatter;let w=f(KX,N({"data-for-update":Date.now()},v(v({},e),{prefixCls:S,value:h,formatter:O})),null);return y&&(w=y(w)),l(f("div",N(N({},o),{},{class:[S,{[`${S}-rtl`]:a.value==="rtl"},o.class,i.value]}),[$&&f("div",{class:`${S}-title`},[$]),f(tn,{paragraph:!1,loading:e.loading},{default:()=>[f("div",{style:b,class:`${S}-content`},[x&&f("span",{class:`${S}-content-prefix`},[x]),w,C&&f("span",{class:`${S}-content-suffix`},[C])])]})]))}}}),UX=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function YX(e,t){let n=e;const o=/\[[^\]]*]/g,r=(t.match(o)||[]).map(s=>s.slice(1,-1)),a=t.replace(o,"[]"),l=UX.reduce((s,u)=>{let[c,d]=u;if(s.includes(c)){const p=Math.floor(n/d);return n-=p*d,s.replace(new RegExp(`${c}+`,"g"),g=>{const m=g.length;return p.toString().padStart(m,"0")})}return s},a);let i=0;return l.replace(o,()=>{const s=r[i];return i+=1,s})}function qX(e,t){const{format:n=""}=t,o=new Date(e).getTime(),r=Date.now(),a=Math.max(o-r,0);return YX(a,n)}const QX=1e3/30;function zd(e){return new Date(e).getTime()}const ZX=()=>v(v({},X3()),{value:Ge([Number,String,Object]),format:String,onFinish:Function,onChange:Function}),JX=J({compatConfig:{MODE:3},name:"AStatisticCountdown",props:rt(ZX(),{format:"HH:mm:ss"}),setup(e,t){let{emit:n,slots:o}=t;const r=Z(),a=Z(),l=()=>{const{value:d}=e;zd(d)>=Date.now()?i():s()},i=()=>{if(r.value)return;const d=zd(e.value);r.value=setInterval(()=>{a.value.$forceUpdate(),d>Date.now()&&n("change",d-Date.now()),l()},QX)},s=()=>{const{value:d}=e;r.value&&(clearInterval(r.value),r.value=void 0,zd(d){let{value:p,config:g}=d;const{format:m}=e;return qX(p,v(v({},g),{format:m}))},c=d=>d;return Ve(()=>{l()}),ao(()=>{l()}),Je(()=>{s()}),()=>{const d=e.value;return f(tr,N({ref:a},v(v({},qe(e,["onFinish","onChange"])),{value:d,valueRender:c,formatter:u})),o)}}});tr.Countdown=JX;tr.install=function(e){return e.component(tr.name,tr),e.component(tr.Countdown.name,tr.Countdown),e};tr.Countdown;var eU=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{const{keyCode:g}=p;g===$e.ENTER&&p.preventDefault()},s=p=>{const{keyCode:g}=p;g===$e.ENTER&&o("click",p)},u=p=>{o("click",p)},c=()=>{l.value&&l.value.focus()},d=()=>{l.value&&l.value.blur()};return Ve(()=>{e.autofocus&&c()}),a({focus:c,blur:d}),()=>{var p;const{noStyle:g,disabled:m}=e,h=eU(e,["noStyle","disabled"]);let b={};return g||(b=v({},tU)),m&&(b.pointerEvents="none"),f("div",N(N(N({role:"button",tabindex:0,ref:l},h),r),{},{onClick:u,onKeydown:i,onKeyup:s,style:v(v({},b),r.style||{})}),[(p=n.default)===null||p===void 0?void 0:p.call(n)])}}}),Yy=nU,oU={small:8,middle:16,large:24},rU=()=>({prefixCls:String,size:{type:[String,Number,Array]},direction:V.oneOf(vn("horizontal","vertical")).def("horizontal"),align:V.oneOf(vn("start","end","center","baseline")),wrap:Ce()});function aU(e){return typeof e=="string"?oU[e]:e||0}const Bl=J({compatConfig:{MODE:3},name:"ASpace",inheritAttrs:!1,props:rU(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,space:a,direction:l}=Ee("space",e),[i,s]=mx(r),u=P4(),c=P(()=>{var y,S,$;return($=(y=e.size)!==null&&y!==void 0?y:(S=a==null?void 0:a.value)===null||S===void 0?void 0:S.size)!==null&&$!==void 0?$:"small"}),d=Z(),p=Z();ue(c,()=>{[d.value,p.value]=(Array.isArray(c.value)?c.value:[c.value,c.value]).map(y=>aU(y))},{immediate:!0});const g=P(()=>e.align===void 0&&e.direction==="horizontal"?"center":e.align),m=P(()=>te(r.value,s.value,`${r.value}-${e.direction}`,{[`${r.value}-rtl`]:l.value==="rtl",[`${r.value}-align-${g.value}`]:g.value})),h=P(()=>l.value==="rtl"?"marginLeft":"marginRight"),b=P(()=>{const y={};return u.value&&(y.columnGap=`${d.value}px`,y.rowGap=`${p.value}px`),v(v({},y),e.wrap&&{flexWrap:"wrap",marginBottom:`${-p.value}px`})});return()=>{var y,S;const{wrap:$,direction:x="horizontal"}=e,C=(y=n.default)===null||y===void 0?void 0:y.call(n),O=Tt(C),w=O.length;if(w===0)return null;const M=(S=n.split)===null||S===void 0?void 0:S.call(n),I=`${r.value}-item`,_=d.value,D=w-1;return f("div",N(N({},o),{},{class:[m.value,o.class],style:[b.value,o.style]}),[O.map((F,z)=>{let H=C.indexOf(F);H===-1&&(H=`$$space-${z}`);let T={};return u.value||(x==="vertical"?z{const{componentCls:t,iconCls:n,zIndexPopup:o,colorText:r,colorWarning:a,marginXS:l,fontSize:i,fontWeightStrong:s,lineHeight:u}=e;return{[t]:{zIndex:o,[`${t}-inner-content`]:{color:r},[`${t}-message`]:{position:"relative",marginBottom:l,color:r,fontSize:i,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:a,fontSize:i,flex:"none",lineHeight:1,paddingTop:(Math.round(i*u)-i)/2},"&-title":{flex:"auto",marginInlineStart:l},"&-title-only":{fontWeight:s}},[`${t}-description`]:{position:"relative",marginInlineStart:i+l,marginBottom:l,color:r,fontSize:i},[`${t}-buttons`]:{textAlign:"end",button:{marginInlineStart:l}}}}},iU=Qe("Popconfirm",e=>lU(e),e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}});var sU=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rv(v({},$g()),{prefixCls:String,content:xt(),title:xt(),description:xt(),okType:je("primary"),disabled:{type:Boolean,default:!1},okText:xt(),cancelText:xt(),icon:xt(),okButtonProps:Ne(),cancelButtonProps:Ne(),showCancel:{type:Boolean,default:!0},onConfirm:Function,onCancel:Function}),uU=J({compatConfig:{MODE:3},name:"APopconfirm",inheritAttrs:!1,props:rt(cU(),v(v({},Dx()),{trigger:"click",placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0,okType:"primary",disabled:!1})),slots:Object,setup(e,t){let{slots:n,emit:o,expose:r,attrs:a}=t;const l=Z();yt(e.visible===void 0),r({getPopupDomNode:()=>{var O,w;return(w=(O=l.value)===null||O===void 0?void 0:O.getPopupDomNode)===null||w===void 0?void 0:w.call(O)}});const[i,s]=Ot(!1,{value:Be(e,"open")}),u=(O,w)=>{e.open===void 0&&s(O),o("update:open",O),o("openChange",O,w)},c=O=>{u(!1,O)},d=O=>{var w;return(w=e.onConfirm)===null||w===void 0?void 0:w.call(e,O)},p=O=>{var w;u(!1,O),(w=e.onCancel)===null||w===void 0||w.call(e,O)},g=O=>{O.keyCode===$e.ESC&&i&&u(!1,O)},m=O=>{const{disabled:w}=e;w||u(O)},{prefixCls:h,getPrefixCls:b}=Ee("popconfirm",e),y=P(()=>b()),S=P(()=>b("btn")),[$]=iU(h),[x]=$o("Popconfirm",Gn.Popconfirm),C=()=>{var O,w,M,I,_;const{okButtonProps:D,cancelButtonProps:F,title:z=(O=n.title)===null||O===void 0?void 0:O.call(n),description:H=(w=n.description)===null||w===void 0?void 0:w.call(n),cancelText:T=(M=n.cancel)===null||M===void 0?void 0:M.call(n),okText:A=(I=n.okText)===null||I===void 0?void 0:I.call(n),okType:R,icon:E=((_=n.icon)===null||_===void 0?void 0:_.call(n))||f(Ko,null,null),showCancel:k=!0}=e,{cancelButton:B,okButton:L}=n,j=v({onClick:p,size:"small"},F),K=v(v(v({onClick:d},zs(R)),{size:"small"}),D);return f("div",{class:`${h.value}-inner-content`},[f("div",{class:`${h.value}-message`},[E&&f("span",{class:`${h.value}-message-icon`},[E]),f("div",{class:[`${h.value}-message-title`,{[`${h.value}-message-title-only`]:!!H}]},[z])]),H&&f("div",{class:`${h.value}-description`},[H]),f("div",{class:`${h.value}-buttons`},[k?B?B(j):f(qt,j,{default:()=>[T||x.value.cancelText]}):null,L?L(K):f(Tp,{buttonProps:v(v({size:"small"},zs(R)),D),actionFn:d,close:c,prefixCls:S.value,quitOnNullishReturnValue:!0,emitEvent:!0},{default:()=>[A||x.value.okText]})])])};return()=>{var O;const{placement:w,overlayClassName:M,trigger:I="click"}=e,_=sU(e,["placement","overlayClassName","trigger"]),D=qe(_,["title","content","cancelText","okText","onUpdate:open","onConfirm","onCancel","prefixCls"]),F=te(h.value,M);return $(f(Ax,N(N(N({},D),a),{},{trigger:I,placement:w,onOpenChange:m,open:i.value,overlayClassName:F,transitionName:en(y.value,"zoom-big",e.transitionName),ref:l,"data-popover-inject":!0}),{default:()=>[UE(((O=n.default)===null||O===void 0?void 0:O.call(n))||[],{onKeydown:z=>{g(z)}},!1)],content:C}))}}}),woe=Vt(uU),dU=["normal","exception","active","success"],fu=()=>({prefixCls:String,type:je(),percent:Number,format:de(),status:je(),showInfo:Ce(),strokeWidth:Number,strokeLinecap:je(),strokeColor:xt(),trailColor:String,width:Number,success:Ne(),gapDegree:Number,gapPosition:je(),size:Ge([String,Number,Array]),steps:Number,successPercent:Number,title:String,progressStatus:je()});function Fr(e){return!e||e<0?0:e>100?100:e}function Js(e){let{success:t,successPercent:n}=e,o=n;return t&&"progress"in t&&(bt(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),o=t.progress),t&&"percent"in t&&(o=t.percent),o}function fU(e){let{percent:t,success:n,successPercent:o}=e;const r=Fr(Js({success:n,successPercent:o}));return[r,Fr(Fr(t)-r)]}function pU(e){let{success:t={},strokeColor:n}=e;const{strokeColor:o}=t;return[o||$a.green,n||null]}const pu=(e,t,n)=>{var o,r,a,l;let i=-1,s=-1;if(t==="step"){const u=n.steps,c=n.strokeWidth;typeof e=="string"||typeof e>"u"?(i=e==="small"?2:14,s=c??8):typeof e=="number"?[i,s]=[e,e]:[i=14,s=8]=e,i*=u}else if(t==="line"){const u=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?s=u||(e==="small"?6:8):typeof e=="number"?[i,s]=[e,e]:[i=-1,s=8]=e}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[i,s]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[i,s]=[e,e]:(i=(r=(o=e[0])!==null&&o!==void 0?o:e[1])!==null&&r!==void 0?r:120,s=(l=(a=e[0])!==null&&a!==void 0?a:e[1])!==null&&l!==void 0?l:120));return{width:i,height:s}};var vU=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rv(v({},fu()),{strokeColor:xt(),direction:je()}),hU=e=>{let t=[];return Object.keys(e).forEach(n=>{const o=parseFloat(n.replace(/%/g,""));isNaN(o)||t.push({key:o,value:e[n]})}),t=t.sort((n,o)=>n.key-o.key),t.map(n=>{let{key:o,value:r}=n;return`${r} ${o}%`}).join(", ")},mU=(e,t)=>{const{from:n=$a.blue,to:o=$a.blue,direction:r=t==="rtl"?"to left":"to right"}=e,a=vU(e,["from","to","direction"]);if(Object.keys(a).length!==0){const l=hU(a);return{backgroundImage:`linear-gradient(${r}, ${l})`}}return{backgroundImage:`linear-gradient(${r}, ${n}, ${o})`}},bU=J({compatConfig:{MODE:3},name:"ProgressLine",inheritAttrs:!1,props:gU(),setup(e,t){let{slots:n,attrs:o}=t;const r=P(()=>{const{strokeColor:g,direction:m}=e;return g&&typeof g!="string"?mU(g,m):{backgroundColor:g}}),a=P(()=>e.strokeLinecap==="square"||e.strokeLinecap==="butt"?0:void 0),l=P(()=>e.trailColor?{backgroundColor:e.trailColor}:void 0),i=P(()=>{var g;return(g=e.size)!==null&&g!==void 0?g:[-1,e.strokeWidth||(e.size==="small"?6:8)]}),s=P(()=>pu(i.value,"line",{strokeWidth:e.strokeWidth})),u=P(()=>{const{percent:g}=e;return v({width:`${Fr(g)}%`,height:`${s.value.height}px`,borderRadius:a.value},r.value)}),c=P(()=>Js(e)),d=P(()=>{const{success:g}=e;return{width:`${Fr(c.value)}%`,height:`${s.value.height}px`,borderRadius:a.value,backgroundColor:g==null?void 0:g.strokeColor}}),p={width:s.value.width<0?"100%":s.value.width,height:`${s.value.height}px`};return()=>{var g;return f(nt,null,[f("div",N(N({},o),{},{class:[`${e.prefixCls}-outer`,o.class],style:[o.style,p]}),[f("div",{class:`${e.prefixCls}-inner`,style:l.value},[f("div",{class:`${e.prefixCls}-bg`,style:u.value},null),c.value!==void 0?f("div",{class:`${e.prefixCls}-success-bg`,style:d.value},null):null])]),(g=n.default)===null||g===void 0?void 0:g.call(n)])}}}),yU={percent:0,prefixCls:"vc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1},SU=e=>{const t=Z(null);return ao(()=>{const n=Date.now();let o=!1;e.value.forEach(r=>{const a=(r==null?void 0:r.$el)||r;if(!a)return;o=!0;const l=a.style;l.transitionDuration=".3s, .3s, .3s, .06s",t.value&&n-t.value<100&&(l.transitionDuration="0s, 0s")}),o&&(t.value=Date.now())}),e},$U={gapDegree:Number,gapPosition:{type:String},percent:{type:[Array,Number]},prefixCls:String,strokeColor:{type:[Object,String,Array]},strokeLinecap:{type:String},strokeWidth:Number,trailColor:String,trailWidth:Number,transition:String};var CU=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r4&&arguments[4]!==void 0?arguments[4]:0,a=arguments.length>5?arguments[5]:void 0;const l=50-o/2;let i=0,s=-l,u=0,c=-2*l;switch(a){case"left":i=-l,s=0,u=2*l,c=0;break;case"right":i=l,s=0,u=-2*l,c=0;break;case"bottom":s=l,c=2*l;break}const d=`M 50,50 m ${i},${s} + a ${l},${l} 0 1 1 ${u},${-c} + a ${l},${l} 0 1 1 ${-u},${c}`,p=Math.PI*2*l,g={stroke:n,strokeDasharray:`${t/100*(p-r)}px ${p}px`,strokeDashoffset:`-${r/2+e/100*(p-r)}px`,transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s"};return{pathString:d,pathStyle:g}}const xU=J({compatConfig:{MODE:3},name:"VCCircle",props:rt($U,yU),setup(e){qy+=1;const t=Z(qy),n=P(()=>Zy(e.percent)),o=P(()=>Zy(e.strokeColor)),[r,a]=qg();SU(a);const l=()=>{const{prefixCls:i,strokeWidth:s,strokeLinecap:u,gapDegree:c,gapPosition:d}=e;let p=0;return n.value.map((g,m)=>{const h=o.value[m]||o.value[o.value.length-1],b=Object.prototype.toString.call(h)==="[object Object]"?`url(#${i}-gradient-${t.value})`:"",{pathString:y,pathStyle:S}=Jy(p,g,h,s,c,d);p+=g;const $={key:m,d:y,stroke:b,"stroke-linecap":u,"stroke-width":s,opacity:g===0?0:1,"fill-opacity":"0",class:`${i}-circle-path`,style:S};return f("path",N({ref:r(m)},$),null)})};return()=>{const{prefixCls:i,strokeWidth:s,trailWidth:u,gapDegree:c,gapPosition:d,trailColor:p,strokeLinecap:g,strokeColor:m}=e,h=CU(e,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","strokeColor"]),{pathString:b,pathStyle:y}=Jy(0,100,p,s,c,d);delete h.percent;const S=o.value.find(x=>Object.prototype.toString.call(x)==="[object Object]"),$={d:b,stroke:p,"stroke-linecap":g,"stroke-width":u||s,"fill-opacity":"0",class:`${i}-circle-trail`,style:y};return f("svg",N({class:`${i}-circle`,viewBox:"0 0 100 100"},h),[S&&f("defs",null,[f("linearGradient",{id:`${i}-gradient-${t.value}`,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[Object.keys(S).sort((x,C)=>Qy(x)-Qy(C)).map((x,C)=>f("stop",{key:C,offset:x,"stop-color":S[x]},null))])]),f("path",$,null),l().reverse()])}}}),wU=()=>v(v({},fu()),{strokeColor:xt()}),OU=3,PU=e=>OU/e*100,IU=J({compatConfig:{MODE:3},name:"ProgressCircle",inheritAttrs:!1,props:rt(wU(),{trailColor:null}),setup(e,t){let{slots:n,attrs:o}=t;const r=P(()=>{var h;return(h=e.width)!==null&&h!==void 0?h:120}),a=P(()=>{var h;return(h=e.size)!==null&&h!==void 0?h:[r.value,r.value]}),l=P(()=>pu(a.value,"circle")),i=P(()=>{if(e.gapDegree||e.gapDegree===0)return e.gapDegree;if(e.type==="dashboard")return 75}),s=P(()=>({width:`${l.value.width}px`,height:`${l.value.height}px`,fontSize:`${l.value.width*.15+6}px`})),u=P(()=>{var h;return(h=e.strokeWidth)!==null&&h!==void 0?h:Math.max(PU(l.value.width),6)}),c=P(()=>e.gapPosition||e.type==="dashboard"&&"bottom"||void 0),d=P(()=>fU(e)),p=P(()=>Object.prototype.toString.call(e.strokeColor)==="[object Object]"),g=P(()=>pU({success:e.success,strokeColor:e.strokeColor})),m=P(()=>({[`${e.prefixCls}-inner`]:!0,[`${e.prefixCls}-circle-gradient`]:p.value}));return()=>{var h;const b=f(xU,{percent:d.value,strokeWidth:u.value,trailWidth:u.value,strokeColor:g.value,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor,prefixCls:e.prefixCls,gapDegree:i.value,gapPosition:c.value},null);return f("div",N(N({},o),{},{class:[m.value,o.class],style:[o.style,s.value]}),[l.value.width<=20?f(oo,null,{default:()=>[f("span",null,[b])],title:n.default}):f(nt,null,[b,(h=n.default)===null||h===void 0?void 0:h.call(n)])])}}}),TU=()=>v(v({},fu()),{steps:Number,strokeColor:Ge(),trailColor:String}),MU=J({compatConfig:{MODE:3},name:"Steps",props:TU(),setup(e,t){let{slots:n}=t;const o=P(()=>Math.round(e.steps*((e.percent||0)/100))),r=P(()=>{var i;return(i=e.size)!==null&&i!==void 0?i:[e.size==="small"?2:14,e.strokeWidth||8]}),a=P(()=>pu(r.value,"step",{steps:e.steps,strokeWidth:e.strokeWidth||8})),l=P(()=>{const{steps:i,strokeColor:s,trailColor:u,prefixCls:c}=e,d=[];for(let p=0;p{var i;return f("div",{class:`${e.prefixCls}-steps-outer`},[l.value,(i=n.default)===null||i===void 0?void 0:i.call(n)])}}}),EU=new Ue("antProgressActive",{"0%":{transform:"translateX(-100%) scaleX(0)",opacity:.1},"20%":{transform:"translateX(-100%) scaleX(0)",opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}}),_U=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:v(v({},et(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize,marginInlineEnd:e.marginXS,marginBottom:e.marginXS},[`${t}-outer`]:{display:"inline-block",width:"100%"},[`&${t}-show-info`]:{[`${t}-outer`]:{marginInlineEnd:`calc(-2em - ${e.marginXS}px)`,paddingInlineEnd:`calc(2em + ${e.paddingXS}px)`}},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:e.progressRemainingColor,borderRadius:e.progressLineRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorInfo}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",backgroundColor:e.colorInfo,borderRadius:e.progressLineRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",width:"2em",marginInlineStart:e.marginXS,color:e.progressInfoTextColor,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.progressLineRadius,opacity:0,animationName:EU,animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},DU=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.progressRemainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.colorText,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:`${e.fontSize/e.fontSizeSM}em`}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},AU=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.progressRemainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.colorInfo}}}}}},RU=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},NU=Qe("Progress",e=>{const t=e.marginXXS/2,n=ze(e,{progressLineRadius:100,progressInfoTextColor:e.colorText,progressDefaultColor:e.colorInfo,progressRemainingColor:e.colorFillSecondary,progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[_U(n),DU(n),AU(n),RU(n)]});var kU=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rArray.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor),u=P(()=>{const{percent:m=0}=e,h=Js(e);return parseInt(h!==void 0?h.toString():m.toString(),10)}),c=P(()=>{const{status:m}=e;return!dU.includes(m)&&u.value>=100?"success":m||"normal"}),d=P(()=>{const{type:m,showInfo:h,size:b}=e,y=r.value;return{[y]:!0,[`${y}-inline-circle`]:m==="circle"&&pu(b,"circle").width<=20,[`${y}-${m==="dashboard"&&"circle"||m}`]:!0,[`${y}-status-${c.value}`]:!0,[`${y}-show-info`]:h,[`${y}-${b}`]:b,[`${y}-rtl`]:a.value==="rtl",[i.value]:!0}}),p=P(()=>typeof e.strokeColor=="string"||Array.isArray(e.strokeColor)?e.strokeColor:void 0),g=()=>{const{showInfo:m,format:h,type:b,percent:y,title:S}=e,$=Js(e);if(!m)return null;let x;const C=h||(n==null?void 0:n.format)||(w=>`${w}%`),O=b==="line";return h||n!=null&&n.format||c.value!=="exception"&&c.value!=="success"?x=C(Fr(y),Fr($)):c.value==="exception"?x=O?f(bn,null,null):f(io,null,null):c.value==="success"&&(x=O?f(Wo,null,null):f(tg,null,null)),f("span",{class:`${r.value}-text`,title:S===void 0&&typeof x=="string"?x:void 0},[x])};return()=>{const{type:m,steps:h,title:b}=e,{class:y}=o,S=kU(o,["class"]),$=g();let x;return m==="line"?x=h?f(MU,N(N({},e),{},{strokeColor:p.value,prefixCls:r.value,steps:h}),{default:()=>[$]}):f(bU,N(N({},e),{},{strokeColor:s.value,prefixCls:r.value,direction:a.value}),{default:()=>[$]}):(m==="circle"||m==="dashboard")&&(x=f(IU,N(N({},e),{},{prefixCls:r.value,strokeColor:s.value,progressStatus:c.value}),{default:()=>[$]})),l(f("div",N(N({role:"progressbar"},S),{},{class:[d.value,y],title:b}),[x]))}}}),FU=Vt(BU);function LU(e){let t=e.pageXOffset;const n="scrollLeft";if(typeof t!="number"){const o=e.document;t=o.documentElement[n],typeof t!="number"&&(t=o.body[n])}return t}function zU(e){let t,n;const o=e.ownerDocument,{body:r}=o,a=o&&o.documentElement,l=e.getBoundingClientRect();return t=l.left,n=l.top,t-=a.clientLeft||r.clientLeft||0,n-=a.clientTop||r.clientTop||0,{left:t,top:n}}function HU(e){const t=zU(e),n=e.ownerDocument,o=n.defaultView||n.parentWindow;return t.left+=LU(o),t.left}var jU={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"};const VU=jU;function eS(e){for(var t=1;t{const{index:s}=e;n("hover",i,s)},r=i=>{const{index:s}=e;n("click",i,s)},a=i=>{const{index:s}=e;i.keyCode===13&&n("click",i,s)},l=P(()=>{const{prefixCls:i,index:s,value:u,allowHalf:c,focused:d}=e,p=s+1;let g=i;return u===0&&s===0&&d?g+=` ${i}-focused`:c&&u+.5>=p&&u{const{disabled:i,prefixCls:s,characterRender:u,character:c,index:d,count:p,value:g}=e,m=typeof c=="function"?c({disabled:i,prefixCls:s,index:d,count:p,value:g}):c;let h=f("li",{class:l.value},[f("div",{onClick:i?null:r,onKeydown:i?null:a,onMousemove:i?null:o,role:"radio","aria-checked":g>d?"true":"false","aria-posinset":d+1,"aria-setsize":p,tabindex:i?-1:0},[f("div",{class:`${s}-first`},[m]),f("div",{class:`${s}-second`},[m])])]);return u&&(h=u(h,e)),h}}}),UU=e=>{const{componentCls:t}=e;return{[`${t}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:e.marginXS},"> div":{transition:`all ${e.motionDurationMid}, outline 0s`,"&:hover":{transform:e.rateStarHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${e.lineWidth}px dashed ${e.rateStarColor}`,transform:e.rateStarHoverScale}},"&-first, &-second":{color:e.defaultColor,transition:`all ${e.motionDurationMid}`,userSelect:"none",[e.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${t}-star-first, &-half ${t}-star-second`]:{opacity:1},[`&-half ${t}-star-first, &-full ${t}-star-second`]:{color:"inherit"}}}},YU=e=>({[`&-rtl${e.componentCls}`]:{direction:"rtl"}}),qU=e=>{const{componentCls:t}=e;return{[t]:v(v(v(v(v({},et(e)),{display:"inline-block",margin:0,padding:0,color:e.rateStarColor,fontSize:e.rateStarSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${t} ${t}-star`]:{cursor:"default","&:hover":{transform:"scale(1)"}}}),UU(e)),{[`+ ${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,fontSize:e.fontSize}}),YU(e))}},QU=Qe("Rate",e=>{const{colorFillContent:t}=e,n=ze(e,{rateStarColor:e["yellow-6"],rateStarSize:e.controlHeightLG*.5,rateStarHoverScale:"scale(1.1)",defaultColor:t});return[qU(n)]}),ZU=()=>({prefixCls:String,count:Number,value:Number,allowHalf:{type:Boolean,default:void 0},allowClear:{type:Boolean,default:void 0},tooltips:Array,disabled:{type:Boolean,default:void 0},character:V.any,autofocus:{type:Boolean,default:void 0},tabindex:V.oneOfType([V.number,V.string]),direction:String,id:String,onChange:Function,onHoverChange:Function,"onUpdate:value":Function,onFocus:Function,onBlur:Function,onKeydown:Function}),JU=J({compatConfig:{MODE:3},name:"ARate",inheritAttrs:!1,props:rt(ZU(),{value:0,count:5,allowHalf:!1,allowClear:!0,tabindex:0,direction:"ltr"}),setup(e,t){let{slots:n,attrs:o,emit:r,expose:a}=t;const{prefixCls:l,direction:i}=Ee("rate",e),[s,u]=QU(l),c=Ht(),d=Z(),[p,g]=qg(),m=vt({value:e.value,focused:!1,cleanedValue:null,hoverValue:void 0});ue(()=>e.value,()=>{m.value=e.value});const h=D=>Pn(g.value.get(D)),b=(D,F)=>{const z=i.value==="rtl";let H=D+1;if(e.allowHalf){const T=h(D),A=HU(T),R=T.clientWidth;(z&&F-A>R/2||!z&&F-A{e.value===void 0&&(m.value=D),r("update:value",D),r("change",D),c.onFieldChange()},S=(D,F)=>{const z=b(F,D.pageX);z!==m.cleanedValue&&(m.hoverValue=z,m.cleanedValue=null),r("hoverChange",z)},$=()=>{m.hoverValue=void 0,m.cleanedValue=null,r("hoverChange",void 0)},x=(D,F)=>{const{allowClear:z}=e,H=b(F,D.pageX);let T=!1;z&&(T=H===m.value),$(),y(T?0:H),m.cleanedValue=T?H:null},C=D=>{m.focused=!0,r("focus",D)},O=D=>{m.focused=!1,r("blur",D),c.onFieldBlur()},w=D=>{const{keyCode:F}=D,{count:z,allowHalf:H}=e,T=i.value==="rtl";F===$e.RIGHT&&m.value0&&!T||F===$e.RIGHT&&m.value>0&&T?(H?m.value-=.5:m.value-=1,y(m.value),D.preventDefault()):F===$e.LEFT&&m.value{e.disabled||d.value.focus()};a({focus:M,blur:()=>{e.disabled||d.value.blur()}}),Ve(()=>{const{autofocus:D,disabled:F}=e;D&&!F&&M()});const _=(D,F)=>{let{index:z}=F;const{tooltips:H}=e;return H?f(oo,{title:H[z]},{default:()=>[D]}):D};return()=>{const{count:D,allowHalf:F,disabled:z,tabindex:H,id:T=c.id.value}=e,{class:A,style:R}=o,E=[],k=z?`${l.value}-disabled`:"",B=e.character||n.character||(()=>f(KU,null,null));for(let j=0;jf("svg",{width:"252",height:"294"},[f("defs",null,[f("path",{d:"M0 .387h251.772v251.772H0z"},null)]),f("g",{fill:"none","fill-rule":"evenodd"},[f("g",{transform:"translate(0 .012)"},[f("mask",{fill:"#fff"},null),f("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"},null)]),f("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"},null),f("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF","stroke-width":"2"},null),f("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"},null),f("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"},null),f("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF","stroke-width":"2"},null),f("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"},null),f("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF","stroke-width":"2"},null),f("path",{stroke:"#FFF","stroke-width":"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"},null),f("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"},null),f("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1890FF"},null),f("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"},null),f("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"},null),f("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"},null),f("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"},null),f("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"},null),f("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"},null),f("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"},null),f("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"},null),f("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"},null),f("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"},null),f("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"},null),f("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),f("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8","stroke-linecap":"round","stroke-linejoin":"round"},null),f("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),f("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"},null),f("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"},null),f("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"},null),f("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),f("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"},null),f("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"},null),f("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"},null),f("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"},null),f("path",{stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"},null),f("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),f("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),f("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),f("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),f("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null),f("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),f("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null),f("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"},null),f("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"},null),f("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"},null),f("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"},null),f("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"},null),f("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"},null),f("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"},null),f("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"},null),f("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),f("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),f("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),f("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"},null),f("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"},null),f("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"},null),f("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null)])]),aY=rY,lY=()=>f("svg",{width:"254",height:"294"},[f("defs",null,[f("path",{d:"M0 .335h253.49v253.49H0z"},null),f("path",{d:"M0 293.665h253.49V.401H0z"},null)]),f("g",{fill:"none","fill-rule":"evenodd"},[f("g",{transform:"translate(0 .067)"},[f("mask",{fill:"#fff"},null),f("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"},null)]),f("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"},null),f("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF","stroke-width":"2"},null),f("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"},null),f("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"},null),f("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"},null),f("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"},null),f("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"},null),f("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"},null),f("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"},null),f("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"},null),f("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"},null),f("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"},null),f("path",{stroke:"#DB836E","stroke-width":"1.063","stroke-linecap":"round","stroke-linejoin":"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"},null),f("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),f("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),f("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),f("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E","stroke-width":"1.063","stroke-linecap":"round","stroke-linejoin":"round"},null),f("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7","stroke-width":"1.136","stroke-linecap":"round","stroke-linejoin":"round"},null),f("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"},null),f("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"},null),f("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"},null),f("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),f("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"},null),f("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"},null),f("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"},null),f("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"},null),f("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"},null),f("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"},null),f("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"},null),f("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"},null),f("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"},null),f("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),f("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8","stroke-width":"1.032","stroke-linecap":"round","stroke-linejoin":"round"},null),f("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),f("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"},null),f("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"},null),f("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"},null),f("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),f("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),f("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"},null),f("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),f("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),f("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"},null),f("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),f("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),f("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),f("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null),f("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"},null),f("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"},null),f("mask",{fill:"#fff"},null),f("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"},null),f("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"},null),f("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"},null),f("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"},null),f("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5","stroke-width":"1.124","stroke-linecap":"round","stroke-linejoin":"round",mask:"url(#d)"},null),f("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"},null),f("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"},null),f("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6","stroke-width":"1.124","stroke-linecap":"round","stroke-linejoin":"round",mask:"url(#d)"},null),f("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"},null),f("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"},null),f("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"},null)])]),iY=lY,sY=()=>f("svg",{width:"251",height:"294"},[f("g",{fill:"none","fill-rule":"evenodd"},[f("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"},null),f("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"},null),f("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF","stroke-width":"2"},null),f("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"},null),f("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"},null),f("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF","stroke-width":"2"},null),f("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"},null),f("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF","stroke-width":"2"},null),f("path",{stroke:"#FFF","stroke-width":"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"},null),f("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"},null),f("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"},null),f("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"},null),f("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"},null),f("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"},null),f("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"},null),f("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"},null),f("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"},null),f("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"},null),f("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"},null),f("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"},null),f("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),f("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7","stroke-width":".932","stroke-linecap":"round","stroke-linejoin":"round"},null),f("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"},null),f("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"},null),f("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"},null),f("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"},null),f("path",{stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"},null),f("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"},null),f("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round"},null),f("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"},null),f("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552","stroke-width":"1.526","stroke-linecap":"round","stroke-linejoin":"round"},null),f("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round"},null),f("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),f("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7","stroke-width":"1.114","stroke-linecap":"round","stroke-linejoin":"round"},null),f("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),f("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E","stroke-width":".795","stroke-linecap":"round","stroke-linejoin":"round"},null),f("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"},null),f("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E","stroke-width":".75","stroke-linecap":"round","stroke-linejoin":"round"},null),f("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),f("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),f("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"},null),f("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"},null),f("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"},null),f("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"},null),f("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"},null),f("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"},null),f("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"},null),f("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),f("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8","stroke-linecap":"round","stroke-linejoin":"round"},null),f("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),f("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"},null),f("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"},null),f("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"},null),f("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null)])]),cY=sY,uY=e=>{const{componentCls:t,lineHeightHeading3:n,iconCls:o,padding:r,paddingXL:a,paddingXS:l,paddingLG:i,marginXS:s,lineHeight:u}=e;return{[t]:{padding:`${i*2}px ${a}px`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:i,textAlign:"center",[`& > ${o}`]:{fontSize:e.resultIconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.resultTitleFontSize,lineHeight:n,marginBlock:s,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.resultSubtitleFontSize,lineHeight:u,textAlign:"center"},[`${t} ${t}-content`]:{marginTop:i,padding:`${i}px ${r*2.5}px`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.resultExtraMargin,textAlign:"center","& > *":{marginInlineEnd:l,"&:last-child":{marginInlineEnd:0}}}}},dY=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-success ${t}-icon > ${n}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${n}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${n}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${n}`]:{color:e.resultWarningIconColor}}},fY=e=>[uY(e),dY(e)],pY=e=>fY(e),vY=Qe("Result",e=>{const{paddingLG:t,fontSizeHeading3:n}=e,o=e.fontSize,r=`${t}px 0 0 0`,a=e.colorInfo,l=e.colorError,i=e.colorSuccess,s=e.colorWarning,u=ze(e,{resultTitleFontSize:n,resultSubtitleFontSize:o,resultIconFontSize:n*3,resultExtraMargin:r,resultInfoIconColor:a,resultErrorIconColor:l,resultSuccessIconColor:i,resultWarningIconColor:s});return[pY(u)]},{imageWidth:250,imageHeight:295}),gY={success:Wo,error:bn,info:Ko,warning:oY},bi={404:aY,500:iY,403:cY},hY=Object.keys(bi),mY=()=>({prefixCls:String,icon:V.any,status:{type:[Number,String],default:"info"},title:V.any,subTitle:V.any,extra:V.any}),bY=(e,t)=>{let{status:n,icon:o}=t;if(hY.includes(`${n}`)){const l=bi[n];return f("div",{class:`${e}-icon ${e}-image`},[f(l,null,null)])}const r=gY[n],a=o||f(r,null,null);return f("div",{class:`${e}-icon`},[a])},yY=(e,t)=>t&&f("div",{class:`${e}-extra`},[t]),Lr=J({compatConfig:{MODE:3},name:"AResult",inheritAttrs:!1,props:mY(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:a}=Ee("result",e),[l,i]=vY(r),s=P(()=>te(r.value,i.value,`${r.value}-${e.status}`,{[`${r.value}-rtl`]:a.value==="rtl"}));return()=>{var u,c,d,p,g,m,h,b;const y=(u=e.title)!==null&&u!==void 0?u:(c=n.title)===null||c===void 0?void 0:c.call(n),S=(d=e.subTitle)!==null&&d!==void 0?d:(p=n.subTitle)===null||p===void 0?void 0:p.call(n),$=(g=e.icon)!==null&&g!==void 0?g:(m=n.icon)===null||m===void 0?void 0:m.call(n),x=(h=e.extra)!==null&&h!==void 0?h:(b=n.extra)===null||b===void 0?void 0:b.call(n),C=r.value;return l(f("div",N(N({},o),{},{class:[s.value,o.class]}),[bY(C,{status:e.status,icon:$}),f("div",{class:`${C}-title`},[y]),S&&f("div",{class:`${C}-subtitle`},[S]),yY(C,x),n.default&&f("div",{class:`${C}-content`},[n.default()])]))}}});Lr.PRESENTED_IMAGE_403=bi[403];Lr.PRESENTED_IMAGE_404=bi[404];Lr.PRESENTED_IMAGE_500=bi[500];Lr.install=function(e){return e.component(Lr.name,Lr),e};const Poe=Lr,Ioe=Vt(T4),U3=(e,t)=>{let{attrs:n}=t;const{included:o,vertical:r,style:a,class:l}=n;let{length:i,offset:s,reverse:u}=n;i<0&&(u=!u,i=Math.abs(i),s=100-s);const c=r?{[u?"top":"bottom"]:`${s}%`,[u?"bottom":"top"]:"auto",height:`${i}%`}:{[u?"right":"left"]:`${s}%`,[u?"left":"right"]:"auto",width:`${i}%`},d=v(v({},a),c);return o?f("div",{class:l,style:d},null):null};U3.inheritAttrs=!1;const Y3=U3,SY=(e,t,n,o,r,a)=>{yt();const l=Object.keys(t).map(parseFloat).sort((i,s)=>i-s);if(n&&o)for(let i=r;i<=a;i+=o)l.indexOf(i)===-1&&l.push(i);return l},q3=(e,t)=>{let{attrs:n}=t;const{prefixCls:o,vertical:r,reverse:a,marks:l,dots:i,step:s,included:u,lowerBound:c,upperBound:d,max:p,min:g,dotStyle:m,activeDotStyle:h}=n,b=p-g,y=SY(r,l,i,s,g,p).map(S=>{const $=`${Math.abs(S-g)/b*100}%`,x=!u&&S===d||u&&S<=d&&S>=c;let C=r?v(v({},m),{[a?"top":"bottom"]:$}):v(v({},m),{[a?"right":"left"]:$});x&&(C=v(v({},C),h));const O=te({[`${o}-dot`]:!0,[`${o}-dot-active`]:x,[`${o}-dot-reverse`]:a});return f("span",{class:O,style:C,key:S},null)});return f("div",{class:`${o}-step`},[y])};q3.inheritAttrs=!1;const $Y=q3,Q3=(e,t)=>{let{attrs:n,slots:o}=t;const{class:r,vertical:a,reverse:l,marks:i,included:s,upperBound:u,lowerBound:c,max:d,min:p,onClickLabel:g}=n,m=Object.keys(i),h=o.mark,b=d-p,y=m.map(parseFloat).sort((S,$)=>S-$).map(S=>{const $=typeof i[S]=="function"?i[S]():i[S],x=typeof $=="object"&&!kt($);let C=x?$.label:$;if(!C&&C!==0)return null;h&&(C=h({point:S,label:C}));const O=!s&&S===u||s&&S<=u&&S>=c,w=te({[`${r}-text`]:!0,[`${r}-text-active`]:O}),M={marginBottom:"-50%",[l?"top":"bottom"]:`${(S-p)/b*100}%`},I={transform:`translateX(${l?"50%":"-50%"})`,msTransform:`translateX(${l?"50%":"-50%"})`,[l?"right":"left"]:`${(S-p)/b*100}%`},_=a?M:I,D=x?v(v({},_),$.style):_,F={[zt?"onTouchstartPassive":"onTouchstart"]:z=>g(z,S)};return f("span",N({class:w,style:D,key:S,onMousedown:z=>g(z,S)},F),[C])});return f("div",{class:r},[y])};Q3.inheritAttrs=!1;const CY=Q3,Z3=J({compatConfig:{MODE:3},name:"Handle",inheritAttrs:!1,props:{prefixCls:String,vertical:{type:Boolean,default:void 0},offset:Number,disabled:{type:Boolean,default:void 0},min:Number,max:Number,value:Number,tabindex:V.oneOfType([V.number,V.string]),reverse:{type:Boolean,default:void 0},ariaLabel:String,ariaLabelledBy:String,ariaValueTextFormatter:Function,onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function}},setup(e,t){let{attrs:n,emit:o,expose:r}=t;const a=Y(!1),l=Y(),i=()=>{document.activeElement===l.value&&(a.value=!0)},s=b=>{a.value=!1,o("blur",b)},u=()=>{a.value=!1},c=()=>{var b;(b=l.value)===null||b===void 0||b.focus()},d=()=>{var b;(b=l.value)===null||b===void 0||b.blur()},p=()=>{a.value=!0,c()},g=b=>{b.preventDefault(),c(),o("mousedown",b)};r({focus:c,blur:d,clickFocus:p,ref:l});let m=null;Ve(()=>{m=wt(document,"mouseup",i)}),Je(()=>{m==null||m.remove()});const h=P(()=>{const{vertical:b,offset:y,reverse:S}=e;return b?{[S?"top":"bottom"]:`${y}%`,[S?"bottom":"top"]:"auto",transform:S?null:"translateY(+50%)"}:{[S?"right":"left"]:`${y}%`,[S?"left":"right"]:"auto",transform:`translateX(${S?"+":"-"}50%)`}});return()=>{const{prefixCls:b,disabled:y,min:S,max:$,value:x,tabindex:C,ariaLabel:O,ariaLabelledBy:w,ariaValueTextFormatter:M,onMouseenter:I,onMouseleave:_}=e,D=te(n.class,{[`${b}-handle-click-focused`]:a.value}),F={"aria-valuemin":S,"aria-valuemax":$,"aria-valuenow":x,"aria-disabled":!!y},z=[n.style,h.value];let H=C||0;(y||C===null)&&(H=null);let T;M&&(T=M(x));const A=v(v(v(v({},n),{role:"slider",tabindex:H}),F),{class:D,onBlur:s,onKeydown:u,onMousedown:g,onMouseenter:I,onMouseleave:_,ref:l,style:z});return f("div",N(N({},A),{},{"aria-label":O,"aria-labelledby":w,"aria-valuetext":T}),null)}}});function Hd(e,t){try{return Object.keys(t).some(n=>e.target===t[n].ref)}catch{return!1}}function J3(e,t){let{min:n,max:o}=t;return eo}function nS(e){return e.touches.length>1||e.type.toLowerCase()==="touchend"&&e.touches.length>0}function oS(e,t){let{marks:n,step:o,min:r,max:a}=t;const l=Object.keys(n).map(parseFloat);if(o!==null){const s=Math.pow(10,e6(o)),u=Math.floor((a*s-r*s)/(o*s)),c=Math.min((e-r)/o,u),d=Math.round(c)*o+r;l.push(d)}const i=l.map(s=>Math.abs(e-s));return l[i.indexOf(Math.min(...i))]}function e6(e){const t=e.toString();let n=0;return t.indexOf(".")>=0&&(n=t.length-t.indexOf(".")-1),n}function rS(e,t){let n=1;return window.visualViewport&&(n=+(window.visualViewport.width/document.body.getBoundingClientRect().width).toFixed(2)),(e?t.clientY:t.pageX)/n}function aS(e,t){let n=1;return window.visualViewport&&(n=+(window.visualViewport.width/document.body.getBoundingClientRect().width).toFixed(2)),(e?t.touches[0].clientY:t.touches[0].pageX)/n}function lS(e,t){const n=t.getBoundingClientRect();return e?n.top+n.height*.5:window.pageXOffset+n.left+n.width*.5}function kh(e,t){let{max:n,min:o}=t;return e<=o?o:e>=n?n:e}function t6(e,t){const{step:n}=t,o=isFinite(oS(e,t))?oS(e,t):0;return n===null?o:parseFloat(o.toFixed(e6(n)))}function Ga(e){e.stopPropagation(),e.preventDefault()}function xY(e,t,n){const o={increase:(l,i)=>l+i,decrease:(l,i)=>l-i},r=o[e](Object.keys(n.marks).indexOf(JSON.stringify(t)),1),a=Object.keys(n.marks)[r];return n.step?o[e](t,n.step):Object.keys(n.marks).length&&n.marks[a]?n.marks[a]:t}function n6(e,t,n){const o="increase",r="decrease";let a=o;switch(e.keyCode){case $e.UP:a=t&&n?r:o;break;case $e.RIGHT:a=!t&&n?r:o;break;case $e.DOWN:a=t&&n?o:r;break;case $e.LEFT:a=!t&&n?o:r;break;case $e.END:return(l,i)=>i.max;case $e.HOME:return(l,i)=>i.min;case $e.PAGE_UP:return(l,i)=>l+i.step*2;case $e.PAGE_DOWN:return(l,i)=>l-i.step*2;default:return}return(l,i)=>xY(a,l,i)}var wY=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{this.document=this.sliderRef&&this.sliderRef.ownerDocument;const{autofocus:n,disabled:o}=this;n&&!o&&this.focus()})},beforeUnmount(){this.$nextTick(()=>{this.removeDocumentEvents()})},methods:{defaultHandle(n){var{index:o,directives:r,className:a,style:l}=n,i=wY(n,["index","directives","className","style"]);if(delete i.dragging,i.value===null)return null;const s=v(v({},i),{class:a,style:l,key:o});return f(Z3,s,null)},onDown(n,o){let r=o;const{draggableTrack:a,vertical:l}=this.$props,{bounds:i}=this.$data,s=a&&this.positionGetValue?this.positionGetValue(r)||[]:[],u=Hd(n,this.handlesRefs);if(this.dragTrack=a&&i.length>=2&&!u&&!s.map((c,d)=>{const p=d?!0:c>=i[d];return d===s.length-1?c<=i[d]:p}).some(c=>!c),this.dragTrack)this.dragOffset=r,this.startBounds=[...i];else{if(!u)this.dragOffset=0;else{const c=lS(l,n.target);this.dragOffset=r-c,r=c}this.onStart(r)}},onMouseDown(n){if(n.button!==0)return;this.removeDocumentEvents();const o=this.$props.vertical,r=rS(o,n);this.onDown(n,r),this.addDocumentMouseEvents()},onTouchStart(n){if(nS(n))return;const o=this.vertical,r=aS(o,n);this.onDown(n,r),this.addDocumentTouchEvents(),Ga(n)},onFocus(n){const{vertical:o}=this;if(Hd(n,this.handlesRefs)&&!this.dragTrack){const r=lS(o,n.target);this.dragOffset=0,this.onStart(r),Ga(n),this.$emit("focus",n)}},onBlur(n){this.dragTrack||this.onEnd(),this.$emit("blur",n)},onMouseUp(){this.handlesRefs[this.prevMovedHandleIndex]&&this.handlesRefs[this.prevMovedHandleIndex].clickFocus()},onMouseMove(n){if(!this.sliderRef){this.onEnd();return}const o=rS(this.vertical,n);this.onMove(n,o-this.dragOffset,this.dragTrack,this.startBounds)},onTouchMove(n){if(nS(n)||!this.sliderRef){this.onEnd();return}const o=aS(this.vertical,n);this.onMove(n,o-this.dragOffset,this.dragTrack,this.startBounds)},onKeyDown(n){this.sliderRef&&Hd(n,this.handlesRefs)&&this.onKeyboard(n)},onClickMarkLabel(n,o){n.stopPropagation(),this.onChange({sValue:o}),this.setState({sValue:o},()=>this.onEnd(!0))},getSliderStart(){const n=this.sliderRef,{vertical:o,reverse:r}=this,a=n.getBoundingClientRect();return o?r?a.bottom:a.top:window.pageXOffset+(r?a.right:a.left)},getSliderLength(){const n=this.sliderRef;if(!n)return 0;const o=n.getBoundingClientRect();return this.vertical?o.height:o.width},addDocumentTouchEvents(){this.onTouchMoveListener=wt(this.document,"touchmove",this.onTouchMove),this.onTouchUpListener=wt(this.document,"touchend",this.onEnd)},addDocumentMouseEvents(){this.onMouseMoveListener=wt(this.document,"mousemove",this.onMouseMove),this.onMouseUpListener=wt(this.document,"mouseup",this.onEnd)},removeDocumentEvents(){this.onTouchMoveListener&&this.onTouchMoveListener.remove(),this.onTouchUpListener&&this.onTouchUpListener.remove(),this.onMouseMoveListener&&this.onMouseMoveListener.remove(),this.onMouseUpListener&&this.onMouseUpListener.remove()},focus(){var n;this.$props.disabled||(n=this.handlesRefs[0])===null||n===void 0||n.focus()},blur(){this.$props.disabled||Object.keys(this.handlesRefs).forEach(n=>{var o,r;(r=(o=this.handlesRefs[n])===null||o===void 0?void 0:o.blur)===null||r===void 0||r.call(o)})},calcValue(n){const{vertical:o,min:r,max:a}=this,l=Math.abs(Math.max(n,0)/this.getSliderLength());return o?(1-l)*(a-r)+r:l*(a-r)+r},calcValueByPos(n){const r=(this.reverse?-1:1)*(n-this.getSliderStart());return this.trimAlignValue(this.calcValue(r))},calcOffset(n){const{min:o,max:r}=this,a=(n-o)/(r-o);return Math.max(0,a*100)},saveSlider(n){this.sliderRef=n},saveHandle(n,o){this.handlesRefs[n]=o}},render(){const{prefixCls:n,marks:o,dots:r,step:a,included:l,disabled:i,vertical:s,reverse:u,min:c,max:d,maximumTrackStyle:p,railStyle:g,dotStyle:m,activeDotStyle:h,id:b}=this,{class:y,style:S}=this.$attrs,{tracks:$,handles:x}=this.renderSlider(),C=te(n,y,{[`${n}-with-marks`]:Object.keys(o).length,[`${n}-disabled`]:i,[`${n}-vertical`]:s,[`${n}-horizontal`]:!s}),O={vertical:s,marks:o,included:l,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:d,min:c,reverse:u,class:`${n}-mark`,onClickLabel:i?Sr:this.onClickMarkLabel},w={[zt?"onTouchstartPassive":"onTouchstart"]:i?Sr:this.onTouchStart};return f("div",N(N({id:b,ref:this.saveSlider,tabindex:"-1",class:C},w),{},{onMousedown:i?Sr:this.onMouseDown,onMouseup:i?Sr:this.onMouseUp,onKeydown:i?Sr:this.onKeyDown,onFocus:i?Sr:this.onFocus,onBlur:i?Sr:this.onBlur,style:S}),[f("div",{class:`${n}-rail`,style:v(v({},p),g)},null),$,f($Y,{prefixCls:n,vertical:s,reverse:u,marks:o,dots:r,step:a,included:l,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:d,min:c,dotStyle:m,activeDotStyle:h},null),x,f(CY,O,{mark:this.$slots.mark}),bc(this)])}})}const OY=J({compatConfig:{MODE:3},name:"Slider",mixins:[Jr],inheritAttrs:!1,props:{defaultValue:Number,value:Number,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},tabindex:V.oneOfType([V.number,V.string]),reverse:{type:Boolean,default:void 0},min:Number,max:Number,ariaLabelForHandle:String,ariaLabelledByForHandle:String,ariaValueTextFormatterForHandle:String,startPoint:Number},emits:["beforeChange","afterChange","change"],data(){const e=this.defaultValue!==void 0?this.defaultValue:this.min,t=this.value!==void 0?this.value:e;return{sValue:this.trimAlignValue(t),dragging:!1}},watch:{value:{handler(e){this.setChangeValue(e)},deep:!0},min(){const{sValue:e}=this;this.setChangeValue(e)},max(){const{sValue:e}=this;this.setChangeValue(e)}},methods:{setChangeValue(e){const t=e!==void 0?e:this.sValue,n=this.trimAlignValue(t,this.$props);n!==this.sValue&&(this.setState({sValue:n}),J3(t,this.$props)&&this.$emit("change",n))},onChange(e){const t=!_o(this,"value"),n=e.sValue>this.max?v(v({},e),{sValue:this.max}):e;t&&this.setState(n);const o=n.sValue;this.$emit("change",o)},onStart(e){this.setState({dragging:!0});const{sValue:t}=this;this.$emit("beforeChange",t);const n=this.calcValueByPos(e);this.startValue=n,this.startPosition=e,n!==t&&(this.prevMovedHandleIndex=0,this.onChange({sValue:n}))},onEnd(e){const{dragging:t}=this;this.removeDocumentEvents(),(t||e)&&this.$emit("afterChange",this.sValue),this.setState({dragging:!1})},onMove(e,t){Ga(e);const{sValue:n}=this,o=this.calcValueByPos(t);o!==n&&this.onChange({sValue:o})},onKeyboard(e){const{reverse:t,vertical:n}=this.$props,o=n6(e,n,t);if(o){Ga(e);const{sValue:r}=this,a=o(r,this.$props),l=this.trimAlignValue(a);if(l===r)return;this.onChange({sValue:l}),this.$emit("afterChange",l),this.onEnd()}},getLowerBound(){const e=this.$props.startPoint||this.$props.min;return this.$data.sValue>e?e:this.$data.sValue},getUpperBound(){return this.$data.sValue1&&arguments[1]!==void 0?arguments[1]:{};if(e===null)return null;const n=v(v({},this.$props),t),o=kh(e,n);return t6(o,n)},getTrack(e){let{prefixCls:t,reverse:n,vertical:o,included:r,minimumTrackStyle:a,mergedTrackStyle:l,length:i,offset:s}=e;return f(Y3,{class:`${t}-track`,vertical:o,included:r,offset:s,reverse:n,length:i,style:v(v({},a),l)},null)},renderSlider(){const{prefixCls:e,vertical:t,included:n,disabled:o,minimumTrackStyle:r,trackStyle:a,handleStyle:l,tabindex:i,ariaLabelForHandle:s,ariaLabelledByForHandle:u,ariaValueTextFormatterForHandle:c,min:d,max:p,startPoint:g,reverse:m,handle:h,defaultHandle:b}=this,y=h||b,{sValue:S,dragging:$}=this,x=this.calcOffset(S),C=y({class:`${e}-handle`,prefixCls:e,vertical:t,offset:x,value:S,dragging:$,disabled:o,min:d,max:p,reverse:m,index:0,tabindex:i,ariaLabel:s,ariaLabelledBy:u,ariaValueTextFormatter:c,style:l[0]||l,ref:M=>this.saveHandle(0,M),onFocus:this.onFocus,onBlur:this.onBlur}),O=g!==void 0?this.calcOffset(g):0,w=a[0]||a;return{tracks:this.getTrack({prefixCls:e,reverse:m,vertical:t,included:n,offset:O,minimumTrackStyle:r,mergedTrackStyle:w,length:x-O}),handles:C}}}}),PY=o6(OY),pl=e=>{let{value:t,handle:n,bounds:o,props:r}=e;const{allowCross:a,pushable:l}=r,i=Number(l),s=kh(t,r);let u=s;return!a&&n!=null&&o!==void 0&&(n>0&&s<=o[n-1]+i&&(u=o[n-1]+i),n=o[n+1]-i&&(u=o[n+1]-i)),t6(u,r)},IY={defaultValue:V.arrayOf(V.number),value:V.arrayOf(V.number),count:Number,pushable:cE(V.oneOfType([V.looseBool,V.number])),allowCross:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},reverse:{type:Boolean,default:void 0},tabindex:V.arrayOf(V.number),prefixCls:String,min:Number,max:Number,autofocus:{type:Boolean,default:void 0},ariaLabelGroupForHandles:Array,ariaLabelledByGroupForHandles:Array,ariaValueTextFormatterGroupForHandles:Array,draggableTrack:{type:Boolean,default:void 0}},TY=J({compatConfig:{MODE:3},name:"Range",mixins:[Jr],inheritAttrs:!1,props:rt(IY,{count:1,allowCross:!0,pushable:!1,tabindex:[],draggableTrack:!1,ariaLabelGroupForHandles:[],ariaLabelledByGroupForHandles:[],ariaValueTextFormatterGroupForHandles:[]}),emits:["beforeChange","afterChange","change"],displayName:"Range",data(){const{count:e,min:t,max:n}=this,o=Array(...Array(e+1)).map(()=>t),r=_o(this,"defaultValue")?this.defaultValue:o;let{value:a}=this;a===void 0&&(a=r);const l=a.map((s,u)=>pl({value:s,handle:u,props:this.$props}));return{sHandle:null,recent:l[0]===n?0:l.length-1,bounds:l}},watch:{value:{handler(e){const{bounds:t}=this;this.setChangeValue(e||t)},deep:!0},min(){const{value:e}=this;this.setChangeValue(e||this.bounds)},max(){const{value:e}=this;this.setChangeValue(e||this.bounds)}},methods:{setChangeValue(e){const{bounds:t}=this;let n=e.map((o,r)=>pl({value:o,handle:r,bounds:t,props:this.$props}));if(t.length===n.length){if(n.every((o,r)=>o===t[r]))return null}else n=e.map((o,r)=>pl({value:o,handle:r,props:this.$props}));if(this.setState({bounds:n}),e.some(o=>J3(o,this.$props))){const o=e.map(r=>kh(r,this.$props));this.$emit("change",o)}},onChange(e){if(!_o(this,"value"))this.setState(e);else{const r={};["sHandle","recent"].forEach(a=>{e[a]!==void 0&&(r[a]=e[a])}),Object.keys(r).length&&this.setState(r)}const o=v(v({},this.$data),e).bounds;this.$emit("change",o)},positionGetValue(e){const t=this.getValue(),n=this.calcValueByPos(e),o=this.getClosestBound(n),r=this.getBoundNeedMoving(n,o),a=t[r];if(n===a)return null;const l=[...t];return l[r]=n,l},onStart(e){const{bounds:t}=this;this.$emit("beforeChange",t);const n=this.calcValueByPos(e);this.startValue=n,this.startPosition=e;const o=this.getClosestBound(n);this.prevMovedHandleIndex=this.getBoundNeedMoving(n,o),this.setState({sHandle:this.prevMovedHandleIndex,recent:this.prevMovedHandleIndex});const r=t[this.prevMovedHandleIndex];if(n===r)return;const a=[...t];a[this.prevMovedHandleIndex]=n,this.onChange({bounds:a})},onEnd(e){const{sHandle:t}=this;this.removeDocumentEvents(),t||(this.dragTrack=!1),(t!==null||e)&&this.$emit("afterChange",this.bounds),this.setState({sHandle:null})},onMove(e,t,n,o){Ga(e);const{$data:r,$props:a}=this,l=a.max||100,i=a.min||0;if(n){let p=a.vertical?-t:t;p=a.reverse?-p:p;const g=l-Math.max(...o),m=i-Math.min(...o),h=Math.min(Math.max(p/(this.getSliderLength()/100),m),g),b=o.map(y=>Math.floor(Math.max(Math.min(y+h,l),i)));r.bounds.map((y,S)=>y===b[S]).some(y=>!y)&&this.onChange({bounds:b});return}const{bounds:s,sHandle:u}=this,c=this.calcValueByPos(t),d=s[u];c!==d&&this.moveTo(c)},onKeyboard(e){const{reverse:t,vertical:n}=this.$props,o=n6(e,n,t);if(o){Ga(e);const{bounds:r,sHandle:a}=this,l=r[a===null?this.recent:a],i=o(l,this.$props),s=pl({value:i,handle:a,bounds:r,props:this.$props});if(s===l)return;this.moveTo(s,!0)}},getClosestBound(e){const{bounds:t}=this;let n=0;for(let o=1;o=t[o]&&(n=o);return Math.abs(t[n+1]-e)i-s),this.internalPointsCache={marks:e,step:t,points:l}}return this.internalPointsCache.points},moveTo(e,t){const n=[...this.bounds],{sHandle:o,recent:r}=this,a=o===null?r:o;n[a]=e;let l=a;this.$props.pushable!==!1?this.pushSurroundingHandles(n,l):this.$props.allowCross&&(n.sort((i,s)=>i-s),l=n.indexOf(e)),this.onChange({recent:l,sHandle:l,bounds:n}),t&&(this.$emit("afterChange",n),this.setState({},()=>{this.handlesRefs[l].focus()}),this.onEnd())},pushSurroundingHandles(e,t){const n=e[t],{pushable:o}=this,r=Number(o);let a=0;if(e[t+1]-n=o.length||a<0)return!1;const l=t+n,i=o[a],{pushable:s}=this,u=Number(s),c=n*(e[l]-i);return this.pushHandle(e,l,n,u-c)?(e[t]=i,!0):!1},trimAlignValue(e){const{sHandle:t,bounds:n}=this;return pl({value:e,handle:t,bounds:n,props:this.$props})},ensureValueNotConflict(e,t,n){let{allowCross:o,pushable:r}=n;const a=this.$data||{},{bounds:l}=a;if(e=e===void 0?a.sHandle:e,r=Number(r),!o&&e!=null&&l!==void 0){if(e>0&&t<=l[e-1]+r)return l[e-1]+r;if(e=l[e+1]-r)return l[e+1]-r}return t},getTrack(e){let{bounds:t,prefixCls:n,reverse:o,vertical:r,included:a,offsets:l,trackStyle:i}=e;return t.slice(0,-1).map((s,u)=>{const c=u+1,d=te({[`${n}-track`]:!0,[`${n}-track-${c}`]:!0});return f(Y3,{class:d,vertical:r,reverse:o,included:a,offset:l[c-1],length:l[c]-l[c-1],style:i[u],key:c},null)})},renderSlider(){const{sHandle:e,bounds:t,prefixCls:n,vertical:o,included:r,disabled:a,min:l,max:i,reverse:s,handle:u,defaultHandle:c,trackStyle:d,handleStyle:p,tabindex:g,ariaLabelGroupForHandles:m,ariaLabelledByGroupForHandles:h,ariaValueTextFormatterGroupForHandles:b}=this,y=u||c,S=t.map(C=>this.calcOffset(C)),$=`${n}-handle`,x=t.map((C,O)=>{let w=g[O]||0;(a||g[O]===null)&&(w=null);const M=e===O;return y({class:te({[$]:!0,[`${$}-${O+1}`]:!0,[`${$}-dragging`]:M}),prefixCls:n,vertical:o,dragging:M,offset:S[O],value:C,index:O,tabindex:w,min:l,max:i,reverse:s,disabled:a,style:p[O],ref:I=>this.saveHandle(O,I),onFocus:this.onFocus,onBlur:this.onBlur,ariaLabel:m[O],ariaLabelledBy:h[O],ariaValueTextFormatter:b[O]})});return{tracks:this.getTrack({bounds:t,prefixCls:n,reverse:s,vertical:o,included:r,offsets:S,trackStyle:d}),handles:x}}}}),MY=o6(TY),EY=J({compatConfig:{MODE:3},name:"SliderTooltip",inheritAttrs:!1,props:_x(),setup(e,t){let{attrs:n,slots:o}=t;const r=Z(null),a=Z(null);function l(){We.cancel(a.value),a.value=null}function i(){a.value=We(()=>{var u;(u=r.value)===null||u===void 0||u.forcePopupAlign(),a.value=null})}const s=()=>{l(),e.open&&i()};return ue([()=>e.open,()=>e.title],()=>{s()},{flush:"post",immediate:!0}),F$(()=>{s()}),Je(()=>{l()}),()=>f(oo,N(N({ref:r},e),n),o)}}),_Y=e=>{const{componentCls:t,controlSize:n,dotSize:o,marginFull:r,marginPart:a,colorFillContentHover:l}=e;return{[t]:v(v({},et(e)),{position:"relative",height:n,margin:`${a}px ${r}px`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${r}px ${a}px`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.colorFillTertiary,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},[`${t}-track`]:{position:"absolute",backgroundColor:e.colorPrimaryBorder,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},"&:hover":{[`${t}-rail`]:{backgroundColor:e.colorFillSecondary},[`${t}-track`]:{backgroundColor:e.colorPrimaryBorderHover},[`${t}-dot`]:{borderColor:l},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.colorPrimary}},[`${t}-handle`]:{position:"absolute",width:e.handleSize,height:e.handleSize,outline:"none",[`${t}-dragging`]:{zIndex:1},"&::before":{content:'""',position:"absolute",insetInlineStart:-e.handleLineWidth,insetBlockStart:-e.handleLineWidth,width:e.handleSize+e.handleLineWidth*2,height:e.handleSize+e.handleLineWidth*2,backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:e.handleSize,height:e.handleSize,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorder}`,borderRadius:"50%",cursor:"pointer",transition:` + inset-inline-start ${e.motionDurationMid}, + inset-block-start ${e.motionDurationMid}, + width ${e.motionDurationMid}, + height ${e.motionDurationMid}, + box-shadow ${e.motionDurationMid} + `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),insetBlockStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),width:e.handleSizeHover+e.handleLineWidthHover*2,height:e.handleSizeHover+e.handleLineWidthHover*2},"&::after":{boxShadow:`0 0 0 ${e.handleLineWidthHover}px ${e.colorPrimary}`,width:e.handleSizeHover,height:e.handleSizeHover,insetInlineStart:(e.handleSize-e.handleSizeHover)/2,insetBlockStart:(e.handleSize-e.handleSizeHover)/2}}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:o,height:o,backgroundColor:e.colorBgElevated,border:`${e.handleLineWidth}px solid ${e.colorBorderSecondary}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,"&-active":{borderColor:e.colorPrimaryBorder}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.colorFillSecondary} !important`},[`${t}-track`]:{backgroundColor:`${e.colorTextDisabled} !important`},[` + ${t}-dot + `]:{backgroundColor:e.colorBgElevated,borderColor:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:e.handleSize,height:e.handleSize,boxShadow:`0 0 0 ${e.handleLineWidth}px ${new st(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString()}`,insetInlineStart:0,insetBlockStart:0},[` + ${t}-mark-text, + ${t}-dot + `]:{cursor:"not-allowed !important"}}})}},r6=(e,t)=>{const{componentCls:n,railSize:o,handleSize:r,dotSize:a}=e,l=t?"paddingBlock":"paddingInline",i=t?"width":"height",s=t?"height":"width",u=t?"insetBlockStart":"insetInlineStart",c=t?"top":"insetInlineStart";return{[l]:o,[s]:o*3,[`${n}-rail`]:{[i]:"100%",[s]:o},[`${n}-track`]:{[s]:o},[`${n}-handle`]:{[u]:(o*3-r)/2},[`${n}-mark`]:{insetInlineStart:0,top:0,[c]:r,[i]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[c]:o,[i]:"100%",[s]:o},[`${n}-dot`]:{position:"absolute",[u]:(o-a)/2}}},DY=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:v(v({},r6(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},AY=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:v(v({},r6(e,!1)),{height:"100%"})}},RY=Qe("Slider",e=>{const t=ze(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return[_Y(t),DY(t),AY(t)]},e=>{const n=e.controlHeightLG/4,o=e.controlHeightSM/2,r=e.lineWidth+1,a=e.lineWidth+1*3;return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:o,dotSize:8,handleLineWidth:r,handleLineWidthHover:a}});var iS=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rtypeof e=="number"?e.toString():"",kY=()=>({id:String,prefixCls:String,tooltipPrefixCls:String,range:Ge([Boolean,Object]),reverse:Ce(),min:Number,max:Number,step:Ge([Object,Number]),marks:Ne(),dots:Ce(),value:Ge([Array,Number]),defaultValue:Ge([Array,Number]),included:Ce(),disabled:Ce(),vertical:Ce(),tipFormatter:Ge([Function,Object],()=>NY),tooltipOpen:Ce(),tooltipVisible:Ce(),tooltipPlacement:je(),getTooltipPopupContainer:de(),autofocus:Ce(),handleStyle:Ge([Array,Object]),trackStyle:Ge([Array,Object]),onChange:de(),onAfterChange:de(),onFocus:de(),onBlur:de(),"onUpdate:value":de()}),BY=J({compatConfig:{MODE:3},name:"ASlider",inheritAttrs:!1,props:kY(),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:r,expose:a}=t;const{prefixCls:l,rootPrefixCls:i,direction:s,getPopupContainer:u,configProvider:c}=Ee("slider",e),[d,p]=RY(l),g=Ht(),m=Z(),h=Z({}),b=(w,M)=>{h.value[w]=M},y=P(()=>e.tooltipPlacement?e.tooltipPlacement:e.vertical?s.value==="rtl"?"left":"right":"top"),S=()=>{var w;(w=m.value)===null||w===void 0||w.focus()},$=()=>{var w;(w=m.value)===null||w===void 0||w.blur()},x=w=>{r("update:value",w),r("change",w),g.onFieldChange()},C=w=>{r("blur",w)};a({focus:S,blur:$});const O=w=>{var{tooltipPrefixCls:M}=w,I=w.info,{value:_,dragging:D,index:F}=I,z=iS(I,["value","dragging","index"]);const{tipFormatter:H,tooltipOpen:T=e.tooltipVisible,getTooltipPopupContainer:A}=e,R=H?h.value[F]||D:!1,E=T||T===void 0&&R;return f(EY,{prefixCls:M,title:H?H(_):"",open:E,placement:y.value,transitionName:`${i.value}-zoom-down`,key:F,overlayClassName:`${l.value}-tooltip`,getPopupContainer:A||(u==null?void 0:u.value)},{default:()=>[f(Z3,N(N({},z),{},{value:_,onMouseenter:()=>b(F,!0),onMouseleave:()=>b(F,!1)}),null)]})};return()=>{const{tooltipPrefixCls:w,range:M,id:I=g.id.value}=e,_=iS(e,["tooltipPrefixCls","range","id"]),D=c.getPrefixCls("tooltip",w),F=te(n.class,{[`${l.value}-rtl`]:s.value==="rtl"},p.value);s.value==="rtl"&&!_.vertical&&(_.reverse=!_.reverse);let z;return typeof M=="object"&&(z=M.draggableTrack),d(M?f(MY,N(N(N({},n),_),{},{step:_.step,draggableTrack:z,class:F,ref:m,handle:H=>O({tooltipPrefixCls:D,prefixCls:l.value,info:H}),prefixCls:l.value,onChange:x,onBlur:C}),{mark:o.mark}):f(PY,N(N(N({},n),_),{},{id:I,step:_.step,class:F,ref:m,handle:H=>O({tooltipPrefixCls:D,prefixCls:l.value,info:H}),prefixCls:l.value,onChange:x,onBlur:C}),{mark:o.mark}))}}}),Toe=Vt(BY),FY=e=>{const{componentCls:t}=e,n=`${t}-inner`;return{[t]:{[`&${t}-small`]:{minWidth:e.switchMinWidthSM,height:e.switchHeightSM,lineHeight:`${e.switchHeightSM}px`,[`${t}-inner`]:{paddingInlineStart:e.switchInnerMarginMaxSM,paddingInlineEnd:e.switchInnerMarginMinSM,[`${n}-checked`]:{marginInlineStart:`calc(-100% + ${e.switchPinSizeSM+e.switchPadding*2}px - ${e.switchInnerMarginMaxSM*2}px)`,marginInlineEnd:`calc(100% - ${e.switchPinSizeSM+e.switchPadding*2}px + ${e.switchInnerMarginMaxSM*2}px)`},[`${n}-unchecked`]:{marginTop:-e.switchHeightSM,marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:e.switchPinSizeSM,height:e.switchPinSizeSM},[`${t}-loading-icon`]:{top:(e.switchPinSizeSM-e.switchLoadingIconSize)/2,fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:e.switchInnerMarginMinSM,paddingInlineEnd:e.switchInnerMarginMaxSM,[`${n}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${n}-unchecked`]:{marginInlineStart:`calc(100% - ${e.switchPinSizeSM+e.switchPadding*2}px + ${e.switchInnerMarginMaxSM*2}px)`,marginInlineEnd:`calc(-100% + ${e.switchPinSizeSM+e.switchPadding*2}px - ${e.switchInnerMarginMaxSM*2}px)`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${e.switchPinSizeSM+e.switchPadding}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${n}`]:{[`${n}-unchecked`]:{marginInlineStart:e.marginXXS/2,marginInlineEnd:-e.marginXXS/2}},[`&${t}-checked ${n}`]:{[`${n}-checked`]:{marginInlineStart:-e.marginXXS/2,marginInlineEnd:e.marginXXS/2}}}}}}},LY=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:(e.switchPinSize-e.fontSize)/2,color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},zY=e=>{const{componentCls:t}=e,n=`${t}-handle`;return{[t]:{[n]:{position:"absolute",top:e.switchPadding,insetInlineStart:e.switchPadding,width:e.switchPinSize,height:e.switchPinSize,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:e.colorWhite,borderRadius:e.switchPinSize/2,boxShadow:e.switchHandleShadow,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${n}`]:{insetInlineStart:`calc(100% - ${e.switchPinSize+e.switchPadding}px)`},[`&:not(${t}-disabled):active`]:{[`${n}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${n}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},HY=e=>{const{componentCls:t}=e,n=`${t}-inner`;return{[t]:{[n]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:e.switchInnerMarginMax,paddingInlineEnd:e.switchInnerMarginMin,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${n}-checked, ${n}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none"},[`${n}-checked`]:{marginInlineStart:`calc(-100% + ${e.switchPinSize+e.switchPadding*2}px - ${e.switchInnerMarginMax*2}px)`,marginInlineEnd:`calc(100% - ${e.switchPinSize+e.switchPadding*2}px + ${e.switchInnerMarginMax*2}px)`},[`${n}-unchecked`]:{marginTop:-e.switchHeight,marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${n}`]:{paddingInlineStart:e.switchInnerMarginMin,paddingInlineEnd:e.switchInnerMarginMax,[`${n}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${n}-unchecked`]:{marginInlineStart:`calc(100% - ${e.switchPinSize+e.switchPadding*2}px + ${e.switchInnerMarginMax*2}px)`,marginInlineEnd:`calc(-100% + ${e.switchPinSize+e.switchPadding*2}px - ${e.switchInnerMarginMax*2}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${n}`]:{[`${n}-unchecked`]:{marginInlineStart:e.switchPadding*2,marginInlineEnd:-e.switchPadding*2}},[`&${t}-checked ${n}`]:{[`${n}-checked`]:{marginInlineStart:-e.switchPadding*2,marginInlineEnd:e.switchPadding*2}}}}}},jY=e=>{const{componentCls:t}=e;return{[t]:v(v(v(v({},et(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:e.switchMinWidth,height:e.switchHeight,lineHeight:`${e.switchHeight}px`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),Lo(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},VY=Qe("Switch",e=>{const t=e.fontSize*e.lineHeight,n=e.controlHeight/2,o=2,r=t-o*2,a=n-o*2,l=ze(e,{switchMinWidth:r*2+o*4,switchHeight:t,switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchInnerMarginMin:r/2,switchInnerMarginMax:r+o+o*2,switchPadding:o,switchPinSize:r,switchBg:e.colorBgContainer,switchMinWidthSM:a*2+o*2,switchHeightSM:n,switchInnerMarginMinSM:a/2,switchInnerMarginMaxSM:a+o+o*2,switchPinSizeSM:a,switchHandleShadow:`0 2px 4px 0 ${new st("#00230b").setAlpha(.2).toRgbString()}`,switchLoadingIconSize:e.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[jY(l),HY(l),zY(l),LY(l),FY(l)]}),WY=vn("small","default"),KY=()=>({id:String,prefixCls:String,size:V.oneOf(WY),disabled:{type:Boolean,default:void 0},checkedChildren:V.any,unCheckedChildren:V.any,tabindex:V.oneOfType([V.string,V.number]),autofocus:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},checked:V.oneOfType([V.string,V.number,V.looseBool]),checkedValue:V.oneOfType([V.string,V.number,V.looseBool]).def(!0),unCheckedValue:V.oneOfType([V.string,V.number,V.looseBool]).def(!1),onChange:{type:Function},onClick:{type:Function},onKeydown:{type:Function},onMouseup:{type:Function},"onUpdate:checked":{type:Function},onBlur:Function,onFocus:Function}),GY=J({compatConfig:{MODE:3},name:"ASwitch",__ANT_SWITCH:!0,inheritAttrs:!1,props:KY(),slots:Object,setup(e,t){let{attrs:n,slots:o,expose:r,emit:a}=t;const l=Ht(),i=gn(),s=P(()=>{var I;return(I=e.disabled)!==null&&I!==void 0?I:i.value});Xp(()=>{yt(),yt()});const u=Z(e.checked!==void 0?e.checked:n.defaultChecked),c=P(()=>u.value===e.checkedValue);ue(()=>e.checked,()=>{u.value=e.checked});const{prefixCls:d,direction:p,size:g}=Ee("switch",e),[m,h]=VY(d),b=Z(),y=()=>{var I;(I=b.value)===null||I===void 0||I.focus()};r({focus:y,blur:()=>{var I;(I=b.value)===null||I===void 0||I.blur()}}),Ve(()=>{lt(()=>{e.autofocus&&!s.value&&b.value.focus()})});const $=(I,_)=>{s.value||(a("update:checked",I),a("change",I,_),l.onFieldChange())},x=I=>{a("blur",I)},C=I=>{y();const _=c.value?e.unCheckedValue:e.checkedValue;$(_,I),a("click",_,I)},O=I=>{I.keyCode===$e.LEFT?$(e.unCheckedValue,I):I.keyCode===$e.RIGHT&&$(e.checkedValue,I),a("keydown",I)},w=I=>{var _;(_=b.value)===null||_===void 0||_.blur(),a("mouseup",I)},M=P(()=>({[`${d.value}-small`]:g.value==="small",[`${d.value}-loading`]:e.loading,[`${d.value}-checked`]:c.value,[`${d.value}-disabled`]:s.value,[d.value]:!0,[`${d.value}-rtl`]:p.value==="rtl",[h.value]:!0}));return()=>{var I;return m(f(Cg,null,{default:()=>[f("button",N(N(N({},qe(e,["prefixCls","checkedChildren","unCheckedChildren","checked","autofocus","checkedValue","unCheckedValue","id","onChange","onUpdate:checked"])),n),{},{id:(I=e.id)!==null&&I!==void 0?I:l.id.value,onKeydown:O,onClick:C,onBlur:x,onMouseup:w,type:"button",role:"switch","aria-checked":u.value,disabled:s.value||e.loading,class:[n.class,M.value],ref:b}),[f("div",{class:`${d.value}-handle`},[e.loading?f(Un,{class:`${d.value}-loading-icon`},null):null]),f("span",{class:`${d.value}-inner`},[f("span",{class:`${d.value}-inner-checked`},[Nt(o,e,"checkedChildren")]),f("span",{class:`${d.value}-inner-unchecked`},[Nt(o,e,"unCheckedChildren")])])])]}))}}}),Moe=Vt(GY),a6=Symbol("TableContextProps"),XY=e=>{Ke(a6,e)},xo=()=>Xe(a6,{}),UY="RC_TABLE_KEY";function l6(e){return e==null?[]:Array.isArray(e)?e:[e]}function i6(e,t){if(!t&&typeof t!="number")return e;const n=l6(t);let o=e;for(let r=0;r{const{key:r,dataIndex:a}=o||{};let l=r||l6(a).join("-")||UY;for(;n[l];)l=`${l}_next`;n[l]=!0,t.push(l)}),t}function YY(){const e={};function t(a,l){l&&Object.keys(l).forEach(i=>{const s=l[i];s&&typeof s=="object"?(a[i]=a[i]||{},t(a[i],s)):a[i]=s})}for(var n=arguments.length,o=new Array(n),r=0;r{t(e,a)}),e}function Mp(e){return e!=null}const s6=Symbol("SlotsContextProps"),qY=e=>{Ke(s6,e)},Bh=()=>Xe(s6,P(()=>({}))),c6=Symbol("ContextProps"),QY=e=>{Ke(c6,e)},ZY=()=>Xe(c6,{onResizeColumn:()=>{}}),Ma="RC_TABLE_INTERNAL_COL_DEFINE",u6=Symbol("HoverContextProps"),JY=e=>{Ke(u6,e)},eq=()=>Xe(u6,{startRow:Y(-1),endRow:Y(-1),onHover(){}}),Ep=Y(!1),tq=()=>{Ve(()=>{Ep.value=Ep.value||ah("position","sticky")})},nq=()=>Ep;var oq=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r=n}function aq(e){return e&&typeof e=="object"&&!Array.isArray(e)&&!Zt(e)}const gu=J({name:"Cell",props:["prefixCls","record","index","renderIndex","dataIndex","customRender","component","colSpan","rowSpan","fixLeft","fixRight","firstFixLeft","lastFixLeft","firstFixRight","lastFixRight","appendNode","additionalProps","ellipsis","align","rowType","isSticky","column","cellType","transformCellText"],setup(e,t){let{slots:n}=t;const o=Bh(),{onHover:r,startRow:a,endRow:l}=eq(),i=P(()=>{var m,h,b,y;return(b=(m=e.colSpan)!==null&&m!==void 0?m:(h=e.additionalProps)===null||h===void 0?void 0:h.colSpan)!==null&&b!==void 0?b:(y=e.additionalProps)===null||y===void 0?void 0:y.colspan}),s=P(()=>{var m,h,b,y;return(b=(m=e.rowSpan)!==null&&m!==void 0?m:(h=e.additionalProps)===null||h===void 0?void 0:h.rowSpan)!==null&&b!==void 0?b:(y=e.additionalProps)===null||y===void 0?void 0:y.rowspan}),u=zn(()=>{const{index:m}=e;return rq(m,s.value||1,a.value,l.value)}),c=nq(),d=(m,h)=>{var b;const{record:y,index:S,additionalProps:$}=e;y&&r(S,S+h-1),(b=$==null?void 0:$.onMouseenter)===null||b===void 0||b.call($,m)},p=m=>{var h;const{record:b,additionalProps:y}=e;b&&r(-1,-1),(h=y==null?void 0:y.onMouseleave)===null||h===void 0||h.call(y,m)},g=m=>{const h=Tt(m)[0];return Zt(h)?h.type===Gp?h.children:Array.isArray(h.children)?g(h.children):void 0:h};return()=>{var m,h,b,y,S,$;const{prefixCls:x,record:C,index:O,renderIndex:w,dataIndex:M,customRender:I,component:_="td",fixLeft:D,fixRight:F,firstFixLeft:z,lastFixLeft:H,firstFixRight:T,lastFixRight:A,appendNode:R=(m=n.appendNode)===null||m===void 0?void 0:m.call(n),additionalProps:E={},ellipsis:k,align:B,rowType:L,isSticky:j,column:K={},cellType:G}=e,U=`${x}-cell`;let X,ee;const oe=(h=n.default)===null||h===void 0?void 0:h.call(n);if(Mp(oe)||G==="header")ee=oe;else{const we=i6(C,M);if(ee=we,I){const ae=I({text:we,value:we,record:C,index:O,renderIndex:w,column:K.__originColumn__});aq(ae)?(ee=ae.children,X=ae.props):ee=ae}if(!(Ma in K)&&G==="body"&&o.value.bodyCell&&!(!((b=K.slots)===null||b===void 0)&&b.customRender)){const ae=Ic(o.value,"bodyCell",{text:we,value:we,record:C,index:O,column:K.__originColumn__},()=>{const ne=ee===void 0?we:ee;return[typeof ne=="object"&&kt(ne)||typeof ne!="object"?ne:null]});ee=mt(ae)}e.transformCellText&&(ee=e.transformCellText({text:ee,record:C,index:O,column:K.__originColumn__}))}typeof ee=="object"&&!Array.isArray(ee)&&!Zt(ee)&&(ee=null),k&&(H||T)&&(ee=f("span",{class:`${U}-content`},[ee])),Array.isArray(ee)&&ee.length===1&&(ee=ee[0]);const Q=X||{},{colSpan:W,rowSpan:q,style:re,class:le}=Q,ye=oq(Q,["colSpan","rowSpan","style","class"]),me=(y=W!==void 0?W:i.value)!==null&&y!==void 0?y:1,ce=(S=q!==void 0?q:s.value)!==null&&S!==void 0?S:1;if(me===0||ce===0)return null;const se={},ie=typeof D=="number"&&c.value,fe=typeof F=="number"&&c.value;ie&&(se.position="sticky",se.left=`${D}px`),fe&&(se.position="sticky",se.right=`${F}px`);const Se={};B&&(Se.textAlign=B);let Ie;const ge=k===!0?{showTitle:!0}:k;ge&&(ge.showTitle||L==="header")&&(typeof ee=="string"||typeof ee=="number"?Ie=ee.toString():Zt(ee)&&(Ie=g([ee])));const Oe=v(v(v({title:Ie},ye),E),{colSpan:me!==1?me:null,rowSpan:ce!==1?ce:null,class:te(U,{[`${U}-fix-left`]:ie&&c.value,[`${U}-fix-left-first`]:z&&c.value,[`${U}-fix-left-last`]:H&&c.value,[`${U}-fix-right`]:fe&&c.value,[`${U}-fix-right-first`]:T&&c.value,[`${U}-fix-right-last`]:A&&c.value,[`${U}-ellipsis`]:k,[`${U}-with-append`]:R,[`${U}-fix-sticky`]:(ie||fe)&&j&&c.value,[`${U}-row-hover`]:!X&&u.value},E.class,le),onMouseenter:we=>{d(we,ce)},onMouseleave:p,style:[E.style,Se,se,re]});return f(_,Oe,{default:()=>[R,ee,($=n.dragHandle)===null||$===void 0?void 0:$.call(n)]})}}});function Fh(e,t,n,o,r){const a=n[e]||{},l=n[t]||{};let i,s;a.fixed==="left"?i=o.left[e]:l.fixed==="right"&&(s=o.right[t]);let u=!1,c=!1,d=!1,p=!1;const g=n[t+1],m=n[e-1];return r==="rtl"?i!==void 0?p=!(m&&m.fixed==="left"):s!==void 0&&(d=!(g&&g.fixed==="right")):i!==void 0?u=!(g&&g.fixed==="left"):s!==void 0&&(c=!(m&&m.fixed==="right")),{fixLeft:i,fixRight:s,lastFixLeft:u,firstFixRight:c,lastFixRight:d,firstFixLeft:p,isSticky:o.isSticky}}const sS={mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"},touch:{start:"touchstart",move:"touchmove",stop:"touchend"}},cS=50,lq=J({compatConfig:{MODE:3},name:"DragHandle",props:{prefixCls:String,width:{type:Number,required:!0},minWidth:{type:Number,default:cS},maxWidth:{type:Number,default:1/0},column:{type:Object,default:void 0}},setup(e){let t=0,n={remove:()=>{}},o={remove:()=>{}};const r=()=>{n.remove(),o.remove()};An(()=>{r()}),Le(()=>{bt(!isNaN(e.width),"Table","width must be a number when use resizable")});const{onResizeColumn:a}=ZY(),l=P(()=>typeof e.minWidth=="number"&&!isNaN(e.minWidth)?e.minWidth:cS),i=P(()=>typeof e.maxWidth=="number"&&!isNaN(e.maxWidth)?e.maxWidth:1/0),s=Dn();let u=0;const c=Y(!1);let d;const p=$=>{let x=0;$.touches?$.touches.length?x=$.touches[0].pageX:x=$.changedTouches[0].pageX:x=$.pageX;const C=t-x;let O=Math.max(u-C,l.value);O=Math.min(O,i.value),We.cancel(d),d=We(()=>{a(O,e.column.__originColumn__)})},g=$=>{p($)},m=$=>{c.value=!1,p($),r()},h=($,x)=>{c.value=!0,r(),u=s.vnode.el.parentNode.getBoundingClientRect().width,!($ instanceof MouseEvent&&$.which!==1)&&($.stopPropagation&&$.stopPropagation(),t=$.touches?$.touches[0].pageX:$.pageX,n=wt(document.documentElement,x.move,g),o=wt(document.documentElement,x.stop,m))},b=$=>{$.stopPropagation(),$.preventDefault(),h($,sS.mouse)},y=$=>{$.stopPropagation(),$.preventDefault(),h($,sS.touch)},S=$=>{$.stopPropagation(),$.preventDefault()};return()=>{const{prefixCls:$}=e,x={[zt?"onTouchstartPassive":"onTouchstart"]:C=>y(C)};return f("div",N(N({class:`${$}-resize-handle ${c.value?"dragging":""}`,onMousedown:b},x),{},{onClick:S}),[f("div",{class:`${$}-resize-handle-line`},null)])}}}),iq=J({name:"HeaderRow",props:["cells","stickyOffsets","flattenColumns","rowComponent","cellComponent","index","customHeaderRow"],setup(e){const t=xo();return()=>{const{prefixCls:n,direction:o}=t,{cells:r,stickyOffsets:a,flattenColumns:l,rowComponent:i,cellComponent:s,customHeaderRow:u,index:c}=e;let d;u&&(d=u(r.map(g=>g.column),c));const p=vu(r.map(g=>g.column));return f(i,d,{default:()=>[r.map((g,m)=>{const{column:h}=g,b=Fh(g.colStart,g.colEnd,l,a,o);let y;h&&h.customHeaderCell&&(y=g.column.customHeaderCell(h));const S=h;return f(gu,N(N(N({},g),{},{cellType:"header",ellipsis:h.ellipsis,align:h.align,component:s,prefixCls:n,key:p[m]},b),{},{additionalProps:y,rowType:"header",column:h}),{default:()=>h.title,dragHandle:()=>S.resizable?f(lq,{prefixCls:n,width:S.width,minWidth:S.minWidth,maxWidth:S.maxWidth,column:S},null):null})})]})}}});function sq(e){const t=[];function n(r,a){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[l]=t[l]||[];let i=a;return r.filter(Boolean).map(u=>{const c={key:u.key,class:te(u.className,u.class),column:u,colStart:i};let d=1;const p=u.children;return p&&p.length>0&&(d=n(p,i,l+1).reduce((g,m)=>g+m,0),c.hasSubColumns=!0),"colSpan"in u&&({colSpan:d}=u),"rowSpan"in u&&(c.rowSpan=u.rowSpan),c.colSpan=d,c.colEnd=c.colStart+d-1,t[l].push(c),i+=d,d})}n(e,0);const o=t.length;for(let r=0;r{!("rowSpan"in a)&&!a.hasSubColumns&&(a.rowSpan=o-r)});return t}const uS=J({name:"TableHeader",inheritAttrs:!1,props:["columns","flattenColumns","stickyOffsets","customHeaderRow"],setup(e){const t=xo(),n=P(()=>sq(e.columns));return()=>{const{prefixCls:o,getComponent:r}=t,{stickyOffsets:a,flattenColumns:l,customHeaderRow:i}=e,s=r(["header","wrapper"],"thead"),u=r(["header","row"],"tr"),c=r(["header","cell"],"th");return f(s,{class:`${o}-thead`},{default:()=>[n.value.map((d,p)=>f(iq,{key:p,flattenColumns:l,cells:d,stickyOffsets:a,rowComponent:u,cellComponent:c,customHeaderRow:i,index:p},null))]})}}}),d6=Symbol("ExpandedRowProps"),cq=e=>{Ke(d6,e)},uq=()=>Xe(d6,{}),f6=J({name:"ExpandedRow",inheritAttrs:!1,props:["prefixCls","component","cellComponent","expanded","colSpan","isEmpty"],setup(e,t){let{slots:n,attrs:o}=t;const r=xo(),a=uq(),{fixHeader:l,fixColumn:i,componentWidth:s,horizonScroll:u}=a;return()=>{const{prefixCls:c,component:d,cellComponent:p,expanded:g,colSpan:m,isEmpty:h}=e;return f(d,{class:o.class,style:{display:g?null:"none"}},{default:()=>[f(gu,{component:p,prefixCls:c,colSpan:m},{default:()=>{var b;let y=(b=n.default)===null||b===void 0?void 0:b.call(n);return(h?u.value:i.value)&&(y=f("div",{style:{width:`${s.value-(l.value?r.scrollbarSize:0)}px`,position:"sticky",left:0,overflow:"hidden"},class:`${c}-expanded-row-fixed`},[y])),y}})]})}}}),dq=J({name:"MeasureCell",props:["columnKey"],setup(e,t){let{emit:n}=t;const o=Z();return Ve(()=>{o.value&&n("columnResize",e.columnKey,o.value.offsetWidth)}),()=>f(ho,{onResize:r=>{let{offsetWidth:a}=r;n("columnResize",e.columnKey,a)}},{default:()=>[f("td",{ref:o,style:{padding:0,border:0,height:0}},[f("div",{style:{height:0,overflow:"hidden"}},[go(" ")])])]})}}),p6=Symbol("BodyContextProps"),fq=e=>{Ke(p6,e)},v6=()=>Xe(p6,{}),pq=J({name:"BodyRow",inheritAttrs:!1,props:["record","index","renderIndex","recordKey","expandedKeys","rowComponent","cellComponent","customRow","rowExpandable","indent","rowKey","getRowKey","childrenColumnName"],setup(e,t){let{attrs:n}=t;const o=xo(),r=v6(),a=Y(!1),l=P(()=>e.expandedKeys&&e.expandedKeys.has(e.recordKey));Le(()=>{l.value&&(a.value=!0)});const i=P(()=>r.expandableType==="row"&&(!e.rowExpandable||e.rowExpandable(e.record))),s=P(()=>r.expandableType==="nest"),u=P(()=>e.childrenColumnName&&e.record&&e.record[e.childrenColumnName]),c=P(()=>i.value||s.value),d=(b,y)=>{r.onTriggerExpand(b,y)},p=P(()=>{var b;return((b=e.customRow)===null||b===void 0?void 0:b.call(e,e.record,e.index))||{}}),g=function(b){var y,S;r.expandRowByClick&&c.value&&d(e.record,b);for(var $=arguments.length,x=new Array($>1?$-1:0),C=1;C<$;C++)x[C-1]=arguments[C];(S=(y=p.value)===null||y===void 0?void 0:y.onClick)===null||S===void 0||S.call(y,b,...x)},m=P(()=>{const{record:b,index:y,indent:S}=e,{rowClassName:$}=r;return typeof $=="string"?$:typeof $=="function"?$(b,y,S):""}),h=P(()=>vu(r.flattenColumns));return()=>{const{class:b,style:y}=n,{record:S,index:$,rowKey:x,indent:C=0,rowComponent:O,cellComponent:w}=e,{prefixCls:M,fixedInfoList:I,transformCellText:_}=o,{flattenColumns:D,expandedRowClassName:F,indentSize:z,expandIcon:H,expandedRowRender:T,expandIconColumnIndex:A}=r,R=f(O,N(N({},p.value),{},{"data-row-key":x,class:te(b,`${M}-row`,`${M}-row-level-${C}`,m.value,p.value.class),style:[y,p.value.style],onClick:g}),{default:()=>[D.map((k,B)=>{const{customRender:L,dataIndex:j,className:K}=k,G=h[B],U=I[B];let X;k.customCell&&(X=k.customCell(S,$,k));const ee=B===(A||0)&&s.value?f(nt,null,[f("span",{style:{paddingLeft:`${z*C}px`},class:`${M}-row-indent indent-level-${C}`},null),H({prefixCls:M,expanded:l.value,expandable:u.value,record:S,onExpand:d})]):null;return f(gu,N(N({cellType:"body",class:K,ellipsis:k.ellipsis,align:k.align,component:w,prefixCls:M,key:G,record:S,index:$,renderIndex:e.renderIndex,dataIndex:j,customRender:L},U),{},{additionalProps:X,column:k,transformCellText:_,appendNode:ee}),null)})]});let E;if(i.value&&(a.value||l.value)){const k=T({record:S,index:$,indent:C+1,expanded:l.value}),B=F&&F(S,$,C);E=f(f6,{expanded:l.value,class:te(`${M}-expanded-row`,`${M}-expanded-row-level-${C+1}`,B),prefixCls:M,component:O,cellComponent:w,colSpan:D.length,isEmpty:!1},{default:()=>[k]})}return f(nt,null,[R,E])}}});function g6(e,t,n,o,r,a){const l=[];l.push({record:e,indent:t,index:a});const i=r(e),s=o==null?void 0:o.has(i);if(e&&Array.isArray(e[n])&&s)for(let u=0;u{const a=t.value,l=n.value,i=e.value;if(l!=null&&l.size){const s=[];for(let u=0;u<(i==null?void 0:i.length);u+=1){const c=i[u];s.push(...g6(c,0,a,l,o.value,u))}return s}return i==null?void 0:i.map((s,u)=>({record:s,indent:0,index:u}))})}const h6=Symbol("ResizeContextProps"),gq=e=>{Ke(h6,e)},hq=()=>Xe(h6,{onColumnResize:()=>{}}),mq=J({name:"TableBody",props:["data","getRowKey","measureColumnWidth","expandedKeys","customRow","rowExpandable","childrenColumnName"],setup(e,t){let{slots:n}=t;const o=hq(),r=xo(),a=v6(),l=vq(Be(e,"data"),Be(e,"childrenColumnName"),Be(e,"expandedKeys"),Be(e,"getRowKey")),i=Y(-1),s=Y(-1);let u;return JY({startRow:i,endRow:s,onHover:(c,d)=>{clearTimeout(u),u=setTimeout(()=>{i.value=c,s.value=d},100)}}),()=>{var c;const{data:d,getRowKey:p,measureColumnWidth:g,expandedKeys:m,customRow:h,rowExpandable:b,childrenColumnName:y}=e,{onColumnResize:S}=o,{prefixCls:$,getComponent:x}=r,{flattenColumns:C}=a,O=x(["body","wrapper"],"tbody"),w=x(["body","row"],"tr"),M=x(["body","cell"],"td");let I;d.length?I=l.value.map((D,F)=>{const{record:z,indent:H,index:T}=D,A=p(z,F);return f(pq,{key:A,rowKey:A,record:z,recordKey:A,index:F,renderIndex:T,rowComponent:w,cellComponent:M,expandedKeys:m,customRow:h,getRowKey:p,rowExpandable:b,childrenColumnName:y,indent:H},null)}):I=f(f6,{expanded:!0,class:`${$}-placeholder`,prefixCls:$,component:w,cellComponent:M,colSpan:C.length,isEmpty:!0},{default:()=>[(c=n.emptyNode)===null||c===void 0?void 0:c.call(n)]});const _=vu(C);return f(O,{class:`${$}-tbody`},{default:()=>[g&&f("tr",{"aria-hidden":"true",class:`${$}-measure-row`,style:{height:0,fontSize:0}},[_.map(D=>f(dq,{key:D,columnKey:D,onColumnResize:S},null))]),I]})}}}),Jo={};var bq=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{const{fixed:o}=n,r=o===!0?"left":o,a=n.children;return a&&a.length>0?[...t,..._p(a).map(l=>v({fixed:r},l))]:[...t,v(v({},n),{fixed:r})]},[])}function yq(e){return e.map(t=>{const{fixed:n}=t,o=bq(t,["fixed"]);let r=n;return n==="left"?r="right":n==="right"&&(r="left"),v({fixed:r},o)})}function Sq(e,t){let{prefixCls:n,columns:o,expandable:r,expandedKeys:a,getRowKey:l,onTriggerExpand:i,expandIcon:s,rowExpandable:u,expandIconColumnIndex:c,direction:d,expandRowByClick:p,expandColumnWidth:g,expandFixed:m}=e;const h=Bh(),b=P(()=>{if(r.value){let $=o.value.slice();if(!$.includes(Jo)){const z=c.value||0;z>=0&&$.splice(z,0,Jo)}const x=$.indexOf(Jo);$=$.filter((z,H)=>z!==Jo||H===x);const C=o.value[x];let O;(m.value==="left"||m.value)&&!c.value?O="left":(m.value==="right"||m.value)&&c.value===o.value.length?O="right":O=C?C.fixed:null;const w=a.value,M=u.value,I=s.value,_=n.value,D=p.value,F={[Ma]:{class:`${n.value}-expand-icon-col`,columnType:"EXPAND_COLUMN"},title:Ic(h.value,"expandColumnTitle",{},()=>[""]),fixed:O,class:`${n.value}-row-expand-icon-cell`,width:g.value,customRender:z=>{let{record:H,index:T}=z;const A=l.value(H,T),R=w.has(A),E=M?M(H):!0,k=I({prefixCls:_,expanded:R,expandable:E,record:H,onExpand:i});return D?f("span",{onClick:B=>B.stopPropagation()},[k]):k}};return $.map(z=>z===Jo?F:z)}return o.value.filter($=>$!==Jo)}),y=P(()=>{let $=b.value;return t.value&&($=t.value($)),$.length||($=[{customRender:()=>null}]),$}),S=P(()=>d.value==="rtl"?yq(_p(y.value)):_p(y.value));return[y,S]}function m6(e){const t=Y(e);let n;const o=Y([]);function r(a){o.value.push(a),We.cancel(n),n=We(()=>{const l=o.value;o.value=[],l.forEach(i=>{t.value=i(t.value)})})}return Je(()=>{We.cancel(n)}),[t,r]}function $q(e){const t=Z(e||null),n=Z();function o(){clearTimeout(n.value)}function r(l){t.value=l,o(),n.value=setTimeout(()=>{t.value=null,n.value=void 0},100)}function a(){return t.value}return Je(()=>{o()}),[r,a]}function Cq(e,t,n){return P(()=>{const r=[],a=[];let l=0,i=0;const s=e.value,u=t.value,c=n.value;for(let d=0;d=0;i-=1){const s=t[i],u=n&&n[i],c=u&&u[Ma];if(s||c||l){const d=c||{},p=xq(d,["columnType"]);r.unshift(f("col",N({key:i,style:{width:typeof s=="number"?`${s}px`:s}},p),null)),l=!0}}return f("colgroup",null,[r])}function Dp(e,t){let{slots:n}=t;var o;return f("div",null,[(o=n.default)===null||o===void 0?void 0:o.call(n)])}Dp.displayName="Panel";let wq=0;const Oq=J({name:"TableSummary",props:["fixed"],setup(e,t){let{slots:n}=t;const o=xo(),r=`table-summary-uni-key-${++wq}`,a=P(()=>e.fixed===""||e.fixed);return Le(()=>{o.summaryCollect(r,a.value)}),Je(()=>{o.summaryCollect(r,!1)}),()=>{var l;return(l=n.default)===null||l===void 0?void 0:l.call(n)}}}),Pq=Oq,Iq=J({compatConfig:{MODE:3},name:"ATableSummaryRow",setup(e,t){let{slots:n}=t;return()=>{var o;return f("tr",null,[(o=n.default)===null||o===void 0?void 0:o.call(n)])}}}),y6=Symbol("SummaryContextProps"),Tq=e=>{Ke(y6,e)},Mq=()=>Xe(y6,{}),Eq=J({name:"ATableSummaryCell",props:["index","colSpan","rowSpan","align"],setup(e,t){let{attrs:n,slots:o}=t;const r=xo(),a=Mq();return()=>{const{index:l,colSpan:i=1,rowSpan:s,align:u}=e,{prefixCls:c,direction:d}=r,{scrollColumnIndex:p,stickyOffsets:g,flattenColumns:m}=a,b=l+i-1+1===p?i+1:i,y=Fh(l,l+b-1,m,g,d);return f(gu,N({class:n.class,index:l,component:"td",prefixCls:c,record:null,dataIndex:null,align:u,colSpan:b,rowSpan:s,customRender:()=>{var S;return(S=o.default)===null||S===void 0?void 0:S.call(o)}},y),null)}}}),Xi=J({name:"TableFooter",inheritAttrs:!1,props:["stickyOffsets","flattenColumns"],setup(e,t){let{slots:n}=t;const o=xo();return Tq(vt({stickyOffsets:Be(e,"stickyOffsets"),flattenColumns:Be(e,"flattenColumns"),scrollColumnIndex:P(()=>{const r=e.flattenColumns.length-1,a=e.flattenColumns[r];return a!=null&&a.scrollbar?r:null})})),()=>{var r;const{prefixCls:a}=o;return f("tfoot",{class:`${a}-summary`},[(r=n.default)===null||r===void 0?void 0:r.call(n)])}}}),_q=Pq;function Dq(e){let{prefixCls:t,record:n,onExpand:o,expanded:r,expandable:a}=e;const l=`${t}-row-expand-icon`;if(!a)return f("span",{class:[l,`${t}-row-spaced`]},null);const i=s=>{o(n,s),s.stopPropagation()};return f("span",{class:{[l]:!0,[`${t}-row-expanded`]:r,[`${t}-row-collapsed`]:!r},onClick:i},null)}function Aq(e,t,n){const o=[];function r(a){(a||[]).forEach((l,i)=>{o.push(t(l,i)),r(l[n])})}return r(e),o}const Rq=J({name:"StickyScrollBar",inheritAttrs:!1,props:["offsetScroll","container","scrollBodyRef","scrollBodySizeInfo"],emits:["scroll"],setup(e,t){let{emit:n,expose:o}=t;const r=xo(),a=Y(0),l=Y(0),i=Y(0);Le(()=>{a.value=e.scrollBodySizeInfo.scrollWidth||0,l.value=e.scrollBodySizeInfo.clientWidth||0,i.value=a.value&&l.value*(l.value/a.value)},{flush:"post"});const s=Y(),[u,c]=m6({scrollLeft:0,isHiddenScrollBar:!0}),d=Z({delta:0,x:0}),p=Y(!1),g=()=>{p.value=!1},m=w=>{d.value={delta:w.pageX-u.value.scrollLeft,x:0},p.value=!0,w.preventDefault()},h=w=>{const{buttons:M}=w||(window==null?void 0:window.event);if(!p.value||M===0){p.value&&(p.value=!1);return}let I=d.value.x+w.pageX-d.value.x-d.value.delta;I<=0&&(I=0),I+i.value>=l.value&&(I=l.value-i.value),n("scroll",{scrollLeft:I/l.value*(a.value+2)}),d.value.x=w.pageX},b=()=>{if(!e.scrollBodyRef.value)return;const w=Zs(e.scrollBodyRef.value).top,M=w+e.scrollBodyRef.value.offsetHeight,I=e.container===window?document.documentElement.scrollTop+window.innerHeight:Zs(e.container).top+e.container.clientHeight;M-As()<=I||w>=I-e.offsetScroll?c(_=>v(v({},_),{isHiddenScrollBar:!0})):c(_=>v(v({},_),{isHiddenScrollBar:!1}))};o({setScrollLeft:w=>{c(M=>v(v({},M),{scrollLeft:w/a.value*l.value||0}))}});let S=null,$=null,x=null,C=null;Ve(()=>{S=wt(document.body,"mouseup",g,!1),$=wt(document.body,"mousemove",h,!1),x=wt(window,"resize",b,!1)}),F$(()=>{lt(()=>{b()})}),Ve(()=>{setTimeout(()=>{ue([i,p],()=>{b()},{immediate:!0,flush:"post"})})}),ue(()=>e.container,()=>{C==null||C.remove(),C=wt(e.container,"scroll",b,!1)},{immediate:!0,flush:"post"}),Je(()=>{S==null||S.remove(),$==null||$.remove(),C==null||C.remove(),x==null||x.remove()}),ue(()=>v({},u.value),(w,M)=>{w.isHiddenScrollBar!==(M==null?void 0:M.isHiddenScrollBar)&&!w.isHiddenScrollBar&&c(I=>{const _=e.scrollBodyRef.value;return _?v(v({},I),{scrollLeft:_.scrollLeft/_.scrollWidth*_.clientWidth}):I})},{immediate:!0});const O=As();return()=>{if(a.value<=l.value||!i.value||u.value.isHiddenScrollBar)return null;const{prefixCls:w}=r;return f("div",{style:{height:`${O}px`,width:`${l.value}px`,bottom:`${e.offsetScroll}px`},class:`${w}-sticky-scroll`},[f("div",{onMousedown:m,ref:s,class:te(`${w}-sticky-scroll-bar`,{[`${w}-sticky-scroll-bar-active`]:p.value}),style:{width:`${i.value}px`,transform:`translate3d(${u.value.scrollLeft}px, 0, 0)`}},null)])}}}),dS=hn()?window:null;function Nq(e,t){return P(()=>{const{offsetHeader:n=0,offsetSummary:o=0,offsetScroll:r=0,getContainer:a=()=>dS}=typeof e.value=="object"?e.value:{},l=a()||dS,i=!!e.value;return{isSticky:i,stickyClassName:i?`${t.value}-sticky-holder`:"",offsetHeader:n,offsetSummary:o,offsetScroll:r,container:l}})}function kq(e,t){return P(()=>{const n=[],o=e.value,r=t.value;for(let a=0;aa.isSticky&&!e.fixHeader?0:a.scrollbarSize),i=Z(),s=h=>{const{currentTarget:b,deltaX:y}=h;y&&(r("scroll",{currentTarget:b,scrollLeft:b.scrollLeft+y}),h.preventDefault())},u=Z();Ve(()=>{lt(()=>{u.value=wt(i.value,"wheel",s)})}),Je(()=>{var h;(h=u.value)===null||h===void 0||h.remove()});const c=P(()=>e.flattenColumns.every(h=>h.width&&h.width!==0&&h.width!=="0px")),d=Z([]),p=Z([]);Le(()=>{const h=e.flattenColumns[e.flattenColumns.length-1],b={fixed:h?h.fixed:null,scrollbar:!0,customHeaderCell:()=>({class:`${a.prefixCls}-cell-scrollbar`})};d.value=l.value?[...e.columns,b]:e.columns,p.value=l.value?[...e.flattenColumns,b]:e.flattenColumns});const g=P(()=>{const{stickyOffsets:h,direction:b}=e,{right:y,left:S}=h;return v(v({},h),{left:b==="rtl"?[...S.map($=>$+l.value),0]:S,right:b==="rtl"?y:[...y.map($=>$+l.value),0],isSticky:a.isSticky})}),m=kq(Be(e,"colWidths"),Be(e,"columCount"));return()=>{var h;const{noData:b,columCount:y,stickyTopOffset:S,stickyBottomOffset:$,stickyClassName:x,maxContentScroll:C}=e,{isSticky:O}=a;return f("div",{style:v({overflow:"hidden"},O?{top:`${S}px`,bottom:`${$}px`}:{}),ref:i,class:te(n.class,{[x]:!!x})},[f("table",{style:{tableLayout:"fixed",visibility:b||m.value?null:"hidden"}},[(!b||!C||c.value)&&f(b6,{colWidths:m.value?[...m.value,l.value]:[],columCount:y+1,columns:p.value},null),(h=o.default)===null||h===void 0?void 0:h.call(o,v(v({},e),{stickyOffsets:g.value,columns:d.value,flattenColumns:p.value}))])])}}});function pS(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o[r,Be(e,r)])))}const Bq=[],Fq={},Ap="rc-table-internal-hook",Lq=J({name:"VcTable",inheritAttrs:!1,props:["prefixCls","data","columns","rowKey","tableLayout","scroll","rowClassName","title","footer","id","showHeader","components","customRow","customHeaderRow","direction","expandFixed","expandColumnWidth","expandedRowKeys","defaultExpandedRowKeys","expandedRowRender","expandRowByClick","expandIcon","onExpand","onExpandedRowsChange","onUpdate:expandedRowKeys","defaultExpandAllRows","indentSize","expandIconColumnIndex","expandedRowClassName","childrenColumnName","rowExpandable","sticky","transformColumns","internalHooks","internalRefs","canExpandable","onUpdateInternalRefs","transformCellText"],emits:["expand","expandedRowsChange","updateInternalRefs","update:expandedRowKeys"],setup(e,t){let{attrs:n,slots:o,emit:r}=t;const a=P(()=>e.data||Bq),l=P(()=>!!a.value.length),i=P(()=>YY(e.components,{})),s=(ne,pe)=>i6(i.value,ne)||pe,u=P(()=>{const ne=e.rowKey;return typeof ne=="function"?ne:pe=>pe&&pe[ne]}),c=P(()=>e.expandIcon||Dq),d=P(()=>e.childrenColumnName||"children"),p=P(()=>e.expandedRowRender?"row":e.canExpandable||a.value.some(ne=>ne&&typeof ne=="object"&&ne[d.value])?"nest":!1),g=Y([]);Le(()=>{e.defaultExpandedRowKeys&&(g.value=e.defaultExpandedRowKeys),e.defaultExpandAllRows&&(g.value=Aq(a.value,u.value,d.value))})();const h=P(()=>new Set(e.expandedRowKeys||g.value||[])),b=ne=>{const pe=u.value(ne,a.value.indexOf(ne));let xe;const Te=h.value.has(pe);Te?(h.value.delete(pe),xe=[...h.value]):xe=[...h.value,pe],g.value=xe,r("expand",!Te,ne),r("update:expandedRowKeys",xe),r("expandedRowsChange",xe)},y=Z(0),[S,$]=Sq(v(v({},Rr(e)),{expandable:P(()=>!!e.expandedRowRender),expandedKeys:h,getRowKey:u,onTriggerExpand:b,expandIcon:c}),P(()=>e.internalHooks===Ap?e.transformColumns:null)),x=P(()=>({columns:S.value,flattenColumns:$.value})),C=Z(),O=Z(),w=Z(),M=Z({scrollWidth:0,clientWidth:0}),I=Z(),[_,D]=pt(!1),[F,z]=pt(!1),[H,T]=m6(new Map),A=P(()=>vu($.value)),R=P(()=>A.value.map(ne=>H.value.get(ne))),E=P(()=>$.value.length),k=Cq(R,E,Be(e,"direction")),B=P(()=>e.scroll&&Mp(e.scroll.y)),L=P(()=>e.scroll&&Mp(e.scroll.x)||!!e.expandFixed),j=P(()=>L.value&&$.value.some(ne=>{let{fixed:pe}=ne;return pe})),K=Z(),G=Nq(Be(e,"sticky"),Be(e,"prefixCls")),U=vt({}),X=P(()=>{const ne=Object.values(U)[0];return(B.value||G.value.isSticky)&&ne}),ee=(ne,pe)=>{pe?U[ne]=pe:delete U[ne]},oe=Z({}),Q=Z({}),W=Z({});Le(()=>{B.value&&(Q.value={overflowY:"scroll",maxHeight:xr(e.scroll.y)}),L.value&&(oe.value={overflowX:"auto"},B.value||(Q.value={overflowY:"hidden"}),W.value={width:e.scroll.x===!0?"auto":xr(e.scroll.x),minWidth:"100%"})});const q=(ne,pe)=>{Tc(C.value)&&T(xe=>{if(xe.get(ne)!==pe){const Te=new Map(xe);return Te.set(ne,pe),Te}return xe})},[re,le]=$q(null);function ye(ne,pe){if(!pe)return;if(typeof pe=="function"){pe(ne);return}const xe=pe.$el||pe;xe.scrollLeft!==ne&&(xe.scrollLeft=ne)}const me=ne=>{let{currentTarget:pe,scrollLeft:xe}=ne;var Te;const ke=e.direction==="rtl",ve=typeof xe=="number"?xe:pe.scrollLeft,he=pe||Fq;if((!le()||le()===he)&&(re(he),ye(ve,O.value),ye(ve,w.value),ye(ve,I.value),ye(ve,(Te=K.value)===null||Te===void 0?void 0:Te.setScrollLeft)),pe){const{scrollWidth:be,clientWidth:Me}=pe;ke?(D(-ve0)):(D(ve>0),z(ve{L.value&&w.value?me({currentTarget:w.value}):(D(!1),z(!1))};let se;const ie=ne=>{ne!==y.value&&(ce(),y.value=C.value?C.value.offsetWidth:ne)},fe=ne=>{let{width:pe}=ne;if(clearTimeout(se),y.value===0){ie(pe);return}se=setTimeout(()=>{ie(pe)},100)};ue([L,()=>e.data,()=>e.columns],()=>{L.value&&ce()},{flush:"post"});const[Se,Ie]=pt(0);tq(),Ve(()=>{lt(()=>{var ne,pe;ce(),Ie(l_(w.value).width),M.value={scrollWidth:((ne=w.value)===null||ne===void 0?void 0:ne.scrollWidth)||0,clientWidth:((pe=w.value)===null||pe===void 0?void 0:pe.clientWidth)||0}})}),ao(()=>{lt(()=>{var ne,pe;const xe=((ne=w.value)===null||ne===void 0?void 0:ne.scrollWidth)||0,Te=((pe=w.value)===null||pe===void 0?void 0:pe.clientWidth)||0;(M.value.scrollWidth!==xe||M.value.clientWidth!==Te)&&(M.value={scrollWidth:xe,clientWidth:Te})})}),Le(()=>{e.internalHooks===Ap&&e.internalRefs&&e.onUpdateInternalRefs({body:w.value?w.value.$el||w.value:null})},{flush:"post"});const ge=P(()=>e.tableLayout?e.tableLayout:j.value?e.scroll.x==="max-content"?"auto":"fixed":B.value||G.value.isSticky||$.value.some(ne=>{let{ellipsis:pe}=ne;return pe})?"fixed":"auto"),Oe=()=>{var ne;return l.value?null:((ne=o.emptyText)===null||ne===void 0?void 0:ne.call(o))||"No Data"};XY(vt(v(v({},Rr(pS(e,"prefixCls","direction","transformCellText"))),{getComponent:s,scrollbarSize:Se,fixedInfoList:P(()=>$.value.map((ne,pe)=>Fh(pe,pe,$.value,k.value,e.direction))),isSticky:P(()=>G.value.isSticky),summaryCollect:ee}))),fq(vt(v(v({},Rr(pS(e,"rowClassName","expandedRowClassName","expandRowByClick","expandedRowRender","expandIconColumnIndex","indentSize"))),{columns:S,flattenColumns:$,tableLayout:ge,expandIcon:c,expandableType:p,onTriggerExpand:b}))),gq({onColumnResize:q}),cq({componentWidth:y,fixHeader:B,fixColumn:j,horizonScroll:L});const we=()=>f(mq,{data:a.value,measureColumnWidth:B.value||L.value||G.value.isSticky,expandedKeys:h.value,rowExpandable:e.rowExpandable,getRowKey:u.value,customRow:e.customRow,childrenColumnName:d.value},{emptyNode:Oe}),ae=()=>f(b6,{colWidths:$.value.map(ne=>{let{width:pe}=ne;return pe}),columns:$.value},null);return()=>{var ne;const{prefixCls:pe,scroll:xe,tableLayout:Te,direction:ke,title:ve=o.title,footer:he=o.footer,id:be,showHeader:Me,customHeaderRow:Ae}=e,{isSticky:_e,offsetHeader:Re,offsetSummary:Ye,offsetScroll:tt,stickyClassName:at,container:it}=G.value,ct=s(["table"],"table"),Et=s(["body"]),Dt=(ne=o.summary)===null||ne===void 0?void 0:ne.call(o,{pageData:a.value});let Bt=()=>null;const Pt={colWidths:R.value,columCount:$.value.length,stickyOffsets:k.value,customHeaderRow:Ae,fixHeader:B.value,scroll:xe};if(B.value||_e){let Rn=()=>null;typeof Et=="function"?(Rn=()=>Et(a.value,{scrollbarSize:Se.value,ref:w,onScroll:me}),Pt.colWidths=$.value.map((cn,vr)=>{let{width:Pe}=cn;const He=vr===S.value.length-1?Pe-Se.value:Pe;return typeof He=="number"&&!Number.isNaN(He)?He:0})):Rn=()=>f("div",{style:v(v({},oe.value),Q.value),onScroll:me,ref:w,class:te(`${pe}-body`)},[f(ct,{style:v(v({},W.value),{tableLayout:ge.value})},{default:()=>[ae(),we(),!X.value&&Dt&&f(Xi,{stickyOffsets:k.value,flattenColumns:$.value},{default:()=>[Dt]})]})]);const Yn=v(v(v({noData:!a.value.length,maxContentScroll:L.value&&xe.x==="max-content"},Pt),x.value),{direction:ke,stickyClassName:at,onScroll:me});Bt=()=>f(nt,null,[Me!==!1&&f(fS,N(N({},Yn),{},{stickyTopOffset:Re,class:`${pe}-header`,ref:O}),{default:cn=>f(nt,null,[f(uS,cn,null),X.value==="top"&&f(Xi,cn,{default:()=>[Dt]})])}),Rn(),X.value&&X.value!=="top"&&f(fS,N(N({},Yn),{},{stickyBottomOffset:Ye,class:`${pe}-summary`,ref:I}),{default:cn=>f(Xi,cn,{default:()=>[Dt]})}),_e&&w.value&&f(Rq,{ref:K,offsetScroll:tt,scrollBodyRef:w,onScroll:me,container:it,scrollBodySizeInfo:M.value},null)])}else Bt=()=>f("div",{style:v(v({},oe.value),Q.value),class:te(`${pe}-content`),onScroll:me,ref:w},[f(ct,{style:v(v({},W.value),{tableLayout:ge.value})},{default:()=>[ae(),Me!==!1&&f(uS,N(N({},Pt),x.value),null),we(),Dt&&f(Xi,{stickyOffsets:k.value,flattenColumns:$.value},{default:()=>[Dt]})]})]);const Qt=dr(n,{aria:!0,data:!0}),sn=()=>f("div",N(N({},Qt),{},{class:te(pe,{[`${pe}-rtl`]:ke==="rtl",[`${pe}-ping-left`]:_.value,[`${pe}-ping-right`]:F.value,[`${pe}-layout-fixed`]:Te==="fixed",[`${pe}-fixed-header`]:B.value,[`${pe}-fixed-column`]:j.value,[`${pe}-scroll-horizontal`]:L.value,[`${pe}-has-fix-left`]:$.value[0]&&$.value[0].fixed,[`${pe}-has-fix-right`]:$.value[E.value-1]&&$.value[E.value-1].fixed==="right",[n.class]:n.class}),style:n.style,id:be,ref:C}),[ve&&f(Dp,{class:`${pe}-title`},{default:()=>[ve(a.value)]}),f("div",{class:`${pe}-container`},[Bt()]),he&&f(Dp,{class:`${pe}-footer`},{default:()=>[he(a.value)]})]);return L.value?f(ho,{onResize:fe},{default:sn}):sn()}}});function zq(){const e=v({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{const r=n[o];r!==void 0&&(e[o]=r)})}return e}const Rp=10;function Hq(e,t){const n={current:e.current,pageSize:e.pageSize};return Object.keys(t&&typeof t=="object"?t:{}).forEach(r=>{const a=e[r];typeof a!="function"&&(n[r]=a)}),n}function jq(e,t,n){const o=P(()=>t.value&&typeof t.value=="object"?t.value:{}),r=P(()=>o.value.total||0),[a,l]=pt(()=>({current:"defaultCurrent"in o.value?o.value.defaultCurrent:1,pageSize:"defaultPageSize"in o.value?o.value.defaultPageSize:Rp})),i=P(()=>{const c=zq(a.value,o.value,{total:r.value>0?r.value:e.value}),d=Math.ceil((r.value||e.value)/c.pageSize);return c.current>d&&(c.current=d||1),c}),s=(c,d)=>{t.value!==!1&&l({current:c??1,pageSize:d||i.value.pageSize})},u=(c,d)=>{var p,g;t.value&&((g=(p=o.value).onChange)===null||g===void 0||g.call(p,c,d)),s(c,d),n(c,d||i.value.pageSize)};return[P(()=>t.value===!1?{}:v(v({},i.value),{onChange:u})),s]}function Vq(e,t,n){const o=Y({});ue([e,t,n],()=>{const a=new Map,l=n.value,i=t.value;function s(u){u.forEach((c,d)=>{const p=l(c,d);a.set(p,c),c&&typeof c=="object"&&i in c&&s(c[i]||[])})}s(e.value),o.value={kvMap:a}},{deep:!0,immediate:!0});function r(a){return o.value.kvMap.get(a)}return[r]}const To={},Np="SELECT_ALL",kp="SELECT_INVERT",Bp="SELECT_NONE",Wq=[];function S6(e,t){let n=[];return(t||[]).forEach(o=>{n.push(o),o&&typeof o=="object"&&e in o&&(n=[...n,...S6(e,o[e])])}),n}function Kq(e,t){const n=P(()=>{const I=e.value||{},{checkStrictly:_=!0}=I;return v(v({},I),{checkStrictly:_})}),[o,r]=Ot(n.value.selectedRowKeys||n.value.defaultSelectedRowKeys||Wq,{value:P(()=>n.value.selectedRowKeys)}),a=Y(new Map),l=I=>{if(n.value.preserveSelectedRowKeys){const _=new Map;I.forEach(D=>{let F=t.getRecordByKey(D);!F&&a.value.has(D)&&(F=a.value.get(D)),_.set(D,F)}),a.value=_}};Le(()=>{l(o.value)});const i=P(()=>n.value.checkStrictly?null:gi(t.data.value,{externalGetKey:t.getRowKey.value,childrenPropName:t.childrenColumnName.value}).keyEntities),s=P(()=>S6(t.childrenColumnName.value,t.pageData.value)),u=P(()=>{const I=new Map,_=t.getRowKey.value,D=n.value.getCheckboxProps;return s.value.forEach((F,z)=>{const H=_(F,z),T=(D?D(F):null)||{};I.set(H,T)}),I}),{maxLevel:c,levelEntities:d}=au(i),p=I=>{var _;return!!(!((_=u.value.get(t.getRowKey.value(I)))===null||_===void 0)&&_.disabled)},g=P(()=>{if(n.value.checkStrictly)return[o.value||[],[]];const{checkedKeys:I,halfCheckedKeys:_}=jn(o.value,!0,i.value,c.value,d.value,p);return[I||[],_]}),m=P(()=>g.value[0]),h=P(()=>g.value[1]),b=P(()=>{const I=n.value.type==="radio"?m.value.slice(0,1):m.value;return new Set(I)}),y=P(()=>n.value.type==="radio"?new Set:new Set(h.value)),[S,$]=pt(null),x=I=>{let _,D;l(I);const{preserveSelectedRowKeys:F,onChange:z}=n.value,{getRecordByKey:H}=t;F?(_=I,D=I.map(T=>a.value.get(T))):(_=[],D=[],I.forEach(T=>{const A=H(T);A!==void 0&&(_.push(T),D.push(A))})),r(_),z==null||z(_,D)},C=(I,_,D,F)=>{const{onSelect:z}=n.value,{getRecordByKey:H}=t||{};if(z){const T=D.map(A=>H(A));z(H(I),_,T,F)}x(D)},O=P(()=>{const{onSelectInvert:I,onSelectNone:_,selections:D,hideSelectAll:F}=n.value,{data:z,pageData:H,getRowKey:T,locale:A}=t;return!D||F?null:(D===!0?[Np,kp,Bp]:D).map(E=>E===Np?{key:"all",text:A.value.selectionAll,onSelect(){x(z.value.map((k,B)=>T.value(k,B)).filter(k=>{const B=u.value.get(k);return!(B!=null&&B.disabled)||b.value.has(k)}))}}:E===kp?{key:"invert",text:A.value.selectInvert,onSelect(){const k=new Set(b.value);H.value.forEach((L,j)=>{const K=T.value(L,j),G=u.value.get(K);G!=null&&G.disabled||(k.has(K)?k.delete(K):k.add(K))});const B=Array.from(k);I&&(bt(!1,"Table","`onSelectInvert` will be removed in future. Please use `onChange` instead."),I(B)),x(B)}}:E===Bp?{key:"none",text:A.value.selectNone,onSelect(){_==null||_(),x(Array.from(b.value).filter(k=>{const B=u.value.get(k);return B==null?void 0:B.disabled}))}}:E)}),w=P(()=>s.value.length);return[I=>{var _;const{onSelectAll:D,onSelectMultiple:F,columnWidth:z,type:H,fixed:T,renderCell:A,hideSelectAll:R,checkStrictly:E}=n.value,{prefixCls:k,getRecordByKey:B,getRowKey:L,expandType:j,getPopupContainer:K}=t;if(!e.value)return I.filter(ie=>ie!==To);let G=I.slice();const U=new Set(b.value),X=s.value.map(L.value).filter(ie=>!u.value.get(ie).disabled),ee=X.every(ie=>U.has(ie)),oe=X.some(ie=>U.has(ie)),Q=()=>{const ie=[];ee?X.forEach(Se=>{U.delete(Se),ie.push(Se)}):X.forEach(Se=>{U.has(Se)||(U.add(Se),ie.push(Se))});const fe=Array.from(U);D==null||D(!ee,fe.map(Se=>B(Se)),ie.map(Se=>B(Se))),x(fe)};let W;if(H!=="radio"){let ie;if(O.value){const Oe=f(Mn,{getPopupContainer:K.value},{default:()=>[O.value.map((we,ae)=>{const{key:ne,text:pe,onSelect:xe}=we;return f(Mn.Item,{key:ne||ae,onClick:()=>{xe==null||xe(X)}},{default:()=>[pe]})})]});ie=f("div",{class:`${k.value}-selection-extra`},[f(ar,{overlay:Oe,getPopupContainer:K.value},{default:()=>[f("span",null,[f(Nc,null,null)])]})])}const fe=s.value.map((Oe,we)=>{const ae=L.value(Oe,we),ne=u.value.get(ae)||{};return v({checked:U.has(ae)},ne)}).filter(Oe=>{let{disabled:we}=Oe;return we}),Se=!!fe.length&&fe.length===w.value,Ie=Se&&fe.every(Oe=>{let{checked:we}=Oe;return we}),ge=Se&&fe.some(Oe=>{let{checked:we}=Oe;return we});W=!R&&f("div",{class:`${k.value}-selection`},[f(No,{checked:Se?Ie:!!w.value&&ee,indeterminate:Se?!Ie&&ge:!ee&&oe,onChange:Q,disabled:w.value===0||Se,"aria-label":ie?"Custom selection":"Select all",skipGroup:!0},null),ie])}let q;H==="radio"?q=ie=>{let{record:fe,index:Se}=ie;const Ie=L.value(fe,Se),ge=U.has(Ie);return{node:f(pn,N(N({},u.value.get(Ie)),{},{checked:ge,onClick:Oe=>Oe.stopPropagation(),onChange:Oe=>{U.has(Ie)||C(Ie,!0,[Ie],Oe.nativeEvent)}}),null),checked:ge}}:q=ie=>{let{record:fe,index:Se}=ie;var Ie;const ge=L.value(fe,Se),Oe=U.has(ge),we=y.value.has(ge),ae=u.value.get(ge);let ne;return j.value==="nest"?(ne=we,bt(typeof(ae==null?void 0:ae.indeterminate)!="boolean","Table","set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.")):ne=(Ie=ae==null?void 0:ae.indeterminate)!==null&&Ie!==void 0?Ie:we,{node:f(No,N(N({},ae),{},{indeterminate:ne,checked:Oe,skipGroup:!0,onClick:pe=>pe.stopPropagation(),onChange:pe=>{let{nativeEvent:xe}=pe;const{shiftKey:Te}=xe;let ke=-1,ve=-1;if(Te&&E){const he=new Set([S.value,ge]);X.some((be,Me)=>{if(he.has(be))if(ke===-1)ke=Me;else return ve=Me,!0;return!1})}if(ve!==-1&&ke!==ve&&E){const he=X.slice(ke,ve+1),be=[];Oe?he.forEach(Ae=>{U.has(Ae)&&(be.push(Ae),U.delete(Ae))}):he.forEach(Ae=>{U.has(Ae)||(be.push(Ae),U.add(Ae))});const Me=Array.from(U);F==null||F(!Oe,Me.map(Ae=>B(Ae)),be.map(Ae=>B(Ae))),x(Me)}else{const he=m.value;if(E){const be=Oe?uo(he,ge):Io(he,ge);C(ge,!Oe,be,xe)}else{const be=jn([...he,ge],!0,i.value,c.value,d.value,p),{checkedKeys:Me,halfCheckedKeys:Ae}=be;let _e=Me;if(Oe){const Re=new Set(Me);Re.delete(ge),_e=jn(Array.from(Re),{checked:!1,halfCheckedKeys:Ae},i.value,c.value,d.value,p).checkedKeys}C(ge,!Oe,_e,xe)}}$(ge)}}),null),checked:Oe}};const re=ie=>{let{record:fe,index:Se}=ie;const{node:Ie,checked:ge}=q({record:fe,index:Se});return A?A(ge,fe,Se,Ie):Ie};if(!G.includes(To))if(G.findIndex(ie=>{var fe;return((fe=ie[Ma])===null||fe===void 0?void 0:fe.columnType)==="EXPAND_COLUMN"})===0){const[ie,...fe]=G;G=[ie,To,...fe]}else G=[To,...G];const le=G.indexOf(To);G=G.filter((ie,fe)=>ie!==To||fe===le);const ye=G[le-1],me=G[le+1];let ce=T;ce===void 0&&((me==null?void 0:me.fixed)!==void 0?ce=me.fixed:(ye==null?void 0:ye.fixed)!==void 0&&(ce=ye.fixed)),ce&&ye&&((_=ye[Ma])===null||_===void 0?void 0:_.columnType)==="EXPAND_COLUMN"&&ye.fixed===void 0&&(ye.fixed=ce);const se={fixed:ce,width:z,className:`${k.value}-selection-column`,title:n.value.columnTitle||W,customRender:re,[Ma]:{class:`${k.value}-selection-col`}};return G.map(ie=>ie===To?se:ie)},b]}var Gq={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"};const Xq=Gq;function vS(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:[];const t=mt(e),n=[];return t.forEach(o=>{var r,a,l,i;if(!o)return;const s=o.key,u=((r=o.props)===null||r===void 0?void 0:r.style)||{},c=((a=o.props)===null||a===void 0?void 0:a.class)||"",d=o.props||{};for(const[b,y]of Object.entries(d))d[qr(b)]=y;const p=o.children||{},{default:g}=p,m=eQ(p,["default"]),h=v(v(v({},m),d),{style:u,class:c});if(s&&(h.key=s),!((l=o.type)===null||l===void 0)&&l.__ANT_TABLE_COLUMN_GROUP)h.children=$6(typeof g=="function"?g():g);else{const b=(i=o.children)===null||i===void 0?void 0:i.default;h.customRender=h.customRender||b}n.push(h)}),n}const ms="ascend",jd="descend";function ec(e){return typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1}function hS(e){return typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1}function tQ(e,t){return t?e[e.indexOf(t)+1]:e[0]}function Fp(e,t,n){let o=[];function r(a,l){o.push({column:a,key:Kr(a,l),multiplePriority:ec(a),sortOrder:a.sortOrder})}return(e||[]).forEach((a,l)=>{const i=yi(l,n);a.children?("sortOrder"in a&&r(a,i),o=[...o,...Fp(a.children,t,i)]):a.sorter&&("sortOrder"in a?r(a,i):t&&a.defaultSortOrder&&o.push({column:a,key:Kr(a,i),multiplePriority:ec(a),sortOrder:a.defaultSortOrder}))}),o}function C6(e,t,n,o,r,a,l,i){return(t||[]).map((s,u)=>{const c=yi(u,i);let d=s;if(d.sorter){const p=d.sortDirections||r,g=d.showSorterTooltip===void 0?l:d.showSorterTooltip,m=Kr(d,c),h=n.find(I=>{let{key:_}=I;return _===m}),b=h?h.sortOrder:null,y=tQ(p,b),S=p.includes(ms)&&f(Jq,{class:te(`${e}-column-sorter-up`,{active:b===ms}),role:"presentation"},null),$=p.includes(jd)&&f(Yq,{role:"presentation",class:te(`${e}-column-sorter-down`,{active:b===jd})},null),{cancelSort:x,triggerAsc:C,triggerDesc:O}=a||{};let w=x;y===jd?w=O:y===ms&&(w=C);const M=typeof g=="object"?g:{title:w};d=v(v({},d),{className:te(d.className,{[`${e}-column-sort`]:b}),title:I=>{const _=f("div",{class:`${e}-column-sorters`},[f("span",{class:`${e}-column-title`},[Hh(s.title,I)]),f("span",{class:te(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(S&&$)})},[f("span",{class:`${e}-column-sorter-inner`},[S,$])])]);return g?f(oo,M,{default:()=>[_]}):_},customHeaderCell:I=>{const _=s.customHeaderCell&&s.customHeaderCell(I)||{},D=_.onClick,F=_.onKeydown;return _.onClick=z=>{o({column:s,key:m,sortOrder:y,multiplePriority:ec(s)}),D&&D(z)},_.onKeydown=z=>{z.keyCode===$e.ENTER&&(o({column:s,key:m,sortOrder:y,multiplePriority:ec(s)}),F==null||F(z))},b&&(_["aria-sort"]=b==="ascend"?"ascending":"descending"),_.class=te(_.class,`${e}-column-has-sorters`),_.tabindex=0,_}})}return"children"in d&&(d=v(v({},d),{children:C6(e,d.children,n,o,r,a,l,c)})),d})}function mS(e){const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}}function bS(e){const t=e.filter(n=>{let{sortOrder:o}=n;return o}).map(mS);return t.length===0&&e.length?v(v({},mS(e[e.length-1])),{column:void 0}):t.length<=1?t[0]||{}:t}function Lp(e,t,n){const o=t.slice().sort((l,i)=>i.multiplePriority-l.multiplePriority),r=e.slice(),a=o.filter(l=>{let{column:{sorter:i},sortOrder:s}=l;return hS(i)&&s});return a.length?r.sort((l,i)=>{for(let s=0;s{const i=l[n];return i?v(v({},l),{[n]:Lp(i,t,n)}):l}):r}function nQ(e){let{prefixCls:t,mergedColumns:n,onSorterChange:o,sortDirections:r,tableLocale:a,showSorterTooltip:l}=e;const[i,s]=pt(Fp(n.value,!0)),u=P(()=>{let m=!0;const h=Fp(n.value,!1);if(!h.length)return i.value;const b=[];function y($){m?b.push($):b.push(v(v({},$),{sortOrder:null}))}let S=null;return h.forEach($=>{S===null?(y($),$.sortOrder&&($.multiplePriority===!1?m=!1:S=!0)):(S&&$.multiplePriority!==!1||(m=!1),y($))}),b}),c=P(()=>{const m=u.value.map(h=>{let{column:b,sortOrder:y}=h;return{column:b,order:y}});return{sortColumns:m,sortColumn:m[0]&&m[0].column,sortOrder:m[0]&&m[0].order}});function d(m){let h;m.multiplePriority===!1||!u.value.length||u.value[0].multiplePriority===!1?h=[m]:h=[...u.value.filter(b=>{let{key:y}=b;return y!==m.key}),m],s(h),o(bS(h),h)}const p=m=>C6(t.value,m,u.value,d,r.value,a.value,l.value),g=P(()=>bS(u.value));return[p,u,c,g]}var oQ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"};const rQ=oQ;function yS(e){for(var t=1;t{const{keyCode:t}=e;t===$e.ENTER&&e.stopPropagation()},sQ=(e,t)=>{let{slots:n}=t;var o;return f("div",{onClick:r=>r.stopPropagation(),onKeydown:iQ},[(o=n.default)===null||o===void 0?void 0:o.call(n)])},cQ=sQ,SS=J({compatConfig:{MODE:3},name:"FilterSearch",inheritAttrs:!1,props:{value:je(),onChange:de(),filterSearch:Ge([Boolean,Function]),tablePrefixCls:je(),locale:Ne()},setup(e){return()=>{const{value:t,onChange:n,filterSearch:o,tablePrefixCls:r,locale:a}=e;return o?f("div",{class:`${r}-filter-dropdown-search`},[f(Wt,{placeholder:a.filterSearchPlaceholder,onChange:n,value:t,htmlSize:1,class:`${r}-filter-dropdown-search-input`},{prefix:()=>f(ag,null,null)})]):null}}});var $S=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);re.motion?e.motion:Kc()),s=(u,c)=>{var d,p,g,m;c==="appear"?(p=(d=i.value)===null||d===void 0?void 0:d.onAfterEnter)===null||p===void 0||p.call(d,u):c==="leave"&&((m=(g=i.value)===null||g===void 0?void 0:g.onAfterLeave)===null||m===void 0||m.call(g,u)),l.value||e.onMotionEnd(),l.value=!0};return ue(()=>e.motionNodes,()=>{e.motionNodes&&e.motionType==="hide"&&r.value&<(()=>{r.value=!1})},{immediate:!0,flush:"post"}),Ve(()=>{e.motionNodes&&e.onMotionStart()}),Je(()=>{e.motionNodes&&s()}),()=>{const{motion:u,motionNodes:c,motionType:d,active:p,eventKey:g}=e,m=$S(e,["motion","motionNodes","motionType","active","eventKey"]);return c?f(rn,N(N({},i.value),{},{appear:d==="show",onAfterAppear:h=>s(h,"appear"),onAfterLeave:h=>s(h,"leave")}),{default:()=>[Kt(f("div",{class:`${a.value.prefixCls}-treenode-motion`},[c.map(h=>{const b=$S(h.data,[]),{title:y,key:S,isStart:$,isEnd:x}=h;return delete b.children,f(lp,N(N({},b),{},{title:y,active:p,data:h.data,key:S,eventKey:S,isStart:$,isEnd:x}),o)})]),[[Wn,r.value]])]}):f(lp,N(N({class:n.class,style:n.style},m),{},{active:p,eventKey:g}),o)}}});function dQ(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const n=e.length,o=t.length;if(Math.abs(n-o)!==1)return{add:!1,key:null};function r(a,l){const i=new Map;a.forEach(u=>{i.set(u,!0)});const s=l.filter(u=>!i.has(u));return s.length===1?s[0]:null}return nl.key===n),r=e[o+1],a=t.findIndex(l=>l.key===n);if(r){const l=t.findIndex(i=>i.key===r.key);return t.slice(a+1,l)}return t.slice(a+1)}var xS=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{},Gr=`RC_TREE_MOTION_${Math.random()}`,zp={key:Gr},x6={key:Gr,level:0,index:0,pos:"0",node:zp,nodes:[zp]},OS={parent:null,children:[],pos:x6.pos,data:zp,title:null,key:Gr,isStart:[],isEnd:[]};function PS(e,t,n,o){return t===!1||!n?e:e.slice(0,Math.ceil(n/o)+1)}function IS(e){const{key:t,pos:n}=e;return vi(t,n)}function pQ(e){let t=String(e.key),n=e;for(;n.parent;)n=n.parent,t=`${n.key} > ${t}`;return t}const vQ=J({compatConfig:{MODE:3},name:"NodeList",inheritAttrs:!1,props:_z,setup(e,t){let{expose:n,attrs:o}=t;const r=Z(),a=Z(),{expandedKeys:l,flattenNodes:i}=h4();n({scrollTo:h=>{r.value.scrollTo(h)},getIndentWidth:()=>a.value.offsetWidth});const s=Y(i.value),u=Y([]),c=Z(null);function d(){s.value=i.value,u.value=[],c.value=null,e.onListChangeEnd()}const p=nh();ue([()=>l.value.slice(),i],(h,b)=>{let[y,S]=h,[$,x]=b;const C=dQ($,y);if(C.key!==null){const{virtual:O,height:w,itemHeight:M}=e;if(C.add){const I=x.findIndex(F=>{let{key:z}=F;return z===C.key}),_=PS(CS(x,S,C.key),O,w,M),D=x.slice();D.splice(I+1,0,OS),s.value=D,u.value=_,c.value="show"}else{const I=S.findIndex(F=>{let{key:z}=F;return z===C.key}),_=PS(CS(S,x,C.key),O,w,M),D=S.slice();D.splice(I+1,0,OS),s.value=D,u.value=_,c.value="hide"}}else x!==S&&(s.value=S)}),ue(()=>p.value.dragging,h=>{h||d()});const g=P(()=>e.motion===void 0?s.value:i.value),m=()=>{e.onActiveChange(null)};return()=>{const h=v(v({},e),o),{prefixCls:b,selectable:y,checkable:S,disabled:$,motion:x,height:C,itemHeight:O,virtual:w,focusable:M,activeItem:I,focused:_,tabindex:D,onKeydown:F,onFocus:z,onBlur:H,onListChangeStart:T,onListChangeEnd:A}=h,R=xS(h,["prefixCls","selectable","checkable","disabled","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabindex","onKeydown","onFocus","onBlur","onListChangeStart","onListChangeEnd"]);return f(nt,null,[_&&I&&f("span",{style:wS,"aria-live":"assertive"},[pQ(I)]),f("div",null,[f("input",{style:wS,disabled:M===!1||$,tabindex:M!==!1?D:null,onKeydown:F,onFocus:z,onBlur:H,value:"",onChange:fQ,"aria-label":"for screen reader"},null)]),f("div",{class:`${b}-treenode`,"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden"}},[f("div",{class:`${b}-indent`},[f("div",{ref:a,class:`${b}-indent-unit`},null)])]),f(rx,N(N({},qe(R,["onActiveChange"])),{},{data:g.value,itemKey:IS,height:C,fullHeight:!1,virtual:w,itemHeight:O,prefixCls:`${b}-list`,ref:r,onVisibleChange:(E,k)=>{const B=new Set(E);k.filter(j=>!B.has(j)).some(j=>IS(j)===Gr)&&d()}}),{default:E=>{const{pos:k}=E,B=xS(E.data,[]),{title:L,key:j,isStart:K,isEnd:G}=E,U=vi(j,k);return delete B.key,delete B.children,f(uQ,N(N({},B),{},{eventKey:U,title:L,active:!!I&&j===I.key,data:E.data,isStart:K,isEnd:G,motion:x,motionNodes:j===Gr?u.value:null,motionType:c.value,onMotionStart:T,onMotionEnd:d,onMousemove:m}),null)}})])}}});function gQ(e){let{dropPosition:t,dropLevelOffset:n,indent:o}=e;const r={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:"2px"};switch(t){case-1:r.top=0,r.left=`${-n*o}px`;break;case 1:r.bottom=0,r.left=`${-n*o}px`;break;case 0:r.bottom=0,r.left=`${o}`;break}return f("div",{style:r},null)}const hQ=10,w6=J({compatConfig:{MODE:3},name:"Tree",inheritAttrs:!1,props:rt(b4(),{prefixCls:"vc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,expandAction:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:gQ,allowDrop:()=>!0}),setup(e,t){let{attrs:n,slots:o,expose:r}=t;const a=Y(!1);let l={};const i=Y(),s=Y([]),u=Y([]),c=Y([]),d=Y([]),p=Y([]),g=Y([]),m={},h=vt({draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null}),b=Y([]);ue([()=>e.treeData,()=>e.children],()=>{b.value=e.treeData!==void 0?_t(e.treeData).slice():sp(_t(e.children))},{immediate:!0,deep:!0});const y=Y({}),S=Y(!1),$=Y(null),x=Y(!1),C=P(()=>tu(e.fieldNames)),O=Y();let w=null,M=null,I=null;const _=P(()=>({expandedKeysSet:D.value,selectedKeysSet:F.value,loadedKeysSet:z.value,loadingKeysSet:H.value,checkedKeysSet:T.value,halfCheckedKeysSet:A.value,dragOverNodeKey:h.dragOverNodeKey,dropPosition:h.dropPosition,keyEntities:y.value})),D=P(()=>new Set(g.value)),F=P(()=>new Set(s.value)),z=P(()=>new Set(d.value)),H=P(()=>new Set(p.value)),T=P(()=>new Set(u.value)),A=P(()=>new Set(c.value));Le(()=>{if(b.value){const ve=gi(b.value,{fieldNames:C.value});y.value=v({[Gr]:x6},ve.keyEntities)}});let R=!1;ue([()=>e.expandedKeys,()=>e.autoExpandParent,y],(ve,he)=>{let[be,Me]=ve,[Ae,_e]=he,Re=g.value;if(e.expandedKeys!==void 0||R&&Me!==_e)Re=e.autoExpandParent||!R&&e.defaultExpandParent?ip(e.expandedKeys,y.value):e.expandedKeys;else if(!R&&e.defaultExpandAll){const Ye=v({},y.value);delete Ye[Gr],Re=Object.keys(Ye).map(tt=>Ye[tt].key)}else!R&&e.defaultExpandedKeys&&(Re=e.autoExpandParent||e.defaultExpandParent?ip(e.defaultExpandedKeys,y.value):e.defaultExpandedKeys);Re&&(g.value=Re),R=!0},{immediate:!0});const E=Y([]);Le(()=>{E.value=Lz(b.value,g.value,C.value)}),Le(()=>{e.selectable&&(e.selectedKeys!==void 0?s.value=V1(e.selectedKeys,e):!R&&e.defaultSelectedKeys&&(s.value=V1(e.defaultSelectedKeys,e)))});const{maxLevel:k,levelEntities:B}=au(y);Le(()=>{if(e.checkable){let ve;if(e.checkedKeys!==void 0?ve=bd(e.checkedKeys)||{}:!R&&e.defaultCheckedKeys?ve=bd(e.defaultCheckedKeys)||{}:b.value&&(ve=bd(e.checkedKeys)||{checkedKeys:u.value,halfCheckedKeys:c.value}),ve){let{checkedKeys:he=[],halfCheckedKeys:be=[]}=ve;e.checkStrictly||({checkedKeys:he,halfCheckedKeys:be}=jn(he,!0,y.value,k.value,B.value)),u.value=he,c.value=be}}}),Le(()=>{e.loadedKeys&&(d.value=e.loadedKeys)});const L=()=>{v(h,{dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})},j=ve=>{O.value.scrollTo(ve)};ue(()=>e.activeKey,()=>{e.activeKey!==void 0&&($.value=e.activeKey)},{immediate:!0}),ue($,ve=>{lt(()=>{ve!==null&&j({key:ve})})},{immediate:!0,flush:"post"});const K=ve=>{e.expandedKeys===void 0&&(g.value=ve)},G=()=>{h.draggingNodeKey!==null&&v(h,{draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),w=null,I=null},U=(ve,he)=>{const{onDragend:be}=e;h.dragOverNodeKey=null,G(),be==null||be({event:ve,node:he.eventData}),M=null},X=ve=>{U(ve,null),window.removeEventListener("dragend",X)},ee=(ve,he)=>{const{onDragstart:be}=e,{eventKey:Me,eventData:Ae}=he;M=he,w={x:ve.clientX,y:ve.clientY};const _e=uo(g.value,Me);h.draggingNodeKey=Me,h.dragChildrenKeys=Nz(Me,y.value),i.value=O.value.getIndentWidth(),K(_e),window.addEventListener("dragend",X),be&&be({event:ve,node:Ae})},oe=(ve,he)=>{const{onDragenter:be,onExpand:Me,allowDrop:Ae,direction:_e}=e,{pos:Re,eventKey:Ye}=he;if(I!==Ye&&(I=Ye),!M){L();return}const{dropPosition:tt,dropLevelOffset:at,dropTargetKey:it,dropContainerKey:ct,dropTargetPos:Et,dropAllowed:Dt,dragOverNodeKey:Bt}=j1(ve,M,he,i.value,w,Ae,E.value,y.value,D.value,_e);if(h.dragChildrenKeys.indexOf(it)!==-1||!Dt){L();return}if(l||(l={}),Object.keys(l).forEach(Pt=>{clearTimeout(l[Pt])}),M.eventKey!==he.eventKey&&(l[Re]=window.setTimeout(()=>{if(h.draggingNodeKey===null)return;let Pt=g.value.slice();const Qt=y.value[he.eventKey];Qt&&(Qt.children||[]).length&&(Pt=Io(g.value,he.eventKey)),K(Pt),Me&&Me(Pt,{node:he.eventData,expanded:!0,nativeEvent:ve})},800)),M.eventKey===it&&at===0){L();return}v(h,{dragOverNodeKey:Bt,dropPosition:tt,dropLevelOffset:at,dropTargetKey:it,dropContainerKey:ct,dropTargetPos:Et,dropAllowed:Dt}),be&&be({event:ve,node:he.eventData,expandedKeys:g.value})},Q=(ve,he)=>{const{onDragover:be,allowDrop:Me,direction:Ae}=e;if(!M)return;const{dropPosition:_e,dropLevelOffset:Re,dropTargetKey:Ye,dropContainerKey:tt,dropAllowed:at,dropTargetPos:it,dragOverNodeKey:ct}=j1(ve,M,he,i.value,w,Me,E.value,y.value,D.value,Ae);h.dragChildrenKeys.indexOf(Ye)!==-1||!at||(M.eventKey===Ye&&Re===0?h.dropPosition===null&&h.dropLevelOffset===null&&h.dropTargetKey===null&&h.dropContainerKey===null&&h.dropTargetPos===null&&h.dropAllowed===!1&&h.dragOverNodeKey===null||L():_e===h.dropPosition&&Re===h.dropLevelOffset&&Ye===h.dropTargetKey&&tt===h.dropContainerKey&&it===h.dropTargetPos&&at===h.dropAllowed&&ct===h.dragOverNodeKey||v(h,{dropPosition:_e,dropLevelOffset:Re,dropTargetKey:Ye,dropContainerKey:tt,dropTargetPos:it,dropAllowed:at,dragOverNodeKey:ct}),be&&be({event:ve,node:he.eventData}))},W=(ve,he)=>{I===he.eventKey&&!ve.currentTarget.contains(ve.relatedTarget)&&(L(),I=null);const{onDragleave:be}=e;be&&be({event:ve,node:he.eventData})},q=function(ve,he){let be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Me;const{dragChildrenKeys:Ae,dropPosition:_e,dropTargetKey:Re,dropTargetPos:Ye,dropAllowed:tt}=h;if(!tt)return;const{onDrop:at}=e;if(h.dragOverNodeKey=null,G(),Re===null)return;const it=v(v({},us(Re,_t(_.value))),{active:((Me=pe.value)===null||Me===void 0?void 0:Me.key)===Re,data:y.value[Re].node});Ae.indexOf(Re);const ct=oh(Ye),Et={event:ve,node:ds(it),dragNode:M?M.eventData:null,dragNodesKeys:[M.eventKey].concat(Ae),dropToGap:_e!==0,dropPosition:_e+Number(ct[ct.length-1])};be||at==null||at(Et),M=null},re=(ve,he)=>{const{expanded:be,key:Me}=he,Ae=E.value.filter(Re=>Re.key===Me)[0],_e=ds(v(v({},us(Me,_.value)),{data:Ae.data}));K(be?uo(g.value,Me):Io(g.value,Me)),Oe(ve,_e)},le=(ve,he)=>{const{onClick:be,expandAction:Me}=e;Me==="click"&&re(ve,he),be&&be(ve,he)},ye=(ve,he)=>{const{onDblclick:be,expandAction:Me}=e;(Me==="doubleclick"||Me==="dblclick")&&re(ve,he),be&&be(ve,he)},me=(ve,he)=>{let be=s.value;const{onSelect:Me,multiple:Ae}=e,{selected:_e}=he,Re=he[C.value.key],Ye=!_e;Ye?Ae?be=Io(be,Re):be=[Re]:be=uo(be,Re);const tt=y.value,at=be.map(it=>{const ct=tt[it];return ct?ct.node:null}).filter(it=>it);e.selectedKeys===void 0&&(s.value=be),Me&&Me(be,{event:"select",selected:Ye,node:he,selectedNodes:at,nativeEvent:ve})},ce=(ve,he,be)=>{const{checkStrictly:Me,onCheck:Ae}=e,_e=he[C.value.key];let Re;const Ye={event:"check",node:he,checked:be,nativeEvent:ve},tt=y.value;if(Me){const at=be?Io(u.value,_e):uo(u.value,_e),it=uo(c.value,_e);Re={checked:at,halfChecked:it},Ye.checkedNodes=at.map(ct=>tt[ct]).filter(ct=>ct).map(ct=>ct.node),e.checkedKeys===void 0&&(u.value=at)}else{let{checkedKeys:at,halfCheckedKeys:it}=jn([...u.value,_e],!0,tt,k.value,B.value);if(!be){const ct=new Set(at);ct.delete(_e),{checkedKeys:at,halfCheckedKeys:it}=jn(Array.from(ct),{checked:!1,halfCheckedKeys:it},tt,k.value,B.value)}Re=at,Ye.checkedNodes=[],Ye.checkedNodesPositions=[],Ye.halfCheckedKeys=it,at.forEach(ct=>{const Et=tt[ct];if(!Et)return;const{node:Dt,pos:Bt}=Et;Ye.checkedNodes.push(Dt),Ye.checkedNodesPositions.push({node:Dt,pos:Bt})}),e.checkedKeys===void 0&&(u.value=at,c.value=it)}Ae&&Ae(Re,Ye)},se=ve=>{const he=ve[C.value.key],be=new Promise((Me,Ae)=>{const{loadData:_e,onLoad:Re}=e;if(!_e||z.value.has(he)||H.value.has(he))return null;_e(ve).then(()=>{const tt=Io(d.value,he),at=uo(p.value,he);Re&&Re(tt,{event:"load",node:ve}),e.loadedKeys===void 0&&(d.value=tt),p.value=at,Me()}).catch(tt=>{const at=uo(p.value,he);if(p.value=at,m[he]=(m[he]||0)+1,m[he]>=hQ){const it=Io(d.value,he);e.loadedKeys===void 0&&(d.value=it),Me()}Ae(tt)}),p.value=Io(p.value,he)});return be.catch(()=>{}),be},ie=(ve,he)=>{const{onMouseenter:be}=e;be&&be({event:ve,node:he})},fe=(ve,he)=>{const{onMouseleave:be}=e;be&&be({event:ve,node:he})},Se=(ve,he)=>{const{onRightClick:be}=e;be&&(ve.preventDefault(),be({event:ve,node:he}))},Ie=ve=>{const{onFocus:he}=e;S.value=!0,he&&he(ve)},ge=ve=>{const{onBlur:he}=e;S.value=!1,ne(null),he&&he(ve)},Oe=(ve,he)=>{let be=g.value;const{onExpand:Me,loadData:Ae}=e,{expanded:_e}=he,Re=he[C.value.key];if(x.value)return;be.indexOf(Re);const Ye=!_e;if(Ye?be=Io(be,Re):be=uo(be,Re),K(be),Me&&Me(be,{node:he,expanded:Ye,nativeEvent:ve}),Ye&&Ae){const tt=se(he);tt&&tt.then(()=>{}).catch(at=>{const it=uo(g.value,Re);K(it),Promise.reject(at)})}},we=()=>{x.value=!0},ae=()=>{setTimeout(()=>{x.value=!1})},ne=ve=>{const{onActiveChange:he}=e;$.value!==ve&&(e.activeKey!==void 0&&($.value=ve),ve!==null&&j({key:ve}),he&&he(ve))},pe=P(()=>$.value===null?null:E.value.find(ve=>{let{key:he}=ve;return he===$.value})||null),xe=ve=>{let he=E.value.findIndex(Me=>{let{key:Ae}=Me;return Ae===$.value});he===-1&&ve<0&&(he=E.value.length),he=(he+ve+E.value.length)%E.value.length;const be=E.value[he];if(be){const{key:Me}=be;ne(Me)}else ne(null)},Te=P(()=>ds(v(v({},us($.value,_.value)),{data:pe.value.data,active:!0}))),ke=ve=>{const{onKeydown:he,checkable:be,selectable:Me}=e;switch(ve.which){case $e.UP:{xe(-1),ve.preventDefault();break}case $e.DOWN:{xe(1),ve.preventDefault();break}}const Ae=pe.value;if(Ae&&Ae.data){const _e=Ae.data.isLeaf===!1||!!(Ae.data.children||[]).length,Re=Te.value;switch(ve.which){case $e.LEFT:{_e&&D.value.has($.value)?Oe({},Re):Ae.parent&&ne(Ae.parent.key),ve.preventDefault();break}case $e.RIGHT:{_e&&!D.value.has($.value)?Oe({},Re):Ae.children&&Ae.children.length&&ne(Ae.children[0].key),ve.preventDefault();break}case $e.ENTER:case $e.SPACE:{be&&!Re.disabled&&Re.checkable!==!1&&!Re.disableCheckbox?ce({},Re,!T.value.has($.value)):!be&&Me&&!Re.disabled&&Re.selectable!==!1&&me({},Re);break}}}he&&he(ve)};return r({onNodeExpand:Oe,scrollTo:j,onKeydown:ke,selectedKeys:P(()=>s.value),checkedKeys:P(()=>u.value),halfCheckedKeys:P(()=>c.value),loadedKeys:P(()=>d.value),loadingKeys:P(()=>p.value),expandedKeys:P(()=>g.value)}),An(()=>{window.removeEventListener("dragend",X),a.value=!0}),Tz({expandedKeys:g,selectedKeys:s,loadedKeys:d,loadingKeys:p,checkedKeys:u,halfCheckedKeys:c,expandedKeysSet:D,selectedKeysSet:F,loadedKeysSet:z,loadingKeysSet:H,checkedKeysSet:T,halfCheckedKeysSet:A,flattenNodes:E}),()=>{const{draggingNodeKey:ve,dropLevelOffset:he,dropContainerKey:be,dropTargetKey:Me,dropPosition:Ae,dragOverNodeKey:_e}=h,{prefixCls:Re,showLine:Ye,focusable:tt,tabindex:at=0,selectable:it,showIcon:ct,icon:Et=o.icon,switcherIcon:Dt,draggable:Bt,checkable:Pt,checkStrictly:Qt,disabled:sn,motion:Rn,loadData:Yn,filterTreeNode:cn,height:vr,itemHeight:Pe,virtual:He,dropIndicatorRender:Fe,onContextmenu:gt,onScroll:At,direction:It,rootClassName:un,rootStyle:Gt}=e,{class:so,style:yn}=n,Nn=dr(v(v({},e),n),{aria:!0,data:!0});let St;return Bt?typeof Bt=="object"?St=Bt:typeof Bt=="function"?St={nodeDraggable:Bt}:St={}:St=!1,f(Iz,{value:{prefixCls:Re,selectable:it,showIcon:ct,icon:Et,switcherIcon:Dt,draggable:St,draggingNodeKey:ve,checkable:Pt,customCheckable:o.checkable,checkStrictly:Qt,disabled:sn,keyEntities:y.value,dropLevelOffset:he,dropContainerKey:be,dropTargetKey:Me,dropPosition:Ae,dragOverNodeKey:_e,dragging:ve!==null,indent:i.value,direction:It,dropIndicatorRender:Fe,loadData:Yn,filterTreeNode:cn,onNodeClick:le,onNodeDoubleClick:ye,onNodeExpand:Oe,onNodeSelect:me,onNodeCheck:ce,onNodeLoad:se,onNodeMouseEnter:ie,onNodeMouseLeave:fe,onNodeContextMenu:Se,onNodeDragStart:ee,onNodeDragEnter:oe,onNodeDragOver:Q,onNodeDragLeave:W,onNodeDragEnd:U,onNodeDrop:q,slots:o}},{default:()=>[f("div",{role:"tree",class:te(Re,so,un,{[`${Re}-show-line`]:Ye,[`${Re}-focused`]:S.value,[`${Re}-active-focused`]:$.value!==null}),style:Gt},[f(vQ,N({ref:O,prefixCls:Re,style:yn,disabled:sn,selectable:it,checkable:!!Pt,motion:Rn,height:vr,itemHeight:Pe,virtual:He,focusable:tt,focused:S.value,tabindex:at,activeItem:pe.value,onFocus:Ie,onBlur:ge,onKeydown:ke,onActiveChange:ne,onListChangeStart:we,onListChangeEnd:ae,onContextmenu:gt,onScroll:At},Nn),null)])]})}}});var mQ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};const bQ=mQ;function TS(e){for(var t=1;t({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),NQ=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${t.lineWidthBold}px solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),kQ=(e,t)=>{const{treeCls:n,treeNodeCls:o,treeNodePadding:r,treeTitleHeight:a}=t,l=(a-t.fontSizeLG)/2,i=t.paddingXS;return{[n]:v(v({},et(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${n}-rtl`]:{[`${n}-switcher`]:{"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${n}-active-focused)`]:v({},Fo(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${o}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:r,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:AQ,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${o}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${r}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${n}-node-content-wrapper`]:v({},Fo(t)),[`&:not(${o}-disabled).filter-node ${n}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${n}-draggable-icon`]:{width:a,lineHeight:`${a}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${o}:hover &`]:{opacity:.45}},[`&${o}-disabled`]:{[`${n}-draggable-icon`]:{visibility:"hidden"}}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:a}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher`]:v(v({},RQ(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:a,margin:0,lineHeight:`${a}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:a/2,bottom:-r,marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:a/2*.8,height:a/2,borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-checkbox`]:{top:"initial",marginInlineEnd:i,marginBlockStart:l},[`${n}-node-content-wrapper, ${n}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:a,margin:0,padding:`0 ${t.paddingXS/2}px`,color:"inherit",lineHeight:`${a}px`,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:t.controlItemBgHover},[`&${n}-node-selected`]:{backgroundColor:t.controlItemBgActive},[`${n}-iconEle`]:{display:"inline-block",width:a,height:a,lineHeight:`${a}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}-node-content-wrapper`]:v({lineHeight:`${a}px`,userSelect:"none"},NQ(e,t)),[`${o}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${t.colorPrimary}`}},"&-show-line":{[`${n}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:a/2,bottom:-r,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${o}-leaf-last`]:{[`${n}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${a/2}px !important`}}}}})}},BQ=e=>{const{treeCls:t,treeNodeCls:n,treeNodePadding:o}=e;return{[`${t}${t}-directory`]:{[n]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:o,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:e.colorTextLightSolid,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:e.colorPrimary},[`${t}-switcher`]:{color:e.colorTextLightSolid},[`${t}-node-content-wrapper`]:{color:e.colorTextLightSolid,background:"transparent"}}}}}},I6=(e,t)=>{const n=`.${e}`,o=`${n}-treenode`,r=t.paddingXS/2,a=t.controlHeightSM,l=ze(t,{treeCls:n,treeNodeCls:o,treeNodePadding:r,treeTitleHeight:a});return[kQ(e,l),BQ(l)]},FQ=Qe("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:su(`${n}-checkbox`,e)},I6(n,e),jc(e)]}),T6=()=>{const e=b4();return v(v({},e),{showLine:Ge([Boolean,Object]),multiple:Ce(),autoExpandParent:Ce(),checkStrictly:Ce(),checkable:Ce(),disabled:Ce(),defaultExpandAll:Ce(),defaultExpandParent:Ce(),defaultExpandedKeys:ht(),expandedKeys:ht(),checkedKeys:Ge([Array,Object]),defaultCheckedKeys:ht(),selectedKeys:ht(),defaultSelectedKeys:ht(),selectable:Ce(),loadedKeys:ht(),draggable:Ce(),showIcon:Ce(),icon:de(),switcherIcon:V.any,prefixCls:String,replaceFields:Ne(),blockNode:Ce(),openAnimation:V.any,onDoubleclick:e.onDblclick,"onUpdate:selectedKeys":de(),"onUpdate:checkedKeys":de(),"onUpdate:expandedKeys":de()})},bs=J({compatConfig:{MODE:3},name:"ATree",inheritAttrs:!1,props:rt(T6(),{checkable:!1,selectable:!0,showIcon:!1,blockNode:!1}),slots:Object,setup(e,t){let{attrs:n,expose:o,emit:r,slots:a}=t;e.treeData===void 0&&a.default;const{prefixCls:l,direction:i,virtual:s}=Ee("tree",e),[u,c]=FQ(l),d=Z();o({treeRef:d,onNodeExpand:function(){var b;(b=d.value)===null||b===void 0||b.onNodeExpand(...arguments)},scrollTo:b=>{var y;(y=d.value)===null||y===void 0||y.scrollTo(b)},selectedKeys:P(()=>{var b;return(b=d.value)===null||b===void 0?void 0:b.selectedKeys}),checkedKeys:P(()=>{var b;return(b=d.value)===null||b===void 0?void 0:b.checkedKeys}),halfCheckedKeys:P(()=>{var b;return(b=d.value)===null||b===void 0?void 0:b.halfCheckedKeys}),loadedKeys:P(()=>{var b;return(b=d.value)===null||b===void 0?void 0:b.loadedKeys}),loadingKeys:P(()=>{var b;return(b=d.value)===null||b===void 0?void 0:b.loadingKeys}),expandedKeys:P(()=>{var b;return(b=d.value)===null||b===void 0?void 0:b.expandedKeys})}),Le(()=>{bt(e.replaceFields===void 0,"Tree","`replaceFields` is deprecated, please use fieldNames instead")});const g=(b,y)=>{r("update:checkedKeys",b),r("check",b,y)},m=(b,y)=>{r("update:expandedKeys",b),r("expand",b,y)},h=(b,y)=>{r("update:selectedKeys",b),r("select",b,y)};return()=>{const{showIcon:b,showLine:y,switcherIcon:S=a.switcherIcon,icon:$=a.icon,blockNode:x,checkable:C,selectable:O,fieldNames:w=e.replaceFields,motion:M=e.openAnimation,itemHeight:I=28,onDoubleclick:_,onDblclick:D}=e,F=v(v(v({},n),qe(e,["onUpdate:checkedKeys","onUpdate:expandedKeys","onUpdate:selectedKeys","onDoubleclick"])),{showLine:!!y,dropIndicatorRender:DQ,fieldNames:w,icon:$,itemHeight:I}),z=a.default?Tt(a.default()):void 0;return u(f(w6,N(N({},F),{},{virtual:s.value,motion:M,ref:d,prefixCls:l.value,class:te({[`${l.value}-icon-hide`]:!b,[`${l.value}-block-node`]:x,[`${l.value}-unselectable`]:!O,[`${l.value}-rtl`]:i.value==="rtl"},n.class,c.value),direction:i.value,checkable:C,selectable:O,switcherIcon:H=>P6(l.value,S,H,a.leafIcon,y),onCheck:g,onExpand:m,onSelect:h,onDblclick:D||_,children:z}),v(v({},a),{checkable:()=>f("span",{class:`${l.value}-checkbox-inner`},null)})))}}});var LQ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"};const zQ=LQ;function AS(e){for(var t=1;t{if(i===Mo.End)return!1;if(s(u)){if(l.push(u),i===Mo.None)i=Mo.Start;else if(i===Mo.Start)return i=Mo.End,!1}else i===Mo.Start&&l.push(u);return n.includes(u)}),l}function Vd(e,t,n){const o=[...t],r=[];return Yh(e,n,(a,l)=>{const i=o.indexOf(a);return i!==-1&&(r.push(l),o.splice(i,1)),!!o.length}),r}var UQ=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rv(v({},T6()),{expandAction:Ge([Boolean,String])});function qQ(e){const{isLeaf:t,expanded:n}=e;return t?f(O6,null,null):n?f(jQ,null,null):f(GQ,null,null)}const Wd=J({compatConfig:{MODE:3},name:"ADirectoryTree",inheritAttrs:!1,props:rt(YQ(),{showIcon:!0,expandAction:"click"}),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:r,expose:a}=t;var l;const i=Z(e.treeData||sp(Tt((l=o.default)===null||l===void 0?void 0:l.call(o))));ue(()=>e.treeData,()=>{i.value=e.treeData}),ao(()=>{lt(()=>{var I;e.treeData===void 0&&o.default&&(i.value=sp(Tt((I=o.default)===null||I===void 0?void 0:I.call(o))))})});const s=Z(),u=Z(),c=P(()=>tu(e.fieldNames)),d=Z();a({scrollTo:I=>{var _;(_=d.value)===null||_===void 0||_.scrollTo(I)},selectedKeys:P(()=>{var I;return(I=d.value)===null||I===void 0?void 0:I.selectedKeys}),checkedKeys:P(()=>{var I;return(I=d.value)===null||I===void 0?void 0:I.checkedKeys}),halfCheckedKeys:P(()=>{var I;return(I=d.value)===null||I===void 0?void 0:I.halfCheckedKeys}),loadedKeys:P(()=>{var I;return(I=d.value)===null||I===void 0?void 0:I.loadedKeys}),loadingKeys:P(()=>{var I;return(I=d.value)===null||I===void 0?void 0:I.loadingKeys}),expandedKeys:P(()=>{var I;return(I=d.value)===null||I===void 0?void 0:I.expandedKeys})});const g=()=>{const{keyEntities:I}=gi(i.value,{fieldNames:c.value});let _;return e.defaultExpandAll?_=Object.keys(I):e.defaultExpandParent?_=ip(e.expandedKeys||e.defaultExpandedKeys||[],I):_=e.expandedKeys||e.defaultExpandedKeys,_},m=Z(e.selectedKeys||e.defaultSelectedKeys||[]),h=Z(g());ue(()=>e.selectedKeys,()=>{e.selectedKeys!==void 0&&(m.value=e.selectedKeys)},{immediate:!0}),ue(()=>e.expandedKeys,()=>{e.expandedKeys!==void 0&&(h.value=e.expandedKeys)},{immediate:!0});const y=hc((I,_)=>{const{isLeaf:D}=_;D||I.shiftKey||I.metaKey||I.ctrlKey||d.value.onNodeExpand(I,_)},200,{leading:!0}),S=(I,_)=>{e.expandedKeys===void 0&&(h.value=I),r("update:expandedKeys",I),r("expand",I,_)},$=(I,_)=>{const{expandAction:D}=e;D==="click"&&y(I,_),r("click",I,_)},x=(I,_)=>{const{expandAction:D}=e;(D==="dblclick"||D==="doubleclick")&&y(I,_),r("doubleclick",I,_),r("dblclick",I,_)},C=(I,_)=>{const{multiple:D}=e,{node:F,nativeEvent:z}=_,H=F[c.value.key],T=v(v({},_),{selected:!0}),A=(z==null?void 0:z.ctrlKey)||(z==null?void 0:z.metaKey),R=z==null?void 0:z.shiftKey;let E;D&&A?(E=I,s.value=H,u.value=E,T.selectedNodes=Vd(i.value,E,c.value)):D&&R?(E=Array.from(new Set([...u.value||[],...XQ({treeData:i.value,expandedKeys:h.value,startKey:H,endKey:s.value,fieldNames:c.value})])),T.selectedNodes=Vd(i.value,E,c.value)):(E=[H],s.value=H,u.value=E,T.selectedNodes=Vd(i.value,E,c.value)),r("update:selectedKeys",E),r("select",E,T),e.selectedKeys===void 0&&(m.value=E)},O=(I,_)=>{r("update:checkedKeys",I),r("check",I,_)},{prefixCls:w,direction:M}=Ee("tree",e);return()=>{const I=te(`${w.value}-directory`,{[`${w.value}-directory-rtl`]:M.value==="rtl"},n.class),{icon:_=o.icon,blockNode:D=!0}=e,F=UQ(e,["icon","blockNode"]);return f(bs,N(N(N({},n),{},{icon:_||qQ,ref:d,blockNode:D},F),{},{prefixCls:w.value,class:I,expandedKeys:h.value,selectedKeys:m.value,onSelect:C,onClick:$,onDblclick:x,onExpand:S,onCheck:O}),o)}}}),Kd=lp,QQ=v(bs,{DirectoryTree:Wd,TreeNode:Kd,install:e=>(e.component(bs.name,bs),e.component(Kd.name,Kd),e.component(Wd.name,Wd),e)});function NS(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const o=new Set;function r(a,l){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;const s=o.has(a);if(Cv(!s,"Warning: There may be circular references"),s)return!1;if(a===l)return!0;if(n&&i>1)return!1;o.add(a);const u=i+1;if(Array.isArray(a)){if(!Array.isArray(l)||a.length!==l.length)return!1;for(let c=0;cr(a[d],l[d],u))}return!1}return r(e,t)}const{SubMenu:ZQ,Item:JQ}=Mn;function eZ(e){return e.some(t=>{let{children:n}=t;return n&&n.length>0})}function M6(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function E6(e){let{filters:t,prefixCls:n,filteredKeys:o,filterMultiple:r,searchValue:a,filterSearch:l}=e;return t.map((i,s)=>{const u=String(i.value);if(i.children)return f(ZQ,{key:u||s,title:i.text,popupClassName:`${n}-dropdown-submenu`},{default:()=>[E6({filters:i.children,prefixCls:n,filteredKeys:o,filterMultiple:r,searchValue:a,filterSearch:l})]});const c=r?No:pn,d=f(JQ,{key:i.value!==void 0?u:s},{default:()=>[f(c,{checked:o.includes(u)},null),f("span",null,[i.text])]});return a.trim()?typeof l=="function"?l(a,i)?d:void 0:M6(a,i.text)?d:void 0:d})}const tZ=J({name:"FilterDropdown",props:["tablePrefixCls","prefixCls","dropdownPrefixCls","column","filterState","filterMultiple","filterMode","filterSearch","columnKey","triggerFilter","locale","getPopupContainer"],setup(e,t){let{slots:n}=t;const o=Bh(),r=P(()=>{var j;return(j=e.filterMode)!==null&&j!==void 0?j:"menu"}),a=P(()=>{var j;return(j=e.filterSearch)!==null&&j!==void 0?j:!1}),l=P(()=>e.column.filterDropdownOpen||e.column.filterDropdownVisible),i=P(()=>e.column.onFilterDropdownOpenChange||e.column.onFilterDropdownVisibleChange),s=Y(!1),u=P(()=>{var j;return!!(e.filterState&&(!((j=e.filterState.filteredKeys)===null||j===void 0)&&j.length||e.filterState.forceFiltered))}),c=P(()=>{var j;return hu((j=e.column)===null||j===void 0?void 0:j.filters)}),d=P(()=>{const{filterDropdown:j,slots:K={},customFilterDropdown:G}=e.column;return j||K.filterDropdown&&o.value[K.filterDropdown]||G&&o.value.customFilterDropdown}),p=P(()=>{const{filterIcon:j,slots:K={}}=e.column;return j||K.filterIcon&&o.value[K.filterIcon]||o.value.customFilterIcon}),g=j=>{var K;s.value=j,(K=i.value)===null||K===void 0||K.call(i,j)},m=P(()=>typeof l.value=="boolean"?l.value:s.value),h=P(()=>{var j;return(j=e.filterState)===null||j===void 0?void 0:j.filteredKeys}),b=Y([]),y=j=>{let{selectedKeys:K}=j;b.value=K},S=(j,K)=>{let{node:G,checked:U}=K;e.filterMultiple?y({selectedKeys:j}):y({selectedKeys:U&&G.key?[G.key]:[]})};ue(h,()=>{s.value&&y({selectedKeys:h.value||[]})},{immediate:!0});const $=Y([]),x=Y(),C=j=>{x.value=setTimeout(()=>{$.value=j})},O=()=>{clearTimeout(x.value)};Je(()=>{clearTimeout(x.value)});const w=Y(""),M=j=>{const{value:K}=j.target;w.value=K};ue(s,()=>{s.value||(w.value="")});const I=j=>{const{column:K,columnKey:G,filterState:U}=e,X=j&&j.length?j:null;if(X===null&&(!U||!U.filteredKeys)||NS(X,U==null?void 0:U.filteredKeys,!0))return null;e.triggerFilter({column:K,key:G,filteredKeys:X})},_=()=>{g(!1),I(b.value)},D=function(){let{confirm:j,closeDropdown:K}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};j&&I([]),K&&g(!1),w.value="",e.column.filterResetToDefaultFilteredValue?b.value=(e.column.defaultFilteredValue||[]).map(G=>String(G)):b.value=[]},F=function(){let{closeDropdown:j}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};j&&g(!1),I(b.value)},z=j=>{j&&h.value!==void 0&&(b.value=h.value||[]),g(j),!j&&!d.value&&_()},{direction:H}=Ee("",e),T=j=>{if(j.target.checked){const K=c.value;b.value=K}else b.value=[]},A=j=>{let{filters:K}=j;return(K||[]).map((G,U)=>{const X=String(G.value),ee={title:G.text,key:G.value!==void 0?X:U};return G.children&&(ee.children=A({filters:G.children})),ee})},R=j=>{var K;return v(v({},j),{text:j.title,value:j.key,children:((K=j.children)===null||K===void 0?void 0:K.map(G=>R(G)))||[]})},E=P(()=>A({filters:e.column.filters})),k=P(()=>te({[`${e.dropdownPrefixCls}-menu-without-submenu`]:!eZ(e.column.filters||[])})),B=()=>{const j=b.value,{column:K,locale:G,tablePrefixCls:U,filterMultiple:X,dropdownPrefixCls:ee,getPopupContainer:oe,prefixCls:Q}=e;return(K.filters||[]).length===0?f(Or,{image:Or.PRESENTED_IMAGE_SIMPLE,description:G.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}},null):r.value==="tree"?f(nt,null,[f(SS,{filterSearch:a.value,value:w.value,onChange:M,tablePrefixCls:U,locale:G},null),f("div",{class:`${U}-filter-dropdown-tree`},[X?f(No,{class:`${U}-filter-dropdown-checkall`,onChange:T,checked:j.length===c.value.length,indeterminate:j.length>0&&j.length[G.filterCheckall]}):null,f(QQ,{checkable:!0,selectable:!1,blockNode:!0,multiple:X,checkStrictly:!X,class:`${ee}-menu`,onCheck:S,checkedKeys:j,selectedKeys:j,showIcon:!1,treeData:E.value,autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:w.value.trim()?W=>typeof a.value=="function"?a.value(w.value,R(W)):M6(w.value,W.title):void 0},null)])]):f(nt,null,[f(SS,{filterSearch:a.value,value:w.value,onChange:M,tablePrefixCls:U,locale:G},null),f(Mn,{multiple:X,prefixCls:`${ee}-menu`,class:k.value,onClick:O,onSelect:y,onDeselect:y,selectedKeys:j,getPopupContainer:oe,openKeys:$.value,onOpenChange:C},{default:()=>E6({filters:K.filters||[],filterSearch:a.value,prefixCls:Q,filteredKeys:b.value,filterMultiple:X,searchValue:w.value})})])},L=P(()=>{const j=b.value;return e.column.filterResetToDefaultFilteredValue?NS((e.column.defaultFilteredValue||[]).map(K=>String(K)),j,!0):j.length===0});return()=>{var j;const{tablePrefixCls:K,prefixCls:G,column:U,dropdownPrefixCls:X,locale:ee,getPopupContainer:oe}=e;let Q;typeof d.value=="function"?Q=d.value({prefixCls:`${X}-custom`,setSelectedKeys:re=>y({selectedKeys:re}),selectedKeys:b.value,confirm:F,clearFilters:D,filters:U.filters,visible:m.value,column:U.__originColumn__,close:()=>{g(!1)}}):d.value?Q=d.value:Q=f(nt,null,[B(),f("div",{class:`${G}-dropdown-btns`},[f(qt,{type:"link",size:"small",disabled:L.value,onClick:()=>D()},{default:()=>[ee.filterReset]}),f(qt,{type:"primary",size:"small",onClick:_},{default:()=>[ee.filterConfirm]})])]);const W=f(cQ,{class:`${G}-dropdown`},{default:()=>[Q]});let q;return typeof p.value=="function"?q=p.value({filtered:u.value,column:U.__originColumn__}):p.value?q=p.value:q=f(lQ,null,null),f("div",{class:`${G}-column`},[f("span",{class:`${K}-column-title`},[(j=n.default)===null||j===void 0?void 0:j.call(n)]),f(ar,{overlay:W,trigger:["click"],open:m.value,onOpenChange:z,getPopupContainer:oe,placement:H.value==="rtl"?"bottomLeft":"bottomRight"},{default:()=>[f("span",{role:"button",tabindex:-1,class:te(`${G}-trigger`,{active:u.value}),onClick:re=>{re.stopPropagation()}},[q])]})])}}});function Hp(e,t,n){let o=[];return(e||[]).forEach((r,a)=>{var l,i;const s=yi(a,n),u=r.filterDropdown||((l=r==null?void 0:r.slots)===null||l===void 0?void 0:l.filterDropdown)||r.customFilterDropdown;if(r.filters||u||"onFilter"in r)if("filteredValue"in r){let c=r.filteredValue;u||(c=(i=c==null?void 0:c.map(String))!==null&&i!==void 0?i:c),o.push({column:r,key:Kr(r,s),filteredKeys:c,forceFiltered:r.filtered})}else o.push({column:r,key:Kr(r,s),filteredKeys:t&&r.defaultFilteredValue?r.defaultFilteredValue:void 0,forceFiltered:r.filtered});"children"in r&&(o=[...o,...Hp(r.children,t,s)])}),o}function _6(e,t,n,o,r,a,l,i){return n.map((s,u)=>{var c;const d=yi(u,i),{filterMultiple:p=!0,filterMode:g,filterSearch:m}=s;let h=s;const b=s.filterDropdown||((c=s==null?void 0:s.slots)===null||c===void 0?void 0:c.filterDropdown)||s.customFilterDropdown;if(h.filters||b){const y=Kr(h,d),S=o.find($=>{let{key:x}=$;return y===x});h=v(v({},h),{title:$=>f(tZ,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:h,columnKey:y,filterState:S,filterMultiple:p,filterMode:g,filterSearch:m,triggerFilter:a,locale:r,getPopupContainer:l},{default:()=>[Hh(s.title,$)]})})}return"children"in h&&(h=v(v({},h),{children:_6(e,t,h.children,o,r,a,l,d)})),h})}function hu(e){let t=[];return(e||[]).forEach(n=>{let{value:o,children:r}=n;t.push(o),r&&(t=[...t,...hu(r)])}),t}function kS(e){const t={};return e.forEach(n=>{let{key:o,filteredKeys:r,column:a}=n;var l;const i=a.filterDropdown||((l=a==null?void 0:a.slots)===null||l===void 0?void 0:l.filterDropdown)||a.customFilterDropdown,{filters:s}=a;if(i)t[o]=r||null;else if(Array.isArray(r)){const u=hu(s);t[o]=u.filter(c=>r.includes(String(c)))}else t[o]=null}),t}function BS(e,t){return t.reduce((n,o)=>{const{column:{onFilter:r,filters:a},filteredKeys:l}=o;return r&&l&&l.length?n.filter(i=>l.some(s=>{const u=hu(a),c=u.findIndex(p=>String(p)===String(s)),d=c!==-1?u[c]:s;return r(d,i)})):n},e)}function D6(e){return e.flatMap(t=>"children"in t?[t,...D6(t.children||[])]:[t])}function nZ(e){let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:o,locale:r,onFilterChange:a,getPopupContainer:l}=e;const i=P(()=>D6(o.value)),[s,u]=pt(Hp(i.value,!0)),c=P(()=>{const m=Hp(i.value,!1);if(m.length===0)return m;let h=!0,b=!0;if(m.forEach(y=>{let{filteredKeys:S}=y;S!==void 0?h=!1:b=!1}),h){const y=(i.value||[]).map((S,$)=>Kr(S,yi($)));return s.value.filter(S=>{let{key:$}=S;return y.includes($)}).map(S=>{const $=i.value[y.findIndex(x=>x===S.key)];return v(v({},S),{column:v(v({},S.column),$),forceFiltered:$.filtered})})}return bt(b,"Table","Columns should all contain `filteredValue` or not contain `filteredValue`."),m}),d=P(()=>kS(c.value)),p=m=>{const h=c.value.filter(b=>{let{key:y}=b;return y!==m.key});h.push(m),u(h),a(kS(h),h)};return[m=>_6(t.value,n.value,m,c.value,r.value,p,l.value),c,d]}function A6(e,t){return e.map(n=>{const o=v({},n);return o.title=Hh(o.title,t),"children"in o&&(o.children=A6(o.children,t)),o})}function oZ(e){return[n=>A6(n,e.value)]}function rZ(e){return function(n){let{prefixCls:o,onExpand:r,record:a,expanded:l,expandable:i}=n;const s=`${o}-row-expand-icon`;return f("button",{type:"button",onClick:u=>{r(a,u),u.stopPropagation()},class:te(s,{[`${s}-spaced`]:!i,[`${s}-expanded`]:i&&l,[`${s}-collapsed`]:i&&!l}),"aria-label":l?e.collapse:e.expand,"aria-expanded":l},null)}}function R6(e,t){const n=t.value;return e.map(o=>{var r;if(o===To||o===Jo)return o;const a=v({},o),{slots:l={}}=a;return a.__originColumn__=o,bt(!("slots"in a),"Table","`column.slots` is deprecated. Please use `v-slot:headerCell` `v-slot:bodyCell` instead."),Object.keys(l).forEach(i=>{const s=l[i];a[i]===void 0&&n[s]&&(a[i]=n[s])}),t.value.headerCell&&!(!((r=o.slots)===null||r===void 0)&&r.title)&&(a.title=Ic(t.value,"headerCell",{title:o.title,column:o},()=>[o.title])),"children"in a&&Array.isArray(a.children)&&(a.children=R6(a.children,t)),a})}function aZ(e){return[n=>R6(n,e)]}const lZ=e=>{const{componentCls:t}=e,n=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`,o=(r,a,l)=>({[`&${t}-${r}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"> table > tbody > tr > td":{[`> ${t}-expanded-row-fixed`]:{margin:`-${a}px -${l+e.lineWidth}px`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:v(v(v({[`> ${t}-title`]:{border:n,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:n,[` + > ${t}-content, + > ${t}-header, + > ${t}-body, + > ${t}-summary + `]:{"> table":{"\n > thead > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:n},"> thead":{"> tr:not(:last-child) > th":{borderBottom:n},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:n}},"> tbody > tr > td":{[`> ${t}-expanded-row-fixed`]:{margin:`-${e.tablePaddingVertical}px -${e.tablePaddingHorizontal+e.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:e.lineWidth,bottom:0,borderInlineEnd:n,content:'""'}}}}},[` + > ${t}-content, + > ${t}-header + `]:{"> table":{borderTop:n}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[` + > tr${t}-expanded-row, + > tr${t}-placeholder + `]:{"> td":{borderInlineEnd:0}}}}}},o("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),o("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:n,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${e.lineWidth}px 0 ${e.lineWidth}px ${e.tableHeaderBg}`}}}}},iZ=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:v(v({},mn),{wordBreak:"keep-all",[` + &${t}-cell-fix-left-last, + &${t}-cell-fix-right-first + `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},sZ=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"&:hover > td":{background:e.colorBgContainer}}}}},cZ=e=>{const{componentCls:t,antCls:n,controlInteractiveSize:o,motionDurationSlow:r,lineWidth:a,paddingXS:l,lineType:i,tableBorderColor:s,tableExpandIconBg:u,tableExpandColumnWidth:c,borderRadius:d,fontSize:p,fontSizeSM:g,lineHeight:m,tablePaddingVertical:h,tablePaddingHorizontal:b,tableExpandedRowBg:y,paddingXXS:S}=e,$=o/2-a,x=$*2+a*3,C=`${a}px ${i} ${s}`,O=S-a;return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:c},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:v(v({},Pv(e)),{position:"relative",float:"left",boxSizing:"border-box",width:x,height:x,padding:0,color:"inherit",lineHeight:`${x}px`,background:u,border:C,borderRadius:d,transform:`scale(${o/x})`,transition:`all ${r}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:$,insetInlineEnd:O,insetInlineStart:O,height:a},"&::after":{top:O,bottom:O,insetInlineStart:$,width:a,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:(p*m-a*3)/2-Math.ceil((g*1.4-a*3)/2),marginInlineEnd:l},[`tr${t}-expanded-row`]:{"&, &:hover":{"> td":{background:y}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`-${h}px -${b}px`,padding:`${h}px ${b}px`}}}},uZ=e=>{const{componentCls:t,antCls:n,iconCls:o,tableFilterDropdownWidth:r,tableFilterDropdownSearchWidth:a,paddingXXS:l,paddingXS:i,colorText:s,lineWidth:u,lineType:c,tableBorderColor:d,tableHeaderIconColor:p,fontSizeSM:g,tablePaddingHorizontal:m,borderRadius:h,motionDurationSlow:b,colorTextDescription:y,colorPrimary:S,tableHeaderFilterActiveBg:$,colorTextDisabled:x,tableFilterDropdownBg:C,tableFilterDropdownHeight:O,controlItemBgHover:w,controlItemBgActive:M,boxShadowSecondary:I}=e,_=`${n}-dropdown`,D=`${t}-filter-dropdown`,F=`${n}-tree`,z=`${u}px ${c} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-l,marginInline:`${l}px ${-m/2}px`,padding:`0 ${l}px`,color:p,fontSize:g,borderRadius:h,cursor:"pointer",transition:`all ${b}`,"&:hover":{color:y,background:$},"&.active":{color:S}}}},{[`${n}-dropdown`]:{[D]:v(v({},et(e)),{minWidth:r,backgroundColor:C,borderRadius:h,boxShadow:I,[`${_}-menu`]:{maxHeight:O,overflowX:"hidden",border:0,boxShadow:"none","&:empty::after":{display:"block",padding:`${i}px 0`,color:x,fontSize:g,textAlign:"center",content:'"Not Found"'}},[`${D}-tree`]:{paddingBlock:`${i}px 0`,paddingInline:i,[F]:{padding:0},[`${F}-treenode ${F}-node-content-wrapper:hover`]:{backgroundColor:w},[`${F}-treenode-checkbox-checked ${F}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:M}}},[`${D}-search`]:{padding:i,borderBottom:z,"&-input":{input:{minWidth:a},[o]:{color:x}}},[`${D}-checkall`]:{width:"100%",marginBottom:l,marginInlineStart:l},[`${D}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${i-u}px ${i}px`,overflow:"hidden",backgroundColor:"inherit",borderTop:z}})}},{[`${n}-dropdown ${D}, ${D}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:i,color:s},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},dZ=e=>{const{componentCls:t,lineWidth:n,colorSplit:o,motionDurationSlow:r,zIndexTableFixed:a,tableBg:l,zIndexTableSticky:i}=e,s=o;return{[`${t}-wrapper`]:{[` + ${t}-cell-fix-left, + ${t}-cell-fix-right + `]:{position:"sticky !important",zIndex:a,background:l},[` + ${t}-cell-fix-left-first::after, + ${t}-cell-fix-left-last::after + `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-n,width:30,transform:"translateX(100%)",transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[` + ${t}-cell-fix-right-first::after, + ${t}-cell-fix-right-last::after + `]:{position:"absolute",top:0,bottom:-n,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:i+1,width:30,transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${s}`}},[` + ${t}-cell-fix-left-first::after, + ${t}-cell-fix-left-last::after + `]:{boxShadow:`inset 10px 0 8px -8px ${s}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${s}`}},[` + ${t}-cell-fix-right-first::after, + ${t}-cell-fix-right-last::after + `]:{boxShadow:`inset -10px 0 8px -8px ${s}`}}}}},fZ=e=>{const{componentCls:t,antCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${e.margin}px 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},pZ=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${n}px ${n}px 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,table:{borderRadius:0,"> thead > tr:first-child":{"th:first-child":{borderRadius:0},"th:last-child":{borderRadius:0}}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${n}px ${n}px`}}}}},vZ=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{"&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}}}}},gZ=e=>{const{componentCls:t,antCls:n,iconCls:o,fontSizeIcon:r,paddingXS:a,tableHeaderIconColor:l,tableHeaderIconColorHover:i}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:e.tableSelectionColumnWidth},[`${t}-bordered ${t}-selection-col`]:{width:e.tableSelectionColumnWidth+a*2},[` + table tr th${t}-selection-column, + table tr td${t}-selection-column + `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:e.zIndexTableFixed+1},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${e.tablePaddingHorizontal/4}px`,[o]:{color:l,fontSize:r,verticalAlign:"baseline","&:hover":{color:i}}}}}},hZ=e=>{const{componentCls:t}=e,n=(o,r,a,l)=>({[`${t}${t}-${o}`]:{fontSize:l,[` + ${t}-title, + ${t}-footer, + ${t}-thead > tr > th, + ${t}-tbody > tr > td, + tfoot > tr > th, + tfoot > tr > td + `]:{padding:`${r}px ${a}px`},[`${t}-filter-trigger`]:{marginInlineEnd:`-${a/2}px`},[`${t}-expanded-row-fixed`]:{margin:`-${r}px -${a}px`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:`-${r}px`,marginInline:`${e.tableExpandColumnWidth-a}px -${a}px`}},[`${t}-selection-column`]:{paddingInlineStart:`${a/4}px`}}});return{[`${t}-wrapper`]:v(v({},n("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),n("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},mZ=e=>{const{componentCls:t}=e;return{[`${t}-wrapper ${t}-resize-handle`]:{position:"absolute",top:0,height:"100% !important",bottom:0,left:" auto !important",right:" -8px",cursor:"col-resize",touchAction:"none",userSelect:"auto",width:"16px",zIndex:1,"&-line":{display:"block",width:"1px",marginLeft:"7px",height:"100% !important",backgroundColor:e.colorPrimary,opacity:0},"&:hover &-line":{opacity:1}},[`${t}-wrapper ${t}-resize-handle.dragging`]:{overflow:"hidden",[`${t}-resize-handle-line`]:{opacity:1},"&:before":{position:"absolute",top:0,bottom:0,content:'" "',width:"200vw",transform:"translateX(-50%)",opacity:0}}}},bZ=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:o,tableHeaderIconColor:r,tableHeaderIconColorHover:a}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[` + &${t}-cell-fix-left:hover, + &${t}-cell-fix-right:hover + `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorter`]:{marginInlineStart:n,color:r,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:o,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:a}}}},yZ=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:o,tableScrollThumbBgHover:r,tableScrollThumbSize:a,tableScrollBg:l,zIndexTableSticky:i}=e,s=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:i,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${a}px !important`,zIndex:i,display:"flex",alignItems:"center",background:l,borderTop:s,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:a,backgroundColor:o,borderRadius:100,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:r}}}}}}},FS=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:o}=e,r=`${n}px ${e.lineType} ${o}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:r}}},[`div${t}-summary`]:{boxShadow:`0 -${n}px 0 ${o}`}}}},SZ=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:o,tablePaddingHorizontal:r,lineWidth:a,lineType:l,tableBorderColor:i,tableFontSize:s,tableBg:u,tableRadius:c,tableHeaderTextColor:d,motionDurationMid:p,tableHeaderBg:g,tableHeaderCellSplitColor:m,tableRowHoverBg:h,tableSelectedRowBg:b,tableSelectedRowHoverBg:y,tableFooterTextColor:S,tableFooterBg:$,paddingContentVerticalLG:x}=e,C=`${a}px ${l} ${i}`;return{[`${t}-wrapper`]:v(v({clear:"both",maxWidth:"100%"},ro()),{[t]:v(v({},et(e)),{fontSize:s,background:u,borderRadius:`${c}px ${c}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${c}px ${c}px 0 0`,borderCollapse:"separate",borderSpacing:0},[` + ${t}-thead > tr > th, + ${t}-tbody > tr > td, + tfoot > tr > th, + tfoot > tr > td + `]:{position:"relative",padding:`${x}px ${r}px`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${o}px ${r}px`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:d,fontWeight:n,textAlign:"start",background:g,borderBottom:C,transition:`background ${p} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:m,transform:"translateY(-50%)",transition:`background-color ${p}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}:not(${t}-bordered)`]:{[`${t}-tbody`]:{"> tr":{"> td":{borderTop:C,borderBottom:"transparent"},"&:last-child > td":{borderBottom:C},[`&:first-child > td, + &${t}-measure-row + tr > td`]:{borderTop:"none",borderTopColor:"transparent"}}}},[`${t}${t}-bordered`]:{[`${t}-tbody`]:{"> tr":{"> td":{borderBottom:C}}}},[`${t}-tbody`]:{"> tr":{"> td":{transition:`background ${p}, border-color ${p}`,[` + > ${t}-wrapper:only-child, + > ${t}-expanded-row-fixed > ${t}-wrapper:only-child + `]:{[t]:{marginBlock:`-${o}px`,marginInline:`${e.tableExpandColumnWidth-r}px -${r}px`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},[` + &${t}-row:hover > td, + > td${t}-cell-row-hover + `]:{background:h},[`&${t}-row-selected`]:{"> td":{background:b},"&:hover > td":{background:y}}}},[`${t}-footer`]:{padding:`${o}px ${r}px`,color:S,background:$}})}},$Z=Qe("Table",e=>{const{controlItemBgActive:t,controlItemBgActiveHover:n,colorTextPlaceholder:o,colorTextHeading:r,colorSplit:a,colorBorderSecondary:l,fontSize:i,padding:s,paddingXS:u,paddingSM:c,controlHeight:d,colorFillAlter:p,colorIcon:g,colorIconHover:m,opacityLoading:h,colorBgContainer:b,borderRadiusLG:y,colorFillContent:S,colorFillSecondary:$,controlInteractiveSize:x}=e,C=new st(g),O=new st(m),w=t,M=2,I=new st($).onBackground(b).toHexString(),_=new st(S).onBackground(b).toHexString(),D=new st(p).onBackground(b).toHexString(),F=ze(e,{tableFontSize:i,tableBg:b,tableRadius:y,tablePaddingVertical:s,tablePaddingHorizontal:s,tablePaddingVerticalMiddle:c,tablePaddingHorizontalMiddle:u,tablePaddingVerticalSmall:u,tablePaddingHorizontalSmall:u,tableBorderColor:l,tableHeaderTextColor:r,tableHeaderBg:D,tableFooterTextColor:r,tableFooterBg:D,tableHeaderCellSplitColor:l,tableHeaderSortBg:I,tableHeaderSortHoverBg:_,tableHeaderIconColor:C.clone().setAlpha(C.getAlpha()*h).toRgbString(),tableHeaderIconColorHover:O.clone().setAlpha(O.getAlpha()*h).toRgbString(),tableBodySortBg:D,tableFixedHeaderSortActiveBg:I,tableHeaderFilterActiveBg:S,tableFilterDropdownBg:b,tableRowHoverBg:D,tableSelectedRowBg:w,tableSelectedRowHoverBg:n,zIndexTableFixed:M,zIndexTableSticky:M+1,tableFontSizeMiddle:i,tableFontSizeSmall:i,tableSelectionColumnWidth:d,tableExpandIconBg:b,tableExpandColumnWidth:x+2*e.padding,tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:o,tableScrollThumbBgHover:r,tableScrollBg:a});return[SZ(F),fZ(F),FS(F),bZ(F),uZ(F),lZ(F),pZ(F),cZ(F),FS(F),sZ(F),gZ(F),dZ(F),yZ(F),iZ(F),hZ(F),mZ(F),vZ(F)]}),CZ=[],N6=()=>({prefixCls:je(),columns:ht(),rowKey:Ge([String,Function]),tableLayout:je(),rowClassName:Ge([String,Function]),title:de(),footer:de(),id:je(),showHeader:Ce(),components:Ne(),customRow:de(),customHeaderRow:de(),direction:je(),expandFixed:Ge([Boolean,String]),expandColumnWidth:Number,expandedRowKeys:ht(),defaultExpandedRowKeys:ht(),expandedRowRender:de(),expandRowByClick:Ce(),expandIcon:de(),onExpand:de(),onExpandedRowsChange:de(),"onUpdate:expandedRowKeys":de(),defaultExpandAllRows:Ce(),indentSize:Number,expandIconColumnIndex:Number,showExpandColumn:Ce(),expandedRowClassName:de(),childrenColumnName:je(),rowExpandable:de(),sticky:Ge([Boolean,Object]),dropdownPrefixCls:String,dataSource:ht(),pagination:Ge([Boolean,Object]),loading:Ge([Boolean,Object]),size:je(),bordered:Ce(),locale:Ne(),onChange:de(),onResizeColumn:de(),rowSelection:Ne(),getPopupContainer:de(),scroll:Ne(),sortDirections:ht(),showSorterTooltip:Ge([Boolean,Object],!0),transformCellText:de()}),xZ=J({name:"InternalTable",inheritAttrs:!1,props:rt(v(v({},N6()),{contextSlots:Ne()}),{rowKey:"key"}),setup(e,t){let{attrs:n,slots:o,expose:r,emit:a}=t;bt(!(typeof e.rowKey=="function"&&e.rowKey.length>1),"Table","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected."),qY(P(()=>e.contextSlots)),QY({onResizeColumn:(ce,se)=>{a("resizeColumn",ce,se)}});const l=Sg(),i=P(()=>{const ce=new Set(Object.keys(l.value).filter(se=>l.value[se]));return e.columns.filter(se=>!se.responsive||se.responsive.some(ie=>ce.has(ie)))}),{size:s,renderEmpty:u,direction:c,prefixCls:d,configProvider:p}=Ee("table",e),[g,m]=$Z(d),h=P(()=>{var ce;return e.transformCellText||((ce=p.transformCellText)===null||ce===void 0?void 0:ce.value)}),[b]=$o("Table",Gn.Table,Be(e,"locale")),y=P(()=>e.dataSource||CZ),S=P(()=>p.getPrefixCls("dropdown",e.dropdownPrefixCls)),$=P(()=>e.childrenColumnName||"children"),x=P(()=>y.value.some(ce=>ce==null?void 0:ce[$.value])?"nest":e.expandedRowRender?"row":null),C=vt({body:null}),O=ce=>{v(C,ce)},w=P(()=>typeof e.rowKey=="function"?e.rowKey:ce=>ce==null?void 0:ce[e.rowKey]),[M]=Vq(y,$,w),I={},_=function(ce,se){let ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{pagination:fe,scroll:Se,onChange:Ie}=e,ge=v(v({},I),ce);ie&&(I.resetPagination(),ge.pagination.current&&(ge.pagination.current=1),fe&&fe.onChange&&fe.onChange(1,ge.pagination.pageSize)),Se&&Se.scrollToFirstRowOnChange!==!1&&C.body&&VM(0,{getContainer:()=>C.body}),Ie==null||Ie(ge.pagination,ge.filters,ge.sorter,{currentDataSource:BS(Lp(y.value,ge.sorterStates,$.value),ge.filterStates),action:se})},D=(ce,se)=>{_({sorter:ce,sorterStates:se},"sort",!1)},[F,z,H,T]=nQ({prefixCls:d,mergedColumns:i,onSorterChange:D,sortDirections:P(()=>e.sortDirections||["ascend","descend"]),tableLocale:b,showSorterTooltip:Be(e,"showSorterTooltip")}),A=P(()=>Lp(y.value,z.value,$.value)),R=(ce,se)=>{_({filters:ce,filterStates:se},"filter",!0)},[E,k,B]=nZ({prefixCls:d,locale:b,dropdownPrefixCls:S,mergedColumns:i,onFilterChange:R,getPopupContainer:Be(e,"getPopupContainer")}),L=P(()=>BS(A.value,k.value)),[j]=aZ(Be(e,"contextSlots")),K=P(()=>{const ce={},se=B.value;return Object.keys(se).forEach(ie=>{se[ie]!==null&&(ce[ie]=se[ie])}),v(v({},H.value),{filters:ce})}),[G]=oZ(K),U=(ce,se)=>{_({pagination:v(v({},I.pagination),{current:ce,pageSize:se})},"paginate")},[X,ee]=jq(P(()=>L.value.length),Be(e,"pagination"),U);Le(()=>{I.sorter=T.value,I.sorterStates=z.value,I.filters=B.value,I.filterStates=k.value,I.pagination=e.pagination===!1?{}:Hq(X.value,e.pagination),I.resetPagination=ee});const oe=P(()=>{if(e.pagination===!1||!X.value.pageSize)return L.value;const{current:ce=1,total:se,pageSize:ie=Rp}=X.value;return bt(ce>0,"Table","`current` should be positive number."),L.value.lengthie?L.value.slice((ce-1)*ie,ce*ie):L.value:L.value.slice((ce-1)*ie,ce*ie)});Le(()=>{lt(()=>{const{total:ce,pageSize:se=Rp}=X.value;L.value.lengthse&&bt(!1,"Table","`dataSource` length is less than `pagination.total` but large than `pagination.pageSize`. Please make sure your config correct data with async mode.")})},{flush:"post"});const Q=P(()=>e.showExpandColumn===!1?-1:x.value==="nest"&&e.expandIconColumnIndex===void 0?e.rowSelection?1:0:e.expandIconColumnIndex>0&&e.rowSelection?e.expandIconColumnIndex-1:e.expandIconColumnIndex),W=Z();ue(()=>e.rowSelection,()=>{W.value=e.rowSelection?v({},e.rowSelection):e.rowSelection},{deep:!0,immediate:!0});const[q,re]=Kq(W,{prefixCls:d,data:L,pageData:oe,getRowKey:w,getRecordByKey:M,expandType:x,childrenColumnName:$,locale:b,getPopupContainer:P(()=>e.getPopupContainer)}),le=(ce,se,ie)=>{let fe;const{rowClassName:Se}=e;return typeof Se=="function"?fe=te(Se(ce,se,ie)):fe=te(Se),te({[`${d.value}-row-selected`]:re.value.has(w.value(ce,se))},fe)};r({selectedKeySet:re});const ye=P(()=>typeof e.indentSize=="number"?e.indentSize:15),me=ce=>G(q(E(F(j(ce)))));return()=>{var ce;const{expandIcon:se=o.expandIcon||rZ(b.value),pagination:ie,loading:fe,bordered:Se}=e;let Ie,ge;if(ie!==!1&&(!((ce=X.value)===null||ce===void 0)&&ce.total)){let ne;X.value.size?ne=X.value.size:ne=s.value==="small"||s.value==="middle"?"small":void 0;const pe=ke=>f(NX,N(N({},X.value),{},{class:[`${d.value}-pagination ${d.value}-pagination-${ke}`,X.value.class],size:ne}),null),xe=c.value==="rtl"?"left":"right",{position:Te}=X.value;if(Te!==null&&Array.isArray(Te)){const ke=Te.find(be=>be.includes("top")),ve=Te.find(be=>be.includes("bottom")),he=Te.every(be=>`${be}`=="none");!ke&&!ve&&!he&&(ge=pe(xe)),ke&&(Ie=pe(ke.toLowerCase().replace("top",""))),ve&&(ge=pe(ve.toLowerCase().replace("bottom","")))}else ge=pe(xe)}let Oe;typeof fe=="boolean"?Oe={spinning:fe}:typeof fe=="object"&&(Oe=v({spinning:!0},fe));const we=te(`${d.value}-wrapper`,{[`${d.value}-wrapper-rtl`]:c.value==="rtl"},n.class,m.value),ae=qe(e,["columns"]);return g(f("div",{class:we,style:n.style},[f(kl,N({spinning:!1},Oe),{default:()=>[Ie,f(Lq,N(N(N({},n),ae),{},{expandedRowKeys:e.expandedRowKeys,defaultExpandedRowKeys:e.defaultExpandedRowKeys,expandIconColumnIndex:Q.value,indentSize:ye.value,expandIcon:se,columns:i.value,direction:c.value,prefixCls:d.value,class:te({[`${d.value}-middle`]:s.value==="middle",[`${d.value}-small`]:s.value==="small",[`${d.value}-bordered`]:Se,[`${d.value}-empty`]:y.value.length===0}),data:oe.value,rowKey:w.value,rowClassName:le,internalHooks:Ap,internalRefs:C,onUpdateInternalRefs:O,transformColumns:me,transformCellText:h.value}),v(v({},o),{emptyText:()=>{var ne,pe;return((ne=o.emptyText)===null||ne===void 0?void 0:ne.call(o))||((pe=e.locale)===null||pe===void 0?void 0:pe.emptyText)||u("Table")}})),ge]})]))}}}),wZ=J({name:"ATable",inheritAttrs:!1,props:rt(N6(),{rowKey:"key"}),slots:Object,setup(e,t){let{attrs:n,slots:o,expose:r}=t;const a=Z();return r({table:a}),()=>{var l;const i=e.columns||$6((l=o.default)===null||l===void 0?void 0:l.call(o));return f(xZ,N(N(N({ref:a},n),e),{},{columns:i||[],expandedRowRender:o.expandedRowRender||e.expandedRowRender,contextSlots:v({},o)}),o)}}}),Gd=wZ,Xd=J({name:"ATableColumn",slots:Object,render(){return null}}),Ud=J({name:"ATableColumnGroup",slots:Object,__ANT_TABLE_COLUMN_GROUP:!0,render(){return null}}),jp=Iq,Vp=Eq,Yd=v(_q,{Cell:Vp,Row:jp,name:"ATableSummary"}),Eoe=v(Gd,{SELECTION_ALL:Np,SELECTION_INVERT:kp,SELECTION_NONE:Bp,SELECTION_COLUMN:To,EXPAND_COLUMN:Jo,Column:Xd,ColumnGroup:Ud,Summary:Yd,install:e=>(e.component(Yd.name,Yd),e.component(Vp.name,Vp),e.component(jp.name,jp),e.component(Gd.name,Gd),e.component(Xd.name,Xd),e.component(Ud.name,Ud),e)});var OZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};const PZ=OZ;function LS(e){for(var t=1;t{n.push(a[t.value]);const l=a[t.children];l&&o(l)})}return o(e),n}function zS(e){return e==null}const k6=Symbol("TreeSelectContextPropsKey");function DZ(e){return Ke(k6,e)}function AZ(){return Xe(k6,{})}const RZ={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},NZ=J({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,setup(e,t){let{slots:n,expose:o}=t;const r=ci(),a=Dc(),l=AZ(),i=Z(),s=Wv(()=>l.treeData,[()=>r.open,()=>l.treeData],C=>C[0]),u=P(()=>{const{checkable:C,halfCheckedKeys:O,checkedKeys:w}=a;return C?{checked:w,halfChecked:O}:null});ue(()=>r.open,()=>{lt(()=>{var C;r.open&&!r.multiple&&a.checkedKeys.length&&((C=i.value)===null||C===void 0||C.scrollTo({key:a.checkedKeys[0]}))})},{immediate:!0,flush:"post"});const c=P(()=>String(r.searchValue).toLowerCase()),d=C=>c.value?String(C[a.treeNodeFilterProp]).toLowerCase().includes(c.value):!1,p=Y(a.treeDefaultExpandedKeys),g=Y(null);ue(()=>r.searchValue,()=>{r.searchValue&&(g.value=_Z(_t(l.treeData),_t(l.fieldNames)))},{immediate:!0});const m=P(()=>a.treeExpandedKeys?a.treeExpandedKeys.slice():r.searchValue?g.value:p.value),h=C=>{var O;p.value=C,g.value=C,(O=a.onTreeExpand)===null||O===void 0||O.call(a,C)},b=C=>{C.preventDefault()},y=(C,O)=>{let{node:w}=O;var M,I;const{checkable:_,checkedKeys:D}=a;_&&Wp(w)||((M=l.onSelect)===null||M===void 0||M.call(l,w.key,{selected:!D.includes(w.key)}),r.multiple||(I=r.toggleOpen)===null||I===void 0||I.call(r,!1))},S=Z(null),$=P(()=>a.keyEntities[S.value]),x=C=>{S.value=C};return o({scrollTo:function(){for(var C,O,w=arguments.length,M=new Array(w),I=0;I{var O;const{which:w}=C;switch(w){case $e.UP:case $e.DOWN:case $e.LEFT:case $e.RIGHT:(O=i.value)===null||O===void 0||O.onKeydown(C);break;case $e.ENTER:{if($.value){const{selectable:M,value:I}=$.value.node||{};M!==!1&&y(null,{node:{key:S.value},selected:!a.checkedKeys.includes(I)})}break}case $e.ESC:r.toggleOpen(!1)}},onKeyup:()=>{}}),()=>{var C;const{prefixCls:O,multiple:w,searchValue:M,open:I,notFoundContent:_=(C=n.notFoundContent)===null||C===void 0?void 0:C.call(n)}=r,{listHeight:D,listItemHeight:F,virtual:z,dropdownMatchSelectWidth:H,treeExpandAction:T}=l,{checkable:A,treeDefaultExpandAll:R,treeIcon:E,showTreeIcon:k,switcherIcon:B,treeLine:L,loadData:j,treeLoadedKeys:K,treeMotion:G,onTreeLoad:U,checkedKeys:X}=a;if(s.value.length===0)return f("div",{role:"listbox",class:`${O}-empty`,onMousedown:b},[_]);const ee={fieldNames:l.fieldNames};return K&&(ee.loadedKeys=K),m.value&&(ee.expandedKeys=m.value),f("div",{onMousedown:b},[$.value&&I&&f("span",{style:RZ,"aria-live":"assertive"},[$.value.node.value]),f(w6,N(N({ref:i,focusable:!1,prefixCls:`${O}-tree`,treeData:s.value,height:D,itemHeight:F,virtual:z!==!1&&H!==!1,multiple:w,icon:E,showIcon:k,switcherIcon:B,showLine:L,loadData:M?null:j,motion:G,activeKey:S.value,checkable:A,checkStrictly:!0,checkedKeys:u.value,selectedKeys:A?[]:X,defaultExpandAll:R},ee),{},{onActiveChange:x,onSelect:y,onCheck:y,onExpand:h,onLoad:U,filterTreeNode:d,expandAction:T}),v(v({},n),{checkable:a.customSlots.treeCheckable}))])}}}),kZ="SHOW_ALL",B6="SHOW_PARENT",Qh="SHOW_CHILD";function HS(e,t,n,o){const r=new Set(e);return t===Qh?e.filter(a=>{const l=n[a];return!(l&&l.children&&l.children.some(i=>{let{node:s}=i;return r.has(s[o.value])})&&l.children.every(i=>{let{node:s}=i;return Wp(s)||r.has(s[o.value])}))}):t===B6?e.filter(a=>{const l=n[a],i=l?l.parent:null;return!(i&&!Wp(i.node)&&r.has(i.key))}):e}const mu=()=>null;mu.inheritAttrs=!1;mu.displayName="ATreeSelectNode";mu.isTreeSelectNode=!0;const Zh=mu;var BZ=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r0&&arguments[0]!==void 0?arguments[0]:[];return Tt(n).map(o=>{var r,a,l;if(!FZ(o))return null;const i=o.children||{},s=o.key,u={};for(const[w,M]of Object.entries(o.props))u[qr(w)]=M;const{isLeaf:c,checkable:d,selectable:p,disabled:g,disableCheckbox:m}=u,h={isLeaf:c||c===""||void 0,checkable:d||d===""||void 0,selectable:p||p===""||void 0,disabled:g||g===""||void 0,disableCheckbox:m||m===""||void 0},b=v(v({},u),h),{title:y=(r=i.title)===null||r===void 0?void 0:r.call(i,b),switcherIcon:S=(a=i.switcherIcon)===null||a===void 0?void 0:a.call(i,b)}=u,$=BZ(u,["title","switcherIcon"]),x=(l=i.default)===null||l===void 0?void 0:l.call(i),C=v(v(v({},$),{title:y,switcherIcon:S,key:s,isLeaf:c}),h),O=t(x);return O.length&&(C.children=O),C})}return t(e)}function Kp(e){if(!e)return e;const t=v({},e);return"props"in t||Object.defineProperty(t,"props",{get(){return t}}),t}function zZ(e,t,n,o,r,a){let l=null,i=null;function s(){function u(c){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return c.map((g,m)=>{const h=`${d}-${m}`,b=g[a.value],y=n.includes(b),S=u(g[a.children]||[],h,y),$=f(Zh,g,{default:()=>[S.map(x=>x.node)]});if(t===b&&(l=$),y){const x={pos:h,node:$,children:S};return p||i.push(x),x}return null}).filter(g=>g)}i||(i=[],u(o),i.sort((c,d)=>{let{node:{props:{value:p}}}=c,{node:{props:{value:g}}}=d;const m=n.indexOf(p),h=n.indexOf(g);return m-h}))}Object.defineProperty(e,"triggerNode",{get(){return s(),l}}),Object.defineProperty(e,"allCheckedNodes",{get(){return s(),r?i:i.map(u=>{let{node:c}=u;return c})}})}function HZ(e,t){let{id:n,pId:o,rootPId:r}=t;const a={},l=[];return e.map(s=>{const u=v({},s),c=u[n];return a[c]=u,u.key=u.key||c,u}).forEach(s=>{const u=s[o],c=a[u];c&&(c.children=c.children||[],c.children.push(s)),(u===r||!c&&r===null)&&l.push(s)}),l}function jZ(e,t,n){const o=Y();return ue([n,e,t],()=>{const r=n.value;e.value?o.value=n.value?HZ(_t(e.value),v({id:"id",pId:"pId",rootPId:null},r!==!0?r:{})):_t(e.value).slice():o.value=LZ(_t(t.value))},{immediate:!0,deep:!0}),o}const VZ=e=>{const t=Y({valueLabels:new Map}),n=Y();return ue(e,()=>{n.value=_t(e.value)},{immediate:!0}),[P(()=>{const{valueLabels:r}=t.value,a=new Map,l=n.value.map(i=>{var s;const{value:u}=i,c=(s=i.label)!==null&&s!==void 0?s:r.get(u);return a.set(u,c),v(v({},i),{label:c})});return t.value.valueLabels=a,l})]},WZ=(e,t)=>{const n=Y(new Map),o=Y({});return Le(()=>{const r=t.value,a=gi(e.value,{fieldNames:r,initWrapper:l=>v(v({},l),{valueEntities:new Map}),processEntity:(l,i)=>{const s=l.node[r.value];i.valueEntities.set(s,l)}});n.value=a.valueEntities,o.value=a.keyEntities}),{valueEntities:n,keyEntities:o}},KZ=(e,t,n,o,r,a)=>{const l=Y([]),i=Y([]);return Le(()=>{let s=e.value.map(d=>{let{value:p}=d;return p}),u=t.value.map(d=>{let{value:p}=d;return p});const c=s.filter(d=>!o.value[d]);n.value&&({checkedKeys:s,halfCheckedKeys:u}=jn(s,!0,o.value,r.value,a.value)),l.value=Array.from(new Set([...c,...s])),i.value=u}),[l,i]},GZ=(e,t,n)=>{let{treeNodeFilterProp:o,filterTreeNode:r,fieldNames:a}=n;return P(()=>{const{children:l}=a.value,i=t.value,s=o==null?void 0:o.value;if(!i||r.value===!1)return e.value;let u;if(typeof r.value=="function")u=r.value;else{const d=i.toUpperCase();u=(p,g)=>{const m=g[s];return String(m).toUpperCase().includes(d)}}function c(d){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const g=[];for(let m=0,h=d.length;me.treeCheckable&&!e.treeCheckStrictly),i=P(()=>e.treeCheckable||e.treeCheckStrictly),s=P(()=>e.treeCheckStrictly||e.labelInValue),u=P(()=>i.value||e.multiple),c=P(()=>EZ(e.fieldNames)),[d,p]=Ot("",{value:P(()=>e.searchValue!==void 0?e.searchValue:e.inputValue),postState:ge=>ge||""}),g=ge=>{var Oe;p(ge),(Oe=e.onSearch)===null||Oe===void 0||Oe.call(e,ge)},m=jZ(Be(e,"treeData"),Be(e,"children"),Be(e,"treeDataSimpleMode")),{keyEntities:h,valueEntities:b}=WZ(m,c),y=ge=>{const Oe=[],we=[];return ge.forEach(ae=>{b.value.has(ae)?we.push(ae):Oe.push(ae)}),{missingRawValues:Oe,existRawValues:we}},S=GZ(m,d,{fieldNames:c,treeNodeFilterProp:Be(e,"treeNodeFilterProp"),filterTreeNode:Be(e,"filterTreeNode")}),$=ge=>{if(ge){if(e.treeNodeLabelProp)return ge[e.treeNodeLabelProp];const{_title:Oe}=c.value;for(let we=0;weMZ(ge).map(we=>XZ(we)?{value:we}:we),C=ge=>x(ge).map(we=>{let{label:ae}=we;const{value:ne,halfChecked:pe}=we;let xe;const Te=b.value.get(ne);return Te&&(ae=ae??$(Te.node),xe=Te.node.disabled),{label:ae,value:ne,halfChecked:pe,disabled:xe}}),[O,w]=Ot(e.defaultValue,{value:Be(e,"value")}),M=P(()=>x(O.value)),I=Y([]),_=Y([]);Le(()=>{const ge=[],Oe=[];M.value.forEach(we=>{we.halfChecked?Oe.push(we):ge.push(we)}),I.value=ge,_.value=Oe});const D=P(()=>I.value.map(ge=>ge.value)),{maxLevel:F,levelEntities:z}=au(h),[H,T]=KZ(I,_,l,h,F,z),A=P(()=>{const we=HS(H.value,e.showCheckedStrategy,h.value,c.value).map(pe=>{var xe,Te,ke;return(ke=(Te=(xe=h.value[pe])===null||xe===void 0?void 0:xe.node)===null||Te===void 0?void 0:Te[c.value.value])!==null&&ke!==void 0?ke:pe}).map(pe=>{const xe=I.value.find(Te=>Te.value===pe);return{value:pe,label:xe==null?void 0:xe.label}}),ae=C(we),ne=ae[0];return!u.value&&ne&&zS(ne.value)&&zS(ne.label)?[]:ae.map(pe=>{var xe;return v(v({},pe),{label:(xe=pe.label)!==null&&xe!==void 0?xe:pe.value})})}),[R]=VZ(A),E=(ge,Oe,we)=>{const ae=C(ge);if(w(ae),e.autoClearSearchValue&&p(""),e.onChange){let ne=ge;l.value&&(ne=HS(ge,e.showCheckedStrategy,h.value,c.value).map(Ae=>{const _e=b.value.get(Ae);return _e?_e.node[c.value.value]:Ae}));const{triggerValue:pe,selected:xe}=Oe||{triggerValue:void 0,selected:void 0};let Te=ne;if(e.treeCheckStrictly){const Me=_.value.filter(Ae=>!ne.includes(Ae.value));Te=[...Te,...Me]}const ke=C(Te),ve={preValue:I.value,triggerValue:pe};let he=!0;(e.treeCheckStrictly||we==="selection"&&!xe)&&(he=!1),zZ(ve,pe,ge,m.value,he,c.value),i.value?ve.checked=xe:ve.selected=xe;const be=s.value?ke:ke.map(Me=>Me.value);e.onChange(u.value?be:be[0],s.value?null:ke.map(Me=>Me.label),ve)}},k=(ge,Oe)=>{let{selected:we,source:ae}=Oe;var ne,pe,xe;const Te=_t(h.value),ke=_t(b.value),ve=Te[ge],he=ve==null?void 0:ve.node,be=(ne=he==null?void 0:he[c.value.value])!==null&&ne!==void 0?ne:ge;if(!u.value)E([be],{selected:!0,triggerValue:be},"option");else{let Me=we?[...D.value,be]:H.value.filter(Ae=>Ae!==be);if(l.value){const{missingRawValues:Ae,existRawValues:_e}=y(Me),Re=_e.map(tt=>ke.get(tt).key);let Ye;we?{checkedKeys:Ye}=jn(Re,!0,Te,F.value,z.value):{checkedKeys:Ye}=jn(Re,{checked:!1,halfCheckedKeys:T.value},Te,F.value,z.value),Me=[...Ae,...Ye.map(tt=>Te[tt].node[c.value.value])]}E(Me,{selected:we,triggerValue:be},ae||"option")}we||!u.value?(pe=e.onSelect)===null||pe===void 0||pe.call(e,be,Kp(he)):(xe=e.onDeselect)===null||xe===void 0||xe.call(e,be,Kp(he))},B=ge=>{if(e.onDropdownVisibleChange){const Oe={};Object.defineProperty(Oe,"documentClickClose",{get(){return!1}}),e.onDropdownVisibleChange(ge,Oe)}},L=(ge,Oe)=>{const we=ge.map(ae=>ae.value);if(Oe.type==="clear"){E(we,{},"selection");return}Oe.values.length&&k(Oe.values[0].value,{selected:!1,source:"selection"})},{treeNodeFilterProp:j,loadData:K,treeLoadedKeys:G,onTreeLoad:U,treeDefaultExpandAll:X,treeExpandedKeys:ee,treeDefaultExpandedKeys:oe,onTreeExpand:Q,virtual:W,listHeight:q,listItemHeight:re,treeLine:le,treeIcon:ye,showTreeIcon:me,switcherIcon:ce,treeMotion:se,customSlots:ie,dropdownMatchSelectWidth:fe,treeExpandAction:Se}=Rr(e);E_(Ns({checkable:i,loadData:K,treeLoadedKeys:G,onTreeLoad:U,checkedKeys:H,halfCheckedKeys:T,treeDefaultExpandAll:X,treeExpandedKeys:ee,treeDefaultExpandedKeys:oe,onTreeExpand:Q,treeIcon:ye,treeMotion:se,showTreeIcon:me,switcherIcon:ce,treeLine:le,treeNodeFilterProp:j,keyEntities:h,customSlots:ie})),DZ(Ns({virtual:W,listHeight:q,listItemHeight:re,treeData:S,fieldNames:c,onSelect:k,dropdownMatchSelectWidth:fe,treeExpandAction:Se}));const Ie=Z();return o({focus(){var ge;(ge=Ie.value)===null||ge===void 0||ge.focus()},blur(){var ge;(ge=Ie.value)===null||ge===void 0||ge.blur()},scrollTo(ge){var Oe;(Oe=Ie.value)===null||Oe===void 0||Oe.scrollTo(ge)}}),()=>{var ge;const Oe=qe(e,["id","prefixCls","customSlots","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","virtual","listHeight","listItemHeight","onDropdownVisibleChange","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion"]);return f(Vv,N(N(N({ref:Ie},n),Oe),{},{id:a,prefixCls:e.prefixCls,mode:u.value?"multiple":void 0,displayValues:R.value,onDisplayValuesChange:L,searchValue:d.value,onSearch:g,OptionList:NZ,emptyOptions:!m.value.length,onDropdownVisibleChange:B,tagRender:e.tagRender||r.tagRender,dropdownMatchSelectWidth:(ge=e.dropdownMatchSelectWidth)!==null&&ge!==void 0?ge:!0}),r)}}}),YZ=e=>{const{componentCls:t,treePrefixCls:n,colorBgElevated:o}=e,r=`.${n}`;return[{[`${t}-dropdown`]:[{padding:`${e.paddingXS}px ${e.paddingXS/2}px`},I6(n,ze(e,{colorBgContainer:o})),{[r]:{borderRadius:0,"&-list-holder-inner":{alignItems:"stretch",[`${r}-treenode`]:{[`${r}-node-content-wrapper`]:{flex:"auto"}}}}},su(`${n}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${r}-switcher${r}-switcher_close`]:{[`${r}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function qZ(e,t){return Qe("TreeSelect",n=>{const o=ze(n,{treePrefixCls:t.value});return[YZ(o)]})(e)}const jS=(e,t,n)=>n!==void 0?n:`${e}-${t}`;function QZ(){return v(v({},qe(F6(),["showTreeIcon","treeMotion","inputIcon","getInputElement","treeLine","customSlots"])),{suffixIcon:V.any,size:je(),bordered:Ce(),treeLine:Ge([Boolean,Object]),replaceFields:Ne(),placement:je(),status:je(),popupClassName:String,dropdownClassName:String,"onUpdate:value":de(),"onUpdate:treeExpandedKeys":de(),"onUpdate:searchValue":de()})}const qd=J({compatConfig:{MODE:3},name:"ATreeSelect",inheritAttrs:!1,props:rt(QZ(),{choiceTransitionName:"",listHeight:256,treeIcon:!1,listItemHeight:26,bordered:!0}),slots:Object,setup(e,t){let{attrs:n,slots:o,expose:r,emit:a}=t;e.treeData===void 0&&o.default,bt(e.multiple!==!1||!e.treeCheckable,"TreeSelect","`multiple` will always be `true` when `treeCheckable` is true"),bt(e.replaceFields===void 0,"TreeSelect","`replaceFields` is deprecated, please use fieldNames instead"),bt(!e.dropdownClassName,"TreeSelect","`dropdownClassName` is deprecated. Please use `popupClassName` instead.");const l=Ht(),i=ln.useInject(),s=P(()=>Vo(i.status,e.status)),{prefixCls:u,renderEmpty:c,direction:d,virtual:p,dropdownMatchSelectWidth:g,size:m,getPopupContainer:h,getPrefixCls:b,disabled:y}=Ee("select",e),{compactSize:S,compactItemClassnames:$}=fr(u,d),x=P(()=>S.value||m.value),C=gn(),O=P(()=>{var G;return(G=y.value)!==null&&G!==void 0?G:C.value}),w=P(()=>b()),M=P(()=>e.placement!==void 0?e.placement:d.value==="rtl"?"bottomRight":"bottomLeft"),I=P(()=>jS(w.value,Fv(M.value),e.transitionName)),_=P(()=>jS(w.value,"",e.choiceTransitionName)),D=P(()=>b("select-tree",e.prefixCls)),F=P(()=>b("tree-select",e.prefixCls)),[z,H]=cg(u),[T]=qZ(F,D),A=P(()=>te(e.popupClassName||e.dropdownClassName,`${F.value}-dropdown`,{[`${F.value}-dropdown-rtl`]:d.value==="rtl"},H.value)),R=P(()=>!!(e.treeCheckable||e.multiple)),E=P(()=>e.showArrow!==void 0?e.showArrow:e.loading||!R.value),k=Z();r({focus(){var G,U;(U=(G=k.value).focus)===null||U===void 0||U.call(G)},blur(){var G,U;(U=(G=k.value).blur)===null||U===void 0||U.call(G)}});const B=function(){for(var G=arguments.length,U=new Array(G),X=0;X{a("update:treeExpandedKeys",G),a("treeExpand",G)},j=G=>{a("update:searchValue",G),a("search",G)},K=G=>{a("blur",G),l.onFieldBlur()};return()=>{var G,U;const{notFoundContent:X=(G=o.notFoundContent)===null||G===void 0?void 0:G.call(o),prefixCls:ee,bordered:oe,listHeight:Q,listItemHeight:W,multiple:q,treeIcon:re,treeLine:le,showArrow:ye,switcherIcon:me=(U=o.switcherIcon)===null||U===void 0?void 0:U.call(o),fieldNames:ce=e.replaceFields,id:se=l.id.value}=e,{isFormItemInput:ie,hasFeedback:fe,feedbackIcon:Se}=i,{suffixIcon:Ie,removeIcon:ge,clearIcon:Oe}=lg(v(v({},e),{multiple:R.value,showArrow:E.value,hasFeedback:fe,feedbackIcon:Se,prefixCls:u.value}),o);let we;X!==void 0?we=X:we=c("Select");const ae=qe(e,["suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon","bordered","status","onUpdate:value","onUpdate:treeExpandedKeys","onUpdate:searchValue"]),ne=te(!ee&&F.value,{[`${u.value}-lg`]:x.value==="large",[`${u.value}-sm`]:x.value==="small",[`${u.value}-rtl`]:d.value==="rtl",[`${u.value}-borderless`]:!oe,[`${u.value}-in-form-item`]:ie},Tn(u.value,s.value,fe),$.value,n.class,H.value),pe={};return e.treeData===void 0&&o.default&&(pe.children=mt(o.default())),z(T(f(UZ,N(N(N(N({},n),ae),{},{disabled:O.value,virtual:p.value,dropdownMatchSelectWidth:g.value,id:se,fieldNames:ce,ref:k,prefixCls:u.value,class:ne,listHeight:Q,listItemHeight:W,treeLine:!!le,inputIcon:Ie,multiple:q,removeIcon:ge,clearIcon:Oe,switcherIcon:xe=>P6(D.value,me,xe,o.leafIcon,le),showTreeIcon:re,notFoundContent:we,getPopupContainer:h==null?void 0:h.value,treeMotion:null,dropdownClassName:A.value,choiceTransitionName:_.value,onChange:B,onBlur:K,onSearch:j,onTreeExpand:L},pe),{},{transitionName:I.value,customSlots:v(v({},o),{treeCheckable:()=>f("span",{class:`${u.value}-tree-checkbox-inner`},null)}),maxTagPlaceholder:e.maxTagPlaceholder||o.maxTagPlaceholder,placement:M.value,showArrow:fe||ye}),v(v({},o),{treeCheckable:()=>f("span",{class:`${u.value}-tree-checkbox-inner`},null)}))))}}}),VS=Zh,_oe=v(qd,{TreeNode:Zh,SHOW_ALL:kZ,SHOW_PARENT:B6,SHOW_CHILD:Qh,install:e=>(e.component(qd.name,qd),e.component(VS.displayName,VS),e)}),Qd=()=>({format:String,showNow:Ce(),showHour:Ce(),showMinute:Ce(),showSecond:Ce(),use12Hours:Ce(),hourStep:Number,minuteStep:Number,secondStep:Number,hideDisabledOptions:Ce(),popupClassName:String,status:je()});function ZZ(e){const t=m3(e,v(v({},Qd()),{order:{type:Boolean,default:!0}})),{TimePicker:n,RangePicker:o}=t,r=J({name:"ATimePicker",inheritAttrs:!1,props:v(v(v(v({},qs()),v3()),Qd()),{addon:{type:Function}}),slots:Object,setup(l,i){let{slots:s,expose:u,emit:c,attrs:d}=i;const p=l,g=Ht();bt(!(s.addon||p.addon),"TimePicker","`addon` is deprecated. Please use `v-slot:renderExtraFooter` instead.");const m=Z();u({focus:()=>{var x;(x=m.value)===null||x===void 0||x.focus()},blur:()=>{var x;(x=m.value)===null||x===void 0||x.blur()}});const h=(x,C)=>{c("update:value",x),c("change",x,C),g.onFieldChange()},b=x=>{c("update:open",x),c("openChange",x)},y=x=>{c("focus",x)},S=x=>{c("blur",x),g.onFieldBlur()},$=x=>{c("ok",x)};return()=>{const{id:x=g.id.value}=p;return f(n,N(N(N({},d),qe(p,["onUpdate:value","onUpdate:open"])),{},{id:x,dropdownClassName:p.popupClassName,mode:void 0,ref:m,renderExtraFooter:p.addon||s.addon||p.renderExtraFooter||s.renderExtraFooter,onChange:h,onOpenChange:b,onFocus:y,onBlur:S,onOk:$}),s)}}}),a=J({name:"ATimeRangePicker",inheritAttrs:!1,props:v(v(v(v({},qs()),g3()),Qd()),{order:{type:Boolean,default:!0}}),slots:Object,setup(l,i){let{slots:s,expose:u,emit:c,attrs:d}=i;const p=l,g=Z(),m=Ht();u({focus:()=>{var O;(O=g.value)===null||O===void 0||O.focus()},blur:()=>{var O;(O=g.value)===null||O===void 0||O.blur()}});const h=(O,w)=>{c("update:value",O),c("change",O,w),m.onFieldChange()},b=O=>{c("update:open",O),c("openChange",O)},y=O=>{c("focus",O)},S=O=>{c("blur",O),m.onFieldBlur()},$=(O,w)=>{c("panelChange",O,w)},x=O=>{c("ok",O)},C=(O,w,M)=>{c("calendarChange",O,w,M)};return()=>{const{id:O=m.id.value}=p;return f(o,N(N(N({},d),qe(p,["onUpdate:open","onUpdate:value"])),{},{id:O,dropdownClassName:p.popupClassName,picker:"time",mode:void 0,ref:g,onChange:h,onOpenChange:b,onFocus:y,onBlur:S,onPanelChange:$,onOk:x,onCalendarChange:C}),s)}}});return{TimePicker:r,TimeRangePicker:a}}const{TimePicker:Ui,TimeRangePicker:Zd}=ZZ(vw),Doe=v(Ui,{TimePicker:Ui,TimeRangePicker:Zd,install:e=>(e.component(Ui.name,Ui),e.component(Zd.name,Zd),e)});var JZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};const eJ=JZ;function WS(e){for(var t=1;t{const{sizeMarginHeadingVerticalEnd:r,fontWeightStrong:a}=o;return{marginBottom:r,color:n,fontWeight:a,fontSize:e,lineHeight:t}},rJ=e=>{const t=[1,2,3,4,5],n={};return t.forEach(o=>{n[` + h${o}&, + div&-h${o}, + div&-h${o} > textarea, + h${o} + `]=oJ(e[`fontSizeHeading${o}`],e[`lineHeightHeading${o}`],e.colorTextHeading,e)}),n},aJ=e=>{const{componentCls:t}=e;return{"a&, a":v(v({},Pv(e)),{textDecoration:e.linkDecoration,"&:active, &:hover":{textDecoration:e.linkHoverDecoration},[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},lJ=()=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:pM[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),iJ=e=>{const{componentCls:t}=e,o=fi(e).inputPaddingVertical+1;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:-e.paddingSM,marginTop:-o,marginBottom:`calc(1em - ${o}px)`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.marginXS+2,insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},sJ=e=>({"&-copy-success":{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}}}),cJ=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-single-line":{whiteSpace:"nowrap"},"&-ellipsis-single-line":{overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),uJ=e=>{const{componentCls:t,sizeMarginHeadingVerticalStart:n}=e;return{[t]:v(v(v(v(v(v(v(v(v({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},rJ(e)),{[` + & + h1${t}, + & + h2${t}, + & + h3${t}, + & + h4${t}, + & + h5${t} + `]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),lJ()),aJ(e)),{[` + ${t}-expand, + ${t}-edit, + ${t}-copy + `]:v(v({},Pv(e)),{marginInlineStart:e.marginXXS})}),iJ(e)),sJ(e)),cJ()),{"&-rtl":{direction:"rtl"}})}},L6=Qe("Typography",e=>[uJ(e)],{sizeMarginHeadingVerticalStart:"1.2em",sizeMarginHeadingVerticalEnd:"0.5em"}),dJ=()=>({prefixCls:String,value:String,maxlength:Number,autoSize:{type:[Boolean,Object]},onSave:Function,onCancel:Function,onEnd:Function,onChange:Function,originContent:String,direction:String,component:String}),fJ=J({compatConfig:{MODE:3},name:"Editable",inheritAttrs:!1,props:dJ(),setup(e,t){let{emit:n,slots:o,attrs:r}=t;const{prefixCls:a}=Rr(e),l=vt({current:e.value||"",lastKeyCode:void 0,inComposition:!1,cancelFlag:!1});ue(()=>e.value,S=>{l.current=S});const i=Z();Ve(()=>{var S;if(i.value){const $=(S=i.value)===null||S===void 0?void 0:S.resizableTextArea,x=$==null?void 0:$.textArea;x.focus();const{length:C}=x.value;x.setSelectionRange(C,C)}});function s(S){i.value=S}function u(S){let{target:{value:$}}=S;l.current=$.replace(/[\r\n]/g,""),n("change",l.current)}function c(){l.inComposition=!0}function d(){l.inComposition=!1}function p(S){const{keyCode:$}=S;$===$e.ENTER&&S.preventDefault(),!l.inComposition&&(l.lastKeyCode=$)}function g(S){const{keyCode:$,ctrlKey:x,altKey:C,metaKey:O,shiftKey:w}=S;l.lastKeyCode===$&&!l.inComposition&&!x&&!C&&!O&&!w&&($===$e.ENTER?(h(),n("end")):$===$e.ESC&&(l.current=e.originContent,n("cancel")))}function m(){h()}function h(){n("save",l.current.trim())}const[b,y]=L6(a);return()=>{const S=te({[`${a.value}`]:!0,[`${a.value}-edit-content`]:!0,[`${a.value}-rtl`]:e.direction==="rtl",[e.component?`${a.value}-${e.component}`:""]:!0},r.class,y.value);return b(f("div",N(N({},r),{},{class:S}),[f(P3,{ref:s,maxlength:e.maxlength,value:l.current,onChange:u,onKeydown:p,onKeyup:g,onCompositionstart:c,onCompositionend:d,onBlur:m,rows:1,autoSize:e.autoSize===void 0||e.autoSize},null),o.enterIcon?o.enterIcon({className:`${e.prefixCls}-edit-content-confirm`}):f(nJ,{class:`${e.prefixCls}-edit-content-confirm`},null)]))}}}),pJ=fJ,vJ=3,gJ=8;let fn;const Jd={padding:0,margin:0,display:"inline",lineHeight:"inherit"};function hJ(e){return Array.prototype.slice.apply(e).map(n=>`${n}: ${e.getPropertyValue(n)};`).join("")}function z6(e,t){e.setAttribute("aria-hidden","true");const n=window.getComputedStyle(t),o=hJ(n);e.setAttribute("style",o),e.style.position="fixed",e.style.left="0",e.style.height="auto",e.style.minHeight="auto",e.style.maxHeight="auto",e.style.paddingTop="0",e.style.paddingBottom="0",e.style.borderTopWidth="0",e.style.borderBottomWidth="0",e.style.top="-999999px",e.style.zIndex="-1000",e.style.textOverflow="clip",e.style.whiteSpace="normal",e.style.webkitLineClamp="none"}function mJ(e){const t=document.createElement("div");z6(t,e),t.appendChild(document.createTextNode("text")),document.body.appendChild(t);const n=t.getBoundingClientRect().height;return document.body.removeChild(t),n}const bJ=(e,t,n,o,r)=>{fn||(fn=document.createElement("div"),fn.setAttribute("aria-hidden","true"),document.body.appendChild(fn));const{rows:a,suffix:l=""}=t,i=mJ(e),s=Math.round(i*a*100)/100;z6(fn,e);const u=v8({render(){return f("div",{style:Jd},[f("span",{style:Jd},[n,l]),f("span",{style:Jd},[o])])}});u.mount(fn);function c(){return Math.round(fn.getBoundingClientRect().height*100)/100-.1<=s}if(c())return u.unmount(),{content:n,text:fn.innerHTML,ellipsis:!1};const d=Array.prototype.slice.apply(fn.childNodes[0].childNodes[0].cloneNode(!0).childNodes).filter($=>{let{nodeType:x,data:C}=$;return x!==gJ&&C!==""}),p=Array.prototype.slice.apply(fn.childNodes[0].childNodes[1].cloneNode(!0).childNodes);u.unmount();const g=[];fn.innerHTML="";const m=document.createElement("span");fn.appendChild(m);const h=document.createTextNode(r+l);m.appendChild(h),p.forEach($=>{fn.appendChild($)});function b($){m.insertBefore($,h)}function y($,x){let C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,O=arguments.length>3&&arguments[3]!==void 0?arguments[3]:x.length,w=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;const M=Math.floor((C+O)/2),I=x.slice(0,M);if($.textContent=I,C>=O-1)for(let _=O;_>=C;_-=1){const D=x.slice(0,_);if($.textContent=D,c()||!D)return _===x.length?{finished:!1,vNode:x}:{finished:!0,vNode:D}}return c()?y($,x,M,O,M):y($,x,C,M,w)}function S($){if($.nodeType===vJ){const C=$.textContent||"",O=document.createTextNode(C);return b(O),y(O,C)}return{finished:!1,vNode:null}}return d.some($=>{const{finished:x,vNode:C}=S($);return C&&g.push(C),x}),{content:g,text:fn.innerHTML,ellipsis:!0}};var yJ=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({prefixCls:String,direction:String,component:String}),On=J({name:"ATypography",inheritAttrs:!1,props:SJ(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:a}=Ee("typography",e),[l,i]=L6(r);return()=>{var s;const u=v(v({},e),o),{prefixCls:c,direction:d,component:p="article"}=u,g=yJ(u,["prefixCls","direction","component"]);return l(f(p,N(N({},g),{},{class:te(r.value,{[`${r.value}-rtl`]:a.value==="rtl"},o.class,i.value)}),{default:()=>[(s=n.default)===null||s===void 0?void 0:s.call(n)]}))}}}),$J=()=>{const e=document.getSelection();if(!e.rangeCount)return function(){};let t=document.activeElement;const n=[];for(let o=0;o"u"){s&&console.warn("unable to use e.clipboardData"),s&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();const d=KS[t.format]||KS.default;window.clipboardData.setData(d,e)}else c.clipboardData.clearData(),c.clipboardData.setData(t.format,e);t.onCopy&&(c.preventDefault(),t.onCopy(c.clipboardData))}),document.body.appendChild(l),r.selectNodeContents(l),a.addRange(r),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");i=!0}catch(u){s&&console.error("unable to copy using execCommand: ",u),s&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),i=!0}catch(c){s&&console.error("unable to copy using clipboardData: ",c),s&&console.error("falling back to prompt"),n=xJ("message"in t?t.message:CJ),window.prompt(n,e)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(r):a.removeAllRanges()),l&&document.body.removeChild(l),o()}return i}var OJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};const PJ=OJ;function GS(e){for(var t=1;t({editable:{type:[Boolean,Object],default:void 0},copyable:{type:[Boolean,Object],default:void 0},prefixCls:String,component:String,type:String,disabled:{type:Boolean,default:void 0},ellipsis:{type:[Boolean,Object],default:void 0},code:{type:Boolean,default:void 0},mark:{type:Boolean,default:void 0},underline:{type:Boolean,default:void 0},delete:{type:Boolean,default:void 0},strong:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},content:String,"onUpdate:content":Function}),kJ=J({compatConfig:{MODE:3},name:"TypographyBase",inheritAttrs:!1,props:Si(),setup(e,t){let{slots:n,attrs:o,emit:r}=t;const{prefixCls:a,direction:l}=Ee("typography",e),i=vt({copied:!1,ellipsisText:"",ellipsisContent:null,isEllipsis:!1,expanded:!1,clientRendered:!1,expandStr:"",copyStr:"",copiedStr:"",editStr:"",copyId:void 0,rafId:void 0,prevProps:void 0,originContent:""}),s=Z(),u=Z(),c=P(()=>{const T=e.ellipsis;return T?v({rows:1,expandable:!1},typeof T=="object"?T:null):{}});Ve(()=>{i.clientRendered=!0,M()}),Je(()=>{clearTimeout(i.copyId),We.cancel(i.rafId)}),ue([()=>c.value.rows,()=>e.content],()=>{lt(()=>{O()})},{flush:"post",deep:!0}),Le(()=>{e.content===void 0&&(yt(!e.editable),yt(!e.ellipsis))});function d(){var T;return e.ellipsis||e.editable?e.content:(T=Pn(s.value))===null||T===void 0?void 0:T.innerText}function p(T){const{onExpand:A}=c.value;i.expanded=!0,A==null||A(T)}function g(T){T.preventDefault(),i.originContent=e.content,C(!0)}function m(T){h(T),C(!1)}function h(T){const{onChange:A}=S.value;T!==e.content&&(r("update:content",T),A==null||A(T))}function b(){var T,A;(A=(T=S.value).onCancel)===null||A===void 0||A.call(T),C(!1)}function y(T){T.preventDefault(),T.stopPropagation();const{copyable:A}=e,R=v({},typeof A=="object"?A:null);R.text===void 0&&(R.text=d()),wJ(R.text||""),i.copied=!0,lt(()=>{R.onCopy&&R.onCopy(T),i.copyId=setTimeout(()=>{i.copied=!1},3e3)})}const S=P(()=>{const T=e.editable;return T?v({},typeof T=="object"?T:null):{editing:!1}}),[$,x]=Ot(!1,{value:P(()=>S.value.editing)});function C(T){const{onStart:A}=S.value;T&&A&&A(),x(T)}ue($,T=>{var A;T||(A=u.value)===null||A===void 0||A.focus()},{flush:"post"});function O(T){if(T){const{width:A,height:R}=T;if(!A||!R)return}We.cancel(i.rafId),i.rafId=We(()=>{M()})}const w=P(()=>{const{rows:T,expandable:A,suffix:R,onEllipsis:E,tooltip:k}=c.value;return R||k||e.editable||e.copyable||A||E?!1:T===1?NJ:RJ}),M=()=>{const{ellipsisText:T,isEllipsis:A}=i,{rows:R,suffix:E,onEllipsis:k}=c.value;if(!R||R<0||!Pn(s.value)||i.expanded||e.content===void 0||w.value)return;const{content:B,text:L,ellipsis:j}=bJ(Pn(s.value),{rows:R,suffix:E},e.content,H(!0),US);(T!==L||i.isEllipsis!==j)&&(i.ellipsisText=L,i.ellipsisContent=B,i.isEllipsis=j,A!==j&&k&&k(j))};function I(T,A){let{mark:R,code:E,underline:k,delete:B,strong:L,keyboard:j}=T,K=A;function G(U,X){if(!U)return;const ee=function(){return K}();K=f(X,null,{default:()=>[ee]})}return G(L,"strong"),G(k,"u"),G(B,"del"),G(E,"code"),G(R,"mark"),G(j,"kbd"),K}function _(T){const{expandable:A,symbol:R}=c.value;if(!A||!T&&(i.expanded||!i.isEllipsis))return null;const E=(n.ellipsisSymbol?n.ellipsisSymbol():R)||i.expandStr;return f("a",{key:"expand",class:`${a.value}-expand`,onClick:p,"aria-label":i.expandStr},[E])}function D(){if(!e.editable)return;const{tooltip:T,triggerType:A=["icon"]}=e.editable,R=n.editableIcon?n.editableIcon():f(DJ,{role:"button"},null),E=n.editableTooltip?n.editableTooltip():i.editStr,k=typeof E=="string"?E:"";return A.indexOf("icon")!==-1?f(oo,{key:"edit",title:T===!1?"":E},{default:()=>[f(Yy,{ref:u,class:`${a.value}-edit`,onClick:g,"aria-label":k},{default:()=>[R]})]}):null}function F(){if(!e.copyable)return;const{tooltip:T}=e.copyable,A=i.copied?i.copiedStr:i.copyStr,R=n.copyableTooltip?n.copyableTooltip({copied:i.copied}):A,E=typeof R=="string"?R:"",k=i.copied?f(tg,null,null):f(TJ,null,null),B=n.copyableIcon?n.copyableIcon({copied:!!i.copied}):k;return f(oo,{key:"copy",title:T===!1?"":R},{default:()=>[f(Yy,{class:[`${a.value}-copy`,{[`${a.value}-copy-success`]:i.copied}],onClick:y,"aria-label":E},{default:()=>[B]})]})}function z(){const{class:T,style:A}=o,{maxlength:R,autoSize:E,onEnd:k}=S.value;return f(pJ,{class:T,style:A,prefixCls:a.value,value:e.content,originContent:i.originContent,maxlength:R,autoSize:E,onSave:m,onChange:h,onCancel:b,onEnd:k,direction:l.value,component:e.component},{enterIcon:n.editableEnterIcon})}function H(T){return[_(T),D(),F()].filter(A=>A)}return()=>{var T;const{triggerType:A=["icon"]}=S.value,R=e.ellipsis||e.editable?e.content!==void 0?e.content:(T=n.default)===null||T===void 0?void 0:T.call(n):n.default?n.default():e.content;return $.value?z():f(Sv,{componentName:"Text",children:E=>{const k=v(v({},e),o),{type:B,disabled:L,content:j,class:K,style:G}=k,U=AJ(k,["type","disabled","content","class","style"]),{rows:X,suffix:ee,tooltip:oe}=c.value,{edit:Q,copy:W,copied:q,expand:re}=E;i.editStr=Q,i.copyStr=W,i.copiedStr=q,i.expandStr=re;const le=qe(U,["prefixCls","editable","copyable","ellipsis","mark","code","delete","underline","strong","keyboard","onUpdate:content"]),ye=w.value,me=X===1&&ye,ce=X&&X>1&&ye;let se=R,ie;if(X&&i.isEllipsis&&!i.expanded&&!ye){const{title:Ie}=U;let ge=Ie||"";!Ie&&(typeof R=="string"||typeof R=="number")&&(ge=String(R)),ge=ge==null?void 0:ge.slice(String(i.ellipsisContent||"").length),se=f(nt,null,[_t(i.ellipsisContent),f("span",{title:ge,"aria-hidden":"true"},[US]),ee])}else se=f(nt,null,[R,ee]);se=I(e,se);const fe=oe&&X&&i.isEllipsis&&!i.expanded&&!ye,Se=n.ellipsisTooltip?n.ellipsisTooltip():oe;return f(ho,{onResize:O,disabled:!X},{default:()=>[f(On,N({ref:s,class:[{[`${a.value}-${B}`]:B,[`${a.value}-disabled`]:L,[`${a.value}-ellipsis`]:X,[`${a.value}-single-line`]:X===1&&!i.isEllipsis,[`${a.value}-ellipsis-single-line`]:me,[`${a.value}-ellipsis-multiple-line`]:ce},K],style:v(v({},G),{WebkitLineClamp:ce?X:void 0}),"aria-label":ie,direction:l.value,onClick:A.indexOf("text")!==-1?g:()=>{}},le),{default:()=>[fe?f(oo,{title:oe===!0?R:Se},{default:()=>[f("span",null,[se])]}):se,H()]})]})}},null)}}}),$i=kJ;var BJ=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rqe(v(v({},Si()),{ellipsis:{type:Boolean,default:void 0}}),["component"]),bu=(e,t)=>{let{slots:n,attrs:o}=t;const r=v(v({},e),o),{ellipsis:a,rel:l}=r,i=BJ(r,["ellipsis","rel"]);yt();const s=v(v({},i),{rel:l===void 0&&i.target==="_blank"?"noopener noreferrer":l,ellipsis:!!a,component:"a"});return delete s.navigate,f($i,s,n)};bu.displayName="ATypographyLink";bu.inheritAttrs=!1;bu.props=FJ();const H6=bu,LJ=()=>qe(Si(),["component"]),yu=(e,t)=>{let{slots:n,attrs:o}=t;const r=v(v(v({},e),{component:"div"}),o);return f($i,r,n)};yu.displayName="ATypographyParagraph";yu.inheritAttrs=!1;yu.props=LJ();const j6=yu,zJ=()=>v(v({},qe(Si(),["component"])),{ellipsis:{type:[Boolean,Object],default:void 0}}),Su=(e,t)=>{let{slots:n,attrs:o}=t;const{ellipsis:r}=e;yt();const a=v(v(v({},e),{ellipsis:r&&typeof r=="object"?qe(r,["expandable","rows"]):r,component:"span"}),o);return f($i,a,n)};Su.displayName="ATypographyText";Su.inheritAttrs=!1;Su.props=zJ();const V6=Su;var HJ=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rv(v({},qe(Si(),["component","strong"])),{level:Number}),$u=(e,t)=>{let{slots:n,attrs:o}=t;const{level:r=1}=e,a=HJ(e,["level"]);let l;jJ.includes(r)?l=`h${r}`:(yt(),l="h1");const i=v(v(v({},a),{component:l}),o);return f($i,i,n)};$u.displayName="ATypographyTitle";$u.inheritAttrs=!1;$u.props=VJ();const W6=$u;On.Text=V6;On.Title=W6;On.Paragraph=j6;On.Link=H6;On.Base=$i;On.install=function(e){return e.component(On.name,On),e.component(On.Text.displayName,V6),e.component(On.Title.displayName,W6),e.component(On.Paragraph.displayName,j6),e.component(On.Link.displayName,H6),e};function WJ(e,t){const n=`cannot ${e.method} ${e.action} ${t.status}'`,o=new Error(n);return o.status=t.status,o.method=e.method,o.url=e.action,o}function YS(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function KJ(e){const t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(a){a.total>0&&(a.percent=a.loaded/a.total*100),e.onProgress(a)});const n=new FormData;e.data&&Object.keys(e.data).forEach(r=>{const a=e.data[r];if(Array.isArray(a)){a.forEach(l=>{n.append(`${r}[]`,l)});return}n.append(r,a)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(a){e.onError(a)},t.onload=function(){return t.status<200||t.status>=300?e.onError(WJ(e,t),YS(t)):e.onSuccess(YS(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const o=e.headers||{};return o["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(o).forEach(r=>{o[r]!==null&&t.setRequestHeader(r,o[r])}),t.send(n),{abort(){t.abort()}}}const GJ=+new Date;let XJ=0;function ef(){return`vc-upload-${GJ}-${++XJ}`}const tf=(e,t)=>{if(e&&t){const n=Array.isArray(t)?t:t.split(","),o=e.name||"",r=e.type||"",a=r.replace(/\/.*$/,"");return n.some(l=>{const i=l.trim();if(/^\*(\/\*)?$/.test(l))return!0;if(i.charAt(0)==="."){const s=o.toLowerCase(),u=i.toLowerCase();let c=[u];return(u===".jpg"||u===".jpeg")&&(c=[".jpg",".jpeg"]),c.some(d=>s.endsWith(d))}return/\/\*$/.test(i)?a===i.replace(/\/.*$/,""):!!(r===i||/^\w+$/.test(i))})}return!0};function UJ(e,t){const n=e.createReader();let o=[];function r(){n.readEntries(a=>{const l=Array.prototype.slice.apply(a);o=o.concat(l),!l.length?t(o):r()})}r()}const YJ=(e,t,n)=>{const o=(r,a)=>{r.path=a||"",r.isFile?r.file(l=>{n(l)&&(r.fullPath&&!l.webkitRelativePath&&(Object.defineProperties(l,{webkitRelativePath:{writable:!0}}),l.webkitRelativePath=r.fullPath.replace(/^\//,""),Object.defineProperties(l,{webkitRelativePath:{writable:!1}})),t([l]))}):r.isDirectory&&UJ(r,l=>{l.forEach(i=>{o(i,`${a}${r.name}/`)})})};e.forEach(r=>{o(r.webkitGetAsEntry())})},qJ=YJ,K6=()=>({capture:[Boolean,String],multipart:{type:Boolean,default:void 0},name:String,disabled:{type:Boolean,default:void 0},componentTag:String,action:[String,Function],method:String,directory:{type:Boolean,default:void 0},data:[Object,Function],headers:Object,accept:String,multiple:{type:Boolean,default:void 0},onBatchStart:Function,onReject:Function,onStart:Function,onError:Function,onSuccess:Function,onProgress:Function,beforeUpload:Function,customRequest:Function,withCredentials:{type:Boolean,default:void 0},openFileDialogOnClick:{type:Boolean,default:void 0},prefixCls:String,id:String,onMouseenter:Function,onMouseleave:Function,onClick:Function});var QJ=function(e,t,n,o){function r(a){return a instanceof n?a:new n(function(l){l(a)})}return new(n||(n=Promise))(function(a,l){function i(c){try{u(o.next(c))}catch(d){l(d)}}function s(c){try{u(o.throw(c))}catch(d){l(d)}}function u(c){c.done?a(c.value):r(c.value).then(i,s)}u((o=o.apply(e,t||[])).next())})},ZJ=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rQJ(this,void 0,void 0,function*(){const{beforeUpload:x}=e;let C=S;if(x){try{C=yield x(S,$)}catch{C=!1}if(C===!1)return{origin:S,parsedFile:null,action:null,data:null}}const{action:O}=e;let w;typeof O=="function"?w=yield O(S):w=O;const{data:M}=e;let I;typeof M=="function"?I=yield M(S):I=M;const _=(typeof C=="object"||typeof C=="string")&&C?C:S;let D;_ instanceof File?D=_:D=new File([_],S.name,{type:S.type});const F=D;return F.uid=S.uid,{origin:S,data:I,parsedFile:F,action:w}}),c=S=>{let{data:$,origin:x,action:C,parsedFile:O}=S;if(!s)return;const{onStart:w,customRequest:M,name:I,headers:_,withCredentials:D,method:F}=e,{uid:z}=x,H=M||KJ,T={action:C,filename:I,data:$,file:O,headers:_,withCredentials:D,method:F||"post",onProgress:A=>{const{onProgress:R}=e;R==null||R(A,O)},onSuccess:(A,R)=>{const{onSuccess:E}=e;E==null||E(A,O,R),delete l[z]},onError:(A,R)=>{const{onError:E}=e;E==null||E(A,R,O),delete l[z]}};w(x),l[z]=H(T)},d=()=>{a.value=ef()},p=S=>{if(S){const $=S.uid?S.uid:S;l[$]&&l[$].abort&&l[$].abort(),delete l[$]}else Object.keys(l).forEach($=>{l[$]&&l[$].abort&&l[$].abort(),delete l[$]})};Ve(()=>{s=!0}),Je(()=>{s=!1,p()});const g=S=>{const $=[...S],x=$.map(C=>(C.uid=ef(),u(C,$)));Promise.all(x).then(C=>{const{onBatchStart:O}=e;O==null||O(C.map(w=>{let{origin:M,parsedFile:I}=w;return{file:M,parsedFile:I}})),C.filter(w=>w.parsedFile!==null).forEach(w=>{c(w)})})},m=S=>{const{accept:$,directory:x}=e,{files:C}=S.target,O=[...C].filter(w=>!x||tf(w,$));g(O),d()},h=S=>{const $=i.value;if(!$)return;const{onClick:x}=e;$.click(),x&&x(S)},b=S=>{S.key==="Enter"&&h(S)},y=S=>{const{multiple:$}=e;if(S.preventDefault(),S.type!=="dragover")if(e.directory)qJ(Array.prototype.slice.call(S.dataTransfer.items),g,x=>tf(x,e.accept));else{const x=oT(Array.prototype.slice.call(S.dataTransfer.files),w=>tf(w,e.accept));let C=x[0];const O=x[1];$===!1&&(C=C.slice(0,1)),g(C),O.length&&e.onReject&&e.onReject(O)}};return r({abort:p}),()=>{var S;const{componentTag:$,prefixCls:x,disabled:C,id:O,multiple:w,accept:M,capture:I,directory:_,openFileDialogOnClick:D,onMouseenter:F,onMouseleave:z}=e,H=ZJ(e,["componentTag","prefixCls","disabled","id","multiple","accept","capture","directory","openFileDialogOnClick","onMouseenter","onMouseleave"]),T={[x]:!0,[`${x}-disabled`]:C,[o.class]:!!o.class},A=_?{directory:"directory",webkitdirectory:"webkitdirectory"}:{};return f($,N(N({},C?{}:{onClick:D?h:()=>{},onKeydown:D?b:()=>{},onMouseenter:F,onMouseleave:z,onDrop:y,onDragover:y,tabindex:"0"}),{},{class:T,role:"button",style:o.style}),{default:()=>[f("input",N(N(N({},dr(H,{aria:!0,data:!0})),{},{id:O,type:"file",ref:i,onClick:E=>E.stopPropagation(),onCancel:E=>E.stopPropagation(),key:a.value,style:{display:"none"},accept:M},A),{},{multiple:w,onChange:m},I!=null?{capture:I}:{}),null),(S=n.default)===null||S===void 0?void 0:S.call(n)]})}}});function nf(){}const qS=J({compatConfig:{MODE:3},name:"Upload",inheritAttrs:!1,props:rt(K6(),{componentTag:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:nf,onError:nf,onSuccess:nf,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0}),setup(e,t){let{slots:n,attrs:o,expose:r}=t;const a=Z();return r({abort:i=>{var s;(s=a.value)===null||s===void 0||s.abort(i)}}),()=>f(JJ,N(N(N({},e),o),{},{ref:a}),n)}});var eee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"};const tee=eee;function QS(e){for(var t=1;t{let{uid:a}=r;return a===e.uid});return o===-1?n.push(e):n[o]=e,n}function of(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(o=>o[n]===e[n])[0]}function pee(e,t){const n=e.uid!==void 0?"uid":"name",o=t.filter(r=>r[n]!==e[n]);return o.length===t.length?null:o}const vee=function(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),o=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(o)||[""])[0]},X6=e=>e.indexOf("image/")===0,gee=e=>{if(e.type&&!e.thumbUrl)return X6(e.type);const t=e.thumbUrl||e.url||"",n=vee(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(n)?!0:!(/^data:/.test(t)||n)},Qo=200;function hee(e){return new Promise(t=>{if(!e.type||!X6(e.type)){t("");return}const n=document.createElement("canvas");n.width=Qo,n.height=Qo,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${Qo}px; height: ${Qo}px; z-index: 9999; display: none;`,document.body.appendChild(n);const o=n.getContext("2d"),r=new Image;if(r.onload=()=>{const{width:a,height:l}=r;let i=Qo,s=Qo,u=0,c=0;a>l?(s=l*(Qo/a),c=-(s-i)/2):(i=a*(Qo/l),u=-(i-s)/2),o.drawImage(r,u,c,i,s);const d=n.toDataURL();document.body.removeChild(n),t(d)},r.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const a=new FileReader;a.addEventListener("load",()=>{a.result&&(r.src=a.result)}),a.readAsDataURL(e)}else r.src=window.URL.createObjectURL(e)})}var mee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};const bee=mee;function e$(e){for(var t=1;t({prefixCls:String,locale:Ne(void 0),file:Ne(),items:ht(),listType:je(),isImgUrl:de(),showRemoveIcon:Ce(),showDownloadIcon:Ce(),showPreviewIcon:Ce(),removeIcon:de(),downloadIcon:de(),previewIcon:de(),iconRender:de(),actionIconRender:de(),itemRender:de(),onPreview:de(),onClose:de(),onDownload:de(),progress:Ne()}),Cee=J({compatConfig:{MODE:3},name:"ListItem",inheritAttrs:!1,props:$ee(),setup(e,t){let{slots:n,attrs:o}=t;var r;const a=Y(!1),l=Y();Ve(()=>{l.value=setTimeout(()=>{a.value=!0},300)}),Je(()=>{clearTimeout(l.value)});const i=Y((r=e.file)===null||r===void 0?void 0:r.status);ue(()=>{var c;return(c=e.file)===null||c===void 0?void 0:c.status},c=>{c!=="removed"&&(i.value=c)});const{rootPrefixCls:s}=Ee("upload",e),u=P(()=>bo(`${s.value}-fade`));return()=>{var c,d;const{prefixCls:p,locale:g,listType:m,file:h,items:b,progress:y,iconRender:S=n.iconRender,actionIconRender:$=n.actionIconRender,itemRender:x=n.itemRender,isImgUrl:C,showPreviewIcon:O,showRemoveIcon:w,showDownloadIcon:M,previewIcon:I=n.previewIcon,removeIcon:_=n.removeIcon,downloadIcon:D=n.downloadIcon,onPreview:F,onDownload:z,onClose:H}=e,{class:T,style:A}=o,R=S({file:h});let E=f("div",{class:`${p}-text-icon`},[R]);if(m==="picture"||m==="picture-card")if(i.value==="uploading"||!h.thumbUrl&&!h.url){const le={[`${p}-list-item-thumbnail`]:!0,[`${p}-list-item-file`]:i.value!=="uploading"};E=f("div",{class:le},[R])}else{const le=C!=null&&C(h)?f("img",{src:h.thumbUrl||h.url,alt:h.name,class:`${p}-list-item-image`,crossorigin:h.crossOrigin},null):R,ye={[`${p}-list-item-thumbnail`]:!0,[`${p}-list-item-file`]:C&&!C(h)};E=f("a",{class:ye,onClick:me=>F(h,me),href:h.url||h.thumbUrl,target:"_blank",rel:"noopener noreferrer"},[le])}const k={[`${p}-list-item`]:!0,[`${p}-list-item-${i.value}`]:!0},B=typeof h.linkProps=="string"?JSON.parse(h.linkProps):h.linkProps,L=w?$({customIcon:_?_({file:h}):f(TZ,null,null),callback:()=>H(h),prefixCls:p,title:g.removeFile}):null,j=M&&i.value==="done"?$({customIcon:D?D({file:h}):f(See,null,null),callback:()=>z(h),prefixCls:p,title:g.downloadFile}):null,K=m!=="picture-card"&&f("span",{key:"download-delete",class:[`${p}-list-item-actions`,{picture:m==="picture"}]},[j,L]),G=`${p}-list-item-name`,U=h.url?[f("a",N(N({key:"view",target:"_blank",rel:"noopener noreferrer",class:G,title:h.name},B),{},{href:h.url,onClick:le=>F(h,le)}),[h.name]),K]:[f("span",{key:"view",class:G,onClick:le=>F(h,le),title:h.name},[h.name]),K],X={pointerEvents:"none",opacity:.5},ee=O?f("a",{href:h.url||h.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:h.url||h.thumbUrl?void 0:X,onClick:le=>F(h,le),title:g.previewFile},[I?I({file:h}):f(mh,null,null)]):null,oe=m==="picture-card"&&i.value!=="uploading"&&f("span",{class:`${p}-list-item-actions`},[ee,i.value==="done"&&j,L]),Q=f("div",{class:k},[E,U,oe,a.value&&f(rn,u.value,{default:()=>[Kt(f("div",{class:`${p}-list-item-progress`},["percent"in h?f(FU,N(N({},y),{},{type:"line",percent:h.percent}),null):null]),[[Wn,i.value==="uploading"]])]})]),W={[`${p}-list-item-container`]:!0,[`${T}`]:!!T},q=h.response&&typeof h.response=="string"?h.response:((c=h.error)===null||c===void 0?void 0:c.statusText)||((d=h.error)===null||d===void 0?void 0:d.message)||g.uploadError,re=i.value==="error"?f(oo,{title:q,getPopupContainer:le=>le.parentNode},{default:()=>[Q]}):Q;return f("div",{class:W,style:A},[x?x({originNode:re,file:h,fileList:b,actions:{download:z.bind(null,h),preview:F.bind(null,h),remove:H.bind(null,h)}}):re])}}}),xee=(e,t)=>{let{slots:n}=t;var o;return Tt((o=n.default)===null||o===void 0?void 0:o.call(n))[0]},wee=J({compatConfig:{MODE:3},name:"AUploadList",props:rt(fee(),{listType:"text",progress:{strokeWidth:2,showInfo:!1},showRemoveIcon:!0,showDownloadIcon:!1,showPreviewIcon:!0,previewFile:hee,isImageUrl:gee,items:[],appendActionVisible:!0}),setup(e,t){let{slots:n,expose:o}=t;const r=Y(!1);Ve(()=>{r.value==!0});const a=Y([]);ue(()=>e.items,function(){let h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];a.value=h.slice()},{immediate:!0,deep:!0}),Le(()=>{if(e.listType!=="picture"&&e.listType!=="picture-card")return;let h=!1;(e.items||[]).forEach((b,y)=>{typeof document>"u"||typeof window>"u"||!window.FileReader||!window.File||!(b.originFileObj instanceof File||b.originFileObj instanceof Blob)||b.thumbUrl!==void 0||(b.thumbUrl="",e.previewFile&&e.previewFile(b.originFileObj).then(S=>{const $=S||"";$!==b.thumbUrl&&(a.value[y].thumbUrl=$,h=!0)}))}),h&&k$(a)});const l=(h,b)=>{if(e.onPreview)return b==null||b.preventDefault(),e.onPreview(h)},i=h=>{typeof e.onDownload=="function"?e.onDownload(h):h.url&&window.open(h.url)},s=h=>{var b;(b=e.onRemove)===null||b===void 0||b.call(e,h)},u=h=>{let{file:b}=h;const y=e.iconRender||n.iconRender;if(y)return y({file:b,listType:e.listType});const S=b.status==="uploading",$=e.isImageUrl&&e.isImageUrl(b)?f(iee,null,null):f(dee,null,null);let x=S?f(Un,null,null):f(oee,null,null);return e.listType==="picture"?x=S?f(Un,null,null):$:e.listType==="picture-card"&&(x=S?e.locale.uploading:$),x},c=h=>{const{customIcon:b,callback:y,prefixCls:S,title:$}=h,x={type:"text",size:"small",title:$,onClick:()=>{y()},class:`${S}-list-item-action`};return kt(b)?f(qt,x,{icon:()=>b}):f(qt,x,{default:()=>[f("span",null,[b])]})};o({handlePreview:l,handleDownload:i});const{prefixCls:d,rootPrefixCls:p}=Ee("upload",e),g=P(()=>({[`${d.value}-list`]:!0,[`${d.value}-list-${e.listType}`]:!0})),m=P(()=>{const h=v({},Kc(`${p.value}-motion-collapse`));delete h.onAfterAppear,delete h.onAfterEnter,delete h.onAfterLeave;const b=v(v({},Mc(`${d.value}-${e.listType==="picture-card"?"animate-inline":"animate"}`)),{class:g.value,appear:r.value});return e.listType!=="picture-card"?v(v({},h),b):b});return()=>{const{listType:h,locale:b,isImageUrl:y,showPreviewIcon:S,showRemoveIcon:$,showDownloadIcon:x,removeIcon:C,previewIcon:O,downloadIcon:w,progress:M,appendAction:I,itemRender:_,appendActionVisible:D}=e,F=I==null?void 0:I(),z=a.value;return f(nc,N(N({},m.value),{},{tag:"div"}),{default:()=>[z.map(H=>{const{uid:T}=H;return f(Cee,{key:T,locale:b,prefixCls:d.value,file:H,items:z,progress:M,listType:h,isImgUrl:y,showPreviewIcon:S,showRemoveIcon:$,showDownloadIcon:x,onPreview:l,onDownload:i,onClose:s,removeIcon:C,previewIcon:O,downloadIcon:w,itemRender:_},v(v({},n),{iconRender:u,actionIconRender:c}))}),I?Kt(f(xee,{key:"__ant_upload_appendAction"},{default:()=>F}),[[Wn,!!D]]):null]})}}}),Oee=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:`${e.padding}px 0`},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${e.marginXXS}px`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{cursor:"not-allowed",[`p${t}-drag-icon ${n}, + p${t}-text, + p${t}-hint + `]:{color:e.colorTextDisabled}}}}}},Pee=Oee,Iee=e=>{const{componentCls:t,antCls:n,iconCls:o,fontSize:r,lineHeight:a}=e,l=`${t}-list-item`,i=`${l}-actions`,s=`${l}-action`,u=Math.round(r*a);return{[`${t}-wrapper`]:{[`${t}-list`]:v(v({},ro()),{lineHeight:e.lineHeight,[l]:{position:"relative",height:e.lineHeight*r,marginTop:e.marginXS,fontSize:r,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,"&:hover":{backgroundColor:e.controlItemBgHover},[`${l}-name`]:v(v({},mn),{padding:`0 ${e.paddingXS}px`,lineHeight:a,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[i]:{[s]:{opacity:0},[`${s}${n}-btn-sm`]:{height:u,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[` + ${s}:focus, + &.picture ${s} + `]:{opacity:1},[o]:{color:e.colorTextDescription,transition:`all ${e.motionDurationSlow}`},[`&:hover ${o}`]:{color:e.colorText}},[`${t}-icon ${o}`]:{color:e.colorTextDescription,fontSize:r},[`${l}-progress`]:{position:"absolute",bottom:-e.uploadProgressOffset,width:"100%",paddingInlineStart:r+e.paddingXS,fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${l}:hover ${s}`]:{opacity:1,color:e.colorText},[`${l}-error`]:{color:e.colorError,[`${l}-name, ${t}-icon ${o}`]:{color:e.colorError},[i]:{[`${o}, ${o}:hover`]:{color:e.colorError},[s]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Tee=Iee,t$=new Ue("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),n$=new Ue("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}}),Mee=e=>{const{componentCls:t}=e,n=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${n}-appear, ${n}-enter, ${n}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${n}-appear, ${n}-enter`]:{animationName:t$},[`${n}-leave`]:{animationName:n$}}},t$,n$]},Eee=Mee,_ee=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:o,uploadProgressOffset:r}=e,a=`${t}-list`,l=`${a}-item`;return{[`${t}-wrapper`]:{[`${a}${a}-picture, ${a}${a}-picture-card`]:{[l]:{position:"relative",height:o+e.lineWidth*2+e.paddingXS*2,padding:e.paddingXS,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${l}-thumbnail`]:v(v({},mn),{width:o,height:o,lineHeight:`${o+e.paddingSM}px`,textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${l}-progress`]:{bottom:r,width:`calc(100% - ${e.paddingSM*2}px)`,marginTop:0,paddingInlineStart:o+e.paddingXS}},[`${l}-error`]:{borderColor:e.colorError,[`${l}-thumbnail ${n}`]:{"svg path[fill='#e6f7ff']":{fill:e.colorErrorBg},"svg path[fill='#1890ff']":{fill:e.colorError}}},[`${l}-uploading`]:{borderStyle:"dashed",[`${l}-name`]:{marginBottom:r}}}}}},Dee=e=>{const{componentCls:t,iconCls:n,fontSizeLG:o,colorTextLightSolid:r}=e,a=`${t}-list`,l=`${a}-item`,i=e.uploadPicCardSize;return{[`${t}-wrapper${t}-picture-card-wrapper`]:v(v({},ro()),{display:"inline-block",width:"100%",[`${t}${t}-select`]:{width:i,height:i,marginInlineEnd:e.marginXS,marginBottom:e.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${a}${a}-picture-card`]:{[`${a}-item-container`]:{display:"inline-block",width:i,height:i,marginBlock:`0 ${e.marginXS}px`,marginInline:`0 ${e.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[l]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${e.paddingXS*2}px)`,height:`calc(100% - ${e.paddingXS*2}px)`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${l}:hover`]:{[`&::before, ${l}-actions`]:{opacity:1}},[`${l}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`${n}-eye, ${n}-download, ${n}-delete`]:{zIndex:10,width:o,margin:`0 ${e.marginXXS}px`,fontSize:o,cursor:"pointer",transition:`all ${e.motionDurationSlow}`}},[`${l}-actions, ${l}-actions:hover`]:{[`${n}-eye, ${n}-download, ${n}-delete`]:{color:new st(r).setAlpha(.65).toRgbString(),"&:hover":{color:r}}},[`${l}-thumbnail, ${l}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${l}-name`]:{display:"none",textAlign:"center"},[`${l}-file + ${l}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${e.paddingXS*2}px)`},[`${l}-uploading`]:{[`&${l}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${l}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${e.paddingXS*2}px)`,paddingInlineStart:0}}})}},Aee=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},Ree=Aee,Nee=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:v(v({},et(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},kee=Qe("Upload",e=>{const{fontSizeHeading3:t,fontSize:n,lineHeight:o,lineWidth:r,controlHeightLG:a}=e,l=Math.round(n*o),i=ze(e,{uploadThumbnailSize:t*2,uploadProgressOffset:l/2+r,uploadPicCardSize:a*2.55});return[Nee(i),Pee(i),_ee(i),Dee(i),Tee(i),Eee(i),Ree(i),jc(i)]});var Bee=function(e,t,n,o){function r(a){return a instanceof n?a:new n(function(l){l(a)})}return new(n||(n=Promise))(function(a,l){function i(c){try{u(o.next(c))}catch(d){l(d)}}function s(c){try{u(o.throw(c))}catch(d){l(d)}}function u(c){c.done?a(c.value):r(c.value).then(i,s)}u((o=o.apply(e,t||[])).next())})},Fee=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{var D;return(D=s.value)!==null&&D!==void 0?D:d.value}),[g,m]=Ot(e.defaultFileList||[],{value:Be(e,"fileList"),postState:D=>{const F=Date.now();return(D??[]).map((z,H)=>(!z.uid&&!Object.isFrozen(z)&&(z.uid=`__AUTO__${F}_${H}__`),z))}}),h=Z("drop"),b=Z(null);Ve(()=>{bt(e.fileList!==void 0||o.value===void 0,"Upload","`value` is not a valid prop, do you mean `fileList`?"),bt(e.transformFile===void 0,"Upload","`transformFile` is deprecated. Please use `beforeUpload` directly."),bt(e.remove===void 0,"Upload","`remove` props is deprecated. Please use `remove` event.")});const y=(D,F,z)=>{var H,T;let A=[...F];e.maxCount===1?A=A.slice(-1):e.maxCount&&(A=A.slice(0,e.maxCount)),m(A);const R={file:D,fileList:A};z&&(R.event=z),(H=e["onUpdate:fileList"])===null||H===void 0||H.call(e,R.fileList),(T=e.onChange)===null||T===void 0||T.call(e,R),a.onFieldChange()},S=(D,F)=>Bee(this,void 0,void 0,function*(){const{beforeUpload:z,transformFile:H}=e;let T=D;if(z){const A=yield z(D,F);if(A===!1)return!1;if(delete D[bl],A===bl)return Object.defineProperty(D,bl,{value:!0,configurable:!0}),!1;typeof A=="object"&&A&&(T=A)}return H&&(T=yield H(T)),T}),$=D=>{const F=D.filter(T=>!T.file[bl]);if(!F.length)return;const z=F.map(T=>Yi(T.file));let H=[...g.value];z.forEach(T=>{H=qi(T,H)}),z.forEach((T,A)=>{let R=T;if(F[A].parsedFile)T.status="uploading";else{const{originFileObj:E}=T;let k;try{k=new File([E],E.name,{type:E.type})}catch{k=new Blob([E],{type:E.type}),k.name=E.name,k.lastModifiedDate=new Date,k.lastModified=new Date().getTime()}k.uid=T.uid,R=k}y(R,H)})},x=(D,F,z)=>{try{typeof D=="string"&&(D=JSON.parse(D))}catch{}if(!of(F,g.value))return;const H=Yi(F);H.status="done",H.percent=100,H.response=D,H.xhr=z;const T=qi(H,g.value);y(H,T)},C=(D,F)=>{if(!of(F,g.value))return;const z=Yi(F);z.status="uploading",z.percent=D.percent;const H=qi(z,g.value);y(z,H,D)},O=(D,F,z)=>{if(!of(z,g.value))return;const H=Yi(z);H.error=D,H.response=F,H.status="error";const T=qi(H,g.value);y(H,T)},w=D=>{let F;const z=e.onRemove||e.remove;Promise.resolve(typeof z=="function"?z(D):z).then(H=>{var T,A;if(H===!1)return;const R=pee(D,g.value);R&&(F=v(v({},D),{status:"removed"}),(T=g.value)===null||T===void 0||T.forEach(E=>{const k=F.uid!==void 0?"uid":"name";E[k]===F[k]&&!Object.isFrozen(E)&&(E.status="removed")}),(A=b.value)===null||A===void 0||A.abort(F),y(F,R))})},M=D=>{var F;h.value=D.type,D.type==="drop"&&((F=e.onDrop)===null||F===void 0||F.call(e,D))};r({onBatchStart:$,onSuccess:x,onProgress:C,onError:O,fileList:g,upload:b});const[I]=$o("Upload",Gn.Upload,P(()=>e.locale)),_=(D,F)=>{const{removeIcon:z,previewIcon:H,downloadIcon:T,previewFile:A,onPreview:R,onDownload:E,isImageUrl:k,progress:B,itemRender:L,iconRender:j,showUploadList:K}=e,{showDownloadIcon:G,showPreviewIcon:U,showRemoveIcon:X}=typeof K=="boolean"?{}:K;return K?f(wee,{prefixCls:l.value,listType:e.listType,items:g.value,previewFile:A,onPreview:R,onDownload:E,onRemove:w,showRemoveIcon:!p.value&&X,showPreviewIcon:U,showDownloadIcon:G,removeIcon:z,previewIcon:H,downloadIcon:T,iconRender:j,locale:I.value,isImageUrl:k,progress:B,itemRender:L,appendActionVisible:F,appendAction:D},v({},n)):D==null?void 0:D()};return()=>{var D,F,z;const{listType:H,type:T}=e,{class:A,style:R}=o,E=Fee(o,["class","style"]),k=v(v(v({onBatchStart:$,onError:O,onProgress:C,onSuccess:x},E),e),{id:(D=e.id)!==null&&D!==void 0?D:a.id.value,prefixCls:l.value,beforeUpload:S,onChange:void 0,disabled:p.value});delete k.remove,(!n.default||p.value)&&delete k.id;const B={[`${l.value}-rtl`]:i.value==="rtl"};if(T==="drag"){const G=te(l.value,{[`${l.value}-drag`]:!0,[`${l.value}-drag-uploading`]:g.value.some(U=>U.status==="uploading"),[`${l.value}-drag-hover`]:h.value==="dragover",[`${l.value}-disabled`]:p.value,[`${l.value}-rtl`]:i.value==="rtl"},o.class,c.value);return u(f("span",N(N({},o),{},{class:te(`${l.value}-wrapper`,B,A,c.value)}),[f("div",{class:G,onDrop:M,onDragover:M,onDragleave:M,style:o.style},[f(qS,N(N({},k),{},{ref:b,class:`${l.value}-btn`}),N({default:()=>[f("div",{class:`${l.value}-drag-container`},[(F=n.default)===null||F===void 0?void 0:F.call(n)])]},n))]),_()]))}const L=te(l.value,{[`${l.value}-select`]:!0,[`${l.value}-select-${H}`]:!0,[`${l.value}-disabled`]:p.value,[`${l.value}-rtl`]:i.value==="rtl"}),j=mt((z=n.default)===null||z===void 0?void 0:z.call(n)),K=G=>f("div",{class:L,style:G},[f(qS,N(N({},k),{},{ref:b}),n)]);return u(H==="picture-card"?f("span",N(N({},o),{},{class:te(`${l.value}-wrapper`,`${l.value}-picture-card-wrapper`,B,o.class,c.value)}),[_(K,!!(j&&j.length))]):f("span",N(N({},o),{},{class:te(`${l.value}-wrapper`,B,o.class,c.value)}),[K(j&&j.length?void 0:{display:"none"}),_()]))}}});var o$=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{const{height:r}=e,a=o$(e,["height"]),{style:l}=o,i=o$(o,["style"]),s=v(v(v({},a),i),{type:"drag",style:v(v({},l),{height:typeof r=="number"?`${r}px`:r})});return f(ys,s,n)}}}),Aoe=v(ys,{Dragger:rf,LIST_IGNORE:bl,install(e){return e.component(ys.name,ys),e.component(rf.name,rf),e}});var Lee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"}}]},name:"arrow-down",theme:"outlined"};const zee=Lee;function r$(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}function mne(e,t){if(e==null)return{};var n={},o=Object.keys(e),r,a;for(a=0;a=0)&&(n[r]=e[r]);return n}var Cu=function(t,n){var o,r=n.attrs,a=n.slots,l=Qi({},t,r),i=l.class,s=l.component,u=l.viewBox,c=l.spin,d=l.rotate,p=l.tabindex,g=l.onClick,m=hne(l,gne),h=Uv(),b=h.prefixCls,y=h.rootClassName,S=a.default&&a.default(),$=S&&S.length,x=a.component,C=(o={},Ss(o,y.value,!!y.value),Ss(o,b.value,!0),o),O=Ss({},"".concat(b.value,"-spin"),c===""||!!c),w=d?{msTransform:"rotate(".concat(d,"deg)"),transform:"rotate(".concat(d,"deg)")}:void 0,M=Qi({},ND,{viewBox:u,class:O,style:w});u||delete M.viewBox;var I=function(){return s?f(s,M,{default:function(){return[S]}}):x?x(M):$?(u||S.length===1&&S[0]&&S[0].type,f("svg",Qi({},M,{viewBox:u}),[S])):null},_=p;return _===void 0&&g&&(_=-1,m.tabindex=_),f("span",Qi({role:"img"},m,{onClick:g,class:[C,i]}),[I(),f(hx,null,null)])};Cu.props={spin:Boolean,rotate:Number,viewBox:String,ariaLabel:String};Cu.inheritAttrs=!1;Cu.displayName="Icon";const bne=Cu;var yne=["type"];function D$(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}function Cne(e,t){if(e==null)return{};var n={},o=Object.keys(e),r,a;for(a=0;a=0)&&(n[r]=e[r]);return n}var U6=new Set;function xne(e){return typeof e=="string"&&e.length&&!U6.has(e)}function tc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e[t];if(xne(n)){var o=document.createElement("script");o.setAttribute("src",n),o.setAttribute("data-namespace",n),e.length>t+1&&(o.onload=function(){tc(e,t+1)},o.onerror=function(){tc(e,t+1)}),U6.add(n),document.body.appendChild(o)}}function sre(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.scriptUrl,n=e.extraCommonProps,o=n===void 0?{}:n;typeof document<"u"&&typeof window<"u"&&typeof document.createElement=="function"&&(Array.isArray(t)?tc(t.reverse()):tc([t]));var r=function(l,i){var s=i.attrs,u=i.slots,c=D$({},l,s),d=c.type,p=$ne(c,yne),g=u.default&&u.default(),m=null;d&&(m=f("use",{"xlink:href":"#".concat(d)},null)),g&&g.length&&(m=g);var h=D$({},o,p);return f(bne,h,{default:function(){return[m]}})};return r.props={spin:Boolean,rotate:Number,type:String},r.inheritAttrs=!1,r.displayName="Iconfont",r}const Y6=["wrap","nowrap","wrap-reverse"],q6=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],Q6=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],wne=(e,t)=>{const n={};return Y6.forEach(o=>{n[`${e}-wrap-${o}`]=t.wrap===o}),n},One=(e,t)=>{const n={};return Q6.forEach(o=>{n[`${e}-align-${o}`]=t.align===o}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},Pne=(e,t)=>{const n={};return q6.forEach(o=>{n[`${e}-justify-${o}`]=t.justify===o}),n};function Ine(e,t){return te(v(v(v({},wne(e,t)),One(e,t)),Pne(e,t)))}const Tne=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},Mne=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},Ene=e=>{const{componentCls:t}=e,n={};return Y6.forEach(o=>{n[`${t}-wrap-${o}`]={flexWrap:o}}),n},_ne=e=>{const{componentCls:t}=e,n={};return Q6.forEach(o=>{n[`${t}-align-${o}`]={alignItems:o}}),n},Dne=e=>{const{componentCls:t}=e,n={};return q6.forEach(o=>{n[`${t}-justify-${o}`]={justifyContent:o}}),n},Ane=Qe("Flex",e=>{const t=ze(e,{flexGapSM:e.paddingXS,flexGap:e.padding,flexGapLG:e.paddingLG});return[Tne(t),Mne(t),Ene(t),_ne(t),Dne(t)]});function A$(e){return["small","middle","large"].includes(e)}const Rne=()=>({prefixCls:je(),vertical:Ce(),wrap:je(),justify:je(),align:je(),flex:Ge([Number,String]),gap:Ge([Number,String]),component:xt()});var Nne=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{var c;return[l.value,s.value,Ine(l.value,e),{[`${l.value}-rtl`]:a.value==="rtl",[`${l.value}-gap-${e.gap}`]:A$(e.gap),[`${l.value}-vertical`]:(c=e.vertical)!==null&&c!==void 0?c:r==null?void 0:r.value.vertical}]});return()=>{var c;const{flex:d,gap:p,component:g="div"}=e,m=Nne(e,["flex","gap","component"]),h={};return d&&(h.flex=d),p&&!A$(p)&&(h.gap=`${p}px`),i(f(g,N({class:[o.class,u.value],style:[o.style,h]},qe(m,["justify","wrap","align","vertical"])),{default:()=>[(c=n.default)===null||c===void 0?void 0:c.call(n)]}))}}}),cre=Vt(kne),Zo=(e,t)=>new st(e).setAlpha(t).toRgbString(),ca=(e,t)=>new st(e).lighten(t).toHexString(),Bne=e=>{const t=Bo(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},Fne=(e,t)=>{const n=e||"#000",o=t||"#fff";return{colorBgBase:n,colorTextBase:o,colorText:Zo(o,.85),colorTextSecondary:Zo(o,.65),colorTextTertiary:Zo(o,.45),colorTextQuaternary:Zo(o,.25),colorFill:Zo(o,.18),colorFillSecondary:Zo(o,.12),colorFillTertiary:Zo(o,.08),colorFillQuaternary:Zo(o,.04),colorBgElevated:ca(n,12),colorBgContainer:ca(n,8),colorBgLayout:ca(n,0),colorBgSpotlight:ca(n,26),colorBorder:ca(n,26),colorBorderSecondary:ca(n,19)}},Lne=(e,t)=>{const n=Object.keys(Ov).map(r=>{const a=Bo(e[r],{theme:"dark"});return new Array(10).fill(1).reduce((l,i,s)=>(l[`${r}-${s+1}`]=a[s],l),{})}).reduce((r,a)=>(r=v(v({},r),a),r),{}),o=t??wc(e);return v(v(v({},o),n),v2(e,{generateColorPalettes:Bne,generateNeutralColorPalettes:Fne}))},zne=Lne;function Hne(e){const{sizeUnit:t,sizeStep:n}=e,o=n-2;return{sizeXXL:t*(o+10),sizeXL:t*(o+6),sizeLG:t*(o+2),sizeMD:t*(o+2),sizeMS:t*(o+1),size:t*o,sizeSM:t*o,sizeXS:t*(o-1),sizeXXS:t*(o-1)}}const jne=(e,t)=>{const n=t??wc(e),o=n.fontSizeSM,r=n.controlHeight-4;return v(v(v(v(v({},n),Hne(t??e)),g2(o)),{controlHeight:r}),p2(v(v({},n),{controlHeight:r})))},Vne=jne;function Wne(){const[e,t,n]=Qr();return{theme:e,token:t,hashId:n}}const ure={defaultConfig:Es,defaultSeed:Es.token,useToken:Wne,defaultAlgorithm:wc,darkAlgorithm:zne,compactAlgorithm:Vne},Kne=[];function dre(e){var t;(t=document.querySelector("html"))==null||t.setAttribute("lang",e)}function fre(e){e(Kne)}function pre(e,t="lang"){const n={};return Object.keys(e).forEach(o=>{const r=e[o].default;let a=o.replace(`./${t}/`,"").replace(/^\.\//,"");const l=a.lastIndexOf(".");a=a.substring(0,l);const i=a.split("/"),s=i.shift(),u=i.join(".");s&&(u?(Au(n,s,n[s]||{}),Au(n[s],u,r)):Au(n,s,r||{}))}),n}const Gne={locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",yearFormat:"YYYY年",dayFormat:"D日",dateFormat:"YYYY年M月D日",dateTimeFormat:"YYYY年M月D日 HH时mm分ss秒",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪"},Xne=Gne,Une={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]},Z6=Une,J6={lang:v({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},Xne),timePickerLocale:v({},Z6)};J6.lang.ok="确定";const R$=J6,xn="${label}不是一个有效的${type}",Yne={locale:"zh-cn",Pagination:F3,DatePicker:R$,TimePicker:Z6,Calendar:R$,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckall:"全选",filterSearchPlaceholder:"在筛选项中搜索",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开"},PageHeader:{back:"返回"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:xn,method:xn,array:xn,object:xn,number:xn,date:xn,boolean:xn,integer:xn,float:xn,regexp:xn,email:xn,url:xn,hex:xn},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码已过期",refresh:"点击刷新",scanned:"已扫描"}},vre=Yne;export{Pl as $,Ol as A,qt as B,c3 as C,Nc as D,koe as E,nJ as F,Noe as G,Roe as H,ag as I,Or as J,oo as K,Wt as L,Vn as M,Goe as N,Koe as O,ore as P,moe as Q,tre as R,kl as S,Oa as T,lW as U,ire as V,yoe as W,Moe as X,cre as Y,Ws as Z,_K as _,fre as a,noe as a$,xoe as a0,Qoe as a1,Yoe as a2,Uoe as a3,Joe as a4,Coe as a5,hj as a6,Xoe as a7,Hoe as a8,Nj as a9,No as aA,voe as aB,Toe as aC,Ooe as aD,hoe as aE,Doe as aF,Aoe as aG,Bj as aH,Vc as aI,q5 as aJ,Un as aK,xC as aL,UI as aM,Cx as aN,Jt as aO,ooe as aP,vv as aQ,goe as aR,aoe as aS,Au as aT,Ft as aU,uoe as aV,coe as aW,roe as aX,Ioe as aY,PC as aZ,eoe as a_,Pr as aa,Poe as ab,Tl as ac,od as ad,foe as ae,boe as af,pn as ag,are as ah,Zi as ai,Ha as aj,cK as ak,Ff as al,W6 as am,XF as an,Soe as ao,hc as ap,poe as aq,np as ar,op as as,FX as at,ioe as au,Jp as av,$oe as aw,doe as ax,_oe as ay,QQ as az,b8 as b,soe as b0,an as b1,woe as b2,Loe as b3,ere as b4,Qj as b5,Ax as b6,Voe as b7,tg as b8,DJ as b9,V6 as ba,N6 as bb,Eoe as bc,$x as bd,Jne as be,joe as bf,TJ as bg,nre as bh,TZ as bi,qoe as bj,Foe as bk,Woe as bl,VV as bm,tr as bn,GQ as bo,On as bp,fu as bq,FU as br,rre as bs,Boe as bt,dK as bu,cr as c,ur as d,PV as e,sre as f,Zne as g,kx as h,toe as i,pre as j,Gn as k,Kne as l,loe as m,vre as n,eT as o,io as p,lre as q,zoe as r,dre as s,ure as t,Zoe as u,ja as v,Xs as w,Mn as x,ar as y,tp as z}; diff --git a/assets/antdv-Cm_1FYRq.css b/assets/antdv-Cm_1FYRq.css new file mode 100644 index 000000000..381131db8 --- /dev/null +++ b/assets/antdv-Cm_1FYRq.css @@ -0,0 +1 @@ +html,body{width:100%;height:100%}input::-ms-clear,input::-ms-reveal{display:none}*,*:before,*:after{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:rgba(0,0,0,0)}@-ms-viewport{width:device-width}body{margin:0}[tabindex="-1"]:focus{outline:none}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:500}p{margin-top:0;margin-bottom:1em}abbr[title],abbr[data-original-title]{-webkit-text-decoration:underline dotted;text-decoration:underline;text-decoration:underline dotted;border-bottom:0;cursor:help}address{margin-bottom:1em;font-style:normal;line-height:inherit}input[type=text],input[type=password],input[type=number],textarea{-webkit-appearance:none}ol,ul,dl{margin-top:0;margin-bottom:1em}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:500}dd{margin-bottom:.5em;margin-left:0}blockquote{margin:0 0 1em}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}pre,code,kbd,samp{font-size:1em;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace}pre{margin-top:0;margin-bottom:1em;overflow:auto}figure{margin:0 0 1em}img{vertical-align:middle;border-style:none}a,area,button,[role=button],input:not([type=range]),label,select,summary,textarea{touch-action:manipulation}table{border-collapse:collapse}caption{padding-top:.75em;padding-bottom:.3em;text-align:left;caption-side:bottom}input,button,select,optgroup,textarea{margin:0;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{padding:0;border-style:none}input[type=radio],input[type=checkbox]{box-sizing:border-box;padding:0}input[type=date],input[type=time],input[type=datetime-local],input[type=month]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;margin:0;padding:0;border:0}legend{display:block;width:100%;max-width:100%;margin-bottom:.5em;padding:0;color:inherit;font-size:1.5em;line-height:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}mark{padding:.2em;background-color:#feffe6} diff --git a/assets/button-8rpOV9mS.js b/assets/button-8rpOV9mS.js new file mode 100644 index 000000000..f2851820b --- /dev/null +++ b/assets/button-8rpOV9mS.js @@ -0,0 +1 @@ +import{x as o,k as f}from"./index-CPnd3GcN.js";import{ae as m,af as s,a0 as u,ac as y}from"./antdv-CA3HmnGF.js";import{d as k,W as n,a5 as _,k as a,u as e,Y as t,G as r,F as c,ae as i,X as d,ak as p}from"./vue-Dbi1xauY.js";const C=k({name:"DemoButton",__name:"button",setup(g){return(x,h)=>(n(),_("div",null,[a(e(m),{message:"扩展antd按钮样式",type:"info","show-icon":"",style:{"margin-bottom":"12px"}}),a(e(y),null,{default:t(()=>[a(e(s),{orientation:"left"},{default:t(()=>[r("扩展按钮类型")]),_:1}),a(e(u),null,{default:t(()=>[a(e(o),{type:"primary"},{default:t(()=>[r("primary")]),_:1}),a(e(o),{type:"error"},{default:t(()=>[r("error")]),_:1}),a(e(o),{type:"warning"},{default:t(()=>[r("warning")]),_:1}),a(e(o),{type:"success"},{default:t(()=>[r("success")]),_:1})]),_:1}),a(e(s),{orientation:"left"},{default:t(()=>[r("自定义按钮颜色")]),_:1}),a(e(u),null,{default:t(()=>[(n(!0),_(c,null,i(e(f),l=>(n(),d(e(o),{key:l.key,color:l.value},{default:t(()=>[r(p(l.title),1)]),_:2},1032,["color"]))),128))]),_:1}),a(e(s),{orientation:"left"},{default:t(()=>[r("幽灵按钮")]),_:1}),a(e(u),null,{default:t(()=>[(n(!0),_(c,null,i(e(f),l=>(n(),d(e(o),{key:l.key,ghost:"",color:l.value},{default:t(()=>[r(p(l.title),1)]),_:2},1032,["color"]))),128))]),_:1})]),_:1})]))}});export{C as default}; diff --git a/assets/columns-QsbRxPAv.js b/assets/columns-QsbRxPAv.js new file mode 100644 index 000000000..a37fb0ee4 --- /dev/null +++ b/assets/columns-QsbRxPAv.js @@ -0,0 +1 @@ +import{w as s}from"./common-Cs_BZJVP.js";import{ap as u,U as p}from"./antdv-CA3HmnGF.js";import{k as d}from"./vue-Dbi1xauY.js";const i=["王路飞","王大蛇","李白","刺客伍六七"],l=(e="")=>{const t=[{label:"已售罄",value:0},{label:"热卖中",value:1}].filter(o=>o.label.includes(e));return s(2e3,t)},r=e=>e===1?[{label:"西装",value:1},{label:"领带",value:0}]:e===0?[{label:"裙子",value:1},{label:"包包",value:0}]:[],g=Array.from({length:30}).map((e,t)=>{const o=~~(Math.random()*2);return{id:t+1,date:new Date().toLocaleString(),name:i[~~(Math.random()*4)],clothes:r(o)[~~(Math.random()*2)].label,price:~~(Math.random()*1e3),gender:o,img:"https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png",status:~~(Math.random()*2)}}),P=[{title:"姓名",dataIndex:"name",sorter:!0,width:300,resizable:!0,formItemProps:{defaultValue:"李白",required:!0}},{title:"性别",dataIndex:"gender",width:120,resizable:!0,formItemProps:{component:"Select",componentProps:({formInstance:e,formModel:t})=>({options:[{label:"男",value:1},{label:"女",value:0}],onChange(){e==null||e.updateSchema({field:"clothes",componentProps:{options:r(t.gender)}}),t.clothes=""}})},customRender:({record:e})=>["女","男"][e.gender]},{title:"衣服",dataIndex:"clothes",formItemProps:{component:"Select",componentProps:({tableInstance:e})=>({onChange(){e==null||e.reload()}})}},{title:"价格",dataIndex:"price",formItemProps:{component:"InputNumber"},customRender:({record:e})=>`${e.price}元`},{title:"状态",dataIndex:"status",formItemProps:{component:"Select",componentProps:({formInstance:e,schema:t})=>({showSearch:!0,filterOption:!1,request:()=>l(),onSearch:u(async o=>{t.value.loading=!0;const a={field:"status",componentProps:{options:[]}};e==null||e.updateSchema([a]);const n=await l(o).finally(()=>t.value.loading=!1);a.componentProps.options=n,e==null||e.updateSchema([a])},500),onChange(o){}})},customRender:({record:e})=>d(p,{color:e.status==1?"red":"default"},{default:()=>[["已售罄","热卖中"][e.status]]})}];export{P as c,l as f,r as g,g as t}; diff --git a/assets/columns-hGlKOK8p.js b/assets/columns-hGlKOK8p.js new file mode 100644 index 000000000..bdfe3554f --- /dev/null +++ b/assets/columns-hGlKOK8p.js @@ -0,0 +1 @@ +import{f as r}from"./dateUtil-CLVblcqH.js";import{k as s,a as l}from"./vue-Dbi1xauY.js";import{U as d}from"./antdv-CA3HmnGF.js";function c(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!l(t)}const m=[{title:"ID",dataIndex:"id",sorter:!0,width:60},{title:"字典项键名",dataIndex:"label"},{title:"字典项值",dataIndex:"value"},{title:"排序",dataIndex:"orderNo"},{title:"状态",dataIndex:"status",width:80,customRender:({record:t})=>{const a=~~t.status===1,n=a?"green":"red",e=a?"启用":"停用";return s(d,{color:n},c(e)?e:{default:()=>[e]})}},{title:"备注",dataIndex:"remark"},{title:"更新时间",dataIndex:"updatedAt",sorter:!0,width:160,customRender:({record:t})=>r(t.createdAt)}],f=(t,o)=>[{field:"typeId",label:"字典类型",component:"Select",colProps:{span:8},componentProps:{options:t,onChange:o}},{field:"label",label:"字典项键名",component:"Input",colProps:{span:8}},{field:"value",label:"字典项值",component:"Input",colProps:{span:8}}];export{m as b,f as g}; diff --git a/assets/common-Cs_BZJVP.js b/assets/common-Cs_BZJVP.js new file mode 100644 index 000000000..ec24af725 --- /dev/null +++ b/assets/common-Cs_BZJVP.js @@ -0,0 +1 @@ +import"./antdv-CA3HmnGF.js";const a=(i=100,t=!0)=>{const{promise:r,resolve:e}=Promise.withResolvers();return setTimeout(()=>{e(t)},i),r};function d(i,t,r="id",e=[]){for(const n of i){const o=[...e,n[r]];if(n.id===t)return o;if(n.children&&n.children.length>0){const c=d(n.children,t,r,o);if(c)return c}}return null}const f=(i,t=[],r=":")=>i.split(r).reduce((e,n,o,c)=>{const l=c.slice(0,o+1).join(":"),h=e.findIndex(s=>(s==null?void 0:s.path)===l);if(h!==-1)return e[h].children;{const s={path:l,value:n,label:n,children:[]};return e.push(s),s.children}},t);export{d as f,f as s,a as w}; diff --git a/assets/comp-not-found-D70RKVnQ.js b/assets/comp-not-found-D70RKVnQ.js new file mode 100644 index 000000000..4284cde0c --- /dev/null +++ b/assets/comp-not-found-D70RKVnQ.js @@ -0,0 +1 @@ +import{ab as o}from"./antdv-CA3HmnGF.js";import{W as t,X as e}from"./vue-Dbi1xauY.js";const p=Object.assign({name:"ComponentNotFound"},{__name:"comp-not-found",setup(a){return(s,_)=>{const n=o;return t(),e(n,{status:"warning",title:"当前路由缺失前端对应的路由组件导致无法正常显示,请联系开发人员或管理员!"})}}});export{p as default}; diff --git a/assets/createContextMenu-CabejWWU.js b/assets/createContextMenu-CabejWWU.js new file mode 100644 index 000000000..6ac045a68 --- /dev/null +++ b/assets/createContextMenu-CabejWWU.js @@ -0,0 +1 @@ +import{d as g,f as w,c as k,k as s,u as E,a as L,F as M,x as j}from"./vue-Dbi1xauY.js";import{I as D}from"./index-CPnd3GcN.js";import{x as b,y as O}from"./antdv-CA3HmnGF.js";import{b as P}from"./is-bed24ebq.js";function S(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!L(e)}const _={width:{type:Number,default:156},customEvent:{type:Object,default:null},styles:{type:Object},showIcon:{type:Boolean,default:!0},axis:{type:Object,default(){return{x:0,y:0}}},items:{type:Array,default(){return[]}}},x=e=>{const{item:o}=e;return s("span",{style:"display: inline-block; width: 100%; ",class:"px-4",onClick:e.handler.bind(null,o)},[e.showIcon&&o.icon&&s(D,{class:"mr-2",type:o.icon},null),s("span",null,[o.label])])},$=g({name:"ContextMenu",props:_,setup(e,{expose:o}){const y=w(!0),r=k(()=>{const{axis:l,items:t,styles:n,width:i}=e,{x:c,y:d}=l||{x:0,y:0},v=(t||[]).length*40,p=i,h=document.body,I=h.clientWidth{y.value=!1};function u(l,t){const{handler:n,disabled:i}=l;i||(t==null||t.stopPropagation(),t==null||t.preventDefault(),n==null||n(),a())}function f(l){return l.filter(n=>!n.hidden).map(n=>{const{disabled:i,label:c,children:d,divider:v=!1}=n,p={item:n,handler:u,showIcon:e.showIcon};return!d||d.length===0?s(M,null,[s(b.Item,{disabled:i,key:c},{default:()=>[s(x,p,null)]}),v?s(b.Divider,{key:`d-${c}`},null):null]):s(b.SubMenu,{key:c,disabled:i},{title:()=>s(x,p,null),default:()=>f(d)})})}return o({close:a}),()=>{const{items:l}=e;return s(O,{open:y.value},{default:()=>s("div",{style:E(r)},null),overlay:()=>{let t;return s(b,{inlineIndent:12,mode:"vertical"},S(t=f(l))?t:{default:()=>[t]})}})}}}),m={domList:[],resolve:()=>{}},V=function(e){const{event:o}=e||{};if(o&&(o==null||o.preventDefault()),!!P)return new Promise(y=>{const r=document.body,a=document.createElement("div"),u={getPopupContainer:()=>a};e.styles&&(u.styles=e.styles),e.items&&(u.items=e.items),e.event&&(u.customEvent=o,u.axis={x:o.clientX,y:o.clientY});const f=s($,u);j(f,a);const l=function(){m.resolve("")};m.domList.push(a);const t=function(){m.domList.forEach(n=>{try{n&&r.removeChild(n)}catch{}}),r.removeEventListener("click",l),r.removeEventListener("scroll",l)};m.resolve=function(n){var i,c;(c=(i=f.component)==null?void 0:i.exposed)==null||c.close(),t(),y(n)},t(),r.appendChild(a),r.addEventListener("click",l),r.addEventListener("scroll",l)})},W=function(){m&&(m.resolve(""),m.domList=[])};export{V as c,W as d}; diff --git a/assets/custom-modal-Coj6FCnc.js b/assets/custom-modal-Coj6FCnc.js new file mode 100644 index 000000000..c30abf60c --- /dev/null +++ b/assets/custom-modal-Coj6FCnc.js @@ -0,0 +1 @@ +import{_ as v}from"./index.vue_vue_type_style_index_0_lang-BojqjIZ9.js";import{u as r}from"./useModal-tDF6160r.js";import"./ApiSelect.vue_vue_type_script_setup_true_lang-C4dv5akm.js";import{ac as b,ae as k,a0 as h}from"./antdv-CA3HmnGF.js";import"./index-CPnd3GcN.js";import{d as C,r as y,W as M,a5 as x,k as e,Y as o,G as n,u as s,a6 as m,ac as g}from"./vue-Dbi1xauY.js";import"./is-bed24ebq.js";const w=m("span",{class:"text-red-500"}," Tips: 如果你的弹窗依赖于App上下文(provide/inject),你应该使用`useModal组件方式` ",-1),O=m("a",{class:"text-blue-500",target:"_blank",href:"https://github.com/buqiyuan/vue3-antdv-admin/blob/main/src/views/demos/custom-modal.vue"}," 查看源码 ",-1),E=C({name:"CustomModal",__name:"custom-modal",setup(U){const[d]=r(),[i]=r(),t=y({visible:!1}),c=()=>{d.show({title:"我是hook纯函数式模态框",content:"hello"})},u=()=>{i.show({title:"我是UseModalComp",content:"嘿嘿嘿"})},_=()=>{t.visible=!1};return(B,a)=>{const l=g("a-button"),f=b;return M(),x("div",null,[e(s(k),{message:"自定义模态框",type:"info","show-icon":"",style:{"margin-bottom":"12px"}},{description:o(()=>[n(" 对ant-design-vue的modal进行二次封装,自定义一个可拖拽、可调整大小的模态框, "),w,O]),_:1}),e(f,null,{default:o(()=>[e(s(h),null,{default:o(()=>[e(l,{type:"primary",onClick:a[0]||(a[0]=p=>t.visible=!0)},{default:o(()=>[n("普通组件方式")]),_:1}),e(l,{type:"primary",onClick:u},{default:o(()=>[n("useModal组件方式")]),_:1}),e(l,{type:"primary",onClick:c},{default:o(()=>[n("hook纯函数式")]),_:1})]),_:1})]),_:1}),e(s(v),{open:t.visible,"onUpdate:open":a[1]||(a[1]=p=>t.visible=p),onOk:_},null,8,["open"]),e(s(i))])}}});export{E as default}; diff --git a/assets/dateUtil-CLVblcqH.js b/assets/dateUtil-CLVblcqH.js new file mode 100644 index 000000000..0e63fc663 --- /dev/null +++ b/assets/dateUtil-CLVblcqH.js @@ -0,0 +1 @@ +import{aU as t}from"./antdv-CA3HmnGF.js";const s="YYYY-MM-DD HH:mm:ss";function r(a,o=s){return t(a).format(o)}const e=t;export{e as d,r as f}; diff --git a/assets/dynamic-table-BQjCxF2y.css b/assets/dynamic-table-BQjCxF2y.css new file mode 100644 index 000000000..f85111d49 --- /dev/null +++ b/assets/dynamic-table-BQjCxF2y.css @@ -0,0 +1 @@ +.check-item[data-v-4b9bddcc]{display:flex;justify-content:space-between}.column-fixed .fixed-right.active[data-v-4b9bddcc],.column-fixed .fixed-left.active[data-v-4b9bddcc],.column-fixed .fixed-right[data-v-4b9bddcc]:hover,.column-fixed .fixed-left[data-v-4b9bddcc]:hover{color:#1890ff}.title[data-v-970f1354]{display:flex;align-items:center;justify-content:flex-start;font-size:16px;font-weight:500}.editable-cell[data-v-da45b515]{position:relative}.editable-cell:hover .anticon-edit[data-v-da45b515]{display:block}.editable-cell .anticon-edit[data-v-da45b515]{display:none;position:absolute;top:50%;right:0;transform:translateY(-50%)}[data-v-da45b515] .ant-form-item{margin:0}[data-v-da45b515] .ant-form-item-explain{display:none}[data-v-da45b515] .ant-form-item-with-help{margin:0}[data-v-fcb57c14] .ant-table-wrapper{padding:0 6px 6px}[data-v-fcb57c14] .ant-table-wrapper .ant-table .ant-table-title{display:flex}[data-v-fcb57c14] .ant-table-wrapper .ant-table .ant-image:hover{cursor:zoom-in}.actions>*[data-v-fcb57c14]{margin-right:10px} diff --git a/assets/dynamic-table-D_nTPUiI.js b/assets/dynamic-table-D_nTPUiI.js new file mode 100644 index 000000000..6fd1f3f0e --- /dev/null +++ b/assets/dynamic-table-D_nTPUiI.js @@ -0,0 +1,104 @@ +var Bo=Object.defineProperty;var Mo=(e,t,r)=>t in e?Bo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var u0=(e,t,r)=>(Mo(e,typeof t!="symbol"?t+"":t,r),r);import{C as Uo,D as Wo,h as Qn,E as Ho,F as Vo,G as Li,d as Xo,H as Go,_ as e0}from"./index-CPnd3GcN.js";import{aL as A0,c as Ba,aJ as C0,ap as Qs,o as b0,e as zo,ai as Ja,av as ka,aP as Mn,i as Bi,b1 as $o,K as Pt,af as V0,b2 as Ko,y as jo,x as Sn,b3 as Yo,b4 as Jo,b5 as qo,aA as Zo,b6 as ef,b7 as Qo,V as el,q as rl,P as tl,aX as Mi,I as al,O as nl,N as il,a0 as rf,aR as sl,aY as fl,S as cl,b8 as ol,p as ll,b9 as ul,ba as hl,L as xl,a_ as dl,bb as pl,bc as vl}from"./antdv-CA3HmnGF.js";import{f as He,w as Zt,u as re,y as Qt,k as ye,_ as qa,p as ml,i as gl,c as cr,h as tf,r as _l,J as wl,g as af,d as ft,ac as X0,W as Me,a5 as Tt,ae as Kt,F as Za,Y as we,G as qr,ak as xr,au as ga,av as _a,X as lr,ad as rt,l as Un,a6 as gr,Z as tt,ai as Ui,af as kl,H as El,am as Bn,ay as nf,E as Tl}from"./vue-Dbi1xauY.js";import{a as Sl,s as Fl,S as yl,_ as Wi}from"./schema-form.vue_vue_type_script_setup_true_lang-DYh3o6wW.js";import"./ApiSelect.vue_vue_type_script_setup_true_lang-C4dv5akm.js";import{i as h0,a as sf}from"./is-bed24ebq.js";function gk(e){const t=He({});async function r(){await Qt();const i=re(t);return A0(i)&&console.error("未获取表格实例!"),i}Zt(()=>e,async()=>{var i;if(e){await Qt();const s=await r();(i=s==null?void 0:s.setProps)==null||i.call(s,e)}},{deep:!0,flush:"post"});const a=new Proxy(t,{get(i,s){return Reflect.has(i,s)?re(i):i.value&&Reflect.has(i.value,s)?Reflect.get(i.value,s):async(...f)=>{var o;const c=await r();return(o=c==null?void 0:c[s])==null?void 0:o.call(c,...f)}}});return[(i,{attrs:s,slots:f})=>ye(lk,qa({ref:t},{...s,...e,...i}),f),re(a)]}const ff=Symbol("dynamic-table");function Al(e){ml(ff,e)}function sa(){return gl(ff)}var Qa=(e=>(e.ACTION="ACTION",e.INDEX="INDEX",e))(Qa||{});const cf=Object.values(Qa);var of={exports:{}};(function(e,t){(function(r,a){a()})(Ba,function(){function r(o,l){return typeof l>"u"?l={autoBom:!1}:typeof l!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),l={autoBom:!l}),l.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(o.type)?new Blob(["\uFEFF",o],{type:o.type}):o}function a(o,l,u){var h=new XMLHttpRequest;h.open("GET",o),h.responseType="blob",h.onload=function(){c(h.response,l,u)},h.onerror=function(){console.error("could not download file")},h.send()}function n(o){var l=new XMLHttpRequest;l.open("HEAD",o,!1);try{l.send()}catch{}return 200<=l.status&&299>=l.status}function i(o){try{o.dispatchEvent(new MouseEvent("click"))}catch{var l=document.createEvent("MouseEvents");l.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),o.dispatchEvent(l)}}var s=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Ba=="object"&&Ba.global===Ba?Ba:void 0,f=s.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),c=s.saveAs||(typeof window!="object"||window!==s?function(){}:"download"in HTMLAnchorElement.prototype&&!f?function(o,l,u){var h=s.URL||s.webkitURL,x=document.createElement("a");l=l||o.name||"download",x.download=l,x.rel="noopener",typeof o=="string"?(x.href=o,x.origin===location.origin?i(x):n(x.href)?a(o,l,u):i(x,x.target="_blank")):(x.href=h.createObjectURL(o),setTimeout(function(){h.revokeObjectURL(x.href)},4e4),setTimeout(function(){i(x)},0))}:"msSaveOrOpenBlob"in navigator?function(o,l,u){if(l=l||o.name||"download",typeof o!="string")navigator.msSaveOrOpenBlob(r(o,u),l);else if(n(o))a(o,l,u);else{var h=document.createElement("a");h.href=o,h.target="_blank",setTimeout(function(){i(h)})}}:function(o,l,u,h){if(h=h||open("","_blank"),h&&(h.document.title=h.document.body.innerText="downloading..."),typeof o=="string")return a(o,l,u);var x=o.type==="application/octet-stream",p=/constructor/i.test(s.HTMLElement)||s.safari,d=/CriOS\/[\d]+/.test(navigator.userAgent);if((d||x&&p||f)&&typeof FileReader<"u"){var v=new FileReader;v.onloadend=function(){var m=v.result;m=d?m:m.replace(/^data:[^;]*;/,"data:attachment/file;"),h?h.location.href=m:location=m,h=null},v.readAsDataURL(o)}else{var w=s.URL||s.webkitURL,k=w.createObjectURL(o);h?h.location=k:location.href=k,h=null,setTimeout(function(){w.revokeObjectURL(k)},4e4)}});s.saveAs=c.saveAs=c,e.exports=c})})(of);var Cl=of.exports;/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var Wn={};Wn.version="0.18.5";var lf=1252,bl=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],G0={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},z0=function(e){bl.indexOf(e)!=-1&&(lf=G0[0]=e)};function Dl(){z0(1252)}var at=function(e){z0(e)};function $0(){at(1200),Dl()}function Hi(e){for(var t=[],r=0,a=e.length;r>1;++r)t[r]=String.fromCharCode(e.charCodeAt(2*r)+(e.charCodeAt(2*r+1)<<8));return t.join("")}function uf(e){for(var t=[],r=0;r>1;++r)t[r]=String.fromCharCode(e.charCodeAt(2*r+1)+(e.charCodeAt(2*r)<<8));return t.join("")}var Ua=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1);return t==255&&r==254?Ol(e.slice(2)):t==254&&r==255?uf(e.slice(2)):t==65279?e.slice(1):e},Fn=function(t){return String.fromCharCode(t)},Vi=function(t){return String.fromCharCode(t)},Ot,It="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function en(e){for(var t="",r=0,a=0,n=0,i=0,s=0,f=0,c=0,o=0;o>2,a=e.charCodeAt(o++),s=(r&3)<<4|a>>4,n=e.charCodeAt(o++),f=(a&15)<<2|n>>6,c=n&63,isNaN(a)?f=c=64:isNaN(n)&&(c=64),t+=It.charAt(i)+It.charAt(s)+It.charAt(f)+It.charAt(c);return t}function Hr(e){var t="",r=0,a=0,n=0,i=0,s=0,f=0,c=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var o=0;o>4,t+=String.fromCharCode(r),f=It.indexOf(e.charAt(o++)),a=(s&15)<<4|f>>2,f!==64&&(t+=String.fromCharCode(a)),c=It.indexOf(e.charAt(o++)),n=(f&3)<<6|c,c!==64&&(t+=String.fromCharCode(n));return t}var Ae=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),Ft=function(){if(typeof Buffer<"u"){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch{e=!0}return e?function(t,r){return r?new Buffer(t,r):new Buffer(t)}:Buffer.from.bind(Buffer)}return function(){}}();function Bt(e){return Ae?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}function Xi(e){return Ae?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}var Ur=function(t){return Ae?Ft(t,"binary"):t.split("").map(function(r){return r.charCodeAt(0)&255})};function r0(e){if(typeof ArrayBuffer>"u")return Ur(e);for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),a=0;a!=e.length;++a)r[a]=e.charCodeAt(a)&255;return t}function Ht(e){if(Array.isArray(e))return e.map(function(a){return String.fromCharCode(a)}).join("");for(var t=[],r=0;r"u")throw new Error("Unsupported");return new Uint8Array(e)}function K0(e){if(typeof ArrayBuffer>"u")throw new Error("Unsupported");if(e instanceof ArrayBuffer)return K0(new Uint8Array(e));for(var t=new Array(e.length),r=0;r>6&31,n[r++]=128|s&63;else if(s>=55296&&s<57344){s=(s&1023)+64;var f=e.charCodeAt(++i)&1023;n[r++]=240|s>>8&7,n[r++]=128|s>>2&63,n[r++]=128|f>>6&15|(s&3)<<4,n[r++]=128|f&63}else n[r++]=224|s>>12&15,n[r++]=128|s>>6&63,n[r++]=128|s&63;r>a&&(t.push(n.slice(0,r)),r=0,n=Bt(65535),a=65530)}return t.push(n.slice(0,r)),dr(t)}var Ir=/\u0000/g,Wa=/[\u0001-\u0006]/g;function Ea(e){for(var t="",r=e.length-1;r>=0;)t+=e.charAt(r--);return t}function nt(e,t){var r=""+e;return r.length>=t?r:Je("0",t-r.length)+r}function j0(e,t){var r=""+e;return r.length>=t?r:Je(" ",t-r.length)+r}function Hn(e,t){var r=""+e;return r.length>=t?r:r+Je(" ",t-r.length)}function Nl(e,t){var r=""+Math.round(e);return r.length>=t?r:Je("0",t-r.length)+r}function Pl(e,t){var r=""+e;return r.length>=t?r:Je("0",t-r.length)+r}var Gi=Math.pow(2,32);function da(e,t){if(e>Gi||e<-Gi)return Nl(e,t);var r=Math.round(e);return Pl(r,t)}function Vn(e,t){return t=t||0,e.length>=7+t&&(e.charCodeAt(t)|32)===103&&(e.charCodeAt(t+1)|32)===101&&(e.charCodeAt(t+2)|32)===110&&(e.charCodeAt(t+3)|32)===101&&(e.charCodeAt(t+4)|32)===114&&(e.charCodeAt(t+5)|32)===97&&(e.charCodeAt(t+6)|32)===108}var zi=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],x0=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function Ll(e){return e||(e={}),e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',e}var me={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},$i={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},Bl={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function Xn(e,t,r){for(var a=e<0?-1:1,n=e*a,i=0,s=1,f=0,c=1,o=0,l=0,u=Math.floor(n);ot&&(o>t?(l=c,f=i):(l=o,f=s)),!r)return[0,a*f,l];var h=Math.floor(a*f/l);return[h,a*f-h*l,l]}function Rt(e,t,r){if(e>2958465||e<0)return null;var a=e|0,n=Math.floor(86400*(e-a)),i=0,s=[],f={D:a,T:n,u:86400*(e-a)-n,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(f.u)<1e-6&&(f.u=0),t&&t.date1904&&(a+=1462),f.u>.9999&&(f.u=0,++n==86400&&(f.T=n=0,++a,++f.D)),a===60)s=r?[1317,10,29]:[1900,2,29],i=3;else if(a===0)s=r?[1317,8,29]:[1900,1,0],i=6;else{a>60&&--a;var c=new Date(1900,0,1);c.setDate(c.getDate()+a-1),s=[c.getFullYear(),c.getMonth()+1,c.getDate()],i=c.getDay(),a<60&&(i=(i+6)%7),r&&(i=Xl(c,s))}return f.y=s[0],f.m=s[1],f.d=s[2],f.S=n%60,n=Math.floor(n/60),f.M=n%60,n=Math.floor(n/60),f.H=n,f.q=i,f}var hf=new Date(1899,11,31,0,0,0),Ml=hf.getTime(),Ul=new Date(1900,2,1,0,0,0);function xf(e,t){var r=e.getTime();return t?r-=1461*24*60*60*1e3:e>=Ul&&(r+=24*60*60*1e3),(r-(Ml+(e.getTimezoneOffset()-hf.getTimezoneOffset())*6e4))/(24*60*60*1e3)}function Y0(e){return e.indexOf(".")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function Wl(e){return e.indexOf("E")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function Hl(e){var t=e<0?12:11,r=Y0(e.toFixed(12));return r.length<=t||(r=e.toPrecision(10),r.length<=t)?r:e.toExponential(5)}function Vl(e){var t=Y0(e.toFixed(11));return t.length>(e<0?12:11)||t==="0"||t==="-0"?e.toPrecision(6):t}function rn(e){var t=Math.floor(Math.log(Math.abs(e))*Math.LOG10E),r;return t>=-4&&t<=-1?r=e.toPrecision(10+t):Math.abs(t)<=9?r=Hl(e):t===10?r=e.toFixed(10).substr(0,12):r=Vl(e),Y0(Wl(r.toUpperCase()))}function ea(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(e|0)===e?e.toString(10):rn(e);case"undefined":return"";case"object":if(e==null)return"";if(e instanceof Date)return Vr(14,xf(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function Xl(e,t){t[0]-=581;var r=e.getDay();return e<60&&(r=(r+6)%7),r}function Gl(e,t,r,a){var n="",i=0,s=0,f=r.y,c,o=0;switch(e){case 98:f=r.y+543;case 121:switch(t.length){case 1:case 2:c=f%100,o=2;break;default:c=f%1e4,o=4;break}break;case 109:switch(t.length){case 1:case 2:c=r.m,o=t.length;break;case 3:return x0[r.m-1][1];case 5:return x0[r.m-1][0];default:return x0[r.m-1][2]}break;case 100:switch(t.length){case 1:case 2:c=r.d,o=t.length;break;case 3:return zi[r.q][0];default:return zi[r.q][1]}break;case 104:switch(t.length){case 1:case 2:c=1+(r.H+11)%12,o=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:c=r.H,o=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:c=r.M,o=t.length;break;default:throw"bad minute format: "+t}break;case 115:if(t!="s"&&t!="ss"&&t!=".0"&&t!=".00"&&t!=".000")throw"bad second format: "+t;return r.u===0&&(t=="s"||t=="ss")?nt(r.S,t.length):(a>=2?s=a===3?1e3:100:s=a===1?10:1,i=Math.round(s*(r.S+r.u)),i>=60*s&&(i=0),t==="s"?i===0?"0":""+i/s:(n=nt(i,2+a),t==="ss"?n.substr(0,2):"."+n.substr(2,t.length-1)));case 90:switch(t){case"[h]":case"[hh]":c=r.D*24+r.H;break;case"[m]":case"[mm]":c=(r.D*24+r.H)*60+r.M;break;case"[s]":case"[ss]":c=((r.D*24+r.H)*60+r.M)*60+Math.round(r.S+r.u);break;default:throw"bad abstime format: "+t}o=t.length===3?1:2;break;case 101:c=f,o=1;break}var l=o>0?nt(c,o):"";return l}function Nt(e){var t=3;if(e.length<=t)return e;for(var r=e.length%t,a=e.substr(0,r);r!=e.length;r+=t)a+=(a.length>0?",":"")+e.substr(r,t);return a}var df=/%/g;function zl(e,t,r){var a=t.replace(df,""),n=t.length-a.length;return kt(e,a,r*Math.pow(10,2*n))+Je("%",n)}function $l(e,t,r){for(var a=t.length-1;t.charCodeAt(a-1)===44;)--a;return kt(e,t.substr(0,a),r/Math.pow(10,3*(t.length-a)))}function pf(e,t){var r,a=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(t==0)return"0.0E+0";if(t<0)return"-"+pf(e,-t);var n=e.indexOf(".");n===-1&&(n=e.indexOf("E"));var i=Math.floor(Math.log(t)*Math.LOG10E)%n;if(i<0&&(i+=n),r=(t/Math.pow(10,i)).toPrecision(a+1+(n+i)%n),r.indexOf("e")===-1){var s=Math.floor(Math.log(t)*Math.LOG10E);for(r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(s-r.length+i):r+="E+"+(s-i);r.substr(0,2)==="0.";)r=r.charAt(0)+r.substr(2,n)+"."+r.substr(2+n),r=r.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(f,c,o,l){return c+o+l.substr(0,(n+i)%n)+"."+l.substr(i)+"E"})}else r=t.toExponential(a);return e.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),e.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}var vf=/# (\?+)( ?)\/( ?)(\d+)/;function Kl(e,t,r){var a=parseInt(e[4],10),n=Math.round(t*a),i=Math.floor(n/a),s=n-i*a,f=a;return r+(i===0?"":""+i)+" "+(s===0?Je(" ",e[1].length+1+e[4].length):j0(s,e[1].length)+e[2]+"/"+e[3]+nt(f,e[4].length))}function jl(e,t,r){return r+(t===0?"":""+t)+Je(" ",e[1].length+2+e[4].length)}var mf=/^#*0*\.([0#]+)/,gf=/\).*[0#]/,_f=/\(###\) ###\\?-####/;function Dr(e){for(var t="",r,a=0;a!=e.length;++a)switch(r=e.charCodeAt(a)){case 35:break;case 63:t+=" ";break;case 48:t+="0";break;default:t+=String.fromCharCode(r)}return t}function Ki(e,t){var r=Math.pow(10,t);return""+Math.round(e*r)/r}function ji(e,t){var r=e-Math.floor(e),a=Math.pow(10,t);return t<(""+Math.round(r*a)).length?0:Math.round(r*a)}function Yl(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}function Jl(e){return e<2147483647&&e>-2147483648?""+(e>=0?e|0:e-1|0):""+Math.floor(e)}function $r(e,t,r){if(e.charCodeAt(0)===40&&!t.match(gf)){var a=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?$r("n",a,r):"("+$r("n",a,-r)+")"}if(t.charCodeAt(t.length-1)===44)return $l(e,t,r);if(t.indexOf("%")!==-1)return zl(e,t,r);if(t.indexOf("E")!==-1)return pf(t,r);if(t.charCodeAt(0)===36)return"$"+$r(e,t.substr(t.charAt(1)==" "?2:1),r);var n,i,s,f,c=Math.abs(r),o=r<0?"-":"";if(t.match(/^00+$/))return o+da(c,t.length);if(t.match(/^[#?]+$/))return n=da(r,0),n==="0"&&(n=""),n.length>t.length?n:Dr(t.substr(0,t.length-n.length))+n;if(i=t.match(vf))return Kl(i,c,o);if(t.match(/^#+0+$/))return o+da(c,t.length-t.indexOf("0"));if(i=t.match(mf))return n=Ki(r,i[1].length).replace(/^([^\.]+)$/,"$1."+Dr(i[1])).replace(/\.$/,"."+Dr(i[1])).replace(/\.(\d*)$/,function(p,d){return"."+d+Je("0",Dr(i[1]).length-d.length)}),t.indexOf("0.")!==-1?n:n.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),i=t.match(/^(0*)\.(#*)$/))return o+Ki(c,i[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".");if(i=t.match(/^#{1,3},##0(\.?)$/))return o+Nt(da(c,0));if(i=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+$r(e,t,-r):Nt(""+(Math.floor(r)+Yl(r,i[1].length)))+"."+nt(ji(r,i[1].length),i[1].length);if(i=t.match(/^#,#*,#0/))return $r(e,t.replace(/^#,#*,/,""),r);if(i=t.match(/^([0#]+)(\\?-([0#]+))+$/))return n=Ea($r(e,t.replace(/[\\-]/g,""),r)),s=0,Ea(Ea(t.replace(/\\/g,"")).replace(/[0#]/g,function(p){return s=0?ut("n",a,r):"("+ut("n",a,-r)+")"}if(t.charCodeAt(t.length-1)===44)return ql(e,t,r);if(t.indexOf("%")!==-1)return Zl(e,t,r);if(t.indexOf("E")!==-1)return wf(t,r);if(t.charCodeAt(0)===36)return"$"+ut(e,t.substr(t.charAt(1)==" "?2:1),r);var n,i,s,f,c=Math.abs(r),o=r<0?"-":"";if(t.match(/^00+$/))return o+nt(c,t.length);if(t.match(/^[#?]+$/))return n=""+r,r===0&&(n=""),n.length>t.length?n:Dr(t.substr(0,t.length-n.length))+n;if(i=t.match(vf))return jl(i,c,o);if(t.match(/^#+0+$/))return o+nt(c,t.length-t.indexOf("0"));if(i=t.match(mf))return n=(""+r).replace(/^([^\.]+)$/,"$1."+Dr(i[1])).replace(/\.$/,"."+Dr(i[1])),n=n.replace(/\.(\d*)$/,function(p,d){return"."+d+Je("0",Dr(i[1]).length-d.length)}),t.indexOf("0.")!==-1?n:n.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),i=t.match(/^(0*)\.(#*)$/))return o+(""+c).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".");if(i=t.match(/^#{1,3},##0(\.?)$/))return o+Nt(""+c);if(i=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+ut(e,t,-r):Nt(""+r)+"."+Je("0",i[1].length);if(i=t.match(/^#,#*,#0/))return ut(e,t.replace(/^#,#*,/,""),r);if(i=t.match(/^([0#]+)(\\?-([0#]+))+$/))return n=Ea(ut(e,t.replace(/[\\-]/g,""),r)),s=0,Ea(Ea(t.replace(/\\/g,"")).replace(/[0#]/g,function(p){return s-1||r=="\\"&&e.charAt(t+1)=="-"&&"0#".indexOf(e.charAt(t+2))>-1););break;case"?":for(;e.charAt(++t)===r;);break;case"*":++t,(e.charAt(t)==" "||e.charAt(t)=="*")&&++t;break;case"(":case")":++t;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;t-1;);break;case" ":++t;break;default:++t;break}return!1}function eu(e,t,r,a){for(var n=[],i="",s=0,f="",c="t",o,l,u,h="H";s=12?"P":"A"),d.t="T",h="h",s+=3):e.substr(s,5).toUpperCase()==="AM/PM"?(o!=null&&(d.v=o.H>=12?"PM":"AM"),d.t="T",s+=5,h="h"):e.substr(s,5).toUpperCase()==="上午/下午"?(o!=null&&(d.v=o.H>=12?"下午":"上午"),d.t="T",s+=5,h="h"):(d.t="t",++s),o==null&&d.t==="T")return"";n[n.length]=d,c=f;break;case"[":for(i=f;e.charAt(s++)!=="]"&&s-1&&(i=(i.match(/\$([^-\[\]]*)/)||[])[1]||"$",fa(e)||(n[n.length]={t:"t",v:i}));break;case".":if(o!=null){for(i=f;++s-1;)i+=f;n[n.length]={t:"n",v:i};break;case"?":for(i=f;e.charAt(++s)===f;)i+=f;n[n.length]={t:f,v:i},c=f;break;case"*":++s,(e.charAt(s)==" "||e.charAt(s)=="*")&&++s;break;case"(":case")":n[n.length]={t:a===1?"t":f,v:f},++s;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(i=f;s-1;)i+=e.charAt(s);n[n.length]={t:"D",v:i};break;case" ":n[n.length]={t:f,v:f},++s;break;case"$":n[n.length]={t:"t",v:"$"},++s;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(f)===-1)throw new Error("unrecognized character "+f+" in "+e);n[n.length]={t:"t",v:f},++s;break}var v=0,w=0,k;for(s=n.length-1,c="t";s>=0;--s)switch(n[s].t){case"h":case"H":n[s].t=h,c="h",v<1&&(v=1);break;case"s":(k=n[s].v.match(/\.0+$/))&&(w=Math.max(w,k[0].length-1)),v<3&&(v=3);case"d":case"y":case"M":case"e":c=n[s].t;break;case"m":c==="s"&&(n[s].t="M",v<2&&(v=2));break;case"X":break;case"Z":v<1&&n[s].v.match(/[Hh]/)&&(v=1),v<2&&n[s].v.match(/[Mm]/)&&(v=2),v<3&&n[s].v.match(/[Ss]/)&&(v=3)}switch(v){case 0:break;case 1:o.u>=.5&&(o.u=0,++o.S),o.S>=60&&(o.S=0,++o.M),o.M>=60&&(o.M=0,++o.H);break;case 2:o.u>=.5&&(o.u=0,++o.S),o.S>=60&&(o.S=0,++o.M);break}var m="",y;for(s=0;s0){m.charCodeAt(0)==40?(S=t<0&&m.charCodeAt(0)===45?-t:t,_=kt("n",m,S)):(S=t<0&&a>1?-t:t,_=kt("n",m,S),S<0&&n[0]&&n[0].t=="t"&&(_=_.substr(1),n[0].v="-"+n[0].v)),y=_.length-1;var N=n.length;for(s=0;s-1){N=s;break}var O=n.length;if(N===n.length&&_.indexOf("E")===-1){for(s=n.length-1;s>=0;--s)n[s]==null||"n?".indexOf(n[s].t)===-1||(y>=n[s].v.length-1?(y-=n[s].v.length,n[s].v=_.substr(y+1,n[s].v.length)):y<0?n[s].v="":(n[s].v=_.substr(0,y+1),y=-1),n[s].t="t",O=s);y>=0&&O=0;--s)if(!(n[s]==null||"n?".indexOf(n[s].t)===-1)){for(l=n[s].v.indexOf(".")>-1&&s===N?n[s].v.indexOf(".")-1:n[s].v.length-1,I=n[s].v.substr(l+1);l>=0;--l)y>=0&&(n[s].v.charAt(l)==="0"||n[s].v.charAt(l)==="#")&&(I=_.charAt(y--)+I);n[s].v=I,n[s].t="t",O=s}for(y>=0&&O-1&&s===N?n[s].v.indexOf(".")+1:0,I=n[s].v.substr(0,l);l-1&&(S=a>1&&t<0&&s>0&&n[s-1].v==="-"?-t:t,n[s].v=kt(n[s].t,n[s].v,S),n[s].t="t");var G="";for(s=0;s!==n.length;++s)n[s]!=null&&(G+=n[s].v);return G}var Yi=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function Ji(e,t){if(t==null)return!1;var r=parseFloat(t[2]);switch(t[1]){case"=":if(e==r)return!0;break;case">":if(e>r)return!0;break;case"<":if(e":if(e!=r)return!0;break;case">=":if(e>=r)return!0;break;case"<=":if(e<=r)return!0;break}return!1}function ru(e,t){var r=Ql(e),a=r.length,n=r[a-1].indexOf("@");if(a<4&&n>-1&&--a,r.length>4)throw new Error("cannot find right format for |"+r.join("|")+"|");if(typeof t!="number")return[4,r.length===4||n>-1?r[r.length-1]:"@"];switch(r.length){case 1:r=n>-1?["General","General","General",r[0]]:[r[0],r[0],r[0],"@"];break;case 2:r=n>-1?[r[0],r[0],r[0],r[1]]:[r[0],r[1],r[0],"@"];break;case 3:r=n>-1?[r[0],r[1],r[0],r[2]]:[r[0],r[1],r[2],"@"];break}var i=t>0?r[0]:t<0?r[1]:r[2];if(r[0].indexOf("[")===-1&&r[1].indexOf("[")===-1)return[a,i];if(r[0].match(/\[[=<>]/)!=null||r[1].match(/\[[=<>]/)!=null){var s=r[0].match(Yi),f=r[1].match(Yi);return Ji(t,s)?[a,r[0]]:Ji(t,f)?[a,r[1]]:[a,r[s!=null&&f!=null?2:1]]}return[a,i]}function Vr(e,t,r){r==null&&(r={});var a="";switch(typeof e){case"string":e=="m/d/yy"&&r.dateNF?a=r.dateNF:a=e;break;case"number":e==14&&r.dateNF?a=r.dateNF:a=(r.table!=null?r.table:me)[e],a==null&&(a=r.table&&r.table[$i[e]]||me[$i[e]]),a==null&&(a=Bl[e]||"General");break}if(Vn(a,0))return ea(t,r);t instanceof Date&&(t=xf(t,r.date1904));var n=ru(a,t);if(Vn(n[1]))return ea(t,r);if(t===!0)t="TRUE";else if(t===!1)t="FALSE";else if(t===""||t==null)return"";return eu(n[1],t,r,n[0])}function dt(e,t){if(typeof t!="number"){t=+t||-1;for(var r=0;r<392;++r){if(me[r]==null){t<0&&(t=r);continue}if(me[r]==e){t=r;break}}t<0&&(t=391)}return me[t]=e,t}function dn(e){for(var t=0;t!=392;++t)e[t]!==void 0&&dt(e[t],t)}function ba(){me=Ll()}var Ef={format:Vr,load:dt,_table:me,load_table:dn,parse_date_code:Rt,is_date:fa,get_table:function(){return Ef._table=me}},tu={5:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',23:"General",24:"General",25:"General",26:"General",27:"m/d/yy",28:"m/d/yy",29:"m/d/yy",30:"m/d/yy",31:"m/d/yy",32:"h:mm:ss",33:"h:mm:ss",34:"h:mm:ss",35:"h:mm:ss",36:"m/d/yy",41:'_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* (#,##0);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* (#,##0.00);_("$"* "-"??_);_(@_)',50:"m/d/yy",51:"m/d/yy",52:"m/d/yy",53:"m/d/yy",54:"m/d/yy",55:"m/d/yy",56:"m/d/yy",57:"m/d/yy",58:"m/d/yy",59:"0",60:"0.00",61:"#,##0",62:"#,##0.00",63:'"$"#,##0_);\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',67:"0%",68:"0.00%",69:"# ?/?",70:"# ??/??",71:"m/d/yy",72:"m/d/yy",73:"d-mmm-yy",74:"d-mmm",75:"mmm-yy",76:"h:mm",77:"h:mm:ss",78:"m/d/yy h:mm",79:"mm:ss",80:"[h]:mm:ss",81:"mmss.0"},Tf=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function au(e){var t=typeof e=="number"?me[e]:e;return t=t.replace(Tf,"(\\d+)"),new RegExp("^"+t+"$")}function nu(e,t,r){var a=-1,n=-1,i=-1,s=-1,f=-1,c=-1;(t.match(Tf)||[]).forEach(function(u,h){var x=parseInt(r[h+1],10);switch(u.toLowerCase().charAt(0)){case"y":a=x;break;case"d":i=x;break;case"h":s=x;break;case"s":c=x;break;case"m":s>=0?f=x:n=x;break}}),c>=0&&f==-1&&n>=0&&(f=n,n=-1);var o=(""+(a>=0?a:new Date().getFullYear())).slice(-4)+"-"+("00"+(n>=1?n:1)).slice(-2)+"-"+("00"+(i>=1?i:1)).slice(-2);o.length==7&&(o="0"+o),o.length==8&&(o="20"+o);var l=("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(f>=0?f:0)).slice(-2)+":"+("00"+(c>=0?c:0)).slice(-2);return s==-1&&f==-1&&c==-1?o:a==-1&&n==-1&&i==-1?l:o+"T"+l}var iu=function(){var e={};e.version="1.2.0";function t(){for(var _=0,N=new Array(256),O=0;O!=256;++O)_=O,_=_&1?-306674912^_>>>1:_>>>1,_=_&1?-306674912^_>>>1:_>>>1,_=_&1?-306674912^_>>>1:_>>>1,_=_&1?-306674912^_>>>1:_>>>1,_=_&1?-306674912^_>>>1:_>>>1,_=_&1?-306674912^_>>>1:_>>>1,_=_&1?-306674912^_>>>1:_>>>1,_=_&1?-306674912^_>>>1:_>>>1,N[O]=_;return typeof Int32Array<"u"?new Int32Array(N):N}var r=t();function a(_){var N=0,O=0,G=0,M=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(G=0;G!=256;++G)M[G]=_[G];for(G=0;G!=256;++G)for(O=_[G],N=256+G;N<4096;N+=256)O=M[N]=O>>>8^_[O&255];var L=[];for(G=1;G!=16;++G)L[G-1]=typeof Int32Array<"u"?M.subarray(G*256,G*256+256):M.slice(G*256,G*256+256);return L}var n=a(r),i=n[0],s=n[1],f=n[2],c=n[3],o=n[4],l=n[5],u=n[6],h=n[7],x=n[8],p=n[9],d=n[10],v=n[11],w=n[12],k=n[13],m=n[14];function y(_,N){for(var O=N^-1,G=0,M=_.length;G>>8^r[(O^_.charCodeAt(G++))&255];return~O}function I(_,N){for(var O=N^-1,G=_.length-15,M=0;M>8&255]^w[_[M++]^O>>16&255]^v[_[M++]^O>>>24]^d[_[M++]]^p[_[M++]]^x[_[M++]]^h[_[M++]]^u[_[M++]]^l[_[M++]]^o[_[M++]]^c[_[M++]]^f[_[M++]]^s[_[M++]]^i[_[M++]]^r[_[M++]];for(G+=15;M>>8^r[(O^_[M++])&255];return~O}function S(_,N){for(var O=N^-1,G=0,M=_.length,L=0,J=0;G>>8^r[(O^L)&255]:L<2048?(O=O>>>8^r[(O^(192|L>>6&31))&255],O=O>>>8^r[(O^(128|L&63))&255]):L>=55296&&L<57344?(L=(L&1023)+64,J=_.charCodeAt(G++)&1023,O=O>>>8^r[(O^(240|L>>8&7))&255],O=O>>>8^r[(O^(128|L>>2&63))&255],O=O>>>8^r[(O^(128|J>>6&15|(L&3)<<4))&255],O=O>>>8^r[(O^(128|J&63))&255]):(O=O>>>8^r[(O^(224|L>>12&15))&255],O=O>>>8^r[(O^(128|L>>6&63))&255],O=O>>>8^r[(O^(128|L&63))&255]);return~O}return e.table=r,e.bstr=y,e.buf=I,e.str=S,e}(),ve=function(){var t={};t.version="1.2.1";function r(g,F){for(var E=g.split("/"),T=F.split("/"),A=0,C=0,W=Math.min(E.length,T.length);A>>1,g.write_shift(2,E);var T=F.getFullYear()-1980;T=T<<4|F.getMonth()+1,T=T<<5|F.getDate(),g.write_shift(2,T)}function s(g){var F=g.read_shift(2)&65535,E=g.read_shift(2)&65535,T=new Date,A=E&31;E>>>=5;var C=E&15;E>>>=4,T.setMilliseconds(0),T.setFullYear(E+1980),T.setMonth(C-1),T.setDate(A);var W=F&31;F>>>=5;var j=F&63;return F>>>=6,T.setHours(F),T.setMinutes(j),T.setSeconds(W<<1),T}function f(g){mr(g,0);for(var F={},E=0;g.l<=g.length-4;){var T=g.read_shift(2),A=g.read_shift(2),C=g.l+A,W={};switch(T){case 21589:E=g.read_shift(1),E&1&&(W.mtime=g.read_shift(4)),A>5&&(E&2&&(W.atime=g.read_shift(4)),E&4&&(W.ctime=g.read_shift(4))),W.mtime&&(W.mt=new Date(W.mtime*1e3));break}g.l=C,F[T]=W}return F}var c;function o(){return c||(c={})}function l(g,F){if(g[0]==80&&g[1]==75)return Pi(g,F);if((g[0]|32)==109&&(g[1]|32)==105)return Oo(g,F);if(g.length<512)throw new Error("CFB file size "+g.length+" < 512");var E=3,T=512,A=0,C=0,W=0,j=0,U=0,H=[],X=g.slice(0,512);mr(X,0);var Z=u(X);switch(E=Z[0],E){case 3:T=512;break;case 4:T=4096;break;case 0:if(Z[1]==0)return Pi(g,F);default:throw new Error("Major Version: Expected 3 or 4 saw "+E)}T!==512&&(X=g.slice(0,T),mr(X,28));var fe=g.slice(0,T);h(X,E);var de=X.read_shift(4,"i");if(E===3&&de!==0)throw new Error("# Directory Sectors: Expected 0 saw "+de);X.l+=4,W=X.read_shift(4,"i"),X.l+=4,X.chk("00100000","Mini Stream Cutoff Size: "),j=X.read_shift(4,"i"),A=X.read_shift(4,"i"),U=X.read_shift(4,"i"),C=X.read_shift(4,"i");for(var ae=-1,he=0;he<109&&(ae=X.read_shift(4,"i"),!(ae<0));++he)H[he]=ae;var Ee=x(g,T);v(U,C,Ee,T,H);var $e=k(Ee,W,H,T);$e[W].name="!Directory",A>0&&j!==J&&($e[j].name="!MiniFAT"),$e[H[0]].name="!FAT",$e.fat_addrs=H,$e.ssz=T;var Ke={},wr=[],Na=[],Pa=[];m(W,$e,Ee,wr,A,Ke,Na,j),p(Na,Pa,wr),wr.shift();var La={FileIndex:Na,FullPaths:Pa};return F&&F.raw&&(La.raw={header:fe,sectors:Ee}),La}function u(g){if(g[g.l]==80&&g[g.l+1]==75)return[0,0];g.chk(oe,"Header Signature: "),g.l+=16;var F=g.read_shift(2,"u");return[g.read_shift(2,"u"),F]}function h(g,F){var E=9;switch(g.l+=2,E=g.read_shift(2)){case 9:if(F!=3)throw new Error("Sector Shift: Expected 9 saw "+E);break;case 12:if(F!=4)throw new Error("Sector Shift: Expected 12 saw "+E);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+E)}g.chk("0600","Mini Sector Shift: "),g.chk("000000000000","Reserved: ")}function x(g,F){for(var E=Math.ceil(g.length/F)-1,T=[],A=1;A0&&W>=0;)C.push(F.slice(W*L,W*L+L)),A-=L,W=$t(E,W*4);return C.length===0?z(0):dr(C).slice(0,g.size)}function v(g,F,E,T,A){var C=J;if(g===J){if(F!==0)throw new Error("DIFAT chain shorter than expected")}else if(g!==-1){var W=E[g],j=(T>>>2)-1;if(!W)return;for(var U=0;U=0;){A[U]=!0,C[C.length]=U,W.push(g[U]);var X=E[Math.floor(U*4/T)];if(H=U*4&j,T<4+H)throw new Error("FAT boundary crossed: "+U+" 4 "+T);if(!g[X])break;U=$t(g[X],H)}return{nodes:C,data:cs([W])}}function k(g,F,E,T){var A=g.length,C=[],W=[],j=[],U=[],H=T-1,X=0,Z=0,fe=0,de=0;for(X=0;X=A&&(fe-=A),!W[fe]){U=[];var ae=[];for(Z=fe;Z>=0;){ae[Z]=!0,W[Z]=!0,j[j.length]=Z,U.push(g[Z]);var he=E[Math.floor(Z*4/T)];if(de=Z*4&H,T<4+de)throw new Error("FAT boundary crossed: "+Z+" 4 "+T);if(!g[he]||(Z=$t(g[he],de),ae[Z]))break}C[fe]={nodes:j,data:cs([U])}}return C}function m(g,F,E,T,A,C,W,j){for(var U=0,H=T.length?2:0,X=F[g].data,Z=0,fe=0,de;Z0&&U!==J&&(F[U].name="!StreamData")):he.size>=4096?(he.storage="fat",F[he.start]===void 0&&(F[he.start]=w(E,he.start,F.fat_addrs,F.ssz)),F[he.start].name=he.name,he.content=F[he.start].data.slice(0,he.size)):(he.storage="minifat",he.size<0?he.size=0:U!==J&&he.start!==J&&F[U]&&(he.content=d(he,F[U].data,(F[j]||{}).data))),he.content&&mr(he.content,0),C[de]=he,W.push(he)}}function y(g,F){return new Date((Mr(g,F+4)/1e7*Math.pow(2,32)+Mr(g,F)/1e7-11644473600)*1e3)}function I(g,F){return o(),l(c.readFileSync(g),F)}function S(g,F){var E=F&&F.type;switch(E||Ae&&Buffer.isBuffer(g)&&(E="buffer"),E||"base64"){case"file":return I(g,F);case"base64":return l(Ur(Hr(g)),F);case"binary":return l(Ur(g),F)}return l(g,F)}function _(g,F){var E=F||{},T=E.root||"Root Entry";if(g.FullPaths||(g.FullPaths=[]),g.FileIndex||(g.FileIndex=[]),g.FullPaths.length!==g.FileIndex.length)throw new Error("inconsistent CFB structure");g.FullPaths.length===0&&(g.FullPaths[0]=T+"/",g.FileIndex[0]={name:T,type:5}),E.CLSID&&(g.FileIndex[0].clsid=E.CLSID),N(g)}function N(g){var F="Sh33tJ5";if(!ve.find(g,"/"+F)){var E=z(4);E[0]=55,E[1]=E[3]=50,E[2]=54,g.FileIndex.push({name:F,type:2,content:E,size:4,L:69,R:69,C:69}),g.FullPaths.push(g.FullPaths[0]+F),O(g)}}function O(g,F){_(g);for(var E=!1,T=!1,A=g.FullPaths.length-1;A>=0;--A){var C=g.FileIndex[A];switch(C.type){case 0:T?E=!0:(g.FileIndex.pop(),g.FullPaths.pop());break;case 1:case 2:case 5:T=!0,isNaN(C.R*C.L*C.C)&&(E=!0),C.R>-1&&C.L>-1&&C.R==C.L&&(E=!0);break;default:E=!0;break}}if(!(!E&&!F)){var W=new Date(1987,1,19),j=0,U=Object.create?Object.create(null):{},H=[];for(A=0;A1?1:-1,Z.size=0,Z.type=5;else if(fe.slice(-1)=="/"){for(j=A+1;j=H.length?-1:j,j=A+1;j=H.length?-1:j,Z.type=1}else a(g.FullPaths[A+1]||"")==a(fe)&&(Z.R=A+1),Z.type=2}}}function G(g,F){var E=F||{};if(E.fileType=="mad")return Io(g,E);switch(O(g),E.fileType){case"zip":return Fo(g,E)}var T=function(de){for(var ae=0,he=0,Ee=0;Ee0&&(Ke<4096?ae+=Ke+63>>6:he+=Ke+511>>9)}}for(var wr=de.FullPaths.length+3>>2,Na=ae+7>>3,Pa=ae+127>>7,La=Na+he+wr+Pa,zt=La+127>>7,l0=zt<=109?0:Math.ceil((zt-109)/127);La+zt+l0+127>>7>zt;)l0=++zt<=109?0:Math.ceil((zt-109)/127);var _t=[1,l0,zt,Pa,wr,he,ae,0];return de.FileIndex[0].size=ae<<6,_t[7]=(de.FileIndex[0].start=_t[0]+_t[1]+_t[2]+_t[3]+_t[4]+_t[5])+(_t[6]+7>>3),_t}(g),A=z(T[7]<<9),C=0,W=0;{for(C=0;C<8;++C)A.write_shift(1,ee[C]);for(C=0;C<8;++C)A.write_shift(2,0);for(A.write_shift(2,62),A.write_shift(2,3),A.write_shift(2,65534),A.write_shift(2,9),A.write_shift(2,6),C=0;C<3;++C)A.write_shift(2,0);for(A.write_shift(4,0),A.write_shift(4,T[2]),A.write_shift(4,T[0]+T[1]+T[2]+T[3]-1),A.write_shift(4,0),A.write_shift(4,4096),A.write_shift(4,T[3]?T[0]+T[1]+T[2]-1:J),A.write_shift(4,T[3]),A.write_shift(-4,T[1]?T[0]-1:J),A.write_shift(4,T[1]),C=0;C<109;++C)A.write_shift(-4,C>9)));for(j(T[6]+7>>3);A.l&511;)A.write_shift(-4,ce.ENDOFCHAIN);for(W=C=0,U=0;U=4096)&&(X.start=W,j(H+63>>6)));for(;A.l&511;)A.write_shift(-4,ce.ENDOFCHAIN);for(C=0;C=4096)if(A.l=X.start+1<<9,Ae&&Buffer.isBuffer(X.content))X.content.copy(A,A.l,0,X.size),A.l+=X.size+511&-512;else{for(U=0;U0&&X.size<4096)if(Ae&&Buffer.isBuffer(X.content))X.content.copy(A,A.l,0,X.size),A.l+=X.size+63&-64;else{for(U=0;U>16|F>>8|F)&255}for(var Q=typeof Uint8Array<"u",q=Q?new Uint8Array(256):[],Fe=0;Fe<256;++Fe)q[Fe]=ne(Fe);function D(g,F){var E=q[g&255];return F<=8?E>>>8-F:(E=E<<8|q[g>>8&255],F<=16?E>>>16-F:(E=E<<8|q[g>>16&255],E>>>24-F))}function Ve(g,F){var E=F&7,T=F>>>3;return(g[T]|(E<=6?0:g[T+1]<<8))>>>E&3}function Oe(g,F){var E=F&7,T=F>>>3;return(g[T]|(E<=5?0:g[T+1]<<8))>>>E&7}function We(g,F){var E=F&7,T=F>>>3;return(g[T]|(E<=4?0:g[T+1]<<8))>>>E&15}function De(g,F){var E=F&7,T=F>>>3;return(g[T]|(E<=3?0:g[T+1]<<8))>>>E&31}function le(g,F){var E=F&7,T=F>>>3;return(g[T]|(E<=1?0:g[T+1]<<8))>>>E&127}function Qe(g,F,E){var T=F&7,A=F>>>3,C=(1<>>T;return E<8-T||(W|=g[A+1]<<8-T,E<16-T)||(W|=g[A+2]<<16-T,E<24-T)||(W|=g[A+3]<<24-T),W&C}function Xr(g,F,E){var T=F&7,A=F>>>3;return T<=5?g[A]|=(E&7)<>8-T),F+3}function ct(g,F,E){var T=F&7,A=F>>>3;return E=(E&1)<>>3;return E<<=T,g[A]|=E&255,E>>>=8,g[A+1]=E,F+8}function Ia(g,F,E){var T=F&7,A=F>>>3;return E<<=T,g[A]|=E&255,E>>>=8,g[A+1]=E&255,g[A+2]=E>>>8,F+16}function Ct(g,F){var E=g.length,T=2*E>F?2*E:F+5,A=0;if(E>=F)return g;if(Ae){var C=Xi(T);if(g.copy)g.copy(C);else for(;A>T-Z,W=(1<=0;--W)F[j|W<0;)U[U.l++]=j[H++]}return U.l}function W(j,U){for(var H=0,X=0,Z=Q?new Uint16Array(32768):[];X0;)U[U.l++]=j[X++];H=U.l*8;continue}H=Xr(U,H,+(X+fe==j.length)+2);for(var de=0;fe-- >0;){var ae=j[X];de=(de<<5^ae)&32767;var he=-1,Ee=0;if((he=Z[de])&&(he|=X&-32768,he>X&&(he-=32768),he2){ae=A[Ee],ae<=22?H=mt(U,H,q[ae+1]>>1)-1:(mt(U,H,3),H+=5,mt(U,H,q[ae-23]>>5),H+=3);var $e=ae<8?0:ae-4>>2;$e>0&&(Ia(U,H,Ee-K[ae]),H+=$e),ae=F[X-he],H=mt(U,H,q[ae]>>3),H-=3;var Ke=ae<4?0:ae-2>>1;Ke>0&&(Ia(U,H,X-he-te[ae]),H+=Ke);for(var wr=0;wr>8-ae;for(var he=(1<<7-ae)-1;he>=0;--he)fr[de|he<>>=3){case 16:for(C=3+Ve(g,F),F+=2,de=Ee[Ee.length-1];C-- >0;)Ee.push(de);break;case 17:for(C=3+Oe(g,F),F+=3;C-- >0;)Ee.push(0);break;case 18:for(C=11+le(g,F),F+=7;C-- >0;)Ee.push(0);break;default:Ee.push(de),U>>0,j=0,U=0;!(T&1);){if(T=Oe(g,E),E+=3,T>>>1)T>>1==1?(j=9,U=5):(E=Eo(g,E),j=Gt,U=Ii);else{E&7&&(E+=8-(E&7));var H=g[E>>>3]|g[(E>>>3)+1]<<8;if(E+=32,H>0)for(!F&&W0;)A[C++]=g[E>>>3],E+=8;continue}for(;;){!F&&W>>1==1?bt[X]:er[X];if(E+=Z&15,Z>>>=4,!(Z>>>8&255))A[C++]=Z;else{if(Z==256)break;Z-=257;var fe=Z<8?0:Z-4>>2;fe>5&&(fe=0);var de=C+K[Z];fe>0&&(de+=Qe(g,E,fe),E+=fe),X=Qe(g,E,U),Z=T>>>1==1?Ra[X]:Gr[X],E+=Z&15,Z>>>=4;var ae=Z<4?0:Z-2>>1,he=te[Z];for(ae>0&&(he+=Qe(g,E,ae),E+=ae),!F&&W>>3]:[A.slice(0,C),E+7>>>3]}function Ri(g,F){var E=g.slice(g.l||0),T=To(E,F);return g.l+=T[1],T[0]}function Ni(g,F){if(g)typeof console<"u"&&console.error(F);else throw new Error(F)}function Pi(g,F){var E=g;mr(E,0);var T=[],A=[],C={FileIndex:T,FullPaths:A};_(C,{root:F.root});for(var W=E.length-4;(E[W]!=80||E[W+1]!=75||E[W+2]!=5||E[W+3]!=6)&&W>=0;)--W;E.l=W+4,E.l+=4;var j=E.read_shift(2);E.l+=6;var U=E.read_shift(4);for(E.l=U,W=0;W0&&(E=E.slice(0,E.length-1),E=E.slice(0,E.lastIndexOf("/")+1),C.slice(0,E.length)!=E););var W=(T[1]||"").match(/boundary="(.*?)"/);if(!W)throw new Error("MAD cannot find boundary");var j="--"+(W[1]||""),U=[],H=[],X={FileIndex:U,FullPaths:H};_(X);var Z,fe=0;for(A=0;A=32&&de<128&&++Z;var he=Z>=fe*4/5;A.push(T),A.push("Content-Location: "+(E.root||"file:///C:/SheetJS/")+W),A.push("Content-Transfer-Encoding: "+(he?"quoted-printable":"base64")),A.push("Content-Type: "+yo(j,W)),A.push(""),A.push(he?Co(X):Ao(X))}return A.push(T+`--\r +`),A.join(`\r +`)}function Ro(g){var F={};return _(F,g),F}function o0(g,F,E,T){var A=T&&T.unsafe;A||_(g);var C=!A&&ve.find(g,F);if(!C){var W=g.FullPaths[0];F.slice(0,W.length)==W?W=F:(W.slice(-1)!="/"&&(W+="/"),W=(W+F).replace("//","/")),C={name:n(F),type:2},g.FileIndex.push(C),g.FullPaths.push(W),A||ve.utils.cfb_gc(g)}return C.content=E,C.size=E?E.length:0,T&&(T.CLSID&&(C.clsid=T.CLSID),T.mt&&(C.mt=T.mt),T.ct&&(C.ct=T.ct)),C}function No(g,F){_(g);var E=ve.find(g,F);if(E){for(var T=0;T3&&(a=!0),n[i].slice(n[i].length-1)){case"Y":throw new Error("Unsupported ISO Duration Field: "+n[i].slice(n[i].length-1));case"D":r*=24;case"H":r*=60;case"M":if(a)r*=60;else throw new Error("Unsupported ISO Duration Field: M")}t+=r*parseInt(n[i],10)}return t}var Qi=new Date("2017-02-19T19:06:09.000Z"),Ff=isNaN(Qi.getFullYear())?new Date("2/19/17"):Qi,uu=Ff.getFullYear()==2017;function Ge(e,t){var r=new Date(e);if(uu)return t>0?r.setTime(r.getTime()+r.getTimezoneOffset()*60*1e3):t<0&&r.setTime(r.getTime()-r.getTimezoneOffset()*60*1e3),r;if(e instanceof Date)return e;if(Ff.getFullYear()==1917&&!isNaN(r.getFullYear())){var a=r.getFullYear();return e.indexOf(""+a)>-1||r.setFullYear(r.getFullYear()+100),r}var n=e.match(/\d+/g)||["2017","2","19","0","0","0"],i=new Date(+n[0],+n[1]-1,+n[2],+n[3]||0,+n[4]||0,+n[5]||0);return e.indexOf("Z")>-1&&(i=new Date(i.getTime()-i.getTimezoneOffset()*60*1e3)),i}function ra(e,t){if(Ae&&Buffer.isBuffer(e)){if(t){if(e[0]==255&&e[1]==254)return xt(e.slice(2).toString("utf16le"));if(e[1]==254&&e[2]==255)return xt(uf(e.slice(2).toString("binary")))}return e.toString("binary")}if(typeof TextDecoder<"u")try{if(t){if(e[0]==255&&e[1]==254)return xt(new TextDecoder("utf-16le").decode(e.slice(2)));if(e[0]==254&&e[1]==255)return xt(new TextDecoder("utf-16be").decode(e.slice(2)))}var r={"€":"€","‚":"‚",ƒ:"ƒ","„":"„","…":"…","†":"†","‡":"‡","ˆ":"ˆ","‰":"‰",Š:"Š","‹":"‹",Œ:"Œ",Ž:"Ž","‘":"‘","’":"’","“":"“","”":"”","•":"•","–":"–","—":"—","˜":"˜","™":"™",š:"š","›":"›",œ:"œ",ž:"ž",Ÿ:"Ÿ"};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(i){return r[i]||i})}catch{}for(var a=[],n=0;n!=e.length;++n)a.push(String.fromCharCode(e[n]));return a.join("")}function ze(e){if(typeof JSON<"u"&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if(typeof e!="object"||e==null)return e;if(e instanceof Date)return new Date(e.getTime());var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=ze(e[r]));return t}function Je(e,t){for(var r="";r.length3&&hu.indexOf(s)==-1)return r}else if(s.match(/[a-z]/))return r;return a<0||a>8099?r:(n>0||i>1)&&a!=101?t:e.match(/[^-0-9:,\/\\]/)?r:t}var xu=function(){var e="abacaba".split(/(:?b)/i).length==5;return function(r,a,n){if(e||typeof a=="string")return r.split(a);for(var i=r.split(a),s=[i[0]],f=1;f\r +`,pu=/([^"\s?>\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g,rs=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/mg,vu=/<[^>]*>/g,Cr=ar.match(rs)?rs:vu,mu=/<\w*:/,gu=/<(\/?)\w+:/;function _e(e,t,r){for(var a={},n=0,i=0;n!==e.length&&!((i=e.charCodeAt(n))===32||i===10||i===13);++n);if(t||(a[0]=e.slice(0,n)),n===e.length)return a;var s=e.match(pu),f=0,c="",o=0,l="",u="",h=1;if(s)for(o=0;o!=s.length;++o){for(u=s[o],i=0;i!=u.length&&u.charCodeAt(i)!==61;++i);for(l=u.slice(0,i).trim();u.charCodeAt(i+1)==32;)++i;for(h=(n=u.charCodeAt(i+1))==34||n==39?1:0,c=u.slice(i+1+h,u.length-h),f=0;f!=l.length&&l.charCodeAt(f)!==58;++f);if(f===l.length)l.indexOf("_")>0&&(l=l.slice(0,l.indexOf("_"))),a[l]=c,r||(a[l.toLowerCase()]=c);else{var x=(f===5&&l.slice(0,5)==="xmlns"?"xmlns":"")+l.slice(f+1);if(a[x]&&l.slice(f-3,f)=="ext")continue;a[x]=c,r||(a[x.toLowerCase()]=c)}}return a}function pt(e){return e.replace(gu,"<$1")}var Df={""":'"',"'":"'",">":">","<":"<","&":"&"},Z0=t0(Df),Ie=function(){var e=/&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/ig,t=/_x([\da-fA-F]{4})_/ig;return function r(a){var n=a+"",i=n.indexOf("-1?16:10))||f}).replace(t,function(f,c){return String.fromCharCode(parseInt(c,16))});var s=n.indexOf("]]>");return r(n.slice(0,i))+n.slice(i+9,s)+r(n.slice(s+3))}}(),Q0=/[&<>'"]/g,_u=/[\u0000-\u0008\u000b-\u001f]/g;function Be(e){var t=e+"";return t.replace(Q0,function(r){return Z0[r]}).replace(_u,function(r){return"_x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+"_"})}function ts(e){return Be(e).replace(/ /g,"_x0020_")}var Of=/[\u0000-\u001f]/g;function ei(e){var t=e+"";return t.replace(Q0,function(r){return Z0[r]}).replace(/\n/g,"
").replace(Of,function(r){return"&#x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+";"})}function wu(e){var t=e+"";return t.replace(Q0,function(r){return Z0[r]}).replace(Of,function(r){return"&#x"+r.charCodeAt(0).toString(16).toUpperCase()+";"})}var as=function(){var e=/&#(\d+);/g;function t(r,a){return String.fromCharCode(parseInt(a,10))}return function(a){return a.replace(e,t)}}();function ku(e){return e.replace(/(\r\n|[\r\n])/g," ")}function Xe(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function d0(e){for(var t="",r=0,a=0,n=0,i=0,s=0,f=0;r191&&a<224){s=(a&31)<<6,s|=n&63,t+=String.fromCharCode(s);continue}if(i=e.charCodeAt(r++),a<240){t+=String.fromCharCode((a&15)<<12|(n&63)<<6|i&63);continue}s=e.charCodeAt(r++),f=((a&7)<<18|(n&63)<<12|(i&63)<<6|s&63)-65536,t+=String.fromCharCode(55296+(f>>>10&1023)),t+=String.fromCharCode(56320+(f&1023))}return t}function ns(e){var t=Bt(2*e.length),r,a,n=1,i=0,s=0,f;for(a=0;a>>10&1023),r=56320+(r&1023)),s!==0&&(t[i++]=s&255,t[i++]=s>>>8,s=0),t[i++]=r%256,t[i++]=r>>>8;return t.slice(0,i).toString("ucs2")}function is(e){return Ft(e,"binary").toString("utf8")}var yn="foo bar baz☃🍣",Ue=Ae&&(is(yn)==d0(yn)&&is||ns(yn)==d0(yn)&&ns)||d0,xt=Ae?function(e){return Ft(e,"utf8").toString("binary")}:function(e){for(var t=[],r=0,a=0,n=0;r>6))),t.push(String.fromCharCode(128+(a&63)));break;case(a>=55296&&a<57344):a-=55296,n=e.charCodeAt(r++)-56320+(a<<10),t.push(String.fromCharCode(240+(n>>18&7))),t.push(String.fromCharCode(144+(n>>12&63))),t.push(String.fromCharCode(128+(n>>6&63))),t.push(String.fromCharCode(128+(n&63)));break;default:t.push(String.fromCharCode(224+(a>>12))),t.push(String.fromCharCode(128+(a>>6&63))),t.push(String.fromCharCode(128+(a&63)))}return t.join("")},tn=function(){var e={};return function(r,a){var n=r+"|"+(a||"");return e[n]?e[n]:e[n]=new RegExp("<(?:\\w+:)?"+r+'(?: xml:space="preserve")?(?:[^>]*)>([\\s\\S]*?)",a||"")}}(),If=function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(t){return[new RegExp("&"+t[0]+";","ig"),t[1]]});return function(r){for(var a=r.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+/g,` +`).replace(/<[^>]*>/g,""),n=0;n([\\s\\S]*?)","g")}}(),Tu=/<\/?(?:vt:)?variant>/g,Su=/<(?:vt:)([^>]*)>([\s\S]*)"+t+""}function an(e){return Ze(e).map(function(t){return" "+t+'="'+e[t]+'"'}).join("")}function ie(e,t,r){return"<"+e+(r!=null?an(r):"")+(t!=null?(t.match(Rf)?' xml:space="preserve"':"")+">"+t+""}function D0(e,t){try{return e.toISOString().replace(/\.\d*/,"")}catch(r){if(t)throw r}return""}function Fu(e,t){switch(typeof e){case"string":var r=ie("vt:lpwstr",Be(e));return t&&(r=r.replace(/"/g,"_x0022_")),r;case"number":return ie((e|0)==e?"vt:i4":"vt:r8",Be(String(e)));case"boolean":return ie("vt:bool",e?"true":"false")}if(e instanceof Date)return ie("vt:filetime",D0(e));throw new Error("Unable to serialize "+e)}function ri(e){if(Ae&&Buffer.isBuffer(e))return e.toString("utf8");if(typeof e=="string")return e;if(typeof Uint8Array<"u"&&e instanceof Uint8Array)return Ue(Ht(K0(e)));throw new Error("Bad input format: expected Buffer or string")}var nn=/<(\/?)([^\s?>:\/]+)(?:[\s?:\/][^>]*)?>/mg,or={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},ca=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],Br={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"};function yu(e,t){for(var r=1-2*(e[t+7]>>>7),a=((e[t+7]&127)<<4)+(e[t+6]>>>4&15),n=e[t+6]&15,i=5;i>=0;--i)n=n*256+e[t+i];return a==2047?n==0?r*(1/0):NaN:(a==0?a=-1022:(a-=1023,n+=Math.pow(2,52)),r*Math.pow(2,a-52)*n)}function Au(e,t,r){var a=(t<0||1/t==-1/0?1:0)<<7,n=0,i=0,s=a?-t:t;isFinite(s)?s==0?n=i=0:(n=Math.floor(Math.log(s)/Math.LN2),i=s*Math.pow(2,52-n),n<=-1023&&(!isFinite(i)||i>4|a}var fs=function(e){for(var t=[],r=10240,a=0;a0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(t){return Buffer.isBuffer(t)?t:Ft(t)})):fs(e)}:fs,os=function(e,t,r){for(var a=[],n=t;n0?vn(e,t+4,t+4+r-1):""},Lf=Pf,Bf=function(e,t){var r=Mr(e,t);return r>0?vn(e,t+4,t+4+r-1):""},Mf=Bf,Uf=function(e,t){var r=2*Mr(e,t);return r>0?vn(e,t+4,t+4+r-1):""},Wf=Uf,Hf=function(t,r){var a=Mr(t,r);return a>0?ti(t,r+4,r+4+a):""},Vf=Hf,Xf=function(e,t){var r=Mr(e,t);return r>0?vn(e,t+4,t+4+r):""},Gf=Xf,zf=function(e,t){return yu(e,t)},zn=zf,ai=function(t){return Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array};Ae&&(Lf=function(t,r){if(!Buffer.isBuffer(t))return Pf(t,r);var a=t.readUInt32LE(r);return a>0?t.toString("utf8",r+4,r+4+a-1):""},Mf=function(t,r){if(!Buffer.isBuffer(t))return Bf(t,r);var a=t.readUInt32LE(r);return a>0?t.toString("utf8",r+4,r+4+a-1):""},Wf=function(t,r){if(!Buffer.isBuffer(t))return Uf(t,r);var a=2*t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+a-1)},Vf=function(t,r){if(!Buffer.isBuffer(t))return Hf(t,r);var a=t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+a)},Gf=function(t,r){if(!Buffer.isBuffer(t))return Xf(t,r);var a=t.readUInt32LE(r);return t.toString("utf8",r+4,r+4+a)},zn=function(t,r){return Buffer.isBuffer(t)?t.readDoubleLE(r):zf(t,r)},ai=function(t){return Buffer.isBuffer(t)||Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array});var ma=function(e,t){return e[t]},wt=function(e,t){return e[t+1]*256+e[t]},Cu=function(e,t){var r=e[t+1]*256+e[t];return r<32768?r:(65535-r+1)*-1},Mr=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},$t=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},bu=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function Va(e,t){var r="",a,n,i=[],s,f,c,o;switch(t){case"dbcs":if(o=this.l,Ae&&Buffer.isBuffer(this))r=this.slice(this.l,this.l+2*e).toString("utf16le");else for(c=0;c0?$t:bu)(this,this.l),this.l+=4,a):(n=Mr(this,this.l),this.l+=4,n);case 8:case-8:if(t==="f")return e==8?n=zn(this,this.l):n=zn([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,n;e=8;case 16:r=Nf(this,this.l,e);break}}return this.l+=e,r}var Du=function(e,t,r){e[r]=t&255,e[r+1]=t>>>8&255,e[r+2]=t>>>16&255,e[r+3]=t>>>24&255},Ou=function(e,t,r){e[r]=t&255,e[r+1]=t>>8&255,e[r+2]=t>>16&255,e[r+3]=t>>24&255},Iu=function(e,t,r){e[r]=t&255,e[r+1]=t>>>8&255};function Ru(e,t,r){var a=0,n=0;if(r==="dbcs"){for(n=0;n!=t.length;++n)Iu(this,t.charCodeAt(n),this.l+2*n);a=2*t.length}else if(r==="sbcs"){for(t=t.replace(/[^\x00-\x7F]/g,"_"),n=0;n!=t.length;++n)this[this.l+n]=t.charCodeAt(n)&255;a=t.length}else if(r==="hex"){for(;n>8}for(;this.l>>=8,this[this.l+1]=t&255;break;case 3:a=3,this[this.l]=t&255,t>>>=8,this[this.l+1]=t&255,t>>>=8,this[this.l+2]=t&255;break;case 4:a=4,Du(this,t,this.l);break;case 8:if(a=8,r==="f"){Au(this,t,this.l);break}case 16:break;case-4:a=4,Ou(this,t,this.l);break}return this.l+=a,this}function $f(e,t){var r=Nf(this,this.l,e.length>>1);if(r!==e)throw new Error(t+"Expected "+e+" saw "+r);this.l+=e.length>>1}function mr(e,t){e.l=t,e.read_shift=Va,e.chk=$f,e.write_shift=Ru}function Ar(e,t){e.l+=t}function z(e){var t=Bt(e);return mr(t,0),t}function yt(e,t,r){if(e){var a,n,i;mr(e,e.l||0);for(var s=e.length,f=0,c=0;e.la.l&&(a=a.slice(0,a.l),a.l=a.length),a.length>0&&e.push(a),a=null)},i=function(o){return a&&o=128?1:0)+1,a>=128&&++i,a>=16384&&++i,a>=2097152&&++i;var s=e.next(i);n<=127?s.write_shift(1,n):(s.write_shift(1,(n&127)+128),s.write_shift(1,n>>7));for(var f=0;f!=4;++f)if(a>=128)s.write_shift(1,(a&127)+128),a>>=7;else{s.write_shift(1,a);break}a>0&&ai(r)&&e.push(r)}}function Xa(e,t,r){var a=ze(e);if(t.s?(a.cRel&&(a.c+=t.s.c),a.rRel&&(a.r+=t.s.r)):(a.cRel&&(a.c+=t.c),a.rRel&&(a.r+=t.r)),!r||r.biff<12){for(;a.c>=256;)a.c-=256;for(;a.r>=65536;)a.r-=65536}return a}function hs(e,t,r){var a=ze(e);return a.s=Xa(a.s,t.s,r),a.e=Xa(a.e,t.s,r),a}function Ga(e,t){if(e.cRel&&e.c<0)for(e=ze(e);e.c<0;)e.c+=t>8?16384:256;if(e.rRel&&e.r<0)for(e=ze(e);e.r<0;)e.r+=t>8?1048576:t>5?65536:16384;var r=ge(e);return!e.cRel&&e.cRel!=null&&(r=Lu(r)),!e.rRel&&e.rRel!=null&&(r=Nu(r)),r}function p0(e,t){return e.s.r==0&&!e.s.rRel&&e.e.r==(t.biff>=12?1048575:t.biff>=8?65536:16384)&&!e.e.rRel?(e.s.cRel?"":"$")+je(e.s.c)+":"+(e.e.cRel?"":"$")+je(e.e.c):e.s.c==0&&!e.s.cRel&&e.e.c==(t.biff>=12?16383:255)&&!e.e.cRel?(e.s.rRel?"":"$")+tr(e.s.r)+":"+(e.e.rRel?"":"$")+tr(e.e.r):Ga(e.s,t.biff)+":"+Ga(e.e,t.biff)}function ni(e){return parseInt(Pu(e),10)-1}function tr(e){return""+(e+1)}function Nu(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function Pu(e){return e.replace(/\$(\d+)$/,"$1")}function ii(e){for(var t=Bu(e),r=0,a=0;a!==t.length;++a)r=26*r+t.charCodeAt(a)-64;return r-1}function je(e){if(e<0)throw new Error("invalid column "+e);var t="";for(++e;e;e=Math.floor((e-1)/26))t=String.fromCharCode((e-1)%26+65)+t;return t}function Lu(e){return e.replace(/^([A-Z])/,"$$$1")}function Bu(e){return e.replace(/^\$([A-Z])/,"$1")}function Mu(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function Ye(e){for(var t=0,r=0,a=0;a=48&&n<=57?t=10*t+(n-48):n>=65&&n<=90&&(r=26*r+(n-64))}return{c:r-1,r:t-1}}function ge(e){for(var t=e.c+1,r="";t;t=(t-1)/26|0)r=String.fromCharCode((t-1)%26+65)+r;return r+(e.r+1)}function Pr(e){var t=e.indexOf(":");return t==-1?{s:Ye(e),e:Ye(e)}:{s:Ye(e.slice(0,t)),e:Ye(e.slice(t+1))}}function Te(e,t){return typeof t>"u"||typeof t=="number"?Te(e.s,e.e):(typeof e!="string"&&(e=ge(e)),typeof t!="string"&&(t=ge(t)),e==t?e:e+":"+t)}function Re(e){var t={s:{c:0,r:0},e:{c:0,r:0}},r=0,a=0,n=0,i=e.length;for(r=0;a26);++a)r=26*r+n;for(t.s.c=--r,r=0;a9);++a)r=10*r+n;if(t.s.r=--r,a===i||n!=10)return t.e.c=t.s.c,t.e.r=t.s.r,t;for(++a,r=0;a!=i&&!((n=e.charCodeAt(a)-64)<1||n>26);++a)r=26*r+n;for(t.e.c=--r,r=0;a!=i&&!((n=e.charCodeAt(a)-48)<0||n>9);++a)r=10*r+n;return t.e.r=--r,t}function xs(e,t){var r=e.t=="d"&&t instanceof Date;if(e.z!=null)try{return e.w=Vr(e.z,r?ur(t):t)}catch{}try{return e.w=Vr((e.XF||{}).numFmtId||(r?14:0),r?ur(t):t)}catch{return""+t}}function St(e,t,r){return e==null||e.t==null||e.t=="z"?"":e.w!==void 0?e.w:(e.t=="d"&&!e.z&&r&&r.dateNF&&(e.z=r.dateNF),e.t=="e"?At[e.v]||e.v:t==null?xs(e,e.v):xs(e,t))}function Vt(e,t){var r=t&&t.sheet?t.sheet:"Sheet1",a={};return a[r]=e,{SheetNames:[r],Sheets:a}}function Kf(e,t,r){var a=r||{},n=e?Array.isArray(e):a.dense,i=e||(n?[]:{}),s=0,f=0;if(i&&a.origin!=null){if(typeof a.origin=="number")s=a.origin;else{var c=typeof a.origin=="string"?Ye(a.origin):a.origin;s=c.r,f=c.c}i["!ref"]||(i["!ref"]="A1:A1")}var o={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(i["!ref"]){var l=Re(i["!ref"]);o.s.c=l.s.c,o.s.r=l.s.r,o.e.c=Math.max(o.e.c,l.e.c),o.e.r=Math.max(o.e.r,l.e.r),s==-1&&(o.e.r=s=l.e.r+1)}for(var u=0;u!=t.length;++u)if(t[u]){if(!Array.isArray(t[u]))throw new Error("aoa_to_sheet expects an array of arrays");for(var h=0;h!=t[u].length;++h)if(!(typeof t[u][h]>"u")){var x={v:t[u][h]},p=s+u,d=f+h;if(o.s.r>p&&(o.s.r=p),o.s.c>d&&(o.s.c=d),o.e.r0&&t.write_shift(0,e,"dbcs"),r?t.slice(0,t.l):t}function Wu(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function Hu(e,t){return t||(t=z(4)),t.write_shift(2,e.ich||0),t.write_shift(2,e.ifnt||0),t}function si(e,t){var r=e.l,a=e.read_shift(1),n=yr(e),i=[],s={t:n,h:n};if(a&1){for(var f=e.read_shift(4),c=0;c!=f;++c)i.push(Wu(e));s.r=i}else s.r=[{ich:0,ifnt:0}];return e.l=r+t,s}function Vu(e,t){var r=!1;return t==null&&(r=!0,t=z(15+4*e.t.length)),t.write_shift(1,0),pr(e.t,t),r?t.slice(0,t.l):t}var Xu=si;function Gu(e,t){var r=!1;return t==null&&(r=!0,t=z(23+4*e.t.length)),t.write_shift(1,1),pr(e.t,t),t.write_shift(4,1),Hu({ich:0,ifnt:0},t),r?t.slice(0,t.l):t}function Qr(e){var t=e.read_shift(4),r=e.read_shift(2);return r+=e.read_shift(1)<<16,e.l++,{c:t,iStyleRef:r}}function oa(e,t){return t==null&&(t=z(8)),t.write_shift(-4,e.c),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}function la(e){var t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:t}}function ua(e,t){return t==null&&(t=z(4)),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}var zu=yr,jf=pr;function fi(e){var t=e.read_shift(4);return t===0||t===4294967295?"":e.read_shift(t,"dbcs")}function $n(e,t){var r=!1;return t==null&&(r=!0,t=z(127)),t.write_shift(4,e.length>0?e.length:4294967295),e.length>0&&t.write_shift(0,e,"dbcs"),r?t.slice(0,t.l):t}var $u=yr,O0=fi,ci=$n;function oi(e){var t=e.slice(e.l,e.l+4),r=t[0]&1,a=t[0]&2;e.l+=4;var n=a===0?zn([0,0,0,0,t[0]&252,t[1],t[2],t[3]],0):$t(t,0)>>2;return r?n/100:n}function Yf(e,t){t==null&&(t=z(4));var r=0,a=0,n=e*100;if(e==(e|0)&&e>=-(1<<29)&&e<1<<29?a=1:n==(n|0)&&n>=-(1<<29)&&n<1<<29&&(a=1,r=1),a)t.write_shift(-4,((r?n:e)<<2)+(r+2));else throw new Error("unsupported RkNumber "+e)}function Jf(e){var t={s:{},e:{}};return t.s.r=e.read_shift(4),t.e.r=e.read_shift(4),t.s.c=e.read_shift(4),t.e.c=e.read_shift(4),t}function Ku(e,t){return t||(t=z(16)),t.write_shift(4,e.s.r),t.write_shift(4,e.e.r),t.write_shift(4,e.s.c),t.write_shift(4,e.e.c),t}var ha=Jf,Oa=Ku;function Fr(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function ta(e,t){return(t||z(8)).write_shift(8,e,"f")}function ju(e){var t={},r=e.read_shift(1),a=r>>>1,n=e.read_shift(1),i=e.read_shift(2,"i"),s=e.read_shift(1),f=e.read_shift(1),c=e.read_shift(1);switch(e.l++,a){case 0:t.auto=1;break;case 1:t.index=n;var o=jt[n];o&&(t.rgb=fn(o));break;case 2:t.rgb=fn([s,f,c]);break;case 3:t.theme=n;break}return i!=0&&(t.tint=i>0?i/32767:i/32768),t}function Kn(e,t){if(t||(t=z(8)),!e||e.auto)return t.write_shift(4,0),t.write_shift(4,0),t;e.index!=null?(t.write_shift(1,2),t.write_shift(1,e.index)):e.theme!=null?(t.write_shift(1,6),t.write_shift(1,e.theme)):(t.write_shift(1,5),t.write_shift(1,0));var r=e.tint||0;if(r>0?r*=32767:r<0&&(r*=32768),t.write_shift(2,r),!e.rgb||e.theme!=null)t.write_shift(2,0),t.write_shift(1,0),t.write_shift(1,0);else{var a=e.rgb||"FFFFFF";typeof a=="number"&&(a=("000000"+a.toString(16)).slice(-6)),t.write_shift(1,parseInt(a.slice(0,2),16)),t.write_shift(1,parseInt(a.slice(2,4),16)),t.write_shift(1,parseInt(a.slice(4,6),16)),t.write_shift(1,255)}return t}function Yu(e){var t=e.read_shift(1);e.l++;var r={fBold:t&1,fItalic:t&2,fUnderline:t&4,fStrikeout:t&8,fOutline:t&16,fShadow:t&32,fCondense:t&64,fExtend:t&128};return r}function Ju(e,t){t||(t=z(2));var r=(e.italic?2:0)|(e.strike?8:0)|(e.outline?16:0)|(e.shadow?32:0)|(e.condense?64:0)|(e.extend?128:0);return t.write_shift(1,r),t.write_shift(1,0),t}function qf(e,t){var r={2:"BITMAP",3:"METAFILEPICT",8:"DIB",14:"ENHMETAFILE"},a=e.read_shift(4);switch(a){case 0:return"";case 4294967295:case 4294967294:return r[e.read_shift(4)]||""}if(a>400)throw new Error("Unsupported Clipboard: "+a.toString(16));return e.l-=4,e.read_shift(0,t==1?"lpstr":"lpwstr")}function qu(e){return qf(e,1)}function Zu(e){return qf(e,2)}var li=2,Rr=3,An=11,ds=12,jn=19,Cn=64,Qu=65,eh=71,rh=4108,th=4126,hr=80,Zf=81,ah=[hr,Zf],I0={1:{n:"CodePage",t:li},2:{n:"Category",t:hr},3:{n:"PresentationFormat",t:hr},4:{n:"ByteCount",t:Rr},5:{n:"LineCount",t:Rr},6:{n:"ParagraphCount",t:Rr},7:{n:"SlideCount",t:Rr},8:{n:"NoteCount",t:Rr},9:{n:"HiddenCount",t:Rr},10:{n:"MultimediaClipCount",t:Rr},11:{n:"ScaleCrop",t:An},12:{n:"HeadingPairs",t:rh},13:{n:"TitlesOfParts",t:th},14:{n:"Manager",t:hr},15:{n:"Company",t:hr},16:{n:"LinksUpToDate",t:An},17:{n:"CharacterCount",t:Rr},19:{n:"SharedDoc",t:An},22:{n:"HyperlinksChanged",t:An},23:{n:"AppVersion",t:Rr,p:"version"},24:{n:"DigSig",t:Qu},26:{n:"ContentType",t:hr},27:{n:"ContentStatus",t:hr},28:{n:"Language",t:hr},29:{n:"Version",t:hr},255:{},2147483648:{n:"Locale",t:jn},2147483651:{n:"Behavior",t:jn},1919054434:{}},R0={1:{n:"CodePage",t:li},2:{n:"Title",t:hr},3:{n:"Subject",t:hr},4:{n:"Author",t:hr},5:{n:"Keywords",t:hr},6:{n:"Comments",t:hr},7:{n:"Template",t:hr},8:{n:"LastAuthor",t:hr},9:{n:"RevNumber",t:hr},10:{n:"EditTime",t:Cn},11:{n:"LastPrinted",t:Cn},12:{n:"CreatedDate",t:Cn},13:{n:"ModifiedDate",t:Cn},14:{n:"PageCount",t:Rr},15:{n:"WordCount",t:Rr},16:{n:"CharCount",t:Rr},17:{n:"Thumbnail",t:eh},18:{n:"Application",t:hr},19:{n:"DocSecurity",t:Rr},255:{},2147483648:{n:"Locale",t:jn},2147483651:{n:"Behavior",t:jn},1919054434:{}},ps={1:"US",2:"CA",3:"",7:"RU",20:"EG",30:"GR",31:"NL",32:"BE",33:"FR",34:"ES",36:"HU",39:"IT",41:"CH",43:"AT",44:"GB",45:"DK",46:"SE",47:"NO",48:"PL",49:"DE",52:"MX",55:"BR",61:"AU",64:"NZ",66:"TH",81:"JP",82:"KR",84:"VN",86:"CN",90:"TR",105:"JS",213:"DZ",216:"MA",218:"LY",351:"PT",354:"IS",358:"FI",420:"CZ",886:"TW",961:"LB",962:"JO",963:"SY",964:"IQ",965:"KW",966:"SA",971:"AE",972:"IL",974:"QA",981:"IR",65535:"US"},nh=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];function ih(e){return e.map(function(t){return[t>>16&255,t>>8&255,t&255]})}var sh=ih([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),jt=ze(sh),At={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},Qf={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},N0={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},bn={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function ui(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function fh(e){var t=ui();if(!e||!e.match)return t;var r={};if((e.match(Cr)||[]).forEach(function(a){var n=_e(a);switch(n[0].replace(mu,"<")){case"0?t.calcchains[0]:"",t.sst=t.strs.length>0?t.strs[0]:"",t.style=t.styles.length>0?t.styles[0]:"",t.defaults=r,delete t.calcchains,t}function ec(e,t){var r=cu(N0),a=[],n;a[a.length]=ar,a[a.length]=ie("Types",null,{xmlns:or.CT,"xmlns:xsd":or.xsd,"xmlns:xsi":or.xsi}),a=a.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map(function(c){return ie("Default",null,{Extension:c[0],ContentType:c[1]})}));var i=function(c){e[c]&&e[c].length>0&&(n=e[c][0],a[a.length]=ie("Override",null,{PartName:(n[0]=="/"?"":"/")+n,ContentType:bn[c][t.bookType]||bn[c].xlsx}))},s=function(c){(e[c]||[]).forEach(function(o){a[a.length]=ie("Override",null,{PartName:(o[0]=="/"?"":"/")+o,ContentType:bn[c][t.bookType]||bn[c].xlsx})})},f=function(c){(e[c]||[]).forEach(function(o){a[a.length]=ie("Override",null,{PartName:(o[0]=="/"?"":"/")+o,ContentType:r[c][0]})})};return i("workbooks"),s("sheets"),s("charts"),f("themes"),["strs","styles"].forEach(i),["coreprops","extprops","custprops"].forEach(f),f("vba"),f("comments"),f("threadedcomments"),f("drawings"),s("metadata"),f("people"),a.length>2&&(a[a.length]="",a[1]=a[1].replace("/>",">")),a.join("")}var be={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function sn(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function za(e,t){var r={"!id":{}};if(!e)return r;t.charAt(0)!=="/"&&(t="/"+t);var a={};return(e.match(Cr)||[]).forEach(function(n){var i=_e(n);if(i[0]==="2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}function Le(e,t,r,a,n,i){if(n||(n={}),e["!id"]||(e["!id"]={}),e["!idx"]||(e["!idx"]=1),t<0)for(t=e["!idx"];e["!id"]["rId"+t];++t);if(e["!idx"]=t+1,n.Id="rId"+t,n.Type=a,n.Target=r,i?n.TargetMode=i:[be.HLINK,be.XPATH,be.XMISS].indexOf(n.Type)>-1&&(n.TargetMode="External"),e["!id"][n.Id])throw new Error("Cannot rewrite rId "+t);return e["!id"][n.Id]=n,e[("/"+n.Target).replace("//","/")]=n,t}var ch="application/vnd.oasis.opendocument.spreadsheet";function oh(e,t){for(var r=ri(e),a,n;a=nn.exec(r);)switch(a[3]){case"manifest":break;case"file-entry":if(n=_e(a[0],!1),n.path=="/"&&n.type!==ch)throw new Error("This OpenDocument is not a spreadsheet");break;case"encryption-data":case"algorithm":case"start-key-generation":case"key-derivation":throw new Error("Unsupported ODS Encryption");default:if(t&&t.WTF)throw a}}function lh(e){var t=[ar];t.push(` +`),t.push(` +`);for(var r=0;r +`);return t.push(""),t.join("")}function vs(e,t,r){return[' +`,' +`,` +`].join("")}function uh(e,t){return[' +`,' +`,` +`].join("")}function hh(e){var t=[ar];t.push(` +`);for(var r=0;r!=e.length;++r)t.push(vs(e[r][0],e[r][1])),t.push(uh("",e[r][0]));return t.push(vs("","Document","pkg")),t.push(""),t.join("")}function rc(){return'SheetJS '+Wn.version+""}var Zr=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]],xh=function(){for(var e=new Array(Zr.length),t=0;t]*>([\\s\\S]*?)")}return e}();function tc(e){var t={};e=Ue(e);for(var r=0;r0&&(t[a[1]]=Ie(n[1])),a[2]==="date"&&t[a[1]]&&(t[a[1]]=Ge(t[a[1]]))}return t}function v0(e,t,r,a,n){n[e]!=null||t==null||t===""||(n[e]=t,t=Be(t),a[a.length]=r?ie(e,t,r):_r(e,t))}function ac(e,t){var r=t||{},a=[ar,ie("cp:coreProperties",null,{"xmlns:cp":or.CORE_PROPS,"xmlns:dc":or.dc,"xmlns:dcterms":or.dcterms,"xmlns:dcmitype":or.dcmitype,"xmlns:xsi":or.xsi})],n={};if(!e&&!r.Props)return a.join("");e&&(e.CreatedDate!=null&&v0("dcterms:created",typeof e.CreatedDate=="string"?e.CreatedDate:D0(e.CreatedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},a,n),e.ModifiedDate!=null&&v0("dcterms:modified",typeof e.ModifiedDate=="string"?e.ModifiedDate:D0(e.ModifiedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},a,n));for(var i=0;i!=Zr.length;++i){var s=Zr[i],f=r.Props&&r.Props[s[1]]!=null?r.Props[s[1]]:e?e[s[1]]:null;f===!0?f="1":f===!1?f="0":typeof f=="number"&&(f=String(f)),f!=null&&v0(s[0],f,null,a,n)}return a.length>2&&(a[a.length]="",a[1]=a[1].replace("/>",">")),a.join("")}var Yt=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],nc=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function ic(e,t,r,a){var n=[];if(typeof e=="string")n=ss(e,a);else for(var i=0;i0)for(var o=0;o!==n.length;o+=2){switch(c=+n[o+1].v,n[o].v){case"Worksheets":case"工作表":case"Листы":case"أوراق العمل":case"ワークシート":case"גליונות עבודה":case"Arbeitsblätter":case"Çalışma Sayfaları":case"Feuilles de calcul":case"Fogli di lavoro":case"Folhas de cálculo":case"Planilhas":case"Regneark":case"Hojas de cálculo":case"Werkbladen":r.Worksheets=c,r.SheetNames=s.slice(f,f+c);break;case"Named Ranges":case"Rangos con nombre":case"名前付き一覧":case"Benannte Bereiche":case"Navngivne områder":r.NamedRanges=c,r.DefinedNames=s.slice(f,f+c);break;case"Charts":case"Diagramme":r.Chartsheets=c,r.ChartNames=s.slice(f,f+c);break}f+=c}}function dh(e,t,r){var a={};return t||(t={}),e=Ue(e),Yt.forEach(function(n){var i=(e.match(tn(n[0]))||[])[1];switch(n[2]){case"string":i&&(t[n[1]]=Ie(i));break;case"bool":t[n[1]]=i==="true";break;case"raw":var s=e.match(new RegExp("<"+n[0]+"[^>]*>([\\s\\S]*?)"));s&&s.length>0&&(a[n[1]]=s[1]);break}}),a.HeadingPairs&&a.TitlesOfParts&&ic(a.HeadingPairs,a.TitlesOfParts,t,r),t}function sc(e){var t=[],r=ie;return e||(e={}),e.Application="SheetJS",t[t.length]=ar,t[t.length]=ie("Properties",null,{xmlns:or.EXT_PROPS,"xmlns:vt":or.vt}),Yt.forEach(function(a){if(e[a[1]]!==void 0){var n;switch(a[2]){case"string":n=Be(String(e[a[1]]));break;case"bool":n=e[a[1]]?"true":"false";break}n!==void 0&&(t[t.length]=r(a[0],n))}}),t[t.length]=r("HeadingPairs",r("vt:vector",r("vt:variant","Worksheets")+r("vt:variant",r("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"})),t[t.length]=r("TitlesOfParts",r("vt:vector",e.SheetNames.map(function(a){return""+Be(a)+""}).join(""),{size:e.Worksheets,baseType:"lpstr"})),t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}var ph=/<[^>]+>[^<]*/g;function vh(e,t){var r={},a="",n=e.match(ph);if(n)for(var i=0;i!=n.length;++i){var s=n[i],f=_e(s);switch(f[0]){case"":a=null;break;default:if(s.indexOf(""),o=c[0].slice(4),l=c[1];switch(o){case"lpstr":case"bstr":case"lpwstr":r[a]=Ie(l);break;case"bool":r[a]=Xe(l);break;case"i1":case"i2":case"i4":case"i8":case"int":case"uint":r[a]=parseInt(l,10);break;case"r4":case"r8":case"decimal":r[a]=parseFloat(l);break;case"filetime":case"date":r[a]=Ge(l);break;case"cy":case"error":r[a]=Ie(l);break;default:if(o.slice(-1)=="/")break;t.WTF&&typeof console<"u"&&console.warn("Unexpected",s,o,c)}}else if(s.slice(0,2)!=="2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}var P0={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"},m0;function mh(e,t,r){m0||(m0=t0(P0)),t=m0[t]||t,e[t]=r}function gh(e,t){var r=[];return Ze(P0).map(function(a){for(var n=0;n'+n.join("")+""}function hi(e){var t=e.read_shift(4),r=e.read_shift(4);return new Date((r/1e7*Math.pow(2,32)+t/1e7-11644473600)*1e3).toISOString().replace(/\.000/,"")}function wh(e){var t=typeof e=="string"?new Date(Date.parse(e)):e,r=t.getTime()/1e3+11644473600,a=r%Math.pow(2,32),n=(r-a)/Math.pow(2,32);a*=1e7,n*=1e7;var i=a/Math.pow(2,32)|0;i>0&&(a=a%Math.pow(2,32),n+=i);var s=z(8);return s.write_shift(4,a),s.write_shift(4,n),s}function cc(e,t,r){var a=e.l,n=e.read_shift(0,"lpstr-cp");if(r)for(;e.l-a&3;)++e.l;return n}function oc(e,t,r){var a=e.read_shift(0,"lpwstr");return r&&(e.l+=4-(a.length+1&3)&3),a}function lc(e,t,r){return t===31?oc(e):cc(e,t,r)}function L0(e,t,r){return lc(e,t,r===!1?0:4)}function kh(e,t){if(!t)throw new Error("VtUnalignedString must have positive length");return lc(e,t,0)}function Eh(e){for(var t=e.read_shift(4),r=[],a=0;a!=t;++a){var n=e.l;r[a]=e.read_shift(0,"lpwstr").replace(Ir,""),e.l-n&2&&(e.l+=2)}return r}function Th(e){for(var t=e.read_shift(4),r=[],a=0;a!=t;++a)r[a]=e.read_shift(0,"lpstr-cp").replace(Ir,"");return r}function Sh(e){var t=e.l,r=Yn(e,Zf);e[e.l]==0&&e[e.l+1]==0&&e.l-t&2&&(e.l+=2);var a=Yn(e,Rr);return[r,a]}function Fh(e){for(var t=e.read_shift(4),r=[],a=0;a>3<<2),a}function uc(e){var t=e.read_shift(4),r=e.slice(e.l,e.l+t);return e.l+=t,(t&3)>0&&(e.l+=4-(t&3)&3),r}function yh(e){var t={};return t.Size=e.read_shift(4),e.l+=t.Size+3-(t.Size-1)%4,t}function Yn(e,t,r){var a=e.read_shift(2),n,i=r||{};if(e.l+=2,t!==ds&&a!==t&&ah.indexOf(t)===-1&&!((t&65534)==4126&&(a&65534)==4126))throw new Error("Expected type "+t+" saw "+a);switch(t===ds?a:t){case 2:return n=e.read_shift(2,"i"),i.raw||(e.l+=2),n;case 3:return n=e.read_shift(4,"i"),n;case 11:return e.read_shift(4)!==0;case 19:return n=e.read_shift(4),n;case 30:return cc(e,a,4).replace(Ir,"");case 31:return oc(e);case 64:return hi(e);case 65:return uc(e);case 71:return yh(e);case 80:return L0(e,a,!i.raw).replace(Ir,"");case 81:return kh(e,a).replace(Ir,"");case 4108:return Fh(e);case 4126:case 4127:return a==4127?Eh(e):Th(e);default:throw new Error("TypedPropertyValue unrecognized type "+t+" "+a)}}function gs(e,t){var r=z(4),a=z(4);switch(r.write_shift(4,e==80?31:e),e){case 3:a.write_shift(-4,t);break;case 5:a=z(8),a.write_shift(8,t,"f");break;case 11:a.write_shift(4,t?1:0);break;case 64:a=wh(t);break;case 31:case 80:for(a=z(4+2*(t.length+1)+(t.length%2?0:2)),a.write_shift(4,t.length+1),a.write_shift(0,t,"dbcs");a.l!=a.length;)a.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+e+" "+t)}return dr([r,a])}function _s(e,t){var r=e.l,a=e.read_shift(4),n=e.read_shift(4),i=[],s=0,f=0,c=-1,o={};for(s=0;s!=n;++s){var l=e.read_shift(4),u=e.read_shift(4);i[s]=[l,u+r]}i.sort(function(k,m){return k[1]-m[1]});var h={};for(s=0;s!=n;++s){if(e.l!==i[s][1]){var x=!0;if(s>0&&t)switch(t[i[s-1][0]].t){case 2:e.l+2===i[s][1]&&(e.l+=2,x=!1);break;case 80:e.l<=i[s][1]&&(e.l=i[s][1],x=!1);break;case 4108:e.l<=i[s][1]&&(e.l=i[s][1],x=!1);break}if((!t||s==0)&&e.l<=i[s][1]&&(x=!1,e.l=i[s][1]),x)throw new Error("Read Error: Expected address "+i[s][1]+" at "+e.l+" :"+s)}if(t){var p=t[i[s][0]];if(h[p.n]=Yn(e,p.t,{raw:!0}),p.p==="version"&&(h[p.n]=String(h[p.n]>>16)+"."+("0000"+String(h[p.n]&65535)).slice(-4)),p.n=="CodePage")switch(h[p.n]){case 0:h[p.n]=1252;case 874:case 932:case 936:case 949:case 950:case 1250:case 1251:case 1253:case 1254:case 1255:case 1256:case 1257:case 1258:case 1e4:case 1200:case 1201:case 1252:case 65e3:case-536:case 65001:case-535:at(f=h[p.n]>>>0&65535);break;default:throw new Error("Unsupported CodePage: "+h[p.n])}}else if(i[s][0]===1){if(f=h.CodePage=Yn(e,li),at(f),c!==-1){var d=e.l;e.l=i[c][1],o=ms(e,f),e.l=d}}else if(i[s][0]===0){if(f===0){c=s,e.l=i[s+1][1];continue}o=ms(e,f)}else{var v=o[i[s][0]],w;switch(e[e.l]){case 65:e.l+=4,w=uc(e);break;case 30:e.l+=4,w=L0(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 31:e.l+=4,w=L0(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 3:e.l+=4,w=e.read_shift(4,"i");break;case 19:e.l+=4,w=e.read_shift(4);break;case 5:e.l+=4,w=e.read_shift(8,"f");break;case 11:e.l+=4,w=rr(e,4);break;case 64:e.l+=4,w=Ge(hi(e));break;default:throw new Error("unparsed value: "+e[e.l])}h[v]=w}}return e.l=r+a,h}var hc=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function Ah(e){switch(typeof e){case"boolean":return 11;case"number":return(e|0)==e?3:5;case"string":return 31;case"object":if(e instanceof Date)return 64;break}return-1}function ws(e,t,r){var a=z(8),n=[],i=[],s=8,f=0,c=z(8),o=z(8);if(c.write_shift(4,2),c.write_shift(4,1200),o.write_shift(4,1),i.push(c),n.push(o),s+=8+c.length,!t){o=z(8),o.write_shift(4,0),n.unshift(o);var l=[z(4)];for(l[0].write_shift(4,e.length),f=0;f-1||nc.indexOf(e[f][0])>-1)&&e[f][1]!=null){var h=e[f][1],x=0;if(t){x=+t[e[f][0]];var p=r[x];if(p.p=="version"&&typeof h=="string"){var d=h.split(".");h=(+d[0]<<16)+(+d[1]||0)}c=gs(p.t,h)}else{var v=Ah(h);v==-1&&(v=31,h=String(h)),c=gs(v,h)}i.push(c),o=z(8),o.write_shift(4,t?x:2+f),n.push(o),s+=8+c.length}var w=8*(i.length+1);for(f=0;f=12?2:1),n="sbcs-cont";if(r&&r.biff>=8,!r||r.biff==8){var i=e.read_shift(1);i&&(n="dbcs-cont")}else r.biff==12&&(n="wstr");r.biff>=2&&r.biff<=5&&(n="cpstr");var s=a?e.read_shift(a,n):"";return s}function Oh(e){var t=e.read_shift(2),r=e.read_shift(1),a=r&4,n=r&8,i=1+(r&1),s=0,f,c={};n&&(s=e.read_shift(2)),a&&(f=e.read_shift(4));var o=i==2?"dbcs-cont":"sbcs-cont",l=t===0?"":e.read_shift(t,o);return n&&(e.l+=4*s),a&&(e.l+=f),c.t=l,n||(c.raw=""+c.t+"",c.r=c.t),c}function Ih(e){var t=e.t||"",r=z(3);r.write_shift(2,t.length),r.write_shift(1,1);var a=z(2*t.length);a.write_shift(2*t.length,t,"utf16le");var n=[r,a];return dr(n)}function aa(e,t,r){var a;if(r){if(r.biff>=2&&r.biff<=5)return e.read_shift(t,"cpstr");if(r.biff>=12)return e.read_shift(t,"dbcs-cont")}var n=e.read_shift(1);return n===0?a=e.read_shift(t,"sbcs-cont"):a=e.read_shift(t,"dbcs-cont"),a}function gn(e,t,r){var a=e.read_shift(r&&r.biff==2?1:2);return a===0?(e.l++,""):aa(e,a,r)}function xa(e,t,r){if(r.biff>5)return gn(e,t,r);var a=e.read_shift(1);return a===0?(e.l++,""):e.read_shift(a,r.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function pc(e,t,r){return r||(r=z(3+2*e.length)),r.write_shift(2,e.length),r.write_shift(1,1),r.write_shift(31,e,"utf16le"),r}function Rh(e){var t=e.read_shift(1);e.l++;var r=e.read_shift(2);return e.l+=2,[t,r]}function Nh(e){var t=e.read_shift(4),r=e.l,a=!1;t>24&&(e.l+=t-24,e.read_shift(16)==="795881f43b1d7f48af2c825dc4852763"&&(a=!0),e.l=r);var n=e.read_shift((a?t-24:t)>>1,"utf16le").replace(Ir,"");return a&&(e.l+=24),n}function Ph(e){for(var t=e.read_shift(2),r="";t-- >0;)r+="../";var a=e.read_shift(0,"lpstr-ansi");if(e.l+=2,e.read_shift(2)!=57005)throw new Error("Bad FileMoniker");var n=e.read_shift(4);if(n===0)return r+a.replace(/\\/g,"/");var i=e.read_shift(4);if(e.read_shift(2)!=3)throw new Error("Bad FileMoniker");var s=e.read_shift(i>>1,"utf16le").replace(Ir,"");return r+s}function Lh(e,t){var r=e.read_shift(16);switch(r){case"e0c9ea79f9bace118c8200aa004ba90b":return Nh(e);case"0303000000000000c000000000000046":return Ph(e);default:throw new Error("Unsupported Moniker "+r)}}function Dn(e){var t=e.read_shift(4),r=t>0?e.read_shift(t,"utf16le").replace(Ir,""):"";return r}function Ts(e,t){t||(t=z(6+e.length*2)),t.write_shift(4,1+e.length);for(var r=0;r-1?31:23;switch(a.charAt(0)){case"#":i=28;break;case".":i&=-3;break}t.write_shift(4,2),t.write_shift(4,i);var s=[8,6815827,6619237,4849780,83];for(r=0;r-1?a.slice(0,n):a;for(t.write_shift(4,2*(f.length+1)),r=0;r-1?a.slice(n+1):"",t)}else{for(s="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),r=0;r8?4:2,n=e.read_shift(a),i=e.read_shift(a,"i"),s=e.read_shift(a,"i");return[n,i,s]}function gc(e){var t=e.read_shift(2),r=oi(e);return[t,r]}function Vh(e,t,r){e.l+=4,t-=4;var a=e.l+t,n=mn(e,t,r),i=e.read_shift(2);if(a-=e.l,i!==a)throw new Error("Malformed AddinUdf: padding = "+a+" != "+i);return e.l+=i,n}function i0(e){var t=e.read_shift(2),r=e.read_shift(2),a=e.read_shift(2),n=e.read_shift(2);return{s:{c:a,r:t},e:{c:n,r}}}function _c(e,t){return t||(t=z(8)),t.write_shift(2,e.s.r),t.write_shift(2,e.e.r),t.write_shift(2,e.s.c),t.write_shift(2,e.e.c),t}function wc(e){var t=e.read_shift(2),r=e.read_shift(2),a=e.read_shift(1),n=e.read_shift(1);return{s:{c:a,r:t},e:{c:n,r}}}var Xh=wc;function kc(e){e.l+=4;var t=e.read_shift(2),r=e.read_shift(2),a=e.read_shift(2);return e.l+=12,[r,t,a]}function Gh(e){var t={};return e.l+=4,e.l+=16,t.fSharedNote=e.read_shift(2),e.l+=4,t}function zh(e){var t={};return e.l+=4,e.cf=e.read_shift(2),t}function kr(e){e.l+=2,e.l+=e.read_shift(2)}var $h={0:kr,4:kr,5:kr,6:kr,7:zh,8:kr,9:kr,10:kr,11:kr,12:kr,13:Gh,14:kr,15:kr,16:kr,17:kr,18:kr,19:kr,20:kr,21:kc};function Kh(e,t){for(var r=e.l+t,a=[];e.l=2&&(r.dt=e.read_shift(2),e.l-=2),r.BIFFVer){case 1536:case 1280:case 1024:case 768:case 512:case 2:case 7:break;default:if(t>6)throw new Error("Unexpected BIFF Ver "+r.BIFFVer)}return e.read_shift(t),r}function xi(e,t,r){var a=1536,n=16;switch(r.bookType){case"biff8":break;case"biff5":a=1280,n=8;break;case"biff4":a=4,n=6;break;case"biff3":a=3,n=6;break;case"biff2":a=2,n=4;break;case"xla":break;default:throw new Error("unsupported BIFF version")}var i=z(n);return i.write_shift(2,a),i.write_shift(2,t),n>4&&i.write_shift(2,29282),n>6&&i.write_shift(2,1997),n>8&&(i.write_shift(2,49161),i.write_shift(2,1),i.write_shift(2,1798),i.write_shift(2,0)),i}function jh(e,t){return t===0||e.read_shift(2),1200}function Yh(e,t,r){if(r.enc)return e.l+=t,"";var a=e.l,n=xa(e,0,r);return e.read_shift(t+a-e.l),n}function Jh(e,t){var r=!t||t.biff==8,a=z(r?112:54);for(a.write_shift(t.biff==8?2:1,7),r&&a.write_shift(1,0),a.write_shift(4,859007059),a.write_shift(4,5458548|(r?0:536870912));a.l=8?2:1,a=z(8+r*e.name.length);a.write_shift(4,e.pos),a.write_shift(1,e.hs||0),a.write_shift(1,e.dt),a.write_shift(1,e.name.length),t.biff>=8&&a.write_shift(1,1),a.write_shift(r*e.name.length,e.name,t.biff<8?"sbcs":"utf16le");var n=a.slice(0,a.l);return n.l=a.l,n}function e1(e,t){for(var r=e.l+t,a=e.read_shift(4),n=e.read_shift(4),i=[],s=0;s!=n&&e.l>15),n&=32767);var i={Unsynced:a&1,DyZero:(a&2)>>1,ExAsc:(a&4)>>2,ExDsc:(a&8)>>3};return[i,n]}function s1(e){var t=e.read_shift(2),r=e.read_shift(2),a=e.read_shift(2),n=e.read_shift(2),i=e.read_shift(2),s=e.read_shift(2),f=e.read_shift(2),c=e.read_shift(2),o=e.read_shift(2);return{Pos:[t,r],Dim:[a,n],Flags:i,CurTab:s,FirstTab:f,Selected:c,TabRatio:o}}function f1(){var e=z(18);return e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,29280),e.write_shift(2,17600),e.write_shift(2,56),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,1),e.write_shift(2,500),e}function c1(e,t,r){if(r&&r.biff>=2&&r.biff<5)return{};var a=e.read_shift(2);return{RTL:a&64}}function o1(e){var t=z(18),r=1718;return e&&e.RTL&&(r|=64),t.write_shift(2,r),t.write_shift(4,0),t.write_shift(4,64),t.write_shift(4,0),t.write_shift(4,0),t}function l1(){}function u1(e,t,r){var a={dyHeight:e.read_shift(2),fl:e.read_shift(2)};switch(r&&r.biff||8){case 2:break;case 3:case 4:e.l+=2;break;default:e.l+=10;break}return a.name=mn(e,0,r),a}function h1(e,t){var r=e.name||"Arial",a=t&&t.biff==5,n=a?15+r.length:16+2*r.length,i=z(n);return i.write_shift(2,(e.sz||12)*20),i.write_shift(4,0),i.write_shift(2,400),i.write_shift(4,0),i.write_shift(2,0),i.write_shift(1,r.length),a||i.write_shift(1,1),i.write_shift((a?1:2)*r.length,r,a?"sbcs":"utf16le"),i}function x1(e){var t=vt(e);return t.isst=e.read_shift(4),t}function d1(e,t,r,a){var n=z(10);return na(e,t,a,n),n.write_shift(4,r),n}function p1(e,t,r){r.biffguess&&r.biff==2&&(r.biff=5);var a=e.l+t,n=vt(e);r.biff==2&&e.l++;var i=gn(e,a-e.l,r);return n.val=i,n}function v1(e,t,r,a,n){var i=!n||n.biff==8,s=z(8+ +i+(1+i)*r.length);return na(e,t,a,s),s.write_shift(2,r.length),i&&s.write_shift(1,1),s.write_shift((1+i)*r.length,r,i?"utf16le":"sbcs"),s}function m1(e,t,r){var a=e.read_shift(2),n=xa(e,0,r);return[a,n]}function g1(e,t,r,a){var n=r&&r.biff==5;a||(a=z(n?3+t.length:5+2*t.length)),a.write_shift(2,e),a.write_shift(n?1:2,t.length),n||a.write_shift(1,1),a.write_shift((n?1:2)*t.length,t,n?"sbcs":"utf16le");var i=a.length>a.l?a.slice(0,a.l):a;return i.l==null&&(i.l=i.length),i}var _1=xa;function Fs(e,t,r){var a=e.l+t,n=r.biff==8||!r.biff?4:2,i=e.read_shift(n),s=e.read_shift(n),f=e.read_shift(2),c=e.read_shift(2);return e.l=a,{s:{r:i,c:f},e:{r:s,c}}}function w1(e,t){var r=t.biff==8||!t.biff?4:2,a=z(2*r+6);return a.write_shift(r,e.s.r),a.write_shift(r,e.e.r+1),a.write_shift(2,e.s.c),a.write_shift(2,e.e.c+1),a.write_shift(2,0),a}function k1(e){var t=e.read_shift(2),r=e.read_shift(2),a=gc(e);return{r:t,c:r,ixfe:a[0],rknum:a[1]}}function E1(e,t){for(var r=e.l+t-2,a=e.read_shift(2),n=e.read_shift(2),i=[];e.l>26],a.cellStyles&&(n.alc=i&7,n.fWrap=i>>3&1,n.alcV=i>>4&7,n.fJustLast=i>>7&1,n.trot=i>>8&255,n.cIndent=i>>16&15,n.fShrinkToFit=i>>20&1,n.iReadOrder=i>>22&2,n.fAtrNum=i>>26&1,n.fAtrFnt=i>>27&1,n.fAtrAlc=i>>28&1,n.fAtrBdr=i>>29&1,n.fAtrPat=i>>30&1,n.fAtrProt=i>>31&1,n.dgLeft=s&15,n.dgRight=s>>4&15,n.dgTop=s>>8&15,n.dgBottom=s>>12&15,n.icvLeft=s>>16&127,n.icvRight=s>>23&127,n.grbitDiag=s>>30&3,n.icvTop=f&127,n.icvBottom=f>>7&127,n.icvDiag=f>>14&127,n.dgDiag=f>>21&15,n.icvFore=c&127,n.icvBack=c>>7&127,n.fsxButton=c>>14&1),n}function F1(e,t,r){var a={};return a.ifnt=e.read_shift(2),a.numFmtId=e.read_shift(2),a.flags=e.read_shift(2),a.fStyle=a.flags>>2&1,t-=6,a.data=S1(e,t,a.fStyle,r),a}function ys(e,t,r,a){var n=r&&r.biff==5;a||(a=z(n?16:20)),a.write_shift(2,0),e.style?(a.write_shift(2,e.numFmtId||0),a.write_shift(2,65524)):(a.write_shift(2,e.numFmtId||0),a.write_shift(2,t<<4));var i=0;return e.numFmtId>0&&n&&(i|=1024),a.write_shift(4,i),a.write_shift(4,0),n||a.write_shift(4,0),a.write_shift(2,0),a}function y1(e){e.l+=4;var t=[e.read_shift(2),e.read_shift(2)];if(t[0]!==0&&t[0]--,t[1]!==0&&t[1]--,t[0]>7||t[1]>7)throw new Error("Bad Gutters: "+t.join("|"));return t}function A1(e){var t=z(8);return t.write_shift(4,0),t.write_shift(2,e[0]?e[0]+1:0),t.write_shift(2,e[1]?e[1]+1:0),t}function As(e,t,r){var a=vt(e);(r.biff==2||t==9)&&++e.l;var n=Dh(e);return a.val=n,a.t=n===!0||n===!1?"b":"e",a}function C1(e,t,r,a,n,i){var s=z(8);return na(e,t,a,s),dc(r,i,s),s}function b1(e,t,r){r.biffguess&&r.biff==2&&(r.biff=5);var a=vt(e),n=Fr(e);return a.val=n,a}function D1(e,t,r,a){var n=z(14);return na(e,t,a,n),ta(r,n),n}var Cs=Wh;function O1(e,t,r){var a=e.l+t,n=e.read_shift(2),i=e.read_shift(2);if(r.sbcch=i,i==1025||i==14849)return[i,n];if(i<1||i>255)throw new Error("Unexpected SupBook type: "+i);for(var s=aa(e,i),f=[];a>e.l;)f.push(gn(e));return[i,n,s,f]}function bs(e,t,r){var a=e.read_shift(2),n,i={fBuiltIn:a&1,fWantAdvise:a>>>1&1,fWantPict:a>>>2&1,fOle:a>>>3&1,fOleLink:a>>>4&1,cf:a>>>5&1023,fIcon:a>>>15&1};return r.sbcch===14849&&(n=Vh(e,t-2,r)),i.body=n||e.read_shift(t-2),typeof n=="string"&&(i.Name=n),i}var I1=["_xlnm.Consolidate_Area","_xlnm.Auto_Open","_xlnm.Auto_Close","_xlnm.Extract","_xlnm.Database","_xlnm.Criteria","_xlnm.Print_Area","_xlnm.Print_Titles","_xlnm.Recorder","_xlnm.Data_Form","_xlnm.Auto_Activate","_xlnm.Auto_Deactivate","_xlnm.Sheet_Title","_xlnm._FilterDatabase"];function Ds(e,t,r){var a=e.l+t,n=e.read_shift(2),i=e.read_shift(1),s=e.read_shift(1),f=e.read_shift(r&&r.biff==2?1:2),c=0;(!r||r.biff>=5)&&(r.biff!=5&&(e.l+=2),c=e.read_shift(2),r.biff==5&&(e.l+=2),e.l+=4);var o=aa(e,s,r);n&32&&(o=I1[o.charCodeAt(0)]);var l=a-e.l;r&&r.biff==2&&--l;var u=a==e.l||f===0||!(l>0)?[]:Kv(e,l,r,f);return{chKey:i,Name:o,itab:c,rgce:u}}function Ec(e,t,r){if(r.biff<8)return R1(e,t,r);for(var a=[],n=e.l+t,i=e.read_shift(r.biff>8?4:2);i--!==0;)a.push(Hh(e,r.biff>8?12:6,r));if(e.l!=n)throw new Error("Bad ExternSheet: "+e.l+" != "+n);return a}function R1(e,t,r){e[e.l+1]==3&&e[e.l]++;var a=mn(e,t,r);return a.charCodeAt(0)==3?a.slice(1):a}function N1(e,t,r){if(r.biff<8){e.l+=t;return}var a=e.read_shift(2),n=e.read_shift(2),i=aa(e,a,r),s=aa(e,n,r);return[i,s]}function P1(e,t,r){var a=wc(e);e.l++;var n=e.read_shift(1);return t-=8,[jv(e,t,r),n,a]}function Os(e,t,r){var a=Xh(e);switch(r.biff){case 2:e.l++,t-=7;break;case 3:case 4:e.l+=2,t-=8;break;default:e.l+=6,t-=12}return[a,zv(e,t,r)]}function L1(e){var t=e.read_shift(4)!==0,r=e.read_shift(4)!==0,a=e.read_shift(4);return[t,r,a]}function B1(e,t,r){if(!(r.biff<8)){var a=e.read_shift(2),n=e.read_shift(2),i=e.read_shift(2),s=e.read_shift(2),f=xa(e,0,r);return r.biff<8&&e.read_shift(1),[{r:a,c:n},f,s,i]}}function M1(e,t,r){return B1(e,t,r)}function U1(e,t){for(var r=[],a=e.read_shift(2);a--;)r.push(i0(e));return r}function W1(e){var t=z(2+e.length*8);t.write_shift(2,e.length);for(var r=0;r=(l?f:2*f))break}if(n.length!==f&&n.length!==f*2)throw new Error("cchText: "+f+" != "+n.length);return e.l=a+t,{t:n}}catch{return e.l=a+t,{t:n}}}function z1(e,t){var r=i0(e);e.l+=16;var a=Bh(e,t-24);return[r,a]}function $1(e){var t=z(24),r=Ye(e[0]);t.write_shift(2,r.r),t.write_shift(2,r.r),t.write_shift(2,r.c),t.write_shift(2,r.c);for(var a="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),n=0;n<16;++n)t.write_shift(1,parseInt(a[n],16));return dr([t,Mh(e[1])])}function K1(e,t){e.read_shift(2);var r=i0(e),a=e.read_shift((t-10)/2,"dbcs-cont");return a=a.replace(Ir,""),[r,a]}function j1(e){var t=e[1].Tooltip,r=z(10+2*(t.length+1));r.write_shift(2,2048);var a=Ye(e[0]);r.write_shift(2,a.r),r.write_shift(2,a.r),r.write_shift(2,a.c),r.write_shift(2,a.c);for(var n=0;n0;)r.push(mc(e));return r}function Z1(e){for(var t=e.read_shift(2),r=[];t-- >0;)r.push(mc(e));return r}function Q1(e){e.l+=2;var t={cxfs:0,crc:0};return t.cxfs=e.read_shift(2),t.crc=e.read_shift(4),t}function Tc(e,t,r){if(!r.cellStyles)return Ar(e,t);var a=r&&r.biff>=12?4:2,n=e.read_shift(a),i=e.read_shift(a),s=e.read_shift(a),f=e.read_shift(a),c=e.read_shift(2);a==2&&(e.l+=2);var o={s:n,e:i,w:s,ixfe:f,flags:c};return(r.biff>=5||!r.biff)&&(o.level=c>>8&7),o}function ex(e,t){var r=z(12);r.write_shift(2,t),r.write_shift(2,t),r.write_shift(2,e.width*256),r.write_shift(2,0);var a=0;return e.hidden&&(a|=1),r.write_shift(1,a),a=e.level||0,r.write_shift(1,a),r.write_shift(2,0),r}function rx(e,t){var r={};return t<32||(e.l+=16,r.header=Fr(e),r.footer=Fr(e),e.l+=2),r}function tx(e,t,r){var a={area:!1};if(r.biff!=5)return e.l+=t,a;var n=e.read_shift(1);return e.l+=3,n&16&&(a.area=!0),a}function ax(e){for(var t=z(2*e),r=0;r1048576&&(d=1e6),u!=2&&(v=l.read_shift(2));var w=l.read_shift(2),k=c.codepage||1252;u!=2&&(l.l+=16,l.read_shift(1),l[l.l]!==0&&(k=e[l[l.l]]),l.l+=1,l.l+=2),p&&(l.l+=36);for(var m=[],y={},I=Math.min(l.length,u==2?521:v-10-(x?264:0)),S=p?32:11;l.l0;){if(l[l.l]===42){l.l+=w;continue}for(++l.l,o[++_]=[],N=0,N=0;N!=m.length;++N){var O=l.slice(l.l,l.l+m[N].len);l.l+=m[N].len,mr(O,0);var G=Ot.utils.decode(k,O);switch(m[N].type){case"C":G.trim().length&&(o[_][N]=G.replace(/\s+$/,""));break;case"D":G.length===8?o[_][N]=new Date(+G.slice(0,4),+G.slice(4,6)-1,+G.slice(6,8)):o[_][N]=G;break;case"F":o[_][N]=parseFloat(G.trim());break;case"+":case"I":o[_][N]=p?O.read_shift(-4,"i")^2147483648:O.read_shift(4,"i");break;case"L":switch(G.trim().toUpperCase()){case"Y":case"T":o[_][N]=!0;break;case"N":case"F":o[_][N]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+G+"|")}break;case"M":if(!h)throw new Error("DBF Unexpected MEMO for type "+u.toString(16));o[_][N]="##MEMO##"+(p?parseInt(G.trim(),10):O.read_shift(4));break;case"N":G=G.replace(/\u0000/g,"").trim(),G&&G!="."&&(o[_][N]=+G||0);break;case"@":o[_][N]=new Date(O.read_shift(-8,"f")-621356832e5);break;case"T":o[_][N]=new Date((O.read_shift(4)-2440588)*864e5+O.read_shift(4));break;case"Y":o[_][N]=O.read_shift(4,"i")/1e4+O.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":o[_][N]=-O.read_shift(-8,"f");break;case"B":if(x&&m[N].len==8){o[_][N]=O.read_shift(8,"f");break}case"G":case"P":O.l+=m[N].len;break;case"0":if(m[N].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+m[N].type)}}}if(u!=2&&l.l=0&&at(+o.codepage),o.type=="string")throw new Error("Cannot write DBF to JS string");var l=Nr(),u=Zn(f,{header:1,raw:!0,cellDates:!0}),h=u[0],x=u.slice(1),p=f["!cols"]||[],d=0,v=0,w=0,k=1;for(d=0;d250&&(O=250),N=((p[d]||{}).DBF||{}).type,N=="C"&&p[d].DBF.len>O&&(O=p[d].DBF.len),_=="B"&&N=="N"&&(_="N",S[d]=p[d].DBF.dec,O=p[d].DBF.len),I[d]=_=="C"||N=="N"?O:i[_]||0,k+=I[d],y[d]=_}var M=l.next(32);for(M.write_shift(4,318902576),M.write_shift(4,x.length),M.write_shift(2,296+32*w),M.write_shift(2,k),d=0;d<4;++d)M.write_shift(4,0);for(M.write_shift(4,0|(+t[lf]||3)<<8),d=0,v=0;d":190,"?":191,"{":223},t=new RegExp("\x1BN("+Ze(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),r=function(h,x){var p=e[x];return typeof p=="number"?Vi(p):p},a=function(h,x,p){var d=x.charCodeAt(0)-32<<4|p.charCodeAt(0)-48;return d==59?h:Vi(d)};e["|"]=254;function n(h,x){switch(x.type){case"base64":return i(Hr(h),x);case"binary":return i(h,x);case"buffer":return i(Ae&&Buffer.isBuffer(h)?h.toString("binary"):Ht(h),x);case"array":return i(ra(h),x)}throw new Error("Unrecognized type "+x.type)}function i(h,x){var p=h.split(/[\n\r]+/),d=-1,v=-1,w=0,k=0,m=[],y=[],I=null,S={},_=[],N=[],O=[],G=0,M;for(+x.codepage>=0&&at(+x.codepage);w!==p.length;++w){G=0;var L=p[w].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,a).replace(t,r),J=L.replace(/;;/g,"\0").split(";").map(function(P){return P.replace(/\u0000/g,";")}),oe=J[0],ee;if(L.length>0)switch(oe){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":J[1].charAt(0)=="P"&&y.push(L.slice(3).replace(/;;/g,";"));break;case"C":var ue=!1,ce=!1,ke=!1,V=!1,xe=-1,pe=-1;for(k=1;k-1&&m[xe][pe];if(!B||!B[1])throw new Error("SYLK shared formula cannot find base");m[d][v][1]=Vc(B[1],{r:d-xe,c:v-pe})}break;case"F":var R=0;for(k=1;k0?(_[d].hpt=G,_[d].hpx=Ca(G)):G===0&&(_[d].hidden=!0);break;default:if(x&&x.WTF)throw new Error("SYLK bad record "+L)}R<1&&(I=null);break;default:if(x&&x.WTF)throw new Error("SYLK bad record "+L)}}return _.length>0&&(S["!rows"]=_),N.length>0&&(S["!cols"]=N),x&&x.sheetRows&&(m=m.slice(0,x.sheetRows)),[m,S]}function s(h,x){var p=n(h,x),d=p[0],v=p[1],w=Da(d,x);return Ze(v).forEach(function(k){w[k]=v[k]}),w}function f(h,x){return Vt(s(h,x),x)}function c(h,x,p,d){var v="C;Y"+(p+1)+";X"+(d+1)+";K";switch(h.t){case"n":v+=h.v||0,h.f&&!h.F&&(v+=";E"+_i(h.f,{r:p,c:d}));break;case"b":v+=h.v?"TRUE":"FALSE";break;case"e":v+=h.w||h.v;break;case"d":v+='"'+(h.w||h.v)+'"';break;case"s":v+='"'+h.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return v}function o(h,x){x.forEach(function(p,d){var v="F;W"+(d+1)+" "+(d+1)+" ";p.hidden?v+="0":(typeof p.width=="number"&&!p.wpx&&(p.wpx=cn(p.width)),typeof p.wpx=="number"&&!p.wch&&(p.wch=on(p.wpx)),typeof p.wch=="number"&&(v+=Math.round(p.wch))),v.charAt(v.length-1)!=" "&&h.push(v)})}function l(h,x){x.forEach(function(p,d){var v="F;";p.hidden?v+="M0;":p.hpt?v+="M"+20*p.hpt+";":p.hpx&&(v+="M"+20*ln(p.hpx)+";"),v.length>2&&h.push(v+"R"+(d+1))})}function u(h,x){var p=["ID;PWXL;N;E"],d=[],v=Re(h["!ref"]),w,k=Array.isArray(h),m=`\r +`;p.push("P;PGeneral"),p.push("F;P0;DG0G8;M255"),h["!cols"]&&o(p,h["!cols"]),h["!rows"]&&l(p,h["!rows"]),p.push("B;Y"+(v.e.r-v.s.r+1)+";X"+(v.e.c-v.s.c+1)+";D"+[v.s.c,v.s.r,v.e.c,v.e.r].join(" "));for(var y=v.s.r;y<=v.e.r;++y)for(var I=v.s.c;I<=v.e.c;++I){var S=ge({r:y,c:I});w=k?(h[y]||[])[I]:h[S],!(!w||w.v==null&&(!w.f||w.F))&&d.push(c(w,h,y,I))}return p.join(m)+m+d.join(m)+m+"E"+m}return{to_workbook:f,to_sheet:s,from_sheet:u}}(),Fc=function(){function e(i,s){switch(s.type){case"base64":return t(Hr(i),s);case"binary":return t(i,s);case"buffer":return t(Ae&&Buffer.isBuffer(i)?i.toString("binary"):Ht(i),s);case"array":return t(ra(i),s)}throw new Error("Unrecognized type "+s.type)}function t(i,s){for(var f=i.split(` +`),c=-1,o=-1,l=0,u=[];l!==f.length;++l){if(f[l].trim()==="BOT"){u[++c]=[],o=0;continue}if(!(c<0)){var h=f[l].trim().split(","),x=h[0],p=h[1];++l;for(var d=f[l]||"";(d.match(/["]/g)||[]).length&1&&l=0&&p[d].length===0;)--d;for(var v=10,w=0,k=0;k<=d;++k)w=p[k].indexOf(" "),w==-1?w=p[k].length:w++,v=Math.max(v,w);for(k=0;k<=d;++k){x[k]=[];var m=0;for(e(p[k].slice(0,v).trim(),x,k,m,h),m=1;m<=(p[k].length-v)/10+1;++m)e(p[k].slice(v+(m-1)*10,v+m*10).trim(),x,k,m,h)}return h.sheetRows&&(x=x.slice(0,h.sheetRows)),x}var r={44:",",9:" ",59:";",124:"|"},a={44:3,9:2,59:1,124:0};function n(l){for(var u={},h=!1,x=0,p=0;x0&&G(),p["!ref"]=Te(d),p}function s(l,u){return!(u&&u.PRN)||u.FS||l.slice(0,4)=="sep="||l.indexOf(" ")>=0||l.indexOf(",")>=0||l.indexOf(";")>=0?i(l,u):Da(t(l,u),u)}function f(l,u){var h="",x=u.type=="string"?[0,0,0,0]:Ai(l,u);switch(u.type){case"base64":h=Hr(l);break;case"binary":h=l;break;case"buffer":u.codepage==65001?h=l.toString("utf8"):u.codepage&&typeof Ot<"u"?h=Ot.utils.decode(u.codepage,l):h=Ae&&Buffer.isBuffer(l)?l.toString("binary"):Ht(l);break;case"array":h=ra(l);break;case"string":h=l;break;default:throw new Error("Unrecognized type "+u.type)}return x[0]==239&&x[1]==187&&x[2]==191?h=Ue(h.slice(3)):u.type!="string"&&u.type!="buffer"&&u.codepage==65001?h=Ue(h):u.type=="binary"&&typeof Ot<"u"&&u.codepage&&(h=Ot.utils.decode(u.codepage,Ot.utils.encode(28591,h))),h.slice(0,19)=="socialcalc:version:"?yc.to_sheet(u.type=="string"?h:Ue(h),u):s(h,u)}function c(l,u){return Vt(f(l,u),u)}function o(l){for(var u=[],h=Re(l["!ref"]),x,p=Array.isArray(l),d=h.s.r;d<=h.e.r;++d){for(var v=[],w=h.s.c;w<=h.e.c;++w){var k=ge({r:d,c:w});if(x=p?(l[d]||[])[w]:l[k],!x||x.v==null){v.push(" ");continue}for(var m=(x.w||(St(x),x.w)||"").slice(0,10);m.length<10;)m+=" ";v.push(m+(w===0?" ":""))}u.push(v.join(""))}return u.join(` +`)}return{to_workbook:c,to_sheet:f,from_sheet:o}}();function mx(e,t){var r=t||{},a=!!r.WTF;r.WTF=!0;try{var n=Sc.to_workbook(e,r);return r.WTF=a,n}catch(i){if(r.WTF=a,!i.message.match(/SYLK bad record ID/)&&a)throw i;return Aa.to_workbook(e,t)}}var Jt=function(){function e(b,B,R){if(b){mr(b,b.l||0);for(var P=R.Enum||xe;b.l=16&&b[14]==5&&b[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(b[2]==2)R.Enum=xe,e(b,function(le,Qe,Xr){switch(Xr){case 0:R.vers=le,le>=4096&&(R.qpro=!0);break;case 6:D=le;break;case 204:le&&(te=le);break;case 222:te=le;break;case 15:case 51:R.qpro||(le[1].v=le[1].v.slice(1));case 13:case 14:case 16:Xr==14&&(le[2]&112)==112&&(le[2]&15)>1&&(le[2]&15)<15&&(le[1].z=R.dateNF||me[14],R.cellDates&&(le[1].t="d",le[1].v=n0(le[1].v))),R.qpro&&le[3]>ne&&(P["!ref"]=Te(D),Q[K]=P,q.push(K),P=R.dense?[]:{},D={s:{r:0,c:0},e:{r:0,c:0}},ne=le[3],K=te||"Sheet"+(ne+1),te="");var ct=R.dense?(P[le[0].r]||[])[le[0].c]:P[ge(le[0])];if(ct){ct.t=le[1].t,ct.v=le[1].v,le[1].z!=null&&(ct.z=le[1].z),le[1].f!=null&&(ct.f=le[1].f);break}R.dense?(P[le[0].r]||(P[le[0].r]=[]),P[le[0].r][le[0].c]=le[1]):P[ge(le[0])]=le[1];break}},R);else if(b[2]==26||b[2]==14)R.Enum=pe,b[2]==14&&(R.qpro=!0,b.l=0),e(b,function(le,Qe,Xr){switch(Xr){case 204:K=le;break;case 22:le[1].v=le[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(le[3]>ne&&(P["!ref"]=Te(D),Q[K]=P,q.push(K),P=R.dense?[]:{},D={s:{r:0,c:0},e:{r:0,c:0}},ne=le[3],K="Sheet"+(ne+1)),Ve>0&&le[0].r>=Ve)break;R.dense?(P[le[0].r]||(P[le[0].r]=[]),P[le[0].r][le[0].c]=le[1]):P[ge(le[0])]=le[1],D.e.c=0&&at(+R.codepage),R.type=="string")throw new Error("Cannot write WK1 to JS string");var P=Nr(),K=Re(b["!ref"]),te=Array.isArray(b),ne=[];se(P,0,i(1030)),se(P,6,c(K));for(var Q=Math.min(K.e.r,8191),q=K.s.r;q<=Q;++q)for(var Fe=tr(q),D=K.s.c;D<=K.e.c;++D){q===K.s.r&&(ne[D]=je(D));var Ve=ne[D]+Fe,Oe=te?(b[q]||[])[D]:b[Ve];if(!(!Oe||Oe.t=="z"))if(Oe.t=="n")(Oe.v|0)==Oe.v&&Oe.v>=-32768&&Oe.v<=32767?se(P,13,x(q,D,Oe.v)):se(P,14,d(q,D,Oe.v));else{var We=St(Oe);se(P,15,u(q,D,We.slice(0,239)))}}return se(P,1),P.end()}function n(b,B){var R=B||{};if(+R.codepage>=0&&at(+R.codepage),R.type=="string")throw new Error("Cannot write WK3 to JS string");var P=Nr();se(P,0,s(b));for(var K=0,te=0;K8191&&(R=8191),B.write_shift(2,R),B.write_shift(1,K),B.write_shift(1,P),B.write_shift(2,0),B.write_shift(2,0),B.write_shift(1,1),B.write_shift(1,2),B.write_shift(4,0),B.write_shift(4,0),B}function f(b,B,R){var P={s:{c:0,r:0},e:{c:0,r:0}};return B==8&&R.qpro?(P.s.c=b.read_shift(1),b.l++,P.s.r=b.read_shift(2),P.e.c=b.read_shift(1),b.l++,P.e.r=b.read_shift(2),P):(P.s.c=b.read_shift(2),P.s.r=b.read_shift(2),B==12&&R.qpro&&(b.l+=2),P.e.c=b.read_shift(2),P.e.r=b.read_shift(2),B==12&&R.qpro&&(b.l+=2),P.s.c==65535&&(P.s.c=P.e.c=P.s.r=P.e.r=0),P)}function c(b){var B=z(8);return B.write_shift(2,b.s.c),B.write_shift(2,b.s.r),B.write_shift(2,b.e.c),B.write_shift(2,b.e.r),B}function o(b,B,R){var P=[{c:0,r:0},{t:"n",v:0},0,0];return R.qpro&&R.vers!=20768?(P[0].c=b.read_shift(1),P[3]=b.read_shift(1),P[0].r=b.read_shift(2),b.l+=2):(P[2]=b.read_shift(1),P[0].c=b.read_shift(2),P[0].r=b.read_shift(2)),P}function l(b,B,R){var P=b.l+B,K=o(b,B,R);if(K[1].t="s",R.vers==20768){b.l++;var te=b.read_shift(1);return K[1].v=b.read_shift(te,"utf8"),K}return R.qpro&&b.l++,K[1].v=b.read_shift(P-b.l,"cstr"),K}function u(b,B,R){var P=z(7+R.length);P.write_shift(1,255),P.write_shift(2,B),P.write_shift(2,b),P.write_shift(1,39);for(var K=0;K=128?95:te)}return P.write_shift(1,0),P}function h(b,B,R){var P=o(b,B,R);return P[1].v=b.read_shift(2,"i"),P}function x(b,B,R){var P=z(7);return P.write_shift(1,255),P.write_shift(2,B),P.write_shift(2,b),P.write_shift(2,R,"i"),P}function p(b,B,R){var P=o(b,B,R);return P[1].v=b.read_shift(8,"f"),P}function d(b,B,R){var P=z(13);return P.write_shift(1,255),P.write_shift(2,B),P.write_shift(2,b),P.write_shift(8,R,"f"),P}function v(b,B,R){var P=b.l+B,K=o(b,B,R);if(K[1].v=b.read_shift(8,"f"),R.qpro)b.l=P;else{var te=b.read_shift(2);y(b.slice(b.l,b.l+te),K),b.l+=te}return K}function w(b,B,R){var P=B&32768;return B&=-32769,B=(P?b:0)+(B>=8192?B-16384:B),(P?"":"$")+(R?je(B):tr(B))}var k={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},m=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function y(b,B){mr(b,0);for(var R=[],P=0,K="",te="",ne="",Q="";b.lR.length){console.error("WK1 bad formula parse 0x"+q.toString(16)+":|"+R.join("|")+"|");return}var Oe=R.slice(-P);R.length-=P,R.push(k[q][0]+"("+Oe.join(",")+")")}else return q<=7?console.error("WK1 invalid opcode "+q.toString(16)):q<=24?console.error("WK1 unsupported op "+q.toString(16)):q<=30?console.error("WK1 invalid opcode "+q.toString(16)):q<=115?console.error("WK1 unsupported function opcode "+q.toString(16)):console.error("WK1 unrecognized opcode "+q.toString(16))}}R.length==1?B[1].f=""+R[0]:console.error("WK1 bad formula parse |"+R.join("|")+"|")}function I(b){var B=[{c:0,r:0},{t:"n",v:0},0];return B[0].r=b.read_shift(2),B[3]=b[b.l++],B[0].c=b[b.l++],B}function S(b,B){var R=I(b);return R[1].t="s",R[1].v=b.read_shift(B-4,"cstr"),R}function _(b,B,R,P){var K=z(6+P.length);K.write_shift(2,b),K.write_shift(1,R),K.write_shift(1,B),K.write_shift(1,39);for(var te=0;te=128?95:ne)}return K.write_shift(1,0),K}function N(b,B){var R=I(b);R[1].v=b.read_shift(2);var P=R[1].v>>1;if(R[1].v&1)switch(P&7){case 0:P=(P>>3)*5e3;break;case 1:P=(P>>3)*500;break;case 2:P=(P>>3)/20;break;case 3:P=(P>>3)/200;break;case 4:P=(P>>3)/2e3;break;case 5:P=(P>>3)/2e4;break;case 6:P=(P>>3)/16;break;case 7:P=(P>>3)/64;break}return R[1].v=P,R}function O(b,B){var R=I(b),P=b.read_shift(4),K=b.read_shift(4),te=b.read_shift(2);if(te==65535)return P===0&&K===3221225472?(R[1].t="e",R[1].v=15):P===0&&K===3489660928?(R[1].t="e",R[1].v=42):R[1].v=0,R;var ne=te&32768;return te=(te&32767)-16446,R[1].v=(1-ne*2)*(K*Math.pow(2,te+32)+P*Math.pow(2,te)),R}function G(b,B,R,P){var K=z(14);if(K.write_shift(2,b),K.write_shift(1,R),K.write_shift(1,B),P==0)return K.write_shift(4,0),K.write_shift(4,0),K.write_shift(2,65535),K;var te=0,ne=0,Q=0,q=0;return P<0&&(te=1,P=-P),ne=Math.log2(P)|0,P/=Math.pow(2,ne-31),q=P>>>0,q&2147483648||(P/=2,++ne,q=P>>>0),P-=q,q|=2147483648,q>>>=0,P*=Math.pow(2,32),Q=P>>>0,K.write_shift(4,Q),K.write_shift(4,q),ne+=16383+(te?32768:0),K.write_shift(2,ne),K}function M(b,B){var R=O(b);return b.l+=B-14,R}function L(b,B){var R=I(b),P=b.read_shift(4);return R[1].v=P>>6,R}function J(b,B){var R=I(b),P=b.read_shift(8,"f");return R[1].v=P,R}function oe(b,B){var R=J(b);return b.l+=B-10,R}function ee(b,B){return b[b.l+B-1]==0?b.read_shift(B,"cstr"):""}function ue(b,B){var R=b[b.l++];R>B-1&&(R=B-1);for(var P="";P.length127?95:K}return R[R.l++]=0,R}var xe={0:{n:"BOF",f:sr},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:h},14:{n:"NUMBER",f:p},15:{n:"LABEL",f:l},16:{n:"FORMULA",f:v},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:l},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:ee},222:{n:"SHEETNAMELP",f:ue},65535:{n:""}},pe={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:S},23:{n:"NUMBER17",f:O},24:{n:"NUMBER18",f:N},25:{n:"FORMULA19",f:M},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:ke},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:L},38:{n:"??"},39:{n:"NUMBER27",f:J},40:{n:"FORMULA28",f:oe},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:ee},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:ce},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:a,book_to_wk3:n,to_workbook:t}}();function gx(e){var t={},r=e.match(Cr),a=0,n=!1;if(r)for(;a!=r.length;++a){var i=_e(r[a]);switch(i[0].replace(/\w*:/g,"")){case"":case"":t.shadow=1;break;case"":break;case"":case"":t.outline=1;break;case"":break;case"":case"":t.strike=1;break;case"":break;case"":case"":t.u=1;break;case"":break;case"":case"":t.b=1;break;case"":break;case"":case"":t.i=1;break;case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":break;case"":n=!1;break;default:if(i[0].charCodeAt(1)!==47&&!n)throw new Error("Unrecognized rich format "+i[0])}}return t}var _x=function(){var e=tn("t"),t=tn("rPr");function r(i){var s=i.match(e);if(!s)return{t:"s",v:""};var f={t:"s",v:Ie(s[1])},c=i.match(t);return c&&(f.s=gx(c[1])),f}var a=/<(?:\w+:)?r>/g,n=/<\/(?:\w+:)?r>/;return function(s){return s.replace(a,"").split(n).map(r).filter(function(f){return f.v})}}(),wx=function(){var t=/(\r\n|\n)/g;function r(n,i,s){var f=[];n.u&&f.push("text-decoration: underline;"),n.uval&&f.push("text-underline-style:"+n.uval+";"),n.sz&&f.push("font-size:"+n.sz+"pt;"),n.outline&&f.push("text-effect: outline;"),n.shadow&&f.push("text-shadow: auto;"),i.push(''),n.b&&(i.push(""),s.push("")),n.i&&(i.push(""),s.push("")),n.strike&&(i.push(""),s.push(""));var c=n.valign||"";return c=="superscript"||c=="super"?c="sup":c=="subscript"&&(c="sub"),c!=""&&(i.push("<"+c+">"),s.push("")),s.push(""),n}function a(n){var i=[[],n.v,[]];return n.v?(n.s&&r(n.s,i[0],i[2]),i[0].join("")+i[1].replace(t,"
")+i[2].join("")):""}return function(i){return i.map(a).join("")}}(),kx=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,Ex=/<(?:\w+:)?r>/,Tx=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;function di(e,t){var r=t?t.cellHTML:!0,a={};return e?(e.match(/^\s*<(?:\w+:)?t[^>]*>/)?(a.t=Ie(Ue(e.slice(e.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||"")),a.r=Ue(e),r&&(a.h=ei(a.t))):e.match(Ex)&&(a.r=Ue(e),a.t=Ie(Ue((e.replace(Tx,"").match(kx)||[]).join("").replace(Cr,""))),r&&(a.h=wx(_x(a.r)))),a):{t:""}}var Sx=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/,Fx=/<(?:\w+:)?(?:si|sstItem)>/g,yx=/<\/(?:\w+:)?(?:si|sstItem)>/;function Ax(e,t){var r=[],a="";if(!e)return r;var n=e.match(Sx);if(n){a=n[2].replace(Fx,"").split(yx);for(var i=0;i!=a.length;++i){var s=di(a[i].trim(),t);s!=null&&(r[r.length]=s)}n=_e(n[1]),r.Count=n.count,r.Unique=n.uniqueCount}return r}var Cx=/^\s|\s$|[\t\n\r]/;function Ac(e,t){if(!t.bookSST)return"";var r=[ar];r[r.length]=ie("sst",null,{xmlns:ca[0],count:e.Count,uniqueCount:e.Unique});for(var a=0;a!=e.length;++a)if(e[a]!=null){var n=e[a],i="";n.r?i+=n.r:(i+=""),i+="",r[r.length]=i}return r.length>2&&(r[r.length]="",r[1]=r[1].replace("/>",">")),r.join("")}function bx(e){return[e.read_shift(4),e.read_shift(4)]}function Dx(e,t){var r=[],a=!1;return yt(e,function(i,s,f){switch(f){case 159:r.Count=i[0],r.Unique=i[1];break;case 19:r.push(i);break;case 160:return!0;case 35:a=!0;break;case 36:a=!1;break;default:if(s.T,!a||t.WTF)throw new Error("Unexpected record 0x"+f.toString(16))}}),r}function Ox(e,t){return t||(t=z(8)),t.write_shift(4,e.Count),t.write_shift(4,e.Unique),t}var Ix=Vu;function Rx(e){var t=Nr();Y(t,159,Ox(e));for(var r=0;r=4&&(e.l+=t-4),r}function Nx(e){var t={};return t.id=e.read_shift(0,"lpp4"),t.R=Et(e,4),t.U=Et(e,4),t.W=Et(e,4),t}function Px(e){for(var t=e.read_shift(4),r=e.l+t-4,a={},n=e.read_shift(4),i=[];n-- >0;)i.push({t:e.read_shift(4),v:e.read_shift(0,"lpp4")});if(a.name=e.read_shift(0,"lpp4"),a.comps=i,e.l!=r)throw new Error("Bad DataSpaceMapEntry: "+e.l+" != "+r);return a}function Lx(e){var t=[];e.l+=4;for(var r=e.read_shift(4);r-- >0;)t.push(Px(e));return t}function Bx(e){var t=[];e.l+=4;for(var r=e.read_shift(4);r-- >0;)t.push(e.read_shift(0,"lpp4"));return t}function Mx(e){var t={};return e.read_shift(4),e.l+=4,t.id=e.read_shift(0,"lpp4"),t.name=e.read_shift(0,"lpp4"),t.R=Et(e,4),t.U=Et(e,4),t.W=Et(e,4),t}function Ux(e){var t=Mx(e);if(t.ename=e.read_shift(0,"8lpp4"),t.blksz=e.read_shift(4),t.cmode=e.read_shift(4),e.read_shift(4)!=4)throw new Error("Bad !Primary record");return t}function bc(e,t){var r=e.l+t,a={};a.Flags=e.read_shift(4)&63,e.l+=4,a.AlgID=e.read_shift(4);var n=!1;switch(a.AlgID){case 26126:case 26127:case 26128:n=a.Flags==36;break;case 26625:n=a.Flags==4;break;case 0:n=a.Flags==16||a.Flags==4||a.Flags==36;break;default:throw"Unrecognized encryption algorithm: "+a.AlgID}if(!n)throw new Error("Encryption Flags/AlgID mismatch");return a.AlgIDHash=e.read_shift(4),a.KeySize=e.read_shift(4),a.ProviderType=e.read_shift(4),e.l+=8,a.CSPName=e.read_shift(r-e.l>>1,"utf16le"),e.l=r,a}function Dc(e,t){var r={},a=e.l+t;return e.l+=4,r.Salt=e.slice(e.l,e.l+16),e.l+=16,r.Verifier=e.slice(e.l,e.l+16),e.l+=16,e.read_shift(4),r.VerifierHash=e.slice(e.l,a),e.l=a,r}function Wx(e){var t=Et(e);switch(t.Minor){case 2:return[t.Minor,Hx(e)];case 3:return[t.Minor,Vx()];case 4:return[t.Minor,Xx(e)]}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+t.Minor)}function Hx(e){var t=e.read_shift(4);if((t&63)!=36)throw new Error("EncryptionInfo mismatch");var r=e.read_shift(4),a=bc(e,r),n=Dc(e,e.length-e.l);return{t:"Std",h:a,v:n}}function Vx(){throw new Error("File is password-protected: ECMA-376 Extensible")}function Xx(e){var t=["saltSize","blockSize","keyBits","hashSize","cipherAlgorithm","cipherChaining","hashAlgorithm","saltValue"];e.l+=4;var r=e.read_shift(e.length-e.l,"utf8"),a={};return r.replace(Cr,function(i){var s=_e(i);switch(pt(s[0])){case"":break;case"":case"":break;case"":break;case"4||a.Major<2)throw new Error("unrecognized major version code: "+a.Major);r.Flags=e.read_shift(4),t-=4;var n=e.read_shift(4);return t-=4,r.EncryptionHeader=bc(e,n),t-=n,r.EncryptionVerifier=Dc(e,t),r}function zx(e){var t={},r=t.EncryptionVersionInfo=Et(e,4);if(r.Major!=1||r.Minor!=1)throw"unrecognized version code "+r.Major+" : "+r.Minor;return t.Salt=e.read_shift(16),t.EncryptedVerifier=e.read_shift(16),t.EncryptedVerifierHash=e.read_shift(16),t}function pi(e){var t=0,r,a=Cc(e),n=a.length+1,i,s,f,c,o;for(r=Bt(n),r[0]=a.length,i=1;i!=n;++i)r[i]=a[i-1];for(i=n-1;i>=0;--i)s=r[i],f=t&16384?1:0,c=t<<1&32767,o=f|c,t=o^s;return t^52811}var Oc=function(){var e=[187,255,255,186,255,255,185,128,0,190,15,0,191,15,0],t=[57840,7439,52380,33984,4364,3600,61902,12606,6258,57657,54287,34041,10252,43370,20163],r=[44796,19929,39858,10053,20106,40212,10761,31585,63170,64933,60267,50935,40399,11199,17763,35526,1453,2906,5812,11624,23248,885,1770,3540,7080,14160,28320,56640,55369,41139,20807,41614,21821,43642,17621,28485,56970,44341,19019,38038,14605,29210,60195,50791,40175,10751,21502,43004,24537,18387,36774,3949,7898,15796,31592,63184,47201,24803,49606,37805,14203,28406,56812,17824,35648,1697,3394,6788,13576,27152,43601,17539,35078,557,1114,2228,4456,30388,60776,51953,34243,7079,14158,28316,14128,28256,56512,43425,17251,34502,7597,13105,26210,52420,35241,883,1766,3532,4129,8258,16516,33032,4657,9314,18628],a=function(s){return(s/2|s*128)&255},n=function(s,f){return a(s^f)},i=function(s){for(var f=t[s.length-1],c=104,o=s.length-1;o>=0;--o)for(var l=s[o],u=0;u!=7;++u)l&64&&(f^=r[c]),l*=2,--c;return f};return function(s){for(var f=Cc(s),c=i(f),o=f.length,l=Bt(16),u=0;u!=16;++u)l[u]=0;var h,x,p;for((o&1)===1&&(h=c>>8,l[o]=n(e[0],h),--o,h=c&255,x=f[f.length-1],l[o]=n(x,h));o>0;)--o,h=c>>8,l[o]=n(f[o],h),--o,h=c&255,l[o]=n(f[o],h);for(o=15,p=15-f.length;p>0;)h=c>>8,l[o]=n(e[p],h),--o,--p,h=c&255,l[o]=n(f[o],h),--o,--p;return l}}(),$x=function(e,t,r,a,n){n||(n=t),a||(a=Oc(e));var i,s;for(i=0;i!=t.length;++i)s=t[i],s^=a[r],s=(s>>5|s<<3)&255,n[i]=s,++r;return[n,r,a]},Kx=function(e){var t=0,r=Oc(e);return function(a){var n=$x("",a,t,r);return t=n[1],n[0]}};function jx(e,t,r,a){var n={key:sr(e),verificationBytes:sr(e)};return r.password&&(n.verifier=pi(r.password)),a.valid=n.verificationBytes===n.verifier,a.valid&&(a.insitu=Kx(r.password)),n}function Yx(e,t,r){var a=r||{};return a.Info=e.read_shift(2),e.l-=2,a.Info===1?a.Data=zx(e):a.Data=Gx(e,t),a}function Jx(e,t,r){var a={Type:r.biff>=8?e.read_shift(2):0};return a.Type?Yx(e,t-2,a):jx(e,r.biff>=8?t:t-2,r,a),a}var Ic=function(){function e(n,i){switch(i.type){case"base64":return t(Hr(n),i);case"binary":return t(n,i);case"buffer":return t(Ae&&Buffer.isBuffer(n)?n.toString("binary"):Ht(n),i);case"array":return t(ra(n),i)}throw new Error("Unrecognized type "+i.type)}function t(n,i){var s=i||{},f=s.dense?[]:{},c=n.match(/\\trowd.*?\\row\b/g);if(!c.length)throw new Error("RTF missing table");var o={s:{c:0,r:0},e:{c:0,r:c.length-1}};return c.forEach(function(l,u){Array.isArray(f)&&(f[u]=[]);for(var h=/\\\w+\b/g,x=0,p,d=-1;p=h.exec(l);){switch(p[0]){case"\\cell":var v=l.slice(x,h.lastIndex-p[0].length);if(v[0]==" "&&(v=v.slice(1)),++d,v.length){var w={v,t:"s"};Array.isArray(f)?f[u][d]=w:f[ge({r:u,c:d})]=w}break}x=h.lastIndex}d>o.e.c&&(o.e.c=d)}),f["!ref"]=Te(o),f}function r(n,i){return Vt(e(n,i),i)}function a(n){for(var i=["{\\rtf1\\ansi"],s=Re(n["!ref"]),f,c=Array.isArray(n),o=s.s.r;o<=s.e.r;++o){i.push("\\trowd\\trautofit1");for(var l=s.s.c;l<=s.e.c;++l)i.push("\\cellx"+(l+1));for(i.push("\\pard\\intbl"),l=s.s.c;l<=s.e.c;++l){var u=ge({r:o,c:l});f=c?(n[o]||[])[l]:n[u],!(!f||f.v==null&&(!f.f||f.F))&&(i.push(" "+(f.w||(St(f),f.w))),i.push("\\cell"))}i.push("\\pard\\intbl\\row")}return i.join("")+"}"}return{to_workbook:r,to_sheet:e,from_sheet:a}}();function qx(e){var t=e.slice(e[0]==="#"?1:0).slice(0,6);return[parseInt(t.slice(0,2),16),parseInt(t.slice(2,4),16),parseInt(t.slice(4,6),16)]}function fn(e){for(var t=0,r=1;t!=3;++t)r=r*256+(e[t]>255?255:e[t]<0?0:e[t]);return r.toString(16).toUpperCase().slice(1)}function Zx(e){var t=e[0]/255,r=e[1]/255,a=e[2]/255,n=Math.max(t,r,a),i=Math.min(t,r,a),s=n-i;if(s===0)return[0,0,t];var f=0,c=0,o=n+i;switch(c=s/(o>1?2-o:o),n){case t:f=((r-a)/s+6)%6;break;case r:f=(a-t)/s+2;break;case a:f=(t-r)/s+4;break}return[f/6,c,o/2]}function Qx(e){var t=e[0],r=e[1],a=e[2],n=r*2*(a<.5?a:1-a),i=a-n/2,s=[i,i,i],f=6*t,c;if(r!==0)switch(f|0){case 0:case 6:c=n*f,s[0]+=n,s[1]+=c;break;case 1:c=n*(2-f),s[0]+=c,s[1]+=n;break;case 2:c=n*(f-2),s[1]+=n,s[2]+=c;break;case 3:c=n*(4-f),s[1]+=c,s[2]+=n;break;case 4:c=n*(f-4),s[2]+=n,s[0]+=c;break;case 5:c=n*(6-f),s[2]+=c,s[0]+=n;break}for(var o=0;o!=3;++o)s[o]=Math.round(s[o]*255);return s}function Jn(e,t){if(t===0)return e;var r=Zx(qx(e));return t<0?r[2]=r[2]*(1+t):r[2]=1-(1-r[2])*(1-t),fn(Qx(r))}var Rc=6,ed=15,rd=1,Sr=Rc;function cn(e){return Math.floor((e+Math.round(128/Sr)/256)*Sr)}function on(e){return Math.floor((e-5)/Sr*100+.5)/100}function qn(e){return Math.round((e*Sr+5)/Sr*256)/256}function g0(e){return qn(on(cn(e)))}function vi(e){var t=Math.abs(e-g0(e)),r=Sr;if(t>.005)for(Sr=rd;Sr":case"":break;case"":case"":n={},f.diagonalUp&&(n.diagonalUp=Xe(f.diagonalUp)),f.diagonalDown&&(n.diagonalDown=Xe(f.diagonalDown)),t.Borders.push(n);break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":case"":break;case"":break;case"":case"":break;case"":break;case"":case"":break;case"":break;case"":case"":break;case"":break;case"":case"":break;case"":break;case"":break;case"":case"":break;case"":case"":break;case"":i=!1;break;default:if(a&&a.WTF&&!i)throw new Error("unrecognized "+f[0]+" in borders")}})}function id(e,t,r,a){t.Fills=[];var n={},i=!1;(e[0].match(Cr)||[]).forEach(function(s){var f=_e(s);switch(pt(f[0])){case"":case"":break;case"":case"":n={},t.Fills.push(n);break;case"":break;case"":break;case"":t.Fills.push(n),n={};break;case"":f.patternType&&(n.patternType=f.patternType);break;case"":case"":break;case"":case"":break;case"":case"":break;case"":break;case"":break;case"":break;case"":break;case"":case"":break;case"":i=!1;break;default:if(a&&a.WTF&&!i)throw new Error("unrecognized "+f[0]+" in fills")}})}function sd(e,t,r,a){t.Fonts=[];var n={},i=!1;(e[0].match(Cr)||[]).forEach(function(s){var f=_e(s);switch(pt(f[0])){case"":case"":break;case"":break;case"":case"":t.Fonts.push(n),n={};break;case"":case"":break;case"":n.bold=1;break;case"":n.italic=1;break;case"":n.underline=1;break;case"":n.strike=1;break;case"":n.outline=1;break;case"":n.shadow=1;break;case"":n.condense=1;break;case"":n.extend=1;break;case"":case"
":break;case"":case"":break;case"":case"":break;case"":case"":break;case"":case"":break;case"":i=!1;break;case"":case"":break;case"":i=!1;break;default:if(a&&a.WTF&&!i)throw new Error("unrecognized "+f[0]+" in fonts")}})}function fd(e,t,r){t.NumberFmt=[];for(var a=Ze(me),n=0;n":case"":case"":break;case"0){if(c>392){for(c=392;c>60&&t.NumberFmt[c]!=null;--c);t.NumberFmt[c]=f}dt(f,c)}}break;case"":break;default:if(r.WTF)throw new Error("unrecognized "+s[0]+" in numFmts")}}}function cd(e){var t=[""];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(r){for(var a=r[0];a<=r[1];++a)e[a]!=null&&(t[t.length]=ie("numFmt",null,{numFmtId:a,formatCode:Be(e[a])}))}),t.length===1?"":(t[t.length]="",t[0]=ie("numFmts",null,{count:t.length-2}).replace("/>",">"),t.join(""))}var In=["numFmtId","fillId","fontId","borderId","xfId"],Rn=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","pivotButton","quotePrefix"];function od(e,t,r){t.CellXf=[];var a,n=!1;(e[0].match(Cr)||[]).forEach(function(i){var s=_e(i),f=0;switch(pt(s[0])){case"":case"":case"":break;case"":for(a=s,delete a[0],f=0;f392){for(f=392;f>60;--f)if(t.NumberFmt[a.numFmtId]==t.NumberFmt[f]){a.numFmtId=f;break}}t.CellXf.push(a);break;case"":break;case"":var c={};s.vertical&&(c.vertical=s.vertical),s.horizontal&&(c.horizontal=s.horizontal),s.textRotation!=null&&(c.textRotation=s.textRotation),s.indent&&(c.indent=s.indent),s.wrapText&&(c.wrapText=Xe(s.wrapText)),a.alignment=c;break;case"":break;case"":case"":break;case"":n=!1;break;case"":case"":break;case"":n=!1;break;default:if(r&&r.WTF&&!n)throw new Error("unrecognized "+s[0]+" in cellXfs")}})}function ld(e){var t=[];return t[t.length]=ie("cellXfs",null),e.forEach(function(r){t[t.length]=ie("xf",null,r)}),t[t.length]="",t.length===2?"":(t[0]=ie("cellXfs",null,{count:t.length-2}).replace("/>",">"),t.join(""))}var ud=function(){var t=/<(?:\w+:)?numFmts([^>]*)>[\S\s]*?<\/(?:\w+:)?numFmts>/,r=/<(?:\w+:)?cellXfs([^>]*)>[\S\s]*?<\/(?:\w+:)?cellXfs>/,a=/<(?:\w+:)?fills([^>]*)>[\S\s]*?<\/(?:\w+:)?fills>/,n=/<(?:\w+:)?fonts([^>]*)>[\S\s]*?<\/(?:\w+:)?fonts>/,i=/<(?:\w+:)?borders([^>]*)>[\S\s]*?<\/(?:\w+:)?borders>/;return function(f,c,o){var l={};if(!f)return l;f=f.replace(//mg,"").replace(//gm,"");var u;return(u=f.match(t))&&fd(u,l,o),(u=f.match(n))&&sd(u,l,c,o),(u=f.match(a))&&id(u,l,c,o),(u=f.match(i))&&nd(u,l,c,o),(u=f.match(r))&&od(u,l,o),l}}();function Pc(e,t){var r=[ar,ie("styleSheet",null,{xmlns:ca[0],"xmlns:vt":or.vt})],a;return e.SSF&&(a=cd(e.SSF))!=null&&(r[r.length]=a),r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',(a=ld(t.cellXfs))&&(r[r.length]=a),r[r.length]='',r[r.length]='',r[r.length]='',r.length>2&&(r[r.length]="",r[1]=r[1].replace("/>",">")),r.join("")}function hd(e,t){var r=e.read_shift(2),a=yr(e);return[r,a]}function xd(e,t,r){r||(r=z(6+4*t.length)),r.write_shift(2,e),pr(t,r);var a=r.length>r.l?r.slice(0,r.l):r;return r.l==null&&(r.l=r.length),a}function dd(e,t,r){var a={};a.sz=e.read_shift(2)/20;var n=Yu(e);n.fItalic&&(a.italic=1),n.fCondense&&(a.condense=1),n.fExtend&&(a.extend=1),n.fShadow&&(a.shadow=1),n.fOutline&&(a.outline=1),n.fStrikeout&&(a.strike=1);var i=e.read_shift(2);switch(i===700&&(a.bold=1),e.read_shift(2)){case 1:a.vertAlign="superscript";break;case 2:a.vertAlign="subscript";break}var s=e.read_shift(1);s!=0&&(a.underline=s);var f=e.read_shift(1);f>0&&(a.family=f);var c=e.read_shift(1);switch(c>0&&(a.charset=c),e.l++,a.color=ju(e),e.read_shift(1)){case 1:a.scheme="major";break;case 2:a.scheme="minor";break}return a.name=yr(e),a}function pd(e,t){t||(t=z(25+4*32)),t.write_shift(2,e.sz*20),Ju(e,t),t.write_shift(2,e.bold?700:400);var r=0;e.vertAlign=="superscript"?r=1:e.vertAlign=="subscript"&&(r=2),t.write_shift(2,r),t.write_shift(1,e.underline||0),t.write_shift(1,e.family||0),t.write_shift(1,e.charset||0),t.write_shift(1,0),Kn(e.color,t);var a=0;return e.scheme=="major"&&(a=1),e.scheme=="minor"&&(a=2),t.write_shift(1,a),pr(e.name,t),t.length>t.l?t.slice(0,t.l):t}var vd=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],_0,md=Ar;function Is(e,t){t||(t=z(4*3+8*7+16*1)),_0||(_0=t0(vd));var r=_0[e.patternType];r==null&&(r=40),t.write_shift(4,r);var a=0;if(r!=40)for(Kn({auto:1},t),Kn({auto:1},t);a<12;++a)t.write_shift(4,0);else{for(;a<4;++a)t.write_shift(4,0);for(;a<12;++a)t.write_shift(4,0)}return t.length>t.l?t.slice(0,t.l):t}function gd(e,t){var r=e.l+t,a=e.read_shift(2),n=e.read_shift(2);return e.l=r,{ixfe:a,numFmtId:n}}function Lc(e,t,r){r||(r=z(16)),r.write_shift(2,t||0),r.write_shift(2,e.numFmtId||0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(1,0),r.write_shift(1,0);var a=0;return r.write_shift(1,a),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(1,0),r}function Ma(e,t){return t||(t=z(10)),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(4,0),t.write_shift(4,0),t}var _d=Ar;function wd(e,t){return t||(t=z(51)),t.write_shift(1,0),Ma(null,t),Ma(null,t),Ma(null,t),Ma(null,t),Ma(null,t),t.length>t.l?t.slice(0,t.l):t}function kd(e,t){return t||(t=z(12+4*10)),t.write_shift(4,e.xfId),t.write_shift(2,1),t.write_shift(1,+e.builtinId),t.write_shift(1,0),$n(e.name||"",t),t.length>t.l?t.slice(0,t.l):t}function Ed(e,t,r){var a=z(2052);return a.write_shift(4,e),$n(t,a),$n(r,a),a.length>a.l?a.slice(0,a.l):a}function Td(e,t,r){var a={};a.NumberFmt=[];for(var n in me)a.NumberFmt[n]=me[n];a.CellXf=[],a.Fonts=[];var i=[],s=!1;return yt(e,function(c,o,l){switch(l){case 44:a.NumberFmt[c[0]]=c[1],dt(c[1],c[0]);break;case 43:a.Fonts.push(c),c.color.theme!=null&&t&&t.themeElements&&t.themeElements.clrScheme&&(c.color.rgb=Jn(t.themeElements.clrScheme[c.color.theme].rgb,c.color.tint||0));break;case 1025:break;case 45:break;case 46:break;case 47:i[i.length-1]==617&&a.CellXf.push(c);break;case 48:case 507:case 572:case 475:break;case 1171:case 2102:case 1130:case 512:case 2095:case 3072:break;case 35:s=!0;break;case 36:s=!1;break;case 37:i.push(l),s=!0;break;case 38:i.pop(),s=!1;break;default:if(o.T>0)i.push(l);else if(o.T<0)i.pop();else if(!s||r.WTF&&i[i.length-1]!=37)throw new Error("Unexpected record 0x"+l.toString(16))}}),a}function Sd(e,t){if(t){var r=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(a){for(var n=a[0];n<=a[1];++n)t[n]!=null&&++r}),r!=0&&(Y(e,615,st(r)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(a){for(var n=a[0];n<=a[1];++n)t[n]!=null&&Y(e,44,xd(n,t[n]))}),Y(e,616))}}function Fd(e){var t=1;Y(e,611,st(t)),Y(e,43,pd({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),Y(e,612)}function yd(e){var t=2;Y(e,603,st(t)),Y(e,45,Is({patternType:"none"})),Y(e,45,Is({patternType:"gray125"})),Y(e,604)}function Ad(e){var t=1;Y(e,613,st(t)),Y(e,46,wd()),Y(e,614)}function Cd(e){var t=1;Y(e,626,st(t)),Y(e,47,Lc({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),Y(e,627)}function bd(e,t){Y(e,617,st(t.length)),t.forEach(function(r){Y(e,47,Lc(r,0))}),Y(e,618)}function Dd(e){var t=1;Y(e,619,st(t)),Y(e,48,kd({xfId:0,builtinId:0,name:"Normal"})),Y(e,620)}function Od(e){var t=0;Y(e,505,st(t)),Y(e,506)}function Id(e){var t=0;Y(e,508,Ed(t,"TableStyleMedium9","PivotStyleMedium4")),Y(e,509)}function Rd(e,t){var r=Nr();return Y(r,278),Sd(r,e.SSF),Fd(r),yd(r),Ad(r),Cd(r),bd(r,t.cellXfs),Dd(r),Od(r),Id(r),Y(r,279),r.end()}var Nd=["","","","","","","","","","","",""];function Pd(e,t,r){t.themeElements.clrScheme=[];var a={};(e[0].match(Cr)||[]).forEach(function(n){var i=_e(n);switch(i[0]){case"":break;case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":i[0].charAt(1)==="/"?(t.themeElements.clrScheme[Nd.indexOf(i[0])]=a,a={}):a.name=i[0].slice(3,i[0].length-1);break;default:if(r&&r.WTF)throw new Error("Unrecognized "+i[0]+" in clrScheme")}})}function Ld(){}function Bd(){}var Md=/]*)>[\s\S]*<\/a:clrScheme>/,Ud=/]*)>[\s\S]*<\/a:fontScheme>/,Wd=/]*)>[\s\S]*<\/a:fmtScheme>/;function Hd(e,t,r){t.themeElements={};var a;[["clrScheme",Md,Pd],["fontScheme",Ud,Ld],["fmtScheme",Wd,Bd]].forEach(function(n){if(!(a=e.match(n[1])))throw new Error(n[0]+" not found in themeElements");n[2](a,t,r)})}var Vd=/]*)>[\s\S]*<\/a:themeElements>/;function Bc(e,t){(!e||e.length===0)&&(e=mi());var r,a={};if(!(r=e.match(Vd)))throw new Error("themeElements not found in theme");return Hd(r[0],a,t),a.raw=e,a}function mi(e,t){if(t&&t.themeXLSX)return t.themeXLSX;if(e&&typeof e.raw=="string")return e.raw;var r=[ar];return r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r.join("")}function Xd(e,t,r){var a=e.l+t,n=e.read_shift(4);if(n!==124226){if(!r.cellStyles){e.l=a;return}var i=e.slice(e.l);e.l=a;var s;try{s=bf(i,{type:"array"})}catch{return}var f=Wr(s,"theme/theme/theme1.xml",!0);if(f)return Bc(f,r)}}function Gd(e){return e.read_shift(4)}function zd(e){var t={};switch(t.xclrType=e.read_shift(2),t.nTintShade=e.read_shift(2),t.xclrType){case 0:e.l+=4;break;case 1:t.xclrValue=$d(e,4);break;case 2:t.xclrValue=vc(e);break;case 3:t.xclrValue=Gd(e);break;case 4:e.l+=4;break}return e.l+=8,t}function $d(e,t){return Ar(e,t)}function Kd(e,t){return Ar(e,t)}function jd(e){var t=e.read_shift(2),r=e.read_shift(2)-4,a=[t];switch(t){case 4:case 5:case 7:case 8:case 9:case 10:case 11:case 13:a[1]=zd(e);break;case 6:a[1]=Kd(e,r);break;case 14:case 15:a[1]=e.read_shift(r===1?1:2);break;default:throw new Error("Unrecognized ExtProp type: "+t+" "+r)}return a}function Yd(e,t){var r=e.l+t;e.l+=2;var a=e.read_shift(2);e.l+=2;for(var n=e.read_shift(2),i=[];n-- >0;)i.push(jd(e,r-e.l));return{ixfe:a,ext:i}}function Jd(e,t){t.forEach(function(r){switch(r[0]){}})}function qd(e,t){return{flags:e.read_shift(4),version:e.read_shift(4),name:yr(e)}}function Zd(e){var t=z(12+2*e.name.length);return t.write_shift(4,e.flags),t.write_shift(4,e.version),pr(e.name,t),t.slice(0,t.l)}function Qd(e){for(var t=[],r=e.read_shift(4);r-- >0;)t.push([e.read_shift(4),e.read_shift(4)]);return t}function ep(e){var t=z(4+8*e.length);t.write_shift(4,e.length);for(var r=0;r":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":i=2;break;case"":i=2;break;case"":case"":case"":break;case"":n=!1;break;case" + + + + + + + + + + + + + + + + + +`),e.join("")}function fp(e){var t=[];if(!e)return t;var r=1;return(e.match(Cr)||[]).forEach(function(a){var n=_e(a);switch(n[0]){case"":case"":break;case"]*r:id="([^"]*)"/)||["",""])[1];return t["!id"][r].Target}var wa=1024;function Uc(e,t){for(var r=[21600,21600],a=["m0,0l0",r[1],r[0],r[1],r[0],"0xe"].join(","),n=[ie("xml",null,{"xmlns:v":Br.v,"xmlns:o":Br.o,"xmlns:x":Br.x,"xmlns:mv":Br.mv}).replace(/\/>/,">"),ie("o:shapelayout",ie("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),ie("v:shapetype",[ie("v:stroke",null,{joinstyle:"miter"}),ie("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:r.join(","),path:a})];wa",o,ie("v:shadow",null,l),ie("v:path",null,{"o:connecttype":"none"}),'
','',"","",_r("x:Anchor",[s.c+1,0,s.r+1,0,s.c+3,20,s.r+5,20].join(",")),_r("x:AutoFill","False"),_r("x:Row",String(s.r)),_r("x:Column",String(s.c)),i[1].hidden?"":"","",""])}),n.push(""),n.join("")}function Rs(e,t,r,a){var n=Array.isArray(e),i;t.forEach(function(s){var f=Ye(s.ref);if(n?(e[f.r]||(e[f.r]=[]),i=e[f.r][f.c]):i=e[s.ref],!i){i={t:"z"},n?e[f.r][f.c]=i:e[s.ref]=i;var c=Re(e["!ref"]||"BDWGO1000001:A1");c.s.r>f.r&&(c.s.r=f.r),c.e.rf.c&&(c.s.c=f.c),c.e.c=0;--u){if(!r&&i.c[u].T)return;r&&!i.c[u].T&&i.c.splice(u,1)}if(r&&a){for(u=0;u/))return[];var r=[],a=[],n=e.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/);n&&n[1]&&n[1].split(/<\/\w*:?author>/).forEach(function(s){if(!(s===""||s.trim()==="")){var f=s.match(/<(?:\w+:)?author[^>]*>(.*)/);f&&r.push(f[1])}});var i=e.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/);return i&&i[1]&&i[1].split(/<\/\w*:?comment>/).forEach(function(s){if(!(s===""||s.trim()==="")){var f=s.match(/<(?:\w+:)?comment[^>]*>/);if(f){var c=_e(f[0]),o={author:c.authorId&&r[c.authorId]||"sheetjsghost",ref:c.ref,guid:c.guid},l=Ye(c.ref);if(!(t.sheetRows&&t.sheetRows<=l.r)){var u=s.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/),h=!!u&&!!u[1]&&di(u[1])||{r:"",t:"",h:""};o.r=h.r,h.r==""&&(h.t=h.h=""),o.t=(h.t||"").replace(/\r\n/g,` +`).replace(/\r/g,` +`),t.cellHTML&&(o.h=h.h),a.push(o)}}}}),a}function Wc(e){var t=[ar,ie("comments",null,{xmlns:ca[0]})],r=[];return t.push(""),e.forEach(function(a){a[1].forEach(function(n){var i=Be(n.a);r.indexOf(i)==-1&&(r.push(i),t.push(""+i+"")),n.T&&n.ID&&r.indexOf("tc="+n.ID)==-1&&(r.push("tc="+n.ID),t.push("tc="+n.ID+""))})}),r.length==0&&(r.push("SheetJ5"),t.push("SheetJ5")),t.push(""),t.push(""),e.forEach(function(a){var n=0,i=[];if(a[1][0]&&a[1][0].T&&a[1][0].ID?n=r.indexOf("tc="+a[1][0].ID):a[1].forEach(function(c){c.a&&(n=r.indexOf(Be(c.a))),i.push(c.t||"")}),t.push(''),i.length<=1)t.push(_r("t",Be(i[0]||"")));else{for(var s=`Comment: + `+i[0]+` +`,f=1;f")}),t.push(""),t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}function xp(e,t){var r=[],a=!1,n={},i=0;return e.replace(Cr,function(f,c){var o=_e(f);switch(pt(o[0])){case"":break;case"":n.t!=null&&r.push(n);break;case"":case"":n.t=e.slice(i,c).replace(/\r\n/g,` +`).replace(/\r/g,` +`);break;case"":a=!0;break;case"":a=!1;break;case"":case"
":case"":break;case"":a=!1;break;default:if(!a&&t.WTF)throw new Error("unrecognized "+o[0]+" in threaded comments")}return f}),r}function dp(e,t,r){var a=[ar,ie("ThreadedComments",null,{xmlns:or.TCMNT}).replace(/[\/]>/,">")];return e.forEach(function(n){var i="";(n[1]||[]).forEach(function(s,f){if(!s.T){delete s.ID;return}s.a&&t.indexOf(s.a)==-1&&t.push(s.a);var c={ref:n[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+r.tcid++).slice(-12)+"}"};f==0?i=c.id:c.parentId=i,s.ID=c.id,s.a&&(c.personId="{54EE7950-7262-4200-6969-"+("000000000000"+t.indexOf(s.a)).slice(-12)+"}"),a.push(ie("threadedComment",_r("text",s.t||""),c))})}),a.push(""),a.join("")}function pp(e,t){var r=[],a=!1;return e.replace(Cr,function(i){var s=_e(i);switch(pt(s[0])){case"":break;case"":break;case"":case"":case"":break;case"":a=!1;break;default:if(!a&&t.WTF)throw new Error("unrecognized "+s[0]+" in threaded comments")}return i}),r}function vp(e){var t=[ar,ie("personList",null,{xmlns:or.TCMNT,"xmlns:x":ca[0]}).replace(/[\/]>/,">")];return e.forEach(function(r,a){t.push(ie("person",null,{displayName:r,id:"{54EE7950-7262-4200-6969-"+("000000000000"+a).slice(-12)+"}",userId:r,providerId:"None"}))}),t.push(""),t.join("")}function mp(e){var t={};t.iauthor=e.read_shift(4);var r=ha(e);return t.rfx=r.s,t.ref=ge(r.s),e.l+=16,t}function gp(e,t){return t==null&&(t=z(36)),t.write_shift(4,e[1].iauthor),Oa(e[0],t),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t}var _p=yr;function wp(e){return pr(e.slice(0,54))}function kp(e,t){var r=[],a=[],n={},i=!1;return yt(e,function(f,c,o){switch(o){case 632:a.push(f);break;case 635:n=f;break;case 637:n.t=f.t,n.h=f.h,n.r=f.r;break;case 636:if(n.author=a[n.iauthor],delete n.iauthor,t.sheetRows&&n.rfx&&t.sheetRows<=n.rfx.r)break;n.t||(n.t=""),delete n.rfx,r.push(n);break;case 3072:break;case 35:i=!0;break;case 36:i=!1;break;case 37:break;case 38:break;default:if(!c.T){if(!i||t.WTF)throw new Error("Unexpected record 0x"+o.toString(16))}}}),r}function Ep(e){var t=Nr(),r=[];return Y(t,628),Y(t,630),e.forEach(function(a){a[1].forEach(function(n){r.indexOf(n.a)>-1||(r.push(n.a.slice(0,54)),Y(t,632,wp(n.a)))})}),Y(t,631),Y(t,633),e.forEach(function(a){a[1].forEach(function(n){n.iauthor=r.indexOf(n.a);var i={s:Ye(a[0]),e:Ye(a[0])};Y(t,635,gp([i,n])),n.t&&n.t.length>0&&Y(t,637,Gu(n)),Y(t,636),delete n.iauthor})}),Y(t,634),Y(t,629),t.end()}var Tp="application/vnd.ms-office.vbaProject";function Sp(e){var t=ve.utils.cfb_new({root:"R"});return e.FullPaths.forEach(function(r,a){if(!(r.slice(-1)==="/"||!r.match(/_VBA_PROJECT_CUR/))){var n=r.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,"");ve.utils.cfb_add(t,n,e.FileIndex[a].content)}}),ve.write(t)}function Fp(e,t){t.FullPaths.forEach(function(r,a){if(a!=0){var n=r.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");n.slice(-1)!=="/"&&ve.utils.cfb_add(e,n,t.FileIndex[a].content)}})}var Hc=["xlsb","xlsm","xlam","biff8","xla"];function yp(){return{"!type":"dialog"}}function Ap(){return{"!type":"dialog"}}function Cp(){return{"!type":"macro"}}function bp(){return{"!type":"macro"}}var Sa=function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,t={r:0,c:0};function r(a,n,i,s){var f=!1,c=!1;i.length==0?c=!0:i.charAt(0)=="["&&(c=!0,i=i.slice(1,-1)),s.length==0?f=!0:s.charAt(0)=="["&&(f=!0,s=s.slice(1,-1));var o=i.length>0?parseInt(i,10)|0:0,l=s.length>0?parseInt(s,10)|0:0;return f?l+=t.c:--l,c?o+=t.r:--o,n+(f?"":"$")+je(l)+(c?"":"$")+tr(o)}return function(n,i){return t=i,n.replace(e,r)}}(),gi=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,_i=function(){return function(t,r){return t.replace(gi,function(a,n,i,s,f,c){var o=ii(s)-(i?0:r.c),l=ni(c)-(f?0:r.r),u=l==0?"":f?l+1:"["+l+"]",h=o==0?"":i?o+1:"["+o+"]";return n+"R"+u+"C"+h})}}();function Vc(e,t){return e.replace(gi,function(r,a,n,i,s,f){return a+(n=="$"?n+i:je(ii(i)+t.c))+(s=="$"?s+f:tr(ni(f)+t.r))})}function Dp(e,t,r){var a=Pr(t),n=a.s,i=Ye(r),s={r:i.r-n.r,c:i.c-n.c};return Vc(e,s)}function Op(e){return e.length!=1}function Ns(e){return e.replace(/_xlfn\./g,"")}function nr(e){e.l+=1}function Ut(e,t){var r=e.read_shift(t==1?1:2);return[r&16383,r>>14&1,r>>15&1]}function Xc(e,t,r){var a=2;if(r){if(r.biff>=2&&r.biff<=5)return Gc(e);r.biff==12&&(a=4)}var n=e.read_shift(a),i=e.read_shift(a),s=Ut(e,2),f=Ut(e,2);return{s:{r:n,c:s[0],cRel:s[1],rRel:s[2]},e:{r:i,c:f[0],cRel:f[1],rRel:f[2]}}}function Gc(e){var t=Ut(e,2),r=Ut(e,2),a=e.read_shift(1),n=e.read_shift(1);return{s:{r:t[0],c:a,cRel:t[1],rRel:t[2]},e:{r:r[0],c:n,cRel:r[1],rRel:r[2]}}}function Ip(e,t,r){if(r.biff<8)return Gc(e);var a=e.read_shift(r.biff==12?4:2),n=e.read_shift(r.biff==12?4:2),i=Ut(e,2),s=Ut(e,2);return{s:{r:a,c:i[0],cRel:i[1],rRel:i[2]},e:{r:n,c:s[0],cRel:s[1],rRel:s[2]}}}function zc(e,t,r){if(r&&r.biff>=2&&r.biff<=5)return Rp(e);var a=e.read_shift(r&&r.biff==12?4:2),n=Ut(e,2);return{r:a,c:n[0],cRel:n[1],rRel:n[2]}}function Rp(e){var t=Ut(e,2),r=e.read_shift(1);return{r:t[0],c:r,cRel:t[1],rRel:t[2]}}function Np(e){var t=e.read_shift(2),r=e.read_shift(2);return{r:t,c:r&255,fQuoted:!!(r&16384),cRel:r>>15,rRel:r>>15}}function Pp(e,t,r){var a=r&&r.biff?r.biff:8;if(a>=2&&a<=5)return Lp(e);var n=e.read_shift(a>=12?4:2),i=e.read_shift(2),s=(i&16384)>>14,f=(i&32768)>>15;if(i&=16383,f==1)for(;n>524287;)n-=1048576;if(s==1)for(;i>8191;)i=i-16384;return{r:n,c:i,cRel:s,rRel:f}}function Lp(e){var t=e.read_shift(2),r=e.read_shift(1),a=(t&32768)>>15,n=(t&16384)>>14;return t&=16383,a==1&&t>=8192&&(t=t-16384),n==1&&r>=128&&(r=r-256),{r:t,c:r,cRel:n,rRel:a}}function Bp(e,t,r){var a=(e[e.l++]&96)>>5,n=Xc(e,r.biff>=2&&r.biff<=5?6:8,r);return[a,n]}function Mp(e,t,r){var a=(e[e.l++]&96)>>5,n=e.read_shift(2,"i"),i=8;if(r)switch(r.biff){case 5:e.l+=12,i=6;break;case 12:i=12;break}var s=Xc(e,i,r);return[a,n,s]}function Up(e,t,r){var a=(e[e.l++]&96)>>5;return e.l+=r&&r.biff>8?12:r.biff<8?6:8,[a]}function Wp(e,t,r){var a=(e[e.l++]&96)>>5,n=e.read_shift(2),i=8;if(r)switch(r.biff){case 5:e.l+=12,i=6;break;case 12:i=12;break}return e.l+=i,[a,n]}function Hp(e,t,r){var a=(e[e.l++]&96)>>5,n=Ip(e,t-1,r);return[a,n]}function Vp(e,t,r){var a=(e[e.l++]&96)>>5;return e.l+=r.biff==2?6:r.biff==12?14:7,[a]}function Ps(e){var t=e[e.l+1]&1,r=1;return e.l+=4,[t,r]}function Xp(e,t,r){e.l+=2;for(var a=e.read_shift(r&&r.biff==2?1:2),n=[],i=0;i<=a;++i)n.push(e.read_shift(r&&r.biff==2?1:2));return n}function Gp(e,t,r){var a=e[e.l+1]&255?1:0;return e.l+=2,[a,e.read_shift(r&&r.biff==2?1:2)]}function zp(e,t,r){var a=e[e.l+1]&255?1:0;return e.l+=2,[a,e.read_shift(r&&r.biff==2?1:2)]}function $p(e){var t=e[e.l+1]&255?1:0;return e.l+=2,[t,e.read_shift(2)]}function Kp(e,t,r){var a=e[e.l+1]&255?1:0;return e.l+=r&&r.biff==2?3:4,[a]}function $c(e){var t=e.read_shift(1),r=e.read_shift(1);return[t,r]}function jp(e){return e.read_shift(2),$c(e)}function Yp(e){return e.read_shift(2),$c(e)}function Jp(e,t,r){var a=(e[e.l]&96)>>5;e.l+=1;var n=zc(e,0,r);return[a,n]}function qp(e,t,r){var a=(e[e.l]&96)>>5;e.l+=1;var n=Pp(e,0,r);return[a,n]}function Zp(e,t,r){var a=(e[e.l]&96)>>5;e.l+=1;var n=e.read_shift(2);r&&r.biff==5&&(e.l+=12);var i=zc(e,0,r);return[a,n,i]}function Qp(e,t,r){var a=(e[e.l]&96)>>5;e.l+=1;var n=e.read_shift(r&&r.biff<=3?1:2);return[tm[n],Yc[n],a]}function ev(e,t,r){var a=e[e.l++],n=e.read_shift(1),i=r&&r.biff<=3?[a==88?-1:0,e.read_shift(1)]:rv(e);return[n,(i[0]===0?Yc:rm)[i[1]]]}function rv(e){return[e[e.l+1]>>7,e.read_shift(2)&32767]}function tv(e,t,r){e.l+=r&&r.biff==2?3:4}function av(e,t,r){if(e.l++,r&&r.biff==12)return[e.read_shift(4,"i"),0];var a=e.read_shift(2),n=e.read_shift(r&&r.biff==2?1:2);return[a,n]}function nv(e){return e.l++,At[e.read_shift(1)]}function iv(e){return e.l++,e.read_shift(2)}function sv(e){return e.l++,e.read_shift(1)!==0}function fv(e){return e.l++,Fr(e)}function cv(e,t,r){return e.l++,mn(e,t-1,r)}function ov(e,t){var r=[e.read_shift(1)];if(t==12)switch(r[0]){case 2:r[0]=4;break;case 4:r[0]=16;break;case 0:r[0]=1;break;case 1:r[0]=2;break}switch(r[0]){case 4:r[1]=rr(e,1)?"TRUE":"FALSE",t!=12&&(e.l+=7);break;case 37:case 16:r[1]=At[e[e.l]],e.l+=t==12?4:8;break;case 0:e.l+=8;break;case 1:r[1]=Fr(e);break;case 2:r[1]=xa(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+r[0])}return r}function lv(e,t,r){for(var a=e.read_shift(r.biff==12?4:2),n=[],i=0;i!=a;++i)n.push((r.biff==12?ha:i0)(e));return n}function uv(e,t,r){var a=0,n=0;r.biff==12?(a=e.read_shift(4),n=e.read_shift(4)):(n=1+e.read_shift(1),a=1+e.read_shift(2)),r.biff>=2&&r.biff<8&&(--a,--n==0&&(n=256));for(var i=0,s=[];i!=a&&(s[i]=[]);++i)for(var f=0;f!=n;++f)s[i][f]=ov(e,r.biff);return s}function hv(e,t,r){var a=e.read_shift(1)>>>5&3,n=!r||r.biff>=8?4:2,i=e.read_shift(n);switch(r.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12;break}return[a,0,i]}function xv(e,t,r){if(r.biff==5)return dv(e);var a=e.read_shift(1)>>>5&3,n=e.read_shift(2),i=e.read_shift(4);return[a,n,i]}function dv(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2,"i");e.l+=8;var a=e.read_shift(2);return e.l+=12,[t,r,a]}function pv(e,t,r){var a=e.read_shift(1)>>>5&3;e.l+=r&&r.biff==2?3:4;var n=e.read_shift(r&&r.biff==2?1:2);return[a,n]}function vv(e,t,r){var a=e.read_shift(1)>>>5&3,n=e.read_shift(r&&r.biff==2?1:2);return[a,n]}function mv(e,t,r){var a=e.read_shift(1)>>>5&3;return e.l+=4,r.biff<8&&e.l--,r.biff==12&&(e.l+=2),[a]}function gv(e,t,r){var a=(e[e.l++]&96)>>5,n=e.read_shift(2),i=4;if(r)switch(r.biff){case 5:i=15;break;case 12:i=6;break}return e.l+=i,[a,n]}var _v=Ar,wv=Ar,kv=Ar;function _n(e,t,r){return e.l+=2,[Np(e)]}function wi(e){return e.l+=6,[]}var Ev=_n,Tv=wi,Sv=wi,Fv=_n;function Kc(e){return e.l+=2,[sr(e),e.read_shift(2)&1]}var yv=_n,Av=Kc,Cv=wi,bv=_n,Dv=_n,Ov=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function Iv(e){e.l+=2;var t=e.read_shift(2),r=e.read_shift(2),a=e.read_shift(4),n=e.read_shift(2),i=e.read_shift(2),s=Ov[r>>2&31];return{ixti:t,coltype:r&3,rt:s,idx:a,c:n,C:i}}function Rv(e){return e.l+=2,[e.read_shift(4)]}function Nv(e,t,r){return e.l+=5,e.l+=2,e.l+=r.biff==2?1:4,["PTGSHEET"]}function Pv(e,t,r){return e.l+=r.biff==2?4:5,["PTGENDSHEET"]}function Lv(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function Bv(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function Mv(e){return e.l+=4,[0,0]}var Ls={1:{n:"PtgExp",f:av},2:{n:"PtgTbl",f:kv},3:{n:"PtgAdd",f:nr},4:{n:"PtgSub",f:nr},5:{n:"PtgMul",f:nr},6:{n:"PtgDiv",f:nr},7:{n:"PtgPower",f:nr},8:{n:"PtgConcat",f:nr},9:{n:"PtgLt",f:nr},10:{n:"PtgLe",f:nr},11:{n:"PtgEq",f:nr},12:{n:"PtgGe",f:nr},13:{n:"PtgGt",f:nr},14:{n:"PtgNe",f:nr},15:{n:"PtgIsect",f:nr},16:{n:"PtgUnion",f:nr},17:{n:"PtgRange",f:nr},18:{n:"PtgUplus",f:nr},19:{n:"PtgUminus",f:nr},20:{n:"PtgPercent",f:nr},21:{n:"PtgParen",f:nr},22:{n:"PtgMissArg",f:nr},23:{n:"PtgStr",f:cv},26:{n:"PtgSheet",f:Nv},27:{n:"PtgEndSheet",f:Pv},28:{n:"PtgErr",f:nv},29:{n:"PtgBool",f:sv},30:{n:"PtgInt",f:iv},31:{n:"PtgNum",f:fv},32:{n:"PtgArray",f:Vp},33:{n:"PtgFunc",f:Qp},34:{n:"PtgFuncVar",f:ev},35:{n:"PtgName",f:hv},36:{n:"PtgRef",f:Jp},37:{n:"PtgArea",f:Bp},38:{n:"PtgMemArea",f:pv},39:{n:"PtgMemErr",f:_v},40:{n:"PtgMemNoMem",f:wv},41:{n:"PtgMemFunc",f:vv},42:{n:"PtgRefErr",f:mv},43:{n:"PtgAreaErr",f:Up},44:{n:"PtgRefN",f:qp},45:{n:"PtgAreaN",f:Hp},46:{n:"PtgMemAreaN",f:Lv},47:{n:"PtgMemNoMemN",f:Bv},57:{n:"PtgNameX",f:xv},58:{n:"PtgRef3d",f:Zp},59:{n:"PtgArea3d",f:Mp},60:{n:"PtgRefErr3d",f:gv},61:{n:"PtgAreaErr3d",f:Wp},255:{}},Uv={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},Wv={1:{n:"PtgElfLel",f:Kc},2:{n:"PtgElfRw",f:bv},3:{n:"PtgElfCol",f:Ev},6:{n:"PtgElfRwV",f:Dv},7:{n:"PtgElfColV",f:Fv},10:{n:"PtgElfRadical",f:yv},11:{n:"PtgElfRadicalS",f:Cv},13:{n:"PtgElfColS",f:Tv},15:{n:"PtgElfColSV",f:Sv},16:{n:"PtgElfRadicalLel",f:Av},25:{n:"PtgList",f:Iv},29:{n:"PtgSxName",f:Rv},255:{}},Hv={0:{n:"PtgAttrNoop",f:Mv},1:{n:"PtgAttrSemi",f:Kp},2:{n:"PtgAttrIf",f:zp},4:{n:"PtgAttrChoose",f:Xp},8:{n:"PtgAttrGoto",f:Gp},16:{n:"PtgAttrSum",f:tv},32:{n:"PtgAttrBaxcel",f:Ps},33:{n:"PtgAttrBaxcel",f:Ps},64:{n:"PtgAttrSpace",f:jp},65:{n:"PtgAttrSpaceSemi",f:Yp},128:{n:"PtgAttrIfError",f:$p},255:{}};function wn(e,t,r,a){if(a.biff<8)return Ar(e,t);for(var n=e.l+t,i=[],s=0;s!==r.length;++s)switch(r[s][0]){case"PtgArray":r[s][1]=uv(e,0,a),i.push(r[s][1]);break;case"PtgMemArea":r[s][2]=lv(e,r[s][1],a),i.push(r[s][2]);break;case"PtgExp":a&&a.biff==12&&(r[s][1][1]=e.read_shift(4),i.push(r[s][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+r[s][0]}return t=n-e.l,t!==0&&i.push(Ar(e,t)),i}function kn(e,t,r){for(var a=e.l+t,n,i,s=[];a!=e.l;)t=a-e.l,i=e[e.l],n=Ls[i]||Ls[Uv[i]],(i===24||i===25)&&(n=(i===24?Wv:Hv)[e[e.l+1]]),!n||!n.f?Ar(e,t):s.push([n.n,n.f(e,t,r)]);return s}function Vv(e){for(var t=[],r=0;r=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function Gv(e,t){if(!e&&!(t&&t.biff<=5&&t.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e)?"'"+e+"'":e}function jc(e,t,r){if(!e)return"SH33TJSERR0";if(r.biff>8&&(!e.XTI||!e.XTI[t]))return e.SheetNames[t];if(!e.XTI)return"SH33TJSERR6";var a=e.XTI[t];if(r.biff<8)return t>1e4&&(t-=65536),t<0&&(t=-t),t==0?"":e.XTI[t-1];if(!a)return"SH33TJSERR1";var n="";if(r.biff>8)switch(e[a[0]][0]){case 357:return n=a[1]==-1?"#REF":e.SheetNames[a[1]],a[1]==a[2]?n:n+":"+e.SheetNames[a[2]];case 358:return r.SID!=null?e.SheetNames[r.SID]:"SH33TJSSAME"+e[a[0]][0];case 355:default:return"SH33TJSSRC"+e[a[0]][0]}switch(e[a[0]][0][0]){case 1025:return n=a[1]==-1?"#REF":e.SheetNames[a[1]]||"SH33TJSERR3",a[1]==a[2]?n:n+":"+e.SheetNames[a[2]];case 14849:return e[a[0]].slice(1).map(function(i){return i.Name}).join(";;");default:return e[a[0]][0][3]?(n=a[1]==-1?"#REF":e[a[0]][0][3][a[1]]||"SH33TJSERR4",a[1]==a[2]?n:n+":"+e[a[0]][0][3][a[2]]):"SH33TJSERR2"}}function Bs(e,t,r){var a=jc(e,t,r);return a=="#REF"?a:Gv(a,r)}function Tr(e,t,r,a,n){var i=n&&n.biff||8,s={s:{c:0,r:0},e:{c:0,r:0}},f=[],c,o,l,u=0,h=0,x,p="";if(!e[0]||!e[0][0])return"";for(var d=-1,v="",w=0,k=e[0].length;w=0){switch(e[0][d][1][0]){case 0:v=Je(" ",e[0][d][1][1]);break;case 1:v=Je("\r",e[0][d][1][1]);break;default:if(v="",n.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][d][1][0])}o=o+v,d=-1}f.push(o+Xv[m[0]]+c);break;case"PtgIsect":c=f.pop(),o=f.pop(),f.push(o+" "+c);break;case"PtgUnion":c=f.pop(),o=f.pop(),f.push(o+","+c);break;case"PtgRange":c=f.pop(),o=f.pop(),f.push(o+":"+c);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":l=Xa(m[1][1],s,n),f.push(Ga(l,i));break;case"PtgRefN":l=r?Xa(m[1][1],r,n):m[1][1],f.push(Ga(l,i));break;case"PtgRef3d":u=m[1][1],l=Xa(m[1][2],s,n),p=Bs(a,u,n),f.push(p+"!"+Ga(l,i));break;case"PtgFunc":case"PtgFuncVar":var y=m[1][0],I=m[1][1];y||(y=0),y&=127;var S=y==0?[]:f.slice(-y);f.length-=y,I==="User"&&(I=S.shift()),f.push(I+"("+S.join(",")+")");break;case"PtgBool":f.push(m[1]?"TRUE":"FALSE");break;case"PtgInt":f.push(m[1]);break;case"PtgNum":f.push(String(m[1]));break;case"PtgStr":f.push('"'+m[1].replace(/"/g,'""')+'"');break;case"PtgErr":f.push(m[1]);break;case"PtgAreaN":x=hs(m[1][1],r?{s:r}:s,n),f.push(p0(x,n));break;case"PtgArea":x=hs(m[1][1],s,n),f.push(p0(x,n));break;case"PtgArea3d":u=m[1][1],x=m[1][2],p=Bs(a,u,n),f.push(p+"!"+p0(x,n));break;case"PtgAttrSum":f.push("SUM("+f.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":h=m[1][2];var _=(a.names||[])[h-1]||(a[0]||[])[h],N=_?_.Name:"SH33TJSNAME"+String(h);N&&N.slice(0,6)=="_xlfn."&&!n.xlfn&&(N=N.slice(6)),f.push(N);break;case"PtgNameX":var O=m[1][1];h=m[1][2];var G;if(n.biff<=5)O<0&&(O=-O),a[O]&&(G=a[O][h]);else{var M="";if(((a[O]||[])[0]||[])[0]==14849||(((a[O]||[])[0]||[])[0]==1025?a[O][h]&&a[O][h].itab>0&&(M=a.SheetNames[a[O][h].itab-1]+"!"):M=a.SheetNames[h-1]+"!"),a[O]&&a[O][h])M+=a[O][h].Name;else if(a[0]&&a[0][h])M+=a[0][h].Name;else{var L=(jc(a,O,n)||"").split(";;");L[h-1]?M=L[h-1]:M+="SH33TJSERRX"}f.push(M);break}G||(G={Name:"SH33TJSERRY"}),f.push(G.Name);break;case"PtgParen":var J="(",oe=")";if(d>=0){switch(v="",e[0][d][1][0]){case 2:J=Je(" ",e[0][d][1][1])+J;break;case 3:J=Je("\r",e[0][d][1][1])+J;break;case 4:oe=Je(" ",e[0][d][1][1])+oe;break;case 5:oe=Je("\r",e[0][d][1][1])+oe;break;default:if(n.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][d][1][0])}d=-1}f.push(J+f.pop()+oe);break;case"PtgRefErr":f.push("#REF!");break;case"PtgRefErr3d":f.push("#REF!");break;case"PtgExp":l={c:m[1][1],r:m[1][0]};var ee={c:r.c,r:r.r};if(a.sharedf[ge(l)]){var ue=a.sharedf[ge(l)];f.push(Tr(ue,s,ee,a,n))}else{var ce=!1;for(c=0;c!=a.arrayf.length;++c)if(o=a.arrayf[c],!(l.co[0].e.c)&&!(l.ro[0].e.r)){f.push(Tr(o[1],s,ee,a,n)),ce=!0;break}ce||f.push(m[1])}break;case"PtgArray":f.push("{"+Vv(m[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":d=w;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":f.push("");break;case"PtgAreaErr":f.push("#REF!");break;case"PtgAreaErr3d":f.push("#REF!");break;case"PtgList":f.push("Table"+m[1].idx+"[#"+m[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":break;case"PtgMemFunc":break;case"PtgMemNoMem":break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");case"PtgSxName":throw new Error("Unrecognized Formula Token: "+String(m));default:throw new Error("Unrecognized Formula Token: "+String(m))}var ke=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(n.biff!=3&&d>=0&&ke.indexOf(e[0][w][0])==-1){m=e[0][d];var V=!0;switch(m[1][0]){case 4:V=!1;case 0:v=Je(" ",m[1][1]);break;case 5:V=!1;case 1:v=Je("\r",m[1][1]);break;default:if(v="",n.WTF)throw new Error("Unexpected PtgAttrSpaceType "+m[1][0])}f.push((V?v:"")+f.pop()+(V?"":v)),d=-1}}if(f.length>1&&n.WTF)throw new Error("bad formula stack");return f[0]}function zv(e,t,r){var a=e.l+t,n=r.biff==2?1:2,i,s=e.read_shift(n);if(s==65535)return[[],Ar(e,t-2)];var f=kn(e,s,r);return t!==s+n&&(i=wn(e,t-s-n,f,r)),e.l=a,[f,i]}function $v(e,t,r){var a=e.l+t,n=r.biff==2?1:2,i,s=e.read_shift(n);if(s==65535)return[[],Ar(e,t-2)];var f=kn(e,s,r);return t!==s+n&&(i=wn(e,t-s-n,f,r)),e.l=a,[f,i]}function Kv(e,t,r,a){var n=e.l+t,i=kn(e,a,r),s;return n!==e.l&&(s=wn(e,n-e.l,i,r)),[i,s]}function jv(e,t,r){var a=e.l+t,n,i=e.read_shift(2),s=kn(e,i,r);return i==65535?[[],Ar(e,t-2)]:(t!==i+2&&(n=wn(e,a-i-2,s,r)),[s,n])}function Yv(e){var t;if(wt(e,e.l+6)!==65535)return[Fr(e),"n"];switch(e[e.l]){case 0:return e.l+=8,["String","s"];case 1:return t=e[e.l+2]===1,e.l+=8,[t,"b"];case 2:return t=e[e.l+2],e.l+=8,[t,"e"];case 3:return e.l+=8,["","s"]}return[]}function Jv(e){if(e==null){var t=z(8);return t.write_shift(1,3),t.write_shift(1,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,65535),t}else if(typeof e=="number")return ta(e);return ta(0)}function w0(e,t,r){var a=e.l+t,n=vt(e);r.biff==2&&++e.l;var i=Yv(e),s=e.read_shift(1);r.biff!=2&&(e.read_shift(1),r.biff>=5&&e.read_shift(4));var f=$v(e,a-e.l,r);return{cell:n,val:i[0],formula:f,shared:s>>3&1,tt:i[1]}}function qv(e,t,r,a,n){var i=na(t,r,n),s=Jv(e.v),f=z(6),c=33;f.write_shift(2,c),f.write_shift(4,0);for(var o=z(e.bf.length),l=0;l0?wn(e,i,n,r):null;return[n,s]}var Zv=s0,f0=s0,Qv=s0,em=s0,rm={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},Yc={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},tm={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function Ms(e){return e.slice(0,3)=="of:"&&(e=e.slice(3)),e.charCodeAt(0)==61&&(e=e.slice(1),e.charCodeAt(0)==61&&(e=e.slice(1))),e=e.replace(/COM\.MICROSOFT\./g,""),e=e.replace(/\[((?:\.[A-Z]+[0-9]+)(?::\.[A-Z]+[0-9]+)?)\]/g,function(t,r){return r.replace(/\./g,"")}),e=e.replace(/\[.(#[A-Z]*[?!])\]/g,"$1"),e.replace(/[;~]/g,",").replace(/\|/g,";")}function am(e){var t="of:="+e.replace(gi,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return t.replace(/;/g,"|").replace(/,/g,";")}function k0(e){var t=e.split(":"),r=t[0].split(".")[0];return[r,t[0].split(".")[1]+(t.length>1?":"+(t[1].split(".")[1]||t[1].split(".")[0]):"")]}function nm(e){return e.replace(/\./,"!")}var $a={},Fa={},Ka=typeof Map<"u";function ki(e,t,r){var a=0,n=e.length;if(r){if(Ka?r.has(t):Object.prototype.hasOwnProperty.call(r,t)){for(var i=Ka?r.get(t):r[t];a-1?(r.width=qn(a),r.customWidth=1):t.width!=null&&(r.width=t.width),t.hidden&&(r.hidden=!0),t.level!=null&&(r.outlineLevel=r.level=t.level),r}function qt(e,t){if(e){var r=[.7,.7,.75,.75,.3,.3];t=="xlml"&&(r=[1,1,1,1,.5,.5]),e.left==null&&(e.left=r[0]),e.right==null&&(e.right=r[1]),e.top==null&&(e.top=r[2]),e.bottom==null&&(e.bottom=r[3]),e.header==null&&(e.header=r[4]),e.footer==null&&(e.footer=r[5])}}function Xt(e,t,r){var a=r.revssf[t.z!=null?t.z:"General"],n=60,i=e.length;if(a==null&&r.ssf){for(;n<392;++n)if(r.ssf[n]==null){dt(t.z,n),r.ssf[n]=t.z,r.revssf[t.z]=a=n;break}}for(n=0;n!=i;++n)if(e[n].numFmtId===a)return n;return e[i]={numFmtId:a,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},i}function Jc(e,t,r,a,n,i){try{a.cellNF&&(e.z=me[t])}catch(f){if(a.WTF)throw f}if(!(e.t==="z"&&!a.cellStyles)){if(e.t==="d"&&typeof e.v=="string"&&(e.v=Ge(e.v)),(!a||a.cellText!==!1)&&e.t!=="z")try{if(me[t]==null&&dt(tu[t]||"General",t),e.t==="e")e.w=e.w||At[e.v];else if(t===0)if(e.t==="n")(e.v|0)===e.v?e.w=e.v.toString(10):e.w=rn(e.v);else if(e.t==="d"){var s=ur(e.v);(s|0)===s?e.w=s.toString(10):e.w=rn(s)}else{if(e.v===void 0)return"";e.w=ea(e.v,Fa)}else e.t==="d"?e.w=Vr(t,ur(e.v),Fa):e.w=Vr(t,e.v,Fa)}catch(f){if(a.WTF)throw f}if(a.cellStyles&&r!=null)try{e.s=i.Fills[r],e.s.fgColor&&e.s.fgColor.theme&&!e.s.fgColor.rgb&&(e.s.fgColor.rgb=Jn(n.themeElements.clrScheme[e.s.fgColor.theme].rgb,e.s.fgColor.tint||0),a.WTF&&(e.s.fgColor.raw_rgb=n.themeElements.clrScheme[e.s.fgColor.theme].rgb)),e.s.bgColor&&e.s.bgColor.theme&&(e.s.bgColor.rgb=Jn(n.themeElements.clrScheme[e.s.bgColor.theme].rgb,e.s.bgColor.tint||0),a.WTF&&(e.s.bgColor.raw_rgb=n.themeElements.clrScheme[e.s.bgColor.theme].rgb))}catch(f){if(a.WTF&&i.Fills)throw f}}}function im(e,t,r){if(e&&e["!ref"]){var a=Re(e["!ref"]);if(a.e.c=0&&r.s.c>=0&&(e["!ref"]=Te(r))}var fm=/<(?:\w:)?mergeCell ref="[A-Z0-9:]+"\s*[\/]?>/g,cm=/<(?:\w+:)?sheetData[^>]*>([\s\S]*)<\/(?:\w+:)?sheetData>/,om=/<(?:\w:)?hyperlink [^>]*>/mg,lm=/"(\w*:\w*)"/,um=/<(?:\w:)?col\b[^>]*[\/]?>/g,hm=/<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g,xm=/<(?:\w:)?pageMargins[^>]*\/>/g,qc=/<(?:\w:)?sheetPr\b(?:[^>a-z][^>]*)?\/>/,dm=/<(?:\w:)?sheetPr[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetPr)>/,pm=/<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/;function vm(e,t,r,a,n,i,s){if(!e)return e;a||(a={"!id":{}});var f=t.dense?[]:{},c={s:{r:2e6,c:2e6},e:{r:0,c:0}},o="",l="",u=e.match(cm);u?(o=e.slice(0,u.index),l=e.slice(u.index+u[0].length)):o=l=e;var h=o.match(qc);h?Ei(h[0],f,n,r):(h=o.match(dm))&&gm(h[0],h[1]||"",f,n,r);var x=(o.match(/<(?:\w*:)?dimension/)||{index:-1}).index;if(x>0){var p=o.slice(x,x+50).match(lm);p&&sm(f,p[1])}var d=o.match(pm);d&&d[1]&&Om(d[1],n);var v=[];if(t.cellStyles){var w=o.match(um);w&&ym(v,w)}u&&Nm(u[1],f,t,c,i,s);var k=l.match(hm);k&&(f["!autofilter"]=Cm(k[0]));var m=[],y=l.match(fm);if(y)for(x=0;x!=y.length;++x)m[x]=Re(y[x].slice(y[x].indexOf('"')+1));var I=l.match(om);I&&Tm(f,I,a);var S=l.match(xm);if(S&&(f["!margins"]=Sm(_e(S[0]))),!f["!ref"]&&c.e.c>=c.s.c&&c.e.r>=c.s.r&&(f["!ref"]=Te(c)),t.sheetRows>0&&f["!ref"]){var _=Re(f["!ref"]);t.sheetRows<=+_.e.r&&(_.e.r=t.sheetRows-1,_.e.r>c.e.r&&(_.e.r=c.e.r),_.e.r<_.s.r&&(_.s.r=_.e.r),_.e.c>c.e.c&&(_.e.c=c.e.c),_.e.c<_.s.c&&(_.s.c=_.e.c),f["!fullref"]=f["!ref"],f["!ref"]=Te(_))}return v.length>0&&(f["!cols"]=v),m.length>0&&(f["!merges"]=m),f}function mm(e){if(e.length===0)return"";for(var t='',r=0;r!=e.length;++r)t+='';return t+""}function Ei(e,t,r,a){var n=_e(e);r.Sheets[a]||(r.Sheets[a]={}),n.codeName&&(r.Sheets[a].CodeName=Ie(Ue(n.codeName)))}function gm(e,t,r,a,n){Ei(e.slice(0,e.indexOf(">")),r,a,n)}function _m(e,t,r,a,n){var i=!1,s={},f=null;if(a.bookType!=="xlsx"&&t.vbaraw){var c=t.SheetNames[r];try{t.Workbook&&(c=t.Workbook.Sheets[r].CodeName||c)}catch{}i=!0,s.codeName=xt(Be(c))}if(e&&e["!outline"]){var o={summaryBelow:1,summaryRight:1};e["!outline"].above&&(o.summaryBelow=0),e["!outline"].left&&(o.summaryRight=0),f=(f||"")+ie("outlinePr",null,o)}!i&&!f||(n[n.length]=ie("sheetPr",f,s))}var wm=["objects","scenarios","selectLockedCells","selectUnlockedCells"],km=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function Em(e){var t={sheet:1};return wm.forEach(function(r){e[r]!=null&&e[r]&&(t[r]="1")}),km.forEach(function(r){e[r]!=null&&!e[r]&&(t[r]="0")}),e.password&&(t.password=pi(e.password).toString(16).toUpperCase()),ie("sheetProtection",null,t)}function Tm(e,t,r){for(var a=Array.isArray(e),n=0;n!=t.length;++n){var i=_e(Ue(t[n]),!0);if(!i.ref)return;var s=((r||{})["!id"]||[])[i.id];s?(i.Target=s.Target,i.location&&(i.Target+="#"+Ie(i.location))):(i.Target="#"+Ie(i.location),s={Target:i.Target,TargetMode:"Internal"}),i.Rel=s,i.tooltip&&(i.Tooltip=i.tooltip,delete i.tooltip);for(var f=Re(i.ref),c=f.s.r;c<=f.e.r;++c)for(var o=f.s.c;o<=f.e.c;++o){var l=ge({c:o,r:c});a?(e[c]||(e[c]=[]),e[c][o]||(e[c][o]={t:"z",v:void 0}),e[c][o].l=i):(e[l]||(e[l]={t:"z",v:void 0}),e[l].l=i)}}}function Sm(e){var t={};return["left","right","top","bottom","header","footer"].forEach(function(r){e[r]&&(t[r]=parseFloat(e[r]))}),t}function Fm(e){return qt(e),ie("pageMargins",null,e)}function ym(e,t){for(var r=!1,a=0;a!=t.length;++a){var n=_e(t[a],!0);n.hidden&&(n.hidden=Xe(n.hidden));var i=parseInt(n.min,10)-1,s=parseInt(n.max,10)-1;for(n.outlineLevel&&(n.level=+n.outlineLevel||0),delete n.min,delete n.max,n.width=+n.width,!r&&n.width&&(r=!0,vi(n.width)),Mt(n);i<=s;)e[i++]=ze(n)}}function Am(e,t){for(var r=[""],a,n=0;n!=t.length;++n)(a=t[n])&&(r[r.length]=ie("col",null,c0(n,a)));return r[r.length]="",r.join("")}function Cm(e){var t={ref:(e.match(/ref="([^"]*)"/)||[])[1]};return t}function bm(e,t,r,a){var n=typeof e.ref=="string"?e.ref:Te(e.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var i=r.Workbook.Names,s=Pr(n);s.s.r==s.e.r&&(s.e.r=Pr(t["!ref"]).e.r,n=Te(s));for(var f=0;fa-z][^>]*)?\/?>/;function Om(e,t){t.Views||(t.Views=[{}]),(e.match(Dm)||[]).forEach(function(r,a){var n=_e(r);t.Views[a]||(t.Views[a]={}),+n.zoomScale&&(t.Views[a].zoom=+n.zoomScale),Xe(n.rightToLeft)&&(t.Views[a].RTL=!0)})}function Im(e,t,r,a){var n={workbookViewId:"0"};return(((a||{}).Workbook||{}).Views||[])[0]&&(n.rightToLeft=a.Workbook.Views[0].RTL?"1":"0"),ie("sheetViews",ie("sheetView",null,n),{})}function Rm(e,t,r,a){if(e.c&&r["!comments"].push([t,e.c]),e.v===void 0&&typeof e.f!="string"||e.t==="z"&&!e.f)return"";var n="",i=e.t,s=e.v;if(e.t!=="z")switch(e.t){case"b":n=e.v?"1":"0";break;case"n":n=""+e.v;break;case"e":n=At[e.v];break;case"d":a&&a.cellDates?n=Ge(e.v,-1).toISOString():(e=ze(e),e.t="n",n=""+(e.v=ur(Ge(e.v)))),typeof e.z>"u"&&(e.z=me[14]);break;default:n=e.v;break}var f=_r("v",Be(n)),c={r:t},o=Xt(a.cellXfs,e,a);switch(o!==0&&(c.s=o),e.t){case"n":break;case"d":c.t="d";break;case"b":c.t="b";break;case"e":c.t="e";break;case"z":break;default:if(e.v==null){delete e.t;break}if(e.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(a&&a.bookSST){f=_r("v",""+ki(a.Strings,e.v,a.revStrings)),c.t="s";break}c.t="str";break}if(e.t!=i&&(e.t=i,e.v=s),typeof e.f=="string"&&e.f){var l=e.F&&e.F.slice(0,t.length)==t?{t:"array",ref:e.F}:null;f=ie("f",Be(e.f),l)+(e.v!=null?f:"")}return e.l&&r["!links"].push([t,e.l]),e.D&&(c.cm=1),ie("c",f,c)}var Nm=function(){var e=/<(?:\w+:)?c[ \/>]/,t=/<\/(?:\w+:)?row>/,r=/r=["']([^"']*)["']/,a=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/,n=/ref=["']([^"']*)["']/,i=tn("v"),s=tn("f");return function(c,o,l,u,h,x){for(var p=0,d="",v=[],w=[],k=0,m=0,y=0,I="",S,_,N=0,O=0,G,M,L=0,J=0,oe=Array.isArray(x.CellXf),ee,ue=[],ce=[],ke=Array.isArray(o),V=[],xe={},pe=!1,b=!!l.sheetStubs,B=c.split(t),R=0,P=B.length;R!=P;++R){d=B[R].trim();var K=d.length;if(K!==0){var te=0;e:for(p=0;p":if(d[p-1]!="/"){++p;break e}if(l&&l.cellStyles){if(_=_e(d.slice(te,p),!0),N=_.r!=null?parseInt(_.r,10):N+1,O=-1,l.sheetRows&&l.sheetRows=p)break;if(_=_e(d.slice(te,p),!0),N=_.r!=null?parseInt(_.r,10):N+1,O=-1,!(l.sheetRows&&l.sheetRowsN-1&&(u.s.r=N-1),u.e.r":"")+d,w!=null&&w.length===2){for(k=0,I=w[1],m=0;m!=I.length&&!((y=I.charCodeAt(m)-64)<1||y>26);++m)k=26*k+y;--k,O=k}else++O;for(m=0;m!=d.length&&d.charCodeAt(m)!==62;++m);if(++m,_=_e(d.slice(0,m),!0),_.r||(_.r=ge({r:N-1,c:O})),I=d.slice(m),S={t:""},(w=I.match(i))!=null&&w[1]!==""&&(S.v=Ie(w[1])),l.cellFormula){if((w=I.match(s))!=null&&w[1]!==""){if(S.f=Ie(Ue(w[1])).replace(/\r\n/g,` +`),l.xlfn||(S.f=Ns(S.f)),w[0].indexOf('t="array"')>-1)S.F=(I.match(n)||[])[1],S.F.indexOf(":")>-1&&ue.push([Re(S.F),S.F]);else if(w[0].indexOf('t="shared"')>-1){M=_e(w[0]);var Q=Ie(Ue(w[1]));l.xlfn||(Q=Ns(Q)),ce[parseInt(M.si,10)]=[M,Q,_.r]}}else(w=I.match(/]*\/>/))&&(M=_e(w[0]),ce[M.si]&&(S.f=Dp(ce[M.si][1],ce[M.si][2],_.r)));var q=Ye(_.r);for(m=0;m=ue[m][0].s.r&&q.r<=ue[m][0].e.r&&q.c>=ue[m][0].s.c&&q.c<=ue[m][0].e.c&&(S.F=ue[m][1])}if(_.t==null&&S.v===void 0)if(S.f||S.F)S.v=0,S.t="n";else if(b)S.t="z";else continue;else S.t=_.t||"n";switch(u.s.c>O&&(u.s.c=O),u.e.c"u"){if(!b)continue;S.t="z"}else G=$a[parseInt(S.v,10)],S.v=G.t,S.r=G.r,l.cellHTML&&(S.h=G.h);break;case"str":S.t="s",S.v=S.v!=null?Ue(S.v):"",l.cellHTML&&(S.h=ei(S.v));break;case"inlineStr":w=I.match(a),S.t="s",w!=null&&(G=di(w[1]))?(S.v=G.t,l.cellHTML&&(S.h=G.h)):S.v="";break;case"b":S.v=Xe(S.v);break;case"d":l.cellDates?S.v=Ge(S.v,1):(S.v=ur(Ge(S.v,1)),S.t="n");break;case"e":(!l||l.cellText!==!1)&&(S.w=S.v),S.v=Qf[S.v];break}if(L=J=0,ee=null,oe&&_.s!==void 0&&(ee=x.CellXf[_.s],ee!=null&&(ee.numFmtId!=null&&(L=ee.numFmtId),l.cellStyles&&ee.fillId!=null&&(J=ee.fillId))),Jc(S,L,J,l,h,x),l.cellDates&&oe&&S.t=="n"&&fa(me[L])&&(S.t="d",S.v=n0(S.v)),_.cm&&l.xlmeta){var Fe=(l.xlmeta.Cell||[])[+_.cm-1];Fe&&Fe.type=="XLDAPR"&&(S.D=!0)}if(ke){var D=Ye(_.r);o[D.r]||(o[D.r]=[]),o[D.r][D.c]=S}else o[_.r]=S}}}}V.length>0&&(o["!rows"]=V)}}();function Pm(e,t,r,a){var n=[],i=[],s=Re(e["!ref"]),f="",c,o="",l=[],u=0,h=0,x=e["!rows"],p=Array.isArray(e),d={r:o},v,w=-1;for(h=s.s.c;h<=s.e.c;++h)l[h]=je(h);for(u=s.s.r;u<=s.e.r;++u){for(i=[],o=tr(u),h=s.s.c;h<=s.e.c;++h){c=l[h]+o;var k=p?(e[u]||[])[h]:e[c];k!==void 0&&(f=Rm(k,c,e,t))!=null&&i.push(f)}(i.length>0||x&&x[u])&&(d={r:o},x&&x[u]&&(v=x[u],v.hidden&&(d.hidden=1),w=-1,v.hpx?w=ln(v.hpx):v.hpt&&(w=v.hpt),w>-1&&(d.ht=w,d.customHeight=1),v.level&&(d.outlineLevel=v.level)),n[n.length]=ie("row",i.join(""),d))}if(x)for(;u-1&&(d.ht=w,d.customHeight=1),v.level&&(d.outlineLevel=v.level),n[n.length]=ie("row","",d));return n.join("")}function Zc(e,t,r,a){var n=[ar,ie("worksheet",null,{xmlns:ca[0],"xmlns:r":or.r})],i=r.SheetNames[e],s=0,f="",c=r.Sheets[i];c==null&&(c={});var o=c["!ref"]||"A1",l=Re(o);if(l.e.c>16383||l.e.r>1048575){if(t.WTF)throw new Error("Range "+o+" exceeds format limit A1:XFD1048576");l.e.c=Math.min(l.e.c,16383),l.e.r=Math.min(l.e.c,1048575),o=Te(l)}a||(a={}),c["!comments"]=[];var u=[];_m(c,r,e,t,n),n[n.length]=ie("dimension",null,{ref:o}),n[n.length]=Im(c,t,e,r),t.sheetFormat&&(n[n.length]=ie("sheetFormatPr",null,{defaultRowHeight:t.sheetFormat.defaultRowHeight||"16",baseColWidth:t.sheetFormat.baseColWidth||"10",outlineLevelRow:t.sheetFormat.outlineLevelRow||"7"})),c["!cols"]!=null&&c["!cols"].length>0&&(n[n.length]=Am(c,c["!cols"])),n[s=n.length]="",c["!links"]=[],c["!ref"]!=null&&(f=Pm(c,t),f.length>0&&(n[n.length]=f)),n.length>s+1&&(n[n.length]="",n[s]=n[s].replace("/>",">")),c["!protect"]&&(n[n.length]=Em(c["!protect"])),c["!autofilter"]!=null&&(n[n.length]=bm(c["!autofilter"],c,r,e)),c["!merges"]!=null&&c["!merges"].length>0&&(n[n.length]=mm(c["!merges"]));var h=-1,x,p=-1;return c["!links"].length>0&&(n[n.length]="",c["!links"].forEach(function(d){d[1].Target&&(x={ref:d[0]},d[1].Target.charAt(0)!="#"&&(p=Le(a,-1,Be(d[1].Target).replace(/#.*$/,""),be.HLINK),x["r:id"]="rId"+p),(h=d[1].Target.indexOf("#"))>-1&&(x.location=Be(d[1].Target.slice(h+1))),d[1].Tooltip&&(x.tooltip=Be(d[1].Tooltip)),n[n.length]=ie("hyperlink",null,x))}),n[n.length]=""),delete c["!links"],c["!margins"]!=null&&(n[n.length]=Fm(c["!margins"])),(!t||t.ignoreEC||t.ignoreEC==null)&&(n[n.length]=_r("ignoredErrors",ie("ignoredError",null,{numberStoredAsText:1,sqref:o}))),u.length>0&&(p=Le(a,-1,"../drawings/drawing"+(e+1)+".xml",be.DRAW),n[n.length]=ie("drawing",null,{"r:id":"rId"+p}),c["!drawing"]=u),c["!comments"].length>0&&(p=Le(a,-1,"../drawings/vmlDrawing"+(e+1)+".vml",be.VML),n[n.length]=ie("legacyDrawing",null,{"r:id":"rId"+p}),c["!legacy"]=p),n.length>1&&(n[n.length]="",n[1]=n[1].replace("/>",">")),n.join("")}function Lm(e,t){var r={},a=e.l+t;r.r=e.read_shift(4),e.l+=4;var n=e.read_shift(2);e.l+=1;var i=e.read_shift(1);return e.l=a,i&7&&(r.level=i&7),i&16&&(r.hidden=!0),i&32&&(r.hpt=n/20),r}function Bm(e,t,r){var a=z(145),n=(r["!rows"]||[])[e]||{};a.write_shift(4,e),a.write_shift(4,0);var i=320;n.hpx?i=ln(n.hpx)*20:n.hpt&&(i=n.hpt*20),a.write_shift(2,i),a.write_shift(1,0);var s=0;n.level&&(s|=n.level),n.hidden&&(s|=16),(n.hpx||n.hpt)&&(s|=32),a.write_shift(1,s),a.write_shift(1,0);var f=0,c=a.l;a.l+=4;for(var o={r:e,c:0},l=0;l<16;++l)if(!(t.s.c>l+1<<10||t.e.ca.l?a.slice(0,a.l):a}function Mm(e,t,r,a){var n=Bm(a,r,t);(n.length>17||(t["!rows"]||[])[a])&&Y(e,0,n)}var Um=ha,Wm=Oa;function Hm(){}function Vm(e,t){var r={},a=e[e.l];return++e.l,r.above=!(a&64),r.left=!(a&128),e.l+=18,r.name=zu(e),r}function Xm(e,t,r){r==null&&(r=z(84+4*e.length));var a=192;t&&(t.above&&(a&=-65),t.left&&(a&=-129)),r.write_shift(1,a);for(var n=1;n<3;++n)r.write_shift(1,0);return Kn({auto:1},r),r.write_shift(-4,-1),r.write_shift(-4,-1),jf(e,r),r.slice(0,r.l)}function Gm(e){var t=Qr(e);return[t]}function zm(e,t,r){return r==null&&(r=z(8)),oa(t,r)}function $m(e){var t=la(e);return[t]}function Km(e,t,r){return r==null&&(r=z(4)),ua(t,r)}function jm(e){var t=Qr(e),r=e.read_shift(1);return[t,r,"b"]}function Ym(e,t,r){return r==null&&(r=z(9)),oa(t,r),r.write_shift(1,e.v?1:0),r}function Jm(e){var t=la(e),r=e.read_shift(1);return[t,r,"b"]}function qm(e,t,r){return r==null&&(r=z(5)),ua(t,r),r.write_shift(1,e.v?1:0),r}function Zm(e){var t=Qr(e),r=e.read_shift(1);return[t,r,"e"]}function Qm(e,t,r){return r==null&&(r=z(9)),oa(t,r),r.write_shift(1,e.v),r}function e2(e){var t=la(e),r=e.read_shift(1);return[t,r,"e"]}function r2(e,t,r){return r==null&&(r=z(8)),ua(t,r),r.write_shift(1,e.v),r.write_shift(2,0),r.write_shift(1,0),r}function t2(e){var t=Qr(e),r=e.read_shift(4);return[t,r,"s"]}function a2(e,t,r){return r==null&&(r=z(12)),oa(t,r),r.write_shift(4,t.v),r}function n2(e){var t=la(e),r=e.read_shift(4);return[t,r,"s"]}function i2(e,t,r){return r==null&&(r=z(8)),ua(t,r),r.write_shift(4,t.v),r}function s2(e){var t=Qr(e),r=Fr(e);return[t,r,"n"]}function f2(e,t,r){return r==null&&(r=z(16)),oa(t,r),ta(e.v,r),r}function Qc(e){var t=la(e),r=Fr(e);return[t,r,"n"]}function c2(e,t,r){return r==null&&(r=z(12)),ua(t,r),ta(e.v,r),r}function o2(e){var t=Qr(e),r=oi(e);return[t,r,"n"]}function l2(e,t,r){return r==null&&(r=z(12)),oa(t,r),Yf(e.v,r),r}function u2(e){var t=la(e),r=oi(e);return[t,r,"n"]}function h2(e,t,r){return r==null&&(r=z(8)),ua(t,r),Yf(e.v,r),r}function x2(e){var t=Qr(e),r=si(e);return[t,r,"is"]}function d2(e){var t=Qr(e),r=yr(e);return[t,r,"str"]}function p2(e,t,r){return r==null&&(r=z(12+4*e.v.length)),oa(t,r),pr(e.v,r),r.length>r.l?r.slice(0,r.l):r}function v2(e){var t=la(e),r=yr(e);return[t,r,"str"]}function m2(e,t,r){return r==null&&(r=z(8+4*e.v.length)),ua(t,r),pr(e.v,r),r.length>r.l?r.slice(0,r.l):r}function g2(e,t,r){var a=e.l+t,n=Qr(e);n.r=r["!row"];var i=e.read_shift(1),s=[n,i,"b"];if(r.cellFormula){e.l+=2;var f=f0(e,a-e.l,r);s[3]=Tr(f,null,n,r.supbooks,r)}else e.l=a;return s}function _2(e,t,r){var a=e.l+t,n=Qr(e);n.r=r["!row"];var i=e.read_shift(1),s=[n,i,"e"];if(r.cellFormula){e.l+=2;var f=f0(e,a-e.l,r);s[3]=Tr(f,null,n,r.supbooks,r)}else e.l=a;return s}function w2(e,t,r){var a=e.l+t,n=Qr(e);n.r=r["!row"];var i=Fr(e),s=[n,i,"n"];if(r.cellFormula){e.l+=2;var f=f0(e,a-e.l,r);s[3]=Tr(f,null,n,r.supbooks,r)}else e.l=a;return s}function k2(e,t,r){var a=e.l+t,n=Qr(e);n.r=r["!row"];var i=yr(e),s=[n,i,"str"];if(r.cellFormula){e.l+=2;var f=f0(e,a-e.l,r);s[3]=Tr(f,null,n,r.supbooks,r)}else e.l=a;return s}var E2=ha,T2=Oa;function S2(e,t){return t==null&&(t=z(4)),t.write_shift(4,e),t}function F2(e,t){var r=e.l+t,a=ha(e),n=fi(e),i=yr(e),s=yr(e),f=yr(e);e.l=r;var c={rfx:a,relId:n,loc:i,display:f};return s&&(c.Tooltip=s),c}function y2(e,t){var r=z(50+4*(e[1].Target.length+(e[1].Tooltip||"").length));Oa({s:Ye(e[0]),e:Ye(e[0])},r),ci("rId"+t,r);var a=e[1].Target.indexOf("#"),n=a==-1?"":e[1].Target.slice(a+1);return pr(n||"",r),pr(e[1].Tooltip||"",r),pr("",r),r.slice(0,r.l)}function A2(){}function C2(e,t,r){var a=e.l+t,n=Jf(e),i=e.read_shift(1),s=[n];if(s[2]=i,r.cellFormula){var f=Zv(e,a-e.l,r);s[1]=f}else e.l=a;return s}function b2(e,t,r){var a=e.l+t,n=ha(e),i=[n];if(r.cellFormula){var s=em(e,a-e.l,r);i[1]=s,e.l=a}else e.l=a;return i}function D2(e,t,r){r==null&&(r=z(18));var a=c0(e,t);r.write_shift(-4,e),r.write_shift(-4,e),r.write_shift(4,(a.width||10)*256),r.write_shift(4,0);var n=0;return t.hidden&&(n|=1),typeof a.width=="number"&&(n|=2),t.level&&(n|=t.level<<8),r.write_shift(2,n),r}var eo=["left","right","top","bottom","header","footer"];function O2(e){var t={};return eo.forEach(function(r){t[r]=Fr(e)}),t}function I2(e,t){return t==null&&(t=z(6*8)),qt(e),eo.forEach(function(r){ta(e[r],t)}),t}function R2(e){var t=e.read_shift(2);return e.l+=28,{RTL:t&32}}function N2(e,t,r){r==null&&(r=z(30));var a=924;return(((t||{}).Views||[])[0]||{}).RTL&&(a|=32),r.write_shift(2,a),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(2,0),r.write_shift(2,100),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(4,0),r}function P2(e){var t=z(24);return t.write_shift(4,4),t.write_shift(4,1),Oa(e,t),t}function L2(e,t){return t==null&&(t=z(16*4+2)),t.write_shift(2,e.password?pi(e.password):0),t.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach(function(r){r[1]?t.write_shift(4,e[r[0]]!=null&&!e[r[0]]?1:0):t.write_shift(4,e[r[0]]!=null&&e[r[0]]?0:1)}),t}function B2(){}function M2(){}function U2(e,t,r,a,n,i,s){if(!e)return e;var f=t||{};a||(a={"!id":{}});var c=f.dense?[]:{},o,l={s:{r:2e6,c:2e6},e:{r:0,c:0}},u=!1,h=!1,x,p,d,v,w,k,m,y,I,S=[];f.biff=12,f["!row"]=0;var _=0,N=!1,O=[],G={},M=f.supbooks||n.supbooks||[[]];if(M.sharedf=G,M.arrayf=O,M.SheetNames=n.SheetNames||n.Sheets.map(function(ke){return ke.name}),!f.supbooks&&(f.supbooks=M,n.Names))for(var L=0;L=b[0].s.r&&x.r<=b[0].e.r&&w>=b[0].s.c&&w<=b[0].e.c&&(p.F=Te(b[0]),N=!0)}!N&&V.length>3&&(p.f=V[3])}if(l.s.r>x.r&&(l.s.r=x.r),l.s.c>w&&(l.s.c=w),l.e.rx.r&&(l.s.r=x.r),l.s.c>w&&(l.s.c=w),l.e.r=V.s;)J[V.e--]={width:V.w/256,hidden:!!(V.flags&1),level:V.level},ee||(ee=!0,vi(V.w/256)),Mt(J[V.e+1]);break;case 161:c["!autofilter"]={ref:Te(V)};break;case 476:c["!margins"]=V;break;case 147:n.Sheets[r]||(n.Sheets[r]={}),V.name&&(n.Sheets[r].CodeName=V.name),(V.above||V.left)&&(c["!outline"]={above:V.above,left:V.left});break;case 137:n.Views||(n.Views=[{}]),n.Views[0]||(n.Views[0]={}),V.RTL&&(n.Views[0].RTL=!0);break;case 485:break;case 64:case 1053:break;case 151:break;case 152:case 175:case 644:case 625:case 562:case 396:case 1112:case 1146:case 471:case 1050:case 649:case 1105:case 589:case 607:case 564:case 1055:case 168:case 174:case 1180:case 499:case 507:case 550:case 171:case 167:case 1177:case 169:case 1181:case 551:case 552:case 661:case 639:case 478:case 537:case 477:case 536:case 1103:case 680:case 1104:case 1024:case 663:case 535:case 678:case 504:case 1043:case 428:case 170:case 3072:case 50:case 2070:case 1045:break;case 35:u=!0;break;case 36:u=!1;break;case 37:u=!0;break;case 38:u=!1;break;default:if(!xe.T){if(!u||f.WTF)throw new Error("Unexpected record 0x"+pe.toString(16))}}},f),delete f.supbooks,delete f["!row"],!c["!ref"]&&(l.s.r<2e6||o&&(o.e.r>0||o.e.c>0||o.s.r>0||o.s.c>0))&&(c["!ref"]=Te(o||l)),f.sheetRows&&c["!ref"]){var ce=Re(c["!ref"]);f.sheetRows<=+ce.e.r&&(ce.e.r=f.sheetRows-1,ce.e.r>l.e.r&&(ce.e.r=l.e.r),ce.e.rl.e.c&&(ce.e.c=l.e.c),ce.e.c0&&(c["!merges"]=S),J.length>0&&(c["!cols"]=J),oe.length>0&&(c["!rows"]=oe),c}function W2(e,t,r,a,n,i,s){if(t.v===void 0)return!1;var f="";switch(t.t){case"b":f=t.v?"1":"0";break;case"d":t=ze(t),t.z=t.z||me[14],t.v=ur(Ge(t.v)),t.t="n";break;case"n":case"e":f=""+t.v;break;default:f=t.v;break}var c={r,c:a};switch(c.s=Xt(n.cellXfs,t,n),t.l&&i["!links"].push([ge(c),t.l]),t.c&&i["!comments"].push([ge(c),t.c]),t.t){case"s":case"str":return n.bookSST?(f=ki(n.Strings,t.v,n.revStrings),c.t="s",c.v=f,s?Y(e,18,i2(t,c)):Y(e,7,a2(t,c))):(c.t="str",s?Y(e,17,m2(t,c)):Y(e,6,p2(t,c))),!0;case"n":return t.v==(t.v|0)&&t.v>-1e3&&t.v<1e3?s?Y(e,13,h2(t,c)):Y(e,2,l2(t,c)):s?Y(e,16,c2(t,c)):Y(e,5,f2(t,c)),!0;case"b":return c.t="b",s?Y(e,15,qm(t,c)):Y(e,4,Ym(t,c)),!0;case"e":return c.t="e",s?Y(e,14,r2(t,c)):Y(e,3,Qm(t,c)),!0}return s?Y(e,12,Km(t,c)):Y(e,1,zm(t,c)),!0}function H2(e,t,r,a){var n=Re(t["!ref"]||"A1"),i,s="",f=[];Y(e,145);var c=Array.isArray(t),o=n.e.r;t["!rows"]&&(o=Math.max(n.e.r,t["!rows"].length-1));for(var l=n.s.r;l<=o;++l){s=tr(l),Mm(e,t,n,l);var u=!1;if(l<=n.e.r)for(var h=n.s.c;h<=n.e.c;++h){l===n.s.r&&(f[h]=je(h)),i=f[h]+s;var x=c?(t[l]||[])[h]:t[i];if(!x){u=!1;continue}u=W2(e,x,l,h,a,t,u)}}Y(e,146)}function V2(e,t){!t||!t["!merges"]||(Y(e,177,S2(t["!merges"].length)),t["!merges"].forEach(function(r){Y(e,176,T2(r))}),Y(e,178))}function X2(e,t){!t||!t["!cols"]||(Y(e,390),t["!cols"].forEach(function(r,a){r&&Y(e,60,D2(a,r))}),Y(e,391))}function G2(e,t){!t||!t["!ref"]||(Y(e,648),Y(e,649,P2(Re(t["!ref"]))),Y(e,650))}function z2(e,t,r){t["!links"].forEach(function(a){if(a[1].Target){var n=Le(r,-1,a[1].Target.replace(/#.*$/,""),be.HLINK);Y(e,494,y2(a,n))}}),delete t["!links"]}function $2(e,t,r,a){if(t["!comments"].length>0){var n=Le(a,-1,"../drawings/vmlDrawing"+(r+1)+".vml",be.VML);Y(e,551,ci("rId"+n)),t["!legacy"]=n}}function K2(e,t,r,a){if(t["!autofilter"]){var n=t["!autofilter"],i=typeof n.ref=="string"?n.ref:Te(n.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var s=r.Workbook.Names,f=Pr(i);f.s.r==f.e.r&&(f.e.r=Pr(t["!ref"]).e.r,i=Te(f));for(var c=0;c16383||c.e.r>1048575){if(t.WTF)throw new Error("Range "+(s["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");c.e.c=Math.min(c.e.c,16383),c.e.r=Math.min(c.e.c,1048575)}return s["!links"]=[],s["!comments"]=[],Y(n,129),(r.vbaraw||s["!outline"])&&Y(n,147,Xm(f,s["!outline"])),Y(n,148,Wm(c)),j2(n,s,r.Workbook),X2(n,s),H2(n,s,e,t),Y2(n,s),K2(n,s,r,e),V2(n,s),z2(n,s,a),s["!margins"]&&Y(n,476,I2(s["!margins"])),(!t||t.ignoreEC||t.ignoreEC==null)&&G2(n,s),$2(n,s,e,a),Y(n,130),n.end()}function q2(e){var t=[],r=e.match(/^/),a;(e.match(/(.*?)<\/c:pt>/mg)||[]).forEach(function(i){var s=i.match(/(.*)<\/c:v><\/c:pt>/);s&&(t[+s[1]]=r?+s[2]:s[2])});var n=Ie((e.match(/([\s\S]*?)<\/c:formatCode>/)||["","General"])[1]);return(e.match(/(.*?)<\/c:f>/mg)||[]).forEach(function(i){a=i.replace(/<.*?>/g,"")}),[t,n,a]}function Z2(e,t,r,a,n,i){var s=i||{"!type":"chart"};if(!e)return i;var f=0,c=0,o="A",l={s:{r:2e6,c:2e6},e:{r:0,c:0}};return(e.match(/[\s\S]*?<\/c:numCache>/gm)||[]).forEach(function(u){var h=q2(u);l.s.r=l.s.c=0,l.e.c=f,o=je(f),h[0].forEach(function(x,p){s[o+tr(p)]={t:"n",v:x,z:h[1]},c=p}),l.e.r0&&(s["!ref"]=Te(l)),s}function Q2(e,t,r,a,n){if(!e)return e;a||(a={"!id":{}});var i={"!type":"chart","!drawel":null,"!rel":""},s,f=e.match(qc);return f&&Ei(f[0],i,n,r),(s=e.match(/drawing r:id="(.*?)"/))&&(i["!rel"]=s[1]),a["!id"][i["!rel"]]&&(i["!drawel"]=a["!id"][i["!rel"]]),i}function eg(e,t){e.l+=10;var r=yr(e);return{name:r}}function rg(e,t,r,a,n){if(!e)return e;a||(a={"!id":{}});var i={"!type":"chart","!drawel":null,"!rel":""},s=!1;return yt(e,function(c,o,l){switch(l){case 550:i["!rel"]=c;break;case 651:n.Sheets[r]||(n.Sheets[r]={}),c.name&&(n.Sheets[r].CodeName=c.name);break;case 562:case 652:case 669:case 679:case 551:case 552:case 476:case 3072:break;case 35:s=!0;break;case 36:s=!1;break;case 37:break;case 38:break;default:if(!(o.T>0)){if(!(o.T<0)){if(!s||t.WTF)throw new Error("Unexpected record 0x"+l.toString(16))}}}},t),a["!id"][i["!rel"]]&&(i["!drawel"]=a["!id"][i["!rel"]]),i}var Ti=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]],tg=[["activeTab",0,"int"],["autoFilterDateGrouping",!0,"bool"],["firstSheet",0,"int"],["minimized",!1,"bool"],["showHorizontalScroll",!0,"bool"],["showSheetTabs",!0,"bool"],["showVerticalScroll",!0,"bool"],["tabRatio",600,"int"],["visibility","visible"]],ag=[],ng=[["calcCompleted","true"],["calcMode","auto"],["calcOnSave","true"],["concurrentCalc","true"],["fullCalcOnLoad","false"],["fullPrecision","true"],["iterate","false"],["iterateCount","100"],["iterateDelta","0.001"],["refMode","A1"]];function Us(e,t){for(var r=0;r!=e.length;++r)for(var a=e[r],n=0;n!=t.length;++n){var i=t[n];if(a[i[0]]==null)a[i[0]]=i[1];else switch(i[2]){case"bool":typeof a[i[0]]=="string"&&(a[i[0]]=Xe(a[i[0]]));break;case"int":typeof a[i[0]]=="string"&&(a[i[0]]=parseInt(a[i[0]],10));break}}}function Ws(e,t){for(var r=0;r!=t.length;++r){var a=t[r];if(e[a[0]]==null)e[a[0]]=a[1];else switch(a[2]){case"bool":typeof e[a[0]]=="string"&&(e[a[0]]=Xe(e[a[0]]));break;case"int":typeof e[a[0]]=="string"&&(e[a[0]]=parseInt(e[a[0]],10));break}}}function ro(e){Ws(e.WBProps,Ti),Ws(e.CalcPr,ng),Us(e.WBView,tg),Us(e.Sheets,ag),Fa.date1904=Xe(e.WBProps.date1904)}function ig(e){return!e.Workbook||!e.Workbook.WBProps?"false":Xe(e.Workbook.WBProps.date1904)?"true":"false"}var sg="][*?/\\".split("");function to(e,t){if(e.length>31){if(t)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var r=!0;return sg.forEach(function(a){if(e.indexOf(a)!=-1){if(!t)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");r=!1}}),r}function fg(e,t,r){e.forEach(function(a,n){to(a);for(var i=0;i22)throw new Error("Bad Code Name: Worksheet"+s)}})}function cg(e){if(!e||!e.SheetNames||!e.Sheets)throw new Error("Invalid Workbook");if(!e.SheetNames.length)throw new Error("Workbook is empty");var t=e.Workbook&&e.Workbook.Sheets||[];fg(e.SheetNames,t,!!e.vbaraw);for(var r=0;r":break;case"":case"":break;case"":break;case"":Ti.forEach(function(u){if(l[u[0]]!=null)switch(u[2]){case"bool":r.WBProps[u[0]]=Xe(l[u[0]]);break;case"int":r.WBProps[u[0]]=parseInt(l[u[0]],10);break;default:r.WBProps[u[0]]=l[u[0]]}}),l.codeName&&(r.WBProps.CodeName=Ue(l.codeName));break;case"":break;case"":break;case"":case"":break;case"":delete l[0],r.WBView.push(l);break;case"":break;case"":case"":break;case"":break;case"":break;case"":case"":break;case"":break;case"":case"":a=!1;break;case"":i.Ref=Ie(Ue(e.slice(s,o))),r.Names.push(i);break;case"":break;case"":delete l[0],r.CalcPr=l;break;case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":break;case"":break;case"":break;case"":case"":break;case"":case"":case"":break;case"":a=!1;break;case"":a=!0;break;case"":a=!1;break;case"0,a={codeName:"ThisWorkbook"};e.Workbook&&e.Workbook.WBProps&&(Ti.forEach(function(f){e.Workbook.WBProps[f[0]]!=null&&e.Workbook.WBProps[f[0]]!=f[1]&&(a[f[0]]=e.Workbook.WBProps[f[0]])}),e.Workbook.WBProps.CodeName&&(a.codeName=e.Workbook.WBProps.CodeName,delete a.CodeName)),t[t.length]=ie("workbookPr",null,a);var n=e.Workbook&&e.Workbook.Sheets||[],i=0;if(n&&n[0]&&n[0].Hidden){for(t[t.length]="",i=0;i!=e.SheetNames.length&&!(!n[i]||!n[i].Hidden);++i);i==e.SheetNames.length&&(i=0),t[t.length]='',t[t.length]=""}for(t[t.length]="",i=0;i!=e.SheetNames.length;++i){var s={name:Be(e.SheetNames[i].slice(0,31))};if(s.sheetId=""+(i+1),s["r:id"]="rId"+(i+1),n[i])switch(n[i].Hidden){case 1:s.state="hidden";break;case 2:s.state="veryHidden";break}t[t.length]=ie("sheet",null,s)}return t[t.length]="",r&&(t[t.length]="",e.Workbook&&e.Workbook.Names&&e.Workbook.Names.forEach(function(f){var c={name:f.Name};f.Comment&&(c.comment=f.Comment),f.Sheet!=null&&(c.localSheetId=""+f.Sheet),f.Hidden&&(c.hidden="1"),f.Ref&&(t[t.length]=ie("definedName",Be(f.Ref),c))}),t[t.length]=""),t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}function ug(e,t){var r={};return r.Hidden=e.read_shift(4),r.iTabID=e.read_shift(4),r.strRelID=O0(e),r.name=yr(e),r}function hg(e,t){return t||(t=z(127)),t.write_shift(4,e.Hidden),t.write_shift(4,e.iTabID),ci(e.strRelID,t),pr(e.name.slice(0,31),t),t.length>t.l?t.slice(0,t.l):t}function xg(e,t){var r={},a=e.read_shift(4);r.defaultThemeVersion=e.read_shift(4);var n=t>8?yr(e):"";return n.length>0&&(r.CodeName=n),r.autoCompressPictures=!!(a&65536),r.backupFile=!!(a&64),r.checkCompatibility=!!(a&4096),r.date1904=!!(a&1),r.filterPrivacy=!!(a&8),r.hidePivotFieldList=!!(a&1024),r.promptedSolutions=!!(a&16),r.publishItems=!!(a&2048),r.refreshAllConnections=!!(a&262144),r.saveExternalLinkValues=!!(a&128),r.showBorderUnselectedTables=!!(a&4),r.showInkAnnotation=!!(a&32),r.showObjects=["all","placeholders","none"][a>>13&3],r.showPivotChartFilter=!!(a&32768),r.updateLinks=["userSet","never","always"][a>>8&3],r}function dg(e,t){t||(t=z(72));var r=0;return e&&e.filterPrivacy&&(r|=8),t.write_shift(4,r),t.write_shift(4,0),jf(e&&e.CodeName||"ThisWorkbook",t),t.slice(0,t.l)}function pg(e,t){var r={};return e.read_shift(4),r.ArchID=e.read_shift(4),e.l+=t-8,r}function vg(e,t,r){var a=e.l+t;e.l+=4,e.l+=1;var n=e.read_shift(4),i=$u(e),s=Qv(e,0,r),f=fi(e);e.l=a;var c={Name:i,Ptg:s};return n<268435455&&(c.Sheet=n),f&&(c.Comment=f),c}function mg(e,t){var r={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""},a=[],n=!1;t||(t={}),t.biff=12;var i=[],s=[[]];return s.SheetNames=[],s.XTI=[],un[16]={n:"BrtFRTArchID$",f:pg},yt(e,function(c,o,l){switch(l){case 156:s.SheetNames.push(c.name),r.Sheets.push(c);break;case 153:r.WBProps=c;break;case 39:c.Sheet!=null&&(t.SID=c.Sheet),c.Ref=Tr(c.Ptg,null,null,s,t),delete t.SID,delete c.Ptg,i.push(c);break;case 1036:break;case 357:case 358:case 355:case 667:s[0].length?s.push([l,c]):s[0]=[l,c],s[s.length-1].XTI=[];break;case 362:s.length===0&&(s[0]=[],s[0].XTI=[]),s[s.length-1].XTI=s[s.length-1].XTI.concat(c),s.XTI=s.XTI.concat(c);break;case 361:break;case 2071:case 158:case 143:case 664:case 353:break;case 3072:case 3073:case 534:case 677:case 157:case 610:case 2050:case 155:case 548:case 676:case 128:case 665:case 2128:case 2125:case 549:case 2053:case 596:case 2076:case 2075:case 2082:case 397:case 154:case 1117:case 553:case 2091:break;case 35:a.push(l),n=!0;break;case 36:a.pop(),n=!1;break;case 37:a.push(l),n=!0;break;case 38:a.pop(),n=!1;break;case 16:break;default:if(!o.T){if(!n||t.WTF&&a[a.length-1]!=37&&a[a.length-1]!=35)throw new Error("Unexpected record 0x"+l.toString(16))}}},t),ro(r),r.Names=i,r.supbooks=s,r}function gg(e,t){Y(e,143);for(var r=0;r!=t.SheetNames.length;++r){var a=t.Workbook&&t.Workbook.Sheets&&t.Workbook.Sheets[r]&&t.Workbook.Sheets[r].Hidden||0,n={Hidden:a,iTabID:r+1,strRelID:"rId"+(r+1),name:t.SheetNames[r]};Y(e,156,hg(n))}Y(e,144)}function _g(e,t){t||(t=z(127));for(var r=0;r!=4;++r)t.write_shift(4,0);return pr("SheetJS",t),pr(Wn.version,t),pr(Wn.version,t),pr("7262",t),t.length>t.l?t.slice(0,t.l):t}function wg(e,t){t||(t=z(29)),t.write_shift(-4,0),t.write_shift(-4,460),t.write_shift(4,28800),t.write_shift(4,17600),t.write_shift(4,500),t.write_shift(4,e),t.write_shift(4,e);var r=120;return t.write_shift(1,r),t.length>t.l?t.slice(0,t.l):t}function kg(e,t){if(!(!t.Workbook||!t.Workbook.Sheets)){for(var r=t.Workbook.Sheets,a=0,n=-1,i=-1;an||(Y(e,135),Y(e,158,wg(n)),Y(e,136))}}function Eg(e,t){var r=Nr();return Y(r,131),Y(r,128,_g()),Y(r,153,dg(e.Workbook&&e.Workbook.WBProps||null)),kg(r,e),gg(r,e),Y(r,132),r.end()}function Tg(e,t,r){return t.slice(-4)===".bin"?mg(e,r):lg(e,r)}function Sg(e,t,r,a,n,i,s,f){return t.slice(-4)===".bin"?U2(e,a,r,n,i,s,f):vm(e,a,r,n,i,s,f)}function Fg(e,t,r,a,n,i,s,f){return t.slice(-4)===".bin"?rg(e,a,r,n,i):Q2(e,a,r,n,i)}function yg(e,t,r,a,n,i,s,f){return t.slice(-4)===".bin"?Cp():bp()}function Ag(e,t,r,a,n,i,s,f){return t.slice(-4)===".bin"?yp():Ap()}function Cg(e,t,r,a){return t.slice(-4)===".bin"?Td(e,r,a):ud(e,r,a)}function bg(e,t,r){return Bc(e,r)}function Dg(e,t,r){return t.slice(-4)===".bin"?Dx(e,r):Ax(e,r)}function Og(e,t,r){return t.slice(-4)===".bin"?kp(e,r):hp(e,r)}function Ig(e,t,r){return t.slice(-4)===".bin"?op(e):fp(e)}function Rg(e,t,r,a){return r.slice(-4)===".bin"?lp(e,t,r,a):void 0}function Ng(e,t,r){return t.slice(-4)===".bin"?np(e,t,r):sp(e,t,r)}function Pg(e,t,r){return(t.slice(-4)===".bin"?Eg:ao)(e)}function Lg(e,t,r,a,n){return(t.slice(-4)===".bin"?J2:Zc)(e,r,a,n)}function Bg(e,t,r){return(t.slice(-4)===".bin"?Rd:Pc)(e,r)}function Mg(e,t,r){return(t.slice(-4)===".bin"?Rx:Ac)(e,r)}function Ug(e,t,r){return(t.slice(-4)===".bin"?Ep:Wc)(e)}function Wg(e){return(e.slice(-4)===".bin"?ip:Mc)()}var no=/([\w:]+)=((?:")([^"]*)(?:")|(?:')([^']*)(?:'))/g,io=/([\w:]+)=((?:")(?:[^"]*)(?:")|(?:')(?:[^']*)(?:'))/;function et(e,t){var r=e.split(/\s+/),a=[];if(t||(a[0]=r[0]),r.length===1)return a;var n=e.match(no),i,s,f,c;if(n)for(c=0;c!=n.length;++c)i=n[c].match(io),(s=i[1].indexOf(":"))===-1?a[i[1]]=i[2].slice(1,i[2].length-1):(i[1].slice(0,6)==="xmlns:"?f="xmlns"+i[1].slice(6):f=i[1].slice(s+1),a[f]=i[2].slice(1,i[2].length-1));return a}function Hg(e){var t=e.split(/\s+/),r={};if(t.length===1)return r;var a=e.match(no),n,i,s,f;if(a)for(f=0;f!=a.length;++f)n=a[f].match(io),(i=n[1].indexOf(":"))===-1?r[n[1]]=n[2].slice(1,n[2].length-1):(n[1].slice(0,6)==="xmlns:"?s="xmlns"+n[1].slice(6):s=n[1].slice(i+1),r[s]=n[2].slice(1,n[2].length-1));return r}var ja;function Vg(e,t){var r=ja[e]||Ie(e);return r==="General"?ea(t):Vr(r,t)}function Xg(e,t,r,a){var n=a;switch((r[0].match(/dt:dt="([\w.]+)"/)||["",""])[1]){case"boolean":n=Xe(a);break;case"i2":case"int":n=parseInt(a,10);break;case"r4":case"float":n=parseFloat(a);break;case"date":case"dateTime.tz":n=Ge(a);break;case"i8":case"string":case"fixed":case"uuid":case"bin.base64":break;default:throw new Error("bad custprop:"+r[0])}e[Ie(t)]=n}function Gg(e,t,r){if(e.t!=="z"){if(!r||r.cellText!==!1)try{e.t==="e"?e.w=e.w||At[e.v]:t==="General"?e.t==="n"?(e.v|0)===e.v?e.w=e.v.toString(10):e.w=rn(e.v):e.w=ea(e.v):e.w=Vg(t||"General",e.v)}catch(i){if(r.WTF)throw i}try{var a=ja[t]||t||"General";if(r.cellNF&&(e.z=a),r.cellDates&&e.t=="n"&&fa(a)){var n=Rt(e.v);n&&(e.t="d",e.v=new Date(n.y,n.m-1,n.d,n.H,n.M,n.S,n.u))}}catch(i){if(r.WTF)throw i}}}function zg(e,t,r){if(r.cellStyles&&t.Interior){var a=t.Interior;a.Pattern&&(a.patternType=ad[a.Pattern]||a.Pattern)}e[t.ID]=t}function $g(e,t,r,a,n,i,s,f,c,o){var l="General",u=a.StyleID,h={};o=o||{};var x=[],p=0;for(u===void 0&&f&&(u=f.StyleID),u===void 0&&s&&(u=s.StyleID);i[u]!==void 0&&(i[u].nf&&(l=i[u].nf),i[u].Interior&&x.push(i[u].Interior),!!i[u].Parent);)u=i[u].Parent;switch(r.Type){case"Boolean":a.t="b",a.v=Xe(e);break;case"String":a.t="s",a.r=as(Ie(e)),a.v=e.indexOf("<")>-1?Ie(t||e).replace(/<.*?>/g,""):a.r;break;case"DateTime":e.slice(-1)!="Z"&&(e+="Z"),a.v=(Ge(e)-new Date(Date.UTC(1899,11,30)))/(24*60*60*1e3),a.v!==a.v?a.v=Ie(e):a.v<60&&(a.v=a.v-1),(!l||l=="General")&&(l="yyyy-mm-dd");case"Number":a.v===void 0&&(a.v=+e),a.t||(a.t="n");break;case"Error":a.t="e",a.v=Qf[e],o.cellText!==!1&&(a.w=e);break;default:e==""&&t==""?a.t="z":(a.t="s",a.v=as(t||e));break}if(Gg(a,l,o),o.cellFormula!==!1)if(a.Formula){var d=Ie(a.Formula);d.charCodeAt(0)==61&&(d=d.slice(1)),a.f=Sa(d,n),delete a.Formula,a.ArrayRange=="RC"?a.F=Sa("RC:RC",n):a.ArrayRange&&(a.F=Sa(a.ArrayRange,n),c.push([Re(a.F),a.F]))}else for(p=0;p=c[p][0].s.r&&n.r<=c[p][0].e.r&&n.c>=c[p][0].s.c&&n.c<=c[p][0].e.c&&(a.F=c[p][1]);o.cellStyles&&(x.forEach(function(v){!h.patternType&&v.patternType&&(h.patternType=v.patternType)}),a.s=h),a.StyleID!==void 0&&(a.ixfe=a.StyleID)}function Kg(e){e.t=e.v||"",e.t=e.t.replace(/\r\n/g,` +`).replace(/\r/g,` +`),e.v=e.w=e.ixfe=void 0}function E0(e,t){var r=t||{};ba();var a=Ua(ri(e));(r.type=="binary"||r.type=="array"||r.type=="base64")&&(a=Ue(a));var n=a.slice(0,1024).toLowerCase(),i=!1;if(n=n.replace(/".*?"/g,""),(n.indexOf(">")&1023)>Math.min(n.indexOf(",")&1023,n.indexOf(";")&1023)){var s=ze(r);return s.type="string",Aa.to_workbook(a,s)}if(n.indexOf("=0&&(i=!0)}),i)return I_(a,r);ja={"General Number":"General","General Date":me[22],"Long Date":"dddd, mmmm dd, yyyy","Medium Date":me[15],"Short Date":me[14],"Long Time":me[19],"Medium Time":me[18],"Short Time":me[20],Currency:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',Fixed:me[2],Standard:me[4],Percent:me[10],Scientific:me[11],"Yes/No":'"Yes";"Yes";"No";@',"True/False":'"True";"True";"False";@',"On/Off":'"Yes";"Yes";"No";@'};var f,c=[],o,l={},u=[],h=r.dense?[]:{},x="",p={},d={},v=et(''),w=0,k=0,m=0,y={s:{r:2e6,c:2e6},e:{r:0,c:0}},I={},S={},_="",N=0,O=[],G={},M={},L=0,J=[],oe=[],ee={},ue=[],ce,ke=!1,V=[],xe=[],pe={},b=0,B=0,R={Sheets:[],WBProps:{date1904:!1}},P={};nn.lastIndex=0,a=a.replace(//mg,"");for(var K="";f=nn.exec(a);)switch(f[3]=(K=f[3]).toLowerCase()){case"data":if(K=="data"){if(f[1]==="/"){if((o=c.pop())[0]!==f[3])throw new Error("Bad state: "+o.join("|"))}else f[0].charAt(f[0].length-2)!=="/"&&c.push([f[3],!0]);break}if(c[c.length-1][1])break;f[1]==="/"?$g(a.slice(w,f.index),_,v,c[c.length-1][0]=="comment"?ee:p,{c:k,r:m},I,ue[k],d,V,r):(_="",v=et(f[0]),w=f.index+f[0].length);break;case"cell":if(f[1]==="/")if(oe.length>0&&(p.c=oe),(!r.sheetRows||r.sheetRows>m)&&p.v!==void 0&&(r.dense?(h[m]||(h[m]=[]),h[m][k]=p):h[je(k)+tr(m)]=p),p.HRef&&(p.l={Target:Ie(p.HRef)},p.HRefScreenTip&&(p.l.Tooltip=p.HRefScreenTip),delete p.HRef,delete p.HRefScreenTip),(p.MergeAcross||p.MergeDown)&&(b=k+(parseInt(p.MergeAcross,10)|0),B=m+(parseInt(p.MergeDown,10)|0),O.push({s:{c:k,r:m},e:{c:b,r:B}})),!r.sheetStubs)p.MergeAcross?k=b+1:++k;else if(p.MergeAcross||p.MergeDown){for(var te=k;te<=b;++te)for(var ne=m;ne<=B;++ne)(te>k||ne>m)&&(r.dense?(h[ne]||(h[ne]=[]),h[ne][te]={t:"z"}):h[je(te)+tr(ne)]={t:"z"});k=b+1}else++k;else p=Hg(f[0]),p.Index&&(k=+p.Index-1),ky.e.c&&(y.e.c=k),f[0].slice(-2)==="/>"&&++k,oe=[];break;case"row":f[1]==="/"||f[0].slice(-2)==="/>"?(my.e.r&&(y.e.r=m),f[0].slice(-2)==="/>"&&(d=et(f[0]),d.Index&&(m=+d.Index-1)),k=0,++m):(d=et(f[0]),d.Index&&(m=+d.Index-1),pe={},(d.AutoFitHeight=="0"||d.Height)&&(pe.hpx=parseInt(d.Height,10),pe.hpt=ln(pe.hpx),xe[m]=pe),d.Hidden=="1"&&(pe.hidden=!0,xe[m]=pe));break;case"worksheet":if(f[1]==="/"){if((o=c.pop())[0]!==f[3])throw new Error("Bad state: "+o.join("|"));u.push(x),y.s.r<=y.e.r&&y.s.c<=y.e.c&&(h["!ref"]=Te(y),r.sheetRows&&r.sheetRows<=y.e.r&&(h["!fullref"]=h["!ref"],y.e.r=r.sheetRows-1,h["!ref"]=Te(y))),O.length&&(h["!merges"]=O),ue.length>0&&(h["!cols"]=ue),xe.length>0&&(h["!rows"]=xe),l[x]=h}else y={s:{r:2e6,c:2e6},e:{r:0,c:0}},m=k=0,c.push([f[3],!1]),o=et(f[0]),x=Ie(o.Name),h=r.dense?[]:{},O=[],V=[],xe=[],P={name:x,Hidden:0},R.Sheets.push(P);break;case"table":if(f[1]==="/"){if((o=c.pop())[0]!==f[3])throw new Error("Bad state: "+o.join("|"))}else{if(f[0].slice(-2)=="/>")break;c.push([f[3],!1]),ue=[],ke=!1}break;case"style":f[1]==="/"?zg(I,S,r):S=et(f[0]);break;case"numberformat":S.nf=Ie(et(f[0]).Format||"General"),ja[S.nf]&&(S.nf=ja[S.nf]);for(var Q=0;Q!=392&&me[Q]!=S.nf;++Q);if(Q==392){for(Q=57;Q!=392;++Q)if(me[Q]==null){dt(S.nf,Q);break}}break;case"column":if(c[c.length-1][0]!=="table")break;if(ce=et(f[0]),ce.Hidden&&(ce.hidden=!0,delete ce.Hidden),ce.Width&&(ce.wpx=parseInt(ce.Width,10)),!ke&&ce.wpx>10){ke=!0,Sr=Rc;for(var q=0;q0&&(Ve.Sheet=R.Sheets.length-1),R.Names.push(Ve);break;case"namedcell":break;case"b":break;case"i":break;case"u":break;case"s":break;case"em":break;case"h2":break;case"h3":break;case"sub":break;case"sup":break;case"span":break;case"alignment":break;case"borders":break;case"border":break;case"font":if(f[0].slice(-2)==="/>")break;f[1]==="/"?_+=a.slice(N,f.index):N=f.index+f[0].length;break;case"interior":if(!r.cellStyles)break;S.Interior=et(f[0]);break;case"protection":break;case"author":case"title":case"description":case"created":case"keywords":case"subject":case"category":case"company":case"lastauthor":case"lastsaved":case"lastprinted":case"version":case"revision":case"totaltime":case"hyperlinkbase":case"manager":case"contentstatus":case"identifier":case"language":case"appname":if(f[0].slice(-2)==="/>")break;f[1]==="/"?mh(G,K,a.slice(L,f.index)):L=f.index+f[0].length;break;case"paragraphs":break;case"styles":case"workbook":if(f[1]==="/"){if((o=c.pop())[0]!==f[3])throw new Error("Bad state: "+o.join("|"))}else c.push([f[3],!1]);break;case"comment":if(f[1]==="/"){if((o=c.pop())[0]!==f[3])throw new Error("Bad state: "+o.join("|"));Kg(ee),oe.push(ee)}else c.push([f[3],!1]),o=et(f[0]),ee={a:o.Author};break;case"autofilter":if(f[1]==="/"){if((o=c.pop())[0]!==f[3])throw new Error("Bad state: "+o.join("|"))}else if(f[0].charAt(f[0].length-2)!=="/"){var Oe=et(f[0]);h["!autofilter"]={ref:Sa(Oe.Range).replace(/\$/g,"")},c.push([f[3],!0])}break;case"name":break;case"datavalidation":if(f[1]==="/"){if((o=c.pop())[0]!==f[3])throw new Error("Bad state: "+o.join("|"))}else f[0].charAt(f[0].length-2)!=="/"&&c.push([f[3],!0]);break;case"pixelsperinch":break;case"componentoptions":case"documentproperties":case"customdocumentproperties":case"officedocumentsettings":case"pivottable":case"pivotcache":case"names":case"mapinfo":case"pagebreaks":case"querytable":case"sorting":case"schema":case"conditionalformatting":case"smarttagtype":case"smarttags":case"excelworkbook":case"workbookoptions":case"worksheetoptions":if(f[1]==="/"){if((o=c.pop())[0]!==f[3])throw new Error("Bad state: "+o.join("|"))}else f[0].charAt(f[0].length-2)!=="/"&&c.push([f[3],!0]);break;case"null":break;default:if(c.length==0&&f[3]=="document"||c.length==0&&f[3]=="uof")return zs(a,r);var We=!0;switch(c[c.length-1][0]){case"officedocumentsettings":switch(f[3]){case"allowpng":break;case"removepersonalinformation":break;case"downloadcomponents":break;case"locationofcomponents":break;case"colors":break;case"color":break;case"index":break;case"rgb":break;case"targetscreensize":break;case"readonlyrecommended":break;default:We=!1}break;case"componentoptions":switch(f[3]){case"toolbar":break;case"hideofficelogo":break;case"spreadsheetautofit":break;case"label":break;case"caption":break;case"maxheight":break;case"maxwidth":break;case"nextsheetnumber":break;default:We=!1}break;case"excelworkbook":switch(f[3]){case"date1904":R.WBProps.date1904=!0;break;case"windowheight":break;case"windowwidth":break;case"windowtopx":break;case"windowtopy":break;case"tabratio":break;case"protectstructure":break;case"protectwindow":break;case"protectwindows":break;case"activesheet":break;case"displayinknotes":break;case"firstvisiblesheet":break;case"supbook":break;case"sheetname":break;case"sheetindex":break;case"sheetindexfirst":break;case"sheetindexlast":break;case"dll":break;case"acceptlabelsinformulas":break;case"donotsavelinkvalues":break;case"iteration":break;case"maxiterations":break;case"maxchange":break;case"path":break;case"xct":break;case"count":break;case"selectedsheets":break;case"calculation":break;case"uncalced":break;case"startupprompt":break;case"crn":break;case"externname":break;case"formula":break;case"colfirst":break;case"collast":break;case"wantadvise":break;case"boolean":break;case"error":break;case"text":break;case"ole":break;case"noautorecover":break;case"publishobjects":break;case"donotcalculatebeforesave":break;case"number":break;case"refmoder1c1":break;case"embedsavesmarttags":break;default:We=!1}break;case"workbookoptions":switch(f[3]){case"owcversion":break;case"height":break;case"width":break;default:We=!1}break;case"worksheetoptions":switch(f[3]){case"visible":if(f[0].slice(-2)!=="/>")if(f[1]==="/")switch(a.slice(L,f.index)){case"SheetHidden":P.Hidden=1;break;case"SheetVeryHidden":P.Hidden=2;break}else L=f.index+f[0].length;break;case"header":h["!margins"]||qt(h["!margins"]={},"xlml"),isNaN(+_e(f[0]).Margin)||(h["!margins"].header=+_e(f[0]).Margin);break;case"footer":h["!margins"]||qt(h["!margins"]={},"xlml"),isNaN(+_e(f[0]).Margin)||(h["!margins"].footer=+_e(f[0]).Margin);break;case"pagemargins":var De=_e(f[0]);h["!margins"]||qt(h["!margins"]={},"xlml"),isNaN(+De.Top)||(h["!margins"].top=+De.Top),isNaN(+De.Left)||(h["!margins"].left=+De.Left),isNaN(+De.Right)||(h["!margins"].right=+De.Right),isNaN(+De.Bottom)||(h["!margins"].bottom=+De.Bottom);break;case"displayrighttoleft":R.Views||(R.Views=[]),R.Views[0]||(R.Views[0]={}),R.Views[0].RTL=!0;break;case"freezepanes":break;case"frozennosplit":break;case"splithorizontal":case"splitvertical":break;case"donotdisplaygridlines":break;case"activerow":break;case"activecol":break;case"toprowbottompane":break;case"leftcolumnrightpane":break;case"unsynced":break;case"print":break;case"printerrors":break;case"panes":break;case"scale":break;case"pane":break;case"number":break;case"layout":break;case"pagesetup":break;case"selected":break;case"protectobjects":break;case"enableselection":break;case"protectscenarios":break;case"validprinterinfo":break;case"horizontalresolution":break;case"verticalresolution":break;case"numberofcopies":break;case"activepane":break;case"toprowvisible":break;case"leftcolumnvisible":break;case"fittopage":break;case"rangeselection":break;case"papersizeindex":break;case"pagelayoutzoom":break;case"pagebreakzoom":break;case"filteron":break;case"fitwidth":break;case"fitheight":break;case"commentslayout":break;case"zoom":break;case"lefttoright":break;case"gridlines":break;case"allowsort":break;case"allowfilter":break;case"allowinsertrows":break;case"allowdeleterows":break;case"allowinsertcols":break;case"allowdeletecols":break;case"allowinserthyperlinks":break;case"allowformatcells":break;case"allowsizecols":break;case"allowsizerows":break;case"nosummaryrowsbelowdetail":h["!outline"]||(h["!outline"]={}),h["!outline"].above=!0;break;case"tabcolorindex":break;case"donotdisplayheadings":break;case"showpagelayoutzoom":break;case"nosummarycolumnsrightdetail":h["!outline"]||(h["!outline"]={}),h["!outline"].left=!0;break;case"blackandwhite":break;case"donotdisplayzeros":break;case"displaypagebreak":break;case"rowcolheadings":break;case"donotdisplayoutline":break;case"noorientation":break;case"allowusepivottables":break;case"zeroheight":break;case"viewablerange":break;case"selection":break;case"protectcontents":break;default:We=!1}break;case"pivottable":case"pivotcache":switch(f[3]){case"immediateitemsondrop":break;case"showpagemultipleitemlabel":break;case"compactrowindent":break;case"location":break;case"pivotfield":break;case"orientation":break;case"layoutform":break;case"layoutsubtotallocation":break;case"layoutcompactrow":break;case"position":break;case"pivotitem":break;case"datatype":break;case"datafield":break;case"sourcename":break;case"parentfield":break;case"ptlineitems":break;case"ptlineitem":break;case"countofsameitems":break;case"item":break;case"itemtype":break;case"ptsource":break;case"cacheindex":break;case"consolidationreference":break;case"filename":break;case"reference":break;case"nocolumngrand":break;case"norowgrand":break;case"blanklineafteritems":break;case"hidden":break;case"subtotal":break;case"basefield":break;case"mapchilditems":break;case"function":break;case"refreshonfileopen":break;case"printsettitles":break;case"mergelabels":break;case"defaultversion":break;case"refreshname":break;case"refreshdate":break;case"refreshdatecopy":break;case"versionlastrefresh":break;case"versionlastupdate":break;case"versionupdateablemin":break;case"versionrefreshablemin":break;case"calculation":break;default:We=!1}break;case"pagebreaks":switch(f[3]){case"colbreaks":break;case"colbreak":break;case"rowbreaks":break;case"rowbreak":break;case"colstart":break;case"colend":break;case"rowend":break;default:We=!1}break;case"autofilter":switch(f[3]){case"autofiltercolumn":break;case"autofiltercondition":break;case"autofilterand":break;case"autofilteror":break;default:We=!1}break;case"querytable":switch(f[3]){case"id":break;case"autoformatfont":break;case"autoformatpattern":break;case"querysource":break;case"querytype":break;case"enableredirections":break;case"refreshedinxl9":break;case"urlstring":break;case"htmltables":break;case"connection":break;case"commandtext":break;case"refreshinfo":break;case"notitles":break;case"nextid":break;case"columninfo":break;case"overwritecells":break;case"donotpromptforfile":break;case"textwizardsettings":break;case"source":break;case"number":break;case"decimal":break;case"thousandseparator":break;case"trailingminusnumbers":break;case"formatsettings":break;case"fieldtype":break;case"delimiters":break;case"tab":break;case"comma":break;case"autoformatname":break;case"versionlastedit":break;case"versionlastrefresh":break;default:We=!1}break;case"datavalidation":switch(f[3]){case"range":break;case"type":break;case"min":break;case"max":break;case"sort":break;case"descending":break;case"order":break;case"casesensitive":break;case"value":break;case"errorstyle":break;case"errormessage":break;case"errortitle":break;case"inputmessage":break;case"inputtitle":break;case"combohide":break;case"inputhide":break;case"condition":break;case"qualifier":break;case"useblank":break;case"value1":break;case"value2":break;case"format":break;case"cellrangelist":break;default:We=!1}break;case"sorting":case"conditionalformatting":switch(f[3]){case"range":break;case"type":break;case"min":break;case"max":break;case"sort":break;case"descending":break;case"order":break;case"casesensitive":break;case"value":break;case"errorstyle":break;case"errormessage":break;case"errortitle":break;case"cellrangelist":break;case"inputmessage":break;case"inputtitle":break;case"combohide":break;case"inputhide":break;case"condition":break;case"qualifier":break;case"useblank":break;case"value1":break;case"value2":break;case"format":break;default:We=!1}break;case"mapinfo":case"schema":case"data":switch(f[3]){case"map":break;case"entry":break;case"range":break;case"xpath":break;case"field":break;case"xsdtype":break;case"filteron":break;case"aggregate":break;case"elementtype":break;case"attributetype":break;case"schema":case"element":case"complextype":case"datatype":case"all":case"attribute":case"extends":break;case"row":break;default:We=!1}break;case"smarttags":break;default:We=!1;break}if(We||f[3].match(/!\[CDATA/))break;if(!c[c.length-1][1])throw"Unrecognized tag: "+f[3]+"|"+c.join("|");if(c[c.length-1][0]==="customdocumentproperties"){if(f[0].slice(-2)==="/>")break;f[1]==="/"?Xg(M,K,J,a.slice(L,f.index)):(J=f,L=f.index+f[0].length);break}if(r.WTF)throw"Unrecognized tag: "+f[3]+"|"+c.join("|")}var le={};return!r.bookSheets&&!r.bookProps&&(le.Sheets=l),le.SheetNames=u,le.Workbook=R,le.SSF=ze(me),le.Props=G,le.Custprops=M,le}function M0(e,t){switch(Fi(t=t||{}),t.type||"base64"){case"base64":return E0(Hr(e),t);case"binary":case"buffer":case"file":return E0(e,t);case"array":return E0(Ht(e),t)}}function jg(e,t){var r=[];return e.Props&&r.push(gh(e.Props,t)),e.Custprops&&r.push(_h(e.Props,e.Custprops)),r.join("")}function Yg(){return""}function Jg(e,t){var r=[''];return t.cellXfs.forEach(function(a,n){var i=[];i.push(ie("NumberFormat",null,{"ss:Format":Be(me[a.numFmtId])}));var s={"ss:ID":"s"+(21+n)};r.push(ie("Style",i.join(""),s))}),ie("Styles",r.join(""))}function so(e){return ie("NamedRange",null,{"ss:Name":e.Name,"ss:RefersTo":"="+_i(e.Ref,{r:0,c:0})})}function qg(e){if(!((e||{}).Workbook||{}).Names)return"";for(var t=e.Workbook.Names,r=[],a=0;a"),e["!margins"].header&&n.push(ie("Header",null,{"x:Margin":e["!margins"].header})),e["!margins"].footer&&n.push(ie("Footer",null,{"x:Margin":e["!margins"].footer})),n.push(ie("PageMargins",null,{"x:Bottom":e["!margins"].bottom||"0.75","x:Left":e["!margins"].left||"0.7","x:Right":e["!margins"].right||"0.7","x:Top":e["!margins"].top||"0.75"})),n.push("")),a&&a.Workbook&&a.Workbook.Sheets&&a.Workbook.Sheets[r])if(a.Workbook.Sheets[r].Hidden)n.push(ie("Visible",a.Workbook.Sheets[r].Hidden==1?"SheetHidden":"SheetVeryHidden",{}));else{for(var i=0;i")}return((((a||{}).Workbook||{}).Views||[])[0]||{}).RTL&&n.push(""),e["!protect"]&&(n.push(_r("ProtectContents","True")),e["!protect"].objects&&n.push(_r("ProtectObjects","True")),e["!protect"].scenarios&&n.push(_r("ProtectScenarios","True")),e["!protect"].selectLockedCells!=null&&!e["!protect"].selectLockedCells?n.push(_r("EnableSelection","NoSelection")):e["!protect"].selectUnlockedCells!=null&&!e["!protect"].selectUnlockedCells&&n.push(_r("EnableSelection","UnlockedCells")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach(function(s){e["!protect"][s[0]]&&n.push("<"+s[1]+"/>")})),n.length==0?"":ie("WorksheetOptions",n.join(""),{xmlns:Br.x})}function e_(e){return e.map(function(t){var r=ku(t.t||""),a=ie("ss:Data",r,{xmlns:"http://www.w3.org/TR/REC-html40"});return ie("Comment",a,{"ss:Author":t.a})}).join("")}function r_(e,t,r,a,n,i,s){if(!e||e.v==null&&e.f==null)return"";var f={};if(e.f&&(f["ss:Formula"]="="+Be(_i(e.f,s))),e.F&&e.F.slice(0,t.length)==t){var c=Ye(e.F.slice(t.length+1));f["ss:ArrayRange"]="RC:R"+(c.r==s.r?"":"["+(c.r-s.r)+"]")+"C"+(c.c==s.c?"":"["+(c.c-s.c)+"]")}if(e.l&&e.l.Target&&(f["ss:HRef"]=Be(e.l.Target),e.l.Tooltip&&(f["x:HRefScreenTip"]=Be(e.l.Tooltip))),r["!merges"])for(var o=r["!merges"],l=0;l!=o.length;++l)o[l].s.c!=s.c||o[l].s.r!=s.r||(o[l].e.c>o[l].s.c&&(f["ss:MergeAcross"]=o[l].e.c-o[l].s.c),o[l].e.r>o[l].s.r&&(f["ss:MergeDown"]=o[l].e.r-o[l].s.r));var u="",h="";switch(e.t){case"z":if(!a.sheetStubs)return"";break;case"n":u="Number",h=String(e.v);break;case"b":u="Boolean",h=e.v?"1":"0";break;case"e":u="Error",h=At[e.v];break;case"d":u="DateTime",h=new Date(e.v).toISOString(),e.z==null&&(e.z=e.z||me[14]);break;case"s":u="String",h=wu(e.v||"");break}var x=Xt(a.cellXfs,e,a);f["ss:StyleID"]="s"+(21+x),f["ss:Index"]=s.c+1;var p=e.v!=null?h:"",d=e.t=="z"?"":''+p+"";return(e.c||[]).length>0&&(d+=e_(e.c)),ie("Cell",d,f)}function t_(e,t){var r='"}function a_(e,t,r,a){if(!e["!ref"])return"";var n=Re(e["!ref"]),i=e["!merges"]||[],s=0,f=[];e["!cols"]&&e["!cols"].forEach(function(v,w){Mt(v);var k=!!v.width,m=c0(w,v),y={"ss:Index":w+1};k&&(y["ss:Width"]=cn(m.width)),v.hidden&&(y["ss:Hidden"]="1"),f.push(ie("Column",null,y))});for(var c=Array.isArray(e),o=n.s.r;o<=n.e.r;++o){for(var l=[t_(o,(e["!rows"]||[])[o])],u=n.s.c;u<=n.e.c;++u){var h=!1;for(s=0;s!=i.length;++s)if(!(i[s].s.c>u)&&!(i[s].s.r>o)&&!(i[s].e.c"),l.length>2&&f.push(l.join(""))}return f.join("")}function n_(e,t,r){var a=[],n=r.SheetNames[e],i=r.Sheets[n],s=i?Zg(i,t,e,r):"";return s.length>0&&a.push(""+s+""),s=i?a_(i,t,e,r):"",s.length>0&&a.push(""+s+"
"),a.push(Qg(i,t,e,r)),a.join("")}function i_(e,t){t||(t={}),e.SSF||(e.SSF=ze(me)),e.SSF&&(ba(),dn(e.SSF),t.revssf=a0(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF,t.cellXfs=[],Xt(t.cellXfs,{},{revssf:{General:0}}));var r=[];r.push(jg(e,t)),r.push(Yg()),r.push(""),r.push("");for(var a=0;a40||(r.l-=4,t.Reserved1=r.read_shift(0,"lpstr-ansi"),r.length-r.l<=4)||(a=r.read_shift(4),a!==1907505652)||(t.UnicodeClipboardFormat=Zu(r),a=r.read_shift(4),a==0||a>40))return t;r.l-=4,t.Reserved2=r.read_shift(0,"lpwstr")}var f_=[60,1084,2066,2165,2175];function c_(e,t,r,a,n){var i=a,s=[],f=r.slice(r.l,r.l+i);if(n&&n.enc&&n.enc.insitu&&f.length>0)switch(e){case 9:case 521:case 1033:case 2057:case 47:case 405:case 225:case 406:case 312:case 404:case 10:break;case 133:break;default:n.enc.insitu(f)}s.push(f),r.l+=i;for(var c=wt(r,r.l),o=U0[c],l=0;o!=null&&f_.indexOf(c)>-1;)i=wt(r,r.l+2),l=r.l+4,c==2066?l+=4:(c==2165||c==2175)&&(l+=12),f=r.slice(l,r.l+4+i),s.push(f),r.l+=4+i,o=U0[c=wt(r,r.l)];var u=dr(s);mr(u,0);var h=0;u.lens=[];for(var x=0;x1)&&!(Gr.sheetRows&&Ce.r>=Gr.sheetRows)){if(Gr.cellStyles&&er.XF&&er.XF.data&&G(Ce,er,Gr),delete er.ixfe,delete er.XF,u=Ce,h=ge(Ce),(!s||!s.s||!s.e)&&(s={s:{r:0,c:0},e:{r:0,c:0}}),Ce.rs.e.r&&(s.e.r=Ce.r+1),Ce.c+1>s.e.c&&(s.e.c=Ce.c+1),Gr.cellFormula&&er.f){for(var fr=0;frCe.c||k[fr][0].s.r>Ce.r)&&!(k[fr][0].e.c>8)!==ne)throw new Error("rt mismatch: "+Fe+"!="+ne);q.r==12&&(e.l+=10,Q-=10)}var D={};if(ne===10?D=q.f(e,Q,L):D=c_(ne,q,e,Q,L),pe==0&&[9,521,1033,2057].indexOf(xe)===-1)continue;switch(ne){case 34:r.opts.Date1904=_.WBProps.date1904=D;break;case 134:r.opts.WriteProtect=!0;break;case 47:if(L.enc||(e.l=0),L.enc=D,!t.password)throw new Error("File is password-protected");if(D.valid==null)throw new Error("Encryption scheme unsupported");if(!D.valid)throw new Error("Password is incorrect");break;case 92:L.lastuser=D;break;case 66:var Ve=Number(D);switch(Ve){case 21010:Ve=1200;break;case 32768:Ve=1e4;break;case 32769:Ve=1252;break}at(L.codepage=Ve),K=!0;break;case 317:L.rrtabid=D;break;case 25:L.winlocked=D;break;case 439:r.opts.RefreshAll=D;break;case 12:r.opts.CalcCount=D;break;case 16:r.opts.CalcDelta=D;break;case 17:r.opts.CalcIter=D;break;case 13:r.opts.CalcMode=D;break;case 14:r.opts.CalcPrecision=D;break;case 95:r.opts.CalcSaveRecalc=D;break;case 15:L.CalcRefMode=D;break;case 2211:r.opts.FullCalc=D;break;case 129:D.fDialog&&(n["!type"]="dialog"),D.fBelow||((n["!outline"]||(n["!outline"]={})).above=!0),D.fRight||((n["!outline"]||(n["!outline"]={})).left=!0);break;case 224:I.push(D);break;case 430:V.push([D]),V[V.length-1].XTI=[];break;case 35:case 547:V[V.length-1].push(D);break;case 24:case 536:P={Name:D.Name,Ref:Tr(D.rgce,s,null,V,L)},D.itab>0&&(P.Sheet=D.itab-1),V.names.push(P),V[0]||(V[0]=[],V[0].XTI=[]),V[V.length-1].push(D),D.Name=="_xlnm._FilterDatabase"&&D.itab>0&&D.rgce&&D.rgce[0]&&D.rgce[0][0]&&D.rgce[0][0][0]=="PtgArea3d"&&(R[D.itab-1]={ref:Te(D.rgce[0][0][1][2])});break;case 22:L.ExternCount=D;break;case 23:V.length==0&&(V[0]=[],V[0].XTI=[]),V[V.length-1].XTI=V[V.length-1].XTI.concat(D),V.XTI=V.XTI.concat(D);break;case 2196:if(L.biff<8)break;P!=null&&(P.Comment=D[1]);break;case 18:n["!protect"]=D;break;case 19:D!==0&&L.WTF&&console.error("Password verifier: "+D);break;case 133:i[D.pos]=D,L.snames.push(D.name);break;case 10:{if(--pe)break;if(s.e){if(s.e.r>0&&s.e.c>0){if(s.e.r--,s.e.c--,n["!ref"]=Te(s),t.sheetRows&&t.sheetRows<=s.e.r){var Oe=s.e.r;s.e.r=t.sheetRows-1,n["!fullref"]=n["!ref"],n["!ref"]=Te(s),s.e.r=Oe}s.e.r++,s.e.c++}oe.length>0&&(n["!merges"]=oe),ee.length>0&&(n["!objects"]=ee),ue.length>0&&(n["!cols"]=ue),ce.length>0&&(n["!rows"]=ce),_.Sheets.push(N)}o===""?l=n:a[o]=n,n=t.dense?[]:{}}break;case 9:case 521:case 1033:case 2057:{if(L.biff===8&&(L.biff={9:2,521:3,1033:4}[ne]||{512:2,768:3,1024:4,1280:5,1536:8,2:2,7:2}[D.BIFFVer]||8),L.biffguess=D.BIFFVer==0,D.BIFFVer==0&&D.dt==4096&&(L.biff=5,K=!0,at(L.codepage=28591)),L.biff==8&&D.BIFFVer==0&&D.dt==16&&(L.biff=2),pe++)break;if(n=t.dense?[]:{},L.biff<8&&!K&&(K=!0,at(L.codepage=t.codepage||1252)),L.biff<5||D.BIFFVer==0&&D.dt==4096){o===""&&(o="Sheet1"),s={s:{r:0,c:0},e:{r:0,c:0}};var We={pos:e.l-Q,name:o};i[We.pos]=We,L.snames.push(o)}else o=(i[te]||{name:""}).name;D.dt==32&&(n["!type"]="chart"),D.dt==64&&(n["!type"]="macro"),oe=[],ee=[],L.arrayf=k=[],ue=[],ce=[],ke=!1,N={Hidden:(i[te]||{hs:0}).hs,name:o}}break;case 515:case 3:case 2:n["!type"]=="chart"&&(t.dense?(n[D.r]||[])[D.c]:n[ge({c:D.c,r:D.r})])&&++D.c,m={ixfe:D.ixfe,XF:I[D.ixfe]||{},v:D.val,t:"n"},b>0&&(m.z=B[m.ixfe>>8&63]),lt(m,t,r.opts.Date1904),M({c:D.c,r:D.r},m,t);break;case 5:case 517:m={ixfe:D.ixfe,XF:I[D.ixfe],v:D.val,t:D.t},b>0&&(m.z=B[m.ixfe>>8&63]),lt(m,t,r.opts.Date1904),M({c:D.c,r:D.r},m,t);break;case 638:m={ixfe:D.ixfe,XF:I[D.ixfe],v:D.rknum,t:"n"},b>0&&(m.z=B[m.ixfe>>8&63]),lt(m,t,r.opts.Date1904),M({c:D.c,r:D.r},m,t);break;case 189:for(var De=D.c;De<=D.C;++De){var le=D.rkrec[De-D.c][0];m={ixfe:le,XF:I[le],v:D.rkrec[De-D.c][1],t:"n"},b>0&&(m.z=B[m.ixfe>>8&63]),lt(m,t,r.opts.Date1904),M({c:De,r:D.r},m,t)}break;case 6:case 518:case 1030:{if(D.val=="String"){f=D;break}if(m=Nn(D.val,D.cell.ixfe,D.tt),m.XF=I[m.ixfe],t.cellFormula){var Qe=D.formula;if(Qe&&Qe[0]&&Qe[0][0]&&Qe[0][0][0]=="PtgExp"){var Xr=Qe[0][0][1][0],ct=Qe[0][0][1][1],mt=ge({r:Xr,c:ct});w[mt]?m.f=""+Tr(D.formula,s,D.cell,V,L):m.F=((t.dense?(n[Xr]||[])[ct]:n[mt])||{}).F}else m.f=""+Tr(D.formula,s,D.cell,V,L)}b>0&&(m.z=B[m.ixfe>>8&63]),lt(m,t,r.opts.Date1904),M(D.cell,m,t),f=D}break;case 7:case 519:if(f)f.val=D,m=Nn(D,f.cell.ixfe,"s"),m.XF=I[m.ixfe],t.cellFormula&&(m.f=""+Tr(f.formula,s,f.cell,V,L)),b>0&&(m.z=B[m.ixfe>>8&63]),lt(m,t,r.opts.Date1904),M(f.cell,m,t),f=null;else throw new Error("String record expects Formula");break;case 33:case 545:{k.push(D);var Ia=ge(D[0].s);if(x=t.dense?(n[D[0].s.r]||[])[D[0].s.c]:n[Ia],t.cellFormula&&x){if(!f||!Ia||!x)break;x.f=""+Tr(D[1],s,D[0],V,L),x.F=Te(D[0])}}break;case 1212:{if(!t.cellFormula)break;if(h){if(!f)break;w[ge(f.cell)]=D[0],x=t.dense?(n[f.cell.r]||[])[f.cell.c]:n[ge(f.cell)],(x||{}).f=""+Tr(D[0],s,u,V,L)}}break;case 253:m=Nn(c[D.isst].t,D.ixfe,"s"),c[D.isst].h&&(m.h=c[D.isst].h),m.XF=I[m.ixfe],b>0&&(m.z=B[m.ixfe>>8&63]),lt(m,t,r.opts.Date1904),M({c:D.c,r:D.r},m,t);break;case 513:t.sheetStubs&&(m={ixfe:D.ixfe,XF:I[D.ixfe],t:"z"},b>0&&(m.z=B[m.ixfe>>8&63]),lt(m,t,r.opts.Date1904),M({c:D.c,r:D.r},m,t));break;case 190:if(t.sheetStubs)for(var Ct=D.c;Ct<=D.C;++Ct){var Lr=D.ixfe[Ct-D.c];m={ixfe:Lr,XF:I[Lr],t:"z"},b>0&&(m.z=B[m.ixfe>>8&63]),lt(m,t,r.opts.Date1904),M({c:Ct,r:D.r},m,t)}break;case 214:case 516:case 4:m=Nn(D.val,D.ixfe,"s"),m.XF=I[m.ixfe],b>0&&(m.z=B[m.ixfe>>8&63]),lt(m,t,r.opts.Date1904),M({c:D.c,r:D.r},m,t);break;case 0:case 512:pe===1&&(s=D);break;case 252:c=D;break;case 1054:if(L.biff==4){B[b++]=D[1];for(var gt=0;gt=163&&dt(D[1],b+163)}else dt(D[1],D[0]);break;case 30:{B[b++]=D;for(var bt=0;bt=163&&dt(D,b+163)}break;case 229:oe=oe.concat(D);break;case 93:ee[D.cmo[0]]=L.lastobj=D;break;case 438:L.lastobj.TxO=D;break;case 127:L.lastobj.ImData=D;break;case 440:for(v=D[0].s.r;v<=D[0].e.r;++v)for(d=D[0].s.c;d<=D[0].e.c;++d)x=t.dense?(n[v]||[])[d]:n[ge({c:d,r:v})],x&&(x.l=D[1]);break;case 2048:for(v=D[0].s.r;v<=D[0].e.r;++v)for(d=D[0].s.c;d<=D[0].e.c;++d)x=t.dense?(n[v]||[])[d]:n[ge({c:d,r:v})],x&&x.l&&(x.l.Tooltip=D[1]);break;case 28:{if(L.biff<=5&&L.biff>=2)break;x=t.dense?(n[D[0].r]||[])[D[0].c]:n[ge(D[0])];var Ra=ee[D[2]];x||(t.dense?(n[D[0].r]||(n[D[0].r]=[]),x=n[D[0].r][D[0].c]={t:"z"}):x=n[ge(D[0])]={t:"z"},s.e.r=Math.max(s.e.r,D[0].r),s.s.r=Math.min(s.s.r,D[0].r),s.e.c=Math.max(s.e.c,D[0].c),s.s.c=Math.min(s.s.c,D[0].c)),x.c||(x.c=[]),p={a:D[1],t:Ra.TxO.t},x.c.push(p)}break;case 2173:Jd(I[D.ixfe],D.ext);break;case 125:{if(!L.cellStyles)break;for(;D.e>=D.s;)ue[D.e--]={width:D.w/256,level:D.level||0,hidden:!!(D.flags&1)},ke||(ke=!0,vi(D.w/256)),Mt(ue[D.e+1])}break;case 520:{var br={};D.level!=null&&(ce[D.r]=br,br.level=D.level),D.hidden&&(ce[D.r]=br,br.hidden=!0),D.hpt&&(ce[D.r]=br,br.hpt=D.hpt,br.hpx=Ca(D.hpt))}break;case 38:case 39:case 40:case 41:n["!margins"]||qt(n["!margins"]={}),n["!margins"][{38:"left",39:"right",40:"top",41:"bottom"}[ne]]=D;break;case 161:n["!margins"]||qt(n["!margins"]={}),n["!margins"].header=D.header,n["!margins"].footer=D.footer;break;case 574:D.RTL&&(_.Views[0].RTL=!0);break;case 146:S=D;break;case 2198:J=D;break;case 140:y=D;break;case 442:o?N.CodeName=D||N.name:_.WBProps.CodeName=D||"ThisWorkbook";break}}else q||console.error("Missing Info for XLS Record 0x"+ne.toString(16)),e.l+=Q}return r.SheetNames=Ze(i).sort(function(ot,Ce){return Number(ot)-Number(Ce)}).map(function(ot){return i[ot].name}),t.bookSheets||(r.Sheets=a),!r.SheetNames.length&&l["!ref"]?(r.SheetNames.push("Sheet1"),r.Sheets&&(r.Sheets.Sheet1=l)):r.Preamble=l,r.Sheets&&R.forEach(function(ot,Ce){r.Sheets[r.SheetNames[Ce]]["!autofilter"]=ot}),r.Strings=c,r.SSF=ze(me),L.enc&&(r.Encryption=L.enc),J&&(r.Themes=J),r.Metadata={},y!==void 0&&(r.Metadata.Country=y),V.names.length>0&&(_.Names=V.names),r.Workbook=_,r}var Ya={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function l_(e,t,r){var a=ve.find(e,"/!DocumentSummaryInformation");if(a&&a.size>0)try{var n=ks(a,I0,Ya.DSI);for(var i in n)t[i]=n[i]}catch(o){if(r.WTF)throw o}var s=ve.find(e,"/!SummaryInformation");if(s&&s.size>0)try{var f=ks(s,R0,Ya.SI);for(var c in f)t[c]==null&&(t[c]=f[c])}catch(o){if(r.WTF)throw o}t.HeadingPairs&&t.TitlesOfParts&&(ic(t.HeadingPairs,t.TitlesOfParts,t,r),delete t.HeadingPairs,delete t.TitlesOfParts)}function u_(e,t){var r=[],a=[],n=[],i=0,s,f=qi(I0,"n"),c=qi(R0,"n");if(e.Props)for(s=Ze(e.Props),i=0;i-1||nc.indexOf(n[i][0])>-1||n[i][1]!=null&&o.push(n[i]);a.length&&ve.utils.cfb_add(t,"/SummaryInformation",Es(a,Ya.SI,c,R0)),(r.length||o.length)&&ve.utils.cfb_add(t,"/DocumentSummaryInformation",Es(r,Ya.DSI,f,I0,o.length?o:null,Ya.UDI))}function fo(e,t){t||(t={}),Fi(t),$0(),t.codepage&&z0(t.codepage);var r,a;if(e.FullPaths){if(ve.find(e,"/encryption"))throw new Error("File is password-protected");r=ve.find(e,"!CompObj"),a=ve.find(e,"/Workbook")||ve.find(e,"/Book")}else{switch(t.type){case"base64":e=Ur(Hr(e));break;case"binary":e=Ur(e);break;case"buffer":break;case"array":Array.isArray(e)||(e=Array.prototype.slice.call(e));break}mr(e,0),a={content:e}}var n,i;if(r&&s_(r),t.bookProps&&!t.bookSheets)n={};else{var s=Ae?"buffer":"array";if(a&&a.content)n=o_(a.content,t);else if((i=ve.find(e,"PerfectOffice_MAIN"))&&i.content)n=Jt.to_workbook(i.content,(t.type=s,t));else if((i=ve.find(e,"NativeContent_MAIN"))&&i.content)n=Jt.to_workbook(i.content,(t.type=s,t));else throw(i=ve.find(e,"MN0"))&&i.content?new Error("Unsupported Works 4 for Mac file"):new Error("Cannot find Workbook stream");t.bookVBA&&e.FullPaths&&ve.find(e,"/_VBA_PROJECT_CUR/VBA/dir")&&(n.vbaraw=Sp(e))}var f={};return e.FullPaths&&l_(e,f,t),n.Props=n.Custprops=f,t.bookFiles&&(n.cfb=e),n}function h_(e,t){var r=t||{},a=ve.utils.cfb_new({root:"R"}),n="/Workbook";switch(r.bookType||"xls"){case"xls":r.bookType="biff8";case"xla":r.bookType||(r.bookType="xla");case"biff8":n="/Workbook",r.biff=8;break;case"biff5":n="/Book",r.biff=5;break;default:throw new Error("invalid type "+r.bookType+" for XLS CFB")}return ve.utils.cfb_add(a,n,co(e,r)),r.biff==8&&(e.Props||e.Custprops)&&u_(e,a),r.biff==8&&e.vbaraw&&Fp(a,ve.read(e.vbaraw,{type:typeof e.vbaraw=="string"?"binary":"buffer"})),a}var un={0:{f:Lm},1:{f:Gm},2:{f:o2},3:{f:Zm},4:{f:jm},5:{f:s2},6:{f:d2},7:{f:t2},8:{f:k2},9:{f:w2},10:{f:g2},11:{f:_2},12:{f:$m},13:{f:u2},14:{f:e2},15:{f:Jm},16:{f:Qc},17:{f:v2},18:{f:n2},19:{f:si},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:vg},40:{},42:{},43:{f:dd},44:{f:hd},45:{f:md},46:{f:_d},47:{f:gd},48:{},49:{f:Uu},50:{},51:{f:Qd},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:Tc},62:{f:x2},63:{f:cp},64:{f:B2},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:Ar,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:R2},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:Vm},148:{f:Um,p:16},151:{f:A2},152:{},153:{f:xg},154:{},155:{},156:{f:ug},157:{},158:{},159:{T:1,f:bx},160:{T:-1},161:{T:1,f:ha},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:E2},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:qd},336:{T:-1},337:{f:tp,T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:O0},357:{},358:{},359:{},360:{T:1},361:{},362:{f:Ec},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:C2},427:{f:b2},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:O2},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:Hm},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:F2},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:O0},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:_p},633:{T:1},634:{T:-1},635:{T:1,f:mp},636:{T:-1},637:{f:Xu},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:eg},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:M2},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}},U0={6:{f:w0},10:{f:Dt},12:{f:sr},13:{f:sr},14:{f:rr},15:{f:rr},16:{f:Fr},17:{f:rr},18:{f:rr},19:{f:sr},20:{f:Cs},21:{f:Cs},23:{f:Ec},24:{f:Ds},25:{f:rr},26:{},27:{},28:{f:M1},29:{},34:{f:rr},35:{f:bs},38:{f:Fr},39:{f:Fr},40:{f:Fr},41:{f:Fr},42:{f:rr},43:{f:rr},47:{f:Jx},49:{f:u1},51:{f:sr},60:{},61:{f:s1},64:{f:rr},65:{f:l1},66:{f:sr},77:{},80:{},81:{},82:{},85:{f:sr},89:{},90:{},91:{},92:{f:Yh},93:{f:H1},94:{},95:{f:rr},96:{},97:{},99:{f:rr},125:{f:Tc},128:{f:y1},129:{f:qh},130:{f:sr},131:{f:rr},132:{f:rr},133:{f:Zh},134:{},140:{f:Y1},141:{f:sr},144:{},146:{f:Z1},151:{},152:{},153:{},154:{},155:{},156:{f:sr},157:{},158:{},160:{f:ix},161:{f:rx},174:{},175:{},176:{},177:{},178:{},180:{},181:{},182:{},184:{},185:{},189:{f:E1},190:{f:T1},193:{f:Dt},197:{},198:{},199:{},200:{},201:{},202:{f:rr},203:{},204:{},205:{},206:{},207:{},208:{},209:{},210:{},211:{},213:{},215:{},216:{},217:{},218:{f:sr},220:{},221:{f:rr},222:{},224:{f:F1},225:{f:jh},226:{f:Dt},227:{},229:{f:U1},233:{},235:{},236:{},237:{},239:{},240:{},241:{},242:{},244:{},245:{},246:{},247:{},248:{},249:{},251:{},252:{f:e1},253:{f:x1},255:{f:t1},256:{},259:{},290:{},311:{},312:{},315:{},317:{f:xc},318:{},319:{},320:{},330:{},331:{},333:{},334:{},335:{},336:{},337:{},338:{},339:{},340:{},351:{},352:{f:rr},353:{f:Dt},401:{},402:{},403:{},404:{},405:{},406:{},407:{},408:{},425:{},426:{},427:{},428:{},429:{},430:{f:O1},431:{f:rr},432:{},433:{},434:{},437:{},438:{f:G1},439:{f:rr},440:{f:z1},441:{},442:{f:gn},443:{},444:{f:sr},445:{},446:{},448:{f:Dt},449:{f:i1,r:2},450:{f:Dt},512:{f:Fs},513:{f:nx},515:{f:b1},516:{f:p1},517:{f:As},519:{f:sx},520:{f:a1},523:{},545:{f:Os},549:{f:Ss},566:{},574:{f:c1},638:{f:k1},659:{},1048:{},1054:{f:m1},1084:{},1212:{f:P1},2048:{f:K1},2049:{},2050:{},2051:{},2052:{},2053:{},2054:{},2055:{},2056:{},2057:{f:On},2058:{},2059:{},2060:{},2061:{},2062:{},2063:{},2064:{},2066:{},2067:{},2128:{},2129:{},2130:{},2131:{},2132:{},2133:{},2134:{},2135:{},2136:{},2137:{},2138:{},2146:{},2147:{r:12},2148:{},2149:{},2150:{},2151:{f:Dt},2152:{},2154:{},2155:{},2156:{},2161:{},2162:{},2164:{},2165:{},2166:{},2167:{},2168:{},2169:{},2170:{},2171:{},2172:{f:Q1,r:12},2173:{f:Yd,r:12},2174:{},2175:{},2180:{},2181:{},2182:{},2183:{},2184:{},2185:{},2186:{},2187:{},2188:{f:rr,r:12},2189:{},2190:{r:12},2191:{},2192:{},2194:{},2195:{},2196:{f:N1,r:12},2197:{},2198:{f:Xd,r:12},2199:{},2200:{},2201:{},2202:{f:L1,r:12},2203:{f:Dt},2204:{},2205:{},2206:{},2207:{},2211:{f:n1},2212:{},2213:{},2214:{},2215:{},4097:{},4098:{},4099:{},4102:{},4103:{},4105:{},4106:{},4107:{},4108:{},4109:{},4116:{},4117:{},4118:{},4119:{},4120:{},4121:{},4122:{},4123:{},4124:{},4125:{},4126:{},4127:{},4128:{},4129:{},4130:{},4132:{},4133:{},4134:{f:sr},4135:{},4146:{},4147:{},4148:{},4149:{},4154:{},4156:{},4157:{},4158:{},4159:{},4160:{},4161:{},4163:{},4164:{f:tx},4165:{},4166:{},4168:{},4170:{},4171:{},4174:{},4175:{},4176:{},4177:{},4187:{},4188:{f:q1},4189:{},4191:{},4192:{},4193:{},4194:{},4195:{},4196:{},4197:{},4198:{},4199:{},4200:{},0:{f:Fs},1:{},2:{f:ux},3:{f:ox},4:{f:cx},5:{f:As},7:{f:xx},8:{},9:{f:On},11:{},22:{f:sr},30:{f:_1},31:{},32:{},33:{f:Os},36:{},37:{f:Ss},50:{f:dx},62:{},52:{},67:{},68:{f:sr},69:{},86:{},126:{},127:{f:fx},135:{},136:{},137:{},145:{},148:{},149:{},150:{},169:{},171:{},188:{},191:{},192:{},194:{},195:{},214:{f:px},223:{},234:{},354:{},421:{},518:{f:w0},521:{f:On},536:{f:Ds},547:{f:bs},561:{},579:{},1030:{f:w0},1033:{f:On},1091:{},2157:{},2163:{},2177:{},2240:{},2241:{},2242:{},2243:{},2244:{},2245:{},2246:{},2247:{},2248:{},2249:{},2250:{},2251:{},2262:{r:12},29282:{}};function se(e,t,r,a){var n=t;if(!isNaN(n)){var i=a||(r||[]).length||0,s=e.next(4);s.write_shift(2,n),s.write_shift(2,i),i>0&&ai(r)&&e.push(r)}}function x_(e,t,r,a){var n=a||(r||[]).length||0;if(n<=8224)return se(e,t,r,n);var i=t;if(!isNaN(i)){for(var s=r.parts||[],f=0,c=0,o=0;o+(s[f]||8224)<=8224;)o+=s[f]||8224,f++;var l=e.next(4);for(l.write_shift(2,i),l.write_shift(2,o),e.push(r.slice(c,c+o)),c+=o;c=0&&n<65536?se(e,2,hx(r,a,n)):se(e,3,lx(r,a,n));return;case"b":case"e":se(e,5,d_(r,a,t.v,t.t));return;case"s":case"str":se(e,4,p_(r,a,(t.v||"").slice(0,255)));return}se(e,1,En(null,r,a))}function m_(e,t,r,a){var n=Array.isArray(t),i=Re(t["!ref"]||"A1"),s,f="",c=[];if(i.e.c>255||i.e.r>16383){if(a.WTF)throw new Error("Range "+(t["!ref"]||"A1")+" exceeds format limit A1:IV16384");i.e.c=Math.min(i.e.c,255),i.e.r=Math.min(i.e.c,16383),s=Te(i)}for(var o=i.s.r;o<=i.e.r;++o){f=tr(o);for(var l=i.s.c;l<=i.e.c;++l){o===i.s.r&&(c[l]=je(l)),s=c[l]+f;var u=n?(t[o]||[])[l]:t[s];u&&v_(e,u,o,l)}}}function g_(e,t){for(var r=t||{},a=Nr(),n=0,i=0;i255||x.e.r>=p){if(t.WTF)throw new Error("Range "+(i["!ref"]||"A1")+" exceeds format limit A1:IV16384");x.e.c=Math.min(x.e.c,255),x.e.r=Math.min(x.e.c,p-1)}se(a,2057,xi(r,16,t)),se(a,13,Jr(1)),se(a,12,Jr(100)),se(a,15,Or(!0)),se(a,17,Or(!1)),se(a,16,ta(.001)),se(a,95,Or(!0)),se(a,42,Or(!1)),se(a,43,Or(!1)),se(a,130,Jr(1)),se(a,128,A1([0,0])),se(a,131,Or(!1)),se(a,132,Or(!1)),o&&S_(a,i["!cols"]),se(a,512,w1(x,t)),o&&(i["!links"]=[]);for(var d=x.s.r;d<=x.e.r;++d){u=tr(d);for(var v=x.s.c;v<=x.e.c;++v){d===x.s.r&&(h[v]=je(v)),l=h[v]+u;var w=c?(i[d]||[])[v]:i[l];w&&(F_(a,w,d,v,t),o&&w.l&&i["!links"].push([l,w.l]))}}var k=f.CodeName||f.name||n;return o&&se(a,574,o1((s.Views||[])[0])),o&&(i["!merges"]||[]).length&&se(a,229,W1(i["!merges"])),o&&T_(a,i),se(a,442,pc(k)),o&&k_(a,i),se(a,10),a.end()}function A_(e,t,r){var a=Nr(),n=(e||{}).Workbook||{},i=n.Sheets||[],s=n.WBProps||{},f=r.biff==8,c=r.biff==5;if(se(a,2057,xi(e,5,r)),r.bookType=="xla"&&se(a,135),se(a,225,f?Jr(1200):null),se(a,193,Ch(2)),c&&se(a,191),c&&se(a,192),se(a,226),se(a,92,Jh("SheetJS",r)),se(a,66,Jr(f?1200:1252)),f&&se(a,353,Jr(0)),f&&se(a,448),se(a,317,ax(e.SheetNames.length)),f&&e.vbaraw&&se(a,211),f&&e.vbaraw){var o=s.CodeName||"ThisWorkbook";se(a,442,pc(o))}se(a,156,Jr(17)),se(a,25,Or(!1)),se(a,18,Or(!1)),se(a,19,Jr(0)),f&&se(a,431,Or(!1)),f&&se(a,444,Jr(0)),se(a,61,f1()),se(a,64,Or(!1)),se(a,141,Jr(0)),se(a,34,Or(ig(e)=="true")),se(a,14,Or(!0)),f&&se(a,439,Or(!1)),se(a,218,Jr(0)),__(a,e,r),w_(a,e.SSF,r),E_(a,r),f&&se(a,352,Or(!1));var l=a.end(),u=Nr();f&&se(u,140,J1()),f&&r.Strings&&x_(u,252,r1(r.Strings)),se(u,10);var h=u.end(),x=Nr(),p=0,d=0;for(d=0;d255&&typeof console<"u"&&console.error&&console.error("Worksheet '"+e.SheetNames[r]+"' extends beyond column IV (255). Data may be lost.")}}var i=t||{};switch(i.biff||2){case 8:case 5:return C_(e,t);case 4:case 3:case 2:return g_(e,t)}throw new Error("invalid type "+i.bookType+" for BIFF")}function Hs(e,t){var r=t||{},a=r.dense?[]:{};e=e.replace(//g,"");var n=e.match(/");var i=e.match(/<\/table/i),s=n.index,f=i&&i.index||e.length,c=xu(e.slice(s,f),/(:?]*>)/i,""),o=-1,l=0,u=0,h=0,x={s:{r:1e7,c:1e7},e:{r:0,c:0}},p=[];for(s=0;s/i);for(f=0;f"))>-1;)m=m.slice(y+1);for(var I=0;I")));h=_.colspan?+_.colspan:1,((u=+_.rowspan)>1||h>1)&&p.push({s:{r:o,c:l},e:{r:o+(u||1)-1,c:l+h-1}});var N=_.t||_["data-t"]||"";if(!m.length){l+=h;continue}if(m=If(m),x.s.r>o&&(x.s.r=o),x.e.rl&&(x.s.c=l),x.e.cr||n[o].s.c>s)&&!(n[o].e.r1&&(x.rowspan=f),c>1&&(x.colspan=c),a.editable?h=''+h+"":u&&(x["data-t"]=u&&u.t||"z",u.v!=null&&(x["data-v"]=u.v),u.z!=null&&(x["data-z"]=u.z),u.l&&(u.l.Target||"#").charAt(0)!="#"&&(h=''+h+"")),x.id=(a.id||"sjs")+"-"+l,i.push(ie("td",h,x))}}var p="";return p+i.join("")+""}var D_='SheetJS Table Export',O_="";function I_(e,t){var r=e.match(/[\s\S]*?<\/table>/gi);if(!r||r.length==0)throw new Error("Invalid HTML: could not find
");if(r.length==1)return Vt(Hs(r[0],t),t);var a=Di();return r.forEach(function(n,i){Oi(a,Hs(n,t),"Sheet"+(i+1))}),a}function R_(e,t,r){var a=[];return a.join("")+""}function oo(e,t){var r=t||{},a=r.header!=null?r.header:D_,n=r.footer!=null?r.footer:O_,i=[a],s=Pr(e["!ref"]);r.dense=Array.isArray(e),i.push(R_(e,s,r));for(var f=s.s.r;f<=s.e.r;++f)i.push(b_(e,s,f,r));return i.push("
"+n),i.join("")}function lo(e,t,r){var a=r||{},n=0,i=0;if(a.origin!=null)if(typeof a.origin=="number")n=a.origin;else{var s=typeof a.origin=="string"?Ye(a.origin):a.origin;n=s.r,i=s.c}var f=t.getElementsByTagName("tr"),c=Math.min(a.sheetRows||1e7,f.length),o={s:{r:0,c:0},e:{r:n,c:i}};if(e["!ref"]){var l=Pr(e["!ref"]);o.s.r=Math.min(o.s.r,l.s.r),o.s.c=Math.min(o.s.c,l.s.c),o.e.r=Math.max(o.e.r,l.e.r),o.e.c=Math.max(o.e.c,l.e.c),n==-1&&(o.e.r=n=l.e.r+1)}var u=[],h=0,x=e["!rows"]||(e["!rows"]=[]),p=0,d=0,v=0,w=0,k=0,m=0;for(e["!cols"]||(e["!cols"]=[]);p1||m>1)&&u.push({s:{r:d+n,c:w+i},e:{r:d+n+(k||1)-1,c:w+i+(m||1)-1}});var G={t:"s",v:_},M=S.getAttribute("data-t")||S.getAttribute("t")||"";_!=null&&(_.length==0?G.t=M||"z":a.raw||_.trim().length==0||M=="s"||(_==="TRUE"?G={t:"b",v:!0}:_==="FALSE"?G={t:"b",v:!1}:isNaN(it(_))?isNaN(ya(_).getDate())||(G={t:"d",v:Ge(_)},a.cellDates||(G={t:"n",v:ur(G.v)}),G.z=a.dateNF||me[14]):G={t:"n",v:it(_)})),G.z===void 0&&N!=null&&(G.z=N);var L="",J=S.getElementsByTagName("A");if(J&&J.length)for(var oe=0;oe=c&&(e["!fullref"]=Te((o.e.r=f.length-p+d-1+n,o))),e}function uo(e,t){var r=t||{},a=r.dense?[]:{};return lo(a,e,t)}function N_(e,t){return Vt(uo(e,t),t)}function Vs(e){var t="",r=P_(e);return r&&(t=r(e).getPropertyValue("display")),t||(t=e.style&&e.style.display),t==="none"}function P_(e){return e.ownerDocument.defaultView&&typeof e.ownerDocument.defaultView.getComputedStyle=="function"?e.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null}function L_(e){var t=e.replace(/[\t\r\n]/g," ").trim().replace(/ +/g," ").replace(//g," ").replace(//g,function(a,n){return Array(parseInt(n,10)+1).join(" ")}).replace(/]*\/>/g," ").replace(//g,` +`),r=Ie(t.replace(/<[^>]*>/g,""));return[r]}var Xs={day:["d","dd"],month:["m","mm"],year:["y","yy"],hours:["h","hh"],minutes:["m","mm"],seconds:["s","ss"],"am-pm":["A/P","AM/PM"],"day-of-week":["ddd","dddd"],era:["e","ee"],quarter:["\\Qm",'m\\"th quarter"']};function ho(e,t){var r=t||{},a=ri(e),n=[],i,s,f={name:""},c="",o=0,l,u,h={},x=[],p=r.dense?[]:{},d,v,w={value:""},k="",m=0,y=[],I=-1,S=-1,_={s:{r:1e6,c:1e7},e:{r:0,c:0}},N=0,O={},G=[],M={},L=0,J=0,oe=[],ee=1,ue=1,ce=[],ke={Names:[]},V={},xe=["",""],pe=[],b={},B="",R=0,P=!1,K=!1,te=0;for(nn.lastIndex=0,a=a.replace(//mg,"").replace(//gm,"");d=nn.exec(a);)switch(d[3]=d[3].replace(/_.*$/,"")){case"table":case"工作表":d[1]==="/"?(_.e.c>=_.s.c&&_.e.r>=_.s.r?p["!ref"]=Te(_):p["!ref"]="A1:A1",r.sheetRows>0&&r.sheetRows<=_.e.r&&(p["!fullref"]=p["!ref"],_.e.r=r.sheetRows-1,p["!ref"]=Te(_)),G.length&&(p["!merges"]=G),oe.length&&(p["!rows"]=oe),l.name=l.名称||l.name,typeof JSON<"u"&&JSON.stringify(l),x.push(l.name),h[l.name]=p,K=!1):d[0].charAt(d[0].length-2)!=="/"&&(l=_e(d[0],!1),I=S=-1,_.s.r=_.s.c=1e7,_.e.r=_.e.c=0,p=r.dense?[]:{},G=[],oe=[],K=!0);break;case"table-row-group":d[1]==="/"?--N:++N;break;case"table-row":case"行":if(d[1]==="/"){I+=ee,ee=1;break}if(u=_e(d[0],!1),u.行号?I=u.行号-1:I==-1&&(I=0),ee=+u["number-rows-repeated"]||1,ee<10)for(te=0;te0&&(oe[I+te]={level:N});S=-1;break;case"covered-table-cell":d[1]!=="/"&&++S,r.sheetStubs&&(r.dense?(p[I]||(p[I]=[]),p[I][S]={t:"z"}):p[ge({r:I,c:S})]={t:"z"}),k="",y=[];break;case"table-cell":case"数据":if(d[0].charAt(d[0].length-2)==="/")++S,w=_e(d[0],!1),ue=parseInt(w["number-columns-repeated"]||"1",10),v={t:"z",v:null},w.formula&&r.cellFormula!=!1&&(v.f=Ms(Ie(w.formula))),(w.数据类型||w["value-type"])=="string"&&(v.t="s",v.v=Ie(w["string-value"]||""),r.dense?(p[I]||(p[I]=[]),p[I][S]=v):p[ge({r:I,c:S})]=v),S+=ue-1;else if(d[1]!=="/"){++S,k="",m=0,y=[],ue=1;var ne=ee?I+ee-1:I;if(S>_.e.c&&(_.e.c=S),S<_.s.c&&(_.s.c=S),I<_.s.r&&(_.s.r=I),ne>_.e.r&&(_.e.r=ne),w=_e(d[0],!1),pe=[],b={},v={t:w.数据类型||w["value-type"],v:null},r.cellFormula)if(w.formula&&(w.formula=Ie(w.formula)),w["number-matrix-columns-spanned"]&&w["number-matrix-rows-spanned"]&&(L=parseInt(w["number-matrix-rows-spanned"],10)||0,J=parseInt(w["number-matrix-columns-spanned"],10)||0,M={s:{r:I,c:S},e:{r:I+L-1,c:S+J-1}},v.F=Te(M),ce.push([M,v.F])),w.formula)v.f=Ms(w.formula);else for(te=0;te=ce[te][0].s.r&&I<=ce[te][0].e.r&&S>=ce[te][0].s.c&&S<=ce[te][0].e.c&&(v.F=ce[te][1]);switch((w["number-columns-spanned"]||w["number-rows-spanned"])&&(L=parseInt(w["number-rows-spanned"],10)||0,J=parseInt(w["number-columns-spanned"],10)||0,M={s:{r:I,c:S},e:{r:I+L-1,c:S+J-1}},G.push(M)),w["number-columns-repeated"]&&(ue=parseInt(w["number-columns-repeated"],10)),v.t){case"boolean":v.t="b",v.v=Xe(w["boolean-value"]);break;case"float":v.t="n",v.v=parseFloat(w.value);break;case"percentage":v.t="n",v.v=parseFloat(w.value);break;case"currency":v.t="n",v.v=parseFloat(w.value);break;case"date":v.t="d",v.v=Ge(w["date-value"]),r.cellDates||(v.t="n",v.v=ur(v.v)),v.z="m/d/yy";break;case"time":v.t="n",v.v=lu(w["time-value"])/86400,r.cellDates&&(v.t="d",v.v=n0(v.v)),v.z="HH:MM:SS";break;case"number":v.t="n",v.v=parseFloat(w.数据数值);break;default:if(v.t==="string"||v.t==="text"||!v.t)v.t="s",w["string-value"]!=null&&(k=Ie(w["string-value"]),y=[]);else throw new Error("Unsupported value type "+v.t)}}else{if(P=!1,v.t==="s"&&(v.v=k||"",y.length&&(v.R=y),P=m==0),V.Target&&(v.l=V),pe.length>0&&(v.c=pe,pe=[]),k&&r.cellText!==!1&&(v.w=k),P&&(v.t="z",delete v.v),(!P||r.sheetStubs)&&!(r.sheetRows&&r.sheetRows<=I))for(var Q=0;Q0;)p[I+Q][S+ue]=ze(v);else for(p[ge({r:I+Q,c:S})]=v;--ue>0;)p[ge({r:I+Q,c:S+ue})]=ze(v);_.e.c<=S&&(_.e.c=S)}ue=parseInt(w["number-columns-repeated"]||"1",10),S+=ue-1,ue=0,v={},k="",y=[]}V={};break;case"document":case"document-content":case"电子表格文档":case"spreadsheet":case"主体":case"scripts":case"styles":case"font-face-decls":case"master-styles":if(d[1]==="/"){if((i=n.pop())[0]!==d[3])throw"Bad state: "+i}else d[0].charAt(d[0].length-2)!=="/"&&n.push([d[3],!0]);break;case"annotation":if(d[1]==="/"){if((i=n.pop())[0]!==d[3])throw"Bad state: "+i;b.t=k,y.length&&(b.R=y),b.a=B,pe.push(b)}else d[0].charAt(d[0].length-2)!=="/"&&n.push([d[3],!1]);B="",R=0,k="",m=0,y=[];break;case"creator":d[1]==="/"?B=a.slice(R,d.index):R=d.index+d[0].length;break;case"meta":case"元数据":case"settings":case"config-item-set":case"config-item-map-indexed":case"config-item-map-entry":case"config-item-map-named":case"shapes":case"frame":case"text-box":case"image":case"data-pilot-tables":case"list-style":case"form":case"dde-links":case"event-listeners":case"chart":if(d[1]==="/"){if((i=n.pop())[0]!==d[3])throw"Bad state: "+i}else d[0].charAt(d[0].length-2)!=="/"&&n.push([d[3],!1]);k="",m=0,y=[];break;case"scientific-number":break;case"currency-symbol":break;case"currency-style":break;case"number-style":case"percentage-style":case"date-style":case"time-style":if(d[1]==="/"){if(O[f.name]=c,(i=n.pop())[0]!==d[3])throw"Bad state: "+i}else d[0].charAt(d[0].length-2)!=="/"&&(c="",f=_e(d[0],!1),n.push([d[3],!0]));break;case"script":break;case"libraries":break;case"automatic-styles":break;case"default-style":case"page-layout":break;case"style":break;case"map":break;case"font-face":break;case"paragraph-properties":break;case"table-properties":break;case"table-column-properties":break;case"table-row-properties":break;case"table-cell-properties":break;case"number":switch(n[n.length-1][0]){case"time-style":case"date-style":s=_e(d[0],!1),c+=Xs[d[3]][s.style==="long"?1:0];break}break;case"fraction":break;case"day":case"month":case"year":case"era":case"day-of-week":case"week-of-year":case"quarter":case"hours":case"minutes":case"seconds":case"am-pm":switch(n[n.length-1][0]){case"time-style":case"date-style":s=_e(d[0],!1),c+=Xs[d[3]][s.style==="long"?1:0];break}break;case"boolean-style":break;case"boolean":break;case"text-style":break;case"text":if(d[0].slice(-2)==="/>")break;if(d[1]==="/")switch(n[n.length-1][0]){case"number-style":case"date-style":case"time-style":c+=a.slice(o,d.index);break}else o=d.index+d[0].length;break;case"named-range":s=_e(d[0],!1),xe=k0(s["cell-range-address"]);var q={Name:s.name,Ref:xe[0]+"!"+xe[1]};K&&(q.Sheet=x.length),ke.Names.push(q);break;case"text-content":break;case"text-properties":break;case"embedded-text":break;case"body":case"电子表格":break;case"forms":break;case"table-column":break;case"table-header-rows":break;case"table-rows":break;case"table-column-group":break;case"table-header-columns":break;case"table-columns":break;case"null-date":break;case"graphic-properties":break;case"calculation-settings":break;case"named-expressions":break;case"label-range":break;case"label-ranges":break;case"named-expression":break;case"sort":break;case"sort-by":break;case"sort-groups":break;case"tab":break;case"line-break":break;case"span":break;case"p":case"文本串":if(["master-styles"].indexOf(n[n.length-1][0])>-1)break;if(d[1]==="/"&&(!w||!w["string-value"])){var Fe=L_(a.slice(m,d.index));k=(k.length>0?k+` +`:"")+Fe[0]}else _e(d[0],!1),m=d.index+d[0].length;break;case"s":break;case"database-range":if(d[1]==="/")break;try{xe=k0(_e(d[0])["target-range-address"]),h[xe[0]]["!autofilter"]={ref:xe[1]}}catch{}break;case"date":break;case"object":break;case"title":case"标题":break;case"desc":break;case"binary-data":break;case"table-source":break;case"scenario":break;case"iteration":break;case"content-validations":break;case"content-validation":break;case"help-message":break;case"error-message":break;case"database-ranges":break;case"filter":break;case"filter-and":break;case"filter-or":break;case"filter-condition":break;case"list-level-style-bullet":break;case"list-level-style-number":break;case"list-level-properties":break;case"sender-firstname":case"sender-lastname":case"sender-initials":case"sender-title":case"sender-position":case"sender-email":case"sender-phone-private":case"sender-fax":case"sender-company":case"sender-phone-work":case"sender-street":case"sender-city":case"sender-postal-code":case"sender-country":case"sender-state-or-province":case"author-name":case"author-initials":case"chapter":case"file-name":case"template-name":case"sheet-name":break;case"event-listener":break;case"initial-creator":case"creation-date":case"print-date":case"generator":case"document-statistic":case"user-defined":case"editing-duration":case"editing-cycles":break;case"config-item":break;case"page-number":break;case"page-count":break;case"time":break;case"cell-range-source":break;case"detective":break;case"operation":break;case"highlighted-range":break;case"data-pilot-table":case"source-cell-range":case"source-service":case"data-pilot-field":case"data-pilot-level":case"data-pilot-subtotals":case"data-pilot-subtotal":case"data-pilot-members":case"data-pilot-member":case"data-pilot-display-info":case"data-pilot-sort-info":case"data-pilot-layout-info":case"data-pilot-field-reference":case"data-pilot-groups":case"data-pilot-group":case"data-pilot-group-member":break;case"rect":break;case"dde-connection-decls":case"dde-connection-decl":case"dde-link":case"dde-source":break;case"properties":break;case"property":break;case"a":if(d[1]!=="/"){if(V=_e(d[0],!1),!V.href)break;V.Target=Ie(V.href),delete V.href,V.Target.charAt(0)=="#"&&V.Target.indexOf(".")>-1?(xe=k0(V.Target.slice(1)),V.Target="#"+xe[0]+"!"+xe[1]):V.Target.match(/^\.\.[\\\/]/)&&(V.Target=V.Target.slice(3))}break;case"table-protection":break;case"data-pilot-grand-total":break;case"office-document-common-attrs":break;default:switch(d[2]){case"dc:":case"calcext:":case"loext:":case"ooo:":case"chartooo:":case"draw:":case"style:":case"chart:":case"form:":case"uof:":case"表:":case"字:":break;default:if(r.WTF)throw new Error(d)}}var D={Sheets:h,SheetNames:x,Workbook:ke};return r.bookSheets&&delete D.Sheets,D}function Gs(e,t){t=t||{},Yr(e,"META-INF/manifest.xml")&&oh(ir(e,"META-INF/manifest.xml"),t);var r=Wr(e,"content.xml");if(!r)throw new Error("Missing content.xml in ODS / UOF file");var a=ho(Ue(r),t);return Yr(e,"meta.xml")&&(a.Props=tc(ir(e,"meta.xml"))),a}function zs(e,t){return ho(e,t)}var B_=function(){var e=["",'',"",'',"",'',"",""].join(""),t=""+e+"";return function(){return ar+t}}(),$s=function(){var e=function(i){return Be(i).replace(/ +/g,function(s){return''}).replace(/\t/g,"").replace(/\n/g,"").replace(/^ /,"").replace(/ $/,"")},t=` +`,r=` +`,a=function(i,s,f){var c=[];c.push(' +`);var o=0,l=0,u=Pr(i["!ref"]||"A1"),h=i["!merges"]||[],x=0,p=Array.isArray(i);if(i["!cols"])for(l=0;l<=u.e.c;++l)c.push(" +`);var d="",v=i["!rows"]||[];for(o=0;o +`);for(;o<=u.e.r;++o){for(d=v[o]?' table:style-name="ro'+v[o].ods+'"':"",c.push(" +`),l=0;ll)&&!(h[x].s.r>o)&&!(h[x].e.c +`)}return c.push(` +`),c.join("")},n=function(i,s){i.push(` +`),i.push(` +`),i.push(` +`),i.push(` / +`),i.push(` +`),i.push(` / +`),i.push(` +`),i.push(` +`);var f=0;s.SheetNames.map(function(o){return s.Sheets[o]}).forEach(function(o){if(o&&o["!cols"]){for(var l=0;l +`),i.push(' +`),i.push(` +`),++f}}});var c=0;s.SheetNames.map(function(o){return s.Sheets[o]}).forEach(function(o){if(o&&o["!rows"]){for(var l=0;l +`),i.push(' +`),i.push(` +`),++c}}}),i.push(` +`),i.push(` +`),i.push(` +`),i.push(` +`),i.push(` +`)};return function(s,f){var c=[ar],o=an({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),l=an({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});f.bookType=="fods"?(c.push(" +`),c.push(rc().replace(/office:document-meta/g,"office:meta"))):c.push(" +`),n(c,s),c.push(` +`),c.push(` +`);for(var u=0;u!=s.SheetNames.length;++u)c.push(a(s.Sheets[s.SheetNames[u]],s,u));return c.push(` +`),c.push(` +`),f.bookType=="fods"?c.push(""):c.push(""),c.join("")}}();function xo(e,t){if(t.bookType=="fods")return $s(e,t);var r=q0(),a="",n=[],i=[];return a="mimetype",Se(r,a,"application/vnd.oasis.opendocument.spreadsheet"),a="content.xml",Se(r,a,$s(e,t)),n.push([a,"text/xml"]),i.push([a,"ContentFile"]),a="styles.xml",Se(r,a,B_(e,t)),n.push([a,"text/xml"]),i.push([a,"StylesFile"]),a="meta.xml",Se(r,a,ar+rc()),n.push([a,"text/xml"]),i.push([a,"MetadataFile"]),a="manifest.rdf",Se(r,a,hh(i)),n.push([a,"application/rdf+xml"]),a="META-INF/manifest.xml",Se(r,a,lh(n)),r}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function ia(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function W0(e){return typeof TextDecoder<"u"?new TextDecoder().decode(e):Ue(Ht(e))}function M_(e){return typeof TextEncoder<"u"?new TextEncoder().encode(e):Ur(xt(e))}function U_(e,t){e:for(var r=0;r<=e.length-t.length;++r){for(var a=0;a>1&1431655765,e=(e&858993459)+(e>>2&858993459),(e+(e>>4)&252645135)*16843009>>>24}function W_(e,t){for(var r=(e[t+15]&127)<<7|e[t+14]>>1,a=e[t+14]&1,n=t+13;n>=t;--n)a=a*256+e[n];return(e[t+15]&128?-a:a)*Math.pow(10,r-6176)}function H_(e,t,r){var a=Math.floor(r==0?0:Math.LOG10E*Math.log(Math.abs(r)))+6176-20,n=r/Math.pow(10,a-6176);e[t+15]|=a>>7,e[t+14]|=(a&127)<<1;for(var i=0;n>=1;++i,n/=256)e[t+i]=n&255;e[t+15]|=r>=0?0:128}function hn(e,t){var r=t?t[0]:0,a=e[r]&127;e:if(e[r++]>=128&&(a|=(e[r]&127)<<7,e[r++]<128||(a|=(e[r]&127)<<14,e[r++]<128)||(a|=(e[r]&127)<<21,e[r++]<128)||(a+=(e[r]&127)*Math.pow(2,28),++r,e[r++]<128)||(a+=(e[r]&127)*Math.pow(2,35),++r,e[r++]<128)||(a+=(e[r]&127)*Math.pow(2,42),++r,e[r++]<128)))break e;return t&&(t[0]=r),a}function Pe(e){var t=new Uint8Array(7);t[0]=e&127;var r=1;e:if(e>127){if(t[r-1]|=128,t[r]=e>>7&127,++r,e<=16383||(t[r-1]|=128,t[r]=e>>14&127,++r,e<=2097151)||(t[r-1]|=128,t[r]=e>>21&127,++r,e<=268435455)||(t[r-1]|=128,t[r]=e/256>>>21&127,++r,e<=34359738367)||(t[r-1]|=128,t[r]=e/65536>>>21&127,++r,e<=4398046511103))break e;t[r-1]|=128,t[r]=e/16777216>>>21&127,++r}return t.slice(0,r)}function qe(e){var t=0,r=e[t]&127;e:if(e[t++]>=128){if(r|=(e[t]&127)<<7,e[t++]<128||(r|=(e[t]&127)<<14,e[t++]<128)||(r|=(e[t]&127)<<21,e[t++]<128))break e;r|=(e[t]&127)<<28}return r}function Ne(e){for(var t=[],r=[0];r[0]=128;);f=e.slice(c,r[0])}break;case 5:s=4,f=e.slice(r[0],r[0]+s),r[0]+=s;break;case 1:s=8,f=e.slice(r[0],r[0]+s),r[0]+=s;break;case 2:s=hn(e,r),f=e.slice(r[0],r[0]+s),r[0]+=s;break;case 3:case 4:default:throw new Error("PB Type ".concat(i," for Field ").concat(n," at offset ").concat(a))}var o={data:f,type:i};t[n]==null?t[n]=[o]:t[n].push(o)}return t}function vr(e){var t=[];return e.forEach(function(r,a){r.forEach(function(n){n.data&&(t.push(Pe(a*8+n.type)),n.type==2&&t.push(Pe(n.data.length)),t.push(n.data))})}),Wt(t)}function Si(e,t){return(e==null?void 0:e.map(function(r){return t(r.data)}))||[]}function Kr(e){for(var t,r=[],a=[0];a[0]>>0>0),r.push(s)}return r}function pa(e){var t=[];return e.forEach(function(r){var a=[];a[1]=[{data:Pe(r.id),type:0}],a[2]=[],r.merge!=null&&(a[3]=[{data:Pe(+!!r.merge),type:0}]);var n=[];r.messages.forEach(function(s){n.push(s.data),s.meta[3]=[{type:0,data:Pe(s.data.length)}],a[2].push({data:vr(s.meta),type:2})});var i=vr(a);t.push(Pe(i.length)),t.push(i),n.forEach(function(s){return t.push(s)})}),Wt(t)}function V_(e,t){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var r=[0],a=hn(t,r),n=[];r[0]>2;if(s<60)++s;else{var f=s-59;s=t[r[0]],f>1&&(s|=t[r[0]+1]<<8),f>2&&(s|=t[r[0]+2]<<16),f>3&&(s|=t[r[0]+3]<<24),s>>>=0,s++,r[0]+=f}n.push(t.slice(r[0],r[0]+s)),r[0]+=s;continue}else{var c=0,o=0;if(i==1?(o=(t[r[0]]>>2&7)+4,c=(t[r[0]++]&224)<<3,c|=t[r[0]++]):(o=(t[r[0]++]>>2)+1,i==2?(c=t[r[0]]|t[r[0]+1]<<8,r[0]+=2):(c=(t[r[0]]|t[r[0]+1]<<8|t[r[0]+2]<<16|t[r[0]+3]<<24)>>>0,r[0]+=4)),n=[Wt(n)],c==0)throw new Error("Invalid offset 0");if(c>n[0].length)throw new Error("Invalid offset beyond length");if(o>=c)for(n.push(n[0].slice(-c)),o-=c;o>=n[n.length-1].length;)n.push(n[n.length-1]),o-=n[n.length-1].length;n.push(n[0].slice(-c,-c+o))}}var l=Wt(n);if(l.length!=a)throw new Error("Unexpected length: ".concat(l.length," != ").concat(a));return l}function jr(e){for(var t=[],r=0;r>8&255]))):a<=16777216?(s+=4,t.push(new Uint8Array([248,a-1&255,a-1>>8&255,a-1>>16&255]))):a<=4294967296&&(s+=5,t.push(new Uint8Array([252,a-1&255,a-1>>8&255,a-1>>16&255,a-1>>>24&255]))),t.push(e.slice(r,r+a)),s+=a,n[0]=0,n[1]=s&255,n[2]=s>>8&255,n[3]=s>>16&255,r+=a}return Wt(t)}function X_(e,t,r,a){var n=ia(e),i=n.getUint32(4,!0),s=(a>1?12:8)+Ks(i&(a>1?3470:398))*4,f=-1,c=-1,o=NaN,l=new Date(2001,0,1);i&512&&(f=n.getUint32(s,!0),s+=4),s+=Ks(i&(a>1?12288:4096))*4,i&16&&(c=n.getUint32(s,!0),s+=4),i&32&&(o=n.getFloat64(s,!0),s+=8),i&64&&(l.setTime(l.getTime()+n.getFloat64(s,!0)*1e3),s+=8);var u;switch(e[2]){case 0:break;case 2:u={t:"n",v:o};break;case 3:u={t:"s",v:t[c]};break;case 5:u={t:"d",v:l};break;case 6:u={t:"b",v:o>0};break;case 7:u={t:"n",v:o/86400};break;case 8:u={t:"e",v:0};break;case 9:if(f>-1)u={t:"s",v:r[f]};else if(c>-1)u={t:"s",v:t[c]};else if(!isNaN(o))u={t:"n",v:o};else throw new Error("Unsupported cell type ".concat(e.slice(0,4)));break;default:throw new Error("Unsupported cell type ".concat(e.slice(0,4)))}return u}function G_(e,t,r){var a=ia(e),n=a.getUint32(8,!0),i=12,s=-1,f=-1,c=NaN,o=NaN,l=new Date(2001,0,1);n&1&&(c=W_(e,i),i+=16),n&2&&(o=a.getFloat64(i,!0),i+=8),n&4&&(l.setTime(l.getTime()+a.getFloat64(i,!0)*1e3),i+=8),n&8&&(f=a.getUint32(i,!0),i+=4),n&16&&(s=a.getUint32(i,!0),i+=4);var u;switch(e[1]){case 0:break;case 2:u={t:"n",v:c};break;case 3:u={t:"s",v:t[f]};break;case 5:u={t:"d",v:l};break;case 6:u={t:"b",v:o>0};break;case 7:u={t:"n",v:o/86400};break;case 8:u={t:"e",v:0};break;case 9:if(s>-1)u={t:"s",v:r[s]};else throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(n&31," : ").concat(e.slice(0,4)));break;case 10:u={t:"n",v:c};break;default:throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(n&31," : ").concat(e.slice(0,4)))}return u}function T0(e,t){var r=new Uint8Array(32),a=ia(r),n=12,i=0;switch(r[0]=5,e.t){case"n":r[1]=2,H_(r,n,e.v),i|=1,n+=16;break;case"b":r[1]=6,a.setFloat64(n,e.v?1:0,!0),i|=2,n+=8;break;case"s":if(t.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));r[1]=3,a.setUint32(n,t.indexOf(e.v),!0),i|=8,n+=4;break;default:throw"unsupported cell type "+e.t}return a.setUint32(8,i,!0),r.slice(0,n)}function S0(e,t){var r=new Uint8Array(32),a=ia(r),n=12,i=0;switch(r[0]=3,e.t){case"n":r[2]=2,a.setFloat64(n,e.v,!0),i|=32,n+=8;break;case"b":r[2]=6,a.setFloat64(n,e.v?1:0,!0),i|=32,n+=8;break;case"s":if(t.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));r[2]=3,a.setUint32(n,t.indexOf(e.v),!0),i|=16,n+=4;break;default:throw"unsupported cell type "+e.t}return a.setUint32(4,i,!0),r.slice(0,n)}function z_(e,t,r){switch(e[0]){case 0:case 1:case 2:case 3:return X_(e,t,r,e[0]);case 5:return G_(e,t,r);default:throw new Error("Unsupported payload version ".concat(e[0]))}}function Er(e){var t=Ne(e);return hn(t[1][0].data)}function js(e,t){var r=Ne(t.data),a=qe(r[1][0].data),n=r[3],i=[];return(n||[]).forEach(function(s){var f=Ne(s.data),c=qe(f[1][0].data)>>>0;switch(a){case 1:i[c]=W0(f[3][0].data);break;case 8:{var o=e[Er(f[9][0].data)][0],l=Ne(o.data),u=e[Er(l[1][0].data)][0],h=qe(u.meta[1][0].data);if(h!=2001)throw new Error("2000 unexpected reference to ".concat(h));var x=Ne(u.data);i[c]=x[3].map(function(p){return W0(p.data)}).join("")}break}}),i}function $_(e,t){var r,a,n,i,s,f,c,o,l,u,h,x,p,d,v=Ne(e),w=qe(v[1][0].data)>>>0,k=qe(v[2][0].data)>>>0,m=((a=(r=v[8])==null?void 0:r[0])==null?void 0:a.data)&&qe(v[8][0].data)>0||!1,y,I;if((i=(n=v[7])==null?void 0:n[0])!=null&&i.data&&t!=0)y=(f=(s=v[7])==null?void 0:s[0])==null?void 0:f.data,I=(o=(c=v[6])==null?void 0:c[0])==null?void 0:o.data;else if((u=(l=v[4])==null?void 0:l[0])!=null&&u.data&&t!=1)y=(x=(h=v[4])==null?void 0:h[0])==null?void 0:x.data,I=(d=(p=v[3])==null?void 0:p[0])==null?void 0:d.data;else throw"NUMBERS Tile missing ".concat(t," cell storage");for(var S=m?4:1,_=ia(y),N=[],O=0;O=1&&(M[N[N.length-1][0]]=I.subarray(N[N.length-1][1]*S)),{R:w,cells:M}}function K_(e,t){var r,a=Ne(t.data),n=(r=a==null?void 0:a[7])!=null&&r[0]?qe(a[7][0].data)>>>0>0?1:0:-1,i=Si(a[5],function(s){return $_(s,n)});return{nrows:qe(a[4][0].data)>>>0,data:i.reduce(function(s,f){return s[f.R]||(s[f.R]=[]),f.cells.forEach(function(c,o){if(s[f.R][o])throw new Error("Duplicate cell r=".concat(f.R," c=").concat(o));s[f.R][o]=c}),s},[])}}function j_(e,t,r){var a,n=Ne(t.data),i={s:{r:0,c:0},e:{r:0,c:0}};if(i.e.r=(qe(n[6][0].data)>>>0)-1,i.e.r<0)throw new Error("Invalid row varint ".concat(n[6][0].data));if(i.e.c=(qe(n[7][0].data)>>>0)-1,i.e.c<0)throw new Error("Invalid col varint ".concat(n[7][0].data));r["!ref"]=Te(i);var s=Ne(n[4][0].data),f=js(e,e[Er(s[4][0].data)][0]),c=(a=s[17])!=null&&a[0]?js(e,e[Er(s[17][0].data)][0]):[],o=Ne(s[3][0].data),l=0;o[1].forEach(function(u){var h=Ne(u.data),x=e[Er(h[2][0].data)][0],p=qe(x.meta[1][0].data);if(p!=6002)throw new Error("6001 unexpected reference to ".concat(p));var d=K_(e,x);d.data.forEach(function(v,w){v.forEach(function(k,m){var y=ge({r:l+w,c:m}),I=z_(k,f,c);I&&(r[y]=I)})}),l+=d.nrows})}function Y_(e,t){var r=Ne(t.data),a={"!ref":"A1"},n=e[Er(r[2][0].data)],i=qe(n[0].meta[1][0].data);if(i!=6001)throw new Error("6000 unexpected reference to ".concat(i));return j_(e,n[0],a),a}function J_(e,t){var r,a=Ne(t.data),n={name:(r=a[1])!=null&&r[0]?W0(a[1][0].data):"",sheets:[]},i=Si(a[2],Er);return i.forEach(function(s){e[s].forEach(function(f){var c=qe(f.meta[1][0].data);c==6e3&&n.sheets.push(Y_(e,f))})}),n}function q_(e,t){var r=Di(),a=Ne(t.data),n=Si(a[1],Er);if(n.forEach(function(i){e[i].forEach(function(s){var f=qe(s.meta[1][0].data);if(f==2){var c=J_(e,s);c.sheets.forEach(function(o,l){Oi(r,o,l==0?c.name:c.name+"_"+l,!0)})}})}),r.SheetNames.length==0)throw new Error("Empty NUMBERS file");return r}function F0(e){var t,r,a,n,i={},s=[];if(e.FullPaths.forEach(function(c){if(c.match(/\.iwpv2/))throw new Error("Unsupported password protection")}),e.FileIndex.forEach(function(c){if(c.name.match(/\.iwa$/)){var o;try{o=jr(c.content)}catch(u){return console.log("?? "+c.content.length+" "+(u.message||u))}var l;try{l=Kr(o)}catch(u){return console.log("## "+(u.message||u))}l.forEach(function(u){i[u.id]=u.messages,s.push(u.id)})}}),!s.length)throw new Error("File has no messages");var f=((n=(a=(r=(t=i==null?void 0:i[1])==null?void 0:t[0])==null?void 0:r.meta)==null?void 0:a[1])==null?void 0:n[0].data)&&qe(i[1][0].meta[1][0].data)==1&&i[1][0];if(f||s.forEach(function(c){i[c].forEach(function(o){var l=qe(o.meta[1][0].data)>>>0;if(l==1)if(!f)f=o;else throw new Error("Document has multiple roots")})}),!f)throw new Error("Cannot find Document root");return q_(i,f)}function Z_(e,t,r){var a,n,i,s;if(!((a=e[6])!=null&&a[0])||!((n=e[7])!=null&&n[0]))throw"Mutation only works on post-BNC storages!";var f=((s=(i=e[8])==null?void 0:i[0])==null?void 0:s.data)&&qe(e[8][0].data)>0||!1;if(f)throw"Math only works with normal offsets";for(var c=0,o=ia(e[7][0].data),l=0,u=[],h=ia(e[4][0].data),x=0,p=[],d=0;d1&&console.error("The Numbers writer currently writes only the first table");var a=Pr(r["!ref"]);a.s.r=a.s.c=0;var n=!1;a.e.c>9&&(n=!0,a.e.c=9),a.e.r>49&&(n=!0,a.e.r=49),n&&console.error("The Numbers writer is currently limited to ".concat(Te(a)));var i=Zn(r,{range:a,header:1}),s=["~Sh33tJ5~"];i.forEach(function(B){return B.forEach(function(R){typeof R=="string"&&s.push(R)})});var f={},c=[],o=ve.read(t.numbers,{type:"base64"});o.FileIndex.map(function(B,R){return[B,o.FullPaths[R]]}).forEach(function(B){var R=B[0],P=B[1];if(R.type==2&&R.name.match(/\.iwa/)){var K=R.content,te=jr(K),ne=Kr(te);ne.forEach(function(Q){c.push(Q.id),f[Q.id]={deps:[],location:P,type:qe(Q.messages[0].meta[1][0].data)}})}}),c.sort(function(B,R){return B-R});var l=c.filter(function(B){return B>1}).map(function(B){return[B,Pe(B)]});o.FileIndex.map(function(B,R){return[B,o.FullPaths[R]]}).forEach(function(B){var R=B[0];if(B[1],!!R.name.match(/\.iwa/)){var P=Kr(jr(R.content));P.forEach(function(K){K.messages.forEach(function(te){l.forEach(function(ne){K.messages.some(function(Q){return qe(Q.meta[1][0].data)!=11006&&U_(Q.data,ne[1])})&&f[ne[0]].deps.push(K.id)})})})}});for(var u=ve.find(o,f[1].location),h=Kr(jr(u.content)),x,p=0;p-1?"sheet":e==be.CS?"chart":e==be.DS?"dialog":e==be.MS?"macro":e&&e.length?e:"sheet"}function rw(e,t){if(!e)return 0;try{e=t.map(function(a){return a.id||(a.id=a.strRelID),[a.name,e["!id"][a.id].Target,ew(e["!id"][a.id].Type)]})}catch{return null}return!e||e.length===0?null:e}function tw(e,t,r,a,n,i,s,f,c,o,l,u){try{i[a]=za(Wr(e,r,!0),t);var h=ir(e,t),x;switch(f){case"sheet":x=Sg(h,t,n,c,i[a],o,l,u);break;case"chart":if(x=Fg(h,t,n,c,i[a],o,l,u),!x||!x["!drawel"])break;var p=Ha(x["!drawel"].Target,t),d=sn(p),v=up(Wr(e,p,!0),za(Wr(e,d,!0),p)),w=Ha(v,p),k=sn(w);x=Z2(Wr(e,w,!0),w,c,za(Wr(e,k,!0),w),o,x);break;case"macro":x=yg(h,t,n,c,i[a],o,l,u);break;case"dialog":x=Ag(h,t,n,c,i[a],o,l,u);break;default:throw new Error("Unrecognized sheet type "+f)}s[a]=x;var m=[];i&&i[a]&&Ze(i[a]).forEach(function(y){var I="";if(i[a][y].Type==be.CMNT){I=Ha(i[a][y].Target,t);var S=Og(ir(e,I,!0),I,c);if(!S||!S.length)return;Rs(x,S,!1)}i[a][y].Type==be.TCMNT&&(I=Ha(i[a][y].Target,t),m=m.concat(xp(ir(e,I,!0),c)))}),m&&m.length&&Rs(x,m,!0,c.people||[])}catch(y){if(c.WTF)throw y}}function zr(e){return e.charAt(0)=="/"?e.slice(1):e}function aw(e,t){if(ba(),t=t||{},Fi(t),Yr(e,"META-INF/manifest.xml")||Yr(e,"objectdata.xml"))return Gs(e,t);if(Yr(e,"Index/Document.iwa")){if(typeof Uint8Array>"u")throw new Error("NUMBERS file parsing requires Uint8Array support");if(typeof F0<"u"){if(e.FileIndex)return F0(e);var r=ve.utils.cfb_new();return es(e).forEach(function(oe){Se(r,oe,Cf(e,oe))}),F0(r)}throw new Error("Unsupported NUMBERS file")}if(!Yr(e,"[Content_Types].xml"))throw Yr(e,"index.xml.gz")?new Error("Unsupported NUMBERS 08 file"):Yr(e,"index.xml")?new Error("Unsupported NUMBERS 09 file"):new Error("Unsupported ZIP file");var a=es(e),n=fh(Wr(e,"[Content_Types].xml")),i=!1,s,f;if(n.workbooks.length===0&&(f="xl/workbook.xml",ir(e,f,!0)&&n.workbooks.push(f)),n.workbooks.length===0){if(f="xl/workbook.bin",!ir(e,f,!0))throw new Error("Could not find workbook");n.workbooks.push(f),i=!0}n.workbooks[0].slice(-3)=="bin"&&(i=!0);var c={},o={};if(!t.bookSheets&&!t.bookProps){if($a=[],n.sst)try{$a=Dg(ir(e,zr(n.sst)),n.sst,t)}catch(oe){if(t.WTF)throw oe}t.cellStyles&&n.themes.length&&(c=bg(Wr(e,n.themes[0].replace(/^\//,""),!0)||"",n.themes[0],t)),n.style&&(o=Cg(ir(e,zr(n.style)),n.style,c,t))}n.links.map(function(oe){try{var ee=za(Wr(e,sn(zr(oe))),oe);return Rg(ir(e,zr(oe)),ee,oe,t)}catch{}});var l=Tg(ir(e,zr(n.workbooks[0])),n.workbooks[0],t),u={},h="";n.coreprops.length&&(h=ir(e,zr(n.coreprops[0]),!0),h&&(u=tc(h)),n.extprops.length!==0&&(h=ir(e,zr(n.extprops[0]),!0),h&&dh(h,u,t)));var x={};(!t.bookSheets||t.bookProps)&&n.custprops.length!==0&&(h=Wr(e,zr(n.custprops[0]),!0),h&&(x=vh(h,t)));var p={};if((t.bookSheets||t.bookProps)&&(l.Sheets?s=l.Sheets.map(function(ee){return ee.name}):u.Worksheets&&u.SheetNames.length>0&&(s=u.SheetNames),t.bookProps&&(p.Props=u,p.Custprops=x),t.bookSheets&&typeof s<"u"&&(p.SheetNames=s),t.bookSheets?p.SheetNames:t.bookProps))return p;s={};var d={};t.bookDeps&&n.calcchain&&(d=Ig(ir(e,zr(n.calcchain)),n.calcchain));var v=0,w={},k,m;{var y=l.Sheets;u.Worksheets=y.length,u.SheetNames=[];for(var I=0;I!=y.length;++I)u.SheetNames[I]=y[I].name}var S=i?"bin":"xml",_=n.workbooks[0].lastIndexOf("/"),N=(n.workbooks[0].slice(0,_+1)+"_rels/"+n.workbooks[0].slice(_+1)+".rels").replace(/^\//,"");Yr(e,N)||(N="xl/_rels/workbook."+S+".rels");var O=za(Wr(e,N,!0),N.replace(/_rels.*/,"s5s"));(n.metadata||[]).length>=1&&(t.xlmeta=Ng(ir(e,zr(n.metadata[0])),n.metadata[0],t)),(n.people||[]).length>=1&&(t.people=pp(ir(e,zr(n.people[0])),t)),O&&(O=rw(O,l.Sheets));var G=ir(e,"xl/worksheets/sheet.xml",!0)?1:0;e:for(v=0;v!=u.Worksheets;++v){var M="sheet";if(O&&O[v]?(k="xl/"+O[v][1].replace(/[\/]?xl\//,""),Yr(e,k)||(k=O[v][1]),Yr(e,k)||(k=N.replace(/_rels\/.*$/,"")+O[v][1]),M=O[v][2]):(k="xl/worksheets/sheet"+(v+1-G)+"."+S,k=k.replace(/sheet0\./,"sheet.")),m=k.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels"),t&&t.sheets!=null)switch(typeof t.sheets){case"number":if(v!=t.sheets)continue e;break;case"string":if(u.SheetNames[v].toLowerCase()!=t.sheets.toLowerCase())continue e;break;default:if(Array.isArray&&Array.isArray(t.sheets)){for(var L=!1,J=0;J!=t.sheets.length;++J)typeof t.sheets[J]=="number"&&t.sheets[J]==v&&(L=1),typeof t.sheets[J]=="string"&&t.sheets[J].toLowerCase()==u.SheetNames[v].toLowerCase()&&(L=1);if(!L)continue e}}tw(e,k,m,u.SheetNames[v],v,w,s,M,t,l,c,o)}return p={Directory:n,Workbook:l,Props:u,Custprops:x,Deps:d,Sheets:s,SheetNames:u.SheetNames,Strings:$a,Styles:o,Themes:c,SSF:ze(me)},t&&t.bookFiles&&(e.files?(p.keys=a,p.files=e.files):(p.keys=[],p.files={},e.FullPaths.forEach(function(oe,ee){oe=oe.replace(/^Root Entry[\/]/,""),p.keys.push(oe),p.files[oe]=e.FileIndex[ee]}))),t&&t.bookVBA&&(n.vba.length>0?p.vbaraw=ir(e,zr(n.vba[0]),!0):n.defaults&&n.defaults.bin===Tp&&(p.vbaraw=ir(e,"xl/vbaProject.bin",!0))),p}function nw(e,t){var r=t||{},a="Workbook",n=ve.find(e,a);try{if(a="/!DataSpaces/Version",n=ve.find(e,a),!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);if(Nx(n.content),a="/!DataSpaces/DataSpaceMap",n=ve.find(e,a),!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);var i=Lx(n.content);if(i.length!==1||i[0].comps.length!==1||i[0].comps[0].t!==0||i[0].name!=="StrongEncryptionDataSpace"||i[0].comps[0].v!=="EncryptedPackage")throw new Error("ECMA-376 Encrypted file bad "+a);if(a="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace",n=ve.find(e,a),!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);var s=Bx(n.content);if(s.length!=1||s[0]!="StrongEncryptionTransform")throw new Error("ECMA-376 Encrypted file bad "+a);if(a="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary",n=ve.find(e,a),!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);Ux(n.content)}catch{}if(a="/EncryptionInfo",n=ve.find(e,a),!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);var f=Wx(n.content);if(a="/EncryptedPackage",n=ve.find(e,a),!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);if(f[0]==4&&typeof decrypt_agile<"u")return decrypt_agile(f[1],n.content,r.password||"",r);if(f[0]==2&&typeof decrypt_std76<"u")return decrypt_std76(f[1],n.content,r.password||"",r);throw new Error("File is password-protected")}function iw(e,t){return t.bookType=="ods"?xo(e,t):t.bookType=="numbers"?Q_(e,t):t.bookType=="xlsb"?sw(e,t):fw(e,t)}function sw(e,t){wa=1024,e&&!e.SSF&&(e.SSF=ze(me)),e&&e.SSF&&(ba(),dn(e.SSF),t.revssf=a0(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,Ka?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r=t.bookType=="xlsb"?"bin":"xml",a=Hc.indexOf(t.bookType)>-1,n=ui();yi(t=t||{});var i=q0(),s="",f=0;if(t.cellXfs=[],Xt(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),s="docProps/core.xml",Se(i,s,ac(e.Props,t)),n.coreprops.push(s),Le(t.rels,2,s,be.CORE_PROPS),s="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var c=[],o=0;o0&&(s="docProps/custom.xml",Se(i,s,fc(e.Custprops)),n.custprops.push(s),Le(t.rels,4,s,be.CUST_PROPS)),f=1;f<=e.SheetNames.length;++f){var l={"!id":{}},u=e.Sheets[e.SheetNames[f-1]],h=(u||{})["!type"]||"sheet";switch(h){case"chart":default:s="xl/worksheets/sheet"+f+"."+r,Se(i,s,Lg(f-1,s,t,e,l)),n.sheets.push(s),Le(t.wbrels,-1,"worksheets/sheet"+f+"."+r,be.WS[0])}if(u){var x=u["!comments"],p=!1,d="";x&&x.length>0&&(d="xl/comments"+f+"."+r,Se(i,d,Ug(x,d)),n.comments.push(d),Le(l,-1,"../comments"+f+"."+r,be.CMNT),p=!0),u["!legacy"]&&p&&Se(i,"xl/drawings/vmlDrawing"+f+".vml",Uc(f,u["!comments"])),delete u["!comments"],delete u["!legacy"]}l["!id"].rId1&&Se(i,sn(s),Ta(l))}return t.Strings!=null&&t.Strings.length>0&&(s="xl/sharedStrings."+r,Se(i,s,Mg(t.Strings,s,t)),n.strs.push(s),Le(t.wbrels,-1,"sharedStrings."+r,be.SST)),s="xl/workbook."+r,Se(i,s,Pg(e,s)),n.workbooks.push(s),Le(t.rels,1,s,be.WB),s="xl/theme/theme1.xml",Se(i,s,mi(e.Themes,t)),n.themes.push(s),Le(t.wbrels,-1,"theme/theme1.xml",be.THEME),s="xl/styles."+r,Se(i,s,Bg(e,s,t)),n.styles.push(s),Le(t.wbrels,-1,"styles."+r,be.STY),e.vbaraw&&a&&(s="xl/vbaProject.bin",Se(i,s,e.vbaraw),n.vba.push(s),Le(t.wbrels,-1,"vbaProject.bin",be.VBA)),s="xl/metadata."+r,Se(i,s,Wg(s)),n.metadata.push(s),Le(t.wbrels,-1,"metadata."+r,be.XLMETA),Se(i,"[Content_Types].xml",ec(n,t)),Se(i,"_rels/.rels",Ta(t.rels)),Se(i,"xl/_rels/workbook."+r+".rels",Ta(t.wbrels)),delete t.revssf,delete t.ssf,i}function fw(e,t){wa=1024,e&&!e.SSF&&(e.SSF=ze(me)),e&&e.SSF&&(ba(),dn(e.SSF),t.revssf=a0(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,Ka?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r="xml",a=Hc.indexOf(t.bookType)>-1,n=ui();yi(t=t||{});var i=q0(),s="",f=0;if(t.cellXfs=[],Xt(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),s="docProps/core.xml",Se(i,s,ac(e.Props,t)),n.coreprops.push(s),Le(t.rels,2,s,be.CORE_PROPS),s="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var c=[],o=0;o0&&(s="docProps/custom.xml",Se(i,s,fc(e.Custprops)),n.custprops.push(s),Le(t.rels,4,s,be.CUST_PROPS));var l=["SheetJ5"];for(t.tcid=0,f=1;f<=e.SheetNames.length;++f){var u={"!id":{}},h=e.Sheets[e.SheetNames[f-1]],x=(h||{})["!type"]||"sheet";switch(x){case"chart":default:s="xl/worksheets/sheet"+f+"."+r,Se(i,s,Zc(f-1,t,e,u)),n.sheets.push(s),Le(t.wbrels,-1,"worksheets/sheet"+f+"."+r,be.WS[0])}if(h){var p=h["!comments"],d=!1,v="";if(p&&p.length>0){var w=!1;p.forEach(function(k){k[1].forEach(function(m){m.T==!0&&(w=!0)})}),w&&(v="xl/threadedComments/threadedComment"+f+"."+r,Se(i,v,dp(p,l,t)),n.threadedcomments.push(v),Le(u,-1,"../threadedComments/threadedComment"+f+"."+r,be.TCMNT)),v="xl/comments"+f+"."+r,Se(i,v,Wc(p)),n.comments.push(v),Le(u,-1,"../comments"+f+"."+r,be.CMNT),d=!0}h["!legacy"]&&d&&Se(i,"xl/drawings/vmlDrawing"+f+".vml",Uc(f,h["!comments"])),delete h["!comments"],delete h["!legacy"]}u["!id"].rId1&&Se(i,sn(s),Ta(u))}return t.Strings!=null&&t.Strings.length>0&&(s="xl/sharedStrings."+r,Se(i,s,Ac(t.Strings,t)),n.strs.push(s),Le(t.wbrels,-1,"sharedStrings."+r,be.SST)),s="xl/workbook."+r,Se(i,s,ao(e)),n.workbooks.push(s),Le(t.rels,1,s,be.WB),s="xl/theme/theme1.xml",Se(i,s,mi(e.Themes,t)),n.themes.push(s),Le(t.wbrels,-1,"theme/theme1.xml",be.THEME),s="xl/styles."+r,Se(i,s,Pc(e,t)),n.styles.push(s),Le(t.wbrels,-1,"styles."+r,be.STY),e.vbaraw&&a&&(s="xl/vbaProject.bin",Se(i,s,e.vbaraw),n.vba.push(s),Le(t.wbrels,-1,"vbaProject.bin",be.VBA)),s="xl/metadata."+r,Se(i,s,Mc()),n.metadata.push(s),Le(t.wbrels,-1,"metadata."+r,be.XLMETA),l.length>1&&(s="xl/persons/person.xml",Se(i,s,vp(l)),n.people.push(s),Le(t.wbrels,-1,"persons/person.xml",be.PEOPLE)),Se(i,"[Content_Types].xml",ec(n,t)),Se(i,"_rels/.rels",Ta(t.rels)),Se(i,"xl/_rels/workbook."+r+".rels",Ta(t.wbrels)),delete t.revssf,delete t.ssf,i}function Ai(e,t){var r="";switch((t||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":r=Hr(e.slice(0,12));break;case"binary":r=e;break;case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];default:throw new Error("Unrecognized type "+(t&&t.type||"undefined"))}return[r.charCodeAt(0),r.charCodeAt(1),r.charCodeAt(2),r.charCodeAt(3),r.charCodeAt(4),r.charCodeAt(5),r.charCodeAt(6),r.charCodeAt(7)]}function cw(e,t){return ve.find(e,"EncryptedPackage")?nw(e,t):fo(e,t)}function ow(e,t){var r,a=e,n=t||{};return n.type||(n.type=Ae&&Buffer.isBuffer(e)?"buffer":"base64"),r=bf(a,n),aw(r,n)}function vo(e,t){var r=0;e:for(;r=2&&n[3]===0||n[2]===0&&(n[3]===8||n[3]===9)))return Jt.to_workbook(a,r);break;case 3:case 131:case 139:case 140:return B0.to_workbook(a,r);case 123:if(n[1]===92&&n[2]===114&&n[3]===116)return Ic.to_workbook(a,r);break;case 10:case 13:case 32:return lw(a,r);case 137:if(n[1]===80&&n[2]===78&&n[3]===71)throw new Error("PNG Image File is not a spreadsheet");break}return vx.indexOf(n[0])>-1&&n[2]<=12&&n[3]<=31?B0.to_workbook(a,r):y0(e,a,r,i)}function mo(e,t){switch(t.type){case"base64":case"binary":break;case"buffer":case"array":t.type="";break;case"file":return pn(t.file,ve.write(e,{type:Ae?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");default:throw new Error("Unrecognized type "+t.type)}return ve.write(e,t)}function xw(e,t){var r=ze(t||{}),a=iw(e,r);return dw(a,r)}function dw(e,t){var r={},a=Ae?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(t.compression&&(r.compression="DEFLATE"),t.password)r.type=a;else switch(t.type){case"base64":r.type="base64";break;case"binary":r.type="string";break;case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");case"buffer":case"file":r.type=a;break;default:throw new Error("Unrecognized type "+t.type)}var n=e.FullPaths?ve.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[r.type]||r.type,compression:!!t.compression}):e.generate(r);if(typeof Deno<"u"&&typeof n=="string"){if(t.type=="binary"||t.type=="base64")return n;n=new Uint8Array(r0(n))}return t.password&&typeof encrypt_agile<"u"?mo(encrypt_agile(n,t.password),t):t.type==="file"?pn(t.file,n):t.type=="string"?Ue(n):n}function pw(e,t){var r=t||{},a=h_(e,r);return mo(a,r)}function ht(e,t,r){r||(r="");var a=r+e;switch(t.type){case"base64":return en(xt(a));case"binary":return xt(a);case"string":return e;case"file":return pn(t.file,a,"utf8");case"buffer":return Ae?Ft(a,"utf8"):typeof TextEncoder<"u"?new TextEncoder().encode(a):ht(a,{type:"binary"}).split("").map(function(n){return n.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function vw(e,t){switch(t.type){case"base64":return en(e);case"binary":return e;case"string":return e;case"file":return pn(t.file,e,"binary");case"buffer":return Ae?Ft(e,"binary"):e.split("").map(function(r){return r.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function Pn(e,t){switch(t.type){case"string":case"base64":case"binary":for(var r="",a=0;a0&&(n=0);var u=tr(c.s.r),h=[],x=[],p=0,d=0,v=Array.isArray(e),w=c.s.r,k=0,m={};v&&!e[w]&&(e[w]=[]);var y=o.skipHidden&&e["!cols"]||[],I=o.skipHidden&&e["!rows"]||[];for(k=c.s.c;k<=c.e.c;++k)if(!(y[k]||{}).hidden)switch(h[k]=je(k),r=v?e[w][k]:e[h[k]+u],a){case 1:i[k]=k-c.s.c;break;case 2:i[k]=h[k];break;case 3:i[k]=o.header[k-c.s.c];break;default:if(r==null&&(r={w:"__EMPTY",t:"s"}),f=s=St(r,null,o),d=m[s]||0,!d)m[s]=1;else{do f=s+"_"+d++;while(m[f]);m[s]=d,m[f]=1}i[k]=f}for(w=c.s.r+n;w<=c.e.r;++w)if(!(I[w]||{}).hidden){var S=gw(e,c,w,h,a,i,v,o);(S.isempty===!1||(a===1?o.blankrows!==!1:o.blankrows))&&(x[p++]=S.row)}return x.length=p,x}var Js=/"/g;function _w(e,t,r,a,n,i,s,f){for(var c=!0,o=[],l="",u=tr(r),h=t.s.c;h<=t.e.c;++h)if(a[h]){var x=f.dense?(e[r]||[])[h]:e[a[h]+u];if(x==null)l="";else if(x.v!=null){c=!1,l=""+(f.rawNumbers&&x.t=="n"?x.v:St(x,null,f));for(var p=0,d=0;p!==l.length;++p)if((d=l.charCodeAt(p))===n||d===i||d===34||f.forceQuotes){l='"'+l.replace(Js,'""')+'"';break}l=="ID"&&(l='"ID"')}else x.f!=null&&!x.F?(c=!1,l="="+x.f,l.indexOf(",")>=0&&(l='"'+l.replace(Js,'""')+'"')):l="";o.push(l)}return f.blankrows===!1&&c?null:o.join(s)}function bi(e,t){var r=[],a=t??{};if(e==null||e["!ref"]==null)return"";var n=Re(e["!ref"]),i=a.FS!==void 0?a.FS:",",s=i.charCodeAt(0),f=a.RS!==void 0?a.RS:` +`,c=f.charCodeAt(0),o=new RegExp((i=="|"?"\\|":i)+"+$"),l="",u=[];a.dense=Array.isArray(e);for(var h=a.skipHidden&&e["!cols"]||[],x=a.skipHidden&&e["!rows"]||[],p=n.s.c;p<=n.e.c;++p)(h[p]||{}).hidden||(u[p]=je(p));for(var d=0,v=n.s.r;v<=n.e.r;++v)(x[v]||{}).hidden||(l=_w(e,n,v,u,s,c,i,a),l!=null&&(a.strip&&(l=l.replace(o,"")),(l||a.blankrows!==!1)&&r.push((d++?f:"")+l)));return delete a.dense,r.join("")}function go(e,t){t||(t={}),t.FS=" ",t.RS=` +`;var r=bi(e,t);return r}function ww(e){var t="",r,a="";if(e==null||e["!ref"]==null)return[];var n=Re(e["!ref"]),i="",s=[],f,c=[],o=Array.isArray(e);for(f=n.s.c;f<=n.e.c;++f)s[f]=je(f);for(var l=n.s.r;l<=n.e.r;++l)for(i=tr(l),f=n.s.c;f<=n.e.c;++f)if(t=s[f]+i,r=o?(e[l]||[])[f]:e[t],a="",r!==void 0){if(r.F!=null){if(t=r.F,!r.f)continue;a=r.f,t.indexOf(":")==-1&&(t=t+":"+t)}if(r.f!=null)a=r.f;else{if(r.t=="z")continue;if(r.t=="n"&&r.v!=null)a=""+r.v;else if(r.t=="b")a=r.v?"TRUE":"FALSE";else if(r.w!==void 0)a="'"+r.w;else{if(r.v===void 0)continue;r.t=="s"?a="'"+r.v:a=""+r.v}}c[c.length]=t+"="+a}return c}function _o(e,t,r){var a=r||{},n=+!a.skipHeader,i=e||{},s=0,f=0;if(i&&a.origin!=null)if(typeof a.origin=="number")s=a.origin;else{var c=typeof a.origin=="string"?Ye(a.origin):a.origin;s=c.r,f=c.c}var o,l={s:{c:0,r:0},e:{c:f,r:s+t.length-1+n}};if(i["!ref"]){var u=Re(i["!ref"]);l.e.c=Math.max(l.e.c,u.e.c),l.e.r=Math.max(l.e.r,u.e.r),s==-1&&(s=u.e.r+1,l.e.r=s+t.length-1+n)}else s==-1&&(s=0,l.e.r=t.length-1+n);var h=a.header||[],x=0;t.forEach(function(d,v){Ze(d).forEach(function(w){(x=h.indexOf(w))==-1&&(h[x=h.length]=w);var k=d[w],m="z",y="",I=ge({c:f+x,r:s+v+n});o=xn(i,I),k&&typeof k=="object"&&!(k instanceof Date)?i[I]=k:(typeof k=="number"?m="n":typeof k=="boolean"?m="b":typeof k=="string"?m="s":k instanceof Date?(m="d",a.cellDates||(m="n",k=ur(k)),y=a.dateNF||me[14]):k===null&&a.nullError&&(m="e",k=0),o?(o.t=m,o.v=k,delete o.w,delete o.R,y&&(o.z=y)):i[I]=o={t:m,v:k},y&&(o.z=y))})}),l.e.c=Math.max(l.e.c,f+h.length-1);var p=tr(s);if(n)for(x=0;x=0&&e.SheetNames.length>t)return t;throw new Error("Cannot find sheet # "+t)}else if(typeof t=="string"){var r=e.SheetNames.indexOf(t);if(r>-1)return r;throw new Error("Cannot find sheet name |"+t+"|")}else throw new Error("Cannot find sheet |"+t+"|")}function Di(){return{SheetNames:[],Sheets:{}}}function Oi(e,t,r,a){var n=1;if(!r)for(;n<=65535&&e.SheetNames.indexOf(r="Sheet"+n)!=-1;++n,r=void 0);if(!r||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(a&&e.SheetNames.indexOf(r)>=0){var i=r.match(/(^.*?)(\d+)$/);n=i&&+i[2]||0;var s=i&&i[1]||r;for(++n;n<=65535&&e.SheetNames.indexOf(r=s+n)!=-1;++n);}if(to(r),e.SheetNames.indexOf(r)>=0)throw new Error("Worksheet with name |"+r+"| already exists!");return e.SheetNames.push(r),e.Sheets[r]=t,r}function Tw(e,t,r){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var a=Ew(e,t);switch(e.Workbook.Sheets[a]||(e.Workbook.Sheets[a]={}),r){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+r)}e.Workbook.Sheets[a].Hidden=r}function Sw(e,t){return e.z=t,e}function wo(e,t,r){return t?(e.l={Target:t},r&&(e.l.Tooltip=r)):delete e.l,e}function Fw(e,t,r){return wo(e,"#"+t,r)}function yw(e,t,r){e.c||(e.c=[]),e.c.push({t,a:r||"SheetJS"})}function Aw(e,t,r,a){for(var n=typeof t!="string"?t:Re(t),i=typeof t=="string"?t:Te(t),s=n.s.r;s<=n.e.r;++s)for(var f=n.s.c;f<=n.e.c;++f){var c=xn(e,s,f);c.t="n",c.F=i,delete c.v,s==n.s.r&&f==n.s.c&&(c.f=r,a&&(c.D=!0))}return e}var H0={encode_col:je,encode_row:tr,encode_cell:ge,encode_range:Te,decode_col:ii,decode_row:ni,split_cell:Mu,decode_cell:Ye,decode_range:Pr,format_cell:St,sheet_add_aoa:Kf,sheet_add_json:_o,sheet_add_dom:lo,aoa_to_sheet:Da,json_to_sheet:kw,table_to_sheet:uo,table_to_book:N_,sheet_to_csv:bi,sheet_to_txt:go,sheet_to_json:Zn,sheet_to_html:oo,sheet_to_formulae:ww,sheet_to_row_object_array:Zn,sheet_get_cell:xn,book_new:Di,book_append_sheet:Oi,book_set_sheet_visibility:Tw,cell_set_number_format:Sw,cell_set_hyperlink:wo,cell_set_internal_link:Fw,cell_add_comment:yw,sheet_set_array_formula:Aw,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};class Cw{constructor(){u0(this,"SheetNames",[]);u0(this,"Sheets",{})}}function bw(e,t){return t&&(e+=1462),(Date.parse(e)-new Date(Date.UTC(1899,11,30)).getTime())/(24*60*60*1e3)}function Dw(e){const t={},r={s:{c:1e7,r:1e7},e:{c:0,r:0}};for(let a=0;a!=e.length;++a)for(let n=0;n!=e[a].length;++n){r.s.r>a&&(r.s.r=a),r.s.c>n&&(r.s.c=n),r.e.r-1;u--)r.unshift(e[u]);const f="SheetJS",c=new Cw,o=Dw(r);if(n.length>0&&(o["!merges"]||(o["!merges"]=[]),n.forEach(u=>{o["!merges"].push(H0.decode_range(u))})),i){const u=r.map(x=>x.map(p=>p==null?{wch:10}:p.toString().charCodeAt(0)>255?{wch:p.toString().length*2}:{wch:p.toString().length})),h=u[0];for(let x=1;x({exportData2Excel:()=>{const{columns:n,exportFormatter:i,exportFileName:s,exportBookType:f,exportAutoWidth:c}=e,{getColumnKey:o}=r,{tableData:l}=t,u=n.filter(h=>{const x=o(h);return x&&!cf.includes(x)});if(i){const{header:h,data:x}=i(u,l.value);if(A0(h)||A0(x))return;qs({header:h,data:x,filename:s,bookType:f,autoWidth:c})}else qs({header:u.map(h=>h.title),data:l.value.map(h=>u.map(x=>C0(h,o(x)))),filename:s,bookType:f,autoWidth:c})}});function Rw({tableState:e,slots:t,tableMethods:r}){const{getProps:a,loadingRef:n}=e,{getColumnKey:i,getQueryFormRef:s}=r,f=cr(()=>{const{formProps:u}=re(a),{submitButtonOptions:h}=u||{};return{showAdvancedButton:!0,layout:"horizontal",labelWidth:100,...u,submitButtonOptions:{loading:re(n),...h},compact:!0}}),c=cr(()=>{const u=Object.keys(Qa);return re(a).columns.filter(h=>{const x=i(h);return!h.hideInSearch&&!!x&&!u.includes(x)}).map(h=>({field:h.searchField??i(h),component:"Input",label:h.title,colProps:{span:8},...h.formItemProps})).sort((h,x)=>Number(h==null?void 0:h.order)-Number(x==null?void 0:x.order))});tf(()=>{var u;return(u=s())==null?void 0:u.setSchemaFormProps(re(f))},{flush:"post"});const o=cr(()=>Object.keys(t).map(h=>h.startsWith("form-")?h:null).filter(h=>!!h));function l(u){var h;return u?((h=u==null?void 0:u.replace)==null?void 0:h.call(u,/form-/,""))??"":""}return{getFormProps:f,replaceFormSlotKey:l,getFormSlotKeys:o,formSchemas:c}}const Lt={fetchConfig:{pageField:"page",sizeField:"pageSize",listField:"items",totalField:"meta.totalItems"},pageSizeOptions:["10","50","80","100"],defaultPageSize:10,defaultAlign:"center",defaultSortFn:e=>{const{field:t,order:r}=e;return t&&r?{field:t,order:r}:{}},defaultFilterFn:e=>e},Nw=e=>{let t=e.offsetTop,r=e.offsetParent;for(;r!=null;)t+=r.offsetTop,r=r.offsetParent;return t},Pw=({props:e,containerElRef:t})=>{const r=He(),a=cr(()=>({y:r.value,...e.scroll})),n=Qs(()=>{if(!e.autoHeight||!t.value)return;let i=0;const s=t.value.querySelector(".ant-pagination");if(s){const{offsetHeight:c}=s,{marginTop:o,marginBottom:l}=getComputedStyle(s);i=c+parseInt(o)+parseInt(l)}const f=t.value.querySelector(".ant-table-body")||t.value.querySelector(".ant-table-tbody");if(f){const c=document.documentElement.offsetHeight,o=Nw(f),l=f.offsetHeight-f.clientHeight,u=c-o-l-i-8;r.value=u}},20);return Uo(t,n,{childList:!0,subtree:!0}),Wo(document.documentElement,n),{scroll:a}},Lw=({props:e,slots:t})=>{const{t:r}=Qn(),a=He(),n=He(),i=He(),s=He([]),f=He({}),c=He(!1),o=He(!!e.loading),l=He(!1),u=He(null),h=He({}),x=He(new Map),p=He(new Set),d=He(new Set),v=_l({sortInfo:{},filterInfo:{}}),{scroll:w}=Pw({props:e,containerElRef:u});Object.is(e.pagination,!1)||(c.value={current:1,pageSize:Lt.defaultPageSize,total:0,pageSizeOptions:[...Lt.pageSizeOptions],showQuickJumper:!0,showSizeChanger:!0,showTotal:y=>r("component.table.total",{total:y}),...e.pagination});const k=cr(()=>Object.assign({},e,re(f))),m=cr(()=>{const y=re(k);let I={...y,scroll:{...re(w),...y.scroll},pagination:y.pagination??re(c),rowKey:y.rowKey??"id",loading:y.loading??re(o),tableLayout:y.tableLayout??"fixed"};return t.expandedRowRender&&(I=b0(I,"scroll")),I=b0(I,["class","onChange","columns"]),I});return Zt(()=>e.dataSource,y=>{y&&(s.value=y)},{immediate:!0,deep:!0}),Zt(()=>e.columns,y=>{y&&Object.assign(f.value,{columns:y})},{immediate:!0,deep:!0}),{tableRef:a,editTableFormRef:i,loadingRef:o,isFullscreen:l,containerElRef:u,tableData:s,queryFormRef:n,innerPropsRef:f,getProps:k,getBindValues:m,paginationRef:c,editFormModel:h,editFormErrorMsgs:x,editableCellKeys:d,editableRowKeys:p,searchState:v}},ko=({state:e,props:t})=>{const{tableData:r,editFormModel:a,editTableFormRef:n,editFormErrorMsgs:i,editableCellKeys:s,editableRowKeys:f}=e;Zt(()=>t.editableType,k=>{k==="cell"?f.value.clear():s.value.clear()});const c=(k,m)=>{Reflect.set(a.value,k,m),Qt(()=>{var y;(y=n.value)==null||y.setFormModel(k,m)})},o=(k,m,y)=>{const I=Ja(m??r.value.find(S=>S[String(t.rowKey)]===k));return y==null||y.forEach(S=>{const{formItemProps:_,editFormItemProps:N}=S,O=S.dataIndex||S.key;!Object.is(N==null?void 0:N.extendSearchFormProps,!1)&&_&&Reflect.has(_,"defaultValue")&&(I[O]=_.defaultValue),N&&Reflect.has(N,"defaultValue")&&(I[O]=N.defaultValue)}),I},l=(k,m)=>{if(s.value.clear(),f.value.size>0&&t.editableType==="single")return zo.warn(t.onlyOneLineEditorAlertMessage||"只能同时编辑一行"),!1;const y=o(k,m,t.columns);return c(k,y),f.value.add(k),!0},u=(k,m,y)=>{f.value.clear();const I=t.columns.filter(_=>_.dataIndex===m),S=o(k,y,I);s.value.add(`${k}.${m}`),c(k,{...d(k)||S,[m]:S[m]})},h=(k,m)=>{s.value.delete(`${k}.${m}`);const y=d(k),I=r.value.find(S=>S[String(t.rowKey)]===k);I&&Reflect.set(y,m,I[m]),i.value.delete(`${k}.${m}`)},x=k=>{const m=d(k);return Object.keys(m).forEach(y=>i.value.delete(`${k}.${y}`)),Qt(()=>{var y,I;(I=(y=n.value)==null?void 0:y.delFormModel)==null||I.call(y,k)}),f.value.delete(k),Reflect.deleteProperty(a.value,k)},p=k=>f.value.has(k),d=k=>Reflect.get(a.value,k);return{setEditFormModel:c,startEditable:l,startCellEditable:u,cancelCellEditable:h,cancelEditable:x,isEditable:p,validateRow:async k=>{var I;const m=Object.keys(d(k)).map(S=>[String(k),S]),y=await((I=n.value)==null?void 0:I.validateFields(m));return(y==null?void 0:y[k])??y},validateCell:async(k,m)=>{var I;const y=await((I=n.value)==null?void 0:I.validateFields([[String(k),m]]));return(y==null?void 0:y[k])??y},getEditFormModel:d}};function Bw({state:e,props:t,emit:r}){const{tableData:a}=e,n=He([]),i=cr(()=>{const{childrenColumnName:u="children"}=t;return a.value.some(h=>Array.isArray(h[u])&&h[u].length)}),s=cr(()=>i.value?{expandedRowKeys:re(n),onExpandedRowsChange:u=>{n.value=u,r("expanded-rows-change",u)}}:{});function f(){const u=o();n.value=u}function c(u){i.value&&(n.value=[...n.value,...u])}function o(u){const h=[],{childrenColumnName:x,rowKey:p}=t;return wl(u||re(a)).forEach(d=>{h.push(d[p]);const v=d[x||"children"];v!=null&&v.length&&h.push(...o(v))}),h}function l(){n.value=[]}return{getExpandOption:s,expandAll:f,expandRows:c,collapseAll:l}}const Mw=({state:e,props:t,emit:r})=>{const{innerPropsRef:a,tableData:n,loadingRef:i,queryFormRef:s,paginationRef:f,editFormErrorMsgs:c,searchState:o}=e,l=ko({state:e,props:t}),u=Bw({state:e,props:t,emit:r});Zt(()=>t.searchParams,()=>{p()}),Zt(()=>t.dataSource,S=>{m({total:S==null?void 0:S.length})});const h=S=>{Object.assign(a.value,S)},x=(S,_=1)=>{m({current:_}),p(S),r("search",S)},p=Qs(async(S={})=>{const{dataRequest:_,dataSource:N,fetchConfig:O,searchParams:G}=t;if(!(!_||!ka(_)||Array.isArray(N)))try{let M={};const L=re(f),{pageField:J,sizeField:oe,listField:ee,totalField:ue}={...Lt.fetchConfig,...O},ce=h0(L);ce&&(M={[J]:L.current,[oe]:L.pageSize});const{sortInfo:ke={},filterInfo:V}=o;let xe={...M,...ke,...V,...G,...S};if(await Qt(),s.value){const P=await s.value.validate();xe={...s.value.handleFormValues(P),...xe}}i.value=!0;const pe=await _(xe),b=Array.isArray(pe),B=b?pe:C0(pe,ee),R=b?pe.length:Number(C0(pe,ue));if(ce&&R){const{current:P=1,pageSize:K=Lt.defaultPageSize}=L,te=Math.ceil(R/K);if(P>te)return m({current:te}),await p(S)}return n.value=B,m({total:~~R}),xe[J]&&m({current:xe[J]||1}),n}catch(M){Ho(`表格查询出错:${M}`),r("fetch-error",M),n.value=[],m({total:0})}finally{i.value=!1}}),d=(S=!1)=>{const _=re(f);return Object.is(S,!0)&&h0(_)&&(_.current=1),r("reload"),p()},v=async(...S)=>{const[_,N,O]=S,{sortFn:G,filterFn:M}=t;if(s.value&&await s.value.validate(),m(_),O&&ka(G)){const L=G(O);o.sortInfo=L}if(N&&ka(M)){const L=M(N);o.filterInfo=L}await p({}),r("change",...S)},w=S=>(S==null?void 0:S.key)||(S==null?void 0:S.dataIndex),k=(S,_,N)=>{const O=Array.isArray(S)?S.join("."):S;_?c.value.delete(O):c.value.set(O,N)},m=(S=f.value)=>{Mn(S)?f.value=S:h0(f.value)&&(f.value={...f.value,...S})};return{...l,...u,setProps:h,handleSubmit:x,handleTableChange:v,getColumnKey:w,fetchData:p,getQueryFormRef:()=>s.value,reload:d,onInfiniteScroll:(S,_)=>{var O,G;const N=(G=(O=af())==null?void 0:O.proxy)==null?void 0:G.$el.querySelector(".ant-table-body");Vo(N,S,_)},handleEditFormValidate:k}},Zs="__TABLE_ACTION",Uw=ft({__name:"table-action",props:{actions:{type:Array,default:()=>[]},columnParams:{type:Object,default:()=>({})},divider:{type:Boolean,default:!0},rowKey:[String,Number]},setup(e){const t=(o,{slots:l})=>{const{popConfirm:u,tooltip:h}=o,x=()=>{var p;return u?Un(Ko,u,{default:l.default}):(p=l.default)==null?void 0:p.call(l)};return h?Un(Pt,c(h),{default:x}):x()},r=e,a=He(new Map),n=cr(()=>r.actions.filter(o=>{const l=o.auth;if(Object.is(l,void 0))return!0;if(Bi(l)){const u=Li(l);return o.disabled??(o.disabled=!u),o.disabled&&!u&&(o.title="对不起,您没有该操作权限!"),u}if($o(l)){const u=Li(l.perm),h=l.effect!=="delete";return o.disabled??(o.disabled=!u&&h),o.disabled&&!u&&(o.title="对不起,您没有该操作权限!"),u||h}}).map((o,l)=>{const u=o.onClick;return ka(u)&&!i(u)&&(o.onClick=async()=>{const h=u(r.columnParams);if(sf(h)){const x=f(o,l);a.value.set(x,!0),await h.finally(()=>{a.value.delete(x)})}},s(o.onClick)),o.icon&&(o.icon=ye(Xo,{icon:o.icon,class:{"mr-1":!!o.label}},null)),o})),i=o=>Reflect.get(o,Zs),s=o=>{Reflect.set(o,Zs,!0)},f=(o,l)=>`${r.rowKey}${l}${o.label}`,c=o=>({getPopupContainer:()=>document.body,placement:"bottom",...Bi(o)?{title:o}:o});return(o,l)=>{const u=X0("a-button"),h=V0;return Me(!0),Tt(Za,null,Kt(n.value,(x,p)=>(Me(),Tt(Za,{key:`${p}-${x.label}`},[ye(t,ga(_a(x)),{default:we(()=>[ye(u,qa({type:"link",size:"small",loading:a.value.get(f(x,p))},x),{default:we(()=>[qr(xr(x.label),1)]),_:2},1040,["loading"])]),_:2},1040),e.divider&&p(Me(),lr(re(Pt),{placement:"top"},{title:we(()=>[gr("span",null,xr(re(t)("component.table.settingDens")),1)]),default:we(()=>[ye(re(jo),{placement:"bottom",trigger:["click"]},{overlay:we(()=>[ye(re(Sn),{selectedKeys:a.value,"onUpdate:selectedKeys":f[0]||(f[0]=c=>a.value=c),selectable:"",onClick:n},{default:we(()=>[ye(re(Sn).Item,{key:"large"},{default:we(()=>[gr("span",null,xr(re(t)("component.table.settingDensDefault")),1)]),_:1}),ye(re(Sn).Item,{key:"middle"},{default:we(()=>[gr("span",null,xr(re(t)("component.table.settingDensMiddle")),1)]),_:1}),ye(re(Sn).Item,{key:"small"},{default:we(()=>[gr("span",null,xr(re(t)("component.table.settingDensSmall")),1)]),_:1})]),_:1},8,["selectedKeys"])]),default:we(()=>[ye(re(Yo))]),_:1})]),_:1}))}}),Hw=ft({__name:"refresh-setting",setup(e){const{t}=Qn(),r=sa();function a(){r.reload()}return(n,i)=>(Me(),lr(re(Pt),{placement:"top"},{title:we(()=>[gr("span",null,xr(re(t)("common.redo")),1)]),default:we(()=>[ye(re(Jo),{onClick:a})]),_:1}))}}),Ln=ft({inheritAttrs:!1,__name:"index",props:{...qo(),trueValue:{type:[Number,Boolean,String],default:!0},falseValue:{type:[Number,Boolean,String],default:!1}},emits:["update:checked","change"],setup(e,{emit:t}){const r=e,a=t,n=cr(()=>b0(r,["onUpdate:checked","onChange"])),i=cr({get(){return r.checked===r.trueValue},set(f){a("update:checked",f?r.trueValue:r.falseValue)}}),s=f=>{const c={...f,target:{...f.target,checked:f.target.checked?r.trueValue:r.falseValue}};a("change",c)};return(f,c)=>(Me(),lr(re(Zo),qa(n.value,{checked:i.value,"onUpdate:checked":c[0]||(c[0]=o=>i.value=o),onChange:s}),{default:we(()=>[tt(f.$slots,"default")]),_:3},16,["checked"]))}});function Vw(e,t){function r(){Qt(async()=>{if(!e)return;(await Go(()=>import("./sortable.esm-BvVcoYKu.js"),[])).default.create(re(e),{animation:500,delay:400,delayOnTouchOnly:!0,...t})})}return{initSortable:r}}const Xw={class:"popover-title"},Gw={style:{padding:"4px 16px 8px 0"}},zw={class:"column-fixed"},$w=ft({__name:"column-setting",setup(e){const{t}=Qn(),r=sa();let a=!1;const n=Ja(r.columns),i=!!r.showIndex,s=r.bordered,f=He([]),c=cr({get(){return f.value.length>0&&f.value.every(m=>!m.hideInTable)},set(m){f.value.forEach(y=>y.hideInTable=!m)}}),o=He(i),l=He(r.bordered),u=He(),h=()=>{f.value=Ja(n),o.value=i,l.value=s,f.value.forEach(m=>m.hideInTable??(m.hideInTable=!1))};h();const x=cr(()=>f.value.length>0&&f.value.some(m=>m.hideInTable)&&f.value.some(m=>!m.hideInTable));Zt(f,m=>{r.setProps({columns:m})},{deep:!0});const p=m=>{r.setProps({showIndex:m.target.checked})},d=m=>{r.setProps({bordered:m.target.checked})},v=(m,y)=>{m.fixed=m.fixed===y?!1:y};async function w(){if(a)return;await Qt();const m=re(u);if(!m)return;const{initSortable:y}=Vw(m,{handle:".table-column-drag-icon",onEnd:I=>{const{oldIndex:S,newIndex:_}=I;if(Mi(S)||Mi(_)||S===_)return;const N=f.value;N.splice(_,0,N.splice(S,1)[0])}});y(),a=!0}const k=()=>{h(),r.setProps({showIndex:i,bordered:s})};return(m,y)=>{const I=X0("a-button");return Me(),lr(re(Pt),{placement:"top"},{title:we(()=>[gr("span",null,xr(re(t)("component.table.settingColumn")),1)]),default:we(()=>[ye(re(ef),{placement:"bottomLeft",trigger:"click","overlay-class-name":"cloumn-list",onOpenChange:w},{title:we(()=>[gr("div",Xw,[ye(Ln,{checked:c.value,"onUpdate:checked":y[0]||(y[0]=S=>c.value=S),indeterminate:x.value},{default:we(()=>[qr(xr(re(t)("component.table.settingColumnShow")),1)]),_:1},8,["checked","indeterminate"]),ye(Ln,{checked:o.value,"onUpdate:checked":y[1]||(y[1]=S=>o.value=S),onChange:p},{default:we(()=>[qr(xr(re(t)("component.table.settingIndexColumnShow")),1)]),_:1},8,["checked"]),ye(Ln,{checked:l.value,"onUpdate:checked":y[2]||(y[2]=S=>l.value=S),onChange:d},{default:we(()=>[qr(xr(re(t)("component.table.settingBordered")),1)]),_:1},8,["checked"]),ye(I,{size:"small",type:"link",onClick:k},{default:we(()=>[qr(xr(re(t)("common.resetText")),1)]),_:1})])]),content:we(()=>[gr("div",{ref_key:"columnListRef",ref:u},[(Me(!0),Tt(Za,null,Kt(f.value,S=>(Me(),Tt("div",{key:re(r).getColumnKey(S),class:"check-item"},[gr("div",Gw,[ye(re(Qo),{class:"table-column-drag-icon pr-6px cursor-move"}),ye(Ln,{checked:S.hideInTable,"onUpdate:checked":_=>S.hideInTable=_,"true-value":!1,"false-value":!0},{default:we(()=>[qr(xr(S.title),1)]),_:2},1032,["checked","onUpdate:checked"])]),gr("div",zw,[ye(re(Pt),{placement:"bottomLeft","mouse-leave-delay":.4},{title:we(()=>[qr(xr(re(t)("component.table.settingFixedLeft")),1)]),default:we(()=>[ye(re(el),{class:Ui(["fixed-left",{active:S.fixed==="left"}]),onClick:_=>v(S,"left")},null,8,["class","onClick"])]),_:2},1024),ye(re(V0),{type:"vertical"}),ye(re(Pt),{placement:"bottomLeft","mouse-leave-delay":.4},{title:we(()=>[qr(xr(re(t)("component.table.settingFixedRight")),1)]),default:we(()=>[ye(re(rl),{class:Ui(["fixed-right",{active:S.fixed==="right"}]),onClick:_=>v(S,"right")},null,8,["class","onClick"])]),_:2},1024)])]))),128))],512)]),default:we(()=>[ye(re(tl))]),_:1})]),_:1})}}}),Kw=e0($w,[["__scopeId","data-v-4b9bddcc"]]),jw=ft({__name:"search-setting",setup(e){const{getProps:t,setProps:r,getFormProps:a,search:n}=sa();function i(){r({search:!t.value.search})}return(s,f)=>{var c,o;return(o=(c=re(a))==null?void 0:c.schemas)!=null&&o.length&&re(n)?(Me(),lr(re(Pt),{key:0,placement:"top"},{title:we(()=>[gr("span",null,xr(re(t).search?"隐藏搜索":"显示搜索"),1)]),default:we(()=>[ye(re(al),{onClick:i})]),_:1})):rt("",!0)}}}),Yw=ft({__name:"fullscreen",setup(e){const r=sa().isFullscreen,a=af(),n=He(!1),i=()=>{const f=(a==null?void 0:a.appContext.app._container)||document.querySelector("#app");f.style.setProperty("opacity",r.value?"0":"1"),f.style.setProperty("visibility",r.value?"hidden":"visible"),f.style.setProperty("position",r.value?"absolute":"relative")},s=()=>{r.value=!r.value,n.value=!1,i()};return(f,c)=>{const o=Pt;return Me(),lr(o,{open:n.value,"onUpdate:open":c[0]||(c[0]=l=>n.value=l),placement:"top"},{title:we(()=>[qr(xr(re(r)?"取消全屏":"全屏"),1)]),default:we(()=>[(Me(),lr(kl(re(r)?re(nl):re(il)),{onClick:s}))]),_:1},8,["open"])}}}),Jw=ft({__name:"index",setup(e){return(t,r)=>(Me(),lr(re(rf),{size:8,class:"dark:text-white"},{default:we(()=>[ye(jw),ye(Hw),ye(Yw),ye(Kw),ye(Ww)]),_:1}))}}),qw={class:"flex justify-between p-16px"},Zw={class:"flex"},Qw={class:"title"},ek=ft({name:"ToolBar",__name:"index",props:{title:{type:String,default:""},exportFileName:{type:String,default:""},titleTooltip:{type:String,default:""},showTableSetting:{type:Boolean,default:!0}},setup(e){const{exportData2Excel:t}=sa();return(r,a)=>{const n=X0("a-button");return Me(),Tt("div",qw,[gr("div",Zw,[tt(r.$slots,"headerTitle",{},()=>[gr("div",Qw,[qr(xr(e.title)+" ",1),e.titleTooltip?(Me(),lr(Sl,{key:0,class:"ml-6px pt-3px",text:e.titleTooltip},null,8,["text"])):rt("",!0)])],!0),tt(r.$slots,"afterHeaderTitle",{},void 0,!0)]),gr("div",null,[ye(re(rf),null,{default:we(()=>[tt(r.$slots,"toolbar",{},void 0,!0),e.exportFileName?(Me(),Tt("span",{key:0,onClick:a[0]||(a[0]=(...i)=>re(t)&&re(t)(...i))},[tt(r.$slots,"export-button",{},()=>[ye(n,{type:"primary"},{default:we(()=>[qr("导出")]),_:1})],!0)])):rt("",!0)]),_:3}),r.$slots.toolbar&&e.showTableSetting?(Me(),lr(re(V0),{key:0,type:"vertical"})):rt("",!0),e.showTableSetting?(Me(),lr(Jw,{key:1})):rt("",!0)])])}}}),rk=e0(ek,[["__scopeId","data-v-970f1354"]]),tk={class:"editable-cell"},ak=ft({__name:"index",props:{...Fl,rowKey:[String,Number],editableType:[String],column:[Object]},setup(e){var I,S;const t=e,r=He(!1),a=He((S=(I=t.column)==null?void 0:I.column)==null?void 0:S.defaultEditable),n=sa(),{editFormModel:i,editTableFormRef:s,editFormErrorMsgs:f,editableCellKeys:c,isEditable:o,startCellEditable:l,cancelCellEditable:u,validateCell:h}=n,x=cr(()=>{var _,N;return String((N=(_=t.column)==null?void 0:_.column)==null?void 0:N.dataIndex)}),p=cr(()=>{var O;const _=t.schema.field,N=((O=s.value)==null?void 0:O.getSchemaByFiled(_))||t.schema;return{...N,colProps:{...N.colProps,span:t.editableType==="cell"?20:24}}}),d=cr(()=>t.rowKey&&o(t.rowKey)),v=cr(()=>{const{rowKey:_}=t;return a.value&&t.editableType==="cell"&&c.value.has(`${_}.${x.value}`)}),w=cr(()=>{const _=t.schema.field;return f.value.get(_)}),k=()=>{var _;l(t.rowKey,x.value,(_=t.column)==null?void 0:_.record),a.value=!0},m=async()=>{var G;const{rowKey:_,column:N}=t;await h(_,x.value);const O=(G=n.onSave)==null?void 0:G.call(n,_,i.value[_],N==null?void 0:N.record);sf(O)&&(r.value=!0,await O.finally(()=>r.value=!1)),u(_,x.value),a.value=!1},y=()=>{var O;const{rowKey:_,column:N}=t;(O=n==null?void 0:n.onCancel)==null||O.call(n,_,i.value[_],N==null?void 0:N.record),a.value=!1,u(t.rowKey,x.value)};return a.value&&t.editableType==="cell"&&k(),(_,N)=>{const O=hl,G=sl,M=fl,L=ef,J=cl;return Me(),lr(J,{spinning:r.value},{default:we(()=>{var oe;return[gr("div",tk,[ye(L,{open:!!((oe=w.value)!=null&&oe.length),placement:"topRight"},{content:we(()=>[(Me(!0),Tt(Za,null,Kt(w.value,ee=>(Me(),lr(O,{key:ee,type:"danger"},{default:we(()=>[qr(xr(ee),1)]),_:2},1024))),128))]),default:we(()=>[ye(M,{type:"flex",gutter:8},{default:we(()=>[(d.value||v.value)&&p.value?(Me(),lr(re(yl),{key:0,"form-model":re(i),"onUpdate:formModel":N[0]||(N[0]=ee=>El(i)?i.value=ee:null),schema:p.value,"table-instance":re(n),"table-row-key":e.rowKey},Bn({_:2},[Kt(Object.keys(_.$slots),ee=>({name:ee,fn:we(ue=>[tt(_.$slots,ee,ga(_a(ue||{})),void 0,!0)])}))]),1032,["form-model","schema","table-instance","table-row-key"])):rt("",!0),v.value?(Me(),lr(G,{key:1,span:4,class:"!flex items-center"},{default:we(()=>[ye(re(ol),{onClick:m}),ye(re(ll),{onClick:y})]),_:1})):rt("",!0)]),_:3})]),_:3},8,["open"]),!a.value&&e.editableType==="cell"?(Me(),Tt(Za,{key:0},[tt(_.$slots,"default",{},void 0,!0),ye(re(ul),{onClick:k})],64)):rt("",!0)])]}),_:3},8,["spinning"])}}}),nk=e0(ak,[["__scopeId","data-v-da45b515"]]),ik=({state:e,methods:t,props:r,tableAction:a})=>{const n=nf(),i=He(r.columns),{getColumnKey:s}=t,{getProps:f}=e,{isEditable:c}=a;tf(()=>{const u={...re(f)},h=Ja(u.columns.filter(x=>!x.hideInTable));u!=null&&u.showIndex&&h.unshift({dataIndex:Qa.INDEX,title:"序号",width:60,align:"center",fixed:"left",...u==null?void 0:u.indexColumnProps,customRender:({index:x})=>{const p=re(e.paginationRef);if(Mn(p))return x+1;const{current:d=1,pageSize:v=10}=p;return((d<1?1:d)-1)*v+x+1}}),i.value=h.map(x=>{const p=x.customRender,d=r.rowKey,v=s(x);return x.align||(x.align=Lt.defaultAlign),x.customRender=w=>{var O;const{record:k,index:m,text:y}=w,I=c(k[d]),S=u.editableType==="cell",_=Mn(x.editable)?x.editable:((O=x.editable)==null?void 0:O.call(x,w))??!0;return(I||S)&&_&&!cf.includes(v)?Un(nk,{schema:l(x,k),rowKey:k[d]??m,editableType:u.editableType,column:w},{default:()=>(p==null?void 0:p(w))??y,...n}):p==null?void 0:p(w)},x.actions&&v===Qa.ACTION&&(x.customRender=w=>{const{record:k,index:m}=w;return Un(Uw,{actions:x.actions(w,a),rowKey:k[d]??m,columnParams:w})}),{key:x.key??x.dataIndex,dataIndex:x.dataIndex??x.key,...x}})});function o(u,h,x){if(x==="componentProps")return(...p)=>({...ka(u)?u(...p):u,...ka(h)?h(...p):h})}const l=(u,h)=>{var d;const x=s(u),p=!Object.is((d=u.editFormItemProps)==null?void 0:d.extendSearchFormProps,!1);return{field:`${h[r.rowKey]}.${u.searchField??x}`,component:()=>xl,defaultValue:h[x],colProps:{span:re(f).editableType==="cell"?20:24},formItemProps:{help:""},...p?dl(Ja(u.formItemProps),u.editFormItemProps,o):u.editFormItemProps}};return{innerColumns:i}},sk={...pl(),rowKey:{type:[String,Function],default:"id"},search:{type:Boolean,default:!0},formProps:{type:Object,default:()=>({})},columns:{type:Array,required:!0,default:()=>[]},sortFn:{type:Function,default:Lt.defaultSortFn},filterFn:{type:Function,default:Lt.defaultFilterFn},fetchConfig:{type:Object,default:()=>Lt.fetchConfig},dataRequest:{type:Function},searchParams:{type:Object},showIndex:{type:Boolean,default:!1},indexColumnProps:{type:Object,default:()=>({})},showToolBar:{type:Boolean,default:!0},showTableSetting:{type:Boolean,default:!0},headerTitle:String,titleTooltip:String,autoHeight:Boolean,exportFileName:{type:String},exportBookType:{type:String,default:"xlsx"},exportAutoWidth:{type:Boolean,default:!0},exportFormatter:{type:Function,default:null},editableType:{type:String,default:"single"},onSave:{type:Function},onCancel:{type:Function},onlyOneLineEditorAlertMessage:String},fk={change:(...e)=>e.length===4,"toggle-advanced":e=>Mn(e),"fetch-error":e=>e,search:e=>e,reload:()=>!0,"update:expandedRowKeys":e=>e,"expanded-rows-change":e=>Array.isArray(e)},ck={class:"bg-white dark:bg-black"},ok=ft({name:"DynamicTable",inheritAttrs:!1,__name:"dynamic-table",props:sk,emits:fk,setup(e,{expose:t,emit:r}){const a=e,n=r,i=nf(),s=Lw({props:a,slots:i}),{tableRef:f,tableData:c,isFullscreen:o,containerElRef:l,queryFormRef:u,editTableFormRef:h,getProps:x,getBindValues:p,editFormModel:d}=s,v=Mw({state:s,props:a,emit:n}),{setProps:w,fetchData:k,handleSubmit:m,reload:y,handleTableChange:I,handleEditFormValidate:S}=v,_=ko({props:a,state:s}),N={setProps:w,reload:y,fetchData:k,..._},{innerColumns:O}=ik({props:a,slots:i,state:s,methods:v,tableAction:N}),G=Rw({tableState:s,tableMethods:v,slots:i}),{getFormProps:M,replaceFormSlotKey:L,getFormSlotKeys:J,formSchemas:oe}=G,ee=Iw({props:a,state:s,methods:v}),ue={...a,...s,...G,...v,..._,...ee,emit:n};Al(ue),k(),t(ue);const ce=cr(()=>{const{getExpandOption:ke}=v;return{...p.value,...ke.value}});return(ke,V)=>(Me(),Tt("div",null,[(Me(),lr(Tl,{to:"body",disabled:!re(o)},[gr("div",{ref_key:"containerElRef",ref:l},[re(x).search?(Me(),lr(re(Wi),qa({key:0,ref_key:"queryFormRef",ref:u,class:"bg-white dark:bg-black mb-16px !pt-24px pr-24px","submit-on-reset":""},re(M),{schemas:re(oe),"table-instance":N,onToggleAdvanced:V[0]||(V[0]=xe=>ke.$emit("toggle-advanced",xe)),onSubmit:re(m)}),Bn({_:2},[Kt(re(J),xe=>({name:re(L)(xe),fn:we(pe=>[tt(ke.$slots,xe,ga(_a(pe||{})),void 0,!0)])}))]),1040,["schemas","onSubmit"])):rt("",!0),gr("div",ck,[ke.showToolBar?(Me(),lr(re(rk),{key:0,"export-file-name":ke.exportFileName,title:ke.headerTitle,"title-tooltip":ke.titleTooltip,"show-table-setting":ke.showTableSetting},Bn({_:2},[Kt(Object.keys(ke.$slots),xe=>({name:xe,fn:we(pe=>[tt(ke.$slots,xe,ga(_a(pe||{})),void 0,!0)])}))]),1032,["export-file-name","title","title-tooltip","show-table-setting"])):rt("",!0),ye(re(Wi),{ref_key:"editTableFormRef",ref:h,"no-style":"","initial-values":re(d),"show-action-button-group":!1,"show-advanced-button":!1,onValidate:re(S)},{default:we(()=>[ye(re(vl),qa({ref_key:"tableRef",ref:f},ce.value,{columns:re(O),"data-source":re(c),onChange:re(I)}),Bn({bodyCell:we(xe=>[tt(ke.$slots,"bodyCell",ga(_a(xe)),void 0,!0)]),_:2},[Kt(ke.$slots,(xe,pe)=>({name:pe,fn:we(b=>[tt(ke.$slots,pe,ga(_a(b)),void 0,!0)])}))]),1040,["columns","data-source","onChange"])]),_:3},8,["initial-values","onValidate"])])],512)],8,["disabled"]))]))}}),lk=e0(ok,[["__scopeId","data-v-fcb57c14"]]);export{H0 as a,cf as c,Ys as r,gk as u,_k as w}; diff --git a/assets/en-D5M7dULx.js b/assets/en-D5M7dULx.js new file mode 100644 index 000000000..ea514a722 --- /dev/null +++ b/assets/en-D5M7dULx.js @@ -0,0 +1 @@ +import{j as R,k as E}from"./antdv-CA3HmnGF.js";import"./vue-Dbi1xauY.js";const e="OK",o="Close",t="Cancel",n="Loading...",a="Save",l="Delete",r="Reset",s="Search",i="Search",c="Please enter",d="Please choose",u="Refresh",m="Back",g="Light",b="Dark",I={okText:e,closeText:o,cancelText:t,loadingText:n,saveText:a,delText:l,resetText:r,searchText:s,queryText:i,inputText:c,chooseText:d,redo:u,back:m,light:g,dark:b},N=Object.freeze(Object.defineProperty({__proto__:null,back:m,cancelText:t,chooseText:d,closeText:o,dark:b,default:I,delText:l,inputText:c,light:g,loadingText:n,okText:e,queryText:i,redo:u,resetText:r,saveText:a,searchText:s},Symbol.toStringTag,{value:"Module"})),p={exportModalTitle:"Export data",fileType:"File type",fileName:"File name"},f={putAway:"Put away",unfold:"Unfold",maxTip:"The number of characters should be less than {0}",apiSelectNotFound:"Wait for data loading to complete..."},T={settingDens:"Density",settingDensDefault:"Default",settingDensMiddle:"Middle",settingDensSmall:"Compact",settingColumn:"Column settings",settingColumnShow:"Column display",settingIndexColumnShow:"Index Column",settingFixedLeft:"Fixed Left",settingFixedRight:"Fixed Right",settingFullScreen:"Full Screen",settingBordered:"Bordered",index:"Index",total:"total of {total}"},z={excel:p,form:f,table:T},H=Object.freeze(Object.defineProperty({__proto__:null,default:z,excel:p,form:f,table:T},Symbol.toStringTag,{value:"Module"})),h={onlinePreview:"Preview",onlineDocument:"Document"},_={dropdownItemDoc:"Document",dropdownItemLoginOut:"Login Out",tooltipErrorLog:"Error log",tooltipLock:"Lock screen",tooltipNotify:"Notification",tooltipEntryFull:"Full Screen",tooltipExitFull:"Exit Full Screen",lockScreenPassword:"Lock screen password",lockScreen:"Lock screen",lockScreenBtn:"Locking",home:"Home"},x={reload:"Refresh current",close:"Close current",closeLeft:"Close Left",closeRight:"Close Right",closeOther:"Close Other",closeAll:"Close All"},y={contentModeFull:"Full",contentModeFixed:"Fixed width",topMenuAlignLeft:"Left",topMenuAlignRight:"Center",topMenuAlignCenter:"Right",menuTriggerNone:"Not Show",menuTriggerBottom:"Bottom",menuTriggerTop:"Top",menuTypeSidebar:"Left menu mode",menuTypeMixSidebar:"Left menu mixed mode",menuTypeMix:"Top Menu Mix mode",menuTypeTopMenu:"Top menu mode",on:"On",off:"Off",minute:"Minute",operatingTitle:"Successful!",operatingContent:"The copy is successful, please go to src/settings/projectSetting.ts to modify the configuration!",resetSuccess:"Successfully reset!",copyBtn:"Copy",clearBtn:"Clear cache and to the login page",drawerTitle:"Configuration",darkMode:"Dark mode",navMode:"Navigation mode",interfaceFunction:"Interface function",interfaceDisplay:"Interface display",animation:"Animation",splitMenu:"Split menu",closeMixSidebarOnChange:"Switch page to close menu",sysTheme:"System theme",headerTheme:"Header theme",sidebarTheme:"Menu theme",menuDrag:"Drag Sidebar",menuSearch:"Menu search",menuAccordion:"Sidebar accordion",menuCollapse:"Collapse menu",collapseMenuDisplayName:"Collapse menu display name",topMenuLayout:"Top menu layout",menuCollapseButton:"Menu collapse button",contentMode:"Content area width",expandedMenuWidth:"Expanded menu width",breadcrumb:"Breadcrumbs",breadcrumbIcon:"Breadcrumbs Icon",tabs:"Tabs",tabDetail:"Tab Detail",tabsQuickBtn:"Tabs quick button",tabsRedoBtn:"Tabs redo button",tabsFoldBtn:"Tabs flod button",sidebar:"Sidebar",header:"Header",footer:"Footer",fullContent:"Full content",grayMode:"Gray mode",colorWeak:"Color Weak Mode",progress:"Progress",switchLoading:"Switch Loading",switchAnimation:"Switch animation",animationType:"Animation type",autoScreenLock:"Auto screen lock",notAutoScreenLock:"Not auto lock",fixedHeader:"Fixed header",fixedSideBar:"Fixed Sidebar",mixSidebarTrigger:"Mixed menu Trigger",triggerHover:"Hover",triggerClick:"Click",mixSidebarFixed:"Fixed expanded menu"},W={footer:h,header:_,multipleTab:x,setting:y},$=Object.freeze(Object.defineProperty({__proto__:null,default:W,footer:h,header:_,multipleTab:x,setting:y},Symbol.toStringTag,{value:"Module"})),S="settings",M="about",q={settings:S,about:M},K=Object.freeze(Object.defineProperty({__proto__:null,about:M,default:q,settings:S},Symbol.toStringTag,{value:"Module"})),L="Login",C="Error Log",G={login:L,errorLogList:C},Q=Object.freeze(Object.defineProperty({__proto__:null,default:G,errorLogList:C,login:L},Symbol.toStringTag,{value:"Module"})),k="Dashboard",F="About",D="Workbench",w="Analysis",U={dashboard:k,about:F,workbench:D,analysis:w},J=Object.freeze(Object.defineProperty({__proto__:null,about:F,analysis:w,dashboard:k,default:U,workbench:D},Symbol.toStringTag,{value:"Module"})),j="Demo",v="Button Extension",O="Draggable Modal",B={demo:"Form Demo",basic:"Basic Form",rule:"Rule Form",dynamic:"Dynamic Form",customForm:"Custom Form Component"},A={demo:"Table Demo",searchTable:"Search Table",editRowTable:"Editable Rows",wzry:"Honor of Kings",lol:"League of Legends"},P="Custom Icon",V={demo:j,button:v,modal:O,form:B,table:A,icon:P},X=Object.freeze(Object.defineProperty({__proto__:null,button:v,default:V,demo:j,form:B,icon:P,modal:O,table:A},Symbol.toStringTag,{value:"Module"})),Y=Object.assign({"./en/common.json":N,"./en/component.json":H,"./en/layout.json":$,"./en/routes/account.json":K,"./en/routes/basic.json":Q,"./en/routes/dashboard.json":J,"./en/routes/demo.json":X}),oe={message:{...R(Y,"en"),antdLocale:E},dateLocale:null,dateLocaleName:"en"};export{oe as default}; diff --git a/assets/file-operate-button-list-C4kIbcZg.js b/assets/file-operate-button-list-C4kIbcZg.js new file mode 100644 index 000000000..7c6f33ff3 --- /dev/null +++ b/assets/file-operate-button-list-C4kIbcZg.js @@ -0,0 +1 @@ +import{_ as o}from"./file-operate-button-list.vue_vue_type_script_setup_true_lang-DoYY5hJq.js";import"./file-upload-drawer.vue_vue_type_script_setup_true_lang-JocSrPFm.js";import"./antdv-CA3HmnGF.js";import"./vue-Dbi1xauY.js";import"./index-CPnd3GcN.js";import"./index.vue_vue_type_style_index_0_lang-BojqjIZ9.js";import"./useFormModal-DA4o0YFS.js";import"./useModal-tDF6160r.js";import"./ApiSelect.vue_vue_type_script_setup_true_lang-C4dv5akm.js";import"./is-bed24ebq.js";import"./schema-form.vue_vue_type_script_setup_true_lang-DYh3o6wW.js";import"./index-CDgH2F_h.js";import"./dateUtil-CLVblcqH.js";export{o as default}; diff --git a/assets/file-operate-button-list.vue_vue_type_script_setup_true_lang-DoYY5hJq.js b/assets/file-operate-button-list.vue_vue_type_script_setup_true_lang-DoYY5hJq.js new file mode 100644 index 000000000..11dcecbfa --- /dev/null +++ b/assets/file-operate-button-list.vue_vue_type_script_setup_true_lang-DoYY5hJq.js @@ -0,0 +1 @@ +import{_ as K}from"./file-upload-drawer.vue_vue_type_script_setup_true_lang-JocSrPFm.js";import{A as k}from"./index-CPnd3GcN.js";import"./index.vue_vue_type_style_index_0_lang-BojqjIZ9.js";import{u as j}from"./useFormModal-DA4o0YFS.js";import{aL as V,M as A,bd as E,e as C,be as O,bf as R,y as W,x as m,bg as T,bh as U,bi as z,p as G,K as X,bj as Y,I as x,bk as H,bl as J,a0 as Q}from"./antdv-CA3HmnGF.js";import{d as Z,f,c as v,w as D,W as w,a5 as ee,k as a,Y as t,X as ae,u as l,G as r,ad as te,ak as se,F as le,ac as ne}from"./vue-Dbi1xauY.js";const he=o=>[{field:"toName",component:"Input",label:`${o.type==="dir"?"文件夹":"文件"}名称`,defaultValue:o.name,rules:[{required:!0,type:"string",validator:(d,s)=>s&&s===o.name?Promise.reject("修改前后名称一致"):s&&!s.includes("/")?Promise.resolve():Promise.reject(`请输入合法${o.type==="dir"?"文件夹":"文件"}的名称`)}],componentProps:{placeholder:"输入重命名后的名称"}}],ie=[{field:"dirName",component:"Input",label:"文件夹名称",rules:[{required:!0,type:"string",validator:(o,d)=>d&&!d.includes("/")?Promise.resolve():Promise.reject("请输入合法的文件夹路径")}],componentProps:{placeholder:"请输入文件夹名称"}}],re=[{field:"key",component:"Input",label:"关键字",defaultValue:"",rules:[{required:!0,type:"string",validator:(o,d)=>d&&!d.includes("/")?Promise.resolve():Promise.reject("请输入合法的名称")}],componentProps:{placeholder:"请输入搜索关键字"}}],ye=Z({name:"FileOperateButtonList",__name:"file-operate-button-list",props:{selectedFileList:{type:Array,required:!0},parsePath:{type:Function,required:!0},searchKey:{type:String,required:!0},updateOperateStatus:{type:Function,required:!0}},emits:["changed","update:searchKey"],setup(o,{emit:d}){const s=o,c=d,[g]=j(),b=f(),n=f(!1),i=f(!1),h=f(""),y=f([]),F=v(()=>y.value.length>0?!1:s.selectedFileList.length<=0),S=v(()=>n.value&&h.value===s.parsePath()),P=v(()=>!V(s.searchKey));D(n,e=>{e&&(i.value&&(i.value=!1),M())}),D(i,e=>{e&&(n.value&&(n.value=!1),M())});const $=({key:e})=>{e==="copy"?i.value=!0:e==="cut"?n.value=!0:e==="delete"?A.confirm({title:"你确定要删除吗?",icon:a(E),onOk:L}):e==="cancel"&&(n.value=!1,i.value=!1,_())},M=()=>{y.value=O(s.selectedFileList),h.value=s.parsePath()},_=()=>{h.value="",y.value=[]},I=async()=>{try{s.updateOperateStatus(!0);const e={files:y.value,originPath:h.value,toPath:s.parsePath()};let u;if(n.value&&!i.value)await k.netDiskManage.netDiskManageCut(e),u="剪切",n.value=!1;else if(!n.value&&i.value)await k.netDiskManage.netDiskManageCopy(e),u="复制",i.value=!1;else throw new Error("unsupport operate");_(),C.success(`${u}成功`),c("changed")}finally{s.updateOperateStatus(!1)}},L=async()=>{const e=s.parsePath(),u=O(s.selectedFileList);await k.netDiskManage.netDiskManageDelete({path:e,files:u},{showSuccessMsg:!1}),C.success("已删除指定列表"),c("changed")},q=async()=>{if(P.value){c("update:searchKey","");return}await g({modalProps:{title:"全盘搜索",width:700,onFinish:async e=>{c("update:searchKey",e.key)}},formProps:{labelWidth:100,schemas:re}})},N=()=>{var e;(e=b.value)==null||e.open(s.parsePath())},B=async()=>{await g({modalProps:{title:"创建文件夹",width:700,onFinish:async e=>{await k.netDiskManage.netDiskManageMkdir({path:s.parsePath(),dirName:e.dirName}),c("changed")}},formProps:{labelWidth:100,schemas:ie}})};return(e,u)=>{const p=ne("a-button");return w(),ee(le,null,[a(l(Q),null,{default:t(()=>[i.value||n.value?(w(),ae(p,{key:0,disabled:S.value,onClick:I},{default:t(()=>[a(l(R)),r("粘贴 ")]),_:1},8,["disabled"])):te("",!0),a(l(W),{size:"small"},{overlay:t(()=>[a(l(m),{onClick:$},{default:t(()=>[a(l(m).Item,{key:"copy",disabled:!e.$auth("netdisk:manage:copy")},{default:t(()=>[a(l(T)),r(" 复制所选 ")]),_:1},8,["disabled"]),a(l(m).Item,{key:"cut",disabled:!e.$auth("netdisk:manage:cut")},{default:t(()=>[a(l(U),{rotate:-90}),r(" 剪切所选 ")]),_:1},8,["disabled"]),a(l(m).Item,{key:"delete",disabled:!e.$auth("netdisk:manage:delete")},{default:t(()=>[a(l(z)),r(" 删除所选 ")]),_:1},8,["disabled"]),a(l(m).Item,{key:"cancel",divider:"",disabled:!i.value&&!n.value},{default:t(()=>[a(l(G)),r(" 取消粘贴 ")]),_:1},8,["disabled"])]),_:1})]),default:t(()=>[a(l(X),{title:"注意:复制或剪切时会覆盖重名文件",placement:"top"},{default:t(()=>[a(p,{color:"#e6a23c",disabled:F.value},{icon:t(()=>[a(l(Y))]),default:t(()=>[r(" 批量操作 ")]),_:1},8,["disabled"])]),_:1})]),_:1}),a(p,{type:"success",disabled:!e.$auth("netdisk:manage:list"),onClick:q},{icon:t(()=>[a(l(x))]),default:t(()=>[r(" "+se(P.value?"取消搜索":"全盘搜索"),1)]),_:1},8,["disabled"]),a(p,{type:"primary",disabled:!e.$auth("netdisk:manage:token"),onClick:N},{icon:t(()=>[a(l(H))]),default:t(()=>[r(" 上传文件 ")]),_:1},8,["disabled"]),a(p,{onClick:B},{icon:t(()=>[a(l(J))]),default:t(()=>[r(" 创建文件夹 ")]),_:1})]),_:1}),a(K,{ref_key:"uploadDrawerRef",ref:b,onChanged:u[0]||(u[0]=oe=>e.$emit("changed"))},null,512)],64)}}});export{ye as _,he as g}; diff --git a/assets/file-preview-drawer-CDPxoUrR.js b/assets/file-preview-drawer-CDPxoUrR.js new file mode 100644 index 000000000..abf4f831f --- /dev/null +++ b/assets/file-preview-drawer-CDPxoUrR.js @@ -0,0 +1 @@ +import{_ as o}from"./file-preview-drawer.vue_vue_type_script_setup_true_lang-B65YCOxq.js";import"./index-CDgH2F_h.js";import"./is-bed24ebq.js";import"./antdv-CA3HmnGF.js";import"./vue-Dbi1xauY.js";import"./index-CPnd3GcN.js";import"./dateUtil-CLVblcqH.js";export{o as default}; diff --git a/assets/file-preview-drawer.vue_vue_type_script_setup_true_lang-B65YCOxq.js b/assets/file-preview-drawer.vue_vue_type_script_setup_true_lang-B65YCOxq.js new file mode 100644 index 000000000..f648858e0 --- /dev/null +++ b/assets/file-preview-drawer.vue_vue_type_script_setup_true_lang-B65YCOxq.js @@ -0,0 +1 @@ +import{f as z}from"./index-CDgH2F_h.js";import{A as g,G as C}from"./index-CPnd3GcN.js";import{f as F}from"./dateUtil-CLVblcqH.js";import{aL as R,e as T,S as L,a0 as I,ao as V,Q as A,L as J,W as P}from"./antdv-CA3HmnGF.js";import{d as q,f as t,c as S,W as y,X as E,Y as l,k as s,u as e,ah as W,a5 as N,ae as U,F as H,G as k,y as j,ac as X,ak as O}from"./vue-Dbi1xauY.js";const Z="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIIAAABVCAMAAACy5sxYAAAAgVBMVEXg4ODt7e3n5+fo6Ojj4+PX19fLy8vw8PDh4eG+vr7q6urr6+vHx8fd3d3BwcHv7+/Y2NjU1NTR0dHu7u7l5eXOzs7s7Oza2trg4ODm5ubi4uLExMTp6enk5OTQ0NDf39/AwMDFxcXJycnNzc3S0tLW1tbKysrZ2dnMzMzGxsbCwsIuTMdIAAAAAXRSTlOWWYruFwAABSdJREFUaN7tmgtzojwUhpuYBE8M4aIIitW2u/vd/v8P/E4uQMBe4g5WZ8fMtJ1K4Dycy5tD8OlpeePx9LRMbjyWD4QHwgPhgfBHIRBJN8xpLNtQSb4bYbXbT7V+v1t9H8J6sX9/xdkv1t+CsKafrXt0fX2ExVeL7+LKCIR93QAwck2EQ1wXcrgaQrYbW3qmh9UWx+pAn8dHdtl1ELJNaGUjR2YyOT6aXQMhC9Pgvepbh5n6nM2PEPqAfnD9jP6GH+IRhjzYbz+etR1ctZsbIayFVZyzDvMikFHCr+K0i8yJkE0U6VMG2WvUnAhnqhznh8V8COtzAVxFpe56NoSu1hiNzMkubnQuhN4J2zAinzFsL3BDFMIiuKdIBhqfDVEIXY+UJdEMWSdj8yCsxncUx7CISdtohN0krlEM62iZ9ghex4pxBtc0jMOmcVLD5ZcMjCfJ5uNISI72inSEUAqnwkrLcKpSoTZLJSwqsM4POY6GueFM1+5EDl4jiyJfMka4H8aqqBKGhwmMEShwx1COZJ3ZaZ3eMpBJoSyCZ4BgeNMV6RBsQv5Q6k0DReut6hC4RUihMFBVHwiu5fRyZpTNUF/PokS/lA5hyIcjhLFIdSXRJSXgr/pkJ5y0vV3B/RSPIAQfIyQywZOqqnMqTAZeqkZPSSg5Nz+iZzjCKB8o4f1JuTmsXrnpuxnUPloOoQFJBT2rCKnxHmvryZQxpSxOCXVxPJqbQYSi5Q6h6P1wfBlyknZLowmE6zBOr0BMRAf3isIgoEtJ5dLBIDAthI0SEjR9ltTa/qmEM6UwmMT6FFhYm0c11EUFBRkQnJychEVICLX+x0owCC7rC0U8ArpJcUxFhWFsRe9SsH7S3F4pfWGCp5aqQ2DjWHFrWgwI2z5hWzSOZh2CMcfCMvKBMMnSAiitZe9Nk3qYuL4gTlucQ0IEyVIsyte3n2Br0wI3lI8yKF/mkJSVRfBeCNDFFAGdQ9HTovWFmRp3oVe6VRK9IMwAZX5THwsocgg1yuwzNJZym1vtgETVEwQvhfwMAQ/qwp/u3CCSGjEGhMbWkUlH7nV0UcDJIXiGxnwu2mHBzsFZRXsBQmNu4RxBYvJjVRRDgenKRLiT4q6yIWwJ/31begTLQMzpDGeQwqdjh1BWIUKpKD1DSKlq8UwFgT4WoE06+5b8PYQSGo+QWobKRBElGPHLw4BARaLx9niHQHSNa8IEQUFDCEaiVapjQJGp2jbt1hv6DkKJXlo4BPWKDDaKteHGgOYDgqkRqmi3hhE04uzTlHgEApraSFQElyrqVjOtG/QntMfaC/QUQQoo7V0d8/zXyxsKqBbGWMFMyugXe15hEWqUG95JTqPaLgopVr5DkELiARDMLZcEZRA0t+6QpQb4YS721wSBg669IuEwBhVszH+odLgEpf+hX1KAfxBSWOupUV8uAMxiWIOtLhEKNK38pQlOZ1Xa54QsRGoQ/m68ab+gk0JOepi0wHzoPpS/TCR+5nidtHIxoHjlpqrdjF6cYrqmrmWJetLp16xNbPP4O41bFMPFjdsl7Wscw7zt67iJj2OYuYkfPcpEMsz9KBM80EUyzP5ANzzWZpEM+7kfawc37C7cG57v4T5202LxO9vRsXtN/UaPvIBh1o2eYLvrAj/Mut0Vbvp9vqdJl9fa9Au3PtmNtj7vYQM4yZ5vvQ1+Dy8D7uGVyD28GLqL12P38JIwuYdXpckdvDB2/eSNX5v7zLzxlwdmHA+EB8ID4YFwjnD7777+DxThSqcWhzRiAAAAAElFTkSuQmCC",ae=q({name:"FilePreviewDrawer",__name:"file-preview-drawer",setup(G,{expose:B}){const d=new Map([["name","文件名"],["mimeType","文件类型"],["hash","文件Hash"],["md5","文件MD5"],["fsize","文件大小"],["putTime","上传时间"],["uploader","上传人员"]]),m=t(!1),f=t(!1),w=t(""),h=t(""),n=t({}),r=t(""),u=t(""),M=t(!1),c=S(()=>R(r.value)),Q=S(()=>`${r.value}?imageView2/2/w/500/h/210`),x=async(i,p)=>{f.value=!0,w.value=i,h.value=p,await j();try{m.value=!0;const v={name:i,path:p},a=await g.netDiskManage.netDiskManageInfo(v);if(u.value=a.mark,Array.from(d.keys()).forEach(o=>{o==="fsize"?n.value.fsize=z(a[o]):n.value[o]=a[o]}),n.value.putTime=F(a.putTime),n.value.name=i,n.value,C("netdisk:manage:download")&&a.mimeType.includes("image/")){const o=await g.netDiskManage.netDiskManageDownload(v);r.value=o}}catch{D()}finally{m.value=!1}},b=async()=>{try{M.value=!0,await g.netDiskManage.netDiskManageMark({name:w.value,path:h.value,mark:u.value}),T.success("已更新文件备注")}finally{M.value=!1}},D=()=>{w.value="",h.value="",r.value="",u.value="",n.value={},f.value=!1};return B({open:x}),(i,p)=>{const v=X("a-button");return y(),E(e(P),{title:"文件详情",width:500,visible:f.value,onClose:D},{default:l(()=>[s(e(L),{spinning:m.value,class:"preview-drawer-inner-box"},{default:l(()=>[s(e(I),{direction:"vertical"},{default:l(()=>[s(e(V),{style:W({width:c.value?"130px":"100%",height:c.value?"85px":"210px"}),src:c.value?e(Z):Q.value,preview:c.value?!1:{src:r.value}},null,8,["style","src","preview"]),s(e(A),{bordered:"",column:1,size:"small"},{default:l(()=>[(y(!0),N(H,null,U(e(d).keys(),a=>(y(),E(e(A).Item,{key:a,label:e(d).get(a),"label-style":{whiteSpace:"nowrap"}},{default:l(()=>[k(O(n.value[a]),1)]),_:2},1032,["label"]))),128)),s(e(A).Item,{label:"文件备注","label-style":{whiteSpace:"nowrap"}},{default:l(()=>[s(e(I),{direction:"vertical",align:"end"},{default:l(()=>[s(e(J).TextArea,{value:u.value,"onUpdate:value":p[0]||(p[0]=a=>u.value=a),disabled:!i.$auth("netdisk:manage:mark"),placeholder:"请输入文件备注",maxlength:100,rows:4,"show-count":""},null,8,["value","disabled"]),s(v,{loading:M.value,disabled:!i.$auth("netdisk:manage:mark"),type:"primary",size:"mini",onClick:b},{default:l(()=>[k("更新 ")]),_:1},8,["loading","disabled"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["spinning"])]),_:1},8,["visible"])}}});export{ae as _}; diff --git a/assets/file-upload-drawer-P5Jyzo4g.js b/assets/file-upload-drawer-P5Jyzo4g.js new file mode 100644 index 000000000..722e39729 --- /dev/null +++ b/assets/file-upload-drawer-P5Jyzo4g.js @@ -0,0 +1 @@ +import{_ as o}from"./file-upload-drawer.vue_vue_type_script_setup_true_lang-JocSrPFm.js";import"./antdv-CA3HmnGF.js";import"./vue-Dbi1xauY.js";import"./index-CPnd3GcN.js";export{o as default}; diff --git a/assets/file-upload-drawer.vue_vue_type_script_setup_true_lang-JocSrPFm.js b/assets/file-upload-drawer.vue_vue_type_script_setup_true_lang-JocSrPFm.js new file mode 100644 index 000000000..867e1580c --- /dev/null +++ b/assets/file-upload-drawer.vue_vue_type_script_setup_true_lang-JocSrPFm.js @@ -0,0 +1 @@ +import{d as be,aL as we,M as _e,bd as xe,bm as te,S as Ce,aG as Se,W as ke}from"./antdv-CA3HmnGF.js";import{A as Ae}from"./index-CPnd3GcN.js";import{d as Ie,f as A,c as Ue,W as Fe,a5 as Oe,k as $,Y as W,u as J,a6 as Z,y as ze,G as Ee}from"./vue-Dbi1xauY.js";var fe=function(){var r=function(n,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,i){o.__proto__=i}||function(o,i){for(var t in i)i.hasOwnProperty(t)&&(o[t]=i[t])},r(n,e)};return function(n,e){r(n,e);function o(){this.constructor=n}n.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),b;(function(r){r.InvalidFile="InvalidFile",r.InvalidToken="InvalidToken",r.InvalidMetadata="InvalidMetadata",r.InvalidChunkSize="InvalidChunkSize",r.InvalidCustomVars="InvalidCustomVars",r.NotAvailableUploadHost="NotAvailableUploadHost",r.ReadCacheFailed="ReadCacheFailed",r.InvalidCacheData="InvalidCacheData",r.WriteCacheFailed="WriteCacheFailed",r.RemoveCacheFailed="RemoveCacheFailed",r.GetCanvasContextFailed="GetCanvasContextFailed",r.UnsupportedFileType="UnsupportedFileType",r.FileReaderReadFailed="FileReaderReadFailed",r.NotAvailableXMLHttpRequest="NotAvailableXMLHttpRequest",r.InvalidProgressEventTarget="InvalidProgressEventTarget",r.RequestError="RequestError"})(b||(b={}));var _=function(){function r(n,e){this.name=n,this.message=e,this.stack=new Error().stack}return r}(),M=function(r){fe(n,r);function n(e,o,i,t){var l=r.call(this,b.RequestError,i)||this;return l.code=e,l.reqId=o,l.isRequestError=!0,l.data=t,l}return n}(_),Re=function(r){fe(n,r);function n(e,o){return o===void 0&&(o=""),r.call(this,0,o,e)||this}return n}(M),Le=function(){function r(n,e){this.runTask=n,this.limit=e,this.aborted=!1,this.queue=[],this.processing=[]}return r.prototype.enqueue=function(n){var e=this;return new Promise(function(o,i){e.queue.push({task:n,resolve:o,reject:i}),e.check()})},r.prototype.run=function(n){var e=this;this.queue=this.queue.filter(function(o){return o!==n}),this.processing.push(n),this.runTask(n.task).then(function(){e.processing=e.processing.filter(function(o){return o!==n}),n.resolve(),e.check()},function(o){return n.reject(o)})},r.prototype.check=function(){var n=this;if(!this.aborted){var e=this.processing.length,o=this.limit-e;this.queue.slice(0,o).forEach(function(i){n.run(i)})}},r.prototype.abort=function(){this.queue=[],this.aborted=!0},r}(),Pe=function(){var r=function(n,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,i){o.__proto__=i}||function(o,i){for(var t in i)i.hasOwnProperty(t)&&(o[t]=i[t])},r(n,e)};return function(n,e){r(n,e);function o(){this.constructor=n}n.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),q=function(){return q=Object.assign||function(r){for(var n,e=1,o=arguments.length;e"u")return"";var n=r+"",e="",o,i,t=0;o=i=0,t=n.length;for(var l=0;l127&&p<2048)v=String.fromCharCode(p>>6|192,p&63|128);else if((p&63488^55296)>0)v=String.fromCharCode(p>>12|224,p>>6&63|128,p&63|128);else{if((p&64512^55296)>0)throw new RangeError("Unmatched trail surrogate at "+l);var a=n.charCodeAt(++l);if((a&64512^56320)>0)throw new RangeError("Unmatched lead surrogate at "+(l-1));p=((p&1023)<<10)+(a&1023)+65536,v=String.fromCharCode(p>>18|240,p>>12&63|128,p>>6&63|128,p&63|128)}v!==null&&(i>o&&(e+=n.slice(o,i)),e+=v,o=i=l+1)}return i>o&&(e+=n.slice(o,t)),e}function Be(r){var n=[],e=0,o=0,i=0;for(r+="";e>10&1023)),n.push(String.fromCharCode(56320|o&1023))):n.push(String.fromCharCode(o)),e+=i}return n.join("")}function Me(r){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",e,o,i,t,l,p,v,a,h=0,g=0,x="",C=[];if(!r)return r;r=qe(r+"");do e=r.charCodeAt(h++),o=r.charCodeAt(h++),i=r.charCodeAt(h++),a=e<<16|o<<8|i,t=a>>18&63,l=a>>12&63,p=a>>6&63,v=a&63,C[g++]=n.charAt(t)+n.charAt(l)+n.charAt(p)+n.charAt(v);while(h>16&255,o=a>>8&255,i=a&255,p===64?C[g++]=String.fromCharCode(e):v===64?C[g++]=String.fromCharCode(e,o):C[g++]=String.fromCharCode(e,o,i);while(h>>25)+s|0,c+=(u&s|~u&f)+d[1]-389564586|0,c=(c<<12|c>>>20)+u|0,f+=(c&u|~c&s)+d[2]+606105819|0,f=(f<<17|f>>>15)+c|0,s+=(f&c|~f&u)+d[3]-1044525330|0,s=(s<<22|s>>>10)+f|0,u+=(s&f|~s&c)+d[4]-176418897|0,u=(u<<7|u>>>25)+s|0,c+=(u&s|~u&f)+d[5]+1200080426|0,c=(c<<12|c>>>20)+u|0,f+=(c&u|~c&s)+d[6]-1473231341|0,f=(f<<17|f>>>15)+c|0,s+=(f&c|~f&u)+d[7]-45705983|0,s=(s<<22|s>>>10)+f|0,u+=(s&f|~s&c)+d[8]+1770035416|0,u=(u<<7|u>>>25)+s|0,c+=(u&s|~u&f)+d[9]-1958414417|0,c=(c<<12|c>>>20)+u|0,f+=(c&u|~c&s)+d[10]-42063|0,f=(f<<17|f>>>15)+c|0,s+=(f&c|~f&u)+d[11]-1990404162|0,s=(s<<22|s>>>10)+f|0,u+=(s&f|~s&c)+d[12]+1804603682|0,u=(u<<7|u>>>25)+s|0,c+=(u&s|~u&f)+d[13]-40341101|0,c=(c<<12|c>>>20)+u|0,f+=(c&u|~c&s)+d[14]-1502002290|0,f=(f<<17|f>>>15)+c|0,s+=(f&c|~f&u)+d[15]+1236535329|0,s=(s<<22|s>>>10)+f|0,u+=(s&c|f&~c)+d[1]-165796510|0,u=(u<<5|u>>>27)+s|0,c+=(u&f|s&~f)+d[6]-1069501632|0,c=(c<<9|c>>>23)+u|0,f+=(c&s|u&~s)+d[11]+643717713|0,f=(f<<14|f>>>18)+c|0,s+=(f&u|c&~u)+d[0]-373897302|0,s=(s<<20|s>>>12)+f|0,u+=(s&c|f&~c)+d[5]-701558691|0,u=(u<<5|u>>>27)+s|0,c+=(u&f|s&~f)+d[10]+38016083|0,c=(c<<9|c>>>23)+u|0,f+=(c&s|u&~s)+d[15]-660478335|0,f=(f<<14|f>>>18)+c|0,s+=(f&u|c&~u)+d[4]-405537848|0,s=(s<<20|s>>>12)+f|0,u+=(s&c|f&~c)+d[9]+568446438|0,u=(u<<5|u>>>27)+s|0,c+=(u&f|s&~f)+d[14]-1019803690|0,c=(c<<9|c>>>23)+u|0,f+=(c&s|u&~s)+d[3]-187363961|0,f=(f<<14|f>>>18)+c|0,s+=(f&u|c&~u)+d[8]+1163531501|0,s=(s<<20|s>>>12)+f|0,u+=(s&c|f&~c)+d[13]-1444681467|0,u=(u<<5|u>>>27)+s|0,c+=(u&f|s&~f)+d[2]-51403784|0,c=(c<<9|c>>>23)+u|0,f+=(c&s|u&~s)+d[7]+1735328473|0,f=(f<<14|f>>>18)+c|0,s+=(f&u|c&~u)+d[12]-1926607734|0,s=(s<<20|s>>>12)+f|0,u+=(s^f^c)+d[5]-378558|0,u=(u<<4|u>>>28)+s|0,c+=(u^s^f)+d[8]-2022574463|0,c=(c<<11|c>>>21)+u|0,f+=(c^u^s)+d[11]+1839030562|0,f=(f<<16|f>>>16)+c|0,s+=(f^c^u)+d[14]-35309556|0,s=(s<<23|s>>>9)+f|0,u+=(s^f^c)+d[1]-1530992060|0,u=(u<<4|u>>>28)+s|0,c+=(u^s^f)+d[4]+1272893353|0,c=(c<<11|c>>>21)+u|0,f+=(c^u^s)+d[7]-155497632|0,f=(f<<16|f>>>16)+c|0,s+=(f^c^u)+d[10]-1094730640|0,s=(s<<23|s>>>9)+f|0,u+=(s^f^c)+d[13]+681279174|0,u=(u<<4|u>>>28)+s|0,c+=(u^s^f)+d[0]-358537222|0,c=(c<<11|c>>>21)+u|0,f+=(c^u^s)+d[3]-722521979|0,f=(f<<16|f>>>16)+c|0,s+=(f^c^u)+d[6]+76029189|0,s=(s<<23|s>>>9)+f|0,u+=(s^f^c)+d[9]-640364487|0,u=(u<<4|u>>>28)+s|0,c+=(u^s^f)+d[12]-421815835|0,c=(c<<11|c>>>21)+u|0,f+=(c^u^s)+d[15]+530742520|0,f=(f<<16|f>>>16)+c|0,s+=(f^c^u)+d[2]-995338651|0,s=(s<<23|s>>>9)+f|0,u+=(f^(s|~c))+d[0]-198630844|0,u=(u<<6|u>>>26)+s|0,c+=(s^(u|~f))+d[7]+1126891415|0,c=(c<<10|c>>>22)+u|0,f+=(u^(c|~s))+d[14]-1416354905|0,f=(f<<15|f>>>17)+c|0,s+=(c^(f|~u))+d[5]-57434055|0,s=(s<<21|s>>>11)+f|0,u+=(f^(s|~c))+d[12]+1700485571|0,u=(u<<6|u>>>26)+s|0,c+=(s^(u|~f))+d[3]-1894986606|0,c=(c<<10|c>>>22)+u|0,f+=(u^(c|~s))+d[10]-1051523|0,f=(f<<15|f>>>17)+c|0,s+=(c^(f|~u))+d[1]-2054922799|0,s=(s<<21|s>>>11)+f|0,u+=(f^(s|~c))+d[8]+1873313359|0,u=(u<<6|u>>>26)+s|0,c+=(s^(u|~f))+d[15]-30611744|0,c=(c<<10|c>>>22)+u|0,f+=(u^(c|~s))+d[6]-1560198380|0,f=(f<<15|f>>>17)+c|0,s+=(c^(f|~u))+d[13]+1309151649|0,s=(s<<21|s>>>11)+f|0,u+=(f^(s|~c))+d[4]-145523070|0,u=(u<<6|u>>>26)+s|0,c+=(s^(u|~f))+d[11]-1120210379|0,c=(c<<10|c>>>22)+u|0,f+=(u^(c|~s))+d[2]+718787259|0,f=(f<<15|f>>>17)+c|0,s+=(c^(f|~u))+d[9]-343485551|0,s=(s<<21|s>>>11)+f|0,y[0]=u+y[0]|0,y[1]=s+y[1]|0,y[2]=f+y[2]|0,y[3]=c+y[3]|0}function t(y){var d=[],u;for(u=0;u<64;u+=4)d[u>>2]=y.charCodeAt(u)+(y.charCodeAt(u+1)<<8)+(y.charCodeAt(u+2)<<16)+(y.charCodeAt(u+3)<<24);return d}function l(y){var d=[],u;for(u=0;u<64;u+=4)d[u>>2]=y[u]+(y[u+1]<<8)+(y[u+2]<<16)+(y[u+3]<<24);return d}function p(y){var d=y.length,u=[1732584193,-271733879,-1732584194,271733878],s,f,c,w,S,k;for(s=64;s<=d;s+=64)i(u,t(y.substring(s-64,s)));for(y=y.substring(s-64),f=y.length,c=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],s=0;s>2]|=y.charCodeAt(s)<<(s%4<<3);if(c[s>>2]|=128<<(s%4<<3),s>55)for(i(u,c),s=0;s<16;s+=1)c[s]=0;return w=d*8,w=w.toString(16).match(/(.*?)(.{0,8})$/),S=parseInt(w[2],16),k=parseInt(w[1],16)||0,c[14]=S,c[15]=k,i(u,c),u}function v(y){var d=y.length,u=[1732584193,-271733879,-1732584194,271733878],s,f,c,w,S,k;for(s=64;s<=d;s+=64)i(u,l(y.subarray(s-64,s)));for(y=s-64>2]|=y[s]<<(s%4<<3);if(c[s>>2]|=128<<(s%4<<3),s>55)for(i(u,c),s=0;s<16;s+=1)c[s]=0;return w=d*8,w=w.toString(16).match(/(.*?)(.{0,8})$/),S=parseInt(w[2],16),k=parseInt(w[1],16)||0,c[14]=S,c[15]=k,i(u,c),u}function a(y){var d="",u;for(u=0;u<4;u+=1)d+=o[y>>u*8+4&15]+o[y>>u*8&15];return d}function h(y){var d;for(d=0;dc?new ArrayBuffer(0):(w=c-f,S=new ArrayBuffer(w),k=new Uint8Array(S),P=new Uint8Array(this,f,w),k.set(P),S)}}();function g(y){return/[\u0080-\uFFFF]/.test(y)&&(y=unescape(encodeURIComponent(y))),y}function x(y,d){var u=y.length,s=new ArrayBuffer(u),f=new Uint8Array(s),c;for(c=0;c>2]|=d.charCodeAt(s)<<(s%4<<3);return this._finish(f,u),c=h(this._hash),y&&(c=F(c)),this.reset(),c},m.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},m.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},m.prototype.setState=function(y){return this._buff=y.buff,this._length=y.length,this._hash=y.hash,this},m.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},m.prototype._finish=function(y,d){var u=d,s,f,c;if(y[u>>2]|=128<<(u%4<<3),u>55)for(i(this._hash,y),u=0;u<16;u+=1)y[u]=0;s=this._length*8,s=s.toString(16).match(/(.*?)(.{0,8})$/),f=parseInt(s[2],16),c=parseInt(s[1],16)||0,y[14]=f,y[15]=c,i(this._hash,y)},m.hash=function(y,d){return m.hashBinary(g(y),d)},m.hashBinary=function(y,d){var u=p(y),s=h(u);return d?F(s):s},m.ArrayBuffer=function(){this.reset()},m.ArrayBuffer.prototype.append=function(y){var d=U(this._buff.buffer,y,!0),u=d.length,s;for(this._length+=y.byteLength,s=64;s<=u;s+=64)i(this._hash,l(d.subarray(s-64,s)));return this._buff=s-64>2]|=d[f]<<(f%4<<3);return this._finish(s,u),c=h(this._hash),y&&(c=F(c)),this.reset(),c},m.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},m.ArrayBuffer.prototype.getState=function(){var y=m.prototype.getState.call(this);return y.buff=C(y.buff),y},m.ArrayBuffer.prototype.setState=function(y){return y.buff=x(y.buff,!0),m.prototype.setState.call(this,y)},m.ArrayBuffer.prototype.destroy=m.prototype.destroy,m.ArrayBuffer.prototype._finish=m.prototype._finish,m.ArrayBuffer.hash=function(y,d){var u=v(new Uint8Array(y)),s=h(u);return d?F(s):s},m})})(he);var Ve=he.exports;const Ge=be(Ve);var G=function(){return G=Object.assign||function(r){for(var n,e=1,o=arguments.length;e0&&t[t.length-1])&&(a[0]===6||a[0]===2)){e=0;continue}if(a[0]===3&&(!t||a[1]>t[0]&&a[1]r.size)e=r.size;else for(;r.size>e*1e4;)e*=2;for(var o=[],i=Math.ceil(r.size/e),t=0;t3?n[1]:n[0];if(!e)throw new _(b.InvalidToken,"missing assess key field.");var o=null;try{o=JSON.parse($e(n[n.length-1]))}catch{throw new _(b.InvalidToken,"token parse failed.")}if(o==null)throw new _(b.InvalidToken,"putPolicy is null.");if(o.scope==null)throw new _(b.InvalidToken,"scope field is null.");var i=o.scope.split(":")[0];if(!i)throw new _(b.InvalidToken,"resolve bucketName failed.");return{assessKey:e,bucketName:i,scope:o.scope}}var I,E={z0:"z0",z1:"z1",z2:"z2",na0:"na0",as0:"as0",cnEast2:"cn-east-2"},st=(I={},I[E.z0]={srcUphost:["up.qiniup.com"],cdnUphost:["upload.qiniup.com"]},I[E.z1]={srcUphost:["up-z1.qiniup.com"],cdnUphost:["upload-z1.qiniup.com"]},I[E.z2]={srcUphost:["up-z2.qiniup.com"],cdnUphost:["upload-z2.qiniup.com"]},I[E.na0]={srcUphost:["up-na0.qiniup.com"],cdnUphost:["upload-na0.qiniup.com"]},I[E.as0]={srcUphost:["up-as0.qiniup.com"],cdnUphost:["upload-as0.qiniup.com"]},I[E.cnEast2]={srcUphost:["up-cn-east-2.qiniup.com"],cdnUphost:["upload-cn-east-2.qiniup.com"]},I),T=function(r){switch(typeof r){case"string":return r;case"boolean":return r?"true":"false";case"number":return isFinite(r)?r:"";default:return""}},ut=function(r,n,e,o){return n=n||"&",e=e||"=",r===null&&(r=void 0),typeof r=="object"?Object.keys(r).map(function(i){var t=encodeURIComponent(T(i))+e;return Array.isArray(r[i])?r[i].map(function(l){return t+encodeURIComponent(T(l))}).join(n):t+encodeURIComponent(T(r[i]))}).filter(Boolean).join(n):o?encodeURIComponent(T(o))+e+encodeURIComponent(T(r)):""},pe;pe=ut;var O=function(){return O=Object.assign||function(r){for(var n,e=1,o=arguments.length;e0&&t[t.length-1])&&(a[0]===6||a[0]===2)){e=0;continue}if(a[0]===3&&(!t||a[1]>t[0]&&a[1]0&&t[t.length-1])&&(a[0]===6||a[0]===2)){e=0;continue}if(a[0]===3&&(!t||a[1]>t[0]&&a[1]0)&&!(i=o.next()).done;)t.push(i.value)}catch(p){l={error:p}}finally{try{i&&!i.done&&(e=o.return)&&e.call(o)}finally{if(l)throw l.error}}return t},gt=function(){for(var r=[],n=0;n1e4*wt)return this.handleError(new _(b.InvalidFile,"file size exceed maximum value 10000G")),[2];if(this.putExtra.customVars&&!Ke(this.putExtra.customVars))return this.handleError(new _(b.InvalidCustomVars,"customVars key should start width x:")),[2];if(this.putExtra.metadata&&!Je(this.putExtra.metadata))return this.handleError(new _(b.InvalidMetadata,"metadata key should start with x-qn-meta-")),[2];t.label=1;case 1:return t.trys.push([1,4,,5]),this.uploadAt=new Date().getTime(),[4,this.checkAndUpdateUploadHost()];case 2:return t.sent(),[4,this.run()];case 3:return n=t.sent(),this.onComplete(n.data),this.checkAndUnfreezeHost(),this.sendLog(n.reqId,200),[2];case 4:return e=t.sent(),this.aborted?(this.logger.warn("upload is aborted."),this.sendLog("",-2),[2]):(this.clear(),this.logger.error(e),e instanceof M&&(this.sendLog(e.reqId,e.code),this.checkAndFreezeHost(e),o=++this.retryCount<=this.config.retryCount,i=bt.includes(e.code),i&&o)?(this.logger.warn("error auto retry: "+this.retryCount+"/"+this.config.retryCount+"."),this.putFile(),[2]):(this.onError(e),[3,5]));case 5:return[2]}})})},r.prototype.clear=function(){this.xhrList.forEach(function(n){n.onreadystatechange=null,n.abort()}),this.xhrList=[],this.logger.info("cleanup uploading xhr.")},r.prototype.stop=function(){this.logger.info("aborted."),this.clear(),this.aborted=!0},r.prototype.addXhr=function(n){this.xhrList.push(n)},r.prototype.sendLog=function(n,e){var o,i;this.logger.report({code:e,reqId:n,remoteIp:"",upType:"jssdk-h5",size:this.file.size,time:Math.floor(this.uploadAt/1e3),port:ot((o=this.uploadHost)===null||o===void 0?void 0:o.getUrl()),host:at((i=this.uploadHost)===null||i===void 0?void 0:i.getUrl()),bytesSent:this.progress?this.progress.total.loaded:0,duration:Math.floor((new Date().getTime()-this.uploadAt)/1e3)})},r.prototype.getProgressInfoItem=function(n,e,o){return N({size:e,loaded:n,percent:n/e*100},o==null?{}:{fromCache:o})},r}(),_t=function(){var r=function(n,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,i){o.__proto__=i}||function(o,i){for(var t in i)i.hasOwnProperty(t)&&(o[t]=i[t])},r(n,e)};return function(n,e){r(n,e);function o(){this.constructor=n}n.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),B=function(){return B=Object.assign||function(r){for(var n,e=1,o=arguments.length;e0&&t[t.length-1])&&(a[0]===6||a[0]===2)){e=0;continue}if(a[0]===3&&(!t||a[1]>t[0]&&a[1]1024)throw new _(b.InvalidChunkSize,"chunkSize maximum value is 1024");return[4,this.initBeforeUploadChunks()];case 1:v.sent(),e=new Le(function(a){return H(p,void 0,void 0,function(){return D(this,function(h){switch(h.label){case 0:if(this.aborted)throw e.abort(),new Error("pool is aborted");return[4,this.uploadChunk(a)];case 1:return h.sent(),[2]}})})},this.config.concurrentRequestLimit),o=null,i=this.getLocalKey(),t=this.chunks.map(function(a,h){return e.enqueue({chunk:a,index:h})}),v.label=2;case 2:return v.trys.push([2,5,,6]),[4,Promise.all(t)];case 3:return v.sent(),[4,this.mkFileReq()];case 4:return o=v.sent(),[3,6];case 5:throw l=v.sent(),l instanceof M&&(l.code===612||l.code===400)&&Q(i,this.logger),l;case 6:return Q(i,this.logger),[2,o]}})})},n.prototype.uploadChunk=function(e){return H(this,void 0,void 0,function(){var o,i,t,l,p,v,a,h,g,x=this;return D(this,function(C){switch(C.label){case 0:return o=e.index,i=e.chunk,t=this.cachedUploadedList[o],this.logger.info("upload part "+o+", cache:",t),l=this.config.checkByMD5,p=function(){x.usedCacheList[o]=!0,x.updateChunkProgress(i.size,o),x.uploadedList[o]=t,x.updateLocalCache()},t&&!l?(p(),[2]):[4,rt(i)];case 1:return v=C.sent(),this.logger.info("computed part md5.",v),t&&v===t.md5?(p(),[2]):(this.usedCacheList[o]=!1,a=function(U){x.updateChunkProgress(U.loaded,o)},h={body:i,md5:this.config.checkByServer?v:void 0,onProgress:a,onCreate:function(U){return x.addXhr(U)}},this.logger.info("part "+o+" start uploading."),[4,dt(this.token,this.key,e.index+1,this.getUploadInfo(),h)]);case 2:return g=C.sent(),this.logger.info("part "+o+" upload completed."),a({loaded:i.size,total:i.size}),this.uploadedList[o]={etag:g.data.etag,md5:g.data.md5,size:i.size},this.updateLocalCache(),[2]}})})},n.prototype.mkFileReq=function(){return H(this,void 0,void 0,function(){var e,o,i=this;return D(this,function(t){switch(t.label){case 0:return e=B(B(B({parts:this.uploadedList.map(function(l,p){return{etag:l.etag,partNumber:p+1}}),fname:this.putExtra.fname},this.putExtra.mimeType&&{mimeType:this.putExtra.mimeType}),this.putExtra.customVars&&{customVars:this.putExtra.customVars}),this.putExtra.metadata&&{metadata:this.putExtra.metadata}),this.logger.info("parts upload completed, make file.",e),[4,pt(this.token,this.key,this.getUploadInfo(),{onCreate:function(l){return i.addXhr(l)},body:JSON.stringify(e)})];case 1:return o=t.sent(),this.logger.info("finish Resume Progress."),this.updateMkFileProgress(1),[2,o]}})})},n.prototype.initBeforeUploadChunks=function(){return H(this,void 0,void 0,function(){var e,o,i;return D(this,function(t){switch(t.label){case 0:return this.uploadedList=[],this.usedCacheList=[],e=et(this.getLocalKey(),this.logger),e?[3,2]:(this.logger.info("init upload parts from api."),[4,ht(this.token,this.bucketName,this.key,this.uploadHost.getUrl())]);case 1:return o=t.sent(),this.logger.info("initd upload parts of id: "+o.data.uploadId+"."),this.uploadId=o.data.uploadId,this.cachedUploadedList=[],[3,3];case 2:i=["resume upload parts from local cache,","total "+e.data.length+" part,","id is "+e.id+"."],this.logger.info(i.join(" ")),this.cachedUploadedList=e.data,this.uploadId=e.id,t.label=3;case 3:return this.chunks=We(this.file,this.config.chunkSize),this.loaded={mkFileProgress:0,chunks:this.chunks.map(function(l){return 0})},this.notifyResumeProgress(),[2]}})})},n.prototype.getUploadInfo=function(){return{id:this.uploadId,url:this.uploadHost.getUrl()}},n.prototype.getLocalKey=function(){return Qe(this.file.name,this.key,this.file.size)},n.prototype.updateLocalCache=function(){Ze(this.getLocalKey(),{id:this.uploadId,data:this.uploadedList},this.logger)},n.prototype.updateChunkProgress=function(e,o){this.loaded.chunks[o]=e,this.notifyResumeProgress()},n.prototype.updateMkFileProgress=function(e){this.loaded.mkFileProgress=e,this.notifyResumeProgress()},n.prototype.notifyResumeProgress=function(){var e=this;this.progress={total:this.getProgressInfoItem(Ye(this.loaded.chunks)+this.loaded.mkFileProgress,this.file.size+1),chunks:this.chunks.map(function(o,i){var t=e.usedCacheList[i];return e.getProgressInfoItem(e.loaded.chunks[i],o.size,t)}),uploadInfo:{id:this.uploadId,url:this.uploadHost.getUrl()}},this.onData(this.progress)},n}(ge),ie=function(r,n,e,o){function i(t){return t instanceof e?t:new e(function(l){l(t)})}return new(e||(e=Promise))(function(t,l){function p(h){try{a(o.next(h))}catch(g){l(g)}}function v(h){try{a(o.throw(h))}catch(g){l(g)}}function a(h){h.done?t(h.value):i(h.value).then(p,v)}a((o=o.apply(r,n||[])).next())})},oe=function(r,n){var e={label:0,sent:function(){if(t[0]&1)throw t[1];return t[1]},trys:[],ops:[]},o,i,t,l;return l={next:p(0),throw:p(1),return:p(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function p(a){return function(h){return v([a,h])}}function v(a){if(o)throw new TypeError("Generator is already executing.");for(;e;)try{if(o=1,i&&(t=a[0]&2?i.return:a[0]?i.throw||((t=i.return)&&t.call(i),0):i.next)&&!(t=t.call(i,a[1])).done)return t;switch(i=0,t&&(a=[a[0]&2,t.value]),a[0]){case 0:case 1:t=a;break;case 4:return e.label++,{value:a[1],done:!1};case 5:e.label++,i=a[1],a=[0];continue;case 7:a=e.ops.pop(),e.trys.pop();continue;default:if(t=e.trys,!(t=t.length>0&&t[t.length-1])&&(a[0]===6||a[0]===2)){e=0;continue}if(a[0]===3&&(!t||a[1]>t[0]&&a[1]>>1^3988292384:o>>>=1;n[e]=o}return n},r.prototype.append=function(n){for(var e=this.crc,o=0;o>>8^this.table[(e^n[o])&255];this.crc=e},r.prototype.compute=function(){return(this.crc^-1)>>>0},r.prototype.readAsUint8Array=function(n){return ie(this,void 0,void 0,function(){var e;return oe(this,function(o){switch(o.label){case 0:return typeof n.arrayBuffer!="function"?[3,2]:(e=Uint8Array.bind,[4,n.arrayBuffer()]);case 1:return[2,new(e.apply(Uint8Array,[void 0,o.sent()]))];case 2:return[2,new Promise(function(i,t){var l=new FileReader;l.onload=function(){if(l.result==null){t();return}if(typeof l.result=="string"){t();return}i(new Uint8Array(l.result))},l.readAsArrayBuffer(n)})]}})})},r.prototype.file=function(n){return ie(this,void 0,void 0,function(){var e,o,i,t,l,p;return oe(this,function(v){switch(v.label){case 0:return n.size<=R?(e=this.append,[4,this.readAsUint8Array(n)]):[3,2];case 1:return e.apply(this,[v.sent()]),[2,this.compute()];case 2:o=Math.ceil(n.size/R),i=0,v.label=3;case 3:return i0&&t[t.length-1])&&(a[0]===6||a[0]===2)){e=0;continue}if(a[0]===3&&(!t||a[1]>t[0]&&a[1]0&&me(r,n,e-1)};var i=[n.code||"",n.reqId||"",n.host||"",n.remoteIp||"",n.port||"",n.duration||"",n.time||"",n.bytesSent||"",n.upType||"",n.size||""].join(",");o.send(i)}var Ut=function(r,n){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var o=e.call(r),i,t=[],l;try{for(;(n===void 0||n-- >0)&&!(i=o.next()).done;)t.push(i.value)}catch(p){l={error:p}}finally{try{i&&!i.done&&(e=o.return)&&e.call(o)}finally{if(l)throw l.error}}return t},K=function(){for(var r=[],n=0;n0&&t[t.length-1])&&(a[0]===6||a[0]===2)){e=0;continue}if(a[0]===3&&(!t||a[1]>t[0]&&a[1]0)&&!(i=o.next()).done;)t.push(i.value)}catch(p){l={error:p}}finally{try{i&&!i.done&&(e=o.return)&&e.call(o)}finally{if(l)throw l.error}}return t},zt=function(){for(var r=[],n=0;n=n},r.prototype.freeze=function(n){n===void 0&&(n=20);var e=new Date().getTime()+n*1e3;V.set(this.host,e)},r.prototype.unfreeze=function(){V.delete(this.host)},r.prototype.getUrl=function(){return this.protocol+"://"+this.host},r.prototype.getUnfreezeTime=function(){return V.get(this.host)},r}(),Rt=function(){function r(n){n===void 0&&(n=[]),this.initHosts=n,this.cachedHostsMap=new Map}return r.prototype.register=function(n,e,o,i){this.cachedHostsMap.set(n+"@"+e,o.map(function(t){return new Et(t,i)}))},r.prototype.refresh=function(n,e,o){var i,t,l,p;return se(this,void 0,void 0,function(){var v,a,h;return ue(this,function(g){switch(g.label){case 0:return v=this.cachedHostsMap.get(n+"@"+e)||[],v.length>0?[2]:this.initHosts.length>0?(this.register(n,e,this.initHosts,o),[2]):[4,lt(n,e,o)];case 1:return a=g.sent(),(a==null?void 0:a.data)!=null&&(h=zt(((t=(i=a.data.up)===null||i===void 0?void 0:i.acc)===null||t===void 0?void 0:t.main)||[],((p=(l=a.data.up)===null||l===void 0?void 0:l.acc)===null||p===void 0?void 0:p.backup)||[]),this.register(n,e,h,o)),[2]}})})},r.prototype.getUp=function(n,e,o){return se(this,void 0,void 0,function(){var i,t,l;return ue(this,function(p){switch(p.label){case 0:return[4,this.refresh(n,e,o)];case 1:return p.sent(),i=this.cachedHostsMap.get(n+"@"+e)||[],i.length===0?[2,null]:(t=i.filter(function(v){return!v.isFrozen()}),t.length>0?[2,t[0]]:(l=i.slice().sort(function(v,a){return(v.getUnfreezeTime()||0)-(a.getUnfreezeTime()||0)}),[2,l[0]]))}})})},r}();function Lt(r,n,e,o){return r.config&&r.config.forceDirect?(o.info("ues forceDirect mode."),new ae(r,n,e,o)):r.file.size>4*R?(o.info("file size over 4M, use Resume."),new Ct(r,n,e,o)):(o.info("file size less or equal than 4M, use Direct."),new ae(r,n,e,o))}function Pt(r,n,e,o,i){var t=new Ft(e,i==null?void 0:i.disableStatisticsReport,i==null?void 0:i.debugLogLevel,r.name),l={file:r,key:n,token:e,putExtra:o,config:Dt(i,t)},p=new Rt(l.config.uphost);return new De(function(v){var a=Lt(l,{onData:function(h){return v.next(h)},onError:function(h){return v.error(h)},onComplete:function(h){return v.complete(h)}},p,t);return a.putFile(),a.stop.bind(a)})}var L=function(){return L=Object.assign||function(r){for(var n,e=1,o=arguments.length;e0)&&!(i=o.next()).done;)t.push(i.value)}catch(p){l={error:p}}finally{try{i&&!i.done&&(e=o.return)&&e.call(o)}finally{if(l)throw l.error}}return t},Y=function(){for(var r=[],n=0;n`上传文件到${we(p.value)?"根":p.value.substring(0,p.value.length-1)}目录`),C=s=>{p.value=s,l.value=!0,t.value=!0,Ae.netDiskManage.netDiskManageToken().then(f=>{v.value=f.token,t.value=!1}).catch(()=>{l.value=!1})},U=()=>{a.value.length>0&&a.value.length!==h.value.length?_e.confirm({title:"关闭会取消未上传的文件,确认关闭吗?",icon:$(xe),onOk:F}):F()},F=()=>{l.value=!1,t.value=!1,p.value="",v.value="",g.value=[],u()},m=s=>{const{file:f,onProgress:c,onError:w,onSuccess:S}=s,P=Pt(f,`${p.value}${f.name}`,v.value).subscribe({next:z=>{c==null||c({percent:z.total.percent})},error:z=>{w==null||w(z),y(z,f)},complete:z=>{h.value.push(P),S==null||S(z),d(f)}});a.value.push(P)},y=(s,f)=>{const c=g.value.find(w=>w.originFileObj===f);c&&(c.status="error"),te.error({message:"上传进度提醒",description:`上传${f==null?void 0:f.name}文件失败!错误信息:${s.code===614?"上传文件已存在":s.message}`,duration:0})},d=s=>{const f=g.value.find(c=>c.originFileObj===s);f&&(f.status="success"),te.success({message:`上传${f==null?void 0:f.name}成功`})},u=async()=>{if(a.value.length<=0)return;const s=a.value,f=h.value;if(a.value=[],h.value=[],s.length!==f.length)for(let c=0;c(Fe(),Oe("div",qt,[$(J(ke),{title:x.value,width:400,visible:l.value,"mask-closable":!1,onClose:U},{default:W(()=>[$(J(Ce),{spinning:t.value,class:"upload-inner-box"},{default:W(()=>[$(J(Se).Dragger,{ref_key:"uploadRef",ref:i,"file-list":g.value,"onUpdate:fileList":f[0]||(f[0]=c=>g.value=c),class:"upload",drag:"",action:"noaction",multiple:!0,"custom-request":m},{default:W(()=>[Bt,Mt]),_:1},8,["file-list"])]),_:1},8,["spinning"])]),_:1},8,["title","visible"])]))}});export{Gt as _}; diff --git a/assets/hero-D9-Ux1OM.js b/assets/hero-D9-Ux1OM.js new file mode 100644 index 000000000..875a77cf5 --- /dev/null +++ b/assets/hero-D9-Ux1OM.js @@ -0,0 +1 @@ +import{y as o}from"./index-CPnd3GcN.js";function t(e){return o({url:"/demo/wzry/hero_list",method:"get",params:e})}function l(e){return o({url:"/demo/lol/hero_list",method:"get",params:e})}function n({id:e}){return o({url:`/demo/lol/hero_info/${e}`,method:"get"})}export{l as a,t as b,n as g}; diff --git a/assets/heroInfo-BLl5eolZ.css b/assets/heroInfo-BLl5eolZ.css new file mode 100644 index 000000000..33347b8df --- /dev/null +++ b/assets/heroInfo-BLl5eolZ.css @@ -0,0 +1 @@ +.skins[data-v-7197b8bd] .ant-carousel .slick-dots{position:relative;height:auto}.skins[data-v-7197b8bd] .ant-carousel .slick-slide img{display:block;max-width:80%;margin:auto;border:5px solid #fff}.skins[data-v-7197b8bd] .ant-carousel .slick-arrow{display:none!important}.skins[data-v-7197b8bd] .ant-carousel .slick-thumb{bottom:0}.skins[data-v-7197b8bd] .ant-carousel .slick-thumb li{width:60px;height:45px}.skins[data-v-7197b8bd] .ant-carousel .slick-thumb li img{display:block;width:100%;height:100%;filter:grayscale(100%)}.skins[data-v-7197b8bd] .ant-carousel .slick-thumb li.slick-active img{filter:grayscale(0%)}.posters[data-v-7197b8bd] .ant-carousel .slick-arrow.custom-slick-arrow{z-index:1;width:25px;height:25px;transition:ease all .3s;opacity:.3;background-color:#1f2d3d1c;color:#fff;font-size:25px}.posters[data-v-7197b8bd] .ant-carousel .slick-arrow.custom-slick-arrow:before{display:none}.posters[data-v-7197b8bd] .ant-carousel .slick-arrow.custom-slick-arrow:hover{opacity:.5;color:#fff} diff --git a/assets/heroInfo-D4smN-Wd.js b/assets/heroInfo-D4smN-Wd.js new file mode 100644 index 000000000..99a30de0b --- /dev/null +++ b/assets/heroInfo-D4smN-Wd.js @@ -0,0 +1 @@ +import{d as y,$ as w,f as m,o as x,W as a,X as I,Y as s,k as o,a6 as n,u as g,a5 as r,ae as c,F as l,ak as $,ad as h}from"./vue-Dbi1xauY.js";import{d as v,_ as A}from"./index-CPnd3GcN.js";import{g as V}from"./hero-D9-Ux1OM.js";import{u as B}from"./tabsView-D314N5Ym.js";import{aq as C,ar as L,ac as q,as as z}from"./antdv-CA3HmnGF.js";const N={class:"custom-slick-arrow",style:{"z-index":"1",left:"10px"}},S={class:"custom-slick-arrow",style:{right:"10px"}},T=["src"],F=["href"],H=["src"],D=["src"],E={key:0,class:"grid gap-[10px]"},M=["src"],P=y({name:"LoLHeroInfo",__name:"heroInfo",setup(R){const i=w(),k=B(),e=m({}),d=m(!0);return x(async()=>{const u=await V({id:i.params.id});d.value=!1,e.value=u,k.updateTabTitle(`${i.meta.title}(${e.value.title})`)}),(u,W)=>{const _=C,b=L,f=q,p=z;return a(),I(f,{bordered:!1,loading:d.value},{default:s(()=>[o(p,{style:{width:"25%"},hoverable:!1,bordered:!1},{default:s(()=>[o(f,{class:"posters",bordered:!1,"body-style":{padding:"24px"}},{cover:s(()=>[o(_,{arrows:"",dots:!1},{prevArrow:s(()=>[n("div",N,[o(g(v),{icon:"ant-design:left-circle-outlined",size:"28"})])]),nextArrow:s(()=>[n("div",S,[o(g(v),{icon:"ant-design:right-circle-outlined",size:"28"})])]),default:s(()=>[(a(!0),r(l,null,c(e.value.posters,t=>(a(),r("img",{key:t,src:t,alt:""},null,8,T))),128))]),_:1})]),default:s(()=>[o(b,{title:`${e.value.name} ${e.value.title}`},{description:s(()=>[n("a",{href:`https://101.qq.com/#/hero-detail?heroid=${e.value.heroId}&datatype=5v5`,target:"_blank"}," 详细资料 ",8,F)]),_:1},8,["title"])]),_:1})]),_:1}),o(p,{class:"skins",style:{width:"75%"},hoverable:!1,bordered:!1},{default:s(()=>[o(_,{arrows:"",effect:"fade","dots-class":"slick-dots slick-thumb"},{customPaging:s(t=>[n("a",null,[n("img",{src:e.value.skins[t.i]},null,8,H)])]),default:s(()=>[(a(!0),r(l,null,c(e.value.skins,t=>(a(),r("div",{key:t},[n("img",{src:t},null,8,D)]))),128))]),_:1}),e.value.banAudio||e.value.selectAudio?(a(),r("figure",E,[n("figcaption",null,$(e.value.title)+"有话说:",1),(a(!0),r(l,null,c([e.value.banAudio,e.value.selectAudio],t=>(a(),r(l,{key:t},[t?(a(),r("audio",{key:0,controls:"",src:t},null,8,M)):h("",!0)],64))),128))])):h("",!0)]),_:1})]),_:1},8,["loading"])}}}),K=A(P,[["__scopeId","data-v-7197b8bd"]]);export{K as default}; diff --git a/assets/huawei-charge-BQW_wHW1.css b/assets/huawei-charge-BQW_wHW1.css new file mode 100644 index 000000000..372bc5f85 --- /dev/null +++ b/assets/huawei-charge-BQW_wHW1.css @@ -0,0 +1 @@ +.huawei-charge[data-v-37f0be19]{position:absolute;bottom:20vh;left:50vw;width:300px;height:400px;transform:translate(-50%)}.huawei-charge .column-15[data-v-37f0be19]{width:100%}.huawei-charge li[data-v-37f0be19]:nth-child(15){top:50%;left:59px;width:26px;height:24px;transform:translate(-50%,-50%);animation:move-to-top-37f0be19 6s ease-in-out -2.1971884s infinite}.huawei-charge .column-14[data-v-37f0be19]{width:93.33333333%}.huawei-charge li[data-v-37f0be19]:nth-child(14){top:50%;left:46px;width:17px;height:16px;transform:translate(-50%,-50%);animation:move-to-top-37f0be19 8s ease-in-out -.48057605s infinite}.huawei-charge .column-13[data-v-37f0be19]{width:86.66666667%}.huawei-charge li[data-v-37f0be19]:nth-child(13){top:50%;left:70px;width:16px;height:16px;transform:translate(-50%,-50%);animation:move-to-top-37f0be19 5s ease-in-out -1.27349446s infinite}.huawei-charge .column-12[data-v-37f0be19]{width:80%}.huawei-charge li[data-v-37f0be19]:nth-child(12){top:50%;left:44px;width:27px;height:18px;transform:translate(-50%,-50%);animation:move-to-top-37f0be19 6s ease-in-out -3.89012189s infinite}.huawei-charge .column-11[data-v-37f0be19]{width:73.33333333%}.huawei-charge li[data-v-37f0be19]:nth-child(11){top:50%;left:16px;width:29px;height:30px;transform:translate(-50%,-50%);animation:move-to-top-37f0be19 6s ease-in-out -7.18741ms infinite}.huawei-charge .column-10[data-v-37f0be19]{width:66.66666667%}.huawei-charge li[data-v-37f0be19]:nth-child(10){top:50%;left:58px;width:25px;height:20px;transform:translate(-50%,-50%);animation:move-to-top-37f0be19 8s ease-in-out -.35232518s infinite}.huawei-charge .column-9[data-v-37f0be19]{width:60%}.huawei-charge li[data-v-37f0be19]:nth-child(9){top:50%;left:18px;width:30px;height:18px;transform:translate(-50%,-50%);animation:move-to-top-37f0be19 4s ease-in-out -.663097s infinite}.huawei-charge .column-8[data-v-37f0be19]{width:53.33333333%}.huawei-charge li[data-v-37f0be19]:nth-child(8){top:50%;left:9px;width:26px;height:29px;transform:translate(-50%,-50%);animation:move-to-top-37f0be19 9s ease-in-out -4.64509423s infinite}.huawei-charge .column-7[data-v-37f0be19]{width:46.66666667%}.huawei-charge li[data-v-37f0be19]:nth-child(7){top:50%;left:21px;width:19px;height:24px;transform:translate(-50%,-50%);animation:move-to-top-37f0be19 7s ease-in-out -2.02163243s infinite}.huawei-charge .column-6[data-v-37f0be19]{width:40%}.huawei-charge li[data-v-37f0be19]:nth-child(6){top:50%;left:38px;width:25px;height:27px;transform:translate(-50%,-50%);animation:move-to-top-37f0be19 9s ease-in-out -4.2209893s infinite}.huawei-charge .column-5[data-v-37f0be19]{width:33.33333333%}.huawei-charge li[data-v-37f0be19]:nth-child(5){top:50%;left:14px;width:17px;height:25px;transform:translate(-50%,-50%);animation:move-to-top-37f0be19 6s ease-in-out -3.62505054s infinite}.huawei-charge .column-4[data-v-37f0be19]{width:26.66666667%}.huawei-charge li[data-v-37f0be19]:nth-child(4){top:50%;left:55px;width:26px;height:23px;transform:translate(-50%,-50%);animation:move-to-top-37f0be19 8s ease-in-out -4.45426445s infinite}.huawei-charge .column-3[data-v-37f0be19]{width:20%}.huawei-charge li[data-v-37f0be19]:nth-child(3){top:50%;left:46px;width:18px;height:16px;transform:translate(-50%,-50%);animation:move-to-top-37f0be19 5s ease-in-out -3.24847513s infinite}.huawei-charge .column-2[data-v-37f0be19]{width:13.33333333%}.huawei-charge li[data-v-37f0be19]:nth-child(2){top:50%;left:60px;width:15px;height:18px;transform:translate(-50%,-50%);animation:move-to-top-37f0be19 4s ease-in-out -4.36963847s infinite}.huawei-charge .column-1[data-v-37f0be19]{width:6.66666667%}.huawei-charge li[data-v-37f0be19]:nth-child(1){top:50%;left:27px;width:22px;height:28px;transform:translate(-50%,-50%);animation:move-to-top-37f0be19 6s ease-in-out -3.05398645s infinite}.huawei-charge .column-0[data-v-37f0be19]{width:0%}.huawei-charge li[data-v-37f0be19]:nth-child(0){top:50%;left:49px;width:24px;height:19px;transform:translate(-50%,-50%);animation:move-to-top-37f0be19 7s ease-in-out -3.0000115s infinite}@keyframes trotate-37f0be19{50%{border-radius:45%/42% 38% 58% 49%}to{transform:translate(-50%,-50%) rotate(720deg)}}@keyframes move-to-top-37f0be19{90%{opacity:1}to{transform:translate(-50%,-180px);opacity:.1}}@keyframes hue-rotate-37f0be19{to{filter:contrast(15) hue-rotate(360deg)}}.huawei-charge .number[data-v-37f0be19]{position:absolute;z-index:10;top:27%;width:300px;color:#fff;font-size:32px;text-align:center}.huawei-charge .contrast[data-v-37f0be19]{width:300px;height:400px;overflow:hidden;animation:hue-rotate-37f0be19 10s infinite linear;background-color:#000;filter:contrast(15) hue-rotate(0)}.huawei-charge .contrast .circle[data-v-37f0be19]{position:relative;box-sizing:border-box;width:300px;height:300px;filter:blur(8px)}.huawei-charge .contrast .circle[data-v-37f0be19]:after{content:"";position:absolute;top:40%;left:50%;width:200px;height:200px;transform:translate(-50%,-50%) rotate(0);animation:trotate-37f0be19 10s infinite linear;border-radius:42% 38% 62% 49%/45%;background-color:#00ff6f}.huawei-charge .contrast .circle[data-v-37f0be19]:before{content:"";position:absolute;z-index:10;top:40%;left:50%;width:176px;height:176px;transform:translate(-50%,-50%);border-radius:50%;background-color:#000}.huawei-charge .contrast .bubbles[data-v-37f0be19]{position:absolute;bottom:0;left:50%;width:100px;height:40px;transform:translate(-50%);border-radius:100px 100px 0 0;background-color:#00ff6f;filter:blur(5px)}.huawei-charge .contrast .bubbles li[data-v-37f0be19]{position:absolute;border-radius:50%;background:#00ff6f}.huawei-charge .charging[data-v-37f0be19]{font-size:20px;text-align:center} diff --git a/assets/huawei-charge-Bss6kDPo.js b/assets/huawei-charge-Bss6kDPo.js new file mode 100644 index 000000000..ca7919342 --- /dev/null +++ b/assets/huawei-charge-Bss6kDPo.js @@ -0,0 +1 @@ +import{d as o,W as s,a5 as i,a6 as a,ak as t,F as u,ae as d,m as r,A as n,a7 as l,a8 as p}from"./vue-Dbi1xauY.js";import{_ as h}from"./index-CPnd3GcN.js";import"./antdv-CA3HmnGF.js";const g=o({name:"HuaweiCharge",props:{battery:{type:Object,default:()=>({})},calcDischargingTime:{type:String,default:""},batteryStatus:{type:String,validator:e=>["充电中","已充满","已断开电源"].includes(e)}}}),m=e=>(l("data-v-37f0be19"),e=e(),p(),e),b={class:"huawei-charge"},_={class:"number"},F={class:"contrast"},v=m(()=>a("div",{class:"circle"},null,-1)),y={class:"bubbles"},f={class:"charging"};function S(e,D,T,w,B,k){return s(),i("div",b,[a("div",_,t(e.battery.level.toFixed(0))+"%",1),a("div",F,[v,a("ul",y,[(s(),i(u,null,d(15,c=>a("li",{key:c})),64))])]),a("div",f,[a("div",null,t(e.batteryStatus),1),r(a("div",null," 剩余可使用时间:"+t(e.calcDischargingTime),513),[[n,Number.isFinite(e.battery.dischargingTime)&&e.battery.dischargingTime!=0]]),r(a("span",null," 距离电池充满需要:"+t(e.calcDischargingTime),513),[[n,Number.isFinite(e.battery.chargingTime)&&e.battery.chargingTime!=0]])])])}const $=h(g,[["render",S],["__scopeId","data-v-37f0be19"]]);export{$ as default}; diff --git a/assets/index-4XSHMzfV.css b/assets/index-4XSHMzfV.css new file mode 100644 index 000000000..b633bbc12 --- /dev/null +++ b/assets/index-4XSHMzfV.css @@ -0,0 +1 @@ +.btn-rows button[data-v-03d6d9f3]{margin-right:12px} diff --git a/assets/index-B190qUs9.js b/assets/index-B190qUs9.js new file mode 100644 index 000000000..c605dde27 --- /dev/null +++ b/assets/index-B190qUs9.js @@ -0,0 +1 @@ +import{u as m}from"./dynamic-table-D_nTPUiI.js";import{A as l}from"./index-CPnd3GcN.js";import"./ApiSelect.vue_vue_type_script_setup_true_lang-C4dv5akm.js";import{U as r}from"./antdv-CA3HmnGF.js";import{f as p}from"./dateUtil-CLVblcqH.js";import{d as f,W as h,X as T,u as o,k as n,G as x,a as _}from"./vue-Dbi1xauY.js";import"./schema-form.vue_vue_type_script_setup_true_lang-DYh3o6wW.js";import"./is-bed24ebq.js";import"./index-CDgH2F_h.js";function I(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!_(e)}const D=f({name:"SystemScheduleTaskLog",__name:"index",setup(e){const[d]=m(),i=t=>{switch(t){case 0:return"red";case 1:return"green"}},c=t=>{switch(t){case 0:return"失败";case 1:return"成功"}},u=[{title:"ID",dataIndex:"id",width:80,hideInSearch:!0},{title:"任务编号",dataIndex:["task","id"],width:80},{title:"任务名称",dataIndex:["task","name"],width:140},{title:"异常信息",dataIndex:"detail",customRender:({record:t})=>t.detail??"无"},{title:"耗时",dataIndex:"consumeTime",width:80,customRender:({record:t})=>n(r,null,{default:()=>[t.consumeTime,x("ms")]})},{title:"状态",dataIndex:"status",width:100,customRender:({record:t})=>{let a;const s=~~t.status;return n(r,{color:i(s)},I(a=c(s))?a:{default:()=>[a]})}},{title:"执行时间",dataIndex:"createdAt",width:165,customRender:({record:t})=>p(t.createdAt)}];return(t,a)=>(h(),T(o(d),{"header-title":"任务日志","data-request":o(l).systemLog.logTaskList,search:!1,columns:u,size:"middle"},null,8,["data-request"]))}});export{D as default}; diff --git a/assets/index-B9vsgMem.js b/assets/index-B9vsgMem.js new file mode 100644 index 000000000..99ac6fa42 --- /dev/null +++ b/assets/index-B9vsgMem.js @@ -0,0 +1 @@ +import{d as v,aj as h,$ as y,f as k,w as b,W as t,X as r,Y as o,k as s,G as C,ak as w,a5 as T,ae as g,F as K,u as l,ao as x,af as B,ac as D}from"./vue-Dbi1xauY.js";import{am as N,ac as P,T as u}from"./antdv-CA3HmnGF.js";const j=v({name:"DemosNestedRoutes",__name:"index",setup(R){const c=h(),m=y(),i=[{title:"路由一",name:"demos-nested-routes-one"},{title:"路由二",name:"demos-nested-routes-two"},{title:"路由三",name:"demos-nested-routes-three"}],n=k(),_=e=>{n.value=e,c.push({name:e})};return b(()=>m.name,e=>{n.value=e},{immediate:!0}),(e,$)=>{const d=N,p=D("router-view"),f=P;return t(),r(f,{class:"h-full"},{default:o(()=>[s(d,{level:3},{default:o(()=>[C(w(e.$route.fullPath),1)]),_:1}),s(l(u),{activeKey:n.value,type:"card",onTabClick:_},{default:o(()=>[(t(),T(K,null,g(i,a=>s(l(u).TabPane,{key:a.name,tab:a.title},null,8,["tab"])),64))]),_:1},8,["activeKey"]),s(p,null,{default:o(({Component:a})=>[(t(),r(x,null,[(t(),r(B(a),{key:e.$route.fullPath}))],1024))]),_:1})]),_:1})}}});export{j as default}; diff --git a/assets/index-BLgoZEx9.js b/assets/index-BLgoZEx9.js new file mode 100644 index 000000000..cf86871da --- /dev/null +++ b/assets/index-BLgoZEx9.js @@ -0,0 +1 @@ +import{g as c,f as b,t as x}from"./columns-QsbRxPAv.js";import{an as _,ao as C,ap as k,U as T,e as v,ae as R,aj as p,ac as E}from"./antdv-CA3HmnGF.js";import{k as o,G as d,d as q,f as F,c as O,W as U,a5 as V,Y as s,u as n}from"./vue-Dbi1xauY.js";import{u as j}from"./dynamic-table-D_nTPUiI.js";import"./index-CPnd3GcN.js";import"./ApiSelect.vue_vue_type_script_setup_true_lang-C4dv5akm.js";import{w as g}from"./common-Cs_BZJVP.js";import"./schema-form.vue_vue_type_script_setup_true_lang-DYh3o6wW.js";import"./is-bed24ebq.js";import"./index-CDgH2F_h.js";import"./dateUtil-CLVblcqH.js";const D=[{title:"姓名",dataIndex:"name",sorter:!0,defaultEditable:!0,editable:({index:e})=>e>0,formItemProps:{defaultValue:"李白",rules:[{required:!0,message:"请输入姓名"}]},editFormItemProps:{extendSearchFormProps:!1,rules:[{required:!0,message:"请输入姓名"}]}},{title:"性别",dataIndex:"gender",formItemProps:{component:"Select",componentProps:({formInstance:e,formModel:t})=>({options:[{label:"男",value:1},{label:"女",value:0}],onChange(){e==null||e.updateSchema({field:"clothes",componentProps:{options:c(t.gender)}}),t.clothes=""}})},editFormItemProps:{extendSearchFormProps:!0,rules:[{required:!0,type:"number",message:"请选择性别"}],componentProps:({formInstance:e,formModel:t,tableRowKey:l})=>({onChange(){e==null||e.updateSchema({field:`${l}.clothes`,componentProps:{options:c(t.gender)}}),t.clothes=""}})},customRender:({record:e})=>["女","男"][e.gender]},{title:"衣服",dataIndex:"clothes",formItemProps:{component:"Select",componentProps:({formModel:e})=>({options:c(e.gender)})}},{title:"图片",dataIndex:"img",hideInSearch:!0,formItemProps:{component:"Upload",defaultValue:[{uid:"-1",name:"image.png",status:"done",url:"https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png"}],componentProps:{maxCount:1,listType:"picture-card",action:"https://www.mocky.io/v2/5cc8019d300000980a055e76"},componentSlots:({formModel:e})=>({default:()=>{var t;return(t=e.img)!=null&&t.length?"":o("div",null,[o(_,null,null),o("div",{class:"mt-8px"},[d("Upload")])])}})},customRender:({record:e})=>o(C,{width:100,src:e.img},null)},{title:"价格",dataIndex:"price",editFormItemProps:{component:"InputNumber",rules:[{required:!0,message:"请输入价格!"}]},customRender:({record:e})=>`${e.price}元`},{title:"状态",dataIndex:"status",formItemProps:{component:"Select",componentProps:({formInstance:e,schema:t})=>({showSearch:!0,filterOption:!1,request:()=>b(),onSearch:k(async l=>{t.value.loading=!0;const i={field:t.value.field,componentProps:{options:[]}};e==null||e.updateSchema([i]);const m=await b(l).finally(()=>t.value.loading=!1);i.componentProps.options=m,e==null||e.updateSchema([i])},500),onChange(l){}})},editFormItemProps:{rules:[{required:!0,type:"number",message:"请选择状态"}]},customRender:({record:e})=>o(T,{color:e.status==1?"red":"default"},{default:()=>[["已售罄","热卖中"][e.status]]})}],Y=q({name:"EditRowTable",__name:"index",setup(e){const[t]=j(),l=F("cell"),i=async a=>(await g(500),{...a,items:x}),m=O(()=>[...D,{title:"操作",hideInTable:l.value==="cell",width:200,dataIndex:"ACTION",actions:({record:a},r)=>{const{startEditable:u,cancelEditable:h,isEditable:P,getEditFormModel:f,validateRow:S}=r;return P(a.id)?[{label:"保存",onClick:async()=>{await S(a.id),v.loading({content:"保存中...",key:a.id}),f(a.id),await g(2e3),h(a.id),v.success({content:"保存成功!",key:a.id,duration:2})}},{label:"取消",onClick:()=>{h(a.id)}}]:[{label:"编辑",onClick:()=>{u(a.id,a)}}]}}]),w=(a,r,u)=>{},y=async(a,r,u)=>{await g(2e3)};return(a,r)=>(U(),V("div",null,[o(n(R),{message:"可编辑行表格",type:"info","show-icon":""},{description:s(()=>[d(" 可编辑行表格-可编辑行表格使用示例 ")]),_:1}),o(n(E),{title:"可编辑行表格基本使用示例",style:{"margin-top":"20px"}},{default:s(()=>[o(n(t),{size:"small",bordered:"","data-request":i,columns:m.value,"editable-type":l.value,"on-save":y,"on-cancel":w,"row-key":"id"},{toolbar:s(()=>[o(n(p),{ref:"select",value:l.value,"onUpdate:value":r[0]||(r[0]=u=>l.value=u)},{default:s(()=>[o(n(p).Option,{value:"single"},{default:s(()=>[d("单行编辑")]),_:1}),o(n(p).Option,{value:"multiple"},{default:s(()=>[d("多行编辑")]),_:1}),o(n(p).Option,{value:"cell"},{default:s(()=>[d("可编辑单元格")]),_:1})]),_:1},8,["value"])]),_:1},8,["columns","editable-type"])]),_:1})]))}});export{Y as default}; diff --git a/assets/index-BMGn7lG7.js b/assets/index-BMGn7lG7.js new file mode 100644 index 000000000..b7d861901 --- /dev/null +++ b/assets/index-BMGn7lG7.js @@ -0,0 +1 @@ +import"./ApiSelect.vue_vue_type_script_setup_true_lang-C4dv5akm.js";import{e as c,ac as u,ae as d}from"./antdv-CA3HmnGF.js";import{_ as m}from"./index-CPnd3GcN.js";import{_ as f}from"./schema-form.vue_vue_type_script_setup_true_lang-DYh3o6wW.js";import{d as _,f as b,W as v,a5 as P,k as l,Y as n,u as i,_ as h,a7 as g,a8 as y,a6 as q}from"./vue-Dbi1xauY.js";import"./is-bed24ebq.js";import"./index-CDgH2F_h.js";import"./dateUtil-CLVblcqH.js";const k=[{field:"field1.dd.cc",component:"Input",label:"字段1",colProps:{span:8},required:!0},{field:"field2",component:"Input",label:"字段2",colProps:{span:8},required:!0},{field:"id",label:"id",required:!0,defaultValue:0,component:"InputNumber",vShow:!1},{field:"field3",component:"DatePicker",label:"字段3",colProps:{span:8},required:!0},{field:"field33",component:"DatePicker",label:"字段33",colProps:{span:8},componentProps:{valueFormat:"YYYY-MM-DD"},rules:[{required:!0,type:"string"}]},{field:"field4",component:"Select",label:"字段4",colProps:{span:8},componentProps:{mode:"multiple",options:[{label:"选项1",value:"1",key:"1"},{label:"选项2",value:"2",key:"2"}]},rules:[{required:!0,message:"请输入aa",type:"array"}]},{field:"field441",component:"Input",label:"自定义校验",colProps:{span:8},rules:[{required:!0,validator:async(o,e)=>e?e==="1"?Promise.reject("值不能为1"):Promise.resolve():Promise.reject("值不能为空"),trigger:"change"}]},{field:"field5",component:"CheckboxGroup",label:"字段5",colProps:{span:8},componentProps:{options:[{label:"选项1",value:"1"},{label:"选项2",value:"2"}]},rules:[{required:!0}]},{field:"field7",component:"RadioGroup",label:"字段7",colProps:{span:8},componentProps:{options:[{label:"选项1",value:"1"},{label:"选项2",value:"2"}]},rules:[{required:!0,message:"覆盖默认生成的校验信息"}]},{field:"field8",component:"Input",label:"后端异步验证",colProps:{span:8},helpMessage:["本字段演示异步验证","本地规则:必须填写","后端规则:不能包含admin"],rules:[{required:!0,message:"请输入数据"},{validator(o,e=""){const{promise:a,resolve:s,reject:r}=Promise.withResolvers();return setTimeout(()=>{e.includes("admin")?r("该字段不能包含admin关键字"):s()},100),a}}]}],x=o=>(g("data-v-0551fdf8"),o=o(),y(),o),I=x(()=>q("a",{class:"text-blue-500",target:"_blank",href:"https://github.com/buqiyuan/vue3-antdv-admin/blob/main/src/views/demos/form/rule-form/index.vue"}," 查看源码 ",-1)),S=_({name:"DemosFormRuleForm",__name:"index",setup(o){const e=b(),a={schemas:k,labelWidth:120,actionColOptions:{span:24}};function s(r){var t;(t=e.value)==null||t.validate().then(()=>{c.success(JSON.stringify(r))})}return(r,t)=>{const p=u;return v(),P("div",null,[l(i(d),{message:"验证表单",description:"动态验证表单",type:"info","show-icon":"",style:{"margin-bottom":"12px"}},{description:n(()=>[I]),_:1}),l(p,null,{default:n(()=>[l(i(f),h({ref_key:"dynamicForm",ref:e},a,{onSubmit:s}),null,16)]),_:1})])}}}),M=m(S,[["__scopeId","data-v-0551fdf8"]]);export{M as default}; diff --git a/assets/index-BOynXUZK.js b/assets/index-BOynXUZK.js new file mode 100644 index 000000000..e05501435 --- /dev/null +++ b/assets/index-BOynXUZK.js @@ -0,0 +1 @@ +import{f}from"./index-CDgH2F_h.js";import{A as $,_ as D}from"./index-CPnd3GcN.js";import{bq as F,br as j,Q as r,U as x,ac as p}from"./antdv-CA3HmnGF.js";import{d as S,c as m,W as k,X as V,au as A,av as G,u as e,r as R,I as T,o as q,j as E,a5 as M,k as a,Y as t,G as s,ak as l,F as H,ae as O,a6 as _}from"./vue-Dbi1xauY.js";import"./is-bed24ebq.js";const b=S({__name:"index",props:{...F(),strokeColor:{type:[String,Object,Function]}},setup(g){const n=g,I=m(()=>typeof n.strokeColor=="function"?{...n,strokeColor:n.strokeColor(n.percent)}:{...n,strokeColor:n.strokeColor});return(d,c)=>(k(),V(e(j),A(G(I.value)),null,16))}}),Q={class:"sys-server-stat-container"},W={class:"disk-info"},X={class:"disk-info--item"},Y={class:"disk-info"},J={class:"disk-info--item"},K=S({name:"SystemMonitorServe",__name:"index",setup(g){let n;const I=R({runtime:{os:"",arch:"",nodeVersion:"",npmVersion:""},disk:{size:0,used:0,available:0},memory:{total:0,available:0},cpu:{manufacturer:"",brand:"",physicalCores:0,model:"",speed:0,rawCurrentLoad:0,rawCurrentLoadIdle:0,coresLoad:[]}}),{runtime:d,disk:c,memory:u,cpu:i}=T(I),h=m(()=>({size:f(c.value.size),used:f(c.value.used),available:f(c.value.available)})),y=m(()=>({total:f(u.value.total),free:f(u.value.available),used:f(u.value.total-u.value.available)})),U=m(()=>c.value.size<=0?0:Math.floor(c.value.used/c.value.size*100)),B=m(()=>u.value.total<=0?0:Math.floor((u.value.total-u.value.available)/u.value.total*100)),N=m(()=>`${i.value.manufacturer} ${i.value.brand} @ ${i.value.speed}GHz`),z=async()=>{const o=await $.systemServe.serveStat();d.value=o.runtime,c.value=o.disk,u.value=o.memory,i.value=o.cpu};z();const v=o=>o<30?"#5cb87a":o<70?"#e6a23c":"#f53f3f",L=(o,C)=>C<=0?0:Math.floor(o/C*100);return q(()=>{n=setInterval(z,1e4)}),E(()=>{clearInterval(n)}),(o,C)=>(k(),M("div",Q,[a(e(p),{class:"stat-card",title:"运行环境"},{default:t(()=>[a(e(r),{column:1,"label-style":{width:"50%"}},{default:t(()=>[a(e(r).Item,{label:"操作系统"},{default:t(()=>[s(l(e(d).os),1)]),_:1}),a(e(r).Item,{label:"系统架构"},{default:t(()=>[s(l(e(d).arch),1)]),_:1}),a(e(r).Item,{label:"Node版本"},{default:t(()=>[a(e(x),{color:"processing",size:"small"},{default:t(()=>[s("v"+l(e(d).nodeVersion),1)]),_:1})]),_:1}),a(e(r).Item,{label:"NPM版本"},{default:t(()=>[a(e(x),{color:"processing",size:"small"},{default:t(()=>[s("v"+l(e(d).npmVersion),1)]),_:1})]),_:1})]),_:1})]),_:1}),a(e(p),{class:"stat-card",title:"CPU"},{default:t(()=>[a(e(r),{column:1,"label-style":{width:"50%"},"content-style":{width:"50%"}},{default:t(()=>[a(e(r).Item,{label:"详细"},{default:t(()=>[s(l(N.value),1)]),_:1}),a(e(r).Item,{label:"负载"},{default:t(()=>[a(b,{percent:L(e(i).rawCurrentLoad,e(i).rawCurrentLoadIdle+e(i).rawCurrentLoad),"stroke-color":v},null,8,["percent"])]),_:1}),(k(!0),M(H,null,O(e(i).coresLoad,(w,P)=>(k(),V(e(r).Item,{key:P,label:`核心${P+1} 负载`},{default:t(()=>[a(b,{percent:L(w.rawLoad,w.rawLoad+w.rawLoadIdle),"stroke-color":v},null,8,["percent"])]),_:2},1032,["label"]))),128))]),_:1})]),_:1}),a(e(p),{class:"stat-card",title:"磁盘"},{default:t(()=>[_("div",W,[a(e(r),{class:"disk-info--item",column:1},{default:t(()=>[a(e(r).Item,{label:"总空间"},{default:t(()=>[s(l(h.value.size),1)]),_:1}),a(e(r).Item,{label:"已用空间"},{default:t(()=>[s(l(h.value.used),1)]),_:1}),a(e(r).Item,{label:"可用空间"},{default:t(()=>[s(l(h.value.available),1)]),_:1})]),_:1}),_("div",X,[a(b,{type:"dashboard",percent:U.value,width:100,"stroke-color":v},null,8,["percent"])])])]),_:1}),a(e(p),{class:"stat-card",title:"内存"},{default:t(()=>[_("div",Y,[a(e(r),{class:"disk-info--item",column:1},{default:t(()=>[a(e(r).Item,{label:"总内存"},{default:t(()=>[s(l(y.value.total),1)]),_:1}),a(e(r).Item,{label:"已用内存"},{default:t(()=>[s(l(y.value.used),1)]),_:1}),a(e(r).Item,{label:"可用内存"},{default:t(()=>[s(l(y.value.free),1)]),_:1})]),_:1}),_("div",J,[a(b,{type:"dashboard",percent:B.value,width:100,"stroke-color":v},null,8,["percent"])])])]),_:1})]))}}),se=D(K,[["__scopeId","data-v-6f1f0887"]]);export{se as default}; diff --git a/assets/index-BU4CKU8u.js b/assets/index-BU4CKU8u.js new file mode 100644 index 000000000..0e6bfff9b --- /dev/null +++ b/assets/index-BU4CKU8u.js @@ -0,0 +1 @@ +import{w as c}from"./common-Cs_BZJVP.js";import"./ApiSelect.vue_vue_type_script_setup_true_lang-C4dv5akm.js";import{e as m,ac as p,ae as d}from"./antdv-CA3HmnGF.js";import{_ as b}from"./index-CPnd3GcN.js";import{u as _}from"./useForm-CwEGkVLb.js";import{d as f,W as v,a5 as h,k as a,Y as t,u as o,a7 as x,a8 as g,a6 as r}from"./vue-Dbi1xauY.js";import"./is-bed24ebq.js";import"./schema-form.vue_vue_type_script_setup_true_lang-DYh3o6wW.js";import"./index-CDgH2F_h.js";import"./dateUtil-CLVblcqH.js";const w=[{field:"framework",component:"RadioGroup",label:"三大框架",defaultValue:1,componentProps:{optionType:"button",buttonStyle:"solid",options:[{label:"Vue",value:1},{label:"React",value:2},{label:"Angular",value:3}]}},{field:"lib",component:"Select",label:"框架常用库",required:!0,componentProps:{request:{watchFields:["framework"],options:{immediate:!0},callback:async({formModel:e})=>(e.lib=void 0,y(e.framework))}}}],y=async e=>{if(!e)return[];if(await c(3e3),e===1)return[{label:"vue-router",value:"vue-router"},{label:"vuex",value:"vuex"}];if(e===2)return[{label:"react-router",value:"react-router"},{label:"redux",value:"redux"}];if(e===3)return[{label:"rxjs",value:"rxjs"},{label:"ng-zorro-antd",value:"ng-zorro-antd"}]},n=e=>(x("data-v-9aa67abc"),e=e(),g(),e),F=n(()=>r("p",null,"切换不同选项时自动请求不同接口数据进行填充",-1)),S=n(()=>r("a",{class:"text-blue-500",target:"_blank",href:"https://github.com/buqiyuan/vue3-antdv-admin/blob/main/src/views/demos/form/request-form/index.vue"}," 查看源码 ",-1)),T=f({name:"DemosFormRequestForm",__name:"index",setup(e){const[s,l]=_({labelWidth:120,schemas:w,actionColOptions:{span:24},fieldMapToTime:[["fieldTime",["startTime","endTime"],"YYYY-MM"]]});function i(){l.validate().then(()=>m.success("验证通过!"))}return(q,k)=>{const u=p;return v(),h("div",null,[a(o(d),{message:"requestForm示例",type:"info","show-icon":"",style:{"margin-bottom":"12px"}},{description:t(()=>[F,S]),_:1}),a(u,null,{default:t(()=>[a(o(s),{onSubmit:i})]),_:1})])}}}),N=b(T,[["__scopeId","data-v-9aa67abc"]]);export{N as default}; diff --git a/assets/index-BYC9TJbH.js b/assets/index-BYC9TJbH.js new file mode 100644 index 000000000..14361ad8e --- /dev/null +++ b/assets/index-BYC9TJbH.js @@ -0,0 +1 @@ +import"./ApiSelect.vue_vue_type_script_setup_true_lang-C4dv5akm.js";import{e as b,ac as _,ae as h}from"./antdv-CA3HmnGF.js";import{_ as v}from"./index-CPnd3GcN.js";import{u as S}from"./useForm-CwEGkVLb.js";import{d as P,W as w,a5 as k,k as o,Y as a,u as n,a6 as d,G as i,ac as g,a7 as x,a8 as C}from"./vue-Dbi1xauY.js";import"./is-bed24ebq.js";import"./schema-form.vue_vue_type_script_setup_true_lang-DYh3o6wW.js";import"./index-CDgH2F_h.js";import"./dateUtil-CLVblcqH.js";const N=[{field:"field1",component:"Input",label:"字段1",colProps:{span:8},vShow:({formModel:e})=>!!e.field5},{field:"field2",component:"Input",label:"字段2",colProps:{span:8},vShow:({formModel:e})=>!!e.field6},{field:"field3",component:"DatePicker",label:"字段3",colProps:{span:8},dynamicDisabled:({formModel:e})=>!!e.field7},{field:"field4",component:"Select",label:"字段4",colProps:{span:8},dynamicRules:({formModel:e})=>e.field8?[{required:!0,message:"字段4必填"}]:[],componentProps:{options:[{label:"选项1",value:"1",key:"1"},{label:"选项2",value:"2",key:"2"}]}},{field:"field11",component:"DatePicker",label:"字段11",colProps:{span:8}},{field:"field5",component:"Switch",label:"是否显示字段1(css控制)",colProps:{span:8},labelWidth:200},{field:"field6",component:"Switch",label:"是否显示字段2(dom控制)",colProps:{span:8},labelWidth:200},{field:"field7",component:"Switch",label:"是否禁用字段3",colProps:{span:8},labelWidth:200},{field:"field8",component:"Switch",label:"字段4是否必填",colProps:{span:8},componentProps:({formInstance:e})=>({onChange(s){requestAnimationFrame(()=>{s?e==null||e.validateFields():e==null||e.clearValidate()})}}),labelWidth:200}],T=e=>(x("data-v-03d6d9f3"),e=e(),C(),e),W=T(()=>d("a",{class:"text-blue-500",target:"_blank",href:"https://github.com/buqiyuan/vue3-antdv-admin/blob/main/src/views/demos/form/use-form/index.vue"}," 查看源码 ",-1)),B={class:"mb-4"},D=P({name:"DemosFormDynamicForm",__name:"index",setup(e){const[s,l]=S({labelWidth:120,schemas:N,actionColOptions:{span:24},fieldMapToTime:[["fieldTime",["startTime","endTime"],"YYYY-MM"]]});function c(){l.validate().then(()=>b.success("验证通过!"))}function p(){l==null||l.updateSchema({field:"field3",label:"字段3 New"})}function r(){l==null||l.updateSchema([{field:"field3",label:"字段3 New++"},{field:"field4",label:"字段4 New++"}])}function m(){l==null||l.appendSchemaByField({field:"field10",label:"字段10",component:"Input",colProps:{span:8}},"field3")}function u(){l==null||l.removeSchemaByField("field11")}return(Y,F)=>{const t=g("a-button"),f=_;return w(),k("div",null,[o(n(h),{message:"useForm示例",type:"info","show-icon":"",style:{"margin-bottom":"12px"}},{description:a(()=>[W]),_:1}),d("div",B,[o(t,{class:"mr-2",onClick:p},{default:a(()=>[i(" 更改字段3label ")]),_:1}),o(t,{class:"mr-2",onClick:r},{default:a(()=>[i(" 同时更改字段3,4label ")]),_:1}),o(t,{class:"mr-2",onClick:m},{default:a(()=>[i(" 往字段3后面插入字段10 ")]),_:1}),o(t,{class:"mr-2",onClick:u},{default:a(()=>[i(" 删除字段11 ")]),_:1})]),o(f,null,{default:a(()=>[o(n(s),{onSubmit:c})]),_:1})])}}}),j=v(D,[["__scopeId","data-v-03d6d9f3"]]);export{j as default}; diff --git a/assets/index-BfaAYYKt.js b/assets/index-BfaAYYKt.js new file mode 100644 index 000000000..011f2844d --- /dev/null +++ b/assets/index-BfaAYYKt.js @@ -0,0 +1,265 @@ +import{w as N5,d as R5,I as hM,f as JN,y as WN,o as bM,j as yM,P as vM,aB as xM,l as GN,at as wM,as as kM,c as A5,W as M5,X as QN,_ as _M,u as D5,k as A3,Y as _A,a5 as CM,ae as SM,F as EM}from"./vue-Dbi1xauY.js";import{f as TM,p as zM,A as e6}from"./index-CPnd3GcN.js";import"./ApiSelect.vue_vue_type_script_setup_true_lang-C4dv5akm.js";import{T as AM,ac as OM,S as NM,z as MM}from"./antdv-CA3HmnGF.js";import{u as DM}from"./useForm-CwEGkVLb.js";import"./is-bed24ebq.js";import"./schema-form.vue_vue_type_script_setup_true_lang-DYh3o6wW.js";import"./index-CDgH2F_h.js";import"./dateUtil-CLVblcqH.js";var RM=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onContextMenu","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],BM=function(xo){return RM.map(function(Ko){return Ko.toLowerCase()}).indexOf(xo.toLowerCase())!==-1},FM=function(xo,Ko,Io){Object.keys(Ko).filter(BM).forEach(function(on){var Qo=Ko[on];typeof Qo=="function"&&(on==="onInit"?Qo(xo,Io):Io.on(on.substring(2),function(io){return Qo(io,Io)}))})},LM=function(xo,Ko,Io,on){var Qo=xo.modelEvents?xo.modelEvents:null,io=Array.isArray(Qo)?Qo.join(" "):Qo;N5(on,function(Po,jt){Io&&typeof Po=="string"&&Po!==jt&&Po!==Io.getContent({format:xo.outputFormat})&&Io.setContent(Po)}),Io.on(io||"change input undo redo",function(){Ko.emit("update:modelValue",Io.getContent({format:xo.outputFormat}))})},IM=function(xo,Ko,Io,on,Qo,io){on.setContent(io()),Io.attrs["onUpdate:modelValue"]&&LM(Ko,Io,on,Qo),FM(xo,Io.attrs,on)},KN=0,t6=function(xo){var Ko=Date.now(),Io=Math.floor(Math.random()*1e9);return KN++,xo+"_"+Io+KN+String(Ko)},PM=function(xo){return xo!==null&&xo.tagName.toLowerCase()==="textarea"},YN=function(xo){return typeof xo>"u"||xo===""?[]:Array.isArray(xo)?xo:xo.split(" ")},HM=function(xo,Ko){return YN(xo).concat(YN(Ko))},jM=function(xo){return xo==null},XN=function(){return{listeners:[],scriptId:t6("tiny-script"),scriptLoaded:!1}},VM=function(){var xo=XN(),Ko=function(Qo,io,Po,jt){var ko=io.createElement("script");ko.referrerPolicy="origin",ko.type="application/javascript",ko.id=Qo,ko.src=Po;var Mo=function(){ko.removeEventListener("load",Mo),jt()};ko.addEventListener("load",Mo),io.head&&io.head.appendChild(ko)},Io=function(Qo,io,Po){xo.scriptLoaded?Po():(xo.listeners.push(Po),Qo.getElementById(xo.scriptId)||Ko(xo.scriptId,Qo,io,function(){xo.listeners.forEach(function(jt){return jt()}),xo.scriptLoaded=!0}))},on=function(){xo=XN()};return{load:Io,reinitialize:on}},$M=VM(),UM=function(){return typeof window<"u"?window:global},vv=function(){var xo=UM();return xo&&xo.tinymce?xo.tinymce:null},o6={apiKey:String,cloudChannel:String,id:String,init:Object,initialValue:String,inline:Boolean,modelEvents:[String,Array],plugins:[String,Array],tagName:String,toolbar:[String,Array],modelValue:String,disabled:Boolean,tinymceScriptSrc:String,outputFormat:{type:String,validator:function(xo){return xo==="html"||xo==="text"}}},Rf=function(){return Rf=Object.assign||function(xo){for(var Ko,Io=1,on=arguments.length;Io{var a;return!!n(t,o.prototype)||((a=t.constructor)===null||a===void 0?void 0:a.name)===o.name},Mo=t=>o=>(n=>{const a=typeof n;return n===null?"null":a==="object"&&Array.isArray(n)?"array":a==="object"&&ko(n,String,(i,c)=>c.isPrototypeOf(i))?"string":a})(o)===t,jo=t=>o=>typeof o===t,tn=t=>o=>t===o,To=(t,o)=>it(t)&&ko(t,o,(n,a)=>jt(n)===a),Ue=Mo("string"),it=Mo("object"),So=t=>To(t,Object),co=Mo("array"),he=tn(null),Dt=jo("boolean"),fo=tn(void 0),me=t=>t==null,Ze=t=>!me(t),de=jo("function"),rt=jo("number"),Yo=(t,o)=>{if(co(t)){for(let n=0,a=t.length;n{},gn=(t,o)=>(...n)=>t(o.apply(null,n)),Bo=(t,o)=>n=>t(o(n)),Ct=t=>()=>t,R=t=>t,qe=(t,o)=>t===o;function Je(t,...o){return(...n)=>{const a=o.concat(n);return t.apply(null,a)}}const lt=t=>o=>!t(o),Mt=t=>()=>{throw new Error(t)},ht=t=>t(),Rt=t=>{t()},uo=Ct(!1),Bt=Ct(!0);class V{constructor(o,n){this.tag=o,this.value=n}static some(o){return new V(!0,o)}static none(){return V.singletonNone}fold(o,n){return this.tag?n(this.value):o()}isSome(){return this.tag}isNone(){return!this.tag}map(o){return this.tag?V.some(o(this.value)):V.none()}bind(o){return this.tag?o(this.value):V.none()}exists(o){return this.tag&&o(this.value)}forall(o){return!this.tag||o(this.value)}filter(o){return!this.tag||o(this.value)?this:V.none()}getOr(o){return this.tag?this.value:o}or(o){return this.tag?this:o}getOrThunk(o){return this.tag?this.value:o()}orThunk(o){return this.tag?this:o()}getOrDie(o){if(this.tag)return this.value;throw new Error(o??"Called getOrDie on None")}static from(o){return Ze(o)?V.some(o):V.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(o){this.tag&&o(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}V.singletonNone=new V(!1);const dt=Array.prototype.slice,Ie=Array.prototype.indexOf,Co=Array.prototype.push,Pt=(t,o)=>Ie.call(t,o),lo=(t,o)=>Pt(t,o)>-1,zo=(t,o)=>{for(let n=0,a=t.length;n{const n=t.length,a=new Array(n);for(let i=0;i{for(let n=0,a=t.length;n{for(let n=t.length-1;n>=0;n--)o(t[n],n)},ct=(t,o)=>{const n=[],a=[];for(let i=0,c=t.length;i{const n=[];for(let a=0,i=t.length;a($e(t,(a,i)=>{n=o(n,a,i)}),n),Oe=(t,o,n)=>(Se(t,(a,i)=>{n=o(n,a,i)}),n),We=(t,o,n)=>{for(let a=0,i=t.length;aWe(t,o,uo),ge=(t,o)=>{for(let n=0,a=t.length;n{const o=[];for(let n=0,a=t.length;nMe(to(t,o)),ze=(t,o)=>{for(let n=0,a=t.length;n{const o=dt.call(t,0);return o.reverse(),o},Gt=(t,o)=>gt(t,n=>!lo(o,n)),Vt=(t,o)=>{const n={};for(let a=0,i=t.length;a{const n=dt.call(t,0);return n.sort(o),n},$o=(t,o)=>o>=0&&o$o(t,0),Gn=t=>$o(t,t.length-1),Pn=de(Array.from)?Array.from:t=>dt.call(t),zn=(t,o)=>{for(let n=0;n{const n=ut(t);for(let a=0,i=n.length;aXt(t,(n,a)=>({k:a,v:o(n,a)})),Xt=(t,o)=>{const n={};return Ft(t,(a,i)=>{const c=o(a,i);n[c.k]=c.v}),n},Vo=t=>(o,n)=>{t[n]=o},$n=(t,o,n,a)=>{Ft(t,(i,c)=>{(o(i,c)?n:a)(i,c)})},Rr=(t,o)=>{const n={};return $n(t,o,Vo(n),$t),n},Wt=(t,o)=>{const n=[];return Ft(t,(a,i)=>{n.push(o(a,i))}),n},vr=t=>Wt(t,R),Fn=(t,o)=>ln(t,o)?V.from(t[o]):V.none(),ln=(t,o)=>zt.call(t,o),xr=(t,o)=>ln(t,o)&&t[o]!==void 0&&t[o]!==null,Ys=t=>{const o={};return Se(t,n=>{o[n]={}}),ut(o)},Yr=t=>t.length!==void 0,Pa=Array.isArray,cs=(t,o,n)=>{if(!t)return!1;if(n=n||t,Yr(t)){for(let a=0,i=t.length;a{const n=[];return cs(t,(a,i)=>{n.push(o(a,i,t))}),n},ja=(t,o)=>{const n=[];return cs(t,(a,i)=>{o&&!o(a,i,t)||n.push(a)}),n},$s=(t,o,n,a)=>{let i=fo(n)?t[0]:n;for(let c=0;c{for(let a=0,i=t.length;at[t.length-1],tt=t=>{let o,n=!1;return(...a)=>(n||(n=!0,o=t.apply(null,a)),o)},_t=()=>Do(0,0),Do=(t,o)=>({major:t,minor:o}),St={nu:Do,detect:(t,o)=>{const n=String(o).toLowerCase();return t.length===0?_t():((a,i)=>{const c=((u,f)=>{for(let y=0;yNumber(i.replace(c,"$"+u));return Do(d(1),d(2))})(t,n)},unknown:_t},zr=(t,o)=>{const n=String(o).toLowerCase();return Fe(t,a=>a.search(n))},kr=(t,o,n)=>o===""||t.length>=o.length&&t.substr(n,n+o.length)===o,Is=(t,o)=>gr(t,o)?((n,a)=>n.substring(a))(t,o.length):t,Xr=(t,o,n=0,a)=>{const i=t.indexOf(o,n);return i!==-1&&(!!fo(a)||i+o.length<=a)},gr=(t,o)=>kr(t,o,0),De=(t,o)=>kr(t,o,t.length-o.length),Ae=t=>o=>o.replace(t,""),wt=Ae(/^\s+|\s+$/g),It=Ae(/^\s+/g),dn=Ae(/\s+$/g),nn=t=>t.length>0,sr=t=>!nn(t),Vr=(t,o=10)=>{const n=parseInt(t,o);return isNaN(n)?V.none():V.some(n)},Br=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Jo=t=>o=>Xr(o,t),Ce=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:t=>Xr(t,"edge/")&&Xr(t,"chrome")&&Xr(t,"safari")&&Xr(t,"applewebkit")},{name:"Chromium",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Br],search:t=>Xr(t,"chrome")&&!Xr(t,"chromeframe")},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:t=>Xr(t,"msie")||Xr(t,"trident")},{name:"Opera",versionRegexes:[Br,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Jo("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Jo("firefox")},{name:"Safari",versionRegexes:[Br,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:t=>(Xr(t,"safari")||Xr(t,"mobile/"))&&Xr(t,"applewebkit")}],Ne=[{name:"Windows",search:Jo("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:t=>Xr(t,"iphone")||Xr(t,"ipad"),versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Jo("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"macOS",search:Jo("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Jo("linux"),versionRegexes:[]},{name:"Solaris",search:Jo("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Jo("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Jo("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],Zt={browsers:Ct(Ce),oses:Ct(Ne)},Lo="Edge",Ho="Chromium",rn="Opera",Go="Firefox",hn="Safari",wn=t=>{const o=t.current,n=t.version,a=i=>()=>o===i;return{current:o,version:n,isEdge:a(Lo),isChromium:a(Ho),isIE:a("IE"),isOpera:a(rn),isFirefox:a(Go),isSafari:a(hn)}},Un=()=>wn({current:void 0,version:St.unknown()}),Ar=wn,ra="Windows",Xs="Android",Zs="Linux",mi="macOS",Wr="Solaris",rr="FreeBSD",Sr="ChromeOS",va=t=>{const o=t.current,n=t.version,a=i=>()=>o===i;return{current:o,version:n,isWindows:a(ra),isiOS:a("iOS"),isAndroid:a(Xs),isMacOS:a(mi),isLinux:a(Zs),isSolaris:a(Wr),isFreeBSD:a(rr),isChromeOS:a(Sr)}},Cs=()=>va({current:void 0,version:St.unknown()}),za=va,ws=t=>window.matchMedia(t).matches;let As=tt(()=>((t,o,n)=>{const a=Zt.browsers(),i=Zt.oses(),c=o.bind(f=>((y,v)=>zn(v.brands,k=>{const E=k.brand.toLowerCase();return Fe(y,B=>{var O;return E===((O=B.brand)===null||O===void 0?void 0:O.toLowerCase())}).map(B=>({current:B.name,version:St.nu(parseInt(k.version,10),0)}))}))(a,f)).orThunk(()=>((f,y)=>zr(f,y).map(v=>{const k=St.detect(v.versionRegexes,y);return{current:v.name,version:k}}))(a,t)).fold(Un,Ar),d=((f,y)=>zr(f,y).map(v=>{const k=St.detect(v.versionRegexes,y);return{current:v.name,version:k}}))(i,t).fold(Cs,za),u=((f,y,v,k)=>{const E=f.isiOS()&&/ipad/i.test(v)===!0,B=f.isiOS()&&!E,O=f.isiOS()||f.isAndroid(),P=O||k("(pointer:coarse)"),M=E||!B&&O&&k("(min-device-width:768px)"),j=B||O&&!M,q=y.isSafari()&&f.isiOS()&&/safari/i.test(v)===!1,K=!j&&!M&&!q;return{isiPad:Ct(E),isiPhone:Ct(B),isTablet:Ct(M),isPhone:Ct(j),isTouch:Ct(P),isAndroid:f.isAndroid,isiOS:f.isiOS,isWebView:Ct(q),isDesktop:Ct(K)}})(d,c,t,n);return{browser:c,os:d,deviceType:u}})(navigator.userAgent,V.from(navigator.userAgentData),ws));const Aa=()=>As(),Kn=navigator.userAgent,Os=Aa(),Ma=Os.browser,Ca=Os.os,ds=Os.deviceType,xa=Kn.indexOf("Windows Phone")!==-1,Rn={transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",documentMode:Ma.isIE()?document.documentMode||7:10,cacheSuffix:null,container:null,canHaveCSP:!Ma.isIE(),windowsPhone:xa,browser:{current:Ma.current,version:Ma.version,isChromium:Ma.isChromium,isEdge:Ma.isEdge,isFirefox:Ma.isFirefox,isIE:Ma.isIE,isOpera:Ma.isOpera,isSafari:Ma.isSafari},os:{current:Ca.current,version:Ca.version,isAndroid:Ca.isAndroid,isChromeOS:Ca.isChromeOS,isFreeBSD:Ca.isFreeBSD,isiOS:Ca.isiOS,isLinux:Ca.isLinux,isMacOS:Ca.isMacOS,isSolaris:Ca.isSolaris,isWindows:Ca.isWindows},deviceType:{isDesktop:ds.isDesktop,isiPad:ds.isiPad,isiPhone:ds.isiPhone,isPhone:ds.isPhone,isTablet:ds.isTablet,isTouch:ds.isTouch,isWebView:ds.isWebView}},Hi=/^\s*|\s*$/g,Bn=t=>me(t)?"":(""+t).replace(Hi,""),ji=function(t,o,n,a){a=a||this,t&&(n&&(t=t[n]),cs(t,(i,c)=>o.call(a,i,c,n)!==!1&&(ji(i,o,n,a),!0)))},go={trim:Bn,isArray:Pa,is:(t,o)=>o?!(o!=="array"||!Pa(t))||typeof t===o:t!==void 0,toArray:t=>{if(Pa(t))return t;{const o=[];for(let n=0,a=t.length;n{const a=Ue(t)?t.split(o||","):t||[];let i=a.length;for(;i--;)n[a[i]]={};return n},each:cs,map:Ha,grep:ja,inArray:(t,o)=>{if(t){for(let n=0,a=t.length;n{for(let n=0;n{const n=t.split(".");for(let a=0,i=n.length;aco(t)?t:t===""?[]:Ha(t.split(o||","),Bn),_addCacheSuffix:t=>{const o=Rn.cacheSuffix;return o&&(t+=(t.indexOf("?")===-1?"?":"&")+o),t}},aa=(t,o,n=qe)=>t.exists(a=>n(a,o)),Ss=(t,o,n=qe)=>Ir(t,o,n).getOr(t.isNone()&&o.isNone()),Ir=(t,o,n)=>t.isSome()&&o.isSome()?V.some(n(t.getOrDie(),o.getOrDie())):V.none(),gi=(t,o)=>t?V.some(o):V.none(),sc=typeof window<"u"?window:Function("return this;")(),Pr=(t,o)=>((n,a)=>{let i=a??sc;for(let c=0;c{const o=Pr("ownerDocument.defaultView",t);return it(t)&&((n=>((a,i)=>{const c=((d,u)=>Pr(d,u))(a,i);if(c==null)throw new Error(a+" not available on this browser");return c})("HTMLElement",n))(o).prototype.isPrototypeOf(t)||/^HTML\w*Element$/.test(ne(t).constructor.name))},Pe=t=>t.dom.nodeName.toLowerCase(),Nt=t=>t.dom.nodeType,ho=t=>o=>Nt(o)===t,bn=t=>kn(t)&&Be(t.dom),kn=ho(1),_r=ho(3),Or=ho(9),Sa=ho(11),ma=t=>o=>kn(o)&&Pe(o)===t,Ga=(t,o,n)=>{if(!(Ue(n)||Dt(n)||rt(n)))throw console.error("Invalid call to Attribute.set. Key ",o,":: Value ",n,":: Element ",t),new Error("Attribute value was not simple");t.setAttribute(o,n+"")},Q=(t,o,n)=>{Ga(t.dom,o,n)},Ee=(t,o)=>{const n=t.dom;Ft(o,(a,i)=>{Ga(n,i,a)})},bt=(t,o)=>{const n=t.dom.getAttribute(o);return n===null?void 0:n},wo=(t,o)=>V.from(bt(t,o)),Zn=(t,o)=>{const n=t.dom;return!(!n||!n.hasAttribute)&&n.hasAttribute(o)},U=(t,o)=>{t.dom.removeAttribute(o)},oe=t=>Oe(t.dom.attributes,(o,n)=>(o[n.name]=n.value,o),{}),xe=(t,o)=>{const n=bt(t,o);return n===void 0||n===""?[]:n.split(" ")},xt=t=>t.dom.classList!==void 0,po=t=>xe(t,"class"),Yn=(t,o)=>((n,a,i)=>{const c=xe(n,a).concat([i]);return Q(n,a,c.join(" ")),!0})(t,"class",o),ga=(t,o)=>((n,a,i)=>{const c=gt(xe(n,a),d=>d!==i);return c.length>0?Q(n,a,c.join(" ")):U(n,a),!1})(t,"class",o),ks=(t,o)=>{xt(t)?t.dom.classList.add(o):Yn(t,o)},_i=t=>{(xt(t)?t.dom.classList:po(t)).length===0&&U(t,"class")},Js=(t,o)=>{xt(t)?t.dom.classList.remove(o):ga(t,o),_i(t)},Vi=(t,o)=>xt(t)&&t.dom.classList.contains(o),Qs=t=>{if(t==null)throw new Error("Node cannot be null or undefined");return{dom:t}},ic=(t,o)=>{const n=(o||document).createElement("div");if(n.innerHTML=t,!n.hasChildNodes()||n.childNodes.length>1){const a="HTML does not have a single root node";throw console.error(a,t),new Error(a)}return Qs(n.childNodes[0])},_s=(t,o)=>{const n=(o||document).createElement(t);return Qs(n)},vc=(t,o)=>{const n=(o||document).createTextNode(t);return Qs(n)},je=Qs,Ll=(t,o,n)=>V.from(t.dom.elementFromPoint(o,n)).map(Qs),pd=(t,o)=>{const n=[],a=c=>(n.push(c),o(c));let i=o(t);do i=i.bind(a);while(i.isSome());return n},Ci=(t,o)=>{const n=t.dom;if(n.nodeType!==1)return!1;{const a=n;if(a.matches!==void 0)return a.matches(o);if(a.msMatchesSelector!==void 0)return a.msMatchesSelector(o);if(a.webkitMatchesSelector!==void 0)return a.webkitMatchesSelector(o);if(a.mozMatchesSelector!==void 0)return a.mozMatchesSelector(o);throw new Error("Browser lacks native selectors")}},bp=t=>t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11||t.childElementCount===0,sa=(t,o)=>t.dom===o.dom,lc=(t,o)=>{const n=t.dom,a=o.dom;return n!==a&&n.contains(a)},ag=t=>je(t.dom.ownerDocument),Si=t=>Or(t)?t:ag(t),Gc=t=>je(Si(t).dom.defaultView),Gi=t=>V.from(t.dom.parentNode).map(je),Il=t=>V.from(t.dom.parentElement).map(je),Yl=(t,o)=>{const n=de(o)?o:uo;let a=t.dom;const i=[];for(;a.parentNode!==null&&a.parentNode!==void 0;){const c=a.parentNode,d=je(c);if(i.push(d),n(d)===!0)break;a=c}return i},Ki=t=>V.from(t.dom.previousSibling).map(je),ie=t=>V.from(t.dom.nextSibling).map(je),ve=t=>Ge(pd(t,Ki)),yt=t=>pd(t,ie),Lt=t=>to(t.dom.childNodes,je),yn=(t,o)=>{const n=t.dom.childNodes;return V.from(n[o]).map(je)},ur=t=>yn(t,0),Ra=t=>yn(t,t.dom.childNodes.length-1),ei=t=>t.dom.childNodes.length,ia=t=>Sa(t)&&Ze(t.dom.host),pa=de(Element.prototype.attachShadow)&&de(Node.prototype.getRootNode),Ps=Ct(pa),ta=pa?t=>je(t.dom.getRootNode()):Si,cc=t=>ia(t)?t:(o=>{const n=o.dom.head;if(n==null)throw new Error("Head is not available yet");return je(n)})(Si(t)),Xl=t=>je(t.dom.host),Ei=t=>{if(Ps()&&Ze(t.target)){const o=je(t.target);if(kn(o)&&xc(o)&&t.composed&&t.composedPath){const n=t.composedPath();if(n)return Zo(n)}}return V.from(t.target)},xc=t=>Ze(t.dom.shadowRoot),Es=t=>{const o=_r(t)?t.dom.parentNode:t.dom;if(o==null||o.ownerDocument===null)return!1;const n=o.ownerDocument;return(a=>{const i=ta(a);return ia(i)?V.some(i):V.none()})(je(o)).fold(()=>n.body.contains(o),Bo(Es,Xl))};var Ba=(t,o,n,a,i)=>t(n,a)?V.some(n):de(i)&&i(n)?V.none():o(n,a,i);const Fa=(t,o,n)=>{let a=t.dom;const i=de(n)?n:uo;for(;a.parentNode;){a=a.parentNode;const c=je(a);if(o(c))return V.some(c);if(i(c))break}return V.none()},ts=(t,o,n)=>Ba((a,i)=>i(a),Fa,t,o,n),Kc=(t,o)=>{const n=a=>{for(let i=0;iFa(t,a=>Ci(a,o),n),fd=(t,o)=>((n,a)=>{const i=a===void 0?document:a.dom;return bp(i)?V.none():V.from(i.querySelector(n)).map(je)})(o,t),Yc=(t,o,n)=>Ba((a,i)=>Ci(a,i),Ua,t,o,n),nl=(t,o=!1)=>{return Es(t)?t.dom.isContentEditable:(n=t,Yc(n,"[contenteditable]")).fold(Ct(o),a=>Fr(a)==="true");var n},Fr=t=>t.dom.contentEditable,ti=t=>t.style!==void 0&&de(t.style.getPropertyValue),Zd=(t,o,n)=>{if(!Ue(n))throw console.error("Invalid call to CSS.set. Property ",o,":: Value ",n,":: Element ",t),new Error("CSS value must be a string: "+n);ti(t)&&t.style.setProperty(o,n)},hd=(t,o,n)=>{const a=t.dom;Zd(a,o,n)},qd=(t,o)=>{const n=t.dom;Ft(o,(a,i)=>{Zd(n,i,a)})},Yi=(t,o)=>{const n=t.dom,a=window.getComputedStyle(n).getPropertyValue(o);return a!==""||Es(t)?a:Mc(n,o)},Mc=(t,o)=>ti(t)?t.style.getPropertyValue(o):"",om=(t,o)=>{const n=t.dom,a=Mc(n,o);return V.from(a).filter(i=>i.length>0)},_u=t=>{const o={},n=t.dom;if(ti(n))for(let a=0;a{((n,a)=>{ti(n)&&n.style.removeProperty(a)})(t.dom,o),aa(wo(t,"style").map(wt),"")&&U(t,"style")},rl=(t,o)=>{Gi(t).each(n=>{n.dom.insertBefore(o.dom,t.dom)})},Da=(t,o)=>{ie(t).fold(()=>{Gi(t).each(n=>{os(n,o)})},n=>{rl(n,o)})},Jl=(t,o)=>{ur(t).fold(()=>{os(t,o)},n=>{t.dom.insertBefore(o.dom,n.dom)})},os=(t,o)=>{t.dom.appendChild(o.dom)},Dc=(t,o)=>{rl(t,o),os(o,t)},dc=(t,o)=>{Se(o,n=>{os(t,n)})},bd=t=>{t.dom.textContent="",Se(Lt(t),o=>{Ea(o)})},Ea=t=>{const o=t.dom;o.parentNode!==null&&o.parentNode.removeChild(o)},_l=t=>{const o=Lt(t);var n,a;o.length>0&&(n=t,Se(a=o,(i,c)=>{const d=c===0?n:a[c-1];Da(d,i)})),Ea(t)},Xc=t=>to(t,je),yd=t=>t.dom.innerHTML,wc=(t,o)=>{const n=ag(t).dom,a=je(n.createDocumentFragment()),i=((c,d)=>{const u=(d||document).createElement("div");return u.innerHTML=c,Lt(je(u))})(o,n);dc(a,i),bd(t),os(t,a)},Jc=(t,o,n,a)=>((i,c,d,u,f)=>{const y=((v,k)=>E=>{v(E)&&k((B=>{const O=je(Ei(B).getOr(B.target)),P=()=>B.stopPropagation(),M=()=>B.preventDefault(),j=gn(M,P);return((q,K,re,ee,ke,et,st)=>({target:q,x:K,y:re,stop:ee,prevent:ke,kill:et,raw:st}))(O,B.clientX,B.clientY,P,M,j,B)})(E))})(d,u);return i.dom.addEventListener(c,y,!1),{unbind:Je(Gd,i,c,y,!1)}})(t,o,n,a),Gd=(t,o,n,a)=>{t.dom.removeEventListener(o,n,a)},vd=(t,o)=>({left:t,top:o,translate:(n,a)=>vd(t+n,o+a)}),pi=vd,Cn=(t,o)=>t!==void 0?t:o!==void 0?o:0,Ql=t=>{const o=t.dom,n=o.ownerDocument.body;return n===o?pi(n.offsetLeft,n.offsetTop):Es(t)?(a=>{const i=a.getBoundingClientRect();return pi(i.left,i.top)})(o):pi(0,0)},ec=t=>{const o=t!==void 0?t.dom:document,n=o.body.scrollLeft||o.documentElement.scrollLeft,a=o.body.scrollTop||o.documentElement.scrollTop;return pi(n,a)},yp=(t,o,n)=>{const a=(n!==void 0?n.dom:document).defaultView;a&&a.scrollTo(t,o)},Kd=(t,o)=>{Aa().browser.isSafari()&&de(t.dom.scrollIntoViewIfNeeded)?t.dom.scrollIntoViewIfNeeded(!1):t.dom.scrollIntoView(o)},Cl=(t,o,n,a)=>({x:t,y:o,width:n,height:a,right:t+n,bottom:o+a}),nm=t=>{const o=t===void 0?window:t,n=o.document,a=ec(je(n));return(i=>{const c=i===void 0?window:i;return Aa().browser.isFirefox()?V.none():V.from(c.visualViewport)})(o).fold(()=>{const i=o.document.documentElement,c=i.clientWidth,d=i.clientHeight;return Cl(a.left,a.top,c,d)},i=>Cl(Math.max(i.pageLeft,a.left),Math.max(i.pageTop,a.top),i.width,i.height))},rm=(t,o)=>{let n=[];return Se(Lt(t),a=>{o(a)&&(n=n.concat([a])),n=n.concat(rm(a,o))}),n},wa=(t,o)=>((n,a)=>{const i=a===void 0?document:a.dom;return bp(i)?[]:to(i.querySelectorAll(n),je)})(o,t),Qc=(t,o,n)=>Ua(t,o,n).isSome();class Ns{constructor(o,n){this.node=o,this.rootNode=n,this.current=this.current.bind(this),this.next=this.next.bind(this),this.prev=this.prev.bind(this),this.prev2=this.prev2.bind(this)}current(){return this.node}next(o){return this.node=this.findSibling(this.node,"firstChild","nextSibling",o),this.node}prev(o){return this.node=this.findSibling(this.node,"lastChild","previousSibling",o),this.node}prev2(o){return this.node=this.findPreviousNode(this.node,o),this.node}findSibling(o,n,a,i){if(o){if(!i&&o[n])return o[n];if(o!==this.rootNode){let c=o[a];if(c)return c;for(let d=o.parentNode;d&&d!==this.rootNode;d=d.parentNode)if(c=d[a],c)return c}}}findPreviousNode(o,n){if(o){const a=o.previousSibling;if(this.rootNode&&a===this.rootNode)return;if(a){if(!n){for(let c=a.lastChild;c;c=c.lastChild)if(!c.lastChild)return c}return a}const i=o.parentNode;if(i&&i!==this.rootNode)return i}}}const kc=t=>o=>!!o&&o.nodeType===t,Rm=t=>!!t&&!Object.getPrototypeOf(t),an=kc(1),Ti=t=>an(t)&&bn(je(t)),Cu=t=>{const o=t.toLowerCase();return n=>Ze(n)&&n.nodeName.toLowerCase()===o},ka=t=>{const o=t.map(n=>n.toLowerCase());return n=>{if(n&&n.nodeName){const a=n.nodeName.toLowerCase();return lo(o,a)}return!1}},Sl=(t,o)=>{const n=o.toLowerCase().split(" ");return a=>{if(an(a)){const i=a.ownerDocument.defaultView;if(i)for(let c=0;co=>an(o)&&o.hasAttribute(t),El=t=>an(t)&&t.hasAttribute("data-mce-bogus"),Ms=t=>an(t)&&t.tagName==="TABLE",Su=t=>o=>!!(Ti(o)&&(o.contentEditable===t||o.getAttribute("data-mce-contenteditable")===t)),oi=ka(["textarea","input"]),ro=kc(3),Eu=kc(4),Yt=kc(7),ni=kc(8),xd=kc(9),us=kc(11),da=Cu("br"),ml=Cu("img"),zi=Su("true"),Oa=Su("false"),al=ka(["td","th"]),la=ka(["td","th","caption"]),$i=ka(["video","audio","object","embed"]),Yd=Cu("li"),Hs=Cu("details"),sg=Cu("summary"),Tl="\uFEFF",ns=" ",gl=t=>t===Tl,ft=((t,o)=>{const n=a=>t(a)?V.from(a.dom.nodeValue):V.none();return{get:a=>{if(!t(a))throw new Error("Can only get text value of a text node");return n(a).getOr("")},getOption:n,set:(a,i)=>{if(!t(a))throw new Error("Can only set raw text value of a text node");a.dom.nodeValue=i}}})(_r),Ai=t=>ft.get(t),wd=t=>ft.getOption(t),zl=t=>{let o;return n=>(o=o||Vt(t,Bt),ln(o,Pe(n)))},pl=t=>kn(t)&&Pe(t)==="br",ri=zl(["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"]),hs=zl(["ul","ol","dl"]),uc=zl(["li","dd","dt"]),Bm=zl(["thead","tbody","tfoot"]),Sn=zl(["td","th"]),Ui=zl(["pre","script","textarea","style"]),Xi=()=>{const t=_s("br");return Q(t,"data-mce-bogus","1"),t},Oi=t=>{bd(t),os(t,Xi())},Za=Tl,_c=gl,qs=t=>t.replace(/\uFEFF/g,""),Tu=an,kd=ro,Pl=t=>(kd(t)&&(t=t.parentNode),Tu(t)&&t.hasAttribute("data-mce-caret")),bs=t=>kd(t)&&_c(t.data),Ws=t=>Pl(t)||bs(t),ed=t=>t.firstChild!==t.lastChild||!da(t.firstChild),Hl=t=>{const o=t.container();return!!ro(o)&&(o.data.charAt(t.offset())===Za||t.isAtStart()&&bs(o.previousSibling))},_d=t=>{const o=t.container();return!!ro(o)&&(o.data.charAt(t.offset()-1)===Za||t.isAtEnd()&&bs(o.nextSibling))},ai=t=>kd(t)&&t.data[0]===Za,z=t=>kd(t)&&t.data[t.data.length-1]===Za,H=t=>t&&t.hasAttribute("data-mce-caret")?((o=>{var n;const a=o.getElementsByTagName("br"),i=a[a.length-1];El(i)&&((n=i.parentNode)===null||n===void 0||n.removeChild(i))})(t),t.removeAttribute("data-mce-caret"),t.removeAttribute("data-mce-bogus"),t.removeAttribute("style"),t.removeAttribute("data-mce-style"),t.removeAttribute("_moz_abspos"),t):null,J=t=>Pl(t.startContainer),Te=zi,He=Oa,_o=da,fn=ro,ir=ka(["script","style","textarea"]),Hn=ka(["img","input","textarea","hr","iframe","video","audio","object","embed"]),Tn=ka(["table"]),fa=Ws,Ka=t=>!fa(t)&&(fn(t)?!ir(t.parentNode):Hn(t)||_o(t)||Tn(t)||Ni(t)),Ni=t=>!(o=>an(o)&&o.getAttribute("unselectable")==="true")(t)&&He(t),td=(t,o)=>Ka(t)&&((n,a)=>{for(let i=n.parentNode;i&&i!==a;i=i.parentNode){if(Ni(i))return!1;if(Te(i))return!0}return!0})(t,o),Bf=/^[ \t\r\n]*$/,ss=t=>Bf.test(t),xv=t=>{for(const o of t)if(!gl(o))return!1;return!0},Xd=t=>t===` +`||t==="\r",vp=(t,o=4,n=!0,a=!0)=>{const i=((u,f)=>f<=0?"":new Array(f+1).join(" "))(0,o),c=t.replace(/\t/g,i);return Oe(c,(u,f)=>(y=>" \f \v".indexOf(y)!==-1)(f)||f===ns?u.pcIsSpace||u.str===""&&n||u.str.length===c.length-1&&a||((y,v)=>v=0&&Xd(y[v]))(c,u.str.length+1)?{pcIsSpace:!1,str:u.str+ns}:{pcIsSpace:!0,str:u.str+" "}:{pcIsSpace:Xd(f),str:u.str+f},{pcIsSpace:!1,str:""}).str},am=(t,o)=>Ka(t)&&!((n,a)=>ro(n)&&ss(n.data)&&!((i,c)=>{const d=je(c),u=je(i);return Qc(u,"pre,code",Je(sa,d))})(n,a))(t,o)||(n=>an(n)&&n.nodeName==="A"&&!n.hasAttribute("href")&&(n.hasAttribute("name")||n.hasAttribute("id")))(t)||Cd(t),Cd=fi("data-mce-bookmark"),fl=fi("data-mce-bogus"),Jd=t=>an(t)&&t.getAttribute("data-mce-bogus")==="all",Fm=t=>Il(je(t)).exists(o=>!nl(o)),ys=(t,o=!0)=>((n,a)=>{let i=0;if(am(n,n))return!1;{let c=n.firstChild;if(!c)return!0;const d=new Ns(c,n);do{if(a){if(Jd(c)){c=d.next(!0);continue}if(fl(c)){c=d.next();continue}}if(zi(c)&&Fm(c))return!1;if(da(c))i++,c=d.next();else{if(am(c,n))return!1;c=d.next()}}while(c);return i<=1}})(t.dom,o),Sd=t=>t.toLowerCase()==="svg",ig=t=>Sd(t.nodeName),Lm=t=>(t==null?void 0:t.nodeName)==="svg"?"svg":"html",Ff=["svg"],Im="data-mce-block",zu=t=>to((o=>gt(ut(o),n=>!/[A-Z]/.test(n)))(t),o=>`${o}:`+to(Ff,n=>`not(${n} ${o})`).join(":")).join(","),Au=(t,o)=>Ze(o.querySelector(t))?(o.setAttribute(Im,"true"),o.getAttribute("data-mce-selected")==="inline-boundary"&&o.removeAttribute("data-mce-selected"),!0):(o.removeAttribute(Im),!1),Rc=(t,o)=>{const n=zu(t.getTransparentElements()),a=zu(t.getBlockElements());return gt(o.querySelectorAll(n),i=>Au(a,i))},sm=(t,o)=>{var n;const a=o?"lastChild":"firstChild";for(let i=t[a];i;i=i[a])if(ys(je(i)))return void((n=i.parentNode)===null||n===void 0||n.removeChild(i))},Ou=(t,o,n)=>{const a=t.getBlockElements(),i=je(o),c=u=>Pe(u)in a,d=u=>sa(u,i);Se(Xc(n),u=>{Fa(u,c,d).each(f=>{const y=((v,k)=>gt(Lt(v),E=>c(E)&&!t.isValidChild(Pe(f),Pe(E))))(u);if(y.length>0){const v=Il(f);Se(y,k=>{Fa(k,c,d).each(E=>{((B,O)=>{const P=document.createRange(),M=B.parentNode;if(M){P.setStartBefore(B),P.setEndBefore(O);const j=P.extractContents();sm(j,!0),P.setStartAfter(O),P.setEndAfter(B);const q=P.extractContents();sm(q,!1),ys(je(j))||M.insertBefore(j,B),ys(je(O))||M.insertBefore(O,B),ys(je(q))||M.insertBefore(q,B),M.removeChild(B)}})(E.dom,k.dom)})}),v.each(k=>Rc(t,k.dom))}})})},xp=(t,o)=>{const n=Rc(t,o);Ou(t,o,n),((a,i,c)=>{Se([...c,...Ed(a,i)?[i]:[]],d=>Se(wa(je(d),d.nodeName.toLowerCase()),u=>{dg(a,u.dom)&&_l(u)}))})(t,o,n)},lg=(t,o)=>{if(im(t,o)){const n=zu(t.getBlockElements());Au(n,o)}},cg=t=>t.hasAttribute(Im),wp=(t,o)=>ln(t.getTransparentElements(),o),im=(t,o)=>an(o)&&wp(t,o.nodeName),Ed=(t,o)=>im(t,o)&&cg(o),dg=(t,o)=>im(t,o)&&!cg(o),Pm=(t,o)=>o.type===1&&wp(t,o.name)&&Ue(o.attr(Im)),$r=Aa().browser,_n=t=>Fe(t,kn),Qd=(t,o)=>t.children&&lo(t.children,o),kp=(t,o={})=>{let n=0;const a={},i=je(t),c=Si(i),d=k=>{os(cc(i),k)},u=k=>{const E=cc(i);fd(E,"#"+k).each(Ea)},f=k=>Fn(a,k).getOrThunk(()=>({id:"mce-u"+n++,passed:[],failed:[],count:0})),y=k=>new Promise((E,B)=>{let O;const P=go._addCacheSuffix(k),M=f(P);a[P]=M,M.count++;const j=(ee,ke)=>{Se(ee,Rt),M.status=ke,M.passed=[],M.failed=[],O&&(O.onload=null,O.onerror=null,O=null)},q=()=>j(M.passed,2),K=()=>j(M.failed,3);if(E&&M.passed.push(E),B&&M.failed.push(B),M.status===1)return;if(M.status===2)return void q();if(M.status===3)return void K();M.status=1;const re=_s("link",c.dom);Ee(re,{rel:"stylesheet",type:"text/css",id:M.id}),o.contentCssCors&&Q(re,"crossOrigin","anonymous"),o.referrerPolicy&&Q(re,"referrerpolicy",o.referrerPolicy),O=re.dom,O.onload=q,O.onerror=K,d(re),Q(re,"href",P)}),v=k=>{const E=go._addCacheSuffix(k);Fn(a,E).each(B=>{--B.count==0&&(delete a[E],u(B.id))})};return{load:y,loadRawCss:(k,E)=>{const B=f(k);a[k]=B,B.count++;const O=_s("style",c.dom);Ee(O,{rel:"stylesheet",type:"text/css",id:B.id}),O.dom.innerHTML=E,d(O)},loadAll:k=>Promise.allSettled(to(k,E=>y(E).then(Ct(E)))).then(E=>{const B=ct(E,O=>O.status==="fulfilled");return B.fail.length>0?Promise.reject(to(B.fail,O=>O.reason)):to(B.pass,O=>O.value)}),unload:v,unloadRawCss:k=>{Fn(a,k).each(E=>{--E.count==0&&(delete a[k],u(E.id))})},unloadAll:k=>{Se(k,E=>{v(E)})},_setReferrerPolicy:k=>{o.referrerPolicy=k},_setContentCssCors:k=>{o.contentCssCors=k}}},Hm=(()=>{const t=new WeakMap;return{forElement:(o,n)=>{const a=ta(o).dom;return V.from(t.get(a)).getOrThunk(()=>{const i=kp(a,n);return t.set(a,i),i})}}})(),Bc=(t,o,n)=>Ze(t)&&(am(t,o)||n.isInline(t.nodeName.toLowerCase())),qa=t=>(o=>o.nodeName.toLowerCase()==="span")(t)&&t.getAttribute("data-mce-type")==="bookmark",Nu=(t,o,n,a)=>{var i;const c=a||o;if(an(o)&&qa(o))return o;const d=o.childNodes;for(let u=d.length-1;u>=0;u--)Nu(t,d[u],n,c);if(an(o)){const u=o.childNodes;u.length===1&&qa(u[0])&&((i=o.parentNode)===null||i===void 0||i.insertBefore(u[0],o))}return(u=>us(u)||xd(u))(o)||am(o,c)||(u=>!!an(u)&&u.childNodes.length>0)(o)||((u,f,y)=>ro(u)&&u.data.length>0&&((v,k,E)=>{const B=new Ns(v,k).prev(!1),O=new Ns(v,k).next(!1),P=fo(B)||Bc(B,k,E),M=fo(O)||Bc(O,k,E);return P&&M})(u,f,y))(o,c,n)||t.remove(o),o},_p=go.makeMap,Kt=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,lm=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ug=/[<>&\"\']/g,jm=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,Lf={128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},jl={'"':""","'":"'","<":"<",">":">","&":"&","`":"`"},sb={"<":"<",">":">","&":"&",""":'"',"'":"'"},Mu=(t,o)=>{const n={};if(t){const a=t.split(",");o=o||10;for(let i=0;it.replace(o?Kt:lm,n=>jl[n]||n),If=(t,o)=>t.replace(o?Kt:lm,n=>n.length>1?"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";":jl[n]||"&#"+n.charCodeAt(0)+";"),Cc=(t,o,n)=>{const a=n||La;return t.replace(o?Kt:lm,i=>jl[i]||a[i]||i)},Sc={encodeRaw:od,encodeAllRaw:t=>(""+t).replace(ug,o=>jl[o]||o),encodeNumeric:If,encodeNamed:Cc,getEncodeFunc:(t,o)=>{const n=Mu(o)||La,a=_p(t.replace(/\+/g,","));return a.named&&a.numeric?(i,c)=>i.replace(c?Kt:lm,d=>jl[d]!==void 0?jl[d]:n[d]!==void 0?n[d]:d.length>1?"&#"+(1024*(d.charCodeAt(0)-55296)+(d.charCodeAt(1)-56320)+65536)+";":"&#"+d.charCodeAt(0)+";"):a.named?o?(i,c)=>Cc(i,c,n):Cc:a.numeric?If:od},decode:t=>t.replace(jm,(o,n)=>n?(n=n.charAt(0).toLowerCase()==="x"?parseInt(n.substr(1),16):parseInt(n,10))>65535?(n-=65536,String.fromCharCode(55296+(n>>10),56320+(1023&n))):Lf[n]||String.fromCharCode(n):sb[o]||La[o]||(a=>{const i=_s("div").dom;return i.innerHTML=a,i.textContent||i.innerText||a})(o))},Ds=(t,o)=>(t=go.trim(t))?t.split(o||" "):[],Vm=t=>new RegExp("^"+t.replace(/([?+*])/g,".$1")+"$"),Fc={},eu=go.makeMap,Al=go.each,$m=go.extend,mg=go.explode,un=(t,o={})=>{const n=eu(t," ",eu(t.toUpperCase()," "));return $m(n,o)},gg=t=>un("td th li dt dd figcaption caption details summary",t.getTextBlockElements()),Cp=(t,o)=>{if(t){const n={};return Ue(t)&&(t={"*":t}),Al(t,(a,i)=>{n[i]=n[i.toUpperCase()]=o==="map"?eu(a,/[, ]/):mg(a,/[, ]/)}),n}},Du=(t={})=>{var o;const n={},a={};let i=[];const c={},d={},u=(En,Ur,Zr)=>{const Cr=t[En];if(Cr)return eu(Cr,/[, ]/,eu(Cr.toUpperCase(),/[, ]/));{let Kr=Fc[En];return Kr||(Kr=un(Ur,Zr),Fc[En]=Kr),Kr}},f=(o=t.schema)!==null&&o!==void 0?o:"html5",y=(En=>{const{globalAttributes:Ur,phrasingContent:Zr,flowContent:Cr}=(Fs=>{let dl,Dl,yc;dl="id accesskey class dir lang style tabindex title role",Dl="address blockquote div dl fieldset form h1 h2 h3 h4 h5 h6 hr menu ol p pre table ul",yc="a abbr b bdo br button cite code del dfn em embed i iframe img input ins kbd label map noscript object q s samp script select small span strong sub sup textarea u var #text #comment",Fs!=="html4"&&(dl+=" contenteditable contextmenu draggable dropzone hidden spellcheck translate",Dl+=" article aside details dialog figure main header footer hgroup section nav a ins del canvas map",yc+=" audio canvas command datalist mark meter output picture progress time wbr video ruby bdi keygen svg"),Fs!=="html5-strict"&&(dl+=" xml:lang",yc=[yc,"acronym applet basefont big font strike tt"].join(" "),Dl=[Dl,"center dir isindex noframes"].join(" "));const md=[Dl,yc].join(" ");return{globalAttributes:dl,blockContent:Dl,phrasingContent:yc,flowContent:md}})(En),Kr={},cl=(Fs,dl,Dl)=>{Kr[Fs]={attributes:Vt(dl,Ct({})),attributesOrder:dl,children:Vt(Dl,Ct({}))}},Vn=(Fs,dl="",Dl="")=>{const yc=Ds(Dl),md=Ds(Fs);let Rl=md.length;const gd=Ds([Ur,dl].join(" "));for(;Rl--;)cl(md[Rl],gd.slice(),yc)},qr=(Fs,dl)=>{const Dl=Ds(Fs),yc=Ds(dl);let md=Dl.length;for(;md--;){const Rl=Kr[Dl[md]];for(let gd=0,ul=yc.length;gd{Vn(Fs,"",Zr)}),Se(Ds("center dir isindex noframes"),Fs=>{Vn(Fs,"",Cr)})),Vn("html","manifest","head body"),Vn("head","","base command link meta noscript script style title"),Vn("title hr noscript br"),Vn("base","href target"),Vn("link","href rel media hreflang type sizes hreflang"),Vn("meta","name http-equiv content charset"),Vn("style","media type scoped"),Vn("script","src async defer type charset"),Vn("body","onafterprint onbeforeprint onbeforeunload onblur onerror onfocus onhashchange onload onmessage onoffline ononline onpagehide onpageshow onpopstate onresize onscroll onstorage onunload",Cr),Vn("dd div","",Cr),Vn("address dt caption","",En==="html4"?Zr:Cr),Vn("h1 h2 h3 h4 h5 h6 pre p abbr code var samp kbd sub sup i b u bdo span legend em strong small s cite dfn","",Zr),Vn("blockquote","cite",Cr),Vn("ol","reversed start type","li"),Vn("ul","","li"),Vn("li","value",Cr),Vn("dl","","dt dd"),Vn("a","href target rel media hreflang type",En==="html4"?Zr:Cr),Vn("q","cite",Zr),Vn("ins del","cite datetime",Cr),Vn("img","src sizes srcset alt usemap ismap width height"),Vn("iframe","src name width height",Cr),Vn("embed","src type width height"),Vn("object","data type typemustmatch name usemap form width height",[Cr,"param"].join(" ")),Vn("param","name value"),Vn("map","name",[Cr,"area"].join(" ")),Vn("area","alt coords shape href target rel media hreflang type"),Vn("table","border","caption colgroup thead tfoot tbody tr"+(En==="html4"?" col":"")),Vn("colgroup","span","col"),Vn("col","span"),Vn("tbody thead tfoot","","tr"),Vn("tr","","td th"),Vn("td","colspan rowspan headers",Cr),Vn("th","colspan rowspan headers scope abbr",Cr),Vn("form","accept-charset action autocomplete enctype method name novalidate target",Cr),Vn("fieldset","disabled form name",[Cr,"legend"].join(" ")),Vn("label","form for",Zr),Vn("input","accept alt autocomplete checked dirname disabled form formaction formenctype formmethod formnovalidate formtarget height list max maxlength min multiple name pattern readonly required size src step type value width"),Vn("button","disabled form formaction formenctype formmethod formnovalidate formtarget name type value",En==="html4"?Cr:Zr),Vn("select","disabled form multiple name required size","option optgroup"),Vn("optgroup","disabled label","option"),Vn("option","disabled label selected value"),Vn("textarea","cols dirname disabled form maxlength name readonly required rows wrap"),Vn("menu","type label",[Cr,"li"].join(" ")),Vn("noscript","",Cr),En!=="html4"&&(Vn("wbr"),Vn("ruby","",[Zr,"rt rp"].join(" ")),Vn("figcaption","",Cr),Vn("mark rt rp bdi","",Zr),Vn("summary","",[Zr,"h1 h2 h3 h4 h5 h6"].join(" ")),Vn("canvas","width height",Cr),Vn("video","src crossorigin poster preload autoplay mediagroup loop muted controls width height buffered",[Cr,"track source"].join(" ")),Vn("audio","src crossorigin preload autoplay mediagroup loop muted controls buffered volume",[Cr,"track source"].join(" ")),Vn("picture","","img source"),Vn("source","src srcset type media sizes"),Vn("track","kind src srclang label default"),Vn("datalist","",[Zr,"option"].join(" ")),Vn("article section nav aside main header footer","",Cr),Vn("hgroup","","h1 h2 h3 h4 h5 h6"),Vn("figure","",[Cr,"figcaption"].join(" ")),Vn("time","datetime",Zr),Vn("dialog","open",Cr),Vn("command","type label icon disabled checked radiogroup command"),Vn("output","for form name",Zr),Vn("progress","value max",Zr),Vn("meter","value min max low high optimum",Zr),Vn("details","open",[Cr,"summary"].join(" ")),Vn("keygen","autofocus challenge disabled form keytype name"),cl("svg","id tabindex lang xml:space class style x y width height viewBox preserveAspectRatio zoomAndPan transform".split(" "),[])),En!=="html5-strict"&&(qr("script","language xml:space"),qr("style","xml:space"),qr("object","declare classid code codebase codetype archive standby align border hspace vspace"),qr("embed","align name hspace vspace"),qr("param","valuetype type"),qr("a","charset name rev shape coords"),qr("br","clear"),qr("applet","codebase archive code object alt name width height align hspace vspace"),qr("img","name longdesc align border hspace vspace"),qr("iframe","longdesc frameborder marginwidth marginheight scrolling align"),qr("font basefont","size color face"),qr("input","usemap align"),qr("select"),qr("textarea"),qr("h1 h2 h3 h4 h5 h6 div p legend caption","align"),qr("ul","type compact"),qr("li","type"),qr("ol dl menu dir","compact"),qr("pre","width xml:space"),qr("hr","align noshade size width"),qr("isindex","prompt"),qr("table","summary width frame rules cellspacing cellpadding align bgcolor"),qr("col","width align char charoff valign"),qr("colgroup","width align char charoff valign"),qr("thead","align char charoff valign"),qr("tr","align char charoff valign bgcolor"),qr("th","axis align char charoff valign nowrap bgcolor width height"),qr("form","accept"),qr("td","abbr axis scope align char charoff valign nowrap bgcolor width height"),qr("tfoot","align char charoff valign"),qr("tbody","align char charoff valign"),qr("area","nohref"),qr("body","background bgcolor text link vlink alink")),En!=="html4"&&(qr("input button select textarea","autofocus"),qr("input textarea","placeholder"),qr("a","download"),qr("link script img","crossorigin"),qr("img","loading"),qr("iframe","sandbox seamless allow allowfullscreen loading")),En!=="html4"&&Se([Kr.video,Kr.audio],Fs=>{delete Fs.children.audio,delete Fs.children.video}),Se(Ds("a form meter progress dfn"),Fs=>{Kr[Fs]&&delete Kr[Fs].children[Fs]}),delete Kr.caption.children.table,delete Kr.script,Kr})(f);t.verify_html===!1&&(t.valid_elements="*[*]");const v=Cp(t.valid_styles),k=Cp(t.invalid_styles,"map"),E=Cp(t.valid_classes,"map"),B=u("whitespace_elements","pre script noscript style textarea video audio iframe object code"),O=u("self_closing_elements","colgroup dd dt li option p td tfoot th thead tr"),P=u("void_elements","area base basefont br col frame hr img input isindex link meta param embed source wbr track"),M=u("boolean_attributes","checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls allowfullscreen"),j="td th iframe video audio object script code",q=u("non_empty_elements",j+" pre svg",P),K=u("move_caret_before_on_enter_elements",j+" table",P),re="h1 h2 h3 h4 h5 h6",ee=u("text_block_elements",re+" p div address pre form blockquote center dir fieldset header footer article section hgroup aside main nav figure"),ke=u("block_elements","hr table tbody thead tfoot th tr td li ol ul caption dl dt dd noscript menu isindex option datalist select optgroup figcaption details summary html body multicol listing",ee),et=u("text_inline_elements","span strong b em i font s strike u var cite dfn code mark q sup sub samp"),st=u("transparent_elements","a ins del canvas map"),mt=u("wrap_block_elements","pre "+re);Al("script noscript iframe noframes noembed title style textarea xmp plaintext".split(" "),En=>{d[En]=new RegExp("]*>","gi")});const kt=En=>{const Ur=V.from(n["@"]),Zr=/[*?+]/;Se(((Cr,Kr)=>{const cl=/^([#+\-])?([^\[!\/]+)(?:\/([^\[!]+))?(?:(!?)\[([^\]]+)])?$/;return at(Ds(Kr,","),Vn=>{const qr=cl.exec(Vn);if(qr){const Fs=qr[1],dl=qr[2],Dl=qr[3],yc=qr[4],md=qr[5],Rl={attributes:{},attributesOrder:[]};if(Cr.each(gd=>((ul,ng)=>{Ft(ul.attributes,(wu,tm)=>{ng.attributes[tm]=wu}),ng.attributesOrder.push(...ul.attributesOrder)})(gd,Rl)),Fs==="#"?Rl.paddEmpty=!0:Fs==="-"&&(Rl.removeEmpty=!0),yc==="!"&&(Rl.removeEmptyAttrs=!0),md&&((gd,ul)=>{const ng=/^([!\-])?(\w+[\\:]:\w+|[^=~<]+)?(?:([=~<])(.*))?$/,wu=/[*?+]/,{attributes:tm,attributesOrder:Nf}=ul;Se(Ds(gd,"|"),Yh=>{const Xh=ng.exec(Yh);if(Xh){const qc={},jk=Xh[1],Ks=Xh[2].replace(/[\\:]:/g,":"),Dm=Xh[3],Mf=Xh[4];if(jk==="!"&&(ul.attributesRequired=ul.attributesRequired||[],ul.attributesRequired.push(Ks),qc.required=!0),jk==="-")return delete tm[Ks],void Nf.splice(go.inArray(Nf,Ks),1);if(Dm&&(Dm==="="?(ul.attributesDefault=ul.attributesDefault||[],ul.attributesDefault.push({name:Ks,value:Mf}),qc.defaultValue=Mf):Dm==="~"?(ul.attributesForced=ul.attributesForced||[],ul.attributesForced.push({name:Ks,value:Mf}),qc.forcedValue=Mf):Dm==="<"&&(qc.validValues=go.makeMap(Mf,"?"))),wu.test(Ks)){const Zy=qc;ul.attributePatterns=ul.attributePatterns||[],Zy.pattern=Vm(Ks),ul.attributePatterns.push(Zy)}else tm[Ks]||Nf.push(Ks),tm[Ks]=qc}})})(md,Rl),Dl&&(Rl.outputName=dl),dl==="@"){if(!Cr.isNone())return[];Cr=V.some(Rl)}return[Dl?{name:dl,element:Rl,aliasName:Dl}:{name:dl,element:Rl}]}return[]})})(Ur,En??""),({name:Cr,element:Kr,aliasName:cl})=>{if(cl&&(n[cl]=Kr),Zr.test(Cr)){const Vn=Kr;Vn.pattern=Vm(Cr),i.push(Vn)}else n[Cr]=Kr})},Ve=En=>{i=[],Se(ut(n),Ur=>{delete n[Ur]}),kt(En)},ot=En=>{delete Fc.text_block_elements,delete Fc.block_elements,Se((Ur=>{const Zr=/^(~)?(.+)$/;return at(Ds(Ur,","),Cr=>{const Kr=Zr.exec(Cr);if(Kr){const cl=Kr[1]==="~";return[{inline:cl,cloneName:cl?"span":"div",name:Kr[2]}]}return[]})})(En??""),({inline:Ur,name:Zr,cloneName:Cr})=>{if(a[Zr]=a[Cr],c[Zr]=Cr,q[Zr.toUpperCase()]={},q[Zr]={},Ur||(ke[Zr.toUpperCase()]={},ke[Zr]={}),!n[Zr]){let Kr=n[Cr];Kr=$m({},Kr),delete Kr.removeEmptyAttrs,delete Kr.removeEmpty,n[Zr]=Kr}Ft(a,(Kr,cl)=>{Kr[Cr]&&(a[cl]=Kr=$m({},a[cl]),Kr[Zr]=Kr[Cr])})})},pt=En=>{Se((Ur=>{const Zr=/^([+\-]?)([A-Za-z0-9_\-.\u00b7\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]+)\[([^\]]+)]$/;return at(Ds(Ur,","),Cr=>{const Kr=Zr.exec(Cr);if(Kr){const cl=Kr[1];return[{operation:cl?(qr=>qr==="-"?"remove":"add")(cl):"replace",name:Kr[2],validChildren:Ds(Kr[3],"|")}]}return[]})})(En??""),({operation:Ur,name:Zr,validChildren:Cr})=>{const Kr=Ur==="replace"?{"#comment":{}}:a[Zr];Se(Cr,cl=>{Ur==="remove"?delete Kr[cl]:Kr[cl]={}}),a[Zr]=Kr})},Jt=En=>{const Ur=n[En];if(Ur)return Ur;let Zr=i.length;for(;Zr--;){const Cr=i[Zr];if(Cr.pattern.test(En))return Cr}};t.valid_elements?(Ve(t.valid_elements),Al(y,(En,Ur)=>{a[Ur]=En.children})):(Al(y,(En,Ur)=>{n[Ur]={attributes:En.attributes,attributesOrder:En.attributesOrder},a[Ur]=En.children}),Al(Ds("strong/b em/i"),En=>{const Ur=Ds(En,"/");n[Ur[1]].outputName=Ur[0]}),Al(et,(En,Ur)=>{n[Ur]&&(t.padd_empty_block_inline_children&&(n[Ur].paddInEmptyBlock=!0),n[Ur].removeEmpty=!0)}),Al(Ds("ol ul blockquote a table tbody"),En=>{n[En]&&(n[En].removeEmpty=!0)}),Al(Ds("p h1 h2 h3 h4 h5 h6 th td pre div address caption li summary"),En=>{n[En]&&(n[En].paddEmpty=!0)}),Al(Ds("span"),En=>{n[En].removeEmptyAttrs=!0})),delete n.svg,ot(t.custom_elements),pt(t.valid_children),kt(t.extended_valid_elements),pt("+ol[ul|ol],+ul[ul|ol]"),Al({dd:"dl",dt:"dl",li:"ul ol",td:"tr",th:"tr",tr:"tbody thead tfoot",tbody:"table",thead:"table",tfoot:"table",legend:"fieldset",area:"map",param:"video audio object"},(En,Ur)=>{n[Ur]&&(n[Ur].parentsRequired=Ds(En))}),t.invalid_elements&&Al(mg(t.invalid_elements),En=>{n[En]&&delete n[En]}),Jt("span")||kt("span[!data-mce-type|*]");const en=Ct(v),Fo=Ct(k),Nn=Ct(E),An=Ct(M),Jn=Ct(ke),jn=Ct(ee),cn=Ct(et),vn=Ct(Object.seal(P)),cr=Ct(O),Qe=Ct(q),nt=Ct(K),so=Ct(B),mo=Ct(st),yo=Ct(mt),xn=Ct(Object.seal(d)),Wn=(En,Ur)=>{const Zr=Jt(En);if(Zr){if(!Ur)return!0;{if(Zr.attributes[Ur])return!0;const Cr=Zr.attributePatterns;if(Cr){let Kr=Cr.length;for(;Kr--;)if(Cr[Kr].pattern.test(Ur))return!0}}}return!1},hr=En=>ln(Jn(),En),tr=En=>!gr(En,"#")&&Wn(En)&&!hr(En),Qa=Ct(c);return{type:f,children:a,elements:n,getValidStyles:en,getValidClasses:Nn,getBlockElements:Jn,getInvalidStyles:Fo,getVoidElements:vn,getTextBlockElements:jn,getTextInlineElements:cn,getBoolAttrs:An,getElementRule:Jt,getSelfClosingElements:cr,getNonEmptyElements:Qe,getMoveCaretBeforeOnEnterElements:nt,getWhitespaceElements:so,getTransparentElements:mo,getSpecialElements:xn,isValidChild:(En,Ur)=>{const Zr=a[En.toLowerCase()];return!(!Zr||!Zr[Ur.toLowerCase()])},isValid:Wn,isBlock:hr,isInline:tr,isWrapper:En=>ln(yo(),En)||tr(En),getCustomElements:Qa,addValidElements:kt,setValidElements:Ve,addCustomElements:ot,addValidChildren:pt}},Sp=t=>{const o=t.toString(16);return(o.length===1?"0"+o:o).toUpperCase()},C=t=>(o=>{return{value:(n=o,Is(n,"#").toUpperCase())};var n})(Sp(t.red)+Sp(t.green)+Sp(t.blue)),D=/^\s*rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)\s*$/i,G=/^\s*rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?(?:\.\d+)?)\s*\)\s*$/i,ce=(t,o,n,a)=>({red:t,green:o,blue:n,alpha:a}),Ke=(t,o,n,a)=>{const i=parseInt(t,10),c=parseInt(o,10),d=parseInt(n,10),u=parseFloat(a);return ce(i,c,d,u)},Ut=t=>{if(t==="transparent")return V.some(ce(0,0,0,0));const o=D.exec(t);if(o!==null)return V.some(Ke(o[1],o[2],o[3],"1"));const n=G.exec(t);return n!==null?V.some(Ke(n[1],n[2],n[3],n[4])):V.none()},Ao=t=>`rgba(${t.red},${t.green},${t.blue},${t.alpha})`,qo=t=>Ut(t).map(C).map(o=>"#"+o.value).getOr(t),Xn=(t={},o)=>{const n=/(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,a=/\s*([^:]+):\s*([^;]+);?/g,i=/\s+$/,c={};let d,u;const f=Tl;o&&(d=o.getValidStyles(),u=o.getInvalidStyles());const y=`\\" \\' \\; \\: ; : \uFEFF`.split(" ");for(let k=0;k{const E={};let B=!1;const O=t.url_converter,P=t.url_converter_scope||v,M=(kt,Ve,ot)=>{const pt=E[kt+"-top"+Ve];if(!pt)return;const Jt=E[kt+"-right"+Ve];if(!Jt)return;const en=E[kt+"-bottom"+Ve];if(!en)return;const Fo=E[kt+"-left"+Ve];if(!Fo)return;const Nn=[pt,Jt,en,Fo];let An=Nn.length-1;for(;An--&&Nn[An]===Nn[An+1];);An>-1&&ot||(E[kt+Ve]=An===-1?Nn[0]:Nn.join(" "),delete E[kt+"-top"+Ve],delete E[kt+"-right"+Ve],delete E[kt+"-bottom"+Ve],delete E[kt+"-left"+Ve])},j=kt=>{const Ve=E[kt];if(!Ve)return;const ot=Ve.indexOf(",")>-1?[Ve]:Ve.split(" ");let pt=ot.length;for(;pt--;)if(ot[pt]!==ot[0])return!1;return E[kt]=ot[0],!0},q=kt=>(B=!0,c[kt]),K=(kt,Ve)=>(B&&(kt=kt.replace(/\uFEFF[0-9]/g,ot=>c[ot])),Ve||(kt=kt.replace(/\\([\'\";:])/g,"$1")),kt),re=kt=>String.fromCharCode(parseInt(kt.slice(1),16)),ee=kt=>kt.replace(/\\[0-9a-f]+/gi,re),ke=(kt,Ve,ot,pt,Jt,en)=>{if(Jt=Jt||en)return"'"+(Jt=K(Jt)).replace(/\'/g,"\\'")+"'";if(Ve=K(Ve||ot||pt||""),!t.allow_script_urls){const Fo=Ve.replace(/[\s\r\n]+/g,"");if(/(java|vb)script:/i.test(Fo)||!t.allow_svg_data_urls&&/^data:image\/svg/i.test(Fo))return""}return O&&(Ve=O.call(P,Ve,"style")),"url('"+Ve.replace(/\'/g,"\\'")+"')"};if(k){let kt;for(k=(k=k.replace(/[\u0000-\u001F]/g,"")).replace(/\\[\"\';:\uFEFF]/g,q).replace(/\"[^\"]+\"|\'[^\']+\'/g,Ve=>Ve.replace(/[;:]/g,q));kt=a.exec(k);){a.lastIndex=kt.index+kt[0].length;let Ve=kt[1].replace(i,"").toLowerCase(),ot=kt[2].replace(i,"");if(Ve&&ot){if(Ve=ee(Ve),ot=ee(ot),Ve.indexOf(f)!==-1||Ve.indexOf('"')!==-1||!t.allow_script_urls&&(Ve==="behavior"||/expression\s*\(|\/\*|\*\//.test(ot)))continue;Ve==="font-weight"&&ot==="700"?ot="bold":Ve!=="color"&&Ve!=="background-color"||(ot=ot.toLowerCase()),Ue(t.force_hex_color)&&t.force_hex_color!=="off"&&Ut(ot).each(pt=>{t.force_hex_color!=="always"&&pt.alpha!==1||(ot=qo(Ao(pt)))}),ot=ot.replace(n,ke),E[Ve]=B?K(ot,!0):ot}}M("border","",!0),M("border","-width"),M("border","-color"),M("border","-style"),M("padding",""),M("margin",""),st="border-style",mt="border-color",j(et="border-width")&&j(st)&&j(mt)&&(E.border=E[et]+" "+E[st]+" "+E[mt],delete E[et],delete E[st],delete E[mt]),E.border==="medium none"&&delete E.border,E["border-image"]==="none"&&delete E["border-image"]}var et,st,mt;return E},serialize:(k,E)=>{let B="";const O=(P,M)=>{const j=M[P];if(j)for(let q=0,K=j.length;q0?" ":"")+re+": "+ee+";")}};return E&&d?(O("*",d),O(E,d)):Ft(k,(P,M)=>{P&&((j,q)=>{if(!u||!q)return!0;let K=u["*"];return!(K&&K[j]||(K=u[q],K&&K[j]))})(M,E)&&(B+=(B.length>0?" ":"")+M+": "+P+";")}),B}};return v},pr={keyLocation:!0,layerX:!0,layerY:!0,returnValue:!0,webkitMovementX:!0,webkitMovementY:!0,keyIdentifier:!0,mozPressure:!0},is=(t,o)=>{const n=o??{};for(const a in t)ln(pr,a)||(n[a]=t[a]);return Ze(t.composedPath)&&(n.composedPath=()=>t.composedPath()),Ze(t.getModifierState)&&(n.getModifierState=a=>t.getModifierState(a)),Ze(t.getTargetRanges)&&(n.getTargetRanges=()=>t.getTargetRanges()),n},Nr=(t,o,n,a)=>{var i;const c=is(o,a);return c.type=t,me(c.target)&&(c.target=(i=c.srcElement)!==null&&i!==void 0?i:n),(d=>me(d.preventDefault)||(u=>u instanceof Event||de(u.initEvent))(d))(o)&&(c.preventDefault=()=>{c.defaultPrevented=!0,c.isDefaultPrevented=Bt,de(o.preventDefault)&&o.preventDefault()},c.stopPropagation=()=>{c.cancelBubble=!0,c.isPropagationStopped=Bt,de(o.stopPropagation)&&o.stopPropagation()},c.stopImmediatePropagation=()=>{c.isImmediatePropagationStopped=Bt,c.stopPropagation()},(d=>d.isDefaultPrevented===Bt||d.isDefaultPrevented===uo)(c)||(c.isDefaultPrevented=c.defaultPrevented===!0?Bt:uo,c.isPropagationStopped=c.cancelBubble===!0?Bt:uo,c.isImmediatePropagationStopped=uo)),c},ha=/^(?:mouse|contextmenu)|click/,Ia=(t,o,n,a)=>{t.addEventListener(o,n,a||!1)},Mi=(t,o,n,a)=>{t.removeEventListener(o,n,a||!1)},hi=(t,o)=>{const n=Nr(t.type,t,document,o);if((a=>Ze(a)&&ha.test(a.type))(t)&&fo(t.pageX)&&!fo(t.clientX)){const a=n.target.ownerDocument||document,i=a.documentElement,c=a.body,d=n;d.pageX=t.clientX+(i&&i.scrollLeft||c&&c.scrollLeft||0)-(i&&i.clientLeft||c&&c.clientLeft||0),d.pageY=t.clientY+(i&&i.scrollTop||c&&c.scrollTop||0)-(i&&i.clientTop||c&&c.clientTop||0)}return n},Td=(t,o,n)=>{const a=t.document,i={type:"ready"};if(n.domLoaded)return void o(i);const c=()=>{Mi(t,"DOMContentLoaded",c),Mi(t,"load",c),n.domLoaded||(n.domLoaded=!0,o(i)),t=null};a.readyState==="complete"||a.readyState==="interactive"&&a.body?c():Ia(t,"DOMContentLoaded",c),n.domLoaded||Ia(t,"load",c)};class zd{constructor(){this.domLoaded=!1,this.events={},this.count=1,this.expando="mce-data-"+(+new Date).toString(32),this.hasFocusIn="onfocusin"in document.documentElement,this.count=1}bind(o,n,a,i){const c=this;let d;const u=window,f=E=>{c.executeHandlers(hi(E||u.event),y)};if(!o||ro(o)||ni(o))return a;let y;o[c.expando]?y=o[c.expando]:(y=c.count++,o[c.expando]=y,c.events[y]={}),i=i||o;const v=n.split(" ");let k=v.length;for(;k--;){let E=v[k],B=f,O=!1,P=!1;E==="DOMContentLoaded"&&(E="ready"),c.domLoaded&&E==="ready"&&o.readyState==="complete"?a.call(i,hi({type:E})):(c.hasFocusIn||E!=="focusin"&&E!=="focusout"||(O=!0,P=E==="focusin"?"focus":"blur",B=M=>{const j=hi(M||u.event);j.type=j.type==="focus"?"focusin":"focusout",c.executeHandlers(j,y)}),d=c.events[y][E],d?E==="ready"&&c.domLoaded?a(hi({type:E})):d.push({func:a,scope:i}):(c.events[y][E]=d=[{func:a,scope:i}],d.fakeName=P,d.capture=O,d.nativeHandler=B,E==="ready"?Td(o,B,c):Ia(o,P||E,B,O)))}return o=d=null,a}unbind(o,n,a){if(!o||ro(o)||ni(o))return this;const i=o[this.expando];if(i){let c=this.events[i];if(n){const d=n.split(" ");let u=d.length;for(;u--;){const f=d[u],y=c[f];if(y){if(a){let v=y.length;for(;v--;)if(y[v].func===a){const k=y.nativeHandler,E=y.fakeName,B=y.capture,O=y.slice(0,v).concat(y.slice(v+1));O.nativeHandler=k,O.fakeName=E,O.capture=B,c[f]=O}}a&&y.length!==0||(delete c[f],Mi(o,y.fakeName||f,y.nativeHandler,y.capture))}}}else Ft(c,(d,u)=>{Mi(o,d.fakeName||u,d.nativeHandler,d.capture)}),c={};for(const d in c)if(ln(c,d))return this;delete this.events[i];try{delete o[this.expando]}catch{o[this.expando]=null}}return this}fire(o,n,a){return this.dispatch(o,n,a)}dispatch(o,n,a){if(!o||ro(o)||ni(o))return this;const i=hi({type:n,target:o},a);do{const c=o[this.expando];c&&this.executeHandlers(i,c),o=o.parentNode||o.ownerDocument||o.defaultView||o.parentWindow}while(o&&!i.isPropagationStopped());return this}clean(o){if(!o||ro(o)||ni(o))return this;if(o[this.expando]&&this.unbind(o),o.getElementsByTagName||(o=o.document),o&&o.getElementsByTagName){this.unbind(o);const n=o.getElementsByTagName("*");let a=n.length;for(;a--;)(o=n[a])[this.expando]&&this.unbind(o)}return this}destroy(){this.events={}}cancel(o){return o&&(o.preventDefault(),o.stopImmediatePropagation()),!1}executeHandlers(o,n){const a=this.events[n],i=a&&a[o.type];if(i)for(let c=0,d=i.length;c{me(n)||n===""?U(t,o):Q(t,o,n)},pg=t=>t.replace(/[A-Z]/g,o=>"-"+o.toLowerCase()),Fu=(t,o)=>{let n=0;if(t)for(let a=t.nodeType,i=t.previousSibling;i;i=i.previousSibling){const c=i.nodeType;(!o||!ro(i)||c!==a&&i.data.length)&&(n++,a=c)}return n},nd=(t,o)=>{const n=bt(o,"style"),a=t.serialize(t.parse(n),Pe(o));Od(o,Bu,a)},oa=(t,o,n)=>{const a=pg(o);me(n)||n===""?Wd(t,a):hd(t,a,((i,c)=>rt(i)?ln(Ad,c)?i+"":i+"px":i)(n,a))},wr=(t,o={})=>{const n={},a=window,i={};let c=0;const d=Hm.forElement(je(t),{contentCssCors:o.contentCssCors,referrerPolicy:o.referrerPolicy}),u=[],f=o.schema?o.schema:Du({}),y=Xn({url_converter:o.url_converter,url_converter_scope:o.url_converter_scope,force_hex_color:o.force_hex_color},o.schema),v=o.ownEvents?new zd:zd.Event,k=f.getBlockElements(),E=Qe=>Qe&&t&&Ue(Qe)?t.getElementById(Qe):Qe,B=Qe=>{const nt=E(Qe);return Ze(nt)?je(nt):null},O=(Qe,nt,so="")=>{let mo;const yo=B(Qe);if(Ze(yo)&&kn(yo)){const xn=cr[nt];mo=xn&&xn.get?xn.get(yo.dom,nt):bt(yo,nt)}return Ze(mo)?mo:so},P=Qe=>{const nt=E(Qe);return me(nt)?[]:nt.attributes},M=(Qe,nt,so)=>{st(Qe,mo=>{if(an(mo)){const yo=je(mo),xn=so===""?null:so,Wn=bt(yo,nt),hr=cr[nt];hr&&hr.set?hr.set(yo.dom,xn,nt):Od(yo,nt,xn),Wn!==xn&&o.onSetAttrib&&o.onSetAttrib({attrElm:yo.dom,attrName:nt,attrValue:xn})}})},j=()=>o.root_element||t.body,q=(Qe,nt)=>((so,mo,yo)=>{let xn=0,Wn=0;const hr=so.ownerDocument;if(yo=yo||so,mo){if(yo===so&&mo.getBoundingClientRect&&Yi(je(so),"position")==="static"){const Qa=mo.getBoundingClientRect();return xn=Qa.left+(hr.documentElement.scrollLeft||so.scrollLeft)-hr.documentElement.clientLeft,Wn=Qa.top+(hr.documentElement.scrollTop||so.scrollTop)-hr.documentElement.clientTop,{x:xn,y:Wn}}let tr=mo;for(;tr&&tr!==yo&&tr.nodeType&&!Qd(tr,yo);){const Qa=tr;xn+=Qa.offsetLeft||0,Wn+=Qa.offsetTop||0,tr=Qa.offsetParent}for(tr=mo.parentNode;tr&&tr!==yo&&tr.nodeType&&!Qd(tr,yo);)xn-=tr.scrollLeft||0,Wn-=tr.scrollTop||0,tr=tr.parentNode;Wn+=(Qa=>$r.isFirefox()&&Pe(Qa)==="table"?_n(Lt(Qa)).filter(En=>Pe(En)==="caption").bind(En=>_n(yt(En)).map(Ur=>{const Zr=Ur.dom.offsetTop,Cr=En.dom.offsetTop,Kr=En.dom.offsetHeight;return Zr<=Cr?-Kr:0})).getOr(0):0)(je(mo))}return{x:xn,y:Wn}})(t.body,E(Qe),nt),K=(Qe,nt,so)=>{const mo=E(Qe);var yo;if(!me(mo)&&(Ti(mo)||an(yo=mo)&&yo.namespaceURI==="http://www.w3.org/2000/svg"))return so?Yi(je(mo),pg(nt)):((nt=nt.replace(/-(\D)/g,(xn,Wn)=>Wn.toUpperCase()))==="float"&&(nt="cssFloat"),mo.style?mo.style[nt]:void 0)},re=Qe=>{const nt=E(Qe);if(!nt)return{w:0,h:0};let so=K(nt,"width"),mo=K(nt,"height");return so&&so.indexOf("px")!==-1||(so="0"),mo&&mo.indexOf("px")!==-1||(mo="0"),{w:parseInt(so,10)||nt.offsetWidth||nt.clientWidth,h:parseInt(mo,10)||nt.offsetHeight||nt.clientHeight}},ee=(Qe,nt)=>{if(!Qe)return!1;const so=co(Qe)?Qe:[Qe];return zo(so,mo=>Ci(je(mo),nt))},ke=(Qe,nt,so,mo)=>{const yo=[];let xn=E(Qe);mo=mo===void 0;const Wn=so||(j().nodeName!=="BODY"?j().parentNode:null);if(Ue(nt))if(nt==="*")nt=an;else{const hr=nt;nt=tr=>ee(tr,hr)}for(;xn&&!(xn===Wn||me(xn.nodeType)||xd(xn)||us(xn));){if(!nt||nt(xn)){if(!mo)return[xn];yo.push(xn)}xn=xn.parentNode}return mo?yo:null},et=(Qe,nt,so)=>{let mo=nt;if(Qe){Ue(nt)&&(mo=yo=>ee(yo,nt));for(let yo=Qe[so];yo;yo=yo[so])if(de(mo)&&mo(yo))return yo}return null},st=function(Qe,nt,so){const mo=so??this;if(co(Qe)){const yo=[];return cm(Qe,(xn,Wn)=>{const hr=E(xn);hr&&yo.push(nt.call(mo,hr,Wn))}),yo}{const yo=E(Qe);return!!yo&&nt.call(mo,yo)}},mt=(Qe,nt)=>{st(Qe,so=>{Ft(nt,(mo,yo)=>{M(so,yo,mo)})})},kt=(Qe,nt)=>{st(Qe,so=>{const mo=je(so);wc(mo,nt)})},Ve=(Qe,nt,so,mo,yo)=>st(Qe,xn=>{const Wn=Ue(nt)?t.createElement(nt):nt;return Ze(so)&&mt(Wn,so),mo&&(!Ue(mo)&&mo.nodeType?Wn.appendChild(mo):Ue(mo)&&kt(Wn,mo)),yo?Wn:xn.appendChild(Wn)}),ot=(Qe,nt,so)=>Ve(t.createElement(Qe),Qe,nt,so,!0),pt=Sc.encodeAllRaw,Jt=(Qe,nt)=>st(Qe,so=>{const mo=je(so);return nt&&Se(Lt(mo),yo=>{_r(yo)&&yo.dom.length===0?Ea(yo):rl(mo,yo)}),Ea(mo),mo.dom}),en=(Qe,nt,so)=>{st(Qe,mo=>{if(an(mo)){const yo=je(mo),xn=nt.split(" ");Se(xn,Wn=>{Ze(so)?(so?ks:Js)(yo,Wn):((hr,tr)=>{xt(hr)?hr.dom.classList.toggle(tr):((Qa,En)=>lo(po(Qa),En)?ga(Qa,En):Yn(Qa,En))(hr,tr),_i(hr)})(yo,Wn)})}})},Fo=(Qe,nt,so)=>st(nt,mo=>{var yo;const xn=co(nt)?Qe.cloneNode(!0):Qe;return so&&cm(Ru(mo.childNodes),Wn=>{xn.appendChild(Wn)}),(yo=mo.parentNode)===null||yo===void 0||yo.replaceChild(xn,mo),mo}),Nn=Qe=>{if(an(Qe)){const nt=Qe.nodeName.toLowerCase()==="a"&&!O(Qe,"href")&&O(Qe,"id");if(O(Qe,"name")||O(Qe,"data-mce-bookmark")||nt)return!0}return!1},An=()=>t.createRange(),Jn=(Qe,nt,so,mo)=>{if(co(Qe)){let yo=Qe.length;const xn=[];for(;yo--;)xn[yo]=Jn(Qe[yo],nt,so,mo);return xn}return!o.collect||Qe!==t&&Qe!==a||u.push([Qe,nt,so,mo]),v.bind(Qe,nt,so,mo||vn)},jn=(Qe,nt,so)=>{if(co(Qe)){let mo=Qe.length;const yo=[];for(;mo--;)yo[mo]=jn(Qe[mo],nt,so);return yo}if(u.length>0&&(Qe===t||Qe===a)){let mo=u.length;for(;mo--;){const[yo,xn,Wn]=u[mo];Qe!==yo||nt&&nt!==xn||so&&so!==Wn||v.unbind(yo,xn,Wn)}}return v.unbind(Qe,nt,so)},cn=Qe=>{if(Qe&&Ti(Qe)){const nt=Qe.getAttribute("data-mce-contenteditable");return nt&&nt!=="inherit"?nt:Qe.contentEditable!=="inherit"?Qe.contentEditable:null}return null},vn={doc:t,settings:o,win:a,files:i,stdMode:!0,boxModel:!0,styleSheetLoader:d,boundEvents:u,styles:y,schema:f,events:v,isBlock:Qe=>Ue(Qe)?ln(k,Qe):an(Qe)&&(ln(k,Qe.nodeName)||Ed(f,Qe)),root:null,clone:(Qe,nt)=>Qe.cloneNode(nt),getRoot:j,getViewPort:Qe=>{const nt=nm(Qe);return{x:nt.x,y:nt.y,w:nt.width,h:nt.height}},getRect:Qe=>{const nt=E(Qe),so=q(nt),mo=re(nt);return{x:so.x,y:so.y,w:mo.w,h:mo.h}},getSize:re,getParent:(Qe,nt,so)=>{const mo=ke(Qe,nt,so,!1);return mo&&mo.length>0?mo[0]:null},getParents:ke,get:E,getNext:(Qe,nt)=>et(Qe,nt,"nextSibling"),getPrev:(Qe,nt)=>et(Qe,nt,"previousSibling"),select:(Qe,nt)=>{var so,mo;const yo=(mo=(so=E(nt))!==null&&so!==void 0?so:o.root_element)!==null&&mo!==void 0?mo:t;return de(yo.querySelectorAll)?Pn(yo.querySelectorAll(Qe)):[]},is:ee,add:Ve,create:ot,createHTML:(Qe,nt,so="")=>{let mo="<"+Qe;for(const yo in nt)xr(nt,yo)&&(mo+=" "+yo+'="'+pt(nt[yo])+'"');return sr(so)&&ln(f.getVoidElements(),Qe)?mo+" />":mo+">"+so+""},createFragment:Qe=>{const nt=t.createElement("div"),so=t.createDocumentFragment();let mo;for(so.appendChild(nt),Qe&&(nt.innerHTML=Qe);mo=nt.firstChild;)so.appendChild(mo);return so.removeChild(nt),so},remove:Jt,setStyle:(Qe,nt,so)=>{st(Qe,mo=>{const yo=je(mo);oa(yo,nt,so),o.update_styles&&nd(y,yo)})},getStyle:K,setStyles:(Qe,nt)=>{st(Qe,so=>{const mo=je(so);Ft(nt,(yo,xn)=>{oa(mo,xn,yo)}),o.update_styles&&nd(y,mo)})},removeAllAttribs:Qe=>st(Qe,nt=>{const so=nt.attributes;for(let mo=so.length-1;mo>=0;mo--)nt.removeAttributeNode(so.item(mo))}),setAttrib:M,setAttribs:mt,getAttrib:O,getPos:q,parseStyle:Qe=>y.parse(Qe),serializeStyle:(Qe,nt)=>y.serialize(Qe,nt),addStyle:Qe=>{if(vn!==wr.DOM&&t===document){if(n[Qe])return;n[Qe]=!0}let nt=t.getElementById("mceDefaultStyles");if(!nt){nt=t.createElement("style"),nt.id="mceDefaultStyles",nt.type="text/css";const so=t.head;so.firstChild?so.insertBefore(nt,so.firstChild):so.appendChild(nt)}nt.styleSheet?nt.styleSheet.cssText+=Qe:nt.appendChild(t.createTextNode(Qe))},loadCSS:Qe=>{Qe||(Qe=""),Se(Qe.split(","),nt=>{i[nt]=!0,d.load(nt).catch($t)})},addClass:(Qe,nt)=>{en(Qe,nt,!0)},removeClass:(Qe,nt)=>{en(Qe,nt,!1)},hasClass:(Qe,nt)=>{const so=B(Qe),mo=nt.split(" ");return Ze(so)&&ze(mo,yo=>Vi(so,yo))},toggleClass:en,show:Qe=>{st(Qe,nt=>Wd(je(nt),"display"))},hide:Qe=>{st(Qe,nt=>hd(je(nt),"display","none"))},isHidden:Qe=>{const nt=B(Qe);return Ze(nt)&&aa(om(nt,"display"),"none")},uniqueId:Qe=>(Qe||"mce_")+c++,setHTML:kt,getOuterHTML:Qe=>{const nt=B(Qe);return Ze(nt)?an(nt.dom)?nt.dom.outerHTML:(so=>{const mo=_s("div"),yo=je(so.dom.cloneNode(!0));return os(mo,yo),yd(mo)})(nt):""},setOuterHTML:(Qe,nt)=>{st(Qe,so=>{an(so)&&(so.outerHTML=nt)})},decode:Sc.decode,encode:pt,insertAfter:(Qe,nt)=>{const so=E(nt);return st(Qe,mo=>{const yo=so==null?void 0:so.parentNode,xn=so==null?void 0:so.nextSibling;return yo&&(xn?yo.insertBefore(mo,xn):yo.appendChild(mo)),mo})},replace:Fo,rename:(Qe,nt)=>{if(Qe.nodeName!==nt.toUpperCase()){const so=ot(nt);return cm(P(Qe),mo=>{M(so,mo.nodeName,O(Qe,mo.nodeName))}),Fo(so,Qe,!0),so}return Qe},findCommonAncestor:(Qe,nt)=>{let so=Qe;for(;so;){let mo=nt;for(;mo&&so!==mo;)mo=mo.parentNode;if(so===mo)break;so=so.parentNode}return!so&&Qe.ownerDocument?Qe.ownerDocument.documentElement:so},run:st,getAttribs:P,isEmpty:(Qe,nt,so)=>{let mo=0;if(Nn(Qe))return!1;const yo=Qe.firstChild;if(yo){const xn=new Ns(yo,Qe),Wn=f?f.getWhitespaceElements():{},hr=nt||(f?f.getNonEmptyElements():null);let tr=yo;do{if(an(tr)){const Qa=tr.getAttribute("data-mce-bogus");if(Qa){tr=xn.next(Qa==="all");continue}const En=tr.nodeName.toLowerCase();if(hr&&hr[En]){if(En==="br"){mo++,tr=xn.next();continue}return!1}if(Nn(tr))return!1}if(ni(tr)||ro(tr)&&!ss(tr.data)&&(!(so!=null&&so.includeZwsp)||!xv(tr.data))||ro(tr)&&tr.parentNode&&Wn[tr.parentNode.nodeName]&&ss(tr.data))return!1;tr=xn.next()}while(tr)}return mo<=1},createRng:An,nodeIndex:Fu,split:(Qe,nt,so)=>{let mo,yo,xn=An();if(Qe&&nt&&Qe.parentNode&&nt.parentNode){const Wn=Qe.parentNode;return xn.setStart(Wn,Fu(Qe)),xn.setEnd(nt.parentNode,Fu(nt)),mo=xn.extractContents(),xn=An(),xn.setStart(nt.parentNode,Fu(nt)+1),xn.setEnd(Wn,Fu(Qe)+1),yo=xn.extractContents(),Wn.insertBefore(Nu(vn,mo,f),Qe),so?Wn.insertBefore(so,Qe):Wn.insertBefore(nt,Qe),Wn.insertBefore(Nu(vn,yo,f),Qe),Jt(Qe),so||nt}},bind:Jn,unbind:jn,fire:(Qe,nt,so)=>v.dispatch(Qe,nt,so),dispatch:(Qe,nt,so)=>v.dispatch(Qe,nt,so),getContentEditable:cn,getContentEditableParent:Qe=>{const nt=j();let so=null;for(let mo=Qe;mo&&mo!==nt&&(so=cn(mo),so===null);mo=mo.parentNode);return so},isEditable:Qe=>{if(Ze(Qe)){const nt=an(Qe)?Qe:Qe.parentElement;return Ze(nt)&&Ti(nt)&&nl(je(nt))}return!1},destroy:()=>{if(u.length>0){let Qe=u.length;for(;Qe--;){const[nt,so,mo]=u[Qe];v.unbind(nt,so,mo)}}Ft(i,(Qe,nt)=>{d.unload(nt),delete i[nt]})},isChildOf:(Qe,nt)=>Qe===nt||nt.contains(Qe),dumpRng:Qe=>"startContainer: "+Qe.startContainer.nodeName+", startOffset: "+Qe.startOffset+", endContainer: "+Qe.endContainer.nodeName+", endOffset: "+Qe.endOffset},cr=((Qe,nt,so)=>{const mo=nt.keep_values,yo={set:(Wn,hr,tr)=>{const Qa=je(Wn);de(nt.url_converter)&&Ze(hr)&&(hr=nt.url_converter.call(nt.url_converter_scope||so(),String(hr),tr,Wn)),Od(Qa,"data-mce-"+tr,hr),Od(Qa,tr,hr)},get:(Wn,hr)=>{const tr=je(Wn);return bt(tr,"data-mce-"+hr)||bt(tr,hr)}},xn={style:{set:(Wn,hr)=>{const tr=je(Wn);mo&&Od(tr,Bu,hr),U(tr,"style"),Ue(hr)&&qd(tr,Qe.parse(hr))},get:Wn=>{const hr=je(Wn),tr=bt(hr,Bu)||bt(hr,"style");return Qe.serialize(Qe.parse(tr),Pe(hr))}}};return mo&&(xn.href=xn.src=yo),xn})(y,o,Ct(vn));return vn};wr.DOM=wr(document),wr.nodeIndex=Fu;const hl=wr.DOM;class Jr{constructor(o={}){this.states={},this.queue=[],this.scriptLoadedCallbacks={},this.queueLoadedCallbacks=[],this.loading=!1,this.settings=o}_setReferrerPolicy(o){this.settings.referrerPolicy=o}loadScript(o){return new Promise((n,a)=>{const i=hl;let c;const d=()=>{i.remove(u),c&&(c.onerror=c.onload=c=null)},u=i.uniqueId();c=document.createElement("script"),c.id=u,c.type="text/javascript",c.src=go._addCacheSuffix(o),this.settings.referrerPolicy&&i.setAttrib(c,"referrerpolicy",this.settings.referrerPolicy),c.onload=()=>{d(),n()},c.onerror=()=>{d(),a("Failed to load script: "+o)},(document.getElementsByTagName("head")[0]||document.body).appendChild(c)})}isDone(o){return this.states[o]===2}markDone(o){this.states[o]=2}add(o){const n=this;return n.queue.push(o),n.states[o]===void 0&&(n.states[o]=0),new Promise((a,i)=>{n.scriptLoadedCallbacks[o]||(n.scriptLoadedCallbacks[o]=[]),n.scriptLoadedCallbacks[o].push({resolve:a,reject:i})})}load(o){return this.add(o)}remove(o){delete this.states[o],delete this.scriptLoadedCallbacks[o]}loadQueue(){const o=this.queue;return this.queue=[],this.loadScripts(o)}loadScripts(o){const n=this,a=(f,y)=>{Fn(n.scriptLoadedCallbacks,y).each(v=>{Se(v,k=>k[f](y))}),delete n.scriptLoadedCallbacks[y]},i=f=>{const y=gt(f,v=>v.status==="rejected");return y.length>0?Promise.reject(at(y,({reason:v})=>co(v)?v:[v])):Promise.resolve()},c=f=>Promise.allSettled(to(f,y=>n.states[y]===2?(a("resolve",y),Promise.resolve()):n.states[y]===3?(a("reject",y),Promise.reject(y)):(n.states[y]=1,n.loadScript(y).then(()=>{n.states[y]=2,a("resolve",y);const v=n.queue;return v.length>0?(n.queue=[],c(v).then(i)):Promise.resolve()},()=>(n.states[y]=3,a("reject",y),Promise.reject(y)))))),d=f=>(n.loading=!0,c(f).then(y=>{n.loading=!1;const v=n.queueLoadedCallbacks.shift();return V.from(v).each(Rt),i(y)})),u=Ys(o);return n.loading?new Promise((f,y)=>{n.queueLoadedCallbacks.push(()=>{d(u).then(f,y)})}):d(u)}}Jr.ScriptLoader=new Jr;const bi=t=>{let o=t;return{get:()=>o,set:n=>{o=n}}},rs={},Di=bi("en"),Lc=()=>Fn(rs,Di.get()),Zi={getData:()=>vo(rs,t=>({...t})),setCode:t=>{t&&Di.set(t)},getCode:()=>Di.get(),add:(t,o)=>{let n=rs[t];n||(rs[t]=n={});const a=to(ut(o),i=>i.toLowerCase());Ft(o,(i,c)=>{const d=c.toLowerCase();d!==c&&((u,f)=>{const y=u.indexOf(f);return y!==-1&&u.indexOf(f,y+1)>y})(a,d)?(ln(o,d)||(n[d]=i),n[c]=i):n[d]=i})},translate:t=>{const o=Lc().getOr({}),n=u=>de(u)?Object.prototype.toString.call(u):a(u)?"":""+u,a=u=>u===""||u==null,i=u=>{const f=n(u);return ln(o,f)?n(o[f]):Fn(o,f.toLowerCase()).map(n).getOr(f)},c=u=>u.replace(/{context:\w+}$/,"");if(a(t))return"";if(it(d=t)&&ln(d,"raw"))return n(t.raw);var d;if((u=>co(u)&&u.length>1)(t)){const u=t.slice(1);return c(i(t[0]).replace(/\{([0-9]+)\}/g,(f,y)=>ln(u,y)?n(u[y]):f))}return c(i(t))},isRtl:()=>Lc().bind(t=>Fn(t,"_dir")).exists(t=>t==="rtl"),hasCode:t=>ln(rs,t)},bl=()=>{const t=[],o={},n={},a=[],i=(f,y)=>{const v=gt(a,k=>k.name===f&&k.state===y);Se(v,k=>k.resolve())},c=f=>ln(o,f),d=(f,y)=>{const v=Zi.getCode();!v||y&&(","+(y||"")+",").indexOf(","+v+",")===-1||Jr.ScriptLoader.add(o[f]+"/langs/"+v+".js")},u=(f,y="added")=>y==="added"&&(v=>ln(n,v))(f)||y==="loaded"&&c(f)?Promise.resolve():new Promise(v=>{a.push({name:f,state:y,resolve:v})});return{items:t,urls:o,lookup:n,get:f=>{if(n[f])return n[f].instance},requireLangPack:(f,y)=>{bl.languageLoad!==!1&&(c(f)?d(f,y):u(f,"loaded").then(()=>d(f,y)))},add:(f,y)=>(t.push(y),n[f]={instance:y},i(f,"added"),y),remove:f=>{delete o[f],delete n[f]},createUrl:(f,y)=>Ue(y)?Ue(f)?{prefix:"",resource:y,suffix:""}:{prefix:f.prefix,resource:y,suffix:f.suffix}:y,load:(f,y)=>{if(o[f])return Promise.resolve();let v=Ue(y)?y:y.prefix+y.resource+y.suffix;v.indexOf("/")!==0&&v.indexOf("://")===-1&&(v=bl.baseURL+"/"+v),o[f]=v.substring(0,v.lastIndexOf("/"));const k=()=>(i(f,"loaded"),Promise.resolve());return n[f]?k():Jr.ScriptLoader.add(v).then(k)},waitFor:u}};bl.languageLoad=!0,bl.baseURL="",bl.PluginManager=bl(),bl.ThemeManager=bl(),bl.ModelManager=bl();const Lu=t=>{const o=bi(V.none()),n=()=>o.get().each(a=>clearInterval(a));return{clear:()=>{n(),o.set(V.none())},isSet:()=>o.get().isSome(),get:()=>o.get(),set:a=>{n(),o.set(V.some(setInterval(a,t)))}}},Ec=()=>{const t=(o=>{const n=bi(V.none()),a=()=>n.get().each(o);return{clear:()=>{a(),n.set(V.none())},isSet:()=>n.get().isSome(),get:()=>n.get(),set:i=>{a(),n.set(V.some(i))}}})($t);return{...t,on:o=>t.get().each(o)}},Ep=(t,o)=>{let n=null;return{cancel:()=>{he(n)||(clearTimeout(n),n=null)},throttle:(...a)=>{he(n)&&(n=setTimeout(()=>{n=null,t.apply(null,a)},o))}}},Iu=(t,o)=>{let n=null;const a=()=>{he(n)||(clearTimeout(n),n=null)};return{cancel:a,throttle:(...i)=>{a(),n=setTimeout(()=>{n=null,t.apply(null,i)},o)}}},tu=Ct("mce-annotation"),dm=Ct("data-mce-annotation"),Tp=Ct("data-mce-annotation-uid"),fg=Ct("data-mce-annotation-active"),zp=Ct("data-mce-annotation-classes"),Ya=Ct("data-mce-annotation-attrs"),ib=t=>o=>sa(o,t),Jy=(t,o)=>{const n=t.selection.getRng(),a=je(n.startContainer),i=je(t.getBody()),c=o.fold(()=>"."+tu(),u=>`[${dm()}="${u}"]`),d=yn(a,n.startOffset).getOr(a);return Yc(d,c,ib(i)).bind(u=>wo(u,`${Tp()}`).bind(f=>wo(u,`${dm()}`).map(y=>{const v=yl(t,f);return{uid:f,name:y,elements:v}})))},Pf=(t,o)=>Zn(t,"data-mce-bogus")||Qc(t,'[data-mce-bogus="all"]',ib(o)),yl=(t,o)=>{const n=je(t.getBody()),a=wa(n,`[${Tp()}="${o}"]`);return gt(a,i=>!Pf(i,n))},Tc=(t,o)=>{const n=je(t.getBody()),a=wa(n,`[${dm()}="${o}"]`),i={};return Se(a,c=>{if(!Pf(c,n)){const d=bt(c,Tp()),u=Fn(i,d).getOr([]);i[d]=u.concat([c])}}),i};let rd=0;const hg=t=>{const o=new Date().getTime(),n=Math.floor(1e9*Math.random());return rd++,t+"_"+n+rd+String(o)},lb=(t,o)=>je(t.dom.cloneNode(o)),Um=t=>lb(t,!1),Hf=t=>lb(t,!0),ou=(t,o,n=uo)=>{const a=new Ns(t,o),i=c=>{let d;do d=a[c]();while(d&&!ro(d)&&!n(d));return V.from(d).filter(ro)};return{current:()=>V.from(a.current()).filter(ro),next:()=>i("next"),prev:()=>i("prev"),prev2:()=>i("prev2")}},um=(t,o)=>{const n=o||(i=>t.isBlock(i)||da(i)||Oa(i)),a=(i,c,d,u)=>{if(ro(i)){const f=u(i,c,i.data);if(f!==-1)return V.some({container:i,offset:f})}return d().bind(f=>a(f.container,f.offset,d,u))};return{backwards:(i,c,d,u)=>{const f=ou(i,u??t.getRoot(),n);return a(i,c,()=>f.prev().map(y=>({container:y,offset:y.length})),d).getOrNull()},forwards:(i,c,d,u)=>{const f=ou(i,u??t.getRoot(),n);return a(i,c,()=>f.next().map(y=>({container:y,offset:0})),d).getOrNull()}}},vs=Math.round,Vl=t=>t?{left:vs(t.left),top:vs(t.top),bottom:vs(t.bottom),right:vs(t.right),width:vs(t.width),height:vs(t.height)}:{left:0,top:0,bottom:0,right:0,width:0,height:0},bg=(t,o)=>(t=Vl(t),o||(t.left=t.left+t.width),t.right=t.left,t.width=0,t),Ap=(t,o,n)=>t>=0&&t<=Math.min(o.height,n.height)/2,si=(t,o)=>{const n=Math.min(o.height/2,t.height/2);return t.bottom-no.bottom)&&Ap(o.top-t.bottom,t,o)},ad=(t,o)=>t.top>o.bottom||!(t.bottom{const a=Math.max(Math.min(o,t.left+t.width),t.left),i=Math.max(Math.min(n,t.top+t.height),t.top);return Math.sqrt((o-a)*(o-a)+(n-i)*(n-i))},cb=t=>{const o=t.startContainer,n=t.startOffset;return o===t.endContainer&&o.hasChildNodes()&&t.endOffset===n+1?o.childNodes[n]:null},Pu=(t,o)=>{if(an(t)&&t.hasChildNodes()){const n=t.childNodes,a=((i,c,d)=>Math.min(Math.max(i,0),d))(o,0,n.length-1);return n[a]}return t},e_=new RegExp("[̀-ͯ҃-҇҈-҉֑-ֽֿׁ-ׂׄ-ׇׅؐ-ًؚ-ٰٟۖ-ۜ۟-ۤۧ-۪ۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣣ-ंऺ़ु-ै्॑-ॗॢ-ॣঁ়াু-ৄ্ৗৢ-ৣਁ-ਂ਼ੁ-ੂੇ-ੈੋ-੍ੑੰ-ੱੵઁ-ં઼ુ-ૅે-ૈ્ૢ-ૣଁ଼ାିୁ-ୄ୍ୖୗୢ-ୣஂாீ்ௗఀా-ీె-ైొ-్ౕ-ౖౢ-ౣಁ಼ಿೂೆೌ-್ೕ-ೖೢ-ೣഁാു-ൄ്ൗൢ-ൣ්ාි-ුූෟัิ-ฺ็-๎ັິ-ູົ-ຼ່-ໍ༘-ཱ༹༙༵༷-ཾྀ-྄྆-྇ྍ-ྗྙ-ྼ࿆ိ-ူဲ-့္-်ွ-ှၘ-ၙၞ-ၠၱ-ၴႂႅ-ႆႍႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒ-ᝓᝲ-ᝳ឴-឵ិ-ួំ៉-៓៝᠋-᠍ᢩᤠ-ᤢᤧ-ᤨᤲ᤹-᤻ᨗ-ᨘᨛᩖᩘ-ᩞ᩠ᩢᩥ-ᩬᩳ-᩿᩼᪰-᪽᪾ᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳ᮀ-ᮁᮢ-ᮥᮨ-ᮩ᮫-ᮭ᯦ᯨ-ᯩᯭᯯ-ᯱᰬ-ᰳᰶ-᰷᳐-᳔᳒-᳢᳠-᳨᳭᳴᳸-᳹᷀-᷵᷼-᷿‌-‍⃐-⃜⃝-⃠⃡⃢-⃤⃥-⃰⳯-⵿⳱ⷠ-〪ⷿ-〭〮-゙〯-゚꙯꙰-꙲ꙴ-꙽ꚞ-ꚟ꛰-꛱ꠂ꠆ꠋꠥ-ꠦ꣄꣠-꣱ꤦ-꤭ꥇ-ꥑꦀ-ꦂ꦳ꦶ-ꦹꦼꧥꨩ-ꨮꨱ-ꨲꨵ-ꨶꩃꩌꩼꪰꪲ-ꪴꪷ-ꪸꪾ-꪿꫁ꫬ-ꫭ꫶ꯥꯨ꯭ﬞ︀-️︠-゙︯-゚]"),Np=t=>Ue(t)&&t.charCodeAt(0)>=768&&e_.test(t),Mp=an,Qy=Ka,e1=Sl("display","block table"),jf=Sl("float","left right"),Nd=((...t)=>o=>{for(let n=0;no<0&&an(t)&&t.hasChildNodes()?void 0:Pu(t,o),as=t=>t?t.createRange():wr.DOM.createRng(),db=t=>Ue(t)&&/[\r\n\t ]/.test(t),t1=t=>!!t.setStart&&!!t.setEnd,Ji=t=>{const o=t.startContainer,n=t.startOffset;if(db(t.toString())&&Vf(o.parentNode)&&ro(o)){const a=o.data;if(db(a[n-1])||db(a[n+1]))return!0}return!1},mm=t=>t.left===0&&t.right===0&&t.top===0&&t.bottom===0,ru=t=>{var o;let n;const a=t.getClientRects();return n=a.length>0?Vl(a[0]):Vl(t.getBoundingClientRect()),!t1(t)&&Ol(t)&&mm(n)?(i=>{const c=i.ownerDocument,d=as(c),u=c.createTextNode(ns),f=i.parentNode;f.insertBefore(u,i),d.setStart(u,0),d.setEnd(u,1);const y=Vl(d.getBoundingClientRect());return f.removeChild(u),y})(t):mm(n)&&t1(t)&&(o=(i=>{const c=i.startContainer,d=i.endContainer,u=i.startOffset,f=i.endOffset;if(c===d&&ro(d)&&u===0&&f===1){const y=i.cloneRange();return y.setEndAfter(d),ru(y)}return null})(t))!==null&&o!==void 0?o:n},gm=(t,o)=>{const n=bg(t,o);return n.width=1,n.right=n.left+1,n},Ht=(t,o,n)=>{const a=()=>(n||(n=(i=>{const c=[],d=v=>{var k,E;v.height!==0&&(c.length>0&&(k=v,E=c[c.length-1],k.left===E.left&&k.top===E.top&&k.bottom===E.bottom&&k.right===E.right)||c.push(v))},u=(v,k)=>{const E=as(v.ownerDocument);if(k0&&(E.setStart(v,k-1),E.setEnd(v,k),Ji(E)||d(gm(ru(E),!1))),k{const i=as(t.ownerDocument);return i.setStart(t,o),i.setEnd(t,o),i},getClientRects:a,isVisible:()=>a().length>0,isAtStart:()=>(Hr(t),o===0),isAtEnd:()=>Hr(t)?o>=t.data.length:o>=t.childNodes.length,isEqual:i=>i&&t===i.container()&&o===i.offset(),getNode:i=>Dp(t,i?o-1:o)}};Ht.fromRangeStart=t=>Ht(t.startContainer,t.startOffset),Ht.fromRangeEnd=t=>Ht(t.endContainer,t.endOffset),Ht.after=t=>Ht(t.parentNode,nu(t)+1),Ht.before=t=>Ht(t.parentNode,nu(t)),Ht.isAbove=(t,o)=>Ir(Zo(o.getClientRects()),Gn(t.getClientRects()),si).getOr(!1),Ht.isBelow=(t,o)=>Ir(Gn(o.getClientRects()),Zo(t.getClientRects()),ad).getOr(!1),Ht.isAtStart=t=>!!t&&t.isAtStart(),Ht.isAtEnd=t=>!!t&&t.isAtEnd(),Ht.isTextPosition=t=>!!t&&ro(t.container()),Ht.isElementPosition=t=>!Ht.isTextPosition(t);const Rp=(t,o)=>{ro(o)&&o.data.length===0&&t.remove(o)},ub=(t,o,n)=>{us(n)?((a,i,c)=>{const d=V.from(c.firstChild),u=V.from(c.lastChild);i.insertNode(c),d.each(f=>Rp(a,f.previousSibling)),u.each(f=>Rp(a,f.nextSibling))})(t,o,n):((a,i,c)=>{i.insertNode(c),Rp(a,c.previousSibling),Rp(a,c.nextSibling)})(t,o,n)},Md=ro,o1=El,n1=wr.nodeIndex,yg=t=>{const o=t.parentNode;return o1(o)?yg(o):o},mc=t=>t?$s(t.childNodes,(o,n)=>(o1(n)&&n.nodeName!=="BR"?o=o.concat(mc(n)):o.push(n),o),[]):[],sl=t=>o=>t===o,pm=t=>(Md(t)?"text()":t.nodeName.toLowerCase())+"["+(o=>{let n,a;n=mc(yg(o)),a=Us(n,sl(o),o),n=n.slice(0,a+1);const i=$s(n,(c,d,u)=>(Md(d)&&Md(n[u-1])&&c++,c),0);return n=ja(n,ka([o.nodeName])),a=Us(n,sl(o),o),a-i})(t)+"]",r1=(t,o)=>{let n,a=[],i=o.container(),c=o.offset();if(Md(i))n=((u,f)=>{let y=u;for(;(y=y.previousSibling)&&Md(y);)f+=y.data.length;return f})(i,c);else{const u=i.childNodes;c>=u.length?(n="after",c=u.length-1):n="before",i=u[c]}a.push(pm(i));let d=((u,f,y)=>{const v=[];for(let k=f.parentNode;k&&k!==u;k=k.parentNode)v.push(k);return v})(t,i);return d=ja(d,lt(El)),a=a.concat(Ha(d,u=>pm(u))),a.reverse().join("/")+","+n},a1=(t,o)=>{if(!o)return null;const n=o.split(","),a=n[0].split("/"),i=n.length>1?n[1]:"before",c=$s(a,(d,u)=>{const f=/([\w\-\(\)]+)\[([0-9]+)\]/.exec(u);return f?(f[1]==="text()"&&(f[1]="#text"),((y,v,k)=>{let E=mc(y);return E=ja(E,(B,O)=>!Md(B)||!Md(E[O-1])),E=ja(E,ka([v])),E[k]})(d,f[1],parseInt(f[2],10))):null},t);if(!c)return null;if(!Md(c)&&c.parentNode){let d;return d=i==="after"?n1(c)+1:n1(c),Ht(c.parentNode,d)}return((d,u)=>{let f=d,y=0;for(;Md(f);){const v=f.data.length;if(u>=y&&u<=y+v){d=f,u-=y;break}if(!Md(f.nextSibling)){d=f,u=v;break}y+=v,f=f.nextSibling}return Md(d)&&u>d.data.length&&(u=d.data.length),Ht(d,u)})(c,parseInt(i,10))},$f=Oa,mb=(t,o,n,a,i)=>{const c=i?a.startContainer:a.endContainer;let d=i?a.startOffset:a.endOffset;const u=[],f=t.getRoot();if(ro(c))u.push(n?((y,v,k)=>{let E=y(v.data.slice(0,k)).length;for(let B=v.previousSibling;B&&ro(B);B=B.previousSibling)E+=y(B.data).length;return E})(o,c,d):d);else{let y=0;const v=c.childNodes;d>=v.length&&v.length&&(y=1,d=Math.max(0,v.length-1)),u.push(t.nodeIndex(v[d],n)+y)}for(let y=c;y&&y!==f;y=y.parentNode)u.push(t.nodeIndex(y,n));return u},Uf=(t,o,n)=>{let a=0;return go.each(t.select(o),i=>i.getAttribute("data-mce-bogus")==="all"?void 0:i!==n&&void a++),a},gb=(t,o)=>{let n=o?t.startContainer:t.endContainer,a=o?t.startOffset:t.endOffset;if(an(n)&&n.nodeName==="TR"){const i=n.childNodes;n=i[Math.min(o?a:a-1,i.length-1)],n&&(a=o?0:n.childNodes.length,o?t.setStart(n,a):t.setEnd(n,a))}},Qi=t=>(gb(t,!0),gb(t,!1),t),Gs=(t,o)=>{if(an(t)&&(t=Pu(t,o),$f(t)))return t;if(Ws(t)){ro(t)&&Pl(t)&&(t=t.parentNode);let n=t.previousSibling;if($f(n)||(n=t.nextSibling,$f(n)))return n}},vl=(t,o,n)=>{const a=n.getNode(),i=n.getRng();if(a.nodeName==="IMG"||$f(a)){const d=a.nodeName;return{name:d,index:Uf(n.dom,d,a)}}const c=(d=>Gs(d.startContainer,d.startOffset)||Gs(d.endContainer,d.endOffset))(i);if(c){const d=c.tagName;return{name:d,index:Uf(n.dom,d,c)}}return((d,u,f,y)=>{const v=u.dom,k=mb(v,d,f,y,!0),E=u.isForward(),B=J(y)?{isFakeCaret:!0}:{};return u.isCollapsed()?{start:k,forward:E,...B}:{start:k,end:mb(v,d,f,y,!1),forward:E,...B}})(t,n,o,i)},Wa=(t,o,n)=>{const a={"data-mce-type":"bookmark",id:o,style:"overflow:hidden;line-height:0px"};return n?t.create("span",a,""):t.create("span",a)},Nl=(t,o)=>{const n=t.dom;let a=t.getRng();const i=n.uniqueId(),c=t.isCollapsed(),d=t.getNode(),u=d.nodeName,f=t.isForward();if(u==="IMG")return{name:u,index:Uf(n,u,d)};const y=Qi(a.cloneRange());if(!c){y.collapse(!1);const k=Wa(n,i+"_end",o);ub(n,y,k)}a=Qi(a),a.collapse(!0);const v=Wa(n,i+"_start",o);return ub(n,a,v),t.moveToBookmark({id:i,keep:!0,forward:f}),{id:i,forward:f}},yi=Je(vl,R,!0),pb=t=>{const o=c=>c(t),n=Ct(t),a=()=>i,i={tag:!0,inner:t,fold:(c,d)=>d(t),isValue:Bt,isError:uo,map:c=>$l.value(c(t)),mapError:a,bind:o,exists:o,forall:o,getOr:n,or:a,getOrThunk:n,orThunk:a,getOrDie:n,each:c=>{c(t)},toOptional:()=>V.some(t)};return i},Zf=t=>{const o=()=>n,n={tag:!1,inner:t,fold:(a,i)=>a(t),isValue:uo,isError:Bt,map:o,mapError:a=>$l.error(a(t)),bind:o,exists:uo,forall:Bt,getOr:R,or:R,getOrThunk:ht,orThunk:ht,getOrDie:Mt(String(t)),each:$t,toOptional:V.none};return n},$l={value:pb,error:Zf,fromOption:(t,o)=>t.fold(()=>Zf(o),pb)},zc=t=>{if(!co(t))throw new Error("cases must be an array");if(t.length===0)throw new Error("there must be at least one case");const o=[],n={};return Se(t,(a,i)=>{const c=ut(a);if(c.length!==1)throw new Error("one and only one name per case");const d=c[0],u=a[d];if(n[d]!==void 0)throw new Error("duplicate key detected:"+d);if(d==="cata")throw new Error("cannot have a case named cata (sorry)");if(!co(u))throw new Error("case arguments must be an array");o.push(d),n[d]=(...f)=>{const y=f.length;if(y!==u.length)throw new Error("Wrong number of arguments to case "+d+". Expected "+u.length+" ("+u+"), got "+y);return{fold:(...v)=>{if(v.length!==t.length)throw new Error("Wrong number of arguments to fold. Expected "+t.length+", got "+v.length);return v[i].apply(null,f)},match:v=>{const k=ut(v);if(o.length!==k.length)throw new Error("Wrong number of arguments to match. Expected: "+o.join(",")+` +Actual: `+k.join(","));if(!ze(o,E=>lo(k,E)))throw new Error("Not all branches were specified when using match. Specified: "+k.join(", ")+` +Required: `+o.join(", "));return v[d].apply(null,f)},log:v=>{}}}}),n};zc([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);const s1=t=>t.type==="inline-command"||t.type==="inline-format",Zm=t=>t.type==="block-command"||t.type==="block-format",fb=t=>{const o=a=>$l.error({message:a,pattern:t}),n=(a,i,c)=>{if(t.format!==void 0){let d;if(co(t.format)){if(!ze(t.format,Ue))return o(a+" pattern has non-string items in the `format` array");d=t.format}else{if(!Ue(t.format))return o(a+" pattern has non-string `format` parameter");d=[t.format]}return $l.value(i(d))}return t.cmd!==void 0?Ue(t.cmd)?$l.value(c(t.cmd,t.value)):o(a+" pattern has non-string `cmd` parameter"):o(a+" pattern is missing both `format` and `cmd` parameters")};if(!it(t))return o("Raw pattern is not an object");if(!Ue(t.start))return o("Raw pattern is missing `start` parameter");if(t.end!==void 0){if(!Ue(t.end))return o("Inline pattern has non-string `end` parameter");if(t.start.length===0&&t.end.length===0)return o("Inline pattern has empty `start` and `end` parameters");let a=t.start,i=t.end;return i.length===0&&(i=a,a=""),n("Inline",c=>({type:"inline-format",start:a,end:i,format:c}),(c,d)=>({type:"inline-command",start:a,end:i,cmd:c,value:d}))}return t.replacement!==void 0?Ue(t.replacement)?t.start.length===0?o("Replacement pattern has empty `start` parameter"):$l.value({type:"inline-command",start:"",end:t.start,cmd:"mceInsertContent",value:t.replacement}):o("Replacement pattern has non-string `replacement` parameter"):t.start.length===0?o("Block pattern has empty `start` parameter"):n("Block",a=>({type:"block-format",start:t.start,format:a[0]}),(a,i)=>({type:"block-command",start:t.start,cmd:a,value:i}))},Bp=t=>gt(t,Zm),wv=t=>gt(t,s1),kv=t=>{const o=(n=>{const a=[],i=[];return Se(n,c=>{c.fold(d=>{a.push(d)},d=>{i.push(d)})}),{errors:a,values:i}})(to(t,fb));return Se(o.errors,n=>console.error(n.message,n.pattern)),o.values},qf=Aa().deviceType,_v=qf.isTouch(),i1=wr.DOM,Oo=t=>To(t,RegExp),sn=t=>o=>o.options.get(t),Ri=t=>Ue(t)||it(t),Wf=(t,o="")=>n=>{const a=Ue(n);if(a){if(n.indexOf("=")!==-1){const i=(c=>{const d=c.indexOf("=")>0?c.split(/[;,](?![^=;,]*(?:[;,]|$))/):c.split(",");return Oe(d,(u,f)=>{const y=f.split("="),v=y[0],k=y.length>1?y[1]:v;return u[wt(v)]=wt(k),u},{})})(n);return{value:Fn(i,t.id).getOr(o),valid:a}}return{value:n,valid:a}}return{valid:!1,message:"Must be a string."}},Fp=sn("iframe_attrs"),l1=sn("doctype"),tc=sn("document_base_url"),t_=sn("body_id"),sd=sn("body_class"),hb=sn("content_security_policy"),Gf=sn("br_in_pre"),Ts=sn("forced_root_block"),gc=sn("forced_root_block_attrs"),Kf=sn("newline_behavior"),Ic=sn("br_newline_selector"),c1=sn("no_newline_selector"),Yf=sn("keep_styles"),d1=sn("end_container_on_empty_block"),bb=sn("automatic_uploads"),Xf=sn("images_reuse_filename"),o_=sn("images_replace_blob_uris"),yb=sn("icons"),Cv=sn("icons_url"),n_=sn("images_upload_url"),Jf=sn("images_upload_base_path"),Sv=sn("images_upload_credentials"),Lp=sn("images_upload_handler"),oc=sn("content_css_cors"),Hu=sn("referrer_policy"),vg=sn("language"),ms=sn("language_url"),u1=sn("indent_use_margin"),Ul=sn("indentation"),Qf=sn("content_css"),Ev=sn("content_style"),xg=sn("font_css"),eh=sn("directionality"),Tv=sn("inline_boundaries_selector"),th=sn("object_resizing"),Ip=sn("resize_img_proportional"),wg=sn("placeholder"),vb=sn("event_root"),xb=sn("service_message"),kg=sn("theme"),au=sn("theme_url"),_g=sn("model"),fm=sn("model_url"),su=sn("inline_boundaries"),r_=sn("formats"),ju=sn("preview_styles"),oh=sn("format_empty_lines"),zv=sn("format_noneditable_selector"),hm=sn("custom_ui_selector"),Cg=sn("inline"),wb=sn("hidden_input"),Av=sn("submit_patch"),m1=sn("add_form_submit_trigger"),kb=sn("add_unload_trigger"),a_=sn("custom_undo_redo_levels"),Sg=sn("disable_nodechange"),nh=sn("readonly"),g1=sn("editable_root"),Ov=sn("content_css_cors"),qm=sn("plugins"),Pp=sn("external_plugins"),p1=sn("block_unsupported_drop"),_b=sn("visual"),Cb=sn("visual_table_class"),rh=sn("visual_anchor_class"),Nv=sn("iframe_aria_text"),iu=sn("setup"),Hp=sn("init_instance_callback"),Mv=sn("urlconverter_callback"),Sb=sn("auto_focus"),f1=sn("browser_spellcheck"),Eg=sn("protect"),Dv=sn("paste_block_drop"),Tg=sn("paste_data_images"),h1=sn("paste_preprocess"),Zl=sn("paste_postprocess"),Rv=sn("newdocument_content"),Bv=sn("paste_webkit_styles"),b1=sn("paste_remove_styles_if_webkit"),s_=sn("paste_merge_formats"),Eb=sn("smart_paste"),y1=sn("paste_as_text"),ah=sn("paste_tab_spaces"),sh=sn("allow_html_data_urls"),Fv=sn("text_patterns"),Tb=sn("text_patterns_lookup"),zb=sn("noneditable_class"),v1=sn("editable_class"),zg=sn("noneditable_regexp"),Ab=sn("preserve_cdata"),ih=sn("highlight_on_focus"),bm=sn("xss_sanitization"),Lv=sn("init_content_sync"),x1=t=>go.explode(t.options.get("images_file_types")),lh=sn("table_tab_navigation"),Ag=sn("details_initial_state"),i_=sn("details_serialized_state"),Ob=sn("force_hex_color"),jp=sn("sandbox_iframes"),Iv=an,Nb=ro,Mb=t=>{const o=t.parentNode;o&&o.removeChild(t)},w1=t=>{const o=qs(t);return{count:t.length-o.length,text:o}},xl=t=>{let o;for(;(o=t.data.lastIndexOf(Za))!==-1;)t.deleteData(o,1)},ch=(t,o)=>(Dd(t),o),dh=(t,o)=>Ht.isTextPosition(o)?((n,a)=>Nb(n)&&a.container()===n?((i,c)=>{const d=w1(i.data.substr(0,c.offset())),u=w1(i.data.substr(c.offset()));return(d.text+u.text).length>0?(xl(i),Ht(i,c.offset()-d.count)):c})(n,a):ch(n,a))(t,o):((n,a)=>a.container()===n.parentNode?((i,c)=>{const d=c.container(),u=((f,y)=>{const v=Pt(f,y);return v===-1?V.none():V.some(v)})(Pn(d.childNodes),i).map(f=>f{Iv(t)&&Ws(t)&&(ed(t)?t.removeAttribute("data-mce-caret"):Mb(t)),Nb(t)&&(xl(t),t.data.length===0&&Mb(t))},k1=Oa,uh=$i,Og=al,ym=(t,o,n)=>{const a=bg(o.getBoundingClientRect(),n);let i,c;if(t.tagName==="BODY"){const u=t.ownerDocument.documentElement;i=t.scrollLeft||u.scrollLeft,c=t.scrollTop||u.scrollTop}else{const u=t.getBoundingClientRect();i=t.scrollLeft-u.left,c=t.scrollTop-u.top}a.left+=i,a.right+=i,a.top+=c,a.bottom+=c,a.width=1;let d=o.offsetWidth-o.clientWidth;return d>0&&(n&&(d*=-1),a.left+=d,a.right+=d),a},Db=(t,o,n,a)=>{const i=Ec();let c,d;const u=Ts(t),f=t.dom,y=()=>{(v=>{var k,E;const B=wa(je(v),"*[contentEditable=false],video,audio,embed,object");for(let O=0;O{f.remove(v.caret),i.clear()}),c&&(clearInterval(c),c=void 0)};return{show:(v,k)=>{let E;if(y(),Og(k))return null;if(!n(k))return d=((B,O)=>{var P;const M=((P=B.ownerDocument)!==null&&P!==void 0?P:document).createTextNode(Za),j=B.parentNode;if(O){const q=B.previousSibling;if(kd(q)){if(Ws(q))return q;if(z(q))return q.splitText(q.data.length-1)}j==null||j.insertBefore(M,B)}else{const q=B.nextSibling;if(kd(q)){if(Ws(q))return q;if(ai(q))return q.splitText(1),q}B.nextSibling?j==null||j.insertBefore(M,B.nextSibling):j==null||j.appendChild(M)}return M})(k,v),E=k.ownerDocument.createRange(),id(d.nextSibling)?(E.setStart(d,0),E.setEnd(d,0)):(E.setStart(d,1),E.setEnd(d,1)),E;{const B=((M,j,q)=>{var K;const re=((K=j.ownerDocument)!==null&&K!==void 0?K:document).createElement(M);re.setAttribute("data-mce-caret",q?"before":"after"),re.setAttribute("data-mce-bogus","all"),re.appendChild(Xi().dom);const ee=j.parentNode;return q?ee==null||ee.insertBefore(re,j):j.nextSibling?ee==null||ee.insertBefore(re,j.nextSibling):ee==null||ee.appendChild(re),re})(u,k,v),O=ym(o,k,v);f.setStyle(B,"top",O.top),d=B;const P=f.create("div",{class:"mce-visual-caret","data-mce-bogus":"all"});f.setStyles(P,{...O}),f.add(o,P),i.set({caret:P,element:k,before:v}),v&&f.addClass(P,"mce-visual-caret-before"),c=setInterval(()=>{i.on(M=>{a()?f.toggleClass(M.caret,"mce-visual-caret-hidden"):f.addClass(M.caret,"mce-visual-caret-hidden")})},500),E=k.ownerDocument.createRange(),E.setStart(B,0),E.setEnd(B,0)}return E},hide:y,getCss:()=>".mce-visual-caret {position: absolute;background-color: black;background-color: currentcolor;}.mce-visual-caret-hidden {display: none;}*[data-mce-caret] {position: absolute;left: -1000px;right: auto;top: 0;margin: 0;padding: 0;}",reposition:()=>{i.on(v=>{const k=ym(o,v.element,v.before);f.setStyles(v.caret,{...k})})},destroy:()=>clearInterval(c)}},Rb=()=>Rn.browser.isFirefox(),id=t=>k1(t)||uh(t),lu=t=>(id(t)||Ms(t)&&Rb())&&Il(je(t)).exists(nl),mh=zi,Vp=Oa,Pv=$i,Hv=Sl("display","block table table-cell table-caption list-item"),Bb=Ws,_1=Pl,jv=an,Ng=ro,$p=Ka,vm=t=>t>0,Mg=t=>t<0,Ac=(t,o)=>{let n;for(;n=t(o);)if(!_1(n))return n;return null},cu=(t,o,n,a,i)=>{const c=new Ns(t,a),d=Vp(t)||_1(t);let u;if(Mg(o)){if(d&&(u=Ac(c.prev.bind(c),!0),n(u)))return u;for(;u=Ac(c.prev.bind(c),i);)if(n(u))return u}if(vm(o)){if(d&&(u=Ac(c.next.bind(c),!0),n(u)))return u;for(;u=Ac(c.next.bind(c),i);)if(n(u))return u}return null},Rd=(t,o)=>{for(;t&&t!==o;){if(Hv(t))return t;t=t.parentNode}return null},Lr=(t,o,n)=>Rd(t.container(),n)===Rd(o.container(),n),Bd=(t,o)=>{if(!o)return V.none();const n=o.container(),a=o.offset();return jv(n)?V.from(n.childNodes[a+t]):V.none()},Dg=(t,o)=>{var n;const a=((n=o.ownerDocument)!==null&&n!==void 0?n:document).createRange();return t?(a.setStartBefore(o),a.setEndBefore(o)):(a.setStartAfter(o),a.setEndAfter(o)),a},C1=(t,o,n)=>Rd(o,t)===Rd(n,t),Vv=(t,o,n)=>{const a=t?"previousSibling":"nextSibling";let i=n;for(;i&&i!==o;){let c=i[a];if(c&&Bb(c)&&(c=c[a]),Vp(c)||Pv(c)){if(C1(o,c,i))return c;break}if($p(c))break;i=i.parentNode}return null},Rg=Je(Dg,!0),Up=Je(Dg,!1),Zp=(t,o,n)=>{let a;const i=Je(Vv,!0,o),c=Je(Vv,!1,o),d=n.startContainer,u=n.startOffset;if(Pl(d)){const f=Ng(d)?d.parentNode:d,y=f.getAttribute("data-mce-caret");if(y==="before"&&(a=f.nextSibling,lu(a)))return Rg(a);if(y==="after"&&(a=f.previousSibling,lu(a)))return Up(a)}if(!n.collapsed)return n;if(ro(d)){if(Bb(d)){if(t===1){if(a=c(d),a)return Rg(a);if(a=i(d),a)return Up(a)}if(t===-1){if(a=i(d),a)return Up(a);if(a=c(d),a)return Rg(a)}return n}if(z(d)&&u>=d.data.length-1)return t===1&&(a=c(d),a)?Rg(a):n;if(ai(d)&&u<=1)return t===-1&&(a=i(d),a)?Up(a):n;if(u===d.data.length)return a=c(d),a?Rg(a):n;if(u===0)return a=i(d),a?Up(a):n}return n},Fb=(t,o)=>Bd(t?0:-1,o).filter(Vp),xm=(t,o,n)=>{const a=Zp(t,o,n);return t===-1?Ht.fromRangeStart(a):Ht.fromRangeEnd(a)},qp=t=>V.from(t.getNode()).map(je),Lb=(t,o)=>{let n=o;for(;n=t(n);)if(n.isVisible())return n;return n},Wp=(t,o)=>{const n=Lr(t,o);return!(n||!da(t.getNode()))||n};var Bi;(function(t){t[t.Backwards=-1]="Backwards",t[t.Forwards=1]="Forwards"})(Bi||(Bi={}));const $v=Oa,du=ro,Ib=an,Pb=da,Gp=Ka,Uv=t=>Hn(t)||(o=>!!Ni(o)&&!Oe(Pn(o.getElementsByTagName("*")),(n,a)=>n||Te(a),!1))(t),Wo=td,qi=(t,o)=>t.hasChildNodes()&&o{if(vm(t)){if(Gp(o.previousSibling)&&!du(o.previousSibling))return Ht.before(o);if(du(o))return Ht(o,0)}if(Mg(t)){if(Gp(o.nextSibling)&&!du(o.nextSibling))return Ht.after(o);if(du(o))return Ht(o,o.data.length)}return Mg(t)?Pb(o)?Ht.before(o):Ht.after(o):Ht.before(o)},Fi=(t,o,n)=>{let a,i,c,d;if(!Ib(n)||!o)return null;if(o.isEqual(Ht.after(n))&&n.lastChild){if(d=Ht.after(n.lastChild),Mg(t)&&Gp(n.lastChild)&&Ib(n.lastChild))return Pb(n.lastChild)?Ht.before(n.lastChild):d}else d=o;const u=d.container();let f=d.offset();if(du(u)){if(Mg(t)&&f>0)return Ht(u,--f);if(vm(t)&&f0&&(i=qi(u,f-1),Gp(i)))return!Uv(i)&&(c=cu(i,t,Wo,i),c)?du(c)?Ht(c,c.data.length):Ht.after(c):du(i)?Ht(i,i.data.length):Ht.before(i);if(vm(t)&&f{const E=k.nextSibling;return E&&Gp(E)?du(E)?Ht(E,0):Ht.before(E):Fi(Bi.Forwards,Ht.after(k),v)})(n,i):!Uv(i)&&(c=cu(i,t,Wo,i),c)?du(c)?Ht(c,0):Ht.before(c):du(i)?Ht(i,0):Ht.after(i);a=i||d.getNode()}if(a&&(vm(t)&&d.isAtEnd()||Mg(t)&&d.isAtStart())&&(a=cu(a,t,Bt,n,!0),Wo(a,n)))return Hb(t,a);i=a&&cu(a,t,Wo,n);const y=_a(gt(((v,k)=>{const E=[];let B=v;for(;B&&B!==k;)E.push(B),B=B.parentNode;return E})(u,n),$v));return!y||i&&y.contains(i)?i?Hb(t,i):null:(d=vm(t)?Ht.after(y):Ht.before(y),d)},nc=t=>({next:o=>Fi(Bi.Forwards,o,t),prev:o=>Fi(Bi.Backwards,o,t)}),Bg=t=>Ht.isTextPosition(t)?t.offset()===0:Ka(t.getNode()),S1=t=>{if(Ht.isTextPosition(t)){const o=t.container();return t.offset()===o.data.length}return Ka(t.getNode(!0))},gh=(t,o)=>!Ht.isTextPosition(t)&&!Ht.isTextPosition(o)&&t.getNode()===o.getNode(!0),p=(t,o,n)=>{const a=nc(o);return V.from(t?a.next(n):a.prev(n))},b=(t,o,n)=>p(t,o,n).bind(a=>Lr(n,a,o)&&((i,c,d)=>{return i?!gh(c,d)&&(u=c,!(!Ht.isTextPosition(u)&&da(u.getNode())))&&S1(c)&&Bg(d):!gh(d,c)&&Bg(c)&&S1(d);var u})(t,n,a)?p(t,o,a):V.some(a)),_=(t,o,n,a)=>b(t,o,n).bind(i=>a(i)?_(t,o,i,a):V.some(i)),T=(t,o)=>{const n=t?o.firstChild:o.lastChild;return ro(n)?V.some(Ht(n,t?0:n.data.length)):n?Ka(n)?V.some(t?Ht.before(n):da(a=n)?Ht.before(a):Ht.after(a)):((i,c,d)=>{const u=i?Ht.before(d):Ht.after(d);return p(i,c,u)})(t,o,n):V.none();var a},L=Je(p,!0),I=Je(p,!1),Z=Je(T,!0),Y=Je(T,!1),ae="_mce_caret",be=t=>an(t)&&t.id===ae,Le=(t,o)=>{let n=o;for(;n&&n!==t;){if(be(n))return n;n=n.parentNode}return null},_e=t=>ln(t,"name"),Re=t=>go.isArray(t.start),Xe=t=>!(!_e(t)&&Dt(t.forward))||t.forward,Et=(t,o)=>(an(o)&&t.isBlock(o)&&!o.innerHTML&&(o.innerHTML='
'),o),vt=(t,o)=>Y(t).fold(uo,n=>(o.setStart(n.container(),n.offset()),o.setEnd(n.container(),n.offset()),!0)),qt=(t,o,n)=>!(!(a=>!a.hasChildNodes())(o)||!Le(t,o)||(((a,i)=>{var c;const d=((c=a.ownerDocument)!==null&&c!==void 0?c:document).createTextNode(Za);a.appendChild(d),i.setStart(d,0),i.setEnd(d,0)})(o,n),0)),eo=(t,o,n,a)=>{const i=n[o?"start":"end"],c=t.getRoot();if(i){let d=c,u=i[0];for(let f=i.length-1;d&&f>=1;f--){const y=d.childNodes;if(qt(c,d,a))return!0;if(i[f]>y.length-1)return!!qt(c,d,a)||vt(d,a);d=y[i[f]]}ro(d)&&(u=Math.min(i[0],d.data.length)),an(d)&&(u=Math.min(i[0],d.childNodes.length)),o?a.setStart(d,u):a.setEnd(d,u)}return!0},bo=t=>ro(t)&&t.data.length>0,ao=(t,o,n)=>{const a=t.get(n.id+"_"+o),i=a==null?void 0:a.parentNode,c=n.keep;if(a&&i){let d,u;if(o==="start"?c?a.hasChildNodes()?(d=a.firstChild,u=1):bo(a.nextSibling)?(d=a.nextSibling,u=0):bo(a.previousSibling)?(d=a.previousSibling,u=a.previousSibling.data.length):(d=i,u=t.nodeIndex(a)+1):(d=i,u=t.nodeIndex(a)):c?a.hasChildNodes()?(d=a.firstChild,u=1):bo(a.previousSibling)?(d=a.previousSibling,u=a.previousSibling.data.length):(d=i,u=t.nodeIndex(a)):(d=i,u=t.nodeIndex(a)),!c){const f=a.previousSibling,y=a.nextSibling;let v;for(go.each(go.grep(a.childNodes),k=>{ro(k)&&(k.data=k.data.replace(/\uFEFF/g,""))});v=t.get(n.id+"_"+o);)t.remove(v,!0);if(ro(y)&&ro(f)&&!Rn.browser.isOpera()){const k=f.data.length;f.appendData(y.data),t.remove(y),d=f,u=k}}return V.some(Ht(d,u))}return V.none()},Eo=(t,o,n)=>((a,i,c=!1)=>i===2?vl(qs,c,a):i===3?(d=>{const u=d.getRng();return{start:r1(d.dom.getRoot(),Ht.fromRangeStart(u)),end:r1(d.dom.getRoot(),Ht.fromRangeEnd(u)),forward:d.isForward()}})(a):i?(d=>({rng:d.getRng(),forward:d.isForward()}))(a):Nl(a,!1))(t,o,n),Ro=(t,o)=>{((n,a)=>{const i=n.dom;if(a){if(Re(a))return((c,d)=>{const u=c.createRng();return eo(c,!0,d,u)&&eo(c,!1,d,u)?V.some({range:u,forward:Xe(d)}):V.none()})(i,a);if((c=>Ue(c.start))(a))return((c,d)=>{const u=V.from(a1(c.getRoot(),d.start)),f=V.from(a1(c.getRoot(),d.end));return Ir(u,f,(y,v)=>{const k=c.createRng();return k.setStart(y.container(),y.offset()),k.setEnd(v.container(),v.offset()),{range:k,forward:Xe(d)}})})(i,a);if((c=>ln(c,"id"))(a))return((c,d)=>{const u=ao(c,"start",d),f=ao(c,"end",d);return Ir(u,f.or(u),(y,v)=>{const k=c.createRng();return k.setStart(Et(c,y.container()),y.offset()),k.setEnd(Et(c,v.container()),v.offset()),{range:k,forward:Xe(d)}})})(i,a);if(_e(a))return((c,d)=>V.from(c.select(d.name)[d.index]).map(u=>{const f=c.createRng();return f.selectNode(u),{range:f,forward:!0}}))(i,a);if((c=>ln(c,"rng"))(a))return V.some({range:a.rng,forward:Xe(a)})}return V.none()})(t,o).each(({range:n,forward:a})=>{t.setRng(n,a)})},No=t=>an(t)&&t.tagName==="SPAN"&&t.getAttribute("data-mce-type")==="bookmark",Ln=(qn=ns,t=>qn===t);var qn;const Qr=t=>t!==""&&` \f +\r \v`.indexOf(t)!==-1,or=t=>!Qr(t)&&!Ln(t)&&!gl(t),Mr=t=>{const o=[];if(t)for(let n=0;n{const n=wa(o,"td[data-mce-selected],th[data-mce-selected]");return n.length>0?n:(a=>gt((i=>at(i,c=>{const d=cb(c);return d?[je(d)]:[]}))(a),Sn))(t)},ca=t=>Er(Mr(t.selection.getSel()),je(t.getBody())),zs=(t,o)=>Ua(t,"table",o),il=t=>ur(t).fold(Ct([t]),o=>[t].concat(il(o))),ii=t=>Ra(t).fold(Ct([t]),o=>Pe(o)==="br"?Ki(o).map(n=>[t].concat(ii(n))).getOr([]):[t].concat(ii(o))),ql=(t,o)=>Ir((n=>{const a=n.startContainer,i=n.startOffset;return ro(a)?i===0?V.some(je(a)):V.none():V.from(a.childNodes[i]).map(je)})(o),(n=>{const a=n.endContainer,i=n.endOffset;return ro(a)?i===a.data.length?V.some(je(a)):V.none():V.from(a.childNodes[i-1]).map(je)})(o),(n,a)=>{const i=Fe(il(t),Je(sa,n)),c=Fe(ii(t),Je(sa,a));return i.isSome()&&c.isSome()}).getOr(!1),ua=(t,o,n,a)=>{const i=n,c=new Ns(n,i),d=Rr(t.schema.getMoveCaretBeforeOnEnterElements(),(f,y)=>!lo(["td","th","table"],y.toLowerCase()));let u=n;do{if(ro(u)&&go.trim(u.data).length!==0)return void(a?o.setStart(u,0):o.setEnd(u,u.data.length));if(d[u.nodeName])return void(a?o.setStartBefore(u):u.nodeName==="BR"?o.setEndBefore(u):o.setEndAfter(u))}while(u=a?c.next():c.prev());i.nodeName==="BODY"&&(a?o.setStart(i,0):o.setEnd(i,i.childNodes.length))},li=t=>{const o=t.selection.getSel();return Ze(o)&&o.rangeCount>0},Vu=(t,o)=>{const n=ca(t);n.length>0?Se(n,a=>{const i=a.dom,c=t.dom.createRng();c.setStartBefore(i),c.setEndAfter(i),o(c,!0)}):o(t.selection.getRng(),!1)},Kp=(t,o,n)=>{const a=Nl(t,o);n(a),t.moveToBookmark(a)},wm=t=>rt(t==null?void 0:t.nodeType),Fg=t=>an(t)&&!No(t)&&!be(t)&&!El(t),Yp=(t,o,n)=>{const{selection:a,dom:i}=t,c=a.getNode(),d=Oa(c);Kp(a,!0,()=>{o()}),d&&Oa(c)&&i.isChildOf(c,t.getBody())?t.selection.select(c):n(a.getStart())&&Xp(i,a)},Xp=(t,o)=>{var n,a;const i=o.getRng(),{startContainer:c,startOffset:d}=i;if(!((u,f)=>{if(Fg(f)&&!/^(TD|TH)$/.test(f.nodeName)){const y=u.getAttrib(f,"data-mce-selected"),v=parseInt(y,10);return!isNaN(v)&&v>0}return!1})(t,o.getNode())&&an(c)){const u=c.childNodes,f=t.getRoot();let y;if(d{if(t){const a=o?"nextSibling":"previousSibling";for(t=n?t:t[a];t;t=t[a])if(an(t)||!qv(t))return t}},Zv=(t,o)=>!!t.getTextBlockElements()[o.nodeName.toLowerCase()]||Ed(t,o),Jp=(t,o,n)=>t.schema.isValidChild(o,n),qv=(t,o=!1)=>{if(Ze(t)&&ro(t)){const n=o?t.data.replace(/ /g," "):t.data;return ss(n)}return!1},N3=(t,o)=>{const n=t.dom;return Fg(o)&&n.getContentEditable(o)==="false"&&((a,i)=>{const c="[data-mce-cef-wrappable]",d=zv(a),u=sr(d)?c:`${c},${d}`;return Ci(je(i),u)})(t,o)&&n.select('[contenteditable="true"]',o).length===0},Qp=(t,o)=>de(t)?t(o):(Ze(o)&&(t=t.replace(/%(\w+)/g,(n,a)=>o[a]||n)),t),Pc=(t,o)=>(o=o||"",t=""+((t=t||"").nodeName||t),o=""+(o.nodeName||o),t.toLowerCase()===o.toLowerCase()),Wl=(t,o)=>{if(me(t))return null;{let n=String(t);return o!=="color"&&o!=="backgroundColor"||(n=qo(n)),o==="fontWeight"&&t===700&&(n="bold"),o==="fontFamily"&&(n=n.replace(/[\'\"]/g,"").replace(/,\s+/g,",")),n}},Lg=(t,o,n)=>{const a=t.getStyle(o,n);return Wl(a,n)},M3=(t,o)=>{let n;return t.getParent(o,a=>!!an(a)&&(n=t.getStyle(a,"text-decoration"),!!n&&n!=="none")),n},Wv=(t,o,n)=>t.getParents(o,n,t.getRoot()),Gr=(t,o,n)=>{const a=t.formatter.get(o);return Ze(a)&&zo(a,n)},Wm=t=>xr(t,"block"),Fd=t=>xr(t,"selector"),el=t=>xr(t,"inline"),l_=t=>Fd(t)&&t.expand!==!1&&!el(t),D3=t=>(o=>{const n=[];let a=o;for(;a;){if(ro(a)&&a.data!==Za||a.childNodes.length>1)return[];an(a)&&n.push(a),a=a.firstChild}return n})(t).length>0,c_=t=>be(t.dom)&&D3(t.dom),jb=No,Gv=Wv,Kv=qv,R3=Zv,B3=(t,o)=>{let n=o;for(;n;){if(an(n)&&t.getContentEditable(n))return t.getContentEditable(n)==="false"?n:o;n=n.parentNode}return o},F3=(t,o,n,a)=>{const i=o.data;if(t){for(let c=n;c>0;c--)if(a(i.charAt(c-1)))return c}else for(let c=n;cF3(t,o,n,a=>Ln(a)||Qr(a)),Qn=(t,o,n)=>F3(t,o,n,or),d_=(t,o,n,a,i,c)=>{let d;const u=t.getParent(n,t.isBlock)||o,f=(y,v,k)=>{const E=um(t),B=i?E.backwards:E.forwards;return V.from(B(y,v,(O,P)=>jb(O.parentNode)?-1:(d=O,k(i,O,P)),u))};return f(n,a,CA).bind(y=>c?f(y.container,y.offset+(i?-1:0),Qn):V.some(y)).orThunk(()=>d?V.some({container:d,offset:i?0:d.length}):V.none())},Vb=(t,o,n,a,i)=>{const c=a[i];ro(a)&&sr(a.data)&&c&&(a=c);const d=Gv(t,a);for(let u=0;u{var i;let c=n;const d=t.getRoot(),u=o[0];if(Wm(u)&&(c=u.wrapper?null:t.getParent(n,u.block,d)),!c){const f=(i=t.getParent(n,"LI,TD,TH,SUMMARY"))!==null&&i!==void 0?i:d;c=t.getParent(ro(n)?n.parentNode:n,y=>y!==d&&R3(t.schema,y),f)}if(c&&Wm(u)&&u.wrapper&&(c=Gv(t,c,"ul,ol").reverse()[0]||c),!c)for(c=n;c&&c[a]&&!t.isBlock(c[a])&&(c=c[a],!Pc(c,"br")););return c||n},u_=(t,o,n,a)=>{const i=n.parentNode;return!Ze(n[a])&&(!(i!==o&&!me(i)&&!t.isBlock(i))||u_(t,o,i,a))},E1=(t,o,n,a,i)=>{let c=n;const d=i?"previousSibling":"nextSibling",u=t.getRoot();if(ro(n)&&!Kv(n)&&(i?a>0:ajb(t.parentNode)||jb(t),ef=(t,o,n,a=!1)=>{let{startContainer:i,startOffset:c,endContainer:d,endOffset:u}=o;const f=n[0];return an(i)&&i.hasChildNodes()&&(i=Pu(i,c),ro(i)&&(c=0)),an(d)&&d.hasChildNodes()&&(d=Pu(d,o.collapsed?u:u-1),ro(d)&&(u=d.data.length)),i=B3(t,i),d=B3(t,d),m_(i)&&(i=jb(i)?i:i.parentNode,i=o.collapsed?i.previousSibling||i:i.nextSibling||i,ro(i)&&(c=o.collapsed?i.length:0)),m_(d)&&(d=jb(d)?d:d.parentNode,d=o.collapsed?d.nextSibling||d:d.previousSibling||d,ro(d)&&(u=o.collapsed?0:d.length)),o.collapsed&&(d_(t,t.getRoot(),i,c,!0,a).each(({container:y,offset:v})=>{i=y,c=v}),d_(t,t.getRoot(),d,u,!1,a).each(({container:y,offset:v})=>{d=y,u=v})),(el(f)||f.block_expand)&&(el(f)&&ro(i)&&c!==0||(i=E1(t,n,i,c,!0)),el(f)&&ro(d)&&u!==d.data.length||(d=E1(t,n,d,u,!1))),l_(f)&&(i=Vb(t,n,o,i,"previousSibling"),d=Vb(t,n,o,d,"nextSibling")),(Wm(f)||Fd(f))&&(i=Yv(t,n,i,"previousSibling"),d=Yv(t,n,d,"nextSibling"),Wm(f)&&(t.isBlock(i)||(i=E1(t,n,i,c,!0)),t.isBlock(d)||(d=E1(t,n,d,u,!1)))),an(i)&&i.parentNode&&(c=t.nodeIndex(i),i=i.parentNode),an(d)&&d.parentNode&&(u=t.nodeIndex(d)+1,d=d.parentNode),{startContainer:i,startOffset:c,endContainer:d,endOffset:u}},T1=(t,o,n)=>{var a;const i=o.startOffset,c=Pu(o.startContainer,i),d=o.endOffset,u=Pu(o.endContainer,d-1),f=M=>{const j=M[0];ro(j)&&j===c&&i>=j.data.length&&M.splice(0,1);const q=M[M.length-1];return d===0&&M.length>0&&q===u&&ro(q)&&M.splice(M.length-1,1),M},y=(M,j,q)=>{const K=[];for(;M&&M!==q;M=M[j])K.push(M);return K},v=(M,j)=>t.getParent(M,q=>q.parentNode===j,j),k=(M,j,q)=>{const K=q?"nextSibling":"previousSibling";for(let re=M,ee=re.parentNode;re&&re!==j;re=ee){ee=re.parentNode;const ke=y(re===M?re:re[K],K);ke.length&&(q||ke.reverse(),n(f(ke)))}};if(c===u)return n(f([c]));const E=(a=t.findCommonAncestor(c,u))!==null&&a!==void 0?a:t.getRoot();if(t.isChildOf(c,u))return k(c,E,!0);if(t.isChildOf(u,c))return k(u,E);const B=v(c,E)||c,O=v(u,E)||u;k(c,B,!0);const P=y(B===c?B:B.nextSibling,"nextSibling",O===u?O.nextSibling:O);P.length&&n(f(P)),k(u,O)},SA=['pre[class*=language-][contenteditable="false"]',"figure.image","div[data-ephox-embed-iri]","div.tiny-pageembed","div.mce-toc","div[data-mce-toc]"],ba=(t,o,n,a,i,c)=>{const{uid:d=o,...u}=n;ks(t,tu()),Q(t,`${Tp()}`,d),Q(t,`${dm()}`,a);const{attributes:f={},classes:y=[]}=i(d,u);if(Ee(t,f),((v,k)=>{Se(k,E=>{ks(v,E)})})(t,y),c){y.length>0&&Q(t,`${zp()}`,y.join(","));const v=ut(f);v.length>0&&Q(t,`${Ya()}`,v.join(","))}},L3=(t,o,n,a,i)=>{const c=_s("span",t);return ba(c,o,n,a,i,!1),c},Ig=(t,o,n,a,i,c)=>{const d=[],u=L3(t.getDoc(),n,c,a,i),f=Ec(),y=()=>{f.clear()},v=E=>{Se(E,k)},k=E=>{switch(((B,O,P,M)=>Gi(O).fold(()=>"skipping",j=>M==="br"||(q=>_r(q)&&Ai(q)===Za)(O)?"valid":(q=>kn(q)&&Vi(q,tu()))(O)?"existing":be(O.dom)?"caret":zo(SA,q=>Ci(O,q))?"valid-block":Jp(B,P,M)&&Jp(B,Pe(j),P)?"valid":"invalid-child"))(t,E,"span",Pe(E))){case"invalid-child":{y();const B=Lt(E);v(B),y();break}case"valid-block":y(),ba(E,n,c,a,i,!0);break;case"valid":{const B=f.get().getOrThunk(()=>{const O=Um(u);return d.push(O),f.set(O),O});Dc(E,B);break}}};return T1(t.dom,o,E=>{y(),(B=>{const O=to(B,je);v(O)})(E)}),d},km=t=>{const o=(()=>{const c={};return{register:(d,u)=>{c[d]={name:d,settings:u}},lookup:d=>Fn(c,d).map(u=>u.settings),getNames:()=>ut(c)}})();((c,d)=>{const u=dm(),f=v=>V.from(v.attr(u)).bind(d.lookup),y=v=>{var k,E;v.attr(Tp(),null),v.attr(dm(),null),v.attr(fg(),null);const B=V.from(v.attr(Ya())).map(j=>j.split(",")).getOr([]),O=V.from(v.attr(zp())).map(j=>j.split(",")).getOr([]);Se(B,j=>v.attr(j,null));const P=(E=(k=v.attr("class"))===null||k===void 0?void 0:k.split(" "))!==null&&E!==void 0?E:[],M=Gt(P,[tu()].concat(O));v.attr("class",M.length>0?M.join(" "):null),v.attr(zp(),null),v.attr(Ya(),null)};c.serializer.addTempAttr(fg()),c.serializer.addAttributeFilter(u,v=>{for(const k of v)f(k).each(E=>{E.persistent===!1&&(k.name==="span"?k.unwrap():y(k))})})})(t,o);const n=((c,d)=>{const u=bi({}),f=()=>({listeners:[],previous:Ec()}),y=(B,O)=>{v(B,P=>(O(P),P))},v=(B,O)=>{const P=u.get(),M=O(Fn(P,B).getOrThunk(f));P[B]=M,u.set(P)},k=(B,O)=>{Se(yl(c,B),P=>{O?Q(P,fg(),"true"):U(P,fg())})},E=Iu(()=>{const B=Xo(d.getNames());Se(B,O=>{v(O,P=>{const M=P.previous.get();return Jy(c,V.some(O)).fold(()=>{M.each(j=>{(q=>{y(q,K=>{Se(K.listeners,re=>re(!1,q))})})(O),P.previous.clear(),k(j,!1)})},({uid:j,name:q,elements:K})=>{aa(M,j)||(M.each(re=>k(re,!1)),((re,ee,ke)=>{y(re,et=>{Se(et.listeners,st=>st(!0,re,{uid:ee,nodes:to(ke,mt=>mt.dom)}))})})(q,j,K),P.previous.set(j),k(j,!0))}),{previous:P.previous,listeners:P.listeners}})})},30);return c.on("remove",()=>{E.cancel()}),c.on("NodeChange",()=>{E.throttle()}),{addListener:(B,O)=>{v(B,P=>({previous:P.previous,listeners:P.listeners.concat([O])}))}}})(t,o),a=ma("span"),i=c=>{Se(c,d=>{a(d)?_l(d):(u=>{Js(u,tu()),U(u,`${Tp()}`),U(u,`${dm()}`),U(u,`${fg()}`);const f=wo(u,`${Ya()}`).map(k=>k.split(",")).getOr([]),y=wo(u,`${zp()}`).map(k=>k.split(",")).getOr([]);var v;Se(f,k=>U(u,k)),v=u,Se(y,k=>{Js(v,k)}),U(u,`${zp()}`),U(u,`${Ya()}`)})(d)})};return{register:(c,d)=>{o.register(c,d)},annotate:(c,d)=>{o.lookup(c).each(u=>{((f,y,v,k)=>{f.undoManager.transact(()=>{const E=f.selection,B=E.getRng(),O=ca(f).length>0,P=hg("mce-annotation");if(B.collapsed&&!O&&((M,j)=>{const q=ef(M.dom,j,[{inline:"span"}]);j.setStart(q.startContainer,q.startOffset),j.setEnd(q.endContainer,q.endOffset),M.selection.setRng(j)})(f,B),E.getRng().collapsed&&!O){const M=L3(f.getDoc(),P,k,y,v.decorate);wc(M,ns),E.getRng().insertNode(M.dom),E.select(M.dom)}else Kp(E,!1,()=>{Vu(f,M=>{Ig(f,M,P,y,v.decorate,k)})})})})(t,c,u,d)})},annotationChanged:(c,d)=>{n.addListener(c,d)},remove:c=>{Jy(t,V.some(c)).each(({elements:d})=>{const u=t.selection.getBookmark();i(d),t.selection.moveToBookmark(u)})},removeAll:c=>{const d=t.selection.getBookmark();Ft(Tc(t,c),(u,f)=>{i(u)}),t.selection.moveToBookmark(d)},getAll:c=>{const d=Tc(t,c);return vo(d,u=>to(u,f=>f.dom))}}},tf=t=>({getBookmark:Je(Eo,t),moveToBookmark:Je(Ro,t)});tf.isBookmarkNode=No;const Hc=(t,o,n)=>!n.collapsed&&zo(n.getClientRects(),a=>((i,c,d)=>c>=i.left&&c<=i.right&&d>=i.top&&d<=i.bottom)(a,t,o)),z1=(t,o,n)=>{t.dispatch(o,n)},$b=(t,o,n,a)=>{t.dispatch("FormatApply",{format:o,node:n,vars:a})},A1=(t,o,n,a)=>{t.dispatch("FormatRemove",{format:o,node:n,vars:a})},ph=(t,o)=>t.dispatch("SetContent",o),I3=(t,o)=>t.dispatch("GetContent",o),P3=(t,o)=>t.dispatch("PastePlainTextToggle",{state:o}),mn={BACKSPACE:8,DELETE:46,DOWN:40,ENTER:13,ESC:27,LEFT:37,RIGHT:39,SPACEBAR:32,TAB:9,UP:38,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,modifierPressed:t=>t.shiftKey||t.ctrlKey||t.altKey||mn.metaKeyPressed(t),metaKeyPressed:t=>Rn.os.isMacOS()||Rn.os.isiOS()?t.metaKey:t.ctrlKey&&!t.altKey},fh="data-mce-selected",ea=Math.abs,Ld=Math.round,Pg={nw:[0,0,-1,-1],ne:[1,0,1,-1],se:[1,1,1,1],sw:[0,1,-1,1]},H3=(t,o)=>{const n=o.dom,a=o.getDoc(),i=document,c=o.getBody();let d,u,f,y,v,k,E,B,O,P,M,j,q,K,re;const ee=cn=>Ze(cn)&&(ml(cn)||n.is(cn,"figure.image")),ke=cn=>$i(cn)||n.hasClass(cn,"mce-preview-object"),et=cn=>{const vn=cn.target;((cr,Qe)=>{if((nt=>nt.type==="longpress"||nt.type.indexOf("touch")===0)(cr)){const nt=cr.touches[0];return ee(cr.target)&&!Hc(nt.clientX,nt.clientY,Qe)}return ee(cr.target)&&!Hc(cr.clientX,cr.clientY,Qe)})(cn,o.selection.getRng())&&!cn.isDefaultPrevented()&&o.selection.select(vn)},st=cn=>n.hasClass(cn,"mce-preview-object")&&Ze(cn.firstElementChild)?[cn,cn.firstElementChild]:n.is(cn,"figure.image")?[cn.querySelector("img")]:[cn],mt=cn=>{const vn=th(o);return!!vn&&cn.getAttribute("data-mce-resize")!=="false"&&cn!==o.getBody()&&(n.hasClass(cn,"mce-preview-object")&&Ze(cn.firstElementChild)?Ci(je(cn.firstElementChild),vn):Ci(je(cn),vn))},kt=(cn,vn,cr)=>{if(Ze(cr)){const Qe=st(cn);Se(Qe,nt=>{nt.style[vn]||!o.schema.isValid(nt.nodeName.toLowerCase(),vn)?n.setStyle(nt,vn,cr):n.setAttrib(nt,vn,""+cr)})}},Ve=(cn,vn,cr)=>{kt(cn,"width",vn),kt(cn,"height",cr)},ot=cn=>{let vn,cr,Qe,nt,so;vn=cn.screenX-k,cr=cn.screenY-E,j=vn*y[2]+B,q=cr*y[3]+O,j=j<5?5:j,q=q<5?5:q,Qe=(ee(d)||ke(d))&&Ip(o)!==!1?!mn.modifierPressed(cn):mn.modifierPressed(cn),Qe&&(ea(vn)>ea(cr)?(q=Ld(j*P),j=Ld(q/P)):(j=Ld(q/P),q=Ld(j*P))),Ve(u,j,q),nt=y.startPos.x+vn,so=y.startPos.y+cr,nt=nt>0?nt:0,so=so>0?so:0,n.setStyles(f,{left:nt,top:so,display:"block"}),f.innerHTML=j+" × "+q,y[2]<0&&u.clientWidth<=j&&n.setStyle(u,"left",void 0+(B-j)),y[3]<0&&u.clientHeight<=q&&n.setStyle(u,"top",void 0+(O-q)),vn=c.scrollWidth-K,cr=c.scrollHeight-re,vn+cr!==0&&n.setStyles(f,{left:nt-vn,top:so-cr}),M||(((mo,yo,xn,Wn,hr)=>{mo.dispatch("ObjectResizeStart",{target:yo,width:xn,height:Wn,origin:hr})})(o,d,B,O,"corner-"+y.name),M=!0)},pt=()=>{const cn=M;M=!1,cn&&(kt(d,"width",j),kt(d,"height",q)),n.unbind(a,"mousemove",ot),n.unbind(a,"mouseup",pt),i!==a&&(n.unbind(i,"mousemove",ot),n.unbind(i,"mouseup",pt)),n.remove(u),n.remove(f),n.remove(v),Jt(d),cn&&(((vn,cr,Qe,nt,so)=>{vn.dispatch("ObjectResized",{target:cr,width:Qe,height:nt,origin:so})})(o,d,j,q,"corner-"+y.name),n.setAttrib(d,"style",n.getAttrib(d,"style"))),o.nodeChanged()},Jt=cn=>{Jn();const vn=n.getPos(cn,c),cr=vn.x,Qe=vn.y,nt=cn.getBoundingClientRect(),so=nt.width||nt.right-nt.left,mo=nt.height||nt.bottom-nt.top;d!==cn&&(Fo(),d=cn,j=q=0);const yo=o.dispatch("ObjectSelected",{target:cn});mt(cn)&&!yo.isDefaultPrevented()?Ft(Pg,(xn,Wn)=>{let hr=n.get("mceResizeHandle"+Wn);hr&&n.remove(hr),hr=n.add(c,"div",{id:"mceResizeHandle"+Wn,"data-mce-bogus":"all",class:"mce-resizehandle",unselectable:!0,style:"cursor:"+Wn+"-resize; margin:0; padding:0"}),n.bind(hr,"mousedown",tr=>{tr.stopImmediatePropagation(),tr.preventDefault(),(Qa=>{const En=st(d)[0];var Ur;k=Qa.screenX,E=Qa.screenY,B=En.clientWidth,O=En.clientHeight,P=O/B,y=xn,y.name=Wn,y.startPos={x:so*xn[0]+cr,y:mo*xn[1]+Qe},K=c.scrollWidth,re=c.scrollHeight,v=n.add(c,"div",{class:"mce-resize-backdrop","data-mce-bogus":"all"}),n.setStyles(v,{position:"fixed",left:"0",top:"0",width:"100%",height:"100%"}),u=ke(Ur=d)?n.create("img",{src:Rn.transparentSrc}):Ur.cloneNode(!0),n.addClass(u,"mce-clonedresizable"),n.setAttrib(u,"data-mce-bogus","all"),u.contentEditable="false",n.setStyles(u,{left:cr,top:Qe,margin:0}),Ve(u,so,mo),u.removeAttribute(fh),c.appendChild(u),n.bind(a,"mousemove",ot),n.bind(a,"mouseup",pt),i!==a&&(n.bind(i,"mousemove",ot),n.bind(i,"mouseup",pt)),f=n.add(c,"div",{class:"mce-resize-helper","data-mce-bogus":"all"},B+" × "+O)})(tr)}),xn.elm=hr,n.setStyles(hr,{left:so*xn[0]+cr-hr.offsetWidth/2,top:mo*xn[1]+Qe-hr.offsetHeight/2})}):Fo(!1)},en=Ep(Jt,0),Fo=(cn=!0)=>{en.cancel(),Jn(),d&&cn&&d.removeAttribute(fh),Ft(Pg,(vn,cr)=>{const Qe=n.get("mceResizeHandle"+cr);Qe&&(n.unbind(Qe),n.remove(Qe))})},Nn=(cn,vn)=>n.isChildOf(cn,vn),An=cn=>{if(M||o.removed||o.composing)return;const vn=cn.type==="mousedown"?cn.target:t.getNode(),cr=Yc(je(vn),"table,img,figure.image,hr,video,span.mce-preview-object,details").map(nt=>nt.dom).filter(nt=>n.isEditable(nt.parentElement)||nt.nodeName==="IMG"&&n.isEditable(nt)).getOrUndefined(),Qe=Ze(cr)?n.getAttrib(cr,fh,"1"):"1";if(Se(n.select(`img[${fh}],hr[${fh}]`),nt=>{nt.removeAttribute(fh)}),Ze(cr)&&Nn(cr,c)&&o.hasFocus()){jn();const nt=t.getStart(!0);if(Nn(nt,cr)&&Nn(t.getEnd(!0),cr))return n.setAttrib(cr,fh,Qe),void en.throttle(cr)}Fo()},Jn=()=>{Ft(Pg,cn=>{cn.elm&&(n.unbind(cn.elm),delete cn.elm)})},jn=()=>{try{o.getDoc().execCommand("enableObjectResizing",!1,"false")}catch{}};return o.on("init",()=>{jn(),o.on("NodeChange ResizeEditor ResizeWindow ResizeContent drop",An),o.on("keyup compositionend",cn=>{d&&d.nodeName==="TABLE"&&An(cn)}),o.on("hide blur",Fo),o.on("contextmenu longpress",et,!0)}),o.on("remove",Jn),{isResizable:mt,showResizeRect:Jt,hideResizeRect:Fo,updateResizeRect:An,destroy:()=>{en.cancel(),d=u=v=null}}},Ub=(t,o,n)=>{const a=t.document.createRange();var i;return i=a,o.fold(c=>{i.setStartBefore(c.dom)},(c,d)=>{i.setStart(c.dom,d)},c=>{i.setStartAfter(c.dom)}),((c,d)=>{d.fold(u=>{c.setEndBefore(u.dom)},(u,f)=>{c.setEnd(u.dom,f)},u=>{c.setEndAfter(u.dom)})})(a,n),a},na=(t,o,n,a,i)=>{const c=t.document.createRange();return c.setStart(o.dom,n),c.setEnd(a.dom,i),c},Zb=zc([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),Xv=(t,o,n)=>o(je(n.startContainer),n.startOffset,je(n.endContainer),n.endOffset);Zb.ltr,Zb.rtl;const j3=(t,o,n,a)=>({start:t,soffset:o,finish:n,foffset:a}),qb=document.caretPositionFromPoint?(t,o,n)=>{var a,i;return V.from((i=(a=t.dom).caretPositionFromPoint)===null||i===void 0?void 0:i.call(a,o,n)).bind(c=>{if(c.offsetNode===null)return V.none();const d=t.dom.createRange();return d.setStart(c.offsetNode,c.offset),d.collapse(),V.some(d)})}:document.caretRangeFromPoint?(t,o,n)=>{var a,i;return V.from((i=(a=t.dom).caretRangeFromPoint)===null||i===void 0?void 0:i.call(a,o,n))}:V.none,Hg=zc([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),Gm={before:Hg.before,on:Hg.on,after:Hg.after,cata:(t,o,n,a)=>t.fold(o,n,a),getStart:t=>t.fold(R,R,R)},Jv=zc([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),Wb={domRange:Jv.domRange,relative:Jv.relative,exact:Jv.exact,exactFromRange:t=>Jv.exact(t.start,t.soffset,t.finish,t.foffset),getWin:t=>{const o=(n=>n.match({domRange:a=>je(a.startContainer),relative:(a,i)=>Gm.getStart(a),exact:(a,i,c,d)=>a}))(t);return Gc(o)},range:j3},of=(t,o)=>{const n=Pe(t);return n==="input"?Gm.after(t):lo(["br","img"],n)?o===0?Gm.before(t):Gm.after(t):Gm.on(t,o)},Gb=(t,o)=>{const n=t.fold(Gm.before,of,Gm.after),a=o.fold(Gm.before,of,Gm.after);return Wb.relative(n,a)},V3=(t,o,n,a)=>{const i=of(t,o),c=of(n,a);return Wb.relative(i,c)},Qv=(t,o)=>{const n=(o||document).createDocumentFragment();return Se(t,a=>{n.appendChild(a.dom)}),je(n)},EA=t=>{const o=Wb.getWin(t).dom,n=(i,c,d,u)=>na(o,i,c,d,u),a=(i=>i.match({domRange:c=>{const d=je(c.startContainer),u=je(c.endContainer);return V3(d,c.startOffset,u,c.endOffset)},relative:Gb,exact:V3}))(t);return((i,c)=>{const d=((u,f)=>f.match({domRange:y=>({ltr:Ct(y),rtl:V.none}),relative:(y,v)=>({ltr:tt(()=>Ub(u,y,v)),rtl:tt(()=>V.some(Ub(u,v,y)))}),exact:(y,v,k,E)=>({ltr:tt(()=>na(u,y,v,k,E)),rtl:tt(()=>V.some(na(u,k,E,y,v)))})}))(i,c);return((u,f)=>{const y=f.ltr();return y.collapsed?f.rtl().filter(v=>v.collapsed===!1).map(v=>Zb.rtl(je(v.endContainer),v.endOffset,je(v.startContainer),v.startOffset)).getOrThunk(()=>Xv(0,Zb.ltr,y)):Xv(0,Zb.ltr,y)})(0,d)})(o,a).match({ltr:n,rtl:n})},g_=(t,o,n)=>((a,i,c)=>((d,u,f)=>{const y=je(d.document);return qb(y,u,f).map(v=>j3(je(v.startContainer),v.startOffset,je(v.endContainer),v.endOffset))})(a,i,c))(Gc(je(n)).dom,t,o).map(a=>{const i=n.createRange();return i.setStart(a.start.dom,a.soffset),i.setEnd(a.finish.dom,a.foffset),i}).getOrUndefined(),p_=(t,o)=>Ze(t)&&Ze(o)&&t.startContainer===o.startContainer&&t.startOffset===o.startOffset&&t.endContainer===o.endContainer&&t.endOffset===o.endOffset,f_=(t,o,n)=>((a,i,c)=>{let d=a;for(;d&&d!==i;){if(c(d))return d;d=d.parentNode}return null})(t,o,n)!==null,h_=(t,o,n)=>f_(t,o,a=>a.nodeName===n),b_=(t,o)=>Ws(t)&&!f_(t,o,be),ex=(t,o,n)=>{const a=o.parentNode;if(a){const i=new Ns(o,t.getParent(a,t.isBlock)||t.getRoot());let c;for(;c=i[n?"prev":"next"]();)if(da(c))return!0}return!1},tx=(t,o,n,a,i)=>{const c=t.getRoot(),d=t.schema.getNonEmptyElements(),u=i.parentNode;let f,y;if(!u)return V.none();const v=t.getParent(u,t.isBlock)||c;if(a&&da(i)&&o&&t.isEmpty(v))return V.some(Ht(u,t.nodeIndex(i)));const k=new Ns(i,v);for(;y=k[a?"prev":"next"]();){if(t.getContentEditableParent(y)==="false"||b_(y,c))return V.none();if(ro(y)&&y.data.length>0)return h_(y,c,"A")?V.none():V.some(Ht(y,a?y.data.length:0));if(t.isBlock(y)||d[y.nodeName.toLowerCase()])return V.none();f=y}return ni(f)?V.none():n&&f?V.some(Ht(f,0)):V.none()},y_=(t,o,n,a)=>{const i=t.getRoot();let c,d=!1,u=n?a.startContainer:a.endContainer,f=n?a.startOffset:a.endOffset;const y=an(u)&&f===u.childNodes.length,v=t.schema.getNonEmptyElements();let k=n;if(Ws(u))return V.none();if(an(u)&&f>u.childNodes.length-1&&(k=!1),xd(u)&&(u=i,f=0),u===i){if(k&&(c=u.childNodes[f>0?f-1:0],c)&&(Ws(c)||v[c.nodeName]||Ms(c)))return V.none();if(u.hasChildNodes()){if(f=Math.min(!k&&f>0?f-1:f,u.childNodes.length-1),u=u.childNodes[f],f=ro(u)&&y?u.data.length:0,!o&&u===i.lastChild&&Ms(u)||((E,B)=>{let O=B;for(;O&&O!==E;){if(Oa(O))return!0;O=O.parentNode}return!1})(i,u)||Ws(u)||Hs(u))return V.none();if(u.hasChildNodes()&&!Ms(u)){c=u;const E=new Ns(u,i);do{if(Oa(c)||Ws(c)){d=!1;break}if(ro(c)&&c.data.length>0){f=k?0:c.data.length,u=c,d=!0;break}if(v[c.nodeName.toLowerCase()]&&!la(c)){f=t.nodeIndex(c),u=c.parentNode,k||f++,d=!0;break}}while(c=k?E.next():E.prev())}}}return o&&(ro(u)&&f===0&&tx(t,y,o,!0,u).each(E=>{u=E.container(),f=E.offset(),d=!0}),an(u)&&(c=u.childNodes[f],c||(c=u.childNodes[f-1]),!c||!da(c)||((E,B)=>{var O;return((O=E.previousSibling)===null||O===void 0?void 0:O.nodeName)==="A"})(c)||ex(t,c,!1)||ex(t,c,!0)||tx(t,y,o,!0,c).each(E=>{u=E.container(),f=E.offset(),d=!0}))),k&&!o&&ro(u)&&f===u.data.length&&tx(t,y,o,!1,u).each(E=>{u=E.container(),f=E.offset(),d=!0}),d&&u?V.some(Ht(u,f)):V.none()},O1=(t,o)=>{const n=o.collapsed,a=o.cloneRange(),i=Ht.fromRangeStart(o);return y_(t,n,!0,a).each(c=>{n&&Ht.isAbove(i,c)||a.setStart(c.container(),c.offset())}),n||y_(t,n,!1,a).each(c=>{a.setEnd(c.container(),c.offset())}),n&&a.collapse(!0),p_(o,a)?V.none():V.some(a)},hh=(t,o)=>t.splitText(o),N1=t=>{let o=t.startContainer,n=t.startOffset,a=t.endContainer,i=t.endOffset;if(o===a&&ro(o)){if(n>0&&nn){i-=n;const c=hh(a,i).previousSibling;o=a=c,i=c.data.length,n=0}else i=0}else if(ro(o)&&n>0&&n0&&i({walk:(o,n)=>T1(t,o,n),split:N1,expand:(o,n={type:"word"})=>{if(n.type==="word"){const a=ef(t,o,[{inline:"span"}]),i=t.createRng();return i.setStart(a.startContainer,a.startOffset),i.setEnd(a.endContainer,a.endOffset),i}return o},normalize:o=>O1(t,o).fold(uo,n=>(o.setStart(n.startContainer,n.startOffset),o.setEnd(n.endContainer,n.endOffset),!0))});nf.compareRanges=p_,nf.getCaretRangeFromPoint=g_,nf.getSelectedNode=cb,nf.getNode=Pu;const $3=((t,o)=>{const n=i=>{const c=(d=>{const u=d.dom;return Es(d)?u.getBoundingClientRect().height:u.offsetHeight})(i);if(c<=0||c===null){const d=Yi(i,t);return parseFloat(d)||0}return c},a=(i,c)=>Oe(c,(d,u)=>{const f=Yi(i,u),y=f===void 0?0:parseInt(f,10);return isNaN(y)?d:d+y},0);return{set:(i,c)=>{if(!rt(c)&&!c.match(/^[0-9]+$/))throw new Error(t+".set accepts only positive integer values. Value was "+c);const d=i.dom;ti(d)&&(d.style[t]=c+"px")},get:n,getOuter:n,aggregate:a,max:(i,c,d)=>{const u=a(i,d);return c>u?c-u:0}}})("height"),v_=()=>je(document),x_=(t,o)=>t.view(o).fold(Ct([]),n=>{const a=t.owner(n),i=x_(t,a);return[n].concat(i)});var U3=Object.freeze({__proto__:null,view:t=>{var o;return(t.dom===document?V.none():V.from((o=t.dom.defaultView)===null||o===void 0?void 0:o.frameElement)).map(je)},owner:t=>Si(t)});const w_=t=>Pe(t)==="textarea",Z3=(t,o)=>{const n=(i=>{const c=i.dom.ownerDocument,d=c.body,u=c.defaultView,f=c.documentElement;if(d===i.dom)return pi(d.offsetLeft,d.offsetTop);const y=Cn(u==null?void 0:u.pageYOffset,f.scrollTop),v=Cn(u==null?void 0:u.pageXOffset,f.scrollLeft),k=Cn(f.clientTop,d.clientTop),E=Cn(f.clientLeft,d.clientLeft);return Ql(i).translate(v-E,y-k)})(t),a=(i=>$3.get(i))(t);return{element:t,bottom:n.top+a,height:a,pos:n,cleanup:o}},M1=(t,o,n,a)=>{TA(t,(i,c)=>q3(t,o,n,a),n)},k_=(t,o,n,a,i)=>{const c={elm:a.element.dom,alignToTop:i};((d,u)=>d.dispatch("ScrollIntoView",u).isDefaultPrevented())(t,c)||(n(t,o,ec(o).top,a,i),((d,u)=>{d.dispatch("AfterScrollIntoView",u)})(t,c))},q3=(t,o,n,a)=>{const i=je(t.getBody()),c=je(t.getDoc());i.dom.offsetWidth;const d=((u,f)=>{const y=((k,E)=>{const B=Lt(k);if(B.length===0||w_(k))return{element:k,offset:E};if(E\uFEFF');return rl(y.element,v),Z3(v,()=>Ea(v))})(je(n.startContainer),n.startOffset);k_(t,c,o,d,a),d.cleanup()},__=(t,o,n,a)=>{const i=je(t.getDoc());k_(t,i,n,(c=>Z3(je(c),$t))(o),a)},TA=(t,o,n)=>{const a=n.startContainer,i=n.startOffset,c=n.endContainer,d=n.endOffset;o(je(a),je(c));const u=t.dom.createRng();u.setStart(a,i),u.setEnd(c,d),t.selection.setRng(n)},C_=(t,o,n,a,i)=>{const c=o.pos;if(a)yp(c.left,c.top,i);else{const d=c.top-n+o.height;yp(-t.getBody().getBoundingClientRect().left,d,i)}},W3=(t,o,n,a,i,c)=>{const d=a+n,u=i.pos.top,f=i.bottom,y=f-u>=a;ud?C_(t,i,a,y?c!==!1:c===!0,o):f>d&&!y&&C_(t,i,a,c===!0,o)},G3=(t,o,n,a,i)=>{const c=Gc(o).dom.innerHeight;W3(t,o,n,c,a,i)},K3=(t,o,n,a,i)=>{const c=Gc(o).dom.innerHeight;W3(t,o,n,c,a,i);const d=(f=>{const y=v_(),v=ec(y),k=((O,P)=>{const M=P.owner(O);return x_(P,M)})(f,U3),E=Ql(f),B=pe(k,(O,P)=>{const M=Ql(P);return{left:O.left+M.left,top:O.top+M.top}},{left:0,top:0});return pi(B.left+E.left+v.left,B.top+E.top+v.top)})(a.element),u=nm(window);d.topu.bottom&&Kd(a.element,i===!0)},Y3=(t,o,n)=>M1(t,G3,o,n),X3=(t,o,n)=>__(t,o,G3,n),ox=(t,o,n)=>M1(t,K3,o,n),zA=(t,o,n)=>__(t,o,K3,n),bh=(t,o,n)=>{(t.inline?Y3:ox)(t,o,n)},J3=(t,o=!1)=>t.dom.focus({preventScroll:o}),S_=t=>{const o=ta(t).dom;return t.dom===o.activeElement},nx=(t=v_())=>V.from(t.dom.activeElement).map(je),E_=(t,o)=>{const n=_r(o)?Ai(o).length:Lt(o).length+1;return t>n?n:t<0?0:t},AA=t=>Wb.range(t.start,E_(t.soffset,t.start),t.finish,E_(t.foffset,t.finish)),Q3=(t,o)=>!Rm(o.dom)&&(lc(t,o)||sa(t,o)),D1=t=>o=>Q3(t,o.start)&&Q3(t,o.finish),e4=t=>Wb.range(je(t.startContainer),t.startOffset,je(t.endContainer),t.endOffset),t4=t=>{const o=document.createRange();try{return o.setStart(t.start.dom,t.soffset),o.setEnd(t.finish.dom,t.foffset),V.some(o)}catch{return V.none()}},rx=t=>{const o=(a=>a.inline||Rn.browser.isFirefox())(t)?(n=je(t.getBody()),(a=>{const i=a.getSelection();return(i&&i.rangeCount!==0?V.from(i.getRangeAt(0)):V.none()).map(e4)})(Gc(n).dom).filter(D1(n))):V.none();var n;t.bookmark=o.isSome()?o:t.bookmark},ax=t=>(t.bookmark?t.bookmark:V.none()).bind(o=>{return n=je(t.getBody()),a=o,V.from(a).filter(D1(n)).map(AA);var n,a}).bind(t4),o4={isEditorUIElement:t=>{const o=t.className.toString();return o.indexOf("tox-")!==-1||o.indexOf("mce-")!==-1}},uu={setEditorTimeout:(t,o,n)=>((a,i)=>(rt(i)||(i=0),setTimeout(a,i)))(()=>{t.removed||o()},n),setEditorInterval:(t,o,n)=>{const a=((i,c)=>(rt(c)||(c=0),setInterval(i,c)))(()=>{t.removed?clearInterval(a):o()},n);return a}};let jg;const sx=wr.DOM,ix=t=>{const o=t.classList;return o!==void 0&&(o.contains("tox-edit-area")||o.contains("tox-edit-area__iframe")||o.contains("mce-content-body"))},lx=(t,o)=>{const n=hm(t);return sx.getParent(o,i=>(c=>an(c)&&o4.isEditorUIElement(c))(i)||!!n&&t.dom.is(i,n))!==null},T_=t=>{try{const o=ta(je(t.getElement()));return nx(o).fold(()=>document.body,n=>n.dom)}catch{return document.body}},OA=(t,o)=>{const n=o.editor;(i=>{const c=Ep(()=>{rx(i)},0);i.on("init",()=>{i.inline&&((d,u)=>{const f=()=>{u.throttle()};wr.DOM.bind(document,"mouseup",f),d.on("remove",()=>{wr.DOM.unbind(document,"mouseup",f)})})(i,c),((d,u)=>{((f,y)=>{f.on("mouseup touchend",v=>{y.throttle()})})(d,u),d.on("keyup NodeChange AfterSetSelectionRange",f=>{(y=>y.type==="nodechange"&&y.selectionChange)(f)||rx(d)})})(i,c)}),i.on("remove",()=>{c.cancel()})})(n);const a=(i,c)=>{ih(i)&&i.inline!==!0&&c(je(i.getContainer()),"tox-edit-focus")};n.on("focusin",()=>{const i=t.focusedEditor;ix(T_(n))&&a(n,ks),i!==n&&(i&&i.dispatch("blur",{focusedEditor:n}),t.setActive(n),t.focusedEditor=n,n.dispatch("focus",{blurredEditor:i}),n.focus(!0))}),n.on("focusout",()=>{uu.setEditorTimeout(n,()=>{const i=t.focusedEditor;ix(T_(n))&&i===n||a(n,Js),lx(n,T_(n))||i!==n||(n.dispatch("blur",{focusedEditor:null}),t.focusedEditor=null)})}),jg||(jg=i=>{const c=t.activeEditor;c&&Ei(i).each(d=>{const u=d;u.ownerDocument===document&&(u===document.body||lx(c,u)||t.focusedEditor!==c||(c.dispatch("blur",{focusedEditor:null}),t.focusedEditor=null))})},sx.bind(document,"focusin",jg))},NA=(t,o)=>{t.focusedEditor===o.editor&&(t.focusedEditor=null),!t.activeEditor&&jg&&(sx.unbind(document,"focusin",jg),jg=null)},n4=(t,o)=>{((n,a)=>(i=>i.collapsed?V.from(Pu(i.startContainer,i.startOffset)).map(je):V.none())(a).bind(i=>Bm(i)?V.some(i):lc(n,i)?V.none():V.some(n)))(je(t.getBody()),o).bind(n=>Z(n.dom)).fold(()=>{t.selection.normalize()},n=>t.selection.setRng(n.toRange()))},z_=t=>{if(t.setActive)try{t.setActive()}catch{t.focus()}else t.focus()},rf=t=>t.inline?(o=>{const n=o.getBody();return n&&(a=je(n),S_(a)||(i=a,nx(ta(i)).filter(c=>i.dom.contains(c.dom))).isSome());var a,i})(t):(o=>Ze(o.iframeElement)&&S_(je(o.iframeElement)))(t),r4=t=>rf(t)||(o=>{const n=ta(je(o.getElement()));return nx(n).filter(a=>!ix(a.dom)&&lx(o,a.dom)).isSome()})(t),cx=t=>t.editorManager.setActive(t),A_=(t,o)=>o.collapsed?t.isEditable(o.startContainer):t.isEditable(o.startContainer)&&t.isEditable(o.endContainer),a4=(t,o,n,a,i)=>{const c=n?o.startContainer:o.endContainer,d=n?o.startOffset:o.endOffset;return V.from(c).map(je).map(u=>a&&o.collapsed?u:yn(u,i(u,d)).getOr(u)).bind(u=>kn(u)?V.some(u):Gi(u).filter(kn)).map(u=>u.dom).getOr(t)},s4=(t,o,n=!1)=>a4(t,o,!0,n,(a,i)=>Math.min(ei(a),i)),i4=(t,o,n=!1)=>a4(t,o,!1,n,(a,i)=>i>0?i-1:i),l4=(t,o)=>{const n=t;for(;t&&ro(t)&&t.length===0;)t=o?t.nextSibling:t.previousSibling;return t||n},O_=(t,o)=>to(o,n=>{const a=t.dispatch("GetSelectionRange",{range:n});return a.range!==n?a.range:n}),MA=["img","br"],c4=t=>wd(t).filter(n=>n.trim().length!==0||n.indexOf(ns)>-1).isSome()||lo(MA,Pe(t))||(n=>bn(n)&&bt(n,"contenteditable")==="false")(t),d4="[data-mce-autocompleter]",DA=(t,o)=>{if(u4(je(t.getBody())).isNone()){const a=ic('',t.getDoc());os(a,je(o.extractContents())),o.insertNode(a.dom),Gi(a).each(i=>i.dom.normalize()),(n=a,((i,c)=>{const d=u=>{const f=Lt(u);for(let y=f.length-1;y>=0;y--){const v=f[y];if(c(v))return V.some(v);const k=d(v);if(k.isSome())return k}return V.none()};return d(i)})(n,c4)).map(i=>{t.selection.setCursorLocation(i.dom,(c=>Pe(c)==="img"?1:wd(c).fold(()=>Lt(c).length,d=>d.length))(i))})}var n},u4=t=>fd(t,d4),RA={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11},dx=(t,o,n)=>{const a=n?"lastChild":"firstChild",i=n?"prev":"next";if(t[a])return t[a];if(t!==o){let c=t[i];if(c)return c;for(let d=t.parent;d&&d!==o;d=d.parent)if(c=d[i],c)return c}},BA=t=>{var o;const n=(o=t.value)!==null&&o!==void 0?o:"";if(!ss(n))return!1;const a=t.parent;return!a||a.name==="span"&&!a.attr("style")||!/^[ ]+$/.test(n)},Dn=t=>{const o=t.name==="a"&&!t.attr("href")&&t.attr("id");return t.attr("name")||t.attr("id")&&!t.firstChild||t.attr("data-mce-bookmark")||o};class pc{static create(o,n){const a=new pc(o,RA[o]||1);return n&&Ft(n,(i,c)=>{a.attr(c,i)}),a}constructor(o,n){this.name=o,this.type=n,n===1&&(this.attributes=[],this.attributes.map={})}replace(o){const n=this;return o.parent&&o.remove(),n.insert(o,n),n.remove(),n}attr(o,n){const a=this;if(!Ue(o))return Ze(o)&&Ft(o,(c,d)=>{a.attr(d,c)}),a;const i=a.attributes;if(i){if(n!==void 0){if(n===null){if(o in i.map){delete i.map[o];let c=i.length;for(;c--;)if(i[c].name===o)return i.splice(c,1),a}return a}if(o in i.map){let c=i.length;for(;c--;)if(i[c].name===o){i[c].value=n;break}}else i.push({name:o,value:n});return i.map[o]=n,a}return i.map[o]}}clone(){const o=this,n=new pc(o.name,o.type),a=o.attributes;if(a){const i=[];i.map={};for(let c=0,d=a.length;cUe(t.nodeValue)&&t.nodeValue.includes(Za),ux=t=>(t.length===0?"":`${to(t,o=>`[${o}]`).join(",")},`)+'[data-mce-bogus="all"]',p4=t=>document.createTreeWalker(t,NodeFilter.SHOW_COMMENT,o=>g4(o)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP),R1=t=>document.createTreeWalker(t,NodeFilter.SHOW_TEXT,o=>{if(g4(o)){const n=o.parentNode;return n&&ln(m4,n.nodeName)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}return NodeFilter.FILTER_SKIP}),f4=t=>p4(t).nextNode()!==null,FA=t=>R1(t).nextNode()!==null,fr=(t,o)=>o.querySelector(ux(t))!==null,Tr=(t,o)=>{Se(((n,a)=>a.querySelectorAll(ux(n)))(t,o),n=>{const a=je(n);bt(a,"data-mce-bogus")==="all"?Ea(a):Se(t,i=>{Zn(a,i)&&U(a,i)})})},N_=t=>{let o=t.nextNode();for(;o!==null;)o.nodeValue=null,o=t.nextNode()},LA=gn(N_,p4),IA=gn(N_,R1),h4=(t,o)=>{const n=[{condition:Je(fr,o),action:Je(Tr,o)},{condition:f4,action:LA},{condition:FA,action:IA}];let a=t,i=!1;return Se(n,({condition:c,action:d})=>{c(a)&&(i||(a=t.cloneNode(!0),i=!0),d(a))}),a},er=t=>{const o=wa(t,"[data-mce-bogus]");Se(o,n=>{bt(n,"data-mce-bogus")==="all"?Ea(n):pl(n)?(rl(n,vc(Tl)),Ea(n)):_l(n)})},Kb=t=>{const o=wa(t,"input");Se(o,n=>{U(n,"name")})},b4=(t,o,n)=>{let a;return a=o.format==="raw"?go.trim(qs(h4(n,t.serializer.getTempAttrs()).innerHTML)):o.format==="text"?((i,c)=>{const d=i.getDoc(),u=ta(je(i.getBody())),f=_s("div",d);Q(f,"data-mce-bogus","all"),qd(f,{position:"fixed",left:"-9999999px",top:"0"}),wc(f,c.innerHTML),er(f),Kb(f);const y=(k=>ia(k)?k:je(Si(k).dom.body))(u);os(y,f);const v=qs(f.dom.innerText);return Ea(f),v})(t,n):o.format==="tree"?t.serializer.serialize(n,o):((i,c)=>{const d=Ts(i),u=new RegExp(`^(<${d}[^>]*>( | |\\s| |
|)<\\/${d}>[\r +]*|
[\r +]*)$`);return c.replace(u,"")})(t,t.serializer.serialize(n,o)),o.format!=="text"&&!Ui(je(n))&&Ue(a)?go.trim(a):a},M_=go.makeMap,y4=t=>{const o=[],n=(t=t||{}).indent,a=M_(t.indent_before||""),i=M_(t.indent_after||""),c=Sc.getEncodeFunc(t.entity_encoding||"raw",t.entities),d=t.element_format!=="xhtml";return{start:(u,f,y)=>{if(n&&a[u]&&o.length>0){const v=o[o.length-1];v.length>0&&v!==` +`&&o.push(` +`)}if(o.push("<",u),f)for(let v=0,k=f.length;v":" />",y&&n&&i[u]&&o.length>0){const v=o[o.length-1];v.length>0&&v!==` +`&&o.push(` +`)}},end:u=>{let f;o.push(""),n&&i[u]&&o.length>0&&(f=o[o.length-1],f.length>0&&f!==` +`&&o.push(` +`))},text:(u,f)=>{u.length>0&&(o[o.length]=f?u:c(u))},cdata:u=>{o.push("")},comment:u=>{o.push("")},pi:(u,f)=>{f?o.push(""):o.push(""),n&&o.push(` +`)},doctype:u=>{o.push("",n?` +`:"")},reset:()=>{o.length=0},getContent:()=>o.join("").replace(/\n$/,"")}},af=(t={},o=Du())=>{const n=y4(t);return t.validate=!("validate"in t)||t.validate,{serialize:a=>{const i=t.validate,c={3:u=>{var f;n.text((f=u.value)!==null&&f!==void 0?f:"",u.raw)},8:u=>{var f;n.comment((f=u.value)!==null&&f!==void 0?f:"")},7:u=>{n.pi(u.name,u.value)},10:u=>{var f;n.doctype((f=u.value)!==null&&f!==void 0?f:"")},4:u=>{var f;n.cdata((f=u.value)!==null&&f!==void 0?f:"")},11:u=>{let f=u;if(f=f.firstChild)do d(f);while(f=f.next)}};n.reset();const d=u=>{var f;const y=c[u.type];if(y)y(u);else{const v=u.name,k=v in o.getVoidElements();let E=u.attributes;if(i&&E&&E.length>1){const B=[];B.map={};const O=o.getElementRule(u.name);if(O){for(let P=0,M=O.attributesOrder.length;P{D_.add(t)});const v4=["font","text-decoration","text-emphasis"],Dr=(t,o)=>ut(t.parseStyle(t.getAttrib(o,"style"))),x4=(t,o,n)=>{const a=Dr(t,o),i=Dr(t,n),c=d=>{var u,f;const y=(u=t.getStyle(o,d))!==null&&u!==void 0?u:"",v=(f=t.getStyle(n,d))!==null&&f!==void 0?f:"";return nn(y)&&nn(v)&&y!==v};return zo(a,d=>{const u=f=>zo(f,y=>y===d);if(!u(i)&&u(v4)){const f=gt(i,y=>zo(v4,v=>gr(y,v)));return zo(f,c)}return c(d)})},B1=(t,o,n)=>V.from(n.container()).filter(ro).exists(a=>{const i=t?0:-1;return o(a.data.charAt(n.offset()+i))}),mx=Je(B1,!0,Qr),gx=Je(B1,!1,Qr),w4=t=>{const o=t.container();return ro(o)&&(o.data.length===0||_c(o.data)&&tf.isBookmarkNode(o.parentNode))},Vg=(t,o)=>n=>Bd(t?0:-1,n).filter(o).isSome(),R_=t=>ml(t)&&Yi(je(t),"display")==="block",B_=t=>Oa(t)&&!(o=>an(o)&&o.getAttribute("data-mce-bogus")==="all")(t),PA=Vg(!0,R_),HA=Vg(!1,R_),F1=Vg(!0,$i),L1=Vg(!1,$i),k4=Vg(!0,Ms),px=Vg(!1,Ms),Km=Vg(!0,B_),sf=Vg(!1,B_),_4=(t,o)=>((n,a,i)=>lc(a,n)?Yl(n,c=>i(c)||sa(c,a)).slice(0,-1):[])(t,o,uo),$g=(t,o)=>[t].concat(_4(t,o)),F_=(t,o,n)=>_(t,o,n,w4),L_=(t,o,n)=>Fe($g(je(o.container()),t),(a=>i=>a.isBlock(Pe(i)))(n)),lf=(t,o,n,a)=>F_(t,o.dom,n).forall(i=>L_(o,n,a).fold(()=>!Lr(i,n,o.dom),c=>!Lr(i,n,o.dom)&&lc(c,je(i.container())))),I_=(t,o,n,a)=>L_(o,n,a).fold(()=>F_(t,o.dom,n).forall(i=>!Lr(i,n,o.dom)),i=>F_(t,i.dom,n).isNone()),fx=Je(I_,!1),C4=Je(I_,!0),jA=Je(lf,!1),S4=Je(lf,!0),E4=t=>qp(t).exists(pl),Gl=(t,o,n,a)=>{const i=gt($g(je(n.container()),o),d=>a.isBlock(Pe(d))),c=Zo(i).getOr(o);return p(t,c.dom,n).filter(E4)},P_=(t,o,n)=>qp(o).exists(pl)||Gl(!0,t,o,n).isSome(),Ug=(t,o,n)=>(a=>V.from(a.getNode(!0)).map(je))(o).exists(pl)||Gl(!1,t,o,n).isSome(),Rs=Je(Gl,!1),hx=Je(Gl,!0),wl=t=>Ht.isTextPosition(t)&&!t.isAtStart()&&!t.isAtEnd(),Ym=(t,o,n)=>{const a=gt($g(je(o.container()),t),i=>n.isBlock(Pe(i)));return Zo(a).getOr(t)},Ta=(t,o,n)=>wl(o)?gx(o):gx(o)||I(Ym(t,o,n).dom,o).exists(gx),H_=(t,o,n)=>wl(o)?mx(o):mx(o)||L(Ym(t,o,n).dom,o).exists(mx),bx=t=>qp(t).bind(o=>ts(o,kn)).exists(o=>(n=>lo(["pre","pre-wrap"],n))(Yi(o,"white-space"))),T4=(t,o)=>n=>{return a=new Ns(n,t)[o](),Ze(a)&&Oa(a)&&Hv(a);var a},z4=(t,o,n)=>!bx(o)&&(((a,i,c)=>((d,u)=>I(d.dom,u).isNone())(a,i)||((d,u)=>L(d.dom,u).isNone())(a,i)||fx(a,i,c)||C4(a,i,c)||Ug(a,i,c)||P_(a,i,c))(t,o,n)||Ta(t,o,n)||H_(t,o,n)),I1=(t,o,n)=>!bx(o)&&(fx(t,o,n)||jA(t,o,n)||Ug(t,o,n)||Ta(t,o,n)||((a,i)=>{const c=I(a.dom,i).getOr(i),d=T4(a.dom,"prev");return i.isAtStart()&&(d(i.container())||d(c.container()))})(t,o)),rc=(t,o,n)=>!bx(o)&&(C4(t,o,n)||S4(t,o,n)||P_(t,o,n)||H_(t,o,n)||((a,i)=>{const c=L(a.dom,i).getOr(i),d=T4(a.dom,"next");return i.isAtEnd()&&(d(i.container())||d(c.container()))})(t,o)),mu=(t,o,n)=>I1(t,o,n)||rc(t,(a=>{const i=a.container(),c=a.offset();return ro(i)&&cLn(t.charAt(o)),yx=(t,o)=>Qr(t.charAt(o)),vx=(t,o,n,a)=>{const i=o.data,c=Ht(o,0);return n||!A4(i,0)||mu(t,c,a)?!!(n&&yx(i,0)&&I1(t,c,a))&&(o.data=ns+i.slice(1),!0):(o.data=" "+i.slice(1),!0)},O4=(t,o,n,a)=>{const i=o.data,c=Ht(o,i.length-1);return n||!A4(i,i.length-1)||mu(t,c,a)?!!(n&&yx(i,i.length-1)&&rc(t,c,a))&&(o.data=i.slice(0,-1)+ns,!0):(o.data=i.slice(0,-1)+" ",!0)},VA=(t,o,n)=>{const a=o.container();if(!ro(a))return V.none();if((i=>{const c=i.container();return ro(c)&&Xr(c.data,ns)})(o)){const i=vx(t,a,!1,n)||(c=>{const d=c.data,u=(f=>{const y=f.split("");return to(y,(v,k)=>Ln(v)&&k>0&&k{if(n===0)return;const i=je(t),c=Fa(i,y=>a.isBlock(Pe(y))).getOr(i),d=t.data.slice(o,o+n),u=o+n>=t.data.length&&rc(c,Ht(t,t.data.length),a),f=o===0&&I1(c,Ht(t,0),a);t.replaceData(o,n,vp(d,4,f,u))},yh=(t,o,n)=>{const a=t.data.slice(o),i=a.length-It(a).length;Yb(t,o,i,n)},P1=(t,o,n)=>{const a=t.data.slice(0,o),i=a.length-dn(a).length;Yb(t,o-i,i,n)},j_=(t,o,n,a,i=!0)=>{const c=dn(t.data).length,d=i?t:o,u=i?o:t;return i?d.appendData(u.data):d.insertData(0,u.data),Ea(je(u)),a&&yh(d,c,n),d},_m=(t,o)=>((n,a)=>{const i=n.container(),c=n.offset();return!Ht.isTextPosition(n)&&i===a.parentNode&&c>Ht.before(a).offset()})(o,t)?Ht(o.container(),o.offset()-1):o,N4=t=>{return Ka(t.previousSibling)?V.some((o=t.previousSibling,ro(o)?Ht(o,o.data.length):Ht.after(o))):t.previousSibling?Y(t.previousSibling):V.none();var o},M4=t=>{return Ka(t.nextSibling)?V.some((o=t.nextSibling,ro(o)?Ht(o,0):Ht.before(o))):t.nextSibling?Z(t.nextSibling):V.none();var o},gu=(t,o,n)=>((a,i,c)=>a?((d,u)=>M4(u).orThunk(()=>N4(u)).orThunk(()=>((f,y)=>L(f,Ht.after(y)).orThunk(()=>I(f,Ht.before(y))))(d,u)))(i,c):((d,u)=>N4(u).orThunk(()=>M4(u)).orThunk(()=>((f,y)=>V.from(y.previousSibling?y.previousSibling:y.parentNode).bind(v=>I(f,Ht.before(v))).orThunk(()=>L(f,Ht.after(y))))(d,u)))(i,c))(t,o,n).map(Je(_m,n)),Xb=(t,o,n)=>{n.fold(()=>{t.focus()},a=>{t.selection.setRng(a.toRange(),o)})},D4=(t,o)=>o&&ln(t.schema.getBlockElements(),Pe(o)),fc=(t,o,n,a=!0,i=!1)=>{const c=gu(o,t.getBody(),n.dom),d=Fa(n,Je(D4,t),(u=t.getBody(),y=>y.dom===u));var u;const f=((y,v,k,E)=>{const B=Ki(y).filter(_r),O=ie(y).filter(_r);return Ea(y),(P=B,M=O,j=v,q=(K,re,ee)=>{const ke=K.dom,et=re.dom,st=ke.data.length;return j_(ke,et,k,E),ee.container()===et?Ht(ke,st):ee},P.isSome()&&M.isSome()&&j.isSome()?V.some(q(P.getOrDie(),M.getOrDie(),j.getOrDie())):V.none()).orThunk(()=>(E&&(B.each(K=>P1(K.dom,K.dom.length,k)),O.each(K=>yh(K.dom,0,k))),v));var P,M,j,q})(n,c,t.schema,((y,v)=>ln(y.schema.getTextInlineElements(),Pe(v)))(t,n));t.dom.isEmpty(t.getBody())?(t.setContent(""),t.selection.setCursorLocation()):d.bind(y=>((v,k)=>{if(ys(v)){const E=ic('
');return k?Se(Lt(v),B=>{c_(B)||Ea(B)}):bd(v),os(v,E),V.some(Ht.before(E.dom))}return V.none()})(y,i)).fold(()=>{a&&Xb(t,o,f)},y=>{a&&Xb(t,o,V.some(y))})},Va=/[\u0591-\u07FF\uFB1D-\uFDFF\uFE70-\uFEFC]/,$u=(t,o)=>Ci(je(o),Tv(t))&&!Ed(t.schema,o)&&t.dom.isEditable(o),H1=t=>{var o;return wr.DOM.getStyle(t,"direction",!0)==="rtl"||(n=>Va.test(n))((o=t.textContent)!==null&&o!==void 0?o:"")},Zg=(t,o,n)=>{const a=((i,c,d)=>gt(wr.DOM.getParents(d.container(),"*",c),i))(t,o,n);return V.from(a[a.length-1])},ld=(t,o)=>{const n=o.container(),a=o.offset();return t?bs(n)?ro(n.nextSibling)?Ht(n.nextSibling,0):Ht.after(n):Hl(o)?Ht(n,a+1):o:bs(n)?ro(n.previousSibling)?Ht(n.previousSibling,n.previousSibling.data.length):Ht.before(n):_d(o)?Ht(n,a-1):o},xx=Je(ld,!0),R4=Je(ld,!1),wx=(t,o)=>{const n=a=>a.stopImmediatePropagation();t.on("beforeinput input",n,!0),t.getDoc().execCommand(o),t.off("beforeinput input",n)},V_=t=>wx(t,"Delete"),B4=t=>ri(t)||uc(t),j1=(t,o)=>lc(t,o)?ts(o,B4,(n=>a=>aa(Gi(a),n,sa))(t)):V.none(),V1=(t,o=!0)=>{t.dom.isEmpty(t.getBody())&&t.setContent("",{no_selection:!o})},$_=(t,o,n)=>Ir(Z(n),Y(n),(a,i)=>{const c=ld(!0,a),d=ld(!1,i),u=ld(!1,o);return t?L(n,u).exists(f=>f.isEqual(d)&&o.isEqual(c)):I(n,u).exists(f=>f.isEqual(c)&&o.isEqual(d))}).getOr(!0),$1=t=>{var o;return(Nt(o=t)===8||Pe(o)==="#comment"?Ki(t):Ra(t)).bind($1).orThunk(()=>V.some(t))},F4=(t,o,n,a=!0)=>{var i;o.deleteContents();const c=$1(n).getOr(n),d=je((i=t.dom.getParent(c.dom,t.dom.isBlock))!==null&&i!==void 0?i:n.dom);if(d.dom===t.getBody()?V1(t,a):ys(d)&&(Oi(d),a&&t.selection.setCursorLocation(d.dom,0)),!sa(n,d)){const f=aa(Gi(d),n)?[]:Gi(u=d).map(Lt).map(y=>gt(y,v=>!sa(u,v))).getOr([]);Se(f.concat(Lt(n)),y=>{sa(y,d)||lc(y,d)||!ys(y)||Ea(y)})}var u},$A=(t,o)=>((n,a)=>{const i=n.dom;return i.parentNode?((c,d)=>Fe(c.dom.childNodes,u=>d(je(u))).map(je))(je(i.parentNode),c=>!sa(n,c)&&a(c)):V.none()})(t,o).isSome(),L4=(t,o)=>Kc(t,o).isSome(),U_=t=>wa(t,"td,th"),I4=(t,o)=>zs(je(t),o),kx=(t,o)=>({start:t,end:o}),U1=zc([{singleCellTable:["rng","cell"]},{fullTable:["table"]},{partialTable:["cells","outsideDetails"]},{multiTable:["startTableCells","endTableCells","betweenRng"]}]),_x=(t,o)=>Yc(je(t),"td,th",o),Z_=t=>!sa(t.start,t.end),q_=(t,o)=>zs(t.start,o).bind(n=>zs(t.end,o).bind(a=>gi(sa(n,a),n))),W_=t=>o=>q_(o,t).map(n=>((a,i,c)=>({rng:a,table:i,cells:c}))(o,n,U_(n))),P4=(t,o,n,a)=>{if(n.collapsed||!t.forall(Z_))return V.none();if(o.isSameTable){const i=t.bind(W_(a));return V.some({start:i,end:i})}{const i=_x(n.startContainer,a),c=_x(n.endContainer,a),d=i.bind((f=>y=>zs(y,f).bind(v=>Gn(U_(v)).map(k=>kx(y,k))))(a)).bind(W_(a)),u=c.bind((f=>y=>zs(y,f).bind(v=>Zo(U_(v)).map(k=>kx(k,y))))(a)).bind(W_(a));return V.some({start:d,end:u})}},G_=(t,o)=>ge(t,n=>sa(n,o)),jc=t=>Ir(G_(t.cells,t.rng.start),G_(t.cells,t.rng.end),(o,n)=>t.cells.slice(o,n+1)),H4=(t,o)=>{const{startTable:n,endTable:a}=o,i=t.cloneRange();return n.each(c=>i.setStartAfter(c.dom)),a.each(c=>i.setEndBefore(c.dom)),i},j4=(t,o)=>{const n=(c=>d=>sa(c,d))(t),a=((c,d)=>{const u=_x(c.startContainer,d),f=_x(c.endContainer,d);return Ir(u,f,kx)})(o,n),i=((c,d)=>{const u=I4(c.startContainer,d),f=I4(c.endContainer,d),y=u.isSome(),v=f.isSome(),k=Ir(u,f,sa).getOr(!1);return(E=>Ir(E.startTable,E.endTable,(B,O)=>{const P=L4(B,j=>sa(j,O)),M=L4(O,j=>sa(j,B));return P||M?{...E,startTable:P?V.none():E.startTable,endTable:M?V.none():E.endTable,isSameTable:!1,isMultiTable:!1}:E}).getOr(E))({startTable:u,endTable:f,isStartInTable:y,isEndInTable:v,isSameTable:k,isMultiTable:!k&&y&&v})})(o,n);return((c,d,u)=>c.exists(f=>((y,v)=>!Z_(y)&&q_(y,v).exists(k=>{const E=k.dom.rows;return E.length===1&&E[0].cells.length===1}))(f,u)&&ql(f.start,d)))(a,o,n)?a.map(c=>U1.singleCellTable(o,c.start)):i.isMultiTable?((c,d,u,f)=>P4(c,d,u,f).bind(({start:y,end:v})=>{const k=y.bind(jc).getOr([]),E=v.bind(jc).getOr([]);if(k.length>0&&E.length>0){const B=H4(u,d);return V.some(U1.multiTable(k,E,B))}return V.none()}))(a,i,o,n):((c,d,u,f)=>P4(c,d,u,f).bind(({start:y,end:v})=>y.or(v)).bind(y=>{const{isSameTable:v}=d,k=jc(y).getOr([]);if(v&&y.cells.length===k.length)return V.some(U1.fullTable(y.table));if(k.length>0){if(v)return V.some(U1.partialTable(k,V.none()));{const E=H4(u,d);return V.some(U1.partialTable(k,V.some({...d,rng:E})))}}return V.none()}))(a,i,o,n)},Cx=t=>Se(t,o=>{U(o,"contenteditable"),Oi(o)}),Z1=(t,o,n,a)=>{const i=n.cloneRange();a?(i.setStart(n.startContainer,n.startOffset),i.setEndAfter(o.dom.lastChild)):(i.setStartBefore(o.dom.firstChild),i.setEnd(n.endContainer,n.endOffset)),Sx(t,i,o,!1).each(c=>c())},K_=t=>{const o=ca(t),n=je(t.selection.getNode());al(n.dom)&&ys(n)?t.selection.setCursorLocation(n.dom,0):t.selection.collapse(!0),o.length>1&&zo(o,a=>sa(a,n))&&Q(n,"data-mce-selected","1")},Y_=(t,o,n)=>V.some(()=>{const a=t.selection.getRng(),i=n.bind(({rng:c,isStartInTable:d})=>{const u=((y,v)=>V.from(y.dom.getParent(v,y.dom.isBlock)).map(je))(t,d?c.endContainer:c.startContainer);c.deleteContents(),((y,v,k)=>{k.each(E=>{v?Ea(E):(Oi(E),y.selection.setCursorLocation(E.dom,0))})})(t,d,u.filter(ys));const f=d?o[0]:o[o.length-1];return Z1(t,f,a,d),ys(f)?V.none():V.some(d?o.slice(1):o.slice(0,-1))}).getOr(o);Cx(i),K_(t)}),X_=(t,o,n,a)=>V.some(()=>{const i=t.selection.getRng(),c=o[0],d=n[n.length-1];Z1(t,c,i,!0),Z1(t,d,i,!1);const u=ys(c)?o:o.slice(1),f=ys(d)?n:n.slice(0,-1);Cx(u.concat(f)),a.deleteContents(),K_(t)}),Sx=(t,o,n,a=!0)=>V.some(()=>{F4(t,o,n,a)}),Uu=(t,o)=>V.some(()=>fc(t,!1,o)),V4=(t,o)=>Fe($g(o,t),Sn),q1=(t,o)=>Fe($g(o,t),ma("caption")),Vc=(t,o)=>V.some(()=>{Oi(o),t.selection.setCursorLocation(o.dom,0)}),Jb=(t,o)=>t?k4(o):px(o),Qb=(t,o,n)=>{const a=je(t.getBody());return q1(a,n).fold(()=>((i,c,d,u)=>{const f=Ht.fromRangeStart(i.selection.getRng());return V4(d,u).bind(y=>ys(y)?Vc(i,y):((v,k,E,B,O)=>b(E,v.getBody(),O).bind(P=>V4(k,je(P.getNode())).bind(M=>sa(M,B)?V.none():V.some($t))))(i,d,c,y,f))})(t,o,a,n).orThunk(()=>gi(((i,c)=>{const d=Ht.fromRangeStart(i.selection.getRng());return Jb(c,d)||p(c,i.getBody(),d).exists(u=>Jb(c,u))})(t,o),$t)),i=>((c,d,u,f)=>{const y=Ht.fromRangeStart(c.selection.getRng());return ys(f)?Vc(c,f):((v,k,E,B,O)=>b(E,v.getBody(),O).fold(()=>V.some($t),P=>((M,j,q,K)=>Z(M.dom).bind(re=>Y(M.dom).map(ee=>j?q.isEqual(re)&&K.isEqual(ee):q.isEqual(ee)&&K.isEqual(re))).getOr(!0))(B,E,O,P)?((M,j)=>Vc(M,j))(v,B):((M,j,q)=>q1(M,je(q.getNode())).fold(()=>V.some($t),K=>gi(!sa(K,j),$t)))(k,B,P)))(c,u,d,f,y)})(t,o,a,i))},J_=(t,o)=>{const n=je(t.selection.getStart(!0)),a=ca(t);return t.selection.isCollapsed()&&a.length===0?Qb(t,o,n):((i,c,d)=>{const u=je(i.getBody()),f=i.selection.getRng();return d.length!==0?Y_(i,d,V.none()):((y,v,k,E)=>q1(v,E).fold(()=>((B,O,P)=>j4(O,P).bind(M=>M.fold(Je(Sx,B),Je(Uu,B),Je(Y_,B),Je(X_,B))))(y,v,k),B=>((O,P)=>Vc(O,P))(y,B)))(i,u,f,c)})(t,n,a)},Zu=(t,o)=>{let n=o;for(;n&&n!==t;){if(zi(n)||Oa(n))return n;n=n.parentNode}return null},Xa=["data-ephox-","data-mce-","data-alloy-","data-snooker-","_"],W1=go.each,Ex=t=>{const o=t.dom,n=new Set(t.serializer.getTempAttrs()),a=i=>zo(Xa,c=>gr(i,c))||n.has(i);return{compare:(i,c)=>{if(i.nodeName!==c.nodeName||i.nodeType!==c.nodeType)return!1;const d=f=>{const y={};return W1(o.getAttribs(f),v=>{const k=v.nodeName.toLowerCase();k==="style"||a(k)||(y[k]=o.getAttrib(f,k))}),y},u=(f,y)=>{for(const v in f)if(ln(f,v)){const k=y[v];if(fo(k)||f[v]!==k)return!1;delete y[v]}for(const v in y)if(ln(y,v))return!1;return!0};return an(i)&&an(c)&&(!u(d(i),d(c))||!u(o.parseStyle(o.getAttrib(i,"style")),o.parseStyle(o.getAttrib(c,"style"))))?!1:!No(i)&&!No(c)},isAttributeInternal:a}},Q_=t=>["h1","h2","h3","h4","h5","h6"].includes(t.name),Tx=(t,o,n,a)=>{const i=n.name;for(let c=0,d=t.length;c{const n=(a,i)=>{Ft(a,c=>{const d=Pn(c.nodes);Se(c.filter.callbacks,u=>{for(let f=d.length-1;f>=0;f--){const y=d[f];(i?y.attr(c.filter.name)!==void 0:y.name===c.filter.name)&&!me(y.parent)||d.splice(f,1)}d.length>0&&u(d,c.filter.name,o)})})};n(t.nodes,!1),n(t.attributes,!0)},Ax=(t,o,n,a={})=>{const i=((c,d,u)=>{const f={nodes:{},attributes:{}};return u.firstChild&&((y,v)=>{let k=y;for(;k=k.walk();)Tx(c,d,k,f)})(u),f})(t,o,n);zx(i,a)},G1=(t,o,n,a)=>{if((t.pad_empty_with_br||o.insert)&&n(a)){const i=new pc("br",1);o.insert&&i.attr("data-mce-bogus","1"),a.empty().append(i)}else a.empty().append(new pc("#text",3)).value=ns},K1=(t,o)=>{const n=t==null?void 0:t.firstChild;return Ze(n)&&n===t.lastChild&&n.name===o},vh=(t,o,n,a)=>a.isEmpty(o,n,i=>((c,d)=>{const u=c.getElementRule(d.name);return(u==null?void 0:u.paddEmpty)===!0})(t,i)),$4=t=>{let o;for(let n=t;n;n=n.parent){const a=n.attr("contenteditable");if(a==="false")break;a==="true"&&(o=n)}return V.from(o)},Ox=(t,o,n=t.parent)=>{if(o.getSpecialElements()[t.name])t.empty().remove();else{const a=t.children();for(const i of a)n&&!o.isValidChild(n.name,i.name)&&Ox(i,o,n);t.unwrap()}},Nx=(t,o,n,a=$t)=>{const i=o.getTextBlockElements(),c=o.getNonEmptyElements(),d=o.getWhitespaceElements(),u=go.makeMap("tr,td,th,tbody,thead,tfoot,table,summary"),f=new Set,y=v=>v!==n&&!u[v.name];for(let v=0;v1)if(Mx(o,k,E))Ox(k,o);else{P.reverse(),B=P[0].clone(),a(B);let M=B;for(let j=0;j0?(O=P[j].clone(),a(O),M.append(O)):O=M;for(let q=P[j].firstChild;q&&q!==P[j+1];){const K=q.next;O.append(q),q=K}M=O}vh(o,c,d,B)?E.insert(k,P[0],!0):(E.insert(B,P[0],!0),E.insert(k,B)),E=P[0],(vh(o,c,d,E)||K1(E,"br"))&&E.empty().remove()}else if(k.parent){if(k.name==="li"){let M=k.prev;if(M&&(M.name==="ul"||M.name==="ol")){M.append(k);continue}if(M=k.next,M&&(M.name==="ul"||M.name==="ol")&&M.firstChild){M.insert(k,M.firstChild,!0);continue}const j=new pc("ul",1);a(j),k.wrap(j);continue}if(o.isValidChild(k.parent.name,"div")&&o.isValidChild("div",k.name)){const M=new pc("div",1);a(M),k.wrap(M)}else Ox(k,o)}}},Mx=(t,o,n=o.parent)=>!(!n||(!t.children[o.name]||t.isValidChild(n.name,o.name))&&(o.name!=="a"||!((a,i)=>{let c=a;for(;c;){if(c.name==="a")return!0;c=c.parent}return!1})(n))&&(!(a=>a.name==="summary")(n)||!Q_(o)||(n==null?void 0:n.firstChild)===o&&(n==null?void 0:n.lastChild)===o)),Dx=t=>t.collapsed?t:(o=>{const n=Ht.fromRangeStart(o),a=Ht.fromRangeEnd(o),i=o.commonAncestorContainer;return p(!1,i,a).map(c=>!Lr(n,a,i)&&Lr(n,c,i)?((d,u,f,y)=>{const v=document.createRange();return v.setStart(d,u),v.setEnd(f,y),v})(n.container(),n.offset(),c.container(),c.offset()):o).getOr(o)})(t),ey=(t,o)=>{let n=o.firstChild,a=o.lastChild;return n&&n.name==="meta"&&(n=n.next),a&&a.attr("id")==="mce_marker"&&(a=a.prev),((i,c)=>{const d=i.getNonEmptyElements();return Ze(c)&&(c.isEmpty(d)||((u,f)=>u.getBlockElements()[f.name]&&(y=>Ze(y.firstChild)&&y.firstChild===y.lastChild)(f)&&(y=>y.name==="br"||y.value===ns)(f.firstChild))(i,c))})(t,a)&&(a=a==null?void 0:a.prev),!(!n||n!==a||n.name!=="ul"&&n.name!=="ol")},U4=t=>{return t.length>0&&(!(n=t[t.length-1]).firstChild||Ze((o=n)==null?void 0:o.firstChild)&&o.firstChild===o.lastChild&&(a=>a.data===ns||da(a))(o.firstChild))?t.slice(0,-1):t;var o,n},Y1=(t,o)=>{const n=t.getParent(o,t.isBlock);return n&&n.nodeName==="LI"?n:null},Z4=(t,o)=>{const n=Ht.after(t),a=nc(o).prev(n);return a?a.toRange():null},UA=(t,o,n,a)=>{const i=((k,E,B)=>{const O=E.serialize(B);return(P=>{var M,j;const q=P.firstChild,K=P.lastChild;return q&&q.nodeName==="META"&&((M=q.parentNode)===null||M===void 0||M.removeChild(q)),K&&K.id==="mce_marker"&&((j=K.parentNode)===null||j===void 0||j.removeChild(K)),P})(k.createFragment(O))})(o,t,a),c=Y1(o,n.startContainer),d=U4((u=i.firstChild,gt((f=u==null?void 0:u.childNodes)!==null&&f!==void 0?f:[],k=>k.nodeName==="LI")));var u,f;const y=o.getRoot(),v=k=>{const E=Ht.fromRangeStart(n),B=nc(o.getRoot()),O=k===1?B.prev(E):B.next(E),P=O==null?void 0:O.getNode();return!P||Y1(o,P)!==c};return c?v(1)?((k,E,B)=>{const O=k.parentNode;return O&&go.each(E,P=>{O.insertBefore(P,k)}),((P,M)=>{const j=Ht.before(P),q=nc(M).next(j);return q?q.toRange():null})(k,B)})(c,d,y):v(2)?((k,E,B,O)=>(O.insertAfter(E.reverse(),k),Z4(E[0],B)))(c,d,y,o):((k,E,B,O)=>{const P=((j,q)=>{const K=q.cloneRange(),re=q.cloneRange();return K.setStartBefore(j),re.setEndAfter(j),[K.cloneContents(),re.cloneContents()]})(k,O),M=k.parentNode;return M&&(M.insertBefore(P[0],k),go.each(E,j=>{M.insertBefore(j,k)}),M.insertBefore(P[1],k),M.removeChild(k)),Z4(E[E.length-1],B)})(c,d,y,n):null},q4=["pre"],Rx=al,W4=(t,o,n)=>{var a,i;const c=t.selection,d=t.dom,u=t.parser,f=n.merge,y=af({validate:!0},t.schema),v='';n.preserve_zwsp||(o=qs(o)),o.indexOf("{$caret}")===-1&&(o+="{$caret}"),o=o.replace(/\{\$caret\}/,v);let k=c.getRng();const E=k.startContainer,B=t.getBody();E===B&&c.isCollapsed()&&d.isBlock(B.firstChild)&&((K,re)=>Ze(re)&&!K.schema.getVoidElements()[re.nodeName])(t,B.firstChild)&&d.isEmpty(B.firstChild)&&(k=d.createRng(),k.setStart(B.firstChild,0),k.setEnd(B.firstChild,0),c.setRng(k)),c.isCollapsed()||(K=>{const re=K.dom,ee=Dx(K.selection.getRng());K.selection.setRng(ee);const ke=re.getParent(ee.startContainer,Rx);((et,st,mt)=>!!Ze(mt)&&mt===et.getParent(st.endContainer,Rx)&&ql(je(mt),st))(re,ee,ke)?Sx(K,ee,je(ke)):ee.startContainer===ee.endContainer&&ee.endOffset-ee.startOffset==1&&ro(ee.startContainer.childNodes[ee.startOffset])?ee.deleteContents():K.getDoc().execCommand("Delete",!1)})(t);const O=c.getNode(),P={context:O.nodeName.toLowerCase(),data:n.data,insert:!0},M=u.parse(o,P);if(n.paste===!0&&ey(t.schema,M)&&((K,re)=>!!Y1(K,re))(d,O))return k=UA(y,d,c.getRng(),M),k&&c.setRng(k),o;n.paste===!0&&((K,re,ee,ke)=>{var et;const st=re.firstChild,mt=re.lastChild,kt=st===(mt.attr("data-mce-type")==="bookmark"?mt.prev:mt),Ve=lo(q4,st.name);if(kt&&Ve){const ot=st.attr("contenteditable")!=="false",pt=((et=K.getParent(ee,K.isBlock))===null||et===void 0?void 0:et.nodeName.toLowerCase())===st.name,Jt=V.from(Zu(ke,ee)).forall(zi);return ot&&pt&&Jt}return!1})(d,M,O,t.getBody())&&((a=M.firstChild)===null||a===void 0||a.unwrap()),(K=>{let re=K;for(;re=re.walk();)re.type===1&&re.attr("data-mce-fragment","1")})(M);let j=M.lastChild;if(j&&j.attr("id")==="mce_marker"){const K=j;for(j=j.prev;j;j=j.walk(!0))if(j.type===3||!d.isBlock(j.name)){j.parent&&t.schema.isValidChild(j.parent.name,"span")&&j.parent.insert(K,j,j.name==="br");break}}if(t._selectionOverrides.showBlockCaretContainer(O),P.invalid||((K,re,ee)=>{var ke;return zo(ee.children(),Q_)&&((ke=K.getParent(re,K.isBlock))===null||ke===void 0?void 0:ke.nodeName)==="SUMMARY"})(d,O,M)){t.selection.setContent(v);let K,re=c.getNode();const ee=t.getBody();for(xd(re)?re=K=ee:K=re;K&&K!==ee;)re=K,K=K.parentNode;o=re===ee?ee.innerHTML:d.getOuterHTML(re);const ke=u.parse(o),et=(ot=>{for(let pt=ot;pt;pt=pt.walk())if(pt.attr("id")==="mce_marker")return V.some(pt);return V.none()})(ke),st=et.bind($4).getOr(ke);et.each(ot=>ot.replace(M));const mt=M.children(),kt=(i=M.parent)!==null&&i!==void 0?i:ke;M.unwrap();const Ve=gt(mt,ot=>Mx(t.schema,ot,kt));Nx(Ve,t.schema,st),Ax(u.getNodeFilters(),u.getAttributeFilters(),ke),o=y.serialize(ke),re===ee?d.setHTML(ee,o):d.setOuterHTML(re,o)}else o=y.serialize(M),((K,re,ee)=>{var ke;if(ee.getAttribute("data-mce-bogus")==="all")(ke=ee.parentNode)===null||ke===void 0||ke.insertBefore(K.dom.createFragment(re),ee);else{const et=ee.firstChild,st=ee.lastChild;!et||et===st&&et.nodeName==="BR"?K.dom.setHTML(ee,re):K.selection.setContent(re,{no_events:!0})}})(t,o,O);var q;return((K,re)=>{const ee=K.schema.getTextInlineElements(),ke=K.dom;if(re){const et=K.getBody(),st=Ex(K);go.each(ke.select("*[data-mce-fragment]"),mt=>{if(Ze(ee[mt.nodeName.toLowerCase()])&&((kt,Ve)=>ze(Dr(kt,Ve),ot=>!(pt=>D_.has(pt))(ot)))(ke,mt)){for(let kt=mt.parentElement;Ze(kt)&&kt!==et&&!x4(ke,mt,kt);kt=kt.parentElement)if(st.compare(kt,mt)){ke.remove(mt,!0);break}}})}})(t,f),((K,re)=>{var ee,ke,et;let st;const mt=K.dom,kt=K.selection;if(!re)return;kt.scrollIntoView(re);const Ve=Zu(K.getBody(),re);if(Ve&&mt.getContentEditable(Ve)==="false")return mt.remove(re),void kt.select(Ve);let ot=mt.createRng();const pt=re.previousSibling;if(ro(pt)){ot.setStart(pt,(ke=(ee=pt.nodeValue)===null||ee===void 0?void 0:ee.length)!==null&&ke!==void 0?ke:0);const en=re.nextSibling;ro(en)&&(pt.appendData(en.data),(et=en.parentNode)===null||et===void 0||et.removeChild(en))}else ot.setStartBefore(re),ot.setEndBefore(re);const Jt=mt.getParent(re,mt.isBlock);if(mt.remove(re),Jt&&mt.isEmpty(Jt)){const en=Rx(Jt);bd(je(Jt)),ot.setStart(Jt,0),ot.setEnd(Jt,0),en||(Fo=>!!Fo.getAttribute("data-mce-fragment"))(Jt)||!(st=(Fo=>{let Nn=Ht.fromRangeStart(Fo);return Nn=nc(K.getBody()).next(Nn),Nn==null?void 0:Nn.toRange()})(ot))?mt.add(Jt,mt.create("br",en?{}:{"data-mce-bogus":"1"})):(ot=st,mt.remove(Jt))}kt.setRng(ot)})(t,d.get("mce_marker")),q=t.getBody(),go.each(q.getElementsByTagName("*"),K=>{K.removeAttribute("data-mce-fragment")}),((K,re,ee)=>{V.from(K.getParent(re,"td,th")).map(je).each(ke=>((et,st)=>{Ra(et).each(mt=>{Ki(mt).each(kt=>{st.isBlock(Pe(et))&&pl(mt)&&st.isBlock(Pe(kt))&&Ea(mt)})})})(ke,ee))})(d,c.getStart(),t.schema),((K,re,ee)=>{const ke=Yl(je(ee),et=>sa(et,je(re)));$o(ke,ke.length-2).filter(kn).fold(()=>xp(K,re),et=>xp(K,et.dom))})(t.schema,t.getBody(),c.getStart()),o},xh=t=>t instanceof pc,Bx=(t,o,n)=>{t.dom.setHTML(t.getBody(),o),n!==!0&&(a=>{rf(a)&&Z(a.getBody()).each(i=>{const c=i.getNode(),d=Ms(c)?Z(c).getOr(i):i;a.selection.setRng(d.toRange())})})(t)},e2=t=>de(t)?t:uo,Fx=(t,o,n)=>{const a=o(t),i=e2(n);return a.orThunk(()=>i(t)?V.none():((c,d,u)=>{let f=c.dom;const y=e2(u);for(;f.parentNode;){f=f.parentNode;const v=je(f),k=d(v);if(k.isSome())return k;if(y(v))break}return V.none()})(t,o,i))},Lx=Pc,t2=(t,o,n)=>{const a=t.formatter.get(n);if(a)for(let i=0;i{const c=t.dom.getRoot();if(o===c)return!1;const d=t.dom.getParent(o,u=>!!t2(t,u,n)||u.parentNode===c||!!Cm(t,u,n,a,!0));return!!Cm(t,d,n,a,i)},X1=(t,o,n)=>!(!el(n)||!Lx(o,n.inline))||!(!Wm(n)||!Lx(o,n.block))||!!Fd(n)&&an(o)&&t.is(o,n.selector),o2=(t,o,n,a,i,c)=>{const d=n[a],u=a==="attributes";if(de(n.onmatch))return n.onmatch(o,n,a);if(d){if(Yr(d)){for(let f=0;f{const c=t.formatter.get(n),d=t.dom;if(c&&an(o))for(let u=0;u{if(a)return Ix(t,a,o,n,i);if(a=t.selection.getNode(),Ix(t,a,o,n,i))return!0;const c=t.selection.getStart();return!(c===a||!Ix(t,c,o,n,i))},wh=Za,n2=t=>{if(t){const o=new Ns(t,t);for(let n=o.current();n;n=o.next())if(ro(n))return n}return null},Hx=t=>{const o=_s("span");return Ee(o,{id:ae,"data-mce-bogus":"1","data-mce-type":"format-caret"}),t&&os(o,vc(wh)),o},jx=(t,o,n)=>{const a=t.dom,i=t.selection;if(D3(o))fc(t,!1,je(o),n,!0);else{const c=i.getRng(),d=a.getParent(o,a.isBlock),u=c.startContainer,f=c.startOffset,y=c.endContainer,v=c.endOffset,k=(E=>{const B=n2(E);return B&&B.data.charAt(0)===wh&&B.deleteData(0,1),B})(o);a.remove(o,!0),u===k&&f>0&&c.setStart(k,f-1),y===k&&v>0&&c.setEnd(k,v-1),d&&a.isEmpty(d)&&Oi(je(d)),i.setRng(c)}},Vx=(t,o,n)=>{const a=t.dom,i=t.selection;if(o)jx(t,o,n);else if(!(o=Le(t.getBody(),i.getStart())))for(;o=a.get(ae);)jx(t,o,n)},r2=(t,o)=>(t.appendChild(o),o),a2=(t,o)=>{var n;const a=pe(t,(c,d)=>r2(c,d.cloneNode(!1)),o),i=(n=a.ownerDocument)!==null&&n!==void 0?n:document;return r2(a,i.createTextNode(wh))},s2=(t,o,n,a)=>{const i=t.dom,c=t.selection;let d=!1;const u=t.formatter.get(o);if(!u)return;const f=c.getRng(),y=f.startContainer,v=f.startOffset;let k=y;ro(y)&&(v!==y.data.length&&(d=!0),k=k.parentNode);const E=[];let B;for(;k;){if(Cm(t,k,o,n,a)){B=k;break}k.nextSibling&&(d=!0),E.push(k),k=k.parentNode}if(B)if(d){const O=c.getBookmark();f.collapse(!0);let P=ef(i,f,u,!0);P=N1(P),t.formatter.remove(o,n,P,a),c.moveToBookmark(O)}else{const O=Le(t.getBody(),B),P=Ze(O)?i.getParents(B.parentNode,Bt,O):[],M=Hx(!1).dom;((K,re,ee)=>{var ke,et;const st=K.dom,mt=st.getParent(ee,Je(Zv,K.schema));mt&&st.isEmpty(mt)?(ke=ee.parentNode)===null||ke===void 0||ke.replaceChild(re,ee):((kt=>{const Ve=wa(kt,"br"),ot=gt((pt=>{const Jt=[];let en=pt.dom;for(;en;)Jt.push(je(en)),en=en.lastChild;return Jt})(kt).slice(-1),pl);Ve.length===ot.length&&Se(ot,Ea)})(je(ee)),st.isEmpty(ee)?(et=ee.parentNode)===null||et===void 0||et.replaceChild(re,ee):st.insertAfter(re,ee))})(t,M,O??B);const j=((K,re,ee,ke,et,st)=>{const mt=K.formatter,kt=K.dom,Ve=gt(ut(mt.get()),pt=>pt!==ke&&!Xr(pt,"removeformat")),ot=((pt,Jt,en)=>Oe(en,(Fo,Nn)=>{const An=((Jn,jn)=>Gr(Jn,jn,cn=>{const vn=cr=>de(cr)||cr.length>1&&cr.charAt(0)==="%";return zo(["styles","attributes"],cr=>Fn(cn,cr).exists(Qe=>{const nt=co(Qe)?Qe:vr(Qe);return zo(nt,vn)}))}))(pt,Nn);return pt.formatter.matchNode(Jt,Nn,{},An)?Fo.concat([Nn]):Fo},[]))(K,ee,Ve);if(gt(ot,pt=>!((Jt,en,Fo)=>{const Nn=["inline","block","selector","attributes","styles","classes"],An=Jn=>Rr(Jn,(jn,cn)=>zo(Nn,vn=>vn===cn));return Gr(Jt,en,Jn=>{const jn=An(Jn);return Gr(Jt,Fo,cn=>{const vn=An(cn);return((cr,Qe,nt=Po)=>io(nt).eq(cr,Qe))(jn,vn)})})})(K,pt,ke)).length>0){const pt=ee.cloneNode(!1);return kt.add(re,pt),mt.remove(ke,et,pt,st),kt.remove(pt),V.some(pt)}return V.none()})(t,M,B,o,n,a),q=a2([...E,...j.toArray(),...P],M);O&&jx(t,O,Ze(O)),c.setCursorLocation(q,1),i.isEmpty(B)&&i.remove(B)}},J1=t=>{const o=Hx(!1),n=a2(t,o.dom);return{caretContainer:o,caretPosition:Ht(n,0)}},Q1=(t,o)=>{const{caretContainer:n,caretPosition:a}=J1(o);return rl(je(t),n),Ea(je(t)),a},e0=(t,o)=>{if(be(o.dom))return!1;const n=t.schema.getTextInlineElements();return ln(n,Pe(o))&&!be(o.dom)&&!El(o.dom)},ty={},t0=ka(["pre"]);((t,o)=>{ty[t]||(ty[t]=[]),ty[t].push(n=>{if(!n.selection.getRng().collapsed){const a=n.selection.getSelectedBlocks(),i=gt(gt(a,t0),(c=>d=>{const u=d.previousSibling;return t0(u)&&lo(c,u)})(a));Se(i,c=>{((d,u)=>{const f=je(u),y=Si(f).dom;Ea(f),dc(je(d),[_s("br",y),_s("br",y),...Lt(f)])})(c.previousSibling,c)})}})})("pre");const $x=["fontWeight","fontStyle","color","fontSize","fontFamily"],oy=(t,o)=>{const n=t.get(o);return co(n)?Fe(n,a=>el(a)&&a.inline==="span"&&(i=>it(i.styles)&&zo(ut(i.styles),c=>lo($x,c)))(a)):V.none()},Ux=(t,o)=>I(o,Ht.fromRangeStart(t)).isNone(),i2=(t,o)=>L(o,Ht.fromRangeEnd(t)).exists(n=>!da(n.getNode())||L(o,n).isSome())===!1,kh=t=>o=>Yd(o)&&t.isEditable(o),Zx=t=>gt(t.getSelectedBlocks(),kh(t.dom)),o0=go.each,_h=t=>an(t)&&!No(t)&&!be(t)&&!El(t),qg=(t,o)=>{for(let n=t;n;n=n[o]){if(ro(n)&&nn(n.data))return t;if(an(n)&&!No(n))return n}return t},l2=(t,o,n)=>{const a=Ex(t),i=Ti(o)&&t.dom.isEditable(o),c=Ti(n)&&t.dom.isEditable(n);if(i&&c){const d=qg(o,"previousSibling"),u=qg(n,"nextSibling");if(a.compare(d,u)){for(let f=d.nextSibling;f&&f!==u;){const y=f;f=f.nextSibling,d.appendChild(y)}return t.dom.remove(u),go.each(go.grep(u.childNodes),f=>{d.appendChild(f)}),d}}return n},G4=(t,o,n,a)=>{var i;if(a&&o.merge_siblings!==!1){const c=(i=l2(t,O3(a),a))!==null&&i!==void 0?i:a;l2(t,c,O3(c,!0))}},qx=(t,o,n)=>{o0(t.childNodes,a=>{_h(a)&&(o(a)&&n(a),a.hasChildNodes()&&qx(a,o,n))})},c2=(t,o)=>n=>!(!n||!Lg(t,n,o)),Wx=(t,o,n)=>a=>{t.setStyle(a,o,n),a.getAttribute("style")===""&&a.removeAttribute("style"),((i,c)=>{c.nodeName==="SPAN"&&i.getAttribs(c).length===0&&i.remove(c,!0)})(t,a)},Oc=zc([{keep:[]},{rename:["name"]},{removed:[]}]),d2=/^(src|href|style)$/,ny=go.each,n0=Pc,K4=(t,o,n)=>t.isChildOf(o,n)&&o!==n&&!t.isBlock(n),u2=(t,o,n)=>{let a=o[n?"startContainer":"endContainer"],i=o[n?"startOffset":"endOffset"];if(an(a)){const c=a.childNodes.length-1;!n&&i&&i--,a=a.childNodes[i>c?c:i]}return ro(a)&&n&&i>=a.data.length&&(a=new Ns(a,t.getBody()).next()||a),ro(a)&&!n&&i===0&&(a=new Ns(a,t.getBody()).prev()||a),a},m2=(t,o)=>{const n=o?"firstChild":"lastChild",a=t[n];return(i=>/^(TR|TH|TD)$/.test(i.nodeName))(t)&&a?t.nodeName==="TR"&&a[n]||a:t},r0=(t,o,n,a)=>{var i;const c=t.create(n,a);return(i=o.parentNode)===null||i===void 0||i.insertBefore(c,o),c.appendChild(o),c},g2=(t,o,n,a,i)=>{const c=je(o),d=je(t.create(a,i)),u=n?yt(c):ve(c);return dc(d,u),n?(rl(c,d),Jl(d,c)):(Da(c,d),os(d,c)),d.dom},ry=(t,o,n)=>{const a=o.parentNode;let i;const c=t.dom,d=Ts(t);Wm(n)&&a===c.getRoot()&&(n.list_block&&n0(o,n.list_block)||Se(Pn(o.childNodes),u=>{Jp(t,d,u.nodeName.toLowerCase())?i?i.appendChild(u):(i=r0(c,u,d),c.setAttribs(i,gc(t))):i=null})),(u=>Fd(u)&&el(u)&&aa(Fn(u,"mixed"),!0))(n)&&!n0(n.inline,o)||c.remove(o,!0)},p2=(t,o,n)=>rt(t)?{name:o,value:null}:{name:t,value:Qp(o,n)},f2=(t,o)=>{t.getAttrib(o,"style")===""&&(o.removeAttribute("style"),o.removeAttribute("data-mce-style"))},h2=(t,o,n,a,i)=>{let c=!1;ny(n.styles,(d,u)=>{const{name:f,value:y}=p2(u,d,a),v=Wl(y,f);(n.remove_similar||he(y)||!an(i)||n0(Lg(t,i,f),v))&&t.setStyle(o,f,""),c=!0}),c&&f2(t,o)},Y4=(t,o,n,a,i)=>{const c=t.dom,d=Ex(t),u=t.schema;if(el(o)&&wp(u,o.inline)&&Ed(u,a)&&a.parentElement===t.getBody())return ry(t,a,o),Oc.removed();if(!o.ceFalseOverride&&a&&c.getContentEditableParent(a)==="false"||a&&!X1(c,a,o)&&!((v,k)=>k.links&&v.nodeName==="A")(a,o))return Oc.keep();const f=a,y=o.preserve_attributes;if(el(o)&&o.remove==="all"&&co(y)){const v=gt(c.getAttribs(f),k=>lo(y,k.name.toLowerCase()));if(c.removeAllAttribs(f),Se(v,k=>c.setAttrib(f,k.name,k.value)),v.length>0)return Oc.rename("span")}if(o.remove!=="all"){h2(c,f,o,n,i),ny(o.attributes,(k,E)=>{const{name:B,value:O}=p2(E,k,n);if(o.remove_similar||he(O)||!an(i)||n0(c.getAttrib(i,B),O)){if(B==="class"){const P=c.getAttrib(f,B);if(P){let M="";if(Se(P.split(/\s+/),j=>{/mce\-\w+/.test(j)&&(M+=(M?" ":"")+j)}),M)return void c.setAttrib(f,B,M)}}if(d2.test(B)&&f.removeAttribute("data-mce-"+B),B==="style"&&ka(["li"])(f)&&c.getStyle(f,"list-style-type")==="none")return f.removeAttribute(B),void c.setStyle(f,"list-style-type","none");B==="class"&&f.removeAttribute("className"),f.removeAttribute(B)}}),ny(o.classes,k=>{k=Qp(k,n),an(i)&&!c.hasClass(i,k)||c.removeClass(f,k)});const v=c.getAttribs(f);for(let k=0;kY4(t,o,n,a,a).fold(Ct(a),i=>(t.dom.createFragment().appendChild(a),t.dom.rename(a,i)),Ct(null)),cf=(t,o,n,a,i)=>{(a||t.selection.isEditable())&&((c,d,u,f,y)=>{const v=c.formatter.get(d),k=v[0],E=c.dom,B=c.selection,O=K=>{const re=((ee,ke,et,st,mt)=>{let kt;return ke.parentNode&&Se(Wv(ee.dom,ke.parentNode).reverse(),Ve=>{if(!kt&&an(Ve)&&Ve.id!=="_start"&&Ve.id!=="_end"){const ot=Cm(ee,Ve,et,st,mt);ot&&ot.split!==!1&&(kt=Ve)}}),kt})(c,K,d,u,y);return((ee,ke,et,st,mt,kt,Ve,ot)=>{var pt,Jt;let en,Fo;const Nn=ee.dom;if(et){const An=et.parentNode;for(let Jn=st.parentNode;Jn&&Jn!==An;Jn=Jn.parentNode){let jn=Nn.clone(Jn,!1);for(let cn=0;cnzo(v,re=>a0(c,re,u,K,K)),M=K=>{const re=Pn(K.childNodes),ee=P(K)||zo(v,et=>X1(E,K,et)),ke=K.parentNode;if(!ee&&Ze(ke)&&l_(k)&&P(ke),k.deep&&re.length)for(let et=0;et{an(K)&&c.dom.getStyle(K,"text-decoration")===et&&K.parentNode&&M3(E,K.parentNode)===et&&a0(c,{deep:!1,exact:!0,inline:"span",styles:{textDecoration:et}},void 0,K)})},j=K=>{const re=E.get(K?"_start":"_end");if(re){let ee=re[K?"firstChild":"lastChild"];return(ke=>No(ke)&&an(ke)&&(ke.id==="_start"||ke.id==="_end"))(ee)&&(ee=ee[K?"firstChild":"lastChild"]),ro(ee)&&ee.data.length===0&&(ee=K?re.previousSibling||re.nextSibling:re.nextSibling||re.previousSibling),E.remove(re,!0),ee}return null},q=K=>{let re,ee,ke=ef(E,K,v,K.collapsed);if(k.split){if(ke=N1(ke),re=u2(c,ke,!0),ee=u2(c,ke),re!==ee){if(re=m2(re,!0),ee=m2(ee,!1),K4(E,re,ee)){const st=V.from(re.firstChild).getOr(re);return O(g2(E,st,!0,"span",{id:"_start","data-mce-type":"bookmark"})),void j(!0)}if(K4(E,ee,re)){const st=V.from(ee.lastChild).getOr(ee);return O(g2(E,st,!1,"span",{id:"_end","data-mce-type":"bookmark"})),void j(!1)}re=r0(E,re,"span",{id:"_start","data-mce-type":"bookmark"}),ee=r0(E,ee,"span",{id:"_end","data-mce-type":"bookmark"});const et=E.createRng();et.setStartAfter(re),et.setEndBefore(ee),T1(E,et,st=>{Se(st,mt=>{No(mt)||No(mt.parentNode)||O(mt)})}),O(re),O(ee),re=j(!0),ee=j()}else re=ee=O(re);ke.startContainer=re.parentNode?re.parentNode:re,ke.startOffset=E.nodeIndex(re),ke.endContainer=ee.parentNode?ee.parentNode:ee,ke.endOffset=E.nodeIndex(ee)+1}T1(E,ke,et=>{Se(et,M)})};if(f){if(wm(f)){const K=E.createRng();K.setStartBefore(f),K.setEndAfter(f),q(K)}else q(f);A1(c,d,f,u)}else B.isCollapsed()&&el(k)&&!ca(c).length?s2(c,d,u,y):(Yp(c,()=>Vu(c,q),K=>el(k)&&Px(c,d,u,K)),c.nodeChanged()),((K,re,ee)=>{re==="removeformat"?Se(Zx(K.selection),ke=>{Se($x,et=>K.dom.setStyle(ke,et,"")),f2(K.dom,ke)}):oy(K.formatter,re).each(ke=>{Se(Zx(K.selection),et=>h2(K.dom,et,ke,ee,null))})})(c,d,u),A1(c,d,f,u)})(t,o,n,a,i)},a0=(t,o,n,a,i)=>Y4(t,o,n,a,i).fold(uo,c=>(t.dom.rename(a,c),!0),Bt),X4=go.each,Ch=go.each,y2=(t,o,n,a)=>{if(Ch(n.styles,(i,c)=>{t.setStyle(o,c,Qp(i,a))}),n.styles){const i=t.getAttrib(o,"style");i&&t.setAttrib(o,"data-mce-style",i)}},J4=(t,o,n,a)=>{const i=t.formatter.get(o),c=i[0],d=!a&&t.selection.isCollapsed(),u=t.dom,f=t.selection,y=(O,P=c)=>{de(P.onformat)&&P.onformat(O,P,n,a),y2(u,O,P,n),Ch(P.attributes,(M,j)=>{u.setAttrib(O,j,Qp(M,n))}),Ch(P.classes,M=>{const j=Qp(M,n);u.hasClass(O,j)||u.addClass(O,j)})},v=(O,P)=>{let M=!1;return Ch(O,j=>!(!Fd(j)||(u.getContentEditable(P)!=="false"||j.ceFalseOverride)&&(!Ze(j.collapsed)||j.collapsed===d)&&u.is(P,j.selector)&&!be(P)&&(y(P,j),M=!0,1))),M},k=O=>{if(Ue(O)){const P=u.create(O);return y(P),P}return null},E=(O,P,M)=>{const j=[];let q=!0;const K=c.inline||c.block,re=k(K);T1(O,P,ee=>{let ke;const et=st=>{let mt=!1,kt=q,Ve=!1;const ot=st.parentNode,pt=ot.nodeName.toLowerCase(),Jt=O.getContentEditable(st);Ze(Jt)&&(kt=q,q=Jt==="true",mt=!0,Ve=N3(t,st));const en=q&&!mt;if(da(st)&&!((Fo,Nn,An,Jn)=>{if(oh(Fo)&&el(Nn)&&An.parentNode){const jn=gg(Fo.schema),cn=$A(je(An),vn=>be(vn.dom));return xr(jn,Jn)&&ys(je(An.parentNode),!1)&&!cn}return!1})(t,c,st,pt))return ke=null,void(Wm(c)&&O.remove(st));if((Fo=>(Nn=>Wm(Nn)&&Nn.wrapper===!0)(c)&&Cm(t,Fo,o,n))(st))ke=null;else{if(((Fo,Nn,An)=>{const Jn=(jn=>Wm(jn)&&jn.wrapper!==!0)(c)&&Zv(t.schema,Fo)&&Jp(t,Nn,K);return An&&Jn})(st,pt,en)){const Fo=O.rename(st,K);return y(Fo),j.push(Fo),void(ke=null)}if(Fd(c)){let Fo=v(i,st);if(!Fo&&Ze(ot)&&l_(c)&&(Fo=v(i,ot)),!el(c)||Fo)return void(ke=null)}Ze(re)&&((Fo,Nn,An,Jn)=>{const jn=Fo.nodeName.toLowerCase(),cn=Jp(t,K,jn)&&Jp(t,Nn,K),vn=!M&&ro(Fo)&&_c(Fo.data),cr=be(Fo),Qe=!el(c)||!O.isBlock(Fo);return(An||Jn)&&cn&&!vn&&!cr&&Qe})(st,pt,en,Ve)?(ke||(ke=O.clone(re,!1),ot.insertBefore(ke,st),j.push(ke)),Ve&&mt&&(q=kt),ke.appendChild(st)):(ke=null,Se(Pn(st.childNodes),et),mt&&(q=kt),ke=null)}};Se(ee,et)}),c.links===!0&&Se(j,ee=>{const ke=et=>{et.nodeName==="A"&&y(et,c),Se(Pn(et.childNodes),ke)};ke(ee)}),Se(j,ee=>{const ke=(et=>{let st=0;return Se(et.childNodes,mt=>{(kt=>Ze(kt)&&ro(kt)&&kt.length===0)(mt)||No(mt)||st++}),st})(ee);!(j.length>1)&&O.isBlock(ee)||ke!==0?(el(c)||Wm(c)&&c.wrapper)&&(c.exact||ke!==1||(ee=(et=>Fe(et.childNodes,Fg).filter(mt=>O.getContentEditable(mt)!=="false"&&X1(O,mt,c)).map(mt=>{const kt=O.clone(mt,!1);return y(kt),O.replace(kt,et,!0),O.remove(mt,!0),kt}).getOr(et))(ee)),((et,st,mt,kt)=>{X4(st,Ve=>{el(Ve)&&X4(et.dom.select(Ve.inline,kt),ot=>{_h(ot)&&a0(et,Ve,mt,ot,Ve.exact?ot:null)}),((ot,pt,Jt)=>{if(pt.clear_child_styles){const en=pt.links?"*:not(a)":"*";o0(ot.select(en,Jt),Fo=>{_h(Fo)&&ot.isEditable(Fo)&&o0(pt.styles,(Nn,An)=>{ot.setStyle(Fo,An,"")})})}})(et.dom,Ve,kt)})})(t,i,n,ee),((et,st,mt,kt,Ve)=>{const ot=Ve.parentNode;Cm(et,ot,mt,kt)&&a0(et,st,kt,Ve)||st.merge_with_parents&&ot&&et.dom.getParent(ot,pt=>!!Cm(et,pt,mt,kt)&&(a0(et,st,kt,Ve),!0))})(t,c,o,n,ee),((et,st,mt,kt)=>{if(st.styles&&st.styles.backgroundColor){const Ve=c2(et,"fontSize");qx(kt,ot=>Ve(ot)&&et.isEditable(ot),Wx(et,"backgroundColor",Qp(st.styles.backgroundColor,mt)))}})(O,c,n,ee),((et,st,mt,kt)=>{const Ve=ot=>{if(Ti(ot)&&an(ot.parentNode)&&et.isEditable(ot)){const pt=M3(et,ot.parentNode);et.getStyle(ot,"color")&&pt?et.setStyle(ot,"text-decoration",pt):et.getStyle(ot,"text-decoration")===pt&&et.setStyle(ot,"text-decoration",null)}};st.styles&&(st.styles.color||st.styles.textDecoration)&&(go.walk(kt,Ve,"childNodes"),Ve(kt))})(O,c,0,ee),((et,st,mt,kt)=>{if(el(st)&&(st.inline==="sub"||st.inline==="sup")){const Ve=c2(et,"fontSize");qx(kt,pt=>Ve(pt)&&et.isEditable(pt),Wx(et,"fontSize",""));const ot=gt(et.select(st.inline==="sup"?"sub":"sup",kt),et.isEditable);et.remove(ot,!0)}})(O,c,0,ee),G4(t,c,0,ee)):O.remove(ee,!0)})},B=wm(a)?a:f.getNode();if(u.getContentEditable(B)==="false"&&!N3(t,B))return v(i,a=B),void $b(t,o,a,n);if(c){if(a)if(wm(a)){if(!v(i,a)){const O=u.createRng();O.setStartBefore(a),O.setEndAfter(a),E(u,ef(u,O,i),!0)}}else E(u,a,!0);else d&&el(c)&&!ca(t).length?((O,P,M)=>{let j;const q=O.selection,K=O.formatter.get(P);if(!K)return;const re=q.getRng();let ee=re.startOffset;const ke=re.startContainer.nodeValue;j=Le(O.getBody(),q.getStart());const et=/[^\s\u00a0\u00ad\u200b\ufeff]/;if(ke&&ee>0&&ee{Vu(t,(O,P)=>{const M=P?O:ef(u,O,i);E(u,M,!1)})},Bt),t.nodeChanged()),oy(t.formatter,o).each(O=>{Se((P=>gt((M=>{const j=M.getSelectedBlocks(),q=M.getRng();if(M.isCollapsed())return[];if(j.length===1)return Ux(q,j[0])&&i2(q,j[0])?j:[];{const K=Zo(j).filter(ke=>Ux(q,ke)).toArray(),re=Gn(j).filter(ke=>i2(q,ke)).toArray(),ee=j.slice(1,-1);return K.concat(ee).concat(re)}})(P),kh(P.dom)))(t.selection),P=>y2(u,P,O,n))});((O,P)=>{ln(ty,O)&&Se(ty[O],M=>{M(P)})})(o,t)}$b(t,o,a,n)},Q4=(t,o,n,a)=>{(a||t.selection.isEditable())&&J4(t,o,n,a)},v2=t=>ln(t,"vars"),df=t=>t.selection.getStart(),x2=(t,o,n,a,i)=>We(o,c=>{const d=t.formatter.matchNode(c,n,i??{},a);return!fo(d)},c=>!!t2(t,c,n)||!a&&Ze(t.formatter.matchNode(c,n,i,!0))),w2=(t,o)=>{const n=o??df(t);return gt(Wv(t.dom,n),a=>an(a)&&!El(a))},k2=(t,o,n)=>{const a=w2(t,o);Ft(n,(i,c)=>{const d=u=>{const f=x2(t,a,c,u.similar,v2(u)?u.vars:void 0),y=f.isSome();if(u.state.get()!==y){u.state.set(y);const v=f.getOr(o);v2(u)?u.callback(y,{node:v,format:c,parents:a}):Se(u.callbacks,k=>k(y,{node:v,format:c,parents:a}))}};Se([i.withSimilar,i.withoutSimilar],d),Se(i.withVars,d)})},s0=go.explode,_2=()=>{const t={};return{addFilter:(o,n)=>{Se(s0(o),a=>{ln(t,a)||(t[a]={name:a,callbacks:[]}),t[a].callbacks.push(n)})},getFilters:()=>vr(t),removeFilter:(o,n)=>{Se(s0(o),a=>{if(ln(t,a))if(Ze(n)){const i=t[a],c=gt(i.callbacks,d=>d!==n);c.length>0?i.callbacks=c:delete t[a]}else delete t[a]})}}},eE=(t,o,n)=>{var a;const i=Xn();o.convert_fonts_to_spans&&((c,d,u)=>{c.addNodeFilter("font",f=>{Se(f,y=>{const v=d.parse(y.attr("style")),k=y.attr("color"),E=y.attr("face"),B=y.attr("size");k&&(v.color=k),E&&(v["font-family"]=E),B&&Vr(B).each(O=>{v["font-size"]=u[O-1]}),y.name="span",y.attr("style",d.serialize(v)),((O,P)=>{Se(["color","face","size"],M=>{O.attr(M,null)})})(y)})})})(t,i,go.explode((a=o.font_size_legacy_values)!==null&&a!==void 0?a:"")),((c,d,u)=>{c.addNodeFilter("strike",f=>{const y=d.type!=="html4";Se(f,v=>{if(y)v.name="s";else{const k=u.parse(v.attr("style"));k["text-decoration"]="line-through",v.name="span",v.attr("style",u.serialize(k))}})})})(t,n,i)},tE=(t,o,n)=>{o.addNodeFilter("br",(a,i,c)=>{const d=go.extend({},n.getBlockElements()),u=n.getNonEmptyElements(),f=n.getWhitespaceElements();d.body=1;const y=v=>v.name in d||Pm(n,v);for(let v=0,k=a.length;v{const[o,...n]=t.split(","),a=n.join(","),i=/data:([^/]+\/[^;]+)(;.+)?/.exec(o);if(i){const c=i[2]===";base64",d=c?(u=>{const f=/([a-z0-9+\/=\s]+)/i.exec(u);return f?f[1]:""})(a):decodeURIComponent(a);return V.some({type:i[1],data:d,base64Encoded:c})}return V.none()},C2=(t,o,n=!0)=>{let a=o;if(n)try{a=atob(o)}catch{return V.none()}const i=new Uint8Array(a.length);for(let c=0;cnew Promise((o,n)=>{const a=new FileReader;a.onloadend=()=>{o(a.result)},a.onerror=()=>{var i;n((i=a.error)===null||i===void 0?void 0:i.message)},a.readAsDataURL(t)});let oE=0;const Kx=(t,o,n)=>ay(t).bind(({data:a,type:i,base64Encoded:c})=>{if(o&&!c)return V.none();{const d=c?a:btoa(a);return n(d,i)}}),S2=(t,o,n)=>{const a=t.create("blobid"+oE++,o,n);return t.add(a),a},i0=(t,o,n=!1)=>Kx(o,n,(a,i)=>V.from(t.getByData(a,i)).orThunk(()=>C2(i,a).map(c=>S2(t,c,a)))),Sm=(t,o)=>gr(t,`${o}/`),ZA=(t,o)=>{const n=t.schema;o.remove_trailing_brs&&tE(o,t,n),t.addAttributeFilter("href",i=>{let c=i.length;const d=u=>{const f=u?go.trim(u):"";return/\b(noopener)\b/g.test(f)?f:(y=>y.split(" ").filter(v=>v.length>0).concat(["noopener"]).sort().join(" "))(f)};if(!o.allow_unsafe_link_target)for(;c--;){const u=i[c];u.name==="a"&&u.attr("target")==="_blank"&&u.attr("rel",d(u.attr("rel")))}}),o.allow_html_in_named_anchor||t.addAttributeFilter("id,name",i=>{let c,d,u,f,y=i.length;for(;y--;)if(f=i[y],f.name==="a"&&f.firstChild&&!f.attr("href"))for(u=f.parent,c=f.lastChild;c&&u;)d=c.prev,u.insert(c,f),c=d}),o.fix_list_elements&&t.addNodeFilter("ul,ol",i=>{let c,d,u=i.length;for(;u--;)if(c=i[u],d=c.parent,d&&(d.name==="ul"||d.name==="ol"))if(c.prev&&c.prev.name==="li")c.prev.append(c);else{const f=new pc("li",1);f.attr("style","list-style-type: none"),c.wrap(f)}});const a=n.getValidClasses();o.validate&&a&&t.addAttributeFilter("class",i=>{var c;let d=i.length;for(;d--;){const u=i[d],f=(c=u.attr("class"))!==null&&c!==void 0?c:"",y=go.explode(f," ");let v="";for(let k=0;k{const{blob_cache:d}=c;if(d){const u=f=>{const y=f.attr("src");(v=>v.attr("src")===Rn.transparentSrc||Ze(v.attr("data-mce-placeholder")))(f)||(v=>Ze(v.attr("data-mce-bogus")))(f)||me(y)||i0(d,y,!0).each(v=>{f.attr("src",v.blobUri())})};i.addAttributeFilter("src",f=>Se(f,u))}})(t,o),o.convert_unsafe_embeds&&t.addNodeFilter("object,embed",i=>Se(i,c=>{c.replace(((d,u,f,y,v)=>{let k;k=fo(d)?"iframe":Sm(d,"image")?"img":Sm(d,"video")?"video":Sm(d,"audio")?"audio":"iframe";const E=new pc(k,1);return E.attr(k==="audio"?{src:u}:{src:u,width:f,height:y}),k!=="audio"&&k!=="video"||E.attr("controls",""),k==="iframe"&&v&&E.attr("sandbox",""),E})(c.attr("type"),c.name==="object"?c.attr("data"):c.attr("src"),c.attr("width"),c.attr("height"),o.sandbox_iframes))})),o.sandbox_iframes&&t.addNodeFilter("iframe",i=>Se(i,c=>c.attr("sandbox","")))},{entries:Yx,setPrototypeOf:ci,isFrozen:E2,getPrototypeOf:T2,getOwnPropertyDescriptor:Wg}=Object;let{freeze:$c,seal:qu,create:l0}=Object,{apply:z2,construct:A2}=typeof Reflect<"u"&&Reflect;z2||(z2=function(t,o,n){return t.apply(o,n)}),$c||($c=function(t){return t}),qu||(qu=function(t){return t}),A2||(A2=function(t,o){return new t(...o)});const sy=ll(Array.prototype.forEach),qA=ll(Array.prototype.pop),Em=ll(Array.prototype.push),Xx=ll(String.prototype.toLowerCase),Xm=ll(String.prototype.toString),pu=ll(String.prototype.match),Id=ll(String.prototype.replace),O2=ll(String.prototype.indexOf),WA=ll(String.prototype.trim),fu=ll(RegExp.prototype.test),uf=(nE=TypeError,function(){for(var t=arguments.length,o=new Array(t),n=0;n1?n-1:0),i=1;i/gm),KA=qu(/\${[\w\W]*}/gm),YA=qu(/^data-[\-\w.\u00B7-\uFFFF]/),XA=qu(/^aria-[\-\w]+$/),lE=qu(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),JA=qu(/^(?:\w+script|data):/i),QA=qu(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),cE=qu(/^html$/i);var dE=Object.freeze({__proto__:null,MUSTACHE_EXPR:iE,ERB_EXPR:GA,TMPLIT_EXPR:KA,DATA_ATTR:YA,ARIA_ATTR:XA,IS_ALLOWED_URI:lE,IS_SCRIPT_OR_DATA:JA,ATTR_WHITESPACE:QA,DOCTYPE_NAME:cE});const eO=()=>typeof window>"u"?null:window;var uE=function t(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:eO();const n=At=>t(At);if(n.version="3.0.5",n.removed=[],!o||!o.document||o.document.nodeType!==9)return n.isSupported=!1,n;const a=o.document,i=a.currentScript;let{document:c}=o;const{DocumentFragment:d,HTMLTemplateElement:u,Node:f,Element:y,NodeFilter:v,NamedNodeMap:k=o.NamedNodeMap||o.MozNamedAttrMap,HTMLFormElement:E,DOMParser:B,trustedTypes:O}=o,P=y.prototype,M=iy(P,"cloneNode"),j=iy(P,"nextSibling"),q=iy(P,"childNodes"),K=iy(P,"parentNode");if(typeof u=="function"){const At=c.createElement("template");At.content&&At.content.ownerDocument&&(c=At.content.ownerDocument)}let re,ee="";const{implementation:ke,createNodeIterator:et,createDocumentFragment:st,getElementsByTagName:mt}=c,{importNode:kt}=a;let Ve={};n.isSupported=typeof Yx=="function"&&typeof K=="function"&&ke&&ke.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:ot,ERB_EXPR:pt,TMPLIT_EXPR:Jt,DATA_ATTR:en,ARIA_ATTR:Fo,IS_SCRIPT_OR_DATA:Nn,ATTR_WHITESPACE:An}=dE;let{IS_ALLOWED_URI:Jn}=dE,jn=null;const cn=Na({},[...Jx,...Gg,...c0,...N2,...aE]);let vn=null;const cr=Na({},[...M2,...u0,...sE,...m0]);let Qe=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),nt=null,so=null,mo=!0,yo=!0,xn=!1,Wn=!0,hr=!1,tr=!1,Qa=!1,En=!1,Ur=!1,Zr=!1,Cr=!1,Kr=!0,cl=!1,Vn=!0,qr=!1,Fs={},dl=null;const Dl=Na({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let yc=null;const md=Na({},["audio","video","img","source","image","track"]);let Rl=null;const gd=Na({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ul="http://www.w3.org/1998/Math/MathML",ng="http://www.w3.org/2000/svg",wu="http://www.w3.org/1999/xhtml";let tm=wu,Nf=!1,Yh=null;const Xh=Na({},[ul,ng,wu],Xm);let qc;const jk=["application/xhtml+xml","text/html"];let Ks,Dm=null;const Mf=c.createElement("form"),Zy=function(At){return At instanceof RegExp||At instanceof Function},v3=function(At){if(!Dm||Dm!==At){if(At&&typeof At=="object"||(At={}),At=Sh(At),qc=qc=jk.indexOf(At.PARSER_MEDIA_TYPE)===-1?"text/html":At.PARSER_MEDIA_TYPE,Ks=qc==="application/xhtml+xml"?Xm:Xx,jn="ALLOWED_TAGS"in At?Na({},At.ALLOWED_TAGS,Ks):cn,vn="ALLOWED_ATTR"in At?Na({},At.ALLOWED_ATTR,Ks):cr,Yh="ALLOWED_NAMESPACES"in At?Na({},At.ALLOWED_NAMESPACES,Xm):Xh,Rl="ADD_URI_SAFE_ATTR"in At?Na(Sh(gd),At.ADD_URI_SAFE_ATTR,Ks):gd,yc="ADD_DATA_URI_TAGS"in At?Na(Sh(md),At.ADD_DATA_URI_TAGS,Ks):md,dl="FORBID_CONTENTS"in At?Na({},At.FORBID_CONTENTS,Ks):Dl,nt="FORBID_TAGS"in At?Na({},At.FORBID_TAGS,Ks):{},so="FORBID_ATTR"in At?Na({},At.FORBID_ATTR,Ks):{},Fs="USE_PROFILES"in At&&At.USE_PROFILES,mo=At.ALLOW_ARIA_ATTR!==!1,yo=At.ALLOW_DATA_ATTR!==!1,xn=At.ALLOW_UNKNOWN_PROTOCOLS||!1,Wn=At.ALLOW_SELF_CLOSE_IN_ATTR!==!1,hr=At.SAFE_FOR_TEMPLATES||!1,tr=At.WHOLE_DOCUMENT||!1,Ur=At.RETURN_DOM||!1,Zr=At.RETURN_DOM_FRAGMENT||!1,Cr=At.RETURN_TRUSTED_TYPE||!1,En=At.FORCE_BODY||!1,Kr=At.SANITIZE_DOM!==!1,cl=At.SANITIZE_NAMED_PROPS||!1,Vn=At.KEEP_CONTENT!==!1,qr=At.IN_PLACE||!1,Jn=At.ALLOWED_URI_REGEXP||lE,tm=At.NAMESPACE||wu,Qe=At.CUSTOM_ELEMENT_HANDLING||{},At.CUSTOM_ELEMENT_HANDLING&&Zy(At.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Qe.tagNameCheck=At.CUSTOM_ELEMENT_HANDLING.tagNameCheck),At.CUSTOM_ELEMENT_HANDLING&&Zy(At.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Qe.attributeNameCheck=At.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),At.CUSTOM_ELEMENT_HANDLING&&typeof At.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Qe.allowCustomizedBuiltInElements=At.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),hr&&(yo=!1),Zr&&(Ur=!0),Fs&&(jn=Na({},[...aE]),vn=[],Fs.html===!0&&(Na(jn,Jx),Na(vn,M2)),Fs.svg===!0&&(Na(jn,Gg),Na(vn,u0),Na(vn,m0)),Fs.svgFilters===!0&&(Na(jn,c0),Na(vn,u0),Na(vn,m0)),Fs.mathMl===!0&&(Na(jn,N2),Na(vn,sE),Na(vn,m0))),At.ADD_TAGS&&(jn===cn&&(jn=Sh(jn)),Na(jn,At.ADD_TAGS,Ks)),At.ADD_ATTR&&(vn===cr&&(vn=Sh(vn)),Na(vn,At.ADD_ATTR,Ks)),At.ADD_URI_SAFE_ATTR&&Na(Rl,At.ADD_URI_SAFE_ATTR,Ks),At.FORBID_CONTENTS&&(dl===Dl&&(dl=Sh(dl)),Na(dl,At.FORBID_CONTENTS,Ks)),Vn&&(jn["#text"]=!0),tr&&Na(jn,["html","head","body"]),jn.table&&(Na(jn,["tbody"]),delete nt.tbody),At.TRUSTED_TYPES_POLICY){if(typeof At.TRUSTED_TYPES_POLICY.createHTML!="function")throw uf('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof At.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw uf('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');re=At.TRUSTED_TYPES_POLICY,ee=re.createHTML("")}else re===void 0&&(re=function(On,nr){if(typeof On!="object"||typeof On.createPolicy!="function")return null;let $a=null;const es="data-tt-policy-suffix";nr&&nr.hasAttribute(es)&&($a=nr.getAttribute(es));const Ls="dompurify"+($a?"#"+$a:"");try{return On.createPolicy(Ls,{createHTML:xs=>xs,createScriptURL:xs=>xs})}catch{return console.warn("TrustedTypes policy "+Ls+" could not be created."),null}}(O,i)),re!==null&&typeof ee=="string"&&(ee=re.createHTML(""));$c&&$c(At),Dm=At}},x3=Na({},["mi","mo","mn","ms","mtext"]),qy=Na({},["foreignobject","desc","title","annotation-xml"]),uA=Na({},["title","style","font","a","script"]),Vk=Na({},Gg);Na(Vk,c0),Na(Vk,rE);const $k=Na({},N2);Na($k,d0);const Df=function(At){Em(n.removed,{element:At});try{At.parentNode.removeChild(At)}catch{At.remove()}},uv=function(At,On){try{Em(n.removed,{attribute:On.getAttributeNode(At),from:On})}catch{Em(n.removed,{attribute:null,from:On})}if(On.removeAttribute(At),At==="is"&&!vn[At])if(Ur||Zr)try{Df(On)}catch{}else try{On.setAttribute(At,"")}catch{}},mA=function(At){let On,nr;if(En)At=""+At;else{const Ls=pu(At,/^[\r\n\t ]+/);nr=Ls&&Ls[0]}qc==="application/xhtml+xml"&&tm===wu&&(At=''+At+"");const $a=re?re.createHTML(At):At;if(tm===wu)try{On=new B().parseFromString($a,qc)}catch{}if(!On||!On.documentElement){On=ke.createDocument(tm,"template",null);try{On.documentElement.innerHTML=Nf?ee:$a}catch{}}const es=On.body||On.documentElement;return At&&nr&&es.insertBefore(c.createTextNode(nr),es.childNodes[0]||null),tm===wu?mt.call(On,tr?"html":"body")[0]:tr?On.documentElement:es},gA=function(At){return et.call(At.ownerDocument||At,At,v.SHOW_ELEMENT|v.SHOW_COMMENT|v.SHOW_TEXT,null,!1)},Uk=function(At){return typeof f=="object"?At instanceof f:At&&typeof At=="object"&&typeof At.nodeType=="number"&&typeof At.nodeName=="string"},rg=function(At,On,nr){Ve[At]&&sy(Ve[At],$a=>{$a.call(n,On,nr,Dm)})},Zk=function(At){let On;if(rg("beforeSanitizeElements",At,null),(nr=At)instanceof E&&(typeof nr.nodeName!="string"||typeof nr.textContent!="string"||typeof nr.removeChild!="function"||!(nr.attributes instanceof k)||typeof nr.removeAttribute!="function"||typeof nr.setAttribute!="function"||typeof nr.namespaceURI!="string"||typeof nr.insertBefore!="function"||typeof nr.hasChildNodes!="function"))return Df(At),!0;var nr;const $a=Ks(At.nodeName);if(rg("uponSanitizeElement",At,{tagName:$a,allowedTags:jn}),At.hasChildNodes()&&!Uk(At.firstElementChild)&&(!Uk(At.content)||!Uk(At.content.firstElementChild))&&fu(/<[/\w]/g,At.innerHTML)&&fu(/<[/\w]/g,At.textContent))return Df(At),!0;if(!jn[$a]||nt[$a]){if(!nt[$a]&&k3($a)&&(Qe.tagNameCheck instanceof RegExp&&fu(Qe.tagNameCheck,$a)||Qe.tagNameCheck instanceof Function&&Qe.tagNameCheck($a)))return!1;if(Vn&&!dl[$a]){const es=K(At)||At.parentNode,Ls=q(At)||At.childNodes;if(Ls&&es)for(let xs=Ls.length-1;xs>=0;--xs)es.insertBefore(M(Ls[xs],!0),j(At))}return Df(At),!0}return At instanceof y&&!function(es){let Ls=K(es);Ls&&Ls.tagName||(Ls={namespaceURI:tm,tagName:"template"});const xs=Xx(es.tagName),xi=Xx(Ls.tagName);return!!Yh[es.namespaceURI]&&(es.namespaceURI===ng?Ls.namespaceURI===wu?xs==="svg":Ls.namespaceURI===ul?xs==="svg"&&(xi==="annotation-xml"||x3[xi]):!!Vk[xs]:es.namespaceURI===ul?Ls.namespaceURI===wu?xs==="math":Ls.namespaceURI===ng?xs==="math"&&qy[xi]:!!$k[xs]:es.namespaceURI===wu?!(Ls.namespaceURI===ng&&!qy[xi])&&!(Ls.namespaceURI===ul&&!x3[xi])&&!$k[xs]&&(uA[xs]||!Vk[xs]):!(qc!=="application/xhtml+xml"||!Yh[es.namespaceURI]))}(At)?(Df(At),!0):$a!=="noscript"&&$a!=="noembed"&&$a!=="noframes"||!fu(/<\/no(script|embed|frames)/i,At.innerHTML)?(hr&&At.nodeType===3&&(On=At.textContent,On=Id(On,ot," "),On=Id(On,pt," "),On=Id(On,Jt," "),At.textContent!==On&&(Em(n.removed,{element:At.cloneNode()}),At.textContent=On)),rg("afterSanitizeElements",At,null),!1):(Df(At),!0)},w3=function(At,On,nr){if(Kr&&(On==="id"||On==="name")&&(nr in c||nr in Mf))return!1;if(!(yo&&!so[On]&&fu(en,On))){if(!(mo&&fu(Fo,On))){if(!vn[On]||so[On]){if(!(k3(At)&&(Qe.tagNameCheck instanceof RegExp&&fu(Qe.tagNameCheck,At)||Qe.tagNameCheck instanceof Function&&Qe.tagNameCheck(At))&&(Qe.attributeNameCheck instanceof RegExp&&fu(Qe.attributeNameCheck,On)||Qe.attributeNameCheck instanceof Function&&Qe.attributeNameCheck(On))||On==="is"&&Qe.allowCustomizedBuiltInElements&&(Qe.tagNameCheck instanceof RegExp&&fu(Qe.tagNameCheck,nr)||Qe.tagNameCheck instanceof Function&&Qe.tagNameCheck(nr))))return!1}else if(!Rl[On]){if(!fu(Jn,Id(nr,An,""))){if((On!=="src"&&On!=="xlink:href"&&On!=="href"||At==="script"||O2(nr,"data:")!==0||!yc[At])&&!(xn&&!fu(Nn,Id(nr,An,"")))){if(nr)return!1}}}}}return!0},k3=function(At){return At.indexOf("-")>0},_3=function(At){let On,nr,$a,es;rg("beforeSanitizeAttributes",At,null);const{attributes:Ls}=At;if(!Ls)return;const xs={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:vn};for(es=Ls.length;es--;){On=Ls[es];const{name:xi,namespaceURI:Jh}=On;nr=xi==="value"?On.value:WA(On.value);const C3=nr;if($a=Ks(xi),xs.attrName=$a,xs.attrValue=nr,xs.keepAttr=!0,xs.forceKeepAttr=void 0,rg("uponSanitizeAttribute",At,xs),nr=xs.attrValue,xs.forceKeepAttr)continue;if(!xs.keepAttr){uv(xi,At);continue}if(!Wn&&fu(/\/>/i,nr)){uv(xi,At);continue}hr&&(nr=Id(nr,ot," "),nr=Id(nr,pt," "),nr=Id(nr,Jt," "));const mv=Ks(At.nodeName);if(w3(mv,$a,nr)){if(!cl||$a!=="id"&&$a!=="name"||(uv(xi,At),nr="user-content-"+nr),re&&typeof O=="object"&&typeof O.getAttributeType=="function"&&!Jh)switch(O.getAttributeType(mv,$a)){case"TrustedHTML":nr=re.createHTML(nr);break;case"TrustedScriptURL":nr=re.createScriptURL(nr)}if(nr!==C3)try{Jh?At.setAttributeNS(Jh,xi,nr):At.setAttribute(xi,nr)}catch{uv(xi,At)}}else uv(xi,At)}rg("afterSanitizeAttributes",At,null)},pA=function At(On){let nr;const $a=gA(On);for(rg("beforeSanitizeShadowDOM",On,null);nr=$a.nextNode();)rg("uponSanitizeShadowNode",nr,null),Zk(nr)||(nr.content instanceof d&&At(nr.content),_3(nr));rg("afterSanitizeShadowDOM",On,null)};return n.sanitize=function(At){let On,nr,$a,es,Ls=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(Nf=!At,Nf&&(At=""),typeof At!="string"&&!Uk(At)){if(typeof At.toString!="function")throw uf("toString is not a function");if(typeof(At=At.toString())!="string")throw uf("dirty is not a string, aborting")}if(!n.isSupported)return At;if(Qa||v3(Ls),n.removed=[],typeof At=="string"&&(qr=!1),qr){if(At.nodeName){const Jh=Ks(At.nodeName);if(!jn[Jh]||nt[Jh])throw uf("root node is forbidden and cannot be sanitized in-place")}}else if(At instanceof f)On=mA(""),nr=On.ownerDocument.importNode(At,!0),nr.nodeType===1&&nr.nodeName==="BODY"||nr.nodeName==="HTML"?On=nr:On.appendChild(nr);else{if(!Ur&&!hr&&!tr&&At.indexOf("<")===-1)return re&&Cr?re.createHTML(At):At;if(On=mA(At),!On)return Ur?null:Cr?ee:""}On&&En&&Df(On.firstChild);const xs=gA(qr?At:On);for(;$a=xs.nextNode();)Zk($a)||($a.content instanceof d&&pA($a.content),_3($a));if(qr)return At;if(Ur){if(Zr)for(es=st.call(On.ownerDocument);On.firstChild;)es.appendChild(On.firstChild);else es=On;return(vn.shadowroot||vn.shadowrootmode)&&(es=kt.call(a,es,!0)),es}let xi=tr?On.outerHTML:On.innerHTML;return tr&&jn["!doctype"]&&On.ownerDocument&&On.ownerDocument.doctype&&On.ownerDocument.doctype.name&&fu(cE,On.ownerDocument.doctype.name)&&(xi=" +`+xi),hr&&(xi=Id(xi,ot," "),xi=Id(xi,pt," "),xi=Id(xi,Jt," ")),re&&Cr?re.createHTML(xi):xi},n.setConfig=function(At){v3(At),Qa=!0},n.clearConfig=function(){Dm=null,Qa=!1},n.isValidAttribute=function(At,On,nr){Dm||v3({});const $a=Ks(At),es=Ks(On);return w3($a,es,nr)},n.addHook=function(At,On){typeof On=="function"&&(Ve[At]=Ve[At]||[],Em(Ve[At],On))},n.removeHook=function(At){if(Ve[At])return qA(Ve[At])},n.removeHooks=function(At){Ve[At]&&(Ve[At]=[])},n.removeAllHooks=function(){Ve={}},n}();const D2=go.each,tO=go.trim,ly=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],oO={ftp:21,http:80,https:443,mailto:25},nO=["img","video"],R2=(t,o,n)=>{const a=(i=>{try{return decodeURIComponent(i)}catch{return unescape(i)}})(o).replace(/\s/g,"");return!t.allow_script_urls&&(!!/((java|vb)script|mhtml):/i.test(a)||!t.allow_html_data_urls&&(/^data:image\//i.test(a)?((i,c)=>Ze(i)?!i:!Ze(c)||!lo(nO,c))(t.allow_svg_data_urls,n)&&/^data:image\/svg\+xml/i.test(a):/^data:/i.test(a)))};class Wu{static parseDataUri(o){let n;const a=decodeURIComponent(o).split(","),i=/data:([^;]+)/.exec(a[0]);return i&&(n=i[1]),{type:n,data:a[1]}}static isDomSafe(o,n,a={}){if(a.allow_script_urls)return!0;{const i=Sc.decode(o).replace(/[\s\u0000-\u001F]+/g,"");return!R2(a,i,n)}}static getDocumentBaseUrl(o){var n;let a;return a=o.protocol.indexOf("http")!==0&&o.protocol!=="file:"?(n=o.href)!==null&&n!==void 0?n:"":o.protocol+"//"+o.host+o.pathname,/^[^:]+:\/\/\/?[^\/]+\//.test(a)&&(a=a.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(a)||(a+="/")),a}constructor(o,n={}){this.path="",this.directory="",o=tO(o),this.settings=n;const a=n.base_uri,i=this;if(/^([\w\-]+):([^\/]{2})/i.test(o)||/^\s*#/.test(o))return void(i.source=o);const c=o.indexOf("//")===0;if(o.indexOf("/")!==0||c||(o=(a&&a.protocol||"http")+"://mce_host"+o),!/^[\w\-]*:?\/\//.test(o)){const u=a?a.path:new Wu(document.location.href).directory;if((a==null?void 0:a.protocol)==="")o="//mce_host"+i.toAbsPath(u,o);else{const f=/([^#?]*)([#?]?.*)/.exec(o);f&&(o=(a&&a.protocol||"http")+"://mce_host"+i.toAbsPath(u,f[1])+f[2])}}o=o.replace(/@@/g,"(mce_at)");const d=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*):?([^:@\/]*))?@)?(\[[a-zA-Z0-9:.%]+\]|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(o);d&&D2(ly,(u,f)=>{let y=d[f];y&&(y=y.replace(/\(mce_at\)/g,"@@")),i[u]=y}),a&&(i.protocol||(i.protocol=a.protocol),i.userInfo||(i.userInfo=a.userInfo),i.port||i.host!=="mce_host"||(i.port=a.port),i.host&&i.host!=="mce_host"||(i.host=a.host),i.source=""),c&&(i.protocol="")}setPath(o){const n=/^(.*?)\/?(\w+)?$/.exec(o);n&&(this.path=n[0],this.directory=n[1],this.file=n[2]),this.source="",this.getURI()}toRelative(o){if(o==="./")return o;const n=new Wu(o,{base_uri:this});if(n.host!=="mce_host"&&this.host!==n.host&&n.host||this.port!==n.port||this.protocol!==n.protocol&&n.protocol!=="")return n.getURI();const a=this.getURI(),i=n.getURI();if(a===i||a.charAt(a.length-1)==="/"&&a.substr(0,a.length-1)===i)return a;let c=this.toRelPath(this.path,n.path);return n.query&&(c+="?"+n.query),n.anchor&&(c+="#"+n.anchor),c}toAbsolute(o,n){const a=new Wu(o,{base_uri:this});return a.getURI(n&&this.isSameOrigin(a))}isSameOrigin(o){if(this.host==o.host&&this.protocol==o.protocol){if(this.port==o.port)return!0;const n=this.protocol?oO[this.protocol]:null;if(n&&(this.port||n)==(o.port||n))return!0}return!1}toRelPath(o,n){let a,i,c=0,d="";const u=o.substring(0,o.lastIndexOf("/")).split("/"),f=n.split("/");if(u.length>=f.length){for(a=0,i=u.length;a=f.length||u[a]!==f[a]){c=a+1;break}}if(u.length=u.length||u[a]!==f[a]){c=a+1;break}}if(c===1)return n;for(a=0,i=u.length-(c-1);a{k&&u.push(k)});const f=[];for(let k=d.length-1;k>=0;k--)d[k].length!==0&&d[k]!=="."&&(d[k]!==".."?a>0?a--:f.push(d[k]):a++);const y=u.length-a;let v;return v=y<=0?Ge(f).join("/"):u.slice(0,y).join("/")+"/"+Ge(f).join("/"),v.indexOf("/")!==0&&(v="/"+v),i&&v.lastIndexOf("/")!==v.length-1&&(v+=i),v}getURI(o=!1){let n;return this.source&&!o||(n="",o||(this.protocol?n+=this.protocol+"://":n+="//",this.userInfo&&(n+=this.userInfo+"@"),this.host&&(n+=this.host),this.port&&(n+=":"+this.port)),this.path&&(n+=this.path),this.query&&(n+="?"+this.query),this.anchor&&(n+="#"+this.anchor),this.source=n),this.source}}const rO=go.makeMap("src,href,data,background,action,formaction,poster,xlink:href"),B2="data-mce-type";let mE=0;const gE=(t,o,n,a,i)=>{var c,d,u,f;const y=o.validate,v=n.getSpecialElements();t.nodeType===8&&!o.allow_conditional_comments&&/^\[if/i.test((c=t.nodeValue)!==null&&c!==void 0?c:"")&&(t.nodeValue=" "+t.nodeValue);const k=(d=i==null?void 0:i.tagName)!==null&&d!==void 0?d:t.nodeName.toLowerCase();if(a!=="html"&&n.isValid(a))return void(Ze(i)&&(i.allowedTags[k]=!0));if(t.nodeType!==1||k==="body")return;const E=je(t),B=Zn(E,B2),O=bt(E,"data-mce-bogus");if(!B&&Ue(O))return void(O==="all"?Ea(E):_l(E));const P=n.getElementRule(k);if(!y||P){if(Ze(i)&&(i.allowedTags[k]=!0),y&&P&&!B){if(Se((u=P.attributesForced)!==null&&u!==void 0?u:[],M=>{Q(E,M.name,M.value==="{$uid}"?"mce_"+mE++:M.value)}),Se((f=P.attributesDefault)!==null&&f!==void 0?f:[],M=>{Zn(E,M.name)||Q(E,M.name,M.value==="{$uid}"?"mce_"+mE++:M.value)}),P.attributesRequired&&!zo(P.attributesRequired,M=>Zn(E,M))||P.removeEmptyAttrs&&(M=>{const j=M.dom.attributes;return j==null||j.length===0})(E))return void _l(E);P.outputName&&P.outputName!==k&&((M,j)=>{const q=((re,ee)=>{const ke=_s(ee),et=oe(re);return Ee(ke,et),ke})(M,j);Da(M,q);const K=Lt(M);dc(q,K),Ea(M)})(E,P.outputName)}}else ln(v,k)?Ea(E):_l(E)},pE=(t,o,n,a,i,c)=>n!=="html"&&!Sd(a)||!(i in rO&&R2(t,c,a))&&(!t.validate||o.isValid(a,i)||gr(i,"data-")||gr(i,"aria-")),Qx=(t,o)=>t.hasAttribute(B2)&&(o==="id"||o==="class"||o==="style"),cy=(t,o)=>t in o.getBoolAttrs(),fE=(t,o,n,a)=>{const{attributes:i}=t;for(let c=i.length-1;c>=0;c--){const d=i[c],u=d.name,f=d.value;pE(o,n,a,t.tagName.toLowerCase(),u,f)||Qx(t,u)?cy(u,n)&&t.setAttribute(u,u):t.removeAttribute(u)}},g0=(t,o,n)=>{const a=uE();return a.addHook("uponSanitizeElement",(i,c)=>{gE(i,t,o,n.track(i),c)}),a.addHook("uponSanitizeAttribute",(i,c)=>{((d,u,f,y,v)=>{const k=d.tagName.toLowerCase(),{attrName:E,attrValue:B}=v;v.keepAttr=pE(u,f,y,k,E,B),v.keepAttr?(v.allowedAttributes[E]=!0,cy(E,f)&&(v.attrValue=E),u.allow_svg_data_urls&&gr(B,"data:image/svg+xml")&&(v.forceKeepAttr=!0)):Qx(d,E)&&(v.forceKeepAttr=!0)})(i,t,o,n.current(),c)}),a},p0=t=>{const o=["type","href","role","arcrole","title","show","actuate","label","from","to"].map(a=>`xlink:${a}`),n={IN_PLACE:!0,USE_PROFILES:{html:!0,svg:!0,svgFilters:!0},ALLOWED_ATTR:o};return uE().sanitize(t,n),t.innerHTML},F2=go.makeMap,hE=go.extend,bE=(t,o,n,a)=>{const i=t.name,c=i in n&&i!=="title"&&i!=="textarea",d=o.childNodes;for(let u=0,f=d.length;u{const n=_2(),a=_2(),i={validate:!0,root_name:"body",sanitize:!0,...t},c=new DOMParser,d=((P,M)=>{const j=(()=>{let q=[];const K=()=>q[q.length-1];return{track:re=>{ig(re)&&q.push(re);let ee=K();return ee&&!ee.contains(re)&&(q.pop(),ee=K()),Lm(ee)},current:()=>Lm(K()),reset:()=>{q=[]}}})();if(P.sanitize){const q=g0(P,M,j);return{sanitizeHtmlElement:(re,ee)=>{q.sanitize(re,((ke,et)=>{const st={IN_PLACE:!0,ALLOW_UNKNOWN_PROTOCOLS:!0,ALLOWED_TAGS:["#comment","#cdata-section","body"],ALLOWED_ATTR:[]};return st.PARSER_MEDIA_TYPE=et,ke.allow_script_urls?st.ALLOWED_URI_REGEXP=/.*/:ke.allow_html_data_urls&&(st.ALLOWED_URI_REGEXP=/^(?!(\w+script|mhtml):)/i),st})(P,ee)),q.removed=[],j.reset()},sanitizeNamespaceElement:p0}}return{sanitizeHtmlElement:(q,K)=>{const re=document.createNodeIterator(q,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_COMMENT|NodeFilter.SHOW_TEXT);let ee;for(;ee=re.nextNode();){const ke=j.track(ee);gE(ee,P,M,ke),an(ee)&&fE(ee,P,M,ke)}j.reset()},sanitizeNamespaceElement:$t}})(i,o),u=n.addFilter,f=n.getFilters,y=n.removeFilter,v=a.addFilter,k=a.getFilters,E=a.removeFilter,B=(P,M)=>{const j=Ue(M.attr(B2)),q=M.type===1&&!ln(P,M.name)&&!Pm(o,M)&&!Sd(M.name);return M.type===3||q&&!j},O={schema:o,addAttributeFilter:v,getAttributeFilters:k,removeAttributeFilter:E,addNodeFilter:u,getNodeFilters:f,removeNodeFilter:y,parse:(P,M={})=>{var j;const q=i.validate,K=(j=M.context)!==null&&j!==void 0?j:i.root_name,re=((pt,Jt,en="html")=>{const Fo=en==="xhtml"?"application/xhtml+xml":"text/html",Nn=ln(o.getSpecialElements(),Jt.toLowerCase()),An=Nn?`<${Jt}>${pt}`:pt,Jn=en==="xhtml"?`${An}`:`${An}`,jn=c.parseFromString(Jn,Fo).body;return d.sanitizeHtmlElement(jn,Fo),Nn?jn.firstChild:jn})(P,K,M.format);xp(o,re);const ee=new pc(K,11);bE(ee,re,o.getSpecialElements(),d.sanitizeNamespaceElement),re.innerHTML="";const[ke,et]=((pt,Jt,en,Fo)=>{const Nn=en.validate,An=Jt.getNonEmptyElements(),Jn=Jt.getWhitespaceElements(),jn=hE(F2("script,style,head,html,body,title,meta,param"),Jt.getBlockElements()),cn=gg(Jt),vn=/[ \t\r\n]+/g,cr=/^[ \t\r\n]+/,Qe=/[ \t\r\n]+$/,nt=yo=>{let xn=yo.parent;for(;Ze(xn);){if(xn.name in Jn)return!0;xn=xn.parent}return!1},so=yo=>yo.name in jn||Pm(Jt,yo)||Sd(yo.name)&&yo.parent===pt,mo=(yo,xn)=>{const Wn=xn?yo.prev:yo.next;return!Ze(Wn)&&!me(yo.parent)&&so(yo.parent)&&(yo.parent!==pt||Fo.isRootContent===!0)};return[yo=>{var xn;if(yo.type===3&&!nt(yo)){let Wn=(xn=yo.value)!==null&&xn!==void 0?xn:"";Wn=Wn.replace(vn," "),(((hr,tr)=>Ze(hr)&&(tr(hr)||hr.name==="br"))(yo.prev,so)||mo(yo,!0))&&(Wn=Wn.replace(cr,"")),Wn.length===0?yo.remove():yo.value=Wn}},yo=>{var xn;if(yo.type===1){const Wn=Jt.getElementRule(yo.name);if(Nn&&Wn){const hr=vh(Jt,An,Jn,yo);Wn.paddInEmptyBlock&&hr&&(tr=>{let Qa=tr;for(;Ze(Qa);){if(Qa.name in cn)return vh(Jt,An,Jn,Qa);Qa=Qa.parent}return!1})(yo)?G1(en,Fo,so,yo):Wn.removeEmpty&&hr?so(yo)?yo.remove():yo.unwrap():Wn.paddEmpty&&(hr||(tr=>{var Qa;return K1(tr,"#text")&&((Qa=tr==null?void 0:tr.firstChild)===null||Qa===void 0?void 0:Qa.value)===ns})(yo))&&G1(en,Fo,so,yo)}}else if(yo.type===3&&!nt(yo)){let Wn=(xn=yo.value)!==null&&xn!==void 0?xn:"";(yo.next&&so(yo.next)||mo(yo,!1))&&(Wn=Wn.replace(Qe,"")),Wn.length===0?yo.remove():yo.value=Wn}}]})(ee,o,i,M),st=[],mt=q?pt=>((Jt,en)=>{Mx(o,Jt)&&en.push(Jt)})(pt,st):$t,kt={nodes:{},attributes:{}},Ve=pt=>Tx(f(),k(),pt,kt);if(((pt,Jt,en)=>{const Fo=[];for(let Nn=pt,An=Nn;Nn;An=Nn,Nn=Nn.walk()){const Jn=Nn;Se(Jt,jn=>jn(Jn)),me(Jn.parent)&&Jn!==pt?Nn=An:Fo.push(Jn)}for(let Nn=Fo.length-1;Nn>=0;Nn--){const An=Fo[Nn];Se(en,Jn=>Jn(An))}})(ee,[ke,Ve],[et,mt]),st.reverse(),q&&st.length>0)if(M.context){const{pass:pt,fail:Jt}=ct(st,en=>en.parent===ee);Nx(Jt,o,ee,Ve),M.invalid=pt.length>0}else Nx(st,o,ee,Ve);const ot=((pt,Jt)=>{var en;const Fo=(en=Jt.forced_root_block)!==null&&en!==void 0?en:pt.forced_root_block;return Fo===!1?"":Fo===!0?"p":Fo})(i,M);return ot&&(ee.name==="body"||M.isRootContent)&&((pt,Jt)=>{const en=hE(F2("script,style,head,html,body,title,meta,param"),o.getBlockElements()),Fo=/^[ \t\r\n]+/,Nn=/[ \t\r\n]+$/;let An=pt.firstChild,Jn=null;const jn=cn=>{var vn,cr;cn&&(An=cn.firstChild,An&&An.type===3&&(An.value=(vn=An.value)===null||vn===void 0?void 0:vn.replace(Fo,"")),An=cn.lastChild,An&&An.type===3&&(An.value=(cr=An.value)===null||cr===void 0?void 0:cr.replace(Nn,"")))};if(o.isValidChild(pt.name,Jt.toLowerCase())){for(;An;){const cn=An.next;B(en,An)?(Jn||(Jn=new pc(Jt,1),Jn.attr(i.forced_root_block_attrs),pt.insert(Jn,An)),Jn.append(An)):(jn(Jn),Jn=null),An=cn}jn(Jn)}})(ee,ot),M.invalid||zx(kt,M),ee}};return ZA(O,i),((P,M,j)=>{M.inline_styles&&eE(P,M,j)})(O,i,o),O},yE=(t,o,n)=>{const a=(c=>xh(c)?af({validate:!1}).serialize(c):c)(t),i=o(a);if(i.isDefaultPrevented())return i;if(xh(t)){if(i.content!==a){const c=dy({validate:!1,forced_root_block:!1,...n}).parse(i.content,{context:t.name});return{...i,content:c}}return{...i,content:t}}return i},L2=(t,o)=>{if(o.no_events)return $l.value(o);{const n=((a,i)=>a.dispatch("BeforeGetContent",i))(t,o);return n.isDefaultPrevented()?$l.error(I3(t,{content:"",...n}).content):$l.value(n)}},I2=(t,o,n)=>n.no_events?o:yE(o,i=>I3(t,{...n,content:i}),{sanitize:bm(t),sandbox_iframes:jp(t)}).content,P2=(t,o)=>{if(o.no_events)return $l.value(o);{const n=yE(o.content,a=>((i,c)=>i.dispatch("BeforeSetContent",c))(t,{...o,content:a}),{sanitize:bm(t),sandbox_iframes:jp(t)});return n.isDefaultPrevented()?(ph(t,n),$l.error(void 0)):$l.value(n)}},uy=(t,o,n)=>{n.no_events||ph(t,{...n,content:o})},ew=(t,o,n)=>({element:t,width:o,rows:n}),Wi=(t,o)=>({element:t,cells:o}),my=(t,o)=>({x:t,y:o}),H2=(t,o)=>wo(t,o).bind(Vr).getOr(1),j2=(t,o,n)=>{const a=t.rows;return!!(a[n]?a[n].cells:[])[o]},f0=t=>Oe(t,(o,n)=>n.cells.length>o?n.cells.length:o,0),Kg=(t,o)=>{const n=t.rows;for(let a=0;a{const c=[],d=t.rows;for(let u=n;u<=i;u++){const f=d[u].cells,y=o((o,n)=>{const a=Um(o.element),i=_s("tbody");return dc(i,n),os(a,i),a})(t,(o=>to(o.rows,n=>{const a=to(n.cells,c=>{const d=Hf(c);return U(d,"colspan"),U(d,"rowspan"),d}),i=Um(n.element);return dc(i,a),i}))(t)),sO=(t,o,n)=>{const a=je(o.commonAncestorContainer),i=$g(a,t),c=gt(i,f=>n.isWrapper(Pe(f))),d=((f,y)=>Fe(f,v=>Pe(v)==="li"&&ql(v,y)).fold(Ct([]),v=>(k=>Fe(k,E=>Pe(E)==="ul"||Pe(E)==="ol"))(f).map(k=>{const E=_s(Pe(k)),B=Rr(_u(k),(O,P)=>gr(P,"list-style"));return qd(E,B),[_s("li"),E]}).getOr([])))(i,o),u=c.concat(d.length?d:(f=>uc(f)?Gi(f).filter(hs).fold(Ct([]),y=>[f,y]):hs(f)?[f]:[])(a));return to(u,Um)},Eh=()=>Qv([]),gy=(t,o)=>((n,a)=>Ua(a,"table",Je(sa,n)))(t,o[0]).bind(n=>{const a=o[0],i=o[o.length-1],c=(d=>{const u=ew(Um(d),0,[]);return Se(wa(d,"tr"),(f,y)=>{Se(wa(f,"td,th"),(v,k)=>{((E,B,O,P,M)=>{const j=H2(M,"rowspan"),q=H2(M,"colspan"),K=E.rows;for(let re=O;re{for(;j2(E,B,O);)B++;return B})(u,k,y),y,f,v)})}),ew(u.element,f0(u.rows),u.rows)})(n);return((d,u,f)=>Kg(d,u).bind(y=>Kg(d,f).map(v=>((k,E,B)=>{const O=E.x,P=E.y,M=B.x,j=B.y,q=PQv([aO(d)]))}).getOrThunk(Eh),py=(t,o,n)=>{const a=Er(o,t);return a.length>0?gy(t,a):((i,c,d)=>c.length>0&&c[0].collapsed?Eh():((u,f,y)=>((v,k)=>{const E=Oe(k,(B,O)=>(os(O,B),O),v);return k.length>0?Qv([E]):E})(je(f.cloneContents()),sO(u,f,y)))(i,c[0],d))(t,o,n)},h0=(t,o)=>o>=0&&oqs(t.innerText),V2=t=>an(t)?t.outerHTML:ro(t)?Sc.encodeRaw(t.data,!1):ni(t)?"":"",vE=(t,o)=>(((n,a)=>{let i=0;Se(n,c=>{c[0]===0?i++:c[0]===1?(((d,u,f)=>{const y=(v=>{let k;const E=document.createElement("div"),B=document.createDocumentFragment();for(v&&(E.innerHTML=v);k=E.firstChild;)B.appendChild(k);return B})(u);if(d.hasChildNodes()&&f{if(d.hasChildNodes()&&u{const i=n.length+a.length+2,c=new Array(i),d=new Array(i),u=(k,E,B,O,P)=>{const M=y(k,E,B,O);if(M===null||M.start===E&&M.diag===E-O||M.end===k&&M.diag===k-B){let j=k,q=B;for(;jO-B?(P.push([2,n[j]]),++j):(P.push([1,a[q]]),++q)}else{u(k,M.start,B,M.start-M.diag,P);for(let j=M.start;j{let P=k;for(;P-E({start:M,end:j,diag:q}))(k,P,E)},y=(k,E,B,O)=>{const P=E-k,M=O-B;if(P===0||M===0)return null;const j=P-M,q=M+P,K=(q%2==0?q:q+1)/2;let re,ee,ke,et,st;for(c[1+K]=k,d[1+K]=E+1,re=0;re<=K;++re){for(ee=-re;ee<=re;ee+=2){for(ke=ee+K,ee===-re||ee!==re&&c[ke-1]=k&&st>=B&&n[et]===a[st];)d[ke]=et--,st--;if(j%2==0&&-re<=ee&&ee<=re&&d[ke]<=c[ke+j])return f(d[ke],ee+k-B,E,O)}}return null},v=[];return u(0,n.length,0,a.length,v),v})(to(Pn(o.childNodes),V2),t),o),o),iO=tt(()=>document.implementation.createHTMLDocument("undo")),ow=t=>{const o=t.serializer.getTempAttrs(),n=h4(t.getBody(),o);return(a=>a.querySelector("iframe")!==null)(n)?{type:"fragmented",fragments:gt(to(Pn(n.childNodes),gn(qs,V2)),a=>a.length>0),content:"",bookmark:null,beforeBookmark:null}:{type:"complete",fragments:null,content:qs(n.innerHTML),bookmark:null,beforeBookmark:null}},nw=(t,o,n)=>{const a=n?o.beforeBookmark:o.bookmark;o.type==="fragmented"?vE(o.fragments,t.getBody()):t.setContent(o.content,{format:"raw",no_selection:!Ze(a)||!Re(a)||!a.isFakeCaret}),a&&(t.selection.moveToBookmark(a),t.selection.scrollIntoView())},rw=t=>t.type==="fragmented"?t.fragments.join(""):t.content,fy=t=>{const o=_s("body",iO());return wc(o,rw(t)),Se(wa(o,"*[data-mce-bogus]"),_l),yd(o)},aw=(t,o)=>!(!t||!o)&&(!!((n,a)=>rw(n)===rw(a))(t,o)||((n,a)=>fy(n)===fy(a))(t,o)),sw=t=>t.get()===0,b0=(t,o,n)=>{sw(n)&&(t.typing=o)},$2=(t,o)=>{t.typing&&(b0(t,!1,o),t.add())},U2=t=>({init:{bindEvents:$t},undoManager:{beforeChange:(o,n)=>((a,i,c)=>{sw(i)&&c.set(yi(a.selection))})(t,o,n),add:(o,n,a,i,c,d)=>((u,f,y,v,k,E,B)=>{const O=ow(u),P=go.extend(E||{},O);if(!sw(v)||u.removed)return null;const M=f.data[y.get()];if(u.dispatch("BeforeAddUndo",{level:P,lastLevel:M,originalEvent:B}).isDefaultPrevented()||M&&aw(M,P))return null;f.data[y.get()]&&k.get().each(K=>{f.data[y.get()].beforeBookmark=K});const j=a_(u);if(j&&f.data.length>j){for(let K=0;K0?(u.setDirty(!0),u.dispatch("AddUndo",q),u.dispatch("change",q)):u.dispatch("AddUndo",q),P})(t,o,n,a,i,c,d),undo:(o,n,a)=>((i,c,d,u)=>{let f;return c.typing&&(c.add(),c.typing=!1,b0(c,!1,d)),u.get()>0&&(u.set(u.get()-1),f=c.data[u.get()],nw(i,f,!0),i.setDirty(!0),i.dispatch("Undo",{level:f})),f})(t,o,n,a),redo:(o,n)=>((a,i,c)=>{let d;return i.get()((a,i,c)=>{i.data=[],c.set(0),i.typing=!1,a.dispatch("ClearUndos")})(t,o,n),reset:o=>(n=>{n.clear(),n.add()})(o),hasUndo:(o,n)=>((a,i,c)=>c.get()>0||i.typing&&i.data[0]&&!aw(ow(a),i.data[0]))(t,o,n),hasRedo:(o,n)=>((a,i)=>i.get()((i,c,d)=>($2(i,c),i.beforeChange(),i.ignore(d),i.add()))(o,n,a),ignore:(o,n)=>((a,i)=>{try{a.set(a.get()+1),i()}finally{a.set(a.get()-1)}})(o,n),extra:(o,n,a,i)=>((c,d,u,f,y)=>{if(d.transact(f)){const v=d.data[u.get()].bookmark,k=d.data[u.get()-1];nw(c,k,!0),d.transact(y)&&(d.data[u.get()-1].beforeBookmark=v)}})(t,o,n,a,i)},formatter:{match:(o,n,a,i)=>Px(t,o,n,a,i),matchAll:(o,n)=>((a,i,c)=>{const d=[],u={},f=a.selection.getStart();return a.dom.getParent(f,y=>{for(let v=0;vCm(t,o,n,a,i),canApply:o=>((n,a)=>{const i=n.formatter.get(a),c=n.dom;if(i&&n.selection.isEditable()){const d=n.selection.getStart(),u=Wv(c,d);for(let f=i.length-1;f>=0;f--){const y=i[f];if(!Fd(y))return!0;for(let v=u.length-1;v>=0;v--)if(c.is(u[v],y.selector))return!0}}return!1})(t,o),closest:o=>((n,a)=>{const i=c=>sa(c,je(n.getBody()));return V.from(n.selection.getStart(!0)).bind(c=>Fx(je(c),d=>zn(a,u=>((f,y)=>Cm(n,f.dom,y)?V.some(y):V.none())(d,u)),i)).getOrNull()})(t,o),apply:(o,n,a)=>Q4(t,o,n,a),remove:(o,n,a,i)=>cf(t,o,n,a,i),toggle:(o,n,a)=>((i,c,d,u)=>{const f=i.formatter.get(c);f&&(!Px(i,c,d,u)||"toggle"in f[0]&&!f[0].toggle?Q4(i,c,d,u):cf(i,c,d,u))})(t,o,n,a),formatChanged:(o,n,a,i,c)=>((d,u,f,y,v,k)=>(((E,B,O,P,M,j)=>{const q=B.get();Se(O.split(","),K=>{const re=Fn(q,K).getOrThunk(()=>{const ke={withSimilar:{state:bi(!1),similar:!0,callbacks:[]},withoutSimilar:{state:bi(!1),similar:!1,callbacks:[]},withVars:[]};return q[K]=ke,ke}),ee=()=>{const ke=w2(E);return x2(E,ke,K,M,j).isSome()};if(fo(j)){const ke=M?re.withSimilar:re.withoutSimilar;ke.callbacks.push(P),ke.callbacks.length===1&&ke.state.set(ee())}else re.withVars.push({state:bi(ee()),similar:M,vars:j,callback:P})}),B.set(q)})(d,u,f,y,v,k),{unbind:()=>((E,B,O)=>{const P=E.get();Se(B.split(","),M=>Fn(P,M).each(j=>{P[M]={withSimilar:{...j.withSimilar,callbacks:gt(j.withSimilar.callbacks,q=>q!==O)},withoutSimilar:{...j.withoutSimilar,callbacks:gt(j.withoutSimilar.callbacks,q=>q!==O)},withVars:gt(j.withVars,q=>q.callback!==O)}})),E.set(P)})(u,f,y)}))(t,o,n,a,i,c)},editor:{getContent:o=>((n,a)=>V.from(n.getBody()).fold(Ct(a.format==="tree"?new pc("body",11):""),i=>b4(n,a,i)))(t,o),setContent:(o,n)=>((a,i,c)=>V.from(a.getBody()).map(d=>xh(i)?((u,f,y,v)=>{Ax(u.parser.getNodeFilters(),u.parser.getAttributeFilters(),y);const k=af({validate:!1},u.schema).serialize(y),E=qs(Ui(je(f))?k:go.trim(k));return Bx(u,E,v.no_selection),{content:y,html:E}})(a,d,i,c):((u,f,y,v)=>{if((y=qs(y)).length===0||/^\s+$/.test(y)){const k='
';f.nodeName==="TABLE"?y=""+k+"":/^(UL|OL)$/.test(f.nodeName)&&(y="
  • "+k+"
  • ");const E=Ts(u);return u.schema.isValidChild(f.nodeName.toLowerCase(),E.toLowerCase())?(y=k,y=u.dom.createHTML(E,gc(u),y)):y||(y=k),Bx(u,y,v.no_selection),{content:y,html:y}}{v.format!=="raw"&&(y=af({validate:!1},u.schema).serialize(u.parser.parse(y,{isRootContent:!0,insert:!0})));const k=Ui(je(f))?y:go.trim(y);return Bx(u,k,v.no_selection),{content:k,html:k}}})(a,d,i,c)).getOr({content:i,html:xh(c.content)?"":c.content}))(t,o,n),insertContent:(o,n)=>W4(t,o,n),addVisual:o=>((n,a)=>{const i=n.dom,c=Ze(a)?a:n.getBody();Se(i.select("table,a",c),d=>{switch(d.nodeName){case"TABLE":const u=Cb(n),f=i.getAttrib(d,"border");f&&f!=="0"||!n.hasVisual?i.removeClass(d,u):i.addClass(d,u);break;case"A":if(!i.getAttrib(d,"href")){const y=i.getAttrib(d,"name")||d.id,v=rh(n);y&&n.hasVisual?i.addClass(d,v):i.removeClass(d,v)}}}),n.dispatch("VisualAid",{element:a,hasVisual:n.hasVisual})})(t,o)},selection:{getContent:(o,n)=>((a,i,c={})=>{const d=((u,f)=>({...u,format:f,get:!0,selection:!0,getInner:!0}))(c,i);return L2(a,d).fold(R,u=>{const f=((y,v)=>{if(v.format==="text")return(k=>V.from(k.selection.getRng()).map(E=>{var B;const O=V.from(k.dom.getParent(E.commonAncestorContainer,k.dom.isBlock)),P=k.getBody(),M=(ee=>ee.map(ke=>ke.nodeName).getOr("div").toLowerCase())(O),j=je(E.cloneContents());er(j),Kb(j);const q=k.dom.add(P,M,{"data-mce-bogus":"all",style:"overflow: hidden; opacity: 0;"},j.dom),K=tw(q),re=qs((B=q.textContent)!==null&&B!==void 0?B:"");if(k.dom.remove(q),h0(re,0)||h0(re,re.length-1)){const ee=O.getOr(P),ke=tw(ee),et=ke.indexOf(K);return et===-1?K:(h0(ke,et-1)?" ":"")+K+(h0(ke,et+K.length)?" ":"")}return K}).getOr(""))(y);{const k=((E,B)=>{const O=E.selection.getRng(),P=E.dom.create("body"),M=E.selection.getSel(),j=O_(E,Mr(M)),q=B.contextual?py(je(E.getBody()),j,E.schema).dom:O.cloneContents();return q&&P.appendChild(q),E.selection.serializer.serialize(P,B)})(y,v);return v.format==="tree"?k:y.selection.isCollapsed()?"":k}})(a,u);return I2(a,f,u)})})(t,o,n)},autocompleter:{addDecoration:o=>DA(t,o),removeDecoration:()=>((o,n)=>u4(n).each(a=>{const i=o.selection.getBookmark();_l(a),o.selection.moveToBookmark(i)}))(t,je(t.getBody()))},raw:{getModel:()=>V.none()}}),Tm=t=>ln(t.plugins,"rtc"),iw=t=>t.rtcInstance?t.rtcInstance:U2(t),Li=t=>{const o=t.rtcInstance;if(o)return o;throw new Error("Failed to get RTC instance not yet initialized.")},Z2=t=>Li(t).init.bindEvents(),lw=t=>t.dom.length===0?(Ea(t),V.none()):V.some(t),hy=(t,o,n,a,i)=>{t.bind(c=>((a?P1:yh)(c.dom,a?c.dom.length:0,i),o.filter(_r).map(d=>((u,f,y,v,k)=>{const E=u.dom,B=f.dom,O=v?E.length:B.length;v?(j_(E,B,k,!1,!v),y.setStart(B,O)):(j_(B,E,k,!1,!v),y.setEnd(B,O))})(c,d,n,a,i)))).orThunk(()=>((d,u)=>d.filter(f=>tf.isBookmarkNode(f.dom)).bind(u?ie:Ki))(o,a).or(o).filter(_r).map(d=>((u,f,y)=>{Gi(u).each(v=>{const k=u.dom;f&&I1(v,Ht(k,0),y)?yh(k,0,y):!f&&rc(v,Ht(k,k.length),y)&&P1(k,k.length,y)})})(d,a,i)))},q2=(t,o,n)=>{if(ln(t,o)){const a=gt(t[o],i=>i!==n);a.length===0?delete t[o]:t[o]=a}},W2=t=>!(!t||!t.ownerDocument)&&lc(je(t.ownerDocument),je(t)),y0=(t,o,n,a)=>{let i,c;const{selectorChangedWithUnbind:d}=((M,j)=>{let q,K;const re=(ke,et)=>Fe(et,st=>M.is(st,ke)),ee=ke=>M.getParents(ke,void 0,M.getRoot());return{selectorChangedWithUnbind:(ke,et)=>(q||(q={},K={},j.on("NodeChange",st=>{const mt=st.element,kt=ee(mt),Ve={};Ft(q,(ot,pt)=>{re(pt,kt).each(Jt=>{K[pt]||(Se(ot,en=>{en(!0,{node:Jt,selector:pt,parents:kt})}),K[pt]=ot),Ve[pt]=ot})}),Ft(K,(ot,pt)=>{Ve[pt]||(delete K[pt],Se(ot,Jt=>{Jt(!1,{node:mt,selector:pt,parents:kt})}))})})),q[ke]||(q[ke]=[]),q[ke].push(et),re(ke,ee(j.selection.getStart())).each(()=>{K[ke]=q[ke]}),{unbind:()=>{q2(q,ke,et),q2(K,ke,et)}})}})(t,a),u=(M,j)=>((q,K,re={})=>{const ee=((ke,et)=>({format:"html",...ke,set:!0,selection:!0,content:et}))(re,K);P2(q,ee).each(ke=>{const et=((mt,kt)=>{if(kt.format!=="raw"){const Ve=mt.selection.getRng(),ot=mt.dom.getParent(Ve.commonAncestorContainer,mt.dom.isBlock),pt=ot?{context:ot.nodeName.toLowerCase()}:{},Jt=mt.parser.parse(kt.content,{forced_root_block:!1,...pt,...kt});return af({validate:!1},mt.schema).serialize(Jt)}return kt.content})(q,ke),st=q.selection.getRng();((mt,kt,Ve)=>{const ot=V.from(kt.firstChild).map(je),pt=V.from(kt.lastChild).map(je);mt.deleteContents(),mt.insertNode(kt);const Jt=ot.bind(Ki).filter(_r).bind(lw),en=pt.bind(ie).filter(_r).bind(lw);hy(Jt,ot,mt,!0,Ve),hy(en,pt,mt,!1,Ve),mt.collapse(!1)})(st,st.createContextualFragment(et),q.schema),q.selection.setRng(st),bh(q,st),uy(q,et,ke)})})(a,M,j),f=M=>{const j=v();j.collapse(!!M),k(j)},y=()=>o.getSelection?o.getSelection():o.document.selection,v=()=>{let M;const j=(K,re,ee)=>{try{return re.compareBoundaryPoints(K,ee)}catch{return-1}},q=o.document;if(Ze(a.bookmark)&&!rf(a)){const K=ax(a);if(K.isSome())return K.map(re=>O_(a,[re])[0]).getOr(q.createRange())}try{const K=y();K&&!Rm(K.anchorNode)&&(M=K.rangeCount>0?K.getRangeAt(0):q.createRange(),M=O_(a,[M])[0])}catch{}if(M||(M=q.createRange()),xd(M.startContainer)&&M.collapsed){const K=t.getRoot();M.setStart(K,0),M.setEnd(K,0)}return i&&c&&(j(M.START_TO_START,M,i)===0&&j(M.END_TO_END,M,i)===0?M=c:(i=null,c=null)),M},k=(M,j)=>{if(!(K=>!!K&&W2(K.startContainer)&&W2(K.endContainer))(M))return;const q=y();if(M=a.dispatch("SetSelectionRange",{range:M,forward:j}).range,q){c=M;try{q.removeAllRanges(),q.addRange(M)}catch{}j===!1&&q.extend&&(q.collapse(M.endContainer,M.endOffset),q.extend(M.startContainer,M.startOffset)),i=q.rangeCount>0?q.getRangeAt(0):null}if(!M.collapsed&&M.startContainer===M.endContainer&&(q!=null&&q.setBaseAndExtent)&&M.endOffset-M.startOffset<2&&M.startContainer.hasChildNodes()){const K=M.startContainer.childNodes[M.startOffset];K&&K.nodeName==="IMG"&&(q.setBaseAndExtent(M.startContainer,M.startOffset,M.endContainer,M.endOffset),q.anchorNode===M.startContainer&&q.focusNode===M.endContainer||q.setBaseAndExtent(K,0,K,1))}a.dispatch("AfterSetSelectionRange",{range:M,forward:j})},E=()=>{const M=y(),j=M==null?void 0:M.anchorNode,q=M==null?void 0:M.focusNode;if(!M||!j||!q||Rm(j)||Rm(q))return!0;const K=t.createRng(),re=t.createRng();try{K.setStart(j,M.anchorOffset),K.collapse(!0),re.setStart(q,M.focusOffset),re.collapse(!0)}catch{return!0}return K.compareBoundaryPoints(K.START_TO_START,re)<=0},B={dom:t,win:o,serializer:n,editor:a,expand:(M={type:"word"})=>k(nf(t).expand(v(),M)),collapse:f,setCursorLocation:(M,j)=>{const q=t.createRng();Ze(M)&&Ze(j)?(q.setStart(M,j),q.setEnd(M,j),k(q),f(!1)):(ua(t,q,a.getBody(),!0),k(q))},getContent:M=>((j,q={})=>((K,re,ee)=>Li(K).selection.getContent(re,ee))(j,q.format?q.format:"html",q))(a,M),setContent:u,getBookmark:(M,j)=>O.getBookmark(M,j),moveToBookmark:M=>O.moveToBookmark(M),select:(M,j)=>(((q,K,re)=>V.from(K).bind(ee=>V.from(ee.parentNode).map(ke=>{const et=q.nodeIndex(ee),st=q.createRng();return st.setStart(ke,et),st.setEnd(ke,et+1),re&&(ua(q,st,ee,!0),ua(q,st,ee,!1)),st})))(t,M,j).each(k),M),isCollapsed:()=>{const M=v(),j=y();return!(!M||M.item)&&(M.compareEndPoints?M.compareEndPoints("StartToEnd",M)===0:!j||M.collapsed)},isEditable:()=>{const M=v(),j=a.getBody().querySelectorAll('[data-mce-selected="1"]');return j.length>0?ze(j,q=>t.isEditable(q.parentElement)):A_(t,M)},isForward:E,setNode:M=>(u(t.getOuterHTML(M)),M),getNode:()=>((M,j)=>{if(!j)return M;let q=j.startContainer,K=j.endContainer;const re=j.startOffset,ee=j.endOffset;let ke=j.commonAncestorContainer;j.collapsed||(q===K&&ee-re<2&&q.hasChildNodes()&&(ke=q.childNodes[re]),ro(q)&&ro(K)&&(q=q.length===re?l4(q.nextSibling,!0):q.parentNode,K=ee===0?l4(K.previousSibling,!1):K.parentNode,q&&q===K&&(ke=q)));const et=ro(ke)?ke.parentNode:ke;return Ti(et)?et:M})(a.getBody(),v()),getSel:y,setRng:k,getRng:v,getStart:M=>s4(a.getBody(),v(),M),getEnd:M=>i4(a.getBody(),v(),M),getSelectedBlocks:(M,j)=>((q,K,re,ee)=>{const ke=[],et=q.getRoot(),st=q.getParent(re||s4(et,K,K.collapsed),q.isBlock),mt=q.getParent(ee||i4(et,K,K.collapsed),q.isBlock);if(st&&st!==et&&ke.push(st),st&&mt&&st!==mt){let kt;const Ve=new Ns(st,et);for(;(kt=Ve.next())&&kt!==mt;)q.isBlock(kt)&&ke.push(kt)}return mt&&st!==mt&&mt!==et&&ke.push(mt),ke})(t,v(),M,j),normalize:()=>{const M=v(),j=y();if(!(Mr(j).length>1)&&li(a)){const q=O1(t,M);return q.each(K=>{k(K,E())}),q.getOr(M)}return M},selectorChanged:(M,j)=>(d(M,j),B),selectorChangedWithUnbind:d,getScrollContainer:()=>{let M,j=t.getRoot();for(;j&&j.nodeName!=="BODY";){if(j.scrollHeight>j.clientHeight){M=j;break}j=j.parentNode}return M},scrollIntoView:(M,j)=>{Ze(M)?((q,K,re)=>{(q.inline?X3:zA)(q,K,re)})(a,M,j):bh(a,v(),j)},placeCaretAt:(M,j)=>k(g_(M,j,a.getDoc())),getBoundingClientRect:()=>{const M=v();return M.collapsed?Ht.fromRangeStart(M).getClientRects()[0]:M.getBoundingClientRect()},destroy:()=>{o=i=c=null,P.destroy()}},O=tf(B),P=H3(B,a);return B.bookmarkManager=O,B.controlSelection=P,B},lO=(t,o,n)=>{go.inArray(o,n)===-1&&(t.addAttributeFilter(n,(a,i)=>{let c=a.length;for(;c--;)a[c].attr(i,null)}),o.push(n))},cO=(t,o)=>{const n=["data-mce-selected"],a={entity_encoding:"named",remove_trailing_brs:!0,pad_empty_with_br:!1,...t},i=o&&o.dom?o.dom:wr.DOM,c=o&&o.schema?o.schema:Du(a),d=dy(a,c);return((u,f,y)=>{u.addAttributeFilter("data-mce-tabindex",(v,k)=>{let E=v.length;for(;E--;){const B=v[E];B.attr("tabindex",B.attr("data-mce-tabindex")),B.attr(k,null)}}),u.addAttributeFilter("src,href,style",(v,k)=>{const E="data-mce-"+k,B=f.url_converter,O=f.url_converter_scope;let P=v.length;for(;P--;){const M=v[P];let j=M.attr(E);j!==void 0?(M.attr(k,j.length>0?j:null),M.attr(E,null)):(j=M.attr(k),k==="style"?j=y.serializeStyle(y.parseStyle(j),M.name):B&&(j=B.call(O,j,k,M.name)),M.attr(k,j.length>0?j:null))}}),u.addAttributeFilter("class",v=>{let k=v.length;for(;k--;){const E=v[k];let B=E.attr("class");B&&(B=B.replace(/(?:^|\s)mce-item-\w+(?!\S)/g,""),E.attr("class",B.length>0?B:null))}}),u.addAttributeFilter("data-mce-type",(v,k,E)=>{let B=v.length;for(;B--;){const O=v[B];O.attr("data-mce-type")==="bookmark"&&!E.cleanup&&(V.from(O.firstChild).exists(M=>{var j;return!_c((j=M.value)!==null&&j!==void 0?j:"")})?O.unwrap():O.remove())}}),u.addNodeFilter("noscript",v=>{var k;let E=v.length;for(;E--;){const B=v[E].firstChild;B&&(B.value=Sc.decode((k=B.value)!==null&&k!==void 0?k:""))}}),u.addNodeFilter("script,style",(v,k)=>{var E;const B=P=>P.replace(/()/g,` +`).replace(/^[\r\n]*|[\r\n]*$/g,"").replace(/^\s*(()?|\s*\/\/\s*\]\]>(-->)?|\/\/\s*(-->)?|\]\]>|\/\*\s*-->\s*\*\/|\s*-->\s*)\s*$/g,"");let O=v.length;for(;O--;){const P=v[O],M=P.firstChild,j=(E=M==null?void 0:M.value)!==null&&E!==void 0?E:"";if(k==="script"){const q=P.attr("type");q&&P.attr("type",q==="mce-no/type"?null:q.replace(/^mce\-/,"")),f.element_format==="xhtml"&&M&&j.length>0&&(M.value=`// `)}else f.element_format==="xhtml"&&M&&j.length>0&&(M.value=``)}}),u.addNodeFilter("#comment",v=>{let k=v.length;for(;k--;){const E=v[k],B=E.value;f.preserve_cdata&&(B==null?void 0:B.indexOf("[CDATA["))===0?(E.name="#cdata",E.type=4,E.value=y.decode(B.replace(/^\[CDATA\[|\]\]$/g,""))):(B==null?void 0:B.indexOf("mce:protected "))===0&&(E.name="#text",E.type=3,E.raw=!0,E.value=unescape(B).substr(14))}}),u.addNodeFilter("xml:namespace,input",(v,k)=>{let E=v.length;for(;E--;){const B=v[E];B.type===7?B.remove():B.type===1&&(k!=="input"||B.attr("type")||B.attr("type","text"))}}),u.addAttributeFilter("data-mce-type",v=>{Se(v,k=>{k.attr("data-mce-type")==="format-caret"&&(k.isEmpty(u.schema.getNonEmptyElements())?k.remove():k.unwrap())})}),u.addAttributeFilter("data-mce-src,data-mce-href,data-mce-style,data-mce-selected,data-mce-expando,data-mce-block,data-mce-type,data-mce-resize,data-mce-placeholder",(v,k)=>{let E=v.length;for(;E--;)v[E].attr(k,null)}),f.remove_trailing_brs&&tE(f,u,u.schema)})(d,a,i),{schema:c,addNodeFilter:d.addNodeFilter,addAttributeFilter:d.addAttributeFilter,serialize:(u,f={})=>{const y={format:"html",...f},v=((B,O,P)=>((M,j)=>Ze(M)&&M.hasEventListeners("PreProcess")&&!j.no_events)(B,P)?((M,j,q)=>{let K;const re=M.dom;let ee=j.cloneNode(!0);const ke=document.implementation;if(ke.createHTMLDocument){const et=ke.createHTMLDocument("");go.each(ee.nodeName==="BODY"?ee.childNodes:[ee],st=>{et.body.appendChild(et.importNode(st,!0))}),ee=ee.nodeName!=="BODY"?et.body.firstChild:et.body,K=re.doc,re.doc=et}return((et,st)=>{et.dispatch("PreProcess",st)})(M,{...q,node:ee}),K&&(re.doc=K),ee})(B,O,P):O)(o,u,y),k=((B,O,P)=>{const M=qs(P.getInner?O.innerHTML:B.getOuterHTML(O));return P.selection||Ui(je(O))?M:go.trim(M)})(i,v,y),E=((B,O,P)=>{const M=P.selection?{forced_root_block:!1,...P}:P,j=B.parse(O,M);return(q=>{const K=ee=>(ee==null?void 0:ee.name)==="br",re=q.lastChild;if(K(re)){const ee=re.prev;K(ee)&&(re.remove(),ee.remove())}})(j),j})(d,k,y);return y.format==="tree"?E:((B,O,P,M,j)=>{const q=((K,re,ee)=>af(K,re).serialize(ee))(O,P,M);return((K,re,ee)=>!re.no_events&&K?((et,st)=>et.dispatch("PostProcess",st))(K,{...re,content:ee}).content:ee)(B,j,q)})(o,a,c,E,y)},addRules:c.addValidElements,setRules:c.setValidElements,addTempAttr:Je(lO,d,n),getTempAttrs:Ct(n),getNodeFilters:d.getNodeFilters,getAttributeFilters:d.getAttributeFilters,removeNodeFilter:d.removeNodeFilter,removeAttributeFilter:d.removeAttributeFilter}},Xg=(t,o)=>{const n=cO(t,o);return{schema:n.schema,addNodeFilter:n.addNodeFilter,addAttributeFilter:n.addAttributeFilter,serialize:n.serialize,addRules:n.addRules,setRules:n.setRules,addTempAttr:n.addTempAttr,getTempAttrs:n.getTempAttrs,getNodeFilters:n.getNodeFilters,getAttributeFilters:n.getAttributeFilters,removeNodeFilter:n.removeNodeFilter,removeAttributeFilter:n.removeAttributeFilter}},v0=(t,o,n={})=>{const a=((i,c)=>({format:"html",...i,set:!0,content:c}))(n,o);return P2(t,a).map(i=>{const c=((d,u,f)=>iw(d).editor.setContent(u,f))(t,i.content,i);return uy(t,c.html,i),c.content}).getOr(o)},xE="autoresize_on_init,content_editable_state,padd_empty_with_br,block_elements,boolean_attributes,editor_deselector,editor_selector,elements,file_browser_callback_types,filepicker_validator_handler,force_hex_style_colors,force_p_newlines,gecko_spellcheck,images_dataimg_filter,media_scripts,mode,move_caret_before_on_enter_elements,non_empty_elements,self_closing_elements,short_ended_elements,special,spellchecker_select_languages,spellchecker_whitelist,tab_focus,tabfocus_elements,table_responsive_width,text_block_elements,text_inline_elements,toolbar_drawer,types,validate,whitespace_elements,paste_enable_default_filters,paste_filter_drop,paste_word_valid_elements,paste_retain_style_properties,paste_convert_word_fake_lists".split(","),x0="template_cdate_classes,template_mdate_classes,template_selected_content_classes,template_preview_replace_values,template_replace_values,templates,template_cdate_format,template_mdate_format".split(","),wE="bbcode,colorpicker,contextmenu,fullpage,legacyoutput,spellchecker,textcolor".split(","),cw=[{name:"template",replacedWith:"Advanced Template"},{name:"rtc"}],G2=(t,o)=>{const n=gt(o,a=>ln(t,a));return Xo(n)},kE=t=>{const o=G2(t,xE),n=t.forced_root_block;return n!==!1&&n!==""||o.push("forced_root_block (false only)"),Xo(o)},K2=t=>G2(t,x0),Y2=(t,o)=>{const n=go.makeMap(t.plugins," "),a=gt(o,i=>ln(n,i));return Xo(a)},dO=t=>Y2(t,wE),dw=t=>Y2(t,cw.map(o=>o.name)),hc=t=>Fe(cw,o=>o.name===t).fold(()=>t,o=>o.replacedWith?`${t}, replaced by ${o.replacedWith}`:t),Th=wr.DOM,Jm=t=>V.from(t).each(o=>o.destroy()),w0=(()=>{const t={};return{add:(o,n)=>{t[o]=n},get:o=>t[o]?t[o]:{icons:{}},has:o=>ln(t,o)}})(),Kl=bl.ModelManager,mf=(t,o)=>o.dom[t],X2=(t,o)=>parseInt(Yi(o,t),10),_E=Je(mf,"clientWidth"),CE=Je(mf,"clientHeight"),k0=Je(X2,"margin-top"),J2=Je(X2,"margin-left"),Q2=t=>{const o=[],n=()=>{const f=t.theme;return f&&f.getNotificationManagerImpl?f.getNotificationManagerImpl():(()=>{const y=()=>{throw new Error("Theme did not provide a NotificationManager implementation.")};return{open:y,close:y,getArgs:y}})()},a=()=>V.from(o[0]),i=()=>{Se(o,f=>{f.reposition()})},c=f=>{ge(o,y=>y===f).each(y=>{o.splice(y,1)})},d=(f,y=!0)=>t.removed||!(v=>{return(k=v.inline?v.getBody():v.getContentAreaContainer(),V.from(k).map(je)).map(Es).getOr(!1);var k})(t)?{}:(y&&t.dispatch("BeforeOpenNotification",{notification:f}),Fe(o,v=>{return k=n().getArgs(v),E=f,!(k.type!==E.type||k.text!==E.text||k.progressBar||k.timeout||E.progressBar||E.timeout);var k,E}).getOrThunk(()=>{t.editorManager.setActive(t);const v=n().open(f,()=>{c(v),i(),r4(t)&&a().fold(()=>t.focus(),k=>J3(je(k.getEl())))});return(k=>{o.push(k)})(v),i(),t.dispatch("OpenNotification",{notification:{...v}}),v})),u=Ct(o);return(f=>{f.on("SkinLoaded",()=>{const y=xb(f);y&&d({text:y,type:"warning",timeout:0},!1),i()}),f.on("show ResizeEditor ResizeWindow NodeChange",()=>{requestAnimationFrame(i)}),f.on("remove",()=>{Se(o.slice(),y=>{n().close(y)})})})(t),{open:d,close:()=>{a().each(f=>{n().close(f),c(f),i()})},getNotifications:u}},by=bl.PluginManager,Jg=bl.ThemeManager,uw=t=>{let o=[];const n=()=>{const d=t.theme;return d&&d.getWindowManagerImpl?d.getWindowManagerImpl():(()=>{const u=()=>{throw new Error("Theme did not provide a WindowManager implementation.")};return{open:u,openUrl:u,alert:u,confirm:u,close:u}})()},a=(d,u)=>(...f)=>u?u.apply(d,f):void 0,i=d=>{(u=>{t.dispatch("CloseWindow",{dialog:u})})(d),o=gt(o,u=>u!==d),o.length===0&&t.focus()},c=d=>{t.editorManager.setActive(t),rx(t),t.ui.show();const u=d();return(f=>{o.push(f),(y=>{t.dispatch("OpenWindow",{dialog:y})})(f)})(u),u};return t.on("remove",()=>{Se(o,d=>{n().close(d)})}),{open:(d,u)=>c(()=>n().open(d,u,i)),openUrl:d=>c(()=>n().openUrl(d,i)),alert:(d,u,f)=>{const y=n();y.alert(d,a(f||y,u))},confirm:(d,u,f)=>{const y=n();y.confirm(d,a(f||y,u))},close:()=>{V.from(o[o.length-1]).each(d=>{n().close(d),i(d)})}}},SE=(t,o)=>{t.notificationManager.open({type:"error",text:o})},hu=(t,o)=>{t._skinLoaded?SE(t,o):t.on("SkinLoaded",()=>{SE(t,o)})},zh=(t,o,n)=>{z1(t,o,{message:n}),console.error(n)},gf=(t,o,n)=>n?`Failed to load ${t}: ${n} from url ${o}`:`Failed to load ${t} url: ${o}`,yy=(t,...o)=>{const n=window.console;n&&(n.error?n.error(t,...o):n.log(t,...o))},mw=t=>"content/"+t+"/content.css",eC=(t,o)=>{const n=t.editorManager.baseURL+"/skins/content",a=`content${t.editorManager.suffix}.css`;return to(o,i=>(c=>tinymce.Resource.has(mw(c)))(i)?i:(c=>/^[a-z0-9\-]+$/i.test(c))(i)&&!t.inline?`${n}/${i}/${a}`:t.documentBaseURI.toAbsolute(i))},EE=(t,o)=>{const n={};return{findAll:(a,i=Bt)=>{const c=gt((u=>u?Pn(u.getElementsByTagName("img")):[])(a),u=>{const f=u.src;return!u.hasAttribute("data-mce-bogus")&&!u.hasAttribute("data-mce-placeholder")&&!(!f||f===Rn.transparentSrc)&&(gr(f,"blob:")?!t.isUploaded(f)&&i(u):!!gr(f,"data:")&&i(u))}),d=to(c,u=>{const f=u.src;if(ln(n,f))return n[f].then(y=>Ue(y)?y:{image:u,blobInfo:y.blobInfo});{const y=((v,k)=>{const E=()=>Promise.reject("Invalid data URI");if(gr(k,"blob:")){const P=v.getByUri(k);return Ze(P)?Promise.resolve(P):(B=k,gr(B,"blob:")?(M=>fetch(M).then(j=>j.ok?j.blob():Promise.reject()).catch(()=>Promise.reject({message:`Cannot convert ${M} to Blob. Resource might not exist or is inaccessible.`,uriType:"blob"})))(B):gr(B,"data:")?(O=B,new Promise((M,j)=>{ay(O).bind(({type:q,data:K,base64Encoded:re})=>C2(q,K,re)).fold(()=>j("Invalid data URI"),M)})):Promise.reject("Unknown URI format")).then(M=>Gx(M).then(j=>Kx(j,!1,q=>V.some(S2(v,M,q))).getOrThunk(E)))}var B,O;return gr(k,"data:")?i0(v,k).fold(E,P=>Promise.resolve(P)):Promise.reject("Unknown image data format")})(o,f).then(v=>(delete n[f],{image:u,blobInfo:v})).catch(v=>(delete n[f],v));return n[f]=y,y}});return Promise.all(d)}}},TE=()=>{let t={};const o=(a,i)=>({status:a,resultUri:i}),n=a=>a in t;return{hasBlobUri:n,getResultUri:a=>{const i=t[a];return i?i.resultUri:null},isPending:a=>!!n(a)&&t[a].status===1,isUploaded:a=>!!n(a)&&t[a].status===2,markPending:a=>{t[a]=o(1,null)},markUploaded:(a,i)=>{t[a]=o(2,i)},removeFailed:a=>{delete t[a]},destroy:()=>{t={}}}};let uO=0;const zE=(t,o)=>{const n={},a=(f,y)=>new Promise((v,k)=>{const E=new XMLHttpRequest;E.open("POST",o.url),E.withCredentials=o.credentials,E.upload.onprogress=O=>{y(O.loaded/O.total*100)},E.onerror=()=>{k("Image upload failed due to a XHR Transport error. Code: "+E.status)},E.onload=()=>{if(E.status<200||E.status>=300)return void k("HTTP Error: "+E.status);const O=JSON.parse(E.responseText);var P,M;O&&Ue(O.location)?v((P=o.basePath,M=O.location,P?P.replace(/\/$/,"")+"/"+M.replace(/^\//,""):M)):k("Invalid JSON: "+E.responseText)};const B=new FormData;B.append("file",f.blob(),f.filename()),E.send(B)}),i=de(o.handler)?o.handler:a,c=(f,y)=>({url:y,blobInfo:f,status:!0}),d=(f,y)=>({url:"",blobInfo:f,status:!1,error:y}),u=(f,y)=>{go.each(n[f],v=>{v(y)}),delete n[f]};return{upload:(f,y)=>o.url||i!==a?((v,k)=>(v=go.grep(v,E=>!t.isUploaded(E.blobUri())),Promise.all(go.map(v,E=>t.isPending(E.blobUri())?(B=>{const O=B.blobUri();return new Promise(P=>{n[O]=n[O]||[],n[O].push(P)})})(E):((B,O,P)=>(t.markPending(B.blobUri()),new Promise(M=>{let j,q;try{const K=()=>{j&&(j.close(),q=$t)},re=ke=>{K(),t.markUploaded(B.blobUri(),ke),u(B.blobUri(),c(B,ke)),M(c(B,ke))},ee=ke=>{K(),t.removeFailed(B.blobUri()),u(B.blobUri(),d(B,ke)),M(d(B,ke))};q=ke=>{ke<0||ke>100||V.from(j).orThunk(()=>V.from(P).map(ht)).each(et=>{j=et,et.progressBar.value(ke)})},O(B,q).then(re,ke=>{ee(Ue(ke)?{message:ke}:ke)})}catch(K){M(d(B,K))}})))(E,i,k)))))(f,y):new Promise(v=>{v([])})}},tC=t=>()=>t.notificationManager.open({text:t.translate("Image uploading..."),type:"info",timeout:-1,progressBar:!0}),gw=(t,o)=>zE(o,{url:n_(t),basePath:Jf(t),credentials:Sv(t),handler:Lp(t)}),oC=t=>{const o=(()=>{let P=[];const M=K=>{if(!K.blob||!K.base64)throw new Error("blob and base64 representations of the image are required for BlobInfo to be created");const re=K.id||"blobid"+uO+++(()=>{const st=()=>Math.round(4294967295*Math.random()).toString(36);return"s"+new Date().getTime().toString(36)+st()+st()+st()})(),ee=K.name||re,ke=K.blob;var et;return{id:Ct(re),name:Ct(ee),filename:Ct(K.filename||ee+"."+(et=ke.type,{"image/jpeg":"jpg","image/jpg":"jpg","image/gif":"gif","image/png":"png","image/apng":"apng","image/avif":"avif","image/svg+xml":"svg","image/webp":"webp","image/bmp":"bmp","image/tiff":"tiff"}[et.toLowerCase()]||"dat")),blob:Ct(ke),base64:Ct(K.base64),blobUri:Ct(K.blobUri||URL.createObjectURL(ke)),uri:Ct(K.uri)}},j=K=>Fe(P,K).getOrUndefined(),q=K=>j(re=>re.id()===K);return{create:(K,re,ee,ke,et)=>{if(Ue(K))return M({id:K,name:ke,filename:et,blob:re,base64:ee});if(it(K))return M(K);throw new Error("Unknown input type")},add:K=>{q(K.id())||P.push(K)},get:q,getByUri:K=>j(re=>re.blobUri()===K),getByData:(K,re)=>j(ee=>ee.base64()===K&&ee.blob().type===re),findFirst:j,removeByUri:K=>{P=gt(P,re=>re.blobUri()!==K||(URL.revokeObjectURL(re.blobUri()),!1))},destroy:()=>{Se(P,K=>{URL.revokeObjectURL(K.blobUri())}),P=[]}}})();let n,a;const i=TE(),c=[],d=P=>M=>t.selection?P(M):[],u=(P,M,j)=>{let q=0;do q=P.indexOf(M,q),q!==-1&&(P=P.substring(0,q)+j+P.substr(q+M.length),q+=j.length-M.length+1);while(q!==-1);return P},f=(P,M,j)=>{const q=`src="${j}"${j===Rn.transparentSrc?' data-mce-placeholder="1"':""}`;return P=u(P,`src="${M}"`,q),u(P,'data-mce-src="'+M+'"','data-mce-src="'+j+'"')},y=(P,M)=>{Se(t.undoManager.data,j=>{j.type==="fragmented"?j.fragments=to(j.fragments,q=>f(q,P,M)):j.content=f(j.content,P,M)})},v=()=>(n||(n=gw(t,i)),B().then(d(P=>{const M=to(P,j=>j.blobInfo);return n.upload(M,tC(t)).then(d(j=>{const q=[];let K=!1;const re=to(j,(ee,ke)=>{const{blobInfo:et,image:st}=P[ke];let mt=!1;return ee.status&&o_(t)?(ee.url&&!Xr(st.src,ee.url)&&(K=!0),o.removeByUri(st.src),Tm(t)||((kt,Ve)=>{const ot=t.convertURL(Ve,"src");var pt;y(kt.src,Ve),Ee(je(kt),{src:Xf(t)?(pt=Ve,pt+(pt.indexOf("?")===-1?"?":"&")+new Date().getTime()):Ve,"data-mce-src":ot})})(st,ee.url)):ee.error&&(ee.error.remove&&(y(st.src,Rn.transparentSrc),q.push(st),mt=!0),((kt,Ve)=>{hu(kt,Zi.translate(["Failed to upload image: {0}",Ve]))})(t,ee.error.message)),{element:st,status:ee.status,uploadUri:ee.url,blobInfo:et,removed:mt}});return q.length>0&&!Tm(t)?t.undoManager.transact(()=>{Se(Xc(q),ee=>{const ke=Gi(ee);Ea(ee),ke.each((et=>st=>{((mt,kt)=>mt.dom.isEmpty(kt.dom)&&Ze(mt.schema.getTextBlockElements()[Pe(kt)]))(et,st)&&os(st,ic('
    '))})(t)),o.removeByUri(ee.dom.src)})}):K&&t.undoManager.dispatchChange(),re}))}))),k=()=>bb(t)?v():Promise.resolve([]),E=P=>ze(c,M=>M(P)),B=()=>(a||(a=EE(i,o)),a.findAll(t.getBody(),E).then(d(P=>{const M=gt(P,j=>Ue(j)?(hu(t,j),!1):j.uriType!=="blob");return Tm(t)||Se(M,j=>{y(j.image.src,j.blobInfo.blobUri()),j.image.src=j.blobInfo.blobUri(),j.image.removeAttribute("data-mce-src")}),M}))),O=P=>P.replace(/src="(blob:[^"]+)"/g,(M,j)=>{const q=i.getResultUri(j);if(q)return'src="'+q+'"';let K=o.getByUri(j);return K||(K=Oe(t.editorManager.get(),(re,ee)=>re||ee.editorUpload&&ee.editorUpload.blobCache.getByUri(j),void 0)),K?'src="data:'+K.blob().type+";base64,"+K.base64()+'"':M});return t.on("SetContent",()=>{bb(t)?k():B()}),t.on("RawSaveContent",P=>{P.content=O(P.content)}),t.on("GetContent",P=>{P.source_view||P.format==="raw"||P.format==="tree"||(P.content=O(P.content))}),t.on("PostRender",()=>{t.parser.addNodeFilter("img",P=>{Se(P,M=>{const j=M.attr("src");if(!j||o.getByUri(j))return;const q=i.getResultUri(j);q&&M.attr("src",q)})})}),{blobCache:o,addFilter:P=>{c.push(P)},uploadImages:v,uploadImagesAuto:k,scanForImages:B,destroy:()=>{o.destroy(),i.destroy(),a=n=null}}},nC={remove_similar:!0,inherit:!1},pf={selector:"td,th",...nC},AE={tablecellbackgroundcolor:{styles:{backgroundColor:"%value"},...pf},tablecellverticalalign:{styles:{"vertical-align":"%value"},...pf},tablecellbordercolor:{styles:{borderColor:"%value"},...pf},tablecellclass:{classes:["%value"],...pf},tableclass:{selector:"table",classes:["%value"],...nC},tablecellborderstyle:{styles:{borderStyle:"%value"},...pf},tablecellborderwidth:{styles:{borderWidth:"%value"},...pf}},OE=Ct(AE),vy=go.each,Pd=wr.DOM,pw=t=>Ze(t)&&it(t),rC=(t,o)=>{const n=o&&o.schema||Du({}),a=d=>{const u=Ue(d)?{name:d,classes:[],attrs:{}}:d,f=Pd.create(u.name);return((y,v)=>{v.classes.length>0&&Pd.addClass(y,v.classes.join(" ")),Pd.setAttribs(y,v.attrs)})(f,u),f},i=(d,u,f)=>{let y;const v=u[0],k=pw(v)?v.name:void 0,E=((P,M)=>{const j=n.getElementRule(P.nodeName.toLowerCase()),q=j==null?void 0:j.parentsRequired;return!(!q||!q.length)&&(M&&lo(q,M)?M:q[0])})(d,k);if(E)k===E?(y=v,u=u.slice(1)):y=E;else if(v)y=v,u=u.slice(1);else if(!f)return d;const B=y?a(y):Pd.create("div");B.appendChild(d),f&&go.each(f,P=>{const M=a(P);B.insertBefore(M,d)});const O=pw(y)?y.siblings:void 0;return i(B,u,O)},c=Pd.create("div");if(t.length>0){const d=t[0],u=a(d),f=pw(d)?d.siblings:void 0;c.appendChild(i(u,t.slice(1),f))}return c},aC=t=>{let o="div";const n={name:o,classes:[],attrs:{},selector:t=go.trim(t)};return t!=="*"&&(o=t.replace(/(?:([#\.]|::?)([\w\-]+)|(\[)([^\]]+)\]?)/g,(a,i,c,d,u)=>{switch(i){case"#":n.attrs.id=c;break;case".":n.classes.push(c);break;case":":go.inArray("checked disabled enabled read-only required".split(" "),c)!==-1&&(n.attrs[c]=c)}if(d==="["){const f=u.match(/([\w\-]+)(?:\=\"([^\"]+))?/);f&&(n.attrs[f[1]]=f[2])}return""})),n.name=o||"div",n},mO=(t,o)=>{let n="",a=ju(t);if(a==="")return"";const i=B=>Ue(B)?B.replace(/%(\w+)/g,""):"",c=(B,O)=>Pd.getStyle(O??t.getBody(),B,!0);if(Ue(o)){const B=t.formatter.get(o);if(!B)return"";o=B[0]}if("preview"in o){const B=o.preview;if(B===!1)return"";a=B||a}let d,u=o.block||o.inline||"span";const f=(y=o.selector,Ue(y)?(y=(y=y.split(/\s*,\s*/)[0]).replace(/\s*(~\+|~|\+|>)\s*/g,"$1"),go.map(y.split(/(?:>|\s+(?![^\[\]]+\]))/),B=>{const O=go.map(B.split(/(?:~\+|~|\+)/),aC),P=O.pop();return O.length&&(P.siblings=O),P}).reverse()):[]);var y;f.length>0?(f[0].name||(f[0].name=u),u=o.selector,d=rC(f,t)):d=rC([u],t);const v=Pd.select(u,d)[0]||d.firstChild;vy(o.styles,(B,O)=>{const P=i(B);P&&Pd.setStyle(v,O,P)}),vy(o.attributes,(B,O)=>{const P=i(B);P&&Pd.setAttrib(v,O,P)}),vy(o.classes,B=>{const O=i(B);Pd.hasClass(v,O)||Pd.addClass(v,O)}),t.dispatch("PreviewFormats"),Pd.setStyles(d,{position:"absolute",left:-65535}),t.getBody().appendChild(d);const k=c("fontSize"),E=/px$/.test(k)?parseInt(k,10):0;return vy(a.split(" "),B=>{let O=c(B,v);if(!(B==="background-color"&&/transparent|rgba\s*\([^)]+,\s*0\)/.test(O)&&(O=c(B),qo(O).toLowerCase()==="#ffffff")||B==="color"&&qo(O).toLowerCase()==="#000000")){if(B==="font-size"&&/em|%$/.test(O)){if(E===0)return;O=parseFloat(O)/(/%$/.test(O)?100:1)*E+"px"}B==="border"&&O&&(n+="padding:0 2px;"),n+=B+":"+O+";"}}),t.dispatch("AfterPreviewFormats"),Pd.remove(d),n},_0=t=>{const o=(a=>{const i={},c=(d,u)=>{d&&(Ue(d)?(co(u)||(u=[u]),Se(u,f=>{fo(f.deep)&&(f.deep=!Fd(f)),fo(f.split)&&(f.split=!Fd(f)||el(f)),fo(f.remove)&&Fd(f)&&!el(f)&&(f.remove="none"),Fd(f)&&el(f)&&(f.mixed=!0,f.block_expand=!0),Ue(f.classes)&&(f.classes=f.classes.split(/\s+/))}),i[d]=u):Ft(d,(f,y)=>{c(y,f)}))};return c((d=>{const u=d.dom,f=d.schema.type,y={valigntop:[{selector:"td,th",styles:{verticalAlign:"top"}}],valignmiddle:[{selector:"td,th",styles:{verticalAlign:"middle"}}],valignbottom:[{selector:"td,th",styles:{verticalAlign:"bottom"}}],alignleft:[{selector:"figure.image",collapsed:!1,classes:"align-left",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"left"},inherit:!1,preview:!1},{selector:"img,audio,video",collapsed:!1,styles:{float:"left"},preview:"font-family font-size"},{selector:"table",collapsed:!1,styles:{marginLeft:"0px",marginRight:"auto"},onformat:v=>{u.setStyle(v,"float",null)},preview:"font-family font-size"},{selector:".mce-preview-object,[data-ephox-embed-iri]",ceFalseOverride:!0,styles:{float:"left"}}],aligncenter:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"center"},inherit:!1,preview:"font-family font-size"},{selector:"figure.image",collapsed:!1,classes:"align-center",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"img,audio,video",collapsed:!1,styles:{display:"block",marginLeft:"auto",marginRight:"auto"},preview:!1},{selector:"table",collapsed:!1,styles:{marginLeft:"auto",marginRight:"auto"},preview:"font-family font-size"},{selector:".mce-preview-object",ceFalseOverride:!0,styles:{display:"table",marginLeft:"auto",marginRight:"auto"},preview:!1},{selector:"[data-ephox-embed-iri]",ceFalseOverride:!0,styles:{marginLeft:"auto",marginRight:"auto"},preview:!1}],alignright:[{selector:"figure.image",collapsed:!1,classes:"align-right",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"right"},inherit:!1,preview:"font-family font-size"},{selector:"img,audio,video",collapsed:!1,styles:{float:"right"},preview:"font-family font-size"},{selector:"table",collapsed:!1,styles:{marginRight:"0px",marginLeft:"auto"},onformat:v=>{u.setStyle(v,"float",null)},preview:"font-family font-size"},{selector:".mce-preview-object,[data-ephox-embed-iri]",ceFalseOverride:!0,styles:{float:"right"},preview:!1}],alignjustify:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"justify"},inherit:!1,preview:"font-family font-size"}],bold:[{inline:"strong",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontWeight:"bold"}},{inline:"b",remove:"all",preserve_attributes:["class","style"]}],italic:[{inline:"em",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontStyle:"italic"}},{inline:"i",remove:"all",preserve_attributes:["class","style"]}],underline:[{inline:"span",styles:{textDecoration:"underline"},exact:!0},{inline:"u",remove:"all",preserve_attributes:["class","style"]}],strikethrough:(()=>{const v={inline:"span",styles:{textDecoration:"line-through"},exact:!0},k={inline:"strike",remove:"all",preserve_attributes:["class","style"]},E={inline:"s",remove:"all",preserve_attributes:["class","style"]};return f!=="html4"?[E,v,k]:[v,E,k]})(),forecolor:{inline:"span",styles:{color:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},hilitecolor:{inline:"span",styles:{backgroundColor:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},fontname:{inline:"span",toggle:!1,styles:{fontFamily:"%value"},clear_child_styles:!0},fontsize:{inline:"span",toggle:!1,styles:{fontSize:"%value"},clear_child_styles:!0},lineheight:{selector:"h1,h2,h3,h4,h5,h6,p,li,td,th,div",styles:{lineHeight:"%value"}},fontsize_class:{inline:"span",attributes:{class:"%value"}},blockquote:{block:"blockquote",wrapper:!0,remove:"all"},subscript:{inline:"sub"},superscript:{inline:"sup"},code:{inline:"code"},link:{inline:"a",selector:"a",remove:"all",split:!0,deep:!0,onmatch:(v,k,E)=>an(v)&&v.hasAttribute("href"),onformat:(v,k,E)=>{go.each(E,(B,O)=>{u.setAttrib(v,O,B)})}},lang:{inline:"span",clear_child_styles:!0,remove_similar:!0,attributes:{lang:"%value","data-mce-lang":v=>{var k;return(k=v==null?void 0:v.customValue)!==null&&k!==void 0?k:null}}},removeformat:[{selector:"b,strong,em,i,font,u,strike,s,sub,sup,dfn,code,samp,kbd,var,cite,mark,q,del,ins,small",remove:"all",split:!0,expand:!1,block_expand:!0,deep:!0},{selector:"span",attributes:["style","class"],remove:"empty",split:!0,expand:!1,deep:!0},{selector:"*",attributes:["style","class"],split:!1,expand:!1,deep:!0}]};return go.each("p h1 h2 h3 h4 h5 h6 div address pre dt dd samp".split(/\s/),v=>{y[v]={block:v,remove:"all"}}),y})(a)),c(OE()),c(r_(a)),{get:d=>Ze(d)?i[d]:i,has:d=>ln(i,d),register:c,unregister:d=>(d&&i[d]&&delete i[d],i)}})(t),n=bi({});return(a=>{a.addShortcut("meta+b","","Bold"),a.addShortcut("meta+i","","Italic"),a.addShortcut("meta+u","","Underline");for(let i=1;i<=6;i++)a.addShortcut("access+"+i,"",["FormatBlock",!1,"h"+i]);a.addShortcut("access+7","",["FormatBlock",!1,"p"]),a.addShortcut("access+8","",["FormatBlock",!1,"div"]),a.addShortcut("access+9","",["FormatBlock",!1,"address"])})(t),(a=>{a.on("mouseup keydown",i=>{var c;((d,u,f)=>{const y=d.selection,v=d.getBody();Vx(d,null,f),u!==8&&u!==46||!y.isCollapsed()||y.getStart().innerHTML!==wh||Vx(d,Le(v,y.getStart()),!0),u!==37&&u!==39||Vx(d,Le(v,y.getStart()),!0)})(a,i.keyCode,(c=a.selection.getRng().endContainer,ro(c)&&De(c.data,ns)))})})(t),Tm(t)||((a,i)=>{a.set({}),i.on("NodeChange",c=>{k2(i,c.element,a.get())}),i.on("FormatApply FormatRemove",c=>{const d=V.from(c.node).map(u=>wm(u)?u:u.startContainer).bind(u=>an(u)?V.some(u):V.from(u.parentElement)).getOrThunk(()=>df(i));k2(i,d,a.get())})})(n,t),{get:o.get,has:o.has,register:o.register,unregister:o.unregister,apply:(a,i,c)=>{((d,u,f,y)=>{Li(d).formatter.apply(u,f,y)})(t,a,i,c)},remove:(a,i,c,d)=>{((u,f,y,v,k)=>{Li(u).formatter.remove(f,y,v,k)})(t,a,i,c,d)},toggle:(a,i,c)=>{((d,u,f,y)=>{Li(d).formatter.toggle(u,f,y)})(t,a,i,c)},match:(a,i,c,d)=>((u,f,y,v,k)=>Li(u).formatter.match(f,y,v,k))(t,a,i,c,d),closest:a=>((i,c)=>Li(i).formatter.closest(c))(t,a),matchAll:(a,i)=>((c,d,u)=>Li(c).formatter.matchAll(d,u))(t,a,i),matchNode:(a,i,c,d)=>((u,f,y,v,k)=>Li(u).formatter.matchNode(f,y,v,k))(t,a,i,c,d),canApply:a=>((i,c)=>Li(i).formatter.canApply(c))(t,a),formatChanged:(a,i,c,d)=>((u,f,y,v,k,E)=>Li(u).formatter.formatChanged(f,y,v,k,E))(t,n,a,i,c,d),getCssText:Je(mO,t)}},sC=t=>{switch(t.toLowerCase()){case"undo":case"redo":case"mcefocus":return!0;default:return!1}},iC=t=>{const o=Ec(),n=bi(0),a=bi(0),i={data:[],typing:!1,beforeChange:()=>{((c,d,u)=>{Li(c).undoManager.beforeChange(d,u)})(t,n,o)},add:(c,d)=>((u,f,y,v,k,E,B)=>Li(u).undoManager.add(f,y,v,k,E,B))(t,i,a,n,o,c,d),dispatchChange:()=>{t.setDirty(!0);const c=ow(t);c.bookmark=yi(t.selection),t.dispatch("change",{level:c,lastLevel:$o(i.data,a.get()).getOrUndefined()})},undo:()=>((c,d,u,f)=>Li(c).undoManager.undo(d,u,f))(t,i,n,a),redo:()=>((c,d,u)=>Li(c).undoManager.redo(d,u))(t,a,i.data),clear:()=>{((c,d,u)=>{Li(c).undoManager.clear(d,u)})(t,i,a)},reset:()=>{((c,d)=>{Li(c).undoManager.reset(d)})(t,i)},hasUndo:()=>((c,d,u)=>Li(c).undoManager.hasUndo(d,u))(t,i,a),hasRedo:()=>((c,d,u)=>Li(c).undoManager.hasRedo(d,u))(t,i,a),transact:c=>((d,u,f,y)=>Li(d).undoManager.transact(u,f,y))(t,i,n,c),ignore:c=>{((d,u,f)=>{Li(d).undoManager.ignore(u,f)})(t,n,c)},extra:(c,d)=>{((u,f,y,v,k)=>{Li(u).undoManager.extra(f,y,v,k)})(t,i,a,c,d)}};return Tm(t)||((c,d,u)=>{const f=bi(!1),y=v=>{b0(d,!1,u),d.add({},v)};c.on("init",()=>{d.add()}),c.on("BeforeExecCommand",v=>{const k=v.command;sC(k)||($2(d,u),d.beforeChange())}),c.on("ExecCommand",v=>{const k=v.command;sC(k)||y(v)}),c.on("ObjectResizeStart cut",()=>{d.beforeChange()}),c.on("SaveContent ObjectResized blur",y),c.on("dragend",y),c.on("keyup",v=>{const k=v.keyCode;if(v.isDefaultPrevented())return;const E=Rn.os.isMacOS()&&v.key==="Meta";(k>=33&&k<=36||k>=37&&k<=40||k===45||v.ctrlKey||E)&&(y(),c.nodeChanged()),k!==46&&k!==8||c.nodeChanged(),f.get()&&d.typing&&!aw(ow(c),d.data[0])&&(c.isDirty()||c.setDirty(!0),c.dispatch("TypingUndo"),f.set(!1),c.nodeChanged())}),c.on("keydown",v=>{const k=v.keyCode;if(v.isDefaultPrevented())return;if(k>=33&&k<=36||k>=37&&k<=40||k===45)return void(d.typing&&y(v));const E=v.ctrlKey&&!v.altKey||v.metaKey;if((k<16||k>20)&&k!==224&&k!==91&&!d.typing&&!E)return d.beforeChange(),b0(d,!0,u),d.add({},v),void f.set(!0);(Rn.os.isMacOS()?v.metaKey:v.ctrlKey&&!v.altKey)&&d.beforeChange()}),c.on("mousedown",v=>{d.typing&&y(v)}),c.on("input",v=>{var k;v.inputType&&(v.inputType==="insertReplacementText"||(k=v).inputType==="insertText"&&k.data===null||(E=>E.inputType==="insertFromPaste"||E.inputType==="insertFromDrop")(v))&&y(v)}),c.on("AddUndo Undo Redo ClearUndos",v=>{v.isDefaultPrevented()||c.nodeChanged()})})(t,i,n),(c=>{c.addShortcut("meta+z","","Undo"),c.addShortcut("meta+y,meta+shift+z","","Redo")})(t),i},gO=[9,27,mn.HOME,mn.END,19,20,44,144,145,33,34,45,16,17,18,91,92,93,mn.DOWN,mn.UP,mn.LEFT,mn.RIGHT].concat(Rn.browser.isFirefox()?[224]:[]),NE="data-mce-placeholder",lC=t=>t.type==="keydown"||t.type==="keyup",ME=t=>{const o=t.keyCode;return o===mn.BACKSPACE||o===mn.DELETE},DE=(t,o)=>({from:t,to:o}),cC=(t,o)=>{const n=je(t),a=je(o.container());return j1(n,a).map(i=>((c,d)=>({block:c,position:d}))(i,o))},RE=(t,o)=>ts(o,n=>Sn(n)||zi(n.dom),n=>sa(n,t)).filter(kn).getOr(t),BE=(t,o)=>{const n=((a,i)=>{const c=Lt(a);return ge(c,d=>i.isBlock(Pe(d))).fold(Ct(c),d=>c.slice(0,d))})(t,o);return Se(n,Ea),n},js=(t,o)=>{const n=$g(o,t);return Fe(n.reverse(),a=>ys(a)).each(Ea)},dC=(t,o,n,a,i)=>{if(ys(n))return Oi(n),Z(n.dom);gt(ve(i),d=>!ys(d)).length===0&&ys(o)&&rl(i,_s("br"));const c=I(n.dom,Ht.before(i.dom));return Se(BE(o,a),d=>{rl(i,d)}),js(t,o),c},pO=(t,o,n,a)=>{if(ys(n)){if(ys(o)){const c=u=>{const f=(y,v)=>ur(y).fold(()=>v,k=>((E,B)=>E.isInline(Pe(B)))(a,k)?f(k,v.concat(Um(k))):v);return f(u,[])},d=pe(c(n),(u,f)=>(Dc(u,f),f),Xi());bd(o),os(o,d)}return Ea(n),Z(o.dom)}const i=Y(n.dom);return Se(BE(o,a),c=>{os(n,c)}),js(t,o),i},FE=(t,o)=>{T(t,o.dom).bind(n=>V.from(n.getNode())).map(je).filter(pl).each(Ea)},Ah=(t,o,n,a)=>(FE(!0,o),FE(!1,n),((i,c)=>lc(c,i)?((d,u)=>{const f=$g(u,d);return V.from(f[f.length-1])})(c,i):V.none())(o,n).fold(Je(pO,t,o,n,a),Je(dC,t,o,n,a))),Qg=(t,o,n,a,i)=>o?Ah(t,a,n,i):Ah(t,n,a,i),zm=(t,o)=>{const n=je(t.getBody());return((i,c,d)=>d.collapsed?((u,f,y)=>{const v=cC(u,Ht.fromRangeStart(y)),k=v.bind(E=>p(f,u,E.position).bind(B=>cC(u,B).map(O=>((P,M,j)=>da(j.position.getNode())&&!ys(j.block)?T(!1,j.block.dom).bind(q=>q.isEqual(j.position)?p(M,P,q).bind(K=>cC(P,K)):V.some(j)).getOr(j):j)(u,f,O))));return Ir(v,k,DE).filter(E=>(B=>!sa(B.from.block,B.to.block))(E)&&((B,O)=>{const P=je(B);return sa(RE(P,O.from.block),RE(P,O.to.block))})(u,E)&&(B=>Oa(B.from.block.dom)===!1&&Oa(B.to.block.dom)===!1)(E)&&(B=>{const O=P=>ri(P)||cg(P.dom);return O(B.from.block)&&O(B.to.block)})(E))})(i,c,d):V.none())(n.dom,o,t.selection.getRng()).map(i=>()=>{Qg(n,o,i.from.block,i.to.block,t.schema).each(c=>{t.selection.setRng(c.toRange())})})},uC=(t,o)=>{const n=je(o),a=Je(sa,t);return Fa(n,Sn,a).isSome()},LE=t=>{const o=je(t.getBody());return((n,a)=>{const i=I(n.dom,Ht.fromRangeStart(a)).isNone(),c=L(n.dom,Ht.fromRangeEnd(a)).isNone();return!((d,u)=>uC(d,u.startContainer)||uC(d,u.endContainer))(n,a)&&i&&c})(o,t.selection.getRng())?(n=>V.some(()=>{n.setContent(""),n.selection.setCursorLocation()}))(t):((n,a,i)=>{const c=a.getRng();return Ir(j1(n,je(c.startContainer)),j1(n,je(c.endContainer)),(d,u)=>sa(d,u)?V.none():V.some(()=>{c.deleteContents(),Qg(n,!0,d,u,i).each(f=>{a.setRng(f.toRange())})})).getOr(V.none())})(o,t.selection,t.schema)},fw=(t,o)=>t.selection.isCollapsed()?V.none():LE(t),Gu=(t,o,n,a,i)=>V.from(o._selectionOverrides.showCaret(t,n,a,i)),C0=(t,o)=>t.dispatch("BeforeObjectSelected",{target:o}).isDefaultPrevented()?V.none():V.some((n=>{const a=n.ownerDocument.createRange();return a.selectNode(n),a})(o)),S0=(t,o,n)=>o.collapsed?((a,i,c)=>{const d=Zp(1,a.getBody(),i),u=Ht.fromRangeStart(d),f=u.getNode();if(id(f))return Gu(1,a,f,!u.isAtEnd(),!1);const y=u.getNode(!0);if(id(y))return Gu(1,a,y,!1,!1);const v=Zu(a.dom.getRoot(),u.getNode());return id(v)?Gu(1,a,v,!1,c):V.none()})(t,o,n).getOr(o):o,IE=t=>Km(t)||F1(t),PE=t=>sf(t)||L1(t),hw=(t,o,n,a,i,c)=>{Gu(a,t,c.getNode(!i),i,!0).each(d=>{if(o.collapsed){const u=o.cloneRange();i?u.setEnd(d.startContainer,d.startOffset):u.setStart(d.endContainer,d.endOffset),u.deleteContents()}else o.deleteContents();t.selection.setRng(d)}),((d,u)=>{ro(u)&&u.data.length===0&&d.remove(u)})(t.dom,n)},bw=(t,o)=>((n,a)=>{const i=n.selection.getRng();if(!ro(i.commonAncestorContainer))return V.none();const c=a?Bi.Forwards:Bi.Backwards,d=nc(n.getBody()),u=Je(Lb,a?d.next:d.prev),f=a?IE:PE,y=xm(c,n.getBody(),i),v=u(y),k=v&&ld(a,v);if(!k||!Wp(y,k))return V.none();if(f(k))return V.some(()=>hw(n,i,y.getNode(),c,a,k));const E=u(k);return E&&f(E)&&Wp(k,E)?V.some(()=>hw(n,i,y.getNode(),c,a,E)):V.none()})(t,o),E0=(t,o)=>{const n=t.getBody();return o?Z(n).filter(Km):Y(n).filter(sf)},mC=t=>{const o=t.selection.getRng();return!o.collapsed&&(E0(t,!0).exists(n=>n.isEqual(Ht.fromRangeStart(o)))||E0(t,!1).exists(n=>n.isEqual(Ht.fromRangeEnd(o))))},bu=zc([{remove:["element"]},{moveToElement:["element"]},{moveToPosition:["position"]}]),Hd=(t,o,n,a)=>p(o,t,n).bind(i=>{return c=i.getNode(),Ze(c)&&(Sn(je(c))||uc(je(c)))||((d,u,f,y,v)=>{const k=E=>v.isInline(E.nodeName.toLowerCase())&&!Lr(f,y,d);return Fb(!u,f).fold(()=>Fb(u,y).fold(uo,k),k)})(t,o,n,i,a)?V.none():o&&Oa(i.getNode())||!o&&Oa(i.getNode(!0))?((d,u,f,y)=>{const v=y.getNode(!u);return j1(je(d),je(f.getNode())).map(k=>ys(k)?bu.remove(k.dom):bu.moveToElement(v)).orThunk(()=>V.some(bu.moveToElement(v)))})(t,o,n,i):o&&sf(n)||!o&&Km(n)?V.some(bu.moveToPosition(i)):V.none();var c}),gC=(t,o)=>V.from(Zu(t.getBody(),o)),fO=(t,o)=>{const n=t.selection.getNode();return gC(t,n).filter(Oa).fold(()=>((a,i,c,d)=>{const u=Zp(i?1:-1,a,c),f=Ht.fromRangeStart(u),y=je(a);return!i&&sf(f)?V.some(bu.remove(f.getNode(!0))):i&&Km(f)?V.some(bu.remove(f.getNode())):!i&&Km(f)&&Ug(y,f,d)?Rs(y,f,d).map(v=>bu.remove(v.getNode())):i&&sf(f)&&P_(y,f,d)?hx(y,f,d).map(v=>bu.remove(v.getNode())):((v,k,E,B)=>((O,P)=>{const M=P.getNode(!O),j=O?"after":"before";return an(M)&&M.getAttribute("data-mce-caret")===j})(k,E)?((O,P)=>me(P)?V.none():O&&Oa(P.nextSibling)?V.some(bu.moveToElement(P.nextSibling)):!O&&Oa(P.previousSibling)?V.some(bu.moveToElement(P.previousSibling)):V.none())(k,E.getNode(!k)).orThunk(()=>Hd(v,k,E,B)):Hd(v,k,E,B).bind(O=>((P,M,j)=>j.fold(q=>V.some(bu.remove(q)),q=>V.some(bu.moveToElement(q)),q=>Lr(M,q,P)?V.none():V.some(bu.moveToPosition(q))))(v,E,O)))(a,i,f,d)})(t.getBody(),o,t.selection.getRng(),t.schema).map(a=>()=>a.fold(((i,c)=>d=>(i._selectionOverrides.hideFakeCaret(),fc(i,c,je(d)),!0))(t,o),((i,c)=>d=>{const u=c?Ht.before(d):Ht.after(d);return i.selection.setRng(u.toRange()),!0})(t,o),(i=>c=>(i.selection.setRng(c.toRange()),!0))(t))),()=>V.some($t))},HE=t=>{const o=t.dom,n=t.selection,a=Zu(t.getBody(),n.getNode());if(zi(a)&&o.isBlock(a)&&o.isEmpty(a)){const i=o.create("br",{"data-mce-bogus":"1"});o.setHTML(a,""),a.appendChild(i),n.setRng(Ht.before(i).toRange())}return!0},xy=(t,o)=>t.selection.isCollapsed()?fO(t,o):((n,a)=>{const i=n.selection.getNode();return Oa(i)&&!al(i)?gC(n,i.parentNode).filter(Oa).fold(()=>V.some(()=>{var c;c=je(n.getBody()),Se(wa(c,".mce-offscreen-selection"),Ea),fc(n,a,je(n.selection.getNode())),V1(n)}),()=>V.some($t)):mC(n)?V.some(()=>{F4(n,n.selection.getRng(),je(n.getBody()))}):V.none()})(t,o),pC=(t,o)=>t.selection.isCollapsed()?((n,a)=>{const i=Ht.fromRangeStart(n.selection.getRng());return p(a,n.getBody(),i).filter(c=>a?PA(c):HA(c)).bind(c=>Bd(a?0:-1,c)).map(c=>()=>n.selection.select(c))})(t,o):V.none(),wy=ro,fC=t=>wy(t)&&t.data[0]===Za,yw=t=>wy(t)&&t.data[t.data.length-1]===Za,jE=t=>{var o;return((o=t.ownerDocument)!==null&&o!==void 0?o:document).createTextNode(Za)},vw=(t,o)=>t?(n=>{var a;if(wy(n.previousSibling))return yw(n.previousSibling)||n.previousSibling.appendData(Za),n.previousSibling;if(wy(n))return fC(n)||n.insertData(0,Za),n;{const i=jE(n);return(a=n.parentNode)===null||a===void 0||a.insertBefore(i,n),i}})(o):(n=>{var a,i;if(wy(n.nextSibling))return fC(n.nextSibling)||n.nextSibling.insertData(0,Za),n.nextSibling;if(wy(n))return yw(n)||n.appendData(Za),n;{const c=jE(n);return n.nextSibling?(a=n.parentNode)===null||a===void 0||a.insertBefore(c,n.nextSibling):(i=n.parentNode)===null||i===void 0||i.appendChild(c),c}})(o),VE=Je(vw,!0),$E=Je(vw,!1),ff=(t,o)=>ro(t.container())?vw(o,t.container()):vw(o,t.getNode()),Oh=(t,o)=>{const n=o.get();return n&&t.container()===n&&bs(n)},Nh=(t,o)=>o.fold(n=>{Dd(t.get());const a=VE(n);return t.set(a),V.some(Ht(a,a.length-1))},n=>Z(n).map(a=>{if(Oh(a,t)){const i=t.get();return Ht(i,1)}{Dd(t.get());const i=ff(a,!0);return t.set(i),Ht(i,1)}}),n=>Y(n).map(a=>{if(Oh(a,t)){const i=t.get();return Ht(i,i.length-1)}{Dd(t.get());const i=ff(a,!1);return t.set(i),Ht(i,i.length-1)}}),n=>{Dd(t.get());const a=$E(n);return t.set(a),V.some(Ht(a,1))}),hC=(t,o)=>{for(let n=0;nRd(o,t)||t,ZE=(t,o,n)=>{const a=xx(n),i=UE(o,a.container());return Zg(t,i,a).fold(()=>L(i,a).bind(Je(Zg,t,i)).map(c=>bc.before(c)),V.none)},T0=(t,o)=>Le(t,o)===null,bC=(t,o,n)=>Zg(t,o,n).filter(Je(T0,o)),qE=(t,o,n)=>{const a=R4(n);return bC(t,o,a).bind(i=>I(i,a).isNone()?V.some(bc.start(i)):V.none())},WE=(t,o,n)=>{const a=xx(n);return bC(t,o,a).bind(i=>L(i,a).isNone()?V.some(bc.end(i)):V.none())},hO=(t,o,n)=>{const a=R4(n),i=UE(o,a.container());return Zg(t,i,a).fold(()=>I(i,a).bind(Je(Zg,t,i)).map(c=>bc.after(c)),V.none)},Ku=t=>!H1(yC(t)),Yu=(t,o,n)=>hC([ZE,qE,WE,hO],[t,o,n]).filter(Ku),yC=t=>t.fold(R,R,R,R),GE=t=>t.fold(Ct("before"),Ct("start"),Ct("end"),Ct("after")),ya=t=>t.fold(bc.before,bc.before,bc.after,bc.after),vC=t=>t.fold(bc.start,bc.start,bc.end,bc.end),bO=(t,o,n,a,i,c)=>Ir(Zg(o,n,a),Zg(o,n,i),(d,u)=>d!==u&&((f,y,v)=>{const k=Rd(y,f),E=Rd(v,f);return Ze(k)&&k===E})(n,d,u)?bc.after(t?d:u):c).getOr(c),Bs=(t,o)=>t.fold(Bt,n=>{return i=o,!(GE(a=n)===GE(i)&&yC(a)===yC(i));var a,i}),yO=(t,o)=>t?o.fold(gn(V.some,bc.start),V.none,gn(V.some,bc.after),V.none):o.fold(V.none,gn(V.some,bc.before),V.none,gn(V.some,bc.end)),ky=(t,o,n)=>{const a=t?1:-1;return o.setRng(Ht(n.container(),n.offset()+a).toRange()),o.getSel().modify("move",t?"forward":"backward","word"),!0};var Qm;(function(t){t[t.Br=0]="Br",t[t.Block=1]="Block",t[t.Wrap=2]="Wrap",t[t.Eol=3]="Eol"})(Qm||(Qm={}));const z0=(t,o)=>t===Bi.Backwards?Ge(o):o,hf=(t,o,n)=>t===Bi.Forwards?o.next(n):o.prev(n),cd=(t,o,n,a)=>da(a.getNode(o===Bi.Forwards))?Qm.Br:Lr(n,a)===!1?Qm.Block:Qm.Wrap,_y=(t,o,n,a)=>{const i=nc(n);let c=a;const d=[];for(;c;){const u=hf(o,i,c);if(!u)break;if(da(u.getNode(!1)))return o===Bi.Forwards?{positions:z0(o,d).concat([u]),breakType:Qm.Br,breakAt:V.some(u)}:{positions:z0(o,d),breakType:Qm.Br,breakAt:V.some(u)};if(u.isVisible()){if(t(c,u)){const f=cd(0,o,c,u);return{positions:z0(o,d),breakType:f,breakAt:V.some(u)}}d.push(u),c=u}else c=u}return{positions:z0(o,d),breakType:Qm.Eol,breakAt:V.none()}},ep=(t,o,n,a)=>o(n,a).breakAt.map(i=>{const c=o(n,i).positions;return t===Bi.Backwards?c.concat(i):[i].concat(c)}).getOr([]),Xu=(t,o)=>Oe(t,(n,a)=>n.fold(()=>V.some(a),i=>Ir(Zo(i.getClientRects()),Zo(a.getClientRects()),(c,d)=>{const u=Math.abs(o-c.left);return Math.abs(o-d.left)<=u?a:i}).or(n)),V.none()),bf=(t,o)=>Zo(o.getClientRects()).bind(n=>Xu(t,n.left)),Mh=Je(_y,Ht.isAbove,-1),Dh=Je(_y,Ht.isBelow,1),xC=Je(ep,-1,Mh),wC=Je(ep,1,Dh),KE=(t,o)=>Mh(t,o).breakAt.isNone(),YE=(t,o)=>Dh(t,o).breakAt.isNone(),XE=(t,o)=>bf(xC(t,o),o),JE=(t,o)=>bf(wC(t,o),o),QE=Oa,kC=(t,o)=>Math.abs(t.left-o),xw=(t,o)=>Math.abs(t.right-o),eT=(t,o)=>$s(t,(n,a)=>{const i=Math.min(kC(n,o),xw(n,o)),c=Math.min(kC(a,o),xw(a,o));return c===i&&xr(a,"node")&&QE(a.node)||c{const o=n=>to(n,a=>{const i=Vl(a);return i.node=t,i});if(an(t))return o(t.getClientRects());if(ro(t)){const n=t.ownerDocument.createRange();return n.setStart(t,0),n.setEnd(t,t.data.length),o(n.getClientRects())}return[]},tT=t=>at(t,vO);var jd;(function(t){t[t.Up=-1]="Up",t[t.Down=1]="Down"})(jd||(jd={}));const Cy=(t,o,n,a,i,c)=>{let d=0;const u=[],f=k=>{let E=tT([k]);t===-1&&(E=E.reverse());for(let B=0;B0&&o(O,_a(u))&&d++,O.line=d,i(O))return!0;u.push(O)}}return!1},y=_a(c.getClientRects());if(!y)return u;const v=c.getNode();return v&&(f(v),((k,E,B,O)=>{let P=O;for(;P=cu(P,k,td,E);)if(B(P))return})(t,a,f,v)),u},oT=Je(Cy,jd.Up,si,ad),nT=Je(Cy,jd.Down,ad,si),_C=t=>_a(t.getClientRects()),rT=t=>o=>((n,a)=>a.line>n)(t,o),eg=t=>o=>((n,a)=>a.line===n)(t,o),tp=(t,o)=>{t.selection.setRng(o),bh(t,t.selection.getRng())},CC=(t,o,n)=>V.some(S0(t,o,n)),aT=(t,o,n,a,i,c)=>{const d=o===Bi.Forwards,u=nc(t.getBody()),f=Je(Lb,d?u.next:u.prev),y=d?a:i;if(!n.collapsed){const O=cb(n);if(c(O))return Gu(o,t,O,o===Bi.Backwards,!1);if(mC(t)){const P=n.cloneRange();return P.collapse(o===Bi.Backwards),V.from(P)}}const v=xm(o,t.getBody(),n);if(y(v))return C0(t,v.getNode(!d));let k=f(v);const E=J(n);if(!k)return E?V.some(n):V.none();if(k=ld(d,k),y(k))return Gu(o,t,k.getNode(!d),d,!1);const B=f(k);return B&&y(B)&&Wp(k,B)?Gu(o,t,B.getNode(!d),d,!1):E?CC(t,k.toRange(),!1):V.none()},sT=(t,o,n,a,i,c)=>{const d=xm(o,t.getBody(),n),u=_a(d.getClientRects()),f=o===jd.Down,y=t.getBody();if(!u)return V.none();if(mC(t)){const P=f?Ht.fromRangeEnd(n):Ht.fromRangeStart(n);return(f?JE:XE)(y,P).orThunk(()=>V.from(P)).map(M=>M.toRange())}const v=(f?nT:oT)(y,rT(1),d),k=gt(v,eg(1)),E=u.left,B=eT(k,E);if(B&&c(B.node)){const P=Math.abs(E-B.left),M=Math.abs(E-B.right);return Gu(o,t,B.node,P{const ee=nc(q);let ke,et,st,mt;const kt=[];let Ve=0;j===1?(ke=ee.next,et=ad,st=si,mt=Ht.after(re)):(ke=ee.prev,et=si,st=ad,mt=Ht.before(re));const ot=_C(mt);do{if(!mt.isVisible())continue;const pt=_C(mt);if(st(pt,ot))continue;kt.length>0&&et(pt,_a(kt))&&Ve++;const Jt=Vl(pt);if(Jt.position=mt,Jt.line=Ve,K(Jt))return kt;kt.push(Jt)}while(mt=ke(mt));return kt})(o,y,rT(1),O);let M=eT(gt(P,eg(1)),E);if(M||(M=_a(gt(P,eg(0))),M))return CC(t,M.position.toRange(),!1)}return k.length===0?SC(t,f).filter(f?i:a).map(P=>S0(t,P.toRange(),!1)):V.none()},SC=(t,o)=>{const n=t.selection.getRng(),a=o?Ht.fromRangeEnd(n):Ht.fromRangeStart(n),i=(c=a.container(),d=t.getBody(),Fa(je(c),u=>mh(u.dom),u=>u.dom===d).map(u=>u.dom).getOr(d));var c,d;if(o){const u=Dh(i,a);return Gn(u.positions)}{const u=Mh(i,a);return Zo(u.positions)}},iT=(t,o,n)=>SC(t,o).filter(n).exists(a=>(t.selection.setRng(a.toRange()),!0)),ww=(t,o)=>{const n=t.dom.createRng();n.setStart(o.container(),o.offset()),n.setEnd(o.container(),o.offset()),t.selection.setRng(n)},lT=(t,o)=>{t?o.setAttribute("data-mce-selected","inline-boundary"):o.removeAttribute("data-mce-selected")},cT=(t,o,n)=>Nh(o,n).map(a=>(ww(t,a),n)),kw=(t,o,n)=>{const a=t.getBody(),i=((c,d,u)=>{const f=Ht.fromRangeStart(c);if(c.collapsed)return f;{const y=Ht.fromRangeEnd(c);return u?I(d,y).getOr(y):L(d,f).getOr(f)}})(t.selection.getRng(),a,n);return((c,d,u,f)=>{const y=ld(c,f),v=Yu(d,u,y);return Yu(d,u,y).bind(Je(yO,c)).orThunk(()=>((k,E,B,O,P)=>{const M=ld(k,P);return p(k,B,M).map(Je(ld,k)).fold(()=>O.map(ya),j=>Yu(E,B,j).map(Je(bO,k,E,B,M,j)).filter(Je(Bs,O))).filter(Ku)})(c,d,u,v,f))})(n,Je($u,t),a,i).bind(c=>cT(t,o,c))},dT=(t,o,n)=>!!su(t)&&kw(t,o,n).isSome(),Sy=(t,o,n)=>!!su(o)&&((a,i)=>{const c=i.selection.getRng(),d=a?Ht.fromRangeEnd(c):Ht.fromRangeStart(c);return!!(u=>de(u.selection.getSel().modify))(i)&&(a&&Hl(d)?ky(!0,i.selection,d):!(a||!_d(d))&&ky(!1,i.selection,d))})(t,o),EC=t=>{const o=bi(null),n=Je($u,t);return t.on("NodeChange",a=>{su(t)&&(((i,c,d)=>{const u=to(wa(je(c.getRoot()),'*[data-mce-selected="inline-boundary"]'),v=>v.dom),f=gt(u,i),y=gt(d,i);Se(Gt(f,y),Je(lT,!1)),Se(Gt(y,f),Je(lT,!0))})(n,t.dom,a.parents),((i,c)=>{const d=c.get();if(i.selection.isCollapsed()&&!i.composing&&d){const u=Ht.fromRangeStart(i.selection.getRng());Ht.isTextPosition(u)&&!(f=>Hl(f)||_d(f))(u)&&(ww(i,dh(d,u)),c.set(null))}})(t,o),((i,c,d,u)=>{if(c.selection.isCollapsed()){const f=gt(u,i);Se(f,y=>{const v=Ht.fromRangeStart(c.selection.getRng());Yu(i,c.getBody(),v).bind(k=>cT(c,d,k))})}})(n,t,o,a.parents))}),o},Rh=Je(Sy,!0),Bh=Je(Sy,!1),Fh=(t,o,n)=>{if(su(t)){const a=SC(t,o).getOrThunk(()=>{const i=t.selection.getRng();return o?Ht.fromRangeEnd(i):Ht.fromRangeStart(i)});return Yu(Je($u,t),t.getBody(),a).exists(i=>{const c=ya(i);return Nh(n,c).exists(d=>(ww(t,d),!0))})}return!1},A0=(t,o)=>n=>Nh(o,n).map(a=>()=>ww(t,a)),yf=(t,o,n,a)=>{const i=t.getBody(),c=Je($u,t);t.undoManager.ignore(()=>{t.selection.setRng(((d,u)=>{const f=document.createRange();return f.setStart(d.container(),d.offset()),f.setEnd(u.container(),u.offset()),f})(n,a)),V_(t),Yu(c,i,Ht.fromRangeStart(t.selection.getRng())).map(vC).bind(A0(t,o)).each(Rt)}),t.nodeChanged()},op=(t,o,n)=>{if(t.selection.isCollapsed()&&su(t)){const a=Ht.fromRangeStart(t.selection.getRng());return((i,c,d,u)=>{const f=((k,E)=>Rd(E,k)||k)(i.getBody(),u.container()),y=Je($u,i),v=Yu(y,f,u);return v.bind(k=>d?k.fold(Ct(V.some(vC(k))),V.none,Ct(V.some(ya(k))),V.none):k.fold(V.none,Ct(V.some(ya(k))),V.none,Ct(V.some(vC(k))))).map(A0(i,c)).getOrThunk(()=>{const k=b(d,f,u),E=k.bind(B=>Yu(y,f,B));return Ir(v,E,()=>Zg(y,f,u).bind(B=>(O=>Ir(Z(O),Y(O),(P,M)=>{const j=ld(!0,P),q=ld(!1,M);return L(O,j).forall(K=>K.isEqual(q))}).getOr(!0))(B)?V.some(()=>{fc(i,d,je(B))}):V.none())).getOrThunk(()=>E.bind(()=>k.map(B=>()=>{d?yf(i,c,u,B):yf(i,c,B,u)})))})})(t,o,n,a)}return V.none()},O0=(t,o)=>{const n=je(t.getBody()),a=je(t.selection.getStart()),i=$g(a,n);return ge(i,o).fold(Ct(i),c=>i.slice(0,c))},_w=t=>ei(t)===1,TC=(t,o)=>{const n=Je(e0,t);return at(o,a=>n(a)?[a.dom]:[])},Cw=t=>{const o=(n=>O0(n,a=>n.schema.isBlock(Pe(a))))(t);return TC(t,o)},zC=(t,o)=>{const n=gt((a=>O0(a,i=>a.schema.isBlock(Pe(i))||(c=>ei(c)>1)(i)))(t),_w);return Gn(n).bind(a=>{const i=Ht.fromRangeStart(t.selection.getRng());return $_(o,i,a.dom)&&!c_(a)?V.some(()=>((c,d,u,f)=>{const y=TC(d,f);if(y.length===0)fc(d,c,u);else{const v=Q1(u.dom,y);d.selection.setRng(v.toRange())}})(o,t,a,n)):V.none()})},AC=(t,o)=>{const n=t.selection.getStart(),a=((i,c)=>{const d=c.parentElement;return da(c)&&!he(d)&&i.dom.isEmpty(d)})(t,n)||c_(je(n))?Q1(n,o):((i,c)=>{const{caretContainer:d,caretPosition:u}=J1(c);return i.insertNode(d.dom),u})(t.selection.getRng(),o);t.selection.setRng(a.toRange())},OC=t=>ro(t.startContainer),Ey=t=>{const o=t.selection.getRng();return(n=>n.startOffset===0&&OC(n))(o)&&((n,a)=>{const i=a.startContainer.parentElement;return!he(i)&&e0(n,je(i))})(t,o)&&(n=>(a=>(i=>{const c=i.startContainer.parentNode,d=i.endContainer.parentNode;return!he(c)&&!he(d)&&c.isEqualNode(d)})(a)&&(i=>{const c=i.endContainer;return i.endOffset===(ro(c)?c.length:c.childNodes.length)})(a))(n)||(a=>!a.endContainer.isEqualNode(a.commonAncestorContainer))(n))(o)},Sw=(t,o)=>t.selection.isCollapsed()?zC(t,o):(n=>{if(Ey(n)){const a=Cw(n);return V.some(()=>{V_(n),((i,c)=>{const d=Gt(c,Cw(i));d.length>0&&AC(i,d)})(n,a)})}return V.none()})(t),uT=(t,o)=>Fa(t,n=>be(n.dom),n=>o.isBlock(Pe(n))).isSome(),Ty=t=>((o=>{const n=o.selection.getRng();return n.collapsed&&(OC(n)||o.dom.isEmpty(n.startContainer))&&!(a=>uT(je(a.selection.getStart()),a.schema))(o)})(t)&&AC(t,[]),!0),zy=(t,o,n)=>Ze(n)?V.some(()=>{t._selectionOverrides.hideFakeCaret(),fc(t,o,je(n))}):V.none(),Ew=(t,o)=>t.selection.isCollapsed()?((n,a)=>{const i=a?F1:L1,c=a?Bi.Forwards:Bi.Backwards,d=xm(c,n.getBody(),n.selection.getRng());return i(d)?zy(n,a,d.getNode(!a)):V.from(ld(a,d)).filter(u=>i(u)&&Wp(d,u)).bind(u=>zy(n,a,u.getNode(!a)))})(t,o):((n,a)=>{const i=n.selection.getNode();return $i(i)?zy(n,a,i):V.none()})(t,o),Tw=t=>Vr(t??"").getOr(0),NC=(t,o)=>(t||Pe(o)==="table"?"margin":"padding")+(Yi(o,"direction")==="rtl"?"-right":"-left"),MC=t=>{const o=np(t);return!t.mode.isReadOnly()&&(o.length>1||((n,a)=>ze(a,i=>{const c=NC(u1(n),i),d=om(i,c).map(Tw).getOr(0);return n.dom.getContentEditable(i.dom)!=="false"&&d>0}))(t,o))},tg=t=>hs(t)||uc(t),np=t=>gt(Xc(t.selection.getSelectedBlocks()),o=>!tg(o)&&!(n=>Gi(n).exists(tg))(o)&&ts(o,n=>zi(n.dom)||Oa(n.dom)).exists(n=>zi(n.dom))),yu=(t,o)=>{var n,a;const{dom:i}=t,c=Ul(t),d=(a=(n=/[a-z%]+$/i.exec(c))===null||n===void 0?void 0:n[0])!==null&&a!==void 0?a:"px",u=Tw(c),f=u1(t);Se(np(t),y=>{((v,k,E,B,O,P)=>{const M=NC(E,je(P)),j=Tw(v.getStyle(P,M));if(k==="outdent"){const q=Math.max(0,j-B);v.setStyle(P,M,q?q+O:"")}else{const q=j+B+O;v.setStyle(P,M,q)}})(i,o,f,u,d,y.dom)})},zw=t=>yu(t,"outdent"),Aw=t=>{if(t.selection.isCollapsed()&&MC(t)){const o=t.dom,n=t.selection.getRng(),a=Ht.fromRangeStart(n),i=o.getParent(n.startContainer,o.isBlock);if(i!==null&&fx(je(i),a,t.schema))return V.some(()=>zw(t))}return V.none()},DC=(t,o,n)=>zn([Aw,xy,bw,(a,i)=>op(a,o,i),zm,J_,pC,Ew,fw,Sw],a=>a(t,n)).filter(a=>t.selection.isEditable()),mT=(t,o)=>{t.addCommand("delete",()=>{((n,a)=>{DC(n,a,!1).fold(()=>{n.selection.isEditable()&&(V_(n),V1(n))},Rt)})(t,o)}),t.addCommand("forwardDelete",()=>{((n,a)=>{DC(n,a,!0).fold(()=>{n.selection.isEditable()&&(i=>{wx(i,"ForwardDelete")})(n)},Rt)})(t,o)})},RC=t=>t.touches===void 0||t.touches.length!==1?V.none():V.some(t.touches[0]),N0=(t,o)=>ln(t,o.nodeName),gT=(t,o)=>!!ro(o)||!!an(o)&&!(N0(t.getBlockElements(),o)||No(o)||Ed(t,o)||ig(o)),pT=(t,o)=>{if(ro(o)){if(o.data.length===0)return!0;if(/^\s+$/.test(o.data))return!o.nextSibling||N0(t,o.nextSibling)||ig(o.nextSibling)}return!1},Ow=t=>t.dom.create(Ts(t),gc(t)),og=t=>{const o=t.dom,n=t.selection,a=t.schema,i=a.getBlockElements(),c=n.getStart(),d=t.getBody();let u,f,y=!1;const v=Ts(t);if(!c||!an(c))return;const k=d.nodeName.toLowerCase();if(!a.isValidChild(k,v.toLowerCase())||((K,re,ee)=>zo(_4(je(ee),je(re)),ke=>N0(K,ke.dom)))(i,d,c))return;const E=n.getRng(),{startContainer:B,startOffset:O,endContainer:P,endOffset:M}=E,j=rf(t);let q=d.firstChild;for(;q;)if(an(q)&&lg(a,q),gT(a,q)){if(pT(i,q)){f=q,q=q.nextSibling,o.remove(f);continue}u||(u=Ow(t),d.insertBefore(u,q),y=!0),f=q,q=q.nextSibling,u.appendChild(f)}else u=null,q=q.nextSibling;y&&j&&(E.setStart(B,O),E.setEnd(P,M),n.setRng(E),t.nodeChanged())},vu=(t,o,n)=>{const a=je(Ow(t)),i=Xi();os(a,i),n(o,a);const c=document.createRange();return c.setStartBefore(i.dom),c.setEndBefore(i.dom),c},M0=t=>o=>(" "+o.attr("class")+" ").indexOf(t)!==-1,fT=(t,o,n)=>function(a){const i=arguments,c=i[i.length-2],d=c>0?o.charAt(c-1):"";if(d==='"')return a;if(d===">"){const u=o.lastIndexOf("<",c);if(u!==-1&&o.substring(u,c).indexOf('contenteditable="false"')!==-1)return a}return''+t.dom.encode(typeof i[1]=="string"?i[1]:i[0])+""},D0=(t,o)=>{o.hasAttribute("data-mce-caret")&&(H(o),t.selection.setRng(t.selection.getRng()),t.selection.scrollIntoView(o))},hT=(t,o)=>{const n=(a=>fd(je(a.getBody()),"*[data-mce-caret]").map(i=>i.dom).getOrNull())(t);if(n)return o.type==="compositionstart"?(o.preventDefault(),o.stopPropagation(),void D0(t,n)):void(ed(n)&&(D0(t,n),t.undoManager.add()))},BC=Oa,FC=(t,o,n)=>{const a=nc(t.getBody()),i=Je(Lb,o===1?a.next:a.prev);if(n.collapsed){const c=t.dom.getParent(n.startContainer,"PRE");if(!c)return;if(!i(Ht.fromRangeStart(n))){const d=je((u=>{const f=u.dom.create(Ts(u));return f.innerHTML='
    ',f})(t));o===1?Da(je(c),d):rl(je(c),d),t.selection.select(d.dom,!0),t.selection.collapse()}}},LC=(t,o)=>((n,a)=>{const i=a?Bi.Forwards:Bi.Backwards,c=n.selection.getRng();return((d,u,f)=>aT(u,d,f,Km,sf,BC))(i,n,c).orThunk(()=>(FC(n,i,c),V.none()))})(t,((n,a)=>{const i=a?n.getEnd(!0):n.getStart(!0);return H1(i)?!a:a})(t.selection,o)).exists(n=>(tp(t,n),!0)),IC=(t,o)=>((n,a)=>{const i=a?1:-1,c=n.selection.getRng();return((d,u,f)=>sT(u,d,f,y=>Km(y)||k4(y),y=>sf(y)||px(y),BC))(i,n,c).orThunk(()=>(FC(n,i,c),V.none()))})(t,o).exists(n=>(tp(t,n),!0)),PC=(t,o)=>iT(t,o,o?sf:Km),Lh=(t,o)=>E0(t,!o).map(n=>{const a=n.toRange(),i=t.selection.getRng();return o?a.setStart(i.startContainer,i.startOffset):a.setEnd(i.endContainer,i.endOffset),a}).exists(n=>(tp(t,n),!0)),HC=t=>lo(["figcaption"],Pe(t)),jC=(t,o)=>!!t.selection.isCollapsed()&&((n,a)=>{const i=je(n.getBody()),c=Ht.fromRangeStart(n.selection.getRng());return((d,u,f)=>{const y=Je(sa,u);return ts(je(d.container()),v=>f.isBlock(Pe(v)),y).filter(HC)})(c,i,n.schema).exists(()=>{if(((d,u,f)=>u?YE(d.dom,f):KE(d.dom,f))(i,a,c)){const d=vu(n,i,a?os:Jl);return n.selection.setRng(d),!0}return!1})})(t,o),Nw=(t,o)=>((n,a)=>a?V.from(n.dom.getParent(n.selection.getNode(),"details")).map(i=>((c,d)=>{const u=c.selection.getRng(),f=Ht.fromRangeStart(u);return!(c.getBody().lastChild!==d||!YE(d,f)||(c.execCommand("InsertNewBlockAfter"),0))})(n,i)).getOr(!1):V.from(n.dom.getParent(n.selection.getNode(),"summary")).bind(i=>V.from(n.dom.getParent(i,"details")).map(c=>((d,u,f)=>{const y=d.selection.getRng(),v=Ht.fromRangeStart(y);return!(d.getBody().firstChild!==u||!KE(f,v)||(d.execCommand("InsertNewBlockBefore"),0))})(n,c,i))).getOr(!1))(t,o),bT={shiftKey:!1,altKey:!1,ctrlKey:!1,metaKey:!1,keyCode:0},yT=(t,o)=>o.keyCode===t.keyCode&&o.shiftKey===t.shiftKey&&o.altKey===t.altKey&&o.ctrlKey===t.ctrlKey&&o.metaKey===t.metaKey,lr=(t,...o)=>()=>t.apply(null,o),R0=(t,o)=>Fe(((n,a)=>at((i=>to(i,c=>({...bT,...c})))(n),i=>yT(i,a)?[i]:[]))(t,o),n=>n.action()),vT=(t,o)=>zn(((n,a)=>at((i=>to(i,c=>({...bT,...c})))(n),i=>yT(i,a)?[i]:[]))(t,o),n=>n.action()),xT=(t,o)=>{const n=o?Bi.Forwards:Bi.Backwards,a=t.selection.getRng();return aT(t,n,a,F1,L1,$i).exists(i=>(tp(t,i),!0))},B0=(t,o)=>{const n=o?1:-1,a=t.selection.getRng();return sT(t,n,a,F1,L1,$i).exists(i=>(tp(t,i),!0))},Mw=(t,o)=>iT(t,o,o?L1:F1),VC=zc([{none:["current"]},{first:["current"]},{middle:["current","target"]},{last:["current"]}]),Ih={...VC,none:t=>VC.none(t)},wT=(t,o,n)=>at(Lt(t),a=>Ci(a,o)?n(a)?[a]:[]:wT(a,o,n)),kT=(t,o)=>Yc(t,"table",o),$C=(t,o,n,a,i=Bt)=>{const c=a===1;if(!c&&n<=0)return Ih.first(t[0]);if(c&&n>=t.length-1)return Ih.last(t[t.length-1]);{const d=n+a,u=t[d];return i(u)?Ih.middle(o,u):$C(t,o,d,a,i)}},_T=(t,o)=>kT(t,o).bind(n=>{const a=wT(n,"th,td",Bt);return ge(a,i=>sa(t,i)).map(i=>({index:i,all:a}))}),CT=(t,o,n,a,i)=>{const c=wa(je(n),"td,th,caption").map(u=>u.dom),d=gt(((u,f)=>at(f,y=>{const v=((k,E)=>({left:k.left-E,top:k.top-E,right:k.right+-2,bottom:k.bottom+-2,width:k.width+E,height:k.height+E}))(Vl(y.getBoundingClientRect()),-1);return[{x:v.left,y:u(v),cell:y},{x:v.right,y:u(v),cell:y}]}))(t,c),u=>o(u,i));return((u,f,y)=>Oe(u,(v,k)=>v.fold(()=>V.some(k),E=>{const B=Math.sqrt(Math.abs(E.x-f)+Math.abs(E.y-y)),O=Math.sqrt(Math.abs(k.x-f)+Math.abs(k.y-y));return V.some(Ou.cell)},xO=Je(CT,t=>t.bottom,(t,o)=>t.yt.top,(t,o)=>t.y>o),F0=(t,o,n)=>{const a=t(o,n);return(i=>i.breakType===Qm.Wrap&&i.positions.length===0)(a)||!da(n.getNode())&&(i=>i.breakType===Qm.Br&&i.positions.length===1)(a)?!((i,c,d)=>d.breakAt.exists(u=>i(c,u).breakAt.isSome()))(t,o,a):a.breakAt.isNone()},Rw=Je(F0,Mh),wO=Je(F0,Dh),kO=(t,o,n,a)=>{const i=t.selection.getRng(),c=o?1:-1;return!(!Rb()||!((d,u,f)=>{const y=Ht.fromRangeStart(u);return T(!d,f).exists(v=>v.isEqual(y))})(o,i,n)||(Gu(c,t,n,!o,!1).each(d=>{tp(t,d)}),0))},ST=(t,o,n)=>{const a=((c,d)=>{const u=d.getNode(c);return Ms(u)?V.some(u):V.none()})(!!o,n),i=o===!1;a.fold(()=>tp(t,n.toRange()),c=>T(i,t.getBody()).filter(d=>d.isEqual(n)).fold(()=>tp(t,n.toRange()),d=>((u,f,y)=>{f.undoManager.transact(()=>{const v=u?Da:rl,k=vu(f,je(y),v);tp(f,k)})})(o,t,c)))},_O=(t,o,n,a)=>{const i=t.selection.getRng(),c=Ht.fromRangeStart(i),d=t.getBody();if(!o&&Rw(a,c)){const u=((f,y,v)=>((k,E)=>Zo(E.getClientRects()).bind(B=>xO(k,B.left,B.top)).bind(B=>{return bf(Y(O=B).map(P=>Mh(O,P).positions.concat(P)).getOr([]),E);var O}))(y,v).orThunk(()=>Zo(v.getClientRects()).bind(k=>Xu(xC(f,Ht.before(y)),k.left))).getOr(Ht.before(y)))(d,n,c);return ST(t,o,u),!0}if(o&&wO(a,c)){const u=((f,y,v)=>((k,E)=>Gn(E.getClientRects()).bind(B=>Dw(k,B.left,B.top)).bind(B=>{return bf(Z(O=B).map(P=>[P].concat(Dh(O,P).positions)).getOr([]),E);var O}))(y,v).orThunk(()=>Zo(v.getClientRects()).bind(k=>Xu(wC(f,Ht.after(y)),k.left))).getOr(Ht.after(y)))(d,n,c);return ST(t,o,u),!0}return!1},ET=(t,o,n)=>V.from(t.dom.getParent(t.selection.getNode(),"td,th")).bind(a=>V.from(t.dom.getParent(a,"table")).map(i=>n(t,o,i,a))).getOr(!1),TT=(t,o)=>ET(t,o,kO),Vd=(t,o)=>ET(t,o,_O),Bw=(t,o,n)=>n.fold(V.none,V.none,(a,i)=>{return(c=i,Kc(c,c4)).map(d=>(u=>{const f=Wb.exact(u,0,u,0);return EA(f)})(d));var c},a=>(t.execCommand("mceTableInsertRowAfter"),UC(t,o,a))),UC=(t,o,n)=>{return Bw(t,o,(i=nl,_T(a=n,void 0).fold(()=>Ih.none(a),c=>$C(c.all,a,c.index,1,i))));var a,i},zT=(t,o,n)=>{return Bw(t,o,(i=nl,_T(a=n,void 0).fold(()=>Ih.none(),c=>$C(c.all,a,c.index,-1,i))));var a,i},ZC=(t,o)=>{const n=["table","li","dl"],a=je(t.getBody()),i=d=>{const u=Pe(d);return sa(d,a)||lo(n,u)},c=t.selection.getRng();return((d,u)=>((f,y,v=uo)=>v(y)?V.none():lo(f,Pe(y))?V.some(y):Ua(y,f.join(","),k=>Ci(k,"table")||v(k)))(["td","th"],d,u))(je(o?c.endContainer:c.startContainer),i).map(d=>(kT(d,i).each(u=>{t.model.table.clearSelectedCells(u.dom)}),t.selection.collapse(!o),(o?UC:zT)(t,i,d).each(u=>{t.selection.setRng(u)}),!0)).getOr(!1)},Am=(t,o)=>({container:t,offset:o}),L0=wr.DOM,Fw=t=>o=>t===o?-1:0,vf=(t,o,n)=>{if(ro(t)&&o>=0)return V.some(Am(t,o));{const a=um(L0);return V.from(a.backwards(t,o,Fw(t),n)).map(i=>Am(i.container,i.container.data.length))}},Lw=(t,o,n)=>{if(!ro(t))return V.none();const a=t.data;if(o>=0&&o<=a.length)return V.some(Am(t,o));{const i=um(L0);return V.from(i.backwards(t,o,Fw(t),n)).bind(c=>{const d=c.container.data;return Lw(c.container,o+d.length,n)})}},qC=(t,o,n)=>{if(!ro(t))return V.none();const a=t.data;if(o<=a.length)return V.some(Am(t,o));{const i=um(L0);return V.from(i.forwards(t,o,Fw(t),n)).bind(c=>qC(c.container,o-a.length,n))}},Iw=(t,o,n,a,i)=>{const c=um(t,(d=>u=>d.isBlock(u)||lo(["BR","IMG","HR","INPUT"],u.nodeName)||d.getContentEditable(u)==="false")(t));return V.from(c.backwards(o,n,a,i))},Pw=t=>qs(t.toString().replace(/\u00A0/g," ")),AT=t=>t!==""&&`  \f +\r \v`.indexOf(t)!==-1,WC=(t,o)=>t.substring(o.length),rp=(t,o,n,a=0)=>{return(i=je(o.startContainer),Yc(i,d4)).fold(()=>((c,d,u,f=0)=>{if(!(y=d).collapsed||!ro(y.startContainer))return V.none();var y;const v={text:"",offset:0},k=c.getParent(d.startContainer,c.isBlock)||c.getRoot();return Iw(c,d.startContainer,d.startOffset,(E,B,O)=>(v.text=O+v.text,v.offset+=B,((P,M,j)=>{let q;const K=j.charAt(0);for(q=M-1;q>=0;q--){const re=P.charAt(q);if(AT(re))return V.none();if(K===re&&Xr(P,j,q,M))break}return V.some(q)})(v.text,v.offset,u).getOr(B)),k).bind(E=>{const B=d.cloneRange();if(B.setStart(E.container,E.offset),B.setEnd(d.endContainer,d.endOffset),B.collapsed)return V.none();const O=Pw(B);return O.lastIndexOf(u)!==0||WC(O,u).length{const d=t.createRng();d.selectNode(c.dom);const u=Pw(d);return V.some({range:d,text:WC(u,n),trigger:n})});var i},Hw=t=>{if((o=>o.nodeType===3)(t))return Am(t,t.data.length);{const o=t.childNodes;return o.length>0?Hw(o[o.length-1]):Am(t,o.length)}},OT=(t,o)=>{const n=t.childNodes;return n.length>0&&o0&&(a=>a.nodeType===1)(t)&&n.length===o?Hw(n[n.length-1]):Am(t,o)},NT=(t,o,n,a={})=>{var i;const c=o(),d=(i=t.selection.getRng().startContainer.nodeValue)!==null&&i!==void 0?i:"",u=gt(c.lookupByTrigger(n.trigger),y=>n.text.length>=y.minChars&&y.matches.getOrThunk(()=>(v=>k=>{const E=OT(k.startContainer,k.startOffset);return!((B,O)=>{var P;const M=(P=B.getParent(O.container,B.isBlock))!==null&&P!==void 0?P:B.getRoot();return Iw(B,O.container,O.offset,(j,q)=>q===0?-1:q,M).filter(j=>{const q=j.container.data.charAt(j.offset-1);return!AT(q)}).isSome()})(v,E)})(t.dom))(n.range,d,n.text));if(u.length===0)return V.none();const f=Promise.all(to(u,y=>y.fetch(n.text,y.maxResults,a).then(v=>({matchText:n.text,items:v,columns:y.columns,onAction:y.onAction,highlightOn:y.highlightOn}))));return V.some({lookupData:f,context:n})};var Uc;(function(t){t[t.Error=0]="Error",t[t.Value=1]="Value"})(Uc||(Uc={}));const jw=(t,o,n)=>t.stype===Uc.Error?o(t.serror):n(t.svalue),ap=t=>({stype:Uc.Value,svalue:t}),I0=t=>({stype:Uc.Error,serror:t}),CO=jw,Om=t=>it(t)&&ut(t).length>100?" removed due to size":JSON.stringify(t,null,2),Ay=(t,o)=>I0([{path:t,getErrorInfo:o}]),GC=(t,o)=>({extract:(n,a)=>Fn(a,t).fold(()=>((i,c)=>Ay(i,()=>'Choice schema did not contain choice key: "'+c+'"'))(n,t),i=>((c,d,u,f)=>Fn(u,f).fold(()=>((y,v,k)=>Ay(y,()=>'The chosen schema: "'+k+'" did not exist in branches: '+Om(v)))(c,u,f),y=>y.extract(c.concat(["branch: "+f]),d)))(n,a,o,i)),toString:()=>"chooseOn("+t+"). Possible values: "+ut(o)}),KC=t=>(...o)=>{if(o.length===0)throw new Error("Can't merge zero objects");const n={};for(let a=0;aSo(t)&&So(o)?Vw(t,o):o),YC=t=>({tag:"defaultedThunk",process:Ct(t)}),MT=t=>{const o=(a=>{const i=[],c=[];return Se(a,d=>{jw(d,u=>c.push(u),u=>i.push(u))}),{values:i,errors:c}})(t);return o.errors.length>0?(n=o.errors,gn(I0,Me)(n)):ap(o.values);var n},DT=(t,o,n)=>{switch(t.tag){case"field":return o(t.key,t.newKey,t.presence,t.prop);case"custom":return n(t.newKey,t.instantiator)}},Ph=t=>({extract:(o,n)=>{return a=t(n),i=c=>((d,u)=>Ay(d,Ct(u)))(o,c),a.stype===Uc.Error?i(a.serror):a;var a,i},toString:Ct("val")}),$w=Ph(ap),XC=(t,o,n,a)=>a(Fn(t,o).getOrThunk(()=>n(t))),RT=(t,o,n,a,i)=>{const c=u=>i.extract(o.concat([a]),u),d=u=>u.fold(()=>ap(V.none()),f=>{return v=i.extract(o.concat([a]),f),k=V.some,v.stype===Uc.Value?{stype:Uc.Value,svalue:k(v.svalue)}:v;var v,k});switch(t.tag){case"required":return((u,f,y,v)=>Fn(f,y).fold(()=>((k,E,B)=>Ay(k,()=>'Could not find valid *required* value for "'+E+'" in '+Om(B)))(u,y,f),v))(o,n,a,c);case"defaultedThunk":return XC(n,a,t.process,c);case"option":return((u,f,y)=>y(Fn(u,f)))(n,a,d);case"defaultedOptionThunk":return((u,f,y,v)=>v(Fn(u,f).map(k=>k===!0?y(u):k)))(n,a,t.process,d);case"mergeWithThunk":return XC(n,a,Ct({}),u=>{const f=Vw(t.process(n),u);return c(f)})}},Uw=t=>({extract:(o,n)=>((a,i,c)=>{const d={},u=[];for(const f of c)DT(f,(y,v,k,E)=>{const B=RT(k,a,i,y,E);CO(B,O=>{u.push(...O)},O=>{d[v]=O})},(y,v)=>{d[y]=v(i)});return u.length>0?I0(u):ap(d)})(o,n,t),toString:()=>`obj{ +`+to(t,n=>DT(n,(a,i,c,d)=>a+" -> "+d.toString(),(a,i)=>"state("+a+")")).join(` +`)+"}"}),JC=t=>({extract:(o,n)=>{const a=to(n,(i,c)=>t.extract(o.concat(["["+c+"]"]),i));return MT(a)},toString:()=>"array("+t.toString()+")"}),Zw=(t,o,n)=>{return a=((i,c,d)=>((u,f)=>u.stype===Uc.Error?{stype:Uc.Error,serror:f(u.serror)}:u)(c.extract([i],d),u=>({input:d,errors:u})))(t,o,n),jw(a,$l.error,$l.value);var a},qw=(t,o)=>GC(t,vo(o,Uw)),P0=Ct($w),Ww=(t,o)=>Ph(n=>{const a=typeof n;return t(n)?ap(n):I0(`Expected type: ${o} but got: ${a}`)}),BT=Ww(rt,"number"),Gw=Ww(Ue,"string"),SO=Ww(Dt,"boolean"),Kw=Ww(de,"function"),Oy=(t,o,n,a)=>({tag:"field",key:t,newKey:o,presence:n,prop:a}),FT=(t,o)=>({tag:"custom",newKey:t,instantiator:o}),QC=(t,o)=>Oy(t,t,{tag:"required",process:{}},o),xf=t=>QC(t,Gw),eS=t=>QC(t,Kw),H0=(t,o)=>Oy(t,t,{tag:"option",process:{}},o),j0=t=>H0(t,Gw),wf=(t,o,n)=>Oy(t,t,YC(o),n),sp=(t,o)=>wf(t,o,BT),tS=(t,o,n)=>wf(t,o,(a=>{return i=c=>lo(a,c)?$l.value(c):$l.error(`Unsupported value: "${c}", choose one of "${a.join(", ")}".`),Ph(c=>i(c).fold(I0,ap));var i})(n)),dd=(t,o)=>wf(t,o,SO),ip=(t,o)=>wf(t,o,Kw),oS=xf("type"),LT=eS("fetch"),nS=eS("onAction"),IT=ip("onSetup",()=>$t),Ny=j0("text"),rS=j0("icon"),PT=j0("tooltip"),HT=j0("label"),aS=dd("active",!1),EO=dd("enabled",!0),jT=dd("primary",!1),My=t=>((o,n)=>wf("type",n,Gw))(0,t),TO=Uw([oS,xf("trigger"),sp("minChars",1),((t,o)=>Oy(t,t,YC(1),P0()))("columns"),sp("maxResults",10),H0("matches",Kw),LT,nS,(ud=Gw,wf("highlightOn",[],JC(ud)))]);var ud;const V0=[EO,PT,rS,Ny,IT],sS=[aS].concat(V0),iS=[ip("predicate",uo),tS("scope","node",["node","editor"]),tS("position","selection",["node","selection","line"])],VT=V0.concat([My("contextformbutton"),jT,nS,FT("original",R)]),$0=sS.concat([My("contextformbutton"),jT,nS,FT("original",R)]),lp=V0.concat([My("contextformbutton")]),Hh=sS.concat([My("contextformtogglebutton")]),Yw=qw("type",{contextformbutton:VT,contextformtogglebutton:$0});Uw([My("contextform"),ip("initValue",Ct("")),HT,((t,o)=>Oy(t,t,{tag:"required",process:{}},JC(o)))("commands",Yw),H0("launch",qw("type",{contextformbutton:lp,contextformtogglebutton:Hh}))].concat(iS));const lS=t=>{const o=t.ui.registry.getAll().popups,n=vo(o,c=>{return(d=c,Zw("Autocompleter",TO,{trigger:d.ch,...d})).fold(u=>{throw new Error(`Errors: +`+(y=>{const v=y.length>10?y.slice(0,10).concat([{path:[],getErrorInfo:Ct("... (only showing first ten failures)")}]):y;return to(v,k=>"Failed path: ("+k.path.join(" > ")+`) +`+k.getErrorInfo())})((f=u).errors).join(` +`)+` + +Input object: `+Om(f.input));var f},R);var d}),a=Ys(Wt(n,c=>c.trigger)),i=vr(n);return{dataset:n,triggers:a,lookupByTrigger:c=>gt(i,d=>d.trigger===c)}},cS=t=>{const o=Ec(),n=bi(!1),a=o.isSet,i=()=>{a()&&((u=>{Li(u).autocompleter.removeDecoration()})(t),(u=>{u.dispatch("AutocompleterEnd")})(t),n.set(!1),o.clear())},c=tt(()=>lS(t)),d=u=>{(f=>o.get().map(y=>rp(t.dom,t.selection.getRng(),y.trigger).bind(v=>NT(t,c,v,f))).getOrThunk(()=>((y,v)=>{const k=v(),E=y.selection.getRng();return((B,O,P)=>zn(P.triggers,M=>rp(B,O,M)))(y.dom,E,k).bind(B=>NT(y,v,B))})(t,c)))(u).fold(i,f=>{(y=>{a()||(((v,k)=>{Li(v).autocompleter.addDecoration(k)})(t,y.range),o.set({trigger:y.trigger,matchLength:y.text.length}))})(f.context),f.lookupData.then(y=>{o.get().map(v=>{const k=f.context;v.trigger===k.trigger&&(k.text.length-v.matchLength>=10?i():(o.set({...v,matchLength:k.text.length}),n.get()?((E,B)=>{E.dispatch("AutocompleterUpdate",B)})(t,{lookupData:y}):(n.set(!0),((E,B)=>{E.dispatch("AutocompleterStart",B)})(t,{lookupData:y}))))})})})};t.addCommand("mceAutocompleterReload",(u,f)=>{const y=it(f)?f.fetchOptions:{};d(y)}),t.addCommand("mceAutocompleterClose",i),((u,f)=>{const y=Iu(f.load,50);u.on("keypress compositionend",v=>{v.which!==27&&y.throttle()}),u.on("keydown",v=>{const k=v.which;k===8?y.throttle():k===27&&f.cancelIfNecessary()}),u.on("remove",y.cancel)})(t,{cancelIfNecessary:i,load:d})},$T=Aa().browser.isSafari(),UT=t=>Oi(je(t)),dS=(t,o)=>{var n;return t.startOffset===0&&t.endOffset===((n=o.textContent)===null||n===void 0?void 0:n.length)},U0=(t,o)=>V.from(t.getParent(o.container(),"details")),uS=(t,o)=>U0(t,o).isSome(),mS=(t,o)=>{const n=o.getNode();fo(n)||t.selection.setCursorLocation(n,o.offset())},ZT=(t,o,n)=>{const a=t.dom.getParent(o.container(),"details");if(a&&!a.open){const i=t.dom.select("summary",a)[0];i&&(n?Z(i):Y(i)).each(c=>mS(t,c))}else mS(t,o)},qT=(t,o,n)=>{const{dom:a,selection:i}=t,c=t.getBody();if(n==="character"){const d=Ht.fromRangeStart(i.getRng()),u=a.getParent(d.container(),a.isBlock),f=U0(a,d),y=u&&a.isEmpty(u),v=he(u==null?void 0:u.previousSibling),k=he(u==null?void 0:u.nextSibling);return!!(y&&(o?k:v)&&b(!o,c,d).exists(E=>uS(a,E)&&!Ss(f,U0(a,E))))||b(o,c,d).fold(uo,E=>{const B=U0(a,E);if(uS(a,E)&&!Ss(f,B)){if(o||ZT(t,E,!1),u&&y){if(o&&v||!o&&k)return!0;ZT(t,E,o),t.dom.remove(u)}return!0}return!1})}return!1},zO=(t,o,n,a)=>{const i=t.selection.getRng(),c=Ht.fromRangeStart(i),d=t.getBody();return a==="selection"?((u,f)=>{const y=f.startSummary.exists(E=>E.contains(u.startContainer)),v=f.startSummary.exists(E=>E.contains(u.endContainer)),k=f.startDetails.forall(E=>f.endDetails.forall(B=>E!==B));return(y||v)&&!(y&&v)||k})(i,o):n?((u,f)=>f.startSummary.exists(y=>((v,k)=>Y(k).exists(E=>da(E.getNode())&&I(k,E).exists(B=>B.isEqual(v))||E.isEqual(v)))(u,y)))(c,o)||((u,f,y)=>y.startDetails.exists(v=>L(u,f).forall(k=>!v.contains(k.container()))))(d,c,o):((u,f)=>f.startSummary.exists(y=>((v,k)=>Z(k).exists(E=>E.isEqual(v)))(u,y)))(c,o)||((u,f)=>f.startDetails.exists(y=>I(y,u).forall(v=>f.startSummary.exists(k=>!k.contains(u.container())&&k.contains(v.container())))))(c,o)},Ml=(t,o,n)=>((a,i,c)=>((d,u)=>{const f=V.from(d.getParent(u.startContainer,"details")),y=V.from(d.getParent(u.endContainer,"details"));if(f.isSome()||y.isSome()){const v=f.bind(k=>V.from(d.select("summary",k)[0]));return V.some({startSummary:v,startDetails:f,endDetails:y})}return V.none()})(a.dom,a.selection.getRng()).fold(()=>qT(a,i,c),d=>zO(a,d,i,c)||qT(a,i,c)))(t,o,n)||$T&&((a,i,c)=>{const d=a.selection,u=d.getNode(),f=d.getRng(),y=Ht.fromRangeStart(f);return!!sg(u)&&(c==="selection"&&dS(f,u)||$_(i,y,u)?UT(u):a.undoManager.transact(()=>{const v=d.getSel();let{anchorNode:k,anchorOffset:E,focusNode:B,focusOffset:O}=v??{};const P=()=>{Ze(k)&&Ze(E)&&Ze(B)&&Ze(O)&&(v==null||v.setBaseAndExtent(k,E,B,O))},M=(q,K)=>{Se(q.childNodes,re=>{wm(re)&&K.appendChild(re)})},j=a.dom.create("span",{"data-mce-bogus":"1"});M(u,j),u.appendChild(j),P(),c!=="word"&&c!=="line"||v==null||v.modify("extend",i?"right":"left",c),!d.isCollapsed()&&dS(d.getRng(),j)?UT(u):(a.execCommand(i?"ForwardDelete":"Delete"),k=v==null?void 0:v.anchorNode,E=v==null?void 0:v.anchorOffset,B=v==null?void 0:v.focusNode,O=v==null?void 0:v.focusOffset,M(j,u),P()),a.dom.remove(j)}),!0)})(t,o,n)?V.some($t):V.none(),gS=t=>(o,n,a={})=>{const i=o.getBody(),c={bubbles:!0,composed:!0,data:null,isComposing:!1,detail:0,view:null,target:i,currentTarget:i,eventPhase:Event.AT_TARGET,originalTarget:i,explicitOriginalTarget:i,isTrusted:!1,srcElement:i,cancelable:!1,preventDefault:$t,inputType:n},d=is(new InputEvent(t));return o.dispatch(t,{...d,...c,...a})},cp=gS("input"),Xw=gS("beforeinput"),pS=Aa(),fS=pS.os,Jw=fS.isMacOS()||fS.isiOS(),WT=pS.browser.isFirefox(),Dy=(t,o)=>{const n=t.dom,a=t.schema.getMoveCaretBeforeOnEnterElements();if(!o)return;if(/^(LI|DT|DD)$/.test(o.nodeName)){const c=(d=>{for(;d;){if(an(d)||ro(d)&&d.data&&/[\r\n\s]/.test(d.data))return d;d=d.nextSibling}return null})(o.firstChild);c&&/^(UL|OL|DL)$/.test(c.nodeName)&&o.insertBefore(n.doc.createTextNode(ns),o.firstChild)}const i=n.createRng();if(o.normalize(),o.hasChildNodes()){const c=new Ns(o,o);let d,u=o;for(;d=c.current();){if(ro(d)){i.setStart(d,0),i.setEnd(d,0);break}if(a[d.nodeName.toLowerCase()]){i.setStartBefore(d),i.setEndBefore(d);break}u=d,d=c.next()}d||(i.setStart(u,0),i.setEnd(u,0))}else da(o)?o.nextSibling&&n.isBlock(o.nextSibling)?(i.setStartBefore(o),i.setEndBefore(o)):(i.setStartAfter(o),i.setEndAfter(o)):(i.setStart(o,0),i.setEnd(o,0));t.selection.setRng(i),bh(t,i)},Z0=(t,o)=>{const n=t.getRoot();let a,i=o;for(;i!==n&&i&&t.getContentEditable(i)!=="false";){if(t.getContentEditable(i)==="true"){a=i;break}i=i.parentNode}return i!==n?a:n},hS=t=>V.from(t.dom.getParent(t.selection.getStart(!0),t.dom.isBlock)),q0=t=>{t.innerHTML='
    '},W0=(t,o)=>{Ts(t).toLowerCase()===o.tagName.toLowerCase()&&((n,a,i)=>{const c=n.dom;V.from(i.style).map(c.parseStyle).each(v=>{const k={..._u(je(a)),...v};c.setStyles(a,k)});const d=V.from(i.class).map(v=>v.split(/\s+/)),u=V.from(a.className).map(v=>gt(v.split(/\s+/),k=>k!==""));Ir(d,u,(v,k)=>{const E=gt(k,O=>!lo(v,O)),B=[...v,...E];c.setAttrib(a,"class",B.join(" "))});const f=["style","class"],y=Rr(i,(v,k)=>!lo(f,k));c.setAttribs(a,y)})(t,o,gc(t))},GT=(t,o,n,a,i=!0,c,d)=>{const u=t.dom,f=t.schema,y=Ts(t),v=n?n.nodeName.toUpperCase():"";let k=o;const E=f.getTextInlineElements();let B;B=c||v==="TABLE"||v==="HR"?u.create(c||y,d||{}):n.cloneNode(!1);let O=B;if(i)do if(E[k.nodeName]){if(be(k)||No(k))continue;const P=k.cloneNode(!1);u.setAttrib(P,"id",""),B.hasChildNodes()?(P.appendChild(B.firstChild),B.appendChild(P)):(O=P,B.appendChild(P))}while((k=k.parentNode)&&k!==a);else u.setAttrib(B,"style",null),u.setAttrib(B,"class",null);return W0(t,B),q0(O),B},bS=(t,o)=>{const n=t==null?void 0:t.parentNode;return Ze(n)&&n.nodeName===o},KT=t=>Ze(t)&&/^(OL|UL|LI)$/.test(t.nodeName),yS=t=>Ze(t)&&/^(LI|DT|DD)$/.test(t.nodeName),Ry=t=>{const o=t.parentNode;return yS(o)?o:t},jh=(t,o,n)=>{let a=t[n?"firstChild":"lastChild"];for(;a&&!an(a);)a=a[n?"nextSibling":"previousSibling"];return a===o},vS=t=>Oe(Wt(_u(je(t)),(o,n)=>`${n}: ${o};`),(o,n)=>o+n,""),YT=(t,o)=>o&&o.nodeName==="A"&&t.isEmpty(o),G0=(t,o)=>t.nodeName===o||t.previousSibling&&t.previousSibling.nodeName===o,xS=(t,o)=>Ze(o)&&t.isBlock(o)&&!/^(TD|TH|CAPTION|FORM)$/.test(o.nodeName)&&!/^(fixed|absolute)/i.test(o.style.position)&&t.isEditable(o.parentNode)&&t.getContentEditable(o)!=="false",wS=(t,o,n)=>ro(o)?t?n===1&&o.data.charAt(n-1)===Za?0:n:n===o.data.length-1&&o.data.charAt(n)===Za?o.data.length:n:n,XT={insert:(t,o)=>{let n,a,i,c,d=!1;const u=t.dom,f=t.schema.getNonEmptyElements(),y=t.selection.getRng(),v=Ts(t),k=je(y.startContainer),E=yn(k,y.startOffset),B=E.exists(mt=>bn(mt)&&!nl(mt)),O=y.collapsed&&B,P=(mt,kt)=>GT(t,n,ee,re,Yf(t),mt,kt),M=mt=>{const kt=wS(mt,n,a);if(ro(n)&&(mt?kt>0:kt{let mt;return mt=/^(H[1-6]|PRE|FIGURE)$/.test(i)&&ke!=="HGROUP"?P(v):P(),((kt,Ve)=>{const ot=d1(kt);return!me(Ve)&&(Ue(ot)?lo(go.explode(ot),Ve.nodeName.toLowerCase()):ot)})(t,c)&&xS(u,c)&&u.isEmpty(ee,void 0,{includeZwsp:!0})?mt=u.split(c,ee):u.insertAfter(mt,ee),Dy(t,mt),mt};O1(u,y).each(mt=>{y.setStart(mt.startContainer,mt.startOffset),y.setEnd(mt.endContainer,mt.endOffset)}),n=y.startContainer,a=y.startOffset;const q=!(!o||!o.shiftKey),K=!(!o||!o.ctrlKey);an(n)&&n.hasChildNodes()&&!O&&(d=a>n.childNodes.length-1,n=n.childNodes[Math.min(a,n.childNodes.length-1)]||n,a=d&&ro(n)?n.data.length:0);const re=Z0(u,n);if(!re||((mt,kt)=>{const Ve=mt.dom.getParent(kt,"ol,ul,dl");return Ve!==null&&mt.dom.getContentEditableParent(Ve)==="false"})(t,n))return;q||(n=((mt,kt,Ve,ot,pt)=>{var Jt,en;const Fo=mt.dom,Nn=(Jt=Z0(Fo,ot))!==null&&Jt!==void 0?Jt:Fo.getRoot();let An=Fo.getParent(ot,Fo.isBlock);if(!An||!xS(Fo,An)){if(An=An||Nn,!An.hasChildNodes()){const vn=Fo.create(kt);return W0(mt,vn),An.appendChild(vn),Ve.setStart(vn,0),Ve.setEnd(vn,0),vn}let Jn,jn=ot;for(;jn&&jn.parentNode!==An;)jn=jn.parentNode;for(;jn&&!Fo.isBlock(jn);)Jn=jn,jn=jn.previousSibling;const cn=(en=Jn==null?void 0:Jn.parentElement)===null||en===void 0?void 0:en.nodeName;if(Jn&&cn&&mt.schema.isValidChild(cn,kt.toLowerCase())){const vn=Jn.parentNode,cr=Fo.create(kt);for(W0(mt,cr),vn.insertBefore(cr,Jn),jn=Jn;jn&&!Fo.isBlock(jn);){const Qe=jn.nextSibling;cr.appendChild(jn),jn=Qe}Ve.setStart(ot,pt),Ve.setEnd(ot,pt)}}return ot})(t,v,y,n,a));let ee=u.getParent(n,u.isBlock)||u.getRoot();c=Ze(ee==null?void 0:ee.parentNode)?u.getParent(ee.parentNode,u.isBlock):null,i=ee?ee.nodeName.toUpperCase():"";const ke=c?c.nodeName.toUpperCase():"";if(ke!=="LI"||K||(ee=c,c=c.parentNode,i=ke),an(c)&&((mt,kt,Ve)=>!kt&&Ve.nodeName.toLowerCase()===Ts(mt)&&mt.dom.isEmpty(Ve)&&((ot,pt,Jt)=>{let en=pt;for(;en&&en!==ot&&he(en.nextSibling);){const Nn=en.parentElement;if(!Nn||(Fo=Nn,!ln(mt.schema.getTextBlockElements(),Fo.nodeName.toLowerCase())))return Hs(Nn);en=Nn}var Fo;return!1})(mt.getBody(),Ve))(t,q,ee))return((mt,kt,Ve)=>{var ot,pt,Jt;const en=kt(Ts(mt)),Fo=((Nn,An)=>Nn.dom.getParent(An,Hs))(mt,Ve);Fo&&(mt.dom.insertAfter(en,Fo),Dy(mt,en),((Jt=(pt=(ot=Ve.parentElement)===null||ot===void 0?void 0:ot.childNodes)===null||pt===void 0?void 0:pt.length)!==null&&Jt!==void 0?Jt:0)>1&&mt.dom.remove(Ve))})(t,P,ee);if(/^(LI|DT|DD)$/.test(i)&&an(c)&&u.isEmpty(ee))return void((mt,kt,Ve,ot,pt)=>{const Jt=mt.dom,en=mt.selection.getRng(),Fo=Ve.parentNode;if(Ve===mt.getBody()||!Fo)return;var Nn;KT(Nn=Ve)&&KT(Nn.parentNode)&&(pt="LI");const An=yS(ot)?vS(ot):void 0;let Jn=yS(ot)&&An?kt(pt,{style:vS(ot)}):kt(pt);if(jh(Ve,ot,!0)&&jh(Ve,ot,!1))if(bS(Ve,"LI")){const jn=Ry(Ve);Jt.insertAfter(Jn,jn),(cn=>{var vn;return((vn=cn.parentNode)===null||vn===void 0?void 0:vn.firstChild)===cn})(Ve)?Jt.remove(jn):Jt.remove(Ve)}else Jt.replace(Jn,Ve);else if(jh(Ve,ot,!0))bS(Ve,"LI")?(Jt.insertAfter(Jn,Ry(Ve)),Jn.appendChild(Jt.doc.createTextNode(" ")),Jn.appendChild(Ve)):Fo.insertBefore(Jn,Ve),Jt.remove(ot);else if(jh(Ve,ot,!1))Jt.insertAfter(Jn,Ry(Ve)),Jt.remove(ot);else{Ve=Ry(Ve);const jn=en.cloneRange();jn.setStartAfter(ot),jn.setEndAfter(Ve);const cn=jn.extractContents();if(pt==="LI"&&((vn,cr)=>vn.firstChild&&vn.firstChild.nodeName==="LI")(cn)){const vn=gt(to(Jn.children,je),lt(ma("br")));Jn=cn.firstChild,Jt.insertAfter(cn,Ve),Se(vn,cr=>Jl(je(Jn),cr)),An&&Jn.setAttribute("style",An)}else Jt.insertAfter(cn,Ve),Jt.insertAfter(Jn,Ve);Jt.remove(ot)}Dy(mt,Jn)})(t,P,c,ee,v);if(!(O||ee!==t.getBody()&&xS(u,ee)))return;const et=ee.parentNode;let st;if(O)st=P(v),E.fold(()=>{os(k,je(st))},mt=>{rl(mt,je(st))}),t.selection.setCursorLocation(st,0);else if(Pl(ee))st=H(ee),u.isEmpty(ee)&&q0(ee),W0(t,st),Dy(t,st);else if(M(!1))st=j();else if(M(!0)&&et){st=et.insertBefore(P(),ee);const mt=je(y.startContainer).dom.hasChildNodes()&&y.collapsed;Dy(t,G0(ee,"HR")||mt?st:ee)}else{const mt=(Ve=>{const ot=Ve.cloneRange();return ot.setStart(Ve.startContainer,wS(!0,Ve.startContainer,Ve.startOffset)),ot.setEnd(Ve.endContainer,wS(!1,Ve.endContainer,Ve.endOffset)),ot})(y).cloneRange();mt.setEndAfter(ee);const kt=mt.extractContents();(Ve=>{Se(rm(je(Ve),_r),ot=>{const pt=ot.dom;pt.nodeValue=qs(pt.data)})})(kt),(Ve=>{let ot=Ve;do ro(ot)&&(ot.data=ot.data.replace(/^[\r\n]+/,"")),ot=ot.firstChild;while(ot)})(kt),st=kt.firstChild,u.insertAfter(kt,ee),((Ve,ot,pt)=>{var Jt;const en=[];if(!pt)return;let Fo=pt;for(;Fo=Fo.firstChild;){if(Ve.isBlock(Fo))return;an(Fo)&&!ot[Fo.nodeName.toLowerCase()]&&en.push(Fo)}let Nn=en.length;for(;Nn--;)Fo=en[Nn],(!Fo.hasChildNodes()||Fo.firstChild===Fo.lastChild&&((Jt=Fo.firstChild)===null||Jt===void 0?void 0:Jt.nodeValue)===""||YT(Ve,Fo))&&Ve.remove(Fo)})(u,f,st),((Ve,ot)=>{ot.normalize();const pt=ot.lastChild;(!pt||an(pt)&&/^(left|right)$/gi.test(Ve.getStyle(pt,"float",!0)))&&Ve.add(ot,"br")})(u,ee),u.isEmpty(ee)&&q0(ee),st.normalize(),u.isEmpty(st)?(u.remove(st),j()):(W0(t,st),Dy(t,st))}u.setAttrib(st,"id",""),t.dispatch("NewBlock",{newBlock:st})},fakeEventName:"insertParagraph"},kf=(t,o,n)=>{const a=t.dom.createRng();n?(a.setStartBefore(o),a.setEndBefore(o)):(a.setStartAfter(o),a.setEndAfter(o)),t.selection.setRng(a),bh(t,a)},AO=(t,o)=>{const n=_s("br");rl(je(o),n),t.undoManager.add()},Qw=(t,o)=>{OO(t.getBody(),o)||Da(je(o),_s("br"));const n=_s("br");Da(je(o),n),kf(t,n.dom,!1),t.undoManager.add()},OO=(t,o)=>{return n=Ht.after(o),!!da(n.getNode())||L(t,Ht.after(o)).map(a=>da(a.getNode())).getOr(!1);var n},ek=t=>t&&t.nodeName==="A"&&"href"in t,JT=t=>t.fold(uo,ek,ek,uo),QT=(t,o)=>{o.fold($t,Je(AO,t),Je(Qw,t),$t)},kS={insert:(t,o)=>{const n=(a=>{const i=Je($u,a),c=Ht.fromRangeStart(a.selection.getRng());return Yu(i,a.getBody(),c).filter(JT)})(t);n.isSome()?n.each(Je(QT,t)):((a,i)=>{const c=a.selection,d=a.dom,u=c.getRng();let f,y=!1;O1(d,u).each(M=>{u.setStart(M.startContainer,M.startOffset),u.setEnd(M.endContainer,M.endOffset)});let v=u.startOffset,k=u.startContainer;if(an(k)&&k.hasChildNodes()){const M=v>k.childNodes.length-1;k=k.childNodes[Math.min(v,k.childNodes.length-1)]||k,v=M&&ro(k)?k.data.length:0}let E=d.getParent(k,d.isBlock);const B=E&&E.parentNode?d.getParent(E.parentNode,d.isBlock):null,O=B?B.nodeName.toUpperCase():"",P=!(!i||!i.ctrlKey);O!=="LI"||P||(E=B),ro(k)&&v>=k.data.length&&(((M,j,q)=>{const K=new Ns(j,q);let re;const ee=M.getNonEmptyElements();for(;re=K.next();)if(ee[re.nodeName.toLowerCase()]||ro(re)&&re.length>0)return!0;return!1})(a.schema,k,E||d.getRoot())||(f=d.create("br"),u.insertNode(f),u.setStartAfter(f),u.setEndAfter(f),y=!0)),f=d.create("br"),ub(d,u,f),kf(a,f,y),a.undoManager.add()})(t,o)},fakeEventName:"insertLineBreak"},K0=(t,o)=>hS(t).filter(n=>o.length>0&&Ci(je(n),o)).isSome(),$d=zc([{br:[]},{block:[]},{none:[]}]),NO=(t,o)=>(n=>K0(n,c1(n)))(t),tk=t=>(o,n)=>(a=>hS(a).filter(i=>uc(je(i))).isSome())(o)===t,_S=(t,o)=>(n,a)=>(c=>hS(c).fold(Ct(""),d=>d.nodeName.toUpperCase()))(n)===t.toUpperCase()===o,MO=t=>{const o=Z0(t.dom,t.selection.getStart());return me(o)},Y0=t=>_S("pre",t),ok=t=>(o,n)=>Gf(o)===t,DO=(t,o)=>(n=>K0(n,Ic(n)))(t),By=(t,o)=>o,ez=t=>{const o=Ts(t),n=Z0(t.dom,t.selection.getStart());return Ze(n)&&t.schema.isValidChild(n.nodeName,o)},RO=t=>{const o=t.selection.getRng(),n=je(o.startContainer),a=yn(n,o.startOffset).map(i=>bn(i)&&!nl(i));return o.collapsed&&a.getOr(!0)},xu=(t,o)=>(n,a)=>Oe(t,(i,c)=>i&&c(n,a),!0)?V.some(o):V.none(),vi=(t,o,n)=>{o.selection.isCollapsed()||(a=>{a.execCommand("delete")})(o),Ze(n)&&Xw(o,t.fakeEventName).isDefaultPrevented()||(t.insert(o,n),Ze(n)&&cp(o,t.fakeEventName))},tz=(t,o)=>{const n=()=>vi(kS,t,o),a=()=>vi(XT,t,o),i=((c,d)=>hC([xu([NO],$d.none()),xu([Y0(!0),MO],$d.none()),xu([_S("summary",!0)],$d.br()),xu([Y0(!0),ok(!1),By],$d.br()),xu([Y0(!0),ok(!1)],$d.block()),xu([Y0(!0),ok(!0),By],$d.block()),xu([Y0(!0),ok(!0)],$d.br()),xu([tk(!0),By],$d.br()),xu([tk(!0)],$d.block()),xu([DO],$d.br()),xu([By],$d.br()),xu([ez],$d.block()),xu([RO],$d.block())],[c,!(!d||!d.shiftKey)]).getOr($d.none()))(t,o);switch(Kf(t)){case"linebreak":i.fold(n,n,$t);break;case"block":i.fold(a,a,$t);break;case"invert":i.fold(a,n,$t);break;default:i.fold(n,a,$t)}},oz=Aa(),nz=oz.os.isiOS()&&oz.browser.isSafari(),nk=(t,o)=>{var n;o.isDefaultPrevented()||(o.preventDefault(),(n=t.undoManager).typing&&(n.typing=!1,n.add()),t.undoManager.transact(()=>{tz(t,o)}))},rz=Aa(),dp=t=>t.stopImmediatePropagation(),rk=t=>t.keyCode===mn.PAGE_UP||t.keyCode===mn.PAGE_DOWN,CS=(t,o,n)=>{n&&!t.get()?o.on("NodeChange",dp,!0):!n&&t.get()&&o.off("NodeChange",dp),t.set(n)},ak=(t,o)=>{const n=o.container(),a=o.offset();return ro(n)?(n.insertData(a,t),V.some(Ht(n,a+t.length))):qp(o).map(i=>{const c=vc(t);return o.isAtEnd()?Da(i,c):rl(i,c),Ht(c.dom,t.length)})},sk=Je(ak,ns),ik=Je(ak," "),SS=t=>o=>{t.selection.setRng(o.toRange()),t.nodeChanged()},lk=t=>{const o=Ht.fromRangeStart(t.selection.getRng()),n=je(t.getBody());if(t.selection.isCollapsed()){const a=Je($u,t),i=Ht.fromRangeStart(t.selection.getRng());return Yu(a,t.getBody(),i).bind((c=>d=>d.fold(u=>I(c.dom,Ht.before(u)),u=>Z(u),u=>Y(u),u=>L(c.dom,Ht.after(u))))(n)).map(c=>()=>((d,u,f)=>y=>z4(d,y,f)?sk(u):ik(u))(n,o,t.schema)(c).each(SS(t)))}return V.none()},ck=t=>{return gi(Rn.browser.isFirefox()&&t.selection.isEditable()&&(o=t.dom,n=t.selection.getRng().startContainer,o.isEditable(o.getParent(n,"summary"))),()=>{const a=je(t.getBody());t.selection.isCollapsed()||t.getDoc().execCommand("Delete"),((i,c,d)=>z4(i,c,d)?sk(c):ik(c))(a,Ht.fromRangeStart(t.selection.getRng()),t.schema).each(SS(t))});var o,n},X0=t=>lh(t)?[{keyCode:mn.TAB,action:lr(ZC,t,!0)},{keyCode:mn.TAB,shiftKey:!0,action:lr(ZC,t,!1)}]:[],J0=t=>{if(t.addShortcut("Meta+P","","mcePrint"),cS(t),Tm(t))return bi(null);{const o=EC(t);return(n=>{n.on("beforeinput",a=>{n.selection.isEditable()&&!zo(a.getTargetRanges(),i=>!A_(n.dom,i))||a.preventDefault()})})(t),(n=>{n.on("keyup compositionstart",Je(hT,n))})(t),((n,a)=>{n.on("keydown",i=>{i.isDefaultPrevented()||((c,d,u)=>{const f=Rn.os.isMacOS()||Rn.os.isiOS();R0([{keyCode:mn.RIGHT,action:lr(LC,c,!0)},{keyCode:mn.LEFT,action:lr(LC,c,!1)},{keyCode:mn.UP,action:lr(IC,c,!1)},{keyCode:mn.DOWN,action:lr(IC,c,!0)},...f?[{keyCode:mn.UP,action:lr(Lh,c,!1),metaKey:!0,shiftKey:!0},{keyCode:mn.DOWN,action:lr(Lh,c,!0),metaKey:!0,shiftKey:!0}]:[],{keyCode:mn.RIGHT,action:lr(TT,c,!0)},{keyCode:mn.LEFT,action:lr(TT,c,!1)},{keyCode:mn.UP,action:lr(Vd,c,!1)},{keyCode:mn.DOWN,action:lr(Vd,c,!0)},{keyCode:mn.UP,action:lr(Vd,c,!1)},{keyCode:mn.UP,action:lr(Nw,c,!1)},{keyCode:mn.DOWN,action:lr(Nw,c,!0)},{keyCode:mn.RIGHT,action:lr(xT,c,!0)},{keyCode:mn.LEFT,action:lr(xT,c,!1)},{keyCode:mn.UP,action:lr(B0,c,!1)},{keyCode:mn.DOWN,action:lr(B0,c,!0)},{keyCode:mn.RIGHT,action:lr(dT,c,d,!0)},{keyCode:mn.LEFT,action:lr(dT,c,d,!1)},{keyCode:mn.RIGHT,ctrlKey:!f,altKey:f,action:lr(Rh,c,d)},{keyCode:mn.LEFT,ctrlKey:!f,altKey:f,action:lr(Bh,c,d)},{keyCode:mn.UP,action:lr(jC,c,!1)},{keyCode:mn.DOWN,action:lr(jC,c,!0)}],u).each(y=>{u.preventDefault()})})(n,a,i)})})(t,o),((n,a)=>{let i=!1;n.on("keydown",c=>{i=c.keyCode===mn.BACKSPACE,c.isDefaultPrevented()||((d,u,f)=>{const y=f.keyCode===mn.BACKSPACE?"deleteContentBackward":"deleteContentForward",v=d.selection.isCollapsed(),k=v?"character":"selection",E=B=>v?B?"word":"line":"selection";vT([{keyCode:mn.BACKSPACE,action:lr(Aw,d)},{keyCode:mn.BACKSPACE,action:lr(xy,d,!1)},{keyCode:mn.DELETE,action:lr(xy,d,!0)},{keyCode:mn.BACKSPACE,action:lr(bw,d,!1)},{keyCode:mn.DELETE,action:lr(bw,d,!0)},{keyCode:mn.BACKSPACE,action:lr(op,d,u,!1)},{keyCode:mn.DELETE,action:lr(op,d,u,!0)},{keyCode:mn.BACKSPACE,action:lr(J_,d,!1)},{keyCode:mn.DELETE,action:lr(J_,d,!0)},{keyCode:mn.BACKSPACE,action:lr(Ml,d,!1,k)},{keyCode:mn.DELETE,action:lr(Ml,d,!0,k)},...Jw?[{keyCode:mn.BACKSPACE,altKey:!0,action:lr(Ml,d,!1,E(!0))},{keyCode:mn.DELETE,altKey:!0,action:lr(Ml,d,!0,E(!0))},{keyCode:mn.BACKSPACE,metaKey:!0,action:lr(Ml,d,!1,E(!1))}]:[{keyCode:mn.BACKSPACE,ctrlKey:!0,action:lr(Ml,d,!1,E(!0))},{keyCode:mn.DELETE,ctrlKey:!0,action:lr(Ml,d,!0,E(!0))}],{keyCode:mn.BACKSPACE,action:lr(pC,d,!1)},{keyCode:mn.DELETE,action:lr(pC,d,!0)},{keyCode:mn.BACKSPACE,action:lr(Ew,d,!1)},{keyCode:mn.DELETE,action:lr(Ew,d,!0)},{keyCode:mn.BACKSPACE,action:lr(fw,d,!1)},{keyCode:mn.DELETE,action:lr(fw,d,!0)},{keyCode:mn.BACKSPACE,action:lr(zm,d,!1)},{keyCode:mn.DELETE,action:lr(zm,d,!0)},{keyCode:mn.BACKSPACE,action:lr(Sw,d,!1)},{keyCode:mn.DELETE,action:lr(Sw,d,!0)}],f).filter(B=>d.selection.isEditable()).each(B=>{f.preventDefault(),Xw(d,y).isDefaultPrevented()||(B(),cp(d,y))})})(n,a,c)}),n.on("keyup",c=>{c.isDefaultPrevented()||((d,u,f)=>{R0([{keyCode:mn.BACKSPACE,action:lr(HE,d)},{keyCode:mn.DELETE,action:lr(HE,d)},...Jw?[{keyCode:mn.BACKSPACE,altKey:!0,action:lr(Ty,d)},{keyCode:mn.DELETE,altKey:!0,action:lr(Ty,d)},...f?[{keyCode:WT?224:91,action:lr(Ty,d)}]:[]]:[{keyCode:mn.BACKSPACE,ctrlKey:!0,action:lr(Ty,d)},{keyCode:mn.DELETE,ctrlKey:!0,action:lr(Ty,d)}]],u)})(n,c,i),i=!1})})(t,o),(n=>{let a=V.none();n.on("keydown",i=>{i.keyCode===mn.ENTER&&(nz&&(c=>{if(!c.collapsed)return!1;const d=c.startContainer;if(ro(d)){const u=/^[\uAC00-\uD7AF\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uD7B0-\uD7FF]$/,f=d.data.charAt(c.startOffset-1);return u.test(f)}return!1})(n.selection.getRng())?(c=>{a=V.some(c.selection.getBookmark()),c.undoManager.add()})(n):nk(n,i))}),n.on("keyup",i=>{i.keyCode===mn.ENTER&&a.each(()=>((c,d)=>{c.undoManager.undo(),a.fold($t,u=>c.selection.moveToBookmark(u)),nk(c,d),a=V.none()})(n,i))})})(t),(n=>{n.on("keydown",a=>{a.isDefaultPrevented()||((i,c)=>{vT([{keyCode:mn.SPACEBAR,action:lr(lk,i)},{keyCode:mn.SPACEBAR,action:lr(ck,i)}],c).each(d=>{c.preventDefault(),Xw(i,"insertText",{data:" "}).isDefaultPrevented()||(d(),cp(i,"insertText",{data:" "}))})})(n,a)})})(t),(n=>{n.on("input",a=>{a.isComposing||(i=>{const c=je(i.getBody());i.selection.isCollapsed()&&VA(c,Ht.fromRangeStart(i.selection.getRng()),i.schema).each(d=>{i.selection.setRng(d.toRange())})})(n)})})(t),(n=>{n.on("keydown",a=>{a.isDefaultPrevented()||((i,c)=>{R0([...X0(i)],c).each(d=>{c.preventDefault()})})(n,a)})})(t),((n,a)=>{n.on("keydown",i=>{i.isDefaultPrevented()||((c,d,u)=>{const f=Rn.os.isMacOS()||Rn.os.isiOS();R0([{keyCode:mn.END,action:lr(PC,c,!0)},{keyCode:mn.HOME,action:lr(PC,c,!1)},...f?[]:[{keyCode:mn.HOME,action:lr(Lh,c,!1),ctrlKey:!0,shiftKey:!0},{keyCode:mn.END,action:lr(Lh,c,!0),ctrlKey:!0,shiftKey:!0}],{keyCode:mn.END,action:lr(Mw,c,!0)},{keyCode:mn.HOME,action:lr(Mw,c,!1)},{keyCode:mn.END,action:lr(Fh,c,!0,d)},{keyCode:mn.HOME,action:lr(Fh,c,!1,d)}],u).each(y=>{u.preventDefault()})})(n,a,i)})})(t,o),((n,a)=>{if(rz.os.isMacOS())return;const i=bi(!1);n.on("keydown",c=>{rk(c)&&CS(i,n,!0)}),n.on("keyup",c=>{c.isDefaultPrevented()||((d,u,f)=>{R0([{keyCode:mn.PAGE_UP,action:lr(Fh,d,!1,u)},{keyCode:mn.PAGE_DOWN,action:lr(Fh,d,!0,u)}],f)})(n,a,c),rk(c)&&i.get()&&(CS(i,n,!1),n.nodeChanged())})})(t,o),o}};class Ju{constructor(o){let n;this.lastPath=[],this.editor=o;const a=this;"onselectionchange"in o.getDoc()||o.on("NodeChange click mouseup keyup focus",i=>{const c=o.selection.getRng(),d={startContainer:c.startContainer,startOffset:c.startOffset,endContainer:c.endContainer,endOffset:c.endOffset};i.type!=="nodechange"&&p_(d,n)||o.dispatch("SelectionChange"),n=d}),o.on("contextmenu",()=>{o.dispatch("SelectionChange")}),o.on("SelectionChange",()=>{const i=o.selection.getStart(!0);i&&li(o)&&!a.isSameElementPath(i)&&o.dom.isChildOf(i,o.getBody())&&o.nodeChanged({selectionChange:!0})}),o.on("mouseup",i=>{!i.isDefaultPrevented()&&li(o)&&(o.selection.getNode().nodeName==="IMG"?uu.setEditorTimeout(o,()=>{o.nodeChanged()}):o.nodeChanged())})}nodeChanged(o={}){const n=this.editor.selection;let a;if(this.editor.initialized&&n&&!Sg(this.editor)&&!this.editor.mode.isReadOnly()){const i=this.editor.getBody();a=n.getStart(!0)||i,a.ownerDocument===this.editor.getDoc()&&this.editor.dom.isChildOf(a,i)||(a=i);const c=[];this.editor.dom.getParent(a,d=>d===i||(c.push(d),!1)),this.editor.dispatch("NodeChange",{...o,element:a,parents:c})}}isSameElementPath(o){let n;const a=this.editor,i=Ge(a.dom.getParents(o,Bt,a.getBody()));if(i.length===this.lastPath.length){for(n=i.length;n>=0&&i[n]===this.lastPath[n];n--);if(n===-1)return this.lastPath=i,!0}return this.lastPath=i,!1}}const Fy=hg("image"),dk=hg("event"),Q0=t=>o=>{o[dk]=t},az=Q0(0),sz=Q0(2),BO=Q0(1),FO=t=>{const o=t;return V.from(o[dk]).exists(n=>n===0)},Vh=hg("mode"),uk=t=>o=>{o[Vh]=t},iz=(t,o)=>uk(o)(t),lz=uk(0),ES=uk(2),LO=uk(1),cz=t=>o=>{const n=o;return V.from(n[Vh]).exists(a=>a===t)},Ly=cz(0),dz=cz(1),IO=["none","copy","link","move"],PO=["none","copy","copyLink","copyMove","link","linkMove","move","all","uninitialized"],TS=()=>{const t=new window.DataTransfer;let o="move",n="all";const a={get dropEffect(){return o},set dropEffect(i){lo(IO,i)&&(o=i)},get effectAllowed(){return n},set effectAllowed(i){FO(a)&&lo(PO,i)&&(n=i)},get items(){return((i,c)=>({...c,get length(){return c.length},add:(d,u)=>{if(Ly(i)){if(!Ue(d))return c.add(d);if(!fo(u))return c.add(d,u)}return null},remove:d=>{Ly(i)&&c.remove(d)},clear:()=>{Ly(i)&&c.clear()}}))(a,t.items)},get files(){return dz(a)?Object.freeze({length:0,item:i=>null}):t.files},get types(){return t.types},setDragImage:(i,c,d)=>{var u;Ly(a)&&(u={image:i,x:c,y:d},a[Fy]=u,t.setDragImage(i,c,d))},getData:i=>dz(a)?"":t.getData(i),setData:(i,c)=>{Ly(a)&&t.setData(i,c)},clearData:i=>{Ly(a)&&t.clearData(i)}};return lz(a),a},zS=(t,o)=>t.setData("text/html",o),AS="x-tinymce/html",ev=Ct(AS),mk="",uz=t=>mk+t,OS=t=>t.indexOf(mk)!==-1,NS="%MCEPASTEBIN%",MS=t=>t.dom.get("mcepastebin"),mz=t=>Ze(t)&&t.id==="mcepastebin",gz=t=>t===NS,pz=(t,o)=>(go.each(o,n=>{t=To(n,RegExp)?t.replace(n,""):t.replace(n[0],n[1])}),t),DS=t=>pz(t,[/^[\s\S]*]*>\s*|\s*<\/body[^>]*>[\s\S]*$/gi,/|/g,[/( ?)\u00a0<\/span>( ?)/g,(o,n,a)=>n||a?ns:" "],/
    /g,/
    $/i]),RS=(t,o)=>({content:t,cancelled:o}),BS=(t,o)=>(t.insertContent(o,{merge:s_(t),paste:!0}),!0),gk=t=>/^https?:\/\/[\w\-\/+=.,!;:&%@^~(){}?#]+$/i.test(t),fz=(t,o,n)=>!(t.selection.isCollapsed()||!gk(o))&&((a,i,c)=>(a.undoManager.extra(()=>{c(a,i)},()=>{a.execCommand("mceInsertLink",!1,i)}),!0))(t,o,n),HO=(t,o,n)=>!!((a,i)=>gk(i)&&zo(x1(a),c=>De(i.toLowerCase(),`.${c.toLowerCase()}`)))(t,o)&&((a,i,c)=>(a.undoManager.extra(()=>{c(a,i)},()=>{a.insertContent('')}),!0))(t,o,n),jO=(t=>{let o=0;return()=>"mceclip"+o++})(),VO=t=>{const o=TS();return zS(o,t),ES(o),o},hz=(t,o,n,a,i)=>{const c=((d,u,f)=>((y,v,k)=>{const E=((O,P,M)=>O.dispatch("PastePreProcess",{content:P,internal:M}))(y,v,k),B=((O,P)=>{const M=dy({sanitize:bm(O),sandbox_iframes:jp(O)},O.schema);M.addNodeFilter("meta",q=>{go.each(q,K=>{K.remove()})});const j=M.parse(P,{forced_root_block:!1,isRootContent:!0});return af({validate:!0},O.schema).serialize(j)})(y,E.content);return y.hasEventListeners("PastePostProcess")&&!E.isDefaultPrevented()?((O,P,M)=>{const j=O.dom.create("div",{style:"display:none"},P),q=((K,re,ee)=>K.dispatch("PastePostProcess",{node:re,internal:ee}))(O,j,M);return RS(q.node.innerHTML,q.isDefaultPrevented())})(y,B,k):RS(B,E.isDefaultPrevented())})(d,u,f))(t,o,n);if(!c.cancelled){const d=c.content,u=()=>((f,y,v)=>{v||!Eb(f)?BS(f,y):((k,E)=>{go.each([fz,HO,BS],B=>!B(k,E,BS))})(f,y)})(t,d,a);i?Xw(t,"insertFromPaste",{dataTransfer:VO(d)}).isDefaultPrevented()||(u(),cp(t,"insertFromPaste")):u()}},pk=(t,o,n,a)=>{const i=n||OS(o);hz(t,(c=>c.replace(mk,""))(o),i,!1,a)},Iy=(t,o,n)=>{const a=t.dom.encode(o).replace(/\r\n/g,` +`),i=((c,d,u)=>{const f=c.split(/\n\n/),y=((E,B)=>{let O="<"+E;const P=Wt(B,(M,j)=>j+'="'+Sc.encodeAllRaw(M)+'"');return P.length&&(O+=" "+P.join(" ")),O+">"})(d,u),v="",k=to(f,E=>E.split(/\n/).join("
    "));return k.length===1?k[0]:to(k,E=>y+E+v).join("")})(vp(a,ah(t)),Ts(t),gc(t));hz(t,i,!1,!0,n)},FS=t=>{const o={};if(t&&t.types)for(let n=0;no in t&&t[o].length>0,LS=t=>up(t,"text/html")||up(t,"text/plain"),bz=(t,o,n)=>{const a=o.type==="paste"?o.clipboardData:o.dataTransfer;var i;if(Tg(t)&&a){const c=((d,u)=>{const f=u.items?at(Pn(u.items),v=>v.kind==="file"?[v.getAsFile()]:[]):[],y=u.files?Pn(u.files):[];return gt(f.length>0?f:y,(v=>{const k=x1(v);return E=>gr(E.type,"image/")&&zo(k,B=>(O=>{const P=O.toLowerCase(),M={jpg:"jpeg",jpe:"jpeg",jfi:"jpeg",jif:"jpeg",jfif:"jpeg",pjpeg:"jpeg",pjp:"jpeg",svg:"svg+xml"};return go.hasOwn(M,P)?"image/"+M[P]:"image/"+P})(B)===E.type)})(d))})(t,a);if(c.length>0)return o.preventDefault(),(i=c,Promise.all(to(i,d=>Gx(d).then(u=>({file:d,uri:u}))))).then(d=>{n&&t.selection.setRng(n),Se(d,u=>{((f,y)=>{ay(y.uri).each(({data:v,type:k,base64Encoded:E})=>{const B=E?v:btoa(v),O=y.file,P=f.editorUpload.blobCache,M=P.getByData(B,k),j=M??((q,K,re,ee)=>{const ke=jO(),et=Xf(q)&&Ze(re.name),st=et?((Ve,ot)=>{const pt=ot.match(/([\s\S]+?)(?:\.[a-z0-9.]+)$/i);return Ze(pt)?Ve.dom.encode(pt[1]):void 0})(q,re.name):ke,mt=et?re.name:void 0,kt=K.create(ke,re,ee,st,mt);return K.add(kt),kt})(f,P,O,B);pk(f,``,!1,!0)})})(t,u)})}),!0}return!1},IS=(t,o,n,a,i)=>{let c=DS(n);const d=up(o,ev())||OS(n),u=!d&&(y=>!/<(?:\/?(?!(?:div|p|br|span)>)\w+|(?:(?!(?:span style="white-space:\s?pre;?">)|br\s?\/>))\w+\s[^>]+)>/i.test(y))(c),f=gk(c);(gz(c)||!c.length||u&&!f)&&(a=!0),(a||f)&&(c=up(o,"text/plain")&&u?o["text/plain"]:(y=>{const v=Du(),k=dy({},v);let E="";const B=v.getVoidElements(),O=go.makeMap("script noscript style textarea video audio iframe object"," "),P=v.getBlockElements(),M=j=>{const q=j.name,K=j;if(q!=="br"){if(q!=="wbr")if(B[q]&&(E+=" "),O[q])E+=" ";else{if(j.type===3&&(E+=j.value),!(j.name in v.getVoidElements())){let re=j.firstChild;if(re)do M(re);while(re=re.next)}P[q]&&K.next&&(E+=` +`,q==="p"&&(E+=` +`))}}else E+=` +`};return y=pz(y,[//g]),M(k.parse(y)),E})(c)),gz(c)||(a?Iy(t,c,i):pk(t,c,d,i))},yz=(t,o,n)=>{((a,i,c)=>{let d;a.on("keydown",u=>{(f=>mn.metaKeyPressed(f)&&f.keyCode===86||f.shiftKey&&f.keyCode===45)(u)&&!u.isDefaultPrevented()&&(d=u.shiftKey&&u.keyCode===86)}),a.on("paste",u=>{if(u.isDefaultPrevented()||(v=>{var k,E;return Rn.os.isAndroid()&&((E=(k=v.clipboardData)===null||k===void 0?void 0:k.items)===null||E===void 0?void 0:E.length)===0})(u))return;const f=c.get()==="text"||d;d=!1;const y=FS(u.clipboardData);!LS(y)&&bz(a,u,i.getLastRng()||a.selection.getRng())||(up(y,"text/html")?(u.preventDefault(),IS(a,y,y["text/html"],f,!0)):up(y,"text/plain")&&up(y,"text/uri-list")?(u.preventDefault(),IS(a,y,y["text/plain"],f,!0)):(i.create(),uu.setEditorTimeout(a,()=>{const v=i.getHtml();i.remove(),IS(a,y,v,f,!1)},0)))})})(t,o,n),(a=>{const i=d=>gr(d,"webkit-fake-url"),c=d=>gr(d,"data:");a.parser.addNodeFilter("img",(d,u,f)=>{if(!Tg(a)&&(y=>{var v;return((v=y.data)===null||v===void 0?void 0:v.paste)===!0})(f))for(const y of d){const v=y.attr("src");Ue(v)&&!y.attr("data-mce-object")&&v!==Rn.transparentSrc&&(i(v)||!sh(a)&&c(v))&&y.remove()}})})(t)},vz=(t,o,n,a)=>{((i,c,d)=>{if(!i)return!1;try{return i.clearData(),i.setData("text/html",c),i.setData("text/plain",d),i.setData(ev(),c),!0}catch{return!1}})(t.clipboardData,o.html,o.text)?(t.preventDefault(),a()):n(o.html,a)},fk=t=>(o,n)=>{const{dom:a,selection:i}=t,c=a.create("div",{contenteditable:"false","data-mce-bogus":"all"}),d=a.create("div",{contenteditable:"true"},o);a.setStyles(c,{position:"fixed",top:"0",left:"-3000px",width:"1000px",overflow:"hidden"}),c.appendChild(d),a.add(t.getBody(),c);const u=i.getRng();d.focus();const f=a.createRng();f.selectNodeContents(d),i.setRng(f),uu.setEditorTimeout(t,()=>{i.setRng(u),a.remove(c),n()},0)},PS=t=>({html:uz(t.selection.getContent({contextual:!0})),text:t.selection.getContent({format:"text"})}),xz=t=>!t.selection.isCollapsed()||(o=>!!o.dom.getParent(o.selection.getStart(),"td[data-mce-selected],th[data-mce-selected]",o.getBody()))(t),tl=(t,o)=>{var n,a;return nf.getCaretRangeFromPoint((n=o.clientX)!==null&&n!==void 0?n:0,(a=o.clientY)!==null&&a!==void 0?a:0,t.getDoc())},Nm=(t,o)=>{t.focus(),o&&t.selection.setRng(o)},$O=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi,wz=t=>go.trim(t).replace($O,qo).toLowerCase(),UO=(t,o,n)=>{const a=Bv(t);if(n||a==="all"||!b1(t))return o;const i=a?a.split(/[, ]/):[];if(i&&a!=="none"){const c=t.dom,d=t.selection.getNode();o=o.replace(/(<[^>]+) style="([^"]*)"([^>]*>)/gi,(u,f,y,v)=>{const k=c.parseStyle(c.decode(y)),E={};for(let O=0;O]+) style="([^"]*)"([^>]*>)/gi,"$1$3");return o=o.replace(/(<[^>]+) data-mce-style="([^"]+)"([^>]*>)/gi,(c,d,u,f)=>d+' style="'+u+'"'+f),o},kz=t=>{const o=bi(!1),n=bi(y1(t)?"text":"html"),a=(i=>{const c=bi(null);return{create:()=>((d,u)=>{const{dom:f,selection:y}=d,v=d.getBody();u.set(y.getRng());const k=f.add(d.getBody(),"div",{id:"mcepastebin",class:"mce-pastebin",contentEditable:!0,"data-mce-bogus":"all",style:"position: fixed; top: 50%; width: 10px; height: 10px; overflow: hidden; opacity: 0"},NS);Rn.browser.isFirefox()&&f.setStyle(k,"left",f.getStyle(v,"direction",!0)==="rtl"?65535:-65535),f.bind(k,"beforedeactivate focusin focusout",E=>{E.stopPropagation()}),k.focus(),y.select(k,!0)})(i,c),remove:()=>((d,u)=>{const f=d.dom;if(MS(d)){let y;const v=u.get();for(;y=MS(d);)f.remove(y),f.unbind(y);v&&d.selection.setRng(v)}u.set(null)})(i,c),getEl:()=>MS(i),getHtml:()=>(d=>{const u=d.dom,f=(E,B)=>{E.appendChild(B),u.remove(B,!0)},[y,...v]=gt(d.getBody().childNodes,mz);Se(v,E=>{f(y,E)});const k=u.select("div[id=mcepastebin]",y);for(let E=k.length-1;E>=0;E--){const B=u.create("div");y.insertBefore(B,k[E]),f(B,k[E])}return y?y.innerHTML:""})(i),getLastRng:c.get}})(t);(i=>{(Rn.browser.isChromium()||Rn.browser.isSafari())&&((c,d)=>{c.on("PastePreProcess",u=>{u.content=d(c,u.content,u.internal)})})(i,UO)})(t),((i,c)=>{i.addCommand("mceTogglePlainTextPaste",()=>{((d,u)=>{u.get()==="text"?(u.set("html"),P3(d,!1)):(u.set("text"),P3(d,!0)),d.focus()})(i,c)}),i.addCommand("mceInsertClipboardContent",(d,u)=>{u.html&&pk(i,u.html,u.internal,!1),u.text&&Iy(i,u.text,!1)})})(t,n),(i=>{const c=f=>y=>{f(i,y)},d=h1(i);de(d)&&i.on("PastePreProcess",c(d));const u=Zl(i);de(u)&&i.on("PastePostProcess",c(u))})(t),t.on("PreInit",()=>{(i=>{i.on("cut",(c=>d=>{!d.isDefaultPrevented()&&xz(c)&&c.selection.isEditable()&&vz(d,PS(c),fk(c),()=>{if(Rn.browser.isChromium()||Rn.browser.isFirefox()){const u=c.selection.getRng();uu.setEditorTimeout(c,()=>{c.selection.setRng(u),c.execCommand("Delete")},0)}else c.execCommand("Delete")})})(i)),i.on("copy",(c=>d=>{!d.isDefaultPrevented()&&xz(c)&&vz(d,PS(c),fk(c),$t)})(i))})(t),((i,c)=>{Dv(i)&&i.on("dragend dragover draggesture dragdrop drop drag",d=>{d.preventDefault(),d.stopPropagation()}),Tg(i)||i.on("drop",d=>{const u=d.dataTransfer;u&&(f=>zo(f.files,y=>/^image\//.test(y.type)))(u)&&d.preventDefault()}),i.on("drop",d=>{if(d.isDefaultPrevented())return;const u=tl(i,d);if(me(u))return;const f=FS(d.dataTransfer),y=up(f,ev());if((!LS(f)||(O=>{const P=O["text/plain"];return!!P&&P.indexOf("file://")===0})(f))&&bz(i,d,u))return;const v=f[ev()],k=v||f["text/html"]||f["text/plain"],E=((O,P,M,j)=>{const q=O.getParent(M,K=>Ed(P,K));if(!he(O.getParent(M,"summary")))return!0;if(q&&ln(j,"text/html")){const K=new DOMParser().parseFromString(j["text/html"],"text/html").body;return!he(K.querySelector(q.nodeName.toLowerCase()))}return!1})(i.dom,i.schema,u.startContainer,f),B=c.get();B&&!E||k&&(d.preventDefault(),uu.setEditorTimeout(i,()=>{i.undoManager.transact(()=>{(v||B&&E)&&i.execCommand("Delete"),Nm(i,u);const O=DS(k);f["text/html"]?pk(i,O,y,!0):Iy(i,O,!0)})}))}),i.on("dragstart",d=>{c.set(!0)}),i.on("dragover dragend",d=>{Tg(i)&&!c.get()&&(d.preventDefault(),Nm(i,tl(i,d))),d.type==="dragend"&&c.set(!1)}),(d=>{d.on("input",u=>{const f=y=>he(y.querySelector("summary"));if(u.inputType==="deleteByDrag"){const y=gt(d.dom.select("details"),f);Se(y,v=>{da(v.firstChild)&&v.firstChild.remove();const k=d.dom.create("summary");k.appendChild(Xi().dom),v.prepend(k)})}})})(i)})(t,o),yz(t,a,n)})},Py=da,_z=ro,Mm=t=>Oa(t.dom),Cz=t=>o=>sa(je(t),o),Sz=(t,o)=>ts(je(t),Mm,Cz(o)),HS=(t,o,n)=>{const a=new Ns(t,o),i=n?a.next.bind(a):a.prev.bind(a);let c=t;for(let d=n?t:i();d&&!Py(d);d=i())Ka(d)&&(c=d);return c},Ez=t=>{const o=((n,a,i)=>{const c=Ht.fromRangeStart(n).getNode(),d=((v,k,E)=>ts(je(v),B=>(O=>zi(O.dom))(B)||E.isBlock(Pe(B)),Cz(k)).getOr(je(k)).dom)(c,a,i),u=HS(c,d,!1),f=HS(c,d,!0),y=document.createRange();return Sz(u,d).fold(()=>{_z(u)?y.setStart(u,0):y.setStartBefore(u)},v=>y.setStartBefore(v.dom)),Sz(f,d).fold(()=>{_z(f)?y.setEnd(f,f.data.length):y.setEndAfter(f)},v=>y.setEndAfter(v.dom)),y})(t.selection.getRng(),t.getBody(),t.schema);t.selection.setRng(Dx(o))};var Hy;(function(t){t.Before="before",t.After="after"})(Hy||(Hy={}));const jS=(t,o)=>Math.abs(t.left-o),Tz=(t,o)=>Math.abs(t.right-o),ZO=(t,o)=>(n=>Oe(n,(a,i)=>a.fold(()=>V.some(i),c=>{const d=Math.min(i.left,c.left),u=Math.min(i.top,c.top),f=Math.max(i.right,c.right),y=Math.max(i.bottom,c.bottom);return V.some({top:u,right:f,bottom:y,left:d,width:f-d,height:y-u})}),V.none()))(gt(t,n=>{return(a=o)>=(i=n).top&&a<=i.bottom;var a,i})).fold(()=>[[],t],n=>{const{pass:a,fail:i}=ct(t,c=>((d,u)=>{const f=((y,v)=>Math.max(0,Math.min(y.bottom,v.bottom)-Math.max(y.top,v.top)))(d,u)/Math.min(d.height,u.height);return((y,v)=>y.topv.top)(d,u)&&f>.5})(c,n));return[a,i]}),qO=(t,o,n)=>o>t.left&&o{const i=v=>Ka(v.node)?V.some(v):an(v.node)?hk(Pn(v.node.childNodes),o,n,!1):V.none(),c=(v,k)=>{const E=Xo(v,(B,O)=>k(B,o,n)-k(O,o,n));return zn(E,i).map(B=>a&&!ro(B.node)&&E.length>1?((O,P,M)=>i(P).filter(j=>Math.abs(M(O,o,n)-M(j,o,n))<2&&ro(j.node)))(B,E[1],k).getOr(B):B)},[d,u]=ZO(tT(t),n),{pass:f,fail:y}=ct(u,v=>v.topc(y,Op)).orThunk(()=>c(f,Op))},VS=(t,o,n)=>((a,i,c)=>{const d=je(a),u=Si(d),f=Ll(u,i,c).filter(y=>lc(d,y)).getOr(d);return((y,v,k,E)=>{const B=(O,P)=>{const M=gt(O.dom.childNodes,lt(j=>an(j)&&j.classList.contains("mce-drag-container")));return P.fold(()=>hk(M,k,E,!0),j=>{const q=gt(M,K=>K!==j.dom);return hk(q,k,E,!0)}).orThunk(()=>(sa(O,y)?V.none():Il(O)).bind(j=>B(j,V.some(O))))};return B(v,V.none())})(d,f,i,c)})(t,o,n).filter(a=>lu(a.node)).map(a=>((i,c)=>({node:i.node,position:jS(i,c){var o,n;const a=t.getBoundingClientRect(),i=t.ownerDocument,c=i.documentElement,d=i.defaultView;return{top:a.top+((o=d==null?void 0:d.scrollY)!==null&&o!==void 0?o:0)-c.clientTop,left:a.left+((n=d==null?void 0:d.scrollX)!==null&&n!==void 0?n:0)-c.clientLeft}},yk=t=>({target:t,srcElement:t}),$S=(t,o,n,a)=>{const i=((c,d)=>{const u=(f=>{const y=TS(),v=(k=>{const E=k;return V.from(E[Vh])})(f);return ES(f),az(y),y.dropEffect=f.dropEffect,y.effectAllowed=f.effectAllowed,(k=>{const E=k;return V.from(E[Fy])})(f).each(k=>y.setDragImage(k.image,k.x,k.y)),Se(f.types,k=>{k!=="Files"&&y.setData(k,f.getData(k))}),Se(f.files,k=>y.items.add(k)),(k=>{const E=k;return V.from(E[dk])})(f).each(k=>{((E,B)=>{Q0(B)(E)})(y,k)}),v.each(k=>{iz(f,k),iz(y,k)}),y})(c);return d==="dragstart"?(az(u),lz(u)):d==="drop"?(sz(u),ES(u)):(BO(u),LO(u)),u})(n,t);return fo(a)?((c,d,u)=>{const f=Mt("Function not supported on simulated event.");return{bubbles:!0,cancelBubble:!1,cancelable:!0,composed:!1,currentTarget:null,defaultPrevented:!1,eventPhase:0,isTrusted:!0,returnValue:!1,timeStamp:0,type:c,composedPath:f,initEvent:f,preventDefault:$t,stopImmediatePropagation:$t,stopPropagation:$t,AT_TARGET:window.Event.AT_TARGET,BUBBLING_PHASE:window.Event.BUBBLING_PHASE,CAPTURING_PHASE:window.Event.CAPTURING_PHASE,NONE:window.Event.NONE,altKey:!1,button:0,buttons:0,clientX:0,clientY:0,ctrlKey:!1,metaKey:!1,movementX:0,movementY:0,offsetX:0,offsetY:0,pageX:0,pageY:0,relatedTarget:null,screenX:0,screenY:0,shiftKey:!1,x:0,y:0,detail:0,view:null,which:0,initUIEvent:f,initMouseEvent:f,getModifierState:f,dataTransfer:u,...yk(d)}})(t,o,i):((c,d,u,f)=>({...d,dataTransfer:f,type:c,...yk(u)}))(t,a,o,i)},vk=Oa,zz=((...t)=>o=>{for(let n=0;n{const i=t.dom,c=o.cloneNode(!0);i.setStyles(c,{width:n,height:a}),i.setAttrib(c,"data-mce-selected",null);const d=i.create("div",{class:"mce-drag-container","data-mce-bogus":"all",unselectable:"on",contenteditable:"false"});return i.setStyles(d,{position:"absolute",opacity:.5,overflow:"hidden",border:0,padding:0,margin:0,width:n,height:a}),i.setStyles(c,{margin:0,boxSizing:"border-box"}),d.appendChild(c),d},jy=(t,o)=>n=>()=>{const a=t==="left"?n.scrollX:n.scrollY;n.scroll({[t]:a+o,behavior:"smooth"})},Oz=jy("left",-32),US=jy("left",32),xk=jy("top",-32),ZS=jy("top",32),qS=t=>{t&&t.parentNode&&t.parentNode.removeChild(t)},_f=(t,o,n,a,i)=>{o==="dragstart"&&zS(a,t.dom.getOuterHTML(n));const c=$S(o,n,a,i);return t.dispatch(o,c)},Nz=(t,o)=>{const n=Ep((i,c)=>((d,u,f)=>{d._selectionOverrides.hideFakeCaret(),VS(d.getBody(),u,f).fold(()=>d.selection.placeCaretAt(u,f),y=>{const v=d._selectionOverrides.showCaret(1,y.node,y.position===Hy.Before,!1);v?d.selection.setRng(v):d.selection.placeCaretAt(u,f)})})(o,i,c),0);o.on("remove",n.cancel);const a=t;return i=>t.on(c=>{const d=Math.max(Math.abs(i.screenX-c.screenX),Math.abs(i.screenY-c.screenY));if(!c.dragging&&d>10){const y=_f(o,"dragstart",c.element,c.dataTransfer,i);if(Ze(y.dataTransfer)&&(c.dataTransfer=y.dataTransfer),y.isDefaultPrevented())return;c.dragging=!0,o.focus()}if(c.dragging){const y=i.currentTarget===o.getDoc().documentElement,v=((k,E)=>({pageX:E.pageX-k.relX,pageY:E.pageY+5}))(c,((k,E)=>{return B=(M=>M.inline?bk(M.getBody()):{left:0,top:0})(k),O=(M=>{const j=M.getBody();return M.inline?{left:j.scrollLeft,top:j.scrollTop}:{left:0,top:0}})(k),P=((M,j)=>{if(j.target.ownerDocument!==M.getDoc()){const q=bk(M.getContentAreaContainer()),K=(re=>{const ee=re.getBody(),ke=re.getDoc().documentElement,et={left:ee.scrollLeft,top:ee.scrollTop},st={left:ee.scrollLeft||ke.scrollLeft,top:ee.scrollTop||ke.scrollTop};return re.inline?et:st})(M);return{left:j.pageX-q.left+K.left,top:j.pageY-q.top+K.top}}return{left:j.pageX,top:j.pageY}})(k,E),{pageX:P.left-B.left+O.left,pageY:P.top-B.top+O.top};var B,O,P})(o,i));u=c.ghost,f=o.getBody(),u.parentNode!==f&&f.appendChild(u),((k,E,B,O,P,M,j,q,K,re,ee,ke)=>{let et=0,st=0;k.style.left=E.pageX+"px",k.style.top=E.pageY+"px",E.pageX+B>P&&(et=E.pageX+B-P),E.pageY+O>M&&(st=E.pageY+O-M),k.style.width=B-et+"px",k.style.height=O-st+"px";const mt=K.clientHeight,kt=K.clientWidth,Ve=j+K.getBoundingClientRect().top,ot=q+K.getBoundingClientRect().left;ee.on(pt=>{pt.intervalId.clear(),pt.dragging&&ke&&(j+8>=mt?pt.intervalId.set(ZS(re)):j-8<=0?pt.intervalId.set(xk(re)):q+8>=kt?pt.intervalId.set(US(re)):q-8<=0?pt.intervalId.set(Oz(re)):Ve+16>=window.innerHeight?pt.intervalId.set(ZS(window)):Ve-16<=0?pt.intervalId.set(xk(window)):ot+16>=window.innerWidth?pt.intervalId.set(US(window)):ot-16<=0&&pt.intervalId.set(Oz(window)))})})(c.ghost,v,c.width,c.height,c.maxX,c.maxY,i.clientY,i.clientX,o.getContentAreaContainer(),o.getWin(),a,y),n.throttle(i.clientX,i.clientY)}var u,f})},WS=(t,o,n)=>{t.on(a=>{a.intervalId.clear(),a.dragging&&n.fold(()=>_f(o,"dragend",a.element,a.dataTransfer),i=>_f(o,"dragend",a.element,a.dataTransfer,i))}),Mz(t)},Mz=t=>{t.on(o=>{o.intervalId.clear(),qS(o.ghost)}),t.clear()},WO=t=>{const o=Ec(),n=wr.DOM,a=document,i=((f,y)=>v=>{if((k=>k.button===0)(v)){const k=Fe(y.dom.getParents(v.target),zz).getOr(null);if(Ze(k)&&((E,B,O)=>vk(O)&&O!==B&&E.isEditable(O.parentElement))(y.dom,y.getBody(),k)){const E=y.dom.getPos(k),B=y.getBody(),O=y.getDoc().documentElement;f.set({element:k,dataTransfer:TS(),dragging:!1,screenX:v.screenX,screenY:v.screenY,maxX:(y.inline?B.scrollWidth:O.offsetWidth)-2,maxY:(y.inline?B.scrollHeight:O.offsetHeight)-2,relX:v.pageX-E.x,relY:v.pageY-E.y,width:k.offsetWidth,height:k.offsetHeight,ghost:Az(y,k,k.offsetWidth,k.offsetHeight),intervalId:Lu(100)})}}})(o,t),c=Nz(o,t),d=((f,y)=>v=>{f.on(k=>{var E;if(k.intervalId.clear(),k.dragging){if(((B,O,P)=>!me(O)&&O!==P&&!B.dom.isChildOf(O,P)&&B.dom.isEditable(O))(y,(B=>{const O=B.getSel();if(Ze(O)){const P=O.getRangeAt(0).startContainer;return ro(P)?P.parentNode:P}return null})(y.selection),k.element)){const B=(E=y.getDoc().elementFromPoint(v.clientX,v.clientY))!==null&&E!==void 0?E:y.getBody();_f(y,"drop",B,k.dataTransfer,v).isDefaultPrevented()||y.undoManager.transact(()=>{((O,P)=>{const M=O.getParent(P.parentNode,O.isBlock);qS(P),M&&M!==O.getRoot()&&O.isEmpty(M)&&Oi(je(M))})(y.dom,k.element),(O=>{const P=O.getData("text/html");return P===""?V.none():V.some(P)})(k.dataTransfer).each(O=>y.insertContent(O)),y._selectionOverrides.hideFakeCaret()})}_f(y,"dragend",y.getBody(),k.dataTransfer,v)}}),Mz(f)})(o,t),u=((f,y)=>v=>WS(f,y,V.some(v)))(o,t);t.on("mousedown",i),t.on("mousemove",c),t.on("mouseup",d),n.bind(a,"mousemove",c),n.bind(a,"mouseup",u),t.on("remove",()=>{n.unbind(a,"mousemove",c),n.unbind(a,"mouseup",u)}),t.on("keydown",f=>{f.keyCode===mn.ESC&&WS(o,t,V.none())})},tv=Oa,Dz=(t,o)=>Zu(t.getBody(),o),GO=t=>{const o=t.selection,n=t.dom,a=t.getBody(),i=Db(t,a,n.isBlock,()=>rf(t)),c="sel-"+n.uniqueId(),d="data-mce-selected";let u;const f=M=>M!==a&&(tv(M)||$i(M))&&n.isChildOf(M,a)&&n.isEditable(M.parentNode),y=(M,j,q,K=!0)=>t.dispatch("ShowCaret",{target:j,direction:M,before:q}).isDefaultPrevented()?null:(K&&o.scrollIntoView(j,M===-1),i.show(q,j)),v=M=>Ws(M)||ai(M)||z(M),k=M=>v(M.startContainer)||v(M.endContainer),E=M=>{const j=t.schema.getVoidElements(),q=n.createRng(),K=M.startContainer,re=M.startOffset,ee=M.endContainer,ke=M.endOffset;return ln(j,K.nodeName.toLowerCase())?re===0?q.setStartBefore(K):q.setStartAfter(K):q.setStart(K,re),ln(j,ee.nodeName.toLowerCase())?ke===0?q.setEndBefore(ee):q.setEndAfter(ee):q.setEnd(ee,ke),q},B=(M,j)=>{if(!M)return null;if(M.collapsed){if(!k(M)){const ee=j?1:-1,ke=xm(ee,a,M),et=ke.getNode(!j);if(Ze(et)){if(lu(et))return y(ee,et,!!j&&!ke.isAtEnd(),!1);if(bs(et)&&Oa(et.nextSibling)){const mt=n.createRng();return mt.setStart(et,0),mt.setEnd(et,0),mt}}const st=ke.getNode(j);if(Ze(st)){if(lu(st))return y(ee,st,!j&&!ke.isAtEnd(),!1);if(bs(st)&&Oa(st.previousSibling)){const mt=n.createRng();return mt.setStart(st,1),mt.setEnd(st,1),mt}}}return null}let q=M.startContainer,K=M.startOffset;const re=M.endOffset;if(ro(q)&&K===0&&tv(q.parentNode)&&(q=q.parentNode,K=n.nodeIndex(q),q=q.parentNode),!an(q))return null;if(re===K+1&&q===M.endContainer){const ee=q.childNodes[K];if(f(ee))return(ke=>{const et=ke.cloneNode(!0),st=t.dispatch("ObjectSelected",{target:ke,targetClone:et});if(st.isDefaultPrevented())return null;const mt=((Ve,ot)=>{const pt=je(t.getBody()),Jt=t.getDoc(),en=fd(pt,"#"+c).getOrThunk(()=>{const An=ic('
    ',Jt);return Q(An,"id",c),os(pt,An),An}),Fo=n.createRng();bd(en),dc(en,[vc(ns,Jt),je(ot),vc(ns,Jt)]),Fo.setStart(en.dom.firstChild,1),Fo.setEnd(en.dom.lastChild,0),qd(en,{top:n.getPos(Ve,t.getBody()).y+"px"}),J3(en);const Nn=o.getSel();return Nn&&(Nn.removeAllRanges(),Nn.addRange(Fo)),Fo})(ke,st.targetClone),kt=je(ke);return Se(wa(je(t.getBody()),`*[${d}]`),Ve=>{sa(kt,Ve)||U(Ve,d)}),n.getAttrib(ke,d)||ke.setAttribute(d,"1"),u=ke,P(),mt})(ee)}return null},O=()=>{u&&u.removeAttribute(d),fd(je(t.getBody()),"#"+c).each(Ea),u=null},P=()=>{i.hide()};return Tm(t)||(t.on("click",M=>{n.isEditable(M.target)||(M.preventDefault(),t.focus())}),t.on("blur NewBlock",O),t.on("ResizeWindow FullscreenStateChanged",i.reposition),t.on("tap",M=>{const j=M.target,q=Dz(t,j);tv(q)?(M.preventDefault(),C0(t,q).each(B)):f(j)&&C0(t,j).each(B)},!0),t.on("mousedown",M=>{const j=M.target;if(j!==a&&j.nodeName!=="HTML"&&!n.isChildOf(j,a)||!((K,re,ee)=>{const ke=je(K.getBody()),et=K.inline?ke:je(Si(ke).dom.documentElement),st=((mt,kt,Ve,ot)=>{const pt=(Jt=>Jt.dom.getBoundingClientRect())(kt);return{x:Ve-(mt?pt.left+kt.dom.clientLeft+J2(kt):0),y:ot-(mt?pt.top+kt.dom.clientTop+k0(kt):0)}})(K.inline,et,re,ee);return((mt,kt,Ve)=>{const ot=_E(mt),pt=CE(mt);return kt>=0&&Ve>=0&&kt<=ot&&Ve<=pt})(et,st.x,st.y)})(t,M.clientX,M.clientY))return;O(),P();const q=Dz(t,j);tv(q)?(M.preventDefault(),C0(t,q).each(B)):VS(a,M.clientX,M.clientY).each(K=>{var re;M.preventDefault(),(re=y(1,K.node,K.position===Hy.Before,!1))&&o.setRng(re),Ti(q)?q.focus():t.getBody().focus()})}),t.on("keypress",M=>{mn.modifierPressed(M)||tv(o.getNode())&&M.preventDefault()}),t.on("GetSelectionRange",M=>{let j=M.range;if(u){if(!u.parentNode)return void(u=null);j=j.cloneRange(),j.selectNode(u),M.range=j}}),t.on("SetSelectionRange",M=>{M.range=E(M.range);const j=B(M.range,M.forward);j&&(M.range=j)}),t.on("AfterSetSelectionRange",M=>{const j=M.range,q=j.startContainer.parentElement;var K;k(j)||an(K=q)&&K.id==="mcepastebin"||P(),(re=>Ze(re)&&n.hasClass(re,"mce-offscreen-selection"))(q)||O()}),(M=>{WO(M),p1(M)&&(j=>{const q=ee=>{if(!ee.isDefaultPrevented()){const ke=ee.dataTransfer;ke&&(lo(ke.types,"Files")||ke.files.length>0)&&(ee.preventDefault(),ee.type==="drop"&&hu(j,"Dropped file type is not supported"))}},K=ee=>{lx(j,ee.target)&&q(ee)},re=()=>{const ee=wr.DOM,ke=j.dom,et=document,st=j.inline?j.getBody():j.getDoc(),mt=["drop","dragover"];Se(mt,kt=>{ee.bind(et,kt,K),ke.bind(st,kt,q)}),j.on("remove",()=>{Se(mt,kt=>{ee.unbind(et,kt,K),ke.unbind(st,kt,q)})})};j.on("init",()=>{uu.setEditorTimeout(j,re,0)})})(M)})(t),(M=>{const j=Ep(()=>{if(!M.removed&&M.getBody().contains(document.activeElement)){const q=M.selection.getRng();if(q.collapsed){const K=S0(M,q,!1);M.selection.setRng(K)}}},0);M.on("focus",()=>{j.throttle()}),M.on("blur",()=>{j.cancel()})})(t),(M=>{M.on("init",()=>{M.on("focusin",j=>{const q=j.target;if($i(q)){const K=Zu(M.getBody(),q),re=Oa(K)?K:q;M.selection.getNode()!==re&&C0(M,re).each(ee=>M.selection.setRng(ee))}})})})(t)),{showCaret:y,showBlockCaretContainer:M=>{M.hasAttribute("data-mce-caret")&&(H(M),o.scrollIntoView(M))},hideFakeCaret:P,destroy:()=>{i.destroy(),u=null}}},di=(t,o)=>{let n=o;for(let a=t.previousSibling;ro(a);a=a.previousSibling)n+=a.data.length;return n},wk=(t,o,n,a,i)=>{if(ro(n)&&(a<0||a>n.data.length))return[];const c=i&&ro(n)?[di(n,a)]:[a];let d=n;for(;d!==o&&d.parentNode;)c.push(t.nodeIndex(d,i)),d=d.parentNode;return d===o?c.reverse():[]},Qu=(t,o,n,a,i,c,d=!1)=>({start:wk(t,o,n,a,d),end:wk(t,o,i,c,d)}),GS=(t,o)=>{const n=o.slice(),a=n.pop();return rt(a)?Oe(n,(i,c)=>i.bind(d=>V.from(d.childNodes[c])),V.some(t)).bind(i=>ro(i)&&(a<0||a>i.data.length)?V.none():V.some({node:i,offset:a})):V.none()},KS=(t,o)=>GS(t,o.start).bind(({node:n,offset:a})=>GS(t,o.end).map(({node:i,offset:c})=>{const d=document.createRange();return d.setStart(n,a),d.setEnd(i,c),d})),mp=(t,o,n)=>{if(o&&t.isEmpty(o)&&!n(o)){const a=o.parentNode;t.remove(o,ro(o.firstChild)&&ss(o.firstChild.data)),mp(t,a,n)}},Vy=(t,o,n,a=!0)=>{const i=o.startContainer.parentNode,c=o.endContainer.parentNode;o.deleteContents(),a&&!n(o.startContainer)&&(ro(o.startContainer)&&o.startContainer.data.length===0&&t.remove(o.startContainer),ro(o.endContainer)&&o.endContainer.data.length===0&&t.remove(o.endContainer),mp(t,i,n),i!==c&&mp(t,c,n))},kk=(t,o)=>V.from(t.dom.getParent(o.startContainer,t.dom.isBlock)),YS=(t,o,n)=>{const a=t.dynamicPatternsLookup({text:n,block:o});return{...t,blockPatterns:Bp(a).concat(t.blockPatterns),inlinePatterns:wv(a).concat(t.inlinePatterns)}},XS=(t,o,n,a)=>{const i=t.createRng();return i.setStart(o,0),i.setEnd(n,a),i.toString()},Rz=(t,o,n)=>{((a,i,c)=>{if(ro(a)&&0>=a.length)return V.some(Am(a,0));{const d=um(L0);return V.from(d.forwards(a,0,Fw(a),c)).map(u=>Am(u.container,0))}})(o,0,o).each(a=>{const i=a.container;qC(i,n.start.length,o).each(u=>{const f=t.createRng();f.setStart(i,0),f.setEnd(u.container,u.offset),Vy(t,f,y=>y===o)});const c=je(i),d=Ai(c);/^\s[^\s]/.test(d)&&((u,f)=>{ft.set(u,f)})(c,d.slice(1))})},Bz=(t,o)=>t.create("span",{"data-mce-type":"bookmark",id:o}),_k=(t,o)=>{const n=t.createRng();return n.setStartAfter(o.start),n.setEndBefore(o.end),n},JS=(t,o,n)=>{const a=KS(t.getRoot(),n).getOrDie("Unable to resolve path range"),i=a.startContainer,c=a.endContainer,d=a.endOffset===0?c:c.splitText(a.endOffset),u=a.startOffset===0?i:i.splitText(a.startOffset),f=u.parentNode;return{prefix:o,end:d.parentNode.insertBefore(Bz(t,o+"-end"),d),start:f.insertBefore(Bz(t,o+"-start"),u)}},QS=(t,o,n)=>{mp(t,t.get(o.prefix+"-end"),n),mp(t,t.get(o.prefix+"-start"),n)},e3=t=>t.start.length===0,Ck=(t,o,n,a)=>{const i=o.start;var c;return Iw(t,a.container,a.offset,(c=i,(d,u)=>{const f=d.data.substring(0,u),y=f.lastIndexOf(c.charAt(c.length-1)),v=f.lastIndexOf(c);return v!==-1?v+c.length:y!==-1?y+1:-1}),n).bind(d=>{var u,f;const y=(f=(u=n.textContent)===null||u===void 0?void 0:u.indexOf(i))!==null&&f!==void 0?f:-1;if(y!==-1&&d.offset>=y+i.length){const v=t.createRng();return v.setStart(d.container,d.offset-i.length),v.setEnd(d.container,d.offset),V.some(v)}{const v=d.offset-i.length;return Lw(d.container,v,n).map(k=>{const E=t.createRng();return E.setStart(k.container,k.offset),E.setEnd(d.container,d.offset),E}).filter(k=>k.toString()===i).orThunk(()=>Ck(t,o,n,Am(d.container,0)))}})},Fz=(t,o,n,a)=>{const i=t.dom,c=i.getRoot(),d=n.pattern,u=n.position.container,f=n.position.offset;return Lw(u,f-n.pattern.end.length,o).bind(y=>{const v=Qu(i,c,y.container,y.offset,u,f,a);if(e3(d))return V.some({matches:[{pattern:d,startRng:v,endRng:v}],position:y});{const k=Sk(t,n.remainingPatterns,y.container,y.offset,o,a),E=k.getOr({matches:[],position:y}),B=E.position;return((P,M,j,q,K,re=!1)=>{if(M.start.length===0&&!re){const ee=P.createRng();return ee.setStart(j,q),ee.setEnd(j,q),V.some(ee)}return vf(j,q,K).bind(ee=>Ck(P,M,K,ee).bind(ke=>{var et;return re&&(ke.endContainer===ee.container&&ke.endOffset===ee.offset||ee.offset===0&&((et=ke.endContainer.textContent)===null||et===void 0?void 0:et.length)===ke.endOffset)?V.none():V.some(ke)}))})(i,d,B.container,B.offset,o,k.isNone()).map(P=>{const M=((j,q,K,re=!1)=>Qu(j,q,K.startContainer,K.startOffset,K.endContainer,K.endOffset,re))(i,c,P,a);return{matches:E.matches.concat([{pattern:d,startRng:M,endRng:v}]),position:Am(P.startContainer,P.startOffset)}})}})},Sk=(t,o,n,a,i,c)=>{const d=t.dom;return vf(n,a,d.getRoot()).bind(u=>{const f=XS(d,i,n,a);for(let y=0;y0)return Sk(t,o,n,a-1,i,c);if(E.isSome())return E}return V.none()})},t3=(t,o,n)=>{t.selection.setRng(n),o.type==="inline-format"?Se(o.format,a=>{t.formatter.apply(a)}):t.execCommand(o.cmd,!1,o.value)},Lz=(t,o,n,a,i,c)=>{var d;return((u,f)=>{const y=ze(u,v=>zo(f,k=>v.pattern.start===k.pattern.start&&v.pattern.end===k.pattern.end));return u.length===f.length?y?u:f:u.length>f.length?u:f})(Sk(t,i.inlinePatterns,n,a,o,c).fold(()=>[],u=>u.matches),Sk(t,(d=i.inlinePatterns,Xo(d,(u,f)=>f.end.length-u.end.length)),n,a,o,c).fold(()=>[],u=>u.matches))},Iz=(t,o)=>{if(o.length===0)return;const n=t.dom,a=t.selection.getBookmark(),i=((c,d)=>{const u=hg("mce_textpattern"),f=pe(d,(y,v)=>{const k=JS(c,u+`_end${y.length}`,v.endRng);return y.concat([{...v,endMarker:k}])},[]);return pe(f,(y,v)=>{const k=f.length-y.length-1,E=e3(v.pattern)?v.endMarker:JS(c,u+`_start${k}`,v.startRng);return y.concat([{...v,startMarker:E}])},[])})(n,o);Se(i,c=>{const d=n.getParent(c.startMarker.start,n.isBlock),u=f=>f===d;e3(c.pattern)?((f,y,v,k)=>{const E=_k(f.dom,v);Vy(f.dom,E,k),t3(f,y,E)})(t,c.pattern,c.endMarker,u):((f,y,v,k,E)=>{const B=f.dom,O=_k(B,k),P=_k(B,v);Vy(B,P,E),Vy(B,O,E);const M={prefix:v.prefix,start:v.end,end:k.start},j=_k(B,M);t3(f,y,j)})(t,c.pattern,c.startMarker,c.endMarker,u),QS(n,c.endMarker,u),QS(n,c.startMarker,u)}),t.selection.moveToBookmark(a)},ac=(t,o)=>{const n=t.selection.getRng();return kk(t,n).map(a=>{var i;const c=Math.max(0,n.startOffset),d=YS(o,a,(i=a.textContent)!==null&&i!==void 0?i:""),u=Lz(t,a,n.startContainer,c,d,!0),f=((y,v,k,E)=>{var B;const O=y.dom,P=Ts(y);if(!O.is(v,P))return[];const M=(B=v.textContent)!==null&&B!==void 0?B:"";return((j,q)=>{const K=(ee=>Xo(ee,(ke,et)=>et.start.length-ke.start.length))(j),re=q.replace(ns," ");return Fe(K,ee=>q.indexOf(ee.start)===0||re.indexOf(ee.start)===0)})(k.blockPatterns,M).map(j=>go.trim(M).length===j.start.length?[]:[{pattern:j,range:Qu(O,O.getRoot(),v,0,v,0,!0)}]).getOr([])})(t,a,d);return(f.length>0||u.length>0)&&(t.undoManager.add(),t.undoManager.extra(()=>{t.execCommand("mceInsertNewLine")},()=>{(k=>{k.insertContent(Za,{preserve_zwsp:!0})})(t),Iz(t,u),((k,E)=>{if(E.length===0)return;const B=k.selection.getBookmark();Se(E,O=>((P,M)=>{const j=P.dom,q=M.pattern,K=KS(j.getRoot(),M.range).getOrDie("Unable to resolve path range");return kk(P,K).each(re=>{q.type==="block-format"?((ee,ke)=>{const et=ke.get(ee);return co(et)&&Zo(et).exists(st=>ln(st,"block"))})(q.format,P.formatter)&&P.undoManager.transact(()=>{Rz(P.dom,re,q),P.formatter.apply(q.format)}):q.type==="block-command"&&P.undoManager.transact(()=>{Rz(P.dom,re,q),P.execCommand(q.cmd,!1,q.value)})}),!0})(k,O)),k.selection.moveToBookmark(B)})(t,f);const y=t.selection.getRng(),v=vf(y.startContainer,y.startOffset,t.dom.getRoot());t.execCommand("mceInsertNewLine"),v.each(k=>{const E=k.container;E.data.charAt(k.offset-1)===Tl&&(E.deleteData(k.offset-1,1),mp(t.dom,E.parentNode,B=>B===t.dom.getRoot()))})}),!0)}).getOr(!1)},Pz=(t,o,n)=>{for(let a=0;a{const o=go.each,n=mn.BACKSPACE,a=mn.DELETE,i=t.dom,c=t.selection,d=t.parser,u=Rn.browser,f=u.isFirefox(),y=u.isChromium()||u.isSafari(),v=Rn.deviceType.isiPhone()||Rn.deviceType.isiPad(),k=Rn.os.isMacOS()||Rn.os.isiOS(),E=(Ve,ot)=>{try{t.getDoc().execCommand(Ve,!1,String(ot))}catch{}},B=Ve=>Ve.isDefaultPrevented(),O=()=>{t.shortcuts.add("meta+a",null,"SelectAll")},P=()=>{t.inline||i.bind(t.getDoc(),"mousedown mouseup",Ve=>{let ot;if(Ve.target===t.getDoc().documentElement)if(ot=c.getRng(),t.getBody().focus(),Ve.type==="mousedown"){if(Ws(ot.startContainer))return;c.placeCaretAt(Ve.clientX,Ve.clientY)}else c.setRng(ot)})},M=()=>{Range.prototype.getClientRects||t.on("mousedown",Ve=>{if(!B(Ve)&&Ve.target.nodeName==="HTML"){const ot=t.getBody();ot.blur(),uu.setEditorTimeout(t,()=>{ot.focus()})}})},j=()=>{const Ve=rh(t);t.on("click",ot=>{const pt=ot.target;/^(IMG|HR)$/.test(pt.nodeName)&&i.isEditable(pt)&&(ot.preventDefault(),t.selection.select(pt),t.nodeChanged()),pt.nodeName==="A"&&i.hasClass(pt,Ve)&&pt.childNodes.length===0&&i.isEditable(pt.parentNode)&&(ot.preventDefault(),c.select(pt))})},q=()=>{t.on("keydown",Ve=>{if(!B(Ve)&&Ve.keyCode===n&&c.isCollapsed()&&c.getRng().startOffset===0){const ot=c.getNode().previousSibling;if(ot&&ot.nodeName&&ot.nodeName.toLowerCase()==="table")return Ve.preventDefault(),!1}return!0})},K=()=>{nh(t)||t.on("BeforeExecCommand mousedown",()=>{E("StyleWithCSS",!1),E("enableInlineTableEditing",!1),th(t)||E("enableObjectResizing",!1)})},re=()=>{t.contentStyles.push("img:-moz-broken {-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}")},ee=()=>{t.inline||t.on("keydown",()=>{document.activeElement===document.body&&t.getWin().focus()})},ke=()=>{t.inline||(t.contentStyles.push("body {min-height: 150px}"),t.on("click",Ve=>{let ot;Ve.target.nodeName==="HTML"&&(ot=t.selection.getRng(),t.getBody().focus(),t.selection.setRng(ot),t.selection.normalize(),t.nodeChanged())}))},et=()=>{k&&t.on("keydown",Ve=>{!mn.metaKeyPressed(Ve)||Ve.shiftKey||Ve.keyCode!==37&&Ve.keyCode!==39||(Ve.preventDefault(),t.selection.getSel().modify("move",Ve.keyCode===37?"backward":"forward","lineboundary"))})},st=()=>{t.on("click",Ve=>{let ot=Ve.target;do if(ot.tagName==="A")return void Ve.preventDefault();while(ot=ot.parentNode)}),t.contentStyles.push(".mce-content-body {-webkit-touch-callout: none}")},mt=()=>{t.on("init",()=>{t.dom.bind(t.getBody(),"submit",Ve=>{Ve.preventDefault()})})},kt=$t;return Tm(t)?(y&&(P(),j(),mt(),O(),v&&(ee(),ke(),st())),f&&(M(),K(),re(),et())):(t.on("keydown",Ve=>{if(B(Ve)||Ve.keyCode!==mn.BACKSPACE)return;let ot=c.getRng();const pt=ot.startContainer,Jt=ot.startOffset,en=i.getRoot();let Fo=pt;if(ot.collapsed&&Jt===0){for(;Fo.parentNode&&Fo.parentNode.firstChild===Fo&&Fo.parentNode!==en;)Fo=Fo.parentNode;Fo.nodeName==="BLOCKQUOTE"&&(t.formatter.toggle("blockquote",void 0,Fo),ot=i.createRng(),ot.setStart(pt,0),ot.setEnd(pt,0),c.setRng(ot))}}),(()=>{const Ve=ot=>{const pt=i.create("body"),Jt=ot.cloneContents();return pt.appendChild(Jt),c.serializer.serialize(pt,{format:"html"})};t.on("keydown",ot=>{const pt=ot.keyCode;if(!B(ot)&&(pt===a||pt===n)&&t.selection.isEditable()){const Jt=t.selection.isCollapsed(),en=t.getBody();if(Jt&&!ys(je(en))||!Jt&&!(Fo=>{const Nn=Ve(Fo),An=i.createRng();return An.selectNode(t.getBody()),Nn===Ve(An)})(t.selection.getRng()))return;ot.preventDefault(),t.setContent(""),en.firstChild&&i.isBlock(en.firstChild)?t.selection.setCursorLocation(en.firstChild,0):t.selection.setCursorLocation(en,0),t.nodeChanged()}})})(),Rn.windowsPhone||t.on("keyup focusin mouseup",Ve=>{mn.modifierPressed(Ve)||(ot=>{const pt=ot.getBody(),Jt=ot.selection.getRng();return Jt.startContainer===Jt.endContainer&&Jt.startContainer===pt&&Jt.startOffset===0&&Jt.endOffset===pt.childNodes.length})(t)||c.normalize()},!0),y&&(P(),j(),t.on("init",()=>{E("DefaultParagraphSeparator",Ts(t))}),mt(),q(),d.addNodeFilter("br",Ve=>{let ot=Ve.length;for(;ot--;)Ve[ot].attr("class")==="Apple-interchange-newline"&&Ve[ot].remove()}),v?(ee(),ke(),st()):O()),f&&(t.on("keydown",Ve=>{if(!B(Ve)&&Ve.keyCode===n){if(!t.getBody().getElementsByTagName("hr").length)return;if(c.isCollapsed()&&c.getRng().startOffset===0){const ot=c.getNode(),pt=ot.previousSibling;if(ot.nodeName==="HR")return i.remove(ot),void Ve.preventDefault();pt&&pt.nodeName&&pt.nodeName.toLowerCase()==="hr"&&(i.remove(pt),Ve.preventDefault())}}}),M(),(()=>{const Ve=()=>{const pt=i.getAttribs(c.getStart().cloneNode(!1));return()=>{const Jt=c.getStart();Jt!==t.getBody()&&(i.setAttrib(Jt,"style",null),o(pt,en=>{Jt.setAttributeNode(en.cloneNode(!0))}))}},ot=()=>!c.isCollapsed()&&i.getParent(c.getStart(),i.isBlock)!==i.getParent(c.getEnd(),i.isBlock);t.on("keypress",pt=>{let Jt;return!(!(B(pt)||pt.keyCode!==8&&pt.keyCode!==46)&&ot()&&(Jt=Ve(),t.getDoc().execCommand("delete",!1),Jt(),pt.preventDefault(),1))}),i.bind(t.getDoc(),"cut",pt=>{if(!B(pt)&&ot()){const Jt=Ve();uu.setEditorTimeout(t,()=>{Jt()})}})})(),K(),t.on("SetContent ExecCommand",Ve=>{Ve.type!=="setcontent"&&Ve.command!=="mceInsertLink"||o(i.select("a:not([data-mce-block])"),ot=>{var pt;let Jt=ot.parentNode;const en=i.getRoot();if((Jt==null?void 0:Jt.lastChild)===ot){for(;Jt&&!i.isBlock(Jt);){if(((pt=Jt.parentNode)===null||pt===void 0?void 0:pt.lastChild)!==Jt||Jt===en)return;Jt=Jt.parentNode}i.add(Jt,"br",{"data-mce-bogus":1})}})}),re(),et(),q(),t.on("drop",Ve=>{var ot;const pt=(ot=Ve.dataTransfer)===null||ot===void 0?void 0:ot.getData("text/html");Ue(pt)&&/^]*>$/.test(pt)&&t.dispatch("dragend",new window.DragEvent("dragend",Ve))}))),{refreshContentEditable:kt,isHidden:()=>{if(!f||t.removed)return!1;const Ve=t.selection.getSel();return!Ve||!Ve.rangeCount||Ve.rangeCount===0}}},o3=wr.DOM,YO=t=>t.inline?t.getElement().nodeName.toLowerCase():void 0,$y=t=>Rr(t,o=>fo(o)===!1),Hz=t=>{const o=t.options.get,n=t.editorUpload.blobCache;return $y({allow_conditional_comments:o("allow_conditional_comments"),allow_html_data_urls:o("allow_html_data_urls"),allow_svg_data_urls:o("allow_svg_data_urls"),allow_html_in_named_anchor:o("allow_html_in_named_anchor"),allow_script_urls:o("allow_script_urls"),allow_unsafe_link_target:o("allow_unsafe_link_target"),convert_unsafe_embeds:o("convert_unsafe_embeds"),convert_fonts_to_spans:o("convert_fonts_to_spans"),fix_list_elements:o("fix_list_elements"),font_size_legacy_values:o("font_size_legacy_values"),forced_root_block:o("forced_root_block"),forced_root_block_attrs:o("forced_root_block_attrs"),preserve_cdata:o("preserve_cdata"),inline_styles:o("inline_styles"),root_name:YO(t),sandbox_iframes:o("sandbox_iframes"),sanitize:o("xss_sanitization"),validate:!0,blob_cache:n,document:t.getDoc()})},Ek=t=>{const o=t.options.get;return $y({custom_elements:o("custom_elements"),extended_valid_elements:o("extended_valid_elements"),invalid_elements:o("invalid_elements"),invalid_styles:o("invalid_styles"),schema:o("schema"),valid_children:o("valid_children"),valid_classes:o("valid_classes"),valid_elements:o("valid_elements"),valid_styles:o("valid_styles"),verify_html:o("verify_html"),padd_empty_block_inline_children:o("format_empty_lines")})},ov=t=>t.inline?t.ui.styleSheetLoader:t.dom.styleSheetLoader,jz=t=>{const o=ov(t),n=xg(t),a=t.contentCSS,i=()=>{o.unloadAll(a),t.inline||t.ui.styleSheetLoader.unloadAll(n)},c=()=>{t.removed?i():t.on("remove",i)};if(t.contentStyles.length>0){let f="";go.each(t.contentStyles,y=>{f+=y+`\r +`}),t.dom.addStyle(f)}const d=Promise.all(((f,y,v)=>{const{pass:k,fail:E}=ct(y,P=>tinymce.Resource.has(mw(P))),B=k.map(P=>{const M=tinymce.Resource.get(mw(P));return Ue(M)?Promise.resolve(ov(f).loadRawCss(P,M)):Promise.resolve()}),O=[...B,ov(f).loadAll(E)];return f.inline?O:O.concat([f.ui.styleSheetLoader.loadAll(v)])})(t,a,n)).then(c).catch(c),u=Ev(t);return u&&((f,y)=>{const v=je(f.getBody()),k=cc(ta(v)),E=_s("style");Q(E,"type","text/css"),os(E,vc(y)),os(k,E),f.on("remove",()=>{Ea(E)})})(t,u),d},n3=t=>{t.removed!==!0&&((o=>{Tm(o)||o.load({initial:!0,format:"html"}),o.startContent=o.getContent({format:"raw"})})(t),(o=>{o.bindPendingEventDelegates(),o.initialized=!0,(a=>{a.dispatch("Init")})(o),o.focus(!0),(a=>{const i=a.dom.getRoot();a.inline||li(a)&&a.selection.getStart(!0)!==i||Z(i).each(c=>{const d=c.getNode(),u=Ms(d)?Z(d).getOr(c):c;a.selection.setRng(u.toRange())})})(o),o.nodeChanged({initial:!0});const n=Hp(o);de(n)&&n.call(o,o),(a=>{const i=Sb(a);i&&uu.setEditorTimeout(a,()=>{let c;c=i===!0?a:a.editorManager.get(i),c&&!c.destroyed&&(c.focus(),c.selection.scrollIntoView())},100)})(o)})(t))},em=t=>{const o=t.getElement();let n=t.getDoc();t.inline&&(o3.addClass(o,"mce-content-body"),t.contentDocument=n=document,t.contentWindow=window,t.bodyElement=o,t.contentAreaContainer=o);const a=t.getBody();a.disabled=!0,t.readonly=nh(t),t._editableRoot=g1(t),!t.readonly&&t.hasEditableRoot()&&(t.inline&&o3.getStyle(a,"position",!0)==="static"&&(a.style.position="relative"),a.contentEditable="true"),a.disabled=!1,t.editorUpload=oC(t),t.schema=Du(Ek(t)),t.dom=wr(n,{keep_values:!0,url_converter:t.convertURL,url_converter_scope:t,update_styles:!0,root_element:t.inline?t.getBody():null,collect:t.inline,schema:t.schema,contentCssCors:oc(t),referrerPolicy:Hu(t),onSetAttrib:d=>{t.dispatch("SetAttrib",d)},force_hex_color:Ob(t)}),t.parser=(d=>{const u=dy(Hz(d),d.schema);return u.addAttributeFilter("src,href,style,tabindex",(f,y)=>{const v=d.dom,k="data-mce-"+y;let E=f.length;for(;E--;){const B=f[E];let O=B.attr(y);if(O&&!B.attr(k)){if(O.indexOf("data:")===0||O.indexOf("blob:")===0)continue;y==="style"?(O=v.serializeStyle(v.parseStyle(O),B.name),O.length||(O=null),B.attr(k,O),B.attr(y,O)):y==="tabindex"?(B.attr(k,O),B.attr(y,null)):B.attr(k,d.convertURL(O,y,B.name))}}}),u.addNodeFilter("script",f=>{let y=f.length;for(;y--;){const v=f[y],k=v.attr("type")||"no/type";k.indexOf("mce-")!==0&&v.attr("type","mce-"+k)}}),Ab(d)&&u.addNodeFilter("#cdata",f=>{var y;let v=f.length;for(;v--;){const k=f[v];k.type=8,k.name="#comment",k.value="[CDATA["+d.dom.encode((y=k.value)!==null&&y!==void 0?y:"")+"]]"}}),u.addNodeFilter("p,h1,h2,h3,h4,h5,h6,div",f=>{let y=f.length;const v=d.schema.getNonEmptyElements();for(;y--;){const k=f[y];k.isEmpty(v)&&k.getAll("br").length===0&&k.append(new pc("br",1))}}),u})(t),t.serializer=Xg((d=>{const u=d.options.get;return{...Hz(d),...Ek(d),...$y({remove_trailing_brs:u("remove_trailing_brs"),pad_empty_with_br:u("pad_empty_with_br"),url_converter:u("url_converter"),url_converter_scope:u("url_converter_scope"),element_format:u("element_format"),entities:u("entities"),entity_encoding:u("entity_encoding"),indent:u("indent"),indent_after:u("indent_after"),indent_before:u("indent_before")})}})(t),t),t.selection=y0(t.dom,t.getWin(),t.serializer,t),t.annotator=km(t),t.formatter=_0(t),t.undoManager=iC(t),t._nodeChangeDispatcher=new Ju(t),t._selectionOverrides=GO(t),(d=>{const u=Ec(),f=bi(!1),y=Iu(v=>{d.dispatch("longpress",{...v,type:"longpress"}),f.set(!0)},400);d.on("touchstart",v=>{RC(v).each(k=>{y.cancel();const E={x:k.clientX,y:k.clientY,target:v.target};y.throttle(v),f.set(!1),u.set(E)})},!0),d.on("touchmove",v=>{y.cancel(),RC(v).each(k=>{u.on(E=>{((B,O)=>{const P=Math.abs(B.clientX-O.x),M=Math.abs(B.clientY-O.y);return P>5||M>5})(k,E)&&(u.clear(),f.set(!1),d.dispatch("longpresscancel"))})})},!0),d.on("touchend touchcancel",v=>{y.cancel(),v.type!=="touchcancel"&&u.get().filter(k=>k.target.isEqualNode(v.target)).each(()=>{f.get()?v.preventDefault():d.dispatch("tap",{...v,type:"tap"})})},!0)})(t),(d=>{(u=>{u.on("click",f=>{u.dom.getParent(f.target,"details")&&f.preventDefault()})})(d),(u=>{u.parser.addNodeFilter("details",f=>{const y=Ag(u);Se(f,v=>{y==="expanded"?v.attr("open","open"):y==="collapsed"&&v.attr("open",null)})}),u.serializer.addNodeFilter("details",f=>{const y=i_(u);Se(f,v=>{y==="expanded"?v.attr("open","open"):y==="collapsed"&&v.attr("open",null)})})})(d)})(t),(d=>{const u="contenteditable",f=" "+go.trim(v1(d))+" ",y=" "+go.trim(zb(d))+" ",v=M0(f),k=M0(y),E=zg(d);E.length>0&&d.on("BeforeSetContent",B=>{((O,P,M)=>{let j=P.length,q=M.content;if(M.format!=="raw"){for(;j--;)q=q.replace(P[j],fT(O,q,zb(O)));M.content=q}})(d,E,B)}),d.parser.addAttributeFilter("class",B=>{let O=B.length;for(;O--;){const P=B[O];v(P)?P.attr(u,"true"):k(P)&&P.attr(u,"false")}}),d.serializer.addAttributeFilter(u,B=>{let O=B.length;for(;O--;){const P=B[O];(v(P)||k(P))&&(E.length>0&&P.attr("data-mce-content")?(P.name="#text",P.type=3,P.raw=!0,P.value=P.attr("data-mce-content")):P.attr(u,null))}})})(t),Tm(t)||((d=>{d.on("mousedown",u=>{u.detail>=3&&(u.preventDefault(),Ez(d))})})(t),(d=>{(u=>{const f=[",",".",";",":","!","?"],y=[32],v=()=>{return B=Fv(u),O=Tb(u),{inlinePatterns:wv(B),blockPatterns:Bp(B),dynamicPatternsLookup:O};var B,O},k=()=>(B=>B.options.isSet("text_patterns_lookup"))(u);u.on("keydown",B=>{if(B.keyCode===13&&!mn.modifierPressed(B)&&u.selection.isCollapsed()){const O=v();(O.inlinePatterns.length>0||O.blockPatterns.length>0||k())&&ac(u,O)&&B.preventDefault()}},!0);const E=()=>{if(u.selection.isCollapsed()){const B=v();(B.inlinePatterns.length>0||k())&&((O,P)=>{const M=O.selection.getRng();kk(O,M).map(j=>{const q=Math.max(0,M.startOffset-1),K=XS(O.dom,j,M.startContainer,q),re=YS(P,j,K),ee=Lz(O,j,M.startContainer,q,re,!1);ee.length>0&&O.undoManager.transact(()=>{Iz(O,ee)})})})(u,B)}};u.on("keyup",B=>{Pz(y,B,(O,P)=>O===P.keyCode&&!mn.modifierPressed(P))&&E()}),u.on("keypress",B=>{Pz(f,B,(O,P)=>O.charCodeAt(0)===P.charCode)&&uu.setEditorTimeout(u,E)})})(d)})(t));const i=J0(t);mT(t,i),(d=>{d.on("NodeChange",Je(og,d))})(t),(d=>{var u;const f=d.dom,y=Ts(d),v=(u=wg(d))!==null&&u!==void 0?u:"",k=(E,B)=>{if((M=>{if(lC(M)){const j=M.keyCode;return!ME(M)&&(mn.metaKeyPressed(M)||M.altKey||j>=112&&j<=123||lo(gO,j))}return!1})(E))return;const O=d.getBody(),P=!(M=>lC(M)&&!(ME(M)||M.type==="keyup"&&M.keyCode===229))(E)&&((M,j,q)=>{if(ys(je(j),!1)){const K=j.firstElementChild;return!K||!M.getStyle(j.firstElementChild,"padding-left")&&!M.getStyle(j.firstElementChild,"padding-right")&&q===K.nodeName.toLowerCase()}return!1})(f,O,y);(f.getAttrib(O,NE)!==""!==P||B)&&(f.setAttrib(O,NE,P?v:null),f.setAttrib(O,"aria-placeholder",P?v:null),((M,j)=>{M.dispatch("PlaceholderToggle",{state:j})})(d,P),d.on(P?"keydown":"keyup",k),d.off(P?"keyup":"keydown",k))};nn(v)&&d.on("init",E=>{k(E,!0),d.on("change SetContent ExecCommand",k),d.on("paste",B=>uu.setEditorTimeout(d,()=>k(B)))})})(t),kz(t);const c=(d=>{const u=d;return(f=>Fn(f.plugins,"rtc").bind(y=>V.from(y.setup)))(d).fold(()=>(u.rtcInstance=U2(d),V.none()),f=>(u.rtcInstance=(()=>{const y=Ct(null),v=Ct("");return{init:{bindEvents:$t},undoManager:{beforeChange:$t,add:y,undo:y,redo:y,clear:$t,reset:$t,hasUndo:uo,hasRedo:uo,transact:y,ignore:$t,extra:$t},formatter:{match:uo,matchAll:Ct([]),matchNode:Ct(void 0),canApply:uo,closest:v,apply:$t,remove:$t,toggle:$t,formatChanged:Ct({unbind:$t})},editor:{getContent:v,setContent:Ct({content:"",html:""}),insertContent:Ct(""),addVisual:$t},selection:{getContent:v},autocompleter:{addDecoration:$t,removeDecoration:$t},raw:{getModel:Ct(V.none())}}})(),V.some(()=>f().then(y=>(u.rtcInstance=(v=>{const k=K=>it(K)?K:{},{init:E,undoManager:B,formatter:O,editor:P,selection:M,autocompleter:j,raw:q}=v;return{init:{bindEvents:E.bindEvents},undoManager:{beforeChange:B.beforeChange,add:B.add,undo:B.undo,redo:B.redo,clear:B.clear,reset:B.reset,hasUndo:B.hasUndo,hasRedo:B.hasRedo,transact:(K,re,ee)=>B.transact(ee),ignore:(K,re)=>B.ignore(re),extra:(K,re,ee,ke)=>B.extra(ee,ke)},formatter:{match:(K,re,ee,ke)=>O.match(K,k(re),ke),matchAll:O.matchAll,matchNode:O.matchNode,canApply:K=>O.canApply(K),closest:K=>O.closest(K),apply:(K,re,ee)=>O.apply(K,k(re)),remove:(K,re,ee,ke)=>O.remove(K,k(re)),toggle:(K,re,ee)=>O.toggle(K,k(re)),formatChanged:(K,re,ee,ke,et)=>O.formatChanged(re,ee,ke,et)},editor:{getContent:K=>P.getContent(K),setContent:(K,re)=>({content:P.setContent(K,re),html:""}),insertContent:(K,re)=>(P.insertContent(K),""),addVisual:P.addVisual},selection:{getContent:(K,re)=>M.getContent(re)},autocompleter:{addDecoration:j.addDecoration,removeDecoration:j.removeDecoration},raw:{getModel:()=>V.some(q.getRawModel())}}})(y),y.rtc.isRemote)))))})(t);(d=>{const u=d.getDoc(),f=d.getBody();(k=>{k.dispatch("PreInit")})(d),f1(d)||(u.body.spellcheck=!1,o3.setAttrib(f,"spellcheck","false")),d.quirks=KO(d),(k=>{k.dispatch("PostRender")})(d);const y=eh(d);y!==void 0&&(f.dir=y);const v=Eg(d);v&&d.on("BeforeSetContent",k=>{go.each(v,E=>{k.content=k.content.replace(E,B=>"")})}),d.on("SetContent",()=>{d.addVisual(d.getBody())}),d.on("compositionstart compositionend",k=>{d.composing=k.type==="compositionstart"})})(t),c.fold(()=>{const d=(u=>{let f=!1;const y=setTimeout(()=>{f||u.setProgressState(!0)},500);return()=>{clearTimeout(y),f=!0,u.setProgressState(!1)}})(t);jz(t).then(()=>{n3(t),d()})},d=>{t.setProgressState(!0),jz(t).then(()=>{d().then(u=>{t.setProgressState(!1),n3(t),Z2(t)},u=>{t.notificationManager.open({type:"error",text:String(u)}),n3(t),Z2(t)})})})},Vz=Bt,r3=wr.DOM,Tk=wr.DOM,a3=(t,o)=>({editorContainer:t,iframeContainer:o,api:{}}),nv=t=>{const o=t.getElement();return t.inline?a3(null):(n=>{const a=Tk.create("div");return Tk.insertAfter(a,n),a3(a,a)})(o)},$z=async t=>{t.dispatch("ScriptsLoaded"),(n=>{const a=go.trim(yb(n)),i=n.ui.registry.getAll().icons,c={...w0.get("default").icons,...w0.get(a).icons};Ft(c,(d,u)=>{ln(i,u)||n.ui.registry.addIcon(u,d)})})(t),(n=>{const a=kg(n);if(Ue(a)){const i=Jg.get(a);n.theme=i(n,Jg.urls[a])||{},de(n.theme.init)&&n.theme.init(n,Jg.urls[a]||n.documentBaseUrl.replace(/\/$/,""))}else n.theme={}})(t),(n=>{const a=_g(n),i=Kl.get(a);n.model=i(n,Kl.urls[a])})(t),(n=>{const a=[];Se(qm(n),i=>{((c,d,u)=>{const f=by.get(u),y=by.urls[u]||c.documentBaseUrl.replace(/\/$/,"");if(u=go.trim(u),f&&go.inArray(d,u)===-1){if(c.plugins[u])return;try{const v=f(c,y)||{};c.plugins[u]=v,de(v.init)&&(v.init(c,y),d.push(u))}catch(v){((k,E,B)=>{const O=Zi.translate(["Failed to initialize plugin: {0}",E]);z1(k,"PluginLoadError",{message:O}),yy(O,B),hu(k,O)})(c,u,v)}}})(n,a,(c=>c.replace(/^\-/,""))(i))})})(t);const o=await(n=>{const a=n.getElement();return n.orgDisplay=a.style.display,Ue(kg(n))?(i=>{const c=i.theme.renderUI;return c?c():nv(i)})(n):de(kg(n))?(i=>{const c=i.getElement(),d=kg(i)(i,c);return d.editorContainer.nodeType&&(d.editorContainer.id=d.editorContainer.id||i.id+"_parent"),d.iframeContainer&&d.iframeContainer.nodeType&&(d.iframeContainer.id=d.iframeContainer.id||i.id+"_iframecontainer"),d.height=d.iframeHeight?d.iframeHeight:c.offsetHeight,d})(n):nv(n)})(t);((n,a)=>{const i={show:V.from(a.show).getOr($t),hide:V.from(a.hide).getOr($t),isEnabled:V.from(a.isEnabled).getOr(Bt),setEnabled:c=>{n.mode.isReadOnly()||V.from(a.setEnabled).each(d=>d(c))}};n.ui={...n.ui,...i}})(t,V.from(o.api).getOr({})),t.editorContainer=o.editorContainer,(n=>{n.contentCSS=n.contentCSS.concat((a=>eC(a,Qf(a)))(n),(a=>eC(a,xg(a)))(n))})(t),t.inline?em(t):((n,a)=>{((i,c)=>{const d=i.translate("Rich Text Area"),u=wo(je(i.getElement()),"tabindex").bind(Vr),f=((y,v,k,E)=>{const B=_s("iframe");return E.each(O=>Q(B,"tabindex",O)),Ee(B,k),Ee(B,{id:y+"_ifr",frameBorder:"0",allowTransparency:"true",title:v}),ks(B,"tox-edit-area__iframe"),B})(i.id,d,Fp(i),u).dom;f.onload=()=>{f.onload=null,i.dispatch("load")},i.contentAreaContainer=c.iframeContainer,i.iframeElement=f,i.iframeHTML=(y=>{let v=l1(y)+"";tc(y)!==y.documentBaseUrl&&(v+=''),v+='';const k=t_(y),E=sd(y),B=y.translate(Nv(y));return hb(y)&&(v+=''),v+=`
    `,v})(i),r3.add(c.iframeContainer,f)})(n,a),a.editorContainer&&(a.editorContainer.style.display=n.orgDisplay,n.hidden=r3.isHidden(a.editorContainer)),n.getElement().style.display="none",r3.setAttrib(n.id,"aria-hidden","true"),n.getElement().style.visibility=n.orgVisibility,(i=>{const c=i.iframeElement,d=()=>{i.contentDocument=c.contentDocument,em(i)};if(Lv(i)||Rn.browser.isFirefox()){const f=i.getDoc();f.open(),f.write(i.iframeHTML),f.close(),d()}else{const f=(u=je(c),Jc(u,"load",Vz,()=>{f.unbind(),d()}));c.srcdoc=i.iframeHTML}var u})(n)})(t,{editorContainer:o.editorContainer,iframeContainer:o.iframeContainer})},Cf=wr.DOM,s3=t=>t.charAt(0)==="-",Uz=(t,o,n)=>V.from(o).filter(a=>nn(a)&&!w0.has(a)).map(a=>({url:`${t.editorManager.baseURL}/icons/${a}/icons${n}.js`,name:V.some(a)})),XO=(t,o)=>{const n=Jr.ScriptLoader,a=()=>{!t.removed&&(i=>{const c=kg(i);return!Ue(c)||Ze(Jg.get(c))})(t)&&(i=>{const c=_g(i);return Ze(Kl.get(c))})(t)&&$z(t)};((i,c)=>{const d=kg(i);if(Ue(d)&&!s3(d)&&!ln(Jg.urls,d)){const u=au(i),f=u?i.documentBaseURI.toAbsolute(u):`themes/${d}/theme${c}.js`;Jg.load(d,f).catch(()=>{((y,v,k)=>{zh(y,"ThemeLoadError",gf("theme",v,k))})(i,f,d)})}})(t,o),((i,c)=>{const d=_g(i);if(d!=="plugin"&&!ln(Kl.urls,d)){const u=fm(i),f=Ue(u)?i.documentBaseURI.toAbsolute(u):`models/${d}/model${c}.js`;Kl.load(d,f).catch(()=>{((y,v,k)=>{zh(y,"ModelLoadError",gf("model",v,k))})(i,f,d)})}})(t,o),((i,c)=>{const d=vg(c),u=ms(c);if(!Zi.hasCode(d)&&d!=="en"){const f=nn(u)?u:`${c.editorManager.baseURL}/langs/${d}.js`;i.add(f).catch(()=>{((y,v,k)=>{zh(y,"LanguageLoadError",gf("language",v,k))})(c,f,d)})}})(n,t),((i,c,d)=>{const u=Uz(c,"default",d),f=(y=>V.from(Cv(y)).filter(nn).map(v=>({url:v,name:V.none()})))(c).orThunk(()=>Uz(c,yb(c),""));Se((y=>{const v=[],k=E=>{v.push(E)};for(let E=0;E{i.add(y.url).catch(()=>{((v,k,E)=>{zh(v,"IconsLoadError",gf("icons",k,E))})(c,y.url,y.name.getOrUndefined())})})})(n,t,o),((i,c)=>{const d=(u,f)=>{by.load(u,f).catch(()=>{((y,v,k)=>{zh(y,"PluginLoadError",gf("plugin",v,k))})(i,f,u)})};Ft(Pp(i),(u,f)=>{d(f,u),i.options.set("plugins",qm(i).concat(f))}),Se(qm(i),u=>{!(u=go.trim(u))||by.urls[u]||s3(u)||d(u,`plugins/${u}/plugin${c}.js`)})})(t,o),n.loadQueue().then(a,a)},zk=Aa().deviceType,Zz=zk.isPhone(),JO=zk.isTablet(),Sf=t=>{if(me(t))return[];{const o=co(t)?t:t.split(/[ ,]/),n=to(o,wt);return gt(n,nn)}},i3=(t,o)=>{const n=((c,d)=>{const u={},f={};return $n(c,(y,v)=>lo(t,v),Vo(u),Vo(f)),{t:u,f}})(o);return a=n.t,i=n.f,{sections:Ct(a),options:Ct(i)};var a,i},rv=(t,o)=>ln(t.sections(),o),qz=(t,o)=>({table_grid:!1,object_resizing:!1,resize:!1,toolbar_mode:Fn(t,"toolbar_mode").getOr("scrolling"),toolbar_sticky:!1,...o?{menubar:!1}:{}}),Ef=(t,o)=>{var n;const a=(n=o.external_plugins)!==null&&n!==void 0?n:{};return t&&t.external_plugins?go.extend({},t.external_plugins,a):a},QO=(t,o,n,a,i)=>{var c;const d=t?{mobile:qz((c=i.mobile)!==null&&c!==void 0?c:{},o)}:{},u=i3(["mobile"],Vw(d,i)),f=go.extend(n,a,u.options(),((y,v)=>y&&rv(v,"mobile"))(t,u)?((y,v,k={})=>{const E=y.sections(),B=Fn(E,v).getOr({});return go.extend({},k,B)})(u,"mobile"):{},{external_plugins:Ef(a,u.options())});return((y,v,k,E)=>{const B=Sf(k.forced_plugins),O=Sf(E.plugins),P=((q,K)=>rv(q,K)?q.sections()[K]:{})(v,"mobile"),M=((q,K,re,ee)=>q&&rv(K,"mobile")?ee:re)(y,v,O,P.plugins?Sf(P.plugins):O),j=((q,K)=>[...Sf(q),...Sf(K)])(B,M);return go.extend(E,{forced_plugins:B,plugins:j})})(t,u,a,f)},e5=t=>{(o=>{const n=a=>()=>{Se("left,center,right,justify".split(","),i=>{a!==i&&o.formatter.remove("align"+i)}),a!=="none"&&((i,c)=>{o.formatter.toggle(i,void 0),o.nodeChanged()})("align"+a)};o.editorCommands.addCommands({JustifyLeft:n("left"),JustifyCenter:n("center"),JustifyRight:n("right"),JustifyFull:n("justify"),JustifyNone:n("none")})})(t),(o=>{const n=a=>()=>{const i=o.selection,c=i.isCollapsed()?[o.dom.getParent(i.getNode(),o.dom.isBlock)]:i.getSelectedBlocks();return zo(c,d=>Ze(o.formatter.matchNode(d,a)))};o.editorCommands.addCommands({JustifyLeft:n("alignleft"),JustifyCenter:n("aligncenter"),JustifyRight:n("alignright"),JustifyFull:n("alignjustify")},"state")})(t)},Ak=(t,o)=>{const n=t.selection,a=t.dom;return/^ | $/.test(o)?((i,c,d,u)=>{const f=je(i.getRoot());return d=I1(f,Ht.fromRangeStart(c),u)?d.replace(/^ /," "):d.replace(/^ /," "),rc(f,Ht.fromRangeEnd(c),u)?d.replace(/( | )()?$/," "):d.replace(/ ()?$/," ")})(a,n.getRng(),o,t.schema):o},av=(t,o)=>{if(t.selection.isEditable()){const{content:n,details:a}=(i=>{if(typeof i!="string"){const c=go.extend({paste:i.paste,data:{paste:i.paste}},i);return{content:i.content,details:c}}return{content:i,details:{}}})(o);P2(t,{...a,content:Ak(t,n),format:"html",set:!1,selection:!0}).each(i=>{const c=((d,u,f)=>iw(d).editor.insertContent(u,f))(t,i.content,a);uy(t,c,i),t.addVisual()})}},Wz={"font-size":"size","font-family":"face"},Gz=ma("font"),Kz=t=>(o,n)=>V.from(n).map(je).filter(kn).bind(a=>((i,c,d)=>Fx(je(d),u=>(f=>om(f,i).orThunk(()=>Gz(f)?Fn(Wz,i).bind(y=>wo(f,y)):V.none()))(u),u=>sa(je(c),u)))(t,o,a.dom).or(((i,c)=>V.from(wr.DOM.getStyle(c,i,!0)))(t,a.dom))).getOr(""),t5=Kz("font-size"),Yz=gn(t=>t.replace(/[\'\"\\]/g,"").replace(/,\s+/g,","),Kz("font-family")),l3=t=>Z(t.getBody()).bind(o=>{const n=o.container();return V.from(ro(n)?n.parentNode:n)}),sv=(t,o)=>((n,a)=>(i=>V.from(i.selection.getRng()).bind(c=>{const d=i.getBody();return c.startContainer===d&&c.startOffset===0?V.none():V.from(i.selection.getStart(!0))}))(n).orThunk(Je(l3,n)).map(je).filter(kn).bind(a))(t,Bo(V.some,o)),c3=(t,o)=>{if(/^[0-9.]+$/.test(o)){const n=parseInt(o,10);if(n>=1&&n<=7){const a=(c=>go.explode(c.options.get("font_size_style_values")))(t),i=(c=>go.explode(c.options.get("font_size_classes")))(t);return i.length>0?i[n-1]||o:a[n-1]||o}return o}return o},Ok=t=>{const o=t.split(/\s*,\s*/);return to(o,n=>n.indexOf(" ")===-1||gr(n,'"')||gr(n,"'")?n:`'${n}'`).join(",")},d3=(t,o)=>{const n=t.dom,a=t.selection.getRng(),i=o?t.selection.getStart():t.selection.getEnd(),c=o?a.startContainer:a.endContainer,d=Z0(n,c);if(!d||!d.isContentEditable)return;const u=o?rl:Da,f=Ts(t);((y,v,k,E)=>{const B=y.dom,O=M=>B.isBlock(M)&&M.parentElement===k,P=O(v)?v:B.getParent(E,O,k);return V.from(P).map(je)})(t,i,d,c).each(y=>{const v=GT(t,c,y.dom,d,!1,f);u(y,je(v)),t.selection.setCursorLocation(v,0),t.dispatch("NewBlock",{newBlock:v}),cp(t,"insertParagraph")})},Xz=t=>{e5(t),(o=>{o.editorCommands.addCommands({"Cut,Copy,Paste":n=>{const a=o.getDoc();let i;try{a.execCommand(n)}catch{i=!0}if(n!=="paste"||a.queryCommandEnabled(n)||(i=!0),i||!a.queryCommandSupported(n)){let c=o.translate("Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.");(Rn.os.isMacOS()||Rn.os.isiOS())&&(c=c.replace(/Ctrl\+/g,"⌘+")),o.notificationManager.open({text:c,type:"error"})}}})})(t),(o=>{o.editorCommands.addCommands({mceAddUndoLevel:()=>{o.undoManager.add()},mceEndUndoLevel:()=>{o.undoManager.add()},Undo:()=>{o.undoManager.undo()},Redo:()=>{o.undoManager.redo()}})})(t),(o=>{o.editorCommands.addCommands({mceSelectNodeDepth:(n,a,i)=>{let c=0;o.dom.getParent(o.selection.getNode(),d=>!an(d)||c++!==i||(o.selection.select(d),!1),o.getBody())},mceSelectNode:(n,a,i)=>{o.selection.select(i)},selectAll:()=>{const n=o.dom.getParent(o.selection.getStart(),zi);if(n){const a=o.dom.createRng();a.selectNodeContents(n),o.selection.setRng(a)}}})})(t),(o=>{o.editorCommands.addCommands({mceCleanup:()=>{const n=o.selection.getBookmark();o.setContent(o.getContent()),o.selection.moveToBookmark(n)},insertImage:(n,a,i)=>{av(o,o.dom.createHTML("img",{src:i}))},insertHorizontalRule:()=>{o.execCommand("mceInsertContent",!1,"
    ")},insertText:(n,a,i)=>{av(o,o.dom.encode(i))},insertHTML:(n,a,i)=>{av(o,i)},mceInsertContent:(n,a,i)=>{av(o,i)},mceSetContent:(n,a,i)=>{o.setContent(i)},mceReplaceContent:(n,a,i)=>{o.execCommand("mceInsertContent",!1,i.replace(/\{\$selection\}/g,o.selection.getContent({format:"text"})))},mceNewDocument:()=>{o.setContent(Rv(o))}})})(t),(o=>{const n=(a,i,c)=>{const d=Ue(c)?{href:c}:c,u=o.dom.getParent(o.selection.getNode(),"a");it(d)&&Ue(d.href)&&(d.href=d.href.replace(/ /g,"%20"),u&&d.href||o.formatter.remove("link"),d.href&&o.formatter.apply("link",d,u))};o.editorCommands.addCommands({unlink:()=>{if(o.selection.isEditable()){if(o.selection.isCollapsed()){const a=o.dom.getParent(o.selection.getStart(),"a");return void(a&&o.dom.remove(a,!0))}o.formatter.remove("link")}},mceInsertLink:n,createLink:n})})(t),(o=>{o.editorCommands.addCommands({Indent:()=>{(n=>{yu(n,"indent")})(o)},Outdent:()=>{zw(o)}}),o.editorCommands.addCommands({Outdent:()=>MC(o)},"state")})(t),(o=>{o.editorCommands.addCommands({InsertNewBlockBefore:()=>{(n=>{d3(n,!0)})(o)},InsertNewBlockAfter:()=>{(n=>{d3(n,!1)})(o)}})})(t),(o=>{o.editorCommands.addCommands({insertParagraph:()=>{vi(XT,o)},mceInsertNewLine:(n,a,i)=>{tz(o,i)},InsertLineBreak:(n,a,i)=>{vi(kS,o)}})})(t),(o=>{(n=>{n.editorCommands.addCommands({"InsertUnorderedList,InsertOrderedList":a=>{n.getDoc().execCommand(a);const i=n.dom.getParent(n.selection.getNode(),"ol,ul");if(i){const c=i.parentNode;if(c&&/^(H[1-6]|P|ADDRESS|PRE)$/.test(c.nodeName)){const d=n.selection.getBookmark();n.dom.split(c,i),n.selection.moveToBookmark(d)}}}})})(o),(n=>{n.editorCommands.addCommands({"InsertUnorderedList,InsertOrderedList":a=>{const i=n.dom.getParent(n.selection.getNode(),"ul,ol");return i&&(a==="insertunorderedlist"&&i.tagName==="UL"||a==="insertorderedlist"&&i.tagName==="OL")}},"state")})(o)})(t),(o=>{(n=>{const a=(i,c)=>{n.formatter.toggle(i,c),n.nodeChanged()};n.editorCommands.addCommands({"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":i=>{a(i)},"ForeColor,HiliteColor":(i,c,d)=>{a(i,{value:d})},BackColor:(i,c,d)=>{a("hilitecolor",{value:d})},FontName:(i,c,d)=>{((u,f)=>{const y=c3(u,f);u.formatter.toggle("fontname",{value:Ok(y)}),u.nodeChanged()})(n,d)},FontSize:(i,c,d)=>{((u,f)=>{u.formatter.toggle("fontsize",{value:c3(u,f)}),u.nodeChanged()})(n,d)},LineHeight:(i,c,d)=>{((u,f)=>{u.formatter.toggle("lineheight",{value:String(f)}),u.nodeChanged()})(n,d)},Lang:(i,c,d)=>{var u;a(i,{value:d.code,customValue:(u=d.customCode)!==null&&u!==void 0?u:null})},RemoveFormat:i=>{n.formatter.remove(i)},mceBlockQuote:()=>{a("blockquote")},FormatBlock:(i,c,d)=>{a(Ue(d)?d:"p")},mceToggleFormat:(i,c,d)=>{a(d)}})})(o),(n=>{const a=i=>n.formatter.match(i);n.editorCommands.addCommands({"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":i=>a(i),mceBlockQuote:()=>a("blockquote")},"state"),n.editorCommands.addQueryValueHandler("FontName",()=>(i=>sv(i,c=>Yz(i.getBody(),c.dom)).getOr(""))(n)),n.editorCommands.addQueryValueHandler("FontSize",()=>(i=>sv(i,c=>t5(i.getBody(),c.dom)).getOr(""))(n)),n.editorCommands.addQueryValueHandler("LineHeight",()=>(i=>sv(i,c=>{const d=je(i.getBody());return Fx(c,f=>om(f,"line-height"),Je(sa,d)).getOrThunk(()=>{const f=parseFloat(Yi(c,"line-height")),y=parseFloat(Yi(c,"font-size"));return String(f/y)})}).getOr(""))(n))})(o)})(t),(o=>{o.editorCommands.addCommands({mceRemoveNode:(n,a,i)=>{const c=i??o.selection.getNode();if(c!==o.getBody()){const d=o.selection.getBookmark();o.dom.remove(c,!0),o.selection.moveToBookmark(d)}},mcePrint:()=>{o.getWin().print()},mceFocus:(n,a,i)=>{((c,d)=>{c.removed||(d?cx(c):(u=>{const f=u.selection,y=u.getBody();let v=f.getRng();u.quirks.refreshContentEditable(),Ze(u.bookmark)&&!rf(u)&&ax(u).each(E=>{u.selection.setRng(E),v=E});const k=((E,B)=>E.dom.getParent(B,O=>E.dom.getContentEditable(O)==="true"))(u,f.getNode());if(k&&u.dom.isChildOf(k,y))return z_(k),n4(u,v),void cx(u);u.inline||(Rn.browser.isOpera()||z_(y),u.getWin().focus()),(Rn.browser.isFirefox()||u.inline)&&(z_(y),n4(u,v)),cx(u)})(c))})(o,i===!0)},mceToggleVisualAid:()=>{o.hasVisual=!o.hasVisual,o.addVisual()}})})(t)},o5=["toggleview"],Jz=t=>lo(o5,t.toLowerCase());class Nk{constructor(o){this.commands={state:{},exec:{},value:{}},this.editor=o}execCommand(o,n=!1,a,i){const c=this.editor,d=o.toLowerCase(),u=i==null?void 0:i.skip_focus;if(c.removed||(d!=="mcefocus"&&(/^(mceAddUndoLevel|mceEndUndoLevel)$/i.test(d)||u?(y=>{ax(y).each(v=>y.selection.setRng(v))})(c):c.focus()),c.dispatch("BeforeExecCommand",{command:o,ui:n,value:a}).isDefaultPrevented()))return!1;const f=this.commands.exec[d];return!!de(f)&&(f(d,n,a),c.dispatch("ExecCommand",{command:o,ui:n,value:a}),!0)}queryCommandState(o){if(!Jz(o)&&this.editor.quirks.isHidden()||this.editor.removed)return!1;const n=o.toLowerCase(),a=this.commands.state[n];return!!de(a)&&a(n)}queryCommandValue(o){if(!Jz(o)&&this.editor.quirks.isHidden()||this.editor.removed)return"";const n=o.toLowerCase(),a=this.commands.value[n];return de(a)?a(n):""}addCommands(o,n="exec"){const a=this.commands;Ft(o,(i,c)=>{Se(c.toLowerCase().split(","),d=>{a[n][d]=i})})}addCommand(o,n,a){const i=o.toLowerCase();this.commands.exec[i]=(c,d,u)=>n.call(a??this.editor,d,u)}queryCommandSupported(o){const n=o.toLowerCase();return!!this.commands.exec[n]}addQueryStateHandler(o,n,a){this.commands.state[o.toLowerCase()]=()=>n.call(a??this.editor)}addQueryValueHandler(o,n,a){this.commands.value[o.toLowerCase()]=()=>n.call(a??this.editor)}}const Tf="data-mce-contenteditable",Mk=(t,o,n)=>{try{t.getDoc().execCommand(o,!1,String(n))}catch{}},Dk=(t,o)=>{t.dom.contentEditable=o?"true":"false"},$h=t=>t.readonly,Qz=t=>{t.parser.addAttributeFilter("contenteditable",o=>{$h(t)&&Se(o,n=>{n.attr(Tf,n.attr("contenteditable")),n.attr("contenteditable","false")})}),t.serializer.addAttributeFilter(Tf,o=>{$h(t)&&Se(o,n=>{n.attr("contenteditable",n.attr(Tf))})}),t.serializer.addTempAttr(Tf)},eA=["copy"],tA=go.makeMap("focus blur focusin focusout click dblclick mousedown mouseup mousemove mouseover beforepaste paste cut copy selectionchange mouseout mouseenter mouseleave wheel keydown keypress keyup input beforeinput contextmenu dragstart dragend dragover draggesture dragdrop drop drag submit compositionstart compositionend compositionupdate touchstart touchmove touchend touchcancel"," ");class u3{static isNative(o){return!!tA[o.toLowerCase()]}constructor(o){this.bindings={},this.settings=o||{},this.scope=this.settings.scope||this,this.toggleEvent=this.settings.toggleEvent||uo}fire(o,n){return this.dispatch(o,n)}dispatch(o,n){const a=o.toLowerCase(),i=Nr(a,n??{},this.scope);this.settings.beforeFire&&this.settings.beforeFire(i);const c=this.bindings[a];if(c)for(let d=0,u=c.length;d{this.toggleEvent(f,!1),delete this.bindings[f]}),this;if(d){if(n){const u=ct(d,f=>f.func===n);d=u.fail,this.bindings[c]=d,Se(u.pass,f=>{f.removed=!0})}else d.length=0;d.length||(this.toggleEvent(o,!1),delete this.bindings[c])}}}else Ft(this.bindings,(a,i)=>{this.toggleEvent(i,!1)}),this.bindings={};return this}once(o,n,a){return this.on(o,n,a,{once:!0})}has(o){o=o.toLowerCase();const n=this.bindings[o];return!(!n||n.length===0)}}const iv=t=>(t._eventDispatcher||(t._eventDispatcher=new u3({scope:t,toggleEvent:(o,n)=>{u3.isNative(o)&&t.toggleNativeEvent&&t.toggleNativeEvent(o,n)}})),t._eventDispatcher),zf={fire(t,o,n){return this.dispatch(t,o,n)},dispatch(t,o,n){const a=this;if(a.removed&&t!=="remove"&&t!=="detach")return Nr(t.toLowerCase(),o??{},a);const i=iv(a).dispatch(t,o);if(n!==!1&&a.parent){let c=a.parent();for(;c&&!i.isPropagationStopped();)c.dispatch(t,i,!1),c=c.parent?c.parent():void 0}return i},on(t,o,n){return iv(this).on(t,o,n)},off(t,o){return iv(this).off(t,o)},once(t,o){return iv(this).once(t,o)},hasEventListeners(t){return iv(this).has(t)}},Rk=wr.DOM;let Uh;const lv=(t,o)=>{if(o==="selectionchange")return t.getDoc();if(!t.inline&&/^(?:mouse|touch|click|contextmenu|drop|dragover|dragend)/.test(o))return t.getDoc().documentElement;const n=vb(t);return n?(t.eventRoot||(t.eventRoot=Rk.select(n)[0]),t.eventRoot):t.getBody()},m3=(t,o,n)=>{(a=>!a.hidden&&!$h(a))(t)?t.dispatch(o,n):$h(t)&&((a,i)=>{if((c=>c.type==="click")(i)&&!mn.metaKeyPressed(i)){const c=je(i.target);((d,u)=>Yc(u,"a",f=>sa(f,je(d.getBody()))).bind(f=>wo(f,"href")))(a,c).each(d=>{if(i.preventDefault(),/^#/.test(d)){const u=a.dom.select(`${d},[name="${Is(d,"#")}"]`);u.length&&a.selection.scrollIntoView(u[0],!0)}else window.open(d,"_blank","rel=noopener noreferrer,menubar=yes,toolbar=yes,location=yes,status=yes,resizable=yes,scrollbars=yes")})}else(c=>lo(eA,c.type))(i)&&a.dispatch(i.type,i)})(t,n)},cv=(t,o)=>{if(t.delegates||(t.delegates={}),t.delegates[o]||t.removed)return;const n=lv(t,o);if(vb(t)){if(Uh||(Uh={},t.editorManager.on("removeEditor",()=>{t.editorManager.activeEditor||Uh&&(Ft(Uh,(i,c)=>{t.dom.unbind(lv(t,c))}),Uh=null)})),Uh[o])return;const a=i=>{const c=i.target,d=t.editorManager.get();let u=d.length;for(;u--;){const f=d[u].getBody();(f===c||Rk.isChildOf(c,f))&&m3(d[u],o,i)}};Uh[o]=a,Rk.bind(n,o,a)}else{const a=i=>{m3(t,o,i)};Rk.bind(n,o,a),t.delegates[o]=a}},oA={...zf,bindPendingEventDelegates(){const t=this;go.each(t._pendingNativeEvents,o=>{cv(t,o)})},toggleNativeEvent(t,o){const n=this;t!=="focus"&&t!=="blur"&&(n.removed||(o?n.initialized?cv(n,t):n._pendingNativeEvents?n._pendingNativeEvents.push(t):n._pendingNativeEvents=[t]:n.initialized&&n.delegates&&(n.dom.unbind(lv(n,t),t,n.delegates[t]),delete n.delegates[t])))},unbindAllNativeEvents(){const t=this,o=t.getBody(),n=t.dom;t.delegates&&(Ft(t.delegates,(a,i)=>{t.dom.unbind(lv(t,i),i,a)}),delete t.delegates),!t.inline&&o&&n&&(o.onload=null,n.unbind(t.getWin()),n.unbind(t.getDoc())),n&&(n.unbind(o),n.unbind(t.getContainer()))}},n5=t=>Ue(t)?{value:t.split(/[ ,]/),valid:!0}:Yo(t,Ue)?{value:t,valid:!0}:{valid:!1,message:"The value must be a string[] or a comma/space separated string."},nA=(t,o)=>t+(sr(o.message)?"":`. ${o.message}`),rA=t=>t.valid,g3=(t,o,n="")=>{const a=o(t);return Dt(a)?a?{value:t,valid:!0}:{valid:!1,message:n}:a},r5=["design","readonly"],aA=(t,o,n,a)=>{const i=n[o.get()],c=n[a];try{c.activate()}catch(d){return void console.error(`problem while activating editor mode ${a}:`,d)}i.deactivate(),i.editorReadOnly!==c.editorReadOnly&&((d,u)=>{const f=je(d.getBody());((y,v,k)=>{Vi(y,v)&&!k?Js(y,v):k&&ks(y,v)})(f,"mce-content-readonly",u),u?(d.selection.controlSelection.hideResizeRect(),d._selectionOverrides.hideFakeCaret(),(y=>{V.from(y.selection.getNode()).each(v=>{v.removeAttribute("data-mce-selected")})})(d),d.readonly=!0,Dk(f,!1),Se(wa(f,'*[contenteditable="true"]'),y=>{Q(y,Tf,"true"),Dk(y,!1)})):(d.readonly=!1,d.hasEditableRoot()&&Dk(f,!0),Se(wa(f,`*[${Tf}="true"]`),y=>{U(y,Tf),Dk(y,!0)}),Mk(d,"StyleWithCSS",!1),Mk(d,"enableInlineTableEditing",!1),Mk(d,"enableObjectResizing",!1),r4(d)&&d.focus(),(y=>{y.selection.setRng(y.selection.getRng())})(d),d.nodeChanged())})(t,c.editorReadOnly),o.set(a),((d,u)=>{d.dispatch("SwitchMode",{mode:u})})(t,a)},p3=go.each,f3=go.explode,a5={f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123},Ja=go.makeMap("alt,ctrl,shift,meta,access"),sA=t=>{const o={},n=Rn.os.isMacOS()||Rn.os.isiOS();p3(f3(t.toLowerCase(),"+"),c=>{(d=>d in Ja)(c)?o[c]=!0:/^[0-9]{2,}$/.test(c)?o.keyCode=parseInt(c,10):(o.charCode=c.charCodeAt(0),o.keyCode=a5[c]||c.toUpperCase().charCodeAt(0))});const a=[o.keyCode];let i;for(i in Ja)o[i]?a.push(i):o[i]=!1;return o.id=a.join(","),o.access&&(o.alt=!0,n?o.ctrl=!0:o.shift=!0),o.meta&&(n?o.meta=!0:(o.ctrl=!0,o.meta=!1)),o};class Bk{constructor(o){this.shortcuts={},this.pendingPatterns=[],this.editor=o;const n=this;o.on("keyup keypress keydown",a=>{!n.hasModifier(a)&&!n.isFunctionKey(a)||a.isDefaultPrevented()||(p3(n.shortcuts,i=>{n.matchShortcut(a,i)&&(n.pendingPatterns=i.subpatterns.slice(0),a.type==="keydown"&&n.executeShortcutAction(i))}),n.matchShortcut(a,n.pendingPatterns[0])&&(n.pendingPatterns.length===1&&a.type==="keydown"&&n.executeShortcutAction(n.pendingPatterns[0]),n.pendingPatterns.shift()))})}add(o,n,a,i){const c=this,d=c.normalizeCommandFunc(a);return p3(f3(go.trim(o)),u=>{const f=c.createShortcut(u,n,d,i);c.shortcuts[f.id]=f}),!0}remove(o){const n=this.createShortcut(o);return!!this.shortcuts[n.id]&&(delete this.shortcuts[n.id],!0)}normalizeCommandFunc(o){const n=this,a=o;return typeof a=="string"?()=>{n.editor.execCommand(a,!1,null)}:go.isArray(a)?()=>{n.editor.execCommand(a[0],a[1],a[2])}:a}createShortcut(o,n,a,i){const c=go.map(f3(o,">"),sA);return c[c.length-1]=go.extend(c[c.length-1],{func:a,scope:i||this.editor}),go.extend(c[0],{desc:this.editor.translate(n),subpatterns:c.slice(1)})}hasModifier(o){return o.altKey||o.ctrlKey||o.metaKey}isFunctionKey(o){return o.type==="keydown"&&o.keyCode>=112&&o.keyCode<=123}matchShortcut(o,n){return!!n&&n.ctrl===o.ctrlKey&&n.meta===o.metaKey&&n.alt===o.altKey&&n.shift===o.shiftKey&&!!(o.keyCode===n.keyCode||o.charCode&&o.charCode===n.charCode)&&(o.preventDefault(),!0)}executeShortcutAction(o){return o.func?o.func.call(o.scope):null}}const iA=()=>{const t=(()=>{const o={},n={},a={},i={},c={},d={},u={},f={},y=(v,k)=>(E,B)=>{v[E.toLowerCase()]={...B,type:k}};return{addButton:y(o,"button"),addGroupToolbarButton:y(o,"grouptoolbarbutton"),addToggleButton:y(o,"togglebutton"),addMenuButton:y(o,"menubutton"),addSplitButton:y(o,"splitbutton"),addMenuItem:y(n,"menuitem"),addNestedMenuItem:y(n,"nestedmenuitem"),addToggleMenuItem:y(n,"togglemenuitem"),addAutocompleter:y(a,"autocompleter"),addContextMenu:y(c,"contextmenu"),addContextToolbar:y(d,"contexttoolbar"),addContextForm:y(d,"contextform"),addSidebar:y(u,"sidebar"),addView:y(f,"views"),addIcon:(v,k)=>i[v.toLowerCase()]=k,getAll:()=>({buttons:o,menuItems:n,icons:i,popups:a,contextMenus:c,contextToolbars:d,sidebars:u,views:f})}})();return{addAutocompleter:t.addAutocompleter,addButton:t.addButton,addContextForm:t.addContextForm,addContextMenu:t.addContextMenu,addContextToolbar:t.addContextToolbar,addIcon:t.addIcon,addMenuButton:t.addMenuButton,addMenuItem:t.addMenuItem,addNestedMenuItem:t.addNestedMenuItem,addSidebar:t.addSidebar,addSplitButton:t.addSplitButton,addToggleButton:t.addToggleButton,addGroupToolbarButton:t.addGroupToolbarButton,addToggleMenuItem:t.addToggleMenuItem,addView:t.addView,getAll:t.getAll}},Af=wr.DOM,Fk=go.extend,s5=go.each;class Lk{constructor(o,n,a){this.plugins={},this.contentCSS=[],this.contentStyles=[],this.loadedCSS={},this.isNotDirty=!1,this.composing=!1,this.destroyed=!1,this.hasHiddenInput=!1,this.iframeElement=null,this.initialized=!1,this.readonly=!1,this.removed=!1,this.startContent="",this._pendingNativeEvents=[],this._skinLoaded=!1,this._editableRoot=!0,this.editorManager=a,this.documentBaseUrl=a.documentBaseURL,Fk(this,oA);const i=this;this.id=o,this.hidden=!1;const c=((B,O)=>QO(Zz||JO,Zz,O,B,O))(a.defaultOptions,n);this.options=((B,O)=>{const P={},M={},j=(K,re,ee)=>{const ke=g3(re,ee);return rA(ke)?(M[K]=ke.value,!0):(console.warn(nA(`Invalid value passed for the ${K} option`,ke)),!1)},q=K=>ln(P,K);return{register:(K,re)=>{const ee=(et=>Ue(et.processor))(re)?(et=>{const st=(()=>{switch(et){case"array":return co;case"boolean":return Dt;case"function":return de;case"number":return rt;case"object":return it;case"string":return Ue;case"string[]":return n5;case"object[]":return mt=>Yo(mt,it);case"regexp":return mt=>To(mt,RegExp);default:return Bt}})();return mt=>g3(mt,st,`The value must be a ${et}.`)})(re.processor):re.processor,ke=((et,st,mt)=>{if(!fo(st)){const kt=g3(st,mt);if(rA(kt))return kt.value;console.error(nA(`Invalid default value passed for the "${et}" option`,kt))}})(K,re.default,ee);P[K]={...re,default:ke,processor:ee},Fn(M,K).orThunk(()=>Fn(O,K)).each(et=>j(K,et,ee))},isRegistered:q,get:K=>Fn(M,K).orThunk(()=>Fn(P,K).map(re=>re.default)).getOrUndefined(),set:(K,re)=>{if(q(K)){const ee=P[K];return ee.immutable?(console.error(`"${K}" is an immutable option and cannot be updated`),!1):j(K,re,ee.processor)}return console.warn(`"${K}" is not a registered option. Ensure the option has been registered before setting a value.`),!1},unset:K=>{const re=q(K);return re&&delete M[K],re},isSet:K=>ln(M,K)}})(0,c),(B=>{const O=B.options.register;O("id",{processor:"string",default:B.id}),O("selector",{processor:"string"}),O("target",{processor:"object"}),O("suffix",{processor:"string"}),O("cache_suffix",{processor:"string"}),O("base_url",{processor:"string"}),O("referrer_policy",{processor:"string",default:""}),O("language_load",{processor:"boolean",default:!0}),O("inline",{processor:"boolean",default:!1}),O("iframe_attrs",{processor:"object",default:{}}),O("doctype",{processor:"string",default:""}),O("document_base_url",{processor:"string",default:B.documentBaseUrl}),O("body_id",{processor:Wf(B,"tinymce"),default:"tinymce"}),O("body_class",{processor:Wf(B),default:""}),O("content_security_policy",{processor:"string",default:""}),O("br_in_pre",{processor:"boolean",default:!0}),O("forced_root_block",{processor:P=>{const M=Ue(P)&&nn(P);return M?{value:P,valid:M}:{valid:!1,message:"Must be a non-empty string."}},default:"p"}),O("forced_root_block_attrs",{processor:"object",default:{}}),O("newline_behavior",{processor:P=>{const M=lo(["block","linebreak","invert","default"],P);return M?{value:P,valid:M}:{valid:!1,message:"Must be one of: block, linebreak, invert or default."}},default:"default"}),O("br_newline_selector",{processor:"string",default:".mce-toc h2,figcaption,caption"}),O("no_newline_selector",{processor:"string",default:""}),O("keep_styles",{processor:"boolean",default:!0}),O("end_container_on_empty_block",{processor:P=>Dt(P)||Ue(P)?{valid:!0,value:P}:{valid:!1,message:"Must be boolean or a string"},default:"blockquote"}),O("font_size_style_values",{processor:"string",default:"xx-small,x-small,small,medium,large,x-large,xx-large"}),O("font_size_legacy_values",{processor:"string",default:"xx-small,small,medium,large,x-large,xx-large,300%"}),O("font_size_classes",{processor:"string",default:""}),O("automatic_uploads",{processor:"boolean",default:!0}),O("images_reuse_filename",{processor:"boolean",default:!1}),O("images_replace_blob_uris",{processor:"boolean",default:!0}),O("icons",{processor:"string",default:""}),O("icons_url",{processor:"string",default:""}),O("images_upload_url",{processor:"string",default:""}),O("images_upload_base_path",{processor:"string",default:""}),O("images_upload_credentials",{processor:"boolean",default:!1}),O("images_upload_handler",{processor:"function"}),O("language",{processor:"string",default:"en"}),O("language_url",{processor:"string",default:""}),O("entity_encoding",{processor:"string",default:"named"}),O("indent",{processor:"boolean",default:!0}),O("indent_before",{processor:"string",default:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,details,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist"}),O("indent_after",{processor:"string",default:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,details,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist"}),O("indent_use_margin",{processor:"boolean",default:!1}),O("indentation",{processor:"string",default:"40px"}),O("content_css",{processor:P=>{const M=P===!1||Ue(P)||Yo(P,Ue);return M?Ue(P)?{value:to(P.split(","),wt),valid:M}:co(P)?{value:P,valid:M}:P===!1?{value:[],valid:M}:{value:P,valid:M}:{valid:!1,message:"Must be false, a string or an array of strings."}},default:Cg(B)?[]:["default"]}),O("content_style",{processor:"string"}),O("content_css_cors",{processor:"boolean",default:!1}),O("font_css",{processor:P=>{const M=Ue(P)||Yo(P,Ue);return M?{value:co(P)?P:to(P.split(","),wt),valid:M}:{valid:!1,message:"Must be a string or an array of strings."}},default:[]}),O("inline_boundaries",{processor:"boolean",default:!0}),O("inline_boundaries_selector",{processor:"string",default:"a[href],code,span.mce-annotation"}),O("object_resizing",{processor:P=>{const M=Dt(P)||Ue(P);return M?P===!1||qf.isiPhone()||qf.isiPad()?{value:"",valid:M}:{value:P===!0?"table,img,figure.image,div,video,iframe":P,valid:M}:{valid:!1,message:"Must be boolean or a string"}},default:!_v}),O("resize_img_proportional",{processor:"boolean",default:!0}),O("event_root",{processor:"object"}),O("service_message",{processor:"string"}),O("theme",{processor:P=>P===!1||Ue(P)||de(P),default:"silver"}),O("theme_url",{processor:"string"}),O("formats",{processor:"object"}),O("format_empty_lines",{processor:"boolean",default:!1}),O("format_noneditable_selector",{processor:"string",default:""}),O("preview_styles",{processor:P=>{const M=P===!1||Ue(P);return M?{value:P===!1?"":P,valid:M}:{valid:!1,message:"Must be false or a string"}},default:"font-family font-size font-weight font-style text-decoration text-transform color background-color border border-radius outline text-shadow"}),O("custom_ui_selector",{processor:"string",default:""}),O("hidden_input",{processor:"boolean",default:!0}),O("submit_patch",{processor:"boolean",default:!0}),O("encoding",{processor:"string"}),O("add_form_submit_trigger",{processor:"boolean",default:!0}),O("add_unload_trigger",{processor:"boolean",default:!0}),O("custom_undo_redo_levels",{processor:"number",default:0}),O("disable_nodechange",{processor:"boolean",default:!1}),O("readonly",{processor:"boolean",default:!1}),O("editable_root",{processor:"boolean",default:!0}),O("plugins",{processor:"string[]",default:[]}),O("external_plugins",{processor:"object"}),O("forced_plugins",{processor:"string[]"}),O("model",{processor:"string",default:B.hasPlugin("rtc")?"plugin":"dom"}),O("model_url",{processor:"string"}),O("block_unsupported_drop",{processor:"boolean",default:!0}),O("visual",{processor:"boolean",default:!0}),O("visual_table_class",{processor:"string",default:"mce-item-table"}),O("visual_anchor_class",{processor:"string",default:"mce-item-anchor"}),O("iframe_aria_text",{processor:"string",default:"Rich Text Area. Press ALT-0 for help."}),O("setup",{processor:"function"}),O("init_instance_callback",{processor:"function"}),O("url_converter",{processor:"function",default:B.convertURL}),O("url_converter_scope",{processor:"object",default:B}),O("urlconverter_callback",{processor:"function"}),O("allow_conditional_comments",{processor:"boolean",default:!1}),O("allow_html_data_urls",{processor:"boolean",default:!1}),O("allow_svg_data_urls",{processor:"boolean"}),O("allow_html_in_named_anchor",{processor:"boolean",default:!1}),O("allow_script_urls",{processor:"boolean",default:!1}),O("allow_unsafe_link_target",{processor:"boolean",default:!1}),O("convert_fonts_to_spans",{processor:"boolean",default:!0,deprecated:!0}),O("fix_list_elements",{processor:"boolean",default:!1}),O("preserve_cdata",{processor:"boolean",default:!1}),O("remove_trailing_brs",{processor:"boolean",default:!0}),O("pad_empty_with_br",{processor:"boolean",default:!1}),O("inline_styles",{processor:"boolean",default:!0,deprecated:!0}),O("element_format",{processor:"string",default:"html"}),O("entities",{processor:"string"}),O("schema",{processor:"string",default:"html5"}),O("convert_urls",{processor:"boolean",default:!0}),O("relative_urls",{processor:"boolean",default:!0}),O("remove_script_host",{processor:"boolean",default:!0}),O("custom_elements",{processor:"string"}),O("extended_valid_elements",{processor:"string"}),O("invalid_elements",{processor:"string"}),O("invalid_styles",{processor:Ri}),O("valid_children",{processor:"string"}),O("valid_classes",{processor:Ri}),O("valid_elements",{processor:"string"}),O("valid_styles",{processor:Ri}),O("verify_html",{processor:"boolean",default:!0}),O("auto_focus",{processor:P=>Ue(P)||P===!0}),O("browser_spellcheck",{processor:"boolean",default:!1}),O("protect",{processor:"array"}),O("images_file_types",{processor:"string",default:"jpeg,jpg,jpe,jfi,jif,jfif,png,gif,bmp,webp"}),O("deprecation_warnings",{processor:"boolean",default:!0}),O("a11y_advanced_options",{processor:"boolean",default:!1}),O("api_key",{processor:"string"}),O("paste_block_drop",{processor:"boolean",default:!1}),O("paste_data_images",{processor:"boolean",default:!0}),O("paste_preprocess",{processor:"function"}),O("paste_postprocess",{processor:"function"}),O("paste_webkit_styles",{processor:"string",default:"none"}),O("paste_remove_styles_if_webkit",{processor:"boolean",default:!0}),O("paste_merge_formats",{processor:"boolean",default:!0}),O("smart_paste",{processor:"boolean",default:!0}),O("paste_as_text",{processor:"boolean",default:!1}),O("paste_tab_spaces",{processor:"number",default:4}),O("text_patterns",{processor:P=>Yo(P,it)||P===!1?{value:kv(P===!1?[]:P),valid:!0}:{valid:!1,message:"Must be an array of objects or false."},default:[{start:"*",end:"*",format:"italic"},{start:"**",end:"**",format:"bold"},{start:"#",format:"h1"},{start:"##",format:"h2"},{start:"###",format:"h3"},{start:"####",format:"h4"},{start:"#####",format:"h5"},{start:"######",format:"h6"},{start:"1. ",cmd:"InsertOrderedList"},{start:"* ",cmd:"InsertUnorderedList"},{start:"- ",cmd:"InsertUnorderedList"}]}),O("text_patterns_lookup",{processor:P=>{return de(P)?{value:(M=P,j=>{const q=M(j);return kv(q)}),valid:!0}:{valid:!1,message:"Must be a single function"};var M},default:P=>[]}),O("noneditable_class",{processor:"string",default:"mceNonEditable"}),O("editable_class",{processor:"string",default:"mceEditable"}),O("noneditable_regexp",{processor:P=>Yo(P,Oo)?{value:P,valid:!0}:Oo(P)?{value:[P],valid:!0}:{valid:!1,message:"Must be a RegExp or an array of RegExp."},default:[]}),O("table_tab_navigation",{processor:"boolean",default:!0}),O("highlight_on_focus",{processor:"boolean",default:!1}),O("xss_sanitization",{processor:"boolean",default:!0}),O("details_initial_state",{processor:P=>{const M=lo(["inherited","collapsed","expanded"],P);return M?{value:P,valid:M}:{valid:!1,message:"Must be one of: inherited, collapsed, or expanded."}},default:"inherited"}),O("details_serialized_state",{processor:P=>{const M=lo(["inherited","collapsed","expanded"],P);return M?{value:P,valid:M}:{valid:!1,message:"Must be one of: inherited, collapsed, or expanded."}},default:"inherited"}),O("init_content_sync",{processor:"boolean",default:!1}),O("newdocument_content",{processor:"string",default:""}),O("force_hex_color",{processor:P=>{const M=["always","rgb_only","off"],j=lo(M,P);return j?{value:P,valid:j}:{valid:!1,message:`Must be one of: ${M.join(", ")}.`}},default:"off"}),O("sandbox_iframes",{processor:"boolean",default:!1}),O("convert_unsafe_embeds",{processor:"boolean",default:!1}),B.on("ScriptsLoaded",()=>{O("directionality",{processor:"string",default:Zi.isRtl()?"rtl":void 0}),O("placeholder",{processor:"string",default:i1.getAttrib(B.getElement(),"placeholder")})})})(i);const d=this.options.get;d("deprecation_warnings")&&((B,O)=>{((P,M)=>{const j=kE(P),q=dO(M),K=q.length>0,re=j.length>0,ee=M.theme==="mobile";if(K||re||ee){const ke=` +- `,et=ee?` + +Themes:${ke}mobile`:"",st=K?` + +Plugins:${ke}${q.join(ke)}`:"",mt=re?` + +Options:${ke}${j.join(ke)}`:"";console.warn("The following deprecated features are currently enabled and have been removed in TinyMCE 6.0. These features will no longer work and should be removed from the TinyMCE configuration. See https://www.tiny.cloud/docs/tinymce/6/migration-from-5x/ for more information."+et+st+mt)}})(B,O),((P,M)=>{const j=K2(P),q=dw(M),K=q.length>0,re=j.length>0;if(K||re){const ee=` +- `,ke=K?` + +Plugins:${ee}${q.map(hc).join(ee)}`:"",et=re?` + +Options:${ee}${j.join(ee)}`:"";console.warn("The following deprecated features are currently enabled but will be removed soon."+ke+et)}})(B,O)})(n,c);const u=d("suffix");u&&(a.suffix=u),this.suffix=a.suffix;const f=d("base_url");f&&a._setBaseUrl(f),this.baseUri=a.baseURI;const y=Hu(i);y&&(Jr.ScriptLoader._setReferrerPolicy(y),wr.DOM.styleSheetLoader._setReferrerPolicy(y));const v=Ov(i);Ze(v)&&wr.DOM.styleSheetLoader._setContentCssCors(v),bl.languageLoad=d("language_load"),bl.baseURL=a.baseURL,this.setDirty(!1),this.documentBaseURI=new Wu(tc(i),{base_uri:this.baseUri}),this.baseURI=this.baseUri,this.inline=Cg(i),this.hasVisual=_b(i),this.shortcuts=new Bk(this),this.editorCommands=new Nk(this),Xz(this);const k=d("cache_suffix");k&&(Rn.cacheSuffix=k.replace(/^[\?\&]+/,"")),this.ui={registry:iA(),styleSheetLoader:void 0,show:$t,hide:$t,setEnabled:$t,isEnabled:Bt},this.mode=(B=>{const O=bi("design"),P=bi({design:{activate:$t,deactivate:$t,editorReadOnly:!1},readonly:{activate:$t,deactivate:$t,editorReadOnly:!0}});return(M=>{M.serializer?Qz(M):M.on("PreInit",()=>{Qz(M)})})(B),(M=>{M.on("ShowCaret",j=>{$h(M)&&j.preventDefault()}),M.on("ObjectSelected",j=>{$h(M)&&j.preventDefault()})})(B),{isReadOnly:()=>$h(B),set:M=>((j,q,K,re)=>{if(re!==K.get()){if(!ln(q,re))throw new Error(`Editor mode '${re}' is invalid`);j.initialized?aA(j,K,q,re):j.on("init",()=>aA(j,K,q,re))}})(B,P.get(),O,M),get:()=>O.get(),register:(M,j)=>{P.set(((q,K,re)=>{if(lo(r5,K))throw new Error(`Cannot override default mode ${K}`);return{...q,[K]:{...re,deactivate:()=>{try{re.deactivate()}catch(ee){console.error(`problem while deactivating editor mode ${K}:`,ee)}}}}})(P.get(),M,j))}}})(i),a.dispatch("SetupEditor",{editor:this});const E=iu(i);de(E)&&E.call(i,i)}render(){(o=>{const n=o.id;Zi.setCode(vg(o));const a=()=>{Cf.unbind(window,"ready",a),o.render()};if(!zd.Event.domLoaded)return void Cf.bind(window,"ready",a);if(!o.getElement())return;const i=je(o.getElement()),c=oe(i);o.on("remove",()=>{$e(i.dom.attributes,u=>U(i,u.name)),Ee(i,c)}),o.ui.styleSheetLoader=((u,f)=>Hm.forElement(u,{contentCssCors:Ov(f),referrerPolicy:Hu(f)}))(i,o),Cg(o)?o.inline=!0:(o.orgVisibility=o.getElement().style.visibility,o.getElement().style.visibility="hidden");const d=o.getElement().form||Cf.getParent(n,"form");d&&(o.formElement=d,wb(o)&&!oi(o.getElement())&&(Cf.insertAfter(Cf.create("input",{type:"hidden",name:n}),n),o.hasHiddenInput=!0),o.formEventDelegate=u=>{o.dispatch(u.type,u)},Cf.bind(d,"submit reset",o.formEventDelegate),o.on("reset",()=>{o.resetContent()}),!Av(o)||d.submit.nodeType||d.submit.length||d._mceOldSubmit||(d._mceOldSubmit=d.submit,d.submit=()=>(o.editorManager.triggerSave(),o.setDirty(!1),d._mceOldSubmit(d)))),o.windowManager=uw(o),o.notificationManager=Q2(o),(u=>u.options.get("encoding")==="xml")(o)&&o.on("GetContent",u=>{u.save&&(u.content=Cf.encode(u.content))}),m1(o)&&o.on("submit",()=>{o.initialized&&o.save()}),kb(o)&&(o._beforeUnload=()=>{!o.initialized||o.destroyed||o.isHidden()||o.save({format:"raw",no_events:!0,set_dirty:!1})},o.editorManager.on("BeforeUnload",o._beforeUnload)),o.editorManager.add(o),XO(o,o.suffix)})(this)}focus(o){this.execCommand("mceFocus",!1,o)}hasFocus(){return rf(this)}translate(o){return Zi.translate(o)}getParam(o,n,a){const i=this.options;return i.isRegistered(o)||(Ze(a)?i.register(o,{processor:a,default:n}):i.register(o,{processor:Bt,default:n})),i.isSet(o)||fo(n)?i.get(o):n}hasPlugin(o,n){return!(!lo(qm(this),o)||n&&by.get(o)===void 0)}nodeChanged(o){this._nodeChangeDispatcher.nodeChanged(o)}addCommand(o,n,a){this.editorCommands.addCommand(o,n,a)}addQueryStateHandler(o,n,a){this.editorCommands.addQueryStateHandler(o,n,a)}addQueryValueHandler(o,n,a){this.editorCommands.addQueryValueHandler(o,n,a)}addShortcut(o,n,a,i){this.shortcuts.add(o,n,a,i)}execCommand(o,n,a,i){return this.editorCommands.execCommand(o,n,a,i)}queryCommandState(o){return this.editorCommands.queryCommandState(o)}queryCommandValue(o){return this.editorCommands.queryCommandValue(o)}queryCommandSupported(o){return this.editorCommands.queryCommandSupported(o)}show(){const o=this;o.hidden&&(o.hidden=!1,o.inline?o.getBody().contentEditable="true":(Af.show(o.getContainer()),Af.hide(o.id)),o.load(),o.dispatch("show"))}hide(){const o=this;o.hidden||(o.save(),o.inline?(o.getBody().contentEditable="false",o===o.editorManager.focusedEditor&&(o.editorManager.focusedEditor=null)):(Af.hide(o.getContainer()),Af.setStyle(o.id,"display",o.orgDisplay)),o.hidden=!0,o.dispatch("hide"))}isHidden(){return this.hidden}setProgressState(o,n){this.dispatch("ProgressState",{state:o,time:n})}load(o={}){const n=this,a=n.getElement();if(n.removed)return"";if(a){const i={...o,load:!0},c=oi(a)?a.value:a.innerHTML,d=n.setContent(c,i);return i.no_events||n.dispatch("LoadContent",{...i,element:a}),d}return""}save(o={}){const n=this;let a=n.getElement();if(!a||!n.initialized||n.removed)return"";const i={...o,save:!0,element:a};let c=n.getContent(i);const d={...i,content:c};if(d.no_events||n.dispatch("SaveContent",d),d.format==="raw"&&n.dispatch("RawSaveContent",d),c=d.content,oi(a))a.value=c;else{!o.is_removing&&n.inline||(a.innerHTML=c);const u=Af.getParent(n.id,"form");u&&s5(u.elements,f=>f.name!==n.id||(f.value=c,!1))}return d.element=i.element=a=null,d.set_dirty!==!1&&n.setDirty(!1),c}setContent(o,n){return v0(this,o,n)}getContent(o){return((n,a={})=>{const i=((c,d)=>({...c,format:d,get:!0,getInner:!0}))(a,a.format?a.format:"html");return L2(n,i).fold(R,c=>{const d=((u,f)=>iw(u).editor.getContent(f))(n,c);return I2(n,d,c)})})(this,o)}insertContent(o,n){n&&(o=Fk({content:o},n)),this.execCommand("mceInsertContent",!1,o)}resetContent(o){o===void 0?v0(this,this.startContent,{format:"raw"}):v0(this,o),this.undoManager.reset(),this.setDirty(!1),this.nodeChanged()}isDirty(){return!this.isNotDirty}setDirty(o){const n=!this.isNotDirty;this.isNotDirty=!o,o&&o!==n&&this.dispatch("dirty")}getContainer(){const o=this;return o.container||(o.container=o.editorContainer||Af.get(o.id+"_parent")),o.container}getContentAreaContainer(){return this.contentAreaContainer}getElement(){return this.targetElm||(this.targetElm=Af.get(this.id)),this.targetElm}getWin(){const o=this;if(!o.contentWindow){const n=o.iframeElement;n&&(o.contentWindow=n.contentWindow)}return o.contentWindow}getDoc(){const o=this;if(!o.contentDocument){const n=o.getWin();n&&(o.contentDocument=n.document)}return o.contentDocument}getBody(){var o,n;const a=this.getDoc();return(n=(o=this.bodyElement)!==null&&o!==void 0?o:a==null?void 0:a.body)!==null&&n!==void 0?n:null}convertURL(o,n,a){const i=this,c=i.options.get,d=Mv(i);if(de(d))return d.call(i,o,a,!0,n);if(!c("convert_urls")||a==="link"||it(a)&&a.nodeName==="LINK"||o.indexOf("file:")===0||o.length===0)return o;const u=new Wu(o);return u.protocol!=="http"&&u.protocol!=="https"&&u.protocol!==""?o:c("relative_urls")?i.documentBaseURI.toRelative(o):o=i.documentBaseURI.toAbsolute(o,c("remove_script_host"))}addVisual(o){((n,a)=>{((i,c)=>{Li(i).editor.addVisual(c)})(n,a)})(this,o)}setEditableRoot(o){((n,a)=>{n._editableRoot!==a&&(n._editableRoot=a,n.readonly||(n.getBody().contentEditable=String(n.hasEditableRoot()),n.nodeChanged()),((i,c)=>{i.dispatch("EditableRootStateChange",{state:c})})(n,a))})(this,o)}hasEditableRoot(){return this._editableRoot}remove(){(o=>{if(!o.removed){const{_selectionOverrides:n,editorUpload:a}=o,i=o.getBody(),c=o.getElement();i&&o.save({is_removing:!0}),o.removed=!0,o.unbindAllNativeEvents(),o.hasHiddenInput&&Ze(c==null?void 0:c.nextSibling)&&Th.remove(c.nextSibling),(d=>{d.dispatch("remove")})(o),o.editorManager.remove(o),!o.inline&&i&&(d=>{Th.setStyle(d.id,"display",d.orgDisplay)})(o),(d=>{d.dispatch("detach")})(o),Th.remove(o.getContainer()),Jm(n),Jm(a),o.destroy()}})(this)}destroy(o){((n,a)=>{const{selection:i,dom:c}=n;n.destroyed||(a||n.removed?(a||(n.editorManager.off("beforeunload",n._beforeUnload),n.theme&&n.theme.destroy&&n.theme.destroy(),Jm(i),Jm(c)),(d=>{const u=d.formElement;u&&(u._mceOldSubmit&&(u.submit=u._mceOldSubmit,delete u._mceOldSubmit),Th.unbind(u,"submit reset",d.formEventDelegate))})(n),(d=>{const u=d;u.contentAreaContainer=u.formElement=u.container=u.editorContainer=null,u.bodyElement=u.contentDocument=u.contentWindow=null,u.iframeElement=u.targetElm=null;const f=d.selection;if(f){const y=f.dom;u.selection=f.win=f.dom=y.doc=null}})(n),n.destroyed=!0):n.remove())})(this,o)}uploadImages(){return this.editorUpload.uploadImages()}_scanForImages(){return this.editorUpload.scanForImages()}}const Zh=wr.DOM,Ik=go.each;let Pk,qh=!1,Zc=[];const gp=t=>{const o=t.type;Ik(pp.get(),n=>{switch(o){case"scroll":n.dispatch("ScrollWindow",t);break;case"resize":n.dispatch("ResizeWindow",t)}})},Uy=t=>{if(t!==qh){const o=wr.DOM;t?(o.bind(window,"resize",gp),o.bind(window,"scroll",gp)):(o.unbind(window,"resize",gp),o.unbind(window,"scroll",gp)),qh=t}},Wh=t=>{const o=Zc;return Zc=gt(Zc,n=>t!==n),pp.activeEditor===t&&(pp.activeEditor=Zc.length>0?Zc[0]:null),pp.focusedEditor===t&&(pp.focusedEditor=null),o.length!==Zc.length},h3=document.compatMode!=="CSS1Compat",pp={...zf,baseURI:null,baseURL:null,defaultOptions:{},documentBaseURL:null,suffix:null,majorVersion:"6",minorVersion:"8.3",releaseDate:"2024-02-08",i18n:Zi,activeEditor:null,focusedEditor:null,setup(){const t=this;let o="",n="",a=Wu.getDocumentBaseUrl(document.location);/^[^:]+:\/\/\/?[^\/]+\//.test(a)&&(a=a.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(a)||(a+="/"));const i=window.tinymce||window.tinyMCEPreInit;if(i)o=i.base||i.baseURL,n=i.suffix;else{const d=document.getElementsByTagName("script");for(let u=0;u{bl.PluginManager.urls[c]=i})},init(t){const o=this;let n;const a=go.makeMap("area base basefont br col frame hr img input isindex link meta param embed source wbr track colgroup option table tbody tfoot thead tr th td script noscript style textarea video audio iframe object menu"," ");let i=d=>{n=d};const c=()=>{let d=0;const u=[];let f;Zh.unbind(window,"ready",c),(y=>{const v=t.onpageload;v&&v.apply(o,[])})(),f=((y,v)=>{const k=[],E=de(v)?B=>zo(k,O=>v(O,B)):B=>lo(k,B);for(let B=0,O=y.length;BRn.browser.isIE()||Rn.browser.isEdge()?(yy("TinyMCE does not support the browser you are using. For a list of supported browsers please see: https://www.tiny.cloud/docs/tinymce/6/support/#supportedwebbrowsers"),[]):h3?(yy("Failed to initialize the editor as the document is not in standards mode. TinyMCE requires standards mode."),[]):Ue(y.selector)?Zh.select(y.selector):Ze(y.target)?[y.target]:[])(t)),go.each(f,y=>{var v;(v=o.get(y.id))&&v.initialized&&!(v.getContainer()||v.getBody()).parentNode&&(Wh(v),v.unbindAllNativeEvents(),v.destroy(!0),v.removed=!0)}),f=go.grep(f,y=>!o.get(y.id)),f.length===0?i([]):Ik(f,y=>{((v,k)=>v.inline&&k.tagName.toLowerCase()in a)(t,y)?yy("Could not initialize inline editor on invalid inline target element",y):((v,k,E)=>{const B=new Lk(v,k,o);u.push(B),B.on("init",()=>{++d===f.length&&i(u)}),B.targetElm=B.targetElm||E,B.render()})((v=>{let k=v.id;return k||(k=Fn(v,"name").filter(E=>!Zh.get(E)).getOrThunk(Zh.uniqueId),v.setAttribute("id",k)),k})(y),t,y)})};return Zh.bind(window,"ready",c),new Promise(d=>{n?d(n):i=u=>{d(u)}})},get(t){return arguments.length===0?Zc.slice(0):Ue(t)?Fe(Zc,o=>o.id===t).getOr(null):rt(t)&&Zc[t]?Zc[t]:null},add(t){const o=this,n=o.get(t.id);return n===t||(n===null&&Zc.push(t),Uy(!0),o.activeEditor=t,o.dispatch("AddEditor",{editor:t}),Pk||(Pk=a=>{const i=o.dispatch("BeforeUnload");if(i.returnValue)return a.preventDefault(),a.returnValue=i.returnValue,i.returnValue},window.addEventListener("beforeunload",Pk))),t},createEditor(t,o){return this.add(new Lk(t,o,this))},remove(t){const o=this;let n;if(t){if(!Ue(t))return n=t,he(o.get(n.id))?null:(Wh(n)&&o.dispatch("RemoveEditor",{editor:n}),Zc.length===0&&window.removeEventListener("beforeunload",Pk),n.remove(),Uy(Zc.length>0),n);Ik(Zh.select(t),a=>{n=o.get(a.id),n&&o.remove(n)})}else for(let a=Zc.length-1;a>=0;a--)o.remove(Zc[a])},execCommand(t,o,n){var a;const i=this,c=it(n)?(a=n.id)!==null&&a!==void 0?a:n.index:n;switch(t){case"mceAddEditor":if(!i.get(c)){const d=n.options;new Lk(c,d,i).render()}return!0;case"mceRemoveEditor":{const d=i.get(c);return d&&d.remove(),!0}case"mceToggleEditor":{const d=i.get(c);return d?(d.isHidden()?d.show():d.hide(),!0):(i.execCommand("mceAddEditor",!1,n),!0)}}return!!i.activeEditor&&i.activeEditor.execCommand(t,o,n)},triggerSave:()=>{Ik(Zc,t=>{t.save()})},addI18n:(t,o)=>{Zi.add(t,o)},translate:t=>Zi.translate(t),setActive(t){const o=this.activeEditor;this.activeEditor!==t&&(o&&o.dispatch("deactivate",{relatedTarget:t}),t.dispatch("activate",{relatedTarget:o})),this.activeEditor=t},_setBaseUrl(t){this.baseURL=new Wu(this.documentBaseURL).toAbsolute(t.replace(/\/+$/,"")),this.baseURI=new Wu(this.baseURL)}};pp.setup();const lA=(()=>{const t=Ec();return{FakeClipboardItem:o=>({items:o,types:ut(o),getType:n=>Fn(o,n).getOrUndefined()}),write:o=>{t.set(o)},read:()=>t.get().getOrUndefined(),clear:t.clear}})(),Hk=Math.min,Gh=Math.max,dv=Math.round,b3=(t,o,n)=>{let a=o.x,i=o.y;const c=t.w,d=t.h,u=o.w,f=o.h,y=(n||"").split("");return y[0]==="b"&&(i+=f),y[1]==="r"&&(a+=u),y[0]==="c"&&(i+=dv(f/2)),y[1]==="c"&&(a+=dv(u/2)),y[3]==="b"&&(i-=d),y[4]==="r"&&(a-=c),y[3]==="c"&&(i-=dv(d/2)),y[4]==="c"&&(a-=dv(c/2)),Of(a,i,c,d)},Of=(t,o,n,a)=>({x:t,y:o,w:n,h:a}),cA={inflate:(t,o,n)=>Of(t.x-o,t.y-n,t.w+2*o,t.h+2*n),relativePosition:b3,findBestRelativePosition:(t,o,n,a)=>{for(let i=0;i=n.x&&c.x+c.w<=n.w+n.x&&c.y>=n.y&&c.y+c.h<=n.h+n.y)return a[i]}return null},intersect:(t,o)=>{const n=Gh(t.x,o.x),a=Gh(t.y,o.y),i=Hk(t.x+t.w,o.x+o.w),c=Hk(t.y+t.h,o.y+o.h);return i-n<0||c-a<0?null:Of(n,a,i-n,c-a)},clamp:(t,o,n)=>{let a=t.x,i=t.y,c=t.x+t.w,d=t.y+t.h;const u=o.x+o.w,f=o.y+o.h,y=Gh(0,o.x-a),v=Gh(0,o.y-i),k=Gh(0,c-u),E=Gh(0,d-f);return a+=y,i+=v,n&&(c+=y,d+=v,a-=k,i-=E),c-=k,d-=E,Of(a,i,c-a,d-i)},create:Of,fromClientRect:t=>Of(t.left,t.top,t.width,t.height)},dA=(()=>{const t={},o={},n={};return{load:(a,i)=>{const c=`Script at URL "${i}" failed to load`,d=`Script at URL "${i}" did not call \`tinymce.Resource.add('${a}', data)\` within 1 second`;if(t[a]!==void 0)return t[a];{const u=new Promise((f,y)=>{const v=((k,E,B=1e3)=>{let O=!1,P=null;const M=K=>(...re)=>{O||(O=!0,P!==null&&(clearTimeout(P),P=null),K.apply(null,re))},j=M(k),q=M(E);return{start:(...K)=>{O||P!==null||(P=setTimeout(()=>q.apply(null,K),B))},resolve:j,reject:q}})(f,y);o[a]=v.resolve,Jr.ScriptLoader.loadScript(i).then(()=>v.start(d),()=>v.reject(c))});return t[a]=u,u}},add:(a,i)=>{o[a]!==void 0&&(o[a](i),delete o[a]),t[a]=Promise.resolve(i),n[a]=i},has:a=>a in n,get:a=>n[a],unload:a=>{delete t[a]}}})();let Kh;try{const t="__storage_test__";Kh=window.localStorage,Kh.setItem(t,t),Kh.removeItem(t)}catch{Kh=(()=>{let o={},n=[];const a={getItem:i=>o[i]||null,setItem:(i,c)=>{n.push(i),o[i]=String(c)},key:i=>n[i],removeItem:i=>{n=n.filter(c=>c===i),delete o[i]},clear:()=>{n=[],o={}},length:0};return Object.defineProperty(a,"length",{get:()=>n.length,configurable:!1,enumerable:!1}),a})()}const i5={geom:{Rect:cA},util:{Delay:uu,Tools:go,VK:mn,URI:Wu,EventDispatcher:u3,Observable:zf,I18n:Zi,LocalStorage:Kh,ImageUploader:t=>{const o=TE(),n=gw(t,o);return{upload:(a,i=!0)=>n.upload(a,i?tC(t):void 0)}}},dom:{EventUtils:zd,TreeWalker:Ns,TextSeeker:um,DOMUtils:wr,ScriptLoader:Jr,RangeUtils:nf,Serializer:Xg,StyleSheetLoader:kp,ControlSelection:H3,BookmarkManager:tf,Selection:y0,Event:zd.Event},html:{Styles:Xn,Entities:Sc,Node:pc,Schema:Du,DomParser:dy,Writer:y4,Serializer:af},Env:Rn,AddOnManager:bl,Annotator:km,Formatter:_0,UndoManager:iC,EditorCommands:Nk,WindowManager:uw,NotificationManager:Q2,EditorObservable:oA,Shortcuts:Bk,Editor:Lk,FocusManager:o4,EditorManager:pp,DOM:wr.DOM,ScriptLoader:Jr.ScriptLoader,PluginManager:by,ThemeManager:Jg,ModelManager:Kl,IconManager:w0,Resource:dA,FakeClipboard:lA,trim:go.trim,isArray:go.isArray,is:go.is,toArray:go.toArray,makeMap:go.makeMap,each:go.each,map:go.map,grep:go.grep,inArray:go.inArray,extend:go.extend,walk:go.walk,resolve:go.resolve,explode:go.explode,_addCacheSuffix:go._addCacheSuffix},y3=go.extend(pp,i5);(t=>{window.tinymce=t,window.tinyMCE=t})(y3),(t=>{try{xo.exports=t}catch{}})(y3)})()})(KM);tinymce.IconManager.add("default",{icons:{"accessibility-check":'',"accordion-toggle":'',accordion:'',"action-next":'',"action-prev":'',addtag:'',"ai-prompt":'',ai:'',"align-center":'',"align-justify":'',"align-left":'',"align-none":'',"align-right":'',"arrow-left":'',"arrow-right":'',bold:'',bookmark:'',"border-style":'',"border-width":'',brightness:'',browse:'',cancel:'',"cell-background-color":'',"cell-border-color":'',"change-case":'',"character-count":'',"checklist-rtl":'',checklist:'',checkmark:'',"chevron-down":'',"chevron-left":'',"chevron-right":'',"chevron-up":'',close:'',"code-sample":'',"color-levels":'',"color-picker":'',"color-swatch-remove-color":'',"color-swatch":'',"comment-add":'',comment:'',contrast:'',copy:'',crop:'',"cut-column":'',"cut-row":'',cut:'',"document-properties":'',drag:'',"duplicate-column":'',"duplicate-row":'',duplicate:'',"edit-block":'',"edit-image":'',"embed-page":'',embed:'',emoji:'',export:'',fill:'',"flip-horizontally":'',"flip-vertically":'',footnote:'',"format-painter":'',format:'',fullscreen:'',gallery:'',gamma:'',help:'',"highlight-bg-color":'',home:'',"horizontal-rule":'',"image-options":'',image:'',indent:'',info:'',"insert-character":'',"insert-time":'',invert:'',italic:'',language:'',"line-height":'',line:'',link:'',"list-bull-circle":'',"list-bull-default":'',"list-bull-square":'',"list-num-default-rtl":'',"list-num-default":'',"list-num-lower-alpha-rtl":'',"list-num-lower-alpha":'',"list-num-lower-greek-rtl":'',"list-num-lower-greek":'',"list-num-lower-roman-rtl":'',"list-num-lower-roman":'',"list-num-upper-alpha-rtl":'',"list-num-upper-alpha":'',"list-num-upper-roman-rtl":'',"list-num-upper-roman":'',lock:'',ltr:'',minus:'',"more-drawer":'',"new-document":'',"new-tab":'',"non-breaking":'',notice:'',"ordered-list-rtl":'',"ordered-list":'',orientation:'',outdent:'',"page-break":'',paragraph:'',"paste-column-after":'',"paste-column-before":'',"paste-row-after":'',"paste-row-before":'',"paste-text":'',paste:'',"permanent-pen":'',plus:'',preferences:'',preview:'',print:'',quote:'',redo:'',reload:'',"remove-formatting":'',remove:'',"resize-handle":'',resize:'',"restore-draft":'',"rotate-left":'',"rotate-right":'',rtl:'',save:'',search:'',"select-all":'',selected:'',send:'',settings:'',sharpen:'',sourcecode:'',"spell-check":'',"strike-through":'',subscript:'',superscript:'',"table-caption":'',"table-cell-classes":'',"table-cell-properties":'',"table-cell-select-all":'',"table-cell-select-inner":'',"table-classes":'',"table-delete-column":'',"table-delete-row":'',"table-delete-table":'',"table-insert-column-after":'',"table-insert-column-before":'',"table-insert-row-above":'',"table-insert-row-after":'',"table-left-header":'',"table-merge-cells":'',"table-row-numbering-rtl":'',"table-row-numbering":'',"table-row-properties":'',"table-split-cells":'',"table-top-header":'',table:'',"template-add":'',template:'',"temporary-placeholder":'',"text-color":'',"text-size-decrease":'',"text-size-increase":'',toc:'',translate:'',typography:'',underline:'',undo:'',unlink:'',unlock:'',"unordered-list":'',unselected:'',upload:'',user:'',"vertical-align":'',visualblocks:'',visualchars:'',warning:'',"zoom-in":'',"zoom-out":''}});(function(){const xo=Object.getPrototypeOf,Ko=(e,r,s)=>{var l;return!!s(e,r.prototype)||((l=e.constructor)===null||l===void 0?void 0:l.name)===r.name},Io=e=>r=>(s=>{const l=typeof s;return s===null?"null":l==="object"&&Array.isArray(s)?"array":l==="object"&&Ko(s,String,(m,g)=>g.isPrototypeOf(m))?"string":l})(r)===e,on=e=>r=>typeof r===e,Qo=e=>r=>e===r,io=Io("string"),Po=Io("object"),jt=e=>((r,s)=>Po(r)&&Ko(r,s,(l,m)=>xo(l)===m))(e,Object),ko=Io("array"),Mo=Qo(null),jo=on("boolean"),tn=Qo(void 0),To=e=>e==null,Ue=e=>!To(e),it=on("function"),So=on("number"),co=(e,r)=>{if(ko(e)){for(let s=0,l=e.length;s{},Dt=e=>()=>e(),fo=(e,r)=>(...s)=>e(r.apply(null,s)),me=e=>()=>e,Ze=e=>e,de=(e,r)=>e===r;function rt(e,...r){return(...s)=>{const l=r.concat(s);return e.apply(null,l)}}const Yo=e=>r=>!e(r),$t=e=>()=>{throw new Error(e)},gn=e=>e(),Bo=me(!1),Ct=me(!0);class R{constructor(r,s){this.tag=r,this.value=s}static some(r){return new R(!0,r)}static none(){return R.singletonNone}fold(r,s){return this.tag?s(this.value):r()}isSome(){return this.tag}isNone(){return!this.tag}map(r){return this.tag?R.some(r(this.value)):R.none()}bind(r){return this.tag?r(this.value):R.none()}exists(r){return this.tag&&r(this.value)}forall(r){return!this.tag||r(this.value)}filter(r){return!this.tag||r(this.value)?this:R.none()}getOr(r){return this.tag?this.value:r}or(r){return this.tag?this:r}getOrThunk(r){return this.tag?this.value:r()}orThunk(r){return this.tag?this:r()}getOrDie(r){if(this.tag)return this.value;throw new Error(r??"Called getOrDie on None")}static from(r){return Ue(r)?R.some(r):R.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(r){this.tag&&r(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}R.singletonNone=new R(!1);const qe=Array.prototype.slice,Je=Array.prototype.indexOf,lt=Array.prototype.push,Mt=(e,r)=>Je.call(e,r),ht=(e,r)=>{const s=Mt(e,r);return s===-1?R.none():R.some(s)},Rt=(e,r)=>Mt(e,r)>-1,uo=(e,r)=>{for(let s=0,l=e.length;s{const s=[];for(let l=0;l{const s=[];for(let l=0;l{const s=e.length,l=new Array(s);for(let m=0;m{for(let s=0,l=e.length;s{const s=[],l=[];for(let m=0,g=e.length;m{const s=[];for(let l=0,m=e.length;l(((l,m)=>{for(let g=l.length-1;g>=0;g--)m(l[g],g)})(e,(l,m)=>{s=r(s,l,m)}),s),zo=(e,r,s)=>(Ie(e,(l,m)=>{s=r(s,l,m)}),s),to=(e,r)=>((s,l,m)=>{for(let g=0,h=s.length;g{for(let s=0,l=e.length;s{const r=[];for(let s=0,l=e.length;s$e(dt(e,r)),gt=(e,r)=>{for(let s=0,l=e.length;s{const r=qe.call(e,0);return r.reverse(),r},Oe=(e,r)=>Pt(e,s=>!Rt(r,s)),We=(e,r)=>{const s={};for(let l=0,m=e.length;l[e],ge=(e,r)=>{const s=qe.call(e,0);return s.sort(r),s},Me=(e,r)=>r>=0&&rMe(e,0),ze=e=>Me(e,e.length-1),Ge=it(Array.from)?Array.from:e=>qe.call(e),Gt=(e,r)=>{for(let s=0;s{const s=Vt(e);for(let l=0,m=s.length;lGn(e,(s,l)=>({k:l,v:r(s,l)})),Gn=(e,r)=>{const s={};return $o(e,(l,m)=>{const g=r(l,m);s[g.k]=g.v}),s},Pn=e=>(r,s)=>{e[s]=r},zn=(e,r,s,l)=>{$o(e,(m,g)=>{(r(m,g)?s:l)(m,g)})},ut=(e,r)=>{const s={};return zn(e,r,Pn(s),he),s},zt=(e,r)=>{const s=[];return $o(e,(l,m)=>{s.push(r(l,m))}),s},Ft=(e,r)=>{const s=Vt(e);for(let l=0,m=s.length;lzt(e,Ze),Xt=(e,r)=>Vo(e,r)?R.from(e[r]):R.none(),Vo=(e,r)=>Xo.call(e,r),$n=(e,r)=>Vo(e,r)&&e[r]!==void 0&&e[r]!==null,Rr=(e,r,s=de)=>e.exists(l=>s(l,r)),Wt=e=>{const r=[],s=l=>{r.push(l)};for(let l=0;le.isSome()&&r.isSome()?R.some(s(e.getOrDie(),r.getOrDie())):R.none(),Fn=(e,r)=>e!=null?R.some(r(e)):R.none(),ln=(e,r)=>e?R.some(r):R.none(),xr=(e,r,s)=>r===""||e.length>=r.length&&e.substr(s,s+r.length)===r,Ys=(e,r)=>Pa(e,r)?((s,l)=>s.substring(l))(e,r.length):e,Yr=(e,r,s=0,l)=>{const m=e.indexOf(r,s);return m!==-1&&(!!tn(l)||m+r.length<=l)},Pa=(e,r)=>xr(e,r,0),cs=(e,r)=>xr(e,r,e.length-r.length),Ha=(Gi=/^\s+|\s+$/g,e=>e.replace(Gi,"")),ja=e=>e.length>0,$s=e=>!ja(e),Us=e=>e.style!==void 0&&it(e.style.getPropertyValue),_a=e=>{if(e==null)throw new Error("Node cannot be null or undefined");return{dom:e}},tt=(e,r)=>{const s=(r||document).createElement("div");if(s.innerHTML=e,!s.hasChildNodes()||s.childNodes.length>1){const l="HTML does not have a single root node";throw console.error(l,e),new Error(l)}return _a(s.childNodes[0])},_t=(e,r)=>{const s=(r||document).createElement(e);return _a(s)},Do=(e,r)=>{const s=(r||document).createTextNode(e);return _a(s)},St=_a,zr=typeof window<"u"?window:Function("return this;")(),kr=(e,r)=>((s,l)=>{let m=l??zr;for(let g=0;g{const r=kr("ownerDocument.defaultView",e);return Po(e)&&((s=>((l,m)=>{const g=((h,x)=>kr(h,x))(l,m);if(g==null)throw new Error(l+" not available on this browser");return g})("HTMLElement",s))(r).prototype.isPrototypeOf(e)||/^HTML\w*Element$/.test(Is(e).constructor.name))},gr=e=>e.dom.nodeName.toLowerCase(),De=e=>r=>(s=>s.dom.nodeType)(r)===e,Ae=e=>wt(e)&&Xr(e.dom),wt=De(1),It=De(3),dn=De(9),nn=De(11),sr=e=>r=>wt(r)&&gr(r)===e,Vr=(e,r)=>{const s=e.dom;if(s.nodeType!==1)return!1;{const l=s;if(l.matches!==void 0)return l.matches(r);if(l.msMatchesSelector!==void 0)return l.msMatchesSelector(r);if(l.webkitMatchesSelector!==void 0)return l.webkitMatchesSelector(r);if(l.mozMatchesSelector!==void 0)return l.mozMatchesSelector(r);throw new Error("Browser lacks native selectors")}},Br=e=>e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11||e.childElementCount===0,Jo=(e,r)=>e.dom===r.dom,Ce=(e,r)=>{const s=e.dom,l=r.dom;return s!==l&&s.contains(l)},Ne=e=>St(e.dom.ownerDocument),Zt=e=>dn(e)?e:Ne(e),Lo=e=>St(Zt(e).dom.documentElement),Ho=e=>St(Zt(e).dom.defaultView),rn=e=>R.from(e.dom.parentNode).map(St),Go=e=>R.from(e.dom.parentElement).map(St),hn=e=>R.from(e.dom.offsetParent).map(St),wn=e=>dt(e.dom.childNodes,St),Un=(e,r)=>{const s=e.dom.childNodes;return R.from(s[r]).map(St)},Ar=e=>Un(e,0),ra=(e,r)=>({element:e,offset:r}),Xs=(e,r)=>{const s=wn(e);return s.length>0&&rnn(e)&&Ue(e.dom.host),mi=it(Element.prototype.attachShadow)&&it(Node.prototype.getRootNode),Wr=me(mi),rr=mi?e=>St(e.dom.getRootNode()):Zt,Sr=e=>Zs(e)?e:St(Zt(e).dom.body),va=e=>{const r=rr(e);return Zs(r)?R.some(r):R.none()},Cs=e=>St(e.dom.host),za=e=>{const r=It(e)?e.dom.parentNode:e.dom;if(r==null||r.ownerDocument===null)return!1;const s=r.ownerDocument;return va(St(r)).fold(()=>s.body.contains(r),(l=za,m=Cs,g=>l(m(g))));var l,m},ws=()=>As(St(document)),As=e=>{const r=e.dom.body;if(r==null)throw new Error("Body is not available yet");return St(r)},Aa=(e,r,s)=>{if(!(io(s)||jo(s)||So(s)))throw console.error("Invalid call to Attribute.set. Key ",r,":: Value ",s,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(r,s+"")},Kn=(e,r,s)=>{Aa(e.dom,r,s)},Os=(e,r)=>{const s=e.dom;$o(r,(l,m)=>{Aa(s,m,l)})},Ma=(e,r)=>{const s=e.dom.getAttribute(r);return s===null?void 0:s},Ca=(e,r)=>R.from(Ma(e,r)),ds=(e,r)=>{const s=e.dom;return!(!s||!s.hasAttribute)&&s.hasAttribute(r)},xa=(e,r)=>{e.dom.removeAttribute(r)},Rn=(e,r,s)=>{if(!io(s))throw console.error("Invalid call to CSS.set. Property ",r,":: Value ",s,":: Element ",e),new Error("CSS value must be a string: "+s);Us(e)&&e.style.setProperty(r,s)},Hi=(e,r)=>{Us(e)&&e.style.removeProperty(r)},Bn=(e,r,s)=>{const l=e.dom;Rn(l,r,s)},ji=(e,r)=>{const s=e.dom;$o(r,(l,m)=>{Rn(s,m,l)})},go=(e,r)=>{const s=e.dom;$o(r,(l,m)=>{l.fold(()=>{Hi(s,m)},g=>{Rn(s,m,g)})})},aa=(e,r)=>{const s=e.dom,l=window.getComputedStyle(s).getPropertyValue(r);return l!==""||za(e)?l:Ss(s,r)},Ss=(e,r)=>Us(e)?e.style.getPropertyValue(r):"",Ir=(e,r)=>{const s=e.dom,l=Ss(s,r);return R.from(l).filter(m=>m.length>0)},gi=e=>{const r={},s=e.dom;if(Us(s))for(let l=0;l{const l=_t(e);return Bn(l,r,s),Ir(l,r).isSome()},Pr=(e,r)=>{const s=e.dom;Hi(s,r),Rr(Ca(e,"style").map(Ha),"")&&xa(e,"style")},ne=e=>e.dom.offsetWidth,Be=(e,r)=>{const s=m=>{const g=r(m);if(g<=0||g===null){const h=aa(m,e);return parseFloat(h)||0}return g},l=(m,g)=>zo(g,(h,x)=>{const w=aa(m,x),S=w===void 0?0:parseInt(w,10);return isNaN(S)?h:h+S},0);return{set:(m,g)=>{if(!So(g)&&!g.match(/^[0-9]+$/))throw new Error(e+".set accepts only positive integer values. Value was "+g);const h=m.dom;Us(h)&&(h.style[e]=g+"px")},get:s,getOuter:s,aggregate:l,max:(m,g,h)=>{const x=l(m,h);return g>x?g-x:0}}},Pe=Be("height",e=>{const r=e.dom;return za(e)?r.getBoundingClientRect().height:r.offsetHeight}),Nt=e=>Pe.get(e),ho=e=>Pe.getOuter(e),bn=(e,r)=>({left:e,top:r,translate:(s,l)=>bn(e+s,r+l)}),kn=bn,_r=(e,r)=>e!==void 0?e:r!==void 0?r:0,Or=e=>{const r=e.dom.ownerDocument,s=r.body,l=r.defaultView,m=r.documentElement;if(s===e.dom)return kn(s.offsetLeft,s.offsetTop);const g=_r(l==null?void 0:l.pageYOffset,m.scrollTop),h=_r(l==null?void 0:l.pageXOffset,m.scrollLeft),x=_r(m.clientTop,s.clientTop),w=_r(m.clientLeft,s.clientLeft);return Sa(e).translate(h-w,g-x)},Sa=e=>{const r=e.dom,s=r.ownerDocument.body;return s===r?kn(s.offsetLeft,s.offsetTop):za(e)?(l=>{const m=l.getBoundingClientRect();return kn(m.left,m.top)})(r):kn(0,0)},ma=Be("width",e=>e.dom.offsetWidth),Ga=e=>ma.get(e),Q=e=>ma.getOuter(e),Ee=e=>{let r,s=!1;return(...l)=>(s||(s=!0,r=e.apply(null,l)),r)},bt=()=>wo(0,0),wo=(e,r)=>({major:e,minor:r}),Zn={nu:wo,detect:(e,r)=>{const s=String(r).toLowerCase();return e.length===0?bt():((l,m)=>{const g=((x,w)=>{for(let S=0;SNumber(m.replace(g,"$"+x));return wo(h(1),h(2))})(e,s)},unknown:bt},U=(e,r)=>{const s=String(r).toLowerCase();return to(e,l=>l.search(s))},oe=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,xe=e=>r=>Yr(r,e),xt=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:e=>Yr(e,"edge/")&&Yr(e,"chrome")&&Yr(e,"safari")&&Yr(e,"applewebkit")},{name:"Chromium",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,oe],search:e=>Yr(e,"chrome")&&!Yr(e,"chromeframe")},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:e=>Yr(e,"msie")||Yr(e,"trident")},{name:"Opera",versionRegexes:[oe,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:xe("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:xe("firefox")},{name:"Safari",versionRegexes:[oe,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:e=>(Yr(e,"safari")||Yr(e,"mobile/"))&&Yr(e,"applewebkit")}],po=[{name:"Windows",search:xe("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:e=>Yr(e,"iphone")||Yr(e,"ipad"),versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:xe("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"macOS",search:xe("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:xe("linux"),versionRegexes:[]},{name:"Solaris",search:xe("sunos"),versionRegexes:[]},{name:"FreeBSD",search:xe("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:xe("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],Yn={browsers:me(xt),oses:me(po)},ga="Edge",ks="Chromium",_i="Opera",Js="Firefox",Vi="Safari",Qs=e=>{const r=e.current,s=e.version,l=m=>()=>r===m;return{current:r,version:s,isEdge:l(ga),isChromium:l(ks),isIE:l("IE"),isOpera:l(_i),isFirefox:l(Js),isSafari:l(Vi)}},ic=()=>Qs({current:void 0,version:Zn.unknown()}),_s=Qs,vc="Windows",je="Android",Ll="Linux",pd="macOS",Ci="Solaris",bp="FreeBSD",sa="ChromeOS",lc=e=>{const r=e.current,s=e.version,l=m=>()=>r===m;return{current:r,version:s,isWindows:l(vc),isiOS:l("iOS"),isAndroid:l(je),isMacOS:l(pd),isLinux:l(Ll),isSolaris:l(Ci),isFreeBSD:l(bp),isChromeOS:l(sa)}},ag=()=>lc({current:void 0,version:Zn.unknown()}),Si=lc,Gc=e=>window.matchMedia(e).matches;var Gi;let Il=Ee(()=>((e,r,s)=>{const l=Yn.browsers(),m=Yn.oses(),g=r.bind(w=>((S,A)=>Gt(A.brands,N=>{const F=N.brand.toLowerCase();return to(S,$=>{var W;return F===((W=$.brand)===null||W===void 0?void 0:W.toLowerCase())}).map($=>({current:$.name,version:Zn.nu(parseInt(N.version,10),0)}))}))(l,w)).orThunk(()=>((w,S)=>U(w,S).map(A=>{const N=Zn.detect(A.versionRegexes,S);return{current:A.name,version:N}}))(l,e)).fold(ic,_s),h=((w,S)=>U(w,S).map(A=>{const N=Zn.detect(A.versionRegexes,S);return{current:A.name,version:N}}))(m,e).fold(ag,Si),x=((w,S,A,N)=>{const F=w.isiOS()&&/ipad/i.test(A)===!0,$=w.isiOS()&&!F,W=w.isiOS()||w.isAndroid(),se=W||N("(pointer:coarse)"),le=F||!$&&W&&N("(min-device-width:768px)"),fe=$||W&&!le,te=S.isSafari()&&w.isiOS()&&/safari/i.test(A)===!1,X=!fe&&!le&&!te;return{isiPad:me(F),isiPhone:me($),isTablet:me(le),isPhone:me(fe),isTouch:me(se),isAndroid:w.isAndroid,isiOS:w.isiOS,isWebView:me(te),isDesktop:me(X)}})(h,g,e,s);return{browser:g,os:h,deviceType:x}})(navigator.userAgent,R.from(navigator.userAgentData),Gc));const Yl=()=>Il(),Ki=e=>{const r=St((g=>{if(Wr()&&Ue(g.target)){const h=St(g.target);if(wt(h)&&(x=>Ue(x.dom.shadowRoot))(h)&&g.composed&&g.composedPath){const x=g.composedPath();if(x)return at(x)}}return R.from(g.target)})(e).getOr(e.target)),s=()=>e.stopPropagation(),l=()=>e.preventDefault(),m=fo(l,s);return((g,h,x,w,S,A,N)=>({target:g,x:h,y:x,stop:w,prevent:S,kill:A,raw:N}))(r,e.clientX,e.clientY,s,l,m,e)},ie=(e,r,s,l,m)=>{const g=((h,x)=>w=>{h(w)&&x(Ki(w))})(s,l);return e.dom.addEventListener(r,g,m),{unbind:rt(ve,e,r,g,m)}},ve=(e,r,s,l)=>{e.dom.removeEventListener(r,s,l)},yt=(e,r)=>{rn(e).each(s=>{s.dom.insertBefore(r.dom,e.dom)})},Lt=(e,r)=>{(l=>R.from(l.dom.nextSibling).map(St))(e).fold(()=>{rn(e).each(l=>{ur(l,r)})},l=>{yt(l,r)})},yn=(e,r)=>{Ar(e).fold(()=>{ur(e,r)},s=>{e.dom.insertBefore(r.dom,s.dom)})},ur=(e,r)=>{e.dom.appendChild(r.dom)},Ra=(e,r)=>{Ie(r,s=>{ur(e,s)})},ei=e=>{e.dom.textContent="",Ie(wn(e),r=>{ia(r)})},ia=e=>{const r=e.dom;r.parentNode!==null&&r.parentNode.removeChild(r)},pa=e=>{const r=e!==void 0?e.dom:document,s=r.body.scrollLeft||r.documentElement.scrollLeft,l=r.body.scrollTop||r.documentElement.scrollTop;return kn(s,l)},Ps=(e,r,s)=>{const l=(s!==void 0?s.dom:document).defaultView;l&&l.scrollTo(e,r)},ta=(e,r,s,l)=>({x:e,y:r,width:s,height:l,right:e+s,bottom:r+l}),cc=e=>{const r=e===void 0?window:e,s=r.document,l=pa(St(s));return(m=>{const g=m===void 0?window:m;return Yl().browser.isFirefox()?R.none():R.from(g.visualViewport)})(r).fold(()=>{const m=r.document.documentElement,g=m.clientWidth,h=m.clientHeight;return ta(l.left,l.top,g,h)},m=>ta(Math.max(m.pageLeft,l.left),Math.max(m.pageTop,l.top),m.width,m.height))},Xl=()=>St(document),Ei=(e,r)=>e.view(r).fold(me([]),s=>{const l=e.owner(s),m=Ei(e,l);return[s].concat(m)});var xc=Object.freeze({__proto__:null,view:e=>{var r;return(e.dom===document?R.none():R.from((r=e.dom.defaultView)===null||r===void 0?void 0:r.frameElement)).map(St)},owner:e=>Ne(e)});const Es=e=>{const r=Xl(),s=pa(r);return((m,g)=>{const h=g.owner(m),x=Ei(g,h);return R.some(x)})(e,xc).fold(rt(Or,e),m=>{const g=Sa(e),h=lo(m,(x,w)=>{const S=Sa(w);return{left:x.left+S.left,top:x.top+S.top}},{left:0,top:0});return kn(h.left+g.left+s.left,h.top+g.top+s.top)})},Ba=(e,r,s,l)=>({x:e,y:r,width:s,height:l,right:e+s,bottom:r+l}),Fa=e=>{const r=Or(e),s=Q(e),l=ho(e);return Ba(r.left,r.top,s,l)},ts=e=>{const r=Es(e),s=Q(e),l=ho(e);return Ba(r.left,r.top,s,l)},Kc=(e,r)=>{const s=Math.max(e.x,r.x),l=Math.max(e.y,r.y),m=Math.min(e.right,r.right),g=Math.min(e.bottom,r.bottom);return Ba(s,l,m-s,g-l)},Ua=()=>cc(window);var fd=tinymce.util.Tools.resolve("tinymce.ThemeManager");const Yc=e=>{const r=g=>g(e),s=me(e),l=()=>m,m={tag:!0,inner:e,fold:(g,h)=>h(e),isValue:Ct,isError:Bo,map:g=>Fr.value(g(e)),mapError:l,bind:r,exists:r,forall:r,getOr:s,or:l,getOrThunk:s,orThunk:l,getOrDie:s,each:g=>{g(e)},toOptional:()=>R.some(e)};return m},nl=e=>{const r=()=>s,s={tag:!1,inner:e,fold:(l,m)=>l(e),isValue:Bo,isError:Ct,map:r,mapError:l=>Fr.error(l(e)),bind:r,exists:Bo,forall:Ct,getOr:Ze,or:Ze,getOrThunk:gn,orThunk:gn,getOrDie:$t(String(e)),each:he,toOptional:R.none};return s},Fr={value:Yc,error:nl,fromOption:(e,r)=>e.fold(()=>nl(r),Yc)};var ti;(function(e){e[e.Error=0]="Error",e[e.Value=1]="Value"})(ti||(ti={}));const Zd=(e,r,s)=>e.stype===ti.Error?r(e.serror):s(e.svalue),hd=e=>({stype:ti.Value,svalue:e}),qd=e=>({stype:ti.Error,serror:e}),Yi=hd,Mc=qd,om=Zd,_u=(e,r,s,l)=>({tag:"field",key:e,newKey:r,presence:s,prop:l}),Wd=(e,r,s)=>{switch(e.tag){case"field":return r(e.key,e.newKey,e.presence,e.prop);case"custom":return s(e.newKey,e.instantiator)}},rl=e=>(...r)=>{if(r.length===0)throw new Error("Can't merge zero objects");const s={};for(let l=0;ljt(e)&&jt(r)?Da(e,r):r),Jl=rl((e,r)=>r),os=e=>({tag:"defaultedThunk",process:e}),Dc=e=>os(me(e)),dc=e=>({tag:"mergeWithThunk",process:e}),bd=e=>{const r=(l=>{const m=[],g=[];return Ie(l,h=>{Zd(h,x=>g.push(x),x=>m.push(x))}),{values:m,errors:g}})(e);return r.errors.length>0?(s=r.errors,fo(Mc,$e)(s)):Yi(r.values);var s},Ea=e=>Po(e)&&Vt(e).length>100?" removed due to size":JSON.stringify(e,null,2),_l=(e,r)=>Mc([{path:e,getErrorInfo:r}]),Xc=e=>({extract:(r,s)=>((l,m)=>l.stype===ti.Error?m(l.serror):l)(e(s),l=>((m,g)=>_l(m,me(g)))(r,l)),toString:me("val")}),yd=Xc(Yi),wc=(e,r,s,l)=>l(Xt(e,r).getOrThunk(()=>s(e))),Jc=(e,r,s,l,m)=>{const g=x=>m.extract(r.concat([l]),x),h=x=>x.fold(()=>Yi(R.none()),w=>((S,A)=>S.stype===ti.Value?{stype:ti.Value,svalue:A(S.svalue)}:S)(m.extract(r.concat([l]),w),R.some));switch(e.tag){case"required":return((x,w,S,A)=>Xt(w,S).fold(()=>((N,F,$)=>_l(N,()=>'Could not find valid *required* value for "'+F+'" in '+Ea($)))(x,S,w),A))(r,s,l,g);case"defaultedThunk":return wc(s,l,e.process,g);case"option":return((x,w,S)=>S(Xt(x,w)))(s,l,h);case"defaultedOptionThunk":return((x,w,S,A)=>A(Xt(x,w).map(N=>N===!0?S(x):N)))(s,l,e.process,h);case"mergeWithThunk":return wc(s,l,me({}),x=>{const w=Da(e.process(s),x);return g(w)})}},Gd=e=>({extract:(r,s)=>e().extract(r,s),toString:()=>e().toString()}),vd=e=>Vt(ut(e,Ue)),pi=e=>{const r=Cn(e),s=lo(e,(l,m)=>Wd(m,g=>Da(l,{[g]:!0}),me(l)),{});return{extract:(l,m)=>{const g=jo(m)?[]:vd(m),h=Pt(g,x=>!$n(s,x));return h.length===0?r.extract(l,m):((x,w)=>_l(x,()=>"There are unsupported fields: ["+w.join(", ")+"] specified"))(l,h)},toString:r.toString}},Cn=e=>({extract:(r,s)=>((l,m,g)=>{const h={},x=[];for(const w of g)Wd(w,(S,A,N,F)=>{const $=Jc(N,l,m,S,F);om($,W=>{x.push(...W)},W=>{h[A]=W})},(S,A)=>{h[S]=A(m)});return x.length>0?Mc(x):Yi(h)})(r,s,e),toString:()=>`obj{ +`+dt(e,s=>Wd(s,(l,m,g,h)=>l+" -> "+h.toString(),(l,m)=>"state("+l+")")).join(` +`)+"}"}),Ql=e=>({extract:(r,s)=>{const l=dt(s,(m,g)=>e.extract(r.concat(["["+g+"]"]),m));return bd(l)},toString:()=>"array("+e.toString()+")"}),ec=(e,r)=>{const s=r!==void 0?r:Ze;return{extract:(l,m)=>{const g=[];for(const h of e){const x=h.extract(l,m);if(x.stype===ti.Value)return{stype:ti.Value,svalue:s(x.svalue)};g.push(x)}return bd(g)},toString:()=>"oneOf("+dt(e,l=>l.toString()).join(", ")+")"}},yp=(e,r)=>({extract:(s,l)=>{const m=Vt(l),g=((h,x)=>Ql(Xc(e)).extract(h,x))(s,m);return((h,x)=>h.stype===ti.Value?x(h.svalue):h)(g,h=>{const x=dt(h,w=>_u(w,w,{tag:"required",process:{}},r));return Cn(x).extract(s,l)})},toString:()=>"setOf("+r.toString()+")"}),Kd=fo(Ql,Cn),Cl=me(yd),nm=(e,r)=>Xc(s=>{const l=typeof s;return e(s)?Yi(s):Mc(`Expected type: ${r} but got: ${l}`)}),rm=nm(So,"number"),wa=nm(io,"string"),Qc=nm(jo,"boolean"),Ns=nm(it,"function"),kc=e=>{if(Object(e)!==e)return!0;switch({}.toString.call(e).slice(8,-1)){case"Boolean":case"Number":case"String":case"Date":case"RegExp":case"Blob":case"FileList":case"ImageData":case"ImageBitmap":case"ArrayBuffer":return!0;case"Array":case"Object":return Object.keys(e).every(r=>kc(e[r]));default:return!1}},Rm=Xc(e=>kc(e)?Yi(e):Mc("Expected value to be acceptable for sending via postMessage")),an=(e,r)=>({extract:(s,l)=>Xt(l,e).fold(()=>((m,g)=>_l(m,()=>'Choice schema did not contain choice key: "'+g+'"'))(s,e),m=>((g,h,x,w)=>Xt(x,w).fold(()=>((S,A,N)=>_l(S,()=>'The chosen schema: "'+N+'" did not exist in branches: '+Ea(A)))(g,x,w),S=>S.extract(g.concat(["branch: "+w]),h)))(s,l,r,m)),toString:()=>"chooseOn("+e+"). Possible values: "+Vt(r)}),Ti=e=>Xc(r=>e(r).fold(Mc,Yi)),Cu=(e,r)=>yp(s=>e(s).fold(qd,hd),r),ka=(e,r,s)=>{return l=((m,g,h)=>((x,w)=>x.stype===ti.Error?{stype:ti.Error,serror:w(x.serror)}:x)(g.extract([m],h),x=>({input:h,errors:x})))(e,r,s),Zd(l,Fr.error,Fr.value);var l},Sl=e=>e.fold(r=>{throw new Error(El(r))},Ze),fi=(e,r,s)=>Sl(ka(e,r,s)),El=e=>`Errors: +`+(r=>{const s=r.length>10?r.slice(0,10).concat([{path:[],getErrorInfo:me("... (only showing first ten failures)")}]):r;return dt(s,l=>"Failed path: ("+l.path.join(" > ")+`) +`+l.getErrorInfo())})(e.errors).join(` +`)+` + +Input object: `+Ea(e.input),Ms=(e,r)=>an(e,Zo(r,Cn)),Su=(e,r)=>((s,l)=>{const m=Ee(l);return{extract:(g,h)=>m().extract(g,h),toString:()=>m().toString()}})(0,r),oi=_u,ro=(e,r)=>({tag:"custom",newKey:e,instantiator:r}),Eu=e=>Ti(r=>Rt(e,r)?Fr.value(r):Fr.error(`Unsupported value: "${r}", choose one of "${e.join(", ")}".`)),Yt=e=>oi(e,e,{tag:"required",process:{}},Cl()),ni=(e,r)=>oi(e,e,{tag:"required",process:{}},r),xd=e=>ni(e,rm),us=e=>ni(e,wa),da=(e,r)=>oi(e,e,{tag:"required",process:{}},Eu(r)),ml=e=>ni(e,Ns),zi=(e,r)=>oi(e,e,{tag:"required",process:{}},Cn(r)),Oa=(e,r)=>oi(e,e,{tag:"required",process:{}},Kd(r)),al=(e,r)=>oi(e,e,{tag:"required",process:{}},Ql(r)),la=e=>oi(e,e,{tag:"option",process:{}},Cl()),$i=(e,r)=>oi(e,e,{tag:"option",process:{}},r),Yd=e=>$i(e,rm),Hs=e=>$i(e,wa),sg=(e,r)=>$i(e,Eu(r)),Tl=e=>$i(e,Ns),ns=(e,r)=>$i(e,Ql(r)),gl=(e,r)=>$i(e,Cn(r)),ft=(e,r)=>oi(e,e,Dc(r),Cl()),Ai=(e,r,s)=>oi(e,e,Dc(r),s),wd=(e,r)=>Ai(e,r,rm),zl=(e,r)=>Ai(e,r,wa),pl=(e,r,s)=>Ai(e,r,Eu(s)),ri=(e,r)=>Ai(e,r,Qc),hs=(e,r)=>Ai(e,r,Ns),uc=(e,r,s)=>Ai(e,r,Ql(s)),Bm=(e,r,s)=>Ai(e,r,Cn(s)),Sn=e=>{let r=e;return{get:()=>r,set:s=>{r=s}}},Ui=e=>{if(!ko(e))throw new Error("cases must be an array");if(e.length===0)throw new Error("there must be at least one case");const r=[],s={};return Ie(e,(l,m)=>{const g=Vt(l);if(g.length!==1)throw new Error("one and only one name per case");const h=g[0],x=l[h];if(s[h]!==void 0)throw new Error("duplicate key detected:"+h);if(h==="cata")throw new Error("cannot have a case named cata (sorry)");if(!ko(x))throw new Error("case arguments must be an array");r.push(h),s[h]=(...w)=>{const S=w.length;if(S!==x.length)throw new Error("Wrong number of arguments to case "+h+". Expected "+x.length+" ("+x+"), got "+S);return{fold:(...A)=>{if(A.length!==e.length)throw new Error("Wrong number of arguments to fold. Expected "+e.length+", got "+A.length);return A[m].apply(null,w)},match:A=>{const N=Vt(A);if(r.length!==N.length)throw new Error("Wrong number of arguments to match. Expected: "+r.join(",")+` +Actual: `+N.join(","));if(!gt(r,F=>Rt(N,F)))throw new Error("Not all branches were specified when using match. Specified: "+N.join(", ")+` +Required: `+r.join(", "));return A[h].apply(null,w)},log:A=>{}}}}),s};Ui([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);const Xi=(e,r)=>((s,l)=>({[s]:l}))(e,r),Oi=e=>(r=>{const s={};return Ie(r,l=>{s[l.key]=l.value}),s})(e),Za=e=>it(e)?e:Bo,_c=(e,r,s)=>{let l=e.dom;const m=Za(s);for(;l.parentNode;){l=l.parentNode;const g=St(l),h=r(g);if(h.isSome())return h;if(m(g))break}return R.none()},qs=(e,r,s)=>{const l=r(e),m=Za(s);return l.orThunk(()=>m(e)?R.none():_c(e,r,m))},Tu=(e,r)=>Jo(e.element,r.event.target),kd={can:Ct,abort:Bo,run:he},Pl=e=>{if(!$n(e,"can")&&!$n(e,"abort")&&!$n(e,"run"))throw new Error("EventHandler defined by: "+JSON.stringify(e,null,2)+" does not have can, abort, or run!");return{...kd,...e}},bs=me,Ws=bs("touchstart"),ed=bs("touchmove"),Hl=bs("touchend"),_d=bs("touchcancel"),ai=bs("mousedown"),z=bs("mousemove"),H=bs("mouseout"),J=bs("mouseup"),Te=bs("mouseover"),He=bs("focusin"),_o=bs("focusout"),fn=bs("keydown"),ir=bs("keyup"),Hn=bs("input"),Tn=bs("change"),fa=bs("click"),Ka=bs("transitioncancel"),Ni=bs("transitionend"),td=bs("transitionstart"),Bf=bs("selectstart"),ss=e=>me("alloy."+e),xv={tap:ss("tap")},Xd=ss("focus"),vp=ss("blur.post"),am=ss("paste.post"),Cd=ss("receive"),fl=ss("execute"),Jd=ss("focus.item"),Fm=xv.tap,ys=ss("longpress"),Sd=ss("sandbox.close"),ig=ss("typeahead.cancel"),Lm=ss("system.init"),Ff=ss("system.touchmove"),Im=ss("system.touchend"),zu=ss("system.scroll"),Au=ss("system.resize"),Rc=ss("system.attached"),sm=ss("system.detached"),Ou=ss("system.dismissRequested"),xp=ss("system.repositionRequested"),lg=ss("focusmanager.shifted"),cg=ss("slotcontainer.visibility"),wp=ss("system.external.element.scroll"),im=ss("change.tab"),Ed=ss("dismiss.tab"),dg=ss("highlight"),Pm=ss("dehighlight"),$r=(e,r)=>{Hm(e,e.element,r,{})},_n=(e,r,s)=>{Hm(e,e.element,r,s)},Qd=e=>{$r(e,fl())},kp=(e,r,s)=>{Hm(e,r,s,{})},Hm=(e,r,s,l)=>{const m={target:r,...l};e.getSystem().triggerEvent(s,r,m)},Bc=(e,r,s,l)=>{e.getSystem().triggerEvent(s,r,l.event)},qa=e=>Oi(e),Nu=(e,r)=>({key:e,value:Pl({abort:r})}),_p=e=>({key:e,value:Pl({run:(r,s)=>{s.event.prevent()}})}),Kt=(e,r)=>({key:e,value:Pl({run:r})}),lm=(e,r,s)=>({key:e,value:Pl({run:(l,m)=>{r.apply(void 0,[l,m].concat(s))}})}),ug=e=>r=>({key:e,value:Pl({run:(s,l)=>{Tu(s,l)&&r(s,l)}})}),jm=(e,r,s)=>((l,m)=>Kt(l,(g,h)=>{g.getSystem().getByUid(m).each(x=>{Bc(x,x.element,l,h)})}))(e,r.partUids[s]),Lf=(e,r)=>Kt(e,(s,l)=>{const m=l.event,g=s.getSystem().getByDom(m.target).getOrThunk(()=>qs(m.target,h=>s.getSystem().getByDom(h).toOptional(),Bo).getOr(s));r(s,g,l)}),jl=e=>Kt(e,(r,s)=>{s.cut()}),sb=e=>Kt(e,(r,s)=>{s.stop()}),Mu=(e,r)=>ug(e)(r),La=ug(Rc()),od=ug(sm()),If=ug(Lm()),Cc=(Al=fl(),e=>Kt(Al,e)),Sc=e=>e.dom.innerHTML,Ds=(e,r)=>{const s=Ne(e).dom,l=St(s.createDocumentFragment()),m=((g,h)=>{const x=(h||document).createElement("div");return x.innerHTML=g,wn(St(x))})(r,s);Ra(l,m),ei(e),ur(e,l)},Vm=(e,r)=>St(e.dom.cloneNode(r)),Fc=e=>(r=>{if(Zs(r))return"#shadow-root";{const s=(l=>Vm(l,!1))(r);return(l=>{const m=_t("div"),g=St(l.dom.cloneNode(!0));return ur(m,g),Sc(m)})(s)}})(e),eu=qa([((e,r)=>({key:e,value:Pl({can:(s,l)=>{const m=l.event,g=m.originator,h=m.target;return!((x,w,S)=>Jo(w,x.element)&&!Jo(w,S))(s,g,h)||(console.warn(Xd()+` did not get interpreted by the desired target. +Originator: `+Fc(g)+` +Target: `+Fc(h)+` +Check the `+Xd()+" event handlers"),!1)}})}))(Xd())]);var Al,$m=Object.freeze({__proto__:null,events:eu});let mg=0;const un=e=>{const r=new Date().getTime(),s=Math.floor(1e9*Math.random());return mg++,e+"_"+s+mg+String(r)},gg=me("alloy-id-"),Cp=me("data-alloy-id"),Du=gg(),Sp=Cp(),C=(e,r)=>{Object.defineProperty(e.dom,Sp,{value:r,writable:!0})},D=e=>{const r=wt(e)?e.dom[Sp]:null;return R.from(r)},G=e=>un(e),ce=Ze,Ke=e=>{const r=m=>`The component must be in a context to execute: ${m}`+(e?` +`+Fc(e().element)+" is not in context.":""),s=m=>()=>{throw new Error(r(m))},l=m=>()=>{console.warn(r(m))};return{debugInfo:me("fake"),triggerEvent:l("triggerEvent"),triggerFocus:l("triggerFocus"),triggerEscape:l("triggerEscape"),broadcast:l("broadcast"),broadcastOn:l("broadcastOn"),broadcastEvent:l("broadcastEvent"),build:s("build"),buildOrPatch:s("buildOrPatch"),addToWorld:s("addToWorld"),removeFromWorld:s("removeFromWorld"),addToGui:s("addToGui"),removeFromGui:s("removeFromGui"),getByUid:s("getByUid"),getByDom:s("getByDom"),isConnected:Bo}},Ut=Ke(),Ao=e=>dt(e,r=>cs(r,"/*")?r.substring(0,r.length-2):r),qo=(e,r)=>{const s=e.toString(),l=s.indexOf(")")+1,m=s.indexOf("("),g=s.substring(m+1,l-1).split(/,\s*/);return e.toFunctionAnnotation=()=>({name:r,parameters:Ao(g)}),e},Xn=un("alloy-premade"),pr=e=>(Object.defineProperty(e.element.dom,Xn,{value:e.uid,writable:!0}),Xi(Xn,e)),is=e=>Xt(e,Xn),Nr=e=>((r,s)=>{const l=s.toString(),m=l.indexOf(")")+1,g=l.indexOf("("),h=l.substring(g+1,m-1).split(/,\s*/);return r.toFunctionAnnotation=()=>({name:"OVERRIDE",parameters:Ao(h.slice(1))}),r})((r,...s)=>e(r.getApis(),r,...s),e),ha={init:()=>Ia({readState:me("No State required")})},Ia=e=>e,Mi=(e,r)=>{const s={};return $o(e,(l,m)=>{$o(l,(g,h)=>{const x=Xt(s,h).getOr([]);s[h]=x.concat([r(m,g)])})}),s},hi=e=>({classes:tn(e.classes)?[]:e.classes,attributes:tn(e.attributes)?{}:e.attributes,styles:tn(e.styles)?{}:e.styles}),Td=e=>e.cHandler,zd=(e,r)=>({name:e,handler:r}),cm=(e,r)=>{const s={};return Ie(e,l=>{s[l.name()]=l.handlers(r)}),s},Ru=(e,r,s)=>{const l=r[s];return l?((m,g,h,x)=>{try{const w=ge(h,(S,A)=>{const N=S[g],F=A[g],$=x.indexOf(N),W=x.indexOf(F);if($===-1)throw new Error("The ordering for "+m+" does not have an entry for "+N+`. +Order specified: `+JSON.stringify(x,null,2));if(W===-1)throw new Error("The ordering for "+m+" does not have an entry for "+F+`. +Order specified: `+JSON.stringify(x,null,2));return $(g=>({can:((w,S)=>(...A)=>zo(w,(N,F)=>N&&($=>$.can)(F).apply(void 0,A),!0))(g),abort:((w,S)=>(...A)=>zo(w,(N,F)=>N||($=>$.abort)(F).apply(void 0,A),!1))(g),run:(...w)=>{Ie(g,S=>{S.run.apply(void 0,w)})}}))(dt(m,g=>g.handler))):((m,g)=>Fr.error(["The event ("+m+`) has more than one behaviour that listens to it. +When this occurs, you must specify an event ordering for the behaviours in your spec (e.g. [ "listing", "toggling" ]). +The behaviours that can trigger it are: `+JSON.stringify(dt(g,h=>h.name),null,2)]))(s,e)},Bu=(e,r)=>((s,l)=>{const m=(h=>{const x=[],w=[];return Ie(h,S=>{S.fold(A=>{x.push(A)},A=>{w.push(A)})}),{errors:x,values:w}})(s);return m.errors.length>0?(g=m.errors,Fr.error($e(g))):((h,x)=>h.length===0?Fr.value(x):Fr.value(Da(x,Jl.apply(void 0,h))))(m.values,l);var g})(zt(e,(s,l)=>(s.length===1?Fr.value(s[0].handler):Ru(s,r,l)).map(m=>{const g=(x=>{const w=(S=>it(S)?{can:Ct,abort:Bo,run:S}:S)(x);return(S,A,...N)=>{const F=[S,A].concat(N);w.abort.apply(void 0,F)?A.stop():w.can.apply(void 0,F)&&w.run.apply(void 0,F)}})(m),h=s.length>1?Pt(r[l],x=>uo(s,w=>w.name===x)).join(" > "):s[0].name;return Xi(l,((x,w)=>({handler:x,purpose:w}))(g,h))})),{}),Ad="alloy.base.behaviour",Od=Cn([oi("dom","dom",{tag:"required",process:{}},Cn([Yt("tag"),ft("styles",{}),ft("classes",[]),ft("attributes",{}),la("value"),la("innerHtml")])),Yt("components"),Yt("uid"),ft("events",{}),ft("apis",{}),oi("eventOrder","eventOrder",(rd={[fl()]:["disabling",Ad,"toggling","typeaheadevents"],[Xd()]:[Ad,"focusing","keying"],[Lm()]:[Ad,"disabling","toggling","representing"],[Hn()]:[Ad,"representing","streaming","invalidating"],[sm()]:[Ad,"representing","item-events","tooltipping"],[ai()]:["focusing",Ad,"item-type-events"],[Ws()]:["focusing",Ad,"item-type-events"],[Te()]:["item-type-events","tooltipping"],[Cd()]:["receiving","reflecting","tooltipping"]},dc(me(rd))),Cl()),la("domModification")]),pg=e=>e.events,Fu=(e,r)=>{const s=Ma(e,r);return s===void 0||s===""?[]:s.split(" ")},nd=e=>e.dom.classList!==void 0,oa=e=>Fu(e,"class"),wr=(e,r)=>((s,l,m)=>{const g=Fu(s,l).concat([m]);return Kn(s,l,g.join(" ")),!0})(e,"class",r),hl=(e,r)=>((s,l,m)=>{const g=Pt(Fu(s,l),h=>h!==m);return g.length>0?Kn(s,l,g.join(" ")):xa(s,l),!1})(e,"class",r),Jr=(e,r)=>{nd(e)?e.dom.classList.add(r):wr(e,r)},bi=e=>{(nd(e)?e.dom.classList:oa(e)).length===0&&xa(e,"class")},rs=(e,r)=>{nd(e)?e.dom.classList.remove(r):hl(e,r),bi(e)},Di=(e,r)=>nd(e)&&e.dom.classList.contains(r),Lc=(e,r)=>{Ie(r,s=>{Jr(e,s)})},Zi=(e,r)=>{Ie(r,s=>{rs(e,s)})},bl=e=>nd(e)?(r=>{const s=r.dom.classList,l=new Array(s.length);for(let m=0;me.dom.value,Ec=(e,r)=>{if(r===void 0)throw new Error("Value.set was undefined");e.dom.value=r},Ep=(e,r,s)=>{s.fold(()=>ur(e,r),l=>{Jo(l,r)||(yt(l,r),ia(l))})},Iu=(e,r,s)=>{const l=dt(r,s),m=wn(e);return Ie(m.slice(l.length),ia),l},tu=(e,r,s,l)=>{const m=Un(e,r),g=l(s,m),h=((x,w,S)=>Un(x,w).map(A=>{if(S.exists(N=>!Jo(N,A))){const N=S.map(gr).getOr("span"),F=_t(N);return yt(A,F),F}return A}))(e,r,m);return Ep(e,g.element,h),g},dm=(e,r)=>{const s=Vt(e),l=Vt(r),m=Oe(l,s),g=((h,x)=>{const w={},S={};return zn(h,(A,N)=>!Vo(r,N)||A!==r[N],Pn(w),Pn(S)),{t:w,f:S}})(e).t;return{toRemove:m,toSet:g}},Tp=(e,r)=>{const s=r.filter(l=>gr(l)===e.tag&&!(m=>m.innerHtml.isSome()&&m.domChildren.length>0)(e)&&!(m=>Vo(m.dom,Xn))(l)).bind(l=>((m,g)=>{try{const h=((x,w)=>{const{class:S,style:A,...N}=(ue=>zo(ue.dom.attributes,(ye,we)=>(ye[we.name]=we.value,ye),{}))(w),{toSet:F,toRemove:$}=dm(x.attributes,N),W=gi(w),{toSet:se,toRemove:le}=dm(x.styles,W),fe=bl(w),te=Oe(fe,x.classes),X=Oe(x.classes,fe);return Ie($,ue=>xa(w,ue)),Os(w,F),Lc(w,X),Zi(w,te),Ie(le,ue=>Pr(w,ue)),ji(w,se),x.innerHtml.fold(()=>{const ue=x.domChildren;((ye,we)=>{Iu(ye,we,(Ye,Tt)=>{const Qt=Un(ye,Tt);return Ep(ye,Ye,Qt),Ye})})(w,ue)},ue=>{Ds(w,ue)}),(()=>{const ue=w,ye=x.value.getOrUndefined();ye!==Lu(ue)&&Ec(ue,ye??"")})(),w})(m,g);return R.some(h)}catch{return R.none()}})(e,l)).getOrThunk(()=>(l=>{const m=_t(l.tag);Os(m,l.attributes),Lc(m,l.classes),ji(m,l.styles),l.innerHtml.each(h=>Ds(m,h));const g=l.domChildren;return Ra(m,g),l.value.each(h=>{Ec(m,h)}),m})(e));return C(s,e.uid),s},fg=e=>{const r=(s=>{const l=Xt(s,"behaviours").getOr({});return ct(Vt(l),m=>{const g=l[m];return Ue(g)?[g.me]:[]})})(e);return((s,l)=>((m,g)=>{const h=dt(g,w=>gl(w.name(),[Yt("config"),ft("state",ha)])),x=ka("component.behaviours",Cn(h),m.behaviours).fold(w=>{throw new Error(El(w)+` +Complete spec: +`+JSON.stringify(m,null,2))},Ze);return{list:g,data:Zo(x,w=>{const S=w.map(A=>({config:A.config,state:A.state.init(A.config)}));return me(S)})}})(s,l))(e,r)},zp=(e,r)=>{const s=()=>F,l=Sn(Ut),m=Sl(($=>ka("custom.definition",Od,$))(e)),g=fg(e),h=($=>$.list)(g),x=($=>$.data)(g),w=(($,W,se)=>{const le={...(fe=$).dom,uid:fe.uid,domChildren:dt(fe.components,Ye=>Ye.element)};var fe;const te=(Ye=>Ye.domModification.fold(()=>hi({}),hi))($),X={"alloy.base.modification":te},ue=W.length>0?((Ye,Tt,Qt,no)=>{const oo={...Tt};Ie(Qt,jr=>{oo[jr.name()]=jr.exhibit(Ye,no)});const Uo=Mi(oo,(jr,gs)=>({name:jr,modification:gs})),pn=jr=>lo(jr,(gs,Vs)=>({...Vs.modification,...gs}),{}),Mn=lo(Uo.classes,(jr,gs)=>gs.modification.concat(jr),[]),ar=pn(Uo.attributes),dr=pn(Uo.styles);return hi({classes:Mn,attributes:ar,styles:dr})})(se,X,W,le):te;return ye=le,we=ue,{...ye,attributes:{...ye.attributes,...we.attributes},styles:{...ye.styles,...we.styles},classes:ye.classes.concat(we.classes)};var ye,we})(m,h,x),S=Tp(w,r),A=(($,W,se)=>{const le={"alloy.base.behaviour":pg($)};return((fe,te,X,ue)=>{const ye=((we,Ye,Tt)=>{const Qt={...Tt,...cm(Ye,we)};return Mi(Qt,zd)})(fe,X,ue);return Bu(ye,te)})(se,$.eventOrder,W,le).getOrDie()})(m,h,x),N=Sn(m.components),F={uid:e.uid,getSystem:l.get,config:$=>{const W=x;return(it(W[$.name()])?W[$.name()]:()=>{throw new Error("Could not find "+$.name()+" in "+JSON.stringify(e,null,2))})()},hasConfigured:$=>it(x[$.name()]),spec:e,readState:$=>x[$]().map(W=>W.state.readState()).getOr("not enabled"),getApis:()=>m.apis,connect:$=>{l.set($)},disconnect:()=>{l.set(Ke(s))},element:S,syncComponents:()=>{const $=wn(S),W=ct($,se=>l.get().getByDom(se).fold(()=>[],Fe));N.set(W)},components:N.get,events:A};return F},Ya=e=>{const r=Do(e);return ib({element:r})},ib=e=>{const r=fi("external.component",pi([Yt("element"),la("uid")]),e),s=Sn(Ke()),l=r.uid.getOrThunk(()=>G("external"));C(r.element,l);const m={uid:l,getSystem:s.get,config:R.none,hasConfigured:Bo,connect:g=>{s.set(g)},disconnect:()=>{s.set(Ke(()=>m))},getApis:()=>({}),element:r.element,spec:e,readState:me("No state"),syncComponents:he,components:me([]),events:{}};return pr(m)},Jy=G,Pf=(e,r)=>is(e).getOrThunk(()=>((s,l)=>{const{events:m,...g}=ce(s),h=((w,S)=>{const A=Xt(w,"components").getOr([]);return S.fold(()=>dt(A,yl),N=>dt(A,(F,$)=>Pf(F,Un(N,$))))})(g,l),x={...g,events:{...$m,...m},components:h};return Fr.value(zp(x,l))})((s=>Vo(s,"uid"))(e)?e:{uid:Jy(""),...e},r).getOrDie()),yl=e=>Pf(e,R.none()),Tc=pr;var rd,hg=(e,r,s,l,m)=>e(s,l)?R.some(s):it(m)&&m(s)?R.none():r(s,l,m);const lb=(e,r,s)=>{let l=e.dom;const m=it(s)?s:Bo;for(;l.parentNode;){l=l.parentNode;const g=St(l);if(r(g))return R.some(g);if(m(g))break}return R.none()},Um=(e,r,s)=>hg((l,m)=>m(l),lb,e,r,s),Hf=(e,r,s)=>Um(e,r,s).isSome(),ou=(e,r,s)=>lb(e,l=>Vr(l,r),s),um=(e,r)=>((s,l)=>to(s.dom.childNodes,m=>{return g=St(m),Vr(g,r);var g}).map(St))(e),vs=(e,r)=>((s,l)=>{const m=l===void 0?document:l.dom;return Br(m)?R.none():R.from(m.querySelector(s)).map(St)})(r,e),Vl=(e,r,s)=>hg((l,m)=>Vr(l,m),ou,e,r,s),bg="aria-controls",Ap=()=>{const e=un(bg);return{id:e,link:r=>{Kn(r,bg,e)},unlink:r=>{xa(r,bg)}}},si=(e,r)=>Hf(r,s=>Jo(s,e.element),Bo)||((s,l)=>(m=>Um(m,g=>{if(!wt(g))return!1;const h=Ma(g,"id");return h!==void 0&&h.indexOf(bg)>-1}).bind(g=>{const h=Ma(g,"id"),x=rr(g);return vs(x,`[${bg}="${h}"]`)}))(l).exists(m=>si(s,m)))(e,r);var ad;(function(e){e[e.STOP=0]="STOP",e[e.NORMAL=1]="NORMAL",e[e.LOGGING=2]="LOGGING"})(ad||(ad={}));const Op=Sn({}),cb=["alloy/data/Fields","alloy/debugging/Debugging"],Pu=(e,r,s)=>((l,m,g)=>{switch(Xt(Op.get(),l).orThunk(()=>{const h=Vt(Op.get());return Gt(h,x=>l.indexOf(x)>-1?R.some(Op.get()[x]):R.none())}).getOr(ad.NORMAL)){case ad.NORMAL:return g(e_());case ad.LOGGING:{const h=((w,S)=>{const A=[],N=new Date().getTime();return{logEventCut:(F,$,W)=>{A.push({outcome:"cut",target:$,purpose:W})},logEventStopped:(F,$,W)=>{A.push({outcome:"stopped",target:$,purpose:W})},logNoParent:(F,$,W)=>{A.push({outcome:"no-parent",target:$,purpose:W})},logEventNoHandlers:(F,$)=>{A.push({outcome:"no-handlers-left",target:$})},logEventResponse:(F,$,W)=>{A.push({outcome:"response",purpose:W,target:$})},write:()=>{const F=new Date().getTime();Rt(["mousemove","mouseover","mouseout",Lm()],w)||(F-N,S.dom,dt(A,$=>Rt(["cut","stopped","response"],$.outcome)?"{"+$.purpose+"} "+$.outcome+" at ("+Fc($.target)+")":$.outcome))}}})(l,m),x=g(h);return h.write(),x}case ad.STOP:return!0}})(e,r,s),e_=me({logEventCut:he,logEventStopped:he,logNoParent:he,logEventNoHandlers:he,logEventResponse:he,write:he}),Np=me([Yt("menu"),Yt("selectedMenu")]),Mp=me([Yt("item"),Yt("selectedItem")]);me(Cn(Mp().concat(Np())));const Qy=me(Cn(Mp())),e1=zi("initSize",[Yt("numColumns"),Yt("numRows")]),jf=()=>zi("markers",[Yt("backgroundMenu")].concat(Np()).concat(Mp())),Nd=e=>zi("markers",dt(e,Yt)),Vf=(e,r,s)=>((()=>{const l=new Error;if(l.stack!==void 0){const m=l.stack.split(` +`);to(m,g=>g.indexOf("alloy")>0&&!uo(cb,h=>g.indexOf(h)>-1)).getOr("unknown")}})(),oi(r,r,s,Ti(l=>Fr.value((...m)=>l.apply(void 0,m))))),Hr=e=>Vf(0,e,Dc(he)),Ol=e=>Vf(0,e,Dc(R.none)),nu=e=>Vf(0,e,{tag:"required",process:{}}),Dp=e=>Vf(0,e,{tag:"required",process:{}}),as=(e,r)=>ro(e,me(r)),db=e=>ro(e,Ze),t1=me(e1),Ji=(e,r,s,l,m,g,h,x=!1)=>({x:e,y:r,bubble:s,direction:l,placement:m,restriction:g,label:`${h}-${m}`,alwaysFit:x}),mm=Ui([{southeast:[]},{southwest:[]},{northeast:[]},{northwest:[]},{south:[]},{north:[]},{east:[]},{west:[]}]),ru=mm.southeast,gm=mm.southwest,Ht=mm.northeast,Rp=mm.northwest,ub=mm.south,Md=mm.north,o1=mm.east,n1=mm.west,yg=(e,r,s,l)=>{const m=e+r;return m>l?s:mMath.min(Math.max(e,r),s),sl=(e,r)=>We(["left","right","top","bottom"],s=>Xt(r,s).map(l=>((m,g)=>{switch(g){case 1:return m.x;case 0:return m.x+m.width;case 2:return m.y;case 3:return m.y+m.height}})(e,l))),pm="layout",r1=e=>e.x,a1=(e,r)=>e.x+e.width/2-r.width/2,$f=(e,r)=>e.x+e.width-r.width,mb=(e,r)=>e.y-r.height,Uf=e=>e.y+e.height,gb=(e,r)=>e.y+e.height/2-r.height/2,Qi=(e,r,s)=>Ji(r1(e),Uf(e),s.southeast(),ru(),"southeast",sl(e,{left:1,top:3}),pm),Gs=(e,r,s)=>Ji($f(e,r),Uf(e),s.southwest(),gm(),"southwest",sl(e,{right:0,top:3}),pm),vl=(e,r,s)=>Ji(r1(e),mb(e,r),s.northeast(),Ht(),"northeast",sl(e,{left:1,bottom:2}),pm),Wa=(e,r,s)=>Ji($f(e,r),mb(e,r),s.northwest(),Rp(),"northwest",sl(e,{right:0,bottom:2}),pm),Nl=(e,r,s)=>Ji(a1(e,r),mb(e,r),s.north(),Md(),"north",sl(e,{bottom:2}),pm),yi=(e,r,s)=>Ji(a1(e,r),Uf(e),s.south(),ub(),"south",sl(e,{top:3}),pm),pb=(e,r,s)=>Ji((l=>l.x+l.width)(e),gb(e,r),s.east(),o1(),"east",sl(e,{left:0}),pm),Zf=(e,r,s)=>Ji(((l,m)=>l.x-m.width)(e,r),gb(e,r),s.west(),n1(),"west",sl(e,{right:1}),pm),$l=()=>[Qi,Gs,vl,Wa,yi,Nl,pb,Zf],zc=()=>[Gs,Qi,Wa,vl,yi,Nl,pb,Zf],s1=()=>[vl,Wa,Qi,Gs,Nl,yi],Zm=()=>[Wa,vl,Gs,Qi,Nl,yi],fb=()=>[Qi,Gs,vl,Wa,yi,Nl],Bp=()=>[Gs,Qi,Wa,vl,yi,Nl];var wv=Object.freeze({__proto__:null,events:e=>qa([Kt(Cd(),(r,s)=>{const l=e.channels,m=Vt(l),g=s,h=((x,w)=>w.universal?x:Pt(x,S=>Rt(w.channels,S)))(m,g);Ie(h,x=>{const w=l[x],S=w.schema,A=fi("channel["+x+`] data +Receiver: `+Fc(r.element),S,g.data);w.onReceive(r,A)})})])}),kv=[ni("channels",Cu(Fr.value,pi([nu("onReceive"),ft("schema",Cl())])))];const qf=(e,r,s)=>If((l,m)=>{s(l,e,r)}),_v=e=>({key:e,value:void 0}),i1=(e,r,s,l,m,g,h)=>{const x=A=>$n(A,s)?A[s]():R.none(),w=Zo(m,(A,N)=>((F,$,W)=>((se,le,fe)=>{const te=fe.toString(),X=te.indexOf(")")+1,ue=te.indexOf("("),ye=te.substring(ue+1,X-1).split(/,\s*/);return se.toFunctionAnnotation=()=>({name:le,parameters:Ao(ye.slice(0,1).concat(ye.slice(3)))}),se})((se,...le)=>{const fe=[se].concat(le);return se.config({name:me(F)}).fold(()=>{throw new Error("We could not find any behaviour configuration for: "+F+". Using API: "+W)},te=>{const X=Array.prototype.slice.call(fe,1);return $.apply(void 0,[se,te.config,te.state].concat(X))})},W,$))(s,A,N)),S={...Zo(g,(A,N)=>qo(A,N)),...w,revoke:rt(_v,s),config:A=>{const N=fi(s+"-config",e,A);return{key:s,value:{config:N,me:S,configAsRaw:Ee(()=>fi(s+"-config",e,A)),initialConfig:A,state:h}}},schema:me(r),exhibit:(A,N)=>vr(x(A),Xt(l,"exhibit"),(F,$)=>$(N,F.config,F.state)).getOrThunk(()=>hi({})),name:me(s),handlers:A=>x(A).map(N=>Xt(l,"events").getOr(()=>({}))(N.config,N.state)).getOr({})};return S},Oo=e=>Oi(e),sn=pi([Yt("fields"),Yt("name"),ft("active",{}),ft("apis",{}),ft("state",ha),ft("extra",{})]),Ri=e=>{const r=fi("Creating behaviour: "+e.name,sn,e);return((s,l,m,g,h,x)=>{const w=pi(s),S=gl(l,[(A=s,$i("config",pi(A)))]);var A;return i1(w,S,l,m,g,h,x)})(r.fields,r.name,r.active,r.apis,r.extra,r.state)},Wf=pi([Yt("branchKey"),Yt("branches"),Yt("name"),ft("active",{}),ft("apis",{}),ft("state",ha),ft("extra",{})]),Fp=e=>{const r=fi("Creating behaviour: "+e.name,Wf,e);return((s,l,m,g,h,x)=>{const w=s,S=gl(l,[$i("config",s)]);return i1(w,S,l,m,g,h,x)})(Ms(r.branchKey,r.branches),r.name,r.active,r.apis,r.extra,r.state)},l1=me(void 0),tc=Ri({fields:kv,name:"receiving",active:wv});var t_=Object.freeze({__proto__:null,exhibit:(e,r)=>hi({classes:[],styles:r.useFixed()?{}:{position:"relative"}})});const sd=(e,r=!1)=>e.dom.focus({preventScroll:r}),hb=e=>e.dom.blur(),Gf=e=>{const r=rr(e).dom;return e.dom===r.activeElement},Ts=(e=Xl())=>R.from(e.dom.activeElement).map(St),gc=e=>Ts(rr(e)).filter(r=>e.dom.contains(r.dom)),Kf=(e,r)=>{const s=rr(r),l=Ts(s).bind(g=>{const h=x=>Jo(g,x);return h(r)?R.some(r):((x,w)=>{const S=A=>{for(let N=0;N{Ts(s).filter(h=>Jo(h,g)).fold(()=>{sd(g)},he)}),m},Ic=(e,r,s,l,m)=>{const g=h=>h+"px";return{position:e,left:r.map(g),top:s.map(g),right:l.map(g),bottom:m.map(g)}},c1=(e,r)=>{go(e,(s=>({...s,position:R.some(s.position)}))(r))},Yf=Ui([{none:[]},{relative:["x","y","width","height"]},{fixed:["x","y","width","height"]}]),d1=(e,r,s,l,m,g)=>{const h=r.rect,x=h.x-s,w=h.y-l,S=m-(x+h.width),A=g-(w+h.height),N=R.some(x),F=R.some(w),$=R.some(S),W=R.some(A),se=R.none();return r.direction.fold(()=>Ic(e,N,F,se,se),()=>Ic(e,se,F,$,se),()=>Ic(e,N,se,se,W),()=>Ic(e,se,se,$,W),()=>Ic(e,N,F,se,se),()=>Ic(e,N,se,se,W),()=>Ic(e,N,F,se,se),()=>Ic(e,se,F,$,se))},bb=(e,r)=>e.fold(()=>{const s=r.rect;return Ic("absolute",R.some(s.x),R.some(s.y),R.none(),R.none())},(s,l,m,g)=>d1("absolute",r,s,l,m,g),(s,l,m,g)=>d1("fixed",r,s,l,m,g)),Xf=(e,r)=>{const s=rt(Es,r),l=e.fold(s,s,()=>{const h=pa();return Es(r).translate(-h.left,-h.top)}),m=Q(r),g=ho(r);return Ba(l.left,l.top,m,g)},o_=(e,r)=>r.fold(()=>e.fold(Ua,Ua,Ba),s=>e.fold(me(s),me(s),()=>{const l=yb(e,s.x,s.y);return Ba(l.left,l.top,s.width,s.height)})),yb=(e,r,s)=>{const l=kn(r,s);return e.fold(me(l),me(l),()=>{const m=pa();return l.translate(-m.left,-m.top)})};Yf.none;const Cv=Yf.relative,n_=Yf.fixed,Jf="data-alloy-placement",Sv=e=>Ca(e,Jf),Lp=Ui([{fit:["reposition"]},{nofit:["reposition","visibleW","visibleH","isVisible"]}]),oc=(e,r,s,l)=>{const m=e.bubble,g=m.offset,h=((ue,ye,we)=>{const Ye=(Uo,pn)=>ye[Uo].map(Mn=>{const ar=Uo==="top"||Uo==="bottom",dr=ar?we.top:we.left,jr=(Uo==="left"||Uo==="top"?Math.max:Math.min)(Mn,pn)+dr;return ar?mc(jr,ue.y,ue.bottom):mc(jr,ue.x,ue.right)}).getOr(pn),Tt=Ye("left",ue.x),Qt=Ye("top",ue.y),no=Ye("right",ue.right),oo=Ye("bottom",ue.bottom);return Ba(Tt,Qt,no-Tt,oo-Qt)})(l,e.restriction,g),x=e.x+g.left,w=e.y+g.top,S=Ba(x,w,r,s),{originInBounds:A,sizeInBounds:N,visibleW:F,visibleH:$}=((ue,ye)=>{const{x:we,y:Ye,right:Tt,bottom:Qt}=ye,{x:no,y:oo,right:Uo,bottom:pn,width:Mn,height:ar}=ue;return{originInBounds:no>=we&&no<=Tt&&oo>=Ye&&oo<=Qt,sizeInBounds:Uo<=Tt&&Uo>=we&&pn<=Qt&&pn>=Ye,visibleW:Math.min(Mn,no>=we?Tt-no:Uo-we),visibleH:Math.min(ar,oo>=Ye?Qt-oo:pn-Ye)}})(S,h),W=A&&N,se=W?S:((ue,ye)=>{const{x:we,y:Ye,right:Tt,bottom:Qt}=ye,{x:no,y:oo,width:Uo,height:pn}=ue,Mn=Math.max(we,Tt-Uo),ar=Math.max(Ye,Qt-pn),dr=mc(no,we,Mn),jr=mc(oo,Ye,ar),gs=Math.min(dr+Uo,Tt)-dr,Vs=Math.min(jr+pn,Qt)-jr;return Ba(dr,jr,gs,Vs)})(S,h),le=se.width>0&&se.height>0,{maxWidth:fe,maxHeight:te}=((ue,ye,we)=>{const Ye=me(ye.bottom-we.y),Tt=me(we.bottom-ye.y),Qt=((pn,Mn,ar,dr)=>pn.fold(Mn,Mn,dr,dr,Mn,dr,ar,ar))(ue,Tt,Tt,Ye),no=me(ye.right-we.x),oo=me(we.right-ye.x);return{maxWidth:((pn,Mn,ar,dr)=>pn.fold(Mn,dr,Mn,dr,ar,ar,Mn,dr))(ue,oo,oo,no),maxHeight:Qt}})(e.direction,se,l),X={rect:se,maxHeight:te,maxWidth:fe,direction:e.direction,placement:e.placement,classes:{on:m.classesOn,off:m.classesOff},layout:e.label,testY:w};return W||e.alwaysFit?Lp.fit(X):Lp.nofit(X,F,$,le)},Hu=e=>{const r=Sn(R.none()),s=()=>r.get().each(e);return{clear:()=>{s(),r.set(R.none())},isSet:()=>r.get().isSome(),get:()=>r.get(),set:l=>{s(),r.set(R.some(l))}}},vg=()=>Hu(e=>e.unbind()),ms=()=>{const e=Hu(he);return{...e,on:r=>e.get().each(r)}},u1=Ct,Ul=(e,r,s)=>((l,m,g,h)=>ie(l,m,g,h,!1))(e,r,u1,s),Qf=(e,r,s)=>((l,m,g,h)=>ie(l,m,g,h,!0))(e,r,u1,s),Ev=Ki,xg=["top","bottom","right","left"],eh="data-alloy-transition-timer",Tv=(e,r,s,l,m,g)=>{const h=((x,w,S)=>S.exists(A=>{const N=x.mode;return N==="all"||A[N]!==w[N]}))(l,m,g);if(h||((x,w)=>((S,A)=>gt(A,N=>Di(S,N)))(x,w.classes))(e,l)){Bn(e,"position",s.position);const x=Xf(r,e),w=bb(r,{...m,rect:x}),S=We(xg,A=>w[A]);((A,N)=>{const F=$=>parseFloat($).toFixed(3);return Ft(N,($,W)=>!((se,le,fe=de)=>vr(se,le,fe).getOr(se.isNone()&&le.isNone()))(A[W].map(F),$.map(F))).isSome()})(s,S)&&(go(e,S),h&&((A,N)=>{Lc(A,N.classes),Ca(A,eh).each(F=>{clearTimeout(parseInt(F,10)),xa(A,eh)}),((F,$)=>{const W=vg(),se=vg();let le;const fe=ye=>{var we;const Ye=(we=ye.raw.pseudoElement)!==null&&we!==void 0?we:"";return Jo(ye.target,F)&&$s(Ye)&&Rt(xg,ye.raw.propertyName)},te=ye=>{if(To(ye)||fe(ye)){W.clear(),se.clear();const we=ye==null?void 0:ye.raw.type;(To(we)||we===Ni())&&(clearTimeout(le),xa(F,eh),Zi(F,$.classes))}},X=Ul(F,td(),ye=>{fe(ye)&&(X.unbind(),W.set(Ul(F,Ni(),te)),se.set(Ul(F,Ka(),te)))}),ue=(ye=>{const we=no=>{const oo=aa(ye,no).split(/\s*,\s*/);return Pt(oo,ja)},Ye=no=>{if(io(no)&&/^[\d.]+/.test(no)){const oo=parseFloat(no);return cs(no,"ms")?oo:1e3*oo}return 0},Tt=we("transition-delay"),Qt=we("transition-duration");return zo(Qt,(no,oo,Uo)=>{const pn=Ye(Tt[Uo])+Ye(oo);return Math.max(no,pn)},0)})(F);requestAnimationFrame(()=>{le=setTimeout(te,ue+17),Kn(F,eh,le)})})(A,N)})(e,l),ne(e))}else Zi(e,l.classes)},th=(e,r)=>{((s,l)=>{const m=Pe.max(s,l,["margin-top","border-top-width","padding-top","padding-bottom","border-bottom-width","margin-bottom"]);Bn(s,"max-height",m+"px")})(e,Math.floor(r))},Ip=me((e,r)=>{th(e,r),ji(e,{"overflow-x":"hidden","overflow-y":"auto"})}),wg=me((e,r)=>{th(e,r)}),vb=(e,r,s)=>e[r]===void 0?s:e[r],xb=(e,r,s,l)=>{const m=((g,h,x,w)=>{Pr(h,"max-height"),Pr(h,"max-width");const S={width:Q(A=h),height:ho(A)};var A;return((N,F,$,W,se,le)=>{const fe=W.width,te=W.height,X=(ue,ye,we,Ye,Tt)=>{const Qt=ue($,W,se,N,le),no=oc(Qt,fe,te,le);return no.fold(me(no),(oo,Uo,pn,Mn)=>(Tt===Mn?pn>Ye||Uo>we:!Tt&&Mn)?no:Lp.nofit(ye,we,Ye,Tt))};return zo(F,(ue,ye)=>{const we=rt(X,ye);return ue.fold(me(ue),we)},Lp.nofit({rect:$,maxHeight:W.height,maxWidth:W.width,direction:ru(),placement:"southeast",classes:{on:[],off:[]},layout:"none",testY:$.y},-1,-1,!1)).fold(Ze,Ze)})(h,w.preference,g,S,x,w.bounds)})(e,r,s,l);return((g,h,x)=>{const w=bb(x.origin,h);x.transition.each(S=>{Tv(g,x.origin,w,S,h,x.lastPlacement)}),c1(g,w)})(r,m,l),((g,h)=>{((x,w)=>{Kn(x,Jf,w)})(g,h.placement)})(r,m),((g,h)=>{const x=h.classes;Zi(g,x.off),Lc(g,x.on)})(r,m),((g,h,x)=>{(0,x.maxHeightFunction)(g,h.maxHeight)})(r,m,l),((g,h,x)=>{(0,x.maxWidthFunction)(g,h.maxWidth)})(r,m,l),{layout:m.layout,placement:m.placement}},kg=["valignCentre","alignLeft","alignRight","alignCentre","top","bottom","left","right","inset"],au=(e,r,s,l=1)=>{const m=e*l,g=r*l,h=w=>Xt(s,w).getOr([]),x=(w,S,A)=>{const N=Oe(kg,A);return{offset:kn(w,S),classesOn:ct(A,h),classesOff:ct(N,h)}};return{southeast:()=>x(-e,r,["top","alignLeft"]),southwest:()=>x(e,r,["top","alignRight"]),south:()=>x(-e/2,r,["top","alignCentre"]),northeast:()=>x(-e,-r,["bottom","alignLeft"]),northwest:()=>x(e,-r,["bottom","alignRight"]),north:()=>x(-e/2,-r,["bottom","alignCentre"]),east:()=>x(e,-r/2,["valignCentre","left"]),west:()=>x(-e,-r/2,["valignCentre","right"]),insetNortheast:()=>x(m,g,["top","alignLeft","inset"]),insetNorthwest:()=>x(-m,g,["top","alignRight","inset"]),insetNorth:()=>x(-m/2,g,["top","alignCentre","inset"]),insetSoutheast:()=>x(m,-g,["bottom","alignLeft","inset"]),insetSouthwest:()=>x(-m,-g,["bottom","alignRight","inset"]),insetSouth:()=>x(-m/2,-g,["bottom","alignCentre","inset"]),insetEast:()=>x(-m,-g/2,["valignCentre","right","inset"]),insetWest:()=>x(m,-g/2,["valignCentre","left","inset"])}},_g=()=>au(0,0,{}),fm=Ze,su=(e,r)=>s=>r_(s)==="rtl"?r:e,r_=e=>aa(e,"direction")==="rtl"?"rtl":"ltr";var ju;(function(e){e.TopToBottom="toptobottom",e.BottomToTop="bottomtotop"})(ju||(ju={}));const oh="data-alloy-vertical-dir",zv=e=>Hf(e,r=>wt(r)&&Ma(r,"data-alloy-vertical-dir")===ju.BottomToTop),hm=()=>gl("layouts",[Yt("onLtr"),Yt("onRtl"),la("onBottomLtr"),la("onBottomRtl")]),Cg=(e,r,s,l,m,g,h)=>{const x=h.map(zv).getOr(!1),w=r.layouts.map(F=>F.onLtr(e)),S=r.layouts.map(F=>F.onRtl(e)),A=x?r.layouts.bind(F=>F.onBottomLtr.map($=>$(e))).or(w).getOr(m):w.getOr(s),N=x?r.layouts.bind(F=>F.onBottomRtl.map($=>$(e))).or(S).getOr(g):S.getOr(l);return su(A,N)(e)};var wb=[Yt("hotspot"),la("bubble"),ft("overrides",{}),hm(),as("placement",(e,r,s)=>{const l=r.hotspot,m=Xf(s,l.element),g=Cg(e.element,r,fb(),Bp(),s1(),Zm(),R.some(r.hotspot.element));return R.some(fm({anchorBox:m,bubble:r.bubble.getOr(_g()),overrides:r.overrides,layouts:g}))})],Av=[Yt("x"),Yt("y"),ft("height",0),ft("width",0),ft("bubble",_g()),ft("overrides",{}),hm(),as("placement",(e,r,s)=>{const l=yb(s,r.x,r.y),m=Ba(l.left,l.top,r.width,r.height),g=Cg(e.element,r,$l(),zc(),$l(),zc(),R.none());return R.some(fm({anchorBox:m,bubble:r.bubble,overrides:r.overrides,layouts:g}))})];const m1=Ui([{screen:["point"]},{absolute:["point","scrollLeft","scrollTop"]}]),kb=e=>e.fold(Ze,(r,s,l)=>r.translate(-s,-l)),a_=e=>e.fold(Ze,Ze),Sg=e=>zo(e,(r,s)=>r.translate(s.left,s.top),kn(0,0)),nh=e=>{const r=dt(e,a_);return Sg(r)},g1=m1.screen,Ov=m1.absolute,qm=(e,r,s)=>{const l=Ne(e.element),m=pa(l),g=((h,x,w)=>{const S=Ho(w.root).dom;return R.from(S.frameElement).map(St).filter(A=>{const N=Ne(A),F=Ne(h.element);return Jo(N,F)}).map(Or)})(e,0,s).getOr(m);return Ov(g,m.left,m.top)},Pp=(e,r,s,l)=>{const m=g1(kn(e,r));return R.some(((g,h,x)=>({point:g,width:h,height:x}))(m,s,l))},p1=(e,r,s,l,m)=>e.map(g=>{const h=[r,g.point],x=(w=()=>nh(h),S=()=>nh(h),A=()=>(X=>{const ue=dt(X,kb);return Sg(ue)})(h),l.fold(w,S,A));var w,S,A;const N=(se=x.left,le=x.top,fe=g.width,te=g.height,{x:se,y:le,width:fe,height:te}),F=s.showAbove?s1():fb(),$=s.showAbove?Zm():Bp(),W=Cg(m,s,F,$,F,$,R.none());var se,le,fe,te;return fm({anchorBox:N,bubble:s.bubble.getOr(_g()),overrides:s.overrides,layouts:W})});var _b=[Yt("node"),Yt("root"),la("bubble"),hm(),ft("overrides",{}),ft("showAbove",!1),as("placement",(e,r,s)=>{const l=qm(e,0,r);return r.node.filter(za).bind(m=>{const g=m.dom.getBoundingClientRect(),h=Pp(g.left,g.top,g.width,g.height),x=r.node.getOr(e.element);return p1(h,l,r,s,x)})})];const Cb=(e,r,s,l)=>({start:e,soffset:r,finish:s,foffset:l}),rh=Ui([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),Nv=(rh.before,rh.on,rh.after,e=>e.fold(Ze,Ze,Ze)),iu=Ui([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),Hp={domRange:iu.domRange,relative:iu.relative,exact:iu.exact,exactFromRange:e=>iu.exact(e.start,e.soffset,e.finish,e.foffset),getWin:e=>{const r=(s=>s.match({domRange:l=>St(l.startContainer),relative:(l,m)=>Nv(l),exact:(l,m,g,h)=>l}))(e);return Ho(r)},range:Cb},Mv=(e,r,s)=>{const l=e.document.createRange();var m;return m=l,r.fold(g=>{m.setStartBefore(g.dom)},(g,h)=>{m.setStart(g.dom,h)},g=>{m.setStartAfter(g.dom)}),((g,h)=>{h.fold(x=>{g.setEndBefore(x.dom)},(x,w)=>{g.setEnd(x.dom,w)},x=>{g.setEndAfter(x.dom)})})(l,s),l},Sb=(e,r,s,l,m)=>{const g=e.document.createRange();return g.setStart(r.dom,s),g.setEnd(l.dom,m),g},f1=e=>({left:e.left,top:e.top,right:e.right,bottom:e.bottom,width:e.width,height:e.height}),Eg=Ui([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),Dv=(e,r,s)=>r(St(s.startContainer),s.startOffset,St(s.endContainer),s.endOffset),Tg=(e,r)=>((s,l)=>{const m=((g,h)=>h.match({domRange:x=>({ltr:me(x),rtl:R.none}),relative:(x,w)=>({ltr:Ee(()=>Mv(g,x,w)),rtl:Ee(()=>R.some(Mv(g,w,x)))}),exact:(x,w,S,A)=>({ltr:Ee(()=>Sb(g,x,w,S,A)),rtl:Ee(()=>R.some(Sb(g,S,A,x,w)))})}))(s,l);return((g,h)=>{const x=h.ltr();return x.collapsed?h.rtl().filter(w=>w.collapsed===!1).map(w=>Eg.rtl(St(w.endContainer),w.endOffset,St(w.startContainer),w.startOffset)).getOrThunk(()=>Dv(0,Eg.ltr,x)):Dv(0,Eg.ltr,x)})(0,m)})(e,r).match({ltr:(s,l,m,g)=>{const h=e.document.createRange();return h.setStart(s.dom,l),h.setEnd(m.dom,g),h},rtl:(s,l,m,g)=>{const h=e.document.createRange();return h.setStart(m.dom,g),h.setEnd(s.dom,l),h}});Eg.ltr,Eg.rtl;const h1=(e,r,s)=>Pt(((l,m)=>{const g=it(m)?m:Bo;let h=l.dom;const x=[];for(;h.parentNode!==null&&h.parentNode!==void 0;){const w=h.parentNode,S=St(w);if(x.push(S),g(S)===!0)break;h=w}return x})(e,s),r),Zl=(e,r)=>((s,l)=>{const m=l===void 0?document:l.dom;return Br(m)?[]:dt(m.querySelectorAll(s),St)})(r,e),Rv=e=>{if(e.rangeCount>0){const r=e.getRangeAt(0),s=e.getRangeAt(e.rangeCount-1);return R.some(Cb(St(r.startContainer),r.startOffset,St(s.endContainer),s.endOffset))}return R.none()},Bv=e=>{if(e.anchorNode===null||e.focusNode===null)return Rv(e);{const r=St(e.anchorNode),s=St(e.focusNode);return((l,m,g,h)=>{const x=((S,A,N,F)=>{const $=Ne(S).dom.createRange();return $.setStart(S.dom,A),$.setEnd(N.dom,F),$})(l,m,g,h),w=Jo(l,g)&&m===h;return x.collapsed&&!w})(r,e.anchorOffset,s,e.focusOffset)?R.some(Cb(r,e.anchorOffset,s,e.focusOffset)):Rv(e)}},b1=(e,r)=>(s=>{const l=s.getClientRects(),m=l.length>0?l[0]:s.getBoundingClientRect();return m.width>0||m.height>0?R.some(m).map(f1):R.none()})(Tg(e,r)),s_=((e,r)=>{const s=l=>e(l)?R.from(l.dom.nodeValue):R.none();return{get:l=>{if(!e(l))throw new Error("Can only get text value of a text node");return s(l).getOr("")},getOption:s,set:(l,m)=>{if(!e(l))throw new Error("Can only set raw text value of a text node");l.dom.nodeValue=m}}})(It),Eb=(e,r)=>({element:e,offset:r}),y1=(e,r)=>It(e)?Eb(e,r):((s,l)=>{const m=wn(s);if(m.length===0)return Eb(s,l);if(ls_.get(x))(g).length:wn(g).length;return Eb(g,h)}})(e,r),ah=e=>e.foffset!==void 0,sh=(e,r)=>r.getSelection.getOrThunk(()=>()=>(s=>(l=>R.from(l.getSelection()))(s).filter(l=>l.rangeCount>0).bind(Bv))(e))().map(s=>{if(ah(s)){const l=y1(s.start,s.soffset),m=y1(s.finish,s.foffset);return Hp.range(l.element,l.offset,m.element,m.offset)}return s});var Fv=[la("getSelection"),Yt("root"),la("bubble"),hm(),ft("overrides",{}),ft("showAbove",!1),as("placement",(e,r,s)=>{const l=Ho(r.root).dom,m=qm(e,0,r),g=sh(l,r).bind(x=>{if(ah(x))return((S,A)=>(N=>{const F=N.getBoundingClientRect();return F.width>0||F.height>0?R.some(F).map(f1):R.none()})(Tg(S,A)))(l,Hp.exactFromRange(x)).orThunk(()=>{const S=Do("\uFEFF");yt(x.start,S);const A=b1(l,Hp.exact(S,0,S,1));return ia(S),A}).bind(S=>Pp(S.left,S.top,S.width,S.height));{const w=Zo(x,A=>A.dom.getBoundingClientRect()),S={left:Math.min(w.firstCell.left,w.lastCell.left),right:Math.max(w.firstCell.right,w.lastCell.right),top:Math.min(w.firstCell.top,w.lastCell.top),bottom:Math.max(w.firstCell.bottom,w.lastCell.bottom)};return Pp(S.left,S.top,S.right-S.left,S.bottom-S.top)}}),h=sh(l,r).bind(x=>ah(x)?wt(x.start)?R.some(x.start):Go(x.start):R.some(x.firstCell)).getOr(e.element);return p1(g,m,r,s,h)})];const Tb="link-layout",zb=e=>e.x+e.width,v1=(e,r)=>e.x-r.width,zg=(e,r)=>e.y-r.height+e.height,Ab=e=>e.y,ih=(e,r,s)=>Ji(zb(e),Ab(e),s.southeast(),ru(),"southeast",sl(e,{left:0,top:2}),Tb),bm=(e,r,s)=>Ji(v1(e,r),Ab(e),s.southwest(),gm(),"southwest",sl(e,{right:1,top:2}),Tb),Lv=(e,r,s)=>Ji(zb(e),zg(e,r),s.northeast(),Ht(),"northeast",sl(e,{left:0,bottom:3}),Tb),x1=(e,r,s)=>Ji(v1(e,r),zg(e,r),s.northwest(),Rp(),"northwest",sl(e,{right:1,bottom:3}),Tb),lh=()=>[ih,bm,Lv,x1],Ag=()=>[bm,ih,x1,Lv];var i_=[Yt("item"),hm(),ft("overrides",{}),as("placement",(e,r,s)=>{const l=Xf(s,r.item.element),m=Cg(e.element,r,lh(),Ag(),lh(),Ag(),R.none());return R.some(fm({anchorBox:l,bubble:_g(),overrides:r.overrides,layouts:m}))})],Ob=Ms("type",{selection:Fv,node:_b,hotspot:wb,submenu:i_,makeshift:Av});const jp=[al("classes",wa),pl("mode","all",["all","layout","placement"])],Iv=[ft("useFixed",Bo),la("getBounds")],Nb=[ni("anchor",Ob),gl("transition",jp)],Mb=(e,r,s,l,m,g)=>{const h=fi("placement.info",Cn(Nb),m),x=h.anchor,w=l.element,S=s.get(l.uid);Kf(()=>{Bn(w,"position","fixed");const A=Ir(w,"visibility");Bn(w,"visibility","hidden");const N=r.useFixed()?(()=>{const F=document.documentElement;return n_(0,0,F.clientWidth,F.clientHeight)})():(F=>{const $=Or(F.element),W=F.element.dom.getBoundingClientRect();return Cv($.left,$.top,W.width,W.height)})(e);x.placement(e,x,N).each(F=>{const $=g.orThunk(()=>r.getBounds.map(gn)),W=((se,le,fe,te,X,ue)=>((ye,we,Ye,Tt,Qt,no,oo,Uo)=>{const pn=vb(oo,"maxHeightFunction",Ip()),Mn=vb(oo,"maxWidthFunction",he),ar=ye.anchorBox,dr=ye.origin,jr={bounds:o_(dr,no),origin:dr,preference:Tt,maxHeightFunction:pn,maxWidthFunction:Mn,lastPlacement:Qt,transition:Uo};return xb(ar,we,Ye,jr)})(((ye,we)=>((Ye,Tt)=>({anchorBox:Ye,origin:Tt}))(ye,we))(le.anchorBox,se),te.element,le.bubble,le.layouts,X,fe,le.overrides,ue))(N,F,$,l,S,h.transition);s.set(l.uid,W)}),A.fold(()=>{Pr(w,"visibility")},F=>{Bn(w,"visibility",F)}),Ir(w,"left").isNone()&&Ir(w,"top").isNone()&&Ir(w,"right").isNone()&&Ir(w,"bottom").isNone()&&Rr(Ir(w,"position"),"fixed")&&Pr(w,"position")},w)};var w1=Object.freeze({__proto__:null,position:(e,r,s,l,m)=>{const g=R.none();Mb(e,r,s,l,m,g)},positionWithinBounds:Mb,getMode:(e,r,s)=>r.useFixed()?"fixed":"absolute",reset:(e,r,s,l)=>{const m=l.element;Ie(["position","left","right","top","bottom"],g=>Pr(m,g)),(g=>{xa(g,Jf)})(m),s.clear(l.uid)}});const xl=Ri({fields:Iv,name:"positioning",active:t_,apis:w1,state:Object.freeze({__proto__:null,init:()=>{let e={};return Ia({readState:()=>e,clear:r=>{Ue(r)?delete e[r]:e={}},set:(r,s)=>{e[r]=s},get:r=>Xt(e,r)})}})}),ch=e=>e.getSystem().isConnected(),dh=e=>{$r(e,sm());const r=e.components();Ie(r,dh)},Dd=e=>{const r=e.components();Ie(r,Dd),$r(e,Rc())},k1=(e,r)=>{e.getSystem().addToWorld(r),za(e.element)&&Dd(r)},uh=e=>{dh(e),e.getSystem().removeFromWorld(e)},Og=(e,r)=>{ur(e.element,r.element)},ym=(e,r)=>{Db(e,r,ur)},Db=(e,r,s)=>{e.getSystem().addToWorld(r),s(e.element,r.element),za(e.element)&&Dd(r),e.syncComponents()},Rb=e=>{dh(e),ia(e.element),e.getSystem().removeFromWorld(e)},id=e=>{const r=rn(e.element).bind(s=>e.getSystem().getByDom(s).toOptional());Rb(e),r.each(s=>{s.syncComponents()})},lu=e=>{const r=e.components();Ie(r,Rb),ei(e.element),e.syncComponents()},mh=(e,r)=>{Pv(e,r,ur)},Vp=(e,r)=>{Pv(e,r,Lt)},Pv=(e,r,s)=>{s(e,r.element);const l=wn(r.element);Ie(l,m=>{r.getByDom(m).each(Dd)})},Hv=e=>{const r=wn(e.element);Ie(r,s=>{e.getByDom(s).each(dh)}),ia(e.element)},Bb=(e,r,s,l)=>{s.get().each(h=>{lu(e)});const m=r.getAttachPoint(e);ym(m,e);const g=e.getSystem().build(l);return ym(e,g),s.set(g),g},_1=(e,r,s,l)=>{const m=Bb(e,r,s,l);return r.onOpen(e,m),m},jv=(e,r,s)=>{s.get().each(l=>{lu(e),id(e),r.onClose(e,l),s.clear()})},Ng=(e,r,s)=>s.isOpen(),$p=(e,r,s)=>{const l=r.getAttachPoint(e);Bn(e.element,"position",xl.getMode(l)),((m,g,h,x)=>{Ir(m.element,g).fold(()=>{xa(m.element,h)},w=>{Kn(m.element,h,w)}),Bn(m.element,g,"hidden")})(e,"visibility",r.cloakVisibilityAttr)},vm=(e,r,s)=>{(l=>uo(["top","left","right","bottom"],m=>Ir(l,m).isSome()))(e.element)||Pr(e.element,"position"),((l,m,g)=>{Ca(l.element,g).fold(()=>Pr(l.element,m),h=>Bn(l.element,m,h))})(e,"visibility",r.cloakVisibilityAttr)};var Mg=Object.freeze({__proto__:null,cloak:$p,decloak:vm,open:_1,openWhileCloaked:(e,r,s,l,m)=>{$p(e,r),_1(e,r,s,l),m(),vm(e,r)},close:jv,isOpen:Ng,isPartOf:(e,r,s,l)=>Ng(0,0,s)&&s.get().exists(m=>r.isPartOf(e,m,l)),getState:(e,r,s)=>s.get(),setContent:(e,r,s,l)=>s.get().map(()=>Bb(e,r,s,l))}),Ac=Object.freeze({__proto__:null,events:(e,r)=>qa([Kt(Sd(),(s,l)=>{jv(s,e,r)})])}),cu=[Hr("onOpen"),Hr("onClose"),Yt("isPartOf"),Yt("getAttachPoint"),ft("cloakVisibilityAttr","data-precloak-visibility")],Rd=Object.freeze({__proto__:null,init:()=>{const e=ms(),r=me("not-implemented");return Ia({readState:r,isOpen:e.isSet,clear:e.clear,set:e.set,get:e.get})}});const Lr=Ri({fields:cu,name:"sandboxing",active:Ac,apis:Mg,state:Rd}),Bd=me("dismiss.popups"),Dg=me("reposition.popups"),C1=me("mouse.released"),Vv=pi([ft("isExtraPart",Bo),gl("fireEventInstead",[ft("event",Ou())])]),Rg=e=>{const r=fi("Dismissal",Vv,e);return{[Bd()]:{schema:pi([Yt("target")]),onReceive:(s,l)=>{Lr.isOpen(s)&&(Lr.isPartOf(s,l.target)||r.isExtraPart(s,l.target)||r.fireEventInstead.fold(()=>Lr.close(s),m=>$r(s,m.event)))}}}},Up=pi([gl("fireEventInstead",[ft("event",xp())]),ml("doReposition")]),Zp=e=>{const r=fi("Reposition",Up,e);return{[Dg()]:{onReceive:s=>{Lr.isOpen(s)&&r.fireEventInstead.fold(()=>r.doReposition(s),l=>$r(s,l.event))}}}},Fb=(e,r,s)=>{r.store.manager.onLoad(e,r,s)},xm=(e,r,s)=>{r.store.manager.onUnload(e,r,s)};var qp=Object.freeze({__proto__:null,onLoad:Fb,onUnload:xm,setValue:(e,r,s,l)=>{r.store.manager.setValue(e,r,s,l)},getValue:(e,r,s)=>r.store.manager.getValue(e,r,s),getState:(e,r,s)=>s}),Lb=Object.freeze({__proto__:null,events:(e,r)=>{const s=e.resetOnDom?[La((l,m)=>{Fb(l,e,r)}),od((l,m)=>{xm(l,e,r)})]:[qf(e,r,Fb)];return qa(s)}});const Wp=()=>{const e=Sn(null);return Ia({set:e.set,get:e.get,isNotSet:()=>e.get()===null,clear:()=>{e.set(null)},readState:()=>({mode:"memory",value:e.get()})})},Bi=()=>{const e=Sn({}),r=Sn({});return Ia({readState:()=>({mode:"dataset",dataByValue:e.get(),dataByText:r.get()}),lookup:s=>Xt(e.get(),s).orThunk(()=>Xt(r.get(),s)),update:s=>{const l=e.get(),m=r.get(),g={},h={};Ie(s,x=>{g[x.value]=x,Xt(x,"meta").each(w=>{Xt(w,"text").each(S=>{h[S]=x})})}),e.set({...l,...g}),r.set({...m,...h})},clear:()=>{e.set({}),r.set({})}})};var $v=Object.freeze({__proto__:null,memory:Wp,dataset:Bi,manual:()=>Ia({readState:he}),init:e=>e.store.manager.state(e)});const du=(e,r,s,l)=>{const m=r.store;s.update([l]),m.setValue(e,l),r.onSetValue(e,l)};var Ib=[la("initialValue"),Yt("getFallbackEntry"),Yt("getDataKey"),Yt("setValue"),as("manager",{setValue:du,getValue:(e,r,s)=>{const l=r.store,m=l.getDataKey(e);return s.lookup(m).getOrThunk(()=>l.getFallbackEntry(m))},onLoad:(e,r,s)=>{r.store.initialValue.each(l=>{du(e,r,s,l)})},onUnload:(e,r,s)=>{s.clear()},state:Bi})],Pb=[Yt("getValue"),ft("setValue",he),la("initialValue"),as("manager",{setValue:(e,r,s,l)=>{r.store.setValue(e,l),r.onSetValue(e,l)},getValue:(e,r,s)=>r.store.getValue(e),onLoad:(e,r,s)=>{r.store.initialValue.each(l=>{r.store.setValue(e,l)})},onUnload:he,state:ha.init})],Gp=[la("initialValue"),as("manager",{setValue:(e,r,s,l)=>{s.set(l),r.onSetValue(e,l)},getValue:(e,r,s)=>s.get(),onLoad:(e,r,s)=>{r.store.initialValue.each(l=>{s.isNotSet()&&s.set(l)})},onUnload:(e,r,s)=>{s.clear()},state:Wp})],Uv=[Ai("store",{mode:"memory"},Ms("mode",{memory:Gp,manual:Pb,dataset:Ib})),Hr("onSetValue"),ft("resetOnDom",!1)];const Wo=Ri({fields:Uv,name:"representing",active:Lb,apis:qp,extra:{setValueFrom:(e,r)=>{const s=Wo.getValue(r);Wo.setValue(e,s)}},state:$v}),qi=(e,r)=>Bm(e,{},dt(r,s=>{return l=s.name(),m="Cannot configure "+s.name()+" for "+e,oi(l,l,{tag:"option",process:{}},Xc(g=>Mc("The field: "+l+" is forbidden. "+m)));var l,m}).concat([ro("dump",Ze)])),Hb=e=>e.dump,Fi=(e,r)=>({...Oo(r),...e.dump}),nc=qi,Bg=Fi,S1="placeholder",gh=Ui([{single:["required","valueThunk"]},{multiple:["required","valueThunks"]}]),p=e=>Vo(e,"uiType"),b=(e,r,s,l)=>((m,g,h,x)=>p(h)&&h.uiType===S1?((w,S,A,N)=>w.exists(F=>F!==A.owner)?gh.single(!0,me(A)):Xt(N,A.name).fold(()=>{throw new Error("Unknown placeholder component: "+A.name+` +Known: [`+Vt(N)+`] +Namespace: `+w.getOr("none")+` +Spec: `+JSON.stringify(A,null,2))},F=>F.replace()))(m,0,h,x):gh.single(!1,me(h)))(e,0,s,l).fold((m,g)=>{const h=p(s)?g(r,s.config,s.validated):g(r),x=Xt(h,"components").getOr([]),w=ct(x,S=>b(e,r,S,l));return[{...h,components:w}]},(m,g)=>{if(p(s)){const h=g(r,s.config,s.validated);return s.validated.preprocess.getOr(Ze)(h)}return g(r)}),_=gh.single,T=gh.multiple,L=me(S1),I=Ui([{required:["data"]},{external:["data"]},{optional:["data"]},{group:["data"]}]),Z=ft("factory",{sketch:Ze}),Y=ft("schema",[]),ae=Yt("name"),be=oi("pname","pname",os(e=>""),Cl()),Le=ro("schema",()=>[la("preprocess")]),_e=ft("defaults",me({})),Re=ft("overrides",me({})),Xe=Cn([Z,Y,ae,be,_e,Re]),Et=Cn([Z,Y,ae,_e,Re]),vt=Cn([Z,Y,ae,be,_e,Re]),qt=Cn([Z,Le,ae,Yt("unit"),be,_e,Re]),eo=e=>e.fold(R.some,R.none,R.some,R.some),bo=e=>{const r=s=>s.name;return e.fold(r,r,r,r)},ao=(e,r)=>s=>{const l=fi("Converting part type",r,s);return e(l)},Eo=ao(I.required,Xe),Ro=ao(I.external,Et),No=ao(I.optional,vt),Ln=ao(I.group,qt),qn=me("entirety");var Qr=Object.freeze({__proto__:null,required:Eo,external:Ro,optional:No,group:Ln,asNamedPart:eo,name:bo,asCommon:e=>e.fold(Ze,Ze,Ze,Ze),original:qn});const or=(e,r,s,l)=>Da(r.defaults(e,s,l),s,{uid:e.partUids[r.name]},r.overrides(e,s,l)),Mr=(e,r)=>{const s={};return Ie(r,l=>{eo(l).each(m=>{const g=Er(e,m.pname);s[m.name]=h=>{const x=fi("Part: "+m.name+" in "+e,Cn(m.schema),h);return{...g,config:h,validated:x}}})}),s},Er=(e,r)=>({uiType:L(),owner:e,name:r}),ca=(e,r,s)=>({uiType:L(),owner:e,name:r,config:s,validated:{}}),zs=e=>ct(e,r=>r.fold(R.none,R.some,R.none,R.none).map(s=>zi(s.name,s.schema.concat([db(qn())]))).toArray()),il=e=>dt(e,bo),ii=(e,r,s)=>((l,m,g)=>{const h={},x={};return Ie(g,w=>{w.fold(S=>{h[S.pname]=_(!0,(A,N,F)=>S.factory.sketch(or(A,S,N,F)))},S=>{const A=m.parts[S.name];x[S.name]=me(S.factory.sketch(or(m,S,A[qn()]),A))},S=>{h[S.pname]=_(!1,(A,N,F)=>S.factory.sketch(or(A,S,N,F)))},S=>{h[S.pname]=T(!0,(A,N,F)=>{const $=A[S.name];return dt($,W=>S.factory.sketch(Da(S.defaults(A,W,F),W,S.overrides(A,W))))})})}),{internals:me(h),externals:me(x)}})(0,r,s),ql=(e,r,s)=>((l,m,g,h)=>{const x=Zo(h,(S,A)=>((N,F)=>{let $=!1;return{name:me(N),required:()=>F.fold((W,se)=>W,(W,se)=>W),used:()=>$,replace:()=>{if($)throw new Error("Trying to use the same placeholder more than once: "+N);return $=!0,F}}})(A,S)),w=((S,A,N,F)=>ct(N,$=>b(S,A,$,F)))(l,m,g,x);return $o(x,S=>{if(S.used()===!1&&S.required())throw new Error("Placeholder: "+S.name()+` was not found in components list +Namespace: `+l.getOr("none")+` +Components: `+JSON.stringify(m.components,null,2))}),w})(R.some(e),r,r.components,s),ua=(e,r,s)=>{const l=r.partUids[s];return e.getSystem().getByUid(l).toOptional()},li=(e,r,s)=>ua(e,r,s).getOrDie("Could not find part: "+s),Vu=(e,r,s)=>{const l={},m=r.partUids,g=e.getSystem();return Ie(s,h=>{l[h]=me(g.getByUid(m[h]))}),l},Kp=(e,r)=>{const s=e.getSystem();return Zo(r.partUids,(l,m)=>me(s.getByUid(l)))},wm=e=>Vt(e.partUids),Fg=(e,r,s)=>{const l={},m=r.partUids,g=e.getSystem();return Ie(s,h=>{l[h]=me(g.getByUid(m[h]).getOrDie())}),l},Yp=(e,r)=>{const s=il(r);return Oi(dt(s,l=>({key:l,value:e+"-"+l})))},Xp=e=>oi("partUids","partUids",dc(r=>Yp(r.uid,e)),Cl());var O3=Object.freeze({__proto__:null,generate:Mr,generateOne:ca,schemas:zs,names:il,substitutes:ii,components:ql,defaultUids:Yp,defaultUidsSchema:Xp,getAllParts:Kp,getAllPartNames:wm,getPart:ua,getPartOrDie:li,getParts:Vu,getPartsOrDie:Fg});const Zv=(e,r,s,l,m)=>{const g=((h,x)=>(h.length>0?[zi("parts",h)]:[]).concat([Yt("uid"),ft("dom",{}),ft("components",[]),db("originalSpec"),ft("debug.sketcher",{})]).concat(x))(l,m);return fi(e+" [SpecSchema]",pi(g.concat(r)),s)},Jp=(e,r,s,l,m)=>{const g=qv(m),h=zs(s),x=Xp(s),w=Zv(e,r,g,h,[x]),S=ii(0,w,s);return l(w,ql(e,w,S.internals()),g,S.externals())},qv=e=>(r=>Vo(r,"uid"))(e)?e:{...e,uid:G("uid")},N3=pi([Yt("name"),Yt("factory"),Yt("configFields"),ft("apis",{}),ft("extraApis",{})]),Qp=pi([Yt("name"),Yt("factory"),Yt("configFields"),Yt("partFields"),ft("apis",{}),ft("extraApis",{})]),Pc=e=>{const r=fi("Sketcher for "+e.name,N3,e),s=Zo(r.apis,Nr),l=Zo(r.extraApis,(m,g)=>qo(m,g));return{name:r.name,configFields:r.configFields,sketch:m=>((g,h,x,w)=>{const S=qv(w);return x(Zv(g,h,S,[],[]),S)})(r.name,r.configFields,r.factory,m),...s,...l}},Wl=e=>{const r=fi("Sketcher for "+e.name,Qp,e),s=Mr(r.name,r.partFields),l=Zo(r.apis,Nr),m=Zo(r.extraApis,(g,h)=>qo(g,h));return{name:r.name,partFields:r.partFields,configFields:r.configFields,sketch:g=>Jp(r.name,r.configFields,r.partFields,r.factory,g),parts:s,...l,...m}},Lg=e=>sr("input")(e)&&Ma(e,"type")!=="radio"||sr("textarea")(e);var M3=Object.freeze({__proto__:null,getCurrent:(e,r,s)=>r.find(e)});const Wv=[Yt("find")],Gr=Ri({fields:Wv,name:"composing",apis:M3}),Wm=["input","button","textarea","select"],Fd=(e,r,s)=>{(r.disabled()?Gv:Kv)(e,r)},el=(e,r)=>r.useNative===!0&&Rt(Wm,gr(e.element)),l_=e=>{Kn(e.element,"disabled","disabled")},D3=e=>{xa(e.element,"disabled")},c_=e=>{Kn(e.element,"aria-disabled","true")},jb=e=>{Kn(e.element,"aria-disabled","false")},Gv=(e,r,s)=>{r.disableClass.each(l=>{Jr(e.element,l)}),(el(e,r)?l_:c_)(e),r.onDisabled(e)},Kv=(e,r,s)=>{r.disableClass.each(l=>{rs(e.element,l)}),(el(e,r)?D3:jb)(e),r.onEnabled(e)},R3=(e,r)=>el(e,r)?(s=>ds(s.element,"disabled"))(e):(s=>Ma(s.element,"aria-disabled")==="true")(e);var B3=Object.freeze({__proto__:null,enable:Kv,disable:Gv,isDisabled:R3,onLoad:Fd,set:(e,r,s,l)=>{(l?Gv:Kv)(e,r)}}),F3=Object.freeze({__proto__:null,exhibit:(e,r)=>hi({classes:r.disabled()?r.disableClass.toArray():[]}),events:(e,r)=>qa([Nu(fl(),(s,l)=>R3(s,e)),qf(e,r,Fd)])}),CA=[hs("disabled",Bo),ft("useNative",!0),la("disableClass"),Hr("onDisabled"),Hr("onEnabled")];const Qn=Ri({fields:CA,name:"disabling",active:F3,apis:B3}),d_=(e,r,s,l)=>{const m=Zl(e.element,"."+r.highlightClass);Ie(m,g=>{uo(l,h=>Jo(h.element,g))||(rs(g,r.highlightClass),e.getSystem().getByDom(g).each(h=>{r.onDehighlight(e,h),$r(h,Pm())}))})},Vb=(e,r,s,l)=>{d_(e,r,0,[l]),Yv(e,r,s,l)||(Jr(l.element,r.highlightClass),r.onHighlight(e,l),$r(l,dg()))},Yv=(e,r,s,l)=>Di(l.element,r.highlightClass),u_=(e,r,s)=>vs(e.element,"."+r.itemClass).bind(l=>e.getSystem().getByDom(l).toOptional()),E1=(e,r,s)=>{const l=Zl(e.element,"."+r.itemClass);return(l.length>0?R.some(l[l.length-1]):R.none()).bind(m=>e.getSystem().getByDom(m).toOptional())},m_=(e,r,s,l)=>{const m=Zl(e.element,"."+r.itemClass);return Se(m,g=>Di(g,r.highlightClass)).bind(g=>{const h=yg(g,l,0,m.length-1);return e.getSystem().getByDom(m[h]).toOptional()})},ef=(e,r,s)=>{const l=Zl(e.element,"."+r.itemClass);return Wt(dt(l,m=>e.getSystem().getByDom(m).toOptional()))};var T1=Object.freeze({__proto__:null,dehighlightAll:(e,r,s)=>d_(e,r,0,[]),dehighlight:(e,r,s,l)=>{Yv(e,r,s,l)&&(rs(l.element,r.highlightClass),r.onDehighlight(e,l),$r(l,Pm()))},highlight:Vb,highlightFirst:(e,r,s)=>{u_(e,r).each(l=>{Vb(e,r,s,l)})},highlightLast:(e,r,s)=>{E1(e,r).each(l=>{Vb(e,r,s,l)})},highlightAt:(e,r,s,l)=>{((m,g,h,x)=>{const w=Zl(m.element,"."+g.itemClass);return R.from(w[x]).fold(()=>Fr.error(new Error("No element found with index "+x)),m.getSystem().getByDom)})(e,r,0,l).fold(m=>{throw m},m=>{Vb(e,r,s,m)})},highlightBy:(e,r,s,l)=>{const m=ef(e,r);to(m,l).each(g=>{Vb(e,r,s,g)})},isHighlighted:Yv,getHighlighted:(e,r,s)=>vs(e.element,"."+r.highlightClass).bind(l=>e.getSystem().getByDom(l).toOptional()),getFirst:u_,getLast:E1,getPrevious:(e,r,s)=>m_(e,r,0,-1),getNext:(e,r,s)=>m_(e,r,0,1),getCandidates:ef}),SA=[Yt("highlightClass"),Yt("itemClass"),Hr("onHighlight"),Hr("onDehighlight")];const ba=Ri({fields:SA,name:"highlighting",apis:T1}),L3=[8],Ig=[9],km=[13],tf=[27],Hc=[32],z1=[37],$b=[38],A1=[39],ph=[40],I3=(e,r,s)=>{const l=pe(e.slice(0,r)),m=pe(e.slice(r+1));return to(l.concat(m),s)},P3=(e,r,s)=>{const l=pe(e.slice(0,r));return to(l,s)},mn=(e,r,s)=>{const l=e.slice(0,r),m=e.slice(r+1);return to(m.concat(l),s)},fh=(e,r,s)=>{const l=e.slice(r+1);return to(l,s)},ea=e=>r=>{const s=r.raw;return Rt(e,s.which)},Ld=e=>r=>gt(e,s=>s(r)),Pg=e=>e.raw.shiftKey===!0,H3=e=>e.raw.ctrlKey===!0,Ub=Yo(Pg),na=(e,r)=>({matches:e,classification:r}),Zb=(e,r,s)=>{r.exists(l=>s.exists(m=>Jo(m,l)))||_n(e,lg(),{prevFocus:r,newFocus:s})},Xv=()=>{const e=r=>gc(r.element);return{get:e,set:(r,s)=>{const l=e(r);r.getSystem().triggerFocus(s,r.element);const m=e(r);Zb(r,l,m)}}},j3=()=>{const e=r=>ba.getHighlighted(r).map(s=>s.element);return{get:e,set:(r,s)=>{const l=e(r);r.getSystem().getByDom(s).fold(he,g=>{ba.highlight(r,g)});const m=e(r);Zb(r,l,m)}}};var qb;(function(e){e.OnFocusMode="onFocus",e.OnEnterOrSpaceMode="onEnterOrSpace",e.OnApiMode="onApi"})(qb||(qb={}));const Hg=(e,r,s,l,m)=>{const g=(x,w,S,A,N)=>{return(F=S(x,w,A,N),$=w.event,to(F,W=>W.matches($)).map(W=>W.classification)).bind(W=>W(x,w,A,N));var F,$},h={schema:()=>e.concat([ft("focusManager",Xv()),Ai("focusInside","onFocus",Ti(x=>Rt(["onFocus","onEnterOrSpace","onApi"],x)?Fr.value(x):Fr.error("Invalid value for focusInside"))),as("handler",h),as("state",r),as("sendFocusIn",m)]),processKey:g,toEvents:(x,w)=>{const S=x.focusInside!==qb.OnFocusMode?R.none():m(x).map(N=>Kt(Xd(),(F,$)=>{N(F,x,w),$.stop()})),A=[Kt(fn(),(N,F)=>{g(N,F,s,x,w).fold(()=>{(($,W)=>{const se=ea(Hc.concat(km))(W.event);x.focusInside===qb.OnEnterOrSpaceMode&&se&&Tu($,W)&&m(x).each(le=>{le($,x,w),W.stop()})})(N,F)},$=>{F.stop()})}),Kt(ir(),(N,F)=>{g(N,F,l,x,w).each($=>{F.stop()})})];return qa(S.toArray().concat(A))}};return h},Gm=e=>{const r=[la("onEscape"),la("onEnter"),ft("selector",'[data-alloy-tabstop="true"]:not(:disabled)'),ft("firstTabstop",0),ft("useTabstopAt",Ct),la("visibilitySelector")].concat([e]),s=(A,N)=>{const F=A.visibilitySelector.bind($=>Vl(N,$)).getOr(N);return Nt(F)>0},l=(A,N)=>N.focusManager.get(A).bind(F=>Vl(F,N.selector)),m=(A,N,F)=>{(($,W)=>{const se=Zl($.element,W.selector),le=Pt(se,fe=>s(W,fe));return R.from(le[W.firstTabstop])})(A,N).each($=>{N.focusManager.set(A,$)})},g=(A,N,F,$)=>{const W=Zl(A.element,F.selector);return l(A,F).bind(se=>Se(W,rt(Jo,se)).bind(le=>((fe,te,X,ue,ye)=>ye(te,X,we=>((Ye,Tt)=>s(Ye,Tt)&&Ye.useTabstopAt(Tt))(ue,we)).fold(()=>ue.cyclic?R.some(!0):R.none(),we=>(ue.focusManager.set(fe,we),R.some(!0))))(A,W,le,F,$)))},h=(A,N,F)=>{const $=F.cyclic?I3:P3;return g(A,0,F,$)},x=(A,N,F)=>{const $=F.cyclic?mn:fh;return g(A,0,F,$)},w=me([na(Ld([Pg,ea(Ig)]),h),na(ea(Ig),x),na(Ld([Ub,ea(km)]),(A,N,F)=>F.onEnter.bind($=>$(A,N)))]),S=me([na(ea(tf),(A,N,F)=>F.onEscape.bind($=>$(A,N))),na(ea(Ig),(A,N,F)=>l(A,F).filter($=>!F.useTabstopAt($)).bind($=>((W=>(se=>rn(se))(W).bind(Ar).exists(se=>Jo(se,W)))($)?h:x)(A,N,F)))]);return Hg(r,ha.init,w,S,()=>R.some(m))};var Jv=Gm(ro("cyclic",Bo)),Wb=Gm(ro("cyclic",Ct));const of=(e,r,s)=>Lg(s)&&ea(Hc)(r.event)?R.none():((l,m,g)=>(kp(l,g,fl()),R.some(!0)))(e,0,s),Gb=(e,r)=>R.some(!0),V3=[ft("execute",of),ft("useSpace",!1),ft("useEnter",!0),ft("useControlEnter",!1),ft("useDown",!1)],Qv=(e,r,s)=>s.execute(e,r,e.element);var EA=Hg(V3,ha.init,(e,r,s,l)=>{const m=s.useSpace&&!Lg(e.element)?Hc:[],g=s.useEnter?km:[],h=s.useDown?ph:[],x=m.concat(g).concat(h);return[na(ea(x),Qv)].concat(s.useControlEnter?[na(Ld([H3,ea(km)]),Qv)]:[])},(e,r,s,l)=>s.useSpace&&!Lg(e.element)?[na(ea(Hc),Gb)]:[],()=>R.none());const g_=()=>{const e=ms();return Ia({readState:()=>e.get().map(r=>({numRows:String(r.numRows),numColumns:String(r.numColumns)})).getOr({numRows:"?",numColumns:"?"}),setGridSize:(r,s)=>{e.set({numRows:r,numColumns:s})},getNumRows:()=>e.get().map(r=>r.numRows),getNumColumns:()=>e.get().map(r=>r.numColumns)})};var p_=Object.freeze({__proto__:null,flatgrid:g_,init:e=>e.state(e)});const f_=e=>(r,s,l,m)=>{const g=e(r.element);return tx(g,r,s,l,m)},h_=(e,r)=>{const s=su(e,r);return f_(s)},b_=(e,r)=>{const s=su(r,e);return f_(s)},ex=e=>(r,s,l,m)=>tx(e,r,s,l,m),tx=(e,r,s,l,m)=>l.focusManager.get(r).bind(g=>e(r.element,g,l,m)).map(g=>(l.focusManager.set(r,g),!0)),y_=ex,O1=ex,hh=ex,N1=e=>!(r=>r.offsetWidth<=0&&r.offsetHeight<=0)(e.dom),nf=(e,r,s)=>{const l=Zl(e,s);return((m,g)=>Se(m,h=>Jo(h,r)).map(h=>({index:h,candidates:m})))(Pt(l,N1))},$3=(e,r)=>Se(e,s=>Jo(r,s)),v_=(e,r,s,l)=>l(Math.floor(r/s),r%s).bind(m=>{const g=m.row*s+m.column;return g>=0&&gv_(e,r,l,(g,h)=>{const x=g===s-1?e.length-g*l:l,w=yg(h,m,0,x-1);return R.some({row:g,column:w})}),U3=(e,r,s,l,m)=>v_(e,r,l,(g,h)=>{const x=yg(g,m,0,s-1),w=x===s-1?e.length-x*l:l,S=mc(h,0,w-1);return R.some({row:x,column:S})}),w_=[Yt("selector"),ft("execute",of),Ol("onEscape"),ft("captureTab",!1),t1()],Z3=(e,r,s)=>{vs(e.element,r.selector).each(l=>{r.focusManager.set(e,l)})},M1=e=>(r,s,l,m)=>nf(r,s,l.selector).bind(g=>e(g.candidates,g.index,m.getNumRows().getOr(l.initSize.numRows),m.getNumColumns().getOr(l.initSize.numColumns))),k_=(e,r,s)=>s.captureTab?R.some(!0):R.none(),q3=M1((e,r,s,l)=>x_(e,r,s,l,-1)),__=M1((e,r,s,l)=>x_(e,r,s,l,1)),TA=M1((e,r,s,l)=>U3(e,r,s,l,-1)),C_=M1((e,r,s,l)=>U3(e,r,s,l,1)),W3=me([na(ea(z1),h_(q3,__)),na(ea(A1),b_(q3,__)),na(ea($b),y_(TA)),na(ea(ph),O1(C_)),na(Ld([Pg,ea(Ig)]),k_),na(Ld([Ub,ea(Ig)]),k_),na(ea(Hc.concat(km)),(e,r,s,l)=>((m,g)=>g.focusManager.get(m).bind(h=>Vl(h,g.selector)))(e,s).bind(m=>s.execute(e,r,m)))]),G3=me([na(ea(tf),(e,r,s)=>s.onEscape(e,r)),na(ea(Hc),Gb)]);var K3=Hg(w_,g_,W3,G3,()=>R.some(Z3));const Y3=(e,r,s,l,m)=>{const g=(h,x,w)=>m(h,x,l,0,w.length-1,w[x],S=>{return A=w[S],gr(A)==="button"&&Ma(A,"disabled")==="disabled"?g(h,S,w):R.from(w[S]);var A});return nf(e,s,r).bind(h=>{const x=h.index,w=h.candidates;return g(x,x,w)})},X3=(e,r,s,l)=>Y3(e,r,s,l,(m,g,h,x,w,S,A)=>{const N=mc(g+h,x,w);return N===m?R.from(S):A(N)}),ox=(e,r,s,l)=>Y3(e,r,s,l,(m,g,h,x,w,S,A)=>{const N=yg(g,h,x,w);return N===m?R.none():A(N)}),zA=[Yt("selector"),ft("getInitial",R.none),ft("execute",of),Ol("onEscape"),ft("executeOnMove",!1),ft("allowVertical",!0),ft("allowHorizontal",!0),ft("cycles",!0)],bh=(e,r,s)=>((l,m)=>m.focusManager.get(l).bind(g=>Vl(g,m.selector)))(e,s).bind(l=>s.execute(e,r,l)),J3=(e,r,s)=>{r.getInitial(e).orThunk(()=>vs(e.element,r.selector)).each(l=>{r.focusManager.set(e,l)})},S_=(e,r,s)=>(s.cycles?ox:X3)(e,s.selector,r,-1),nx=(e,r,s)=>(s.cycles?ox:X3)(e,s.selector,r,1),E_=e=>(r,s,l,m)=>e(r,s,l,m).bind(()=>l.executeOnMove?bh(r,s,l):R.some(!0)),AA=me([na(ea(Hc),Gb),na(ea(tf),(e,r,s)=>s.onEscape(e,r))]);var Q3=Hg(zA,ha.init,(e,r,s,l)=>{const m=[...s.allowHorizontal?z1:[]].concat(s.allowVertical?$b:[]),g=[...s.allowHorizontal?A1:[]].concat(s.allowVertical?ph:[]);return[na(ea(m),E_(h_(S_,nx))),na(ea(g),E_(b_(S_,nx))),na(ea(km),bh),na(ea(Hc),bh)]},AA,()=>R.some(J3));const D1=(e,r,s)=>R.from(e[r]).bind(l=>R.from(l[s]).map(m=>({rowIndex:r,columnIndex:s,cell:m}))),e4=(e,r,s,l)=>{const m=e[r].length,g=yg(s,l,0,m-1);return D1(e,r,g)},t4=(e,r,s,l)=>{const m=yg(s,l,0,e.length-1),g=e[m].length,h=mc(r,0,g-1);return D1(e,m,h)},rx=(e,r,s,l)=>{const m=e[r].length,g=mc(s+l,0,m-1);return D1(e,r,g)},ax=(e,r,s,l)=>{const m=mc(s+l,0,e.length-1),g=e[m].length,h=mc(r,0,g-1);return D1(e,m,h)},o4=[zi("selectors",[Yt("row"),Yt("cell")]),ft("cycles",!0),ft("previousSelector",R.none),ft("execute",of)],uu=(e,r,s)=>{r.previousSelector(e).orThunk(()=>{const l=r.selectors;return vs(e.element,l.cell)}).each(l=>{r.focusManager.set(e,l)})},jg=(e,r)=>(s,l,m)=>{const g=m.cycles?e:r;return Vl(l,m.selectors.row).bind(h=>{const x=Zl(h,m.selectors.cell);return $3(x,l).bind(w=>{const S=Zl(s,m.selectors.row);return $3(S,h).bind(A=>{const N=((F,$)=>dt(F,W=>Zl(W,$.selectors.cell)))(S,m);return g(N,A,w).map(F=>F.cell)})})})},sx=jg((e,r,s)=>e4(e,r,s,-1),(e,r,s)=>rx(e,r,s,-1)),ix=jg((e,r,s)=>e4(e,r,s,1),(e,r,s)=>rx(e,r,s,1)),lx=jg((e,r,s)=>t4(e,s,r,-1),(e,r,s)=>ax(e,s,r,-1)),T_=jg((e,r,s)=>t4(e,s,r,1),(e,r,s)=>ax(e,s,r,1)),OA=me([na(ea(z1),h_(sx,ix)),na(ea(A1),b_(sx,ix)),na(ea($b),y_(lx)),na(ea(ph),O1(T_)),na(ea(Hc.concat(km)),(e,r,s)=>gc(e.element).bind(l=>s.execute(e,r,l)))]),NA=me([na(ea(Hc),Gb)]);var n4=Hg(o4,ha.init,OA,NA,()=>R.some(uu));const z_=[Yt("selector"),ft("execute",of),ft("moveOnTab",!1)],rf=(e,r,s)=>s.focusManager.get(e).bind(l=>s.execute(e,r,l)),r4=(e,r,s)=>{vs(e.element,r.selector).each(l=>{r.focusManager.set(e,l)})},cx=(e,r,s)=>ox(e,s.selector,r,-1),A_=(e,r,s)=>ox(e,s.selector,r,1),a4=me([na(ea($b),hh(cx)),na(ea(ph),hh(A_)),na(Ld([Pg,ea(Ig)]),(e,r,s,l)=>s.moveOnTab?hh(cx)(e,r,s,l):R.none()),na(Ld([Ub,ea(Ig)]),(e,r,s,l)=>s.moveOnTab?hh(A_)(e,r,s,l):R.none()),na(ea(km),rf),na(ea(Hc),rf)]),s4=me([na(ea(Hc),Gb)]);var i4=Hg(z_,ha.init,a4,s4,()=>R.some(r4));const l4=[Ol("onSpace"),Ol("onEnter"),Ol("onShiftEnter"),Ol("onLeft"),Ol("onRight"),Ol("onTab"),Ol("onShiftTab"),Ol("onUp"),Ol("onDown"),Ol("onEscape"),ft("stopSpaceKeyup",!1),la("focusIn")];var O_=Hg(l4,ha.init,(e,r,s)=>[na(ea(Hc),s.onSpace),na(Ld([Ub,ea(km)]),s.onEnter),na(Ld([Pg,ea(km)]),s.onShiftEnter),na(Ld([Pg,ea(Ig)]),s.onShiftTab),na(Ld([Ub,ea(Ig)]),s.onTab),na(ea($b),s.onUp),na(ea(ph),s.onDown),na(ea(z1),s.onLeft),na(ea(A1),s.onRight),na(ea(Hc),s.onSpace)],(e,r,s)=>[...s.stopSpaceKeyup?[na(ea(Hc),Gb)]:[],na(ea(tf),s.onEscape)],e=>e.focusIn);const MA=Jv.schema(),c4=Wb.schema(),d4=Q3.schema(),DA=K3.schema(),u4=n4.schema(),RA=EA.schema(),dx=i4.schema(),BA=O_.schema(),Dn=Fp({branchKey:"mode",branches:Object.freeze({__proto__:null,acyclic:MA,cyclic:c4,flow:d4,flatgrid:DA,matrix:u4,execution:RA,menu:dx,special:BA}),name:"keying",active:{events:(e,r)=>e.handler.toEvents(e,r)},apis:{focusIn:(e,r,s)=>{r.sendFocusIn(r).fold(()=>{e.getSystem().triggerFocus(e.element,e.element)},l=>{l(e,r,s)})},setGridSize:(e,r,s,l,m)=>{(g=>$n(g,"setGridSize"))(s)?s.setGridSize(l,m):console.error("Layout does not support setGridSize")}},state:p_}),pc=(e,r)=>{Kf(()=>{((s,l,m)=>{const g=s.components();(w=>{Ie(w.components(),S=>ia(S.element)),ei(w.element),w.syncComponents()})(s);const h=m(l),x=Oe(g,h);Ie(x,w=>{dh(w),s.getSystem().removeFromWorld(w)}),Ie(h,w=>{ch(w)?Og(s,w):(s.getSystem().addToWorld(w),Og(s,w),za(s.element)&&Dd(w))}),s.syncComponents()})(e,r,()=>dt(r,e.getSystem().build))},e.element)},m4=(e,r)=>{Kf(()=>{((s,l,m)=>{const g=s.components(),h=ct(l,S=>is(S).toArray());Ie(g,S=>{Rt(h,S)||uh(S)});const x=((S,A,N)=>Iu(S,A,(F,$)=>tu(S,$,F,N)))(e.element,r,e.getSystem().buildOrPatch),w=Oe(g,x);Ie(w,S=>{ch(S)&&uh(S)}),Ie(x,S=>{ch(S)||k1(s,S)}),s.syncComponents()})(e,r)},e.element)},g4=(e,r,s,l)=>{uh(r);const m=tu(e.element,s,l,e.getSystem().buildOrPatch);k1(e,m),e.syncComponents()},ux=(e,r,s)=>{const l=e.getSystem().build(s);Db(e,l,r)},p4=(e,r,s,l)=>{id(r),ux(e,(m,g)=>((h,x,w)=>{Un(h,w).fold(()=>{ur(h,x)},S=>{yt(S,x)})})(m,g,s),l)},R1=(e,r)=>e.components(),f4=(e,r,s,l,m)=>{const g=R1(e);return R.from(g[l]).map(h=>(m.fold(()=>id(h),x=>{(r.reuseDom?g4:p4)(e,h,l,x)}),h))};var FA=Object.freeze({__proto__:null,append:(e,r,s,l)=>{ux(e,ur,l)},prepend:(e,r,s,l)=>{ux(e,yn,l)},remove:(e,r,s,l)=>{const m=R1(e);to(m,h=>Jo(l.element,h.element)).each(id)},replaceAt:f4,replaceBy:(e,r,s,l,m)=>{const g=R1(e);return Se(g,l).bind(h=>f4(e,r,0,h,m))},set:(e,r,s,l)=>(r.reuseDom?m4:pc)(e,l),contents:R1});const fr=Ri({fields:[ri("reuseDom",!0)],name:"replacing",apis:FA}),Tr=(e,r)=>{const s=((l,m)=>{const g=qa(m);return Ri({fields:[Yt("enabled")],name:l,active:{events:me(g)}})})(e,r);return{key:e,value:{config:{},me:s,configAsRaw:me({}),initialConfig:{},state:ha}}},N_=(e,r)=>{r.ignore||(sd(e.element),r.onFocus(e))};var LA=Object.freeze({__proto__:null,focus:N_,blur:(e,r)=>{r.ignore||hb(e.element)},isFocused:e=>Gf(e.element)}),IA=Object.freeze({__proto__:null,exhibit:(e,r)=>{const s=r.ignore?{}:{attributes:{tabindex:"-1"}};return hi(s)},events:e=>qa([Kt(Xd(),(r,s)=>{N_(r,e),s.stop()})].concat(e.stopMousedown?[Kt(ai(),(r,s)=>{s.event.prevent()})]:[]))}),h4=[Hr("onFocus"),ft("stopMousedown",!1),ft("ignore",!1)];const er=Ri({fields:h4,name:"focusing",active:IA,apis:LA}),Kb=(e,r,s,l)=>{const m=s.get();s.set(l),((g,h,x)=>{h.toggleClass.each(w=>{x.get()?Jr(g.element,w):rs(g.element,w)})})(e,r,s),((g,h,x)=>{const w=h.aria;w.update(g,w,x.get())})(e,r,s),m!==l&&r.onToggled(e,l)},b4=(e,r,s)=>{Kb(e,r,s,!s.get())},M_=(e,r,s)=>{Kb(e,r,s,r.selected)};var y4=Object.freeze({__proto__:null,onLoad:M_,toggle:b4,isOn:(e,r,s)=>s.get(),on:(e,r,s)=>{Kb(e,r,s,!0)},off:(e,r,s)=>{Kb(e,r,s,!1)},set:Kb}),af=Object.freeze({__proto__:null,exhibit:()=>hi({}),events:(e,r)=>{const s=(l=e,m=r,g=b4,Cc(x=>{g(x,l,m)}));var l,m,g;const h=qf(e,r,M_);return qa($e([e.toggleOnExecute?[s]:[],[h]]))}});const D_=(e,r,s)=>{Kn(e.element,"aria-expanded",s)};var v4=[ft("selected",!1),la("toggleClass"),ft("toggleOnExecute",!0),Hr("onToggled"),Ai("aria",{mode:"none"},Ms("mode",{pressed:[ft("syncWithExpanded",!1),as("update",(e,r,s)=>{Kn(e.element,"aria-pressed",s),r.syncWithExpanded&&D_(e,0,s)})],checked:[as("update",(e,r,s)=>{Kn(e.element,"aria-checked",s)})],expanded:[as("update",D_)],selected:[as("update",(e,r,s)=>{Kn(e.element,"aria-selected",s)})],none:[as("update",he)]}))];const Dr=Ri({fields:v4,name:"toggling",active:af,apis:y4,state:{init:()=>{const e=Sn(!1);return{get:()=>e.get(),set:r=>e.set(r),clear:()=>e.set(!1),readState:()=>e.get()}}}}),x4=()=>{const e=(r,s)=>{s.stop(),Qd(r)};return[Kt(fa(),e),Kt(Fm(),e),jl(Ws()),jl(ai())]},B1=e=>qa($e([e.map(r=>Cc((s,l)=>{r(s),l.stop()})).toArray(),x4()])),mx="alloy.item-hover",gx="alloy.item-focus",w4="alloy.item-toggled",Vg=e=>{(gc(e.element).isNone()||er.isFocused(e))&&(er.isFocused(e)||er.focus(e),_n(e,mx,{item:e}))},R_=e=>{_n(e,gx,{item:e})},B_=me(mx),PA=me(gx),HA=me(w4),F1=e=>e.toggling.map(r=>r.exclusive?"menuitemradio":"menuitemcheckbox").getOr("menuitem"),L1=[Yt("data"),Yt("components"),Yt("dom"),ft("hasSubmenu",!1),la("toggling"),nc("itemBehaviours",[Dr,er,Dn,Wo]),ft("ignoreFocus",!1),ft("domModification",{}),as("builder",e=>({dom:e.dom,domModification:{...e.domModification,attributes:{role:F1(e),...e.domModification.attributes,"aria-haspopup":e.hasSubmenu,...e.hasSubmenu?{"aria-expanded":!1}:{}}},behaviours:Bg(e.itemBehaviours,[e.toggling.fold(Dr.revoke,r=>Dr.config((s=>({aria:{mode:"checked"},...ut(s,(l,m)=>m!=="exclusive"),onToggled:(l,m)=>{it(s.onToggled)&&s.onToggled(l,m),((g,h)=>{_n(g,w4,{item:g,state:h})})(l,m)}}))(r))),er.config({ignore:e.ignoreFocus,stopMousedown:e.ignoreFocus,onFocus:r=>{R_(r)}}),Dn.config({mode:"execution"}),Wo.config({store:{mode:"memory",initialValue:e.data}}),Tr("item-type-events",[...x4(),Kt(Te(),Vg),Kt(Jd(),er.focus)])]),components:e.components,eventOrder:e.eventOrder})),ft("eventOrder",{})],k4=[Yt("dom"),Yt("components"),as("builder",e=>({dom:e.dom,components:e.components,events:qa([sb(Jd())])}))],px=me("item-widget"),Km=me([Eo({name:"widget",overrides:e=>({behaviours:Oo([Wo.config({store:{mode:"manual",getValue:r=>e.data,setValue:he}})])})})]),sf=[Yt("uid"),Yt("data"),Yt("components"),Yt("dom"),ft("autofocus",!1),ft("ignoreFocus",!1),nc("widgetBehaviours",[Wo,er,Dn]),ft("domModification",{}),Xp(Km()),as("builder",e=>{const r=ii(px(),e,Km()),s=ql(px(),e,r.internals()),l=g=>ua(g,e,"widget").map(h=>(Dn.focusIn(h),h)),m=(g,h)=>(Lg(h.event.target)||e.autofocus&&h.setSource(g.element),R.none());return{dom:e.dom,components:s,domModification:e.domModification,events:qa([Cc((g,h)=>{l(g).each(x=>{h.stop()})}),Kt(Te(),Vg),Kt(Jd(),(g,h)=>{e.autofocus?l(g):er.focus(g)})]),behaviours:Bg(e.widgetBehaviours,[Wo.config({store:{mode:"memory",initialValue:e.data}}),er.config({ignore:e.ignoreFocus,onFocus:g=>{R_(g)}}),Dn.config({mode:"special",focusIn:e.autofocus?g=>{l(g)}:l1(),onLeft:m,onRight:m,onEscape:(g,h)=>er.isFocused(g)||e.autofocus?(e.autofocus&&h.setSource(g.element),R.none()):(er.focus(g),R.some(!0))})])}})],_4=Ms("type",{widget:sf,item:L1,separator:k4}),$g=me([Ln({factory:{sketch:e=>{const r=fi("menu.spec item",_4,e);return r.builder(r)}},name:"items",unit:"item",defaults:(e,r)=>Vo(r,"uid")?r:{...r,uid:G("item")},overrides:(e,r)=>({type:r.type,ignoreFocus:e.fakeFocus,domModification:{classes:[e.markers.item]}})})]),F_=me([Yt("value"),Yt("items"),Yt("dom"),Yt("components"),ft("eventOrder",{}),qi("menuBehaviours",[ba,Wo,Gr,Dn]),Ai("movement",{mode:"menu",moveOnTab:!0},Ms("mode",{grid:[t1(),as("config",(e,r)=>({mode:"flatgrid",selector:"."+e.markers.item,initSize:{numColumns:r.initSize.numColumns,numRows:r.initSize.numRows},focusManager:e.focusManager}))],matrix:[as("config",(e,r)=>({mode:"matrix",selectors:{row:r.rowSelector,cell:"."+e.markers.item},previousSelector:r.previousSelector,focusManager:e.focusManager})),Yt("rowSelector"),ft("previousSelector",R.none)],menu:[ft("moveOnTab",!0),as("config",(e,r)=>({mode:"menu",selector:"."+e.markers.item,moveOnTab:r.moveOnTab,focusManager:e.focusManager}))]})),ni("markers",Qy()),ft("fakeFocus",!1),ft("focusManager",Xv()),Hr("onHighlight"),Hr("onDehighlight")]),L_=me("alloy.menu-focus"),lf=Wl({name:"Menu",configFields:F_(),partFields:$g(),factory:(e,r,s,l)=>({uid:e.uid,dom:e.dom,markers:e.markers,behaviours:Fi(e.menuBehaviours,[ba.config({highlightClass:e.markers.selectedItem,itemClass:e.markers.item,onHighlight:e.onHighlight,onDehighlight:e.onDehighlight}),Wo.config({store:{mode:"memory",initialValue:e.value}}),Gr.config({find:R.some}),Dn.config(e.movement.config(e,e.movement))]),events:qa([Kt(PA(),(m,g)=>{const h=g.event;m.getSystem().getByDom(h.target).each(x=>{ba.highlight(m,x),g.stop(),_n(m,L_(),{menu:m,item:x})})}),Kt(B_(),(m,g)=>{const h=g.event.item;ba.highlight(m,h)}),Kt(HA(),(m,g)=>{const{item:h,state:x}=g.event;x&&Ma(h.element,"role")==="menuitemradio"&&((w,S)=>{const A=Zl(w.element,'[role="menuitemradio"][aria-checked="true"]');Ie(A,N=>{Jo(N,S.element)||w.getSystem().getByDom(N).each(F=>{Dr.off(F)})})})(m,h)})]),components:r,eventOrder:e.eventOrder,domModification:{attributes:{role:"menu"}}})}),I_=(e,r,s,l)=>Xt(s,l).bind(m=>Xt(e,m).bind(g=>{const h=I_(e,r,s,g);return R.some([g].concat(h))})).getOr([]),fx=e=>e.type==="prepared"?R.some(e.menu):R.none(),C4=()=>{const e=Sn({}),r=Sn({}),s=Sn({}),l=ms(),m=Sn({}),g=w=>h(w).bind(fx),h=w=>Xt(r.get(),w),x=w=>Xt(e.get(),w);return{setMenuBuilt:(w,S)=>{r.set({...r.get(),[w]:{type:"prepared",menu:S}})},setContents:(w,S,A,N)=>{l.set(w),e.set(A),r.set(S),m.set(N);const F=(($,W)=>{const se={};$o($,(X,ue)=>{Ie(X,ye=>{se[ye]=ue})});const le=W,fe=Gn(W,(X,ue)=>({k:X,v:ue})),te=Zo(fe,(X,ue)=>[ue].concat(I_(se,le,fe,ue)));return Zo(se,X=>Xt(te,X).getOr([X]))})(N,A);s.set(F)},expand:w=>Xt(e.get(),w).map(S=>{const A=Xt(s.get(),w).getOr([]);return[S].concat(A)}),refresh:w=>Xt(s.get(),w),collapse:w=>Xt(s.get(),w).bind(S=>S.length>1?R.some(S.slice(1)):R.none()),lookupMenu:h,lookupItem:x,otherMenus:w=>{const S=m.get();return Oe(Vt(S),w)},getPrimary:()=>l.get().bind(g),getMenus:()=>r.get(),clear:()=>{e.set({}),r.set({}),s.set({}),l.clear()},isClear:()=>l.get().isNone(),getTriggeringPath:(w,S)=>{const A=Pt(x(w).toArray(),N=>g(N).isSome());return Xt(s.get(),w).bind(N=>{const F=pe(A.concat(N));return($=>{const W=[];for(let se=0;se<$.length;se++){const le=$[se];if(!le.isSome())return R.none();W.push(le.getOrDie())}return R.some(W)})(ct(F,($,W)=>((se,le,fe)=>g(se).bind(te=>(X=>Ft(e.get(),(ue,ye)=>ue===X))(se).bind(X=>le(X).map(ue=>({triggeredMenu:te,triggeringItem:ue,triggeringPath:fe})))))($,S,F.slice(0,W+1)).fold(()=>Rr(l.get(),$)?[]:[R.none()],se=>[R.some(se)])))})}}},jA=fx,S4=un("tiered-menu-item-highlight"),E4=un("tiered-menu-item-dehighlight");var Gl;(function(e){e[e.HighlightMenuAndItem=0]="HighlightMenuAndItem",e[e.HighlightJustMenu=1]="HighlightJustMenu",e[e.HighlightNone=2]="HighlightNone"})(Gl||(Gl={}));const P_=me("collapse-item"),Ug=Pc({name:"TieredMenu",configFields:[Dp("onExecute"),Dp("onEscape"),nu("onOpenMenu"),nu("onOpenSubmenu"),Hr("onRepositionMenu"),Hr("onCollapseMenu"),ft("highlightOnOpen",Gl.HighlightMenuAndItem),zi("data",[Yt("primary"),Yt("menus"),Yt("expansions")]),ft("fakeFocus",!1),Hr("onHighlightItem"),Hr("onDehighlightItem"),Hr("onHover"),jf(),Yt("dom"),ft("navigateOnHover",!0),ft("stayInDom",!1),qi("tmenuBehaviours",[Dn,ba,Gr,fr]),ft("eventOrder",{})],apis:{collapseMenu:(e,r)=>{e.collapseMenu(r)},highlightPrimary:(e,r)=>{e.highlightPrimary(r)},repositionMenus:(e,r)=>{e.repositionMenus(r)}},factory:(e,r)=>{const s=ms(),l=C4(),m=X=>Wo.getValue(X).value,g=X=>Zo(e.data.menus,(ue,ye)=>ct(ue.items,we=>we.type==="separator"?[]:[we.data.value])),h=ba.highlight,x=(X,ue)=>{h(X,ue),ba.getHighlighted(ue).orThunk(()=>ba.getFirst(ue)).each(ye=>{e.fakeFocus?ba.highlight(ue,ye):kp(X,ye.element,Jd())})},w=(X,ue)=>Wt(dt(ue,ye=>X.lookupMenu(ye).bind(we=>we.type==="prepared"?R.some(we.menu):R.none()))),S=(X,ue,ye)=>{const we=w(ue,ue.otherMenus(ye));Ie(we,Ye=>{Zi(Ye.element,[e.markers.backgroundMenu]),e.stayInDom||fr.remove(X,Ye)})},A=(X,ue)=>{const ye=(we=>s.get().getOrThunk(()=>{const Ye={},Tt=Zl(we.element,`.${e.markers.item}`),Qt=Pt(Tt,no=>Ma(no,"aria-haspopup")==="true");return Ie(Qt,no=>{we.getSystem().getByDom(no).each(oo=>{const Uo=m(oo);Ye[Uo]=oo})}),s.set(Ye),Ye}))(X);$o(ye,(we,Ye)=>{const Tt=Rt(ue,Ye);Kn(we.element,"aria-expanded",Tt)})},N=(X,ue,ye)=>R.from(ye[0]).bind(we=>ue.lookupMenu(we).bind(Ye=>{if(Ye.type==="notbuilt")return R.none();{const Tt=Ye.menu,Qt=w(ue,ye.slice(1));return Ie(Qt,no=>{Jr(no.element,e.markers.backgroundMenu)}),za(Tt.element)||fr.append(X,Tc(Tt)),Zi(Tt.element,[e.markers.backgroundMenu]),x(X,Tt),S(X,ue,ye),R.some(Tt)}}));let F;(function(X){X[X.HighlightSubmenu=0]="HighlightSubmenu",X[X.HighlightParent=1]="HighlightParent"})(F||(F={}));const $=(X,ue,ye=F.HighlightSubmenu)=>{if(ue.hasConfigured(Qn)&&Qn.isDisabled(ue))return R.some(ue);{const we=m(ue);return l.expand(we).bind(Ye=>(A(X,Ye),R.from(Ye[0]).bind(Tt=>l.lookupMenu(Tt).bind(Qt=>{const no=((oo,Uo,pn)=>{if(pn.type==="notbuilt"){const Mn=oo.getSystem().build(pn.nbMenu());return l.setMenuBuilt(Uo,Mn),Mn}return pn.menu})(X,Tt,Qt);return za(no.element)||fr.append(X,Tc(no)),e.onOpenSubmenu(X,ue,no,pe(Ye)),ye===F.HighlightSubmenu?(ba.highlightFirst(no),N(X,l,Ye)):(ba.dehighlightAll(no),R.some(ue))}))))}},W=(X,ue)=>{const ye=m(ue);return l.collapse(ye).bind(we=>(A(X,we),N(X,l,we).map(Ye=>(e.onCollapseMenu(X,ue,Ye),Ye))))},se=X=>(ue,ye)=>Vl(ye.getSource(),`.${e.markers.item}`).bind(we=>ue.getSystem().getByDom(we).toOptional().bind(Ye=>X(ue,Ye).map(Ct))),le=qa([Kt(L_(),(X,ue)=>{const ye=ue.event.item;l.lookupItem(m(ye)).each(()=>{const we=ue.event.menu;ba.highlight(X,we);const Ye=m(ue.event.item);l.refresh(Ye).each(Tt=>S(X,l,Tt))})}),Cc((X,ue)=>{const ye=ue.event.target;X.getSystem().getByDom(ye).each(we=>{m(we).indexOf("collapse-item")===0&&W(X,we),$(X,we,F.HighlightSubmenu).fold(()=>{e.onExecute(X,we)},he)})}),La((X,ue)=>{(ye=>{const we=((Tt,Qt,no)=>Zo(no,(oo,Uo)=>{const pn=()=>lf.sketch({...oo,value:Uo,markers:e.markers,fakeFocus:e.fakeFocus,onHighlight:(Mn,ar)=>{_n(Mn,S4,{menuComp:Mn,itemComp:ar})},onDehighlight:(Mn,ar)=>{_n(Mn,E4,{menuComp:Mn,itemComp:ar})},focusManager:e.fakeFocus?j3():Xv()});return Uo===Qt?{type:"prepared",menu:Tt.getSystem().build(pn())}:{type:"notbuilt",nbMenu:pn}}))(ye,e.data.primary,e.data.menus),Ye=g();return l.setContents(e.data.primary,we,e.data.expansions,Ye),l.getPrimary()})(X).each(ye=>{fr.append(X,Tc(ye)),e.onOpenMenu(X,ye),e.highlightOnOpen===Gl.HighlightMenuAndItem?x(X,ye):e.highlightOnOpen===Gl.HighlightJustMenu&&h(X,ye)})}),Kt(S4,(X,ue)=>{e.onHighlightItem(X,ue.event.menuComp,ue.event.itemComp)}),Kt(E4,(X,ue)=>{e.onDehighlightItem(X,ue.event.menuComp,ue.event.itemComp)}),...e.navigateOnHover?[Kt(B_(),(X,ue)=>{const ye=ue.event.item;((we,Ye)=>{const Tt=m(Ye);l.refresh(Tt).bind(Qt=>(A(we,Qt),N(we,l,Qt)))})(X,ye),$(X,ye,F.HighlightParent),e.onHover(X,ye)})]:[]]),fe=X=>ba.getHighlighted(X).bind(ba.getHighlighted),te={collapseMenu:X=>{fe(X).each(ue=>{W(X,ue)})},highlightPrimary:X=>{l.getPrimary().each(ue=>{x(X,ue)})},repositionMenus:X=>{l.getPrimary().bind(ye=>fe(X).bind(we=>{const Ye=m(we),Tt=vo(l.getMenus()),Qt=Wt(dt(Tt,jA));return l.getTriggeringPath(Ye,no=>((oo,Uo,pn)=>Gt(Uo,Mn=>{if(!Mn.getSystem().isConnected())return R.none();const ar=ba.getCandidates(Mn);return to(ar,dr=>m(dr)===pn)}))(0,Qt,no))}).map(we=>({primary:ye,triggeringPath:we}))).fold(()=>{(ye=>R.from(ye.components()[0]).filter(we=>Ma(we.element,"role")==="menu"))(X).each(ye=>{e.onRepositionMenu(X,ye,[])})},({primary:ye,triggeringPath:we})=>{e.onRepositionMenu(X,ye,we)})}};return{uid:e.uid,dom:e.dom,markers:e.markers,behaviours:Fi(e.tmenuBehaviours,[Dn.config({mode:"special",onRight:se((X,ue)=>Lg(ue.element)?R.none():$(X,ue,F.HighlightSubmenu)),onLeft:se((X,ue)=>Lg(ue.element)?R.none():W(X,ue)),onEscape:se((X,ue)=>W(X,ue).orThunk(()=>e.onEscape(X,ue).map(()=>X))),focusIn:(X,ue)=>{l.getPrimary().each(ye=>{kp(X,ye.element,Jd())})}}),ba.config({highlightClass:e.markers.selectedMenu,itemClass:e.markers.menu}),Gr.config({find:X=>ba.getHighlighted(X)}),fr.config({})]),eventOrder:e.eventOrder,apis:te,events:le}},extraApis:{tieredData:(e,r,s)=>({primary:e,menus:r,expansions:s}),singleData:(e,r)=>({primary:e,menus:Xi(e,r),expansions:{}}),collapseItem:e=>({value:un(P_()),meta:{text:e}})}}),Rs=Pc({name:"InlineView",configFields:[Yt("lazySink"),Hr("onShow"),Hr("onHide"),Tl("onEscape"),qi("inlineBehaviours",[Lr,Wo,tc]),gl("fireDismissalEventInstead",[ft("event",Ou())]),gl("fireRepositionEventInstead",[ft("event",xp())]),ft("getRelated",R.none),ft("isExtraPart",Bo),ft("eventOrder",R.none)],factory:(e,r)=>{const s=(h,x,w,S)=>{const A=e.lazySink(h).getOrDie();Lr.openWhileCloaked(h,x,()=>xl.positionWithinBounds(A,h,w,S())),Wo.setValue(h,R.some({mode:"position",config:w,getBounds:S}))},l=(h,x,w,S)=>{const A=((N,F,$,W,se)=>{const le=()=>N.lazySink(F),fe=W.type==="horizontal"?{layouts:{onLtr:()=>fb(),onRtl:()=>Bp()}}:{},te=X=>(ue=>ue.length===2)(X)?fe:{};return Ug.sketch({dom:{tag:"div"},data:W.data,markers:W.menu.markers,highlightOnOpen:W.menu.highlightOnOpen,fakeFocus:W.menu.fakeFocus,onEscape:()=>(Lr.close(F),N.onEscape.map(X=>X(F)),R.some(!0)),onExecute:()=>R.some(!0),onOpenMenu:(X,ue)=>{xl.positionWithinBounds(le().getOrDie(),ue,$,se())},onOpenSubmenu:(X,ue,ye,we)=>{const Ye=le().getOrDie();xl.position(Ye,ye,{anchor:{type:"submenu",item:ue,...te(we)}})},onRepositionMenu:(X,ue,ye)=>{const we=le().getOrDie();xl.positionWithinBounds(we,ue,$,se()),Ie(ye,Ye=>{const Tt=te(Ye.triggeringPath);xl.position(we,Ye.triggeredMenu,{anchor:{type:"submenu",item:Ye.triggeringItem,...Tt}})})}})})(e,h,x,w,S);Lr.open(h,A),Wo.setValue(h,R.some({mode:"menu",menu:A}))},m=h=>{Lr.isOpen(h)&&Wo.getValue(h).each(x=>{switch(x.mode){case"menu":Lr.getState(h).each(Ug.repositionMenus);break;case"position":const w=e.lazySink(h).getOrDie();xl.positionWithinBounds(w,h,x.config,x.getBounds())}})},g={setContent:(h,x)=>{Lr.setContent(h,x)},showAt:(h,x,w)=>{const S=R.none;s(h,x,w,S)},showWithinBounds:s,showMenuAt:(h,x,w)=>{l(h,x,w,R.none)},showMenuWithinBounds:l,hide:h=>{Lr.isOpen(h)&&(Wo.setValue(h,R.none()),Lr.close(h))},getContent:h=>Lr.getState(h),reposition:m,isOpen:Lr.isOpen};return{uid:e.uid,dom:e.dom,behaviours:Fi(e.inlineBehaviours,[Lr.config({isPartOf:(h,x,w)=>si(x,w)||((S,A)=>e.getRelated(S).exists(N=>si(N,A)))(h,w),getAttachPoint:h=>e.lazySink(h).getOrDie(),onOpen:h=>{e.onShow(h)},onClose:h=>{e.onHide(h)}}),Wo.config({store:{mode:"memory",initialValue:R.none()}}),tc.config({channels:{...Rg({isExtraPart:r.isExtraPart,...e.fireDismissalEventInstead.map(h=>({fireEventInstead:{event:h.event}})).getOr({})}),...Zp({...e.fireRepositionEventInstead.map(h=>({fireEventInstead:{event:h.event}})).getOr({}),doReposition:m})}})]),eventOrder:e.eventOrder,apis:g}},apis:{showAt:(e,r,s,l)=>{e.showAt(r,s,l)},showWithinBounds:(e,r,s,l,m)=>{e.showWithinBounds(r,s,l,m)},showMenuAt:(e,r,s,l)=>{e.showMenuAt(r,s,l)},showMenuWithinBounds:(e,r,s,l,m)=>{e.showMenuWithinBounds(r,s,l,m)},hide:(e,r)=>{e.hide(r)},isOpen:(e,r)=>e.isOpen(r),getContent:(e,r)=>e.getContent(r),setContent:(e,r,s)=>{e.setContent(r,s)},reposition:(e,r)=>{e.reposition(r)}}});var hx=tinymce.util.Tools.resolve("tinymce.util.Delay");const wl=Pc({name:"Button",factory:e=>{const r=B1(e.action),s=e.dom.tag,l=m=>Xt(e.dom,"attributes").bind(g=>Xt(g,m));return{uid:e.uid,dom:e.dom,components:e.components,events:r,behaviours:Bg(e.buttonBehaviours,[er.config({}),Dn.config({mode:"execution",useSpace:!0,useEnter:!0})]),domModification:{attributes:s==="button"?{type:l("type").getOr("button"),...l("role").map(m=>({role:m})).getOr({})}:{role:e.role.getOr(l("role").getOr("button"))}},eventOrder:e.eventOrder}},configFields:[ft("uid",void 0),Yt("dom"),ft("components",[]),nc("buttonBehaviours",[er,Dn]),la("action"),la("role"),ft("eventOrder",{})]}),Ym=e=>{const r=tt(e),s=wn(r),l=(h=>{const x=h.dom.attributes!==void 0?h.dom.attributes:[];return zo(x,(w,S)=>S.name==="class"?w:{...w,[S.name]:S.value},{})})(r),m=(h=>Array.prototype.slice.call(h.dom.classList,0))(r),g=s.length===0?{}:{innerHtml:Sc(r)};return{tag:gr(r),classes:m,attributes:l,...g}},Ta=e=>{const r=(s=>s.uid!==void 0)(e)&&$n(e,"uid")?e.uid:G("memento");return{get:s=>s.getSystem().getByUid(r).getOrDie(),getOpt:s=>s.getSystem().getByUid(r).toOptional(),asSpec:()=>({...e,uid:r})}},{entries:H_,setPrototypeOf:bx,isFrozen:T4,getPrototypeOf:z4,getOwnPropertyDescriptor:I1}=Object;let{freeze:rc,seal:mu,create:A4}=Object,{apply:yx,construct:vx}=typeof Reflect<"u"&&Reflect;yx||(yx=function(e,r,s){return e.apply(r,s)}),rc||(rc=function(e){return e}),mu||(mu=function(e){return e}),vx||(vx=function(e,r){return new e(...r)});const O4=fc(Array.prototype.forEach),VA=fc(Array.prototype.pop),Yb=fc(Array.prototype.push),yh=fc(String.prototype.toLowerCase),P1=fc(String.prototype.toString),j_=fc(String.prototype.match),_m=fc(String.prototype.replace),N4=fc(String.prototype.indexOf),M4=fc(String.prototype.trim),gu=fc(RegExp.prototype.test),Xb=(D4=TypeError,function(){for(var e=arguments.length,r=new Array(e),s=0;s1?s-1:0),m=1;m/gm),L4=mu(/\${[\w\W]*}/gm),U_=mu(/^data-[\-\w.\u00B7-\uFFFF]/),I4=mu(/^aria-[\-\w]+$/),kx=mu(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),U1=mu(/^(?:\w+script|data):/i),_x=mu(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Z_=mu(/^html$/i);var q_=Object.freeze({__proto__:null,MUSTACHE_EXPR:F4,ERB_EXPR:$A,TMPLIT_EXPR:L4,DATA_ATTR:U_,ARIA_ATTR:I4,IS_ALLOWED_URI:kx,IS_SCRIPT_OR_DATA:U1,ATTR_WHITESPACE:_x,DOCTYPE_NAME:Z_});const W_=()=>typeof window>"u"?null:window;var P4=function e(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:W_();const s=Ot=>e(Ot);if(s.version="3.0.5",s.removed=[],!r||!r.document||r.document.nodeType!==9)return s.isSupported=!1,s;const l=r.document,m=l.currentScript;let{document:g}=r;const{DocumentFragment:h,HTMLTemplateElement:x,Node:w,Element:S,NodeFilter:A,NamedNodeMap:N=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:F,DOMParser:$,trustedTypes:W}=r,se=S.prototype,le=H1(se,"cloneNode"),fe=H1(se,"nextSibling"),te=H1(se,"childNodes"),X=H1(se,"parentNode");if(typeof x=="function"){const Ot=g.createElement("template");Ot.content&&Ot.content.ownerDocument&&(g=Ot.content.ownerDocument)}let ue,ye="";const{implementation:we,createNodeIterator:Ye,createDocumentFragment:Tt,getElementsByTagName:Qt}=g,{importNode:no}=l;let oo={};s.isSupported=typeof H_=="function"&&typeof X=="function"&&we&&we.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Uo,ERB_EXPR:pn,TMPLIT_EXPR:Mn,DATA_ATTR:ar,ARIA_ATTR:dr,IS_SCRIPT_OR_DATA:jr,ATTR_WHITESPACE:gs}=q_;let{IS_ALLOWED_URI:Vs}=q_,mr=null;const Bl=Va({},[...Zg,...ld,...xx,...wx,...B4]);let br=null;const Ii=Va({},[...j1,...V1,...$_,...$1]);let ls=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Nc=null,wi=null,Fl=!0,Ud=!0,Gk=!1,Kk=!0,Gy=!1,eb=!1,S3=!1,Ky=!1,tb=!1,hv=!1,bv=!1,E3=!0,yA=!1,T3=!0,Yy=!1,ob={},nb=null;const ps=Va({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Xy=null;const hp=Va({},["audio","video","img","source","image","track"]);let C5=null;const FN=Va({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),vA="http://www.w3.org/1998/Math/MathML",xA="http://www.w3.org/2000/svg",rb="http://www.w3.org/1999/xhtml";let Yk=rb,S5=!1,E5=null;const dM=Va({},[vA,xA,rb],P1);let Xk;const uM=["application/xhtml+xml","text/html"];let Wc,Jk=null;const mM=g.createElement("form"),LN=function(Ot){return Ot instanceof RegExp||Ot instanceof Function},T5=function(Ot){if(!Jk||Jk!==Ot){if(Ot&&typeof Ot=="object"||(Ot={}),Ot=$u(Ot),Xk=Xk=uM.indexOf(Ot.PARSER_MEDIA_TYPE)===-1?"text/html":Ot.PARSER_MEDIA_TYPE,Wc=Xk==="application/xhtml+xml"?P1:yh,mr="ALLOWED_TAGS"in Ot?Va({},Ot.ALLOWED_TAGS,Wc):Bl,br="ALLOWED_ATTR"in Ot?Va({},Ot.ALLOWED_ATTR,Wc):Ii,E5="ALLOWED_NAMESPACES"in Ot?Va({},Ot.ALLOWED_NAMESPACES,P1):dM,C5="ADD_URI_SAFE_ATTR"in Ot?Va($u(FN),Ot.ADD_URI_SAFE_ATTR,Wc):FN,Xy="ADD_DATA_URI_TAGS"in Ot?Va($u(hp),Ot.ADD_DATA_URI_TAGS,Wc):hp,nb="FORBID_CONTENTS"in Ot?Va({},Ot.FORBID_CONTENTS,Wc):ps,Nc="FORBID_TAGS"in Ot?Va({},Ot.FORBID_TAGS,Wc):{},wi="FORBID_ATTR"in Ot?Va({},Ot.FORBID_ATTR,Wc):{},ob="USE_PROFILES"in Ot&&Ot.USE_PROFILES,Fl=Ot.ALLOW_ARIA_ATTR!==!1,Ud=Ot.ALLOW_DATA_ATTR!==!1,Gk=Ot.ALLOW_UNKNOWN_PROTOCOLS||!1,Kk=Ot.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Gy=Ot.SAFE_FOR_TEMPLATES||!1,eb=Ot.WHOLE_DOCUMENT||!1,tb=Ot.RETURN_DOM||!1,hv=Ot.RETURN_DOM_FRAGMENT||!1,bv=Ot.RETURN_TRUSTED_TYPE||!1,Ky=Ot.FORCE_BODY||!1,E3=Ot.SANITIZE_DOM!==!1,yA=Ot.SANITIZE_NAMED_PROPS||!1,T3=Ot.KEEP_CONTENT!==!1,Yy=Ot.IN_PLACE||!1,Vs=Ot.ALLOWED_URI_REGEXP||kx,Yk=Ot.NAMESPACE||rb,ls=Ot.CUSTOM_ELEMENT_HANDLING||{},Ot.CUSTOM_ELEMENT_HANDLING&&LN(Ot.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ls.tagNameCheck=Ot.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Ot.CUSTOM_ELEMENT_HANDLING&&LN(Ot.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ls.attributeNameCheck=Ot.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Ot.CUSTOM_ELEMENT_HANDLING&&typeof Ot.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ls.allowCustomizedBuiltInElements=Ot.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Gy&&(Ud=!1),hv&&(tb=!0),ob&&(mr=Va({},[...B4]),br=[],ob.html===!0&&(Va(mr,Zg),Va(br,j1)),ob.svg===!0&&(Va(mr,ld),Va(br,V1),Va(br,$1)),ob.svgFilters===!0&&(Va(mr,xx),Va(br,V1),Va(br,$1)),ob.mathMl===!0&&(Va(mr,wx),Va(br,$_),Va(br,$1))),Ot.ADD_TAGS&&(mr===Bl&&(mr=$u(mr)),Va(mr,Ot.ADD_TAGS,Wc)),Ot.ADD_ATTR&&(br===Ii&&(br=$u(br)),Va(br,Ot.ADD_ATTR,Wc)),Ot.ADD_URI_SAFE_ATTR&&Va(C5,Ot.ADD_URI_SAFE_ATTR,Wc),Ot.FORBID_CONTENTS&&(nb===ps&&(nb=$u(nb)),Va(nb,Ot.FORBID_CONTENTS,Wc)),T3&&(mr["#text"]=!0),eb&&Va(mr,["html","head","body"]),mr.table&&(Va(mr,["tbody"]),delete Nc.tbody),Ot.TRUSTED_TYPES_POLICY){if(typeof Ot.TRUSTED_TYPES_POLICY.createHTML!="function")throw Xb('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Ot.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Xb('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ue=Ot.TRUSTED_TYPES_POLICY,ye=ue.createHTML("")}else ue===void 0&&(ue=function(In,yr){if(typeof In!="object"||typeof In.createPolicy!="function")return null;let fs=null;const ui="data-tt-policy-suffix";yr&&yr.hasAttribute(ui)&&(fs=yr.getAttribute(ui));const Pi="dompurify"+(fs?"#"+fs:"");try{return In.createPolicy(Pi,{createHTML:ki=>ki,createScriptURL:ki=>ki})}catch{return console.warn("TrustedTypes policy "+Pi+" could not be created."),null}}(W,m)),ue!==null&&typeof ye=="string"&&(ye=ue.createHTML(""));rc&&rc(Ot),Jk=Ot}},IN=Va({},["mi","mo","mn","ms","mtext"]),PN=Va({},["foreignobject","desc","title","annotation-xml"]),gM=Va({},["title","style","font","a","script"]),wA=Va({},ld);Va(wA,xx),Va(wA,R4);const z5=Va({},wx);Va(z5,V_);const yv=function(Ot){Yb(s.removed,{element:Ot});try{Ot.parentNode.removeChild(Ot)}catch{Ot.remove()}},z3=function(Ot,In){try{Yb(s.removed,{attribute:In.getAttributeNode(Ot),from:In})}catch{Yb(s.removed,{attribute:null,from:In})}if(In.removeAttribute(Ot),Ot==="is"&&!br[Ot])if(tb||hv)try{yv(In)}catch{}else try{In.setAttribute(Ot,"")}catch{}},HN=function(Ot){let In,yr;if(Ky)Ot=""+Ot;else{const Pi=j_(Ot,/^[\r\n\t ]+/);yr=Pi&&Pi[0]}Xk==="application/xhtml+xml"&&Yk===rb&&(Ot=''+Ot+"");const fs=ue?ue.createHTML(Ot):Ot;if(Yk===rb)try{In=new $().parseFromString(fs,Xk)}catch{}if(!In||!In.documentElement){In=we.createDocument(Yk,"template",null);try{In.documentElement.innerHTML=S5?ye:fs}catch{}}const ui=In.body||In.documentElement;return Ot&&yr&&ui.insertBefore(g.createTextNode(yr),ui.childNodes[0]||null),Yk===rb?Qt.call(In,eb?"html":"body")[0]:eb?In.documentElement:ui},jN=function(Ot){return Ye.call(Ot.ownerDocument||Ot,Ot,A.SHOW_ELEMENT|A.SHOW_COMMENT|A.SHOW_TEXT,null,!1)},kA=function(Ot){return typeof w=="object"?Ot instanceof w:Ot&&typeof Ot=="object"&&typeof Ot.nodeType=="number"&&typeof Ot.nodeName=="string"},ab=function(Ot,In,yr){oo[Ot]&&O4(oo[Ot],fs=>{fs.call(s,In,yr,Jk)})},VN=function(Ot){let In;if(ab("beforeSanitizeElements",Ot,null),(yr=Ot)instanceof F&&(typeof yr.nodeName!="string"||typeof yr.textContent!="string"||typeof yr.removeChild!="function"||!(yr.attributes instanceof N)||typeof yr.removeAttribute!="function"||typeof yr.setAttribute!="function"||typeof yr.namespaceURI!="string"||typeof yr.insertBefore!="function"||typeof yr.hasChildNodes!="function"))return yv(Ot),!0;var yr;const fs=Wc(Ot.nodeName);if(ab("uponSanitizeElement",Ot,{tagName:fs,allowedTags:mr}),Ot.hasChildNodes()&&!kA(Ot.firstElementChild)&&(!kA(Ot.content)||!kA(Ot.content.firstElementChild))&&gu(/<[/\w]/g,Ot.innerHTML)&&gu(/<[/\w]/g,Ot.textContent))return yv(Ot),!0;if(!mr[fs]||Nc[fs]){if(!Nc[fs]&&UN(fs)&&(ls.tagNameCheck instanceof RegExp&&gu(ls.tagNameCheck,fs)||ls.tagNameCheck instanceof Function&&ls.tagNameCheck(fs)))return!1;if(T3&&!nb[fs]){const ui=X(Ot)||Ot.parentNode,Pi=te(Ot)||Ot.childNodes;if(Pi&&ui)for(let ki=Pi.length-1;ki>=0;--ki)ui.insertBefore(le(Pi[ki],!0),fe(Ot))}return yv(Ot),!0}return Ot instanceof S&&!function(ui){let Pi=X(ui);Pi&&Pi.tagName||(Pi={namespaceURI:Yk,tagName:"template"});const ki=yh(ui.tagName),ol=yh(Pi.tagName);return!!E5[ui.namespaceURI]&&(ui.namespaceURI===xA?Pi.namespaceURI===rb?ki==="svg":Pi.namespaceURI===vA?ki==="svg"&&(ol==="annotation-xml"||IN[ol]):!!wA[ki]:ui.namespaceURI===vA?Pi.namespaceURI===rb?ki==="math":Pi.namespaceURI===xA?ki==="math"&&PN[ol]:!!z5[ki]:ui.namespaceURI===rb?!(Pi.namespaceURI===xA&&!PN[ol])&&!(Pi.namespaceURI===vA&&!IN[ol])&&!z5[ki]&&(gM[ki]||!wA[ki]):!(Xk!=="application/xhtml+xml"||!E5[ui.namespaceURI]))}(Ot)?(yv(Ot),!0):fs!=="noscript"&&fs!=="noembed"&&fs!=="noframes"||!gu(/<\/no(script|embed|frames)/i,Ot.innerHTML)?(Gy&&Ot.nodeType===3&&(In=Ot.textContent,In=_m(In,Uo," "),In=_m(In,pn," "),In=_m(In,Mn," "),Ot.textContent!==In&&(Yb(s.removed,{element:Ot.cloneNode()}),Ot.textContent=In)),ab("afterSanitizeElements",Ot,null),!1):(yv(Ot),!0)},$N=function(Ot,In,yr){if(E3&&(In==="id"||In==="name")&&(yr in g||yr in mM))return!1;if(!(Ud&&!wi[In]&&gu(ar,In))){if(!(Fl&&gu(dr,In))){if(!br[In]||wi[In]){if(!(UN(Ot)&&(ls.tagNameCheck instanceof RegExp&&gu(ls.tagNameCheck,Ot)||ls.tagNameCheck instanceof Function&&ls.tagNameCheck(Ot))&&(ls.attributeNameCheck instanceof RegExp&&gu(ls.attributeNameCheck,In)||ls.attributeNameCheck instanceof Function&&ls.attributeNameCheck(In))||In==="is"&&ls.allowCustomizedBuiltInElements&&(ls.tagNameCheck instanceof RegExp&&gu(ls.tagNameCheck,yr)||ls.tagNameCheck instanceof Function&&ls.tagNameCheck(yr))))return!1}else if(!C5[In]){if(!gu(Vs,_m(yr,gs,""))){if((In!=="src"&&In!=="xlink:href"&&In!=="href"||Ot==="script"||N4(yr,"data:")!==0||!Xy[Ot])&&!(Gk&&!gu(jr,_m(yr,gs,"")))){if(yr)return!1}}}}}return!0},UN=function(Ot){return Ot.indexOf("-")>0},ZN=function(Ot){let In,yr,fs,ui;ab("beforeSanitizeAttributes",Ot,null);const{attributes:Pi}=Ot;if(!Pi)return;const ki={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:br};for(ui=Pi.length;ui--;){In=Pi[ui];const{name:ol,namespaceURI:Qk}=In;yr=ol==="value"?In.value:M4(In.value);const fM=yr;if(fs=Wc(ol),ki.attrName=fs,ki.attrValue=yr,ki.keepAttr=!0,ki.forceKeepAttr=void 0,ab("uponSanitizeAttribute",Ot,ki),yr=ki.attrValue,ki.forceKeepAttr)continue;if(!ki.keepAttr){z3(ol,Ot);continue}if(!Kk&&gu(/\/>/i,yr)){z3(ol,Ot);continue}Gy&&(yr=_m(yr,Uo," "),yr=_m(yr,pn," "),yr=_m(yr,Mn," "));const qN=Wc(Ot.nodeName);if($N(qN,fs,yr)){if(!yA||fs!=="id"&&fs!=="name"||(z3(ol,Ot),yr="user-content-"+yr),ue&&typeof W=="object"&&typeof W.getAttributeType=="function"&&!Qk)switch(W.getAttributeType(qN,fs)){case"TrustedHTML":yr=ue.createHTML(yr);break;case"TrustedScriptURL":yr=ue.createScriptURL(yr)}if(yr!==fM)try{Qk?Ot.setAttributeNS(Qk,ol,yr):Ot.setAttribute(ol,yr)}catch{z3(ol,Ot)}}else z3(ol,Ot)}ab("afterSanitizeAttributes",Ot,null)},pM=function Ot(In){let yr;const fs=jN(In);for(ab("beforeSanitizeShadowDOM",In,null);yr=fs.nextNode();)ab("uponSanitizeShadowNode",yr,null),VN(yr)||(yr.content instanceof h&&Ot(yr.content),ZN(yr));ab("afterSanitizeShadowDOM",In,null)};return s.sanitize=function(Ot){let In,yr,fs,ui,Pi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(S5=!Ot,S5&&(Ot=""),typeof Ot!="string"&&!kA(Ot)){if(typeof Ot.toString!="function")throw Xb("toString is not a function");if(typeof(Ot=Ot.toString())!="string")throw Xb("dirty is not a string, aborting")}if(!s.isSupported)return Ot;if(S3||T5(Pi),s.removed=[],typeof Ot=="string"&&(Yy=!1),Yy){if(Ot.nodeName){const Qk=Wc(Ot.nodeName);if(!mr[Qk]||Nc[Qk])throw Xb("root node is forbidden and cannot be sanitized in-place")}}else if(Ot instanceof w)In=HN(""),yr=In.ownerDocument.importNode(Ot,!0),yr.nodeType===1&&yr.nodeName==="BODY"||yr.nodeName==="HTML"?In=yr:In.appendChild(yr);else{if(!tb&&!Gy&&!eb&&Ot.indexOf("<")===-1)return ue&&bv?ue.createHTML(Ot):Ot;if(In=HN(Ot),!In)return tb?null:bv?ye:""}In&&Ky&&yv(In.firstChild);const ki=jN(Yy?Ot:In);for(;fs=ki.nextNode();)VN(fs)||(fs.content instanceof h&&pM(fs.content),ZN(fs));if(Yy)return Ot;if(tb){if(hv)for(ui=Tt.call(In.ownerDocument);In.firstChild;)ui.appendChild(In.firstChild);else ui=In;return(br.shadowroot||br.shadowrootmode)&&(ui=no.call(l,ui,!0)),ui}let ol=eb?In.outerHTML:In.innerHTML;return eb&&mr["!doctype"]&&In.ownerDocument&&In.ownerDocument.doctype&&In.ownerDocument.doctype.name&&gu(Z_,In.ownerDocument.doctype.name)&&(ol=" +`+ol),Gy&&(ol=_m(ol,Uo," "),ol=_m(ol,pn," "),ol=_m(ol,Mn," ")),ue&&bv?ue.createHTML(ol):ol},s.setConfig=function(Ot){T5(Ot),S3=!0},s.clearConfig=function(){Jk=null,S3=!1},s.isValidAttribute=function(Ot,In,yr){Jk||T5({});const fs=Wc(Ot),ui=Wc(In);return $N(fs,ui,yr)},s.addHook=function(Ot,In){typeof In=="function"&&(oo[Ot]=oo[Ot]||[],Yb(oo[Ot],In))},s.removeHook=function(Ot){if(oo[Ot])return VA(oo[Ot])},s.removeHooks=function(Ot){oo[Ot]&&(oo[Ot]=[])},s.removeAllHooks=function(){oo={}},s}();const G_=e=>P4().sanitize(e);var jc=tinymce.util.Tools.resolve("tinymce.util.I18n");const H4={indent:!0,outdent:!0,"table-insert-column-after":!0,"table-insert-column-before":!0,"paste-column-after":!0,"paste-column-before":!0,"unordered-list":!0,"list-bull-circle":!0,"list-bull-default":!0,"list-bull-square":!0},j4="temporary-placeholder",Cx=e=>()=>Xt(e,j4).getOr("!not found!"),Z1=(e,r)=>{const s=e.toLowerCase();if(jc.isRtl()){const l=((m,g)=>cs(m,g)?m:((h,x)=>h+x)(m,g))(s,"-rtl");return Vo(r,l)?l:s}return s},K_=(e,r)=>Xt(r,Z1(e,r)),Y_=(e,r)=>{const s=r();return K_(e,s).getOrThunk(Cx(s))},X_=()=>Tr("add-focusable",[La(e=>{um(e.element,"svg").each(r=>Kn(r,"focusable","false"))})]),Sx=(e,r,s,l)=>{var m,g;const h=(w=>!!jc.isRtl()&&Vo(H4,w))(r)?["tox-icon--flip"]:[],x=Xt(s,Z1(r,s)).or(l).getOrThunk(Cx(s));return{dom:{tag:e.tag,attributes:(m=e.attributes)!==null&&m!==void 0?m:{},classes:e.classes.concat(h),innerHtml:x},behaviours:Oo([...(g=e.behaviours)!==null&&g!==void 0?g:[],X_()])}},Uu=(e,r,s,l=R.none())=>Sx(r,e,s(),l),V4={success:"checkmark",error:"warning",err:"error",warning:"warning",warn:"warning",info:"info"},q1=Pc({name:"Notification",factory:e=>{const r=Ta({dom:Ym(`

    ${G_(e.translationProvider(e.text))}

    `),behaviours:Oo([fr.config({})])}),s=A=>({dom:{tag:"div",classes:["tox-bar"],styles:{width:`${A}%`}}}),l=A=>({dom:{tag:"div",classes:["tox-text"],innerHtml:`${A}%`}}),m=Ta({dom:{tag:"div",classes:e.progress?["tox-progress-bar","tox-progress-indicator"]:["tox-progress-bar"]},components:[{dom:{tag:"div",classes:["tox-bar-container"]},components:[s(0)]},l(0)],behaviours:Oo([fr.config({})])}),g={updateProgress:(A,N)=>{A.getSystem().isConnected()&&m.getOpt(A).each(F=>{fr.set(F,[{dom:{tag:"div",classes:["tox-bar-container"]},components:[s(N)]},l(N)])})},updateText:(A,N)=>{if(A.getSystem().isConnected()){const F=r.get(A);fr.set(F,[Ya(N)])}}},h=$e([e.icon.toArray(),e.level.toArray(),e.level.bind(A=>R.from(V4[A])).toArray()]),x=Ta(wl.sketch({dom:{tag:"button",classes:["tox-notification__dismiss","tox-button","tox-button--naked","tox-button--icon"]},components:[Uu("close",{tag:"span",classes:["tox-icon"],attributes:{"aria-label":e.translationProvider("Close")}},e.iconProvider)],action:A=>{e.onAction(A)}})),w=((A,N,F)=>{const $=F(),W=to(A,se=>Vo($,Z1(se,$)));return Sx({tag:"div",classes:["tox-notification__icon"]},W.getOr(j4),$,R.none())})(h,0,e.iconProvider),S=[w,{dom:{tag:"div",classes:["tox-notification__body"]},components:[r.asSpec()],behaviours:Oo([fr.config({})])}];return{uid:e.uid,dom:{tag:"div",attributes:{role:"alert"},classes:e.level.map(A=>["tox-notification","tox-notification--in",`tox-notification--${A}`]).getOr(["tox-notification","tox-notification--in"])},behaviours:Oo([er.config({}),Tr("notification-events",[Kt(He(),A=>{x.getOpt(A).each(er.focus)})])]),components:S.concat(e.progress?[m.asSpec()]:[]).concat(e.closeButton?[x.asSpec()]:[]),apis:g}},configFields:[la("level"),Yt("progress"),la("icon"),Yt("onAction"),Yt("text"),Yt("iconProvider"),Yt("translationProvider"),ri("closeButton",!0)],apis:{updateProgress:(e,r,s)=>{e.updateProgress(r,s)},updateText:(e,r,s)=>{e.updateText(r,s)}}});var Vc,Jb,Qb=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),J_=tinymce.util.Tools.resolve("tinymce.EditorManager"),Zu=tinymce.util.Tools.resolve("tinymce.Env");(function(e){e.default="wrap",e.floating="floating",e.sliding="sliding",e.scrolling="scrolling"})(Vc||(Vc={})),function(e){e.auto="auto",e.top="top",e.bottom="bottom"}(Jb||(Jb={}));const Xa=e=>r=>r.options.get(e),W1=e=>r=>R.from(e(r)),Ex=e=>{const r=Zu.deviceType.isPhone(),s=Zu.deviceType.isTablet()||r,l=e.options.register,m=h=>io(h)||h===!1,g=h=>io(h)||So(h);l("skin",{processor:h=>io(h)||h===!1,default:"oxide"}),l("skin_url",{processor:"string"}),l("height",{processor:g,default:Math.max(e.getElement().offsetHeight,400)}),l("width",{processor:g,default:Qb.DOM.getStyle(e.getElement(),"width")}),l("min_height",{processor:"number",default:100}),l("min_width",{processor:"number"}),l("max_height",{processor:"number"}),l("max_width",{processor:"number"}),l("style_formats",{processor:"object[]"}),l("style_formats_merge",{processor:"boolean",default:!1}),l("style_formats_autohide",{processor:"boolean",default:!1}),l("line_height_formats",{processor:"string",default:"1 1.1 1.2 1.3 1.4 1.5 2"}),l("font_family_formats",{processor:"string",default:"Andale Mono=andale mono,monospace;Arial=arial,helvetica,sans-serif;Arial Black=arial black,sans-serif;Book Antiqua=book antiqua,palatino,serif;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier,monospace;Georgia=georgia,palatino,serif;Helvetica=helvetica,arial,sans-serif;Impact=impact,sans-serif;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco,monospace;Times New Roman=times new roman,times,serif;Trebuchet MS=trebuchet ms,geneva,sans-serif;Verdana=verdana,geneva,sans-serif;Webdings=webdings;Wingdings=wingdings,zapf dingbats"}),l("font_size_formats",{processor:"string",default:"8pt 10pt 12pt 14pt 18pt 24pt 36pt"}),l("font_size_input_default_unit",{processor:"string",default:"pt"}),l("block_formats",{processor:"string",default:"Paragraph=p;Heading 1=h1;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6;Preformatted=pre"}),l("content_langs",{processor:"object[]"}),l("removed_menuitems",{processor:"string",default:""}),l("menubar",{processor:h=>io(h)||jo(h),default:!r}),l("menu",{processor:"object",default:{}}),l("toolbar",{processor:h=>jo(h)||io(h)||ko(h)?{value:h,valid:!0}:{valid:!1,message:"Must be a boolean, string or array."},default:!0}),Bt(9,h=>{l("toolbar"+(h+1),{processor:"string"})}),l("toolbar_mode",{processor:"string",default:s?"scrolling":"floating"}),l("toolbar_groups",{processor:"object",default:{}}),l("toolbar_location",{processor:"string",default:Jb.auto}),l("toolbar_persist",{processor:"boolean",default:!1}),l("toolbar_sticky",{processor:"boolean",default:e.inline}),l("toolbar_sticky_offset",{processor:"number",default:0}),l("fixed_toolbar_container",{processor:"string",default:""}),l("fixed_toolbar_container_target",{processor:"object"}),l("ui_mode",{processor:"string",default:"combined"}),l("file_picker_callback",{processor:"function"}),l("file_picker_validator_handler",{processor:"function"}),l("file_picker_types",{processor:"string"}),l("typeahead_urls",{processor:"boolean",default:!0}),l("anchor_top",{processor:m,default:"#top"}),l("anchor_bottom",{processor:m,default:"#bottom"}),l("draggable_modal",{processor:"boolean",default:!1}),l("statusbar",{processor:"boolean",default:!0}),l("elementpath",{processor:"boolean",default:!0}),l("branding",{processor:"boolean",default:!0}),l("promotion",{processor:"boolean",default:!0}),l("resize",{processor:h=>h==="both"||jo(h),default:!Zu.deviceType.isTouch()}),l("sidebar_show",{processor:"string"}),l("help_accessibility",{processor:"boolean",default:e.hasPlugin("help")}),l("default_font_stack",{processor:"string[]",default:[]})},Q_=Xa("readonly"),Tx=Xa("height"),zx=Xa("width"),Ax=W1(Xa("min_width")),G1=W1(Xa("min_height")),K1=W1(Xa("max_width")),vh=W1(Xa("max_height")),$4=W1(Xa("style_formats")),Ox=Xa("style_formats_merge"),Nx=Xa("style_formats_autohide"),Mx=Xa("content_langs"),Dx=Xa("removed_menuitems"),ey=Xa("toolbar_mode"),U4=Xa("toolbar_groups"),Y1=Xa("toolbar_location"),Z4=Xa("fixed_toolbar_container"),UA=Xa("fixed_toolbar_container_target"),q4=Xa("toolbar_persist"),Rx=Xa("toolbar_sticky_offset"),W4=Xa("menubar"),xh=Xa("toolbar"),Bx=Xa("file_picker_callback"),e2=Xa("file_picker_validator_handler"),Fx=Xa("font_size_input_default_unit"),Lx=Xa("file_picker_types"),t2=Xa("typeahead_urls"),Ix=Xa("anchor_top"),X1=Xa("anchor_bottom"),o2=Xa("draggable_modal"),Cm=Xa("statusbar"),Px=Xa("elementpath"),wh=Xa("branding"),n2=Xa("resize"),Hx=Xa("paste_as_text"),jx=Xa("sidebar_show"),Vx=Xa("promotion"),r2=Xa("help_accessibility"),a2=Xa("default_font_stack"),s2=e=>e.options.get("skin")===!1,J1=e=>e.options.get("menubar")!==!1,Q1=e=>{const r=e.options.get("skin_url");if(s2(e))return r;if(r)return e.documentBaseURI.toAbsolute(r);{const s=e.options.get("skin");return J_.baseURL+"/skins/ui/"+s}},e0=e=>R.from(e.options.get("skin_url")),ty=e=>e.options.get("line_height_formats").split(" "),t0=e=>{const r=xh(e),s=io(r),l=ko(r)&&r.length>0;return!oy(e)&&(l||s||r===!0)},$x=e=>{const r=Bt(9,l=>e.options.get("toolbar"+(l+1))),s=Pt(r,io);return ln(s.length>0,s)},oy=e=>$x(e).fold(()=>{const r=xh(e);return co(r,io)&&r.length>0},Ct),Ux=e=>Y1(e)===Jb.bottom,i2=e=>{var r;if(!e.inline)return R.none();const s=(r=Z4(e))!==null&&r!==void 0?r:"";if(s.length>0)return vs(ws(),s);const l=UA(e);return Ue(l)?R.some(St(l)):R.none()},kh=e=>e.inline&&i2(e).isSome(),Zx=e=>i2(e).getOrThunk(()=>Sr(rr(St(e.getElement())))),o0=e=>e.inline&&!J1(e)&&!t0(e)&&!oy(e),_h=e=>(e.options.get("toolbar_sticky")||e.inline)&&!kh(e)&&!o0(e),qg=e=>!kh(e)&&e.options.get("ui_mode")==="split",l2=e=>{const r=e.options.get("menu");return Zo(r,s=>({...s,items:s.items}))};var G4=Object.freeze({__proto__:null,get ToolbarMode(){return Vc},get ToolbarLocation(){return Jb},register:Ex,getSkinUrl:Q1,getSkinUrlOption:e0,isReadOnly:Q_,isSkinDisabled:s2,getHeightOption:Tx,getWidthOption:zx,getMinWidthOption:Ax,getMinHeightOption:G1,getMaxWidthOption:K1,getMaxHeightOption:vh,getUserStyleFormats:$4,shouldMergeStyleFormats:Ox,shouldAutoHideStyleFormats:Nx,getLineHeightFormats:ty,getContentLanguages:Mx,getRemovedMenuItems:Dx,isMenubarEnabled:J1,isMultipleToolbars:oy,isToolbarEnabled:t0,isToolbarPersist:q4,getMultipleToolbarsOption:$x,getUiContainer:Zx,useFixedContainer:kh,isSplitUiMode:qg,getToolbarMode:ey,isDraggableModal:o2,isDistractionFree:o0,isStickyToolbar:_h,getStickyToolbarOffset:Rx,getToolbarLocation:Y1,isToolbarLocationBottom:Ux,getToolbarGroups:U4,getMenus:l2,getMenubar:W4,getToolbar:xh,getFilePickerCallback:Bx,getFilePickerTypes:Lx,useTypeaheadUrls:t2,getAnchorTop:Ix,getAnchorBottom:X1,getFilePickerValidatorHandler:e2,getFontSizeInputDefaultUnit:Fx,useStatusBar:Cm,useElementPath:Px,promotionEnabled:Vx,useBranding:wh,getResize:n2,getPasteAsText:Hx,getSidebarShow:jx,useHelpAccessibility:r2,getDefaultFontStack:a2});const qx="[data-mce-autocompleter]",c2=e=>Vl(e,qx);var Wx;(function(e){e[e.CLOSE_ON_EXECUTE=0]="CLOSE_ON_EXECUTE",e[e.BUBBLE_TO_SANDBOX=1]="BUBBLE_TO_SANDBOX"})(Wx||(Wx={}));var Oc=Wx;const d2="tox-menu-nav__js",ny="tox-collection__item",n0="tox-swatch",K4={normal:d2,color:n0},u2="tox-collection__item--enabled",m2="tox-collection__item-icon",r0="tox-collection__item-label",g2="tox-collection__item-caret",ry="tox-collection__item--active",p2="tox-collection__item-container",f2="tox-collection__item-container--row",h2=e=>Xt(K4,e).getOr(d2),Y4=e=>e==="color"?"tox-swatches":"tox-menu",b2=e=>({backgroundMenu:"tox-background-menu",selectedMenu:"tox-selected-menu",selectedItem:"tox-collection__item--active",hasIcons:"tox-menu--has-icons",menu:Y4(e),tieredMenu:"tox-tiered-menu"}),cf=e=>{const r=b2(e);return{backgroundMenu:r.backgroundMenu,selectedMenu:r.selectedMenu,menu:r.menu,selectedItem:r.selectedItem,item:h2(e)}},a0=(e,r,s)=>{const l=b2(s);return{tag:"div",classes:$e([[l.menu,`tox-menu-${r}-column`],e?[l.hasIcons]:[]])}},X4=[lf.parts.items({})],Ch=(e,r,s)=>{const l=b2(s);return{dom:{tag:"div",classes:$e([[l.tieredMenu]])},markers:cf(s)}},y2=me([la("data"),ft("inputAttributes",{}),ft("inputStyles",{}),ft("tag","input"),ft("inputClasses",[]),Hr("onSetValue"),ft("styles",{}),ft("eventOrder",{}),qi("inputBehaviours",[Wo,er]),ft("selectOnFocus",!0)]),J4=e=>Oo([er.config({onFocus:e.selectOnFocus?r=>{const s=r.element,l=Lu(s);s.dom.setSelectionRange(0,l.length)}:he})]),Q4=e=>({...J4(e),...Fi(e.inputBehaviours,[Wo.config({store:{mode:"manual",...e.data.map(r=>({initialValue:r})).getOr({}),getValue:r=>Lu(r.element),setValue:(r,s)=>{Lu(r.element)!==s&&Ec(r.element,s)}},onSetValue:e.onSetValue})])}),v2=e=>({tag:e.tag,attributes:{type:"text",...e.inputAttributes},styles:e.inputStyles,classes:e.inputClasses}),df=Pc({name:"Input",configFields:y2(),factory:(e,r)=>({uid:e.uid,dom:v2(e),components:[],behaviours:Q4(e),eventOrder:e.eventOrder})}),x2=un("refetch-trigger-event"),w2=un("redirect-menu-item-interaction"),k2="tox-menu__searcher",s0=e=>vs(e.element,`.${k2}`).bind(r=>e.getSystem().getByDom(r).toOptional()),_2=s0,eE=e=>({fetchPattern:Wo.getValue(e),selectionStart:e.element.dom.selectionStart,selectionEnd:e.element.dom.selectionEnd}),tE=e=>{const r=(m,g)=>(g.cut(),R.none()),s=(m,g)=>{const h={interactionEvent:g.event,eventType:g.event.raw.type};return _n(m,w2,h),R.some(!0)},l="searcher-events";return{dom:{tag:"div",classes:[ny]},components:[df.sketch({inputClasses:[k2,"tox-textfield"],inputAttributes:{...e.placeholder.map(m=>({placeholder:e.i18n(m)})).getOr({}),type:"search","aria-autocomplete":"list"},inputBehaviours:Oo([Tr(l,[Kt(Hn(),m=>{$r(m,x2)}),Kt(fn(),(m,g)=>{g.event.raw.key==="Escape"&&g.stop()})]),Dn.config({mode:"special",onLeft:r,onRight:r,onSpace:r,onEnter:s,onEscape:s,onUp:s,onDown:s})]),eventOrder:{keydown:[l,Dn.name()]}})]}},ay="tox-collection--results__js",C2=e=>{var r;return e.dom?{...e,dom:{...e.dom,attributes:{...(r=e.dom.attributes)!==null&&r!==void 0?r:{},id:un("aria-item-search-result-id"),"aria-selected":"false"}}}:e},Gx=(e,r)=>s=>{const l=V(s,r);return dt(l,m=>({dom:e,components:m}))},oE=(e,r)=>{const s=[];let l=[];return Ie(e,(m,g)=>{r(m,g)?(l.length>0&&s.push(l),l=[],(Vo(m.dom,"innerHtml")||m.components&&m.components.length>0)&&l.push(m)):l.push(m)}),l.length>0&&s.push(l),dt(s,m=>({dom:{tag:"div",classes:["tox-collection__group"]},components:m}))},Kx=(e,r,s)=>lf.parts.items({preprocess:l=>{const m=dt(l,s);return e!=="auto"&&e>1?Gx({tag:"div",classes:["tox-collection__group"]},e)(m):oE(m,(g,h)=>r[h].type==="separator")}}),S2=(e,r,s=!0)=>({dom:{tag:"div",classes:["tox-menu","tox-collection"].concat(e===1?["tox-collection--list"]:["tox-collection--grid"])},components:[Kx(e,r,Ze)]}),i0=e=>uo(e,r=>"icon"in r&&r.icon!==void 0),Sm=e=>(console.error(El(e)),R.none()),ZA=(e,r,s,l,m)=>{const g=(h=s,{dom:{tag:"div",classes:["tox-collection","tox-collection--horizontal"]},components:[lf.parts.items({preprocess:x=>oE(x,(w,S)=>h[S].type==="separator")})]});var h;return{value:e,dom:g.dom,components:g.components,items:s}},Yx=(e,r,s,l,m)=>{if(m.menuType==="color"){const g=(h=>({dom:{tag:"div",classes:["tox-menu","tox-swatches-menu"]},components:[{dom:{tag:"div",classes:["tox-swatches"]},components:[lf.parts.items({preprocess:h!=="auto"?Gx({tag:"div",classes:["tox-swatches__row"]},h):Ze})]}]}))(l);return{value:e,dom:g.dom,components:g.components,items:s}}if(m.menuType==="normal"&&l==="auto"){const g=S2(l,s);return{value:e,dom:g.dom,components:g.components,items:s}}if(m.menuType==="normal"||m.menuType==="searchable"){const g=m.menuType!=="searchable"?S2(l,s):m.searchMode.searchMode==="search-with-field"?((h,x,w)=>{const S=un("aria-controls-search-results");return{dom:{tag:"div",classes:["tox-menu","tox-collection"].concat(h===1?["tox-collection--list"]:["tox-collection--grid"])},components:[tE({i18n:jc.translate,placeholder:w.placeholder}),{dom:{tag:"div",classes:[...h===1?["tox-collection--list"]:["tox-collection--grid"],ay],attributes:{id:S}},components:[Kx(h,x,C2)]}]}})(l,s,m.searchMode):((h,x,w=!0)=>{const S=un("aria-controls-search-results");return{dom:{tag:"div",classes:["tox-menu","tox-collection",ay].concat(h===1?["tox-collection--list"]:["tox-collection--grid"]),attributes:{id:S}},components:[Kx(h,x,C2)]}})(l,s);return{value:e,dom:g.dom,components:g.components,items:s}}if(m.menuType==="listpreview"&&l!=="auto"){const g=(h=>({dom:{tag:"div",classes:["tox-menu","tox-collection","tox-collection--toolbar","tox-collection--toolbar-lg"]},components:[lf.parts.items({preprocess:Gx({tag:"div",classes:["tox-collection__group"]},h)})]}))(l);return{value:e,dom:g.dom,components:g.components,items:s}}return{value:e,dom:a0(r,l,m.menuType),components:X4,items:s}},ci=us("type"),E2=us("name"),T2=us("label"),Wg=us("text"),$c=us("title"),qu=us("icon"),l0=us("value"),z2=ml("fetch"),A2=ml("getSubmenuItems"),sy=ml("onAction"),qA=ml("onItemAction"),Em=hs("onSetup",()=>he),Xx=Hs("name"),Xm=Hs("text"),pu=Hs("icon"),Id=Hs("tooltip"),O2=Hs("label"),WA=Hs("shortcut"),fu=Tl("select"),uf=ri("active",!1),nE=ri("borderless",!1),ll=ri("enabled",!0),Na=ri("primary",!1),Sh=e=>ft("columns",e),iy=ft("meta",{}),Jx=hs("onAction",he),Gg=e=>zl("type",e),c0=e=>oi("name","name",os(()=>un(`${e}-name`)),wa),rE=Cn([ci,Xm]),N2=Cn([Gg("autocompleteitem"),uf,ll,iy,l0,Xm,pu]),d0=[ll,Id,pu,Xm,Em],aE=Cn([ci,sy].concat(d0)),M2=e=>ka("toolbarbutton",aE,e),u0=[uf].concat(d0),sE=Cn(u0.concat([ci,sy])),m0=e=>ka("ToggleButton",sE,e),iE=[hs("predicate",Bo),pl("scope","node",["node","editor"]),pl("position","selection",["node","selection","line"])],GA=d0.concat([Gg("contextformbutton"),Na,sy,ro("original",Ze)]),KA=u0.concat([Gg("contextformbutton"),Na,sy,ro("original",Ze)]),YA=d0.concat([Gg("contextformbutton")]),XA=u0.concat([Gg("contextformtogglebutton")]),lE=Ms("type",{contextformbutton:GA,contextformtogglebutton:KA}),JA=Cn([Gg("contextform"),hs("initValue",me("")),O2,al("commands",lE),$i("launch",Ms("type",{contextformbutton:YA,contextformtogglebutton:XA}))].concat(iE)),QA=Cn([Gg("contexttoolbar"),us("items")].concat(iE)),cE=[ci,us("src"),Hs("alt"),uc("classes",[],wa)],dE=Cn(cE),eO=[ci,Wg,Xx,uc("classes",["tox-collection__item-label"],wa)],uE=Cn(eO),D2=Gd(()=>an("type",{cardimage:dE,cardtext:uE,cardcontainer:tO})),tO=Cn([ci,zl("direction","horizontal"),zl("align","left"),zl("valign","middle"),al("items",D2)]),ly=[ll,Xm,WA,oi("value","value",os(()=>un("menuitem-value")),Cl()),iy],oO=Cn([ci,O2,al("items",D2),Em,Jx].concat(ly)),nO=Cn([ci,uf,pu].concat(ly)),R2=[ci,us("fancytype"),Jx],Wu=[ft("initData",{})].concat(R2),rO=[Tl("select"),Bm("initData",{},[ri("allowCustomColors",!0),zl("storageKey","default"),ns("colors",Cl())])].concat(R2),B2=Ms("fancytype",{inserttable:Wu,colorswatch:rO}),mE=Cn([ci,Em,Jx,pu].concat(ly)),gE=Cn([ci,A2,Em,pu].concat(ly)),pE=Cn([ci,pu,uf,Em,sy].concat(ly)),Qx=(e,r,s)=>{const l=Zl(e.element,"."+s);if(l.length>0){const m=Se(l,g=>{const h=g.dom.getBoundingClientRect().top,x=l[0].dom.getBoundingClientRect().top;return Math.abs(h-x)>r}).getOr(l.length);return R.some({numColumns:m,numRows:Math.ceil(l.length/m)})}return R.none()},cy=e=>((r,s)=>Oo([Tr(r,s)]))(un("unnamed-events"),e),fE=un("tooltip.exclusive"),g0=un("tooltip.show"),p0=un("tooltip.hide"),F2=(e,r,s)=>{e.getSystem().broadcastOn([fE],{})};var hE=Object.freeze({__proto__:null,hideAllExclusive:F2,setComponents:(e,r,s,l)=>{s.getTooltip().each(m=>{m.getSystem().isConnected()&&fr.set(m,l)})}}),bE=Object.freeze({__proto__:null,events:(e,r)=>{const s=l=>{r.getTooltip().each(m=>{id(m),e.onHide(l,m),r.clearTooltip()}),r.clearTimer()};return qa($e([[Kt(g0,l=>{r.resetTimer(()=>{(m=>{if(!r.isShowing()){F2(m);const g=e.lazySink(m).getOrDie(),h=m.getSystem().build({dom:e.tooltipDom,components:e.tooltipComponents,events:qa(e.mode==="normal"?[Kt(Te(),x=>{$r(m,g0)}),Kt(H(),x=>{$r(m,p0)})]:[]),behaviours:Oo([fr.config({})])});r.setTooltip(h),ym(g,h),e.onShow(m,h),xl.position(g,h,{anchor:e.anchor(m)})}})(l)},e.delay)}),Kt(p0,l=>{r.resetTimer(()=>{s(l)},e.delay)}),Kt(Cd(),(l,m)=>{const g=m;g.universal||Rt(g.channels,fE)&&s(l)}),od(l=>{s(l)})],e.mode==="normal"?[Kt(He(),l=>{$r(l,g0)}),Kt(vp(),l=>{$r(l,p0)}),Kt(Te(),l=>{$r(l,g0)}),Kt(H(),l=>{$r(l,p0)})]:[Kt(dg(),(l,m)=>{$r(l,g0)}),Kt(Pm(),l=>{$r(l,p0)})]]))}}),dy=[Yt("lazySink"),Yt("tooltipDom"),ft("exclusive",!0),ft("tooltipComponents",[]),ft("delay",300),pl("mode","normal",["normal","follow-highlight"]),ft("anchor",e=>({type:"hotspot",hotspot:e,layouts:{onLtr:me([yi,Nl,Qi,vl,Gs,Wa]),onRtl:me([yi,Nl,Qi,vl,Gs,Wa])}})),Hr("onHide"),Hr("onShow")],yE=Object.freeze({__proto__:null,init:()=>{const e=ms(),r=ms(),s=()=>{e.on(clearTimeout)},l=me("not-implemented");return Ia({getTooltip:r.get,isShowing:r.isSet,setTooltip:r.set,clearTooltip:r.clear,clearTimer:s,resetTimer:(m,g)=>{s(),e.set(setTimeout(m,g))},readState:l})}});const L2=Ri({fields:dy,name:"tooltipping",active:bE,state:yE,apis:hE}),I2="silver.readonly",P2=Cn([ni("readonly",Qc)]),uy=(e,r)=>{const s=e.mainUi.outerContainer.element,l=[e.mainUi.mothership,...e.uiMotherships];r&&Ie(l,m=>{m.broadcastOn([Bd()],{target:s})}),Ie(l,m=>{m.broadcastOn([I2],{readonly:r})})},ew=(e,r)=>{e.on("init",()=>{e.mode.isReadOnly()&&uy(r,!0)}),e.on("SwitchMode",()=>uy(r,e.mode.isReadOnly())),Q_(e)&&e.mode.set("readonly")},Wi=()=>tc.config({channels:{[I2]:{schema:P2,onReceive:(e,r)=>{Qn.set(e,r.readonly)}}}}),my=e=>Qn.config({disabled:e}),H2=e=>Qn.config({disabled:e,disableClass:"tox-tbtn--disabled"}),j2=e=>Qn.config({disabled:e,disableClass:"tox-tbtn--disabled",useNative:!1}),f0=(e,r)=>{const s=e.getApi(r);return l=>{l(s)}},Kg=(e,r)=>La(s=>{f0(e,s)(l=>{const m=e.onSetup(l);it(m)&&r.set(m)})}),Yg=(e,r)=>od(s=>f0(e,s)(r.get())),aO=(e,r)=>Cc((s,l)=>{f0(e,s)(e.onAction),e.triggersSubmenu||r!==Oc.CLOSE_ON_EXECUTE||(s.getSystem().isConnected()&&$r(s,Sd()),l.stop())}),sO={[fl()]:["disabling","alloy.base.behaviour","toggling","item-events"]},Eh=Wt,gy=(e,r,s,l)=>{const m=Sn(he);return{type:"item",dom:r.dom,components:Eh(r.optComponents),data:e.data,eventOrder:sO,hasSubmenu:e.triggersSubmenu,itemBehaviours:Oo([Tr("item-events",[aO(e,s),Kg(e,m),Yg(e,m)]),(g=()=>!e.enabled||l.isDisabled(),Qn.config({disabled:g,disableClass:"tox-collection__item--state-disabled"})),Wi(),fr.config({})].concat(e.itemBehaviours))};var g},py=e=>({value:e.value,meta:{text:e.text.getOr(""),...e.meta}}),h0=e=>{const r=Zu.os.isMacOS()||Zu.os.isiOS(),s=r?{alt:"⌥",ctrl:"⌃",shift:"⇧",meta:"⌘",access:"⌃⌥"}:{meta:"Ctrl",access:"Shift+Alt"},l=e.split("+"),m=dt(l,g=>{const h=g.toLowerCase().trim();return Vo(s,h)?s[h]:g});return r?m.join(""):m.join("+")},tw=(e,r,s=[m2])=>Uu(e,{tag:"div",classes:s},r),V2=e=>({dom:{tag:"div",classes:[r0]},components:[Ya(jc.translate(e))]}),vE=(e,r)=>({dom:{tag:"div",classes:r,innerHtml:e}}),iO=(e,r)=>({dom:{tag:"div",classes:[r0]},components:[{dom:{tag:e.tag,styles:e.styles},components:[Ya(jc.translate(r))]}]}),ow=e=>({dom:{tag:"div",classes:["tox-collection__item-accessory"]},components:[Ya(h0(e))]}),nw=e=>tw("checkmark",e,["tox-collection__item-checkmark"]),rw=e=>{const r=e.map(s=>({attributes:{title:jc.translate(s),id:un("menu-item")}})).getOr({});return{tag:"div",classes:[d2,ny],...r}},fy=(e,r,s,l=R.none())=>e.presets==="color"?((m,g,h)=>{const x=m.ariaLabel,w=m.value,S=m.iconContent.map(A=>((N,F,$)=>{const W=F();return K_(N,W).or($).getOrThunk(Cx(W))})(A,g.icons,h));return{dom:(()=>{const A=n0,N=S.getOr(""),F=x.map(W=>({title:g.translate(W)})).getOr({}),$={tag:"div",attributes:F,classes:[A]};return w==="custom"?{...$,tag:"button",classes:[...$.classes,"tox-swatches__picker-btn"],innerHtml:N}:w==="remove"?{...$,classes:[...$.classes,"tox-swatch--remove"],innerHtml:N}:Ue(w)?{...$,attributes:{...$.attributes,"data-mce-color":w},styles:{"background-color":w},innerHtml:N}:$})(),optComponents:[]}})(e,r,l):((m,g,h,x)=>{const w={tag:"div",classes:[m2]},S=h?m.iconContent.map($=>Uu($,w,g.icons,x)).orThunk(()=>R.some({dom:w})):R.none(),A=m.checkMark,N=R.from(m.meta).fold(()=>V2,$=>Vo($,"style")?rt(iO,$.style):V2),F=m.htmlContent.fold(()=>m.textContent.map(N),$=>R.some(vE($,[r0])));return{dom:rw(m.ariaLabel),optComponents:[S,F,m.shortcutContent.map(ow),A,m.caret]}})(e,r,s,l),aw=(e,r)=>Xt(e,"tooltipWorker").map(s=>[L2.config({lazySink:r.getSink,tooltipDom:{tag:"div",classes:["tox-tooltip-worker-container"]},tooltipComponents:[],anchor:l=>({type:"submenu",item:l,overrides:{maxHeightFunction:wg}}),mode:"follow-highlight",onShow:(l,m)=>{s(g=>{L2.setComponents(l,[ib({element:St(g)})])})}})]).getOr([]),sw=(e,r)=>{const s=(l=>Qb.DOM.encode(l))(jc.translate(e));if(r.length>0){const l=new RegExp((m=>m.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))(r),"gi");return s.replace(l,m=>`${m}`)}return s},b0=(e,r)=>dt(e,s=>{switch(s.type){case"cardcontainer":return((g,h)=>{const x=g.direction==="vertical"?"tox-collection__item-container--column":f2,w=g.align==="left"?"tox-collection__item-container--align-left":"tox-collection__item-container--align-right";return{dom:{tag:"div",classes:[p2,x,w,(()=>{switch(g.valign){case"top":return"tox-collection__item-container--valign-top";case"middle":return"tox-collection__item-container--valign-middle";case"bottom":return"tox-collection__item-container--valign-bottom"}})()]},components:h}})(s,b0(s.items,r));case"cardimage":return((g,h,x)=>({dom:{tag:"img",classes:h,attributes:{src:g,alt:x.getOr("")}}}))(s.src,s.classes,s.alt);case"cardtext":const l=s.name.exists(g=>Rt(r.cardText.highlightOn,g)),m=l?R.from(r.cardText.matchText).getOr(""):"";return vE(sw(s.text,m),s.classes)}}),$2=Mr(px(),Km()),U2=e=>({value:Z2(e)}),Tm=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,iw=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,Li=e=>Tm.test(e)||iw.test(e),Z2=e=>Ys(e,"#").toUpperCase(),lw=e=>{const r=e.toString(16);return(r.length===1?"0"+r:r).toUpperCase()},hy=e=>{const r=lw(e.red)+lw(e.green)+lw(e.blue);return U2(r)},q2=Math.min,W2=Math.max,y0=Math.round,lO=/^\s*rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)\s*$/i,cO=/^\s*rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?(?:\.\d+)?)\s*\)\s*$/i,Xg=(e,r,s,l)=>({red:e,green:r,blue:s,alpha:l}),v0=e=>{const r=parseInt(e,10);return r.toString()===e&&r>=0&&r<=255},xE=e=>{let r,s,l;const m=(e.hue||0)%360;let g=e.saturation/100,h=e.value/100;if(g=W2(0,q2(g,1)),h=W2(0,q2(h,1)),g===0)return r=s=l=y0(255*h),Xg(r,s,l,1);const x=m/60,w=h*g,S=w*(1-Math.abs(x%2-1)),A=h-w;switch(Math.floor(x)){case 0:r=w,s=S,l=0;break;case 1:r=S,s=w,l=0;break;case 2:r=0,s=w,l=S;break;case 3:r=0,s=S,l=w;break;case 4:r=S,s=0,l=w;break;case 5:r=w,s=0,l=S;break;default:r=s=l=0}return r=y0(255*(r+A)),s=y0(255*(s+A)),l=y0(255*(l+A)),Xg(r,s,l,1)},x0=e=>{const r=(g=>{const h=(w=>({value:w.value.replace(Tm,(A,N,F,$)=>N+N+F+F+$+$)}))(g),x=iw.exec(h.value);return x===null?["FFFFFF","FF","FF","FF"]:x})(e),s=parseInt(r[1],16),l=parseInt(r[2],16),m=parseInt(r[3],16);return Xg(s,l,m,1)},wE=(e,r,s,l)=>{const m=parseInt(e,10),g=parseInt(r,10),h=parseInt(s,10),x=parseFloat(l);return Xg(m,g,h,x)},cw=e=>{if(e==="transparent")return R.some(Xg(0,0,0,0));const r=lO.exec(e);if(r!==null)return R.some(wE(r[1],r[2],r[3],"1"));const s=cO.exec(e);return s!==null?R.some(wE(s[1],s[2],s[3],s[4])):R.none()},G2=e=>`rgba(${e.red},${e.green},${e.blue},${e.alpha})`,kE=Xg(255,0,0,1),K2=(e,r)=>{e.dispatch("ResizeContent",r)},Y2=(e,r)=>{e.dispatch("TextColorChange",r)},dO=(e,r)=>e.dispatch("ResolveName",{name:r.nodeName.toLowerCase(),target:r}),dw=(e,r)=>()=>{e(),r()},hc=e=>Jm(e,"NodeChange",r=>{r.setEnabled(e.selection.isEditable())}),Th=(e,r)=>s=>{const l=hc(e)(s),m=((g,h)=>x=>{const w=vg(),S=()=>{x.setActive(g.formatter.match(h));const A=g.formatter.formatChanged(h,x.setActive);w.set(A)};return g.initialized?S():g.once("init",S),()=>{g.off("init",S),w.clear()}})(e,r)(s);return()=>{l(),m()}},Jm=(e,r,s)=>l=>{const m=()=>s(l),g=()=>{s(l),e.on(r,m)};return e.initialized?g():e.once("init",g),()=>{e.off("init",g),e.off(r,m)}},w0=e=>r=>()=>{e.undoManager.transact(()=>{e.focus(),e.execCommand("mceToggleFormat",!1,r.format)})},Kl=(e,r)=>()=>e.execCommand(r);var mf=tinymce.util.Tools.resolve("tinymce.util.LocalStorage");const X2={},_E=e=>Xt(X2,e).getOrThunk(()=>{const r=`tinymce-custom-colors-${e}`,s=mf.getItem(r);if(To(s)){const m=mf.getItem("tinymce-custom-colors");mf.setItem(r,Ue(m)?m:"[]")}const l=((m,g=10)=>{const h=mf.getItem(m),x=io(h)?JSON.parse(h):[],w=g-(S=x).length<0?S.slice(0,g):S;var S;const A=N=>{w.splice(N,1)};return{add:N=>{ht(w,N).each(A),w.unshift(N),w.length>g&&w.pop(),mf.setItem(m,JSON.stringify(w))},state:()=>w.slice(0)}})(r,10);return X2[e]=l,l}),CE=(e,r)=>{_E(e).add(r)},k0=(e,r,s)=>({hue:e,saturation:r,value:s}),J2=e=>{let r=0,s=0,l=0;const m=e.red/255,g=e.green/255,h=e.blue/255,x=Math.min(m,Math.min(g,h)),w=Math.max(m,Math.max(g,h));return x===w?(l=x,k0(0,0,100*l)):(r=m===x?3:h===x?1:5,r=60*(r-(m===x?g-h:h===x?m-g:h-m)/(w-x)),s=(w-x)/w,l=w,k0(Math.round(r),Math.round(100*s),Math.round(100*l)))},Q2=e=>hy(xE(e)),by=e=>{return(r=e,Li(r)?R.some({value:Z2(r)}):R.none()).orThunk(()=>cw(e).map(hy)).getOrThunk(()=>{const s=document.createElement("canvas");s.height=1,s.width=1;const l=s.getContext("2d");l.clearRect(0,0,s.width,s.height),l.fillStyle="#FFFFFF",l.fillStyle=e,l.fillRect(0,0,1,1);const m=l.getImageData(0,0,1,1).data,g=m[0],h=m[1],x=m[2],w=m[3];return hy(Xg(g,h,x,w))});var r},Jg="forecolor",uw="hilitecolor",SE=e=>{const r=[];for(let s=0;sr=>r.options.get(e),zh="#000000",gf=(e,r)=>r===Jg&&e.options.isSet("color_map_foreground")?hu("color_map_foreground")(e):r===uw&&e.options.isSet("color_map_background")?hu("color_map_background")(e):hu("color_map")(e),yy=(e,r="default")=>Math.max(5,Math.ceil(Math.sqrt(gf(e,r).length))),mw=(e,r)=>{const s=hu("color_cols")(e),l=yy(e,r);return s===yy(e)?l:s},eC=(e,r="default")=>Math.round(r===Jg?hu("color_cols_foreground")(e):r===uw?hu("color_cols_background")(e):hu("color_cols")(e)),EE=hu("custom_colors"),TE=hu("color_default_foreground"),uO=hu("color_default_background"),zE=(e,r)=>{const s=St(e.selection.getStart()),l=r==="hilitecolor"?qs(s,m=>{if(wt(m)){const g=aa(m,"background-color");return ln(cw(g).exists(h=>h.alpha!==0),g)}return R.none()}).getOr("rgba(0, 0, 0, 0)"):aa(s,"color");return cw(l).map(m=>"#"+hy(m).value)},tC=e=>{const r="choiceitem",s={type:r,text:"Remove color",icon:"color-swatch-remove-color",value:"remove"};return e?[s,{type:r,text:"Custom color",icon:"color-picker",value:"custom"}]:[s]},gw=(e,r,s,l)=>{s==="custom"?rC(e)(m=>{m.each(g=>{CE(r,g),e.execCommand("mceApplyTextcolor",r,g),l(g)})},zE(e,r).getOr(zh)):s==="remove"?(l(""),e.execCommand("mceRemoveTextcolor",r)):(l(s),e.execCommand("mceApplyTextcolor",r,s))},oC=(e,r,s)=>e.concat((l=>dt(_E(l).state(),m=>({type:"choiceitem",text:m,icon:"checkmark",value:m})))(r).concat(tC(s))),nC=(e,r,s)=>l=>{l(oC(e,r,s))},pf=(e,r,s)=>{const l=r==="forecolor"?"tox-icon-text-color__color":"tox-icon-highlight-bg-color__color";e.setIconFill(l,s)},AE=(e,r)=>{e.setTooltip(r)},OE=(e,r)=>s=>{const l=zE(e,r);return Rr(l,s.toUpperCase())},vy=(e,r,s)=>{if($s(s))return r==="forecolor"?"Text color":"Background color";const l=r==="forecolor"?"Text color {0}":"Background color {0}",m=oC(gf(e,r),r,!1),g=to(m,h=>h.value===s).getOr({text:""}).text;return e.translate([l,e.translate(g)])},Pd=(e,r,s,l)=>{e.ui.registry.addSplitButton(r,{tooltip:vy(e,s,l.get()),presets:"color",icon:r==="forecolor"?"text-color":"highlight-bg-color",select:OE(e,s),columns:eC(e,s),fetch:nC(gf(e,s),s,EE(e)),onAction:m=>{gw(e,s,l.get(),he)},onItemAction:(m,g)=>{gw(e,s,g,h=>{l.set(h),Y2(e,{name:r,color:h})})},onSetup:m=>{pf(m,r,l.get());const g=h=>{h.name===r&&(pf(m,h.name,h.color),AE(m,vy(e,s,h.color)))};return e.on("TextColorChange",g),dw(hc(e)(m),()=>{e.off("TextColorChange",g)})}})},pw=(e,r,s,l,m)=>{e.ui.registry.addNestedMenuItem(r,{text:l,icon:r==="forecolor"?"text-color":"highlight-bg-color",onSetup:g=>(AE(g,vy(e,s,m.get())),pf(g,r,m.get()),hc(e)(g)),getSubmenuItems:()=>[{type:"fancymenuitem",fancytype:"colorswatch",select:OE(e,s),initData:{storageKey:s},onAction:g=>{gw(e,s,g.value,h=>{m.set(h),Y2(e,{name:r,color:h})})}}]})},rC=e=>(r,s)=>{let l=!1;const m={colorpicker:s};e.windowManager.open({title:"Color Picker",size:"normal",body:{type:"panel",items:[{type:"colorpicker",name:"colorpicker",label:"Color"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:m,onAction:(g,h)=>{h.name==="hex-valid"&&(l=h.value)},onSubmit:g=>{const h=g.getData().colorpicker;l?(r(R.from(h)),g.close()):e.windowManager.alert(e.translate(["Invalid hex color code: {0}",h]))},onClose:he,onCancel:()=>{r(R.none())}})},aC=(e,r,s,l,m,g,h,x)=>{const w=i0(r),S=mO(r,s,l,m!=="color"?"normal":"color",g,h,x);return Yx(e,w,S,l,{menuType:m})},mO=(e,r,s,l,m,g,h)=>Wt(dt(e,x=>{return x.type==="choiceitem"?(w=x,ka("choicemenuitem",nO,w)).fold(Sm,S=>R.some(((A,N,F,$,W,se,le,fe=!0)=>{const te=fy({presets:F,textContent:N?A.text:R.none(),htmlContent:R.none(),ariaLabel:A.text,iconContent:A.icon,shortcutContent:N?A.shortcut:R.none(),checkMark:N?R.some(nw(le.icons)):R.none(),caret:R.none(),value:A.value},le,fe);return Da(gy({data:py(A),enabled:A.enabled,getApi:X=>({setActive:ue=>{Dr.set(X,ue)},isActive:()=>Dr.isOn(X),isEnabled:()=>!Qn.isDisabled(X),setEnabled:ue=>Qn.set(X,!ue)}),onAction:X=>$(A.value),onSetup:X=>(X.setActive(W),he),triggersSubmenu:!1,itemBehaviours:[]},te,se,le),{toggling:{toggleClass:u2,toggleOnExecute:!1,selected:A.active,exclusive:!0}})})(S,s===1,l,r,g(S.value),m,h,i0(e)))):R.none();var w})),_0=(e,r)=>{const s=cf(r);return e===1?{mode:"menu",moveOnTab:!0}:e==="auto"?{mode:"grid",selector:"."+s.item,initSize:{numColumns:1,numRows:1}}:{mode:"matrix",rowSelector:"."+(r==="color"?"tox-swatches__row":"tox-collection__group"),previousSelector:l=>r==="color"?vs(l.element,"[aria-checked=true]"):R.none()}},sC=un("cell-over"),iC=un("cell-execute"),gO=(e,r,s)=>{const l=g=>_n(g,iC,{row:e,col:r}),m=(g,h)=>{h.stop(),l(g)};return yl({dom:{tag:"div",attributes:{role:"button","aria-label":s}},behaviours:Oo([Tr("insert-table-picker-cell",[Kt(Te(),er.focus),Kt(fl(),l),Kt(fa(),m),Kt(Fm(),m)]),Dr.config({toggleClass:"tox-insert-table-picker__selected",toggleOnExecute:!1}),er.config({onFocus:g=>_n(g,sC,{row:e,col:r})})])})},NE=e=>ct(e,r=>dt(r,Tc)),lC=(e,r)=>Ya(`${r}x${e}`),ME={inserttable:(e,r)=>{const s=(h=>(x,w)=>h.shared.providers.translate(["{0} columns, {1} rows",w,x]))(r),l=((h,x,w)=>{const S=[];for(let A=0;A<10;A++){const N=[];for(let F=0;F<10;F++){const $=h(A+1,F+1);N.push(gO(A,F,$))}S.push(N)}return S})(s),m=lC(0,0),g=Ta({dom:{tag:"span",classes:["tox-insert-table-picker__label"]},components:[m],behaviours:Oo([fr.config({})])});return{type:"widget",data:{value:un("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[$2.widget({dom:{tag:"div",classes:["tox-insert-table-picker"]},components:NE(l).concat(g.asSpec()),behaviours:Oo([Tr("insert-table-picker",[La(h=>{fr.set(g.get(h),[m])}),Lf(sC,(h,x,w)=>{const{row:S,col:A}=w.event;((N,F,$,W,se)=>{for(let le=0;le<10;le++)for(let fe=0;fe<10;fe++)Dr.set(N[le][fe],le<=F&&fe<=$)})(l,S,A),fr.set(g.get(h),[lC(S+1,A+1)])}),Lf(iC,(h,x,w)=>{const{row:S,col:A}=w.event;e.onAction({numRows:S+1,numColumns:A+1}),$r(h,Sd())})]),Dn.config({initSize:{numRows:10,numColumns:10},mode:"flatgrid",selector:'[role="button"]'})])})]}},colorswatch:(e,r)=>{const s=((h,x)=>{const w=h.initData.allowCustomColors&&x.colorinput.hasCustomColors();return h.initData.colors.fold(()=>oC(x.colorinput.getColors(h.initData.storageKey),h.initData.storageKey,w),S=>S.concat(tC(w)))})(e,r),l=r.colorinput.getColorCols(e.initData.storageKey),m="color",g={...aC(un("menu-value"),s,h=>{e.onAction({value:h})},l,m,Oc.CLOSE_ON_EXECUTE,e.select.getOr(Bo),r.shared.providers),markers:cf(m),movement:_0(l,m)};return{type:"widget",data:{value:un("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[$2.widget(lf.sketch(g))]}}},DE=e=>({type:"separator",dom:{tag:"div",classes:[ny,"tox-collection__group-heading"]},components:e.text.map(Ya).toArray()});var cC=Object.freeze({__proto__:null,getCoupled:(e,r,s,l)=>s.getOrCreate(e,r,l),getExistingCoupled:(e,r,s,l)=>s.getExisting(e,r,l)}),RE=[ni("others",Cu(Fr.value,Cl()))],BE=Object.freeze({__proto__:null,init:()=>{const e={},r=(l,m)=>{if(Vt(l.others).length===0)throw new Error("Cannot find any known coupled components");return Xt(e,m)},s=me({});return Ia({readState:s,getExisting:(l,m,g)=>r(m,g).orThunk(()=>(Xt(m.others,g).getOrDie("No information found for coupled component: "+g),R.none())),getOrCreate:(l,m,g)=>r(m,g).getOrThunk(()=>{const h=Xt(m.others,g).getOrDie("No information found for coupled component: "+g)(l),x=l.getSystem().build(h);return e[g]=x,x})})}});const js=Ri({fields:RE,name:"coupling",apis:cC,state:BE}),dC=e=>{let r=R.none(),s=[];const l=h=>{m()?g(h):s.push(h)},m=()=>r.isSome(),g=h=>{r.each(x=>{setTimeout(()=>{h(x)},0)})};return e(h=>{m()||(r=R.some(h),Ie(s,g),s=[])}),{get:l,map:h=>dC(x=>{l(w=>{x(h(w))})}),isReady:m}},pO={nu:dC,pure:e=>dC(r=>{r(e)})},FE=e=>{setTimeout(()=>{throw e},0)},Ah=e=>{const r=s=>{e().then(s,FE)};return{map:s=>Ah(()=>e().then(s)),bind:s=>Ah(()=>e().then(l=>s(l).toPromise())),anonBind:s=>Ah(()=>e().then(()=>s.toPromise())),toLazy:()=>pO.nu(r),toCached:()=>{let s=null;return Ah(()=>(s===null&&(s=e()),s))},toPromise:e,get:r}},Qg=e=>Ah(()=>new Promise(e)),zm=e=>Ah(()=>Promise.resolve(e)),uC=me("sink"),LE=me(No({name:uC(),overrides:me({dom:{tag:"div"},behaviours:Oo([xl.config({useFixed:Ct})]),events:qa([jl(fn()),jl(ai()),jl(fa())])})})),fw=(e,r)=>{const s=e.getHotspot(r).getOr(r),l="hotspot",m=e.getAnchorOverrides();return e.layouts.fold(()=>({type:l,hotspot:s,overrides:m}),g=>({type:l,hotspot:s,overrides:m,layouts:g}))},Gu=(e,r,s,l,m,g,h)=>((w,S,A,N,F,$,W)=>{const se=((fe,te,X)=>(0,fe.fetch)(X).map(te))(w,S,N),le=IE(N,w);return se.map(fe=>fe.bind(te=>R.from(Ug.sketch({...$.menu(),uid:G(""),data:te,highlightOnOpen:W,onOpenMenu:(X,ue)=>{const ye=le().getOrDie();xl.position(ye,ue,{anchor:A}),Lr.decloak(F)},onOpenSubmenu:(X,ue,ye)=>{const we=le().getOrDie();xl.position(we,ye,{anchor:{type:"submenu",item:ue}}),Lr.decloak(F)},onRepositionMenu:(X,ue,ye)=>{const we=le().getOrDie();xl.position(we,ue,{anchor:A}),Ie(ye,Ye=>{xl.position(we,Ye.triggeredMenu,{anchor:{type:"submenu",item:Ye.triggeringItem}})})},onEscape:()=>(er.focus(N),Lr.close(F),R.some(!0))}))))})(e,r,fw(e,s),s,l,m,h).map(w=>(w.fold(()=>{Lr.isOpen(l)&&Lr.close(l)},S=>{Lr.cloak(l),Lr.open(l,S),g(l)}),l)),C0=(e,r,s,l,m,g,h)=>(Lr.close(l),zm(l)),S0=(e,r,s,l,m,g)=>{const h=js.getCoupled(s,"sandbox");return(Lr.isOpen(h)?C0:Gu)(e,r,s,h,l,m,g)},IE=(e,r)=>e.getSystem().getByUid(r.uid+"-"+uC()).map(s=>()=>Fr.value(s)).getOrThunk(()=>r.lazySink.fold(()=>()=>Fr.error(new Error("No internal sink is specified, nor could an external sink be found")),s=>()=>s(e))),PE=e=>{Lr.getState(e).each(r=>{Ug.repositionMenus(r)})},hw=(e,r,s)=>{const l=Ap(),m=IE(r,e);return{dom:{tag:"div",classes:e.sandboxClasses,attributes:{id:l.id,role:"listbox"}},behaviours:Bg(e.sandboxBehaviours,[Wo.config({store:{mode:"memory",initialValue:r}}),Lr.config({onOpen:(g,h)=>{const x=fw(e,r);l.link(r.element),e.matchWidth&&((w,S,A)=>{const N=Gr.getCurrent(S).getOr(S),F=Ga(w.element);A?Bn(N.element,"min-width",F+"px"):(($,W)=>{ma.set($,W)})(N.element,F)})(x.hotspot,h,e.useMinWidth),e.onOpen(x,g,h),s!==void 0&&s.onOpen!==void 0&&s.onOpen(g,h)},onClose:(g,h)=>{l.unlink(r.element),s!==void 0&&s.onClose!==void 0&&s.onClose(g,h)},isPartOf:(g,h,x)=>si(h,x)||si(r,x),getAttachPoint:()=>m().getOrDie()}),Gr.config({find:g=>Lr.getState(g).bind(h=>Gr.getCurrent(h))}),tc.config({channels:{...Rg({isExtraPart:Bo}),...Zp({doReposition:PE})}})])}},bw=e=>{const r=js.getCoupled(e,"sandbox");PE(r)},E0=()=>[ft("sandboxClasses",[]),nc("sandboxBehaviours",[Gr,tc,Lr,Wo])],mC=me([Yt("dom"),Yt("fetch"),Hr("onOpen"),Ol("onExecute"),ft("getHotspot",R.some),ft("getAnchorOverrides",me({})),hm(),qi("dropdownBehaviours",[Dr,js,Dn,er]),Yt("toggleClass"),ft("eventOrder",{}),la("lazySink"),ft("matchWidth",!1),ft("useMinWidth",!1),la("role")].concat(E0())),bu=me([Ro({schema:[jf(),ft("fakeFocus",!1)],name:"menu",defaults:e=>({onExecute:e.onExecute})}),LE()]),Hd=Wl({name:"Dropdown",configFields:mC(),partFields:bu(),factory:(e,r,s,l)=>{const m=w=>{Lr.getState(w).each(S=>{Ug.highlightPrimary(S)})},g=(w,S,A)=>S0(e,Ze,w,l,S,A),h={expand:w=>{Dr.isOn(w)||g(w,he,Gl.HighlightNone).get(he)},open:w=>{Dr.isOn(w)||g(w,he,Gl.HighlightMenuAndItem).get(he)},refetch:w=>js.getExistingCoupled(w,"sandbox").fold(()=>g(w,he,Gl.HighlightMenuAndItem).map(he),S=>Gu(e,Ze,w,S,l,he,Gl.HighlightMenuAndItem).map(he)),isOpen:Dr.isOn,close:w=>{Dr.isOn(w)&&g(w,he,Gl.HighlightMenuAndItem).get(he)},repositionMenus:w=>{Dr.isOn(w)&&bw(w)}},x=(w,S)=>(Qd(w),R.some(!0));return{uid:e.uid,dom:e.dom,components:r,behaviours:Fi(e.dropdownBehaviours,[Dr.config({toggleClass:e.toggleClass,aria:{mode:"expanded"}}),js.config({others:{sandbox:w=>hw(e,w,{onOpen:()=>Dr.on(w),onClose:()=>Dr.off(w)})}}),Dn.config({mode:"special",onSpace:x,onEnter:x,onDown:(w,S)=>{if(Hd.isOpen(w)){const A=js.getCoupled(w,"sandbox");m(A)}else Hd.open(w);return R.some(!0)},onEscape:(w,S)=>Hd.isOpen(w)?(Hd.close(w),R.some(!0)):R.none()}),er.config({})]),events:B1(R.some(w=>{g(w,m,Gl.HighlightMenuAndItem).get(he)})),eventOrder:{...e.eventOrder,[fl()]:["disabling","toggling","alloy.base.behaviour"]},apis:h,domModification:{attributes:{"aria-haspopup":"true",...e.role.fold(()=>({}),w=>({role:w})),...e.dom.tag==="button"?{type:Xt(e.dom,"attributes").bind(w=>Xt(w,"type")).getOr("button")}:{}}}}},apis:{open:(e,r)=>e.open(r),refetch:(e,r)=>e.refetch(r),expand:(e,r)=>e.expand(r),close:(e,r)=>e.close(r),isOpen:(e,r)=>e.isOpen(r),repositionMenus:(e,r)=>e.repositionMenus(r)}}),gC=(e,r,s)=>{_2(e).each(l=>{var m;((g,h)=>{Ca(h.element,"id").each(x=>Kn(g.element,"aria-activedescendant",x))})(l,s),(Di((m=r).element,ay)?R.some(m.element):vs(m.element,"."+ay)).each(g=>{Ca(g,"id").each(h=>Kn(l.element,"aria-controls",h))})}),Kn(s.element,"aria-selected","true")},fO=(e,r,s)=>{Kn(s.element,"aria-selected","false")},HE=e=>js.getExistingCoupled(e,"sandbox").bind(s0).map(eE).map(r=>r.fetchPattern).getOr("");var xy;(function(e){e[e.ContentFocus=0]="ContentFocus",e[e.UiFocus=1]="UiFocus"})(xy||(xy={}));const pC=(e,r,s,l,m)=>{const g=s.shared.providers,h=w=>m?{...w,shortcut:R.none(),icon:w.text.isSome()?R.none():w.icon}:w;switch(e.type){case"menuitem":return(x=e,ka("menuitem",mE,x)).fold(Sm,w=>R.some(((S,A,N,F=!0)=>{const $=fy({presets:"normal",iconContent:S.icon,textContent:S.text,htmlContent:R.none(),ariaLabel:S.text,caret:R.none(),checkMark:R.none(),shortcutContent:S.shortcut},N,F);return gy({data:py(S),getApi:W=>({isEnabled:()=>!Qn.isDisabled(W),setEnabled:se=>Qn.set(W,!se)}),enabled:S.enabled,onAction:S.onAction,onSetup:S.onSetup,triggersSubmenu:!1,itemBehaviours:[]},$,A,N)})(h(w),r,g,l)));case"nestedmenuitem":return(w=>ka("nestedmenuitem",gE,w))(e).fold(Sm,w=>R.some(((S,A,N,F=!0,$=!1)=>{const W=$?(se=N.icons,tw("chevron-down",se,[g2])):(fe=>tw("chevron-right",fe,[g2]))(N.icons);var se;const le=fy({presets:"normal",iconContent:S.icon,textContent:S.text,htmlContent:R.none(),ariaLabel:S.text,caret:R.some(W),checkMark:R.none(),shortcutContent:S.shortcut},N,F);return gy({data:py(S),getApi:fe=>({isEnabled:()=>!Qn.isDisabled(fe),setEnabled:te=>Qn.set(fe,!te),setIconFill:(te,X)=>{vs(fe.element,`svg path[class="${te}"], rect[class="${te}"]`).each(ue=>{Kn(ue,"fill",X)})},setTooltip:te=>{const X=N.translate(te);Os(fe.element,{"aria-label":X,title:X})}}),enabled:S.enabled,onAction:he,onSetup:S.onSetup,triggersSubmenu:!0,itemBehaviours:[]},le,A,N)})(h(w),r,g,l,m)));case"togglemenuitem":return(w=>ka("togglemenuitem",pE,w))(e).fold(Sm,w=>R.some(((S,A,N,F=!0)=>{const $=fy({iconContent:S.icon,textContent:S.text,htmlContent:R.none(),ariaLabel:S.text,checkMark:R.some(nw(N.icons)),caret:R.none(),shortcutContent:S.shortcut,presets:"normal",meta:S.meta},N,F);return Da(gy({data:py(S),enabled:S.enabled,getApi:W=>({setActive:se=>{Dr.set(W,se)},isActive:()=>Dr.isOn(W),isEnabled:()=>!Qn.isDisabled(W),setEnabled:se=>Qn.set(W,!se)}),onAction:S.onAction,onSetup:S.onSetup,triggersSubmenu:!1,itemBehaviours:[]},$,A,N),{toggling:{toggleClass:u2,toggleOnExecute:!1,selected:S.active}})})(h(w),r,g,l)));case"separator":return(w=>ka("separatormenuitem",rE,w))(e).fold(Sm,w=>R.some(DE(w)));case"fancymenuitem":return(w=>ka("fancymenuitem",B2,w))(e).fold(Sm,w=>((S,A)=>Xt(ME,S.fancytype).map(N=>N(S,A)))(w,s));default:return console.error("Unknown item in general menu",e),R.none()}var x},wy=(e,r,s,l,m,g,h)=>{const x=l===1,w=!x||i0(e);return Wt(dt(e,S=>{switch(S.type){case"separator":return(A=S,ka("Autocompleter.Separator",rE,A)).fold(Sm,N=>R.some(DE(N)));case"cardmenuitem":return(N=>ka("cardmenuitem",oO,N))(S).fold(Sm,N=>R.some(((F,$,W,se)=>{const le={dom:rw(F.label),optComponents:[R.some({dom:{tag:"div",classes:[p2,f2]},components:b0(F.items,se)})]};return gy({data:py({text:R.none(),...F}),enabled:F.enabled,getApi:fe=>({isEnabled:()=>!Qn.isDisabled(fe),setEnabled:te=>{Qn.set(fe,!te),Ie(Zl(fe.element,"*"),X=>{fe.getSystem().getByDom(X).each(ue=>{ue.hasConfigured(Qn)&&Qn.set(ue,!te)})})}}),onAction:F.onAction,onSetup:F.onSetup,triggersSubmenu:!1,itemBehaviours:R.from(se.itemBehaviours).getOr([])},le,$,W.providers)})({...N,onAction:F=>{N.onAction(F),s(N.value,N.meta)}},m,g,{itemBehaviours:aw(N.meta,g),cardText:{matchText:r,highlightOn:h}})));default:return(N=>ka("Autocompleter.Item",N2,N))(S).fold(Sm,N=>R.some(((F,$,W,se,le,fe,te,X=!0)=>{const ue=fy({presets:se,textContent:R.none(),htmlContent:W?F.text.map(ye=>sw(ye,$)):R.none(),ariaLabel:F.text,iconContent:F.icon,shortcutContent:R.none(),checkMark:R.none(),caret:R.none(),value:F.value},te.providers,X,F.icon);return gy({data:py(F),enabled:F.enabled,getApi:me({}),onAction:ye=>le(F.value,F.meta),onSetup:me(he),triggersSubmenu:!1,itemBehaviours:aw(F.meta,te)},ue,fe,te.providers)})(N,r,x,"normal",s,m,g,w)))}var A}))},fC=(e,r,s,l,m,g)=>{const h=i0(r),x=Wt(dt(r,S=>{const A=N=>pC(N,s,l,(F=>m?!Vo(F,"text"):h)(N),m);return S.type==="nestedmenuitem"&&S.getSubmenuItems().length<=0?A({...S,enabled:!1}):A(S)})),w=(S=>S.searchMode==="no-search"?{menuType:"normal"}:{menuType:"searchable",searchMode:S})(g);return(m?ZA:Yx)(e,h,x,1,w)},yw=e=>Ug.singleData(e.value,e),jE=(e,r)=>{const s=un("autocompleter"),l=Sn(!1),m=Sn(!1),g=yl(Rs.sketch({dom:{tag:"div",classes:["tox-autocompleter"],attributes:{id:s}},components:[],fireDismissalEventInstead:{},inlineBehaviours:Oo([Tr("dismissAutocompleter",[Kt(Ou(),()=>A()),Kt(dg(),($,W)=>{Ca(W.event.target,"id").each(se=>Kn(St(e.getBody()),"aria-activedescendant",se))})])]),lazySink:r.getSink})),h=()=>Rs.isOpen(g),x=m.get,w=()=>{if(h()){Rs.hide(g),e.dom.remove(s,!1);const $=St(e.getBody());Ca($,"aria-owns").filter(W=>W===s).each(()=>{xa($,"aria-owns"),xa($,"aria-activedescendant")})}},S=()=>Rs.getContent(g).bind($=>Me($.components(),0)),A=()=>e.execCommand("mceAutocompleterClose"),N=$=>{const W=(se=>{const le=Gt(se,fe=>R.from(fe.columns)).getOr(1);return ct(se,fe=>{const te=fe.items;return wy(te,fe.matchText,(X,ue)=>{const ye=e.selection.getRng();((we,Ye)=>c2(St(Ye.startContainer)).map(Tt=>{const Qt=we.createRng();return Qt.selectNode(Tt.dom),Qt}))(e.dom,ye).each(we=>{const Ye={hide:()=>A(),reload:Tt=>{w(),e.execCommand("mceAutocompleterReload",!1,{fetchOptions:Tt})}};l.set(!0),fe.onAction(Ye,we,X,ue),l.set(!1)})},le,Oc.BUBBLE_TO_SANDBOX,r,fe.highlightOn)})})($);W.length>0?(((se,le)=>{var fe;(fe=St(e.getBody()),vs(fe,qx)).each(te=>{const X=Gt(se,ue=>R.from(ue.columns)).getOr(1);Rs.showMenuAt(g,{anchor:{type:"node",root:St(e.getBody()),node:R.from(te)}},((ue,ye,we,Ye)=>{const Tt=_0(ye,Ye),Qt=cf(Ye);return{data:yw({...ue,movement:Tt,menuBehaviours:cy(ye!=="auto"?[]:[La((no,oo)=>{Qx(no,4,Qt.item).each(({numColumns:Uo,numRows:pn})=>{Dn.setGridSize(no,pn,Uo)})})])}),menu:{markers:cf(Ye),fakeFocus:we===xy.ContentFocus}}})(Yx("autocompleter-value",!0,le,X,{menuType:"normal"}),X,xy.ContentFocus,"normal"))}),S().each(ba.highlightFirst)})($,W),Kn(St(e.getBody()),"aria-owns",s),e.inline||F()):w()},F=()=>{e.dom.get(s)&&e.dom.remove(s,!1);const $=e.getDoc().documentElement,W=e.selection.getNode(),se=(le=>Vm(le,!0))(g.element);ji(se,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px",top:`${W.offsetTop}px`,left:`${W.offsetLeft}px`}),e.dom.add($,se.dom),vs(se,'[role="menu"]').each(le=>{Pr(le,"position"),Pr(le,"max-height")})};e.on("AutocompleterStart",({lookupData:$})=>{m.set(!0),l.set(!1),N($)}),e.on("AutocompleterUpdate",({lookupData:$})=>N($)),e.on("AutocompleterEnd",()=>{w(),m.set(!1),l.set(!1)}),(($,W)=>{const se=(fe,te)=>{_n(fe,fn(),{raw:te})},le=()=>$.getMenu().bind(ba.getHighlighted);W.on("keydown",fe=>{const te=fe.which;$.isActive()&&($.isMenuOpen()?te===13?(le().each(Qd),fe.preventDefault()):te===40?(le().fold(()=>{$.getMenu().each(ba.highlightFirst)},X=>{se(X,fe)}),fe.preventDefault(),fe.stopImmediatePropagation()):te!==37&&te!==38&&te!==39||le().each(X=>{se(X,fe),fe.preventDefault(),fe.stopImmediatePropagation()}):te!==13&&te!==38&&te!==40||$.cancelIfNecessary())}),W.on("NodeChange",fe=>{$.isActive()&&!$.isProcessingAction()&&c2(St(fe.element)).isNone()&&$.cancelIfNecessary()})})({cancelIfNecessary:A,isMenuOpen:h,isActive:x,isProcessingAction:l.get,getMenu:S},e)},vw=["visible","hidden","clip"],VE=e=>Ha(e).length>0&&!Rt(vw,e),$E=e=>{if(Ae(e)){const r=aa(e,"overflow-x"),s=aa(e,"overflow-y");return VE(r)||VE(s)}return!1},ff=(e,r)=>qg(e)?(s=>{const l=h1(s,$E),m=l.length===0?va(s).map(Cs).map(g=>h1(g,$E)).getOr([]):l;return at(m).map(g=>({element:g,others:m.slice(1)}))})(r):R.none(),Oh=e=>{const r=[...dt(e.others,Fa),Ua()];return((s,l)=>zo(l,(m,g)=>Kc(m,g),s))(Fa(e.element),r)},Nh=(e,r,s)=>Vl(e,r,s).isSome(),hC=(e,r)=>{let s=null;return{cancel:()=>{s!==null&&(clearTimeout(s),s=null)},schedule:(...l)=>{s=setTimeout(()=>{e.apply(null,l),s=null},r)}}},bc=e=>{const r=e.raw;return r.touches===void 0||r.touches.length!==1?R.none():R.some(r.touches[0])},UE=(e,r)=>{const s={stopBackspace:!0,...r},l=(N=>{const F=ms(),$=Sn(!1),W=hC(le=>{N.triggerEvent(ys(),le),$.set(!0)},400),se=Oi([{key:Ws(),value:le=>(bc(le).each(fe=>{W.cancel();const te={x:fe.clientX,y:fe.clientY,target:le.target};W.schedule(le),$.set(!1),F.set(te)}),R.none())},{key:ed(),value:le=>(W.cancel(),bc(le).each(fe=>{F.on(te=>{((X,ue)=>{const ye=Math.abs(X.clientX-ue.x),we=Math.abs(X.clientY-ue.y);return ye>5||we>5})(fe,te)&&F.clear()})}),R.none())},{key:Hl(),value:le=>(W.cancel(),F.get().filter(fe=>Jo(fe.target,le.target)).map(fe=>$.get()?(le.prevent(),!1):N.triggerEvent(Fm(),le)))}]);return{fireIfReady:(le,fe)=>Xt(se,fe).bind(te=>te(le))}})(s),m=dt(["touchstart","touchmove","touchend","touchcancel","gesturestart","mousedown","mouseup","mouseover","mousemove","mouseout","click"].concat(["selectstart","input","contextmenu","change","transitionend","transitioncancel","drag","dragstart","dragend","dragenter","dragleave","dragover","drop","keyup"]),N=>Ul(e,N,F=>{l.fireIfReady(F,N).each($=>{$&&F.kill()}),s.triggerEvent(N,F)&&F.kill()})),g=ms(),h=Ul(e,"paste",N=>{l.fireIfReady(N,"paste").each(F=>{F&&N.kill()}),s.triggerEvent("paste",N)&&N.kill(),g.set(setTimeout(()=>{s.triggerEvent(am(),N)},0))}),x=Ul(e,"keydown",N=>{s.triggerEvent("keydown",N)?N.kill():s.stopBackspace&&(F=>F.raw.which===L3[0]&&!Rt(["input","textarea"],gr(F.target))&&!Nh(F.target,'[contenteditable="true"]'))(N)&&N.prevent()}),w=Ul(e,"focusin",N=>{s.triggerEvent("focusin",N)&&N.kill()}),S=ms(),A=Ul(e,"focusout",N=>{s.triggerEvent("focusout",N)&&N.kill(),S.set(setTimeout(()=>{s.triggerEvent(vp(),N)},0))});return{unbind:()=>{Ie(m,N=>{N.unbind()}),x.unbind(),w.unbind(),A.unbind(),h.unbind(),g.on(clearTimeout),S.on(clearTimeout)}}},ZE=(e,r)=>{const s=Xt(e,"target").getOr(r);return Sn(s)},T0=Ui([{stopped:[]},{resume:["element"]},{complete:[]}]),bC=(e,r,s,l,m,g)=>{const h=e(r,l),x=((w,S)=>{const A=Sn(!1),N=Sn(!1);return{stop:()=>{A.set(!0)},cut:()=>{N.set(!0)},isStopped:A.get,isCut:N.get,event:w,setSource:S.set,getSource:S.get}})(s,m);return h.fold(()=>(g.logEventNoHandlers(r,l),T0.complete()),w=>{const S=w.descHandler;return Td(S)(x),x.isStopped()?(g.logEventStopped(r,w.element,S.purpose),T0.stopped()):x.isCut()?(g.logEventCut(r,w.element,S.purpose),T0.complete()):rn(w.element).fold(()=>(g.logNoParent(r,w.element,S.purpose),T0.complete()),A=>(g.logEventResponse(r,w.element,S.purpose),T0.resume(A)))})},qE=(e,r,s,l,m,g)=>bC(e,r,s,l,m,g).fold(Ct,h=>qE(e,r,s,h,m,g),Bo),WE=(e,r,s,l,m)=>{const g=ZE(s,l);return qE(e,r,s,l,g,m)},hO=()=>{const e=(()=>{const l={};return{registerId:(m,g,h)=>{$o(h,(x,w)=>{const S=l[w]!==void 0?l[w]:{};S[g]=((A,N)=>({cHandler:rt.apply(void 0,[A.handler].concat(N)),purpose:A.purpose}))(x,m),l[w]=S})},unregisterId:m=>{$o(l,(g,h)=>{Vo(g,m)&&delete g[m]})},filterByType:m=>Xt(l,m).map(g=>zt(g,(h,x)=>((w,S)=>({id:w,descHandler:S}))(x,h))).getOr([]),find:(m,g,h)=>Xt(l,g).bind(x=>qs(h,w=>((S,A)=>D(A).bind(N=>Xt(S,N)).map(N=>((F,$)=>({element:F,descHandler:$}))(A,N)))(x,w),m))}})(),r={},s=l=>{D(l.element).each(m=>{delete r[m],e.unregisterId(m)})};return{find:(l,m,g)=>e.find(l,m,g),filter:l=>e.filterByType(l),register:l=>{const m=(h=>{const x=h.element;return D(x).getOrThunk(()=>((w,S)=>{const A=un(Du+"uid-");return C(S,A),A})(0,h.element))})(l);$n(r,m)&&((h,x)=>{const w=r[x];if(w!==h)throw new Error('The tagId "'+x+'" is already used by: '+Fc(w.element)+` +Cannot use it for: `+Fc(h.element)+` +The conflicting element is`+(za(w.element)?" ":" not ")+"already in the DOM");s(h)})(l,m);const g=[l];e.registerId(g,m,l.events),r[m]=l},unregister:s,getById:l=>Xt(r,l)}},Ku=Pc({name:"Container",factory:e=>{const{attributes:r,...s}=e.dom;return{uid:e.uid,dom:{tag:"div",attributes:{role:"presentation",...r},...s},components:e.components,behaviours:Hb(e.containerBehaviours),events:e.events,domModification:e.domModification,eventOrder:e.eventOrder}},configFields:[ft("components",[]),qi("containerBehaviours",[]),ft("events",{}),ft("domModification",{}),ft("eventOrder",{})]}),Yu=e=>{const r=le=>rn(e.element).fold(Ct,fe=>Jo(le,fe)),s=hO(),l=(le,fe)=>s.find(r,le,fe),m=UE(e.element,{triggerEvent:(le,fe)=>Pu(le,fe.target,te=>((X,ue,ye,we)=>WE(X,ue,ye,ye.target,we))(l,le,fe,te))}),g={debugInfo:me("real"),triggerEvent:(le,fe,te)=>{Pu(le,fe,X=>WE(l,le,te,fe,X))},triggerFocus:(le,fe)=>{D(le).fold(()=>{sd(le)},te=>{Pu(Xd(),le,X=>(((ue,ye,we,Ye,Tt)=>{const Qt=ZE(we,Ye);bC(ue,ye,we,Ye,Qt,Tt)})(l,Xd(),{originator:fe,kill:he,prevent:he,target:le},le,X),!1))})},triggerEscape:(le,fe)=>{g.triggerEvent("keydown",le.element,fe.event)},getByUid:le=>W(le),getByDom:le=>se(le),build:yl,buildOrPatch:Pf,addToGui:le=>{w(le)},removeFromGui:le=>{S(le)},addToWorld:le=>{h(le)},removeFromWorld:le=>{x(le)},broadcast:le=>{N(le)},broadcastOn:(le,fe)=>{F(le,fe)},broadcastEvent:(le,fe)=>{$(le,fe)},isConnected:Ct},h=le=>{le.connect(g),It(le.element)||(s.register(le),Ie(le.components(),h),g.triggerEvent(Lm(),le.element,{target:le.element}))},x=le=>{It(le.element)||(Ie(le.components(),x),s.unregister(le)),le.disconnect()},w=le=>{ym(e,le)},S=le=>{id(le)},A=le=>{const fe=s.filter(Cd());Ie(fe,te=>{const X=te.descHandler;Td(X)(le)})},N=le=>{A({universal:!0,data:le})},F=(le,fe)=>{A({universal:!1,channels:le,data:fe})},$=(le,fe)=>((te,X,ue)=>{const ye=(we=>{const Ye=Sn(!1);return{stop:()=>{Ye.set(!0)},cut:he,isStopped:Ye.get,isCut:Bo,event:we,setSource:$t("Cannot set source of a broadcasted event"),getSource:$t("Cannot get source of a broadcasted event")}})(X);return Ie(te,we=>{const Ye=we.descHandler;Td(Ye)(ye)}),ye.isStopped()})(s.filter(le),fe),W=le=>s.getById(le).fold(()=>Fr.error(new Error('Could not find component with uid: "'+le+'" in system.')),Fr.value),se=le=>{const fe=D(le).getOr("not found");return W(fe)};return h(e),{root:e,element:e.element,destroy:()=>{m.unbind(),ia(e.element)},add:w,remove:S,getByUid:W,getByDom:se,addToWorld:h,removeFromWorld:x,broadcast:N,broadcastOn:F,broadcastEvent:$}},yC=me([ft("prefix","form-field"),qi("fieldBehaviours",[Gr,Wo])]),GE=me([No({schema:[Yt("dom")],name:"label"}),No({factory:{sketch:e=>({uid:e.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:e.text}})},schema:[Yt("text")],name:"aria-descriptor"}),Eo({factory:{sketch:e=>{const r=((s,l)=>{const m={};return $o(s,(g,h)=>{Rt(l,h)||(m[h]=g)}),m})(e,["factory"]);return e.factory.sketch(r)}},schema:[Yt("factory")],name:"field"})]),ya=Wl({name:"FormField",configFields:yC(),partFields:GE(),factory:(e,r,s,l)=>{const m=Fi(e.fieldBehaviours,[Gr.config({find:x=>ua(x,e,"field")}),Wo.config({store:{mode:"manual",getValue:x=>Gr.getCurrent(x).bind(Wo.getValue),setValue:(x,w)=>{Gr.getCurrent(x).each(S=>{Wo.setValue(S,w)})}}})]),g=qa([La((x,w)=>{const S=Vu(x,e,["label","field","aria-descriptor"]);S.field().each(A=>{const N=un(e.prefix);S.label().each(F=>{Kn(F.element,"for",N),Kn(A.element,"id",N)}),S["aria-descriptor"]().each(F=>{const $=un(e.prefix);Kn(F.element,"id",$),Kn(A.element,"aria-describedby",$)})})})]),h={getField:x=>ua(x,e,"field"),getLabel:x=>ua(x,e,"label")};return{uid:e.uid,dom:e.dom,components:r,behaviours:m,events:g,apis:h}},apis:{getField:(e,r)=>e.getField(r),getLabel:(e,r)=>e.getLabel(r)}});var vC=Object.freeze({__proto__:null,exhibit:(e,r)=>hi({attributes:Oi([{key:r.tabAttr,value:"true"}])})}),bO=[ft("tabAttr","data-alloy-tabstop")];const Bs=Ri({fields:bO,name:"tabstopping",active:vC});var yO=tinymce.util.Tools.resolve("tinymce.html.Entities");const ky=(e,r,s,l)=>{const m=Qm(e,r,s,l);return ya.sketch(m)},Qm=(e,r,s,l)=>({dom:z0(s),components:e.toArray().concat([r]),fieldBehaviours:Oo(l)}),z0=e=>({tag:"div",classes:["tox-form__group"].concat(e)}),hf=(e,r)=>ya.parts.label({dom:{tag:"label",classes:["tox-label"]},components:[Ya(r.translate(e))]}),cd=un("form-component-change"),_y=un("form-close"),ep=un("form-cancel"),Xu=un("form-action"),bf=un("form-submit"),Mh=un("form-block"),Dh=un("form-unblock"),xC=un("form-tabchange"),wC=un("form-resize"),KE=(e,r,s)=>{const l=e.label.map(N=>hf(N,r)),m=r.icons(),g=N=>(F,$)=>{Vl($.event.target,"[data-collection-item-value]").each(W=>{N(F,$,W,Ma(W,"data-collection-item-value"))})},h=g((N,F,$,W)=>{F.stop(),r.isDisabled()||_n(N,Xu,{name:e.name,value:W})}),x=[Kt(Te(),g((N,F,$)=>{sd($)})),Kt(fa(),h),Kt(Fm(),h),Kt(He(),g((N,F,$)=>{vs(N.element,"."+ry).each(W=>{rs(W,ry)}),Jr($,ry)})),Kt(_o(),g(N=>{vs(N.element,"."+ry).each(F=>{rs(F,ry)})})),Cc(g((N,F,$,W)=>{_n(N,Xu,{name:e.name,value:W})}))],w=(N,F)=>dt(Zl(N.element,".tox-collection__item"),F),S=ya.parts.field({dom:{tag:"div",classes:["tox-collection"].concat(e.columns!==1?["tox-collection--grid"]:["tox-collection--list"])},components:[],factory:{sketch:Ze},behaviours:Oo([Qn.config({disabled:r.isDisabled,onDisabled:N=>{w(N,F=>{Jr(F,"tox-collection__item--state-disabled"),Kn(F,"aria-disabled",!0)})},onEnabled:N=>{w(N,F=>{rs(F,"tox-collection__item--state-disabled"),xa(F,"aria-disabled")})}}),Wi(),fr.config({}),Wo.config({store:{mode:"memory",initialValue:s.getOr([])},onSetValue:(N,F)=>{(($,W)=>{const se=dt(W,te=>{const X=jc.translate(te.text),ue=e.columns===1?`
    ${X}
    `:"",ye=`
    ${(Tt=>{var Qt;return(Qt=m[Tt])!==null&&Qt!==void 0?Qt:Tt})(te.icon)}
    `,we={_:" "," - ":" ","-":" "},Ye=X.replace(/\_| \- |\-/g,Tt=>we[Tt]);return`
    ${ye}${ue}
    `}),le=e.columns!=="auto"&&e.columns>1?V(se,e.columns):[se],fe=dt(le,te=>`
    ${te.join("")}
    `);Ds($.element,fe.join(""))})(N,F),e.columns==="auto"&&Qx(N,5,"tox-collection__item").each(({numRows:$,numColumns:W})=>{Dn.setGridSize(N,$,W)}),$r(N,wC)}}),Bs.config({}),Dn.config((A=e.columns,A===1?{mode:"menu",moveOnTab:!1,selector:".tox-collection__item"}:A==="auto"?{mode:"flatgrid",selector:".tox-collection__item",initSize:{numColumns:1,numRows:1}}:{mode:"matrix",selectors:{row:".tox-collection__group",cell:`.${ny}`}})),Tr("collection-events",x)]),eventOrder:{[fl()]:["disabling","alloy.base.behaviour","collection-events"]}});var A;return ky(l,S,["tox-form__group--collection"],[])},YE=["input","textarea"],XE=e=>{const r=gr(e);return Rt(YE,r)},JE=(e,r)=>{const s=r.getRoot(e).getOr(e.element);rs(s,r.invalidClass),r.notify.each(l=>{XE(e.element)&&Kn(e.element,"aria-invalid",!1),l.getContainer(e).each(m=>{Ds(m,l.validHtml)}),l.onValid(e)})},QE=(e,r,s,l)=>{const m=r.getRoot(e).getOr(e.element);Jr(m,r.invalidClass),r.notify.each(g=>{XE(e.element)&&Kn(e.element,"aria-invalid",!0),g.getContainer(e).each(h=>{Ds(h,l)}),g.onInvalid(e,l)})},kC=(e,r,s)=>r.validator.fold(()=>zm(Fr.value(!0)),l=>l.validate(e)),xw=(e,r,s)=>(r.notify.each(l=>{l.onValidate(e)}),kC(e,r).map(l=>e.getSystem().isConnected()?l.fold(m=>(QE(e,r,0,m),Fr.error(m)),m=>(JE(e,r),Fr.value(m))):Fr.error("No longer in system")));var eT=Object.freeze({__proto__:null,markValid:JE,markInvalid:QE,query:kC,run:xw,isInvalid:(e,r)=>{const s=r.getRoot(e).getOr(e.element);return Di(s,r.invalidClass)}}),vO=Object.freeze({__proto__:null,events:(e,r)=>e.validator.map(s=>qa([Kt(s.onEvent,l=>{xw(l,e).get(Ze)})].concat(s.validateOnLoad?[La(l=>{xw(l,e).get(he)})]:[]))).getOr({})}),tT=[Yt("invalidClass"),ft("getRoot",R.none),gl("notify",[ft("aria","alert"),ft("getContainer",R.none),ft("validHtml",""),Hr("onValid"),Hr("onInvalid"),Hr("onValidate")]),gl("validator",[Yt("validate"),ft("onEvent","input"),ft("validateOnLoad",!0)])];const jd=Ri({fields:tT,name:"invalidating",active:vO,apis:eT,extra:{validation:e=>r=>{const s=Wo.getValue(r);return zm(e(s))}}}),Cy=Ri({fields:[],name:"unselecting",active:Object.freeze({__proto__:null,events:()=>qa([Nu(Bf(),Ct)]),exhibit:()=>hi({styles:{"-webkit-user-select":"none","user-select":"none","-ms-user-select":"none","-moz-user-select":"-moz-none"},attributes:{unselectable:"on"}})})}),oT=un("color-input-change"),nT=un("color-swatch-change"),_C=un("color-picker-cancel"),rT=No({schema:[Yt("dom")],name:"label"}),eg=e=>No({name:e+"-edge",overrides:r=>r.model.manager.edgeActions[e].fold(()=>({}),s=>({events:qa([lm(Ws(),(l,m,g)=>s(l,g),[r]),lm(ai(),(l,m,g)=>s(l,g),[r]),lm(z(),(l,m,g)=>{g.mouseIsDown.get()&&s(l,g)},[r])])}))}),tp=eg("top-left"),CC=eg("top"),aT=eg("top-right"),sT=eg("right"),SC=eg("bottom-right"),iT=eg("bottom"),ww=eg("bottom-left"),lT=eg("left"),cT=Eo({name:"thumb",defaults:me({dom:{styles:{position:"absolute"}}}),overrides:e=>({events:qa([jm(Ws(),e,"spectrum"),jm(ed(),e,"spectrum"),jm(Hl(),e,"spectrum"),jm(ai(),e,"spectrum"),jm(z(),e,"spectrum"),jm(J(),e,"spectrum")])})}),kw=e=>Pg(e.event);var dT=[rT,lT,sT,CC,iT,tp,aT,ww,SC,cT,Eo({schema:[ro("mouseIsDown",()=>Sn(!1))],name:"spectrum",overrides:e=>{const r=e.model.manager,s=(l,m)=>r.getValueFromEvent(m).map(g=>r.setValueFrom(l,e,g));return{behaviours:Oo([Dn.config({mode:"special",onLeft:(l,m)=>r.onLeft(l,e,kw(m)),onRight:(l,m)=>r.onRight(l,e,kw(m)),onUp:(l,m)=>r.onUp(l,e,kw(m)),onDown:(l,m)=>r.onDown(l,e,kw(m))}),Bs.config({}),er.config({})]),events:qa([Kt(Ws(),s),Kt(ed(),s),Kt(ai(),s),Kt(z(),(l,m)=>{e.mouseIsDown.get()&&s(l,m)})])}}})];const Sy=me("slider.change.value"),EC=e=>{const r=e.event.raw;if((s=>s.type.indexOf("touch")!==-1)(r)){const s=r;return s.touches!==void 0&&s.touches.length===1?R.some(s.touches[0]).map(l=>kn(l.clientX,l.clientY)):R.none()}{const s=r;return s.clientX!==void 0?R.some(s).map(l=>kn(l.clientX,l.clientY)):R.none()}},Rh=e=>e.model.minX,Bh=e=>e.model.minY,Fh=e=>e.model.minX-1,A0=e=>e.model.minY-1,yf=e=>e.model.maxX,op=e=>e.model.maxY,O0=e=>e.model.maxX+1,_w=e=>e.model.maxY+1,TC=(e,r,s)=>r(e)-s(e),Cw=e=>TC(e,yf,Rh),zC=e=>TC(e,op,Bh),AC=e=>Cw(e)/2,OC=e=>zC(e)/2,Ey=(e,r)=>r?e.stepSize*e.speedMultiplier:e.stepSize,Sw=e=>e.snapToGrid,uT=e=>e.snapStart,Ty=e=>e.rounded,zy=(e,r)=>e[r+"-edge"]!==void 0,Ew=e=>zy(e,"left"),Tw=e=>zy(e,"right"),NC=e=>zy(e,"top"),MC=e=>zy(e,"bottom"),tg=e=>e.model.value.get(),np=(e,r)=>({x:e,y:r}),yu=(e,r)=>{_n(e,Sy(),{value:r})},zw=(e,r,s,l)=>es?s:e===r?r-1:Math.max(r,e-l),Aw=(e,r,s,l)=>e>s?e:eMath.max(r,Math.min(s,e)),mT=e=>{const{min:r,max:s,range:l,value:m,step:g,snap:h,snapStart:x,rounded:w,hasMinEdge:S,hasMaxEdge:A,minBound:N,maxBound:F,screenRange:$}=e,W=S?r-1:r,se=A?s+1:s;if(mF)return se;{const le=((te,X,ue)=>Math.min(ue,Math.max(te,X))-X)(m,N,F),fe=DC(le/$*l+r,W,se);return h&&fe>=r&&fe<=s?((te,X,ue,ye,we)=>we.fold(()=>{const Ye=te-X,Tt=Math.round(Ye/ye)*ye;return DC(X+Tt,X-1,ue+1)},Ye=>{const Tt=(te-Ye)%ye,Qt=Math.round(Tt/ye),no=Math.floor((te-Ye)/ye),oo=Math.floor((ue-Ye)/ye),Uo=Ye+Math.min(oo,no+Qt)*ye;return Math.max(Ye,Uo)}))(fe,r,s,g,x):w?Math.round(fe):fe}},RC=e=>{const{min:r,max:s,range:l,value:m,hasMinEdge:g,hasMaxEdge:h,maxBound:x,maxOffset:w,centerMinEdge:S,centerMaxEdge:A}=e;return ms?h?x:A:(m-r)/l*w},N0="top",gT="right",pT="bottom",Ow="left",og=e=>e.element.dom.getBoundingClientRect(),vu=(e,r)=>e[r],M0=e=>{const r=og(e);return vu(r,Ow)},fT=e=>{const r=og(e);return vu(r,gT)},D0=e=>{const r=og(e);return vu(r,N0)},hT=e=>{const r=og(e);return vu(r,pT)},BC=e=>{const r=og(e);return vu(r,"width")},FC=e=>{const r=og(e);return vu(r,"height")},LC=(e,r,s)=>(e+r)/2-s,IC=(e,r)=>{const s=og(e),l=og(r),m=vu(s,Ow),g=vu(s,gT),h=vu(l,Ow);return LC(m,g,h)},PC=(e,r)=>{const s=og(e),l=og(r),m=vu(s,N0),g=vu(s,pT),h=vu(l,N0);return LC(m,g,h)},Lh=(e,r)=>{_n(e,Sy(),{value:r})},HC=(e,r,s)=>{const l={min:Rh(r),max:yf(r),range:Cw(r),value:s,step:Ey(r),snap:Sw(r),snapStart:uT(r),rounded:Ty(r),hasMinEdge:Ew(r),hasMaxEdge:Tw(r),minBound:M0(e),maxBound:fT(e),screenRange:BC(e)};return mT(l)},jC=e=>(r,s,l)=>((m,g,h,x)=>{const w=(m>0?Aw:zw)(tg(h),Rh(h),yf(h),Ey(h,x));return Lh(g,w),R.some(w)})(e,r,s,l).map(Ct),Nw=(e,r,s,l,m,g)=>{const h=((x,w,S,A,N)=>{const F=BC(x),$=A.bind(le=>R.some(IC(le,x))).getOr(0),W=N.bind(le=>R.some(IC(le,x))).getOr(F),se={min:Rh(w),max:yf(w),range:Cw(w),value:S,hasMinEdge:Ew(w),hasMaxEdge:Tw(w),minBound:M0(x),minOffset:0,maxBound:fT(x),maxOffset:F,centerMinEdge:$,centerMaxEdge:W};return RC(se)})(r,g,s,l,m);return M0(r)-M0(e)+h},bT=jC(-1),yT=jC(1),lr=R.none,R0=R.none,vT={"top-left":R.none(),top:R.none(),"top-right":R.none(),right:R.some((e,r)=>{yu(e,O0(r))}),"bottom-right":R.none(),bottom:R.none(),"bottom-left":R.none(),left:R.some((e,r)=>{yu(e,Fh(r))})};var xT=Object.freeze({__proto__:null,setValueFrom:(e,r,s)=>{const l=HC(e,r,s);return Lh(e,l),l},setToMin:(e,r)=>{const s=Rh(r);Lh(e,s)},setToMax:(e,r)=>{const s=yf(r);Lh(e,s)},findValueOfOffset:HC,getValueFromEvent:e=>EC(e).map(r=>r.left),findPositionOfValue:Nw,setPositionFromValue:(e,r,s,l)=>{const m=tg(s),g=Nw(e,l.getSpectrum(e),m,l.getLeftEdge(e),l.getRightEdge(e),s),h=Ga(r.element)/2;Bn(r.element,"left",g-h+"px")},onLeft:bT,onRight:yT,onUp:lr,onDown:R0,edgeActions:vT});const B0=(e,r)=>{_n(e,Sy(),{value:r})},Mw=(e,r,s)=>{const l={min:Bh(r),max:op(r),range:zC(r),value:s,step:Ey(r),snap:Sw(r),snapStart:uT(r),rounded:Ty(r),hasMinEdge:NC(r),hasMaxEdge:MC(r),minBound:D0(e),maxBound:hT(e),screenRange:FC(e)};return mT(l)},VC=e=>(r,s,l)=>((m,g,h,x)=>{const w=(m>0?Aw:zw)(tg(h),Bh(h),op(h),Ey(h,x));return B0(g,w),R.some(w)})(e,r,s,l).map(Ct),Ih=(e,r,s,l,m,g)=>{const h=((x,w,S,A,N)=>{const F=FC(x),$=A.bind(le=>R.some(PC(le,x))).getOr(0),W=N.bind(le=>R.some(PC(le,x))).getOr(F),se={min:Bh(w),max:op(w),range:zC(w),value:S,hasMinEdge:NC(w),hasMaxEdge:MC(w),minBound:D0(x),minOffset:0,maxBound:hT(x),maxOffset:F,centerMinEdge:$,centerMaxEdge:W};return RC(se)})(r,g,s,l,m);return D0(r)-D0(e)+h},wT=R.none,kT=R.none,$C=VC(-1),_T=VC(1),CT={"top-left":R.none(),top:R.some((e,r)=>{yu(e,A0(r))}),"top-right":R.none(),right:R.none(),"bottom-right":R.none(),bottom:R.some((e,r)=>{yu(e,_w(r))}),"bottom-left":R.none(),left:R.none()};var xO=Object.freeze({__proto__:null,setValueFrom:(e,r,s)=>{const l=Mw(e,r,s);return B0(e,l),l},setToMin:(e,r)=>{const s=Bh(r);B0(e,s)},setToMax:(e,r)=>{const s=op(r);B0(e,s)},findValueOfOffset:Mw,getValueFromEvent:e=>EC(e).map(r=>r.top),findPositionOfValue:Ih,setPositionFromValue:(e,r,s,l)=>{const m=tg(s),g=Ih(e,l.getSpectrum(e),m,l.getTopEdge(e),l.getBottomEdge(e),s),h=Nt(r.element)/2;Bn(r.element,"top",g-h+"px")},onLeft:wT,onRight:kT,onUp:$C,onDown:_T,edgeActions:CT});const Dw=(e,r)=>{_n(e,Sy(),{value:r})},F0=(e,r)=>({x:e,y:r}),Rw=(e,r)=>(s,l,m)=>((g,h,x,w,S)=>{const A=g>0?Aw:zw,N=h?tg(w).x:A(tg(w).x,Rh(w),yf(w),Ey(w,S)),F=h?A(tg(w).y,Bh(w),op(w),Ey(w,S)):tg(w).y;return Dw(x,F0(N,F)),R.some(N)})(e,r,s,l,m).map(Ct),wO=Rw(-1,!1),kO=Rw(1,!1),ST=Rw(-1,!0),_O=Rw(1,!0),ET={"top-left":R.some((e,r)=>{yu(e,np(Fh(r),A0(r)))}),top:R.some((e,r)=>{yu(e,np(AC(r),A0(r)))}),"top-right":R.some((e,r)=>{yu(e,np(O0(r),A0(r)))}),right:R.some((e,r)=>{yu(e,np(O0(r),OC(r)))}),"bottom-right":R.some((e,r)=>{yu(e,np(O0(r),_w(r)))}),bottom:R.some((e,r)=>{yu(e,np(AC(r),_w(r)))}),"bottom-left":R.some((e,r)=>{yu(e,np(Fh(r),_w(r)))}),left:R.some((e,r)=>{yu(e,np(Fh(r),OC(r)))})};var TT=Object.freeze({__proto__:null,setValueFrom:(e,r,s)=>{const l=HC(e,r,s.left),m=Mw(e,r,s.top),g=F0(l,m);return Dw(e,g),g},setToMin:(e,r)=>{const s=Rh(r),l=Bh(r);Dw(e,F0(s,l))},setToMax:(e,r)=>{const s=yf(r),l=op(r);Dw(e,F0(s,l))},getValueFromEvent:e=>EC(e),setPositionFromValue:(e,r,s,l)=>{const m=tg(s),g=Nw(e,l.getSpectrum(e),m.x,l.getLeftEdge(e),l.getRightEdge(e),s),h=Ih(e,l.getSpectrum(e),m.y,l.getTopEdge(e),l.getBottomEdge(e),s),x=Ga(r.element)/2,w=Nt(r.element)/2;Bn(r.element,"left",g-x+"px"),Bn(r.element,"top",h-w+"px")},onLeft:wO,onRight:kO,onUp:ST,onDown:_O,edgeActions:ET});const Vd=Wl({name:"Slider",configFields:[ft("stepSize",1),ft("speedMultiplier",10),ft("onChange",he),ft("onChoose",he),ft("onInit",he),ft("onDragStart",he),ft("onDragEnd",he),ft("snapToGrid",!1),ft("rounded",!0),la("snapStart"),ni("model",Ms("mode",{x:[ft("minX",0),ft("maxX",100),ro("value",e=>Sn(e.mode.minX)),Yt("getInitialValue"),as("manager",xT)],y:[ft("minY",0),ft("maxY",100),ro("value",e=>Sn(e.mode.minY)),Yt("getInitialValue"),as("manager",xO)],xy:[ft("minX",0),ft("maxX",100),ft("minY",0),ft("maxY",100),ro("value",e=>Sn({x:e.mode.minX,y:e.mode.minY})),Yt("getInitialValue"),as("manager",TT)]})),qi("sliderBehaviours",[Dn,Wo]),ro("mouseIsDown",()=>Sn(!1))],partFields:dT,factory:(e,r,s,l)=>{const m=te=>li(te,e,"thumb"),g=te=>li(te,e,"spectrum"),h=te=>ua(te,e,"left-edge"),x=te=>ua(te,e,"right-edge"),w=te=>ua(te,e,"top-edge"),S=te=>ua(te,e,"bottom-edge"),A=e.model,N=A.manager,F=(te,X)=>{N.setPositionFromValue(te,X,e,{getLeftEdge:h,getRightEdge:x,getTopEdge:w,getBottomEdge:S,getSpectrum:g})},$=(te,X)=>{A.value.set(X);const ue=m(te);F(te,ue)},W=te=>{const X=e.mouseIsDown.get();e.mouseIsDown.set(!1),X&&ua(te,e,"thumb").each(ue=>{const ye=A.value.get();e.onChoose(te,ue,ye)})},se=(te,X)=>{X.stop(),e.mouseIsDown.set(!0),e.onDragStart(te,m(te))},le=(te,X)=>{X.stop(),e.onDragEnd(te,m(te)),W(te)},fe=te=>{ua(te,e,"spectrum").map(Dn.focusIn)};return{uid:e.uid,dom:e.dom,components:r,behaviours:Fi(e.sliderBehaviours,[Dn.config({mode:"special",focusIn:fe}),Wo.config({store:{mode:"manual",getValue:te=>A.value.get(),setValue:$}}),tc.config({channels:{[C1()]:{onReceive:W}}})]),events:qa([Kt(Sy(),(te,X)=>{((ue,ye)=>{$(ue,ye);const we=m(ue);e.onChange(ue,we,ye)})(te,X.event.value)}),La((te,X)=>{const ue=A.getInitialValue();A.value.set(ue);const ye=m(te);F(te,ye);const we=g(te);e.onInit(te,ye,we,A.value.get())}),Kt(Ws(),se),Kt(Hl(),le),Kt(ai(),(te,X)=>{fe(te),se(te,X)}),Kt(J(),le)]),apis:{resetToMin:te=>{N.setToMin(te,e)},resetToMax:te=>{N.setToMax(te,e)},setValue:$,refresh:F},domModification:{styles:{position:"relative"}}}},apis:{setValue:(e,r,s)=>{e.setValue(r,s)},resetToMin:(e,r)=>{e.resetToMin(r)},resetToMax:(e,r)=>{e.resetToMax(r)},refresh:(e,r)=>{e.refresh(r)}}}),Bw=un("rgb-hex-update"),UC=un("slider-update"),zT=un("palette-update"),ZC="form",Am=[qi("formBehaviours",[Wo])],L0=e=>"",Fw=(e,r)=>({uid:e.uid,dom:e.dom,components:r,behaviours:Fi(e.formBehaviours,[Wo.config({store:{mode:"manual",getValue:s=>{const l=Kp(s,e);return Zo(l,(m,g)=>m().bind(h=>{return x=Gr.getCurrent(h),w=new Error(`Cannot find a current component to extract the value from for form part '${g}': `+Fc(h.element)),x.fold(()=>Fr.error(w),Fr.value);var x,w}).map(Wo.getValue))},setValue:(s,l)=>{$o(l,(m,g)=>{ua(s,e,g).each(h=>{Gr.getCurrent(h).each(x=>{Wo.setValue(x,m)})})})}}})]),apis:{getField:(s,l)=>ua(s,e,l).bind(Gr.getCurrent)}}),vf={getField:Nr((e,r,s)=>e.getField(r,s)),sketch:e=>{const r=(()=>{const g=[];return{field:(h,x)=>(g.push(h),ca(ZC,L0(h),x)),record:me(g)}})(),s=e(r),l=r.record(),m=dt(l,g=>Eo({name:g,pname:L0(g)}));return Jp(ZC,Am,m,Fw,s)}},Lw=un("valid-input"),qC=un("invalid-input"),Iw=un("validating-input"),Pw="colorcustom.rgb.",AT=(e,r,s,l)=>{const m=(A,N)=>jd.config({invalidClass:r("invalid"),notify:{onValidate:F=>{_n(F,Iw,{type:A})},onValid:F=>{_n(F,Lw,{type:A,value:Wo.getValue(F)})},onInvalid:F=>{_n(F,qC,{type:A,value:Wo.getValue(F)})}},validator:{validate:F=>{const $=Wo.getValue(F),W=N($)?Fr.value(!0):Fr.error(e("aria.input.invalid"));return zm(W)},validateOnLoad:!1}}),g=(A,N,F,$,W)=>{const se=e(Pw+"range"),le=ya.parts.label({dom:{tag:"label",attributes:{"aria-label":$}},components:[Ya(F)]}),fe=ya.parts.field({data:W,factory:df,inputAttributes:{type:"text",...N==="hex"?{"aria-live":"polite"}:{}},inputClasses:[r("textfield")],inputBehaviours:Oo([m(N,A),Bs.config({})]),onSetValue:ue=>{jd.isInvalid(ue)&&jd.run(ue).get(he)}}),te=[le,fe],X=N!=="hex"?[ya.parts["aria-descriptor"]({text:se})]:[];return{dom:{tag:"div",attributes:{role:"presentation"}},components:te.concat(X)}},h=(A,N)=>{const F=N.red,$=N.green,W=N.blue;Wo.setValue(A,{red:F,green:$,blue:W})},x=Ta({dom:{tag:"div",classes:[r("rgba-preview")],styles:{"background-color":"white"},attributes:{role:"presentation"}}}),w=(A,N)=>{x.getOpt(A).each(F=>{Bn(F.element,"background-color","#"+N.value)})};return Pc({factory:()=>{const A={red:Sn(R.some(255)),green:Sn(R.some(255)),blue:Sn(R.some(255)),hex:Sn(R.some("ffffff"))},N=ye=>A[ye].get(),F=(ye,we)=>{A[ye].set(we)},$=ye=>{const we=ye.red,Ye=ye.green,Tt=ye.blue;F("red",R.some(we)),F("green",R.some(Ye)),F("blue",R.some(Tt))},W=(ye,we)=>{const Ye=we.event;Ye.type!=="hex"?F(Ye.type,R.none()):l(ye)},se=(ye,we)=>{const Ye=we.event;(Tt=>Tt.type==="hex")(Ye)?((Tt,Qt)=>{s(Tt);const no=U2(Qt);F("hex",R.some(no.value));const oo=x0(no);h(Tt,oo),$(oo),_n(Tt,Bw,{hex:no}),w(Tt,no)})(ye,Ye.value):((Tt,Qt,no)=>{const oo=parseInt(no,10);F(Qt,R.some(oo)),N("red").bind(Uo=>N("green").bind(pn=>N("blue").map(Mn=>Xg(Uo,pn,Mn,1)))).each(Uo=>{const pn=((Mn,ar)=>{const dr=hy(ar);return vf.getField(Mn,"hex").each(jr=>{er.isFocused(jr)||Wo.setValue(Mn,{hex:dr.value})}),dr})(Tt,Uo);_n(Tt,Bw,{hex:pn}),w(Tt,pn)})})(ye,Ye.type,Ye.value)},le=ye=>({label:e(Pw+ye+".label"),description:e(Pw+ye+".description")}),fe=le("red"),te=le("green"),X=le("blue"),ue=le("hex");return Da(vf.sketch(ye=>({dom:{tag:"form",classes:[r("rgb-form")],attributes:{"aria-label":e("aria.color.picker")}},components:[ye.field("red",ya.sketch(g(v0,"red",fe.label,fe.description,255))),ye.field("green",ya.sketch(g(v0,"green",te.label,te.description,255))),ye.field("blue",ya.sketch(g(v0,"blue",X.label,X.description,255))),ye.field("hex",ya.sketch(g(Li,"hex",ue.label,ue.description,"ffffff"))),x.asSpec()],formBehaviours:Oo([jd.config({invalidClass:r("form-invalid")}),Tr("rgb-form-events",[Kt(Lw,se),Kt(qC,W),Kt(Iw,W)])])})),{apis:{updateHex:(ye,we)=>{Wo.setValue(ye,{hex:we.value}),((Ye,Tt)=>{const Qt=x0(Tt);h(Ye,Qt),$(Qt)})(ye,we),w(ye,we)}}})},name:"RgbForm",configFields:[],apis:{updateHex:(A,N,F)=>{A.updateHex(N,F)}},extraApis:{}})},WC=(e,r)=>Pc({name:"ColourPicker",configFields:[Yt("dom"),ft("onValidHex",he),ft("onInvalidHex",he)],factory:l=>{const m=AT(e,r,l.onValidHex,l.onInvalidHex),g=((se,le)=>{const fe=Vd.parts.spectrum({dom:{tag:"canvas",attributes:{role:"presentation"},classes:[le("sv-palette-spectrum")]}}),te=Vd.parts.thumb({dom:{tag:"div",attributes:{role:"presentation"},classes:[le("sv-palette-thumb")],innerHtml:``}}),X=(ue,ye)=>{const{width:we,height:Ye}=ue,Tt=ue.getContext("2d");if(Tt===null)return;Tt.fillStyle=ye,Tt.fillRect(0,0,we,Ye);const Qt=Tt.createLinearGradient(0,0,we,0);Qt.addColorStop(0,"rgba(255,255,255,1)"),Qt.addColorStop(1,"rgba(255,255,255,0)"),Tt.fillStyle=Qt,Tt.fillRect(0,0,we,Ye);const no=Tt.createLinearGradient(0,0,0,Ye);no.addColorStop(0,"rgba(0,0,0,0)"),no.addColorStop(1,"rgba(0,0,0,1)"),Tt.fillStyle=no,Tt.fillRect(0,0,we,Ye)};return Pc({factory:ue=>{const ye=me({x:0,y:0}),we=Oo([Gr.config({find:R.some}),er.config({})]);return Vd.sketch({dom:{tag:"div",attributes:{role:"slider","aria-valuetext":se(["Saturation {0}%, Brightness {1}%",0,0])},classes:[le("sv-palette")]},model:{mode:"xy",getInitialValue:ye},rounded:!1,components:[fe,te],onChange:(Ye,Tt,Qt)=>{So(Qt)||Kn(Ye.element,"aria-valuetext",se(["Saturation {0}%, Brightness {1}%",Math.floor(Qt.x),Math.floor(100-Qt.y)])),_n(Ye,zT,{value:Qt})},onInit:(Ye,Tt,Qt,no)=>{X(Qt.element.dom,G2(kE))},sliderBehaviours:we})},name:"SaturationBrightnessPalette",configFields:[],apis:{setHue:(ue,ye,we)=>{((Ye,Tt)=>{const Qt=Ye.components()[0].element.dom,no=k0(Tt,100,100),oo=xE(no);X(Qt,G2(oo))})(ye,we)},setThumb:(ue,ye,we)=>{((Ye,Tt)=>{const Qt=J2(x0(Tt));Vd.setValue(Ye,{x:Qt.saturation,y:100-Qt.value}),Kn(Ye.element,"aria-valuetext",se(["Saturation {0}%, Brightness {1}%",Qt.saturation,Qt.value]))})(ye,we)}},extraApis:{}})})(e,r),h={paletteRgba:Sn(kE),paletteHue:Sn(0)},x=Ta(((se,le)=>{const fe=Vd.parts.spectrum({dom:{tag:"div",classes:[le("hue-slider-spectrum")],attributes:{role:"presentation"}}}),te=Vd.parts.thumb({dom:{tag:"div",classes:[le("hue-slider-thumb")],attributes:{role:"presentation"}}});return Vd.sketch({dom:{tag:"div",classes:[le("hue-slider")],attributes:{role:"slider","aria-valuemin":0,"aria-valuemax":360,"aria-valuenow":120}},rounded:!1,model:{mode:"y",getInitialValue:me(0)},components:[fe,te],sliderBehaviours:Oo([er.config({})]),onChange:(X,ue,ye)=>{Kn(X.element,"aria-valuenow",Math.floor(360-3.6*ye)),_n(X,UC,{value:ye})}})})(0,r)),w=Ta(g.sketch({})),S=Ta(m.sketch({})),A=(se,le,fe)=>{w.getOpt(se).each(te=>{g.setHue(te,fe)})},N=(se,le)=>{S.getOpt(se).each(fe=>{m.updateHex(fe,le)})},F=(se,le,fe)=>{x.getOpt(se).each(te=>{Vd.setValue(te,(X=>100-X/360*100)(fe))})},$=(se,le)=>{w.getOpt(se).each(fe=>{g.setThumb(fe,le)})},W=(se,le,fe,te)=>{((X,ue)=>{const ye=x0(X);h.paletteRgba.set(ye),h.paletteHue.set(ue)})(le,fe),Ie(te,X=>{X(se,le,fe)})};return{uid:l.uid,dom:l.dom,components:[w.asSpec(),x.asSpec(),S.asSpec()],behaviours:Oo([Tr("colour-picker-events",[Kt(Bw,(()=>{const se=[A,F,$];return(le,fe)=>{const te=fe.event.hex,X=(ue=>J2(x0(ue)))(te);W(le,te,X.hue,se)}})()),Kt(zT,(()=>{const se=[N];return(le,fe)=>{const te=fe.event.value,X=h.paletteHue.get(),ue=k0(X,te.x,100-te.y),ye=Q2(ue);W(le,ye,X,se)}})()),Kt(UC,(()=>{const se=[A,N];return(le,fe)=>{const te=(Ye=>(100-Ye)/100*360)(fe.event.value),X=h.paletteRgba.get(),ue=J2(X),ye=k0(te,ue.saturation,ue.value),we=Q2(ye);W(le,we,te,se)}})())]),Gr.config({find:se=>S.getOpt(se)}),Dn.config({mode:"acyclic"})])}}}),rp=()=>Gr.config({find:R.some}),Hw=e=>Gr.config({find:r=>Un(r.element,e).bind(s=>r.getSystem().getByDom(s).toOptional())}),OT=Cn([ft("preprocess",Ze),ft("postprocess",Ze)]),NT=(e,r)=>{const s=fi("RepresentingConfigs.memento processors",OT,r);return Wo.config({store:{mode:"manual",getValue:l=>{const m=e.get(l),g=Wo.getValue(m);return s.postprocess(g)},setValue:(l,m)=>{const g=s.preprocess(m),h=e.get(l);Wo.setValue(h,g)}}})},Uc=(e,r,s)=>Wo.config({store:{mode:"manual",...e.map(l=>({initialValue:l})).getOr({}),getValue:r,setValue:s}}),jw=(e,r,s)=>Uc(e,l=>r(l.element),(l,m)=>s(l.element,m)),ap=e=>Wo.config({store:{mode:"memory",initialValue:e}}),I0={"colorcustom.rgb.red.label":"R","colorcustom.rgb.red.description":"Red component","colorcustom.rgb.green.label":"G","colorcustom.rgb.green.description":"Green component","colorcustom.rgb.blue.label":"B","colorcustom.rgb.blue.description":"Blue component","colorcustom.rgb.hex.label":"#","colorcustom.rgb.hex.description":"Hex color code","colorcustom.rgb.range":"Range 0 to 255","aria.color.picker":"Color Picker","aria.input.invalid":"Invalid input"};var CO=tinymce.util.Tools.resolve("tinymce.Resource"),Om=tinymce.util.Tools.resolve("tinymce.util.Tools");const Ay=(e,r)=>{let s=null;const l=()=>{Mo(s)||(clearTimeout(s),s=null)};return{cancel:l,throttle:(...m)=>{l(),s=setTimeout(()=>{s=null,e.apply(null,m)},r)}}},GC=un("alloy-fake-before-tabstop"),KC=un("alloy-fake-after-tabstop"),Vw=e=>({dom:{tag:"div",styles:{width:"1px",height:"1px",outline:"none"},attributes:{tabindex:"0"},classes:e},behaviours:Oo([er.config({ignore:!0}),Bs.config({})])}),YC=(e,r)=>({dom:{tag:"div",classes:["tox-navobj",...e.getOr([])]},components:[Vw([GC]),r,Vw([KC])],behaviours:Oo([Hw(1)])}),MT=(e,r)=>{_n(e,fn(),{raw:{which:9,shiftKey:r}})},DT=(e,r)=>{const s=r.element;Di(s,GC)?MT(e,!0):Di(s,KC)&&MT(e,!1)},Ph=e=>Nh(e,["."+GC,"."+KC].join(","),Bo),$w=un("update-dialog"),XC=un("update-title"),RT=un("update-body"),Uw=un("update-footer"),JC=un("body-send-message"),Zw=un("dialog-focus-shifted"),qw=Yl().browser,P0=qw.isSafari(),Ww=qw.isFirefox(),BT=P0||Ww,Gw=qw.isChromium(),SO=({scrollTop:e,scrollHeight:r,clientHeight:s})=>Math.ceil(e)+s>=r,Kw=(e,r)=>e.scrollTo(0,r==="bottom"?99999999:r),Oy=(e,r,s)=>{const l=e.dom;R.from(l.contentDocument).fold(s,m=>{let g=0;const h=((w,S)=>{const A=w.body;return R.from(!/^1))?A:w.documentElement)})(m,r).map(w=>(g=w.scrollTop,w)).forall(SO),x=()=>{const w=l.contentWindow;Ue(w)&&(h?Kw(w,"bottom"):!h&&BT&&g!==0&&Kw(w,g))};P0&&l.addEventListener("load",x,{once:!0}),m.open(),m.write(r),m.close(),P0||x()})},FT=ln(BT,P0?500:200).map(e=>((r,s)=>{let l=null,m=null;return{cancel:()=>{Mo(l)||(clearTimeout(l),l=null,m=null)},throttle:(...g)=>{m=g,Mo(l)&&(l=setTimeout(()=>{const h=m;l=null,m=null,r.apply(null,h)},s))}}})(Oy,e)),QC=un("toolbar.button.execute"),xf=un("common-button-display-events"),eS={[fl()]:["disabling","alloy.base.behaviour","toggling","toolbar-button-events"],[Rc()]:["toolbar-button-events",xf],[ai()]:["focusing","alloy.base.behaviour",xf]},H0=e=>Bn(e.element,"width",aa(e.element,"width")),j0=(e,r,s)=>Uu(e,{tag:"span",classes:["tox-icon","tox-tbtn__icon-wrap"],behaviours:s},r),wf=(e,r)=>j0(e,r,[]),sp=(e,r)=>j0(e,r,[fr.config({})]),tS=(e,r,s)=>({dom:{tag:"span",classes:[`${r}__select-label`]},components:[Ya(s.translate(e))],behaviours:Oo([fr.config({})])}),dd=un("update-menu-text"),ip=un("update-menu-icon"),oS=(e,r,s)=>{const l=Sn(he),m=e.text.map(F=>Ta(tS(F,r,s.providers))),g=e.icon.map(F=>Ta(sp(F,s.providers.icons))),h=(F,$)=>{const W=Wo.getValue(F);return er.focus(W),_n(W,"keydown",{raw:$.event.raw}),Hd.close(W),R.some(!0)},x=e.role.fold(()=>({}),F=>({role:F})),w=e.tooltip.fold(()=>({}),F=>{const $=s.providers.translate(F);return{title:$,"aria-label":$}}),S=Uu("chevron-down",{tag:"div",classes:[`${r}__select-chevron`]},s.providers.icons),A=un("common-button-display-events");return Ta(Hd.sketch({...e.uid?{uid:e.uid}:{},...x,dom:{tag:"button",classes:[r,`${r}--select`].concat(dt(e.classes,F=>`${r}--${F}`)),attributes:{...w}},components:Eh([g.map(F=>F.asSpec()),m.map(F=>F.asSpec()),R.some(S)]),matchWidth:!0,useMinWidth:!0,onOpen:(F,$,W)=>{e.searchable&&(se=>{_2(se).each(le=>er.focus(le))})(W)},dropdownBehaviours:Oo([...e.dropdownBehaviours,my(()=>e.disabled||s.providers.isDisabled()),Wi(),Cy.config({}),fr.config({}),Tr("dropdown-events",[Kg(e,l),Yg(e,l)]),Tr(A,[La((F,$)=>H0(F))]),Tr("menubutton-update-display-text",[Kt(dd,(F,$)=>{m.bind(W=>W.getOpt(F)).each(W=>{fr.set(W,[Ya(s.providers.translate($.event.text))])})}),Kt(ip,(F,$)=>{g.bind(W=>W.getOpt(F)).each(W=>{fr.set(W,[sp($.event.icon,s.providers.icons)])})})])]),eventOrder:Da(eS,{mousedown:["focusing","alloy.base.behaviour","item-type-events","normal-dropdown-events"],[Rc()]:["toolbar-button-events","dropdown-events",A]}),sandboxBehaviours:Oo([Dn.config({mode:"special",onLeft:h,onRight:h}),Tr("dropdown-sandbox-events",[Kt(x2,(F,$)=>{(W=>{const se=Wo.getValue(W),le=s0(W).map(eE);Hd.refetch(se).get(()=>{const fe=js.getCoupled(se,"sandbox");le.each(te=>s0(fe).each(X=>((ue,ye)=>{Wo.setValue(ue,ye.fetchPattern),ue.element.dom.selectionStart=ye.selectionStart,ue.element.dom.selectionEnd=ye.selectionEnd})(X,te)))})})(F),$.stop()}),Kt(w2,(F,$)=>{((W,se)=>{(le=>Lr.getState(le).bind(ba.getHighlighted).bind(ba.getHighlighted))(W).each(le=>{((fe,te,X,ue)=>{const ye={...ue,target:te};fe.getSystem().triggerEvent(X,te,ye)})(W,le.element,se.event.eventType,se.event.interactionEvent)})})(F,$),$.stop()})])]),lazySink:s.getSink,toggleClass:`${r}--active`,parts:{menu:{...Ch(0,e.columns,e.presets),fakeFocus:e.searchable,onHighlightItem:gC,onCollapseMenu:(F,$,W)=>{ba.getHighlighted(W).each(se=>{gC(F,W,se)})},onDehighlightItem:fO}},getAnchorOverrides:()=>({maxHeightFunction:(F,$)=>{Ip()(F,$-10)}}),fetch:F=>Qg(rt(e.fetch,F))})).asSpec()},LT=e=>e.type==="separator",nS={type:"separator"},IT=(e,r)=>{const s=((l,m)=>{const g=zo(l,(h,x)=>(w=>io(w))(x)?x===""?h:x==="|"?h.length>0&&!LT(h[h.length-1])?h.concat([nS]):h:Vo(m,x.toLowerCase())?h.concat([m[x.toLowerCase()]]):h:h.concat([x]),[]);return g.length>0&<(g[g.length-1])&&g.pop(),g})(io(e)?e.split(" "):e,r);return lo(s,(l,m)=>{if((g=>Vo(g,"getSubmenuItems"))(m)){const g=(x=>{const w=Xt(x,"value").getOrThunk(()=>un("generated-menu-item"));return Da({value:w},x)})(m),h=((x,w)=>{const S=x.getSubmenuItems(),A=IT(S,w);return{item:x,menus:Da(A.menus,{[x.value]:A.items}),expansions:Da(A.expansions,{[x.value]:x.value})}})(g,r);return{menus:Da(l.menus,h.menus),items:[h.item,...l.items],expansions:Da(l.expansions,h.expansions)}}return{...l,items:[m,...l.items]}},{menus:{},expansions:{},items:[]})},Ny=(e,r,s,l)=>{const m=un("primary-menu"),g=IT(e,s.shared.providers.menuItems());if(g.items.length===0)return R.none();const h=(N=>N.search.fold(()=>({searchMode:"no-search"}),F=>({searchMode:"search-with-field",placeholder:F.placeholder})))(l),x=fC(m,g.items,r,s,l.isHorizontalMenu,h),w=(N=>N.search.fold(()=>({searchMode:"no-search"}),F=>({searchMode:"search-with-results"})))(l),S=Zo(g.menus,(N,F)=>fC(F,N,r,s,!1,w)),A=Da(S,Xi(m,x));return R.from(Ug.tieredData(m,A,g.expansions))},rS=e=>!Vo(e,"items"),PT="data-value",HT=(e,r,s,l)=>dt(s,m=>rS(m)?{type:"togglemenuitem",text:m.text,value:m.value,active:m.value===l,onAction:()=>{Wo.setValue(e,m.value),_n(e,cd,{name:r}),er.focus(e)}}:{type:"nestedmenuitem",text:m.text,getSubmenuItems:()=>HT(e,r,m.items,l)}),aS=(e,r)=>Gt(e,s=>rS(s)?ln(s.value===r,s):aS(s.items,r)),EO=Pc({name:"HtmlSelect",configFields:[Yt("options"),qi("selectBehaviours",[er,Wo]),ft("selectClasses",[]),ft("selectAttributes",{}),la("data")],factory:(e,r)=>{const s=dt(e.options,m=>({dom:{tag:"option",value:m.value,innerHtml:m.text}})),l=e.data.map(m=>Xi("initialValue",m)).getOr({});return{uid:e.uid,dom:{tag:"select",classes:e.selectClasses,attributes:e.selectAttributes},components:s,behaviours:Fi(e.selectBehaviours,[er.config({}),Wo.config({store:{mode:"manual",getValue:m=>Lu(m.element),setValue:(m,g)=>{const h=at(e.options);to(e.options,x=>x.value===g).isSome()?Ec(m.element,g):m.element.dom.selectedIndex===-1&&g===""&&h.each(x=>Ec(m.element,x.value))},...l}})])}}}),jT=me([ft("field1Name","field1"),ft("field2Name","field2"),nu("onLockedChange"),Nd(["lockClass"]),ft("locked",!1),nc("coupledFieldBehaviours",[Gr,Wo])]),My=(e,r)=>Eo({factory:ya,name:e,overrides:s=>({fieldBehaviours:Oo([Tr("coupled-input-behaviour",[Kt(Hn(),l=>{((m,g,h)=>ua(m,g,h).bind(Gr.getCurrent))(l,s,r).each(m=>{ua(l,s,"lock").each(g=>{Dr.isOn(g)&&s.onLockedChange(l,m,g)})})})])])})}),TO=me([My("field1","field2"),My("field2","field1"),Eo({factory:wl,schema:[Yt("dom")],name:"lock",overrides:e=>({buttonBehaviours:Oo([Dr.config({selected:e.locked,toggleClass:e.markers.lockClass,aria:{mode:"pressed"}})])})})]),ud=Wl({name:"FormCoupledInputs",configFields:jT(),partFields:TO(),factory:(e,r,s,l)=>({uid:e.uid,dom:e.dom,components:r,behaviours:Bg(e.coupledFieldBehaviours,[Gr.config({find:R.some}),Wo.config({store:{mode:"manual",getValue:m=>{const g=Fg(m,e,["field1","field2"]);return{[e.field1Name]:Wo.getValue(g.field1()),[e.field2Name]:Wo.getValue(g.field2())}},setValue:(m,g)=>{const h=Fg(m,e,["field1","field2"]);$n(g,e.field1Name)&&Wo.setValue(h.field1(),g[e.field1Name]),$n(g,e.field2Name)&&Wo.setValue(h.field2(),g[e.field2Name])}}})]),apis:{getField1:m=>ua(m,e,"field1"),getField2:m=>ua(m,e,"field2"),getLock:m=>ua(m,e,"lock")}}),apis:{getField1:(e,r)=>e.getField1(r),getField2:(e,r)=>e.getField2(r),getLock:(e,r)=>e.getLock(r)}}),V0=e=>{const r=/^\s*(\d+(?:\.\d+)?)\s*(|cm|mm|in|px|pt|pc|em|ex|ch|rem|vw|vh|vmin|vmax|%)\s*$/.exec(e);if(r!==null){const s=parseFloat(r[1]),l=r[2];return Fr.value({value:s,unit:l})}return Fr.error(e)},sS=(e,r)=>{const s={"":96,px:96,pt:72,cm:2.54,pc:12,mm:25.4,in:1},l=m=>Vo(s,m);return e.unit===r?R.some(e.value):l(e.unit)&&l(r)?s[e.unit]===s[r]?R.some(e.value):R.some(e.value/s[e.unit]*s[r]):R.none()},iS=e=>R.none(),VT=(e,r)=>{const s=e.label.map(A=>hf(A,r)),l=[Qn.config({disabled:()=>e.disabled||r.isDisabled()}),Wi(),Dn.config({mode:"execution",useEnter:e.multiline!==!0,useControlEnter:e.multiline===!0,execute:A=>($r(A,bf),R.some(!0))}),Tr("textfield-change",[Kt(Hn(),(A,N)=>{_n(A,cd,{name:e.name})}),Kt(am(),(A,N)=>{_n(A,cd,{name:e.name})})]),Bs.config({})],m=e.validation.map(A=>jd.config({getRoot:N=>Go(N.element),invalidClass:"tox-invalid",validator:{validate:N=>{const F=Wo.getValue(N),$=A.validator(F);return zm($===!0?Fr.value(F):Fr.error($))},validateOnLoad:A.validateOnLoad}})).toArray(),g={...e.placeholder.fold(me({}),A=>({placeholder:r.translate(A)})),...e.inputMode.fold(me({}),A=>({inputmode:A}))},h=ya.parts.field({tag:e.multiline===!0?"textarea":"input",...e.data.map(A=>({data:A})).getOr({}),inputAttributes:g,inputClasses:[e.classname],inputBehaviours:Oo($e([l,m])),selectOnFocus:!1,factory:df}),x=e.multiline?{dom:{tag:"div",classes:["tox-textarea-wrap"]},components:[h]}:h,w=(e.flex?["tox-form__group--stretched"]:[]).concat(e.maximized?["tox-form-group--maximize"]:[]),S=[Qn.config({disabled:()=>e.disabled||r.isDisabled(),onDisabled:A=>{ya.getField(A).each(Qn.disable)},onEnabled:A=>{ya.getField(A).each(Qn.enable)}}),Wi()];return ky(s,x,w,S)},$0=(e,r)=>r.getAnimationRoot.fold(()=>e.element,s=>s(e)),lp=e=>e.dimension.property,Hh=(e,r)=>e.dimension.getDimension(r),Yw=(e,r)=>{const s=$0(e,r);Zi(s,[r.shrinkingClass,r.growingClass])},lS=(e,r)=>{rs(e.element,r.openClass),Jr(e.element,r.closedClass),Bn(e.element,lp(r),"0px"),ne(e.element)},cS=(e,r)=>{rs(e.element,r.closedClass),Jr(e.element,r.openClass),Pr(e.element,lp(r))},$T=(e,r,s,l)=>{s.setCollapsed(),Bn(e.element,lp(r),Hh(r,e.element)),Yw(e,r),lS(e,r),r.onStartShrink(e),r.onShrunk(e)},UT=(e,r,s,l)=>{const m=l.getOrThunk(()=>Hh(r,e.element));s.setCollapsed(),Bn(e.element,lp(r),m),ne(e.element);const g=$0(e,r);rs(g,r.growingClass),Jr(g,r.shrinkingClass),lS(e,r),r.onStartShrink(e)},dS=(e,r,s)=>{const l=Hh(r,e.element);(l==="0px"?$T:UT)(e,r,s,R.some(l))},U0=(e,r,s)=>{const l=$0(e,r),m=Di(l,r.shrinkingClass),g=Hh(r,e.element);cS(e,r);const h=Hh(r,e.element);(m?()=>{Bn(e.element,lp(r),g),ne(e.element)}:()=>{lS(e,r)})(),rs(l,r.shrinkingClass),Jr(l,r.growingClass),cS(e,r),Bn(e.element,lp(r),h),s.setExpanded(),r.onStartGrow(e)},uS=(e,r,s)=>{const l=$0(e,r);return Di(l,r.growingClass)===!0},mS=(e,r,s)=>{const l=$0(e,r);return Di(l,r.shrinkingClass)===!0};var ZT=Object.freeze({__proto__:null,refresh:(e,r,s)=>{if(s.isExpanded()){Pr(e.element,lp(r));const l=Hh(r,e.element);Bn(e.element,lp(r),l)}},grow:(e,r,s)=>{s.isExpanded()||U0(e,r,s)},shrink:(e,r,s)=>{s.isExpanded()&&dS(e,r,s)},immediateShrink:(e,r,s)=>{s.isExpanded()&&$T(e,r,s)},hasGrown:(e,r,s)=>s.isExpanded(),hasShrunk:(e,r,s)=>s.isCollapsed(),isGrowing:uS,isShrinking:mS,isTransitioning:(e,r,s)=>uS(e,r)||mS(e,r),toggleGrow:(e,r,s)=>{(s.isExpanded()?dS:U0)(e,r,s)},disableTransitions:Yw,immediateGrow:(e,r,s)=>{s.isExpanded()||(cS(e,r),Bn(e.element,lp(r),Hh(r,e.element)),Yw(e,r),s.setExpanded(),r.onStartGrow(e),r.onGrown(e))}}),qT=Object.freeze({__proto__:null,exhibit:(e,r,s)=>{const l=r.expanded;return hi(l?{classes:[r.openClass],styles:{}}:{classes:[r.closedClass],styles:Xi(r.dimension.property,"0px")})},events:(e,r)=>qa([Mu(Ni(),(s,l)=>{l.event.raw.propertyName===e.dimension.property&&(Yw(s,e),r.isExpanded()&&Pr(s.element,e.dimension.property),(r.isExpanded()?e.onGrown:e.onShrunk)(s))})])}),zO=[Yt("closedClass"),Yt("openClass"),Yt("shrinkingClass"),Yt("growingClass"),la("getAnimationRoot"),Hr("onShrunk"),Hr("onStartShrink"),Hr("onGrown"),Hr("onStartGrow"),ft("expanded",!1),ni("dimension",Ms("property",{width:[as("property","width"),as("getDimension",e=>Ga(e)+"px")],height:[as("property","height"),as("getDimension",e=>Nt(e)+"px")]}))];const Ml=Ri({fields:zO,name:"sliding",active:qT,apis:ZT,state:Object.freeze({__proto__:null,init:e=>{const r=Sn(e.expanded);return Ia({isExpanded:()=>r.get()===!0,isCollapsed:()=>r.get()===!1,setCollapsed:rt(r.set,!1),setExpanded:rt(r.set,!0),readState:()=>"expanded: "+r.get()})}})}),gS=e=>({isEnabled:()=>!Qn.isDisabled(e),setEnabled:r=>Qn.set(e,!r),setActive:r=>{const s=e.element;r?(Jr(s,"tox-tbtn--enabled"),Kn(s,"aria-pressed",!0)):(rs(s,"tox-tbtn--enabled"),xa(s,"aria-pressed"))},isActive:()=>Di(e.element,"tox-tbtn--enabled"),setText:r=>{_n(e,dd,{text:r})},setIcon:r=>_n(e,ip,{icon:r})}),cp=(e,r,s,l,m=!0)=>oS({text:e.text,icon:e.icon,tooltip:e.tooltip,searchable:e.search.isSome(),role:l,fetch:(g,h)=>{const x={pattern:e.search.isSome()?HE(g):""};e.fetch(w=>{h(Ny(w,Oc.CLOSE_ON_EXECUTE,s,{isHorizontalMenu:!1,search:e.search}))},x,gS(g))},onSetup:e.onSetup,getApi:gS,columns:1,presets:"normal",classes:[],dropdownBehaviours:[...m?[Bs.config({})]:[]]},r,s.shared),Xw=(e,r,s)=>{const l=g=>h=>{const x=!h.isActive();h.setActive(x),g.storage.set(x),s.shared.getSink().each(w=>{r().getOpt(w).each(S=>{sd(S.element),_n(S,Xu,{name:g.name,value:g.storage.get()})})})},m=g=>h=>{h.setActive(g.storage.get())};return g=>{g(dt(e,h=>{const x=h.text.fold(()=>({}),w=>({text:w}));return{type:h.type,active:!1,...x,onAction:l(h),onSetup:m(h)}}))}},pS=e=>({dom:{tag:"span",classes:["tox-tree__label"],attributes:{title:e,"aria-label":e}},components:[Ya(e)]}),fS=un("leaf-label-event-id"),Jw=({leaf:e,onLeafAction:r,visible:s,treeId:l,selectedId:m,backstage:g})=>{const h=e.menu.map(w=>cp(w,"tox-mbtn",g,R.none(),s)),x=[pS(e.title)];return h.each(w=>x.push(w)),wl.sketch({dom:{tag:"div",classes:["tox-tree--leaf__label","tox-trbtn"].concat(s?["tox-tree--leaf__label--visible"]:[])},components:x,role:"treeitem",action:w=>{r(e.id),w.getSystem().broadcastOn([`update-active-item-${l}`],{value:e.id})},eventOrder:{[fn()]:[fS,"keying"]},buttonBehaviours:Oo([...s?[Bs.config({})]:[],Dr.config({toggleClass:"tox-trbtn--enabled",toggleOnExecute:!1,aria:{mode:"selected"}}),tc.config({channels:{[`update-active-item-${l}`]:{onReceive:(w,S)=>{(S.value===e.id?Dr.on:Dr.off)(w)}}}}),Tr(fS,[La((w,S)=>{m.each(A=>{(A===e.id?Dr.on:Dr.off)(w)})}),Kt(fn(),(w,S)=>{const A=S.event.raw.code==="ArrowLeft",N=S.event.raw.code==="ArrowRight";A?(ou(w.element,".tox-tree--directory").each(F=>{w.getSystem().getByDom(F).each($=>{um(F,".tox-tree--directory__label").each(W=>{$.getSystem().getByDom(W).each(er.focus)})})}),S.stop()):N&&S.stop()})])])})},WT=un("directory-label-event-id"),Dy=({directory:e,visible:r,noChildren:s,backstage:l})=>{const m=e.menu.map(S=>cp(S,"tox-mbtn",l,R.none())),g=[{dom:{tag:"div",classes:["tox-chevron"]},components:[(h="chevron-right",x=l.shared.providers.icons,((S,A,N)=>Uu(S,{tag:"span",classes:["tox-tree__icon-wrap","tox-icon"],behaviours:[]},A))(h,x))]},pS(e.title)];var h,x;m.each(S=>{g.push(S)});const w=S=>{ou(S.element,".tox-tree--directory").each(A=>{S.getSystem().getByDom(A).each(N=>{const F=!Dr.isOn(N);Dr.toggle(N),_n(S,"expand-tree-node",{expanded:F,node:e.id})})})};return wl.sketch({dom:{tag:"div",classes:["tox-tree--directory__label","tox-trbtn"].concat(r?["tox-tree--directory__label--visible"]:[])},components:g,action:w,eventOrder:{[fn()]:[WT,"keying"]},buttonBehaviours:Oo([...r?[Bs.config({})]:[],Tr(WT,[Kt(fn(),(S,A)=>{const N=A.event.raw.code==="ArrowRight",F=A.event.raw.code==="ArrowLeft";N&&s&&A.stop(),(N||F)&&ou(S.element,".tox-tree--directory").each($=>{S.getSystem().getByDom($).each(W=>{!Dr.isOn(W)&&N||Dr.isOn(W)&&F?(w(S),A.stop()):F&&!Dr.isOn(W)&&(ou(W.element,".tox-tree--directory").each(se=>{um(se,".tox-tree--directory__label").each(le=>{W.getSystem().getByDom(le).each(er.focus)})}),A.stop())})})})])])})},Z0=({children:e,onLeafAction:r,visible:s,treeId:l,expandedIds:m,selectedId:g,backstage:h})=>({dom:{tag:"div",classes:["tox-tree--directory__children"]},components:e.map(x=>x.type==="leaf"?Jw({leaf:x,selectedId:g,onLeafAction:r,visible:s,treeId:l,backstage:h}):q0({directory:x,expandedIds:m,selectedId:g,onLeafAction:r,labelTabstopping:s,treeId:l,backstage:h})),behaviours:Oo([Ml.config({dimension:{property:"height"},closedClass:"tox-tree--directory__children--closed",openClass:"tox-tree--directory__children--open",growingClass:"tox-tree--directory__children--growing",shrinkingClass:"tox-tree--directory__children--shrinking",expanded:s}),fr.config({})])}),hS=un("directory-event-id"),q0=({directory:e,onLeafAction:r,labelTabstopping:s,treeId:l,backstage:m,expandedIds:g,selectedId:h})=>{const{children:x}=e,w=Sn(g),S=g.includes(e.id);return{dom:{tag:"div",classes:["tox-tree--directory"],attributes:{role:"treeitem"}},components:[Dy({directory:e,visible:s,noChildren:e.children.length===0,backstage:m}),Z0({children:x,expandedIds:g,selectedId:h,onLeafAction:r,visible:S,treeId:l,backstage:m})],behaviours:Oo([Tr(hS,[La((A,N)=>{Dr.set(A,S)}),Kt("expand-tree-node",(A,N)=>{const{expanded:F,node:$}=N.event;w.set(F?[...w.get(),$]:w.get().filter(W=>W!==$))})]),Dr.config({...e.children.length>0?{aria:{mode:"expanded"}}:{},toggleClass:"tox-tree--directory--expanded",onToggled:(A,N)=>{const F=A.components()[1],$=(W=N,x.map(se=>se.type==="leaf"?Jw({leaf:se,selectedId:h,onLeafAction:r,visible:W,treeId:l,backstage:m}):q0({directory:se,expandedIds:w.get(),selectedId:h,onLeafAction:r,labelTabstopping:W,treeId:l,backstage:m})));var W;N?Ml.grow(F):Ml.shrink(F),fr.set(F,$)}})])}},W0=un("tree-event-id");var GT=Object.freeze({__proto__:null,events:(e,r)=>{const s=e.stream.streams.setup(e,r);return qa([Kt(e.event,s),od(()=>r.cancel())].concat(e.cancelEvent.map(l=>[Kt(l,()=>r.cancel())]).getOr([])))}});const bS=e=>{const r=Sn(null);return Ia({readState:()=>({timer:r.get()!==null?"set":"unset"}),setTimer:s=>{r.set(s)},cancel:()=>{const s=r.get();s!==null&&s.cancel()}})};var KT=Object.freeze({__proto__:null,throttle:bS,init:e=>e.stream.streams.state(e)}),yS=[ni("stream",Ms("mode",{throttle:[Yt("delay"),ft("stopEvent",!0),as("streams",{setup:(e,r)=>{const s=e.stream,l=Ay(e.onStream,s.delay);return r.setTimer(l),(m,g)=>{l.throttle(m,g),s.stopEvent&&g.stop()}},state:bS})]})),ft("event","input"),la("cancelEvent"),nu("onStream")];const Ry=Ri({fields:yS,name:"streaming",active:GT,state:KT}),jh=(e,r,s)=>{const l=Wo.getValue(s);Wo.setValue(r,l),YT(r)},vS=(e,r)=>{const s=e.element,l=Lu(s),m=s.dom;Ma(s,"type")!=="number"&&r(m,l)},YT=e=>{vS(e,(r,s)=>r.setSelectionRange(s.length,s.length))},G0=me("alloy.typeahead.itemexecute"),xS=me([la("lazySink"),Yt("fetch"),ft("minChars",5),ft("responseTime",1e3),Hr("onOpen"),ft("getHotspot",R.some),ft("getAnchorOverrides",me({})),ft("layouts",R.none()),ft("eventOrder",{}),Bm("model",{},[ft("getDisplayText",e=>e.meta!==void 0&&e.meta.text!==void 0?e.meta.text:e.value),ft("selectsOver",!0),ft("populateFromBrowse",!0)]),Hr("onSetValue"),Ol("onExecute"),Hr("onItemExecute"),ft("inputClasses",[]),ft("inputAttributes",{}),ft("inputStyles",{}),ft("matchWidth",!0),ft("useMinWidth",!1),ft("dismissOnBlur",!0),Nd(["openClass"]),la("initialData"),qi("typeaheadBehaviours",[er,Wo,Ry,Dn,Dr,js]),ro("lazyTypeaheadComp",()=>Sn(R.none)),ro("previewing",()=>Sn(!0))].concat(y2()).concat(E0())),wS=me([Ro({schema:[jf()],name:"menu",overrides:e=>({fakeFocus:!0,onHighlightItem:(r,s,l)=>{e.previewing.get()?e.lazyTypeaheadComp.get().each(m=>{((g,h,x)=>{if(g.selectsOver){const w=Wo.getValue(h),S=g.getDisplayText(w),A=Wo.getValue(x);return g.getDisplayText(A).indexOf(S)===0?R.some(()=>{jh(0,h,x),((N,F)=>{vS(N,($,W)=>$.setSelectionRange(F,W.length))})(h,S.length)}):R.none()}return R.none()})(e.model,m,l).fold(()=>{e.model.selectsOver?(ba.dehighlight(s,l),e.previewing.set(!0)):e.previewing.set(!1)},g=>{g(),e.previewing.set(!1)})}):e.lazyTypeaheadComp.get().each(m=>{e.model.populateFromBrowse&&jh(e.model,m,l),Ca(l.element,"id").each(g=>Kn(m.element,"aria-activedescendant",g))})},onExecute:(r,s)=>e.lazyTypeaheadComp.get().map(l=>(_n(l,G0(),{item:s}),!0)),onHover:(r,s)=>{e.previewing.set(!1),e.lazyTypeaheadComp.get().each(l=>{e.model.populateFromBrowse&&jh(e.model,l,s)})}})})]),XT=Wl({name:"Typeahead",configFields:xS(),partFields:wS(),factory:(e,r,s,l)=>{const m=(N,F,$)=>{e.previewing.set(!1);const W=js.getCoupled(N,"sandbox");if(Lr.isOpen(W))Gr.getCurrent(W).each(se=>{ba.getHighlighted(se).fold(()=>{$(se)},()=>{Bc(W,se.element,"keydown",F)})});else{const se=le=>{Gr.getCurrent(le).each($)};Gu(e,h(N),N,W,l,se,Gl.HighlightMenuAndItem).get(he)}},g=J4(e),h=N=>F=>F.map($=>{const W=vo($.menus),se=ct(W,le=>Pt(le.items,fe=>fe.type==="item"));return Wo.getState(N).update(dt(se,le=>le.data)),$}),x=N=>Gr.getCurrent(N),w="typeaheadevents",S=[er.config({}),Wo.config({onSetValue:e.onSetValue,store:{mode:"dataset",getDataKey:N=>Lu(N.element),getFallbackEntry:N=>({value:N,meta:{}}),setValue:(N,F)=>{Ec(N.element,e.model.getDisplayText(F))},...e.initialData.map(N=>Xi("initialValue",N)).getOr({})}}),Ry.config({stream:{mode:"throttle",delay:e.responseTime,stopEvent:!1},onStream:(N,F)=>{const $=js.getCoupled(N,"sandbox");if(er.isFocused(N)&&Lu(N.element).length>=e.minChars){const W=x($).bind(le=>ba.getHighlighted(le).map(Wo.getValue));e.previewing.set(!0);const se=le=>{x($).each(fe=>{W.fold(()=>{e.model.selectsOver&&ba.highlightFirst(fe)},te=>{ba.highlightBy(fe,X=>Wo.getValue(X).value===te.value),ba.getHighlighted(fe).orThunk(()=>(ba.highlightFirst(fe),R.none()))})})};Gu(e,h(N),N,$,l,se,Gl.HighlightJustMenu).get(he)}},cancelEvent:ig()}),Dn.config({mode:"special",onDown:(N,F)=>(m(N,F,ba.highlightFirst),R.some(!0)),onEscape:N=>{const F=js.getCoupled(N,"sandbox");return Lr.isOpen(F)?(Lr.close(F),R.some(!0)):R.none()},onUp:(N,F)=>(m(N,F,ba.highlightLast),R.some(!0)),onEnter:N=>{const F=js.getCoupled(N,"sandbox"),$=Lr.isOpen(F);if($&&!e.previewing.get())return x(F).bind(W=>ba.getHighlighted(W)).map(W=>(_n(N,G0(),{item:W}),!0));{const W=Wo.getValue(N);return $r(N,ig()),e.onExecute(F,N,W),$&&Lr.close(F),R.some(!0)}}}),Dr.config({toggleClass:e.markers.openClass,aria:{mode:"expanded"}}),js.config({others:{sandbox:N=>hw(e,N,{onOpen:()=>Dr.on(N),onClose:()=>{e.lazyTypeaheadComp.get().each(F=>xa(F.element,"aria-activedescendant")),Dr.off(N)}})}}),Tr(w,[La(N=>{e.lazyTypeaheadComp.set(R.some(N))}),od(N=>{e.lazyTypeaheadComp.set(R.none())}),Cc(N=>{const F=he;S0(e,h(N),N,l,F,Gl.HighlightMenuAndItem).get(he)}),Kt(G0(),(N,F)=>{const $=js.getCoupled(N,"sandbox");jh(e.model,N,F.event.item),$r(N,ig()),e.onItemExecute(N,$,F.event.item,Wo.getValue(N)),Lr.close($),YT(N)})].concat(e.dismissOnBlur?[Kt(vp(),N=>{const F=js.getCoupled(N,"sandbox");gc(F.element).isNone()&&Lr.close(F)})]:[]))],A={[sm()]:[Wo.name(),Ry.name(),w],...e.eventOrder};return{uid:e.uid,dom:v2(Da(e,{inputAttributes:{role:"combobox","aria-autocomplete":"list","aria-haspopup":"true"}})),behaviours:{...g,...Fi(e.typeaheadBehaviours,S)},eventOrder:A}}}),kf=e=>({...e,toCached:()=>kf(e.toCached()),bindFuture:r=>kf(e.bind(s=>s.fold(l=>zm(Fr.error(l)),l=>r(l)))),bindResult:r=>kf(e.map(s=>s.bind(r))),mapResult:r=>kf(e.map(s=>s.map(r))),mapError:r=>kf(e.map(s=>s.mapError(r))),foldResult:(r,s)=>e.map(l=>l.fold(r,s)),withTimeout:(r,s)=>kf(Qg(l=>{let m=!1;const g=setTimeout(()=>{m=!0,l(Fr.error(s()))},r);e.get(h=>{m||(clearTimeout(g),l(h))})}))}),AO=e=>kf(Qg(e)),Qw=(e,r,s=[],l,m,g)=>{const h=r.fold(()=>({}),S=>({action:S})),x={buttonBehaviours:Oo([my(()=>!e.enabled||g.isDisabled()),Wi(),Bs.config({}),Tr("button press",[_p("click"),_p("mousedown")])].concat(s)),eventOrder:{click:["button press","alloy.base.behaviour"],mousedown:["button press","alloy.base.behaviour"]},...h},w=Da(x,{dom:l});return Da(w,{components:m})},OO=(e,r,s,l=[])=>{const m={tag:"button",classes:["tox-tbtn"],attributes:e.tooltip.map(x=>({"aria-label":s.translate(x),title:s.translate(x)})).getOr({})},g=e.icon.map(x=>wf(x,s.icons)),h=Eh([g]);return Qw(e,r,l,m,h,s)},ek=e=>{switch(e){case"primary":return["tox-button"];case"toolbar":return["tox-tbtn"];default:return["tox-button","tox-button--secondary"]}},JT=(e,r,s,l=[],m=[])=>{const g=s.translate(e.text),h=e.icon.map(A=>wf(A,s.icons)),x=[h.getOrThunk(()=>Ya(g))],w=e.buttonType.getOr(e.primary||e.borderless?"primary":"secondary"),S=[...ek(w),...h.isSome()?["tox-button--icon"]:[],...e.borderless?["tox-button--naked"]:[],...m];return Qw(e,r,l,{tag:"button",classes:S,attributes:{title:g}},x,s)},QT=(e,r,s,l=[],m=[])=>{const g=JT(e,R.some(r),s,l,m);return wl.sketch(g)},kS=(e,r)=>s=>{r==="custom"?_n(s,Xu,{name:e,value:{}}):r==="submit"?$r(s,bf):r==="cancel"?$r(s,ep):console.error("Unknown button type: ",r)},K0=(e,r,s)=>{if(((l,m)=>m==="menu")(0,r)){const l=()=>h,m=e,g={...e,type:"menubutton",search:R.none(),onSetup:x=>(x.setEnabled(e.enabled),he),fetch:Xw(m.items,l,s)},h=Ta(cp(g,"tox-tbtn",s,R.none()));return h.asSpec()}if(((l,m)=>m==="custom"||m==="cancel"||m==="submit")(0,r)){const l=kS(e.name,r),m={...e,borderless:!1};return QT(m,l,s.shared.providers,[])}if(((l,m)=>m==="togglebutton")(0,r))return((l,m)=>{var g,h;const x=l.icon.map(te=>sp(te,m.icons)).map(Ta),w=l.buttonType.getOr(l.primary?"primary":"secondary"),S={...l,name:(g=l.name)!==null&&g!==void 0?g:"",primary:w==="primary",tooltip:R.from(l.tooltip),enabled:(h=l.enabled)!==null&&h!==void 0&&h,borderless:!1},A=S.tooltip.map(te=>({"aria-label":m.translate(te),title:m.translate(te)})).getOr({}),N=ek(w??"secondary"),F=l.icon.isSome()&&l.text.isSome(),$={tag:"button",classes:[...N.concat(l.icon.isSome()?["tox-button--icon"]:[]),...l.active?["tox-button--enabled"]:[],...F?["tox-button--icon-and-text"]:[]],attributes:A},W=m.translate(l.text.getOr("")),se=Ya(W),le=[...Eh([x.map(te=>te.asSpec())]),...l.text.isSome()?[se]:[]],fe=Qw(S,R.some(te=>{_n(te,Xu,{name:l.name,value:{setIcon:X=>{x.map(ue=>ue.getOpt(te).each(ye=>{fr.set(ye,[sp(X,m.icons)])}))}}})}),[],$,le,m);return wl.sketch(fe)})(e,s.shared.providers);throw console.error("Unknown footer button type: ",r),new Error("Unknown footer button type")},$d={type:"separator"},NO=e=>({type:"menuitem",value:e.url,text:e.title,meta:{attach:e.attach},onAction:he}),tk=(e,r)=>({type:"menuitem",value:r,text:e,meta:{attach:void 0},onAction:he}),_S=(e,r)=>(s=>dt(s,NO))(((s,l)=>Pt(l,m=>m.type===s))(e,r)),MO=e=>_S("header",e.targets),Y0=e=>_S("anchor",e.targets),ok=e=>R.from(e.anchorTop).map(r=>tk("",r)).toArray(),DO=e=>R.from(e.anchorBottom).map(r=>tk("",r)).toArray(),By=(e,r)=>{const s=e.toLowerCase();return Pt(r,l=>{var m;const g=l.meta!==void 0&&l.meta.text!==void 0?l.meta.text:l.text,h=(m=l.value)!==null&&m!==void 0?m:"";return Yr(g.toLowerCase(),s)||Yr(h.toLowerCase(),s)})},ez=un("aria-invalid"),RO=(e,r)=>{e.dom.checked=r},xu=e=>e.dom.checked,vi=e=>(r,s,l,m)=>Xt(s,"name").fold(()=>e(s,m,R.none()),g=>r.field(g,e(s,m,Xt(l,g)))),tz={bar:vi((e,r)=>((s,l)=>({dom:{tag:"div",classes:["tox-bar","tox-form__controls-h-stack"]},components:dt(s.items,l.interpreter)}))(e,r.shared)),collection:vi((e,r,s)=>KE(e,r.shared.providers,s)),alertbanner:vi((e,r)=>((s,l)=>{const m=Y_(s.icon,l.icons);return Ku.sketch({dom:{tag:"div",attributes:{role:"alert"},classes:["tox-notification","tox-notification--in",`tox-notification--${s.level}`]},components:[{dom:{tag:"div",classes:["tox-notification__icon"],innerHtml:s.url?void 0:m},components:s.url?[wl.sketch({dom:{tag:"button",classes:["tox-button","tox-button--naked","tox-button--icon"],innerHtml:m,attributes:{title:l.translate(s.iconTooltip)}},action:g=>_n(g,Xu,{name:"alert-banner",value:s.url}),buttonBehaviours:Oo([X_()])})]:void 0},{dom:{tag:"div",classes:["tox-notification__body"],innerHtml:l.translate(s.text)}}]})})(e,r.shared.providers)),input:vi((e,r,s)=>((l,m,g)=>VT({name:l.name,multiline:!1,label:l.label,inputMode:l.inputMode,placeholder:l.placeholder,flex:!1,disabled:!l.enabled,classname:"tox-textfield",validation:R.none(),maximized:l.maximized,data:g},m))(e,r.shared.providers,s)),textarea:vi((e,r,s)=>((l,m,g)=>VT({name:l.name,multiline:!0,label:l.label,inputMode:R.none(),placeholder:l.placeholder,flex:!0,disabled:!l.enabled,classname:"tox-textarea",validation:R.none(),maximized:l.maximized,data:g},m))(e,r.shared.providers,s)),label:vi((e,r)=>((s,l)=>{const m="tox-label";return{dom:{tag:"div",classes:["tox-form__group"]},components:[{dom:{tag:"label",classes:[m,...s.align==="center"?[`${m}--center`]:[],...s.align==="end"?[`${m}--end`]:[]]},components:[Ya(l.providers.translate(s.label))]},...dt(s.items,l.interpreter)],behaviours:Oo([rp(),fr.config({}),(g=R.none(),jw(g,Sc,Ds)),Dn.config({mode:"acyclic"})])};var g})(e,r.shared)),iframe:(Ez=(e,r,s)=>((l,m,g)=>{const h="tox-dialog__iframe",x=l.transparent?[]:[`${h}--opaque`],w=l.border?["tox-navobj-bordered"]:[],S={...l.label.map($=>({title:$})).getOr({}),...g.map($=>({srcdoc:$})).getOr({}),...l.sandboxed?{sandbox:"allow-scripts allow-same-origin"}:{}},A=(($,W)=>{const se=Sn($.getOr(""));return{getValue:le=>se.get(),setValue:(le,fe)=>{if(se.get()!==fe){const te=le.element,X=()=>Kn(te,"srcdoc",fe);W?FT.fold(me(Oy),ue=>ue.throttle)(te,fe,X):X()}se.set(fe)}}})(g,l.streamContent),N=l.label.map($=>hf($,m)),F=ya.parts.field({factory:{sketch:$=>YC(R.from(w),{uid:$.uid,dom:{tag:"iframe",attributes:S,classes:[h,...x]},behaviours:Oo([Bs.config({}),er.config({}),Uc(g,A.getValue,A.setValue),tc.config({channels:{[Zw]:{onReceive:(W,se)=>{se.newFocus.each(le=>{Go(W.element).each(fe=>{(Jo(W.element,le)?Jr:rs)(fe,"tox-navobj-bordered-focus")})})}}}})])})}});return ky(N,F,["tox-form__group--stretched"],[])})(e,r.shared.providers,s),(e,r,s,l)=>{const m=Da(r,{source:"dynamic"});return vi(Ez)(e,m,s,l)}),button:vi((e,r)=>((s,l)=>{const m=kS(s.name,"custom");return g=R.none(),h=ya.parts.field({factory:wl,...JT(s,R.some(m),l,[ap(""),rp()])}),ky(g,h,[],[]);var g,h})(e,r.shared.providers)),checkbox:vi((e,r,s)=>((l,m,g)=>{const h=N=>(N.element.dom.click(),R.some(!0)),x=ya.parts.field({factory:{sketch:Ze},dom:{tag:"input",classes:["tox-checkbox__input"],attributes:{type:"checkbox"}},behaviours:Oo([rp(),Qn.config({disabled:()=>!l.enabled||m.isDisabled(),onDisabled:N=>{Go(N.element).each(F=>Jr(F,"tox-checkbox--disabled"))},onEnabled:N=>{Go(N.element).each(F=>rs(F,"tox-checkbox--disabled"))}}),Bs.config({}),er.config({}),jw(g,xu,RO),Dn.config({mode:"special",onEnter:h,onSpace:h,stopSpaceKeyup:!0}),Tr("checkbox-events",[Kt(Tn(),(N,F)=>{_n(N,cd,{name:l.name})})])])}),w=ya.parts.label({dom:{tag:"span",classes:["tox-checkbox__label"]},components:[Ya(m.translate(l.label))],behaviours:Oo([Cy.config({})])}),S=N=>Uu(N==="checked"?"selected":"unselected",{tag:"span",classes:["tox-icon","tox-checkbox-icon__"+N]},m.icons),A=Ta({dom:{tag:"div",classes:["tox-checkbox__icons"]},components:[S("checked"),S("unchecked")]});return ya.sketch({dom:{tag:"label",classes:["tox-checkbox"]},components:[x,A.asSpec(),w],fieldBehaviours:Oo([Qn.config({disabled:()=>!l.enabled||m.isDisabled()}),Wi()])})})(e,r.shared.providers,s)),colorinput:vi((e,r,s)=>((l,m,g,h)=>{const x=ya.parts.field({factory:df,inputClasses:["tox-textfield"],data:h,onSetValue:N=>jd.run(N).get(he),inputBehaviours:Oo([Qn.config({disabled:m.providers.isDisabled}),Wi(),Bs.config({}),jd.config({invalidClass:"tox-textbox-field-invalid",getRoot:N=>Go(N.element),notify:{onValid:N=>{const F=Wo.getValue(N);_n(N,oT,{color:F})}},validator:{validateOnLoad:!1,validate:N=>{const F=Wo.getValue(N);if(F.length===0)return zm(Fr.value(!0));{const $=_t("span");Bn($,"background-color",F);const W=Ir($,"background-color").fold(()=>Fr.error("blah"),se=>Fr.value(F));return zm(W)}}}})]),selectOnFocus:!1}),w=l.label.map(N=>hf(N,m.providers)),S=(N,F)=>{_n(N,nT,{value:F})},A=Ta(((N,F)=>Hd.sketch({dom:N.dom,components:N.components,toggleClass:"mce-active",dropdownBehaviours:Oo([my(F.providers.isDisabled),Wi(),Cy.config({}),Bs.config({})]),layouts:N.layouts,sandboxClasses:["tox-dialog__popups"],lazySink:F.getSink,fetch:$=>Qg(W=>N.fetch(W)).map(W=>R.from(yw(Da(aC(un("menu-value"),W,se=>{N.onItemAction($,se)},N.columns,N.presets,Oc.CLOSE_ON_EXECUTE,Bo,F.providers),{movement:_0(N.columns,N.presets)})))),parts:{menu:Ch(0,0,N.presets)}}))({dom:{tag:"span",attributes:{"aria-label":m.providers.translate("Color swatch")}},layouts:{onRtl:()=>[Gs,Qi,yi],onLtr:()=>[Qi,Gs,yi]},components:[],fetch:nC(g.getColors(l.storageKey),l.storageKey,g.hasCustomColors()),columns:g.getColorCols(l.storageKey),presets:"color",onItemAction:(N,F)=>{A.getOpt(N).each($=>{F==="custom"?g.colorPicker(W=>{W.fold(()=>$r($,_C),se=>{S($,se),CE(l.storageKey,se)})},"#ffffff"):S($,F==="remove"?"":F)})}},m));return ya.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:w.toArray().concat([{dom:{tag:"div",classes:["tox-color-input"]},components:[x,A.asSpec()]}]),fieldBehaviours:Oo([Tr("form-field-events",[Kt(oT,(N,F)=>{A.getOpt(N).each($=>{Bn($.element,"background-color",F.event.color)}),_n(N,cd,{name:l.name})}),Kt(nT,(N,F)=>{ya.getField(N).each($=>{Wo.setValue($,F.event.value),Gr.getCurrent(N).each(er.focus)})}),Kt(_C,(N,F)=>{ya.getField(N).each($=>{Gr.getCurrent(N).each(er.focus)})})])])})})(e,r.shared,r.colorinput,s)),colorpicker:vi((e,r,s)=>((l,m,g)=>{const h=S=>"tox-"+S,x=WC((S=>A=>io(A)?S.translate(I0[A]):S.translate(A))(m),h),w=Ta(x.sketch({dom:{tag:"div",classes:[h("color-picker-container")],attributes:{role:"presentation"}},onValidHex:S=>{_n(S,Xu,{name:"hex-valid",value:!0})},onInvalidHex:S=>{_n(S,Xu,{name:"hex-valid",value:!1})}}));return{dom:{tag:"div"},components:[w.asSpec()],behaviours:Oo([Uc(g,S=>{const A=w.get(S);return Gr.getCurrent(A).bind(N=>Wo.getValue(N).hex).map(N=>"#"+Ys(N,"#")).getOr("")},(S,A)=>{const N=R.from(/^#([a-fA-F0-9]{3}(?:[a-fA-F0-9]{3})?)/.exec(A)).bind($=>Me($,1)),F=w.get(S);Gr.getCurrent(F).fold(()=>{},$=>{Wo.setValue($,{hex:N.getOr("")}),vf.getField($,"hex").each(W=>{$r(W,Hn())})})}),rp()])}})(0,r.shared.providers,s)),dropzone:vi((e,r,s)=>((l,m,g)=>{const h=(W,se)=>{se.stop()},x=W=>(se,le)=>{Ie(W,fe=>{fe(se,le)})},w=(W,se)=>{var le;if(!Qn.isDisabled(W)){const fe=se.event.raw;A(W,(le=fe.dataTransfer)===null||le===void 0?void 0:le.files)}},S=(W,se)=>{const le=se.event.raw.target;A(W,le.files)},A=(W,se)=>{se&&(Wo.setValue(W,((le,fe)=>{const te=Om.explode(fe.getOption("images_file_types"));return Pt(Ge(le),X=>uo(te,ue=>cs(X.name.toLowerCase(),`.${ue.toLowerCase()}`)))})(se,m)),_n(W,cd,{name:l.name}))},N=Ta({dom:{tag:"input",attributes:{type:"file",accept:"image/*"},styles:{display:"none"}},behaviours:Oo([Tr("input-file-events",[jl(fa()),jl(Fm())])])}),F=l.label.map(W=>hf(W,m)),$=ya.parts.field({factory:{sketch:W=>({uid:W.uid,dom:{tag:"div",classes:["tox-dropzone-container"]},behaviours:Oo([ap(g.getOr([])),rp(),Qn.config({}),Dr.config({toggleClass:"dragenter",toggleOnExecute:!1}),Tr("dropzone-events",[Kt("dragenter",x([h,Dr.toggle])),Kt("dragleave",x([h,Dr.toggle])),Kt("dragover",h),Kt("drop",x([h,w])),Kt(Tn(),S)])]),components:[{dom:{tag:"div",classes:["tox-dropzone"],styles:{}},components:[{dom:{tag:"p"},components:[Ya(m.translate("Drop an image here"))]},wl.sketch({dom:{tag:"button",styles:{position:"relative"},classes:["tox-button","tox-button--secondary"]},components:[Ya(m.translate("Browse for an image")),N.asSpec()],action:se=>{N.get(se).element.dom.click()},buttonBehaviours:Oo([Bs.config({}),my(m.isDisabled),Wi()])})]}]})}});return ky(F,$,["tox-form__group--stretched"],[])})(e,r.shared.providers,s)),grid:vi((e,r)=>((s,l)=>({dom:{tag:"div",classes:["tox-form__grid",`tox-form__grid--${s.columns}col`]},components:dt(s.items,l.interpreter)}))(e,r.shared)),listbox:vi((e,r,s)=>((l,m,g)=>{const h=m.shared.providers,x=g.bind(N=>aS(l.items,N)).orThunk(()=>at(l.items).filter(rS)),w=l.label.map(N=>hf(N,h)),S=ya.parts.field({dom:{},factory:{sketch:N=>oS({uid:N.uid,text:x.map(F=>F.text),icon:R.none(),tooltip:l.label,role:R.none(),fetch:(F,$)=>{const W=HT(F,l.name,l.items,Wo.getValue(F));$(Ny(W,Oc.CLOSE_ON_EXECUTE,m,{isHorizontalMenu:!1,search:R.none()}))},onSetup:me(he),getApi:me({}),columns:1,presets:"normal",classes:[],dropdownBehaviours:[Bs.config({}),Uc(x.map(F=>F.value),F=>Ma(F.element,PT),(F,$)=>{aS(l.items,$).each(W=>{Kn(F.element,PT,W.value),_n(F,dd,{text:W.text})})})]},"tox-listbox",m.shared)}}),A={dom:{tag:"div",classes:["tox-listboxfield"]},components:[S]};return ya.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:$e([w.toArray(),[A]]),fieldBehaviours:Oo([Qn.config({disabled:me(!l.enabled),onDisabled:N=>{ya.getField(N).each(Qn.disable)},onEnabled:N=>{ya.getField(N).each(Qn.enable)}})])})})(e,r,s)),selectbox:vi((e,r,s)=>((l,m,g)=>{const h=dt(l.items,N=>({text:m.translate(N.text),value:N.value})),x=l.label.map(N=>hf(N,m)),w=ya.parts.field({dom:{},...g.map(N=>({data:N})).getOr({}),selectAttributes:{size:l.size},options:h,factory:EO,selectBehaviours:Oo([Qn.config({disabled:()=>!l.enabled||m.isDisabled()}),Bs.config({}),Tr("selectbox-change",[Kt(Tn(),(N,F)=>{_n(N,cd,{name:l.name})})])])}),S=l.size>1?R.none():R.some(Uu("chevron-down",{tag:"div",classes:["tox-selectfield__icon-js"]},m.icons)),A={dom:{tag:"div",classes:["tox-selectfield"]},components:$e([[w],S.toArray()])};return ya.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:$e([x.toArray(),[A]]),fieldBehaviours:Oo([Qn.config({disabled:()=>!l.enabled||m.isDisabled(),onDisabled:N=>{ya.getField(N).each(Qn.disable)},onEnabled:N=>{ya.getField(N).each(Qn.enable)}}),Wi()])})})(e,r.shared.providers,s)),sizeinput:vi((e,r)=>((s,l)=>{let m=iS;const g=un("ratio-event"),h=$=>Uu($,{tag:"span",classes:["tox-icon","tox-lock-icon__"+$]},l.icons),x=ud.parts.lock({dom:{tag:"button",classes:["tox-lock","tox-button","tox-button--naked","tox-button--icon"],attributes:{title:l.translate(s.label.getOr("Constrain proportions"))}},components:[h("lock"),h("unlock")],buttonBehaviours:Oo([Qn.config({disabled:()=>!s.enabled||l.isDisabled()}),Wi(),Bs.config({})])}),w=$=>({dom:{tag:"div",classes:["tox-form__group"]},components:$}),S=$=>ya.parts.field({factory:df,inputClasses:["tox-textfield"],inputBehaviours:Oo([Qn.config({disabled:()=>!s.enabled||l.isDisabled()}),Wi(),Bs.config({}),Tr("size-input-events",[Kt(He(),(W,se)=>{_n(W,g,{isField1:$})}),Kt(Tn(),(W,se)=>{_n(W,cd,{name:s.name})})])]),selectOnFocus:!1}),A=$=>({dom:{tag:"label",classes:["tox-label"]},components:[Ya(l.translate($))]}),N=ud.parts.field1(w([ya.parts.label(A("Width")),S(!0)])),F=ud.parts.field2(w([ya.parts.label(A("Height")),S(!1)]));return ud.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:[{dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:[N,F,w([A(" "),x])]}],field1Name:"width",field2Name:"height",locked:!0,markers:{lockClass:"tox-locked"},onLockedChange:($,W,se)=>{V0(Wo.getValue($)).each(le=>{m(le).each(fe=>{Wo.setValue(W,(te=>{const X={"":0,px:0,pt:1,mm:1,pc:2,ex:2,em:2,ch:2,rem:2,cm:3,in:4,"%":4};let ue=te.value.toFixed((ye=te.unit)in X?X[ye]:1);var ye;return ue.indexOf(".")!==-1&&(ue=ue.replace(/\.?0*$/,"")),ue+te.unit})(fe))})})},coupledFieldBehaviours:Oo([Qn.config({disabled:()=>!s.enabled||l.isDisabled(),onDisabled:$=>{ud.getField1($).bind(ya.getField).each(Qn.disable),ud.getField2($).bind(ya.getField).each(Qn.disable),ud.getLock($).each(Qn.disable)},onEnabled:$=>{ud.getField1($).bind(ya.getField).each(Qn.enable),ud.getField2($).bind(ya.getField).each(Qn.enable),ud.getLock($).each(Qn.enable)}}),Wi(),Tr("size-input-events2",[Kt(g,($,W)=>{const se=W.event.isField1,le=se?ud.getField1($):ud.getField2($),fe=se?ud.getField2($):ud.getField1($),te=le.map(Wo.getValue).getOr(""),X=fe.map(Wo.getValue).getOr("");m=((ue,ye)=>{const we=V0(ue).toOptional(),Ye=V0(ye).toOptional();return vr(we,Ye,(Tt,Qt)=>sS(Tt,Qt.unit).map(no=>Qt.value/no).map(no=>{return oo=no,Uo=Qt.unit,pn=>sS(pn,Uo).map(Mn=>({value:Mn*oo,unit:Uo}));var oo,Uo}).getOr(iS)).getOr(iS)})(te,X)})])])})})(e,r.shared.providers)),slider:vi((e,r,s)=>((l,m,g)=>{const h=Vd.parts.label({dom:{tag:"label",classes:["tox-label"]},components:[Ya(m.translate(l.label))]}),x=Vd.parts.spectrum({dom:{tag:"div",classes:["tox-slider__rail"],attributes:{role:"presentation"}}}),w=Vd.parts.thumb({dom:{tag:"div",classes:["tox-slider__handle"],attributes:{role:"presentation"}}});return Vd.sketch({dom:{tag:"div",classes:["tox-slider"],attributes:{role:"presentation"}},model:{mode:"x",minX:l.min,maxX:l.max,getInitialValue:me(g.getOrThunk(()=>(Math.abs(l.max)-Math.abs(l.min))/2))},components:[h,x,w],sliderBehaviours:Oo([rp(),er.config({})]),onChoose:(S,A,N)=>{_n(S,cd,{name:l.name,value:N})}})})(e,r.shared.providers,s)),urlinput:vi((e,r,s)=>((l,m,g,h)=>{const x=m.shared.providers,w=te=>{const X=Wo.getValue(te);g.addToHistory(X.value,l.filetype)},S={...h.map(te=>({initialData:te})).getOr({}),dismissOnBlur:!0,inputClasses:["tox-textfield"],sandboxClasses:["tox-dialog__popups"],inputAttributes:{"aria-errormessage":ez,type:"url"},minChars:0,responseTime:0,fetch:te=>{const X=((ye,we,Ye)=>{var Tt,Qt;const no=Wo.getValue(we),oo=(Qt=(Tt=no==null?void 0:no.meta)===null||Tt===void 0?void 0:Tt.text)!==null&&Qt!==void 0?Qt:no.value;return Ye.getLinkInformation().fold(()=>[],Uo=>{const pn=By(oo,(ar=>dt(ar,dr=>tk(dr,dr)))(Ye.getHistory(ye)));return ye==="file"?(Mn=[pn,By(oo,MO(Uo)),By(oo,$e([ok(Uo),Y0(Uo),DO(Uo)]))],zo(Mn,(ar,dr)=>ar.length===0||dr.length===0?ar.concat(dr):ar.concat($d,dr),[])):pn;var Mn})})(l.filetype,te,g),ue=Ny(X,Oc.BUBBLE_TO_SANDBOX,m,{isHorizontalMenu:!1,search:R.none()});return zm(ue)},getHotspot:te=>le.getOpt(te),onSetValue:(te,X)=>{te.hasConfigured(jd)&&jd.run(te).get(he)},typeaheadBehaviours:Oo([...g.getValidationHandler().map(te=>jd.config({getRoot:X=>Go(X.element),invalidClass:"tox-control-wrap--status-invalid",notify:{onInvalid:(X,ue)=>{F.getOpt(X).each(ye=>{Kn(ye.element,"title",x.translate(ue))})}},validator:{validate:X=>{const ue=Wo.getValue(X);return AO(ye=>{te({type:l.filetype,url:ue.value},we=>{if(we.status==="invalid"){const Ye=Fr.error(we.message);ye(Ye)}else{const Ye=Fr.value(we.message);ye(Ye)}})})},validateOnLoad:!1}})).toArray(),Qn.config({disabled:()=>!l.enabled||x.isDisabled()}),Bs.config({}),Tr("urlinput-events",[Kt(Hn(),te=>{const X=Lu(te.element),ue=X.trim();ue!==X&&Ec(te.element,ue),l.filetype==="file"&&_n(te,cd,{name:l.name})}),Kt(Tn(),te=>{_n(te,cd,{name:l.name}),w(te)}),Kt(am(),te=>{_n(te,cd,{name:l.name}),w(te)})])]),eventOrder:{[Hn()]:["streaming","urlinput-events","invalidating"]},model:{getDisplayText:te=>te.value,selectsOver:!1,populateFromBrowse:!1},markers:{openClass:"tox-textfield--popup-open"},lazySink:m.shared.getSink,parts:{menu:Ch(0,0,"normal")},onExecute:(te,X,ue)=>{_n(X,bf,{})},onItemExecute:(te,X,ue,ye)=>{w(te),_n(te,cd,{name:l.name})}},A=ya.parts.field({...S,factory:XT}),N=l.label.map(te=>hf(te,x)),F=Ta(((te,X,ue=te,ye=te)=>Uu(ue,{tag:"div",classes:["tox-icon","tox-control-wrap__status-icon-"+te],attributes:{title:x.translate(ye),"aria-live":"polite",...X.fold(()=>({}),we=>({id:we}))}},x.icons))("invalid",R.some(ez),"warning")),$=Ta({dom:{tag:"div",classes:["tox-control-wrap__status-icon-wrap"]},components:[F.asSpec()]}),W=g.getUrlPicker(l.filetype),se=un("browser.url.event"),le=Ta({dom:{tag:"div",classes:["tox-control-wrap"]},components:[A,$.asSpec()],behaviours:Oo([Qn.config({disabled:()=>!l.enabled||x.isDisabled()})])}),fe=Ta(QT({name:l.name,icon:R.some("browse"),text:l.picker_text.or(l.label).getOr(""),enabled:l.enabled,primary:!1,buttonType:R.none(),borderless:!0},te=>$r(te,se),x,[],["tox-browse-url"]));return ya.sketch({dom:z0([]),components:N.toArray().concat([{dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:$e([[le.asSpec()],W.map(()=>fe.asSpec()).toArray()])}]),fieldBehaviours:Oo([Qn.config({disabled:()=>!l.enabled||x.isDisabled(),onDisabled:te=>{ya.getField(te).each(Qn.disable),fe.getOpt(te).each(Qn.disable)},onEnabled:te=>{ya.getField(te).each(Qn.enable),fe.getOpt(te).each(Qn.enable)}}),Wi(),Tr("url-input-events",[Kt(se,te=>{Gr.getCurrent(te).each(X=>{const ue=Wo.getValue(X),ye={fieldname:l.name,...ue};W.each(we=>{we(ye).get(Ye=>{Wo.setValue(X,Ye),_n(te,cd,{name:l.name})})})})})])])})})(e,r,r.urlinput,s)),customeditor:vi(e=>{const r=ms(),s=Ta({dom:{tag:e.tag}}),l=ms();return{dom:{tag:"div",classes:["tox-custom-editor"]},behaviours:Oo([Tr("custom-editor-events",[La(m=>{s.getOpt(m).each(g=>{((h=>Vo(h,"init"))(e)?e.init(g.element.dom):CO.load(e.scriptId,e.scriptUrl).then(h=>h(g.element.dom,e.settings))).then(h=>{l.on(x=>{h.setValue(x)}),l.clear(),r.set(h)})})})]),Uc(R.none(),()=>r.get().fold(()=>l.get().getOr(""),m=>m.getValue()),(m,g)=>{r.get().fold(()=>l.set(g),h=>h.setValue(g))}),rp()]),components:[s.asSpec()]}}),htmlpanel:vi(e=>e.presets==="presentation"?Ku.sketch({dom:{tag:"div",classes:["tox-form__group"],innerHtml:e.html}}):Ku.sketch({dom:{tag:"div",classes:["tox-form__group"],innerHtml:e.html,attributes:{role:"document"}},containerBehaviours:Oo([Bs.config({}),er.config({})])})),imagepreview:vi((e,r,s)=>((l,m)=>{const g=Sn(m.getOr({url:""})),h=Ta({dom:{tag:"img",classes:["tox-imagepreview__image"],attributes:m.map(A=>({src:A.url})).getOr({})}}),x=Ta({dom:{tag:"div",classes:["tox-imagepreview__container"],attributes:{role:"presentation"}},components:[h.asSpec()]}),w={};l.height.each(A=>w.height=A);const S=m.map(A=>({url:A.url,zoom:R.from(A.zoom),cachedWidth:R.from(A.cachedWidth),cachedHeight:R.from(A.cachedHeight)}));return{dom:{tag:"div",classes:["tox-imagepreview"],styles:w,attributes:{role:"presentation"}},components:[x.asSpec()],behaviours:Oo([rp(),Uc(S,()=>g.get(),(A,N)=>{const F={url:N.url};N.zoom.each(W=>F.zoom=W),N.cachedWidth.each(W=>F.cachedWidth=W),N.cachedHeight.each(W=>F.cachedHeight=W),g.set(F);const $=()=>{const{cachedWidth:W,cachedHeight:se,zoom:le}=F;if(!tn(W)&&!tn(se)){if(tn(le)){const te=((X,ue,ye)=>{const we=Ga(X),Ye=Nt(X);return Math.min(we/ue,Ye/ye,1)})(A.element,W,se);F.zoom=te}const fe=((te,X,ue,ye,we)=>{const Ye=ue*we,Tt=ye*we,Qt=Math.max(0,te/2-Ye/2),no=Math.max(0,X/2-Tt/2);return{left:Qt.toString()+"px",top:no.toString()+"px",width:Ye.toString()+"px",height:Tt.toString()+"px"}})(Ga(A.element),Nt(A.element),W,se,F.zoom);x.getOpt(A).each(te=>{ji(te.element,fe)})}};h.getOpt(A).each(W=>{const se=W.element;var le;N.url!==Ma(se,"src")&&(Kn(se,"src",N.url),rs(A.element,"tox-imagepreview__loaded")),$(),(le=se,new Promise((fe,te)=>{const X=()=>{ye(),fe(le)},ue=[Ul(le,"load",X),Ul(le,"error",()=>{ye(),te("Unable to load data from image: "+le.dom.src)})],ye=()=>Ie(ue,we=>we.unbind());le.dom.complete&&X()})).then(fe=>{A.getSystem().isConnected()&&(Jr(A.element,"tox-imagepreview__loaded"),F.cachedWidth=fe.dom.naturalWidth,F.cachedHeight=fe.dom.naturalHeight,$())})})})])}})(e,s)),table:vi((e,r)=>((s,l)=>{const m=x=>({dom:{tag:"td",innerHtml:l.translate(x)}});return{dom:{tag:"table",classes:["tox-dialog__table"]},components:[(h=s.header,{dom:{tag:"thead"},components:[{dom:{tag:"tr"},components:dt(h,x=>({dom:{tag:"th",innerHtml:l.translate(x)}}))}]}),(g=s.cells,{dom:{tag:"tbody"},components:dt(g,x=>({dom:{tag:"tr"},components:dt(x,m)}))})],behaviours:Oo([Bs.config({}),er.config({})])};var g,h})(e,r.shared.providers)),tree:vi((e,r)=>((s,l)=>{const m=s.onLeafAction.getOr(he),g=s.onToggleExpand.getOr(he),h=s.defaultExpandedIds,x=Sn(h),w=Sn(s.defaultSelectedId),S=un("tree-id"),A=(N,F)=>s.items.map($=>$.type==="leaf"?Jw({leaf:$,selectedId:N,onLeafAction:m,visible:!0,treeId:S,backstage:l}):q0({directory:$,selectedId:N,onLeafAction:m,expandedIds:F,labelTabstopping:!0,treeId:S,backstage:l}));return{dom:{tag:"div",classes:["tox-tree"],attributes:{role:"tree"}},components:A(w.get(),x.get()),behaviours:Oo([Dn.config({mode:"flow",selector:".tox-tree--leaf__label--visible, .tox-tree--directory__label--visible",cycles:!1}),Tr(W0,[Kt("expand-tree-node",(N,F)=>{const{expanded:$,node:W}=F.event;x.set($?[...x.get(),W]:x.get().filter(se=>se!==W)),g(x.get(),{expanded:$,node:W})})]),tc.config({channels:{[`update-active-item-${S}`]:{onReceive:(N,F)=>{w.set(R.some(F.value)),fr.set(N,A(R.some(F.value),x.get()))}}}}),fr.config({})])}})(e,r)),panel:vi((e,r)=>((s,l)=>({dom:{tag:"div",classes:s.classes},components:dt(s.items,l.shared.interpreter)}))(e,r))},oz={field:(e,r)=>r,record:me([])},nz=(e,r,s,l)=>{const m=Da(l,{shared:{interpreter:g=>nk(e,g,s,m)}});return nk(e,r,s,m)},nk=(e,r,s,l)=>Xt(tz,r.type).fold(()=>(console.error(`Unknown factory type "${r.type}", defaulting to container: `,r),r),m=>m(e,r,s,l)),rz=(e,r,s)=>nk(oz,e,r,s),dp="layout-inset",rk=e=>e.x,CS=(e,r)=>e.x+e.width/2-r.width/2,ak=(e,r)=>e.x+e.width-r.width,sk=e=>e.y,ik=(e,r)=>e.y+e.height-r.height,SS=(e,r)=>e.y+e.height/2-r.height/2,lk=(e,r,s)=>Ji(ak(e,r),ik(e,r),s.insetSouthwest(),Rp(),"southwest",sl(e,{right:0,bottom:3}),dp),ck=(e,r,s)=>Ji(rk(e),ik(e,r),s.insetSoutheast(),Ht(),"southeast",sl(e,{left:1,bottom:3}),dp),X0=(e,r,s)=>Ji(ak(e,r),sk(e),s.insetNorthwest(),gm(),"northwest",sl(e,{right:0,top:2}),dp),J0=(e,r,s)=>Ji(rk(e),sk(e),s.insetNortheast(),ru(),"northeast",sl(e,{left:1,top:2}),dp),Ju=(e,r,s)=>Ji(CS(e,r),sk(e),s.insetNorth(),ub(),"north",sl(e,{top:2}),dp),Fy=(e,r,s)=>Ji(CS(e,r),ik(e,r),s.insetSouth(),Md(),"south",sl(e,{bottom:3}),dp),dk=(e,r,s)=>Ji(ak(e,r),SS(e,r),s.insetEast(),n1(),"east",sl(e,{right:0}),dp),Q0=(e,r,s)=>Ji(rk(e),SS(e,r),s.insetWest(),o1(),"west",sl(e,{left:1}),dp),az=e=>{switch(e){case"north":return Ju;case"northeast":return J0;case"northwest":return X0;case"south":return Fy;case"southeast":return ck;case"southwest":return lk;case"east":return dk;case"west":return Q0}},sz=(e,r,s,l,m)=>Sv(l).map(az).getOr(Ju)(e,r,s,l,m),BO=e=>{switch(e){case"north":return Fy;case"northeast":return ck;case"northwest":return lk;case"south":return Ju;case"southeast":return J0;case"southwest":return X0;case"east":return Q0;case"west":return dk}},FO=(e,r,s,l,m)=>Sv(l).map(BO).getOr(Ju)(e,r,s,l,m),Vh={valignCentre:[],alignCentre:[],alignLeft:[],alignRight:[],right:[],left:[],bottom:[],top:[]},uk=(e,r,s)=>{const l={maxHeightFunction:wg()};return()=>s()?{type:"node",root:Sr(rr(e())),node:R.from(e()),bubble:au(12,12,Vh),layouts:{onRtl:()=>[J0],onLtr:()=>[X0]},overrides:l}:{type:"hotspot",hotspot:r(),bubble:au(-12,12,Vh),layouts:{onRtl:()=>[Qi,Gs,yi],onLtr:()=>[Gs,Qi,yi]},overrides:l}},iz=(e,r,s,l)=>{const m={maxHeightFunction:wg()};return()=>l()?{type:"node",root:Sr(rr(r())),node:R.from(r()),bubble:au(12,12,Vh),layouts:{onRtl:()=>[Ju],onLtr:()=>[Ju]},overrides:m}:e?{type:"node",root:Sr(rr(r())),node:R.from(r()),bubble:au(0,-ho(r()),Vh),layouts:{onRtl:()=>[Nl],onLtr:()=>[Nl]},overrides:m}:{type:"hotspot",hotspot:s(),bubble:au(0,0,Vh),layouts:{onRtl:()=>[Nl],onLtr:()=>[Nl]},overrides:m}},lz=(e,r,s)=>()=>s()?{type:"node",root:Sr(rr(e())),node:R.from(e()),layouts:{onRtl:()=>[Ju],onLtr:()=>[Ju]}}:{type:"hotspot",hotspot:r(),layouts:{onRtl:()=>[yi],onLtr:()=>[yi]}},ES=(e,r)=>()=>({type:"selection",root:r(),getSelection:()=>{const s=e.selection.getRng(),l=e.model.table.getSelectedCells();if(l.length>1){const m=l[0],g=l[l.length-1],h={firstCell:St(m),lastCell:St(g)};return R.some(h)}return R.some(Hp.range(St(s.startContainer),s.startOffset,St(s.endContainer),s.endOffset))}}),LO=e=>r=>({type:"node",root:e(),node:r}),cz=(e,r,s,l)=>{const m=kh(e),g=()=>St(e.getBody()),h=()=>St(e.getContentAreaContainer()),x=()=>m||!l();return{inlineDialog:uk(h,r,x),inlineBottomDialog:iz(e.inline,h,s,x),banner:lz(h,r,x),cursor:ES(e,g),node:LO(g)}},Ly=e=>(r,s)=>{rC(e)(r,s)},dz=e=>()=>EE(e),IO=e=>r=>gf(e,r),PO=e=>r=>eC(e,r),TS=e=>()=>o2(e),zS=e=>$n(e,"items"),AS=e=>$n(e,"format"),ev=[{title:"Headings",items:[{title:"Heading 1",format:"h1"},{title:"Heading 2",format:"h2"},{title:"Heading 3",format:"h3"},{title:"Heading 4",format:"h4"},{title:"Heading 5",format:"h5"},{title:"Heading 6",format:"h6"}]},{title:"Inline",items:[{title:"Bold",format:"bold"},{title:"Italic",format:"italic"},{title:"Underline",format:"underline"},{title:"Strikethrough",format:"strikethrough"},{title:"Superscript",format:"superscript"},{title:"Subscript",format:"subscript"},{title:"Code",format:"code"}]},{title:"Blocks",items:[{title:"Paragraph",format:"p"},{title:"Blockquote",format:"blockquote"},{title:"Div",format:"div"},{title:"Pre",format:"pre"}]},{title:"Align",items:[{title:"Left",format:"alignleft"},{title:"Center",format:"aligncenter"},{title:"Right",format:"alignright"},{title:"Justify",format:"alignjustify"}]}],mk=e=>zo(e,(r,s)=>{if(Vo(s,"items")){const l=mk(s.items);return{customFormats:r.customFormats.concat(l.customFormats),formats:r.formats.concat([{title:s.title,items:l.formats}])}}if(Vo(s,"inline")||(l=>Vo(l,"block"))(s)||(l=>Vo(l,"selector"))(s)){const l=`custom-${io(s.name)?s.name:s.title.toLowerCase()}`;return{customFormats:r.customFormats.concat([{name:l,format:s}]),formats:r.formats.concat([{title:s.title,format:l,icon:s.icon}])}}return{...r,formats:r.formats.concat(s)}},{customFormats:[],formats:[]}),uz=e=>$4(e).map(r=>{const s=((l,m)=>{const g=mk(m),h=x=>{Ie(x,w=>{l.formatter.has(w.name)||l.formatter.register(w.name,w.format)})};return l.formatter?h(g.customFormats):l.on("init",()=>{h(g.customFormats)}),g.formats})(e,r);return Ox(e)?ev.concat(s):s}).getOr(ev),OS=(e,r,s)=>({...e,type:"formatter",isSelected:r(e.format),getStylePreview:s(e.format)}),NS=(e,r,s,l)=>{const m=g=>dt(g,h=>zS(h)?(x=>{const w=m(x.items);return{...x,type:"submenu",getStyleItems:me(w)}})(h):AS(h)?(x=>OS(x,s,l))(h):(x=>{const w=Vt(x);return w.length===1&&Rt(w,"title")})(h)?{...h,type:"separator"}:(x=>{const w=io(x.name)?x.name:un(x.title),S=`custom-${w}`,A={...x,type:"formatter",format:S,isSelected:s(S),getStylePreview:l(S)};return e.formatter.register(w,A),A})(h));return m(r)},MS=Om.trim,mz=e=>r=>!!((s=>Ue(s)&&s.nodeType===1)(r)&&(r.contentEditable===e||r.getAttribute("data-mce-contenteditable")===e)),gz=mz("true"),pz=mz("false"),DS=(e,r,s,l,m)=>({type:e,title:r,url:s,level:l,attach:m}),RS=e=>e.innerText||e.textContent,BS=e=>(r=>r&&r.nodeName==="A"&&(r.id||r.name)!==void 0)(e)&&fz(e),gk=e=>e&&/^(H[1-6])$/.test(e.nodeName),fz=e=>(r=>{let s=r;for(;s=s.parentNode;){const l=s.contentEditable;if(l&&l!=="inherit")return gz(s)}return!1})(e)&&!pz(e),HO=e=>gk(e)&&fz(e),jO=e=>{var r;const s=(l=>l.id?l.id:un("h"))(e);return DS("header",(r=RS(e))!==null&&r!==void 0?r:"","#"+s,(l=>gk(l)?parseInt(l.nodeName.substr(1),10):0)(e),()=>{e.id=s})},VO=e=>{const r=e.id||e.name,s=RS(e);return DS("anchor",s||"#"+r,"#"+r,0,he)},hz=e=>MS(e.title).length>0,pk=e=>{const r=(s=>dt(Zl(St(s),"h1,h2,h3,h4,h5,h6,a:not([href])"),m=>m.dom))(e);return Pt((s=>dt(Pt(s,HO),jO))(r).concat((s=>dt(Pt(s,BS),VO))(r)),hz)},Iy="tinymce-url-history",FS=e=>io(e)&&/^https?/.test(e),up=e=>Po(e)&&Ft(e,r=>{return!(ko(s=r)&&s.length<=5&>(s,FS));var s}).isNone(),LS=()=>{const e=mf.getItem(Iy);if(e===null)return{};let r;try{r=JSON.parse(e)}catch(s){if(s instanceof SyntaxError)return""+Iy,{};throw s}return up(r)?r:(""+Iy,{})},bz=e=>{const r=LS();return Xt(r,e).getOr([])},IS=(e,r)=>{if(!FS(e))return;const s=LS(),l=Xt(s,r).getOr([]),m=Pt(l,g=>g!==e);s[r]=[e].concat(m).slice(0,5),(g=>{if(!up(g))throw new Error(`Bad format for history: +`+JSON.stringify(g));mf.setItem(Iy,JSON.stringify(g))})(s)},yz=e=>!!e,vz=e=>Zo(Om.makeMap(e,/[, ]/),yz),fk=e=>R.from(Bx(e)),PS=e=>R.from(e).filter(io).getOrUndefined(),xz=e=>({getHistory:bz,addToHistory:IS,getLinkInformation:()=>(r=>t2(r)?R.some({targets:pk(r.getBody()),anchorTop:PS(Ix(r)),anchorBottom:PS(X1(r))}):R.none())(e),getValidationHandler:()=>(r=>R.from(e2(r)))(e),getUrlPicker:r=>((s,l)=>((m,g)=>{const h=(x=>{const w=R.from(Lx(x)).filter(yz).map(vz);return fk(x).fold(Bo,S=>w.fold(Ct,A=>Vt(A).length>0&&A))})(m);return jo(h)?h?fk(m):R.none():h[g]?fk(m):R.none()})(s,l).map(m=>g=>Qg(h=>{const x={filetype:l,fieldname:g.fieldname,...R.from(g.meta).getOr({})};m.call(s,(w,S)=>{if(!io(w))throw new Error("Expected value to be string");if(S!==void 0&&!Po(S))throw new Error("Expected meta to be a object");h({value:w,meta:S})},g.value,x)})))(e,r)}),tl=O3,Nm=Qr,$O=me([ft("shell",!1),Yt("makeItem"),ft("setupItem",he),nc("listBehaviours",[fr])]),wz=No({name:"items",overrides:()=>({behaviours:Oo([fr.config({})])})}),UO=me([wz]),kz=Wl({name:me("CustomList")(),configFields:$O(),partFields:UO(),factory:(e,r,s,l)=>{const m=e.shell?{behaviours:[fr.config({})],components:[]}:{behaviours:[],components:r};return{uid:e.uid,dom:e.dom,components:m.components,behaviours:Fi(e.listBehaviours,m.behaviours),apis:{setItems:(g,h)=>{var x;(x=g,e.shell?R.some(x):ua(x,e,"items")).fold(()=>{throw console.error("Custom List was defined to not be a shell, but no item container was specified in components"),new Error("Custom List was defined to not be a shell, but no item container was specified in components")},w=>{const S=fr.contents(w),A=h.length,N=A-S.length,F=N>0?Bt(N,()=>e.makeItem()):[],$=S.slice(A);Ie($,se=>fr.remove(w,se)),Ie(F,se=>fr.append(w,se));const W=fr.contents(w);Ie(W,(se,le)=>{e.setupItem(g,se,h[le],le)})})}}}},apis:{setItems:(e,r,s)=>{e.setItems(r,s)}}}),Py=me([Yt("dom"),ft("shell",!0),qi("toolbarBehaviours",[fr])]),_z=me([No({name:"groups",overrides:()=>({behaviours:Oo([fr.config({})])})})]),Mm=Wl({name:"Toolbar",configFields:Py(),partFields:_z(),factory:(e,r,s,l)=>{const m=e.shell?{behaviours:[fr.config({})],components:[]}:{behaviours:[],components:r};return{uid:e.uid,dom:e.dom,components:m.components,behaviours:Fi(e.toolbarBehaviours,m.behaviours),apis:{setGroups:(g,h)=>{var x;(x=g,e.shell?R.some(x):ua(x,e,"groups")).fold(()=>{throw console.error("Toolbar was defined to not be a shell, but no groups container was specified in components"),new Error("Toolbar was defined to not be a shell, but no groups container was specified in components")},w=>{fr.set(w,h)})},refresh:he},domModification:{attributes:{role:"group"}}}},apis:{setGroups:(e,r,s)=>{e.setGroups(r,s)}}}),Cz=he,Sz=Bo,HS=me([]);var Ez,Hy=Object.freeze({__proto__:null,setup:Cz,isDocked:Sz,getBehaviours:HS});const jS=e=>(Rr(Ir(e,"position"),"fixed")?R.none():hn(e)).orThunk(()=>{const r=_t("span");return rn(e).bind(s=>{ur(s,r);const l=hn(r);return ia(r),l})}),Tz=e=>jS(e).map(Or).getOrThunk(()=>kn(0,0)),ZO=(e,r)=>{const s=e.element;Jr(s,r.transitionClass),rs(s,r.fadeOutClass),Jr(s,r.fadeInClass),r.onShow(e)},qO=(e,r)=>{const s=e.element;Jr(s,r.transitionClass),rs(s,r.fadeInClass),Jr(s,r.fadeOutClass),r.onHide(e)},hk=(e,r)=>e.y>=r.y,VS=(e,r)=>e.bottom<=r.bottom,bk=(e,r,s)=>({location:"top",leftX:r,topY:s.bounds.y-e.y}),yk=(e,r,s)=>({location:"bottom",leftX:r,bottomY:e.bottom-s.bounds.bottom}),$S=e=>e.box.x-e.win.x,vk=(e,r,s)=>s.getInitialPos().map(l=>{const m=((g,h)=>{const x=h.optScrollEnv.fold(me(g.bounds.y),w=>w.scrollElmTop+(g.bounds.y-w.currentScrollTop));return kn(g.bounds.x,x)})(l,r);return{box:Ba(m.left,m.top,Ga(e),Nt(e)),location:l.location}}),zz=(e,r,s,l,m)=>{const g=((x,w)=>{const S=w.optScrollEnv.fold(me(x.y),A=>x.y+A.currentScrollTop-A.scrollElmTop);return kn(x.x,S)})(r,s),h=Ba(g.left,g.top,r.width,r.height);l.setInitialPos({style:gi(e),position:aa(e,"position")||"static",bounds:h,location:m.location})},Az=(e,r,s)=>s.getInitialPos().bind(l=>{var m;switch(s.clearInitialPos(),l.position){case"static":return R.some({morph:"static"});case"absolute":const g=jS(e).getOr(ws()),h=Fa(g),x=(m=g.dom.scrollTop)!==null&&m!==void 0?m:0;return R.some({morph:"absolute",positionCss:Ic("absolute",Xt(l.style,"left").map(w=>r.x-h.x),Xt(l.style,"top").map(w=>r.y-h.y+x),Xt(l.style,"right").map(w=>h.right-r.right),Xt(l.style,"bottom").map(w=>h.bottom-r.bottom))});default:return R.none()}}),jy=e=>{switch(e.location){case"top":return R.some({morph:"fixed",positionCss:Ic("fixed",R.some(e.leftX),R.some(e.topY),R.none(),R.none())});case"bottom":return R.some({morph:"fixed",positionCss:Ic("fixed",R.some(e.leftX),R.none(),R.none(),R.some(e.bottomY))});default:return R.none()}},Oz=(e,r,s)=>{const l=e.element;return Rr(Ir(l,"position"),"fixed")?((m,g,h)=>((x,w,S)=>vk(x,w,S).filter(({box:A})=>((N,F,$)=>gt(N,W=>{switch(W){case"bottom":return VS(F,$.bounds);case"top":return hk(F,$.bounds)}}))(S.getModes(),A,w)).bind(({box:A})=>Az(x,A,S)))(m,g,h).orThunk(()=>g.optScrollEnv.bind(x=>vk(m,g,h)).bind(({box:x,location:w})=>{const S=Ua(),A=$S({win:S,box:x}),N=w==="top"?bk(S,A,g):yk(S,A,g);return jy(N)})))(l,r,s):((m,g,h)=>{const x=Fa(m),w=Ua(),S=((A,N,F)=>{const $=N.win,W=N.box,se=$S(N);return Gt(A,le=>{switch(le){case"bottom":return VS(W,F.bounds)?R.none():R.some(yk($,se,F));case"top":return hk(W,F.bounds)?R.none():R.some(bk($,se,F));default:return R.none()}}).getOr({location:"no-dock"})})(h.getModes(),{win:w,box:x},g);return S.location==="top"||S.location==="bottom"?(zz(m,x,g,h,S),jy(S)):R.none()})(l,r,s)},US=(e,r,s)=>{s.setDocked(!1),Ie(["left","right","top","bottom","position"],l=>Pr(e.element,l)),r.onUndocked(e)},xk=(e,r,s,l)=>{const m=l.position==="fixed";s.setDocked(m),c1(e.element,l),(m?r.onDocked:r.onUndocked)(e)},ZS=(e,r,s,l,m=!1)=>{r.contextual.each(g=>{g.lazyContext(e).each(h=>{const x=((w,S)=>w.yS.y)(h,l.bounds);x!==s.isVisible()&&(s.setVisible(x),m&&!x?(Lc(e.element,[g.fadeOutClass]),g.onHide(e)):(x?ZO:qO)(e,g))})})},qS=(e,r,s,l,m)=>{ZS(e,r,s,l,!0),xk(e,r,s,m.positionCss)},_f=(e,r,s)=>{e.getSystem().isConnected()&&((l,m,g)=>{const h=m.lazyViewport(l);ZS(l,m,g,h),Oz(l,h,g).each(x=>{((w,S,A,N,F)=>{switch(F.morph){case"static":return US(w,S,A);case"absolute":return xk(w,S,A,F.positionCss);case"fixed":qS(w,S,A,N,F)}})(l,m,g,h,x)})})(e,r,s)},Nz=(e,r,s)=>{s.isDocked()&&((l,m,g)=>{const h=l.element;g.setDocked(!1);const x=m.lazyViewport(l);((w,S,A)=>{const N=w.element;return vk(N,S,A).bind(({box:F})=>Az(N,F,A))})(l,x,g).each(w=>{switch(w.morph){case"static":US(l,m,g);break;case"absolute":xk(l,m,g,w.positionCss)}}),g.setVisible(!0),m.contextual.each(w=>{Zi(h,[w.fadeInClass,w.fadeOutClass,w.transitionClass]),w.onShow(l)}),_f(l,m,g)})(e,r,s)},WS=e=>(r,s,l)=>{const m=s.lazyViewport(r);((g,h,x,w)=>{const S=Fa(g),A=Ua(),N=w(A,$S({win:A,box:S}),h);return N.location==="bottom"||N.location==="top"?(((F,$,W,se,le)=>{se.getInitialPos().fold(()=>zz(F,$,W,se,le),()=>he)})(g,S,h,x,N),jy(N)):R.none()})(r.element,m,l,e).each(g=>{qS(r,s,l,m,g)})},Mz=WS(bk),WO=WS(yk);var tv=Object.freeze({__proto__:null,refresh:_f,reset:Nz,isDocked:(e,r,s)=>s.isDocked(),getModes:(e,r,s)=>s.getModes(),setModes:(e,r,s,l)=>s.setModes(l),forceDockToTop:Mz,forceDockToBottom:WO}),Dz=Object.freeze({__proto__:null,events:(e,r)=>qa([Mu(Ni(),(s,l)=>{e.contextual.each(m=>{Di(s.element,m.transitionClass)&&(Zi(s.element,[m.transitionClass,m.fadeInClass]),(r.isVisible()?m.onShown:m.onHidden)(s)),l.stop()})}),Kt(zu(),(s,l)=>{_f(s,e,r)}),Kt(wp(),(s,l)=>{_f(s,e,r)}),Kt(Au(),(s,l)=>{Nz(s,e,r)})])}),GO=[gl("contextual",[us("fadeInClass"),us("fadeOutClass"),us("transitionClass"),ml("lazyContext"),Hr("onShow"),Hr("onShown"),Hr("onHide"),Hr("onHidden")]),hs("lazyViewport",()=>({bounds:Ua(),optScrollEnv:R.none()})),uc("modes",["top","bottom"],wa),Hr("onDocked"),Hr("onUndocked")];const di=Ri({fields:GO,name:"docking",active:Dz,apis:tv,state:Object.freeze({__proto__:null,init:e=>{const r=Sn(!1),s=Sn(!0),l=ms(),m=Sn(e.modes);return Ia({isDocked:r.get,setDocked:r.set,getInitialPos:l.get,setInitialPos:l.set,clearInitialPos:l.clear,isVisible:s.get,setVisible:s.set,getModes:m.get,setModes:m.set,readState:()=>`docked: ${r.get()}, visible: ${s.get()}, modes: ${m.get().join(",")}`})}})}),wk=me(un("toolbar-height-change")),Qu={fadeInClass:"tox-editor-dock-fadein",fadeOutClass:"tox-editor-dock-fadeout",transitionClass:"tox-editor-dock-transition"},GS="tox-tinymce--toolbar-sticky-on",KS="tox-tinymce--toolbar-sticky-off",mp=(e,r)=>Rt(di.getModes(e),r),Vy=e=>{const r=e.element;Go(r).each(s=>{const l="padding-"+di.getModes(e)[0];if(di.isDocked(e)){const m=Ga(s);Bn(r,"width",m+"px"),Bn(s,l,(g=>ho(g)+(parseInt(aa(g,"margin-top"),10)||0)+(parseInt(aa(g,"margin-bottom"),10)||0))(r)+"px")}else Pr(r,"width"),Pr(s,l)})},kk=(e,r)=>{r?(rs(e,Qu.fadeOutClass),Lc(e,[Qu.transitionClass,Qu.fadeInClass])):(rs(e,Qu.fadeInClass),Lc(e,[Qu.fadeOutClass,Qu.transitionClass]))},YS=(e,r)=>{const s=St(e.getContainer());r?(Jr(s,GS),rs(s,KS)):(Jr(s,KS),rs(s,GS))},XS=(e,r)=>{const s=ms(),l=r.getSink,m=x=>{l().each(w=>x(w.element))},g=x=>{e.inline||Vy(x),YS(e,di.isDocked(x)),x.getSystem().broadcastOn([Dg()],{}),l().each(w=>w.getSystem().broadcastOn([Dg()],{}))},h=e.inline?[]:[tc.config({channels:{[wk()]:{onReceive:Vy}}})];return[er.config({}),di.config({contextual:{lazyContext:x=>{const w=ho(x.element),S=e.inline?e.getContentAreaContainer():e.getContainer();return R.from(S).map(A=>{const N=Fa(St(A));return ff(e,x.element).fold(()=>{const F=N.height-w,$=N.y+(mp(x,"top")?0:w);return Ba(N.x,$,N.width,F)},F=>{const $=Kc(N,Oh(F)),W=mp(x,"top")?$.y:$.y+w;return Ba($.x,W,$.width,$.height-w)})})},onShow:()=>{m(x=>kk(x,!0))},onShown:x=>{m(w=>Zi(w,[Qu.transitionClass,Qu.fadeInClass])),s.get().each(w=>{((S,A)=>{const N=Ne(A);Ts(N).filter(F=>!Jo(A,F)).filter(F=>Jo(F,St(N.dom.body))||Ce(S,F)).each(()=>sd(A))})(x.element,w),s.clear()})},onHide:x=>{((w,S)=>gc(w).orThunk(()=>S().toOptional().bind(A=>gc(A.element))))(x.element,l).fold(s.clear,s.set),m(w=>kk(w,!1))},onHidden:()=>{m(x=>Zi(x,[Qu.transitionClass]))},...Qu},lazyViewport:x=>ff(e,x.element).fold(()=>{const w=Ua(),S=Rx(e),A=w.y+(mp(x,"top")?S:0),N=w.height-(mp(x,"bottom")?S:0);return{bounds:Ba(w.x,A,w.width,N),optScrollEnv:R.none()}},w=>({bounds:Oh(w),optScrollEnv:R.some({currentScrollTop:w.element.dom.scrollTop,scrollElmTop:Or(w.element).top})})),modes:[r.header.getDockingMode()],onDocked:g,onUndocked:g}),...h]};var Rz=Object.freeze({__proto__:null,setup:(e,r,s)=>{e.inline||(r.header.isPositionedAtTop()||e.on("ResizeEditor",()=>{s().each(di.reset)}),e.on("ResizeWindow ResizeEditor",()=>{s().each(Vy)}),e.on("SkinLoaded",()=>{s().each(l=>{di.isDocked(l)?di.reset(l):di.refresh(l)})}),e.on("FullscreenStateChanged",()=>{s().each(di.reset)})),e.on("AfterScrollIntoView",l=>{s().each(m=>{di.refresh(m);const g=m.element;N1(g)&&((h,x)=>{const w=Ne(x),S=Ho(x).dom.innerHeight,A=pa(w),N=St(h.elm),F=ts(N),$=Nt(N),W=F.y,se=W+$,le=Or(x),fe=Nt(x),te=le.top,X=te+fe,ue=Math.abs(te-A.top)<2,ye=Math.abs(X-(A.top+S))<2;if(ue&&Wte){const we=W-S+$+fe;Ps(A.left,we,w)}})(l,g)})}),e.on("PostRender",()=>{YS(e,!1)})},isDocked:e=>e().map(di.isDocked).getOr(!1),getBehaviours:XS});const Bz=Cn([ci,ni("items",ec([Kd([E2,al("items",wa)]),wa]))].concat(d0)),_k=[Hs("text"),Hs("tooltip"),Hs("icon"),Ai("search",!1,ec([Qc,Cn([Hs("placeholder")])],e=>jo(e)?e?R.some({placeholder:R.none()}):R.none():R.some(e))),ml("fetch"),hs("onSetup",()=>he)],JS=Cn([ci,..._k]),QS=e=>ka("menubutton",JS,e),e3=Cn([ci,Id,pu,Xm,fu,z2,Em,pl("presets","normal",["normal","color","listpreview"]),Sh(1),sy,qA]);var Ck=Pc({factory:(e,r)=>{const s={focus:Dn.focusIn,setMenus:(l,m)=>{const g=dt(m,h=>{const x={type:"menubutton",text:h.text,fetch:S=>{S(h.getItems())}},w=QS(x).mapError(S=>El(S)).getOrDie();return cp(w,"tox-mbtn",r.backstage,R.some("menuitem"))});fr.set(l,g)}};return{uid:e.uid,dom:e.dom,components:[],behaviours:Oo([fr.config({}),Tr("menubar-events",[La(l=>{e.onSetup(l)}),Kt(Te(),(l,m)=>{vs(l.element,".tox-mbtn--active").each(g=>{Vl(m.event.target,".tox-mbtn").each(h=>{Jo(g,h)||l.getSystem().getByDom(g).each(x=>{l.getSystem().getByDom(h).each(w=>{Hd.expand(w),Hd.close(x),er.focus(w)})})})})}),Kt(lg(),(l,m)=>{m.event.prevFocus.bind(g=>l.getSystem().getByDom(g).toOptional()).each(g=>{m.event.newFocus.bind(h=>l.getSystem().getByDom(h).toOptional()).each(h=>{Hd.isOpen(g)&&(Hd.expand(h),Hd.close(g))})})})]),Dn.config({mode:"flow",selector:".tox-mbtn",onEscape:l=>(e.onEscape(l),R.some(!0))}),Bs.config({})]),apis:s,domModification:{attributes:{role:"menubar"}}}},name:"silver.Menubar",configFields:[Yt("dom"),Yt("uid"),Yt("onEscape"),Yt("backstage"),ft("onSetup",he)],apis:{focus:(e,r)=>{e.focus(r)},setMenus:(e,r,s)=>{e.setMenus(r,s)}}});const Fz="container",Sk=[qi("slotBehaviours",[])],t3=e=>"",Lz=(e,r)=>{const s=A=>wm(e),l=(A,N)=>(F,$)=>ua(F,e,$).map(W=>A(W,$)).getOr(N),m=(A,N)=>Ma(A.element,"aria-hidden")!=="true",g=l(m,!1),h=l((A,N)=>{if(m(A)){const F=A.element;Bn(F,"display","none"),Kn(F,"aria-hidden","true"),_n(A,cg(),{name:N,visible:!1})}}),x=(A=>(N,F)=>{Ie(F,$=>A(N,$))})(h),w=l((A,N)=>{if(!m(A)){const F=A.element;Pr(F,"display"),xa(F,"aria-hidden"),_n(A,cg(),{name:N,visible:!0})}}),S={getSlotNames:s,getSlot:(A,N)=>ua(A,e,N),isShowing:g,hideSlot:h,hideAllSlots:A=>x(A,s()),showSlot:w};return{uid:e.uid,dom:e.dom,components:r,behaviours:Hb(e.slotBehaviours),apis:S}},Iz=Zo({getSlotNames:(e,r)=>e.getSlotNames(r),getSlot:(e,r,s)=>e.getSlot(r,s),isShowing:(e,r,s)=>e.isShowing(r,s),hideSlot:(e,r,s)=>e.hideSlot(r,s),hideAllSlots:(e,r)=>e.hideAllSlots(r),showSlot:(e,r,s)=>e.showSlot(r,s)},e=>Nr(e)),ac={...Iz,sketch:e=>{const r=(()=>{const g=[];return{slot:(h,x)=>(g.push(h),ca(Fz,t3(h),x)),record:me(g)}})(),s=e(r),l=r.record(),m=dt(l,g=>Eo({name:g,pname:t3(g)}));return Jp(Fz,Sk,m,Lz,s)}},Pz=Cn([pu,Id,hs("onShow",he),hs("onHide",he),Em]),KO=e=>({element:()=>e.element.dom}),o3=(e,r)=>{const s=dt(Vt(r),l=>{const m=r[l],g=Sl((h=>ka("sidebar",Pz,h))(m));return{name:l,getApi:KO,onSetup:g.onSetup,onShow:g.onShow,onHide:g.onHide}});return dt(s,l=>{const m=Sn(he);return e.slot(l.name,{dom:{tag:"div",classes:["tox-sidebar__pane"]},behaviours:cy([Kg(l,m),Yg(l,m),Kt(cg(),(g,h)=>{const x=h.event;to(s,S=>S.name===x.name).each(S=>{(x.visible?S.onShow:S.onHide)(S.getApi(g))})})])})})},YO=e=>ac.sketch(r=>({dom:{tag:"div",classes:["tox-sidebar__pane-container"]},components:o3(r,e),slotBehaviours:cy([La(s=>ac.hideAllSlots(s))])})),$y=(e,r)=>{Kn(e,"role",r)},Hz=e=>Gr.getCurrent(e).bind(r=>Ml.isGrowing(r)||Ml.hasGrown(r)?Gr.getCurrent(r).bind(s=>to(ac.getSlotNames(s),l=>ac.isShowing(s,l))):R.none()),Ek=un("FixSizeEvent"),ov=un("AutoSizeEvent");var jz=Object.freeze({__proto__:null,block:(e,r,s,l)=>{Kn(e.element,"aria-busy",!0);const m=r.getRoot(e).getOr(e),g=Oo([Dn.config({mode:"special",onTab:()=>R.some(!0),onShiftTab:()=>R.some(!0)}),er.config({})]),h=l(m,g),x=m.getSystem().build(h);fr.append(m,Tc(x)),x.hasConfigured(Dn)&&r.focus&&Dn.focusIn(x),s.isBlocked()||r.onBlock(e),s.blockWith(()=>fr.remove(m,x))},unblock:(e,r,s)=>{xa(e.element,"aria-busy"),s.isBlocked()&&r.onUnblock(e),s.clear()},isBlocked:(e,r,s)=>s.isBlocked()}),n3=[hs("getRoot",R.none),ri("focus",!0),Hr("onBlock"),Hr("onUnblock")];const em=Ri({fields:n3,name:"blocking",apis:jz,state:Object.freeze({__proto__:null,init:()=>{const e=Hu(r=>r.destroy());return Ia({readState:e.isSet,blockWith:r=>{e.set({destroy:r})},clear:e.clear,isBlocked:e.isSet})}})}),Vz=e=>Gr.getCurrent(e).each(r=>sd(r.element,!0)),r3=(e,r,s)=>{const l=Sn(!1),m=ms(),g=x=>{var w;l.get()&&(!(S=>S.type==="focusin")(w=x)||!(w.composed?at(w.composedPath()):R.from(w.target)).map(St).filter(wt).exists(S=>Di(S,"mce-pastebin")))&&(x.preventDefault(),Vz(r()),e.editorManager.setActive(e))};e.inline||e.on("PreInit",()=>{e.dom.bind(e.getWin(),"focusin",g),e.on("BeforeExecCommand",x=>{x.command.toLowerCase()==="mcefocus"&&x.value!==!0&&g(x)})});const h=x=>{x!==l.get()&&(l.set(x),((w,S,A,N)=>{const F=S.element;if((($,W)=>{const se="tabindex",le=`data-mce-${se}`;R.from($.iframeElement).map(St).each(fe=>{W?(Ca(fe,se).each(te=>Kn(fe,le,te)),Kn(fe,se,-1)):(xa(fe,se),Ca(fe,le).each(te=>{Kn(fe,se,te),xa(fe,le)}))})})(w,A),A)em.block(S,($=>(W,se)=>({dom:{tag:"div",attributes:{"aria-label":$.translate("Loading..."),tabindex:"0"},classes:["tox-throbber__busy-spinner"]},components:[{dom:Ym('
    ')}]}))(N)),Pr(F,"display"),xa(F,"aria-hidden"),w.hasFocus()&&Vz(S);else{const $=Gr.getCurrent(S).exists(W=>Gf(W.element));em.unblock(S),Bn(F,"display","none"),Kn(F,"aria-hidden","true"),$&&w.focus()}})(e,r(),x,s.providers),((w,S)=>{w.dispatch("AfterProgressState",{state:S})})(e,x))};e.on("ProgressState",x=>{if(m.on(clearTimeout),So(x.time)){const w=hx.setEditorTimeout(e,()=>h(x.state),x.time);m.set(w)}else h(x.state),m.clear()})},Tk=(e,r,s)=>({within:e,extra:r,withinWidth:s}),a3=(e,r,s)=>{const l=zo(e,(h,x)=>((w,S)=>{const A=s(w);return R.some({element:w,start:S,finish:S+A,width:A})})(x,h.len).fold(me(h),w=>({len:w.finish,list:h.list.concat([w])})),{len:0,list:[]}).list,m=Pt(l,h=>h.finish<=r),g=lo(m,(h,x)=>h+x.width,0);return{within:m,extra:l.slice(m.length),withinWidth:g}},nv=e=>dt(e,r=>r.element),$z=(e,r)=>{const s=dt(r,l=>Tc(l));Mm.setGroups(e,s)},Cf=(e,r,s)=>{const l=r.builtGroups.get();if(l.length===0)return;const m=li(e,r,"primary"),g=js.getCoupled(e,"overflowGroup");Bn(m.element,"visibility","hidden");const h=l.concat([g]),x=Gt(h,S=>gc(S.element).bind(A=>S.getSystem().getByDom(A).toOptional()));s([]),$z(m,h);const w=((S,A,N,F)=>{const $=((fe,te,X)=>{const ue=a3(te,fe,X);return ue.extra.length===0?R.some(ue):R.none()})(S,A,N).getOrThunk(()=>a3(A,S-N(F),N)),W=$.within,se=$.extra,le=$.withinWidth;return se.length===1&&se[0].width<=N(F)?((fe,te,X)=>{const ue=nv(fe.concat(te));return Tk(ue,[],X)})(W,se,le):se.length>=1?((fe,te,X,ue)=>{const ye=nv(fe).concat([X]);return Tk(ye,nv(te),ue)})(W,se,F,le):((fe,te,X)=>Tk(nv(fe),[],X))(W,0,le)})(Ga(m.element),r.builtGroups.get(),S=>Ga(S.element),g);w.extra.length===0?(fr.remove(m,g),s([])):($z(m,w.within),s(w.extra)),Pr(m.element,"visibility"),ne(m.element),x.each(er.focus)},s3=me([qi("splitToolbarBehaviours",[js]),ro("builtGroups",()=>Sn([]))]),Uz=me([Nd(["overflowToggledClass"]),Tl("getOverflowBounds"),Yt("lazySink"),ro("overflowGroups",()=>Sn([])),Hr("onOpened"),Hr("onClosed")].concat(s3())),XO=me([Eo({factory:Mm,schema:Py(),name:"primary"}),Ro({schema:Py(),name:"overflow"}),Ro({name:"overflow-button"}),Ro({name:"overflow-group"})]),zk=me((e,r)=>{((s,l)=>{const m=ma.max(s,l,["margin-left","border-left-width","padding-left","padding-right","border-right-width","margin-right"]);Bn(s,"max-width",m+"px")})(e,Math.floor(r))}),Zz=me([Nd(["toggledClass"]),Yt("lazySink"),ml("fetch"),Tl("getBounds"),gl("fireDismissalEventInstead",[ft("event",Ou())]),hm(),Hr("onToggled")]),JO=me([Ro({name:"button",overrides:e=>({dom:{attributes:{"aria-haspopup":"true"}},buttonBehaviours:Oo([Dr.config({toggleClass:e.markers.toggledClass,aria:{mode:"expanded"},toggleOnExecute:!1,onToggled:e.onToggled})])})}),Ro({factory:Mm,schema:Py(),name:"toolbar",overrides:e=>({toolbarBehaviours:Oo([Dn.config({mode:"cyclic",onEscape:r=>(ua(r,e,"button").each(er.focus),R.none())})])})})]),Sf=ms(),i3=(e,r)=>{const s=js.getCoupled(e,"toolbarSandbox");Lr.isOpen(s)?Lr.close(s):Lr.open(s,r.toolbar())},rv=(e,r,s,l)=>{const m=s.getBounds.map(h=>h()),g=s.lazySink(e).getOrDie();xl.positionWithinBounds(g,r,{anchor:{type:"hotspot",hotspot:e,layouts:l,overrides:{maxWidthFunction:zk()}}},m)},qz=(e,r,s,l,m)=>{Mm.setGroups(r,m),rv(e,r,s,l),Dr.on(e)},Ef=Wl({name:"FloatingToolbarButton",factory:(e,r,s,l)=>({...wl.sketch({...l.button(),action:m=>{i3(m,l)},buttonBehaviours:Bg({dump:l.button().buttonBehaviours},[js.config({others:{toolbarSandbox:m=>((g,h,x)=>{const w=Ap();return{dom:{tag:"div",attributes:{id:w.id}},behaviours:Oo([Dn.config({mode:"special",onEscape:S=>(Lr.close(S),R.some(!0))}),Lr.config({onOpen:(S,A)=>{const N=Sf.get().getOr(!1);x.fetch().get(F=>{qz(g,A,x,h.layouts,F),w.link(g.element),N||Dn.focusIn(A)})},onClose:()=>{Dr.off(g),Sf.get().getOr(!1)||er.focus(g),w.unlink(g.element)},isPartOf:(S,A,N)=>si(A,N)||si(g,N),getAttachPoint:()=>x.lazySink(g).getOrDie()}),tc.config({channels:{...Rg({isExtraPart:Bo,...x.fireDismissalEventInstead.map(S=>({fireEventInstead:{event:S.event}})).getOr({})}),...Zp({doReposition:()=>{Lr.getState(js.getCoupled(g,"toolbarSandbox")).each(S=>{rv(g,S,x,h.layouts)})}})}})])}})(m,s,e)}})])}),apis:{setGroups:(m,g)=>{Lr.getState(js.getCoupled(m,"toolbarSandbox")).each(h=>{qz(m,h,e,s.layouts,g)})},reposition:m=>{Lr.getState(js.getCoupled(m,"toolbarSandbox")).each(g=>{rv(m,g,e,s.layouts)})},toggle:m=>{i3(m,l)},toggleWithoutFocusing:m=>{((g,h)=>{Sf.set(!0),i3(g,h),Sf.clear()})(m,l)},getToolbar:m=>Lr.getState(js.getCoupled(m,"toolbarSandbox")),isOpen:m=>Lr.isOpen(js.getCoupled(m,"toolbarSandbox"))}}),configFields:Zz(),partFields:JO(),apis:{setGroups:(e,r,s)=>{e.setGroups(r,s)},reposition:(e,r)=>{e.reposition(r)},toggle:(e,r)=>{e.toggle(r)},toggleWithoutFocusing:(e,r)=>{e.toggleWithoutFocusing(r)},getToolbar:(e,r)=>e.getToolbar(r),isOpen:(e,r)=>e.isOpen(r)}}),QO=me([Yt("items"),Nd(["itemSelector"]),qi("tgroupBehaviours",[Dn])]),e5=me([Ln({name:"items",unit:"item"})]),Ak=Wl({name:"ToolbarGroup",configFields:QO(),partFields:e5(),factory:(e,r,s,l)=>({uid:e.uid,dom:e.dom,components:r,behaviours:Fi(e.tgroupBehaviours,[Dn.config({mode:"flow",selector:e.markers.itemSelector})]),domModification:{attributes:{role:"toolbar"}}})}),av=e=>dt(e,r=>Tc(r)),Wz=(e,r,s)=>{Cf(e,s,l=>{s.overflowGroups.set(l),r.getOpt(e).each(m=>{Ef.setGroups(m,av(l))})})},Gz=Wl({name:"SplitFloatingToolbar",configFields:Uz(),partFields:XO(),factory:(e,r,s,l)=>{const m=Ta(Ef.sketch({fetch:()=>Qg(g=>{g(av(e.overflowGroups.get()))}),layouts:{onLtr:()=>[Gs,Qi],onRtl:()=>[Qi,Gs],onBottomLtr:()=>[Wa,vl],onBottomRtl:()=>[vl,Wa]},getBounds:s.getOverflowBounds,lazySink:e.lazySink,fireDismissalEventInstead:{},markers:{toggledClass:e.markers.overflowToggledClass},parts:{button:l["overflow-button"](),toolbar:l.overflow()},onToggled:(g,h)=>e[h?"onOpened":"onClosed"](g)}));return{uid:e.uid,dom:e.dom,components:r,behaviours:Fi(e.splitToolbarBehaviours,[js.config({others:{overflowGroup:()=>Ak.sketch({...l["overflow-group"](),items:[m.asSpec()]})}})]),apis:{setGroups:(g,h)=>{e.builtGroups.set(dt(h,g.getSystem().build)),Wz(g,m,e)},refresh:g=>Wz(g,m,e),toggle:g=>{m.getOpt(g).each(h=>{Ef.toggle(h)})},toggleWithoutFocusing:g=>{m.getOpt(g).each(Ef.toggleWithoutFocusing)},isOpen:g=>m.getOpt(g).map(Ef.isOpen).getOr(!1),reposition:g=>{m.getOpt(g).each(h=>{Ef.reposition(h)})},getOverflow:g=>m.getOpt(g).bind(Ef.getToolbar)},domModification:{attributes:{role:"group"}}}},apis:{setGroups:(e,r,s)=>{e.setGroups(r,s)},refresh:(e,r)=>{e.refresh(r)},reposition:(e,r)=>{e.reposition(r)},toggle:(e,r)=>{e.toggle(r)},toggleWithoutFocusing:(e,r)=>{e.toggle(r)},isOpen:(e,r)=>e.isOpen(r),getOverflow:(e,r)=>e.getOverflow(r)}}),Kz=me([Nd(["closedClass","openClass","shrinkingClass","growingClass","overflowToggledClass"]),Hr("onOpened"),Hr("onClosed")].concat(s3())),t5=me([Eo({factory:Mm,schema:Py(),name:"primary"}),Eo({factory:Mm,schema:Py(),name:"overflow",overrides:e=>({toolbarBehaviours:Oo([Ml.config({dimension:{property:"height"},closedClass:e.markers.closedClass,openClass:e.markers.openClass,shrinkingClass:e.markers.shrinkingClass,growingClass:e.markers.growingClass,onShrunk:r=>{ua(r,e,"overflow-button").each(s=>{Dr.off(s),er.focus(s)}),e.onClosed(r)},onGrown:r=>{Dn.focusIn(r),e.onOpened(r)},onStartGrow:r=>{ua(r,e,"overflow-button").each(Dr.on)}}),Dn.config({mode:"acyclic",onEscape:r=>(ua(r,e,"overflow-button").each(er.focus),R.some(!0))})])})}),Ro({name:"overflow-button",overrides:e=>({buttonBehaviours:Oo([Dr.config({toggleClass:e.markers.overflowToggledClass,aria:{mode:"pressed"},toggleOnExecute:!1})])})}),Ro({name:"overflow-group"})]),Yz=(e,r)=>{ua(e,r,"overflow-button").bind(()=>ua(e,r,"overflow")).each(s=>{l3(e,r),Ml.toggleGrow(s)})},l3=(e,r)=>{ua(e,r,"overflow").each(s=>{Cf(e,r,l=>{const m=dt(l,g=>Tc(g));Mm.setGroups(s,m)}),ua(e,r,"overflow-button").each(l=>{Ml.hasGrown(s)&&Dr.on(l)}),Ml.refresh(s)})},sv=Wl({name:"SplitSlidingToolbar",configFields:Kz(),partFields:t5(),factory:(e,r,s,l)=>{const m="alloy.toolbar.toggle";return{uid:e.uid,dom:e.dom,components:r,behaviours:Fi(e.splitToolbarBehaviours,[js.config({others:{overflowGroup:g=>Ak.sketch({...l["overflow-group"](),items:[wl.sketch({...l["overflow-button"](),action:h=>{$r(g,m)}})]})}}),Tr("toolbar-toggle-events",[Kt(m,g=>{Yz(g,e)})])]),apis:{setGroups:(g,h)=>{((x,w)=>{const S=dt(w,x.getSystem().build);e.builtGroups.set(S)})(g,h),l3(g,e)},refresh:g=>l3(g,e),toggle:g=>Yz(g,e),isOpen:g=>((h,x)=>ua(h,x,"overflow").map(Ml.hasGrown).getOr(!1))(g,e)},domModification:{attributes:{role:"group"}}}},apis:{setGroups:(e,r,s)=>{e.setGroups(r,s)},refresh:(e,r)=>{e.refresh(r)},toggle:(e,r)=>{e.toggle(r)},isOpen:(e,r)=>e.isOpen(r)}}),c3=e=>{const r=e.title.fold(()=>({}),s=>({attributes:{title:s}}));return{dom:{tag:"div",classes:["tox-toolbar__group"],...r},components:[Ak.parts.items({})],items:e.items,markers:{itemSelector:"*:not(.tox-split-button) > .tox-tbtn:not([disabled]), .tox-split-button:not([disabled]), .tox-toolbar-nav-js:not([disabled]), .tox-number-input:not([disabled])"},tgroupBehaviours:Oo([Bs.config({}),er.config({})])}},Ok=e=>Ak.sketch(c3(e)),d3=(e,r)=>{const s=La(l=>{const m=dt(e.initGroups,Ok);Mm.setGroups(l,m)});return Oo([j2(e.providers.isDisabled),Wi(),Dn.config({mode:r,onEscape:e.onEscape,selector:".tox-toolbar__group"}),Tr("toolbar-events",[s])])},Xz=e=>{const r=e.cyclicKeying?"cyclic":"acyclic";return{uid:e.uid,dom:{tag:"div",classes:["tox-toolbar-overlord"]},parts:{"overflow-group":c3({title:R.none(),items:[]}),"overflow-button":OO({name:"more",icon:R.some("more-drawer"),enabled:!0,tooltip:R.some("Reveal or hide additional toolbar items"),primary:!1,buttonType:R.none(),borderless:!1},R.none(),e.providers)},splitToolbarBehaviours:d3(e,r)}},o5=e=>{const r=Xz(e),s=Gz.parts.primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}});return Gz.sketch({...r,lazySink:e.getSink,getOverflowBounds:()=>{const l=e.moreDrawerData.lazyHeader().element,m=ts(l),g=Lo(l),h=ts(g),x=Math.max(g.dom.scrollHeight,h.height);return Ba(m.x+4,h.y,m.width-8,x)},parts:{...r.parts,overflow:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:e.attributes}}},components:[s],markers:{overflowToggledClass:"tox-tbtn--enabled"},onOpened:l=>e.onToggled(l,!0),onClosed:l=>e.onToggled(l,!1)})},Jz=e=>{const r=sv.parts.primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}}),s=sv.parts.overflow({dom:{tag:"div",classes:["tox-toolbar__overflow"]}}),l=Xz(e);return sv.sketch({...l,components:[r,s],markers:{openClass:"tox-toolbar__overflow--open",closedClass:"tox-toolbar__overflow--closed",growingClass:"tox-toolbar__overflow--growing",shrinkingClass:"tox-toolbar__overflow--shrinking",overflowToggledClass:"tox-tbtn--enabled"},onOpened:m=>{m.getSystem().broadcastOn([wk()],{type:"opened"}),e.onToggled(m,!0)},onClosed:m=>{m.getSystem().broadcastOn([wk()],{type:"closed"}),e.onToggled(m,!1)}})},Nk=e=>{const r=e.cyclicKeying?"cyclic":"acyclic";return Mm.sketch({uid:e.uid,dom:{tag:"div",classes:["tox-toolbar"].concat(e.type===Vc.scrolling?["tox-toolbar--scrolling"]:[])},components:[Mm.parts.groups({})],toolbarBehaviours:d3(e,r)})},Tf=[Xm,pu,Hs("tooltip"),pl("buttonType","secondary",["primary","secondary"]),ri("borderless",!1),ml("onAction")],Mk={button:[...Tf,Wg,da("type",["button"])],togglebutton:[...Tf,ri("active",!1),da("type",["togglebutton"])]},Dk=[da("type",["group"]),uc("buttons",[],Ms("type",Mk))],$h=Ms("type",{...Mk,group:Dk}),Qz=Cn([uc("buttons",[],$h),ml("onShow"),ml("onHide")]),eA=(e,r)=>((s,l)=>{var m,g;const h=s.type==="togglebutton",x=s.icon.map(te=>sp(te,l.icons)).map(Ta),w={...s,name:h?s.text.getOr(s.icon.getOr("")):(m=s.text)!==null&&m!==void 0?m:s.icon.getOr(""),primary:s.buttonType==="primary",buttonType:R.from(s.buttonType),tooltip:s.tooltip,icon:s.icon,enabled:!0,borderless:s.borderless},S=ek((g=s.buttonType)!==null&&g!==void 0?g:"secondary"),A=h?s.text.map(l.translate):R.some(l.translate(s.text)),N=A.map(Ya),F=w.tooltip.or(A).map(te=>({"aria-label":l.translate(te),title:l.translate(te)})).getOr({}),$=x.map(te=>te.asSpec()),W=Eh([$,N]),se=s.icon.isSome()&&N.isSome(),le={tag:"button",classes:S.concat(...s.icon.isSome()&&!se?["tox-button--icon"]:[]).concat(...se?["tox-button--icon-and-text"]:[]).concat(...s.borderless?["tox-button--naked"]:[]).concat(...s.type==="togglebutton"&&s.active?["tox-button--enabled"]:[]),attributes:F},fe=Qw(w,R.some(te=>{const X=ue=>{x.map(ye=>ye.getOpt(te).each(we=>{fr.set(we,[sp(ue,l.icons)])}))};return h?s.onAction({setIcon:X,setActive:ue=>{const ye=te.element;ue?(Jr(ye,"tox-button--enabled"),Kn(ye,"aria-pressed",!0)):(rs(ye,"tox-button--enabled"),xa(ye,"aria-pressed"))},isActive:()=>Di(te.element,"tox-button--enabled")}):s.type==="button"?s.onAction({setIcon:X}):void 0}),[],le,W,l);return wl.sketch(fe)})(e,r),tA=Yl().deviceType,u3=tA.isPhone(),iv=tA.isTablet();var zf=Wl({name:"silver.View",configFields:[Yt("viewConfig")],partFields:[No({factory:{sketch:e=>{let r=!1;const s=dt(e.buttons,l=>l.type==="group"?(r=!0,((m,g)=>({dom:{tag:"div",classes:["tox-view__toolbar__group"]},components:dt(m.buttons,h=>eA(h,g))}))(l,e.providers)):eA(l,e.providers));return{uid:e.uid,dom:{tag:"div",classes:[r?"tox-view__toolbar":"tox-view__header",...u3||iv?["tox-view--mobile","tox-view--scrolling"]:[]]},behaviours:Oo([er.config({}),Dn.config({mode:"flow",selector:"button, .tox-button",focusInside:qb.OnEnterOrSpaceMode})]),components:r?s:[Ku.sketch({dom:{tag:"div",classes:["tox-view__header-start"]},components:[]}),Ku.sketch({dom:{tag:"div",classes:["tox-view__header-end"]},components:s})]}}},schema:[Yt("buttons"),Yt("providers")],name:"header"}),No({factory:{sketch:e=>({uid:e.uid,dom:{tag:"div",classes:["tox-view__pane"]}})},schema:[],name:"pane"})],factory:(e,r,s,l)=>{const m={getPane:g=>tl.getPart(g,e,"pane"),getOnShow:g=>e.viewConfig.onShow,getOnHide:g=>e.viewConfig.onHide};return{uid:e.uid,dom:e.dom,components:r,apis:m}},apis:{getPane:(e,r)=>e.getPane(r),getOnShow:(e,r)=>e.getOnShow(r),getOnHide:(e,r)=>e.getOnHide(r)}});const Rk=(e,r,s)=>zt(r,(l,m)=>{const g=Sl(ka("view",Qz,l));return e.slot(m,zf.sketch({dom:{tag:"div",classes:["tox-view"]},viewConfig:g,components:[...g.buttons.length>0?[zf.parts.header({buttons:g.buttons,providers:s})]:[],zf.parts.pane({})]}))}),Uh=(e,r)=>ac.sketch(s=>({dom:{tag:"div",classes:["tox-view-wrap__slot-container"]},components:Rk(s,e,r),slotBehaviours:cy([La(l=>ac.hideAllSlots(l))])})),lv=e=>to(ac.getSlotNames(e),r=>ac.isShowing(e,r)),m3=(e,r,s)=>{ac.getSlot(e,r).each(l=>{zf.getPane(l).each(m=>{var g;s(l)((g=m.element.dom,{getContainer:me(g)}))})})};var cv=Pc({factory:(e,r)=>{const s={setViews:(l,m)=>{fr.set(l,[Uh(m,r.backstage.shared.providers)])},whichView:l=>Gr.getCurrent(l).bind(lv),toggleView:(l,m,g,h)=>Gr.getCurrent(l).exists(x=>{const w=lv(x),S=w.exists(N=>h===N),A=ac.getSlot(x,h).isSome();return A&&(ac.hideAllSlots(x),S?((N=>{const F=N.element;Bn(F,"display","none"),Kn(F,"aria-hidden","true")})(l),m()):(g(),(N=>{const F=N.element;Pr(F,"display"),xa(F,"aria-hidden")})(l),ac.showSlot(x,h),((N,F)=>{m3(N,F,zf.getOnShow)})(x,h)),w.each(N=>((F,$)=>m3(F,$,zf.getOnHide))(x,N))),A})};return{uid:e.uid,dom:{tag:"div",classes:["tox-view-wrap"],attributes:{"aria-hidden":"true"},styles:{display:"none"}},components:[],behaviours:Oo([fr.config({}),Gr.config({find:l=>{const m=fr.contents(l);return at(m)}})]),apis:s}},name:"silver.ViewWrapper",configFields:[Yt("backstage")],apis:{setViews:(e,r,s)=>e.setViews(r,s),toggleView:(e,r,s,l,m)=>e.toggleView(r,s,l,m),whichView:(e,r)=>e.whichView(r)}});const oA=Nm.optional({factory:Ck,name:"menubar",schema:[Yt("backstage")]}),n5=Nm.optional({factory:{sketch:e=>kz.sketch({uid:e.uid,dom:e.dom,listBehaviours:Oo([Dn.config({mode:"acyclic",selector:".tox-toolbar"})]),makeItem:()=>Nk({type:e.type,uid:un("multiple-toolbar-item"),cyclicKeying:!1,initGroups:[],providers:e.providers,onEscape:()=>(e.onEscape(),R.some(!0))}),setupItem:(r,s,l,m)=>{Mm.setGroups(s,l)},shell:!0})},name:"multiple-toolbar",schema:[Yt("dom"),Yt("onEscape")]}),nA=Nm.optional({factory:{sketch:e=>(s=>s.type===Vc.sliding?Jz:s.type===Vc.floating?o5:Nk)(e)({type:e.type,uid:e.uid,onEscape:()=>(e.onEscape(),R.some(!0)),onToggled:(s,l)=>e.onToolbarToggled(l),cyclicKeying:!1,initGroups:[],getSink:e.getSink,providers:e.providers,moreDrawerData:{lazyToolbar:e.lazyToolbar,lazyMoreButton:e.lazyMoreButton,lazyHeader:e.lazyHeader},attributes:e.attributes})},name:"toolbar",schema:[Yt("dom"),Yt("onEscape"),Yt("getSink")]}),rA=Nm.optional({factory:{sketch:e=>{const r=e.editor,s=e.sticky?XS:HS;return{uid:e.uid,dom:e.dom,components:e.components,behaviours:Oo(s(r,e.sharedBackstage))}}},name:"header",schema:[Yt("dom")]}),g3=Nm.optional({factory:{sketch:e=>({uid:e.uid,dom:e.dom,components:[{dom:{tag:"a",attributes:{href:"https://www.tiny.cloud/tinymce-self-hosted-premium-features/?utm_campaign=self_hosted_upgrade_promo&utm_source=tiny&utm_medium=referral",rel:"noopener",target:"_blank","aria-hidden":"true"},classes:["tox-promotion-link"],innerHtml:"⚡️Upgrade"}}]})},name:"promotion",schema:[Yt("dom")]}),r5=Nm.optional({name:"socket",schema:[Yt("dom")]}),aA=Nm.optional({factory:{sketch:e=>({uid:e.uid,dom:{tag:"div",classes:["tox-sidebar"],attributes:{role:"presentation"}},components:[{dom:{tag:"div",classes:["tox-sidebar__slider"]},components:[],behaviours:Oo([Bs.config({}),er.config({}),Ml.config({dimension:{property:"width"},closedClass:"tox-sidebar--sliding-closed",openClass:"tox-sidebar--sliding-open",shrinkingClass:"tox-sidebar--sliding-shrinking",growingClass:"tox-sidebar--sliding-growing",onShrunk:r=>{Gr.getCurrent(r).each(ac.hideAllSlots),$r(r,ov)},onGrown:r=>{$r(r,ov)},onStartGrow:r=>{_n(r,Ek,{width:Ir(r.element,"width").getOr("")})},onStartShrink:r=>{_n(r,Ek,{width:Ga(r.element)+"px"})}}),fr.config({}),Gr.config({find:r=>{const s=fr.contents(r);return at(s)}})])}],behaviours:Oo([Hw(0),Tr("sidebar-sliding-events",[Kt(Ek,(r,s)=>{Bn(r.element,"width",s.event.width)}),Kt(ov,(r,s)=>{Pr(r.element,"width")})])])})},name:"sidebar",schema:[Yt("dom")]}),p3=Nm.optional({factory:{sketch:e=>({uid:e.uid,dom:{tag:"div",attributes:{"aria-hidden":"true"},classes:["tox-throbber"],styles:{display:"none"}},behaviours:Oo([fr.config({}),em.config({focus:!1}),Gr.config({find:r=>at(r.components())})]),components:[]})},name:"throbber",schema:[Yt("dom")]}),f3=Nm.optional({factory:cv,name:"viewWrapper",schema:[Yt("backstage")]}),a5=Nm.optional({factory:{sketch:e=>({uid:e.uid,dom:{tag:"div",classes:["tox-editor-container"]},components:e.components})},name:"editorContainer",schema:[]});var Ja=Wl({name:"OuterContainer",factory:(e,r,s)=>{let l=!1;const m={getSocket:g=>tl.getPart(g,e,"socket"),setSidebar:(g,h,x)=>{tl.getPart(g,e,"sidebar").each(w=>((S,A,N)=>{Gr.getCurrent(S).each(F=>{fr.set(F,[YO(A)]);const $=N==null?void 0:N.toLowerCase();io($)&&Vo(A,$)&&Gr.getCurrent(F).each(W=>{ac.showSlot(W,$),Ml.immediateGrow(F),Pr(F.element,"width"),$y(S.element,"region")})})})(w,h,x))},toggleSidebar:(g,h)=>{tl.getPart(g,e,"sidebar").each(x=>((w,S)=>{Gr.getCurrent(w).each(A=>{Gr.getCurrent(A).each(N=>{Ml.hasGrown(A)?ac.isShowing(N,S)?(Ml.shrink(A),$y(w.element,"presentation")):(ac.hideAllSlots(N),ac.showSlot(N,S),$y(w.element,"region")):(ac.hideAllSlots(N),ac.showSlot(N,S),Ml.grow(A),$y(w.element,"region"))})})})(x,h))},whichSidebar:g=>tl.getPart(g,e,"sidebar").bind(Hz).getOrNull(),getHeader:g=>tl.getPart(g,e,"header"),getToolbar:g=>tl.getPart(g,e,"toolbar"),setToolbar:(g,h)=>{tl.getPart(g,e,"toolbar").each(x=>{const w=dt(h,Ok);x.getApis().setGroups(x,w)})},setToolbars:(g,h)=>{tl.getPart(g,e,"multiple-toolbar").each(x=>{const w=dt(h,S=>dt(S,Ok));kz.setItems(x,w)})},refreshToolbar:g=>{tl.getPart(g,e,"toolbar").each(h=>h.getApis().refresh(h))},toggleToolbarDrawer:g=>{tl.getPart(g,e,"toolbar").each(h=>{Fn(h.getApis().toggle,x=>x(h))})},toggleToolbarDrawerWithoutFocusing:g=>{tl.getPart(g,e,"toolbar").each(h=>{Fn(h.getApis().toggleWithoutFocusing,x=>x(h))})},isToolbarDrawerToggled:g=>tl.getPart(g,e,"toolbar").bind(h=>R.from(h.getApis().isOpen).map(x=>x(h))).getOr(!1),getThrobber:g=>tl.getPart(g,e,"throbber"),focusToolbar:g=>{tl.getPart(g,e,"toolbar").orThunk(()=>tl.getPart(g,e,"multiple-toolbar")).each(h=>{Dn.focusIn(h)})},setMenubar:(g,h)=>{tl.getPart(g,e,"menubar").each(x=>{Ck.setMenus(x,h)})},focusMenubar:g=>{tl.getPart(g,e,"menubar").each(h=>{Ck.focus(h)})},setViews:(g,h)=>{tl.getPart(g,e,"viewWrapper").each(x=>{cv.setViews(x,h)})},toggleView:(g,h)=>tl.getPart(g,e,"viewWrapper").exists(x=>cv.toggleView(x,()=>m.showMainView(g),()=>m.hideMainView(g),h)),whichView:g=>tl.getPart(g,e,"viewWrapper").bind(cv.whichView).getOrNull(),hideMainView:g=>{l=m.isToolbarDrawerToggled(g),l&&m.toggleToolbarDrawer(g),tl.getPart(g,e,"editorContainer").each(h=>{const x=h.element;Bn(x,"display","none"),Kn(x,"aria-hidden","true")})},showMainView:g=>{l&&m.toggleToolbarDrawer(g),tl.getPart(g,e,"editorContainer").each(h=>{const x=h.element;Pr(x,"display"),xa(x,"aria-hidden")})}};return{uid:e.uid,dom:e.dom,components:r,apis:m,behaviours:e.behaviours}},configFields:[Yt("dom"),Yt("behaviours")],partFields:[rA,oA,nA,n5,r5,aA,g3,p3,f3,a5],apis:{getSocket:(e,r)=>e.getSocket(r),setSidebar:(e,r,s,l)=>{e.setSidebar(r,s,l)},toggleSidebar:(e,r,s)=>{e.toggleSidebar(r,s)},whichSidebar:(e,r)=>e.whichSidebar(r),getHeader:(e,r)=>e.getHeader(r),getToolbar:(e,r)=>e.getToolbar(r),setToolbar:(e,r,s)=>{e.setToolbar(r,s)},setToolbars:(e,r,s)=>{e.setToolbars(r,s)},refreshToolbar:(e,r)=>e.refreshToolbar(r),toggleToolbarDrawer:(e,r)=>{e.toggleToolbarDrawer(r)},toggleToolbarDrawerWithoutFocusing:(e,r)=>{e.toggleToolbarDrawerWithoutFocusing(r)},isToolbarDrawerToggled:(e,r)=>e.isToolbarDrawerToggled(r),getThrobber:(e,r)=>e.getThrobber(r),setMenubar:(e,r,s)=>{e.setMenubar(r,s)},focusMenubar:(e,r)=>{e.focusMenubar(r)},focusToolbar:(e,r)=>{e.focusToolbar(r)},setViews:(e,r,s)=>{e.setViews(r,s)},toggleView:(e,r,s)=>e.toggleView(r,s),whichView:(e,r)=>e.whichView(r)}});const sA={file:{title:"File",items:"newdocument restoredraft | preview | export print | deleteallconversations"},edit:{title:"Edit",items:"undo redo | cut copy paste pastetext | selectall | searchreplace"},view:{title:"View",items:"code | visualaid visualchars visualblocks | spellchecker | preview fullscreen | showcomments"},insert:{title:"Insert",items:"image link media addcomment pageembed template inserttemplate codesample inserttable accordion | charmap emoticons hr | pagebreak nonbreaking anchor tableofcontents footnotes | mergetags | insertdatetime"},format:{title:"Format",items:"bold italic underline strikethrough superscript subscript codeformat | styles blocks fontfamily fontsize align lineheight | forecolor backcolor | language | removeformat"},tools:{title:"Tools",items:"aidialog aishortcuts | spellchecker spellcheckerlanguage | autocorrect capitalization | a11ycheck code typography wordcount addtemplate"},table:{title:"Table",items:"inserttable | cell row column | advtablesort | tableprops deletetable"},help:{title:"Help",items:"help"}},Bk=e=>e.split(" "),iA=(e,r)=>{const s={...sA,...r.menus},l=Vt(r.menus).length>0,m=r.menubar===void 0||r.menubar===!0?Bk("file edit view insert format tools table help"):Bk(r.menubar===!1?"":r.menubar),g=Pt(m,x=>{const w=Vo(sA,x);return l?w||Xt(r.menus,x).exists(S=>Vo(S,"items")):w}),h=dt(g,x=>{const w=s[x];return((S,A,N)=>{const F=Dx(N).split(/[ ,]/);return{text:S.title,getItems:()=>ct(S.items,$=>{const W=$.toLowerCase();return W.trim().length===0||uo(F,se=>se===W)?[]:W==="separator"||W==="|"?[{type:"separator"}]:A.menuItems[W]?[A.menuItems[W]]:[]})}})({title:w.title,items:Bk(w.items)},r,e)});return Pt(h,x=>x.getItems().length>0&&uo(x.getItems(),w=>io(w)||w.type!=="separator"))},Af=(e,r,s)=>(e.on("remove",()=>s.unload(r)),s.load(r)),Fk=(e,r,s,l)=>(e.on("remove",()=>l.unloadRawCss(r)),l.loadRawCss(r,s)),s5=async(e,r)=>{const s="ui/"+e0(e).getOr("default")+"/skin.css",l=tinymce.Resource.get(s);return io(l)?Promise.resolve(Fk(e,s,l,e.ui.styleSheetLoader)):Af(e,r+"/skin.min.css",e.ui.styleSheetLoader)},Lk=async(e,r)=>{var s;if(s=St(e.getElement()),va(s).isSome()){const l="ui/"+e0(e).getOr("default")+"/skin.shadowdom.css",m=tinymce.Resource.get(l);return io(m)?(Fk(e,l,m,Qb.DOM.styleSheetLoader),Promise.resolve()):Af(e,r+"/skin.shadowdom.min.css",Qb.DOM.styleSheetLoader)}},Zh=(e,r)=>(async(s,l)=>{e0(l).fold(()=>{const g=Q1(l);g&&l.contentCSS.push(g+(s?"/content.inline":"/content")+".min.css")},g=>{const h="ui/"+g+(s?"/content.inline":"/content")+".css",x=tinymce.Resource.get(h);if(io(x))Fk(l,h,x,l.ui.styleSheetLoader);else{const w=Q1(l);w&&l.contentCSS.push(w+(s?"/content.inline":"/content")+".min.css")}});const m=Q1(l);if(!s2(l)&&io(m))return Promise.all([s5(l,m),Lk(l,m)]).then()})(e,r).then((s=>{const l=()=>{s._skinLoaded=!0,(m=>{m.dispatch("SkinLoaded")})(s)};return()=>{s.initialized?l():s.on("init",l)}})(r),((s,l)=>()=>((m,g)=>{m.dispatch("SkinLoadError",g)})(s,{message:"Skin could not be loaded"}))(r)),Ik=rt(Zh,!1),Pk=rt(Zh,!0),qh=(e,r,s)=>e.translate([r,e.translate(s)]),Zc=(e,r)=>{const s=(g,h,x,w)=>{const S=e.shared.providers.translate(g.title);if(g.type==="separator")return R.some({type:"separator",text:S});if(g.type==="submenu"){const A=ct(g.getStyleItems(),N=>l(N,h,w));return h===0&&A.length<=0?R.none():R.some({type:"nestedmenuitem",text:S,enabled:A.length>0,getSubmenuItems:()=>ct(g.getStyleItems(),N=>l(N,h,w))})}return R.some({type:"togglemenuitem",text:S,icon:g.icon,active:g.isSelected(w),enabled:!x,onAction:r.onAction(g),...g.getStylePreview().fold(()=>({}),A=>({meta:{style:A}}))})},l=(g,h,x)=>{const w=g.type==="formatter"&&r.isInvalid(g);return h===0?w?[]:s(g,h,!1,x).toArray():s(g,h,w,x).toArray()},m=g=>{const h=r.getCurrentValue(),x=r.shouldHide?0:1;return ct(g,w=>l(w,x,h))};return{validateItems:m,getFetch:(g,h)=>(x,w)=>{const S=h(),A=m(S);w(Ny(A,Oc.CLOSE_ON_EXECUTE,g,{isHorizontalMenu:!1,search:R.none()}))}}},gp=(e,r,s)=>{const l=s.dataset,m=l.type==="basic"?()=>dt(l.data,g=>OS(g,s.isSelectedFor,s.getPreviewFor)):l.getData;return{items:Zc(r,s),getStyleItems:m}},Uy=(e,r,s,l,m)=>{const{items:g,getStyleItems:h}=gp(0,r,s);return oS({text:s.icon.isSome()?R.none():s.text,icon:s.icon,tooltip:R.from(s.tooltip),role:R.none(),fetch:g.getFetch(r,h),onSetup:x=>{const w=S=>x.setTooltip(qh(e,l,S.value));return e.on(m,w),dw(Jm(e,"NodeChange",S=>{const A=S.getComponent();s.updateText(A),Qn.set(S.getComponent(),!e.selection.isEditable())})(x),()=>e.off(m,w))},getApi:x=>({getComponent:me(x),setTooltip:w=>{const S=r.shared.providers.translate(w);Os(x.element,{"aria-label":S,title:S})}}),columns:1,presets:"normal",classes:s.icon.isSome()?[]:["bespoke"],dropdownBehaviours:[]},"tox-tbtn",r.shared)};var Wh;(function(e){e[e.SemiColon=0]="SemiColon",e[e.Space=1]="Space"})(Wh||(Wh={}));const h3=(e,r,s)=>{const l=(m=((g,h)=>h===Wh.SemiColon?g.replace(/;$/,"").split(";"):g.split(" "))(e.options.get(r),s),dt(m,g=>{let h=g,x=g;const w=g.split("=");return w.length>1&&(h=w[0],x=w[1]),{title:h,format:x}}));var m;return{type:"basic",data:l}},pp="Alignment {0}",lA="left",Hk=[{title:"Left",icon:"align-left",format:"alignleft",command:"JustifyLeft"},{title:"Center",icon:"align-center",format:"aligncenter",command:"JustifyCenter"},{title:"Right",icon:"align-right",format:"alignright",command:"JustifyRight"},{title:"Justify",icon:"align-justify",format:"alignjustify",command:"JustifyFull"}],Gh=e=>{const r={type:"basic",data:Hk};return{tooltip:qh(e,pp,lA),text:R.none(),icon:R.some("align-left"),isSelectedFor:s=>()=>e.formatter.match(s),getCurrentValue:R.none,getPreviewFor:s=>R.none,onAction:s=>()=>to(Hk,l=>l.format===s.format).each(l=>e.execCommand(l.command)),updateText:s=>{const l=to(Hk,m=>e.formatter.match(m.format)).fold(me(lA),m=>m.title.toLowerCase());_n(s,ip,{icon:`align-${l}`}),((m,g)=>{m.dispatch("AlignTextUpdate",g)})(e,{value:l})},dataset:r,shouldHide:!1,isInvalid:s=>!e.formatter.canApply(s.format)}},dv=(e,r)=>{const s=r(),l=dt(s,m=>m.format);return R.from(e.formatter.closest(l)).bind(m=>to(s,g=>g.format===m)).orThunk(()=>ln(e.formatter.match("p"),{title:"Paragraph",format:"p"}))},b3="Block {0}",Of="Paragraph",cA=e=>{const r=h3(e,"block_formats",Wh.SemiColon);return{tooltip:qh(e,b3,Of),text:R.some(Of),icon:R.none(),isSelectedFor:s=>()=>e.formatter.match(s),getCurrentValue:R.none,getPreviewFor:s=>()=>{const l=e.formatter.get(s);return l?R.some({tag:l.length>0&&(l[0].inline||l[0].block)||"div",styles:e.dom.parseStyle(e.formatter.getCssText(s))}):R.none()},onAction:w0(e),updateText:s=>{const l=dv(e,()=>r.data).fold(me(Of),m=>m.title);_n(s,dd,{text:l}),((m,g)=>{m.dispatch("BlocksTextUpdate",g)})(e,{value:l})},dataset:r,shouldHide:!1,isInvalid:s=>!e.formatter.canApply(s.format)}},dA="Font {0}",Kh="System Font",i5=["-apple-system","Segoe UI","Roboto","Helvetica Neue","sans-serif"],y3=e=>{const r=e.split(/\s*,\s*/);return dt(r,s=>s.replace(/^['"]+|['"]+$/g,""))},t=(e,r)=>r.length>0&>(r,s=>e.indexOf(s.toLowerCase())>-1),o=e=>{const r=()=>{const l=S=>S?y3(S)[0]:"",m=e.queryCommandValue("FontName"),g=s.data,h=m?m.toLowerCase():"",x=a2(e);return{matchOpt:to(g,S=>{const A=S.format;return A.toLowerCase()===h||l(A).toLowerCase()===l(h).toLowerCase()}).orThunk(()=>ln(((S,A)=>{if(S.indexOf("-apple-system")===0||A.length>0){const N=y3(S.toLowerCase());return t(N,i5)||t(N,A)}return!1})(h,x),{title:Kh,format:h})),font:m}},s=h3(e,"font_family_formats",Wh.SemiColon);return{tooltip:qh(e,dA,Kh),text:R.some(Kh),icon:R.none(),isSelectedFor:l=>m=>m.exists(g=>g.format===l),getCurrentValue:()=>{const{matchOpt:l}=r();return l},getPreviewFor:l=>()=>R.some({tag:"div",styles:l.indexOf("dings")===-1?{"font-family":l}:{}}),onAction:l=>()=>{e.undoManager.transact(()=>{e.focus(),e.execCommand("FontName",!1,l.format)})},updateText:l=>{const{matchOpt:m,font:g}=r(),h=m.fold(me(g),x=>x.title);_n(l,dd,{text:h}),((x,w)=>{x.dispatch("FontFamilyTextUpdate",w)})(e,{value:h})},dataset:s,shouldHide:!1,isInvalid:Bo}},n={unsupportedLength:["em","ex","cap","ch","ic","rem","lh","rlh","vw","vh","vi","vb","vmin","vmax","cm","mm","Q","in","pc","pt","px"],fixed:["px","pt"],relative:["%"],empty:[""]},a=(()=>{const e="[0-9]+",r="[eE][+-]?"+e,s=m=>`(?:${m})?`,l=["Infinity",e+"\\."+s(e)+s(r),"\\."+e+s(r),e+s(r)].join("|");return new RegExp(`^([+-]?(?:${l}))(.*)$`)})(),i=(e,r)=>R.from(a.exec(e)).bind(s=>{const l=Number(s[1]),m=s[2];return((g,h)=>uo(h,x=>uo(n[x],w=>g===w)))(m,r)?R.some({value:l,unit:m}):R.none()}),c={tab:me(9),escape:me(27),enter:me(13),backspace:me(8),delete:me(46),left:me(37),up:me(38),right:me(39),down:me(40),space:me(32),home:me(36),end:me(35),pageUp:me(33),pageDown:me(34)},d="Font size {0}",u="12pt",f={"8pt":"1","10pt":"2","12pt":"3","14pt":"4","18pt":"5","24pt":"6","36pt":"7"},y={"xx-small":"7pt","x-small":"8pt",small:"10pt",medium:"12pt",large:"14pt","x-large":"18pt","xx-large":"24pt"},v=(e,r)=>/[0-9.]+px$/.test(e)?((s,l)=>{const m=Math.pow(10,l);return Math.round(s*m)/m})(72*parseInt(e,10)/96,r||0)+"pt":Xt(y,e).getOr(e),k=e=>Xt(f,e).getOr(""),E=e=>{const r=()=>{let m=R.none();const g=l.data,h=e.queryCommandValue("FontSize");if(h)for(let x=3;m.isNone()&&x>=0;x--){const w=v(h,x),S=k(w);m=to(g,A=>A.format===h||A.format===w||A.format===S)}return{matchOpt:m,size:h}},s=me(R.none),l=h3(e,"font_size_formats",Wh.Space);return{tooltip:qh(e,d,u),text:R.some(u),icon:R.none(),isSelectedFor:m=>g=>g.exists(h=>h.format===m),getPreviewFor:s,getCurrentValue:()=>{const{matchOpt:m}=r();return m},onAction:m=>()=>{e.undoManager.transact(()=>{e.focus(),e.execCommand("FontSize",!1,m.format)})},updateText:m=>{const{matchOpt:g,size:h}=r(),x=g.fold(me(h),w=>w.title);_n(m,dd,{text:x}),((w,S)=>{w.dispatch("FontSizeTextUpdate",S)})(e,{value:x})},dataset:l,shouldHide:!1,isInvalid:Bo}},B="Format {0}",O=(e,r)=>{const s="Paragraph";return{tooltip:qh(e,B,s),text:R.some(s),icon:R.none(),isSelectedFor:l=>()=>e.formatter.match(l),getCurrentValue:R.none,getPreviewFor:l=>()=>{const m=e.formatter.get(l);return m!==void 0?R.some({tag:m.length>0&&(m[0].inline||m[0].block)||"div",styles:e.dom.parseStyle(e.formatter.getCssText(l))}):R.none()},onAction:w0(e),updateText:l=>{const m=x=>zS(x)?ct(x.items,m):AS(x)?[{title:x.title,format:x.format}]:[],g=ct(uz(e),m),h=dv(e,me(g)).fold(me(s),x=>x.title);_n(l,dd,{text:h}),((x,w)=>{x.dispatch("StylesTextUpdate",w)})(e,{value:h})},shouldHide:Nx(e),isInvalid:l=>!e.formatter.canApply(l.format),dataset:r}},P=me([Yt("toggleClass"),Yt("fetch"),nu("onExecute"),ft("getHotspot",R.some),ft("getAnchorOverrides",me({})),hm(),nu("onItemExecute"),la("lazySink"),Yt("dom"),Hr("onOpen"),qi("splitDropdownBehaviours",[js,Dn,er]),ft("matchWidth",!1),ft("useMinWidth",!1),ft("eventOrder",{}),la("role")].concat(E0())),M=Eo({factory:wl,schema:[Yt("dom")],name:"arrow",defaults:()=>({buttonBehaviours:Oo([er.revoke()])}),overrides:e=>({dom:{tag:"span",attributes:{role:"presentation"}},action:r=>{r.getSystem().getByUid(e.uid).each(Qd)},buttonBehaviours:Oo([Dr.config({toggleOnExecute:!1,toggleClass:e.toggleClass})])})}),j=Eo({factory:wl,schema:[Yt("dom")],name:"button",defaults:()=>({buttonBehaviours:Oo([er.revoke()])}),overrides:e=>({dom:{tag:"span",attributes:{role:"presentation"}},action:r=>{r.getSystem().getByUid(e.uid).each(s=>{e.onExecute(s,r)})}})}),q=me([M,j,No({factory:{sketch:e=>({uid:e.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:e.text}})},schema:[Yt("text")],name:"aria-descriptor"}),Ro({schema:[jf()],name:"menu",defaults:e=>({onExecute:(r,s)=>{r.getSystem().getByUid(e.uid).each(l=>{e.onItemExecute(l,r,s)})}})}),LE()]),K=Wl({name:"SplitDropdown",configFields:P(),partFields:q(),factory:(e,r,s,l)=>{const m=S=>{Gr.getCurrent(S).each(A=>{ba.highlightFirst(A),Dn.focusIn(A)})},g=S=>{S0(e,Ze,S,l,m,Gl.HighlightMenuAndItem).get(he)},h=S=>{const A=li(S,e,"button");return Qd(A),R.some(!0)},x={...qa([La((S,A)=>{ua(S,e,"aria-descriptor").each(N=>{const F=un("aria");Kn(N.element,"id",F),Kn(S.element,"aria-describedby",F)})})]),...B1(R.some(g))},w={repositionMenus:S=>{Dr.isOn(S)&&bw(S)}};return{uid:e.uid,dom:e.dom,components:r,apis:w,eventOrder:{...e.eventOrder,[fl()]:["disabling","toggling","alloy.base.behaviour"]},events:x,behaviours:Fi(e.splitDropdownBehaviours,[js.config({others:{sandbox:S=>{const A=li(S,e,"arrow");return hw(e,S,{onOpen:()=>{Dr.on(A),Dr.on(S)},onClose:()=>{Dr.off(A),Dr.off(S)}})}}}),Dn.config({mode:"special",onSpace:h,onEnter:h,onDown:S=>(g(S),R.some(!0))}),er.config({}),Dr.config({toggleOnExecute:!1,aria:{mode:"expanded"}})]),domModification:{attributes:{role:e.role.getOr("button"),"aria-haspopup":!0}}}},apis:{repositionMenus:(e,r)=>e.repositionMenus(r)}}),re=e=>({isEnabled:()=>!Qn.isDisabled(e),setEnabled:r=>Qn.set(e,!r),setText:r=>_n(e,dd,{text:r}),setIcon:r=>_n(e,ip,{icon:r})}),ee=e=>({setActive:r=>{Dr.set(e,r)},isActive:()=>Dr.isOn(e),isEnabled:()=>!Qn.isDisabled(e),setEnabled:r=>Qn.set(e,!r),setText:r=>_n(e,dd,{text:r}),setIcon:r=>_n(e,ip,{icon:r})}),ke=(e,r)=>e.map(s=>({"aria-label":r.translate(s),title:r.translate(s)})).getOr({}),et=un("focus-button"),st=(e,r,s,l,m)=>{const g=r.map(x=>Ta(tS(x,"tox-tbtn",m))),h=e.map(x=>Ta(sp(x,m.icons)));return{dom:{tag:"button",classes:["tox-tbtn"].concat(r.isSome()?["tox-tbtn--select"]:[]),attributes:ke(s,m)},components:Eh([h.map(x=>x.asSpec()),g.map(x=>x.asSpec())]),eventOrder:{[ai()]:["focusing","alloy.base.behaviour",xf],[Rc()]:[xf,"toolbar-group-button-events"]},buttonBehaviours:Oo([j2(m.isDisabled),Wi(),Tr(xf,[La((x,w)=>H0(x)),Kt(dd,(x,w)=>{g.bind(S=>S.getOpt(x)).each(S=>{fr.set(S,[Ya(m.translate(w.event.text))])})}),Kt(ip,(x,w)=>{h.bind(S=>S.getOpt(x)).each(S=>{fr.set(S,[sp(w.event.icon,m.icons)])})}),Kt(ai(),(x,w)=>{w.event.prevent(),$r(x,et)})])].concat(l.getOr([])))}},mt=(e,r,s)=>{var l;const m=Sn(he),g=st(e.icon,e.text,e.tooltip,R.none(),s);return wl.sketch({dom:g.dom,components:g.components,eventOrder:eS,buttonBehaviours:{...Oo([Tr("toolbar-button-events",[(h={onAction:e.onAction,getApi:r.getApi},Cc((x,w)=>{f0(h,x)(S=>{_n(x,QC,{buttonApi:S}),h.onAction(S)})})),Kg(r,m),Yg(r,m)]),j2(()=>!e.enabled||s.isDisabled()),Wi()].concat(r.toolbarButtonBehaviours)),[xf]:(l=g.buttonBehaviours)===null||l===void 0?void 0:l[xf]}});var h},kt=(e,r,s)=>mt(e,{toolbarButtonBehaviours:s.length>0?[Tr("toolbarButtonWith",s)]:[],getApi:re,onSetup:e.onSetup},r),Ve=(e,r,s)=>mt(e,{toolbarButtonBehaviours:[fr.config({}),Dr.config({toggleClass:"tox-tbtn--enabled",aria:{mode:"pressed"},toggleOnExecute:!1})].concat(s.length>0?[Tr("toolbarToggleButtonWith",s)]:[]),getApi:ee,onSetup:e.onSetup},r),ot=(e,r,s)=>l=>Qg(m=>r.fetch(m)).map(m=>R.from(yw(Da(aC(un("menu-value"),m,g=>{r.onItemAction(e(l),g)},r.columns,r.presets,Oc.CLOSE_ON_EXECUTE,r.select.getOr(Bo),s),{movement:_0(r.columns,r.presets),menuBehaviours:cy(r.columns!=="auto"?[]:[La((g,h)=>{Qx(g,4,h2(r.presets)).each(({numRows:x,numColumns:w})=>{Dn.setGridSize(g,x,w)})})])})))),pt=[{name:"history",items:["undo","redo"]},{name:"ai",items:["aidialog","aishortcuts"]},{name:"styles",items:["styles"]},{name:"formatting",items:["bold","italic"]},{name:"alignment",items:["alignleft","aligncenter","alignright","alignjustify"]},{name:"indentation",items:["outdent","indent"]},{name:"permanent pen",items:["permanentpen"]},{name:"comments",items:["addcomment"]}],Jt=(e,r)=>(s,l,m)=>{const g=e(s).mapError(h=>El(h)).getOrDie();return r(g,l,m)},en={button:Jt(M2,(e,r)=>{return s=e,l=r.shared.providers,kt(s,l,[]);var s,l}),togglebutton:Jt(m0,(e,r)=>{return s=e,l=r.shared.providers,Ve(s,l,[]);var s,l}),menubutton:Jt(QS,(e,r)=>cp(e,"tox-tbtn",r,R.none(),!1)),splitbutton:Jt(e=>ka("SplitButton",e3,e),(e,r)=>((s,l)=>{const m=x=>({isEnabled:()=>!Qn.isDisabled(x),setEnabled:w=>Qn.set(x,!w),setIconFill:(w,S)=>{vs(x.element,`svg path[class="${w}"], rect[class="${w}"]`).each(A=>{Kn(A,"fill",S)})},setActive:w=>{Kn(x.element,"aria-pressed",w),vs(x.element,"span").each(S=>{x.getSystem().getByDom(S).each(A=>Dr.set(A,w))})},isActive:()=>vs(x.element,"span").exists(w=>x.getSystem().getByDom(w).exists(Dr.isOn)),setText:w=>vs(x.element,"span").each(S=>x.getSystem().getByDom(S).each(A=>_n(A,dd,{text:w}))),setIcon:w=>vs(x.element,"span").each(S=>x.getSystem().getByDom(S).each(A=>_n(A,ip,{icon:w}))),setTooltip:w=>{const S=l.providers.translate(w);Os(x.element,{"aria-label":S,title:S})}}),g=Sn(he),h={getApi:m,onSetup:s.onSetup};return K.sketch({dom:{tag:"div",classes:["tox-split-button"],attributes:{"aria-pressed":!1,...ke(s.tooltip,l.providers)}},onExecute:x=>{const w=m(x);w.isEnabled()&&s.onAction(w)},onItemExecute:(x,w,S)=>{},splitDropdownBehaviours:Oo([H2(l.providers.isDisabled),Wi(),Tr("split-dropdown-events",[La((x,w)=>H0(x)),Kt(et,er.focus),Kg(h,g),Yg(h,g)]),Cy.config({})]),eventOrder:{[Rc()]:["alloy.base.behaviour","split-dropdown-events"]},toggleClass:"tox-tbtn--enabled",lazySink:l.getSink,fetch:ot(m,s,l.providers),parts:{menu:Ch(0,s.columns,s.presets)},components:[K.parts.button(st(s.icon,s.text,R.none(),R.some([Dr.config({toggleClass:"tox-tbtn--enabled",toggleOnExecute:!1})]),l.providers)),K.parts.arrow({dom:{tag:"button",classes:["tox-tbtn","tox-split-button__chevron"],innerHtml:Y_("chevron-down",l.providers.icons)},buttonBehaviours:Oo([H2(l.providers.isDisabled),Wi(),X_()])}),K.parts["aria-descriptor"]({text:l.providers.translate("To open the popup, press Shift+Enter")})]})})(e,r.shared)),grouptoolbarbutton:Jt(e=>ka("GroupToolbarButton",Bz,e),(e,r,s)=>{const l=s.ui.registry.getAll().buttons,m={[oh]:r.shared.header.isPositionedAtTop()?ju.TopToBottom:ju.BottomToTop};if(ey(s)===Vc.floating)return((g,h,x,w)=>{const S=h.shared,A=Sn(he),N={toolbarButtonBehaviours:[],getApi:re,onSetup:g.onSetup},F=[Tr("toolbar-group-button-events",[Kg(N,A),Yg(N,A)])];return Ef.sketch({lazySink:S.getSink,fetch:()=>Qg($=>{$(dt(x(g.items),Ok))}),markers:{toggledClass:"tox-tbtn--enabled"},parts:{button:st(g.icon,g.text,g.tooltip,R.some(F),S.providers),toolbar:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:w}}}})})(e,r,g=>Nn(s,{buttons:l,toolbar:g,allowToolbarGroups:!1},r,R.none()),m);throw new Error("Toolbar groups are only supported when using floating toolbar mode")})},Fo={styles:(e,r)=>{const s={type:"advanced",...r.styles};return Uy(e,r,O(e,s),B,"StylesTextUpdate")},fontsize:(e,r)=>Uy(e,r,E(e),d,"FontSizeTextUpdate"),fontsizeinput:(e,r)=>((s,l,m)=>{let g=R.none();const h=Jm(s,"NodeChange SwitchMode",X=>{const ue=X.getComponent();g=R.some(ue),m.updateInputValue(ue),Qn.set(ue,!s.selection.isEditable())}),x=X=>({getComponent:me(X)}),w=Sn(he),S=un("custom-number-input-events"),A=(X,ue,ye)=>{const we=g.map(oo=>Wo.getValue(oo)).getOr(""),Ye=m.getNewValue(we,X),Tt=we.length-`${Ye}`.length,Qt=g.map(oo=>oo.element.dom.selectionStart-Tt),no=g.map(oo=>oo.element.dom.selectionEnd-Tt);m.onAction(Ye,ye),g.each(oo=>{Wo.setValue(oo,Ye),ue&&(Qt.each(Uo=>oo.element.dom.selectionStart=Uo),no.each(Uo=>oo.element.dom.selectionEnd=Uo))})},N=(X,ue)=>A((ye,we)=>ye-we,X,ue),F=(X,ue)=>A((ye,we)=>ye+we,X,ue),$=X=>Go(X.element).fold(R.none,ue=>(sd(ue),R.some(!0))),W=X=>Gf(X.element)?(Ar(X.element).each(ue=>sd(ue)),R.some(!0)):R.none(),se=(X,ue,ye,we)=>{const Ye=Sn(he),Tt=l.shared.providers.translate(ye),Qt=un("altExecuting"),no=Jm(s,"NodeChange SwitchMode",Uo=>{Qn.set(Uo.getComponent(),!s.selection.isEditable())}),oo=Uo=>{Qn.isDisabled(Uo)||X(!0)};return wl.sketch({dom:{tag:"button",attributes:{title:Tt,"aria-label":Tt},classes:we.concat(ue)},components:[wf(ue,l.shared.providers.icons)],buttonBehaviours:Oo([Qn.config({}),Tr(Qt,[Kg({onSetup:no,getApi:x},Ye),Yg({getApi:x},Ye),Kt(fn(),(Uo,pn)=>{pn.event.raw.keyCode!==c.space()&&pn.event.raw.keyCode!==c.enter()||Qn.isDisabled(Uo)||X(!1)}),Kt(fa(),oo),Kt(Hl(),oo)])]),eventOrder:{[fn()]:[Qt,"keying"],[fa()]:[Qt,"alloy.base.behaviour"],[Hl()]:[Qt,"alloy.base.behaviour"]}})},le=Ta(se(X=>N(!1,X),"minus","Decrease font size",[])),fe=Ta(se(X=>F(!1,X),"plus","Increase font size",[])),te=Ta({dom:{tag:"div",classes:["tox-input-wrapper"]},components:[df.sketch({inputBehaviours:Oo([Qn.config({}),Tr(S,[Kg({onSetup:h,getApi:x},w),Yg({getApi:x},w)]),Tr("input-update-display-text",[Kt(dd,(X,ue)=>{Wo.setValue(X,ue.event.text)}),Kt(_o(),X=>{m.onAction(Wo.getValue(X))}),Kt(Tn(),X=>{m.onAction(Wo.getValue(X))})]),Dn.config({mode:"special",onEnter:X=>(A(Ze,!0,!0),R.some(!0)),onEscape:$,onUp:X=>(F(!0,!1),R.some(!0)),onDown:X=>(N(!0,!1),R.some(!0)),onLeft:(X,ue)=>(ue.cut(),R.none()),onRight:(X,ue)=>(ue.cut(),R.none())})])})],behaviours:Oo([er.config({}),Dn.config({mode:"special",onEnter:W,onSpace:W,onEscape:$}),Tr("input-wrapper-events",[Kt(Te(),X=>{Ie([le,fe],ue=>{const ye=St(ue.get(X).element.dom);Gf(ye)&&hb(ye)})})])])});return{dom:{tag:"div",classes:["tox-number-input"]},components:[le.asSpec(),te.asSpec(),fe.asSpec()],behaviours:Oo([er.config({}),Dn.config({mode:"flow",focusInside:qb.OnEnterOrSpaceMode,cycles:!1,selector:"button, .tox-input-wrapper",onEscape:X=>Gf(X.element)?R.none():(sd(X.element),R.some(!0))})])}})(e,r,(s=>{const l=()=>s.queryCommandValue("FontSize");return{updateInputValue:m=>_n(m,dd,{text:l()}),onAction:(m,g)=>s.execCommand("FontSize",!1,m,{skip_focus:!g}),getNewValue:(m,g)=>{i(m,["unsupportedLength","empty"]);const h=l(),x=i(m,["unsupportedLength","empty"]).or(i(h,["unsupportedLength","empty"])),w=x.map($=>$.value).getOr(16),S=Fx(s),A=x.map($=>$.unit).filter($=>$!=="").getOr(S),N=g(w,($=>{var W;return(W={em:{step:.1},cm:{step:.1},in:{step:.1},pc:{step:.1},ch:{step:.1},rem:{step:.1}}[$])!==null&&W!==void 0?W:{step:1}})(A).step),F=`${($=>$>=0)(N)?N:w}${A}`;return F!==h&&(($,W)=>{$.dispatch("FontSizeInputTextUpdate",W)})(s,{value:F}),F}}})(e)),fontfamily:(e,r)=>Uy(e,r,o(e),dA,"FontFamilyTextUpdate"),blocks:(e,r)=>Uy(e,r,cA(e),b3,"BlocksTextUpdate"),align:(e,r)=>Uy(e,r,Gh(e),pp,"AlignTextUpdate")},Nn=(e,r,s,l)=>{const m=(h=>{const x=h.toolbar,w=h.buttons;return x===!1?[]:x===void 0||x===!0?(S=>{const A=dt(pt,N=>{const F=Pt(N.items,$=>Vo(S,$)||Vo(Fo,$));return{name:N.name,items:F}});return Pt(A,N=>N.items.length>0)})(w):io(x)?(S=>{const A=S.split("|");return dt(A,N=>({items:N.trim().split(" ")}))})(x):(S=>co(S,A=>Vo(A,"name")&&Vo(A,"items")))(x)?x:(console.error("Toolbar type should be string, string[], boolean or ToolbarGroup[]"),[])})(r),g=dt(m,h=>{const x=ct(h.items,w=>w.trim().length===0?[]:((S,A,N,F,$,W)=>Xt(A,N.toLowerCase()).orThunk(()=>W.bind(se=>Gt(se,le=>Xt(A,le+N.toLowerCase())))).fold(()=>Xt(Fo,N.toLowerCase()).map(se=>se(S,$)),se=>se.type!=="grouptoolbarbutton"||F?((le,fe,te)=>Xt(en,le.type).fold(()=>(console.error("skipping button defined by",le),R.none()),X=>R.some(X(le,fe,te))))(se,$,S):(console.warn(`Ignoring the '${N}' toolbar button. Group toolbar buttons are only supported when using floating toolbar mode and cannot be nested.`),R.none())))(e,r.buttons,w,r.allowToolbarGroups,s,l).toArray());return{title:R.from(e.translate(h.name)),items:x}});return Pt(g,h=>h.items.length>0)},An=(e,r,s,l)=>{const m=r.mainUi.outerContainer,g=s.toolbar,h=s.buttons;if(co(g,io)){const x=g.map(w=>{const S={toolbar:w,buttons:h,allowToolbarGroups:s.allowToolbarGroups};return Nn(e,S,l,R.none())});Ja.setToolbars(m,x)}else Ja.setToolbar(m,Nn(e,s,l,R.none()))},Jn=Yl(),jn=Jn.os.isiOS()&&Jn.os.version.major<=12;var cn=Object.freeze({__proto__:null,render:(e,r,s,l,m)=>{const{mainUi:g,uiMotherships:h}=r,x=Sn(0),w=g.outerContainer;Ik(e);const S=St(m.targetNode),A=Sr(rr(S));Vp(S,g.mothership),((W,se,le)=>{qg(W)&&Vp(le.mainUi.mothership.element,le.popupUi.mothership),mh(se,le.dialogUi.mothership)})(e,A,r),e.on("SkinLoaded",()=>{Ja.setSidebar(w,s.sidebar,jx(e)),An(e,r,s,l),x.set(e.getWin().innerWidth),Ja.setMenubar(w,iA(e,s)),Ja.setViews(w,s.views),((W,se)=>{const{uiMotherships:le}=se,fe=W.dom;let te=W.getWin();const X=W.getDoc().documentElement,ue=Sn(kn(te.innerWidth,te.innerHeight)),ye=Sn(kn(X.offsetWidth,X.offsetHeight)),we=()=>{const no=ue.get();no.left===te.innerWidth&&no.top===te.innerHeight||(ue.set(kn(te.innerWidth,te.innerHeight)),K2(W))},Ye=()=>{const no=W.getDoc().documentElement,oo=ye.get();oo.left===no.offsetWidth&&oo.top===no.offsetHeight||(ye.set(kn(no.offsetWidth,no.offsetHeight)),K2(W))},Tt=no=>{((oo,Uo)=>{oo.dispatch("ScrollContent",Uo)})(W,no)};fe.bind(te,"resize",we),fe.bind(te,"scroll",Tt);const Qt=Qf(St(W.getBody()),"load",Ye);W.on("hide",()=>{Ie(le,no=>{Bn(no.element,"display","none")})}),W.on("show",()=>{Ie(le,no=>{Pr(no.element,"display")})}),W.on("NodeChange",Ye),W.on("remove",()=>{Qt.unbind(),fe.unbind(te,"resize",we),fe.unbind(te,"scroll",Tt),te=null})})(e,r)});const N=Ja.getSocket(w).getOrDie("Could not find expected socket element");if(jn){ji(N.element,{overflow:"scroll","-webkit-overflow-scrolling":"touch"});const W=((le,fe)=>{let te=null;return{cancel:()=>{Mo(te)||(clearTimeout(te),te=null)},throttle:(...X)=>{Mo(te)&&(te=setTimeout(()=>{te=null,le.apply(null,X)},20))}}})(()=>{e.dispatch("ScrollContent")}),se=Ul(N.element,"scroll",W.throttle);e.on("remove",se.unbind)}ew(e,r),e.addCommand("ToggleSidebar",(W,se)=>{Ja.toggleSidebar(w,se),e.dispatch("ToggleSidebar")}),e.addQueryValueHandler("ToggleSidebar",()=>{var W;return(W=Ja.whichSidebar(w))!==null&&W!==void 0?W:""}),e.addCommand("ToggleView",(W,se)=>{if(Ja.toggleView(w,se)){const le=w.element;g.mothership.broadcastOn([Bd()],{target:le}),Ie(h,fe=>{fe.broadcastOn([Bd()],{target:le})}),Mo(Ja.whichView(w))&&(e.focus(),e.nodeChanged(),Ja.refreshToolbar(w))}}),e.addQueryValueHandler("ToggleView",()=>{var W;return(W=Ja.whichView(w))!==null&&W!==void 0?W:""});const F=ey(e);F!==Vc.sliding&&F!==Vc.floating||e.on("ResizeWindow ResizeEditor ResizeContent",()=>{const W=e.getWin().innerWidth;W!==x.get()&&(Ja.refreshToolbar(r.mainUi.outerContainer),x.set(W))});const $={setEnabled:W=>{uy(r,!W)},isEnabled:()=>!Qn.isDisabled(w)};return{iframeContainer:N.element.dom,editorContainer:w.element.dom,api:$}}});const vn=e=>/^[0-9\.]+(|px)$/i.test(""+e)?R.some(parseInt(""+e,10)):R.none(),cr=e=>So(e)?e+"px":e,Qe=(e,r,s)=>{const l=r.filter(g=>ee>g);return l.or(m).getOr(e)},nt=e=>{const r=zx(e),s=Ax(e),l=K1(e);return vn(r).map(m=>Qe(m,s,l))},{ToolbarLocation:so,ToolbarMode:mo}=G4,yo=(e,r,s,l,m)=>{const{mainUi:g,uiMotherships:h}=s,x=Qb.DOM,w=kh(e),S=_h(e),A=K1(e).or(nt(e)),N=l.shared.header,F=N.isPositionedAtTop,$=ey(e),W=$===mo.sliding||$===mo.floating,se=Sn(!1),le=()=>se.get()&&!e.removed,fe=ye=>W?ye.fold(me(0),we=>we.components().length>1?Nt(we.components()[1].element):0):0,te=()=>{Ie(h,ye=>{ye.broadcastOn([Dg()],{})})},X=ye=>{if(!le())return;w||m.on(Ye=>{const Tt=A.getOrThunk(()=>{const Qt=vn(aa(ws(),"margin-left")).getOr(0);return Ga(ws())-Or(r).left+Qt});Bn(Ye.element,"max-width",Tt+"px")});const we=w?R.none():(()=>{if(w)return R.none();if(Or(g.outerContainer.element).left+Q(g.outerContainer.element)>=window.innerWidth-40||Ir(g.outerContainer.element,"width").isSome()){Bn(g.outerContainer.element,"position","absolute"),Bn(g.outerContainer.element,"left","0px"),Pr(g.outerContainer.element,"width");const Ye=Q(g.outerContainer.element);return R.some(Ye)}return R.none()})();W&&Ja.refreshToolbar(g.outerContainer),w||(Ye=>{m.on(Tt=>{const Qt=Ja.getToolbar(g.outerContainer),no=fe(Qt),oo=Fa(r),{top:Uo,left:pn}=((dr,jr)=>qg(dr)?jS(jr):R.none())(e,g.outerContainer.element).fold(()=>({top:F()?Math.max(oo.y-Nt(Tt.element)+no,0):oo.bottom,left:oo.x}),dr=>{var jr;const gs=Fa(dr),Vs=(jr=dr.dom.scrollTop)!==null&&jr!==void 0?jr:0,mr=Jo(dr,ws()),Bl=mr?Math.max(oo.y-Nt(Tt.element)+no,0):oo.y-gs.y+Vs-Nt(Tt.element)+no;return{top:F()?Bl:oo.bottom,left:mr?oo.x:oo.x-gs.x}}),Mn={position:"absolute",left:Math.round(pn)+"px",top:Math.round(Uo)+"px"},ar=Ye.map(dr=>{const jr=pa(),gs=window.innerWidth-(pn-jr.left);return{width:Math.max(Math.min(dr,gs),150)+"px"}}).getOr({});ji(g.outerContainer.element,{...Mn,...ar})})})(we),S&&m.on(ye),te()},ue=()=>!(w||!S||!le())&&m.get().exists(ye=>{const we=N.getDockingMode(),Ye=(Qt=>{switch(Y1(e)){case so.auto:const no=Ja.getToolbar(g.outerContainer),oo=fe(no),Uo=Nt(Qt.element)-oo,pn=Fa(r);if(pn.y>Uo)return"top";{const Mn=Lo(r),ar=Math.max(Mn.dom.scrollHeight,Nt(Mn));return pn.bottom{di.setModes(Qt,[Tt]),N.setDockingMode(Tt);const no=F()?ju.TopToBottom:ju.BottomToTop;Kn(Qt.element,oh,no)}),!0);var Tt});return{isVisible:le,isPositionedAtTop:F,show:()=>{se.set(!0),Bn(g.outerContainer.element,"display","flex"),x.addClass(e.getBody(),"mce-edit-focus"),Ie(h,ye=>{Pr(ye.element,"display")}),ue(),qg(e)?X(ye=>di.isDocked(ye)?di.reset(ye):di.refresh(ye)):X(di.refresh)},hide:()=>{se.set(!1),Bn(g.outerContainer.element,"display","none"),x.removeClass(e.getBody(),"mce-edit-focus"),Ie(h,ye=>{Bn(ye.element,"display","none")})},update:X,updateMode:()=>{ue()&&X(di.reset)},repositionPopups:te}},xn=(e,r)=>{const s=Fa(e);return{pos:r?s.y:s.bottom,bounds:s}};var Wn=Object.freeze({__proto__:null,render:(e,r,s,l,m)=>{const{mainUi:g}=r,h=ms(),x=St(m.targetNode),w=yo(e,x,r,l,h),S=q4(e);Pk(e);const A=()=>{if(h.isSet())return void w.show();h.set(Ja.getHeader(g.outerContainer).getOrDie());const F=Zx(e);qg(e)?(Vp(x,g.mothership),Vp(x,r.popupUi.mothership)):mh(F,g.mothership),mh(F,r.dialogUi.mothership),An(e,r,s,l),Ja.setMenubar(g.outerContainer,iA(e,s)),w.show(),(($,W,se,le)=>{const fe=Sn(xn(W,se.isPositionedAtTop())),te=we=>{const{pos:Ye,bounds:Tt}=xn(W,se.isPositionedAtTop()),{pos:Qt,bounds:no}=fe.get(),oo=Tt.height!==no.height||Tt.width!==no.width;fe.set({pos:Ye,bounds:Tt}),oo&&K2($,we),se.isVisible()&&(Qt!==Ye?se.update(di.reset):oo&&(se.updateMode(),se.repositionPopups()))};le||($.on("activate",se.show),$.on("deactivate",se.hide)),$.on("SkinLoaded ResizeWindow",()=>se.update(di.reset)),$.on("NodeChange keydown",we=>{requestAnimationFrame(()=>te(we))});let X=0;const ue=Ay(()=>se.update(di.refresh),33);$.on("ScrollWindow",()=>{const we=pa().left;we!==X&&(X=we,ue.throttle()),se.updateMode()}),qg($)&&$.on("ElementScroll",we=>{se.update(di.refresh)});const ye=vg();ye.set(Qf(St($.getBody()),"load",we=>te(we.raw))),$.on("remove",()=>{ye.clear()})})(e,x,w,S),e.nodeChanged()};e.on("show",A),e.on("hide",w.hide),S||(e.on("focus",A),e.on("blur",w.hide)),e.on("init",()=>{(e.hasFocus()||S)&&A()}),ew(e,r);const N={show:A,hide:w.hide,setEnabled:F=>{uy(r,!F)},isEnabled:()=>!Qn.isDisabled(g.outerContainer)};return{editorContainer:g.outerContainer.element.dom,api:N}}});const hr="contexttoolbar-hide",tr=(e,r)=>Kt(QC,(s,l)=>{const m=(g=>({hide:()=>$r(g,Sd()),getValue:()=>Wo.getValue(g)}))(e.get(s));r.onAction(m,l.event.buttonApi)}),Qa=(e,r)=>{const s=e.label.fold(()=>({}),g=>({"aria-label":g})),l=Ta(df.sketch({inputClasses:["tox-toolbar-textfield","tox-toolbar-nav-js"],data:e.initValue(),inputAttributes:s,selectOnFocus:!0,inputBehaviours:Oo([Dn.config({mode:"special",onEnter:g=>m.findPrimary(g).map(h=>(Qd(h),!0)),onLeft:(g,h)=>(h.cut(),R.none()),onRight:(g,h)=>(h.cut(),R.none())})])})),m=((g,h,x)=>{const w=dt(h,S=>Ta(((A,N,F)=>($=>$.type==="contextformtogglebutton")(N)?(($,W,se)=>{const{primary:le,...fe}=W.original,te=Sl(m0({...fe,type:"togglebutton",onAction:he}));return Ve(te,se,[tr($,W)])})(A,N,F):(($,W,se)=>{const{primary:le,...fe}=W.original,te=Sl(M2({...fe,type:"button",onAction:he}));return kt(te,se,[tr($,W)])})(A,N,F))(g,S,x)));return{asSpecs:()=>dt(w,S=>S.asSpec()),findPrimary:S=>Gt(h,(A,N)=>A.primary?R.from(w[N]).bind(F=>F.getOpt(S)).filter(Yo(Qn.isDisabled)):R.none())}})(l,e.commands,r);return[{title:R.none(),items:[l.asSpec()]},{title:R.none(),items:m.asSpecs()}]},En=(e,r,s)=>r.bottom-e.y>=s&&e.bottom-r.y>=s,Ur=e=>{const r=(s=>{const l=s.getBoundingClientRect();if(l.height<=0&&l.width<=0){const m=Xs(St(s.startContainer),s.startOffset).element;return(It(m)?rn(m):R.some(m)).filter(wt).map(g=>g.dom.getBoundingClientRect()).getOr(l)}return l})(e.selection.getRng());if(e.inline){const s=pa();return Ba(s.left+r.left,s.top+r.top,r.width,r.height)}{const s=ts(St(e.getBody()));return Ba(s.x+r.left,s.y+r.top,r.width,r.height)}},Zr=(e,r,s,l=0)=>{const m=cc(window),g=Fa(St(e.getContentAreaContainer())),h=J1(e)||t0(e)||oy(e),{x,width:w}=((S,A,N)=>{const F=Math.max(S.x+N,A.x);return{x:F,width:Math.min(S.right-N,A.right)-F}})(g,m,l);if(e.inline&&!h)return Ba(x,m.y,w,m.height);{const S=r.header.isPositionedAtTop(),{y:A,bottom:N}=((F,$,W,se,le,fe)=>{const te=St(F.getContainer()),X=vs(te,".tox-editor-header").getOr(te),ue=Fa(X),ye=ue.y>=$.bottom,we=se&&!ye;if(F.inline&&we)return{y:Math.max(ue.bottom+fe,W.y),bottom:W.bottom};if(F.inline&&!we)return{y:W.y,bottom:Math.min(ue.y-fe,W.bottom)};const Ye=le==="line"?Fa(te):$;return we?{y:Math.max(ue.bottom+fe,W.y),bottom:Math.min(Ye.bottom-fe,W.bottom)}:{y:Math.max(Ye.y+fe,W.y),bottom:Math.min(ue.y-fe,W.bottom)}})(e,g,m,S,s,l);return Ba(x,A,w,N-A)}},Cr={valignCentre:[],alignCentre:[],alignLeft:["tox-pop--align-left"],alignRight:["tox-pop--align-right"],right:["tox-pop--right"],left:["tox-pop--left"],bottom:["tox-pop--bottom"],top:["tox-pop--top"],inset:["tox-pop--inset"]},Kr={maxHeightFunction:wg(),maxWidthFunction:zk()},cl=e=>e==="node",Vn=(e,r,s,l,m)=>{const g=Ur(e),h=l.lastElement().exists(x=>Jo(s,x));return((x,w)=>{const S=x.selection.getRng(),A=Xs(St(S.startContainer),S.startOffset);return S.startContainer===S.endContainer&&S.startOffset===S.endOffset-1&&Jo(A.element,w)})(e,s)?h?sz:Ju:h?((x,w,S)=>{const A=Ir(x,"position");Bn(x,"position",w);const N=En(g,Fa(r),-20)&&!l.isReposition()?FO:sz;return A.each(F=>Bn(x,"position",F)),N})(r,l.getMode()):(l.getMode()==="fixed"?m.y+pa().top:m.y)+(Nt(r)+12)<=g.y?Ju:Fy},qr=(e,r,s,l)=>{const m=h=>(x,w,S,A,N)=>({...Vn(e,A,h,s,N)({...x,y:N.y,height:N.height},w,S,A,N),alwaysFit:!0}),g=h=>cl(l)?[m(h)]:[];return r?{onLtr:h=>[yi,Qi,Gs,vl,Wa,Nl].concat(g(h)),onRtl:h=>[yi,Gs,Qi,Wa,vl,Nl].concat(g(h))}:{onLtr:h=>[Nl,yi,vl,Qi,Wa,Gs].concat(g(h)),onRtl:h=>[Nl,yi,Wa,Gs,vl,Qi].concat(g(h))}},Fs=(e,r)=>{const s=Pt(r,g=>g.predicate(e.dom)),{pass:l,fail:m}=Co(s,g=>g.type==="contexttoolbar");return{contextToolbars:l,contextForms:m}},dl=(e,r)=>{const s={},l=[],m=[],g={},h={},x=Vt(e);return Ie(x,w=>{const S=e[w];S.type==="contextform"?((A,N)=>{const F=Sl(ka("ContextForm",JA,N));s[A]=F,F.launch.map($=>{g["form:"+A]={...N.launch,type:$.type==="contextformtogglebutton"?"togglebutton":"button",onAction:()=>{r(F)}}}),F.scope==="editor"?m.push(F):l.push(F),h[A]=F})(w,S):S.type==="contexttoolbar"&&((A,N)=>{var F;(F=N,ka("ContextToolbar",QA,F)).each($=>{N.scope==="editor"?m.push($):l.push($),h[A]=$})})(w,S)}),{forms:s,inNodeScope:l,inEditorScope:m,lookupTable:h,formNavigators:g}},Dl=un("forward-slide"),yc=un("backward-slide"),md=un("change-slide-event"),Rl="tox-pop--resizing",gd="tox-pop--transition",ul=(e,r,s,l)=>{const m=l.backstage,g=m.shared,h=Yl().deviceType.isTouch,x=ms(),w=ms(),S=ms(),A=yl((we=>{const Ye=Sn([]);return Rs.sketch({dom:{tag:"div",classes:["tox-pop"]},fireDismissalEventInstead:{event:"doNotDismissYet"},onShow:Tt=>{Ye.set([]),Rs.getContent(Tt).each(Qt=>{Pr(Qt.element,"visibility")}),rs(Tt.element,Rl),Pr(Tt.element,"width")},inlineBehaviours:Oo([Tr("context-toolbar-events",[Mu(Ni(),(Tt,Qt)=>{Qt.event.raw.propertyName==="width"&&(rs(Tt.element,Rl),Pr(Tt.element,"width"))}),Kt(md,(Tt,Qt)=>{const no=Tt.element;Pr(no,"width");const oo=Ga(no);Rs.setContent(Tt,Qt.event.contents),Jr(no,Rl);const Uo=Ga(no);Bn(no,"width",oo+"px"),Rs.getContent(Tt).each(pn=>{Qt.event.focus.bind(Mn=>(sd(Mn),gc(no))).orThunk(()=>(Dn.focusIn(pn),Ts(rr(no))))}),setTimeout(()=>{Bn(Tt.element,"width",Uo+"px")},0)}),Kt(Dl,(Tt,Qt)=>{Rs.getContent(Tt).each(no=>{Ye.set(Ye.get().concat([{bar:no,focus:Ts(rr(Tt.element))}]))}),_n(Tt,md,{contents:Qt.event.forwardContents,focus:R.none()})}),Kt(yc,(Tt,Qt)=>{ze(Ye.get()).each(no=>{Ye.set(Ye.get().slice(0,Ye.get().length-1)),_n(Tt,md,{contents:Tc(no.bar),focus:no.focus})})})]),Dn.config({mode:"special",onEscape:Tt=>ze(Ye.get()).fold(()=>we.onEscape(),Qt=>($r(Tt,yc),R.some(!0)))})]),lazySink:()=>Fr.value(we.sink)})})({sink:s,onEscape:()=>(e.focus(),R.some(!0))})),N=()=>{const we=S.get().getOr("node"),Ye=cl(we)?1:0;return Zr(e,g,we,Ye)},F=()=>!(e.removed||h()&&m.isContextMenuOpen()),$=()=>{if(F()){const we=N(),Ye=Rr(S.get(),"node")?((Tt,Qt)=>Qt.filter(no=>za(no)&&Ae(no)).map(ts).getOrThunk(()=>Ur(Tt)))(e,x.get()):Ur(e);return we.height<=0||!En(Ye,we,.01)}return!0},W=()=>{x.clear(),w.clear(),S.clear(),Rs.hide(A)},se=()=>{if(Rs.isOpen(A)){const we=A.element;Pr(we,"display"),$()?Bn(we,"display","none"):(w.set(0),Rs.reposition(A))}},le=we=>({dom:{tag:"div",classes:["tox-pop__dialog"]},components:[we],behaviours:Oo([Dn.config({mode:"acyclic"}),Tr("pop-dialog-wrap-events",[La(Ye=>{e.shortcuts.add("ctrl+F9","focus statusbar",()=>Dn.focusIn(Ye))}),od(Ye=>{e.shortcuts.remove("ctrl+F9")})])])}),fe=Ee(()=>dl(r,we=>{const Ye=te([we]);_n(A,Dl,{forwardContents:le(Ye)})})),te=we=>{const{buttons:Ye}=e.ui.registry.getAll(),Tt={...Ye,...fe().formNavigators},Qt=ey(e)===Vc.scrolling?Vc.scrolling:Vc.default,no=$e(dt(we,oo=>oo.type==="contexttoolbar"?((Uo,pn)=>Nn(e,{buttons:Uo,toolbar:pn.items,allowToolbarGroups:!1},l.backstage,R.some(["form:"])))(Tt,oo):((Uo,pn)=>Qa(Uo,pn))(oo,g.providers)));return Nk({type:Qt,uid:un("context-toolbar"),initGroups:no,onEscape:R.none,cyclicKeying:!0,providers:g.providers})},X=(we,Ye)=>{if(ye.cancel(),!F())return;const Tt=te(we),Qt=we[0].position,no=((Uo,pn)=>{const Mn=Uo==="node"?g.anchors.node(pn):g.anchors.cursor(),ar=((dr,jr,gs,Vs)=>jr==="line"?{bubble:au(12,0,Cr),layouts:{onLtr:()=>[pb],onRtl:()=>[Zf]},overrides:Kr}:{bubble:au(0,12,Cr,1/12),layouts:qr(dr,gs,Vs,jr),overrides:Kr})(e,Uo,h(),{lastElement:x.get,isReposition:()=>Rr(w.get(),0),getMode:()=>xl.getMode(s)});return Da(Mn,ar)})(Qt,Ye);S.set(Qt),w.set(1);const oo=A.element;Pr(oo,"display"),(Uo=>Rr(vr(Uo,x.get(),Jo),!0))(Ye)||(rs(oo,gd),xl.reset(s,A)),Rs.showWithinBounds(A,le(Tt),{anchor:no,transition:{classes:[gd],mode:"placement"}},()=>R.some(N())),Ye.fold(x.clear,x.set),$()&&Bn(oo,"display","none")};let ue=!1;const ye=Ay(()=>{!e.hasFocus()||e.removed||ue||(Di(A.element,gd)?ye.throttle():((we,Ye)=>{const Tt=St(Ye.getBody()),Qt=oo=>Jo(oo,Tt),no=St(Ye.selection.getNode());return(oo=>!Qt(oo)&&!Ce(Tt,oo))(no)?R.none():((oo,Uo,pn)=>{const Mn=Fs(oo,Uo);if(Mn.contextForms.length>0)return R.some({elem:oo,toolbars:[Mn.contextForms[0]]});{const ar=Fs(oo,pn);if(ar.contextForms.length>0)return R.some({elem:oo,toolbars:[ar.contextForms[0]]});if(Mn.contextToolbars.length>0||ar.contextToolbars.length>0){const dr=(jr=>{if(jr.length<=1)return jr;{const gs=br=>uo(jr,Ii=>Ii.position===br),Vs=br=>Pt(jr,Ii=>Ii.position===br),mr=gs("selection"),Bl=gs("node");if(mr||Bl){if(Bl&&mr){const br=Vs("node"),Ii=dt(Vs("selection"),ls=>({...ls,position:"node"}));return br.concat(Ii)}return Vs(mr?"selection":"node")}return Vs("line")}})(Mn.contextToolbars.concat(ar.contextToolbars));return R.some({elem:oo,toolbars:dr})}return R.none()}})(no,we.inNodeScope,we.inEditorScope).orThunk(()=>((oo,Uo,pn)=>oo(Uo)?R.none():_c(Uo,Mn=>{if(wt(Mn)){const{contextToolbars:ar,contextForms:dr}=Fs(Mn,pn.inNodeScope),jr=dr.length>0?dr:(gs=>{if(gs.length<=1)return gs;{const Vs=mr=>to(gs,Bl=>Bl.position===mr);return Vs("selection").orThunk(()=>Vs("node")).orThunk(()=>Vs("line")).map(mr=>mr.position).fold(()=>[],mr=>Pt(gs,Bl=>Bl.position===mr))}})(ar);return jr.length>0?R.some({elem:Mn,toolbars:jr}):R.none()}return R.none()},oo))(Qt,no,we))})(fe(),e).fold(W,we=>{X(we.toolbars,R.some(we.elem))}))},17);e.on("init",()=>{e.on("remove",W),e.on("ScrollContent ScrollWindow ObjectResized ResizeEditor longpress",se),e.on("click keyup focus SetContent",ye.throttle),e.on(hr,W),e.on("contexttoolbar-show",we=>{const Ye=fe();Xt(Ye.lookupTable,we.toolbarKey).each(Tt=>{X([Tt],ln(we.target!==e,we.target)),Rs.getContent(A).each(Dn.focusIn)})}),e.on("focusout",we=>{hx.setEditorTimeout(e,()=>{gc(s.element).isNone()&&gc(A.element).isNone()&&W()},0)}),e.on("SwitchMode",()=>{e.mode.isReadOnly()&&W()}),e.on("AfterProgressState",we=>{we.state?W():e.hasFocus()&&ye.throttle()}),e.on("dragstart",()=>{ue=!0}),e.on("dragend drop",()=>{ue=!1}),e.on("NodeChange",we=>{gc(A.element).fold(ye.throttle,he)})})},ng=(e,r)=>{const s=()=>{const l=r.getOptions(e),m=r.getCurrent(e).map(r.hash),g=ms();return dt(l,h=>({type:"togglemenuitem",text:r.display(h),onSetup:x=>{const w=A=>{A&&(g.on(N=>N.setActive(!1)),g.set(x)),x.setActive(A)};w(Rr(m,r.hash(h)));const S=r.watcher(e,h,w);return()=>{g.clear(),S()}},onAction:()=>r.setCurrent(e,h)}))};e.ui.registry.addMenuButton(r.name,{tooltip:r.text,icon:r.icon,fetch:l=>l(s()),onSetup:r.onToolbarSetup}),e.ui.registry.addNestedMenuItem(r.name,{type:"nestedmenuitem",text:r.text,getSubmenuItems:s,onSetup:r.onMenuSetup})},wu=e=>{ng(e,(r=>({name:"lineheight",text:"Line height",icon:"line-height",getOptions:ty,hash:s=>((l,m)=>i(l,["fixed","relative","empty"]).map(({value:g,unit:h})=>g+h))(s).getOr(s),display:Ze,watcher:(s,l,m)=>s.formatter.formatChanged("lineheight",m,!1,{value:l}).unbind,getCurrent:s=>R.from(s.queryCommandValue("LineHeight")),setCurrent:(s,l)=>s.execCommand("LineHeight",!1,l),onToolbarSetup:hc(r),onMenuSetup:hc(r)}))(e)),(r=>R.from(Mx(r)).map(s=>({name:"language",text:"Language",icon:"language",getOptions:me(s),hash:l=>tn(l.customCode)?l.code:`${l.code}/${l.customCode}`,display:l=>l.title,watcher:(l,m,g)=>{var h;return l.formatter.formatChanged("lang",g,!1,{value:m.code,customValue:(h=m.customCode)!==null&&h!==void 0?h:null}).unbind},getCurrent:l=>{const m=St(l.selection.getNode());return qs(m,g=>R.some(g).filter(wt).bind(h=>Ca(h,"lang").map(x=>({code:x,customCode:Ca(h,"data-mce-lang").getOrUndefined(),title:""}))))},setCurrent:(l,m)=>l.execCommand("Lang",!1,m),onToolbarSetup:l=>{const m=vg();return l.setActive(r.formatter.match("lang",{},void 0,!0)),m.set(r.formatter.formatChanged("lang",l.setActive,!0)),dw(m.clear,hc(r)(l))},onMenuSetup:hc(r)})))(e).each(r=>ng(e,r))},tm=e=>Jm(e,"NodeChange",r=>{r.setEnabled(e.queryCommandState("outdent")&&e.selection.isEditable())}),Nf=(e,r)=>s=>{s.setActive(r.get());const l=m=>{r.set(m.state),s.setActive(m.state)};return e.on("PastePlainTextToggle",l),dw(()=>e.off("PastePlainTextToggle",l),hc(e)(s))},Yh=(e,r)=>()=>{e.execCommand("mceToggleFormat",!1,r)},Xh=e=>{(r=>{(s=>{Om.each([{name:"bold",text:"Bold",icon:"bold"},{name:"italic",text:"Italic",icon:"italic"},{name:"underline",text:"Underline",icon:"underline"},{name:"strikethrough",text:"Strikethrough",icon:"strike-through"},{name:"subscript",text:"Subscript",icon:"subscript"},{name:"superscript",text:"Superscript",icon:"superscript"}],(l,m)=>{s.ui.registry.addToggleButton(l.name,{tooltip:l.text,icon:l.icon,onSetup:Th(s,l.name),onAction:Yh(s,l.name)})});for(let l=1;l<=6;l++){const m="h"+l;s.ui.registry.addToggleButton(m,{text:m.toUpperCase(),tooltip:"Heading "+l,onSetup:Th(s,m),onAction:Yh(s,m)})}})(r),(s=>{Om.each([{name:"copy",text:"Copy",action:"Copy",icon:"copy"},{name:"help",text:"Help",action:"mceHelp",icon:"help"},{name:"selectall",text:"Select all",action:"SelectAll",icon:"select-all"},{name:"newdocument",text:"New document",action:"mceNewDocument",icon:"new-document"},{name:"print",text:"Print",action:"mcePrint",icon:"print"}],l=>{s.ui.registry.addButton(l.name,{tooltip:l.text,icon:l.icon,onAction:Kl(s,l.action)})}),Om.each([{name:"cut",text:"Cut",action:"Cut",icon:"cut"},{name:"paste",text:"Paste",action:"Paste",icon:"paste"},{name:"removeformat",text:"Clear formatting",action:"RemoveFormat",icon:"remove-formatting"},{name:"remove",text:"Remove",action:"Delete",icon:"remove"},{name:"hr",text:"Horizontal line",action:"InsertHorizontalRule",icon:"horizontal-rule"}],l=>{s.ui.registry.addButton(l.name,{tooltip:l.text,icon:l.icon,onSetup:hc(s),onAction:Kl(s,l.action)})})})(r),(s=>{Om.each([{name:"blockquote",text:"Blockquote",action:"mceBlockQuote",icon:"quote"}],l=>{s.ui.registry.addToggleButton(l.name,{tooltip:l.text,icon:l.icon,onAction:Kl(s,l.action),onSetup:Th(s,l.name)})})})(r)})(e),(r=>{Om.each([{name:"newdocument",text:"New document",action:"mceNewDocument",icon:"new-document"},{name:"copy",text:"Copy",action:"Copy",icon:"copy",shortcut:"Meta+C"},{name:"selectall",text:"Select all",action:"SelectAll",icon:"select-all",shortcut:"Meta+A"},{name:"print",text:"Print...",action:"mcePrint",icon:"print",shortcut:"Meta+P"}],s=>{r.ui.registry.addMenuItem(s.name,{text:s.text,icon:s.icon,shortcut:s.shortcut,onAction:Kl(r,s.action)})}),Om.each([{name:"bold",text:"Bold",action:"Bold",icon:"bold",shortcut:"Meta+B"},{name:"italic",text:"Italic",action:"Italic",icon:"italic",shortcut:"Meta+I"},{name:"underline",text:"Underline",action:"Underline",icon:"underline",shortcut:"Meta+U"},{name:"strikethrough",text:"Strikethrough",action:"Strikethrough",icon:"strike-through"},{name:"subscript",text:"Subscript",action:"Subscript",icon:"subscript"},{name:"superscript",text:"Superscript",action:"Superscript",icon:"superscript"},{name:"removeformat",text:"Clear formatting",action:"RemoveFormat",icon:"remove-formatting"},{name:"cut",text:"Cut",action:"Cut",icon:"cut",shortcut:"Meta+X"},{name:"paste",text:"Paste",action:"Paste",icon:"paste",shortcut:"Meta+V"},{name:"hr",text:"Horizontal line",action:"InsertHorizontalRule",icon:"horizontal-rule"}],s=>{r.ui.registry.addMenuItem(s.name,{text:s.text,icon:s.icon,shortcut:s.shortcut,onSetup:hc(r),onAction:Kl(r,s.action)})}),r.ui.registry.addMenuItem("codeformat",{text:"Code",icon:"sourcecode",onSetup:hc(r),onAction:Yh(r,"code")})})(e)},qc=(e,r)=>Jm(e,"Undo Redo AddUndo TypingUndo ClearUndos SwitchMode",s=>{s.setEnabled(!e.mode.isReadOnly()&&e.undoManager[r]())}),jk=e=>Jm(e,"VisualAid",r=>{r.setActive(e.hasVisual)}),Ks=(e,r)=>{(s=>{Ie([{name:"alignleft",text:"Align left",cmd:"JustifyLeft",icon:"align-left"},{name:"aligncenter",text:"Align center",cmd:"JustifyCenter",icon:"align-center"},{name:"alignright",text:"Align right",cmd:"JustifyRight",icon:"align-right"},{name:"alignjustify",text:"Justify",cmd:"JustifyFull",icon:"align-justify"}],l=>{s.ui.registry.addToggleButton(l.name,{tooltip:l.text,icon:l.icon,onAction:Kl(s,l.cmd),onSetup:Th(s,l.name)})}),s.ui.registry.addButton("alignnone",{tooltip:"No alignment",icon:"align-none",onSetup:hc(s),onAction:Kl(s,"JustifyNone")})})(e),Xh(e),((s,l)=>{((m,g)=>{const h=gp(0,g,Gh(m));m.ui.registry.addNestedMenuItem("align",{text:g.shared.providers.translate("Align"),onSetup:hc(m),getSubmenuItems:()=>h.items.validateItems(h.getStyleItems())})})(s,l),((m,g)=>{const h=gp(0,g,o(m));m.ui.registry.addNestedMenuItem("fontfamily",{text:g.shared.providers.translate("Fonts"),onSetup:hc(m),getSubmenuItems:()=>h.items.validateItems(h.getStyleItems())})})(s,l),((m,g)=>{const h={type:"advanced",...g.styles},x=gp(0,g,O(m,h));m.ui.registry.addNestedMenuItem("styles",{text:"Formats",onSetup:hc(m),getSubmenuItems:()=>x.items.validateItems(x.getStyleItems())})})(s,l),((m,g)=>{const h=gp(0,g,cA(m));m.ui.registry.addNestedMenuItem("blocks",{text:"Blocks",onSetup:hc(m),getSubmenuItems:()=>h.items.validateItems(h.getStyleItems())})})(s,l),((m,g)=>{const h=gp(0,g,E(m));m.ui.registry.addNestedMenuItem("fontsize",{text:"Font sizes",onSetup:hc(m),getSubmenuItems:()=>h.items.validateItems(h.getStyleItems())})})(s,l)})(e,r),(s=>{(l=>{l.ui.registry.addMenuItem("undo",{text:"Undo",icon:"undo",shortcut:"Meta+Z",onSetup:qc(l,"hasUndo"),onAction:Kl(l,"undo")}),l.ui.registry.addMenuItem("redo",{text:"Redo",icon:"redo",shortcut:"Meta+Y",onSetup:qc(l,"hasRedo"),onAction:Kl(l,"redo")})})(s),(l=>{l.ui.registry.addButton("undo",{tooltip:"Undo",icon:"undo",enabled:!1,onSetup:qc(l,"hasUndo"),onAction:Kl(l,"undo")}),l.ui.registry.addButton("redo",{tooltip:"Redo",icon:"redo",enabled:!1,onSetup:qc(l,"hasRedo"),onAction:Kl(l,"redo")})})(s)})(e),(s=>{(x=>{x.addCommand("mceApplyTextcolor",(w,S)=>{((A,N,F)=>{A.undoManager.transact(()=>{A.focus(),A.formatter.apply(N,{value:F}),A.nodeChanged()})})(x,w,S)}),x.addCommand("mceRemoveTextcolor",w=>{((S,A)=>{S.undoManager.transact(()=>{S.focus(),S.formatter.remove(A,{value:null},void 0,!0),S.nodeChanged()})})(x,w)})})(s);const l=TE(s),m=uO(s),g=Sn(l),h=Sn(m);Pd(s,"forecolor","forecolor",g),Pd(s,"backcolor","hilitecolor",h),pw(s,"forecolor","forecolor","Text color",g),pw(s,"backcolor","hilitecolor","Background color",h)})(e),(s=>{(l=>{l.ui.registry.addButton("visualaid",{tooltip:"Visual aids",text:"Visual aids",onAction:Kl(l,"mceToggleVisualAid")})})(s),(l=>{l.ui.registry.addToggleMenuItem("visualaid",{text:"Visual aids",onSetup:jk(l),onAction:Kl(l,"mceToggleVisualAid")})})(s)})(e),(s=>{(l=>{l.ui.registry.addButton("outdent",{tooltip:"Decrease indent",icon:"outdent",onSetup:tm(l),onAction:Kl(l,"outdent")}),l.ui.registry.addButton("indent",{tooltip:"Increase indent",icon:"indent",onSetup:hc(l),onAction:Kl(l,"indent")})})(s)})(e),wu(e),(s=>{const l=Sn(Hx(s)),m=()=>s.execCommand("mceTogglePlainTextPaste");s.ui.registry.addToggleButton("pastetext",{active:!1,icon:"paste-text",tooltip:"Paste as text",onAction:m,onSetup:Nf(s,l)}),s.ui.registry.addToggleMenuItem("pastetext",{text:"Paste as text",icon:"paste-text",onAction:m,onSetup:Nf(s,l)})})(e)},Dm=e=>io(e)?e.split(/[ ,]/):e,Mf=e=>r=>r.options.get(e),Zy=Mf("contextmenu_never_use_native"),v3=Mf("contextmenu_avoid_overlap"),x3=e=>{const r=e.ui.registry.getAll().contextMenus,s=e.options.get("contextmenu");return e.options.isSet("contextmenu")?s:Pt(s,l=>Vo(r,l))},qy=(e,r)=>({type:"makeshift",x:e,y:r}),uA=e=>e.type==="longpress"||e.type.indexOf("touch")===0,Vk=(e,r)=>r.type==="contextmenu"||r.type==="longpress"?e.inline?(s=>{if(uA(s)){const l=s.touches[0];return qy(l.pageX,l.pageY)}return qy(s.pageX,s.pageY)})(r):((s,l)=>{const m=Qb.DOM.getPos(s);return((g,h,x)=>qy(g.x+h,g.y+x))(l,m.x,m.y)})(e.getContentAreaContainer(),(s=>{if(uA(s)){const l=s.touches[0];return qy(l.clientX,l.clientY)}return qy(s.clientX,s.clientY)})(r)):$k(e),$k=e=>({type:"selection",root:St(e.selection.getNode())}),Df=(e,r,s)=>{switch(s){case"node":return(l=>({type:"node",node:R.some(St(l.selection.getNode())),root:St(l.getBody())}))(e);case"point":return Vk(e,r);case"selection":return $k(e)}},uv=(e,r,s,l,m,g)=>{const h=s(),x=Df(e,r,g);Ny(h,Oc.CLOSE_ON_EXECUTE,l,{isHorizontalMenu:!1,search:R.none()}).map(w=>{r.preventDefault(),Rs.showMenuAt(m,{anchor:x},{menu:{markers:cf("normal")},data:w})})},mA={onLtr:()=>[yi,Qi,Gs,vl,Wa,Nl,Ju,Fy,J0,ck,X0,lk],onRtl:()=>[yi,Gs,Qi,Wa,vl,Nl,Ju,Fy,X0,lk,J0,ck]},gA={valignCentre:[],alignCentre:[],alignLeft:["tox-pop--align-left"],alignRight:["tox-pop--align-right"],right:["tox-pop--right"],left:["tox-pop--left"],bottom:["tox-pop--bottom"],top:["tox-pop--top"]},Uk=(e,r,s,l,m,g)=>{const h=Yl(),x=h.os.isiOS(),w=h.os.isMacOS(),S=h.os.isAndroid(),A=h.deviceType.isTouch(),N=()=>{const F=s();(($,W,se,le,fe,te,X)=>{const ue=((ye,we,Ye)=>{const Tt=Df(ye,we,Ye);return{bubble:au(0,Ye==="point"?12:0,gA),layouts:mA,overrides:{maxWidthFunction:zk(),maxHeightFunction:wg()},...Tt}})($,W,te);Ny(se,Oc.CLOSE_ON_EXECUTE,le,{isHorizontalMenu:!0,search:R.none()}).map(ye=>{W.preventDefault();const we=X?Gl.HighlightMenuAndItem:Gl.HighlightNone;Rs.showMenuWithinBounds(fe,{anchor:ue},{menu:{markers:cf("normal"),highlightOnOpen:we},data:ye,type:"horizontal"},()=>R.some(Zr($,le.shared,te==="node"?"node":"selection"))),$.dispatch(hr)})})(e,r,F,l,m,g,!(S||x||w&&A))};if((w||x)&&g!=="node"){const F=()=>{($=>{const W=$.selection.getRng(),se=()=>{hx.setEditorTimeout($,()=>{$.selection.setRng(W)},10),te()};$.once("touchend",se);const le=X=>{X.preventDefault(),X.stopImmediatePropagation()};$.on("mousedown",le,!0);const fe=()=>te();$.once("longpresscancel",fe);const te=()=>{$.off("touchend",se),$.off("longpresscancel",fe),$.off("mousedown",le)}})(e),N()};(($,W)=>{const se=$.selection;if(se.isCollapsed()||W.touches.length<1)return!1;{const le=W.touches[0],fe=se.getRng();return b1($.getWin(),Hp.domRange(fe)).exists(te=>te.left<=le.clientX&&te.right>=le.clientX&&te.top<=le.clientY&&te.bottom>=le.clientY)}})(e,r)?F():(e.once("selectionchange",F),e.once("touchend",()=>e.off("selectionchange",F)))}else N()},rg=e=>io(e)?e==="|":e.type==="separator",Zk={type:"separator"},w3=e=>{const r=s=>({text:s.text,icon:s.icon,enabled:s.enabled,shortcut:s.shortcut});if(io(e))return e;switch(e.type){case"separator":return Zk;case"submenu":return{type:"nestedmenuitem",...r(e),getSubmenuItems:()=>{const l=e.getSubmenuItems();return io(l)?l:dt(l,w3)}};default:const s=e;return{type:"menuitem",...r(s),onAction:Dt(s.onAction)}}},k3=(e,r)=>{if(r.length===0)return e;const s=ze(e).filter(l=>!rg(l)).fold(()=>[],l=>[Zk]);return e.concat(s).concat(r).concat([Zk])},_3=(e,r)=>!(s=>s.type==="longpress"||Vo(s,"touches"))(r)&&(r.button!==2||r.target===e.getBody()&&r.pointerType===""),pA=(e,r)=>_3(e,r)?e.selection.getStart(!0):r.target,At=(e,r,s)=>{const l=Yl().deviceType.isTouch,m=yl(Rs.sketch({dom:{tag:"div"},lazySink:r,onEscape:()=>e.focus(),onShow:()=>s.setContextMenuState(!0),onHide:()=>s.setContextMenuState(!1),fireDismissalEventInstead:{},inlineBehaviours:Oo([Tr("dismissContextMenu",[Kt(Ou(),(x,w)=>{Lr.close(x),e.focus()})])])})),g=()=>Rs.hide(m),h=x=>{if(Zy(e)&&x.preventDefault(),((S,A)=>A.ctrlKey&&!Zy(S))(e,x)||(S=>x3(S).length===0)(e))return;const w=((S,A)=>{const N=v3(S),F=_3(S,A)?"selection":"point";if(ja(N)){const $=pA(S,A);return Nh(St($),N)?"node":F}return F})(e,x);(l()?Uk:uv)(e,x,()=>{const S=pA(e,x),A=e.ui.registry.getAll(),N=x3(e);return((F,$,W)=>{const se=zo($,(le,fe)=>Xt(F,fe.toLowerCase()).map(te=>{const X=te.update(W);if(io(X)&&ja(Ha(X)))return k3(le,X.split(" "));if(ko(X)&&X.length>0){const ue=dt(X,w3);return k3(le,ue)}return le}).getOrThunk(()=>le.concat([fe])),[]);return se.length>0&&rg(se[se.length-1])&&se.pop(),se})(A.contextMenus,N,S)},s,m,w)};e.on("init",()=>{const x="ResizeEditor ScrollContent ScrollWindow longpresscancel"+(l()?"":" ResizeWindow");e.on(x,g),e.on("longpress contextmenu",h)})},On=Ui([{offset:["x","y"]},{absolute:["x","y"]},{fixed:["x","y"]}]),nr=e=>r=>r.translate(-e.left,-e.top),$a=e=>r=>r.translate(e.left,e.top),es=e=>(r,s)=>zo(e,(l,m)=>m(l),kn(r,s)),Ls=(e,r,s)=>e.fold(es([$a(s),nr(r)]),es([nr(r)]),es([])),xs=(e,r,s)=>e.fold(es([$a(s)]),es([]),es([$a(r)])),xi=(e,r,s)=>e.fold(es([]),es([nr(s)]),es([$a(r),nr(s)])),Jh=(e,r,s)=>{const l=e.fold((m,g)=>({position:R.some("absolute"),left:R.some(m+"px"),top:R.some(g+"px")}),(m,g)=>({position:R.some("absolute"),left:R.some(m-s.left+"px"),top:R.some(g-s.top+"px")}),(m,g)=>({position:R.some("fixed"),left:R.some(m+"px"),top:R.some(g+"px")}));return{right:R.none(),bottom:R.none(),...l}},C3=(e,r,s,l)=>{const m=(g,h)=>(x,w)=>{const S=g(r,s,l);return h(x.getOr(S.left),w.getOr(S.top))};return e.fold(m(xi,mv),m(xs,Qh),m(Ls,gv))},mv=On.offset,Qh=On.absolute,gv=On.fixed,B5=(e,r)=>{const s=Ma(e,r);return tn(s)?NaN:parseInt(s,10)},n6=(e,r,s,l,m,g)=>{const h=((S,A,N,F)=>(($,W)=>{const se=$.element,le=B5(se,W.leftAttr),fe=B5(se,W.topAttr);return isNaN(le)||isNaN(fe)?R.none():R.some(kn(le,fe))})(S,A).fold(()=>N,$=>gv($.left+F.left,$.top+F.top)))(e,r,s,l),x=r.mustSnap?r6(e,r,h,m,g):a6(e,r,h,m,g),w=Ls(h,m,g);return((S,A,N)=>{const F=S.element;Kn(F,A.leftAttr,N.left+"px"),Kn(F,A.topAttr,N.top+"px")})(e,r,w),x.fold(()=>({coord:gv(w.left,w.top),extra:R.none()}),S=>({coord:S.output,extra:S.extra}))},F5=(e,r,s,l)=>Gt(e,m=>{const g=m.sensor;return((x,w,S,A,N,F)=>{const $=xs(x,N,F),W=xs(w,N,F);return Math.abs($.left-W.left)<=S&&Math.abs($.top-W.top)<=A})(r,g,m.range.left,m.range.top,s,l)?R.some({output:C3(m.output,r,s,l),extra:m.extra}):R.none()}),r6=(e,r,s,l,m)=>{const g=r.getSnapPoints(e);return F5(g,s,l,m).orThunk(()=>zo(g,(x,w)=>{const S=w.sensor,A=((N,F,$,W,se,le)=>{const fe=xs(N,se,le),te=xs(F,se,le),X=Math.abs(fe.left-te.left),ue=Math.abs(fe.top-te.top);return kn(X,ue)})(s,S,w.range.left,w.range.top,l,m);return x.deltas.fold(()=>({deltas:R.some(A),snap:R.some(w)}),N=>(A.left+A.top)/2<=(N.left+N.top)/2?{deltas:R.some(A),snap:R.some(w)}:x)},{deltas:R.none(),snap:R.none()}).snap.map(x=>({output:C3(x.output,s,l,m),extra:x.extra})))},a6=(e,r,s,l,m)=>{const g=r.getSnapPoints(e);return F5(g,s,l,m)};var s6=Object.freeze({__proto__:null,snapTo:(e,r,s,l)=>{const m=r.getTarget(e.element);if(r.repositionTarget){const g=Ne(e.element),h=pa(g),x=Tz(m),w=((A,N,F)=>({coord:C3(A.output,A.output,N,F),extra:A.extra}))(l,h,x),S=Jh(w.coord,0,x);go(m,S)}}});const l5="data-initial-z-index",L5=(e,r)=>{e.getSystem().addToGui(r),(s=>{rn(s.element).filter(wt).each(l=>{Ir(l,"z-index").each(m=>{Kn(l,l5,m)}),Bn(l,"z-index",aa(s.element,"z-index"))})})(r)},i6=e=>{(r=>{rn(r.element).filter(wt).each(s=>{Ca(s,l5).fold(()=>Pr(s,"z-index"),l=>Bn(s,"z-index",l)),xa(s,l5)})})(e),e.getSystem().removeFromGui(e)},I5=(e,r,s)=>e.getSystem().build(Ku.sketch({dom:{styles:{left:"0px",top:"0px",width:"100%",height:"100%",position:"fixed","z-index":"1000000000000000"},classes:[r]},events:s}));var l6=gl("snaps",[Yt("getSnapPoints"),Hr("onSensor"),Yt("leftAttr"),Yt("topAttr"),ft("lazyViewport",Ua),ft("mustSnap",!1)]);const c5=[ft("useFixed",Bo),Yt("blockerClass"),ft("getTarget",Ze),ft("onDrag",he),ft("repositionTarget",!0),ft("onDrop",he),hs("getBounds",Ua),l6],c6=e=>{return(r=Ir(e,"left"),s=Ir(e,"top"),l=Ir(e,"position"),r.isSome()&&s.isSome()&&l.isSome()?R.some(((m,g,h)=>(h==="fixed"?gv:mv)(parseInt(m,10),parseInt(g,10)))(r.getOrDie(),s.getOrDie(),l.getOrDie())):R.none()).getOrThunk(()=>{const m=Or(e);return Qh(m.left,m.top)});var r,s,l},P5=(e,r)=>({bounds:e.getBounds(),height:ho(r.element),width:Q(r.element)}),d5=(e,r,s,l,m)=>{const g=s.update(l,m),h=s.getStartData().getOrThunk(()=>P5(r,e));g.each(x=>{((w,S,A,N)=>{const F=S.getTarget(w.element);if(S.repositionTarget){const $=Ne(w.element),W=pa($),se=Tz(F),le=c6(F),fe=((X,ue,ye,we,Ye,Tt,Qt)=>((no,oo,Uo,pn,Mn)=>{const ar=Mn.bounds,dr=xs(oo,Uo,pn),jr=mc(dr.left,ar.x,ar.x+ar.width-Mn.width),gs=mc(dr.top,ar.y,ar.y+ar.height-Mn.height),Vs=Qh(jr,gs);return oo.fold(()=>{const mr=xi(Vs,Uo,pn);return mv(mr.left,mr.top)},me(Vs),()=>{const mr=Ls(Vs,Uo,pn);return gv(mr.left,mr.top)})})(0,ue.fold(()=>{const no=(oo=ye,Uo=Tt.left,pn=Tt.top,oo.fold((ar,dr)=>mv(ar+Uo,dr+pn),(ar,dr)=>Qh(ar+Uo,dr+pn),(ar,dr)=>gv(ar+Uo,dr+pn)));var oo,Uo,pn;const Mn=Ls(no,we,Ye);return gv(Mn.left,Mn.top)},no=>{const oo=n6(X,no,ye,Tt,we,Ye);return oo.extra.each(Uo=>{no.onSensor(X,Uo)}),oo.coord}),we,Ye,Qt))(w,S.snaps,le,W,se,N,A),te=Jh(fe,0,se);go(F,te)}S.onDrag(w,F,N)})(e,r,h,x)})},H5=(e,r,s,l)=>{r.each(i6),s.snaps.each(g=>{((h,x)=>{((w,S)=>{const A=w.element;xa(A,S.leftAttr),xa(A,S.topAttr)})(h,x)})(e,g)});const m=s.getTarget(e.element);l.reset(),s.onDrop(e,m)},u5=e=>(r,s)=>{const l=m=>{s.setStartData(P5(r,m))};return qa([Kt(zu(),m=>{s.getStartData().each(()=>l(m))}),...e(r,s,l)])};var d6=Object.freeze({__proto__:null,getData:e=>R.from(kn(e.x,e.y)),getDelta:(e,r)=>kn(r.left-e.left,r.top-e.top)});const j5=(e,r,s)=>[Kt(ai(),(l,m)=>{if(m.event.raw.button!==0)return;m.stop();const g=()=>H5(l,R.some(w),e,r),h=hC(g,200),x={drop:g,delayDrop:h.schedule,forceDrop:g,move:S=>{h.cancel(),d5(l,e,r,d6,S)}},w=I5(l,e.blockerClass,(S=>qa([Kt(ai(),S.forceDrop),Kt(J(),S.drop),Kt(z(),(A,N)=>{S.move(N.event)}),Kt(H(),S.delayDrop)]))(x));s(l),L5(l,w)})],u6=[...c5,as("dragger",{handlers:u5(j5)})];var V5=Object.freeze({__proto__:null,getData:e=>{const r=e.raw.touches;return r.length===1?(s=>{const l=s[0];return R.some(kn(l.clientX,l.clientY))})(r):R.none()},getDelta:(e,r)=>kn(r.left-e.left,r.top-e.top)});const $5=(e,r,s)=>{const l=ms(),m=g=>{H5(g,l.get(),e,r),l.clear()};return[Kt(Ws(),(g,h)=>{h.stop();const x=()=>m(g),w={drop:x,delayDrop:he,forceDrop:x,move:A=>{d5(g,e,r,V5,A)}},S=I5(g,e.blockerClass,(A=>qa([Kt(Ws(),A.forceDrop),Kt(Hl(),A.drop),Kt(_d(),A.drop),Kt(ed(),(N,F)=>{A.move(F.event)})]))(w));l.set(S),s(g),L5(g,S)}),Kt(ed(),(g,h)=>{h.stop(),d5(g,e,r,V5,h.event)}),Kt(Hl(),(g,h)=>{h.stop(),m(g)}),Kt(_d(),m)]},m6=u6,g6=[...c5,as("dragger",{handlers:u5($5)})],p6=[...c5,as("dragger",{handlers:u5((e,r,s)=>[...j5(e,r,s),...$5(e,r,s)])})];var f6=Object.freeze({__proto__:null,mouse:m6,touch:g6,mouseOrTouch:p6}),h6=Object.freeze({__proto__:null,init:()=>{let e=R.none(),r=R.none();const s=me({});return Ia({readState:s,reset:()=>{e=R.none(),r=R.none()},update:(l,m)=>l.getData(m).bind(g=>((h,x)=>{const w=e.map(S=>h.getDelta(S,x));return e=R.some(x),w})(l,g)),getStartData:()=>r,setStartData:l=>{r=R.some(l)}})}});const pv=Fp({branchKey:"mode",branches:f6,name:"dragging",active:{events:(e,r)=>e.dragger.handlers(e,r)},extra:{snap:e=>({sensor:e.sensor,range:e.range,output:e.output,extra:R.from(e.extra)})},state:h6,apis:s6}),U5=(e,r,s,l,m,g)=>e.fold(()=>pv.snap({sensor:Qh(s-20,l-20),range:kn(m,g),output:Qh(R.some(s),R.some(l)),extra:{td:r}}),h=>{const x=s-20,w=l-20,S=h.element.dom.getBoundingClientRect();return pv.snap({sensor:Qh(x,w),range:kn(40,40),output:Qh(R.some(s-S.width/2),R.some(l-S.height/2)),extra:{td:r}})}),Z5=(e,r,s)=>({getSnapPoints:e,leftAttr:"data-drag-left",topAttr:"data-drag-top",onSensor:(l,m)=>{const g=m.td;((h,x)=>h.exists(w=>Jo(w,x)))(r.get(),g)||(r.set(g),s(g))},mustSnap:!0}),q5=e=>Ta(wl.sketch({dom:{tag:"div",classes:["tox-selector"]},buttonBehaviours:Oo([pv.config({mode:"mouseOrTouch",blockerClass:"blocker",snaps:e}),Cy.config({})]),eventOrder:{mousedown:["dragging","alloy.base.behaviour"],touchstart:["dragging","alloy.base.behaviour"]}})),b6=(e,r)=>{const s=Sn([]),l=Sn([]),m=Sn(!1),g=ms(),h=ms(),x=te=>{const X=ts(te);return U5(N.getOpt(r),te,X.x,X.y,X.width,X.height)},w=te=>{const X=ts(te);return U5(F.getOpt(r),te,X.right,X.bottom,X.width,X.height)},S=Z5(()=>dt(s.get(),te=>x(te)),g,te=>{h.get().each(X=>{e.dispatch("TableSelectorChange",{start:te,finish:X})})}),A=Z5(()=>dt(l.get(),te=>w(te)),h,te=>{g.get().each(X=>{e.dispatch("TableSelectorChange",{start:X,finish:te})})}),N=q5(S),F=q5(A),$=yl(N.asSpec()),W=yl(F.asSpec()),se=(te,X,ue,ye)=>{const we=ue(X);pv.snapTo(te,we),((Ye,Tt,Qt,no)=>{const oo=Tt.dom.getBoundingClientRect();Pr(Ye.element,"display");const Uo=Ho(St(e.getBody())).dom.innerHeight,pn=oo[ye]<0,Mn=((ar,dr)=>ar[ye]>dr)(oo,Uo);(pn||Mn)&&Bn(Ye.element,"display","none")})(te,X)},le=te=>se($,te,x,"top"),fe=te=>se(W,te,w,"bottom");Yl().deviceType.isTouch()&&(e.on("TableSelectionChange",te=>{m.get()||(ym(r,$),ym(r,W),m.set(!0)),g.set(te.start),h.set(te.finish),te.otherCells.each(X=>{s.set(X.upOrLeftCells),l.set(X.downOrRightCells),le(te.start),fe(te.finish)})}),e.on("ResizeEditor ResizeWindow ScrollContent",()=>{g.get().each(le),h.get().each(fe)}),e.on("TableSelectionClear",()=>{m.get()&&(id($),id(W),m.set(!1)),g.clear(),h.clear()}))},y6=(e,r,s)=>{var l;const m=(l=r.delimiter)!==null&&l!==void 0?l:"›";return{dom:{tag:"div",classes:["tox-statusbar__path"],attributes:{role:"navigation"}},behaviours:Oo([Dn.config({mode:"flow",selector:"div[role=button]"}),Qn.config({disabled:s.isDisabled}),Wi(),Bs.config({}),fr.config({}),Tr("elementPathEvents",[La((g,h)=>{e.shortcuts.add("alt+F11","focus statusbar elementpath",()=>Dn.focusIn(g)),e.on("NodeChange",x=>{const w=(A=>{const N=[];let F=A.length;for(;F-- >0;){const W=A[F];if(W.nodeType===1&&($=W).nodeName!=="BR"&&!$.getAttribute("data-mce-bogus")&&$.getAttribute("data-mce-type")!=="bookmark"){const se=dO(e,W);if(se.isDefaultPrevented()||N.push({name:se.name,element:W}),se.isPropagationStopped())break}}var $;return N})(x.parents),S=w.length>0?zo(w,(A,N,F)=>{const $=((W,se,le)=>wl.sketch({dom:{tag:"div",classes:["tox-statusbar__path-item"],attributes:{"data-index":le,"aria-level":le+1}},components:[Ya(W)],action:fe=>{e.focus(),e.selection.select(se),e.nodeChanged()},buttonBehaviours:Oo([my(s.isDisabled),Wi()])}))(N.name,N.element,F);return F===0?A.concat([$]):A.concat([{dom:{tag:"div",classes:["tox-statusbar__path-divider"],attributes:{"aria-hidden":!0}},components:[Ya(` ${m} `)]},$])},[]):[];fr.set(g,S)})})])]),components:[]}};var Wy;(function(e){e[e.None=0]="None",e[e.Both=1]="Both",e[e.Vertical=2]="Vertical"})(Wy||(Wy={}));const W5=(e,r,s)=>{const l=St(e.getContainer()),m=((g,h,x,w,S)=>{const A={height:Qe(w+h.top,G1(g),vh(g))};return x===Wy.Both&&(A.width=Qe(S+h.left,Ax(g),K1(g))),A})(e,r,s,Nt(l),Ga(l));$o(m,(g,h)=>{So(g)&&Bn(l,h,cr(g))}),(g=>{g.dispatch("ResizeEditor")})(e)},fA=(e,r,s,l)=>{const m=kn(20*s,20*l);return W5(e,m,r),R.some(!0)},v6=(e,r)=>{const s=()=>{const l=[],m=r2(e),g=Px(e),h=wh(e)||e.hasPlugin("wordcount");return g&&l.push(y6(e,{},r)),m&&l.push((()=>{const x=h0("Alt+0");return{dom:{tag:"div",classes:["tox-statusbar__help-text"]},components:[Ya(jc.translate(["Press {0} for help",x]))]}})()),h&&l.push((()=>{const x=[];return e.hasPlugin("wordcount")&&x.push(((w,S)=>{const A=(N,F,$)=>fr.set(N,[Ya(S.translate(["{0} "+$,F[$]]))]);return wl.sketch({dom:{tag:"button",classes:["tox-statusbar__wordcount"]},components:[],buttonBehaviours:Oo([my(S.isDisabled),Wi(),Bs.config({}),fr.config({}),Wo.config({store:{mode:"memory",initialValue:{mode:"words",count:{words:0,characters:0}}}}),Tr("wordcount-events",[Cc(N=>{const F=Wo.getValue(N),$=F.mode==="words"?"characters":"words";Wo.setValue(N,{mode:$,count:F.count}),A(N,F.count,$)}),La(N=>{w.on("wordCountUpdate",F=>{const{mode:$}=Wo.getValue(N);Wo.setValue(N,{mode:$,count:F.wordCount}),A(N,F.wordCount,$)})})])]),eventOrder:{[fl()]:["disabling","alloy.base.behaviour","wordcount-events"]}})})(e,r)),wh(e)&&x.push({dom:{tag:"span",classes:["tox-statusbar__branding"]},components:[{dom:{tag:"a",attributes:{href:"https://www.tiny.cloud/powered-by-tiny?utm_campaign=poweredby&utm_source=tiny&utm_medium=referral&utm_content=v6",rel:"noopener",target:"_blank","aria-label":jc.translate(["Powered by {0}","Tiny"])},innerHtml:` + + +`.trim()},behaviours:Oo([er.config({})])}]}),{dom:{tag:"div",classes:["tox-statusbar__right-container"]},components:x}})()),l.length>0?[{dom:{tag:"div",classes:["tox-statusbar__text-container",...(()=>{const x="tox-statusbar__text-container--flex-start",w="tox-statusbar__text-container--flex-end";if(m){const S="tox-statusbar__text-container-3-cols";return h||g?h&&!g?[S,w]:[S,x]:[S,"tox-statusbar__text-container--space-around"]}return[h&&!g?w:x]})()]},components:l}]:[]};return{dom:{tag:"div",classes:["tox-statusbar"]},components:(()=>{const l=s(),m=((g,h)=>{const x=(S=>{const A=n2(S);return A===!1?Wy.None:A==="both"?Wy.Both:Wy.Vertical})(g);if(x===Wy.None)return R.none();const w=x===Wy.Both?"Press the arrow keys to resize the editor.":"Press the Up and Down arrow keys to resize the editor.";return R.some(Uu("resize-handle",{tag:"div",classes:["tox-statusbar__resize-handle"],attributes:{title:h.translate("Resize"),"aria-label":h.translate(w)},behaviours:[pv.config({mode:"mouse",repositionTarget:!1,onDrag:(S,A,N)=>W5(g,N,x),blockerClass:"tox-blocker"}),Dn.config({mode:"special",onLeft:()=>fA(g,x,-1,0),onRight:()=>fA(g,x,1,0),onUp:()=>fA(g,x,0,-1),onDown:()=>fA(g,x,0,1)}),Bs.config({}),er.config({})]},h.icons))})(e,r);return l.concat(m.toArray())})()}},G5=(e,r)=>r.get().getOrDie(`UI for ${e} has not been rendered`),x6=(e,r)=>{const s=e.inline,l=s?Wn:cn,m=_h(e)?Rz:Hy,g=(()=>{const we=ms(),Ye=ms(),Tt=ms();return{dialogUi:we,popupUi:Ye,mainUi:Tt,getUiMotherships:()=>{const Qt=we.get().map(oo=>oo.mothership),no=Ye.get().map(oo=>oo.mothership);return Qt.fold(()=>no.toArray(),oo=>no.fold(()=>[oo],Uo=>Jo(oo.element,Uo.element)?[oo]:[oo,Uo]))},lazyGetInOuterOrDie:(Qt,no)=>()=>Tt.get().bind(oo=>no(oo.outerContainer)).getOrDie(`Could not find ${Qt} element in OuterContainer`)}})(),h=ms(),x=ms(),w=ms(),S=Yl().deviceType.isTouch()?["tox-platform-touch"]:[],A=Ux(e),N=ey(e),F=Ta({dom:{tag:"div",classes:["tox-anchorbar"]}}),$=Ta({dom:{tag:"div",classes:["tox-bottom-anchorbar"]}}),W=()=>g.mainUi.get().map(we=>we.outerContainer).bind(Ja.getHeader),se=g.lazyGetInOuterOrDie("anchor bar",F.getOpt),le=g.lazyGetInOuterOrDie("bottom anchor bar",$.getOpt),fe=g.lazyGetInOuterOrDie("toolbar",Ja.getToolbar),te=g.lazyGetInOuterOrDie("throbber",Ja.getThrobber),X=((we,Ye,Tt,Qt)=>{const no=Sn(!1),oo=(mr=>{const Bl=Sn(Ux(mr)?"bottom":"top");return{isPositionedAtTop:()=>Bl.get()==="top",getDockingMode:Bl.get,setDockingMode:Bl.set}})(Ye),Uo={icons:()=>Ye.ui.registry.getAll().icons,menuItems:()=>Ye.ui.registry.getAll().menuItems,translate:jc.translate,isDisabled:()=>Ye.mode.isReadOnly()||!Ye.ui.isEnabled(),getOption:Ye.options.get},pn=xz(Ye),Mn=(mr=>{const Bl=wi=>()=>mr.formatter.match(wi),br=wi=>()=>{const Fl=mr.formatter.get(wi);return Fl!==void 0?R.some({tag:Fl.length>0&&(Fl[0].inline||Fl[0].block)||"div",styles:mr.dom.parseStyle(mr.formatter.getCssText(wi))}):R.none()},Ii=Sn([]),ls=Sn([]),Nc=Sn(!1);return mr.on("PreInit",wi=>{const Fl=uz(mr),Ud=NS(mr,Fl,Bl,br);Ii.set(Ud)}),mr.on("addStyleModifications",wi=>{const Fl=NS(mr,wi.items,Bl,br);ls.set(Fl),Nc.set(wi.replace)}),{getData:()=>{const wi=Nc.get()?[]:Ii.get(),Fl=ls.get();return wi.concat(Fl)}}})(Ye),ar=(mr=>({colorPicker:Ly(mr),hasCustomColors:dz(mr),getColors:IO(mr),getColorCols:PO(mr)}))(Ye),dr=(mr=>({isDraggableModal:TS(mr)}))(Ye),jr={shared:{providers:Uo,anchors:cz(Ye,Tt,Qt,oo.isPositionedAtTop),header:oo},urlinput:pn,styles:Mn,colorinput:ar,dialog:dr,isContextMenuOpen:()=>no.get(),setContextMenuState:mr=>no.set(mr)},gs={...jr,shared:{...jr.shared,interpreter:mr=>rz(mr,{},gs),getSink:we.popup}},Vs={...jr,shared:{...jr.shared,interpreter:mr=>rz(mr,{},Vs),getSink:we.dialog}};return{popup:gs,dialog:Vs}})({popup:()=>Fr.fromOption(g.popupUi.get().map(we=>we.sink),"(popup) UI has not been rendered"),dialog:()=>Fr.fromOption(g.dialogUi.get().map(we=>we.sink),"UI has not been rendered")},e,se,le),ue=()=>{const we=(()=>{const jr={attributes:{[oh]:A?ju.BottomToTop:ju.TopToBottom}},gs=Ja.parts.menubar({dom:{tag:"div",classes:["tox-menubar"]},backstage:X.popup,onEscape:()=>{e.focus()}}),Vs=Ja.parts.toolbar({dom:{tag:"div",classes:["tox-toolbar"]},getSink:X.popup.shared.getSink,providers:X.popup.shared.providers,onEscape:()=>{e.focus()},onToolbarToggled:Ud=>{((Gk,Kk)=>{Gk.dispatch("ToggleToolbarDrawer",{state:Kk})})(e,Ud)},type:N,lazyToolbar:fe,lazyHeader:()=>W().getOrDie("Could not find header element"),...jr}),mr=Ja.parts["multiple-toolbar"]({dom:{tag:"div",classes:["tox-toolbar-overlord"]},providers:X.popup.shared.providers,onEscape:()=>{e.focus()},type:N}),Bl=oy(e),br=t0(e),Ii=J1(e),ls=Vx(e),Nc=Ja.parts.promotion({dom:{tag:"div",classes:["tox-promotion"]}}),wi=Bl||br||Ii,Fl=ls?[Nc,gs]:[gs];return Ja.parts.header({dom:{tag:"div",classes:["tox-editor-header"].concat(wi?[]:["tox-editor-header--empty"]),...jr},components:$e([Ii?Fl:[],Bl?[mr]:br?[Vs]:[],kh(e)?[]:[F.asSpec()]]),sticky:_h(e),editor:e,sharedBackstage:X.popup.shared})})(),Ye={dom:{tag:"div",classes:["tox-sidebar-wrap"]},components:[Ja.parts.socket({dom:{tag:"div",classes:["tox-edit-area"]}}),Ja.parts.sidebar({dom:{tag:"div",classes:["tox-sidebar"]}})]},Tt=Ja.parts.throbber({dom:{tag:"div",classes:["tox-throbber"]},backstage:X.popup}),Qt=Ja.parts.viewWrapper({backstage:X.popup}),no=Cm(e)&&!s?R.some(v6(e,X.popup.shared.providers)):R.none(),oo=$e([A?[]:[we],s?[]:[Ye],A?[we]:[]]),Uo=Ja.parts.editorContainer({components:$e([oo,s?[]:[$.asSpec(),...no.toArray()]])}),pn=o0(e),Mn={role:"application",...jc.isRtl()?{dir:"rtl"}:{},...pn?{"aria-hidden":"true"}:{}},ar=yl(Ja.sketch({dom:{tag:"div",classes:["tox","tox-tinymce"].concat(s?["tox-tinymce-inline"]:[]).concat(A?["tox-tinymce--toolbar-bottom"]:[]).concat(S),styles:{visibility:"hidden",...pn?{opacity:"0",border:"0"}:{}},attributes:Mn},components:[Uo,...s?[]:[Qt],Tt],behaviours:Oo([Wi(),Qn.config({disableClass:"tox-tinymce--disabled"}),Dn.config({mode:"cyclic",selector:".tox-menubar, .tox-toolbar, .tox-toolbar__primary, .tox-toolbar__overflow--open, .tox-sidebar__overflow--open, .tox-statusbar__path, .tox-statusbar__wordcount, .tox-statusbar__branding a, .tox-statusbar__resize-handle"})])})),dr=Yu(ar);return h.set(dr),{mothership:dr,outerContainer:ar}},ye=we=>{const Ye=cr((Qt=>(oo=>{const Uo=Tx(oo),pn=G1(oo),Mn=vh(oo);return vn(Uo).map(ar=>Qe(ar,pn,Mn))})(Qt).getOr(Tx(Qt)))(e)),Tt=cr((Qt=>nt(Qt).getOr(zx(Qt)))(e));return e.inline||(sc("div","width",Tt)&&Bn(we.element,"width",Tt),sc("div","height",Ye)?Bn(we.element,"height",Ye):Bn(we.element,"height","400px")),Ye};return{popups:{backstage:X.popup,getMothership:()=>G5("popups",w)},dialogs:{backstage:X.dialog,getMothership:()=>G5("dialogs",x)},renderUI:()=>{const we=ue(),Ye=(()=>{const Qt=Zx(e),no=Jo(ws(),Qt)&&aa(Qt,"display")==="grid",oo={dom:{tag:"div",classes:["tox","tox-silver-sink","tox-tinymce-aux"].concat(S),attributes:{...jc.isRtl()?{dir:"rtl"}:{}}},behaviours:Oo([xl.config({useFixed:()=>m.isDocked(W)})])},Uo={dom:{styles:{width:document.body.clientWidth+"px"}},events:qa([Kt(Au(),ar=>{Bn(ar.element,"width",document.body.clientWidth+"px")})])},pn=yl(Da(oo,no?Uo:{})),Mn=Yu(pn);return x.set(Mn),{sink:pn,mothership:Mn}})(),Tt=qg(e)?(()=>{const Qt={dom:{tag:"div",classes:["tox","tox-silver-sink","tox-silver-popup-sink","tox-tinymce-aux"].concat(S),attributes:{...jc.isRtl()?{dir:"rtl"}:{}}},behaviours:Oo([xl.config({useFixed:()=>m.isDocked(W),getBounds:()=>r.getPopupSinkBounds()})])},no=yl(Qt),oo=Yu(no);return w.set(oo),{sink:no,mothership:oo}})():(Qt=>(w.set(Qt.mothership),Qt))(Ye);return g.dialogUi.set(Ye),g.popupUi.set(Tt),g.mainUi.set(we),(Qt=>{const{mainUi:no,popupUi:oo,uiMotherships:Uo}=Qt;Zo(U4(e),(br,Ii)=>{e.ui.registry.addGroupToolbarButton(Ii,br)});const{buttons:pn,menuItems:Mn,contextToolbars:ar,sidebars:dr,views:jr}=e.ui.registry.getAll(),gs=$x(e),Vs={menuItems:Mn,menus:l2(e),menubar:W4(e),toolbar:gs.getOrThunk(()=>xh(e)),allowToolbarGroups:N===Vc.floating,buttons:pn,sidebar:dr,views:jr};var mr;mr=no.outerContainer,e.addShortcut("alt+F9","focus menubar",()=>{Ja.focusMenubar(mr)}),e.addShortcut("alt+F10","focus toolbar",()=>{Ja.focusToolbar(mr)}),e.addCommand("ToggleToolbarDrawer",(br,Ii)=>{Ii!=null&&Ii.skipFocus?Ja.toggleToolbarDrawerWithoutFocusing(mr):Ja.toggleToolbarDrawer(mr)}),e.addQueryStateHandler("ToggleToolbarDrawer",()=>Ja.isToolbarDrawerToggled(mr)),((br,Ii,ls)=>{const Nc=(ps,Xy)=>{Ie([Ii,...ls],hp=>{hp.broadcastEvent(ps,Xy)})},wi=(ps,Xy)=>{Ie([Ii,...ls],hp=>{hp.broadcastOn([ps],Xy)})},Fl=ps=>wi(Bd(),{target:ps.target}),Ud=Xl(),Gk=Ul(Ud,"touchstart",Fl),Kk=Ul(Ud,"touchmove",ps=>Nc(Ff(),ps)),Gy=Ul(Ud,"touchend",ps=>Nc(Im(),ps)),eb=Ul(Ud,"mousedown",Fl),S3=Ul(Ud,"mouseup",ps=>{ps.raw.button===0&&wi(C1(),{target:ps.target})}),Ky=ps=>wi(Bd(),{target:St(ps.target)}),tb=ps=>{ps.button===0&&wi(C1(),{target:St(ps.target)})},hv=()=>{Ie(br.editorManager.get(),ps=>{br!==ps&&ps.dispatch("DismissPopups",{relatedTarget:br})})},bv=ps=>Nc(zu(),Ev(ps)),E3=ps=>{wi(Dg(),{}),Nc(Au(),Ev(ps))},yA=rr(St(br.getElement())),T3=Qf(yA,"scroll",ps=>{requestAnimationFrame(()=>{if(br.getContainer()!=null){const Xy=ff(br,Ii.element).map(hp=>[hp.element,...hp.others]).getOr([]);uo(Xy,hp=>Jo(hp,ps.target))&&(br.dispatch("ElementScroll",{target:ps.target.dom}),Nc(wp(),ps))}})}),Yy=()=>wi(Dg(),{}),ob=ps=>{ps.state&&wi(Bd(),{target:St(br.getContainer())})},nb=ps=>{wi(Bd(),{target:St(ps.relatedTarget.getContainer())})};br.on("PostRender",()=>{br.on("click",Ky),br.on("tap",Ky),br.on("mouseup",tb),br.on("mousedown",hv),br.on("ScrollWindow",bv),br.on("ResizeWindow",E3),br.on("ResizeEditor",Yy),br.on("AfterProgressState",ob),br.on("DismissPopups",nb)}),br.on("remove",()=>{br.off("click",Ky),br.off("tap",Ky),br.off("mouseup",tb),br.off("mousedown",hv),br.off("ScrollWindow",bv),br.off("ResizeWindow",E3),br.off("ResizeEditor",Yy),br.off("AfterProgressState",ob),br.off("DismissPopups",nb),eb.unbind(),Gk.unbind(),Kk.unbind(),Gy.unbind(),S3.unbind(),T3.unbind()}),br.on("detach",()=>{Ie([Ii,...ls],Hv),Ie([Ii,...ls],ps=>ps.destroy())})})(e,no.mothership,Uo),m.setup(e,X.popup.shared,W),Ks(e,X.popup),At(e,X.popup.shared.getSink,X.popup),(br=>{const{sidebars:Ii}=br.ui.registry.getAll();Ie(Vt(Ii),ls=>{const Nc=Ii[ls],wi=()=>Rr(R.from(br.queryCommandValue("ToggleSidebar")),ls);br.ui.registry.addToggleButton(ls,{icon:Nc.icon,tooltip:Nc.tooltip,onAction:Fl=>{br.execCommand("ToggleSidebar",!1,ls),Fl.setActive(wi())},onSetup:Fl=>{Fl.setActive(wi());const Ud=()=>Fl.setActive(wi());return br.on("ToggleSidebar",Ud),()=>{br.off("ToggleSidebar",Ud)}}})})})(e),r3(e,te,X.popup.shared),ul(e,ar,oo.sink,{backstage:X.popup}),b6(e,oo.sink);const Bl={targetNode:e.getElement(),height:ye(no.outerContainer)};return l.render(e,Qt,Vs,X.popup,Bl)})({popupUi:Tt,dialogUi:Ye,mainUi:we,uiMotherships:g.getUiMotherships()})}}},w6=me([Yt("lazySink"),la("dragBlockClass"),hs("getBounds",Ua),ft("useTabstopAt",Ct),ft("firstTabstop",0),ft("eventOrder",{}),qi("modalBehaviours",[Dn]),Ol("onExecute"),Dp("onEscape")]),m5={sketch:Ze},k6=me([No({name:"draghandle",overrides:(e,r)=>({behaviours:Oo([pv.config({mode:"mouse",getTarget:s=>ou(s,'[role="dialog"]').getOr(s),blockerClass:e.dragBlockClass.getOrDie(new Error(`The drag blocker class was not specified for a dialog with a drag handle: +`+JSON.stringify(r,null,2)).message),getBounds:e.getDragBounds})])})}),Eo({schema:[Yt("dom")],name:"title"}),Eo({factory:m5,schema:[Yt("dom")],name:"close"}),Eo({factory:m5,schema:[Yt("dom")],name:"body"}),No({factory:m5,schema:[Yt("dom")],name:"footer"}),Ro({factory:{sketch:(e,r)=>({...e,dom:r.dom,components:r.components})},schema:[ft("dom",{tag:"div",styles:{position:"fixed",left:"0px",top:"0px",right:"0px",bottom:"0px"}}),ft("components",[])],name:"blocker"})]),kl=Wl({name:"ModalDialog",configFields:w6(),partFields:k6(),factory:(e,r,s,l)=>{const m=ms(),g=un("modal-events"),h={...e.eventOrder,[Rc()]:[g].concat(e.eventOrder["alloy.system.attached"]||[])};return{uid:e.uid,dom:e.dom,components:r,apis:{show:x=>{m.set(x);const w=e.lazySink(x).getOrDie(),S=l.blocker(),A=w.getSystem().build({...S,components:S.components.concat([Tc(x)]),behaviours:Oo([er.config({}),Tr("dialog-blocker-events",[Mu(He(),()=>{em.isBlocked(x)||Dn.focusIn(x)})])])});ym(w,A),Dn.focusIn(x)},hide:x=>{m.clear(),rn(x.element).each(w=>{x.getSystem().getByDom(w).each(S=>{id(S)})})},getBody:x=>li(x,e,"body"),getFooter:x=>ua(x,e,"footer"),setIdle:x=>{em.unblock(x)},setBusy:(x,w)=>{em.block(x,w)}},eventOrder:h,domModification:{attributes:{role:"dialog","aria-modal":"true"}},behaviours:Fi(e.modalBehaviours,[fr.config({}),Dn.config({mode:"cyclic",onEnter:e.onExecute,onEscape:e.onEscape,useTabstopAt:e.useTabstopAt,firstTabstop:e.firstTabstop}),em.config({getRoot:m.get}),Tr(g,[La(x=>{((w,S)=>{const A=Ca(w,"id").fold(()=>{const N=un("dialog-label");return Kn(S,"id",N),N},Ze);Kn(w,"aria-labelledby",A)})(x.element,li(x,e,"title").element)})])])}},apis:{show:(e,r)=>{e.show(r)},hide:(e,r)=>{e.hide(r)},getBody:(e,r)=>e.getBody(r),getFooter:(e,r)=>e.getFooter(r),setBusy:(e,r,s)=>{e.setBusy(r,s)},setIdle:(e,r)=>{e.setIdle(r)}}}),_6=Cn([ci,E2].concat(ly)),C6=Qc,g5=[c0("button"),pu,pl("align","end",["start","end"]),Na,ll,sg("buttonType",["primary","secondary"])],K5=[...g5,Wg],p5=[da("type",["submit","cancel","custom"]),...K5],S6=[da("type",["menu"]),Xm,Id,pu,al("items",_6),...g5],E6=[...g5,da("type",["togglebutton"]),us("tooltip"),pu,Xm,ri("active",!1)],T6=Ms("type",{submit:p5,cancel:p5,custom:p5,menu:S6,togglebutton:E6}),z6=[ci,Wg,da("level",["info","warn","error","success"]),qu,ft("url","")],A6=Cn(z6),O6=[ci,Wg,ll,c0("button"),pu,nE,sg("buttonType",["primary","secondary","toolbar"]),Na],N6=Cn(O6),qk=[ci,E2],fp=qk.concat([O2]),M6=qk.concat([T2,ll]),D6=Cn(M6),R6=Qc,B6=fp.concat([Sh("auto")]),F6=Cn(B6),L6=Kd([l0,Wg,qu]),I6=fp.concat([zl("storageKey","default")]),P6=Cn(I6),H6=wa,j6=Cn(fp),V6=wa,$6=qk.concat([zl("tag","textarea"),us("scriptId"),us("scriptUrl"),Ai("settings",void 0,Rm)]),U6=qk.concat([zl("tag","textarea"),ml("init")]),Z6=Ti(e=>ka("customeditor.old",pi(U6),e).orThunk(()=>ka("customeditor.new",pi($6),e))),q6=wa,W6=Cn(fp),G6=Ql(yd),K6=e=>[ci,xd("columns"),e],Y6=[ci,us("html"),pl("presets","presentation",["presentation","document"])],X6=Cn(Y6),J6=fp.concat([ri("border",!1),ri("sandboxed",!0),ri("streamContent",!1),ri("transparent",!0)]),Q6=Cn(J6),e8=wa,t8=Cn(qk.concat([Hs("height")])),o8=Cn([us("url"),Yd("zoom"),Yd("cachedWidth"),Yd("cachedHeight")]),n8=fp.concat([Hs("inputMode"),Hs("placeholder"),ri("maximized",!1),ll]),r8=Cn(n8),a8=wa,s8=e=>[ci,T2,e,pl("align","start",["start","center","end"])],i8=[Wg,l0],l8=[Wg,al("items",Su(0,()=>Y5))],Y5=ec([Cn(i8),Cn(l8)]),c8=fp.concat([al("items",Y5),ll]),d8=Cn(c8),u8=wa,m8=fp.concat([Oa("items",[Wg,l0]),wd("size",1),ll]),g8=Cn(m8),p8=wa,f8=fp.concat([ri("constrain",!0),ll]),h8=Cn(f8),X5=Cn([us("width"),us("height")]),b8=qk.concat([T2,wd("min",0),wd("max",0)]),y8=Cn(b8),v8=rm,x8=[ci,al("header",wa),al("cells",Ql(wa))],w8=Cn(x8),k8=fp.concat([Hs("placeholder"),ri("maximized",!1),ll]),_8=Cn(k8),C8=wa,J5=[da("type",["directory","leaf"]),$c,us("id"),$i("menu",JS)],Q5=Cn(J5),S8=J5.concat([al("children",Su(0,()=>an("type",{directory:eN,leaf:Q5})))]),eN=Cn(S8),E8=an("type",{directory:eN,leaf:Q5}),T8=[ci,al("items",E8),Tl("onLeafAction"),Tl("onToggleExpand"),uc("defaultExpandedIds",[],wa),Hs("defaultSelectedId")],z8=Cn(T8),A8=fp.concat([pl("filetype","file",["image","media","file"]),ll,Hs("picker_text")]),O8=Cn(A8),N8=Cn([l0,iy]),f5=e=>oi("items","items",{tag:"required",process:{}},Ql(Ti(r=>ka(`Checking item of ${e}`,h5,r).fold(s=>Fr.error(El(s)),s=>Fr.value(s))))),h5=Gd(()=>{return an("type",{alertbanner:A6,bar:Cn((e=f5("bar"),[ci,e])),button:N6,checkbox:D6,colorinput:P6,colorpicker:j6,dropzone:W6,grid:Cn(K6(f5("grid"))),iframe:Q6,input:r8,listbox:d8,selectbox:g8,sizeinput:h8,slider:y8,textarea:_8,urlinput:O8,customeditor:Z6,htmlpanel:X6,imagepreview:t8,collection:F6,label:Cn(s8(f5("label"))),table:w8,tree:z8,panel:tN});var e}),M8=[ci,ft("classes",[]),al("items",h5)],tN=Cn(M8),D8=[c0("tab"),$c,al("items",h5)],R8=[ci,Oa("tabs",D8)],B8=Cn(R8),F8=K5,L8=T6,I8=Cn([us("title"),ni("body",an("type",{panel:tN,tabpanel:B8})),zl("size","normal"),uc("buttons",[],L8),ft("initialData",{}),hs("onAction",he),hs("onChange",he),hs("onSubmit",he),hs("onClose",he),hs("onCancel",he),hs("onTabChange",he)]),P8=Cn([da("type",["cancel","custom"]),...F8]),H8=Cn([us("title"),us("url"),Yd("height"),Yd("width"),ns("buttons",P8),hs("onAction",he),hs("onCancel",he),hs("onClose",he),hs("onMessage",he)]),b5=e=>Po(e)?[e].concat(ct(vo(e),b5)):ko(e)?ct(e,b5):[],j8=e=>io(e.type)&&io(e.name),V8={checkbox:R6,colorinput:H6,colorpicker:V6,dropzone:G6,input:a8,iframe:e8,imagepreview:o8,selectbox:p8,sizeinput:X5,slider:v8,listbox:u8,size:X5,textarea:C8,urlinput:N8,customeditor:q6,collection:L6,togglemenuitem:C6},$8=e=>{const r=(l=>Pt(b5(l),j8))(e),s=ct(r,l=>(m=>R.from(V8[m.type]))(l).fold(()=>[],m=>[ni(l.name,m)]));return Cn(s)},oN=e=>{var r;return{internalDialog:Sl(ka("dialog",I8,e)),dataValidator:$8(e),initialData:(r=e.initialData)!==null&&r!==void 0?r:{}}},fv={open:(e,r)=>{const s=oN(r);return e(s.internalDialog,s.initialData,s.dataValidator)},openUrl:(e,r)=>e(Sl(ka("dialog",H8,r))),redial:e=>oN(e)};var U8=Object.freeze({__proto__:null,events:(e,r)=>{const s=(l,m)=>{e.updateState.each(g=>{const h=g(l,m);r.set(h)}),e.renderComponents.each(g=>{const h=g(m,r.get());(e.reuseDom?m4:pc)(l,h)})};return qa([Kt(Cd(),(l,m)=>{const g=m;if(!g.universal){const h=e.channel;Rt(g.channels,h)&&s(l,g.data)}}),La((l,m)=>{e.initialData.each(g=>{s(l,g)})})])}}),Z8=Object.freeze({__proto__:null,getState:(e,r,s)=>s}),q8=[Yt("channel"),la("renderComponents"),la("updateState"),la("initialData"),ri("reuseDom",!0)];const ku=Ri({fields:q8,name:"reflecting",active:U8,apis:Z8,state:Object.freeze({__proto__:null,init:()=>{const e=Sn(R.none());return{readState:()=>e.get().getOr("none"),get:e.get,set:e.set,clear:()=>e.set(R.none())}}})}),nN=e=>{const r=[],s={};return $o(e,(l,m)=>{l.fold(()=>{r.push(m)},g=>{s[m]=g})}),r.length>0?Fr.error(r):Fr.value(s)},W8=(e,r,s)=>{const l=Ta(vf.sketch(g=>({dom:{tag:"div",classes:["tox-form"].concat(e.classes)},components:dt(e.items,h=>nz(g,h,r,s))})));return{dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[l.asSpec()]}],behaviours:Oo([Dn.config({mode:"acyclic",useTabstopAt:Yo(Ph)}),(m=l,Gr.config({find:m.getOpt})),NT(l,{postprocess:g=>nN(g).fold(h=>(console.error(h),{}),Ze)}),Tr("dialog-body-panel",[Kt(He(),(g,h)=>{g.getSystem().broadcastOn([Zw],{newFocus:R.some(h.event.target)})})])])};var m},G8=Pc({name:"TabButton",configFields:[ft("uid",void 0),Yt("value"),oi("dom","dom",dc(()=>({attributes:{role:"tab",id:un("aria"),"aria-selected":"false"}})),Cl()),la("action"),ft("domModification",{}),qi("tabButtonBehaviours",[er,Dn,Wo]),Yt("view")],factory:(e,r)=>({uid:e.uid,dom:e.dom,components:e.components,events:B1(e.action),behaviours:Fi(e.tabButtonBehaviours,[er.config({}),Dn.config({mode:"execution",useSpace:!0,useEnter:!0}),Wo.config({store:{mode:"memory",initialValue:e.value}})]),domModification:e.domModification})}),K8=me([Yt("tabs"),Yt("dom"),ft("clickToDismiss",!1),qi("tabbarBehaviours",[ba,Dn]),Nd(["tabClass","selectedClass"])]),Y8=Ln({factory:G8,name:"tabs",unit:"tab",overrides:e=>{const r=(l,m)=>{ba.dehighlight(l,m),_n(l,Ed(),{tabbar:l,button:m})},s=(l,m)=>{ba.highlight(l,m),_n(l,im(),{tabbar:l,button:m})};return{action:l=>{const m=l.getSystem().getByUid(e.uid).getOrDie(),g=ba.isHighlighted(m,l);(g&&e.clickToDismiss?r:g?he:s)(m,l)},domModification:{classes:[e.markers.tabClass]}}}}),X8=me([Y8]),rN=Wl({name:"Tabbar",configFields:K8(),partFields:X8(),factory:(e,r,s,l)=>({uid:e.uid,dom:e.dom,components:r,"debug.sketcher":"Tabbar",domModification:{attributes:{role:"tablist"}},behaviours:Fi(e.tabbarBehaviours,[ba.config({highlightClass:e.markers.selectedClass,itemClass:e.markers.tabClass,onHighlight:(m,g)=>{Kn(g.element,"aria-selected","true")},onDehighlight:(m,g)=>{Kn(g.element,"aria-selected","false")}}),Dn.config({mode:"flow",getInitial:m=>ba.getHighlighted(m).map(g=>g.element),selector:"."+e.markers.tabClass,executeOnMove:!0})])})}),J8=Pc({name:"Tabview",configFields:[qi("tabviewBehaviours",[fr])],factory:(e,r)=>({uid:e.uid,dom:e.dom,behaviours:Fi(e.tabviewBehaviours,[fr.config({})]),domModification:{attributes:{role:"tabpanel"}}})}),Q8=me([ft("selectFirst",!0),Hr("onChangeTab"),Hr("onDismissTab"),ft("tabs",[]),qi("tabSectionBehaviours",[])]),eM=Eo({factory:rN,schema:[Yt("dom"),zi("markers",[Yt("tabClass"),Yt("selectedClass")])],name:"tabbar",defaults:e=>({tabs:e.tabs})}),tM=Eo({factory:J8,name:"tabview"}),oM=me([eM,tM]),Wk=Wl({name:"TabSection",configFields:Q8(),partFields:oM(),factory:(e,r,s,l)=>{const m=(g,h)=>{ua(g,e,"tabbar").each(x=>{h(x).each(Qd)})};return{uid:e.uid,dom:e.dom,components:r,behaviours:Hb(e.tabSectionBehaviours),events:qa($e([e.selectFirst?[La((g,h)=>{m(g,ba.getFirst)})]:[],[Kt(im(),(g,h)=>{(x=>{const w=Wo.getValue(x);ua(x,e,"tabview").each(S=>{to(e.tabs,A=>A.value===w).each(A=>{const N=A.view();Ca(x.element,"id").each(F=>{Kn(S.element,"aria-labelledby",F)}),fr.set(S,N),e.onChangeTab(S,x,N)})})})(h.event.button)}),Kt(Ed(),(g,h)=>{const x=h.event.button;e.onDismissTab(g,x)})]])),apis:{getViewItems:g=>ua(g,e,"tabview").map(h=>fr.contents(h)).getOr([]),showTab:(g,h)=>{m(g,x=>{const w=ba.getCandidates(x);return to(w,S=>Wo.getValue(S)===h).filter(S=>!ba.isHighlighted(x,S))})}}}},apis:{getViewItems:(e,r)=>e.getViewItems(r),showTab:(e,r,s)=>{e.showTab(r,s)}}}),aN=(e,r)=>{Bn(e,"height",r+"px"),Bn(e,"flex-basis",r+"px")},hA=(e,r,s)=>{ou(e,'[role="dialog"]').each(l=>{vs(l,'[role="tablist"]').each(m=>{s.get().map(g=>(Bn(r,"height","0"),Bn(r,"flex-basis","0"),Math.min(g,((h,x,w)=>{const S=Lo(h).dom,A=ou(h,".tox-dialog-wrap").getOr(h);let N;N=aa(A,"position")==="fixed"?Math.max(S.clientHeight,window.innerHeight):Math.max(S.offsetHeight,S.scrollHeight);const F=Nt(x),$=x.dom.offsetLeft>=w.dom.offsetLeft+Ga(w)?Math.max(Nt(w),F):F,W=parseInt(aa(h,"margin-top"),10)||0,se=parseInt(aa(h,"margin-bottom"),10)||0;return N-(Nt(h)+W+se-$)})(l,r,m)))).each(g=>{aN(r,g)})})})},y5=e=>vs(e,'[role="tabpanel"]'),sN="send-data-to-section",iN="send-data-to-view",nM=(e,r,s)=>{const l=Sn({}),m=S=>{const A=Wo.getValue(S),N=nN(A).getOr({}),F=l.get(),$=Da(F,N);l.set($)},g=S=>{const A=l.get();Wo.setValue(S,A)},h=Sn(null),x=dt(e.tabs,S=>({value:S.name,dom:{tag:"div",classes:["tox-dialog__body-nav-item"]},components:[Ya(s.shared.providers.translate(S.title))],view:()=>[vf.sketch(A=>({dom:{tag:"div",classes:["tox-form"]},components:dt(S.items,N=>nz(A,N,r,s)),formBehaviours:Oo([Dn.config({mode:"acyclic",useTabstopAt:Yo(Ph)}),Tr("TabView.form.events",[La(g),od(m)]),tc.config({channels:Oi([{key:sN,value:{onReceive:m}},{key:iN,value:{onReceive:g}}])})])}))]})),w=(S=>{const A=ms();return{extraEvents:[La(F=>{const $=F.element;y5($).each(W=>{Bn(W,"visibility","hidden"),F.getSystem().getByDom(W).toOptional().each(se=>{const le=((te,X,ue)=>dt(te,(ye,we)=>{fr.set(ue,te[we].view());const Ye=X.dom.getBoundingClientRect();return fr.set(ue,[]),Ye.height}))(S,W,se);(te=>at(ge(te,(X,ue)=>X>ue?-1:X{at(se).each(fe=>Wk.showTab(le,fe.value))})(S,F),requestAnimationFrame(()=>{hA($,W,A)})})}),Kt(Au(),F=>{const $=F.element;y5($).each(W=>{hA($,W,A)})}),Kt(wC,(F,$)=>{const W=F.element;y5(W).each(se=>{const le=Ts(rr(se));Bn(se,"visibility","hidden");const fe=Ir(se,"height").map(X=>parseInt(X,10));Pr(se,"height"),Pr(se,"flex-basis");const te=se.dom.getBoundingClientRect().height;fe.forall(X=>te>X)?(A.set(te),hA(W,se,A)):fe.each(X=>{aN(se,X)}),Pr(se,"visibility"),le.each(sd)})})],selectFirst:!1}})(x);return Wk.sketch({dom:{tag:"div",classes:["tox-dialog__body"]},onChangeTab:(S,A,N)=>{const F=Wo.getValue(A);_n(S,xC,{name:F,oldName:h.get()}),h.set(F)},tabs:x,components:[Wk.parts.tabbar({dom:{tag:"div",classes:["tox-dialog__body-nav"]},components:[rN.parts.tabs({})],markers:{tabClass:"tox-tab",selectedClass:"tox-dialog__body-nav-item--active"},tabbarBehaviours:Oo([Bs.config({})])}),Wk.parts.tabview({dom:{tag:"div",classes:["tox-dialog__body-content"]}})],selectFirst:w.selectFirst,tabSectionBehaviours:Oo([Tr("tabpanel",w.extraEvents),Dn.config({mode:"acyclic"}),Gr.config({find:S=>at(Wk.getViewItems(S))}),Uc(R.none(),S=>(S.getSystem().broadcastOn([sN],{}),l.get()),(S,A)=>{l.set(A),S.getSystem().broadcastOn([iN],{})})])})},lN=(e,r,s,l,m)=>({dom:{tag:"div",classes:["tox-dialog__content-js"],attributes:{...s.map(g=>({id:g})).getOr({}),...m?{"aria-live":"polite"}:{}}},components:[],behaviours:Oo([Hw(0),ku.config({channel:`${RT}-${r}`,updateState:(g,h)=>R.some({isTabPanel:()=>h.body.type==="tabpanel"}),renderComponents:g=>{const h=g.body;return h.type==="tabpanel"?[nM(h,g.initialData,l)]:[W8(h,g.initialData,l)]},initialData:e})])}),rM=Zu.deviceType.isTouch(),cN=(e,r)=>({dom:{tag:"div",styles:{display:"none"},classes:["tox-dialog__header"]},components:[e,r]}),dN=(e,r)=>kl.parts.close(wl.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":r.translate("Close")}},action:e,buttonBehaviours:Oo([Bs.config({})])})),uN=()=>kl.parts.title({dom:{tag:"div",classes:["tox-dialog__title"],innerHtml:"",styles:{display:"none"}}}),mN=(e,r)=>kl.parts.body({dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[{dom:Ym(`

    ${G_(r.translate(e))}

    `)}]}]}),gN=e=>kl.parts.footer({dom:{tag:"div",classes:["tox-dialog__footer"]},components:e}),pN=(e,r)=>[Ku.sketch({dom:{tag:"div",classes:["tox-dialog__footer-start"]},components:e}),Ku.sketch({dom:{tag:"div",classes:["tox-dialog__footer-end"]},components:r})],v5=e=>{const r="tox-dialog",s=r+"-wrap",l=s+"__backdrop",m=r+"__disable-scroll";return kl.sketch({lazySink:e.lazySink,onEscape:g=>(e.onEscape(g),R.some(!0)),useTabstopAt:g=>!Ph(g),firstTabstop:e.firstTabstop,dom:{tag:"div",classes:[r].concat(e.extraClasses),styles:{position:"relative",...e.extraStyles}},components:[e.header,e.body,...e.footer.toArray()],parts:{blocker:{dom:Ym(`
    `),components:[{dom:{tag:"div",classes:rM?[l,l+"--opaque"]:[l]}}]}},dragBlockClass:s,modalBehaviours:Oo([er.config({}),Tr("dialog-events",e.dialogEvents.concat([Mu(He(),(g,h)=>{em.isBlocked(g)||Dn.focusIn(g)}),Kt(lg(),(g,h)=>{g.getSystem().broadcastOn([Zw],{newFocus:h.event.newFocus})})])),Tr("scroll-lock",[La(()=>{Jr(ws(),m)}),od(()=>{rs(ws(),m)})]),...e.extraBehaviours]),eventOrder:{[fl()]:["dialog-events"],[Rc()]:["scroll-lock","dialog-events","alloy.base.behaviour"],[sm()]:["alloy.base.behaviour","dialog-events","scroll-lock"],...e.eventOrder}})},fN=e=>wl.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":e.translate("Close"),title:e.translate("Close")}},buttonBehaviours:Oo([Bs.config({})]),components:[Uu("close",{tag:"span",classes:["tox-icon"]},e.icons)],action:r=>{$r(r,ep)}}),hN=(e,r,s,l)=>({dom:{tag:"div",classes:["tox-dialog__title"],attributes:{...s.map(m=>({id:m})).getOr({})}},components:[],behaviours:Oo([ku.config({channel:`${XC}-${r}`,initialData:e,renderComponents:m=>[Ya(l.translate(m.title))]})])}),bN=()=>({dom:Ym('
    ')}),yN=(e,r,s)=>((l,m,g)=>{const h=kl.parts.title(hN(l,m,R.none(),g)),x=kl.parts.draghandle(bN()),w=kl.parts.close(fN(g)),S=[h].concat(l.draggable?[x]:[]).concat([w]);return Ku.sketch({dom:Ym('
    '),components:S})})({title:s.shared.providers.translate(e),draggable:s.dialog.isDraggableModal()},r,s.shared.providers),vN=(e,r,s,l)=>({dom:{tag:"div",classes:["tox-dialog__busy-spinner"],attributes:{"aria-label":s.translate(e)},styles:{left:"0px",right:"0px",bottom:"0px",top:`${l.getOr(0)}px`,position:"absolute"}},behaviours:r,components:[{dom:Ym('
    ')}]}),xN=(e,r,s)=>({onClose:()=>s.closeWindow(),onBlock:l=>{const m=vs(e().element,".tox-dialog__header").map(g=>Nt(g));kl.setBusy(e(),(g,h)=>vN(l.message,h,r,m))},onUnblock:()=>{kl.setIdle(e())}}),wN="tox-dialog--fullscreen",x5="tox-dialog--width-lg",w5="tox-dialog--width-md",bA=e=>{switch(e){case"large":return R.some(x5);case"medium":return R.some(w5);default:return R.none()}},kN=(e,r)=>{const s=St(r.element.dom);Di(s,wN)||(Zi(s,[x5,w5]),bA(e).each(l=>Jr(s,l)))},_N=(e,r)=>{const s=St(e.element.dom),l=bl(s),m=to(l,g=>g===x5||g===w5).or(bA(r));((g,h)=>{Ie(h,x=>{((w,S)=>{nd(w)?w.dom.classList.toggle(S):((A,N)=>Rt(oa(A),N)?hl(A,N):wr(A,N))(w,S),bi(w)})(g,x)})})(s,[wN,...m.toArray()])},CN=(e,r,s)=>yl(v5({...e,firstTabstop:1,lazySink:s.shared.getSink,extraBehaviours:[ap({}),...e.extraBehaviours],onEscape:l=>{$r(l,ep)},dialogEvents:r,eventOrder:{[Cd()]:[ku.name(),tc.name()],[Rc()]:["scroll-lock",ku.name(),"messages","dialog-events","alloy.base.behaviour"],[sm()]:["alloy.base.behaviour","dialog-events","messages",ku.name(),"scroll-lock"]}})),k5=(e,r={})=>dt(e,s=>s.type==="menu"?(l=>{const m=dt(l.items,g=>{const h=Xt(r,g.name).getOr(Sn(!1));return{...g,storage:h}});return{...l,items:m}})(s):s),SN=e=>zo(e,(r,s)=>s.type==="menu"?zo(s.items,(l,m)=>(l[m.name]=m.storage,l),r):r,{}),EN=(e,r)=>[Lf(He(),DT),e(_y,(s,l,m,g)=>{Ts(rr(g.element)).fold(he,hb),r.onClose(),l.onClose()}),e(ep,(s,l,m,g)=>{l.onCancel(s),$r(g,_y)}),Kt(Dh,(s,l)=>r.onUnblock()),Kt(Mh,(s,l)=>r.onBlock(l.event))],TN=(e,r,s)=>{const l=(g,h)=>Kt(g,(x,w)=>{m(x,(S,A)=>{h(e(),S,w.event,x)})}),m=(g,h)=>{ku.getState(g).get().each(x=>{h(x.internalDialog,g)})};return[...EN(l,r),l(bf,(g,h)=>h.onSubmit(g)),l(cd,(g,h,x)=>{h.onChange(g,{name:x.name})}),l(Xu,(g,h,x,w)=>{const S=()=>w.getSystem().isConnected()?Dn.focusIn(w):void 0,A=$=>ds($,"disabled")||Ca($,"aria-disabled").exists(W=>W==="true"),N=rr(w.element),F=Ts(N);h.onAction(g,{name:x.name,value:x.value}),Ts(N).fold(S,$=>{A($)||F.exists(W=>Ce($,W)&&A(W))?S():s().toOptional().filter(W=>!Ce(W.element,$)).each(S)})}),l(xC,(g,h,x)=>{h.onTabChange(g,{newTabName:x.name,oldTabName:x.oldName})}),od(g=>{const h=e();Wo.setValue(g,h.getData())})]},aM=(e,r)=>{const s=r.map(g=>g.footerButtons).getOr([]),l=Co(s,g=>g.align==="start"),m=(g,h)=>Ku.sketch({dom:{tag:"div",classes:[`tox-dialog__footer-${g}`]},components:dt(h,x=>x.memento.asSpec())});return[m("start",l.pass),m("end",l.fail)]},zN=(e,r,s)=>({dom:Ym(''),components:[],behaviours:Oo([ku.config({channel:`${Uw}-${r}`,initialData:e,updateState:(l,m)=>{const g=dt(m.buttons,h=>{const x=Ta(((w,S)=>K0(w,w.type,S))(h,s));return{name:h.name,align:h.align,memento:x}});return R.some({lookupByName:h=>((x,w,S)=>to(w,A=>A.name===S).bind(A=>A.memento.getOpt(x)))(l,g,h),footerButtons:g})},renderComponents:aM})])}),AN=(e,r,s)=>kl.parts.footer(zN(e,r,s)),ON=(e,r)=>{if(e.getRoot().getSystem().isConnected()){const s=Gr.getCurrent(e.getFormWrapper()).getOr(e.getFormWrapper());return vf.getField(s,r).orThunk(()=>e.getFooter().bind(m=>ku.getState(m).get()).bind(m=>m.lookupByName(r)))}return R.none()},NN=(e,r,s)=>{const l=g=>{const h=e.getRoot();h.getSystem().isConnected()&&g(h)},m={getData:()=>{const g=e.getRoot(),h=g.getSystem().isConnected()?e.getFormWrapper():g;return{...Wo.getValue(h),...Zo(s,x=>x.get())}},setData:g=>{l(h=>{const x=m.getData(),w=Da(x,g),S=((N,F)=>{const $=N.getRoot();return ku.getState($).get().map(W=>Sl(ka("data",W.dataValidator,F))).getOr(F)})(e,w),A=e.getFormWrapper();Wo.setValue(A,S),$o(s,(N,F)=>{Vo(w,F)&&N.set(w[F])})})},setEnabled:(g,h)=>{ON(e,g).each(h?Qn.enable:Qn.disable)},focus:g=>{ON(e,g).each(er.focus)},block:g=>{if(!io(g))throw new Error("The dialogInstanceAPI.block function should be passed a blocking message of type string as an argument");l(h=>{_n(h,Mh,{message:g})})},unblock:()=>{l(g=>{$r(g,Dh)})},showTab:g=>{l(h=>{const x=e.getBody();ku.getState(x).get().exists(w=>w.isTabPanel())&&Gr.getCurrent(x).each(w=>{Wk.showTab(w,g)})})},redial:g=>{l(h=>{const x=e.getId(),w=r(g),S=k5(w.internalDialog.buttons,s);h.getSystem().broadcastOn([`${$w}-${x}`],w),h.getSystem().broadcastOn([`${XC}-${x}`],w.internalDialog),h.getSystem().broadcastOn([`${RT}-${x}`],w.internalDialog),h.getSystem().broadcastOn([`${Uw}-${x}`],{...w.internalDialog,buttons:S}),m.setData(w.initialData)})},close:()=>{l(g=>{$r(g,_y)})},toggleFullscreen:e.toggleFullscreen};return m},MN=(e,r,s,l=!1,m)=>{const g=un("dialog"),h=un("dialog-label"),x=un("dialog-content"),w=e.internalDialog,S=Sn(w.size),A=bA(S.get()).toArray(),N=Ta(((X,ue,ye,we)=>Ku.sketch({dom:Ym('
    '),components:[hN(X,ue,R.some(ye),we),bN(),fN(we)],containerBehaviours:Oo([pv.config({mode:"mouse",blockerClass:"blocker",getTarget:Ye=>Vl(Ye,'[role="dialog"]').getOrDie(),snaps:{getSnapPoints:()=>[],leftAttr:"data-drag-left",topAttr:"data-drag-top"}})])}))({title:w.title,draggable:!0},g,h,s.shared.providers)),F=Ta(((X,ue,ye,we,Ye)=>lN(X,ue,R.some(ye),we,Ye))({body:w.body,initialData:w.initialData},g,x,s,l)),$=k5(w.buttons),W=SN($),se=ln($.length!==0,Ta(((X,ue,ye)=>zN(X,ue,ye))({buttons:$},g,s))),le=TN(()=>te,{onBlock:X=>{em.block(fe,(ue,ye)=>{const we=N.getOpt(fe).map(Ye=>Nt(Ye.element));return vN(X.message,ye,s.shared.providers,we)})},onUnblock:()=>{em.unblock(fe)},onClose:()=>r.closeWindow()},s.shared.getSink),fe=yl({dom:{tag:"div",classes:["tox-dialog","tox-dialog-inline",...A],attributes:{role:"dialog","aria-labelledby":h}},eventOrder:{[Cd()]:[ku.name(),tc.name()],[fl()]:["execute-on-form"],[Rc()]:["reflecting","execute-on-form"]},behaviours:Oo([Dn.config({mode:"cyclic",onEscape:X=>($r(X,_y),R.some(!0)),useTabstopAt:X=>!Ph(X)&&(gr(X)!=="button"||Ma(X,"disabled")!=="disabled"),firstTabstop:1}),ku.config({channel:`${$w}-${g}`,updateState:(X,ue)=>(S.set(ue.internalDialog.size),kN(ue.internalDialog.size,X),m(),R.some(ue)),initialData:e}),er.config({}),Tr("execute-on-form",le.concat([Mu(He(),(X,ue)=>{Dn.focusIn(X)}),Kt(lg(),(X,ue)=>{X.getSystem().broadcastOn([Zw],{newFocus:ue.event.newFocus})})])),em.config({getRoot:()=>R.some(fe)}),fr.config({}),ap({})]),components:[N.asSpec(),F.asSpec(),...se.map(X=>X.asSpec()).toArray()]}),te=NN({getId:me(g),getRoot:me(fe),getFooter:()=>se.map(X=>X.get(fe)),getBody:()=>F.get(fe),getFormWrapper:()=>{const X=F.get(fe);return Gr.getCurrent(X).getOr(X)},toggleFullscreen:()=>{_N(fe,S.get())}},r.redial,W);return{dialog:fe,instanceApi:te}};var _5=tinymce.util.Tools.resolve("tinymce.util.URI");const sM=["insertContent","setContent","execCommand","close","block","unblock"],DN=e=>Po(e)&&sM.indexOf(e.mceAction)!==-1,iM=(e,r,s,l)=>{const m=un("dialog"),g=yN(e.title,m,l),h=(fe=>{const te={dom:{tag:"div",classes:["tox-dialog__content-js"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-iframe"]},components:[YC(R.none(),{dom:{tag:"iframe",attributes:{src:fe.url}},behaviours:Oo([Bs.config({}),er.config({})])})]}],behaviours:Oo([Dn.config({mode:"acyclic",useTabstopAt:Yo(Ph)})])};return kl.parts.body(te)})(e),x=e.buttons.bind(fe=>fe.length===0?R.none():R.some(AN({buttons:fe},m,l))),w=((fe,te)=>{const X=(ye,we)=>Kt(ye,(Ye,Tt)=>{ue(Ye,(Qt,no)=>{we(le,Qt,Tt.event,Ye)})}),ue=(ye,we)=>{ku.getState(ye).get().each(Ye=>{we(Ye,ye)})};return[...EN(X,te),X(Xu,(ye,we,Ye)=>{we.onAction(ye,{name:Ye.name})})]})(0,xN(()=>se,l.shared.providers,r)),S={...e.height.fold(()=>({}),fe=>({height:fe+"px","max-height":fe+"px"})),...e.width.fold(()=>({}),fe=>({width:fe+"px","max-width":fe+"px"}))},A=e.width.isNone()&&e.height.isNone()?["tox-dialog--width-lg"]:[],N=new _5(e.url,{base_uri:new _5(window.location.href)}),F=`${N.protocol}://${N.host}${N.port?":"+N.port:""}`,$=vg(),W=[ku.config({channel:`${$w}-${m}`,updateState:(fe,te)=>R.some(te),initialData:e}),Tr("messages",[La(()=>{const fe=Ul(St(window),"message",te=>{if(N.isSameOrigin(new _5(te.raw.origin))){const X=te.raw.data;DN(X)?((ue,ye,we)=>{switch(we.mceAction){case"insertContent":ue.insertContent(we.content);break;case"setContent":ue.setContent(we.content);break;case"execCommand":const Ye=!!jo(we.ui)&&we.ui;ue.execCommand(we.cmd,Ye,we.value);break;case"close":ye.close();break;case"block":ye.block(we.message);break;case"unblock":ye.unblock()}})(s,le,X):(ue=>!DN(ue)&&Po(ue)&&Vo(ue,"mceAction"))(X)&&e.onMessage(le,X)}});$.set(fe)}),od($.clear)]),tc.config({channels:{[JC]:{onReceive:(fe,te)=>{vs(fe.element,"iframe").each(X=>{const ue=X.dom.contentWindow;Ue(ue)&&ue.postMessage(te,F)})}}}})],se=CN({id:m,header:g,body:h,footer:x,extraClasses:A,extraBehaviours:W,extraStyles:S},w,l),le=(fe=>{const te=X=>{fe.getSystem().isConnected()&&X(fe)};return{block:X=>{if(!io(X))throw new Error("The urlDialogInstanceAPI.block function should be passed a blocking message of type string as an argument");te(ue=>{_n(ue,Mh,{message:X})})},unblock:()=>{te(X=>{$r(X,Dh)})},close:()=>{te(X=>{$r(X,_y)})},sendMessage:X=>{te(ue=>{ue.getSystem().broadcastOn([JC],X)})}}})(se);return{dialog:se,instanceApi:le}},RN=(e,r)=>Sl(ka("data",r,e)),BN=e=>Nh(e,".tox-alert-dialog")||Nh(e,".tox-confirm-dialog"),lM=(e,r,s)=>r&&s?[]:[di.config({contextual:{lazyContext:()=>R.some(Fa(St(e.getContentAreaContainer()))),fadeInClass:"tox-dialog-dock-fadein",fadeOutClass:"tox-dialog-dock-fadeout",transitionClass:"tox-dialog-dock-transition"},modes:["top"],lazyViewport:l=>ff(e,l.element).map(m=>({bounds:Oh(m),optScrollEnv:R.some({currentScrollTop:m.element.dom.scrollTop,scrollElmTop:Or(m.element).top})})).getOrThunk(()=>({bounds:Ua(),optScrollEnv:R.none()}))})],cM=e=>{const r=e.editor,s=_h(r),l=(w=>{const S=w.shared;return{open:(A,N)=>{const F=()=>{kl.hide(le),N()},$=Ta(K0({name:"close-alert",text:"OK",primary:!0,buttonType:R.some("primary"),align:"end",enabled:!0,icon:R.none()},"cancel",w)),W=uN(),se=dN(F,S.providers),le=yl(v5({lazySink:()=>S.getSink(),header:cN(W,se),body:mN(A,S.providers),footer:R.some(gN(pN([],[$.asSpec()]))),onEscape:F,extraClasses:["tox-alert-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[Kt(ep,F)],eventOrder:{}}));kl.show(le);const fe=$.get(le);er.focus(fe)}}})(e.backstages.dialog),m=(w=>{const S=w.shared;return{open:(A,N)=>{const F=X=>{kl.hide(fe),N(X)},$=Ta(K0({name:"yes",text:"Yes",primary:!0,buttonType:R.some("primary"),align:"end",enabled:!0,icon:R.none()},"submit",w)),W=K0({name:"no",text:"No",primary:!1,buttonType:R.some("secondary"),align:"end",enabled:!0,icon:R.none()},"cancel",w),se=uN(),le=dN(()=>F(!1),S.providers),fe=yl(v5({lazySink:()=>S.getSink(),header:cN(se,le),body:mN(A,S.providers),footer:R.some(gN(pN([],[W,$.asSpec()]))),onEscape:()=>F(!1),extraClasses:["tox-confirm-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[Kt(ep,()=>F(!1)),Kt(bf,()=>F(!0))],eventOrder:{}}));kl.show(fe);const te=$.get(fe);er.focus(te)}}})(e.backstages.dialog),g=(w,S)=>fv.open((A,N,F)=>{const $=N,W=((se,le,fe)=>{const te=un("dialog"),X=se.internalDialog,ue=yN(X.title,te,fe),ye=Sn(X.size),we=bA(ye.get()).toArray(),Ye=((dr,jr,gs)=>{const Vs=lN(dr,jr,R.none(),gs,!1);return kl.parts.body(Vs)})({body:X.body,initialData:X.initialData},te,fe),Tt=k5(X.buttons),Qt=SN(Tt),no=ln(Tt.length!==0,AN({buttons:Tt},te,fe)),oo=TN(()=>ar,xN(()=>pn,fe.shared.providers,le),fe.shared.getSink),Uo={id:te,header:ue,body:Ye,footer:no,extraClasses:we,extraBehaviours:[ku.config({channel:`${$w}-${te}`,updateState:(dr,jr)=>(ye.set(jr.internalDialog.size),kN(jr.internalDialog.size,dr),R.some(jr)),initialData:se})],extraStyles:{}},pn=CN(Uo,oo,fe),Mn={getId:me(te),getRoot:me(pn),getBody:()=>kl.getBody(pn),getFooter:()=>kl.getFooter(pn),getFormWrapper:()=>{const dr=kl.getBody(pn);return Gr.getCurrent(dr).getOr(dr)},toggleFullscreen:()=>{_N(pn,ye.get())}},ar=NN(Mn,le.redial,Qt);return{dialog:pn,instanceApi:ar}})({dataValidator:F,initialData:$,internalDialog:A},{redial:fv.redial,closeWindow:()=>{kl.hide(W.dialog),S(W.instanceApi)}},e.backstages.dialog);return kl.show(W.dialog),W.instanceApi.setData($),W.instanceApi},w),h=(w,S,A,N)=>fv.open((F,$,W)=>{const se=RN($,W),le=ms(),fe=e.backstages.popup.shared.header.isPositionedAtTop(),te=()=>le.on(ye=>{Rs.reposition(ye),s&&fe||di.refresh(ye)}),X=MN({dataValidator:W,initialData:se,internalDialog:F},{redial:fv.redial,closeWindow:()=>{le.on(Rs.hide),r.off("ResizeEditor",te),le.clear(),A(X.instanceApi)}},e.backstages.popup,N.ariaAttrs,te),ue=yl(Rs.sketch({lazySink:e.backstages.popup.shared.getSink,dom:{tag:"div",classes:[]},fireDismissalEventInstead:N.persistent?{event:"doNotDismissYet"}:{},...fe?{}:{fireRepositionEventInstead:{}},inlineBehaviours:Oo([Tr("window-manager-inline-events",[Kt(Ou(),(ye,we)=>{$r(X.dialog,ep)})]),...lM(r,s,fe)]),isExtraPart:(ye,we)=>BN(we)}));return le.set(ue),Rs.showWithinBounds(ue,Tc(X.dialog),{anchor:S},()=>{const ye=r.inline?ws():St(r.getContainer()),we=Fa(ye);return R.some(we)}),s&&fe||(di.refresh(ue),r.on("ResizeEditor",te)),X.instanceApi.setData(se),Dn.focusIn(X.dialog),X.instanceApi},w),x=(w,S,A,N)=>fv.open((F,$,W)=>{const se=RN($,W),le=ms(),fe=e.backstages.popup.shared.header.isPositionedAtTop(),te=()=>le.on(ye=>{Rs.reposition(ye),di.refresh(ye)}),X=MN({dataValidator:W,initialData:se,internalDialog:F},{redial:fv.redial,closeWindow:()=>{le.on(Rs.hide),r.off("ResizeEditor ScrollWindow ElementScroll",te),le.clear(),A(X.instanceApi)}},e.backstages.popup,N.ariaAttrs,te),ue=yl(Rs.sketch({lazySink:e.backstages.popup.shared.getSink,dom:{tag:"div",classes:[]},fireDismissalEventInstead:N.persistent?{event:"doNotDismissYet"}:{},...fe?{}:{fireRepositionEventInstead:{}},inlineBehaviours:Oo([Tr("window-manager-inline-events",[Kt(Ou(),(ye,we)=>{$r(X.dialog,ep)})]),di.config({contextual:{lazyContext:()=>R.some(Fa(St(r.getContentAreaContainer()))),fadeInClass:"tox-dialog-dock-fadein",fadeOutClass:"tox-dialog-dock-fadeout",transitionClass:"tox-dialog-dock-transition"},modes:["top","bottom"],lazyViewport:ye=>ff(r,ye.element).map(we=>({bounds:Oh(we),optScrollEnv:R.some({currentScrollTop:we.element.dom.scrollTop,scrollElmTop:Or(we.element).top})})).getOrThunk(()=>({bounds:Ua(),optScrollEnv:R.none()}))})]),isExtraPart:(ye,we)=>BN(we)}));return le.set(ue),Rs.showWithinBounds(ue,Tc(X.dialog),{anchor:S},()=>e.backstages.popup.shared.getSink().toOptional().bind(ye=>{const we=ff(r,ye.element).map(Qt=>Oh(Qt)).getOr(Ua()),Ye=Fa(St(r.getContentAreaContainer())),Tt=Kc(Ye,we);return R.some(Ba(Tt.x,Tt.y,Tt.width,Tt.height-15))})),di.refresh(ue),r.on("ResizeEditor ScrollWindow ElementScroll ResizeWindow",te),X.instanceApi.setData(se),Dn.focusIn(X.dialog),X.instanceApi},w);return{open:(w,S,A)=>{if(!tn(S)){if(S.inline==="toolbar")return h(w,e.backstages.popup.shared.anchors.inlineDialog(),A,S);if(S.inline==="bottom")return x(w,e.backstages.popup.shared.anchors.inlineBottomDialog(),A,S);if(S.inline==="cursor")return h(w,e.backstages.popup.shared.anchors.cursor(),A,S)}return g(w,A)},openUrl:(w,S)=>((A,N)=>fv.openUrl(F=>{const $=iM(F,{closeWindow:()=>{kl.hide($.dialog),N($.instanceApi)}},r,e.backstages.dialog);return kl.show($.dialog),$.instanceApi},A))(w,S),alert:(w,S)=>{l.open(w,S)},close:w=>{w.close()},confirm:(w,S)=>{m.open(w,S)}}};fd.add("silver",e=>{(h=>{Ex(h),(x=>{const w=x.options.register,S=N=>co(N,io)?{value:SE(N),valid:!0}:{valid:!1,message:"Must be an array of strings."},A=N=>So(N)&&N>0?{value:N,valid:!0}:{valid:!1,message:"Must be a positive number."};w("color_map",{processor:S,default:["#BFEDD2","Light Green","#FBEEB8","Light Yellow","#F8CAC6","Light Red","#ECCAFA","Light Purple","#C2E0F4","Light Blue","#2DC26B","Green","#F1C40F","Yellow","#E03E2D","Red","#B96AD9","Purple","#3598DB","Blue","#169179","Dark Turquoise","#E67E23","Orange","#BA372A","Dark Red","#843FA1","Dark Purple","#236FA1","Dark Blue","#ECF0F1","Light Gray","#CED4D9","Medium Gray","#95A5A6","Gray","#7E8C8D","Dark Gray","#34495E","Navy Blue","#000000","Black","#ffffff","White"]}),w("color_map_background",{processor:S}),w("color_map_foreground",{processor:S}),w("color_cols",{processor:A,default:yy(x)}),w("color_cols_foreground",{processor:A,default:mw(x,Jg)}),w("color_cols_background",{processor:A,default:mw(x,uw)}),w("custom_colors",{processor:"boolean",default:!0}),w("color_default_foreground",{processor:"string",default:zh}),w("color_default_background",{processor:"string",default:zh})})(h),(x=>{const w=x.options.register;w("contextmenu_avoid_overlap",{processor:"string",default:""}),w("contextmenu_never_use_native",{processor:"boolean",default:!1}),w("contextmenu",{processor:S=>S===!1?{value:[],valid:!0}:io(S)||co(S,io)?{value:Dm(S),valid:!0}:{valid:!1,message:"Must be false or a string."},default:"link linkchecker image editimage table spellchecker configurepermanentpen"})})(h)})(e);let r=()=>Ua();const{dialogs:s,popups:l,renderUI:m}=x6(e,{getPopupSinkBounds:()=>r()});jE(e,l.backstage.shared);const g=cM({editor:e,backstages:{popup:l.backstage,dialog:s.backstage}});return{renderUI:()=>{const h=m();return ff(e,l.getMothership().element).each(x=>{r=()=>Oh(x)}),h},getWindowManagerImpl:me(g),getNotificationManagerImpl:()=>((h,x,w)=>{const S=x.backstage.shared,A=()=>{const N=Fa(St(h.getContentAreaContainer())),F=Ua(),$=mc(F.x,N.x,N.right),W=mc(F.y,N.y,N.bottom),se=Math.max(N.right,F.right),le=Math.max(N.bottom,F.bottom);return R.some(Ba($,W,se-$,le-W))};return{open:(N,F)=>{const $=()=>{F(),Rs.hide(se)},W=yl(q1.sketch({text:N.text,level:Rt(["success","error","warning","warn","info"],N.type)?N.type:void 0,progress:N.progressBar===!0,icon:N.icon,closeButton:N.closeButton,onAction:$,iconProvider:S.providers.icons,translationProvider:S.providers.translate})),se=yl(Rs.sketch({dom:{tag:"div",classes:["tox-notifications-container"]},lazySink:S.getSink,fireDismissalEventInstead:{},...S.header.isPositionedAtTop()?{}:{fireRepositionEventInstead:{}}}));w.add(se),So(N.timeout)&&N.timeout>0&&hx.setEditorTimeout(h,()=>{$()},N.timeout);const le={close:$,reposition:()=>{const fe=Tc(W),te={maxHeightFunction:wg()},X=h.notificationManager.getNotifications();if(X[0]===le){const ue={...S.anchors.banner(),overrides:te};Rs.showWithinBounds(se,fe,{anchor:ue},A)}else ht(X,le).each(ue=>{const ye=X[ue-1].getEl(),we={type:"node",root:ws(),node:R.some(St(ye)),overrides:te,layouts:{onRtl:()=>[yi],onLtr:()=>[yi]}};Rs.showWithinBounds(se,fe,{anchor:we},A)})},text:fe=>{q1.updateText(W,fe)},settings:N,getEl:()=>W.element.dom,progressBar:{value:fe=>{q1.updateProgress(W,fe)}}};return le},close:N=>{N.close()},getArgs:N=>N.settings}})(e,{backstage:l.backstage},l.getMothership())}})})();(function(){var xo=tinymce.util.Tools.resolve("tinymce.ModelManager");const Ko=p=>b=>(_=>{const T=typeof _;return _===null?"null":T==="object"&&Array.isArray(_)?"array":T==="object"&&(L=I=_,(Z=String).prototype.isPrototypeOf(L)||((Y=I.constructor)===null||Y===void 0?void 0:Y.name)===Z.name)?"string":T;var L,I,Z,Y})(b)===p,Io=p=>b=>typeof b===p,on=p=>b=>p===b,Qo=Ko("string"),io=Ko("object"),Po=Ko("array"),jt=on(null),ko=Io("boolean"),Mo=on(void 0),jo=p=>!(b=>b==null)(p),tn=Io("function"),To=Io("number"),Ue=()=>{},it=p=>()=>p,So=p=>p,co=(p,b)=>p===b;function he(p,...b){return(..._)=>{const T=b.concat(_);return p.apply(null,T)}}const Dt=p=>b=>!p(b),fo=p=>p(),me=it(!1),Ze=it(!0);class de{constructor(b,_){this.tag=b,this.value=_}static some(b){return new de(!0,b)}static none(){return de.singletonNone}fold(b,_){return this.tag?_(this.value):b()}isSome(){return this.tag}isNone(){return!this.tag}map(b){return this.tag?de.some(b(this.value)):de.none()}bind(b){return this.tag?b(this.value):de.none()}exists(b){return this.tag&&b(this.value)}forall(b){return!this.tag||b(this.value)}filter(b){return!this.tag||b(this.value)?this:de.none()}getOr(b){return this.tag?this.value:b}or(b){return this.tag?this:b}getOrThunk(b){return this.tag?this.value:b()}orThunk(b){return this.tag?this:b()}getOrDie(b){if(this.tag)return this.value;throw new Error(b??"Called getOrDie on None")}static from(b){return jo(b)?de.some(b):de.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(b){this.tag&&b(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}de.singletonNone=new de(!1);const rt=Array.prototype.slice,Yo=Array.prototype.indexOf,$t=Array.prototype.push,gn=(p,b)=>{return _=p,T=b,Yo.call(_,T)>-1;var _,T},Bo=(p,b)=>{for(let _=0,T=p.length;_{const _=[];for(let T=0;T{const _=p.length,T=new Array(_);for(let L=0;L<_;L++){const I=p[L];T[L]=b(I,L)}return T},qe=(p,b)=>{for(let _=0,T=p.length;_{const _=[],T=[];for(let L=0,I=p.length;L{const _=[];for(let T=0,L=p.length;T(((T,L)=>{for(let I=T.length-1;I>=0;I--)L(T[I],I)})(p,(T,L)=>{_=b(_,T,L)}),_),ht=(p,b,_)=>(qe(p,(T,L)=>{_=b(_,T,L)}),_),Rt=(p,b)=>((_,T,L)=>{for(let I=0,Z=_.length;I{for(let _=0,T=p.length;_{const b=[];for(let _=0,T=p.length;_Bt(R(p,b)),dt=(p,b)=>{for(let _=0,T=p.length;_{const _={};for(let T=0,L=p.length;Tb>=0&&bCo(p,0),lo=p=>Co(p,p.length-1),zo=(p,b)=>{for(let _=0;_{const _=to(p);for(let T=0,L=_.length;Tgt(p,(_,T)=>({k:T,v:b(_,T)})),gt=(p,b)=>{const _={};return $e(p,(T,L)=>{const I=b(T,L);_[I.k]=I.v}),_},pe=(p,b)=>{const _=[];return $e(p,(T,L)=>{_.push(b(T,L))}),_},Oe=p=>pe(p,So),We=(p,b)=>Se.call(p,b),Fe=typeof window<"u"?window:Function("return this;")(),ge=(p,b)=>((_,T)=>{let L=T??Fe;for(let I=0;I<_.length&&L!=null;++I)L=L[_[I]];return L})(p.split("."),b),Me=Object.getPrototypeOf,at=p=>{const b=ge("ownerDocument.defaultView",p);return io(p)&&((_=>((T,L)=>{const I=((Z,Y)=>ge(Z,Y))(T,L);if(I==null)throw new Error(T+" not available on this browser");return I})("HTMLElement",_))(b).prototype.isPrototypeOf(p)||/^HTML\w*Element$/.test(Me(p).constructor.name))},ze=p=>p.dom.nodeName.toLowerCase(),Ge=p=>p.dom.nodeType,Gt=p=>b=>Ge(b)===p,Vt=p=>Ge(p)===8||ze(p)==="#comment",Xo=p=>$o(p)&&at(p.dom),$o=Gt(1),Zo=Gt(3),Gn=Gt(9),Pn=Gt(11),zn=p=>b=>$o(b)&&ze(b)===p,ut=(p,b,_)=>{if(!(Qo(_)||ko(_)||To(_)))throw console.error("Invalid call to Attribute.set. Key ",b,":: Value ",_,":: Element ",p),new Error("Attribute value was not simple");p.setAttribute(b,_+"")},zt=(p,b,_)=>{ut(p.dom,b,_)},Ft=(p,b)=>{const _=p.dom;$e(b,(T,L)=>{ut(_,L,T)})},vo=(p,b)=>{const _=p.dom.getAttribute(b);return _===null?void 0:_},Xt=(p,b)=>de.from(vo(p,b)),Vo=(p,b)=>{p.dom.removeAttribute(b)},$n=p=>ht(p.dom.attributes,(b,_)=>(b[_.name]=_.value,b),{}),Rr=p=>{if(p==null)throw new Error("Node cannot be null or undefined");return{dom:p}},Wt={fromHtml:(p,b)=>{const _=(b||document).createElement("div");if(_.innerHTML=p,!_.hasChildNodes()||_.childNodes.length>1){const T="HTML does not have a single root node";throw console.error(T,p),new Error(T)}return Rr(_.childNodes[0])},fromTag:(p,b)=>{const _=(b||document).createElement(p);return Rr(_)},fromText:(p,b)=>{const _=(b||document).createTextNode(p);return Rr(_)},fromDom:Rr,fromPoint:(p,b,_)=>de.from(p.dom.elementFromPoint(b,_)).map(Rr)},vr=(p,b)=>{const _=p.dom;if(_.nodeType!==1)return!1;{const T=_;if(T.matches!==void 0)return T.matches(b);if(T.msMatchesSelector!==void 0)return T.msMatchesSelector(b);if(T.webkitMatchesSelector!==void 0)return T.webkitMatchesSelector(b);if(T.mozMatchesSelector!==void 0)return T.mozMatchesSelector(b);throw new Error("Browser lacks native selectors")}},Fn=p=>p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11||p.childElementCount===0,ln=(p,b)=>{const _=b===void 0?document:b.dom;return Fn(_)?de.none():de.from(_.querySelector(p)).map(Wt.fromDom)},xr=(p,b)=>p.dom===b.dom,Ys=(p,b)=>{const _=p.dom,T=b.dom;return _!==T&&_.contains(T)},Yr=vr,Pa=p=>Wt.fromDom(p.dom.ownerDocument),cs=p=>Gn(p)?p:Pa(p),Ha=p=>de.from(p.dom.parentNode).map(Wt.fromDom),ja=p=>de.from(p.dom.parentElement).map(Wt.fromDom),$s=(p,b)=>{const _=tn(b)?b:me;let T=p.dom;const L=[];for(;T.parentNode!==null&&T.parentNode!==void 0;){const I=T.parentNode,Z=Wt.fromDom(I);if(L.push(Z),_(Z)===!0)break;T=I}return L},Us=p=>de.from(p.dom.previousSibling).map(Wt.fromDom),_a=p=>de.from(p.dom.nextSibling).map(Wt.fromDom),tt=p=>R(p.dom.childNodes,Wt.fromDom),_t=(p,b)=>{const _=p.dom.childNodes;return de.from(_[b]).map(Wt.fromDom)},Do=(p,b)=>{Ha(p).each(_=>{_.dom.insertBefore(b.dom,p.dom)})},St=(p,b)=>{_a(p).fold(()=>{Ha(p).each(_=>{kr(_,b)})},_=>{Do(_,b)})},zr=(p,b)=>{(T=>_t(T,0))(p).fold(()=>{kr(p,b)},T=>{p.dom.insertBefore(b.dom,T.dom)})},kr=(p,b)=>{p.dom.appendChild(b.dom)},Is=(p,b)=>{Do(p,b),kr(b,p)},Xr=(p,b)=>{qe(b,(_,T)=>{const L=T===0?p:b[T-1];St(L,_)})},gr=(p,b)=>{qe(b,_=>{kr(p,_)})},De=p=>{p.dom.textContent="",qe(tt(p),b=>{Ae(b)})},Ae=p=>{const b=p.dom;b.parentNode!==null&&b.parentNode.removeChild(b)},wt=p=>{const b=tt(p);b.length>0&&Xr(p,b),Ae(p)},It=(p,b)=>Wt.fromDom(p.dom.cloneNode(b)),dn=p=>It(p,!1),nn=p=>It(p,!0),sr=(p,b)=>{const _=Wt.fromTag(b),T=$n(p);return Ft(_,T),_},Vr=["tfoot","thead","tbody","colgroup"],Br=(p,b,_)=>({element:p,rowspan:b,colspan:_}),Jo=(p,b,_)=>({element:p,cells:b,section:_}),Ce=(p,b,_)=>({element:p,isNew:b,isLocked:_}),Ne=(p,b,_,T)=>({element:p,cells:b,section:_,isNew:T}),Zt=tn(Element.prototype.attachShadow)&&tn(Node.prototype.getRootNode),Lo=it(Zt),Ho=Zt?p=>Wt.fromDom(p.dom.getRootNode()):cs,rn=p=>Wt.fromDom(p.dom.host),Go=p=>{const b=Zo(p)?p.dom.parentNode:p.dom;if(b==null||b.ownerDocument===null)return!1;const _=b.ownerDocument;return(I=>{const Z=Ho(I);return Pn(Y=Z)&&jo(Y.dom.host)?de.some(Z):de.none();var Y})(Wt.fromDom(b)).fold(()=>_.body.contains(b),(T=Go,L=rn,I=>T(L(I))));var T,L},hn=p=>{const b=p.dom.body;if(b==null)throw new Error("Body is not available yet");return Wt.fromDom(b)},wn=(p,b)=>{let _=[];return qe(tt(p),T=>{b(T)&&(_=_.concat([T])),_=_.concat(wn(T,b))}),_},Un=(p,b,_)=>((T,L,I)=>lt($s(T,I),Z=>vr(Z,b)))(p,0,_),Ar=(p,b)=>((_,T)=>lt(tt(_),L=>vr(L,b)))(p),ra=(p,b)=>((_,T)=>{const L=T===void 0?document:T.dom;return Fn(L)?[]:R(L.querySelectorAll(_),Wt.fromDom)})(b,p);var Xs=(p,b,_,T,L)=>p(_,T)?de.some(_):tn(L)&&L(_)?de.none():b(_,T,L);const Zs=(p,b,_)=>{let T=p.dom;const L=tn(_)?_:me;for(;T.parentNode;){T=T.parentNode;const I=Wt.fromDom(T);if(b(I))return de.some(I);if(L(I))break}return de.none()},mi=(p,b,_)=>Xs((T,L)=>L(T),Zs,p,b,_),Wr=(p,b,_)=>Zs(p,T=>vr(T,b),_),rr=(p,b)=>((_,T)=>Rt(_.dom.childNodes,L=>{return I=Wt.fromDom(L),vr(I,b);var I}).map(Wt.fromDom))(p),Sr=(p,b)=>ln(b,p),va=(p,b,_)=>Xs((T,L)=>vr(T,L),Wr,p,b,_),Cs=(p,b,_=co)=>p.exists(T=>_(T,b)),za=p=>{const b=[],_=T=>{b.push(T)};for(let T=0;Tp?de.some(b):de.none(),As=(p,b,_)=>b===""||p.length>=b.length&&p.substr(_,_+b.length)===b,Aa=(p,b,_=0,T)=>{const L=p.indexOf(b,_);return L!==-1&&(!!Mo(T)||L+b.length<=T)},Kn=(p,b)=>As(p,b,0),Os=(p,b)=>As(p,b,p.length-b.length),Ma=(p=>b=>b.replace(p,""))(/^\s+|\s+$/g),Ca=p=>p.length>0,ds=p=>p.style!==void 0&&tn(p.style.getPropertyValue),xa=(p,b,_)=>{if(!Qo(_))throw console.error("Invalid call to CSS.set. Property ",b,":: Value ",_,":: Element ",p),new Error("CSS value must be a string: "+_);ds(p)&&p.style.setProperty(b,_)},Rn=(p,b,_)=>{const T=p.dom;xa(T,b,_)},Hi=(p,b)=>{const _=p.dom;$e(b,(T,L)=>{xa(_,L,T)})},Bn=(p,b)=>{const _=p.dom,T=window.getComputedStyle(_).getPropertyValue(b);return T!==""||Go(p)?T:ji(_,b)},ji=(p,b)=>ds(p)?p.style.getPropertyValue(b):"",go=(p,b)=>{const _=p.dom,T=ji(_,b);return de.from(T).filter(L=>L.length>0)},aa=(p,b)=>{((_,T)=>{ds(_)&&_.style.removeProperty(T)})(p.dom,b),Cs(Xt(p,"style").map(Ma),"")&&Vo(p,"style")},Ss=(p,b,_=0)=>Xt(p,b).map(T=>parseInt(T,10)).getOr(_),Ir=(p,b)=>Ss(p,b,1),gi=p=>zn("col")(p)?Ss(p,"span",1)>1:Ir(p,"colspan")>1,sc=p=>Ir(p,"rowspan")>1,Pr=(p,b)=>parseInt(Bn(p,b),10),ne=it(10),Be=it(10),Pe=(p,b)=>Nt(p,b,Ze),Nt=(p,b,_)=>V(tt(p),T=>vr(T,b)?_(T)?[T]:[]:Nt(T,b,_)),ho=(p,b)=>((_,T,L=me)=>L(T)?de.none():gn(_,ze(T))?de.some(T):Wr(T,_.join(","),I=>vr(I,"table")||L(I)))(["td","th"],p,b),bn=p=>Pe(p,"th,td"),kn=p=>vr(p,"colgroup")?Ar(p,"col"):V(Sa(p),b=>Ar(b,"col")),_r=(p,b)=>va(p,"table",b),Or=p=>Pe(p,"tr"),Sa=p=>_r(p).fold(it([]),b=>Ar(b,"colgroup")),ma=(p,b)=>R(p,_=>{if(ze(_)==="colgroup"){const T=R(kn(_),L=>{const I=Ss(L,"span",1);return Br(L,1,I)});return Jo(_,T,"colgroup")}{const T=R(bn(_),L=>{const I=Ss(L,"rowspan",1),Z=Ss(L,"colspan",1);return Br(L,I,Z)});return Jo(_,T,b(_))}}),Ga=p=>Ha(p).map(b=>{const _=ze(b);return(T=>gn(Vr,T))(_)?_:"tbody"}).getOr("tbody"),Q=p=>{const b=Or(p),_=[...Sa(p),...b];return ma(_,Ga)},Ee=p=>{let b,_=!1;return(...T)=>(_||(_=!0,b=p.apply(null,T)),b)},bt=()=>wo(0,0),wo=(p,b)=>({major:p,minor:b}),Zn={nu:wo,detect:(p,b)=>{const _=String(b).toLowerCase();return p.length===0?bt():((T,L)=>{const I=((Y,ae)=>{for(let be=0;beNumber(L.replace(I,"$"+Y));return wo(Z(1),Z(2))})(p,_)},unknown:bt},U=(p,b)=>{const _=String(b).toLowerCase();return Rt(p,T=>T.search(_))},oe=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,xe=p=>b=>Aa(b,p),xt=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:p=>Aa(p,"edge/")&&Aa(p,"chrome")&&Aa(p,"safari")&&Aa(p,"applewebkit")},{name:"Chromium",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,oe],search:p=>Aa(p,"chrome")&&!Aa(p,"chromeframe")},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:p=>Aa(p,"msie")||Aa(p,"trident")},{name:"Opera",versionRegexes:[oe,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:xe("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:xe("firefox")},{name:"Safari",versionRegexes:[oe,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:p=>(Aa(p,"safari")||Aa(p,"mobile/"))&&Aa(p,"applewebkit")}],po=[{name:"Windows",search:xe("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:p=>Aa(p,"iphone")||Aa(p,"ipad"),versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:xe("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"macOS",search:xe("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:xe("linux"),versionRegexes:[]},{name:"Solaris",search:xe("sunos"),versionRegexes:[]},{name:"FreeBSD",search:xe("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:xe("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],Yn={browsers:it(xt),oses:it(po)},ga="Edge",ks="Chromium",_i="Opera",Js="Firefox",Vi="Safari",Qs=p=>{const b=p.current,_=p.version,T=L=>()=>b===L;return{current:b,version:_,isEdge:T(ga),isChromium:T(ks),isIE:T("IE"),isOpera:T(_i),isFirefox:T(Js),isSafari:T(Vi)}},ic=()=>Qs({current:void 0,version:Zn.unknown()}),_s=Qs,vc="Windows",je="Android",Ll="Linux",pd="macOS",Ci="Solaris",bp="FreeBSD",sa="ChromeOS",lc=p=>{const b=p.current,_=p.version,T=L=>()=>b===L;return{current:b,version:_,isWindows:T(vc),isiOS:T("iOS"),isAndroid:T(je),isMacOS:T(pd),isLinux:T(Ll),isSolaris:T(Ci),isFreeBSD:T(bp),isChromeOS:T(sa)}},ag=()=>lc({current:void 0,version:Zn.unknown()}),Si=lc,Gc=p=>window.matchMedia(p).matches;let Gi=Ee(()=>((p,b,_)=>{const T=Yn.browsers(),L=Yn.oses(),I=b.bind(ae=>((be,Le)=>zo(Le.brands,_e=>{const Re=_e.brand.toLowerCase();return Rt(be,Xe=>{var Et;return Re===((Et=Xe.brand)===null||Et===void 0?void 0:Et.toLowerCase())}).map(Xe=>({current:Xe.name,version:Zn.nu(parseInt(_e.version,10),0)}))}))(T,ae)).orThunk(()=>((ae,be)=>U(ae,be).map(Le=>{const _e=Zn.detect(Le.versionRegexes,be);return{current:Le.name,version:_e}}))(T,p)).fold(ic,_s),Z=((ae,be)=>U(ae,be).map(Le=>{const _e=Zn.detect(Le.versionRegexes,be);return{current:Le.name,version:_e}}))(L,p).fold(ag,Si),Y=((ae,be,Le,_e)=>{const Re=ae.isiOS()&&/ipad/i.test(Le)===!0,Xe=ae.isiOS()&&!Re,Et=ae.isiOS()||ae.isAndroid(),vt=Et||_e("(pointer:coarse)"),qt=Re||!Xe&&Et&&_e("(min-device-width:768px)"),eo=Xe||Et&&!qt,bo=be.isSafari()&&ae.isiOS()&&/safari/i.test(Le)===!1,ao=!eo&&!qt&&!bo;return{isiPad:it(Re),isiPhone:it(Xe),isTablet:it(qt),isPhone:it(eo),isTouch:it(vt),isAndroid:ae.isAndroid,isiOS:ae.isiOS,isWebView:it(bo),isDesktop:it(ao)}})(Z,I,p,_);return{browser:I,os:Z,deviceType:Y}})(navigator.userAgent,de.from(navigator.userAgentData),Gc));const Il=()=>Gi(),Yl=(p,b)=>{const _=L=>{const I=b(L);if(I<=0||I===null){const Z=Bn(L,p);return parseFloat(Z)||0}return I},T=(L,I)=>ht(I,(Z,Y)=>{const ae=Bn(L,Y),be=ae===void 0?0:parseInt(ae,10);return isNaN(be)?Z:Z+be},0);return{set:(L,I)=>{if(!To(I)&&!I.match(/^[0-9]+$/))throw new Error(p+".set accepts only positive integer values. Value was "+I);const Z=L.dom;ds(Z)&&(Z.style[p]=I+"px")},get:_,getOuter:_,aggregate:T,max:(L,I,Z)=>{const Y=T(L,Z);return I>Y?I-Y:0}}},Ki=(p,b,_)=>((T,L)=>(I=>{const Z=parseFloat(I);return isNaN(Z)?de.none():de.some(Z)})(T).getOr(L))(Bn(p,b),_),ie=Yl("width",p=>p.dom.offsetWidth),ve=p=>ie.get(p),yt=p=>ie.getOuter(p),Lt=p=>((b,_)=>{const T=b.dom,L=T.getBoundingClientRect().width||T.offsetWidth;return _==="border-box"?L:((I,Z,Y,ae)=>Z-Ki(I,`padding-${Y}`,0)-Ki(I,`padding-${ae}`,0)-Ki(I,`border-${Y}-width`,0)-Ki(I,`border-${ae}-width`,0))(b,L,"left","right")})(p,"content-box"),yn=(p,b,_)=>{const T=p.cells,L=T.slice(0,b),I=T.slice(b),Z=L.concat(_).concat(I);return ei(p,Z)},ur=(p,b,_)=>yn(p,b,[_]),Ra=(p,b,_)=>{p.cells[b]=_},ei=(p,b)=>Ne(p.element,b,p.section,p.isNew),ia=(p,b)=>p.cells[b],pa=(p,b)=>ia(p,b).element,Ps=p=>p.cells.length,ta=p=>{const b=Je(p,_=>_.section==="colgroup");return{rows:b.fail,cols:b.pass}},cc=(p,b,_)=>{const T=R(p.cells,_);return Ne(b(p.element),T,p.section,!0)},Xl="data-snooker-locked-cols",Ei=p=>Xt(p,Xl).bind(b=>de.from(b.match(/\d+/g))).map(b=>Ie(b,Ze)),xc=p=>{const b=ht(ta(p).rows,(T,L)=>(qe(L.cells,(I,Z)=>{I.isLocked&&(T[Z]=!0)}),T),{}),_=pe(b,(T,L)=>parseInt(L,10));return((T,L)=>{const I=rt.call(T,0);return I.sort(void 0),I})(_)},Es=(p,b)=>p+","+b,Ba=(p,b)=>{const _=V(p.all,T=>T.cells);return lt(_,b)},Fa=p=>{const b={},_=[],T=Pt(p).map(Re=>Re.element).bind(_r).bind(Ei).getOr({});let L=0,I=0,Z=0;const{pass:Y,fail:ae}=Je(p,Re=>Re.section==="colgroup");qe(ae,Re=>{const Xe=[];qe(Re.cells,Et=>{let vt=0;for(;b[Es(Z,vt)]!==void 0;)vt++;const qt=((bo,ao)=>We(bo,ao)&&bo[ao]!==void 0&&bo[ao]!==null)(T,vt.toString()),eo=((bo,ao,Eo,Ro,No,Ln)=>({element:bo,rowspan:ao,colspan:Eo,row:Ro,column:No,isLocked:Ln}))(Et.element,Et.rowspan,Et.colspan,Z,vt,qt);for(let bo=0;bo{const Xe=(vt=>{const qt={};let eo=0;return qe(vt.cells,bo=>{const ao=bo.colspan;Ct(ao,Eo=>{const Ro=eo+Eo;qt[Ro]=((No,Ln,qn)=>({element:No,colspan:Ln,column:qn}))(bo.element,ao,Ro)}),eo+=ao}),qt})(Re);return{colgroups:[((vt,qt)=>({element:vt,columns:qt}))(Re.element,Oe(Xe))],columns:Xe}}).getOrThunk(()=>({colgroups:[],columns:{}}));return{grid:((Re,Xe)=>({rows:Re,columns:Xe}))(L,I),access:b,all:_,columns:be,colgroups:Le}},ts=p=>{const b=Q(p);return Fa(b)},Kc=Fa,Ua=(p,b,_)=>de.from(p.access[Es(b,_)]),fd=(p,b,_)=>{const T=Ba(p,L=>_(b,L.element));return T.length>0?de.some(T[0]):de.none()},Yc=Ba,nl=p=>V(p.all,b=>b.cells),Fr=p=>Oe(p.columns),ti=p=>to(p.columns).length>0,Zd=(p,b)=>de.from(p.columns[b]),hd=(p,b=Ze)=>{const _=p.grid,T=Ct(_.columns,So),L=Ct(_.rows,So);return R(T,I=>qd(()=>V(L,Z=>Ua(p,Z,I).filter(Y=>Y.column===I).toArray()),Z=>Z.colspan===1&&b(Z.element),()=>Ua(p,0,I)))},qd=(p,b,_)=>{const T=p();return Rt(T,b).orThunk(()=>de.from(T[0]).orThunk(_)).map(L=>L.element)},Yi=p=>{const b=p.grid,_=Ct(b.rows,So),T=Ct(b.columns,So);return R(_,L=>qd(()=>V(T,I=>Ua(p,L,I).filter(Z=>Z.row===L).fold(it([]),Z=>[Z])),I=>I.rowspan===1,()=>Ua(p,L,0)))},Mc=(p,b)=>_=>om(_)==="rtl"?b:p,om=p=>Bn(p,"direction")==="rtl"?"rtl":"ltr",_u=Yl("height",p=>{const b=p.dom;return Go(p)?b.getBoundingClientRect().height:b.offsetHeight}),Wd=p=>_u.get(p),rl=p=>_u.getOuter(p),Da=(p,b)=>({left:p,top:b,translate:(_,T)=>Da(p+_,b+T)}),Jl=Da,os=(p,b)=>p!==void 0?p:b!==void 0?b:0,Dc=p=>{const b=p.dom.ownerDocument,_=b.body,T=b.defaultView,L=b.documentElement;if(_===p.dom)return Jl(_.offsetLeft,_.offsetTop);const I=os(T==null?void 0:T.pageYOffset,L.scrollTop),Z=os(T==null?void 0:T.pageXOffset,L.scrollLeft),Y=os(L.clientTop,_.clientTop),ae=os(L.clientLeft,_.clientLeft);return dc(p).translate(Z-ae,I-Y)},dc=p=>{const b=p.dom,_=b.ownerDocument.body;return _===b?Jl(_.offsetLeft,_.offsetTop):Go(p)?(T=>{const L=T.getBoundingClientRect();return Jl(L.left,L.top)})(b):Jl(0,0)},bd=(p,b)=>({row:p,y:b}),Ea=(p,b)=>({col:p,x:b}),_l=p=>Dc(p).left+yt(p),Xc=p=>Dc(p).left,yd=(p,b)=>Ea(p,Xc(b)),wc=(p,b)=>Ea(p,_l(b)),Jc=p=>Dc(p).top,Gd=(p,b)=>bd(p,Jc(b)),vd=(p,b)=>bd(p,Jc(b)+rl(b)),pi=(p,b,_)=>{if(_.length===0)return[];const T=R(_.slice(1),(I,Z)=>I.map(Y=>p(Z,Y))),L=_[_.length-1].map(I=>b(_.length-1,I));return T.concat([L])},Cn={delta:So,positions:p=>pi(Gd,vd,p),edge:Jc},Ql=Mc({delta:So,edge:Xc,positions:p=>pi(yd,wc,p)},{delta:p=>-p,edge:_l,positions:p=>pi(wc,yd,p)}),ec={delta:(p,b)=>Ql(b).delta(p,b),positions:(p,b)=>Ql(b).positions(p,b),edge:p=>Ql(p).edge(p)},yp={unsupportedLength:["em","ex","cap","ch","ic","rem","lh","rlh","vw","vh","vi","vb","vmin","vmax","cm","mm","Q","in","pc","pt","px"],fixed:["px","pt"],relative:["%"],empty:[""]},Kd=(()=>{const p="[0-9]+",b="[eE][+-]?"+p,_=L=>`(?:${L})?`,T=["Infinity",p+"\\."+_(p)+_(b),"\\."+p+_(b),p+_(b)].join("|");return new RegExp(`^([+-]?(?:${T}))(.*)$`)})(),Cl=/(\d+(\.\d+)?)%/,nm=/(\d+(\.\d+)?)px|em/,rm=zn("col"),wa=(p,b,_)=>{const T=ja(p).getOrThunk(()=>hn(Pa(p)));return b(p)/_(T)*100},Qc=(p,b)=>{Rn(p,"width",b+"px")},Ns=(p,b)=>{Rn(p,"width",b+"%")},kc=(p,b)=>{Rn(p,"height",b+"px")},Rm=p=>{const b=(_=>{return Ki(T=_,"height",T.dom.offsetHeight)+"px";var T})(p);return b?((_,T,L,I)=>{const Z=parseFloat(_);return Os(_,"%")&&ze(T)!=="table"?((Y,ae,be,Le)=>{const _e=_r(Y).map(Re=>{const Xe=be(Re);return Math.floor(ae/100*Xe)}).getOr(ae);return Le(Y,_e),_e})(T,Z,L,I):Z})(b,p,Wd,kc):Wd(p)},an=(p,b)=>go(p,b).orThunk(()=>Xt(p,b).map(_=>_+"px")),Ti=p=>an(p,"width"),Cu=p=>wa(p,ve,Lt),ka=p=>{return rm(p)?ve(p):Ki(b=p,"width",b.dom.offsetWidth);var b},Sl=p=>((b,_,T)=>T(b)/Ir(b,"rowspan"))(p,0,Rm),fi=(p,b,_)=>{Rn(p,"width",b+_)},El=p=>wa(p,ve,Lt)+"%",Ms=it(Cl),Su=zn("col"),oi=p=>Ti(p).getOrThunk(()=>ka(p)+"px"),ro=p=>{return(b=p,an(b,"height")).getOrThunk(()=>Sl(p)+"px");var b},Eu=(p,b,_,T,L,I)=>p.filter(T).fold(()=>I(((Z,Y)=>{if(Y<0||Y>=Z.length-1)return de.none();const ae=Z[Y].fold(()=>{const Le=(_e=>{const Re=rt.call(_e,0);return Re.reverse(),Re})(Z.slice(0,Y));return zo(Le,(_e,Re)=>_e.map(Xe=>({value:Xe,delta:Re+1})))},Le=>de.some({value:Le,delta:0})),be=Z[Y+1].fold(()=>{const Le=Z.slice(Y+1);return zo(Le,(_e,Re)=>_e.map(Xe=>({value:Xe,delta:Re+1})))},Le=>de.some({value:Le,delta:1}));return ae.bind(Le=>be.map(_e=>{const Re=_e.delta+Le.delta;return Math.abs(_e.value-Le.value)/Re}))})(_,b)),Z=>L(Z)),Yt=(p,b,_,T)=>{const L=hd(p),I=ti(p)?(ae=>R(Fr(ae),be=>de.from(be.element)))(p):L,Z=[de.some(ec.edge(b))].concat(R(ec.positions(L,b),ae=>ae.map(be=>be.x))),Y=Dt(gi);return R(I,(ae,be)=>Eu(ae,be,Z,Y,Le=>{if((Re=>{const Xe=Il().browser,Et=Xe.isChromium()||Xe.isFirefox();return!Su(Re)||Et})(Le))return _(Le);{const Re=(_e=L[be])!=null?So(_e):de.none();return Eu(Re,be,Z,Y,Xe=>T(de.some(ve(Xe))),T)}var _e},T))},ni=p=>p.map(b=>b+"px").getOr(""),xd=(p,b,_)=>Yt(p,b,ka,T=>T.getOrThunk(_.minCellWidth)),us=(p,b,_,T,L)=>{const I=Yi(p),Z=[de.some(_.edge(b))].concat(R(_.positions(I,b),Y=>Y.map(ae=>ae.y)));return R(I,(Y,ae)=>Eu(Y,ae,Z,Dt(sc),T,L))},da=(p,b)=>()=>Go(p)?b(p):parseFloat(go(p,"width").getOr("0")),ml=p=>{const b=da(p,T=>parseFloat(El(T))),_=da(p,ve);return{width:b,pixelWidth:_,getWidths:(T,L)=>((I,Z,Y)=>Yt(I,Z,Cu,ae=>ae.fold(()=>Y.minCellWidth(),be=>be/Y.pixelWidth()*100)))(T,p,L),getCellDelta:T=>T/_()*100,singleColumnWidth:(T,L)=>[100-T],minCellWidth:()=>ne()/_()*100,setElementWidth:Ns,adjustTableWidth:T=>{const L=b();Ns(p,L+T/100*L)},isRelative:!0,label:"percent"}},zi=p=>{const b=da(p,ve);return{width:b,pixelWidth:b,getWidths:(_,T)=>xd(_,p,T),getCellDelta:So,singleColumnWidth:(_,T)=>[Math.max(ne(),_+T)-_],minCellWidth:ne,setElementWidth:Qc,adjustTableWidth:_=>{const T=b()+_;Qc(p,T)},isRelative:!1,label:"pixel"}},Oa=p=>Ti(p).fold(()=>(b=>{const _=da(b,ve),T=it(0);return{width:_,pixelWidth:_,getWidths:(L,I)=>xd(L,b,I),getCellDelta:T,singleColumnWidth:it([0]),minCellWidth:T,setElementWidth:Ue,adjustTableWidth:Ue,isRelative:!0,label:"none"}})(p),b=>((_,T)=>Ms().exec(T)!==null?ml(_):zi(_))(p,b)),al=zi,la=ml,$i=(p,b,_)=>{const T=p[_].element,L=Wt.fromTag("td");kr(L,Wt.fromTag("br")),(b?kr:zr)(T,L)},Yd=((p,b)=>{const _=T=>p(T)?de.from(T.dom.nodeValue):de.none();return{get:T=>{if(!p(T))throw new Error("Can only get text value of a text node");return _(T).getOr("")},getOption:_,set:(T,L)=>{if(!p(T))throw new Error("Can only set raw text value of a text node");T.dom.nodeValue=L}}})(Zo),Hs=p=>Yd.get(p),sg=p=>Yd.getOption(p),Tl=(p,b)=>Yd.set(p,b),ns=p=>ze(p)==="img"?1:sg(p).fold(()=>tt(p).length,b=>b.length),gl=["img","br"],ft=p=>sg(p).filter(b=>b.trim().length!==0||b.indexOf(" ")>-1).isSome()||gn(gl,ze(p))||(b=>Xo(b)&&vo(b,"contenteditable")==="false")(p),Ai=p=>((b,_)=>{const T=L=>{for(let I=0;Izl(p,ft),zl=(p,b)=>{const _=T=>{const L=tt(T);for(let I=L.length-1;I>=0;I--){const Z=L[I];if(b(Z))return de.some(Z);const Y=_(Z);if(Y.isSome())return Y}return de.none()};return _(p)},pl={scope:["row","col"]},ri=p=>()=>{const b=Wt.fromTag("td",p.dom);return kr(b,Wt.fromTag("br",p.dom)),b},hs=p=>()=>Wt.fromTag("col",p.dom),uc=p=>()=>Wt.fromTag("colgroup",p.dom),Bm=p=>()=>Wt.fromTag("tr",p.dom),Sn=(p,b,_)=>{const T=((L,I)=>{const Z=sr(L,I),Y=tt(nn(L));return gr(Z,Y),Z})(p,b);return $e(_,(L,I)=>{L===null?Vo(T,I):zt(T,I,L)}),T},Ui=p=>p,Xi=(p,b,_)=>{const T=(L,I)=>{((Z,Y)=>{const ae=Z.dom,be=Y.dom;ds(ae)&&ds(be)&&(be.style.cssText=ae.style.cssText)})(L.element,I),aa(I,"height"),L.colspan!==1&&aa(I,"width")};return{col:L=>{const I=Wt.fromTag(ze(L.element),b.dom);return T(L,I),p(L.element,I),I},colgroup:uc(b),row:Bm(b),cell:L=>{const I=Wt.fromTag(ze(L.element),b.dom),Z=_.getOr(["strong","em","b","i","span","font","h1","h2","h3","h4","h5","h6","p","div"]),Y=Z.length>0?((ae,be,Le)=>Ai(ae).map(_e=>{const Re=Le.join(","),Xe=Un(_e,Re,Et=>xr(Et,ae));return Mt(Xe,(Et,vt)=>{const qt=dn(vt);return kr(Et,qt),qt},be)}).getOr(be))(L.element,I,Z):I;return kr(Y,Wt.fromTag("br")),T(L,I),((ae,be)=>{$e(pl,(Le,_e)=>Xt(ae,_e).filter(Re=>gn(Le,Re)).each(Re=>zt(be,_e,Re)))})(L.element,I),p(L.element,I),I},replace:Sn,colGap:hs(b),gap:ri(b)}},Oi=p=>({col:hs(p),colgroup:uc(p),row:Bm(p),cell:ri(p),replace:Ui,colGap:hs(p),gap:ri(p)}),Za=p=>b=>b.options.get(p),_c="100%",qs=p=>{var b;const _=p.dom,T=(b=_.getParent(p.selection.getStart(),_.isBlock))!==null&&b!==void 0?b:p.getBody();return Lt(Wt.fromDom(T))+"px"},Tu=p=>de.from(p.options.get("table_clone_elements")),kd=Za("table_header_type"),Pl=Za("table_column_resizing"),bs=p=>Pl(p)==="preservetable",Ws=p=>Pl(p)==="resizetable",ed=Za("table_sizing_mode"),Hl=p=>ed(p)==="relative",_d=p=>ed(p)==="fixed",ai=p=>ed(p)==="responsive",z=Za("table_resize_bars"),H=Za("table_style_by_css"),J=Za("table_merge_content_on_paste"),Te=p=>{const b=p.options,_=b.get("table_default_attributes");return b.isSet("table_default_attributes")?_:((T,L)=>ai(T)||H(T)?L:_d(T)?{...L,width:qs(T)}:{...L,width:_c})(p,_)},He=Za("table_use_colgroups"),_o=p=>va(p,"[contenteditable]"),fn=(p,b=!1)=>Go(p)?p.dom.isContentEditable:_o(p).fold(it(b),_=>ir(_)==="true"),ir=p=>p.dom.contentEditable,Hn=p=>Wt.fromDom(p.getBody()),Tn=p=>b=>xr(b,Hn(p)),fa=p=>{Vo(p,"data-mce-style");const b=_=>Vo(_,"data-mce-style");qe(bn(p),b),qe(kn(p),b),qe(Or(p),b)},Ka=p=>Wt.fromDom(p.selection.getStart()),Ni=p=>p.getBoundingClientRect().width,td=p=>p.getBoundingClientRect().height,Bf=p=>mi(p,zn("table")).exists(fn),ss=(p,b)=>{const _=b.column,T=b.column+b.colspan-1,L=b.row,I=b.row+b.rowspan-1;return _<=p.finishCol&&T>=p.startCol&&L<=p.finishRow&&I>=p.startRow},xv=(p,b)=>b.column>=p.startCol&&b.column+b.colspan-1<=p.finishCol&&b.row>=p.startRow&&b.row+b.rowspan-1<=p.finishRow,Xd=(p,b,_)=>{const T=fd(p,b,xr),L=fd(p,_,xr);return T.bind(I=>L.map(Z=>{return Y=I,ae=Z,{startRow:Math.min(Y.row,ae.row),startCol:Math.min(Y.column,ae.column),finishRow:Math.max(Y.row+Y.rowspan-1,ae.row+ae.rowspan-1),finishCol:Math.max(Y.column+Y.colspan-1,ae.column+ae.colspan-1)};var Y,ae}))},vp=(p,b,_)=>Xd(p,b,_).map(T=>{const L=Yc(p,he(ss,T));return R(L,I=>I.element)}),am=(p,b)=>fd(p,b,(_,T)=>Ys(T,_)).map(_=>_.element),Cd=(p,b,_)=>{const T=Jd(p);return vp(T,b,_)},fl=(p,b,_,T,L)=>{const I=Jd(p),Z=xr(p,_)?de.some(b):am(I,b),Y=xr(p,L)?de.some(T):am(I,T);return Z.bind(ae=>Y.bind(be=>vp(I,ae,be)))},Jd=ts;var Fm=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","li","table","thead","tbody","tfoot","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],ys=()=>({up:it({selector:Wr,closest:va,predicate:Zs,all:$s}),down:it({selector:ra,predicate:wn}),styles:it({get:Bn,getRaw:go,set:Rn,remove:aa}),attrs:it({get:vo,set:zt,remove:Vo,copyTo:(p,b)=>{const _=$n(p);Ft(b,_)}}),insert:it({before:Do,after:St,afterAll:Xr,append:kr,appendAll:gr,prepend:zr,wrap:Is}),remove:it({unwrap:wt,remove:Ae}),create:it({nu:Wt.fromTag,clone:p=>Wt.fromDom(p.dom.cloneNode(!1)),text:Wt.fromText}),query:it({comparePosition:(p,b)=>p.dom.compareDocumentPosition(b.dom),prevSibling:Us,nextSibling:_a}),property:it({children:tt,name:ze,parent:Ha,document:p=>cs(p).dom,isText:Zo,isComment:Vt,isElement:$o,isSpecial:p=>{const b=ze(p);return gn(["script","noscript","iframe","noframes","noembed","title","style","textarea","xmp"],b)},getLanguage:p=>$o(p)?Xt(p,"lang"):de.none(),getText:Hs,setText:Tl,isBoundary:p=>!!$o(p)&&(ze(p)==="body"||gn(Fm,ze(p))),isEmptyTag:p=>!!$o(p)&&gn(["br","img","hr","input"],ze(p)),isNonEditable:p=>$o(p)&&vo(p,"contenteditable")==="false"}),eq:xr,is:Yr});const Sd=(p,b,_,T)=>{const L=b(p,_);return Mt(T,(I,Z)=>{const Y=b(p,Z);return ig(p,I,Y)},L)},ig=(p,b,_)=>b.bind(T=>_.filter(he(p.eq,T))),Lm=ys(),Ff=(p,b)=>((_,T,L)=>L.length>0?((I,Z,Y,ae)=>ae(I,Z,Y[0],Y.slice(1)))(_,T,L,Sd):de.none())(Lm,(_,T)=>p(T),b),Im=p=>Wr(p,"table"),zu=(p,b,_)=>{const T=L=>I=>_!==void 0&&_(I)||xr(I,L);return xr(p,b)?de.some({boxes:de.some([p]),start:p,finish:b}):Im(p).bind(L=>Im(b).bind(I=>{if(xr(L,I))return de.some({boxes:Cd(L,p,b),start:p,finish:b});if(Ys(L,I)){const Z=Un(b,"td,th",T(L)),Y=Z.length>0?Z[Z.length-1]:b;return de.some({boxes:fl(L,p,L,b,I),start:p,finish:Y})}if(Ys(I,L)){const Z=Un(p,"td,th",T(I)),Y=Z.length>0?Z[Z.length-1]:p;return de.some({boxes:fl(I,p,L,b,I),start:p,finish:Y})}return((Z,Y,ae)=>((be,Le,_e,Re=me)=>{const Xe=[Le].concat(be.up().all(Le)),Et=[_e].concat(be.up().all(_e)),vt=ao=>uo(ao,Re).fold(()=>ao,Eo=>ao.slice(0,Eo+1)),qt=vt(Xe),eo=vt(Et),bo=Rt(qt,ao=>Bo(eo,((Eo,Ro)=>he(Eo.eq,Ro))(be,ao)));return{firstpath:qt,secondpath:eo,shared:bo}})(Lm,Z,Y,void 0))(p,b).shared.bind(Z=>va(Z,"table",_).bind(Y=>{const ae=Un(b,"td,th",T(Y)),be=ae.length>0?ae[ae.length-1]:b,Le=Un(p,"td,th",T(Y)),_e=Le.length>0?Le[Le.length-1]:p;return de.some({boxes:fl(Y,p,L,b,I),start:_e,finish:be})}))}))},Au=(p,b)=>{const _=ra(p,b);return _.length>0?de.some(_):de.none()},Rc=(p,b,_)=>Sr(p,b).bind(T=>Sr(p,_).bind(L=>Ff(Im,[T,L]).map(I=>({first:T,last:L,table:I})))),sm=(p,b,_,T,L)=>((I,Z)=>Rt(I,Y=>vr(Y,Z)))(p,L).bind(I=>((Z,Y,ae)=>_r(Z).bind(be=>((Le,_e,Re,Xe)=>fd(Le,_e,xr).bind(Et=>{const vt=Re>0?Et.row+Et.rowspan-1:Et.row,qt=Xe>0?Et.column+Et.colspan-1:Et.column;return Ua(Le,vt+Re,qt+Xe).map(eo=>eo.element)}))(Jd(be),Z,Y,ae)))(I,b,_).bind(Z=>((Y,ae)=>Wr(Y,"table").bind(be=>Sr(be,ae).bind(Le=>zu(Le,Y).bind(_e=>_e.boxes.map(Re=>({boxes:Re,start:_e.start,finish:_e.finish}))))))(Z,T))),Ou=(p,b)=>Au(p,b),xp=(p,b,_)=>Rc(p,b,_).bind(T=>{const L=ae=>xr(p,ae),I="thead,tfoot,tbody,table",Z=Wr(T.first,I,L),Y=Wr(T.last,I,L);return Z.bind(ae=>Y.bind(be=>xr(ae,be)?((Le,_e,Re)=>((Xe,Et,vt)=>Xd(Xe,Et,vt).bind(qt=>((eo,bo)=>{let ao=!0;const Eo=he(xv,bo);for(let Ro=bo.startRow;Ro<=bo.finishRow;Ro++)for(let No=bo.startCol;No<=bo.finishCol;No++)ao=ao&&Ua(eo,Ro,No).exists(Eo);return ao?de.some(bo):de.none()})(Xe,qt)))(Jd(Le),_e,Re))(T.table,T.first,T.last):de.none()))}),lg=So,cg=p=>{const b=(_,T)=>Xt(_,T).exists(L=>parseInt(L,10)>1);return p.length>0&&dt(p,_=>b(_,"rowspan")||b(_,"colspan"))?de.some(p):de.none()},wp=(p,b,_)=>b.length<=1?de.none():xp(p,_.firstSelectedSelector,_.lastSelectedSelector).map(T=>({bounds:T,cells:b})),im="data-mce-selected",Ed="data-mce-first-selected",dg="data-mce-last-selected",Pm="["+im+"]",$r={selected:im,selectedSelector:"td["+im+"],th["+im+"]",firstSelected:Ed,firstSelectedSelector:"td["+Ed+"],th["+Ed+"]",lastSelected:dg,lastSelectedSelector:"td["+dg+"],th["+dg+"]"},_n=(p,b,_)=>({element:_,mergable:wp(b,p,$r),unmergable:cg(p),selection:lg(p)}),Qd=p=>(b,_)=>{const T=ze(b),L=T==="col"||T==="colgroup"?_r(I=b).bind(Z=>Ou(Z,$r.firstSelectedSelector)).fold(it(I),Z=>Z[0]):b;var I;return va(L,p,_)},kp=Qd("th,td,caption"),Hm=Qd("th,td"),Bc=p=>{return b=p.model.table.getSelectedCells(),R(b,Wt.fromDom);var b},qa=(p,b)=>{p.on("BeforeGetContent",_=>{const T=L=>{_.preventDefault(),(I=>_r(I[0]).map(Z=>{const Y=((ae,be)=>{const Le=ao=>vr(ao.element,be),_e=nn(ae),Re=Q(_e),Xe=Oa(ae),Et=Kc(Re),vt=((ao,Eo)=>{const Ro=ao.grid.columns;let No=ao.grid.rows,Ln=Ro,qn=0,Qr=0;const or=[],Mr=[];return $e(ao.access,Er=>{if(or.push(Er),Eo(Er)){Mr.push(Er);const ca=Er.row,zs=ca+Er.rowspan-1,il=Er.column,ii=il+Er.colspan-1;caqn&&(qn=zs),ilQr&&(Qr=ii)}}),((Er,ca,zs,il,ii,ql)=>({minRow:Er,minCol:ca,maxRow:zs,maxCol:il,allCells:ii,selectedCells:ql}))(No,Ln,qn,Qr,or,Mr)})(Et,Le),qt="th:not("+be+"),td:not("+be+")",eo=Nt(_e,"th,td",ao=>vr(ao,qt));qe(eo,Ae),((ao,Eo,Ro,No)=>{const Ln=lt(ao,or=>or.section!=="colgroup"),qn=Eo.grid.columns,Qr=Eo.grid.rows;for(let or=0;orRo.maxRow||ErRo.maxCol||(Ua(Eo,or,Er).filter(No).isNone()?$i(Ln,Mr,or):Mr=!0)}})(Re,Et,vt,Le);const bo=((ao,Eo,Ro,No)=>{if(No.minCol===0&&Eo.grid.columns===No.maxCol+1)return 0;const Ln=xd(Eo,ao,Ro),qn=ht(Ln,(Mr,Er)=>Mr+Er,0),Qr=ht(Ln.slice(No.minCol,No.maxCol+1),(Mr,Er)=>Mr+Er,0),or=Qr/qn*Ro.pixelWidth()-Ro.pixelWidth();return Ro.getCellDelta(or)})(ae,ts(ae),Xe,vt);return((ao,Eo,Ro,No)=>{$e(Ro.columns,qn=>{(qn.columnEo.maxCol)&&Ae(qn.element)});const Ln=lt(Pe(ao,"tr"),qn=>qn.dom.childElementCount===0);qe(Ln,Ae),Eo.minCol!==Eo.maxCol&&Eo.minRow!==Eo.maxRow||qe(Pe(ao,"th,td"),qn=>{Vo(qn,"rowspan"),Vo(qn,"colspan")}),Vo(ao,Xl),Vo(ao,"data-snooker-col-series"),Oa(ao).adjustTableWidth(No)})(_e,vt,Et,bo),_e})(Z,Pm);return fa(Y),[Y]}))(L).each(I=>{_.content=_.format==="text"?(Z=>R(Z,Y=>Y.dom.innerText).join(""))(I):((Z,Y)=>R(Y,ae=>Z.selection.serializer.serialize(ae.dom,{})).join(""))(p,I)})};if(_.selection===!0){const L=(I=>lt(Bc(I),Z=>vr(Z,$r.selectedSelector)))(p);L.length>=1&&T(L)}}),p.on("BeforeSetContent",_=>{if(_.selection===!0&&_.paste===!0){const T=Bc(p);Pt(T).each(L=>{_r(L).each(I=>{const Z=lt(((ae,be)=>{const Le=document.createElement("div");return Le.innerHTML=ae,tt(Wt.fromDom(Le))})(_.content),ae=>ze(ae)!=="meta"),Y=zn("table");if(J(p)&&Z.length===1&&Y(Z[0])){_.preventDefault();const ae=Wt.fromDom(p.getDoc()),be=Oi(ae),Le=((_e,Re,Xe)=>({element:_e,clipboard:Re,generators:Xe}))(L,Z[0],be);b.pasteCells(I,Le).each(()=>{p.focus()})}})})}})},Nu=(p,b)=>({element:p,offset:b}),_p=(p,b,_)=>p.property().isText(b)&&p.property().getText(b).trim().length===0||p.property().isComment(b)?_(b).bind(T=>_p(p,T,_).orThunk(()=>de.some(T))):de.none(),Kt=(p,b)=>p.property().isText(b)?p.property().getText(b).length:p.property().children(b).length,lm=(p,b)=>{const _=_p(p,b,p.query().prevSibling).getOr(b);if(p.property().isText(_))return Nu(_,Kt(p,_));const T=p.property().children(_);return T.length>0?lm(p,T[T.length-1]):Nu(_,Kt(p,_))},ug=lm,jm=ys(),Lf=(p,b)=>{gi(p)||(T=>Ti(T).bind(L=>{return I=L,Z=["fixed","relative","empty"],de.from(Kd.exec(I)).bind(Y=>{const ae=Number(Y[1]),be=Y[2];return((Le,_e)=>Bo(_e,Re=>Bo(yp[Re],Xe=>Le===Xe)))(be,Z)?de.some({value:ae,unit:be}):de.none()});var I,Z}))(p).each(T=>{const L=T.value/2;fi(p,L,T.unit),fi(b,L,T.unit)})},jl=p=>R(p,it(0)),sb=(p,b,_,T,L)=>L(p.slice(0,b)).concat(T).concat(L(p.slice(_))),Mu=p=>(b,_,T,L)=>{if(p(T)){const I=Math.max(L,b[_]-Math.abs(T)),Z=Math.abs(I-b[_]);return T>=0?Z:-Z}return T},La=Mu(p=>p<0),od=Mu(Ze),If=()=>{const p=(_,T,L,I)=>{const Z=(100+L)/100,Y=Math.max(I,(_[T]+L)/Z);return R(_,(ae,be)=>(be===T?Y:ae/Z)-ae)},b=(_,T,L,I,Z,Y)=>Y?p(_,T,I,Z):((ae,be,Le,_e,Re)=>{const Xe=La(ae,be,_e,Re);return sb(ae,be,Le+1,[Xe,0],jl)})(_,T,L,I,Z);return{resizeTable:(_,T)=>_(T),clampTableDelta:La,calcLeftEdgeDeltas:b,calcMiddleDeltas:(_,T,L,I,Z,Y,ae)=>b(_,L,I,Z,Y,ae),calcRightEdgeDeltas:(_,T,L,I,Z,Y)=>{if(Y)return p(_,L,I,Z);{const ae=La(_,L,I,Z);return jl(_.slice(0,L)).concat([ae])}},calcRedestributedWidths:(_,T,L,I)=>{if(I){const Z=(T+L)/T,Y=R(_,ae=>ae/Z);return{delta:100*Z-100,newSizes:Y}}return{delta:L,newSizes:_}}}},Cc=()=>{const p=(b,_,T,L,I)=>{const Z=od(b,L>=0?T:_,L,I);return sb(b,_,T+1,[Z,-Z],jl)};return{resizeTable:(b,_,T)=>{T&&b(_)},clampTableDelta:(b,_,T,L,I)=>{if(I){if(T>=0)return T;{const Z=ht(b,(Y,ae)=>Y+ae-L,0);return Math.max(-Z,T)}}return La(b,_,T,L)},calcLeftEdgeDeltas:p,calcMiddleDeltas:(b,_,T,L,I,Z)=>p(b,T,L,I,Z),calcRightEdgeDeltas:(b,_,T,L,I,Z)=>{if(Z)return jl(b);{const Y=L/b.length;return R(b,it(Y))}},calcRedestributedWidths:(b,_,T,L)=>({delta:0,newSizes:b})}},Sc=p=>ts(p).grid,Ds=zn("th"),Vm=p=>dt(p,b=>Ds(b.element)),Fc=(p,b)=>p&&b?"sectionCells":p?"section":"cells",eu=p=>{const b=p.section==="thead",_=Cs(Al(p.cells),"th");return p.section==="tfoot"?{type:"footer"}:b||_?{type:"header",subType:Fc(b,_)}:{type:"body"}},Al=p=>{const b=lt(p,_=>Ds(_.element));return b.length===0?de.some("td"):b.length===p.length?de.some("th"):de.none()},$m=(p,b,_)=>Ce(_(p.element,b),!0,p.isLocked),mg=(p,b)=>p.section!==b?Ne(p.element,p.cells,b,p.isNew):p,un=()=>({transformRow:mg,transformCell:(p,b,_)=>{const T=_(p.element,b),L=ze(T)!=="td"?((I,Z)=>{const Y=sr(I,"td");St(I,Y);const ae=tt(I);return gr(Y,ae),Ae(I),Y})(T):T;return Ce(L,p.isNew,p.isLocked)}}),gg=()=>({transformRow:mg,transformCell:$m}),Cp=()=>({transformRow:(p,b)=>mg(p,b==="thead"?"tbody":b),transformCell:$m}),Du=un,Sp=gg,C=Cp,D=()=>({transformRow:So,transformCell:$m}),G=(p,b,_,T)=>{_===T?Vo(p,b):zt(p,b,_)},ce=(p,b,_)=>{lo(Ar(p,b)).fold(()=>zr(p,_),T=>St(T,_))},Ke=(p,b)=>{const _=[],T=[],L=Re=>R(Re,Xe=>{Xe.isNew&&_.push(Xe.element);const Et=Xe.element;return De(Et),qe(Xe.cells,vt=>{vt.isNew&&T.push(vt.element),G(vt.element,"colspan",vt.colspan,1),G(vt.element,"rowspan",vt.rowspan,1),kr(Et,vt.element)}),Et}),I=Re=>V(Re,Xe=>R(Xe.cells,Et=>(G(Et.element,"span",Et.colspan,1),Et.element))),Z=(Re,Xe)=>{const Et=((qt,eo)=>{const bo=rr(qt,eo).getOrThunk(()=>{const ao=Wt.fromTag(eo,Pa(qt).dom);return eo==="thead"?ce(qt,"caption,colgroup",ao):eo==="colgroup"?ce(qt,"caption",ao):kr(qt,ao),ao});return De(bo),bo})(p,Xe),vt=(Xe==="colgroup"?I:L)(Re);gr(Et,vt)},Y=(Re,Xe)=>{Re.length>0?Z(Re,Xe):(Et=>{rr(p,Et).each(Ae)})(Xe)},ae=[],be=[],Le=[],_e=[];return qe(b,Re=>{switch(Re.section){case"thead":ae.push(Re);break;case"tbody":be.push(Re);break;case"tfoot":Le.push(Re);break;case"colgroup":_e.push(Re)}}),Y(_e,"colgroup"),Y(ae,"thead"),Y(be,"tbody"),Y(Le,"tfoot"),{newRows:_,newCells:T}},Ut=(p,b)=>{if(p.length===0)return 0;const _=p[0];return uo(p,T=>!b(_.element,T.element)).getOr(p.length)},Ao=(p,b)=>{const _=R(p,T=>R(T.cells,me));return R(p,(T,L)=>{const I=V(T.cells,(Z,Y)=>{if(_[L][Y]===!1){const Re=((Xe,Et,vt,qt)=>{const eo=((Ro,No)=>Ro[No])(Xe,Et),bo=eo.section==="colgroup",ao=Ut(eo.cells.slice(vt),qt),Eo=bo?1:Ut(((Ro,No)=>R(Ro,Ln=>ia(Ln,No)))(Xe.slice(Et),vt),qt);return{colspan:ao,rowspan:Eo}})(p,L,Y,b);return((Xe,Et,vt,qt)=>{for(let eo=Xe;eo({element:Z,cells:Y,section:ae,isNew:be}))(T.element,I,T.section,T.isNew)})},qo=(p,b,_)=>{const T=[];qe(p.colgroups,L=>{const I=[];for(let Z=0;ZCe(ae.element,_,!1)).getOrThunk(()=>Ce(b.colGap(),!0,!1));I.push(Y)}T.push(Ne(L.element,I,"colgroup",_))});for(let L=0;LCe(Le.element,_,Le.isLocked)).getOrThunk(()=>Ce(b.gap(),!0,!1));I.push(be)}const Z=p.all[L],Y=Ne(Z.element,I,Z.section,_);T.push(Y)}return T},Xn=p=>Ao(p,xr),pr=(p,b)=>zo(p.all,_=>Rt(_.cells,T=>xr(b,T.element))),is=(p,b,_)=>{const T=R(b.selection,I=>ho(I).bind(Z=>pr(p,Z)).filter(_)),L=za(T);return ws(L.length>0,L)},Nr=(p,b,_,T,L)=>(I,Z,Y,ae)=>{const be=ts(I),Le=de.from(ae==null?void 0:ae.section).getOrThunk(D);return b(be,Z).map(_e=>{const Re=((vt,qt)=>qo(vt,qt,!1))(be,Y),Xe=p(Re,_e,xr,L(Y),Le),Et=xc(Xe.grid);return{info:_e,grid:Xn(Xe.grid),cursor:Xe.cursor,lockedColumns:Et}}).bind(_e=>{const Re=Ke(I,_e.grid),Xe=de.from(ae==null?void 0:ae.sizing).getOrThunk(()=>Oa(I)),Et=de.from(ae==null?void 0:ae.resize).getOrThunk(Cc);return _(I,_e.grid,_e.info,{sizing:Xe,resize:Et,section:Le}),T(I),Vo(I,Xl),_e.lockedColumns.length>0&&zt(I,Xl,_e.lockedColumns.join(",")),de.some({cursor:_e.cursor,newRows:Re.newRows,newCells:Re.newCells})})},ha=(p,b)=>is(p,b,Ze).map(_=>({cells:_,generators:b.generators,clipboard:b.clipboard})),Ia=(p,b)=>is(p,b,Ze),Mi=(p,b)=>is(p,b,_=>!_.isLocked),hi=(p,b)=>dt(b,_=>((T,L)=>pr(T,L).exists(I=>!I.isLocked))(p,_)),Td=(p,b,_,T)=>{const L=ta(p).rows;let I=!0;for(let Z=0;Z{const b=I=>I(p),_=it(p),T=()=>L,L={tag:!0,inner:p,fold:(I,Z)=>Z(p),isValue:Ze,isError:me,map:I=>Ru.value(I(p)),mapError:T,bind:b,exists:b,forall:b,getOr:_,or:T,getOrThunk:_,orThunk:T,getOrDie:_,each:I=>{I(p)},toOptional:()=>de.some(p)};return L},cm=p=>{const b=()=>_,_={tag:!1,inner:p,fold:(L,I)=>L(p),isValue:me,isError:Ze,map:b,mapError:L=>Ru.error(L(p)),bind:b,exists:me,forall:Ze,getOr:So,or:So,getOrThunk:fo,orThunk:fo,getOrDie:(T=String(p),()=>{throw new Error(T)}),each:Ue,toOptional:de.none};var T;return _},Ru={value:zd,error:cm,fromOption:(p,b)=>p.fold(()=>cm(b),zd)},Bu=(p,b)=>({rowDelta:0,colDelta:Ps(p[0])-Ps(b[0])}),Ad=(p,b)=>({rowDelta:p.length-b.length,colDelta:0}),Od=(p,b,_,T)=>{const L=b.section==="colgroup"?_.col:_.cell;return Ct(p,I=>Ce(L(),!0,T(I)))},pg=(p,b,_,T)=>{const L=p[p.length-1];return p.concat(Ct(b,()=>{const I=L.section==="colgroup"?_.colgroup:_.row,Z=cc(L,I,So),Y=Od(Z.cells.length,Z,_,ae=>We(T,ae.toString()));return ei(Z,Y)}))},Fu=(p,b,_,T)=>R(p,L=>{const I=Od(b,L,_,me);return yn(L,T,I)}),nd=(p,b,_)=>{const T=b.colDelta<0?Fu:So,L=b.rowDelta<0?pg:So,I=xc(p),Z=Ps(p[0]),Y=Bo(I,Le=>Le===Z-1),ae=T(p,Math.abs(b.colDelta),_,Y?Z-1:Z),be=xc(ae);return L(ae,Math.abs(b.rowDelta),_,Ie(be,Ze))},oa=(p,b,_,T)=>{const L=he(T,ia(p[b],_).element),I=p[b];return p.length>1&&Ps(I)>1&&(_>0&&L(pa(I,_-1))||_0&&L(pa(p[b-1],_))||blt(_,T=>T>=p.column&&T<=Ps(b[0])+p.column),hl=(p,b,_,T,L)=>{((be,Le,_e,Re)=>{Le>0&&Le{const Et=Xe.cells[Le-1];let vt=0;const qt=Re();for(;Xe.cells.length>Le+vt&&_e(Et.element,Xe.cells[Le+vt].element);)Ra(Xe,Le+vt,Ce(qt,!0,Xe.cells[Le+vt].isLocked)),vt++})})(b,p,L,T.cell);const I=Ad(_,b),Z=nd(_,I,T),Y=Ad(b,Z),ae=nd(b,Y,T);return R(ae,(be,Le)=>yn(be,p,Z[Le].cells))},Jr=(p,b,_,T,L)=>{((bo,ao,Eo,Ro)=>{const No=ta(bo).rows;if(ao>0&&aoht(qn,(or,Mr)=>Bo(or,Er=>Qr(Er.element,Mr.element))?or:or.concat([Mr]),[]))(No[ao-1].cells,Eo);qe(Ln,qn=>{let Qr=de.none();for(let or=ao;or{Ra(Er,Mr,Ce(zs,!0,ca.isLocked))}))}})}})(b,p,L,T.cell);const I=xc(b),Z=Bu(b,_),Y={...Z,colDelta:Z.colDelta-I.length},ae=nd(b,Y,T),{cols:be,rows:Le}=ta(ae),_e=xc(ae),Re=Bu(_,b),Xe={...Re,colDelta:Re.colDelta+_e.length},Et=(qt=T,eo=_e,R(_,bo=>ht(eo,(ao,Eo)=>{const Ro=Od(1,bo,qt,Ze)[0];return ur(ao,Eo,Ro)},bo))),vt=nd(Et,Xe,T);var qt,eo;return[...be,...Le.slice(0,p),...vt,...Le.slice(p,Le.length)]},bi=(p,b,_,T,L)=>{const{rows:I,cols:Z}=ta(p),Y=I.slice(0,b),ae=I.slice(b);return[...Z,...Y,((be,Le,_e,Re)=>cc(be,Xe=>Re(Xe,_e),Le))(I[_],(be,Le)=>b>0&&bR(p,I=>{const Z=b>0&&b{if(Le!=="colgroup"&&_e)return ia(ae,be);{const vt=ia(ae,Re);return Ce(Et(vt.element,Xe),!0,!1)}})(I,b,I.section,Z,_,T,L);return ur(I,b,Y)}),Di=(p,b,_,T)=>((L,I,Z,Y)=>pa(L[I],Z)!==void 0&&I>0&&Y(pa(L[I-1],Z),pa(L[I],Z)))(p,b,_,T)||((L,I,Z)=>I>0&&Z(pa(L,I-1),pa(L,I)))(p[b],_,T),Lc=(p,b,_,T)=>{const L=I=>(Z=>Z==="row"?sc(b):gi(b))(I)?`${I}group`:I;return p?Ds(b)?L(_):null:T&&Ds(b)?L(_==="row"?"col":"row"):null},Zi=(p,b,_)=>Ce(_(p.element,b),!0,p.isLocked),bl=(p,b,_,T,L,I,Z)=>R(p,(Y,ae)=>((be,Le)=>{const _e=be.cells,Re=R(_e,(Xe,Et)=>{if((vt=>Bo(b,qt=>_(vt.element,qt.element)))(Xe)){const vt=Z(Xe,ae,Et)?L(Xe,_,T):Xe;return I(vt,ae,Et).each(qt=>{var eo,bo;eo=vt.element,bo={scope:de.from(qt)},$e(bo,(ao,Eo)=>{ao.fold(()=>{Vo(eo,Eo)},Ro=>{ut(eo.dom,Eo,Ro)})})}),vt}return Xe});return Ne(be.element,Re,be.section,be.isNew)})(Y)),Lu=(p,b,_)=>V(p,(T,L)=>Di(p,L,b,_)?[]:[ia(T,b)]),Ec=(p,b,_,T,L)=>{const I=ta(p).rows,Z=V(b,Le=>Lu(I,Le,T)),Y=R(I,Le=>Vm(Le.cells)),ae=((Le,_e)=>dt(_e,So)&&Vm(Le)?Ze:(Re,Xe,Et)=>!(ze(Re.element)==="th"&&_e[Xe]))(Z,Y);return bl(p,Z,T,L,Zi,((Le,_e)=>(Re,Xe)=>de.some(Lc(Le,Re.element,"row",_e[Xe])))(_,Y),ae)},Ep=(p,b,_,T)=>{const L=ta(p).rows,I=R(b,Z=>ia(L[Z.row],Z.column));return bl(p,I,_,T,Zi,de.none,Ze)},Iu=p=>{if(!Po(p))throw new Error("cases must be an array");if(p.length===0)throw new Error("there must be at least one case");const b=[],_={};return qe(p,(T,L)=>{const I=to(T);if(I.length!==1)throw new Error("one and only one name per case");const Z=I[0],Y=T[Z];if(_[Z]!==void 0)throw new Error("duplicate key detected:"+Z);if(Z==="cata")throw new Error("cannot have a case named cata (sorry)");if(!Po(Y))throw new Error("case arguments must be an array");b.push(Z),_[Z]=(...ae)=>{const be=ae.length;if(be!==Y.length)throw new Error("Wrong number of arguments to case "+Z+". Expected "+Y.length+" ("+Y+"), got "+be);return{fold:(...Le)=>{if(Le.length!==p.length)throw new Error("Wrong number of arguments to fold. Expected "+p.length+", got "+Le.length);return Le[L].apply(null,ae)},match:Le=>{const _e=to(Le);if(b.length!==_e.length)throw new Error("Wrong number of arguments to match. Expected: "+b.join(",")+` +Actual: `+_e.join(","));if(!dt(b,Re=>gn(_e,Re)))throw new Error("Not all branches were specified when using match. Specified: "+_e.join(", ")+` +Required: `+b.join(", "));return Le[Z].apply(null,ae)},log:Le=>{}}}}),_},tu={...Iu([{none:[]},{only:["index"]},{left:["index","next"]},{middle:["prev","index","next"]},{right:["prev","index"]}])},dm=(p,b,_)=>{let T=0;for(let L=p;L{const _=nl(p);return R(_,T=>{const L=dm(T.row,T.row+T.rowspan,b);return{element:T.element,height:L,rowspan:T.rowspan}})},fg=(p,b,_)=>{const T=((L,I)=>ti(L)?((Z,Y)=>{const ae=Fr(Z);return R(ae,(be,Le)=>({element:be.element,width:Y[Le],colspan:be.colspan}))})(L,I):((Z,Y)=>{const ae=nl(Z);return R(ae,be=>{const Le=dm(be.column,be.column+be.colspan,Y);return{element:be.element,width:Le,colspan:be.colspan}})})(L,I))(p,b);qe(T,L=>{_.setElementWidth(L.element,L.width)})},zp=(p,b,_,T,L)=>{const I=ts(p),Z=L.getCellDelta(b),Y=L.getWidths(I,L),ae=_===I.grid.columns-1,be=T.clampTableDelta(Y,_,Z,L.minCellWidth(),ae),Le=((Re,Xe,Et,vt,qt)=>{const eo=Re.slice(0),bo=((Eo,Ro)=>Eo.length===0?tu.none():Eo.length===1?tu.only(0):Ro===0?tu.left(0,1):Ro===Eo.length-1?tu.right(Ro-1,Ro):Ro>0&&Rovt.singleColumnWidth(eo[Eo],Et),(Eo,Ro)=>qt.calcLeftEdgeDeltas(eo,Eo,Ro,Et,vt.minCellWidth(),vt.isRelative),(Eo,Ro,No)=>qt.calcMiddleDeltas(eo,Eo,Ro,No,Et,vt.minCellWidth(),vt.isRelative),(Eo,Ro)=>qt.calcRightEdgeDeltas(eo,Eo,Ro,Et,vt.minCellWidth(),vt.isRelative))})(Y,_,be,L,T),_e=R(Le,(Re,Xe)=>Re+Y[Xe]);fg(I,_e,L),T.resizeTable(L.adjustTableWidth,be,ae)},Ya=p=>ht(p,(b,_)=>Bo(b,T=>T.column===_.column)?b:b.concat([_]),[]).sort((b,_)=>b.column-_.column),ib=zn("col"),Jy=zn("colgroup"),Pf=p=>ze(p)==="tr"||Jy(p),yl=p=>({element:p,colspan:Ss(p,"colspan",1),rowspan:Ss(p,"rowspan",1)}),Tc=p=>Xt(p,"scope").map(b=>b.substr(0,3)),rd=(p,b=yl)=>{const _=L=>{if(Pf(L))return Jy((I={element:L}).element)?p.colgroup(I):p.row(I);{const Z=L,Y=(ae=>ib(ae.element)?p.col(ae):p.cell(ae))(b(Z));return T=de.some({item:Z,replacement:Y}),Y}var I};let T=de.none();return{getOrInit:(L,I)=>T.fold(()=>_(L),Z=>I(L,Z.item)?Z.replacement:_(L))}},hg=p=>b=>{const _=[],T=L=>{const I=p==="td"?{scope:null}:{},Z=b.replace(L,p,I);return _.push({item:L,sub:Z}),Z};return{replaceOrInit:(L,I)=>{if(Pf(L)||ib(L))return L;{const Z=L;return((Y,ae)=>Rt(_,be=>ae(be.item,Y)))(Z,I).fold(()=>T(Z),Y=>I(L,Y.item)?Y.sub:T(Z))}}}},lb=p=>({unmerge:b=>{const _=Tc(b);return _.each(T=>zt(b,"scope",T)),()=>{const T=p.cell({element:b,colspan:1,rowspan:1});return aa(T,"width"),aa(b,"width"),_.each(L=>zt(T,"scope",L)),T}},merge:b=>(aa(b[0],"width"),(()=>{const _=za(R(b,Tc));if(_.length===0)return de.none();{const T=_[0],L=["row","col"];return Bo(_,I=>I!==T&&gn(L,I))?de.none():de.from(T)}})().fold(()=>Vo(b[0],"scope"),_=>zt(b[0],"scope",_+"group")),it(b[0]))}),Um=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","table","thead","tfoot","tbody","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],Hf=ys(),ou=p=>((b,_)=>{const T=b.property().name(_);return gn(Um,T)})(Hf,p),um=p=>((b,_)=>{const T=b.property().name(_);return gn(["ol","ul"],T)})(Hf,p),vs=p=>{const b=zn("br"),_=L=>wd(L).bind(I=>{const Z=_a(I).map(Y=>!!ou(Y)||!!((ae,be)=>gn(["br","img","hr","input"],ae.property().name(be)))(Hf,Y)&&ze(Y)!=="img").getOr(!1);return Ha(I).map(Y=>{return Z===!0||ze(ae=Y)==="li"||Zs(ae,um).isSome()||b(I)||ou(Y)&&!xr(L,Y)?[]:[Wt.fromTag("br")];var ae})}).getOr([]),T=(()=>{const L=V(p,I=>{const Z=tt(I);return(Y=>dt(Y,ae=>b(ae)||Zo(ae)&&Hs(ae).trim().length===0))(Z)?[]:Z.concat(_(I))});return L.length===0?[Wt.fromTag("br")]:L})();De(p[0]),gr(p[0],T)},Vl=p=>fn(p,!0),bg=p=>{bn(p).length===0&&Ae(p)},Ap=(p,b)=>({grid:p,cursor:b}),si=(p,b,_)=>{const T=((L,I,Z)=>{var Y,ae;const be=ta(L).rows;return de.from((ae=(Y=be[I])===null||Y===void 0?void 0:Y.cells[Z])===null||ae===void 0?void 0:ae.element).filter(Vl).orThunk(()=>(Le=>zo(Le,_e=>zo(_e.cells,Re=>{const Xe=Re.element;return ws(Vl(Xe),Xe)})))(be))})(p,b,_);return Ap(p,T)},ad=p=>ht(p,(b,_)=>Bo(b,T=>T.row===_.row)?b:b.concat([_]),[]).sort((b,_)=>b.row-_.row),Op=(p,b)=>(_,T,L,I,Z)=>{const Y=ad(T),ae=R(Y,Le=>Le.row),be=((Le,_e,Re,Xe,Et,vt,qt)=>{const{cols:eo,rows:bo}=ta(Le),ao=bo[_e[0]],Eo=V(_e,or=>((Mr,Er,ca)=>{const zs=Mr[Er];return V(zs.cells,(il,ii)=>Di(Mr,Er,ii,ca)?[]:[il])})(bo,or,Et)),Ro=R(ao.cells,(or,Mr)=>Vm(Lu(bo,Mr,Et))),No=[...bo];qe(_e,or=>{No[or]=qt.transformRow(bo[or],Re)});const Ln=[...eo,...No],qn=((or,Mr)=>dt(Mr,So)&&Vm(or.cells)?Ze:(Er,ca,zs)=>!(ze(Er.element)==="th"&&Mr[zs]))(ao,Ro),Qr=((or,Mr)=>(Er,ca,zs)=>de.some(Lc(or,Er.element,"col",Mr[zs])))(Xe,Ro);return bl(Ln,Eo,Et,vt,qt.transformCell,Qr,qn)})(_,ae,p,b,L,I.replaceOrInit,Z);return si(be,T[0].row,T[0].column)},cb=Op("thead",!0),Pu=Op("tbody",!1),e_=Op("tfoot",!1),Np=(p,b,_)=>{const T=((I,Z)=>ma(I,()=>Z))(p,_.section),L=Kc(T);return qo(L,b,!0)},Mp=(p,b,_,T)=>((L,I,Z,Y)=>{const ae=Kc(I),be=Y.getWidths(ae,Y);fg(ae,be,Y)})(0,b,0,T.sizing),Qy=(p,b,_,T)=>((L,I,Z,Y,ae)=>{const be=Kc(I),Le=Y.getWidths(be,Y),_e=Y.pixelWidth(),{newSizes:Re,delta:Xe}=ae.calcRedestributedWidths(Le,_e,Z.pixelDelta,Y.isRelative);fg(be,Re,Y),Y.adjustTableWidth(Xe)})(0,b,_,T.sizing,T.resize),e1=(p,b)=>Bo(b,_=>_.column===0&&_.isLocked),jf=(p,b)=>Bo(b,_=>_.column+_.colspan>=p.grid.columns&&_.isLocked),Nd=(p,b)=>{const _=hd(p),T=Ya(b);return ht(T,(L,I)=>L+_[I.column].map(yt).getOr(0),0)},Vf=p=>(b,_)=>Ia(b,_).filter(T=>!(p?e1:jf)(b,T)).map(T=>({details:T,pixelDelta:Nd(b,T)})),Hr=p=>(b,_)=>ha(b,_).filter(T=>!(p?e1:jf)(b,T.cells)),Ol=hg("th"),nu=hg("td"),Dp=Nr((p,b,_,T)=>{const L=b[0].row,I=ad(b),Z=Mt(I,(Y,ae)=>({grid:bi(Y.grid,L,ae.row+Y.delta,_,T.getOrInit),delta:Y.delta+1}),{grid:p,delta:0}).grid;return si(Z,L,b[0].column)},Ia,Ue,Ue,rd),as=Nr((p,b,_,T)=>{const L=ad(b),I=L[L.length-1],Z=I.row+I.rowspan,Y=Mt(L,(ae,be)=>bi(ae,Z,be.row,_,T.getOrInit),p);return si(Y,Z,b[0].column)},Ia,Ue,Ue,rd),db=Nr((p,b,_,T)=>{const L=b.details,I=Ya(L),Z=I[0].column,Y=Mt(I,(ae,be)=>({grid:rs(ae.grid,Z,be.column+ae.delta,_,T.getOrInit),delta:ae.delta+1}),{grid:p,delta:0}).grid;return si(Y,L[0].row,Z)},Vf(!0),Qy,Ue,rd),t1=Nr((p,b,_,T)=>{const L=b.details,I=L[L.length-1],Z=I.column+I.colspan,Y=Ya(L),ae=Mt(Y,(be,Le)=>rs(be,Z,Le.column,_,T.getOrInit),p);return si(ae,L[0].row,Z)},Vf(!1),Qy,Ue,rd),Ji=Nr((p,b,_,T)=>{const L=Ya(b.details),I=((Y,ae)=>V(Y,be=>{const Le=be.cells,_e=Mt(ae,(Re,Xe)=>Xe>=0&&Xe0?[Ne(be.element,_e,be.section,be.isNew)]:[]}))(p,R(L,Y=>Y.column)),Z=I.length>0?I[0].cells.length-1:0;return si(I,L[0].row,Math.min(L[0].column,Z))},(p,b)=>Mi(p,b).map(_=>({details:_,pixelDelta:-Nd(p,_)})),Qy,bg,rd),mm=Nr((p,b,_,T)=>{const L=ad(b),I=((Y,ae,be)=>{const{rows:Le,cols:_e}=ta(Y);return[..._e,...Le.slice(0,ae),...Le.slice(be+1)]})(p,L[0].row,L[L.length-1].row),Z=I.length>0?I.length-1:0;return si(I,Math.min(b[0].row,Z),b[0].column)},Ia,Ue,bg,rd),ru=Nr((p,b,_,T)=>{const L=Ya(b),I=R(L,Y=>Y.column),Z=Ec(p,I,!0,_,T.replaceOrInit);return si(Z,b[0].row,b[0].column)},Mi,Ue,Ue,Ol),gm=Nr((p,b,_,T)=>{const L=Ya(b),I=R(L,Y=>Y.column),Z=Ec(p,I,!1,_,T.replaceOrInit);return si(Z,b[0].row,b[0].column)},Mi,Ue,Ue,nu),Ht=Nr(cb,Mi,Ue,Ue,Ol),Rp=Nr(Pu,Mi,Ue,Ue,nu),ub=Nr(e_,Mi,Ue,Ue,nu),Md=Nr((p,b,_,T)=>{const L=Ep(p,b,_,T.replaceOrInit);return si(L,b[0].row,b[0].column)},Mi,Ue,Ue,Ol),o1=Nr((p,b,_,T)=>{const L=Ep(p,b,_,T.replaceOrInit);return si(L,b[0].row,b[0].column)},Mi,Ue,Ue,nu),n1=Nr((p,b,_,T)=>{const L=b.cells;vs(L);const I=((Z,Y,ae,be)=>{const Le=ta(Z).rows;if(Le.length===0)return Z;for(let _e=Y.startRow;_e<=Y.finishRow;_e++)for(let Re=Y.startCol;Re<=Y.finishCol;Re++){const Xe=Le[_e],Et=ia(Xe,Re).isLocked;Ra(Xe,Re,Ce(be(),!1,Et))}return Z})(p,b.bounds,0,T.merge(L));return Ap(I,de.from(L[0]))},(p,b)=>((_,T)=>T.mergable)(0,b).filter(_=>hi(p,_.cells)),Mp,Ue,lb),yg=Nr((p,b,_,T)=>{const L=Mt(b,(I,Z)=>Td(I,Z,_,T.unmerge(Z)),p);return Ap(L,de.from(b[0]))},(p,b)=>((_,T)=>T.unmergable)(0,b).filter(_=>hi(p,_)),Mp,Ue,lb),mc=Nr((p,b,_,T)=>{const L=((Y,ae)=>{const be=ts(Y);return qo(be,ae,!0)})(b.clipboard,b.generators);var I,Z;return((Y,ae,be,Le,_e)=>{const Re=xc(ae),Xe=((eo,bo,ao)=>{const Eo=Ps(bo[0]),Ro=ta(bo).cols.length+eo.row,No=Ct(Eo-eo.column,Ln=>Ln+eo.column);return{row:Ro,column:Rt(No,Ln=>dt(ao,qn=>qn!==Ln)).getOr(Eo-1)}})(Y,ae,Re),Et=ta(be).rows,vt=wr(Xe,Et,Re);return((eo,bo,ao)=>{if(eo.row>=bo.length||eo.column>Ps(bo[0]))return Ru.error("invalid start address out of table bounds, row: "+eo.row+", column: "+eo.column);const Eo=bo.slice(eo.row),Ro=Eo[0].cells.slice(eo.column),No=Ps(ao[0]),Ln=ao.length;return Ru.value({rowDelta:Eo.length-Ln,colDelta:Ro.length-No})})(Xe,ae,Et).map(eo=>{const bo={...eo,colDelta:eo.colDelta-vt.length},ao=nd(ae,bo,Le),Eo=xc(ao),Ro=wr(Xe,Et,Eo);return((No,Ln,qn,Qr,or,Mr)=>{const Er=No.row,ca=No.column,zs=Er+qn.length,il=ca+Ps(qn[0])+Mr.length,ii=Ie(Mr,Ze);for(let ql=Er;qlAp(p,de.some(b.element)),Y=>si(Y,b.row,b.column))},(p,b)=>ho(b.element).bind(_=>pr(p,_).map(T=>({...T,generators:b.generators,clipboard:b.clipboard}))),Mp,Ue,rd),sl=Nr((p,b,_,T)=>{const L=ta(p).rows,I=b.cells[0].column,Z=L[b.cells[0].row],Y=Np(b.clipboard,b.generators,Z),ae=hl(I,p,Y,b.generators,_);return si(ae,b.cells[0].row,b.cells[0].column)},Hr(!0),Ue,Ue,rd),pm=Nr((p,b,_,T)=>{const L=ta(p).rows,I=b.cells[b.cells.length-1].column+b.cells[b.cells.length-1].colspan,Z=L[b.cells[0].row],Y=Np(b.clipboard,b.generators,Z),ae=hl(I,p,Y,b.generators,_);return si(ae,b.cells[0].row,b.cells[0].column)},Hr(!1),Ue,Ue,rd),r1=Nr((p,b,_,T)=>{const L=ta(p).rows,I=b.cells[0].row,Z=L[I],Y=Np(b.clipboard,b.generators,Z),ae=Jr(I,p,Y,b.generators,_);return si(ae,b.cells[0].row,b.cells[0].column)},ha,Ue,Ue,rd),a1=Nr((p,b,_,T)=>{const L=ta(p).rows,I=b.cells[b.cells.length-1].row+b.cells[b.cells.length-1].rowspan,Z=L[b.cells[0].row],Y=Np(b.clipboard,b.generators,Z),ae=Jr(I,p,Y,b.generators,_);return si(ae,b.cells[0].row,b.cells[0].column)},ha,Ue,Ue,rd),$f=(p,b)=>{const _=ts(p);return Ia(_,b).bind(T=>{const L=T[T.length-1],I=T[0].column,Z=L.column+L.colspan,Y=Bt(R(_.all,ae=>lt(ae.cells,be=>be.column>=I&&be.column{const _=ts(p);return Ia(_,b).bind(Al).getOr("")},Uf=(p,b)=>{const _=ts(p);return Ia(_,b).bind(T=>{const L=T[T.length-1],I=T[0].row,Z=L.row+L.rowspan;return(Y=>{const ae=R(Y,_e=>eu(_e).type),be=gn(ae,"header"),Le=gn(ae,"footer");if(be||Le){const _e=gn(ae,"body");return!be||_e||Le?be||_e||!Le?de.none():de.some("footer"):de.some("header")}return de.some("body")})(_.all.slice(I,Z))}).getOr("")},gb=(p,b)=>p.dispatch("NewRow",{node:b}),Qi=(p,b)=>p.dispatch("NewCell",{node:b}),Gs=(p,b,_)=>{p.dispatch("TableModified",{..._,table:b})},vl={structure:!1,style:!0},Wa={structure:!0,style:!1},Nl={structure:!0,style:!0},yi=(p,b)=>Hl(p)?la(b):_d(p)?al(b):Oa(b),pb=(p,b,_)=>{const T=Le=>ze(Hn(Le))==="table",L=Tu(p),I=Ws(p)?Ue:Lf,Z=Le=>{switch(kd(p)){case"section":return Du();case"sectionCells":return Sp();case"cells":return C();default:return((_e,Re)=>{var Xe;switch((Xe=ts(_e),zo(Xe.all,Et=>{const vt=eu(Et);return vt.type==="header"?de.from(vt.subType):de.none()})).getOr(Re)){case"section":return un();case"sectionCells":return gg();case"cells":return Cp()}})(Le,"section")}},Y=(Le,_e,Re,Xe)=>(Et,vt,qt=!1)=>{fa(Et);const eo=Wt.fromDom(p.getDoc()),bo=Xi(Re,eo,L),ao={sizing:yi(p,Et),resize:Ws(p)?If():Cc(),section:Z(Et)};return _e(Et)?Le(Et,vt,bo,ao).bind(Eo=>{b.refresh(Et.dom),qe(Eo.newRows,No=>{gb(p,No.dom)}),qe(Eo.newCells,No=>{Qi(p,No.dom)});const Ro=((No,Ln)=>Ln.cursor.fold(()=>{const qn=bn(No);return Pt(qn).filter(Go).map(Qr=>{_.clearSelectedCells(No.dom);const or=p.dom.createRng();return or.selectNode(Qr.dom),p.selection.setRng(or),zt(Qr,"data-mce-selected","1"),or})},qn=>{const Qr=ug(jm,qn),or=p.dom.createRng();return or.setStart(Qr.element.dom,Qr.offset),or.setEnd(Qr.element.dom,Qr.offset),p.selection.setRng(or),_.clearSelectedCells(No.dom),de.some(or)}))(Et,Eo);return Go(Et)&&(fa(Et),qt||Gs(p,Et.dom,Xe)),Ro.map(No=>({rng:No,effect:Xe}))}):de.none()},ae=Y(mm,Le=>!T(p)||Sc(Le).rows>1,Ue,Wa),be=Y(Ji,Le=>!T(p)||Sc(Le).columns>1,Ue,Wa);return{deleteRow:ae,deleteColumn:be,insertRowsBefore:Y(Dp,Ze,Ue,Wa),insertRowsAfter:Y(as,Ze,Ue,Wa),insertColumnsBefore:Y(db,Ze,I,Wa),insertColumnsAfter:Y(t1,Ze,I,Wa),mergeCells:Y(n1,Ze,Ue,Wa),unmergeCells:Y(yg,Ze,Ue,Wa),pasteColsBefore:Y(sl,Ze,Ue,Wa),pasteColsAfter:Y(pm,Ze,Ue,Wa),pasteRowsBefore:Y(r1,Ze,Ue,Wa),pasteRowsAfter:Y(a1,Ze,Ue,Wa),pasteCells:Y(mc,Ze,Ue,Nl),makeCellsHeader:Y(Md,Ze,Ue,Wa),unmakeCellsHeader:Y(o1,Ze,Ue,Wa),makeColumnsHeader:Y(ru,Ze,Ue,Wa),unmakeColumnsHeader:Y(gm,Ze,Ue,Wa),makeRowsHeader:Y(Ht,Ze,Ue,Wa),makeRowsBody:Y(Rp,Ze,Ue,Wa),makeRowsFooter:Y(ub,Ze,Ue,Wa),getTableRowType:Uf,getTableCellType:mb,getTableColType:$f}},Zf=(p,b,_)=>{const T=Ss(p,b,1);_===1||T<=1?Vo(p,b):zt(p,b,Math.min(_,T))},$l=(p,b)=>_=>{const T=_.column+_.colspan-1,L=_.column;return T>=p&&L{const T=_.substring(0,_.length-p.length),L=parseFloat(T);return T===L.toString()?b(L):zc.invalid(_)},Zm={...zc,from:p=>Os(p,"%")?s1("%",zc.percent,p):Os(p,"px")?s1("px",zc.pixels,p):zc.invalid(p)},fb=(p,b,_)=>{const T=Zm.from(_),L=dt(p,I=>I==="0px")?((I,Z)=>{const Y=I.fold(()=>it(""),ae=>it(ae/Z+"px"),()=>it(100/Z+"%"));return Ct(Z,Y)})(T,p.length):((I,Z,Y)=>I.fold(()=>Z,ae=>((be,Le,_e)=>{const Re=_e/Le;return R(be,Xe=>Zm.from(Xe).fold(()=>Xe,Et=>Et*Re+"px",Et=>Et/100*_e+"px"))})(Z,Y,ae),ae=>((be,Le)=>R(be,_e=>Zm.from(_e).fold(()=>_e,Re=>Re/Le*100+"%",Re=>Re+"%")))(Z,Y)))(T,p,b);return kv(L)},Bp=(p,b)=>p.length===0?b:Mt(p,(_,T)=>Zm.from(T).fold(it(0),So,So)+_,0),wv=(p,b)=>Zm.from(p).fold(it(p),_=>_+b+"px",_=>_+b+"%"),kv=p=>{if(p.length===0)return p;const b=Mt(p,(T,L)=>{const I=Zm.from(L).fold(()=>({value:L,remainder:0}),Z=>((Y,ae)=>{const be=Math.floor(Y);return{value:be+"px",remainder:Y-be}})(Z),Z=>({value:Z+"%",remainder:0}));return{output:[I.value].concat(T.output),remainder:T.remainder+I.remainder}},{output:[],remainder:0}),_=b.output;return _.slice(0,_.length-1).concat([wv(_[_.length-1],Math.round(b.remainder))])},qf=Zm.from,_v=p=>qf(p).fold(it("px"),it("px"),it("%")),i1=(p,b,_)=>{const T=ts(p),L=T.all,I=nl(T),Z=Fr(T);b.each(Y=>{const ae=_v(Y),be=ve(p),Le=((Re,Xe)=>Yt(Re,Xe,oi,ni))(T,p),_e=fb(Le,be,Y);ti(T)?((Re,Xe,Et)=>{qe(Xe,(vt,qt)=>{const eo=Bp([Re[qt]],ne());Rn(vt.element,"width",eo+Et)})})(_e,Z,ae):((Re,Xe,Et)=>{qe(Xe,vt=>{const qt=Re.slice(vt.column,vt.colspan+vt.column),eo=Bp(qt,ne());Rn(vt.element,"width",eo+Et)})})(_e,I,ae),Rn(p,"width",Y)}),_.each(Y=>{const ae=_v(Y),be=Wd(p),Le=((_e,Re,Xe)=>us(_e,Re,Xe,ro,ni))(T,p,Cn);((_e,Re,Xe,Et)=>{qe(Xe,vt=>{const qt=_e.slice(vt.row,vt.rowspan+vt.row),eo=Bp(qt,Be());Rn(vt.element,"height",eo+Et)}),qe(Re,(vt,qt)=>{Rn(vt.element,"height",_e[qt])})})(fb(Le,be,Y),L,I,ae),Rn(p,"height",Y)})},Oo=p=>Ti(p).exists(b=>Cl.test(b)),sn=p=>Ti(p).exists(b=>nm.test(b)),Ri=p=>Ti(p).isNone(),Wf=p=>{Vo(p,"width")},Fp=p=>{const b=El(p);i1(p,de.some(b),de.none()),Wf(p)},l1=p=>{const b=(_=>ve(_)+"px")(p);i1(p,de.some(b),de.none()),Wf(p)},tc=p=>{aa(p,"width");const b=kn(p),_=b.length>0?b:bn(p);qe(_,T=>{aa(T,"width"),Wf(T)}),Wf(p)},t_={styles:{"border-collapse":"collapse",width:"100%"},attributes:{border:"1"},colGroups:!1},sd=(p,b,_,T)=>Ct(p,L=>((I,Z,Y,ae)=>{const be=Wt.fromTag("tr");for(let Le=0;Le{p.selection.select(b.dom,!0),p.selection.collapse(!0)},Gf=(p,b,_,T,L)=>{const I=(Y=>{const ae=Y.options,be=ae.get("table_default_styles");return ae.isSet("table_default_styles")?be:((Le,_e)=>ai(Le)||!H(Le)?_e:_d(Le)?{..._e,width:qs(Le)}:{..._e,width:_c})(Y,be)})(p),Z={styles:I,attributes:Te(p),colGroups:He(p)};return p.undoManager.ignore(()=>{const Y=((be,Le,_e,Re,Xe,Et=t_)=>{const vt=Wt.fromTag("table"),qt=Xe!=="cells";Hi(vt,Et.styles),Ft(vt,Et.attributes),Et.colGroups&&kr(vt,(Eo=>{const Ro=Wt.fromTag("colgroup");return Ct(Eo,()=>kr(Ro,Wt.fromTag("col"))),Ro})(Le));const eo=Math.min(be,_e);if(qt&&_e>0){const Eo=Wt.fromTag("thead");kr(vt,Eo);const Ro=sd(_e,Le,Xe==="sectionCells"?eo:0,Re);gr(Eo,Ro)}const bo=Wt.fromTag("tbody");kr(vt,bo);const ao=sd(qt?be-eo:be,Le,qt?0:_e,Re);return gr(bo,ao),vt})(_,b,L,T,kd(p),Z);zt(Y,"data-mce-id","__mce");const ae=(be=>{const Le=Wt.fromTag("div"),_e=Wt.fromDom(be.dom.cloneNode(!0));return kr(Le,_e),(Re=>Re.dom.innerHTML)(Le)})(Y);p.insertContent(ae),p.addVisual()}),Sr(Hn(p),'table[data-mce-id="__mce"]').map(Y=>(_d(p)?l1(Y):ai(p)?tc(Y):(Hl(p)||(ae=>Qo(ae)&&ae.indexOf("%")!==-1)(I.width))&&Fp(Y),fa(Y),Vo(Y,"data-mce-id"),((ae,be)=>{qe(ra(be,"tr"),Le=>{gb(ae,Le.dom),qe(ra(Le,"th,td"),_e=>{Qi(ae,_e.dom)})})})(p,Y),((ae,be)=>{Sr(be,"td,th").each(he(hb,ae))})(p,Y),Y.dom)).getOrNull()};var Ts=tinymce.util.Tools.resolve("tinymce.FakeClipboard");const gc="x-tinymce/dom-table-",Kf=gc+"rows",Ic=gc+"columns",c1=p=>{const b=Ts.FakeClipboardItem(p);Ts.write([b])},Yf=p=>{var b;const _=(b=Ts.read())!==null&&b!==void 0?b:[];return zo(_,T=>de.from(T.getType(p)))},d1=p=>{Yf(p).isSome()&&Ts.clear()},bb=p=>{p.fold(o_,b=>c1({[Kf]:b}))},Xf=()=>Yf(Kf),o_=()=>d1(Kf),yb=p=>{p.fold(n_,b=>c1({[Ic]:b}))},Cv=()=>Yf(Ic),n_=()=>d1(Ic),Jf=p=>kp(Ka(p),Tn(p)).filter(Bf),Sv=(p,b)=>{const _=Tn(p),T=_e=>_r(_e,_),L=_e=>(Re=>Hm(Ka(Re),Tn(Re)).filter(Bf))(p).bind(Re=>T(Re).map(Xe=>_e(Xe,Re))),I=_e=>{p.focus()},Z=(_e,Re=!1)=>L((Xe,Et)=>{const vt=_n(Bc(p),Xe,Et);_e(Xe,vt,Re).each(I)}),Y=()=>L((_e,Re)=>((Xe,Et,vt)=>{const qt=ts(Xe);return Ia(qt,Et).bind(eo=>{const bo=qo(qt,vt,!1),ao=ta(bo).rows.slice(eo[0].row,eo[eo.length-1].row+eo[eo.length-1].rowspan),Eo=V(ao,No=>{const Ln=lt(No.cells,qn=>!qn.isLocked);return Ln.length>0?[{...No,cells:Ln}]:[]}),Ro=Xn(Eo);return ws(Ro.length>0,Ro)}).map(eo=>R(eo,bo=>{const ao=dn(bo.element);return qe(bo.cells,Eo=>{const Ro=nn(Eo.element);G(Ro,"colspan",Eo.colspan,1),G(Ro,"rowspan",Eo.rowspan,1),kr(ao,Ro)}),ao}))})(_e,_n(Bc(p),_e,Re),Xi(Ue,Wt.fromDom(p.getDoc()),de.none()))),ae=()=>L((_e,Re)=>((Xe,Et)=>{const vt=ts(Xe);return Mi(vt,Et).map(qt=>{const eo=qt[qt.length-1],bo=qt[0].column,ao=eo.column+eo.colspan,Eo=((No,Ln,qn)=>{if(ti(No)){const Qr=lt(Fr(No),$l(Ln,qn)),or=R(Qr,Er=>{const ca=nn(Er.element);return Zf(ca,"span",qn-Ln),ca}),Mr=Wt.fromTag("colgroup");return gr(Mr,or),[Mr]}return[]})(vt,bo,ao),Ro=((No,Ln,qn)=>R(No.all,Qr=>{const or=lt(Qr.cells,$l(Ln,qn)),Mr=R(or,ca=>{const zs=nn(ca.element);return Zf(zs,"colspan",qn-Ln),zs}),Er=Wt.fromTag("tr");return gr(Er,Mr),Er}))(vt,bo,ao);return[...Eo,...Ro]})})(_e,_n(Bc(p),_e,Re))),be=(_e,Re)=>Re().each(Xe=>{const Et=R(Xe,vt=>nn(vt));L((vt,qt)=>{const eo=Oi(Wt.fromDom(p.getDoc())),bo=((ao,Eo,Ro,No)=>({selection:lg(ao),clipboard:Ro,generators:No}))(Bc(p),0,Et,eo);_e(vt,bo).each(I)})}),Le=_e=>(Re,Xe)=>((Et,vt)=>We(Et,vt)?de.from(Et[vt]):de.none())(Xe,"type").each(Et=>{Z(_e(Et),Xe.no_events)});$e({mceTableSplitCells:()=>Z(b.unmergeCells),mceTableMergeCells:()=>Z(b.mergeCells),mceTableInsertRowBefore:()=>Z(b.insertRowsBefore),mceTableInsertRowAfter:()=>Z(b.insertRowsAfter),mceTableInsertColBefore:()=>Z(b.insertColumnsBefore),mceTableInsertColAfter:()=>Z(b.insertColumnsAfter),mceTableDeleteCol:()=>Z(b.deleteColumn),mceTableDeleteRow:()=>Z(b.deleteRow),mceTableCutCol:()=>ae().each(_e=>{yb(_e),Z(b.deleteColumn)}),mceTableCutRow:()=>Y().each(_e=>{bb(_e),Z(b.deleteRow)}),mceTableCopyCol:()=>ae().each(_e=>yb(_e)),mceTableCopyRow:()=>Y().each(_e=>bb(_e)),mceTablePasteColBefore:()=>be(b.pasteColsBefore,Cv),mceTablePasteColAfter:()=>be(b.pasteColsAfter,Cv),mceTablePasteRowBefore:()=>be(b.pasteRowsBefore,Xf),mceTablePasteRowAfter:()=>be(b.pasteRowsAfter,Xf),mceTableDelete:()=>Jf(p).each(_e=>{_r(_e,_).filter(Dt(_)).each(Re=>{const Xe=Wt.fromText("");if(St(Re,Xe),Ae(Re),p.dom.isEmpty(p.getBody()))p.setContent(""),p.selection.setCursorLocation();else{const Et=p.dom.createRng();Et.setStart(Xe.dom,0),Et.setEnd(Xe.dom,0),p.selection.setRng(Et),p.nodeChanged()}})}),mceTableCellToggleClass:(_e,Re)=>{L(Xe=>{const Et=Bc(p),vt=dt(Et,eo=>p.formatter.match("tablecellclass",{value:Re},eo.dom)),qt=vt?p.formatter.remove:p.formatter.apply;qe(Et,eo=>qt("tablecellclass",{value:Re},eo.dom)),Gs(p,Xe.dom,vl)})},mceTableToggleClass:(_e,Re)=>{L(Xe=>{p.formatter.toggle("tableclass",{value:Re},Xe.dom),Gs(p,Xe.dom,vl)})},mceTableToggleCaption:()=>{Jf(p).each(_e=>{_r(_e,_).each(Re=>{rr(Re,"caption").fold(()=>{const Xe=Wt.fromTag("caption");kr(Xe,Wt.fromText("Caption")),((Et,vt,qt)=>{_t(Et,0).fold(()=>{kr(Et,vt)},eo=>{Do(eo,vt)})})(Re,Xe),p.selection.setCursorLocation(Xe.dom,0)},Xe=>{zn("caption")(_e)&&ln("td",Re).each(Et=>p.selection.setCursorLocation(Et.dom,0)),Ae(Xe)}),Gs(p,Re.dom,Wa)})})},mceTableSizingMode:(_e,Re)=>(Xe=>Jf(p).each(Et=>{ai(p)||_d(p)||Hl(p)||_r(Et,_).each(vt=>{Xe!=="relative"||Oo(vt)?Xe!=="fixed"||sn(vt)?Xe!=="responsive"||Ri(vt)||tc(vt):l1(vt):Fp(vt),fa(vt),Gs(p,vt.dom,Wa)})}))(Re),mceTableCellType:Le(_e=>_e==="th"?b.makeCellsHeader:b.unmakeCellsHeader),mceTableColType:Le(_e=>_e==="th"?b.makeColumnsHeader:b.unmakeColumnsHeader),mceTableRowType:Le(_e=>{switch(_e){case"header":return b.makeRowsHeader;case"footer":return b.makeRowsFooter;default:return b.makeRowsBody}})},(_e,Re)=>p.addCommand(Re,_e)),p.addCommand("mceInsertTable",(_e,Re)=>{((Xe,Et,vt,qt={})=>{const eo=bo=>To(bo)&&bo>0;if(eo(Et)&&eo(vt)){const bo=qt.headerRows||0,ao=qt.headerColumns||0;return Gf(Xe,vt,Et,ao,bo)}console.error("Invalid values for mceInsertTable - rows and columns values are required to insert a table.")})(p,Re.rows,Re.columns,Re.options)}),p.addCommand("mceTableApplyCellStyle",(_e,Re)=>{const Xe=qt=>"tablecell"+qt.toLowerCase().replace("-","");if(!io(Re))return;const Et=lt(Bc(p),Bf);if(Et.length===0)return;const vt=((qt,eo)=>{const bo={};return((ao,Eo,Ro,No)=>{$e(ao,(Ln,qn)=>{(Eo(Ln,qn)?Ro:No)(Ln,qn)})})(qt,eo,(ao=>(Eo,Ro)=>{ao[Ro]=Eo})(bo),Ue),bo})(Re,(qt,eo)=>p.formatter.has(Xe(eo))&&Qo(qt));(qt=>{for(const eo in qt)if(Se.call(qt,eo))return!1;return!0})(vt)||($e(vt,(qt,eo)=>{const bo=Xe(eo);qe(Et,ao=>{qt===""?p.formatter.remove(bo,{value:null},ao.dom,!0):p.formatter.apply(bo,{value:qt},ao.dom)})}),T(Et[0]).each(qt=>Gs(p,qt.dom,vl)))})},Lp=Iu([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),oc={before:Lp.before,on:Lp.on,after:Lp.after,cata:(p,b,_,T)=>p.fold(b,_,T),getStart:p=>p.fold(So,So,So)},Hu=(p,b)=>({selection:p,kill:b}),vg=(p,b)=>{const _=p.document.createRange();return _.selectNode(b.dom),_},ms=(p,b)=>{const _=p.document.createRange();return u1(_,b),_},u1=(p,b)=>p.selectNodeContents(b.dom),Ul=(p,b,_)=>{const T=p.document.createRange();var L;return L=T,b.fold(I=>{L.setStartBefore(I.dom)},(I,Z)=>{L.setStart(I.dom,Z)},I=>{L.setStartAfter(I.dom)}),((I,Z)=>{Z.fold(Y=>{I.setEndBefore(Y.dom)},(Y,ae)=>{I.setEnd(Y.dom,ae)},Y=>{I.setEndAfter(Y.dom)})})(T,_),T},Qf=(p,b,_,T,L)=>{const I=p.document.createRange();return I.setStart(b.dom,_),I.setEnd(T.dom,L),I},Ev=p=>({left:p.left,top:p.top,right:p.right,bottom:p.bottom,width:p.width,height:p.height}),xg=Iu([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),eh=(p,b,_)=>b(Wt.fromDom(_.startContainer),_.startOffset,Wt.fromDom(_.endContainer),_.endOffset),Tv=(p,b)=>{const _=((T,L)=>L.match({domRange:I=>({ltr:it(I),rtl:de.none}),relative:(I,Z)=>({ltr:Ee(()=>Ul(T,I,Z)),rtl:Ee(()=>de.some(Ul(T,Z,I)))}),exact:(I,Z,Y,ae)=>({ltr:Ee(()=>Qf(T,I,Z,Y,ae)),rtl:Ee(()=>de.some(Qf(T,Y,ae,I,Z)))})}))(p,b);return((T,L)=>{const I=L.ltr();return I.collapsed?L.rtl().filter(Z=>Z.collapsed===!1).map(Z=>xg.rtl(Wt.fromDom(Z.endContainer),Z.endOffset,Wt.fromDom(Z.startContainer),Z.startOffset)).getOrThunk(()=>eh(0,xg.ltr,I)):eh(0,xg.ltr,I)})(0,_)},th=(p,b)=>Tv(p,b).match({ltr:(_,T,L,I)=>{const Z=p.document.createRange();return Z.setStart(_.dom,T),Z.setEnd(L.dom,I),Z},rtl:(_,T,L,I)=>{const Z=p.document.createRange();return Z.setStart(L.dom,I),Z.setEnd(_.dom,T),Z}});xg.ltr,xg.rtl;const Ip=(p,b,_,T)=>({start:p,soffset:b,finish:_,foffset:T}),wg=(p,b,_,T)=>({start:oc.on(p,b),finish:oc.on(_,T)}),vb=(p,b)=>{const _=th(p,b);return Ip(Wt.fromDom(_.startContainer),_.startOffset,Wt.fromDom(_.endContainer),_.endOffset)},xb=wg,kg=(p,b,_,T,L)=>xr(_,T)?de.none():zu(_,T,b).bind(I=>{const Z=I.boxes.getOr([]);return Z.length>1?(L(p,Z,I.start,I.finish),de.some(Hu(de.some(xb(_,0,_,ns(_))),!0))):de.none()}),au=(p,b)=>({item:p,mode:b}),_g=(p,b,_,T=fm)=>p.property().parent(b).map(L=>au(L,T)),fm=(p,b,_,T=su)=>_.sibling(p,b).map(L=>au(L,T)),su=(p,b,_,T=su)=>{const L=p.property().children(b);return _.first(L).map(I=>au(I,T))},r_=[{current:_g,next:fm,fallback:de.none()},{current:fm,next:su,fallback:de.some(_g)},{current:su,next:su,fallback:de.some(fm)}],ju=(p,b,_,T,L=r_)=>Rt(L,I=>I.current===_).bind(I=>I.current(p,b,T,I.next).orThunk(()=>I.fallback.bind(Z=>ju(p,b,Z,T)))),oh=(p,b,_,T,L,I)=>ju(p,b,T,L).bind(Z=>I(Z.item)?de.none():_(Z.item)?de.some(Z.item):oh(p,Z.item,_,Z.mode,L,I)),zv=p=>b=>p.property().children(b).length===0,hm=(p,b,_,T)=>oh(p,b,_,fm,{sibling:(L,I)=>L.query().prevSibling(I),first:L=>L.length>0?de.some(L[L.length-1]):de.none()},T),Cg=(p,b,_,T)=>oh(p,b,_,fm,{sibling:(L,I)=>L.query().nextSibling(I),first:L=>L.length>0?de.some(L[0]):de.none()},T),wb=ys(),Av=(p,b)=>((_,T,L)=>hm(_,T,zv(_),L))(wb,p,b),m1=(p,b)=>((_,T,L)=>Cg(_,T,zv(_),L))(wb,p,b),kb=Iu([{none:["message"]},{success:[]},{failedUp:["cell"]},{failedDown:["cell"]}]),a_=p=>va(p,"tr"),Sg={...kb,verify:(p,b,_,T,L,I,Z)=>va(T,"td,th",Z).bind(Y=>va(b,"td,th",Z).map(ae=>xr(Y,ae)?xr(T,Y)&&ns(Y)===L?I(ae):kb.none("in same cell"):Ff(a_,[Y,ae]).fold(()=>((be,Le,_e)=>{const Re=be.getRect(Le),Xe=be.getRect(_e);return Xe.right>Re.left&&Xe.leftI(ae)))).getOr(kb.none("default")),cata:(p,b,_,T,L)=>p.fold(b,_,T,L)},nh=zn("br"),g1=(p,b,_)=>b(p,_).bind(T=>Zo(T)&&Hs(T).trim().length===0?g1(T,b,_):de.some(T)),Ov=(p,b,_,T)=>((L,I)=>_t(L,I).filter(nh).orThunk(()=>_t(L,I-1).filter(nh)))(b,_).bind(L=>T.traverse(L).fold(()=>g1(L,T.gather,p).map(T.relative),I=>(Z=>Ha(Z).bind(Y=>{const ae=tt(Y);return((be,Le)=>uo(be,he(xr,Le)))(ae,Z).map(be=>((Le,_e,Re,Xe)=>({parent:Le,children:_e,element:Re,index:Xe}))(Y,ae,Z,be))}))(I).map(Z=>oc.on(Z.parent,Z.index)))),qm=(p,b)=>({left:p.left,top:p.top+b,right:p.right,bottom:p.bottom+b}),Pp=(p,b)=>({left:p.left,top:p.top-b,right:p.right,bottom:p.bottom-b}),p1=(p,b,_)=>({left:p.left+b,top:p.top+_,right:p.right+b,bottom:p.bottom+_}),_b=p=>({left:p.left,top:p.top,right:p.right,bottom:p.bottom}),Cb=(p,b)=>de.some(p.getRect(b)),rh=(p,b,_)=>$o(b)?Cb(p,b).map(_b):Zo(b)?((T,L,I)=>I>=0&&I0?T.getRangedRect(L,I-1,L,I):de.none())(p,b,_).map(_b):de.none(),Nv=(p,b)=>$o(b)?Cb(p,b).map(_b):Zo(b)?p.getRangedRect(b,0,b,ns(b)).map(_b):de.none(),iu=Iu([{none:[]},{retry:["caret"]}]),Hp=(p,b,_)=>mi(b,ou).fold(me,T=>Nv(p,T).exists(L=>((I,Z)=>I.leftZ.right)(_,L))),Mv={point:p=>p.bottom,adjuster:(p,b,_,T,L)=>{const I=qm(L,5);return Math.abs(_.bottom-T.bottom)<1||_.top>L.bottom?iu.retry(I):_.top===L.bottom?iu.retry(qm(L,1)):Hp(p,b,L)?iu.retry(p1(I,5,0)):iu.none()},move:qm,gather:m1},Sb=(p,b,_,T,L)=>L===0?de.some(T):((I,Z,Y)=>I.elementFromPoint(Z,Y).filter(ae=>ze(ae)==="table").isSome())(p,T.left,b.point(T))?((I,Z,Y,ae,be)=>Sb(I,Z,Y,Z.move(ae,5),be))(p,b,_,T,L-1):p.situsFromPoint(T.left,b.point(T)).bind(I=>I.start.fold(de.none,Z=>Nv(p,Z).bind(Y=>b.adjuster(p,Z,Y,_,T).fold(de.none,ae=>Sb(p,b,_,ae,L-1))).orThunk(()=>de.some(T)),de.none)),f1=(p,b,_)=>{const T=p.move(_,5),L=Sb(b,p,_,T,100).getOr(T);return((I,Z,Y)=>I.point(Z)>Y.getInnerHeight()?de.some(I.point(Z)-Y.getInnerHeight()):I.point(Z)<0?de.some(-I.point(Z)):de.none())(p,L,b).fold(()=>b.situsFromPoint(L.left,p.point(L)),I=>(b.scrollBy(0,I),b.situsFromPoint(L.left,p.point(L)-I)))},Eg={tryUp:he(f1,{point:p=>p.top,adjuster:(p,b,_,T,L)=>{const I=Pp(L,5);return Math.abs(_.top-T.top)<1||_.bottomp.getSelection().bind(T=>((L,I,Z,Y)=>(nh(I)?((be,Le,_e)=>_e.traverse(Le).orThunk(()=>g1(Le,_e.gather,be)).map(_e.relative))(L,I,Y):Ov(L,I,Z,Y)).map(be=>({start:be,finish:be})))(b,T.finish,T.foffset,_).fold(()=>de.some(Nu(T.finish,T.foffset)),L=>{const I=p.fromSitus(L);return Z=Sg.verify(p,T.finish,T.foffset,I.finish,I.foffset,_.failure,b),Sg.cata(Z,Y=>de.none(),()=>de.none(),Y=>de.some(Nu(Y,0)),Y=>de.some(Nu(Y,ns(Y))));var Z})),Tg=(p,b,_,T,L,I)=>I===0?de.none():Rv(p,b,_,T,L).bind(Z=>{const Y=p.fromSitus(Z),ae=Sg.verify(p,_,T,Y.finish,Y.foffset,L.failure,b);return Sg.cata(ae,()=>de.none(),()=>de.some(Z),be=>xr(_,be)&&T===0?h1(p,_,T,Pp,L):Tg(p,b,be,0,L,I-1),be=>xr(_,be)&&T===ns(be)?h1(p,_,T,qm,L):Tg(p,b,be,ns(be),L,I-1))}),h1=(p,b,_,T,L)=>rh(p,b,_).bind(I=>Zl(p,L,T(I,Eg.getJumpSize()))),Zl=(p,b,_)=>{const T=Il().browser;return T.isChromium()||T.isSafari()||T.isFirefox()?b.retry(p,_):de.none()},Rv=(p,b,_,T,L)=>rh(p,_,T).bind(I=>Zl(p,L,I)),Bv=(p,b,_,T,L)=>va(T,"td,th",b).bind(I=>va(I,"table",b).bind(Z=>((Y,ae)=>Zs(Y,be=>Ha(be).exists(Le=>xr(Le,ae)),void 0).isSome())(L,Z)?((Y,ae,be)=>Dv(Y,ae,be).bind(Le=>Tg(Y,ae,Le.element,Le.offset,be,20).map(Y.fromSitus)))(p,b,_).bind(Y=>va(Y.finish,"td,th",b).map(ae=>({start:I,finish:ae,range:Y}))):de.none())),b1=(p,b,_,T,L,I)=>I(T,b).orThunk(()=>Bv(p,b,_,T,L).map(Z=>{const Y=Z.range;return Hu(de.some(xb(Y.start,Y.soffset,Y.finish,Y.foffset)),!0)})),s_=(p,b)=>va(p,"tr",b).bind(_=>va(_,"table",b).bind(T=>{const L=ra(T,"tr");return xr(_,L[0])?((I,Z,Y)=>hm(wb,I,ae=>wd(ae).isSome(),Y))(T,0,b).map(I=>{const Z=ns(I);return Hu(de.some(xb(I,Z,I,Z)),!0)}):de.none()})),Eb=(p,b)=>va(p,"tr",b).bind(_=>va(_,"table",b).bind(T=>{const L=ra(T,"tr");return xr(_,L[L.length-1])?((I,Z,Y)=>Cg(wb,I,ae=>Ai(ae).isSome(),Y))(T,0,b).map(I=>Hu(de.some(xb(I,0,I,0)),!0)):de.none()})),y1=(p,b,_,T,L,I,Z)=>Bv(p,_,T,L,I).bind(Y=>kg(b,_,Y.start,Y.finish,Z)),ah=p=>{let b=p;return{get:()=>b,set:_=>{b=_}}},sh=()=>{const p=(b=>{const _=ah(de.none()),T=()=>_.get().each(b);return{clear:()=>{T(),_.set(de.none())},isSet:()=>_.get().isSome(),get:()=>_.get(),set:L=>{T(),_.set(de.some(L))}}})(Ue);return{...p,on:b=>p.get().each(b)}},Fv=(p,b)=>va(p,"td,th",b),Tb=p=>ja(p).exists(fn),zb={traverse:_a,gather:m1,relative:oc.before,retry:Eg.tryDown,failure:Sg.failedDown},v1={traverse:Us,gather:Av,relative:oc.before,retry:Eg.tryUp,failure:Sg.failedUp},zg=p=>b=>b===p,Ab=zg(38),ih=zg(40),bm=p=>p>=37&&p<=40,Lv={isBackward:zg(37),isForward:zg(39)},x1={isBackward:zg(39),isForward:zg(37)},lh=Iu([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),Ag={domRange:lh.domRange,relative:lh.relative,exact:lh.exact,exactFromRange:p=>lh.exact(p.start,p.soffset,p.finish,p.foffset),getWin:p=>{const b=(_=>_.match({domRange:T=>Wt.fromDom(T.startContainer),relative:(T,L)=>oc.getStart(T),exact:(T,L,I,Z)=>T}))(p);return Wt.fromDom(cs(b).dom.defaultView)},range:Ip},i_=document.caretPositionFromPoint?(p,b,_)=>{var T,L;return de.from((L=(T=p.dom).caretPositionFromPoint)===null||L===void 0?void 0:L.call(T,b,_)).bind(I=>{if(I.offsetNode===null)return de.none();const Z=p.dom.createRange();return Z.setStart(I.offsetNode,I.offset),Z.collapse(),de.some(Z)})}:document.caretRangeFromPoint?(p,b,_)=>{var T,L;return de.from((L=(T=p.dom).caretRangeFromPoint)===null||L===void 0?void 0:L.call(T,b,_))}:de.none,Ob=(p,b)=>{const _=ze(p);return _==="input"?oc.after(p):gn(["br","img"],_)?b===0?oc.before(p):oc.after(p):oc.on(p,b)},jp=p=>de.from(p.getSelection()),Iv=(p,b)=>{jp(p).each(_=>{_.removeAllRanges(),_.addRange(b)})},Nb=(p,b,_,T,L)=>{const I=Qf(p,b,_,T,L);Iv(p,I)},Mb=(p,b)=>Tv(p,b).match({ltr:(_,T,L,I)=>{Nb(p,_,T,L,I)},rtl:(_,T,L,I)=>{jp(p).each(Z=>{if(Z.setBaseAndExtent)Z.setBaseAndExtent(_.dom,T,L.dom,I);else if(Z.extend)try{((Y,ae,be,Le,_e,Re)=>{ae.collapse(be.dom,Le),ae.extend(_e.dom,Re)})(0,Z,_,T,L,I)}catch{Nb(p,L,I,_,T)}else Nb(p,L,I,_,T)})}}),w1=(p,b,_,T,L)=>{const I=((Z,Y,ae,be)=>{const Le=Ob(Z,Y),_e=Ob(ae,be);return Ag.relative(Le,_e)})(b,_,T,L);Mb(p,I)},xl=(p,b,_)=>{const T=((L,I)=>{const Z=L.fold(oc.before,Ob,oc.after),Y=I.fold(oc.before,Ob,oc.after);return Ag.relative(Z,Y)})(b,_);Mb(p,T)},ch=p=>{if(p.rangeCount>0){const b=p.getRangeAt(0),_=p.getRangeAt(p.rangeCount-1);return de.some(Ip(Wt.fromDom(b.startContainer),b.startOffset,Wt.fromDom(_.endContainer),_.endOffset))}return de.none()},dh=p=>{if(p.anchorNode===null||p.focusNode===null)return ch(p);{const b=Wt.fromDom(p.anchorNode),_=Wt.fromDom(p.focusNode);return((T,L,I,Z)=>{const Y=((be,Le,_e,Re)=>{const Xe=Pa(be).dom.createRange();return Xe.setStart(be.dom,Le),Xe.setEnd(_e.dom,Re),Xe})(T,L,I,Z),ae=xr(T,I)&&L===Z;return Y.collapsed&&!ae})(b,p.anchorOffset,_,p.focusOffset)?de.some(Ip(b,p.anchorOffset,_,p.focusOffset)):ch(p)}},Dd=(p,b,_=!0)=>{const T=(_?ms:vg)(p,b);Iv(p,T)},k1=p=>(b=>jp(b).filter(_=>_.rangeCount>0).bind(dh))(p).map(b=>Ag.exact(b.start,b.soffset,b.finish,b.foffset)),uh=p=>({elementFromPoint:(b,_)=>Wt.fromPoint(Wt.fromDom(p.document),b,_),getRect:b=>b.dom.getBoundingClientRect(),getRangedRect:(b,_,T,L)=>{const I=Ag.exact(b,_,T,L);return((Z,Y)=>(ae=>{const be=ae.getClientRects(),Le=be.length>0?be[0]:ae.getBoundingClientRect();return Le.width>0||Le.height>0?de.some(Le).map(Ev):de.none()})(th(Z,Y)))(p,I)},getSelection:()=>k1(p).map(b=>vb(p,b)),fromSitus:b=>{const _=Ag.relative(b.start,b.finish);return vb(p,_)},situsFromPoint:(b,_)=>((T,L,I)=>((Z,Y,ae)=>{const be=Wt.fromDom(Z.document);return i_(be,Y,ae).map(Le=>Ip(Wt.fromDom(Le.startContainer),Le.startOffset,Wt.fromDom(Le.endContainer),Le.endOffset))})(T,L,I))(p,b,_).map(T=>wg(T.start,T.soffset,T.finish,T.foffset)),clearSelection:()=>{(b=>{jp(b).each(_=>_.removeAllRanges())})(p)},collapseSelection:(b=!1)=>{k1(p).each(_=>_.fold(T=>T.collapse(b),(T,L)=>{const I=b?T:L;xl(p,I,I)},(T,L,I,Z)=>{const Y=b?T:I,ae=b?L:Z;w1(p,Y,ae,Y,ae)}))},setSelection:b=>{w1(p,b.start,b.soffset,b.finish,b.foffset)},setRelativeSelection:(b,_)=>{xl(p,b,_)},selectNode:b=>{Dd(p,b,!1)},selectContents:b=>{Dd(p,b)},getInnerHeight:()=>p.innerHeight,getScrollY:()=>(b=>{const _=b!==void 0?b.dom:document,T=_.body.scrollLeft||_.documentElement.scrollLeft,L=_.body.scrollTop||_.documentElement.scrollTop;return Jl(T,L)})(Wt.fromDom(p.document)).top,scrollBy:(b,_)=>{((T,L,I)=>{const Z=(I!==void 0?I.dom:document).defaultView;Z&&Z.scrollBy(T,L)})(b,_,Wt.fromDom(p.document))}}),Og=(p,b)=>({rows:p,cols:b}),ym=p=>mi(p,Xo).exists(fn),Db=(p,b)=>ym(p)||ym(b),Rb=p=>p.dom.classList!==void 0,id=(p,b)=>((_,T,L)=>{const I=((Z,Y)=>{const ae=vo(Z,Y);return ae===void 0||ae===""?[]:ae.split(" ")})(_,T).concat([L]);return zt(_,T,I.join(" ")),!0})(p,"class",b),lu=(p,b)=>{Rb(p)?p.dom.classList.add(b):id(p,b)},mh=(p,b)=>Rb(p)&&p.dom.classList.contains(b),Vp=()=>({tag:"none"}),Pv=p=>({tag:"multiple",elements:p}),Hv=p=>({tag:"single",element:p}),Bb=p=>{const b=Wt.fromDom((Y=>{if(Lo()&&jo(Y.target)){const ae=Wt.fromDom(Y.target);if($o(ae)&&jo(ae.dom.shadowRoot)&&Y.composed&&Y.composedPath){const be=Y.composedPath();if(be)return Pt(be)}}return de.from(Y.target)})(p).getOr(p.target)),_=()=>p.stopPropagation(),T=()=>p.preventDefault(),L=(I=T,Z=_,(...Y)=>I(Z.apply(null,Y)));var I,Z;return((Y,ae,be,Le,_e,Re,Xe)=>({target:Y,x:ae,y:be,stop:Le,prevent:_e,kill:Re,raw:Xe}))(b,p.clientX,p.clientY,_,T,L,p)},_1=(p,b,_,T)=>{p.dom.removeEventListener(b,_,T)},jv=Ze,Ng=(p,b,_)=>((T,L,I,Z)=>((Y,ae,be,Le,_e)=>{const Re=((Xe,Et)=>vt=>{Xe(vt)&&Et(Bb(vt))})(be,Le);return Y.dom.addEventListener(ae,Re,_e),{unbind:he(_1,Y,ae,Re,_e)}})(T,L,I,Z,!1))(p,b,jv,_),$p=Bb,vm=p=>!mh(Wt.fromDom(p.target),"ephox-snooker-resizer-bar"),Mg=(p,b)=>{const _=(L=$r.selectedSelector,{get:()=>Ou(Wt.fromDom(p.getBody()),L).fold(()=>Hm(Ka(p),Tn(p)).fold(Vp,Hv),Pv)}),T=((I,Z,Y)=>{const ae=Re=>{Vo(Re,I.selected),Vo(Re,I.firstSelected),Vo(Re,I.lastSelected)},be=Re=>{zt(Re,I.selected,"1")},Le=Re=>{_e(Re),Y()},_e=Re=>{const Xe=ra(Re,`${I.selectedSelector},${I.firstSelectedSelector},${I.lastSelectedSelector}`);qe(Xe,ae)};return{clearBeforeUpdate:_e,clear:Le,selectRange:(Re,Xe,Et,vt)=>{Le(Re),qe(Xe,be),zt(Et,I.firstSelected,"1"),zt(vt,I.lastSelected,"1"),Z(Xe,Et,vt)},selectedSelector:I.selectedSelector,firstSelectedSelector:I.firstSelectedSelector,lastSelectedSelector:I.lastSelectedSelector}})($r,(I,Z,Y)=>{_r(Z).each(ae=>{const be=Tu(p),Le=Xi(Ue,Wt.fromDom(p.getDoc()),be),_e=((Re,Xe,Et)=>{const vt=ts(Re);return Ia(vt,Xe).map(qt=>{const eo=qo(vt,Et,!1),{rows:bo}=ta(eo),ao=((Ro,No)=>{const Ln=Ro.slice(0,No[No.length-1].row+1),qn=Xn(Ln);return V(qn,Qr=>{const or=Qr.cells.slice(0,No[No.length-1].column+1);return R(or,Mr=>Mr.element)})})(bo,qt),Eo=((Ro,No)=>{const Ln=Ro.slice(No[0].row+No[0].rowspan-1,Ro.length),qn=Xn(Ln);return V(qn,Qr=>{const or=Qr.cells.slice(No[0].column+No[0].colspan-1,Qr.cells.length);return R(or,Mr=>Mr.element)})})(bo,qt);return{upOrLeftCells:ao,downOrRightCells:Eo}})})(ae,{selection:Bc(p)},Le);((Re,Xe,Et,vt,qt)=>{Re.dispatch("TableSelectionChange",{cells:Xe,start:Et,finish:vt,otherCells:qt})})(p,I,Z,Y,_e)})},()=>(I=>{I.dispatch("TableSelectionClear")})(p));var L;return p.on("init",I=>{const Z=p.getWin(),Y=Hn(p),ae=Tn(p),be=((vt,qt,eo,bo)=>{const ao=((Eo,Ro,No,Ln)=>{const qn=sh(),Qr=qn.clear,or=Mr=>{qn.on(Er=>{Ln.clearBeforeUpdate(Ro),Fv(Mr.target,No).each(ca=>{zu(Er,ca,No).each(zs=>{const il=zs.boxes.getOr([]);if(il.length===1){const ii=il[0],ql=ir(ii)==="false",ua=Cs(_o(Mr.target),ii,xr);ql&&ua&&(Ln.selectRange(Ro,il,ii,ii),Eo.selectContents(ii))}else il.length>1&&(Ln.selectRange(Ro,il,zs.start,zs.finish),Eo.selectContents(ca))})})})};return{clearstate:Qr,mousedown:Mr=>{Ln.clear(Ro),Fv(Mr.target,No).filter(Tb).each(qn.set)},mouseover:Mr=>{or(Mr)},mouseup:Mr=>{or(Mr),Qr()}}})(uh(vt),qt,eo,bo);return{clearstate:ao.clearstate,mousedown:ao.mousedown,mouseover:ao.mouseover,mouseup:ao.mouseup}})(Z,Y,ae,T),Le=((vt,qt,eo,bo)=>{const ao=uh(vt),Eo=()=>(bo.clear(qt),de.none());return{keydown:(Ro,No,Ln,qn,Qr,or)=>{const Mr=Ro.raw,Er=Mr.which,ca=Mr.shiftKey===!0;return Au(qt,bo.selectedSelector).fold(()=>(bm(Er)&&!ca&&bo.clearBeforeUpdate(qt),bm(Er)&&ca&&!Db(No,qn)?de.none:ih(Er)&&ca?he(y1,ao,qt,eo,zb,qn,No,bo.selectRange):Ab(Er)&&ca?he(y1,ao,qt,eo,v1,qn,No,bo.selectRange):ih(Er)?he(b1,ao,eo,zb,qn,No,Eb):Ab(Er)?he(b1,ao,eo,v1,qn,No,s_):de.none),il=>{const ii=ql=>()=>zo(ql,li=>((Vu,Kp,wm,Fg,Yp)=>sm(Fg,Vu,Kp,Yp.firstSelectedSelector,Yp.lastSelectedSelector).map(Xp=>(Yp.clearBeforeUpdate(wm),Yp.selectRange(wm,Xp.boxes,Xp.start,Xp.finish),Xp.boxes)))(li.rows,li.cols,qt,il,bo)).fold(()=>Rc(qt,bo.firstSelectedSelector,bo.lastSelectedSelector).map(li=>{const Vu=ih(Er)||or.isForward(Er)?oc.after:oc.before;return ao.setRelativeSelection(oc.on(li.first,0),Vu(li.table)),bo.clear(qt),Hu(de.none(),!0)}),li=>de.some(Hu(de.none(),!0)));return bm(Er)&&ca&&!Db(No,qn)?de.none:ih(Er)&&ca?ii([Og(1,0)]):Ab(Er)&&ca?ii([Og(-1,0)]):or.isBackward(Er)&&ca?ii([Og(0,-1),Og(-1,0)]):or.isForward(Er)&&ca?ii([Og(0,1),Og(1,0)]):bm(Er)&&!ca?Eo:de.none})()},keyup:(Ro,No,Ln,qn,Qr)=>Au(qt,bo.selectedSelector).fold(()=>{const or=Ro.raw,Mr=or.which;return or.shiftKey===!0&&bm(Mr)&&Db(No,qn)?((Er,ca,zs,il,ii,ql,ua)=>xr(zs,ii)&&il===ql?de.none():va(zs,"td,th",ca).bind(li=>va(ii,"td,th",ca).bind(Vu=>kg(Er,ca,li,Vu,ua))))(qt,eo,No,Ln,qn,Qr,bo.selectRange):de.none()},de.none)}})(Z,Y,ae,T),_e=((vt,qt,eo,bo)=>{const ao=uh(vt);return(Eo,Ro)=>{bo.clearBeforeUpdate(qt),zu(Eo,Ro,eo).each(No=>{const Ln=No.boxes.getOr([]);bo.selectRange(qt,Ln,No.start,No.finish),ao.selectContents(Ro),ao.collapseSelection()})}})(Z,Y,ae,T);p.on("TableSelectorChange",vt=>_e(vt.start,vt.finish));const Re=(vt,qt)=>{(eo=>eo.raw.shiftKey===!0)(vt)&&(qt.kill&&vt.kill(),qt.selection.each(eo=>{const bo=Ag.relative(eo.start,eo.finish),ao=th(Z,bo);p.selection.setRng(ao)}))},Xe=vt=>vt.button===0,Et=(()=>{const vt=ah(Wt.fromDom(Y)),qt=ah(0);return{touchEnd:eo=>{const bo=Wt.fromDom(eo.target);if(zn("td")(bo)||zn("th")(bo)){const ao=vt.get(),Eo=qt.get();xr(ao,bo)&&eo.timeStamp-Eo<300&&(eo.preventDefault(),_e(bo,bo))}vt.set(bo),qt.set(eo.timeStamp)}}})();p.on("dragstart",vt=>{be.clearstate()}),p.on("mousedown",vt=>{Xe(vt)&&vm(vt)&&be.mousedown($p(vt))}),p.on("mouseover",vt=>{var qt;(qt=vt).buttons!==void 0&&!(1&qt.buttons)||!vm(vt)||be.mouseover($p(vt))}),p.on("mouseup",vt=>{Xe(vt)&&vm(vt)&&be.mouseup($p(vt))}),p.on("touchend",Et.touchEnd),p.on("keyup",vt=>{const qt=$p(vt);if(qt.raw.shiftKey&&bm(qt.raw.which)){const eo=p.selection.getRng(),bo=Wt.fromDom(eo.startContainer),ao=Wt.fromDom(eo.endContainer);Le.keyup(qt,bo,eo.startOffset,ao,eo.endOffset).each(Eo=>{Re(qt,Eo)})}}),p.on("keydown",vt=>{const qt=$p(vt);b.hide();const eo=p.selection.getRng(),bo=Wt.fromDom(eo.startContainer),ao=Wt.fromDom(eo.endContainer),Eo=Mc(Lv,x1)(Wt.fromDom(p.selection.getStart()));Le.keydown(qt,bo,eo.startOffset,ao,eo.endOffset,Eo).each(Ro=>{Re(qt,Ro)}),b.show()}),p.on("NodeChange",()=>{const vt=p.selection,qt=Wt.fromDom(vt.getStart()),eo=Wt.fromDom(vt.getEnd());Ff(_r,[qt,eo]).fold(()=>T.clear(Y),Ue)})}),p.on("PreInit",()=>{p.serializer.addTempAttr($r.firstSelected),p.serializer.addTempAttr($r.lastSelected)}),{getSelectedCells:()=>((I,Z,Y,ae)=>{switch(I.tag){case"none":return Z();case"single":return(be=>[be.dom])(I.element);case"multiple":return(be=>R(be,Le=>Le.dom))(I.elements)}})(_.get(),it([])),clearSelectedCells:I=>T.clear(Wt.fromDom(I))}},Ac=p=>{let b=[];return{bind:_=>{if(_===void 0)throw new Error("Event bind error: undefined handler");b.push(_)},unbind:_=>{b=lt(b,T=>T!==_)},trigger:(..._)=>{const T={};qe(p,(L,I)=>{T[L]=_[I]}),qe(b,L=>{L(T)})}}},cu=p=>({registry:ct(p,b=>({bind:b.bind,unbind:b.unbind})),trigger:ct(p,b=>b.trigger)}),Rd=p=>p.slice(0).sort(),Lr=(p,b)=>{const _=lt(b,T=>!gn(p,T));_.length>0&&(T=>{throw new Error("Unsupported keys for object: "+Rd(T).join(", "))})(_)},Bd=p=>((b,_)=>((T,L,I)=>{if(L.length===0)throw new Error("You must specify at least one required field.");return((Z,Y)=>{if(!Po(Y))throw new Error("The "+Z+" fields must be an array. Was: "+Y+".");qe(Y,ae=>{if(!Qo(ae))throw new Error("The value "+ae+" in the "+Z+" fields was not a string.")})})("required",L),(Z=>{const Y=Rd(Z);Rt(Y,(ae,be)=>be{throw new Error("The field: "+ae+" occurs more than once in the combined fields: ["+Y.join(", ")+"].")})})(L),Z=>{const Y=to(Z);dt(L,be=>gn(Y,be))||((be,Le)=>{throw new Error("All required keys ("+Rd(be).join(", ")+") were not specified. Specified keys were: "+Rd(Le).join(", ")+".")})(L,Y),T(L,Y);const ae=lt(L,be=>!I.validate(Z[be],be));return ae.length>0&&((be,Le)=>{throw new Error("All values need to be of type: "+Le+". Keys ("+Rd(be).join(", ")+") were not.")})(ae,I.label),Z}})(b,_,{validate:tn,label:"function"}))(Lr,p),Dg=Bd(["compare","extract","mutate","sink"]),C1=Bd(["element","start","stop","destroy"]),Vv=Bd(["forceDrop","drop","move","delayDrop"]),Rg=()=>{const p=(()=>{const T=cu({move:Ac(["info"])});return{onEvent:Ue,reset:Ue,events:T.registry}})(),b=(()=>{let T=de.none();const L=cu({move:Ac(["info"])});return{onEvent:(I,Z)=>{Z.extract(I).each(Y=>{((be,Le)=>{const _e=T.map(Re=>be.compare(Re,Le));return T=de.some(Le),_e})(Z,Y).each(be=>{L.trigger.move(be)})})},reset:()=>{T=de.none()},events:L.registry}})();let _=p;return{on:()=>{_.reset(),_=b},off:()=>{_.reset(),_=p},isOn:()=>_===b,onEvent:(T,L)=>{_.onEvent(T,L)},events:b.events}},Up=p=>{const b=p.replace(/\./g,"-");return{resolve:_=>b+"-"+_}},Zp=Up("ephox-dragster").resolve;var Fb=Dg({compare:(p,b)=>Jl(b.left-p.left,b.top-p.top),extract:p=>de.some(Jl(p.x,p.y)),sink:(p,b)=>{const _=(Y=>{const ae={layerClass:Zp("blocker"),...Y},be=Wt.fromTag("div");return zt(be,"role","presentation"),Hi(be,{position:"fixed",left:"0px",top:"0px",width:"100%",height:"100%"}),lu(be,Zp("blocker")),lu(be,ae.layerClass),{element:it(be),destroy:()=>{Ae(be)}}})(b),T=Ng(_.element(),"mousedown",p.forceDrop),L=Ng(_.element(),"mouseup",p.drop),I=Ng(_.element(),"mousemove",p.move),Z=Ng(_.element(),"mouseout",p.delayDrop);return C1({element:_.element,start:Y=>{kr(Y,_.element())},stop:()=>{Ae(_.element())},destroy:()=>{_.destroy(),L.unbind(),I.unbind(),Z.unbind(),T.unbind()}})},mutate:(p,b)=>{p.mutate(b.left,b.top)}});const xm=Up("ephox-snooker").resolve,qp=xm("resizer-bar"),Lb=xm("resizer-rows"),Wp=xm("resizer-cols"),Bi=p=>{const b=ra(p.parent(),"."+qp);qe(b,Ae)},$v=(p,b,_)=>{const T=p.origin();qe(b,L=>{L.each(I=>{const Z=_(T,I);lu(Z,qp),kr(p.parent(),Z)})})},du=(p,b,_,T,L)=>{const I=Dc(_),Z=b.isResizable,Y=T.length>0?Cn.positions(T,_):[],ae=Y.length>0?((_e,Re)=>V(_e.all,(Xe,Et)=>Re(Xe.element)?[Et]:[]))(p,Z):[];((_e,Re,Xe,Et)=>{$v(_e,Re,(vt,qt)=>{const eo=((bo,ao,Eo,Ro,No)=>{const Ln=Wt.fromTag("div");return Hi(Ln,{position:"absolute",left:ao+"px",top:Eo-3.5+"px",height:"7px",width:Ro+"px"}),Ft(Ln,{"data-row":bo,role:"presentation"}),Ln})(qt.row,Xe.left-vt.left,qt.y-vt.top,Et);return lu(eo,Lb),eo})})(b,lt(Y,(_e,Re)=>Bo(ae,Xe=>Re===Xe)),I,yt(_));const be=L.length>0?ec.positions(L,_):[],Le=be.length>0?((_e,Re)=>{const Xe=[];return Ct(_e.grid.columns,Et=>{Zd(_e,Et).map(vt=>vt.element).forall(Re)&&Xe.push(Et)}),lt(Xe,Et=>{const vt=Yc(_e,qt=>qt.column===Et);return dt(vt,qt=>Re(qt.element))})})(p,Z):[];((_e,Re,Xe,Et)=>{$v(_e,Re,(vt,qt)=>{const eo=((bo,ao,Eo,Ro,No)=>{const Ln=Wt.fromTag("div");return Hi(Ln,{position:"absolute",left:ao-3.5+"px",top:Eo+"px",height:No+"px",width:"7px"}),Ft(Ln,{"data-column":bo,role:"presentation"}),Ln})(qt.col,qt.x-vt.left,Xe.top-vt.top,0,Et);return lu(eo,Wp),eo})})(b,lt(be,(_e,Re)=>Bo(Le,Xe=>Re===Xe)),I,rl(_))},Ib=(p,b)=>{if(Bi(p),p.isResizable(b)){const _=ts(b),T=Yi(_),L=hd(_);du(_,p,b,T,L)}},Pb=(p,b)=>{const _=ra(p.parent(),"."+qp);qe(_,b)},Gp=p=>{Pb(p,b=>{Rn(b,"display","none")})},Uv=p=>{Pb(p,b=>{Rn(b,"display","block")})},Wo=xm("resizer-bar-dragging"),qi=p=>{const b=(()=>{const _e=cu({drag:Ac(["xDelta","yDelta","target"])});let Re=de.none();const Xe=(()=>{const Et=cu({drag:Ac(["xDelta","yDelta"])});return{mutate:(vt,qt)=>{Et.trigger.drag(vt,qt)},events:Et.registry}})();return Xe.events.drag.bind(Et=>{Re.each(vt=>{_e.trigger.drag(Et.xDelta,Et.yDelta,vt)})}),{assign:Et=>{Re=de.some(Et)},get:()=>Re,mutate:Xe.mutate,events:_e.registry}})(),_=((_e,Re={})=>{var Xe;return((Et,vt,qt)=>{let eo=!1;const bo=cu({start:Ac([]),stop:Ac([])}),ao=Rg(),Eo=()=>{Ln.stop(),ao.isOn()&&(ao.off(),bo.trigger.stop())},Ro=((qn,Qr)=>{let or=null;const Mr=()=>{jt(or)||(clearTimeout(or),or=null)};return{cancel:Mr,throttle:(...Er)=>{Mr(),or=setTimeout(()=>{or=null,qn.apply(null,Er)},200)}}})(Eo);ao.events.move.bind(qn=>{vt.mutate(Et,qn.info)});const No=qn=>(...Qr)=>{eo&&qn.apply(null,Qr)},Ln=vt.sink(Vv({forceDrop:Eo,drop:No(Eo),move:No(qn=>{Ro.cancel(),ao.onEvent(qn,vt)}),delayDrop:No(Ro.throttle)}),qt);return{element:Ln.element,go:qn=>{Ln.start(qn),ao.on(),bo.trigger.start()},on:()=>{eo=!0},off:()=>{eo=!1},isActive:()=>eo,destroy:()=>{Ln.destroy()},events:bo.registry}})(_e,(Xe=Re.mode)!==null&&Xe!==void 0?Xe:Fb,Re)})(b,{});let T=de.none();const L=(_e,Re)=>de.from(vo(_e,Re));b.events.drag.bind(_e=>{L(_e.target,"data-row").each(Re=>{const Xe=Pr(_e.target,"top");Rn(_e.target,"top",Xe+_e.yDelta+"px")}),L(_e.target,"data-column").each(Re=>{const Xe=Pr(_e.target,"left");Rn(_e.target,"left",Xe+_e.xDelta+"px")})});const I=(_e,Re)=>Pr(_e,Re)-Ss(_e,"data-initial-"+Re,0);_.events.stop.bind(()=>{b.get().each(_e=>{T.each(Re=>{L(_e,"data-row").each(Xe=>{const Et=I(_e,"top");Vo(_e,"data-initial-top"),Le.trigger.adjustHeight(Re,Et,parseInt(Xe,10))}),L(_e,"data-column").each(Xe=>{const Et=I(_e,"left");Vo(_e,"data-initial-left"),Le.trigger.adjustWidth(Re,Et,parseInt(Xe,10))}),Ib(p,Re)})})});const Z=(_e,Re)=>{Le.trigger.startAdjust(),b.assign(_e),zt(_e,"data-initial-"+Re,Pr(_e,Re)),lu(_e,Wo),Rn(_e,"opacity","0.2"),_.go(p.parent())},Y=Ng(p.parent(),"mousedown",_e=>{var Re;Re=_e.target,mh(Re,Lb)&&Z(_e.target,"top"),(Xe=>mh(Xe,Wp))(_e.target)&&Z(_e.target,"left")}),ae=_e=>xr(_e,p.view()),be=Ng(p.view(),"mouseover",_e=>{var Re;(Re=_e.target,va(Re,"table",ae).filter(fn)).fold(()=>{Go(_e.target)&&Bi(p)},Xe=>{_.isActive()&&(T=de.some(Xe),Ib(p,Xe))})}),Le=cu({adjustHeight:Ac(["table","delta","row"]),adjustWidth:Ac(["table","delta","column"]),startAdjust:Ac([])});return{destroy:()=>{Y.unbind(),be.unbind(),_.destroy(),Bi(p)},refresh:_e=>{Ib(p,_e)},on:_.on,off:_.off,hideBars:he(Gp,p),showBars:he(Uv,p),events:Le.registry}},Hb=(p,b,_)=>{const T=Cn,L=ec,I=qi(p),Z=cu({beforeResize:Ac(["table","type"]),afterResize:Ac(["table","type"]),startDrag:Ac([])});return I.events.adjustHeight.bind(Y=>{const ae=Y.table;Z.trigger.beforeResize(ae,"row"),((be,Le,_e,Re)=>{const Xe=ts(be),Et=((ao,Eo,Ro)=>us(ao,Eo,Ro,Sl,No=>No.getOrThunk(Be)))(Xe,be,Re),vt=R(Et,(ao,Eo)=>_e===Eo?Math.max(Le+ao,Be()):ao),qt=Tp(Xe,vt),eo=((ao,Eo)=>R(ao.all,(Ro,No)=>({element:Ro.element,height:Eo[No]})))(Xe,vt);qe(eo,ao=>{kc(ao.element,ao.height)}),qe(qt,ao=>{kc(ao.element,ao.height)});const bo=Mt(vt,(ao,Eo)=>ao+Eo,0);kc(be,bo)})(ae,T.delta(Y.delta,ae),Y.row,T),Z.trigger.afterResize(ae,"row")}),I.events.startAdjust.bind(Y=>{Z.trigger.startDrag()}),I.events.adjustWidth.bind(Y=>{const ae=Y.table;Z.trigger.beforeResize(ae,"col");const be=L.delta(Y.delta,ae),Le=_(ae);zp(ae,be,Y.column,b,Le),Z.trigger.afterResize(ae,"col")}),{on:I.on,off:I.off,refreshBars:I.refresh,hideBars:I.hideBars,showBars:I.showBars,destroy:I.destroy,events:Z.registry}},Fi=p=>jo(p)&&p.nodeName==="TABLE",nc="bar-",Bg=p=>vo(p,"data-mce-resize")!=="false",S1=p=>{const b=sh(),_=sh(),T=sh();let L,I;const Z=ae=>yi(p,ae),Y=()=>bs(p)?Cc():If();return p.on("init",()=>{const ae=((be,Le)=>be.inline?((_e,Re,Xe)=>({parent:it(Re),view:it(_e),origin:it(Jl(0,0)),isResizable:Xe}))(Wt.fromDom(be.getBody()),(()=>{const _e=Wt.fromTag("div");return Hi(_e,{position:"static",height:"0",width:"0",padding:"0",margin:"0",border:"0"}),kr(hn(Wt.fromDom(document)),_e),_e})(),Le):((_e,Re)=>{const Xe=Gn(_e)?(Et=>Wt.fromDom(cs(Et).dom.documentElement))(_e):_e;return{parent:it(Xe),view:it(_e),origin:it(Jl(0,0)),isResizable:Re}})(Wt.fromDom(be.getDoc()),Le))(p,Bg);if(T.set(ae),(be=>{const Le=be.options.get("object_resizing");return gn(Le.split(","),"table")})(p)&&z(p)){const be=Y(),Le=Hb(ae,be,Z);Le.on(),Le.events.startDrag.bind(_e=>{b.set(p.selection.getRng())}),Le.events.beforeResize.bind(_e=>{const Re=_e.table.dom;((Xe,Et,vt,qt,eo)=>{Xe.dispatch("ObjectResizeStart",{target:Et,width:vt,height:qt,origin:eo})})(p,Re,Ni(Re),td(Re),nc+_e.type)}),Le.events.afterResize.bind(_e=>{const Re=_e.table,Xe=Re.dom;fa(Re),b.on(Et=>{p.selection.setRng(Et),p.focus()}),((Et,vt,qt,eo,bo)=>{Et.dispatch("ObjectResized",{target:vt,width:qt,height:eo,origin:bo})})(p,Xe,Ni(Xe),td(Xe),nc+_e.type),p.undoManager.add()}),_.set(Le)}}),p.on("ObjectResizeStart",ae=>{const be=ae.target;if(Fi(be)){const Le=Wt.fromDom(be);qe(p.dom.select(".mce-clonedresizable"),_e=>{p.dom.addClass(_e,"mce-"+Pl(p)+"-columns")}),!sn(Le)&&_d(p)?l1(Le):!Oo(Le)&&Hl(p)&&Fp(Le),Ri(Le)&&Kn(ae.origin,nc)&&Fp(Le),L=ae.width,I=ai(p)?"":((_e,Re)=>{const Xe=_e.dom.getStyle(Re,"width")||_e.dom.getAttrib(Re,"width");return de.from(Xe).filter(Ca)})(p,be).getOr("")}}),p.on("ObjectResized",ae=>{const be=ae.target;if(Fi(be)){const Le=Wt.fromDom(be),_e=ae.origin;Kn(_e,"corner-")&&((Re,Xe,Et)=>{const vt=Os(Xe,"e");if(I===""&&Fp(Re),Et!==L&&I!==""){Rn(Re,"width",I);const qt=Y(),eo=Z(Re),bo=bs(p)||vt?(ao=>Sc(ao).columns)(Re)-1:0;zp(Re,Et-L,bo,qt,eo)}else if((qt=>/^(\d+(\.\d+)?)%$/.test(qt))(I)){const qt=parseFloat(I.replace("%",""));Rn(Re,"width",Et*qt/L+"%")}(qt=>/^(\d+(\.\d+)?)px$/.test(qt))(I)&&(qt=>{const eo=ts(qt);ti(eo)||qe(bn(qt),bo=>{const ao=Bn(bo,"width");Rn(bo,"width",ao),Vo(bo,"width")})})(Re)})(Le,_e,ae.width),fa(Le),Gs(p,Le.dom,vl)}}),p.on("SwitchMode",()=>{_.on(ae=>{p.mode.isReadOnly()?ae.hideBars():ae.showBars()})}),p.on("dragstart dragend",ae=>{_.on(be=>{ae.type==="dragstart"?(be.hideBars(),be.off()):(be.on(),be.showBars())})}),p.on("remove",()=>{_.on(ae=>{ae.destroy()}),T.on(ae=>{((be,Le)=>{be.inline&&Ae(Le.parent())})(p,ae)})}),{refresh:ae=>{_.on(be=>be.refreshBars(Wt.fromDom(ae)))},hide:()=>{_.on(ae=>ae.hideBars())},show:()=>{_.on(ae=>ae.showBars())}}},gh=p=>{(L=>{const I=L.options.register;I("table_clone_elements",{processor:"string[]"}),I("table_use_colgroups",{processor:"boolean",default:!0}),I("table_header_type",{processor:Z=>{const Y=gn(["section","cells","sectionCells","auto"],Z);return Y?{value:Z,valid:Y}:{valid:!1,message:"Must be one of: section, cells, sectionCells or auto."}},default:"section"}),I("table_sizing_mode",{processor:"string",default:"auto"}),I("table_default_attributes",{processor:"object",default:{border:"1"}}),I("table_default_styles",{processor:"object",default:{"border-collapse":"collapse"}}),I("table_column_resizing",{processor:Z=>{const Y=gn(["preservetable","resizetable"],Z);return Y?{value:Z,valid:Y}:{valid:!1,message:"Must be preservetable, or resizetable."}},default:"preservetable"}),I("table_resize_bars",{processor:"boolean",default:!0}),I("table_style_by_css",{processor:"boolean",default:!0}),I("table_merge_content_on_paste",{processor:"boolean",default:!0})})(p);const b=S1(p),_=Mg(p,b),T=pb(p,b,_);return Sv(p,T),((L,I)=>{const Z=Tn(L),Y=ae=>Hm(Ka(L)).bind(be=>_r(be,Z).map(Le=>{const _e=_n(Bc(L),Le,be);return ae(Le,_e)})).getOr("");$e({mceTableRowType:()=>Y(I.getTableRowType),mceTableCellType:()=>Y(I.getTableCellType),mceTableColType:()=>Y(I.getTableColType)},(ae,be)=>L.addQueryValueHandler(be,ae))})(p,T),qa(p,T),{getSelectedCells:_.getSelectedCells,clearSelectedCells:_.clearSelectedCells}};xo.add("dom",p=>({table:gh(p)}))})();tinymce.Resource.add("ui/default/skin.css",`.tox{box-shadow:none;box-sizing:content-box;color:#222f3e;cursor:auto;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:normal;-webkit-tap-highlight-color:transparent;text-decoration:none;text-shadow:none;text-transform:none;vertical-align:initial;white-space:normal}.tox :not(svg):not(rect){box-sizing:inherit;color:inherit;cursor:inherit;direction:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;line-height:inherit;-webkit-tap-highlight-color:inherit;text-align:inherit;text-decoration:inherit;text-shadow:inherit;text-transform:inherit;vertical-align:inherit;white-space:inherit}.tox :not(svg):not(rect){background:0 0;border:0;box-shadow:none;float:none;height:auto;margin:0;max-width:none;outline:0;padding:0;position:static;width:auto}.tox:not([dir=rtl]){direction:ltr;text-align:left}.tox[dir=rtl]{direction:rtl;text-align:right}.tox-tinymce{border:2px solid #eee;border-radius:10px;box-shadow:none;box-sizing:border-box;display:flex;flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;overflow:hidden;position:relative;visibility:inherit!important}.tox.tox-tinymce-inline{border:none;box-shadow:none;overflow:initial}.tox.tox-tinymce-inline .tox-editor-container{overflow:initial}.tox.tox-tinymce-inline .tox-editor-header{background-color:#fff;border:2px solid #eee;border-radius:10px;box-shadow:none;overflow:hidden}.tox-tinymce-aux{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;z-index:1300}.tox-tinymce :focus,.tox-tinymce-aux :focus{outline:0}button::-moz-focus-inner{border:0}.tox[dir=rtl] .tox-icon--flip svg{transform:rotateY(180deg)}.tox .accessibility-issue__header{align-items:center;display:flex;margin-bottom:4px}.tox .accessibility-issue__description{align-items:stretch;border-radius:6px;display:flex;justify-content:space-between}.tox .accessibility-issue__description>div{padding-bottom:4px}.tox .accessibility-issue__description>div>div{align-items:center;display:flex;margin-bottom:4px}.tox .accessibility-issue__description>div>div .tox-icon svg{display:block}.tox .accessibility-issue__repair{margin-top:16px}.tox .tox-dialog__body-content .accessibility-issue--info .accessibility-issue__description{background-color:rgba(0,101,216,.1);color:#222f3e}.tox .tox-dialog__body-content .accessibility-issue--info .tox-form__group h2{color:#006ce7}.tox .tox-dialog__body-content .accessibility-issue--info .tox-icon svg{fill:#006ce7}.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon{background-color:#006ce7;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:focus,.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:hover{background-color:#0060ce}.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:active{background-color:#0054b4}.tox .tox-dialog__body-content .accessibility-issue--warn .accessibility-issue__description{background-color:rgba(255,165,0,.08);color:#222f3e}.tox .tox-dialog__body-content .accessibility-issue--warn .tox-form__group h2{color:#8f5d00}.tox .tox-dialog__body-content .accessibility-issue--warn .tox-icon svg{fill:#8f5d00}.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon{background-color:#ffe89d;color:#222f3e}.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:focus,.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:hover{background-color:#f2d574;color:#222f3e}.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:active{background-color:#e8c657;color:#222f3e}.tox .tox-dialog__body-content .accessibility-issue--error .accessibility-issue__description{background-color:rgba(204,0,0,.1);color:#222f3e}.tox .tox-dialog__body-content .accessibility-issue--error .tox-form__group h2{color:#c00}.tox .tox-dialog__body-content .accessibility-issue--error .tox-icon svg{fill:#c00}.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon{background-color:#f2bfbf;color:#222f3e}.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:focus,.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:hover{background-color:#e9a4a4;color:#222f3e}.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:active{background-color:#ee9494;color:#222f3e}.tox .tox-dialog__body-content .accessibility-issue--success .accessibility-issue__description{background-color:rgba(120,171,70,.1);color:#222f3e}.tox .tox-dialog__body-content .accessibility-issue--success .accessibility-issue__description>:last-child{display:none}.tox .tox-dialog__body-content .accessibility-issue--success .tox-form__group h2{color:#527530}.tox .tox-dialog__body-content .accessibility-issue--success .tox-icon svg{fill:#527530}.tox .tox-dialog__body-content .accessibility-issue__header .tox-form__group h1,.tox .tox-dialog__body-content .tox-form__group .accessibility-issue__description h2{font-size:14px;margin-top:0}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__header .tox-button{margin-left:4px}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__header>:nth-last-child(2){margin-left:auto}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__description{padding:4px 4px 4px 8px}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__header .tox-button{margin-right:4px}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__header>:nth-last-child(2){margin-right:auto}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__description{padding:4px 8px 4px 4px}.tox .tox-advtemplate .tox-form__grid{flex:1}.tox .tox-advtemplate .tox-form__grid>div:first-child{display:flex;flex-direction:column;width:30%}.tox .tox-advtemplate .tox-form__grid>div:first-child>div:nth-child(2){flex-basis:0;flex-grow:1;overflow:auto}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox .tox-advtemplate .tox-form__grid>div:first-child{width:100%}}.tox .tox-advtemplate iframe{border-color:#eee;border-radius:10px;border-style:solid;border-width:1px;margin:0 10px}.tox .tox-anchorbar{display:flex;flex:0 0 auto}.tox .tox-bottom-anchorbar{display:flex;flex:0 0 auto}.tox .tox-bar{display:flex;flex:0 0 auto}.tox .tox-button{background-color:#006ce7;background-image:none;background-position:0 0;background-repeat:repeat;border-color:#006ce7;border-radius:6px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#fff;cursor:pointer;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:14px;font-style:normal;font-weight:700;letter-spacing:normal;line-height:24px;margin:0;outline:0;padding:4px 16px;position:relative;text-align:center;text-decoration:none;text-transform:none;white-space:nowrap}.tox .tox-button::before{border-radius:6px;bottom:-1px;box-shadow:inset 0 0 0 2px #fff,0 0 0 1px #006ce7,0 0 0 3px rgba(0,108,231,.25);content:'';left:-1px;opacity:0;pointer-events:none;position:absolute;right:-1px;top:-1px}.tox .tox-button[disabled]{background-color:#006ce7;background-image:none;border-color:#006ce7;box-shadow:none;color:rgba(255,255,255,.5);cursor:not-allowed}.tox .tox-button:focus:not(:disabled){background-color:#0060ce;background-image:none;border-color:#0060ce;box-shadow:none;color:#fff}.tox .tox-button:focus-visible:not(:disabled)::before{opacity:1}.tox .tox-button:hover:not(:disabled){background-color:#0060ce;background-image:none;border-color:#0060ce;box-shadow:none;color:#fff}.tox .tox-button:active:not(:disabled){background-color:#0054b4;background-image:none;border-color:#0054b4;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled{background-color:#0054b4;background-image:none;border-color:#0054b4;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled[disabled]{background-color:#0054b4;background-image:none;border-color:#0054b4;box-shadow:none;color:rgba(255,255,255,.5);cursor:not-allowed}.tox .tox-button.tox-button--enabled:focus:not(:disabled){background-color:#00489b;background-image:none;border-color:#00489b;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled:hover:not(:disabled){background-color:#00489b;background-image:none;border-color:#00489b;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled:active:not(:disabled){background-color:#003c81;background-image:none;border-color:#003c81;box-shadow:none;color:#fff}.tox .tox-button--icon-and-text,.tox .tox-button.tox-button--icon-and-text,.tox .tox-button.tox-button--secondary.tox-button--icon-and-text{display:flex;padding:5px 4px}.tox .tox-button--icon-and-text .tox-icon svg,.tox .tox-button.tox-button--icon-and-text .tox-icon svg,.tox .tox-button.tox-button--secondary.tox-button--icon-and-text .tox-icon svg{display:block;fill:currentColor}.tox .tox-button--secondary{background-color:#f0f0f0;background-image:none;background-position:0 0;background-repeat:repeat;border-color:#f0f0f0;border-radius:6px;border-style:solid;border-width:1px;box-shadow:none;color:#222f3e;font-size:14px;font-style:normal;font-weight:700;letter-spacing:normal;outline:0;padding:4px 16px;text-decoration:none;text-transform:none}.tox .tox-button--secondary[disabled]{background-color:#f0f0f0;background-image:none;border-color:#f0f0f0;box-shadow:none;color:rgba(34,47,62,.5)}.tox .tox-button--secondary:focus:not(:disabled){background-color:#e3e3e3;background-image:none;border-color:#e3e3e3;box-shadow:none;color:#222f3e}.tox .tox-button--secondary:hover:not(:disabled){background-color:#e3e3e3;background-image:none;border-color:#e3e3e3;box-shadow:none;color:#222f3e}.tox .tox-button--secondary:active:not(:disabled){background-color:#d6d6d6;background-image:none;border-color:#d6d6d6;box-shadow:none;color:#222f3e}.tox .tox-button--secondary.tox-button--enabled{background-color:#a8c8ed;background-image:none;border-color:#a8c8ed;box-shadow:none;color:#222f3e}.tox .tox-button--secondary.tox-button--enabled[disabled]{background-color:#a8c8ed;background-image:none;border-color:#a8c8ed;box-shadow:none;color:rgba(34,47,62,.5)}.tox .tox-button--secondary.tox-button--enabled:focus:not(:disabled){background-color:#93bbe9;background-image:none;border-color:#93bbe9;box-shadow:none;color:#222f3e}.tox .tox-button--secondary.tox-button--enabled:hover:not(:disabled){background-color:#93bbe9;background-image:none;border-color:#93bbe9;box-shadow:none;color:#222f3e}.tox .tox-button--secondary.tox-button--enabled:active:not(:disabled){background-color:#7daee4;background-image:none;border-color:#7daee4;box-shadow:none;color:#222f3e}.tox .tox-button--icon,.tox .tox-button.tox-button--icon,.tox .tox-button.tox-button--secondary.tox-button--icon{padding:4px}.tox .tox-button--icon .tox-icon svg,.tox .tox-button.tox-button--icon .tox-icon svg,.tox .tox-button.tox-button--secondary.tox-button--icon .tox-icon svg{display:block;fill:currentColor}.tox .tox-button-link{background:0;border:none;box-sizing:border-box;cursor:pointer;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:16px;font-weight:400;line-height:1.3;margin:0;padding:0;white-space:nowrap}.tox .tox-button-link--sm{font-size:14px}.tox .tox-button--naked{background-color:transparent;border-color:transparent;box-shadow:unset;color:#222f3e}.tox .tox-button--naked[disabled]{background-color:rgba(34,47,62,.12);border-color:transparent;box-shadow:unset;color:rgba(34,47,62,.5)}.tox .tox-button--naked:hover:not(:disabled){background-color:rgba(34,47,62,.12);border-color:transparent;box-shadow:unset;color:#222f3e}.tox .tox-button--naked:focus:not(:disabled){background-color:rgba(34,47,62,.12);border-color:transparent;box-shadow:unset;color:#222f3e}.tox .tox-button--naked:active:not(:disabled){background-color:rgba(34,47,62,.18);border-color:transparent;box-shadow:unset;color:#222f3e}.tox .tox-button--naked .tox-icon svg{fill:currentColor}.tox .tox-button--naked.tox-button--icon:hover:not(:disabled){color:#222f3e}.tox .tox-checkbox{align-items:center;border-radius:6px;cursor:pointer;display:flex;height:36px;min-width:36px}.tox .tox-checkbox__input{height:1px;overflow:hidden;position:absolute;top:auto;width:1px}.tox .tox-checkbox__icons{align-items:center;border-radius:6px;box-shadow:0 0 0 2px transparent;box-sizing:content-box;display:flex;height:24px;justify-content:center;padding:calc(4px - 1px);width:24px}.tox .tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:block;fill:rgba(34,47,62,.3)}.tox .tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{display:none;fill:#006ce7}.tox .tox-checkbox__icons .tox-checkbox-icon__checked svg{display:none;fill:#006ce7}.tox .tox-checkbox--disabled{color:rgba(34,47,62,.5);cursor:not-allowed}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__checked svg{fill:rgba(34,47,62,.5)}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__unchecked svg{fill:rgba(34,47,62,.5)}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{fill:rgba(34,47,62,.5)}.tox input.tox-checkbox__input:checked+.tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:none}.tox input.tox-checkbox__input:checked+.tox-checkbox__icons .tox-checkbox-icon__checked svg{display:block}.tox input.tox-checkbox__input:indeterminate+.tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:none}.tox input.tox-checkbox__input:indeterminate+.tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{display:block}.tox input.tox-checkbox__input:focus+.tox-checkbox__icons{border-radius:6px;box-shadow:inset 0 0 0 1px #006ce7;padding:calc(4px - 1px)}.tox:not([dir=rtl]) .tox-checkbox__label{margin-left:4px}.tox:not([dir=rtl]) .tox-checkbox__input{left:-10000px}.tox:not([dir=rtl]) .tox-bar .tox-checkbox{margin-left:4px}.tox[dir=rtl] .tox-checkbox__label{margin-right:4px}.tox[dir=rtl] .tox-checkbox__input{right:-10000px}.tox[dir=rtl] .tox-bar .tox-checkbox{margin-right:4px}.tox .tox-collection--toolbar .tox-collection__group{display:flex;padding:0}.tox .tox-collection--grid .tox-collection__group{display:flex;flex-wrap:wrap;max-height:208px;overflow-x:hidden;overflow-y:auto;padding:0}.tox .tox-collection--list .tox-collection__group{border-bottom-width:0;border-color:#e3e3e3;border-left-width:0;border-right-width:0;border-style:solid;border-top-width:1px;padding:4px 0}.tox .tox-collection--list .tox-collection__group:first-child{border-top-width:0}.tox .tox-collection__group-heading{background-color:#fcfcfc;color:rgba(34,47,62,.7);cursor:default;font-size:12px;font-style:normal;font-weight:400;margin-bottom:4px;margin-top:-4px;padding:4px 8px;text-transform:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.tox .tox-collection__item{align-items:center;border-radius:3px;color:#222f3e;display:flex;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.tox .tox-collection--list .tox-collection__item{padding:4px 8px}.tox .tox-collection--toolbar .tox-collection__item{border-radius:3px;padding:4px}.tox .tox-collection--grid .tox-collection__item{border-radius:3px;padding:4px}.tox .tox-collection--list .tox-collection__item--enabled{background-color:#fff;color:#222f3e}.tox .tox-collection--list .tox-collection__item--active{background-color:#cce2fa}.tox .tox-collection--toolbar .tox-collection__item--enabled{background-color:#a6ccf7;color:#222f3e}.tox .tox-collection--toolbar .tox-collection__item--active{background-color:#cce2fa}.tox .tox-collection--grid .tox-collection__item--enabled{background-color:#a6ccf7;color:#222f3e}.tox .tox-collection--grid .tox-collection__item--active:not(.tox-collection__item--state-disabled){background-color:#cce2fa;color:#222f3e}.tox .tox-collection--list .tox-collection__item--active:not(.tox-collection__item--state-disabled){color:#222f3e}.tox .tox-collection--toolbar .tox-collection__item--active:not(.tox-collection__item--state-disabled){color:#222f3e}.tox .tox-collection__item-checkmark,.tox .tox-collection__item-icon{align-items:center;display:flex;height:24px;justify-content:center;width:24px}.tox .tox-collection__item-checkmark svg,.tox .tox-collection__item-icon svg{fill:currentColor}.tox .tox-collection--toolbar-lg .tox-collection__item-icon{height:48px;width:48px}.tox .tox-collection__item-label{color:currentColor;display:inline-block;flex:1;font-size:14px;font-style:normal;font-weight:400;line-height:24px;max-width:100%;text-transform:none;word-break:break-all}.tox .tox-collection__item-accessory{color:rgba(34,47,62,.7);display:inline-block;font-size:14px;height:24px;line-height:24px;text-transform:none}.tox .tox-collection__item-caret{align-items:center;display:flex;min-height:24px}.tox .tox-collection__item-caret::after{content:'';font-size:0;min-height:inherit}.tox .tox-collection__item-caret svg{fill:#222f3e}.tox .tox-collection__item--state-disabled{background-color:transparent;color:rgba(34,47,62,.5);cursor:not-allowed}.tox .tox-collection__item--state-disabled .tox-collection__item-caret svg{fill:rgba(34,47,62,.5)}.tox .tox-collection--list .tox-collection__item:not(.tox-collection__item--enabled) .tox-collection__item-checkmark svg{display:none}.tox .tox-collection--list .tox-collection__item:not(.tox-collection__item--enabled) .tox-collection__item-accessory+.tox-collection__item-checkmark{display:none}.tox .tox-collection--horizontal{background-color:#fff;border:1px solid #e3e3e3;border-radius:6px;box-shadow:0 0 2px 0 rgba(34,47,62,.2),0 4px 8px 0 rgba(34,47,62,.15);display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:nowrap;margin-bottom:0;overflow-x:auto;padding:0}.tox .tox-collection--horizontal .tox-collection__group{align-items:center;display:flex;flex-wrap:nowrap;margin:0;padding:0 4px}.tox .tox-collection--horizontal .tox-collection__item{height:28px;margin:6px 1px 5px 0;padding:0 4px}.tox .tox-collection--horizontal .tox-collection__item-label{white-space:nowrap}.tox .tox-collection--horizontal .tox-collection__item-caret{margin-left:4px}.tox .tox-collection__item-container{display:flex}.tox .tox-collection__item-container--row{align-items:center;flex:1 1 auto;flex-direction:row}.tox .tox-collection__item-container--row.tox-collection__item-container--align-left{margin-right:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--align-right{justify-content:flex-end;margin-left:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-top{align-items:flex-start;margin-bottom:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-middle{align-items:center}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-bottom{align-items:flex-end;margin-top:auto}.tox .tox-collection__item-container--column{align-self:center;flex:1 1 auto;flex-direction:column}.tox .tox-collection__item-container--column.tox-collection__item-container--align-left{align-items:flex-start}.tox .tox-collection__item-container--column.tox-collection__item-container--align-right{align-items:flex-end}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-top{align-self:flex-start}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-middle{align-self:center}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-bottom{align-self:flex-end}.tox:not([dir=rtl]) .tox-collection--horizontal .tox-collection__group:not(:last-of-type){border-right:1px solid transparent}.tox:not([dir=rtl]) .tox-collection--list .tox-collection__item>:not(:first-child){margin-left:8px}.tox:not([dir=rtl]) .tox-collection--list .tox-collection__item>.tox-collection__item-label:first-child{margin-left:4px}.tox:not([dir=rtl]) .tox-collection__item-accessory{margin-left:16px;text-align:right}.tox:not([dir=rtl]) .tox-collection .tox-collection__item-caret{margin-left:16px}.tox[dir=rtl] .tox-collection--horizontal .tox-collection__group:not(:last-of-type){border-left:1px solid transparent}.tox[dir=rtl] .tox-collection--list .tox-collection__item>:not(:first-child){margin-right:8px}.tox[dir=rtl] .tox-collection--list .tox-collection__item>.tox-collection__item-label:first-child{margin-right:4px}.tox[dir=rtl] .tox-collection__item-accessory{margin-right:16px;text-align:left}.tox[dir=rtl] .tox-collection .tox-collection__item-caret{margin-right:16px;transform:rotateY(180deg)}.tox[dir=rtl] .tox-collection--horizontal .tox-collection__item-caret{margin-right:4px}.tox .tox-color-picker-container{display:flex;flex-direction:row;height:225px;margin:0}.tox .tox-sv-palette{box-sizing:border-box;display:flex;height:100%}.tox .tox-sv-palette-spectrum{height:100%}.tox .tox-sv-palette,.tox .tox-sv-palette-spectrum{width:225px}.tox .tox-sv-palette-thumb{background:0 0;border:1px solid #000;border-radius:50%;box-sizing:content-box;height:12px;position:absolute;width:12px}.tox .tox-sv-palette-inner-thumb{border:1px solid #fff;border-radius:50%;height:10px;position:absolute;width:10px}.tox .tox-hue-slider{box-sizing:border-box;height:100%;width:25px}.tox .tox-hue-slider-spectrum{background:linear-gradient(to bottom,red,#ff0080,#f0f,#8000ff,#00f,#0080ff,#0ff,#00ff80,#0f0,#80ff00,#ff0,#ff8000,red);height:100%;width:100%}.tox .tox-hue-slider,.tox .tox-hue-slider-spectrum{width:20px}.tox .tox-hue-slider-spectrum:focus,.tox .tox-sv-palette-spectrum:focus{outline:#08f solid}.tox .tox-hue-slider-thumb{background:#fff;border:1px solid #000;box-sizing:content-box;height:4px;width:100%}.tox .tox-rgb-form{display:flex;flex-direction:column;justify-content:space-between}.tox .tox-rgb-form div{align-items:center;display:flex;justify-content:space-between;margin-bottom:5px;width:inherit}.tox .tox-rgb-form input{width:6em}.tox .tox-rgb-form input.tox-invalid{border:1px solid red!important}.tox .tox-rgb-form .tox-rgba-preview{border:1px solid #000;flex-grow:2;margin-bottom:0}.tox:not([dir=rtl]) .tox-sv-palette{margin-right:15px}.tox:not([dir=rtl]) .tox-hue-slider{margin-right:15px}.tox:not([dir=rtl]) .tox-hue-slider-thumb{margin-left:-1px}.tox:not([dir=rtl]) .tox-rgb-form label{margin-right:.5em}.tox[dir=rtl] .tox-sv-palette{margin-left:15px}.tox[dir=rtl] .tox-hue-slider{margin-left:15px}.tox[dir=rtl] .tox-hue-slider-thumb{margin-right:-1px}.tox[dir=rtl] .tox-rgb-form label{margin-left:.5em}.tox .tox-toolbar .tox-swatches,.tox .tox-toolbar__overflow .tox-swatches,.tox .tox-toolbar__primary .tox-swatches{margin:5px 0 6px 11px}.tox .tox-collection--list .tox-collection__group .tox-swatches-menu{border:0;margin:-4px -4px}.tox .tox-swatches__row{display:flex}.tox .tox-swatch{height:30px;transition:transform .15s,box-shadow .15s;width:30px}.tox .tox-swatch:focus,.tox .tox-swatch:hover{box-shadow:0 0 0 1px rgba(127,127,127,.3) inset;transform:scale(.8)}.tox .tox-swatch--remove{align-items:center;display:flex;justify-content:center}.tox .tox-swatch--remove svg path{stroke:#e74c3c}.tox .tox-swatches__picker-btn{align-items:center;background-color:transparent;border:0;cursor:pointer;display:flex;height:30px;justify-content:center;outline:0;padding:0;width:30px}.tox .tox-swatches__picker-btn svg{fill:#222f3e;height:24px;width:24px}.tox .tox-swatches__picker-btn:hover{background:#cce2fa}.tox div.tox-swatch:not(.tox-swatch--remove) svg{display:none;fill:#222f3e;height:24px;margin:calc((30px - 24px)/ 2) calc((30px - 24px)/ 2);width:24px}.tox div.tox-swatch:not(.tox-swatch--remove) svg path{fill:#fff;paint-order:stroke;stroke:#222f3e;stroke-width:2px}.tox div.tox-swatch:not(.tox-swatch--remove).tox-collection__item--enabled svg{display:block}.tox:not([dir=rtl]) .tox-swatches__picker-btn{margin-left:auto}.tox[dir=rtl] .tox-swatches__picker-btn{margin-right:auto}.tox .tox-comment-thread{background:#fff;position:relative}.tox .tox-comment-thread>:not(:first-child){margin-top:8px}.tox .tox-comment{background:#fff;border:1px solid #eee;border-radius:6px;box-shadow:0 4px 8px 0 rgba(34,47,62,.1);padding:8px 8px 16px 8px;position:relative}.tox .tox-comment__header{align-items:center;color:#222f3e;display:flex;justify-content:space-between}.tox .tox-comment__date{color:#222f3e;font-size:12px;line-height:18px}.tox .tox-comment__body{color:#222f3e;font-size:14px;font-style:normal;font-weight:400;line-height:1.3;margin-top:8px;position:relative;text-transform:initial}.tox .tox-comment__body textarea{resize:none;white-space:normal;width:100%}.tox .tox-comment__expander{padding-top:8px}.tox .tox-comment__expander p{color:rgba(34,47,62,.7);font-size:14px;font-style:normal}.tox .tox-comment__body p{margin:0}.tox .tox-comment__buttonspacing{padding-top:16px;text-align:center}.tox .tox-comment-thread__overlay::after{background:#fff;bottom:0;content:"";display:flex;left:0;opacity:.9;position:absolute;right:0;top:0;z-index:5}.tox .tox-comment__reply{display:flex;flex-shrink:0;flex-wrap:wrap;justify-content:flex-end;margin-top:8px}.tox .tox-comment__reply>:first-child{margin-bottom:8px;width:100%}.tox .tox-comment__edit{display:flex;flex-wrap:wrap;justify-content:flex-end;margin-top:16px}.tox .tox-comment__gradient::after{background:linear-gradient(rgba(255,255,255,0),#fff);bottom:0;content:"";display:block;height:5em;margin-top:-40px;position:absolute;width:100%}.tox .tox-comment__overlay{background:#fff;bottom:0;display:flex;flex-direction:column;flex-grow:1;left:0;opacity:.9;position:absolute;right:0;text-align:center;top:0;z-index:5}.tox .tox-comment__loading-text{align-items:center;color:#222f3e;display:flex;flex-direction:column;position:relative}.tox .tox-comment__loading-text>div{padding-bottom:16px}.tox .tox-comment__overlaytext{bottom:0;flex-direction:column;font-size:14px;left:0;padding:1em;position:absolute;right:0;top:0;z-index:10}.tox .tox-comment__overlaytext p{background-color:#fff;box-shadow:0 0 8px 8px #fff;color:#222f3e;text-align:center}.tox .tox-comment__overlaytext div:nth-of-type(2){font-size:.8em}.tox .tox-comment__busy-spinner{align-items:center;background-color:#fff;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:20}.tox .tox-comment__scroll{display:flex;flex-direction:column;flex-shrink:1;overflow:auto}.tox .tox-conversations{margin:8px}.tox:not([dir=rtl]) .tox-comment__edit{margin-left:8px}.tox:not([dir=rtl]) .tox-comment__buttonspacing>:last-child,.tox:not([dir=rtl]) .tox-comment__edit>:last-child,.tox:not([dir=rtl]) .tox-comment__reply>:last-child{margin-left:8px}.tox[dir=rtl] .tox-comment__edit{margin-right:8px}.tox[dir=rtl] .tox-comment__buttonspacing>:last-child,.tox[dir=rtl] .tox-comment__edit>:last-child,.tox[dir=rtl] .tox-comment__reply>:last-child{margin-right:8px}.tox .tox-user{align-items:center;display:flex}.tox .tox-user__avatar svg{fill:rgba(34,47,62,.7)}.tox .tox-user__avatar img{border-radius:50%;height:36px;object-fit:cover;vertical-align:middle;width:36px}.tox .tox-user__name{color:#222f3e;font-size:14px;font-style:normal;font-weight:700;line-height:18px;text-transform:none}.tox:not([dir=rtl]) .tox-user__avatar img,.tox:not([dir=rtl]) .tox-user__avatar svg{margin-right:8px}.tox:not([dir=rtl]) .tox-user__avatar+.tox-user__name{margin-left:8px}.tox[dir=rtl] .tox-user__avatar img,.tox[dir=rtl] .tox-user__avatar svg{margin-left:8px}.tox[dir=rtl] .tox-user__avatar+.tox-user__name{margin-right:8px}.tox .tox-dialog-wrap{align-items:center;bottom:0;display:flex;justify-content:center;left:0;position:fixed;right:0;top:0;z-index:1100}.tox .tox-dialog-wrap__backdrop{background-color:rgba(255,255,255,.75);bottom:0;left:0;position:absolute;right:0;top:0;z-index:1}.tox .tox-dialog-wrap__backdrop--opaque{background-color:#fff}.tox .tox-dialog{background-color:#fff;border-color:#eee;border-radius:10px;border-style:solid;border-width:0;box-shadow:0 16px 16px -10px rgba(34,47,62,.15),0 0 40px 1px rgba(34,47,62,.15);display:flex;flex-direction:column;max-height:100%;max-width:480px;overflow:hidden;position:relative;width:95vw;z-index:2}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox .tox-dialog{align-self:flex-start;margin:8px auto;max-height:calc(100vh - 8px * 2);width:calc(100vw - 16px)}}.tox .tox-dialog-inline{z-index:1100}.tox .tox-dialog__header{align-items:center;background-color:#fff;border-bottom:none;color:#222f3e;display:flex;font-size:16px;justify-content:space-between;padding:8px 16px 0 16px;position:relative}.tox .tox-dialog__header .tox-button{z-index:1}.tox .tox-dialog__draghandle{cursor:grab;height:100%;left:0;position:absolute;top:0;width:100%}.tox .tox-dialog__draghandle:active{cursor:grabbing}.tox .tox-dialog__dismiss{margin-left:auto}.tox .tox-dialog__title{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:20px;font-style:normal;font-weight:400;line-height:1.3;margin:0;text-transform:none}.tox .tox-dialog__body{color:#222f3e;display:flex;flex:1;font-size:16px;font-style:normal;font-weight:400;line-height:1.3;min-width:0;text-align:left;text-transform:none}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox .tox-dialog__body{flex-direction:column}}.tox .tox-dialog__body-nav{align-items:flex-start;display:flex;flex-direction:column;flex-shrink:0;padding:16px 16px}@media only screen and (min-width:768px){.tox .tox-dialog__body-nav{max-width:11em}}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox .tox-dialog__body-nav{flex-direction:row;-webkit-overflow-scrolling:touch;overflow-x:auto;padding-bottom:0}}.tox .tox-dialog__body-nav-item{border-bottom:2px solid transparent;color:rgba(34,47,62,.7);display:inline-block;flex-shrink:0;font-size:14px;line-height:1.3;margin-bottom:8px;max-width:13em;text-decoration:none}.tox .tox-dialog__body-nav-item:focus{background-color:rgba(0,108,231,.1)}.tox .tox-dialog__body-nav-item--active{border-bottom:2px solid #006ce7;color:#006ce7}.tox .tox-dialog__body-content{box-sizing:border-box;display:flex;flex:1;flex-direction:column;max-height:min(650px,calc(100vh - 110px));overflow:auto;-webkit-overflow-scrolling:touch;padding:16px 16px}.tox .tox-dialog__body-content>*{margin-bottom:0;margin-top:16px}.tox .tox-dialog__body-content>:first-child{margin-top:0}.tox .tox-dialog__body-content>:last-child{margin-bottom:0}.tox .tox-dialog__body-content>:only-child{margin-bottom:0;margin-top:0}.tox .tox-dialog__body-content a{color:#006ce7;cursor:pointer;text-decoration:underline}.tox .tox-dialog__body-content a:focus,.tox .tox-dialog__body-content a:hover{color:#003c81;text-decoration:underline}.tox .tox-dialog__body-content a:focus-visible{border-radius:1px;outline:2px solid #006ce7;outline-offset:2px}.tox .tox-dialog__body-content a:active{color:#00244e;text-decoration:underline}.tox .tox-dialog__body-content svg{fill:#222f3e}.tox .tox-dialog__body-content strong{font-weight:700}.tox .tox-dialog__body-content ul{list-style-type:disc}.tox .tox-dialog__body-content dd,.tox .tox-dialog__body-content ol,.tox .tox-dialog__body-content ul{padding-inline-start:2.5rem}.tox .tox-dialog__body-content dl,.tox .tox-dialog__body-content ol,.tox .tox-dialog__body-content ul{margin-bottom:16px}.tox .tox-dialog__body-content dd,.tox .tox-dialog__body-content dl,.tox .tox-dialog__body-content dt,.tox .tox-dialog__body-content ol,.tox .tox-dialog__body-content ul{display:block;margin-inline-end:0;margin-inline-start:0}.tox .tox-dialog__body-content .tox-form__group h1{color:#222f3e;font-size:20px;font-style:normal;font-weight:700;letter-spacing:normal;margin-bottom:16px;margin-top:2rem;text-transform:none}.tox .tox-dialog__body-content .tox-form__group h2{color:#222f3e;font-size:16px;font-style:normal;font-weight:700;letter-spacing:normal;margin-bottom:16px;margin-top:2rem;text-transform:none}.tox .tox-dialog__body-content .tox-form__group p{margin-bottom:16px}.tox .tox-dialog__body-content .tox-form__group h1:first-child,.tox .tox-dialog__body-content .tox-form__group h2:first-child,.tox .tox-dialog__body-content .tox-form__group p:first-child{margin-top:0}.tox .tox-dialog__body-content .tox-form__group h1:last-child,.tox .tox-dialog__body-content .tox-form__group h2:last-child,.tox .tox-dialog__body-content .tox-form__group p:last-child{margin-bottom:0}.tox .tox-dialog__body-content .tox-form__group h1:only-child,.tox .tox-dialog__body-content .tox-form__group h2:only-child,.tox .tox-dialog__body-content .tox-form__group p:only-child{margin-bottom:0;margin-top:0}.tox .tox-dialog__body-content .tox-form__group .tox-label.tox-label--center{text-align:center}.tox .tox-dialog__body-content .tox-form__group .tox-label.tox-label--end{text-align:end}.tox .tox-dialog--width-lg{height:650px;max-width:1200px}.tox .tox-dialog--fullscreen{height:100%;max-width:100%}.tox .tox-dialog--fullscreen .tox-dialog__body-content{max-height:100%}.tox .tox-dialog--width-md{max-width:800px}.tox .tox-dialog--width-md .tox-dialog__body-content{overflow:auto}.tox .tox-dialog__body-content--centered{text-align:center}.tox .tox-dialog__footer{align-items:center;background-color:#fff;border-top:none;display:flex;justify-content:space-between;padding:8px 16px}.tox .tox-dialog__footer-end,.tox .tox-dialog__footer-start{display:flex}.tox .tox-dialog__busy-spinner{align-items:center;background-color:rgba(255,255,255,.75);bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:3}.tox .tox-dialog__table{border-collapse:collapse;width:100%}.tox .tox-dialog__table thead th{font-weight:700;padding-bottom:8px}.tox .tox-dialog__table thead th:first-child{padding-right:8px}.tox .tox-dialog__table tbody tr{border-bottom:1px solid #626262}.tox .tox-dialog__table tbody tr:last-child{border-bottom:none}.tox .tox-dialog__table td{padding-bottom:8px;padding-top:8px}.tox .tox-dialog__table td:first-child{padding-right:8px}.tox .tox-dialog__iframe{min-height:200px}.tox .tox-dialog__iframe.tox-dialog__iframe--opaque{background:#fff}.tox .tox-navobj-bordered{position:relative}.tox .tox-navobj-bordered::before{border:1px solid #eee;border-radius:6px;content:'';inset:0;opacity:1;pointer-events:none;position:absolute;z-index:1}.tox .tox-navobj-bordered-focus.tox-navobj-bordered::before{border-color:#006ce7;box-shadow:0 0 0 2px rgba(0,108,231,.25);outline:0}.tox .tox-dialog__popups{position:absolute;width:100%;z-index:1100}.tox .tox-dialog__body-iframe{display:flex;flex:1;flex-direction:column}.tox .tox-dialog__body-iframe .tox-navobj{display:flex;flex:1}.tox .tox-dialog__body-iframe .tox-navobj :nth-child(2){flex:1;height:100%}.tox .tox-dialog-dock-fadeout{opacity:0;visibility:hidden}.tox .tox-dialog-dock-fadein{opacity:1;visibility:visible}.tox .tox-dialog-dock-transition{transition:visibility 0s linear .3s,opacity .3s ease}.tox .tox-dialog-dock-transition.tox-dialog-dock-fadein{transition-delay:0s}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox:not([dir=rtl]) .tox-dialog__body-nav{margin-right:0}}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox:not([dir=rtl]) .tox-dialog__body-nav-item:not(:first-child){margin-left:8px}}.tox:not([dir=rtl]) .tox-dialog__footer .tox-dialog__footer-end>*,.tox:not([dir=rtl]) .tox-dialog__footer .tox-dialog__footer-start>*{margin-left:8px}.tox[dir=rtl] .tox-dialog__body{text-align:right}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox[dir=rtl] .tox-dialog__body-nav{margin-left:0}}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox[dir=rtl] .tox-dialog__body-nav-item:not(:first-child){margin-right:8px}}.tox[dir=rtl] .tox-dialog__footer .tox-dialog__footer-end>*,.tox[dir=rtl] .tox-dialog__footer .tox-dialog__footer-start>*{margin-right:8px}body.tox-dialog__disable-scroll{overflow:hidden}.tox .tox-dropzone-container{display:flex;flex:1}.tox .tox-dropzone{align-items:center;background:#fff;border:2px dashed #eee;box-sizing:border-box;display:flex;flex-direction:column;flex-grow:1;justify-content:center;min-height:100px;padding:10px}.tox .tox-dropzone p{color:rgba(34,47,62,.7);margin:0 0 16px 0}.tox .tox-edit-area{display:flex;flex:1;overflow:hidden;position:relative}.tox .tox-edit-area::before{border:2px solid #2d6adf;border-radius:4px;content:'';inset:0;opacity:0;pointer-events:none;position:absolute;transition:opacity .15s;z-index:1}.tox .tox-edit-area__iframe{background-color:#fff;border:0;box-sizing:border-box;flex:1;height:100%;position:absolute;width:100%}.tox.tox-edit-focus .tox-edit-area::before{opacity:1}.tox.tox-inline-edit-area{border:1px dotted #eee}.tox .tox-editor-container{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.tox .tox-editor-header{display:grid;grid-template-columns:1fr min-content;z-index:2}.tox:not(.tox-tinymce-inline) .tox-editor-header{background-color:#fff;border-bottom:none;box-shadow:0 2px 2px -2px rgba(34,47,62,.1),0 8px 8px -4px rgba(34,47,62,.07);padding:4px 0}.tox:not(.tox-tinymce-inline) .tox-editor-header:not(.tox-editor-dock-transition){transition:box-shadow .5s}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-bottom .tox-editor-header{border-top:1px solid #e3e3e3;box-shadow:none}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-sticky-on .tox-editor-header{background-color:#fff;box-shadow:0 2px 2px -2px rgba(34,47,62,.2),0 8px 8px -4px rgba(34,47,62,.15);padding:4px 0}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-sticky-on.tox-tinymce--toolbar-bottom .tox-editor-header{box-shadow:0 2px 2px -2px rgba(34,47,62,.2),0 8px 8px -4px rgba(34,47,62,.15)}.tox.tox:not(.tox-tinymce-inline) .tox-editor-header.tox-editor-header--empty{background:0 0;border:none;box-shadow:none;padding:0}.tox-editor-dock-fadeout{opacity:0;visibility:hidden}.tox-editor-dock-fadein{opacity:1;visibility:visible}.tox-editor-dock-transition{transition:visibility 0s linear .25s,opacity .25s ease}.tox-editor-dock-transition.tox-editor-dock-fadein{transition-delay:0s}.tox .tox-control-wrap{flex:1;position:relative}.tox .tox-control-wrap:not(.tox-control-wrap--status-invalid) .tox-control-wrap__status-icon-invalid,.tox .tox-control-wrap:not(.tox-control-wrap--status-unknown) .tox-control-wrap__status-icon-unknown,.tox .tox-control-wrap:not(.tox-control-wrap--status-valid) .tox-control-wrap__status-icon-valid{display:none}.tox .tox-control-wrap svg{display:block}.tox .tox-control-wrap__status-icon-wrap{position:absolute;top:50%;transform:translateY(-50%)}.tox .tox-control-wrap__status-icon-invalid svg{fill:#c00}.tox .tox-control-wrap__status-icon-unknown svg{fill:orange}.tox .tox-control-wrap__status-icon-valid svg{fill:green}.tox:not([dir=rtl]) .tox-control-wrap--status-invalid .tox-textfield,.tox:not([dir=rtl]) .tox-control-wrap--status-unknown .tox-textfield,.tox:not([dir=rtl]) .tox-control-wrap--status-valid .tox-textfield{padding-right:32px}.tox:not([dir=rtl]) .tox-control-wrap__status-icon-wrap{right:4px}.tox[dir=rtl] .tox-control-wrap--status-invalid .tox-textfield,.tox[dir=rtl] .tox-control-wrap--status-unknown .tox-textfield,.tox[dir=rtl] .tox-control-wrap--status-valid .tox-textfield{padding-left:32px}.tox[dir=rtl] .tox-control-wrap__status-icon-wrap{left:4px}.tox .tox-autocompleter{max-width:25em}.tox .tox-autocompleter .tox-menu{box-sizing:border-box;max-width:25em}.tox .tox-autocompleter .tox-autocompleter-highlight{font-weight:700}.tox .tox-color-input{display:flex;position:relative;z-index:1}.tox .tox-color-input .tox-textfield{z-index:-1}.tox .tox-color-input span{border-color:rgba(34,47,62,.2);border-radius:6px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;height:24px;position:absolute;top:6px;width:24px}.tox .tox-color-input span:focus:not([aria-disabled=true]),.tox .tox-color-input span:hover:not([aria-disabled=true]){border-color:#006ce7;cursor:pointer}.tox .tox-color-input span::before{background-image:linear-gradient(45deg,rgba(0,0,0,.25) 25%,transparent 25%),linear-gradient(-45deg,rgba(0,0,0,.25) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,rgba(0,0,0,.25) 75%),linear-gradient(-45deg,transparent 75%,rgba(0,0,0,.25) 75%);background-position:0 0,0 6px,6px -6px,-6px 0;background-size:12px 12px;border:1px solid #fff;border-radius:6px;box-sizing:border-box;content:'';height:24px;left:-1px;position:absolute;top:-1px;width:24px;z-index:-1}.tox .tox-color-input span[aria-disabled=true]{cursor:not-allowed}.tox:not([dir=rtl]) .tox-color-input .tox-textfield{padding-left:36px}.tox:not([dir=rtl]) .tox-color-input span{left:6px}.tox[dir=rtl] .tox-color-input .tox-textfield{padding-right:36px}.tox[dir=rtl] .tox-color-input span{right:6px}.tox .tox-label,.tox .tox-toolbar-label{color:rgba(34,47,62,.7);display:block;font-size:14px;font-style:normal;font-weight:400;line-height:1.3;padding:0 8px 0 0;text-transform:none;white-space:nowrap}.tox .tox-toolbar-label{padding:0 8px}.tox[dir=rtl] .tox-label{padding:0 0 0 8px}.tox .tox-form{display:flex;flex:1;flex-direction:column}.tox .tox-form__group{box-sizing:border-box;margin-bottom:4px}.tox .tox-form-group--maximize{flex:1}.tox .tox-form__group--error{color:#c00}.tox .tox-form__group--collection{display:flex}.tox .tox-form__grid{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between}.tox .tox-form__grid--2col>.tox-form__group{width:calc(50% - (8px / 2))}.tox .tox-form__grid--3col>.tox-form__group{width:calc(100% / 3 - (8px / 2))}.tox .tox-form__grid--4col>.tox-form__group{width:calc(25% - (8px / 2))}.tox .tox-form__controls-h-stack{align-items:center;display:flex}.tox .tox-form__group--inline{align-items:center;display:flex}.tox .tox-form__group--stretched{display:flex;flex:1;flex-direction:column}.tox .tox-form__group--stretched .tox-textarea{flex:1}.tox .tox-form__group--stretched .tox-navobj{display:flex;flex:1}.tox .tox-form__group--stretched .tox-navobj :nth-child(2){flex:1;height:100%}.tox:not([dir=rtl]) .tox-form__controls-h-stack>:not(:first-child){margin-left:4px}.tox[dir=rtl] .tox-form__controls-h-stack>:not(:first-child){margin-right:4px}.tox .tox-lock.tox-locked .tox-lock-icon__unlock,.tox .tox-lock:not(.tox-locked) .tox-lock-icon__lock{display:none}.tox .tox-listboxfield .tox-listbox--select,.tox .tox-textarea,.tox .tox-textarea-wrap .tox-textarea:focus,.tox .tox-textfield,.tox .tox-toolbar-textfield{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#eee;border-radius:6px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#222f3e;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:16px;line-height:24px;margin:0;min-height:34px;outline:0;padding:5px 5.5px;resize:none;width:100%}.tox .tox-textarea[disabled],.tox .tox-textfield[disabled]{background-color:#f2f2f2;color:rgba(34,47,62,.85);cursor:not-allowed}.tox .tox-custom-editor:focus-within,.tox .tox-listboxfield .tox-listbox--select:focus,.tox .tox-textarea-wrap:focus-within,.tox .tox-textarea:focus,.tox .tox-textfield:focus{background-color:#fff;border-color:#006ce7;box-shadow:0 0 0 2px rgba(0,108,231,.25);outline:0}.tox .tox-toolbar-textfield{border-width:0;margin-bottom:3px;margin-top:2px;max-width:250px}.tox .tox-naked-btn{background-color:transparent;border:0;border-color:transparent;box-shadow:unset;color:#006ce7;cursor:pointer;display:block;margin:0;padding:0}.tox .tox-naked-btn svg{display:block;fill:#222f3e}.tox:not([dir=rtl]) .tox-toolbar-textfield+*{margin-left:4px}.tox[dir=rtl] .tox-toolbar-textfield+*{margin-right:4px}.tox .tox-listboxfield{cursor:pointer;position:relative}.tox .tox-listboxfield .tox-listbox--select[disabled]{background-color:#f2f2f2;color:rgba(34,47,62,.85);cursor:not-allowed}.tox .tox-listbox__select-label{cursor:default;flex:1;margin:0 4px}.tox .tox-listbox__select-chevron{align-items:center;display:flex;justify-content:center;width:16px}.tox .tox-listbox__select-chevron svg{fill:#222f3e}.tox .tox-listboxfield .tox-listbox--select{align-items:center;display:flex}.tox:not([dir=rtl]) .tox-listboxfield svg{right:8px}.tox[dir=rtl] .tox-listboxfield svg{left:8px}.tox .tox-selectfield{cursor:pointer;position:relative}.tox .tox-selectfield select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#eee;border-radius:6px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#222f3e;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:16px;line-height:24px;margin:0;min-height:34px;outline:0;padding:5px 5.5px;resize:none;width:100%}.tox .tox-selectfield select[disabled]{background-color:#f2f2f2;color:rgba(34,47,62,.85);cursor:not-allowed}.tox .tox-selectfield select::-ms-expand{display:none}.tox .tox-selectfield select:focus{background-color:#fff;border-color:#006ce7;box-shadow:0 0 0 2px rgba(0,108,231,.25);outline:0}.tox .tox-selectfield svg{pointer-events:none;position:absolute;top:50%;transform:translateY(-50%)}.tox:not([dir=rtl]) .tox-selectfield select[size="0"],.tox:not([dir=rtl]) .tox-selectfield select[size="1"]{padding-right:24px}.tox:not([dir=rtl]) .tox-selectfield svg{right:8px}.tox[dir=rtl] .tox-selectfield select[size="0"],.tox[dir=rtl] .tox-selectfield select[size="1"]{padding-left:24px}.tox[dir=rtl] .tox-selectfield svg{left:8px}.tox .tox-textarea-wrap{border-color:#eee;border-radius:6px;border-style:solid;border-width:1px;display:flex;flex:1;overflow:hidden}.tox .tox-textarea{-webkit-appearance:textarea;-moz-appearance:textarea;appearance:textarea;white-space:pre-wrap}.tox .tox-textarea-wrap .tox-textarea{border:none}.tox .tox-textarea-wrap .tox-textarea:focus{border:none}.tox-fullscreen{border:0;height:100%;margin:0;overflow:hidden;overscroll-behavior:none;padding:0;touch-action:pinch-zoom;width:100%}.tox.tox-tinymce.tox-fullscreen .tox-statusbar__resize-handle{display:none}.tox-shadowhost.tox-fullscreen,.tox.tox-tinymce.tox-fullscreen{left:0;position:fixed;top:0;z-index:1200}.tox.tox-tinymce.tox-fullscreen{background-color:transparent}.tox-fullscreen .tox.tox-tinymce-aux,.tox-fullscreen~.tox.tox-tinymce-aux{z-index:1201}.tox .tox-help__more-link{list-style:none;margin-top:1em}.tox .tox-imagepreview{background-color:#666;height:380px;overflow:hidden;position:relative;width:100%}.tox .tox-imagepreview.tox-imagepreview__loaded{overflow:auto}.tox .tox-imagepreview__container{display:flex;left:100vw;position:absolute;top:100vw}.tox .tox-imagepreview__image{background:url(data:image/gif;base64,R0lGODdhDAAMAIABAMzMzP///ywAAAAADAAMAAACFoQfqYeabNyDMkBQb81Uat85nxguUAEAOw==)}.tox .tox-image-tools .tox-spacer{flex:1}.tox .tox-image-tools .tox-bar{align-items:center;display:flex;height:60px;justify-content:center}.tox .tox-image-tools .tox-imagepreview,.tox .tox-image-tools .tox-imagepreview+.tox-bar{margin-top:8px}.tox .tox-image-tools .tox-croprect-block{background:#000;opacity:.5;position:absolute;zoom:1}.tox .tox-image-tools .tox-croprect-handle{border:2px solid #fff;height:20px;left:0;position:absolute;top:0;width:20px}.tox .tox-image-tools .tox-croprect-handle-move{border:0;cursor:move;position:absolute}.tox .tox-image-tools .tox-croprect-handle-nw{border-width:2px 0 0 2px;cursor:nw-resize;left:100px;margin:-2px 0 0 -2px;top:100px}.tox .tox-image-tools .tox-croprect-handle-ne{border-width:2px 2px 0 0;cursor:ne-resize;left:200px;margin:-2px 0 0 -20px;top:100px}.tox .tox-image-tools .tox-croprect-handle-sw{border-width:0 0 2px 2px;cursor:sw-resize;left:100px;margin:-20px 2px 0 -2px;top:200px}.tox .tox-image-tools .tox-croprect-handle-se{border-width:0 2px 2px 0;cursor:se-resize;left:200px;margin:-20px 0 0 -20px;top:200px}.tox .tox-insert-table-picker{display:flex;flex-wrap:wrap;width:170px}.tox .tox-insert-table-picker>div{border-color:#eee;border-style:solid;border-width:0 1px 1px 0;box-sizing:border-box;height:17px;width:17px}.tox .tox-collection--list .tox-collection__group .tox-insert-table-picker{margin:-4px -4px}.tox .tox-insert-table-picker .tox-insert-table-picker__selected{background-color:rgba(0,108,231,.5);border-color:rgba(0,108,231,.5)}.tox .tox-insert-table-picker__label{color:rgba(34,47,62,.7);display:block;font-size:14px;padding:4px;text-align:center;width:100%}.tox:not([dir=rtl]) .tox-insert-table-picker>div:nth-child(10n){border-right:0}.tox[dir=rtl] .tox-insert-table-picker>div:nth-child(10n+1){border-right:0}.tox .tox-menu{background-color:#fff;border:1px solid transparent;border-radius:6px;box-shadow:0 0 2px 0 rgba(34,47,62,.2),0 4px 8px 0 rgba(34,47,62,.15);display:inline-block;overflow:hidden;vertical-align:top;z-index:1150}.tox .tox-menu.tox-collection.tox-collection--list{padding:0 4px}.tox .tox-menu.tox-collection.tox-collection--toolbar{padding:8px}.tox .tox-menu.tox-collection.tox-collection--grid{padding:8px}@media only screen and (min-width:768px){.tox .tox-menu .tox-collection__item-label{overflow-wrap:break-word;word-break:normal}.tox .tox-dialog__popups .tox-menu .tox-collection__item-label{word-break:break-all}}.tox .tox-menu__label blockquote,.tox .tox-menu__label code,.tox .tox-menu__label h1,.tox .tox-menu__label h2,.tox .tox-menu__label h3,.tox .tox-menu__label h4,.tox .tox-menu__label h5,.tox .tox-menu__label h6,.tox .tox-menu__label p{margin:0}.tox .tox-menubar{background:repeating-linear-gradient(transparent 0 1px,transparent 1px 39px) center top 39px/100% calc(100% - 39px) no-repeat;background-color:#fff;display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:wrap;grid-column:1/-1;grid-row:1;padding:0 11px 0 12px}.tox .tox-promotion+.tox-menubar{grid-column:1}.tox .tox-promotion{background:repeating-linear-gradient(transparent 0 1px,transparent 1px 39px) center top 39px/100% calc(100% - 39px) no-repeat;background-color:#fff;grid-column:2;grid-row:1;padding-inline-end:8px;padding-inline-start:4px;padding-top:5px}.tox .tox-promotion-link{align-items:unsafe center;background-color:#e8f1f8;border-radius:5px;color:#086be6;cursor:pointer;display:flex;font-size:14px;height:26.6px;padding:4px 8px;white-space:nowrap}.tox .tox-promotion-link:hover{background-color:#b4d7ff}.tox .tox-promotion-link:focus{background-color:#d9edf7}.tox .tox-mbtn{align-items:center;background:0 0;border:0;border-radius:3px;box-shadow:none;color:#222f3e;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:400;height:28px;justify-content:center;margin:5px 1px 6px 0;outline:0;overflow:hidden;padding:0 4px;text-transform:none;width:auto}.tox .tox-mbtn[disabled]{background-color:transparent;border:0;box-shadow:none;color:rgba(34,47,62,.5);cursor:not-allowed}.tox .tox-mbtn:focus:not(:disabled){background:#cce2fa;border:0;box-shadow:none;color:#222f3e}.tox .tox-mbtn--active{background:#a6ccf7;border:0;box-shadow:none;color:#222f3e}.tox .tox-mbtn:hover:not(:disabled):not(.tox-mbtn--active){background:#cce2fa;border:0;box-shadow:none;color:#222f3e}.tox .tox-mbtn__select-label{cursor:default;font-weight:400;margin:0 4px}.tox .tox-mbtn[disabled] .tox-mbtn__select-label{cursor:not-allowed}.tox .tox-mbtn__select-chevron{align-items:center;display:flex;justify-content:center;width:16px;display:none}.tox .tox-notification{border-radius:6px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;display:grid;font-size:14px;font-weight:400;grid-template-columns:minmax(40px,1fr) auto minmax(40px,1fr);margin-top:4px;opacity:0;padding:4px;transition:transform .1s ease-in,opacity 150ms ease-in}.tox .tox-notification p{font-size:14px;font-weight:400}.tox .tox-notification a{cursor:pointer;text-decoration:underline}.tox .tox-notification--in{opacity:1}.tox .tox-notification--success{background-color:#e4eeda;border-color:#d7e6c8;color:#222f3e}.tox .tox-notification--success p{color:#222f3e}.tox .tox-notification--success a{color:#517342}.tox .tox-notification--success svg{fill:#222f3e}.tox .tox-notification--error{background-color:#f5cccc;border-color:#f0b3b3;color:#222f3e}.tox .tox-notification--error p{color:#222f3e}.tox .tox-notification--error a{color:#77181f}.tox .tox-notification--error svg{fill:#222f3e}.tox .tox-notification--warn,.tox .tox-notification--warning{background-color:#fff5cc;border-color:#fff0b3;color:#222f3e}.tox .tox-notification--warn p,.tox .tox-notification--warning p{color:#222f3e}.tox .tox-notification--warn a,.tox .tox-notification--warning a{color:#7a6e25}.tox .tox-notification--warn svg,.tox .tox-notification--warning svg{fill:#222f3e}.tox .tox-notification--info{background-color:#d6e7fb;border-color:#c1dbf9;color:#222f3e}.tox .tox-notification--info p{color:#222f3e}.tox .tox-notification--info a{color:#2a64a6}.tox .tox-notification--info svg{fill:#222f3e}.tox .tox-notification__body{align-self:center;color:#222f3e;font-size:14px;grid-column-end:3;grid-column-start:2;grid-row-end:2;grid-row-start:1;text-align:center;white-space:normal;word-break:break-all;word-break:break-word}.tox .tox-notification__body>*{margin:0}.tox .tox-notification__body>*+*{margin-top:1rem}.tox .tox-notification__icon{align-self:center;grid-column-end:2;grid-column-start:1;grid-row-end:2;grid-row-start:1;justify-self:end}.tox .tox-notification__icon svg{display:block}.tox .tox-notification__dismiss{align-self:start;grid-column-end:4;grid-column-start:3;grid-row-end:2;grid-row-start:1;justify-self:end}.tox .tox-notification .tox-progress-bar{grid-column-end:4;grid-column-start:1;grid-row-end:3;grid-row-start:2;justify-self:center}.tox .tox-pop{display:inline-block;position:relative}.tox .tox-pop--resizing{transition:width .1s ease}.tox .tox-pop--resizing .tox-toolbar,.tox .tox-pop--resizing .tox-toolbar__group{flex-wrap:nowrap}.tox .tox-pop--transition{transition:.15s ease;transition-property:left,right,top,bottom}.tox .tox-pop--transition::after,.tox .tox-pop--transition::before{transition:all .15s,visibility 0s,opacity 75ms ease 75ms}.tox .tox-pop__dialog{background-color:#fff;border:1px solid #eee;border-radius:6px;box-shadow:0 0 2px 0 rgba(34,47,62,.2),0 4px 8px 0 rgba(34,47,62,.15);min-width:0;overflow:hidden}.tox .tox-pop__dialog>:not(.tox-toolbar){margin:4px 4px 4px 8px}.tox .tox-pop__dialog .tox-toolbar{background-color:transparent;margin-bottom:-1px}.tox .tox-pop::after,.tox .tox-pop::before{border-style:solid;content:'';display:block;height:0;opacity:1;position:absolute;width:0}.tox .tox-pop.tox-pop--inset::after,.tox .tox-pop.tox-pop--inset::before{opacity:0;transition:all 0s .15s,visibility 0s,opacity 75ms ease}.tox .tox-pop.tox-pop--bottom::after,.tox .tox-pop.tox-pop--bottom::before{left:50%;top:100%}.tox .tox-pop.tox-pop--bottom::after{border-color:#fff transparent transparent transparent;border-width:8px;margin-left:-8px;margin-top:-1px}.tox .tox-pop.tox-pop--bottom::before{border-color:#eee transparent transparent transparent;border-width:9px;margin-left:-9px}.tox .tox-pop.tox-pop--top::after,.tox .tox-pop.tox-pop--top::before{left:50%;top:0;transform:translateY(-100%)}.tox .tox-pop.tox-pop--top::after{border-color:transparent transparent #fff transparent;border-width:8px;margin-left:-8px;margin-top:1px}.tox .tox-pop.tox-pop--top::before{border-color:transparent transparent #eee transparent;border-width:9px;margin-left:-9px}.tox .tox-pop.tox-pop--left::after,.tox .tox-pop.tox-pop--left::before{left:0;top:calc(50% - 1px);transform:translateY(-50%)}.tox .tox-pop.tox-pop--left::after{border-color:transparent #fff transparent transparent;border-width:8px;margin-left:-15px}.tox .tox-pop.tox-pop--left::before{border-color:transparent #eee transparent transparent;border-width:10px;margin-left:-19px}.tox .tox-pop.tox-pop--right::after,.tox .tox-pop.tox-pop--right::before{left:100%;top:calc(50% + 1px);transform:translateY(-50%)}.tox .tox-pop.tox-pop--right::after{border-color:transparent transparent transparent #fff;border-width:8px;margin-left:-1px}.tox .tox-pop.tox-pop--right::before{border-color:transparent transparent transparent #eee;border-width:10px;margin-left:-1px}.tox .tox-pop.tox-pop--align-left::after,.tox .tox-pop.tox-pop--align-left::before{left:20px}.tox .tox-pop.tox-pop--align-right::after,.tox .tox-pop.tox-pop--align-right::before{left:calc(100% - 20px)}.tox .tox-sidebar-wrap{display:flex;flex-direction:row;flex-grow:1;min-height:0}.tox .tox-sidebar{background-color:#fff;display:flex;flex-direction:row;justify-content:flex-end}.tox .tox-sidebar__slider{display:flex;overflow:hidden}.tox .tox-sidebar__pane-container{display:flex}.tox .tox-sidebar__pane{display:flex}.tox .tox-sidebar--sliding-closed{opacity:0}.tox .tox-sidebar--sliding-open{opacity:1}.tox .tox-sidebar--sliding-growing,.tox .tox-sidebar--sliding-shrinking{transition:width .5s ease,opacity .5s ease}.tox .tox-selector{background-color:#4099ff;border-color:#4099ff;border-style:solid;border-width:1px;box-sizing:border-box;display:inline-block;height:10px;position:absolute;width:10px}.tox.tox-platform-touch .tox-selector{height:12px;width:12px}.tox .tox-slider{align-items:center;display:flex;flex:1;height:24px;justify-content:center;position:relative}.tox .tox-slider__rail{background-color:transparent;border:1px solid #eee;border-radius:6px;height:10px;min-width:120px;width:100%}.tox .tox-slider__handle{background-color:#006ce7;border:2px solid #0054b4;border-radius:6px;box-shadow:none;height:24px;left:50%;position:absolute;top:50%;transform:translateX(-50%) translateY(-50%);width:14px}.tox .tox-form__controls-h-stack>.tox-slider:not(:first-of-type){margin-inline-start:8px}.tox .tox-form__controls-h-stack>.tox-form__group+.tox-slider{margin-inline-start:32px}.tox .tox-form__controls-h-stack>.tox-slider+.tox-form__group{margin-inline-start:32px}.tox .tox-source-code{overflow:auto}.tox .tox-spinner{display:flex}.tox .tox-spinner>div{animation:tam-bouncing-dots 1.5s ease-in-out 0s infinite both;background-color:rgba(34,47,62,.7);border-radius:100%;height:8px;width:8px}.tox .tox-spinner>div:nth-child(1){animation-delay:-.32s}.tox .tox-spinner>div:nth-child(2){animation-delay:-.16s}@keyframes tam-bouncing-dots{0%,100%,80%{transform:scale(0)}40%{transform:scale(1)}}.tox:not([dir=rtl]) .tox-spinner>div:not(:first-child){margin-left:4px}.tox[dir=rtl] .tox-spinner>div:not(:first-child){margin-right:4px}.tox .tox-statusbar{align-items:center;background-color:#fff;border-top:1px solid #e3e3e3;color:rgba(34,47,62,.7);display:flex;flex:0 0 auto;font-size:14px;font-weight:400;height:25px;overflow:hidden;padding:0 8px;position:relative;text-transform:none}.tox .tox-statusbar__path{display:flex;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tox .tox-statusbar__right-container{display:flex;justify-content:flex-end;white-space:nowrap}.tox .tox-statusbar__help-text{text-align:center}.tox .tox-statusbar__text-container{display:flex;flex:1 1 auto;justify-content:space-between;overflow:hidden}@media only screen and (min-width:768px){.tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols>.tox-statusbar__help-text,.tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols>.tox-statusbar__path,.tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols>.tox-statusbar__right-container{flex:0 0 calc(100% / 3)}}.tox .tox-statusbar__text-container.tox-statusbar__text-container--flex-end{justify-content:flex-end}.tox .tox-statusbar__text-container.tox-statusbar__text-container--flex-start{justify-content:flex-start}.tox .tox-statusbar__text-container.tox-statusbar__text-container--space-around{justify-content:space-around}.tox .tox-statusbar__path>*{display:inline;white-space:nowrap}.tox .tox-statusbar__wordcount{flex:0 0 auto;margin-left:1ch}@media only screen and (max-width:767px){.tox .tox-statusbar__text-container .tox-statusbar__help-text{display:none}.tox .tox-statusbar__text-container .tox-statusbar__help-text:only-child{display:block}}.tox .tox-statusbar a,.tox .tox-statusbar__path-item,.tox .tox-statusbar__wordcount{color:rgba(34,47,62,.7);text-decoration:none}.tox .tox-statusbar a:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar a:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:hover:not(:disabled):not([aria-disabled=true]){color:#222f3e;cursor:pointer}.tox .tox-statusbar__branding svg{fill:rgba(34,47,62,.8);height:1.14em;vertical-align:-.28em;width:3.6em}.tox .tox-statusbar__branding a:focus:not(:disabled):not([aria-disabled=true]) svg,.tox .tox-statusbar__branding a:hover:not(:disabled):not([aria-disabled=true]) svg{fill:#222f3e}.tox .tox-statusbar__resize-handle{align-items:flex-end;align-self:stretch;cursor:nwse-resize;display:flex;flex:0 0 auto;justify-content:flex-end;margin-left:auto;margin-right:-8px;padding-bottom:3px;padding-left:1ch;padding-right:3px}.tox .tox-statusbar__resize-handle svg{display:block;fill:rgba(34,47,62,.5)}.tox .tox-statusbar__resize-handle:focus svg{background-color:#dee0e2;border-radius:1px 1px 5px 1px;box-shadow:0 0 0 2px #dee0e2}.tox:not([dir=rtl]) .tox-statusbar__path>*{margin-right:4px}.tox:not([dir=rtl]) .tox-statusbar__branding{margin-left:2ch}.tox[dir=rtl] .tox-statusbar{flex-direction:row-reverse}.tox[dir=rtl] .tox-statusbar__path>*{margin-left:4px}.tox .tox-throbber{z-index:1299}.tox .tox-throbber__busy-spinner{align-items:center;background-color:rgba(255,255,255,.6);bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}.tox .tox-tbtn{align-items:center;background:0 0;border:0;border-radius:3px;box-shadow:none;color:#222f3e;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:400;height:28px;justify-content:center;margin:6px 1px 5px 0;outline:0;overflow:hidden;padding:0;text-transform:none;width:34px}.tox .tox-tbtn svg{display:block;fill:#222f3e}.tox .tox-tbtn.tox-tbtn-more{padding-left:5px;padding-right:5px;width:inherit}.tox .tox-tbtn:focus{background:#cce2fa;border:0;box-shadow:none}.tox .tox-tbtn:hover{background:#cce2fa;border:0;box-shadow:none;color:#222f3e}.tox .tox-tbtn:hover svg{fill:#222f3e}.tox .tox-tbtn:active{background:#a6ccf7;border:0;box-shadow:none;color:#222f3e}.tox .tox-tbtn:active svg{fill:#222f3e}.tox .tox-tbtn--disabled .tox-tbtn--enabled svg{fill:rgba(34,47,62,.5)}.tox .tox-tbtn--disabled,.tox .tox-tbtn--disabled:hover,.tox .tox-tbtn:disabled,.tox .tox-tbtn:disabled:hover{background:0 0;border:0;box-shadow:none;color:rgba(34,47,62,.5);cursor:not-allowed}.tox .tox-tbtn--disabled svg,.tox .tox-tbtn--disabled:hover svg,.tox .tox-tbtn:disabled svg,.tox .tox-tbtn:disabled:hover svg{fill:rgba(34,47,62,.5)}.tox .tox-tbtn--enabled,.tox .tox-tbtn--enabled:hover{background:#a6ccf7;border:0;box-shadow:none;color:#222f3e}.tox .tox-tbtn--enabled:hover>*,.tox .tox-tbtn--enabled>*{transform:none}.tox .tox-tbtn--enabled svg,.tox .tox-tbtn--enabled:hover svg{fill:#222f3e}.tox .tox-tbtn--enabled.tox-tbtn--disabled svg,.tox .tox-tbtn--enabled:hover.tox-tbtn--disabled svg{fill:rgba(34,47,62,.5)}.tox .tox-tbtn:focus:not(.tox-tbtn--disabled){color:#222f3e}.tox .tox-tbtn:focus:not(.tox-tbtn--disabled) svg{fill:#222f3e}.tox .tox-tbtn:active>*{transform:none}.tox .tox-tbtn--md{height:42px;width:51px}.tox .tox-tbtn--lg{flex-direction:column;height:56px;width:68px}.tox .tox-tbtn--return{align-self:stretch;height:unset;width:16px}.tox .tox-tbtn--labeled{padding:0 4px;width:unset}.tox .tox-tbtn__vlabel{display:block;font-size:10px;font-weight:400;letter-spacing:-.025em;margin-bottom:4px;white-space:nowrap}.tox .tox-number-input{border-radius:3px;display:flex;margin:6px 1px 5px 0;padding:0 4px;width:auto}.tox .tox-number-input .tox-input-wrapper{background:#f7f7f7;display:flex;pointer-events:none;text-align:center}.tox .tox-number-input .tox-input-wrapper:focus{background:#cce2fa}.tox .tox-number-input input{border-radius:3px;color:#222f3e;font-size:14px;margin:2px 0;pointer-events:all;width:60px}.tox .tox-number-input input:hover{background:#cce2fa;color:#222f3e}.tox .tox-number-input input:focus{background:#fff;color:#222f3e}.tox .tox-number-input input:disabled{background:0 0;border:0;box-shadow:none;color:rgba(34,47,62,.5);cursor:not-allowed}.tox .tox-number-input button{background:#f7f7f7;color:#222f3e;height:28px;text-align:center;width:24px}.tox .tox-number-input button svg{display:block;fill:#222f3e;margin:0 auto;transform:scale(.67)}.tox .tox-number-input button:focus{background:#cce2fa}.tox .tox-number-input button:hover{background:#cce2fa;border:0;box-shadow:none;color:#222f3e}.tox .tox-number-input button:hover svg{fill:#222f3e}.tox .tox-number-input button:active{background:#a6ccf7;border:0;box-shadow:none;color:#222f3e}.tox .tox-number-input button:active svg{fill:#222f3e}.tox .tox-number-input button:disabled{background:0 0;border:0;box-shadow:none;color:rgba(34,47,62,.5);cursor:not-allowed}.tox .tox-number-input button:disabled svg{fill:rgba(34,47,62,.5)}.tox .tox-number-input button.minus{border-radius:3px 0 0 3px}.tox .tox-number-input button.plus{border-radius:0 3px 3px 0}.tox .tox-number-input:focus:not(:active)>.tox-input-wrapper,.tox .tox-number-input:focus:not(:active)>button{background:#cce2fa}.tox .tox-tbtn--select{margin:6px 1px 5px 0;padding:0 4px;width:auto}.tox .tox-tbtn__select-label{cursor:default;font-weight:400;height:initial;margin:0 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tox .tox-tbtn__select-chevron{align-items:center;display:flex;justify-content:center;width:16px}.tox .tox-tbtn__select-chevron svg{fill:rgba(34,47,62,.5)}.tox .tox-tbtn--bespoke{background:#f7f7f7}.tox .tox-tbtn--bespoke+.tox-tbtn--bespoke{margin-inline-start:4px}.tox .tox-tbtn--bespoke .tox-tbtn__select-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:7em}.tox .tox-tbtn--disabled .tox-tbtn__select-label,.tox .tox-tbtn--select:disabled .tox-tbtn__select-label{cursor:not-allowed}.tox .tox-split-button{border:0;border-radius:3px;box-sizing:border-box;display:flex;margin:6px 1px 5px 0;overflow:hidden}.tox .tox-split-button:hover{box-shadow:0 0 0 1px #cce2fa inset}.tox .tox-split-button:focus{background:#cce2fa;box-shadow:none;color:#222f3e}.tox .tox-split-button>*{border-radius:0}.tox .tox-split-button__chevron{width:16px}.tox .tox-split-button__chevron svg{fill:rgba(34,47,62,.5)}.tox .tox-split-button .tox-tbtn{margin:0}.tox .tox-split-button.tox-tbtn--disabled .tox-tbtn:focus,.tox .tox-split-button.tox-tbtn--disabled .tox-tbtn:hover,.tox .tox-split-button.tox-tbtn--disabled:focus,.tox .tox-split-button.tox-tbtn--disabled:hover{background:0 0;box-shadow:none;color:rgba(34,47,62,.5)}.tox.tox-platform-touch .tox-split-button .tox-tbtn--select{padding:0 0}.tox.tox-platform-touch .tox-split-button .tox-tbtn:not(.tox-tbtn--select):first-child{width:30px}.tox.tox-platform-touch .tox-split-button__chevron{width:20px}.tox .tox-split-button.tox-tbtn--disabled svg #tox-icon-highlight-bg-color__color,.tox .tox-split-button.tox-tbtn--disabled svg #tox-icon-text-color__color{opacity:.6}.tox .tox-toolbar-overlord{background-color:#fff}.tox .tox-toolbar,.tox .tox-toolbar__overflow,.tox .tox-toolbar__primary{background-attachment:local;background-color:#fff;background-image:repeating-linear-gradient(#e3e3e3 0 1px,transparent 1px 39px);background-position:center top 40px;background-repeat:no-repeat;background-size:calc(100% - 11px * 2) calc(100% - 41px);display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:wrap;padding:0 0;transform:perspective(1px)}.tox .tox-toolbar-overlord>.tox-toolbar,.tox .tox-toolbar-overlord>.tox-toolbar__overflow,.tox .tox-toolbar-overlord>.tox-toolbar__primary{background-position:center top 0;background-size:calc(100% - 11px * 2) calc(100% - 0px)}.tox .tox-toolbar__overflow.tox-toolbar__overflow--closed{height:0;opacity:0;padding-bottom:0;padding-top:0;visibility:hidden}.tox .tox-toolbar__overflow--growing{transition:height .3s ease,opacity .2s linear .1s}.tox .tox-toolbar__overflow--shrinking{transition:opacity .3s ease,height .2s linear .1s,visibility 0s linear .3s}.tox .tox-anchorbar,.tox .tox-toolbar-overlord{grid-column:1/-1}.tox .tox-menubar+.tox-toolbar,.tox .tox-menubar+.tox-toolbar-overlord{border-top:1px solid transparent;margin-top:-1px;padding-bottom:1px;padding-top:1px}.tox .tox-toolbar--scrolling{flex-wrap:nowrap;overflow-x:auto}.tox .tox-pop .tox-toolbar{border-width:0}.tox .tox-toolbar--no-divider{background-image:none}.tox .tox-toolbar-overlord .tox-toolbar:not(.tox-toolbar--scrolling):first-child,.tox .tox-toolbar-overlord .tox-toolbar__primary{background-position:center top 39px}.tox .tox-editor-header>.tox-toolbar--scrolling,.tox .tox-toolbar-overlord .tox-toolbar--scrolling:first-child{background-image:none}.tox.tox-tinymce-aux .tox-toolbar__overflow{background-color:#fff;background-position:center top 43px;background-size:calc(100% - 8px * 2) calc(100% - 51px);border:none;border-radius:6px;box-shadow:0 0 2px 0 rgba(34,47,62,.2),0 4px 8px 0 rgba(34,47,62,.15);overscroll-behavior:none;padding:4px 0}.tox-pop .tox-pop__dialog .tox-toolbar{background-position:center top 43px;background-size:calc(100% - 11px * 2) calc(100% - 51px);padding:4px 0}.tox .tox-toolbar__group{align-items:center;display:flex;flex-wrap:wrap;margin:0 0;padding:0 11px 0 12px}.tox .tox-toolbar__group--pull-right{margin-left:auto}.tox .tox-toolbar--scrolling .tox-toolbar__group{flex-shrink:0;flex-wrap:nowrap}.tox:not([dir=rtl]) .tox-toolbar__group:not(:last-of-type){border-right:1px solid transparent}.tox[dir=rtl] .tox-toolbar__group:not(:last-of-type){border-left:1px solid transparent}.tox .tox-tooltip{display:inline-block;padding:8px;position:relative}.tox .tox-tooltip__body{background-color:#222f3e;border-radius:6px;box-shadow:0 2px 4px rgba(34,47,62,.3);color:rgba(255,255,255,.75);font-size:14px;font-style:normal;font-weight:400;padding:4px 8px;text-transform:none}.tox .tox-tooltip__arrow{position:absolute}.tox .tox-tooltip--down .tox-tooltip__arrow{border-left:8px solid transparent;border-right:8px solid transparent;border-top:8px solid #222f3e;bottom:0;left:50%;position:absolute;transform:translateX(-50%)}.tox .tox-tooltip--up .tox-tooltip__arrow{border-bottom:8px solid #222f3e;border-left:8px solid transparent;border-right:8px solid transparent;left:50%;position:absolute;top:0;transform:translateX(-50%)}.tox .tox-tooltip--right .tox-tooltip__arrow{border-bottom:8px solid transparent;border-left:8px solid #222f3e;border-top:8px solid transparent;position:absolute;right:0;top:50%;transform:translateY(-50%)}.tox .tox-tooltip--left .tox-tooltip__arrow{border-bottom:8px solid transparent;border-right:8px solid #222f3e;border-top:8px solid transparent;left:0;position:absolute;top:50%;transform:translateY(-50%)}.tox .tox-tree{display:flex;flex-direction:column}.tox .tox-tree .tox-trbtn{align-items:center;background:0 0;border:0;border-radius:4px;box-shadow:none;color:#222f3e;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:400;height:28px;margin-bottom:4px;margin-top:4px;outline:0;overflow:hidden;padding:0;padding-left:8px;text-transform:none}.tox .tox-tree .tox-trbtn .tox-tree__label{cursor:default;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tox .tox-tree .tox-trbtn svg{display:block;fill:#222f3e}.tox .tox-tree .tox-trbtn:focus{background:#cce2fa;border:0;box-shadow:none}.tox .tox-tree .tox-trbtn:hover{background:#cce2fa;border:0;box-shadow:none;color:#222f3e}.tox .tox-tree .tox-trbtn:hover svg{fill:#222f3e}.tox .tox-tree .tox-trbtn:active{background:#a6ccf7;border:0;box-shadow:none;color:#222f3e}.tox .tox-tree .tox-trbtn:active svg{fill:#222f3e}.tox .tox-tree .tox-trbtn--disabled,.tox .tox-tree .tox-trbtn--disabled:hover,.tox .tox-tree .tox-trbtn:disabled,.tox .tox-tree .tox-trbtn:disabled:hover{background:0 0;border:0;box-shadow:none;color:rgba(34,47,62,.5);cursor:not-allowed}.tox .tox-tree .tox-trbtn--disabled svg,.tox .tox-tree .tox-trbtn--disabled:hover svg,.tox .tox-tree .tox-trbtn:disabled svg,.tox .tox-tree .tox-trbtn:disabled:hover svg{fill:rgba(34,47,62,.5)}.tox .tox-tree .tox-trbtn--enabled,.tox .tox-tree .tox-trbtn--enabled:hover{background:#a6ccf7;border:0;box-shadow:none;color:#222f3e}.tox .tox-tree .tox-trbtn--enabled:hover>*,.tox .tox-tree .tox-trbtn--enabled>*{transform:none}.tox .tox-tree .tox-trbtn--enabled svg,.tox .tox-tree .tox-trbtn--enabled:hover svg{fill:#222f3e}.tox .tox-tree .tox-trbtn:focus:not(.tox-trbtn--disabled){color:#222f3e}.tox .tox-tree .tox-trbtn:focus:not(.tox-trbtn--disabled) svg{fill:#222f3e}.tox .tox-tree .tox-trbtn:active>*{transform:none}.tox .tox-tree .tox-trbtn--return{align-self:stretch;height:unset;width:16px}.tox .tox-tree .tox-trbtn--labeled{padding:0 4px;width:unset}.tox .tox-tree .tox-trbtn__vlabel{display:block;font-size:10px;font-weight:400;letter-spacing:-.025em;margin-bottom:4px;white-space:nowrap}.tox .tox-tree .tox-tree--directory{display:flex;flex-direction:column}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label{font-weight:700}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn{margin-left:auto}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn svg{fill:transparent}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn.tox-mbtn--active svg,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn:focus svg{fill:#222f3e}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:focus .tox-mbtn svg,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover .tox-mbtn svg{fill:#222f3e}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover:has(.tox-mbtn:hover){background-color:transparent;color:#222f3e}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover:has(.tox-mbtn:hover) .tox-chevron svg{fill:#222f3e}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-chevron{margin-right:6px}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--growing) .tox-chevron,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--shrinking) .tox-chevron{transition:transform .5s ease-in-out}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--growing) .tox-chevron,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--open) .tox-chevron{transform:rotate(90deg)}.tox .tox-tree .tox-tree--leaf__label{font-weight:400}.tox .tox-tree .tox-tree--leaf__label .tox-mbtn{margin-left:auto}.tox .tox-tree .tox-tree--leaf__label .tox-mbtn svg{fill:transparent}.tox .tox-tree .tox-tree--leaf__label .tox-mbtn.tox-mbtn--active svg,.tox .tox-tree .tox-tree--leaf__label .tox-mbtn:focus svg{fill:#222f3e}.tox .tox-tree .tox-tree--leaf__label:hover .tox-mbtn svg{fill:#222f3e}.tox .tox-tree .tox-tree--leaf__label:hover:has(.tox-mbtn:hover){background-color:transparent;color:#222f3e}.tox .tox-tree .tox-tree--leaf__label:hover:has(.tox-mbtn:hover) .tox-chevron svg{fill:#222f3e}.tox .tox-tree .tox-tree--directory__children{overflow:hidden;padding-left:16px}.tox .tox-tree .tox-tree--directory__children.tox-tree--directory__children--growing,.tox .tox-tree .tox-tree--directory__children.tox-tree--directory__children--shrinking{transition:height .5s ease-in-out}.tox .tox-tree .tox-trbtn.tox-tree--leaf__label{display:flex;justify-content:space-between}.tox .tox-view-wrap,.tox .tox-view-wrap__slot-container{background-color:#fff;display:flex;flex:1;flex-direction:column}.tox .tox-view{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.tox .tox-view__header{align-items:center;display:flex;font-size:16px;justify-content:space-between;padding:8px 8px 0 8px;position:relative}.tox .tox-view--mobile.tox-view__header,.tox .tox-view--mobile.tox-view__toolbar{padding:8px}.tox .tox-view--scrolling{flex-wrap:nowrap;overflow-x:auto}.tox .tox-view__toolbar{display:flex;flex-direction:row;gap:8px;justify-content:space-between;padding:8px 8px 0 8px}.tox .tox-view__toolbar__group{display:flex;flex-direction:row;gap:12px}.tox .tox-view__header-end,.tox .tox-view__header-start{display:flex}.tox .tox-view__pane{height:100%;padding:8px;width:100%}.tox .tox-view__pane_panel{border:1px solid #eee;border-radius:6px}.tox:not([dir=rtl]) .tox-view__header .tox-view__header-end>*,.tox:not([dir=rtl]) .tox-view__header .tox-view__header-start>*{margin-left:8px}.tox[dir=rtl] .tox-view__header .tox-view__header-end>*,.tox[dir=rtl] .tox-view__header .tox-view__header-start>*{margin-right:8px}.tox .tox-well{border:1px solid #eee;border-radius:6px;padding:8px;width:100%}.tox .tox-well>:first-child{margin-top:0}.tox .tox-well>:last-child{margin-bottom:0}.tox .tox-well>:only-child{margin:0}.tox .tox-custom-editor{border:1px solid #eee;border-radius:6px;display:flex;flex:1;overflow:hidden;position:relative}.tox .tox-dialog-loading::before{background-color:rgba(0,0,0,.5);content:"";height:100%;position:absolute;width:100%;z-index:1000}.tox .tox-tab{cursor:pointer}.tox .tox-dialog__content-js{display:flex;flex:1}.tox .tox-dialog__body-content .tox-collection{display:flex;flex:1}`);(function(){var xo=tinymce.util.Tools.resolve("tinymce.PluginManager");let Ko=0;const Io=Q=>{const bt=new Date().getTime(),wo=Math.floor(Math.random()*1e9);return Ko++,Q+"_"+wo+Ko+String(bt)},on=(Q,Ee,bt)=>{var wo;return bt(Q,Ee.prototype)?!0:((wo=Q.constructor)===null||wo===void 0?void 0:wo.name)===Ee.name},Qo=Q=>{const Ee=typeof Q;return Q===null?"null":Ee==="object"&&Array.isArray(Q)?"array":Ee==="object"&&on(Q,String,(bt,wo)=>wo.isPrototypeOf(bt))?"string":Ee},io=Q=>Ee=>Qo(Ee)===Q,Po=Q=>Ee=>typeof Ee===Q,jt=io("string"),ko=Po("boolean"),Mo=Q=>Q==null,jo=Q=>!Mo(Q),tn=Po("function"),To=Po("number"),Ue=(Q,Ee)=>bt=>Q(Ee(bt)),it=Q=>()=>Q,So=(Q,Ee)=>Q===Ee,co=it(!1);class he{constructor(Ee,bt){this.tag=Ee,this.value=bt}static some(Ee){return new he(!0,Ee)}static none(){return he.singletonNone}fold(Ee,bt){return this.tag?bt(this.value):Ee()}isSome(){return this.tag}isNone(){return!this.tag}map(Ee){return this.tag?he.some(Ee(this.value)):he.none()}bind(Ee){return this.tag?Ee(this.value):he.none()}exists(Ee){return this.tag&&Ee(this.value)}forall(Ee){return!this.tag||Ee(this.value)}filter(Ee){return!this.tag||Ee(this.value)?this:he.none()}getOr(Ee){return this.tag?this.value:Ee}or(Ee){return this.tag?this:Ee}getOrThunk(Ee){return this.tag?this.value:Ee()}orThunk(Ee){return this.tag?this:Ee()}getOrDie(Ee){if(this.tag)return this.value;throw new Error(Ee??"Called getOrDie on None")}static from(Ee){return jo(Ee)?he.some(Ee):he.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(Ee){this.tag&&Ee(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}he.singletonNone=new he(!1);const Dt=Array.prototype.indexOf,fo=(Q,Ee)=>Dt.call(Q,Ee),me=(Q,Ee)=>fo(Q,Ee)>-1,Ze=(Q,Ee)=>{const bt=Q.length,wo=new Array(bt);for(let Zn=0;Zn{for(let bt=0,wo=Q.length;bt{const bt=[];for(let wo=0,Zn=Q.length;wo(de(Q,(wo,Zn)=>{bt=Ee(bt,wo,Zn)}),bt),$t=Object.keys,gn=(Q,Ee)=>{const bt=$t(Q);for(let wo=0,Zn=bt.length;woQ.dom.nodeName.toLowerCase(),Mt=Q=>Q.dom.nodeType,ht=Q=>Ee=>Mt(Ee)===Q,Rt=Q=>Mt(Q)===Bo||lt(Q)==="#comment",uo=ht(qe),Bt=ht(Je),V=ht(Ct),dt=ht(R),Ie=(Q,Ee,bt)=>{if(jt(bt)||ko(bt)||To(bt))Q.setAttribute(Ee,bt+"");else throw console.error("Invalid call to Attribute.set. Key ",Ee,":: Value ",bt,":: Element ",Q),new Error("Attribute value was not simple")},Co=(Q,Ee,bt)=>{Ie(Q.dom,Ee,bt)},Pt=(Q,Ee)=>{const bt=Q.dom;gn(Ee,(wo,Zn)=>{Ie(bt,Zn,wo)})},lo=(Q,Ee)=>{const bt=Q.dom.getAttribute(Ee);return bt===null?void 0:bt},zo=(Q,Ee)=>he.from(lo(Q,Ee)),to=(Q,Ee)=>{Q.dom.removeAttribute(Ee)},Se=Q=>Yo(Q.dom.attributes,(Ee,bt)=>(Ee[bt.name]=bt.value,Ee),{}),$e=(Q,Ee)=>{const wo=(Ee||document).createElement("div");if(wo.innerHTML=Q,!wo.hasChildNodes()||wo.childNodes.length>1){const Zn="HTML does not have a single root node";throw console.error(Zn,Q),new Error(Zn)}return pe(wo.childNodes[0])},ct=(Q,Ee)=>{const wo=(Ee||document).createElement(Q);return pe(wo)},gt=(Q,Ee)=>{const wo=(Ee||document).createTextNode(Q);return pe(wo)},pe=Q=>{if(Q==null)throw new Error("Node cannot be null or undefined");return{dom:Q}},We={fromHtml:$e,fromTag:ct,fromText:gt,fromDom:pe,fromPoint:(Q,Ee,bt)=>he.from(Q.dom.elementFromPoint(Ee,bt)).map(pe)},Fe=(Q,Ee)=>{const bt=Q.dom;if(bt.nodeType!==qe)return!1;{const wo=bt;if(wo.matches!==void 0)return wo.matches(Ee);if(wo.msMatchesSelector!==void 0)return wo.msMatchesSelector(Ee);if(wo.webkitMatchesSelector!==void 0)return wo.webkitMatchesSelector(Ee);if(wo.mozMatchesSelector!==void 0)return wo.mozMatchesSelector(Ee);throw new Error("Browser lacks native selectors")}},ge=Q=>Q.nodeType!==qe&&Q.nodeType!==Ct&&Q.nodeType!==R||Q.childElementCount===0,Me=(Q,Ee)=>{const bt=Ee===void 0?document:Ee.dom;return ge(bt)?[]:Ze(bt.querySelectorAll(Q),We.fromDom)},at=(Q,Ee)=>{const bt=Ee===void 0?document:Ee.dom;return ge(bt)?he.none():he.from(bt.querySelector(Q)).map(We.fromDom)},ze=(Q,Ee)=>Q.dom===Ee.dom,Ge=Fe,Gt=(Q,Ee,bt=So)=>Q.exists(wo=>bt(wo,Ee)),Xo=(Q=>Ee=>Ee.replace(Q,""))(/^\s+|\s+$/g),$o=Q=>Q.style!==void 0&&tn(Q.style.getPropertyValue),Zo=Q=>We.fromDom(Q.dom.ownerDocument),Gn=Q=>V(Q)?Q:Zo(Q),Pn=Q=>he.from(Q.dom.parentNode).map(We.fromDom),zn=(Q,Ee)=>{const bt=tn(Ee)?Ee:co;let wo=Q.dom;const Zn=[];for(;wo.parentNode!==null&&wo.parentNode!==void 0;){const U=wo.parentNode,oe=We.fromDom(U);if(Zn.push(oe),bt(oe)===!0)break;wo=U}return Zn},ut=Q=>he.from(Q.dom.previousSibling).map(We.fromDom),zt=Q=>he.from(Q.dom.nextSibling).map(We.fromDom),Ft=Q=>Ze(Q.dom.childNodes,We.fromDom),vo=(Q,Ee)=>{const bt=Q.dom.childNodes;return he.from(bt[Ee]).map(We.fromDom)},Xt=Q=>vo(Q,0),Vo=Q=>dt(Q)&&jo(Q.dom.host),Rr=tn(Element.prototype.attachShadow)&&tn(Node.prototype.getRootNode)?Q=>We.fromDom(Q.dom.getRootNode()):Gn,Wt=Q=>{const Ee=Rr(Q);return Vo(Ee)?he.some(Ee):he.none()},vr=Q=>We.fromDom(Q.dom.host),Fn=Q=>{const Ee=Bt(Q)?Q.dom.parentNode:Q.dom;if(Ee==null||Ee.ownerDocument===null)return!1;const bt=Ee.ownerDocument;return Wt(We.fromDom(Ee)).fold(()=>bt.body.contains(Ee),Ue(Fn,vr))},ln=(Q,Ee,bt)=>{if(!jt(bt))throw console.error("Invalid call to CSS.set. Property ",Ee,":: Value ",bt,":: Element ",Q),new Error("CSS value must be a string: "+bt);$o(Q)&&Q.style.setProperty(Ee,bt)},xr=(Q,Ee)=>{$o(Q)&&Q.style.removeProperty(Ee)},Ys=(Q,Ee,bt)=>{const wo=Q.dom;ln(wo,Ee,bt)},Yr=(Q,Ee)=>{const bt=Q.dom,Zn=window.getComputedStyle(bt).getPropertyValue(Ee);return Zn===""&&!Fn(Q)?Pa(bt,Ee):Zn},Pa=(Q,Ee)=>$o(Q)?Q.style.getPropertyValue(Ee):"",cs=(Q,Ee)=>{const bt=Q.dom,wo=Pa(bt,Ee);return he.from(wo).filter(Zn=>Zn.length>0)},Ha=(Q,Ee)=>{const bt=Q.dom;xr(bt,Ee),Gt(zo(Q,"style").map(Xo),"")&&to(Q,"style")},ja=(Q,Ee)=>{Pn(Q).each(wo=>{wo.dom.insertBefore(Ee.dom,Q.dom)})},$s=(Q,Ee)=>{zt(Q).fold(()=>{Pn(Q).each(Zn=>{_a(Zn,Ee)})},wo=>{ja(wo,Ee)})},Us=(Q,Ee)=>{Xt(Q).fold(()=>{_a(Q,Ee)},wo=>{Q.dom.insertBefore(Ee.dom,wo.dom)})},_a=(Q,Ee)=>{Q.dom.appendChild(Ee.dom)},tt=(Q,Ee)=>{ja(Q,Ee),_a(Ee,Q)},_t=(Q,Ee)=>{de(Ee,(bt,wo)=>{const Zn=wo===0?Q:Ee[wo-1];$s(Zn,bt)})},Do=(Q,Ee)=>{de(Ee,bt=>{_a(Q,bt)})},St=(Q,Ee)=>{let bt=[];return de(Ft(Q),wo=>{Ee(wo)&&(bt=bt.concat([wo])),bt=bt.concat(St(wo,Ee))}),bt};var zr=(Q,Ee,bt,wo,Zn)=>Q(bt,wo)?he.some(bt):tn(Zn)&&Zn(bt)?he.none():Ee(bt,wo,Zn);const kr=(Q,Ee,bt)=>{let wo=Q.dom;const Zn=tn(bt)?bt:co;for(;wo.parentNode;){wo=wo.parentNode;const U=We.fromDom(wo);if(Ee(U))return he.some(U);if(Zn(U))break}return he.none()},Is=Q=>{const Ee=Q.dom;Ee.parentNode!==null&&Ee.parentNode.removeChild(Ee)},Xr=Q=>{const Ee=Ft(Q);Ee.length>0&&_t(Q,Ee),Is(Q)},gr=(Q,Ee)=>Me(Ee,Q),De=(Q,Ee,bt)=>kr(Q,wo=>Fe(wo,Ee),bt),Ae=(Q,Ee)=>at(Ee,Q),wt=(Q,Ee,bt)=>zr((Zn,U)=>Fe(Zn,U),De,Q,Ee,bt),dn=((Q,Ee)=>{const bt=U=>{if(!Q(U))throw new Error("Can only get "+Ee+" value of a "+Ee+" node");return wo(U).getOr("")},wo=U=>Q(U)?he.from(U.dom.nodeValue):he.none();return{get:bt,getOption:wo,set:(U,oe)=>{if(!Q(U))throw new Error("Can only set raw "+Ee+" value of a "+Ee+" node");U.dom.nodeValue=oe}}})(Bt,"text"),nn=Q=>dn.get(Q),sr=(Q,Ee)=>dn.set(Q,Ee);var Vr=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","li","table","thead","tbody","tfoot","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],Br=()=>{const Q=po=>We.fromDom(po.dom.cloneNode(!1)),Ee=po=>Gn(po).dom,bt=po=>uo(po)?lt(po)==="body"?!0:me(Vr,lt(po)):!1,wo=po=>uo(po)?me(["br","img","hr","input"],lt(po)):!1,Zn=po=>uo(po)&&lo(po,"contenteditable")==="false",U=(po,Yn)=>po.dom.compareDocumentPosition(Yn.dom),oe=(po,Yn)=>{const ga=Se(po);Pt(Yn,ga)},xe=po=>{const Yn=lt(po);return me(["script","noscript","iframe","noframes","noembed","title","style","textarea","xmp"],Yn)},xt=po=>uo(po)?zo(po,"lang"):he.none();return{up:it({selector:De,closest:wt,predicate:kr,all:zn}),down:it({selector:gr,predicate:St}),styles:it({get:Yr,getRaw:cs,set:Ys,remove:Ha}),attrs:it({get:lo,set:Co,remove:to,copyTo:oe}),insert:it({before:ja,after:$s,afterAll:_t,append:_a,appendAll:Do,prepend:Us,wrap:tt}),remove:it({unwrap:Xr,remove:Is}),create:it({nu:We.fromTag,clone:Q,text:We.fromText}),query:it({comparePosition:U,prevSibling:ut,nextSibling:zt}),property:it({children:Ft,name:lt,parent:Pn,document:Ee,isText:Bt,isComment:Rt,isElement:uo,isSpecial:xe,getLanguage:xt,getText:nn,setText:sr,isBoundary:bt,isEmptyTag:wo,isNonEditable:Zn}),eq:ze,is:Ge}};const Jo=(Q,Ee)=>({element:Q,offset:Ee}),Ce=(Q,Ee,bt)=>Q.property().isText(Ee)&&Q.property().getText(Ee).trim().length===0||Q.property().isComment(Ee)?bt(Ee).bind(wo=>Ce(Q,wo,bt).orThunk(()=>he.some(wo))):he.none(),Ne=(Q,Ee)=>Q.property().isText(Ee)?Q.property().getText(Ee).length:Q.property().children(Ee).length,Zt=(Q,Ee)=>{const bt=Ce(Q,Ee,Q.query().prevSibling).getOr(Ee);if(Q.property().isText(bt))return Jo(bt,Ne(Q,bt));const wo=Q.property().children(bt);return wo.length>0?Zt(Q,wo[wo.length-1]):Jo(bt,Ne(Q,bt))},Lo=Zt,Ho=Br(),rn=Q=>Lo(Ho,Q),Go=(Q,Ee,bt)=>Q.dispatch("ToggledAccordion",{element:Ee,state:bt}),hn=(Q,Ee,bt)=>Q.dispatch("ToggledAllAccordions",{elements:Ee,state:bt}),wn="details",Un="mce-accordion",Ar="mce-accordion-summary",ra="mce-accordion-body",Xs="div";var Zs=tinymce.util.Tools.resolve("tinymce.util.Tools");const mi=Q=>(Q==null?void 0:Q.nodeName)==="SUMMARY",Wr=Q=>(Q==null?void 0:Q.nodeName)==="DETAILS",rr=Q=>Q.hasAttribute("open"),Sr=Q=>{const Ee=Q.selection.getNode();return mi(Ee)||!!Q.dom.getParent(Ee,mi)},va=Q=>{const Ee=Q.selection.getRng();return Wr(Ee.startContainer)&&Ee.collapsed&&Ee.startOffset===0},Cs=Q=>!Sr(Q)&&Q.dom.isEditable(Q.selection.getNode()),za=Q=>he.from(Q.dom.getParent(Q.selection.getNode(),Wr)),ws=Q=>za(Q).isSome(),As=Q=>(Q.innerHTML='
    ',Q),Aa=Q=>As(Q.dom.create("p")),Kn=Q=>As(Q.dom.create("summary")),Os=(Q,Ee)=>{const bt=Aa(Q);Ee.insertAdjacentElement("afterend",bt),Q.selection.setCursorLocation(bt,0)},Ma=(Q,Ee)=>{if(mi(Ee==null?void 0:Ee.lastChild)){const bt=Aa(Q);Ee.appendChild(bt),Q.selection.setCursorLocation(bt,0)}},Ca=(Q,Ee)=>{if(!mi(Ee==null?void 0:Ee.firstChild)){const bt=Kn(Q);Ee.prepend(bt),Q.selection.setCursorLocation(bt,0)}},ds=Q=>Ee=>{Ma(Q,Ee),Ca(Q,Ee)},xa=Q=>{Zs.each(Zs.grep(Q.dom.select("details",Q.getBody())),ds(Q))},Rn=Q=>{if(!Cs(Q))return;const Ee=We.fromDom(Q.getBody()),bt=Io("acc"),wo=Q.dom.encode(Q.selection.getRng().toString()||Q.translate("Accordion summary...")),Zn=Q.dom.encode(Q.translate("Accordion body...")),U=`${wo}`,oe=`<${Xs} class="${ra}">

    ${Zn}

    `;Q.undoManager.transact(()=>{Q.insertContent([`
    `,U,oe,"
    "].join("")),Ae(Ee,`[data-mce-id="${bt}"]`).each(xe=>{to(xe,"data-mce-id"),Ae(xe,"summary").each(xt=>{const po=Q.dom.createRng(),Yn=rn(xt);po.setStart(Yn.element.dom,Yn.offset),po.setEnd(Yn.element.dom,Yn.offset),Q.selection.setRng(po)})})})},Hi=(Q,Ee)=>{const bt=Ee??!rr(Q);return bt?Q.setAttribute("open","open"):Q.removeAttribute("open"),bt},Bn=(Q,Ee)=>{za(Q).each(bt=>{Go(Q,bt,Hi(bt,Ee))})},ji=Q=>{za(Q).each(Ee=>{const{nextSibling:bt}=Ee;bt?(Q.selection.select(bt,!0),Q.selection.collapse(!0)):Os(Q,Ee),Ee.remove()})},go=(Q,Ee)=>{const bt=Array.from(Q.getBody().querySelectorAll("details"));bt.length!==0&&(de(bt,wo=>Hi(wo,Ee??!rr(wo))),hn(Q,bt,Ee))},aa=Q=>{Q.addCommand("InsertAccordion",()=>Rn(Q)),Q.addCommand("ToggleAccordion",(Ee,bt)=>Bn(Q,bt)),Q.addCommand("ToggleAllAccordions",(Ee,bt)=>go(Q,bt)),Q.addCommand("RemoveAccordion",()=>ji(Q))};var Ss=tinymce.util.Tools.resolve("tinymce.html.Node");const Ir=Q=>{var Ee,bt;return(bt=(Ee=Q.attr("class"))===null||Ee===void 0?void 0:Ee.split(" "))!==null&&bt!==void 0?bt:[]},gi=(Q,Ee)=>{const bt=new Set([...Ir(Q),...Ee]),wo=Array.from(bt);wo.length>0&&Q.attr("class",wo.join(" "))},sc=(Q,Ee)=>{const bt=rt(Ir(Q),wo=>!Ee.has(wo));Q.attr("class",bt.length>0?bt.join(" "):null)},Pr=Q=>Q.name===wn&&me(Ir(Q),Un),ne=Q=>Q.name===Xs&&me(Ir(Q),ra),Be=Q=>{const Ee=Q.children();let bt,wo;const Zn=[];for(let U=0;U{const Ee=new Ss("br",1);Ee.attr("data-mce-bogus","1"),Q.empty(),Q.append(Ee)},Nt=Q=>{Q.on("PreInit",()=>{const{serializer:Ee,parser:bt}=Q;bt.addNodeFilter(wn,wo=>{for(let Zn=0;Zn0)for(let Js=0;Js{const Zn=new Set([Ar]);for(let U=0;U{Q.on("keydown",Ee=>{(!Ee.shiftKey&&Ee.keyCode===ho.ENTER&&Sr(Q)||va(Q))&&(Ee.preventDefault(),Q.execCommand("ToggleAccordion"))})},kn=Q=>{bn(Q),Q.on("ExecCommand",Ee=>{const bt=Ee.command.toLowerCase();(bt==="delete"||bt==="forwarddelete")&&ws(Q)&&xa(Q)})};var _r=tinymce.util.Tools.resolve("tinymce.Env");const Or=Q=>{_r.browser.isSafari()&&Q.on("click",Ee=>{if(mi(Ee.target)){const bt=Ee.target,wo=Q.selection.getRng();wo.collapsed&&wo.startContainer===bt.parentNode&&wo.startOffset===0&&Q.selection.setCursorLocation(bt,0)}})},Sa=Q=>Ee=>{const bt=()=>Ee.setEnabled(Cs(Q));return Q.on("NodeChange",bt),()=>Q.off("NodeChange",bt)},ma=Q=>{const Ee=()=>Q.execCommand("InsertAccordion");Q.ui.registry.addButton("accordion",{icon:"accordion",tooltip:"Insert accordion",onSetup:Sa(Q),onAction:Ee}),Q.ui.registry.addMenuItem("accordion",{icon:"accordion",text:"Accordion",onSetup:Sa(Q),onAction:Ee}),Q.ui.registry.addToggleButton("accordiontoggle",{icon:"accordion-toggle",tooltip:"Toggle accordion",onAction:()=>Q.execCommand("ToggleAccordion")}),Q.ui.registry.addToggleButton("accordionremove",{icon:"remove",tooltip:"Delete accordion",onAction:()=>Q.execCommand("RemoveAccordion")}),Q.ui.registry.addContextToolbar("accordion",{predicate:bt=>Q.dom.is(bt,"details")&&Q.getBody().contains(bt)&&Q.dom.isEditable(bt.parentNode),items:"accordiontoggle accordionremove",scope:"node",position:"node"})};var Ga=()=>{xo.add("accordion",Q=>{ma(Q),aa(Q),kn(Q),Nt(Q),Or(Q)})};Ga()})();(function(){var xo=tinymce.util.Tools.resolve("tinymce.PluginManager");const Ko=(qe,Je,lt)=>{const Mt=Je==="UL"?"InsertUnorderedList":"InsertOrderedList";qe.execCommand(Mt,!1,lt===!1?null:{"list-style-type":lt})},Io=qe=>{qe.addCommand("ApplyUnorderedListStyle",(Je,lt)=>{Ko(qe,"UL",lt["list-style-type"])}),qe.addCommand("ApplyOrderedListStyle",(Je,lt)=>{Ko(qe,"OL",lt["list-style-type"])})},on=qe=>Je=>Je.options.get(qe),Qo=qe=>{const Je=qe.options.register;Je("advlist_number_styles",{processor:"string[]",default:"default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman".split(",")}),Je("advlist_bullet_styles",{processor:"string[]",default:"default,circle,square".split(",")})},io=on("advlist_number_styles"),Po=on("advlist_bullet_styles"),jt=qe=>qe==null,ko=qe=>!jt(qe);var Mo=tinymce.util.Tools.resolve("tinymce.util.Tools");class jo{constructor(Je,lt){this.tag=Je,this.value=lt}static some(Je){return new jo(!0,Je)}static none(){return jo.singletonNone}fold(Je,lt){return this.tag?lt(this.value):Je()}isSome(){return this.tag}isNone(){return!this.tag}map(Je){return this.tag?jo.some(Je(this.value)):jo.none()}bind(Je){return this.tag?Je(this.value):jo.none()}exists(Je){return this.tag&&Je(this.value)}forall(Je){return!this.tag||Je(this.value)}filter(Je){return!this.tag||Je(this.value)?this:jo.none()}getOr(Je){return this.tag?this.value:Je}or(Je){return this.tag?this:Je}getOrThunk(Je){return this.tag?this.value:Je()}orThunk(Je){return this.tag?this:Je()}getOrDie(Je){if(this.tag)return this.value;throw new Error(Je??"Called getOrDie on None")}static from(Je){return ko(Je)?jo.some(Je):jo.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(Je){this.tag&&Je(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}jo.singletonNone=new jo(!1);const tn=(qe,Je,lt)=>{for(let Mt=0,ht=qe.length;Mt/\btox\-/.test(qe.className),Ue=(qe,Je)=>qe.dom.isChildOf(Je,qe.getBody()),it=qe=>Je=>ko(Je)&&qe.test(Je.nodeName),So=it(/^(OL|UL|DL)$/),co=it(/^(TH|TD)$/),he=(qe,Je,lt)=>tn(Je,Mt=>So(Mt)&&!To(Mt),co).exists(Mt=>Mt.nodeName===lt&&Ue(qe,Mt)),Dt=qe=>{const Je=qe.dom.getParent(qe.selection.getNode(),"ol,ul"),lt=qe.dom.getStyle(Je,"listStyleType");return jo.from(lt)},fo=(qe,Je)=>Je!==null&&!qe.dom.isEditable(Je),me=(qe,Je)=>{const lt=qe.dom.getParent(Je,"ol,ul,dl");return fo(qe,lt)&&qe.selection.isEditable()},Ze=(qe,Je)=>{const lt=qe.selection.getNode();return Je({parents:qe.dom.getParents(lt),element:lt}),qe.on("NodeChange",Je),()=>qe.off("NodeChange",Je)},de=qe=>qe.replace(/\-/g," ").replace(/\b\w/g,Je=>Je.toUpperCase()),rt=qe=>jt(qe)||qe==="default"?"":qe,Yo=(qe,Je)=>lt=>{const Mt=(Rt,uo)=>{const Bt=Rt.selection.getStart(!0);lt.setActive(he(Rt,uo,Je)),lt.setEnabled(!me(Rt,Bt)&&Rt.selection.isEditable())};return Ze(qe,Rt=>Mt(qe,Rt.parents))},$t=(qe,Je,lt,Mt,ht,Rt)=>{qe.ui.registry.addSplitButton(Je,{tooltip:lt,icon:ht==="OL"?"ordered-list":"unordered-list",presets:"listpreview",columns:3,fetch:uo=>{const Bt=Mo.map(Rt,V=>{const dt=ht==="OL"?"num":"bull",Ie=V==="disc"||V==="decimal"?"default":V,Co=rt(V),Pt=de(V);return{type:"choiceitem",value:Co,icon:"list-"+dt+"-"+Ie,text:Pt}});uo(Bt)},onAction:()=>qe.execCommand(Mt),onItemAction:(uo,Bt)=>{Ko(qe,ht,Bt)},select:uo=>Dt(qe).map(V=>uo===V).getOr(!1),onSetup:Yo(qe,ht)})},gn=(qe,Je,lt,Mt,ht,Rt)=>{qe.ui.registry.addToggleButton(Je,{active:!1,tooltip:lt,icon:ht==="OL"?"ordered-list":"unordered-list",onSetup:Yo(qe,ht),onAction:()=>qe.queryCommandState(Mt)||Rt===""?qe.execCommand(Mt):Ko(qe,ht,Rt)})},Bo=(qe,Je,lt,Mt,ht,Rt)=>{Rt.length>1?$t(qe,Je,lt,Mt,ht,Rt):gn(qe,Je,lt,Mt,ht,rt(Rt[0]))},Ct=qe=>{Bo(qe,"numlist","Numbered list","InsertOrderedList","OL",io(qe)),Bo(qe,"bullist","Bullet list","InsertUnorderedList","UL",Po(qe))};var R=()=>{xo.add("advlist",qe=>{qe.hasPlugin("lists")?(Qo(qe),Ct(qe),Io(qe)):console.error("Please use the Lists plugin together with the Advanced List plugin.")})};R()})();(function(){var xo=tinymce.util.Tools.resolve("tinymce.PluginManager"),Ko=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),Io=tinymce.util.Tools.resolve("tinymce.util.Tools");const on=qe=>Je=>Je.options.get(qe),Qo=qe=>{const Je=qe.options.register;Je("allow_html_in_named_anchor",{processor:"boolean",default:!1})},io=on("allow_html_in_named_anchor"),Po="a:not([href])",jt=qe=>!qe,ko=qe=>qe.getAttribute("id")||qe.getAttribute("name")||"",Mo=qe=>qe.nodeName.toLowerCase()==="a",jo=qe=>Mo(qe)&&!qe.getAttribute("href")&&ko(qe)!=="",tn=qe=>jo(qe)&&!qe.firstChild,To=qe=>{const Je=qe.dom;Ko(Je).walk(qe.selection.getRng(),lt=>{Io.each(lt,Mt=>{tn(Mt)&&Je.remove(Mt,!1)})})},Ue=qe=>/^[A-Za-z][A-Za-z0-9\-:._]*$/.test(qe),it=qe=>qe.dom.getParent(qe.selection.getStart(),Po),So=qe=>{const Je=it(qe);return Je?ko(Je):""},co=(qe,Je)=>{qe.undoManager.transact(()=>{io(qe)||qe.selection.collapse(!0),qe.selection.isCollapsed()?qe.insertContent(qe.dom.createHTML("a",{id:Je})):(To(qe),qe.formatter.remove("namedAnchor",void 0,void 0,!0),qe.formatter.apply("namedAnchor",{value:Je}),qe.addVisual())})},he=(qe,Je,lt)=>{lt.removeAttribute("name"),lt.id=Je,qe.addVisual(),qe.undoManager.add()},Dt=(qe,Je)=>{const lt=it(qe);lt?he(qe,Je,lt):co(qe,Je),qe.focus()},fo=(qe,Je)=>Ue(Je)?(Dt(qe,Je),!0):(qe.windowManager.alert("ID should start with a letter, followed only by letters, numbers, dashes, dots, colons or underscores."),!1),me=qe=>{const Je=So(qe);qe.windowManager.open({title:"Anchor",size:"normal",body:{type:"panel",items:[{name:"id",type:"input",label:"ID",placeholder:"example"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:{id:Je},onSubmit:lt=>{fo(qe,lt.getData().id)&<.close()}})},Ze=qe=>{qe.addCommand("mceAnchor",()=>{me(qe)})},de=qe=>jt(qe.attr("href"))&&!jt(qe.attr("id")||qe.attr("name")),rt=qe=>de(qe)&&!qe.firstChild,Yo=qe=>Je=>{for(let lt=0;lt{qe.on("PreInit",()=>{qe.parser.addNodeFilter("a",Yo("false")),qe.serializer.addNodeFilter("a",Yo(null))})},gn=qe=>{qe.formatter.register("namedAnchor",{inline:"a",selector:Po,remove:"all",split:!0,deep:!0,attributes:{id:"%value"},onmatch:(Je,lt,Mt)=>jo(Je)})},Bo=qe=>Je=>{const lt=()=>{Je.setEnabled(qe.selection.isEditable())};return qe.on("NodeChange",lt),lt(),()=>{qe.off("NodeChange",lt)}},Ct=qe=>{const Je=()=>qe.execCommand("mceAnchor");qe.ui.registry.addToggleButton("anchor",{icon:"bookmark",tooltip:"Anchor",onAction:Je,onSetup:lt=>{const Mt=qe.selection.selectorChangedWithUnbind("a:not([href])",lt.setActive).unbind,ht=Bo(qe)(lt);return()=>{Mt(),ht()}}}),qe.ui.registry.addMenuItem("anchor",{icon:"bookmark",text:"Anchor...",onAction:Je,onSetup:Bo(qe)})};var R=()=>{xo.add("anchor",qe=>{Qo(qe),$t(qe),Ze(qe),Ct(qe),qe.on("PreInit",()=>{gn(qe)})})};R()})();(function(){var xo=tinymce.util.Tools.resolve("tinymce.PluginManager");const Ko=()=>/(?:[A-Za-z][A-Za-z\d.+-]{0,14}:\/\/(?:[-.~*+=!&;:'%@?^${}(),\w]+@)?|www\.|[-;:&=+$,.\w]+@)[A-Za-z\d-]+(?:\.[A-Za-z\d-]+)*(?::\d+)?(?:\/(?:[-.~*+=!;:'%@$(),\/\w]*[-~*+=%@$()\/\w])?)?(?:\?(?:[-.~*+=!&;:'%@?^${}(),\/\w]+))?(?:#(?:[-.~*+=!&;:'%@?^${}(),\/\w]+))?/g,Io=Ie=>Co=>Co.options.get(Ie),on=Ie=>{const Co=Ie.options.register;Co("autolink_pattern",{processor:"regexp",default:new RegExp("^"+Ko().source+"$","i")}),Co("link_default_target",{processor:"string"}),Co("link_default_protocol",{processor:"string",default:"https"})},Qo=Io("autolink_pattern"),io=Io("link_default_target"),Po=Io("link_default_protocol"),jt=Io("allow_unsafe_link_target"),ko=(Ie,Co,Pt)=>{var lo;return Pt(Ie,Co.prototype)?!0:((lo=Ie.constructor)===null||lo===void 0?void 0:lo.name)===Co.name},Mo=Ie=>{const Co=typeof Ie;return Ie===null?"null":Co==="object"&&Array.isArray(Ie)?"array":Co==="object"&&ko(Ie,String,(Pt,lo)=>lo.isPrototypeOf(Pt))?"string":Co},jo=Ie=>Co=>Mo(Co)===Ie,tn=Ie=>Co=>Ie===Co,To=jo("string"),Ue=tn(void 0),it=Ie=>Ie==null,So=Ie=>!it(Ie),co=Ie=>Co=>!Ie(Co),he=Object.hasOwnProperty,Dt=(Ie,Co)=>he.call(Ie,Co),fo=(Ie,Co,Pt)=>Co===""||Ie.length>=Co.length&&Ie.substr(Pt,Pt+Co.length)===Co,me=(Ie,Co,Pt=0,lo)=>{const zo=Ie.indexOf(Co,Pt);return zo!==-1?Ue(lo)?!0:zo+Co.length<=lo:!1},Ze=(Ie,Co)=>fo(Ie,Co,0),de="\uFEFF",rt=Ie=>Ie===de,Yo=Ie=>Ie.replace(/\uFEFF/g,"");var $t=tinymce.util.Tools.resolve("tinymce.dom.TextSeeker");const gn=Ie=>Ie.nodeType===3,Bo=Ie=>Ie.nodeType===1,Ct=Ie=>/^[(\[{ \u00a0]$/.test(Ie),R=Ie=>/^([A-Za-z][A-Za-z\d.+-]*:\/\/)|mailto:/.test(Ie),qe=Ie=>/[?!,.;:]/.test(Ie),Je=(Ie,Co,Pt)=>{for(let lo=Co-1;lo>=0;lo--){const zo=Ie.charAt(lo);if(!rt(zo)&&Pt(zo))return lo}return-1},lt=(Ie,Co)=>{let Pt=Ie,lo=Co;for(;Bo(Pt)&&Pt.childNodes[lo];)Pt=Pt.childNodes[lo],lo=gn(Pt)?Pt.data.length:Pt.childNodes.length;return{container:Pt,offset:lo}},Mt=(Ie,Co)=>{var Pt;const lo=Ie.schema.getVoidElements(),zo=Qo(Ie),{dom:to,selection:Se}=Ie;if(to.getParent(Se.getNode(),"a[href]")!==null)return null;const $e=Se.getRng(),ct=$t(to,Ge=>to.isBlock(Ge)||Dt(lo,Ge.nodeName.toLowerCase())||to.getContentEditable(Ge)==="false"),{container:gt,offset:pe}=lt($e.endContainer,$e.endOffset),Oe=(Pt=to.getParent(gt,to.isBlock))!==null&&Pt!==void 0?Pt:to.getRoot(),We=ct.backwards(gt,pe+Co,(Ge,Gt)=>{const Vt=Ge.data,Xo=Je(Vt,Gt,co(Ct));return Xo===-1||qe(Vt[Xo])?Xo:Xo+1},Oe);if(!We)return null;let Fe=We.container;const ge=ct.backwards(We.container,We.offset,(Ge,Gt)=>{Fe=Ge;const Vt=Je(Ge.data,Gt,Ct);return Vt===-1?Vt:Vt+1},Oe),Me=to.createRng();ge?Me.setStart(ge.container,ge.offset):Me.setStart(Fe,0),Me.setEnd(We.container,We.offset);const ze=Yo(Me.toString()).match(zo);if(ze){let Ge=ze[0];return Ze(Ge,"www.")?Ge=Po(Ie)+"://"+Ge:me(Ge,"@")&&!R(Ge)&&(Ge="mailto:"+Ge),{rng:Me,url:Ge}}else return null},ht=(Ie,Co)=>{const{dom:Pt,selection:lo}=Ie,{rng:zo,url:to}=Co,Se=lo.getBookmark();lo.setRng(zo);const $e="createlink",ct={command:$e,ui:!1,value:to};if(!Ie.dispatch("BeforeExecCommand",ct).isDefaultPrevented()){Ie.getDoc().execCommand($e,!1,to),Ie.dispatch("ExecCommand",ct);const pe=io(Ie);if(To(pe)){const Oe=lo.getNode();Pt.setAttrib(Oe,"target",pe),pe==="_blank"&&!jt(Ie)&&Pt.setAttrib(Oe,"rel","noopener")}}lo.moveToBookmark(Se),Ie.nodeChanged()},Rt=Ie=>{const Co=Mt(Ie,-1);So(Co)&&ht(Ie,Co)},uo=Rt,Bt=Ie=>{const Co=Mt(Ie,0);So(Co)&&ht(Ie,Co)},V=Ie=>{Ie.on("keydown",Co=>{Co.keyCode===13&&!Co.isDefaultPrevented()&&Bt(Ie)}),Ie.on("keyup",Co=>{Co.keyCode===32?Rt(Ie):(Co.keyCode===48&&Co.shiftKey||Co.keyCode===221)&&uo(Ie)})};var dt=()=>{xo.add("autolink",Ie=>{on(Ie),V(Ie)})};dt()})();(function(){var xo=tinymce.util.Tools.resolve("tinymce.PluginManager");const Ko=(ht,Rt,uo)=>{var Bt;return uo(ht,Rt.prototype)?!0:((Bt=ht.constructor)===null||Bt===void 0?void 0:Bt.name)===Rt.name},Io=ht=>{const Rt=typeof ht;return ht===null?"null":Rt==="object"&&Array.isArray(ht)?"array":Rt==="object"&&Ko(ht,String,(uo,Bt)=>Bt.isPrototypeOf(uo))?"string":Rt},on=ht=>Rt=>Io(Rt)===ht,Qo=ht=>Rt=>ht===Rt,io=on("string"),Po=Qo(void 0);var jt=tinymce.util.Tools.resolve("tinymce.util.Delay"),ko=tinymce.util.Tools.resolve("tinymce.util.LocalStorage"),Mo=tinymce.util.Tools.resolve("tinymce.util.Tools");const jo=ht=>ht.dispatch("RestoreDraft"),tn=ht=>ht.dispatch("StoreDraft"),To=ht=>ht.dispatch("RemoveDraft"),Ue=ht=>{const Rt={s:1e3,m:6e4},uo=/^(\d+)([ms]?)$/.exec(ht);return(uo&&uo[2]?Rt[uo[2]]:1)*parseInt(ht,10)},it=ht=>Rt=>Rt.options.get(ht),So=ht=>{const Rt=ht.options.register,uo=Bt=>{const V=io(Bt);return V?{value:Ue(Bt),valid:V}:{valid:!1,message:"Must be a string."}};Rt("autosave_ask_before_unload",{processor:"boolean",default:!0}),Rt("autosave_prefix",{processor:"string",default:"tinymce-autosave-{path}{query}{hash}-{id}-"}),Rt("autosave_restore_when_empty",{processor:"boolean",default:!1}),Rt("autosave_interval",{processor:uo,default:"30s"}),Rt("autosave_retention",{processor:uo,default:"20m"})},co=it("autosave_ask_before_unload"),he=it("autosave_restore_when_empty"),Dt=it("autosave_interval"),fo=it("autosave_retention"),me=ht=>{const Rt=document.location;return ht.options.get("autosave_prefix").replace(/{path}/g,Rt.pathname).replace(/{query}/g,Rt.search).replace(/{hash}/g,Rt.hash).replace(/{id}/g,ht.id)},Ze=(ht,Rt)=>{if(Po(Rt))return ht.dom.isEmpty(ht.getBody());{const uo=Mo.trim(Rt);if(uo==="")return!0;{const Bt=new DOMParser().parseFromString(uo,"text/html");return ht.dom.isEmpty(Bt)}}},de=ht=>{var Rt;const uo=parseInt((Rt=ko.getItem(me(ht)+"time"))!==null&&Rt!==void 0?Rt:"0",10)||0;return new Date().getTime()-uo>fo(ht)?(rt(ht,!1),!1):!0},rt=(ht,Rt)=>{const uo=me(ht);ko.removeItem(uo+"draft"),ko.removeItem(uo+"time"),Rt!==!1&&To(ht)},Yo=ht=>{const Rt=me(ht);!Ze(ht)&&ht.isDirty()&&(ko.setItem(Rt+"draft",ht.getContent({format:"raw",no_events:!0})),ko.setItem(Rt+"time",new Date().getTime().toString()),tn(ht))},$t=ht=>{var Rt;const uo=me(ht);de(ht)&&(ht.setContent((Rt=ko.getItem(uo+"draft"))!==null&&Rt!==void 0?Rt:"",{format:"raw"}),jo(ht))},gn=ht=>{const Rt=Dt(ht);jt.setEditorInterval(ht,()=>{Yo(ht)},Rt)},Bo=ht=>{ht.undoManager.transact(()=>{$t(ht),rt(ht)}),ht.focus()},Ct=ht=>({hasDraft:()=>de(ht),storeDraft:()=>Yo(ht),restoreDraft:()=>$t(ht),removeDraft:Rt=>rt(ht,Rt),isEmpty:Rt=>Ze(ht,Rt)});var R=tinymce.util.Tools.resolve("tinymce.EditorManager");const qe=ht=>{ht.editorManager.on("BeforeUnload",Rt=>{let uo;Mo.each(R.get(),Bt=>{Bt.plugins.autosave&&Bt.plugins.autosave.storeDraft(),!uo&&Bt.isDirty()&&co(Bt)&&(uo=Bt.translate("You have unsaved changes are you sure you want to navigate away?"))}),uo&&(Rt.preventDefault(),Rt.returnValue=uo)})},Je=ht=>Rt=>{Rt.setEnabled(de(ht));const uo=()=>Rt.setEnabled(de(ht));return ht.on("StoreDraft RestoreDraft RemoveDraft",uo),()=>ht.off("StoreDraft RestoreDraft RemoveDraft",uo)},lt=ht=>{gn(ht);const Rt=()=>{Bo(ht)};ht.ui.registry.addButton("restoredraft",{tooltip:"Restore last draft",icon:"restore-draft",onAction:Rt,onSetup:Je(ht)}),ht.ui.registry.addMenuItem("restoredraft",{text:"Restore last draft",icon:"restore-draft",onAction:Rt,onSetup:Je(ht)})};var Mt=()=>{xo.add("autosave",ht=>(So(ht),qe(ht),lt(ht),ht.on("init",()=>{he(ht)&&ht.dom.isEmpty(ht.getBody())&&$t(ht)}),Ct(ht)))};Mt()})();(function(){var xo=tinymce.util.Tools.resolve("tinymce.PluginManager");const Ko=(pe,Oe)=>pe.dispatch("insertCustomChar",{chr:Oe}),Io=(pe,Oe)=>{const We=Ko(pe,Oe).chr;pe.execCommand("mceInsertContent",!1,We)},on=(pe,Oe,We)=>{var Fe;return We(pe,Oe.prototype)?!0:((Fe=pe.constructor)===null||Fe===void 0?void 0:Fe.name)===Oe.name},Qo=pe=>{const Oe=typeof pe;return pe===null?"null":Oe==="object"&&Array.isArray(pe)?"array":Oe==="object"&&on(pe,String,(We,Fe)=>Fe.isPrototypeOf(We))?"string":Oe},io=pe=>Oe=>Qo(Oe)===pe,Po=pe=>Oe=>typeof Oe===pe,jt=pe=>Oe=>pe===Oe,ko=io("array"),Mo=jt(null),jo=jt(void 0),tn=pe=>pe==null,To=pe=>!tn(pe),Ue=Po("function"),So=(pe=>()=>pe)(!1);class co{constructor(Oe,We){this.tag=Oe,this.value=We}static some(Oe){return new co(!0,Oe)}static none(){return co.singletonNone}fold(Oe,We){return this.tag?We(this.value):Oe()}isSome(){return this.tag}isNone(){return!this.tag}map(Oe){return this.tag?co.some(Oe(this.value)):co.none()}bind(Oe){return this.tag?Oe(this.value):co.none()}exists(Oe){return this.tag&&Oe(this.value)}forall(Oe){return!this.tag||Oe(this.value)}filter(Oe){return!this.tag||Oe(this.value)?this:co.none()}getOr(Oe){return this.tag?this.value:Oe}or(Oe){return this.tag?this:Oe}getOrThunk(Oe){return this.tag?this.value:Oe()}orThunk(Oe){return this.tag?this:Oe()}getOrDie(Oe){if(this.tag)return this.value;throw new Error(Oe??"Called getOrDie on None")}static from(Oe){return To(Oe)?co.some(Oe):co.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(Oe){this.tag&&Oe(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}co.singletonNone=new co(!1);const he=Array.prototype.push,Dt=(pe,Oe)=>{const We=pe.length,Fe=new Array(We);for(let ge=0;ge{for(let We=0,Fe=pe.length;We{for(let Fe=0,ge=pe.length;Feme(pe,Oe,So),de=pe=>{const Oe=[];for(let We=0,Fe=pe.length;Wede(Dt(pe,Oe));var Yo=tinymce.util.Tools.resolve("tinymce.util.Tools");const $t=pe=>Oe=>Oe.options.get(pe),gn=pe=>{const Oe=pe.options.register,We=Fe=>Ue(Fe)||ko(Fe);Oe("charmap",{processor:We}),Oe("charmap_append",{processor:We})},Bo=$t("charmap"),Ct=$t("charmap_append"),R=Yo.isArray,qe="User Defined",Je=()=>[{name:"Currency",characters:[[36,"dollar sign"],[162,"cent sign"],[8364,"euro sign"],[163,"pound sign"],[165,"yen sign"],[164,"currency sign"],[8352,"euro-currency sign"],[8353,"colon sign"],[8354,"cruzeiro sign"],[8355,"french franc sign"],[8356,"lira sign"],[8357,"mill sign"],[8358,"naira sign"],[8359,"peseta sign"],[8360,"rupee sign"],[8361,"won sign"],[8362,"new sheqel sign"],[8363,"dong sign"],[8365,"kip sign"],[8366,"tugrik sign"],[8367,"drachma sign"],[8368,"german penny symbol"],[8369,"peso sign"],[8370,"guarani sign"],[8371,"austral sign"],[8372,"hryvnia sign"],[8373,"cedi sign"],[8374,"livre tournois sign"],[8375,"spesmilo sign"],[8376,"tenge sign"],[8377,"indian rupee sign"],[8378,"turkish lira sign"],[8379,"nordic mark sign"],[8380,"manat sign"],[8381,"ruble sign"],[20870,"yen character"],[20803,"yuan character"],[22291,"yuan character, in hong kong and taiwan"],[22278,"yen/yuan character variant one"]]},{name:"Text",characters:[[169,"copyright sign"],[174,"registered sign"],[8482,"trade mark sign"],[8240,"per mille sign"],[181,"micro sign"],[183,"middle dot"],[8226,"bullet"],[8230,"three dot leader"],[8242,"minutes / feet"],[8243,"seconds / inches"],[167,"section sign"],[182,"paragraph sign"],[223,"sharp s / ess-zed"]]},{name:"Quotations",characters:[[8249,"single left-pointing angle quotation mark"],[8250,"single right-pointing angle quotation mark"],[171,"left pointing guillemet"],[187,"right pointing guillemet"],[8216,"left single quotation mark"],[8217,"right single quotation mark"],[8220,"left double quotation mark"],[8221,"right double quotation mark"],[8218,"single low-9 quotation mark"],[8222,"double low-9 quotation mark"],[60,"less-than sign"],[62,"greater-than sign"],[8804,"less-than or equal to"],[8805,"greater-than or equal to"],[8211,"en dash"],[8212,"em dash"],[175,"macron"],[8254,"overline"],[164,"currency sign"],[166,"broken bar"],[168,"diaeresis"],[161,"inverted exclamation mark"],[191,"turned question mark"],[710,"circumflex accent"],[732,"small tilde"],[176,"degree sign"],[8722,"minus sign"],[177,"plus-minus sign"],[247,"division sign"],[8260,"fraction slash"],[215,"multiplication sign"],[185,"superscript one"],[178,"superscript two"],[179,"superscript three"],[188,"fraction one quarter"],[189,"fraction one half"],[190,"fraction three quarters"]]},{name:"Mathematical",characters:[[402,"function / florin"],[8747,"integral"],[8721,"n-ary sumation"],[8734,"infinity"],[8730,"square root"],[8764,"similar to"],[8773,"approximately equal to"],[8776,"almost equal to"],[8800,"not equal to"],[8801,"identical to"],[8712,"element of"],[8713,"not an element of"],[8715,"contains as member"],[8719,"n-ary product"],[8743,"logical and"],[8744,"logical or"],[172,"not sign"],[8745,"intersection"],[8746,"union"],[8706,"partial differential"],[8704,"for all"],[8707,"there exists"],[8709,"diameter"],[8711,"backward difference"],[8727,"asterisk operator"],[8733,"proportional to"],[8736,"angle"]]},{name:"Extended Latin",characters:[[192,"A - grave"],[193,"A - acute"],[194,"A - circumflex"],[195,"A - tilde"],[196,"A - diaeresis"],[197,"A - ring above"],[256,"A - macron"],[198,"ligature AE"],[199,"C - cedilla"],[200,"E - grave"],[201,"E - acute"],[202,"E - circumflex"],[203,"E - diaeresis"],[274,"E - macron"],[204,"I - grave"],[205,"I - acute"],[206,"I - circumflex"],[207,"I - diaeresis"],[298,"I - macron"],[208,"ETH"],[209,"N - tilde"],[210,"O - grave"],[211,"O - acute"],[212,"O - circumflex"],[213,"O - tilde"],[214,"O - diaeresis"],[216,"O - slash"],[332,"O - macron"],[338,"ligature OE"],[352,"S - caron"],[217,"U - grave"],[218,"U - acute"],[219,"U - circumflex"],[220,"U - diaeresis"],[362,"U - macron"],[221,"Y - acute"],[376,"Y - diaeresis"],[562,"Y - macron"],[222,"THORN"],[224,"a - grave"],[225,"a - acute"],[226,"a - circumflex"],[227,"a - tilde"],[228,"a - diaeresis"],[229,"a - ring above"],[257,"a - macron"],[230,"ligature ae"],[231,"c - cedilla"],[232,"e - grave"],[233,"e - acute"],[234,"e - circumflex"],[235,"e - diaeresis"],[275,"e - macron"],[236,"i - grave"],[237,"i - acute"],[238,"i - circumflex"],[239,"i - diaeresis"],[299,"i - macron"],[240,"eth"],[241,"n - tilde"],[242,"o - grave"],[243,"o - acute"],[244,"o - circumflex"],[245,"o - tilde"],[246,"o - diaeresis"],[248,"o slash"],[333,"o macron"],[339,"ligature oe"],[353,"s - caron"],[249,"u - grave"],[250,"u - acute"],[251,"u - circumflex"],[252,"u - diaeresis"],[363,"u - macron"],[253,"y - acute"],[254,"thorn"],[255,"y - diaeresis"],[563,"y - macron"],[913,"Alpha"],[914,"Beta"],[915,"Gamma"],[916,"Delta"],[917,"Epsilon"],[918,"Zeta"],[919,"Eta"],[920,"Theta"],[921,"Iota"],[922,"Kappa"],[923,"Lambda"],[924,"Mu"],[925,"Nu"],[926,"Xi"],[927,"Omicron"],[928,"Pi"],[929,"Rho"],[931,"Sigma"],[932,"Tau"],[933,"Upsilon"],[934,"Phi"],[935,"Chi"],[936,"Psi"],[937,"Omega"],[945,"alpha"],[946,"beta"],[947,"gamma"],[948,"delta"],[949,"epsilon"],[950,"zeta"],[951,"eta"],[952,"theta"],[953,"iota"],[954,"kappa"],[955,"lambda"],[956,"mu"],[957,"nu"],[958,"xi"],[959,"omicron"],[960,"pi"],[961,"rho"],[962,"final sigma"],[963,"sigma"],[964,"tau"],[965,"upsilon"],[966,"phi"],[967,"chi"],[968,"psi"],[969,"omega"]]},{name:"Symbols",characters:[[8501,"alef symbol"],[982,"pi symbol"],[8476,"real part symbol"],[978,"upsilon - hook symbol"],[8472,"Weierstrass p"],[8465,"imaginary part"]]},{name:"Arrows",characters:[[8592,"leftwards arrow"],[8593,"upwards arrow"],[8594,"rightwards arrow"],[8595,"downwards arrow"],[8596,"left right arrow"],[8629,"carriage return"],[8656,"leftwards double arrow"],[8657,"upwards double arrow"],[8658,"rightwards double arrow"],[8659,"downwards double arrow"],[8660,"left right double arrow"],[8756,"therefore"],[8834,"subset of"],[8835,"superset of"],[8836,"not a subset of"],[8838,"subset of or equal to"],[8839,"superset of or equal to"],[8853,"circled plus"],[8855,"circled times"],[8869,"perpendicular"],[8901,"dot operator"],[8968,"left ceiling"],[8969,"right ceiling"],[8970,"left floor"],[8971,"right floor"],[9001,"left-pointing angle bracket"],[9002,"right-pointing angle bracket"],[9674,"lozenge"],[9824,"black spade suit"],[9827,"black club suit"],[9829,"black heart suit"],[9830,"black diamond suit"],[8194,"en space"],[8195,"em space"],[8201,"thin space"],[8204,"zero width non-joiner"],[8205,"zero width joiner"],[8206,"left-to-right mark"],[8207,"right-to-left mark"]]}],lt=pe=>Yo.grep(pe,Oe=>R(Oe)&&Oe.length===2),Mt=pe=>R(pe)?lt(pe):typeof pe=="function"?pe():[],ht=(pe,Oe)=>{const We=Bo(pe);We&&(Oe=[{name:qe,characters:Mt(We)}]);const Fe=Ct(pe);if(Fe){const ge=Yo.grep(Oe,Me=>Me.name===qe);return ge.length?(ge[0].characters=[...ge[0].characters,...Mt(Fe)],Oe):Oe.concat({name:qe,characters:Mt(Fe)})}return Oe},Rt=pe=>{const Oe=ht(pe,Je());return Oe.length>1?[{name:"All",characters:rt(Oe,We=>We.characters)}].concat(Oe):Oe},uo=pe=>({getCharMap:()=>Rt(pe),insertChar:Fe=>{Io(pe,Fe)}}),Bt=pe=>{let Oe=pe;return{get:()=>Oe,set:ge=>{Oe=ge}}},V=(pe,Oe)=>{let We=null;const Fe=()=>{Mo(We)||(clearTimeout(We),We=null)};return{cancel:Fe,throttle:(...Me)=>{Fe(),We=setTimeout(()=>{We=null,pe.apply(null,Me)},Oe)}}},dt=(pe,Oe,We=0,Fe)=>{const ge=pe.indexOf(Oe,We);return ge!==-1?jo(Fe)?!0:ge+Oe.length<=Fe:!1},Ie=String.fromCodePoint,Co=(pe,Oe,We)=>dt(Ie(pe).toLowerCase(),We)?!0:dt(Oe.toLowerCase(),We)||dt(Oe.toLowerCase().replace(/\s+/g,""),We),Pt=(pe,Oe)=>{const We=[],Fe=Oe.toLowerCase();return fo(pe.characters,ge=>{Co(ge[0],ge[1],Fe)&&We.push(ge)}),Dt(We,ge=>({text:ge[1],value:Ie(ge[0]),icon:Ie(ge[0])}))},lo="pattern",zo=(pe,Oe)=>{const We=()=>[{label:"Search",type:"input",name:lo},{type:"collection",name:"results"}],Fe=()=>Dt(Oe,Gn=>({title:Gn.name,name:Gn.name,items:We()})),ge=()=>({type:"panel",items:We()}),Me=()=>({type:"tabpanel",tabs:Fe()}),at=Oe.length===1?Bt(qe):Bt("All"),ze=(Gn,Pn)=>{Ze(Oe,zn=>zn.name===at.get()).each(zn=>{const ut=Pt(zn,Pn);Gn.setData({results:ut})})},Gt=V(Gn=>{const Pn=Gn.getData().pattern;ze(Gn,Pn)},40),Vt=Oe.length===1?ge():Me(),Xo={pattern:"",results:Pt(Oe[0],"")},$o={title:"Special Character",size:"normal",body:Vt,buttons:[{type:"cancel",name:"close",text:"Close",primary:!0}],initialData:Xo,onAction:(Gn,Pn)=>{Pn.name==="results"&&(Io(pe,Pn.value),Gn.close())},onTabChange:(Gn,Pn)=>{at.set(Pn.newTabName),Gt.throttle(Gn)},onChange:(Gn,Pn)=>{Pn.name===lo&&Gt.throttle(Gn)}};pe.windowManager.open($o).focus(lo)},to=(pe,Oe)=>{pe.addCommand("mceShowCharmap",()=>{zo(pe,Oe)})},Se=(pe,Oe)=>{pe.ui.registry.addAutocompleter("charmap",{trigger:":",columns:"auto",minChars:2,fetch:(We,Fe)=>new Promise((ge,Me)=>{ge(Pt(Oe,We))}),onAction:(We,Fe,ge)=>{pe.selection.setRng(Fe),pe.insertContent(ge),We.hide()}})},$e=pe=>Oe=>{const We=()=>{Oe.setEnabled(pe.selection.isEditable())};return pe.on("NodeChange",We),We(),()=>{pe.off("NodeChange",We)}},ct=pe=>{const Oe=()=>pe.execCommand("mceShowCharmap");pe.ui.registry.addButton("charmap",{icon:"insert-character",tooltip:"Special character",onAction:Oe,onSetup:$e(pe)}),pe.ui.registry.addMenuItem("charmap",{icon:"insert-character",text:"Special character...",onAction:Oe,onSetup:$e(pe)})};var gt=()=>{xo.add("charmap",pe=>{gn(pe);const Oe=Rt(pe);return to(pe,Oe),ct(pe),Se(pe,Oe[0]),uo(pe)})};gt()})();(function(){var xo=tinymce.util.Tools.resolve("tinymce.PluginManager");const Ko=(jt,ko)=>{jt.focus(),jt.undoManager.transact(()=>{jt.setContent(ko)}),jt.selection.setCursorLocation(),jt.nodeChanged()},Io=jt=>jt.getContent({source_view:!0}),on=jt=>{const ko=Io(jt);jt.windowManager.open({title:"Source Code",size:"large",body:{type:"panel",items:[{type:"textarea",name:"code"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:{code:ko},onSubmit:Mo=>{Ko(jt,Mo.getData().code),Mo.close()}})},Qo=jt=>{jt.addCommand("mceCodeEditor",()=>{on(jt)})},io=jt=>{const ko=()=>jt.execCommand("mceCodeEditor");jt.ui.registry.addButton("code",{icon:"sourcecode",tooltip:"Source code",onAction:ko}),jt.ui.registry.addMenuItem("code",{icon:"sourcecode",text:"Source code",onAction:ko})};var Po=()=>{xo.add("code",jt=>(Qo(jt),io(jt),{}))};Po()})();(function(){var xo=tinymce.util.Tools.resolve("tinymce.PluginManager");const Ko=ge=>Me=>ge===Me,Io=Ko(null),on=Ko(void 0),Qo=ge=>ge==null,io=ge=>!Qo(ge),Po=()=>{},ko=(ge=>()=>ge)(!1);class Mo{constructor(Me,at){this.tag=Me,this.value=at}static some(Me){return new Mo(!0,Me)}static none(){return Mo.singletonNone}fold(Me,at){return this.tag?at(this.value):Me()}isSome(){return this.tag}isNone(){return!this.tag}map(Me){return this.tag?Mo.some(Me(this.value)):Mo.none()}bind(Me){return this.tag?Me(this.value):Mo.none()}exists(Me){return this.tag&&Me(this.value)}forall(Me){return!this.tag||Me(this.value)}filter(Me){return!this.tag||Me(this.value)?this:Mo.none()}getOr(Me){return this.tag?this.value:Me}or(Me){return this.tag?this:Me}getOrThunk(Me){return this.tag?this.value:Me()}orThunk(Me){return this.tag?this:Me()}getOrDie(Me){if(this.tag)return this.value;throw new Error(Me??"Called getOrDie on None")}static from(Me){return io(Me)?Mo.some(Me):Mo.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(Me){this.tag&&Me(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}Mo.singletonNone=new Mo(!1);const jo=(ge,Me)=>{for(let at=0,ze=ge.length;at{const at=ge.length,ze=new Array(at);for(let Ge=0;Ge{for(let at=0,ze=ge.length;at{let Me=ge;return{get:()=>Me,set:Ge=>{Me=Ge}}},it=(ge,Me)=>{let at=null;const ze=()=>{Io(at)||(clearTimeout(at),at=null)};return{cancel:ze,throttle:(...Gt)=>{ze(),at=setTimeout(()=>{at=null,ge.apply(null,Gt)},Me)}}},So=(ge,Me)=>{ge.insertContent(Me)},co=Object.keys,he=Object.hasOwnProperty,Dt=(ge,Me)=>{const at=co(ge);for(let ze=0,Ge=at.length;zeme(ge,(at,ze)=>({k:ze,v:Me(at,ze)})),me=(ge,Me)=>{const at={};return Dt(ge,(ze,Ge)=>{const Gt=Me(ze,Ge);at[Gt.k]=Gt.v}),at},Ze=(ge,Me)=>he.call(ge,Me),Yo=(ge=>(...Me)=>{if(Me.length===0)throw new Error("Can't merge zero objects");const at={};for(let ze=0;zeMe),$t=ge=>{const Me=Ue(Mo.none()),at=()=>Me.get().each(ge);return{clear:()=>{at(),Me.set(Mo.none())},isSet:()=>Me.get().isSome(),get:()=>Me.get(),set:Xo=>{at(),Me.set(Mo.some(Xo))}}},gn=()=>{const ge=$t(Po);return{...ge,on:at=>ge.get().each(at)}},Bo=(ge,Me,at)=>Me===""||ge.length>=Me.length&&ge.substr(at,at+Me.length)===Me,Ct=(ge,Me,at=0,ze)=>{const Ge=ge.indexOf(Me,at);return Ge!==-1?on(ze)?!0:Ge+Me.length<=ze:!1},R=(ge,Me)=>Bo(ge,Me,0);var qe=tinymce.util.Tools.resolve("tinymce.Resource");const Je="tinymce.plugins.emoticons",lt=ge=>Me=>Me.options.get(ge),Mt=(ge,Me)=>{const at=ge.options.register;at("emoticons_database",{processor:"string",default:"emojis"}),at("emoticons_database_url",{processor:"string",default:`${Me}/js/${ht(ge)}${ge.suffix}.js`}),at("emoticons_database_id",{processor:"string",default:Je}),at("emoticons_append",{processor:"object",default:{}}),at("emoticons_images_url",{processor:"string",default:"https://twemoji.maxcdn.com/v/13.0.1/72x72/"})},ht=lt("emoticons_database"),Rt=lt("emoticons_database_url"),uo=lt("emoticons_database_id"),Bt=lt("emoticons_append"),V=lt("emoticons_images_url"),dt="All",Ie={symbols:"Symbols",people:"People",animals_and_nature:"Animals and Nature",food_and_drink:"Food and Drink",activity:"Activity",travel_and_places:"Travel and Places",objects:"Objects",flags:"Flags",user:"User Defined"},Co=(ge,Me)=>Ze(ge,Me)?ge[Me]:Me,Pt=ge=>{const Me=Bt(ge);return fo(Me,at=>({keywords:[],category:"user",...at}))},lo=(ge,Me,at)=>{const ze=gn(),Ge=gn(),Gt=V(ge),Vt=ut=>R(ut.char,"`src="${Gt}${Ft}"`):ut.char,Xo=ut=>{const zt={},Ft=[];Dt(ut,(vo,Xt)=>{const Vo={title:Xt,keywords:vo.keywords,char:Vt(vo),category:Co(Ie,vo.category)},$n=zt[Vo.category]!==void 0?zt[Vo.category]:[];zt[Vo.category]=$n.concat([Vo]),Ft.push(Vo)}),ze.set(zt),Ge.set(Ft)};ge.on("init",()=>{qe.load(at,Me).then(ut=>{const zt=Pt(ge);Xo(Yo(ut,zt))},ut=>{`${ut}`,ze.set({}),Ge.set([])})});const $o=ut=>ut===dt?Zo():ze.get().bind(zt=>Mo.from(zt[ut])).getOr([]),Zo=()=>Ge.get().getOr([]),Gn=()=>[dt].concat(co(ze.get().getOr({}))),Pn=()=>zn()?Promise.resolve(!0):new Promise((ut,zt)=>{let Ft=15;const vo=setInterval(()=>{zn()?(clearInterval(vo),ut(!0)):(Ft--,Ft<0&&(""+Me,clearInterval(vo),zt(!1)))},100)}),zn=()=>ze.isSet()&&Ge.isSet();return{listCategories:Gn,hasLoaded:zn,waitForLoad:Pn,listAll:Zo,listCategory:$o}},zo=(ge,Me)=>Ct(ge.title.toLowerCase(),Me)||jo(ge.keywords,at=>Ct(at.toLowerCase(),Me)),to=(ge,Me,at)=>{const ze=[],Ge=Me.toLowerCase(),Gt=at.fold(()=>ko,Vt=>Xo=>Xo>=Vt);for(let Vt=0;Vt{const at={pattern:"",results:to(Me.listAll(),"",Mo.some(300))},ze=Ue(dt),Ge=Gn=>{const Pn=Gn.getData(),zn=ze.get(),ut=Me.listCategory(zn),zt=to(ut,Pn[Se],zn===dt?Mo.some(300):Mo.none());Gn.setData({results:zt})},Gt=it(Gn=>{Ge(Gn)},200),Vt={label:"Search",type:"input",name:Se},Xo={type:"collection",name:"results"},$o=()=>({title:"Emojis",size:"normal",body:{type:"tabpanel",tabs:tn(Me.listCategories(),Pn=>({title:Pn,name:Pn,items:[Vt,Xo]}))},initialData:at,onTabChange:(Pn,zn)=>{ze.set(zn.newTabName),Gt.throttle(Pn)},onChange:Gt.throttle,onAction:(Pn,zn)=>{zn.name==="results"&&(So(ge,zn.value),Pn.close())},buttons:[{type:"cancel",text:"Close",primary:!0}]}),Zo=ge.windowManager.open($o());Zo.focus(Se),Me.hasLoaded()||(Zo.block("Loading emojis..."),Me.waitForLoad().then(()=>{Zo.redial($o()),Gt.throttle(Zo),Zo.focus(Se),Zo.unblock()}).catch(Gn=>{Zo.redial({title:"Emojis",body:{type:"panel",items:[{type:"alertbanner",level:"error",icon:"warning",text:"Could not load emojis"}]},buttons:[{type:"cancel",text:"Close",primary:!0}],initialData:{pattern:"",results:[]}}),Zo.focus(Se),Zo.unblock()}))},ct=(ge,Me)=>{ge.addCommand("mceEmoticons",()=>$e(ge,Me))},gt=ge=>{ge.on("PreInit",()=>{ge.parser.addAttributeFilter("data-emoticon",Me=>{To(Me,at=>{at.attr("data-mce-resize","false"),at.attr("data-mce-placeholder","1")})})})},pe=(ge,Me)=>{ge.ui.registry.addAutocompleter("emoticons",{trigger:":",columns:"auto",minChars:2,fetch:(at,ze)=>Me.waitForLoad().then(()=>{const Ge=Me.listAll();return to(Ge,at,Mo.some(ze))}),onAction:(at,ze,Ge)=>{ge.selection.setRng(ze),ge.insertContent(Ge),at.hide()}})},Oe=ge=>Me=>{const at=()=>{Me.setEnabled(ge.selection.isEditable())};return ge.on("NodeChange",at),at(),()=>{ge.off("NodeChange",at)}},We=ge=>{const Me=()=>ge.execCommand("mceEmoticons");ge.ui.registry.addButton("emoticons",{tooltip:"Emojis",icon:"emoji",onAction:Me,onSetup:Oe(ge)}),ge.ui.registry.addMenuItem("emoticons",{text:"Emojis...",icon:"emoji",onAction:Me,onSetup:Oe(ge)})};var Fe=()=>{xo.add("emoticons",(ge,Me)=>{Mt(ge,Me);const at=Rt(ge),ze=uo(ge),Ge=lo(ge,at,ze);ct(ge,Ge),We(ge),pe(ge,Ge),gt(ge)})};Fe()})();window.tinymce.Resource.add("tinymce.plugins.emoticons",{grinning:{keywords:["face","smile","happy","joy",":D","grin"],char:"😀",fitzpatrick_scale:!1,category:"people"},grimacing:{keywords:["face","grimace","teeth"],char:"😬",fitzpatrick_scale:!1,category:"people"},grin:{keywords:["face","happy","smile","joy","kawaii"],char:"😁",fitzpatrick_scale:!1,category:"people"},joy:{keywords:["face","cry","tears","weep","happy","happytears","haha"],char:"😂",fitzpatrick_scale:!1,category:"people"},rofl:{keywords:["face","rolling","floor","laughing","lol","haha"],char:"🤣",fitzpatrick_scale:!1,category:"people"},partying:{keywords:["face","celebration","woohoo"],char:"🥳",fitzpatrick_scale:!1,category:"people"},smiley:{keywords:["face","happy","joy","haha",":D",":)","smile","funny"],char:"😃",fitzpatrick_scale:!1,category:"people"},smile:{keywords:["face","happy","joy","funny","haha","laugh","like",":D",":)"],char:"😄",fitzpatrick_scale:!1,category:"people"},sweat_smile:{keywords:["face","hot","happy","laugh","sweat","smile","relief"],char:"😅",fitzpatrick_scale:!1,category:"people"},laughing:{keywords:["happy","joy","lol","satisfied","haha","face","glad","XD","laugh"],char:"😆",fitzpatrick_scale:!1,category:"people"},innocent:{keywords:["face","angel","heaven","halo"],char:"😇",fitzpatrick_scale:!1,category:"people"},wink:{keywords:["face","happy","mischievous","secret",";)","smile","eye"],char:"😉",fitzpatrick_scale:!1,category:"people"},blush:{keywords:["face","smile","happy","flushed","crush","embarrassed","shy","joy"],char:"😊",fitzpatrick_scale:!1,category:"people"},slightly_smiling_face:{keywords:["face","smile"],char:"🙂",fitzpatrick_scale:!1,category:"people"},upside_down_face:{keywords:["face","flipped","silly","smile"],char:"🙃",fitzpatrick_scale:!1,category:"people"},relaxed:{keywords:["face","blush","massage","happiness"],char:"☺️",fitzpatrick_scale:!1,category:"people"},yum:{keywords:["happy","joy","tongue","smile","face","silly","yummy","nom","delicious","savouring"],char:"😋",fitzpatrick_scale:!1,category:"people"},relieved:{keywords:["face","relaxed","phew","massage","happiness"],char:"😌",fitzpatrick_scale:!1,category:"people"},heart_eyes:{keywords:["face","love","like","affection","valentines","infatuation","crush","heart"],char:"😍",fitzpatrick_scale:!1,category:"people"},smiling_face_with_three_hearts:{keywords:["face","love","like","affection","valentines","infatuation","crush","hearts","adore"],char:"🥰",fitzpatrick_scale:!1,category:"people"},kissing_heart:{keywords:["face","love","like","affection","valentines","infatuation","kiss"],char:"😘",fitzpatrick_scale:!1,category:"people"},kissing:{keywords:["love","like","face","3","valentines","infatuation","kiss"],char:"😗",fitzpatrick_scale:!1,category:"people"},kissing_smiling_eyes:{keywords:["face","affection","valentines","infatuation","kiss"],char:"😙",fitzpatrick_scale:!1,category:"people"},kissing_closed_eyes:{keywords:["face","love","like","affection","valentines","infatuation","kiss"],char:"😚",fitzpatrick_scale:!1,category:"people"},stuck_out_tongue_winking_eye:{keywords:["face","prank","childish","playful","mischievous","smile","wink","tongue"],char:"😜",fitzpatrick_scale:!1,category:"people"},zany:{keywords:["face","goofy","crazy"],char:"🤪",fitzpatrick_scale:!1,category:"people"},raised_eyebrow:{keywords:["face","distrust","scepticism","disapproval","disbelief","surprise"],char:"🤨",fitzpatrick_scale:!1,category:"people"},monocle:{keywords:["face","stuffy","wealthy"],char:"🧐",fitzpatrick_scale:!1,category:"people"},stuck_out_tongue_closed_eyes:{keywords:["face","prank","playful","mischievous","smile","tongue"],char:"😝",fitzpatrick_scale:!1,category:"people"},stuck_out_tongue:{keywords:["face","prank","childish","playful","mischievous","smile","tongue"],char:"😛",fitzpatrick_scale:!1,category:"people"},money_mouth_face:{keywords:["face","rich","dollar","money"],char:"🤑",fitzpatrick_scale:!1,category:"people"},nerd_face:{keywords:["face","nerdy","geek","dork"],char:"🤓",fitzpatrick_scale:!1,category:"people"},sunglasses:{keywords:["face","cool","smile","summer","beach","sunglass"],char:"😎",fitzpatrick_scale:!1,category:"people"},star_struck:{keywords:["face","smile","starry","eyes","grinning"],char:"🤩",fitzpatrick_scale:!1,category:"people"},clown_face:{keywords:["face"],char:"🤡",fitzpatrick_scale:!1,category:"people"},cowboy_hat_face:{keywords:["face","cowgirl","hat"],char:"🤠",fitzpatrick_scale:!1,category:"people"},hugs:{keywords:["face","smile","hug"],char:"🤗",fitzpatrick_scale:!1,category:"people"},smirk:{keywords:["face","smile","mean","prank","smug","sarcasm"],char:"😏",fitzpatrick_scale:!1,category:"people"},no_mouth:{keywords:["face","hellokitty"],char:"😶",fitzpatrick_scale:!1,category:"people"},neutral_face:{keywords:["indifference","meh",":|","neutral"],char:"😐",fitzpatrick_scale:!1,category:"people"},expressionless:{keywords:["face","indifferent","-_-","meh","deadpan"],char:"😑",fitzpatrick_scale:!1,category:"people"},unamused:{keywords:["indifference","bored","straight face","serious","sarcasm","unimpressed","skeptical","dubious","side_eye"],char:"😒",fitzpatrick_scale:!1,category:"people"},roll_eyes:{keywords:["face","eyeroll","frustrated"],char:"🙄",fitzpatrick_scale:!1,category:"people"},thinking:{keywords:["face","hmmm","think","consider"],char:"🤔",fitzpatrick_scale:!1,category:"people"},lying_face:{keywords:["face","lie","pinocchio"],char:"🤥",fitzpatrick_scale:!1,category:"people"},hand_over_mouth:{keywords:["face","whoops","shock","surprise"],char:"🤭",fitzpatrick_scale:!1,category:"people"},shushing:{keywords:["face","quiet","shhh"],char:"🤫",fitzpatrick_scale:!1,category:"people"},symbols_over_mouth:{keywords:["face","swearing","cursing","cussing","profanity","expletive"],char:"🤬",fitzpatrick_scale:!1,category:"people"},exploding_head:{keywords:["face","shocked","mind","blown"],char:"🤯",fitzpatrick_scale:!1,category:"people"},flushed:{keywords:["face","blush","shy","flattered"],char:"😳",fitzpatrick_scale:!1,category:"people"},disappointed:{keywords:["face","sad","upset","depressed",":("],char:"😞",fitzpatrick_scale:!1,category:"people"},worried:{keywords:["face","concern","nervous",":("],char:"😟",fitzpatrick_scale:!1,category:"people"},angry:{keywords:["mad","face","annoyed","frustrated"],char:"😠",fitzpatrick_scale:!1,category:"people"},rage:{keywords:["angry","mad","hate","despise"],char:"😡",fitzpatrick_scale:!1,category:"people"},pensive:{keywords:["face","sad","depressed","upset"],char:"😔",fitzpatrick_scale:!1,category:"people"},confused:{keywords:["face","indifference","huh","weird","hmmm",":/"],char:"😕",fitzpatrick_scale:!1,category:"people"},slightly_frowning_face:{keywords:["face","frowning","disappointed","sad","upset"],char:"🙁",fitzpatrick_scale:!1,category:"people"},frowning_face:{keywords:["face","sad","upset","frown"],char:"☹",fitzpatrick_scale:!1,category:"people"},persevere:{keywords:["face","sick","no","upset","oops"],char:"😣",fitzpatrick_scale:!1,category:"people"},confounded:{keywords:["face","confused","sick","unwell","oops",":S"],char:"😖",fitzpatrick_scale:!1,category:"people"},tired_face:{keywords:["sick","whine","upset","frustrated"],char:"😫",fitzpatrick_scale:!1,category:"people"},weary:{keywords:["face","tired","sleepy","sad","frustrated","upset"],char:"😩",fitzpatrick_scale:!1,category:"people"},pleading:{keywords:["face","begging","mercy"],char:"🥺",fitzpatrick_scale:!1,category:"people"},triumph:{keywords:["face","gas","phew","proud","pride"],char:"😤",fitzpatrick_scale:!1,category:"people"},open_mouth:{keywords:["face","surprise","impressed","wow","whoa",":O"],char:"😮",fitzpatrick_scale:!1,category:"people"},scream:{keywords:["face","munch","scared","omg"],char:"😱",fitzpatrick_scale:!1,category:"people"},fearful:{keywords:["face","scared","terrified","nervous","oops","huh"],char:"😨",fitzpatrick_scale:!1,category:"people"},cold_sweat:{keywords:["face","nervous","sweat"],char:"😰",fitzpatrick_scale:!1,category:"people"},hushed:{keywords:["face","woo","shh"],char:"😯",fitzpatrick_scale:!1,category:"people"},frowning:{keywords:["face","aw","what"],char:"😦",fitzpatrick_scale:!1,category:"people"},anguished:{keywords:["face","stunned","nervous"],char:"😧",fitzpatrick_scale:!1,category:"people"},cry:{keywords:["face","tears","sad","depressed","upset",":'("],char:"😢",fitzpatrick_scale:!1,category:"people"},disappointed_relieved:{keywords:["face","phew","sweat","nervous"],char:"😥",fitzpatrick_scale:!1,category:"people"},drooling_face:{keywords:["face"],char:"🤤",fitzpatrick_scale:!1,category:"people"},sleepy:{keywords:["face","tired","rest","nap"],char:"😪",fitzpatrick_scale:!1,category:"people"},sweat:{keywords:["face","hot","sad","tired","exercise"],char:"😓",fitzpatrick_scale:!1,category:"people"},hot:{keywords:["face","feverish","heat","red","sweating"],char:"🥵",fitzpatrick_scale:!1,category:"people"},cold:{keywords:["face","blue","freezing","frozen","frostbite","icicles"],char:"🥶",fitzpatrick_scale:!1,category:"people"},sob:{keywords:["face","cry","tears","sad","upset","depressed"],char:"😭",fitzpatrick_scale:!1,category:"people"},dizzy_face:{keywords:["spent","unconscious","xox","dizzy"],char:"😵",fitzpatrick_scale:!1,category:"people"},astonished:{keywords:["face","xox","surprised","poisoned"],char:"😲",fitzpatrick_scale:!1,category:"people"},zipper_mouth_face:{keywords:["face","sealed","zipper","secret"],char:"🤐",fitzpatrick_scale:!1,category:"people"},nauseated_face:{keywords:["face","vomit","gross","green","sick","throw up","ill"],char:"🤢",fitzpatrick_scale:!1,category:"people"},sneezing_face:{keywords:["face","gesundheit","sneeze","sick","allergy"],char:"🤧",fitzpatrick_scale:!1,category:"people"},vomiting:{keywords:["face","sick"],char:"🤮",fitzpatrick_scale:!1,category:"people"},mask:{keywords:["face","sick","ill","disease"],char:"😷",fitzpatrick_scale:!1,category:"people"},face_with_thermometer:{keywords:["sick","temperature","thermometer","cold","fever"],char:"🤒",fitzpatrick_scale:!1,category:"people"},face_with_head_bandage:{keywords:["injured","clumsy","bandage","hurt"],char:"🤕",fitzpatrick_scale:!1,category:"people"},woozy:{keywords:["face","dizzy","intoxicated","tipsy","wavy"],char:"🥴",fitzpatrick_scale:!1,category:"people"},sleeping:{keywords:["face","tired","sleepy","night","zzz"],char:"😴",fitzpatrick_scale:!1,category:"people"},zzz:{keywords:["sleepy","tired","dream"],char:"💤",fitzpatrick_scale:!1,category:"people"},poop:{keywords:["hankey","shitface","fail","turd","shit"],char:"💩",fitzpatrick_scale:!1,category:"people"},smiling_imp:{keywords:["devil","horns"],char:"😈",fitzpatrick_scale:!1,category:"people"},imp:{keywords:["devil","angry","horns"],char:"👿",fitzpatrick_scale:!1,category:"people"},japanese_ogre:{keywords:["monster","red","mask","halloween","scary","creepy","devil","demon","japanese","ogre"],char:"👹",fitzpatrick_scale:!1,category:"people"},japanese_goblin:{keywords:["red","evil","mask","monster","scary","creepy","japanese","goblin"],char:"👺",fitzpatrick_scale:!1,category:"people"},skull:{keywords:["dead","skeleton","creepy","death"],char:"💀",fitzpatrick_scale:!1,category:"people"},ghost:{keywords:["halloween","spooky","scary"],char:"👻",fitzpatrick_scale:!1,category:"people"},alien:{keywords:["UFO","paul","weird","outer_space"],char:"👽",fitzpatrick_scale:!1,category:"people"},robot:{keywords:["computer","machine","bot"],char:"🤖",fitzpatrick_scale:!1,category:"people"},smiley_cat:{keywords:["animal","cats","happy","smile"],char:"😺",fitzpatrick_scale:!1,category:"people"},smile_cat:{keywords:["animal","cats","smile"],char:"😸",fitzpatrick_scale:!1,category:"people"},joy_cat:{keywords:["animal","cats","haha","happy","tears"],char:"😹",fitzpatrick_scale:!1,category:"people"},heart_eyes_cat:{keywords:["animal","love","like","affection","cats","valentines","heart"],char:"😻",fitzpatrick_scale:!1,category:"people"},smirk_cat:{keywords:["animal","cats","smirk"],char:"😼",fitzpatrick_scale:!1,category:"people"},kissing_cat:{keywords:["animal","cats","kiss"],char:"😽",fitzpatrick_scale:!1,category:"people"},scream_cat:{keywords:["animal","cats","munch","scared","scream"],char:"🙀",fitzpatrick_scale:!1,category:"people"},crying_cat_face:{keywords:["animal","tears","weep","sad","cats","upset","cry"],char:"😿",fitzpatrick_scale:!1,category:"people"},pouting_cat:{keywords:["animal","cats"],char:"😾",fitzpatrick_scale:!1,category:"people"},palms_up:{keywords:["hands","gesture","cupped","prayer"],char:"🤲",fitzpatrick_scale:!0,category:"people"},raised_hands:{keywords:["gesture","hooray","yea","celebration","hands"],char:"🙌",fitzpatrick_scale:!0,category:"people"},clap:{keywords:["hands","praise","applause","congrats","yay"],char:"👏",fitzpatrick_scale:!0,category:"people"},wave:{keywords:["hands","gesture","goodbye","solong","farewell","hello","hi","palm"],char:"👋",fitzpatrick_scale:!0,category:"people"},call_me_hand:{keywords:["hands","gesture"],char:"🤙",fitzpatrick_scale:!0,category:"people"},"+1":{keywords:["thumbsup","yes","awesome","good","agree","accept","cool","hand","like"],char:"👍",fitzpatrick_scale:!0,category:"people"},"-1":{keywords:["thumbsdown","no","dislike","hand"],char:"👎",fitzpatrick_scale:!0,category:"people"},facepunch:{keywords:["angry","violence","fist","hit","attack","hand"],char:"👊",fitzpatrick_scale:!0,category:"people"},fist:{keywords:["fingers","hand","grasp"],char:"✊",fitzpatrick_scale:!0,category:"people"},fist_left:{keywords:["hand","fistbump"],char:"🤛",fitzpatrick_scale:!0,category:"people"},fist_right:{keywords:["hand","fistbump"],char:"🤜",fitzpatrick_scale:!0,category:"people"},v:{keywords:["fingers","ohyeah","hand","peace","victory","two"],char:"✌",fitzpatrick_scale:!0,category:"people"},ok_hand:{keywords:["fingers","limbs","perfect","ok","okay"],char:"👌",fitzpatrick_scale:!0,category:"people"},raised_hand:{keywords:["fingers","stop","highfive","palm","ban"],char:"✋",fitzpatrick_scale:!0,category:"people"},raised_back_of_hand:{keywords:["fingers","raised","backhand"],char:"🤚",fitzpatrick_scale:!0,category:"people"},open_hands:{keywords:["fingers","butterfly","hands","open"],char:"👐",fitzpatrick_scale:!0,category:"people"},muscle:{keywords:["arm","flex","hand","summer","strong","biceps"],char:"💪",fitzpatrick_scale:!0,category:"people"},pray:{keywords:["please","hope","wish","namaste","highfive"],char:"🙏",fitzpatrick_scale:!0,category:"people"},foot:{keywords:["kick","stomp"],char:"🦶",fitzpatrick_scale:!0,category:"people"},leg:{keywords:["kick","limb"],char:"🦵",fitzpatrick_scale:!0,category:"people"},handshake:{keywords:["agreement","shake"],char:"🤝",fitzpatrick_scale:!1,category:"people"},point_up:{keywords:["hand","fingers","direction","up"],char:"☝",fitzpatrick_scale:!0,category:"people"},point_up_2:{keywords:["fingers","hand","direction","up"],char:"👆",fitzpatrick_scale:!0,category:"people"},point_down:{keywords:["fingers","hand","direction","down"],char:"👇",fitzpatrick_scale:!0,category:"people"},point_left:{keywords:["direction","fingers","hand","left"],char:"👈",fitzpatrick_scale:!0,category:"people"},point_right:{keywords:["fingers","hand","direction","right"],char:"👉",fitzpatrick_scale:!0,category:"people"},fu:{keywords:["hand","fingers","rude","middle","flipping"],char:"🖕",fitzpatrick_scale:!0,category:"people"},raised_hand_with_fingers_splayed:{keywords:["hand","fingers","palm"],char:"🖐",fitzpatrick_scale:!0,category:"people"},love_you:{keywords:["hand","fingers","gesture"],char:"🤟",fitzpatrick_scale:!0,category:"people"},metal:{keywords:["hand","fingers","evil_eye","sign_of_horns","rock_on"],char:"🤘",fitzpatrick_scale:!0,category:"people"},crossed_fingers:{keywords:["good","lucky"],char:"🤞",fitzpatrick_scale:!0,category:"people"},vulcan_salute:{keywords:["hand","fingers","spock","star trek"],char:"🖖",fitzpatrick_scale:!0,category:"people"},writing_hand:{keywords:["lower_left_ballpoint_pen","stationery","write","compose"],char:"✍",fitzpatrick_scale:!0,category:"people"},selfie:{keywords:["camera","phone"],char:"🤳",fitzpatrick_scale:!0,category:"people"},nail_care:{keywords:["beauty","manicure","finger","fashion","nail"],char:"💅",fitzpatrick_scale:!0,category:"people"},lips:{keywords:["mouth","kiss"],char:"👄",fitzpatrick_scale:!1,category:"people"},tooth:{keywords:["teeth","dentist"],char:"🦷",fitzpatrick_scale:!1,category:"people"},tongue:{keywords:["mouth","playful"],char:"👅",fitzpatrick_scale:!1,category:"people"},ear:{keywords:["face","hear","sound","listen"],char:"👂",fitzpatrick_scale:!0,category:"people"},nose:{keywords:["smell","sniff"],char:"👃",fitzpatrick_scale:!0,category:"people"},eye:{keywords:["face","look","see","watch","stare"],char:"👁",fitzpatrick_scale:!1,category:"people"},eyes:{keywords:["look","watch","stalk","peek","see"],char:"👀",fitzpatrick_scale:!1,category:"people"},brain:{keywords:["smart","intelligent"],char:"🧠",fitzpatrick_scale:!1,category:"people"},bust_in_silhouette:{keywords:["user","person","human"],char:"👤",fitzpatrick_scale:!1,category:"people"},busts_in_silhouette:{keywords:["user","person","human","group","team"],char:"👥",fitzpatrick_scale:!1,category:"people"},speaking_head:{keywords:["user","person","human","sing","say","talk"],char:"🗣",fitzpatrick_scale:!1,category:"people"},baby:{keywords:["child","boy","girl","toddler"],char:"👶",fitzpatrick_scale:!0,category:"people"},child:{keywords:["gender-neutral","young"],char:"🧒",fitzpatrick_scale:!0,category:"people"},boy:{keywords:["man","male","guy","teenager"],char:"👦",fitzpatrick_scale:!0,category:"people"},girl:{keywords:["female","woman","teenager"],char:"👧",fitzpatrick_scale:!0,category:"people"},adult:{keywords:["gender-neutral","person"],char:"🧑",fitzpatrick_scale:!0,category:"people"},man:{keywords:["mustache","father","dad","guy","classy","sir","moustache"],char:"👨",fitzpatrick_scale:!0,category:"people"},woman:{keywords:["female","girls","lady"],char:"👩",fitzpatrick_scale:!0,category:"people"},blonde_woman:{keywords:["woman","female","girl","blonde","person"],char:"👱‍♀️",fitzpatrick_scale:!0,category:"people"},blonde_man:{keywords:["man","male","boy","blonde","guy","person"],char:"👱",fitzpatrick_scale:!0,category:"people"},bearded_person:{keywords:["person","bewhiskered"],char:"🧔",fitzpatrick_scale:!0,category:"people"},older_adult:{keywords:["human","elder","senior","gender-neutral"],char:"🧓",fitzpatrick_scale:!0,category:"people"},older_man:{keywords:["human","male","men","old","elder","senior"],char:"👴",fitzpatrick_scale:!0,category:"people"},older_woman:{keywords:["human","female","women","lady","old","elder","senior"],char:"👵",fitzpatrick_scale:!0,category:"people"},man_with_gua_pi_mao:{keywords:["male","boy","chinese"],char:"👲",fitzpatrick_scale:!0,category:"people"},woman_with_headscarf:{keywords:["female","hijab","mantilla","tichel"],char:"🧕",fitzpatrick_scale:!0,category:"people"},woman_with_turban:{keywords:["female","indian","hinduism","arabs","woman"],char:"👳‍♀️",fitzpatrick_scale:!0,category:"people"},man_with_turban:{keywords:["male","indian","hinduism","arabs"],char:"👳",fitzpatrick_scale:!0,category:"people"},policewoman:{keywords:["woman","police","law","legal","enforcement","arrest","911","female"],char:"👮‍♀️",fitzpatrick_scale:!0,category:"people"},policeman:{keywords:["man","police","law","legal","enforcement","arrest","911"],char:"👮",fitzpatrick_scale:!0,category:"people"},construction_worker_woman:{keywords:["female","human","wip","build","construction","worker","labor","woman"],char:"👷‍♀️",fitzpatrick_scale:!0,category:"people"},construction_worker_man:{keywords:["male","human","wip","guy","build","construction","worker","labor"],char:"👷",fitzpatrick_scale:!0,category:"people"},guardswoman:{keywords:["uk","gb","british","female","royal","woman"],char:"💂‍♀️",fitzpatrick_scale:!0,category:"people"},guardsman:{keywords:["uk","gb","british","male","guy","royal"],char:"💂",fitzpatrick_scale:!0,category:"people"},female_detective:{keywords:["human","spy","detective","female","woman"],char:"🕵️‍♀️",fitzpatrick_scale:!0,category:"people"},male_detective:{keywords:["human","spy","detective"],char:"🕵",fitzpatrick_scale:!0,category:"people"},woman_health_worker:{keywords:["doctor","nurse","therapist","healthcare","woman","human"],char:"👩‍⚕️",fitzpatrick_scale:!0,category:"people"},man_health_worker:{keywords:["doctor","nurse","therapist","healthcare","man","human"],char:"👨‍⚕️",fitzpatrick_scale:!0,category:"people"},woman_farmer:{keywords:["rancher","gardener","woman","human"],char:"👩‍🌾",fitzpatrick_scale:!0,category:"people"},man_farmer:{keywords:["rancher","gardener","man","human"],char:"👨‍🌾",fitzpatrick_scale:!0,category:"people"},woman_cook:{keywords:["chef","woman","human"],char:"👩‍🍳",fitzpatrick_scale:!0,category:"people"},man_cook:{keywords:["chef","man","human"],char:"👨‍🍳",fitzpatrick_scale:!0,category:"people"},woman_student:{keywords:["graduate","woman","human"],char:"👩‍🎓",fitzpatrick_scale:!0,category:"people"},man_student:{keywords:["graduate","man","human"],char:"👨‍🎓",fitzpatrick_scale:!0,category:"people"},woman_singer:{keywords:["rockstar","entertainer","woman","human"],char:"👩‍🎤",fitzpatrick_scale:!0,category:"people"},man_singer:{keywords:["rockstar","entertainer","man","human"],char:"👨‍🎤",fitzpatrick_scale:!0,category:"people"},woman_teacher:{keywords:["instructor","professor","woman","human"],char:"👩‍🏫",fitzpatrick_scale:!0,category:"people"},man_teacher:{keywords:["instructor","professor","man","human"],char:"👨‍🏫",fitzpatrick_scale:!0,category:"people"},woman_factory_worker:{keywords:["assembly","industrial","woman","human"],char:"👩‍🏭",fitzpatrick_scale:!0,category:"people"},man_factory_worker:{keywords:["assembly","industrial","man","human"],char:"👨‍🏭",fitzpatrick_scale:!0,category:"people"},woman_technologist:{keywords:["coder","developer","engineer","programmer","software","woman","human","laptop","computer"],char:"👩‍💻",fitzpatrick_scale:!0,category:"people"},man_technologist:{keywords:["coder","developer","engineer","programmer","software","man","human","laptop","computer"],char:"👨‍💻",fitzpatrick_scale:!0,category:"people"},woman_office_worker:{keywords:["business","manager","woman","human"],char:"👩‍💼",fitzpatrick_scale:!0,category:"people"},man_office_worker:{keywords:["business","manager","man","human"],char:"👨‍💼",fitzpatrick_scale:!0,category:"people"},woman_mechanic:{keywords:["plumber","woman","human","wrench"],char:"👩‍🔧",fitzpatrick_scale:!0,category:"people"},man_mechanic:{keywords:["plumber","man","human","wrench"],char:"👨‍🔧",fitzpatrick_scale:!0,category:"people"},woman_scientist:{keywords:["biologist","chemist","engineer","physicist","woman","human"],char:"👩‍🔬",fitzpatrick_scale:!0,category:"people"},man_scientist:{keywords:["biologist","chemist","engineer","physicist","man","human"],char:"👨‍🔬",fitzpatrick_scale:!0,category:"people"},woman_artist:{keywords:["painter","woman","human"],char:"👩‍🎨",fitzpatrick_scale:!0,category:"people"},man_artist:{keywords:["painter","man","human"],char:"👨‍🎨",fitzpatrick_scale:!0,category:"people"},woman_firefighter:{keywords:["fireman","woman","human"],char:"👩‍🚒",fitzpatrick_scale:!0,category:"people"},man_firefighter:{keywords:["fireman","man","human"],char:"👨‍🚒",fitzpatrick_scale:!0,category:"people"},woman_pilot:{keywords:["aviator","plane","woman","human"],char:"👩‍✈️",fitzpatrick_scale:!0,category:"people"},man_pilot:{keywords:["aviator","plane","man","human"],char:"👨‍✈️",fitzpatrick_scale:!0,category:"people"},woman_astronaut:{keywords:["space","rocket","woman","human"],char:"👩‍🚀",fitzpatrick_scale:!0,category:"people"},man_astronaut:{keywords:["space","rocket","man","human"],char:"👨‍🚀",fitzpatrick_scale:!0,category:"people"},woman_judge:{keywords:["justice","court","woman","human"],char:"👩‍⚖️",fitzpatrick_scale:!0,category:"people"},man_judge:{keywords:["justice","court","man","human"],char:"👨‍⚖️",fitzpatrick_scale:!0,category:"people"},woman_superhero:{keywords:["woman","female","good","heroine","superpowers"],char:"🦸‍♀️",fitzpatrick_scale:!0,category:"people"},man_superhero:{keywords:["man","male","good","hero","superpowers"],char:"🦸‍♂️",fitzpatrick_scale:!0,category:"people"},woman_supervillain:{keywords:["woman","female","evil","bad","criminal","heroine","superpowers"],char:"🦹‍♀️",fitzpatrick_scale:!0,category:"people"},man_supervillain:{keywords:["man","male","evil","bad","criminal","hero","superpowers"],char:"🦹‍♂️",fitzpatrick_scale:!0,category:"people"},mrs_claus:{keywords:["woman","female","xmas","mother christmas"],char:"🤶",fitzpatrick_scale:!0,category:"people"},santa:{keywords:["festival","man","male","xmas","father christmas"],char:"🎅",fitzpatrick_scale:!0,category:"people"},sorceress:{keywords:["woman","female","mage","witch"],char:"🧙‍♀️",fitzpatrick_scale:!0,category:"people"},wizard:{keywords:["man","male","mage","sorcerer"],char:"🧙‍♂️",fitzpatrick_scale:!0,category:"people"},woman_elf:{keywords:["woman","female"],char:"🧝‍♀️",fitzpatrick_scale:!0,category:"people"},man_elf:{keywords:["man","male"],char:"🧝‍♂️",fitzpatrick_scale:!0,category:"people"},woman_vampire:{keywords:["woman","female"],char:"🧛‍♀️",fitzpatrick_scale:!0,category:"people"},man_vampire:{keywords:["man","male","dracula"],char:"🧛‍♂️",fitzpatrick_scale:!0,category:"people"},woman_zombie:{keywords:["woman","female","undead","walking dead"],char:"🧟‍♀️",fitzpatrick_scale:!1,category:"people"},man_zombie:{keywords:["man","male","dracula","undead","walking dead"],char:"🧟‍♂️",fitzpatrick_scale:!1,category:"people"},woman_genie:{keywords:["woman","female"],char:"🧞‍♀️",fitzpatrick_scale:!1,category:"people"},man_genie:{keywords:["man","male"],char:"🧞‍♂️",fitzpatrick_scale:!1,category:"people"},mermaid:{keywords:["woman","female","merwoman","ariel"],char:"🧜‍♀️",fitzpatrick_scale:!0,category:"people"},merman:{keywords:["man","male","triton"],char:"🧜‍♂️",fitzpatrick_scale:!0,category:"people"},woman_fairy:{keywords:["woman","female"],char:"🧚‍♀️",fitzpatrick_scale:!0,category:"people"},man_fairy:{keywords:["man","male"],char:"🧚‍♂️",fitzpatrick_scale:!0,category:"people"},angel:{keywords:["heaven","wings","halo"],char:"👼",fitzpatrick_scale:!0,category:"people"},pregnant_woman:{keywords:["baby"],char:"🤰",fitzpatrick_scale:!0,category:"people"},breastfeeding:{keywords:["nursing","baby"],char:"🤱",fitzpatrick_scale:!0,category:"people"},princess:{keywords:["girl","woman","female","blond","crown","royal","queen"],char:"👸",fitzpatrick_scale:!0,category:"people"},prince:{keywords:["boy","man","male","crown","royal","king"],char:"🤴",fitzpatrick_scale:!0,category:"people"},bride_with_veil:{keywords:["couple","marriage","wedding","woman","bride"],char:"👰",fitzpatrick_scale:!0,category:"people"},man_in_tuxedo:{keywords:["couple","marriage","wedding","groom"],char:"🤵",fitzpatrick_scale:!0,category:"people"},running_woman:{keywords:["woman","walking","exercise","race","running","female"],char:"🏃‍♀️",fitzpatrick_scale:!0,category:"people"},running_man:{keywords:["man","walking","exercise","race","running"],char:"🏃",fitzpatrick_scale:!0,category:"people"},walking_woman:{keywords:["human","feet","steps","woman","female"],char:"🚶‍♀️",fitzpatrick_scale:!0,category:"people"},walking_man:{keywords:["human","feet","steps"],char:"🚶",fitzpatrick_scale:!0,category:"people"},dancer:{keywords:["female","girl","woman","fun"],char:"💃",fitzpatrick_scale:!0,category:"people"},man_dancing:{keywords:["male","boy","fun","dancer"],char:"🕺",fitzpatrick_scale:!0,category:"people"},dancing_women:{keywords:["female","bunny","women","girls"],char:"👯",fitzpatrick_scale:!1,category:"people"},dancing_men:{keywords:["male","bunny","men","boys"],char:"👯‍♂️",fitzpatrick_scale:!1,category:"people"},couple:{keywords:["pair","people","human","love","date","dating","like","affection","valentines","marriage"],char:"👫",fitzpatrick_scale:!1,category:"people"},two_men_holding_hands:{keywords:["pair","couple","love","like","bromance","friendship","people","human"],char:"👬",fitzpatrick_scale:!1,category:"people"},two_women_holding_hands:{keywords:["pair","friendship","couple","love","like","female","people","human"],char:"👭",fitzpatrick_scale:!1,category:"people"},bowing_woman:{keywords:["woman","female","girl"],char:"🙇‍♀️",fitzpatrick_scale:!0,category:"people"},bowing_man:{keywords:["man","male","boy"],char:"🙇",fitzpatrick_scale:!0,category:"people"},man_facepalming:{keywords:["man","male","boy","disbelief"],char:"🤦‍♂️",fitzpatrick_scale:!0,category:"people"},woman_facepalming:{keywords:["woman","female","girl","disbelief"],char:"🤦‍♀️",fitzpatrick_scale:!0,category:"people"},woman_shrugging:{keywords:["woman","female","girl","confused","indifferent","doubt"],char:"🤷",fitzpatrick_scale:!0,category:"people"},man_shrugging:{keywords:["man","male","boy","confused","indifferent","doubt"],char:"🤷‍♂️",fitzpatrick_scale:!0,category:"people"},tipping_hand_woman:{keywords:["female","girl","woman","human","information"],char:"💁",fitzpatrick_scale:!0,category:"people"},tipping_hand_man:{keywords:["male","boy","man","human","information"],char:"💁‍♂️",fitzpatrick_scale:!0,category:"people"},no_good_woman:{keywords:["female","girl","woman","nope"],char:"🙅",fitzpatrick_scale:!0,category:"people"},no_good_man:{keywords:["male","boy","man","nope"],char:"🙅‍♂️",fitzpatrick_scale:!0,category:"people"},ok_woman:{keywords:["women","girl","female","pink","human","woman"],char:"🙆",fitzpatrick_scale:!0,category:"people"},ok_man:{keywords:["men","boy","male","blue","human","man"],char:"🙆‍♂️",fitzpatrick_scale:!0,category:"people"},raising_hand_woman:{keywords:["female","girl","woman"],char:"🙋",fitzpatrick_scale:!0,category:"people"},raising_hand_man:{keywords:["male","boy","man"],char:"🙋‍♂️",fitzpatrick_scale:!0,category:"people"},pouting_woman:{keywords:["female","girl","woman"],char:"🙎",fitzpatrick_scale:!0,category:"people"},pouting_man:{keywords:["male","boy","man"],char:"🙎‍♂️",fitzpatrick_scale:!0,category:"people"},frowning_woman:{keywords:["female","girl","woman","sad","depressed","discouraged","unhappy"],char:"🙍",fitzpatrick_scale:!0,category:"people"},frowning_man:{keywords:["male","boy","man","sad","depressed","discouraged","unhappy"],char:"🙍‍♂️",fitzpatrick_scale:!0,category:"people"},haircut_woman:{keywords:["female","girl","woman"],char:"💇",fitzpatrick_scale:!0,category:"people"},haircut_man:{keywords:["male","boy","man"],char:"💇‍♂️",fitzpatrick_scale:!0,category:"people"},massage_woman:{keywords:["female","girl","woman","head"],char:"💆",fitzpatrick_scale:!0,category:"people"},massage_man:{keywords:["male","boy","man","head"],char:"💆‍♂️",fitzpatrick_scale:!0,category:"people"},woman_in_steamy_room:{keywords:["female","woman","spa","steamroom","sauna"],char:"🧖‍♀️",fitzpatrick_scale:!0,category:"people"},man_in_steamy_room:{keywords:["male","man","spa","steamroom","sauna"],char:"🧖‍♂️",fitzpatrick_scale:!0,category:"people"},couple_with_heart_woman_man:{keywords:["pair","love","like","affection","human","dating","valentines","marriage"],char:"💑",fitzpatrick_scale:!1,category:"people"},couple_with_heart_woman_woman:{keywords:["pair","love","like","affection","human","dating","valentines","marriage"],char:"👩‍❤️‍👩",fitzpatrick_scale:!1,category:"people"},couple_with_heart_man_man:{keywords:["pair","love","like","affection","human","dating","valentines","marriage"],char:"👨‍❤️‍👨",fitzpatrick_scale:!1,category:"people"},couplekiss_man_woman:{keywords:["pair","valentines","love","like","dating","marriage"],char:"💏",fitzpatrick_scale:!1,category:"people"},couplekiss_woman_woman:{keywords:["pair","valentines","love","like","dating","marriage"],char:"👩‍❤️‍💋‍👩",fitzpatrick_scale:!1,category:"people"},couplekiss_man_man:{keywords:["pair","valentines","love","like","dating","marriage"],char:"👨‍❤️‍💋‍👨",fitzpatrick_scale:!1,category:"people"},family_man_woman_boy:{keywords:["home","parents","child","mom","dad","father","mother","people","human"],char:"👪",fitzpatrick_scale:!1,category:"people"},family_man_woman_girl:{keywords:["home","parents","people","human","child"],char:"👨‍👩‍👧",fitzpatrick_scale:!1,category:"people"},family_man_woman_girl_boy:{keywords:["home","parents","people","human","children"],char:"👨‍👩‍👧‍👦",fitzpatrick_scale:!1,category:"people"},family_man_woman_boy_boy:{keywords:["home","parents","people","human","children"],char:"👨‍👩‍👦‍👦",fitzpatrick_scale:!1,category:"people"},family_man_woman_girl_girl:{keywords:["home","parents","people","human","children"],char:"👨‍👩‍👧‍👧",fitzpatrick_scale:!1,category:"people"},family_woman_woman_boy:{keywords:["home","parents","people","human","children"],char:"👩‍👩‍👦",fitzpatrick_scale:!1,category:"people"},family_woman_woman_girl:{keywords:["home","parents","people","human","children"],char:"👩‍👩‍👧",fitzpatrick_scale:!1,category:"people"},family_woman_woman_girl_boy:{keywords:["home","parents","people","human","children"],char:"👩‍👩‍👧‍👦",fitzpatrick_scale:!1,category:"people"},family_woman_woman_boy_boy:{keywords:["home","parents","people","human","children"],char:"👩‍👩‍👦‍👦",fitzpatrick_scale:!1,category:"people"},family_woman_woman_girl_girl:{keywords:["home","parents","people","human","children"],char:"👩‍👩‍👧‍👧",fitzpatrick_scale:!1,category:"people"},family_man_man_boy:{keywords:["home","parents","people","human","children"],char:"👨‍👨‍👦",fitzpatrick_scale:!1,category:"people"},family_man_man_girl:{keywords:["home","parents","people","human","children"],char:"👨‍👨‍👧",fitzpatrick_scale:!1,category:"people"},family_man_man_girl_boy:{keywords:["home","parents","people","human","children"],char:"👨‍👨‍👧‍👦",fitzpatrick_scale:!1,category:"people"},family_man_man_boy_boy:{keywords:["home","parents","people","human","children"],char:"👨‍👨‍👦‍👦",fitzpatrick_scale:!1,category:"people"},family_man_man_girl_girl:{keywords:["home","parents","people","human","children"],char:"👨‍👨‍👧‍👧",fitzpatrick_scale:!1,category:"people"},family_woman_boy:{keywords:["home","parent","people","human","child"],char:"👩‍👦",fitzpatrick_scale:!1,category:"people"},family_woman_girl:{keywords:["home","parent","people","human","child"],char:"👩‍👧",fitzpatrick_scale:!1,category:"people"},family_woman_girl_boy:{keywords:["home","parent","people","human","children"],char:"👩‍👧‍👦",fitzpatrick_scale:!1,category:"people"},family_woman_boy_boy:{keywords:["home","parent","people","human","children"],char:"👩‍👦‍👦",fitzpatrick_scale:!1,category:"people"},family_woman_girl_girl:{keywords:["home","parent","people","human","children"],char:"👩‍👧‍👧",fitzpatrick_scale:!1,category:"people"},family_man_boy:{keywords:["home","parent","people","human","child"],char:"👨‍👦",fitzpatrick_scale:!1,category:"people"},family_man_girl:{keywords:["home","parent","people","human","child"],char:"👨‍👧",fitzpatrick_scale:!1,category:"people"},family_man_girl_boy:{keywords:["home","parent","people","human","children"],char:"👨‍👧‍👦",fitzpatrick_scale:!1,category:"people"},family_man_boy_boy:{keywords:["home","parent","people","human","children"],char:"👨‍👦‍👦",fitzpatrick_scale:!1,category:"people"},family_man_girl_girl:{keywords:["home","parent","people","human","children"],char:"👨‍👧‍👧",fitzpatrick_scale:!1,category:"people"},yarn:{keywords:["ball","crochet","knit"],char:"🧶",fitzpatrick_scale:!1,category:"people"},thread:{keywords:["needle","sewing","spool","string"],char:"🧵",fitzpatrick_scale:!1,category:"people"},coat:{keywords:["jacket"],char:"🧥",fitzpatrick_scale:!1,category:"people"},labcoat:{keywords:["doctor","experiment","scientist","chemist"],char:"🥼",fitzpatrick_scale:!1,category:"people"},womans_clothes:{keywords:["fashion","shopping_bags","female"],char:"👚",fitzpatrick_scale:!1,category:"people"},tshirt:{keywords:["fashion","cloth","casual","shirt","tee"],char:"👕",fitzpatrick_scale:!1,category:"people"},jeans:{keywords:["fashion","shopping"],char:"👖",fitzpatrick_scale:!1,category:"people"},necktie:{keywords:["shirt","suitup","formal","fashion","cloth","business"],char:"👔",fitzpatrick_scale:!1,category:"people"},dress:{keywords:["clothes","fashion","shopping"],char:"👗",fitzpatrick_scale:!1,category:"people"},bikini:{keywords:["swimming","female","woman","girl","fashion","beach","summer"],char:"👙",fitzpatrick_scale:!1,category:"people"},kimono:{keywords:["dress","fashion","women","female","japanese"],char:"👘",fitzpatrick_scale:!1,category:"people"},lipstick:{keywords:["female","girl","fashion","woman"],char:"💄",fitzpatrick_scale:!1,category:"people"},kiss:{keywords:["face","lips","love","like","affection","valentines"],char:"💋",fitzpatrick_scale:!1,category:"people"},footprints:{keywords:["feet","tracking","walking","beach"],char:"👣",fitzpatrick_scale:!1,category:"people"},flat_shoe:{keywords:["ballet","slip-on","slipper"],char:"🥿",fitzpatrick_scale:!1,category:"people"},high_heel:{keywords:["fashion","shoes","female","pumps","stiletto"],char:"👠",fitzpatrick_scale:!1,category:"people"},sandal:{keywords:["shoes","fashion","flip flops"],char:"👡",fitzpatrick_scale:!1,category:"people"},boot:{keywords:["shoes","fashion"],char:"👢",fitzpatrick_scale:!1,category:"people"},mans_shoe:{keywords:["fashion","male"],char:"👞",fitzpatrick_scale:!1,category:"people"},athletic_shoe:{keywords:["shoes","sports","sneakers"],char:"👟",fitzpatrick_scale:!1,category:"people"},hiking_boot:{keywords:["backpacking","camping","hiking"],char:"🥾",fitzpatrick_scale:!1,category:"people"},socks:{keywords:["stockings","clothes"],char:"🧦",fitzpatrick_scale:!1,category:"people"},gloves:{keywords:["hands","winter","clothes"],char:"🧤",fitzpatrick_scale:!1,category:"people"},scarf:{keywords:["neck","winter","clothes"],char:"🧣",fitzpatrick_scale:!1,category:"people"},womans_hat:{keywords:["fashion","accessories","female","lady","spring"],char:"👒",fitzpatrick_scale:!1,category:"people"},tophat:{keywords:["magic","gentleman","classy","circus"],char:"🎩",fitzpatrick_scale:!1,category:"people"},billed_hat:{keywords:["cap","baseball"],char:"🧢",fitzpatrick_scale:!1,category:"people"},rescue_worker_helmet:{keywords:["construction","build"],char:"⛑",fitzpatrick_scale:!1,category:"people"},mortar_board:{keywords:["school","college","degree","university","graduation","cap","hat","legal","learn","education"],char:"🎓",fitzpatrick_scale:!1,category:"people"},crown:{keywords:["king","kod","leader","royalty","lord"],char:"👑",fitzpatrick_scale:!1,category:"people"},school_satchel:{keywords:["student","education","bag","backpack"],char:"🎒",fitzpatrick_scale:!1,category:"people"},luggage:{keywords:["packing","travel"],char:"🧳",fitzpatrick_scale:!1,category:"people"},pouch:{keywords:["bag","accessories","shopping"],char:"👝",fitzpatrick_scale:!1,category:"people"},purse:{keywords:["fashion","accessories","money","sales","shopping"],char:"👛",fitzpatrick_scale:!1,category:"people"},handbag:{keywords:["fashion","accessory","accessories","shopping"],char:"👜",fitzpatrick_scale:!1,category:"people"},briefcase:{keywords:["business","documents","work","law","legal","job","career"],char:"💼",fitzpatrick_scale:!1,category:"people"},eyeglasses:{keywords:["fashion","accessories","eyesight","nerdy","dork","geek"],char:"👓",fitzpatrick_scale:!1,category:"people"},dark_sunglasses:{keywords:["face","cool","accessories"],char:"🕶",fitzpatrick_scale:!1,category:"people"},goggles:{keywords:["eyes","protection","safety"],char:"🥽",fitzpatrick_scale:!1,category:"people"},ring:{keywords:["wedding","propose","marriage","valentines","diamond","fashion","jewelry","gem","engagement"],char:"💍",fitzpatrick_scale:!1,category:"people"},closed_umbrella:{keywords:["weather","rain","drizzle"],char:"🌂",fitzpatrick_scale:!1,category:"people"},dog:{keywords:["animal","friend","nature","woof","puppy","pet","faithful"],char:"🐶",fitzpatrick_scale:!1,category:"animals_and_nature"},cat:{keywords:["animal","meow","nature","pet","kitten"],char:"🐱",fitzpatrick_scale:!1,category:"animals_and_nature"},mouse:{keywords:["animal","nature","cheese_wedge","rodent"],char:"🐭",fitzpatrick_scale:!1,category:"animals_and_nature"},hamster:{keywords:["animal","nature"],char:"🐹",fitzpatrick_scale:!1,category:"animals_and_nature"},rabbit:{keywords:["animal","nature","pet","spring","magic","bunny"],char:"🐰",fitzpatrick_scale:!1,category:"animals_and_nature"},fox_face:{keywords:["animal","nature","face"],char:"🦊",fitzpatrick_scale:!1,category:"animals_and_nature"},bear:{keywords:["animal","nature","wild"],char:"🐻",fitzpatrick_scale:!1,category:"animals_and_nature"},panda_face:{keywords:["animal","nature","panda"],char:"🐼",fitzpatrick_scale:!1,category:"animals_and_nature"},koala:{keywords:["animal","nature"],char:"🐨",fitzpatrick_scale:!1,category:"animals_and_nature"},tiger:{keywords:["animal","cat","danger","wild","nature","roar"],char:"🐯",fitzpatrick_scale:!1,category:"animals_and_nature"},lion:{keywords:["animal","nature"],char:"🦁",fitzpatrick_scale:!1,category:"animals_and_nature"},cow:{keywords:["beef","ox","animal","nature","moo","milk"],char:"🐮",fitzpatrick_scale:!1,category:"animals_and_nature"},pig:{keywords:["animal","oink","nature"],char:"🐷",fitzpatrick_scale:!1,category:"animals_and_nature"},pig_nose:{keywords:["animal","oink"],char:"🐽",fitzpatrick_scale:!1,category:"animals_and_nature"},frog:{keywords:["animal","nature","croak","toad"],char:"🐸",fitzpatrick_scale:!1,category:"animals_and_nature"},squid:{keywords:["animal","nature","ocean","sea"],char:"🦑",fitzpatrick_scale:!1,category:"animals_and_nature"},octopus:{keywords:["animal","creature","ocean","sea","nature","beach"],char:"🐙",fitzpatrick_scale:!1,category:"animals_and_nature"},shrimp:{keywords:["animal","ocean","nature","seafood"],char:"🦐",fitzpatrick_scale:!1,category:"animals_and_nature"},monkey_face:{keywords:["animal","nature","circus"],char:"🐵",fitzpatrick_scale:!1,category:"animals_and_nature"},gorilla:{keywords:["animal","nature","circus"],char:"🦍",fitzpatrick_scale:!1,category:"animals_and_nature"},see_no_evil:{keywords:["monkey","animal","nature","haha"],char:"🙈",fitzpatrick_scale:!1,category:"animals_and_nature"},hear_no_evil:{keywords:["animal","monkey","nature"],char:"🙉",fitzpatrick_scale:!1,category:"animals_and_nature"},speak_no_evil:{keywords:["monkey","animal","nature","omg"],char:"🙊",fitzpatrick_scale:!1,category:"animals_and_nature"},monkey:{keywords:["animal","nature","banana","circus"],char:"🐒",fitzpatrick_scale:!1,category:"animals_and_nature"},chicken:{keywords:["animal","cluck","nature","bird"],char:"🐔",fitzpatrick_scale:!1,category:"animals_and_nature"},penguin:{keywords:["animal","nature"],char:"🐧",fitzpatrick_scale:!1,category:"animals_and_nature"},bird:{keywords:["animal","nature","fly","tweet","spring"],char:"🐦",fitzpatrick_scale:!1,category:"animals_and_nature"},baby_chick:{keywords:["animal","chicken","bird"],char:"🐤",fitzpatrick_scale:!1,category:"animals_and_nature"},hatching_chick:{keywords:["animal","chicken","egg","born","baby","bird"],char:"🐣",fitzpatrick_scale:!1,category:"animals_and_nature"},hatched_chick:{keywords:["animal","chicken","baby","bird"],char:"🐥",fitzpatrick_scale:!1,category:"animals_and_nature"},duck:{keywords:["animal","nature","bird","mallard"],char:"🦆",fitzpatrick_scale:!1,category:"animals_and_nature"},eagle:{keywords:["animal","nature","bird"],char:"🦅",fitzpatrick_scale:!1,category:"animals_and_nature"},owl:{keywords:["animal","nature","bird","hoot"],char:"🦉",fitzpatrick_scale:!1,category:"animals_and_nature"},bat:{keywords:["animal","nature","blind","vampire"],char:"🦇",fitzpatrick_scale:!1,category:"animals_and_nature"},wolf:{keywords:["animal","nature","wild"],char:"🐺",fitzpatrick_scale:!1,category:"animals_and_nature"},boar:{keywords:["animal","nature"],char:"🐗",fitzpatrick_scale:!1,category:"animals_and_nature"},horse:{keywords:["animal","brown","nature"],char:"🐴",fitzpatrick_scale:!1,category:"animals_and_nature"},unicorn:{keywords:["animal","nature","mystical"],char:"🦄",fitzpatrick_scale:!1,category:"animals_and_nature"},honeybee:{keywords:["animal","insect","nature","bug","spring","honey"],char:"🐝",fitzpatrick_scale:!1,category:"animals_and_nature"},bug:{keywords:["animal","insect","nature","worm"],char:"🐛",fitzpatrick_scale:!1,category:"animals_and_nature"},butterfly:{keywords:["animal","insect","nature","caterpillar"],char:"🦋",fitzpatrick_scale:!1,category:"animals_and_nature"},snail:{keywords:["slow","animal","shell"],char:"🐌",fitzpatrick_scale:!1,category:"animals_and_nature"},beetle:{keywords:["animal","insect","nature","ladybug"],char:"🐞",fitzpatrick_scale:!1,category:"animals_and_nature"},ant:{keywords:["animal","insect","nature","bug"],char:"🐜",fitzpatrick_scale:!1,category:"animals_and_nature"},grasshopper:{keywords:["animal","cricket","chirp"],char:"🦗",fitzpatrick_scale:!1,category:"animals_and_nature"},spider:{keywords:["animal","arachnid"],char:"🕷",fitzpatrick_scale:!1,category:"animals_and_nature"},scorpion:{keywords:["animal","arachnid"],char:"🦂",fitzpatrick_scale:!1,category:"animals_and_nature"},crab:{keywords:["animal","crustacean"],char:"🦀",fitzpatrick_scale:!1,category:"animals_and_nature"},snake:{keywords:["animal","evil","nature","hiss","python"],char:"🐍",fitzpatrick_scale:!1,category:"animals_and_nature"},lizard:{keywords:["animal","nature","reptile"],char:"🦎",fitzpatrick_scale:!1,category:"animals_and_nature"},"t-rex":{keywords:["animal","nature","dinosaur","tyrannosaurus","extinct"],char:"🦖",fitzpatrick_scale:!1,category:"animals_and_nature"},sauropod:{keywords:["animal","nature","dinosaur","brachiosaurus","brontosaurus","diplodocus","extinct"],char:"🦕",fitzpatrick_scale:!1,category:"animals_and_nature"},turtle:{keywords:["animal","slow","nature","tortoise"],char:"🐢",fitzpatrick_scale:!1,category:"animals_and_nature"},tropical_fish:{keywords:["animal","swim","ocean","beach","nemo"],char:"🐠",fitzpatrick_scale:!1,category:"animals_and_nature"},fish:{keywords:["animal","food","nature"],char:"🐟",fitzpatrick_scale:!1,category:"animals_and_nature"},blowfish:{keywords:["animal","nature","food","sea","ocean"],char:"🐡",fitzpatrick_scale:!1,category:"animals_and_nature"},dolphin:{keywords:["animal","nature","fish","sea","ocean","flipper","fins","beach"],char:"🐬",fitzpatrick_scale:!1,category:"animals_and_nature"},shark:{keywords:["animal","nature","fish","sea","ocean","jaws","fins","beach"],char:"🦈",fitzpatrick_scale:!1,category:"animals_and_nature"},whale:{keywords:["animal","nature","sea","ocean"],char:"🐳",fitzpatrick_scale:!1,category:"animals_and_nature"},whale2:{keywords:["animal","nature","sea","ocean"],char:"🐋",fitzpatrick_scale:!1,category:"animals_and_nature"},crocodile:{keywords:["animal","nature","reptile","lizard","alligator"],char:"🐊",fitzpatrick_scale:!1,category:"animals_and_nature"},leopard:{keywords:["animal","nature"],char:"🐆",fitzpatrick_scale:!1,category:"animals_and_nature"},zebra:{keywords:["animal","nature","stripes","safari"],char:"🦓",fitzpatrick_scale:!1,category:"animals_and_nature"},tiger2:{keywords:["animal","nature","roar"],char:"🐅",fitzpatrick_scale:!1,category:"animals_and_nature"},water_buffalo:{keywords:["animal","nature","ox","cow"],char:"🐃",fitzpatrick_scale:!1,category:"animals_and_nature"},ox:{keywords:["animal","cow","beef"],char:"🐂",fitzpatrick_scale:!1,category:"animals_and_nature"},cow2:{keywords:["beef","ox","animal","nature","moo","milk"],char:"🐄",fitzpatrick_scale:!1,category:"animals_and_nature"},deer:{keywords:["animal","nature","horns","venison"],char:"🦌",fitzpatrick_scale:!1,category:"animals_and_nature"},dromedary_camel:{keywords:["animal","hot","desert","hump"],char:"🐪",fitzpatrick_scale:!1,category:"animals_and_nature"},camel:{keywords:["animal","nature","hot","desert","hump"],char:"🐫",fitzpatrick_scale:!1,category:"animals_and_nature"},giraffe:{keywords:["animal","nature","spots","safari"],char:"🦒",fitzpatrick_scale:!1,category:"animals_and_nature"},elephant:{keywords:["animal","nature","nose","th","circus"],char:"🐘",fitzpatrick_scale:!1,category:"animals_and_nature"},rhinoceros:{keywords:["animal","nature","horn"],char:"🦏",fitzpatrick_scale:!1,category:"animals_and_nature"},goat:{keywords:["animal","nature"],char:"🐐",fitzpatrick_scale:!1,category:"animals_and_nature"},ram:{keywords:["animal","sheep","nature"],char:"🐏",fitzpatrick_scale:!1,category:"animals_and_nature"},sheep:{keywords:["animal","nature","wool","shipit"],char:"🐑",fitzpatrick_scale:!1,category:"animals_and_nature"},racehorse:{keywords:["animal","gamble","luck"],char:"🐎",fitzpatrick_scale:!1,category:"animals_and_nature"},pig2:{keywords:["animal","nature"],char:"🐖",fitzpatrick_scale:!1,category:"animals_and_nature"},rat:{keywords:["animal","mouse","rodent"],char:"🐀",fitzpatrick_scale:!1,category:"animals_and_nature"},mouse2:{keywords:["animal","nature","rodent"],char:"🐁",fitzpatrick_scale:!1,category:"animals_and_nature"},rooster:{keywords:["animal","nature","chicken"],char:"🐓",fitzpatrick_scale:!1,category:"animals_and_nature"},turkey:{keywords:["animal","bird"],char:"🦃",fitzpatrick_scale:!1,category:"animals_and_nature"},dove:{keywords:["animal","bird"],char:"🕊",fitzpatrick_scale:!1,category:"animals_and_nature"},dog2:{keywords:["animal","nature","friend","doge","pet","faithful"],char:"🐕",fitzpatrick_scale:!1,category:"animals_and_nature"},poodle:{keywords:["dog","animal","101","nature","pet"],char:"🐩",fitzpatrick_scale:!1,category:"animals_and_nature"},cat2:{keywords:["animal","meow","pet","cats"],char:"🐈",fitzpatrick_scale:!1,category:"animals_and_nature"},rabbit2:{keywords:["animal","nature","pet","magic","spring"],char:"🐇",fitzpatrick_scale:!1,category:"animals_and_nature"},chipmunk:{keywords:["animal","nature","rodent","squirrel"],char:"🐿",fitzpatrick_scale:!1,category:"animals_and_nature"},hedgehog:{keywords:["animal","nature","spiny"],char:"🦔",fitzpatrick_scale:!1,category:"animals_and_nature"},raccoon:{keywords:["animal","nature"],char:"🦝",fitzpatrick_scale:!1,category:"animals_and_nature"},llama:{keywords:["animal","nature","alpaca"],char:"🦙",fitzpatrick_scale:!1,category:"animals_and_nature"},hippopotamus:{keywords:["animal","nature"],char:"🦛",fitzpatrick_scale:!1,category:"animals_and_nature"},kangaroo:{keywords:["animal","nature","australia","joey","hop","marsupial"],char:"🦘",fitzpatrick_scale:!1,category:"animals_and_nature"},badger:{keywords:["animal","nature","honey"],char:"🦡",fitzpatrick_scale:!1,category:"animals_and_nature"},swan:{keywords:["animal","nature","bird"],char:"🦢",fitzpatrick_scale:!1,category:"animals_and_nature"},peacock:{keywords:["animal","nature","peahen","bird"],char:"🦚",fitzpatrick_scale:!1,category:"animals_and_nature"},parrot:{keywords:["animal","nature","bird","pirate","talk"],char:"🦜",fitzpatrick_scale:!1,category:"animals_and_nature"},lobster:{keywords:["animal","nature","bisque","claws","seafood"],char:"🦞",fitzpatrick_scale:!1,category:"animals_and_nature"},mosquito:{keywords:["animal","nature","insect","malaria"],char:"🦟",fitzpatrick_scale:!1,category:"animals_and_nature"},paw_prints:{keywords:["animal","tracking","footprints","dog","cat","pet","feet"],char:"🐾",fitzpatrick_scale:!1,category:"animals_and_nature"},dragon:{keywords:["animal","myth","nature","chinese","green"],char:"🐉",fitzpatrick_scale:!1,category:"animals_and_nature"},dragon_face:{keywords:["animal","myth","nature","chinese","green"],char:"🐲",fitzpatrick_scale:!1,category:"animals_and_nature"},cactus:{keywords:["vegetable","plant","nature"],char:"🌵",fitzpatrick_scale:!1,category:"animals_and_nature"},christmas_tree:{keywords:["festival","vacation","december","xmas","celebration"],char:"🎄",fitzpatrick_scale:!1,category:"animals_and_nature"},evergreen_tree:{keywords:["plant","nature"],char:"🌲",fitzpatrick_scale:!1,category:"animals_and_nature"},deciduous_tree:{keywords:["plant","nature"],char:"🌳",fitzpatrick_scale:!1,category:"animals_and_nature"},palm_tree:{keywords:["plant","vegetable","nature","summer","beach","mojito","tropical"],char:"🌴",fitzpatrick_scale:!1,category:"animals_and_nature"},seedling:{keywords:["plant","nature","grass","lawn","spring"],char:"🌱",fitzpatrick_scale:!1,category:"animals_and_nature"},herb:{keywords:["vegetable","plant","medicine","weed","grass","lawn"],char:"🌿",fitzpatrick_scale:!1,category:"animals_and_nature"},shamrock:{keywords:["vegetable","plant","nature","irish","clover"],char:"☘",fitzpatrick_scale:!1,category:"animals_and_nature"},four_leaf_clover:{keywords:["vegetable","plant","nature","lucky","irish"],char:"🍀",fitzpatrick_scale:!1,category:"animals_and_nature"},bamboo:{keywords:["plant","nature","vegetable","panda","pine_decoration"],char:"🎍",fitzpatrick_scale:!1,category:"animals_and_nature"},tanabata_tree:{keywords:["plant","nature","branch","summer"],char:"🎋",fitzpatrick_scale:!1,category:"animals_and_nature"},leaves:{keywords:["nature","plant","tree","vegetable","grass","lawn","spring"],char:"🍃",fitzpatrick_scale:!1,category:"animals_and_nature"},fallen_leaf:{keywords:["nature","plant","vegetable","leaves"],char:"🍂",fitzpatrick_scale:!1,category:"animals_and_nature"},maple_leaf:{keywords:["nature","plant","vegetable","ca","fall"],char:"🍁",fitzpatrick_scale:!1,category:"animals_and_nature"},ear_of_rice:{keywords:["nature","plant"],char:"🌾",fitzpatrick_scale:!1,category:"animals_and_nature"},hibiscus:{keywords:["plant","vegetable","flowers","beach"],char:"🌺",fitzpatrick_scale:!1,category:"animals_and_nature"},sunflower:{keywords:["nature","plant","fall"],char:"🌻",fitzpatrick_scale:!1,category:"animals_and_nature"},rose:{keywords:["flowers","valentines","love","spring"],char:"🌹",fitzpatrick_scale:!1,category:"animals_and_nature"},wilted_flower:{keywords:["plant","nature","flower"],char:"🥀",fitzpatrick_scale:!1,category:"animals_and_nature"},tulip:{keywords:["flowers","plant","nature","summer","spring"],char:"🌷",fitzpatrick_scale:!1,category:"animals_and_nature"},blossom:{keywords:["nature","flowers","yellow"],char:"🌼",fitzpatrick_scale:!1,category:"animals_and_nature"},cherry_blossom:{keywords:["nature","plant","spring","flower"],char:"🌸",fitzpatrick_scale:!1,category:"animals_and_nature"},bouquet:{keywords:["flowers","nature","spring"],char:"💐",fitzpatrick_scale:!1,category:"animals_and_nature"},mushroom:{keywords:["plant","vegetable"],char:"🍄",fitzpatrick_scale:!1,category:"animals_and_nature"},chestnut:{keywords:["food","squirrel"],char:"🌰",fitzpatrick_scale:!1,category:"animals_and_nature"},jack_o_lantern:{keywords:["halloween","light","pumpkin","creepy","fall"],char:"🎃",fitzpatrick_scale:!1,category:"animals_and_nature"},shell:{keywords:["nature","sea","beach"],char:"🐚",fitzpatrick_scale:!1,category:"animals_and_nature"},spider_web:{keywords:["animal","insect","arachnid","silk"],char:"🕸",fitzpatrick_scale:!1,category:"animals_and_nature"},earth_americas:{keywords:["globe","world","USA","international"],char:"🌎",fitzpatrick_scale:!1,category:"animals_and_nature"},earth_africa:{keywords:["globe","world","international"],char:"🌍",fitzpatrick_scale:!1,category:"animals_and_nature"},earth_asia:{keywords:["globe","world","east","international"],char:"🌏",fitzpatrick_scale:!1,category:"animals_and_nature"},full_moon:{keywords:["nature","yellow","twilight","planet","space","night","evening","sleep"],char:"🌕",fitzpatrick_scale:!1,category:"animals_and_nature"},waning_gibbous_moon:{keywords:["nature","twilight","planet","space","night","evening","sleep","waxing_gibbous_moon"],char:"🌖",fitzpatrick_scale:!1,category:"animals_and_nature"},last_quarter_moon:{keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"🌗",fitzpatrick_scale:!1,category:"animals_and_nature"},waning_crescent_moon:{keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"🌘",fitzpatrick_scale:!1,category:"animals_and_nature"},new_moon:{keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"🌑",fitzpatrick_scale:!1,category:"animals_and_nature"},waxing_crescent_moon:{keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"🌒",fitzpatrick_scale:!1,category:"animals_and_nature"},first_quarter_moon:{keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"🌓",fitzpatrick_scale:!1,category:"animals_and_nature"},waxing_gibbous_moon:{keywords:["nature","night","sky","gray","twilight","planet","space","evening","sleep"],char:"🌔",fitzpatrick_scale:!1,category:"animals_and_nature"},new_moon_with_face:{keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"🌚",fitzpatrick_scale:!1,category:"animals_and_nature"},full_moon_with_face:{keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"🌝",fitzpatrick_scale:!1,category:"animals_and_nature"},first_quarter_moon_with_face:{keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"🌛",fitzpatrick_scale:!1,category:"animals_and_nature"},last_quarter_moon_with_face:{keywords:["nature","twilight","planet","space","night","evening","sleep"],char:"🌜",fitzpatrick_scale:!1,category:"animals_and_nature"},sun_with_face:{keywords:["nature","morning","sky"],char:"🌞",fitzpatrick_scale:!1,category:"animals_and_nature"},crescent_moon:{keywords:["night","sleep","sky","evening","magic"],char:"🌙",fitzpatrick_scale:!1,category:"animals_and_nature"},star:{keywords:["night","yellow"],char:"⭐",fitzpatrick_scale:!1,category:"animals_and_nature"},star2:{keywords:["night","sparkle","awesome","good","magic"],char:"🌟",fitzpatrick_scale:!1,category:"animals_and_nature"},dizzy:{keywords:["star","sparkle","shoot","magic"],char:"💫",fitzpatrick_scale:!1,category:"animals_and_nature"},sparkles:{keywords:["stars","shine","shiny","cool","awesome","good","magic"],char:"✨",fitzpatrick_scale:!1,category:"animals_and_nature"},comet:{keywords:["space"],char:"☄",fitzpatrick_scale:!1,category:"animals_and_nature"},sunny:{keywords:["weather","nature","brightness","summer","beach","spring"],char:"☀️",fitzpatrick_scale:!1,category:"animals_and_nature"},sun_behind_small_cloud:{keywords:["weather"],char:"🌤",fitzpatrick_scale:!1,category:"animals_and_nature"},partly_sunny:{keywords:["weather","nature","cloudy","morning","fall","spring"],char:"⛅",fitzpatrick_scale:!1,category:"animals_and_nature"},sun_behind_large_cloud:{keywords:["weather"],char:"🌥",fitzpatrick_scale:!1,category:"animals_and_nature"},sun_behind_rain_cloud:{keywords:["weather"],char:"🌦",fitzpatrick_scale:!1,category:"animals_and_nature"},cloud:{keywords:["weather","sky"],char:"☁️",fitzpatrick_scale:!1,category:"animals_and_nature"},cloud_with_rain:{keywords:["weather"],char:"🌧",fitzpatrick_scale:!1,category:"animals_and_nature"},cloud_with_lightning_and_rain:{keywords:["weather","lightning"],char:"⛈",fitzpatrick_scale:!1,category:"animals_and_nature"},cloud_with_lightning:{keywords:["weather","thunder"],char:"🌩",fitzpatrick_scale:!1,category:"animals_and_nature"},zap:{keywords:["thunder","weather","lightning bolt","fast"],char:"⚡",fitzpatrick_scale:!1,category:"animals_and_nature"},fire:{keywords:["hot","cook","flame"],char:"🔥",fitzpatrick_scale:!1,category:"animals_and_nature"},boom:{keywords:["bomb","explode","explosion","collision","blown"],char:"💥",fitzpatrick_scale:!1,category:"animals_and_nature"},snowflake:{keywords:["winter","season","cold","weather","christmas","xmas"],char:"❄️",fitzpatrick_scale:!1,category:"animals_and_nature"},cloud_with_snow:{keywords:["weather"],char:"🌨",fitzpatrick_scale:!1,category:"animals_and_nature"},snowman:{keywords:["winter","season","cold","weather","christmas","xmas","frozen","without_snow"],char:"⛄",fitzpatrick_scale:!1,category:"animals_and_nature"},snowman_with_snow:{keywords:["winter","season","cold","weather","christmas","xmas","frozen"],char:"☃",fitzpatrick_scale:!1,category:"animals_and_nature"},wind_face:{keywords:["gust","air"],char:"🌬",fitzpatrick_scale:!1,category:"animals_and_nature"},dash:{keywords:["wind","air","fast","shoo","fart","smoke","puff"],char:"💨",fitzpatrick_scale:!1,category:"animals_and_nature"},tornado:{keywords:["weather","cyclone","twister"],char:"🌪",fitzpatrick_scale:!1,category:"animals_and_nature"},fog:{keywords:["weather"],char:"🌫",fitzpatrick_scale:!1,category:"animals_and_nature"},open_umbrella:{keywords:["weather","spring"],char:"☂",fitzpatrick_scale:!1,category:"animals_and_nature"},umbrella:{keywords:["rainy","weather","spring"],char:"☔",fitzpatrick_scale:!1,category:"animals_and_nature"},droplet:{keywords:["water","drip","faucet","spring"],char:"💧",fitzpatrick_scale:!1,category:"animals_and_nature"},sweat_drops:{keywords:["water","drip","oops"],char:"💦",fitzpatrick_scale:!1,category:"animals_and_nature"},ocean:{keywords:["sea","water","wave","nature","tsunami","disaster"],char:"🌊",fitzpatrick_scale:!1,category:"animals_and_nature"},green_apple:{keywords:["fruit","nature"],char:"🍏",fitzpatrick_scale:!1,category:"food_and_drink"},apple:{keywords:["fruit","mac","school"],char:"🍎",fitzpatrick_scale:!1,category:"food_and_drink"},pear:{keywords:["fruit","nature","food"],char:"🍐",fitzpatrick_scale:!1,category:"food_and_drink"},tangerine:{keywords:["food","fruit","nature","orange"],char:"🍊",fitzpatrick_scale:!1,category:"food_and_drink"},lemon:{keywords:["fruit","nature"],char:"🍋",fitzpatrick_scale:!1,category:"food_and_drink"},banana:{keywords:["fruit","food","monkey"],char:"🍌",fitzpatrick_scale:!1,category:"food_and_drink"},watermelon:{keywords:["fruit","food","picnic","summer"],char:"🍉",fitzpatrick_scale:!1,category:"food_and_drink"},grapes:{keywords:["fruit","food","wine"],char:"🍇",fitzpatrick_scale:!1,category:"food_and_drink"},strawberry:{keywords:["fruit","food","nature"],char:"🍓",fitzpatrick_scale:!1,category:"food_and_drink"},melon:{keywords:["fruit","nature","food"],char:"🍈",fitzpatrick_scale:!1,category:"food_and_drink"},cherries:{keywords:["food","fruit"],char:"🍒",fitzpatrick_scale:!1,category:"food_and_drink"},peach:{keywords:["fruit","nature","food"],char:"🍑",fitzpatrick_scale:!1,category:"food_and_drink"},pineapple:{keywords:["fruit","nature","food"],char:"🍍",fitzpatrick_scale:!1,category:"food_and_drink"},coconut:{keywords:["fruit","nature","food","palm"],char:"🥥",fitzpatrick_scale:!1,category:"food_and_drink"},kiwi_fruit:{keywords:["fruit","food"],char:"🥝",fitzpatrick_scale:!1,category:"food_and_drink"},mango:{keywords:["fruit","food","tropical"],char:"🥭",fitzpatrick_scale:!1,category:"food_and_drink"},avocado:{keywords:["fruit","food"],char:"🥑",fitzpatrick_scale:!1,category:"food_and_drink"},broccoli:{keywords:["fruit","food","vegetable"],char:"🥦",fitzpatrick_scale:!1,category:"food_and_drink"},tomato:{keywords:["fruit","vegetable","nature","food"],char:"🍅",fitzpatrick_scale:!1,category:"food_and_drink"},eggplant:{keywords:["vegetable","nature","food","aubergine"],char:"🍆",fitzpatrick_scale:!1,category:"food_and_drink"},cucumber:{keywords:["fruit","food","pickle"],char:"🥒",fitzpatrick_scale:!1,category:"food_and_drink"},carrot:{keywords:["vegetable","food","orange"],char:"🥕",fitzpatrick_scale:!1,category:"food_and_drink"},hot_pepper:{keywords:["food","spicy","chilli","chili"],char:"🌶",fitzpatrick_scale:!1,category:"food_and_drink"},potato:{keywords:["food","tuber","vegatable","starch"],char:"🥔",fitzpatrick_scale:!1,category:"food_and_drink"},corn:{keywords:["food","vegetable","plant"],char:"🌽",fitzpatrick_scale:!1,category:"food_and_drink"},leafy_greens:{keywords:["food","vegetable","plant","bok choy","cabbage","kale","lettuce"],char:"🥬",fitzpatrick_scale:!1,category:"food_and_drink"},sweet_potato:{keywords:["food","nature"],char:"🍠",fitzpatrick_scale:!1,category:"food_and_drink"},peanuts:{keywords:["food","nut"],char:"🥜",fitzpatrick_scale:!1,category:"food_and_drink"},honey_pot:{keywords:["bees","sweet","kitchen"],char:"🍯",fitzpatrick_scale:!1,category:"food_and_drink"},croissant:{keywords:["food","bread","french"],char:"🥐",fitzpatrick_scale:!1,category:"food_and_drink"},bread:{keywords:["food","wheat","breakfast","toast"],char:"🍞",fitzpatrick_scale:!1,category:"food_and_drink"},baguette_bread:{keywords:["food","bread","french"],char:"🥖",fitzpatrick_scale:!1,category:"food_and_drink"},bagel:{keywords:["food","bread","bakery","schmear"],char:"🥯",fitzpatrick_scale:!1,category:"food_and_drink"},pretzel:{keywords:["food","bread","twisted"],char:"🥨",fitzpatrick_scale:!1,category:"food_and_drink"},cheese:{keywords:["food","chadder"],char:"🧀",fitzpatrick_scale:!1,category:"food_and_drink"},egg:{keywords:["food","chicken","breakfast"],char:"🥚",fitzpatrick_scale:!1,category:"food_and_drink"},bacon:{keywords:["food","breakfast","pork","pig","meat"],char:"🥓",fitzpatrick_scale:!1,category:"food_and_drink"},steak:{keywords:["food","cow","meat","cut","chop","lambchop","porkchop"],char:"🥩",fitzpatrick_scale:!1,category:"food_and_drink"},pancakes:{keywords:["food","breakfast","flapjacks","hotcakes"],char:"🥞",fitzpatrick_scale:!1,category:"food_and_drink"},poultry_leg:{keywords:["food","meat","drumstick","bird","chicken","turkey"],char:"🍗",fitzpatrick_scale:!1,category:"food_and_drink"},meat_on_bone:{keywords:["good","food","drumstick"],char:"🍖",fitzpatrick_scale:!1,category:"food_and_drink"},bone:{keywords:["skeleton"],char:"🦴",fitzpatrick_scale:!1,category:"food_and_drink"},fried_shrimp:{keywords:["food","animal","appetizer","summer"],char:"🍤",fitzpatrick_scale:!1,category:"food_and_drink"},fried_egg:{keywords:["food","breakfast","kitchen","egg"],char:"🍳",fitzpatrick_scale:!1,category:"food_and_drink"},hamburger:{keywords:["meat","fast food","beef","cheeseburger","mcdonalds","burger king"],char:"🍔",fitzpatrick_scale:!1,category:"food_and_drink"},fries:{keywords:["chips","snack","fast food"],char:"🍟",fitzpatrick_scale:!1,category:"food_and_drink"},stuffed_flatbread:{keywords:["food","flatbread","stuffed","gyro"],char:"🥙",fitzpatrick_scale:!1,category:"food_and_drink"},hotdog:{keywords:["food","frankfurter"],char:"🌭",fitzpatrick_scale:!1,category:"food_and_drink"},pizza:{keywords:["food","party"],char:"🍕",fitzpatrick_scale:!1,category:"food_and_drink"},sandwich:{keywords:["food","lunch","bread"],char:"🥪",fitzpatrick_scale:!1,category:"food_and_drink"},canned_food:{keywords:["food","soup"],char:"🥫",fitzpatrick_scale:!1,category:"food_and_drink"},spaghetti:{keywords:["food","italian","noodle"],char:"🍝",fitzpatrick_scale:!1,category:"food_and_drink"},taco:{keywords:["food","mexican"],char:"🌮",fitzpatrick_scale:!1,category:"food_and_drink"},burrito:{keywords:["food","mexican"],char:"🌯",fitzpatrick_scale:!1,category:"food_and_drink"},green_salad:{keywords:["food","healthy","lettuce"],char:"🥗",fitzpatrick_scale:!1,category:"food_and_drink"},shallow_pan_of_food:{keywords:["food","cooking","casserole","paella"],char:"🥘",fitzpatrick_scale:!1,category:"food_and_drink"},ramen:{keywords:["food","japanese","noodle","chopsticks"],char:"🍜",fitzpatrick_scale:!1,category:"food_and_drink"},stew:{keywords:["food","meat","soup"],char:"🍲",fitzpatrick_scale:!1,category:"food_and_drink"},fish_cake:{keywords:["food","japan","sea","beach","narutomaki","pink","swirl","kamaboko","surimi","ramen"],char:"🍥",fitzpatrick_scale:!1,category:"food_and_drink"},fortune_cookie:{keywords:["food","prophecy"],char:"🥠",fitzpatrick_scale:!1,category:"food_and_drink"},sushi:{keywords:["food","fish","japanese","rice"],char:"🍣",fitzpatrick_scale:!1,category:"food_and_drink"},bento:{keywords:["food","japanese","box"],char:"🍱",fitzpatrick_scale:!1,category:"food_and_drink"},curry:{keywords:["food","spicy","hot","indian"],char:"🍛",fitzpatrick_scale:!1,category:"food_and_drink"},rice_ball:{keywords:["food","japanese"],char:"🍙",fitzpatrick_scale:!1,category:"food_and_drink"},rice:{keywords:["food","china","asian"],char:"🍚",fitzpatrick_scale:!1,category:"food_and_drink"},rice_cracker:{keywords:["food","japanese"],char:"🍘",fitzpatrick_scale:!1,category:"food_and_drink"},oden:{keywords:["food","japanese"],char:"🍢",fitzpatrick_scale:!1,category:"food_and_drink"},dango:{keywords:["food","dessert","sweet","japanese","barbecue","meat"],char:"🍡",fitzpatrick_scale:!1,category:"food_and_drink"},shaved_ice:{keywords:["hot","dessert","summer"],char:"🍧",fitzpatrick_scale:!1,category:"food_and_drink"},ice_cream:{keywords:["food","hot","dessert"],char:"🍨",fitzpatrick_scale:!1,category:"food_and_drink"},icecream:{keywords:["food","hot","dessert","summer"],char:"🍦",fitzpatrick_scale:!1,category:"food_and_drink"},pie:{keywords:["food","dessert","pastry"],char:"🥧",fitzpatrick_scale:!1,category:"food_and_drink"},cake:{keywords:["food","dessert"],char:"🍰",fitzpatrick_scale:!1,category:"food_and_drink"},cupcake:{keywords:["food","dessert","bakery","sweet"],char:"🧁",fitzpatrick_scale:!1,category:"food_and_drink"},moon_cake:{keywords:["food","autumn"],char:"🥮",fitzpatrick_scale:!1,category:"food_and_drink"},birthday:{keywords:["food","dessert","cake"],char:"🎂",fitzpatrick_scale:!1,category:"food_and_drink"},custard:{keywords:["dessert","food"],char:"🍮",fitzpatrick_scale:!1,category:"food_and_drink"},candy:{keywords:["snack","dessert","sweet","lolly"],char:"🍬",fitzpatrick_scale:!1,category:"food_and_drink"},lollipop:{keywords:["food","snack","candy","sweet"],char:"🍭",fitzpatrick_scale:!1,category:"food_and_drink"},chocolate_bar:{keywords:["food","snack","dessert","sweet"],char:"🍫",fitzpatrick_scale:!1,category:"food_and_drink"},popcorn:{keywords:["food","movie theater","films","snack"],char:"🍿",fitzpatrick_scale:!1,category:"food_and_drink"},dumpling:{keywords:["food","empanada","pierogi","potsticker"],char:"🥟",fitzpatrick_scale:!1,category:"food_and_drink"},doughnut:{keywords:["food","dessert","snack","sweet","donut"],char:"🍩",fitzpatrick_scale:!1,category:"food_and_drink"},cookie:{keywords:["food","snack","oreo","chocolate","sweet","dessert"],char:"🍪",fitzpatrick_scale:!1,category:"food_and_drink"},milk_glass:{keywords:["beverage","drink","cow"],char:"🥛",fitzpatrick_scale:!1,category:"food_and_drink"},beer:{keywords:["relax","beverage","drink","drunk","party","pub","summer","alcohol","booze"],char:"🍺",fitzpatrick_scale:!1,category:"food_and_drink"},beers:{keywords:["relax","beverage","drink","drunk","party","pub","summer","alcohol","booze"],char:"🍻",fitzpatrick_scale:!1,category:"food_and_drink"},clinking_glasses:{keywords:["beverage","drink","party","alcohol","celebrate","cheers","wine","champagne","toast"],char:"🥂",fitzpatrick_scale:!1,category:"food_and_drink"},wine_glass:{keywords:["drink","beverage","drunk","alcohol","booze"],char:"🍷",fitzpatrick_scale:!1,category:"food_and_drink"},tumbler_glass:{keywords:["drink","beverage","drunk","alcohol","liquor","booze","bourbon","scotch","whisky","glass","shot"],char:"🥃",fitzpatrick_scale:!1,category:"food_and_drink"},cocktail:{keywords:["drink","drunk","alcohol","beverage","booze","mojito"],char:"🍸",fitzpatrick_scale:!1,category:"food_and_drink"},tropical_drink:{keywords:["beverage","cocktail","summer","beach","alcohol","booze","mojito"],char:"🍹",fitzpatrick_scale:!1,category:"food_and_drink"},champagne:{keywords:["drink","wine","bottle","celebration"],char:"🍾",fitzpatrick_scale:!1,category:"food_and_drink"},sake:{keywords:["wine","drink","drunk","beverage","japanese","alcohol","booze"],char:"🍶",fitzpatrick_scale:!1,category:"food_and_drink"},tea:{keywords:["drink","bowl","breakfast","green","british"],char:"🍵",fitzpatrick_scale:!1,category:"food_and_drink"},cup_with_straw:{keywords:["drink","soda"],char:"🥤",fitzpatrick_scale:!1,category:"food_and_drink"},coffee:{keywords:["beverage","caffeine","latte","espresso"],char:"☕",fitzpatrick_scale:!1,category:"food_and_drink"},baby_bottle:{keywords:["food","container","milk"],char:"🍼",fitzpatrick_scale:!1,category:"food_and_drink"},salt:{keywords:["condiment","shaker"],char:"🧂",fitzpatrick_scale:!1,category:"food_and_drink"},spoon:{keywords:["cutlery","kitchen","tableware"],char:"🥄",fitzpatrick_scale:!1,category:"food_and_drink"},fork_and_knife:{keywords:["cutlery","kitchen"],char:"🍴",fitzpatrick_scale:!1,category:"food_and_drink"},plate_with_cutlery:{keywords:["food","eat","meal","lunch","dinner","restaurant"],char:"🍽",fitzpatrick_scale:!1,category:"food_and_drink"},bowl_with_spoon:{keywords:["food","breakfast","cereal","oatmeal","porridge"],char:"🥣",fitzpatrick_scale:!1,category:"food_and_drink"},takeout_box:{keywords:["food","leftovers"],char:"🥡",fitzpatrick_scale:!1,category:"food_and_drink"},chopsticks:{keywords:["food"],char:"🥢",fitzpatrick_scale:!1,category:"food_and_drink"},soccer:{keywords:["sports","football"],char:"⚽",fitzpatrick_scale:!1,category:"activity"},basketball:{keywords:["sports","balls","NBA"],char:"🏀",fitzpatrick_scale:!1,category:"activity"},football:{keywords:["sports","balls","NFL"],char:"🏈",fitzpatrick_scale:!1,category:"activity"},baseball:{keywords:["sports","balls"],char:"⚾",fitzpatrick_scale:!1,category:"activity"},softball:{keywords:["sports","balls"],char:"🥎",fitzpatrick_scale:!1,category:"activity"},tennis:{keywords:["sports","balls","green"],char:"🎾",fitzpatrick_scale:!1,category:"activity"},volleyball:{keywords:["sports","balls"],char:"🏐",fitzpatrick_scale:!1,category:"activity"},rugby_football:{keywords:["sports","team"],char:"🏉",fitzpatrick_scale:!1,category:"activity"},flying_disc:{keywords:["sports","frisbee","ultimate"],char:"🥏",fitzpatrick_scale:!1,category:"activity"},"8ball":{keywords:["pool","hobby","game","luck","magic"],char:"🎱",fitzpatrick_scale:!1,category:"activity"},golf:{keywords:["sports","business","flag","hole","summer"],char:"⛳",fitzpatrick_scale:!1,category:"activity"},golfing_woman:{keywords:["sports","business","woman","female"],char:"🏌️‍♀️",fitzpatrick_scale:!1,category:"activity"},golfing_man:{keywords:["sports","business"],char:"🏌",fitzpatrick_scale:!0,category:"activity"},ping_pong:{keywords:["sports","pingpong"],char:"🏓",fitzpatrick_scale:!1,category:"activity"},badminton:{keywords:["sports"],char:"🏸",fitzpatrick_scale:!1,category:"activity"},goal_net:{keywords:["sports"],char:"🥅",fitzpatrick_scale:!1,category:"activity"},ice_hockey:{keywords:["sports"],char:"🏒",fitzpatrick_scale:!1,category:"activity"},field_hockey:{keywords:["sports"],char:"🏑",fitzpatrick_scale:!1,category:"activity"},lacrosse:{keywords:["sports","ball","stick"],char:"🥍",fitzpatrick_scale:!1,category:"activity"},cricket:{keywords:["sports"],char:"🏏",fitzpatrick_scale:!1,category:"activity"},ski:{keywords:["sports","winter","cold","snow"],char:"🎿",fitzpatrick_scale:!1,category:"activity"},skier:{keywords:["sports","winter","snow"],char:"⛷",fitzpatrick_scale:!1,category:"activity"},snowboarder:{keywords:["sports","winter"],char:"🏂",fitzpatrick_scale:!0,category:"activity"},person_fencing:{keywords:["sports","fencing","sword"],char:"🤺",fitzpatrick_scale:!1,category:"activity"},women_wrestling:{keywords:["sports","wrestlers"],char:"🤼‍♀️",fitzpatrick_scale:!1,category:"activity"},men_wrestling:{keywords:["sports","wrestlers"],char:"🤼‍♂️",fitzpatrick_scale:!1,category:"activity"},woman_cartwheeling:{keywords:["gymnastics"],char:"🤸‍♀️",fitzpatrick_scale:!0,category:"activity"},man_cartwheeling:{keywords:["gymnastics"],char:"🤸‍♂️",fitzpatrick_scale:!0,category:"activity"},woman_playing_handball:{keywords:["sports"],char:"🤾‍♀️",fitzpatrick_scale:!0,category:"activity"},man_playing_handball:{keywords:["sports"],char:"🤾‍♂️",fitzpatrick_scale:!0,category:"activity"},ice_skate:{keywords:["sports"],char:"⛸",fitzpatrick_scale:!1,category:"activity"},curling_stone:{keywords:["sports"],char:"🥌",fitzpatrick_scale:!1,category:"activity"},skateboard:{keywords:["board"],char:"🛹",fitzpatrick_scale:!1,category:"activity"},sled:{keywords:["sleigh","luge","toboggan"],char:"🛷",fitzpatrick_scale:!1,category:"activity"},bow_and_arrow:{keywords:["sports"],char:"🏹",fitzpatrick_scale:!1,category:"activity"},fishing_pole_and_fish:{keywords:["food","hobby","summer"],char:"🎣",fitzpatrick_scale:!1,category:"activity"},boxing_glove:{keywords:["sports","fighting"],char:"🥊",fitzpatrick_scale:!1,category:"activity"},martial_arts_uniform:{keywords:["judo","karate","taekwondo"],char:"🥋",fitzpatrick_scale:!1,category:"activity"},rowing_woman:{keywords:["sports","hobby","water","ship","woman","female"],char:"🚣‍♀️",fitzpatrick_scale:!0,category:"activity"},rowing_man:{keywords:["sports","hobby","water","ship"],char:"🚣",fitzpatrick_scale:!0,category:"activity"},climbing_woman:{keywords:["sports","hobby","woman","female","rock"],char:"🧗‍♀️",fitzpatrick_scale:!0,category:"activity"},climbing_man:{keywords:["sports","hobby","man","male","rock"],char:"🧗‍♂️",fitzpatrick_scale:!0,category:"activity"},swimming_woman:{keywords:["sports","exercise","human","athlete","water","summer","woman","female"],char:"🏊‍♀️",fitzpatrick_scale:!0,category:"activity"},swimming_man:{keywords:["sports","exercise","human","athlete","water","summer"],char:"🏊",fitzpatrick_scale:!0,category:"activity"},woman_playing_water_polo:{keywords:["sports","pool"],char:"🤽‍♀️",fitzpatrick_scale:!0,category:"activity"},man_playing_water_polo:{keywords:["sports","pool"],char:"🤽‍♂️",fitzpatrick_scale:!0,category:"activity"},woman_in_lotus_position:{keywords:["woman","female","meditation","yoga","serenity","zen","mindfulness"],char:"🧘‍♀️",fitzpatrick_scale:!0,category:"activity"},man_in_lotus_position:{keywords:["man","male","meditation","yoga","serenity","zen","mindfulness"],char:"🧘‍♂️",fitzpatrick_scale:!0,category:"activity"},surfing_woman:{keywords:["sports","ocean","sea","summer","beach","woman","female"],char:"🏄‍♀️",fitzpatrick_scale:!0,category:"activity"},surfing_man:{keywords:["sports","ocean","sea","summer","beach"],char:"🏄",fitzpatrick_scale:!0,category:"activity"},bath:{keywords:["clean","shower","bathroom"],char:"🛀",fitzpatrick_scale:!0,category:"activity"},basketball_woman:{keywords:["sports","human","woman","female"],char:"⛹️‍♀️",fitzpatrick_scale:!0,category:"activity"},basketball_man:{keywords:["sports","human"],char:"⛹",fitzpatrick_scale:!0,category:"activity"},weight_lifting_woman:{keywords:["sports","training","exercise","woman","female"],char:"🏋️‍♀️",fitzpatrick_scale:!0,category:"activity"},weight_lifting_man:{keywords:["sports","training","exercise"],char:"🏋",fitzpatrick_scale:!0,category:"activity"},biking_woman:{keywords:["sports","bike","exercise","hipster","woman","female"],char:"🚴‍♀️",fitzpatrick_scale:!0,category:"activity"},biking_man:{keywords:["sports","bike","exercise","hipster"],char:"🚴",fitzpatrick_scale:!0,category:"activity"},mountain_biking_woman:{keywords:["transportation","sports","human","race","bike","woman","female"],char:"🚵‍♀️",fitzpatrick_scale:!0,category:"activity"},mountain_biking_man:{keywords:["transportation","sports","human","race","bike"],char:"🚵",fitzpatrick_scale:!0,category:"activity"},horse_racing:{keywords:["animal","betting","competition","gambling","luck"],char:"🏇",fitzpatrick_scale:!0,category:"activity"},business_suit_levitating:{keywords:["suit","business","levitate","hover","jump"],char:"🕴",fitzpatrick_scale:!0,category:"activity"},trophy:{keywords:["win","award","contest","place","ftw","ceremony"],char:"🏆",fitzpatrick_scale:!1,category:"activity"},running_shirt_with_sash:{keywords:["play","pageant"],char:"🎽",fitzpatrick_scale:!1,category:"activity"},medal_sports:{keywords:["award","winning"],char:"🏅",fitzpatrick_scale:!1,category:"activity"},medal_military:{keywords:["award","winning","army"],char:"🎖",fitzpatrick_scale:!1,category:"activity"},"1st_place_medal":{keywords:["award","winning","first"],char:"🥇",fitzpatrick_scale:!1,category:"activity"},"2nd_place_medal":{keywords:["award","second"],char:"🥈",fitzpatrick_scale:!1,category:"activity"},"3rd_place_medal":{keywords:["award","third"],char:"🥉",fitzpatrick_scale:!1,category:"activity"},reminder_ribbon:{keywords:["sports","cause","support","awareness"],char:"🎗",fitzpatrick_scale:!1,category:"activity"},rosette:{keywords:["flower","decoration","military"],char:"🏵",fitzpatrick_scale:!1,category:"activity"},ticket:{keywords:["event","concert","pass"],char:"🎫",fitzpatrick_scale:!1,category:"activity"},tickets:{keywords:["sports","concert","entrance"],char:"🎟",fitzpatrick_scale:!1,category:"activity"},performing_arts:{keywords:["acting","theater","drama"],char:"🎭",fitzpatrick_scale:!1,category:"activity"},art:{keywords:["design","paint","draw","colors"],char:"🎨",fitzpatrick_scale:!1,category:"activity"},circus_tent:{keywords:["festival","carnival","party"],char:"🎪",fitzpatrick_scale:!1,category:"activity"},woman_juggling:{keywords:["juggle","balance","skill","multitask"],char:"🤹‍♀️",fitzpatrick_scale:!0,category:"activity"},man_juggling:{keywords:["juggle","balance","skill","multitask"],char:"🤹‍♂️",fitzpatrick_scale:!0,category:"activity"},microphone:{keywords:["sound","music","PA","sing","talkshow"],char:"🎤",fitzpatrick_scale:!1,category:"activity"},headphones:{keywords:["music","score","gadgets"],char:"🎧",fitzpatrick_scale:!1,category:"activity"},musical_score:{keywords:["treble","clef","compose"],char:"🎼",fitzpatrick_scale:!1,category:"activity"},musical_keyboard:{keywords:["piano","instrument","compose"],char:"🎹",fitzpatrick_scale:!1,category:"activity"},drum:{keywords:["music","instrument","drumsticks","snare"],char:"🥁",fitzpatrick_scale:!1,category:"activity"},saxophone:{keywords:["music","instrument","jazz","blues"],char:"🎷",fitzpatrick_scale:!1,category:"activity"},trumpet:{keywords:["music","brass"],char:"🎺",fitzpatrick_scale:!1,category:"activity"},guitar:{keywords:["music","instrument"],char:"🎸",fitzpatrick_scale:!1,category:"activity"},violin:{keywords:["music","instrument","orchestra","symphony"],char:"🎻",fitzpatrick_scale:!1,category:"activity"},clapper:{keywords:["movie","film","record"],char:"🎬",fitzpatrick_scale:!1,category:"activity"},video_game:{keywords:["play","console","PS4","controller"],char:"🎮",fitzpatrick_scale:!1,category:"activity"},space_invader:{keywords:["game","arcade","play"],char:"👾",fitzpatrick_scale:!1,category:"activity"},dart:{keywords:["game","play","bar","target","bullseye"],char:"🎯",fitzpatrick_scale:!1,category:"activity"},game_die:{keywords:["dice","random","tabletop","play","luck"],char:"🎲",fitzpatrick_scale:!1,category:"activity"},chess_pawn:{keywords:["expendable"],char:"♟",fitzpatrick_scale:!1,category:"activity"},slot_machine:{keywords:["bet","gamble","vegas","fruit machine","luck","casino"],char:"🎰",fitzpatrick_scale:!1,category:"activity"},jigsaw:{keywords:["interlocking","puzzle","piece"],char:"🧩",fitzpatrick_scale:!1,category:"activity"},bowling:{keywords:["sports","fun","play"],char:"🎳",fitzpatrick_scale:!1,category:"activity"},red_car:{keywords:["red","transportation","vehicle"],char:"🚗",fitzpatrick_scale:!1,category:"travel_and_places"},taxi:{keywords:["uber","vehicle","cars","transportation"],char:"🚕",fitzpatrick_scale:!1,category:"travel_and_places"},blue_car:{keywords:["transportation","vehicle"],char:"🚙",fitzpatrick_scale:!1,category:"travel_and_places"},bus:{keywords:["car","vehicle","transportation"],char:"🚌",fitzpatrick_scale:!1,category:"travel_and_places"},trolleybus:{keywords:["bart","transportation","vehicle"],char:"🚎",fitzpatrick_scale:!1,category:"travel_and_places"},racing_car:{keywords:["sports","race","fast","formula","f1"],char:"🏎",fitzpatrick_scale:!1,category:"travel_and_places"},police_car:{keywords:["vehicle","cars","transportation","law","legal","enforcement"],char:"🚓",fitzpatrick_scale:!1,category:"travel_and_places"},ambulance:{keywords:["health","911","hospital"],char:"🚑",fitzpatrick_scale:!1,category:"travel_and_places"},fire_engine:{keywords:["transportation","cars","vehicle"],char:"🚒",fitzpatrick_scale:!1,category:"travel_and_places"},minibus:{keywords:["vehicle","car","transportation"],char:"🚐",fitzpatrick_scale:!1,category:"travel_and_places"},truck:{keywords:["cars","transportation"],char:"🚚",fitzpatrick_scale:!1,category:"travel_and_places"},articulated_lorry:{keywords:["vehicle","cars","transportation","express"],char:"🚛",fitzpatrick_scale:!1,category:"travel_and_places"},tractor:{keywords:["vehicle","car","farming","agriculture"],char:"🚜",fitzpatrick_scale:!1,category:"travel_and_places"},kick_scooter:{keywords:["vehicle","kick","razor"],char:"🛴",fitzpatrick_scale:!1,category:"travel_and_places"},motorcycle:{keywords:["race","sports","fast"],char:"🏍",fitzpatrick_scale:!1,category:"travel_and_places"},bike:{keywords:["sports","bicycle","exercise","hipster"],char:"🚲",fitzpatrick_scale:!1,category:"travel_and_places"},motor_scooter:{keywords:["vehicle","vespa","sasha"],char:"🛵",fitzpatrick_scale:!1,category:"travel_and_places"},rotating_light:{keywords:["police","ambulance","911","emergency","alert","error","pinged","law","legal"],char:"🚨",fitzpatrick_scale:!1,category:"travel_and_places"},oncoming_police_car:{keywords:["vehicle","law","legal","enforcement","911"],char:"🚔",fitzpatrick_scale:!1,category:"travel_and_places"},oncoming_bus:{keywords:["vehicle","transportation"],char:"🚍",fitzpatrick_scale:!1,category:"travel_and_places"},oncoming_automobile:{keywords:["car","vehicle","transportation"],char:"🚘",fitzpatrick_scale:!1,category:"travel_and_places"},oncoming_taxi:{keywords:["vehicle","cars","uber"],char:"🚖",fitzpatrick_scale:!1,category:"travel_and_places"},aerial_tramway:{keywords:["transportation","vehicle","ski"],char:"🚡",fitzpatrick_scale:!1,category:"travel_and_places"},mountain_cableway:{keywords:["transportation","vehicle","ski"],char:"🚠",fitzpatrick_scale:!1,category:"travel_and_places"},suspension_railway:{keywords:["vehicle","transportation"],char:"🚟",fitzpatrick_scale:!1,category:"travel_and_places"},railway_car:{keywords:["transportation","vehicle"],char:"🚃",fitzpatrick_scale:!1,category:"travel_and_places"},train:{keywords:["transportation","vehicle","carriage","public","travel"],char:"🚋",fitzpatrick_scale:!1,category:"travel_and_places"},monorail:{keywords:["transportation","vehicle"],char:"🚝",fitzpatrick_scale:!1,category:"travel_and_places"},bullettrain_side:{keywords:["transportation","vehicle"],char:"🚄",fitzpatrick_scale:!1,category:"travel_and_places"},bullettrain_front:{keywords:["transportation","vehicle","speed","fast","public","travel"],char:"🚅",fitzpatrick_scale:!1,category:"travel_and_places"},light_rail:{keywords:["transportation","vehicle"],char:"🚈",fitzpatrick_scale:!1,category:"travel_and_places"},mountain_railway:{keywords:["transportation","vehicle"],char:"🚞",fitzpatrick_scale:!1,category:"travel_and_places"},steam_locomotive:{keywords:["transportation","vehicle","train"],char:"🚂",fitzpatrick_scale:!1,category:"travel_and_places"},train2:{keywords:["transportation","vehicle"],char:"🚆",fitzpatrick_scale:!1,category:"travel_and_places"},metro:{keywords:["transportation","blue-square","mrt","underground","tube"],char:"🚇",fitzpatrick_scale:!1,category:"travel_and_places"},tram:{keywords:["transportation","vehicle"],char:"🚊",fitzpatrick_scale:!1,category:"travel_and_places"},station:{keywords:["transportation","vehicle","public"],char:"🚉",fitzpatrick_scale:!1,category:"travel_and_places"},flying_saucer:{keywords:["transportation","vehicle","ufo"],char:"🛸",fitzpatrick_scale:!1,category:"travel_and_places"},helicopter:{keywords:["transportation","vehicle","fly"],char:"🚁",fitzpatrick_scale:!1,category:"travel_and_places"},small_airplane:{keywords:["flight","transportation","fly","vehicle"],char:"🛩",fitzpatrick_scale:!1,category:"travel_and_places"},airplane:{keywords:["vehicle","transportation","flight","fly"],char:"✈️",fitzpatrick_scale:!1,category:"travel_and_places"},flight_departure:{keywords:["airport","flight","landing"],char:"🛫",fitzpatrick_scale:!1,category:"travel_and_places"},flight_arrival:{keywords:["airport","flight","boarding"],char:"🛬",fitzpatrick_scale:!1,category:"travel_and_places"},sailboat:{keywords:["ship","summer","transportation","water","sailing"],char:"⛵",fitzpatrick_scale:!1,category:"travel_and_places"},motor_boat:{keywords:["ship"],char:"🛥",fitzpatrick_scale:!1,category:"travel_and_places"},speedboat:{keywords:["ship","transportation","vehicle","summer"],char:"🚤",fitzpatrick_scale:!1,category:"travel_and_places"},ferry:{keywords:["boat","ship","yacht"],char:"⛴",fitzpatrick_scale:!1,category:"travel_and_places"},passenger_ship:{keywords:["yacht","cruise","ferry"],char:"🛳",fitzpatrick_scale:!1,category:"travel_and_places"},rocket:{keywords:["launch","ship","staffmode","NASA","outer space","outer_space","fly"],char:"🚀",fitzpatrick_scale:!1,category:"travel_and_places"},artificial_satellite:{keywords:["communication","gps","orbit","spaceflight","NASA","ISS"],char:"🛰",fitzpatrick_scale:!1,category:"travel_and_places"},seat:{keywords:["sit","airplane","transport","bus","flight","fly"],char:"💺",fitzpatrick_scale:!1,category:"travel_and_places"},canoe:{keywords:["boat","paddle","water","ship"],char:"🛶",fitzpatrick_scale:!1,category:"travel_and_places"},anchor:{keywords:["ship","ferry","sea","boat"],char:"⚓",fitzpatrick_scale:!1,category:"travel_and_places"},construction:{keywords:["wip","progress","caution","warning"],char:"🚧",fitzpatrick_scale:!1,category:"travel_and_places"},fuelpump:{keywords:["gas station","petroleum"],char:"⛽",fitzpatrick_scale:!1,category:"travel_and_places"},busstop:{keywords:["transportation","wait"],char:"🚏",fitzpatrick_scale:!1,category:"travel_and_places"},vertical_traffic_light:{keywords:["transportation","driving"],char:"🚦",fitzpatrick_scale:!1,category:"travel_and_places"},traffic_light:{keywords:["transportation","signal"],char:"🚥",fitzpatrick_scale:!1,category:"travel_and_places"},checkered_flag:{keywords:["contest","finishline","race","gokart"],char:"🏁",fitzpatrick_scale:!1,category:"travel_and_places"},ship:{keywords:["transportation","titanic","deploy"],char:"🚢",fitzpatrick_scale:!1,category:"travel_and_places"},ferris_wheel:{keywords:["photo","carnival","londoneye"],char:"🎡",fitzpatrick_scale:!1,category:"travel_and_places"},roller_coaster:{keywords:["carnival","playground","photo","fun"],char:"🎢",fitzpatrick_scale:!1,category:"travel_and_places"},carousel_horse:{keywords:["photo","carnival"],char:"🎠",fitzpatrick_scale:!1,category:"travel_and_places"},building_construction:{keywords:["wip","working","progress"],char:"🏗",fitzpatrick_scale:!1,category:"travel_and_places"},foggy:{keywords:["photo","mountain"],char:"🌁",fitzpatrick_scale:!1,category:"travel_and_places"},tokyo_tower:{keywords:["photo","japanese"],char:"🗼",fitzpatrick_scale:!1,category:"travel_and_places"},factory:{keywords:["building","industry","pollution","smoke"],char:"🏭",fitzpatrick_scale:!1,category:"travel_and_places"},fountain:{keywords:["photo","summer","water","fresh"],char:"⛲",fitzpatrick_scale:!1,category:"travel_and_places"},rice_scene:{keywords:["photo","japan","asia","tsukimi"],char:"🎑",fitzpatrick_scale:!1,category:"travel_and_places"},mountain:{keywords:["photo","nature","environment"],char:"⛰",fitzpatrick_scale:!1,category:"travel_and_places"},mountain_snow:{keywords:["photo","nature","environment","winter","cold"],char:"🏔",fitzpatrick_scale:!1,category:"travel_and_places"},mount_fuji:{keywords:["photo","mountain","nature","japanese"],char:"🗻",fitzpatrick_scale:!1,category:"travel_and_places"},volcano:{keywords:["photo","nature","disaster"],char:"🌋",fitzpatrick_scale:!1,category:"travel_and_places"},japan:{keywords:["nation","country","japanese","asia"],char:"🗾",fitzpatrick_scale:!1,category:"travel_and_places"},camping:{keywords:["photo","outdoors","tent"],char:"🏕",fitzpatrick_scale:!1,category:"travel_and_places"},tent:{keywords:["photo","camping","outdoors"],char:"⛺",fitzpatrick_scale:!1,category:"travel_and_places"},national_park:{keywords:["photo","environment","nature"],char:"🏞",fitzpatrick_scale:!1,category:"travel_and_places"},motorway:{keywords:["road","cupertino","interstate","highway"],char:"🛣",fitzpatrick_scale:!1,category:"travel_and_places"},railway_track:{keywords:["train","transportation"],char:"🛤",fitzpatrick_scale:!1,category:"travel_and_places"},sunrise:{keywords:["morning","view","vacation","photo"],char:"🌅",fitzpatrick_scale:!1,category:"travel_and_places"},sunrise_over_mountains:{keywords:["view","vacation","photo"],char:"🌄",fitzpatrick_scale:!1,category:"travel_and_places"},desert:{keywords:["photo","warm","saharah"],char:"🏜",fitzpatrick_scale:!1,category:"travel_and_places"},beach_umbrella:{keywords:["weather","summer","sunny","sand","mojito"],char:"🏖",fitzpatrick_scale:!1,category:"travel_and_places"},desert_island:{keywords:["photo","tropical","mojito"],char:"🏝",fitzpatrick_scale:!1,category:"travel_and_places"},city_sunrise:{keywords:["photo","good morning","dawn"],char:"🌇",fitzpatrick_scale:!1,category:"travel_and_places"},city_sunset:{keywords:["photo","evening","sky","buildings"],char:"🌆",fitzpatrick_scale:!1,category:"travel_and_places"},cityscape:{keywords:["photo","night life","urban"],char:"🏙",fitzpatrick_scale:!1,category:"travel_and_places"},night_with_stars:{keywords:["evening","city","downtown"],char:"🌃",fitzpatrick_scale:!1,category:"travel_and_places"},bridge_at_night:{keywords:["photo","sanfrancisco"],char:"🌉",fitzpatrick_scale:!1,category:"travel_and_places"},milky_way:{keywords:["photo","space","stars"],char:"🌌",fitzpatrick_scale:!1,category:"travel_and_places"},stars:{keywords:["night","photo"],char:"🌠",fitzpatrick_scale:!1,category:"travel_and_places"},sparkler:{keywords:["stars","night","shine"],char:"🎇",fitzpatrick_scale:!1,category:"travel_and_places"},fireworks:{keywords:["photo","festival","carnival","congratulations"],char:"🎆",fitzpatrick_scale:!1,category:"travel_and_places"},rainbow:{keywords:["nature","happy","unicorn_face","photo","sky","spring"],char:"🌈",fitzpatrick_scale:!1,category:"travel_and_places"},houses:{keywords:["buildings","photo"],char:"🏘",fitzpatrick_scale:!1,category:"travel_and_places"},european_castle:{keywords:["building","royalty","history"],char:"🏰",fitzpatrick_scale:!1,category:"travel_and_places"},japanese_castle:{keywords:["photo","building"],char:"🏯",fitzpatrick_scale:!1,category:"travel_and_places"},stadium:{keywords:["photo","place","sports","concert","venue"],char:"🏟",fitzpatrick_scale:!1,category:"travel_and_places"},statue_of_liberty:{keywords:["american","newyork"],char:"🗽",fitzpatrick_scale:!1,category:"travel_and_places"},house:{keywords:["building","home"],char:"🏠",fitzpatrick_scale:!1,category:"travel_and_places"},house_with_garden:{keywords:["home","plant","nature"],char:"🏡",fitzpatrick_scale:!1,category:"travel_and_places"},derelict_house:{keywords:["abandon","evict","broken","building"],char:"🏚",fitzpatrick_scale:!1,category:"travel_and_places"},office:{keywords:["building","bureau","work"],char:"🏢",fitzpatrick_scale:!1,category:"travel_and_places"},department_store:{keywords:["building","shopping","mall"],char:"🏬",fitzpatrick_scale:!1,category:"travel_and_places"},post_office:{keywords:["building","envelope","communication"],char:"🏣",fitzpatrick_scale:!1,category:"travel_and_places"},european_post_office:{keywords:["building","email"],char:"🏤",fitzpatrick_scale:!1,category:"travel_and_places"},hospital:{keywords:["building","health","surgery","doctor"],char:"🏥",fitzpatrick_scale:!1,category:"travel_and_places"},bank:{keywords:["building","money","sales","cash","business","enterprise"],char:"🏦",fitzpatrick_scale:!1,category:"travel_and_places"},hotel:{keywords:["building","accomodation","checkin"],char:"🏨",fitzpatrick_scale:!1,category:"travel_and_places"},convenience_store:{keywords:["building","shopping","groceries"],char:"🏪",fitzpatrick_scale:!1,category:"travel_and_places"},school:{keywords:["building","student","education","learn","teach"],char:"🏫",fitzpatrick_scale:!1,category:"travel_and_places"},love_hotel:{keywords:["like","affection","dating"],char:"🏩",fitzpatrick_scale:!1,category:"travel_and_places"},wedding:{keywords:["love","like","affection","couple","marriage","bride","groom"],char:"💒",fitzpatrick_scale:!1,category:"travel_and_places"},classical_building:{keywords:["art","culture","history"],char:"🏛",fitzpatrick_scale:!1,category:"travel_and_places"},church:{keywords:["building","religion","christ"],char:"⛪",fitzpatrick_scale:!1,category:"travel_and_places"},mosque:{keywords:["islam","worship","minaret"],char:"🕌",fitzpatrick_scale:!1,category:"travel_and_places"},synagogue:{keywords:["judaism","worship","temple","jewish"],char:"🕍",fitzpatrick_scale:!1,category:"travel_and_places"},kaaba:{keywords:["mecca","mosque","islam"],char:"🕋",fitzpatrick_scale:!1,category:"travel_and_places"},shinto_shrine:{keywords:["temple","japan","kyoto"],char:"⛩",fitzpatrick_scale:!1,category:"travel_and_places"},watch:{keywords:["time","accessories"],char:"⌚",fitzpatrick_scale:!1,category:"objects"},iphone:{keywords:["technology","apple","gadgets","dial"],char:"📱",fitzpatrick_scale:!1,category:"objects"},calling:{keywords:["iphone","incoming"],char:"📲",fitzpatrick_scale:!1,category:"objects"},computer:{keywords:["technology","laptop","screen","display","monitor"],char:"💻",fitzpatrick_scale:!1,category:"objects"},keyboard:{keywords:["technology","computer","type","input","text"],char:"⌨",fitzpatrick_scale:!1,category:"objects"},desktop_computer:{keywords:["technology","computing","screen"],char:"🖥",fitzpatrick_scale:!1,category:"objects"},printer:{keywords:["paper","ink"],char:"🖨",fitzpatrick_scale:!1,category:"objects"},computer_mouse:{keywords:["click"],char:"🖱",fitzpatrick_scale:!1,category:"objects"},trackball:{keywords:["technology","trackpad"],char:"🖲",fitzpatrick_scale:!1,category:"objects"},joystick:{keywords:["game","play"],char:"🕹",fitzpatrick_scale:!1,category:"objects"},clamp:{keywords:["tool"],char:"🗜",fitzpatrick_scale:!1,category:"objects"},minidisc:{keywords:["technology","record","data","disk","90s"],char:"💽",fitzpatrick_scale:!1,category:"objects"},floppy_disk:{keywords:["oldschool","technology","save","90s","80s"],char:"💾",fitzpatrick_scale:!1,category:"objects"},cd:{keywords:["technology","dvd","disk","disc","90s"],char:"💿",fitzpatrick_scale:!1,category:"objects"},dvd:{keywords:["cd","disk","disc"],char:"📀",fitzpatrick_scale:!1,category:"objects"},vhs:{keywords:["record","video","oldschool","90s","80s"],char:"📼",fitzpatrick_scale:!1,category:"objects"},camera:{keywords:["gadgets","photography"],char:"📷",fitzpatrick_scale:!1,category:"objects"},camera_flash:{keywords:["photography","gadgets"],char:"📸",fitzpatrick_scale:!1,category:"objects"},video_camera:{keywords:["film","record"],char:"📹",fitzpatrick_scale:!1,category:"objects"},movie_camera:{keywords:["film","record"],char:"🎥",fitzpatrick_scale:!1,category:"objects"},film_projector:{keywords:["video","tape","record","movie"],char:"📽",fitzpatrick_scale:!1,category:"objects"},film_strip:{keywords:["movie"],char:"🎞",fitzpatrick_scale:!1,category:"objects"},telephone_receiver:{keywords:["technology","communication","dial"],char:"📞",fitzpatrick_scale:!1,category:"objects"},phone:{keywords:["technology","communication","dial","telephone"],char:"☎️",fitzpatrick_scale:!1,category:"objects"},pager:{keywords:["bbcall","oldschool","90s"],char:"📟",fitzpatrick_scale:!1,category:"objects"},fax:{keywords:["communication","technology"],char:"📠",fitzpatrick_scale:!1,category:"objects"},tv:{keywords:["technology","program","oldschool","show","television"],char:"📺",fitzpatrick_scale:!1,category:"objects"},radio:{keywords:["communication","music","podcast","program"],char:"📻",fitzpatrick_scale:!1,category:"objects"},studio_microphone:{keywords:["sing","recording","artist","talkshow"],char:"🎙",fitzpatrick_scale:!1,category:"objects"},level_slider:{keywords:["scale"],char:"🎚",fitzpatrick_scale:!1,category:"objects"},control_knobs:{keywords:["dial"],char:"🎛",fitzpatrick_scale:!1,category:"objects"},compass:{keywords:["magnetic","navigation","orienteering"],char:"🧭",fitzpatrick_scale:!1,category:"objects"},stopwatch:{keywords:["time","deadline"],char:"⏱",fitzpatrick_scale:!1,category:"objects"},timer_clock:{keywords:["alarm"],char:"⏲",fitzpatrick_scale:!1,category:"objects"},alarm_clock:{keywords:["time","wake"],char:"⏰",fitzpatrick_scale:!1,category:"objects"},mantelpiece_clock:{keywords:["time"],char:"🕰",fitzpatrick_scale:!1,category:"objects"},hourglass_flowing_sand:{keywords:["oldschool","time","countdown"],char:"⏳",fitzpatrick_scale:!1,category:"objects"},hourglass:{keywords:["time","clock","oldschool","limit","exam","quiz","test"],char:"⌛",fitzpatrick_scale:!1,category:"objects"},satellite:{keywords:["communication","future","radio","space"],char:"📡",fitzpatrick_scale:!1,category:"objects"},battery:{keywords:["power","energy","sustain"],char:"🔋",fitzpatrick_scale:!1,category:"objects"},electric_plug:{keywords:["charger","power"],char:"🔌",fitzpatrick_scale:!1,category:"objects"},bulb:{keywords:["light","electricity","idea"],char:"💡",fitzpatrick_scale:!1,category:"objects"},flashlight:{keywords:["dark","camping","sight","night"],char:"🔦",fitzpatrick_scale:!1,category:"objects"},candle:{keywords:["fire","wax"],char:"🕯",fitzpatrick_scale:!1,category:"objects"},fire_extinguisher:{keywords:["quench"],char:"🧯",fitzpatrick_scale:!1,category:"objects"},wastebasket:{keywords:["bin","trash","rubbish","garbage","toss"],char:"🗑",fitzpatrick_scale:!1,category:"objects"},oil_drum:{keywords:["barrell"],char:"🛢",fitzpatrick_scale:!1,category:"objects"},money_with_wings:{keywords:["dollar","bills","payment","sale"],char:"💸",fitzpatrick_scale:!1,category:"objects"},dollar:{keywords:["money","sales","bill","currency"],char:"💵",fitzpatrick_scale:!1,category:"objects"},yen:{keywords:["money","sales","japanese","dollar","currency"],char:"💴",fitzpatrick_scale:!1,category:"objects"},euro:{keywords:["money","sales","dollar","currency"],char:"💶",fitzpatrick_scale:!1,category:"objects"},pound:{keywords:["british","sterling","money","sales","bills","uk","england","currency"],char:"💷",fitzpatrick_scale:!1,category:"objects"},moneybag:{keywords:["dollar","payment","coins","sale"],char:"💰",fitzpatrick_scale:!1,category:"objects"},credit_card:{keywords:["money","sales","dollar","bill","payment","shopping"],char:"💳",fitzpatrick_scale:!1,category:"objects"},gem:{keywords:["blue","ruby","diamond","jewelry"],char:"💎",fitzpatrick_scale:!1,category:"objects"},balance_scale:{keywords:["law","fairness","weight"],char:"⚖",fitzpatrick_scale:!1,category:"objects"},toolbox:{keywords:["tools","diy","fix","maintainer","mechanic"],char:"🧰",fitzpatrick_scale:!1,category:"objects"},wrench:{keywords:["tools","diy","ikea","fix","maintainer"],char:"🔧",fitzpatrick_scale:!1,category:"objects"},hammer:{keywords:["tools","build","create"],char:"🔨",fitzpatrick_scale:!1,category:"objects"},hammer_and_pick:{keywords:["tools","build","create"],char:"⚒",fitzpatrick_scale:!1,category:"objects"},hammer_and_wrench:{keywords:["tools","build","create"],char:"🛠",fitzpatrick_scale:!1,category:"objects"},pick:{keywords:["tools","dig"],char:"⛏",fitzpatrick_scale:!1,category:"objects"},nut_and_bolt:{keywords:["handy","tools","fix"],char:"🔩",fitzpatrick_scale:!1,category:"objects"},gear:{keywords:["cog"],char:"⚙",fitzpatrick_scale:!1,category:"objects"},brick:{keywords:["bricks"],char:"🧱",fitzpatrick_scale:!1,category:"objects"},chains:{keywords:["lock","arrest"],char:"⛓",fitzpatrick_scale:!1,category:"objects"},magnet:{keywords:["attraction","magnetic"],char:"🧲",fitzpatrick_scale:!1,category:"objects"},gun:{keywords:["violence","weapon","pistol","revolver"],char:"🔫",fitzpatrick_scale:!1,category:"objects"},bomb:{keywords:["boom","explode","explosion","terrorism"],char:"💣",fitzpatrick_scale:!1,category:"objects"},firecracker:{keywords:["dynamite","boom","explode","explosion","explosive"],char:"🧨",fitzpatrick_scale:!1,category:"objects"},hocho:{keywords:["knife","blade","cutlery","kitchen","weapon"],char:"🔪",fitzpatrick_scale:!1,category:"objects"},dagger:{keywords:["weapon"],char:"🗡",fitzpatrick_scale:!1,category:"objects"},crossed_swords:{keywords:["weapon"],char:"⚔",fitzpatrick_scale:!1,category:"objects"},shield:{keywords:["protection","security"],char:"🛡",fitzpatrick_scale:!1,category:"objects"},smoking:{keywords:["kills","tobacco","cigarette","joint","smoke"],char:"🚬",fitzpatrick_scale:!1,category:"objects"},skull_and_crossbones:{keywords:["poison","danger","deadly","scary","death","pirate","evil"],char:"☠",fitzpatrick_scale:!1,category:"objects"},coffin:{keywords:["vampire","dead","die","death","rip","graveyard","cemetery","casket","funeral","box"],char:"⚰",fitzpatrick_scale:!1,category:"objects"},funeral_urn:{keywords:["dead","die","death","rip","ashes"],char:"⚱",fitzpatrick_scale:!1,category:"objects"},amphora:{keywords:["vase","jar"],char:"🏺",fitzpatrick_scale:!1,category:"objects"},crystal_ball:{keywords:["disco","party","magic","circus","fortune_teller"],char:"🔮",fitzpatrick_scale:!1,category:"objects"},prayer_beads:{keywords:["dhikr","religious"],char:"📿",fitzpatrick_scale:!1,category:"objects"},nazar_amulet:{keywords:["bead","charm"],char:"🧿",fitzpatrick_scale:!1,category:"objects"},barber:{keywords:["hair","salon","style"],char:"💈",fitzpatrick_scale:!1,category:"objects"},alembic:{keywords:["distilling","science","experiment","chemistry"],char:"⚗",fitzpatrick_scale:!1,category:"objects"},telescope:{keywords:["stars","space","zoom","science","astronomy"],char:"🔭",fitzpatrick_scale:!1,category:"objects"},microscope:{keywords:["laboratory","experiment","zoomin","science","study"],char:"🔬",fitzpatrick_scale:!1,category:"objects"},hole:{keywords:["embarrassing"],char:"🕳",fitzpatrick_scale:!1,category:"objects"},pill:{keywords:["health","medicine","doctor","pharmacy","drug"],char:"💊",fitzpatrick_scale:!1,category:"objects"},syringe:{keywords:["health","hospital","drugs","blood","medicine","needle","doctor","nurse"],char:"💉",fitzpatrick_scale:!1,category:"objects"},dna:{keywords:["biologist","genetics","life"],char:"🧬",fitzpatrick_scale:!1,category:"objects"},microbe:{keywords:["amoeba","bacteria","germs"],char:"🦠",fitzpatrick_scale:!1,category:"objects"},petri_dish:{keywords:["bacteria","biology","culture","lab"],char:"🧫",fitzpatrick_scale:!1,category:"objects"},test_tube:{keywords:["chemistry","experiment","lab","science"],char:"🧪",fitzpatrick_scale:!1,category:"objects"},thermometer:{keywords:["weather","temperature","hot","cold"],char:"🌡",fitzpatrick_scale:!1,category:"objects"},broom:{keywords:["cleaning","sweeping","witch"],char:"🧹",fitzpatrick_scale:!1,category:"objects"},basket:{keywords:["laundry"],char:"🧺",fitzpatrick_scale:!1,category:"objects"},toilet_paper:{keywords:["roll"],char:"🧻",fitzpatrick_scale:!1,category:"objects"},label:{keywords:["sale","tag"],char:"🏷",fitzpatrick_scale:!1,category:"objects"},bookmark:{keywords:["favorite","label","save"],char:"🔖",fitzpatrick_scale:!1,category:"objects"},toilet:{keywords:["restroom","wc","washroom","bathroom","potty"],char:"🚽",fitzpatrick_scale:!1,category:"objects"},shower:{keywords:["clean","water","bathroom"],char:"🚿",fitzpatrick_scale:!1,category:"objects"},bathtub:{keywords:["clean","shower","bathroom"],char:"🛁",fitzpatrick_scale:!1,category:"objects"},soap:{keywords:["bar","bathing","cleaning","lather"],char:"🧼",fitzpatrick_scale:!1,category:"objects"},sponge:{keywords:["absorbing","cleaning","porous"],char:"🧽",fitzpatrick_scale:!1,category:"objects"},lotion_bottle:{keywords:["moisturizer","sunscreen"],char:"🧴",fitzpatrick_scale:!1,category:"objects"},key:{keywords:["lock","door","password"],char:"🔑",fitzpatrick_scale:!1,category:"objects"},old_key:{keywords:["lock","door","password"],char:"🗝",fitzpatrick_scale:!1,category:"objects"},couch_and_lamp:{keywords:["read","chill"],char:"🛋",fitzpatrick_scale:!1,category:"objects"},sleeping_bed:{keywords:["bed","rest"],char:"🛌",fitzpatrick_scale:!0,category:"objects"},bed:{keywords:["sleep","rest"],char:"🛏",fitzpatrick_scale:!1,category:"objects"},door:{keywords:["house","entry","exit"],char:"🚪",fitzpatrick_scale:!1,category:"objects"},bellhop_bell:{keywords:["service"],char:"🛎",fitzpatrick_scale:!1,category:"objects"},teddy_bear:{keywords:["plush","stuffed"],char:"🧸",fitzpatrick_scale:!1,category:"objects"},framed_picture:{keywords:["photography"],char:"🖼",fitzpatrick_scale:!1,category:"objects"},world_map:{keywords:["location","direction"],char:"🗺",fitzpatrick_scale:!1,category:"objects"},parasol_on_ground:{keywords:["weather","summer"],char:"⛱",fitzpatrick_scale:!1,category:"objects"},moyai:{keywords:["rock","easter island","moai"],char:"🗿",fitzpatrick_scale:!1,category:"objects"},shopping:{keywords:["mall","buy","purchase"],char:"🛍",fitzpatrick_scale:!1,category:"objects"},shopping_cart:{keywords:["trolley"],char:"🛒",fitzpatrick_scale:!1,category:"objects"},balloon:{keywords:["party","celebration","birthday","circus"],char:"🎈",fitzpatrick_scale:!1,category:"objects"},flags:{keywords:["fish","japanese","koinobori","carp","banner"],char:"🎏",fitzpatrick_scale:!1,category:"objects"},ribbon:{keywords:["decoration","pink","girl","bowtie"],char:"🎀",fitzpatrick_scale:!1,category:"objects"},gift:{keywords:["present","birthday","christmas","xmas"],char:"🎁",fitzpatrick_scale:!1,category:"objects"},confetti_ball:{keywords:["festival","party","birthday","circus"],char:"🎊",fitzpatrick_scale:!1,category:"objects"},tada:{keywords:["party","congratulations","birthday","magic","circus","celebration"],char:"🎉",fitzpatrick_scale:!1,category:"objects"},dolls:{keywords:["japanese","toy","kimono"],char:"🎎",fitzpatrick_scale:!1,category:"objects"},wind_chime:{keywords:["nature","ding","spring","bell"],char:"🎐",fitzpatrick_scale:!1,category:"objects"},crossed_flags:{keywords:["japanese","nation","country","border"],char:"🎌",fitzpatrick_scale:!1,category:"objects"},izakaya_lantern:{keywords:["light","paper","halloween","spooky"],char:"🏮",fitzpatrick_scale:!1,category:"objects"},red_envelope:{keywords:["gift"],char:"🧧",fitzpatrick_scale:!1,category:"objects"},email:{keywords:["letter","postal","inbox","communication"],char:"✉️",fitzpatrick_scale:!1,category:"objects"},envelope_with_arrow:{keywords:["email","communication"],char:"📩",fitzpatrick_scale:!1,category:"objects"},incoming_envelope:{keywords:["email","inbox"],char:"📨",fitzpatrick_scale:!1,category:"objects"},"e-mail":{keywords:["communication","inbox"],char:"📧",fitzpatrick_scale:!1,category:"objects"},love_letter:{keywords:["email","like","affection","envelope","valentines"],char:"💌",fitzpatrick_scale:!1,category:"objects"},postbox:{keywords:["email","letter","envelope"],char:"📮",fitzpatrick_scale:!1,category:"objects"},mailbox_closed:{keywords:["email","communication","inbox"],char:"📪",fitzpatrick_scale:!1,category:"objects"},mailbox:{keywords:["email","inbox","communication"],char:"📫",fitzpatrick_scale:!1,category:"objects"},mailbox_with_mail:{keywords:["email","inbox","communication"],char:"📬",fitzpatrick_scale:!1,category:"objects"},mailbox_with_no_mail:{keywords:["email","inbox"],char:"📭",fitzpatrick_scale:!1,category:"objects"},package:{keywords:["mail","gift","cardboard","box","moving"],char:"📦",fitzpatrick_scale:!1,category:"objects"},postal_horn:{keywords:["instrument","music"],char:"📯",fitzpatrick_scale:!1,category:"objects"},inbox_tray:{keywords:["email","documents"],char:"📥",fitzpatrick_scale:!1,category:"objects"},outbox_tray:{keywords:["inbox","email"],char:"📤",fitzpatrick_scale:!1,category:"objects"},scroll:{keywords:["documents","ancient","history","paper"],char:"📜",fitzpatrick_scale:!1,category:"objects"},page_with_curl:{keywords:["documents","office","paper"],char:"📃",fitzpatrick_scale:!1,category:"objects"},bookmark_tabs:{keywords:["favorite","save","order","tidy"],char:"📑",fitzpatrick_scale:!1,category:"objects"},receipt:{keywords:["accounting","expenses"],char:"🧾",fitzpatrick_scale:!1,category:"objects"},bar_chart:{keywords:["graph","presentation","stats"],char:"📊",fitzpatrick_scale:!1,category:"objects"},chart_with_upwards_trend:{keywords:["graph","presentation","stats","recovery","business","economics","money","sales","good","success"],char:"📈",fitzpatrick_scale:!1,category:"objects"},chart_with_downwards_trend:{keywords:["graph","presentation","stats","recession","business","economics","money","sales","bad","failure"],char:"📉",fitzpatrick_scale:!1,category:"objects"},page_facing_up:{keywords:["documents","office","paper","information"],char:"📄",fitzpatrick_scale:!1,category:"objects"},date:{keywords:["calendar","schedule"],char:"📅",fitzpatrick_scale:!1,category:"objects"},calendar:{keywords:["schedule","date","planning"],char:"📆",fitzpatrick_scale:!1,category:"objects"},spiral_calendar:{keywords:["date","schedule","planning"],char:"🗓",fitzpatrick_scale:!1,category:"objects"},card_index:{keywords:["business","stationery"],char:"📇",fitzpatrick_scale:!1,category:"objects"},card_file_box:{keywords:["business","stationery"],char:"🗃",fitzpatrick_scale:!1,category:"objects"},ballot_box:{keywords:["election","vote"],char:"🗳",fitzpatrick_scale:!1,category:"objects"},file_cabinet:{keywords:["filing","organizing"],char:"🗄",fitzpatrick_scale:!1,category:"objects"},clipboard:{keywords:["stationery","documents"],char:"📋",fitzpatrick_scale:!1,category:"objects"},spiral_notepad:{keywords:["memo","stationery"],char:"🗒",fitzpatrick_scale:!1,category:"objects"},file_folder:{keywords:["documents","business","office"],char:"📁",fitzpatrick_scale:!1,category:"objects"},open_file_folder:{keywords:["documents","load"],char:"📂",fitzpatrick_scale:!1,category:"objects"},card_index_dividers:{keywords:["organizing","business","stationery"],char:"🗂",fitzpatrick_scale:!1,category:"objects"},newspaper_roll:{keywords:["press","headline"],char:"🗞",fitzpatrick_scale:!1,category:"objects"},newspaper:{keywords:["press","headline"],char:"📰",fitzpatrick_scale:!1,category:"objects"},notebook:{keywords:["stationery","record","notes","paper","study"],char:"📓",fitzpatrick_scale:!1,category:"objects"},closed_book:{keywords:["read","library","knowledge","textbook","learn"],char:"📕",fitzpatrick_scale:!1,category:"objects"},green_book:{keywords:["read","library","knowledge","study"],char:"📗",fitzpatrick_scale:!1,category:"objects"},blue_book:{keywords:["read","library","knowledge","learn","study"],char:"📘",fitzpatrick_scale:!1,category:"objects"},orange_book:{keywords:["read","library","knowledge","textbook","study"],char:"📙",fitzpatrick_scale:!1,category:"objects"},notebook_with_decorative_cover:{keywords:["classroom","notes","record","paper","study"],char:"📔",fitzpatrick_scale:!1,category:"objects"},ledger:{keywords:["notes","paper"],char:"📒",fitzpatrick_scale:!1,category:"objects"},books:{keywords:["literature","library","study"],char:"📚",fitzpatrick_scale:!1,category:"objects"},open_book:{keywords:["book","read","library","knowledge","literature","learn","study"],char:"📖",fitzpatrick_scale:!1,category:"objects"},safety_pin:{keywords:["diaper"],char:"🧷",fitzpatrick_scale:!1,category:"objects"},link:{keywords:["rings","url"],char:"🔗",fitzpatrick_scale:!1,category:"objects"},paperclip:{keywords:["documents","stationery"],char:"📎",fitzpatrick_scale:!1,category:"objects"},paperclips:{keywords:["documents","stationery"],char:"🖇",fitzpatrick_scale:!1,category:"objects"},scissors:{keywords:["stationery","cut"],char:"✂️",fitzpatrick_scale:!1,category:"objects"},triangular_ruler:{keywords:["stationery","math","architect","sketch"],char:"📐",fitzpatrick_scale:!1,category:"objects"},straight_ruler:{keywords:["stationery","calculate","length","math","school","drawing","architect","sketch"],char:"📏",fitzpatrick_scale:!1,category:"objects"},abacus:{keywords:["calculation"],char:"🧮",fitzpatrick_scale:!1,category:"objects"},pushpin:{keywords:["stationery","mark","here"],char:"📌",fitzpatrick_scale:!1,category:"objects"},round_pushpin:{keywords:["stationery","location","map","here"],char:"📍",fitzpatrick_scale:!1,category:"objects"},triangular_flag_on_post:{keywords:["mark","milestone","place"],char:"🚩",fitzpatrick_scale:!1,category:"objects"},white_flag:{keywords:["losing","loser","lost","surrender","give up","fail"],char:"🏳",fitzpatrick_scale:!1,category:"objects"},black_flag:{keywords:["pirate"],char:"🏴",fitzpatrick_scale:!1,category:"objects"},rainbow_flag:{keywords:["flag","rainbow","pride","gay","lgbt","glbt","queer","homosexual","lesbian","bisexual","transgender"],char:"🏳️‍🌈",fitzpatrick_scale:!1,category:"objects"},closed_lock_with_key:{keywords:["security","privacy"],char:"🔐",fitzpatrick_scale:!1,category:"objects"},lock:{keywords:["security","password","padlock"],char:"🔒",fitzpatrick_scale:!1,category:"objects"},unlock:{keywords:["privacy","security"],char:"🔓",fitzpatrick_scale:!1,category:"objects"},lock_with_ink_pen:{keywords:["security","secret"],char:"🔏",fitzpatrick_scale:!1,category:"objects"},pen:{keywords:["stationery","writing","write"],char:"🖊",fitzpatrick_scale:!1,category:"objects"},fountain_pen:{keywords:["stationery","writing","write"],char:"🖋",fitzpatrick_scale:!1,category:"objects"},black_nib:{keywords:["pen","stationery","writing","write"],char:"✒️",fitzpatrick_scale:!1,category:"objects"},memo:{keywords:["write","documents","stationery","pencil","paper","writing","legal","exam","quiz","test","study","compose"],char:"📝",fitzpatrick_scale:!1,category:"objects"},pencil2:{keywords:["stationery","write","paper","writing","school","study"],char:"✏️",fitzpatrick_scale:!1,category:"objects"},crayon:{keywords:["drawing","creativity"],char:"🖍",fitzpatrick_scale:!1,category:"objects"},paintbrush:{keywords:["drawing","creativity","art"],char:"🖌",fitzpatrick_scale:!1,category:"objects"},mag:{keywords:["search","zoom","find","detective"],char:"🔍",fitzpatrick_scale:!1,category:"objects"},mag_right:{keywords:["search","zoom","find","detective"],char:"🔎",fitzpatrick_scale:!1,category:"objects"},heart:{keywords:["love","like","valentines"],char:"❤️",fitzpatrick_scale:!1,category:"symbols"},orange_heart:{keywords:["love","like","affection","valentines"],char:"🧡",fitzpatrick_scale:!1,category:"symbols"},yellow_heart:{keywords:["love","like","affection","valentines"],char:"💛",fitzpatrick_scale:!1,category:"symbols"},green_heart:{keywords:["love","like","affection","valentines"],char:"💚",fitzpatrick_scale:!1,category:"symbols"},blue_heart:{keywords:["love","like","affection","valentines"],char:"💙",fitzpatrick_scale:!1,category:"symbols"},purple_heart:{keywords:["love","like","affection","valentines"],char:"💜",fitzpatrick_scale:!1,category:"symbols"},black_heart:{keywords:["evil"],char:"🖤",fitzpatrick_scale:!1,category:"symbols"},broken_heart:{keywords:["sad","sorry","break","heart","heartbreak"],char:"💔",fitzpatrick_scale:!1,category:"symbols"},heavy_heart_exclamation:{keywords:["decoration","love"],char:"❣",fitzpatrick_scale:!1,category:"symbols"},two_hearts:{keywords:["love","like","affection","valentines","heart"],char:"💕",fitzpatrick_scale:!1,category:"symbols"},revolving_hearts:{keywords:["love","like","affection","valentines"],char:"💞",fitzpatrick_scale:!1,category:"symbols"},heartbeat:{keywords:["love","like","affection","valentines","pink","heart"],char:"💓",fitzpatrick_scale:!1,category:"symbols"},heartpulse:{keywords:["like","love","affection","valentines","pink"],char:"💗",fitzpatrick_scale:!1,category:"symbols"},sparkling_heart:{keywords:["love","like","affection","valentines"],char:"💖",fitzpatrick_scale:!1,category:"symbols"},cupid:{keywords:["love","like","heart","affection","valentines"],char:"💘",fitzpatrick_scale:!1,category:"symbols"},gift_heart:{keywords:["love","valentines"],char:"💝",fitzpatrick_scale:!1,category:"symbols"},heart_decoration:{keywords:["purple-square","love","like"],char:"💟",fitzpatrick_scale:!1,category:"symbols"},peace_symbol:{keywords:["hippie"],char:"☮",fitzpatrick_scale:!1,category:"symbols"},latin_cross:{keywords:["christianity"],char:"✝",fitzpatrick_scale:!1,category:"symbols"},star_and_crescent:{keywords:["islam"],char:"☪",fitzpatrick_scale:!1,category:"symbols"},om:{keywords:["hinduism","buddhism","sikhism","jainism"],char:"🕉",fitzpatrick_scale:!1,category:"symbols"},wheel_of_dharma:{keywords:["hinduism","buddhism","sikhism","jainism"],char:"☸",fitzpatrick_scale:!1,category:"symbols"},star_of_david:{keywords:["judaism"],char:"✡",fitzpatrick_scale:!1,category:"symbols"},six_pointed_star:{keywords:["purple-square","religion","jewish","hexagram"],char:"🔯",fitzpatrick_scale:!1,category:"symbols"},menorah:{keywords:["hanukkah","candles","jewish"],char:"🕎",fitzpatrick_scale:!1,category:"symbols"},yin_yang:{keywords:["balance"],char:"☯",fitzpatrick_scale:!1,category:"symbols"},orthodox_cross:{keywords:["suppedaneum","religion"],char:"☦",fitzpatrick_scale:!1,category:"symbols"},place_of_worship:{keywords:["religion","church","temple","prayer"],char:"🛐",fitzpatrick_scale:!1,category:"symbols"},ophiuchus:{keywords:["sign","purple-square","constellation","astrology"],char:"⛎",fitzpatrick_scale:!1,category:"symbols"},aries:{keywords:["sign","purple-square","zodiac","astrology"],char:"♈",fitzpatrick_scale:!1,category:"symbols"},taurus:{keywords:["purple-square","sign","zodiac","astrology"],char:"♉",fitzpatrick_scale:!1,category:"symbols"},gemini:{keywords:["sign","zodiac","purple-square","astrology"],char:"♊",fitzpatrick_scale:!1,category:"symbols"},cancer:{keywords:["sign","zodiac","purple-square","astrology"],char:"♋",fitzpatrick_scale:!1,category:"symbols"},leo:{keywords:["sign","purple-square","zodiac","astrology"],char:"♌",fitzpatrick_scale:!1,category:"symbols"},virgo:{keywords:["sign","zodiac","purple-square","astrology"],char:"♍",fitzpatrick_scale:!1,category:"symbols"},libra:{keywords:["sign","purple-square","zodiac","astrology"],char:"♎",fitzpatrick_scale:!1,category:"symbols"},scorpius:{keywords:["sign","zodiac","purple-square","astrology","scorpio"],char:"♏",fitzpatrick_scale:!1,category:"symbols"},sagittarius:{keywords:["sign","zodiac","purple-square","astrology"],char:"♐",fitzpatrick_scale:!1,category:"symbols"},capricorn:{keywords:["sign","zodiac","purple-square","astrology"],char:"♑",fitzpatrick_scale:!1,category:"symbols"},aquarius:{keywords:["sign","purple-square","zodiac","astrology"],char:"♒",fitzpatrick_scale:!1,category:"symbols"},pisces:{keywords:["purple-square","sign","zodiac","astrology"],char:"♓",fitzpatrick_scale:!1,category:"symbols"},id:{keywords:["purple-square","words"],char:"🆔",fitzpatrick_scale:!1,category:"symbols"},atom_symbol:{keywords:["science","physics","chemistry"],char:"⚛",fitzpatrick_scale:!1,category:"symbols"},u7a7a:{keywords:["kanji","japanese","chinese","empty","sky","blue-square"],char:"🈳",fitzpatrick_scale:!1,category:"symbols"},u5272:{keywords:["cut","divide","chinese","kanji","pink-square"],char:"🈹",fitzpatrick_scale:!1,category:"symbols"},radioactive:{keywords:["nuclear","danger"],char:"☢",fitzpatrick_scale:!1,category:"symbols"},biohazard:{keywords:["danger"],char:"☣",fitzpatrick_scale:!1,category:"symbols"},mobile_phone_off:{keywords:["mute","orange-square","silence","quiet"],char:"📴",fitzpatrick_scale:!1,category:"symbols"},vibration_mode:{keywords:["orange-square","phone"],char:"📳",fitzpatrick_scale:!1,category:"symbols"},u6709:{keywords:["orange-square","chinese","have","kanji"],char:"🈶",fitzpatrick_scale:!1,category:"symbols"},u7121:{keywords:["nothing","chinese","kanji","japanese","orange-square"],char:"🈚",fitzpatrick_scale:!1,category:"symbols"},u7533:{keywords:["chinese","japanese","kanji","orange-square"],char:"🈸",fitzpatrick_scale:!1,category:"symbols"},u55b6:{keywords:["japanese","opening hours","orange-square"],char:"🈺",fitzpatrick_scale:!1,category:"symbols"},u6708:{keywords:["chinese","month","moon","japanese","orange-square","kanji"],char:"🈷️",fitzpatrick_scale:!1,category:"symbols"},eight_pointed_black_star:{keywords:["orange-square","shape","polygon"],char:"✴️",fitzpatrick_scale:!1,category:"symbols"},vs:{keywords:["words","orange-square"],char:"🆚",fitzpatrick_scale:!1,category:"symbols"},accept:{keywords:["ok","good","chinese","kanji","agree","yes","orange-circle"],char:"🉑",fitzpatrick_scale:!1,category:"symbols"},white_flower:{keywords:["japanese","spring"],char:"💮",fitzpatrick_scale:!1,category:"symbols"},ideograph_advantage:{keywords:["chinese","kanji","obtain","get","circle"],char:"🉐",fitzpatrick_scale:!1,category:"symbols"},secret:{keywords:["privacy","chinese","sshh","kanji","red-circle"],char:"㊙️",fitzpatrick_scale:!1,category:"symbols"},congratulations:{keywords:["chinese","kanji","japanese","red-circle"],char:"㊗️",fitzpatrick_scale:!1,category:"symbols"},u5408:{keywords:["japanese","chinese","join","kanji","red-square"],char:"🈴",fitzpatrick_scale:!1,category:"symbols"},u6e80:{keywords:["full","chinese","japanese","red-square","kanji"],char:"🈵",fitzpatrick_scale:!1,category:"symbols"},u7981:{keywords:["kanji","japanese","chinese","forbidden","limit","restricted","red-square"],char:"🈲",fitzpatrick_scale:!1,category:"symbols"},a:{keywords:["red-square","alphabet","letter"],char:"🅰️",fitzpatrick_scale:!1,category:"symbols"},b:{keywords:["red-square","alphabet","letter"],char:"🅱️",fitzpatrick_scale:!1,category:"symbols"},ab:{keywords:["red-square","alphabet"],char:"🆎",fitzpatrick_scale:!1,category:"symbols"},cl:{keywords:["alphabet","words","red-square"],char:"🆑",fitzpatrick_scale:!1,category:"symbols"},o2:{keywords:["alphabet","red-square","letter"],char:"🅾️",fitzpatrick_scale:!1,category:"symbols"},sos:{keywords:["help","red-square","words","emergency","911"],char:"🆘",fitzpatrick_scale:!1,category:"symbols"},no_entry:{keywords:["limit","security","privacy","bad","denied","stop","circle"],char:"⛔",fitzpatrick_scale:!1,category:"symbols"},name_badge:{keywords:["fire","forbid"],char:"📛",fitzpatrick_scale:!1,category:"symbols"},no_entry_sign:{keywords:["forbid","stop","limit","denied","disallow","circle"],char:"🚫",fitzpatrick_scale:!1,category:"symbols"},x:{keywords:["no","delete","remove","cancel","red"],char:"❌",fitzpatrick_scale:!1,category:"symbols"},o:{keywords:["circle","round"],char:"⭕",fitzpatrick_scale:!1,category:"symbols"},stop_sign:{keywords:["stop"],char:"🛑",fitzpatrick_scale:!1,category:"symbols"},anger:{keywords:["angry","mad"],char:"💢",fitzpatrick_scale:!1,category:"symbols"},hotsprings:{keywords:["bath","warm","relax"],char:"♨️",fitzpatrick_scale:!1,category:"symbols"},no_pedestrians:{keywords:["rules","crossing","walking","circle"],char:"🚷",fitzpatrick_scale:!1,category:"symbols"},do_not_litter:{keywords:["trash","bin","garbage","circle"],char:"🚯",fitzpatrick_scale:!1,category:"symbols"},no_bicycles:{keywords:["cyclist","prohibited","circle"],char:"🚳",fitzpatrick_scale:!1,category:"symbols"},"non-potable_water":{keywords:["drink","faucet","tap","circle"],char:"🚱",fitzpatrick_scale:!1,category:"symbols"},underage:{keywords:["18","drink","pub","night","minor","circle"],char:"🔞",fitzpatrick_scale:!1,category:"symbols"},no_mobile_phones:{keywords:["iphone","mute","circle"],char:"📵",fitzpatrick_scale:!1,category:"symbols"},exclamation:{keywords:["heavy_exclamation_mark","danger","surprise","punctuation","wow","warning"],char:"❗",fitzpatrick_scale:!1,category:"symbols"},grey_exclamation:{keywords:["surprise","punctuation","gray","wow","warning"],char:"❕",fitzpatrick_scale:!1,category:"symbols"},question:{keywords:["doubt","confused"],char:"❓",fitzpatrick_scale:!1,category:"symbols"},grey_question:{keywords:["doubts","gray","huh","confused"],char:"❔",fitzpatrick_scale:!1,category:"symbols"},bangbang:{keywords:["exclamation","surprise"],char:"‼️",fitzpatrick_scale:!1,category:"symbols"},interrobang:{keywords:["wat","punctuation","surprise"],char:"⁉️",fitzpatrick_scale:!1,category:"symbols"},100:{keywords:["score","perfect","numbers","century","exam","quiz","test","pass","hundred"],char:"💯",fitzpatrick_scale:!1,category:"symbols"},low_brightness:{keywords:["sun","afternoon","warm","summer"],char:"🔅",fitzpatrick_scale:!1,category:"symbols"},high_brightness:{keywords:["sun","light"],char:"🔆",fitzpatrick_scale:!1,category:"symbols"},trident:{keywords:["weapon","spear"],char:"🔱",fitzpatrick_scale:!1,category:"symbols"},fleur_de_lis:{keywords:["decorative","scout"],char:"⚜",fitzpatrick_scale:!1,category:"symbols"},part_alternation_mark:{keywords:["graph","presentation","stats","business","economics","bad"],char:"〽️",fitzpatrick_scale:!1,category:"symbols"},warning:{keywords:["exclamation","wip","alert","error","problem","issue"],char:"⚠️",fitzpatrick_scale:!1,category:"symbols"},children_crossing:{keywords:["school","warning","danger","sign","driving","yellow-diamond"],char:"🚸",fitzpatrick_scale:!1,category:"symbols"},beginner:{keywords:["badge","shield"],char:"🔰",fitzpatrick_scale:!1,category:"symbols"},recycle:{keywords:["arrow","environment","garbage","trash"],char:"♻️",fitzpatrick_scale:!1,category:"symbols"},u6307:{keywords:["chinese","point","green-square","kanji"],char:"🈯",fitzpatrick_scale:!1,category:"symbols"},chart:{keywords:["green-square","graph","presentation","stats"],char:"💹",fitzpatrick_scale:!1,category:"symbols"},sparkle:{keywords:["stars","green-square","awesome","good","fireworks"],char:"❇️",fitzpatrick_scale:!1,category:"symbols"},eight_spoked_asterisk:{keywords:["star","sparkle","green-square"],char:"✳️",fitzpatrick_scale:!1,category:"symbols"},negative_squared_cross_mark:{keywords:["x","green-square","no","deny"],char:"❎",fitzpatrick_scale:!1,category:"symbols"},white_check_mark:{keywords:["green-square","ok","agree","vote","election","answer","tick"],char:"✅",fitzpatrick_scale:!1,category:"symbols"},diamond_shape_with_a_dot_inside:{keywords:["jewel","blue","gem","crystal","fancy"],char:"💠",fitzpatrick_scale:!1,category:"symbols"},cyclone:{keywords:["weather","swirl","blue","cloud","vortex","spiral","whirlpool","spin","tornado","hurricane","typhoon"],char:"🌀",fitzpatrick_scale:!1,category:"symbols"},loop:{keywords:["tape","cassette"],char:"➿",fitzpatrick_scale:!1,category:"symbols"},globe_with_meridians:{keywords:["earth","international","world","internet","interweb","i18n"],char:"🌐",fitzpatrick_scale:!1,category:"symbols"},m:{keywords:["alphabet","blue-circle","letter"],char:"Ⓜ️",fitzpatrick_scale:!1,category:"symbols"},atm:{keywords:["money","sales","cash","blue-square","payment","bank"],char:"🏧",fitzpatrick_scale:!1,category:"symbols"},sa:{keywords:["japanese","blue-square","katakana"],char:"🈂️",fitzpatrick_scale:!1,category:"symbols"},passport_control:{keywords:["custom","blue-square"],char:"🛂",fitzpatrick_scale:!1,category:"symbols"},customs:{keywords:["passport","border","blue-square"],char:"🛃",fitzpatrick_scale:!1,category:"symbols"},baggage_claim:{keywords:["blue-square","airport","transport"],char:"🛄",fitzpatrick_scale:!1,category:"symbols"},left_luggage:{keywords:["blue-square","travel"],char:"🛅",fitzpatrick_scale:!1,category:"symbols"},wheelchair:{keywords:["blue-square","disabled","a11y","accessibility"],char:"♿",fitzpatrick_scale:!1,category:"symbols"},no_smoking:{keywords:["cigarette","blue-square","smell","smoke"],char:"🚭",fitzpatrick_scale:!1,category:"symbols"},wc:{keywords:["toilet","restroom","blue-square"],char:"🚾",fitzpatrick_scale:!1,category:"symbols"},parking:{keywords:["cars","blue-square","alphabet","letter"],char:"🅿️",fitzpatrick_scale:!1,category:"symbols"},potable_water:{keywords:["blue-square","liquid","restroom","cleaning","faucet"],char:"🚰",fitzpatrick_scale:!1,category:"symbols"},mens:{keywords:["toilet","restroom","wc","blue-square","gender","male"],char:"🚹",fitzpatrick_scale:!1,category:"symbols"},womens:{keywords:["purple-square","woman","female","toilet","loo","restroom","gender"],char:"🚺",fitzpatrick_scale:!1,category:"symbols"},baby_symbol:{keywords:["orange-square","child"],char:"🚼",fitzpatrick_scale:!1,category:"symbols"},restroom:{keywords:["blue-square","toilet","refresh","wc","gender"],char:"🚻",fitzpatrick_scale:!1,category:"symbols"},put_litter_in_its_place:{keywords:["blue-square","sign","human","info"],char:"🚮",fitzpatrick_scale:!1,category:"symbols"},cinema:{keywords:["blue-square","record","film","movie","curtain","stage","theater"],char:"🎦",fitzpatrick_scale:!1,category:"symbols"},signal_strength:{keywords:["blue-square","reception","phone","internet","connection","wifi","bluetooth","bars"],char:"📶",fitzpatrick_scale:!1,category:"symbols"},koko:{keywords:["blue-square","here","katakana","japanese","destination"],char:"🈁",fitzpatrick_scale:!1,category:"symbols"},ng:{keywords:["blue-square","words","shape","icon"],char:"🆖",fitzpatrick_scale:!1,category:"symbols"},ok:{keywords:["good","agree","yes","blue-square"],char:"🆗",fitzpatrick_scale:!1,category:"symbols"},up:{keywords:["blue-square","above","high"],char:"🆙",fitzpatrick_scale:!1,category:"symbols"},cool:{keywords:["words","blue-square"],char:"🆒",fitzpatrick_scale:!1,category:"symbols"},new:{keywords:["blue-square","words","start"],char:"🆕",fitzpatrick_scale:!1,category:"symbols"},free:{keywords:["blue-square","words"],char:"🆓",fitzpatrick_scale:!1,category:"symbols"},zero:{keywords:["0","numbers","blue-square","null"],char:"0️⃣",fitzpatrick_scale:!1,category:"symbols"},one:{keywords:["blue-square","numbers","1"],char:"1️⃣",fitzpatrick_scale:!1,category:"symbols"},two:{keywords:["numbers","2","prime","blue-square"],char:"2️⃣",fitzpatrick_scale:!1,category:"symbols"},three:{keywords:["3","numbers","prime","blue-square"],char:"3️⃣",fitzpatrick_scale:!1,category:"symbols"},four:{keywords:["4","numbers","blue-square"],char:"4️⃣",fitzpatrick_scale:!1,category:"symbols"},five:{keywords:["5","numbers","blue-square","prime"],char:"5️⃣",fitzpatrick_scale:!1,category:"symbols"},six:{keywords:["6","numbers","blue-square"],char:"6️⃣",fitzpatrick_scale:!1,category:"symbols"},seven:{keywords:["7","numbers","blue-square","prime"],char:"7️⃣",fitzpatrick_scale:!1,category:"symbols"},eight:{keywords:["8","blue-square","numbers"],char:"8️⃣",fitzpatrick_scale:!1,category:"symbols"},nine:{keywords:["blue-square","numbers","9"],char:"9️⃣",fitzpatrick_scale:!1,category:"symbols"},keycap_ten:{keywords:["numbers","10","blue-square"],char:"🔟",fitzpatrick_scale:!1,category:"symbols"},asterisk:{keywords:["star","keycap"],char:"*⃣",fitzpatrick_scale:!1,category:"symbols"},1234:{keywords:["numbers","blue-square"],char:"🔢",fitzpatrick_scale:!1,category:"symbols"},eject_button:{keywords:["blue-square"],char:"⏏️",fitzpatrick_scale:!1,category:"symbols"},arrow_forward:{keywords:["blue-square","right","direction","play"],char:"▶️",fitzpatrick_scale:!1,category:"symbols"},pause_button:{keywords:["pause","blue-square"],char:"⏸",fitzpatrick_scale:!1,category:"symbols"},next_track_button:{keywords:["forward","next","blue-square"],char:"⏭",fitzpatrick_scale:!1,category:"symbols"},stop_button:{keywords:["blue-square"],char:"⏹",fitzpatrick_scale:!1,category:"symbols"},record_button:{keywords:["blue-square"],char:"⏺",fitzpatrick_scale:!1,category:"symbols"},play_or_pause_button:{keywords:["blue-square","play","pause"],char:"⏯",fitzpatrick_scale:!1,category:"symbols"},previous_track_button:{keywords:["backward"],char:"⏮",fitzpatrick_scale:!1,category:"symbols"},fast_forward:{keywords:["blue-square","play","speed","continue"],char:"⏩",fitzpatrick_scale:!1,category:"symbols"},rewind:{keywords:["play","blue-square"],char:"⏪",fitzpatrick_scale:!1,category:"symbols"},twisted_rightwards_arrows:{keywords:["blue-square","shuffle","music","random"],char:"🔀",fitzpatrick_scale:!1,category:"symbols"},repeat:{keywords:["loop","record"],char:"🔁",fitzpatrick_scale:!1,category:"symbols"},repeat_one:{keywords:["blue-square","loop"],char:"🔂",fitzpatrick_scale:!1,category:"symbols"},arrow_backward:{keywords:["blue-square","left","direction"],char:"◀️",fitzpatrick_scale:!1,category:"symbols"},arrow_up_small:{keywords:["blue-square","triangle","direction","point","forward","top"],char:"🔼",fitzpatrick_scale:!1,category:"symbols"},arrow_down_small:{keywords:["blue-square","direction","bottom"],char:"🔽",fitzpatrick_scale:!1,category:"symbols"},arrow_double_up:{keywords:["blue-square","direction","top"],char:"⏫",fitzpatrick_scale:!1,category:"symbols"},arrow_double_down:{keywords:["blue-square","direction","bottom"],char:"⏬",fitzpatrick_scale:!1,category:"symbols"},arrow_right:{keywords:["blue-square","next"],char:"➡️",fitzpatrick_scale:!1,category:"symbols"},arrow_left:{keywords:["blue-square","previous","back"],char:"⬅️",fitzpatrick_scale:!1,category:"symbols"},arrow_up:{keywords:["blue-square","continue","top","direction"],char:"⬆️",fitzpatrick_scale:!1,category:"symbols"},arrow_down:{keywords:["blue-square","direction","bottom"],char:"⬇️",fitzpatrick_scale:!1,category:"symbols"},arrow_upper_right:{keywords:["blue-square","point","direction","diagonal","northeast"],char:"↗️",fitzpatrick_scale:!1,category:"symbols"},arrow_lower_right:{keywords:["blue-square","direction","diagonal","southeast"],char:"↘️",fitzpatrick_scale:!1,category:"symbols"},arrow_lower_left:{keywords:["blue-square","direction","diagonal","southwest"],char:"↙️",fitzpatrick_scale:!1,category:"symbols"},arrow_upper_left:{keywords:["blue-square","point","direction","diagonal","northwest"],char:"↖️",fitzpatrick_scale:!1,category:"symbols"},arrow_up_down:{keywords:["blue-square","direction","way","vertical"],char:"↕️",fitzpatrick_scale:!1,category:"symbols"},left_right_arrow:{keywords:["shape","direction","horizontal","sideways"],char:"↔️",fitzpatrick_scale:!1,category:"symbols"},arrows_counterclockwise:{keywords:["blue-square","sync","cycle"],char:"🔄",fitzpatrick_scale:!1,category:"symbols"},arrow_right_hook:{keywords:["blue-square","return","rotate","direction"],char:"↪️",fitzpatrick_scale:!1,category:"symbols"},leftwards_arrow_with_hook:{keywords:["back","return","blue-square","undo","enter"],char:"↩️",fitzpatrick_scale:!1,category:"symbols"},arrow_heading_up:{keywords:["blue-square","direction","top"],char:"⤴️",fitzpatrick_scale:!1,category:"symbols"},arrow_heading_down:{keywords:["blue-square","direction","bottom"],char:"⤵️",fitzpatrick_scale:!1,category:"symbols"},hash:{keywords:["symbol","blue-square","twitter"],char:"#️⃣",fitzpatrick_scale:!1,category:"symbols"},information_source:{keywords:["blue-square","alphabet","letter"],char:"ℹ️",fitzpatrick_scale:!1,category:"symbols"},abc:{keywords:["blue-square","alphabet"],char:"🔤",fitzpatrick_scale:!1,category:"symbols"},abcd:{keywords:["blue-square","alphabet"],char:"🔡",fitzpatrick_scale:!1,category:"symbols"},capital_abcd:{keywords:["alphabet","words","blue-square"],char:"🔠",fitzpatrick_scale:!1,category:"symbols"},symbols:{keywords:["blue-square","music","note","ampersand","percent","glyphs","characters"],char:"🔣",fitzpatrick_scale:!1,category:"symbols"},musical_note:{keywords:["score","tone","sound"],char:"🎵",fitzpatrick_scale:!1,category:"symbols"},notes:{keywords:["music","score"],char:"🎶",fitzpatrick_scale:!1,category:"symbols"},wavy_dash:{keywords:["draw","line","moustache","mustache","squiggle","scribble"],char:"〰️",fitzpatrick_scale:!1,category:"symbols"},curly_loop:{keywords:["scribble","draw","shape","squiggle"],char:"➰",fitzpatrick_scale:!1,category:"symbols"},heavy_check_mark:{keywords:["ok","nike","answer","yes","tick"],char:"✔️",fitzpatrick_scale:!1,category:"symbols"},arrows_clockwise:{keywords:["sync","cycle","round","repeat"],char:"🔃",fitzpatrick_scale:!1,category:"symbols"},heavy_plus_sign:{keywords:["math","calculation","addition","more","increase"],char:"➕",fitzpatrick_scale:!1,category:"symbols"},heavy_minus_sign:{keywords:["math","calculation","subtract","less"],char:"➖",fitzpatrick_scale:!1,category:"symbols"},heavy_division_sign:{keywords:["divide","math","calculation"],char:"➗",fitzpatrick_scale:!1,category:"symbols"},heavy_multiplication_x:{keywords:["math","calculation"],char:"✖️",fitzpatrick_scale:!1,category:"symbols"},infinity:{keywords:["forever"],char:"♾",fitzpatrick_scale:!1,category:"symbols"},heavy_dollar_sign:{keywords:["money","sales","payment","currency","buck"],char:"💲",fitzpatrick_scale:!1,category:"symbols"},currency_exchange:{keywords:["money","sales","dollar","travel"],char:"💱",fitzpatrick_scale:!1,category:"symbols"},copyright:{keywords:["ip","license","circle","law","legal"],char:"©️",fitzpatrick_scale:!1,category:"symbols"},registered:{keywords:["alphabet","circle"],char:"®️",fitzpatrick_scale:!1,category:"symbols"},tm:{keywords:["trademark","brand","law","legal"],char:"™️",fitzpatrick_scale:!1,category:"symbols"},end:{keywords:["words","arrow"],char:"🔚",fitzpatrick_scale:!1,category:"symbols"},back:{keywords:["arrow","words","return"],char:"🔙",fitzpatrick_scale:!1,category:"symbols"},on:{keywords:["arrow","words"],char:"🔛",fitzpatrick_scale:!1,category:"symbols"},top:{keywords:["words","blue-square"],char:"🔝",fitzpatrick_scale:!1,category:"symbols"},soon:{keywords:["arrow","words"],char:"🔜",fitzpatrick_scale:!1,category:"symbols"},ballot_box_with_check:{keywords:["ok","agree","confirm","black-square","vote","election","yes","tick"],char:"☑️",fitzpatrick_scale:!1,category:"symbols"},radio_button:{keywords:["input","old","music","circle"],char:"🔘",fitzpatrick_scale:!1,category:"symbols"},white_circle:{keywords:["shape","round"],char:"⚪",fitzpatrick_scale:!1,category:"symbols"},black_circle:{keywords:["shape","button","round"],char:"⚫",fitzpatrick_scale:!1,category:"symbols"},red_circle:{keywords:["shape","error","danger"],char:"🔴",fitzpatrick_scale:!1,category:"symbols"},large_blue_circle:{keywords:["shape","icon","button"],char:"🔵",fitzpatrick_scale:!1,category:"symbols"},small_orange_diamond:{keywords:["shape","jewel","gem"],char:"🔸",fitzpatrick_scale:!1,category:"symbols"},small_blue_diamond:{keywords:["shape","jewel","gem"],char:"🔹",fitzpatrick_scale:!1,category:"symbols"},large_orange_diamond:{keywords:["shape","jewel","gem"],char:"🔶",fitzpatrick_scale:!1,category:"symbols"},large_blue_diamond:{keywords:["shape","jewel","gem"],char:"🔷",fitzpatrick_scale:!1,category:"symbols"},small_red_triangle:{keywords:["shape","direction","up","top"],char:"🔺",fitzpatrick_scale:!1,category:"symbols"},black_small_square:{keywords:["shape","icon"],char:"▪️",fitzpatrick_scale:!1,category:"symbols"},white_small_square:{keywords:["shape","icon"],char:"▫️",fitzpatrick_scale:!1,category:"symbols"},black_large_square:{keywords:["shape","icon","button"],char:"⬛",fitzpatrick_scale:!1,category:"symbols"},white_large_square:{keywords:["shape","icon","stone","button"],char:"⬜",fitzpatrick_scale:!1,category:"symbols"},small_red_triangle_down:{keywords:["shape","direction","bottom"],char:"🔻",fitzpatrick_scale:!1,category:"symbols"},black_medium_square:{keywords:["shape","button","icon"],char:"◼️",fitzpatrick_scale:!1,category:"symbols"},white_medium_square:{keywords:["shape","stone","icon"],char:"◻️",fitzpatrick_scale:!1,category:"symbols"},black_medium_small_square:{keywords:["icon","shape","button"],char:"◾",fitzpatrick_scale:!1,category:"symbols"},white_medium_small_square:{keywords:["shape","stone","icon","button"],char:"◽",fitzpatrick_scale:!1,category:"symbols"},black_square_button:{keywords:["shape","input","frame"],char:"🔲",fitzpatrick_scale:!1,category:"symbols"},white_square_button:{keywords:["shape","input"],char:"🔳",fitzpatrick_scale:!1,category:"symbols"},speaker:{keywords:["sound","volume","silence","broadcast"],char:"🔈",fitzpatrick_scale:!1,category:"symbols"},sound:{keywords:["volume","speaker","broadcast"],char:"🔉",fitzpatrick_scale:!1,category:"symbols"},loud_sound:{keywords:["volume","noise","noisy","speaker","broadcast"],char:"🔊",fitzpatrick_scale:!1,category:"symbols"},mute:{keywords:["sound","volume","silence","quiet"],char:"🔇",fitzpatrick_scale:!1,category:"symbols"},mega:{keywords:["sound","speaker","volume"],char:"📣",fitzpatrick_scale:!1,category:"symbols"},loudspeaker:{keywords:["volume","sound"],char:"📢",fitzpatrick_scale:!1,category:"symbols"},bell:{keywords:["sound","notification","christmas","xmas","chime"],char:"🔔",fitzpatrick_scale:!1,category:"symbols"},no_bell:{keywords:["sound","volume","mute","quiet","silent"],char:"🔕",fitzpatrick_scale:!1,category:"symbols"},black_joker:{keywords:["poker","cards","game","play","magic"],char:"🃏",fitzpatrick_scale:!1,category:"symbols"},mahjong:{keywords:["game","play","chinese","kanji"],char:"🀄",fitzpatrick_scale:!1,category:"symbols"},spades:{keywords:["poker","cards","suits","magic"],char:"♠️",fitzpatrick_scale:!1,category:"symbols"},clubs:{keywords:["poker","cards","magic","suits"],char:"♣️",fitzpatrick_scale:!1,category:"symbols"},hearts:{keywords:["poker","cards","magic","suits"],char:"♥️",fitzpatrick_scale:!1,category:"symbols"},diamonds:{keywords:["poker","cards","magic","suits"],char:"♦️",fitzpatrick_scale:!1,category:"symbols"},flower_playing_cards:{keywords:["game","sunset","red"],char:"🎴",fitzpatrick_scale:!1,category:"symbols"},thought_balloon:{keywords:["bubble","cloud","speech","thinking","dream"],char:"💭",fitzpatrick_scale:!1,category:"symbols"},right_anger_bubble:{keywords:["caption","speech","thinking","mad"],char:"🗯",fitzpatrick_scale:!1,category:"symbols"},speech_balloon:{keywords:["bubble","words","message","talk","chatting"],char:"💬",fitzpatrick_scale:!1,category:"symbols"},left_speech_bubble:{keywords:["words","message","talk","chatting"],char:"🗨",fitzpatrick_scale:!1,category:"symbols"},clock1:{keywords:["time","late","early","schedule"],char:"🕐",fitzpatrick_scale:!1,category:"symbols"},clock2:{keywords:["time","late","early","schedule"],char:"🕑",fitzpatrick_scale:!1,category:"symbols"},clock3:{keywords:["time","late","early","schedule"],char:"🕒",fitzpatrick_scale:!1,category:"symbols"},clock4:{keywords:["time","late","early","schedule"],char:"🕓",fitzpatrick_scale:!1,category:"symbols"},clock5:{keywords:["time","late","early","schedule"],char:"🕔",fitzpatrick_scale:!1,category:"symbols"},clock6:{keywords:["time","late","early","schedule","dawn","dusk"],char:"🕕",fitzpatrick_scale:!1,category:"symbols"},clock7:{keywords:["time","late","early","schedule"],char:"🕖",fitzpatrick_scale:!1,category:"symbols"},clock8:{keywords:["time","late","early","schedule"],char:"🕗",fitzpatrick_scale:!1,category:"symbols"},clock9:{keywords:["time","late","early","schedule"],char:"🕘",fitzpatrick_scale:!1,category:"symbols"},clock10:{keywords:["time","late","early","schedule"],char:"🕙",fitzpatrick_scale:!1,category:"symbols"},clock11:{keywords:["time","late","early","schedule"],char:"🕚",fitzpatrick_scale:!1,category:"symbols"},clock12:{keywords:["time","noon","midnight","midday","late","early","schedule"],char:"🕛",fitzpatrick_scale:!1,category:"symbols"},clock130:{keywords:["time","late","early","schedule"],char:"🕜",fitzpatrick_scale:!1,category:"symbols"},clock230:{keywords:["time","late","early","schedule"],char:"🕝",fitzpatrick_scale:!1,category:"symbols"},clock330:{keywords:["time","late","early","schedule"],char:"🕞",fitzpatrick_scale:!1,category:"symbols"},clock430:{keywords:["time","late","early","schedule"],char:"🕟",fitzpatrick_scale:!1,category:"symbols"},clock530:{keywords:["time","late","early","schedule"],char:"🕠",fitzpatrick_scale:!1,category:"symbols"},clock630:{keywords:["time","late","early","schedule"],char:"🕡",fitzpatrick_scale:!1,category:"symbols"},clock730:{keywords:["time","late","early","schedule"],char:"🕢",fitzpatrick_scale:!1,category:"symbols"},clock830:{keywords:["time","late","early","schedule"],char:"🕣",fitzpatrick_scale:!1,category:"symbols"},clock930:{keywords:["time","late","early","schedule"],char:"🕤",fitzpatrick_scale:!1,category:"symbols"},clock1030:{keywords:["time","late","early","schedule"],char:"🕥",fitzpatrick_scale:!1,category:"symbols"},clock1130:{keywords:["time","late","early","schedule"],char:"🕦",fitzpatrick_scale:!1,category:"symbols"},clock1230:{keywords:["time","late","early","schedule"],char:"🕧",fitzpatrick_scale:!1,category:"symbols"},afghanistan:{keywords:["af","flag","nation","country","banner"],char:"🇦🇫",fitzpatrick_scale:!1,category:"flags"},aland_islands:{keywords:["Åland","islands","flag","nation","country","banner"],char:"🇦🇽",fitzpatrick_scale:!1,category:"flags"},albania:{keywords:["al","flag","nation","country","banner"],char:"🇦🇱",fitzpatrick_scale:!1,category:"flags"},algeria:{keywords:["dz","flag","nation","country","banner"],char:"🇩🇿",fitzpatrick_scale:!1,category:"flags"},american_samoa:{keywords:["american","ws","flag","nation","country","banner"],char:"🇦🇸",fitzpatrick_scale:!1,category:"flags"},andorra:{keywords:["ad","flag","nation","country","banner"],char:"🇦🇩",fitzpatrick_scale:!1,category:"flags"},angola:{keywords:["ao","flag","nation","country","banner"],char:"🇦🇴",fitzpatrick_scale:!1,category:"flags"},anguilla:{keywords:["ai","flag","nation","country","banner"],char:"🇦🇮",fitzpatrick_scale:!1,category:"flags"},antarctica:{keywords:["aq","flag","nation","country","banner"],char:"🇦🇶",fitzpatrick_scale:!1,category:"flags"},antigua_barbuda:{keywords:["antigua","barbuda","flag","nation","country","banner"],char:"🇦🇬",fitzpatrick_scale:!1,category:"flags"},argentina:{keywords:["ar","flag","nation","country","banner"],char:"🇦🇷",fitzpatrick_scale:!1,category:"flags"},armenia:{keywords:["am","flag","nation","country","banner"],char:"🇦🇲",fitzpatrick_scale:!1,category:"flags"},aruba:{keywords:["aw","flag","nation","country","banner"],char:"🇦🇼",fitzpatrick_scale:!1,category:"flags"},australia:{keywords:["au","flag","nation","country","banner"],char:"🇦🇺",fitzpatrick_scale:!1,category:"flags"},austria:{keywords:["at","flag","nation","country","banner"],char:"🇦🇹",fitzpatrick_scale:!1,category:"flags"},azerbaijan:{keywords:["az","flag","nation","country","banner"],char:"🇦🇿",fitzpatrick_scale:!1,category:"flags"},bahamas:{keywords:["bs","flag","nation","country","banner"],char:"🇧🇸",fitzpatrick_scale:!1,category:"flags"},bahrain:{keywords:["bh","flag","nation","country","banner"],char:"🇧🇭",fitzpatrick_scale:!1,category:"flags"},bangladesh:{keywords:["bd","flag","nation","country","banner"],char:"🇧🇩",fitzpatrick_scale:!1,category:"flags"},barbados:{keywords:["bb","flag","nation","country","banner"],char:"🇧🇧",fitzpatrick_scale:!1,category:"flags"},belarus:{keywords:["by","flag","nation","country","banner"],char:"🇧🇾",fitzpatrick_scale:!1,category:"flags"},belgium:{keywords:["be","flag","nation","country","banner"],char:"🇧🇪",fitzpatrick_scale:!1,category:"flags"},belize:{keywords:["bz","flag","nation","country","banner"],char:"🇧🇿",fitzpatrick_scale:!1,category:"flags"},benin:{keywords:["bj","flag","nation","country","banner"],char:"🇧🇯",fitzpatrick_scale:!1,category:"flags"},bermuda:{keywords:["bm","flag","nation","country","banner"],char:"🇧🇲",fitzpatrick_scale:!1,category:"flags"},bhutan:{keywords:["bt","flag","nation","country","banner"],char:"🇧🇹",fitzpatrick_scale:!1,category:"flags"},bolivia:{keywords:["bo","flag","nation","country","banner"],char:"🇧🇴",fitzpatrick_scale:!1,category:"flags"},caribbean_netherlands:{keywords:["bonaire","flag","nation","country","banner"],char:"🇧🇶",fitzpatrick_scale:!1,category:"flags"},bosnia_herzegovina:{keywords:["bosnia","herzegovina","flag","nation","country","banner"],char:"🇧🇦",fitzpatrick_scale:!1,category:"flags"},botswana:{keywords:["bw","flag","nation","country","banner"],char:"🇧🇼",fitzpatrick_scale:!1,category:"flags"},brazil:{keywords:["br","flag","nation","country","banner"],char:"🇧🇷",fitzpatrick_scale:!1,category:"flags"},british_indian_ocean_territory:{keywords:["british","indian","ocean","territory","flag","nation","country","banner"],char:"🇮🇴",fitzpatrick_scale:!1,category:"flags"},british_virgin_islands:{keywords:["british","virgin","islands","bvi","flag","nation","country","banner"],char:"🇻🇬",fitzpatrick_scale:!1,category:"flags"},brunei:{keywords:["bn","darussalam","flag","nation","country","banner"],char:"🇧🇳",fitzpatrick_scale:!1,category:"flags"},bulgaria:{keywords:["bg","flag","nation","country","banner"],char:"🇧🇬",fitzpatrick_scale:!1,category:"flags"},burkina_faso:{keywords:["burkina","faso","flag","nation","country","banner"],char:"🇧🇫",fitzpatrick_scale:!1,category:"flags"},burundi:{keywords:["bi","flag","nation","country","banner"],char:"🇧🇮",fitzpatrick_scale:!1,category:"flags"},cape_verde:{keywords:["cabo","verde","flag","nation","country","banner"],char:"🇨🇻",fitzpatrick_scale:!1,category:"flags"},cambodia:{keywords:["kh","flag","nation","country","banner"],char:"🇰🇭",fitzpatrick_scale:!1,category:"flags"},cameroon:{keywords:["cm","flag","nation","country","banner"],char:"🇨🇲",fitzpatrick_scale:!1,category:"flags"},canada:{keywords:["ca","flag","nation","country","banner"],char:"🇨🇦",fitzpatrick_scale:!1,category:"flags"},canary_islands:{keywords:["canary","islands","flag","nation","country","banner"],char:"🇮🇨",fitzpatrick_scale:!1,category:"flags"},cayman_islands:{keywords:["cayman","islands","flag","nation","country","banner"],char:"🇰🇾",fitzpatrick_scale:!1,category:"flags"},central_african_republic:{keywords:["central","african","republic","flag","nation","country","banner"],char:"🇨🇫",fitzpatrick_scale:!1,category:"flags"},chad:{keywords:["td","flag","nation","country","banner"],char:"🇹🇩",fitzpatrick_scale:!1,category:"flags"},chile:{keywords:["flag","nation","country","banner"],char:"🇨🇱",fitzpatrick_scale:!1,category:"flags"},cn:{keywords:["china","chinese","prc","flag","country","nation","banner"],char:"🇨🇳",fitzpatrick_scale:!1,category:"flags"},christmas_island:{keywords:["christmas","island","flag","nation","country","banner"],char:"🇨🇽",fitzpatrick_scale:!1,category:"flags"},cocos_islands:{keywords:["cocos","keeling","islands","flag","nation","country","banner"],char:"🇨🇨",fitzpatrick_scale:!1,category:"flags"},colombia:{keywords:["co","flag","nation","country","banner"],char:"🇨🇴",fitzpatrick_scale:!1,category:"flags"},comoros:{keywords:["km","flag","nation","country","banner"],char:"🇰🇲",fitzpatrick_scale:!1,category:"flags"},congo_brazzaville:{keywords:["congo","flag","nation","country","banner"],char:"🇨🇬",fitzpatrick_scale:!1,category:"flags"},congo_kinshasa:{keywords:["congo","democratic","republic","flag","nation","country","banner"],char:"🇨🇩",fitzpatrick_scale:!1,category:"flags"},cook_islands:{keywords:["cook","islands","flag","nation","country","banner"],char:"🇨🇰",fitzpatrick_scale:!1,category:"flags"},costa_rica:{keywords:["costa","rica","flag","nation","country","banner"],char:"🇨🇷",fitzpatrick_scale:!1,category:"flags"},croatia:{keywords:["hr","flag","nation","country","banner"],char:"🇭🇷",fitzpatrick_scale:!1,category:"flags"},cuba:{keywords:["cu","flag","nation","country","banner"],char:"🇨🇺",fitzpatrick_scale:!1,category:"flags"},curacao:{keywords:["curaçao","flag","nation","country","banner"],char:"🇨🇼",fitzpatrick_scale:!1,category:"flags"},cyprus:{keywords:["cy","flag","nation","country","banner"],char:"🇨🇾",fitzpatrick_scale:!1,category:"flags"},czech_republic:{keywords:["cz","flag","nation","country","banner"],char:"🇨🇿",fitzpatrick_scale:!1,category:"flags"},denmark:{keywords:["dk","flag","nation","country","banner"],char:"🇩🇰",fitzpatrick_scale:!1,category:"flags"},djibouti:{keywords:["dj","flag","nation","country","banner"],char:"🇩🇯",fitzpatrick_scale:!1,category:"flags"},dominica:{keywords:["dm","flag","nation","country","banner"],char:"🇩🇲",fitzpatrick_scale:!1,category:"flags"},dominican_republic:{keywords:["dominican","republic","flag","nation","country","banner"],char:"🇩🇴",fitzpatrick_scale:!1,category:"flags"},ecuador:{keywords:["ec","flag","nation","country","banner"],char:"🇪🇨",fitzpatrick_scale:!1,category:"flags"},egypt:{keywords:["eg","flag","nation","country","banner"],char:"🇪🇬",fitzpatrick_scale:!1,category:"flags"},el_salvador:{keywords:["el","salvador","flag","nation","country","banner"],char:"🇸🇻",fitzpatrick_scale:!1,category:"flags"},equatorial_guinea:{keywords:["equatorial","gn","flag","nation","country","banner"],char:"🇬🇶",fitzpatrick_scale:!1,category:"flags"},eritrea:{keywords:["er","flag","nation","country","banner"],char:"🇪🇷",fitzpatrick_scale:!1,category:"flags"},estonia:{keywords:["ee","flag","nation","country","banner"],char:"🇪🇪",fitzpatrick_scale:!1,category:"flags"},ethiopia:{keywords:["et","flag","nation","country","banner"],char:"🇪🇹",fitzpatrick_scale:!1,category:"flags"},eu:{keywords:["european","union","flag","banner"],char:"🇪🇺",fitzpatrick_scale:!1,category:"flags"},falkland_islands:{keywords:["falkland","islands","malvinas","flag","nation","country","banner"],char:"🇫🇰",fitzpatrick_scale:!1,category:"flags"},faroe_islands:{keywords:["faroe","islands","flag","nation","country","banner"],char:"🇫🇴",fitzpatrick_scale:!1,category:"flags"},fiji:{keywords:["fj","flag","nation","country","banner"],char:"🇫🇯",fitzpatrick_scale:!1,category:"flags"},finland:{keywords:["fi","flag","nation","country","banner"],char:"🇫🇮",fitzpatrick_scale:!1,category:"flags"},fr:{keywords:["banner","flag","nation","france","french","country"],char:"🇫🇷",fitzpatrick_scale:!1,category:"flags"},french_guiana:{keywords:["french","guiana","flag","nation","country","banner"],char:"🇬🇫",fitzpatrick_scale:!1,category:"flags"},french_polynesia:{keywords:["french","polynesia","flag","nation","country","banner"],char:"🇵🇫",fitzpatrick_scale:!1,category:"flags"},french_southern_territories:{keywords:["french","southern","territories","flag","nation","country","banner"],char:"🇹🇫",fitzpatrick_scale:!1,category:"flags"},gabon:{keywords:["ga","flag","nation","country","banner"],char:"🇬🇦",fitzpatrick_scale:!1,category:"flags"},gambia:{keywords:["gm","flag","nation","country","banner"],char:"🇬🇲",fitzpatrick_scale:!1,category:"flags"},georgia:{keywords:["ge","flag","nation","country","banner"],char:"🇬🇪",fitzpatrick_scale:!1,category:"flags"},de:{keywords:["german","nation","flag","country","banner"],char:"🇩🇪",fitzpatrick_scale:!1,category:"flags"},ghana:{keywords:["gh","flag","nation","country","banner"],char:"🇬🇭",fitzpatrick_scale:!1,category:"flags"},gibraltar:{keywords:["gi","flag","nation","country","banner"],char:"🇬🇮",fitzpatrick_scale:!1,category:"flags"},greece:{keywords:["gr","flag","nation","country","banner"],char:"🇬🇷",fitzpatrick_scale:!1,category:"flags"},greenland:{keywords:["gl","flag","nation","country","banner"],char:"🇬🇱",fitzpatrick_scale:!1,category:"flags"},grenada:{keywords:["gd","flag","nation","country","banner"],char:"🇬🇩",fitzpatrick_scale:!1,category:"flags"},guadeloupe:{keywords:["gp","flag","nation","country","banner"],char:"🇬🇵",fitzpatrick_scale:!1,category:"flags"},guam:{keywords:["gu","flag","nation","country","banner"],char:"🇬🇺",fitzpatrick_scale:!1,category:"flags"},guatemala:{keywords:["gt","flag","nation","country","banner"],char:"🇬🇹",fitzpatrick_scale:!1,category:"flags"},guernsey:{keywords:["gg","flag","nation","country","banner"],char:"🇬🇬",fitzpatrick_scale:!1,category:"flags"},guinea:{keywords:["gn","flag","nation","country","banner"],char:"🇬🇳",fitzpatrick_scale:!1,category:"flags"},guinea_bissau:{keywords:["gw","bissau","flag","nation","country","banner"],char:"🇬🇼",fitzpatrick_scale:!1,category:"flags"},guyana:{keywords:["gy","flag","nation","country","banner"],char:"🇬🇾",fitzpatrick_scale:!1,category:"flags"},haiti:{keywords:["ht","flag","nation","country","banner"],char:"🇭🇹",fitzpatrick_scale:!1,category:"flags"},honduras:{keywords:["hn","flag","nation","country","banner"],char:"🇭🇳",fitzpatrick_scale:!1,category:"flags"},hong_kong:{keywords:["hong","kong","flag","nation","country","banner"],char:"🇭🇰",fitzpatrick_scale:!1,category:"flags"},hungary:{keywords:["hu","flag","nation","country","banner"],char:"🇭🇺",fitzpatrick_scale:!1,category:"flags"},iceland:{keywords:["is","flag","nation","country","banner"],char:"🇮🇸",fitzpatrick_scale:!1,category:"flags"},india:{keywords:["in","flag","nation","country","banner"],char:"🇮🇳",fitzpatrick_scale:!1,category:"flags"},indonesia:{keywords:["flag","nation","country","banner"],char:"🇮🇩",fitzpatrick_scale:!1,category:"flags"},iran:{keywords:["iran,","islamic","republic","flag","nation","country","banner"],char:"🇮🇷",fitzpatrick_scale:!1,category:"flags"},iraq:{keywords:["iq","flag","nation","country","banner"],char:"🇮🇶",fitzpatrick_scale:!1,category:"flags"},ireland:{keywords:["ie","flag","nation","country","banner"],char:"🇮🇪",fitzpatrick_scale:!1,category:"flags"},isle_of_man:{keywords:["isle","man","flag","nation","country","banner"],char:"🇮🇲",fitzpatrick_scale:!1,category:"flags"},israel:{keywords:["il","flag","nation","country","banner"],char:"🇮🇱",fitzpatrick_scale:!1,category:"flags"},it:{keywords:["italy","flag","nation","country","banner"],char:"🇮🇹",fitzpatrick_scale:!1,category:"flags"},cote_divoire:{keywords:["ivory","coast","flag","nation","country","banner"],char:"🇨🇮",fitzpatrick_scale:!1,category:"flags"},jamaica:{keywords:["jm","flag","nation","country","banner"],char:"🇯🇲",fitzpatrick_scale:!1,category:"flags"},jp:{keywords:["japanese","nation","flag","country","banner"],char:"🇯🇵",fitzpatrick_scale:!1,category:"flags"},jersey:{keywords:["je","flag","nation","country","banner"],char:"🇯🇪",fitzpatrick_scale:!1,category:"flags"},jordan:{keywords:["jo","flag","nation","country","banner"],char:"🇯🇴",fitzpatrick_scale:!1,category:"flags"},kazakhstan:{keywords:["kz","flag","nation","country","banner"],char:"🇰🇿",fitzpatrick_scale:!1,category:"flags"},kenya:{keywords:["ke","flag","nation","country","banner"],char:"🇰🇪",fitzpatrick_scale:!1,category:"flags"},kiribati:{keywords:["ki","flag","nation","country","banner"],char:"🇰🇮",fitzpatrick_scale:!1,category:"flags"},kosovo:{keywords:["xk","flag","nation","country","banner"],char:"🇽🇰",fitzpatrick_scale:!1,category:"flags"},kuwait:{keywords:["kw","flag","nation","country","banner"],char:"🇰🇼",fitzpatrick_scale:!1,category:"flags"},kyrgyzstan:{keywords:["kg","flag","nation","country","banner"],char:"🇰🇬",fitzpatrick_scale:!1,category:"flags"},laos:{keywords:["lao","democratic","republic","flag","nation","country","banner"],char:"🇱🇦",fitzpatrick_scale:!1,category:"flags"},latvia:{keywords:["lv","flag","nation","country","banner"],char:"🇱🇻",fitzpatrick_scale:!1,category:"flags"},lebanon:{keywords:["lb","flag","nation","country","banner"],char:"🇱🇧",fitzpatrick_scale:!1,category:"flags"},lesotho:{keywords:["ls","flag","nation","country","banner"],char:"🇱🇸",fitzpatrick_scale:!1,category:"flags"},liberia:{keywords:["lr","flag","nation","country","banner"],char:"🇱🇷",fitzpatrick_scale:!1,category:"flags"},libya:{keywords:["ly","flag","nation","country","banner"],char:"🇱🇾",fitzpatrick_scale:!1,category:"flags"},liechtenstein:{keywords:["li","flag","nation","country","banner"],char:"🇱🇮",fitzpatrick_scale:!1,category:"flags"},lithuania:{keywords:["lt","flag","nation","country","banner"],char:"🇱🇹",fitzpatrick_scale:!1,category:"flags"},luxembourg:{keywords:["lu","flag","nation","country","banner"],char:"🇱🇺",fitzpatrick_scale:!1,category:"flags"},macau:{keywords:["macao","flag","nation","country","banner"],char:"🇲🇴",fitzpatrick_scale:!1,category:"flags"},macedonia:{keywords:["macedonia,","flag","nation","country","banner"],char:"🇲🇰",fitzpatrick_scale:!1,category:"flags"},madagascar:{keywords:["mg","flag","nation","country","banner"],char:"🇲🇬",fitzpatrick_scale:!1,category:"flags"},malawi:{keywords:["mw","flag","nation","country","banner"],char:"🇲🇼",fitzpatrick_scale:!1,category:"flags"},malaysia:{keywords:["my","flag","nation","country","banner"],char:"🇲🇾",fitzpatrick_scale:!1,category:"flags"},maldives:{keywords:["mv","flag","nation","country","banner"],char:"🇲🇻",fitzpatrick_scale:!1,category:"flags"},mali:{keywords:["ml","flag","nation","country","banner"],char:"🇲🇱",fitzpatrick_scale:!1,category:"flags"},malta:{keywords:["mt","flag","nation","country","banner"],char:"🇲🇹",fitzpatrick_scale:!1,category:"flags"},marshall_islands:{keywords:["marshall","islands","flag","nation","country","banner"],char:"🇲🇭",fitzpatrick_scale:!1,category:"flags"},martinique:{keywords:["mq","flag","nation","country","banner"],char:"🇲🇶",fitzpatrick_scale:!1,category:"flags"},mauritania:{keywords:["mr","flag","nation","country","banner"],char:"🇲🇷",fitzpatrick_scale:!1,category:"flags"},mauritius:{keywords:["mu","flag","nation","country","banner"],char:"🇲🇺",fitzpatrick_scale:!1,category:"flags"},mayotte:{keywords:["yt","flag","nation","country","banner"],char:"🇾🇹",fitzpatrick_scale:!1,category:"flags"},mexico:{keywords:["mx","flag","nation","country","banner"],char:"🇲🇽",fitzpatrick_scale:!1,category:"flags"},micronesia:{keywords:["micronesia,","federated","states","flag","nation","country","banner"],char:"🇫🇲",fitzpatrick_scale:!1,category:"flags"},moldova:{keywords:["moldova,","republic","flag","nation","country","banner"],char:"🇲🇩",fitzpatrick_scale:!1,category:"flags"},monaco:{keywords:["mc","flag","nation","country","banner"],char:"🇲🇨",fitzpatrick_scale:!1,category:"flags"},mongolia:{keywords:["mn","flag","nation","country","banner"],char:"🇲🇳",fitzpatrick_scale:!1,category:"flags"},montenegro:{keywords:["me","flag","nation","country","banner"],char:"🇲🇪",fitzpatrick_scale:!1,category:"flags"},montserrat:{keywords:["ms","flag","nation","country","banner"],char:"🇲🇸",fitzpatrick_scale:!1,category:"flags"},morocco:{keywords:["ma","flag","nation","country","banner"],char:"🇲🇦",fitzpatrick_scale:!1,category:"flags"},mozambique:{keywords:["mz","flag","nation","country","banner"],char:"🇲🇿",fitzpatrick_scale:!1,category:"flags"},myanmar:{keywords:["mm","flag","nation","country","banner"],char:"🇲🇲",fitzpatrick_scale:!1,category:"flags"},namibia:{keywords:["na","flag","nation","country","banner"],char:"🇳🇦",fitzpatrick_scale:!1,category:"flags"},nauru:{keywords:["nr","flag","nation","country","banner"],char:"🇳🇷",fitzpatrick_scale:!1,category:"flags"},nepal:{keywords:["np","flag","nation","country","banner"],char:"🇳🇵",fitzpatrick_scale:!1,category:"flags"},netherlands:{keywords:["nl","flag","nation","country","banner"],char:"🇳🇱",fitzpatrick_scale:!1,category:"flags"},new_caledonia:{keywords:["new","caledonia","flag","nation","country","banner"],char:"🇳🇨",fitzpatrick_scale:!1,category:"flags"},new_zealand:{keywords:["new","zealand","flag","nation","country","banner"],char:"🇳🇿",fitzpatrick_scale:!1,category:"flags"},nicaragua:{keywords:["ni","flag","nation","country","banner"],char:"🇳🇮",fitzpatrick_scale:!1,category:"flags"},niger:{keywords:["ne","flag","nation","country","banner"],char:"🇳🇪",fitzpatrick_scale:!1,category:"flags"},nigeria:{keywords:["flag","nation","country","banner"],char:"🇳🇬",fitzpatrick_scale:!1,category:"flags"},niue:{keywords:["nu","flag","nation","country","banner"],char:"🇳🇺",fitzpatrick_scale:!1,category:"flags"},norfolk_island:{keywords:["norfolk","island","flag","nation","country","banner"],char:"🇳🇫",fitzpatrick_scale:!1,category:"flags"},northern_mariana_islands:{keywords:["northern","mariana","islands","flag","nation","country","banner"],char:"🇲🇵",fitzpatrick_scale:!1,category:"flags"},north_korea:{keywords:["north","korea","nation","flag","country","banner"],char:"🇰🇵",fitzpatrick_scale:!1,category:"flags"},norway:{keywords:["no","flag","nation","country","banner"],char:"🇳🇴",fitzpatrick_scale:!1,category:"flags"},oman:{keywords:["om_symbol","flag","nation","country","banner"],char:"🇴🇲",fitzpatrick_scale:!1,category:"flags"},pakistan:{keywords:["pk","flag","nation","country","banner"],char:"🇵🇰",fitzpatrick_scale:!1,category:"flags"},palau:{keywords:["pw","flag","nation","country","banner"],char:"🇵🇼",fitzpatrick_scale:!1,category:"flags"},palestinian_territories:{keywords:["palestine","palestinian","territories","flag","nation","country","banner"],char:"🇵🇸",fitzpatrick_scale:!1,category:"flags"},panama:{keywords:["pa","flag","nation","country","banner"],char:"🇵🇦",fitzpatrick_scale:!1,category:"flags"},papua_new_guinea:{keywords:["papua","new","guinea","flag","nation","country","banner"],char:"🇵🇬",fitzpatrick_scale:!1,category:"flags"},paraguay:{keywords:["py","flag","nation","country","banner"],char:"🇵🇾",fitzpatrick_scale:!1,category:"flags"},peru:{keywords:["pe","flag","nation","country","banner"],char:"🇵🇪",fitzpatrick_scale:!1,category:"flags"},philippines:{keywords:["ph","flag","nation","country","banner"],char:"🇵🇭",fitzpatrick_scale:!1,category:"flags"},pitcairn_islands:{keywords:["pitcairn","flag","nation","country","banner"],char:"🇵🇳",fitzpatrick_scale:!1,category:"flags"},poland:{keywords:["pl","flag","nation","country","banner"],char:"🇵🇱",fitzpatrick_scale:!1,category:"flags"},portugal:{keywords:["pt","flag","nation","country","banner"],char:"🇵🇹",fitzpatrick_scale:!1,category:"flags"},puerto_rico:{keywords:["puerto","rico","flag","nation","country","banner"],char:"🇵🇷",fitzpatrick_scale:!1,category:"flags"},qatar:{keywords:["qa","flag","nation","country","banner"],char:"🇶🇦",fitzpatrick_scale:!1,category:"flags"},reunion:{keywords:["réunion","flag","nation","country","banner"],char:"🇷🇪",fitzpatrick_scale:!1,category:"flags"},romania:{keywords:["ro","flag","nation","country","banner"],char:"🇷🇴",fitzpatrick_scale:!1,category:"flags"},ru:{keywords:["russian","federation","flag","nation","country","banner"],char:"🇷🇺",fitzpatrick_scale:!1,category:"flags"},rwanda:{keywords:["rw","flag","nation","country","banner"],char:"🇷🇼",fitzpatrick_scale:!1,category:"flags"},st_barthelemy:{keywords:["saint","barthélemy","flag","nation","country","banner"],char:"🇧🇱",fitzpatrick_scale:!1,category:"flags"},st_helena:{keywords:["saint","helena","ascension","tristan","cunha","flag","nation","country","banner"],char:"🇸🇭",fitzpatrick_scale:!1,category:"flags"},st_kitts_nevis:{keywords:["saint","kitts","nevis","flag","nation","country","banner"],char:"🇰🇳",fitzpatrick_scale:!1,category:"flags"},st_lucia:{keywords:["saint","lucia","flag","nation","country","banner"],char:"🇱🇨",fitzpatrick_scale:!1,category:"flags"},st_pierre_miquelon:{keywords:["saint","pierre","miquelon","flag","nation","country","banner"],char:"🇵🇲",fitzpatrick_scale:!1,category:"flags"},st_vincent_grenadines:{keywords:["saint","vincent","grenadines","flag","nation","country","banner"],char:"🇻🇨",fitzpatrick_scale:!1,category:"flags"},samoa:{keywords:["ws","flag","nation","country","banner"],char:"🇼🇸",fitzpatrick_scale:!1,category:"flags"},san_marino:{keywords:["san","marino","flag","nation","country","banner"],char:"🇸🇲",fitzpatrick_scale:!1,category:"flags"},sao_tome_principe:{keywords:["sao","tome","principe","flag","nation","country","banner"],char:"🇸🇹",fitzpatrick_scale:!1,category:"flags"},saudi_arabia:{keywords:["flag","nation","country","banner"],char:"🇸🇦",fitzpatrick_scale:!1,category:"flags"},senegal:{keywords:["sn","flag","nation","country","banner"],char:"🇸🇳",fitzpatrick_scale:!1,category:"flags"},serbia:{keywords:["rs","flag","nation","country","banner"],char:"🇷🇸",fitzpatrick_scale:!1,category:"flags"},seychelles:{keywords:["sc","flag","nation","country","banner"],char:"🇸🇨",fitzpatrick_scale:!1,category:"flags"},sierra_leone:{keywords:["sierra","leone","flag","nation","country","banner"],char:"🇸🇱",fitzpatrick_scale:!1,category:"flags"},singapore:{keywords:["sg","flag","nation","country","banner"],char:"🇸🇬",fitzpatrick_scale:!1,category:"flags"},sint_maarten:{keywords:["sint","maarten","dutch","flag","nation","country","banner"],char:"🇸🇽",fitzpatrick_scale:!1,category:"flags"},slovakia:{keywords:["sk","flag","nation","country","banner"],char:"🇸🇰",fitzpatrick_scale:!1,category:"flags"},slovenia:{keywords:["si","flag","nation","country","banner"],char:"🇸🇮",fitzpatrick_scale:!1,category:"flags"},solomon_islands:{keywords:["solomon","islands","flag","nation","country","banner"],char:"🇸🇧",fitzpatrick_scale:!1,category:"flags"},somalia:{keywords:["so","flag","nation","country","banner"],char:"🇸🇴",fitzpatrick_scale:!1,category:"flags"},south_africa:{keywords:["south","africa","flag","nation","country","banner"],char:"🇿🇦",fitzpatrick_scale:!1,category:"flags"},south_georgia_south_sandwich_islands:{keywords:["south","georgia","sandwich","islands","flag","nation","country","banner"],char:"🇬🇸",fitzpatrick_scale:!1,category:"flags"},kr:{keywords:["south","korea","nation","flag","country","banner"],char:"🇰🇷",fitzpatrick_scale:!1,category:"flags"},south_sudan:{keywords:["south","sd","flag","nation","country","banner"],char:"🇸🇸",fitzpatrick_scale:!1,category:"flags"},es:{keywords:["spain","flag","nation","country","banner"],char:"🇪🇸",fitzpatrick_scale:!1,category:"flags"},sri_lanka:{keywords:["sri","lanka","flag","nation","country","banner"],char:"🇱🇰",fitzpatrick_scale:!1,category:"flags"},sudan:{keywords:["sd","flag","nation","country","banner"],char:"🇸🇩",fitzpatrick_scale:!1,category:"flags"},suriname:{keywords:["sr","flag","nation","country","banner"],char:"🇸🇷",fitzpatrick_scale:!1,category:"flags"},swaziland:{keywords:["sz","flag","nation","country","banner"],char:"🇸🇿",fitzpatrick_scale:!1,category:"flags"},sweden:{keywords:["se","flag","nation","country","banner"],char:"🇸🇪",fitzpatrick_scale:!1,category:"flags"},switzerland:{keywords:["ch","flag","nation","country","banner"],char:"🇨🇭",fitzpatrick_scale:!1,category:"flags"},syria:{keywords:["syrian","arab","republic","flag","nation","country","banner"],char:"🇸🇾",fitzpatrick_scale:!1,category:"flags"},taiwan:{keywords:["tw","flag","nation","country","banner"],char:"🇹🇼",fitzpatrick_scale:!1,category:"flags"},tajikistan:{keywords:["tj","flag","nation","country","banner"],char:"🇹🇯",fitzpatrick_scale:!1,category:"flags"},tanzania:{keywords:["tanzania,","united","republic","flag","nation","country","banner"],char:"🇹🇿",fitzpatrick_scale:!1,category:"flags"},thailand:{keywords:["th","flag","nation","country","banner"],char:"🇹🇭",fitzpatrick_scale:!1,category:"flags"},timor_leste:{keywords:["timor","leste","flag","nation","country","banner"],char:"🇹🇱",fitzpatrick_scale:!1,category:"flags"},togo:{keywords:["tg","flag","nation","country","banner"],char:"🇹🇬",fitzpatrick_scale:!1,category:"flags"},tokelau:{keywords:["tk","flag","nation","country","banner"],char:"🇹🇰",fitzpatrick_scale:!1,category:"flags"},tonga:{keywords:["to","flag","nation","country","banner"],char:"🇹🇴",fitzpatrick_scale:!1,category:"flags"},trinidad_tobago:{keywords:["trinidad","tobago","flag","nation","country","banner"],char:"🇹🇹",fitzpatrick_scale:!1,category:"flags"},tunisia:{keywords:["tn","flag","nation","country","banner"],char:"🇹🇳",fitzpatrick_scale:!1,category:"flags"},tr:{keywords:["turkey","flag","nation","country","banner"],char:"🇹🇷",fitzpatrick_scale:!1,category:"flags"},turkmenistan:{keywords:["flag","nation","country","banner"],char:"🇹🇲",fitzpatrick_scale:!1,category:"flags"},turks_caicos_islands:{keywords:["turks","caicos","islands","flag","nation","country","banner"],char:"🇹🇨",fitzpatrick_scale:!1,category:"flags"},tuvalu:{keywords:["flag","nation","country","banner"],char:"🇹🇻",fitzpatrick_scale:!1,category:"flags"},uganda:{keywords:["ug","flag","nation","country","banner"],char:"🇺🇬",fitzpatrick_scale:!1,category:"flags"},ukraine:{keywords:["ua","flag","nation","country","banner"],char:"🇺🇦",fitzpatrick_scale:!1,category:"flags"},united_arab_emirates:{keywords:["united","arab","emirates","flag","nation","country","banner"],char:"🇦🇪",fitzpatrick_scale:!1,category:"flags"},uk:{keywords:["united","kingdom","great","britain","northern","ireland","flag","nation","country","banner","british","UK","english","england","union jack"],char:"🇬🇧",fitzpatrick_scale:!1,category:"flags"},england:{keywords:["flag","english"],char:"🏴󠁧󠁢󠁥󠁮󠁧󠁿",fitzpatrick_scale:!1,category:"flags"},scotland:{keywords:["flag","scottish"],char:"🏴󠁧󠁢󠁳󠁣󠁴󠁿",fitzpatrick_scale:!1,category:"flags"},wales:{keywords:["flag","welsh"],char:"🏴󠁧󠁢󠁷󠁬󠁳󠁿",fitzpatrick_scale:!1,category:"flags"},us:{keywords:["united","states","america","flag","nation","country","banner"],char:"🇺🇸",fitzpatrick_scale:!1,category:"flags"},us_virgin_islands:{keywords:["virgin","islands","us","flag","nation","country","banner"],char:"🇻🇮",fitzpatrick_scale:!1,category:"flags"},uruguay:{keywords:["uy","flag","nation","country","banner"],char:"🇺🇾",fitzpatrick_scale:!1,category:"flags"},uzbekistan:{keywords:["uz","flag","nation","country","banner"],char:"🇺🇿",fitzpatrick_scale:!1,category:"flags"},vanuatu:{keywords:["vu","flag","nation","country","banner"],char:"🇻🇺",fitzpatrick_scale:!1,category:"flags"},vatican_city:{keywords:["vatican","city","flag","nation","country","banner"],char:"🇻🇦",fitzpatrick_scale:!1,category:"flags"},venezuela:{keywords:["ve","bolivarian","republic","flag","nation","country","banner"],char:"🇻🇪",fitzpatrick_scale:!1,category:"flags"},vietnam:{keywords:["viet","nam","flag","nation","country","banner"],char:"🇻🇳",fitzpatrick_scale:!1,category:"flags"},wallis_futuna:{keywords:["wallis","futuna","flag","nation","country","banner"],char:"🇼🇫",fitzpatrick_scale:!1,category:"flags"},western_sahara:{keywords:["western","sahara","flag","nation","country","banner"],char:"🇪🇭",fitzpatrick_scale:!1,category:"flags"},yemen:{keywords:["ye","flag","nation","country","banner"],char:"🇾🇪",fitzpatrick_scale:!1,category:"flags"},zambia:{keywords:["zm","flag","nation","country","banner"],char:"🇿🇲",fitzpatrick_scale:!1,category:"flags"},zimbabwe:{keywords:["zw","flag","nation","country","banner"],char:"🇿🇼",fitzpatrick_scale:!1,category:"flags"},united_nations:{keywords:["un","flag","banner"],char:"🇺🇳",fitzpatrick_scale:!1,category:"flags"},pirate_flag:{keywords:["skull","crossbones","flag","banner"],char:"🏴‍☠️",fitzpatrick_scale:!1,category:"flags"}});(function(){var xo=tinymce.util.Tools.resolve("tinymce.PluginManager");const Ko=lt=>lt==null,Io=lt=>!Ko(lt),on=()=>{},Qo=lt=>()=>lt;class io{constructor(Mt,ht){this.tag=Mt,this.value=ht}static some(Mt){return new io(!0,Mt)}static none(){return io.singletonNone}fold(Mt,ht){return this.tag?ht(this.value):Mt()}isSome(){return this.tag}isNone(){return!this.tag}map(Mt){return this.tag?io.some(Mt(this.value)):io.none()}bind(Mt){return this.tag?Mt(this.value):io.none()}exists(Mt){return this.tag&&Mt(this.value)}forall(Mt){return!this.tag||Mt(this.value)}filter(Mt){return!this.tag||Mt(this.value)?this:io.none()}getOr(Mt){return this.tag?this.value:Mt}or(Mt){return this.tag?this:Mt}getOrThunk(Mt){return this.tag?this.value:Mt()}orThunk(Mt){return this.tag?this:Mt()}getOrDie(Mt){if(this.tag)return this.value;throw new Error(Mt??"Called getOrDie on None")}static from(Mt){return Io(Mt)?io.some(Mt):io.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(Mt){this.tag&&Mt(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}io.singletonNone=new io(!1);const Po=(lt,Mt)=>Mt>=0&&MtPo(lt,0);var ko=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils");const Mo=typeof window<"u"?window:Function("return this;")(),jo=function(lt,Mt,ht){const Rt=window.Prism;window.Prism={manual:!0};var uo=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{},Bt=function(V){var dt=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,Ie=0,Co={},Pt={manual:V.Prism&&V.Prism.manual,disableWorkerMessageHandler:V.Prism&&V.Prism.disableWorkerMessageHandler,util:{encode:function Fe(ge){return ge instanceof lo?new lo(ge.type,Fe(ge.content),ge.alias):Array.isArray(ge)?ge.map(Fe):ge.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(at){var Fe=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(at.stack)||[])[1];if(Fe){var ge=document.getElementsByTagName("script");for(var Me in ge)if(ge[Me].src==Fe)return ge[Me]}return null}},isActive:function(Fe,ge,Me){for(var at="no-"+ge;Fe;){var ze=Fe.classList;if(ze.contains(ge))return!0;if(ze.contains(at))return!1;Fe=Fe.parentElement}return!!Me}},languages:{plain:Co,plaintext:Co,text:Co,txt:Co,extend:function(Fe,ge){var Me=Pt.util.clone(Pt.languages[Fe]);for(var at in ge)Me[at]=ge[at];return Me},insertBefore:function(Fe,ge,Me,at){at=at||Pt.languages;var ze=at[Fe],Ge={};for(var Gt in ze)if(ze.hasOwnProperty(Gt)){if(Gt==ge)for(var Vt in Me)Me.hasOwnProperty(Vt)&&(Ge[Vt]=Me[Vt]);Me.hasOwnProperty(Gt)||(Ge[Gt]=ze[Gt])}var Xo=at[Fe];return at[Fe]=Ge,Pt.languages.DFS(Pt.languages,function($o,Zo){Zo===Xo&&$o!=Fe&&(this[$o]=Ge)}),Ge},DFS:function Fe(ge,Me,at,ze){ze=ze||{};var Ge=Pt.util.objId;for(var Gt in ge)if(ge.hasOwnProperty(Gt)){Me.call(ge,Gt,ge[Gt],at||Gt);var Vt=ge[Gt],Xo=Pt.util.type(Vt);Xo==="Object"&&!ze[Ge(Vt)]?(ze[Ge(Vt)]=!0,Fe(Vt,Me,null,ze)):Xo==="Array"&&!ze[Ge(Vt)]&&(ze[Ge(Vt)]=!0,Fe(Vt,Me,Gt,ze))}}},plugins:{},highlightAll:function(Fe,ge){Pt.highlightAllUnder(document,Fe,ge)},highlightAllUnder:function(Fe,ge,Me){var at={callback:Me,container:Fe,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};Pt.hooks.run("before-highlightall",at),at.elements=Array.prototype.slice.apply(at.container.querySelectorAll(at.selector)),Pt.hooks.run("before-all-elements-highlight",at);for(var ze=0,Ge;Ge=at.elements[ze++];)Pt.highlightElement(Ge,ge===!0,at.callback)},highlightElement:function(Fe,ge,Me){var at=Pt.util.getLanguage(Fe),ze=Pt.languages[at];Pt.util.setLanguage(Fe,at);var Ge=Fe.parentElement;Ge&&Ge.nodeName.toLowerCase()==="pre"&&Pt.util.setLanguage(Ge,at);var Gt=Fe.textContent,Vt={element:Fe,language:at,grammar:ze,code:Gt};function Xo(Zo){Vt.highlightedCode=Zo,Pt.hooks.run("before-insert",Vt),Vt.element.innerHTML=Vt.highlightedCode,Pt.hooks.run("after-highlight",Vt),Pt.hooks.run("complete",Vt),Me&&Me.call(Vt.element)}if(Pt.hooks.run("before-sanity-check",Vt),Ge=Vt.element.parentElement,Ge&&Ge.nodeName.toLowerCase()==="pre"&&!Ge.hasAttribute("tabindex")&&Ge.setAttribute("tabindex","0"),!Vt.code){Pt.hooks.run("complete",Vt),Me&&Me.call(Vt.element);return}if(Pt.hooks.run("before-highlight",Vt),!Vt.grammar){Xo(Pt.util.encode(Vt.code));return}if(ge&&V.Worker){var $o=new Worker(Pt.filename);$o.onmessage=function(Zo){Xo(Zo.data)},$o.postMessage(JSON.stringify({language:Vt.language,code:Vt.code,immediateClose:!0}))}else Xo(Pt.highlight(Vt.code,Vt.grammar,Vt.language))},highlight:function(Fe,ge,Me){var at={code:Fe,grammar:ge,language:Me};if(Pt.hooks.run("before-tokenize",at),!at.grammar)throw new Error('The language "'+at.language+'" has no grammar.');return at.tokens=Pt.tokenize(at.code,at.grammar),Pt.hooks.run("after-tokenize",at),lo.stringify(Pt.util.encode(at.tokens),at.language)},tokenize:function(Fe,ge){var Me=ge.rest;if(Me){for(var at in Me)ge[at]=Me[at];delete ge.rest}var ze=new Se;return $e(ze,ze.head,Fe),to(Fe,ze,ge,ze.head,0),gt(ze)},hooks:{all:{},add:function(Fe,ge){var Me=Pt.hooks.all;Me[Fe]=Me[Fe]||[],Me[Fe].push(ge)},run:function(Fe,ge){var Me=Pt.hooks.all[Fe];if(!(!Me||!Me.length))for(var at=0,ze;ze=Me[at++];)ze(ge)}},Token:lo};V.Prism=Pt;function lo(Fe,ge,Me,at){this.type=Fe,this.content=ge,this.alias=Me,this.length=(at||"").length|0}lo.stringify=function Fe(ge,Me){if(typeof ge=="string")return ge;if(Array.isArray(ge)){var at="";return ge.forEach(function(Xo){at+=Fe(Xo,Me)}),at}var ze={type:ge.type,content:Fe(ge.content,Me),tag:"span",classes:["token",ge.type],attributes:{},language:Me},Ge=ge.alias;Ge&&(Array.isArray(Ge)?Array.prototype.push.apply(ze.classes,Ge):ze.classes.push(Ge)),Pt.hooks.run("wrap",ze);var Gt="";for(var Vt in ze.attributes)Gt+=" "+Vt+'="'+(ze.attributes[Vt]||"").replace(/"/g,""")+'"';return"<"+ze.tag+' class="'+ze.classes.join(" ")+'"'+Gt+">"+ze.content+""};function zo(Fe,ge,Me,at){Fe.lastIndex=ge;var ze=Fe.exec(Me);if(ze&&at&&ze[1]){var Ge=ze[1].length;ze.index+=Ge,ze[0]=ze[0].slice(Ge)}return ze}function to(Fe,ge,Me,at,ze,Ge){for(var Gt in Me)if(!(!Me.hasOwnProperty(Gt)||!Me[Gt])){var Vt=Me[Gt];Vt=Array.isArray(Vt)?Vt:[Vt];for(var Xo=0;Xo=Ge.reach);vo+=Ft.value.length,Ft=Ft.next){var Xt=Ft.value;if(ge.length>Fe.length)return;if(!(Xt instanceof lo)){var Vo=1,$n;if(Pn){if($n=zo(zt,vo,Fe,Gn),!$n||$n.index>=Fe.length)break;var Fn=$n.index,Rr=$n.index+$n[0].length,Wt=vo;for(Wt+=Ft.value.length;Fn>=Wt;)Ft=Ft.next,Wt+=Ft.value.length;if(Wt-=Ft.value.length,vo=Wt,Ft.value instanceof lo)continue;for(var vr=Ft;vr!==ge.tail&&(WtGe.reach&&(Ge.reach=Yr);var Pa=Ft.prev;xr&&(Pa=$e(ge,Pa,xr),vo+=xr.length),ct(ge,Pa,Vo);var cs=new lo(Gt,Zo?Pt.tokenize(ln,Zo):ln,zn,ln);if(Ft=$e(ge,Pa,cs),Ys&&$e(ge,Ft,Ys),Vo>1){var Ha={cause:Gt+","+Xo,reach:Yr};to(Fe,ge,Me,Ft.prev,vo,Ha),Ge&&Ha.reach>Ge.reach&&(Ge.reach=Ha.reach)}}}}}}function Se(){var Fe={value:null,prev:null,next:null},ge={value:null,prev:Fe,next:null};Fe.next=ge,this.head=Fe,this.tail=ge,this.length=0}function $e(Fe,ge,Me){var at=ge.next,ze={value:Me,prev:ge,next:at};return ge.next=ze,at.prev=ze,Fe.length++,ze}function ct(Fe,ge,Me){for(var at=ge.next,ze=0;ze]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},function(V){function dt(Ie,Co){return"___"+Ie.toUpperCase()+Co+"___"}Object.defineProperties(V.languages["markup-templating"]={},{buildPlaceholders:{value:function(Ie,Co,Pt,lo){if(Ie.language===Co){var zo=Ie.tokenStack=[];Ie.code=Ie.code.replace(Pt,function(to){if(typeof lo=="function"&&!lo(to))return to;for(var Se=zo.length,$e;Ie.code.indexOf($e=dt(Co,Se))!==-1;)++Se;return zo[Se]=to,$e}),Ie.grammar=V.languages.markup}}},tokenizePlaceholders:{value:function(Ie,Co){if(Ie.language!==Co||!Ie.tokenStack)return;Ie.grammar=V.languages[Co];var Pt=0,lo=Object.keys(Ie.tokenStack);function zo(to){for(var Se=0;Se=lo.length);Se++){var $e=to[Se];if(typeof $e=="string"||$e.content&&typeof $e.content=="string"){var ct=lo[Pt],gt=Ie.tokenStack[ct],pe=typeof $e=="string"?$e:$e.content,Oe=dt(Co,ct),We=pe.indexOf(Oe);if(We>-1){++Pt;var Fe=pe.substring(0,We),ge=new V.Token(Co,V.tokenize(gt,Ie.grammar),"language-"+Co,gt),Me=pe.substring(We+Oe.length),at=[];Fe&&at.push.apply(at,zo([Fe])),at.push(ge),Me&&at.push.apply(at,zo([Me])),typeof $e=="string"?to.splice.apply(to,[Se,1].concat(at)):$e.content=at}}else $e.content&&zo($e.content)}return to}zo(Ie.tokens)}}})}(Bt),Bt.languages.c=Bt.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Bt.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Bt.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Bt.languages.c.string],char:Bt.languages.c.char,comment:Bt.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Bt.languages.c}}}}),Bt.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Bt.languages.c.boolean,function(V){var dt=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,Ie=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return dt.source});V.languages.cpp=V.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return dt.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:dt,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),V.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,function(){return Ie})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),V.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:V.languages.cpp}}}}),V.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),V.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:V.languages.extend("cpp",{})}}),V.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},V.languages.cpp["base-clause"])}(Bt),function(V){function dt($n,Rr){return $n.replace(/<<(\d+)>>/g,function(Wt,vr){return"(?:"+Rr[+vr]+")"})}function Ie($n,Rr,Wt){return RegExp(dt($n,Rr),Wt||"")}function Co($n,Rr){for(var Wt=0;Wt>/g,function(){return"(?:"+$n+")"});return $n.replace(/<>/g,"[^\\s\\S]")}var Pt={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function lo($n){return"\\b(?:"+$n.trim().replace(/ /g,"|")+")\\b"}var zo=lo(Pt.typeDeclaration),to=RegExp(lo(Pt.type+" "+Pt.typeDeclaration+" "+Pt.contextual+" "+Pt.other)),Se=lo(Pt.typeDeclaration+" "+Pt.contextual+" "+Pt.other),$e=lo(Pt.type+" "+Pt.typeDeclaration+" "+Pt.other),ct=Co(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),gt=Co(/\((?:[^()]|<>)*\)/.source,2),pe=/@?\b[A-Za-z_]\w*\b/.source,Oe=dt(/<<0>>(?:\s*<<1>>)?/.source,[pe,ct]),We=dt(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[Se,Oe]),Fe=/\[\s*(?:,\s*)*\]/.source,ge=dt(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[We,Fe]),Me=dt(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[ct,gt,Fe]),at=dt(/\(<<0>>+(?:,<<0>>+)+\)/.source,[Me]),ze=dt(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[at,We,Fe]),Ge={keyword:to,punctuation:/[<>()?,.:[\]]/},Gt=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,Vt=/"(?:\\.|[^\\"\r\n])*"/.source,Xo=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;V.languages.csharp=V.languages.extend("clike",{string:[{pattern:Ie(/(^|[^$\\])<<0>>/.source,[Xo]),lookbehind:!0,greedy:!0},{pattern:Ie(/(^|[^@$\\])<<0>>/.source,[Vt]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:Ie(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[We]),lookbehind:!0,inside:Ge},{pattern:Ie(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[pe,ze]),lookbehind:!0,inside:Ge},{pattern:Ie(/(\busing\s+)<<0>>(?=\s*=)/.source,[pe]),lookbehind:!0},{pattern:Ie(/(\b<<0>>\s+)<<1>>/.source,[zo,Oe]),lookbehind:!0,inside:Ge},{pattern:Ie(/(\bcatch\s*\(\s*)<<0>>/.source,[We]),lookbehind:!0,inside:Ge},{pattern:Ie(/(\bwhere\s+)<<0>>/.source,[pe]),lookbehind:!0},{pattern:Ie(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[ge]),lookbehind:!0,inside:Ge},{pattern:Ie(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[ze,$e,pe]),inside:Ge}],keyword:to,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),V.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),V.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:Ie(/([(,]\s*)<<0>>(?=\s*:)/.source,[pe]),lookbehind:!0,alias:"punctuation"}}),V.languages.insertBefore("csharp","class-name",{namespace:{pattern:Ie(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[pe]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:Ie(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[gt]),lookbehind:!0,alias:"class-name",inside:Ge},"return-type":{pattern:Ie(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[ze,We]),inside:Ge,alias:"class-name"},"constructor-invocation":{pattern:Ie(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[ze]),lookbehind:!0,inside:Ge,alias:"class-name"},"generic-method":{pattern:Ie(/<<0>>\s*<<1>>(?=\s*\()/.source,[pe,ct]),inside:{function:Ie(/^<<0>>/.source,[pe]),generic:{pattern:RegExp(ct),alias:"class-name",inside:Ge}}},"type-list":{pattern:Ie(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[zo,Oe,pe,ze,to.source,gt,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:Ie(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[Oe,gt]),lookbehind:!0,greedy:!0,inside:V.languages.csharp},keyword:to,"class-name":{pattern:RegExp(ze),greedy:!0,inside:Ge},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var $o=Vt+"|"+Gt,Zo=dt(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[$o]),Gn=Co(dt(/[^"'/()]|<<0>>|\(<>*\)/.source,[Zo]),2),Pn=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,zn=dt(/<<0>>(?:\s*\(<<1>>*\))?/.source,[We,Gn]);V.languages.insertBefore("csharp","class-name",{attribute:{pattern:Ie(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[Pn,zn]),lookbehind:!0,greedy:!0,inside:{target:{pattern:Ie(/^<<0>>(?=\s*:)/.source,[Pn]),alias:"keyword"},"attribute-arguments":{pattern:Ie(/\(<<0>>*\)/.source,[Gn]),inside:V.languages.csharp},"class-name":{pattern:RegExp(We),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var ut=/:[^}\r\n]+/.source,zt=Co(dt(/[^"'/()]|<<0>>|\(<>*\)/.source,[Zo]),2),Ft=dt(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[zt,ut]),vo=Co(dt(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[$o]),2),Xt=dt(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[vo,ut]);function Vo($n,Rr){return{interpolation:{pattern:Ie(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[$n]),lookbehind:!0,inside:{"format-string":{pattern:Ie(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[Rr,ut]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:V.languages.csharp}}},string:/[\s\S]+/}}V.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:Ie(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[Ft]),lookbehind:!0,greedy:!0,inside:Vo(Ft,zt)},{pattern:Ie(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[Xt]),lookbehind:!0,greedy:!0,inside:Vo(Xt,vo)}],char:{pattern:RegExp(Gt),greedy:!0}}),V.languages.dotnet=V.languages.cs=V.languages.csharp}(Bt),function(V){var dt=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;V.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+dt.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+dt.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+dt.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+dt.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:dt,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},V.languages.css.atrule.inside.rest=V.languages.css;var Ie=V.languages.markup;Ie&&(Ie.tag.addInlined("style","css"),Ie.tag.addAttribute("style","css"))}(Bt),function(V){var dt=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,Ie=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,Co={pattern:RegExp(/(^|[^\w.])/.source+Ie+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};V.languages.java=V.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[Co,{pattern:RegExp(/(^|[^\w.])/.source+Ie+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:Co.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+Ie+/[A-Z]\w*\b/.source),lookbehind:!0,inside:Co.inside}],keyword:dt,function:[V.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),V.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),V.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":Co,keyword:dt,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+Ie+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:Co.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+Ie+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:Co.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,function(){return dt.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(Bt),Bt.languages.javascript=Bt.languages.extend("clike",{"class-name":[Bt.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Bt.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Bt.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Bt.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Bt.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Bt.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Bt.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Bt.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Bt.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Bt.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Bt.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Bt.languages.markup&&(Bt.languages.markup.tag.addInlined("script","javascript"),Bt.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Bt.languages.js=Bt.languages.javascript,Bt.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Bt.languages.markup.tag.inside["attr-value"].inside.entity=Bt.languages.markup.entity,Bt.languages.markup.doctype.inside["internal-subset"].inside=Bt.languages.markup,Bt.hooks.add("wrap",function(V){V.type==="entity"&&(V.attributes.title=V.content.replace(/&/,"&"))}),Object.defineProperty(Bt.languages.markup.tag,"addInlined",{value:function(dt,Ie){var Co={};Co["language-"+Ie]={pattern:/(^$)/i,lookbehind:!0,inside:Bt.languages[Ie]},Co.cdata=/^$/i;var Pt={"included-cdata":{pattern://i,inside:Co}};Pt["language-"+Ie]={pattern:/[\s\S]+/,inside:Bt.languages[Ie]};var lo={};lo[dt]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return dt}),"i"),lookbehind:!0,greedy:!0,inside:Pt},Bt.languages.insertBefore("markup","cdata",lo)}}),Object.defineProperty(Bt.languages.markup.tag,"addAttribute",{value:function(V,dt){Bt.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+V+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[dt,"language-"+dt],inside:Bt.languages[dt]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Bt.languages.html=Bt.languages.markup,Bt.languages.mathml=Bt.languages.markup,Bt.languages.svg=Bt.languages.markup,Bt.languages.xml=Bt.languages.extend("markup",{}),Bt.languages.ssml=Bt.languages.xml,Bt.languages.atom=Bt.languages.xml,Bt.languages.rss=Bt.languages.xml,function(V){var dt=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,Ie=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],Co=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,Pt=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,lo=/[{}\[\](),:;]/;V.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:dt,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:Ie,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:Co,operator:Pt,punctuation:lo};var zo={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:V.languages.php},to=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:zo}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:zo}}];V.languages.insertBefore("php","variable",{string:to,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:dt,string:to,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:Ie,number:Co,operator:Pt,punctuation:lo}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),V.hooks.add("before-tokenize",function(Se){if(/<\?/.test(Se.code)){var $e=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;V.languages["markup-templating"].buildPlaceholders(Se,"php",$e)}}),V.hooks.add("after-tokenize",function(Se){V.languages["markup-templating"].tokenizePlaceholders(Se,"php")})}(Bt),Bt.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Bt.languages.python["string-interpolation"].inside.interpolation.inside.rest=Bt.languages.python,Bt.languages.py=Bt.languages.python,function(V){V.languages.ruby=V.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===||[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),V.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var dt={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:V.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete V.languages.ruby.function;var Ie="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",Co=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;V.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+Ie+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:dt,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:dt,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+Co),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+Co+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),V.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+Ie),greedy:!0,inside:{interpolation:dt,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:dt,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:dt,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+Ie),greedy:!0,inside:{interpolation:dt,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:dt,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete V.languages.ruby.string,V.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),V.languages.rb=V.languages.ruby}(Bt),window.Prism=Rt,Bt}(void 0,void 0),tn=lt=>Mt=>Mt.options.get(lt),To=lt=>{const Mt=lt.options.register;Mt("codesample_languages",{processor:"object[]"}),Mt("codesample_global_prismjs",{processor:"boolean",default:!1})},Ue=tn("codesample_languages"),it=tn("codesample_global_prismjs"),So=lt=>Mo.Prism&&it(lt)?Mo.Prism:jo,co=lt=>Io(lt)&<.nodeName==="PRE"&<.className.indexOf("language-")!==-1,he=lt=>{const Mt=lt.selection?lt.selection.getNode():null;return co(Mt)?io.some(Mt):io.none()},Dt=(lt,Mt,ht)=>{const Rt=lt.dom;lt.undoManager.transact(()=>{const uo=he(lt);return ht=ko.DOM.encode(ht),uo.fold(()=>{lt.insertContent('
    '+ht+"
    ");const Bt=Rt.select("#__new")[0];Rt.setAttrib(Bt,"id",null),lt.selection.select(Bt)},Bt=>{Rt.setAttrib(Bt,"class","language-"+Mt),Bt.innerHTML=ht,So(lt).highlightElement(Bt),lt.selection.select(Bt)})})},fo=lt=>he(lt).bind(ht=>io.from(ht.textContent)).getOr(""),me=lt=>{const Mt=[{text:"HTML/XML",value:"markup"},{text:"JavaScript",value:"javascript"},{text:"CSS",value:"css"},{text:"PHP",value:"php"},{text:"Ruby",value:"ruby"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C",value:"c"},{text:"C#",value:"csharp"},{text:"C++",value:"cpp"}],ht=Ue(lt);return ht||Mt},Ze=(lt,Mt)=>he(lt).fold(()=>Mt,Rt=>{const uo=Rt.className.match(/language-(\w+)/);return uo?uo[1]:Mt}),de=lt=>{const Mt=me(lt),ht=jt(Mt).fold(Qo(""),Bt=>Bt.value),Rt=Ze(lt,ht),uo=fo(lt);lt.windowManager.open({title:"Insert/Edit Code Sample",size:"large",body:{type:"panel",items:[{type:"listbox",name:"language",label:"Language",items:Mt},{type:"textarea",name:"code",label:"Code view"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:{language:Rt,code:uo},onSubmit:Bt=>{const V=Bt.getData();Dt(lt,V.language,V.code),Bt.close()}})},rt=lt=>{lt.addCommand("codesample",()=>{const Mt=lt.selection.getNode();lt.selection.isCollapsed()||co(Mt)?de(lt):lt.formatter.toggle("code")})},$t=(lt=>Mt=>Mt.replace(lt,""))(/^\s+|\s+$/g);var gn=tinymce.util.Tools.resolve("tinymce.util.Tools");const Bo=lt=>{lt.on("PreProcess",Mt=>{const ht=lt.dom,Rt=ht.select("pre[contenteditable=false]",Mt.node);gn.each(gn.grep(Rt,co),uo=>{const Bt=uo.textContent;ht.setAttrib(uo,"class",$t(ht.getAttrib(uo,"class"))),ht.setAttrib(uo,"contentEditable",null),ht.setAttrib(uo,"data-mce-highlighted",null);let V;for(;V=uo.firstChild;)uo.removeChild(V);const dt=ht.add(uo,"code");dt.textContent=Bt})}),lt.on("SetContent",()=>{const Mt=lt.dom,ht=gn.grep(Mt.select("pre"),Rt=>co(Rt)&&Mt.getAttrib(Rt,"data-mce-highlighted")!=="true");ht.length&<.undoManager.transact(()=>{gn.each(ht,Rt=>{var uo;gn.each(Mt.select("br",Rt),Bt=>{Mt.replace(lt.getDoc().createTextNode(` +`),Bt)}),Rt.innerHTML=Mt.encode((uo=Rt.textContent)!==null&&uo!==void 0?uo:""),So(lt).highlightElement(Rt),Mt.setAttrib(Rt,"data-mce-highlighted",!0),Rt.className=$t(Rt.className)})})}),lt.on("PreInit",()=>{lt.parser.addNodeFilter("pre",Mt=>{var ht;for(let Rt=0,uo=Mt.length;Rtht=>{const Rt=()=>{ht.setEnabled(lt.selection.isEditable()),Mt(ht)};return lt.on("NodeChange",Rt),Rt(),()=>{lt.off("NodeChange",Rt)}},R=lt=>{const Mt=lt.selection.getStart();return lt.dom.is(Mt,'pre[class*="language-"]')},qe=lt=>{const Mt=()=>lt.execCommand("codesample");lt.ui.registry.addToggleButton("codesample",{icon:"code-sample",tooltip:"Insert/edit code sample",onAction:Mt,onSetup:Ct(lt,ht=>{ht.setActive(R(lt))})}),lt.ui.registry.addMenuItem("codesample",{text:"Code sample...",icon:"code-sample",onAction:Mt,onSetup:Ct(lt)})};var Je=()=>{xo.add("codesample",lt=>{To(lt),Bo(lt),qe(lt),rt(lt),lt.on("dblclick",Mt=>{co(Mt.target)&&de(lt)})})};Je()})();(function(){var xo=tinymce.util.Tools.resolve("tinymce.PluginManager");const Ko=(ut,zt,Ft)=>{var vo;return Ft(ut,zt.prototype)?!0:((vo=ut.constructor)===null||vo===void 0?void 0:vo.name)===zt.name},Io=ut=>{const zt=typeof ut;return ut===null?"null":zt==="object"&&Array.isArray(ut)?"array":zt==="object"&&Ko(ut,String,(Ft,vo)=>vo.isPrototypeOf(Ft))?"string":zt},on=ut=>zt=>Io(zt)===ut,Qo=ut=>zt=>typeof zt===ut,io=on("string"),Po=Qo("boolean"),jt=ut=>ut==null,ko=ut=>!jt(ut),Mo=Qo("function"),jo=Qo("number"),tn=(ut,zt)=>Ft=>ut(zt(Ft)),Ue=(ut=>()=>ut)(!1);class it{constructor(zt,Ft){this.tag=zt,this.value=Ft}static some(zt){return new it(!0,zt)}static none(){return it.singletonNone}fold(zt,Ft){return this.tag?Ft(this.value):zt()}isSome(){return this.tag}isNone(){return!this.tag}map(zt){return this.tag?it.some(zt(this.value)):it.none()}bind(zt){return this.tag?zt(this.value):it.none()}exists(zt){return this.tag&&zt(this.value)}forall(zt){return!this.tag||zt(this.value)}filter(zt){return!this.tag||zt(this.value)?this:it.none()}getOr(zt){return this.tag?this.value:zt}or(zt){return this.tag?this:zt}getOrThunk(zt){return this.tag?this.value:zt()}orThunk(zt){return this.tag?this:zt()}getOrDie(zt){if(this.tag)return this.value;throw new Error(zt??"Called getOrDie on None")}static from(zt){return ko(zt)?it.some(zt):it.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(zt){this.tag&&zt(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}it.singletonNone=new it(!1);const So=(ut,zt)=>{const Ft=ut.length,vo=new Array(Ft);for(let Xt=0;Xt{for(let Ft=0,vo=ut.length;Ft{const Ft=[];for(let vo=0,Xt=ut.length;vo{const vo=(zt||document).createElement("div");if(vo.innerHTML=ut,!vo.hasChildNodes()||vo.childNodes.length>1){const Xt="HTML does not have a single root node";throw console.error(Xt,ut),new Error(Xt)}return $t(vo.childNodes[0])},rt=(ut,zt)=>{const vo=(zt||document).createElement(ut);return $t(vo)},Yo=(ut,zt)=>{const vo=(zt||document).createTextNode(ut);return $t(vo)},$t=ut=>{if(ut==null)throw new Error("Node cannot be null or undefined");return{dom:ut}},Bo={fromHtml:de,fromTag:rt,fromText:Yo,fromDom:$t,fromPoint:(ut,zt,Ft)=>it.from(ut.dom.elementFromPoint(zt,Ft)).map($t)},Ct=(ut,zt)=>{const Ft=ut.dom;if(Ft.nodeType!==me)return!1;{const vo=Ft;if(vo.matches!==void 0)return vo.matches(zt);if(vo.msMatchesSelector!==void 0)return vo.msMatchesSelector(zt);if(vo.webkitMatchesSelector!==void 0)return vo.webkitMatchesSelector(zt);if(vo.mozMatchesSelector!==void 0)return vo.mozMatchesSelector(zt);throw new Error("Browser lacks native selectors")}};typeof window<"u"||Function("return this;")();const R=ut=>ut.dom.nodeName.toLowerCase(),qe=ut=>ut.dom.nodeType,Je=ut=>zt=>qe(zt)===ut,lt=Je(me),Mt=Je(Ze),ht=Je(Dt),Rt=Je(fo),uo=ut=>zt=>lt(zt)&&R(zt)===ut,Bt=ut=>Bo.fromDom(ut.dom.ownerDocument),V=ut=>ht(ut)?ut:Bt(ut),dt=ut=>it.from(ut.dom.parentNode).map(Bo.fromDom),Ie=ut=>So(ut.dom.childNodes,Bo.fromDom),Co=(ut,zt,Ft)=>{if(io(Ft)||Po(Ft)||jo(Ft))ut.setAttribute(zt,Ft+"");else throw console.error("Invalid call to Attribute.set. Key ",zt,":: Value ",Ft,":: Element ",ut),new Error("Attribute value was not simple")},Pt=(ut,zt,Ft)=>{Co(ut.dom,zt,Ft)},lo=(ut,zt)=>{ut.dom.removeAttribute(zt)},zo=ut=>Rt(ut)&&ko(ut.dom.host),Se=Mo(Element.prototype.attachShadow)&&Mo(Node.prototype.getRootNode)?ut=>Bo.fromDom(ut.dom.getRootNode()):V,$e=ut=>{const zt=Se(ut);return zo(zt)?it.some(zt):it.none()},ct=ut=>Bo.fromDom(ut.dom.host),gt=ut=>{const zt=Mt(ut)?ut.dom.parentNode:ut.dom;if(zt==null||zt.ownerDocument===null)return!1;const Ft=zt.ownerDocument;return $e(Bo.fromDom(zt)).fold(()=>Ft.body.contains(zt),tn(gt,ct))},pe=(ut,zt,Ft)=>{let vo=ut.dom;const Xt=Mo(Ft)?Ft:Ue;for(;vo.parentNode;){vo=vo.parentNode;const Vo=Bo.fromDom(vo);if(zt(Vo))return it.some(Vo);if(Xt(Vo))break}return it.none()},Oe=(ut,zt,Ft)=>pe(ut,vo=>Ct(vo,zt),Ft),We=ut=>ut.style!==void 0&&Mo(ut.style.getPropertyValue),Fe=(ut,zt)=>{const Ft=ut.dom,Xt=window.getComputedStyle(Ft).getPropertyValue(zt);return Xt===""&&!gt(ut)?ge(Ft,zt):Xt},ge=(ut,zt)=>We(ut)?ut.style.getPropertyValue(zt):"",Me=ut=>Fe(ut,"direction")==="rtl"?"rtl":"ltr",at=(ut,zt)=>he(Ie(ut),zt),ze=(ut,zt)=>at(ut,Ft=>Ct(Ft,zt)),Ge=ut=>dt(ut).filter(lt),Gt=(ut,zt)=>(zt?Oe(ut,"ol,ul"):it.some(ut)).getOr(ut),Vt=uo("li"),Xo=(ut,zt,Ft)=>{co(zt,vo=>{const Xt=Bo.fromDom(vo),Vo=Vt(Xt),$n=Gt(Xt,Vo);Ge($n).each(Wt=>{if(ut.setStyle($n.dom,"direction",null),Me(Wt)===Ft?lo($n,"dir"):Pt($n,"dir",Ft),Me($n)!==Ft&&ut.setStyle($n.dom,"direction",Ft),Vo){const Fn=ze($n,"li[dir],li[style]");co(Fn,ln=>{lo(ln,"dir"),ut.setStyle(ln.dom,"direction",null)})}})})},$o=(ut,zt)=>{ut.selection.isEditable()&&(Xo(ut.dom,ut.selection.getSelectedBlocks(),zt),ut.nodeChanged())},Zo=ut=>{ut.addCommand("mceDirectionLTR",()=>{$o(ut,"ltr")}),ut.addCommand("mceDirectionRTL",()=>{$o(ut,"rtl")})},Gn=(ut,zt)=>Ft=>{const vo=Xt=>{const Vo=Bo.fromDom(Xt.element);Ft.setActive(Me(Vo)===zt),Ft.setEnabled(ut.selection.isEditable())};return ut.on("NodeChange",vo),Ft.setEnabled(ut.selection.isEditable()),()=>ut.off("NodeChange",vo)},Pn=ut=>{ut.ui.registry.addToggleButton("ltr",{tooltip:"Left to right",icon:"ltr",onAction:()=>ut.execCommand("mceDirectionLTR"),onSetup:Gn(ut,"ltr")}),ut.ui.registry.addToggleButton("rtl",{tooltip:"Right to left",icon:"rtl",onAction:()=>ut.execCommand("mceDirectionRTL"),onSetup:Gn(ut,"rtl")})};var zn=()=>{xo.add("directionality",ut=>{Zo(ut),Pn(ut)})};zn()})();(function(){const xo=ie=>{let ve=ie;return{get:()=>ve,set:yn=>{ve=yn}}};var Ko=tinymce.util.Tools.resolve("tinymce.PluginManager");const Io=ie=>({isFullscreen:()=>ie.get()!==null}),on=(ie,ve,yt)=>{var Lt;return yt(ie,ve.prototype)?!0:((Lt=ie.constructor)===null||Lt===void 0?void 0:Lt.name)===ve.name},Qo=ie=>{const ve=typeof ie;return ie===null?"null":ve==="object"&&Array.isArray(ie)?"array":ve==="object"&&on(ie,String,(yt,Lt)=>Lt.isPrototypeOf(yt))?"string":ve},io=ie=>ve=>Qo(ve)===ie,Po=ie=>ve=>typeof ve===ie,jt=ie=>ve=>ie===ve,ko=io("string"),Mo=io("object"),jo=io("array"),tn=jt(null),To=Po("boolean"),Ue=jt(void 0),it=ie=>ie==null,So=ie=>!it(ie),co=Po("function"),he=Po("number"),Dt=()=>{},fo=(ie,ve)=>(...yt)=>ie(ve.apply(null,yt)),me=(ie,ve)=>yt=>ie(ve(yt)),Ze=ie=>()=>ie;function de(ie,...ve){return(...yt)=>{const Lt=ve.concat(yt);return ie.apply(null,Lt)}}const rt=Ze(!1),Yo=Ze(!0);class $t{constructor(ve,yt){this.tag=ve,this.value=yt}static some(ve){return new $t(!0,ve)}static none(){return $t.singletonNone}fold(ve,yt){return this.tag?yt(this.value):ve()}isSome(){return this.tag}isNone(){return!this.tag}map(ve){return this.tag?$t.some(ve(this.value)):$t.none()}bind(ve){return this.tag?ve(this.value):$t.none()}exists(ve){return this.tag&&ve(this.value)}forall(ve){return!this.tag||ve(this.value)}filter(ve){return!this.tag||ve(this.value)?this:$t.none()}getOr(ve){return this.tag?this.value:ve}or(ve){return this.tag?this:ve}getOrThunk(ve){return this.tag?this.value:ve()}orThunk(ve){return this.tag?this:ve()}getOrDie(ve){if(this.tag)return this.value;throw new Error(ve??"Called getOrDie on None")}static from(ve){return So(ve)?$t.some(ve):$t.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(ve){this.tag&&ve(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}$t.singletonNone=new $t(!1);const gn=Array.prototype.push,Bo=(ie,ve)=>{const yt=ie.length,Lt=new Array(yt);for(let yn=0;yn{for(let yt=0,Lt=ie.length;yt{const yt=[];for(let Lt=0,yn=ie.length;Lt{for(let Lt=0,yn=ie.length;Ltqe(ie,ve,rt),lt=ie=>{const ve=[];for(let yt=0,Lt=ie.length;ytlt(Bo(ie,ve)),ht=(ie,ve)=>ve>=0&&veht(ie,0),uo=(ie,ve)=>{for(let yt=0;ytie.isSome()&&ve.isSome()?$t.some(yt(ie.getOrDie(),ve.getOrDie())):$t.none(),V=ie=>{const ve=xo($t.none()),yt=()=>ve.get().each(ie);return{clear:()=>{yt(),ve.set($t.none())},isSet:()=>ve.get().isSome(),get:()=>ve.get(),set:ei=>{yt(),ve.set($t.some(ei))}}},dt=()=>V(ie=>ie.unbind()),Ie=()=>{const ie=V(Dt);return{...ie,on:yt=>ie.get().each(yt)}},Co=(ie,ve)=>{let yt=null;return{cancel:()=>{tn(yt)||(clearTimeout(yt),yt=null)},throttle:(...ur)=>{tn(yt)&&(yt=setTimeout(()=>{yt=null,ie.apply(null,ur)},ve))}}},Pt=Object.keys,lo=(ie,ve)=>{const yt=Pt(ie);for(let Lt=0,yn=yt.length;Lt{let yt=ve??zo;for(let Lt=0;Lt{const yt=ie.split(".");return to(yt,ve)},$e=(ie,ve)=>Se(ie,ve),ct=(ie,ve)=>{const yt=$e(ie,ve);if(yt==null)throw new Error(ie+" not available on this browser");return yt},gt=Object.getPrototypeOf,pe=ie=>ct("HTMLElement",ie),Oe=ie=>{const ve=Se("ownerDocument.defaultView",ie);return Mo(ie)&&(pe(ve).prototype.isPrototypeOf(ie)||/^HTML\w*Element$/.test(gt(ie).constructor.name))},We=9,Fe=11,ge=1,Me=3,at=ie=>ie.dom.nodeType,ze=ie=>ve=>at(ve)===ie,Ge=ie=>Gt(ie)&&Oe(ie.dom),Gt=ze(ge),Vt=ze(Me),Xo=ze(We),$o=ze(Fe),Zo=(ie,ve,yt)=>{if(ko(yt)||To(yt)||he(yt))ie.setAttribute(ve,yt+"");else throw console.error("Invalid call to Attribute.set. Key ",ve,":: Value ",yt,":: Element ",ie),new Error("Attribute value was not simple")},Gn=(ie,ve,yt)=>{Zo(ie.dom,ve,yt)},Pn=(ie,ve)=>{const yt=ie.dom.getAttribute(ve);return yt===null?void 0:yt},zn=(ie,ve)=>{ie.dom.removeAttribute(ve)},ut=ie=>ie.dom.classList!==void 0,zt=(ie,ve)=>ut(ie)&&ie.dom.classList.contains(ve),Ft=(ie,ve,yt=0,Lt)=>{const yn=ie.indexOf(ve,yt);return yn!==-1?Ue(Lt)?!0:yn+ve.length<=Lt:!1},vo=ie=>ie.style!==void 0&&co(ie.style.getPropertyValue),Xt=(ie,ve)=>{const Lt=(ve||document).createElement("div");if(Lt.innerHTML=ie,!Lt.hasChildNodes()||Lt.childNodes.length>1){const yn="HTML does not have a single root node";throw console.error(yn,ie),new Error(yn)}return Rr(Lt.childNodes[0])},Vo=(ie,ve)=>{const Lt=(ve||document).createElement(ie);return Rr(Lt)},$n=(ie,ve)=>{const Lt=(ve||document).createTextNode(ie);return Rr(Lt)},Rr=ie=>{if(ie==null)throw new Error("Node cannot be null or undefined");return{dom:ie}},vr={fromHtml:Xt,fromTag:Vo,fromText:$n,fromDom:Rr,fromPoint:(ie,ve,yt)=>$t.from(ie.dom.elementFromPoint(ve,yt)).map(Rr)},Fn=(ie,ve)=>{const yt=ie.dom;if(yt.nodeType!==ge)return!1;{const Lt=yt;if(Lt.matches!==void 0)return Lt.matches(ve);if(Lt.msMatchesSelector!==void 0)return Lt.msMatchesSelector(ve);if(Lt.webkitMatchesSelector!==void 0)return Lt.webkitMatchesSelector(ve);if(Lt.mozMatchesSelector!==void 0)return Lt.mozMatchesSelector(ve);throw new Error("Browser lacks native selectors")}},ln=ie=>ie.nodeType!==ge&&ie.nodeType!==We&&ie.nodeType!==Fe||ie.childElementCount===0,xr=(ie,ve)=>{const yt=ve===void 0?document:ve.dom;return ln(yt)?[]:Bo(yt.querySelectorAll(ie),vr.fromDom)},Ys=(ie,ve)=>ie.dom===ve.dom,Yr=ie=>vr.fromDom(ie.dom.ownerDocument),Pa=ie=>Xo(ie)?ie:Yr(ie),cs=ie=>$t.from(ie.dom.parentNode).map(vr.fromDom),Ha=(ie,ve)=>{const yt=co(ve)?ve:rt;let Lt=ie.dom;const yn=[];for(;Lt.parentNode!==null&&Lt.parentNode!==void 0;){const ur=Lt.parentNode,Ra=vr.fromDom(ur);if(yn.push(Ra),yt(Ra)===!0)break;Lt=ur}return yn},ja=ie=>{const ve=yt=>R(yt,Lt=>!Ys(ie,Lt));return cs(ie).map(Us).map(ve).getOr([])},$s=ie=>$t.from(ie.dom.nextSibling).map(vr.fromDom),Us=ie=>Bo(ie.dom.childNodes,vr.fromDom),_a=ie=>$o(ie)&&So(ie.dom.host),tt=co(Element.prototype.attachShadow)&&co(Node.prototype.getRootNode),_t=Ze(tt),Do=tt?ie=>vr.fromDom(ie.dom.getRootNode()):Pa,St=ie=>{const ve=Do(ie);return _a(ve)?$t.some(ve):$t.none()},zr=ie=>vr.fromDom(ie.dom.host),kr=ie=>{if(_t()&&So(ie.target)){const ve=vr.fromDom(ie.target);if(Gt(ve)&&Is(ve)&&ie.composed&&ie.composedPath){const yt=ie.composedPath();if(yt)return Rt(yt)}}return $t.from(ie.target)},Is=ie=>So(ie.dom.shadowRoot),Xr=ie=>{const ve=Vt(ie)?ie.dom.parentNode:ie.dom;if(ve==null||ve.ownerDocument===null)return!1;const yt=ve.ownerDocument;return St(vr.fromDom(ve)).fold(()=>yt.body.contains(ve),me(Xr,zr))},gr=ie=>{const ve=ie.dom.body;if(ve==null)throw new Error("Body is not available yet");return vr.fromDom(ve)},De=(ie,ve,yt)=>{if(!ko(yt))throw console.error("Invalid call to CSS.set. Property ",ve,":: Value ",yt,":: Element ",ie),new Error("CSS value must be a string: "+yt);vo(ie)&&ie.style.setProperty(ve,yt)},Ae=(ie,ve,yt)=>{const Lt=ie.dom;De(Lt,ve,yt)},wt=(ie,ve)=>{const yt=ie.dom;lo(ve,(Lt,yn)=>{De(yt,yn,Lt)})},It=(ie,ve)=>{const yt=ie.dom,yn=window.getComputedStyle(yt).getPropertyValue(ve);return yn===""&&!Xr(ie)?dn(yt,ve):yn},dn=(ie,ve)=>vo(ie)?ie.style.getPropertyValue(ve):"",nn=(ie,ve,yt,Lt,yn,ur,Ra)=>({target:ie,x:ve,y:yt,stop:Lt,prevent:yn,kill:ur,raw:Ra}),sr=ie=>{const ve=vr.fromDom(kr(ie).getOr(ie.target)),yt=()=>ie.stopPropagation(),Lt=()=>ie.preventDefault(),yn=fo(Lt,yt);return nn(ve,ie.clientX,ie.clientY,yt,Lt,yn,ie)},Vr=(ie,ve)=>yt=>{ie(yt)&&ve(sr(yt))},Br=(ie,ve,yt,Lt,yn)=>{const ur=Vr(yt,Lt);return ie.dom.addEventListener(ve,ur,yn),{unbind:de(Ce,ie,ve,ur,yn)}},Jo=(ie,ve,yt,Lt)=>Br(ie,ve,yt,Lt,!1),Ce=(ie,ve,yt,Lt)=>{ie.dom.removeEventListener(ve,yt,Lt)},Ne=Yo,Zt=(ie,ve,yt)=>Jo(ie,ve,Ne,yt),Lo=ie=>{let ve=!1,yt;return(...Lt)=>(ve||(ve=!0,yt=ie.apply(null,Lt)),yt)},Ho=(ie,ve,yt,Lt)=>{const yn=ie.isiOS()&&/ipad/i.test(yt)===!0,ur=ie.isiOS()&&!yn,Ra=ie.isiOS()||ie.isAndroid(),ei=Ra||Lt("(pointer:coarse)"),ia=yn||!ur&&Ra&&Lt("(min-device-width:768px)"),pa=ur||Ra&&!ia,Ps=ve.isSafari()&&ie.isiOS()&&/safari/i.test(yt)===!1,ta=!pa&&!ia&&!Ps;return{isiPad:Ze(yn),isiPhone:Ze(ur),isTablet:Ze(ia),isPhone:Ze(pa),isTouch:Ze(ei),isAndroid:ie.isAndroid,isiOS:ie.isiOS,isWebView:Ze(Ps),isDesktop:Ze(ta)}},rn=(ie,ve)=>{for(let yt=0;yt{const yt=rn(ie,ve);if(!yt)return{major:0,minor:0};const Lt=yn=>Number(ve.replace(yt,"$"+yn));return Un(Lt(1),Lt(2))},hn=(ie,ve)=>{const yt=String(ve).toLowerCase();return ie.length===0?wn():Go(ie,yt)},wn=()=>Un(0,0),Un=(ie,ve)=>({major:ie,minor:ve}),Ar={nu:Un,detect:hn,unknown:wn},ra=(ie,ve)=>uo(ve.brands,yt=>{const Lt=yt.brand.toLowerCase();return Je(ie,yn=>{var ur;return Lt===((ur=yn.brand)===null||ur===void 0?void 0:ur.toLowerCase())}).map(yn=>({current:yn.name,version:Ar.nu(parseInt(yt.version,10),0)}))}),Xs=(ie,ve)=>{const yt=String(ve).toLowerCase();return Je(ie,Lt=>Lt.search(yt))},Zs=(ie,ve)=>Xs(ie,ve).map(yt=>{const Lt=Ar.detect(yt.versionRegexes,ve);return{current:yt.name,version:Lt}}),mi=(ie,ve)=>Xs(ie,ve).map(yt=>{const Lt=Ar.detect(yt.versionRegexes,ve);return{current:yt.name,version:Lt}}),Wr=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,rr=ie=>ve=>Ft(ve,ie),Sr=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:ie=>Ft(ie,"edge/")&&Ft(ie,"chrome")&&Ft(ie,"safari")&&Ft(ie,"applewebkit")},{name:"Chromium",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Wr],search:ie=>Ft(ie,"chrome")&&!Ft(ie,"chromeframe")},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:ie=>Ft(ie,"msie")||Ft(ie,"trident")},{name:"Opera",versionRegexes:[Wr,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:rr("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:rr("firefox")},{name:"Safari",versionRegexes:[Wr,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:ie=>(Ft(ie,"safari")||Ft(ie,"mobile/"))&&Ft(ie,"applewebkit")}],va=[{name:"Windows",search:rr("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:ie=>Ft(ie,"iphone")||Ft(ie,"ipad"),versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:rr("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"macOS",search:rr("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:rr("linux"),versionRegexes:[]},{name:"Solaris",search:rr("sunos"),versionRegexes:[]},{name:"FreeBSD",search:rr("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:rr("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],Cs={browsers:Ze(Sr),oses:Ze(va)},za="Edge",ws="Chromium",As="IE",Aa="Opera",Kn="Firefox",Os="Safari",Ma=()=>Ca({current:void 0,version:Ar.unknown()}),Ca=ie=>{const ve=ie.current,yt=ie.version,Lt=yn=>()=>ve===yn;return{current:ve,version:yt,isEdge:Lt(za),isChromium:Lt(ws),isIE:Lt(As),isOpera:Lt(Aa),isFirefox:Lt(Kn),isSafari:Lt(Os)}},ds={unknown:Ma,nu:Ca,edge:Ze(za),chromium:Ze(ws),ie:Ze(As),opera:Ze(Aa),firefox:Ze(Kn),safari:Ze(Os)},xa="Windows",Rn="iOS",Hi="Android",Bn="Linux",ji="macOS",go="Solaris",aa="FreeBSD",Ss="ChromeOS",Ir=()=>gi({current:void 0,version:Ar.unknown()}),gi=ie=>{const ve=ie.current,yt=ie.version,Lt=yn=>()=>ve===yn;return{current:ve,version:yt,isWindows:Lt(xa),isiOS:Lt(Rn),isAndroid:Lt(Hi),isMacOS:Lt(ji),isLinux:Lt(Bn),isSolaris:Lt(go),isFreeBSD:Lt(aa),isChromeOS:Lt(Ss)}},sc={unknown:Ir,nu:gi,windows:Ze(xa),ios:Ze(Rn),android:Ze(Hi),linux:Ze(Bn),macos:Ze(ji),solaris:Ze(go),freebsd:Ze(aa),chromeos:Ze(Ss)},ne={detect:(ie,ve,yt)=>{const Lt=Cs.browsers(),yn=Cs.oses(),ur=ve.bind(ia=>ra(Lt,ia)).orThunk(()=>Zs(Lt,ie)).fold(ds.unknown,ds.nu),Ra=mi(yn,ie).fold(sc.unknown,sc.nu),ei=Ho(Ra,ur,ie,yt);return{browser:ur,os:Ra,deviceType:ei}}},Be=ie=>window.matchMedia(ie).matches;let Pe=Lo(()=>ne.detect(navigator.userAgent,$t.from(navigator.userAgentData),Be));const Nt=()=>Pe(),ho=(ie,ve)=>({left:ie,top:ve,translate:(Lt,yn)=>ho(ie+Lt,ve+yn)}),bn=ho,kn=ie=>{const ve=ie!==void 0?ie.dom:document,yt=ve.body.scrollLeft||ve.documentElement.scrollLeft,Lt=ve.body.scrollTop||ve.documentElement.scrollTop;return bn(yt,Lt)},_r=ie=>{const ve=ie===void 0?window:ie;return Nt().browser.isFirefox()?$t.none():$t.from(ve.visualViewport)},Or=(ie,ve,yt,Lt)=>({x:ie,y:ve,width:yt,height:Lt,right:ie+yt,bottom:ve+Lt}),Sa=ie=>{const ve=ie===void 0?window:ie,yt=ve.document,Lt=kn(vr.fromDom(yt));return _r(ve).fold(()=>{const yn=ve.document.documentElement,ur=yn.clientWidth,Ra=yn.clientHeight;return Or(Lt.left,Lt.top,ur,Ra)},yn=>Or(Math.max(yn.pageLeft,Lt.left),Math.max(yn.pageTop,Lt.top),yn.width,yn.height))},ma=(ie,ve,yt)=>_r(yt).map(Lt=>{const yn=ur=>ve(sr(ur));return Lt.addEventListener(ie,yn),{unbind:()=>Lt.removeEventListener(ie,yn)}}).getOrThunk(()=>({unbind:Dt}));var Ga=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),Q=tinymce.util.Tools.resolve("tinymce.Env");const Ee=(ie,ve)=>{ie.dispatch("FullscreenStateChanged",{state:ve}),ie.dispatch("ResizeEditor")},bt=ie=>ve=>ve.options.get(ie),wo=ie=>{const ve=ie.options.register;ve("fullscreen_native",{processor:"boolean",default:!1})},Zn=bt("fullscreen_native"),U=ie=>{const ve=vr.fromDom(ie.getElement());return St(ve).map(zr).getOrThunk(()=>gr(Yr(ve)))},oe=ie=>ie.fullscreenElement!==void 0?ie.fullscreenElement:ie.msFullscreenElement!==void 0?ie.msFullscreenElement:ie.webkitFullscreenElement!==void 0?ie.webkitFullscreenElement:null,xe=()=>document.fullscreenElement!==void 0?"fullscreenchange":document.msFullscreenElement!==void 0?"MSFullscreenChange":document.webkitFullscreenElement!==void 0?"webkitfullscreenchange":"fullscreenchange",xt=ie=>{const ve=ie.dom;ve.requestFullscreen?ve.requestFullscreen():ve.msRequestFullscreen?ve.msRequestFullscreen():ve.webkitRequestFullScreen&&ve.webkitRequestFullScreen()},po=ie=>{const ve=ie.dom;ve.exitFullscreen?ve.exitFullscreen():ve.msExitFullscreen?ve.msExitFullscreen():ve.webkitCancelFullScreen&&ve.webkitCancelFullScreen()},Yn=ie=>ie.dom===oe(Yr(ie).dom),ga=(ie,ve,yt)=>R(Ha(ie,yt),ve),ks=(ie,ve)=>R(ja(ie),ve),_i=ie=>xr(ie),Js=(ie,ve,yt)=>ga(ie,Lt=>Fn(Lt,ve),yt),Vi=(ie,ve)=>ks(ie,yt=>Fn(yt,ve)),Qs="data-ephox-mobile-fullscreen-style",ic="display:none!important;",_s="position:absolute!important;",vc="top:0!important;left:0!important;margin:0!important;padding:0!important;width:100%!important;height:100%!important;overflow:visible!important;",je="background-color:rgb(255,255,255)!important;",Ll=Q.os.isAndroid(),pd=ie=>{const ve=It(ie,"background-color");return ve!==void 0&&ve!==""?"background-color:"+ve+"!important":je},Ci=(ie,ve,yt)=>{const Lt=pa=>Vi(pa,"*:not(.tox-silver-sink)"),yn=pa=>Ps=>{const ta=Pn(Ps,"style"),cc=ta===void 0?"no-styles":ta.trim();cc!==pa&&(Gn(Ps,Qs,cc),wt(Ps,ie.parseStyle(pa)))},ur=Js(ve,"*"),Ra=Mt(ur,Lt),ei=pd(yt);Ct(Ra,yn(ic)),Ct(ur,yn(_s+vc+ei)),yn((Ll===!0?"":_s)+vc+ei)(ve)},bp=ie=>{const ve=_i("["+Qs+"]");Ct(ve,yt=>{const Lt=Pn(yt,Qs);Lt&&Lt!=="no-styles"?wt(yt,ie.parseStyle(Lt)):zn(yt,"style"),zn(yt,Qs)})},sa=Ga.DOM,lc=()=>Sa(window),ag=ie=>window.scrollTo(ie.x,ie.y),Si=_r().fold(()=>({bind:Dt,unbind:Dt}),ie=>{const ve=Ie(),yt=dt(),Lt=dt(),yn=()=>{document.body.scrollTop=0,document.documentElement.scrollTop=0},ur=()=>{window.requestAnimationFrame(()=>{ve.on(pa=>wt(pa,{top:ie.offsetTop+"px",left:ie.offsetLeft+"px",height:ie.height+"px",width:ie.width+"px"}))})},Ra=Co(()=>{yn(),ur()},50);return{bind:pa=>{ve.set(pa),Ra.throttle(),yt.set(ma("resize",Ra.throttle)),Lt.set(ma("scroll",Ra.throttle))},unbind:()=>{ve.on(()=>{yt.clear(),Lt.clear()}),ve.clear()}}}),Gc=(ie,ve)=>{const yt=document.body,Lt=document.documentElement,yn=ie.getContainer(),ur=vr.fromDom(yn),Ra=$s(ur).filter(Es=>Ge(Es)&&zt(Es,"tox-silver-sink")),ei=U(ie),ia=ve.get(),pa=vr.fromDom(ie.getBody()),Ps=Q.deviceType.isTouch(),ta=yn.style,cc=ie.iframeElement,Xl=cc==null?void 0:cc.style,Ei=Es=>{Es(yt,"tox-fullscreen"),Es(Lt,"tox-fullscreen"),Es(yn,"tox-fullscreen"),St(ur).map(Ba=>zr(Ba).dom).each(Ba=>{Es(Ba,"tox-fullscreen"),Es(Ba,"tox-shadowhost")})},xc=()=>{Ps&&bp(ie.dom),Ei(sa.removeClass),Si.unbind(),$t.from(ve.get()).each(Es=>Es.fullscreenChangeHandler.unbind())};if(ia)ia.fullscreenChangeHandler.unbind(),Zn(ie)&&Yn(ei)&&po(Yr(ei)),Xl.width=ia.iframeWidth,Xl.height=ia.iframeHeight,ta.width=ia.containerWidth,ta.height=ia.containerHeight,ta.top=ia.containerTop,ta.left=ia.containerLeft,Bt(Ra,ia.sinkCssPosition,(Es,Ba)=>{Ae(Es,"position",Ba)}),xc(),ag(ia.scrollPos),ve.set(null),Ee(ie,!1),ie.off("remove",xc);else{const Es=Zt(Yr(ei),xe(),Fa=>{Zn(ie)&&!Yn(ei)&&ve.get()!==null&&Gc(ie,ve)}),Ba={scrollPos:lc(),containerWidth:ta.width,containerHeight:ta.height,containerTop:ta.top,containerLeft:ta.left,iframeWidth:Xl.width,iframeHeight:Xl.height,fullscreenChangeHandler:Es,sinkCssPosition:Ra.map(Fa=>It(Fa,"position"))};Ps&&Ci(ie.dom,ur,pa),Xl.width=Xl.height="100%",ta.width=ta.height="",Ei(sa.addClass),Ra.each(Fa=>{Ae(Fa,"position","fixed")}),Si.bind(ur),ie.on("remove",xc),ve.set(Ba),Zn(ie)&&xt(ei),Ee(ie,!0)}},Gi=(ie,ve)=>{ie.addCommand("mceFullScreen",()=>{Gc(ie,ve)})},Il=(ie,ve)=>yt=>{yt.setActive(ve.get()!==null);const Lt=yn=>yt.setActive(yn.state);return ie.on("FullscreenStateChanged",Lt),()=>ie.off("FullscreenStateChanged",Lt)},Yl=(ie,ve)=>{const yt=()=>ie.execCommand("mceFullScreen");ie.ui.registry.addToggleMenuItem("fullscreen",{text:"Fullscreen",icon:"fullscreen",shortcut:"Meta+Shift+F",onAction:yt,onSetup:Il(ie,ve)}),ie.ui.registry.addToggleButton("fullscreen",{tooltip:"Fullscreen",icon:"fullscreen",onAction:yt,onSetup:Il(ie,ve)})};var Ki=()=>{Ko.add("fullscreen",ie=>{const ve=xo(null);return ie.inline||(wo(ie),Gi(ie,ve),Yl(ie,ve),ie.addShortcut("Meta+Shift+F","","mceFullScreen")),Io(ve)})};Ki()})();(function(){const xo=ze=>{let Ge=ze;return{get:()=>Ge,set:Xo=>{Ge=Xo}}};var Ko=tinymce.util.Tools.resolve("tinymce.PluginManager");let Io=0;const on=ze=>{const Gt=new Date().getTime(),Vt=Math.floor(Math.random()*1e9);return Io++,ze+"_"+Vt+Io+String(Gt)},Qo=ze=>({addTab:Gt=>{var Vt;const Xo=(Vt=Gt.name)!==null&&Vt!==void 0?Vt:on("tab-name"),$o=ze.get();$o[Xo]=Gt,ze.set($o)}}),io=(ze,Ge)=>{ze.addCommand("mceHelp",Ge)},Po=ze=>Ge=>Ge.options.get(ze),jt=ze=>{const Ge=ze.options.register;Ge("help_tabs",{processor:"array"})},ko=Po("help_tabs"),Mo=Po("forced_plugins"),jo=(ze,Ge)=>{ze.ui.registry.addButton("help",{icon:"help",tooltip:"Help",onAction:Ge}),ze.ui.registry.addMenuItem("help",{text:"Help",icon:"help",shortcut:"Alt+0",onAction:Ge})},tn=(ze,Ge,Gt)=>{var Vt;return Gt(ze,Ge.prototype)?!0:((Vt=ze.constructor)===null||Vt===void 0?void 0:Vt.name)===Ge.name},To=ze=>{const Ge=typeof ze;return ze===null?"null":Ge==="object"&&Array.isArray(ze)?"array":Ge==="object"&&tn(ze,String,(Gt,Vt)=>Vt.isPrototypeOf(Gt))?"string":Ge},Ue=ze=>Ge=>To(Ge)===ze,it=ze=>Ge=>typeof Ge===ze,So=ze=>Ge=>ze===Ge,co=Ue("string"),he=So(void 0),Dt=ze=>ze==null,fo=ze=>!Dt(ze),me=it("function"),de=(ze=>()=>ze)(!1);class rt{constructor(Ge,Gt){this.tag=Ge,this.value=Gt}static some(Ge){return new rt(!0,Ge)}static none(){return rt.singletonNone}fold(Ge,Gt){return this.tag?Gt(this.value):Ge()}isSome(){return this.tag}isNone(){return!this.tag}map(Ge){return this.tag?rt.some(Ge(this.value)):rt.none()}bind(Ge){return this.tag?Ge(this.value):rt.none()}exists(Ge){return this.tag&&Ge(this.value)}forall(Ge){return!this.tag||Ge(this.value)}filter(Ge){return!this.tag||Ge(this.value)?this:rt.none()}getOr(Ge){return this.tag?this.value:Ge}or(Ge){return this.tag?this:Ge}getOrThunk(Ge){return this.tag?this.value:Ge()}orThunk(Ge){return this.tag?this:Ge()}getOrDie(Ge){if(this.tag)return this.value;throw new Error(Ge??"Called getOrDie on None")}static from(Ge){return fo(Ge)?rt.some(Ge):rt.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(Ge){this.tag&&Ge(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}rt.singletonNone=new rt(!1);const Yo=Array.prototype.slice,$t=Array.prototype.indexOf,gn=(ze,Ge)=>$t.call(ze,Ge),Bo=(ze,Ge)=>gn(ze,Ge)>-1,Ct=(ze,Ge)=>{const Gt=ze.length,Vt=new Array(Gt);for(let Xo=0;Xo{const Gt=[];for(let Vt=0,Xo=ze.length;Vt{for(let Vt=0,Xo=ze.length;Vtqe(ze,Ge,de),lt=(ze,Ge)=>{const Gt=Yo.call(ze,0);return Gt.sort(Ge),Gt},Mt=Object.keys,ht=Object.hasOwnProperty,Rt=(ze,Ge)=>uo(ze,Ge)?rt.from(ze[Ge]):rt.none(),uo=(ze,Ge)=>ht.call(ze,Ge),Bt=ze=>{const Ge=[],Gt=Vt=>{Ge.push(Vt)};for(let Vt=0;VtV.load(`tinymce.html-i18n.help-keynav.${Ge}`,`${ze}/js/i18n/keynav/${Ge}.js`),Co=ze=>Ie(ze,dt.getCode()).catch(()=>Ie(ze,"en")),Pt=(ze,Ge)=>{ze.on("init",()=>{Co(Ge)})},lo=async ze=>({name:"keyboardnav",title:"Keyboard Navigation",items:[{type:"htmlpanel",presets:"document",html:await Co(ze)}]});var zo=tinymce.util.Tools.resolve("tinymce.Env");const to=ze=>{const Ge=zo.os.isMacOS()||zo.os.isiOS(),Xo=Ge?{alt:"⌥",ctrl:"⌃",shift:"⇧",meta:"⌘",access:"⌃⌥"}:{meta:"Ctrl ",access:"Shift + Alt "},$o=ze.split("+"),Zo=Ct($o,Gn=>{const Pn=Gn.toLowerCase().trim();return uo(Xo,Pn)?Xo[Pn]:Gn});return Ge?Zo.join("").replace(/\s/,""):Zo.join("+")},Se=[{shortcuts:["Meta + B"],action:"Bold"},{shortcuts:["Meta + I"],action:"Italic"},{shortcuts:["Meta + U"],action:"Underline"},{shortcuts:["Meta + A"],action:"Select all"},{shortcuts:["Meta + Y","Meta + Shift + Z"],action:"Redo"},{shortcuts:["Meta + Z"],action:"Undo"},{shortcuts:["Access + 1"],action:"Heading 1"},{shortcuts:["Access + 2"],action:"Heading 2"},{shortcuts:["Access + 3"],action:"Heading 3"},{shortcuts:["Access + 4"],action:"Heading 4"},{shortcuts:["Access + 5"],action:"Heading 5"},{shortcuts:["Access + 6"],action:"Heading 6"},{shortcuts:["Access + 7"],action:"Paragraph"},{shortcuts:["Access + 8"],action:"Div"},{shortcuts:["Access + 9"],action:"Address"},{shortcuts:["Alt + 0"],action:"Open help dialog"},{shortcuts:["Alt + F9"],action:"Focus to menubar"},{shortcuts:["Alt + F10"],action:"Focus to toolbar"},{shortcuts:["Alt + F11"],action:"Focus to element path"},{shortcuts:["Ctrl + F9"],action:"Focus to contextual toolbar"},{shortcuts:["Shift + Enter"],action:"Open popup menu for split buttons"},{shortcuts:["Meta + K"],action:"Insert link (if link plugin activated)"},{shortcuts:["Meta + S"],action:"Save (if save plugin activated)"},{shortcuts:["Meta + F"],action:"Find (if searchreplace plugin activated)"},{shortcuts:["Meta + Shift + F"],action:"Switch to or from fullscreen mode"}],$e=()=>{const ze=Ct(Se,Gt=>{const Vt=Ct(Gt.shortcuts,to).join(" or ");return[Gt.action,Vt]});return{name:"shortcuts",title:"Handy Shortcuts",items:[{type:"table",header:["Action","Shortcut"],cells:ze}]}},ct=Ct([{key:"accordion",name:"Accordion"},{key:"advlist",name:"Advanced List"},{key:"anchor",name:"Anchor"},{key:"autolink",name:"Autolink"},{key:"autoresize",name:"Autoresize"},{key:"autosave",name:"Autosave"},{key:"charmap",name:"Character Map"},{key:"code",name:"Code"},{key:"codesample",name:"Code Sample"},{key:"colorpicker",name:"Color Picker"},{key:"directionality",name:"Directionality"},{key:"emoticons",name:"Emoticons"},{key:"fullscreen",name:"Full Screen"},{key:"help",name:"Help"},{key:"image",name:"Image"},{key:"importcss",name:"Import CSS"},{key:"insertdatetime",name:"Insert Date/Time"},{key:"link",name:"Link"},{key:"lists",name:"Lists"},{key:"media",name:"Media"},{key:"nonbreaking",name:"Nonbreaking"},{key:"pagebreak",name:"Page Break"},{key:"preview",name:"Preview"},{key:"quickbars",name:"Quick Toolbars"},{key:"save",name:"Save"},{key:"searchreplace",name:"Search and Replace"},{key:"table",name:"Table"},{key:"template",name:"Template"},{key:"textcolor",name:"Text Color"},{key:"visualblocks",name:"Visual Blocks"},{key:"visualchars",name:"Visual Characters"},{key:"wordcount",name:"Word Count"},{key:"a11ychecker",name:"Accessibility Checker",type:"premium"},{key:"advcode",name:"Advanced Code Editor",type:"premium"},{key:"advtable",name:"Advanced Tables",type:"premium"},{key:"advtemplate",name:"Advanced Templates",type:"premium",slug:"advanced-templates"},{key:"ai",name:"AI Assistant",type:"premium"},{key:"casechange",name:"Case Change",type:"premium"},{key:"checklist",name:"Checklist",type:"premium"},{key:"editimage",name:"Enhanced Image Editing",type:"premium"},{key:"footnotes",name:"Footnotes",type:"premium"},{key:"typography",name:"Advanced Typography",type:"premium",slug:"advanced-typography"},{key:"mediaembed",name:"Enhanced Media Embed",type:"premium",slug:"introduction-to-mediaembed"},{key:"export",name:"Export",type:"premium"},{key:"formatpainter",name:"Format Painter",type:"premium"},{key:"inlinecss",name:"Inline CSS",type:"premium",slug:"inline-css"},{key:"linkchecker",name:"Link Checker",type:"premium"},{key:"mentions",name:"Mentions",type:"premium"},{key:"mergetags",name:"Merge Tags",type:"premium"},{key:"pageembed",name:"Page Embed",type:"premium"},{key:"permanentpen",name:"Permanent Pen",type:"premium"},{key:"powerpaste",name:"PowerPaste",type:"premium",slug:"introduction-to-powerpaste"},{key:"rtc",name:"Real-Time Collaboration",type:"premium",slug:"rtc-introduction"},{key:"tinymcespellchecker",name:"Spell Checker Pro",type:"premium",slug:"introduction-to-tiny-spellchecker"},{key:"autocorrect",name:"Spelling Autocorrect",type:"premium"},{key:"tableofcontents",name:"Table of Contents",type:"premium"},{key:"tinycomments",name:"Tiny Comments",type:"premium",slug:"introduction-to-tiny-comments"},{key:"tinydrive",name:"Tiny Drive",type:"premium",slug:"tinydrive-introduction"}],ze=>({...ze,type:ze.type||"opensource",slug:ze.slug||ze.key})),gt=ze=>{const Ge=()=>{const zn=R(ct,({type:Ft})=>Ft==="premium"),ut=lt(Ct(zn,Ft=>Ft.name),(Ft,vo)=>Ft.localeCompare(vo)),zt=Ct(ut,Ft=>`
  • ${Ft}
  • `).join("");return"

    "+dt.translate("Premium plugins:")+"

    "},Gt=zn=>`${zn.name}`,Vt=(zn,ut)=>{const zt=zn.plugins[ut].getMetadata;if(me(zt)){const Ft=zt();return{name:Ft.name,html:Gt(Ft)}}else return{name:ut,html:ut}},Xo=(zn,ut)=>Je(ct,zt=>zt.key===ut).fold(()=>Vt(zn,ut),zt=>{const Ft=zt.type==="premium"?`${zt.name}*`:zt.name,vo=Gt({name:Ft,url:`https://www.tiny.cloud/docs/tinymce/6/${zt.slug}/`});return{name:Ft,html:vo}}),$o=zn=>{const ut=Mt(zn.plugins),zt=Mo(zn);return he(zt)?ut:R(ut,Ft=>!Bo(zt,Ft))},Zo=zn=>{const ut=$o(zn),zt=lt(Ct(ut,$n=>Xo(zn,$n)),($n,Rr)=>$n.name.localeCompare(Rr.name)),Ft=Ct(zt,$n=>"
  • "+$n.html+"
  • "),vo=Ft.length,Xt=Ft.join("");return"

    "+dt.translate(["Plugins installed ({0}):",vo])+"

      "+Xt+"
    "};return{name:"plugins",title:"Plugins",items:[{type:"htmlpanel",presets:"document",html:[(zn=>zn==null?"":"
    "+Zo(zn)+"
    ")(ze),Ge()].join("")}]}};var pe=tinymce.util.Tools.resolve("tinymce.EditorManager");const Oe=()=>{const Gt='TinyMCE '+((Xo,$o)=>Xo.indexOf("@")===0?"X.X.X":Xo+"."+$o)(pe.majorVersion,pe.minorVersion)+"";return{name:"versions",title:"Version",items:[{type:"htmlpanel",html:"

    "+dt.translate(["You are using {0}",Gt])+"

    ",presets:"document"}]}},We=(ze,Ge)=>{const Gt={},Vt=Ct(ze,Xo=>{var $o;if(co(Xo))return uo(Ge,Xo)&&(Gt[Xo]=Ge[Xo]),Xo;{const Zo=($o=Xo.name)!==null&&$o!==void 0?$o:on("tab-name");return Gt[Zo]=Xo,Zo}});return{tabs:Gt,names:Vt}},Fe=ze=>{const Ge=Mt(ze),Gt=Ge.indexOf("versions");return Gt!==-1&&(Ge.splice(Gt,1),Ge.push("versions")),{tabs:ze,names:Ge}},ge=async(ze,Ge,Gt)=>{const Vt=$e(),Xo=await lo(Gt),$o=gt(ze),Zo=Oe(),Gn={[Vt.name]:Vt,[Xo.name]:Xo,[$o.name]:$o,[Zo.name]:Zo,...Ge.get()};return rt.from(ko(ze)).fold(()=>Fe(Gn),Pn=>We(Pn,Gn))},Me=(ze,Ge,Gt)=>()=>{ge(ze,Ge,Gt).then(({tabs:Vt,names:Xo})=>{const $o=Ct(Xo,Pn=>Rt(Vt,Pn)),Gn={type:"tabpanel",tabs:Bt($o)};ze.windowManager.open({title:"Help",size:"medium",body:Gn,buttons:[{type:"cancel",name:"close",text:"Close",primary:!0}],initialData:{}})})};var at=()=>{Ko.add("help",(ze,Ge)=>{const Gt=xo({}),Vt=Qo(Gt);jt(ze);const Xo=Me(ze,Gt,Ge);return jo(ze,Xo),io(ze,Xo),ze.shortcuts.add("Alt+0","Open help dialog","mceHelp"),Pt(ze,Ge),Vt})};at()})();(function(){var xo=tinymce.util.Tools.resolve("tinymce.PluginManager");const Ko=Object.getPrototypeOf,Io=(U,oe,xe)=>{var xt;return xe(U,oe.prototype)?!0:((xt=U.constructor)===null||xt===void 0?void 0:xt.name)===oe.name},on=U=>{const oe=typeof U;return U===null?"null":oe==="object"&&Array.isArray(U)?"array":oe==="object"&&Io(U,String,(xe,xt)=>xt.isPrototypeOf(xe))?"string":oe},Qo=U=>oe=>on(oe)===U,io=U=>oe=>typeof oe===U,Po=U=>oe=>U===oe,jt=(U,oe)=>Mo(U)&&Io(U,oe,(xe,xt)=>Ko(xe)===xt),ko=Qo("string"),Mo=Qo("object"),jo=U=>jt(U,Object),tn=Qo("array"),To=Po(null),Ue=io("boolean"),it=U=>U==null,So=U=>!it(U),co=io("function"),he=io("number"),Dt=(U,oe)=>{if(tn(U)){for(let xe=0,xt=U.length;xe{};class me{constructor(oe,xe){this.tag=oe,this.value=xe}static some(oe){return new me(!0,oe)}static none(){return me.singletonNone}fold(oe,xe){return this.tag?xe(this.value):oe()}isSome(){return this.tag}isNone(){return!this.tag}map(oe){return this.tag?me.some(oe(this.value)):me.none()}bind(oe){return this.tag?oe(this.value):me.none()}exists(oe){return this.tag&&oe(this.value)}forall(oe){return!this.tag||oe(this.value)}filter(oe){return!this.tag||oe(this.value)?this:me.none()}getOr(oe){return this.tag?this.value:oe}or(oe){return this.tag?this:oe}getOrThunk(oe){return this.tag?this.value:oe()}orThunk(oe){return this.tag?this:oe()}getOrDie(oe){if(this.tag)return this.value;throw new Error(oe??"Called getOrDie on None")}static from(oe){return So(oe)?me.some(oe):me.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(oe){this.tag&&oe(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}me.singletonNone=new me(!1);const Ze=Object.keys,de=Object.hasOwnProperty,rt=(U,oe)=>{const xe=Ze(U);for(let xt=0,po=xe.length;xt(oe,xe)=>{U[xe]=oe},$t=(U,oe,xe,xt)=>{rt(U,(po,Yn)=>{(oe(po,Yn)?xe:xt)(po,Yn)})},gn=(U,oe)=>{const xe={};return $t(U,oe,Yo(xe),fo),xe},Bo=(U,oe)=>de.call(U,oe),Ct=(U,oe)=>Bo(U,oe)&&U[oe]!==void 0&&U[oe]!==null,R=Array.prototype.push,qe=U=>{const oe=[];for(let xe=0,xt=U.length;xeoe>=0&&oeJe(U,0),Mt=(U,oe)=>{for(let xe=0;xe{if(ko(xe)||Ue(xe)||he(xe))U.setAttribute(oe,xe+"");else throw console.error("Invalid call to Attribute.set. Key ",oe,":: Value ",xe,":: Element ",U),new Error("Attribute value was not simple")},Rt=(U,oe,xe)=>{ht(U.dom,oe,xe)},uo=(U,oe)=>{U.dom.removeAttribute(oe)},Bt=(U,oe)=>{const xt=(oe||document).createElement("div");if(xt.innerHTML=U,!xt.hasChildNodes()||xt.childNodes.length>1){const po="HTML does not have a single root node";throw console.error(po,U),new Error(po)}return Ie(xt.childNodes[0])},V=(U,oe)=>{const xt=(oe||document).createElement(U);return Ie(xt)},dt=(U,oe)=>{const xt=(oe||document).createTextNode(U);return Ie(xt)},Ie=U=>{if(U==null)throw new Error("Node cannot be null or undefined");return{dom:U}},Pt={fromHtml:Bt,fromTag:V,fromText:dt,fromDom:Ie,fromPoint:(U,oe,xe)=>me.from(U.dom.elementFromPoint(oe,xe)).map(Ie)};var lo=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),zo=tinymce.util.Tools.resolve("tinymce.util.URI");const to=U=>U.length>0,Se=U=>oe=>oe.options.get(U),$e=U=>{const oe=U.options.register;oe("image_dimensions",{processor:"boolean",default:!0}),oe("image_advtab",{processor:"boolean",default:!1}),oe("image_uploadtab",{processor:"boolean",default:!0}),oe("image_prepend_url",{processor:"string",default:""}),oe("image_class_list",{processor:"object[]"}),oe("image_description",{processor:"boolean",default:!0}),oe("image_title",{processor:"boolean",default:!1}),oe("image_caption",{processor:"boolean",default:!1}),oe("image_list",{processor:xe=>{const xt=xe===!1||ko(xe)||Dt(xe,Mo)||co(xe);return xt?{value:xe,valid:xt}:{valid:!1,message:"Must be false, a string, an array or a function."}},default:!1})},ct=Se("image_dimensions"),gt=Se("image_advtab"),pe=Se("image_uploadtab"),Oe=Se("image_prepend_url"),We=Se("image_class_list"),Fe=Se("image_description"),ge=Se("image_title"),Me=Se("image_caption"),at=Se("image_list"),ze=Se("a11y_advanced_options"),Ge=Se("automatic_uploads"),Gt=U=>to(U.options.get("images_upload_url")),Vt=U=>So(U.options.get("images_upload_handler")),Xo=(U,oe)=>Math.max(parseInt(U,10),parseInt(oe,10)),$o=U=>new Promise(oe=>{const xe=document.createElement("img"),xt=Yn=>{xe.onload=xe.onerror=null,xe.parentNode&&xe.parentNode.removeChild(xe),oe(Yn)};xe.onload=()=>{const Yn=Xo(xe.width,xe.clientWidth),ga=Xo(xe.height,xe.clientHeight),ks={width:Yn,height:ga};xt(Promise.resolve(ks))},xe.onerror=()=>{xt(Promise.reject(`Failed to get image dimensions for: ${U}`))};const po=xe.style;po.visibility="hidden",po.position="fixed",po.bottom=po.left="0px",po.width=po.height="auto",document.body.appendChild(xe),xe.src=U}),Zo=U=>(U&&(U=U.replace(/px$/,"")),U),Gn=U=>(U.length>0&&/^[0-9]+$/.test(U)&&(U+="px"),U),Pn=U=>{if(U.margin){const oe=String(U.margin).split(" ");switch(oe.length){case 1:U["margin-top"]=U["margin-top"]||oe[0],U["margin-right"]=U["margin-right"]||oe[0],U["margin-bottom"]=U["margin-bottom"]||oe[0],U["margin-left"]=U["margin-left"]||oe[0];break;case 2:U["margin-top"]=U["margin-top"]||oe[0],U["margin-right"]=U["margin-right"]||oe[1],U["margin-bottom"]=U["margin-bottom"]||oe[0],U["margin-left"]=U["margin-left"]||oe[1];break;case 3:U["margin-top"]=U["margin-top"]||oe[0],U["margin-right"]=U["margin-right"]||oe[1],U["margin-bottom"]=U["margin-bottom"]||oe[2],U["margin-left"]=U["margin-left"]||oe[1];break;case 4:U["margin-top"]=U["margin-top"]||oe[0],U["margin-right"]=U["margin-right"]||oe[1],U["margin-bottom"]=U["margin-bottom"]||oe[2],U["margin-left"]=U["margin-left"]||oe[3]}delete U.margin}return U},zn=(U,oe)=>{const xe=at(U);ko(xe)?fetch(xe).then(xt=>{xt.ok&&xt.json().then(oe)}):co(xe)?xe(oe):oe(xe)},ut=(U,oe,xe)=>{const xt=()=>{xe.onload=xe.onerror=null,U.selection&&(U.selection.select(xe),U.nodeChanged())};xe.onload=()=>{!oe.width&&!oe.height&&ct(U)&&U.dom.setAttribs(xe,{width:String(xe.clientWidth),height:String(xe.clientHeight)}),xt()},xe.onerror=xt},zt=U=>new Promise((oe,xe)=>{const xt=new FileReader;xt.onload=()=>{oe(xt.result)},xt.onerror=()=>{var po;xe((po=xt.error)===null||po===void 0?void 0:po.message)},xt.readAsDataURL(U)}),Ft=U=>U.nodeName==="IMG"&&(U.hasAttribute("data-mce-object")||U.hasAttribute("data-mce-placeholder")),vo=(U,oe)=>{const xe=U.options.get;return zo.isDomSafe(oe,"img",{allow_html_data_urls:xe("allow_html_data_urls"),allow_script_urls:xe("allow_script_urls"),allow_svg_data_urls:xe("allow_svg_data_urls")})},Xt=lo.DOM,Vo=U=>U.style.marginLeft&&U.style.marginRight&&U.style.marginLeft===U.style.marginRight?Zo(U.style.marginLeft):"",$n=U=>U.style.marginTop&&U.style.marginBottom&&U.style.marginTop===U.style.marginBottom?Zo(U.style.marginTop):"",Rr=U=>U.style.borderWidth?Zo(U.style.borderWidth):"",Wt=(U,oe)=>{var xe;return U.hasAttribute(oe)&&(xe=U.getAttribute(oe))!==null&&xe!==void 0?xe:""},vr=U=>U.parentNode!==null&&U.parentNode.nodeName==="FIGURE",Fn=(U,oe,xe)=>{xe===""||xe===null?U.removeAttribute(oe):U.setAttribute(oe,xe)},ln=U=>{const oe=Xt.create("figure",{class:"image"});Xt.insertAfter(oe,U),oe.appendChild(U),oe.appendChild(Xt.create("figcaption",{contentEditable:"true"},"Caption")),oe.contentEditable="false"},xr=U=>{const oe=U.parentNode;So(oe)&&(Xt.insertAfter(U,oe),Xt.remove(oe))},Ys=U=>{vr(U)?xr(U):ln(U)},Yr=(U,oe)=>{const xe=U.getAttribute("style"),xt=oe(xe!==null?xe:"");xt.length>0?(U.setAttribute("style",xt),U.setAttribute("data-mce-style",xt)):U.removeAttribute("style")},Pa=(U,oe)=>(xe,xt,po)=>{const Yn=xe.style;Yn[xt]?(Yn[xt]=Gn(po),Yr(xe,oe)):Fn(xe,xt,po)},cs=(U,oe)=>U.style[oe]?Zo(U.style[oe]):Wt(U,oe),Ha=(U,oe)=>{const xe=Gn(oe);U.style.marginLeft=xe,U.style.marginRight=xe},ja=(U,oe)=>{const xe=Gn(oe);U.style.marginTop=xe,U.style.marginBottom=xe},$s=(U,oe)=>{const xe=Gn(oe);U.style.borderWidth=xe},Us=(U,oe)=>{U.style.borderStyle=oe},_a=U=>{var oe;return(oe=U.style.borderStyle)!==null&&oe!==void 0?oe:""},tt=U=>So(U)&&U.nodeName==="FIGURE",_t=U=>U.nodeName==="IMG",Do=U=>Xt.getAttrib(U,"alt").length===0&&Xt.getAttrib(U,"role")==="presentation",St=U=>Do(U)?"":Wt(U,"alt"),zr=()=>({src:"",alt:"",title:"",width:"",height:"",class:"",style:"",caption:!1,hspace:"",vspace:"",border:"",borderStyle:"",isDecorative:!1}),kr=(U,oe)=>{var xe;const xt=document.createElement("img");return Fn(xt,"style",oe.style),(Vo(xt)||oe.hspace!=="")&&Ha(xt,oe.hspace),($n(xt)||oe.vspace!=="")&&ja(xt,oe.vspace),(Rr(xt)||oe.border!=="")&&$s(xt,oe.border),(_a(xt)||oe.borderStyle!=="")&&Us(xt,oe.borderStyle),U((xe=xt.getAttribute("style"))!==null&&xe!==void 0?xe:"")},Is=(U,oe)=>{const xe=document.createElement("img");if(It(U,{...oe,caption:!1},xe),De(xe,oe.alt,oe.isDecorative),oe.caption){const xt=Xt.create("figure",{class:"image"});return xt.appendChild(xe),xt.appendChild(Xt.create("figcaption",{contentEditable:"true"},"Caption")),xt.contentEditable="false",xt}else return xe},Xr=(U,oe)=>({src:Wt(oe,"src"),alt:St(oe),title:Wt(oe,"title"),width:cs(oe,"width"),height:cs(oe,"height"),class:Wt(oe,"class"),style:U(Wt(oe,"style")),caption:vr(oe),hspace:Vo(oe),vspace:$n(oe),border:Rr(oe),borderStyle:_a(oe),isDecorative:Do(oe)}),gr=(U,oe,xe,xt,po)=>{xe[xt]!==oe[xt]&&po(U,xt,String(xe[xt]))},De=(U,oe,xe)=>{if(xe){Xt.setAttrib(U,"role","presentation");const xt=Pt.fromDom(U);Rt(xt,"alt","")}else{if(To(oe)){const xt=Pt.fromDom(U);uo(xt,"alt")}else{const xt=Pt.fromDom(U);Rt(xt,"alt",oe)}Xt.getAttrib(U,"role")==="presentation"&&Xt.setAttrib(U,"role","")}},Ae=(U,oe,xe)=>{(xe.alt!==oe.alt||xe.isDecorative!==oe.isDecorative)&&De(U,xe.alt,xe.isDecorative)},wt=(U,oe)=>(xe,xt,po)=>{U(xe,po),Yr(xe,oe)},It=(U,oe,xe)=>{const xt=Xr(U,xe);gr(xe,xt,oe,"caption",(po,Yn,ga)=>Ys(po)),gr(xe,xt,oe,"src",Fn),gr(xe,xt,oe,"title",Fn),gr(xe,xt,oe,"width",Pa("width",U)),gr(xe,xt,oe,"height",Pa("height",U)),gr(xe,xt,oe,"class",Fn),gr(xe,xt,oe,"style",wt((po,Yn)=>Fn(po,"style",Yn),U)),gr(xe,xt,oe,"hspace",wt(Ha,U)),gr(xe,xt,oe,"vspace",wt(ja,U)),gr(xe,xt,oe,"border",wt($s,U)),gr(xe,xt,oe,"borderStyle",wt(Us,U)),Ae(xe,xt,oe)},dn=(U,oe)=>{const xe=U.dom.styles.parse(oe),xt=Pn(xe),po=U.dom.styles.parse(U.dom.styles.serialize(xt));return U.dom.styles.serialize(po)},nn=U=>{const oe=U.selection.getNode(),xe=U.dom.getParent(oe,"figure.image");return xe?U.dom.select("img",xe)[0]:oe&&(oe.nodeName!=="IMG"||Ft(oe))?null:oe},sr=(U,oe)=>{var xe;const xt=U.dom,po=gn(U.schema.getTextBlockElements(),(ga,ks)=>!U.schema.isValidChild(ks,"figure")),Yn=xt.getParent(oe.parentNode,ga=>Ct(po,ga.nodeName),U.getBody());return Yn&&(xe=xt.split(Yn,oe))!==null&&xe!==void 0?xe:oe},Vr=U=>{const oe=nn(U);return oe?Xr(xe=>dn(U,xe),oe):zr()},Br=(U,oe)=>{const xe=Is(po=>dn(U,po),oe);U.dom.setAttrib(xe,"data-mce-id","__mcenew"),U.focus(),U.selection.setContent(xe.outerHTML);const xt=U.dom.select('*[data-mce-id="__mcenew"]')[0];if(U.dom.setAttrib(xt,"data-mce-id",null),tt(xt)){const po=sr(U,xt);U.selection.select(po)}else U.selection.select(xt)},Jo=(U,oe)=>{U.dom.setAttrib(oe,"src",oe.getAttribute("src"))},Ce=(U,oe)=>{if(oe){const xe=U.dom.is(oe.parentNode,"figure.image")?oe.parentNode:oe;U.dom.remove(xe),U.focus(),U.nodeChanged(),U.dom.isEmpty(U.getBody())&&(U.setContent(""),U.selection.setCursorLocation())}},Ne=(U,oe)=>{const xe=nn(U);if(xe)if(It(xt=>dn(U,xt),oe,xe),Jo(U,xe),tt(xe.parentNode)){const xt=xe.parentNode;sr(U,xt),U.selection.select(xe.parentNode)}else U.selection.select(xe),ut(U,oe,xe)},Zt=(U,oe)=>{const xe=oe.src;return{...oe,src:vo(U,xe)?xe:""}},Lo=(U,oe)=>{const xe=nn(U);if(xe){const po={...Xr(ga=>dn(U,ga),xe),...oe},Yn=Zt(U,po);po.src?Ne(U,Yn):Ce(U,xe)}else oe.src&&Br(U,{...zr(),...oe})},Go=(U=>(...oe)=>{if(oe.length===0)throw new Error("Can't merge zero objects");const xe={};for(let xt=0;xtjo(U)&&jo(oe)?Go(U,oe):oe);var hn=tinymce.util.Tools.resolve("tinymce.util.ImageUploader"),wn=tinymce.util.Tools.resolve("tinymce.util.Tools");const Un=U=>ko(U.value)?U.value:"",Ar=U=>ko(U.text)?U.text:ko(U.title)?U.title:"",ra=(U,oe)=>{const xe=[];return wn.each(U,xt=>{const po=Ar(xt);if(xt.menu!==void 0){const Yn=ra(xt.menu,oe);xe.push({text:po,items:Yn})}else{const Yn=oe(xt);xe.push({text:po,value:Yn})}}),xe},Xs=(U=Un)=>oe=>oe?me.from(oe).map(xe=>ra(xe,U)):me.none(),Zs=U=>Xs(Un)(U),mi=U=>Bo(U,"items"),Wr=(U,oe)=>Mt(U,xe=>mi(xe)?Wr(xe.items,oe):xe.value===oe?me.some(xe):me.none()),Sr={sanitizer:Xs,sanitize:Zs,findEntry:(U,oe)=>U.bind(xe=>Wr(xe,oe))},Cs={makeTab:U=>({title:"Advanced",name:"advanced",items:[{type:"grid",columns:2,items:[{type:"input",label:"Vertical space",name:"vspace",inputMode:"numeric"},{type:"input",label:"Horizontal space",name:"hspace",inputMode:"numeric"},{type:"input",label:"Border width",name:"border",inputMode:"numeric"},{type:"listbox",name:"borderstyle",label:"Border style",items:[{text:"Select...",value:""},{text:"Solid",value:"solid"},{text:"Dotted",value:"dotted"},{text:"Dashed",value:"dashed"},{text:"Double",value:"double"},{text:"Groove",value:"groove"},{text:"Ridge",value:"ridge"},{text:"Inset",value:"inset"},{text:"Outset",value:"outset"},{text:"None",value:"none"},{text:"Hidden",value:"hidden"}]}]}]})},za=U=>{const oe=Sr.sanitizer(Ll=>U.convertURL(Ll.value||Ll.url||"","src")),xe=new Promise(Ll=>{zn(U,pd=>{Ll(oe(pd).map(Ci=>qe([[{text:"None",value:""}],Ci])))})}),xt=Sr.sanitize(We(U)),po=gt(U),Yn=pe(U),ga=Gt(U),ks=Vt(U),_i=Vr(U),Js=Fe(U),Vi=ge(U),Qs=ct(U),ic=Me(U),_s=ze(U),vc=Ge(U),je=me.some(Oe(U)).filter(Ll=>ko(Ll)&&Ll.length>0);return xe.then(Ll=>({image:_i,imageList:Ll,classList:xt,hasAdvTab:po,hasUploadTab:Yn,hasUploadUrl:ga,hasUploadHandler:ks,hasDescription:Js,hasImageTitle:Vi,hasDimensions:Qs,hasImageCaption:ic,prependURL:je,hasAccessibilityOptions:_s,automaticUploads:vc}))},ws=U=>{const oe={name:"src",type:"urlinput",filetype:"image",label:"Source",picker_text:"Browse files"},xe=U.imageList.map(Vi=>({name:"images",type:"listbox",label:"Image list",items:Vi})),xt={name:"alt",type:"input",label:"Alternative description",enabled:!(U.hasAccessibilityOptions&&U.image.isDecorative)},po={name:"title",type:"input",label:"Image title"},Yn={name:"dimensions",type:"sizeinput"},ga={type:"label",label:"Accessibility",items:[{name:"isDecorative",type:"checkbox",label:"Image is decorative"}]},ks=U.classList.map(Vi=>({name:"classes",type:"listbox",label:"Class",items:Vi})),_i={type:"label",label:"Caption",items:[{type:"checkbox",name:"caption",label:"Show caption"}]},Js=Vi=>Vi?{type:"grid",columns:2}:{type:"panel"};return qe([[oe],xe.toArray(),U.hasAccessibilityOptions&&U.hasDescription?[ga]:[],U.hasDescription?[xt]:[],U.hasImageTitle?[po]:[],U.hasDimensions?[Yn]:[],[{...Js(U.classList.isSome()&&U.hasImageCaption),items:qe([ks.toArray(),U.hasImageCaption?[_i]:[]])}]])},Aa={makeTab:U=>({title:"General",name:"general",items:ws(U)}),makeItems:ws},Os={makeTab:U=>({title:"Upload",name:"upload",items:[{type:"dropzone",name:"fileinput"}]})},Ma=U=>({prevImage:Sr.findEntry(U.imageList,U.image.src),prevAlt:U.image.alt,open:!0}),Ca=U=>({src:{value:U.src,meta:{}},images:U.src,alt:U.alt,title:U.title,dimensions:{width:U.width,height:U.height},classes:U.class,caption:U.caption,style:U.style,vspace:U.vspace,border:U.border,hspace:U.hspace,borderstyle:U.borderStyle,fileinput:[],isDecorative:U.isDecorative}),ds=(U,oe)=>({src:U.src.value,alt:(U.alt===null||U.alt.length===0)&&oe?null:U.alt,title:U.title,width:U.dimensions.width,height:U.dimensions.height,class:U.classes,style:U.style,caption:U.caption,hspace:U.hspace,vspace:U.vspace,border:U.border,borderStyle:U.borderstyle,isDecorative:U.isDecorative}),xa=(U,oe)=>/^(?:[a-zA-Z]+:)?\/\//.test(oe)?me.none():U.prependURL.bind(xe=>oe.substring(0,xe.length)!==xe?me.some(xe+oe):me.none()),Rn=(U,oe)=>{const xe=oe.getData();xa(U,xe.src.value).each(xt=>{oe.setData({src:{value:xt,meta:xe.src.meta}})})},Hi=(U,oe,xe)=>{U.hasDescription&&ko(xe.alt)&&(oe.alt=xe.alt),U.hasAccessibilityOptions&&(oe.isDecorative=xe.isDecorative||oe.isDecorative||!1),U.hasImageTitle&&ko(xe.title)&&(oe.title=xe.title),U.hasDimensions&&(ko(xe.width)&&(oe.dimensions.width=xe.width),ko(xe.height)&&(oe.dimensions.height=xe.height)),ko(xe.class)&&Sr.findEntry(U.classList,xe.class).each(xt=>{oe.classes=xt.value}),U.hasImageCaption&&Ue(xe.caption)&&(oe.caption=xe.caption),U.hasAdvTab&&(ko(xe.style)&&(oe.style=xe.style),ko(xe.vspace)&&(oe.vspace=xe.vspace),ko(xe.border)&&(oe.border=xe.border),ko(xe.hspace)&&(oe.hspace=xe.hspace),ko(xe.borderstyle)&&(oe.borderstyle=xe.borderstyle))},Bn=(U,oe)=>{const xe=oe.getData(),xt=xe.src.meta;if(xt!==void 0){const po=Go({},xe);Hi(U,po,xt),oe.setData(po)}},ji=(U,oe,xe,xt)=>{const po=xt.getData(),Yn=po.src.value,ga=po.src.meta||{};!ga.width&&!ga.height&&oe.hasDimensions&&(to(Yn)?U.imageSize(Yn).then(ks=>{xe.open&&xt.setData({dimensions:ks})}).catch(ks=>console.error(ks)):xt.setData({dimensions:{width:"",height:""}}))},go=(U,oe,xe)=>{const xt=xe.getData(),po=Sr.findEntry(U.imageList,xt.src.value);oe.prevImage=po,xe.setData({images:po.map(Yn=>Yn.value).getOr("")})},aa=(U,oe,xe,xt)=>{Rn(oe,xt),Bn(oe,xt),ji(U,oe,xe,xt),go(oe,xe,xt)},Ss=(U,oe,xe,xt)=>{const po=xt.getData(),Yn=Sr.findEntry(oe.imageList,po.images);Yn.each(ga=>{po.alt===""||xe.prevImage.map(_i=>_i.text===po.alt).getOr(!1)?ga.value===""?xt.setData({src:ga,alt:xe.prevAlt}):xt.setData({src:ga,alt:ga.text}):xt.setData({src:ga})}),xe.prevImage=Yn,aa(U,oe,xe,xt)},Ir=(U,oe,xe,xt)=>{const po=xt.getData();xt.block("Uploading image"),lt(po.fileinput).fold(()=>{xt.unblock()},Yn=>{const ga=URL.createObjectURL(Yn),ks=()=>{xt.unblock(),URL.revokeObjectURL(ga)},_i=Js=>{xt.setData({src:{value:Js,meta:{}}}),xt.showTab("general"),aa(U,oe,xe,xt)};zt(Yn).then(Js=>{const Vi=U.createBlobCache(Yn,ga,Js);oe.automaticUploads?U.uploadImage(Vi).then(Qs=>{_i(Qs.url),ks()}).catch(Qs=>{ks(),U.alertErr(Qs)}):(U.addToBlobCache(Vi),_i(Vi.blobUri()),xt.unblock())})})},gi=(U,oe,xe)=>(xt,po)=>{po.name==="src"?aa(U,oe,xe,xt):po.name==="images"?Ss(U,oe,xe,xt):po.name==="alt"?xe.prevAlt=xt.getData().alt:po.name==="fileinput"?Ir(U,oe,xe,xt):po.name==="isDecorative"&&xt.setEnabled("alt",!xt.getData().isDecorative)},sc=U=>()=>{U.open=!1},Pr=U=>U.hasAdvTab||U.hasUploadUrl||U.hasUploadHandler?{type:"tabpanel",tabs:qe([[Aa.makeTab(U)],U.hasAdvTab?[Cs.makeTab(U)]:[],U.hasUploadTab&&(U.hasUploadUrl||U.hasUploadHandler)?[Os.makeTab(U)]:[]])}:{type:"panel",items:Aa.makeItems(U)},ne=(U,oe,xe)=>xt=>{const po=Go(Ca(oe.image),xt.getData()),Yn={...po,style:kr(xe.normalizeCss,ds(po,!1))};U.execCommand("mceUpdateImage",!1,ds(Yn,oe.hasAccessibilityOptions)),U.editorUpload.uploadImagesAuto(),xt.close()},Be=U=>oe=>vo(U,oe)?$o(U.documentBaseURI.toAbsolute(oe)).then(xe=>({width:String(xe.width),height:String(xe.height)})):Promise.resolve({width:"",height:""}),Pe=U=>(oe,xe,xt)=>{var po;return U.editorUpload.blobCache.create({blob:oe,blobUri:xe,name:(po=oe.name)===null||po===void 0?void 0:po.replace(/\.[^\.]+$/,""),filename:oe.name,base64:xt.split(",")[1]})},Nt=U=>oe=>{U.editorUpload.blobCache.add(oe)},ho=U=>oe=>{U.windowManager.alert(oe)},bn=U=>oe=>dn(U,oe),kn=U=>oe=>U.dom.parseStyle(oe),_r=U=>(oe,xe)=>U.dom.serializeStyle(oe,xe),Or=U=>oe=>hn(U).upload([oe],!1).then(xe=>{var xt;return xe.length===0?Promise.reject("Failed to upload image"):xe[0].status===!1?Promise.reject((xt=xe[0].error)===null||xt===void 0?void 0:xt.message):xe[0]}),Sa=U=>{const oe={imageSize:Be(U),addToBlobCache:Nt(U),createBlobCache:Pe(U),alertErr:ho(U),normalizeCss:bn(U),parseStyle:kn(U),serializeStyle:_r(U),uploadImage:Or(U)};return{open:()=>{za(U).then(xt=>{const po=Ma(xt);return{title:"Insert/Edit Image",size:"normal",body:Pr(xt),buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:Ca(xt.image),onSubmit:ne(U,xt,oe),onChange:gi(oe,xt,po),onClose:sc(po)}}).then(U.windowManager.open)}}},ma=U=>{U.addCommand("mceImage",Sa(U).open),U.addCommand("mceUpdateImage",(oe,xe)=>{U.undoManager.transact(()=>Lo(U,xe))})},Ga=U=>{const oe=U.attr("class");return So(oe)&&/\bimage\b/.test(oe)},Q=U=>oe=>{let xe=oe.length;const xt=po=>{po.attr("contenteditable",U?"true":null)};for(;xe--;){const po=oe[xe];Ga(po)&&(po.attr("contenteditable",U?"false":null),wn.each(po.getAll("figcaption"),xt))}},Ee=U=>{U.on("PreInit",()=>{U.parser.addNodeFilter("figure",Q(!0)),U.serializer.addNodeFilter("figure",Q(!1))})},bt=U=>oe=>{const xe=()=>{oe.setEnabled(U.selection.isEditable())};return U.on("NodeChange",xe),xe(),()=>{U.off("NodeChange",xe)}},wo=U=>{U.ui.registry.addToggleButton("image",{icon:"image",tooltip:"Insert/edit image",onAction:Sa(U).open,onSetup:oe=>{oe.setActive(So(nn(U)));const xe=U.selection.selectorChangedWithUnbind("img:not([data-mce-object]):not([data-mce-placeholder]),figure.image",oe.setActive).unbind,xt=bt(U)(oe);return()=>{xe(),xt()}}}),U.ui.registry.addMenuItem("image",{icon:"image",text:"Image...",onAction:Sa(U).open,onSetup:bt(U)}),U.ui.registry.addContextMenu("image",{update:oe=>U.selection.isEditable()&&(tt(oe)||_t(oe)&&!Ft(oe))?["image"]:[]})};var Zn=()=>{xo.add("image",U=>{$e(U),Ee(U),wo(U),ma(U)})};Zn()})();(function(){var xo=tinymce.util.Tools.resolve("tinymce.PluginManager");const Ko=(Se,$e,ct)=>{var gt;return ct(Se,$e.prototype)?!0:((gt=Se.constructor)===null||gt===void 0?void 0:gt.name)===$e.name},Io=Se=>{const $e=typeof Se;return Se===null?"null":$e==="object"&&Array.isArray(Se)?"array":$e==="object"&&Ko(Se,String,(ct,gt)=>gt.isPrototypeOf(ct))?"string":$e},on=Se=>$e=>Io($e)===Se,Qo=Se=>$e=>typeof $e===Se,io=on("string"),Po=on("object"),jt=on("array"),ko=Qo("function");var Mo=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),jo=tinymce.util.Tools.resolve("tinymce.EditorManager"),tn=tinymce.util.Tools.resolve("tinymce.Env"),To=tinymce.util.Tools.resolve("tinymce.util.Tools");const Ue=Se=>$e=>$e.options.get(Se),it=Se=>{const $e=Se.options.register,ct=gt=>io(gt)||ko(gt)||Po(gt);$e("importcss_merge_classes",{processor:"boolean",default:!0}),$e("importcss_exclusive",{processor:"boolean",default:!0}),$e("importcss_selector_converter",{processor:"function"}),$e("importcss_selector_filter",{processor:ct}),$e("importcss_file_filter",{processor:ct}),$e("importcss_groups",{processor:"object[]"}),$e("importcss_append",{processor:"boolean",default:!1})},So=Ue("importcss_merge_classes"),co=Ue("importcss_exclusive"),he=Ue("importcss_selector_converter"),Dt=Ue("importcss_selector_filter"),fo=Ue("importcss_groups"),me=Ue("importcss_append"),Ze=Ue("importcss_file_filter"),de=Ue("skin"),rt=Ue("skin_url"),Yo=Array.prototype.push,$t=(Se,$e)=>{const ct=Se.length,gt=new Array(ct);for(let pe=0;pe{const $e=[];for(let ct=0,gt=Se.length;ctgn($t(Se,$e)),Ct=()=>{const Se=[],$e=[],ct={};return{addItemToGroup:(We,Fe)=>{ct[We]?ct[We].push(Fe):($e.push(We),ct[We]=[Fe])},addItem:We=>{Se.push(We)},toFormats:()=>Bo($e,Fe=>{const ge=ct[Fe];return ge.length===0?[]:[{title:Fe,items:ge}]}).concat(Se)}},R=/^\.(?:ephox|tiny-pageembed|mce)(?:[.-]+\w+)+$/,qe=Se=>{const $e=tn.cacheSuffix;return io(Se)&&(Se=Se.replace("?"+$e,"").replace("&"+$e,"")),Se},Je=(Se,$e)=>{const ct=de(Se);if(ct){const gt=rt(Se),pe=gt?Se.documentBaseURI.toAbsolute(gt):jo.baseURL+"/skins/ui/"+ct,Oe=jo.baseURL+"/skins/content/";return $e===pe+"/content"+(Se.inline?".inline":"")+".min.css"||$e.indexOf(Oe)!==-1}return!1},lt=Se=>io(Se)?$e=>$e.indexOf(Se)!==-1:Se instanceof RegExp?$e=>Se.test($e):Se,Mt=Se=>Se.styleSheet,ht=Se=>Se.selectorText,Rt=(Se,$e,ct)=>{const gt=[],pe={},Oe=(We,Fe)=>{let ge=We.href,Me;if(ge=qe(ge),!(!ge||ct&&!ct(ge,Fe)||Je(Se,ge))){To.each(We.imports,at=>{Oe(at,!0)});try{Me=We.cssRules||We.rules}catch{}To.each(Me,at=>{Mt(at)&&at.styleSheet?Oe(at.styleSheet,!0):ht(at)&&To.each(at.selectorText.split(","),ze=>{gt.push(To.trim(ze))})})}};To.each(Se.contentCSS,We=>{pe[We]=!0}),ct||(ct=(We,Fe)=>Fe||pe[We]);try{To.each($e.styleSheets,We=>{Oe(We)})}catch{}return gt},uo=(Se,$e)=>{let ct={};const gt=/^(?:([a-z0-9\-_]+))?(\.[a-z0-9_\-\.]+)$/i.exec($e);if(!gt)return;const pe=gt[1],Oe=gt[2].substr(1).split(".").join(" "),We=To.makeMap("a,img");return gt[1]?(ct={title:$e},Se.schema.getTextBlockElements()[pe]?ct.block=pe:Se.schema.getBlockElements()[pe]||We[pe.toLowerCase()]?ct.selector=pe:ct.inline=pe):gt[2]&&(ct={inline:"span",title:$e.substr(1),classes:Oe}),So(Se)?ct.classes=Oe:ct.attributes={class:Oe},ct},Bt=(Se,$e)=>To.grep(Se,ct=>!ct.filter||ct.filter($e)),V=Se=>To.map(Se,$e=>To.extend({},$e,{original:$e,selectors:{},filter:lt($e.filter)})),dt=(Se,$e)=>$e===null||co(Se),Ie=(Se,$e,ct,gt)=>!(dt(Se,ct)?$e in gt:$e in ct.selectors),Co=(Se,$e,ct,gt)=>{dt(Se,ct)?gt[$e]=!0:ct.selectors[$e]=!0},Pt=(Se,$e,ct,gt)=>{let pe;const Oe=he(Se);return gt&>.selector_converter?pe=gt.selector_converter:Oe?pe=Oe:pe=()=>uo(Se,ct),pe.call($e,ct,gt)},lo=Se=>{Se.on("init",()=>{const $e=Ct(),ct={},gt=lt(Dt(Se)),pe=V(fo(Se)),Oe=(Fe,ge)=>{if(Ie(Se,Fe,ge,ct)){Co(Se,Fe,ge,ct);const Me=Pt(Se,Se.plugins.importcss,Fe,ge);if(Me){const at=Me.name||Mo.DOM.uniqueId();return Se.formatter.register(at,Me),{title:Me.title,format:at}}}return null};To.each(Rt(Se,Se.getDoc(),lt(Ze(Se))),Fe=>{if(!R.test(Fe)&&(!gt||gt(Fe))){const ge=Bt(pe,Fe);if(ge.length>0)To.each(ge,Me=>{const at=Oe(Fe,Me);at&&$e.addItemToGroup(Me.title,at)});else{const Me=Oe(Fe,null);Me&&$e.addItem(Me)}}});const We=$e.toFormats();Se.dispatch("addStyleModifications",{items:We,replace:!me(Se)})})},zo=Se=>({convertSelectorToFormat:ct=>uo(Se,ct)});var to=()=>{xo.add("importcss",Se=>(it(Se),lo(Se),zo(Se)))};to()})();(function(){var xo=tinymce.util.Tools.resolve("tinymce.PluginManager");const Ko=de=>rt=>rt.options.get(de),Io=de=>{const rt=de.options.register;rt("insertdatetime_dateformat",{processor:"string",default:de.translate("%Y-%m-%d")}),rt("insertdatetime_timeformat",{processor:"string",default:de.translate("%H:%M:%S")}),rt("insertdatetime_formats",{processor:"string[]",default:["%H:%M:%S","%Y-%m-%d","%I:%M:%S %p","%D"]}),rt("insertdatetime_element",{processor:"boolean",default:!1})},on=Ko("insertdatetime_dateformat"),Qo=Ko("insertdatetime_timeformat"),io=Ko("insertdatetime_formats"),Po=Ko("insertdatetime_element"),jt=de=>{const rt=io(de);return rt.length>0?rt[0]:Qo(de)},ko="Sun Mon Tue Wed Thu Fri Sat Sun".split(" "),Mo="Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sunday".split(" "),jo="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),tn="January February March April May June July August September October November December".split(" "),To=(de,rt)=>{if(de=""+de,de.length(rt=rt.replace("%D","%m/%d/%Y"),rt=rt.replace("%r","%I:%M:%S %p"),rt=rt.replace("%Y",""+Yo.getFullYear()),rt=rt.replace("%y",""+Yo.getYear()),rt=rt.replace("%m",To(Yo.getMonth()+1,2)),rt=rt.replace("%d",To(Yo.getDate(),2)),rt=rt.replace("%H",""+To(Yo.getHours(),2)),rt=rt.replace("%M",""+To(Yo.getMinutes(),2)),rt=rt.replace("%S",""+To(Yo.getSeconds(),2)),rt=rt.replace("%I",""+((Yo.getHours()+11)%12+1)),rt=rt.replace("%p",Yo.getHours()<12?"AM":"PM"),rt=rt.replace("%B",""+de.translate(tn[Yo.getMonth()])),rt=rt.replace("%b",""+de.translate(jo[Yo.getMonth()])),rt=rt.replace("%A",""+de.translate(Mo[Yo.getDay()])),rt=rt.replace("%a",""+de.translate(ko[Yo.getDay()])),rt=rt.replace("%%","%"),rt),it=(de,rt,Yo,$t)=>{const gn=de.dom.create("time",{datetime:Yo},$t);de.dom.replace(gn,rt),de.selection.select(gn,!0),de.selection.collapse(!1)},So=(de,rt)=>{if(Po(de)){const Yo=Ue(de,rt);let $t;/%[HMSIp]/.test(rt)?$t=Ue(de,"%Y-%m-%dT%H:%M"):$t=Ue(de,"%Y-%m-%d");const gn=de.dom.getParent(de.selection.getStart(),"time");gn?it(de,gn,$t,Yo):de.insertContent('")}else de.insertContent(Ue(de,rt))},co=de=>{de.addCommand("mceInsertDate",(rt,Yo)=>{So(de,Yo??on(de))}),de.addCommand("mceInsertTime",(rt,Yo)=>{So(de,Yo??Qo(de))})},he=de=>{let rt=de;return{get:()=>rt,set:gn=>{rt=gn}}};var Dt=tinymce.util.Tools.resolve("tinymce.util.Tools");const fo=de=>rt=>{const Yo=()=>{rt.setEnabled(de.selection.isEditable())};return de.on("NodeChange",Yo),Yo(),()=>{de.off("NodeChange",Yo)}},me=de=>{const rt=io(de),Yo=he(jt(de)),$t=Bo=>de.execCommand("mceInsertDate",!1,Bo);de.ui.registry.addSplitButton("insertdatetime",{icon:"insert-time",tooltip:"Insert date/time",select:Bo=>Bo===Yo.get(),fetch:Bo=>{Bo(Dt.map(rt,Ct=>({type:"choiceitem",text:Ue(de,Ct),value:Ct})))},onAction:Bo=>{$t(Yo.get())},onItemAction:(Bo,Ct)=>{Yo.set(Ct),$t(Ct)},onSetup:fo(de)});const gn=Bo=>()=>{Yo.set(Bo),$t(Bo)};de.ui.registry.addNestedMenuItem("insertdatetime",{icon:"insert-time",text:"Date/time",getSubmenuItems:()=>Dt.map(rt,Bo=>({type:"menuitem",text:Ue(de,Bo),onAction:gn(Bo)})),onSetup:fo(de)})};var Ze=()=>{xo.add("insertdatetime",de=>{Io(de),co(de),me(de)})};Ze()})();(function(){var xo=tinymce.util.Tools.resolve("tinymce.PluginManager");const Ko=(ne,Be,Pe)=>{var Nt;return Pe(ne,Be.prototype)?!0:((Nt=ne.constructor)===null||Nt===void 0?void 0:Nt.name)===Be.name},Io=ne=>{const Be=typeof ne;return ne===null?"null":Be==="object"&&Array.isArray(ne)?"array":Be==="object"&&Ko(ne,String,(Pe,Nt)=>Nt.isPrototypeOf(Pe))?"string":Be},on=ne=>Be=>Io(Be)===ne,Qo=ne=>Be=>typeof Be===ne,io=ne=>Be=>ne===Be,Po=on("string"),jt=on("object"),ko=on("array"),Mo=io(null),jo=Qo("boolean"),tn=ne=>ne==null,To=ne=>!tn(ne),Ue=Qo("function"),it=(ne,Be)=>{if(ko(ne)){for(let Pe=0,Nt=ne.length;Pe{},co=ne=>()=>ne,he=(ne,Be)=>ne===Be;class Dt{constructor(Be,Pe){this.tag=Be,this.value=Pe}static some(Be){return new Dt(!0,Be)}static none(){return Dt.singletonNone}fold(Be,Pe){return this.tag?Pe(this.value):Be()}isSome(){return this.tag}isNone(){return!this.tag}map(Be){return this.tag?Dt.some(Be(this.value)):Dt.none()}bind(Be){return this.tag?Be(this.value):Dt.none()}exists(Be){return this.tag&&Be(this.value)}forall(Be){return!this.tag||Be(this.value)}filter(Be){return!this.tag||Be(this.value)?this:Dt.none()}getOr(Be){return this.tag?this.value:Be}or(Be){return this.tag?this:Be}getOrThunk(Be){return this.tag?this.value:Be()}orThunk(Be){return this.tag?this:Be()}getOrDie(Be){if(this.tag)return this.value;throw new Error(Be??"Called getOrDie on None")}static from(Be){return To(Be)?Dt.some(Be):Dt.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(Be){this.tag&&Be(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}Dt.singletonNone=new Dt(!1);const fo=Array.prototype.indexOf,me=Array.prototype.push,Ze=(ne,Be)=>fo.call(ne,Be),de=(ne,Be)=>Ze(ne,Be)>-1,rt=(ne,Be)=>{const Pe=ne.length,Nt=new Array(Pe);for(let ho=0;ho{for(let Pe=0,Nt=ne.length;Pe(Yo(ne,(Nt,ho)=>{Pe=Be(Pe,Nt,ho)}),Pe),gn=ne=>{const Be=[];for(let Pe=0,Nt=ne.length;Pegn(rt(ne,Be)),Ct=(ne,Be)=>{for(let Pe=0;Pene.exists(Nt=>Pe(Nt,Be)),qe=ne=>{const Be=[],Pe=Nt=>{Be.push(Nt)};for(let Nt=0;Ntne?Dt.some(Be):Dt.none(),lt=ne=>Be=>Be.options.get(ne),Mt=ne=>{const Be=ne.options.register;Be("link_assume_external_targets",{processor:Pe=>{const Nt=Po(Pe)||jo(Pe);return Nt?Pe===!0?{value:1,valid:Nt}:Pe==="http"||Pe==="https"?{value:Pe,valid:Nt}:{value:0,valid:Nt}:{valid:!1,message:"Must be a string or a boolean."}},default:!1}),Be("link_context_toolbar",{processor:"boolean",default:!1}),Be("link_list",{processor:Pe=>Po(Pe)||Ue(Pe)||it(Pe,jt)}),Be("link_default_target",{processor:"string"}),Be("link_default_protocol",{processor:"string",default:"https"}),Be("link_target_list",{processor:Pe=>jo(Pe)||it(Pe,jt),default:!0}),Be("link_rel_list",{processor:"object[]",default:[]}),Be("link_class_list",{processor:"object[]",default:[]}),Be("link_title",{processor:"boolean",default:!0}),Be("allow_unsafe_link_target",{processor:"boolean",default:!1}),Be("link_quicklink",{processor:"boolean",default:!1})},ht=lt("link_assume_external_targets"),Rt=lt("link_context_toolbar"),uo=lt("link_list"),Bt=lt("link_default_target"),V=lt("link_default_protocol"),dt=lt("link_target_list"),Ie=lt("link_rel_list"),Co=lt("link_class_list"),Pt=lt("link_title"),lo=lt("allow_unsafe_link_target"),zo=lt("link_quicklink");var to=tinymce.util.Tools.resolve("tinymce.util.Tools");const Se=ne=>Po(ne.value)?ne.value:"",$e=ne=>Po(ne.text)?ne.text:Po(ne.title)?ne.title:"",ct=(ne,Be)=>{const Pe=[];return to.each(ne,Nt=>{const ho=$e(Nt);if(Nt.menu!==void 0){const bn=ct(Nt.menu,Be);Pe.push({text:ho,items:bn})}else{const bn=Be(Nt);Pe.push({text:ho,value:bn})}}),Pe},gt=(ne=Se)=>Be=>Dt.from(Be).map(Pe=>ct(Pe,ne)),We={sanitize:ne=>gt(Se)(ne),sanitizeWith:gt,createUi:(ne,Be)=>Pe=>({name:ne,type:"listbox",label:Be,items:Pe}),getValue:Se},Fe=Object.keys,ge=Object.hasOwnProperty,Me=(ne,Be)=>{const Pe=Fe(ne);for(let Nt=0,ho=Pe.length;Nt(Be,Pe)=>{ne[Pe]=Be},ze=(ne,Be,Pe,Nt)=>{Me(ne,(ho,bn)=>{(Be(ho,bn)?Pe:Nt)(ho,bn)})},Ge=(ne,Be)=>{const Pe={};return ze(ne,Be,at(Pe),So),Pe},Gt=(ne,Be)=>ge.call(ne,Be),Vt=(ne,Be)=>Gt(ne,Be)&&ne[Be]!==void 0&&ne[Be]!==null;var Xo=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),$o=tinymce.util.Tools.resolve("tinymce.util.URI");const Zo=ne=>To(ne)&&ne.nodeName.toLowerCase()==="a",Gn=ne=>Zo(ne)&&!!ut(ne),Pn=(ne,Be)=>{if(ne.collapsed)return[];{const Pe=ne.cloneContents(),Nt=Pe.firstChild,ho=new Xo(Nt,Pe),bn=[];let kn=Nt;do Be(kn)&&bn.push(kn);while(kn=ho.next());return bn}},zn=ne=>/^\w+:/i.test(ne),ut=ne=>{var Be,Pe;return(Pe=(Be=ne.getAttribute("data-mce-href"))!==null&&Be!==void 0?Be:ne.getAttribute("href"))!==null&&Pe!==void 0?Pe:""},zt=(ne,Be)=>{const Pe=["noopener"],Nt=ne?ne.split(/\s+/):[],ho=Or=>to.trim(Or.sort().join(" ")),bn=Or=>(Or=kn(Or),Or.length>0?Or.concat(Pe):Pe),kn=Or=>Or.filter(Sa=>to.inArray(Pe,Sa)===-1),_r=Be?bn(Nt):kn(Nt);return _r.length>0?ho(_r):""},Ft=ne=>ne.replace(/\uFEFF/g,""),vo=(ne,Be)=>(Be=Be||$n(ne.selection.getRng())[0]||ne.selection.getNode(),ln(Be)?Dt.from(ne.dom.select("a[href]",Be)[0]):Dt.from(ne.dom.getParent(Be,"a[href]"))),Xt=(ne,Be)=>vo(ne,Be).isSome(),Vo=(ne,Be)=>{const Pe=Be.fold(()=>ne.getContent({format:"text"}),Nt=>Nt.innerText||Nt.textContent||"");return Ft(Pe)},$n=ne=>Pn(ne,Gn),Rr=ne=>to.grep(ne,Gn),Wt=ne=>Rr(ne).length>0,vr=ne=>$n(ne).length>0,Fn=ne=>{const Be=ne.schema.getTextInlineElements(),Pe=bn=>bn.nodeType===1&&!Zo(bn)&&!Gt(Be,bn.nodeName.toLowerCase());if(vo(ne).exists(bn=>bn.hasAttribute("data-mce-block")))return!1;const ho=ne.selection.getRng();return ho.collapsed?!0:Pn(ho,Pe).length===0},ln=ne=>To(ne)&&ne.nodeName==="FIGURE"&&/\bimage\b/i.test(ne.className),xr=ne=>$t(["title","rel","class","target"],(Pe,Nt)=>(ne[Nt].each(ho=>{Pe[Nt]=ho.length>0?ho:null}),Pe),{href:ne.href}),Ys=(ne,Be)=>(Be==="http"||Be==="https")&&!zn(ne)?Be+"://"+ne:ne,Yr=(ne,Be)=>{const Pe={...Be};if(Ie(ne).length===0&&!lo(ne)){const Nt=zt(Pe.rel,Pe.target==="_blank");Pe.rel=Nt||null}return Dt.from(Pe.target).isNone()&&dt(ne)===!1&&(Pe.target=Bt(ne)),Pe.href=Ys(Pe.href,ht(ne)),Pe},Pa=(ne,Be,Pe,Nt)=>{Pe.each(ho=>{Gt(Be,"innerText")?Be.innerText=ho:Be.textContent=ho}),ne.dom.setAttribs(Be,Nt),ne.selection.select(Be)},cs=(ne,Be,Pe,Nt)=>{const ho=ne.dom;ln(Be)?St(ho,Be,Nt):Pe.fold(()=>{ne.execCommand("mceInsertLink",!1,Nt)},bn=>{ne.insertContent(ho.createHTML("a",Nt,ho.encode(bn)))})},Ha=(ne,Be,Pe)=>{const Nt=ne.selection.getNode(),ho=vo(ne,Nt),bn=Yr(ne,xr(Pe));ne.undoManager.transact(()=>{Pe.href===Be.href&&Be.attach(),ho.fold(()=>{cs(ne,Nt,Pe.text,bn)},kn=>{ne.focus(),Pa(ne,kn,Pe.text,bn)})})},ja=ne=>{const Be=ne.dom,Pe=ne.selection,Nt=Pe.getBookmark(),ho=Pe.getRng().cloneRange(),bn=Be.getParent(ho.startContainer,"a[href]",ne.getBody()),kn=Be.getParent(ho.endContainer,"a[href]",ne.getBody());bn&&ho.setStartBefore(bn),kn&&ho.setEndAfter(kn),Pe.setRng(ho),ne.execCommand("unlink"),Pe.moveToBookmark(Nt)},$s=ne=>{ne.undoManager.transact(()=>{const Be=ne.selection.getNode();ln(Be)?Do(ne,Be):ja(ne),ne.focus()})},Us=ne=>{const{class:Be,href:Pe,rel:Nt,target:ho,text:bn,title:kn}=ne;return Ge({class:Be.getOrNull(),href:Pe,rel:Nt.getOrNull(),target:ho.getOrNull(),text:bn.getOrNull(),title:kn.getOrNull()},(_r,Or)=>Mo(_r)===!1)},_a=(ne,Be)=>{const Pe=ne.options.get,Nt={allow_html_data_urls:Pe("allow_html_data_urls"),allow_script_urls:Pe("allow_script_urls"),allow_svg_data_urls:Pe("allow_svg_data_urls")},ho=Be.href;return{...Be,href:$o.isDomSafe(ho,"a",Nt)?ho:""}},tt=(ne,Be,Pe)=>{const Nt=_a(ne,Pe);ne.hasPlugin("rtc",!0)?ne.execCommand("createlink",!1,Us(Nt)):Ha(ne,Be,Nt)},_t=ne=>{ne.hasPlugin("rtc",!0)?ne.execCommand("unlink"):$s(ne)},Do=(ne,Be)=>{var Pe;const Nt=ne.dom.select("img",Be)[0];if(Nt){const ho=ne.dom.getParents(Nt,"a[href]",Be)[0];ho&&((Pe=ho.parentNode)===null||Pe===void 0||Pe.insertBefore(Nt,ho),ne.dom.remove(ho))}},St=(ne,Be,Pe)=>{var Nt;const ho=ne.select("img",Be)[0];if(ho){const bn=ne.create("a",Pe);(Nt=ho.parentNode)===null||Nt===void 0||Nt.insertBefore(bn,ho),bn.appendChild(ho)}},zr=ne=>Vt(ne,"items"),kr=(ne,Be)=>Ct(Be,Pe=>zr(Pe)?kr(ne,Pe.items):Je(Pe.value===ne,Pe)),Is=(ne,Be,Pe,Nt)=>{const ho=Nt[Be],bn=ne.length>0;return ho!==void 0?kr(ho,Pe).map(kn=>({url:{value:kn.value,meta:{text:bn?ne:kn.text,attach:So}},text:bn?ne:kn.text})):Dt.none()},Xr=(ne,Be)=>Be==="link"?ne.link:Be==="anchor"?ne.anchor:Dt.none(),De={init:(ne,Be)=>{const Pe={text:ne.text,title:ne.title},Nt=Or=>{var Sa;return Je(Pe.title.length<=0,Dt.from((Sa=Or.meta)===null||Sa===void 0?void 0:Sa.title).getOr(""))},ho=Or=>{var Sa;return Je(Pe.text.length<=0,Dt.from((Sa=Or.meta)===null||Sa===void 0?void 0:Sa.text).getOr(Or.value))},bn=Or=>{const Sa=ho(Or.url),ma=Nt(Or.url);return Sa.isSome()||ma.isSome()?Dt.some({...Sa.map(Ga=>({text:Ga})).getOr({}),...ma.map(Ga=>({title:Ga})).getOr({})}):Dt.none()},kn=(Or,Sa)=>{const ma=Xr(Be,Sa).getOr([]);return Is(Pe.text,Sa,ma,Or)};return{onChange:(Or,Sa)=>{const ma=Sa.name;return ma==="url"?bn(Or()):de(["anchor","link"],ma)?kn(Or(),ma):((ma==="text"||ma==="title")&&(Pe[ma]=Or()[ma]),Dt.none())}}},getDelta:Is};var Ae=tinymce.util.Tools.resolve("tinymce.util.Delay");const wt=(ne,Be,Pe)=>{const Nt=ne.selection.getRng();Ae.setEditorTimeout(ne,()=>{ne.windowManager.confirm(Be,ho=>{ne.selection.setRng(Nt),Pe(ho)})})},It=ne=>{const Be=ne.href;return Be.indexOf("@")>0&&Be.indexOf("/")===-1&&Be.indexOf("mailto:")===-1?Dt.some({message:"The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?",preprocess:Nt=>({...Nt,href:"mailto:"+Be})}):Dt.none()},dn=(ne,Be)=>Pe=>{const Nt=Pe.href;return ne===1&&!zn(Nt)||ne===0&&/^\s*www(\.|\d\.)/i.test(Nt)?Dt.some({message:`The URL you entered seems to be an external link. Do you want to add the required ${Be}:// prefix?`,preprocess:bn=>({...bn,href:Be+"://"+Nt})}):Dt.none()},sr={preprocess:(ne,Be)=>Ct([It,dn(ht(ne),V(ne))],Pe=>Pe(Be)).fold(()=>Promise.resolve(Be),Pe=>new Promise(Nt=>{wt(ne,Pe.message,ho=>{Nt(ho?Pe.preprocess(Be):Be)})}))},Br={getAnchors:ne=>{const Be=ne.dom.select("a:not([href])"),Pe=Bo(Be,Nt=>{const ho=Nt.name||Nt.id;return ho?[{text:ho,value:"#"+ho}]:[]});return Pe.length>0?Dt.some([{text:"None",value:""}].concat(Pe)):Dt.none()}},Ce={getClasses:ne=>{const Be=Co(ne);return Be.length>0?We.sanitize(Be):Dt.none()}},Ne=ne=>{try{return Dt.some(JSON.parse(ne))}catch{return Dt.none()}},Lo={getLinks:ne=>{const Be=Nt=>ne.convertURL(Nt.value||Nt.url||"","href"),Pe=uo(ne);return new Promise(Nt=>{Po(Pe)?fetch(Pe).then(ho=>ho.ok?ho.text().then(Ne):Promise.reject()).then(Nt,()=>Nt(Dt.none())):Ue(Pe)?Pe(ho=>Nt(Dt.some(ho))):Nt(Dt.from(Pe))}).then(Nt=>Nt.bind(We.sanitizeWith(Be)).map(ho=>ho.length>0?[{text:"None",value:""}].concat(ho):ho))}},rn={getRels:(ne,Be)=>{const Pe=Ie(ne);if(Pe.length>0){const Nt=R(Be,"_blank"),ho=lo(ne)===!1,bn=_r=>zt(We.getValue(_r),Nt);return(ho?We.sanitizeWith(bn):We.sanitize)(Pe)}return Dt.none()}},Go=[{text:"Current window",value:""},{text:"New window",value:"_blank"}],wn={getTargets:ne=>{const Be=dt(ne);return ko(Be)?We.sanitize(Be).orThunk(()=>Dt.some(Go)):Be===!1?Dt.none():Dt.some(Go)}},Un=(ne,Be,Pe)=>{const Nt=ne.getAttrib(Be,Pe);return Nt!==null&&Nt.length>0?Dt.some(Nt):Dt.none()},Ar=(ne,Be)=>{const Pe=ne.dom,ho=Fn(ne)?Dt.some(Vo(ne.selection,Be)):Dt.none(),bn=Be.bind(ma=>Dt.from(Pe.getAttrib(ma,"href"))),kn=Be.bind(ma=>Dt.from(Pe.getAttrib(ma,"target"))),_r=Be.bind(ma=>Un(Pe,ma,"rel")),Or=Be.bind(ma=>Un(Pe,ma,"class")),Sa=Be.bind(ma=>Un(Pe,ma,"title"));return{url:bn,text:ho,title:Sa,target:kn,rel:_r,linkClass:Or}},Xs={collect:(ne,Be)=>Lo.getLinks(ne).then(Pe=>{const Nt=Ar(ne,Be);return{anchor:Nt,catalogs:{targets:wn.getTargets(ne),rels:rn.getRels(ne,Nt.target),classes:Ce.getClasses(ne),anchor:Br.getAnchors(ne),link:Pe},optNode:Be,flags:{titleEnabled:Pt(ne)}}})},Zs=(ne,Be)=>Pe=>{const Nt=Pe.getData();if(!Nt.url.value){_t(ne),Pe.close();return}const ho=_r=>Dt.from(Nt[_r]).filter(Or=>!R(Be.anchor[_r],Or)),bn={href:Nt.url.value,text:ho("text"),target:ho("target"),rel:ho("rel"),class:ho("linkClass"),title:ho("title")},kn={href:Nt.url.value,attach:Nt.url.meta!==void 0&&Nt.url.meta.attach?Nt.url.meta.attach:So};sr.preprocess(ne,bn).then(_r=>{tt(ne,kn,_r)}),Pe.close()},mi=ne=>{const Be=vo(ne);return Xs.collect(ne,Be)},Wr=(ne,Be)=>{const Pe=ne.anchor,Nt=Pe.url.getOr("");return{url:{value:Nt,meta:{original:{value:Nt}}},text:Pe.text.getOr(""),title:Pe.title.getOr(""),anchor:Nt,link:Nt,rel:Pe.rel.getOr(""),target:Pe.target.or(Be).getOr(""),linkClass:Pe.linkClass.getOr("")}},rr=(ne,Be,Pe)=>{const Nt=[{name:"url",type:"urlinput",filetype:"file",label:"URL",picker_text:"Browse links"}],ho=ne.anchor.text.map(()=>({name:"text",type:"input",label:"Text to display"})).toArray(),bn=ne.flags.titleEnabled?[{name:"title",type:"input",label:"Title"}]:[],kn=Dt.from(Bt(Pe)),_r=Wr(ne,kn),Or=ne.catalogs,Sa=De.init(_r,Or);return{title:"Insert/Edit Link",size:"normal",body:{type:"panel",items:gn([Nt,ho,bn,qe([Or.anchor.map(We.createUi("anchor","Anchors")),Or.rels.map(We.createUi("rel","Rel")),Or.targets.map(We.createUi("target","Open link in...")),Or.link.map(We.createUi("link","Link list")),Or.classes.map(We.createUi("linkClass","Class"))])])},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:_r,onChange:(Ga,{name:Q})=>{Sa.onChange(Ga.getData,{name:Q}).each(Ee=>{Ga.setData(Ee)})},onSubmit:Be}},Sr=ne=>{mi(ne).then(Pe=>{const Nt=Zs(ne,Pe);return rr(Pe,Nt,ne)}).then(Pe=>{ne.windowManager.open(Pe)})},va=ne=>{ne.addCommand("mceLink",(Be,Pe)=>{(Pe==null?void 0:Pe.dialog)===!0||!zo(ne)?Sr(ne):ne.dispatch("contexttoolbar-show",{toolbarKey:"quicklink"})})};var Cs=tinymce.util.Tools.resolve("tinymce.util.VK");const za=(ne,Be)=>{document.body.appendChild(ne),ne.dispatchEvent(Be),document.body.removeChild(ne)},ws=ne=>{const Be=document.createElement("a");Be.target="_blank",Be.href=ne,Be.rel="noreferrer noopener";const Pe=document.createEvent("MouseEvents");Pe.initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),za(Be,Pe)},As=(ne,Be)=>ne.dom.getParent(Be,"a[href]"),Aa=ne=>As(ne,ne.selection.getStart()),Kn=ne=>ne.altKey===!0&&ne.shiftKey===!1&&ne.ctrlKey===!1&&ne.metaKey===!1,Os=(ne,Be)=>{if(Be){const Pe=ut(Be);if(/^#/.test(Pe)){const Nt=ne.dom.select(Pe);Nt.length&&ne.selection.scrollIntoView(Nt[0],!0)}else ws(Be.href)}},Ma=ne=>()=>{ne.execCommand("mceLink",!1,{dialog:!0})},Ca=ne=>()=>{Os(ne,Aa(ne))},ds=ne=>{ne.on("click",Be=>{const Pe=As(ne,Be.target);Pe&&Cs.metaKeyPressed(Be)&&(Be.preventDefault(),Os(ne,Pe))}),ne.on("keydown",Be=>{if(!Be.isDefaultPrevented()&&Be.keyCode===13&&Kn(Be)){const Pe=Aa(ne);Pe&&(Be.preventDefault(),Os(ne,Pe))}})},xa=(ne,Be)=>(ne.on("NodeChange",Be),()=>ne.off("NodeChange",Be)),Rn=ne=>Be=>{const Pe=()=>{Be.setActive(!ne.mode.isReadOnly()&&Xt(ne,ne.selection.getNode())),Be.setEnabled(ne.selection.isEditable())};return Pe(),xa(ne,Pe)},Hi=ne=>Be=>{const Pe=()=>{Be.setEnabled(ne.selection.isEditable())};return Pe(),xa(ne,Pe)},Bn=ne=>(ne.selection.isCollapsed()?Rr(ne.dom.getParents(ne.selection.getStart())):$n(ne.selection.getRng())).length===1,ji=ne=>Be=>{const Pe=()=>Be.setEnabled(Bn(ne));return Pe(),xa(ne,Pe)},go=ne=>Be=>{const Pe=bn=>Wt(bn)||vr(ne.selection.getRng()),Nt=ne.dom.getParents(ne.selection.getStart()),ho=bn=>{Be.setEnabled(Pe(bn)&&ne.selection.isEditable())};return ho(Nt),xa(ne,bn=>ho(bn.parents))},aa=ne=>{ne.addShortcut("Meta+K","",()=>{ne.execCommand("mceLink")})},Ss=ne=>{ne.ui.registry.addToggleButton("link",{icon:"link",tooltip:"Insert/edit link",onAction:Ma(ne),onSetup:Rn(ne)}),ne.ui.registry.addButton("openlink",{icon:"new-tab",tooltip:"Open link",onAction:Ca(ne),onSetup:ji(ne)}),ne.ui.registry.addButton("unlink",{icon:"unlink",tooltip:"Remove link",onAction:()=>_t(ne),onSetup:go(ne)})},Ir=ne=>{ne.ui.registry.addMenuItem("openlink",{text:"Open link",icon:"new-tab",onAction:Ca(ne),onSetup:ji(ne)}),ne.ui.registry.addMenuItem("link",{icon:"link",text:"Link...",shortcut:"Meta+K",onSetup:Hi(ne),onAction:Ma(ne)}),ne.ui.registry.addMenuItem("unlink",{icon:"unlink",text:"Remove link",onAction:()=>_t(ne),onSetup:go(ne)})},gi=ne=>{const Be="link unlink openlink",Pe="link";ne.ui.registry.addContextMenu("link",{update:Nt=>ne.dom.isEditable(Nt)?Wt(ne.dom.getParents(Nt,"a"))?Be:Pe:""})},sc=ne=>{const Be=ho=>{ho.selection.collapse(!1)},Pe=ho=>{const bn=ne.selection.getNode();return ho.setEnabled(Xt(ne,bn)),So},Nt=ho=>{const bn=vo(ne),kn=Fn(ne);if(bn.isNone()&&kn){const _r=Vo(ne.selection,bn);return Je(_r.length===0,ho)}else return Dt.none()};ne.ui.registry.addContextForm("quicklink",{launch:{type:"contextformtogglebutton",icon:"link",tooltip:"Link",onSetup:Rn(ne)},label:"Link",predicate:ho=>Rt(ne)&&Xt(ne,ho),initValue:()=>vo(ne).fold(co(""),ut),commands:[{type:"contextformtogglebutton",icon:"link",tooltip:"Link",primary:!0,onSetup:ho=>{const bn=ne.selection.getNode();return ho.setActive(Xt(ne,bn)),Rn(ne)(ho)},onAction:ho=>{const bn=ho.getValue(),kn=Nt(bn);tt(ne,{href:bn,attach:So},{href:bn,text:kn,title:Dt.none(),rel:Dt.none(),target:Dt.none(),class:Dt.none()}),Be(ne),ho.hide()}},{type:"contextformbutton",icon:"unlink",tooltip:"Remove link",onSetup:Pe,onAction:ho=>{_t(ne),ho.hide()}},{type:"contextformbutton",icon:"new-tab",tooltip:"Open link",onSetup:Pe,onAction:ho=>{Ca(ne)(),ho.hide()}}]})};var Pr=()=>{xo.add("link",ne=>{Mt(ne),Ss(ne),Ir(ne),gi(ne),sc(ne),ds(ne),va(ne),aa(ne)})};Pr()})();(function(){var xo=tinymce.util.Tools.resolve("tinymce.PluginManager");const Ko=(z,H,J)=>{var Te;return J(z,H.prototype)?!0:((Te=z.constructor)===null||Te===void 0?void 0:Te.name)===H.name},Io=z=>{const H=typeof z;return z===null?"null":H==="object"&&Array.isArray(z)?"array":H==="object"&&Ko(z,String,(J,Te)=>Te.isPrototypeOf(J))?"string":H},on=z=>H=>Io(H)===z,Qo=z=>H=>typeof H===z,io=on("string"),Po=on("object"),jt=on("array"),ko=Qo("boolean"),Mo=z=>z==null,jo=z=>!Mo(z),tn=Qo("function"),To=Qo("number"),Ue=()=>{},it=(z,H)=>J=>z(H(J)),So=z=>()=>z,co=(z,H)=>z===H;function he(z,...H){return(...J)=>{const Te=H.concat(J);return z.apply(null,Te)}}const Dt=z=>H=>!z(H),fo=So(!1);class me{constructor(H,J){this.tag=H,this.value=J}static some(H){return new me(!0,H)}static none(){return me.singletonNone}fold(H,J){return this.tag?J(this.value):H()}isSome(){return this.tag}isNone(){return!this.tag}map(H){return this.tag?me.some(H(this.value)):me.none()}bind(H){return this.tag?H(this.value):me.none()}exists(H){return this.tag&&H(this.value)}forall(H){return!this.tag||H(this.value)}filter(H){return!this.tag||H(this.value)?this:me.none()}getOr(H){return this.tag?this.value:H}or(H){return this.tag?this:H}getOrThunk(H){return this.tag?this.value:H()}orThunk(H){return this.tag?this:H()}getOrDie(H){if(this.tag)return this.value;throw new Error(H??"Called getOrDie on None")}static from(H){return jo(H)?me.some(H):me.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(H){this.tag&&H(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}me.singletonNone=new me(!1);const Ze=Array.prototype.slice,de=Array.prototype.indexOf,rt=Array.prototype.push,Yo=(z,H)=>de.call(z,H),$t=(z,H)=>Yo(z,H)>-1,gn=(z,H)=>{for(let J=0,Te=z.length;J{const J=z.length,Te=new Array(J);for(let He=0;He{for(let J=0,Te=z.length;J{const J=[];for(let Te=0,He=z.length;Te{if(z.length===0)return[];{let J=H(z[0]);const Te=[];let He=[];for(let _o=0,fn=z.length;_o(Ct(z,(Te,He)=>{J=H(J,Te,He)}),J),lt=(z,H,J)=>{for(let Te=0,He=z.length;Telt(z,H,fo),ht=z=>{const H=[];for(let J=0,Te=z.length;Jht(Bo(z,H)),uo=z=>{const H=Ze.call(z,0);return H.reverse(),H},Bt=(z,H)=>H>=0&&HBt(z,0),dt=z=>Bt(z,z.length-1),Ie=(z,H)=>{const J=[],Te=tn(H)?He=>gn(J,_o=>H(_o,He)):He=>$t(J,He);for(let He=0,_o=z.length;He<_o;He++){const fn=z[He];Te(fn)||J.push(fn)}return J},Co=(z,H,J=co)=>z.exists(Te=>J(Te,H)),Pt=(z,H,J=co)=>lo(z,H,J).getOr(z.isNone()&&H.isNone()),lo=(z,H,J)=>z.isSome()&&H.isSome()?me.some(J(z.getOrDie(),H.getOrDie())):me.none(),zo=8,to=9,Se=11,$e=1,ct=3,gt=(z,H)=>{const Te=(H||document).createElement("div");if(Te.innerHTML=z,!Te.hasChildNodes()||Te.childNodes.length>1){const He="HTML does not have a single root node";throw console.error(He,z),new Error(He)}return We(Te.childNodes[0])},pe=(z,H)=>{const Te=(H||document).createElement(z);return We(Te)},Oe=(z,H)=>{const Te=(H||document).createTextNode(z);return We(Te)},We=z=>{if(z==null)throw new Error("Node cannot be null or undefined");return{dom:z}},ge={fromHtml:gt,fromTag:pe,fromText:Oe,fromDom:We,fromPoint:(z,H,J)=>me.from(z.dom.elementFromPoint(H,J)).map(We)},Me=(z,H)=>{const J=z.dom;if(J.nodeType!==$e)return!1;{const Te=J;if(Te.matches!==void 0)return Te.matches(H);if(Te.msMatchesSelector!==void 0)return Te.msMatchesSelector(H);if(Te.webkitMatchesSelector!==void 0)return Te.webkitMatchesSelector(H);if(Te.mozMatchesSelector!==void 0)return Te.mozMatchesSelector(H);throw new Error("Browser lacks native selectors")}},at=(z,H)=>z.dom===H.dom,ze=(z,H)=>{const J=z.dom,Te=H.dom;return J===Te?!1:J.contains(Te)},Ge=Me,Gt=typeof window<"u"?window:Function("return this;")(),Vt=(z,H)=>{let J=H??Gt;for(let Te=0;Te{const J=z.split(".");return Vt(J,H)},$o=(z,H)=>Xo(z,H),Zo=(z,H)=>{const J=$o(z,H);if(J==null)throw new Error(z+" not available on this browser");return J},Gn=Object.getPrototypeOf,Pn=z=>Zo("HTMLElement",z),zn=z=>{const H=Xo("ownerDocument.defaultView",z);return Po(z)&&(Pn(H).prototype.isPrototypeOf(z)||/^HTML\w*Element$/.test(Gn(z).constructor.name))},ut=z=>z.dom.nodeName.toLowerCase(),zt=z=>z.dom.nodeType,Ft=z=>H=>zt(H)===z,vo=z=>zt(z)===zo||ut(z)==="#comment",Xt=z=>Vo(z)&&zn(z.dom),Vo=Ft($e),$n=Ft(ct),Rr=Ft(to),Wt=Ft(Se),vr=z=>H=>Vo(H)&&ut(H)===z,Fn=z=>ge.fromDom(z.dom.ownerDocument),ln=z=>Rr(z)?z:Fn(z),xr=z=>me.from(z.dom.parentNode).map(ge.fromDom),Ys=z=>me.from(z.dom.parentElement).map(ge.fromDom),Yr=z=>me.from(z.dom.nextSibling).map(ge.fromDom),Pa=z=>Bo(z.dom.childNodes,ge.fromDom),cs=(z,H)=>{const J=z.dom.childNodes;return me.from(J[H]).map(ge.fromDom)},Ha=z=>cs(z,0),ja=z=>cs(z,z.dom.childNodes.length-1),$s=z=>Wt(z)&&jo(z.dom.host),_a=tn(Element.prototype.attachShadow)&&tn(Node.prototype.getRootNode)?z=>ge.fromDom(z.dom.getRootNode()):ln,tt=z=>{const H=_a(z);return $s(H)?me.some(H):me.none()},_t=z=>ge.fromDom(z.dom.host),Do=z=>{const H=$n(z)?z.dom.parentNode:z.dom;if(H==null||H.ownerDocument===null)return!1;const J=H.ownerDocument;return tt(ge.fromDom(H)).fold(()=>J.body.contains(H),it(Do,_t))};var St=(z,H,J,Te,He)=>z(J,Te)?me.some(J):tn(He)&&He(J)?me.none():H(J,Te,He);const zr=(z,H,J)=>{let Te=z.dom;const He=tn(J)?J:fo;for(;Te.parentNode;){Te=Te.parentNode;const _o=ge.fromDom(Te);if(H(_o))return me.some(_o);if(He(_o))break}return me.none()},kr=(z,H,J)=>St((He,_o)=>_o(He),zr,z,H,J),Is=(z,H,J)=>zr(z,Te=>Me(Te,H),J),Xr=(z,H,J)=>St((He,_o)=>Me(He,_o),Is,z,H,J),gr=z=>Xr(z,"[contenteditable]"),De=(z,H=!1)=>Do(z)?z.dom.isContentEditable:gr(z).fold(So(H),J=>Ae(J)==="true"),Ae=z=>z.dom.contentEditable,wt=(z,H)=>{xr(z).each(Te=>{Te.dom.insertBefore(H.dom,z.dom)})},It=(z,H)=>{Yr(z).fold(()=>{xr(z).each(He=>{nn(He,H)})},Te=>{wt(Te,H)})},dn=(z,H)=>{Ha(z).fold(()=>{nn(z,H)},Te=>{z.dom.insertBefore(H.dom,Te.dom)})},nn=(z,H)=>{z.dom.appendChild(H.dom)},sr=(z,H)=>{Ct(H,J=>{wt(z,J)})},Vr=(z,H)=>{Ct(H,J=>{nn(z,J)})},Br=z=>{z.dom.textContent="",Ct(Pa(z),H=>{Jo(H)})},Jo=z=>{const H=z.dom;H.parentNode!==null&&H.parentNode.removeChild(H)};var Ce=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),Ne=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),Zt=tinymce.util.Tools.resolve("tinymce.util.VK");const Lo=z=>Bo(z,ge.fromDom),Ho=Object.keys,rn=(z,H)=>{const J=Ho(z);for(let Te=0,He=J.length;Te(H,J)=>{z[J]=H},hn=(z,H,J,Te)=>{rn(z,(He,_o)=>{(H(He,_o)?J:Te)(He,_o)})},wn=(z,H)=>{const J={};return hn(z,H,Go(J),Ue),J},Un=(z,H,J)=>{if(io(J)||ko(J)||To(J))z.setAttribute(H,J+"");else throw console.error("Invalid call to Attribute.set. Key ",H,":: Value ",J,":: Element ",z),new Error("Attribute value was not simple")},Ar=(z,H)=>{const J=z.dom;rn(H,(Te,He)=>{Un(J,He,Te)})},ra=z=>Je(z.dom.attributes,(H,J)=>(H[J.name]=J.value,H),{}),Xs=(z,H)=>ge.fromDom(z.dom.cloneNode(H)),Zs=z=>Xs(z,!0),mi=(z,H)=>{const J=ge.fromTag(H),Te=ra(z);return Ar(J,Te),J},Wr=(z,H)=>{const J=mi(z,H);It(z,J);const Te=Pa(z);return Vr(J,Te),Jo(z),J};var rr=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),Sr=tinymce.util.Tools.resolve("tinymce.util.Tools");const va=z=>H=>jo(H)&&H.nodeName.toLowerCase()===z,Cs=z=>H=>jo(H)&&z.test(H.nodeName),za=z=>jo(z)&&z.nodeType===3,ws=z=>jo(z)&&z.nodeType===1,As=Cs(/^(OL|UL|DL)$/),Aa=Cs(/^(OL|UL)$/),Kn=va("ol"),Os=Cs(/^(LI|DT|DD)$/),Ma=Cs(/^(DT|DD)$/),Ca=Cs(/^(TH|TD)$/),ds=va("br"),xa=z=>{var H;return((H=z.parentNode)===null||H===void 0?void 0:H.firstChild)===z},Rn=(z,H)=>jo(H)&&H.nodeName in z.schema.getTextBlockElements(),Hi=(z,H)=>jo(z)&&z.nodeName in H,Bn=(z,H)=>jo(H)&&H.nodeName in z.schema.getVoidElements(),ji=(z,H)=>ds(H)?z.isBlock(H.nextSibling)&&!ds(H.previousSibling):!1,go=(z,H,J)=>{const Te=z.isEmpty(H);return J&&z.select("span[data-mce-type=bookmark]",H).length>0?!1:Te},aa=(z,H)=>z.isChildOf(H,z.getRoot()),Ss=z=>H=>H.options.get(z),Ir=z=>{const H=z.options.register;H("lists_indent_on_tab",{processor:"boolean",default:!0})},gi=Ss("lists_indent_on_tab"),sc=Ss("forced_root_block"),Pr=Ss("forced_root_block_attrs"),ne=(z,H)=>{const J=z.dom,Te=z.schema.getBlockElements(),He=J.createFragment(),_o=sc(z),fn=Pr(z);let ir,Hn,Tn=!1;for(Hn=J.create(_o,fn),Hi(H.firstChild,Te)||He.appendChild(Hn);ir=H.firstChild;){const fa=ir.nodeName;!Tn&&(fa!=="SPAN"||ir.getAttribute("data-mce-type")!=="bookmark")&&(Tn=!0),Hi(ir,Te)?(He.appendChild(ir),Hn=null):(Hn||(Hn=J.create(_o,fn),He.appendChild(Hn)),Hn.appendChild(ir))}return!Tn&&Hn&&Hn.appendChild(J.create("br",{"data-mce-bogus":"1"})),He},Be=rr.DOM,Pe=(z,H,J)=>{const Te=Tn=>{const fa=Tn.parentNode;fa&&Sr.each(He,Ka=>{fa.insertBefore(Ka,J.parentNode)}),Be.remove(Tn)},He=Be.select('span[data-mce-type="bookmark"]',H),_o=ne(z,J),fn=Be.createRng();fn.setStartAfter(J),fn.setEndAfter(H);const ir=fn.extractContents();for(let Tn=ir.firstChild;Tn;Tn=Tn.firstChild)if(Tn.nodeName==="LI"&&z.dom.isEmpty(Tn)){Be.remove(Tn);break}z.dom.isEmpty(ir)||Be.insertAfter(ir,H),Be.insertAfter(_o,H);const Hn=J.parentElement;Hn&&go(z.dom,Hn)&&Te(Hn),Be.remove(J),go(z.dom,H)&&Be.remove(H)},Nt=vr("dd"),ho=vr("dt"),bn=(z,H)=>{Nt(H)?Wr(H,"dt"):ho(H)&&Ys(H).each(J=>Pe(z,J.dom,H.dom))},kn=z=>{ho(z)&&Wr(z,"dd")},_r=(z,H,J)=>{H==="Indent"?Ct(J,kn):Ct(J,Te=>bn(z,Te))},Or=(z,H)=>{if(za(z))return{container:z,offset:H};const J=Ce.getNode(z,H);return za(J)?{container:J,offset:H>=z.childNodes.length?J.data.length:0}:J.previousSibling&&za(J.previousSibling)?{container:J.previousSibling,offset:J.previousSibling.data.length}:J.nextSibling&&za(J.nextSibling)?{container:J.nextSibling,offset:0}:{container:z,offset:H}},Sa=z=>{const H=z.cloneRange(),J=Or(z.startContainer,z.startOffset);H.setStart(J.container,J.offset);const Te=Or(z.endContainer,z.endOffset);return H.setEnd(Te.container,Te.offset),H},ma=["OL","UL","DL"],Ga=ma.join(","),Q=(z,H)=>{const J=H||z.selection.getStart(!0);return z.dom.getParent(J,Ga,po(z,J))},Ee=(z,H)=>jo(z)&&H.length===1&&H[0]===z,bt=z=>R(z.querySelectorAll(Ga),As),wo=z=>{const H=Q(z),J=z.selection.getSelectedBlocks();return Ee(H,J)?bt(H):R(J,Te=>As(Te)&&H!==Te)},Zn=(z,H)=>{const J=Sr.map(H,Te=>{const He=z.dom.getParent(Te,"li,dd,dt",po(z,Te));return He||Te});return Ie(J)},U=z=>{const H=z.selection.getSelectedBlocks();return R(Zn(z,H),Os)},oe=z=>R(U(z),Ma),xe=(z,H)=>{const J=z.dom.getParents(H,"TD,TH");return J.length>0?J[0]:z.getBody()},xt=(z,H)=>!As(H)&&!Os(H)&&gn(ma,J=>z.isValidChild(H.nodeName,J)),po=(z,H)=>{const J=z.dom.getParents(H,z.dom.isBlock);return Mt(J,He=>xt(z.schema,He)).getOr(z.getBody())},Yn=z=>xr(z).exists(H=>Os(H.dom)&&Ha(H).exists(J=>!As(J.dom))&&ja(H).exists(J=>!As(J.dom))),ga=(z,H)=>{const J=z.dom.getParents(H,"ol,ul",po(z,H));return dt(J)},ks=z=>{const H=ga(z,z.selection.getStart()),J=R(z.selection.getSelectedBlocks(),Aa);return H.toArray().concat(J)},_i=z=>{const H=z.selection.getStart();return z.dom.getParents(H,"ol,ul",po(z,H))},Js=z=>{const H=ks(z),J=_i(z);return Mt(J,Te=>Yn(ge.fromDom(Te))).fold(()=>Vi(z,H),Te=>[Te])},Vi=(z,H)=>{const J=Bo(H,Te=>ga(z,Te).getOr(Te));return Ie(J)},Qs=z=>/\btox\-/.test(z.className),ic=(z,H)=>lt(z,As,Ca).exists(J=>J.nodeName===H&&!Qs(J)),_s=(z,H)=>H!==null&&!z.dom.isEditable(H),vc=z=>{const H=Q(z);return _s(z,H)},je=(z,H)=>{const J=z.dom.getParent(H,"ol,ul,dl");return _s(z,J)},Ll=(z,H)=>{const J=z.selection.getNode();return H({parents:z.dom.getParents(J),element:J}),z.on("NodeChange",H),()=>z.off("NodeChange",H)},pd=(z,H)=>{const Te=(H||document).createDocumentFragment();return Ct(z,He=>{Te.appendChild(He.dom)}),ge.fromDom(Te)},Ci=(z,H,J)=>z.dispatch("ListMutation",{action:H,element:J}),sa=(z=>H=>H.replace(z,""))(/^\s+|\s+$/g),lc=z=>z.length>0,ag=z=>!lc(z),Si=z=>z.style!==void 0&&tn(z.style.getPropertyValue),Gc=(z,H,J)=>{if(!io(J))throw console.error("Invalid call to CSS.set. Property ",H,":: Value ",J,":: Element ",z),new Error("CSS value must be a string: "+J);Si(z)&&z.style.setProperty(H,J)},Gi=(z,H,J)=>{const Te=z.dom;Gc(Te,H,J)},Il=z=>Ge(z,"OL,UL"),Yl=z=>Ge(z,"LI"),Ki=z=>Ha(z).exists(Il),ie=z=>ja(z).exists(Il),ve=z=>"listAttributes"in z,yt=z=>"isComment"in z,Lt=z=>"isFragment"in z,yn=z=>z.depth>0,ur=z=>z.isSelected,Ra=z=>{const H=Pa(z),J=ie(z)?H.slice(0,-1):H;return Bo(J,Zs)},ei=(z,H,J)=>xr(z).filter(Vo).map(Te=>({depth:H,dirty:!1,isSelected:J,content:Ra(z),itemAttributes:ra(z),listAttributes:ra(Te),listType:ut(Te),isInPreviousLi:!1})),ia=(z,H)=>{nn(z.item,H.list)},pa=z=>{for(let H=1;H{lo(dt(z),V(H),ia)},ta=(z,H)=>{const J={list:ge.fromTag(H,z),item:ge.fromTag("li",z)};return nn(J.list,J.item),J},cc=(z,H,J)=>{const Te=[];for(let He=0;He{for(let J=0;J{ve(H)&&(Ar(J.list,H.listAttributes),Ar(J.item,H.itemAttributes)),Vr(J.item,H.content)})},Ei=(z,H)=>{ut(z.list)!==H.listType&&(z.list=Wr(z.list,H.listType)),Ar(z.list,H.listAttributes)},xc=(z,H,J)=>{const Te=ge.fromTag("li",z);return Ar(Te,H),Vr(Te,J),Te},Es=(z,H)=>{nn(z.list,H),z.item=H},Ba=(z,H,J)=>{const Te=H.slice(0,J.depth);return dt(Te).each(He=>{if(ve(J)){const _o=xc(z,J.itemAttributes,J.content);Es(He,_o),Ei(He,J)}else if(Lt(J))Vr(He.item,J.content);else{const _o=ge.fromHtml(``);nn(He.list,_o)}}),Te},Fa=(z,H,J)=>{const Te=cc(z,J,J.depth-H.length);return pa(Te),Xl(Te,J),Ps(H,Te),H.concat(Te)},ts=(z,H)=>{let J=me.none();const Te=Je(H,(He,_o,fn)=>yt(_o)?fn===0?(J=me.some(_o),He):Ba(z,He,_o):_o.depth>He.length?Fa(z,He,_o):Ba(z,He,_o),[]);return J.each(He=>{const _o=ge.fromHtml(``);V(Te).each(fn=>{dn(fn.list,_o)})}),V(Te).map(He=>He.list)},Kc=(z,H)=>{switch(z){case"Indent":H.depth++;break;case"Outdent":H.depth--;break;case"Flatten":H.depth=0}H.dirty=!0},Ua=(z,H)=>{ve(z)&&ve(H)&&(z.listType=H.listType,z.listAttributes={...H.listAttributes})},fd=z=>{z.listAttributes=wn(z.listAttributes,(H,J)=>J!=="start")},Yc=(z,H)=>{const J=z[H].depth,Te=_o=>_o.depth===J&&!_o.dirty,He=_o=>_o.depthlt(z.slice(H+1),Te,He))},nl=z=>(Ct(z,(H,J)=>{Yc(z,J).fold(()=>{H.dirty&&ve(H)&&fd(H)},Te=>Ua(H,Te))}),z),Fr=z=>{let H=z;return{get:()=>H,set:He=>{H=He}}},ti=(z,H,J,Te)=>{var He;if(vo(Te))return[{depth:z+1,content:(He=Te.dom.nodeValue)!==null&&He!==void 0?He:"",dirty:!1,isSelected:!1,isComment:!0}];H.each(ir=>{at(ir.start,Te)&&J.set(!0)});const _o=ei(Te,z,J.get());H.each(ir=>{at(ir.end,Te)&&J.set(!1)});const fn=ja(Te).filter(Il).map(ir=>hd(z,H,J,ir)).getOr([]);return _o.toArray().concat(fn)},Zd=(z,H,J,Te)=>Ha(Te).filter(Il).fold(()=>ti(z,H,J,Te),He=>{const _o=Je(Pa(Te),(fn,ir,Hn)=>{if(Hn===0)return fn;if(Yl(ir))return fn.concat(ti(z,H,J,ir));{const Tn={isFragment:!0,depth:z,content:[ir],isSelected:!1,dirty:!1,parentListType:ut(He)};return fn.concat(Tn)}},[]);return hd(z,H,J,He).concat(_o)}),hd=(z,H,J,Te)=>Rt(Pa(Te),He=>{const _o=Il(He)?hd:Zd,fn=z+1;return _o(fn,H,J,He)}),qd=(z,H)=>{const J=Fr(!1),Te=0;return Bo(z,He=>({sourceList:He,entries:hd(Te,H,J,He)}))},Yi=(z,H)=>{const J=nl(H);return Bo(J,Te=>{const He=yt(Te)?pd([ge.fromHtml(``)]):pd(Te.content);return ge.fromDom(ne(z,He.dom))})},Mc=(z,H)=>{const J=nl(H);return ts(z.contentDocument,J).toArray()},om=(z,H)=>Rt(qe(H,yn),J=>V(J).exists(yn)?Mc(z,J):Yi(z,J)),_u=(z,H)=>{Ct(R(z,ur),J=>Kc(H,J))},Wd=z=>{const H=Bo(U(z),ge.fromDom);return lo(Mt(H,Dt(Ki)),Mt(uo(H),Dt(Ki)),(J,Te)=>({start:J,end:Te}))},rl=(z,H,J)=>{const Te=qd(H,Wd(z));Ct(Te,He=>{_u(He.entries,J);const _o=om(z,He.entries);Ct(_o,fn=>{Ci(z,J==="Indent"?"IndentList":"OutdentList",fn.dom)}),sr(He.sourceList,_o),Jo(He.sourceList)})},Da=(z,H)=>{const J=Lo(Js(z)),Te=Lo(oe(z));let He=!1;if(J.length||Te.length){const _o=z.selection.getBookmark();rl(z,J,H),_r(z,H,Te),z.selection.moveToBookmark(_o),z.selection.setRng(Sa(z.selection.getRng())),z.nodeChanged(),He=!0}return He},Jl=(z,H)=>!vc(z)&&Da(z,H),os=z=>Jl(z,"Indent"),Dc=z=>Jl(z,"Outdent"),dc=z=>Jl(z,"Flatten"),bd="\uFEFF",Ea=z=>z===bd,_l=(z,H,J)=>zr(z,H,J).isSome(),Xc=(z,H)=>_l(z,he(at,H));var yd=tinymce.util.Tools.resolve("tinymce.dom.BookmarkManager");const wc=rr.DOM,Jc=z=>{const H={},J=Te=>{let He=z[Te?"startContainer":"endContainer"],_o=z[Te?"startOffset":"endOffset"];if(ws(He)){const fn=wc.create("span",{"data-mce-type":"bookmark"});He.hasChildNodes()?(_o=Math.min(_o,He.childNodes.length-1),Te?He.insertBefore(fn,He.childNodes[_o]):wc.insertAfter(fn,He.childNodes[_o])):He.appendChild(fn),He=fn,_o=0}H[Te?"startContainer":"endContainer"]=He,H[Te?"startOffset":"endOffset"]=_o};return J(!0),z.collapsed||J(),H},Gd=z=>{const H=Te=>{const He=ir=>{var Hn;let Tn=(Hn=ir.parentNode)===null||Hn===void 0?void 0:Hn.firstChild,fa=0;for(;Tn;){if(Tn===ir)return fa;(!ws(Tn)||Tn.getAttribute("data-mce-type")!=="bookmark")&&fa++,Tn=Tn.nextSibling}return-1};let _o=z[Te?"startContainer":"endContainer"],fn=z[Te?"startOffset":"endOffset"];if(_o){if(ws(_o)&&_o.parentNode){const ir=_o;fn=He(_o),_o=_o.parentNode,wc.remove(ir),!_o.hasChildNodes()&&wc.isBlock(_o)&&_o.appendChild(wc.create("br"))}z[Te?"startContainer":"endContainer"]=_o,z[Te?"startOffset":"endOffset"]=fn}};H(!0),H();const J=wc.createRng();return J.setStart(z.startContainer,z.startOffset),z.endContainer&&J.setEnd(z.endContainer,z.endOffset),Sa(J)},vd=z=>{switch(z){case"UL":return"ToggleUlList";case"OL":return"ToggleOlList";case"DL":return"ToggleDLList"}},pi=(z,H,J)=>{const Te=J["list-style-type"]?J["list-style-type"]:null;z.setStyle(H,"list-style-type",Te)},Cn=(z,H)=>{Sr.each(H,(J,Te)=>{z.setAttribute(Te,J)})},Ql=(z,H,J)=>{Cn(H,J["list-attributes"]),Sr.each(z.select("li",H),Te=>{Cn(Te,J["list-item-attributes"])})},ec=(z,H,J)=>{pi(z,H,J),Ql(z,H,J)},yp=(z,H,J)=>{Sr.each(J,Te=>z.setStyle(H,Te,""))},Kd=(z,H)=>jo(H)&&!Hi(H,z.schema.getBlockElements()),Cl=(z,H,J,Te)=>{let He=H[J?"startContainer":"endContainer"];const _o=H[J?"startOffset":"endOffset"];ws(He)&&(He=He.childNodes[Math.min(_o,He.childNodes.length-1)]||He),!J&&ds(He.nextSibling)&&(He=He.nextSibling);const fn=Hn=>{for(;!z.dom.isBlock(Hn)&&Hn.parentNode&&Te!==Hn;)Hn=Hn.parentNode;return Hn},ir=(Hn,Tn)=>{var fa;const Ka=new Ne(Hn,fn(Hn)),Ni=Tn?"next":"prev";let td;for(;td=Ka[Ni]();)if(!(Bn(z,td)||Ea(td.textContent)||((fa=td.textContent)===null||fa===void 0?void 0:fa.length)===0))return me.some(td);return me.none()};if(J&&za(He))if(Ea(He.textContent))He=ir(He,!1).getOr(He);else for(He.parentNode!==null&&Kd(z,He.parentNode)&&(He=He.parentNode);He.previousSibling!==null&&(Kd(z,He.previousSibling)||za(He.previousSibling));)He=He.previousSibling;if(!J&&za(He))if(Ea(He.textContent))He=ir(He,!0).getOr(He);else for(He.parentNode!==null&&Kd(z,He.parentNode)&&(He=He.parentNode);He.nextSibling!==null&&(Kd(z,He.nextSibling)||za(He.nextSibling));)He=He.nextSibling;for(;He.parentNode!==Te;){const Hn=He.parentNode;if(Rn(z,He)||/^(TD|TH)$/.test(Hn.nodeName))return He;He=Hn}return He},nm=(z,H,J)=>{const Te=[],He=z.dom,_o=Cl(z,H,!0,J),fn=Cl(z,H,!1,J);let ir;const Hn=[];for(let Tn=_o;Tn&&(Hn.push(Tn),Tn!==fn);Tn=Tn.nextSibling);return Sr.each(Hn,Tn=>{var fa;if(Rn(z,Tn)){Te.push(Tn),ir=null;return}if(He.isBlock(Tn)||ds(Tn)){ds(Tn)&&He.remove(Tn),ir=null;return}const Ka=Tn.nextSibling;if(yd.isBookmarkNode(Tn)&&(As(Ka)||Rn(z,Ka)||!Ka&&Tn.parentNode===J)){ir=null;return}ir||(ir=He.create("p"),(fa=Tn.parentNode)===null||fa===void 0||fa.insertBefore(ir,Tn),Te.push(ir)),ir.appendChild(Tn)}),Te},rm=(z,H,J)=>{const Te=z.getStyle(H,"list-style-type");let He=J?J["list-style-type"]:"";return He=He===null?"":He,Te===He},wa=(z,H)=>{const J=z.selection.getStart(!0),Te=Cl(z,H,!0,z.getBody());return Xc(ge.fromDom(Te),ge.fromDom(H.commonAncestorContainer))?H.commonAncestorContainer:J},Qc=(z,H,J)=>{const Te=z.selection.getRng();let He="LI";const _o=po(z,wa(z,Te)),fn=z.dom;if(fn.getContentEditable(z.selection.getNode())==="false")return;H=H.toUpperCase(),H==="DL"&&(He="DT");const ir=Jc(Te),Hn=R(nm(z,Te,_o),z.dom.isEditable);Sr.each(Hn,Tn=>{let fa;const Ka=Tn.previousSibling,Ni=Tn.parentNode;Os(Ni)||(Ka&&As(Ka)&&Ka.nodeName===H&&rm(fn,Ka,J)?(fa=Ka,Tn=fn.rename(Tn,He),Ka.appendChild(Tn)):(fa=fn.create(H),Ni.insertBefore(fa,Tn),fa.appendChild(Tn),Tn=fn.rename(Tn,He)),yp(fn,Tn,["margin","margin-right","margin-bottom","margin-left","margin-top","padding","padding-right","padding-bottom","padding-left","padding-top"]),ec(fn,fa,J),Ti(z.dom,fa))}),z.selection.setRng(Gd(ir))},Ns=(z,H)=>As(z)&&z.nodeName===(H==null?void 0:H.nodeName),kc=(z,H,J)=>{const Te=z.getStyle(H,"list-style-type",!0),He=z.getStyle(J,"list-style-type",!0);return Te===He},Rm=(z,H)=>z.className===H.className,an=(z,H,J)=>Ns(H,J)&&kc(z,H,J)&&Rm(H,J),Ti=(z,H)=>{let J,Te=H.nextSibling;if(an(z,H,Te)){const He=Te;for(;J=He.firstChild;)H.appendChild(J);z.remove(He)}if(Te=H.previousSibling,an(z,H,Te)){const He=Te;for(;J=He.lastChild;)H.insertBefore(J,H.firstChild);z.remove(He)}},Cu=(z,H,J,Te)=>{if(H.nodeName!==J){const He=z.dom.rename(H,J);ec(z.dom,He,Te),Ci(z,vd(J),He)}else ec(z.dom,H,Te),Ci(z,vd(J),H)},ka=(z,H,J,Te)=>{if(H.classList.forEach((He,_o,fn)=>{He.startsWith("tox-")&&(fn.remove(He),fn.length===0&&H.removeAttribute("class"))}),H.nodeName!==J){const He=z.dom.rename(H,J);ec(z.dom,He,Te),Ci(z,vd(J),He)}else ec(z.dom,H,Te),Ci(z,vd(J),H)},Sl=(z,H,J,Te,He)=>{const _o=As(H);if(_o&&H.nodeName===Te&&!fi(He)&&!Qs(H))dc(z);else{Qc(z,Te,He);const fn=Jc(z.selection.getRng()),ir=_o?[H,...J]:J,Hn=_o&&Qs(H)?ka:Cu;Sr.each(ir,Tn=>{Hn(z,Tn,Te,He)}),z.selection.setRng(Gd(fn))}},fi=z=>"list-style-type"in z,El=(z,H,J,Te)=>{if(H!==z.getBody())if(H)if(H.nodeName===J&&!fi(Te)&&!Qs(H))dc(z);else{const He=Jc(z.selection.getRng());Qs(H)&&H.classList.forEach((fn,ir,Hn)=>{fn.startsWith("tox-")&&(Hn.remove(fn),Hn.length===0&&H.removeAttribute("class"))}),ec(z.dom,H,Te);const _o=z.dom.rename(H,J);Ti(z.dom,_o),z.selection.setRng(Gd(He)),Qc(z,J,Te),Ci(z,vd(J),_o)}else Qc(z,J,Te),Ci(z,vd(J),H)},Ms=(z,H,J)=>{const Te=Q(z);if(je(z,Te))return;const He=wo(z),_o=Po(J)?J:{};He.length>0?Sl(z,Te,He,H,_o):El(z,Te,H,_o)},Su=rr.DOM,oi=(z,H)=>{const J=H.parentElement;if(J&&J.nodeName==="LI"&&J.firstChild===H){const Te=J.previousSibling;Te&&Te.nodeName==="LI"?(Te.appendChild(H),go(z,J)&&Su.remove(J)):Su.setStyle(J,"listStyleType","none")}if(As(J)){const Te=J.previousSibling;Te&&Te.nodeName==="LI"&&Te.appendChild(H)}},ro=(z,H)=>{const J=Sr.grep(z.select("ol,ul",H));Sr.each(J,Te=>{oi(z,Te)})},Eu=(z,H,J,Te)=>{let He=H.startContainer;const _o=H.startOffset;if(za(He)&&(J?_o0))return He;const fn=z.schema.getNonEmptyElements();ws(He)&&(He=Ce.getNode(He,_o));const ir=new Ne(He,Te);J&&ji(z.dom,He)&&ir.next();const Hn=J?ir.next.bind(ir):ir.prev2.bind(ir);for(;He=Hn();)if(He.nodeName==="LI"&&!He.hasChildNodes()||fn[He.nodeName]||za(He)&&He.data.length>0)return He;return null},Yt=(z,H)=>{const J=H.childNodes;return J.length===1&&!As(J[0])&&z.isBlock(J[0])},ni=z=>me.from(z).map(ge.fromDom).filter(Xt).exists(H=>De(H)&&!$t(["details"],ut(H))),xd=(z,H)=>{Yt(z,H)&&ni(H.firstChild)&&z.remove(H.firstChild,!0)},us=(z,H,J)=>{let Te;const He=Yt(z,J)?J.firstChild:J;if(xd(z,H),!go(z,H,!0))for(;Te=H.firstChild;)He.appendChild(Te)},da=(z,H,J)=>{let Te;const He=H.parentNode;if(!aa(z,H)||!aa(z,J))return;As(J.lastChild)&&(Te=J.lastChild),He===J.lastChild&&ds(He.previousSibling)&&z.remove(He.previousSibling);const _o=J.lastChild;_o&&ds(_o)&&H.hasChildNodes()&&z.remove(_o),go(z,J,!0)&&Br(ge.fromDom(J)),us(z,H,J),Te&&J.appendChild(Te);const ir=ze(ge.fromDom(J),ge.fromDom(H))?z.getParents(H,As,J):[];z.remove(H),Ct(ir,Hn=>{go(z,Hn)&&Hn!==z.getRoot()&&z.remove(Hn)})},ml=(z,H,J)=>{Br(ge.fromDom(J)),da(z.dom,H,J),z.selection.setCursorLocation(J,0)},zi=(z,H,J,Te)=>{const He=z.dom;if(He.isEmpty(Te))ml(z,J,Te);else{const _o=Jc(H);da(He,J,Te),z.selection.setRng(Gd(_o))}},Oa=(z,H,J,Te)=>{const He=Jc(H);da(z.dom,J,Te);const _o=Gd(He);z.selection.setRng(_o)},al=(z,H)=>{const J=z.dom,Te=z.selection,He=Te.getStart(),_o=xe(z,He),fn=J.getParent(Te.getStart(),"LI",_o);if(fn){const ir=fn.parentElement;if(ir===z.getBody()&&go(J,ir))return!0;const Hn=Sa(Te.getRng()),Tn=J.getParent(Eu(z,Hn,H,_o),"LI",_o),fa=Tn&&(H?J.isChildOf(fn,Tn):J.isChildOf(Tn,fn));if(Tn&&Tn!==fn&&!fa)return z.undoManager.transact(()=>{H?zi(z,Hn,Tn,fn):xa(fn)?Dc(z):Oa(z,Hn,fn,Tn)}),!0;if(fa&&!H&&Tn!==fn)return z.undoManager.transact(()=>{if(Hn.commonAncestorContainer.parentElement){const Ka=Jc(Hn),Ni=Hn.commonAncestorContainer.parentElement;us(J,Hn.commonAncestorContainer.parentElement,Tn),Ni.remove();const td=Gd(Ka);z.selection.setRng(td)}}),!0;if(!Tn&&!H&&Hn.startOffset===0&&Hn.endOffset===0)return z.undoManager.transact(()=>{dc(z)}),!0}return!1},la=(z,H,J)=>{const Te=z.getParent(H.parentNode,z.isBlock,J);z.remove(H),Te&&z.isEmpty(Te)&&z.remove(Te)},$i=(z,H)=>{const J=z.dom,Te=z.selection.getStart(),He=xe(z,Te),_o=J.getParent(Te,J.isBlock,He);if(_o&&J.isEmpty(_o)){const fn=Sa(z.selection.getRng()),ir=J.getParent(Eu(z,fn,H,He),"LI",He);if(ir){const Hn=Ni=>$t(["td","th","caption"],ut(Ni)),Tn=Ni=>Ni.dom===He,fa=kr(ge.fromDom(ir),Hn,Tn),Ka=kr(ge.fromDom(fn.startContainer),Hn,Tn);return Pt(fa,Ka,at)?(z.undoManager.transact(()=>{const Ni=ir.parentNode;la(J,_o,He),Ti(J,Ni),z.selection.select(ir,!0),z.selection.collapse(H)}),!0):!1}}return!1},Yd=(z,H)=>al(z,H)||$i(z,H),Hs=z=>{const H=z.selection.getStart(),J=xe(z,H);return z.dom.getParent(H,"LI,DT,DD",J)||U(z).length>0},sg=z=>Hs(z)?(z.undoManager.transact(()=>{z.execCommand("Delete"),ro(z.dom,z.getBody())}),!0):!1,Tl=(z,H)=>{const J=z.selection;return!je(z,J.getNode())&&(J.isCollapsed()?Yd(z,H):sg(z))},ns=z=>{z.on("ExecCommand",H=>{const J=H.command.toLowerCase();(J==="delete"||J==="forwarddelete")&&Hs(z)&&ro(z.dom,z.getBody())}),z.on("keydown",H=>{H.keyCode===Zt.BACKSPACE?Tl(z,!1)&&H.preventDefault():H.keyCode===Zt.DELETE&&Tl(z,!0)&&H.preventDefault()})},gl=z=>({backspaceDelete:H=>{Tl(z,H)}}),ft=(z,H)=>{const J=Q(z);J===null||je(z,J)||z.undoManager.transact(()=>{Po(H.styles)&&z.dom.setStyles(J,H.styles),Po(H.attrs)&&rn(H.attrs,(Te,He)=>z.dom.setAttrib(J,He,Te))})},Ai=z=>{const H=uo(sa(z).split("")),J=Bo(H,(Te,He)=>{const _o=Te.toUpperCase().charCodeAt(0)-65+1;return Math.pow(26,He)*_o});return Je(J,(Te,He)=>Te+He,0)},wd=z=>{if(z--,z<0)return"";{const H=z%26,J=Math.floor(z/26),Te=wd(J),He=String.fromCharCode(65+H);return Te+He}},zl=z=>/^[A-Z]+$/.test(z),pl=z=>/^[a-z]+$/.test(z),ri=z=>/^[0-9]+$/.test(z),hs=z=>ri(z)?2:zl(z)?0:pl(z)?1:ag(z)?3:4,uc=z=>{switch(hs(z)){case 2:return me.some({listStyleType:me.none(),start:z});case 0:return me.some({listStyleType:me.some("upper-alpha"),start:Ai(z).toString()});case 1:return me.some({listStyleType:me.some("lower-alpha"),start:Ai(z).toString()});case 3:return me.some({listStyleType:me.none(),start:""});case 4:return me.none()}},Bm=z=>{const H=parseInt(z.start,10);return Co(z.listStyleType,"upper-alpha")?wd(H):Co(z.listStyleType,"lower-alpha")?wd(H).toLowerCase():z.start},Sn=z=>{const H=Q(z);!Kn(H)||je(z,H)||z.windowManager.open({title:"List Properties",body:{type:"panel",items:[{type:"input",name:"start",label:"Start list at number",inputMode:"numeric"}]},initialData:{start:Bm({start:z.dom.getAttrib(H,"start","1"),listStyleType:me.from(z.dom.getStyle(H,"list-style-type"))})},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],onSubmit:J=>{const Te=J.getData();uc(Te.start).each(He=>{z.execCommand("mceListUpdate",!1,{attrs:{start:He.start==="1"?"":He.start},styles:{"list-style-type":He.listStyleType.getOr("")}})}),J.close()}})},Ui=(z,H)=>()=>{const J=Q(z);return jo(J)&&J.nodeName===H},Xi=z=>{z.addCommand("mceListProps",()=>{Sn(z)})},Oi=z=>{z.on("BeforeExecCommand",H=>{const J=H.command.toLowerCase();J==="indent"?os(z):J==="outdent"&&Dc(z)}),z.addCommand("InsertUnorderedList",(H,J)=>{Ms(z,"UL",J)}),z.addCommand("InsertOrderedList",(H,J)=>{Ms(z,"OL",J)}),z.addCommand("InsertDefinitionList",(H,J)=>{Ms(z,"DL",J)}),z.addCommand("RemoveList",()=>{dc(z)}),Xi(z),z.addCommand("mceListUpdate",(H,J)=>{Po(J)&&ft(z,J)}),z.addQueryStateHandler("InsertUnorderedList",Ui(z,"UL")),z.addQueryStateHandler("InsertOrderedList",Ui(z,"OL")),z.addQueryStateHandler("InsertDefinitionList",Ui(z,"DL"))};var Za=tinymce.util.Tools.resolve("tinymce.html.Node");const _c=z=>z.type===3,qs=z=>z.length===0,Tu=z=>{const H=(He,_o)=>{const fn=Za.create("li");Ct(He,ir=>fn.append(ir)),_o?z.insert(fn,_o,!0):z.append(fn)},J=(He,_o)=>_c(_o)?[...He,_o]:!qs(He)&&!_c(_o)?(H(He,_o),[]):He,Te=Je(z.children(),J,[]);qs(Te)||H(Te)},kd=z=>{z.on("PreInit",()=>{const{parser:H}=z;H.addNodeFilter("ul,ol",J=>Ct(J,Tu))})},Pl=z=>{z.on("keydown",H=>{H.keyCode!==Zt.TAB||Zt.metaKeyPressed(H)||z.undoManager.transact(()=>{(H.shiftKey?Dc(z):os(z))&&H.preventDefault()})})},bs=z=>{gi(z)&&Pl(z),ns(z)},Ws=(z,H)=>J=>{const Te=He=>{J.setActive(ic(He.parents,H)),J.setEnabled(!je(z,He.element)&&z.selection.isEditable())};return J.setEnabled(z.selection.isEditable()),Ll(z,Te)},ed=z=>{const H=J=>()=>z.execCommand(J);z.hasPlugin("advlist")||(z.ui.registry.addToggleButton("numlist",{icon:"ordered-list",active:!1,tooltip:"Numbered list",onAction:H("InsertOrderedList"),onSetup:Ws(z,"OL")}),z.ui.registry.addToggleButton("bullist",{icon:"unordered-list",active:!1,tooltip:"Bullet list",onAction:H("InsertUnorderedList"),onSetup:Ws(z,"UL")}))},Hl=(z,H)=>J=>Ll(z,He=>J.setEnabled(ic(He.parents,H)&&!je(z,He.element))),_d=z=>{const H={text:"List properties...",icon:"ordered-list",onAction:()=>z.execCommand("mceListProps"),onSetup:Hl(z,"OL")};z.ui.registry.addMenuItem("listprops",H),z.ui.registry.addContextMenu("lists",{update:J=>{const Te=Q(z,J);return Kn(Te)?["listprops"]:[]}})};var ai=()=>{xo.add("lists",z=>(Ir(z),kd(z),z.hasPlugin("rtc",!0)?Xi(z):(bs(z),Oi(z)),ed(z),_d(z),gl(z)))};ai()})();(function(){var xo=tinymce.util.Tools.resolve("tinymce.PluginManager");const Ko=(De,Ae,wt)=>{var It;return wt(De,Ae.prototype)?!0:((It=De.constructor)===null||It===void 0?void 0:It.name)===Ae.name},Io=De=>{const Ae=typeof De;return De===null?"null":Ae==="object"&&Array.isArray(De)?"array":Ae==="object"&&Ko(De,String,(wt,It)=>It.isPrototypeOf(wt))?"string":Ae},on=De=>Ae=>Io(Ae)===De,Qo=on("string"),io=on("object"),Po=on("array"),jt=De=>De==null,ko=De=>!jt(De);class Mo{constructor(Ae,wt){this.tag=Ae,this.value=wt}static some(Ae){return new Mo(!0,Ae)}static none(){return Mo.singletonNone}fold(Ae,wt){return this.tag?wt(this.value):Ae()}isSome(){return this.tag}isNone(){return!this.tag}map(Ae){return this.tag?Mo.some(Ae(this.value)):Mo.none()}bind(Ae){return this.tag?Ae(this.value):Mo.none()}exists(Ae){return this.tag&&Ae(this.value)}forall(Ae){return!this.tag||Ae(this.value)}filter(Ae){return!this.tag||Ae(this.value)?this:Mo.none()}getOr(Ae){return this.tag?this.value:Ae}or(Ae){return this.tag?this:Ae}getOrThunk(Ae){return this.tag?this.value:Ae()}orThunk(Ae){return this.tag?this:Ae()}getOrDie(Ae){if(this.tag)return this.value;throw new Error(Ae??"Called getOrDie on None")}static from(Ae){return ko(Ae)?Mo.some(Ae):Mo.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(Ae){this.tag&&Ae(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}Mo.singletonNone=new Mo(!1);const jo=Array.prototype.push,tn=(De,Ae)=>{for(let wt=0,It=De.length;wt{const Ae=[];for(let wt=0,It=De.length;wt{let Ae=De;return{get:()=>Ae,set:dn=>{Ae=dn}}},it=Object.keys,So=Object.hasOwnProperty,co=(De,Ae)=>{const wt=it(De);for(let It=0,dn=wt.length;ItDt(De,Ae)?Mo.from(De[Ae]):Mo.none(),Dt=(De,Ae)=>So.call(De,Ae),fo=De=>Ae=>Ae.options.get(De),me=De=>{const Ae=De.options.register;Ae("audio_template_callback",{processor:"function"}),Ae("video_template_callback",{processor:"function"}),Ae("iframe_template_callback",{processor:"function"}),Ae("media_live_embeds",{processor:"boolean",default:!0}),Ae("media_filter_html",{processor:"boolean",default:!0}),Ae("media_url_resolver",{processor:"function"}),Ae("media_alt_source",{processor:"boolean",default:!0}),Ae("media_poster",{processor:"boolean",default:!0}),Ae("media_dimensions",{processor:"boolean",default:!0})},Ze=fo("audio_template_callback"),de=fo("video_template_callback"),rt=fo("iframe_template_callback"),Yo=fo("media_live_embeds"),$t=fo("media_filter_html"),gn=fo("media_url_resolver"),Bo=fo("media_alt_source"),Ct=fo("media_poster"),R=fo("media_dimensions");var qe=tinymce.util.Tools.resolve("tinymce.util.Tools"),Je=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),lt=tinymce.util.Tools.resolve("tinymce.html.DomParser");const Mt=Je.DOM,ht=De=>De.replace(/px$/,""),Rt=De=>{const Ae=De.attr("style"),wt=Ae?Mt.parseStyle(Ae):{};return{type:"ephox-embed-iri",source:De.attr("data-ephox-embed-iri"),altsource:"",poster:"",width:he(wt,"max-width").map(ht).getOr(""),height:he(wt,"max-height").map(ht).getOr("")}},uo=(De,Ae)=>{let wt={};const dn=lt({validate:!1,forced_root_block:!1},Ae).parse(De);for(let nn=dn;nn;nn=nn.walk())if(nn.type===1){const sr=nn.name;if(nn.attr("data-ephox-embed-iri")){wt=Rt(nn);break}else!wt.source&&sr==="param"&&(wt.source=nn.attr("movie")),(sr==="iframe"||sr==="object"||sr==="embed"||sr==="video"||sr==="audio")&&(wt.type||(wt.type=sr),wt=qe.extend(nn.attributes.map,wt)),sr==="source"&&(wt.source?wt.altsource||(wt.altsource=nn.attr("src")):wt.source=nn.attr("src")),sr==="img"&&!wt.poster&&(wt.poster=nn.attr("src"))}return wt.source=wt.source||wt.src||"",wt.altsource=wt.altsource||"",wt.poster=wt.poster||"",wt},Bt=De=>{var Ae;const wt={mp3:"audio/mpeg",m4a:"audio/x-m4a",wav:"audio/wav",mp4:"video/mp4",webm:"video/webm",ogg:"video/ogg",swf:"application/x-shockwave-flash"},It=(Ae=De.toLowerCase().split(".").pop())!==null&&Ae!==void 0?Ae:"";return he(wt,It).getOr("")};var V=tinymce.util.Tools.resolve("tinymce.html.Node"),dt=tinymce.util.Tools.resolve("tinymce.html.Serializer");const Ie=(De,Ae={})=>lt({forced_root_block:!1,validate:!1,allow_conditional_comments:!0,...Ae},De),Co=Je.DOM,Pt=De=>/^[0-9.]+$/.test(De)?De+"px":De,lo=(De,Ae)=>{const wt=Ae.attr("style"),It=wt?Co.parseStyle(wt):{};ko(De.width)&&(It["max-width"]=Pt(De.width)),ko(De.height)&&(It["max-height"]=Pt(De.height)),Ae.attr("style",Co.serializeStyle(It))},zo=["source","altsource"],to=(De,Ae,wt,It)=>{let dn=0,nn=0;const sr=Ie(It);sr.addNodeFilter("source",Br=>dn=Br.length);const Vr=sr.parse(De);for(let Br=Vr;Br;Br=Br.walk())if(Br.type===1){const Jo=Br.name;if(Br.attr("data-ephox-embed-iri")){lo(Ae,Br);break}else{switch(Jo){case"video":case"object":case"embed":case"img":case"iframe":Ae.height!==void 0&&Ae.width!==void 0&&(Br.attr("width",Ae.width),Br.attr("height",Ae.height));break}if(wt)switch(Jo){case"video":Br.attr("poster",Ae.poster),Br.attr("src",null);for(let Ne=dn;Ne<2;Ne++)if(Ae[zo[Ne]]){const Zt=new V("source",1);Zt.attr("src",Ae[zo[Ne]]),Zt.attr("type",Ae[zo[Ne]+"mime"]||null),Br.append(Zt)}break;case"iframe":Br.attr("src",Ae.source);break;case"object":const Ce=Br.getAll("img").length>0;if(Ae.poster&&!Ce){Br.attr("src",Ae.poster);const Ne=new V("img",1);Ne.attr("src",Ae.poster),Ne.attr("width",Ae.width),Ne.attr("height",Ae.height),Br.append(Ne)}break;case"source":if(nn<2&&(Br.attr("src",Ae[zo[nn]]),Br.attr("type",Ae[zo[nn]+"mime"]||null),!Ae[zo[nn]])){Br.remove();continue}nn++;break;case"img":Ae.poster||Br.remove();break}}}return dt({},It).serialize(Vr)},Se=[{regex:/youtu\.be\/([\w\-_\?&=.]+)/i,type:"iframe",w:560,h:314,url:"www.youtube.com/embed/$1",allowFullscreen:!0},{regex:/youtube\.com(.+)v=([^&]+)(&([a-z0-9&=\-_]+))?/i,type:"iframe",w:560,h:314,url:"www.youtube.com/embed/$2?$4",allowFullscreen:!0},{regex:/youtube.com\/embed\/([a-z0-9\?&=\-_]+)/i,type:"iframe",w:560,h:314,url:"www.youtube.com/embed/$1",allowFullscreen:!0},{regex:/vimeo\.com\/([0-9]+)\?h=(\w+)/,type:"iframe",w:425,h:350,url:"player.vimeo.com/video/$1?h=$2&title=0&byline=0&portrait=0&color=8dc7dc",allowFullscreen:!0},{regex:/vimeo\.com\/(.*)\/([0-9]+)\?h=(\w+)/,type:"iframe",w:425,h:350,url:"player.vimeo.com/video/$2?h=$3&title=0&byline=0",allowFullscreen:!0},{regex:/vimeo\.com\/([0-9]+)/,type:"iframe",w:425,h:350,url:"player.vimeo.com/video/$1?title=0&byline=0&portrait=0&color=8dc7dc",allowFullscreen:!0},{regex:/vimeo\.com\/(.*)\/([0-9]+)/,type:"iframe",w:425,h:350,url:"player.vimeo.com/video/$2?title=0&byline=0",allowFullscreen:!0},{regex:/maps\.google\.([a-z]{2,3})\/maps\/(.+)msid=(.+)/,type:"iframe",w:425,h:350,url:'maps.google.com/maps/ms?msid=$2&output=embed"',allowFullscreen:!1},{regex:/dailymotion\.com\/video\/([^_]+)/,type:"iframe",w:480,h:270,url:"www.dailymotion.com/embed/video/$1",allowFullscreen:!0},{regex:/dai\.ly\/([^_]+)/,type:"iframe",w:480,h:270,url:"www.dailymotion.com/embed/video/$1",allowFullscreen:!0}],$e=De=>{const Ae=De.match(/^(https?:\/\/|www\.)(.+)$/i);return Ae&&Ae.length>1?Ae[1]==="www."?"https://":Ae[1]:"https://"},ct=(De,Ae)=>{const wt=$e(Ae),It=De.regex.exec(Ae);let dn=wt+De.url;if(ko(It))for(let nn=0;nnIt[nn]?It[nn]:"");return dn.replace(/\?$/,"")},gt=De=>{const Ae=Se.filter(wt=>wt.regex.test(De));return Ae.length>0?qe.extend({},Ae[0],{url:ct(Ae[0],De)}):null},pe=(De,Ae)=>{if(Ae)return Ae(De);{const wt=De.allowfullscreen?' allowFullscreen="1"':"";return'"}},Oe=De=>{let Ae='';return De.poster&&(Ae+=''),Ae+="",Ae},We=(De,Ae)=>Ae?Ae(De):'",Fe=(De,Ae)=>Ae?Ae(De):'",ge=(De,Ae)=>{var wt;const It=qe.extend({},Ae);if(!It.source&&(qe.extend(It,uo((wt=It.embed)!==null&&wt!==void 0?wt:"",De.schema)),!It.source))return"";It.altsource||(It.altsource=""),It.poster||(It.poster=""),It.source=De.convertURL(It.source,"source"),It.altsource=De.convertURL(It.altsource,"source"),It.sourcemime=Bt(It.source),It.altsourcemime=Bt(It.altsource),It.poster=De.convertURL(It.poster,"poster");const dn=gt(It.source);if(dn&&(It.source=dn.url,It.type=dn.type,It.allowfullscreen=dn.allowFullscreen,It.width=It.width||String(dn.w),It.height=It.height||String(dn.h)),It.embed)return to(It.embed,It,!0,De.schema);{const nn=Ze(De),sr=de(De),Vr=rt(De);return It.width=It.width||"300",It.height=It.height||"150",qe.each(It,(Br,Jo)=>{It[Jo]=De.dom.encode(""+Br)}),It.type==="iframe"?pe(It,Vr):It.sourcemime==="application/x-shockwave-flash"?Oe(It):It.sourcemime.indexOf("audio")!==-1?We(It,nn):Fe(It,sr)}},Me=De=>De.hasAttribute("data-mce-object")||De.hasAttribute("data-ephox-embed-iri"),at=De=>{De.on("click keyup touchend",()=>{const Ae=De.selection.getNode();Ae&&De.dom.hasClass(Ae,"mce-preview-object")&&De.dom.getAttrib(Ae,"data-mce-selected")&&Ae.setAttribute("data-mce-selected","2")}),De.on("ObjectResized",Ae=>{const wt=Ae.target;if(wt.getAttribute("data-mce-object")){let It=wt.getAttribute("data-mce-html");It&&(It=unescape(It),wt.setAttribute("data-mce-html",escape(to(It,{width:String(Ae.width),height:String(Ae.height)},!1,De.schema))))}})},ze={},Ge=(De,Ae,wt)=>new Promise((It,dn)=>{const nn=sr=>(sr.html&&(ze[De.source]=sr),It({url:De.source,html:sr.html?sr.html:Ae(De)}));ze[De.source]?nn(ze[De.source]):wt({url:De.source},nn,dn)}),Gt=(De,Ae)=>Promise.resolve({html:Ae(De),url:De.source}),Vt=De=>Ae=>ge(De,Ae),Xo=(De,Ae)=>{const wt=gn(De);return wt?Ge(Ae,Vt(De),wt):Gt(Ae,Vt(De))},$o=De=>Dt(ze,De),Zo=(De,Ae)=>he(Ae,De).bind(wt=>he(wt,"meta")),Gn=(De,Ae,wt)=>It=>{const dn=()=>he(De,It),nn=()=>he(Ae,It),sr=Jo=>he(Jo,"value").bind(Ce=>Ce.length>0?Mo.some(Ce):Mo.none()),Vr=()=>dn().bind(Jo=>io(Jo)?sr(Jo).orThunk(nn):nn().orThunk(()=>Mo.from(Jo))),Br=()=>nn().orThunk(()=>dn().bind(Jo=>io(Jo)?sr(Jo):Mo.from(Jo)));return{[It]:(It===wt?Vr():Br()).getOr("")}},Pn=(De,Ae)=>{const wt={};return he(De,"dimensions").each(It=>{tn(["width","height"],dn=>{he(Ae,dn).orThunk(()=>he(It,dn)).each(nn=>wt[dn]=nn)})}),wt},zn=(De,Ae)=>{const wt=Ae&&Ae!=="dimensions"?Zo(Ae,De).getOr({}):{},It=Gn(De,wt,Ae);return{...It("source"),...It("altsource"),...It("poster"),...It("embed"),...Pn(De,wt)}},ut=De=>{const Ae={...De,source:{value:he(De,"source").getOr("")},altsource:{value:he(De,"altsource").getOr("")},poster:{value:he(De,"poster").getOr("")}};return tn(["width","height"],wt=>{he(De,wt).each(It=>{const dn=Ae.dimensions||{};dn[wt]=It,Ae.dimensions=dn})}),Ae},zt=De=>Ae=>{const wt=Ae&&Ae.msg?"Media embed handler error: "+Ae.msg:"Media embed handler threw unknown error.";De.notificationManager.open({type:"error",text:wt})},Ft=De=>{const Ae=De.selection.getNode(),wt=Me(Ae)?De.serializer.serialize(Ae,{selection:!0}):"",It=uo(wt,De.schema),nn=(()=>{if($n(It.source,It.type)){const sr=De.dom.getRect(Ae);return{width:sr.w.toString().replace(/px$/,""),height:sr.h.toString().replace(/px$/,"")}}else return{}})();return{embed:wt,...It,...nn}},vo=(De,Ae)=>wt=>{if(Qo(wt.url)&&wt.url.trim().length>0){const It=wt.html,nn={...uo(It,Ae.schema),source:wt.url,embed:It};De.setData(ut(nn))}},Xt=(De,Ae)=>{const wt=De.dom.select("*[data-mce-object]");for(let It=0;It=0;dn--)Ae[It]===wt[dn]&&wt.splice(dn,1);De.selection.select(wt[0])},Vo=(De,Ae)=>{const wt=De.dom.select("*[data-mce-object]");De.insertContent(Ae),Xt(De,wt),De.nodeChanged()},$n=(De,Ae)=>ko(Ae)&&Ae==="ephox-embed-iri"&&ko(gt(De)),Rr=(De,Ae)=>((It,dn)=>It.width!==dn.width||It.height!==dn.height)(De,Ae)&&$n(Ae.source,De.type),Wt=(De,Ae,wt)=>{var It;Ae.embed=Rr(De,Ae)&&R(wt)?ge(wt,{...Ae,embed:""}):to((It=Ae.embed)!==null&&It!==void 0?It:"",Ae,!1,wt.schema),Ae.embed&&(De.source===Ae.source||$o(Ae.source))?Vo(wt,Ae.embed):Xo(wt,Ae).then(dn=>{Vo(wt,dn.html)}).catch(zt(wt))},vr=De=>{const Ae=Ft(De),wt=Ue(Ae),It=ut(Ae),dn=(hn,wn)=>{const Un=zn(wn.getData(),"source");hn.source!==Un.source&&(vo(Go,De)({url:Un.source,html:""}),Xo(De,Un).then(vo(Go,De)).catch(zt(De)))},nn=hn=>{var wn;const Un=zn(hn.getData()),Ar=uo((wn=Un.embed)!==null&&wn!==void 0?wn:"",De.schema);hn.setData(ut(Ar))},sr=(hn,wn,Un)=>{const Ar=zn(hn.getData(),wn),ra=Rr(Un,Ar)&&R(De)?{...Ar,embed:""}:Ar,Xs=ge(De,ra);hn.setData(ut({...ra,embed:Xs}))},Vr=[{name:"source",type:"urlinput",filetype:"media",label:"Source",picker_text:"Browse files"}],Br=R(De)?[{type:"sizeinput",name:"dimensions",label:"Constrain proportions",constrain:!0}]:[],Jo={title:"General",name:"general",items:To([Vr,Br])},Ne={title:"Embed",items:[{type:"textarea",name:"embed",label:"Paste your embed code below:"}]},Zt=[];Bo(De)&&Zt.push({name:"altsource",type:"urlinput",filetype:"media",label:"Alternative source URL"}),Ct(De)&&Zt.push({name:"poster",type:"urlinput",filetype:"image",label:"Media poster (Image URL)"});const Lo={title:"Advanced",name:"advanced",items:Zt},Ho=[Jo,Ne];Zt.length>0&&Ho.push(Lo);const rn={type:"tabpanel",tabs:Ho},Go=De.windowManager.open({title:"Insert/Edit Media",size:"normal",body:rn,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],onSubmit:hn=>{const wn=zn(hn.getData());Wt(wt.get(),wn,De),hn.close()},onChange:(hn,wn)=>{switch(wn.name){case"source":dn(wt.get(),hn);break;case"embed":nn(hn);break;case"dimensions":case"altsource":case"poster":sr(hn,wn.name,wt.get());break}wt.set(zn(hn.getData()))},initialData:It})},Fn=De=>({showDialog:()=>{vr(De)}}),ln=De=>{const Ae=()=>{vr(De)};De.addCommand("mceMedia",Ae)},xr=(De,Ae,wt)=>Ae===""||De.length>=Ae.length&&De.substr(wt,wt+Ae.length)===Ae,Ys=(De,Ae)=>xr(De,Ae,0);var Yr=tinymce.util.Tools.resolve("tinymce.Env");const Pa=De=>{const Ae=De.name;return Ae==="iframe"||Ae==="video"||Ae==="audio"},cs=(De,Ae,wt,It=null)=>{const dn=De.attr(wt);return ko(dn)?dn:Dt(Ae,wt)?null:It},Ha=(De,Ae,wt)=>{const It=Ae.name==="img"||De.name==="video",dn=It?"300":null,nn=De.name==="audio"?"30":"150",sr=It?nn:null;Ae.attr({width:cs(De,wt,"width",dn),height:cs(De,wt,"height",sr)})},ja=(De,Ae,wt,It)=>{const dn=Ie(De.schema).parse(It,{context:Ae});for(;dn.firstChild;)wt.append(dn.firstChild)},$s=(De,Ae)=>{const wt=Ae.name,It=new V("img",1);return _a(De,Ae,It),Ha(Ae,It,{}),It.attr({style:Ae.attr("style"),src:Yr.transparentSrc,"data-mce-object":wt,class:"mce-object mce-object-"+wt}),It},Us=(De,Ae)=>{var wt;const It=Ae.name,dn=new V("span",1);dn.attr({contentEditable:"false",style:Ae.attr("style"),"data-mce-object":It,class:"mce-preview-object mce-object-"+It}),_a(De,Ae,dn);const nn=De.dom.parseStyle((wt=Ae.attr("style"))!==null&&wt!==void 0?wt:""),sr=new V(It,1);if(Ha(Ae,sr,nn),sr.attr({src:Ae.attr("src"),style:Ae.attr("style"),class:Ae.attr("class")}),It==="iframe")sr.attr({allowfullscreen:Ae.attr("allowfullscreen"),frameborder:"0",sandbox:Ae.attr("sandbox")});else{tn(["controls","crossorigin","currentTime","loop","muted","poster","preload"],Ce=>{sr.attr(Ce,Ae.attr(Ce))});const Jo=dn.attr("data-mce-html");ko(Jo)&&ja(De,It,sr,unescape(Jo))}const Vr=new V("span",1);return Vr.attr("class","mce-shim"),dn.append(sr),dn.append(Vr),dn},_a=(De,Ae,wt)=>{var It;const dn=(It=Ae.attributes)!==null&&It!==void 0?It:[];let nn=dn.length;for(;nn--;){const Jo=dn[nn].name;let Ce=dn[nn].value;Jo!=="width"&&Jo!=="height"&&Jo!=="style"&&!Ys(Jo,"data-mce-")&&((Jo==="data"||Jo==="src")&&(Ce=De.convertURL(Ce,Jo)),wt.attr("data-mce-p-"+Jo,Ce))}const sr=dt({inner:!0},De.schema),Vr=new V("div",1);tn(Ae.children(),Jo=>Vr.append(Jo));const Br=sr.serialize(Vr);Br&&(wt.attr("data-mce-html",escape(Br)),wt.empty())},tt=De=>{const Ae=De.attr("class");return Qo(Ae)&&/\btiny-pageembed\b/.test(Ae)},_t=De=>{let Ae=De;for(;Ae=Ae.parent;)if(Ae.attr("data-ephox-embed-iri")||tt(Ae))return!0;return!1},Do=De=>Ae=>{let wt=Ae.length,It;for(;wt--;)It=Ae[wt],It.parent&&(It.parent.attr("data-mce-object")||(Pa(It)&&Yo(De)?_t(It)||It.replace(Us(De,It)):_t(It)||It.replace($s(De,It))))},St=(De,Ae,wt)=>{const It=De.options.get,dn=It("xss_sanitization"),nn=$t(De);return Ie(De.schema,{sanitize:dn,validate:nn}).parse(wt,{context:Ae})},zr=De=>{De.on("PreInit",()=>{const{schema:Ae,serializer:wt,parser:It}=De,dn=Ae.getBoolAttrs();tn("webkitallowfullscreen mozallowfullscreen".split(" "),nn=>{dn[nn]={}}),co({embed:["wmode"]},(nn,sr)=>{const Vr=Ae.getElementRule(sr);Vr&&tn(nn,Br=>{Vr.attributes[Br]={},Vr.attributesOrder.push(Br)})}),It.addNodeFilter("iframe,video,audio,object,embed",Do(De)),wt.addAttributeFilter("data-mce-object",(nn,sr)=>{var Vr;let Br=nn.length;for(;Br--;){const Jo=nn[Br];if(!Jo.parent)continue;const Ce=Jo.attr(sr),Ne=new V(Ce,1);if(Ce!=="audio"){const rn=Jo.attr("class");rn&&rn.indexOf("mce-preview-object")!==-1&&Jo.firstChild?Ne.attr({width:Jo.firstChild.attr("width"),height:Jo.firstChild.attr("height")}):Ne.attr({width:Jo.attr("width"),height:Jo.attr("height")})}Ne.attr({style:Jo.attr("style")});const Zt=(Vr=Jo.attributes)!==null&&Vr!==void 0?Vr:[];let Lo=Zt.length;for(;Lo--;){const rn=Zt[Lo].name;rn.indexOf("data-mce-p-")===0&&Ne.attr(rn.substr(11),Zt[Lo].value)}const Ho=Jo.attr("data-mce-html");if(Ho){const rn=St(De,Ce,unescape(Ho));tn(rn.children(),Go=>Ne.append(Go))}Jo.replace(Ne)}})}),De.on("SetContent",()=>{const Ae=De.dom;tn(Ae.select("span.mce-preview-object"),wt=>{Ae.select("span.mce-shim",wt).length===0&&Ae.add(wt,"span",{class:"mce-shim"})})})},kr=De=>{De.on("ResolveName",Ae=>{let wt;Ae.target.nodeType===1&&(wt=Ae.target.getAttribute("data-mce-object"))&&(Ae.name=wt)})},Is=De=>Ae=>{const wt=()=>{Ae.setEnabled(De.selection.isEditable())};return De.on("NodeChange",wt),wt(),()=>{De.off("NodeChange",wt)}},Xr=De=>{const Ae=()=>De.execCommand("mceMedia");De.ui.registry.addToggleButton("media",{tooltip:"Insert/edit media",icon:"embed",onAction:Ae,onSetup:wt=>{const It=De.selection;wt.setActive(Me(It.getNode()));const dn=It.selectorChangedWithUnbind("img[data-mce-object],span[data-mce-object],div[data-ephox-embed-iri]",wt.setActive).unbind,nn=Is(De)(wt);return()=>{dn(),nn()}}}),De.ui.registry.addMenuItem("media",{icon:"embed",text:"Media...",onAction:Ae,onSetup:Is(De)})};var gr=()=>{xo.add("media",De=>(me(De),ln(De),Xr(De),kr(De),zr(De),at(De),Fn(De)))};gr()})();(function(){var xo=tinymce.util.Tools.resolve("tinymce.PluginManager");const Ko=he=>Dt=>typeof Dt===he,Io=Ko("boolean"),on=Ko("number"),Qo=he=>Dt=>Dt.options.get(he),io=he=>{const Dt=he.options.register;Dt("nonbreaking_force_tab",{processor:fo=>Io(fo)?{value:fo?3:0,valid:!0}:on(fo)?{value:fo,valid:!0}:{valid:!1,message:"Must be a boolean or number."},default:!1}),Dt("nonbreaking_wrap",{processor:"boolean",default:!0})},Po=Qo("nonbreaking_force_tab"),jt=Qo("nonbreaking_wrap"),ko=(he,Dt)=>{let fo="";for(let me=0;mehe.plugins.visualchars?he.plugins.visualchars.isEnabled():!1,jo=(he,Dt)=>{const fo=()=>Mo(he)?"mce-nbsp-wrap mce-nbsp":"mce-nbsp-wrap",me=()=>`${ko(" ",Dt)}`,de=jt(he)||he.plugins.visualchars?me():ko(" ",Dt);he.undoManager.transact(()=>he.insertContent(de))},tn=he=>{he.addCommand("mceNonBreaking",()=>{jo(he,1)})};var To=tinymce.util.Tools.resolve("tinymce.util.VK");const Ue=he=>{const Dt=Po(he);Dt>0&&he.on("keydown",fo=>{if(fo.keyCode===To.TAB&&!fo.isDefaultPrevented()){if(fo.shiftKey)return;fo.preventDefault(),fo.stopImmediatePropagation(),jo(he,Dt)}})},it=he=>Dt=>{const fo=()=>{Dt.setEnabled(he.selection.isEditable())};return he.on("NodeChange",fo),fo(),()=>{he.off("NodeChange",fo)}},So=he=>{const Dt=()=>he.execCommand("mceNonBreaking");he.ui.registry.addButton("nonbreaking",{icon:"non-breaking",tooltip:"Nonbreaking space",onAction:Dt,onSetup:it(he)}),he.ui.registry.addMenuItem("nonbreaking",{icon:"non-breaking",text:"Nonbreaking space",onAction:Dt,onSetup:it(he)})};var co=()=>{xo.add("nonbreaking",he=>{io(he),tn(he),So(he),Ue(he)})};co()})();(function(){var xo=tinymce.util.Tools.resolve("tinymce.PluginManager"),Ko=tinymce.util.Tools.resolve("tinymce.Env");const Io=it=>So=>So.options.get(it),on=it=>{const So=it.options.register;So("pagebreak_separator",{processor:"string",default:""}),So("pagebreak_split_block",{processor:"boolean",default:!1})},Qo=Io("pagebreak_separator"),io=Io("pagebreak_split_block"),Po="mce-pagebreak",jt=it=>{const So=``;return it?`

    ${So}

    `:So},ko=it=>{const So=Qo(it),co=()=>io(it),he=new RegExp(So.replace(/[\?\.\*\[\]\(\)\{\}\+\^\$\:]/g,Dt=>"\\"+Dt),"gi");it.on("BeforeSetContent",Dt=>{Dt.content=Dt.content.replace(he,jt(co()))}),it.on("PreInit",()=>{it.serializer.addNodeFilter("img",Dt=>{let fo=Dt.length,me,Ze;for(;fo--;)if(me=Dt[fo],Ze=me.attr("class"),Ze&&Ze.indexOf(Po)!==-1){const de=me.parent;if(de&&it.schema.getBlockElements()[de.name]&&co()){de.type=3,de.value=So,de.raw=!0,me.remove();continue}me.type=3,me.value=So,me.raw=!0}})})},Mo=it=>{it.addCommand("mcePageBreak",()=>{it.insertContent(jt(io(it)))})},jo=it=>{it.on("ResolveName",So=>{So.target.nodeName==="IMG"&&it.dom.hasClass(So.target,Po)&&(So.name="pagebreak")})},tn=it=>So=>{const co=()=>{So.setEnabled(it.selection.isEditable())};return it.on("NodeChange",co),co(),()=>{it.off("NodeChange",co)}},To=it=>{const So=()=>it.execCommand("mcePageBreak");it.ui.registry.addButton("pagebreak",{icon:"page-break",tooltip:"Page break",onAction:So,onSetup:tn(it)}),it.ui.registry.addMenuItem("pagebreak",{text:"Page break",icon:"page-break",onAction:So,onSetup:tn(it)})};var Ue=()=>{xo.add("pagebreak",it=>{on(it),Mo(it),To(it),ko(it),jo(it)})};Ue()})();(function(){var xo=tinymce.util.Tools.resolve("tinymce.PluginManager"),Ko=tinymce.util.Tools.resolve("tinymce.Env"),Io=tinymce.util.Tools.resolve("tinymce.util.Tools");const on=Ue=>it=>it.options.get(Ue),Qo=on("content_style"),io=on("content_css_cors"),Po=on("body_class"),jt=on("body_id"),ko=Ue=>{var it;let So="";const co=Ue.dom.encode,he=(it=Qo(Ue))!==null&&it!==void 0?it:"";So+='';const Dt=io(Ue)?' crossorigin="anonymous"':"";Io.each(Ue.contentCSS,gn=>{So+='"}),he&&(So+='");const fo=jt(Ue),me=Po(Ue),de=' + + + + + + +
    + + diff --git a/mockServiceWorker.js b/mockServiceWorker.js new file mode 100644 index 000000000..a2a607c3f --- /dev/null +++ b/mockServiceWorker.js @@ -0,0 +1,912 @@ +// ../../node_modules/.pnpm/outvariant@1.4.2/node_modules/outvariant/lib/index.mjs +var POSITIONALS_EXP = /(%?)(%([sdijo]))/g; +function serializePositional(positional, flag) { + switch (flag) { + case "s": + return positional; + case "d": + case "i": + return Number(positional); + case "j": + return JSON.stringify(positional); + case "o": { + if (typeof positional === "string") { + return positional; + } + const json = JSON.stringify(positional); + if (json === "{}" || json === "[]" || /^\[object .+?\]$/.test(json)) { + return positional; + } + return json; + } + } +} +function format(message, ...positionals) { + if (positionals.length === 0) { + return message; + } + let positionalIndex = 0; + let formattedMessage = message.replace( + POSITIONALS_EXP, + (match2, isEscaped, _, flag) => { + const positional = positionals[positionalIndex]; + const value = serializePositional(positional, flag); + if (!isEscaped) { + positionalIndex++; + return value; + } + return match2; + } + ); + if (positionalIndex < positionals.length) { + formattedMessage += ` ${positionals.slice(positionalIndex).join(" ")}`; + } + formattedMessage = formattedMessage.replace(/%{2,2}/g, "%"); + return formattedMessage; +} +var STACK_FRAMES_TO_IGNORE = 2; +function cleanErrorStack(error2) { + if (!error2.stack) { + return; + } + const nextStack = error2.stack.split("\n"); + nextStack.splice(1, STACK_FRAMES_TO_IGNORE); + error2.stack = nextStack.join("\n"); +} +var InvariantError = class extends Error { + constructor(message, ...positionals) { + super(message); + this.message = message; + this.name = "Invariant Violation"; + this.message = format(message, ...positionals); + cleanErrorStack(this); + } +}; +var invariant = (predicate, message, ...positionals) => { + if (!predicate) { + throw new InvariantError(message, ...positionals); + } +}; +invariant.as = (ErrorConstructor, predicate, message, ...positionals) => { + if (!predicate) { + const formatMessage2 = positionals.length === 0 ? message : format(message, positionals); + let error2; + try { + error2 = Reflect.construct(ErrorConstructor, [formatMessage2]); + } catch (err) { + error2 = ErrorConstructor(formatMessage2); + } + throw error2; + } +}; + +// ../../node_modules/.pnpm/msw@2.2.13_typescript@5.4.3/node_modules/msw/lib/core/utils/internal/devUtils.mjs +var LIBRARY_PREFIX = "[MSW]"; +function formatMessage(message, ...positionals) { + const interpolatedMessage = format(message, ...positionals); + return `${LIBRARY_PREFIX} ${interpolatedMessage}`; +} +function warn(message, ...positionals) { + console.warn(formatMessage(message, ...positionals)); +} +function error(message, ...positionals) { + console.error(formatMessage(message, ...positionals)); +} +var devUtils = { + formatMessage, + warn, + error +}; + +// ../../node_modules/.pnpm/msw@2.2.13_typescript@5.4.3/node_modules/msw/lib/core/utils/internal/checkGlobals.mjs +function checkGlobals() { + invariant( + typeof URL !== "undefined", + devUtils.formatMessage( + `Global "URL" class is not defined. This likely means that you're running MSW in an environment that doesn't support all Node.js standard API (e.g. React Native). If that's the case, please use an appropriate polyfill for the "URL" class, like "react-native-url-polyfill".` + ) + ); +} + +// ../../node_modules/.pnpm/strict-event-emitter@0.5.1/node_modules/strict-event-emitter/lib/index.mjs +var MemoryLeakError = class extends Error { + constructor(emitter, type, count) { + super( + `Possible EventEmitter memory leak detected. ${count} ${type.toString()} listeners added. Use emitter.setMaxListeners() to increase limit` + ); + this.emitter = emitter; + this.type = type; + this.count = count; + this.name = "MaxListenersExceededWarning"; + } +}; +var _Emitter = class { + static listenerCount(emitter, eventName) { + return emitter.listenerCount(eventName); + } + constructor() { + this.events = /* @__PURE__ */ new Map(); + this.maxListeners = _Emitter.defaultMaxListeners; + this.hasWarnedAboutPotentialMemoryLeak = false; + } + _emitInternalEvent(internalEventName, eventName, listener) { + this.emit( + internalEventName, + ...[eventName, listener] + ); + } + _getListeners(eventName) { + return Array.prototype.concat.apply([], this.events.get(eventName)) || []; + } + _removeListener(listeners, listener) { + const index = listeners.indexOf(listener); + if (index > -1) { + listeners.splice(index, 1); + } + return []; + } + _wrapOnceListener(eventName, listener) { + const onceListener = (...data) => { + this.removeListener(eventName, onceListener); + return listener.apply(this, data); + }; + Object.defineProperty(onceListener, "name", { value: listener.name }); + return onceListener; + } + setMaxListeners(maxListeners) { + this.maxListeners = maxListeners; + return this; + } + /** + * Returns the current max listener value for the `Emitter` which is + * either set by `emitter.setMaxListeners(n)` or defaults to + * `Emitter.defaultMaxListeners`. + */ + getMaxListeners() { + return this.maxListeners; + } + /** + * Returns an array listing the events for which the emitter has registered listeners. + * The values in the array will be strings or Symbols. + */ + eventNames() { + return Array.from(this.events.keys()); + } + /** + * Synchronously calls each of the listeners registered for the event named `eventName`, + * in the order they were registered, passing the supplied arguments to each. + * Returns `true` if the event has listeners, `false` otherwise. + * + * @example + * const emitter = new Emitter<{ hello: [string] }>() + * emitter.emit('hello', 'John') + */ + emit(eventName, ...data) { + const listeners = this._getListeners(eventName); + listeners.forEach((listener) => { + listener.apply(this, data); + }); + return listeners.length > 0; + } + addListener(eventName, listener) { + this._emitInternalEvent("newListener", eventName, listener); + const nextListeners = this._getListeners(eventName).concat(listener); + this.events.set(eventName, nextListeners); + if (this.maxListeners > 0 && this.listenerCount(eventName) > this.maxListeners && !this.hasWarnedAboutPotentialMemoryLeak) { + this.hasWarnedAboutPotentialMemoryLeak = true; + const memoryLeakWarning = new MemoryLeakError( + this, + eventName, + this.listenerCount(eventName) + ); + console.warn(memoryLeakWarning); + } + return this; + } + on(eventName, listener) { + return this.addListener(eventName, listener); + } + once(eventName, listener) { + return this.addListener( + eventName, + this._wrapOnceListener(eventName, listener) + ); + } + prependListener(eventName, listener) { + const listeners = this._getListeners(eventName); + if (listeners.length > 0) { + const nextListeners = [listener].concat(listeners); + this.events.set(eventName, nextListeners); + } else { + this.events.set(eventName, listeners.concat(listener)); + } + return this; + } + prependOnceListener(eventName, listener) { + return this.prependListener( + eventName, + this._wrapOnceListener(eventName, listener) + ); + } + removeListener(eventName, listener) { + const listeners = this._getListeners(eventName); + if (listeners.length > 0) { + this._removeListener(listeners, listener); + this.events.set(eventName, listeners); + this._emitInternalEvent("removeListener", eventName, listener); + } + return this; + } + /** + * Alias for `emitter.removeListener()`. + * + * @example + * emitter.off('hello', listener) + */ + off(eventName, listener) { + return this.removeListener(eventName, listener); + } + removeAllListeners(eventName) { + if (eventName) { + this.events.delete(eventName); + } else { + this.events.clear(); + } + return this; + } + /** + * Returns a copy of the array of listeners for the event named `eventName`. + */ + listeners(eventName) { + return Array.from(this._getListeners(eventName)); + } + /** + * Returns the number of listeners listening to the event named `eventName`. + */ + listenerCount(eventName) { + return this._getListeners(eventName).length; + } + rawListeners(eventName) { + return this.listeners(eventName); + } +}; +var Emitter = _Emitter; +Emitter.defaultMaxListeners = 10; + +// ../../node_modules/.pnpm/path-to-regexp@6.2.1/node_modules/path-to-regexp/dist.es2015/index.js +function lexer(str) { + var tokens = []; + var i = 0; + while (i < str.length) { + var char = str[i]; + if (char === "*" || char === "+" || char === "?") { + tokens.push({ type: "MODIFIER", index: i, value: str[i++] }); + continue; + } + if (char === "\\") { + tokens.push({ type: "ESCAPED_CHAR", index: i++, value: str[i++] }); + continue; + } + if (char === "{") { + tokens.push({ type: "OPEN", index: i, value: str[i++] }); + continue; + } + if (char === "}") { + tokens.push({ type: "CLOSE", index: i, value: str[i++] }); + continue; + } + if (char === ":") { + var name = ""; + var j = i + 1; + while (j < str.length) { + var code = str.charCodeAt(j); + if ( + // `0-9` + code >= 48 && code <= 57 || // `A-Z` + code >= 65 && code <= 90 || // `a-z` + code >= 97 && code <= 122 || // `_` + code === 95 + ) { + name += str[j++]; + continue; + } + break; + } + if (!name) + throw new TypeError("Missing parameter name at ".concat(i)); + tokens.push({ type: "NAME", index: i, value: name }); + i = j; + continue; + } + if (char === "(") { + var count = 1; + var pattern = ""; + var j = i + 1; + if (str[j] === "?") { + throw new TypeError('Pattern cannot start with "?" at '.concat(j)); + } + while (j < str.length) { + if (str[j] === "\\") { + pattern += str[j++] + str[j++]; + continue; + } + if (str[j] === ")") { + count--; + if (count === 0) { + j++; + break; + } + } else if (str[j] === "(") { + count++; + if (str[j + 1] !== "?") { + throw new TypeError("Capturing groups are not allowed at ".concat(j)); + } + } + pattern += str[j++]; + } + if (count) + throw new TypeError("Unbalanced pattern at ".concat(i)); + if (!pattern) + throw new TypeError("Missing pattern at ".concat(i)); + tokens.push({ type: "PATTERN", index: i, value: pattern }); + i = j; + continue; + } + tokens.push({ type: "CHAR", index: i, value: str[i++] }); + } + tokens.push({ type: "END", index: i, value: "" }); + return tokens; +} +function parse(str, options) { + if (options === void 0) { + options = {}; + } + var tokens = lexer(str); + var _a = options.prefixes, prefixes = _a === void 0 ? "./" : _a; + var defaultPattern = "[^".concat(escapeString(options.delimiter || "/#?"), "]+?"); + var result = []; + var key = 0; + var i = 0; + var path = ""; + var tryConsume = function(type) { + if (i < tokens.length && tokens[i].type === type) + return tokens[i++].value; + }; + var mustConsume = function(type) { + var value2 = tryConsume(type); + if (value2 !== void 0) + return value2; + var _a2 = tokens[i], nextType = _a2.type, index = _a2.index; + throw new TypeError("Unexpected ".concat(nextType, " at ").concat(index, ", expected ").concat(type)); + }; + var consumeText = function() { + var result2 = ""; + var value2; + while (value2 = tryConsume("CHAR") || tryConsume("ESCAPED_CHAR")) { + result2 += value2; + } + return result2; + }; + while (i < tokens.length) { + var char = tryConsume("CHAR"); + var name = tryConsume("NAME"); + var pattern = tryConsume("PATTERN"); + if (name || pattern) { + var prefix = char || ""; + if (prefixes.indexOf(prefix) === -1) { + path += prefix; + prefix = ""; + } + if (path) { + result.push(path); + path = ""; + } + result.push({ + name: name || key++, + prefix, + suffix: "", + pattern: pattern || defaultPattern, + modifier: tryConsume("MODIFIER") || "" + }); + continue; + } + var value = char || tryConsume("ESCAPED_CHAR"); + if (value) { + path += value; + continue; + } + if (path) { + result.push(path); + path = ""; + } + var open = tryConsume("OPEN"); + if (open) { + var prefix = consumeText(); + var name_1 = tryConsume("NAME") || ""; + var pattern_1 = tryConsume("PATTERN") || ""; + var suffix = consumeText(); + mustConsume("CLOSE"); + result.push({ + name: name_1 || (pattern_1 ? key++ : ""), + pattern: name_1 && !pattern_1 ? defaultPattern : pattern_1, + prefix, + suffix, + modifier: tryConsume("MODIFIER") || "" + }); + continue; + } + mustConsume("END"); + } + return result; +} +function match(str, options) { + var keys = []; + var re = pathToRegexp(str, keys, options); + return regexpToFunction(re, keys, options); +} +function regexpToFunction(re, keys, options) { + if (options === void 0) { + options = {}; + } + var _a = options.decode, decode = _a === void 0 ? function(x) { + return x; + } : _a; + return function(pathname) { + var m = re.exec(pathname); + if (!m) + return false; + var path = m[0], index = m.index; + var params = /* @__PURE__ */ Object.create(null); + var _loop_1 = function(i2) { + if (m[i2] === void 0) + return "continue"; + var key = keys[i2 - 1]; + if (key.modifier === "*" || key.modifier === "+") { + params[key.name] = m[i2].split(key.prefix + key.suffix).map(function(value) { + return decode(value, key); + }); + } else { + params[key.name] = decode(m[i2], key); + } + }; + for (var i = 1; i < m.length; i++) { + _loop_1(i); + } + return { path, index, params }; + }; +} +function escapeString(str) { + return str.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1"); +} +function flags(options) { + return options && options.sensitive ? "" : "i"; +} +function regexpToRegexp(path, keys) { + if (!keys) + return path; + var groupsRegex = /\((?:\?<(.*?)>)?(?!\?)/g; + var index = 0; + var execResult = groupsRegex.exec(path.source); + while (execResult) { + keys.push({ + // Use parenthesized substring match if available, index otherwise + name: execResult[1] || index++, + prefix: "", + suffix: "", + modifier: "", + pattern: "" + }); + execResult = groupsRegex.exec(path.source); + } + return path; +} +function arrayToRegexp(paths, keys, options) { + var parts = paths.map(function(path) { + return pathToRegexp(path, keys, options).source; + }); + return new RegExp("(?:".concat(parts.join("|"), ")"), flags(options)); +} +function stringToRegexp(path, keys, options) { + return tokensToRegexp(parse(path, options), keys, options); +} +function tokensToRegexp(tokens, keys, options) { + if (options === void 0) { + options = {}; + } + var _a = options.strict, strict = _a === void 0 ? false : _a, _b = options.start, start = _b === void 0 ? true : _b, _c = options.end, end = _c === void 0 ? true : _c, _d = options.encode, encode = _d === void 0 ? function(x) { + return x; + } : _d, _e = options.delimiter, delimiter = _e === void 0 ? "/#?" : _e, _f = options.endsWith, endsWith = _f === void 0 ? "" : _f; + var endsWithRe = "[".concat(escapeString(endsWith), "]|$"); + var delimiterRe = "[".concat(escapeString(delimiter), "]"); + var route = start ? "^" : ""; + for (var _i = 0, tokens_1 = tokens; _i < tokens_1.length; _i++) { + var token = tokens_1[_i]; + if (typeof token === "string") { + route += escapeString(encode(token)); + } else { + var prefix = escapeString(encode(token.prefix)); + var suffix = escapeString(encode(token.suffix)); + if (token.pattern) { + if (keys) + keys.push(token); + if (prefix || suffix) { + if (token.modifier === "+" || token.modifier === "*") { + var mod = token.modifier === "*" ? "?" : ""; + route += "(?:".concat(prefix, "((?:").concat(token.pattern, ")(?:").concat(suffix).concat(prefix, "(?:").concat(token.pattern, "))*)").concat(suffix, ")").concat(mod); + } else { + route += "(?:".concat(prefix, "(").concat(token.pattern, ")").concat(suffix, ")").concat(token.modifier); + } + } else { + if (token.modifier === "+" || token.modifier === "*") { + route += "((?:".concat(token.pattern, ")").concat(token.modifier, ")"); + } else { + route += "(".concat(token.pattern, ")").concat(token.modifier); + } + } + } else { + route += "(?:".concat(prefix).concat(suffix, ")").concat(token.modifier); + } + } + } + if (end) { + if (!strict) + route += "".concat(delimiterRe, "?"); + route += !options.endsWith ? "$" : "(?=".concat(endsWithRe, ")"); + } else { + var endToken = tokens[tokens.length - 1]; + var isEndDelimited = typeof endToken === "string" ? delimiterRe.indexOf(endToken[endToken.length - 1]) > -1 : endToken === void 0; + if (!strict) { + route += "(?:".concat(delimiterRe, "(?=").concat(endsWithRe, "))?"); + } + if (!isEndDelimited) { + route += "(?=".concat(delimiterRe, "|").concat(endsWithRe, ")"); + } + } + return new RegExp(route, flags(options)); +} +function pathToRegexp(path, keys, options) { + if (path instanceof RegExp) + return regexpToRegexp(path, keys); + if (Array.isArray(path)) + return arrayToRegexp(path, keys, options); + return stringToRegexp(path, keys, options); +} + +// ../../node_modules/.pnpm/@mswjs+interceptors@0.26.15/node_modules/@mswjs/interceptors/lib/browser/chunk-UJZOJSMP.mjs +var encoder = new TextEncoder(); + +// ../../node_modules/.pnpm/@mswjs+interceptors@0.26.15/node_modules/@mswjs/interceptors/lib/browser/chunk-HAGW22AN.mjs +var IS_PATCHED_MODULE = Symbol("isPatchedModule"); + +// ../../node_modules/.pnpm/is-node-process@1.2.0/node_modules/is-node-process/lib/index.mjs +function isNodeProcess() { + if (typeof navigator !== "undefined" && navigator.product === "ReactNative") { + return true; + } + if (typeof process !== "undefined") { + const type = process.type; + if (type === "renderer" || type === "worker") { + return false; + } + return !!(process.versions && process.versions.node); + } + return false; +} + +// ../../node_modules/.pnpm/@open-draft+logger@0.3.0/node_modules/@open-draft/logger/lib/index.mjs +var __defProp = Object.defineProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var colors_exports = {}; +__export(colors_exports, { + blue: () => blue, + gray: () => gray, + green: () => green, + red: () => red, + yellow: () => yellow +}); +function yellow(text) { + return `\x1B[33m${text}\x1B[0m`; +} +function blue(text) { + return `\x1B[34m${text}\x1B[0m`; +} +function gray(text) { + return `\x1B[90m${text}\x1B[0m`; +} +function red(text) { + return `\x1B[31m${text}\x1B[0m`; +} +function green(text) { + return `\x1B[32m${text}\x1B[0m`; +} +var IS_NODE = isNodeProcess(); + +// ../../node_modules/.pnpm/@mswjs+interceptors@0.26.15/node_modules/@mswjs/interceptors/lib/browser/index.mjs +function getCleanUrl(url, isAbsolute = true) { + return [isAbsolute && url.origin, url.pathname].filter(Boolean).join(""); +} + +// ../../node_modules/.pnpm/msw@2.2.13_typescript@5.4.3/node_modules/msw/lib/core/utils/url/cleanUrl.mjs +var REDUNDANT_CHARACTERS_EXP = /[\?|#].*$/g; +function cleanUrl(path) { + return path.replace(REDUNDANT_CHARACTERS_EXP, ""); +} + +// ../../node_modules/.pnpm/msw@2.2.13_typescript@5.4.3/node_modules/msw/lib/core/utils/url/isAbsoluteUrl.mjs +function isAbsoluteUrl(url) { + return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url); +} + +// ../../node_modules/.pnpm/msw@2.2.13_typescript@5.4.3/node_modules/msw/lib/core/utils/url/getAbsoluteUrl.mjs +function getAbsoluteUrl(path, baseUrl) { + if (isAbsoluteUrl(path)) { + return path; + } + if (path.startsWith("*")) { + return path; + } + const origin = baseUrl || typeof document !== "undefined" && document.baseURI; + return origin ? ( + // Encode and decode the path to preserve escaped characters. + decodeURI(new URL(encodeURI(path), origin).href) + ) : path; +} + +// ../../node_modules/.pnpm/msw@2.2.13_typescript@5.4.3/node_modules/msw/lib/core/utils/matching/normalizePath.mjs +function normalizePath(path, baseUrl) { + if (path instanceof RegExp) { + return path; + } + const maybeAbsoluteUrl = getAbsoluteUrl(path, baseUrl); + return cleanUrl(maybeAbsoluteUrl); +} + +// ../../node_modules/.pnpm/msw@2.2.13_typescript@5.4.3/node_modules/msw/lib/core/utils/matching/matchRequestUrl.mjs +function coercePath(path) { + return path.replace( + /([:a-zA-Z_-]*)(\*{1,2})+/g, + (_, parameterName, wildcard) => { + const expression = "(.*)"; + if (!parameterName) { + return expression; + } + return parameterName.startsWith(":") ? `${parameterName}${wildcard}` : `${parameterName}${expression}`; + } + ).replace(/([^\/])(:)(?=\d+)/, "$1\\$2").replace(/^([^\/]+)(:)(?=\/\/)/, "$1\\$2"); +} +function matchRequestUrl(url, path, baseUrl) { + const normalizedPath = normalizePath(path, baseUrl); + const cleanPath = typeof normalizedPath === "string" ? coercePath(normalizedPath) : normalizedPath; + const cleanUrl2 = getCleanUrl(url); + const result = match(cleanPath, { decode: decodeURIComponent })(cleanUrl2); + const params = result && result.params || {}; + return { + matches: result !== false, + params + }; +} + +// ../../node_modules/.pnpm/msw@2.2.13_typescript@5.4.3/node_modules/msw/lib/core/index.mjs +checkGlobals(); + +// src/utils/isMatchHandler.ts +var isStringEqual = (actual, expected) => { + return actual.toLowerCase() === expected.toLowerCase(); +}; +var matchMethod = (method, actualMethod) => { + return method instanceof RegExp ? method.test(actualMethod) : isStringEqual(method, actualMethod); +}; +var isMatchHandler = (request) => { + const url = new URL(request.url); + const mockHeaders = globalThis.mockHeaders || []; + return mockHeaders.some((n) => { + const [method, path] = n.split(" "); + const hasMatchingMethod = matchMethod(method, request.method); + const hasMatchingUrl = matchRequestUrl(url, path, url.origin).matches; + return hasMatchingMethod && hasMatchingUrl; + }); +}; + +// src/mockServiceWorker.js +var PACKAGE_VERSION = "2.2.13"; +var INTEGRITY_CHECKSUM = "26357c79639bfa20d64c0efca2a87423"; +var IS_MOCKED_RESPONSE = Symbol("isMockedResponse"); +var activeClientIds = /* @__PURE__ */ new Set(); +self.addEventListener("install", function() { + self.skipWaiting(); +}); +self.addEventListener("activate", function(event) { + event.waitUntil(self.clients.claim()); +}); +self.addEventListener("message", async function(event) { + if (event.data?.type === "updateMockHeaders") { + globalThis.mockHeaders = event.data.mockHeaders || []; + } + const clientId = event.source.id; + if (!clientId || !self.clients) { + return; + } + const client = await self.clients.get(clientId); + if (!client) { + return; + } + const allClients = await self.clients.matchAll({ + type: "window" + }); + switch (event.data) { + case "KEEPALIVE_REQUEST": { + sendToClient(client, { + type: "KEEPALIVE_RESPONSE" + }); + break; + } + case "INTEGRITY_CHECK_REQUEST": { + sendToClient(client, { + type: "INTEGRITY_CHECK_RESPONSE", + payload: { + packageVersion: PACKAGE_VERSION, + checksum: INTEGRITY_CHECKSUM + } + }); + break; + } + case "MOCK_ACTIVATE": { + activeClientIds.add(clientId); + sendToClient(client, { + type: "MOCKING_ENABLED", + payload: true + }); + break; + } + case "MOCK_DEACTIVATE": { + activeClientIds.delete(clientId); + break; + } + case "CLIENT_CLOSED": { + activeClientIds.delete(clientId); + const remainingClients = allClients.filter((client2) => { + return client2.id !== clientId; + }); + if (remainingClients.length === 0) { + self.registration.unregister(); + } + break; + } + } +}); +self.addEventListener("fetch", function(event) { + const { request } = event; + const isMockRequest = isMatchHandler(request); + if (isMockRequest === false) { + return; + } + if (request.mode === "navigate") { + return; + } + if (request.cache === "only-if-cached" && request.mode !== "same-origin") { + return; + } + if (activeClientIds.size === 0) { + return; + } + const requestId = crypto.randomUUID(); + event.respondWith(handleRequest(event, requestId)); +}); +async function handleRequest(event, requestId) { + const client = await resolveMainClient(event); + const response = await getResponse(event, client, requestId); + if (client && activeClientIds.has(client.id)) { + ; + (async function() { + const responseClone = response.clone(); + sendToClient( + client, + { + type: "RESPONSE", + payload: { + requestId, + isMockedResponse: IS_MOCKED_RESPONSE in response, + type: responseClone.type, + status: responseClone.status, + statusText: responseClone.statusText, + body: responseClone.body, + headers: Object.fromEntries(responseClone.headers.entries()) + } + }, + [responseClone.body] + ); + })(); + } + return response; +} +async function resolveMainClient(event) { + const client = await self.clients.get(event.clientId); + if (client?.frameType === "top-level") { + return client; + } + const allClients = await self.clients.matchAll({ + type: "window" + }); + return allClients.filter((client2) => { + return client2.visibilityState === "visible"; + }).find((client2) => { + return activeClientIds.has(client2.id); + }); +} +async function getResponse(event, client, requestId) { + const { request } = event; + const requestClone = request.clone(); + function passthrough() { + const headers = Object.fromEntries(requestClone.headers.entries()); + delete headers["x-msw-intention"]; + return fetch(requestClone, { headers }); + } + if (!client) { + return passthrough(); + } + if (!activeClientIds.has(client.id)) { + return passthrough(); + } + const requestBuffer = await request.arrayBuffer(); + const clientMessage = await sendToClient( + client, + { + type: "REQUEST", + payload: { + id: requestId, + url: request.url, + mode: request.mode, + method: request.method, + headers: Object.fromEntries(request.headers.entries()), + cache: request.cache, + credentials: request.credentials, + destination: request.destination, + integrity: request.integrity, + redirect: request.redirect, + referrer: request.referrer, + referrerPolicy: request.referrerPolicy, + body: requestBuffer, + keepalive: request.keepalive + } + }, + [requestBuffer] + ); + switch (clientMessage.type) { + case "MOCK_RESPONSE": { + return respondWithMock(clientMessage.data); + } + case "PASSTHROUGH": { + return passthrough(); + } + } + return passthrough(); +} +function sendToClient(client, message, transferrables = []) { + return new Promise((resolve, reject) => { + const channel = new MessageChannel(); + channel.port1.onmessage = (event) => { + if (event.data && event.data.error) { + return reject(event.data.error); + } + resolve(event.data); + }; + client.postMessage( + message, + [channel.port2].concat(transferrables.filter(Boolean)) + ); + }); +} +async function respondWithMock(response) { + if (response.status === 0) { + return Response.error(); + } + const mockedResponse = new Response(response.body, response); + Reflect.defineProperty(mockedResponse, IS_MOCKED_RESPONSE, { + value: true, + enumerable: true + }); + return mockedResponse; +} diff --git a/tinymce-resource/skins/content/default/content.css b/tinymce-resource/skins/content/default/content.css new file mode 100644 index 000000000..751778739 --- /dev/null +++ b/tinymce-resource/skins/content/default/content.css @@ -0,0 +1,61 @@ +body { + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; + line-height: 1.4; + margin: 1rem; +} +table { + border-collapse: collapse; +} +/* Apply a default padding if legacy cellpadding attribute is missing */ +table:not([cellpadding]) th, +table:not([cellpadding]) td { + padding: 0.4rem; +} +/* Set default table styles if a table has a positive border attribute + and no inline css */ +table[border]:not([border="0"]):not([style*="border-width"]) th, +table[border]:not([border="0"]):not([style*="border-width"]) td { + border-width: 1px; +} +/* Set default table styles if a table has a positive border attribute + and no inline css */ +table[border]:not([border="0"]):not([style*="border-style"]) th, +table[border]:not([border="0"]):not([style*="border-style"]) td { + border-style: solid; +} +/* Set default table styles if a table has a positive border attribute + and no inline css */ +table[border]:not([border="0"]):not([style*="border-color"]) th, +table[border]:not([border="0"]):not([style*="border-color"]) td { + border-color: #ccc; +} +figure { + display: table; + margin: 1rem auto; +} +figure figcaption { + color: #999; + display: block; + margin-top: 0.25rem; + text-align: center; +} +hr { + border-color: #ccc; + border-style: solid; + border-width: 1px 0 0 0; +} +code { + background-color: #e8e8e8; + border-radius: 3px; + padding: 0.1rem 0.2rem; +} +.mce-content-body:not([dir=rtl]) blockquote { + border-left: 2px solid #ccc; + margin-left: 1.5rem; + padding-left: 1rem; +} +.mce-content-body[dir=rtl] blockquote { + border-right: 2px solid #ccc; + margin-right: 1.5rem; + padding-right: 1rem; +} diff --git a/tinymce-resource/skins/content/default/content.js b/tinymce-resource/skins/content/default/content.js new file mode 100644 index 000000000..37724029d --- /dev/null +++ b/tinymce-resource/skins/content/default/content.js @@ -0,0 +1,2 @@ +tinymce.Resource.add('content/default/content.css', "body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Open Sans','Helvetica Neue',sans-serif;line-height:1.4;margin:1rem}table{border-collapse:collapse}table:not([cellpadding]) td,table:not([cellpadding]) th{padding:.4rem}table[border]:not([border=\"0\"]):not([style*=border-width]) td,table[border]:not([border=\"0\"]):not([style*=border-width]) th{border-width:1px}table[border]:not([border=\"0\"]):not([style*=border-style]) td,table[border]:not([border=\"0\"]):not([style*=border-style]) th{border-style:solid}table[border]:not([border=\"0\"]):not([style*=border-color]) td,table[border]:not([border=\"0\"]):not([style*=border-color]) th{border-color:#ccc}figure{display:table;margin:1rem auto}figure figcaption{color:#999;display:block;margin-top:.25rem;text-align:center}hr{border-color:#ccc;border-style:solid;border-width:1px 0 0 0}code{background-color:#e8e8e8;border-radius:3px;padding:.1rem .2rem}.mce-content-body:not([dir=rtl]) blockquote{border-left:2px solid #ccc;margin-left:1.5rem;padding-left:1rem}.mce-content-body[dir=rtl] blockquote{border-right:2px solid #ccc;margin-right:1.5rem;padding-right:1rem}") +//# sourceMappingURL=content.js.map diff --git a/tinymce-resource/skins/content/default/content.min.css b/tinymce-resource/skins/content/default/content.min.css new file mode 100644 index 000000000..54bb28d43 --- /dev/null +++ b/tinymce-resource/skins/content/default/content.min.css @@ -0,0 +1 @@ +body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Open Sans','Helvetica Neue',sans-serif;line-height:1.4;margin:1rem}table{border-collapse:collapse}table:not([cellpadding]) td,table:not([cellpadding]) th{padding:.4rem}table[border]:not([border="0"]):not([style*=border-width]) td,table[border]:not([border="0"]):not([style*=border-width]) th{border-width:1px}table[border]:not([border="0"]):not([style*=border-style]) td,table[border]:not([border="0"]):not([style*=border-style]) th{border-style:solid}table[border]:not([border="0"]):not([style*=border-color]) td,table[border]:not([border="0"]):not([style*=border-color]) th{border-color:#ccc}figure{display:table;margin:1rem auto}figure figcaption{color:#999;display:block;margin-top:.25rem;text-align:center}hr{border-color:#ccc;border-style:solid;border-width:1px 0 0 0}code{background-color:#e8e8e8;border-radius:3px;padding:.1rem .2rem}.mce-content-body:not([dir=rtl]) blockquote{border-left:2px solid #ccc;margin-left:1.5rem;padding-left:1rem}.mce-content-body[dir=rtl] blockquote{border-right:2px solid #ccc;margin-right:1.5rem;padding-right:1rem} diff --git a/tinymce-resource/skins/ui/oxide-dark/content.css b/tinymce-resource/skins/ui/oxide-dark/content.css new file mode 100644 index 000000000..e078ac9f2 --- /dev/null +++ b/tinymce-resource/skins/ui/oxide-dark/content.css @@ -0,0 +1,766 @@ +.mce-content-body .mce-item-anchor { + background: transparent url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D'8'%20height%3D'12'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20d%3D'M0%200L8%200%208%2012%204.09117821%209%200%2012z'%20fill%3D%22%23cccccc%22%2F%3E%3C%2Fsvg%3E%0A") no-repeat center; +} +.mce-content-body .mce-item-anchor:empty { + cursor: default; + display: inline-block; + height: 12px !important; + padding: 0 2px; + -webkit-user-modify: read-only; + -moz-user-modify: read-only; + -webkit-user-select: all; + -moz-user-select: all; + user-select: all; + width: 8px !important; +} +.mce-content-body .mce-item-anchor:not(:empty) { + background-position-x: 2px; + display: inline-block; + padding-left: 12px; +} +.mce-content-body .mce-item-anchor[data-mce-selected] { + outline-offset: 1px; +} +.tox-comments-visible .tox-comment[contenteditable="false"]:not([data-mce-selected]), +.tox-comments-visible span.tox-comment img:not([data-mce-selected]), +.tox-comments-visible span.tox-comment > audio:not([data-mce-selected]), +.tox-comments-visible span.tox-comment > video:not([data-mce-selected]), +.tox-comments-visible span.tox-comment span.mce-preview-object:not([data-mce-selected]) { + outline: 3px solid #ffe89d; +} +.tox-comments-visible .tox-comment[contenteditable="false"][data-mce-annotation-active="true"]:not([data-mce-selected]) { + outline: 3px solid #fed635; +} +.tox-comments-visible span.tox-comment[data-mce-annotation-active="true"] img:not([data-mce-selected]), +.tox-comments-visible span.tox-comment[data-mce-annotation-active="true"] > audio:not([data-mce-selected]), +.tox-comments-visible span.tox-comment[data-mce-annotation-active="true"] > video:not([data-mce-selected]), +.tox-comments-visible span.tox-comment[data-mce-annotation-active="true"] span.mce-preview-object:not([data-mce-selected]) { + outline: 3px solid #fed635; +} +.tox-comments-visible span.tox-comment:not([data-mce-selected]) { + background-color: #ffe89d; + outline: none; +} +.tox-comments-visible span.tox-comment[data-mce-annotation-active="true"]:not([data-mce-selected="inline-boundary"]) { + background-color: #fed635; +} +.tox-checklist > li:not(.tox-checklist--hidden) { + list-style: none; + margin: 0.25em 0; +} +.tox-checklist > li:not(.tox-checklist--hidden)::before { + content: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cg%20id%3D%22checklist-unchecked%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Crect%20id%3D%22Rectangle%22%20width%3D%2215%22%20height%3D%2215%22%20x%3D%22.5%22%20y%3D%22.5%22%20fill-rule%3D%22nonzero%22%20stroke%3D%22%236d737b%22%20rx%3D%222%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%0A"); + cursor: pointer; + height: 1em; + margin-left: -1.5em; + margin-top: 0.125em; + position: absolute; + width: 1em; +} +.tox-checklist li:not(.tox-checklist--hidden).tox-checklist--checked::before { + content: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cg%20id%3D%22checklist-checked%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Crect%20id%3D%22Rectangle%22%20width%3D%2216%22%20height%3D%2216%22%20fill%3D%22%234099FF%22%20fill-rule%3D%22nonzero%22%20rx%3D%222%22%2F%3E%3Cpath%20id%3D%22Path%22%20fill%3D%22%23FFF%22%20fill-rule%3D%22nonzero%22%20d%3D%22M11.5703186%2C3.14417309%20C11.8516238%2C2.73724603%2012.4164781%2C2.62829933%2012.83558%2C2.89774797%20C13.260121%2C3.17069355%2013.3759736%2C3.72932262%2013.0909105%2C4.14168582%20L7.7580587%2C11.8560195%20C7.43776896%2C12.3193404%206.76483983%2C12.3852142%206.35607322%2C11.9948725%20L3.02491697%2C8.8138662%20C2.66090143%2C8.46625845%202.65798871%2C7.89594698%203.01850234%2C7.54483354%20C3.373942%2C7.19866177%203.94940006%2C7.19592841%204.30829608%2C7.5386474%20L6.85276923%2C9.9684299%20L11.5703186%2C3.14417309%20Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%0A"); +} +[dir=rtl] .tox-checklist > li:not(.tox-checklist--hidden)::before { + margin-left: 0; + margin-right: -1.5em; +} +/* stylelint-disable */ +/* http://prismjs.com/ */ +/** + * Dracula Theme originally by Zeno Rocha [@zenorocha] + * https://draculatheme.com/ + * + * Ported for PrismJS by Albert Vallverdu [@byverdu] + */ +code[class*="language-"], +pre[class*="language-"] { + color: #f8f8f2; + background: none; + text-shadow: 0 1px rgba(0, 0, 0, 0.3); + font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; + text-align: left; + white-space: pre; + word-spacing: normal; + word-break: normal; + word-wrap: normal; + line-height: 1.5; + -moz-tab-size: 4; + tab-size: 4; + -webkit-hyphens: none; + hyphens: none; +} +/* Code blocks */ +pre[class*="language-"] { + padding: 1em; + margin: 0.5em 0; + overflow: auto; + border-radius: 0.3em; +} +:not(pre) > code[class*="language-"], +pre[class*="language-"] { + background: #282a36; +} +/* Inline code */ +:not(pre) > code[class*="language-"] { + padding: 0.1em; + border-radius: 0.3em; + white-space: normal; +} +.token.comment, +.token.prolog, +.token.doctype, +.token.cdata { + color: #6272a4; +} +.token.punctuation { + color: #f8f8f2; +} +.namespace { + opacity: 0.7; +} +.token.property, +.token.tag, +.token.constant, +.token.symbol, +.token.deleted { + color: #ff79c6; +} +.token.boolean, +.token.number { + color: #bd93f9; +} +.token.selector, +.token.attr-name, +.token.string, +.token.char, +.token.builtin, +.token.inserted { + color: #50fa7b; +} +.token.operator, +.token.entity, +.token.url, +.language-css .token.string, +.style .token.string, +.token.variable { + color: #f8f8f2; +} +.token.atrule, +.token.attr-value, +.token.function, +.token.class-name { + color: #f1fa8c; +} +.token.keyword { + color: #8be9fd; +} +.token.regex, +.token.important { + color: #ffb86c; +} +.token.important, +.token.bold { + font-weight: bold; +} +.token.italic { + font-style: italic; +} +.token.entity { + cursor: help; +} +/* stylelint-enable */ +.mce-content-body { + overflow-wrap: break-word; + word-wrap: break-word; +} +.mce-content-body .mce-visual-caret { + background-color: black; + background-color: currentColor; + position: absolute; +} +.mce-content-body .mce-visual-caret-hidden { + display: none; +} +.mce-content-body *[data-mce-caret] { + left: -1000px; + margin: 0; + padding: 0; + position: absolute; + right: auto; + top: 0; +} +.mce-content-body .mce-offscreen-selection { + left: -2000000px; + max-width: 1000000px; + position: absolute; +} +.mce-content-body *[contentEditable=false] { + cursor: default; +} +.mce-content-body *[contentEditable=true] { + cursor: text; +} +.tox-cursor-format-painter { + cursor: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%0A%20%20%3Cg%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%0A%20%20%20%20%3Cpath%20fill%3D%22%23000%22%20fill-rule%3D%22nonzero%22%20d%3D%22M15%2C6%20C15%2C5.45%2014.55%2C5%2014%2C5%20L6%2C5%20C5.45%2C5%205%2C5.45%205%2C6%20L5%2C10%20C5%2C10.55%205.45%2C11%206%2C11%20L14%2C11%20C14.55%2C11%2015%2C10.55%2015%2C10%20L15%2C9%20L16%2C9%20L16%2C12%20L9%2C12%20L9%2C19%20C9%2C19.55%209.45%2C20%2010%2C20%20L11%2C20%20C11.55%2C20%2012%2C19.55%2012%2C19%20L12%2C14%20L18%2C14%20L18%2C7%20L15%2C7%20L15%2C6%20Z%22%2F%3E%0A%20%20%20%20%3Cpath%20fill%3D%22%23000%22%20fill-rule%3D%22nonzero%22%20d%3D%22M1%2C1%20L8.25%2C1%20C8.66421356%2C1%209%2C1.33578644%209%2C1.75%20L9%2C1.75%20C9%2C2.16421356%208.66421356%2C2.5%208.25%2C2.5%20L2.5%2C2.5%20L2.5%2C8.25%20C2.5%2C8.66421356%202.16421356%2C9%201.75%2C9%20L1.75%2C9%20C1.33578644%2C9%201%2C8.66421356%201%2C8.25%20L1%2C1%20Z%22%2F%3E%0A%20%20%3C%2Fg%3E%0A%3C%2Fsvg%3E%0A"), default; +} +div.mce-footnotes hr { + margin-inline-end: auto; + margin-inline-start: 0; + width: 25%; +} +div.mce-footnotes li > a.mce-footnotes-backlink { + text-decoration: none; +} +@media print { + sup.mce-footnote a { + color: black; + text-decoration: none; + } + div.mce-footnotes { + break-inside: avoid; + width: 100%; + } + div.mce-footnotes li > a.mce-footnotes-backlink { + display: none; + } +} +.mce-content-body figure.align-left { + float: left; +} +.mce-content-body figure.align-right { + float: right; +} +.mce-content-body figure.image.align-center { + display: table; + margin-left: auto; + margin-right: auto; +} +.mce-preview-object { + border: 1px solid gray; + display: inline-block; + line-height: 0; + margin: 0 2px 0 2px; + position: relative; +} +.mce-preview-object .mce-shim { + background: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7); + height: 100%; + left: 0; + position: absolute; + top: 0; + width: 100%; +} +.mce-preview-object[data-mce-selected="2"] .mce-shim { + display: none; +} +.mce-content-body .mce-mergetag { + cursor: default !important; + -webkit-user-select: none; + -moz-user-select: none; + user-select: none; +} +.mce-content-body .mce-mergetag:hover { + background-color: rgba(0, 108, 231, 0.3); +} +.mce-content-body .mce-mergetag-affix { + background-color: rgba(0, 108, 231, 0.3); + color: #006ce7; +} +.mce-object { + background: transparent url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Cpath%20d%3D%22M4%203h16a1%201%200%200%201%201%201v16a1%201%200%200%201-1%201H4a1%201%200%200%201-1-1V4a1%201%200%200%201%201-1zm1%202v14h14V5H5zm4.79%202.565l5.64%204.028a.5.5%200%200%201%200%20.814l-5.64%204.028a.5.5%200%200%201-.79-.407V7.972a.5.5%200%200%201%20.79-.407z%22%20fill%3D%22%23cccccc%22%2F%3E%3C%2Fsvg%3E%0A") no-repeat center; + border: 1px dashed #aaa; +} +.mce-pagebreak { + border: 1px dashed #aaa; + cursor: default; + display: block; + height: 5px; + margin-top: 15px; + page-break-before: always; + width: 100%; +} +@media print { + .mce-pagebreak { + border: 0; + } +} +.tiny-pageembed .mce-shim { + background: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7); + height: 100%; + left: 0; + position: absolute; + top: 0; + width: 100%; +} +.tiny-pageembed[data-mce-selected="2"] .mce-shim { + display: none; +} +.tiny-pageembed { + display: inline-block; + position: relative; +} +.tiny-pageembed--21by9, +.tiny-pageembed--16by9, +.tiny-pageembed--4by3, +.tiny-pageembed--1by1 { + display: block; + overflow: hidden; + padding: 0; + position: relative; + width: 100%; +} +.tiny-pageembed--21by9 { + padding-top: 42.857143%; +} +.tiny-pageembed--16by9 { + padding-top: 56.25%; +} +.tiny-pageembed--4by3 { + padding-top: 75%; +} +.tiny-pageembed--1by1 { + padding-top: 100%; +} +.tiny-pageembed--21by9 iframe, +.tiny-pageembed--16by9 iframe, +.tiny-pageembed--4by3 iframe, +.tiny-pageembed--1by1 iframe { + border: 0; + height: 100%; + left: 0; + position: absolute; + top: 0; + width: 100%; +} +.mce-content-body[data-mce-placeholder] { + position: relative; +} +.mce-content-body[data-mce-placeholder]:not(.mce-visualblocks)::before { + color: rgba(34, 47, 62, 0.7); + content: attr(data-mce-placeholder); + position: absolute; +} +.mce-content-body:not([dir=rtl])[data-mce-placeholder]:not(.mce-visualblocks)::before { + left: 1px; +} +.mce-content-body[dir=rtl][data-mce-placeholder]:not(.mce-visualblocks)::before { + right: 1px; +} +.mce-content-body div.mce-resizehandle { + background-color: #4099ff; + border-color: #4099ff; + border-style: solid; + border-width: 1px; + box-sizing: border-box; + height: 10px; + position: absolute; + width: 10px; + z-index: 1298; +} +.mce-content-body div.mce-resizehandle:hover { + background-color: #4099ff; +} +.mce-content-body div.mce-resizehandle:nth-of-type(1) { + cursor: nwse-resize; +} +.mce-content-body div.mce-resizehandle:nth-of-type(2) { + cursor: nesw-resize; +} +.mce-content-body div.mce-resizehandle:nth-of-type(3) { + cursor: nwse-resize; +} +.mce-content-body div.mce-resizehandle:nth-of-type(4) { + cursor: nesw-resize; +} +.mce-content-body .mce-resize-backdrop { + z-index: 10000; +} +.mce-content-body .mce-clonedresizable { + cursor: default; + opacity: 0.5; + outline: 1px dashed black; + position: absolute; + z-index: 10001; +} +.mce-content-body .mce-clonedresizable.mce-resizetable-columns th, +.mce-content-body .mce-clonedresizable.mce-resizetable-columns td { + border: 0; +} +.mce-content-body .mce-resize-helper { + background: #555; + background: rgba(0, 0, 0, 0.75); + border: 1px; + border-radius: 3px; + color: white; + display: none; + font-family: sans-serif; + font-size: 12px; + line-height: 14px; + margin: 5px 10px; + padding: 5px; + position: absolute; + white-space: nowrap; + z-index: 10002; +} +.tox-rtc-user-selection { + position: relative; +} +.tox-rtc-user-cursor { + bottom: 0; + cursor: default; + position: absolute; + top: 0; + width: 2px; +} +.tox-rtc-user-cursor::before { + background-color: inherit; + border-radius: 50%; + content: ''; + display: block; + height: 8px; + position: absolute; + right: -3px; + top: -3px; + width: 8px; +} +.tox-rtc-user-cursor:hover::after { + background-color: inherit; + border-radius: 100px; + box-sizing: border-box; + color: #fff; + content: attr(data-user); + display: block; + font-size: 12px; + font-weight: bold; + left: -5px; + min-height: 8px; + min-width: 8px; + padding: 0 12px; + position: absolute; + top: -11px; + white-space: nowrap; + z-index: 1000; +} +.tox-rtc-user-selection--1 .tox-rtc-user-cursor { + background-color: #2dc26b; +} +.tox-rtc-user-selection--2 .tox-rtc-user-cursor { + background-color: #e03e2d; +} +.tox-rtc-user-selection--3 .tox-rtc-user-cursor { + background-color: #f1c40f; +} +.tox-rtc-user-selection--4 .tox-rtc-user-cursor { + background-color: #3598db; +} +.tox-rtc-user-selection--5 .tox-rtc-user-cursor { + background-color: #b96ad9; +} +.tox-rtc-user-selection--6 .tox-rtc-user-cursor { + background-color: #e67e23; +} +.tox-rtc-user-selection--7 .tox-rtc-user-cursor { + background-color: #aaa69d; +} +.tox-rtc-user-selection--8 .tox-rtc-user-cursor { + background-color: #f368e0; +} +.tox-rtc-remote-image { + background: #eaeaea url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%2236%22%20height%3D%2212%22%20viewBox%3D%220%200%2036%2012%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%20%20%3Ccircle%20cx%3D%226%22%20cy%3D%226%22%20r%3D%223%22%20fill%3D%22rgba(0%2C%200%2C%200%2C%20.2)%22%3E%0A%20%20%20%20%3Canimate%20attributeName%3D%22r%22%20values%3D%223%3B5%3B3%22%20calcMode%3D%22linear%22%20dur%3D%221s%22%20repeatCount%3D%22indefinite%22%20%2F%3E%0A%20%20%3C%2Fcircle%3E%0A%20%20%3Ccircle%20cx%3D%2218%22%20cy%3D%226%22%20r%3D%223%22%20fill%3D%22rgba(0%2C%200%2C%200%2C%20.2)%22%3E%0A%20%20%20%20%3Canimate%20attributeName%3D%22r%22%20values%3D%223%3B5%3B3%22%20calcMode%3D%22linear%22%20begin%3D%22.33s%22%20dur%3D%221s%22%20repeatCount%3D%22indefinite%22%20%2F%3E%0A%20%20%3C%2Fcircle%3E%0A%20%20%3Ccircle%20cx%3D%2230%22%20cy%3D%226%22%20r%3D%223%22%20fill%3D%22rgba(0%2C%200%2C%200%2C%20.2)%22%3E%0A%20%20%20%20%3Canimate%20attributeName%3D%22r%22%20values%3D%223%3B5%3B3%22%20calcMode%3D%22linear%22%20begin%3D%22.66s%22%20dur%3D%221s%22%20repeatCount%3D%22indefinite%22%20%2F%3E%0A%20%20%3C%2Fcircle%3E%0A%3C%2Fsvg%3E%0A") no-repeat center center; + border: 1px solid #ccc; + min-height: 240px; + min-width: 320px; +} +.mce-match-marker { + background: #aaa; + color: #fff; +} +.mce-match-marker-selected { + background: #39f; + color: #fff; +} +.mce-match-marker-selected::-moz-selection { + background: #39f; + color: #fff; +} +.mce-match-marker-selected::selection { + background: #39f; + color: #fff; +} +.mce-content-body img[data-mce-selected], +.mce-content-body video[data-mce-selected], +.mce-content-body audio[data-mce-selected], +.mce-content-body object[data-mce-selected], +.mce-content-body embed[data-mce-selected], +.mce-content-body table[data-mce-selected], +.mce-content-body details[data-mce-selected] { + outline: 3px solid #4099ff; +} +.mce-content-body hr[data-mce-selected] { + outline: 3px solid #4099ff; + outline-offset: 1px; +} +.mce-content-body *[contentEditable=false] *[contentEditable=true]:focus { + outline: 3px solid #4099ff; +} +.mce-content-body *[contentEditable=false] *[contentEditable=true]:hover { + outline: 3px solid #4099ff; +} +.mce-content-body *[contentEditable=false][data-mce-selected] { + cursor: not-allowed; + outline: 3px solid #4099ff; +} +.mce-content-body.mce-content-readonly *[contentEditable=true]:focus, +.mce-content-body.mce-content-readonly *[contentEditable=true]:hover { + outline: none; +} +.mce-content-body *[data-mce-selected="inline-boundary"] { + background-color: #4099ff; +} +.mce-content-body .mce-edit-focus { + outline: 3px solid #4099ff; +} +.mce-content-body td[data-mce-selected], +.mce-content-body th[data-mce-selected] { + position: relative; +} +.mce-content-body td[data-mce-selected]::-moz-selection, +.mce-content-body th[data-mce-selected]::-moz-selection { + background: none; +} +.mce-content-body td[data-mce-selected]::selection, +.mce-content-body th[data-mce-selected]::selection { + background: none; +} +.mce-content-body td[data-mce-selected] *, +.mce-content-body th[data-mce-selected] * { + outline: none; + -webkit-touch-callout: none; + -webkit-user-select: none; + -moz-user-select: none; + user-select: none; +} +.mce-content-body td[data-mce-selected]::after, +.mce-content-body th[data-mce-selected]::after { + background-color: rgba(180, 215, 255, 0.7); + border: 1px solid transparent; + bottom: -1px; + content: ''; + left: -1px; + mix-blend-mode: lighten; + position: absolute; + right: -1px; + top: -1px; +} +@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) { + .mce-content-body td[data-mce-selected]::after, + .mce-content-body th[data-mce-selected]::after { + border-color: rgba(0, 84, 180, 0.7); + } +} +.mce-content-body img[data-mce-selected]::-moz-selection { + background: none; +} +.mce-content-body img[data-mce-selected]::selection { + background: none; +} +.ephox-snooker-resizer-bar { + background-color: #4099ff; + opacity: 0; + -webkit-user-select: none; + -moz-user-select: none; + user-select: none; +} +.ephox-snooker-resizer-cols { + cursor: col-resize; +} +.ephox-snooker-resizer-rows { + cursor: row-resize; +} +.ephox-snooker-resizer-bar.ephox-snooker-resizer-bar-dragging { + opacity: 1; +} +.mce-spellchecker-word { + background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D'4'%20height%3D'4'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20stroke%3D'%23ff0000'%20fill%3D'none'%20stroke-linecap%3D'round'%20stroke-opacity%3D'.75'%20d%3D'M0%203L2%201%204%203'%2F%3E%3C%2Fsvg%3E%0A"); + background-position: 0 calc(100% + 1px); + background-repeat: repeat-x; + background-size: auto 6px; + cursor: default; + height: 2rem; +} +.mce-spellchecker-grammar { + background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D'4'%20height%3D'4'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20stroke%3D'%2300A835'%20fill%3D'none'%20stroke-linecap%3D'round'%20d%3D'M0%203L2%201%204%203'%2F%3E%3C%2Fsvg%3E%0A"); + background-position: 0 calc(100% + 1px); + background-repeat: repeat-x; + background-size: auto 6px; + cursor: default; +} +.mce-toc { + border: 1px solid gray; +} +.mce-toc h2 { + margin: 4px; +} +.mce-toc ul > li { + list-style-type: none; +} +[data-mce-block] { + display: block; +} +table[style*="border-width: 0px"], +.mce-item-table:not([border]), +.mce-item-table[border="0"], +table[style*="border-width: 0px"] td, +.mce-item-table:not([border]) td, +.mce-item-table[border="0"] td, +table[style*="border-width: 0px"] th, +.mce-item-table:not([border]) th, +.mce-item-table[border="0"] th, +table[style*="border-width: 0px"] caption, +.mce-item-table:not([border]) caption, +.mce-item-table[border="0"] caption { + border: 1px dashed #bbb; +} +.mce-visualblocks p, +.mce-visualblocks h1, +.mce-visualblocks h2, +.mce-visualblocks h3, +.mce-visualblocks h4, +.mce-visualblocks h5, +.mce-visualblocks h6, +.mce-visualblocks div:not([data-mce-bogus]), +.mce-visualblocks section, +.mce-visualblocks article, +.mce-visualblocks blockquote, +.mce-visualblocks address, +.mce-visualblocks pre, +.mce-visualblocks figure, +.mce-visualblocks figcaption, +.mce-visualblocks hgroup, +.mce-visualblocks aside, +.mce-visualblocks ul, +.mce-visualblocks ol, +.mce-visualblocks dl { + background-repeat: no-repeat; + border: 1px dashed #bbb; + margin-left: 3px; + padding-top: 10px; +} +.mce-visualblocks p { + background-image: url(data:image/gif;base64,R0lGODlhCQAJAJEAAAAAAP///7u7u////yH5BAEAAAMALAAAAAAJAAkAAAIQnG+CqCN/mlyvsRUpThG6AgA7); +} +.mce-visualblocks h1 { + background-image: url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybGu1JuxHoAfRNRW3TWXyF2YiRUAOw==); +} +.mce-visualblocks h2 { + background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8Hybbx4oOuqgTynJd6bGlWg3DkJzoaUAAAOw==); +} +.mce-visualblocks h3 { + background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIZjI8Hybbx4oOuqgTynJf2Ln2NOHpQpmhAAQA7); +} +.mce-visualblocks h4 { + background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxInR0zqeAdhtJlXwV1oCll2HaWgAAOw==); +} +.mce-visualblocks h5 { + background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxIoiuwjane4iq5GlW05GgIkIZUAAAOw==); +} +.mce-visualblocks h6 { + background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxIoiuwjan04jep1iZ1XRlAo5bVgAAOw==); +} +.mce-visualblocks div:not([data-mce-bogus]) { + background-image: url(data:image/gif;base64,R0lGODlhEgAKAIABALu7u////yH5BAEAAAEALAAAAAASAAoAAAIfjI9poI0cgDywrhuxfbrzDEbQM2Ei5aRjmoySW4pAAQA7); +} +.mce-visualblocks section { + background-image: url(data:image/gif;base64,R0lGODlhKAAKAIABALu7u////yH5BAEAAAEALAAAAAAoAAoAAAI5jI+pywcNY3sBWHdNrplytD2ellDeSVbp+GmWqaDqDMepc8t17Y4vBsK5hDyJMcI6KkuYU+jpjLoKADs=); +} +.mce-visualblocks article { + background-image: url(data:image/gif;base64,R0lGODlhKgAKAIABALu7u////yH5BAEAAAEALAAAAAAqAAoAAAI6jI+pywkNY3wG0GBvrsd2tXGYSGnfiF7ikpXemTpOiJScasYoDJJrjsG9gkCJ0ag6KhmaIe3pjDYBBQA7); +} +.mce-visualblocks blockquote { + background-image: url(data:image/gif;base64,R0lGODlhPgAKAIABALu7u////yH5BAEAAAEALAAAAAA+AAoAAAJPjI+py+0Knpz0xQDyuUhvfoGgIX5iSKZYgq5uNL5q69asZ8s5rrf0yZmpNkJZzFesBTu8TOlDVAabUyatguVhWduud3EyiUk45xhTTgMBBQA7); +} +.mce-visualblocks address { + background-image: url(data:image/gif;base64,R0lGODlhLQAKAIABALu7u////yH5BAEAAAEALAAAAAAtAAoAAAI/jI+pywwNozSP1gDyyZcjb3UaRpXkWaXmZW4OqKLhBmLs+K263DkJK7OJeifh7FicKD9A1/IpGdKkyFpNmCkAADs=); +} +.mce-visualblocks pre { + background-image: url(data:image/gif;base64,R0lGODlhFQAKAIABALu7uwAAACH5BAEAAAEALAAAAAAVAAoAAAIjjI+ZoN0cgDwSmnpz1NCueYERhnibZVKLNnbOq8IvKpJtVQAAOw==); +} +.mce-visualblocks figure { + background-image: url(data:image/gif;base64,R0lGODlhJAAKAIAAALu7u////yH5BAEAAAEALAAAAAAkAAoAAAI0jI+py+2fwAHUSFvD3RlvG4HIp4nX5JFSpnZUJ6LlrM52OE7uSWosBHScgkSZj7dDKnWAAgA7); +} +.mce-visualblocks figcaption { + border: 1px dashed #bbb; +} +.mce-visualblocks hgroup { + background-image: url(data:image/gif;base64,R0lGODlhJwAKAIABALu7uwAAACH5BAEAAAEALAAAAAAnAAoAAAI3jI+pywYNI3uB0gpsRtt5fFnfNZaVSYJil4Wo03Hv6Z62uOCgiXH1kZIIJ8NiIxRrAZNMZAtQAAA7); +} +.mce-visualblocks aside { + background-image: url(data:image/gif;base64,R0lGODlhHgAKAIABAKqqqv///yH5BAEAAAEALAAAAAAeAAoAAAItjI+pG8APjZOTzgtqy7I3f1yehmQcFY4WKZbqByutmW4aHUd6vfcVbgudgpYCADs=); +} +.mce-visualblocks ul { + background-image: url(data:image/gif;base64,R0lGODlhDQAKAIAAALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybGuYnqUVSjvw26DzzXiqIDlVwAAOw==); +} +.mce-visualblocks ol { + background-image: url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybH6HHt0qourxC6CvzXieHyeWQAAOw==); +} +.mce-visualblocks dl { + background-image: url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybEOnmOvUoWznTqeuEjNSCqeGRUAOw==); +} +.mce-visualblocks:not([dir=rtl]) p, +.mce-visualblocks:not([dir=rtl]) h1, +.mce-visualblocks:not([dir=rtl]) h2, +.mce-visualblocks:not([dir=rtl]) h3, +.mce-visualblocks:not([dir=rtl]) h4, +.mce-visualblocks:not([dir=rtl]) h5, +.mce-visualblocks:not([dir=rtl]) h6, +.mce-visualblocks:not([dir=rtl]) div:not([data-mce-bogus]), +.mce-visualblocks:not([dir=rtl]) section, +.mce-visualblocks:not([dir=rtl]) article, +.mce-visualblocks:not([dir=rtl]) blockquote, +.mce-visualblocks:not([dir=rtl]) address, +.mce-visualblocks:not([dir=rtl]) pre, +.mce-visualblocks:not([dir=rtl]) figure, +.mce-visualblocks:not([dir=rtl]) figcaption, +.mce-visualblocks:not([dir=rtl]) hgroup, +.mce-visualblocks:not([dir=rtl]) aside, +.mce-visualblocks:not([dir=rtl]) ul, +.mce-visualblocks:not([dir=rtl]) ol, +.mce-visualblocks:not([dir=rtl]) dl { + margin-left: 3px; +} +.mce-visualblocks[dir=rtl] p, +.mce-visualblocks[dir=rtl] h1, +.mce-visualblocks[dir=rtl] h2, +.mce-visualblocks[dir=rtl] h3, +.mce-visualblocks[dir=rtl] h4, +.mce-visualblocks[dir=rtl] h5, +.mce-visualblocks[dir=rtl] h6, +.mce-visualblocks[dir=rtl] div:not([data-mce-bogus]), +.mce-visualblocks[dir=rtl] section, +.mce-visualblocks[dir=rtl] article, +.mce-visualblocks[dir=rtl] blockquote, +.mce-visualblocks[dir=rtl] address, +.mce-visualblocks[dir=rtl] pre, +.mce-visualblocks[dir=rtl] figure, +.mce-visualblocks[dir=rtl] figcaption, +.mce-visualblocks[dir=rtl] hgroup, +.mce-visualblocks[dir=rtl] aside, +.mce-visualblocks[dir=rtl] ul, +.mce-visualblocks[dir=rtl] ol, +.mce-visualblocks[dir=rtl] dl { + background-position-x: right; + margin-right: 3px; +} +.mce-nbsp, +.mce-shy { + background: #aaa; +} +.mce-shy::after { + content: '-'; +} +body { + font-family: sans-serif; +} +table { + border-collapse: collapse; +} diff --git a/tinymce-resource/skins/ui/oxide-dark/content.inline.css b/tinymce-resource/skins/ui/oxide-dark/content.inline.css new file mode 100644 index 000000000..f1fe35322 --- /dev/null +++ b/tinymce-resource/skins/ui/oxide-dark/content.inline.css @@ -0,0 +1,779 @@ +.mce-content-body .mce-item-anchor { + background: transparent url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D'8'%20height%3D'12'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20d%3D'M0%200L8%200%208%2012%204.09117821%209%200%2012z'%2F%3E%3C%2Fsvg%3E%0A") no-repeat center; +} +.mce-content-body .mce-item-anchor:empty { + cursor: default; + display: inline-block; + height: 12px !important; + padding: 0 2px; + -webkit-user-modify: read-only; + -moz-user-modify: read-only; + -webkit-user-select: all; + -moz-user-select: all; + user-select: all; + width: 8px !important; +} +.mce-content-body .mce-item-anchor:not(:empty) { + background-position-x: 2px; + display: inline-block; + padding-left: 12px; +} +.mce-content-body .mce-item-anchor[data-mce-selected] { + outline-offset: 1px; +} +.tox-comments-visible .tox-comment[contenteditable="false"]:not([data-mce-selected]), +.tox-comments-visible span.tox-comment img:not([data-mce-selected]), +.tox-comments-visible span.tox-comment > audio:not([data-mce-selected]), +.tox-comments-visible span.tox-comment > video:not([data-mce-selected]), +.tox-comments-visible span.tox-comment span.mce-preview-object:not([data-mce-selected]) { + outline: 3px solid #ffe89d; +} +.tox-comments-visible .tox-comment[contenteditable="false"][data-mce-annotation-active="true"]:not([data-mce-selected]) { + outline: 3px solid #fed635; +} +.tox-comments-visible span.tox-comment[data-mce-annotation-active="true"] img:not([data-mce-selected]), +.tox-comments-visible span.tox-comment[data-mce-annotation-active="true"] > audio:not([data-mce-selected]), +.tox-comments-visible span.tox-comment[data-mce-annotation-active="true"] > video:not([data-mce-selected]), +.tox-comments-visible span.tox-comment[data-mce-annotation-active="true"] span.mce-preview-object:not([data-mce-selected]) { + outline: 3px solid #fed635; +} +.tox-comments-visible span.tox-comment:not([data-mce-selected]) { + background-color: #ffe89d; + outline: none; +} +.tox-comments-visible span.tox-comment[data-mce-annotation-active="true"]:not([data-mce-selected="inline-boundary"]) { + background-color: #fed635; +} +.tox-checklist > li:not(.tox-checklist--hidden) { + list-style: none; + margin: 0.25em 0; +} +.tox-checklist > li:not(.tox-checklist--hidden)::before { + content: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cg%20id%3D%22checklist-unchecked%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Crect%20id%3D%22Rectangle%22%20width%3D%2215%22%20height%3D%2215%22%20x%3D%22.5%22%20y%3D%22.5%22%20fill-rule%3D%22nonzero%22%20stroke%3D%22%234C4C4C%22%20rx%3D%222%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%0A"); + cursor: pointer; + height: 1em; + margin-left: -1.5em; + margin-top: 0.125em; + position: absolute; + width: 1em; +} +.tox-checklist li:not(.tox-checklist--hidden).tox-checklist--checked::before { + content: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cg%20id%3D%22checklist-checked%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Crect%20id%3D%22Rectangle%22%20width%3D%2216%22%20height%3D%2216%22%20fill%3D%22%234099FF%22%20fill-rule%3D%22nonzero%22%20rx%3D%222%22%2F%3E%3Cpath%20id%3D%22Path%22%20fill%3D%22%23FFF%22%20fill-rule%3D%22nonzero%22%20d%3D%22M11.5703186%2C3.14417309%20C11.8516238%2C2.73724603%2012.4164781%2C2.62829933%2012.83558%2C2.89774797%20C13.260121%2C3.17069355%2013.3759736%2C3.72932262%2013.0909105%2C4.14168582%20L7.7580587%2C11.8560195%20C7.43776896%2C12.3193404%206.76483983%2C12.3852142%206.35607322%2C11.9948725%20L3.02491697%2C8.8138662%20C2.66090143%2C8.46625845%202.65798871%2C7.89594698%203.01850234%2C7.54483354%20C3.373942%2C7.19866177%203.94940006%2C7.19592841%204.30829608%2C7.5386474%20L6.85276923%2C9.9684299%20L11.5703186%2C3.14417309%20Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%0A"); +} +[dir=rtl] .tox-checklist > li:not(.tox-checklist--hidden)::before { + margin-left: 0; + margin-right: -1.5em; +} +/* stylelint-disable */ +/* http://prismjs.com/ */ +/** + * prism.js default theme for JavaScript, CSS and HTML + * Based on dabblet (http://dabblet.com) + * @author Lea Verou + */ +code[class*="language-"], +pre[class*="language-"] { + color: black; + background: none; + text-shadow: 0 1px white; + font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; + font-size: 1em; + text-align: left; + white-space: pre; + word-spacing: normal; + word-break: normal; + word-wrap: normal; + line-height: 1.5; + -moz-tab-size: 4; + tab-size: 4; + -webkit-hyphens: none; + hyphens: none; +} +pre[class*="language-"]::-moz-selection, +pre[class*="language-"] ::-moz-selection, +code[class*="language-"]::-moz-selection, +code[class*="language-"] ::-moz-selection { + text-shadow: none; + background: #b3d4fc; +} +pre[class*="language-"]::selection, +pre[class*="language-"] ::selection, +code[class*="language-"]::selection, +code[class*="language-"] ::selection { + text-shadow: none; + background: #b3d4fc; +} +@media print { + code[class*="language-"], + pre[class*="language-"] { + text-shadow: none; + } +} +/* Code blocks */ +pre[class*="language-"] { + padding: 1em; + margin: 0.5em 0; + overflow: auto; +} +:not(pre) > code[class*="language-"], +pre[class*="language-"] { + background: #f5f2f0; +} +/* Inline code */ +:not(pre) > code[class*="language-"] { + padding: 0.1em; + border-radius: 0.3em; + white-space: normal; +} +.token.comment, +.token.prolog, +.token.doctype, +.token.cdata { + color: slategray; +} +.token.punctuation { + color: #999; +} +.token.namespace { + opacity: 0.7; +} +.token.property, +.token.tag, +.token.boolean, +.token.number, +.token.constant, +.token.symbol, +.token.deleted { + color: #905; +} +.token.selector, +.token.attr-name, +.token.string, +.token.char, +.token.builtin, +.token.inserted { + color: #690; +} +.token.operator, +.token.entity, +.token.url, +.language-css .token.string, +.style .token.string { + color: #9a6e3a; + /* This background color was intended by the author of this theme. */ + background: hsla(0, 0%, 100%, 0.5); +} +.token.atrule, +.token.attr-value, +.token.keyword { + color: #07a; +} +.token.function, +.token.class-name { + color: #DD4A68; +} +.token.regex, +.token.important, +.token.variable { + color: #e90; +} +.token.important, +.token.bold { + font-weight: bold; +} +.token.italic { + font-style: italic; +} +.token.entity { + cursor: help; +} +/* stylelint-enable */ +.mce-content-body { + overflow-wrap: break-word; + word-wrap: break-word; +} +.mce-content-body .mce-visual-caret { + background-color: black; + background-color: currentColor; + position: absolute; +} +.mce-content-body .mce-visual-caret-hidden { + display: none; +} +.mce-content-body *[data-mce-caret] { + left: -1000px; + margin: 0; + padding: 0; + position: absolute; + right: auto; + top: 0; +} +.mce-content-body .mce-offscreen-selection { + left: -2000000px; + max-width: 1000000px; + position: absolute; +} +.mce-content-body *[contentEditable=false] { + cursor: default; +} +.mce-content-body *[contentEditable=true] { + cursor: text; +} +.tox-cursor-format-painter { + cursor: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%0A%20%20%3Cg%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%0A%20%20%20%20%3Cpath%20fill%3D%22%23000%22%20fill-rule%3D%22nonzero%22%20d%3D%22M15%2C6%20C15%2C5.45%2014.55%2C5%2014%2C5%20L6%2C5%20C5.45%2C5%205%2C5.45%205%2C6%20L5%2C10%20C5%2C10.55%205.45%2C11%206%2C11%20L14%2C11%20C14.55%2C11%2015%2C10.55%2015%2C10%20L15%2C9%20L16%2C9%20L16%2C12%20L9%2C12%20L9%2C19%20C9%2C19.55%209.45%2C20%2010%2C20%20L11%2C20%20C11.55%2C20%2012%2C19.55%2012%2C19%20L12%2C14%20L18%2C14%20L18%2C7%20L15%2C7%20L15%2C6%20Z%22%2F%3E%0A%20%20%20%20%3Cpath%20fill%3D%22%23000%22%20fill-rule%3D%22nonzero%22%20d%3D%22M1%2C1%20L8.25%2C1%20C8.66421356%2C1%209%2C1.33578644%209%2C1.75%20L9%2C1.75%20C9%2C2.16421356%208.66421356%2C2.5%208.25%2C2.5%20L2.5%2C2.5%20L2.5%2C8.25%20C2.5%2C8.66421356%202.16421356%2C9%201.75%2C9%20L1.75%2C9%20C1.33578644%2C9%201%2C8.66421356%201%2C8.25%20L1%2C1%20Z%22%2F%3E%0A%20%20%3C%2Fg%3E%0A%3C%2Fsvg%3E%0A"), default; +} +div.mce-footnotes hr { + margin-inline-end: auto; + margin-inline-start: 0; + width: 25%; +} +div.mce-footnotes li > a.mce-footnotes-backlink { + text-decoration: none; +} +@media print { + sup.mce-footnote a { + color: black; + text-decoration: none; + } + div.mce-footnotes { + break-inside: avoid; + width: 100%; + } + div.mce-footnotes li > a.mce-footnotes-backlink { + display: none; + } +} +.mce-content-body figure.align-left { + float: left; +} +.mce-content-body figure.align-right { + float: right; +} +.mce-content-body figure.image.align-center { + display: table; + margin-left: auto; + margin-right: auto; +} +.mce-preview-object { + border: 1px solid gray; + display: inline-block; + line-height: 0; + margin: 0 2px 0 2px; + position: relative; +} +.mce-preview-object .mce-shim { + background: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7); + height: 100%; + left: 0; + position: absolute; + top: 0; + width: 100%; +} +.mce-preview-object[data-mce-selected="2"] .mce-shim { + display: none; +} +.mce-content-body .mce-mergetag { + cursor: default !important; + -webkit-user-select: none; + -moz-user-select: none; + user-select: none; +} +.mce-content-body .mce-mergetag:hover { + background-color: rgba(0, 108, 231, 0.1); +} +.mce-content-body .mce-mergetag-affix { + background-color: rgba(0, 108, 231, 0.1); + color: #006ce7; +} +.mce-object { + background: transparent url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Cpath%20d%3D%22M4%203h16a1%201%200%200%201%201%201v16a1%201%200%200%201-1%201H4a1%201%200%200%201-1-1V4a1%201%200%200%201%201-1zm1%202v14h14V5H5zm4.79%202.565l5.64%204.028a.5.5%200%200%201%200%20.814l-5.64%204.028a.5.5%200%200%201-.79-.407V7.972a.5.5%200%200%201%20.79-.407z%22%2F%3E%3C%2Fsvg%3E%0A") no-repeat center; + border: 1px dashed #aaa; +} +.mce-pagebreak { + border: 1px dashed #aaa; + cursor: default; + display: block; + height: 5px; + margin-top: 15px; + page-break-before: always; + width: 100%; +} +@media print { + .mce-pagebreak { + border: 0; + } +} +.tiny-pageembed .mce-shim { + background: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7); + height: 100%; + left: 0; + position: absolute; + top: 0; + width: 100%; +} +.tiny-pageembed[data-mce-selected="2"] .mce-shim { + display: none; +} +.tiny-pageembed { + display: inline-block; + position: relative; +} +.tiny-pageembed--21by9, +.tiny-pageembed--16by9, +.tiny-pageembed--4by3, +.tiny-pageembed--1by1 { + display: block; + overflow: hidden; + padding: 0; + position: relative; + width: 100%; +} +.tiny-pageembed--21by9 { + padding-top: 42.857143%; +} +.tiny-pageembed--16by9 { + padding-top: 56.25%; +} +.tiny-pageembed--4by3 { + padding-top: 75%; +} +.tiny-pageembed--1by1 { + padding-top: 100%; +} +.tiny-pageembed--21by9 iframe, +.tiny-pageembed--16by9 iframe, +.tiny-pageembed--4by3 iframe, +.tiny-pageembed--1by1 iframe { + border: 0; + height: 100%; + left: 0; + position: absolute; + top: 0; + width: 100%; +} +.mce-content-body[data-mce-placeholder] { + position: relative; +} +.mce-content-body[data-mce-placeholder]:not(.mce-visualblocks)::before { + color: rgba(34, 47, 62, 0.7); + content: attr(data-mce-placeholder); + position: absolute; +} +.mce-content-body:not([dir=rtl])[data-mce-placeholder]:not(.mce-visualblocks)::before { + left: 1px; +} +.mce-content-body[dir=rtl][data-mce-placeholder]:not(.mce-visualblocks)::before { + right: 1px; +} +.mce-content-body div.mce-resizehandle { + background-color: #4099ff; + border-color: #4099ff; + border-style: solid; + border-width: 1px; + box-sizing: border-box; + height: 10px; + position: absolute; + width: 10px; + z-index: 1298; +} +.mce-content-body div.mce-resizehandle:hover { + background-color: #4099ff; +} +.mce-content-body div.mce-resizehandle:nth-of-type(1) { + cursor: nwse-resize; +} +.mce-content-body div.mce-resizehandle:nth-of-type(2) { + cursor: nesw-resize; +} +.mce-content-body div.mce-resizehandle:nth-of-type(3) { + cursor: nwse-resize; +} +.mce-content-body div.mce-resizehandle:nth-of-type(4) { + cursor: nesw-resize; +} +.mce-content-body .mce-resize-backdrop { + z-index: 10000; +} +.mce-content-body .mce-clonedresizable { + cursor: default; + opacity: 0.5; + outline: 1px dashed black; + position: absolute; + z-index: 10001; +} +.mce-content-body .mce-clonedresizable.mce-resizetable-columns th, +.mce-content-body .mce-clonedresizable.mce-resizetable-columns td { + border: 0; +} +.mce-content-body .mce-resize-helper { + background: #555; + background: rgba(0, 0, 0, 0.75); + border: 1px; + border-radius: 3px; + color: white; + display: none; + font-family: sans-serif; + font-size: 12px; + line-height: 14px; + margin: 5px 10px; + padding: 5px; + position: absolute; + white-space: nowrap; + z-index: 10002; +} +.tox-rtc-user-selection { + position: relative; +} +.tox-rtc-user-cursor { + bottom: 0; + cursor: default; + position: absolute; + top: 0; + width: 2px; +} +.tox-rtc-user-cursor::before { + background-color: inherit; + border-radius: 50%; + content: ''; + display: block; + height: 8px; + position: absolute; + right: -3px; + top: -3px; + width: 8px; +} +.tox-rtc-user-cursor:hover::after { + background-color: inherit; + border-radius: 100px; + box-sizing: border-box; + color: #fff; + content: attr(data-user); + display: block; + font-size: 12px; + font-weight: bold; + left: -5px; + min-height: 8px; + min-width: 8px; + padding: 0 12px; + position: absolute; + top: -11px; + white-space: nowrap; + z-index: 1000; +} +.tox-rtc-user-selection--1 .tox-rtc-user-cursor { + background-color: #2dc26b; +} +.tox-rtc-user-selection--2 .tox-rtc-user-cursor { + background-color: #e03e2d; +} +.tox-rtc-user-selection--3 .tox-rtc-user-cursor { + background-color: #f1c40f; +} +.tox-rtc-user-selection--4 .tox-rtc-user-cursor { + background-color: #3598db; +} +.tox-rtc-user-selection--5 .tox-rtc-user-cursor { + background-color: #b96ad9; +} +.tox-rtc-user-selection--6 .tox-rtc-user-cursor { + background-color: #e67e23; +} +.tox-rtc-user-selection--7 .tox-rtc-user-cursor { + background-color: #aaa69d; +} +.tox-rtc-user-selection--8 .tox-rtc-user-cursor { + background-color: #f368e0; +} +.tox-rtc-remote-image { + background: #eaeaea url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%2236%22%20height%3D%2212%22%20viewBox%3D%220%200%2036%2012%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%20%20%3Ccircle%20cx%3D%226%22%20cy%3D%226%22%20r%3D%223%22%20fill%3D%22rgba(0%2C%200%2C%200%2C%20.2)%22%3E%0A%20%20%20%20%3Canimate%20attributeName%3D%22r%22%20values%3D%223%3B5%3B3%22%20calcMode%3D%22linear%22%20dur%3D%221s%22%20repeatCount%3D%22indefinite%22%20%2F%3E%0A%20%20%3C%2Fcircle%3E%0A%20%20%3Ccircle%20cx%3D%2218%22%20cy%3D%226%22%20r%3D%223%22%20fill%3D%22rgba(0%2C%200%2C%200%2C%20.2)%22%3E%0A%20%20%20%20%3Canimate%20attributeName%3D%22r%22%20values%3D%223%3B5%3B3%22%20calcMode%3D%22linear%22%20begin%3D%22.33s%22%20dur%3D%221s%22%20repeatCount%3D%22indefinite%22%20%2F%3E%0A%20%20%3C%2Fcircle%3E%0A%20%20%3Ccircle%20cx%3D%2230%22%20cy%3D%226%22%20r%3D%223%22%20fill%3D%22rgba(0%2C%200%2C%200%2C%20.2)%22%3E%0A%20%20%20%20%3Canimate%20attributeName%3D%22r%22%20values%3D%223%3B5%3B3%22%20calcMode%3D%22linear%22%20begin%3D%22.66s%22%20dur%3D%221s%22%20repeatCount%3D%22indefinite%22%20%2F%3E%0A%20%20%3C%2Fcircle%3E%0A%3C%2Fsvg%3E%0A") no-repeat center center; + border: 1px solid #ccc; + min-height: 240px; + min-width: 320px; +} +.mce-match-marker { + background: #aaa; + color: #fff; +} +.mce-match-marker-selected { + background: #39f; + color: #fff; +} +.mce-match-marker-selected::-moz-selection { + background: #39f; + color: #fff; +} +.mce-match-marker-selected::selection { + background: #39f; + color: #fff; +} +.mce-content-body img[data-mce-selected], +.mce-content-body video[data-mce-selected], +.mce-content-body audio[data-mce-selected], +.mce-content-body object[data-mce-selected], +.mce-content-body embed[data-mce-selected], +.mce-content-body table[data-mce-selected], +.mce-content-body details[data-mce-selected] { + outline: 3px solid #b4d7ff; +} +.mce-content-body hr[data-mce-selected] { + outline: 3px solid #b4d7ff; + outline-offset: 1px; +} +.mce-content-body *[contentEditable=false] *[contentEditable=true]:focus { + outline: 3px solid #b4d7ff; +} +.mce-content-body *[contentEditable=false] *[contentEditable=true]:hover { + outline: 3px solid #b4d7ff; +} +.mce-content-body *[contentEditable=false][data-mce-selected] { + cursor: not-allowed; + outline: 3px solid #b4d7ff; +} +.mce-content-body.mce-content-readonly *[contentEditable=true]:focus, +.mce-content-body.mce-content-readonly *[contentEditable=true]:hover { + outline: none; +} +.mce-content-body *[data-mce-selected="inline-boundary"] { + background-color: #b4d7ff; +} +.mce-content-body .mce-edit-focus { + outline: 3px solid #b4d7ff; +} +.mce-content-body td[data-mce-selected], +.mce-content-body th[data-mce-selected] { + position: relative; +} +.mce-content-body td[data-mce-selected]::-moz-selection, +.mce-content-body th[data-mce-selected]::-moz-selection { + background: none; +} +.mce-content-body td[data-mce-selected]::selection, +.mce-content-body th[data-mce-selected]::selection { + background: none; +} +.mce-content-body td[data-mce-selected] *, +.mce-content-body th[data-mce-selected] * { + outline: none; + -webkit-touch-callout: none; + -webkit-user-select: none; + -moz-user-select: none; + user-select: none; +} +.mce-content-body td[data-mce-selected]::after, +.mce-content-body th[data-mce-selected]::after { + background-color: rgba(180, 215, 255, 0.7); + border: 1px solid rgba(180, 215, 255, 0.7); + bottom: -1px; + content: ''; + left: -1px; + mix-blend-mode: multiply; + position: absolute; + right: -1px; + top: -1px; +} +@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) { + .mce-content-body td[data-mce-selected]::after, + .mce-content-body th[data-mce-selected]::after { + border-color: rgba(0, 84, 180, 0.7); + } +} +.mce-content-body img[data-mce-selected]::-moz-selection { + background: none; +} +.mce-content-body img[data-mce-selected]::selection { + background: none; +} +.ephox-snooker-resizer-bar { + background-color: #b4d7ff; + opacity: 0; + -webkit-user-select: none; + -moz-user-select: none; + user-select: none; +} +.ephox-snooker-resizer-cols { + cursor: col-resize; +} +.ephox-snooker-resizer-rows { + cursor: row-resize; +} +.ephox-snooker-resizer-bar.ephox-snooker-resizer-bar-dragging { + opacity: 1; +} +.mce-spellchecker-word { + background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D'4'%20height%3D'4'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20stroke%3D'%23ff0000'%20fill%3D'none'%20stroke-linecap%3D'round'%20stroke-opacity%3D'.75'%20d%3D'M0%203L2%201%204%203'%2F%3E%3C%2Fsvg%3E%0A"); + background-position: 0 calc(100% + 1px); + background-repeat: repeat-x; + background-size: auto 6px; + cursor: default; + height: 2rem; +} +.mce-spellchecker-grammar { + background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D'4'%20height%3D'4'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20stroke%3D'%2300A835'%20fill%3D'none'%20stroke-linecap%3D'round'%20d%3D'M0%203L2%201%204%203'%2F%3E%3C%2Fsvg%3E%0A"); + background-position: 0 calc(100% + 1px); + background-repeat: repeat-x; + background-size: auto 6px; + cursor: default; +} +.mce-toc { + border: 1px solid gray; +} +.mce-toc h2 { + margin: 4px; +} +.mce-toc ul > li { + list-style-type: none; +} +[data-mce-block] { + display: block; +} +table[style*="border-width: 0px"], +.mce-item-table:not([border]), +.mce-item-table[border="0"], +table[style*="border-width: 0px"] td, +.mce-item-table:not([border]) td, +.mce-item-table[border="0"] td, +table[style*="border-width: 0px"] th, +.mce-item-table:not([border]) th, +.mce-item-table[border="0"] th, +table[style*="border-width: 0px"] caption, +.mce-item-table:not([border]) caption, +.mce-item-table[border="0"] caption { + border: 1px dashed #bbb; +} +.mce-visualblocks p, +.mce-visualblocks h1, +.mce-visualblocks h2, +.mce-visualblocks h3, +.mce-visualblocks h4, +.mce-visualblocks h5, +.mce-visualblocks h6, +.mce-visualblocks div:not([data-mce-bogus]), +.mce-visualblocks section, +.mce-visualblocks article, +.mce-visualblocks blockquote, +.mce-visualblocks address, +.mce-visualblocks pre, +.mce-visualblocks figure, +.mce-visualblocks figcaption, +.mce-visualblocks hgroup, +.mce-visualblocks aside, +.mce-visualblocks ul, +.mce-visualblocks ol, +.mce-visualblocks dl { + background-repeat: no-repeat; + border: 1px dashed #bbb; + margin-left: 3px; + padding-top: 10px; +} +.mce-visualblocks p { + background-image: url(data:image/gif;base64,R0lGODlhCQAJAJEAAAAAAP///7u7u////yH5BAEAAAMALAAAAAAJAAkAAAIQnG+CqCN/mlyvsRUpThG6AgA7); +} +.mce-visualblocks h1 { + background-image: url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybGu1JuxHoAfRNRW3TWXyF2YiRUAOw==); +} +.mce-visualblocks h2 { + background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8Hybbx4oOuqgTynJd6bGlWg3DkJzoaUAAAOw==); +} +.mce-visualblocks h3 { + background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIZjI8Hybbx4oOuqgTynJf2Ln2NOHpQpmhAAQA7); +} +.mce-visualblocks h4 { + background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxInR0zqeAdhtJlXwV1oCll2HaWgAAOw==); +} +.mce-visualblocks h5 { + background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxIoiuwjane4iq5GlW05GgIkIZUAAAOw==); +} +.mce-visualblocks h6 { + background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxIoiuwjan04jep1iZ1XRlAo5bVgAAOw==); +} +.mce-visualblocks div:not([data-mce-bogus]) { + background-image: url(data:image/gif;base64,R0lGODlhEgAKAIABALu7u////yH5BAEAAAEALAAAAAASAAoAAAIfjI9poI0cgDywrhuxfbrzDEbQM2Ei5aRjmoySW4pAAQA7); +} +.mce-visualblocks section { + background-image: url(data:image/gif;base64,R0lGODlhKAAKAIABALu7u////yH5BAEAAAEALAAAAAAoAAoAAAI5jI+pywcNY3sBWHdNrplytD2ellDeSVbp+GmWqaDqDMepc8t17Y4vBsK5hDyJMcI6KkuYU+jpjLoKADs=); +} +.mce-visualblocks article { + background-image: url(data:image/gif;base64,R0lGODlhKgAKAIABALu7u////yH5BAEAAAEALAAAAAAqAAoAAAI6jI+pywkNY3wG0GBvrsd2tXGYSGnfiF7ikpXemTpOiJScasYoDJJrjsG9gkCJ0ag6KhmaIe3pjDYBBQA7); +} +.mce-visualblocks blockquote { + background-image: url(data:image/gif;base64,R0lGODlhPgAKAIABALu7u////yH5BAEAAAEALAAAAAA+AAoAAAJPjI+py+0Knpz0xQDyuUhvfoGgIX5iSKZYgq5uNL5q69asZ8s5rrf0yZmpNkJZzFesBTu8TOlDVAabUyatguVhWduud3EyiUk45xhTTgMBBQA7); +} +.mce-visualblocks address { + background-image: url(data:image/gif;base64,R0lGODlhLQAKAIABALu7u////yH5BAEAAAEALAAAAAAtAAoAAAI/jI+pywwNozSP1gDyyZcjb3UaRpXkWaXmZW4OqKLhBmLs+K263DkJK7OJeifh7FicKD9A1/IpGdKkyFpNmCkAADs=); +} +.mce-visualblocks pre { + background-image: url(data:image/gif;base64,R0lGODlhFQAKAIABALu7uwAAACH5BAEAAAEALAAAAAAVAAoAAAIjjI+ZoN0cgDwSmnpz1NCueYERhnibZVKLNnbOq8IvKpJtVQAAOw==); +} +.mce-visualblocks figure { + background-image: url(data:image/gif;base64,R0lGODlhJAAKAIAAALu7u////yH5BAEAAAEALAAAAAAkAAoAAAI0jI+py+2fwAHUSFvD3RlvG4HIp4nX5JFSpnZUJ6LlrM52OE7uSWosBHScgkSZj7dDKnWAAgA7); +} +.mce-visualblocks figcaption { + border: 1px dashed #bbb; +} +.mce-visualblocks hgroup { + background-image: url(data:image/gif;base64,R0lGODlhJwAKAIABALu7uwAAACH5BAEAAAEALAAAAAAnAAoAAAI3jI+pywYNI3uB0gpsRtt5fFnfNZaVSYJil4Wo03Hv6Z62uOCgiXH1kZIIJ8NiIxRrAZNMZAtQAAA7); +} +.mce-visualblocks aside { + background-image: url(data:image/gif;base64,R0lGODlhHgAKAIABAKqqqv///yH5BAEAAAEALAAAAAAeAAoAAAItjI+pG8APjZOTzgtqy7I3f1yehmQcFY4WKZbqByutmW4aHUd6vfcVbgudgpYCADs=); +} +.mce-visualblocks ul { + background-image: url(data:image/gif;base64,R0lGODlhDQAKAIAAALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybGuYnqUVSjvw26DzzXiqIDlVwAAOw==); +} +.mce-visualblocks ol { + background-image: url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybH6HHt0qourxC6CvzXieHyeWQAAOw==); +} +.mce-visualblocks dl { + background-image: url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybEOnmOvUoWznTqeuEjNSCqeGRUAOw==); +} +.mce-visualblocks:not([dir=rtl]) p, +.mce-visualblocks:not([dir=rtl]) h1, +.mce-visualblocks:not([dir=rtl]) h2, +.mce-visualblocks:not([dir=rtl]) h3, +.mce-visualblocks:not([dir=rtl]) h4, +.mce-visualblocks:not([dir=rtl]) h5, +.mce-visualblocks:not([dir=rtl]) h6, +.mce-visualblocks:not([dir=rtl]) div:not([data-mce-bogus]), +.mce-visualblocks:not([dir=rtl]) section, +.mce-visualblocks:not([dir=rtl]) article, +.mce-visualblocks:not([dir=rtl]) blockquote, +.mce-visualblocks:not([dir=rtl]) address, +.mce-visualblocks:not([dir=rtl]) pre, +.mce-visualblocks:not([dir=rtl]) figure, +.mce-visualblocks:not([dir=rtl]) figcaption, +.mce-visualblocks:not([dir=rtl]) hgroup, +.mce-visualblocks:not([dir=rtl]) aside, +.mce-visualblocks:not([dir=rtl]) ul, +.mce-visualblocks:not([dir=rtl]) ol, +.mce-visualblocks:not([dir=rtl]) dl { + margin-left: 3px; +} +.mce-visualblocks[dir=rtl] p, +.mce-visualblocks[dir=rtl] h1, +.mce-visualblocks[dir=rtl] h2, +.mce-visualblocks[dir=rtl] h3, +.mce-visualblocks[dir=rtl] h4, +.mce-visualblocks[dir=rtl] h5, +.mce-visualblocks[dir=rtl] h6, +.mce-visualblocks[dir=rtl] div:not([data-mce-bogus]), +.mce-visualblocks[dir=rtl] section, +.mce-visualblocks[dir=rtl] article, +.mce-visualblocks[dir=rtl] blockquote, +.mce-visualblocks[dir=rtl] address, +.mce-visualblocks[dir=rtl] pre, +.mce-visualblocks[dir=rtl] figure, +.mce-visualblocks[dir=rtl] figcaption, +.mce-visualblocks[dir=rtl] hgroup, +.mce-visualblocks[dir=rtl] aside, +.mce-visualblocks[dir=rtl] ul, +.mce-visualblocks[dir=rtl] ol, +.mce-visualblocks[dir=rtl] dl { + background-position-x: right; + margin-right: 3px; +} +.mce-nbsp, +.mce-shy { + background: #aaa; +} +.mce-shy::after { + content: '-'; +} diff --git a/tinymce-resource/skins/ui/oxide-dark/content.inline.js b/tinymce-resource/skins/ui/oxide-dark/content.inline.js new file mode 100644 index 000000000..22fa386b7 --- /dev/null +++ b/tinymce-resource/skins/ui/oxide-dark/content.inline.js @@ -0,0 +1,2 @@ +tinymce.Resource.add('ui/dark/content.inline.css', ".mce-content-body .mce-item-anchor{background:transparent url(\"data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D'8'%20height%3D'12'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20d%3D'M0%200L8%200%208%2012%204.09117821%209%200%2012z'%2F%3E%3C%2Fsvg%3E%0A\") no-repeat center}.mce-content-body .mce-item-anchor:empty{cursor:default;display:inline-block;height:12px!important;padding:0 2px;-webkit-user-modify:read-only;-moz-user-modify:read-only;-webkit-user-select:all;-moz-user-select:all;user-select:all;width:8px!important}.mce-content-body .mce-item-anchor:not(:empty){background-position-x:2px;display:inline-block;padding-left:12px}.mce-content-body .mce-item-anchor[data-mce-selected]{outline-offset:1px}.tox-comments-visible .tox-comment[contenteditable=false]:not([data-mce-selected]),.tox-comments-visible span.tox-comment img:not([data-mce-selected]),.tox-comments-visible span.tox-comment span.mce-preview-object:not([data-mce-selected]),.tox-comments-visible span.tox-comment>audio:not([data-mce-selected]),.tox-comments-visible span.tox-comment>video:not([data-mce-selected]){outline:3px solid #ffe89d}.tox-comments-visible .tox-comment[contenteditable=false][data-mce-annotation-active=true]:not([data-mce-selected]){outline:3px solid #fed635}.tox-comments-visible span.tox-comment[data-mce-annotation-active=true] img:not([data-mce-selected]),.tox-comments-visible span.tox-comment[data-mce-annotation-active=true] span.mce-preview-object:not([data-mce-selected]),.tox-comments-visible span.tox-comment[data-mce-annotation-active=true]>audio:not([data-mce-selected]),.tox-comments-visible span.tox-comment[data-mce-annotation-active=true]>video:not([data-mce-selected]){outline:3px solid #fed635}.tox-comments-visible span.tox-comment:not([data-mce-selected]){background-color:#ffe89d;outline:0}.tox-comments-visible span.tox-comment[data-mce-annotation-active=true]:not([data-mce-selected=inline-boundary]){background-color:#fed635}.tox-checklist>li:not(.tox-checklist--hidden){list-style:none;margin:.25em 0}.tox-checklist>li:not(.tox-checklist--hidden)::before{content:url(\"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cg%20id%3D%22checklist-unchecked%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Crect%20id%3D%22Rectangle%22%20width%3D%2215%22%20height%3D%2215%22%20x%3D%22.5%22%20y%3D%22.5%22%20fill-rule%3D%22nonzero%22%20stroke%3D%22%234C4C4C%22%20rx%3D%222%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%0A\");cursor:pointer;height:1em;margin-left:-1.5em;margin-top:.125em;position:absolute;width:1em}.tox-checklist li:not(.tox-checklist--hidden).tox-checklist--checked::before{content:url(\"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cg%20id%3D%22checklist-checked%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Crect%20id%3D%22Rectangle%22%20width%3D%2216%22%20height%3D%2216%22%20fill%3D%22%234099FF%22%20fill-rule%3D%22nonzero%22%20rx%3D%222%22%2F%3E%3Cpath%20id%3D%22Path%22%20fill%3D%22%23FFF%22%20fill-rule%3D%22nonzero%22%20d%3D%22M11.5703186%2C3.14417309%20C11.8516238%2C2.73724603%2012.4164781%2C2.62829933%2012.83558%2C2.89774797%20C13.260121%2C3.17069355%2013.3759736%2C3.72932262%2013.0909105%2C4.14168582%20L7.7580587%2C11.8560195%20C7.43776896%2C12.3193404%206.76483983%2C12.3852142%206.35607322%2C11.9948725%20L3.02491697%2C8.8138662%20C2.66090143%2C8.46625845%202.65798871%2C7.89594698%203.01850234%2C7.54483354%20C3.373942%2C7.19866177%203.94940006%2C7.19592841%204.30829608%2C7.5386474%20L6.85276923%2C9.9684299%20L11.5703186%2C3.14417309%20Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%0A\")}[dir=rtl] .tox-checklist>li:not(.tox-checklist--hidden)::before{margin-left:0;margin-right:-1.5em}code[class*=language-],pre[class*=language-]{color:#000;background:0 0;text-shadow:0 1px #fff;font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;tab-size:4;-webkit-hyphens:none;hyphens:none}code[class*=language-] ::-moz-selection,code[class*=language-]::-moz-selection,pre[class*=language-] ::-moz-selection,pre[class*=language-]::-moz-selection{text-shadow:none;background:#b3d4fc}code[class*=language-] ::selection,code[class*=language-]::selection,pre[class*=language-] ::selection,pre[class*=language-]::selection{text-shadow:none;background:#b3d4fc}@media print{code[class*=language-],pre[class*=language-]{text-shadow:none}}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background:#f5f2f0}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#708090}.token.punctuation{color:#999}.token.namespace{opacity:.7}.token.boolean,.token.constant,.token.deleted,.token.number,.token.property,.token.symbol,.token.tag{color:#905}.token.attr-name,.token.builtin,.token.char,.token.inserted,.token.selector,.token.string{color:#690}.language-css .token.string,.style .token.string,.token.entity,.token.operator,.token.url{color:#9a6e3a;background:hsla(0,0%,100%,.5)}.token.atrule,.token.attr-value,.token.keyword{color:#07a}.token.class-name,.token.function{color:#dd4a68}.token.important,.token.regex,.token.variable{color:#e90}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}.mce-content-body{overflow-wrap:break-word;word-wrap:break-word}.mce-content-body .mce-visual-caret{background-color:#000;background-color:currentColor;position:absolute}.mce-content-body .mce-visual-caret-hidden{display:none}.mce-content-body [data-mce-caret]{left:-1000px;margin:0;padding:0;position:absolute;right:auto;top:0}.mce-content-body .mce-offscreen-selection{left:-2000000px;max-width:1000000px;position:absolute}.mce-content-body [contentEditable=false]{cursor:default}.mce-content-body [contentEditable=true]{cursor:text}.tox-cursor-format-painter{cursor:url(\"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%0A%20%20%3Cg%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%0A%20%20%20%20%3Cpath%20fill%3D%22%23000%22%20fill-rule%3D%22nonzero%22%20d%3D%22M15%2C6%20C15%2C5.45%2014.55%2C5%2014%2C5%20L6%2C5%20C5.45%2C5%205%2C5.45%205%2C6%20L5%2C10%20C5%2C10.55%205.45%2C11%206%2C11%20L14%2C11%20C14.55%2C11%2015%2C10.55%2015%2C10%20L15%2C9%20L16%2C9%20L16%2C12%20L9%2C12%20L9%2C19%20C9%2C19.55%209.45%2C20%2010%2C20%20L11%2C20%20C11.55%2C20%2012%2C19.55%2012%2C19%20L12%2C14%20L18%2C14%20L18%2C7%20L15%2C7%20L15%2C6%20Z%22%2F%3E%0A%20%20%20%20%3Cpath%20fill%3D%22%23000%22%20fill-rule%3D%22nonzero%22%20d%3D%22M1%2C1%20L8.25%2C1%20C8.66421356%2C1%209%2C1.33578644%209%2C1.75%20L9%2C1.75%20C9%2C2.16421356%208.66421356%2C2.5%208.25%2C2.5%20L2.5%2C2.5%20L2.5%2C8.25%20C2.5%2C8.66421356%202.16421356%2C9%201.75%2C9%20L1.75%2C9%20C1.33578644%2C9%201%2C8.66421356%201%2C8.25%20L1%2C1%20Z%22%2F%3E%0A%20%20%3C%2Fg%3E%0A%3C%2Fsvg%3E%0A\"),default}div.mce-footnotes hr{margin-inline-end:auto;margin-inline-start:0;width:25%}div.mce-footnotes li>a.mce-footnotes-backlink{text-decoration:none}@media print{sup.mce-footnote a{color:#000;text-decoration:none}div.mce-footnotes{break-inside:avoid;width:100%}div.mce-footnotes li>a.mce-footnotes-backlink{display:none}}.mce-content-body figure.align-left{float:left}.mce-content-body figure.align-right{float:right}.mce-content-body figure.image.align-center{display:table;margin-left:auto;margin-right:auto}.mce-preview-object{border:1px solid gray;display:inline-block;line-height:0;margin:0 2px 0 2px;position:relative}.mce-preview-object .mce-shim{background:url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);height:100%;left:0;position:absolute;top:0;width:100%}.mce-preview-object[data-mce-selected=\"2\"] .mce-shim{display:none}.mce-content-body .mce-mergetag{cursor:default!important;-webkit-user-select:none;-moz-user-select:none;user-select:none}.mce-content-body .mce-mergetag:hover{background-color:rgba(0,108,231,.1)}.mce-content-body .mce-mergetag-affix{background-color:rgba(0,108,231,.1);color:#006ce7}.mce-object{background:transparent url(\"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Cpath%20d%3D%22M4%203h16a1%201%200%200%201%201%201v16a1%201%200%200%201-1%201H4a1%201%200%200%201-1-1V4a1%201%200%200%201%201-1zm1%202v14h14V5H5zm4.79%202.565l5.64%204.028a.5.5%200%200%201%200%20.814l-5.64%204.028a.5.5%200%200%201-.79-.407V7.972a.5.5%200%200%201%20.79-.407z%22%2F%3E%3C%2Fsvg%3E%0A\") no-repeat center;border:1px dashed #aaa}.mce-pagebreak{border:1px dashed #aaa;cursor:default;display:block;height:5px;margin-top:15px;page-break-before:always;width:100%}@media print{.mce-pagebreak{border:0}}.tiny-pageembed .mce-shim{background:url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);height:100%;left:0;position:absolute;top:0;width:100%}.tiny-pageembed[data-mce-selected=\"2\"] .mce-shim{display:none}.tiny-pageembed{display:inline-block;position:relative}.tiny-pageembed--16by9,.tiny-pageembed--1by1,.tiny-pageembed--21by9,.tiny-pageembed--4by3{display:block;overflow:hidden;padding:0;position:relative;width:100%}.tiny-pageembed--21by9{padding-top:42.857143%}.tiny-pageembed--16by9{padding-top:56.25%}.tiny-pageembed--4by3{padding-top:75%}.tiny-pageembed--1by1{padding-top:100%}.tiny-pageembed--16by9 iframe,.tiny-pageembed--1by1 iframe,.tiny-pageembed--21by9 iframe,.tiny-pageembed--4by3 iframe{border:0;height:100%;left:0;position:absolute;top:0;width:100%}.mce-content-body[data-mce-placeholder]{position:relative}.mce-content-body[data-mce-placeholder]:not(.mce-visualblocks)::before{color:rgba(34,47,62,.7);content:attr(data-mce-placeholder);position:absolute}.mce-content-body:not([dir=rtl])[data-mce-placeholder]:not(.mce-visualblocks)::before{left:1px}.mce-content-body[dir=rtl][data-mce-placeholder]:not(.mce-visualblocks)::before{right:1px}.mce-content-body div.mce-resizehandle{background-color:#4099ff;border-color:#4099ff;border-style:solid;border-width:1px;box-sizing:border-box;height:10px;position:absolute;width:10px;z-index:1298}.mce-content-body div.mce-resizehandle:hover{background-color:#4099ff}.mce-content-body div.mce-resizehandle:nth-of-type(1){cursor:nwse-resize}.mce-content-body div.mce-resizehandle:nth-of-type(2){cursor:nesw-resize}.mce-content-body div.mce-resizehandle:nth-of-type(3){cursor:nwse-resize}.mce-content-body div.mce-resizehandle:nth-of-type(4){cursor:nesw-resize}.mce-content-body .mce-resize-backdrop{z-index:10000}.mce-content-body .mce-clonedresizable{cursor:default;opacity:.5;outline:1px dashed #000;position:absolute;z-index:10001}.mce-content-body .mce-clonedresizable.mce-resizetable-columns td,.mce-content-body .mce-clonedresizable.mce-resizetable-columns th{border:0}.mce-content-body .mce-resize-helper{background:#555;background:rgba(0,0,0,.75);border:1px;border-radius:3px;color:#fff;display:none;font-family:sans-serif;font-size:12px;line-height:14px;margin:5px 10px;padding:5px;position:absolute;white-space:nowrap;z-index:10002}.tox-rtc-user-selection{position:relative}.tox-rtc-user-cursor{bottom:0;cursor:default;position:absolute;top:0;width:2px}.tox-rtc-user-cursor::before{background-color:inherit;border-radius:50%;content:'';display:block;height:8px;position:absolute;right:-3px;top:-3px;width:8px}.tox-rtc-user-cursor:hover::after{background-color:inherit;border-radius:100px;box-sizing:border-box;color:#fff;content:attr(data-user);display:block;font-size:12px;font-weight:700;left:-5px;min-height:8px;min-width:8px;padding:0 12px;position:absolute;top:-11px;white-space:nowrap;z-index:1000}.tox-rtc-user-selection--1 .tox-rtc-user-cursor{background-color:#2dc26b}.tox-rtc-user-selection--2 .tox-rtc-user-cursor{background-color:#e03e2d}.tox-rtc-user-selection--3 .tox-rtc-user-cursor{background-color:#f1c40f}.tox-rtc-user-selection--4 .tox-rtc-user-cursor{background-color:#3598db}.tox-rtc-user-selection--5 .tox-rtc-user-cursor{background-color:#b96ad9}.tox-rtc-user-selection--6 .tox-rtc-user-cursor{background-color:#e67e23}.tox-rtc-user-selection--7 .tox-rtc-user-cursor{background-color:#aaa69d}.tox-rtc-user-selection--8 .tox-rtc-user-cursor{background-color:#f368e0}.tox-rtc-remote-image{background:#eaeaea url(\"data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%2236%22%20height%3D%2212%22%20viewBox%3D%220%200%2036%2012%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%20%20%3Ccircle%20cx%3D%226%22%20cy%3D%226%22%20r%3D%223%22%20fill%3D%22rgba(0%2C%200%2C%200%2C%20.2)%22%3E%0A%20%20%20%20%3Canimate%20attributeName%3D%22r%22%20values%3D%223%3B5%3B3%22%20calcMode%3D%22linear%22%20dur%3D%221s%22%20repeatCount%3D%22indefinite%22%20%2F%3E%0A%20%20%3C%2Fcircle%3E%0A%20%20%3Ccircle%20cx%3D%2218%22%20cy%3D%226%22%20r%3D%223%22%20fill%3D%22rgba(0%2C%200%2C%200%2C%20.2)%22%3E%0A%20%20%20%20%3Canimate%20attributeName%3D%22r%22%20values%3D%223%3B5%3B3%22%20calcMode%3D%22linear%22%20begin%3D%22.33s%22%20dur%3D%221s%22%20repeatCount%3D%22indefinite%22%20%2F%3E%0A%20%20%3C%2Fcircle%3E%0A%20%20%3Ccircle%20cx%3D%2230%22%20cy%3D%226%22%20r%3D%223%22%20fill%3D%22rgba(0%2C%200%2C%200%2C%20.2)%22%3E%0A%20%20%20%20%3Canimate%20attributeName%3D%22r%22%20values%3D%223%3B5%3B3%22%20calcMode%3D%22linear%22%20begin%3D%22.66s%22%20dur%3D%221s%22%20repeatCount%3D%22indefinite%22%20%2F%3E%0A%20%20%3C%2Fcircle%3E%0A%3C%2Fsvg%3E%0A\") no-repeat center center;border:1px solid #ccc;min-height:240px;min-width:320px}.mce-match-marker{background:#aaa;color:#fff}.mce-match-marker-selected{background:#39f;color:#fff}.mce-match-marker-selected::-moz-selection{background:#39f;color:#fff}.mce-match-marker-selected::selection{background:#39f;color:#fff}.mce-content-body audio[data-mce-selected],.mce-content-body details[data-mce-selected],.mce-content-body embed[data-mce-selected],.mce-content-body img[data-mce-selected],.mce-content-body object[data-mce-selected],.mce-content-body table[data-mce-selected],.mce-content-body video[data-mce-selected]{outline:3px solid #b4d7ff}.mce-content-body hr[data-mce-selected]{outline:3px solid #b4d7ff;outline-offset:1px}.mce-content-body [contentEditable=false] [contentEditable=true]:focus{outline:3px solid #b4d7ff}.mce-content-body [contentEditable=false] [contentEditable=true]:hover{outline:3px solid #b4d7ff}.mce-content-body [contentEditable=false][data-mce-selected]{cursor:not-allowed;outline:3px solid #b4d7ff}.mce-content-body.mce-content-readonly [contentEditable=true]:focus,.mce-content-body.mce-content-readonly [contentEditable=true]:hover{outline:0}.mce-content-body [data-mce-selected=inline-boundary]{background-color:#b4d7ff}.mce-content-body .mce-edit-focus{outline:3px solid #b4d7ff}.mce-content-body td[data-mce-selected],.mce-content-body th[data-mce-selected]{position:relative}.mce-content-body td[data-mce-selected]::-moz-selection,.mce-content-body th[data-mce-selected]::-moz-selection{background:0 0}.mce-content-body td[data-mce-selected]::selection,.mce-content-body th[data-mce-selected]::selection{background:0 0}.mce-content-body td[data-mce-selected] *,.mce-content-body th[data-mce-selected] *{outline:0;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.mce-content-body td[data-mce-selected]::after,.mce-content-body th[data-mce-selected]::after{background-color:rgba(180,215,255,.7);border:1px solid rgba(180,215,255,.7);bottom:-1px;content:'';left:-1px;mix-blend-mode:multiply;position:absolute;right:-1px;top:-1px}@media screen and (-ms-high-contrast:active),(-ms-high-contrast:none){.mce-content-body td[data-mce-selected]::after,.mce-content-body th[data-mce-selected]::after{border-color:rgba(0,84,180,.7)}}.mce-content-body img[data-mce-selected]::-moz-selection{background:0 0}.mce-content-body img[data-mce-selected]::selection{background:0 0}.ephox-snooker-resizer-bar{background-color:#b4d7ff;opacity:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ephox-snooker-resizer-cols{cursor:col-resize}.ephox-snooker-resizer-rows{cursor:row-resize}.ephox-snooker-resizer-bar.ephox-snooker-resizer-bar-dragging{opacity:1}.mce-spellchecker-word{background-image:url(\"data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D'4'%20height%3D'4'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20stroke%3D'%23ff0000'%20fill%3D'none'%20stroke-linecap%3D'round'%20stroke-opacity%3D'.75'%20d%3D'M0%203L2%201%204%203'%2F%3E%3C%2Fsvg%3E%0A\");background-position:0 calc(100% + 1px);background-repeat:repeat-x;background-size:auto 6px;cursor:default;height:2rem}.mce-spellchecker-grammar{background-image:url(\"data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D'4'%20height%3D'4'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20stroke%3D'%2300A835'%20fill%3D'none'%20stroke-linecap%3D'round'%20d%3D'M0%203L2%201%204%203'%2F%3E%3C%2Fsvg%3E%0A\");background-position:0 calc(100% + 1px);background-repeat:repeat-x;background-size:auto 6px;cursor:default}.mce-toc{border:1px solid gray}.mce-toc h2{margin:4px}.mce-toc ul>li{list-style-type:none}[data-mce-block]{display:block}.mce-item-table:not([border]),.mce-item-table:not([border]) caption,.mce-item-table:not([border]) td,.mce-item-table:not([border]) th,.mce-item-table[border=\"0\"],.mce-item-table[border=\"0\"] caption,.mce-item-table[border=\"0\"] td,.mce-item-table[border=\"0\"] th,table[style*=\"border-width: 0px\"],table[style*=\"border-width: 0px\"] caption,table[style*=\"border-width: 0px\"] td,table[style*=\"border-width: 0px\"] th{border:1px dashed #bbb}.mce-visualblocks address,.mce-visualblocks article,.mce-visualblocks aside,.mce-visualblocks blockquote,.mce-visualblocks div:not([data-mce-bogus]),.mce-visualblocks dl,.mce-visualblocks figcaption,.mce-visualblocks figure,.mce-visualblocks h1,.mce-visualblocks h2,.mce-visualblocks h3,.mce-visualblocks h4,.mce-visualblocks h5,.mce-visualblocks h6,.mce-visualblocks hgroup,.mce-visualblocks ol,.mce-visualblocks p,.mce-visualblocks pre,.mce-visualblocks section,.mce-visualblocks ul{background-repeat:no-repeat;border:1px dashed #bbb;margin-left:3px;padding-top:10px}.mce-visualblocks p{background-image:url(data:image/gif;base64,R0lGODlhCQAJAJEAAAAAAP///7u7u////yH5BAEAAAMALAAAAAAJAAkAAAIQnG+CqCN/mlyvsRUpThG6AgA7)}.mce-visualblocks h1{background-image:url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybGu1JuxHoAfRNRW3TWXyF2YiRUAOw==)}.mce-visualblocks h2{background-image:url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8Hybbx4oOuqgTynJd6bGlWg3DkJzoaUAAAOw==)}.mce-visualblocks h3{background-image:url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIZjI8Hybbx4oOuqgTynJf2Ln2NOHpQpmhAAQA7)}.mce-visualblocks h4{background-image:url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxInR0zqeAdhtJlXwV1oCll2HaWgAAOw==)}.mce-visualblocks h5{background-image:url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxIoiuwjane4iq5GlW05GgIkIZUAAAOw==)}.mce-visualblocks h6{background-image:url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxIoiuwjan04jep1iZ1XRlAo5bVgAAOw==)}.mce-visualblocks div:not([data-mce-bogus]){background-image:url(data:image/gif;base64,R0lGODlhEgAKAIABALu7u////yH5BAEAAAEALAAAAAASAAoAAAIfjI9poI0cgDywrhuxfbrzDEbQM2Ei5aRjmoySW4pAAQA7)}.mce-visualblocks section{background-image:url(data:image/gif;base64,R0lGODlhKAAKAIABALu7u////yH5BAEAAAEALAAAAAAoAAoAAAI5jI+pywcNY3sBWHdNrplytD2ellDeSVbp+GmWqaDqDMepc8t17Y4vBsK5hDyJMcI6KkuYU+jpjLoKADs=)}.mce-visualblocks article{background-image:url(data:image/gif;base64,R0lGODlhKgAKAIABALu7u////yH5BAEAAAEALAAAAAAqAAoAAAI6jI+pywkNY3wG0GBvrsd2tXGYSGnfiF7ikpXemTpOiJScasYoDJJrjsG9gkCJ0ag6KhmaIe3pjDYBBQA7)}.mce-visualblocks blockquote{background-image:url(data:image/gif;base64,R0lGODlhPgAKAIABALu7u////yH5BAEAAAEALAAAAAA+AAoAAAJPjI+py+0Knpz0xQDyuUhvfoGgIX5iSKZYgq5uNL5q69asZ8s5rrf0yZmpNkJZzFesBTu8TOlDVAabUyatguVhWduud3EyiUk45xhTTgMBBQA7)}.mce-visualblocks address{background-image:url(data:image/gif;base64,R0lGODlhLQAKAIABALu7u////yH5BAEAAAEALAAAAAAtAAoAAAI/jI+pywwNozSP1gDyyZcjb3UaRpXkWaXmZW4OqKLhBmLs+K263DkJK7OJeifh7FicKD9A1/IpGdKkyFpNmCkAADs=)}.mce-visualblocks pre{background-image:url(data:image/gif;base64,R0lGODlhFQAKAIABALu7uwAAACH5BAEAAAEALAAAAAAVAAoAAAIjjI+ZoN0cgDwSmnpz1NCueYERhnibZVKLNnbOq8IvKpJtVQAAOw==)}.mce-visualblocks figure{background-image:url(data:image/gif;base64,R0lGODlhJAAKAIAAALu7u////yH5BAEAAAEALAAAAAAkAAoAAAI0jI+py+2fwAHUSFvD3RlvG4HIp4nX5JFSpnZUJ6LlrM52OE7uSWosBHScgkSZj7dDKnWAAgA7)}.mce-visualblocks figcaption{border:1px dashed #bbb}.mce-visualblocks hgroup{background-image:url(data:image/gif;base64,R0lGODlhJwAKAIABALu7uwAAACH5BAEAAAEALAAAAAAnAAoAAAI3jI+pywYNI3uB0gpsRtt5fFnfNZaVSYJil4Wo03Hv6Z62uOCgiXH1kZIIJ8NiIxRrAZNMZAtQAAA7)}.mce-visualblocks aside{background-image:url(data:image/gif;base64,R0lGODlhHgAKAIABAKqqqv///yH5BAEAAAEALAAAAAAeAAoAAAItjI+pG8APjZOTzgtqy7I3f1yehmQcFY4WKZbqByutmW4aHUd6vfcVbgudgpYCADs=)}.mce-visualblocks ul{background-image:url(data:image/gif;base64,R0lGODlhDQAKAIAAALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybGuYnqUVSjvw26DzzXiqIDlVwAAOw==)}.mce-visualblocks ol{background-image:url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybH6HHt0qourxC6CvzXieHyeWQAAOw==)}.mce-visualblocks dl{background-image:url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybEOnmOvUoWznTqeuEjNSCqeGRUAOw==)}.mce-visualblocks:not([dir=rtl]) address,.mce-visualblocks:not([dir=rtl]) article,.mce-visualblocks:not([dir=rtl]) aside,.mce-visualblocks:not([dir=rtl]) blockquote,.mce-visualblocks:not([dir=rtl]) div:not([data-mce-bogus]),.mce-visualblocks:not([dir=rtl]) dl,.mce-visualblocks:not([dir=rtl]) figcaption,.mce-visualblocks:not([dir=rtl]) figure,.mce-visualblocks:not([dir=rtl]) h1,.mce-visualblocks:not([dir=rtl]) h2,.mce-visualblocks:not([dir=rtl]) h3,.mce-visualblocks:not([dir=rtl]) h4,.mce-visualblocks:not([dir=rtl]) h5,.mce-visualblocks:not([dir=rtl]) h6,.mce-visualblocks:not([dir=rtl]) hgroup,.mce-visualblocks:not([dir=rtl]) ol,.mce-visualblocks:not([dir=rtl]) p,.mce-visualblocks:not([dir=rtl]) pre,.mce-visualblocks:not([dir=rtl]) section,.mce-visualblocks:not([dir=rtl]) ul{margin-left:3px}.mce-visualblocks[dir=rtl] address,.mce-visualblocks[dir=rtl] article,.mce-visualblocks[dir=rtl] aside,.mce-visualblocks[dir=rtl] blockquote,.mce-visualblocks[dir=rtl] div:not([data-mce-bogus]),.mce-visualblocks[dir=rtl] dl,.mce-visualblocks[dir=rtl] figcaption,.mce-visualblocks[dir=rtl] figure,.mce-visualblocks[dir=rtl] h1,.mce-visualblocks[dir=rtl] h2,.mce-visualblocks[dir=rtl] h3,.mce-visualblocks[dir=rtl] h4,.mce-visualblocks[dir=rtl] h5,.mce-visualblocks[dir=rtl] h6,.mce-visualblocks[dir=rtl] hgroup,.mce-visualblocks[dir=rtl] ol,.mce-visualblocks[dir=rtl] p,.mce-visualblocks[dir=rtl] pre,.mce-visualblocks[dir=rtl] section,.mce-visualblocks[dir=rtl] ul{background-position-x:right;margin-right:3px}.mce-nbsp,.mce-shy{background:#aaa}.mce-shy::after{content:'-'}") +//# sourceMappingURL=content.inline.js.map diff --git a/tinymce-resource/skins/ui/oxide-dark/content.inline.min.css b/tinymce-resource/skins/ui/oxide-dark/content.inline.min.css new file mode 100644 index 000000000..e272cc748 --- /dev/null +++ b/tinymce-resource/skins/ui/oxide-dark/content.inline.min.css @@ -0,0 +1 @@ +.mce-content-body .mce-item-anchor{background:transparent url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D'8'%20height%3D'12'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20d%3D'M0%200L8%200%208%2012%204.09117821%209%200%2012z'%2F%3E%3C%2Fsvg%3E%0A") no-repeat center}.mce-content-body .mce-item-anchor:empty{cursor:default;display:inline-block;height:12px!important;padding:0 2px;-webkit-user-modify:read-only;-moz-user-modify:read-only;-webkit-user-select:all;-moz-user-select:all;user-select:all;width:8px!important}.mce-content-body .mce-item-anchor:not(:empty){background-position-x:2px;display:inline-block;padding-left:12px}.mce-content-body .mce-item-anchor[data-mce-selected]{outline-offset:1px}.tox-comments-visible .tox-comment[contenteditable=false]:not([data-mce-selected]),.tox-comments-visible span.tox-comment img:not([data-mce-selected]),.tox-comments-visible span.tox-comment span.mce-preview-object:not([data-mce-selected]),.tox-comments-visible span.tox-comment>audio:not([data-mce-selected]),.tox-comments-visible span.tox-comment>video:not([data-mce-selected]){outline:3px solid #ffe89d}.tox-comments-visible .tox-comment[contenteditable=false][data-mce-annotation-active=true]:not([data-mce-selected]){outline:3px solid #fed635}.tox-comments-visible span.tox-comment[data-mce-annotation-active=true] img:not([data-mce-selected]),.tox-comments-visible span.tox-comment[data-mce-annotation-active=true] span.mce-preview-object:not([data-mce-selected]),.tox-comments-visible span.tox-comment[data-mce-annotation-active=true]>audio:not([data-mce-selected]),.tox-comments-visible span.tox-comment[data-mce-annotation-active=true]>video:not([data-mce-selected]){outline:3px solid #fed635}.tox-comments-visible span.tox-comment:not([data-mce-selected]){background-color:#ffe89d;outline:0}.tox-comments-visible span.tox-comment[data-mce-annotation-active=true]:not([data-mce-selected=inline-boundary]){background-color:#fed635}.tox-checklist>li:not(.tox-checklist--hidden){list-style:none;margin:.25em 0}.tox-checklist>li:not(.tox-checklist--hidden)::before{content:url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cg%20id%3D%22checklist-unchecked%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Crect%20id%3D%22Rectangle%22%20width%3D%2215%22%20height%3D%2215%22%20x%3D%22.5%22%20y%3D%22.5%22%20fill-rule%3D%22nonzero%22%20stroke%3D%22%234C4C4C%22%20rx%3D%222%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%0A");cursor:pointer;height:1em;margin-left:-1.5em;margin-top:.125em;position:absolute;width:1em}.tox-checklist li:not(.tox-checklist--hidden).tox-checklist--checked::before{content:url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cg%20id%3D%22checklist-checked%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Crect%20id%3D%22Rectangle%22%20width%3D%2216%22%20height%3D%2216%22%20fill%3D%22%234099FF%22%20fill-rule%3D%22nonzero%22%20rx%3D%222%22%2F%3E%3Cpath%20id%3D%22Path%22%20fill%3D%22%23FFF%22%20fill-rule%3D%22nonzero%22%20d%3D%22M11.5703186%2C3.14417309%20C11.8516238%2C2.73724603%2012.4164781%2C2.62829933%2012.83558%2C2.89774797%20C13.260121%2C3.17069355%2013.3759736%2C3.72932262%2013.0909105%2C4.14168582%20L7.7580587%2C11.8560195%20C7.43776896%2C12.3193404%206.76483983%2C12.3852142%206.35607322%2C11.9948725%20L3.02491697%2C8.8138662%20C2.66090143%2C8.46625845%202.65798871%2C7.89594698%203.01850234%2C7.54483354%20C3.373942%2C7.19866177%203.94940006%2C7.19592841%204.30829608%2C7.5386474%20L6.85276923%2C9.9684299%20L11.5703186%2C3.14417309%20Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%0A")}[dir=rtl] .tox-checklist>li:not(.tox-checklist--hidden)::before{margin-left:0;margin-right:-1.5em}code[class*=language-],pre[class*=language-]{color:#000;background:0 0;text-shadow:0 1px #fff;font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;tab-size:4;-webkit-hyphens:none;hyphens:none}code[class*=language-] ::-moz-selection,code[class*=language-]::-moz-selection,pre[class*=language-] ::-moz-selection,pre[class*=language-]::-moz-selection{text-shadow:none;background:#b3d4fc}code[class*=language-] ::selection,code[class*=language-]::selection,pre[class*=language-] ::selection,pre[class*=language-]::selection{text-shadow:none;background:#b3d4fc}@media print{code[class*=language-],pre[class*=language-]{text-shadow:none}}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background:#f5f2f0}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#708090}.token.punctuation{color:#999}.token.namespace{opacity:.7}.token.boolean,.token.constant,.token.deleted,.token.number,.token.property,.token.symbol,.token.tag{color:#905}.token.attr-name,.token.builtin,.token.char,.token.inserted,.token.selector,.token.string{color:#690}.language-css .token.string,.style .token.string,.token.entity,.token.operator,.token.url{color:#9a6e3a;background:hsla(0,0%,100%,.5)}.token.atrule,.token.attr-value,.token.keyword{color:#07a}.token.class-name,.token.function{color:#dd4a68}.token.important,.token.regex,.token.variable{color:#e90}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}.mce-content-body{overflow-wrap:break-word;word-wrap:break-word}.mce-content-body .mce-visual-caret{background-color:#000;background-color:currentColor;position:absolute}.mce-content-body .mce-visual-caret-hidden{display:none}.mce-content-body [data-mce-caret]{left:-1000px;margin:0;padding:0;position:absolute;right:auto;top:0}.mce-content-body .mce-offscreen-selection{left:-2000000px;max-width:1000000px;position:absolute}.mce-content-body [contentEditable=false]{cursor:default}.mce-content-body [contentEditable=true]{cursor:text}.tox-cursor-format-painter{cursor:url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%0A%20%20%3Cg%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%0A%20%20%20%20%3Cpath%20fill%3D%22%23000%22%20fill-rule%3D%22nonzero%22%20d%3D%22M15%2C6%20C15%2C5.45%2014.55%2C5%2014%2C5%20L6%2C5%20C5.45%2C5%205%2C5.45%205%2C6%20L5%2C10%20C5%2C10.55%205.45%2C11%206%2C11%20L14%2C11%20C14.55%2C11%2015%2C10.55%2015%2C10%20L15%2C9%20L16%2C9%20L16%2C12%20L9%2C12%20L9%2C19%20C9%2C19.55%209.45%2C20%2010%2C20%20L11%2C20%20C11.55%2C20%2012%2C19.55%2012%2C19%20L12%2C14%20L18%2C14%20L18%2C7%20L15%2C7%20L15%2C6%20Z%22%2F%3E%0A%20%20%20%20%3Cpath%20fill%3D%22%23000%22%20fill-rule%3D%22nonzero%22%20d%3D%22M1%2C1%20L8.25%2C1%20C8.66421356%2C1%209%2C1.33578644%209%2C1.75%20L9%2C1.75%20C9%2C2.16421356%208.66421356%2C2.5%208.25%2C2.5%20L2.5%2C2.5%20L2.5%2C8.25%20C2.5%2C8.66421356%202.16421356%2C9%201.75%2C9%20L1.75%2C9%20C1.33578644%2C9%201%2C8.66421356%201%2C8.25%20L1%2C1%20Z%22%2F%3E%0A%20%20%3C%2Fg%3E%0A%3C%2Fsvg%3E%0A"),default}div.mce-footnotes hr{margin-inline-end:auto;margin-inline-start:0;width:25%}div.mce-footnotes li>a.mce-footnotes-backlink{text-decoration:none}@media print{sup.mce-footnote a{color:#000;text-decoration:none}div.mce-footnotes{break-inside:avoid;width:100%}div.mce-footnotes li>a.mce-footnotes-backlink{display:none}}.mce-content-body figure.align-left{float:left}.mce-content-body figure.align-right{float:right}.mce-content-body figure.image.align-center{display:table;margin-left:auto;margin-right:auto}.mce-preview-object{border:1px solid gray;display:inline-block;line-height:0;margin:0 2px 0 2px;position:relative}.mce-preview-object .mce-shim{background:url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);height:100%;left:0;position:absolute;top:0;width:100%}.mce-preview-object[data-mce-selected="2"] .mce-shim{display:none}.mce-content-body .mce-mergetag{cursor:default!important;-webkit-user-select:none;-moz-user-select:none;user-select:none}.mce-content-body .mce-mergetag:hover{background-color:rgba(0,108,231,.1)}.mce-content-body .mce-mergetag-affix{background-color:rgba(0,108,231,.1);color:#006ce7}.mce-object{background:transparent url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Cpath%20d%3D%22M4%203h16a1%201%200%200%201%201%201v16a1%201%200%200%201-1%201H4a1%201%200%200%201-1-1V4a1%201%200%200%201%201-1zm1%202v14h14V5H5zm4.79%202.565l5.64%204.028a.5.5%200%200%201%200%20.814l-5.64%204.028a.5.5%200%200%201-.79-.407V7.972a.5.5%200%200%201%20.79-.407z%22%2F%3E%3C%2Fsvg%3E%0A") no-repeat center;border:1px dashed #aaa}.mce-pagebreak{border:1px dashed #aaa;cursor:default;display:block;height:5px;margin-top:15px;page-break-before:always;width:100%}@media print{.mce-pagebreak{border:0}}.tiny-pageembed .mce-shim{background:url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);height:100%;left:0;position:absolute;top:0;width:100%}.tiny-pageembed[data-mce-selected="2"] .mce-shim{display:none}.tiny-pageembed{display:inline-block;position:relative}.tiny-pageembed--16by9,.tiny-pageembed--1by1,.tiny-pageembed--21by9,.tiny-pageembed--4by3{display:block;overflow:hidden;padding:0;position:relative;width:100%}.tiny-pageembed--21by9{padding-top:42.857143%}.tiny-pageembed--16by9{padding-top:56.25%}.tiny-pageembed--4by3{padding-top:75%}.tiny-pageembed--1by1{padding-top:100%}.tiny-pageembed--16by9 iframe,.tiny-pageembed--1by1 iframe,.tiny-pageembed--21by9 iframe,.tiny-pageembed--4by3 iframe{border:0;height:100%;left:0;position:absolute;top:0;width:100%}.mce-content-body[data-mce-placeholder]{position:relative}.mce-content-body[data-mce-placeholder]:not(.mce-visualblocks)::before{color:rgba(34,47,62,.7);content:attr(data-mce-placeholder);position:absolute}.mce-content-body:not([dir=rtl])[data-mce-placeholder]:not(.mce-visualblocks)::before{left:1px}.mce-content-body[dir=rtl][data-mce-placeholder]:not(.mce-visualblocks)::before{right:1px}.mce-content-body div.mce-resizehandle{background-color:#4099ff;border-color:#4099ff;border-style:solid;border-width:1px;box-sizing:border-box;height:10px;position:absolute;width:10px;z-index:1298}.mce-content-body div.mce-resizehandle:hover{background-color:#4099ff}.mce-content-body div.mce-resizehandle:nth-of-type(1){cursor:nwse-resize}.mce-content-body div.mce-resizehandle:nth-of-type(2){cursor:nesw-resize}.mce-content-body div.mce-resizehandle:nth-of-type(3){cursor:nwse-resize}.mce-content-body div.mce-resizehandle:nth-of-type(4){cursor:nesw-resize}.mce-content-body .mce-resize-backdrop{z-index:10000}.mce-content-body .mce-clonedresizable{cursor:default;opacity:.5;outline:1px dashed #000;position:absolute;z-index:10001}.mce-content-body .mce-clonedresizable.mce-resizetable-columns td,.mce-content-body .mce-clonedresizable.mce-resizetable-columns th{border:0}.mce-content-body .mce-resize-helper{background:#555;background:rgba(0,0,0,.75);border:1px;border-radius:3px;color:#fff;display:none;font-family:sans-serif;font-size:12px;line-height:14px;margin:5px 10px;padding:5px;position:absolute;white-space:nowrap;z-index:10002}.tox-rtc-user-selection{position:relative}.tox-rtc-user-cursor{bottom:0;cursor:default;position:absolute;top:0;width:2px}.tox-rtc-user-cursor::before{background-color:inherit;border-radius:50%;content:'';display:block;height:8px;position:absolute;right:-3px;top:-3px;width:8px}.tox-rtc-user-cursor:hover::after{background-color:inherit;border-radius:100px;box-sizing:border-box;color:#fff;content:attr(data-user);display:block;font-size:12px;font-weight:700;left:-5px;min-height:8px;min-width:8px;padding:0 12px;position:absolute;top:-11px;white-space:nowrap;z-index:1000}.tox-rtc-user-selection--1 .tox-rtc-user-cursor{background-color:#2dc26b}.tox-rtc-user-selection--2 .tox-rtc-user-cursor{background-color:#e03e2d}.tox-rtc-user-selection--3 .tox-rtc-user-cursor{background-color:#f1c40f}.tox-rtc-user-selection--4 .tox-rtc-user-cursor{background-color:#3598db}.tox-rtc-user-selection--5 .tox-rtc-user-cursor{background-color:#b96ad9}.tox-rtc-user-selection--6 .tox-rtc-user-cursor{background-color:#e67e23}.tox-rtc-user-selection--7 .tox-rtc-user-cursor{background-color:#aaa69d}.tox-rtc-user-selection--8 .tox-rtc-user-cursor{background-color:#f368e0}.tox-rtc-remote-image{background:#eaeaea url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%2236%22%20height%3D%2212%22%20viewBox%3D%220%200%2036%2012%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%20%20%3Ccircle%20cx%3D%226%22%20cy%3D%226%22%20r%3D%223%22%20fill%3D%22rgba(0%2C%200%2C%200%2C%20.2)%22%3E%0A%20%20%20%20%3Canimate%20attributeName%3D%22r%22%20values%3D%223%3B5%3B3%22%20calcMode%3D%22linear%22%20dur%3D%221s%22%20repeatCount%3D%22indefinite%22%20%2F%3E%0A%20%20%3C%2Fcircle%3E%0A%20%20%3Ccircle%20cx%3D%2218%22%20cy%3D%226%22%20r%3D%223%22%20fill%3D%22rgba(0%2C%200%2C%200%2C%20.2)%22%3E%0A%20%20%20%20%3Canimate%20attributeName%3D%22r%22%20values%3D%223%3B5%3B3%22%20calcMode%3D%22linear%22%20begin%3D%22.33s%22%20dur%3D%221s%22%20repeatCount%3D%22indefinite%22%20%2F%3E%0A%20%20%3C%2Fcircle%3E%0A%20%20%3Ccircle%20cx%3D%2230%22%20cy%3D%226%22%20r%3D%223%22%20fill%3D%22rgba(0%2C%200%2C%200%2C%20.2)%22%3E%0A%20%20%20%20%3Canimate%20attributeName%3D%22r%22%20values%3D%223%3B5%3B3%22%20calcMode%3D%22linear%22%20begin%3D%22.66s%22%20dur%3D%221s%22%20repeatCount%3D%22indefinite%22%20%2F%3E%0A%20%20%3C%2Fcircle%3E%0A%3C%2Fsvg%3E%0A") no-repeat center center;border:1px solid #ccc;min-height:240px;min-width:320px}.mce-match-marker{background:#aaa;color:#fff}.mce-match-marker-selected{background:#39f;color:#fff}.mce-match-marker-selected::-moz-selection{background:#39f;color:#fff}.mce-match-marker-selected::selection{background:#39f;color:#fff}.mce-content-body audio[data-mce-selected],.mce-content-body details[data-mce-selected],.mce-content-body embed[data-mce-selected],.mce-content-body img[data-mce-selected],.mce-content-body object[data-mce-selected],.mce-content-body table[data-mce-selected],.mce-content-body video[data-mce-selected]{outline:3px solid #b4d7ff}.mce-content-body hr[data-mce-selected]{outline:3px solid #b4d7ff;outline-offset:1px}.mce-content-body [contentEditable=false] [contentEditable=true]:focus{outline:3px solid #b4d7ff}.mce-content-body [contentEditable=false] [contentEditable=true]:hover{outline:3px solid #b4d7ff}.mce-content-body [contentEditable=false][data-mce-selected]{cursor:not-allowed;outline:3px solid #b4d7ff}.mce-content-body.mce-content-readonly [contentEditable=true]:focus,.mce-content-body.mce-content-readonly [contentEditable=true]:hover{outline:0}.mce-content-body [data-mce-selected=inline-boundary]{background-color:#b4d7ff}.mce-content-body .mce-edit-focus{outline:3px solid #b4d7ff}.mce-content-body td[data-mce-selected],.mce-content-body th[data-mce-selected]{position:relative}.mce-content-body td[data-mce-selected]::-moz-selection,.mce-content-body th[data-mce-selected]::-moz-selection{background:0 0}.mce-content-body td[data-mce-selected]::selection,.mce-content-body th[data-mce-selected]::selection{background:0 0}.mce-content-body td[data-mce-selected] *,.mce-content-body th[data-mce-selected] *{outline:0;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.mce-content-body td[data-mce-selected]::after,.mce-content-body th[data-mce-selected]::after{background-color:rgba(180,215,255,.7);border:1px solid rgba(180,215,255,.7);bottom:-1px;content:'';left:-1px;mix-blend-mode:multiply;position:absolute;right:-1px;top:-1px}@media screen and (-ms-high-contrast:active),(-ms-high-contrast:none){.mce-content-body td[data-mce-selected]::after,.mce-content-body th[data-mce-selected]::after{border-color:rgba(0,84,180,.7)}}.mce-content-body img[data-mce-selected]::-moz-selection{background:0 0}.mce-content-body img[data-mce-selected]::selection{background:0 0}.ephox-snooker-resizer-bar{background-color:#b4d7ff;opacity:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ephox-snooker-resizer-cols{cursor:col-resize}.ephox-snooker-resizer-rows{cursor:row-resize}.ephox-snooker-resizer-bar.ephox-snooker-resizer-bar-dragging{opacity:1}.mce-spellchecker-word{background-image:url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D'4'%20height%3D'4'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20stroke%3D'%23ff0000'%20fill%3D'none'%20stroke-linecap%3D'round'%20stroke-opacity%3D'.75'%20d%3D'M0%203L2%201%204%203'%2F%3E%3C%2Fsvg%3E%0A");background-position:0 calc(100% + 1px);background-repeat:repeat-x;background-size:auto 6px;cursor:default;height:2rem}.mce-spellchecker-grammar{background-image:url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D'4'%20height%3D'4'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20stroke%3D'%2300A835'%20fill%3D'none'%20stroke-linecap%3D'round'%20d%3D'M0%203L2%201%204%203'%2F%3E%3C%2Fsvg%3E%0A");background-position:0 calc(100% + 1px);background-repeat:repeat-x;background-size:auto 6px;cursor:default}.mce-toc{border:1px solid gray}.mce-toc h2{margin:4px}.mce-toc ul>li{list-style-type:none}[data-mce-block]{display:block}.mce-item-table:not([border]),.mce-item-table:not([border]) caption,.mce-item-table:not([border]) td,.mce-item-table:not([border]) th,.mce-item-table[border="0"],.mce-item-table[border="0"] caption,.mce-item-table[border="0"] td,.mce-item-table[border="0"] th,table[style*="border-width: 0px"],table[style*="border-width: 0px"] caption,table[style*="border-width: 0px"] td,table[style*="border-width: 0px"] th{border:1px dashed #bbb}.mce-visualblocks address,.mce-visualblocks article,.mce-visualblocks aside,.mce-visualblocks blockquote,.mce-visualblocks div:not([data-mce-bogus]),.mce-visualblocks dl,.mce-visualblocks figcaption,.mce-visualblocks figure,.mce-visualblocks h1,.mce-visualblocks h2,.mce-visualblocks h3,.mce-visualblocks h4,.mce-visualblocks h5,.mce-visualblocks h6,.mce-visualblocks hgroup,.mce-visualblocks ol,.mce-visualblocks p,.mce-visualblocks pre,.mce-visualblocks section,.mce-visualblocks ul{background-repeat:no-repeat;border:1px dashed #bbb;margin-left:3px;padding-top:10px}.mce-visualblocks p{background-image:url(data:image/gif;base64,R0lGODlhCQAJAJEAAAAAAP///7u7u////yH5BAEAAAMALAAAAAAJAAkAAAIQnG+CqCN/mlyvsRUpThG6AgA7)}.mce-visualblocks h1{background-image:url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybGu1JuxHoAfRNRW3TWXyF2YiRUAOw==)}.mce-visualblocks h2{background-image:url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8Hybbx4oOuqgTynJd6bGlWg3DkJzoaUAAAOw==)}.mce-visualblocks h3{background-image:url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIZjI8Hybbx4oOuqgTynJf2Ln2NOHpQpmhAAQA7)}.mce-visualblocks h4{background-image:url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxInR0zqeAdhtJlXwV1oCll2HaWgAAOw==)}.mce-visualblocks h5{background-image:url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxIoiuwjane4iq5GlW05GgIkIZUAAAOw==)}.mce-visualblocks h6{background-image:url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxIoiuwjan04jep1iZ1XRlAo5bVgAAOw==)}.mce-visualblocks div:not([data-mce-bogus]){background-image:url(data:image/gif;base64,R0lGODlhEgAKAIABALu7u////yH5BAEAAAEALAAAAAASAAoAAAIfjI9poI0cgDywrhuxfbrzDEbQM2Ei5aRjmoySW4pAAQA7)}.mce-visualblocks section{background-image:url(data:image/gif;base64,R0lGODlhKAAKAIABALu7u////yH5BAEAAAEALAAAAAAoAAoAAAI5jI+pywcNY3sBWHdNrplytD2ellDeSVbp+GmWqaDqDMepc8t17Y4vBsK5hDyJMcI6KkuYU+jpjLoKADs=)}.mce-visualblocks article{background-image:url(data:image/gif;base64,R0lGODlhKgAKAIABALu7u////yH5BAEAAAEALAAAAAAqAAoAAAI6jI+pywkNY3wG0GBvrsd2tXGYSGnfiF7ikpXemTpOiJScasYoDJJrjsG9gkCJ0ag6KhmaIe3pjDYBBQA7)}.mce-visualblocks blockquote{background-image:url(data:image/gif;base64,R0lGODlhPgAKAIABALu7u////yH5BAEAAAEALAAAAAA+AAoAAAJPjI+py+0Knpz0xQDyuUhvfoGgIX5iSKZYgq5uNL5q69asZ8s5rrf0yZmpNkJZzFesBTu8TOlDVAabUyatguVhWduud3EyiUk45xhTTgMBBQA7)}.mce-visualblocks address{background-image:url(data:image/gif;base64,R0lGODlhLQAKAIABALu7u////yH5BAEAAAEALAAAAAAtAAoAAAI/jI+pywwNozSP1gDyyZcjb3UaRpXkWaXmZW4OqKLhBmLs+K263DkJK7OJeifh7FicKD9A1/IpGdKkyFpNmCkAADs=)}.mce-visualblocks pre{background-image:url(data:image/gif;base64,R0lGODlhFQAKAIABALu7uwAAACH5BAEAAAEALAAAAAAVAAoAAAIjjI+ZoN0cgDwSmnpz1NCueYERhnibZVKLNnbOq8IvKpJtVQAAOw==)}.mce-visualblocks figure{background-image:url(data:image/gif;base64,R0lGODlhJAAKAIAAALu7u////yH5BAEAAAEALAAAAAAkAAoAAAI0jI+py+2fwAHUSFvD3RlvG4HIp4nX5JFSpnZUJ6LlrM52OE7uSWosBHScgkSZj7dDKnWAAgA7)}.mce-visualblocks figcaption{border:1px dashed #bbb}.mce-visualblocks hgroup{background-image:url(data:image/gif;base64,R0lGODlhJwAKAIABALu7uwAAACH5BAEAAAEALAAAAAAnAAoAAAI3jI+pywYNI3uB0gpsRtt5fFnfNZaVSYJil4Wo03Hv6Z62uOCgiXH1kZIIJ8NiIxRrAZNMZAtQAAA7)}.mce-visualblocks aside{background-image:url(data:image/gif;base64,R0lGODlhHgAKAIABAKqqqv///yH5BAEAAAEALAAAAAAeAAoAAAItjI+pG8APjZOTzgtqy7I3f1yehmQcFY4WKZbqByutmW4aHUd6vfcVbgudgpYCADs=)}.mce-visualblocks ul{background-image:url(data:image/gif;base64,R0lGODlhDQAKAIAAALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybGuYnqUVSjvw26DzzXiqIDlVwAAOw==)}.mce-visualblocks ol{background-image:url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybH6HHt0qourxC6CvzXieHyeWQAAOw==)}.mce-visualblocks dl{background-image:url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybEOnmOvUoWznTqeuEjNSCqeGRUAOw==)}.mce-visualblocks:not([dir=rtl]) address,.mce-visualblocks:not([dir=rtl]) article,.mce-visualblocks:not([dir=rtl]) aside,.mce-visualblocks:not([dir=rtl]) blockquote,.mce-visualblocks:not([dir=rtl]) div:not([data-mce-bogus]),.mce-visualblocks:not([dir=rtl]) dl,.mce-visualblocks:not([dir=rtl]) figcaption,.mce-visualblocks:not([dir=rtl]) figure,.mce-visualblocks:not([dir=rtl]) h1,.mce-visualblocks:not([dir=rtl]) h2,.mce-visualblocks:not([dir=rtl]) h3,.mce-visualblocks:not([dir=rtl]) h4,.mce-visualblocks:not([dir=rtl]) h5,.mce-visualblocks:not([dir=rtl]) h6,.mce-visualblocks:not([dir=rtl]) hgroup,.mce-visualblocks:not([dir=rtl]) ol,.mce-visualblocks:not([dir=rtl]) p,.mce-visualblocks:not([dir=rtl]) pre,.mce-visualblocks:not([dir=rtl]) section,.mce-visualblocks:not([dir=rtl]) ul{margin-left:3px}.mce-visualblocks[dir=rtl] address,.mce-visualblocks[dir=rtl] article,.mce-visualblocks[dir=rtl] aside,.mce-visualblocks[dir=rtl] blockquote,.mce-visualblocks[dir=rtl] div:not([data-mce-bogus]),.mce-visualblocks[dir=rtl] dl,.mce-visualblocks[dir=rtl] figcaption,.mce-visualblocks[dir=rtl] figure,.mce-visualblocks[dir=rtl] h1,.mce-visualblocks[dir=rtl] h2,.mce-visualblocks[dir=rtl] h3,.mce-visualblocks[dir=rtl] h4,.mce-visualblocks[dir=rtl] h5,.mce-visualblocks[dir=rtl] h6,.mce-visualblocks[dir=rtl] hgroup,.mce-visualblocks[dir=rtl] ol,.mce-visualblocks[dir=rtl] p,.mce-visualblocks[dir=rtl] pre,.mce-visualblocks[dir=rtl] section,.mce-visualblocks[dir=rtl] ul{background-position-x:right;margin-right:3px}.mce-nbsp,.mce-shy{background:#aaa}.mce-shy::after{content:'-'} diff --git a/tinymce-resource/skins/ui/oxide-dark/content.js b/tinymce-resource/skins/ui/oxide-dark/content.js new file mode 100644 index 000000000..260cc8865 --- /dev/null +++ b/tinymce-resource/skins/ui/oxide-dark/content.js @@ -0,0 +1,2 @@ +tinymce.Resource.add('ui/dark/content.css', ".mce-content-body .mce-item-anchor{background:transparent url(\"data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D'8'%20height%3D'12'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20d%3D'M0%200L8%200%208%2012%204.09117821%209%200%2012z'%20fill%3D%22%23cccccc%22%2F%3E%3C%2Fsvg%3E%0A\") no-repeat center}.mce-content-body .mce-item-anchor:empty{cursor:default;display:inline-block;height:12px!important;padding:0 2px;-webkit-user-modify:read-only;-moz-user-modify:read-only;-webkit-user-select:all;-moz-user-select:all;user-select:all;width:8px!important}.mce-content-body .mce-item-anchor:not(:empty){background-position-x:2px;display:inline-block;padding-left:12px}.mce-content-body .mce-item-anchor[data-mce-selected]{outline-offset:1px}.tox-comments-visible .tox-comment[contenteditable=false]:not([data-mce-selected]),.tox-comments-visible span.tox-comment img:not([data-mce-selected]),.tox-comments-visible span.tox-comment span.mce-preview-object:not([data-mce-selected]),.tox-comments-visible span.tox-comment>audio:not([data-mce-selected]),.tox-comments-visible span.tox-comment>video:not([data-mce-selected]){outline:3px solid #ffe89d}.tox-comments-visible .tox-comment[contenteditable=false][data-mce-annotation-active=true]:not([data-mce-selected]){outline:3px solid #fed635}.tox-comments-visible span.tox-comment[data-mce-annotation-active=true] img:not([data-mce-selected]),.tox-comments-visible span.tox-comment[data-mce-annotation-active=true] span.mce-preview-object:not([data-mce-selected]),.tox-comments-visible span.tox-comment[data-mce-annotation-active=true]>audio:not([data-mce-selected]),.tox-comments-visible span.tox-comment[data-mce-annotation-active=true]>video:not([data-mce-selected]){outline:3px solid #fed635}.tox-comments-visible span.tox-comment:not([data-mce-selected]){background-color:#ffe89d;outline:0}.tox-comments-visible span.tox-comment[data-mce-annotation-active=true]:not([data-mce-selected=inline-boundary]){background-color:#fed635}.tox-checklist>li:not(.tox-checklist--hidden){list-style:none;margin:.25em 0}.tox-checklist>li:not(.tox-checklist--hidden)::before{content:url(\"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cg%20id%3D%22checklist-unchecked%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Crect%20id%3D%22Rectangle%22%20width%3D%2215%22%20height%3D%2215%22%20x%3D%22.5%22%20y%3D%22.5%22%20fill-rule%3D%22nonzero%22%20stroke%3D%22%236d737b%22%20rx%3D%222%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%0A\");cursor:pointer;height:1em;margin-left:-1.5em;margin-top:.125em;position:absolute;width:1em}.tox-checklist li:not(.tox-checklist--hidden).tox-checklist--checked::before{content:url(\"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cg%20id%3D%22checklist-checked%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Crect%20id%3D%22Rectangle%22%20width%3D%2216%22%20height%3D%2216%22%20fill%3D%22%234099FF%22%20fill-rule%3D%22nonzero%22%20rx%3D%222%22%2F%3E%3Cpath%20id%3D%22Path%22%20fill%3D%22%23FFF%22%20fill-rule%3D%22nonzero%22%20d%3D%22M11.5703186%2C3.14417309%20C11.8516238%2C2.73724603%2012.4164781%2C2.62829933%2012.83558%2C2.89774797%20C13.260121%2C3.17069355%2013.3759736%2C3.72932262%2013.0909105%2C4.14168582%20L7.7580587%2C11.8560195%20C7.43776896%2C12.3193404%206.76483983%2C12.3852142%206.35607322%2C11.9948725%20L3.02491697%2C8.8138662%20C2.66090143%2C8.46625845%202.65798871%2C7.89594698%203.01850234%2C7.54483354%20C3.373942%2C7.19866177%203.94940006%2C7.19592841%204.30829608%2C7.5386474%20L6.85276923%2C9.9684299%20L11.5703186%2C3.14417309%20Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%0A\")}[dir=rtl] .tox-checklist>li:not(.tox-checklist--hidden)::before{margin-left:0;margin-right:-1.5em}code[class*=language-],pre[class*=language-]{color:#f8f8f2;background:0 0;text-shadow:0 1px rgba(0,0,0,.3);font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;tab-size:4;-webkit-hyphens:none;hyphens:none}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto;border-radius:.3em}:not(pre)>code[class*=language-],pre[class*=language-]{background:#282a36}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#6272a4}.token.punctuation{color:#f8f8f2}.namespace{opacity:.7}.token.constant,.token.deleted,.token.property,.token.symbol,.token.tag{color:#ff79c6}.token.boolean,.token.number{color:#bd93f9}.token.attr-name,.token.builtin,.token.char,.token.inserted,.token.selector,.token.string{color:#50fa7b}.language-css .token.string,.style .token.string,.token.entity,.token.operator,.token.url,.token.variable{color:#f8f8f2}.token.atrule,.token.attr-value,.token.class-name,.token.function{color:#f1fa8c}.token.keyword{color:#8be9fd}.token.important,.token.regex{color:#ffb86c}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}.mce-content-body{overflow-wrap:break-word;word-wrap:break-word}.mce-content-body .mce-visual-caret{background-color:#000;background-color:currentColor;position:absolute}.mce-content-body .mce-visual-caret-hidden{display:none}.mce-content-body [data-mce-caret]{left:-1000px;margin:0;padding:0;position:absolute;right:auto;top:0}.mce-content-body .mce-offscreen-selection{left:-2000000px;max-width:1000000px;position:absolute}.mce-content-body [contentEditable=false]{cursor:default}.mce-content-body [contentEditable=true]{cursor:text}.tox-cursor-format-painter{cursor:url(\"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%0A%20%20%3Cg%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%0A%20%20%20%20%3Cpath%20fill%3D%22%23000%22%20fill-rule%3D%22nonzero%22%20d%3D%22M15%2C6%20C15%2C5.45%2014.55%2C5%2014%2C5%20L6%2C5%20C5.45%2C5%205%2C5.45%205%2C6%20L5%2C10%20C5%2C10.55%205.45%2C11%206%2C11%20L14%2C11%20C14.55%2C11%2015%2C10.55%2015%2C10%20L15%2C9%20L16%2C9%20L16%2C12%20L9%2C12%20L9%2C19%20C9%2C19.55%209.45%2C20%2010%2C20%20L11%2C20%20C11.55%2C20%2012%2C19.55%2012%2C19%20L12%2C14%20L18%2C14%20L18%2C7%20L15%2C7%20L15%2C6%20Z%22%2F%3E%0A%20%20%20%20%3Cpath%20fill%3D%22%23000%22%20fill-rule%3D%22nonzero%22%20d%3D%22M1%2C1%20L8.25%2C1%20C8.66421356%2C1%209%2C1.33578644%209%2C1.75%20L9%2C1.75%20C9%2C2.16421356%208.66421356%2C2.5%208.25%2C2.5%20L2.5%2C2.5%20L2.5%2C8.25%20C2.5%2C8.66421356%202.16421356%2C9%201.75%2C9%20L1.75%2C9%20C1.33578644%2C9%201%2C8.66421356%201%2C8.25%20L1%2C1%20Z%22%2F%3E%0A%20%20%3C%2Fg%3E%0A%3C%2Fsvg%3E%0A\"),default}div.mce-footnotes hr{margin-inline-end:auto;margin-inline-start:0;width:25%}div.mce-footnotes li>a.mce-footnotes-backlink{text-decoration:none}@media print{sup.mce-footnote a{color:#000;text-decoration:none}div.mce-footnotes{break-inside:avoid;width:100%}div.mce-footnotes li>a.mce-footnotes-backlink{display:none}}.mce-content-body figure.align-left{float:left}.mce-content-body figure.align-right{float:right}.mce-content-body figure.image.align-center{display:table;margin-left:auto;margin-right:auto}.mce-preview-object{border:1px solid gray;display:inline-block;line-height:0;margin:0 2px 0 2px;position:relative}.mce-preview-object .mce-shim{background:url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);height:100%;left:0;position:absolute;top:0;width:100%}.mce-preview-object[data-mce-selected=\"2\"] .mce-shim{display:none}.mce-content-body .mce-mergetag{cursor:default!important;-webkit-user-select:none;-moz-user-select:none;user-select:none}.mce-content-body .mce-mergetag:hover{background-color:rgba(0,108,231,.3)}.mce-content-body .mce-mergetag-affix{background-color:rgba(0,108,231,.3);color:#006ce7}.mce-object{background:transparent url(\"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Cpath%20d%3D%22M4%203h16a1%201%200%200%201%201%201v16a1%201%200%200%201-1%201H4a1%201%200%200%201-1-1V4a1%201%200%200%201%201-1zm1%202v14h14V5H5zm4.79%202.565l5.64%204.028a.5.5%200%200%201%200%20.814l-5.64%204.028a.5.5%200%200%201-.79-.407V7.972a.5.5%200%200%201%20.79-.407z%22%20fill%3D%22%23cccccc%22%2F%3E%3C%2Fsvg%3E%0A\") no-repeat center;border:1px dashed #aaa}.mce-pagebreak{border:1px dashed #aaa;cursor:default;display:block;height:5px;margin-top:15px;page-break-before:always;width:100%}@media print{.mce-pagebreak{border:0}}.tiny-pageembed .mce-shim{background:url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);height:100%;left:0;position:absolute;top:0;width:100%}.tiny-pageembed[data-mce-selected=\"2\"] .mce-shim{display:none}.tiny-pageembed{display:inline-block;position:relative}.tiny-pageembed--16by9,.tiny-pageembed--1by1,.tiny-pageembed--21by9,.tiny-pageembed--4by3{display:block;overflow:hidden;padding:0;position:relative;width:100%}.tiny-pageembed--21by9{padding-top:42.857143%}.tiny-pageembed--16by9{padding-top:56.25%}.tiny-pageembed--4by3{padding-top:75%}.tiny-pageembed--1by1{padding-top:100%}.tiny-pageembed--16by9 iframe,.tiny-pageembed--1by1 iframe,.tiny-pageembed--21by9 iframe,.tiny-pageembed--4by3 iframe{border:0;height:100%;left:0;position:absolute;top:0;width:100%}.mce-content-body[data-mce-placeholder]{position:relative}.mce-content-body[data-mce-placeholder]:not(.mce-visualblocks)::before{color:rgba(34,47,62,.7);content:attr(data-mce-placeholder);position:absolute}.mce-content-body:not([dir=rtl])[data-mce-placeholder]:not(.mce-visualblocks)::before{left:1px}.mce-content-body[dir=rtl][data-mce-placeholder]:not(.mce-visualblocks)::before{right:1px}.mce-content-body div.mce-resizehandle{background-color:#4099ff;border-color:#4099ff;border-style:solid;border-width:1px;box-sizing:border-box;height:10px;position:absolute;width:10px;z-index:1298}.mce-content-body div.mce-resizehandle:hover{background-color:#4099ff}.mce-content-body div.mce-resizehandle:nth-of-type(1){cursor:nwse-resize}.mce-content-body div.mce-resizehandle:nth-of-type(2){cursor:nesw-resize}.mce-content-body div.mce-resizehandle:nth-of-type(3){cursor:nwse-resize}.mce-content-body div.mce-resizehandle:nth-of-type(4){cursor:nesw-resize}.mce-content-body .mce-resize-backdrop{z-index:10000}.mce-content-body .mce-clonedresizable{cursor:default;opacity:.5;outline:1px dashed #000;position:absolute;z-index:10001}.mce-content-body .mce-clonedresizable.mce-resizetable-columns td,.mce-content-body .mce-clonedresizable.mce-resizetable-columns th{border:0}.mce-content-body .mce-resize-helper{background:#555;background:rgba(0,0,0,.75);border:1px;border-radius:3px;color:#fff;display:none;font-family:sans-serif;font-size:12px;line-height:14px;margin:5px 10px;padding:5px;position:absolute;white-space:nowrap;z-index:10002}.tox-rtc-user-selection{position:relative}.tox-rtc-user-cursor{bottom:0;cursor:default;position:absolute;top:0;width:2px}.tox-rtc-user-cursor::before{background-color:inherit;border-radius:50%;content:'';display:block;height:8px;position:absolute;right:-3px;top:-3px;width:8px}.tox-rtc-user-cursor:hover::after{background-color:inherit;border-radius:100px;box-sizing:border-box;color:#fff;content:attr(data-user);display:block;font-size:12px;font-weight:700;left:-5px;min-height:8px;min-width:8px;padding:0 12px;position:absolute;top:-11px;white-space:nowrap;z-index:1000}.tox-rtc-user-selection--1 .tox-rtc-user-cursor{background-color:#2dc26b}.tox-rtc-user-selection--2 .tox-rtc-user-cursor{background-color:#e03e2d}.tox-rtc-user-selection--3 .tox-rtc-user-cursor{background-color:#f1c40f}.tox-rtc-user-selection--4 .tox-rtc-user-cursor{background-color:#3598db}.tox-rtc-user-selection--5 .tox-rtc-user-cursor{background-color:#b96ad9}.tox-rtc-user-selection--6 .tox-rtc-user-cursor{background-color:#e67e23}.tox-rtc-user-selection--7 .tox-rtc-user-cursor{background-color:#aaa69d}.tox-rtc-user-selection--8 .tox-rtc-user-cursor{background-color:#f368e0}.tox-rtc-remote-image{background:#eaeaea url(\"data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%2236%22%20height%3D%2212%22%20viewBox%3D%220%200%2036%2012%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%20%20%3Ccircle%20cx%3D%226%22%20cy%3D%226%22%20r%3D%223%22%20fill%3D%22rgba(0%2C%200%2C%200%2C%20.2)%22%3E%0A%20%20%20%20%3Canimate%20attributeName%3D%22r%22%20values%3D%223%3B5%3B3%22%20calcMode%3D%22linear%22%20dur%3D%221s%22%20repeatCount%3D%22indefinite%22%20%2F%3E%0A%20%20%3C%2Fcircle%3E%0A%20%20%3Ccircle%20cx%3D%2218%22%20cy%3D%226%22%20r%3D%223%22%20fill%3D%22rgba(0%2C%200%2C%200%2C%20.2)%22%3E%0A%20%20%20%20%3Canimate%20attributeName%3D%22r%22%20values%3D%223%3B5%3B3%22%20calcMode%3D%22linear%22%20begin%3D%22.33s%22%20dur%3D%221s%22%20repeatCount%3D%22indefinite%22%20%2F%3E%0A%20%20%3C%2Fcircle%3E%0A%20%20%3Ccircle%20cx%3D%2230%22%20cy%3D%226%22%20r%3D%223%22%20fill%3D%22rgba(0%2C%200%2C%200%2C%20.2)%22%3E%0A%20%20%20%20%3Canimate%20attributeName%3D%22r%22%20values%3D%223%3B5%3B3%22%20calcMode%3D%22linear%22%20begin%3D%22.66s%22%20dur%3D%221s%22%20repeatCount%3D%22indefinite%22%20%2F%3E%0A%20%20%3C%2Fcircle%3E%0A%3C%2Fsvg%3E%0A\") no-repeat center center;border:1px solid #ccc;min-height:240px;min-width:320px}.mce-match-marker{background:#aaa;color:#fff}.mce-match-marker-selected{background:#39f;color:#fff}.mce-match-marker-selected::-moz-selection{background:#39f;color:#fff}.mce-match-marker-selected::selection{background:#39f;color:#fff}.mce-content-body audio[data-mce-selected],.mce-content-body details[data-mce-selected],.mce-content-body embed[data-mce-selected],.mce-content-body img[data-mce-selected],.mce-content-body object[data-mce-selected],.mce-content-body table[data-mce-selected],.mce-content-body video[data-mce-selected]{outline:3px solid #4099ff}.mce-content-body hr[data-mce-selected]{outline:3px solid #4099ff;outline-offset:1px}.mce-content-body [contentEditable=false] [contentEditable=true]:focus{outline:3px solid #4099ff}.mce-content-body [contentEditable=false] [contentEditable=true]:hover{outline:3px solid #4099ff}.mce-content-body [contentEditable=false][data-mce-selected]{cursor:not-allowed;outline:3px solid #4099ff}.mce-content-body.mce-content-readonly [contentEditable=true]:focus,.mce-content-body.mce-content-readonly [contentEditable=true]:hover{outline:0}.mce-content-body [data-mce-selected=inline-boundary]{background-color:#4099ff}.mce-content-body .mce-edit-focus{outline:3px solid #4099ff}.mce-content-body td[data-mce-selected],.mce-content-body th[data-mce-selected]{position:relative}.mce-content-body td[data-mce-selected]::-moz-selection,.mce-content-body th[data-mce-selected]::-moz-selection{background:0 0}.mce-content-body td[data-mce-selected]::selection,.mce-content-body th[data-mce-selected]::selection{background:0 0}.mce-content-body td[data-mce-selected] *,.mce-content-body th[data-mce-selected] *{outline:0;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.mce-content-body td[data-mce-selected]::after,.mce-content-body th[data-mce-selected]::after{background-color:rgba(180,215,255,.7);border:1px solid transparent;bottom:-1px;content:'';left:-1px;mix-blend-mode:lighten;position:absolute;right:-1px;top:-1px}@media screen and (-ms-high-contrast:active),(-ms-high-contrast:none){.mce-content-body td[data-mce-selected]::after,.mce-content-body th[data-mce-selected]::after{border-color:rgba(0,84,180,.7)}}.mce-content-body img[data-mce-selected]::-moz-selection{background:0 0}.mce-content-body img[data-mce-selected]::selection{background:0 0}.ephox-snooker-resizer-bar{background-color:#4099ff;opacity:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ephox-snooker-resizer-cols{cursor:col-resize}.ephox-snooker-resizer-rows{cursor:row-resize}.ephox-snooker-resizer-bar.ephox-snooker-resizer-bar-dragging{opacity:1}.mce-spellchecker-word{background-image:url(\"data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D'4'%20height%3D'4'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20stroke%3D'%23ff0000'%20fill%3D'none'%20stroke-linecap%3D'round'%20stroke-opacity%3D'.75'%20d%3D'M0%203L2%201%204%203'%2F%3E%3C%2Fsvg%3E%0A\");background-position:0 calc(100% + 1px);background-repeat:repeat-x;background-size:auto 6px;cursor:default;height:2rem}.mce-spellchecker-grammar{background-image:url(\"data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D'4'%20height%3D'4'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20stroke%3D'%2300A835'%20fill%3D'none'%20stroke-linecap%3D'round'%20d%3D'M0%203L2%201%204%203'%2F%3E%3C%2Fsvg%3E%0A\");background-position:0 calc(100% + 1px);background-repeat:repeat-x;background-size:auto 6px;cursor:default}.mce-toc{border:1px solid gray}.mce-toc h2{margin:4px}.mce-toc ul>li{list-style-type:none}[data-mce-block]{display:block}.mce-item-table:not([border]),.mce-item-table:not([border]) caption,.mce-item-table:not([border]) td,.mce-item-table:not([border]) th,.mce-item-table[border=\"0\"],.mce-item-table[border=\"0\"] caption,.mce-item-table[border=\"0\"] td,.mce-item-table[border=\"0\"] th,table[style*=\"border-width: 0px\"],table[style*=\"border-width: 0px\"] caption,table[style*=\"border-width: 0px\"] td,table[style*=\"border-width: 0px\"] th{border:1px dashed #bbb}.mce-visualblocks address,.mce-visualblocks article,.mce-visualblocks aside,.mce-visualblocks blockquote,.mce-visualblocks div:not([data-mce-bogus]),.mce-visualblocks dl,.mce-visualblocks figcaption,.mce-visualblocks figure,.mce-visualblocks h1,.mce-visualblocks h2,.mce-visualblocks h3,.mce-visualblocks h4,.mce-visualblocks h5,.mce-visualblocks h6,.mce-visualblocks hgroup,.mce-visualblocks ol,.mce-visualblocks p,.mce-visualblocks pre,.mce-visualblocks section,.mce-visualblocks ul{background-repeat:no-repeat;border:1px dashed #bbb;margin-left:3px;padding-top:10px}.mce-visualblocks p{background-image:url(data:image/gif;base64,R0lGODlhCQAJAJEAAAAAAP///7u7u////yH5BAEAAAMALAAAAAAJAAkAAAIQnG+CqCN/mlyvsRUpThG6AgA7)}.mce-visualblocks h1{background-image:url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybGu1JuxHoAfRNRW3TWXyF2YiRUAOw==)}.mce-visualblocks h2{background-image:url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8Hybbx4oOuqgTynJd6bGlWg3DkJzoaUAAAOw==)}.mce-visualblocks h3{background-image:url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIZjI8Hybbx4oOuqgTynJf2Ln2NOHpQpmhAAQA7)}.mce-visualblocks h4{background-image:url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxInR0zqeAdhtJlXwV1oCll2HaWgAAOw==)}.mce-visualblocks h5{background-image:url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxIoiuwjane4iq5GlW05GgIkIZUAAAOw==)}.mce-visualblocks h6{background-image:url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxIoiuwjan04jep1iZ1XRlAo5bVgAAOw==)}.mce-visualblocks div:not([data-mce-bogus]){background-image:url(data:image/gif;base64,R0lGODlhEgAKAIABALu7u////yH5BAEAAAEALAAAAAASAAoAAAIfjI9poI0cgDywrhuxfbrzDEbQM2Ei5aRjmoySW4pAAQA7)}.mce-visualblocks section{background-image:url(data:image/gif;base64,R0lGODlhKAAKAIABALu7u////yH5BAEAAAEALAAAAAAoAAoAAAI5jI+pywcNY3sBWHdNrplytD2ellDeSVbp+GmWqaDqDMepc8t17Y4vBsK5hDyJMcI6KkuYU+jpjLoKADs=)}.mce-visualblocks article{background-image:url(data:image/gif;base64,R0lGODlhKgAKAIABALu7u////yH5BAEAAAEALAAAAAAqAAoAAAI6jI+pywkNY3wG0GBvrsd2tXGYSGnfiF7ikpXemTpOiJScasYoDJJrjsG9gkCJ0ag6KhmaIe3pjDYBBQA7)}.mce-visualblocks blockquote{background-image:url(data:image/gif;base64,R0lGODlhPgAKAIABALu7u////yH5BAEAAAEALAAAAAA+AAoAAAJPjI+py+0Knpz0xQDyuUhvfoGgIX5iSKZYgq5uNL5q69asZ8s5rrf0yZmpNkJZzFesBTu8TOlDVAabUyatguVhWduud3EyiUk45xhTTgMBBQA7)}.mce-visualblocks address{background-image:url(data:image/gif;base64,R0lGODlhLQAKAIABALu7u////yH5BAEAAAEALAAAAAAtAAoAAAI/jI+pywwNozSP1gDyyZcjb3UaRpXkWaXmZW4OqKLhBmLs+K263DkJK7OJeifh7FicKD9A1/IpGdKkyFpNmCkAADs=)}.mce-visualblocks pre{background-image:url(data:image/gif;base64,R0lGODlhFQAKAIABALu7uwAAACH5BAEAAAEALAAAAAAVAAoAAAIjjI+ZoN0cgDwSmnpz1NCueYERhnibZVKLNnbOq8IvKpJtVQAAOw==)}.mce-visualblocks figure{background-image:url(data:image/gif;base64,R0lGODlhJAAKAIAAALu7u////yH5BAEAAAEALAAAAAAkAAoAAAI0jI+py+2fwAHUSFvD3RlvG4HIp4nX5JFSpnZUJ6LlrM52OE7uSWosBHScgkSZj7dDKnWAAgA7)}.mce-visualblocks figcaption{border:1px dashed #bbb}.mce-visualblocks hgroup{background-image:url(data:image/gif;base64,R0lGODlhJwAKAIABALu7uwAAACH5BAEAAAEALAAAAAAnAAoAAAI3jI+pywYNI3uB0gpsRtt5fFnfNZaVSYJil4Wo03Hv6Z62uOCgiXH1kZIIJ8NiIxRrAZNMZAtQAAA7)}.mce-visualblocks aside{background-image:url(data:image/gif;base64,R0lGODlhHgAKAIABAKqqqv///yH5BAEAAAEALAAAAAAeAAoAAAItjI+pG8APjZOTzgtqy7I3f1yehmQcFY4WKZbqByutmW4aHUd6vfcVbgudgpYCADs=)}.mce-visualblocks ul{background-image:url(data:image/gif;base64,R0lGODlhDQAKAIAAALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybGuYnqUVSjvw26DzzXiqIDlVwAAOw==)}.mce-visualblocks ol{background-image:url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybH6HHt0qourxC6CvzXieHyeWQAAOw==)}.mce-visualblocks dl{background-image:url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybEOnmOvUoWznTqeuEjNSCqeGRUAOw==)}.mce-visualblocks:not([dir=rtl]) address,.mce-visualblocks:not([dir=rtl]) article,.mce-visualblocks:not([dir=rtl]) aside,.mce-visualblocks:not([dir=rtl]) blockquote,.mce-visualblocks:not([dir=rtl]) div:not([data-mce-bogus]),.mce-visualblocks:not([dir=rtl]) dl,.mce-visualblocks:not([dir=rtl]) figcaption,.mce-visualblocks:not([dir=rtl]) figure,.mce-visualblocks:not([dir=rtl]) h1,.mce-visualblocks:not([dir=rtl]) h2,.mce-visualblocks:not([dir=rtl]) h3,.mce-visualblocks:not([dir=rtl]) h4,.mce-visualblocks:not([dir=rtl]) h5,.mce-visualblocks:not([dir=rtl]) h6,.mce-visualblocks:not([dir=rtl]) hgroup,.mce-visualblocks:not([dir=rtl]) ol,.mce-visualblocks:not([dir=rtl]) p,.mce-visualblocks:not([dir=rtl]) pre,.mce-visualblocks:not([dir=rtl]) section,.mce-visualblocks:not([dir=rtl]) ul{margin-left:3px}.mce-visualblocks[dir=rtl] address,.mce-visualblocks[dir=rtl] article,.mce-visualblocks[dir=rtl] aside,.mce-visualblocks[dir=rtl] blockquote,.mce-visualblocks[dir=rtl] div:not([data-mce-bogus]),.mce-visualblocks[dir=rtl] dl,.mce-visualblocks[dir=rtl] figcaption,.mce-visualblocks[dir=rtl] figure,.mce-visualblocks[dir=rtl] h1,.mce-visualblocks[dir=rtl] h2,.mce-visualblocks[dir=rtl] h3,.mce-visualblocks[dir=rtl] h4,.mce-visualblocks[dir=rtl] h5,.mce-visualblocks[dir=rtl] h6,.mce-visualblocks[dir=rtl] hgroup,.mce-visualblocks[dir=rtl] ol,.mce-visualblocks[dir=rtl] p,.mce-visualblocks[dir=rtl] pre,.mce-visualblocks[dir=rtl] section,.mce-visualblocks[dir=rtl] ul{background-position-x:right;margin-right:3px}.mce-nbsp,.mce-shy{background:#aaa}.mce-shy::after{content:'-'}body{font-family:sans-serif}table{border-collapse:collapse}") +//# sourceMappingURL=content.js.map diff --git a/tinymce-resource/skins/ui/oxide-dark/content.min.css b/tinymce-resource/skins/ui/oxide-dark/content.min.css new file mode 100644 index 000000000..75c0f8381 --- /dev/null +++ b/tinymce-resource/skins/ui/oxide-dark/content.min.css @@ -0,0 +1 @@ +.mce-content-body .mce-item-anchor{background:transparent url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D'8'%20height%3D'12'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20d%3D'M0%200L8%200%208%2012%204.09117821%209%200%2012z'%20fill%3D%22%23cccccc%22%2F%3E%3C%2Fsvg%3E%0A") no-repeat center}.mce-content-body .mce-item-anchor:empty{cursor:default;display:inline-block;height:12px!important;padding:0 2px;-webkit-user-modify:read-only;-moz-user-modify:read-only;-webkit-user-select:all;-moz-user-select:all;user-select:all;width:8px!important}.mce-content-body .mce-item-anchor:not(:empty){background-position-x:2px;display:inline-block;padding-left:12px}.mce-content-body .mce-item-anchor[data-mce-selected]{outline-offset:1px}.tox-comments-visible .tox-comment[contenteditable=false]:not([data-mce-selected]),.tox-comments-visible span.tox-comment img:not([data-mce-selected]),.tox-comments-visible span.tox-comment span.mce-preview-object:not([data-mce-selected]),.tox-comments-visible span.tox-comment>audio:not([data-mce-selected]),.tox-comments-visible span.tox-comment>video:not([data-mce-selected]){outline:3px solid #ffe89d}.tox-comments-visible .tox-comment[contenteditable=false][data-mce-annotation-active=true]:not([data-mce-selected]){outline:3px solid #fed635}.tox-comments-visible span.tox-comment[data-mce-annotation-active=true] img:not([data-mce-selected]),.tox-comments-visible span.tox-comment[data-mce-annotation-active=true] span.mce-preview-object:not([data-mce-selected]),.tox-comments-visible span.tox-comment[data-mce-annotation-active=true]>audio:not([data-mce-selected]),.tox-comments-visible span.tox-comment[data-mce-annotation-active=true]>video:not([data-mce-selected]){outline:3px solid #fed635}.tox-comments-visible span.tox-comment:not([data-mce-selected]){background-color:#ffe89d;outline:0}.tox-comments-visible span.tox-comment[data-mce-annotation-active=true]:not([data-mce-selected=inline-boundary]){background-color:#fed635}.tox-checklist>li:not(.tox-checklist--hidden){list-style:none;margin:.25em 0}.tox-checklist>li:not(.tox-checklist--hidden)::before{content:url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cg%20id%3D%22checklist-unchecked%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Crect%20id%3D%22Rectangle%22%20width%3D%2215%22%20height%3D%2215%22%20x%3D%22.5%22%20y%3D%22.5%22%20fill-rule%3D%22nonzero%22%20stroke%3D%22%236d737b%22%20rx%3D%222%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%0A");cursor:pointer;height:1em;margin-left:-1.5em;margin-top:.125em;position:absolute;width:1em}.tox-checklist li:not(.tox-checklist--hidden).tox-checklist--checked::before{content:url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cg%20id%3D%22checklist-checked%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Crect%20id%3D%22Rectangle%22%20width%3D%2216%22%20height%3D%2216%22%20fill%3D%22%234099FF%22%20fill-rule%3D%22nonzero%22%20rx%3D%222%22%2F%3E%3Cpath%20id%3D%22Path%22%20fill%3D%22%23FFF%22%20fill-rule%3D%22nonzero%22%20d%3D%22M11.5703186%2C3.14417309%20C11.8516238%2C2.73724603%2012.4164781%2C2.62829933%2012.83558%2C2.89774797%20C13.260121%2C3.17069355%2013.3759736%2C3.72932262%2013.0909105%2C4.14168582%20L7.7580587%2C11.8560195%20C7.43776896%2C12.3193404%206.76483983%2C12.3852142%206.35607322%2C11.9948725%20L3.02491697%2C8.8138662%20C2.66090143%2C8.46625845%202.65798871%2C7.89594698%203.01850234%2C7.54483354%20C3.373942%2C7.19866177%203.94940006%2C7.19592841%204.30829608%2C7.5386474%20L6.85276923%2C9.9684299%20L11.5703186%2C3.14417309%20Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%0A")}[dir=rtl] .tox-checklist>li:not(.tox-checklist--hidden)::before{margin-left:0;margin-right:-1.5em}code[class*=language-],pre[class*=language-]{color:#f8f8f2;background:0 0;text-shadow:0 1px rgba(0,0,0,.3);font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;tab-size:4;-webkit-hyphens:none;hyphens:none}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto;border-radius:.3em}:not(pre)>code[class*=language-],pre[class*=language-]{background:#282a36}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#6272a4}.token.punctuation{color:#f8f8f2}.namespace{opacity:.7}.token.constant,.token.deleted,.token.property,.token.symbol,.token.tag{color:#ff79c6}.token.boolean,.token.number{color:#bd93f9}.token.attr-name,.token.builtin,.token.char,.token.inserted,.token.selector,.token.string{color:#50fa7b}.language-css .token.string,.style .token.string,.token.entity,.token.operator,.token.url,.token.variable{color:#f8f8f2}.token.atrule,.token.attr-value,.token.class-name,.token.function{color:#f1fa8c}.token.keyword{color:#8be9fd}.token.important,.token.regex{color:#ffb86c}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}.mce-content-body{overflow-wrap:break-word;word-wrap:break-word}.mce-content-body .mce-visual-caret{background-color:#000;background-color:currentColor;position:absolute}.mce-content-body .mce-visual-caret-hidden{display:none}.mce-content-body [data-mce-caret]{left:-1000px;margin:0;padding:0;position:absolute;right:auto;top:0}.mce-content-body .mce-offscreen-selection{left:-2000000px;max-width:1000000px;position:absolute}.mce-content-body [contentEditable=false]{cursor:default}.mce-content-body [contentEditable=true]{cursor:text}.tox-cursor-format-painter{cursor:url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%0A%20%20%3Cg%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%0A%20%20%20%20%3Cpath%20fill%3D%22%23000%22%20fill-rule%3D%22nonzero%22%20d%3D%22M15%2C6%20C15%2C5.45%2014.55%2C5%2014%2C5%20L6%2C5%20C5.45%2C5%205%2C5.45%205%2C6%20L5%2C10%20C5%2C10.55%205.45%2C11%206%2C11%20L14%2C11%20C14.55%2C11%2015%2C10.55%2015%2C10%20L15%2C9%20L16%2C9%20L16%2C12%20L9%2C12%20L9%2C19%20C9%2C19.55%209.45%2C20%2010%2C20%20L11%2C20%20C11.55%2C20%2012%2C19.55%2012%2C19%20L12%2C14%20L18%2C14%20L18%2C7%20L15%2C7%20L15%2C6%20Z%22%2F%3E%0A%20%20%20%20%3Cpath%20fill%3D%22%23000%22%20fill-rule%3D%22nonzero%22%20d%3D%22M1%2C1%20L8.25%2C1%20C8.66421356%2C1%209%2C1.33578644%209%2C1.75%20L9%2C1.75%20C9%2C2.16421356%208.66421356%2C2.5%208.25%2C2.5%20L2.5%2C2.5%20L2.5%2C8.25%20C2.5%2C8.66421356%202.16421356%2C9%201.75%2C9%20L1.75%2C9%20C1.33578644%2C9%201%2C8.66421356%201%2C8.25%20L1%2C1%20Z%22%2F%3E%0A%20%20%3C%2Fg%3E%0A%3C%2Fsvg%3E%0A"),default}div.mce-footnotes hr{margin-inline-end:auto;margin-inline-start:0;width:25%}div.mce-footnotes li>a.mce-footnotes-backlink{text-decoration:none}@media print{sup.mce-footnote a{color:#000;text-decoration:none}div.mce-footnotes{break-inside:avoid;width:100%}div.mce-footnotes li>a.mce-footnotes-backlink{display:none}}.mce-content-body figure.align-left{float:left}.mce-content-body figure.align-right{float:right}.mce-content-body figure.image.align-center{display:table;margin-left:auto;margin-right:auto}.mce-preview-object{border:1px solid gray;display:inline-block;line-height:0;margin:0 2px 0 2px;position:relative}.mce-preview-object .mce-shim{background:url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);height:100%;left:0;position:absolute;top:0;width:100%}.mce-preview-object[data-mce-selected="2"] .mce-shim{display:none}.mce-content-body .mce-mergetag{cursor:default!important;-webkit-user-select:none;-moz-user-select:none;user-select:none}.mce-content-body .mce-mergetag:hover{background-color:rgba(0,108,231,.3)}.mce-content-body .mce-mergetag-affix{background-color:rgba(0,108,231,.3);color:#006ce7}.mce-object{background:transparent url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Cpath%20d%3D%22M4%203h16a1%201%200%200%201%201%201v16a1%201%200%200%201-1%201H4a1%201%200%200%201-1-1V4a1%201%200%200%201%201-1zm1%202v14h14V5H5zm4.79%202.565l5.64%204.028a.5.5%200%200%201%200%20.814l-5.64%204.028a.5.5%200%200%201-.79-.407V7.972a.5.5%200%200%201%20.79-.407z%22%20fill%3D%22%23cccccc%22%2F%3E%3C%2Fsvg%3E%0A") no-repeat center;border:1px dashed #aaa}.mce-pagebreak{border:1px dashed #aaa;cursor:default;display:block;height:5px;margin-top:15px;page-break-before:always;width:100%}@media print{.mce-pagebreak{border:0}}.tiny-pageembed .mce-shim{background:url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);height:100%;left:0;position:absolute;top:0;width:100%}.tiny-pageembed[data-mce-selected="2"] .mce-shim{display:none}.tiny-pageembed{display:inline-block;position:relative}.tiny-pageembed--16by9,.tiny-pageembed--1by1,.tiny-pageembed--21by9,.tiny-pageembed--4by3{display:block;overflow:hidden;padding:0;position:relative;width:100%}.tiny-pageembed--21by9{padding-top:42.857143%}.tiny-pageembed--16by9{padding-top:56.25%}.tiny-pageembed--4by3{padding-top:75%}.tiny-pageembed--1by1{padding-top:100%}.tiny-pageembed--16by9 iframe,.tiny-pageembed--1by1 iframe,.tiny-pageembed--21by9 iframe,.tiny-pageembed--4by3 iframe{border:0;height:100%;left:0;position:absolute;top:0;width:100%}.mce-content-body[data-mce-placeholder]{position:relative}.mce-content-body[data-mce-placeholder]:not(.mce-visualblocks)::before{color:rgba(34,47,62,.7);content:attr(data-mce-placeholder);position:absolute}.mce-content-body:not([dir=rtl])[data-mce-placeholder]:not(.mce-visualblocks)::before{left:1px}.mce-content-body[dir=rtl][data-mce-placeholder]:not(.mce-visualblocks)::before{right:1px}.mce-content-body div.mce-resizehandle{background-color:#4099ff;border-color:#4099ff;border-style:solid;border-width:1px;box-sizing:border-box;height:10px;position:absolute;width:10px;z-index:1298}.mce-content-body div.mce-resizehandle:hover{background-color:#4099ff}.mce-content-body div.mce-resizehandle:nth-of-type(1){cursor:nwse-resize}.mce-content-body div.mce-resizehandle:nth-of-type(2){cursor:nesw-resize}.mce-content-body div.mce-resizehandle:nth-of-type(3){cursor:nwse-resize}.mce-content-body div.mce-resizehandle:nth-of-type(4){cursor:nesw-resize}.mce-content-body .mce-resize-backdrop{z-index:10000}.mce-content-body .mce-clonedresizable{cursor:default;opacity:.5;outline:1px dashed #000;position:absolute;z-index:10001}.mce-content-body .mce-clonedresizable.mce-resizetable-columns td,.mce-content-body .mce-clonedresizable.mce-resizetable-columns th{border:0}.mce-content-body .mce-resize-helper{background:#555;background:rgba(0,0,0,.75);border:1px;border-radius:3px;color:#fff;display:none;font-family:sans-serif;font-size:12px;line-height:14px;margin:5px 10px;padding:5px;position:absolute;white-space:nowrap;z-index:10002}.tox-rtc-user-selection{position:relative}.tox-rtc-user-cursor{bottom:0;cursor:default;position:absolute;top:0;width:2px}.tox-rtc-user-cursor::before{background-color:inherit;border-radius:50%;content:'';display:block;height:8px;position:absolute;right:-3px;top:-3px;width:8px}.tox-rtc-user-cursor:hover::after{background-color:inherit;border-radius:100px;box-sizing:border-box;color:#fff;content:attr(data-user);display:block;font-size:12px;font-weight:700;left:-5px;min-height:8px;min-width:8px;padding:0 12px;position:absolute;top:-11px;white-space:nowrap;z-index:1000}.tox-rtc-user-selection--1 .tox-rtc-user-cursor{background-color:#2dc26b}.tox-rtc-user-selection--2 .tox-rtc-user-cursor{background-color:#e03e2d}.tox-rtc-user-selection--3 .tox-rtc-user-cursor{background-color:#f1c40f}.tox-rtc-user-selection--4 .tox-rtc-user-cursor{background-color:#3598db}.tox-rtc-user-selection--5 .tox-rtc-user-cursor{background-color:#b96ad9}.tox-rtc-user-selection--6 .tox-rtc-user-cursor{background-color:#e67e23}.tox-rtc-user-selection--7 .tox-rtc-user-cursor{background-color:#aaa69d}.tox-rtc-user-selection--8 .tox-rtc-user-cursor{background-color:#f368e0}.tox-rtc-remote-image{background:#eaeaea url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%2236%22%20height%3D%2212%22%20viewBox%3D%220%200%2036%2012%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%20%20%3Ccircle%20cx%3D%226%22%20cy%3D%226%22%20r%3D%223%22%20fill%3D%22rgba(0%2C%200%2C%200%2C%20.2)%22%3E%0A%20%20%20%20%3Canimate%20attributeName%3D%22r%22%20values%3D%223%3B5%3B3%22%20calcMode%3D%22linear%22%20dur%3D%221s%22%20repeatCount%3D%22indefinite%22%20%2F%3E%0A%20%20%3C%2Fcircle%3E%0A%20%20%3Ccircle%20cx%3D%2218%22%20cy%3D%226%22%20r%3D%223%22%20fill%3D%22rgba(0%2C%200%2C%200%2C%20.2)%22%3E%0A%20%20%20%20%3Canimate%20attributeName%3D%22r%22%20values%3D%223%3B5%3B3%22%20calcMode%3D%22linear%22%20begin%3D%22.33s%22%20dur%3D%221s%22%20repeatCount%3D%22indefinite%22%20%2F%3E%0A%20%20%3C%2Fcircle%3E%0A%20%20%3Ccircle%20cx%3D%2230%22%20cy%3D%226%22%20r%3D%223%22%20fill%3D%22rgba(0%2C%200%2C%200%2C%20.2)%22%3E%0A%20%20%20%20%3Canimate%20attributeName%3D%22r%22%20values%3D%223%3B5%3B3%22%20calcMode%3D%22linear%22%20begin%3D%22.66s%22%20dur%3D%221s%22%20repeatCount%3D%22indefinite%22%20%2F%3E%0A%20%20%3C%2Fcircle%3E%0A%3C%2Fsvg%3E%0A") no-repeat center center;border:1px solid #ccc;min-height:240px;min-width:320px}.mce-match-marker{background:#aaa;color:#fff}.mce-match-marker-selected{background:#39f;color:#fff}.mce-match-marker-selected::-moz-selection{background:#39f;color:#fff}.mce-match-marker-selected::selection{background:#39f;color:#fff}.mce-content-body audio[data-mce-selected],.mce-content-body details[data-mce-selected],.mce-content-body embed[data-mce-selected],.mce-content-body img[data-mce-selected],.mce-content-body object[data-mce-selected],.mce-content-body table[data-mce-selected],.mce-content-body video[data-mce-selected]{outline:3px solid #4099ff}.mce-content-body hr[data-mce-selected]{outline:3px solid #4099ff;outline-offset:1px}.mce-content-body [contentEditable=false] [contentEditable=true]:focus{outline:3px solid #4099ff}.mce-content-body [contentEditable=false] [contentEditable=true]:hover{outline:3px solid #4099ff}.mce-content-body [contentEditable=false][data-mce-selected]{cursor:not-allowed;outline:3px solid #4099ff}.mce-content-body.mce-content-readonly [contentEditable=true]:focus,.mce-content-body.mce-content-readonly [contentEditable=true]:hover{outline:0}.mce-content-body [data-mce-selected=inline-boundary]{background-color:#4099ff}.mce-content-body .mce-edit-focus{outline:3px solid #4099ff}.mce-content-body td[data-mce-selected],.mce-content-body th[data-mce-selected]{position:relative}.mce-content-body td[data-mce-selected]::-moz-selection,.mce-content-body th[data-mce-selected]::-moz-selection{background:0 0}.mce-content-body td[data-mce-selected]::selection,.mce-content-body th[data-mce-selected]::selection{background:0 0}.mce-content-body td[data-mce-selected] *,.mce-content-body th[data-mce-selected] *{outline:0;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.mce-content-body td[data-mce-selected]::after,.mce-content-body th[data-mce-selected]::after{background-color:rgba(180,215,255,.7);border:1px solid transparent;bottom:-1px;content:'';left:-1px;mix-blend-mode:lighten;position:absolute;right:-1px;top:-1px}@media screen and (-ms-high-contrast:active),(-ms-high-contrast:none){.mce-content-body td[data-mce-selected]::after,.mce-content-body th[data-mce-selected]::after{border-color:rgba(0,84,180,.7)}}.mce-content-body img[data-mce-selected]::-moz-selection{background:0 0}.mce-content-body img[data-mce-selected]::selection{background:0 0}.ephox-snooker-resizer-bar{background-color:#4099ff;opacity:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ephox-snooker-resizer-cols{cursor:col-resize}.ephox-snooker-resizer-rows{cursor:row-resize}.ephox-snooker-resizer-bar.ephox-snooker-resizer-bar-dragging{opacity:1}.mce-spellchecker-word{background-image:url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D'4'%20height%3D'4'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20stroke%3D'%23ff0000'%20fill%3D'none'%20stroke-linecap%3D'round'%20stroke-opacity%3D'.75'%20d%3D'M0%203L2%201%204%203'%2F%3E%3C%2Fsvg%3E%0A");background-position:0 calc(100% + 1px);background-repeat:repeat-x;background-size:auto 6px;cursor:default;height:2rem}.mce-spellchecker-grammar{background-image:url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D'4'%20height%3D'4'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20stroke%3D'%2300A835'%20fill%3D'none'%20stroke-linecap%3D'round'%20d%3D'M0%203L2%201%204%203'%2F%3E%3C%2Fsvg%3E%0A");background-position:0 calc(100% + 1px);background-repeat:repeat-x;background-size:auto 6px;cursor:default}.mce-toc{border:1px solid gray}.mce-toc h2{margin:4px}.mce-toc ul>li{list-style-type:none}[data-mce-block]{display:block}.mce-item-table:not([border]),.mce-item-table:not([border]) caption,.mce-item-table:not([border]) td,.mce-item-table:not([border]) th,.mce-item-table[border="0"],.mce-item-table[border="0"] caption,.mce-item-table[border="0"] td,.mce-item-table[border="0"] th,table[style*="border-width: 0px"],table[style*="border-width: 0px"] caption,table[style*="border-width: 0px"] td,table[style*="border-width: 0px"] th{border:1px dashed #bbb}.mce-visualblocks address,.mce-visualblocks article,.mce-visualblocks aside,.mce-visualblocks blockquote,.mce-visualblocks div:not([data-mce-bogus]),.mce-visualblocks dl,.mce-visualblocks figcaption,.mce-visualblocks figure,.mce-visualblocks h1,.mce-visualblocks h2,.mce-visualblocks h3,.mce-visualblocks h4,.mce-visualblocks h5,.mce-visualblocks h6,.mce-visualblocks hgroup,.mce-visualblocks ol,.mce-visualblocks p,.mce-visualblocks pre,.mce-visualblocks section,.mce-visualblocks ul{background-repeat:no-repeat;border:1px dashed #bbb;margin-left:3px;padding-top:10px}.mce-visualblocks p{background-image:url(data:image/gif;base64,R0lGODlhCQAJAJEAAAAAAP///7u7u////yH5BAEAAAMALAAAAAAJAAkAAAIQnG+CqCN/mlyvsRUpThG6AgA7)}.mce-visualblocks h1{background-image:url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybGu1JuxHoAfRNRW3TWXyF2YiRUAOw==)}.mce-visualblocks h2{background-image:url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8Hybbx4oOuqgTynJd6bGlWg3DkJzoaUAAAOw==)}.mce-visualblocks h3{background-image:url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIZjI8Hybbx4oOuqgTynJf2Ln2NOHpQpmhAAQA7)}.mce-visualblocks h4{background-image:url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxInR0zqeAdhtJlXwV1oCll2HaWgAAOw==)}.mce-visualblocks h5{background-image:url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxIoiuwjane4iq5GlW05GgIkIZUAAAOw==)}.mce-visualblocks h6{background-image:url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxIoiuwjan04jep1iZ1XRlAo5bVgAAOw==)}.mce-visualblocks div:not([data-mce-bogus]){background-image:url(data:image/gif;base64,R0lGODlhEgAKAIABALu7u////yH5BAEAAAEALAAAAAASAAoAAAIfjI9poI0cgDywrhuxfbrzDEbQM2Ei5aRjmoySW4pAAQA7)}.mce-visualblocks section{background-image:url(data:image/gif;base64,R0lGODlhKAAKAIABALu7u////yH5BAEAAAEALAAAAAAoAAoAAAI5jI+pywcNY3sBWHdNrplytD2ellDeSVbp+GmWqaDqDMepc8t17Y4vBsK5hDyJMcI6KkuYU+jpjLoKADs=)}.mce-visualblocks article{background-image:url(data:image/gif;base64,R0lGODlhKgAKAIABALu7u////yH5BAEAAAEALAAAAAAqAAoAAAI6jI+pywkNY3wG0GBvrsd2tXGYSGnfiF7ikpXemTpOiJScasYoDJJrjsG9gkCJ0ag6KhmaIe3pjDYBBQA7)}.mce-visualblocks blockquote{background-image:url(data:image/gif;base64,R0lGODlhPgAKAIABALu7u////yH5BAEAAAEALAAAAAA+AAoAAAJPjI+py+0Knpz0xQDyuUhvfoGgIX5iSKZYgq5uNL5q69asZ8s5rrf0yZmpNkJZzFesBTu8TOlDVAabUyatguVhWduud3EyiUk45xhTTgMBBQA7)}.mce-visualblocks address{background-image:url(data:image/gif;base64,R0lGODlhLQAKAIABALu7u////yH5BAEAAAEALAAAAAAtAAoAAAI/jI+pywwNozSP1gDyyZcjb3UaRpXkWaXmZW4OqKLhBmLs+K263DkJK7OJeifh7FicKD9A1/IpGdKkyFpNmCkAADs=)}.mce-visualblocks pre{background-image:url(data:image/gif;base64,R0lGODlhFQAKAIABALu7uwAAACH5BAEAAAEALAAAAAAVAAoAAAIjjI+ZoN0cgDwSmnpz1NCueYERhnibZVKLNnbOq8IvKpJtVQAAOw==)}.mce-visualblocks figure{background-image:url(data:image/gif;base64,R0lGODlhJAAKAIAAALu7u////yH5BAEAAAEALAAAAAAkAAoAAAI0jI+py+2fwAHUSFvD3RlvG4HIp4nX5JFSpnZUJ6LlrM52OE7uSWosBHScgkSZj7dDKnWAAgA7)}.mce-visualblocks figcaption{border:1px dashed #bbb}.mce-visualblocks hgroup{background-image:url(data:image/gif;base64,R0lGODlhJwAKAIABALu7uwAAACH5BAEAAAEALAAAAAAnAAoAAAI3jI+pywYNI3uB0gpsRtt5fFnfNZaVSYJil4Wo03Hv6Z62uOCgiXH1kZIIJ8NiIxRrAZNMZAtQAAA7)}.mce-visualblocks aside{background-image:url(data:image/gif;base64,R0lGODlhHgAKAIABAKqqqv///yH5BAEAAAEALAAAAAAeAAoAAAItjI+pG8APjZOTzgtqy7I3f1yehmQcFY4WKZbqByutmW4aHUd6vfcVbgudgpYCADs=)}.mce-visualblocks ul{background-image:url(data:image/gif;base64,R0lGODlhDQAKAIAAALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybGuYnqUVSjvw26DzzXiqIDlVwAAOw==)}.mce-visualblocks ol{background-image:url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybH6HHt0qourxC6CvzXieHyeWQAAOw==)}.mce-visualblocks dl{background-image:url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybEOnmOvUoWznTqeuEjNSCqeGRUAOw==)}.mce-visualblocks:not([dir=rtl]) address,.mce-visualblocks:not([dir=rtl]) article,.mce-visualblocks:not([dir=rtl]) aside,.mce-visualblocks:not([dir=rtl]) blockquote,.mce-visualblocks:not([dir=rtl]) div:not([data-mce-bogus]),.mce-visualblocks:not([dir=rtl]) dl,.mce-visualblocks:not([dir=rtl]) figcaption,.mce-visualblocks:not([dir=rtl]) figure,.mce-visualblocks:not([dir=rtl]) h1,.mce-visualblocks:not([dir=rtl]) h2,.mce-visualblocks:not([dir=rtl]) h3,.mce-visualblocks:not([dir=rtl]) h4,.mce-visualblocks:not([dir=rtl]) h5,.mce-visualblocks:not([dir=rtl]) h6,.mce-visualblocks:not([dir=rtl]) hgroup,.mce-visualblocks:not([dir=rtl]) ol,.mce-visualblocks:not([dir=rtl]) p,.mce-visualblocks:not([dir=rtl]) pre,.mce-visualblocks:not([dir=rtl]) section,.mce-visualblocks:not([dir=rtl]) ul{margin-left:3px}.mce-visualblocks[dir=rtl] address,.mce-visualblocks[dir=rtl] article,.mce-visualblocks[dir=rtl] aside,.mce-visualblocks[dir=rtl] blockquote,.mce-visualblocks[dir=rtl] div:not([data-mce-bogus]),.mce-visualblocks[dir=rtl] dl,.mce-visualblocks[dir=rtl] figcaption,.mce-visualblocks[dir=rtl] figure,.mce-visualblocks[dir=rtl] h1,.mce-visualblocks[dir=rtl] h2,.mce-visualblocks[dir=rtl] h3,.mce-visualblocks[dir=rtl] h4,.mce-visualblocks[dir=rtl] h5,.mce-visualblocks[dir=rtl] h6,.mce-visualblocks[dir=rtl] hgroup,.mce-visualblocks[dir=rtl] ol,.mce-visualblocks[dir=rtl] p,.mce-visualblocks[dir=rtl] pre,.mce-visualblocks[dir=rtl] section,.mce-visualblocks[dir=rtl] ul{background-position-x:right;margin-right:3px}.mce-nbsp,.mce-shy{background:#aaa}.mce-shy::after{content:'-'}body{font-family:sans-serif}table{border-collapse:collapse} diff --git a/tinymce-resource/skins/ui/oxide-dark/skin.css b/tinymce-resource/skins/ui/oxide-dark/skin.css new file mode 100644 index 000000000..4b3920e6c --- /dev/null +++ b/tinymce-resource/skins/ui/oxide-dark/skin.css @@ -0,0 +1,3766 @@ +.tox { + box-shadow: none; + box-sizing: content-box; + color: #222f3e; + cursor: auto; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + font-size: 16px; + font-style: normal; + font-weight: normal; + line-height: normal; + -webkit-tap-highlight-color: transparent; + text-decoration: none; + text-shadow: none; + text-transform: none; + vertical-align: initial; + white-space: normal; +} +.tox *:not(svg):not(rect) { + box-sizing: inherit; + color: inherit; + cursor: inherit; + direction: inherit; + font-family: inherit; + font-size: inherit; + font-style: inherit; + font-weight: inherit; + line-height: inherit; + -webkit-tap-highlight-color: inherit; + text-align: inherit; + text-decoration: inherit; + text-shadow: inherit; + text-transform: inherit; + vertical-align: inherit; + white-space: inherit; +} +.tox *:not(svg):not(rect) { + /* stylelint-disable-line no-duplicate-selectors */ + background: transparent; + border: 0; + box-shadow: none; + float: none; + height: auto; + margin: 0; + max-width: none; + outline: 0; + padding: 0; + position: static; + width: auto; +} +.tox:not([dir=rtl]) { + direction: ltr; + text-align: left; +} +.tox[dir=rtl] { + direction: rtl; + text-align: right; +} +.tox-tinymce { + border: 2px solid #161f29; + border-radius: 10px; + box-shadow: none; + box-sizing: border-box; + display: flex; + flex-direction: column; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + overflow: hidden; + position: relative; + visibility: inherit !important; +} +.tox.tox-tinymce-inline { + border: none; + box-shadow: none; + overflow: initial; +} +.tox.tox-tinymce-inline .tox-editor-container { + overflow: initial; +} +.tox.tox-tinymce-inline .tox-editor-header { + background-color: #222F3E; + border: 2px solid #161f29; + border-radius: 10px; + box-shadow: none; + overflow: hidden; +} +.tox-tinymce-aux { + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + z-index: 1300; +} +.tox-tinymce *:focus, +.tox-tinymce-aux *:focus { + outline: none; +} +button::-moz-focus-inner { + border: 0; +} +.tox[dir=rtl] .tox-icon--flip svg { + transform: rotateY(180deg); +} +.tox .accessibility-issue__header { + align-items: center; + display: flex; + margin-bottom: 4px; +} +.tox .accessibility-issue__description { + align-items: stretch; + border-radius: 6px; + display: flex; + justify-content: space-between; +} +.tox .accessibility-issue__description > div { + padding-bottom: 4px; +} +.tox .accessibility-issue__description > div > div { + align-items: center; + display: flex; + margin-bottom: 4px; +} +.tox .accessibility-issue__description > div > div .tox-icon svg { + display: block; +} +.tox .accessibility-issue__repair { + margin-top: 16px; +} +.tox .tox-dialog__body-content .accessibility-issue--info .accessibility-issue__description { + background-color: rgba(0, 101, 216, 0.4); + color: #fff; +} +.tox .tox-dialog__body-content .accessibility-issue--info .tox-form__group h2 { + color: #fff; +} +.tox .tox-dialog__body-content .accessibility-issue--info .tox-icon svg { + fill: #fff; +} +.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon { + background-color: #006ce7; + color: #fff; +} +.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:hover, +.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:focus { + background-color: #0060ce; +} +.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:active { + background-color: #0054b4; +} +.tox .tox-dialog__body-content .accessibility-issue--warn { + /* stylelint-disable-next-line no-descending-specificity */ +} +.tox .tox-dialog__body-content .accessibility-issue--warn .accessibility-issue__description { + background-color: rgba(255, 165, 0, 0.5); + color: #fff; +} +.tox .tox-dialog__body-content .accessibility-issue--warn .tox-form__group h2 { + color: #fff; +} +.tox .tox-dialog__body-content .accessibility-issue--warn .tox-icon svg { + fill: #fff; +} +.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon { + background-color: #FFE89D; + color: #222f3e; +} +.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:hover, +.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:focus { + background-color: #F2D574; + color: #222f3e; +} +.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:active { + background-color: #E8C657; + color: #222f3e; +} +.tox .tox-dialog__body-content .accessibility-issue--error { + /* stylelint-disable-next-line no-descending-specificity */ +} +.tox .tox-dialog__body-content .accessibility-issue--error .accessibility-issue__description { + background-color: rgba(204, 0, 0, 0.5); + color: #fff; +} +.tox .tox-dialog__body-content .accessibility-issue--error .tox-form__group h2 { + color: #fff; +} +.tox .tox-dialog__body-content .accessibility-issue--error .tox-icon svg { + fill: #fff; +} +.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon { + background-color: #F2BFBF; + color: #222f3e; +} +.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:hover, +.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:focus { + background-color: #E9A4A4; + color: #222f3e; +} +.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:active { + background-color: #EE9494; + color: #222f3e; +} +.tox .tox-dialog__body-content .accessibility-issue--success .accessibility-issue__description { + background-color: rgba(120, 171, 70, 0.5); + color: #fff; +} +.tox .tox-dialog__body-content .accessibility-issue--success .accessibility-issue__description > *:last-child { + display: none; +} +.tox .tox-dialog__body-content .accessibility-issue--success .tox-form__group h2 { + color: #fff; +} +.tox .tox-dialog__body-content .accessibility-issue--success .tox-icon svg { + fill: #fff; +} +.tox .tox-dialog__body-content .accessibility-issue__header .tox-form__group h1, +.tox .tox-dialog__body-content .tox-form__group .accessibility-issue__description h2 { + font-size: 14px; + margin-top: 0; +} +.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__header .tox-button { + margin-left: 4px; +} +.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__header > *:nth-last-child(2) { + margin-left: auto; +} +.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__description { + padding: 4px 4px 4px 8px; +} +.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__header .tox-button { + margin-right: 4px; +} +.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__header > *:nth-last-child(2) { + margin-right: auto; +} +.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__description { + padding: 4px 8px 4px 4px; +} +.tox .tox-advtemplate .tox-form__grid { + flex: 1; +} +.tox .tox-advtemplate .tox-form__grid > div:first-child { + display: flex; + flex-direction: column; + width: 30%; +} +.tox .tox-advtemplate .tox-form__grid > div:first-child > div:nth-child(2) { + flex-basis: 0; + flex-grow: 1; + overflow: auto; +} +@media only screen and (max-width: 767px ) { + body:not(.tox-force-desktop) .tox .tox-advtemplate .tox-form__grid > div:first-child { + width: 100%; + } +} +.tox .tox-advtemplate iframe { + border-color: #161f29; + border-radius: 10px; + border-style: solid; + border-width: 1px; + margin: 0 10px; +} +.tox .tox-anchorbar { + display: flex; + flex: 0 0 auto; +} +.tox .tox-bottom-anchorbar { + display: flex; + flex: 0 0 auto; +} +.tox .tox-bar { + display: flex; + flex: 0 0 auto; +} +.tox .tox-button { + background-color: #006ce7; + background-image: none; + background-position: 0 0; + background-repeat: repeat; + border-color: #006ce7; + border-radius: 6px; + border-style: solid; + border-width: 1px; + box-shadow: none; + box-sizing: border-box; + color: #fff; + cursor: pointer; + display: inline-block; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + font-size: 14px; + font-style: normal; + font-weight: bold; + letter-spacing: normal; + line-height: 24px; + margin: 0; + outline: none; + padding: 4px 16px; + position: relative; + text-align: center; + text-decoration: none; + text-transform: none; + white-space: nowrap; +} +.tox .tox-button::before { + border-radius: 6px; + bottom: -1px; + box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px #006ce7, 0 0 0 3px rgba(0, 108, 231, 0.25); + content: ''; + left: -1px; + opacity: 0; + pointer-events: none; + position: absolute; + right: -1px; + top: -1px; +} +.tox .tox-button[disabled] { + background-color: #006ce7; + background-image: none; + border-color: #006ce7; + box-shadow: none; + color: rgba(255, 255, 255, 0.5); + cursor: not-allowed; +} +.tox .tox-button:focus:not(:disabled) { + background-color: #0060ce; + background-image: none; + border-color: #0060ce; + box-shadow: none; + color: #fff; +} +.tox .tox-button:focus-visible:not(:disabled)::before { + opacity: 1; +} +.tox .tox-button:hover:not(:disabled) { + background-color: #0060ce; + background-image: none; + border-color: #0060ce; + box-shadow: none; + color: #fff; +} +.tox .tox-button:active:not(:disabled) { + background-color: #0054b4; + background-image: none; + border-color: #0054b4; + box-shadow: none; + color: #fff; +} +.tox .tox-button.tox-button--enabled { + background-color: #0054b4; + background-image: none; + border-color: #0054b4; + box-shadow: none; + color: #fff; +} +.tox .tox-button.tox-button--enabled[disabled] { + background-color: #0054b4; + background-image: none; + border-color: #0054b4; + box-shadow: none; + color: rgba(255, 255, 255, 0.5); + cursor: not-allowed; +} +.tox .tox-button.tox-button--enabled:focus:not(:disabled) { + background-color: #00489b; + background-image: none; + border-color: #00489b; + box-shadow: none; + color: #fff; +} +.tox .tox-button.tox-button--enabled:hover:not(:disabled) { + background-color: #00489b; + background-image: none; + border-color: #00489b; + box-shadow: none; + color: #fff; +} +.tox .tox-button.tox-button--enabled:active:not(:disabled) { + background-color: #003c81; + background-image: none; + border-color: #003c81; + box-shadow: none; + color: #fff; +} +.tox .tox-button--icon-and-text, +.tox .tox-button.tox-button--icon-and-text, +.tox .tox-button.tox-button--secondary.tox-button--icon-and-text { + display: flex; + padding: 5px 4px; +} +.tox .tox-button--icon-and-text .tox-icon svg, +.tox .tox-button.tox-button--icon-and-text .tox-icon svg, +.tox .tox-button.tox-button--secondary.tox-button--icon-and-text .tox-icon svg { + display: block; + fill: currentColor; +} +.tox .tox-button--secondary { + background-color: #3d546f; + background-image: none; + background-position: 0 0; + background-repeat: repeat; + border-color: #3d546f; + border-radius: 6px; + border-style: solid; + border-width: 1px; + box-shadow: none; + color: #fff; + font-size: 14px; + font-style: normal; + font-weight: bold; + letter-spacing: normal; + outline: none; + padding: 4px 16px; + text-decoration: none; + text-transform: none; +} +.tox .tox-button--secondary[disabled] { + background-color: #3d546f; + background-image: none; + border-color: #3d546f; + box-shadow: none; + color: rgba(255, 255, 255, 0.5); +} +.tox .tox-button--secondary:focus:not(:disabled) { + background-color: #34485f; + background-image: none; + border-color: #34485f; + box-shadow: none; + color: #fff; +} +.tox .tox-button--secondary:hover:not(:disabled) { + background-color: #34485f; + background-image: none; + border-color: #34485f; + box-shadow: none; + color: #fff; +} +.tox .tox-button--secondary:active:not(:disabled) { + background-color: #2b3b4e; + background-image: none; + border-color: #2b3b4e; + box-shadow: none; + color: #fff; +} +.tox .tox-button--secondary.tox-button--enabled { + background-color: #2b5c93; + background-image: none; + border-color: #2b5c93; + box-shadow: none; + color: #fff; +} +.tox .tox-button--secondary.tox-button--enabled[disabled] { + background-color: #2b5c93; + background-image: none; + border-color: #2b5c93; + box-shadow: none; + color: rgba(255, 255, 255, 0.5); +} +.tox .tox-button--secondary.tox-button--enabled:focus:not(:disabled) { + background-color: #254f80; + background-image: none; + border-color: #254f80; + box-shadow: none; + color: #fff; +} +.tox .tox-button--secondary.tox-button--enabled:hover:not(:disabled) { + background-color: #254f80; + background-image: none; + border-color: #254f80; + box-shadow: none; + color: #fff; +} +.tox .tox-button--secondary.tox-button--enabled:active:not(:disabled) { + background-color: #1f436c; + background-image: none; + border-color: #1f436c; + box-shadow: none; + color: #fff; +} +.tox .tox-button--icon, +.tox .tox-button.tox-button--icon, +.tox .tox-button.tox-button--secondary.tox-button--icon { + padding: 4px; +} +.tox .tox-button--icon .tox-icon svg, +.tox .tox-button.tox-button--icon .tox-icon svg, +.tox .tox-button.tox-button--secondary.tox-button--icon .tox-icon svg { + display: block; + fill: currentColor; +} +.tox .tox-button-link { + background: 0; + border: none; + box-sizing: border-box; + cursor: pointer; + display: inline-block; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + font-size: 16px; + font-weight: normal; + line-height: 1.3; + margin: 0; + padding: 0; + white-space: nowrap; +} +.tox .tox-button-link--sm { + font-size: 14px; +} +.tox .tox-button--naked { + background-color: transparent; + border-color: transparent; + box-shadow: unset; + color: #fff; +} +.tox .tox-button--naked[disabled] { + background-color: rgba(255, 255, 255, 0.2); + border-color: transparent; + box-shadow: unset; + color: rgba(255, 255, 255, 0.5); +} +.tox .tox-button--naked:hover:not(:disabled) { + background-color: rgba(255, 255, 255, 0.2); + border-color: transparent; + box-shadow: unset; + color: #fff; +} +.tox .tox-button--naked:focus:not(:disabled) { + background-color: rgba(255, 255, 255, 0.2); + border-color: transparent; + box-shadow: unset; + color: #fff; +} +.tox .tox-button--naked:active:not(:disabled) { + background-color: rgba(255, 255, 255, 0.3); + border-color: transparent; + box-shadow: unset; + color: #fff; +} +.tox .tox-button--naked .tox-icon svg { + fill: currentColor; +} +.tox .tox-button--naked.tox-button--icon:hover:not(:disabled) { + color: #fff; +} +.tox .tox-checkbox { + align-items: center; + border-radius: 6px; + cursor: pointer; + display: flex; + height: 36px; + min-width: 36px; +} +.tox .tox-checkbox__input { + /* Hide from view but visible to screen readers */ + height: 1px; + overflow: hidden; + position: absolute; + top: auto; + width: 1px; +} +.tox .tox-checkbox__icons { + align-items: center; + border-radius: 6px; + box-shadow: 0 0 0 2px transparent; + box-sizing: content-box; + display: flex; + height: 24px; + justify-content: center; + padding: calc(4px - 1px); + width: 24px; +} +.tox .tox-checkbox__icons .tox-checkbox-icon__unchecked svg { + display: block; + fill: rgba(255, 255, 255, 0.2); +} +.tox .tox-checkbox__icons .tox-checkbox-icon__indeterminate svg { + display: none; + fill: #006ce7; +} +.tox .tox-checkbox__icons .tox-checkbox-icon__checked svg { + display: none; + fill: #006ce7; +} +.tox .tox-checkbox--disabled { + color: rgba(255, 255, 255, 0.5); + cursor: not-allowed; +} +.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__checked svg { + fill: rgba(255, 255, 255, 0.5); +} +.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__unchecked svg { + fill: rgba(255, 255, 255, 0.5); +} +.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__indeterminate svg { + fill: rgba(255, 255, 255, 0.5); +} +.tox input.tox-checkbox__input:checked + .tox-checkbox__icons .tox-checkbox-icon__unchecked svg { + display: none; +} +.tox input.tox-checkbox__input:checked + .tox-checkbox__icons .tox-checkbox-icon__checked svg { + display: block; +} +.tox input.tox-checkbox__input:indeterminate + .tox-checkbox__icons .tox-checkbox-icon__unchecked svg { + display: none; +} +.tox input.tox-checkbox__input:indeterminate + .tox-checkbox__icons .tox-checkbox-icon__indeterminate svg { + display: block; +} +.tox input.tox-checkbox__input:focus + .tox-checkbox__icons { + border-radius: 6px; + box-shadow: inset 0 0 0 1px #006ce7; + padding: calc(4px - 1px); +} +.tox:not([dir=rtl]) .tox-checkbox__label { + margin-left: 4px; +} +.tox:not([dir=rtl]) .tox-checkbox__input { + left: -10000px; +} +.tox:not([dir=rtl]) .tox-bar .tox-checkbox { + margin-left: 4px; +} +.tox[dir=rtl] .tox-checkbox__label { + margin-right: 4px; +} +.tox[dir=rtl] .tox-checkbox__input { + right: -10000px; +} +.tox[dir=rtl] .tox-bar .tox-checkbox { + margin-right: 4px; +} +.tox { + /* stylelint-disable-next-line no-descending-specificity */ +} +.tox .tox-collection--toolbar .tox-collection__group { + display: flex; + padding: 0; +} +.tox .tox-collection--grid .tox-collection__group { + display: flex; + flex-wrap: wrap; + max-height: 208px; + overflow-x: hidden; + overflow-y: auto; + padding: 0; +} +.tox .tox-collection--list .tox-collection__group { + border-bottom-width: 0; + border-color: rgba(255, 255, 255, 0.15); + border-left-width: 0; + border-right-width: 0; + border-style: solid; + border-top-width: 1px; + padding: 4px 0; +} +.tox .tox-collection--list .tox-collection__group:first-child { + border-top-width: 0; +} +.tox .tox-collection__group-heading { + background-color: rgba(255, 255, 255, 0.15); + color: rgba(255, 255, 255, 0.5); + cursor: default; + font-size: 12px; + font-style: normal; + font-weight: normal; + margin-bottom: 4px; + margin-top: -4px; + padding: 4px 8px; + text-transform: none; + -webkit-touch-callout: none; + -webkit-user-select: none; + -moz-user-select: none; + user-select: none; +} +.tox .tox-collection__item { + align-items: center; + border-radius: 3px; + color: #fff; + display: flex; + -webkit-touch-callout: none; + -webkit-user-select: none; + -moz-user-select: none; + user-select: none; +} +.tox .tox-collection--list .tox-collection__item { + padding: 4px 8px; +} +.tox .tox-collection--toolbar .tox-collection__item { + border-radius: 3px; + padding: 4px; +} +.tox .tox-collection--grid .tox-collection__item { + border-radius: 3px; + padding: 4px; +} +.tox .tox-collection--list .tox-collection__item--enabled { + background-color: #2b3b4e; + color: #fff; +} +.tox .tox-collection--list .tox-collection__item--active { + background-color: #3389ec; +} +.tox .tox-collection--toolbar .tox-collection__item--enabled { + background-color: #599fef; + color: #fff; +} +.tox .tox-collection--toolbar .tox-collection__item--active { + background-color: #3389ec; +} +.tox .tox-collection--grid .tox-collection__item--enabled { + background-color: #599fef; + color: #fff; +} +.tox .tox-collection--grid .tox-collection__item--active:not(.tox-collection__item--state-disabled) { + background-color: #3389ec; + color: #fff; +} +.tox .tox-collection--list .tox-collection__item--active:not(.tox-collection__item--state-disabled) { + color: #fff; +} +.tox .tox-collection--toolbar .tox-collection__item--active:not(.tox-collection__item--state-disabled) { + color: #fff; +} +.tox .tox-collection__item-icon, +.tox .tox-collection__item-checkmark { + align-items: center; + display: flex; + height: 24px; + justify-content: center; + width: 24px; +} +.tox .tox-collection__item-icon svg, +.tox .tox-collection__item-checkmark svg { + fill: currentColor; +} +.tox .tox-collection--toolbar-lg .tox-collection__item-icon { + height: 48px; + width: 48px; +} +.tox .tox-collection__item-label { + color: currentColor; + display: inline-block; + flex: 1; + font-size: 14px; + font-style: normal; + font-weight: normal; + line-height: 24px; + max-width: 100%; + text-transform: none; + word-break: break-all; +} +.tox .tox-collection__item-accessory { + color: rgba(255, 255, 255, 0.5); + display: inline-block; + font-size: 14px; + height: 24px; + line-height: 24px; + text-transform: none; +} +.tox .tox-collection__item-caret { + align-items: center; + display: flex; + min-height: 24px; +} +.tox .tox-collection__item-caret::after { + content: ''; + font-size: 0; + min-height: inherit; +} +.tox .tox-collection__item-caret svg { + fill: #fff; +} +.tox .tox-collection__item--state-disabled { + background-color: transparent; + color: rgba(255, 255, 255, 0.5); + cursor: not-allowed; +} +.tox .tox-collection__item--state-disabled .tox-collection__item-caret svg { + fill: rgba(255, 255, 255, 0.5); +} +.tox .tox-collection--list .tox-collection__item:not(.tox-collection__item--enabled) .tox-collection__item-checkmark svg { + display: none; +} +.tox .tox-collection--list .tox-collection__item:not(.tox-collection__item--enabled) .tox-collection__item-accessory + .tox-collection__item-checkmark { + display: none; +} +.tox .tox-collection--horizontal { + background-color: #2b3b4e; + border: 1px solid rgba(255, 255, 255, 0.15); + border-radius: 6px; + box-shadow: 0 0 2px 0 rgba(34, 47, 62, 0.2), 0 4px 8px 0 rgba(34, 47, 62, 0.15); + display: flex; + flex: 0 0 auto; + flex-shrink: 0; + flex-wrap: nowrap; + margin-bottom: 0; + overflow-x: auto; + padding: 0; +} +.tox .tox-collection--horizontal .tox-collection__group { + align-items: center; + display: flex; + flex-wrap: nowrap; + margin: 0; + padding: 0 4px; +} +.tox .tox-collection--horizontal .tox-collection__item { + height: 28px; + margin: 6px 1px 5px 0; + padding: 0 4px; +} +.tox .tox-collection--horizontal .tox-collection__item-label { + white-space: nowrap; +} +.tox .tox-collection--horizontal .tox-collection__item-caret { + margin-left: 4px; +} +.tox .tox-collection__item-container { + display: flex; +} +.tox .tox-collection__item-container--row { + align-items: center; + flex: 1 1 auto; + flex-direction: row; +} +.tox .tox-collection__item-container--row.tox-collection__item-container--align-left { + margin-right: auto; +} +.tox .tox-collection__item-container--row.tox-collection__item-container--align-right { + justify-content: flex-end; + margin-left: auto; +} +.tox .tox-collection__item-container--row.tox-collection__item-container--valign-top { + align-items: flex-start; + margin-bottom: auto; +} +.tox .tox-collection__item-container--row.tox-collection__item-container--valign-middle { + align-items: center; +} +.tox .tox-collection__item-container--row.tox-collection__item-container--valign-bottom { + align-items: flex-end; + margin-top: auto; +} +.tox .tox-collection__item-container--column { + align-self: center; + flex: 1 1 auto; + flex-direction: column; +} +.tox .tox-collection__item-container--column.tox-collection__item-container--align-left { + align-items: flex-start; +} +.tox .tox-collection__item-container--column.tox-collection__item-container--align-right { + align-items: flex-end; +} +.tox .tox-collection__item-container--column.tox-collection__item-container--valign-top { + align-self: flex-start; +} +.tox .tox-collection__item-container--column.tox-collection__item-container--valign-middle { + align-self: center; +} +.tox .tox-collection__item-container--column.tox-collection__item-container--valign-bottom { + align-self: flex-end; +} +.tox:not([dir=rtl]) .tox-collection--horizontal .tox-collection__group:not(:last-of-type) { + border-right: 1px solid transparent; +} +.tox:not([dir=rtl]) .tox-collection--list .tox-collection__item > *:not(:first-child) { + margin-left: 8px; +} +.tox:not([dir=rtl]) .tox-collection--list .tox-collection__item > .tox-collection__item-label:first-child { + margin-left: 4px; +} +.tox:not([dir=rtl]) .tox-collection__item-accessory { + margin-left: 16px; + text-align: right; +} +.tox:not([dir=rtl]) .tox-collection .tox-collection__item-caret { + margin-left: 16px; +} +.tox[dir=rtl] .tox-collection--horizontal .tox-collection__group:not(:last-of-type) { + border-left: 1px solid transparent; +} +.tox[dir=rtl] .tox-collection--list .tox-collection__item > *:not(:first-child) { + margin-right: 8px; +} +.tox[dir=rtl] .tox-collection--list .tox-collection__item > .tox-collection__item-label:first-child { + margin-right: 4px; +} +.tox[dir=rtl] .tox-collection__item-accessory { + margin-right: 16px; + text-align: left; +} +.tox[dir=rtl] .tox-collection .tox-collection__item-caret { + margin-right: 16px; + transform: rotateY(180deg); +} +.tox[dir=rtl] .tox-collection--horizontal .tox-collection__item-caret { + margin-right: 4px; +} +.tox .tox-color-picker-container { + display: flex; + flex-direction: row; + height: 225px; + margin: 0; +} +.tox .tox-sv-palette { + box-sizing: border-box; + display: flex; + height: 100%; +} +.tox .tox-sv-palette-spectrum { + height: 100%; +} +.tox .tox-sv-palette, +.tox .tox-sv-palette-spectrum { + width: 225px; +} +.tox .tox-sv-palette-thumb { + background: none; + border: 1px solid black; + border-radius: 50%; + box-sizing: content-box; + height: 12px; + position: absolute; + width: 12px; +} +.tox .tox-sv-palette-inner-thumb { + border: 1px solid white; + border-radius: 50%; + height: 10px; + position: absolute; + width: 10px; +} +.tox .tox-hue-slider { + box-sizing: border-box; + height: 100%; + width: 25px; +} +.tox .tox-hue-slider-spectrum { + background: linear-gradient(to bottom, #f00, #ff0080, #f0f, #8000ff, #00f, #0080ff, #0ff, #00ff80, #0f0, #80ff00, #ff0, #ff8000, #f00); + height: 100%; + width: 100%; +} +.tox .tox-hue-slider, +.tox .tox-hue-slider-spectrum { + width: 20px; +} +.tox .tox-hue-slider-spectrum:focus, +.tox .tox-sv-palette-spectrum:focus { + outline: #08f solid; +} +.tox .tox-hue-slider-thumb { + background: white; + border: 1px solid black; + box-sizing: content-box; + height: 4px; + width: 100%; +} +.tox .tox-rgb-form { + display: flex; + flex-direction: column; + justify-content: space-between; +} +.tox .tox-rgb-form div { + align-items: center; + display: flex; + justify-content: space-between; + margin-bottom: 5px; + width: inherit; +} +.tox .tox-rgb-form input { + width: 6em; +} +.tox .tox-rgb-form input.tox-invalid { + /* Need !important to override Chrome's focus styling unfortunately */ + border: 1px solid red !important; +} +.tox .tox-rgb-form .tox-rgba-preview { + border: 1px solid black; + flex-grow: 2; + margin-bottom: 0; +} +.tox:not([dir=rtl]) .tox-sv-palette { + margin-right: 15px; +} +.tox:not([dir=rtl]) .tox-hue-slider { + margin-right: 15px; +} +.tox:not([dir=rtl]) .tox-hue-slider-thumb { + margin-left: -1px; +} +.tox:not([dir=rtl]) .tox-rgb-form label { + margin-right: 0.5em; +} +.tox[dir=rtl] .tox-sv-palette { + margin-left: 15px; +} +.tox[dir=rtl] .tox-hue-slider { + margin-left: 15px; +} +.tox[dir=rtl] .tox-hue-slider-thumb { + margin-right: -1px; +} +.tox[dir=rtl] .tox-rgb-form label { + margin-left: 0.5em; +} +.tox .tox-toolbar .tox-swatches, +.tox .tox-toolbar__primary .tox-swatches, +.tox .tox-toolbar__overflow .tox-swatches { + margin: 5px 0 6px 11px; +} +.tox .tox-collection--list .tox-collection__group .tox-swatches-menu { + border: 0; + margin: -4px -4px; +} +.tox .tox-swatches__row { + display: flex; +} +.tox .tox-swatch { + height: 30px; + transition: transform 0.15s, box-shadow 0.15s; + width: 30px; +} +.tox .tox-swatch:hover, +.tox .tox-swatch:focus { + box-shadow: 0 0 0 1px rgba(127, 127, 127, 0.3) inset; + transform: scale(0.8); +} +.tox .tox-swatch--remove { + align-items: center; + display: flex; + justify-content: center; +} +.tox .tox-swatch--remove svg path { + stroke: #e74c3c; +} +.tox .tox-swatches__picker-btn { + align-items: center; + background-color: transparent; + border: 0; + cursor: pointer; + display: flex; + height: 30px; + justify-content: center; + outline: none; + padding: 0; + width: 30px; +} +.tox .tox-swatches__picker-btn svg { + fill: #fff; + height: 24px; + width: 24px; +} +.tox .tox-swatches__picker-btn:hover { + background: #3389ec; +} +.tox div.tox-swatch:not(.tox-swatch--remove) svg { + display: none; + fill: #fff; + height: 24px; + margin: calc((30px - 24px) / 2) calc((30px - 24px) / 2); + width: 24px; +} +.tox div.tox-swatch:not(.tox-swatch--remove) svg path { + fill: #fff; + paint-order: stroke; + stroke: #222f3e; + stroke-width: 2px; +} +.tox div.tox-swatch:not(.tox-swatch--remove).tox-collection__item--enabled svg { + display: block; +} +.tox:not([dir=rtl]) .tox-swatches__picker-btn { + margin-left: auto; +} +.tox[dir=rtl] .tox-swatches__picker-btn { + margin-right: auto; +} +.tox .tox-comment-thread { + background: #2b3b4e; + position: relative; +} +.tox .tox-comment-thread > *:not(:first-child) { + margin-top: 8px; +} +.tox .tox-comment { + background: #2b3b4e; + border: 1px solid #161f29; + border-radius: 6px; + box-shadow: 0 4px 8px 0 rgba(34, 47, 62, 0.1); + padding: 8px 8px 16px 8px; + position: relative; +} +.tox .tox-comment__header { + align-items: center; + color: #fff; + display: flex; + justify-content: space-between; +} +.tox .tox-comment__date { + color: #fff; + font-size: 12px; + line-height: 18px; +} +.tox .tox-comment__body { + color: #fff; + font-size: 14px; + font-style: normal; + font-weight: normal; + line-height: 1.3; + margin-top: 8px; + position: relative; + text-transform: initial; +} +.tox .tox-comment__body textarea { + resize: none; + white-space: normal; + width: 100%; +} +.tox .tox-comment__expander { + padding-top: 8px; +} +.tox .tox-comment__expander p { + color: rgba(255, 255, 255, 0.5); + font-size: 14px; + font-style: normal; +} +.tox .tox-comment__body p { + margin: 0; +} +.tox .tox-comment__buttonspacing { + padding-top: 16px; + text-align: center; +} +.tox .tox-comment-thread__overlay::after { + background: #2b3b4e; + bottom: 0; + content: ""; + display: flex; + left: 0; + opacity: 0.9; + position: absolute; + right: 0; + top: 0; + z-index: 5; +} +.tox .tox-comment__reply { + display: flex; + flex-shrink: 0; + flex-wrap: wrap; + justify-content: flex-end; + margin-top: 8px; +} +.tox .tox-comment__reply > *:first-child { + margin-bottom: 8px; + width: 100%; +} +.tox .tox-comment__edit { + display: flex; + flex-wrap: wrap; + justify-content: flex-end; + margin-top: 16px; +} +.tox .tox-comment__gradient::after { + background: linear-gradient(rgba(43, 59, 78, 0), #2b3b4e); + bottom: 0; + content: ""; + display: block; + height: 5em; + margin-top: -40px; + position: absolute; + width: 100%; +} +.tox .tox-comment__overlay { + background: #2b3b4e; + bottom: 0; + display: flex; + flex-direction: column; + flex-grow: 1; + left: 0; + opacity: 0.9; + position: absolute; + right: 0; + text-align: center; + top: 0; + z-index: 5; +} +.tox .tox-comment__loading-text { + align-items: center; + color: #fff; + display: flex; + flex-direction: column; + position: relative; +} +.tox .tox-comment__loading-text > div { + padding-bottom: 16px; +} +.tox .tox-comment__overlaytext { + bottom: 0; + flex-direction: column; + font-size: 14px; + left: 0; + padding: 1em; + position: absolute; + right: 0; + top: 0; + z-index: 10; +} +.tox .tox-comment__overlaytext p { + background-color: #2b3b4e; + box-shadow: 0 0 8px 8px #2b3b4e; + color: #fff; + text-align: center; +} +.tox .tox-comment__overlaytext div:nth-of-type(2) { + font-size: 0.8em; +} +.tox .tox-comment__busy-spinner { + align-items: center; + background-color: #2b3b4e; + bottom: 0; + display: flex; + justify-content: center; + left: 0; + position: absolute; + right: 0; + top: 0; + z-index: 20; +} +.tox .tox-comment__scroll { + display: flex; + flex-direction: column; + flex-shrink: 1; + overflow: auto; +} +.tox .tox-conversations { + margin: 8px; +} +.tox:not([dir=rtl]) .tox-comment__edit { + margin-left: 8px; +} +.tox:not([dir=rtl]) .tox-comment__buttonspacing > *:last-child, +.tox:not([dir=rtl]) .tox-comment__edit > *:last-child, +.tox:not([dir=rtl]) .tox-comment__reply > *:last-child { + margin-left: 8px; +} +.tox[dir=rtl] .tox-comment__edit { + margin-right: 8px; +} +.tox[dir=rtl] .tox-comment__buttonspacing > *:last-child, +.tox[dir=rtl] .tox-comment__edit > *:last-child, +.tox[dir=rtl] .tox-comment__reply > *:last-child { + margin-right: 8px; +} +.tox .tox-user { + align-items: center; + display: flex; +} +.tox .tox-user__avatar svg { + fill: rgba(255, 255, 255, 0.5); +} +.tox .tox-user__avatar img { + border-radius: 50%; + height: 36px; + object-fit: cover; + vertical-align: middle; + width: 36px; +} +.tox .tox-user__name { + color: #fff; + font-size: 14px; + font-style: normal; + font-weight: bold; + line-height: 18px; + text-transform: none; +} +.tox:not([dir=rtl]) .tox-user__avatar svg, +.tox:not([dir=rtl]) .tox-user__avatar img { + margin-right: 8px; +} +.tox:not([dir=rtl]) .tox-user__avatar + .tox-user__name { + margin-left: 8px; +} +.tox[dir=rtl] .tox-user__avatar svg, +.tox[dir=rtl] .tox-user__avatar img { + margin-left: 8px; +} +.tox[dir=rtl] .tox-user__avatar + .tox-user__name { + margin-right: 8px; +} +.tox .tox-dialog-wrap { + align-items: center; + bottom: 0; + display: flex; + justify-content: center; + left: 0; + position: fixed; + right: 0; + top: 0; + z-index: 1100; +} +.tox .tox-dialog-wrap__backdrop { + background-color: rgba(34, 47, 62, 0.75); + bottom: 0; + left: 0; + position: absolute; + right: 0; + top: 0; + z-index: 1; +} +.tox .tox-dialog-wrap__backdrop--opaque { + background-color: #222F3E; +} +.tox .tox-dialog { + background-color: #2b3b4e; + border-color: #161f29; + border-radius: 10px; + border-style: solid; + border-width: 0px; + box-shadow: 0 16px 16px -10px rgba(34, 47, 62, 0.15), 0 0 40px 1px rgba(34, 47, 62, 0.15); + display: flex; + flex-direction: column; + max-height: 100%; + max-width: 480px; + overflow: hidden; + position: relative; + width: 95vw; + z-index: 2; +} +@media only screen and (max-width: 767px ) { + body:not(.tox-force-desktop) .tox .tox-dialog { + align-self: flex-start; + margin: 8px auto; + max-height: calc(100vh - 8px * 2); + width: calc(100vw - 16px); + } +} +.tox .tox-dialog-inline { + z-index: 1100; +} +.tox .tox-dialog__header { + align-items: center; + background-color: #2b3b4e; + border-bottom: none; + color: #fff; + display: flex; + font-size: 16px; + justify-content: space-between; + padding: 8px 16px 0 16px; + position: relative; +} +.tox .tox-dialog__header .tox-button { + z-index: 1; +} +.tox .tox-dialog__draghandle { + cursor: grab; + height: 100%; + left: 0; + position: absolute; + top: 0; + width: 100%; +} +.tox .tox-dialog__draghandle:active { + cursor: grabbing; +} +.tox .tox-dialog__dismiss { + margin-left: auto; +} +.tox .tox-dialog__title { + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + font-size: 20px; + font-style: normal; + font-weight: normal; + line-height: 1.3; + margin: 0; + text-transform: none; +} +.tox .tox-dialog__body { + color: #fff; + display: flex; + flex: 1; + font-size: 16px; + font-style: normal; + font-weight: normal; + line-height: 1.3; + min-width: 0; + text-align: left; + text-transform: none; +} +@media only screen and (max-width: 767px ) { + body:not(.tox-force-desktop) .tox .tox-dialog__body { + flex-direction: column; + } +} +.tox .tox-dialog__body-nav { + align-items: flex-start; + display: flex; + flex-direction: column; + flex-shrink: 0; + padding: 16px 16px; +} +@media only screen and (min-width: 768px ) { + .tox .tox-dialog__body-nav { + max-width: 11em; + } +} +@media only screen and (max-width: 767px ) { + body:not(.tox-force-desktop) .tox .tox-dialog__body-nav { + flex-direction: row; + -webkit-overflow-scrolling: touch; + overflow-x: auto; + padding-bottom: 0; + } +} +.tox .tox-dialog__body-nav-item { + border-bottom: 2px solid transparent; + color: rgba(255, 255, 255, 0.5); + display: inline-block; + flex-shrink: 0; + font-size: 14px; + line-height: 1.3; + margin-bottom: 8px; + max-width: 13em; + text-decoration: none; +} +.tox .tox-dialog__body-nav-item:focus { + background-color: rgba(0, 108, 231, 0.1); +} +.tox .tox-dialog__body-nav-item--active { + border-bottom: 2px solid #67aeff; + color: #67aeff; +} +.tox .tox-dialog__body-content { + box-sizing: border-box; + display: flex; + flex: 1; + flex-direction: column; + max-height: min(650px, calc(100vh - 110px)); + overflow: auto; + -webkit-overflow-scrolling: touch; + padding: 16px 16px; +} +.tox .tox-dialog__body-content > * { + margin-bottom: 0; + margin-top: 16px; +} +.tox .tox-dialog__body-content > *:first-child { + margin-top: 0; +} +.tox .tox-dialog__body-content > *:last-child { + margin-bottom: 0; +} +.tox .tox-dialog__body-content > *:only-child { + margin-bottom: 0; + margin-top: 0; +} +.tox .tox-dialog__body-content a { + color: #67aeff; + cursor: pointer; + text-decoration: underline; +} +.tox .tox-dialog__body-content a:hover, +.tox .tox-dialog__body-content a:focus { + color: #cde5ff; + text-decoration: underline; +} +.tox .tox-dialog__body-content a:focus-visible { + border-radius: 1px; + outline: 2px solid #67aeff; + outline-offset: 2px; +} +.tox .tox-dialog__body-content a:active { + color: #ffffff; + text-decoration: underline; +} +.tox .tox-dialog__body-content svg { + fill: #fff; +} +.tox .tox-dialog__body-content strong { + font-weight: bold; +} +.tox .tox-dialog__body-content ul { + list-style-type: disc; +} +.tox .tox-dialog__body-content ul, +.tox .tox-dialog__body-content ol, +.tox .tox-dialog__body-content dd { + padding-inline-start: 2.5rem; +} +.tox .tox-dialog__body-content ul, +.tox .tox-dialog__body-content ol, +.tox .tox-dialog__body-content dl { + margin-bottom: 16px; +} +.tox .tox-dialog__body-content ul, +.tox .tox-dialog__body-content ol, +.tox .tox-dialog__body-content dl, +.tox .tox-dialog__body-content dd, +.tox .tox-dialog__body-content dt { + display: block; + margin-inline-end: 0; + margin-inline-start: 0; +} +.tox .tox-dialog__body-content .tox-form__group h1 { + color: #fff; + font-size: 20px; + font-style: normal; + font-weight: bold; + letter-spacing: normal; + margin-bottom: 16px; + margin-top: 2rem; + text-transform: none; +} +.tox .tox-dialog__body-content .tox-form__group h2 { + color: #fff; + font-size: 16px; + font-style: normal; + font-weight: bold; + letter-spacing: normal; + margin-bottom: 16px; + margin-top: 2rem; + text-transform: none; +} +.tox .tox-dialog__body-content .tox-form__group p { + margin-bottom: 16px; +} +.tox .tox-dialog__body-content .tox-form__group h1:first-child, +.tox .tox-dialog__body-content .tox-form__group h2:first-child, +.tox .tox-dialog__body-content .tox-form__group p:first-child { + margin-top: 0; +} +.tox .tox-dialog__body-content .tox-form__group h1:last-child, +.tox .tox-dialog__body-content .tox-form__group h2:last-child, +.tox .tox-dialog__body-content .tox-form__group p:last-child { + margin-bottom: 0; +} +.tox .tox-dialog__body-content .tox-form__group h1:only-child, +.tox .tox-dialog__body-content .tox-form__group h2:only-child, +.tox .tox-dialog__body-content .tox-form__group p:only-child { + margin-bottom: 0; + margin-top: 0; +} +.tox .tox-dialog__body-content .tox-form__group .tox-label.tox-label--center { + text-align: center; +} +.tox .tox-dialog__body-content .tox-form__group .tox-label.tox-label--end { + text-align: end; +} +.tox .tox-dialog--width-lg { + height: 650px; + max-width: 1200px; +} +.tox .tox-dialog--fullscreen { + height: 100%; + max-width: 100%; +} +.tox .tox-dialog--fullscreen .tox-dialog__body-content { + max-height: 100%; +} +.tox .tox-dialog--width-md { + max-width: 800px; +} +.tox .tox-dialog--width-md .tox-dialog__body-content { + overflow: auto; +} +.tox .tox-dialog__body-content--centered { + text-align: center; +} +.tox .tox-dialog__footer { + align-items: center; + background-color: #2b3b4e; + border-top: none; + display: flex; + justify-content: space-between; + padding: 8px 16px; +} +.tox .tox-dialog__footer-start, +.tox .tox-dialog__footer-end { + display: flex; +} +.tox .tox-dialog__busy-spinner { + align-items: center; + background-color: rgba(34, 47, 62, 0.75); + bottom: 0; + display: flex; + justify-content: center; + left: 0; + position: absolute; + right: 0; + top: 0; + z-index: 3; +} +.tox .tox-dialog__table { + border-collapse: collapse; + width: 100%; +} +.tox .tox-dialog__table thead th { + font-weight: bold; + padding-bottom: 8px; +} +.tox .tox-dialog__table thead th:first-child { + padding-right: 8px; +} +.tox .tox-dialog__table tbody tr { + border-bottom: 1px solid #000000; +} +.tox .tox-dialog__table tbody tr:last-child { + border-bottom: none; +} +.tox .tox-dialog__table td { + padding-bottom: 8px; + padding-top: 8px; +} +.tox .tox-dialog__table td:first-child { + padding-right: 8px; +} +.tox .tox-dialog__iframe { + min-height: 200px; +} +.tox .tox-dialog__iframe.tox-dialog__iframe--opaque { + background: #fff; +} +.tox .tox-navobj-bordered { + position: relative; +} +.tox .tox-navobj-bordered::before { + border: 1px solid #161f29; + border-radius: 6px; + content: ''; + inset: 0; + opacity: 1; + pointer-events: none; + position: absolute; + z-index: 1; +} +.tox .tox-navobj-bordered-focus.tox-navobj-bordered::before { + border-color: #006ce7; + box-shadow: 0 0 0 2px rgba(0, 108, 231, 0.25); + outline: none; +} +.tox .tox-dialog__popups { + position: absolute; + width: 100%; + z-index: 1100; +} +.tox .tox-dialog__body-iframe { + display: flex; + flex: 1; + flex-direction: column; +} +.tox .tox-dialog__body-iframe .tox-navobj { + display: flex; + flex: 1; +} +.tox .tox-dialog__body-iframe .tox-navobj :nth-child(2) { + flex: 1; + height: 100%; +} +.tox .tox-dialog-dock-fadeout { + opacity: 0; + visibility: hidden; +} +.tox .tox-dialog-dock-fadein { + opacity: 1; + visibility: visible; +} +.tox .tox-dialog-dock-transition { + transition: visibility 0s linear 0.3s, opacity 0.3s ease; +} +.tox .tox-dialog-dock-transition.tox-dialog-dock-fadein { + transition-delay: 0s; +} +@media only screen and (max-width: 767px ) { + body:not(.tox-force-desktop) .tox:not([dir=rtl]) .tox-dialog__body-nav { + margin-right: 0; + } +} +@media only screen and (max-width: 767px ) { + body:not(.tox-force-desktop) .tox:not([dir=rtl]) .tox-dialog__body-nav-item:not(:first-child) { + margin-left: 8px; + } +} +.tox:not([dir=rtl]) .tox-dialog__footer .tox-dialog__footer-start > *, +.tox:not([dir=rtl]) .tox-dialog__footer .tox-dialog__footer-end > * { + margin-left: 8px; +} +.tox[dir=rtl] .tox-dialog__body { + text-align: right; +} +@media only screen and (max-width: 767px ) { + body:not(.tox-force-desktop) .tox[dir=rtl] .tox-dialog__body-nav { + margin-left: 0; + } +} +@media only screen and (max-width: 767px ) { + body:not(.tox-force-desktop) .tox[dir=rtl] .tox-dialog__body-nav-item:not(:first-child) { + margin-right: 8px; + } +} +.tox[dir=rtl] .tox-dialog__footer .tox-dialog__footer-start > *, +.tox[dir=rtl] .tox-dialog__footer .tox-dialog__footer-end > * { + margin-right: 8px; +} +body.tox-dialog__disable-scroll { + overflow: hidden; +} +.tox .tox-dropzone-container { + display: flex; + flex: 1; +} +.tox .tox-dropzone { + align-items: center; + background: #fff; + border: 2px dashed #161f29; + box-sizing: border-box; + display: flex; + flex-direction: column; + flex-grow: 1; + justify-content: center; + min-height: 100px; + padding: 10px; +} +.tox .tox-dropzone p { + color: rgba(255, 255, 255, 0.5); + margin: 0 0 16px 0; +} +.tox .tox-edit-area { + display: flex; + flex: 1; + overflow: hidden; + position: relative; +} +.tox .tox-edit-area::before { + border: 2px solid #FFFFFF; + border-radius: 4px; + content: ''; + inset: 0; + opacity: 0; + pointer-events: none; + position: absolute; + transition: opacity 0.15s; + z-index: 1; +} +.tox .tox-edit-area__iframe { + background-color: #fff; + border: 0; + box-sizing: border-box; + flex: 1; + height: 100%; + position: absolute; + width: 100%; +} +.tox.tox-edit-focus .tox-edit-area::before { + opacity: 1; +} +.tox.tox-inline-edit-area { + border: 1px dotted #161f29; +} +.tox .tox-editor-container { + display: flex; + flex: 1 1 auto; + flex-direction: column; + overflow: hidden; +} +.tox .tox-editor-header { + display: grid; + grid-template-columns: 1fr min-content; + z-index: 2; +} +.tox:not(.tox-tinymce-inline) .tox-editor-header { + background-color: #222F3E; + border-bottom: 1px solid rgba(255, 255, 255, 0.15); + box-shadow: none; + padding: 4px 0; +} +.tox:not(.tox-tinymce-inline) .tox-editor-header:not(.tox-editor-dock-transition) { + transition: box-shadow 0.5s; +} +.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-bottom .tox-editor-header { + border-top: 1px solid rgba(255, 255, 255, 0.15); + box-shadow: none; +} +.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-sticky-on .tox-editor-header { + background-color: #222F3E; + box-shadow: none; + padding: 4px 0; +} +.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-sticky-on.tox-tinymce--toolbar-bottom .tox-editor-header { + box-shadow: none; +} +.tox.tox:not(.tox-tinymce-inline) .tox-editor-header.tox-editor-header--empty { + background: none; + border: none; + box-shadow: none; + padding: 0; +} +.tox-editor-dock-fadeout { + opacity: 0; + visibility: hidden; +} +.tox-editor-dock-fadein { + opacity: 1; + visibility: visible; +} +.tox-editor-dock-transition { + transition: visibility 0s linear 0.25s, opacity 0.25s ease; +} +.tox-editor-dock-transition.tox-editor-dock-fadein { + transition-delay: 0s; +} +.tox .tox-control-wrap { + flex: 1; + position: relative; +} +.tox .tox-control-wrap:not(.tox-control-wrap--status-invalid) .tox-control-wrap__status-icon-invalid, +.tox .tox-control-wrap:not(.tox-control-wrap--status-unknown) .tox-control-wrap__status-icon-unknown, +.tox .tox-control-wrap:not(.tox-control-wrap--status-valid) .tox-control-wrap__status-icon-valid { + display: none; +} +.tox .tox-control-wrap svg { + display: block; +} +.tox .tox-control-wrap__status-icon-wrap { + position: absolute; + top: 50%; + transform: translateY(-50%); +} +.tox .tox-control-wrap__status-icon-invalid svg { + fill: #c00; +} +.tox .tox-control-wrap__status-icon-unknown svg { + fill: orange; +} +.tox .tox-control-wrap__status-icon-valid svg { + fill: green; +} +.tox:not([dir=rtl]) .tox-control-wrap--status-invalid .tox-textfield, +.tox:not([dir=rtl]) .tox-control-wrap--status-unknown .tox-textfield, +.tox:not([dir=rtl]) .tox-control-wrap--status-valid .tox-textfield { + padding-right: 32px; +} +.tox:not([dir=rtl]) .tox-control-wrap__status-icon-wrap { + right: 4px; +} +.tox[dir=rtl] .tox-control-wrap--status-invalid .tox-textfield, +.tox[dir=rtl] .tox-control-wrap--status-unknown .tox-textfield, +.tox[dir=rtl] .tox-control-wrap--status-valid .tox-textfield { + padding-left: 32px; +} +.tox[dir=rtl] .tox-control-wrap__status-icon-wrap { + left: 4px; +} +.tox .tox-autocompleter { + max-width: 25em; +} +.tox .tox-autocompleter .tox-menu { + box-sizing: border-box; + max-width: 25em; +} +.tox .tox-autocompleter .tox-autocompleter-highlight { + font-weight: bold; +} +.tox .tox-color-input { + display: flex; + position: relative; + z-index: 1; +} +.tox .tox-color-input .tox-textfield { + z-index: -1; +} +.tox .tox-color-input span { + border-color: rgba(34, 47, 62, 0.2); + border-radius: 6px; + border-style: solid; + border-width: 1px; + box-shadow: none; + box-sizing: border-box; + height: 24px; + position: absolute; + top: 6px; + width: 24px; +} +.tox .tox-color-input span:hover:not([aria-disabled=true]), +.tox .tox-color-input span:focus:not([aria-disabled=true]) { + border-color: #006ce7; + cursor: pointer; +} +.tox .tox-color-input span::before { + background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.25) 25%, transparent 25%), linear-gradient(-45deg, rgba(255, 255, 255, 0.25) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.25) 75%), linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.25) 75%); + background-position: 0 0, 0 6px, 6px -6px, -6px 0; + background-size: 12px 12px; + border: 1px solid #2b3b4e; + border-radius: 6px; + box-sizing: border-box; + content: ''; + height: 24px; + left: -1px; + position: absolute; + top: -1px; + width: 24px; + z-index: -1; +} +.tox .tox-color-input span[aria-disabled=true] { + cursor: not-allowed; +} +.tox:not([dir=rtl]) .tox-color-input { + /* stylelint-disable-next-line no-descending-specificity */ +} +.tox:not([dir=rtl]) .tox-color-input .tox-textfield { + padding-left: 36px; +} +.tox:not([dir=rtl]) .tox-color-input span { + left: 6px; +} +.tox[dir="rtl"] .tox-color-input { + /* stylelint-disable-next-line no-descending-specificity */ +} +.tox[dir="rtl"] .tox-color-input .tox-textfield { + padding-right: 36px; +} +.tox[dir="rtl"] .tox-color-input span { + right: 6px; +} +.tox .tox-label, +.tox .tox-toolbar-label { + color: rgba(255, 255, 255, 0.5); + display: block; + font-size: 14px; + font-style: normal; + font-weight: normal; + line-height: 1.3; + padding: 0 8px 0 0; + text-transform: none; + white-space: nowrap; +} +.tox .tox-toolbar-label { + padding: 0 8px; +} +.tox[dir=rtl] .tox-label { + padding: 0 0 0 8px; +} +.tox .tox-form { + display: flex; + flex: 1; + flex-direction: column; +} +.tox .tox-form__group { + box-sizing: border-box; + margin-bottom: 4px; +} +.tox .tox-form-group--maximize { + flex: 1; +} +.tox .tox-form__group--error { + color: #c00; +} +.tox .tox-form__group--collection { + display: flex; +} +.tox .tox-form__grid { + display: flex; + flex-direction: row; + flex-wrap: wrap; + justify-content: space-between; +} +.tox .tox-form__grid--2col > .tox-form__group { + width: calc(50% - (8px / 2)); +} +.tox .tox-form__grid--3col > .tox-form__group { + width: calc(100% / 3 - (8px / 2)); +} +.tox .tox-form__grid--4col > .tox-form__group { + width: calc(25% - (8px / 2)); +} +.tox .tox-form__controls-h-stack { + align-items: center; + display: flex; +} +.tox .tox-form__group--inline { + align-items: center; + display: flex; +} +.tox .tox-form__group--stretched { + display: flex; + flex: 1; + flex-direction: column; +} +.tox .tox-form__group--stretched .tox-textarea { + flex: 1; +} +.tox .tox-form__group--stretched .tox-navobj { + display: flex; + flex: 1; +} +.tox .tox-form__group--stretched .tox-navobj :nth-child(2) { + flex: 1; + height: 100%; +} +.tox:not([dir=rtl]) .tox-form__controls-h-stack > *:not(:first-child) { + margin-left: 4px; +} +.tox[dir=rtl] .tox-form__controls-h-stack > *:not(:first-child) { + margin-right: 4px; +} +.tox .tox-lock.tox-locked .tox-lock-icon__unlock, +.tox .tox-lock:not(.tox-locked) .tox-lock-icon__lock { + display: none; +} +.tox .tox-textfield, +.tox .tox-toolbar-textfield, +.tox .tox-listboxfield .tox-listbox--select, +.tox .tox-textarea, +.tox .tox-textarea-wrap .tox-textarea:focus { + -webkit-appearance: none; + -moz-appearance: none; + appearance: none; + background-color: #2b3b4e; + border-color: #161f29; + border-radius: 6px; + border-style: solid; + border-width: 1px; + box-shadow: none; + box-sizing: border-box; + color: #fff; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + font-size: 16px; + line-height: 24px; + margin: 0; + min-height: 34px; + outline: none; + padding: 5px 5.5px; + resize: none; + width: 100%; +} +.tox .tox-textfield[disabled], +.tox .tox-textarea[disabled] { + background-color: #222f3e; + color: rgba(255, 255, 255, 0.85); + cursor: not-allowed; +} +.tox .tox-textfield:focus, +.tox .tox-listboxfield .tox-listbox--select:focus, +.tox .tox-textarea-wrap:focus-within, +.tox .tox-textarea:focus, +.tox .tox-custom-editor:focus-within { + background-color: #2b3b4e; + border-color: #006ce7; + box-shadow: 0 0 0 2px rgba(0, 108, 231, 0.25); + outline: none; +} +.tox .tox-toolbar-textfield { + border-width: 0; + margin-bottom: 3px; + margin-top: 2px; + max-width: 250px; +} +.tox .tox-naked-btn { + background-color: transparent; + border: 0; + border-color: transparent; + box-shadow: unset; + color: #006ce7; + cursor: pointer; + display: block; + margin: 0; + padding: 0; +} +.tox .tox-naked-btn svg { + display: block; + fill: #fff; +} +.tox:not([dir=rtl]) .tox-toolbar-textfield + * { + margin-left: 4px; +} +.tox[dir=rtl] .tox-toolbar-textfield + * { + margin-right: 4px; +} +.tox .tox-listboxfield { + cursor: pointer; + position: relative; +} +.tox .tox-listboxfield .tox-listbox--select[disabled] { + background-color: #19232e; + color: rgba(255, 255, 255, 0.85); + cursor: not-allowed; +} +.tox .tox-listbox__select-label { + cursor: default; + flex: 1; + margin: 0 4px; +} +.tox .tox-listbox__select-chevron { + align-items: center; + display: flex; + justify-content: center; + width: 16px; +} +.tox .tox-listbox__select-chevron svg { + fill: #fff; +} +.tox .tox-listboxfield .tox-listbox--select { + align-items: center; + display: flex; +} +.tox:not([dir=rtl]) .tox-listboxfield svg { + right: 8px; +} +.tox[dir=rtl] .tox-listboxfield svg { + left: 8px; +} +.tox .tox-selectfield { + cursor: pointer; + position: relative; +} +.tox .tox-selectfield select { + -webkit-appearance: none; + -moz-appearance: none; + appearance: none; + background-color: #2b3b4e; + border-color: #161f29; + border-radius: 6px; + border-style: solid; + border-width: 1px; + box-shadow: none; + box-sizing: border-box; + color: #fff; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + font-size: 16px; + line-height: 24px; + margin: 0; + min-height: 34px; + outline: none; + padding: 5px 5.5px; + resize: none; + width: 100%; +} +.tox .tox-selectfield select[disabled] { + background-color: #19232e; + color: rgba(255, 255, 255, 0.85); + cursor: not-allowed; +} +.tox .tox-selectfield select::-ms-expand { + display: none; +} +.tox .tox-selectfield select:focus { + background-color: #2b3b4e; + border-color: #006ce7; + box-shadow: 0 0 0 2px rgba(0, 108, 231, 0.25); + outline: none; +} +.tox .tox-selectfield svg { + pointer-events: none; + position: absolute; + top: 50%; + transform: translateY(-50%); +} +.tox:not([dir=rtl]) .tox-selectfield select[size="0"], +.tox:not([dir=rtl]) .tox-selectfield select[size="1"] { + padding-right: 24px; +} +.tox:not([dir=rtl]) .tox-selectfield svg { + right: 8px; +} +.tox[dir=rtl] .tox-selectfield select[size="0"], +.tox[dir=rtl] .tox-selectfield select[size="1"] { + padding-left: 24px; +} +.tox[dir=rtl] .tox-selectfield svg { + left: 8px; +} +.tox .tox-textarea-wrap { + border-color: #161f29; + border-radius: 6px; + border-style: solid; + border-width: 1px; + display: flex; + flex: 1; + overflow: hidden; +} +.tox .tox-textarea { + -webkit-appearance: textarea; + -moz-appearance: textarea; + appearance: textarea; + white-space: pre-wrap; +} +.tox .tox-textarea-wrap .tox-textarea { + border: none; +} +.tox .tox-textarea-wrap .tox-textarea:focus { + border: none; +} +.tox-fullscreen { + border: 0; + height: 100%; + margin: 0; + overflow: hidden; + overscroll-behavior: none; + padding: 0; + touch-action: pinch-zoom; + width: 100%; +} +.tox.tox-tinymce.tox-fullscreen .tox-statusbar__resize-handle { + display: none; +} +.tox.tox-tinymce.tox-fullscreen, +.tox-shadowhost.tox-fullscreen { + left: 0; + position: fixed; + top: 0; + z-index: 1200; +} +.tox.tox-tinymce.tox-fullscreen { + background-color: transparent; +} +.tox-fullscreen .tox.tox-tinymce-aux, +.tox-fullscreen ~ .tox.tox-tinymce-aux { + z-index: 1201; +} +.tox .tox-help__more-link { + list-style: none; + margin-top: 1em; +} +.tox .tox-imagepreview { + background-color: #666; + height: 380px; + overflow: hidden; + position: relative; + width: 100%; +} +.tox .tox-imagepreview.tox-imagepreview__loaded { + overflow: auto; +} +.tox .tox-imagepreview__container { + display: flex; + left: 100vw; + position: absolute; + top: 100vw; +} +.tox .tox-imagepreview__image { + background: url(data:image/gif;base64,R0lGODdhDAAMAIABAMzMzP///ywAAAAADAAMAAACFoQfqYeabNyDMkBQb81Uat85nxguUAEAOw==); +} +.tox .tox-image-tools .tox-spacer { + flex: 1; +} +.tox .tox-image-tools .tox-bar { + align-items: center; + display: flex; + height: 60px; + justify-content: center; +} +.tox .tox-image-tools .tox-imagepreview, +.tox .tox-image-tools .tox-imagepreview + .tox-bar { + margin-top: 8px; +} +.tox .tox-image-tools .tox-croprect-block { + background: black; + filter: alpha(opacity=50); + opacity: 0.5; + position: absolute; + zoom: 1; +} +.tox .tox-image-tools .tox-croprect-handle { + border: 2px solid white; + height: 20px; + left: 0; + position: absolute; + top: 0; + width: 20px; +} +.tox .tox-image-tools .tox-croprect-handle-move { + border: 0; + cursor: move; + position: absolute; +} +.tox .tox-image-tools .tox-croprect-handle-nw { + border-width: 2px 0 0 2px; + cursor: nw-resize; + left: 100px; + margin: -2px 0 0 -2px; + top: 100px; +} +.tox .tox-image-tools .tox-croprect-handle-ne { + border-width: 2px 2px 0 0; + cursor: ne-resize; + left: 200px; + margin: -2px 0 0 -20px; + top: 100px; +} +.tox .tox-image-tools .tox-croprect-handle-sw { + border-width: 0 0 2px 2px; + cursor: sw-resize; + left: 100px; + margin: -20px 2px 0 -2px; + top: 200px; +} +.tox .tox-image-tools .tox-croprect-handle-se { + border-width: 0 2px 2px 0; + cursor: se-resize; + left: 200px; + margin: -20px 0 0 -20px; + top: 200px; +} +.tox .tox-insert-table-picker { + display: flex; + flex-wrap: wrap; + width: 170px; +} +.tox .tox-insert-table-picker > div { + border-color: rgba(255, 255, 255, 0.15); + border-style: solid; + border-width: 0 1px 1px 0; + box-sizing: border-box; + height: 17px; + width: 17px; +} +.tox .tox-collection--list .tox-collection__group .tox-insert-table-picker { + margin: -4px -4px; +} +.tox .tox-insert-table-picker .tox-insert-table-picker__selected { + background-color: rgba(0, 108, 231, 0.5); + border-color: rgba(0, 108, 231, 0.5); +} +.tox .tox-insert-table-picker__label { + color: #fff; + display: block; + font-size: 14px; + padding: 4px; + text-align: center; + width: 100%; +} +.tox:not([dir=rtl]) { + /* stylelint-disable-next-line no-descending-specificity */ +} +.tox:not([dir=rtl]) .tox-insert-table-picker > div:nth-child(10n) { + border-right: 0; +} +.tox[dir=rtl] { + /* stylelint-disable-next-line no-descending-specificity */ +} +.tox[dir=rtl] .tox-insert-table-picker > div:nth-child(10n+1) { + border-right: 0; +} +.tox { + /* stylelint-disable */ + /* stylelint-enable */ +} +.tox .tox-menu { + background-color: #2b3b4e; + border: 1px solid rgba(255, 255, 255, 0.15); + border-radius: 6px; + box-shadow: none; + display: inline-block; + overflow: hidden; + vertical-align: top; + z-index: 1150; +} +.tox .tox-menu.tox-collection.tox-collection--list { + padding: 0 4px; +} +.tox .tox-menu.tox-collection.tox-collection--toolbar { + padding: 8px; +} +.tox .tox-menu.tox-collection.tox-collection--grid { + padding: 8px; +} +@media only screen and (min-width: 768px ) { + .tox .tox-menu .tox-collection__item-label { + overflow-wrap: break-word; + word-break: normal; + } + .tox .tox-dialog__popups .tox-menu .tox-collection__item-label { + word-break: break-all; + } +} +.tox .tox-menu__label h1, +.tox .tox-menu__label h2, +.tox .tox-menu__label h3, +.tox .tox-menu__label h4, +.tox .tox-menu__label h5, +.tox .tox-menu__label h6, +.tox .tox-menu__label p, +.tox .tox-menu__label blockquote, +.tox .tox-menu__label code { + margin: 0; +} +.tox .tox-menubar { + background: repeating-linear-gradient(transparent 0px 1px, transparent 1px 39px) center top 39px / 100% calc(100% - 39px) no-repeat; + background-color: #222F3E; + display: flex; + flex: 0 0 auto; + flex-shrink: 0; + flex-wrap: wrap; + grid-column: 1 / -1; + grid-row: 1; + padding: 0 11px 0 12px; +} +.tox .tox-promotion + .tox-menubar { + grid-column: 1; +} +.tox .tox-promotion { + background: repeating-linear-gradient(transparent 0px 1px, transparent 1px 39px) center top 39px / 100% calc(100% - 39px) no-repeat; + background-color: #222F3E; + grid-column: 2; + grid-row: 1; + padding-inline-end: 8px; + padding-inline-start: 4px; + padding-top: 5px; +} +.tox .tox-promotion-link { + align-items: unsafe center; + background-color: #E8F1F8; + border-radius: 5px; + color: #086BE6; + cursor: pointer; + display: flex; + font-size: 14px; + height: 26.6px; + padding: 4px 8px; + white-space: nowrap; +} +.tox .tox-promotion-link:hover { + background-color: #B4D7FF; +} +.tox .tox-promotion-link:focus { + background-color: #D9EDF7; +} +/* Deprecated. Remove in next major release */ +.tox .tox-mbtn { + align-items: center; + background: transparent; + border: 0; + border-radius: 3px; + box-shadow: none; + color: #fff; + display: flex; + flex: 0 0 auto; + font-size: 14px; + font-style: normal; + font-weight: normal; + height: 28px; + justify-content: center; + margin: 5px 1px 6px 0; + outline: none; + overflow: hidden; + padding: 0 4px; + text-transform: none; + width: auto; +} +.tox .tox-mbtn[disabled] { + background-color: transparent; + border: 0; + box-shadow: none; + color: rgba(255, 255, 255, 0.5); + cursor: not-allowed; +} +.tox .tox-mbtn:focus:not(:disabled) { + background: #3389ec; + border: 0; + box-shadow: none; + color: #fff; +} +.tox .tox-mbtn--active { + background: #599fef; + border: 0; + box-shadow: none; + color: #fff; +} +.tox .tox-mbtn:hover:not(:disabled):not(.tox-mbtn--active) { + background: #3389ec; + border: 0; + box-shadow: none; + color: #fff; +} +.tox .tox-mbtn__select-label { + cursor: default; + font-weight: normal; + margin: 0 4px; +} +.tox .tox-mbtn[disabled] .tox-mbtn__select-label { + cursor: not-allowed; +} +.tox .tox-mbtn__select-chevron { + align-items: center; + display: flex; + justify-content: center; + width: 16px; + display: none; +} +.tox .tox-notification { + border-radius: 6px; + border-style: solid; + border-width: 1px; + box-shadow: none; + box-sizing: border-box; + display: grid; + font-size: 14px; + font-weight: normal; + grid-template-columns: minmax(40px, 1fr) auto minmax(40px, 1fr); + margin-top: 4px; + opacity: 0; + padding: 4px; + transition: transform 100ms ease-in, opacity 150ms ease-in; +} +.tox .tox-notification p { + font-size: 14px; + font-weight: normal; +} +.tox .tox-notification a { + cursor: pointer; + text-decoration: underline; +} +.tox .tox-notification--in { + opacity: 1; +} +.tox .tox-notification--success { + background-color: #334840; + border-color: #3c5440; + color: #fff; +} +.tox .tox-notification--success p { + color: #fff; +} +.tox .tox-notification--success a { + color: #b5d199; +} +.tox .tox-notification--success svg { + fill: #fff; +} +.tox .tox-notification--error { + background-color: #442632; + border-color: #55212b; + color: #fff; +} +.tox .tox-notification--error p { + color: #fff; +} +.tox .tox-notification--error a { + color: #e68080; +} +.tox .tox-notification--error svg { + fill: #fff; +} +.tox .tox-notification--warn, +.tox .tox-notification--warning { + background-color: #222F3E; + border-color: rgba(255, 255, 255, 0.15); + color: #fff0b3; +} +.tox .tox-notification--warn p, +.tox .tox-notification--warning p { + color: #fff0b3; +} +.tox .tox-notification--warn a, +.tox .tox-notification--warning a { + color: #ffcc00; +} +.tox .tox-notification--warn svg, +.tox .tox-notification--warning svg { + fill: #fff0b3; +} +.tox .tox-notification--info { + background-color: #254161; + border-color: #264972; + color: #fff; +} +.tox .tox-notification--info p { + color: #fff; +} +.tox .tox-notification--info a { + color: #83b7f3; +} +.tox .tox-notification--info svg { + fill: #fff; +} +.tox .tox-notification__body { + align-self: center; + color: #fff; + font-size: 14px; + grid-column-end: 3; + grid-column-start: 2; + grid-row-end: 2; + grid-row-start: 1; + text-align: center; + white-space: normal; + word-break: break-all; + word-break: break-word; +} +.tox .tox-notification__body > * { + margin: 0; +} +.tox .tox-notification__body > * + * { + margin-top: 1rem; +} +.tox .tox-notification__icon { + align-self: center; + grid-column-end: 2; + grid-column-start: 1; + grid-row-end: 2; + grid-row-start: 1; + justify-self: end; +} +.tox .tox-notification__icon svg { + display: block; +} +.tox .tox-notification__dismiss { + align-self: start; + grid-column-end: 4; + grid-column-start: 3; + grid-row-end: 2; + grid-row-start: 1; + justify-self: end; +} +.tox .tox-notification .tox-progress-bar { + grid-column-end: 4; + grid-column-start: 1; + grid-row-end: 3; + grid-row-start: 2; + justify-self: center; +} +.tox .tox-pop { + display: inline-block; + position: relative; +} +.tox .tox-pop--resizing { + transition: width 0.1s ease; +} +.tox .tox-pop--resizing .tox-toolbar, +.tox .tox-pop--resizing .tox-toolbar__group { + flex-wrap: nowrap; +} +.tox .tox-pop--transition { + transition: 0.15s ease; + transition-property: left, right, top, bottom; +} +.tox .tox-pop--transition::before, +.tox .tox-pop--transition::after { + transition: all 0.15s, visibility 0s, opacity 0.075s ease 0.075s; +} +.tox .tox-pop__dialog { + background-color: #222F3E; + border: 1px solid #161f29; + border-radius: 6px; + box-shadow: 0 0 2px 0 rgba(34, 47, 62, 0.2), 0 4px 8px 0 rgba(34, 47, 62, 0.15); + min-width: 0; + overflow: hidden; +} +.tox .tox-pop__dialog > *:not(.tox-toolbar) { + margin: 4px 4px 4px 8px; +} +.tox .tox-pop__dialog .tox-toolbar { + background-color: transparent; + margin-bottom: -1px; +} +.tox .tox-pop::before, +.tox .tox-pop::after { + border-style: solid; + content: ''; + display: block; + height: 0; + opacity: 1; + position: absolute; + width: 0; +} +.tox .tox-pop.tox-pop--inset::before, +.tox .tox-pop.tox-pop--inset::after { + opacity: 0; + transition: all 0s 0.15s, visibility 0s, opacity 0.075s ease; +} +.tox .tox-pop.tox-pop--bottom::before, +.tox .tox-pop.tox-pop--bottom::after { + left: 50%; + top: 100%; +} +.tox .tox-pop.tox-pop--bottom::after { + border-color: #222F3E transparent transparent transparent; + border-width: 8px; + margin-left: -8px; + margin-top: -1px; +} +.tox .tox-pop.tox-pop--bottom::before { + border-color: #161f29 transparent transparent transparent; + border-width: 9px; + margin-left: -9px; +} +.tox .tox-pop.tox-pop--top::before, +.tox .tox-pop.tox-pop--top::after { + left: 50%; + top: 0; + transform: translateY(-100%); +} +.tox .tox-pop.tox-pop--top::after { + border-color: transparent transparent #222F3E transparent; + border-width: 8px; + margin-left: -8px; + margin-top: 1px; +} +.tox .tox-pop.tox-pop--top::before { + border-color: transparent transparent #161f29 transparent; + border-width: 9px; + margin-left: -9px; +} +.tox .tox-pop.tox-pop--left::before, +.tox .tox-pop.tox-pop--left::after { + left: 0; + top: calc(50% - 1px); + transform: translateY(-50%); +} +.tox .tox-pop.tox-pop--left::after { + border-color: transparent #222F3E transparent transparent; + border-width: 8px; + margin-left: -15px; +} +.tox .tox-pop.tox-pop--left::before { + border-color: transparent #161f29 transparent transparent; + border-width: 10px; + margin-left: -19px; +} +.tox .tox-pop.tox-pop--right::before, +.tox .tox-pop.tox-pop--right::after { + left: 100%; + top: calc(50% + 1px); + transform: translateY(-50%); +} +.tox .tox-pop.tox-pop--right::after { + border-color: transparent transparent transparent #222F3E; + border-width: 8px; + margin-left: -1px; +} +.tox .tox-pop.tox-pop--right::before { + border-color: transparent transparent transparent #161f29; + border-width: 10px; + margin-left: -1px; +} +.tox .tox-pop.tox-pop--align-left::before, +.tox .tox-pop.tox-pop--align-left::after { + left: 20px; +} +.tox .tox-pop.tox-pop--align-right::before, +.tox .tox-pop.tox-pop--align-right::after { + left: calc(100% - 20px); +} +.tox .tox-sidebar-wrap { + display: flex; + flex-direction: row; + flex-grow: 1; + min-height: 0; +} +.tox .tox-sidebar { + background-color: #222F3E; + display: flex; + flex-direction: row; + justify-content: flex-end; +} +.tox .tox-sidebar__slider { + display: flex; + overflow: hidden; +} +.tox .tox-sidebar__pane-container { + display: flex; +} +.tox .tox-sidebar__pane { + display: flex; +} +.tox .tox-sidebar--sliding-closed { + opacity: 0; +} +.tox .tox-sidebar--sliding-open { + opacity: 1; +} +.tox .tox-sidebar--sliding-growing, +.tox .tox-sidebar--sliding-shrinking { + transition: width 0.5s ease, opacity 0.5s ease; +} +.tox .tox-selector { + background-color: #4099ff; + border-color: #4099ff; + border-style: solid; + border-width: 1px; + box-sizing: border-box; + display: inline-block; + height: 10px; + position: absolute; + width: 10px; +} +.tox.tox-platform-touch .tox-selector { + height: 12px; + width: 12px; +} +.tox .tox-slider { + align-items: center; + display: flex; + flex: 1; + height: 24px; + justify-content: center; + position: relative; +} +.tox .tox-slider__rail { + background-color: transparent; + border: 1px solid #161f29; + border-radius: 6px; + height: 10px; + min-width: 120px; + width: 100%; +} +.tox .tox-slider__handle { + background-color: #006ce7; + border: 2px solid #0054b4; + border-radius: 6px; + box-shadow: none; + height: 24px; + left: 50%; + position: absolute; + top: 50%; + transform: translateX(-50%) translateY(-50%); + width: 14px; +} +.tox .tox-form__controls-h-stack > .tox-slider:not(:first-of-type) { + margin-inline-start: 8px; +} +.tox .tox-form__controls-h-stack > .tox-form__group + .tox-slider { + margin-inline-start: 32px; +} +.tox .tox-form__controls-h-stack > .tox-slider + .tox-form__group { + margin-inline-start: 32px; +} +.tox .tox-source-code { + overflow: auto; +} +.tox .tox-spinner { + display: flex; +} +.tox .tox-spinner > div { + animation: tam-bouncing-dots 1.5s ease-in-out 0s infinite both; + background-color: rgba(255, 255, 255, 0.5); + border-radius: 100%; + height: 8px; + width: 8px; +} +.tox .tox-spinner > div:nth-child(1) { + animation-delay: -0.32s; +} +.tox .tox-spinner > div:nth-child(2) { + animation-delay: -0.16s; +} +@keyframes tam-bouncing-dots { + 0%, + 80%, + 100% { + transform: scale(0); + } + 40% { + transform: scale(1); + } +} +.tox:not([dir=rtl]) .tox-spinner > div:not(:first-child) { + margin-left: 4px; +} +.tox[dir=rtl] .tox-spinner > div:not(:first-child) { + margin-right: 4px; +} +.tox .tox-statusbar { + align-items: center; + background-color: #222F3E; + border-top: 1px solid rgba(255, 255, 255, 0.15); + color: rgba(255, 255, 255, 0.75); + display: flex; + flex: 0 0 auto; + font-size: 14px; + font-weight: normal; + height: 25px; + overflow: hidden; + padding: 0 8px; + position: relative; + text-transform: none; +} +.tox .tox-statusbar__path { + display: flex; + flex: 1 1 auto; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} +.tox .tox-statusbar__right-container { + display: flex; + justify-content: flex-end; + white-space: nowrap; +} +.tox .tox-statusbar__help-text { + text-align: center; +} +.tox .tox-statusbar__text-container { + display: flex; + flex: 1 1 auto; + justify-content: space-between; + overflow: hidden; +} +@media only screen and (min-width: 768px ) { + .tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols > .tox-statusbar__help-text, + .tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols > .tox-statusbar__right-container, + .tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols > .tox-statusbar__path { + flex: 0 0 calc(100% / 3); + } +} +.tox .tox-statusbar__text-container.tox-statusbar__text-container--flex-end { + justify-content: flex-end; +} +.tox .tox-statusbar__text-container.tox-statusbar__text-container--flex-start { + justify-content: flex-start; +} +.tox .tox-statusbar__text-container.tox-statusbar__text-container--space-around { + justify-content: space-around; +} +.tox .tox-statusbar__path > * { + display: inline; + white-space: nowrap; +} +.tox .tox-statusbar__wordcount { + flex: 0 0 auto; + margin-left: 1ch; +} +@media only screen and (max-width: 767px ) { + .tox .tox-statusbar__text-container .tox-statusbar__help-text { + display: none; + } + .tox .tox-statusbar__text-container .tox-statusbar__help-text:only-child { + display: block; + } +} +.tox .tox-statusbar a, +.tox .tox-statusbar__path-item, +.tox .tox-statusbar__wordcount { + color: rgba(255, 255, 255, 0.75); + text-decoration: none; +} +.tox .tox-statusbar a:hover:not(:disabled):not([aria-disabled=true]), +.tox .tox-statusbar__path-item:hover:not(:disabled):not([aria-disabled=true]), +.tox .tox-statusbar__wordcount:hover:not(:disabled):not([aria-disabled=true]), +.tox .tox-statusbar a:focus:not(:disabled):not([aria-disabled=true]), +.tox .tox-statusbar__path-item:focus:not(:disabled):not([aria-disabled=true]), +.tox .tox-statusbar__wordcount:focus:not(:disabled):not([aria-disabled=true]) { + color: #fff; + cursor: pointer; +} +.tox .tox-statusbar__branding svg { + fill: rgba(255, 255, 255, 0.8); + height: 1.14em; + vertical-align: -0.28em; + width: 3.6em; +} +.tox .tox-statusbar__branding a:hover:not(:disabled):not([aria-disabled=true]) svg, +.tox .tox-statusbar__branding a:focus:not(:disabled):not([aria-disabled=true]) svg { + fill: #fff; +} +.tox .tox-statusbar__resize-handle { + align-items: flex-end; + align-self: stretch; + cursor: nwse-resize; + display: flex; + flex: 0 0 auto; + justify-content: flex-end; + margin-left: auto; + margin-right: -8px; + padding-bottom: 3px; + padding-left: 1ch; + padding-right: 3px; +} +.tox .tox-statusbar__resize-handle svg { + display: block; + fill: rgba(255, 255, 255, 0.5); +} +.tox .tox-statusbar__resize-handle:focus svg { + background-color: #434e5b; + border-radius: 1px 1px 5px 1px; + box-shadow: 0 0 0 2px #434e5b; +} +.tox:not([dir=rtl]) .tox-statusbar__path > * { + margin-right: 4px; +} +.tox:not([dir=rtl]) .tox-statusbar__branding { + margin-left: 2ch; +} +.tox[dir=rtl] .tox-statusbar { + flex-direction: row-reverse; +} +.tox[dir=rtl] .tox-statusbar__path > * { + margin-left: 4px; +} +.tox .tox-throbber { + z-index: 1299; +} +.tox .tox-throbber__busy-spinner { + align-items: center; + background-color: rgba(34, 47, 62, 0.6); + bottom: 0; + display: flex; + justify-content: center; + left: 0; + position: absolute; + right: 0; + top: 0; +} +.tox .tox-tbtn { + align-items: center; + background: transparent; + border: 0; + border-radius: 3px; + box-shadow: none; + color: #fff; + display: flex; + flex: 0 0 auto; + font-size: 14px; + font-style: normal; + font-weight: normal; + height: 28px; + justify-content: center; + margin: 6px 1px 5px 0; + outline: none; + overflow: hidden; + padding: 0; + text-transform: none; + width: 34px; +} +.tox .tox-tbtn svg { + display: block; + fill: #fff; +} +.tox .tox-tbtn.tox-tbtn-more { + padding-left: 5px; + padding-right: 5px; + width: inherit; +} +.tox .tox-tbtn:focus { + background: #3389ec; + border: 0; + box-shadow: none; +} +.tox .tox-tbtn:hover { + background: #3389ec; + border: 0; + box-shadow: none; + color: #fff; +} +.tox .tox-tbtn:hover svg { + fill: #fff; +} +.tox .tox-tbtn:active { + background: #599fef; + border: 0; + box-shadow: none; + color: #fff; +} +.tox .tox-tbtn:active svg { + fill: #fff; +} +.tox .tox-tbtn--disabled .tox-tbtn--enabled svg { + fill: rgba(255, 255, 255, 0.5); +} +.tox .tox-tbtn--disabled, +.tox .tox-tbtn--disabled:hover, +.tox .tox-tbtn:disabled, +.tox .tox-tbtn:disabled:hover { + background: transparent; + border: 0; + box-shadow: none; + color: rgba(255, 255, 255, 0.5); + cursor: not-allowed; +} +.tox .tox-tbtn--disabled svg, +.tox .tox-tbtn--disabled:hover svg, +.tox .tox-tbtn:disabled svg, +.tox .tox-tbtn:disabled:hover svg { + /* stylelint-disable-line no-descending-specificity */ + fill: rgba(255, 255, 255, 0.5); +} +.tox .tox-tbtn--enabled, +.tox .tox-tbtn--enabled:hover { + background: #599fef; + border: 0; + box-shadow: none; + color: #fff; +} +.tox .tox-tbtn--enabled > *, +.tox .tox-tbtn--enabled:hover > * { + transform: none; +} +.tox .tox-tbtn--enabled svg, +.tox .tox-tbtn--enabled:hover svg { + /* stylelint-disable-line no-descending-specificity */ + fill: #fff; +} +.tox .tox-tbtn--enabled.tox-tbtn--disabled svg, +.tox .tox-tbtn--enabled:hover.tox-tbtn--disabled svg { + fill: rgba(255, 255, 255, 0.5); +} +.tox .tox-tbtn:focus:not(.tox-tbtn--disabled) { + color: #fff; +} +.tox .tox-tbtn:focus:not(.tox-tbtn--disabled) svg { + fill: #fff; +} +.tox .tox-tbtn:active > * { + transform: none; +} +.tox .tox-tbtn--md { + height: 42px; + width: 51px; +} +.tox .tox-tbtn--lg { + flex-direction: column; + height: 56px; + width: 68px; +} +.tox .tox-tbtn--return { + align-self: stretch; + height: unset; + width: 16px; +} +.tox .tox-tbtn--labeled { + padding: 0 4px; + width: unset; +} +.tox .tox-tbtn__vlabel { + display: block; + font-size: 10px; + font-weight: normal; + letter-spacing: -0.025em; + margin-bottom: 4px; + white-space: nowrap; +} +.tox .tox-number-input { + border-radius: 3px; + display: flex; + margin: 6px 1px 5px 0; + padding: 0 4px; + width: auto; +} +.tox .tox-number-input .tox-input-wrapper { + background: #2f4055; + display: flex; + pointer-events: none; + text-align: center; +} +.tox .tox-number-input .tox-input-wrapper:focus { + background: #3389ec; +} +.tox .tox-number-input input { + border-radius: 3px; + color: #fff; + font-size: 14px; + margin: 2px 0; + pointer-events: all; + width: 60px; +} +.tox .tox-number-input input:hover { + background: #3389ec; + color: #fff; +} +.tox .tox-number-input input:focus { + background: #fff; + color: #222f3e; +} +.tox .tox-number-input input:disabled { + background: transparent; + border: 0; + box-shadow: none; + color: rgba(255, 255, 255, 0.5); + cursor: not-allowed; +} +.tox .tox-number-input button { + background: #2f4055; + color: #fff; + height: 28px; + text-align: center; + width: 24px; +} +.tox .tox-number-input button svg { + display: block; + fill: #fff; + margin: 0 auto; + transform: scale(0.67); +} +.tox .tox-number-input button:focus { + background: #3389ec; +} +.tox .tox-number-input button:hover { + background: #3389ec; + border: 0; + box-shadow: none; + color: #fff; +} +.tox .tox-number-input button:hover svg { + fill: #fff; +} +.tox .tox-number-input button:active { + background: #599fef; + border: 0; + box-shadow: none; + color: #fff; +} +.tox .tox-number-input button:active svg { + fill: #fff; +} +.tox .tox-number-input button:disabled { + background: transparent; + border: 0; + box-shadow: none; + color: rgba(255, 255, 255, 0.5); + cursor: not-allowed; +} +.tox .tox-number-input button:disabled svg { + fill: rgba(255, 255, 255, 0.5); +} +.tox .tox-number-input button.minus { + border-radius: 3px 0 0 3px; +} +.tox .tox-number-input button.plus { + border-radius: 0 3px 3px 0; +} +.tox .tox-number-input:focus:not(:active) > button, +.tox .tox-number-input:focus:not(:active) > .tox-input-wrapper { + background: #3389ec; +} +.tox .tox-tbtn--select { + margin: 6px 1px 5px 0; + padding: 0 4px; + width: auto; +} +.tox .tox-tbtn__select-label { + cursor: default; + font-weight: normal; + height: initial; + margin: 0 4px; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} +.tox .tox-tbtn__select-chevron { + align-items: center; + display: flex; + justify-content: center; + width: 16px; +} +.tox .tox-tbtn__select-chevron svg { + fill: rgba(255, 255, 255, 0.5); +} +.tox .tox-tbtn--bespoke { + background: #2f4055; +} +.tox .tox-tbtn--bespoke + .tox-tbtn--bespoke { + margin-inline-start: 4px; +} +.tox .tox-tbtn--bespoke .tox-tbtn__select-label { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + width: 7em; +} +.tox .tox-tbtn--disabled .tox-tbtn__select-label, +.tox .tox-tbtn--select:disabled .tox-tbtn__select-label { + cursor: not-allowed; +} +.tox .tox-split-button { + border: 0; + border-radius: 3px; + box-sizing: border-box; + display: flex; + margin: 6px 1px 5px 0; + overflow: hidden; +} +.tox .tox-split-button:hover { + box-shadow: 0 0 0 1px #3389ec inset; +} +.tox .tox-split-button:focus { + background: #3389ec; + box-shadow: none; + color: #fff; +} +.tox .tox-split-button > * { + border-radius: 0; +} +.tox .tox-split-button__chevron { + width: 16px; +} +.tox .tox-split-button__chevron svg { + fill: rgba(255, 255, 255, 0.5); +} +.tox .tox-split-button .tox-tbtn { + margin: 0; +} +.tox .tox-split-button.tox-tbtn--disabled:hover, +.tox .tox-split-button.tox-tbtn--disabled:focus, +.tox .tox-split-button.tox-tbtn--disabled .tox-tbtn:hover, +.tox .tox-split-button.tox-tbtn--disabled .tox-tbtn:focus { + background: transparent; + box-shadow: none; + color: rgba(255, 255, 255, 0.5); +} +.tox.tox-platform-touch .tox-split-button .tox-tbtn--select { + padding: 0 0px; +} +.tox.tox-platform-touch .tox-split-button .tox-tbtn:not(.tox-tbtn--select):first-child { + width: 30px; +} +.tox.tox-platform-touch .tox-split-button__chevron { + width: 20px; +} +.tox .tox-split-button.tox-tbtn--disabled svg #tox-icon-text-color__color, +.tox .tox-split-button.tox-tbtn--disabled svg #tox-icon-highlight-bg-color__color { + opacity: 0.6; +} +.tox .tox-toolbar-overlord { + background-color: #222F3E; +} +.tox .tox-toolbar, +.tox .tox-toolbar__primary, +.tox .tox-toolbar__overflow { + background-attachment: local; + background-color: #222F3E; + background-image: repeating-linear-gradient(rgba(255, 255, 255, 0.15) 0px 1px, transparent 1px 39px); + background-position: center top 40px; + background-repeat: no-repeat; + background-size: calc(100% - 11px * 2) calc(100% - 41px); + display: flex; + flex: 0 0 auto; + flex-shrink: 0; + flex-wrap: wrap; + padding: 0 0px; + transform: perspective(1px); +} +.tox .tox-toolbar-overlord > .tox-toolbar, +.tox .tox-toolbar-overlord > .tox-toolbar__primary, +.tox .tox-toolbar-overlord > .tox-toolbar__overflow { + background-position: center top 0px; + background-size: calc(100% - 11px * 2) calc(100% - 0px); +} +.tox .tox-toolbar__overflow.tox-toolbar__overflow--closed { + height: 0; + opacity: 0; + padding-bottom: 0; + padding-top: 0; + visibility: hidden; +} +.tox .tox-toolbar__overflow--growing { + transition: height 0.3s ease, opacity 0.2s linear 0.1s; +} +.tox .tox-toolbar__overflow--shrinking { + transition: opacity 0.3s ease, height 0.2s linear 0.1s, visibility 0s linear 0.3s; +} +.tox .tox-toolbar-overlord, +.tox .tox-anchorbar { + grid-column: 1 / -1; +} +.tox .tox-menubar + .tox-toolbar, +.tox .tox-menubar + .tox-toolbar-overlord { + border-top: 1px solid transparent; + margin-top: -1px; + padding-bottom: 1px; + padding-top: 1px; +} +.tox .tox-toolbar--scrolling { + flex-wrap: nowrap; + overflow-x: auto; +} +.tox .tox-pop .tox-toolbar { + border-width: 0; +} +.tox .tox-toolbar--no-divider { + background-image: none; +} +.tox .tox-toolbar-overlord .tox-toolbar:not(.tox-toolbar--scrolling):first-child, +.tox .tox-toolbar-overlord .tox-toolbar__primary { + background-position: center top 39px; +} +.tox .tox-editor-header > .tox-toolbar--scrolling, +.tox .tox-toolbar-overlord .tox-toolbar--scrolling:first-child { + background-image: none; +} +.tox.tox-tinymce-aux .tox-toolbar__overflow { + background-color: #222F3E; + background-position: center top 43px; + background-size: calc(100% - 8px * 2) calc(100% - 51px); + border: none; + border-radius: 6px; + box-shadow: 0 0 2px 0 rgba(34, 47, 62, 0.2), 0 4px 8px 0 rgba(34, 47, 62, 0.15); + overscroll-behavior: none; + padding: 4px 0; +} +.tox-pop .tox-pop__dialog { + /* stylelint-disable-next-line no-descending-specificity */ +} +.tox-pop .tox-pop__dialog .tox-toolbar { + background-position: center top 43px; + background-size: calc(100% - 11px * 2) calc(100% - 51px); + padding: 4px 0; +} +.tox .tox-toolbar__group { + align-items: center; + display: flex; + flex-wrap: wrap; + margin: 0 0; + padding: 0 11px 0 12px; +} +.tox .tox-toolbar__group--pull-right { + margin-left: auto; +} +.tox .tox-toolbar--scrolling .tox-toolbar__group { + flex-shrink: 0; + flex-wrap: nowrap; +} +.tox:not([dir=rtl]) .tox-toolbar__group:not(:last-of-type) { + border-right: 1px solid transparent; +} +.tox[dir=rtl] .tox-toolbar__group:not(:last-of-type) { + border-left: 1px solid transparent; +} +.tox .tox-tooltip { + display: inline-block; + padding: 8px; + position: relative; +} +.tox .tox-tooltip__body { + background-color: #3d546f; + border-radius: 6px; + box-shadow: 0 2px 4px rgba(34, 47, 62, 0.3); + color: rgba(255, 255, 255, 0.75); + font-size: 14px; + font-style: normal; + font-weight: normal; + padding: 4px 8px; + text-transform: none; +} +.tox .tox-tooltip__arrow { + position: absolute; +} +.tox .tox-tooltip--down .tox-tooltip__arrow { + border-left: 8px solid transparent; + border-right: 8px solid transparent; + border-top: 8px solid #3d546f; + bottom: 0; + left: 50%; + position: absolute; + transform: translateX(-50%); +} +.tox .tox-tooltip--up .tox-tooltip__arrow { + border-bottom: 8px solid #3d546f; + border-left: 8px solid transparent; + border-right: 8px solid transparent; + left: 50%; + position: absolute; + top: 0; + transform: translateX(-50%); +} +.tox .tox-tooltip--right .tox-tooltip__arrow { + border-bottom: 8px solid transparent; + border-left: 8px solid #3d546f; + border-top: 8px solid transparent; + position: absolute; + right: 0; + top: 50%; + transform: translateY(-50%); +} +.tox .tox-tooltip--left .tox-tooltip__arrow { + border-bottom: 8px solid transparent; + border-right: 8px solid #3d546f; + border-top: 8px solid transparent; + left: 0; + position: absolute; + top: 50%; + transform: translateY(-50%); +} +.tox .tox-tree { + display: flex; + flex-direction: column; +} +.tox .tox-tree .tox-trbtn { + align-items: center; + background: transparent; + border: 0; + border-radius: 4px; + box-shadow: none; + color: #fff; + display: flex; + flex: 0 0 auto; + font-size: 14px; + font-style: normal; + font-weight: normal; + height: 28px; + margin-bottom: 4px; + margin-top: 4px; + outline: none; + overflow: hidden; + padding: 0; + padding-left: 8px; + text-transform: none; +} +.tox .tox-tree .tox-trbtn .tox-tree__label { + cursor: default; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} +.tox .tox-tree .tox-trbtn svg { + display: block; + fill: #fff; +} +.tox .tox-tree .tox-trbtn:focus { + background: #3389ec; + border: 0; + box-shadow: none; +} +.tox .tox-tree .tox-trbtn:hover { + background: #3389ec; + border: 0; + box-shadow: none; + color: #fff; +} +.tox .tox-tree .tox-trbtn:hover svg { + fill: #fff; +} +.tox .tox-tree .tox-trbtn:active { + background: #599fef; + border: 0; + box-shadow: none; + color: #fff; +} +.tox .tox-tree .tox-trbtn:active svg { + fill: #fff; +} +.tox .tox-tree .tox-trbtn--disabled, +.tox .tox-tree .tox-trbtn--disabled:hover, +.tox .tox-tree .tox-trbtn:disabled, +.tox .tox-tree .tox-trbtn:disabled:hover { + background: transparent; + border: 0; + box-shadow: none; + color: rgba(255, 255, 255, 0.5); + cursor: not-allowed; +} +.tox .tox-tree .tox-trbtn--disabled svg, +.tox .tox-tree .tox-trbtn--disabled:hover svg, +.tox .tox-tree .tox-trbtn:disabled svg, +.tox .tox-tree .tox-trbtn:disabled:hover svg { + /* stylelint-disable-line no-descending-specificity */ + fill: rgba(255, 255, 255, 0.5); +} +.tox .tox-tree .tox-trbtn--enabled, +.tox .tox-tree .tox-trbtn--enabled:hover { + background: #599fef; + border: 0; + box-shadow: none; + color: #fff; +} +.tox .tox-tree .tox-trbtn--enabled > *, +.tox .tox-tree .tox-trbtn--enabled:hover > * { + transform: none; +} +.tox .tox-tree .tox-trbtn--enabled svg, +.tox .tox-tree .tox-trbtn--enabled:hover svg { + /* stylelint-disable-line no-descending-specificity */ + fill: #fff; +} +.tox .tox-tree .tox-trbtn:focus:not(.tox-trbtn--disabled) { + color: #fff; +} +.tox .tox-tree .tox-trbtn:focus:not(.tox-trbtn--disabled) svg { + fill: #fff; +} +.tox .tox-tree .tox-trbtn:active > * { + transform: none; +} +.tox .tox-tree .tox-trbtn--return { + align-self: stretch; + height: unset; + width: 16px; +} +.tox .tox-tree .tox-trbtn--labeled { + padding: 0 4px; + width: unset; +} +.tox .tox-tree .tox-trbtn__vlabel { + display: block; + font-size: 10px; + font-weight: normal; + letter-spacing: -0.025em; + margin-bottom: 4px; + white-space: nowrap; +} +.tox .tox-tree .tox-tree--directory { + display: flex; + flex-direction: column; + /* stylelint-disable no-descending-specificity */ +} +.tox .tox-tree .tox-tree--directory .tox-tree--directory__label { + font-weight: bold; +} +.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn { + margin-left: auto; +} +.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn svg { + fill: transparent; +} +.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn.tox-mbtn--active svg, +.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn:focus svg { + fill: #fff; +} +.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover .tox-mbtn svg, +.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:focus .tox-mbtn svg { + fill: #fff; +} +.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover:has(.tox-mbtn:hover) { + background-color: transparent; + color: #fff; +} +.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover:has(.tox-mbtn:hover) .tox-chevron svg { + fill: #fff; +} +.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-chevron { + margin-right: 6px; +} +.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+ .tox-tree--directory__children--growing) .tox-chevron, +.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+ .tox-tree--directory__children--shrinking) .tox-chevron { + transition: transform 0.5s ease-in-out; +} +.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+ .tox-tree--directory__children--growing) .tox-chevron, +.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+ .tox-tree--directory__children--open) .tox-chevron { + transform: rotate(90deg); +} +.tox .tox-tree .tox-tree--leaf__label { + font-weight: normal; +} +.tox .tox-tree .tox-tree--leaf__label .tox-mbtn { + margin-left: auto; +} +.tox .tox-tree .tox-tree--leaf__label .tox-mbtn svg { + fill: transparent; +} +.tox .tox-tree .tox-tree--leaf__label .tox-mbtn.tox-mbtn--active svg, +.tox .tox-tree .tox-tree--leaf__label .tox-mbtn:focus svg { + fill: #fff; +} +.tox .tox-tree .tox-tree--leaf__label:hover .tox-mbtn svg { + fill: #fff; +} +.tox .tox-tree .tox-tree--leaf__label:hover:has(.tox-mbtn:hover) { + background-color: transparent; + color: #fff; +} +.tox .tox-tree .tox-tree--leaf__label:hover:has(.tox-mbtn:hover) .tox-chevron svg { + fill: #fff; +} +.tox .tox-tree .tox-tree--directory__children { + overflow: hidden; + padding-left: 16px; +} +.tox .tox-tree .tox-tree--directory__children.tox-tree--directory__children--growing, +.tox .tox-tree .tox-tree--directory__children.tox-tree--directory__children--shrinking { + transition: height 0.5s ease-in-out; +} +.tox .tox-tree .tox-trbtn.tox-tree--leaf__label { + display: flex; + justify-content: space-between; +} +.tox .tox-view-wrap, +.tox .tox-view-wrap__slot-container { + background-color: #222F3E; + display: flex; + flex: 1; + flex-direction: column; +} +.tox .tox-view { + display: flex; + flex: 1 1 auto; + flex-direction: column; + overflow: hidden; +} +.tox .tox-view__header { + align-items: center; + display: flex; + font-size: 16px; + justify-content: space-between; + padding: 8px 8px 0 8px; + position: relative; +} +.tox .tox-view--mobile.tox-view__header, +.tox .tox-view--mobile.tox-view__toolbar { + padding: 8px; +} +.tox .tox-view--scrolling { + flex-wrap: nowrap; + overflow-x: auto; +} +.tox .tox-view__toolbar { + display: flex; + flex-direction: row; + gap: 8px; + justify-content: space-between; + padding: 8px 8px 0 8px; +} +.tox .tox-view__toolbar__group { + display: flex; + flex-direction: row; + gap: 12px; +} +.tox .tox-view__header-start, +.tox .tox-view__header-end { + display: flex; +} +.tox .tox-view__pane { + height: 100%; + padding: 8px; + width: 100%; +} +.tox .tox-view__pane_panel { + border: 1px solid #161f29; + border-radius: 6px; +} +.tox:not([dir=rtl]) .tox-view__header .tox-view__header-start > *, +.tox:not([dir=rtl]) .tox-view__header .tox-view__header-end > * { + margin-left: 8px; +} +.tox[dir=rtl] .tox-view__header .tox-view__header-start > *, +.tox[dir=rtl] .tox-view__header .tox-view__header-end > * { + margin-right: 8px; +} +.tox .tox-well { + border: 1px solid #161f29; + border-radius: 6px; + padding: 8px; + width: 100%; +} +.tox .tox-well > *:first-child { + margin-top: 0; +} +.tox .tox-well > *:last-child { + margin-bottom: 0; +} +.tox .tox-well > *:only-child { + margin: 0; +} +.tox .tox-custom-editor { + border: 1px solid #161f29; + border-radius: 6px; + display: flex; + flex: 1; + overflow: hidden; + position: relative; +} +/* stylelint-disable */ +.tox { + /* stylelint-enable */ +} +.tox .tox-dialog-loading::before { + background-color: rgba(0, 0, 0, 0.5); + content: ""; + height: 100%; + position: absolute; + width: 100%; + z-index: 1000; +} +.tox .tox-tab { + cursor: pointer; +} +.tox .tox-dialog__content-js { + display: flex; + flex: 1; +} +.tox .tox-dialog__body-content .tox-collection { + display: flex; + flex: 1; +} +.tox.tox-tinymce-aux .tox-toolbar__overflow { + box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15); +} diff --git a/tinymce-resource/skins/ui/oxide-dark/skin.js b/tinymce-resource/skins/ui/oxide-dark/skin.js new file mode 100644 index 000000000..8c515310d --- /dev/null +++ b/tinymce-resource/skins/ui/oxide-dark/skin.js @@ -0,0 +1,2 @@ +tinymce.Resource.add('ui/dark/skin.css', ".tox{box-shadow:none;box-sizing:content-box;color:#222f3e;cursor:auto;font-family:-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,Oxygen-Sans,Ubuntu,Cantarell,\"Helvetica Neue\",sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:normal;-webkit-tap-highlight-color:transparent;text-decoration:none;text-shadow:none;text-transform:none;vertical-align:initial;white-space:normal}.tox :not(svg):not(rect){box-sizing:inherit;color:inherit;cursor:inherit;direction:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;line-height:inherit;-webkit-tap-highlight-color:inherit;text-align:inherit;text-decoration:inherit;text-shadow:inherit;text-transform:inherit;vertical-align:inherit;white-space:inherit}.tox :not(svg):not(rect){background:0 0;border:0;box-shadow:none;float:none;height:auto;margin:0;max-width:none;outline:0;padding:0;position:static;width:auto}.tox:not([dir=rtl]){direction:ltr;text-align:left}.tox[dir=rtl]{direction:rtl;text-align:right}.tox-tinymce{border:2px solid #161f29;border-radius:10px;box-shadow:none;box-sizing:border-box;display:flex;flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,Oxygen-Sans,Ubuntu,Cantarell,\"Helvetica Neue\",sans-serif;overflow:hidden;position:relative;visibility:inherit!important}.tox.tox-tinymce-inline{border:none;box-shadow:none;overflow:initial}.tox.tox-tinymce-inline .tox-editor-container{overflow:initial}.tox.tox-tinymce-inline .tox-editor-header{background-color:#222f3e;border:2px solid #161f29;border-radius:10px;box-shadow:none;overflow:hidden}.tox-tinymce-aux{font-family:-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,Oxygen-Sans,Ubuntu,Cantarell,\"Helvetica Neue\",sans-serif;z-index:1300}.tox-tinymce :focus,.tox-tinymce-aux :focus{outline:0}button::-moz-focus-inner{border:0}.tox[dir=rtl] .tox-icon--flip svg{transform:rotateY(180deg)}.tox .accessibility-issue__header{align-items:center;display:flex;margin-bottom:4px}.tox .accessibility-issue__description{align-items:stretch;border-radius:6px;display:flex;justify-content:space-between}.tox .accessibility-issue__description>div{padding-bottom:4px}.tox .accessibility-issue__description>div>div{align-items:center;display:flex;margin-bottom:4px}.tox .accessibility-issue__description>div>div .tox-icon svg{display:block}.tox .accessibility-issue__repair{margin-top:16px}.tox .tox-dialog__body-content .accessibility-issue--info .accessibility-issue__description{background-color:rgba(0,101,216,.4);color:#fff}.tox .tox-dialog__body-content .accessibility-issue--info .tox-form__group h2{color:#fff}.tox .tox-dialog__body-content .accessibility-issue--info .tox-icon svg{fill:#fff}.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon{background-color:#006ce7;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:focus,.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:hover{background-color:#0060ce}.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:active{background-color:#0054b4}.tox .tox-dialog__body-content .accessibility-issue--warn .accessibility-issue__description{background-color:rgba(255,165,0,.5);color:#fff}.tox .tox-dialog__body-content .accessibility-issue--warn .tox-form__group h2{color:#fff}.tox .tox-dialog__body-content .accessibility-issue--warn .tox-icon svg{fill:#fff}.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon{background-color:#ffe89d;color:#222f3e}.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:focus,.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:hover{background-color:#f2d574;color:#222f3e}.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:active{background-color:#e8c657;color:#222f3e}.tox .tox-dialog__body-content .accessibility-issue--error .accessibility-issue__description{background-color:rgba(204,0,0,.5);color:#fff}.tox .tox-dialog__body-content .accessibility-issue--error .tox-form__group h2{color:#fff}.tox .tox-dialog__body-content .accessibility-issue--error .tox-icon svg{fill:#fff}.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon{background-color:#f2bfbf;color:#222f3e}.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:focus,.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:hover{background-color:#e9a4a4;color:#222f3e}.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:active{background-color:#ee9494;color:#222f3e}.tox .tox-dialog__body-content .accessibility-issue--success .accessibility-issue__description{background-color:rgba(120,171,70,.5);color:#fff}.tox .tox-dialog__body-content .accessibility-issue--success .accessibility-issue__description>:last-child{display:none}.tox .tox-dialog__body-content .accessibility-issue--success .tox-form__group h2{color:#fff}.tox .tox-dialog__body-content .accessibility-issue--success .tox-icon svg{fill:#fff}.tox .tox-dialog__body-content .accessibility-issue__header .tox-form__group h1,.tox .tox-dialog__body-content .tox-form__group .accessibility-issue__description h2{font-size:14px;margin-top:0}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__header .tox-button{margin-left:4px}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__header>:nth-last-child(2){margin-left:auto}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__description{padding:4px 4px 4px 8px}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__header .tox-button{margin-right:4px}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__header>:nth-last-child(2){margin-right:auto}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__description{padding:4px 8px 4px 4px}.tox .tox-advtemplate .tox-form__grid{flex:1}.tox .tox-advtemplate .tox-form__grid>div:first-child{display:flex;flex-direction:column;width:30%}.tox .tox-advtemplate .tox-form__grid>div:first-child>div:nth-child(2){flex-basis:0;flex-grow:1;overflow:auto}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox .tox-advtemplate .tox-form__grid>div:first-child{width:100%}}.tox .tox-advtemplate iframe{border-color:#161f29;border-radius:10px;border-style:solid;border-width:1px;margin:0 10px}.tox .tox-anchorbar{display:flex;flex:0 0 auto}.tox .tox-bottom-anchorbar{display:flex;flex:0 0 auto}.tox .tox-bar{display:flex;flex:0 0 auto}.tox .tox-button{background-color:#006ce7;background-image:none;background-position:0 0;background-repeat:repeat;border-color:#006ce7;border-radius:6px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#fff;cursor:pointer;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,Oxygen-Sans,Ubuntu,Cantarell,\"Helvetica Neue\",sans-serif;font-size:14px;font-style:normal;font-weight:700;letter-spacing:normal;line-height:24px;margin:0;outline:0;padding:4px 16px;position:relative;text-align:center;text-decoration:none;text-transform:none;white-space:nowrap}.tox .tox-button::before{border-radius:6px;bottom:-1px;box-shadow:inset 0 0 0 2px #fff,0 0 0 1px #006ce7,0 0 0 3px rgba(0,108,231,.25);content:'';left:-1px;opacity:0;pointer-events:none;position:absolute;right:-1px;top:-1px}.tox .tox-button[disabled]{background-color:#006ce7;background-image:none;border-color:#006ce7;box-shadow:none;color:rgba(255,255,255,.5);cursor:not-allowed}.tox .tox-button:focus:not(:disabled){background-color:#0060ce;background-image:none;border-color:#0060ce;box-shadow:none;color:#fff}.tox .tox-button:focus-visible:not(:disabled)::before{opacity:1}.tox .tox-button:hover:not(:disabled){background-color:#0060ce;background-image:none;border-color:#0060ce;box-shadow:none;color:#fff}.tox .tox-button:active:not(:disabled){background-color:#0054b4;background-image:none;border-color:#0054b4;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled{background-color:#0054b4;background-image:none;border-color:#0054b4;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled[disabled]{background-color:#0054b4;background-image:none;border-color:#0054b4;box-shadow:none;color:rgba(255,255,255,.5);cursor:not-allowed}.tox .tox-button.tox-button--enabled:focus:not(:disabled){background-color:#00489b;background-image:none;border-color:#00489b;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled:hover:not(:disabled){background-color:#00489b;background-image:none;border-color:#00489b;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled:active:not(:disabled){background-color:#003c81;background-image:none;border-color:#003c81;box-shadow:none;color:#fff}.tox .tox-button--icon-and-text,.tox .tox-button.tox-button--icon-and-text,.tox .tox-button.tox-button--secondary.tox-button--icon-and-text{display:flex;padding:5px 4px}.tox .tox-button--icon-and-text .tox-icon svg,.tox .tox-button.tox-button--icon-and-text .tox-icon svg,.tox .tox-button.tox-button--secondary.tox-button--icon-and-text .tox-icon svg{display:block;fill:currentColor}.tox .tox-button--secondary{background-color:#3d546f;background-image:none;background-position:0 0;background-repeat:repeat;border-color:#3d546f;border-radius:6px;border-style:solid;border-width:1px;box-shadow:none;color:#fff;font-size:14px;font-style:normal;font-weight:700;letter-spacing:normal;outline:0;padding:4px 16px;text-decoration:none;text-transform:none}.tox .tox-button--secondary[disabled]{background-color:#3d546f;background-image:none;border-color:#3d546f;box-shadow:none;color:rgba(255,255,255,.5)}.tox .tox-button--secondary:focus:not(:disabled){background-color:#34485f;background-image:none;border-color:#34485f;box-shadow:none;color:#fff}.tox .tox-button--secondary:hover:not(:disabled){background-color:#34485f;background-image:none;border-color:#34485f;box-shadow:none;color:#fff}.tox .tox-button--secondary:active:not(:disabled){background-color:#2b3b4e;background-image:none;border-color:#2b3b4e;box-shadow:none;color:#fff}.tox .tox-button--secondary.tox-button--enabled{background-color:#2b5c93;background-image:none;border-color:#2b5c93;box-shadow:none;color:#fff}.tox .tox-button--secondary.tox-button--enabled[disabled]{background-color:#2b5c93;background-image:none;border-color:#2b5c93;box-shadow:none;color:rgba(255,255,255,.5)}.tox .tox-button--secondary.tox-button--enabled:focus:not(:disabled){background-color:#254f80;background-image:none;border-color:#254f80;box-shadow:none;color:#fff}.tox .tox-button--secondary.tox-button--enabled:hover:not(:disabled){background-color:#254f80;background-image:none;border-color:#254f80;box-shadow:none;color:#fff}.tox .tox-button--secondary.tox-button--enabled:active:not(:disabled){background-color:#1f436c;background-image:none;border-color:#1f436c;box-shadow:none;color:#fff}.tox .tox-button--icon,.tox .tox-button.tox-button--icon,.tox .tox-button.tox-button--secondary.tox-button--icon{padding:4px}.tox .tox-button--icon .tox-icon svg,.tox .tox-button.tox-button--icon .tox-icon svg,.tox .tox-button.tox-button--secondary.tox-button--icon .tox-icon svg{display:block;fill:currentColor}.tox .tox-button-link{background:0;border:none;box-sizing:border-box;cursor:pointer;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,Oxygen-Sans,Ubuntu,Cantarell,\"Helvetica Neue\",sans-serif;font-size:16px;font-weight:400;line-height:1.3;margin:0;padding:0;white-space:nowrap}.tox .tox-button-link--sm{font-size:14px}.tox .tox-button--naked{background-color:transparent;border-color:transparent;box-shadow:unset;color:#fff}.tox .tox-button--naked[disabled]{background-color:rgba(255,255,255,.2);border-color:transparent;box-shadow:unset;color:rgba(255,255,255,.5)}.tox .tox-button--naked:hover:not(:disabled){background-color:rgba(255,255,255,.2);border-color:transparent;box-shadow:unset;color:#fff}.tox .tox-button--naked:focus:not(:disabled){background-color:rgba(255,255,255,.2);border-color:transparent;box-shadow:unset;color:#fff}.tox .tox-button--naked:active:not(:disabled){background-color:rgba(255,255,255,.3);border-color:transparent;box-shadow:unset;color:#fff}.tox .tox-button--naked .tox-icon svg{fill:currentColor}.tox .tox-button--naked.tox-button--icon:hover:not(:disabled){color:#fff}.tox .tox-checkbox{align-items:center;border-radius:6px;cursor:pointer;display:flex;height:36px;min-width:36px}.tox .tox-checkbox__input{height:1px;overflow:hidden;position:absolute;top:auto;width:1px}.tox .tox-checkbox__icons{align-items:center;border-radius:6px;box-shadow:0 0 0 2px transparent;box-sizing:content-box;display:flex;height:24px;justify-content:center;padding:calc(4px - 1px);width:24px}.tox .tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:block;fill:rgba(255,255,255,.2)}.tox .tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{display:none;fill:#006ce7}.tox .tox-checkbox__icons .tox-checkbox-icon__checked svg{display:none;fill:#006ce7}.tox .tox-checkbox--disabled{color:rgba(255,255,255,.5);cursor:not-allowed}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__checked svg{fill:rgba(255,255,255,.5)}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__unchecked svg{fill:rgba(255,255,255,.5)}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{fill:rgba(255,255,255,.5)}.tox input.tox-checkbox__input:checked+.tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:none}.tox input.tox-checkbox__input:checked+.tox-checkbox__icons .tox-checkbox-icon__checked svg{display:block}.tox input.tox-checkbox__input:indeterminate+.tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:none}.tox input.tox-checkbox__input:indeterminate+.tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{display:block}.tox input.tox-checkbox__input:focus+.tox-checkbox__icons{border-radius:6px;box-shadow:inset 0 0 0 1px #006ce7;padding:calc(4px - 1px)}.tox:not([dir=rtl]) .tox-checkbox__label{margin-left:4px}.tox:not([dir=rtl]) .tox-checkbox__input{left:-10000px}.tox:not([dir=rtl]) .tox-bar .tox-checkbox{margin-left:4px}.tox[dir=rtl] .tox-checkbox__label{margin-right:4px}.tox[dir=rtl] .tox-checkbox__input{right:-10000px}.tox[dir=rtl] .tox-bar .tox-checkbox{margin-right:4px}.tox .tox-collection--toolbar .tox-collection__group{display:flex;padding:0}.tox .tox-collection--grid .tox-collection__group{display:flex;flex-wrap:wrap;max-height:208px;overflow-x:hidden;overflow-y:auto;padding:0}.tox .tox-collection--list .tox-collection__group{border-bottom-width:0;border-color:rgba(255,255,255,.15);border-left-width:0;border-right-width:0;border-style:solid;border-top-width:1px;padding:4px 0}.tox .tox-collection--list .tox-collection__group:first-child{border-top-width:0}.tox .tox-collection__group-heading{background-color:rgba(255,255,255,.15);color:rgba(255,255,255,.5);cursor:default;font-size:12px;font-style:normal;font-weight:400;margin-bottom:4px;margin-top:-4px;padding:4px 8px;text-transform:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.tox .tox-collection__item{align-items:center;border-radius:3px;color:#fff;display:flex;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.tox .tox-collection--list .tox-collection__item{padding:4px 8px}.tox .tox-collection--toolbar .tox-collection__item{border-radius:3px;padding:4px}.tox .tox-collection--grid .tox-collection__item{border-radius:3px;padding:4px}.tox .tox-collection--list .tox-collection__item--enabled{background-color:#2b3b4e;color:#fff}.tox .tox-collection--list .tox-collection__item--active{background-color:#3389ec}.tox .tox-collection--toolbar .tox-collection__item--enabled{background-color:#599fef;color:#fff}.tox .tox-collection--toolbar .tox-collection__item--active{background-color:#3389ec}.tox .tox-collection--grid .tox-collection__item--enabled{background-color:#599fef;color:#fff}.tox .tox-collection--grid .tox-collection__item--active:not(.tox-collection__item--state-disabled){background-color:#3389ec;color:#fff}.tox .tox-collection--list .tox-collection__item--active:not(.tox-collection__item--state-disabled){color:#fff}.tox .tox-collection--toolbar .tox-collection__item--active:not(.tox-collection__item--state-disabled){color:#fff}.tox .tox-collection__item-checkmark,.tox .tox-collection__item-icon{align-items:center;display:flex;height:24px;justify-content:center;width:24px}.tox .tox-collection__item-checkmark svg,.tox .tox-collection__item-icon svg{fill:currentColor}.tox .tox-collection--toolbar-lg .tox-collection__item-icon{height:48px;width:48px}.tox .tox-collection__item-label{color:currentColor;display:inline-block;flex:1;font-size:14px;font-style:normal;font-weight:400;line-height:24px;max-width:100%;text-transform:none;word-break:break-all}.tox .tox-collection__item-accessory{color:rgba(255,255,255,.5);display:inline-block;font-size:14px;height:24px;line-height:24px;text-transform:none}.tox .tox-collection__item-caret{align-items:center;display:flex;min-height:24px}.tox .tox-collection__item-caret::after{content:'';font-size:0;min-height:inherit}.tox .tox-collection__item-caret svg{fill:#fff}.tox .tox-collection__item--state-disabled{background-color:transparent;color:rgba(255,255,255,.5);cursor:not-allowed}.tox .tox-collection__item--state-disabled .tox-collection__item-caret svg{fill:rgba(255,255,255,.5)}.tox .tox-collection--list .tox-collection__item:not(.tox-collection__item--enabled) .tox-collection__item-checkmark svg{display:none}.tox .tox-collection--list .tox-collection__item:not(.tox-collection__item--enabled) .tox-collection__item-accessory+.tox-collection__item-checkmark{display:none}.tox .tox-collection--horizontal{background-color:#2b3b4e;border:1px solid rgba(255,255,255,.15);border-radius:6px;box-shadow:0 0 2px 0 rgba(34,47,62,.2),0 4px 8px 0 rgba(34,47,62,.15);display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:nowrap;margin-bottom:0;overflow-x:auto;padding:0}.tox .tox-collection--horizontal .tox-collection__group{align-items:center;display:flex;flex-wrap:nowrap;margin:0;padding:0 4px}.tox .tox-collection--horizontal .tox-collection__item{height:28px;margin:6px 1px 5px 0;padding:0 4px}.tox .tox-collection--horizontal .tox-collection__item-label{white-space:nowrap}.tox .tox-collection--horizontal .tox-collection__item-caret{margin-left:4px}.tox .tox-collection__item-container{display:flex}.tox .tox-collection__item-container--row{align-items:center;flex:1 1 auto;flex-direction:row}.tox .tox-collection__item-container--row.tox-collection__item-container--align-left{margin-right:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--align-right{justify-content:flex-end;margin-left:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-top{align-items:flex-start;margin-bottom:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-middle{align-items:center}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-bottom{align-items:flex-end;margin-top:auto}.tox .tox-collection__item-container--column{align-self:center;flex:1 1 auto;flex-direction:column}.tox .tox-collection__item-container--column.tox-collection__item-container--align-left{align-items:flex-start}.tox .tox-collection__item-container--column.tox-collection__item-container--align-right{align-items:flex-end}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-top{align-self:flex-start}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-middle{align-self:center}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-bottom{align-self:flex-end}.tox:not([dir=rtl]) .tox-collection--horizontal .tox-collection__group:not(:last-of-type){border-right:1px solid transparent}.tox:not([dir=rtl]) .tox-collection--list .tox-collection__item>:not(:first-child){margin-left:8px}.tox:not([dir=rtl]) .tox-collection--list .tox-collection__item>.tox-collection__item-label:first-child{margin-left:4px}.tox:not([dir=rtl]) .tox-collection__item-accessory{margin-left:16px;text-align:right}.tox:not([dir=rtl]) .tox-collection .tox-collection__item-caret{margin-left:16px}.tox[dir=rtl] .tox-collection--horizontal .tox-collection__group:not(:last-of-type){border-left:1px solid transparent}.tox[dir=rtl] .tox-collection--list .tox-collection__item>:not(:first-child){margin-right:8px}.tox[dir=rtl] .tox-collection--list .tox-collection__item>.tox-collection__item-label:first-child{margin-right:4px}.tox[dir=rtl] .tox-collection__item-accessory{margin-right:16px;text-align:left}.tox[dir=rtl] .tox-collection .tox-collection__item-caret{margin-right:16px;transform:rotateY(180deg)}.tox[dir=rtl] .tox-collection--horizontal .tox-collection__item-caret{margin-right:4px}.tox .tox-color-picker-container{display:flex;flex-direction:row;height:225px;margin:0}.tox .tox-sv-palette{box-sizing:border-box;display:flex;height:100%}.tox .tox-sv-palette-spectrum{height:100%}.tox .tox-sv-palette,.tox .tox-sv-palette-spectrum{width:225px}.tox .tox-sv-palette-thumb{background:0 0;border:1px solid #000;border-radius:50%;box-sizing:content-box;height:12px;position:absolute;width:12px}.tox .tox-sv-palette-inner-thumb{border:1px solid #fff;border-radius:50%;height:10px;position:absolute;width:10px}.tox .tox-hue-slider{box-sizing:border-box;height:100%;width:25px}.tox .tox-hue-slider-spectrum{background:linear-gradient(to bottom,red,#ff0080,#f0f,#8000ff,#00f,#0080ff,#0ff,#00ff80,#0f0,#80ff00,#ff0,#ff8000,red);height:100%;width:100%}.tox .tox-hue-slider,.tox .tox-hue-slider-spectrum{width:20px}.tox .tox-hue-slider-spectrum:focus,.tox .tox-sv-palette-spectrum:focus{outline:#08f solid}.tox .tox-hue-slider-thumb{background:#fff;border:1px solid #000;box-sizing:content-box;height:4px;width:100%}.tox .tox-rgb-form{display:flex;flex-direction:column;justify-content:space-between}.tox .tox-rgb-form div{align-items:center;display:flex;justify-content:space-between;margin-bottom:5px;width:inherit}.tox .tox-rgb-form input{width:6em}.tox .tox-rgb-form input.tox-invalid{border:1px solid red!important}.tox .tox-rgb-form .tox-rgba-preview{border:1px solid #000;flex-grow:2;margin-bottom:0}.tox:not([dir=rtl]) .tox-sv-palette{margin-right:15px}.tox:not([dir=rtl]) .tox-hue-slider{margin-right:15px}.tox:not([dir=rtl]) .tox-hue-slider-thumb{margin-left:-1px}.tox:not([dir=rtl]) .tox-rgb-form label{margin-right:.5em}.tox[dir=rtl] .tox-sv-palette{margin-left:15px}.tox[dir=rtl] .tox-hue-slider{margin-left:15px}.tox[dir=rtl] .tox-hue-slider-thumb{margin-right:-1px}.tox[dir=rtl] .tox-rgb-form label{margin-left:.5em}.tox .tox-toolbar .tox-swatches,.tox .tox-toolbar__overflow .tox-swatches,.tox .tox-toolbar__primary .tox-swatches{margin:5px 0 6px 11px}.tox .tox-collection--list .tox-collection__group .tox-swatches-menu{border:0;margin:-4px -4px}.tox .tox-swatches__row{display:flex}.tox .tox-swatch{height:30px;transition:transform .15s,box-shadow .15s;width:30px}.tox .tox-swatch:focus,.tox .tox-swatch:hover{box-shadow:0 0 0 1px rgba(127,127,127,.3) inset;transform:scale(.8)}.tox .tox-swatch--remove{align-items:center;display:flex;justify-content:center}.tox .tox-swatch--remove svg path{stroke:#e74c3c}.tox .tox-swatches__picker-btn{align-items:center;background-color:transparent;border:0;cursor:pointer;display:flex;height:30px;justify-content:center;outline:0;padding:0;width:30px}.tox .tox-swatches__picker-btn svg{fill:#fff;height:24px;width:24px}.tox .tox-swatches__picker-btn:hover{background:#3389ec}.tox div.tox-swatch:not(.tox-swatch--remove) svg{display:none;fill:#fff;height:24px;margin:calc((30px - 24px)/ 2) calc((30px - 24px)/ 2);width:24px}.tox div.tox-swatch:not(.tox-swatch--remove) svg path{fill:#fff;paint-order:stroke;stroke:#222f3e;stroke-width:2px}.tox div.tox-swatch:not(.tox-swatch--remove).tox-collection__item--enabled svg{display:block}.tox:not([dir=rtl]) .tox-swatches__picker-btn{margin-left:auto}.tox[dir=rtl] .tox-swatches__picker-btn{margin-right:auto}.tox .tox-comment-thread{background:#2b3b4e;position:relative}.tox .tox-comment-thread>:not(:first-child){margin-top:8px}.tox .tox-comment{background:#2b3b4e;border:1px solid #161f29;border-radius:6px;box-shadow:0 4px 8px 0 rgba(34,47,62,.1);padding:8px 8px 16px 8px;position:relative}.tox .tox-comment__header{align-items:center;color:#fff;display:flex;justify-content:space-between}.tox .tox-comment__date{color:#fff;font-size:12px;line-height:18px}.tox .tox-comment__body{color:#fff;font-size:14px;font-style:normal;font-weight:400;line-height:1.3;margin-top:8px;position:relative;text-transform:initial}.tox .tox-comment__body textarea{resize:none;white-space:normal;width:100%}.tox .tox-comment__expander{padding-top:8px}.tox .tox-comment__expander p{color:rgba(255,255,255,.5);font-size:14px;font-style:normal}.tox .tox-comment__body p{margin:0}.tox .tox-comment__buttonspacing{padding-top:16px;text-align:center}.tox .tox-comment-thread__overlay::after{background:#2b3b4e;bottom:0;content:\"\";display:flex;left:0;opacity:.9;position:absolute;right:0;top:0;z-index:5}.tox .tox-comment__reply{display:flex;flex-shrink:0;flex-wrap:wrap;justify-content:flex-end;margin-top:8px}.tox .tox-comment__reply>:first-child{margin-bottom:8px;width:100%}.tox .tox-comment__edit{display:flex;flex-wrap:wrap;justify-content:flex-end;margin-top:16px}.tox .tox-comment__gradient::after{background:linear-gradient(rgba(43,59,78,0),#2b3b4e);bottom:0;content:\"\";display:block;height:5em;margin-top:-40px;position:absolute;width:100%}.tox .tox-comment__overlay{background:#2b3b4e;bottom:0;display:flex;flex-direction:column;flex-grow:1;left:0;opacity:.9;position:absolute;right:0;text-align:center;top:0;z-index:5}.tox .tox-comment__loading-text{align-items:center;color:#fff;display:flex;flex-direction:column;position:relative}.tox .tox-comment__loading-text>div{padding-bottom:16px}.tox .tox-comment__overlaytext{bottom:0;flex-direction:column;font-size:14px;left:0;padding:1em;position:absolute;right:0;top:0;z-index:10}.tox .tox-comment__overlaytext p{background-color:#2b3b4e;box-shadow:0 0 8px 8px #2b3b4e;color:#fff;text-align:center}.tox .tox-comment__overlaytext div:nth-of-type(2){font-size:.8em}.tox .tox-comment__busy-spinner{align-items:center;background-color:#2b3b4e;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:20}.tox .tox-comment__scroll{display:flex;flex-direction:column;flex-shrink:1;overflow:auto}.tox .tox-conversations{margin:8px}.tox:not([dir=rtl]) .tox-comment__edit{margin-left:8px}.tox:not([dir=rtl]) .tox-comment__buttonspacing>:last-child,.tox:not([dir=rtl]) .tox-comment__edit>:last-child,.tox:not([dir=rtl]) .tox-comment__reply>:last-child{margin-left:8px}.tox[dir=rtl] .tox-comment__edit{margin-right:8px}.tox[dir=rtl] .tox-comment__buttonspacing>:last-child,.tox[dir=rtl] .tox-comment__edit>:last-child,.tox[dir=rtl] .tox-comment__reply>:last-child{margin-right:8px}.tox .tox-user{align-items:center;display:flex}.tox .tox-user__avatar svg{fill:rgba(255,255,255,.5)}.tox .tox-user__avatar img{border-radius:50%;height:36px;object-fit:cover;vertical-align:middle;width:36px}.tox .tox-user__name{color:#fff;font-size:14px;font-style:normal;font-weight:700;line-height:18px;text-transform:none}.tox:not([dir=rtl]) .tox-user__avatar img,.tox:not([dir=rtl]) .tox-user__avatar svg{margin-right:8px}.tox:not([dir=rtl]) .tox-user__avatar+.tox-user__name{margin-left:8px}.tox[dir=rtl] .tox-user__avatar img,.tox[dir=rtl] .tox-user__avatar svg{margin-left:8px}.tox[dir=rtl] .tox-user__avatar+.tox-user__name{margin-right:8px}.tox .tox-dialog-wrap{align-items:center;bottom:0;display:flex;justify-content:center;left:0;position:fixed;right:0;top:0;z-index:1100}.tox .tox-dialog-wrap__backdrop{background-color:rgba(34,47,62,.75);bottom:0;left:0;position:absolute;right:0;top:0;z-index:1}.tox .tox-dialog-wrap__backdrop--opaque{background-color:#222f3e}.tox .tox-dialog{background-color:#2b3b4e;border-color:#161f29;border-radius:10px;border-style:solid;border-width:0;box-shadow:0 16px 16px -10px rgba(34,47,62,.15),0 0 40px 1px rgba(34,47,62,.15);display:flex;flex-direction:column;max-height:100%;max-width:480px;overflow:hidden;position:relative;width:95vw;z-index:2}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox .tox-dialog{align-self:flex-start;margin:8px auto;max-height:calc(100vh - 8px * 2);width:calc(100vw - 16px)}}.tox .tox-dialog-inline{z-index:1100}.tox .tox-dialog__header{align-items:center;background-color:#2b3b4e;border-bottom:none;color:#fff;display:flex;font-size:16px;justify-content:space-between;padding:8px 16px 0 16px;position:relative}.tox .tox-dialog__header .tox-button{z-index:1}.tox .tox-dialog__draghandle{cursor:grab;height:100%;left:0;position:absolute;top:0;width:100%}.tox .tox-dialog__draghandle:active{cursor:grabbing}.tox .tox-dialog__dismiss{margin-left:auto}.tox .tox-dialog__title{font-family:-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,Oxygen-Sans,Ubuntu,Cantarell,\"Helvetica Neue\",sans-serif;font-size:20px;font-style:normal;font-weight:400;line-height:1.3;margin:0;text-transform:none}.tox .tox-dialog__body{color:#fff;display:flex;flex:1;font-size:16px;font-style:normal;font-weight:400;line-height:1.3;min-width:0;text-align:left;text-transform:none}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox .tox-dialog__body{flex-direction:column}}.tox .tox-dialog__body-nav{align-items:flex-start;display:flex;flex-direction:column;flex-shrink:0;padding:16px 16px}@media only screen and (min-width:768px){.tox .tox-dialog__body-nav{max-width:11em}}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox .tox-dialog__body-nav{flex-direction:row;-webkit-overflow-scrolling:touch;overflow-x:auto;padding-bottom:0}}.tox .tox-dialog__body-nav-item{border-bottom:2px solid transparent;color:rgba(255,255,255,.5);display:inline-block;flex-shrink:0;font-size:14px;line-height:1.3;margin-bottom:8px;max-width:13em;text-decoration:none}.tox .tox-dialog__body-nav-item:focus{background-color:rgba(0,108,231,.1)}.tox .tox-dialog__body-nav-item--active{border-bottom:2px solid #67aeff;color:#67aeff}.tox .tox-dialog__body-content{box-sizing:border-box;display:flex;flex:1;flex-direction:column;max-height:min(650px,calc(100vh - 110px));overflow:auto;-webkit-overflow-scrolling:touch;padding:16px 16px}.tox .tox-dialog__body-content>*{margin-bottom:0;margin-top:16px}.tox .tox-dialog__body-content>:first-child{margin-top:0}.tox .tox-dialog__body-content>:last-child{margin-bottom:0}.tox .tox-dialog__body-content>:only-child{margin-bottom:0;margin-top:0}.tox .tox-dialog__body-content a{color:#67aeff;cursor:pointer;text-decoration:underline}.tox .tox-dialog__body-content a:focus,.tox .tox-dialog__body-content a:hover{color:#cde5ff;text-decoration:underline}.tox .tox-dialog__body-content a:focus-visible{border-radius:1px;outline:2px solid #67aeff;outline-offset:2px}.tox .tox-dialog__body-content a:active{color:#fff;text-decoration:underline}.tox .tox-dialog__body-content svg{fill:#fff}.tox .tox-dialog__body-content strong{font-weight:700}.tox .tox-dialog__body-content ul{list-style-type:disc}.tox .tox-dialog__body-content dd,.tox .tox-dialog__body-content ol,.tox .tox-dialog__body-content ul{padding-inline-start:2.5rem}.tox .tox-dialog__body-content dl,.tox .tox-dialog__body-content ol,.tox .tox-dialog__body-content ul{margin-bottom:16px}.tox .tox-dialog__body-content dd,.tox .tox-dialog__body-content dl,.tox .tox-dialog__body-content dt,.tox .tox-dialog__body-content ol,.tox .tox-dialog__body-content ul{display:block;margin-inline-end:0;margin-inline-start:0}.tox .tox-dialog__body-content .tox-form__group h1{color:#fff;font-size:20px;font-style:normal;font-weight:700;letter-spacing:normal;margin-bottom:16px;margin-top:2rem;text-transform:none}.tox .tox-dialog__body-content .tox-form__group h2{color:#fff;font-size:16px;font-style:normal;font-weight:700;letter-spacing:normal;margin-bottom:16px;margin-top:2rem;text-transform:none}.tox .tox-dialog__body-content .tox-form__group p{margin-bottom:16px}.tox .tox-dialog__body-content .tox-form__group h1:first-child,.tox .tox-dialog__body-content .tox-form__group h2:first-child,.tox .tox-dialog__body-content .tox-form__group p:first-child{margin-top:0}.tox .tox-dialog__body-content .tox-form__group h1:last-child,.tox .tox-dialog__body-content .tox-form__group h2:last-child,.tox .tox-dialog__body-content .tox-form__group p:last-child{margin-bottom:0}.tox .tox-dialog__body-content .tox-form__group h1:only-child,.tox .tox-dialog__body-content .tox-form__group h2:only-child,.tox .tox-dialog__body-content .tox-form__group p:only-child{margin-bottom:0;margin-top:0}.tox .tox-dialog__body-content .tox-form__group .tox-label.tox-label--center{text-align:center}.tox .tox-dialog__body-content .tox-form__group .tox-label.tox-label--end{text-align:end}.tox .tox-dialog--width-lg{height:650px;max-width:1200px}.tox .tox-dialog--fullscreen{height:100%;max-width:100%}.tox .tox-dialog--fullscreen .tox-dialog__body-content{max-height:100%}.tox .tox-dialog--width-md{max-width:800px}.tox .tox-dialog--width-md .tox-dialog__body-content{overflow:auto}.tox .tox-dialog__body-content--centered{text-align:center}.tox .tox-dialog__footer{align-items:center;background-color:#2b3b4e;border-top:none;display:flex;justify-content:space-between;padding:8px 16px}.tox .tox-dialog__footer-end,.tox .tox-dialog__footer-start{display:flex}.tox .tox-dialog__busy-spinner{align-items:center;background-color:rgba(34,47,62,.75);bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:3}.tox .tox-dialog__table{border-collapse:collapse;width:100%}.tox .tox-dialog__table thead th{font-weight:700;padding-bottom:8px}.tox .tox-dialog__table thead th:first-child{padding-right:8px}.tox .tox-dialog__table tbody tr{border-bottom:1px solid #000}.tox .tox-dialog__table tbody tr:last-child{border-bottom:none}.tox .tox-dialog__table td{padding-bottom:8px;padding-top:8px}.tox .tox-dialog__table td:first-child{padding-right:8px}.tox .tox-dialog__iframe{min-height:200px}.tox .tox-dialog__iframe.tox-dialog__iframe--opaque{background:#fff}.tox .tox-navobj-bordered{position:relative}.tox .tox-navobj-bordered::before{border:1px solid #161f29;border-radius:6px;content:'';inset:0;opacity:1;pointer-events:none;position:absolute;z-index:1}.tox .tox-navobj-bordered-focus.tox-navobj-bordered::before{border-color:#006ce7;box-shadow:0 0 0 2px rgba(0,108,231,.25);outline:0}.tox .tox-dialog__popups{position:absolute;width:100%;z-index:1100}.tox .tox-dialog__body-iframe{display:flex;flex:1;flex-direction:column}.tox .tox-dialog__body-iframe .tox-navobj{display:flex;flex:1}.tox .tox-dialog__body-iframe .tox-navobj :nth-child(2){flex:1;height:100%}.tox .tox-dialog-dock-fadeout{opacity:0;visibility:hidden}.tox .tox-dialog-dock-fadein{opacity:1;visibility:visible}.tox .tox-dialog-dock-transition{transition:visibility 0s linear .3s,opacity .3s ease}.tox .tox-dialog-dock-transition.tox-dialog-dock-fadein{transition-delay:0s}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox:not([dir=rtl]) .tox-dialog__body-nav{margin-right:0}}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox:not([dir=rtl]) .tox-dialog__body-nav-item:not(:first-child){margin-left:8px}}.tox:not([dir=rtl]) .tox-dialog__footer .tox-dialog__footer-end>*,.tox:not([dir=rtl]) .tox-dialog__footer .tox-dialog__footer-start>*{margin-left:8px}.tox[dir=rtl] .tox-dialog__body{text-align:right}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox[dir=rtl] .tox-dialog__body-nav{margin-left:0}}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox[dir=rtl] .tox-dialog__body-nav-item:not(:first-child){margin-right:8px}}.tox[dir=rtl] .tox-dialog__footer .tox-dialog__footer-end>*,.tox[dir=rtl] .tox-dialog__footer .tox-dialog__footer-start>*{margin-right:8px}body.tox-dialog__disable-scroll{overflow:hidden}.tox .tox-dropzone-container{display:flex;flex:1}.tox .tox-dropzone{align-items:center;background:#fff;border:2px dashed #161f29;box-sizing:border-box;display:flex;flex-direction:column;flex-grow:1;justify-content:center;min-height:100px;padding:10px}.tox .tox-dropzone p{color:rgba(255,255,255,.5);margin:0 0 16px 0}.tox .tox-edit-area{display:flex;flex:1;overflow:hidden;position:relative}.tox .tox-edit-area::before{border:2px solid #fff;border-radius:4px;content:'';inset:0;opacity:0;pointer-events:none;position:absolute;transition:opacity .15s;z-index:1}.tox .tox-edit-area__iframe{background-color:#fff;border:0;box-sizing:border-box;flex:1;height:100%;position:absolute;width:100%}.tox.tox-edit-focus .tox-edit-area::before{opacity:1}.tox.tox-inline-edit-area{border:1px dotted #161f29}.tox .tox-editor-container{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.tox .tox-editor-header{display:grid;grid-template-columns:1fr min-content;z-index:2}.tox:not(.tox-tinymce-inline) .tox-editor-header{background-color:#222f3e;border-bottom:1px solid rgba(255,255,255,.15);box-shadow:none;padding:4px 0}.tox:not(.tox-tinymce-inline) .tox-editor-header:not(.tox-editor-dock-transition){transition:box-shadow .5s}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-bottom .tox-editor-header{border-top:1px solid rgba(255,255,255,.15);box-shadow:none}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-sticky-on .tox-editor-header{background-color:#222f3e;box-shadow:none;padding:4px 0}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-sticky-on.tox-tinymce--toolbar-bottom .tox-editor-header{box-shadow:none}.tox.tox:not(.tox-tinymce-inline) .tox-editor-header.tox-editor-header--empty{background:0 0;border:none;box-shadow:none;padding:0}.tox-editor-dock-fadeout{opacity:0;visibility:hidden}.tox-editor-dock-fadein{opacity:1;visibility:visible}.tox-editor-dock-transition{transition:visibility 0s linear .25s,opacity .25s ease}.tox-editor-dock-transition.tox-editor-dock-fadein{transition-delay:0s}.tox .tox-control-wrap{flex:1;position:relative}.tox .tox-control-wrap:not(.tox-control-wrap--status-invalid) .tox-control-wrap__status-icon-invalid,.tox .tox-control-wrap:not(.tox-control-wrap--status-unknown) .tox-control-wrap__status-icon-unknown,.tox .tox-control-wrap:not(.tox-control-wrap--status-valid) .tox-control-wrap__status-icon-valid{display:none}.tox .tox-control-wrap svg{display:block}.tox .tox-control-wrap__status-icon-wrap{position:absolute;top:50%;transform:translateY(-50%)}.tox .tox-control-wrap__status-icon-invalid svg{fill:#c00}.tox .tox-control-wrap__status-icon-unknown svg{fill:orange}.tox .tox-control-wrap__status-icon-valid svg{fill:green}.tox:not([dir=rtl]) .tox-control-wrap--status-invalid .tox-textfield,.tox:not([dir=rtl]) .tox-control-wrap--status-unknown .tox-textfield,.tox:not([dir=rtl]) .tox-control-wrap--status-valid .tox-textfield{padding-right:32px}.tox:not([dir=rtl]) .tox-control-wrap__status-icon-wrap{right:4px}.tox[dir=rtl] .tox-control-wrap--status-invalid .tox-textfield,.tox[dir=rtl] .tox-control-wrap--status-unknown .tox-textfield,.tox[dir=rtl] .tox-control-wrap--status-valid .tox-textfield{padding-left:32px}.tox[dir=rtl] .tox-control-wrap__status-icon-wrap{left:4px}.tox .tox-autocompleter{max-width:25em}.tox .tox-autocompleter .tox-menu{box-sizing:border-box;max-width:25em}.tox .tox-autocompleter .tox-autocompleter-highlight{font-weight:700}.tox .tox-color-input{display:flex;position:relative;z-index:1}.tox .tox-color-input .tox-textfield{z-index:-1}.tox .tox-color-input span{border-color:rgba(34,47,62,.2);border-radius:6px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;height:24px;position:absolute;top:6px;width:24px}.tox .tox-color-input span:focus:not([aria-disabled=true]),.tox .tox-color-input span:hover:not([aria-disabled=true]){border-color:#006ce7;cursor:pointer}.tox .tox-color-input span::before{background-image:linear-gradient(45deg,rgba(255,255,255,.25) 25%,transparent 25%),linear-gradient(-45deg,rgba(255,255,255,.25) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,rgba(255,255,255,.25) 75%),linear-gradient(-45deg,transparent 75%,rgba(255,255,255,.25) 75%);background-position:0 0,0 6px,6px -6px,-6px 0;background-size:12px 12px;border:1px solid #2b3b4e;border-radius:6px;box-sizing:border-box;content:'';height:24px;left:-1px;position:absolute;top:-1px;width:24px;z-index:-1}.tox .tox-color-input span[aria-disabled=true]{cursor:not-allowed}.tox:not([dir=rtl]) .tox-color-input .tox-textfield{padding-left:36px}.tox:not([dir=rtl]) .tox-color-input span{left:6px}.tox[dir=rtl] .tox-color-input .tox-textfield{padding-right:36px}.tox[dir=rtl] .tox-color-input span{right:6px}.tox .tox-label,.tox .tox-toolbar-label{color:rgba(255,255,255,.5);display:block;font-size:14px;font-style:normal;font-weight:400;line-height:1.3;padding:0 8px 0 0;text-transform:none;white-space:nowrap}.tox .tox-toolbar-label{padding:0 8px}.tox[dir=rtl] .tox-label{padding:0 0 0 8px}.tox .tox-form{display:flex;flex:1;flex-direction:column}.tox .tox-form__group{box-sizing:border-box;margin-bottom:4px}.tox .tox-form-group--maximize{flex:1}.tox .tox-form__group--error{color:#c00}.tox .tox-form__group--collection{display:flex}.tox .tox-form__grid{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between}.tox .tox-form__grid--2col>.tox-form__group{width:calc(50% - (8px / 2))}.tox .tox-form__grid--3col>.tox-form__group{width:calc(100% / 3 - (8px / 2))}.tox .tox-form__grid--4col>.tox-form__group{width:calc(25% - (8px / 2))}.tox .tox-form__controls-h-stack{align-items:center;display:flex}.tox .tox-form__group--inline{align-items:center;display:flex}.tox .tox-form__group--stretched{display:flex;flex:1;flex-direction:column}.tox .tox-form__group--stretched .tox-textarea{flex:1}.tox .tox-form__group--stretched .tox-navobj{display:flex;flex:1}.tox .tox-form__group--stretched .tox-navobj :nth-child(2){flex:1;height:100%}.tox:not([dir=rtl]) .tox-form__controls-h-stack>:not(:first-child){margin-left:4px}.tox[dir=rtl] .tox-form__controls-h-stack>:not(:first-child){margin-right:4px}.tox .tox-lock.tox-locked .tox-lock-icon__unlock,.tox .tox-lock:not(.tox-locked) .tox-lock-icon__lock{display:none}.tox .tox-listboxfield .tox-listbox--select,.tox .tox-textarea,.tox .tox-textarea-wrap .tox-textarea:focus,.tox .tox-textfield,.tox .tox-toolbar-textfield{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#2b3b4e;border-color:#161f29;border-radius:6px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#fff;font-family:-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,Oxygen-Sans,Ubuntu,Cantarell,\"Helvetica Neue\",sans-serif;font-size:16px;line-height:24px;margin:0;min-height:34px;outline:0;padding:5px 5.5px;resize:none;width:100%}.tox .tox-textarea[disabled],.tox .tox-textfield[disabled]{background-color:#222f3e;color:rgba(255,255,255,.85);cursor:not-allowed}.tox .tox-custom-editor:focus-within,.tox .tox-listboxfield .tox-listbox--select:focus,.tox .tox-textarea-wrap:focus-within,.tox .tox-textarea:focus,.tox .tox-textfield:focus{background-color:#2b3b4e;border-color:#006ce7;box-shadow:0 0 0 2px rgba(0,108,231,.25);outline:0}.tox .tox-toolbar-textfield{border-width:0;margin-bottom:3px;margin-top:2px;max-width:250px}.tox .tox-naked-btn{background-color:transparent;border:0;border-color:transparent;box-shadow:unset;color:#006ce7;cursor:pointer;display:block;margin:0;padding:0}.tox .tox-naked-btn svg{display:block;fill:#fff}.tox:not([dir=rtl]) .tox-toolbar-textfield+*{margin-left:4px}.tox[dir=rtl] .tox-toolbar-textfield+*{margin-right:4px}.tox .tox-listboxfield{cursor:pointer;position:relative}.tox .tox-listboxfield .tox-listbox--select[disabled]{background-color:#19232e;color:rgba(255,255,255,.85);cursor:not-allowed}.tox .tox-listbox__select-label{cursor:default;flex:1;margin:0 4px}.tox .tox-listbox__select-chevron{align-items:center;display:flex;justify-content:center;width:16px}.tox .tox-listbox__select-chevron svg{fill:#fff}.tox .tox-listboxfield .tox-listbox--select{align-items:center;display:flex}.tox:not([dir=rtl]) .tox-listboxfield svg{right:8px}.tox[dir=rtl] .tox-listboxfield svg{left:8px}.tox .tox-selectfield{cursor:pointer;position:relative}.tox .tox-selectfield select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#2b3b4e;border-color:#161f29;border-radius:6px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#fff;font-family:-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,Oxygen-Sans,Ubuntu,Cantarell,\"Helvetica Neue\",sans-serif;font-size:16px;line-height:24px;margin:0;min-height:34px;outline:0;padding:5px 5.5px;resize:none;width:100%}.tox .tox-selectfield select[disabled]{background-color:#19232e;color:rgba(255,255,255,.85);cursor:not-allowed}.tox .tox-selectfield select::-ms-expand{display:none}.tox .tox-selectfield select:focus{background-color:#2b3b4e;border-color:#006ce7;box-shadow:0 0 0 2px rgba(0,108,231,.25);outline:0}.tox .tox-selectfield svg{pointer-events:none;position:absolute;top:50%;transform:translateY(-50%)}.tox:not([dir=rtl]) .tox-selectfield select[size=\"0\"],.tox:not([dir=rtl]) .tox-selectfield select[size=\"1\"]{padding-right:24px}.tox:not([dir=rtl]) .tox-selectfield svg{right:8px}.tox[dir=rtl] .tox-selectfield select[size=\"0\"],.tox[dir=rtl] .tox-selectfield select[size=\"1\"]{padding-left:24px}.tox[dir=rtl] .tox-selectfield svg{left:8px}.tox .tox-textarea-wrap{border-color:#161f29;border-radius:6px;border-style:solid;border-width:1px;display:flex;flex:1;overflow:hidden}.tox .tox-textarea{-webkit-appearance:textarea;-moz-appearance:textarea;appearance:textarea;white-space:pre-wrap}.tox .tox-textarea-wrap .tox-textarea{border:none}.tox .tox-textarea-wrap .tox-textarea:focus{border:none}.tox-fullscreen{border:0;height:100%;margin:0;overflow:hidden;overscroll-behavior:none;padding:0;touch-action:pinch-zoom;width:100%}.tox.tox-tinymce.tox-fullscreen .tox-statusbar__resize-handle{display:none}.tox-shadowhost.tox-fullscreen,.tox.tox-tinymce.tox-fullscreen{left:0;position:fixed;top:0;z-index:1200}.tox.tox-tinymce.tox-fullscreen{background-color:transparent}.tox-fullscreen .tox.tox-tinymce-aux,.tox-fullscreen~.tox.tox-tinymce-aux{z-index:1201}.tox .tox-help__more-link{list-style:none;margin-top:1em}.tox .tox-imagepreview{background-color:#666;height:380px;overflow:hidden;position:relative;width:100%}.tox .tox-imagepreview.tox-imagepreview__loaded{overflow:auto}.tox .tox-imagepreview__container{display:flex;left:100vw;position:absolute;top:100vw}.tox .tox-imagepreview__image{background:url(data:image/gif;base64,R0lGODdhDAAMAIABAMzMzP///ywAAAAADAAMAAACFoQfqYeabNyDMkBQb81Uat85nxguUAEAOw==)}.tox .tox-image-tools .tox-spacer{flex:1}.tox .tox-image-tools .tox-bar{align-items:center;display:flex;height:60px;justify-content:center}.tox .tox-image-tools .tox-imagepreview,.tox .tox-image-tools .tox-imagepreview+.tox-bar{margin-top:8px}.tox .tox-image-tools .tox-croprect-block{background:#000;opacity:.5;position:absolute;zoom:1}.tox .tox-image-tools .tox-croprect-handle{border:2px solid #fff;height:20px;left:0;position:absolute;top:0;width:20px}.tox .tox-image-tools .tox-croprect-handle-move{border:0;cursor:move;position:absolute}.tox .tox-image-tools .tox-croprect-handle-nw{border-width:2px 0 0 2px;cursor:nw-resize;left:100px;margin:-2px 0 0 -2px;top:100px}.tox .tox-image-tools .tox-croprect-handle-ne{border-width:2px 2px 0 0;cursor:ne-resize;left:200px;margin:-2px 0 0 -20px;top:100px}.tox .tox-image-tools .tox-croprect-handle-sw{border-width:0 0 2px 2px;cursor:sw-resize;left:100px;margin:-20px 2px 0 -2px;top:200px}.tox .tox-image-tools .tox-croprect-handle-se{border-width:0 2px 2px 0;cursor:se-resize;left:200px;margin:-20px 0 0 -20px;top:200px}.tox .tox-insert-table-picker{display:flex;flex-wrap:wrap;width:170px}.tox .tox-insert-table-picker>div{border-color:rgba(255,255,255,.15);border-style:solid;border-width:0 1px 1px 0;box-sizing:border-box;height:17px;width:17px}.tox .tox-collection--list .tox-collection__group .tox-insert-table-picker{margin:-4px -4px}.tox .tox-insert-table-picker .tox-insert-table-picker__selected{background-color:rgba(0,108,231,.5);border-color:rgba(0,108,231,.5)}.tox .tox-insert-table-picker__label{color:#fff;display:block;font-size:14px;padding:4px;text-align:center;width:100%}.tox:not([dir=rtl]) .tox-insert-table-picker>div:nth-child(10n){border-right:0}.tox[dir=rtl] .tox-insert-table-picker>div:nth-child(10n+1){border-right:0}.tox .tox-menu{background-color:#2b3b4e;border:1px solid rgba(255,255,255,.15);border-radius:6px;box-shadow:none;display:inline-block;overflow:hidden;vertical-align:top;z-index:1150}.tox .tox-menu.tox-collection.tox-collection--list{padding:0 4px}.tox .tox-menu.tox-collection.tox-collection--toolbar{padding:8px}.tox .tox-menu.tox-collection.tox-collection--grid{padding:8px}@media only screen and (min-width:768px){.tox .tox-menu .tox-collection__item-label{overflow-wrap:break-word;word-break:normal}.tox .tox-dialog__popups .tox-menu .tox-collection__item-label{word-break:break-all}}.tox .tox-menu__label blockquote,.tox .tox-menu__label code,.tox .tox-menu__label h1,.tox .tox-menu__label h2,.tox .tox-menu__label h3,.tox .tox-menu__label h4,.tox .tox-menu__label h5,.tox .tox-menu__label h6,.tox .tox-menu__label p{margin:0}.tox .tox-menubar{background:repeating-linear-gradient(transparent 0 1px,transparent 1px 39px) center top 39px/100% calc(100% - 39px) no-repeat;background-color:#222f3e;display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:wrap;grid-column:1/-1;grid-row:1;padding:0 11px 0 12px}.tox .tox-promotion+.tox-menubar{grid-column:1}.tox .tox-promotion{background:repeating-linear-gradient(transparent 0 1px,transparent 1px 39px) center top 39px/100% calc(100% - 39px) no-repeat;background-color:#222f3e;grid-column:2;grid-row:1;padding-inline-end:8px;padding-inline-start:4px;padding-top:5px}.tox .tox-promotion-link{align-items:unsafe center;background-color:#e8f1f8;border-radius:5px;color:#086be6;cursor:pointer;display:flex;font-size:14px;height:26.6px;padding:4px 8px;white-space:nowrap}.tox .tox-promotion-link:hover{background-color:#b4d7ff}.tox .tox-promotion-link:focus{background-color:#d9edf7}.tox .tox-mbtn{align-items:center;background:0 0;border:0;border-radius:3px;box-shadow:none;color:#fff;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:400;height:28px;justify-content:center;margin:5px 1px 6px 0;outline:0;overflow:hidden;padding:0 4px;text-transform:none;width:auto}.tox .tox-mbtn[disabled]{background-color:transparent;border:0;box-shadow:none;color:rgba(255,255,255,.5);cursor:not-allowed}.tox .tox-mbtn:focus:not(:disabled){background:#3389ec;border:0;box-shadow:none;color:#fff}.tox .tox-mbtn--active{background:#599fef;border:0;box-shadow:none;color:#fff}.tox .tox-mbtn:hover:not(:disabled):not(.tox-mbtn--active){background:#3389ec;border:0;box-shadow:none;color:#fff}.tox .tox-mbtn__select-label{cursor:default;font-weight:400;margin:0 4px}.tox .tox-mbtn[disabled] .tox-mbtn__select-label{cursor:not-allowed}.tox .tox-mbtn__select-chevron{align-items:center;display:flex;justify-content:center;width:16px;display:none}.tox .tox-notification{border-radius:6px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;display:grid;font-size:14px;font-weight:400;grid-template-columns:minmax(40px,1fr) auto minmax(40px,1fr);margin-top:4px;opacity:0;padding:4px;transition:transform .1s ease-in,opacity 150ms ease-in}.tox .tox-notification p{font-size:14px;font-weight:400}.tox .tox-notification a{cursor:pointer;text-decoration:underline}.tox .tox-notification--in{opacity:1}.tox .tox-notification--success{background-color:#334840;border-color:#3c5440;color:#fff}.tox .tox-notification--success p{color:#fff}.tox .tox-notification--success a{color:#b5d199}.tox .tox-notification--success svg{fill:#fff}.tox .tox-notification--error{background-color:#442632;border-color:#55212b;color:#fff}.tox .tox-notification--error p{color:#fff}.tox .tox-notification--error a{color:#e68080}.tox .tox-notification--error svg{fill:#fff}.tox .tox-notification--warn,.tox .tox-notification--warning{background-color:#222f3e;border-color:rgba(255,255,255,.15);color:#fff0b3}.tox .tox-notification--warn p,.tox .tox-notification--warning p{color:#fff0b3}.tox .tox-notification--warn a,.tox .tox-notification--warning a{color:#fc0}.tox .tox-notification--warn svg,.tox .tox-notification--warning svg{fill:#fff0b3}.tox .tox-notification--info{background-color:#254161;border-color:#264972;color:#fff}.tox .tox-notification--info p{color:#fff}.tox .tox-notification--info a{color:#83b7f3}.tox .tox-notification--info svg{fill:#fff}.tox .tox-notification__body{align-self:center;color:#fff;font-size:14px;grid-column-end:3;grid-column-start:2;grid-row-end:2;grid-row-start:1;text-align:center;white-space:normal;word-break:break-all;word-break:break-word}.tox .tox-notification__body>*{margin:0}.tox .tox-notification__body>*+*{margin-top:1rem}.tox .tox-notification__icon{align-self:center;grid-column-end:2;grid-column-start:1;grid-row-end:2;grid-row-start:1;justify-self:end}.tox .tox-notification__icon svg{display:block}.tox .tox-notification__dismiss{align-self:start;grid-column-end:4;grid-column-start:3;grid-row-end:2;grid-row-start:1;justify-self:end}.tox .tox-notification .tox-progress-bar{grid-column-end:4;grid-column-start:1;grid-row-end:3;grid-row-start:2;justify-self:center}.tox .tox-pop{display:inline-block;position:relative}.tox .tox-pop--resizing{transition:width .1s ease}.tox .tox-pop--resizing .tox-toolbar,.tox .tox-pop--resizing .tox-toolbar__group{flex-wrap:nowrap}.tox .tox-pop--transition{transition:.15s ease;transition-property:left,right,top,bottom}.tox .tox-pop--transition::after,.tox .tox-pop--transition::before{transition:all .15s,visibility 0s,opacity 75ms ease 75ms}.tox .tox-pop__dialog{background-color:#222f3e;border:1px solid #161f29;border-radius:6px;box-shadow:0 0 2px 0 rgba(34,47,62,.2),0 4px 8px 0 rgba(34,47,62,.15);min-width:0;overflow:hidden}.tox .tox-pop__dialog>:not(.tox-toolbar){margin:4px 4px 4px 8px}.tox .tox-pop__dialog .tox-toolbar{background-color:transparent;margin-bottom:-1px}.tox .tox-pop::after,.tox .tox-pop::before{border-style:solid;content:'';display:block;height:0;opacity:1;position:absolute;width:0}.tox .tox-pop.tox-pop--inset::after,.tox .tox-pop.tox-pop--inset::before{opacity:0;transition:all 0s .15s,visibility 0s,opacity 75ms ease}.tox .tox-pop.tox-pop--bottom::after,.tox .tox-pop.tox-pop--bottom::before{left:50%;top:100%}.tox .tox-pop.tox-pop--bottom::after{border-color:#222f3e transparent transparent transparent;border-width:8px;margin-left:-8px;margin-top:-1px}.tox .tox-pop.tox-pop--bottom::before{border-color:#161f29 transparent transparent transparent;border-width:9px;margin-left:-9px}.tox .tox-pop.tox-pop--top::after,.tox .tox-pop.tox-pop--top::before{left:50%;top:0;transform:translateY(-100%)}.tox .tox-pop.tox-pop--top::after{border-color:transparent transparent #222f3e transparent;border-width:8px;margin-left:-8px;margin-top:1px}.tox .tox-pop.tox-pop--top::before{border-color:transparent transparent #161f29 transparent;border-width:9px;margin-left:-9px}.tox .tox-pop.tox-pop--left::after,.tox .tox-pop.tox-pop--left::before{left:0;top:calc(50% - 1px);transform:translateY(-50%)}.tox .tox-pop.tox-pop--left::after{border-color:transparent #222f3e transparent transparent;border-width:8px;margin-left:-15px}.tox .tox-pop.tox-pop--left::before{border-color:transparent #161f29 transparent transparent;border-width:10px;margin-left:-19px}.tox .tox-pop.tox-pop--right::after,.tox .tox-pop.tox-pop--right::before{left:100%;top:calc(50% + 1px);transform:translateY(-50%)}.tox .tox-pop.tox-pop--right::after{border-color:transparent transparent transparent #222f3e;border-width:8px;margin-left:-1px}.tox .tox-pop.tox-pop--right::before{border-color:transparent transparent transparent #161f29;border-width:10px;margin-left:-1px}.tox .tox-pop.tox-pop--align-left::after,.tox .tox-pop.tox-pop--align-left::before{left:20px}.tox .tox-pop.tox-pop--align-right::after,.tox .tox-pop.tox-pop--align-right::before{left:calc(100% - 20px)}.tox .tox-sidebar-wrap{display:flex;flex-direction:row;flex-grow:1;min-height:0}.tox .tox-sidebar{background-color:#222f3e;display:flex;flex-direction:row;justify-content:flex-end}.tox .tox-sidebar__slider{display:flex;overflow:hidden}.tox .tox-sidebar__pane-container{display:flex}.tox .tox-sidebar__pane{display:flex}.tox .tox-sidebar--sliding-closed{opacity:0}.tox .tox-sidebar--sliding-open{opacity:1}.tox .tox-sidebar--sliding-growing,.tox .tox-sidebar--sliding-shrinking{transition:width .5s ease,opacity .5s ease}.tox .tox-selector{background-color:#4099ff;border-color:#4099ff;border-style:solid;border-width:1px;box-sizing:border-box;display:inline-block;height:10px;position:absolute;width:10px}.tox.tox-platform-touch .tox-selector{height:12px;width:12px}.tox .tox-slider{align-items:center;display:flex;flex:1;height:24px;justify-content:center;position:relative}.tox .tox-slider__rail{background-color:transparent;border:1px solid #161f29;border-radius:6px;height:10px;min-width:120px;width:100%}.tox .tox-slider__handle{background-color:#006ce7;border:2px solid #0054b4;border-radius:6px;box-shadow:none;height:24px;left:50%;position:absolute;top:50%;transform:translateX(-50%) translateY(-50%);width:14px}.tox .tox-form__controls-h-stack>.tox-slider:not(:first-of-type){margin-inline-start:8px}.tox .tox-form__controls-h-stack>.tox-form__group+.tox-slider{margin-inline-start:32px}.tox .tox-form__controls-h-stack>.tox-slider+.tox-form__group{margin-inline-start:32px}.tox .tox-source-code{overflow:auto}.tox .tox-spinner{display:flex}.tox .tox-spinner>div{animation:tam-bouncing-dots 1.5s ease-in-out 0s infinite both;background-color:rgba(255,255,255,.5);border-radius:100%;height:8px;width:8px}.tox .tox-spinner>div:nth-child(1){animation-delay:-.32s}.tox .tox-spinner>div:nth-child(2){animation-delay:-.16s}@keyframes tam-bouncing-dots{0%,100%,80%{transform:scale(0)}40%{transform:scale(1)}}.tox:not([dir=rtl]) .tox-spinner>div:not(:first-child){margin-left:4px}.tox[dir=rtl] .tox-spinner>div:not(:first-child){margin-right:4px}.tox .tox-statusbar{align-items:center;background-color:#222f3e;border-top:1px solid rgba(255,255,255,.15);color:rgba(255,255,255,.75);display:flex;flex:0 0 auto;font-size:14px;font-weight:400;height:25px;overflow:hidden;padding:0 8px;position:relative;text-transform:none}.tox .tox-statusbar__path{display:flex;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tox .tox-statusbar__right-container{display:flex;justify-content:flex-end;white-space:nowrap}.tox .tox-statusbar__help-text{text-align:center}.tox .tox-statusbar__text-container{display:flex;flex:1 1 auto;justify-content:space-between;overflow:hidden}@media only screen and (min-width:768px){.tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols>.tox-statusbar__help-text,.tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols>.tox-statusbar__path,.tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols>.tox-statusbar__right-container{flex:0 0 calc(100% / 3)}}.tox .tox-statusbar__text-container.tox-statusbar__text-container--flex-end{justify-content:flex-end}.tox .tox-statusbar__text-container.tox-statusbar__text-container--flex-start{justify-content:flex-start}.tox .tox-statusbar__text-container.tox-statusbar__text-container--space-around{justify-content:space-around}.tox .tox-statusbar__path>*{display:inline;white-space:nowrap}.tox .tox-statusbar__wordcount{flex:0 0 auto;margin-left:1ch}@media only screen and (max-width:767px){.tox .tox-statusbar__text-container .tox-statusbar__help-text{display:none}.tox .tox-statusbar__text-container .tox-statusbar__help-text:only-child{display:block}}.tox .tox-statusbar a,.tox .tox-statusbar__path-item,.tox .tox-statusbar__wordcount{color:rgba(255,255,255,.75);text-decoration:none}.tox .tox-statusbar a:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar a:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:hover:not(:disabled):not([aria-disabled=true]){color:#fff;cursor:pointer}.tox .tox-statusbar__branding svg{fill:rgba(255,255,255,.8);height:1.14em;vertical-align:-.28em;width:3.6em}.tox .tox-statusbar__branding a:focus:not(:disabled):not([aria-disabled=true]) svg,.tox .tox-statusbar__branding a:hover:not(:disabled):not([aria-disabled=true]) svg{fill:#fff}.tox .tox-statusbar__resize-handle{align-items:flex-end;align-self:stretch;cursor:nwse-resize;display:flex;flex:0 0 auto;justify-content:flex-end;margin-left:auto;margin-right:-8px;padding-bottom:3px;padding-left:1ch;padding-right:3px}.tox .tox-statusbar__resize-handle svg{display:block;fill:rgba(255,255,255,.5)}.tox .tox-statusbar__resize-handle:focus svg{background-color:#434e5b;border-radius:1px 1px 5px 1px;box-shadow:0 0 0 2px #434e5b}.tox:not([dir=rtl]) .tox-statusbar__path>*{margin-right:4px}.tox:not([dir=rtl]) .tox-statusbar__branding{margin-left:2ch}.tox[dir=rtl] .tox-statusbar{flex-direction:row-reverse}.tox[dir=rtl] .tox-statusbar__path>*{margin-left:4px}.tox .tox-throbber{z-index:1299}.tox .tox-throbber__busy-spinner{align-items:center;background-color:rgba(34,47,62,.6);bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}.tox .tox-tbtn{align-items:center;background:0 0;border:0;border-radius:3px;box-shadow:none;color:#fff;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:400;height:28px;justify-content:center;margin:6px 1px 5px 0;outline:0;overflow:hidden;padding:0;text-transform:none;width:34px}.tox .tox-tbtn svg{display:block;fill:#fff}.tox .tox-tbtn.tox-tbtn-more{padding-left:5px;padding-right:5px;width:inherit}.tox .tox-tbtn:focus{background:#3389ec;border:0;box-shadow:none}.tox .tox-tbtn:hover{background:#3389ec;border:0;box-shadow:none;color:#fff}.tox .tox-tbtn:hover svg{fill:#fff}.tox .tox-tbtn:active{background:#599fef;border:0;box-shadow:none;color:#fff}.tox .tox-tbtn:active svg{fill:#fff}.tox .tox-tbtn--disabled .tox-tbtn--enabled svg{fill:rgba(255,255,255,.5)}.tox .tox-tbtn--disabled,.tox .tox-tbtn--disabled:hover,.tox .tox-tbtn:disabled,.tox .tox-tbtn:disabled:hover{background:0 0;border:0;box-shadow:none;color:rgba(255,255,255,.5);cursor:not-allowed}.tox .tox-tbtn--disabled svg,.tox .tox-tbtn--disabled:hover svg,.tox .tox-tbtn:disabled svg,.tox .tox-tbtn:disabled:hover svg{fill:rgba(255,255,255,.5)}.tox .tox-tbtn--enabled,.tox .tox-tbtn--enabled:hover{background:#599fef;border:0;box-shadow:none;color:#fff}.tox .tox-tbtn--enabled:hover>*,.tox .tox-tbtn--enabled>*{transform:none}.tox .tox-tbtn--enabled svg,.tox .tox-tbtn--enabled:hover svg{fill:#fff}.tox .tox-tbtn--enabled.tox-tbtn--disabled svg,.tox .tox-tbtn--enabled:hover.tox-tbtn--disabled svg{fill:rgba(255,255,255,.5)}.tox .tox-tbtn:focus:not(.tox-tbtn--disabled){color:#fff}.tox .tox-tbtn:focus:not(.tox-tbtn--disabled) svg{fill:#fff}.tox .tox-tbtn:active>*{transform:none}.tox .tox-tbtn--md{height:42px;width:51px}.tox .tox-tbtn--lg{flex-direction:column;height:56px;width:68px}.tox .tox-tbtn--return{align-self:stretch;height:unset;width:16px}.tox .tox-tbtn--labeled{padding:0 4px;width:unset}.tox .tox-tbtn__vlabel{display:block;font-size:10px;font-weight:400;letter-spacing:-.025em;margin-bottom:4px;white-space:nowrap}.tox .tox-number-input{border-radius:3px;display:flex;margin:6px 1px 5px 0;padding:0 4px;width:auto}.tox .tox-number-input .tox-input-wrapper{background:#2f4055;display:flex;pointer-events:none;text-align:center}.tox .tox-number-input .tox-input-wrapper:focus{background:#3389ec}.tox .tox-number-input input{border-radius:3px;color:#fff;font-size:14px;margin:2px 0;pointer-events:all;width:60px}.tox .tox-number-input input:hover{background:#3389ec;color:#fff}.tox .tox-number-input input:focus{background:#fff;color:#222f3e}.tox .tox-number-input input:disabled{background:0 0;border:0;box-shadow:none;color:rgba(255,255,255,.5);cursor:not-allowed}.tox .tox-number-input button{background:#2f4055;color:#fff;height:28px;text-align:center;width:24px}.tox .tox-number-input button svg{display:block;fill:#fff;margin:0 auto;transform:scale(.67)}.tox .tox-number-input button:focus{background:#3389ec}.tox .tox-number-input button:hover{background:#3389ec;border:0;box-shadow:none;color:#fff}.tox .tox-number-input button:hover svg{fill:#fff}.tox .tox-number-input button:active{background:#599fef;border:0;box-shadow:none;color:#fff}.tox .tox-number-input button:active svg{fill:#fff}.tox .tox-number-input button:disabled{background:0 0;border:0;box-shadow:none;color:rgba(255,255,255,.5);cursor:not-allowed}.tox .tox-number-input button:disabled svg{fill:rgba(255,255,255,.5)}.tox .tox-number-input button.minus{border-radius:3px 0 0 3px}.tox .tox-number-input button.plus{border-radius:0 3px 3px 0}.tox .tox-number-input:focus:not(:active)>.tox-input-wrapper,.tox .tox-number-input:focus:not(:active)>button{background:#3389ec}.tox .tox-tbtn--select{margin:6px 1px 5px 0;padding:0 4px;width:auto}.tox .tox-tbtn__select-label{cursor:default;font-weight:400;height:initial;margin:0 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tox .tox-tbtn__select-chevron{align-items:center;display:flex;justify-content:center;width:16px}.tox .tox-tbtn__select-chevron svg{fill:rgba(255,255,255,.5)}.tox .tox-tbtn--bespoke{background:#2f4055}.tox .tox-tbtn--bespoke+.tox-tbtn--bespoke{margin-inline-start:4px}.tox .tox-tbtn--bespoke .tox-tbtn__select-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:7em}.tox .tox-tbtn--disabled .tox-tbtn__select-label,.tox .tox-tbtn--select:disabled .tox-tbtn__select-label{cursor:not-allowed}.tox .tox-split-button{border:0;border-radius:3px;box-sizing:border-box;display:flex;margin:6px 1px 5px 0;overflow:hidden}.tox .tox-split-button:hover{box-shadow:0 0 0 1px #3389ec inset}.tox .tox-split-button:focus{background:#3389ec;box-shadow:none;color:#fff}.tox .tox-split-button>*{border-radius:0}.tox .tox-split-button__chevron{width:16px}.tox .tox-split-button__chevron svg{fill:rgba(255,255,255,.5)}.tox .tox-split-button .tox-tbtn{margin:0}.tox .tox-split-button.tox-tbtn--disabled .tox-tbtn:focus,.tox .tox-split-button.tox-tbtn--disabled .tox-tbtn:hover,.tox .tox-split-button.tox-tbtn--disabled:focus,.tox .tox-split-button.tox-tbtn--disabled:hover{background:0 0;box-shadow:none;color:rgba(255,255,255,.5)}.tox.tox-platform-touch .tox-split-button .tox-tbtn--select{padding:0 0}.tox.tox-platform-touch .tox-split-button .tox-tbtn:not(.tox-tbtn--select):first-child{width:30px}.tox.tox-platform-touch .tox-split-button__chevron{width:20px}.tox .tox-split-button.tox-tbtn--disabled svg #tox-icon-highlight-bg-color__color,.tox .tox-split-button.tox-tbtn--disabled svg #tox-icon-text-color__color{opacity:.6}.tox .tox-toolbar-overlord{background-color:#222f3e}.tox .tox-toolbar,.tox .tox-toolbar__overflow,.tox .tox-toolbar__primary{background-attachment:local;background-color:#222f3e;background-image:repeating-linear-gradient(rgba(255,255,255,.15) 0 1px,transparent 1px 39px);background-position:center top 40px;background-repeat:no-repeat;background-size:calc(100% - 11px * 2) calc(100% - 41px);display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:wrap;padding:0 0;transform:perspective(1px)}.tox .tox-toolbar-overlord>.tox-toolbar,.tox .tox-toolbar-overlord>.tox-toolbar__overflow,.tox .tox-toolbar-overlord>.tox-toolbar__primary{background-position:center top 0;background-size:calc(100% - 11px * 2) calc(100% - 0px)}.tox .tox-toolbar__overflow.tox-toolbar__overflow--closed{height:0;opacity:0;padding-bottom:0;padding-top:0;visibility:hidden}.tox .tox-toolbar__overflow--growing{transition:height .3s ease,opacity .2s linear .1s}.tox .tox-toolbar__overflow--shrinking{transition:opacity .3s ease,height .2s linear .1s,visibility 0s linear .3s}.tox .tox-anchorbar,.tox .tox-toolbar-overlord{grid-column:1/-1}.tox .tox-menubar+.tox-toolbar,.tox .tox-menubar+.tox-toolbar-overlord{border-top:1px solid transparent;margin-top:-1px;padding-bottom:1px;padding-top:1px}.tox .tox-toolbar--scrolling{flex-wrap:nowrap;overflow-x:auto}.tox .tox-pop .tox-toolbar{border-width:0}.tox .tox-toolbar--no-divider{background-image:none}.tox .tox-toolbar-overlord .tox-toolbar:not(.tox-toolbar--scrolling):first-child,.tox .tox-toolbar-overlord .tox-toolbar__primary{background-position:center top 39px}.tox .tox-editor-header>.tox-toolbar--scrolling,.tox .tox-toolbar-overlord .tox-toolbar--scrolling:first-child{background-image:none}.tox.tox-tinymce-aux .tox-toolbar__overflow{background-color:#222f3e;background-position:center top 43px;background-size:calc(100% - 8px * 2) calc(100% - 51px);border:none;border-radius:6px;box-shadow:0 0 2px 0 rgba(34,47,62,.2),0 4px 8px 0 rgba(34,47,62,.15);overscroll-behavior:none;padding:4px 0}.tox-pop .tox-pop__dialog .tox-toolbar{background-position:center top 43px;background-size:calc(100% - 11px * 2) calc(100% - 51px);padding:4px 0}.tox .tox-toolbar__group{align-items:center;display:flex;flex-wrap:wrap;margin:0 0;padding:0 11px 0 12px}.tox .tox-toolbar__group--pull-right{margin-left:auto}.tox .tox-toolbar--scrolling .tox-toolbar__group{flex-shrink:0;flex-wrap:nowrap}.tox:not([dir=rtl]) .tox-toolbar__group:not(:last-of-type){border-right:1px solid transparent}.tox[dir=rtl] .tox-toolbar__group:not(:last-of-type){border-left:1px solid transparent}.tox .tox-tooltip{display:inline-block;padding:8px;position:relative}.tox .tox-tooltip__body{background-color:#3d546f;border-radius:6px;box-shadow:0 2px 4px rgba(34,47,62,.3);color:rgba(255,255,255,.75);font-size:14px;font-style:normal;font-weight:400;padding:4px 8px;text-transform:none}.tox .tox-tooltip__arrow{position:absolute}.tox .tox-tooltip--down .tox-tooltip__arrow{border-left:8px solid transparent;border-right:8px solid transparent;border-top:8px solid #3d546f;bottom:0;left:50%;position:absolute;transform:translateX(-50%)}.tox .tox-tooltip--up .tox-tooltip__arrow{border-bottom:8px solid #3d546f;border-left:8px solid transparent;border-right:8px solid transparent;left:50%;position:absolute;top:0;transform:translateX(-50%)}.tox .tox-tooltip--right .tox-tooltip__arrow{border-bottom:8px solid transparent;border-left:8px solid #3d546f;border-top:8px solid transparent;position:absolute;right:0;top:50%;transform:translateY(-50%)}.tox .tox-tooltip--left .tox-tooltip__arrow{border-bottom:8px solid transparent;border-right:8px solid #3d546f;border-top:8px solid transparent;left:0;position:absolute;top:50%;transform:translateY(-50%)}.tox .tox-tree{display:flex;flex-direction:column}.tox .tox-tree .tox-trbtn{align-items:center;background:0 0;border:0;border-radius:4px;box-shadow:none;color:#fff;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:400;height:28px;margin-bottom:4px;margin-top:4px;outline:0;overflow:hidden;padding:0;padding-left:8px;text-transform:none}.tox .tox-tree .tox-trbtn .tox-tree__label{cursor:default;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tox .tox-tree .tox-trbtn svg{display:block;fill:#fff}.tox .tox-tree .tox-trbtn:focus{background:#3389ec;border:0;box-shadow:none}.tox .tox-tree .tox-trbtn:hover{background:#3389ec;border:0;box-shadow:none;color:#fff}.tox .tox-tree .tox-trbtn:hover svg{fill:#fff}.tox .tox-tree .tox-trbtn:active{background:#599fef;border:0;box-shadow:none;color:#fff}.tox .tox-tree .tox-trbtn:active svg{fill:#fff}.tox .tox-tree .tox-trbtn--disabled,.tox .tox-tree .tox-trbtn--disabled:hover,.tox .tox-tree .tox-trbtn:disabled,.tox .tox-tree .tox-trbtn:disabled:hover{background:0 0;border:0;box-shadow:none;color:rgba(255,255,255,.5);cursor:not-allowed}.tox .tox-tree .tox-trbtn--disabled svg,.tox .tox-tree .tox-trbtn--disabled:hover svg,.tox .tox-tree .tox-trbtn:disabled svg,.tox .tox-tree .tox-trbtn:disabled:hover svg{fill:rgba(255,255,255,.5)}.tox .tox-tree .tox-trbtn--enabled,.tox .tox-tree .tox-trbtn--enabled:hover{background:#599fef;border:0;box-shadow:none;color:#fff}.tox .tox-tree .tox-trbtn--enabled:hover>*,.tox .tox-tree .tox-trbtn--enabled>*{transform:none}.tox .tox-tree .tox-trbtn--enabled svg,.tox .tox-tree .tox-trbtn--enabled:hover svg{fill:#fff}.tox .tox-tree .tox-trbtn:focus:not(.tox-trbtn--disabled){color:#fff}.tox .tox-tree .tox-trbtn:focus:not(.tox-trbtn--disabled) svg{fill:#fff}.tox .tox-tree .tox-trbtn:active>*{transform:none}.tox .tox-tree .tox-trbtn--return{align-self:stretch;height:unset;width:16px}.tox .tox-tree .tox-trbtn--labeled{padding:0 4px;width:unset}.tox .tox-tree .tox-trbtn__vlabel{display:block;font-size:10px;font-weight:400;letter-spacing:-.025em;margin-bottom:4px;white-space:nowrap}.tox .tox-tree .tox-tree--directory{display:flex;flex-direction:column}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label{font-weight:700}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn{margin-left:auto}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn svg{fill:transparent}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn.tox-mbtn--active svg,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn:focus svg{fill:#fff}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:focus .tox-mbtn svg,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover .tox-mbtn svg{fill:#fff}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover:has(.tox-mbtn:hover){background-color:transparent;color:#fff}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover:has(.tox-mbtn:hover) .tox-chevron svg{fill:#fff}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-chevron{margin-right:6px}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--growing) .tox-chevron,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--shrinking) .tox-chevron{transition:transform .5s ease-in-out}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--growing) .tox-chevron,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--open) .tox-chevron{transform:rotate(90deg)}.tox .tox-tree .tox-tree--leaf__label{font-weight:400}.tox .tox-tree .tox-tree--leaf__label .tox-mbtn{margin-left:auto}.tox .tox-tree .tox-tree--leaf__label .tox-mbtn svg{fill:transparent}.tox .tox-tree .tox-tree--leaf__label .tox-mbtn.tox-mbtn--active svg,.tox .tox-tree .tox-tree--leaf__label .tox-mbtn:focus svg{fill:#fff}.tox .tox-tree .tox-tree--leaf__label:hover .tox-mbtn svg{fill:#fff}.tox .tox-tree .tox-tree--leaf__label:hover:has(.tox-mbtn:hover){background-color:transparent;color:#fff}.tox .tox-tree .tox-tree--leaf__label:hover:has(.tox-mbtn:hover) .tox-chevron svg{fill:#fff}.tox .tox-tree .tox-tree--directory__children{overflow:hidden;padding-left:16px}.tox .tox-tree .tox-tree--directory__children.tox-tree--directory__children--growing,.tox .tox-tree .tox-tree--directory__children.tox-tree--directory__children--shrinking{transition:height .5s ease-in-out}.tox .tox-tree .tox-trbtn.tox-tree--leaf__label{display:flex;justify-content:space-between}.tox .tox-view-wrap,.tox .tox-view-wrap__slot-container{background-color:#222f3e;display:flex;flex:1;flex-direction:column}.tox .tox-view{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.tox .tox-view__header{align-items:center;display:flex;font-size:16px;justify-content:space-between;padding:8px 8px 0 8px;position:relative}.tox .tox-view--mobile.tox-view__header,.tox .tox-view--mobile.tox-view__toolbar{padding:8px}.tox .tox-view--scrolling{flex-wrap:nowrap;overflow-x:auto}.tox .tox-view__toolbar{display:flex;flex-direction:row;gap:8px;justify-content:space-between;padding:8px 8px 0 8px}.tox .tox-view__toolbar__group{display:flex;flex-direction:row;gap:12px}.tox .tox-view__header-end,.tox .tox-view__header-start{display:flex}.tox .tox-view__pane{height:100%;padding:8px;width:100%}.tox .tox-view__pane_panel{border:1px solid #161f29;border-radius:6px}.tox:not([dir=rtl]) .tox-view__header .tox-view__header-end>*,.tox:not([dir=rtl]) .tox-view__header .tox-view__header-start>*{margin-left:8px}.tox[dir=rtl] .tox-view__header .tox-view__header-end>*,.tox[dir=rtl] .tox-view__header .tox-view__header-start>*{margin-right:8px}.tox .tox-well{border:1px solid #161f29;border-radius:6px;padding:8px;width:100%}.tox .tox-well>:first-child{margin-top:0}.tox .tox-well>:last-child{margin-bottom:0}.tox .tox-well>:only-child{margin:0}.tox .tox-custom-editor{border:1px solid #161f29;border-radius:6px;display:flex;flex:1;overflow:hidden;position:relative}.tox .tox-dialog-loading::before{background-color:rgba(0,0,0,.5);content:\"\";height:100%;position:absolute;width:100%;z-index:1000}.tox .tox-tab{cursor:pointer}.tox .tox-dialog__content-js{display:flex;flex:1}.tox .tox-dialog__body-content .tox-collection{display:flex;flex:1}.tox.tox-tinymce-aux .tox-toolbar__overflow{box-shadow:0 0 0 1px rgba(255,255,255,.15)}") +//# sourceMappingURL=skin.js.map diff --git a/tinymce-resource/skins/ui/oxide-dark/skin.min.css b/tinymce-resource/skins/ui/oxide-dark/skin.min.css new file mode 100644 index 000000000..a7feef826 --- /dev/null +++ b/tinymce-resource/skins/ui/oxide-dark/skin.min.css @@ -0,0 +1 @@ +.tox{box-shadow:none;box-sizing:content-box;color:#222f3e;cursor:auto;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:normal;-webkit-tap-highlight-color:transparent;text-decoration:none;text-shadow:none;text-transform:none;vertical-align:initial;white-space:normal}.tox :not(svg):not(rect){box-sizing:inherit;color:inherit;cursor:inherit;direction:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;line-height:inherit;-webkit-tap-highlight-color:inherit;text-align:inherit;text-decoration:inherit;text-shadow:inherit;text-transform:inherit;vertical-align:inherit;white-space:inherit}.tox :not(svg):not(rect){background:0 0;border:0;box-shadow:none;float:none;height:auto;margin:0;max-width:none;outline:0;padding:0;position:static;width:auto}.tox:not([dir=rtl]){direction:ltr;text-align:left}.tox[dir=rtl]{direction:rtl;text-align:right}.tox-tinymce{border:2px solid #161f29;border-radius:10px;box-shadow:none;box-sizing:border-box;display:flex;flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;overflow:hidden;position:relative;visibility:inherit!important}.tox.tox-tinymce-inline{border:none;box-shadow:none;overflow:initial}.tox.tox-tinymce-inline .tox-editor-container{overflow:initial}.tox.tox-tinymce-inline .tox-editor-header{background-color:#222f3e;border:2px solid #161f29;border-radius:10px;box-shadow:none;overflow:hidden}.tox-tinymce-aux{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;z-index:1300}.tox-tinymce :focus,.tox-tinymce-aux :focus{outline:0}button::-moz-focus-inner{border:0}.tox[dir=rtl] .tox-icon--flip svg{transform:rotateY(180deg)}.tox .accessibility-issue__header{align-items:center;display:flex;margin-bottom:4px}.tox .accessibility-issue__description{align-items:stretch;border-radius:6px;display:flex;justify-content:space-between}.tox .accessibility-issue__description>div{padding-bottom:4px}.tox .accessibility-issue__description>div>div{align-items:center;display:flex;margin-bottom:4px}.tox .accessibility-issue__description>div>div .tox-icon svg{display:block}.tox .accessibility-issue__repair{margin-top:16px}.tox .tox-dialog__body-content .accessibility-issue--info .accessibility-issue__description{background-color:rgba(0,101,216,.4);color:#fff}.tox .tox-dialog__body-content .accessibility-issue--info .tox-form__group h2{color:#fff}.tox .tox-dialog__body-content .accessibility-issue--info .tox-icon svg{fill:#fff}.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon{background-color:#006ce7;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:focus,.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:hover{background-color:#0060ce}.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:active{background-color:#0054b4}.tox .tox-dialog__body-content .accessibility-issue--warn .accessibility-issue__description{background-color:rgba(255,165,0,.5);color:#fff}.tox .tox-dialog__body-content .accessibility-issue--warn .tox-form__group h2{color:#fff}.tox .tox-dialog__body-content .accessibility-issue--warn .tox-icon svg{fill:#fff}.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon{background-color:#ffe89d;color:#222f3e}.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:focus,.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:hover{background-color:#f2d574;color:#222f3e}.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:active{background-color:#e8c657;color:#222f3e}.tox .tox-dialog__body-content .accessibility-issue--error .accessibility-issue__description{background-color:rgba(204,0,0,.5);color:#fff}.tox .tox-dialog__body-content .accessibility-issue--error .tox-form__group h2{color:#fff}.tox .tox-dialog__body-content .accessibility-issue--error .tox-icon svg{fill:#fff}.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon{background-color:#f2bfbf;color:#222f3e}.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:focus,.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:hover{background-color:#e9a4a4;color:#222f3e}.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:active{background-color:#ee9494;color:#222f3e}.tox .tox-dialog__body-content .accessibility-issue--success .accessibility-issue__description{background-color:rgba(120,171,70,.5);color:#fff}.tox .tox-dialog__body-content .accessibility-issue--success .accessibility-issue__description>:last-child{display:none}.tox .tox-dialog__body-content .accessibility-issue--success .tox-form__group h2{color:#fff}.tox .tox-dialog__body-content .accessibility-issue--success .tox-icon svg{fill:#fff}.tox .tox-dialog__body-content .accessibility-issue__header .tox-form__group h1,.tox .tox-dialog__body-content .tox-form__group .accessibility-issue__description h2{font-size:14px;margin-top:0}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__header .tox-button{margin-left:4px}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__header>:nth-last-child(2){margin-left:auto}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__description{padding:4px 4px 4px 8px}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__header .tox-button{margin-right:4px}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__header>:nth-last-child(2){margin-right:auto}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__description{padding:4px 8px 4px 4px}.tox .tox-advtemplate .tox-form__grid{flex:1}.tox .tox-advtemplate .tox-form__grid>div:first-child{display:flex;flex-direction:column;width:30%}.tox .tox-advtemplate .tox-form__grid>div:first-child>div:nth-child(2){flex-basis:0;flex-grow:1;overflow:auto}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox .tox-advtemplate .tox-form__grid>div:first-child{width:100%}}.tox .tox-advtemplate iframe{border-color:#161f29;border-radius:10px;border-style:solid;border-width:1px;margin:0 10px}.tox .tox-anchorbar{display:flex;flex:0 0 auto}.tox .tox-bottom-anchorbar{display:flex;flex:0 0 auto}.tox .tox-bar{display:flex;flex:0 0 auto}.tox .tox-button{background-color:#006ce7;background-image:none;background-position:0 0;background-repeat:repeat;border-color:#006ce7;border-radius:6px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#fff;cursor:pointer;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:14px;font-style:normal;font-weight:700;letter-spacing:normal;line-height:24px;margin:0;outline:0;padding:4px 16px;position:relative;text-align:center;text-decoration:none;text-transform:none;white-space:nowrap}.tox .tox-button::before{border-radius:6px;bottom:-1px;box-shadow:inset 0 0 0 2px #fff,0 0 0 1px #006ce7,0 0 0 3px rgba(0,108,231,.25);content:'';left:-1px;opacity:0;pointer-events:none;position:absolute;right:-1px;top:-1px}.tox .tox-button[disabled]{background-color:#006ce7;background-image:none;border-color:#006ce7;box-shadow:none;color:rgba(255,255,255,.5);cursor:not-allowed}.tox .tox-button:focus:not(:disabled){background-color:#0060ce;background-image:none;border-color:#0060ce;box-shadow:none;color:#fff}.tox .tox-button:focus-visible:not(:disabled)::before{opacity:1}.tox .tox-button:hover:not(:disabled){background-color:#0060ce;background-image:none;border-color:#0060ce;box-shadow:none;color:#fff}.tox .tox-button:active:not(:disabled){background-color:#0054b4;background-image:none;border-color:#0054b4;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled{background-color:#0054b4;background-image:none;border-color:#0054b4;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled[disabled]{background-color:#0054b4;background-image:none;border-color:#0054b4;box-shadow:none;color:rgba(255,255,255,.5);cursor:not-allowed}.tox .tox-button.tox-button--enabled:focus:not(:disabled){background-color:#00489b;background-image:none;border-color:#00489b;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled:hover:not(:disabled){background-color:#00489b;background-image:none;border-color:#00489b;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled:active:not(:disabled){background-color:#003c81;background-image:none;border-color:#003c81;box-shadow:none;color:#fff}.tox .tox-button--icon-and-text,.tox .tox-button.tox-button--icon-and-text,.tox .tox-button.tox-button--secondary.tox-button--icon-and-text{display:flex;padding:5px 4px}.tox .tox-button--icon-and-text .tox-icon svg,.tox .tox-button.tox-button--icon-and-text .tox-icon svg,.tox .tox-button.tox-button--secondary.tox-button--icon-and-text .tox-icon svg{display:block;fill:currentColor}.tox .tox-button--secondary{background-color:#3d546f;background-image:none;background-position:0 0;background-repeat:repeat;border-color:#3d546f;border-radius:6px;border-style:solid;border-width:1px;box-shadow:none;color:#fff;font-size:14px;font-style:normal;font-weight:700;letter-spacing:normal;outline:0;padding:4px 16px;text-decoration:none;text-transform:none}.tox .tox-button--secondary[disabled]{background-color:#3d546f;background-image:none;border-color:#3d546f;box-shadow:none;color:rgba(255,255,255,.5)}.tox .tox-button--secondary:focus:not(:disabled){background-color:#34485f;background-image:none;border-color:#34485f;box-shadow:none;color:#fff}.tox .tox-button--secondary:hover:not(:disabled){background-color:#34485f;background-image:none;border-color:#34485f;box-shadow:none;color:#fff}.tox .tox-button--secondary:active:not(:disabled){background-color:#2b3b4e;background-image:none;border-color:#2b3b4e;box-shadow:none;color:#fff}.tox .tox-button--secondary.tox-button--enabled{background-color:#2b5c93;background-image:none;border-color:#2b5c93;box-shadow:none;color:#fff}.tox .tox-button--secondary.tox-button--enabled[disabled]{background-color:#2b5c93;background-image:none;border-color:#2b5c93;box-shadow:none;color:rgba(255,255,255,.5)}.tox .tox-button--secondary.tox-button--enabled:focus:not(:disabled){background-color:#254f80;background-image:none;border-color:#254f80;box-shadow:none;color:#fff}.tox .tox-button--secondary.tox-button--enabled:hover:not(:disabled){background-color:#254f80;background-image:none;border-color:#254f80;box-shadow:none;color:#fff}.tox .tox-button--secondary.tox-button--enabled:active:not(:disabled){background-color:#1f436c;background-image:none;border-color:#1f436c;box-shadow:none;color:#fff}.tox .tox-button--icon,.tox .tox-button.tox-button--icon,.tox .tox-button.tox-button--secondary.tox-button--icon{padding:4px}.tox .tox-button--icon .tox-icon svg,.tox .tox-button.tox-button--icon .tox-icon svg,.tox .tox-button.tox-button--secondary.tox-button--icon .tox-icon svg{display:block;fill:currentColor}.tox .tox-button-link{background:0;border:none;box-sizing:border-box;cursor:pointer;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:16px;font-weight:400;line-height:1.3;margin:0;padding:0;white-space:nowrap}.tox .tox-button-link--sm{font-size:14px}.tox .tox-button--naked{background-color:transparent;border-color:transparent;box-shadow:unset;color:#fff}.tox .tox-button--naked[disabled]{background-color:rgba(255,255,255,.2);border-color:transparent;box-shadow:unset;color:rgba(255,255,255,.5)}.tox .tox-button--naked:hover:not(:disabled){background-color:rgba(255,255,255,.2);border-color:transparent;box-shadow:unset;color:#fff}.tox .tox-button--naked:focus:not(:disabled){background-color:rgba(255,255,255,.2);border-color:transparent;box-shadow:unset;color:#fff}.tox .tox-button--naked:active:not(:disabled){background-color:rgba(255,255,255,.3);border-color:transparent;box-shadow:unset;color:#fff}.tox .tox-button--naked .tox-icon svg{fill:currentColor}.tox .tox-button--naked.tox-button--icon:hover:not(:disabled){color:#fff}.tox .tox-checkbox{align-items:center;border-radius:6px;cursor:pointer;display:flex;height:36px;min-width:36px}.tox .tox-checkbox__input{height:1px;overflow:hidden;position:absolute;top:auto;width:1px}.tox .tox-checkbox__icons{align-items:center;border-radius:6px;box-shadow:0 0 0 2px transparent;box-sizing:content-box;display:flex;height:24px;justify-content:center;padding:calc(4px - 1px);width:24px}.tox .tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:block;fill:rgba(255,255,255,.2)}.tox .tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{display:none;fill:#006ce7}.tox .tox-checkbox__icons .tox-checkbox-icon__checked svg{display:none;fill:#006ce7}.tox .tox-checkbox--disabled{color:rgba(255,255,255,.5);cursor:not-allowed}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__checked svg{fill:rgba(255,255,255,.5)}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__unchecked svg{fill:rgba(255,255,255,.5)}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{fill:rgba(255,255,255,.5)}.tox input.tox-checkbox__input:checked+.tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:none}.tox input.tox-checkbox__input:checked+.tox-checkbox__icons .tox-checkbox-icon__checked svg{display:block}.tox input.tox-checkbox__input:indeterminate+.tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:none}.tox input.tox-checkbox__input:indeterminate+.tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{display:block}.tox input.tox-checkbox__input:focus+.tox-checkbox__icons{border-radius:6px;box-shadow:inset 0 0 0 1px #006ce7;padding:calc(4px - 1px)}.tox:not([dir=rtl]) .tox-checkbox__label{margin-left:4px}.tox:not([dir=rtl]) .tox-checkbox__input{left:-10000px}.tox:not([dir=rtl]) .tox-bar .tox-checkbox{margin-left:4px}.tox[dir=rtl] .tox-checkbox__label{margin-right:4px}.tox[dir=rtl] .tox-checkbox__input{right:-10000px}.tox[dir=rtl] .tox-bar .tox-checkbox{margin-right:4px}.tox .tox-collection--toolbar .tox-collection__group{display:flex;padding:0}.tox .tox-collection--grid .tox-collection__group{display:flex;flex-wrap:wrap;max-height:208px;overflow-x:hidden;overflow-y:auto;padding:0}.tox .tox-collection--list .tox-collection__group{border-bottom-width:0;border-color:rgba(255,255,255,.15);border-left-width:0;border-right-width:0;border-style:solid;border-top-width:1px;padding:4px 0}.tox .tox-collection--list .tox-collection__group:first-child{border-top-width:0}.tox .tox-collection__group-heading{background-color:rgba(255,255,255,.15);color:rgba(255,255,255,.5);cursor:default;font-size:12px;font-style:normal;font-weight:400;margin-bottom:4px;margin-top:-4px;padding:4px 8px;text-transform:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.tox .tox-collection__item{align-items:center;border-radius:3px;color:#fff;display:flex;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.tox .tox-collection--list .tox-collection__item{padding:4px 8px}.tox .tox-collection--toolbar .tox-collection__item{border-radius:3px;padding:4px}.tox .tox-collection--grid .tox-collection__item{border-radius:3px;padding:4px}.tox .tox-collection--list .tox-collection__item--enabled{background-color:#2b3b4e;color:#fff}.tox .tox-collection--list .tox-collection__item--active{background-color:#3389ec}.tox .tox-collection--toolbar .tox-collection__item--enabled{background-color:#599fef;color:#fff}.tox .tox-collection--toolbar .tox-collection__item--active{background-color:#3389ec}.tox .tox-collection--grid .tox-collection__item--enabled{background-color:#599fef;color:#fff}.tox .tox-collection--grid .tox-collection__item--active:not(.tox-collection__item--state-disabled){background-color:#3389ec;color:#fff}.tox .tox-collection--list .tox-collection__item--active:not(.tox-collection__item--state-disabled){color:#fff}.tox .tox-collection--toolbar .tox-collection__item--active:not(.tox-collection__item--state-disabled){color:#fff}.tox .tox-collection__item-checkmark,.tox .tox-collection__item-icon{align-items:center;display:flex;height:24px;justify-content:center;width:24px}.tox .tox-collection__item-checkmark svg,.tox .tox-collection__item-icon svg{fill:currentColor}.tox .tox-collection--toolbar-lg .tox-collection__item-icon{height:48px;width:48px}.tox .tox-collection__item-label{color:currentColor;display:inline-block;flex:1;font-size:14px;font-style:normal;font-weight:400;line-height:24px;max-width:100%;text-transform:none;word-break:break-all}.tox .tox-collection__item-accessory{color:rgba(255,255,255,.5);display:inline-block;font-size:14px;height:24px;line-height:24px;text-transform:none}.tox .tox-collection__item-caret{align-items:center;display:flex;min-height:24px}.tox .tox-collection__item-caret::after{content:'';font-size:0;min-height:inherit}.tox .tox-collection__item-caret svg{fill:#fff}.tox .tox-collection__item--state-disabled{background-color:transparent;color:rgba(255,255,255,.5);cursor:not-allowed}.tox .tox-collection__item--state-disabled .tox-collection__item-caret svg{fill:rgba(255,255,255,.5)}.tox .tox-collection--list .tox-collection__item:not(.tox-collection__item--enabled) .tox-collection__item-checkmark svg{display:none}.tox .tox-collection--list .tox-collection__item:not(.tox-collection__item--enabled) .tox-collection__item-accessory+.tox-collection__item-checkmark{display:none}.tox .tox-collection--horizontal{background-color:#2b3b4e;border:1px solid rgba(255,255,255,.15);border-radius:6px;box-shadow:0 0 2px 0 rgba(34,47,62,.2),0 4px 8px 0 rgba(34,47,62,.15);display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:nowrap;margin-bottom:0;overflow-x:auto;padding:0}.tox .tox-collection--horizontal .tox-collection__group{align-items:center;display:flex;flex-wrap:nowrap;margin:0;padding:0 4px}.tox .tox-collection--horizontal .tox-collection__item{height:28px;margin:6px 1px 5px 0;padding:0 4px}.tox .tox-collection--horizontal .tox-collection__item-label{white-space:nowrap}.tox .tox-collection--horizontal .tox-collection__item-caret{margin-left:4px}.tox .tox-collection__item-container{display:flex}.tox .tox-collection__item-container--row{align-items:center;flex:1 1 auto;flex-direction:row}.tox .tox-collection__item-container--row.tox-collection__item-container--align-left{margin-right:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--align-right{justify-content:flex-end;margin-left:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-top{align-items:flex-start;margin-bottom:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-middle{align-items:center}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-bottom{align-items:flex-end;margin-top:auto}.tox .tox-collection__item-container--column{align-self:center;flex:1 1 auto;flex-direction:column}.tox .tox-collection__item-container--column.tox-collection__item-container--align-left{align-items:flex-start}.tox .tox-collection__item-container--column.tox-collection__item-container--align-right{align-items:flex-end}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-top{align-self:flex-start}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-middle{align-self:center}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-bottom{align-self:flex-end}.tox:not([dir=rtl]) .tox-collection--horizontal .tox-collection__group:not(:last-of-type){border-right:1px solid transparent}.tox:not([dir=rtl]) .tox-collection--list .tox-collection__item>:not(:first-child){margin-left:8px}.tox:not([dir=rtl]) .tox-collection--list .tox-collection__item>.tox-collection__item-label:first-child{margin-left:4px}.tox:not([dir=rtl]) .tox-collection__item-accessory{margin-left:16px;text-align:right}.tox:not([dir=rtl]) .tox-collection .tox-collection__item-caret{margin-left:16px}.tox[dir=rtl] .tox-collection--horizontal .tox-collection__group:not(:last-of-type){border-left:1px solid transparent}.tox[dir=rtl] .tox-collection--list .tox-collection__item>:not(:first-child){margin-right:8px}.tox[dir=rtl] .tox-collection--list .tox-collection__item>.tox-collection__item-label:first-child{margin-right:4px}.tox[dir=rtl] .tox-collection__item-accessory{margin-right:16px;text-align:left}.tox[dir=rtl] .tox-collection .tox-collection__item-caret{margin-right:16px;transform:rotateY(180deg)}.tox[dir=rtl] .tox-collection--horizontal .tox-collection__item-caret{margin-right:4px}.tox .tox-color-picker-container{display:flex;flex-direction:row;height:225px;margin:0}.tox .tox-sv-palette{box-sizing:border-box;display:flex;height:100%}.tox .tox-sv-palette-spectrum{height:100%}.tox .tox-sv-palette,.tox .tox-sv-palette-spectrum{width:225px}.tox .tox-sv-palette-thumb{background:0 0;border:1px solid #000;border-radius:50%;box-sizing:content-box;height:12px;position:absolute;width:12px}.tox .tox-sv-palette-inner-thumb{border:1px solid #fff;border-radius:50%;height:10px;position:absolute;width:10px}.tox .tox-hue-slider{box-sizing:border-box;height:100%;width:25px}.tox .tox-hue-slider-spectrum{background:linear-gradient(to bottom,red,#ff0080,#f0f,#8000ff,#00f,#0080ff,#0ff,#00ff80,#0f0,#80ff00,#ff0,#ff8000,red);height:100%;width:100%}.tox .tox-hue-slider,.tox .tox-hue-slider-spectrum{width:20px}.tox .tox-hue-slider-spectrum:focus,.tox .tox-sv-palette-spectrum:focus{outline:#08f solid}.tox .tox-hue-slider-thumb{background:#fff;border:1px solid #000;box-sizing:content-box;height:4px;width:100%}.tox .tox-rgb-form{display:flex;flex-direction:column;justify-content:space-between}.tox .tox-rgb-form div{align-items:center;display:flex;justify-content:space-between;margin-bottom:5px;width:inherit}.tox .tox-rgb-form input{width:6em}.tox .tox-rgb-form input.tox-invalid{border:1px solid red!important}.tox .tox-rgb-form .tox-rgba-preview{border:1px solid #000;flex-grow:2;margin-bottom:0}.tox:not([dir=rtl]) .tox-sv-palette{margin-right:15px}.tox:not([dir=rtl]) .tox-hue-slider{margin-right:15px}.tox:not([dir=rtl]) .tox-hue-slider-thumb{margin-left:-1px}.tox:not([dir=rtl]) .tox-rgb-form label{margin-right:.5em}.tox[dir=rtl] .tox-sv-palette{margin-left:15px}.tox[dir=rtl] .tox-hue-slider{margin-left:15px}.tox[dir=rtl] .tox-hue-slider-thumb{margin-right:-1px}.tox[dir=rtl] .tox-rgb-form label{margin-left:.5em}.tox .tox-toolbar .tox-swatches,.tox .tox-toolbar__overflow .tox-swatches,.tox .tox-toolbar__primary .tox-swatches{margin:5px 0 6px 11px}.tox .tox-collection--list .tox-collection__group .tox-swatches-menu{border:0;margin:-4px -4px}.tox .tox-swatches__row{display:flex}.tox .tox-swatch{height:30px;transition:transform .15s,box-shadow .15s;width:30px}.tox .tox-swatch:focus,.tox .tox-swatch:hover{box-shadow:0 0 0 1px rgba(127,127,127,.3) inset;transform:scale(.8)}.tox .tox-swatch--remove{align-items:center;display:flex;justify-content:center}.tox .tox-swatch--remove svg path{stroke:#e74c3c}.tox .tox-swatches__picker-btn{align-items:center;background-color:transparent;border:0;cursor:pointer;display:flex;height:30px;justify-content:center;outline:0;padding:0;width:30px}.tox .tox-swatches__picker-btn svg{fill:#fff;height:24px;width:24px}.tox .tox-swatches__picker-btn:hover{background:#3389ec}.tox div.tox-swatch:not(.tox-swatch--remove) svg{display:none;fill:#fff;height:24px;margin:calc((30px - 24px)/ 2) calc((30px - 24px)/ 2);width:24px}.tox div.tox-swatch:not(.tox-swatch--remove) svg path{fill:#fff;paint-order:stroke;stroke:#222f3e;stroke-width:2px}.tox div.tox-swatch:not(.tox-swatch--remove).tox-collection__item--enabled svg{display:block}.tox:not([dir=rtl]) .tox-swatches__picker-btn{margin-left:auto}.tox[dir=rtl] .tox-swatches__picker-btn{margin-right:auto}.tox .tox-comment-thread{background:#2b3b4e;position:relative}.tox .tox-comment-thread>:not(:first-child){margin-top:8px}.tox .tox-comment{background:#2b3b4e;border:1px solid #161f29;border-radius:6px;box-shadow:0 4px 8px 0 rgba(34,47,62,.1);padding:8px 8px 16px 8px;position:relative}.tox .tox-comment__header{align-items:center;color:#fff;display:flex;justify-content:space-between}.tox .tox-comment__date{color:#fff;font-size:12px;line-height:18px}.tox .tox-comment__body{color:#fff;font-size:14px;font-style:normal;font-weight:400;line-height:1.3;margin-top:8px;position:relative;text-transform:initial}.tox .tox-comment__body textarea{resize:none;white-space:normal;width:100%}.tox .tox-comment__expander{padding-top:8px}.tox .tox-comment__expander p{color:rgba(255,255,255,.5);font-size:14px;font-style:normal}.tox .tox-comment__body p{margin:0}.tox .tox-comment__buttonspacing{padding-top:16px;text-align:center}.tox .tox-comment-thread__overlay::after{background:#2b3b4e;bottom:0;content:"";display:flex;left:0;opacity:.9;position:absolute;right:0;top:0;z-index:5}.tox .tox-comment__reply{display:flex;flex-shrink:0;flex-wrap:wrap;justify-content:flex-end;margin-top:8px}.tox .tox-comment__reply>:first-child{margin-bottom:8px;width:100%}.tox .tox-comment__edit{display:flex;flex-wrap:wrap;justify-content:flex-end;margin-top:16px}.tox .tox-comment__gradient::after{background:linear-gradient(rgba(43,59,78,0),#2b3b4e);bottom:0;content:"";display:block;height:5em;margin-top:-40px;position:absolute;width:100%}.tox .tox-comment__overlay{background:#2b3b4e;bottom:0;display:flex;flex-direction:column;flex-grow:1;left:0;opacity:.9;position:absolute;right:0;text-align:center;top:0;z-index:5}.tox .tox-comment__loading-text{align-items:center;color:#fff;display:flex;flex-direction:column;position:relative}.tox .tox-comment__loading-text>div{padding-bottom:16px}.tox .tox-comment__overlaytext{bottom:0;flex-direction:column;font-size:14px;left:0;padding:1em;position:absolute;right:0;top:0;z-index:10}.tox .tox-comment__overlaytext p{background-color:#2b3b4e;box-shadow:0 0 8px 8px #2b3b4e;color:#fff;text-align:center}.tox .tox-comment__overlaytext div:nth-of-type(2){font-size:.8em}.tox .tox-comment__busy-spinner{align-items:center;background-color:#2b3b4e;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:20}.tox .tox-comment__scroll{display:flex;flex-direction:column;flex-shrink:1;overflow:auto}.tox .tox-conversations{margin:8px}.tox:not([dir=rtl]) .tox-comment__edit{margin-left:8px}.tox:not([dir=rtl]) .tox-comment__buttonspacing>:last-child,.tox:not([dir=rtl]) .tox-comment__edit>:last-child,.tox:not([dir=rtl]) .tox-comment__reply>:last-child{margin-left:8px}.tox[dir=rtl] .tox-comment__edit{margin-right:8px}.tox[dir=rtl] .tox-comment__buttonspacing>:last-child,.tox[dir=rtl] .tox-comment__edit>:last-child,.tox[dir=rtl] .tox-comment__reply>:last-child{margin-right:8px}.tox .tox-user{align-items:center;display:flex}.tox .tox-user__avatar svg{fill:rgba(255,255,255,.5)}.tox .tox-user__avatar img{border-radius:50%;height:36px;object-fit:cover;vertical-align:middle;width:36px}.tox .tox-user__name{color:#fff;font-size:14px;font-style:normal;font-weight:700;line-height:18px;text-transform:none}.tox:not([dir=rtl]) .tox-user__avatar img,.tox:not([dir=rtl]) .tox-user__avatar svg{margin-right:8px}.tox:not([dir=rtl]) .tox-user__avatar+.tox-user__name{margin-left:8px}.tox[dir=rtl] .tox-user__avatar img,.tox[dir=rtl] .tox-user__avatar svg{margin-left:8px}.tox[dir=rtl] .tox-user__avatar+.tox-user__name{margin-right:8px}.tox .tox-dialog-wrap{align-items:center;bottom:0;display:flex;justify-content:center;left:0;position:fixed;right:0;top:0;z-index:1100}.tox .tox-dialog-wrap__backdrop{background-color:rgba(34,47,62,.75);bottom:0;left:0;position:absolute;right:0;top:0;z-index:1}.tox .tox-dialog-wrap__backdrop--opaque{background-color:#222f3e}.tox .tox-dialog{background-color:#2b3b4e;border-color:#161f29;border-radius:10px;border-style:solid;border-width:0;box-shadow:0 16px 16px -10px rgba(34,47,62,.15),0 0 40px 1px rgba(34,47,62,.15);display:flex;flex-direction:column;max-height:100%;max-width:480px;overflow:hidden;position:relative;width:95vw;z-index:2}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox .tox-dialog{align-self:flex-start;margin:8px auto;max-height:calc(100vh - 8px * 2);width:calc(100vw - 16px)}}.tox .tox-dialog-inline{z-index:1100}.tox .tox-dialog__header{align-items:center;background-color:#2b3b4e;border-bottom:none;color:#fff;display:flex;font-size:16px;justify-content:space-between;padding:8px 16px 0 16px;position:relative}.tox .tox-dialog__header .tox-button{z-index:1}.tox .tox-dialog__draghandle{cursor:grab;height:100%;left:0;position:absolute;top:0;width:100%}.tox .tox-dialog__draghandle:active{cursor:grabbing}.tox .tox-dialog__dismiss{margin-left:auto}.tox .tox-dialog__title{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:20px;font-style:normal;font-weight:400;line-height:1.3;margin:0;text-transform:none}.tox .tox-dialog__body{color:#fff;display:flex;flex:1;font-size:16px;font-style:normal;font-weight:400;line-height:1.3;min-width:0;text-align:left;text-transform:none}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox .tox-dialog__body{flex-direction:column}}.tox .tox-dialog__body-nav{align-items:flex-start;display:flex;flex-direction:column;flex-shrink:0;padding:16px 16px}@media only screen and (min-width:768px){.tox .tox-dialog__body-nav{max-width:11em}}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox .tox-dialog__body-nav{flex-direction:row;-webkit-overflow-scrolling:touch;overflow-x:auto;padding-bottom:0}}.tox .tox-dialog__body-nav-item{border-bottom:2px solid transparent;color:rgba(255,255,255,.5);display:inline-block;flex-shrink:0;font-size:14px;line-height:1.3;margin-bottom:8px;max-width:13em;text-decoration:none}.tox .tox-dialog__body-nav-item:focus{background-color:rgba(0,108,231,.1)}.tox .tox-dialog__body-nav-item--active{border-bottom:2px solid #67aeff;color:#67aeff}.tox .tox-dialog__body-content{box-sizing:border-box;display:flex;flex:1;flex-direction:column;max-height:min(650px,calc(100vh - 110px));overflow:auto;-webkit-overflow-scrolling:touch;padding:16px 16px}.tox .tox-dialog__body-content>*{margin-bottom:0;margin-top:16px}.tox .tox-dialog__body-content>:first-child{margin-top:0}.tox .tox-dialog__body-content>:last-child{margin-bottom:0}.tox .tox-dialog__body-content>:only-child{margin-bottom:0;margin-top:0}.tox .tox-dialog__body-content a{color:#67aeff;cursor:pointer;text-decoration:underline}.tox .tox-dialog__body-content a:focus,.tox .tox-dialog__body-content a:hover{color:#cde5ff;text-decoration:underline}.tox .tox-dialog__body-content a:focus-visible{border-radius:1px;outline:2px solid #67aeff;outline-offset:2px}.tox .tox-dialog__body-content a:active{color:#fff;text-decoration:underline}.tox .tox-dialog__body-content svg{fill:#fff}.tox .tox-dialog__body-content strong{font-weight:700}.tox .tox-dialog__body-content ul{list-style-type:disc}.tox .tox-dialog__body-content dd,.tox .tox-dialog__body-content ol,.tox .tox-dialog__body-content ul{padding-inline-start:2.5rem}.tox .tox-dialog__body-content dl,.tox .tox-dialog__body-content ol,.tox .tox-dialog__body-content ul{margin-bottom:16px}.tox .tox-dialog__body-content dd,.tox .tox-dialog__body-content dl,.tox .tox-dialog__body-content dt,.tox .tox-dialog__body-content ol,.tox .tox-dialog__body-content ul{display:block;margin-inline-end:0;margin-inline-start:0}.tox .tox-dialog__body-content .tox-form__group h1{color:#fff;font-size:20px;font-style:normal;font-weight:700;letter-spacing:normal;margin-bottom:16px;margin-top:2rem;text-transform:none}.tox .tox-dialog__body-content .tox-form__group h2{color:#fff;font-size:16px;font-style:normal;font-weight:700;letter-spacing:normal;margin-bottom:16px;margin-top:2rem;text-transform:none}.tox .tox-dialog__body-content .tox-form__group p{margin-bottom:16px}.tox .tox-dialog__body-content .tox-form__group h1:first-child,.tox .tox-dialog__body-content .tox-form__group h2:first-child,.tox .tox-dialog__body-content .tox-form__group p:first-child{margin-top:0}.tox .tox-dialog__body-content .tox-form__group h1:last-child,.tox .tox-dialog__body-content .tox-form__group h2:last-child,.tox .tox-dialog__body-content .tox-form__group p:last-child{margin-bottom:0}.tox .tox-dialog__body-content .tox-form__group h1:only-child,.tox .tox-dialog__body-content .tox-form__group h2:only-child,.tox .tox-dialog__body-content .tox-form__group p:only-child{margin-bottom:0;margin-top:0}.tox .tox-dialog__body-content .tox-form__group .tox-label.tox-label--center{text-align:center}.tox .tox-dialog__body-content .tox-form__group .tox-label.tox-label--end{text-align:end}.tox .tox-dialog--width-lg{height:650px;max-width:1200px}.tox .tox-dialog--fullscreen{height:100%;max-width:100%}.tox .tox-dialog--fullscreen .tox-dialog__body-content{max-height:100%}.tox .tox-dialog--width-md{max-width:800px}.tox .tox-dialog--width-md .tox-dialog__body-content{overflow:auto}.tox .tox-dialog__body-content--centered{text-align:center}.tox .tox-dialog__footer{align-items:center;background-color:#2b3b4e;border-top:none;display:flex;justify-content:space-between;padding:8px 16px}.tox .tox-dialog__footer-end,.tox .tox-dialog__footer-start{display:flex}.tox .tox-dialog__busy-spinner{align-items:center;background-color:rgba(34,47,62,.75);bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:3}.tox .tox-dialog__table{border-collapse:collapse;width:100%}.tox .tox-dialog__table thead th{font-weight:700;padding-bottom:8px}.tox .tox-dialog__table thead th:first-child{padding-right:8px}.tox .tox-dialog__table tbody tr{border-bottom:1px solid #000}.tox .tox-dialog__table tbody tr:last-child{border-bottom:none}.tox .tox-dialog__table td{padding-bottom:8px;padding-top:8px}.tox .tox-dialog__table td:first-child{padding-right:8px}.tox .tox-dialog__iframe{min-height:200px}.tox .tox-dialog__iframe.tox-dialog__iframe--opaque{background:#fff}.tox .tox-navobj-bordered{position:relative}.tox .tox-navobj-bordered::before{border:1px solid #161f29;border-radius:6px;content:'';inset:0;opacity:1;pointer-events:none;position:absolute;z-index:1}.tox .tox-navobj-bordered-focus.tox-navobj-bordered::before{border-color:#006ce7;box-shadow:0 0 0 2px rgba(0,108,231,.25);outline:0}.tox .tox-dialog__popups{position:absolute;width:100%;z-index:1100}.tox .tox-dialog__body-iframe{display:flex;flex:1;flex-direction:column}.tox .tox-dialog__body-iframe .tox-navobj{display:flex;flex:1}.tox .tox-dialog__body-iframe .tox-navobj :nth-child(2){flex:1;height:100%}.tox .tox-dialog-dock-fadeout{opacity:0;visibility:hidden}.tox .tox-dialog-dock-fadein{opacity:1;visibility:visible}.tox .tox-dialog-dock-transition{transition:visibility 0s linear .3s,opacity .3s ease}.tox .tox-dialog-dock-transition.tox-dialog-dock-fadein{transition-delay:0s}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox:not([dir=rtl]) .tox-dialog__body-nav{margin-right:0}}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox:not([dir=rtl]) .tox-dialog__body-nav-item:not(:first-child){margin-left:8px}}.tox:not([dir=rtl]) .tox-dialog__footer .tox-dialog__footer-end>*,.tox:not([dir=rtl]) .tox-dialog__footer .tox-dialog__footer-start>*{margin-left:8px}.tox[dir=rtl] .tox-dialog__body{text-align:right}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox[dir=rtl] .tox-dialog__body-nav{margin-left:0}}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox[dir=rtl] .tox-dialog__body-nav-item:not(:first-child){margin-right:8px}}.tox[dir=rtl] .tox-dialog__footer .tox-dialog__footer-end>*,.tox[dir=rtl] .tox-dialog__footer .tox-dialog__footer-start>*{margin-right:8px}body.tox-dialog__disable-scroll{overflow:hidden}.tox .tox-dropzone-container{display:flex;flex:1}.tox .tox-dropzone{align-items:center;background:#fff;border:2px dashed #161f29;box-sizing:border-box;display:flex;flex-direction:column;flex-grow:1;justify-content:center;min-height:100px;padding:10px}.tox .tox-dropzone p{color:rgba(255,255,255,.5);margin:0 0 16px 0}.tox .tox-edit-area{display:flex;flex:1;overflow:hidden;position:relative}.tox .tox-edit-area::before{border:2px solid #fff;border-radius:4px;content:'';inset:0;opacity:0;pointer-events:none;position:absolute;transition:opacity .15s;z-index:1}.tox .tox-edit-area__iframe{background-color:#fff;border:0;box-sizing:border-box;flex:1;height:100%;position:absolute;width:100%}.tox.tox-edit-focus .tox-edit-area::before{opacity:1}.tox.tox-inline-edit-area{border:1px dotted #161f29}.tox .tox-editor-container{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.tox .tox-editor-header{display:grid;grid-template-columns:1fr min-content;z-index:2}.tox:not(.tox-tinymce-inline) .tox-editor-header{background-color:#222f3e;border-bottom:1px solid rgba(255,255,255,.15);box-shadow:none;padding:4px 0}.tox:not(.tox-tinymce-inline) .tox-editor-header:not(.tox-editor-dock-transition){transition:box-shadow .5s}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-bottom .tox-editor-header{border-top:1px solid rgba(255,255,255,.15);box-shadow:none}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-sticky-on .tox-editor-header{background-color:#222f3e;box-shadow:none;padding:4px 0}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-sticky-on.tox-tinymce--toolbar-bottom .tox-editor-header{box-shadow:none}.tox.tox:not(.tox-tinymce-inline) .tox-editor-header.tox-editor-header--empty{background:0 0;border:none;box-shadow:none;padding:0}.tox-editor-dock-fadeout{opacity:0;visibility:hidden}.tox-editor-dock-fadein{opacity:1;visibility:visible}.tox-editor-dock-transition{transition:visibility 0s linear .25s,opacity .25s ease}.tox-editor-dock-transition.tox-editor-dock-fadein{transition-delay:0s}.tox .tox-control-wrap{flex:1;position:relative}.tox .tox-control-wrap:not(.tox-control-wrap--status-invalid) .tox-control-wrap__status-icon-invalid,.tox .tox-control-wrap:not(.tox-control-wrap--status-unknown) .tox-control-wrap__status-icon-unknown,.tox .tox-control-wrap:not(.tox-control-wrap--status-valid) .tox-control-wrap__status-icon-valid{display:none}.tox .tox-control-wrap svg{display:block}.tox .tox-control-wrap__status-icon-wrap{position:absolute;top:50%;transform:translateY(-50%)}.tox .tox-control-wrap__status-icon-invalid svg{fill:#c00}.tox .tox-control-wrap__status-icon-unknown svg{fill:orange}.tox .tox-control-wrap__status-icon-valid svg{fill:green}.tox:not([dir=rtl]) .tox-control-wrap--status-invalid .tox-textfield,.tox:not([dir=rtl]) .tox-control-wrap--status-unknown .tox-textfield,.tox:not([dir=rtl]) .tox-control-wrap--status-valid .tox-textfield{padding-right:32px}.tox:not([dir=rtl]) .tox-control-wrap__status-icon-wrap{right:4px}.tox[dir=rtl] .tox-control-wrap--status-invalid .tox-textfield,.tox[dir=rtl] .tox-control-wrap--status-unknown .tox-textfield,.tox[dir=rtl] .tox-control-wrap--status-valid .tox-textfield{padding-left:32px}.tox[dir=rtl] .tox-control-wrap__status-icon-wrap{left:4px}.tox .tox-autocompleter{max-width:25em}.tox .tox-autocompleter .tox-menu{box-sizing:border-box;max-width:25em}.tox .tox-autocompleter .tox-autocompleter-highlight{font-weight:700}.tox .tox-color-input{display:flex;position:relative;z-index:1}.tox .tox-color-input .tox-textfield{z-index:-1}.tox .tox-color-input span{border-color:rgba(34,47,62,.2);border-radius:6px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;height:24px;position:absolute;top:6px;width:24px}.tox .tox-color-input span:focus:not([aria-disabled=true]),.tox .tox-color-input span:hover:not([aria-disabled=true]){border-color:#006ce7;cursor:pointer}.tox .tox-color-input span::before{background-image:linear-gradient(45deg,rgba(255,255,255,.25) 25%,transparent 25%),linear-gradient(-45deg,rgba(255,255,255,.25) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,rgba(255,255,255,.25) 75%),linear-gradient(-45deg,transparent 75%,rgba(255,255,255,.25) 75%);background-position:0 0,0 6px,6px -6px,-6px 0;background-size:12px 12px;border:1px solid #2b3b4e;border-radius:6px;box-sizing:border-box;content:'';height:24px;left:-1px;position:absolute;top:-1px;width:24px;z-index:-1}.tox .tox-color-input span[aria-disabled=true]{cursor:not-allowed}.tox:not([dir=rtl]) .tox-color-input .tox-textfield{padding-left:36px}.tox:not([dir=rtl]) .tox-color-input span{left:6px}.tox[dir=rtl] .tox-color-input .tox-textfield{padding-right:36px}.tox[dir=rtl] .tox-color-input span{right:6px}.tox .tox-label,.tox .tox-toolbar-label{color:rgba(255,255,255,.5);display:block;font-size:14px;font-style:normal;font-weight:400;line-height:1.3;padding:0 8px 0 0;text-transform:none;white-space:nowrap}.tox .tox-toolbar-label{padding:0 8px}.tox[dir=rtl] .tox-label{padding:0 0 0 8px}.tox .tox-form{display:flex;flex:1;flex-direction:column}.tox .tox-form__group{box-sizing:border-box;margin-bottom:4px}.tox .tox-form-group--maximize{flex:1}.tox .tox-form__group--error{color:#c00}.tox .tox-form__group--collection{display:flex}.tox .tox-form__grid{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between}.tox .tox-form__grid--2col>.tox-form__group{width:calc(50% - (8px / 2))}.tox .tox-form__grid--3col>.tox-form__group{width:calc(100% / 3 - (8px / 2))}.tox .tox-form__grid--4col>.tox-form__group{width:calc(25% - (8px / 2))}.tox .tox-form__controls-h-stack{align-items:center;display:flex}.tox .tox-form__group--inline{align-items:center;display:flex}.tox .tox-form__group--stretched{display:flex;flex:1;flex-direction:column}.tox .tox-form__group--stretched .tox-textarea{flex:1}.tox .tox-form__group--stretched .tox-navobj{display:flex;flex:1}.tox .tox-form__group--stretched .tox-navobj :nth-child(2){flex:1;height:100%}.tox:not([dir=rtl]) .tox-form__controls-h-stack>:not(:first-child){margin-left:4px}.tox[dir=rtl] .tox-form__controls-h-stack>:not(:first-child){margin-right:4px}.tox .tox-lock.tox-locked .tox-lock-icon__unlock,.tox .tox-lock:not(.tox-locked) .tox-lock-icon__lock{display:none}.tox .tox-listboxfield .tox-listbox--select,.tox .tox-textarea,.tox .tox-textarea-wrap .tox-textarea:focus,.tox .tox-textfield,.tox .tox-toolbar-textfield{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#2b3b4e;border-color:#161f29;border-radius:6px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#fff;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:16px;line-height:24px;margin:0;min-height:34px;outline:0;padding:5px 5.5px;resize:none;width:100%}.tox .tox-textarea[disabled],.tox .tox-textfield[disabled]{background-color:#222f3e;color:rgba(255,255,255,.85);cursor:not-allowed}.tox .tox-custom-editor:focus-within,.tox .tox-listboxfield .tox-listbox--select:focus,.tox .tox-textarea-wrap:focus-within,.tox .tox-textarea:focus,.tox .tox-textfield:focus{background-color:#2b3b4e;border-color:#006ce7;box-shadow:0 0 0 2px rgba(0,108,231,.25);outline:0}.tox .tox-toolbar-textfield{border-width:0;margin-bottom:3px;margin-top:2px;max-width:250px}.tox .tox-naked-btn{background-color:transparent;border:0;border-color:transparent;box-shadow:unset;color:#006ce7;cursor:pointer;display:block;margin:0;padding:0}.tox .tox-naked-btn svg{display:block;fill:#fff}.tox:not([dir=rtl]) .tox-toolbar-textfield+*{margin-left:4px}.tox[dir=rtl] .tox-toolbar-textfield+*{margin-right:4px}.tox .tox-listboxfield{cursor:pointer;position:relative}.tox .tox-listboxfield .tox-listbox--select[disabled]{background-color:#19232e;color:rgba(255,255,255,.85);cursor:not-allowed}.tox .tox-listbox__select-label{cursor:default;flex:1;margin:0 4px}.tox .tox-listbox__select-chevron{align-items:center;display:flex;justify-content:center;width:16px}.tox .tox-listbox__select-chevron svg{fill:#fff}.tox .tox-listboxfield .tox-listbox--select{align-items:center;display:flex}.tox:not([dir=rtl]) .tox-listboxfield svg{right:8px}.tox[dir=rtl] .tox-listboxfield svg{left:8px}.tox .tox-selectfield{cursor:pointer;position:relative}.tox .tox-selectfield select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#2b3b4e;border-color:#161f29;border-radius:6px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#fff;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:16px;line-height:24px;margin:0;min-height:34px;outline:0;padding:5px 5.5px;resize:none;width:100%}.tox .tox-selectfield select[disabled]{background-color:#19232e;color:rgba(255,255,255,.85);cursor:not-allowed}.tox .tox-selectfield select::-ms-expand{display:none}.tox .tox-selectfield select:focus{background-color:#2b3b4e;border-color:#006ce7;box-shadow:0 0 0 2px rgba(0,108,231,.25);outline:0}.tox .tox-selectfield svg{pointer-events:none;position:absolute;top:50%;transform:translateY(-50%)}.tox:not([dir=rtl]) .tox-selectfield select[size="0"],.tox:not([dir=rtl]) .tox-selectfield select[size="1"]{padding-right:24px}.tox:not([dir=rtl]) .tox-selectfield svg{right:8px}.tox[dir=rtl] .tox-selectfield select[size="0"],.tox[dir=rtl] .tox-selectfield select[size="1"]{padding-left:24px}.tox[dir=rtl] .tox-selectfield svg{left:8px}.tox .tox-textarea-wrap{border-color:#161f29;border-radius:6px;border-style:solid;border-width:1px;display:flex;flex:1;overflow:hidden}.tox .tox-textarea{-webkit-appearance:textarea;-moz-appearance:textarea;appearance:textarea;white-space:pre-wrap}.tox .tox-textarea-wrap .tox-textarea{border:none}.tox .tox-textarea-wrap .tox-textarea:focus{border:none}.tox-fullscreen{border:0;height:100%;margin:0;overflow:hidden;overscroll-behavior:none;padding:0;touch-action:pinch-zoom;width:100%}.tox.tox-tinymce.tox-fullscreen .tox-statusbar__resize-handle{display:none}.tox-shadowhost.tox-fullscreen,.tox.tox-tinymce.tox-fullscreen{left:0;position:fixed;top:0;z-index:1200}.tox.tox-tinymce.tox-fullscreen{background-color:transparent}.tox-fullscreen .tox.tox-tinymce-aux,.tox-fullscreen~.tox.tox-tinymce-aux{z-index:1201}.tox .tox-help__more-link{list-style:none;margin-top:1em}.tox .tox-imagepreview{background-color:#666;height:380px;overflow:hidden;position:relative;width:100%}.tox .tox-imagepreview.tox-imagepreview__loaded{overflow:auto}.tox .tox-imagepreview__container{display:flex;left:100vw;position:absolute;top:100vw}.tox .tox-imagepreview__image{background:url(data:image/gif;base64,R0lGODdhDAAMAIABAMzMzP///ywAAAAADAAMAAACFoQfqYeabNyDMkBQb81Uat85nxguUAEAOw==)}.tox .tox-image-tools .tox-spacer{flex:1}.tox .tox-image-tools .tox-bar{align-items:center;display:flex;height:60px;justify-content:center}.tox .tox-image-tools .tox-imagepreview,.tox .tox-image-tools .tox-imagepreview+.tox-bar{margin-top:8px}.tox .tox-image-tools .tox-croprect-block{background:#000;opacity:.5;position:absolute;zoom:1}.tox .tox-image-tools .tox-croprect-handle{border:2px solid #fff;height:20px;left:0;position:absolute;top:0;width:20px}.tox .tox-image-tools .tox-croprect-handle-move{border:0;cursor:move;position:absolute}.tox .tox-image-tools .tox-croprect-handle-nw{border-width:2px 0 0 2px;cursor:nw-resize;left:100px;margin:-2px 0 0 -2px;top:100px}.tox .tox-image-tools .tox-croprect-handle-ne{border-width:2px 2px 0 0;cursor:ne-resize;left:200px;margin:-2px 0 0 -20px;top:100px}.tox .tox-image-tools .tox-croprect-handle-sw{border-width:0 0 2px 2px;cursor:sw-resize;left:100px;margin:-20px 2px 0 -2px;top:200px}.tox .tox-image-tools .tox-croprect-handle-se{border-width:0 2px 2px 0;cursor:se-resize;left:200px;margin:-20px 0 0 -20px;top:200px}.tox .tox-insert-table-picker{display:flex;flex-wrap:wrap;width:170px}.tox .tox-insert-table-picker>div{border-color:rgba(255,255,255,.15);border-style:solid;border-width:0 1px 1px 0;box-sizing:border-box;height:17px;width:17px}.tox .tox-collection--list .tox-collection__group .tox-insert-table-picker{margin:-4px -4px}.tox .tox-insert-table-picker .tox-insert-table-picker__selected{background-color:rgba(0,108,231,.5);border-color:rgba(0,108,231,.5)}.tox .tox-insert-table-picker__label{color:#fff;display:block;font-size:14px;padding:4px;text-align:center;width:100%}.tox:not([dir=rtl]) .tox-insert-table-picker>div:nth-child(10n){border-right:0}.tox[dir=rtl] .tox-insert-table-picker>div:nth-child(10n+1){border-right:0}.tox .tox-menu{background-color:#2b3b4e;border:1px solid rgba(255,255,255,.15);border-radius:6px;box-shadow:none;display:inline-block;overflow:hidden;vertical-align:top;z-index:1150}.tox .tox-menu.tox-collection.tox-collection--list{padding:0 4px}.tox .tox-menu.tox-collection.tox-collection--toolbar{padding:8px}.tox .tox-menu.tox-collection.tox-collection--grid{padding:8px}@media only screen and (min-width:768px){.tox .tox-menu .tox-collection__item-label{overflow-wrap:break-word;word-break:normal}.tox .tox-dialog__popups .tox-menu .tox-collection__item-label{word-break:break-all}}.tox .tox-menu__label blockquote,.tox .tox-menu__label code,.tox .tox-menu__label h1,.tox .tox-menu__label h2,.tox .tox-menu__label h3,.tox .tox-menu__label h4,.tox .tox-menu__label h5,.tox .tox-menu__label h6,.tox .tox-menu__label p{margin:0}.tox .tox-menubar{background:repeating-linear-gradient(transparent 0 1px,transparent 1px 39px) center top 39px/100% calc(100% - 39px) no-repeat;background-color:#222f3e;display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:wrap;grid-column:1/-1;grid-row:1;padding:0 11px 0 12px}.tox .tox-promotion+.tox-menubar{grid-column:1}.tox .tox-promotion{background:repeating-linear-gradient(transparent 0 1px,transparent 1px 39px) center top 39px/100% calc(100% - 39px) no-repeat;background-color:#222f3e;grid-column:2;grid-row:1;padding-inline-end:8px;padding-inline-start:4px;padding-top:5px}.tox .tox-promotion-link{align-items:unsafe center;background-color:#e8f1f8;border-radius:5px;color:#086be6;cursor:pointer;display:flex;font-size:14px;height:26.6px;padding:4px 8px;white-space:nowrap}.tox .tox-promotion-link:hover{background-color:#b4d7ff}.tox .tox-promotion-link:focus{background-color:#d9edf7}.tox .tox-mbtn{align-items:center;background:0 0;border:0;border-radius:3px;box-shadow:none;color:#fff;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:400;height:28px;justify-content:center;margin:5px 1px 6px 0;outline:0;overflow:hidden;padding:0 4px;text-transform:none;width:auto}.tox .tox-mbtn[disabled]{background-color:transparent;border:0;box-shadow:none;color:rgba(255,255,255,.5);cursor:not-allowed}.tox .tox-mbtn:focus:not(:disabled){background:#3389ec;border:0;box-shadow:none;color:#fff}.tox .tox-mbtn--active{background:#599fef;border:0;box-shadow:none;color:#fff}.tox .tox-mbtn:hover:not(:disabled):not(.tox-mbtn--active){background:#3389ec;border:0;box-shadow:none;color:#fff}.tox .tox-mbtn__select-label{cursor:default;font-weight:400;margin:0 4px}.tox .tox-mbtn[disabled] .tox-mbtn__select-label{cursor:not-allowed}.tox .tox-mbtn__select-chevron{align-items:center;display:flex;justify-content:center;width:16px;display:none}.tox .tox-notification{border-radius:6px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;display:grid;font-size:14px;font-weight:400;grid-template-columns:minmax(40px,1fr) auto minmax(40px,1fr);margin-top:4px;opacity:0;padding:4px;transition:transform .1s ease-in,opacity 150ms ease-in}.tox .tox-notification p{font-size:14px;font-weight:400}.tox .tox-notification a{cursor:pointer;text-decoration:underline}.tox .tox-notification--in{opacity:1}.tox .tox-notification--success{background-color:#334840;border-color:#3c5440;color:#fff}.tox .tox-notification--success p{color:#fff}.tox .tox-notification--success a{color:#b5d199}.tox .tox-notification--success svg{fill:#fff}.tox .tox-notification--error{background-color:#442632;border-color:#55212b;color:#fff}.tox .tox-notification--error p{color:#fff}.tox .tox-notification--error a{color:#e68080}.tox .tox-notification--error svg{fill:#fff}.tox .tox-notification--warn,.tox .tox-notification--warning{background-color:#222f3e;border-color:rgba(255,255,255,.15);color:#fff0b3}.tox .tox-notification--warn p,.tox .tox-notification--warning p{color:#fff0b3}.tox .tox-notification--warn a,.tox .tox-notification--warning a{color:#fc0}.tox .tox-notification--warn svg,.tox .tox-notification--warning svg{fill:#fff0b3}.tox .tox-notification--info{background-color:#254161;border-color:#264972;color:#fff}.tox .tox-notification--info p{color:#fff}.tox .tox-notification--info a{color:#83b7f3}.tox .tox-notification--info svg{fill:#fff}.tox .tox-notification__body{align-self:center;color:#fff;font-size:14px;grid-column-end:3;grid-column-start:2;grid-row-end:2;grid-row-start:1;text-align:center;white-space:normal;word-break:break-all;word-break:break-word}.tox .tox-notification__body>*{margin:0}.tox .tox-notification__body>*+*{margin-top:1rem}.tox .tox-notification__icon{align-self:center;grid-column-end:2;grid-column-start:1;grid-row-end:2;grid-row-start:1;justify-self:end}.tox .tox-notification__icon svg{display:block}.tox .tox-notification__dismiss{align-self:start;grid-column-end:4;grid-column-start:3;grid-row-end:2;grid-row-start:1;justify-self:end}.tox .tox-notification .tox-progress-bar{grid-column-end:4;grid-column-start:1;grid-row-end:3;grid-row-start:2;justify-self:center}.tox .tox-pop{display:inline-block;position:relative}.tox .tox-pop--resizing{transition:width .1s ease}.tox .tox-pop--resizing .tox-toolbar,.tox .tox-pop--resizing .tox-toolbar__group{flex-wrap:nowrap}.tox .tox-pop--transition{transition:.15s ease;transition-property:left,right,top,bottom}.tox .tox-pop--transition::after,.tox .tox-pop--transition::before{transition:all .15s,visibility 0s,opacity 75ms ease 75ms}.tox .tox-pop__dialog{background-color:#222f3e;border:1px solid #161f29;border-radius:6px;box-shadow:0 0 2px 0 rgba(34,47,62,.2),0 4px 8px 0 rgba(34,47,62,.15);min-width:0;overflow:hidden}.tox .tox-pop__dialog>:not(.tox-toolbar){margin:4px 4px 4px 8px}.tox .tox-pop__dialog .tox-toolbar{background-color:transparent;margin-bottom:-1px}.tox .tox-pop::after,.tox .tox-pop::before{border-style:solid;content:'';display:block;height:0;opacity:1;position:absolute;width:0}.tox .tox-pop.tox-pop--inset::after,.tox .tox-pop.tox-pop--inset::before{opacity:0;transition:all 0s .15s,visibility 0s,opacity 75ms ease}.tox .tox-pop.tox-pop--bottom::after,.tox .tox-pop.tox-pop--bottom::before{left:50%;top:100%}.tox .tox-pop.tox-pop--bottom::after{border-color:#222f3e transparent transparent transparent;border-width:8px;margin-left:-8px;margin-top:-1px}.tox .tox-pop.tox-pop--bottom::before{border-color:#161f29 transparent transparent transparent;border-width:9px;margin-left:-9px}.tox .tox-pop.tox-pop--top::after,.tox .tox-pop.tox-pop--top::before{left:50%;top:0;transform:translateY(-100%)}.tox .tox-pop.tox-pop--top::after{border-color:transparent transparent #222f3e transparent;border-width:8px;margin-left:-8px;margin-top:1px}.tox .tox-pop.tox-pop--top::before{border-color:transparent transparent #161f29 transparent;border-width:9px;margin-left:-9px}.tox .tox-pop.tox-pop--left::after,.tox .tox-pop.tox-pop--left::before{left:0;top:calc(50% - 1px);transform:translateY(-50%)}.tox .tox-pop.tox-pop--left::after{border-color:transparent #222f3e transparent transparent;border-width:8px;margin-left:-15px}.tox .tox-pop.tox-pop--left::before{border-color:transparent #161f29 transparent transparent;border-width:10px;margin-left:-19px}.tox .tox-pop.tox-pop--right::after,.tox .tox-pop.tox-pop--right::before{left:100%;top:calc(50% + 1px);transform:translateY(-50%)}.tox .tox-pop.tox-pop--right::after{border-color:transparent transparent transparent #222f3e;border-width:8px;margin-left:-1px}.tox .tox-pop.tox-pop--right::before{border-color:transparent transparent transparent #161f29;border-width:10px;margin-left:-1px}.tox .tox-pop.tox-pop--align-left::after,.tox .tox-pop.tox-pop--align-left::before{left:20px}.tox .tox-pop.tox-pop--align-right::after,.tox .tox-pop.tox-pop--align-right::before{left:calc(100% - 20px)}.tox .tox-sidebar-wrap{display:flex;flex-direction:row;flex-grow:1;min-height:0}.tox .tox-sidebar{background-color:#222f3e;display:flex;flex-direction:row;justify-content:flex-end}.tox .tox-sidebar__slider{display:flex;overflow:hidden}.tox .tox-sidebar__pane-container{display:flex}.tox .tox-sidebar__pane{display:flex}.tox .tox-sidebar--sliding-closed{opacity:0}.tox .tox-sidebar--sliding-open{opacity:1}.tox .tox-sidebar--sliding-growing,.tox .tox-sidebar--sliding-shrinking{transition:width .5s ease,opacity .5s ease}.tox .tox-selector{background-color:#4099ff;border-color:#4099ff;border-style:solid;border-width:1px;box-sizing:border-box;display:inline-block;height:10px;position:absolute;width:10px}.tox.tox-platform-touch .tox-selector{height:12px;width:12px}.tox .tox-slider{align-items:center;display:flex;flex:1;height:24px;justify-content:center;position:relative}.tox .tox-slider__rail{background-color:transparent;border:1px solid #161f29;border-radius:6px;height:10px;min-width:120px;width:100%}.tox .tox-slider__handle{background-color:#006ce7;border:2px solid #0054b4;border-radius:6px;box-shadow:none;height:24px;left:50%;position:absolute;top:50%;transform:translateX(-50%) translateY(-50%);width:14px}.tox .tox-form__controls-h-stack>.tox-slider:not(:first-of-type){margin-inline-start:8px}.tox .tox-form__controls-h-stack>.tox-form__group+.tox-slider{margin-inline-start:32px}.tox .tox-form__controls-h-stack>.tox-slider+.tox-form__group{margin-inline-start:32px}.tox .tox-source-code{overflow:auto}.tox .tox-spinner{display:flex}.tox .tox-spinner>div{animation:tam-bouncing-dots 1.5s ease-in-out 0s infinite both;background-color:rgba(255,255,255,.5);border-radius:100%;height:8px;width:8px}.tox .tox-spinner>div:nth-child(1){animation-delay:-.32s}.tox .tox-spinner>div:nth-child(2){animation-delay:-.16s}@keyframes tam-bouncing-dots{0%,100%,80%{transform:scale(0)}40%{transform:scale(1)}}.tox:not([dir=rtl]) .tox-spinner>div:not(:first-child){margin-left:4px}.tox[dir=rtl] .tox-spinner>div:not(:first-child){margin-right:4px}.tox .tox-statusbar{align-items:center;background-color:#222f3e;border-top:1px solid rgba(255,255,255,.15);color:rgba(255,255,255,.75);display:flex;flex:0 0 auto;font-size:14px;font-weight:400;height:25px;overflow:hidden;padding:0 8px;position:relative;text-transform:none}.tox .tox-statusbar__path{display:flex;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tox .tox-statusbar__right-container{display:flex;justify-content:flex-end;white-space:nowrap}.tox .tox-statusbar__help-text{text-align:center}.tox .tox-statusbar__text-container{display:flex;flex:1 1 auto;justify-content:space-between;overflow:hidden}@media only screen and (min-width:768px){.tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols>.tox-statusbar__help-text,.tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols>.tox-statusbar__path,.tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols>.tox-statusbar__right-container{flex:0 0 calc(100% / 3)}}.tox .tox-statusbar__text-container.tox-statusbar__text-container--flex-end{justify-content:flex-end}.tox .tox-statusbar__text-container.tox-statusbar__text-container--flex-start{justify-content:flex-start}.tox .tox-statusbar__text-container.tox-statusbar__text-container--space-around{justify-content:space-around}.tox .tox-statusbar__path>*{display:inline;white-space:nowrap}.tox .tox-statusbar__wordcount{flex:0 0 auto;margin-left:1ch}@media only screen and (max-width:767px){.tox .tox-statusbar__text-container .tox-statusbar__help-text{display:none}.tox .tox-statusbar__text-container .tox-statusbar__help-text:only-child{display:block}}.tox .tox-statusbar a,.tox .tox-statusbar__path-item,.tox .tox-statusbar__wordcount{color:rgba(255,255,255,.75);text-decoration:none}.tox .tox-statusbar a:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar a:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:hover:not(:disabled):not([aria-disabled=true]){color:#fff;cursor:pointer}.tox .tox-statusbar__branding svg{fill:rgba(255,255,255,.8);height:1.14em;vertical-align:-.28em;width:3.6em}.tox .tox-statusbar__branding a:focus:not(:disabled):not([aria-disabled=true]) svg,.tox .tox-statusbar__branding a:hover:not(:disabled):not([aria-disabled=true]) svg{fill:#fff}.tox .tox-statusbar__resize-handle{align-items:flex-end;align-self:stretch;cursor:nwse-resize;display:flex;flex:0 0 auto;justify-content:flex-end;margin-left:auto;margin-right:-8px;padding-bottom:3px;padding-left:1ch;padding-right:3px}.tox .tox-statusbar__resize-handle svg{display:block;fill:rgba(255,255,255,.5)}.tox .tox-statusbar__resize-handle:focus svg{background-color:#434e5b;border-radius:1px 1px 5px 1px;box-shadow:0 0 0 2px #434e5b}.tox:not([dir=rtl]) .tox-statusbar__path>*{margin-right:4px}.tox:not([dir=rtl]) .tox-statusbar__branding{margin-left:2ch}.tox[dir=rtl] .tox-statusbar{flex-direction:row-reverse}.tox[dir=rtl] .tox-statusbar__path>*{margin-left:4px}.tox .tox-throbber{z-index:1299}.tox .tox-throbber__busy-spinner{align-items:center;background-color:rgba(34,47,62,.6);bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}.tox .tox-tbtn{align-items:center;background:0 0;border:0;border-radius:3px;box-shadow:none;color:#fff;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:400;height:28px;justify-content:center;margin:6px 1px 5px 0;outline:0;overflow:hidden;padding:0;text-transform:none;width:34px}.tox .tox-tbtn svg{display:block;fill:#fff}.tox .tox-tbtn.tox-tbtn-more{padding-left:5px;padding-right:5px;width:inherit}.tox .tox-tbtn:focus{background:#3389ec;border:0;box-shadow:none}.tox .tox-tbtn:hover{background:#3389ec;border:0;box-shadow:none;color:#fff}.tox .tox-tbtn:hover svg{fill:#fff}.tox .tox-tbtn:active{background:#599fef;border:0;box-shadow:none;color:#fff}.tox .tox-tbtn:active svg{fill:#fff}.tox .tox-tbtn--disabled .tox-tbtn--enabled svg{fill:rgba(255,255,255,.5)}.tox .tox-tbtn--disabled,.tox .tox-tbtn--disabled:hover,.tox .tox-tbtn:disabled,.tox .tox-tbtn:disabled:hover{background:0 0;border:0;box-shadow:none;color:rgba(255,255,255,.5);cursor:not-allowed}.tox .tox-tbtn--disabled svg,.tox .tox-tbtn--disabled:hover svg,.tox .tox-tbtn:disabled svg,.tox .tox-tbtn:disabled:hover svg{fill:rgba(255,255,255,.5)}.tox .tox-tbtn--enabled,.tox .tox-tbtn--enabled:hover{background:#599fef;border:0;box-shadow:none;color:#fff}.tox .tox-tbtn--enabled:hover>*,.tox .tox-tbtn--enabled>*{transform:none}.tox .tox-tbtn--enabled svg,.tox .tox-tbtn--enabled:hover svg{fill:#fff}.tox .tox-tbtn--enabled.tox-tbtn--disabled svg,.tox .tox-tbtn--enabled:hover.tox-tbtn--disabled svg{fill:rgba(255,255,255,.5)}.tox .tox-tbtn:focus:not(.tox-tbtn--disabled){color:#fff}.tox .tox-tbtn:focus:not(.tox-tbtn--disabled) svg{fill:#fff}.tox .tox-tbtn:active>*{transform:none}.tox .tox-tbtn--md{height:42px;width:51px}.tox .tox-tbtn--lg{flex-direction:column;height:56px;width:68px}.tox .tox-tbtn--return{align-self:stretch;height:unset;width:16px}.tox .tox-tbtn--labeled{padding:0 4px;width:unset}.tox .tox-tbtn__vlabel{display:block;font-size:10px;font-weight:400;letter-spacing:-.025em;margin-bottom:4px;white-space:nowrap}.tox .tox-number-input{border-radius:3px;display:flex;margin:6px 1px 5px 0;padding:0 4px;width:auto}.tox .tox-number-input .tox-input-wrapper{background:#2f4055;display:flex;pointer-events:none;text-align:center}.tox .tox-number-input .tox-input-wrapper:focus{background:#3389ec}.tox .tox-number-input input{border-radius:3px;color:#fff;font-size:14px;margin:2px 0;pointer-events:all;width:60px}.tox .tox-number-input input:hover{background:#3389ec;color:#fff}.tox .tox-number-input input:focus{background:#fff;color:#222f3e}.tox .tox-number-input input:disabled{background:0 0;border:0;box-shadow:none;color:rgba(255,255,255,.5);cursor:not-allowed}.tox .tox-number-input button{background:#2f4055;color:#fff;height:28px;text-align:center;width:24px}.tox .tox-number-input button svg{display:block;fill:#fff;margin:0 auto;transform:scale(.67)}.tox .tox-number-input button:focus{background:#3389ec}.tox .tox-number-input button:hover{background:#3389ec;border:0;box-shadow:none;color:#fff}.tox .tox-number-input button:hover svg{fill:#fff}.tox .tox-number-input button:active{background:#599fef;border:0;box-shadow:none;color:#fff}.tox .tox-number-input button:active svg{fill:#fff}.tox .tox-number-input button:disabled{background:0 0;border:0;box-shadow:none;color:rgba(255,255,255,.5);cursor:not-allowed}.tox .tox-number-input button:disabled svg{fill:rgba(255,255,255,.5)}.tox .tox-number-input button.minus{border-radius:3px 0 0 3px}.tox .tox-number-input button.plus{border-radius:0 3px 3px 0}.tox .tox-number-input:focus:not(:active)>.tox-input-wrapper,.tox .tox-number-input:focus:not(:active)>button{background:#3389ec}.tox .tox-tbtn--select{margin:6px 1px 5px 0;padding:0 4px;width:auto}.tox .tox-tbtn__select-label{cursor:default;font-weight:400;height:initial;margin:0 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tox .tox-tbtn__select-chevron{align-items:center;display:flex;justify-content:center;width:16px}.tox .tox-tbtn__select-chevron svg{fill:rgba(255,255,255,.5)}.tox .tox-tbtn--bespoke{background:#2f4055}.tox .tox-tbtn--bespoke+.tox-tbtn--bespoke{margin-inline-start:4px}.tox .tox-tbtn--bespoke .tox-tbtn__select-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:7em}.tox .tox-tbtn--disabled .tox-tbtn__select-label,.tox .tox-tbtn--select:disabled .tox-tbtn__select-label{cursor:not-allowed}.tox .tox-split-button{border:0;border-radius:3px;box-sizing:border-box;display:flex;margin:6px 1px 5px 0;overflow:hidden}.tox .tox-split-button:hover{box-shadow:0 0 0 1px #3389ec inset}.tox .tox-split-button:focus{background:#3389ec;box-shadow:none;color:#fff}.tox .tox-split-button>*{border-radius:0}.tox .tox-split-button__chevron{width:16px}.tox .tox-split-button__chevron svg{fill:rgba(255,255,255,.5)}.tox .tox-split-button .tox-tbtn{margin:0}.tox .tox-split-button.tox-tbtn--disabled .tox-tbtn:focus,.tox .tox-split-button.tox-tbtn--disabled .tox-tbtn:hover,.tox .tox-split-button.tox-tbtn--disabled:focus,.tox .tox-split-button.tox-tbtn--disabled:hover{background:0 0;box-shadow:none;color:rgba(255,255,255,.5)}.tox.tox-platform-touch .tox-split-button .tox-tbtn--select{padding:0 0}.tox.tox-platform-touch .tox-split-button .tox-tbtn:not(.tox-tbtn--select):first-child{width:30px}.tox.tox-platform-touch .tox-split-button__chevron{width:20px}.tox .tox-split-button.tox-tbtn--disabled svg #tox-icon-highlight-bg-color__color,.tox .tox-split-button.tox-tbtn--disabled svg #tox-icon-text-color__color{opacity:.6}.tox .tox-toolbar-overlord{background-color:#222f3e}.tox .tox-toolbar,.tox .tox-toolbar__overflow,.tox .tox-toolbar__primary{background-attachment:local;background-color:#222f3e;background-image:repeating-linear-gradient(rgba(255,255,255,.15) 0 1px,transparent 1px 39px);background-position:center top 40px;background-repeat:no-repeat;background-size:calc(100% - 11px * 2) calc(100% - 41px);display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:wrap;padding:0 0;transform:perspective(1px)}.tox .tox-toolbar-overlord>.tox-toolbar,.tox .tox-toolbar-overlord>.tox-toolbar__overflow,.tox .tox-toolbar-overlord>.tox-toolbar__primary{background-position:center top 0;background-size:calc(100% - 11px * 2) calc(100% - 0px)}.tox .tox-toolbar__overflow.tox-toolbar__overflow--closed{height:0;opacity:0;padding-bottom:0;padding-top:0;visibility:hidden}.tox .tox-toolbar__overflow--growing{transition:height .3s ease,opacity .2s linear .1s}.tox .tox-toolbar__overflow--shrinking{transition:opacity .3s ease,height .2s linear .1s,visibility 0s linear .3s}.tox .tox-anchorbar,.tox .tox-toolbar-overlord{grid-column:1/-1}.tox .tox-menubar+.tox-toolbar,.tox .tox-menubar+.tox-toolbar-overlord{border-top:1px solid transparent;margin-top:-1px;padding-bottom:1px;padding-top:1px}.tox .tox-toolbar--scrolling{flex-wrap:nowrap;overflow-x:auto}.tox .tox-pop .tox-toolbar{border-width:0}.tox .tox-toolbar--no-divider{background-image:none}.tox .tox-toolbar-overlord .tox-toolbar:not(.tox-toolbar--scrolling):first-child,.tox .tox-toolbar-overlord .tox-toolbar__primary{background-position:center top 39px}.tox .tox-editor-header>.tox-toolbar--scrolling,.tox .tox-toolbar-overlord .tox-toolbar--scrolling:first-child{background-image:none}.tox.tox-tinymce-aux .tox-toolbar__overflow{background-color:#222f3e;background-position:center top 43px;background-size:calc(100% - 8px * 2) calc(100% - 51px);border:none;border-radius:6px;box-shadow:0 0 2px 0 rgba(34,47,62,.2),0 4px 8px 0 rgba(34,47,62,.15);overscroll-behavior:none;padding:4px 0}.tox-pop .tox-pop__dialog .tox-toolbar{background-position:center top 43px;background-size:calc(100% - 11px * 2) calc(100% - 51px);padding:4px 0}.tox .tox-toolbar__group{align-items:center;display:flex;flex-wrap:wrap;margin:0 0;padding:0 11px 0 12px}.tox .tox-toolbar__group--pull-right{margin-left:auto}.tox .tox-toolbar--scrolling .tox-toolbar__group{flex-shrink:0;flex-wrap:nowrap}.tox:not([dir=rtl]) .tox-toolbar__group:not(:last-of-type){border-right:1px solid transparent}.tox[dir=rtl] .tox-toolbar__group:not(:last-of-type){border-left:1px solid transparent}.tox .tox-tooltip{display:inline-block;padding:8px;position:relative}.tox .tox-tooltip__body{background-color:#3d546f;border-radius:6px;box-shadow:0 2px 4px rgba(34,47,62,.3);color:rgba(255,255,255,.75);font-size:14px;font-style:normal;font-weight:400;padding:4px 8px;text-transform:none}.tox .tox-tooltip__arrow{position:absolute}.tox .tox-tooltip--down .tox-tooltip__arrow{border-left:8px solid transparent;border-right:8px solid transparent;border-top:8px solid #3d546f;bottom:0;left:50%;position:absolute;transform:translateX(-50%)}.tox .tox-tooltip--up .tox-tooltip__arrow{border-bottom:8px solid #3d546f;border-left:8px solid transparent;border-right:8px solid transparent;left:50%;position:absolute;top:0;transform:translateX(-50%)}.tox .tox-tooltip--right .tox-tooltip__arrow{border-bottom:8px solid transparent;border-left:8px solid #3d546f;border-top:8px solid transparent;position:absolute;right:0;top:50%;transform:translateY(-50%)}.tox .tox-tooltip--left .tox-tooltip__arrow{border-bottom:8px solid transparent;border-right:8px solid #3d546f;border-top:8px solid transparent;left:0;position:absolute;top:50%;transform:translateY(-50%)}.tox .tox-tree{display:flex;flex-direction:column}.tox .tox-tree .tox-trbtn{align-items:center;background:0 0;border:0;border-radius:4px;box-shadow:none;color:#fff;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:400;height:28px;margin-bottom:4px;margin-top:4px;outline:0;overflow:hidden;padding:0;padding-left:8px;text-transform:none}.tox .tox-tree .tox-trbtn .tox-tree__label{cursor:default;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tox .tox-tree .tox-trbtn svg{display:block;fill:#fff}.tox .tox-tree .tox-trbtn:focus{background:#3389ec;border:0;box-shadow:none}.tox .tox-tree .tox-trbtn:hover{background:#3389ec;border:0;box-shadow:none;color:#fff}.tox .tox-tree .tox-trbtn:hover svg{fill:#fff}.tox .tox-tree .tox-trbtn:active{background:#599fef;border:0;box-shadow:none;color:#fff}.tox .tox-tree .tox-trbtn:active svg{fill:#fff}.tox .tox-tree .tox-trbtn--disabled,.tox .tox-tree .tox-trbtn--disabled:hover,.tox .tox-tree .tox-trbtn:disabled,.tox .tox-tree .tox-trbtn:disabled:hover{background:0 0;border:0;box-shadow:none;color:rgba(255,255,255,.5);cursor:not-allowed}.tox .tox-tree .tox-trbtn--disabled svg,.tox .tox-tree .tox-trbtn--disabled:hover svg,.tox .tox-tree .tox-trbtn:disabled svg,.tox .tox-tree .tox-trbtn:disabled:hover svg{fill:rgba(255,255,255,.5)}.tox .tox-tree .tox-trbtn--enabled,.tox .tox-tree .tox-trbtn--enabled:hover{background:#599fef;border:0;box-shadow:none;color:#fff}.tox .tox-tree .tox-trbtn--enabled:hover>*,.tox .tox-tree .tox-trbtn--enabled>*{transform:none}.tox .tox-tree .tox-trbtn--enabled svg,.tox .tox-tree .tox-trbtn--enabled:hover svg{fill:#fff}.tox .tox-tree .tox-trbtn:focus:not(.tox-trbtn--disabled){color:#fff}.tox .tox-tree .tox-trbtn:focus:not(.tox-trbtn--disabled) svg{fill:#fff}.tox .tox-tree .tox-trbtn:active>*{transform:none}.tox .tox-tree .tox-trbtn--return{align-self:stretch;height:unset;width:16px}.tox .tox-tree .tox-trbtn--labeled{padding:0 4px;width:unset}.tox .tox-tree .tox-trbtn__vlabel{display:block;font-size:10px;font-weight:400;letter-spacing:-.025em;margin-bottom:4px;white-space:nowrap}.tox .tox-tree .tox-tree--directory{display:flex;flex-direction:column}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label{font-weight:700}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn{margin-left:auto}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn svg{fill:transparent}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn.tox-mbtn--active svg,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn:focus svg{fill:#fff}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:focus .tox-mbtn svg,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover .tox-mbtn svg{fill:#fff}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover:has(.tox-mbtn:hover){background-color:transparent;color:#fff}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover:has(.tox-mbtn:hover) .tox-chevron svg{fill:#fff}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-chevron{margin-right:6px}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--growing) .tox-chevron,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--shrinking) .tox-chevron{transition:transform .5s ease-in-out}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--growing) .tox-chevron,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--open) .tox-chevron{transform:rotate(90deg)}.tox .tox-tree .tox-tree--leaf__label{font-weight:400}.tox .tox-tree .tox-tree--leaf__label .tox-mbtn{margin-left:auto}.tox .tox-tree .tox-tree--leaf__label .tox-mbtn svg{fill:transparent}.tox .tox-tree .tox-tree--leaf__label .tox-mbtn.tox-mbtn--active svg,.tox .tox-tree .tox-tree--leaf__label .tox-mbtn:focus svg{fill:#fff}.tox .tox-tree .tox-tree--leaf__label:hover .tox-mbtn svg{fill:#fff}.tox .tox-tree .tox-tree--leaf__label:hover:has(.tox-mbtn:hover){background-color:transparent;color:#fff}.tox .tox-tree .tox-tree--leaf__label:hover:has(.tox-mbtn:hover) .tox-chevron svg{fill:#fff}.tox .tox-tree .tox-tree--directory__children{overflow:hidden;padding-left:16px}.tox .tox-tree .tox-tree--directory__children.tox-tree--directory__children--growing,.tox .tox-tree .tox-tree--directory__children.tox-tree--directory__children--shrinking{transition:height .5s ease-in-out}.tox .tox-tree .tox-trbtn.tox-tree--leaf__label{display:flex;justify-content:space-between}.tox .tox-view-wrap,.tox .tox-view-wrap__slot-container{background-color:#222f3e;display:flex;flex:1;flex-direction:column}.tox .tox-view{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.tox .tox-view__header{align-items:center;display:flex;font-size:16px;justify-content:space-between;padding:8px 8px 0 8px;position:relative}.tox .tox-view--mobile.tox-view__header,.tox .tox-view--mobile.tox-view__toolbar{padding:8px}.tox .tox-view--scrolling{flex-wrap:nowrap;overflow-x:auto}.tox .tox-view__toolbar{display:flex;flex-direction:row;gap:8px;justify-content:space-between;padding:8px 8px 0 8px}.tox .tox-view__toolbar__group{display:flex;flex-direction:row;gap:12px}.tox .tox-view__header-end,.tox .tox-view__header-start{display:flex}.tox .tox-view__pane{height:100%;padding:8px;width:100%}.tox .tox-view__pane_panel{border:1px solid #161f29;border-radius:6px}.tox:not([dir=rtl]) .tox-view__header .tox-view__header-end>*,.tox:not([dir=rtl]) .tox-view__header .tox-view__header-start>*{margin-left:8px}.tox[dir=rtl] .tox-view__header .tox-view__header-end>*,.tox[dir=rtl] .tox-view__header .tox-view__header-start>*{margin-right:8px}.tox .tox-well{border:1px solid #161f29;border-radius:6px;padding:8px;width:100%}.tox .tox-well>:first-child{margin-top:0}.tox .tox-well>:last-child{margin-bottom:0}.tox .tox-well>:only-child{margin:0}.tox .tox-custom-editor{border:1px solid #161f29;border-radius:6px;display:flex;flex:1;overflow:hidden;position:relative}.tox .tox-dialog-loading::before{background-color:rgba(0,0,0,.5);content:"";height:100%;position:absolute;width:100%;z-index:1000}.tox .tox-tab{cursor:pointer}.tox .tox-dialog__content-js{display:flex;flex:1}.tox .tox-dialog__body-content .tox-collection{display:flex;flex:1}.tox.tox-tinymce-aux .tox-toolbar__overflow{box-shadow:0 0 0 1px rgba(255,255,255,.15)} diff --git a/tinymce-resource/skins/ui/oxide-dark/skin.shadowdom.css b/tinymce-resource/skins/ui/oxide-dark/skin.shadowdom.css new file mode 100644 index 000000000..25b0a3710 --- /dev/null +++ b/tinymce-resource/skins/ui/oxide-dark/skin.shadowdom.css @@ -0,0 +1,30 @@ +body.tox-dialog__disable-scroll { + overflow: hidden; +} +.tox-fullscreen { + border: 0; + height: 100%; + margin: 0; + overflow: hidden; + overscroll-behavior: none; + padding: 0; + touch-action: pinch-zoom; + width: 100%; +} +.tox.tox-tinymce.tox-fullscreen .tox-statusbar__resize-handle { + display: none; +} +.tox.tox-tinymce.tox-fullscreen, +.tox-shadowhost.tox-fullscreen { + left: 0; + position: fixed; + top: 0; + z-index: 1200; +} +.tox.tox-tinymce.tox-fullscreen { + background-color: transparent; +} +.tox-fullscreen .tox.tox-tinymce-aux, +.tox-fullscreen ~ .tox.tox-tinymce-aux { + z-index: 1201; +} diff --git a/tinymce-resource/skins/ui/oxide-dark/skin.shadowdom.js b/tinymce-resource/skins/ui/oxide-dark/skin.shadowdom.js new file mode 100644 index 000000000..0b647fd6c --- /dev/null +++ b/tinymce-resource/skins/ui/oxide-dark/skin.shadowdom.js @@ -0,0 +1,2 @@ +tinymce.Resource.add('ui/dark/skin.shadowdom.css', "body.tox-dialog__disable-scroll{overflow:hidden}.tox-fullscreen{border:0;height:100%;margin:0;overflow:hidden;overscroll-behavior:none;padding:0;touch-action:pinch-zoom;width:100%}.tox.tox-tinymce.tox-fullscreen .tox-statusbar__resize-handle{display:none}.tox-shadowhost.tox-fullscreen,.tox.tox-tinymce.tox-fullscreen{left:0;position:fixed;top:0;z-index:1200}.tox.tox-tinymce.tox-fullscreen{background-color:transparent}.tox-fullscreen .tox.tox-tinymce-aux,.tox-fullscreen~.tox.tox-tinymce-aux{z-index:1201}") +//# sourceMappingURL=skin.shadowdom.js.map diff --git a/tinymce-resource/skins/ui/oxide-dark/skin.shadowdom.min.css b/tinymce-resource/skins/ui/oxide-dark/skin.shadowdom.min.css new file mode 100644 index 000000000..8745951a4 --- /dev/null +++ b/tinymce-resource/skins/ui/oxide-dark/skin.shadowdom.min.css @@ -0,0 +1 @@ +body.tox-dialog__disable-scroll{overflow:hidden}.tox-fullscreen{border:0;height:100%;margin:0;overflow:hidden;overscroll-behavior:none;padding:0;touch-action:pinch-zoom;width:100%}.tox.tox-tinymce.tox-fullscreen .tox-statusbar__resize-handle{display:none}.tox-shadowhost.tox-fullscreen,.tox.tox-tinymce.tox-fullscreen{left:0;position:fixed;top:0;z-index:1200}.tox.tox-tinymce.tox-fullscreen{background-color:transparent}.tox-fullscreen .tox.tox-tinymce-aux,.tox-fullscreen~.tox.tox-tinymce-aux{z-index:1201} diff --git a/tinymce-resource/skins/ui/oxide/content.css b/tinymce-resource/skins/ui/oxide/content.css new file mode 100644 index 000000000..6141e3bfb --- /dev/null +++ b/tinymce-resource/skins/ui/oxide/content.css @@ -0,0 +1,785 @@ +.mce-content-body .mce-item-anchor { + background: transparent url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D'8'%20height%3D'12'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20d%3D'M0%200L8%200%208%2012%204.09117821%209%200%2012z'%2F%3E%3C%2Fsvg%3E%0A") no-repeat center; +} +.mce-content-body .mce-item-anchor:empty { + cursor: default; + display: inline-block; + height: 12px !important; + padding: 0 2px; + -webkit-user-modify: read-only; + -moz-user-modify: read-only; + -webkit-user-select: all; + -moz-user-select: all; + user-select: all; + width: 8px !important; +} +.mce-content-body .mce-item-anchor:not(:empty) { + background-position-x: 2px; + display: inline-block; + padding-left: 12px; +} +.mce-content-body .mce-item-anchor[data-mce-selected] { + outline-offset: 1px; +} +.tox-comments-visible .tox-comment[contenteditable="false"]:not([data-mce-selected]), +.tox-comments-visible span.tox-comment img:not([data-mce-selected]), +.tox-comments-visible span.tox-comment > audio:not([data-mce-selected]), +.tox-comments-visible span.tox-comment > video:not([data-mce-selected]), +.tox-comments-visible span.tox-comment span.mce-preview-object:not([data-mce-selected]) { + outline: 3px solid #ffe89d; +} +.tox-comments-visible .tox-comment[contenteditable="false"][data-mce-annotation-active="true"]:not([data-mce-selected]) { + outline: 3px solid #fed635; +} +.tox-comments-visible span.tox-comment[data-mce-annotation-active="true"] img:not([data-mce-selected]), +.tox-comments-visible span.tox-comment[data-mce-annotation-active="true"] > audio:not([data-mce-selected]), +.tox-comments-visible span.tox-comment[data-mce-annotation-active="true"] > video:not([data-mce-selected]), +.tox-comments-visible span.tox-comment[data-mce-annotation-active="true"] span.mce-preview-object:not([data-mce-selected]) { + outline: 3px solid #fed635; +} +.tox-comments-visible span.tox-comment:not([data-mce-selected]) { + background-color: #ffe89d; + outline: none; +} +.tox-comments-visible span.tox-comment[data-mce-annotation-active="true"]:not([data-mce-selected="inline-boundary"]) { + background-color: #fed635; +} +.tox-checklist > li:not(.tox-checklist--hidden) { + list-style: none; + margin: 0.25em 0; +} +.tox-checklist > li:not(.tox-checklist--hidden)::before { + content: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cg%20id%3D%22checklist-unchecked%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Crect%20id%3D%22Rectangle%22%20width%3D%2215%22%20height%3D%2215%22%20x%3D%22.5%22%20y%3D%22.5%22%20fill-rule%3D%22nonzero%22%20stroke%3D%22%234C4C4C%22%20rx%3D%222%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%0A"); + cursor: pointer; + height: 1em; + margin-left: -1.5em; + margin-top: 0.125em; + position: absolute; + width: 1em; +} +.tox-checklist li:not(.tox-checklist--hidden).tox-checklist--checked::before { + content: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cg%20id%3D%22checklist-checked%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Crect%20id%3D%22Rectangle%22%20width%3D%2216%22%20height%3D%2216%22%20fill%3D%22%234099FF%22%20fill-rule%3D%22nonzero%22%20rx%3D%222%22%2F%3E%3Cpath%20id%3D%22Path%22%20fill%3D%22%23FFF%22%20fill-rule%3D%22nonzero%22%20d%3D%22M11.5703186%2C3.14417309%20C11.8516238%2C2.73724603%2012.4164781%2C2.62829933%2012.83558%2C2.89774797%20C13.260121%2C3.17069355%2013.3759736%2C3.72932262%2013.0909105%2C4.14168582%20L7.7580587%2C11.8560195%20C7.43776896%2C12.3193404%206.76483983%2C12.3852142%206.35607322%2C11.9948725%20L3.02491697%2C8.8138662%20C2.66090143%2C8.46625845%202.65798871%2C7.89594698%203.01850234%2C7.54483354%20C3.373942%2C7.19866177%203.94940006%2C7.19592841%204.30829608%2C7.5386474%20L6.85276923%2C9.9684299%20L11.5703186%2C3.14417309%20Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%0A"); +} +[dir=rtl] .tox-checklist > li:not(.tox-checklist--hidden)::before { + margin-left: 0; + margin-right: -1.5em; +} +/* stylelint-disable */ +/* http://prismjs.com/ */ +/** + * prism.js default theme for JavaScript, CSS and HTML + * Based on dabblet (http://dabblet.com) + * @author Lea Verou + */ +code[class*="language-"], +pre[class*="language-"] { + color: black; + background: none; + text-shadow: 0 1px white; + font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; + font-size: 1em; + text-align: left; + white-space: pre; + word-spacing: normal; + word-break: normal; + word-wrap: normal; + line-height: 1.5; + -moz-tab-size: 4; + tab-size: 4; + -webkit-hyphens: none; + hyphens: none; +} +pre[class*="language-"]::-moz-selection, +pre[class*="language-"] ::-moz-selection, +code[class*="language-"]::-moz-selection, +code[class*="language-"] ::-moz-selection { + text-shadow: none; + background: #b3d4fc; +} +pre[class*="language-"]::selection, +pre[class*="language-"] ::selection, +code[class*="language-"]::selection, +code[class*="language-"] ::selection { + text-shadow: none; + background: #b3d4fc; +} +@media print { + code[class*="language-"], + pre[class*="language-"] { + text-shadow: none; + } +} +/* Code blocks */ +pre[class*="language-"] { + padding: 1em; + margin: 0.5em 0; + overflow: auto; +} +:not(pre) > code[class*="language-"], +pre[class*="language-"] { + background: #f5f2f0; +} +/* Inline code */ +:not(pre) > code[class*="language-"] { + padding: 0.1em; + border-radius: 0.3em; + white-space: normal; +} +.token.comment, +.token.prolog, +.token.doctype, +.token.cdata { + color: slategray; +} +.token.punctuation { + color: #999; +} +.token.namespace { + opacity: 0.7; +} +.token.property, +.token.tag, +.token.boolean, +.token.number, +.token.constant, +.token.symbol, +.token.deleted { + color: #905; +} +.token.selector, +.token.attr-name, +.token.string, +.token.char, +.token.builtin, +.token.inserted { + color: #690; +} +.token.operator, +.token.entity, +.token.url, +.language-css .token.string, +.style .token.string { + color: #9a6e3a; + /* This background color was intended by the author of this theme. */ + background: hsla(0, 0%, 100%, 0.5); +} +.token.atrule, +.token.attr-value, +.token.keyword { + color: #07a; +} +.token.function, +.token.class-name { + color: #DD4A68; +} +.token.regex, +.token.important, +.token.variable { + color: #e90; +} +.token.important, +.token.bold { + font-weight: bold; +} +.token.italic { + font-style: italic; +} +.token.entity { + cursor: help; +} +/* stylelint-enable */ +.mce-content-body { + overflow-wrap: break-word; + word-wrap: break-word; +} +.mce-content-body .mce-visual-caret { + background-color: black; + background-color: currentColor; + position: absolute; +} +.mce-content-body .mce-visual-caret-hidden { + display: none; +} +.mce-content-body *[data-mce-caret] { + left: -1000px; + margin: 0; + padding: 0; + position: absolute; + right: auto; + top: 0; +} +.mce-content-body .mce-offscreen-selection { + left: -2000000px; + max-width: 1000000px; + position: absolute; +} +.mce-content-body *[contentEditable=false] { + cursor: default; +} +.mce-content-body *[contentEditable=true] { + cursor: text; +} +.tox-cursor-format-painter { + cursor: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%0A%20%20%3Cg%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%0A%20%20%20%20%3Cpath%20fill%3D%22%23000%22%20fill-rule%3D%22nonzero%22%20d%3D%22M15%2C6%20C15%2C5.45%2014.55%2C5%2014%2C5%20L6%2C5%20C5.45%2C5%205%2C5.45%205%2C6%20L5%2C10%20C5%2C10.55%205.45%2C11%206%2C11%20L14%2C11%20C14.55%2C11%2015%2C10.55%2015%2C10%20L15%2C9%20L16%2C9%20L16%2C12%20L9%2C12%20L9%2C19%20C9%2C19.55%209.45%2C20%2010%2C20%20L11%2C20%20C11.55%2C20%2012%2C19.55%2012%2C19%20L12%2C14%20L18%2C14%20L18%2C7%20L15%2C7%20L15%2C6%20Z%22%2F%3E%0A%20%20%20%20%3Cpath%20fill%3D%22%23000%22%20fill-rule%3D%22nonzero%22%20d%3D%22M1%2C1%20L8.25%2C1%20C8.66421356%2C1%209%2C1.33578644%209%2C1.75%20L9%2C1.75%20C9%2C2.16421356%208.66421356%2C2.5%208.25%2C2.5%20L2.5%2C2.5%20L2.5%2C8.25%20C2.5%2C8.66421356%202.16421356%2C9%201.75%2C9%20L1.75%2C9%20C1.33578644%2C9%201%2C8.66421356%201%2C8.25%20L1%2C1%20Z%22%2F%3E%0A%20%20%3C%2Fg%3E%0A%3C%2Fsvg%3E%0A"), default; +} +div.mce-footnotes hr { + margin-inline-end: auto; + margin-inline-start: 0; + width: 25%; +} +div.mce-footnotes li > a.mce-footnotes-backlink { + text-decoration: none; +} +@media print { + sup.mce-footnote a { + color: black; + text-decoration: none; + } + div.mce-footnotes { + break-inside: avoid; + width: 100%; + } + div.mce-footnotes li > a.mce-footnotes-backlink { + display: none; + } +} +.mce-content-body figure.align-left { + float: left; +} +.mce-content-body figure.align-right { + float: right; +} +.mce-content-body figure.image.align-center { + display: table; + margin-left: auto; + margin-right: auto; +} +.mce-preview-object { + border: 1px solid gray; + display: inline-block; + line-height: 0; + margin: 0 2px 0 2px; + position: relative; +} +.mce-preview-object .mce-shim { + background: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7); + height: 100%; + left: 0; + position: absolute; + top: 0; + width: 100%; +} +.mce-preview-object[data-mce-selected="2"] .mce-shim { + display: none; +} +.mce-content-body .mce-mergetag { + cursor: default !important; + -webkit-user-select: none; + -moz-user-select: none; + user-select: none; +} +.mce-content-body .mce-mergetag:hover { + background-color: rgba(0, 108, 231, 0.1); +} +.mce-content-body .mce-mergetag-affix { + background-color: rgba(0, 108, 231, 0.1); + color: #006ce7; +} +.mce-object { + background: transparent url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Cpath%20d%3D%22M4%203h16a1%201%200%200%201%201%201v16a1%201%200%200%201-1%201H4a1%201%200%200%201-1-1V4a1%201%200%200%201%201-1zm1%202v14h14V5H5zm4.79%202.565l5.64%204.028a.5.5%200%200%201%200%20.814l-5.64%204.028a.5.5%200%200%201-.79-.407V7.972a.5.5%200%200%201%20.79-.407z%22%2F%3E%3C%2Fsvg%3E%0A") no-repeat center; + border: 1px dashed #aaa; +} +.mce-pagebreak { + border: 1px dashed #aaa; + cursor: default; + display: block; + height: 5px; + margin-top: 15px; + page-break-before: always; + width: 100%; +} +@media print { + .mce-pagebreak { + border: 0; + } +} +.tiny-pageembed .mce-shim { + background: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7); + height: 100%; + left: 0; + position: absolute; + top: 0; + width: 100%; +} +.tiny-pageembed[data-mce-selected="2"] .mce-shim { + display: none; +} +.tiny-pageembed { + display: inline-block; + position: relative; +} +.tiny-pageembed--21by9, +.tiny-pageembed--16by9, +.tiny-pageembed--4by3, +.tiny-pageembed--1by1 { + display: block; + overflow: hidden; + padding: 0; + position: relative; + width: 100%; +} +.tiny-pageembed--21by9 { + padding-top: 42.857143%; +} +.tiny-pageembed--16by9 { + padding-top: 56.25%; +} +.tiny-pageembed--4by3 { + padding-top: 75%; +} +.tiny-pageembed--1by1 { + padding-top: 100%; +} +.tiny-pageembed--21by9 iframe, +.tiny-pageembed--16by9 iframe, +.tiny-pageembed--4by3 iframe, +.tiny-pageembed--1by1 iframe { + border: 0; + height: 100%; + left: 0; + position: absolute; + top: 0; + width: 100%; +} +.mce-content-body[data-mce-placeholder] { + position: relative; +} +.mce-content-body[data-mce-placeholder]:not(.mce-visualblocks)::before { + color: rgba(34, 47, 62, 0.7); + content: attr(data-mce-placeholder); + position: absolute; +} +.mce-content-body:not([dir=rtl])[data-mce-placeholder]:not(.mce-visualblocks)::before { + left: 1px; +} +.mce-content-body[dir=rtl][data-mce-placeholder]:not(.mce-visualblocks)::before { + right: 1px; +} +.mce-content-body div.mce-resizehandle { + background-color: #4099ff; + border-color: #4099ff; + border-style: solid; + border-width: 1px; + box-sizing: border-box; + height: 10px; + position: absolute; + width: 10px; + z-index: 1298; +} +.mce-content-body div.mce-resizehandle:hover { + background-color: #4099ff; +} +.mce-content-body div.mce-resizehandle:nth-of-type(1) { + cursor: nwse-resize; +} +.mce-content-body div.mce-resizehandle:nth-of-type(2) { + cursor: nesw-resize; +} +.mce-content-body div.mce-resizehandle:nth-of-type(3) { + cursor: nwse-resize; +} +.mce-content-body div.mce-resizehandle:nth-of-type(4) { + cursor: nesw-resize; +} +.mce-content-body .mce-resize-backdrop { + z-index: 10000; +} +.mce-content-body .mce-clonedresizable { + cursor: default; + opacity: 0.5; + outline: 1px dashed black; + position: absolute; + z-index: 10001; +} +.mce-content-body .mce-clonedresizable.mce-resizetable-columns th, +.mce-content-body .mce-clonedresizable.mce-resizetable-columns td { + border: 0; +} +.mce-content-body .mce-resize-helper { + background: #555; + background: rgba(0, 0, 0, 0.75); + border: 1px; + border-radius: 3px; + color: white; + display: none; + font-family: sans-serif; + font-size: 12px; + line-height: 14px; + margin: 5px 10px; + padding: 5px; + position: absolute; + white-space: nowrap; + z-index: 10002; +} +.tox-rtc-user-selection { + position: relative; +} +.tox-rtc-user-cursor { + bottom: 0; + cursor: default; + position: absolute; + top: 0; + width: 2px; +} +.tox-rtc-user-cursor::before { + background-color: inherit; + border-radius: 50%; + content: ''; + display: block; + height: 8px; + position: absolute; + right: -3px; + top: -3px; + width: 8px; +} +.tox-rtc-user-cursor:hover::after { + background-color: inherit; + border-radius: 100px; + box-sizing: border-box; + color: #fff; + content: attr(data-user); + display: block; + font-size: 12px; + font-weight: bold; + left: -5px; + min-height: 8px; + min-width: 8px; + padding: 0 12px; + position: absolute; + top: -11px; + white-space: nowrap; + z-index: 1000; +} +.tox-rtc-user-selection--1 .tox-rtc-user-cursor { + background-color: #2dc26b; +} +.tox-rtc-user-selection--2 .tox-rtc-user-cursor { + background-color: #e03e2d; +} +.tox-rtc-user-selection--3 .tox-rtc-user-cursor { + background-color: #f1c40f; +} +.tox-rtc-user-selection--4 .tox-rtc-user-cursor { + background-color: #3598db; +} +.tox-rtc-user-selection--5 .tox-rtc-user-cursor { + background-color: #b96ad9; +} +.tox-rtc-user-selection--6 .tox-rtc-user-cursor { + background-color: #e67e23; +} +.tox-rtc-user-selection--7 .tox-rtc-user-cursor { + background-color: #aaa69d; +} +.tox-rtc-user-selection--8 .tox-rtc-user-cursor { + background-color: #f368e0; +} +.tox-rtc-remote-image { + background: #eaeaea url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%2236%22%20height%3D%2212%22%20viewBox%3D%220%200%2036%2012%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%20%20%3Ccircle%20cx%3D%226%22%20cy%3D%226%22%20r%3D%223%22%20fill%3D%22rgba(0%2C%200%2C%200%2C%20.2)%22%3E%0A%20%20%20%20%3Canimate%20attributeName%3D%22r%22%20values%3D%223%3B5%3B3%22%20calcMode%3D%22linear%22%20dur%3D%221s%22%20repeatCount%3D%22indefinite%22%20%2F%3E%0A%20%20%3C%2Fcircle%3E%0A%20%20%3Ccircle%20cx%3D%2218%22%20cy%3D%226%22%20r%3D%223%22%20fill%3D%22rgba(0%2C%200%2C%200%2C%20.2)%22%3E%0A%20%20%20%20%3Canimate%20attributeName%3D%22r%22%20values%3D%223%3B5%3B3%22%20calcMode%3D%22linear%22%20begin%3D%22.33s%22%20dur%3D%221s%22%20repeatCount%3D%22indefinite%22%20%2F%3E%0A%20%20%3C%2Fcircle%3E%0A%20%20%3Ccircle%20cx%3D%2230%22%20cy%3D%226%22%20r%3D%223%22%20fill%3D%22rgba(0%2C%200%2C%200%2C%20.2)%22%3E%0A%20%20%20%20%3Canimate%20attributeName%3D%22r%22%20values%3D%223%3B5%3B3%22%20calcMode%3D%22linear%22%20begin%3D%22.66s%22%20dur%3D%221s%22%20repeatCount%3D%22indefinite%22%20%2F%3E%0A%20%20%3C%2Fcircle%3E%0A%3C%2Fsvg%3E%0A") no-repeat center center; + border: 1px solid #ccc; + min-height: 240px; + min-width: 320px; +} +.mce-match-marker { + background: #aaa; + color: #fff; +} +.mce-match-marker-selected { + background: #39f; + color: #fff; +} +.mce-match-marker-selected::-moz-selection { + background: #39f; + color: #fff; +} +.mce-match-marker-selected::selection { + background: #39f; + color: #fff; +} +.mce-content-body img[data-mce-selected], +.mce-content-body video[data-mce-selected], +.mce-content-body audio[data-mce-selected], +.mce-content-body object[data-mce-selected], +.mce-content-body embed[data-mce-selected], +.mce-content-body table[data-mce-selected], +.mce-content-body details[data-mce-selected] { + outline: 3px solid #b4d7ff; +} +.mce-content-body hr[data-mce-selected] { + outline: 3px solid #b4d7ff; + outline-offset: 1px; +} +.mce-content-body *[contentEditable=false] *[contentEditable=true]:focus { + outline: 3px solid #b4d7ff; +} +.mce-content-body *[contentEditable=false] *[contentEditable=true]:hover { + outline: 3px solid #b4d7ff; +} +.mce-content-body *[contentEditable=false][data-mce-selected] { + cursor: not-allowed; + outline: 3px solid #b4d7ff; +} +.mce-content-body.mce-content-readonly *[contentEditable=true]:focus, +.mce-content-body.mce-content-readonly *[contentEditable=true]:hover { + outline: none; +} +.mce-content-body *[data-mce-selected="inline-boundary"] { + background-color: #b4d7ff; +} +.mce-content-body .mce-edit-focus { + outline: 3px solid #b4d7ff; +} +.mce-content-body td[data-mce-selected], +.mce-content-body th[data-mce-selected] { + position: relative; +} +.mce-content-body td[data-mce-selected]::-moz-selection, +.mce-content-body th[data-mce-selected]::-moz-selection { + background: none; +} +.mce-content-body td[data-mce-selected]::selection, +.mce-content-body th[data-mce-selected]::selection { + background: none; +} +.mce-content-body td[data-mce-selected] *, +.mce-content-body th[data-mce-selected] * { + outline: none; + -webkit-touch-callout: none; + -webkit-user-select: none; + -moz-user-select: none; + user-select: none; +} +.mce-content-body td[data-mce-selected]::after, +.mce-content-body th[data-mce-selected]::after { + background-color: rgba(180, 215, 255, 0.7); + border: 1px solid rgba(180, 215, 255, 0.7); + bottom: -1px; + content: ''; + left: -1px; + mix-blend-mode: multiply; + position: absolute; + right: -1px; + top: -1px; +} +@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) { + .mce-content-body td[data-mce-selected]::after, + .mce-content-body th[data-mce-selected]::after { + border-color: rgba(0, 84, 180, 0.7); + } +} +.mce-content-body img[data-mce-selected]::-moz-selection { + background: none; +} +.mce-content-body img[data-mce-selected]::selection { + background: none; +} +.ephox-snooker-resizer-bar { + background-color: #b4d7ff; + opacity: 0; + -webkit-user-select: none; + -moz-user-select: none; + user-select: none; +} +.ephox-snooker-resizer-cols { + cursor: col-resize; +} +.ephox-snooker-resizer-rows { + cursor: row-resize; +} +.ephox-snooker-resizer-bar.ephox-snooker-resizer-bar-dragging { + opacity: 1; +} +.mce-spellchecker-word { + background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D'4'%20height%3D'4'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20stroke%3D'%23ff0000'%20fill%3D'none'%20stroke-linecap%3D'round'%20stroke-opacity%3D'.75'%20d%3D'M0%203L2%201%204%203'%2F%3E%3C%2Fsvg%3E%0A"); + background-position: 0 calc(100% + 1px); + background-repeat: repeat-x; + background-size: auto 6px; + cursor: default; + height: 2rem; +} +.mce-spellchecker-grammar { + background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D'4'%20height%3D'4'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20stroke%3D'%2300A835'%20fill%3D'none'%20stroke-linecap%3D'round'%20d%3D'M0%203L2%201%204%203'%2F%3E%3C%2Fsvg%3E%0A"); + background-position: 0 calc(100% + 1px); + background-repeat: repeat-x; + background-size: auto 6px; + cursor: default; +} +.mce-toc { + border: 1px solid gray; +} +.mce-toc h2 { + margin: 4px; +} +.mce-toc ul > li { + list-style-type: none; +} +[data-mce-block] { + display: block; +} +table[style*="border-width: 0px"], +.mce-item-table:not([border]), +.mce-item-table[border="0"], +table[style*="border-width: 0px"] td, +.mce-item-table:not([border]) td, +.mce-item-table[border="0"] td, +table[style*="border-width: 0px"] th, +.mce-item-table:not([border]) th, +.mce-item-table[border="0"] th, +table[style*="border-width: 0px"] caption, +.mce-item-table:not([border]) caption, +.mce-item-table[border="0"] caption { + border: 1px dashed #bbb; +} +.mce-visualblocks p, +.mce-visualblocks h1, +.mce-visualblocks h2, +.mce-visualblocks h3, +.mce-visualblocks h4, +.mce-visualblocks h5, +.mce-visualblocks h6, +.mce-visualblocks div:not([data-mce-bogus]), +.mce-visualblocks section, +.mce-visualblocks article, +.mce-visualblocks blockquote, +.mce-visualblocks address, +.mce-visualblocks pre, +.mce-visualblocks figure, +.mce-visualblocks figcaption, +.mce-visualblocks hgroup, +.mce-visualblocks aside, +.mce-visualblocks ul, +.mce-visualblocks ol, +.mce-visualblocks dl { + background-repeat: no-repeat; + border: 1px dashed #bbb; + margin-left: 3px; + padding-top: 10px; +} +.mce-visualblocks p { + background-image: url(data:image/gif;base64,R0lGODlhCQAJAJEAAAAAAP///7u7u////yH5BAEAAAMALAAAAAAJAAkAAAIQnG+CqCN/mlyvsRUpThG6AgA7); +} +.mce-visualblocks h1 { + background-image: url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybGu1JuxHoAfRNRW3TWXyF2YiRUAOw==); +} +.mce-visualblocks h2 { + background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8Hybbx4oOuqgTynJd6bGlWg3DkJzoaUAAAOw==); +} +.mce-visualblocks h3 { + background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIZjI8Hybbx4oOuqgTynJf2Ln2NOHpQpmhAAQA7); +} +.mce-visualblocks h4 { + background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxInR0zqeAdhtJlXwV1oCll2HaWgAAOw==); +} +.mce-visualblocks h5 { + background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxIoiuwjane4iq5GlW05GgIkIZUAAAOw==); +} +.mce-visualblocks h6 { + background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxIoiuwjan04jep1iZ1XRlAo5bVgAAOw==); +} +.mce-visualblocks div:not([data-mce-bogus]) { + background-image: url(data:image/gif;base64,R0lGODlhEgAKAIABALu7u////yH5BAEAAAEALAAAAAASAAoAAAIfjI9poI0cgDywrhuxfbrzDEbQM2Ei5aRjmoySW4pAAQA7); +} +.mce-visualblocks section { + background-image: url(data:image/gif;base64,R0lGODlhKAAKAIABALu7u////yH5BAEAAAEALAAAAAAoAAoAAAI5jI+pywcNY3sBWHdNrplytD2ellDeSVbp+GmWqaDqDMepc8t17Y4vBsK5hDyJMcI6KkuYU+jpjLoKADs=); +} +.mce-visualblocks article { + background-image: url(data:image/gif;base64,R0lGODlhKgAKAIABALu7u////yH5BAEAAAEALAAAAAAqAAoAAAI6jI+pywkNY3wG0GBvrsd2tXGYSGnfiF7ikpXemTpOiJScasYoDJJrjsG9gkCJ0ag6KhmaIe3pjDYBBQA7); +} +.mce-visualblocks blockquote { + background-image: url(data:image/gif;base64,R0lGODlhPgAKAIABALu7u////yH5BAEAAAEALAAAAAA+AAoAAAJPjI+py+0Knpz0xQDyuUhvfoGgIX5iSKZYgq5uNL5q69asZ8s5rrf0yZmpNkJZzFesBTu8TOlDVAabUyatguVhWduud3EyiUk45xhTTgMBBQA7); +} +.mce-visualblocks address { + background-image: url(data:image/gif;base64,R0lGODlhLQAKAIABALu7u////yH5BAEAAAEALAAAAAAtAAoAAAI/jI+pywwNozSP1gDyyZcjb3UaRpXkWaXmZW4OqKLhBmLs+K263DkJK7OJeifh7FicKD9A1/IpGdKkyFpNmCkAADs=); +} +.mce-visualblocks pre { + background-image: url(data:image/gif;base64,R0lGODlhFQAKAIABALu7uwAAACH5BAEAAAEALAAAAAAVAAoAAAIjjI+ZoN0cgDwSmnpz1NCueYERhnibZVKLNnbOq8IvKpJtVQAAOw==); +} +.mce-visualblocks figure { + background-image: url(data:image/gif;base64,R0lGODlhJAAKAIAAALu7u////yH5BAEAAAEALAAAAAAkAAoAAAI0jI+py+2fwAHUSFvD3RlvG4HIp4nX5JFSpnZUJ6LlrM52OE7uSWosBHScgkSZj7dDKnWAAgA7); +} +.mce-visualblocks figcaption { + border: 1px dashed #bbb; +} +.mce-visualblocks hgroup { + background-image: url(data:image/gif;base64,R0lGODlhJwAKAIABALu7uwAAACH5BAEAAAEALAAAAAAnAAoAAAI3jI+pywYNI3uB0gpsRtt5fFnfNZaVSYJil4Wo03Hv6Z62uOCgiXH1kZIIJ8NiIxRrAZNMZAtQAAA7); +} +.mce-visualblocks aside { + background-image: url(data:image/gif;base64,R0lGODlhHgAKAIABAKqqqv///yH5BAEAAAEALAAAAAAeAAoAAAItjI+pG8APjZOTzgtqy7I3f1yehmQcFY4WKZbqByutmW4aHUd6vfcVbgudgpYCADs=); +} +.mce-visualblocks ul { + background-image: url(data:image/gif;base64,R0lGODlhDQAKAIAAALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybGuYnqUVSjvw26DzzXiqIDlVwAAOw==); +} +.mce-visualblocks ol { + background-image: url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybH6HHt0qourxC6CvzXieHyeWQAAOw==); +} +.mce-visualblocks dl { + background-image: url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybEOnmOvUoWznTqeuEjNSCqeGRUAOw==); +} +.mce-visualblocks:not([dir=rtl]) p, +.mce-visualblocks:not([dir=rtl]) h1, +.mce-visualblocks:not([dir=rtl]) h2, +.mce-visualblocks:not([dir=rtl]) h3, +.mce-visualblocks:not([dir=rtl]) h4, +.mce-visualblocks:not([dir=rtl]) h5, +.mce-visualblocks:not([dir=rtl]) h6, +.mce-visualblocks:not([dir=rtl]) div:not([data-mce-bogus]), +.mce-visualblocks:not([dir=rtl]) section, +.mce-visualblocks:not([dir=rtl]) article, +.mce-visualblocks:not([dir=rtl]) blockquote, +.mce-visualblocks:not([dir=rtl]) address, +.mce-visualblocks:not([dir=rtl]) pre, +.mce-visualblocks:not([dir=rtl]) figure, +.mce-visualblocks:not([dir=rtl]) figcaption, +.mce-visualblocks:not([dir=rtl]) hgroup, +.mce-visualblocks:not([dir=rtl]) aside, +.mce-visualblocks:not([dir=rtl]) ul, +.mce-visualblocks:not([dir=rtl]) ol, +.mce-visualblocks:not([dir=rtl]) dl { + margin-left: 3px; +} +.mce-visualblocks[dir=rtl] p, +.mce-visualblocks[dir=rtl] h1, +.mce-visualblocks[dir=rtl] h2, +.mce-visualblocks[dir=rtl] h3, +.mce-visualblocks[dir=rtl] h4, +.mce-visualblocks[dir=rtl] h5, +.mce-visualblocks[dir=rtl] h6, +.mce-visualblocks[dir=rtl] div:not([data-mce-bogus]), +.mce-visualblocks[dir=rtl] section, +.mce-visualblocks[dir=rtl] article, +.mce-visualblocks[dir=rtl] blockquote, +.mce-visualblocks[dir=rtl] address, +.mce-visualblocks[dir=rtl] pre, +.mce-visualblocks[dir=rtl] figure, +.mce-visualblocks[dir=rtl] figcaption, +.mce-visualblocks[dir=rtl] hgroup, +.mce-visualblocks[dir=rtl] aside, +.mce-visualblocks[dir=rtl] ul, +.mce-visualblocks[dir=rtl] ol, +.mce-visualblocks[dir=rtl] dl { + background-position-x: right; + margin-right: 3px; +} +.mce-nbsp, +.mce-shy { + background: #aaa; +} +.mce-shy::after { + content: '-'; +} +body { + font-family: sans-serif; +} +table { + border-collapse: collapse; +} diff --git a/tinymce-resource/skins/ui/oxide/content.inline.css b/tinymce-resource/skins/ui/oxide/content.inline.css new file mode 100644 index 000000000..f1fe35322 --- /dev/null +++ b/tinymce-resource/skins/ui/oxide/content.inline.css @@ -0,0 +1,779 @@ +.mce-content-body .mce-item-anchor { + background: transparent url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D'8'%20height%3D'12'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20d%3D'M0%200L8%200%208%2012%204.09117821%209%200%2012z'%2F%3E%3C%2Fsvg%3E%0A") no-repeat center; +} +.mce-content-body .mce-item-anchor:empty { + cursor: default; + display: inline-block; + height: 12px !important; + padding: 0 2px; + -webkit-user-modify: read-only; + -moz-user-modify: read-only; + -webkit-user-select: all; + -moz-user-select: all; + user-select: all; + width: 8px !important; +} +.mce-content-body .mce-item-anchor:not(:empty) { + background-position-x: 2px; + display: inline-block; + padding-left: 12px; +} +.mce-content-body .mce-item-anchor[data-mce-selected] { + outline-offset: 1px; +} +.tox-comments-visible .tox-comment[contenteditable="false"]:not([data-mce-selected]), +.tox-comments-visible span.tox-comment img:not([data-mce-selected]), +.tox-comments-visible span.tox-comment > audio:not([data-mce-selected]), +.tox-comments-visible span.tox-comment > video:not([data-mce-selected]), +.tox-comments-visible span.tox-comment span.mce-preview-object:not([data-mce-selected]) { + outline: 3px solid #ffe89d; +} +.tox-comments-visible .tox-comment[contenteditable="false"][data-mce-annotation-active="true"]:not([data-mce-selected]) { + outline: 3px solid #fed635; +} +.tox-comments-visible span.tox-comment[data-mce-annotation-active="true"] img:not([data-mce-selected]), +.tox-comments-visible span.tox-comment[data-mce-annotation-active="true"] > audio:not([data-mce-selected]), +.tox-comments-visible span.tox-comment[data-mce-annotation-active="true"] > video:not([data-mce-selected]), +.tox-comments-visible span.tox-comment[data-mce-annotation-active="true"] span.mce-preview-object:not([data-mce-selected]) { + outline: 3px solid #fed635; +} +.tox-comments-visible span.tox-comment:not([data-mce-selected]) { + background-color: #ffe89d; + outline: none; +} +.tox-comments-visible span.tox-comment[data-mce-annotation-active="true"]:not([data-mce-selected="inline-boundary"]) { + background-color: #fed635; +} +.tox-checklist > li:not(.tox-checklist--hidden) { + list-style: none; + margin: 0.25em 0; +} +.tox-checklist > li:not(.tox-checklist--hidden)::before { + content: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cg%20id%3D%22checklist-unchecked%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Crect%20id%3D%22Rectangle%22%20width%3D%2215%22%20height%3D%2215%22%20x%3D%22.5%22%20y%3D%22.5%22%20fill-rule%3D%22nonzero%22%20stroke%3D%22%234C4C4C%22%20rx%3D%222%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%0A"); + cursor: pointer; + height: 1em; + margin-left: -1.5em; + margin-top: 0.125em; + position: absolute; + width: 1em; +} +.tox-checklist li:not(.tox-checklist--hidden).tox-checklist--checked::before { + content: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cg%20id%3D%22checklist-checked%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Crect%20id%3D%22Rectangle%22%20width%3D%2216%22%20height%3D%2216%22%20fill%3D%22%234099FF%22%20fill-rule%3D%22nonzero%22%20rx%3D%222%22%2F%3E%3Cpath%20id%3D%22Path%22%20fill%3D%22%23FFF%22%20fill-rule%3D%22nonzero%22%20d%3D%22M11.5703186%2C3.14417309%20C11.8516238%2C2.73724603%2012.4164781%2C2.62829933%2012.83558%2C2.89774797%20C13.260121%2C3.17069355%2013.3759736%2C3.72932262%2013.0909105%2C4.14168582%20L7.7580587%2C11.8560195%20C7.43776896%2C12.3193404%206.76483983%2C12.3852142%206.35607322%2C11.9948725%20L3.02491697%2C8.8138662%20C2.66090143%2C8.46625845%202.65798871%2C7.89594698%203.01850234%2C7.54483354%20C3.373942%2C7.19866177%203.94940006%2C7.19592841%204.30829608%2C7.5386474%20L6.85276923%2C9.9684299%20L11.5703186%2C3.14417309%20Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%0A"); +} +[dir=rtl] .tox-checklist > li:not(.tox-checklist--hidden)::before { + margin-left: 0; + margin-right: -1.5em; +} +/* stylelint-disable */ +/* http://prismjs.com/ */ +/** + * prism.js default theme for JavaScript, CSS and HTML + * Based on dabblet (http://dabblet.com) + * @author Lea Verou + */ +code[class*="language-"], +pre[class*="language-"] { + color: black; + background: none; + text-shadow: 0 1px white; + font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; + font-size: 1em; + text-align: left; + white-space: pre; + word-spacing: normal; + word-break: normal; + word-wrap: normal; + line-height: 1.5; + -moz-tab-size: 4; + tab-size: 4; + -webkit-hyphens: none; + hyphens: none; +} +pre[class*="language-"]::-moz-selection, +pre[class*="language-"] ::-moz-selection, +code[class*="language-"]::-moz-selection, +code[class*="language-"] ::-moz-selection { + text-shadow: none; + background: #b3d4fc; +} +pre[class*="language-"]::selection, +pre[class*="language-"] ::selection, +code[class*="language-"]::selection, +code[class*="language-"] ::selection { + text-shadow: none; + background: #b3d4fc; +} +@media print { + code[class*="language-"], + pre[class*="language-"] { + text-shadow: none; + } +} +/* Code blocks */ +pre[class*="language-"] { + padding: 1em; + margin: 0.5em 0; + overflow: auto; +} +:not(pre) > code[class*="language-"], +pre[class*="language-"] { + background: #f5f2f0; +} +/* Inline code */ +:not(pre) > code[class*="language-"] { + padding: 0.1em; + border-radius: 0.3em; + white-space: normal; +} +.token.comment, +.token.prolog, +.token.doctype, +.token.cdata { + color: slategray; +} +.token.punctuation { + color: #999; +} +.token.namespace { + opacity: 0.7; +} +.token.property, +.token.tag, +.token.boolean, +.token.number, +.token.constant, +.token.symbol, +.token.deleted { + color: #905; +} +.token.selector, +.token.attr-name, +.token.string, +.token.char, +.token.builtin, +.token.inserted { + color: #690; +} +.token.operator, +.token.entity, +.token.url, +.language-css .token.string, +.style .token.string { + color: #9a6e3a; + /* This background color was intended by the author of this theme. */ + background: hsla(0, 0%, 100%, 0.5); +} +.token.atrule, +.token.attr-value, +.token.keyword { + color: #07a; +} +.token.function, +.token.class-name { + color: #DD4A68; +} +.token.regex, +.token.important, +.token.variable { + color: #e90; +} +.token.important, +.token.bold { + font-weight: bold; +} +.token.italic { + font-style: italic; +} +.token.entity { + cursor: help; +} +/* stylelint-enable */ +.mce-content-body { + overflow-wrap: break-word; + word-wrap: break-word; +} +.mce-content-body .mce-visual-caret { + background-color: black; + background-color: currentColor; + position: absolute; +} +.mce-content-body .mce-visual-caret-hidden { + display: none; +} +.mce-content-body *[data-mce-caret] { + left: -1000px; + margin: 0; + padding: 0; + position: absolute; + right: auto; + top: 0; +} +.mce-content-body .mce-offscreen-selection { + left: -2000000px; + max-width: 1000000px; + position: absolute; +} +.mce-content-body *[contentEditable=false] { + cursor: default; +} +.mce-content-body *[contentEditable=true] { + cursor: text; +} +.tox-cursor-format-painter { + cursor: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%0A%20%20%3Cg%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%0A%20%20%20%20%3Cpath%20fill%3D%22%23000%22%20fill-rule%3D%22nonzero%22%20d%3D%22M15%2C6%20C15%2C5.45%2014.55%2C5%2014%2C5%20L6%2C5%20C5.45%2C5%205%2C5.45%205%2C6%20L5%2C10%20C5%2C10.55%205.45%2C11%206%2C11%20L14%2C11%20C14.55%2C11%2015%2C10.55%2015%2C10%20L15%2C9%20L16%2C9%20L16%2C12%20L9%2C12%20L9%2C19%20C9%2C19.55%209.45%2C20%2010%2C20%20L11%2C20%20C11.55%2C20%2012%2C19.55%2012%2C19%20L12%2C14%20L18%2C14%20L18%2C7%20L15%2C7%20L15%2C6%20Z%22%2F%3E%0A%20%20%20%20%3Cpath%20fill%3D%22%23000%22%20fill-rule%3D%22nonzero%22%20d%3D%22M1%2C1%20L8.25%2C1%20C8.66421356%2C1%209%2C1.33578644%209%2C1.75%20L9%2C1.75%20C9%2C2.16421356%208.66421356%2C2.5%208.25%2C2.5%20L2.5%2C2.5%20L2.5%2C8.25%20C2.5%2C8.66421356%202.16421356%2C9%201.75%2C9%20L1.75%2C9%20C1.33578644%2C9%201%2C8.66421356%201%2C8.25%20L1%2C1%20Z%22%2F%3E%0A%20%20%3C%2Fg%3E%0A%3C%2Fsvg%3E%0A"), default; +} +div.mce-footnotes hr { + margin-inline-end: auto; + margin-inline-start: 0; + width: 25%; +} +div.mce-footnotes li > a.mce-footnotes-backlink { + text-decoration: none; +} +@media print { + sup.mce-footnote a { + color: black; + text-decoration: none; + } + div.mce-footnotes { + break-inside: avoid; + width: 100%; + } + div.mce-footnotes li > a.mce-footnotes-backlink { + display: none; + } +} +.mce-content-body figure.align-left { + float: left; +} +.mce-content-body figure.align-right { + float: right; +} +.mce-content-body figure.image.align-center { + display: table; + margin-left: auto; + margin-right: auto; +} +.mce-preview-object { + border: 1px solid gray; + display: inline-block; + line-height: 0; + margin: 0 2px 0 2px; + position: relative; +} +.mce-preview-object .mce-shim { + background: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7); + height: 100%; + left: 0; + position: absolute; + top: 0; + width: 100%; +} +.mce-preview-object[data-mce-selected="2"] .mce-shim { + display: none; +} +.mce-content-body .mce-mergetag { + cursor: default !important; + -webkit-user-select: none; + -moz-user-select: none; + user-select: none; +} +.mce-content-body .mce-mergetag:hover { + background-color: rgba(0, 108, 231, 0.1); +} +.mce-content-body .mce-mergetag-affix { + background-color: rgba(0, 108, 231, 0.1); + color: #006ce7; +} +.mce-object { + background: transparent url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Cpath%20d%3D%22M4%203h16a1%201%200%200%201%201%201v16a1%201%200%200%201-1%201H4a1%201%200%200%201-1-1V4a1%201%200%200%201%201-1zm1%202v14h14V5H5zm4.79%202.565l5.64%204.028a.5.5%200%200%201%200%20.814l-5.64%204.028a.5.5%200%200%201-.79-.407V7.972a.5.5%200%200%201%20.79-.407z%22%2F%3E%3C%2Fsvg%3E%0A") no-repeat center; + border: 1px dashed #aaa; +} +.mce-pagebreak { + border: 1px dashed #aaa; + cursor: default; + display: block; + height: 5px; + margin-top: 15px; + page-break-before: always; + width: 100%; +} +@media print { + .mce-pagebreak { + border: 0; + } +} +.tiny-pageembed .mce-shim { + background: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7); + height: 100%; + left: 0; + position: absolute; + top: 0; + width: 100%; +} +.tiny-pageembed[data-mce-selected="2"] .mce-shim { + display: none; +} +.tiny-pageembed { + display: inline-block; + position: relative; +} +.tiny-pageembed--21by9, +.tiny-pageembed--16by9, +.tiny-pageembed--4by3, +.tiny-pageembed--1by1 { + display: block; + overflow: hidden; + padding: 0; + position: relative; + width: 100%; +} +.tiny-pageembed--21by9 { + padding-top: 42.857143%; +} +.tiny-pageembed--16by9 { + padding-top: 56.25%; +} +.tiny-pageembed--4by3 { + padding-top: 75%; +} +.tiny-pageembed--1by1 { + padding-top: 100%; +} +.tiny-pageembed--21by9 iframe, +.tiny-pageembed--16by9 iframe, +.tiny-pageembed--4by3 iframe, +.tiny-pageembed--1by1 iframe { + border: 0; + height: 100%; + left: 0; + position: absolute; + top: 0; + width: 100%; +} +.mce-content-body[data-mce-placeholder] { + position: relative; +} +.mce-content-body[data-mce-placeholder]:not(.mce-visualblocks)::before { + color: rgba(34, 47, 62, 0.7); + content: attr(data-mce-placeholder); + position: absolute; +} +.mce-content-body:not([dir=rtl])[data-mce-placeholder]:not(.mce-visualblocks)::before { + left: 1px; +} +.mce-content-body[dir=rtl][data-mce-placeholder]:not(.mce-visualblocks)::before { + right: 1px; +} +.mce-content-body div.mce-resizehandle { + background-color: #4099ff; + border-color: #4099ff; + border-style: solid; + border-width: 1px; + box-sizing: border-box; + height: 10px; + position: absolute; + width: 10px; + z-index: 1298; +} +.mce-content-body div.mce-resizehandle:hover { + background-color: #4099ff; +} +.mce-content-body div.mce-resizehandle:nth-of-type(1) { + cursor: nwse-resize; +} +.mce-content-body div.mce-resizehandle:nth-of-type(2) { + cursor: nesw-resize; +} +.mce-content-body div.mce-resizehandle:nth-of-type(3) { + cursor: nwse-resize; +} +.mce-content-body div.mce-resizehandle:nth-of-type(4) { + cursor: nesw-resize; +} +.mce-content-body .mce-resize-backdrop { + z-index: 10000; +} +.mce-content-body .mce-clonedresizable { + cursor: default; + opacity: 0.5; + outline: 1px dashed black; + position: absolute; + z-index: 10001; +} +.mce-content-body .mce-clonedresizable.mce-resizetable-columns th, +.mce-content-body .mce-clonedresizable.mce-resizetable-columns td { + border: 0; +} +.mce-content-body .mce-resize-helper { + background: #555; + background: rgba(0, 0, 0, 0.75); + border: 1px; + border-radius: 3px; + color: white; + display: none; + font-family: sans-serif; + font-size: 12px; + line-height: 14px; + margin: 5px 10px; + padding: 5px; + position: absolute; + white-space: nowrap; + z-index: 10002; +} +.tox-rtc-user-selection { + position: relative; +} +.tox-rtc-user-cursor { + bottom: 0; + cursor: default; + position: absolute; + top: 0; + width: 2px; +} +.tox-rtc-user-cursor::before { + background-color: inherit; + border-radius: 50%; + content: ''; + display: block; + height: 8px; + position: absolute; + right: -3px; + top: -3px; + width: 8px; +} +.tox-rtc-user-cursor:hover::after { + background-color: inherit; + border-radius: 100px; + box-sizing: border-box; + color: #fff; + content: attr(data-user); + display: block; + font-size: 12px; + font-weight: bold; + left: -5px; + min-height: 8px; + min-width: 8px; + padding: 0 12px; + position: absolute; + top: -11px; + white-space: nowrap; + z-index: 1000; +} +.tox-rtc-user-selection--1 .tox-rtc-user-cursor { + background-color: #2dc26b; +} +.tox-rtc-user-selection--2 .tox-rtc-user-cursor { + background-color: #e03e2d; +} +.tox-rtc-user-selection--3 .tox-rtc-user-cursor { + background-color: #f1c40f; +} +.tox-rtc-user-selection--4 .tox-rtc-user-cursor { + background-color: #3598db; +} +.tox-rtc-user-selection--5 .tox-rtc-user-cursor { + background-color: #b96ad9; +} +.tox-rtc-user-selection--6 .tox-rtc-user-cursor { + background-color: #e67e23; +} +.tox-rtc-user-selection--7 .tox-rtc-user-cursor { + background-color: #aaa69d; +} +.tox-rtc-user-selection--8 .tox-rtc-user-cursor { + background-color: #f368e0; +} +.tox-rtc-remote-image { + background: #eaeaea url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%2236%22%20height%3D%2212%22%20viewBox%3D%220%200%2036%2012%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%20%20%3Ccircle%20cx%3D%226%22%20cy%3D%226%22%20r%3D%223%22%20fill%3D%22rgba(0%2C%200%2C%200%2C%20.2)%22%3E%0A%20%20%20%20%3Canimate%20attributeName%3D%22r%22%20values%3D%223%3B5%3B3%22%20calcMode%3D%22linear%22%20dur%3D%221s%22%20repeatCount%3D%22indefinite%22%20%2F%3E%0A%20%20%3C%2Fcircle%3E%0A%20%20%3Ccircle%20cx%3D%2218%22%20cy%3D%226%22%20r%3D%223%22%20fill%3D%22rgba(0%2C%200%2C%200%2C%20.2)%22%3E%0A%20%20%20%20%3Canimate%20attributeName%3D%22r%22%20values%3D%223%3B5%3B3%22%20calcMode%3D%22linear%22%20begin%3D%22.33s%22%20dur%3D%221s%22%20repeatCount%3D%22indefinite%22%20%2F%3E%0A%20%20%3C%2Fcircle%3E%0A%20%20%3Ccircle%20cx%3D%2230%22%20cy%3D%226%22%20r%3D%223%22%20fill%3D%22rgba(0%2C%200%2C%200%2C%20.2)%22%3E%0A%20%20%20%20%3Canimate%20attributeName%3D%22r%22%20values%3D%223%3B5%3B3%22%20calcMode%3D%22linear%22%20begin%3D%22.66s%22%20dur%3D%221s%22%20repeatCount%3D%22indefinite%22%20%2F%3E%0A%20%20%3C%2Fcircle%3E%0A%3C%2Fsvg%3E%0A") no-repeat center center; + border: 1px solid #ccc; + min-height: 240px; + min-width: 320px; +} +.mce-match-marker { + background: #aaa; + color: #fff; +} +.mce-match-marker-selected { + background: #39f; + color: #fff; +} +.mce-match-marker-selected::-moz-selection { + background: #39f; + color: #fff; +} +.mce-match-marker-selected::selection { + background: #39f; + color: #fff; +} +.mce-content-body img[data-mce-selected], +.mce-content-body video[data-mce-selected], +.mce-content-body audio[data-mce-selected], +.mce-content-body object[data-mce-selected], +.mce-content-body embed[data-mce-selected], +.mce-content-body table[data-mce-selected], +.mce-content-body details[data-mce-selected] { + outline: 3px solid #b4d7ff; +} +.mce-content-body hr[data-mce-selected] { + outline: 3px solid #b4d7ff; + outline-offset: 1px; +} +.mce-content-body *[contentEditable=false] *[contentEditable=true]:focus { + outline: 3px solid #b4d7ff; +} +.mce-content-body *[contentEditable=false] *[contentEditable=true]:hover { + outline: 3px solid #b4d7ff; +} +.mce-content-body *[contentEditable=false][data-mce-selected] { + cursor: not-allowed; + outline: 3px solid #b4d7ff; +} +.mce-content-body.mce-content-readonly *[contentEditable=true]:focus, +.mce-content-body.mce-content-readonly *[contentEditable=true]:hover { + outline: none; +} +.mce-content-body *[data-mce-selected="inline-boundary"] { + background-color: #b4d7ff; +} +.mce-content-body .mce-edit-focus { + outline: 3px solid #b4d7ff; +} +.mce-content-body td[data-mce-selected], +.mce-content-body th[data-mce-selected] { + position: relative; +} +.mce-content-body td[data-mce-selected]::-moz-selection, +.mce-content-body th[data-mce-selected]::-moz-selection { + background: none; +} +.mce-content-body td[data-mce-selected]::selection, +.mce-content-body th[data-mce-selected]::selection { + background: none; +} +.mce-content-body td[data-mce-selected] *, +.mce-content-body th[data-mce-selected] * { + outline: none; + -webkit-touch-callout: none; + -webkit-user-select: none; + -moz-user-select: none; + user-select: none; +} +.mce-content-body td[data-mce-selected]::after, +.mce-content-body th[data-mce-selected]::after { + background-color: rgba(180, 215, 255, 0.7); + border: 1px solid rgba(180, 215, 255, 0.7); + bottom: -1px; + content: ''; + left: -1px; + mix-blend-mode: multiply; + position: absolute; + right: -1px; + top: -1px; +} +@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) { + .mce-content-body td[data-mce-selected]::after, + .mce-content-body th[data-mce-selected]::after { + border-color: rgba(0, 84, 180, 0.7); + } +} +.mce-content-body img[data-mce-selected]::-moz-selection { + background: none; +} +.mce-content-body img[data-mce-selected]::selection { + background: none; +} +.ephox-snooker-resizer-bar { + background-color: #b4d7ff; + opacity: 0; + -webkit-user-select: none; + -moz-user-select: none; + user-select: none; +} +.ephox-snooker-resizer-cols { + cursor: col-resize; +} +.ephox-snooker-resizer-rows { + cursor: row-resize; +} +.ephox-snooker-resizer-bar.ephox-snooker-resizer-bar-dragging { + opacity: 1; +} +.mce-spellchecker-word { + background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D'4'%20height%3D'4'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20stroke%3D'%23ff0000'%20fill%3D'none'%20stroke-linecap%3D'round'%20stroke-opacity%3D'.75'%20d%3D'M0%203L2%201%204%203'%2F%3E%3C%2Fsvg%3E%0A"); + background-position: 0 calc(100% + 1px); + background-repeat: repeat-x; + background-size: auto 6px; + cursor: default; + height: 2rem; +} +.mce-spellchecker-grammar { + background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D'4'%20height%3D'4'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20stroke%3D'%2300A835'%20fill%3D'none'%20stroke-linecap%3D'round'%20d%3D'M0%203L2%201%204%203'%2F%3E%3C%2Fsvg%3E%0A"); + background-position: 0 calc(100% + 1px); + background-repeat: repeat-x; + background-size: auto 6px; + cursor: default; +} +.mce-toc { + border: 1px solid gray; +} +.mce-toc h2 { + margin: 4px; +} +.mce-toc ul > li { + list-style-type: none; +} +[data-mce-block] { + display: block; +} +table[style*="border-width: 0px"], +.mce-item-table:not([border]), +.mce-item-table[border="0"], +table[style*="border-width: 0px"] td, +.mce-item-table:not([border]) td, +.mce-item-table[border="0"] td, +table[style*="border-width: 0px"] th, +.mce-item-table:not([border]) th, +.mce-item-table[border="0"] th, +table[style*="border-width: 0px"] caption, +.mce-item-table:not([border]) caption, +.mce-item-table[border="0"] caption { + border: 1px dashed #bbb; +} +.mce-visualblocks p, +.mce-visualblocks h1, +.mce-visualblocks h2, +.mce-visualblocks h3, +.mce-visualblocks h4, +.mce-visualblocks h5, +.mce-visualblocks h6, +.mce-visualblocks div:not([data-mce-bogus]), +.mce-visualblocks section, +.mce-visualblocks article, +.mce-visualblocks blockquote, +.mce-visualblocks address, +.mce-visualblocks pre, +.mce-visualblocks figure, +.mce-visualblocks figcaption, +.mce-visualblocks hgroup, +.mce-visualblocks aside, +.mce-visualblocks ul, +.mce-visualblocks ol, +.mce-visualblocks dl { + background-repeat: no-repeat; + border: 1px dashed #bbb; + margin-left: 3px; + padding-top: 10px; +} +.mce-visualblocks p { + background-image: url(data:image/gif;base64,R0lGODlhCQAJAJEAAAAAAP///7u7u////yH5BAEAAAMALAAAAAAJAAkAAAIQnG+CqCN/mlyvsRUpThG6AgA7); +} +.mce-visualblocks h1 { + background-image: url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybGu1JuxHoAfRNRW3TWXyF2YiRUAOw==); +} +.mce-visualblocks h2 { + background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8Hybbx4oOuqgTynJd6bGlWg3DkJzoaUAAAOw==); +} +.mce-visualblocks h3 { + background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIZjI8Hybbx4oOuqgTynJf2Ln2NOHpQpmhAAQA7); +} +.mce-visualblocks h4 { + background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxInR0zqeAdhtJlXwV1oCll2HaWgAAOw==); +} +.mce-visualblocks h5 { + background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxIoiuwjane4iq5GlW05GgIkIZUAAAOw==); +} +.mce-visualblocks h6 { + background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxIoiuwjan04jep1iZ1XRlAo5bVgAAOw==); +} +.mce-visualblocks div:not([data-mce-bogus]) { + background-image: url(data:image/gif;base64,R0lGODlhEgAKAIABALu7u////yH5BAEAAAEALAAAAAASAAoAAAIfjI9poI0cgDywrhuxfbrzDEbQM2Ei5aRjmoySW4pAAQA7); +} +.mce-visualblocks section { + background-image: url(data:image/gif;base64,R0lGODlhKAAKAIABALu7u////yH5BAEAAAEALAAAAAAoAAoAAAI5jI+pywcNY3sBWHdNrplytD2ellDeSVbp+GmWqaDqDMepc8t17Y4vBsK5hDyJMcI6KkuYU+jpjLoKADs=); +} +.mce-visualblocks article { + background-image: url(data:image/gif;base64,R0lGODlhKgAKAIABALu7u////yH5BAEAAAEALAAAAAAqAAoAAAI6jI+pywkNY3wG0GBvrsd2tXGYSGnfiF7ikpXemTpOiJScasYoDJJrjsG9gkCJ0ag6KhmaIe3pjDYBBQA7); +} +.mce-visualblocks blockquote { + background-image: url(data:image/gif;base64,R0lGODlhPgAKAIABALu7u////yH5BAEAAAEALAAAAAA+AAoAAAJPjI+py+0Knpz0xQDyuUhvfoGgIX5iSKZYgq5uNL5q69asZ8s5rrf0yZmpNkJZzFesBTu8TOlDVAabUyatguVhWduud3EyiUk45xhTTgMBBQA7); +} +.mce-visualblocks address { + background-image: url(data:image/gif;base64,R0lGODlhLQAKAIABALu7u////yH5BAEAAAEALAAAAAAtAAoAAAI/jI+pywwNozSP1gDyyZcjb3UaRpXkWaXmZW4OqKLhBmLs+K263DkJK7OJeifh7FicKD9A1/IpGdKkyFpNmCkAADs=); +} +.mce-visualblocks pre { + background-image: url(data:image/gif;base64,R0lGODlhFQAKAIABALu7uwAAACH5BAEAAAEALAAAAAAVAAoAAAIjjI+ZoN0cgDwSmnpz1NCueYERhnibZVKLNnbOq8IvKpJtVQAAOw==); +} +.mce-visualblocks figure { + background-image: url(data:image/gif;base64,R0lGODlhJAAKAIAAALu7u////yH5BAEAAAEALAAAAAAkAAoAAAI0jI+py+2fwAHUSFvD3RlvG4HIp4nX5JFSpnZUJ6LlrM52OE7uSWosBHScgkSZj7dDKnWAAgA7); +} +.mce-visualblocks figcaption { + border: 1px dashed #bbb; +} +.mce-visualblocks hgroup { + background-image: url(data:image/gif;base64,R0lGODlhJwAKAIABALu7uwAAACH5BAEAAAEALAAAAAAnAAoAAAI3jI+pywYNI3uB0gpsRtt5fFnfNZaVSYJil4Wo03Hv6Z62uOCgiXH1kZIIJ8NiIxRrAZNMZAtQAAA7); +} +.mce-visualblocks aside { + background-image: url(data:image/gif;base64,R0lGODlhHgAKAIABAKqqqv///yH5BAEAAAEALAAAAAAeAAoAAAItjI+pG8APjZOTzgtqy7I3f1yehmQcFY4WKZbqByutmW4aHUd6vfcVbgudgpYCADs=); +} +.mce-visualblocks ul { + background-image: url(data:image/gif;base64,R0lGODlhDQAKAIAAALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybGuYnqUVSjvw26DzzXiqIDlVwAAOw==); +} +.mce-visualblocks ol { + background-image: url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybH6HHt0qourxC6CvzXieHyeWQAAOw==); +} +.mce-visualblocks dl { + background-image: url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybEOnmOvUoWznTqeuEjNSCqeGRUAOw==); +} +.mce-visualblocks:not([dir=rtl]) p, +.mce-visualblocks:not([dir=rtl]) h1, +.mce-visualblocks:not([dir=rtl]) h2, +.mce-visualblocks:not([dir=rtl]) h3, +.mce-visualblocks:not([dir=rtl]) h4, +.mce-visualblocks:not([dir=rtl]) h5, +.mce-visualblocks:not([dir=rtl]) h6, +.mce-visualblocks:not([dir=rtl]) div:not([data-mce-bogus]), +.mce-visualblocks:not([dir=rtl]) section, +.mce-visualblocks:not([dir=rtl]) article, +.mce-visualblocks:not([dir=rtl]) blockquote, +.mce-visualblocks:not([dir=rtl]) address, +.mce-visualblocks:not([dir=rtl]) pre, +.mce-visualblocks:not([dir=rtl]) figure, +.mce-visualblocks:not([dir=rtl]) figcaption, +.mce-visualblocks:not([dir=rtl]) hgroup, +.mce-visualblocks:not([dir=rtl]) aside, +.mce-visualblocks:not([dir=rtl]) ul, +.mce-visualblocks:not([dir=rtl]) ol, +.mce-visualblocks:not([dir=rtl]) dl { + margin-left: 3px; +} +.mce-visualblocks[dir=rtl] p, +.mce-visualblocks[dir=rtl] h1, +.mce-visualblocks[dir=rtl] h2, +.mce-visualblocks[dir=rtl] h3, +.mce-visualblocks[dir=rtl] h4, +.mce-visualblocks[dir=rtl] h5, +.mce-visualblocks[dir=rtl] h6, +.mce-visualblocks[dir=rtl] div:not([data-mce-bogus]), +.mce-visualblocks[dir=rtl] section, +.mce-visualblocks[dir=rtl] article, +.mce-visualblocks[dir=rtl] blockquote, +.mce-visualblocks[dir=rtl] address, +.mce-visualblocks[dir=rtl] pre, +.mce-visualblocks[dir=rtl] figure, +.mce-visualblocks[dir=rtl] figcaption, +.mce-visualblocks[dir=rtl] hgroup, +.mce-visualblocks[dir=rtl] aside, +.mce-visualblocks[dir=rtl] ul, +.mce-visualblocks[dir=rtl] ol, +.mce-visualblocks[dir=rtl] dl { + background-position-x: right; + margin-right: 3px; +} +.mce-nbsp, +.mce-shy { + background: #aaa; +} +.mce-shy::after { + content: '-'; +} diff --git a/tinymce-resource/skins/ui/oxide/content.inline.js b/tinymce-resource/skins/ui/oxide/content.inline.js new file mode 100644 index 000000000..b54b225ef --- /dev/null +++ b/tinymce-resource/skins/ui/oxide/content.inline.js @@ -0,0 +1,2 @@ +tinymce.Resource.add('ui/default/content.inline.css', ".mce-content-body .mce-item-anchor{background:transparent url(\"data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D'8'%20height%3D'12'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20d%3D'M0%200L8%200%208%2012%204.09117821%209%200%2012z'%2F%3E%3C%2Fsvg%3E%0A\") no-repeat center}.mce-content-body .mce-item-anchor:empty{cursor:default;display:inline-block;height:12px!important;padding:0 2px;-webkit-user-modify:read-only;-moz-user-modify:read-only;-webkit-user-select:all;-moz-user-select:all;user-select:all;width:8px!important}.mce-content-body .mce-item-anchor:not(:empty){background-position-x:2px;display:inline-block;padding-left:12px}.mce-content-body .mce-item-anchor[data-mce-selected]{outline-offset:1px}.tox-comments-visible .tox-comment[contenteditable=false]:not([data-mce-selected]),.tox-comments-visible span.tox-comment img:not([data-mce-selected]),.tox-comments-visible span.tox-comment span.mce-preview-object:not([data-mce-selected]),.tox-comments-visible span.tox-comment>audio:not([data-mce-selected]),.tox-comments-visible span.tox-comment>video:not([data-mce-selected]){outline:3px solid #ffe89d}.tox-comments-visible .tox-comment[contenteditable=false][data-mce-annotation-active=true]:not([data-mce-selected]){outline:3px solid #fed635}.tox-comments-visible span.tox-comment[data-mce-annotation-active=true] img:not([data-mce-selected]),.tox-comments-visible span.tox-comment[data-mce-annotation-active=true] span.mce-preview-object:not([data-mce-selected]),.tox-comments-visible span.tox-comment[data-mce-annotation-active=true]>audio:not([data-mce-selected]),.tox-comments-visible span.tox-comment[data-mce-annotation-active=true]>video:not([data-mce-selected]){outline:3px solid #fed635}.tox-comments-visible span.tox-comment:not([data-mce-selected]){background-color:#ffe89d;outline:0}.tox-comments-visible span.tox-comment[data-mce-annotation-active=true]:not([data-mce-selected=inline-boundary]){background-color:#fed635}.tox-checklist>li:not(.tox-checklist--hidden){list-style:none;margin:.25em 0}.tox-checklist>li:not(.tox-checklist--hidden)::before{content:url(\"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cg%20id%3D%22checklist-unchecked%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Crect%20id%3D%22Rectangle%22%20width%3D%2215%22%20height%3D%2215%22%20x%3D%22.5%22%20y%3D%22.5%22%20fill-rule%3D%22nonzero%22%20stroke%3D%22%234C4C4C%22%20rx%3D%222%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%0A\");cursor:pointer;height:1em;margin-left:-1.5em;margin-top:.125em;position:absolute;width:1em}.tox-checklist li:not(.tox-checklist--hidden).tox-checklist--checked::before{content:url(\"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cg%20id%3D%22checklist-checked%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Crect%20id%3D%22Rectangle%22%20width%3D%2216%22%20height%3D%2216%22%20fill%3D%22%234099FF%22%20fill-rule%3D%22nonzero%22%20rx%3D%222%22%2F%3E%3Cpath%20id%3D%22Path%22%20fill%3D%22%23FFF%22%20fill-rule%3D%22nonzero%22%20d%3D%22M11.5703186%2C3.14417309%20C11.8516238%2C2.73724603%2012.4164781%2C2.62829933%2012.83558%2C2.89774797%20C13.260121%2C3.17069355%2013.3759736%2C3.72932262%2013.0909105%2C4.14168582%20L7.7580587%2C11.8560195%20C7.43776896%2C12.3193404%206.76483983%2C12.3852142%206.35607322%2C11.9948725%20L3.02491697%2C8.8138662%20C2.66090143%2C8.46625845%202.65798871%2C7.89594698%203.01850234%2C7.54483354%20C3.373942%2C7.19866177%203.94940006%2C7.19592841%204.30829608%2C7.5386474%20L6.85276923%2C9.9684299%20L11.5703186%2C3.14417309%20Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%0A\")}[dir=rtl] .tox-checklist>li:not(.tox-checklist--hidden)::before{margin-left:0;margin-right:-1.5em}code[class*=language-],pre[class*=language-]{color:#000;background:0 0;text-shadow:0 1px #fff;font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;tab-size:4;-webkit-hyphens:none;hyphens:none}code[class*=language-] ::-moz-selection,code[class*=language-]::-moz-selection,pre[class*=language-] ::-moz-selection,pre[class*=language-]::-moz-selection{text-shadow:none;background:#b3d4fc}code[class*=language-] ::selection,code[class*=language-]::selection,pre[class*=language-] ::selection,pre[class*=language-]::selection{text-shadow:none;background:#b3d4fc}@media print{code[class*=language-],pre[class*=language-]{text-shadow:none}}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background:#f5f2f0}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#708090}.token.punctuation{color:#999}.token.namespace{opacity:.7}.token.boolean,.token.constant,.token.deleted,.token.number,.token.property,.token.symbol,.token.tag{color:#905}.token.attr-name,.token.builtin,.token.char,.token.inserted,.token.selector,.token.string{color:#690}.language-css .token.string,.style .token.string,.token.entity,.token.operator,.token.url{color:#9a6e3a;background:hsla(0,0%,100%,.5)}.token.atrule,.token.attr-value,.token.keyword{color:#07a}.token.class-name,.token.function{color:#dd4a68}.token.important,.token.regex,.token.variable{color:#e90}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}.mce-content-body{overflow-wrap:break-word;word-wrap:break-word}.mce-content-body .mce-visual-caret{background-color:#000;background-color:currentColor;position:absolute}.mce-content-body .mce-visual-caret-hidden{display:none}.mce-content-body [data-mce-caret]{left:-1000px;margin:0;padding:0;position:absolute;right:auto;top:0}.mce-content-body .mce-offscreen-selection{left:-2000000px;max-width:1000000px;position:absolute}.mce-content-body [contentEditable=false]{cursor:default}.mce-content-body [contentEditable=true]{cursor:text}.tox-cursor-format-painter{cursor:url(\"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%0A%20%20%3Cg%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%0A%20%20%20%20%3Cpath%20fill%3D%22%23000%22%20fill-rule%3D%22nonzero%22%20d%3D%22M15%2C6%20C15%2C5.45%2014.55%2C5%2014%2C5%20L6%2C5%20C5.45%2C5%205%2C5.45%205%2C6%20L5%2C10%20C5%2C10.55%205.45%2C11%206%2C11%20L14%2C11%20C14.55%2C11%2015%2C10.55%2015%2C10%20L15%2C9%20L16%2C9%20L16%2C12%20L9%2C12%20L9%2C19%20C9%2C19.55%209.45%2C20%2010%2C20%20L11%2C20%20C11.55%2C20%2012%2C19.55%2012%2C19%20L12%2C14%20L18%2C14%20L18%2C7%20L15%2C7%20L15%2C6%20Z%22%2F%3E%0A%20%20%20%20%3Cpath%20fill%3D%22%23000%22%20fill-rule%3D%22nonzero%22%20d%3D%22M1%2C1%20L8.25%2C1%20C8.66421356%2C1%209%2C1.33578644%209%2C1.75%20L9%2C1.75%20C9%2C2.16421356%208.66421356%2C2.5%208.25%2C2.5%20L2.5%2C2.5%20L2.5%2C8.25%20C2.5%2C8.66421356%202.16421356%2C9%201.75%2C9%20L1.75%2C9%20C1.33578644%2C9%201%2C8.66421356%201%2C8.25%20L1%2C1%20Z%22%2F%3E%0A%20%20%3C%2Fg%3E%0A%3C%2Fsvg%3E%0A\"),default}div.mce-footnotes hr{margin-inline-end:auto;margin-inline-start:0;width:25%}div.mce-footnotes li>a.mce-footnotes-backlink{text-decoration:none}@media print{sup.mce-footnote a{color:#000;text-decoration:none}div.mce-footnotes{break-inside:avoid;width:100%}div.mce-footnotes li>a.mce-footnotes-backlink{display:none}}.mce-content-body figure.align-left{float:left}.mce-content-body figure.align-right{float:right}.mce-content-body figure.image.align-center{display:table;margin-left:auto;margin-right:auto}.mce-preview-object{border:1px solid gray;display:inline-block;line-height:0;margin:0 2px 0 2px;position:relative}.mce-preview-object .mce-shim{background:url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);height:100%;left:0;position:absolute;top:0;width:100%}.mce-preview-object[data-mce-selected=\"2\"] .mce-shim{display:none}.mce-content-body .mce-mergetag{cursor:default!important;-webkit-user-select:none;-moz-user-select:none;user-select:none}.mce-content-body .mce-mergetag:hover{background-color:rgba(0,108,231,.1)}.mce-content-body .mce-mergetag-affix{background-color:rgba(0,108,231,.1);color:#006ce7}.mce-object{background:transparent url(\"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Cpath%20d%3D%22M4%203h16a1%201%200%200%201%201%201v16a1%201%200%200%201-1%201H4a1%201%200%200%201-1-1V4a1%201%200%200%201%201-1zm1%202v14h14V5H5zm4.79%202.565l5.64%204.028a.5.5%200%200%201%200%20.814l-5.64%204.028a.5.5%200%200%201-.79-.407V7.972a.5.5%200%200%201%20.79-.407z%22%2F%3E%3C%2Fsvg%3E%0A\") no-repeat center;border:1px dashed #aaa}.mce-pagebreak{border:1px dashed #aaa;cursor:default;display:block;height:5px;margin-top:15px;page-break-before:always;width:100%}@media print{.mce-pagebreak{border:0}}.tiny-pageembed .mce-shim{background:url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);height:100%;left:0;position:absolute;top:0;width:100%}.tiny-pageembed[data-mce-selected=\"2\"] .mce-shim{display:none}.tiny-pageembed{display:inline-block;position:relative}.tiny-pageembed--16by9,.tiny-pageembed--1by1,.tiny-pageembed--21by9,.tiny-pageembed--4by3{display:block;overflow:hidden;padding:0;position:relative;width:100%}.tiny-pageembed--21by9{padding-top:42.857143%}.tiny-pageembed--16by9{padding-top:56.25%}.tiny-pageembed--4by3{padding-top:75%}.tiny-pageembed--1by1{padding-top:100%}.tiny-pageembed--16by9 iframe,.tiny-pageembed--1by1 iframe,.tiny-pageembed--21by9 iframe,.tiny-pageembed--4by3 iframe{border:0;height:100%;left:0;position:absolute;top:0;width:100%}.mce-content-body[data-mce-placeholder]{position:relative}.mce-content-body[data-mce-placeholder]:not(.mce-visualblocks)::before{color:rgba(34,47,62,.7);content:attr(data-mce-placeholder);position:absolute}.mce-content-body:not([dir=rtl])[data-mce-placeholder]:not(.mce-visualblocks)::before{left:1px}.mce-content-body[dir=rtl][data-mce-placeholder]:not(.mce-visualblocks)::before{right:1px}.mce-content-body div.mce-resizehandle{background-color:#4099ff;border-color:#4099ff;border-style:solid;border-width:1px;box-sizing:border-box;height:10px;position:absolute;width:10px;z-index:1298}.mce-content-body div.mce-resizehandle:hover{background-color:#4099ff}.mce-content-body div.mce-resizehandle:nth-of-type(1){cursor:nwse-resize}.mce-content-body div.mce-resizehandle:nth-of-type(2){cursor:nesw-resize}.mce-content-body div.mce-resizehandle:nth-of-type(3){cursor:nwse-resize}.mce-content-body div.mce-resizehandle:nth-of-type(4){cursor:nesw-resize}.mce-content-body .mce-resize-backdrop{z-index:10000}.mce-content-body .mce-clonedresizable{cursor:default;opacity:.5;outline:1px dashed #000;position:absolute;z-index:10001}.mce-content-body .mce-clonedresizable.mce-resizetable-columns td,.mce-content-body .mce-clonedresizable.mce-resizetable-columns th{border:0}.mce-content-body .mce-resize-helper{background:#555;background:rgba(0,0,0,.75);border:1px;border-radius:3px;color:#fff;display:none;font-family:sans-serif;font-size:12px;line-height:14px;margin:5px 10px;padding:5px;position:absolute;white-space:nowrap;z-index:10002}.tox-rtc-user-selection{position:relative}.tox-rtc-user-cursor{bottom:0;cursor:default;position:absolute;top:0;width:2px}.tox-rtc-user-cursor::before{background-color:inherit;border-radius:50%;content:'';display:block;height:8px;position:absolute;right:-3px;top:-3px;width:8px}.tox-rtc-user-cursor:hover::after{background-color:inherit;border-radius:100px;box-sizing:border-box;color:#fff;content:attr(data-user);display:block;font-size:12px;font-weight:700;left:-5px;min-height:8px;min-width:8px;padding:0 12px;position:absolute;top:-11px;white-space:nowrap;z-index:1000}.tox-rtc-user-selection--1 .tox-rtc-user-cursor{background-color:#2dc26b}.tox-rtc-user-selection--2 .tox-rtc-user-cursor{background-color:#e03e2d}.tox-rtc-user-selection--3 .tox-rtc-user-cursor{background-color:#f1c40f}.tox-rtc-user-selection--4 .tox-rtc-user-cursor{background-color:#3598db}.tox-rtc-user-selection--5 .tox-rtc-user-cursor{background-color:#b96ad9}.tox-rtc-user-selection--6 .tox-rtc-user-cursor{background-color:#e67e23}.tox-rtc-user-selection--7 .tox-rtc-user-cursor{background-color:#aaa69d}.tox-rtc-user-selection--8 .tox-rtc-user-cursor{background-color:#f368e0}.tox-rtc-remote-image{background:#eaeaea url(\"data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%2236%22%20height%3D%2212%22%20viewBox%3D%220%200%2036%2012%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%20%20%3Ccircle%20cx%3D%226%22%20cy%3D%226%22%20r%3D%223%22%20fill%3D%22rgba(0%2C%200%2C%200%2C%20.2)%22%3E%0A%20%20%20%20%3Canimate%20attributeName%3D%22r%22%20values%3D%223%3B5%3B3%22%20calcMode%3D%22linear%22%20dur%3D%221s%22%20repeatCount%3D%22indefinite%22%20%2F%3E%0A%20%20%3C%2Fcircle%3E%0A%20%20%3Ccircle%20cx%3D%2218%22%20cy%3D%226%22%20r%3D%223%22%20fill%3D%22rgba(0%2C%200%2C%200%2C%20.2)%22%3E%0A%20%20%20%20%3Canimate%20attributeName%3D%22r%22%20values%3D%223%3B5%3B3%22%20calcMode%3D%22linear%22%20begin%3D%22.33s%22%20dur%3D%221s%22%20repeatCount%3D%22indefinite%22%20%2F%3E%0A%20%20%3C%2Fcircle%3E%0A%20%20%3Ccircle%20cx%3D%2230%22%20cy%3D%226%22%20r%3D%223%22%20fill%3D%22rgba(0%2C%200%2C%200%2C%20.2)%22%3E%0A%20%20%20%20%3Canimate%20attributeName%3D%22r%22%20values%3D%223%3B5%3B3%22%20calcMode%3D%22linear%22%20begin%3D%22.66s%22%20dur%3D%221s%22%20repeatCount%3D%22indefinite%22%20%2F%3E%0A%20%20%3C%2Fcircle%3E%0A%3C%2Fsvg%3E%0A\") no-repeat center center;border:1px solid #ccc;min-height:240px;min-width:320px}.mce-match-marker{background:#aaa;color:#fff}.mce-match-marker-selected{background:#39f;color:#fff}.mce-match-marker-selected::-moz-selection{background:#39f;color:#fff}.mce-match-marker-selected::selection{background:#39f;color:#fff}.mce-content-body audio[data-mce-selected],.mce-content-body details[data-mce-selected],.mce-content-body embed[data-mce-selected],.mce-content-body img[data-mce-selected],.mce-content-body object[data-mce-selected],.mce-content-body table[data-mce-selected],.mce-content-body video[data-mce-selected]{outline:3px solid #b4d7ff}.mce-content-body hr[data-mce-selected]{outline:3px solid #b4d7ff;outline-offset:1px}.mce-content-body [contentEditable=false] [contentEditable=true]:focus{outline:3px solid #b4d7ff}.mce-content-body [contentEditable=false] [contentEditable=true]:hover{outline:3px solid #b4d7ff}.mce-content-body [contentEditable=false][data-mce-selected]{cursor:not-allowed;outline:3px solid #b4d7ff}.mce-content-body.mce-content-readonly [contentEditable=true]:focus,.mce-content-body.mce-content-readonly [contentEditable=true]:hover{outline:0}.mce-content-body [data-mce-selected=inline-boundary]{background-color:#b4d7ff}.mce-content-body .mce-edit-focus{outline:3px solid #b4d7ff}.mce-content-body td[data-mce-selected],.mce-content-body th[data-mce-selected]{position:relative}.mce-content-body td[data-mce-selected]::-moz-selection,.mce-content-body th[data-mce-selected]::-moz-selection{background:0 0}.mce-content-body td[data-mce-selected]::selection,.mce-content-body th[data-mce-selected]::selection{background:0 0}.mce-content-body td[data-mce-selected] *,.mce-content-body th[data-mce-selected] *{outline:0;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.mce-content-body td[data-mce-selected]::after,.mce-content-body th[data-mce-selected]::after{background-color:rgba(180,215,255,.7);border:1px solid rgba(180,215,255,.7);bottom:-1px;content:'';left:-1px;mix-blend-mode:multiply;position:absolute;right:-1px;top:-1px}@media screen and (-ms-high-contrast:active),(-ms-high-contrast:none){.mce-content-body td[data-mce-selected]::after,.mce-content-body th[data-mce-selected]::after{border-color:rgba(0,84,180,.7)}}.mce-content-body img[data-mce-selected]::-moz-selection{background:0 0}.mce-content-body img[data-mce-selected]::selection{background:0 0}.ephox-snooker-resizer-bar{background-color:#b4d7ff;opacity:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ephox-snooker-resizer-cols{cursor:col-resize}.ephox-snooker-resizer-rows{cursor:row-resize}.ephox-snooker-resizer-bar.ephox-snooker-resizer-bar-dragging{opacity:1}.mce-spellchecker-word{background-image:url(\"data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D'4'%20height%3D'4'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20stroke%3D'%23ff0000'%20fill%3D'none'%20stroke-linecap%3D'round'%20stroke-opacity%3D'.75'%20d%3D'M0%203L2%201%204%203'%2F%3E%3C%2Fsvg%3E%0A\");background-position:0 calc(100% + 1px);background-repeat:repeat-x;background-size:auto 6px;cursor:default;height:2rem}.mce-spellchecker-grammar{background-image:url(\"data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D'4'%20height%3D'4'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20stroke%3D'%2300A835'%20fill%3D'none'%20stroke-linecap%3D'round'%20d%3D'M0%203L2%201%204%203'%2F%3E%3C%2Fsvg%3E%0A\");background-position:0 calc(100% + 1px);background-repeat:repeat-x;background-size:auto 6px;cursor:default}.mce-toc{border:1px solid gray}.mce-toc h2{margin:4px}.mce-toc ul>li{list-style-type:none}[data-mce-block]{display:block}.mce-item-table:not([border]),.mce-item-table:not([border]) caption,.mce-item-table:not([border]) td,.mce-item-table:not([border]) th,.mce-item-table[border=\"0\"],.mce-item-table[border=\"0\"] caption,.mce-item-table[border=\"0\"] td,.mce-item-table[border=\"0\"] th,table[style*=\"border-width: 0px\"],table[style*=\"border-width: 0px\"] caption,table[style*=\"border-width: 0px\"] td,table[style*=\"border-width: 0px\"] th{border:1px dashed #bbb}.mce-visualblocks address,.mce-visualblocks article,.mce-visualblocks aside,.mce-visualblocks blockquote,.mce-visualblocks div:not([data-mce-bogus]),.mce-visualblocks dl,.mce-visualblocks figcaption,.mce-visualblocks figure,.mce-visualblocks h1,.mce-visualblocks h2,.mce-visualblocks h3,.mce-visualblocks h4,.mce-visualblocks h5,.mce-visualblocks h6,.mce-visualblocks hgroup,.mce-visualblocks ol,.mce-visualblocks p,.mce-visualblocks pre,.mce-visualblocks section,.mce-visualblocks ul{background-repeat:no-repeat;border:1px dashed #bbb;margin-left:3px;padding-top:10px}.mce-visualblocks p{background-image:url(data:image/gif;base64,R0lGODlhCQAJAJEAAAAAAP///7u7u////yH5BAEAAAMALAAAAAAJAAkAAAIQnG+CqCN/mlyvsRUpThG6AgA7)}.mce-visualblocks h1{background-image:url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybGu1JuxHoAfRNRW3TWXyF2YiRUAOw==)}.mce-visualblocks h2{background-image:url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8Hybbx4oOuqgTynJd6bGlWg3DkJzoaUAAAOw==)}.mce-visualblocks h3{background-image:url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIZjI8Hybbx4oOuqgTynJf2Ln2NOHpQpmhAAQA7)}.mce-visualblocks h4{background-image:url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxInR0zqeAdhtJlXwV1oCll2HaWgAAOw==)}.mce-visualblocks h5{background-image:url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxIoiuwjane4iq5GlW05GgIkIZUAAAOw==)}.mce-visualblocks h6{background-image:url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxIoiuwjan04jep1iZ1XRlAo5bVgAAOw==)}.mce-visualblocks div:not([data-mce-bogus]){background-image:url(data:image/gif;base64,R0lGODlhEgAKAIABALu7u////yH5BAEAAAEALAAAAAASAAoAAAIfjI9poI0cgDywrhuxfbrzDEbQM2Ei5aRjmoySW4pAAQA7)}.mce-visualblocks section{background-image:url(data:image/gif;base64,R0lGODlhKAAKAIABALu7u////yH5BAEAAAEALAAAAAAoAAoAAAI5jI+pywcNY3sBWHdNrplytD2ellDeSVbp+GmWqaDqDMepc8t17Y4vBsK5hDyJMcI6KkuYU+jpjLoKADs=)}.mce-visualblocks article{background-image:url(data:image/gif;base64,R0lGODlhKgAKAIABALu7u////yH5BAEAAAEALAAAAAAqAAoAAAI6jI+pywkNY3wG0GBvrsd2tXGYSGnfiF7ikpXemTpOiJScasYoDJJrjsG9gkCJ0ag6KhmaIe3pjDYBBQA7)}.mce-visualblocks blockquote{background-image:url(data:image/gif;base64,R0lGODlhPgAKAIABALu7u////yH5BAEAAAEALAAAAAA+AAoAAAJPjI+py+0Knpz0xQDyuUhvfoGgIX5iSKZYgq5uNL5q69asZ8s5rrf0yZmpNkJZzFesBTu8TOlDVAabUyatguVhWduud3EyiUk45xhTTgMBBQA7)}.mce-visualblocks address{background-image:url(data:image/gif;base64,R0lGODlhLQAKAIABALu7u////yH5BAEAAAEALAAAAAAtAAoAAAI/jI+pywwNozSP1gDyyZcjb3UaRpXkWaXmZW4OqKLhBmLs+K263DkJK7OJeifh7FicKD9A1/IpGdKkyFpNmCkAADs=)}.mce-visualblocks pre{background-image:url(data:image/gif;base64,R0lGODlhFQAKAIABALu7uwAAACH5BAEAAAEALAAAAAAVAAoAAAIjjI+ZoN0cgDwSmnpz1NCueYERhnibZVKLNnbOq8IvKpJtVQAAOw==)}.mce-visualblocks figure{background-image:url(data:image/gif;base64,R0lGODlhJAAKAIAAALu7u////yH5BAEAAAEALAAAAAAkAAoAAAI0jI+py+2fwAHUSFvD3RlvG4HIp4nX5JFSpnZUJ6LlrM52OE7uSWosBHScgkSZj7dDKnWAAgA7)}.mce-visualblocks figcaption{border:1px dashed #bbb}.mce-visualblocks hgroup{background-image:url(data:image/gif;base64,R0lGODlhJwAKAIABALu7uwAAACH5BAEAAAEALAAAAAAnAAoAAAI3jI+pywYNI3uB0gpsRtt5fFnfNZaVSYJil4Wo03Hv6Z62uOCgiXH1kZIIJ8NiIxRrAZNMZAtQAAA7)}.mce-visualblocks aside{background-image:url(data:image/gif;base64,R0lGODlhHgAKAIABAKqqqv///yH5BAEAAAEALAAAAAAeAAoAAAItjI+pG8APjZOTzgtqy7I3f1yehmQcFY4WKZbqByutmW4aHUd6vfcVbgudgpYCADs=)}.mce-visualblocks ul{background-image:url(data:image/gif;base64,R0lGODlhDQAKAIAAALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybGuYnqUVSjvw26DzzXiqIDlVwAAOw==)}.mce-visualblocks ol{background-image:url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybH6HHt0qourxC6CvzXieHyeWQAAOw==)}.mce-visualblocks dl{background-image:url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybEOnmOvUoWznTqeuEjNSCqeGRUAOw==)}.mce-visualblocks:not([dir=rtl]) address,.mce-visualblocks:not([dir=rtl]) article,.mce-visualblocks:not([dir=rtl]) aside,.mce-visualblocks:not([dir=rtl]) blockquote,.mce-visualblocks:not([dir=rtl]) div:not([data-mce-bogus]),.mce-visualblocks:not([dir=rtl]) dl,.mce-visualblocks:not([dir=rtl]) figcaption,.mce-visualblocks:not([dir=rtl]) figure,.mce-visualblocks:not([dir=rtl]) h1,.mce-visualblocks:not([dir=rtl]) h2,.mce-visualblocks:not([dir=rtl]) h3,.mce-visualblocks:not([dir=rtl]) h4,.mce-visualblocks:not([dir=rtl]) h5,.mce-visualblocks:not([dir=rtl]) h6,.mce-visualblocks:not([dir=rtl]) hgroup,.mce-visualblocks:not([dir=rtl]) ol,.mce-visualblocks:not([dir=rtl]) p,.mce-visualblocks:not([dir=rtl]) pre,.mce-visualblocks:not([dir=rtl]) section,.mce-visualblocks:not([dir=rtl]) ul{margin-left:3px}.mce-visualblocks[dir=rtl] address,.mce-visualblocks[dir=rtl] article,.mce-visualblocks[dir=rtl] aside,.mce-visualblocks[dir=rtl] blockquote,.mce-visualblocks[dir=rtl] div:not([data-mce-bogus]),.mce-visualblocks[dir=rtl] dl,.mce-visualblocks[dir=rtl] figcaption,.mce-visualblocks[dir=rtl] figure,.mce-visualblocks[dir=rtl] h1,.mce-visualblocks[dir=rtl] h2,.mce-visualblocks[dir=rtl] h3,.mce-visualblocks[dir=rtl] h4,.mce-visualblocks[dir=rtl] h5,.mce-visualblocks[dir=rtl] h6,.mce-visualblocks[dir=rtl] hgroup,.mce-visualblocks[dir=rtl] ol,.mce-visualblocks[dir=rtl] p,.mce-visualblocks[dir=rtl] pre,.mce-visualblocks[dir=rtl] section,.mce-visualblocks[dir=rtl] ul{background-position-x:right;margin-right:3px}.mce-nbsp,.mce-shy{background:#aaa}.mce-shy::after{content:'-'}") +//# sourceMappingURL=content.inline.js.map diff --git a/tinymce-resource/skins/ui/oxide/content.inline.min.css b/tinymce-resource/skins/ui/oxide/content.inline.min.css new file mode 100644 index 000000000..e272cc748 --- /dev/null +++ b/tinymce-resource/skins/ui/oxide/content.inline.min.css @@ -0,0 +1 @@ +.mce-content-body .mce-item-anchor{background:transparent url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D'8'%20height%3D'12'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20d%3D'M0%200L8%200%208%2012%204.09117821%209%200%2012z'%2F%3E%3C%2Fsvg%3E%0A") no-repeat center}.mce-content-body .mce-item-anchor:empty{cursor:default;display:inline-block;height:12px!important;padding:0 2px;-webkit-user-modify:read-only;-moz-user-modify:read-only;-webkit-user-select:all;-moz-user-select:all;user-select:all;width:8px!important}.mce-content-body .mce-item-anchor:not(:empty){background-position-x:2px;display:inline-block;padding-left:12px}.mce-content-body .mce-item-anchor[data-mce-selected]{outline-offset:1px}.tox-comments-visible .tox-comment[contenteditable=false]:not([data-mce-selected]),.tox-comments-visible span.tox-comment img:not([data-mce-selected]),.tox-comments-visible span.tox-comment span.mce-preview-object:not([data-mce-selected]),.tox-comments-visible span.tox-comment>audio:not([data-mce-selected]),.tox-comments-visible span.tox-comment>video:not([data-mce-selected]){outline:3px solid #ffe89d}.tox-comments-visible .tox-comment[contenteditable=false][data-mce-annotation-active=true]:not([data-mce-selected]){outline:3px solid #fed635}.tox-comments-visible span.tox-comment[data-mce-annotation-active=true] img:not([data-mce-selected]),.tox-comments-visible span.tox-comment[data-mce-annotation-active=true] span.mce-preview-object:not([data-mce-selected]),.tox-comments-visible span.tox-comment[data-mce-annotation-active=true]>audio:not([data-mce-selected]),.tox-comments-visible span.tox-comment[data-mce-annotation-active=true]>video:not([data-mce-selected]){outline:3px solid #fed635}.tox-comments-visible span.tox-comment:not([data-mce-selected]){background-color:#ffe89d;outline:0}.tox-comments-visible span.tox-comment[data-mce-annotation-active=true]:not([data-mce-selected=inline-boundary]){background-color:#fed635}.tox-checklist>li:not(.tox-checklist--hidden){list-style:none;margin:.25em 0}.tox-checklist>li:not(.tox-checklist--hidden)::before{content:url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cg%20id%3D%22checklist-unchecked%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Crect%20id%3D%22Rectangle%22%20width%3D%2215%22%20height%3D%2215%22%20x%3D%22.5%22%20y%3D%22.5%22%20fill-rule%3D%22nonzero%22%20stroke%3D%22%234C4C4C%22%20rx%3D%222%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%0A");cursor:pointer;height:1em;margin-left:-1.5em;margin-top:.125em;position:absolute;width:1em}.tox-checklist li:not(.tox-checklist--hidden).tox-checklist--checked::before{content:url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cg%20id%3D%22checklist-checked%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Crect%20id%3D%22Rectangle%22%20width%3D%2216%22%20height%3D%2216%22%20fill%3D%22%234099FF%22%20fill-rule%3D%22nonzero%22%20rx%3D%222%22%2F%3E%3Cpath%20id%3D%22Path%22%20fill%3D%22%23FFF%22%20fill-rule%3D%22nonzero%22%20d%3D%22M11.5703186%2C3.14417309%20C11.8516238%2C2.73724603%2012.4164781%2C2.62829933%2012.83558%2C2.89774797%20C13.260121%2C3.17069355%2013.3759736%2C3.72932262%2013.0909105%2C4.14168582%20L7.7580587%2C11.8560195%20C7.43776896%2C12.3193404%206.76483983%2C12.3852142%206.35607322%2C11.9948725%20L3.02491697%2C8.8138662%20C2.66090143%2C8.46625845%202.65798871%2C7.89594698%203.01850234%2C7.54483354%20C3.373942%2C7.19866177%203.94940006%2C7.19592841%204.30829608%2C7.5386474%20L6.85276923%2C9.9684299%20L11.5703186%2C3.14417309%20Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%0A")}[dir=rtl] .tox-checklist>li:not(.tox-checklist--hidden)::before{margin-left:0;margin-right:-1.5em}code[class*=language-],pre[class*=language-]{color:#000;background:0 0;text-shadow:0 1px #fff;font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;tab-size:4;-webkit-hyphens:none;hyphens:none}code[class*=language-] ::-moz-selection,code[class*=language-]::-moz-selection,pre[class*=language-] ::-moz-selection,pre[class*=language-]::-moz-selection{text-shadow:none;background:#b3d4fc}code[class*=language-] ::selection,code[class*=language-]::selection,pre[class*=language-] ::selection,pre[class*=language-]::selection{text-shadow:none;background:#b3d4fc}@media print{code[class*=language-],pre[class*=language-]{text-shadow:none}}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background:#f5f2f0}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#708090}.token.punctuation{color:#999}.token.namespace{opacity:.7}.token.boolean,.token.constant,.token.deleted,.token.number,.token.property,.token.symbol,.token.tag{color:#905}.token.attr-name,.token.builtin,.token.char,.token.inserted,.token.selector,.token.string{color:#690}.language-css .token.string,.style .token.string,.token.entity,.token.operator,.token.url{color:#9a6e3a;background:hsla(0,0%,100%,.5)}.token.atrule,.token.attr-value,.token.keyword{color:#07a}.token.class-name,.token.function{color:#dd4a68}.token.important,.token.regex,.token.variable{color:#e90}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}.mce-content-body{overflow-wrap:break-word;word-wrap:break-word}.mce-content-body .mce-visual-caret{background-color:#000;background-color:currentColor;position:absolute}.mce-content-body .mce-visual-caret-hidden{display:none}.mce-content-body [data-mce-caret]{left:-1000px;margin:0;padding:0;position:absolute;right:auto;top:0}.mce-content-body .mce-offscreen-selection{left:-2000000px;max-width:1000000px;position:absolute}.mce-content-body [contentEditable=false]{cursor:default}.mce-content-body [contentEditable=true]{cursor:text}.tox-cursor-format-painter{cursor:url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%0A%20%20%3Cg%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%0A%20%20%20%20%3Cpath%20fill%3D%22%23000%22%20fill-rule%3D%22nonzero%22%20d%3D%22M15%2C6%20C15%2C5.45%2014.55%2C5%2014%2C5%20L6%2C5%20C5.45%2C5%205%2C5.45%205%2C6%20L5%2C10%20C5%2C10.55%205.45%2C11%206%2C11%20L14%2C11%20C14.55%2C11%2015%2C10.55%2015%2C10%20L15%2C9%20L16%2C9%20L16%2C12%20L9%2C12%20L9%2C19%20C9%2C19.55%209.45%2C20%2010%2C20%20L11%2C20%20C11.55%2C20%2012%2C19.55%2012%2C19%20L12%2C14%20L18%2C14%20L18%2C7%20L15%2C7%20L15%2C6%20Z%22%2F%3E%0A%20%20%20%20%3Cpath%20fill%3D%22%23000%22%20fill-rule%3D%22nonzero%22%20d%3D%22M1%2C1%20L8.25%2C1%20C8.66421356%2C1%209%2C1.33578644%209%2C1.75%20L9%2C1.75%20C9%2C2.16421356%208.66421356%2C2.5%208.25%2C2.5%20L2.5%2C2.5%20L2.5%2C8.25%20C2.5%2C8.66421356%202.16421356%2C9%201.75%2C9%20L1.75%2C9%20C1.33578644%2C9%201%2C8.66421356%201%2C8.25%20L1%2C1%20Z%22%2F%3E%0A%20%20%3C%2Fg%3E%0A%3C%2Fsvg%3E%0A"),default}div.mce-footnotes hr{margin-inline-end:auto;margin-inline-start:0;width:25%}div.mce-footnotes li>a.mce-footnotes-backlink{text-decoration:none}@media print{sup.mce-footnote a{color:#000;text-decoration:none}div.mce-footnotes{break-inside:avoid;width:100%}div.mce-footnotes li>a.mce-footnotes-backlink{display:none}}.mce-content-body figure.align-left{float:left}.mce-content-body figure.align-right{float:right}.mce-content-body figure.image.align-center{display:table;margin-left:auto;margin-right:auto}.mce-preview-object{border:1px solid gray;display:inline-block;line-height:0;margin:0 2px 0 2px;position:relative}.mce-preview-object .mce-shim{background:url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);height:100%;left:0;position:absolute;top:0;width:100%}.mce-preview-object[data-mce-selected="2"] .mce-shim{display:none}.mce-content-body .mce-mergetag{cursor:default!important;-webkit-user-select:none;-moz-user-select:none;user-select:none}.mce-content-body .mce-mergetag:hover{background-color:rgba(0,108,231,.1)}.mce-content-body .mce-mergetag-affix{background-color:rgba(0,108,231,.1);color:#006ce7}.mce-object{background:transparent url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Cpath%20d%3D%22M4%203h16a1%201%200%200%201%201%201v16a1%201%200%200%201-1%201H4a1%201%200%200%201-1-1V4a1%201%200%200%201%201-1zm1%202v14h14V5H5zm4.79%202.565l5.64%204.028a.5.5%200%200%201%200%20.814l-5.64%204.028a.5.5%200%200%201-.79-.407V7.972a.5.5%200%200%201%20.79-.407z%22%2F%3E%3C%2Fsvg%3E%0A") no-repeat center;border:1px dashed #aaa}.mce-pagebreak{border:1px dashed #aaa;cursor:default;display:block;height:5px;margin-top:15px;page-break-before:always;width:100%}@media print{.mce-pagebreak{border:0}}.tiny-pageembed .mce-shim{background:url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);height:100%;left:0;position:absolute;top:0;width:100%}.tiny-pageembed[data-mce-selected="2"] .mce-shim{display:none}.tiny-pageembed{display:inline-block;position:relative}.tiny-pageembed--16by9,.tiny-pageembed--1by1,.tiny-pageembed--21by9,.tiny-pageembed--4by3{display:block;overflow:hidden;padding:0;position:relative;width:100%}.tiny-pageembed--21by9{padding-top:42.857143%}.tiny-pageembed--16by9{padding-top:56.25%}.tiny-pageembed--4by3{padding-top:75%}.tiny-pageembed--1by1{padding-top:100%}.tiny-pageembed--16by9 iframe,.tiny-pageembed--1by1 iframe,.tiny-pageembed--21by9 iframe,.tiny-pageembed--4by3 iframe{border:0;height:100%;left:0;position:absolute;top:0;width:100%}.mce-content-body[data-mce-placeholder]{position:relative}.mce-content-body[data-mce-placeholder]:not(.mce-visualblocks)::before{color:rgba(34,47,62,.7);content:attr(data-mce-placeholder);position:absolute}.mce-content-body:not([dir=rtl])[data-mce-placeholder]:not(.mce-visualblocks)::before{left:1px}.mce-content-body[dir=rtl][data-mce-placeholder]:not(.mce-visualblocks)::before{right:1px}.mce-content-body div.mce-resizehandle{background-color:#4099ff;border-color:#4099ff;border-style:solid;border-width:1px;box-sizing:border-box;height:10px;position:absolute;width:10px;z-index:1298}.mce-content-body div.mce-resizehandle:hover{background-color:#4099ff}.mce-content-body div.mce-resizehandle:nth-of-type(1){cursor:nwse-resize}.mce-content-body div.mce-resizehandle:nth-of-type(2){cursor:nesw-resize}.mce-content-body div.mce-resizehandle:nth-of-type(3){cursor:nwse-resize}.mce-content-body div.mce-resizehandle:nth-of-type(4){cursor:nesw-resize}.mce-content-body .mce-resize-backdrop{z-index:10000}.mce-content-body .mce-clonedresizable{cursor:default;opacity:.5;outline:1px dashed #000;position:absolute;z-index:10001}.mce-content-body .mce-clonedresizable.mce-resizetable-columns td,.mce-content-body .mce-clonedresizable.mce-resizetable-columns th{border:0}.mce-content-body .mce-resize-helper{background:#555;background:rgba(0,0,0,.75);border:1px;border-radius:3px;color:#fff;display:none;font-family:sans-serif;font-size:12px;line-height:14px;margin:5px 10px;padding:5px;position:absolute;white-space:nowrap;z-index:10002}.tox-rtc-user-selection{position:relative}.tox-rtc-user-cursor{bottom:0;cursor:default;position:absolute;top:0;width:2px}.tox-rtc-user-cursor::before{background-color:inherit;border-radius:50%;content:'';display:block;height:8px;position:absolute;right:-3px;top:-3px;width:8px}.tox-rtc-user-cursor:hover::after{background-color:inherit;border-radius:100px;box-sizing:border-box;color:#fff;content:attr(data-user);display:block;font-size:12px;font-weight:700;left:-5px;min-height:8px;min-width:8px;padding:0 12px;position:absolute;top:-11px;white-space:nowrap;z-index:1000}.tox-rtc-user-selection--1 .tox-rtc-user-cursor{background-color:#2dc26b}.tox-rtc-user-selection--2 .tox-rtc-user-cursor{background-color:#e03e2d}.tox-rtc-user-selection--3 .tox-rtc-user-cursor{background-color:#f1c40f}.tox-rtc-user-selection--4 .tox-rtc-user-cursor{background-color:#3598db}.tox-rtc-user-selection--5 .tox-rtc-user-cursor{background-color:#b96ad9}.tox-rtc-user-selection--6 .tox-rtc-user-cursor{background-color:#e67e23}.tox-rtc-user-selection--7 .tox-rtc-user-cursor{background-color:#aaa69d}.tox-rtc-user-selection--8 .tox-rtc-user-cursor{background-color:#f368e0}.tox-rtc-remote-image{background:#eaeaea url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%2236%22%20height%3D%2212%22%20viewBox%3D%220%200%2036%2012%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%20%20%3Ccircle%20cx%3D%226%22%20cy%3D%226%22%20r%3D%223%22%20fill%3D%22rgba(0%2C%200%2C%200%2C%20.2)%22%3E%0A%20%20%20%20%3Canimate%20attributeName%3D%22r%22%20values%3D%223%3B5%3B3%22%20calcMode%3D%22linear%22%20dur%3D%221s%22%20repeatCount%3D%22indefinite%22%20%2F%3E%0A%20%20%3C%2Fcircle%3E%0A%20%20%3Ccircle%20cx%3D%2218%22%20cy%3D%226%22%20r%3D%223%22%20fill%3D%22rgba(0%2C%200%2C%200%2C%20.2)%22%3E%0A%20%20%20%20%3Canimate%20attributeName%3D%22r%22%20values%3D%223%3B5%3B3%22%20calcMode%3D%22linear%22%20begin%3D%22.33s%22%20dur%3D%221s%22%20repeatCount%3D%22indefinite%22%20%2F%3E%0A%20%20%3C%2Fcircle%3E%0A%20%20%3Ccircle%20cx%3D%2230%22%20cy%3D%226%22%20r%3D%223%22%20fill%3D%22rgba(0%2C%200%2C%200%2C%20.2)%22%3E%0A%20%20%20%20%3Canimate%20attributeName%3D%22r%22%20values%3D%223%3B5%3B3%22%20calcMode%3D%22linear%22%20begin%3D%22.66s%22%20dur%3D%221s%22%20repeatCount%3D%22indefinite%22%20%2F%3E%0A%20%20%3C%2Fcircle%3E%0A%3C%2Fsvg%3E%0A") no-repeat center center;border:1px solid #ccc;min-height:240px;min-width:320px}.mce-match-marker{background:#aaa;color:#fff}.mce-match-marker-selected{background:#39f;color:#fff}.mce-match-marker-selected::-moz-selection{background:#39f;color:#fff}.mce-match-marker-selected::selection{background:#39f;color:#fff}.mce-content-body audio[data-mce-selected],.mce-content-body details[data-mce-selected],.mce-content-body embed[data-mce-selected],.mce-content-body img[data-mce-selected],.mce-content-body object[data-mce-selected],.mce-content-body table[data-mce-selected],.mce-content-body video[data-mce-selected]{outline:3px solid #b4d7ff}.mce-content-body hr[data-mce-selected]{outline:3px solid #b4d7ff;outline-offset:1px}.mce-content-body [contentEditable=false] [contentEditable=true]:focus{outline:3px solid #b4d7ff}.mce-content-body [contentEditable=false] [contentEditable=true]:hover{outline:3px solid #b4d7ff}.mce-content-body [contentEditable=false][data-mce-selected]{cursor:not-allowed;outline:3px solid #b4d7ff}.mce-content-body.mce-content-readonly [contentEditable=true]:focus,.mce-content-body.mce-content-readonly [contentEditable=true]:hover{outline:0}.mce-content-body [data-mce-selected=inline-boundary]{background-color:#b4d7ff}.mce-content-body .mce-edit-focus{outline:3px solid #b4d7ff}.mce-content-body td[data-mce-selected],.mce-content-body th[data-mce-selected]{position:relative}.mce-content-body td[data-mce-selected]::-moz-selection,.mce-content-body th[data-mce-selected]::-moz-selection{background:0 0}.mce-content-body td[data-mce-selected]::selection,.mce-content-body th[data-mce-selected]::selection{background:0 0}.mce-content-body td[data-mce-selected] *,.mce-content-body th[data-mce-selected] *{outline:0;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.mce-content-body td[data-mce-selected]::after,.mce-content-body th[data-mce-selected]::after{background-color:rgba(180,215,255,.7);border:1px solid rgba(180,215,255,.7);bottom:-1px;content:'';left:-1px;mix-blend-mode:multiply;position:absolute;right:-1px;top:-1px}@media screen and (-ms-high-contrast:active),(-ms-high-contrast:none){.mce-content-body td[data-mce-selected]::after,.mce-content-body th[data-mce-selected]::after{border-color:rgba(0,84,180,.7)}}.mce-content-body img[data-mce-selected]::-moz-selection{background:0 0}.mce-content-body img[data-mce-selected]::selection{background:0 0}.ephox-snooker-resizer-bar{background-color:#b4d7ff;opacity:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ephox-snooker-resizer-cols{cursor:col-resize}.ephox-snooker-resizer-rows{cursor:row-resize}.ephox-snooker-resizer-bar.ephox-snooker-resizer-bar-dragging{opacity:1}.mce-spellchecker-word{background-image:url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D'4'%20height%3D'4'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20stroke%3D'%23ff0000'%20fill%3D'none'%20stroke-linecap%3D'round'%20stroke-opacity%3D'.75'%20d%3D'M0%203L2%201%204%203'%2F%3E%3C%2Fsvg%3E%0A");background-position:0 calc(100% + 1px);background-repeat:repeat-x;background-size:auto 6px;cursor:default;height:2rem}.mce-spellchecker-grammar{background-image:url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D'4'%20height%3D'4'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20stroke%3D'%2300A835'%20fill%3D'none'%20stroke-linecap%3D'round'%20d%3D'M0%203L2%201%204%203'%2F%3E%3C%2Fsvg%3E%0A");background-position:0 calc(100% + 1px);background-repeat:repeat-x;background-size:auto 6px;cursor:default}.mce-toc{border:1px solid gray}.mce-toc h2{margin:4px}.mce-toc ul>li{list-style-type:none}[data-mce-block]{display:block}.mce-item-table:not([border]),.mce-item-table:not([border]) caption,.mce-item-table:not([border]) td,.mce-item-table:not([border]) th,.mce-item-table[border="0"],.mce-item-table[border="0"] caption,.mce-item-table[border="0"] td,.mce-item-table[border="0"] th,table[style*="border-width: 0px"],table[style*="border-width: 0px"] caption,table[style*="border-width: 0px"] td,table[style*="border-width: 0px"] th{border:1px dashed #bbb}.mce-visualblocks address,.mce-visualblocks article,.mce-visualblocks aside,.mce-visualblocks blockquote,.mce-visualblocks div:not([data-mce-bogus]),.mce-visualblocks dl,.mce-visualblocks figcaption,.mce-visualblocks figure,.mce-visualblocks h1,.mce-visualblocks h2,.mce-visualblocks h3,.mce-visualblocks h4,.mce-visualblocks h5,.mce-visualblocks h6,.mce-visualblocks hgroup,.mce-visualblocks ol,.mce-visualblocks p,.mce-visualblocks pre,.mce-visualblocks section,.mce-visualblocks ul{background-repeat:no-repeat;border:1px dashed #bbb;margin-left:3px;padding-top:10px}.mce-visualblocks p{background-image:url(data:image/gif;base64,R0lGODlhCQAJAJEAAAAAAP///7u7u////yH5BAEAAAMALAAAAAAJAAkAAAIQnG+CqCN/mlyvsRUpThG6AgA7)}.mce-visualblocks h1{background-image:url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybGu1JuxHoAfRNRW3TWXyF2YiRUAOw==)}.mce-visualblocks h2{background-image:url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8Hybbx4oOuqgTynJd6bGlWg3DkJzoaUAAAOw==)}.mce-visualblocks h3{background-image:url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIZjI8Hybbx4oOuqgTynJf2Ln2NOHpQpmhAAQA7)}.mce-visualblocks h4{background-image:url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxInR0zqeAdhtJlXwV1oCll2HaWgAAOw==)}.mce-visualblocks h5{background-image:url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxIoiuwjane4iq5GlW05GgIkIZUAAAOw==)}.mce-visualblocks h6{background-image:url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxIoiuwjan04jep1iZ1XRlAo5bVgAAOw==)}.mce-visualblocks div:not([data-mce-bogus]){background-image:url(data:image/gif;base64,R0lGODlhEgAKAIABALu7u////yH5BAEAAAEALAAAAAASAAoAAAIfjI9poI0cgDywrhuxfbrzDEbQM2Ei5aRjmoySW4pAAQA7)}.mce-visualblocks section{background-image:url(data:image/gif;base64,R0lGODlhKAAKAIABALu7u////yH5BAEAAAEALAAAAAAoAAoAAAI5jI+pywcNY3sBWHdNrplytD2ellDeSVbp+GmWqaDqDMepc8t17Y4vBsK5hDyJMcI6KkuYU+jpjLoKADs=)}.mce-visualblocks article{background-image:url(data:image/gif;base64,R0lGODlhKgAKAIABALu7u////yH5BAEAAAEALAAAAAAqAAoAAAI6jI+pywkNY3wG0GBvrsd2tXGYSGnfiF7ikpXemTpOiJScasYoDJJrjsG9gkCJ0ag6KhmaIe3pjDYBBQA7)}.mce-visualblocks blockquote{background-image:url(data:image/gif;base64,R0lGODlhPgAKAIABALu7u////yH5BAEAAAEALAAAAAA+AAoAAAJPjI+py+0Knpz0xQDyuUhvfoGgIX5iSKZYgq5uNL5q69asZ8s5rrf0yZmpNkJZzFesBTu8TOlDVAabUyatguVhWduud3EyiUk45xhTTgMBBQA7)}.mce-visualblocks address{background-image:url(data:image/gif;base64,R0lGODlhLQAKAIABALu7u////yH5BAEAAAEALAAAAAAtAAoAAAI/jI+pywwNozSP1gDyyZcjb3UaRpXkWaXmZW4OqKLhBmLs+K263DkJK7OJeifh7FicKD9A1/IpGdKkyFpNmCkAADs=)}.mce-visualblocks pre{background-image:url(data:image/gif;base64,R0lGODlhFQAKAIABALu7uwAAACH5BAEAAAEALAAAAAAVAAoAAAIjjI+ZoN0cgDwSmnpz1NCueYERhnibZVKLNnbOq8IvKpJtVQAAOw==)}.mce-visualblocks figure{background-image:url(data:image/gif;base64,R0lGODlhJAAKAIAAALu7u////yH5BAEAAAEALAAAAAAkAAoAAAI0jI+py+2fwAHUSFvD3RlvG4HIp4nX5JFSpnZUJ6LlrM52OE7uSWosBHScgkSZj7dDKnWAAgA7)}.mce-visualblocks figcaption{border:1px dashed #bbb}.mce-visualblocks hgroup{background-image:url(data:image/gif;base64,R0lGODlhJwAKAIABALu7uwAAACH5BAEAAAEALAAAAAAnAAoAAAI3jI+pywYNI3uB0gpsRtt5fFnfNZaVSYJil4Wo03Hv6Z62uOCgiXH1kZIIJ8NiIxRrAZNMZAtQAAA7)}.mce-visualblocks aside{background-image:url(data:image/gif;base64,R0lGODlhHgAKAIABAKqqqv///yH5BAEAAAEALAAAAAAeAAoAAAItjI+pG8APjZOTzgtqy7I3f1yehmQcFY4WKZbqByutmW4aHUd6vfcVbgudgpYCADs=)}.mce-visualblocks ul{background-image:url(data:image/gif;base64,R0lGODlhDQAKAIAAALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybGuYnqUVSjvw26DzzXiqIDlVwAAOw==)}.mce-visualblocks ol{background-image:url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybH6HHt0qourxC6CvzXieHyeWQAAOw==)}.mce-visualblocks dl{background-image:url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybEOnmOvUoWznTqeuEjNSCqeGRUAOw==)}.mce-visualblocks:not([dir=rtl]) address,.mce-visualblocks:not([dir=rtl]) article,.mce-visualblocks:not([dir=rtl]) aside,.mce-visualblocks:not([dir=rtl]) blockquote,.mce-visualblocks:not([dir=rtl]) div:not([data-mce-bogus]),.mce-visualblocks:not([dir=rtl]) dl,.mce-visualblocks:not([dir=rtl]) figcaption,.mce-visualblocks:not([dir=rtl]) figure,.mce-visualblocks:not([dir=rtl]) h1,.mce-visualblocks:not([dir=rtl]) h2,.mce-visualblocks:not([dir=rtl]) h3,.mce-visualblocks:not([dir=rtl]) h4,.mce-visualblocks:not([dir=rtl]) h5,.mce-visualblocks:not([dir=rtl]) h6,.mce-visualblocks:not([dir=rtl]) hgroup,.mce-visualblocks:not([dir=rtl]) ol,.mce-visualblocks:not([dir=rtl]) p,.mce-visualblocks:not([dir=rtl]) pre,.mce-visualblocks:not([dir=rtl]) section,.mce-visualblocks:not([dir=rtl]) ul{margin-left:3px}.mce-visualblocks[dir=rtl] address,.mce-visualblocks[dir=rtl] article,.mce-visualblocks[dir=rtl] aside,.mce-visualblocks[dir=rtl] blockquote,.mce-visualblocks[dir=rtl] div:not([data-mce-bogus]),.mce-visualblocks[dir=rtl] dl,.mce-visualblocks[dir=rtl] figcaption,.mce-visualblocks[dir=rtl] figure,.mce-visualblocks[dir=rtl] h1,.mce-visualblocks[dir=rtl] h2,.mce-visualblocks[dir=rtl] h3,.mce-visualblocks[dir=rtl] h4,.mce-visualblocks[dir=rtl] h5,.mce-visualblocks[dir=rtl] h6,.mce-visualblocks[dir=rtl] hgroup,.mce-visualblocks[dir=rtl] ol,.mce-visualblocks[dir=rtl] p,.mce-visualblocks[dir=rtl] pre,.mce-visualblocks[dir=rtl] section,.mce-visualblocks[dir=rtl] ul{background-position-x:right;margin-right:3px}.mce-nbsp,.mce-shy{background:#aaa}.mce-shy::after{content:'-'} diff --git a/tinymce-resource/skins/ui/oxide/content.js b/tinymce-resource/skins/ui/oxide/content.js new file mode 100644 index 000000000..035d50416 --- /dev/null +++ b/tinymce-resource/skins/ui/oxide/content.js @@ -0,0 +1,2 @@ +tinymce.Resource.add('ui/default/content.css', ".mce-content-body .mce-item-anchor{background:transparent url(\"data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D'8'%20height%3D'12'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20d%3D'M0%200L8%200%208%2012%204.09117821%209%200%2012z'%2F%3E%3C%2Fsvg%3E%0A\") no-repeat center}.mce-content-body .mce-item-anchor:empty{cursor:default;display:inline-block;height:12px!important;padding:0 2px;-webkit-user-modify:read-only;-moz-user-modify:read-only;-webkit-user-select:all;-moz-user-select:all;user-select:all;width:8px!important}.mce-content-body .mce-item-anchor:not(:empty){background-position-x:2px;display:inline-block;padding-left:12px}.mce-content-body .mce-item-anchor[data-mce-selected]{outline-offset:1px}.tox-comments-visible .tox-comment[contenteditable=false]:not([data-mce-selected]),.tox-comments-visible span.tox-comment img:not([data-mce-selected]),.tox-comments-visible span.tox-comment span.mce-preview-object:not([data-mce-selected]),.tox-comments-visible span.tox-comment>audio:not([data-mce-selected]),.tox-comments-visible span.tox-comment>video:not([data-mce-selected]){outline:3px solid #ffe89d}.tox-comments-visible .tox-comment[contenteditable=false][data-mce-annotation-active=true]:not([data-mce-selected]){outline:3px solid #fed635}.tox-comments-visible span.tox-comment[data-mce-annotation-active=true] img:not([data-mce-selected]),.tox-comments-visible span.tox-comment[data-mce-annotation-active=true] span.mce-preview-object:not([data-mce-selected]),.tox-comments-visible span.tox-comment[data-mce-annotation-active=true]>audio:not([data-mce-selected]),.tox-comments-visible span.tox-comment[data-mce-annotation-active=true]>video:not([data-mce-selected]){outline:3px solid #fed635}.tox-comments-visible span.tox-comment:not([data-mce-selected]){background-color:#ffe89d;outline:0}.tox-comments-visible span.tox-comment[data-mce-annotation-active=true]:not([data-mce-selected=inline-boundary]){background-color:#fed635}.tox-checklist>li:not(.tox-checklist--hidden){list-style:none;margin:.25em 0}.tox-checklist>li:not(.tox-checklist--hidden)::before{content:url(\"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cg%20id%3D%22checklist-unchecked%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Crect%20id%3D%22Rectangle%22%20width%3D%2215%22%20height%3D%2215%22%20x%3D%22.5%22%20y%3D%22.5%22%20fill-rule%3D%22nonzero%22%20stroke%3D%22%234C4C4C%22%20rx%3D%222%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%0A\");cursor:pointer;height:1em;margin-left:-1.5em;margin-top:.125em;position:absolute;width:1em}.tox-checklist li:not(.tox-checklist--hidden).tox-checklist--checked::before{content:url(\"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cg%20id%3D%22checklist-checked%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Crect%20id%3D%22Rectangle%22%20width%3D%2216%22%20height%3D%2216%22%20fill%3D%22%234099FF%22%20fill-rule%3D%22nonzero%22%20rx%3D%222%22%2F%3E%3Cpath%20id%3D%22Path%22%20fill%3D%22%23FFF%22%20fill-rule%3D%22nonzero%22%20d%3D%22M11.5703186%2C3.14417309%20C11.8516238%2C2.73724603%2012.4164781%2C2.62829933%2012.83558%2C2.89774797%20C13.260121%2C3.17069355%2013.3759736%2C3.72932262%2013.0909105%2C4.14168582%20L7.7580587%2C11.8560195%20C7.43776896%2C12.3193404%206.76483983%2C12.3852142%206.35607322%2C11.9948725%20L3.02491697%2C8.8138662%20C2.66090143%2C8.46625845%202.65798871%2C7.89594698%203.01850234%2C7.54483354%20C3.373942%2C7.19866177%203.94940006%2C7.19592841%204.30829608%2C7.5386474%20L6.85276923%2C9.9684299%20L11.5703186%2C3.14417309%20Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%0A\")}[dir=rtl] .tox-checklist>li:not(.tox-checklist--hidden)::before{margin-left:0;margin-right:-1.5em}code[class*=language-],pre[class*=language-]{color:#000;background:0 0;text-shadow:0 1px #fff;font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;tab-size:4;-webkit-hyphens:none;hyphens:none}code[class*=language-] ::-moz-selection,code[class*=language-]::-moz-selection,pre[class*=language-] ::-moz-selection,pre[class*=language-]::-moz-selection{text-shadow:none;background:#b3d4fc}code[class*=language-] ::selection,code[class*=language-]::selection,pre[class*=language-] ::selection,pre[class*=language-]::selection{text-shadow:none;background:#b3d4fc}@media print{code[class*=language-],pre[class*=language-]{text-shadow:none}}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background:#f5f2f0}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#708090}.token.punctuation{color:#999}.token.namespace{opacity:.7}.token.boolean,.token.constant,.token.deleted,.token.number,.token.property,.token.symbol,.token.tag{color:#905}.token.attr-name,.token.builtin,.token.char,.token.inserted,.token.selector,.token.string{color:#690}.language-css .token.string,.style .token.string,.token.entity,.token.operator,.token.url{color:#9a6e3a;background:hsla(0,0%,100%,.5)}.token.atrule,.token.attr-value,.token.keyword{color:#07a}.token.class-name,.token.function{color:#dd4a68}.token.important,.token.regex,.token.variable{color:#e90}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}.mce-content-body{overflow-wrap:break-word;word-wrap:break-word}.mce-content-body .mce-visual-caret{background-color:#000;background-color:currentColor;position:absolute}.mce-content-body .mce-visual-caret-hidden{display:none}.mce-content-body [data-mce-caret]{left:-1000px;margin:0;padding:0;position:absolute;right:auto;top:0}.mce-content-body .mce-offscreen-selection{left:-2000000px;max-width:1000000px;position:absolute}.mce-content-body [contentEditable=false]{cursor:default}.mce-content-body [contentEditable=true]{cursor:text}.tox-cursor-format-painter{cursor:url(\"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%0A%20%20%3Cg%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%0A%20%20%20%20%3Cpath%20fill%3D%22%23000%22%20fill-rule%3D%22nonzero%22%20d%3D%22M15%2C6%20C15%2C5.45%2014.55%2C5%2014%2C5%20L6%2C5%20C5.45%2C5%205%2C5.45%205%2C6%20L5%2C10%20C5%2C10.55%205.45%2C11%206%2C11%20L14%2C11%20C14.55%2C11%2015%2C10.55%2015%2C10%20L15%2C9%20L16%2C9%20L16%2C12%20L9%2C12%20L9%2C19%20C9%2C19.55%209.45%2C20%2010%2C20%20L11%2C20%20C11.55%2C20%2012%2C19.55%2012%2C19%20L12%2C14%20L18%2C14%20L18%2C7%20L15%2C7%20L15%2C6%20Z%22%2F%3E%0A%20%20%20%20%3Cpath%20fill%3D%22%23000%22%20fill-rule%3D%22nonzero%22%20d%3D%22M1%2C1%20L8.25%2C1%20C8.66421356%2C1%209%2C1.33578644%209%2C1.75%20L9%2C1.75%20C9%2C2.16421356%208.66421356%2C2.5%208.25%2C2.5%20L2.5%2C2.5%20L2.5%2C8.25%20C2.5%2C8.66421356%202.16421356%2C9%201.75%2C9%20L1.75%2C9%20C1.33578644%2C9%201%2C8.66421356%201%2C8.25%20L1%2C1%20Z%22%2F%3E%0A%20%20%3C%2Fg%3E%0A%3C%2Fsvg%3E%0A\"),default}div.mce-footnotes hr{margin-inline-end:auto;margin-inline-start:0;width:25%}div.mce-footnotes li>a.mce-footnotes-backlink{text-decoration:none}@media print{sup.mce-footnote a{color:#000;text-decoration:none}div.mce-footnotes{break-inside:avoid;width:100%}div.mce-footnotes li>a.mce-footnotes-backlink{display:none}}.mce-content-body figure.align-left{float:left}.mce-content-body figure.align-right{float:right}.mce-content-body figure.image.align-center{display:table;margin-left:auto;margin-right:auto}.mce-preview-object{border:1px solid gray;display:inline-block;line-height:0;margin:0 2px 0 2px;position:relative}.mce-preview-object .mce-shim{background:url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);height:100%;left:0;position:absolute;top:0;width:100%}.mce-preview-object[data-mce-selected=\"2\"] .mce-shim{display:none}.mce-content-body .mce-mergetag{cursor:default!important;-webkit-user-select:none;-moz-user-select:none;user-select:none}.mce-content-body .mce-mergetag:hover{background-color:rgba(0,108,231,.1)}.mce-content-body .mce-mergetag-affix{background-color:rgba(0,108,231,.1);color:#006ce7}.mce-object{background:transparent url(\"data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Cpath%20d%3D%22M4%203h16a1%201%200%200%201%201%201v16a1%201%200%200%201-1%201H4a1%201%200%200%201-1-1V4a1%201%200%200%201%201-1zm1%202v14h14V5H5zm4.79%202.565l5.64%204.028a.5.5%200%200%201%200%20.814l-5.64%204.028a.5.5%200%200%201-.79-.407V7.972a.5.5%200%200%201%20.79-.407z%22%2F%3E%3C%2Fsvg%3E%0A\") no-repeat center;border:1px dashed #aaa}.mce-pagebreak{border:1px dashed #aaa;cursor:default;display:block;height:5px;margin-top:15px;page-break-before:always;width:100%}@media print{.mce-pagebreak{border:0}}.tiny-pageembed .mce-shim{background:url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);height:100%;left:0;position:absolute;top:0;width:100%}.tiny-pageembed[data-mce-selected=\"2\"] .mce-shim{display:none}.tiny-pageembed{display:inline-block;position:relative}.tiny-pageembed--16by9,.tiny-pageembed--1by1,.tiny-pageembed--21by9,.tiny-pageembed--4by3{display:block;overflow:hidden;padding:0;position:relative;width:100%}.tiny-pageembed--21by9{padding-top:42.857143%}.tiny-pageembed--16by9{padding-top:56.25%}.tiny-pageembed--4by3{padding-top:75%}.tiny-pageembed--1by1{padding-top:100%}.tiny-pageembed--16by9 iframe,.tiny-pageembed--1by1 iframe,.tiny-pageembed--21by9 iframe,.tiny-pageembed--4by3 iframe{border:0;height:100%;left:0;position:absolute;top:0;width:100%}.mce-content-body[data-mce-placeholder]{position:relative}.mce-content-body[data-mce-placeholder]:not(.mce-visualblocks)::before{color:rgba(34,47,62,.7);content:attr(data-mce-placeholder);position:absolute}.mce-content-body:not([dir=rtl])[data-mce-placeholder]:not(.mce-visualblocks)::before{left:1px}.mce-content-body[dir=rtl][data-mce-placeholder]:not(.mce-visualblocks)::before{right:1px}.mce-content-body div.mce-resizehandle{background-color:#4099ff;border-color:#4099ff;border-style:solid;border-width:1px;box-sizing:border-box;height:10px;position:absolute;width:10px;z-index:1298}.mce-content-body div.mce-resizehandle:hover{background-color:#4099ff}.mce-content-body div.mce-resizehandle:nth-of-type(1){cursor:nwse-resize}.mce-content-body div.mce-resizehandle:nth-of-type(2){cursor:nesw-resize}.mce-content-body div.mce-resizehandle:nth-of-type(3){cursor:nwse-resize}.mce-content-body div.mce-resizehandle:nth-of-type(4){cursor:nesw-resize}.mce-content-body .mce-resize-backdrop{z-index:10000}.mce-content-body .mce-clonedresizable{cursor:default;opacity:.5;outline:1px dashed #000;position:absolute;z-index:10001}.mce-content-body .mce-clonedresizable.mce-resizetable-columns td,.mce-content-body .mce-clonedresizable.mce-resizetable-columns th{border:0}.mce-content-body .mce-resize-helper{background:#555;background:rgba(0,0,0,.75);border:1px;border-radius:3px;color:#fff;display:none;font-family:sans-serif;font-size:12px;line-height:14px;margin:5px 10px;padding:5px;position:absolute;white-space:nowrap;z-index:10002}.tox-rtc-user-selection{position:relative}.tox-rtc-user-cursor{bottom:0;cursor:default;position:absolute;top:0;width:2px}.tox-rtc-user-cursor::before{background-color:inherit;border-radius:50%;content:'';display:block;height:8px;position:absolute;right:-3px;top:-3px;width:8px}.tox-rtc-user-cursor:hover::after{background-color:inherit;border-radius:100px;box-sizing:border-box;color:#fff;content:attr(data-user);display:block;font-size:12px;font-weight:700;left:-5px;min-height:8px;min-width:8px;padding:0 12px;position:absolute;top:-11px;white-space:nowrap;z-index:1000}.tox-rtc-user-selection--1 .tox-rtc-user-cursor{background-color:#2dc26b}.tox-rtc-user-selection--2 .tox-rtc-user-cursor{background-color:#e03e2d}.tox-rtc-user-selection--3 .tox-rtc-user-cursor{background-color:#f1c40f}.tox-rtc-user-selection--4 .tox-rtc-user-cursor{background-color:#3598db}.tox-rtc-user-selection--5 .tox-rtc-user-cursor{background-color:#b96ad9}.tox-rtc-user-selection--6 .tox-rtc-user-cursor{background-color:#e67e23}.tox-rtc-user-selection--7 .tox-rtc-user-cursor{background-color:#aaa69d}.tox-rtc-user-selection--8 .tox-rtc-user-cursor{background-color:#f368e0}.tox-rtc-remote-image{background:#eaeaea url(\"data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%2236%22%20height%3D%2212%22%20viewBox%3D%220%200%2036%2012%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%20%20%3Ccircle%20cx%3D%226%22%20cy%3D%226%22%20r%3D%223%22%20fill%3D%22rgba(0%2C%200%2C%200%2C%20.2)%22%3E%0A%20%20%20%20%3Canimate%20attributeName%3D%22r%22%20values%3D%223%3B5%3B3%22%20calcMode%3D%22linear%22%20dur%3D%221s%22%20repeatCount%3D%22indefinite%22%20%2F%3E%0A%20%20%3C%2Fcircle%3E%0A%20%20%3Ccircle%20cx%3D%2218%22%20cy%3D%226%22%20r%3D%223%22%20fill%3D%22rgba(0%2C%200%2C%200%2C%20.2)%22%3E%0A%20%20%20%20%3Canimate%20attributeName%3D%22r%22%20values%3D%223%3B5%3B3%22%20calcMode%3D%22linear%22%20begin%3D%22.33s%22%20dur%3D%221s%22%20repeatCount%3D%22indefinite%22%20%2F%3E%0A%20%20%3C%2Fcircle%3E%0A%20%20%3Ccircle%20cx%3D%2230%22%20cy%3D%226%22%20r%3D%223%22%20fill%3D%22rgba(0%2C%200%2C%200%2C%20.2)%22%3E%0A%20%20%20%20%3Canimate%20attributeName%3D%22r%22%20values%3D%223%3B5%3B3%22%20calcMode%3D%22linear%22%20begin%3D%22.66s%22%20dur%3D%221s%22%20repeatCount%3D%22indefinite%22%20%2F%3E%0A%20%20%3C%2Fcircle%3E%0A%3C%2Fsvg%3E%0A\") no-repeat center center;border:1px solid #ccc;min-height:240px;min-width:320px}.mce-match-marker{background:#aaa;color:#fff}.mce-match-marker-selected{background:#39f;color:#fff}.mce-match-marker-selected::-moz-selection{background:#39f;color:#fff}.mce-match-marker-selected::selection{background:#39f;color:#fff}.mce-content-body audio[data-mce-selected],.mce-content-body details[data-mce-selected],.mce-content-body embed[data-mce-selected],.mce-content-body img[data-mce-selected],.mce-content-body object[data-mce-selected],.mce-content-body table[data-mce-selected],.mce-content-body video[data-mce-selected]{outline:3px solid #b4d7ff}.mce-content-body hr[data-mce-selected]{outline:3px solid #b4d7ff;outline-offset:1px}.mce-content-body [contentEditable=false] [contentEditable=true]:focus{outline:3px solid #b4d7ff}.mce-content-body [contentEditable=false] [contentEditable=true]:hover{outline:3px solid #b4d7ff}.mce-content-body [contentEditable=false][data-mce-selected]{cursor:not-allowed;outline:3px solid #b4d7ff}.mce-content-body.mce-content-readonly [contentEditable=true]:focus,.mce-content-body.mce-content-readonly [contentEditable=true]:hover{outline:0}.mce-content-body [data-mce-selected=inline-boundary]{background-color:#b4d7ff}.mce-content-body .mce-edit-focus{outline:3px solid #b4d7ff}.mce-content-body td[data-mce-selected],.mce-content-body th[data-mce-selected]{position:relative}.mce-content-body td[data-mce-selected]::-moz-selection,.mce-content-body th[data-mce-selected]::-moz-selection{background:0 0}.mce-content-body td[data-mce-selected]::selection,.mce-content-body th[data-mce-selected]::selection{background:0 0}.mce-content-body td[data-mce-selected] *,.mce-content-body th[data-mce-selected] *{outline:0;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.mce-content-body td[data-mce-selected]::after,.mce-content-body th[data-mce-selected]::after{background-color:rgba(180,215,255,.7);border:1px solid rgba(180,215,255,.7);bottom:-1px;content:'';left:-1px;mix-blend-mode:multiply;position:absolute;right:-1px;top:-1px}@media screen and (-ms-high-contrast:active),(-ms-high-contrast:none){.mce-content-body td[data-mce-selected]::after,.mce-content-body th[data-mce-selected]::after{border-color:rgba(0,84,180,.7)}}.mce-content-body img[data-mce-selected]::-moz-selection{background:0 0}.mce-content-body img[data-mce-selected]::selection{background:0 0}.ephox-snooker-resizer-bar{background-color:#b4d7ff;opacity:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ephox-snooker-resizer-cols{cursor:col-resize}.ephox-snooker-resizer-rows{cursor:row-resize}.ephox-snooker-resizer-bar.ephox-snooker-resizer-bar-dragging{opacity:1}.mce-spellchecker-word{background-image:url(\"data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D'4'%20height%3D'4'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20stroke%3D'%23ff0000'%20fill%3D'none'%20stroke-linecap%3D'round'%20stroke-opacity%3D'.75'%20d%3D'M0%203L2%201%204%203'%2F%3E%3C%2Fsvg%3E%0A\");background-position:0 calc(100% + 1px);background-repeat:repeat-x;background-size:auto 6px;cursor:default;height:2rem}.mce-spellchecker-grammar{background-image:url(\"data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D'4'%20height%3D'4'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20stroke%3D'%2300A835'%20fill%3D'none'%20stroke-linecap%3D'round'%20d%3D'M0%203L2%201%204%203'%2F%3E%3C%2Fsvg%3E%0A\");background-position:0 calc(100% + 1px);background-repeat:repeat-x;background-size:auto 6px;cursor:default}.mce-toc{border:1px solid gray}.mce-toc h2{margin:4px}.mce-toc ul>li{list-style-type:none}[data-mce-block]{display:block}.mce-item-table:not([border]),.mce-item-table:not([border]) caption,.mce-item-table:not([border]) td,.mce-item-table:not([border]) th,.mce-item-table[border=\"0\"],.mce-item-table[border=\"0\"] caption,.mce-item-table[border=\"0\"] td,.mce-item-table[border=\"0\"] th,table[style*=\"border-width: 0px\"],table[style*=\"border-width: 0px\"] caption,table[style*=\"border-width: 0px\"] td,table[style*=\"border-width: 0px\"] th{border:1px dashed #bbb}.mce-visualblocks address,.mce-visualblocks article,.mce-visualblocks aside,.mce-visualblocks blockquote,.mce-visualblocks div:not([data-mce-bogus]),.mce-visualblocks dl,.mce-visualblocks figcaption,.mce-visualblocks figure,.mce-visualblocks h1,.mce-visualblocks h2,.mce-visualblocks h3,.mce-visualblocks h4,.mce-visualblocks h5,.mce-visualblocks h6,.mce-visualblocks hgroup,.mce-visualblocks ol,.mce-visualblocks p,.mce-visualblocks pre,.mce-visualblocks section,.mce-visualblocks ul{background-repeat:no-repeat;border:1px dashed #bbb;margin-left:3px;padding-top:10px}.mce-visualblocks p{background-image:url(data:image/gif;base64,R0lGODlhCQAJAJEAAAAAAP///7u7u////yH5BAEAAAMALAAAAAAJAAkAAAIQnG+CqCN/mlyvsRUpThG6AgA7)}.mce-visualblocks h1{background-image:url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybGu1JuxHoAfRNRW3TWXyF2YiRUAOw==)}.mce-visualblocks h2{background-image:url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8Hybbx4oOuqgTynJd6bGlWg3DkJzoaUAAAOw==)}.mce-visualblocks h3{background-image:url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIZjI8Hybbx4oOuqgTynJf2Ln2NOHpQpmhAAQA7)}.mce-visualblocks h4{background-image:url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxInR0zqeAdhtJlXwV1oCll2HaWgAAOw==)}.mce-visualblocks h5{background-image:url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxIoiuwjane4iq5GlW05GgIkIZUAAAOw==)}.mce-visualblocks h6{background-image:url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxIoiuwjan04jep1iZ1XRlAo5bVgAAOw==)}.mce-visualblocks div:not([data-mce-bogus]){background-image:url(data:image/gif;base64,R0lGODlhEgAKAIABALu7u////yH5BAEAAAEALAAAAAASAAoAAAIfjI9poI0cgDywrhuxfbrzDEbQM2Ei5aRjmoySW4pAAQA7)}.mce-visualblocks section{background-image:url(data:image/gif;base64,R0lGODlhKAAKAIABALu7u////yH5BAEAAAEALAAAAAAoAAoAAAI5jI+pywcNY3sBWHdNrplytD2ellDeSVbp+GmWqaDqDMepc8t17Y4vBsK5hDyJMcI6KkuYU+jpjLoKADs=)}.mce-visualblocks article{background-image:url(data:image/gif;base64,R0lGODlhKgAKAIABALu7u////yH5BAEAAAEALAAAAAAqAAoAAAI6jI+pywkNY3wG0GBvrsd2tXGYSGnfiF7ikpXemTpOiJScasYoDJJrjsG9gkCJ0ag6KhmaIe3pjDYBBQA7)}.mce-visualblocks blockquote{background-image:url(data:image/gif;base64,R0lGODlhPgAKAIABALu7u////yH5BAEAAAEALAAAAAA+AAoAAAJPjI+py+0Knpz0xQDyuUhvfoGgIX5iSKZYgq5uNL5q69asZ8s5rrf0yZmpNkJZzFesBTu8TOlDVAabUyatguVhWduud3EyiUk45xhTTgMBBQA7)}.mce-visualblocks address{background-image:url(data:image/gif;base64,R0lGODlhLQAKAIABALu7u////yH5BAEAAAEALAAAAAAtAAoAAAI/jI+pywwNozSP1gDyyZcjb3UaRpXkWaXmZW4OqKLhBmLs+K263DkJK7OJeifh7FicKD9A1/IpGdKkyFpNmCkAADs=)}.mce-visualblocks pre{background-image:url(data:image/gif;base64,R0lGODlhFQAKAIABALu7uwAAACH5BAEAAAEALAAAAAAVAAoAAAIjjI+ZoN0cgDwSmnpz1NCueYERhnibZVKLNnbOq8IvKpJtVQAAOw==)}.mce-visualblocks figure{background-image:url(data:image/gif;base64,R0lGODlhJAAKAIAAALu7u////yH5BAEAAAEALAAAAAAkAAoAAAI0jI+py+2fwAHUSFvD3RlvG4HIp4nX5JFSpnZUJ6LlrM52OE7uSWosBHScgkSZj7dDKnWAAgA7)}.mce-visualblocks figcaption{border:1px dashed #bbb}.mce-visualblocks hgroup{background-image:url(data:image/gif;base64,R0lGODlhJwAKAIABALu7uwAAACH5BAEAAAEALAAAAAAnAAoAAAI3jI+pywYNI3uB0gpsRtt5fFnfNZaVSYJil4Wo03Hv6Z62uOCgiXH1kZIIJ8NiIxRrAZNMZAtQAAA7)}.mce-visualblocks aside{background-image:url(data:image/gif;base64,R0lGODlhHgAKAIABAKqqqv///yH5BAEAAAEALAAAAAAeAAoAAAItjI+pG8APjZOTzgtqy7I3f1yehmQcFY4WKZbqByutmW4aHUd6vfcVbgudgpYCADs=)}.mce-visualblocks ul{background-image:url(data:image/gif;base64,R0lGODlhDQAKAIAAALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybGuYnqUVSjvw26DzzXiqIDlVwAAOw==)}.mce-visualblocks ol{background-image:url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybH6HHt0qourxC6CvzXieHyeWQAAOw==)}.mce-visualblocks dl{background-image:url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybEOnmOvUoWznTqeuEjNSCqeGRUAOw==)}.mce-visualblocks:not([dir=rtl]) address,.mce-visualblocks:not([dir=rtl]) article,.mce-visualblocks:not([dir=rtl]) aside,.mce-visualblocks:not([dir=rtl]) blockquote,.mce-visualblocks:not([dir=rtl]) div:not([data-mce-bogus]),.mce-visualblocks:not([dir=rtl]) dl,.mce-visualblocks:not([dir=rtl]) figcaption,.mce-visualblocks:not([dir=rtl]) figure,.mce-visualblocks:not([dir=rtl]) h1,.mce-visualblocks:not([dir=rtl]) h2,.mce-visualblocks:not([dir=rtl]) h3,.mce-visualblocks:not([dir=rtl]) h4,.mce-visualblocks:not([dir=rtl]) h5,.mce-visualblocks:not([dir=rtl]) h6,.mce-visualblocks:not([dir=rtl]) hgroup,.mce-visualblocks:not([dir=rtl]) ol,.mce-visualblocks:not([dir=rtl]) p,.mce-visualblocks:not([dir=rtl]) pre,.mce-visualblocks:not([dir=rtl]) section,.mce-visualblocks:not([dir=rtl]) ul{margin-left:3px}.mce-visualblocks[dir=rtl] address,.mce-visualblocks[dir=rtl] article,.mce-visualblocks[dir=rtl] aside,.mce-visualblocks[dir=rtl] blockquote,.mce-visualblocks[dir=rtl] div:not([data-mce-bogus]),.mce-visualblocks[dir=rtl] dl,.mce-visualblocks[dir=rtl] figcaption,.mce-visualblocks[dir=rtl] figure,.mce-visualblocks[dir=rtl] h1,.mce-visualblocks[dir=rtl] h2,.mce-visualblocks[dir=rtl] h3,.mce-visualblocks[dir=rtl] h4,.mce-visualblocks[dir=rtl] h5,.mce-visualblocks[dir=rtl] h6,.mce-visualblocks[dir=rtl] hgroup,.mce-visualblocks[dir=rtl] ol,.mce-visualblocks[dir=rtl] p,.mce-visualblocks[dir=rtl] pre,.mce-visualblocks[dir=rtl] section,.mce-visualblocks[dir=rtl] ul{background-position-x:right;margin-right:3px}.mce-nbsp,.mce-shy{background:#aaa}.mce-shy::after{content:'-'}body{font-family:sans-serif}table{border-collapse:collapse}") +//# sourceMappingURL=content.js.map diff --git a/tinymce-resource/skins/ui/oxide/content.min.css b/tinymce-resource/skins/ui/oxide/content.min.css new file mode 100644 index 000000000..3dbd91b6c --- /dev/null +++ b/tinymce-resource/skins/ui/oxide/content.min.css @@ -0,0 +1 @@ +.mce-content-body .mce-item-anchor{background:transparent url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D'8'%20height%3D'12'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20d%3D'M0%200L8%200%208%2012%204.09117821%209%200%2012z'%2F%3E%3C%2Fsvg%3E%0A") no-repeat center}.mce-content-body .mce-item-anchor:empty{cursor:default;display:inline-block;height:12px!important;padding:0 2px;-webkit-user-modify:read-only;-moz-user-modify:read-only;-webkit-user-select:all;-moz-user-select:all;user-select:all;width:8px!important}.mce-content-body .mce-item-anchor:not(:empty){background-position-x:2px;display:inline-block;padding-left:12px}.mce-content-body .mce-item-anchor[data-mce-selected]{outline-offset:1px}.tox-comments-visible .tox-comment[contenteditable=false]:not([data-mce-selected]),.tox-comments-visible span.tox-comment img:not([data-mce-selected]),.tox-comments-visible span.tox-comment span.mce-preview-object:not([data-mce-selected]),.tox-comments-visible span.tox-comment>audio:not([data-mce-selected]),.tox-comments-visible span.tox-comment>video:not([data-mce-selected]){outline:3px solid #ffe89d}.tox-comments-visible .tox-comment[contenteditable=false][data-mce-annotation-active=true]:not([data-mce-selected]){outline:3px solid #fed635}.tox-comments-visible span.tox-comment[data-mce-annotation-active=true] img:not([data-mce-selected]),.tox-comments-visible span.tox-comment[data-mce-annotation-active=true] span.mce-preview-object:not([data-mce-selected]),.tox-comments-visible span.tox-comment[data-mce-annotation-active=true]>audio:not([data-mce-selected]),.tox-comments-visible span.tox-comment[data-mce-annotation-active=true]>video:not([data-mce-selected]){outline:3px solid #fed635}.tox-comments-visible span.tox-comment:not([data-mce-selected]){background-color:#ffe89d;outline:0}.tox-comments-visible span.tox-comment[data-mce-annotation-active=true]:not([data-mce-selected=inline-boundary]){background-color:#fed635}.tox-checklist>li:not(.tox-checklist--hidden){list-style:none;margin:.25em 0}.tox-checklist>li:not(.tox-checklist--hidden)::before{content:url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cg%20id%3D%22checklist-unchecked%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Crect%20id%3D%22Rectangle%22%20width%3D%2215%22%20height%3D%2215%22%20x%3D%22.5%22%20y%3D%22.5%22%20fill-rule%3D%22nonzero%22%20stroke%3D%22%234C4C4C%22%20rx%3D%222%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%0A");cursor:pointer;height:1em;margin-left:-1.5em;margin-top:.125em;position:absolute;width:1em}.tox-checklist li:not(.tox-checklist--hidden).tox-checklist--checked::before{content:url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cg%20id%3D%22checklist-checked%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Crect%20id%3D%22Rectangle%22%20width%3D%2216%22%20height%3D%2216%22%20fill%3D%22%234099FF%22%20fill-rule%3D%22nonzero%22%20rx%3D%222%22%2F%3E%3Cpath%20id%3D%22Path%22%20fill%3D%22%23FFF%22%20fill-rule%3D%22nonzero%22%20d%3D%22M11.5703186%2C3.14417309%20C11.8516238%2C2.73724603%2012.4164781%2C2.62829933%2012.83558%2C2.89774797%20C13.260121%2C3.17069355%2013.3759736%2C3.72932262%2013.0909105%2C4.14168582%20L7.7580587%2C11.8560195%20C7.43776896%2C12.3193404%206.76483983%2C12.3852142%206.35607322%2C11.9948725%20L3.02491697%2C8.8138662%20C2.66090143%2C8.46625845%202.65798871%2C7.89594698%203.01850234%2C7.54483354%20C3.373942%2C7.19866177%203.94940006%2C7.19592841%204.30829608%2C7.5386474%20L6.85276923%2C9.9684299%20L11.5703186%2C3.14417309%20Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%0A")}[dir=rtl] .tox-checklist>li:not(.tox-checklist--hidden)::before{margin-left:0;margin-right:-1.5em}code[class*=language-],pre[class*=language-]{color:#000;background:0 0;text-shadow:0 1px #fff;font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;tab-size:4;-webkit-hyphens:none;hyphens:none}code[class*=language-] ::-moz-selection,code[class*=language-]::-moz-selection,pre[class*=language-] ::-moz-selection,pre[class*=language-]::-moz-selection{text-shadow:none;background:#b3d4fc}code[class*=language-] ::selection,code[class*=language-]::selection,pre[class*=language-] ::selection,pre[class*=language-]::selection{text-shadow:none;background:#b3d4fc}@media print{code[class*=language-],pre[class*=language-]{text-shadow:none}}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background:#f5f2f0}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#708090}.token.punctuation{color:#999}.token.namespace{opacity:.7}.token.boolean,.token.constant,.token.deleted,.token.number,.token.property,.token.symbol,.token.tag{color:#905}.token.attr-name,.token.builtin,.token.char,.token.inserted,.token.selector,.token.string{color:#690}.language-css .token.string,.style .token.string,.token.entity,.token.operator,.token.url{color:#9a6e3a;background:hsla(0,0%,100%,.5)}.token.atrule,.token.attr-value,.token.keyword{color:#07a}.token.class-name,.token.function{color:#dd4a68}.token.important,.token.regex,.token.variable{color:#e90}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}.mce-content-body{overflow-wrap:break-word;word-wrap:break-word}.mce-content-body .mce-visual-caret{background-color:#000;background-color:currentColor;position:absolute}.mce-content-body .mce-visual-caret-hidden{display:none}.mce-content-body [data-mce-caret]{left:-1000px;margin:0;padding:0;position:absolute;right:auto;top:0}.mce-content-body .mce-offscreen-selection{left:-2000000px;max-width:1000000px;position:absolute}.mce-content-body [contentEditable=false]{cursor:default}.mce-content-body [contentEditable=true]{cursor:text}.tox-cursor-format-painter{cursor:url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%0A%20%20%3Cg%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%0A%20%20%20%20%3Cpath%20fill%3D%22%23000%22%20fill-rule%3D%22nonzero%22%20d%3D%22M15%2C6%20C15%2C5.45%2014.55%2C5%2014%2C5%20L6%2C5%20C5.45%2C5%205%2C5.45%205%2C6%20L5%2C10%20C5%2C10.55%205.45%2C11%206%2C11%20L14%2C11%20C14.55%2C11%2015%2C10.55%2015%2C10%20L15%2C9%20L16%2C9%20L16%2C12%20L9%2C12%20L9%2C19%20C9%2C19.55%209.45%2C20%2010%2C20%20L11%2C20%20C11.55%2C20%2012%2C19.55%2012%2C19%20L12%2C14%20L18%2C14%20L18%2C7%20L15%2C7%20L15%2C6%20Z%22%2F%3E%0A%20%20%20%20%3Cpath%20fill%3D%22%23000%22%20fill-rule%3D%22nonzero%22%20d%3D%22M1%2C1%20L8.25%2C1%20C8.66421356%2C1%209%2C1.33578644%209%2C1.75%20L9%2C1.75%20C9%2C2.16421356%208.66421356%2C2.5%208.25%2C2.5%20L2.5%2C2.5%20L2.5%2C8.25%20C2.5%2C8.66421356%202.16421356%2C9%201.75%2C9%20L1.75%2C9%20C1.33578644%2C9%201%2C8.66421356%201%2C8.25%20L1%2C1%20Z%22%2F%3E%0A%20%20%3C%2Fg%3E%0A%3C%2Fsvg%3E%0A"),default}div.mce-footnotes hr{margin-inline-end:auto;margin-inline-start:0;width:25%}div.mce-footnotes li>a.mce-footnotes-backlink{text-decoration:none}@media print{sup.mce-footnote a{color:#000;text-decoration:none}div.mce-footnotes{break-inside:avoid;width:100%}div.mce-footnotes li>a.mce-footnotes-backlink{display:none}}.mce-content-body figure.align-left{float:left}.mce-content-body figure.align-right{float:right}.mce-content-body figure.image.align-center{display:table;margin-left:auto;margin-right:auto}.mce-preview-object{border:1px solid gray;display:inline-block;line-height:0;margin:0 2px 0 2px;position:relative}.mce-preview-object .mce-shim{background:url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);height:100%;left:0;position:absolute;top:0;width:100%}.mce-preview-object[data-mce-selected="2"] .mce-shim{display:none}.mce-content-body .mce-mergetag{cursor:default!important;-webkit-user-select:none;-moz-user-select:none;user-select:none}.mce-content-body .mce-mergetag:hover{background-color:rgba(0,108,231,.1)}.mce-content-body .mce-mergetag-affix{background-color:rgba(0,108,231,.1);color:#006ce7}.mce-object{background:transparent url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Cpath%20d%3D%22M4%203h16a1%201%200%200%201%201%201v16a1%201%200%200%201-1%201H4a1%201%200%200%201-1-1V4a1%201%200%200%201%201-1zm1%202v14h14V5H5zm4.79%202.565l5.64%204.028a.5.5%200%200%201%200%20.814l-5.64%204.028a.5.5%200%200%201-.79-.407V7.972a.5.5%200%200%201%20.79-.407z%22%2F%3E%3C%2Fsvg%3E%0A") no-repeat center;border:1px dashed #aaa}.mce-pagebreak{border:1px dashed #aaa;cursor:default;display:block;height:5px;margin-top:15px;page-break-before:always;width:100%}@media print{.mce-pagebreak{border:0}}.tiny-pageembed .mce-shim{background:url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);height:100%;left:0;position:absolute;top:0;width:100%}.tiny-pageembed[data-mce-selected="2"] .mce-shim{display:none}.tiny-pageembed{display:inline-block;position:relative}.tiny-pageembed--16by9,.tiny-pageembed--1by1,.tiny-pageembed--21by9,.tiny-pageembed--4by3{display:block;overflow:hidden;padding:0;position:relative;width:100%}.tiny-pageembed--21by9{padding-top:42.857143%}.tiny-pageembed--16by9{padding-top:56.25%}.tiny-pageembed--4by3{padding-top:75%}.tiny-pageembed--1by1{padding-top:100%}.tiny-pageembed--16by9 iframe,.tiny-pageembed--1by1 iframe,.tiny-pageembed--21by9 iframe,.tiny-pageembed--4by3 iframe{border:0;height:100%;left:0;position:absolute;top:0;width:100%}.mce-content-body[data-mce-placeholder]{position:relative}.mce-content-body[data-mce-placeholder]:not(.mce-visualblocks)::before{color:rgba(34,47,62,.7);content:attr(data-mce-placeholder);position:absolute}.mce-content-body:not([dir=rtl])[data-mce-placeholder]:not(.mce-visualblocks)::before{left:1px}.mce-content-body[dir=rtl][data-mce-placeholder]:not(.mce-visualblocks)::before{right:1px}.mce-content-body div.mce-resizehandle{background-color:#4099ff;border-color:#4099ff;border-style:solid;border-width:1px;box-sizing:border-box;height:10px;position:absolute;width:10px;z-index:1298}.mce-content-body div.mce-resizehandle:hover{background-color:#4099ff}.mce-content-body div.mce-resizehandle:nth-of-type(1){cursor:nwse-resize}.mce-content-body div.mce-resizehandle:nth-of-type(2){cursor:nesw-resize}.mce-content-body div.mce-resizehandle:nth-of-type(3){cursor:nwse-resize}.mce-content-body div.mce-resizehandle:nth-of-type(4){cursor:nesw-resize}.mce-content-body .mce-resize-backdrop{z-index:10000}.mce-content-body .mce-clonedresizable{cursor:default;opacity:.5;outline:1px dashed #000;position:absolute;z-index:10001}.mce-content-body .mce-clonedresizable.mce-resizetable-columns td,.mce-content-body .mce-clonedresizable.mce-resizetable-columns th{border:0}.mce-content-body .mce-resize-helper{background:#555;background:rgba(0,0,0,.75);border:1px;border-radius:3px;color:#fff;display:none;font-family:sans-serif;font-size:12px;line-height:14px;margin:5px 10px;padding:5px;position:absolute;white-space:nowrap;z-index:10002}.tox-rtc-user-selection{position:relative}.tox-rtc-user-cursor{bottom:0;cursor:default;position:absolute;top:0;width:2px}.tox-rtc-user-cursor::before{background-color:inherit;border-radius:50%;content:'';display:block;height:8px;position:absolute;right:-3px;top:-3px;width:8px}.tox-rtc-user-cursor:hover::after{background-color:inherit;border-radius:100px;box-sizing:border-box;color:#fff;content:attr(data-user);display:block;font-size:12px;font-weight:700;left:-5px;min-height:8px;min-width:8px;padding:0 12px;position:absolute;top:-11px;white-space:nowrap;z-index:1000}.tox-rtc-user-selection--1 .tox-rtc-user-cursor{background-color:#2dc26b}.tox-rtc-user-selection--2 .tox-rtc-user-cursor{background-color:#e03e2d}.tox-rtc-user-selection--3 .tox-rtc-user-cursor{background-color:#f1c40f}.tox-rtc-user-selection--4 .tox-rtc-user-cursor{background-color:#3598db}.tox-rtc-user-selection--5 .tox-rtc-user-cursor{background-color:#b96ad9}.tox-rtc-user-selection--6 .tox-rtc-user-cursor{background-color:#e67e23}.tox-rtc-user-selection--7 .tox-rtc-user-cursor{background-color:#aaa69d}.tox-rtc-user-selection--8 .tox-rtc-user-cursor{background-color:#f368e0}.tox-rtc-remote-image{background:#eaeaea url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%2236%22%20height%3D%2212%22%20viewBox%3D%220%200%2036%2012%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%20%20%3Ccircle%20cx%3D%226%22%20cy%3D%226%22%20r%3D%223%22%20fill%3D%22rgba(0%2C%200%2C%200%2C%20.2)%22%3E%0A%20%20%20%20%3Canimate%20attributeName%3D%22r%22%20values%3D%223%3B5%3B3%22%20calcMode%3D%22linear%22%20dur%3D%221s%22%20repeatCount%3D%22indefinite%22%20%2F%3E%0A%20%20%3C%2Fcircle%3E%0A%20%20%3Ccircle%20cx%3D%2218%22%20cy%3D%226%22%20r%3D%223%22%20fill%3D%22rgba(0%2C%200%2C%200%2C%20.2)%22%3E%0A%20%20%20%20%3Canimate%20attributeName%3D%22r%22%20values%3D%223%3B5%3B3%22%20calcMode%3D%22linear%22%20begin%3D%22.33s%22%20dur%3D%221s%22%20repeatCount%3D%22indefinite%22%20%2F%3E%0A%20%20%3C%2Fcircle%3E%0A%20%20%3Ccircle%20cx%3D%2230%22%20cy%3D%226%22%20r%3D%223%22%20fill%3D%22rgba(0%2C%200%2C%200%2C%20.2)%22%3E%0A%20%20%20%20%3Canimate%20attributeName%3D%22r%22%20values%3D%223%3B5%3B3%22%20calcMode%3D%22linear%22%20begin%3D%22.66s%22%20dur%3D%221s%22%20repeatCount%3D%22indefinite%22%20%2F%3E%0A%20%20%3C%2Fcircle%3E%0A%3C%2Fsvg%3E%0A") no-repeat center center;border:1px solid #ccc;min-height:240px;min-width:320px}.mce-match-marker{background:#aaa;color:#fff}.mce-match-marker-selected{background:#39f;color:#fff}.mce-match-marker-selected::-moz-selection{background:#39f;color:#fff}.mce-match-marker-selected::selection{background:#39f;color:#fff}.mce-content-body audio[data-mce-selected],.mce-content-body details[data-mce-selected],.mce-content-body embed[data-mce-selected],.mce-content-body img[data-mce-selected],.mce-content-body object[data-mce-selected],.mce-content-body table[data-mce-selected],.mce-content-body video[data-mce-selected]{outline:3px solid #b4d7ff}.mce-content-body hr[data-mce-selected]{outline:3px solid #b4d7ff;outline-offset:1px}.mce-content-body [contentEditable=false] [contentEditable=true]:focus{outline:3px solid #b4d7ff}.mce-content-body [contentEditable=false] [contentEditable=true]:hover{outline:3px solid #b4d7ff}.mce-content-body [contentEditable=false][data-mce-selected]{cursor:not-allowed;outline:3px solid #b4d7ff}.mce-content-body.mce-content-readonly [contentEditable=true]:focus,.mce-content-body.mce-content-readonly [contentEditable=true]:hover{outline:0}.mce-content-body [data-mce-selected=inline-boundary]{background-color:#b4d7ff}.mce-content-body .mce-edit-focus{outline:3px solid #b4d7ff}.mce-content-body td[data-mce-selected],.mce-content-body th[data-mce-selected]{position:relative}.mce-content-body td[data-mce-selected]::-moz-selection,.mce-content-body th[data-mce-selected]::-moz-selection{background:0 0}.mce-content-body td[data-mce-selected]::selection,.mce-content-body th[data-mce-selected]::selection{background:0 0}.mce-content-body td[data-mce-selected] *,.mce-content-body th[data-mce-selected] *{outline:0;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.mce-content-body td[data-mce-selected]::after,.mce-content-body th[data-mce-selected]::after{background-color:rgba(180,215,255,.7);border:1px solid rgba(180,215,255,.7);bottom:-1px;content:'';left:-1px;mix-blend-mode:multiply;position:absolute;right:-1px;top:-1px}@media screen and (-ms-high-contrast:active),(-ms-high-contrast:none){.mce-content-body td[data-mce-selected]::after,.mce-content-body th[data-mce-selected]::after{border-color:rgba(0,84,180,.7)}}.mce-content-body img[data-mce-selected]::-moz-selection{background:0 0}.mce-content-body img[data-mce-selected]::selection{background:0 0}.ephox-snooker-resizer-bar{background-color:#b4d7ff;opacity:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ephox-snooker-resizer-cols{cursor:col-resize}.ephox-snooker-resizer-rows{cursor:row-resize}.ephox-snooker-resizer-bar.ephox-snooker-resizer-bar-dragging{opacity:1}.mce-spellchecker-word{background-image:url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D'4'%20height%3D'4'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20stroke%3D'%23ff0000'%20fill%3D'none'%20stroke-linecap%3D'round'%20stroke-opacity%3D'.75'%20d%3D'M0%203L2%201%204%203'%2F%3E%3C%2Fsvg%3E%0A");background-position:0 calc(100% + 1px);background-repeat:repeat-x;background-size:auto 6px;cursor:default;height:2rem}.mce-spellchecker-grammar{background-image:url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D'4'%20height%3D'4'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20stroke%3D'%2300A835'%20fill%3D'none'%20stroke-linecap%3D'round'%20d%3D'M0%203L2%201%204%203'%2F%3E%3C%2Fsvg%3E%0A");background-position:0 calc(100% + 1px);background-repeat:repeat-x;background-size:auto 6px;cursor:default}.mce-toc{border:1px solid gray}.mce-toc h2{margin:4px}.mce-toc ul>li{list-style-type:none}[data-mce-block]{display:block}.mce-item-table:not([border]),.mce-item-table:not([border]) caption,.mce-item-table:not([border]) td,.mce-item-table:not([border]) th,.mce-item-table[border="0"],.mce-item-table[border="0"] caption,.mce-item-table[border="0"] td,.mce-item-table[border="0"] th,table[style*="border-width: 0px"],table[style*="border-width: 0px"] caption,table[style*="border-width: 0px"] td,table[style*="border-width: 0px"] th{border:1px dashed #bbb}.mce-visualblocks address,.mce-visualblocks article,.mce-visualblocks aside,.mce-visualblocks blockquote,.mce-visualblocks div:not([data-mce-bogus]),.mce-visualblocks dl,.mce-visualblocks figcaption,.mce-visualblocks figure,.mce-visualblocks h1,.mce-visualblocks h2,.mce-visualblocks h3,.mce-visualblocks h4,.mce-visualblocks h5,.mce-visualblocks h6,.mce-visualblocks hgroup,.mce-visualblocks ol,.mce-visualblocks p,.mce-visualblocks pre,.mce-visualblocks section,.mce-visualblocks ul{background-repeat:no-repeat;border:1px dashed #bbb;margin-left:3px;padding-top:10px}.mce-visualblocks p{background-image:url(data:image/gif;base64,R0lGODlhCQAJAJEAAAAAAP///7u7u////yH5BAEAAAMALAAAAAAJAAkAAAIQnG+CqCN/mlyvsRUpThG6AgA7)}.mce-visualblocks h1{background-image:url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybGu1JuxHoAfRNRW3TWXyF2YiRUAOw==)}.mce-visualblocks h2{background-image:url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8Hybbx4oOuqgTynJd6bGlWg3DkJzoaUAAAOw==)}.mce-visualblocks h3{background-image:url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIZjI8Hybbx4oOuqgTynJf2Ln2NOHpQpmhAAQA7)}.mce-visualblocks h4{background-image:url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxInR0zqeAdhtJlXwV1oCll2HaWgAAOw==)}.mce-visualblocks h5{background-image:url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxIoiuwjane4iq5GlW05GgIkIZUAAAOw==)}.mce-visualblocks h6{background-image:url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxIoiuwjan04jep1iZ1XRlAo5bVgAAOw==)}.mce-visualblocks div:not([data-mce-bogus]){background-image:url(data:image/gif;base64,R0lGODlhEgAKAIABALu7u////yH5BAEAAAEALAAAAAASAAoAAAIfjI9poI0cgDywrhuxfbrzDEbQM2Ei5aRjmoySW4pAAQA7)}.mce-visualblocks section{background-image:url(data:image/gif;base64,R0lGODlhKAAKAIABALu7u////yH5BAEAAAEALAAAAAAoAAoAAAI5jI+pywcNY3sBWHdNrplytD2ellDeSVbp+GmWqaDqDMepc8t17Y4vBsK5hDyJMcI6KkuYU+jpjLoKADs=)}.mce-visualblocks article{background-image:url(data:image/gif;base64,R0lGODlhKgAKAIABALu7u////yH5BAEAAAEALAAAAAAqAAoAAAI6jI+pywkNY3wG0GBvrsd2tXGYSGnfiF7ikpXemTpOiJScasYoDJJrjsG9gkCJ0ag6KhmaIe3pjDYBBQA7)}.mce-visualblocks blockquote{background-image:url(data:image/gif;base64,R0lGODlhPgAKAIABALu7u////yH5BAEAAAEALAAAAAA+AAoAAAJPjI+py+0Knpz0xQDyuUhvfoGgIX5iSKZYgq5uNL5q69asZ8s5rrf0yZmpNkJZzFesBTu8TOlDVAabUyatguVhWduud3EyiUk45xhTTgMBBQA7)}.mce-visualblocks address{background-image:url(data:image/gif;base64,R0lGODlhLQAKAIABALu7u////yH5BAEAAAEALAAAAAAtAAoAAAI/jI+pywwNozSP1gDyyZcjb3UaRpXkWaXmZW4OqKLhBmLs+K263DkJK7OJeifh7FicKD9A1/IpGdKkyFpNmCkAADs=)}.mce-visualblocks pre{background-image:url(data:image/gif;base64,R0lGODlhFQAKAIABALu7uwAAACH5BAEAAAEALAAAAAAVAAoAAAIjjI+ZoN0cgDwSmnpz1NCueYERhnibZVKLNnbOq8IvKpJtVQAAOw==)}.mce-visualblocks figure{background-image:url(data:image/gif;base64,R0lGODlhJAAKAIAAALu7u////yH5BAEAAAEALAAAAAAkAAoAAAI0jI+py+2fwAHUSFvD3RlvG4HIp4nX5JFSpnZUJ6LlrM52OE7uSWosBHScgkSZj7dDKnWAAgA7)}.mce-visualblocks figcaption{border:1px dashed #bbb}.mce-visualblocks hgroup{background-image:url(data:image/gif;base64,R0lGODlhJwAKAIABALu7uwAAACH5BAEAAAEALAAAAAAnAAoAAAI3jI+pywYNI3uB0gpsRtt5fFnfNZaVSYJil4Wo03Hv6Z62uOCgiXH1kZIIJ8NiIxRrAZNMZAtQAAA7)}.mce-visualblocks aside{background-image:url(data:image/gif;base64,R0lGODlhHgAKAIABAKqqqv///yH5BAEAAAEALAAAAAAeAAoAAAItjI+pG8APjZOTzgtqy7I3f1yehmQcFY4WKZbqByutmW4aHUd6vfcVbgudgpYCADs=)}.mce-visualblocks ul{background-image:url(data:image/gif;base64,R0lGODlhDQAKAIAAALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybGuYnqUVSjvw26DzzXiqIDlVwAAOw==)}.mce-visualblocks ol{background-image:url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybH6HHt0qourxC6CvzXieHyeWQAAOw==)}.mce-visualblocks dl{background-image:url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybEOnmOvUoWznTqeuEjNSCqeGRUAOw==)}.mce-visualblocks:not([dir=rtl]) address,.mce-visualblocks:not([dir=rtl]) article,.mce-visualblocks:not([dir=rtl]) aside,.mce-visualblocks:not([dir=rtl]) blockquote,.mce-visualblocks:not([dir=rtl]) div:not([data-mce-bogus]),.mce-visualblocks:not([dir=rtl]) dl,.mce-visualblocks:not([dir=rtl]) figcaption,.mce-visualblocks:not([dir=rtl]) figure,.mce-visualblocks:not([dir=rtl]) h1,.mce-visualblocks:not([dir=rtl]) h2,.mce-visualblocks:not([dir=rtl]) h3,.mce-visualblocks:not([dir=rtl]) h4,.mce-visualblocks:not([dir=rtl]) h5,.mce-visualblocks:not([dir=rtl]) h6,.mce-visualblocks:not([dir=rtl]) hgroup,.mce-visualblocks:not([dir=rtl]) ol,.mce-visualblocks:not([dir=rtl]) p,.mce-visualblocks:not([dir=rtl]) pre,.mce-visualblocks:not([dir=rtl]) section,.mce-visualblocks:not([dir=rtl]) ul{margin-left:3px}.mce-visualblocks[dir=rtl] address,.mce-visualblocks[dir=rtl] article,.mce-visualblocks[dir=rtl] aside,.mce-visualblocks[dir=rtl] blockquote,.mce-visualblocks[dir=rtl] div:not([data-mce-bogus]),.mce-visualblocks[dir=rtl] dl,.mce-visualblocks[dir=rtl] figcaption,.mce-visualblocks[dir=rtl] figure,.mce-visualblocks[dir=rtl] h1,.mce-visualblocks[dir=rtl] h2,.mce-visualblocks[dir=rtl] h3,.mce-visualblocks[dir=rtl] h4,.mce-visualblocks[dir=rtl] h5,.mce-visualblocks[dir=rtl] h6,.mce-visualblocks[dir=rtl] hgroup,.mce-visualblocks[dir=rtl] ol,.mce-visualblocks[dir=rtl] p,.mce-visualblocks[dir=rtl] pre,.mce-visualblocks[dir=rtl] section,.mce-visualblocks[dir=rtl] ul{background-position-x:right;margin-right:3px}.mce-nbsp,.mce-shy{background:#aaa}.mce-shy::after{content:'-'}body{font-family:sans-serif}table{border-collapse:collapse} diff --git a/tinymce-resource/skins/ui/oxide/skin.css b/tinymce-resource/skins/ui/oxide/skin.css new file mode 100644 index 000000000..91149a433 --- /dev/null +++ b/tinymce-resource/skins/ui/oxide/skin.css @@ -0,0 +1,3763 @@ +.tox { + box-shadow: none; + box-sizing: content-box; + color: #222f3e; + cursor: auto; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + font-size: 16px; + font-style: normal; + font-weight: normal; + line-height: normal; + -webkit-tap-highlight-color: transparent; + text-decoration: none; + text-shadow: none; + text-transform: none; + vertical-align: initial; + white-space: normal; +} +.tox *:not(svg):not(rect) { + box-sizing: inherit; + color: inherit; + cursor: inherit; + direction: inherit; + font-family: inherit; + font-size: inherit; + font-style: inherit; + font-weight: inherit; + line-height: inherit; + -webkit-tap-highlight-color: inherit; + text-align: inherit; + text-decoration: inherit; + text-shadow: inherit; + text-transform: inherit; + vertical-align: inherit; + white-space: inherit; +} +.tox *:not(svg):not(rect) { + /* stylelint-disable-line no-duplicate-selectors */ + background: transparent; + border: 0; + box-shadow: none; + float: none; + height: auto; + margin: 0; + max-width: none; + outline: 0; + padding: 0; + position: static; + width: auto; +} +.tox:not([dir=rtl]) { + direction: ltr; + text-align: left; +} +.tox[dir=rtl] { + direction: rtl; + text-align: right; +} +.tox-tinymce { + border: 2px solid #eeeeee; + border-radius: 10px; + box-shadow: none; + box-sizing: border-box; + display: flex; + flex-direction: column; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + overflow: hidden; + position: relative; + visibility: inherit !important; +} +.tox.tox-tinymce-inline { + border: none; + box-shadow: none; + overflow: initial; +} +.tox.tox-tinymce-inline .tox-editor-container { + overflow: initial; +} +.tox.tox-tinymce-inline .tox-editor-header { + background-color: #fff; + border: 2px solid #eeeeee; + border-radius: 10px; + box-shadow: none; + overflow: hidden; +} +.tox-tinymce-aux { + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + z-index: 1300; +} +.tox-tinymce *:focus, +.tox-tinymce-aux *:focus { + outline: none; +} +button::-moz-focus-inner { + border: 0; +} +.tox[dir=rtl] .tox-icon--flip svg { + transform: rotateY(180deg); +} +.tox .accessibility-issue__header { + align-items: center; + display: flex; + margin-bottom: 4px; +} +.tox .accessibility-issue__description { + align-items: stretch; + border-radius: 6px; + display: flex; + justify-content: space-between; +} +.tox .accessibility-issue__description > div { + padding-bottom: 4px; +} +.tox .accessibility-issue__description > div > div { + align-items: center; + display: flex; + margin-bottom: 4px; +} +.tox .accessibility-issue__description > div > div .tox-icon svg { + display: block; +} +.tox .accessibility-issue__repair { + margin-top: 16px; +} +.tox .tox-dialog__body-content .accessibility-issue--info .accessibility-issue__description { + background-color: rgba(0, 101, 216, 0.1); + color: #222f3e; +} +.tox .tox-dialog__body-content .accessibility-issue--info .tox-form__group h2 { + color: #006ce7; +} +.tox .tox-dialog__body-content .accessibility-issue--info .tox-icon svg { + fill: #006ce7; +} +.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon { + background-color: #006ce7; + color: #fff; +} +.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:hover, +.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:focus { + background-color: #0060ce; +} +.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:active { + background-color: #0054b4; +} +.tox .tox-dialog__body-content .accessibility-issue--warn { + /* stylelint-disable-next-line no-descending-specificity */ +} +.tox .tox-dialog__body-content .accessibility-issue--warn .accessibility-issue__description { + background-color: rgba(255, 165, 0, 0.08); + color: #222f3e; +} +.tox .tox-dialog__body-content .accessibility-issue--warn .tox-form__group h2 { + color: #8f5d00; +} +.tox .tox-dialog__body-content .accessibility-issue--warn .tox-icon svg { + fill: #8f5d00; +} +.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon { + background-color: #FFE89D; + color: #222f3e; +} +.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:hover, +.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:focus { + background-color: #F2D574; + color: #222f3e; +} +.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:active { + background-color: #E8C657; + color: #222f3e; +} +.tox .tox-dialog__body-content .accessibility-issue--error { + /* stylelint-disable-next-line no-descending-specificity */ +} +.tox .tox-dialog__body-content .accessibility-issue--error .accessibility-issue__description { + background-color: rgba(204, 0, 0, 0.1); + color: #222f3e; +} +.tox .tox-dialog__body-content .accessibility-issue--error .tox-form__group h2 { + color: #c00; +} +.tox .tox-dialog__body-content .accessibility-issue--error .tox-icon svg { + fill: #c00; +} +.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon { + background-color: #F2BFBF; + color: #222f3e; +} +.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:hover, +.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:focus { + background-color: #E9A4A4; + color: #222f3e; +} +.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:active { + background-color: #EE9494; + color: #222f3e; +} +.tox .tox-dialog__body-content .accessibility-issue--success .accessibility-issue__description { + background-color: rgba(120, 171, 70, 0.1); + color: #222f3e; +} +.tox .tox-dialog__body-content .accessibility-issue--success .accessibility-issue__description > *:last-child { + display: none; +} +.tox .tox-dialog__body-content .accessibility-issue--success .tox-form__group h2 { + color: #527530; +} +.tox .tox-dialog__body-content .accessibility-issue--success .tox-icon svg { + fill: #527530; +} +.tox .tox-dialog__body-content .accessibility-issue__header .tox-form__group h1, +.tox .tox-dialog__body-content .tox-form__group .accessibility-issue__description h2 { + font-size: 14px; + margin-top: 0; +} +.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__header .tox-button { + margin-left: 4px; +} +.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__header > *:nth-last-child(2) { + margin-left: auto; +} +.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__description { + padding: 4px 4px 4px 8px; +} +.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__header .tox-button { + margin-right: 4px; +} +.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__header > *:nth-last-child(2) { + margin-right: auto; +} +.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__description { + padding: 4px 8px 4px 4px; +} +.tox .tox-advtemplate .tox-form__grid { + flex: 1; +} +.tox .tox-advtemplate .tox-form__grid > div:first-child { + display: flex; + flex-direction: column; + width: 30%; +} +.tox .tox-advtemplate .tox-form__grid > div:first-child > div:nth-child(2) { + flex-basis: 0; + flex-grow: 1; + overflow: auto; +} +@media only screen and (max-width: 767px ) { + body:not(.tox-force-desktop) .tox .tox-advtemplate .tox-form__grid > div:first-child { + width: 100%; + } +} +.tox .tox-advtemplate iframe { + border-color: #eeeeee; + border-radius: 10px; + border-style: solid; + border-width: 1px; + margin: 0 10px; +} +.tox .tox-anchorbar { + display: flex; + flex: 0 0 auto; +} +.tox .tox-bottom-anchorbar { + display: flex; + flex: 0 0 auto; +} +.tox .tox-bar { + display: flex; + flex: 0 0 auto; +} +.tox .tox-button { + background-color: #006ce7; + background-image: none; + background-position: 0 0; + background-repeat: repeat; + border-color: #006ce7; + border-radius: 6px; + border-style: solid; + border-width: 1px; + box-shadow: none; + box-sizing: border-box; + color: #fff; + cursor: pointer; + display: inline-block; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + font-size: 14px; + font-style: normal; + font-weight: bold; + letter-spacing: normal; + line-height: 24px; + margin: 0; + outline: none; + padding: 4px 16px; + position: relative; + text-align: center; + text-decoration: none; + text-transform: none; + white-space: nowrap; +} +.tox .tox-button::before { + border-radius: 6px; + bottom: -1px; + box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px #006ce7, 0 0 0 3px rgba(0, 108, 231, 0.25); + content: ''; + left: -1px; + opacity: 0; + pointer-events: none; + position: absolute; + right: -1px; + top: -1px; +} +.tox .tox-button[disabled] { + background-color: #006ce7; + background-image: none; + border-color: #006ce7; + box-shadow: none; + color: rgba(255, 255, 255, 0.5); + cursor: not-allowed; +} +.tox .tox-button:focus:not(:disabled) { + background-color: #0060ce; + background-image: none; + border-color: #0060ce; + box-shadow: none; + color: #fff; +} +.tox .tox-button:focus-visible:not(:disabled)::before { + opacity: 1; +} +.tox .tox-button:hover:not(:disabled) { + background-color: #0060ce; + background-image: none; + border-color: #0060ce; + box-shadow: none; + color: #fff; +} +.tox .tox-button:active:not(:disabled) { + background-color: #0054b4; + background-image: none; + border-color: #0054b4; + box-shadow: none; + color: #fff; +} +.tox .tox-button.tox-button--enabled { + background-color: #0054b4; + background-image: none; + border-color: #0054b4; + box-shadow: none; + color: #fff; +} +.tox .tox-button.tox-button--enabled[disabled] { + background-color: #0054b4; + background-image: none; + border-color: #0054b4; + box-shadow: none; + color: rgba(255, 255, 255, 0.5); + cursor: not-allowed; +} +.tox .tox-button.tox-button--enabled:focus:not(:disabled) { + background-color: #00489b; + background-image: none; + border-color: #00489b; + box-shadow: none; + color: #fff; +} +.tox .tox-button.tox-button--enabled:hover:not(:disabled) { + background-color: #00489b; + background-image: none; + border-color: #00489b; + box-shadow: none; + color: #fff; +} +.tox .tox-button.tox-button--enabled:active:not(:disabled) { + background-color: #003c81; + background-image: none; + border-color: #003c81; + box-shadow: none; + color: #fff; +} +.tox .tox-button--icon-and-text, +.tox .tox-button.tox-button--icon-and-text, +.tox .tox-button.tox-button--secondary.tox-button--icon-and-text { + display: flex; + padding: 5px 4px; +} +.tox .tox-button--icon-and-text .tox-icon svg, +.tox .tox-button.tox-button--icon-and-text .tox-icon svg, +.tox .tox-button.tox-button--secondary.tox-button--icon-and-text .tox-icon svg { + display: block; + fill: currentColor; +} +.tox .tox-button--secondary { + background-color: #f0f0f0; + background-image: none; + background-position: 0 0; + background-repeat: repeat; + border-color: #f0f0f0; + border-radius: 6px; + border-style: solid; + border-width: 1px; + box-shadow: none; + color: #222f3e; + font-size: 14px; + font-style: normal; + font-weight: bold; + letter-spacing: normal; + outline: none; + padding: 4px 16px; + text-decoration: none; + text-transform: none; +} +.tox .tox-button--secondary[disabled] { + background-color: #f0f0f0; + background-image: none; + border-color: #f0f0f0; + box-shadow: none; + color: rgba(34, 47, 62, 0.5); +} +.tox .tox-button--secondary:focus:not(:disabled) { + background-color: #e3e3e3; + background-image: none; + border-color: #e3e3e3; + box-shadow: none; + color: #222f3e; +} +.tox .tox-button--secondary:hover:not(:disabled) { + background-color: #e3e3e3; + background-image: none; + border-color: #e3e3e3; + box-shadow: none; + color: #222f3e; +} +.tox .tox-button--secondary:active:not(:disabled) { + background-color: #d6d6d6; + background-image: none; + border-color: #d6d6d6; + box-shadow: none; + color: #222f3e; +} +.tox .tox-button--secondary.tox-button--enabled { + background-color: #a8c8ed; + background-image: none; + border-color: #a8c8ed; + box-shadow: none; + color: #222f3e; +} +.tox .tox-button--secondary.tox-button--enabled[disabled] { + background-color: #a8c8ed; + background-image: none; + border-color: #a8c8ed; + box-shadow: none; + color: rgba(34, 47, 62, 0.5); +} +.tox .tox-button--secondary.tox-button--enabled:focus:not(:disabled) { + background-color: #93bbe9; + background-image: none; + border-color: #93bbe9; + box-shadow: none; + color: #222f3e; +} +.tox .tox-button--secondary.tox-button--enabled:hover:not(:disabled) { + background-color: #93bbe9; + background-image: none; + border-color: #93bbe9; + box-shadow: none; + color: #222f3e; +} +.tox .tox-button--secondary.tox-button--enabled:active:not(:disabled) { + background-color: #7daee4; + background-image: none; + border-color: #7daee4; + box-shadow: none; + color: #222f3e; +} +.tox .tox-button--icon, +.tox .tox-button.tox-button--icon, +.tox .tox-button.tox-button--secondary.tox-button--icon { + padding: 4px; +} +.tox .tox-button--icon .tox-icon svg, +.tox .tox-button.tox-button--icon .tox-icon svg, +.tox .tox-button.tox-button--secondary.tox-button--icon .tox-icon svg { + display: block; + fill: currentColor; +} +.tox .tox-button-link { + background: 0; + border: none; + box-sizing: border-box; + cursor: pointer; + display: inline-block; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + font-size: 16px; + font-weight: normal; + line-height: 1.3; + margin: 0; + padding: 0; + white-space: nowrap; +} +.tox .tox-button-link--sm { + font-size: 14px; +} +.tox .tox-button--naked { + background-color: transparent; + border-color: transparent; + box-shadow: unset; + color: #222f3e; +} +.tox .tox-button--naked[disabled] { + background-color: rgba(34, 47, 62, 0.12); + border-color: transparent; + box-shadow: unset; + color: rgba(34, 47, 62, 0.5); +} +.tox .tox-button--naked:hover:not(:disabled) { + background-color: rgba(34, 47, 62, 0.12); + border-color: transparent; + box-shadow: unset; + color: #222f3e; +} +.tox .tox-button--naked:focus:not(:disabled) { + background-color: rgba(34, 47, 62, 0.12); + border-color: transparent; + box-shadow: unset; + color: #222f3e; +} +.tox .tox-button--naked:active:not(:disabled) { + background-color: rgba(34, 47, 62, 0.18); + border-color: transparent; + box-shadow: unset; + color: #222f3e; +} +.tox .tox-button--naked .tox-icon svg { + fill: currentColor; +} +.tox .tox-button--naked.tox-button--icon:hover:not(:disabled) { + color: #222f3e; +} +.tox .tox-checkbox { + align-items: center; + border-radius: 6px; + cursor: pointer; + display: flex; + height: 36px; + min-width: 36px; +} +.tox .tox-checkbox__input { + /* Hide from view but visible to screen readers */ + height: 1px; + overflow: hidden; + position: absolute; + top: auto; + width: 1px; +} +.tox .tox-checkbox__icons { + align-items: center; + border-radius: 6px; + box-shadow: 0 0 0 2px transparent; + box-sizing: content-box; + display: flex; + height: 24px; + justify-content: center; + padding: calc(4px - 1px); + width: 24px; +} +.tox .tox-checkbox__icons .tox-checkbox-icon__unchecked svg { + display: block; + fill: rgba(34, 47, 62, 0.3); +} +.tox .tox-checkbox__icons .tox-checkbox-icon__indeterminate svg { + display: none; + fill: #006ce7; +} +.tox .tox-checkbox__icons .tox-checkbox-icon__checked svg { + display: none; + fill: #006ce7; +} +.tox .tox-checkbox--disabled { + color: rgba(34, 47, 62, 0.5); + cursor: not-allowed; +} +.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__checked svg { + fill: rgba(34, 47, 62, 0.5); +} +.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__unchecked svg { + fill: rgba(34, 47, 62, 0.5); +} +.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__indeterminate svg { + fill: rgba(34, 47, 62, 0.5); +} +.tox input.tox-checkbox__input:checked + .tox-checkbox__icons .tox-checkbox-icon__unchecked svg { + display: none; +} +.tox input.tox-checkbox__input:checked + .tox-checkbox__icons .tox-checkbox-icon__checked svg { + display: block; +} +.tox input.tox-checkbox__input:indeterminate + .tox-checkbox__icons .tox-checkbox-icon__unchecked svg { + display: none; +} +.tox input.tox-checkbox__input:indeterminate + .tox-checkbox__icons .tox-checkbox-icon__indeterminate svg { + display: block; +} +.tox input.tox-checkbox__input:focus + .tox-checkbox__icons { + border-radius: 6px; + box-shadow: inset 0 0 0 1px #006ce7; + padding: calc(4px - 1px); +} +.tox:not([dir=rtl]) .tox-checkbox__label { + margin-left: 4px; +} +.tox:not([dir=rtl]) .tox-checkbox__input { + left: -10000px; +} +.tox:not([dir=rtl]) .tox-bar .tox-checkbox { + margin-left: 4px; +} +.tox[dir=rtl] .tox-checkbox__label { + margin-right: 4px; +} +.tox[dir=rtl] .tox-checkbox__input { + right: -10000px; +} +.tox[dir=rtl] .tox-bar .tox-checkbox { + margin-right: 4px; +} +.tox { + /* stylelint-disable-next-line no-descending-specificity */ +} +.tox .tox-collection--toolbar .tox-collection__group { + display: flex; + padding: 0; +} +.tox .tox-collection--grid .tox-collection__group { + display: flex; + flex-wrap: wrap; + max-height: 208px; + overflow-x: hidden; + overflow-y: auto; + padding: 0; +} +.tox .tox-collection--list .tox-collection__group { + border-bottom-width: 0; + border-color: #e3e3e3; + border-left-width: 0; + border-right-width: 0; + border-style: solid; + border-top-width: 1px; + padding: 4px 0; +} +.tox .tox-collection--list .tox-collection__group:first-child { + border-top-width: 0; +} +.tox .tox-collection__group-heading { + background-color: #fcfcfc; + color: rgba(34, 47, 62, 0.7); + cursor: default; + font-size: 12px; + font-style: normal; + font-weight: normal; + margin-bottom: 4px; + margin-top: -4px; + padding: 4px 8px; + text-transform: none; + -webkit-touch-callout: none; + -webkit-user-select: none; + -moz-user-select: none; + user-select: none; +} +.tox .tox-collection__item { + align-items: center; + border-radius: 3px; + color: #222f3e; + display: flex; + -webkit-touch-callout: none; + -webkit-user-select: none; + -moz-user-select: none; + user-select: none; +} +.tox .tox-collection--list .tox-collection__item { + padding: 4px 8px; +} +.tox .tox-collection--toolbar .tox-collection__item { + border-radius: 3px; + padding: 4px; +} +.tox .tox-collection--grid .tox-collection__item { + border-radius: 3px; + padding: 4px; +} +.tox .tox-collection--list .tox-collection__item--enabled { + background-color: #fff; + color: #222f3e; +} +.tox .tox-collection--list .tox-collection__item--active { + background-color: #cce2fa; +} +.tox .tox-collection--toolbar .tox-collection__item--enabled { + background-color: #a6ccf7; + color: #222f3e; +} +.tox .tox-collection--toolbar .tox-collection__item--active { + background-color: #cce2fa; +} +.tox .tox-collection--grid .tox-collection__item--enabled { + background-color: #a6ccf7; + color: #222f3e; +} +.tox .tox-collection--grid .tox-collection__item--active:not(.tox-collection__item--state-disabled) { + background-color: #cce2fa; + color: #222f3e; +} +.tox .tox-collection--list .tox-collection__item--active:not(.tox-collection__item--state-disabled) { + color: #222f3e; +} +.tox .tox-collection--toolbar .tox-collection__item--active:not(.tox-collection__item--state-disabled) { + color: #222f3e; +} +.tox .tox-collection__item-icon, +.tox .tox-collection__item-checkmark { + align-items: center; + display: flex; + height: 24px; + justify-content: center; + width: 24px; +} +.tox .tox-collection__item-icon svg, +.tox .tox-collection__item-checkmark svg { + fill: currentColor; +} +.tox .tox-collection--toolbar-lg .tox-collection__item-icon { + height: 48px; + width: 48px; +} +.tox .tox-collection__item-label { + color: currentColor; + display: inline-block; + flex: 1; + font-size: 14px; + font-style: normal; + font-weight: normal; + line-height: 24px; + max-width: 100%; + text-transform: none; + word-break: break-all; +} +.tox .tox-collection__item-accessory { + color: rgba(34, 47, 62, 0.7); + display: inline-block; + font-size: 14px; + height: 24px; + line-height: 24px; + text-transform: none; +} +.tox .tox-collection__item-caret { + align-items: center; + display: flex; + min-height: 24px; +} +.tox .tox-collection__item-caret::after { + content: ''; + font-size: 0; + min-height: inherit; +} +.tox .tox-collection__item-caret svg { + fill: #222f3e; +} +.tox .tox-collection__item--state-disabled { + background-color: transparent; + color: rgba(34, 47, 62, 0.5); + cursor: not-allowed; +} +.tox .tox-collection__item--state-disabled .tox-collection__item-caret svg { + fill: rgba(34, 47, 62, 0.5); +} +.tox .tox-collection--list .tox-collection__item:not(.tox-collection__item--enabled) .tox-collection__item-checkmark svg { + display: none; +} +.tox .tox-collection--list .tox-collection__item:not(.tox-collection__item--enabled) .tox-collection__item-accessory + .tox-collection__item-checkmark { + display: none; +} +.tox .tox-collection--horizontal { + background-color: #fff; + border: 1px solid #e3e3e3; + border-radius: 6px; + box-shadow: 0 0 2px 0 rgba(34, 47, 62, 0.2), 0 4px 8px 0 rgba(34, 47, 62, 0.15); + display: flex; + flex: 0 0 auto; + flex-shrink: 0; + flex-wrap: nowrap; + margin-bottom: 0; + overflow-x: auto; + padding: 0; +} +.tox .tox-collection--horizontal .tox-collection__group { + align-items: center; + display: flex; + flex-wrap: nowrap; + margin: 0; + padding: 0 4px; +} +.tox .tox-collection--horizontal .tox-collection__item { + height: 28px; + margin: 6px 1px 5px 0; + padding: 0 4px; +} +.tox .tox-collection--horizontal .tox-collection__item-label { + white-space: nowrap; +} +.tox .tox-collection--horizontal .tox-collection__item-caret { + margin-left: 4px; +} +.tox .tox-collection__item-container { + display: flex; +} +.tox .tox-collection__item-container--row { + align-items: center; + flex: 1 1 auto; + flex-direction: row; +} +.tox .tox-collection__item-container--row.tox-collection__item-container--align-left { + margin-right: auto; +} +.tox .tox-collection__item-container--row.tox-collection__item-container--align-right { + justify-content: flex-end; + margin-left: auto; +} +.tox .tox-collection__item-container--row.tox-collection__item-container--valign-top { + align-items: flex-start; + margin-bottom: auto; +} +.tox .tox-collection__item-container--row.tox-collection__item-container--valign-middle { + align-items: center; +} +.tox .tox-collection__item-container--row.tox-collection__item-container--valign-bottom { + align-items: flex-end; + margin-top: auto; +} +.tox .tox-collection__item-container--column { + align-self: center; + flex: 1 1 auto; + flex-direction: column; +} +.tox .tox-collection__item-container--column.tox-collection__item-container--align-left { + align-items: flex-start; +} +.tox .tox-collection__item-container--column.tox-collection__item-container--align-right { + align-items: flex-end; +} +.tox .tox-collection__item-container--column.tox-collection__item-container--valign-top { + align-self: flex-start; +} +.tox .tox-collection__item-container--column.tox-collection__item-container--valign-middle { + align-self: center; +} +.tox .tox-collection__item-container--column.tox-collection__item-container--valign-bottom { + align-self: flex-end; +} +.tox:not([dir=rtl]) .tox-collection--horizontal .tox-collection__group:not(:last-of-type) { + border-right: 1px solid transparent; +} +.tox:not([dir=rtl]) .tox-collection--list .tox-collection__item > *:not(:first-child) { + margin-left: 8px; +} +.tox:not([dir=rtl]) .tox-collection--list .tox-collection__item > .tox-collection__item-label:first-child { + margin-left: 4px; +} +.tox:not([dir=rtl]) .tox-collection__item-accessory { + margin-left: 16px; + text-align: right; +} +.tox:not([dir=rtl]) .tox-collection .tox-collection__item-caret { + margin-left: 16px; +} +.tox[dir=rtl] .tox-collection--horizontal .tox-collection__group:not(:last-of-type) { + border-left: 1px solid transparent; +} +.tox[dir=rtl] .tox-collection--list .tox-collection__item > *:not(:first-child) { + margin-right: 8px; +} +.tox[dir=rtl] .tox-collection--list .tox-collection__item > .tox-collection__item-label:first-child { + margin-right: 4px; +} +.tox[dir=rtl] .tox-collection__item-accessory { + margin-right: 16px; + text-align: left; +} +.tox[dir=rtl] .tox-collection .tox-collection__item-caret { + margin-right: 16px; + transform: rotateY(180deg); +} +.tox[dir=rtl] .tox-collection--horizontal .tox-collection__item-caret { + margin-right: 4px; +} +.tox .tox-color-picker-container { + display: flex; + flex-direction: row; + height: 225px; + margin: 0; +} +.tox .tox-sv-palette { + box-sizing: border-box; + display: flex; + height: 100%; +} +.tox .tox-sv-palette-spectrum { + height: 100%; +} +.tox .tox-sv-palette, +.tox .tox-sv-palette-spectrum { + width: 225px; +} +.tox .tox-sv-palette-thumb { + background: none; + border: 1px solid black; + border-radius: 50%; + box-sizing: content-box; + height: 12px; + position: absolute; + width: 12px; +} +.tox .tox-sv-palette-inner-thumb { + border: 1px solid white; + border-radius: 50%; + height: 10px; + position: absolute; + width: 10px; +} +.tox .tox-hue-slider { + box-sizing: border-box; + height: 100%; + width: 25px; +} +.tox .tox-hue-slider-spectrum { + background: linear-gradient(to bottom, #f00, #ff0080, #f0f, #8000ff, #00f, #0080ff, #0ff, #00ff80, #0f0, #80ff00, #ff0, #ff8000, #f00); + height: 100%; + width: 100%; +} +.tox .tox-hue-slider, +.tox .tox-hue-slider-spectrum { + width: 20px; +} +.tox .tox-hue-slider-spectrum:focus, +.tox .tox-sv-palette-spectrum:focus { + outline: #08f solid; +} +.tox .tox-hue-slider-thumb { + background: white; + border: 1px solid black; + box-sizing: content-box; + height: 4px; + width: 100%; +} +.tox .tox-rgb-form { + display: flex; + flex-direction: column; + justify-content: space-between; +} +.tox .tox-rgb-form div { + align-items: center; + display: flex; + justify-content: space-between; + margin-bottom: 5px; + width: inherit; +} +.tox .tox-rgb-form input { + width: 6em; +} +.tox .tox-rgb-form input.tox-invalid { + /* Need !important to override Chrome's focus styling unfortunately */ + border: 1px solid red !important; +} +.tox .tox-rgb-form .tox-rgba-preview { + border: 1px solid black; + flex-grow: 2; + margin-bottom: 0; +} +.tox:not([dir=rtl]) .tox-sv-palette { + margin-right: 15px; +} +.tox:not([dir=rtl]) .tox-hue-slider { + margin-right: 15px; +} +.tox:not([dir=rtl]) .tox-hue-slider-thumb { + margin-left: -1px; +} +.tox:not([dir=rtl]) .tox-rgb-form label { + margin-right: 0.5em; +} +.tox[dir=rtl] .tox-sv-palette { + margin-left: 15px; +} +.tox[dir=rtl] .tox-hue-slider { + margin-left: 15px; +} +.tox[dir=rtl] .tox-hue-slider-thumb { + margin-right: -1px; +} +.tox[dir=rtl] .tox-rgb-form label { + margin-left: 0.5em; +} +.tox .tox-toolbar .tox-swatches, +.tox .tox-toolbar__primary .tox-swatches, +.tox .tox-toolbar__overflow .tox-swatches { + margin: 5px 0 6px 11px; +} +.tox .tox-collection--list .tox-collection__group .tox-swatches-menu { + border: 0; + margin: -4px -4px; +} +.tox .tox-swatches__row { + display: flex; +} +.tox .tox-swatch { + height: 30px; + transition: transform 0.15s, box-shadow 0.15s; + width: 30px; +} +.tox .tox-swatch:hover, +.tox .tox-swatch:focus { + box-shadow: 0 0 0 1px rgba(127, 127, 127, 0.3) inset; + transform: scale(0.8); +} +.tox .tox-swatch--remove { + align-items: center; + display: flex; + justify-content: center; +} +.tox .tox-swatch--remove svg path { + stroke: #e74c3c; +} +.tox .tox-swatches__picker-btn { + align-items: center; + background-color: transparent; + border: 0; + cursor: pointer; + display: flex; + height: 30px; + justify-content: center; + outline: none; + padding: 0; + width: 30px; +} +.tox .tox-swatches__picker-btn svg { + fill: #222f3e; + height: 24px; + width: 24px; +} +.tox .tox-swatches__picker-btn:hover { + background: #cce2fa; +} +.tox div.tox-swatch:not(.tox-swatch--remove) svg { + display: none; + fill: #222f3e; + height: 24px; + margin: calc((30px - 24px) / 2) calc((30px - 24px) / 2); + width: 24px; +} +.tox div.tox-swatch:not(.tox-swatch--remove) svg path { + fill: #fff; + paint-order: stroke; + stroke: #222f3e; + stroke-width: 2px; +} +.tox div.tox-swatch:not(.tox-swatch--remove).tox-collection__item--enabled svg { + display: block; +} +.tox:not([dir=rtl]) .tox-swatches__picker-btn { + margin-left: auto; +} +.tox[dir=rtl] .tox-swatches__picker-btn { + margin-right: auto; +} +.tox .tox-comment-thread { + background: #fff; + position: relative; +} +.tox .tox-comment-thread > *:not(:first-child) { + margin-top: 8px; +} +.tox .tox-comment { + background: #fff; + border: 1px solid #eeeeee; + border-radius: 6px; + box-shadow: 0 4px 8px 0 rgba(34, 47, 62, 0.1); + padding: 8px 8px 16px 8px; + position: relative; +} +.tox .tox-comment__header { + align-items: center; + color: #222f3e; + display: flex; + justify-content: space-between; +} +.tox .tox-comment__date { + color: #222f3e; + font-size: 12px; + line-height: 18px; +} +.tox .tox-comment__body { + color: #222f3e; + font-size: 14px; + font-style: normal; + font-weight: normal; + line-height: 1.3; + margin-top: 8px; + position: relative; + text-transform: initial; +} +.tox .tox-comment__body textarea { + resize: none; + white-space: normal; + width: 100%; +} +.tox .tox-comment__expander { + padding-top: 8px; +} +.tox .tox-comment__expander p { + color: rgba(34, 47, 62, 0.7); + font-size: 14px; + font-style: normal; +} +.tox .tox-comment__body p { + margin: 0; +} +.tox .tox-comment__buttonspacing { + padding-top: 16px; + text-align: center; +} +.tox .tox-comment-thread__overlay::after { + background: #fff; + bottom: 0; + content: ""; + display: flex; + left: 0; + opacity: 0.9; + position: absolute; + right: 0; + top: 0; + z-index: 5; +} +.tox .tox-comment__reply { + display: flex; + flex-shrink: 0; + flex-wrap: wrap; + justify-content: flex-end; + margin-top: 8px; +} +.tox .tox-comment__reply > *:first-child { + margin-bottom: 8px; + width: 100%; +} +.tox .tox-comment__edit { + display: flex; + flex-wrap: wrap; + justify-content: flex-end; + margin-top: 16px; +} +.tox .tox-comment__gradient::after { + background: linear-gradient(rgba(255, 255, 255, 0), #fff); + bottom: 0; + content: ""; + display: block; + height: 5em; + margin-top: -40px; + position: absolute; + width: 100%; +} +.tox .tox-comment__overlay { + background: #fff; + bottom: 0; + display: flex; + flex-direction: column; + flex-grow: 1; + left: 0; + opacity: 0.9; + position: absolute; + right: 0; + text-align: center; + top: 0; + z-index: 5; +} +.tox .tox-comment__loading-text { + align-items: center; + color: #222f3e; + display: flex; + flex-direction: column; + position: relative; +} +.tox .tox-comment__loading-text > div { + padding-bottom: 16px; +} +.tox .tox-comment__overlaytext { + bottom: 0; + flex-direction: column; + font-size: 14px; + left: 0; + padding: 1em; + position: absolute; + right: 0; + top: 0; + z-index: 10; +} +.tox .tox-comment__overlaytext p { + background-color: #fff; + box-shadow: 0 0 8px 8px #fff; + color: #222f3e; + text-align: center; +} +.tox .tox-comment__overlaytext div:nth-of-type(2) { + font-size: 0.8em; +} +.tox .tox-comment__busy-spinner { + align-items: center; + background-color: #fff; + bottom: 0; + display: flex; + justify-content: center; + left: 0; + position: absolute; + right: 0; + top: 0; + z-index: 20; +} +.tox .tox-comment__scroll { + display: flex; + flex-direction: column; + flex-shrink: 1; + overflow: auto; +} +.tox .tox-conversations { + margin: 8px; +} +.tox:not([dir=rtl]) .tox-comment__edit { + margin-left: 8px; +} +.tox:not([dir=rtl]) .tox-comment__buttonspacing > *:last-child, +.tox:not([dir=rtl]) .tox-comment__edit > *:last-child, +.tox:not([dir=rtl]) .tox-comment__reply > *:last-child { + margin-left: 8px; +} +.tox[dir=rtl] .tox-comment__edit { + margin-right: 8px; +} +.tox[dir=rtl] .tox-comment__buttonspacing > *:last-child, +.tox[dir=rtl] .tox-comment__edit > *:last-child, +.tox[dir=rtl] .tox-comment__reply > *:last-child { + margin-right: 8px; +} +.tox .tox-user { + align-items: center; + display: flex; +} +.tox .tox-user__avatar svg { + fill: rgba(34, 47, 62, 0.7); +} +.tox .tox-user__avatar img { + border-radius: 50%; + height: 36px; + object-fit: cover; + vertical-align: middle; + width: 36px; +} +.tox .tox-user__name { + color: #222f3e; + font-size: 14px; + font-style: normal; + font-weight: bold; + line-height: 18px; + text-transform: none; +} +.tox:not([dir=rtl]) .tox-user__avatar svg, +.tox:not([dir=rtl]) .tox-user__avatar img { + margin-right: 8px; +} +.tox:not([dir=rtl]) .tox-user__avatar + .tox-user__name { + margin-left: 8px; +} +.tox[dir=rtl] .tox-user__avatar svg, +.tox[dir=rtl] .tox-user__avatar img { + margin-left: 8px; +} +.tox[dir=rtl] .tox-user__avatar + .tox-user__name { + margin-right: 8px; +} +.tox .tox-dialog-wrap { + align-items: center; + bottom: 0; + display: flex; + justify-content: center; + left: 0; + position: fixed; + right: 0; + top: 0; + z-index: 1100; +} +.tox .tox-dialog-wrap__backdrop { + background-color: rgba(255, 255, 255, 0.75); + bottom: 0; + left: 0; + position: absolute; + right: 0; + top: 0; + z-index: 1; +} +.tox .tox-dialog-wrap__backdrop--opaque { + background-color: #fff; +} +.tox .tox-dialog { + background-color: #fff; + border-color: #eeeeee; + border-radius: 10px; + border-style: solid; + border-width: 0px; + box-shadow: 0 16px 16px -10px rgba(34, 47, 62, 0.15), 0 0 40px 1px rgba(34, 47, 62, 0.15); + display: flex; + flex-direction: column; + max-height: 100%; + max-width: 480px; + overflow: hidden; + position: relative; + width: 95vw; + z-index: 2; +} +@media only screen and (max-width: 767px ) { + body:not(.tox-force-desktop) .tox .tox-dialog { + align-self: flex-start; + margin: 8px auto; + max-height: calc(100vh - 8px * 2); + width: calc(100vw - 16px); + } +} +.tox .tox-dialog-inline { + z-index: 1100; +} +.tox .tox-dialog__header { + align-items: center; + background-color: #fff; + border-bottom: none; + color: #222f3e; + display: flex; + font-size: 16px; + justify-content: space-between; + padding: 8px 16px 0 16px; + position: relative; +} +.tox .tox-dialog__header .tox-button { + z-index: 1; +} +.tox .tox-dialog__draghandle { + cursor: grab; + height: 100%; + left: 0; + position: absolute; + top: 0; + width: 100%; +} +.tox .tox-dialog__draghandle:active { + cursor: grabbing; +} +.tox .tox-dialog__dismiss { + margin-left: auto; +} +.tox .tox-dialog__title { + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + font-size: 20px; + font-style: normal; + font-weight: normal; + line-height: 1.3; + margin: 0; + text-transform: none; +} +.tox .tox-dialog__body { + color: #222f3e; + display: flex; + flex: 1; + font-size: 16px; + font-style: normal; + font-weight: normal; + line-height: 1.3; + min-width: 0; + text-align: left; + text-transform: none; +} +@media only screen and (max-width: 767px ) { + body:not(.tox-force-desktop) .tox .tox-dialog__body { + flex-direction: column; + } +} +.tox .tox-dialog__body-nav { + align-items: flex-start; + display: flex; + flex-direction: column; + flex-shrink: 0; + padding: 16px 16px; +} +@media only screen and (min-width: 768px ) { + .tox .tox-dialog__body-nav { + max-width: 11em; + } +} +@media only screen and (max-width: 767px ) { + body:not(.tox-force-desktop) .tox .tox-dialog__body-nav { + flex-direction: row; + -webkit-overflow-scrolling: touch; + overflow-x: auto; + padding-bottom: 0; + } +} +.tox .tox-dialog__body-nav-item { + border-bottom: 2px solid transparent; + color: rgba(34, 47, 62, 0.7); + display: inline-block; + flex-shrink: 0; + font-size: 14px; + line-height: 1.3; + margin-bottom: 8px; + max-width: 13em; + text-decoration: none; +} +.tox .tox-dialog__body-nav-item:focus { + background-color: rgba(0, 108, 231, 0.1); +} +.tox .tox-dialog__body-nav-item--active { + border-bottom: 2px solid #006ce7; + color: #006ce7; +} +.tox .tox-dialog__body-content { + box-sizing: border-box; + display: flex; + flex: 1; + flex-direction: column; + max-height: min(650px, calc(100vh - 110px)); + overflow: auto; + -webkit-overflow-scrolling: touch; + padding: 16px 16px; +} +.tox .tox-dialog__body-content > * { + margin-bottom: 0; + margin-top: 16px; +} +.tox .tox-dialog__body-content > *:first-child { + margin-top: 0; +} +.tox .tox-dialog__body-content > *:last-child { + margin-bottom: 0; +} +.tox .tox-dialog__body-content > *:only-child { + margin-bottom: 0; + margin-top: 0; +} +.tox .tox-dialog__body-content a { + color: #006ce7; + cursor: pointer; + text-decoration: underline; +} +.tox .tox-dialog__body-content a:hover, +.tox .tox-dialog__body-content a:focus { + color: #003c81; + text-decoration: underline; +} +.tox .tox-dialog__body-content a:focus-visible { + border-radius: 1px; + outline: 2px solid #006ce7; + outline-offset: 2px; +} +.tox .tox-dialog__body-content a:active { + color: #00244e; + text-decoration: underline; +} +.tox .tox-dialog__body-content svg { + fill: #222f3e; +} +.tox .tox-dialog__body-content strong { + font-weight: bold; +} +.tox .tox-dialog__body-content ul { + list-style-type: disc; +} +.tox .tox-dialog__body-content ul, +.tox .tox-dialog__body-content ol, +.tox .tox-dialog__body-content dd { + padding-inline-start: 2.5rem; +} +.tox .tox-dialog__body-content ul, +.tox .tox-dialog__body-content ol, +.tox .tox-dialog__body-content dl { + margin-bottom: 16px; +} +.tox .tox-dialog__body-content ul, +.tox .tox-dialog__body-content ol, +.tox .tox-dialog__body-content dl, +.tox .tox-dialog__body-content dd, +.tox .tox-dialog__body-content dt { + display: block; + margin-inline-end: 0; + margin-inline-start: 0; +} +.tox .tox-dialog__body-content .tox-form__group h1 { + color: #222f3e; + font-size: 20px; + font-style: normal; + font-weight: bold; + letter-spacing: normal; + margin-bottom: 16px; + margin-top: 2rem; + text-transform: none; +} +.tox .tox-dialog__body-content .tox-form__group h2 { + color: #222f3e; + font-size: 16px; + font-style: normal; + font-weight: bold; + letter-spacing: normal; + margin-bottom: 16px; + margin-top: 2rem; + text-transform: none; +} +.tox .tox-dialog__body-content .tox-form__group p { + margin-bottom: 16px; +} +.tox .tox-dialog__body-content .tox-form__group h1:first-child, +.tox .tox-dialog__body-content .tox-form__group h2:first-child, +.tox .tox-dialog__body-content .tox-form__group p:first-child { + margin-top: 0; +} +.tox .tox-dialog__body-content .tox-form__group h1:last-child, +.tox .tox-dialog__body-content .tox-form__group h2:last-child, +.tox .tox-dialog__body-content .tox-form__group p:last-child { + margin-bottom: 0; +} +.tox .tox-dialog__body-content .tox-form__group h1:only-child, +.tox .tox-dialog__body-content .tox-form__group h2:only-child, +.tox .tox-dialog__body-content .tox-form__group p:only-child { + margin-bottom: 0; + margin-top: 0; +} +.tox .tox-dialog__body-content .tox-form__group .tox-label.tox-label--center { + text-align: center; +} +.tox .tox-dialog__body-content .tox-form__group .tox-label.tox-label--end { + text-align: end; +} +.tox .tox-dialog--width-lg { + height: 650px; + max-width: 1200px; +} +.tox .tox-dialog--fullscreen { + height: 100%; + max-width: 100%; +} +.tox .tox-dialog--fullscreen .tox-dialog__body-content { + max-height: 100%; +} +.tox .tox-dialog--width-md { + max-width: 800px; +} +.tox .tox-dialog--width-md .tox-dialog__body-content { + overflow: auto; +} +.tox .tox-dialog__body-content--centered { + text-align: center; +} +.tox .tox-dialog__footer { + align-items: center; + background-color: #fff; + border-top: none; + display: flex; + justify-content: space-between; + padding: 8px 16px; +} +.tox .tox-dialog__footer-start, +.tox .tox-dialog__footer-end { + display: flex; +} +.tox .tox-dialog__busy-spinner { + align-items: center; + background-color: rgba(255, 255, 255, 0.75); + bottom: 0; + display: flex; + justify-content: center; + left: 0; + position: absolute; + right: 0; + top: 0; + z-index: 3; +} +.tox .tox-dialog__table { + border-collapse: collapse; + width: 100%; +} +.tox .tox-dialog__table thead th { + font-weight: bold; + padding-bottom: 8px; +} +.tox .tox-dialog__table thead th:first-child { + padding-right: 8px; +} +.tox .tox-dialog__table tbody tr { + border-bottom: 1px solid #626262; +} +.tox .tox-dialog__table tbody tr:last-child { + border-bottom: none; +} +.tox .tox-dialog__table td { + padding-bottom: 8px; + padding-top: 8px; +} +.tox .tox-dialog__table td:first-child { + padding-right: 8px; +} +.tox .tox-dialog__iframe { + min-height: 200px; +} +.tox .tox-dialog__iframe.tox-dialog__iframe--opaque { + background: #fff; +} +.tox .tox-navobj-bordered { + position: relative; +} +.tox .tox-navobj-bordered::before { + border: 1px solid #eeeeee; + border-radius: 6px; + content: ''; + inset: 0; + opacity: 1; + pointer-events: none; + position: absolute; + z-index: 1; +} +.tox .tox-navobj-bordered-focus.tox-navobj-bordered::before { + border-color: #006ce7; + box-shadow: 0 0 0 2px rgba(0, 108, 231, 0.25); + outline: none; +} +.tox .tox-dialog__popups { + position: absolute; + width: 100%; + z-index: 1100; +} +.tox .tox-dialog__body-iframe { + display: flex; + flex: 1; + flex-direction: column; +} +.tox .tox-dialog__body-iframe .tox-navobj { + display: flex; + flex: 1; +} +.tox .tox-dialog__body-iframe .tox-navobj :nth-child(2) { + flex: 1; + height: 100%; +} +.tox .tox-dialog-dock-fadeout { + opacity: 0; + visibility: hidden; +} +.tox .tox-dialog-dock-fadein { + opacity: 1; + visibility: visible; +} +.tox .tox-dialog-dock-transition { + transition: visibility 0s linear 0.3s, opacity 0.3s ease; +} +.tox .tox-dialog-dock-transition.tox-dialog-dock-fadein { + transition-delay: 0s; +} +@media only screen and (max-width: 767px ) { + body:not(.tox-force-desktop) .tox:not([dir=rtl]) .tox-dialog__body-nav { + margin-right: 0; + } +} +@media only screen and (max-width: 767px ) { + body:not(.tox-force-desktop) .tox:not([dir=rtl]) .tox-dialog__body-nav-item:not(:first-child) { + margin-left: 8px; + } +} +.tox:not([dir=rtl]) .tox-dialog__footer .tox-dialog__footer-start > *, +.tox:not([dir=rtl]) .tox-dialog__footer .tox-dialog__footer-end > * { + margin-left: 8px; +} +.tox[dir=rtl] .tox-dialog__body { + text-align: right; +} +@media only screen and (max-width: 767px ) { + body:not(.tox-force-desktop) .tox[dir=rtl] .tox-dialog__body-nav { + margin-left: 0; + } +} +@media only screen and (max-width: 767px ) { + body:not(.tox-force-desktop) .tox[dir=rtl] .tox-dialog__body-nav-item:not(:first-child) { + margin-right: 8px; + } +} +.tox[dir=rtl] .tox-dialog__footer .tox-dialog__footer-start > *, +.tox[dir=rtl] .tox-dialog__footer .tox-dialog__footer-end > * { + margin-right: 8px; +} +body.tox-dialog__disable-scroll { + overflow: hidden; +} +.tox .tox-dropzone-container { + display: flex; + flex: 1; +} +.tox .tox-dropzone { + align-items: center; + background: #fff; + border: 2px dashed #eeeeee; + box-sizing: border-box; + display: flex; + flex-direction: column; + flex-grow: 1; + justify-content: center; + min-height: 100px; + padding: 10px; +} +.tox .tox-dropzone p { + color: rgba(34, 47, 62, 0.7); + margin: 0 0 16px 0; +} +.tox .tox-edit-area { + display: flex; + flex: 1; + overflow: hidden; + position: relative; +} +.tox .tox-edit-area::before { + border: 2px solid #2D6ADF; + border-radius: 4px; + content: ''; + inset: 0; + opacity: 0; + pointer-events: none; + position: absolute; + transition: opacity 0.15s; + z-index: 1; +} +.tox .tox-edit-area__iframe { + background-color: #fff; + border: 0; + box-sizing: border-box; + flex: 1; + height: 100%; + position: absolute; + width: 100%; +} +.tox.tox-edit-focus .tox-edit-area::before { + opacity: 1; +} +.tox.tox-inline-edit-area { + border: 1px dotted #eeeeee; +} +.tox .tox-editor-container { + display: flex; + flex: 1 1 auto; + flex-direction: column; + overflow: hidden; +} +.tox .tox-editor-header { + display: grid; + grid-template-columns: 1fr min-content; + z-index: 2; +} +.tox:not(.tox-tinymce-inline) .tox-editor-header { + background-color: #fff; + border-bottom: none; + box-shadow: 0 2px 2px -2px rgba(34, 47, 62, 0.1), 0 8px 8px -4px rgba(34, 47, 62, 0.07); + padding: 4px 0; +} +.tox:not(.tox-tinymce-inline) .tox-editor-header:not(.tox-editor-dock-transition) { + transition: box-shadow 0.5s; +} +.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-bottom .tox-editor-header { + border-top: 1px solid #e3e3e3; + box-shadow: none; +} +.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-sticky-on .tox-editor-header { + background-color: #fff; + box-shadow: 0 2px 2px -2px rgba(34, 47, 62, 0.2), 0 8px 8px -4px rgba(34, 47, 62, 0.15); + padding: 4px 0; +} +.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-sticky-on.tox-tinymce--toolbar-bottom .tox-editor-header { + box-shadow: 0 2px 2px -2px rgba(34, 47, 62, 0.2), 0 8px 8px -4px rgba(34, 47, 62, 0.15); +} +.tox.tox:not(.tox-tinymce-inline) .tox-editor-header.tox-editor-header--empty { + background: none; + border: none; + box-shadow: none; + padding: 0; +} +.tox-editor-dock-fadeout { + opacity: 0; + visibility: hidden; +} +.tox-editor-dock-fadein { + opacity: 1; + visibility: visible; +} +.tox-editor-dock-transition { + transition: visibility 0s linear 0.25s, opacity 0.25s ease; +} +.tox-editor-dock-transition.tox-editor-dock-fadein { + transition-delay: 0s; +} +.tox .tox-control-wrap { + flex: 1; + position: relative; +} +.tox .tox-control-wrap:not(.tox-control-wrap--status-invalid) .tox-control-wrap__status-icon-invalid, +.tox .tox-control-wrap:not(.tox-control-wrap--status-unknown) .tox-control-wrap__status-icon-unknown, +.tox .tox-control-wrap:not(.tox-control-wrap--status-valid) .tox-control-wrap__status-icon-valid { + display: none; +} +.tox .tox-control-wrap svg { + display: block; +} +.tox .tox-control-wrap__status-icon-wrap { + position: absolute; + top: 50%; + transform: translateY(-50%); +} +.tox .tox-control-wrap__status-icon-invalid svg { + fill: #c00; +} +.tox .tox-control-wrap__status-icon-unknown svg { + fill: orange; +} +.tox .tox-control-wrap__status-icon-valid svg { + fill: green; +} +.tox:not([dir=rtl]) .tox-control-wrap--status-invalid .tox-textfield, +.tox:not([dir=rtl]) .tox-control-wrap--status-unknown .tox-textfield, +.tox:not([dir=rtl]) .tox-control-wrap--status-valid .tox-textfield { + padding-right: 32px; +} +.tox:not([dir=rtl]) .tox-control-wrap__status-icon-wrap { + right: 4px; +} +.tox[dir=rtl] .tox-control-wrap--status-invalid .tox-textfield, +.tox[dir=rtl] .tox-control-wrap--status-unknown .tox-textfield, +.tox[dir=rtl] .tox-control-wrap--status-valid .tox-textfield { + padding-left: 32px; +} +.tox[dir=rtl] .tox-control-wrap__status-icon-wrap { + left: 4px; +} +.tox .tox-autocompleter { + max-width: 25em; +} +.tox .tox-autocompleter .tox-menu { + box-sizing: border-box; + max-width: 25em; +} +.tox .tox-autocompleter .tox-autocompleter-highlight { + font-weight: bold; +} +.tox .tox-color-input { + display: flex; + position: relative; + z-index: 1; +} +.tox .tox-color-input .tox-textfield { + z-index: -1; +} +.tox .tox-color-input span { + border-color: rgba(34, 47, 62, 0.2); + border-radius: 6px; + border-style: solid; + border-width: 1px; + box-shadow: none; + box-sizing: border-box; + height: 24px; + position: absolute; + top: 6px; + width: 24px; +} +.tox .tox-color-input span:hover:not([aria-disabled=true]), +.tox .tox-color-input span:focus:not([aria-disabled=true]) { + border-color: #006ce7; + cursor: pointer; +} +.tox .tox-color-input span::before { + background-image: linear-gradient(45deg, rgba(0, 0, 0, 0.25) 25%, transparent 25%), linear-gradient(-45deg, rgba(0, 0, 0, 0.25) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, rgba(0, 0, 0, 0.25) 75%), linear-gradient(-45deg, transparent 75%, rgba(0, 0, 0, 0.25) 75%); + background-position: 0 0, 0 6px, 6px -6px, -6px 0; + background-size: 12px 12px; + border: 1px solid #fff; + border-radius: 6px; + box-sizing: border-box; + content: ''; + height: 24px; + left: -1px; + position: absolute; + top: -1px; + width: 24px; + z-index: -1; +} +.tox .tox-color-input span[aria-disabled=true] { + cursor: not-allowed; +} +.tox:not([dir=rtl]) .tox-color-input { + /* stylelint-disable-next-line no-descending-specificity */ +} +.tox:not([dir=rtl]) .tox-color-input .tox-textfield { + padding-left: 36px; +} +.tox:not([dir=rtl]) .tox-color-input span { + left: 6px; +} +.tox[dir="rtl"] .tox-color-input { + /* stylelint-disable-next-line no-descending-specificity */ +} +.tox[dir="rtl"] .tox-color-input .tox-textfield { + padding-right: 36px; +} +.tox[dir="rtl"] .tox-color-input span { + right: 6px; +} +.tox .tox-label, +.tox .tox-toolbar-label { + color: rgba(34, 47, 62, 0.7); + display: block; + font-size: 14px; + font-style: normal; + font-weight: normal; + line-height: 1.3; + padding: 0 8px 0 0; + text-transform: none; + white-space: nowrap; +} +.tox .tox-toolbar-label { + padding: 0 8px; +} +.tox[dir=rtl] .tox-label { + padding: 0 0 0 8px; +} +.tox .tox-form { + display: flex; + flex: 1; + flex-direction: column; +} +.tox .tox-form__group { + box-sizing: border-box; + margin-bottom: 4px; +} +.tox .tox-form-group--maximize { + flex: 1; +} +.tox .tox-form__group--error { + color: #c00; +} +.tox .tox-form__group--collection { + display: flex; +} +.tox .tox-form__grid { + display: flex; + flex-direction: row; + flex-wrap: wrap; + justify-content: space-between; +} +.tox .tox-form__grid--2col > .tox-form__group { + width: calc(50% - (8px / 2)); +} +.tox .tox-form__grid--3col > .tox-form__group { + width: calc(100% / 3 - (8px / 2)); +} +.tox .tox-form__grid--4col > .tox-form__group { + width: calc(25% - (8px / 2)); +} +.tox .tox-form__controls-h-stack { + align-items: center; + display: flex; +} +.tox .tox-form__group--inline { + align-items: center; + display: flex; +} +.tox .tox-form__group--stretched { + display: flex; + flex: 1; + flex-direction: column; +} +.tox .tox-form__group--stretched .tox-textarea { + flex: 1; +} +.tox .tox-form__group--stretched .tox-navobj { + display: flex; + flex: 1; +} +.tox .tox-form__group--stretched .tox-navobj :nth-child(2) { + flex: 1; + height: 100%; +} +.tox:not([dir=rtl]) .tox-form__controls-h-stack > *:not(:first-child) { + margin-left: 4px; +} +.tox[dir=rtl] .tox-form__controls-h-stack > *:not(:first-child) { + margin-right: 4px; +} +.tox .tox-lock.tox-locked .tox-lock-icon__unlock, +.tox .tox-lock:not(.tox-locked) .tox-lock-icon__lock { + display: none; +} +.tox .tox-textfield, +.tox .tox-toolbar-textfield, +.tox .tox-listboxfield .tox-listbox--select, +.tox .tox-textarea, +.tox .tox-textarea-wrap .tox-textarea:focus { + -webkit-appearance: none; + -moz-appearance: none; + appearance: none; + background-color: #fff; + border-color: #eeeeee; + border-radius: 6px; + border-style: solid; + border-width: 1px; + box-shadow: none; + box-sizing: border-box; + color: #222f3e; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + font-size: 16px; + line-height: 24px; + margin: 0; + min-height: 34px; + outline: none; + padding: 5px 5.5px; + resize: none; + width: 100%; +} +.tox .tox-textfield[disabled], +.tox .tox-textarea[disabled] { + background-color: #f2f2f2; + color: rgba(34, 47, 62, 0.85); + cursor: not-allowed; +} +.tox .tox-textfield:focus, +.tox .tox-listboxfield .tox-listbox--select:focus, +.tox .tox-textarea-wrap:focus-within, +.tox .tox-textarea:focus, +.tox .tox-custom-editor:focus-within { + background-color: #fff; + border-color: #006ce7; + box-shadow: 0 0 0 2px rgba(0, 108, 231, 0.25); + outline: none; +} +.tox .tox-toolbar-textfield { + border-width: 0; + margin-bottom: 3px; + margin-top: 2px; + max-width: 250px; +} +.tox .tox-naked-btn { + background-color: transparent; + border: 0; + border-color: transparent; + box-shadow: unset; + color: #006ce7; + cursor: pointer; + display: block; + margin: 0; + padding: 0; +} +.tox .tox-naked-btn svg { + display: block; + fill: #222f3e; +} +.tox:not([dir=rtl]) .tox-toolbar-textfield + * { + margin-left: 4px; +} +.tox[dir=rtl] .tox-toolbar-textfield + * { + margin-right: 4px; +} +.tox .tox-listboxfield { + cursor: pointer; + position: relative; +} +.tox .tox-listboxfield .tox-listbox--select[disabled] { + background-color: #f2f2f2; + color: rgba(34, 47, 62, 0.85); + cursor: not-allowed; +} +.tox .tox-listbox__select-label { + cursor: default; + flex: 1; + margin: 0 4px; +} +.tox .tox-listbox__select-chevron { + align-items: center; + display: flex; + justify-content: center; + width: 16px; +} +.tox .tox-listbox__select-chevron svg { + fill: #222f3e; +} +.tox .tox-listboxfield .tox-listbox--select { + align-items: center; + display: flex; +} +.tox:not([dir=rtl]) .tox-listboxfield svg { + right: 8px; +} +.tox[dir=rtl] .tox-listboxfield svg { + left: 8px; +} +.tox .tox-selectfield { + cursor: pointer; + position: relative; +} +.tox .tox-selectfield select { + -webkit-appearance: none; + -moz-appearance: none; + appearance: none; + background-color: #fff; + border-color: #eeeeee; + border-radius: 6px; + border-style: solid; + border-width: 1px; + box-shadow: none; + box-sizing: border-box; + color: #222f3e; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + font-size: 16px; + line-height: 24px; + margin: 0; + min-height: 34px; + outline: none; + padding: 5px 5.5px; + resize: none; + width: 100%; +} +.tox .tox-selectfield select[disabled] { + background-color: #f2f2f2; + color: rgba(34, 47, 62, 0.85); + cursor: not-allowed; +} +.tox .tox-selectfield select::-ms-expand { + display: none; +} +.tox .tox-selectfield select:focus { + background-color: #fff; + border-color: #006ce7; + box-shadow: 0 0 0 2px rgba(0, 108, 231, 0.25); + outline: none; +} +.tox .tox-selectfield svg { + pointer-events: none; + position: absolute; + top: 50%; + transform: translateY(-50%); +} +.tox:not([dir=rtl]) .tox-selectfield select[size="0"], +.tox:not([dir=rtl]) .tox-selectfield select[size="1"] { + padding-right: 24px; +} +.tox:not([dir=rtl]) .tox-selectfield svg { + right: 8px; +} +.tox[dir=rtl] .tox-selectfield select[size="0"], +.tox[dir=rtl] .tox-selectfield select[size="1"] { + padding-left: 24px; +} +.tox[dir=rtl] .tox-selectfield svg { + left: 8px; +} +.tox .tox-textarea-wrap { + border-color: #eeeeee; + border-radius: 6px; + border-style: solid; + border-width: 1px; + display: flex; + flex: 1; + overflow: hidden; +} +.tox .tox-textarea { + -webkit-appearance: textarea; + -moz-appearance: textarea; + appearance: textarea; + white-space: pre-wrap; +} +.tox .tox-textarea-wrap .tox-textarea { + border: none; +} +.tox .tox-textarea-wrap .tox-textarea:focus { + border: none; +} +.tox-fullscreen { + border: 0; + height: 100%; + margin: 0; + overflow: hidden; + overscroll-behavior: none; + padding: 0; + touch-action: pinch-zoom; + width: 100%; +} +.tox.tox-tinymce.tox-fullscreen .tox-statusbar__resize-handle { + display: none; +} +.tox.tox-tinymce.tox-fullscreen, +.tox-shadowhost.tox-fullscreen { + left: 0; + position: fixed; + top: 0; + z-index: 1200; +} +.tox.tox-tinymce.tox-fullscreen { + background-color: transparent; +} +.tox-fullscreen .tox.tox-tinymce-aux, +.tox-fullscreen ~ .tox.tox-tinymce-aux { + z-index: 1201; +} +.tox .tox-help__more-link { + list-style: none; + margin-top: 1em; +} +.tox .tox-imagepreview { + background-color: #666; + height: 380px; + overflow: hidden; + position: relative; + width: 100%; +} +.tox .tox-imagepreview.tox-imagepreview__loaded { + overflow: auto; +} +.tox .tox-imagepreview__container { + display: flex; + left: 100vw; + position: absolute; + top: 100vw; +} +.tox .tox-imagepreview__image { + background: url(data:image/gif;base64,R0lGODdhDAAMAIABAMzMzP///ywAAAAADAAMAAACFoQfqYeabNyDMkBQb81Uat85nxguUAEAOw==); +} +.tox .tox-image-tools .tox-spacer { + flex: 1; +} +.tox .tox-image-tools .tox-bar { + align-items: center; + display: flex; + height: 60px; + justify-content: center; +} +.tox .tox-image-tools .tox-imagepreview, +.tox .tox-image-tools .tox-imagepreview + .tox-bar { + margin-top: 8px; +} +.tox .tox-image-tools .tox-croprect-block { + background: black; + filter: alpha(opacity=50); + opacity: 0.5; + position: absolute; + zoom: 1; +} +.tox .tox-image-tools .tox-croprect-handle { + border: 2px solid white; + height: 20px; + left: 0; + position: absolute; + top: 0; + width: 20px; +} +.tox .tox-image-tools .tox-croprect-handle-move { + border: 0; + cursor: move; + position: absolute; +} +.tox .tox-image-tools .tox-croprect-handle-nw { + border-width: 2px 0 0 2px; + cursor: nw-resize; + left: 100px; + margin: -2px 0 0 -2px; + top: 100px; +} +.tox .tox-image-tools .tox-croprect-handle-ne { + border-width: 2px 2px 0 0; + cursor: ne-resize; + left: 200px; + margin: -2px 0 0 -20px; + top: 100px; +} +.tox .tox-image-tools .tox-croprect-handle-sw { + border-width: 0 0 2px 2px; + cursor: sw-resize; + left: 100px; + margin: -20px 2px 0 -2px; + top: 200px; +} +.tox .tox-image-tools .tox-croprect-handle-se { + border-width: 0 2px 2px 0; + cursor: se-resize; + left: 200px; + margin: -20px 0 0 -20px; + top: 200px; +} +.tox .tox-insert-table-picker { + display: flex; + flex-wrap: wrap; + width: 170px; +} +.tox .tox-insert-table-picker > div { + border-color: #eeeeee; + border-style: solid; + border-width: 0 1px 1px 0; + box-sizing: border-box; + height: 17px; + width: 17px; +} +.tox .tox-collection--list .tox-collection__group .tox-insert-table-picker { + margin: -4px -4px; +} +.tox .tox-insert-table-picker .tox-insert-table-picker__selected { + background-color: rgba(0, 108, 231, 0.5); + border-color: rgba(0, 108, 231, 0.5); +} +.tox .tox-insert-table-picker__label { + color: rgba(34, 47, 62, 0.7); + display: block; + font-size: 14px; + padding: 4px; + text-align: center; + width: 100%; +} +.tox:not([dir=rtl]) { + /* stylelint-disable-next-line no-descending-specificity */ +} +.tox:not([dir=rtl]) .tox-insert-table-picker > div:nth-child(10n) { + border-right: 0; +} +.tox[dir=rtl] { + /* stylelint-disable-next-line no-descending-specificity */ +} +.tox[dir=rtl] .tox-insert-table-picker > div:nth-child(10n+1) { + border-right: 0; +} +.tox { + /* stylelint-disable */ + /* stylelint-enable */ +} +.tox .tox-menu { + background-color: #fff; + border: 1px solid transparent; + border-radius: 6px; + box-shadow: 0 0 2px 0 rgba(34, 47, 62, 0.2), 0 4px 8px 0 rgba(34, 47, 62, 0.15); + display: inline-block; + overflow: hidden; + vertical-align: top; + z-index: 1150; +} +.tox .tox-menu.tox-collection.tox-collection--list { + padding: 0 4px; +} +.tox .tox-menu.tox-collection.tox-collection--toolbar { + padding: 8px; +} +.tox .tox-menu.tox-collection.tox-collection--grid { + padding: 8px; +} +@media only screen and (min-width: 768px ) { + .tox .tox-menu .tox-collection__item-label { + overflow-wrap: break-word; + word-break: normal; + } + .tox .tox-dialog__popups .tox-menu .tox-collection__item-label { + word-break: break-all; + } +} +.tox .tox-menu__label h1, +.tox .tox-menu__label h2, +.tox .tox-menu__label h3, +.tox .tox-menu__label h4, +.tox .tox-menu__label h5, +.tox .tox-menu__label h6, +.tox .tox-menu__label p, +.tox .tox-menu__label blockquote, +.tox .tox-menu__label code { + margin: 0; +} +.tox .tox-menubar { + background: repeating-linear-gradient(transparent 0px 1px, transparent 1px 39px) center top 39px / 100% calc(100% - 39px) no-repeat; + background-color: #fff; + display: flex; + flex: 0 0 auto; + flex-shrink: 0; + flex-wrap: wrap; + grid-column: 1 / -1; + grid-row: 1; + padding: 0 11px 0 12px; +} +.tox .tox-promotion + .tox-menubar { + grid-column: 1; +} +.tox .tox-promotion { + background: repeating-linear-gradient(transparent 0px 1px, transparent 1px 39px) center top 39px / 100% calc(100% - 39px) no-repeat; + background-color: #fff; + grid-column: 2; + grid-row: 1; + padding-inline-end: 8px; + padding-inline-start: 4px; + padding-top: 5px; +} +.tox .tox-promotion-link { + align-items: unsafe center; + background-color: #E8F1F8; + border-radius: 5px; + color: #086BE6; + cursor: pointer; + display: flex; + font-size: 14px; + height: 26.6px; + padding: 4px 8px; + white-space: nowrap; +} +.tox .tox-promotion-link:hover { + background-color: #B4D7FF; +} +.tox .tox-promotion-link:focus { + background-color: #D9EDF7; +} +/* Deprecated. Remove in next major release */ +.tox .tox-mbtn { + align-items: center; + background: transparent; + border: 0; + border-radius: 3px; + box-shadow: none; + color: #222f3e; + display: flex; + flex: 0 0 auto; + font-size: 14px; + font-style: normal; + font-weight: normal; + height: 28px; + justify-content: center; + margin: 5px 1px 6px 0; + outline: none; + overflow: hidden; + padding: 0 4px; + text-transform: none; + width: auto; +} +.tox .tox-mbtn[disabled] { + background-color: transparent; + border: 0; + box-shadow: none; + color: rgba(34, 47, 62, 0.5); + cursor: not-allowed; +} +.tox .tox-mbtn:focus:not(:disabled) { + background: #cce2fa; + border: 0; + box-shadow: none; + color: #222f3e; +} +.tox .tox-mbtn--active { + background: #a6ccf7; + border: 0; + box-shadow: none; + color: #222f3e; +} +.tox .tox-mbtn:hover:not(:disabled):not(.tox-mbtn--active) { + background: #cce2fa; + border: 0; + box-shadow: none; + color: #222f3e; +} +.tox .tox-mbtn__select-label { + cursor: default; + font-weight: normal; + margin: 0 4px; +} +.tox .tox-mbtn[disabled] .tox-mbtn__select-label { + cursor: not-allowed; +} +.tox .tox-mbtn__select-chevron { + align-items: center; + display: flex; + justify-content: center; + width: 16px; + display: none; +} +.tox .tox-notification { + border-radius: 6px; + border-style: solid; + border-width: 1px; + box-shadow: none; + box-sizing: border-box; + display: grid; + font-size: 14px; + font-weight: normal; + grid-template-columns: minmax(40px, 1fr) auto minmax(40px, 1fr); + margin-top: 4px; + opacity: 0; + padding: 4px; + transition: transform 100ms ease-in, opacity 150ms ease-in; +} +.tox .tox-notification p { + font-size: 14px; + font-weight: normal; +} +.tox .tox-notification a { + cursor: pointer; + text-decoration: underline; +} +.tox .tox-notification--in { + opacity: 1; +} +.tox .tox-notification--success { + background-color: #e4eeda; + border-color: #d7e6c8; + color: #222f3e; +} +.tox .tox-notification--success p { + color: #222f3e; +} +.tox .tox-notification--success a { + color: #517342; +} +.tox .tox-notification--success svg { + fill: #222f3e; +} +.tox .tox-notification--error { + background-color: #f5cccc; + border-color: #f0b3b3; + color: #222f3e; +} +.tox .tox-notification--error p { + color: #222f3e; +} +.tox .tox-notification--error a { + color: #77181f; +} +.tox .tox-notification--error svg { + fill: #222f3e; +} +.tox .tox-notification--warn, +.tox .tox-notification--warning { + background-color: #fff5cc; + border-color: #fff0b3; + color: #222f3e; +} +.tox .tox-notification--warn p, +.tox .tox-notification--warning p { + color: #222f3e; +} +.tox .tox-notification--warn a, +.tox .tox-notification--warning a { + color: #7a6e25; +} +.tox .tox-notification--warn svg, +.tox .tox-notification--warning svg { + fill: #222f3e; +} +.tox .tox-notification--info { + background-color: #d6e7fb; + border-color: #c1dbf9; + color: #222f3e; +} +.tox .tox-notification--info p { + color: #222f3e; +} +.tox .tox-notification--info a { + color: #2a64a6; +} +.tox .tox-notification--info svg { + fill: #222f3e; +} +.tox .tox-notification__body { + align-self: center; + color: #222f3e; + font-size: 14px; + grid-column-end: 3; + grid-column-start: 2; + grid-row-end: 2; + grid-row-start: 1; + text-align: center; + white-space: normal; + word-break: break-all; + word-break: break-word; +} +.tox .tox-notification__body > * { + margin: 0; +} +.tox .tox-notification__body > * + * { + margin-top: 1rem; +} +.tox .tox-notification__icon { + align-self: center; + grid-column-end: 2; + grid-column-start: 1; + grid-row-end: 2; + grid-row-start: 1; + justify-self: end; +} +.tox .tox-notification__icon svg { + display: block; +} +.tox .tox-notification__dismiss { + align-self: start; + grid-column-end: 4; + grid-column-start: 3; + grid-row-end: 2; + grid-row-start: 1; + justify-self: end; +} +.tox .tox-notification .tox-progress-bar { + grid-column-end: 4; + grid-column-start: 1; + grid-row-end: 3; + grid-row-start: 2; + justify-self: center; +} +.tox .tox-pop { + display: inline-block; + position: relative; +} +.tox .tox-pop--resizing { + transition: width 0.1s ease; +} +.tox .tox-pop--resizing .tox-toolbar, +.tox .tox-pop--resizing .tox-toolbar__group { + flex-wrap: nowrap; +} +.tox .tox-pop--transition { + transition: 0.15s ease; + transition-property: left, right, top, bottom; +} +.tox .tox-pop--transition::before, +.tox .tox-pop--transition::after { + transition: all 0.15s, visibility 0s, opacity 0.075s ease 0.075s; +} +.tox .tox-pop__dialog { + background-color: #fff; + border: 1px solid #eeeeee; + border-radius: 6px; + box-shadow: 0 0 2px 0 rgba(34, 47, 62, 0.2), 0 4px 8px 0 rgba(34, 47, 62, 0.15); + min-width: 0; + overflow: hidden; +} +.tox .tox-pop__dialog > *:not(.tox-toolbar) { + margin: 4px 4px 4px 8px; +} +.tox .tox-pop__dialog .tox-toolbar { + background-color: transparent; + margin-bottom: -1px; +} +.tox .tox-pop::before, +.tox .tox-pop::after { + border-style: solid; + content: ''; + display: block; + height: 0; + opacity: 1; + position: absolute; + width: 0; +} +.tox .tox-pop.tox-pop--inset::before, +.tox .tox-pop.tox-pop--inset::after { + opacity: 0; + transition: all 0s 0.15s, visibility 0s, opacity 0.075s ease; +} +.tox .tox-pop.tox-pop--bottom::before, +.tox .tox-pop.tox-pop--bottom::after { + left: 50%; + top: 100%; +} +.tox .tox-pop.tox-pop--bottom::after { + border-color: #fff transparent transparent transparent; + border-width: 8px; + margin-left: -8px; + margin-top: -1px; +} +.tox .tox-pop.tox-pop--bottom::before { + border-color: #eeeeee transparent transparent transparent; + border-width: 9px; + margin-left: -9px; +} +.tox .tox-pop.tox-pop--top::before, +.tox .tox-pop.tox-pop--top::after { + left: 50%; + top: 0; + transform: translateY(-100%); +} +.tox .tox-pop.tox-pop--top::after { + border-color: transparent transparent #fff transparent; + border-width: 8px; + margin-left: -8px; + margin-top: 1px; +} +.tox .tox-pop.tox-pop--top::before { + border-color: transparent transparent #eeeeee transparent; + border-width: 9px; + margin-left: -9px; +} +.tox .tox-pop.tox-pop--left::before, +.tox .tox-pop.tox-pop--left::after { + left: 0; + top: calc(50% - 1px); + transform: translateY(-50%); +} +.tox .tox-pop.tox-pop--left::after { + border-color: transparent #fff transparent transparent; + border-width: 8px; + margin-left: -15px; +} +.tox .tox-pop.tox-pop--left::before { + border-color: transparent #eeeeee transparent transparent; + border-width: 10px; + margin-left: -19px; +} +.tox .tox-pop.tox-pop--right::before, +.tox .tox-pop.tox-pop--right::after { + left: 100%; + top: calc(50% + 1px); + transform: translateY(-50%); +} +.tox .tox-pop.tox-pop--right::after { + border-color: transparent transparent transparent #fff; + border-width: 8px; + margin-left: -1px; +} +.tox .tox-pop.tox-pop--right::before { + border-color: transparent transparent transparent #eeeeee; + border-width: 10px; + margin-left: -1px; +} +.tox .tox-pop.tox-pop--align-left::before, +.tox .tox-pop.tox-pop--align-left::after { + left: 20px; +} +.tox .tox-pop.tox-pop--align-right::before, +.tox .tox-pop.tox-pop--align-right::after { + left: calc(100% - 20px); +} +.tox .tox-sidebar-wrap { + display: flex; + flex-direction: row; + flex-grow: 1; + min-height: 0; +} +.tox .tox-sidebar { + background-color: #fff; + display: flex; + flex-direction: row; + justify-content: flex-end; +} +.tox .tox-sidebar__slider { + display: flex; + overflow: hidden; +} +.tox .tox-sidebar__pane-container { + display: flex; +} +.tox .tox-sidebar__pane { + display: flex; +} +.tox .tox-sidebar--sliding-closed { + opacity: 0; +} +.tox .tox-sidebar--sliding-open { + opacity: 1; +} +.tox .tox-sidebar--sliding-growing, +.tox .tox-sidebar--sliding-shrinking { + transition: width 0.5s ease, opacity 0.5s ease; +} +.tox .tox-selector { + background-color: #4099ff; + border-color: #4099ff; + border-style: solid; + border-width: 1px; + box-sizing: border-box; + display: inline-block; + height: 10px; + position: absolute; + width: 10px; +} +.tox.tox-platform-touch .tox-selector { + height: 12px; + width: 12px; +} +.tox .tox-slider { + align-items: center; + display: flex; + flex: 1; + height: 24px; + justify-content: center; + position: relative; +} +.tox .tox-slider__rail { + background-color: transparent; + border: 1px solid #eeeeee; + border-radius: 6px; + height: 10px; + min-width: 120px; + width: 100%; +} +.tox .tox-slider__handle { + background-color: #006ce7; + border: 2px solid #0054b4; + border-radius: 6px; + box-shadow: none; + height: 24px; + left: 50%; + position: absolute; + top: 50%; + transform: translateX(-50%) translateY(-50%); + width: 14px; +} +.tox .tox-form__controls-h-stack > .tox-slider:not(:first-of-type) { + margin-inline-start: 8px; +} +.tox .tox-form__controls-h-stack > .tox-form__group + .tox-slider { + margin-inline-start: 32px; +} +.tox .tox-form__controls-h-stack > .tox-slider + .tox-form__group { + margin-inline-start: 32px; +} +.tox .tox-source-code { + overflow: auto; +} +.tox .tox-spinner { + display: flex; +} +.tox .tox-spinner > div { + animation: tam-bouncing-dots 1.5s ease-in-out 0s infinite both; + background-color: rgba(34, 47, 62, 0.7); + border-radius: 100%; + height: 8px; + width: 8px; +} +.tox .tox-spinner > div:nth-child(1) { + animation-delay: -0.32s; +} +.tox .tox-spinner > div:nth-child(2) { + animation-delay: -0.16s; +} +@keyframes tam-bouncing-dots { + 0%, + 80%, + 100% { + transform: scale(0); + } + 40% { + transform: scale(1); + } +} +.tox:not([dir=rtl]) .tox-spinner > div:not(:first-child) { + margin-left: 4px; +} +.tox[dir=rtl] .tox-spinner > div:not(:first-child) { + margin-right: 4px; +} +.tox .tox-statusbar { + align-items: center; + background-color: #fff; + border-top: 1px solid #e3e3e3; + color: rgba(34, 47, 62, 0.7); + display: flex; + flex: 0 0 auto; + font-size: 14px; + font-weight: normal; + height: 25px; + overflow: hidden; + padding: 0 8px; + position: relative; + text-transform: none; +} +.tox .tox-statusbar__path { + display: flex; + flex: 1 1 auto; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} +.tox .tox-statusbar__right-container { + display: flex; + justify-content: flex-end; + white-space: nowrap; +} +.tox .tox-statusbar__help-text { + text-align: center; +} +.tox .tox-statusbar__text-container { + display: flex; + flex: 1 1 auto; + justify-content: space-between; + overflow: hidden; +} +@media only screen and (min-width: 768px ) { + .tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols > .tox-statusbar__help-text, + .tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols > .tox-statusbar__right-container, + .tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols > .tox-statusbar__path { + flex: 0 0 calc(100% / 3); + } +} +.tox .tox-statusbar__text-container.tox-statusbar__text-container--flex-end { + justify-content: flex-end; +} +.tox .tox-statusbar__text-container.tox-statusbar__text-container--flex-start { + justify-content: flex-start; +} +.tox .tox-statusbar__text-container.tox-statusbar__text-container--space-around { + justify-content: space-around; +} +.tox .tox-statusbar__path > * { + display: inline; + white-space: nowrap; +} +.tox .tox-statusbar__wordcount { + flex: 0 0 auto; + margin-left: 1ch; +} +@media only screen and (max-width: 767px ) { + .tox .tox-statusbar__text-container .tox-statusbar__help-text { + display: none; + } + .tox .tox-statusbar__text-container .tox-statusbar__help-text:only-child { + display: block; + } +} +.tox .tox-statusbar a, +.tox .tox-statusbar__path-item, +.tox .tox-statusbar__wordcount { + color: rgba(34, 47, 62, 0.7); + text-decoration: none; +} +.tox .tox-statusbar a:hover:not(:disabled):not([aria-disabled=true]), +.tox .tox-statusbar__path-item:hover:not(:disabled):not([aria-disabled=true]), +.tox .tox-statusbar__wordcount:hover:not(:disabled):not([aria-disabled=true]), +.tox .tox-statusbar a:focus:not(:disabled):not([aria-disabled=true]), +.tox .tox-statusbar__path-item:focus:not(:disabled):not([aria-disabled=true]), +.tox .tox-statusbar__wordcount:focus:not(:disabled):not([aria-disabled=true]) { + color: #222f3e; + cursor: pointer; +} +.tox .tox-statusbar__branding svg { + fill: rgba(34, 47, 62, 0.8); + height: 1.14em; + vertical-align: -0.28em; + width: 3.6em; +} +.tox .tox-statusbar__branding a:hover:not(:disabled):not([aria-disabled=true]) svg, +.tox .tox-statusbar__branding a:focus:not(:disabled):not([aria-disabled=true]) svg { + fill: #222f3e; +} +.tox .tox-statusbar__resize-handle { + align-items: flex-end; + align-self: stretch; + cursor: nwse-resize; + display: flex; + flex: 0 0 auto; + justify-content: flex-end; + margin-left: auto; + margin-right: -8px; + padding-bottom: 3px; + padding-left: 1ch; + padding-right: 3px; +} +.tox .tox-statusbar__resize-handle svg { + display: block; + fill: rgba(34, 47, 62, 0.5); +} +.tox .tox-statusbar__resize-handle:focus svg { + background-color: #dee0e2; + border-radius: 1px 1px 5px 1px; + box-shadow: 0 0 0 2px #dee0e2; +} +.tox:not([dir=rtl]) .tox-statusbar__path > * { + margin-right: 4px; +} +.tox:not([dir=rtl]) .tox-statusbar__branding { + margin-left: 2ch; +} +.tox[dir=rtl] .tox-statusbar { + flex-direction: row-reverse; +} +.tox[dir=rtl] .tox-statusbar__path > * { + margin-left: 4px; +} +.tox .tox-throbber { + z-index: 1299; +} +.tox .tox-throbber__busy-spinner { + align-items: center; + background-color: rgba(255, 255, 255, 0.6); + bottom: 0; + display: flex; + justify-content: center; + left: 0; + position: absolute; + right: 0; + top: 0; +} +.tox .tox-tbtn { + align-items: center; + background: transparent; + border: 0; + border-radius: 3px; + box-shadow: none; + color: #222f3e; + display: flex; + flex: 0 0 auto; + font-size: 14px; + font-style: normal; + font-weight: normal; + height: 28px; + justify-content: center; + margin: 6px 1px 5px 0; + outline: none; + overflow: hidden; + padding: 0; + text-transform: none; + width: 34px; +} +.tox .tox-tbtn svg { + display: block; + fill: #222f3e; +} +.tox .tox-tbtn.tox-tbtn-more { + padding-left: 5px; + padding-right: 5px; + width: inherit; +} +.tox .tox-tbtn:focus { + background: #cce2fa; + border: 0; + box-shadow: none; +} +.tox .tox-tbtn:hover { + background: #cce2fa; + border: 0; + box-shadow: none; + color: #222f3e; +} +.tox .tox-tbtn:hover svg { + fill: #222f3e; +} +.tox .tox-tbtn:active { + background: #a6ccf7; + border: 0; + box-shadow: none; + color: #222f3e; +} +.tox .tox-tbtn:active svg { + fill: #222f3e; +} +.tox .tox-tbtn--disabled .tox-tbtn--enabled svg { + fill: rgba(34, 47, 62, 0.5); +} +.tox .tox-tbtn--disabled, +.tox .tox-tbtn--disabled:hover, +.tox .tox-tbtn:disabled, +.tox .tox-tbtn:disabled:hover { + background: transparent; + border: 0; + box-shadow: none; + color: rgba(34, 47, 62, 0.5); + cursor: not-allowed; +} +.tox .tox-tbtn--disabled svg, +.tox .tox-tbtn--disabled:hover svg, +.tox .tox-tbtn:disabled svg, +.tox .tox-tbtn:disabled:hover svg { + /* stylelint-disable-line no-descending-specificity */ + fill: rgba(34, 47, 62, 0.5); +} +.tox .tox-tbtn--enabled, +.tox .tox-tbtn--enabled:hover { + background: #a6ccf7; + border: 0; + box-shadow: none; + color: #222f3e; +} +.tox .tox-tbtn--enabled > *, +.tox .tox-tbtn--enabled:hover > * { + transform: none; +} +.tox .tox-tbtn--enabled svg, +.tox .tox-tbtn--enabled:hover svg { + /* stylelint-disable-line no-descending-specificity */ + fill: #222f3e; +} +.tox .tox-tbtn--enabled.tox-tbtn--disabled svg, +.tox .tox-tbtn--enabled:hover.tox-tbtn--disabled svg { + fill: rgba(34, 47, 62, 0.5); +} +.tox .tox-tbtn:focus:not(.tox-tbtn--disabled) { + color: #222f3e; +} +.tox .tox-tbtn:focus:not(.tox-tbtn--disabled) svg { + fill: #222f3e; +} +.tox .tox-tbtn:active > * { + transform: none; +} +.tox .tox-tbtn--md { + height: 42px; + width: 51px; +} +.tox .tox-tbtn--lg { + flex-direction: column; + height: 56px; + width: 68px; +} +.tox .tox-tbtn--return { + align-self: stretch; + height: unset; + width: 16px; +} +.tox .tox-tbtn--labeled { + padding: 0 4px; + width: unset; +} +.tox .tox-tbtn__vlabel { + display: block; + font-size: 10px; + font-weight: normal; + letter-spacing: -0.025em; + margin-bottom: 4px; + white-space: nowrap; +} +.tox .tox-number-input { + border-radius: 3px; + display: flex; + margin: 6px 1px 5px 0; + padding: 0 4px; + width: auto; +} +.tox .tox-number-input .tox-input-wrapper { + background: #f7f7f7; + display: flex; + pointer-events: none; + text-align: center; +} +.tox .tox-number-input .tox-input-wrapper:focus { + background: #cce2fa; +} +.tox .tox-number-input input { + border-radius: 3px; + color: #222f3e; + font-size: 14px; + margin: 2px 0; + pointer-events: all; + width: 60px; +} +.tox .tox-number-input input:hover { + background: #cce2fa; + color: #222f3e; +} +.tox .tox-number-input input:focus { + background: #fff; + color: #222f3e; +} +.tox .tox-number-input input:disabled { + background: transparent; + border: 0; + box-shadow: none; + color: rgba(34, 47, 62, 0.5); + cursor: not-allowed; +} +.tox .tox-number-input button { + background: #f7f7f7; + color: #222f3e; + height: 28px; + text-align: center; + width: 24px; +} +.tox .tox-number-input button svg { + display: block; + fill: #222f3e; + margin: 0 auto; + transform: scale(0.67); +} +.tox .tox-number-input button:focus { + background: #cce2fa; +} +.tox .tox-number-input button:hover { + background: #cce2fa; + border: 0; + box-shadow: none; + color: #222f3e; +} +.tox .tox-number-input button:hover svg { + fill: #222f3e; +} +.tox .tox-number-input button:active { + background: #a6ccf7; + border: 0; + box-shadow: none; + color: #222f3e; +} +.tox .tox-number-input button:active svg { + fill: #222f3e; +} +.tox .tox-number-input button:disabled { + background: transparent; + border: 0; + box-shadow: none; + color: rgba(34, 47, 62, 0.5); + cursor: not-allowed; +} +.tox .tox-number-input button:disabled svg { + fill: rgba(34, 47, 62, 0.5); +} +.tox .tox-number-input button.minus { + border-radius: 3px 0 0 3px; +} +.tox .tox-number-input button.plus { + border-radius: 0 3px 3px 0; +} +.tox .tox-number-input:focus:not(:active) > button, +.tox .tox-number-input:focus:not(:active) > .tox-input-wrapper { + background: #cce2fa; +} +.tox .tox-tbtn--select { + margin: 6px 1px 5px 0; + padding: 0 4px; + width: auto; +} +.tox .tox-tbtn__select-label { + cursor: default; + font-weight: normal; + height: initial; + margin: 0 4px; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} +.tox .tox-tbtn__select-chevron { + align-items: center; + display: flex; + justify-content: center; + width: 16px; +} +.tox .tox-tbtn__select-chevron svg { + fill: rgba(34, 47, 62, 0.5); +} +.tox .tox-tbtn--bespoke { + background: #f7f7f7; +} +.tox .tox-tbtn--bespoke + .tox-tbtn--bespoke { + margin-inline-start: 4px; +} +.tox .tox-tbtn--bespoke .tox-tbtn__select-label { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + width: 7em; +} +.tox .tox-tbtn--disabled .tox-tbtn__select-label, +.tox .tox-tbtn--select:disabled .tox-tbtn__select-label { + cursor: not-allowed; +} +.tox .tox-split-button { + border: 0; + border-radius: 3px; + box-sizing: border-box; + display: flex; + margin: 6px 1px 5px 0; + overflow: hidden; +} +.tox .tox-split-button:hover { + box-shadow: 0 0 0 1px #cce2fa inset; +} +.tox .tox-split-button:focus { + background: #cce2fa; + box-shadow: none; + color: #222f3e; +} +.tox .tox-split-button > * { + border-radius: 0; +} +.tox .tox-split-button__chevron { + width: 16px; +} +.tox .tox-split-button__chevron svg { + fill: rgba(34, 47, 62, 0.5); +} +.tox .tox-split-button .tox-tbtn { + margin: 0; +} +.tox .tox-split-button.tox-tbtn--disabled:hover, +.tox .tox-split-button.tox-tbtn--disabled:focus, +.tox .tox-split-button.tox-tbtn--disabled .tox-tbtn:hover, +.tox .tox-split-button.tox-tbtn--disabled .tox-tbtn:focus { + background: transparent; + box-shadow: none; + color: rgba(34, 47, 62, 0.5); +} +.tox.tox-platform-touch .tox-split-button .tox-tbtn--select { + padding: 0 0px; +} +.tox.tox-platform-touch .tox-split-button .tox-tbtn:not(.tox-tbtn--select):first-child { + width: 30px; +} +.tox.tox-platform-touch .tox-split-button__chevron { + width: 20px; +} +.tox .tox-split-button.tox-tbtn--disabled svg #tox-icon-text-color__color, +.tox .tox-split-button.tox-tbtn--disabled svg #tox-icon-highlight-bg-color__color { + opacity: 0.6; +} +.tox .tox-toolbar-overlord { + background-color: #fff; +} +.tox .tox-toolbar, +.tox .tox-toolbar__primary, +.tox .tox-toolbar__overflow { + background-attachment: local; + background-color: #fff; + background-image: repeating-linear-gradient(#e3e3e3 0px 1px, transparent 1px 39px); + background-position: center top 40px; + background-repeat: no-repeat; + background-size: calc(100% - 11px * 2) calc(100% - 41px); + display: flex; + flex: 0 0 auto; + flex-shrink: 0; + flex-wrap: wrap; + padding: 0 0px; + transform: perspective(1px); +} +.tox .tox-toolbar-overlord > .tox-toolbar, +.tox .tox-toolbar-overlord > .tox-toolbar__primary, +.tox .tox-toolbar-overlord > .tox-toolbar__overflow { + background-position: center top 0px; + background-size: calc(100% - 11px * 2) calc(100% - 0px); +} +.tox .tox-toolbar__overflow.tox-toolbar__overflow--closed { + height: 0; + opacity: 0; + padding-bottom: 0; + padding-top: 0; + visibility: hidden; +} +.tox .tox-toolbar__overflow--growing { + transition: height 0.3s ease, opacity 0.2s linear 0.1s; +} +.tox .tox-toolbar__overflow--shrinking { + transition: opacity 0.3s ease, height 0.2s linear 0.1s, visibility 0s linear 0.3s; +} +.tox .tox-toolbar-overlord, +.tox .tox-anchorbar { + grid-column: 1 / -1; +} +.tox .tox-menubar + .tox-toolbar, +.tox .tox-menubar + .tox-toolbar-overlord { + border-top: 1px solid transparent; + margin-top: -1px; + padding-bottom: 1px; + padding-top: 1px; +} +.tox .tox-toolbar--scrolling { + flex-wrap: nowrap; + overflow-x: auto; +} +.tox .tox-pop .tox-toolbar { + border-width: 0; +} +.tox .tox-toolbar--no-divider { + background-image: none; +} +.tox .tox-toolbar-overlord .tox-toolbar:not(.tox-toolbar--scrolling):first-child, +.tox .tox-toolbar-overlord .tox-toolbar__primary { + background-position: center top 39px; +} +.tox .tox-editor-header > .tox-toolbar--scrolling, +.tox .tox-toolbar-overlord .tox-toolbar--scrolling:first-child { + background-image: none; +} +.tox.tox-tinymce-aux .tox-toolbar__overflow { + background-color: #fff; + background-position: center top 43px; + background-size: calc(100% - 8px * 2) calc(100% - 51px); + border: none; + border-radius: 6px; + box-shadow: 0 0 2px 0 rgba(34, 47, 62, 0.2), 0 4px 8px 0 rgba(34, 47, 62, 0.15); + overscroll-behavior: none; + padding: 4px 0; +} +.tox-pop .tox-pop__dialog { + /* stylelint-disable-next-line no-descending-specificity */ +} +.tox-pop .tox-pop__dialog .tox-toolbar { + background-position: center top 43px; + background-size: calc(100% - 11px * 2) calc(100% - 51px); + padding: 4px 0; +} +.tox .tox-toolbar__group { + align-items: center; + display: flex; + flex-wrap: wrap; + margin: 0 0; + padding: 0 11px 0 12px; +} +.tox .tox-toolbar__group--pull-right { + margin-left: auto; +} +.tox .tox-toolbar--scrolling .tox-toolbar__group { + flex-shrink: 0; + flex-wrap: nowrap; +} +.tox:not([dir=rtl]) .tox-toolbar__group:not(:last-of-type) { + border-right: 1px solid transparent; +} +.tox[dir=rtl] .tox-toolbar__group:not(:last-of-type) { + border-left: 1px solid transparent; +} +.tox .tox-tooltip { + display: inline-block; + padding: 8px; + position: relative; +} +.tox .tox-tooltip__body { + background-color: #222f3e; + border-radius: 6px; + box-shadow: 0 2px 4px rgba(34, 47, 62, 0.3); + color: rgba(255, 255, 255, 0.75); + font-size: 14px; + font-style: normal; + font-weight: normal; + padding: 4px 8px; + text-transform: none; +} +.tox .tox-tooltip__arrow { + position: absolute; +} +.tox .tox-tooltip--down .tox-tooltip__arrow { + border-left: 8px solid transparent; + border-right: 8px solid transparent; + border-top: 8px solid #222f3e; + bottom: 0; + left: 50%; + position: absolute; + transform: translateX(-50%); +} +.tox .tox-tooltip--up .tox-tooltip__arrow { + border-bottom: 8px solid #222f3e; + border-left: 8px solid transparent; + border-right: 8px solid transparent; + left: 50%; + position: absolute; + top: 0; + transform: translateX(-50%); +} +.tox .tox-tooltip--right .tox-tooltip__arrow { + border-bottom: 8px solid transparent; + border-left: 8px solid #222f3e; + border-top: 8px solid transparent; + position: absolute; + right: 0; + top: 50%; + transform: translateY(-50%); +} +.tox .tox-tooltip--left .tox-tooltip__arrow { + border-bottom: 8px solid transparent; + border-right: 8px solid #222f3e; + border-top: 8px solid transparent; + left: 0; + position: absolute; + top: 50%; + transform: translateY(-50%); +} +.tox .tox-tree { + display: flex; + flex-direction: column; +} +.tox .tox-tree .tox-trbtn { + align-items: center; + background: transparent; + border: 0; + border-radius: 4px; + box-shadow: none; + color: #222f3e; + display: flex; + flex: 0 0 auto; + font-size: 14px; + font-style: normal; + font-weight: normal; + height: 28px; + margin-bottom: 4px; + margin-top: 4px; + outline: none; + overflow: hidden; + padding: 0; + padding-left: 8px; + text-transform: none; +} +.tox .tox-tree .tox-trbtn .tox-tree__label { + cursor: default; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} +.tox .tox-tree .tox-trbtn svg { + display: block; + fill: #222f3e; +} +.tox .tox-tree .tox-trbtn:focus { + background: #cce2fa; + border: 0; + box-shadow: none; +} +.tox .tox-tree .tox-trbtn:hover { + background: #cce2fa; + border: 0; + box-shadow: none; + color: #222f3e; +} +.tox .tox-tree .tox-trbtn:hover svg { + fill: #222f3e; +} +.tox .tox-tree .tox-trbtn:active { + background: #a6ccf7; + border: 0; + box-shadow: none; + color: #222f3e; +} +.tox .tox-tree .tox-trbtn:active svg { + fill: #222f3e; +} +.tox .tox-tree .tox-trbtn--disabled, +.tox .tox-tree .tox-trbtn--disabled:hover, +.tox .tox-tree .tox-trbtn:disabled, +.tox .tox-tree .tox-trbtn:disabled:hover { + background: transparent; + border: 0; + box-shadow: none; + color: rgba(34, 47, 62, 0.5); + cursor: not-allowed; +} +.tox .tox-tree .tox-trbtn--disabled svg, +.tox .tox-tree .tox-trbtn--disabled:hover svg, +.tox .tox-tree .tox-trbtn:disabled svg, +.tox .tox-tree .tox-trbtn:disabled:hover svg { + /* stylelint-disable-line no-descending-specificity */ + fill: rgba(34, 47, 62, 0.5); +} +.tox .tox-tree .tox-trbtn--enabled, +.tox .tox-tree .tox-trbtn--enabled:hover { + background: #a6ccf7; + border: 0; + box-shadow: none; + color: #222f3e; +} +.tox .tox-tree .tox-trbtn--enabled > *, +.tox .tox-tree .tox-trbtn--enabled:hover > * { + transform: none; +} +.tox .tox-tree .tox-trbtn--enabled svg, +.tox .tox-tree .tox-trbtn--enabled:hover svg { + /* stylelint-disable-line no-descending-specificity */ + fill: #222f3e; +} +.tox .tox-tree .tox-trbtn:focus:not(.tox-trbtn--disabled) { + color: #222f3e; +} +.tox .tox-tree .tox-trbtn:focus:not(.tox-trbtn--disabled) svg { + fill: #222f3e; +} +.tox .tox-tree .tox-trbtn:active > * { + transform: none; +} +.tox .tox-tree .tox-trbtn--return { + align-self: stretch; + height: unset; + width: 16px; +} +.tox .tox-tree .tox-trbtn--labeled { + padding: 0 4px; + width: unset; +} +.tox .tox-tree .tox-trbtn__vlabel { + display: block; + font-size: 10px; + font-weight: normal; + letter-spacing: -0.025em; + margin-bottom: 4px; + white-space: nowrap; +} +.tox .tox-tree .tox-tree--directory { + display: flex; + flex-direction: column; + /* stylelint-disable no-descending-specificity */ +} +.tox .tox-tree .tox-tree--directory .tox-tree--directory__label { + font-weight: bold; +} +.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn { + margin-left: auto; +} +.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn svg { + fill: transparent; +} +.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn.tox-mbtn--active svg, +.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn:focus svg { + fill: #222f3e; +} +.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover .tox-mbtn svg, +.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:focus .tox-mbtn svg { + fill: #222f3e; +} +.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover:has(.tox-mbtn:hover) { + background-color: transparent; + color: #222f3e; +} +.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover:has(.tox-mbtn:hover) .tox-chevron svg { + fill: #222f3e; +} +.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-chevron { + margin-right: 6px; +} +.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+ .tox-tree--directory__children--growing) .tox-chevron, +.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+ .tox-tree--directory__children--shrinking) .tox-chevron { + transition: transform 0.5s ease-in-out; +} +.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+ .tox-tree--directory__children--growing) .tox-chevron, +.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+ .tox-tree--directory__children--open) .tox-chevron { + transform: rotate(90deg); +} +.tox .tox-tree .tox-tree--leaf__label { + font-weight: normal; +} +.tox .tox-tree .tox-tree--leaf__label .tox-mbtn { + margin-left: auto; +} +.tox .tox-tree .tox-tree--leaf__label .tox-mbtn svg { + fill: transparent; +} +.tox .tox-tree .tox-tree--leaf__label .tox-mbtn.tox-mbtn--active svg, +.tox .tox-tree .tox-tree--leaf__label .tox-mbtn:focus svg { + fill: #222f3e; +} +.tox .tox-tree .tox-tree--leaf__label:hover .tox-mbtn svg { + fill: #222f3e; +} +.tox .tox-tree .tox-tree--leaf__label:hover:has(.tox-mbtn:hover) { + background-color: transparent; + color: #222f3e; +} +.tox .tox-tree .tox-tree--leaf__label:hover:has(.tox-mbtn:hover) .tox-chevron svg { + fill: #222f3e; +} +.tox .tox-tree .tox-tree--directory__children { + overflow: hidden; + padding-left: 16px; +} +.tox .tox-tree .tox-tree--directory__children.tox-tree--directory__children--growing, +.tox .tox-tree .tox-tree--directory__children.tox-tree--directory__children--shrinking { + transition: height 0.5s ease-in-out; +} +.tox .tox-tree .tox-trbtn.tox-tree--leaf__label { + display: flex; + justify-content: space-between; +} +.tox .tox-view-wrap, +.tox .tox-view-wrap__slot-container { + background-color: #fff; + display: flex; + flex: 1; + flex-direction: column; +} +.tox .tox-view { + display: flex; + flex: 1 1 auto; + flex-direction: column; + overflow: hidden; +} +.tox .tox-view__header { + align-items: center; + display: flex; + font-size: 16px; + justify-content: space-between; + padding: 8px 8px 0 8px; + position: relative; +} +.tox .tox-view--mobile.tox-view__header, +.tox .tox-view--mobile.tox-view__toolbar { + padding: 8px; +} +.tox .tox-view--scrolling { + flex-wrap: nowrap; + overflow-x: auto; +} +.tox .tox-view__toolbar { + display: flex; + flex-direction: row; + gap: 8px; + justify-content: space-between; + padding: 8px 8px 0 8px; +} +.tox .tox-view__toolbar__group { + display: flex; + flex-direction: row; + gap: 12px; +} +.tox .tox-view__header-start, +.tox .tox-view__header-end { + display: flex; +} +.tox .tox-view__pane { + height: 100%; + padding: 8px; + width: 100%; +} +.tox .tox-view__pane_panel { + border: 1px solid #eeeeee; + border-radius: 6px; +} +.tox:not([dir=rtl]) .tox-view__header .tox-view__header-start > *, +.tox:not([dir=rtl]) .tox-view__header .tox-view__header-end > * { + margin-left: 8px; +} +.tox[dir=rtl] .tox-view__header .tox-view__header-start > *, +.tox[dir=rtl] .tox-view__header .tox-view__header-end > * { + margin-right: 8px; +} +.tox .tox-well { + border: 1px solid #eeeeee; + border-radius: 6px; + padding: 8px; + width: 100%; +} +.tox .tox-well > *:first-child { + margin-top: 0; +} +.tox .tox-well > *:last-child { + margin-bottom: 0; +} +.tox .tox-well > *:only-child { + margin: 0; +} +.tox .tox-custom-editor { + border: 1px solid #eeeeee; + border-radius: 6px; + display: flex; + flex: 1; + overflow: hidden; + position: relative; +} +/* stylelint-disable */ +.tox { + /* stylelint-enable */ +} +.tox .tox-dialog-loading::before { + background-color: rgba(0, 0, 0, 0.5); + content: ""; + height: 100%; + position: absolute; + width: 100%; + z-index: 1000; +} +.tox .tox-tab { + cursor: pointer; +} +.tox .tox-dialog__content-js { + display: flex; + flex: 1; +} +.tox .tox-dialog__body-content .tox-collection { + display: flex; + flex: 1; +} diff --git a/tinymce-resource/skins/ui/oxide/skin.js b/tinymce-resource/skins/ui/oxide/skin.js new file mode 100644 index 000000000..319da2f12 --- /dev/null +++ b/tinymce-resource/skins/ui/oxide/skin.js @@ -0,0 +1,2 @@ +tinymce.Resource.add('ui/default/skin.css', ".tox{box-shadow:none;box-sizing:content-box;color:#222f3e;cursor:auto;font-family:-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,Oxygen-Sans,Ubuntu,Cantarell,\"Helvetica Neue\",sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:normal;-webkit-tap-highlight-color:transparent;text-decoration:none;text-shadow:none;text-transform:none;vertical-align:initial;white-space:normal}.tox :not(svg):not(rect){box-sizing:inherit;color:inherit;cursor:inherit;direction:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;line-height:inherit;-webkit-tap-highlight-color:inherit;text-align:inherit;text-decoration:inherit;text-shadow:inherit;text-transform:inherit;vertical-align:inherit;white-space:inherit}.tox :not(svg):not(rect){background:0 0;border:0;box-shadow:none;float:none;height:auto;margin:0;max-width:none;outline:0;padding:0;position:static;width:auto}.tox:not([dir=rtl]){direction:ltr;text-align:left}.tox[dir=rtl]{direction:rtl;text-align:right}.tox-tinymce{border:2px solid #eee;border-radius:10px;box-shadow:none;box-sizing:border-box;display:flex;flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,Oxygen-Sans,Ubuntu,Cantarell,\"Helvetica Neue\",sans-serif;overflow:hidden;position:relative;visibility:inherit!important}.tox.tox-tinymce-inline{border:none;box-shadow:none;overflow:initial}.tox.tox-tinymce-inline .tox-editor-container{overflow:initial}.tox.tox-tinymce-inline .tox-editor-header{background-color:#fff;border:2px solid #eee;border-radius:10px;box-shadow:none;overflow:hidden}.tox-tinymce-aux{font-family:-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,Oxygen-Sans,Ubuntu,Cantarell,\"Helvetica Neue\",sans-serif;z-index:1300}.tox-tinymce :focus,.tox-tinymce-aux :focus{outline:0}button::-moz-focus-inner{border:0}.tox[dir=rtl] .tox-icon--flip svg{transform:rotateY(180deg)}.tox .accessibility-issue__header{align-items:center;display:flex;margin-bottom:4px}.tox .accessibility-issue__description{align-items:stretch;border-radius:6px;display:flex;justify-content:space-between}.tox .accessibility-issue__description>div{padding-bottom:4px}.tox .accessibility-issue__description>div>div{align-items:center;display:flex;margin-bottom:4px}.tox .accessibility-issue__description>div>div .tox-icon svg{display:block}.tox .accessibility-issue__repair{margin-top:16px}.tox .tox-dialog__body-content .accessibility-issue--info .accessibility-issue__description{background-color:rgba(0,101,216,.1);color:#222f3e}.tox .tox-dialog__body-content .accessibility-issue--info .tox-form__group h2{color:#006ce7}.tox .tox-dialog__body-content .accessibility-issue--info .tox-icon svg{fill:#006ce7}.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon{background-color:#006ce7;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:focus,.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:hover{background-color:#0060ce}.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:active{background-color:#0054b4}.tox .tox-dialog__body-content .accessibility-issue--warn .accessibility-issue__description{background-color:rgba(255,165,0,.08);color:#222f3e}.tox .tox-dialog__body-content .accessibility-issue--warn .tox-form__group h2{color:#8f5d00}.tox .tox-dialog__body-content .accessibility-issue--warn .tox-icon svg{fill:#8f5d00}.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon{background-color:#ffe89d;color:#222f3e}.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:focus,.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:hover{background-color:#f2d574;color:#222f3e}.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:active{background-color:#e8c657;color:#222f3e}.tox .tox-dialog__body-content .accessibility-issue--error .accessibility-issue__description{background-color:rgba(204,0,0,.1);color:#222f3e}.tox .tox-dialog__body-content .accessibility-issue--error .tox-form__group h2{color:#c00}.tox .tox-dialog__body-content .accessibility-issue--error .tox-icon svg{fill:#c00}.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon{background-color:#f2bfbf;color:#222f3e}.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:focus,.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:hover{background-color:#e9a4a4;color:#222f3e}.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:active{background-color:#ee9494;color:#222f3e}.tox .tox-dialog__body-content .accessibility-issue--success .accessibility-issue__description{background-color:rgba(120,171,70,.1);color:#222f3e}.tox .tox-dialog__body-content .accessibility-issue--success .accessibility-issue__description>:last-child{display:none}.tox .tox-dialog__body-content .accessibility-issue--success .tox-form__group h2{color:#527530}.tox .tox-dialog__body-content .accessibility-issue--success .tox-icon svg{fill:#527530}.tox .tox-dialog__body-content .accessibility-issue__header .tox-form__group h1,.tox .tox-dialog__body-content .tox-form__group .accessibility-issue__description h2{font-size:14px;margin-top:0}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__header .tox-button{margin-left:4px}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__header>:nth-last-child(2){margin-left:auto}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__description{padding:4px 4px 4px 8px}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__header .tox-button{margin-right:4px}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__header>:nth-last-child(2){margin-right:auto}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__description{padding:4px 8px 4px 4px}.tox .tox-advtemplate .tox-form__grid{flex:1}.tox .tox-advtemplate .tox-form__grid>div:first-child{display:flex;flex-direction:column;width:30%}.tox .tox-advtemplate .tox-form__grid>div:first-child>div:nth-child(2){flex-basis:0;flex-grow:1;overflow:auto}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox .tox-advtemplate .tox-form__grid>div:first-child{width:100%}}.tox .tox-advtemplate iframe{border-color:#eee;border-radius:10px;border-style:solid;border-width:1px;margin:0 10px}.tox .tox-anchorbar{display:flex;flex:0 0 auto}.tox .tox-bottom-anchorbar{display:flex;flex:0 0 auto}.tox .tox-bar{display:flex;flex:0 0 auto}.tox .tox-button{background-color:#006ce7;background-image:none;background-position:0 0;background-repeat:repeat;border-color:#006ce7;border-radius:6px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#fff;cursor:pointer;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,Oxygen-Sans,Ubuntu,Cantarell,\"Helvetica Neue\",sans-serif;font-size:14px;font-style:normal;font-weight:700;letter-spacing:normal;line-height:24px;margin:0;outline:0;padding:4px 16px;position:relative;text-align:center;text-decoration:none;text-transform:none;white-space:nowrap}.tox .tox-button::before{border-radius:6px;bottom:-1px;box-shadow:inset 0 0 0 2px #fff,0 0 0 1px #006ce7,0 0 0 3px rgba(0,108,231,.25);content:'';left:-1px;opacity:0;pointer-events:none;position:absolute;right:-1px;top:-1px}.tox .tox-button[disabled]{background-color:#006ce7;background-image:none;border-color:#006ce7;box-shadow:none;color:rgba(255,255,255,.5);cursor:not-allowed}.tox .tox-button:focus:not(:disabled){background-color:#0060ce;background-image:none;border-color:#0060ce;box-shadow:none;color:#fff}.tox .tox-button:focus-visible:not(:disabled)::before{opacity:1}.tox .tox-button:hover:not(:disabled){background-color:#0060ce;background-image:none;border-color:#0060ce;box-shadow:none;color:#fff}.tox .tox-button:active:not(:disabled){background-color:#0054b4;background-image:none;border-color:#0054b4;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled{background-color:#0054b4;background-image:none;border-color:#0054b4;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled[disabled]{background-color:#0054b4;background-image:none;border-color:#0054b4;box-shadow:none;color:rgba(255,255,255,.5);cursor:not-allowed}.tox .tox-button.tox-button--enabled:focus:not(:disabled){background-color:#00489b;background-image:none;border-color:#00489b;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled:hover:not(:disabled){background-color:#00489b;background-image:none;border-color:#00489b;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled:active:not(:disabled){background-color:#003c81;background-image:none;border-color:#003c81;box-shadow:none;color:#fff}.tox .tox-button--icon-and-text,.tox .tox-button.tox-button--icon-and-text,.tox .tox-button.tox-button--secondary.tox-button--icon-and-text{display:flex;padding:5px 4px}.tox .tox-button--icon-and-text .tox-icon svg,.tox .tox-button.tox-button--icon-and-text .tox-icon svg,.tox .tox-button.tox-button--secondary.tox-button--icon-and-text .tox-icon svg{display:block;fill:currentColor}.tox .tox-button--secondary{background-color:#f0f0f0;background-image:none;background-position:0 0;background-repeat:repeat;border-color:#f0f0f0;border-radius:6px;border-style:solid;border-width:1px;box-shadow:none;color:#222f3e;font-size:14px;font-style:normal;font-weight:700;letter-spacing:normal;outline:0;padding:4px 16px;text-decoration:none;text-transform:none}.tox .tox-button--secondary[disabled]{background-color:#f0f0f0;background-image:none;border-color:#f0f0f0;box-shadow:none;color:rgba(34,47,62,.5)}.tox .tox-button--secondary:focus:not(:disabled){background-color:#e3e3e3;background-image:none;border-color:#e3e3e3;box-shadow:none;color:#222f3e}.tox .tox-button--secondary:hover:not(:disabled){background-color:#e3e3e3;background-image:none;border-color:#e3e3e3;box-shadow:none;color:#222f3e}.tox .tox-button--secondary:active:not(:disabled){background-color:#d6d6d6;background-image:none;border-color:#d6d6d6;box-shadow:none;color:#222f3e}.tox .tox-button--secondary.tox-button--enabled{background-color:#a8c8ed;background-image:none;border-color:#a8c8ed;box-shadow:none;color:#222f3e}.tox .tox-button--secondary.tox-button--enabled[disabled]{background-color:#a8c8ed;background-image:none;border-color:#a8c8ed;box-shadow:none;color:rgba(34,47,62,.5)}.tox .tox-button--secondary.tox-button--enabled:focus:not(:disabled){background-color:#93bbe9;background-image:none;border-color:#93bbe9;box-shadow:none;color:#222f3e}.tox .tox-button--secondary.tox-button--enabled:hover:not(:disabled){background-color:#93bbe9;background-image:none;border-color:#93bbe9;box-shadow:none;color:#222f3e}.tox .tox-button--secondary.tox-button--enabled:active:not(:disabled){background-color:#7daee4;background-image:none;border-color:#7daee4;box-shadow:none;color:#222f3e}.tox .tox-button--icon,.tox .tox-button.tox-button--icon,.tox .tox-button.tox-button--secondary.tox-button--icon{padding:4px}.tox .tox-button--icon .tox-icon svg,.tox .tox-button.tox-button--icon .tox-icon svg,.tox .tox-button.tox-button--secondary.tox-button--icon .tox-icon svg{display:block;fill:currentColor}.tox .tox-button-link{background:0;border:none;box-sizing:border-box;cursor:pointer;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,Oxygen-Sans,Ubuntu,Cantarell,\"Helvetica Neue\",sans-serif;font-size:16px;font-weight:400;line-height:1.3;margin:0;padding:0;white-space:nowrap}.tox .tox-button-link--sm{font-size:14px}.tox .tox-button--naked{background-color:transparent;border-color:transparent;box-shadow:unset;color:#222f3e}.tox .tox-button--naked[disabled]{background-color:rgba(34,47,62,.12);border-color:transparent;box-shadow:unset;color:rgba(34,47,62,.5)}.tox .tox-button--naked:hover:not(:disabled){background-color:rgba(34,47,62,.12);border-color:transparent;box-shadow:unset;color:#222f3e}.tox .tox-button--naked:focus:not(:disabled){background-color:rgba(34,47,62,.12);border-color:transparent;box-shadow:unset;color:#222f3e}.tox .tox-button--naked:active:not(:disabled){background-color:rgba(34,47,62,.18);border-color:transparent;box-shadow:unset;color:#222f3e}.tox .tox-button--naked .tox-icon svg{fill:currentColor}.tox .tox-button--naked.tox-button--icon:hover:not(:disabled){color:#222f3e}.tox .tox-checkbox{align-items:center;border-radius:6px;cursor:pointer;display:flex;height:36px;min-width:36px}.tox .tox-checkbox__input{height:1px;overflow:hidden;position:absolute;top:auto;width:1px}.tox .tox-checkbox__icons{align-items:center;border-radius:6px;box-shadow:0 0 0 2px transparent;box-sizing:content-box;display:flex;height:24px;justify-content:center;padding:calc(4px - 1px);width:24px}.tox .tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:block;fill:rgba(34,47,62,.3)}.tox .tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{display:none;fill:#006ce7}.tox .tox-checkbox__icons .tox-checkbox-icon__checked svg{display:none;fill:#006ce7}.tox .tox-checkbox--disabled{color:rgba(34,47,62,.5);cursor:not-allowed}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__checked svg{fill:rgba(34,47,62,.5)}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__unchecked svg{fill:rgba(34,47,62,.5)}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{fill:rgba(34,47,62,.5)}.tox input.tox-checkbox__input:checked+.tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:none}.tox input.tox-checkbox__input:checked+.tox-checkbox__icons .tox-checkbox-icon__checked svg{display:block}.tox input.tox-checkbox__input:indeterminate+.tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:none}.tox input.tox-checkbox__input:indeterminate+.tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{display:block}.tox input.tox-checkbox__input:focus+.tox-checkbox__icons{border-radius:6px;box-shadow:inset 0 0 0 1px #006ce7;padding:calc(4px - 1px)}.tox:not([dir=rtl]) .tox-checkbox__label{margin-left:4px}.tox:not([dir=rtl]) .tox-checkbox__input{left:-10000px}.tox:not([dir=rtl]) .tox-bar .tox-checkbox{margin-left:4px}.tox[dir=rtl] .tox-checkbox__label{margin-right:4px}.tox[dir=rtl] .tox-checkbox__input{right:-10000px}.tox[dir=rtl] .tox-bar .tox-checkbox{margin-right:4px}.tox .tox-collection--toolbar .tox-collection__group{display:flex;padding:0}.tox .tox-collection--grid .tox-collection__group{display:flex;flex-wrap:wrap;max-height:208px;overflow-x:hidden;overflow-y:auto;padding:0}.tox .tox-collection--list .tox-collection__group{border-bottom-width:0;border-color:#e3e3e3;border-left-width:0;border-right-width:0;border-style:solid;border-top-width:1px;padding:4px 0}.tox .tox-collection--list .tox-collection__group:first-child{border-top-width:0}.tox .tox-collection__group-heading{background-color:#fcfcfc;color:rgba(34,47,62,.7);cursor:default;font-size:12px;font-style:normal;font-weight:400;margin-bottom:4px;margin-top:-4px;padding:4px 8px;text-transform:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.tox .tox-collection__item{align-items:center;border-radius:3px;color:#222f3e;display:flex;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.tox .tox-collection--list .tox-collection__item{padding:4px 8px}.tox .tox-collection--toolbar .tox-collection__item{border-radius:3px;padding:4px}.tox .tox-collection--grid .tox-collection__item{border-radius:3px;padding:4px}.tox .tox-collection--list .tox-collection__item--enabled{background-color:#fff;color:#222f3e}.tox .tox-collection--list .tox-collection__item--active{background-color:#cce2fa}.tox .tox-collection--toolbar .tox-collection__item--enabled{background-color:#a6ccf7;color:#222f3e}.tox .tox-collection--toolbar .tox-collection__item--active{background-color:#cce2fa}.tox .tox-collection--grid .tox-collection__item--enabled{background-color:#a6ccf7;color:#222f3e}.tox .tox-collection--grid .tox-collection__item--active:not(.tox-collection__item--state-disabled){background-color:#cce2fa;color:#222f3e}.tox .tox-collection--list .tox-collection__item--active:not(.tox-collection__item--state-disabled){color:#222f3e}.tox .tox-collection--toolbar .tox-collection__item--active:not(.tox-collection__item--state-disabled){color:#222f3e}.tox .tox-collection__item-checkmark,.tox .tox-collection__item-icon{align-items:center;display:flex;height:24px;justify-content:center;width:24px}.tox .tox-collection__item-checkmark svg,.tox .tox-collection__item-icon svg{fill:currentColor}.tox .tox-collection--toolbar-lg .tox-collection__item-icon{height:48px;width:48px}.tox .tox-collection__item-label{color:currentColor;display:inline-block;flex:1;font-size:14px;font-style:normal;font-weight:400;line-height:24px;max-width:100%;text-transform:none;word-break:break-all}.tox .tox-collection__item-accessory{color:rgba(34,47,62,.7);display:inline-block;font-size:14px;height:24px;line-height:24px;text-transform:none}.tox .tox-collection__item-caret{align-items:center;display:flex;min-height:24px}.tox .tox-collection__item-caret::after{content:'';font-size:0;min-height:inherit}.tox .tox-collection__item-caret svg{fill:#222f3e}.tox .tox-collection__item--state-disabled{background-color:transparent;color:rgba(34,47,62,.5);cursor:not-allowed}.tox .tox-collection__item--state-disabled .tox-collection__item-caret svg{fill:rgba(34,47,62,.5)}.tox .tox-collection--list .tox-collection__item:not(.tox-collection__item--enabled) .tox-collection__item-checkmark svg{display:none}.tox .tox-collection--list .tox-collection__item:not(.tox-collection__item--enabled) .tox-collection__item-accessory+.tox-collection__item-checkmark{display:none}.tox .tox-collection--horizontal{background-color:#fff;border:1px solid #e3e3e3;border-radius:6px;box-shadow:0 0 2px 0 rgba(34,47,62,.2),0 4px 8px 0 rgba(34,47,62,.15);display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:nowrap;margin-bottom:0;overflow-x:auto;padding:0}.tox .tox-collection--horizontal .tox-collection__group{align-items:center;display:flex;flex-wrap:nowrap;margin:0;padding:0 4px}.tox .tox-collection--horizontal .tox-collection__item{height:28px;margin:6px 1px 5px 0;padding:0 4px}.tox .tox-collection--horizontal .tox-collection__item-label{white-space:nowrap}.tox .tox-collection--horizontal .tox-collection__item-caret{margin-left:4px}.tox .tox-collection__item-container{display:flex}.tox .tox-collection__item-container--row{align-items:center;flex:1 1 auto;flex-direction:row}.tox .tox-collection__item-container--row.tox-collection__item-container--align-left{margin-right:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--align-right{justify-content:flex-end;margin-left:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-top{align-items:flex-start;margin-bottom:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-middle{align-items:center}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-bottom{align-items:flex-end;margin-top:auto}.tox .tox-collection__item-container--column{align-self:center;flex:1 1 auto;flex-direction:column}.tox .tox-collection__item-container--column.tox-collection__item-container--align-left{align-items:flex-start}.tox .tox-collection__item-container--column.tox-collection__item-container--align-right{align-items:flex-end}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-top{align-self:flex-start}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-middle{align-self:center}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-bottom{align-self:flex-end}.tox:not([dir=rtl]) .tox-collection--horizontal .tox-collection__group:not(:last-of-type){border-right:1px solid transparent}.tox:not([dir=rtl]) .tox-collection--list .tox-collection__item>:not(:first-child){margin-left:8px}.tox:not([dir=rtl]) .tox-collection--list .tox-collection__item>.tox-collection__item-label:first-child{margin-left:4px}.tox:not([dir=rtl]) .tox-collection__item-accessory{margin-left:16px;text-align:right}.tox:not([dir=rtl]) .tox-collection .tox-collection__item-caret{margin-left:16px}.tox[dir=rtl] .tox-collection--horizontal .tox-collection__group:not(:last-of-type){border-left:1px solid transparent}.tox[dir=rtl] .tox-collection--list .tox-collection__item>:not(:first-child){margin-right:8px}.tox[dir=rtl] .tox-collection--list .tox-collection__item>.tox-collection__item-label:first-child{margin-right:4px}.tox[dir=rtl] .tox-collection__item-accessory{margin-right:16px;text-align:left}.tox[dir=rtl] .tox-collection .tox-collection__item-caret{margin-right:16px;transform:rotateY(180deg)}.tox[dir=rtl] .tox-collection--horizontal .tox-collection__item-caret{margin-right:4px}.tox .tox-color-picker-container{display:flex;flex-direction:row;height:225px;margin:0}.tox .tox-sv-palette{box-sizing:border-box;display:flex;height:100%}.tox .tox-sv-palette-spectrum{height:100%}.tox .tox-sv-palette,.tox .tox-sv-palette-spectrum{width:225px}.tox .tox-sv-palette-thumb{background:0 0;border:1px solid #000;border-radius:50%;box-sizing:content-box;height:12px;position:absolute;width:12px}.tox .tox-sv-palette-inner-thumb{border:1px solid #fff;border-radius:50%;height:10px;position:absolute;width:10px}.tox .tox-hue-slider{box-sizing:border-box;height:100%;width:25px}.tox .tox-hue-slider-spectrum{background:linear-gradient(to bottom,red,#ff0080,#f0f,#8000ff,#00f,#0080ff,#0ff,#00ff80,#0f0,#80ff00,#ff0,#ff8000,red);height:100%;width:100%}.tox .tox-hue-slider,.tox .tox-hue-slider-spectrum{width:20px}.tox .tox-hue-slider-spectrum:focus,.tox .tox-sv-palette-spectrum:focus{outline:#08f solid}.tox .tox-hue-slider-thumb{background:#fff;border:1px solid #000;box-sizing:content-box;height:4px;width:100%}.tox .tox-rgb-form{display:flex;flex-direction:column;justify-content:space-between}.tox .tox-rgb-form div{align-items:center;display:flex;justify-content:space-between;margin-bottom:5px;width:inherit}.tox .tox-rgb-form input{width:6em}.tox .tox-rgb-form input.tox-invalid{border:1px solid red!important}.tox .tox-rgb-form .tox-rgba-preview{border:1px solid #000;flex-grow:2;margin-bottom:0}.tox:not([dir=rtl]) .tox-sv-palette{margin-right:15px}.tox:not([dir=rtl]) .tox-hue-slider{margin-right:15px}.tox:not([dir=rtl]) .tox-hue-slider-thumb{margin-left:-1px}.tox:not([dir=rtl]) .tox-rgb-form label{margin-right:.5em}.tox[dir=rtl] .tox-sv-palette{margin-left:15px}.tox[dir=rtl] .tox-hue-slider{margin-left:15px}.tox[dir=rtl] .tox-hue-slider-thumb{margin-right:-1px}.tox[dir=rtl] .tox-rgb-form label{margin-left:.5em}.tox .tox-toolbar .tox-swatches,.tox .tox-toolbar__overflow .tox-swatches,.tox .tox-toolbar__primary .tox-swatches{margin:5px 0 6px 11px}.tox .tox-collection--list .tox-collection__group .tox-swatches-menu{border:0;margin:-4px -4px}.tox .tox-swatches__row{display:flex}.tox .tox-swatch{height:30px;transition:transform .15s,box-shadow .15s;width:30px}.tox .tox-swatch:focus,.tox .tox-swatch:hover{box-shadow:0 0 0 1px rgba(127,127,127,.3) inset;transform:scale(.8)}.tox .tox-swatch--remove{align-items:center;display:flex;justify-content:center}.tox .tox-swatch--remove svg path{stroke:#e74c3c}.tox .tox-swatches__picker-btn{align-items:center;background-color:transparent;border:0;cursor:pointer;display:flex;height:30px;justify-content:center;outline:0;padding:0;width:30px}.tox .tox-swatches__picker-btn svg{fill:#222f3e;height:24px;width:24px}.tox .tox-swatches__picker-btn:hover{background:#cce2fa}.tox div.tox-swatch:not(.tox-swatch--remove) svg{display:none;fill:#222f3e;height:24px;margin:calc((30px - 24px)/ 2) calc((30px - 24px)/ 2);width:24px}.tox div.tox-swatch:not(.tox-swatch--remove) svg path{fill:#fff;paint-order:stroke;stroke:#222f3e;stroke-width:2px}.tox div.tox-swatch:not(.tox-swatch--remove).tox-collection__item--enabled svg{display:block}.tox:not([dir=rtl]) .tox-swatches__picker-btn{margin-left:auto}.tox[dir=rtl] .tox-swatches__picker-btn{margin-right:auto}.tox .tox-comment-thread{background:#fff;position:relative}.tox .tox-comment-thread>:not(:first-child){margin-top:8px}.tox .tox-comment{background:#fff;border:1px solid #eee;border-radius:6px;box-shadow:0 4px 8px 0 rgba(34,47,62,.1);padding:8px 8px 16px 8px;position:relative}.tox .tox-comment__header{align-items:center;color:#222f3e;display:flex;justify-content:space-between}.tox .tox-comment__date{color:#222f3e;font-size:12px;line-height:18px}.tox .tox-comment__body{color:#222f3e;font-size:14px;font-style:normal;font-weight:400;line-height:1.3;margin-top:8px;position:relative;text-transform:initial}.tox .tox-comment__body textarea{resize:none;white-space:normal;width:100%}.tox .tox-comment__expander{padding-top:8px}.tox .tox-comment__expander p{color:rgba(34,47,62,.7);font-size:14px;font-style:normal}.tox .tox-comment__body p{margin:0}.tox .tox-comment__buttonspacing{padding-top:16px;text-align:center}.tox .tox-comment-thread__overlay::after{background:#fff;bottom:0;content:\"\";display:flex;left:0;opacity:.9;position:absolute;right:0;top:0;z-index:5}.tox .tox-comment__reply{display:flex;flex-shrink:0;flex-wrap:wrap;justify-content:flex-end;margin-top:8px}.tox .tox-comment__reply>:first-child{margin-bottom:8px;width:100%}.tox .tox-comment__edit{display:flex;flex-wrap:wrap;justify-content:flex-end;margin-top:16px}.tox .tox-comment__gradient::after{background:linear-gradient(rgba(255,255,255,0),#fff);bottom:0;content:\"\";display:block;height:5em;margin-top:-40px;position:absolute;width:100%}.tox .tox-comment__overlay{background:#fff;bottom:0;display:flex;flex-direction:column;flex-grow:1;left:0;opacity:.9;position:absolute;right:0;text-align:center;top:0;z-index:5}.tox .tox-comment__loading-text{align-items:center;color:#222f3e;display:flex;flex-direction:column;position:relative}.tox .tox-comment__loading-text>div{padding-bottom:16px}.tox .tox-comment__overlaytext{bottom:0;flex-direction:column;font-size:14px;left:0;padding:1em;position:absolute;right:0;top:0;z-index:10}.tox .tox-comment__overlaytext p{background-color:#fff;box-shadow:0 0 8px 8px #fff;color:#222f3e;text-align:center}.tox .tox-comment__overlaytext div:nth-of-type(2){font-size:.8em}.tox .tox-comment__busy-spinner{align-items:center;background-color:#fff;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:20}.tox .tox-comment__scroll{display:flex;flex-direction:column;flex-shrink:1;overflow:auto}.tox .tox-conversations{margin:8px}.tox:not([dir=rtl]) .tox-comment__edit{margin-left:8px}.tox:not([dir=rtl]) .tox-comment__buttonspacing>:last-child,.tox:not([dir=rtl]) .tox-comment__edit>:last-child,.tox:not([dir=rtl]) .tox-comment__reply>:last-child{margin-left:8px}.tox[dir=rtl] .tox-comment__edit{margin-right:8px}.tox[dir=rtl] .tox-comment__buttonspacing>:last-child,.tox[dir=rtl] .tox-comment__edit>:last-child,.tox[dir=rtl] .tox-comment__reply>:last-child{margin-right:8px}.tox .tox-user{align-items:center;display:flex}.tox .tox-user__avatar svg{fill:rgba(34,47,62,.7)}.tox .tox-user__avatar img{border-radius:50%;height:36px;object-fit:cover;vertical-align:middle;width:36px}.tox .tox-user__name{color:#222f3e;font-size:14px;font-style:normal;font-weight:700;line-height:18px;text-transform:none}.tox:not([dir=rtl]) .tox-user__avatar img,.tox:not([dir=rtl]) .tox-user__avatar svg{margin-right:8px}.tox:not([dir=rtl]) .tox-user__avatar+.tox-user__name{margin-left:8px}.tox[dir=rtl] .tox-user__avatar img,.tox[dir=rtl] .tox-user__avatar svg{margin-left:8px}.tox[dir=rtl] .tox-user__avatar+.tox-user__name{margin-right:8px}.tox .tox-dialog-wrap{align-items:center;bottom:0;display:flex;justify-content:center;left:0;position:fixed;right:0;top:0;z-index:1100}.tox .tox-dialog-wrap__backdrop{background-color:rgba(255,255,255,.75);bottom:0;left:0;position:absolute;right:0;top:0;z-index:1}.tox .tox-dialog-wrap__backdrop--opaque{background-color:#fff}.tox .tox-dialog{background-color:#fff;border-color:#eee;border-radius:10px;border-style:solid;border-width:0;box-shadow:0 16px 16px -10px rgba(34,47,62,.15),0 0 40px 1px rgba(34,47,62,.15);display:flex;flex-direction:column;max-height:100%;max-width:480px;overflow:hidden;position:relative;width:95vw;z-index:2}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox .tox-dialog{align-self:flex-start;margin:8px auto;max-height:calc(100vh - 8px * 2);width:calc(100vw - 16px)}}.tox .tox-dialog-inline{z-index:1100}.tox .tox-dialog__header{align-items:center;background-color:#fff;border-bottom:none;color:#222f3e;display:flex;font-size:16px;justify-content:space-between;padding:8px 16px 0 16px;position:relative}.tox .tox-dialog__header .tox-button{z-index:1}.tox .tox-dialog__draghandle{cursor:grab;height:100%;left:0;position:absolute;top:0;width:100%}.tox .tox-dialog__draghandle:active{cursor:grabbing}.tox .tox-dialog__dismiss{margin-left:auto}.tox .tox-dialog__title{font-family:-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,Oxygen-Sans,Ubuntu,Cantarell,\"Helvetica Neue\",sans-serif;font-size:20px;font-style:normal;font-weight:400;line-height:1.3;margin:0;text-transform:none}.tox .tox-dialog__body{color:#222f3e;display:flex;flex:1;font-size:16px;font-style:normal;font-weight:400;line-height:1.3;min-width:0;text-align:left;text-transform:none}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox .tox-dialog__body{flex-direction:column}}.tox .tox-dialog__body-nav{align-items:flex-start;display:flex;flex-direction:column;flex-shrink:0;padding:16px 16px}@media only screen and (min-width:768px){.tox .tox-dialog__body-nav{max-width:11em}}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox .tox-dialog__body-nav{flex-direction:row;-webkit-overflow-scrolling:touch;overflow-x:auto;padding-bottom:0}}.tox .tox-dialog__body-nav-item{border-bottom:2px solid transparent;color:rgba(34,47,62,.7);display:inline-block;flex-shrink:0;font-size:14px;line-height:1.3;margin-bottom:8px;max-width:13em;text-decoration:none}.tox .tox-dialog__body-nav-item:focus{background-color:rgba(0,108,231,.1)}.tox .tox-dialog__body-nav-item--active{border-bottom:2px solid #006ce7;color:#006ce7}.tox .tox-dialog__body-content{box-sizing:border-box;display:flex;flex:1;flex-direction:column;max-height:min(650px,calc(100vh - 110px));overflow:auto;-webkit-overflow-scrolling:touch;padding:16px 16px}.tox .tox-dialog__body-content>*{margin-bottom:0;margin-top:16px}.tox .tox-dialog__body-content>:first-child{margin-top:0}.tox .tox-dialog__body-content>:last-child{margin-bottom:0}.tox .tox-dialog__body-content>:only-child{margin-bottom:0;margin-top:0}.tox .tox-dialog__body-content a{color:#006ce7;cursor:pointer;text-decoration:underline}.tox .tox-dialog__body-content a:focus,.tox .tox-dialog__body-content a:hover{color:#003c81;text-decoration:underline}.tox .tox-dialog__body-content a:focus-visible{border-radius:1px;outline:2px solid #006ce7;outline-offset:2px}.tox .tox-dialog__body-content a:active{color:#00244e;text-decoration:underline}.tox .tox-dialog__body-content svg{fill:#222f3e}.tox .tox-dialog__body-content strong{font-weight:700}.tox .tox-dialog__body-content ul{list-style-type:disc}.tox .tox-dialog__body-content dd,.tox .tox-dialog__body-content ol,.tox .tox-dialog__body-content ul{padding-inline-start:2.5rem}.tox .tox-dialog__body-content dl,.tox .tox-dialog__body-content ol,.tox .tox-dialog__body-content ul{margin-bottom:16px}.tox .tox-dialog__body-content dd,.tox .tox-dialog__body-content dl,.tox .tox-dialog__body-content dt,.tox .tox-dialog__body-content ol,.tox .tox-dialog__body-content ul{display:block;margin-inline-end:0;margin-inline-start:0}.tox .tox-dialog__body-content .tox-form__group h1{color:#222f3e;font-size:20px;font-style:normal;font-weight:700;letter-spacing:normal;margin-bottom:16px;margin-top:2rem;text-transform:none}.tox .tox-dialog__body-content .tox-form__group h2{color:#222f3e;font-size:16px;font-style:normal;font-weight:700;letter-spacing:normal;margin-bottom:16px;margin-top:2rem;text-transform:none}.tox .tox-dialog__body-content .tox-form__group p{margin-bottom:16px}.tox .tox-dialog__body-content .tox-form__group h1:first-child,.tox .tox-dialog__body-content .tox-form__group h2:first-child,.tox .tox-dialog__body-content .tox-form__group p:first-child{margin-top:0}.tox .tox-dialog__body-content .tox-form__group h1:last-child,.tox .tox-dialog__body-content .tox-form__group h2:last-child,.tox .tox-dialog__body-content .tox-form__group p:last-child{margin-bottom:0}.tox .tox-dialog__body-content .tox-form__group h1:only-child,.tox .tox-dialog__body-content .tox-form__group h2:only-child,.tox .tox-dialog__body-content .tox-form__group p:only-child{margin-bottom:0;margin-top:0}.tox .tox-dialog__body-content .tox-form__group .tox-label.tox-label--center{text-align:center}.tox .tox-dialog__body-content .tox-form__group .tox-label.tox-label--end{text-align:end}.tox .tox-dialog--width-lg{height:650px;max-width:1200px}.tox .tox-dialog--fullscreen{height:100%;max-width:100%}.tox .tox-dialog--fullscreen .tox-dialog__body-content{max-height:100%}.tox .tox-dialog--width-md{max-width:800px}.tox .tox-dialog--width-md .tox-dialog__body-content{overflow:auto}.tox .tox-dialog__body-content--centered{text-align:center}.tox .tox-dialog__footer{align-items:center;background-color:#fff;border-top:none;display:flex;justify-content:space-between;padding:8px 16px}.tox .tox-dialog__footer-end,.tox .tox-dialog__footer-start{display:flex}.tox .tox-dialog__busy-spinner{align-items:center;background-color:rgba(255,255,255,.75);bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:3}.tox .tox-dialog__table{border-collapse:collapse;width:100%}.tox .tox-dialog__table thead th{font-weight:700;padding-bottom:8px}.tox .tox-dialog__table thead th:first-child{padding-right:8px}.tox .tox-dialog__table tbody tr{border-bottom:1px solid #626262}.tox .tox-dialog__table tbody tr:last-child{border-bottom:none}.tox .tox-dialog__table td{padding-bottom:8px;padding-top:8px}.tox .tox-dialog__table td:first-child{padding-right:8px}.tox .tox-dialog__iframe{min-height:200px}.tox .tox-dialog__iframe.tox-dialog__iframe--opaque{background:#fff}.tox .tox-navobj-bordered{position:relative}.tox .tox-navobj-bordered::before{border:1px solid #eee;border-radius:6px;content:'';inset:0;opacity:1;pointer-events:none;position:absolute;z-index:1}.tox .tox-navobj-bordered-focus.tox-navobj-bordered::before{border-color:#006ce7;box-shadow:0 0 0 2px rgba(0,108,231,.25);outline:0}.tox .tox-dialog__popups{position:absolute;width:100%;z-index:1100}.tox .tox-dialog__body-iframe{display:flex;flex:1;flex-direction:column}.tox .tox-dialog__body-iframe .tox-navobj{display:flex;flex:1}.tox .tox-dialog__body-iframe .tox-navobj :nth-child(2){flex:1;height:100%}.tox .tox-dialog-dock-fadeout{opacity:0;visibility:hidden}.tox .tox-dialog-dock-fadein{opacity:1;visibility:visible}.tox .tox-dialog-dock-transition{transition:visibility 0s linear .3s,opacity .3s ease}.tox .tox-dialog-dock-transition.tox-dialog-dock-fadein{transition-delay:0s}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox:not([dir=rtl]) .tox-dialog__body-nav{margin-right:0}}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox:not([dir=rtl]) .tox-dialog__body-nav-item:not(:first-child){margin-left:8px}}.tox:not([dir=rtl]) .tox-dialog__footer .tox-dialog__footer-end>*,.tox:not([dir=rtl]) .tox-dialog__footer .tox-dialog__footer-start>*{margin-left:8px}.tox[dir=rtl] .tox-dialog__body{text-align:right}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox[dir=rtl] .tox-dialog__body-nav{margin-left:0}}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox[dir=rtl] .tox-dialog__body-nav-item:not(:first-child){margin-right:8px}}.tox[dir=rtl] .tox-dialog__footer .tox-dialog__footer-end>*,.tox[dir=rtl] .tox-dialog__footer .tox-dialog__footer-start>*{margin-right:8px}body.tox-dialog__disable-scroll{overflow:hidden}.tox .tox-dropzone-container{display:flex;flex:1}.tox .tox-dropzone{align-items:center;background:#fff;border:2px dashed #eee;box-sizing:border-box;display:flex;flex-direction:column;flex-grow:1;justify-content:center;min-height:100px;padding:10px}.tox .tox-dropzone p{color:rgba(34,47,62,.7);margin:0 0 16px 0}.tox .tox-edit-area{display:flex;flex:1;overflow:hidden;position:relative}.tox .tox-edit-area::before{border:2px solid #2d6adf;border-radius:4px;content:'';inset:0;opacity:0;pointer-events:none;position:absolute;transition:opacity .15s;z-index:1}.tox .tox-edit-area__iframe{background-color:#fff;border:0;box-sizing:border-box;flex:1;height:100%;position:absolute;width:100%}.tox.tox-edit-focus .tox-edit-area::before{opacity:1}.tox.tox-inline-edit-area{border:1px dotted #eee}.tox .tox-editor-container{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.tox .tox-editor-header{display:grid;grid-template-columns:1fr min-content;z-index:2}.tox:not(.tox-tinymce-inline) .tox-editor-header{background-color:#fff;border-bottom:none;box-shadow:0 2px 2px -2px rgba(34,47,62,.1),0 8px 8px -4px rgba(34,47,62,.07);padding:4px 0}.tox:not(.tox-tinymce-inline) .tox-editor-header:not(.tox-editor-dock-transition){transition:box-shadow .5s}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-bottom .tox-editor-header{border-top:1px solid #e3e3e3;box-shadow:none}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-sticky-on .tox-editor-header{background-color:#fff;box-shadow:0 2px 2px -2px rgba(34,47,62,.2),0 8px 8px -4px rgba(34,47,62,.15);padding:4px 0}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-sticky-on.tox-tinymce--toolbar-bottom .tox-editor-header{box-shadow:0 2px 2px -2px rgba(34,47,62,.2),0 8px 8px -4px rgba(34,47,62,.15)}.tox.tox:not(.tox-tinymce-inline) .tox-editor-header.tox-editor-header--empty{background:0 0;border:none;box-shadow:none;padding:0}.tox-editor-dock-fadeout{opacity:0;visibility:hidden}.tox-editor-dock-fadein{opacity:1;visibility:visible}.tox-editor-dock-transition{transition:visibility 0s linear .25s,opacity .25s ease}.tox-editor-dock-transition.tox-editor-dock-fadein{transition-delay:0s}.tox .tox-control-wrap{flex:1;position:relative}.tox .tox-control-wrap:not(.tox-control-wrap--status-invalid) .tox-control-wrap__status-icon-invalid,.tox .tox-control-wrap:not(.tox-control-wrap--status-unknown) .tox-control-wrap__status-icon-unknown,.tox .tox-control-wrap:not(.tox-control-wrap--status-valid) .tox-control-wrap__status-icon-valid{display:none}.tox .tox-control-wrap svg{display:block}.tox .tox-control-wrap__status-icon-wrap{position:absolute;top:50%;transform:translateY(-50%)}.tox .tox-control-wrap__status-icon-invalid svg{fill:#c00}.tox .tox-control-wrap__status-icon-unknown svg{fill:orange}.tox .tox-control-wrap__status-icon-valid svg{fill:green}.tox:not([dir=rtl]) .tox-control-wrap--status-invalid .tox-textfield,.tox:not([dir=rtl]) .tox-control-wrap--status-unknown .tox-textfield,.tox:not([dir=rtl]) .tox-control-wrap--status-valid .tox-textfield{padding-right:32px}.tox:not([dir=rtl]) .tox-control-wrap__status-icon-wrap{right:4px}.tox[dir=rtl] .tox-control-wrap--status-invalid .tox-textfield,.tox[dir=rtl] .tox-control-wrap--status-unknown .tox-textfield,.tox[dir=rtl] .tox-control-wrap--status-valid .tox-textfield{padding-left:32px}.tox[dir=rtl] .tox-control-wrap__status-icon-wrap{left:4px}.tox .tox-autocompleter{max-width:25em}.tox .tox-autocompleter .tox-menu{box-sizing:border-box;max-width:25em}.tox .tox-autocompleter .tox-autocompleter-highlight{font-weight:700}.tox .tox-color-input{display:flex;position:relative;z-index:1}.tox .tox-color-input .tox-textfield{z-index:-1}.tox .tox-color-input span{border-color:rgba(34,47,62,.2);border-radius:6px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;height:24px;position:absolute;top:6px;width:24px}.tox .tox-color-input span:focus:not([aria-disabled=true]),.tox .tox-color-input span:hover:not([aria-disabled=true]){border-color:#006ce7;cursor:pointer}.tox .tox-color-input span::before{background-image:linear-gradient(45deg,rgba(0,0,0,.25) 25%,transparent 25%),linear-gradient(-45deg,rgba(0,0,0,.25) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,rgba(0,0,0,.25) 75%),linear-gradient(-45deg,transparent 75%,rgba(0,0,0,.25) 75%);background-position:0 0,0 6px,6px -6px,-6px 0;background-size:12px 12px;border:1px solid #fff;border-radius:6px;box-sizing:border-box;content:'';height:24px;left:-1px;position:absolute;top:-1px;width:24px;z-index:-1}.tox .tox-color-input span[aria-disabled=true]{cursor:not-allowed}.tox:not([dir=rtl]) .tox-color-input .tox-textfield{padding-left:36px}.tox:not([dir=rtl]) .tox-color-input span{left:6px}.tox[dir=rtl] .tox-color-input .tox-textfield{padding-right:36px}.tox[dir=rtl] .tox-color-input span{right:6px}.tox .tox-label,.tox .tox-toolbar-label{color:rgba(34,47,62,.7);display:block;font-size:14px;font-style:normal;font-weight:400;line-height:1.3;padding:0 8px 0 0;text-transform:none;white-space:nowrap}.tox .tox-toolbar-label{padding:0 8px}.tox[dir=rtl] .tox-label{padding:0 0 0 8px}.tox .tox-form{display:flex;flex:1;flex-direction:column}.tox .tox-form__group{box-sizing:border-box;margin-bottom:4px}.tox .tox-form-group--maximize{flex:1}.tox .tox-form__group--error{color:#c00}.tox .tox-form__group--collection{display:flex}.tox .tox-form__grid{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between}.tox .tox-form__grid--2col>.tox-form__group{width:calc(50% - (8px / 2))}.tox .tox-form__grid--3col>.tox-form__group{width:calc(100% / 3 - (8px / 2))}.tox .tox-form__grid--4col>.tox-form__group{width:calc(25% - (8px / 2))}.tox .tox-form__controls-h-stack{align-items:center;display:flex}.tox .tox-form__group--inline{align-items:center;display:flex}.tox .tox-form__group--stretched{display:flex;flex:1;flex-direction:column}.tox .tox-form__group--stretched .tox-textarea{flex:1}.tox .tox-form__group--stretched .tox-navobj{display:flex;flex:1}.tox .tox-form__group--stretched .tox-navobj :nth-child(2){flex:1;height:100%}.tox:not([dir=rtl]) .tox-form__controls-h-stack>:not(:first-child){margin-left:4px}.tox[dir=rtl] .tox-form__controls-h-stack>:not(:first-child){margin-right:4px}.tox .tox-lock.tox-locked .tox-lock-icon__unlock,.tox .tox-lock:not(.tox-locked) .tox-lock-icon__lock{display:none}.tox .tox-listboxfield .tox-listbox--select,.tox .tox-textarea,.tox .tox-textarea-wrap .tox-textarea:focus,.tox .tox-textfield,.tox .tox-toolbar-textfield{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#eee;border-radius:6px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#222f3e;font-family:-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,Oxygen-Sans,Ubuntu,Cantarell,\"Helvetica Neue\",sans-serif;font-size:16px;line-height:24px;margin:0;min-height:34px;outline:0;padding:5px 5.5px;resize:none;width:100%}.tox .tox-textarea[disabled],.tox .tox-textfield[disabled]{background-color:#f2f2f2;color:rgba(34,47,62,.85);cursor:not-allowed}.tox .tox-custom-editor:focus-within,.tox .tox-listboxfield .tox-listbox--select:focus,.tox .tox-textarea-wrap:focus-within,.tox .tox-textarea:focus,.tox .tox-textfield:focus{background-color:#fff;border-color:#006ce7;box-shadow:0 0 0 2px rgba(0,108,231,.25);outline:0}.tox .tox-toolbar-textfield{border-width:0;margin-bottom:3px;margin-top:2px;max-width:250px}.tox .tox-naked-btn{background-color:transparent;border:0;border-color:transparent;box-shadow:unset;color:#006ce7;cursor:pointer;display:block;margin:0;padding:0}.tox .tox-naked-btn svg{display:block;fill:#222f3e}.tox:not([dir=rtl]) .tox-toolbar-textfield+*{margin-left:4px}.tox[dir=rtl] .tox-toolbar-textfield+*{margin-right:4px}.tox .tox-listboxfield{cursor:pointer;position:relative}.tox .tox-listboxfield .tox-listbox--select[disabled]{background-color:#f2f2f2;color:rgba(34,47,62,.85);cursor:not-allowed}.tox .tox-listbox__select-label{cursor:default;flex:1;margin:0 4px}.tox .tox-listbox__select-chevron{align-items:center;display:flex;justify-content:center;width:16px}.tox .tox-listbox__select-chevron svg{fill:#222f3e}.tox .tox-listboxfield .tox-listbox--select{align-items:center;display:flex}.tox:not([dir=rtl]) .tox-listboxfield svg{right:8px}.tox[dir=rtl] .tox-listboxfield svg{left:8px}.tox .tox-selectfield{cursor:pointer;position:relative}.tox .tox-selectfield select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#eee;border-radius:6px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#222f3e;font-family:-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,Oxygen-Sans,Ubuntu,Cantarell,\"Helvetica Neue\",sans-serif;font-size:16px;line-height:24px;margin:0;min-height:34px;outline:0;padding:5px 5.5px;resize:none;width:100%}.tox .tox-selectfield select[disabled]{background-color:#f2f2f2;color:rgba(34,47,62,.85);cursor:not-allowed}.tox .tox-selectfield select::-ms-expand{display:none}.tox .tox-selectfield select:focus{background-color:#fff;border-color:#006ce7;box-shadow:0 0 0 2px rgba(0,108,231,.25);outline:0}.tox .tox-selectfield svg{pointer-events:none;position:absolute;top:50%;transform:translateY(-50%)}.tox:not([dir=rtl]) .tox-selectfield select[size=\"0\"],.tox:not([dir=rtl]) .tox-selectfield select[size=\"1\"]{padding-right:24px}.tox:not([dir=rtl]) .tox-selectfield svg{right:8px}.tox[dir=rtl] .tox-selectfield select[size=\"0\"],.tox[dir=rtl] .tox-selectfield select[size=\"1\"]{padding-left:24px}.tox[dir=rtl] .tox-selectfield svg{left:8px}.tox .tox-textarea-wrap{border-color:#eee;border-radius:6px;border-style:solid;border-width:1px;display:flex;flex:1;overflow:hidden}.tox .tox-textarea{-webkit-appearance:textarea;-moz-appearance:textarea;appearance:textarea;white-space:pre-wrap}.tox .tox-textarea-wrap .tox-textarea{border:none}.tox .tox-textarea-wrap .tox-textarea:focus{border:none}.tox-fullscreen{border:0;height:100%;margin:0;overflow:hidden;overscroll-behavior:none;padding:0;touch-action:pinch-zoom;width:100%}.tox.tox-tinymce.tox-fullscreen .tox-statusbar__resize-handle{display:none}.tox-shadowhost.tox-fullscreen,.tox.tox-tinymce.tox-fullscreen{left:0;position:fixed;top:0;z-index:1200}.tox.tox-tinymce.tox-fullscreen{background-color:transparent}.tox-fullscreen .tox.tox-tinymce-aux,.tox-fullscreen~.tox.tox-tinymce-aux{z-index:1201}.tox .tox-help__more-link{list-style:none;margin-top:1em}.tox .tox-imagepreview{background-color:#666;height:380px;overflow:hidden;position:relative;width:100%}.tox .tox-imagepreview.tox-imagepreview__loaded{overflow:auto}.tox .tox-imagepreview__container{display:flex;left:100vw;position:absolute;top:100vw}.tox .tox-imagepreview__image{background:url(data:image/gif;base64,R0lGODdhDAAMAIABAMzMzP///ywAAAAADAAMAAACFoQfqYeabNyDMkBQb81Uat85nxguUAEAOw==)}.tox .tox-image-tools .tox-spacer{flex:1}.tox .tox-image-tools .tox-bar{align-items:center;display:flex;height:60px;justify-content:center}.tox .tox-image-tools .tox-imagepreview,.tox .tox-image-tools .tox-imagepreview+.tox-bar{margin-top:8px}.tox .tox-image-tools .tox-croprect-block{background:#000;opacity:.5;position:absolute;zoom:1}.tox .tox-image-tools .tox-croprect-handle{border:2px solid #fff;height:20px;left:0;position:absolute;top:0;width:20px}.tox .tox-image-tools .tox-croprect-handle-move{border:0;cursor:move;position:absolute}.tox .tox-image-tools .tox-croprect-handle-nw{border-width:2px 0 0 2px;cursor:nw-resize;left:100px;margin:-2px 0 0 -2px;top:100px}.tox .tox-image-tools .tox-croprect-handle-ne{border-width:2px 2px 0 0;cursor:ne-resize;left:200px;margin:-2px 0 0 -20px;top:100px}.tox .tox-image-tools .tox-croprect-handle-sw{border-width:0 0 2px 2px;cursor:sw-resize;left:100px;margin:-20px 2px 0 -2px;top:200px}.tox .tox-image-tools .tox-croprect-handle-se{border-width:0 2px 2px 0;cursor:se-resize;left:200px;margin:-20px 0 0 -20px;top:200px}.tox .tox-insert-table-picker{display:flex;flex-wrap:wrap;width:170px}.tox .tox-insert-table-picker>div{border-color:#eee;border-style:solid;border-width:0 1px 1px 0;box-sizing:border-box;height:17px;width:17px}.tox .tox-collection--list .tox-collection__group .tox-insert-table-picker{margin:-4px -4px}.tox .tox-insert-table-picker .tox-insert-table-picker__selected{background-color:rgba(0,108,231,.5);border-color:rgba(0,108,231,.5)}.tox .tox-insert-table-picker__label{color:rgba(34,47,62,.7);display:block;font-size:14px;padding:4px;text-align:center;width:100%}.tox:not([dir=rtl]) .tox-insert-table-picker>div:nth-child(10n){border-right:0}.tox[dir=rtl] .tox-insert-table-picker>div:nth-child(10n+1){border-right:0}.tox .tox-menu{background-color:#fff;border:1px solid transparent;border-radius:6px;box-shadow:0 0 2px 0 rgba(34,47,62,.2),0 4px 8px 0 rgba(34,47,62,.15);display:inline-block;overflow:hidden;vertical-align:top;z-index:1150}.tox .tox-menu.tox-collection.tox-collection--list{padding:0 4px}.tox .tox-menu.tox-collection.tox-collection--toolbar{padding:8px}.tox .tox-menu.tox-collection.tox-collection--grid{padding:8px}@media only screen and (min-width:768px){.tox .tox-menu .tox-collection__item-label{overflow-wrap:break-word;word-break:normal}.tox .tox-dialog__popups .tox-menu .tox-collection__item-label{word-break:break-all}}.tox .tox-menu__label blockquote,.tox .tox-menu__label code,.tox .tox-menu__label h1,.tox .tox-menu__label h2,.tox .tox-menu__label h3,.tox .tox-menu__label h4,.tox .tox-menu__label h5,.tox .tox-menu__label h6,.tox .tox-menu__label p{margin:0}.tox .tox-menubar{background:repeating-linear-gradient(transparent 0 1px,transparent 1px 39px) center top 39px/100% calc(100% - 39px) no-repeat;background-color:#fff;display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:wrap;grid-column:1/-1;grid-row:1;padding:0 11px 0 12px}.tox .tox-promotion+.tox-menubar{grid-column:1}.tox .tox-promotion{background:repeating-linear-gradient(transparent 0 1px,transparent 1px 39px) center top 39px/100% calc(100% - 39px) no-repeat;background-color:#fff;grid-column:2;grid-row:1;padding-inline-end:8px;padding-inline-start:4px;padding-top:5px}.tox .tox-promotion-link{align-items:unsafe center;background-color:#e8f1f8;border-radius:5px;color:#086be6;cursor:pointer;display:flex;font-size:14px;height:26.6px;padding:4px 8px;white-space:nowrap}.tox .tox-promotion-link:hover{background-color:#b4d7ff}.tox .tox-promotion-link:focus{background-color:#d9edf7}.tox .tox-mbtn{align-items:center;background:0 0;border:0;border-radius:3px;box-shadow:none;color:#222f3e;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:400;height:28px;justify-content:center;margin:5px 1px 6px 0;outline:0;overflow:hidden;padding:0 4px;text-transform:none;width:auto}.tox .tox-mbtn[disabled]{background-color:transparent;border:0;box-shadow:none;color:rgba(34,47,62,.5);cursor:not-allowed}.tox .tox-mbtn:focus:not(:disabled){background:#cce2fa;border:0;box-shadow:none;color:#222f3e}.tox .tox-mbtn--active{background:#a6ccf7;border:0;box-shadow:none;color:#222f3e}.tox .tox-mbtn:hover:not(:disabled):not(.tox-mbtn--active){background:#cce2fa;border:0;box-shadow:none;color:#222f3e}.tox .tox-mbtn__select-label{cursor:default;font-weight:400;margin:0 4px}.tox .tox-mbtn[disabled] .tox-mbtn__select-label{cursor:not-allowed}.tox .tox-mbtn__select-chevron{align-items:center;display:flex;justify-content:center;width:16px;display:none}.tox .tox-notification{border-radius:6px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;display:grid;font-size:14px;font-weight:400;grid-template-columns:minmax(40px,1fr) auto minmax(40px,1fr);margin-top:4px;opacity:0;padding:4px;transition:transform .1s ease-in,opacity 150ms ease-in}.tox .tox-notification p{font-size:14px;font-weight:400}.tox .tox-notification a{cursor:pointer;text-decoration:underline}.tox .tox-notification--in{opacity:1}.tox .tox-notification--success{background-color:#e4eeda;border-color:#d7e6c8;color:#222f3e}.tox .tox-notification--success p{color:#222f3e}.tox .tox-notification--success a{color:#517342}.tox .tox-notification--success svg{fill:#222f3e}.tox .tox-notification--error{background-color:#f5cccc;border-color:#f0b3b3;color:#222f3e}.tox .tox-notification--error p{color:#222f3e}.tox .tox-notification--error a{color:#77181f}.tox .tox-notification--error svg{fill:#222f3e}.tox .tox-notification--warn,.tox .tox-notification--warning{background-color:#fff5cc;border-color:#fff0b3;color:#222f3e}.tox .tox-notification--warn p,.tox .tox-notification--warning p{color:#222f3e}.tox .tox-notification--warn a,.tox .tox-notification--warning a{color:#7a6e25}.tox .tox-notification--warn svg,.tox .tox-notification--warning svg{fill:#222f3e}.tox .tox-notification--info{background-color:#d6e7fb;border-color:#c1dbf9;color:#222f3e}.tox .tox-notification--info p{color:#222f3e}.tox .tox-notification--info a{color:#2a64a6}.tox .tox-notification--info svg{fill:#222f3e}.tox .tox-notification__body{align-self:center;color:#222f3e;font-size:14px;grid-column-end:3;grid-column-start:2;grid-row-end:2;grid-row-start:1;text-align:center;white-space:normal;word-break:break-all;word-break:break-word}.tox .tox-notification__body>*{margin:0}.tox .tox-notification__body>*+*{margin-top:1rem}.tox .tox-notification__icon{align-self:center;grid-column-end:2;grid-column-start:1;grid-row-end:2;grid-row-start:1;justify-self:end}.tox .tox-notification__icon svg{display:block}.tox .tox-notification__dismiss{align-self:start;grid-column-end:4;grid-column-start:3;grid-row-end:2;grid-row-start:1;justify-self:end}.tox .tox-notification .tox-progress-bar{grid-column-end:4;grid-column-start:1;grid-row-end:3;grid-row-start:2;justify-self:center}.tox .tox-pop{display:inline-block;position:relative}.tox .tox-pop--resizing{transition:width .1s ease}.tox .tox-pop--resizing .tox-toolbar,.tox .tox-pop--resizing .tox-toolbar__group{flex-wrap:nowrap}.tox .tox-pop--transition{transition:.15s ease;transition-property:left,right,top,bottom}.tox .tox-pop--transition::after,.tox .tox-pop--transition::before{transition:all .15s,visibility 0s,opacity 75ms ease 75ms}.tox .tox-pop__dialog{background-color:#fff;border:1px solid #eee;border-radius:6px;box-shadow:0 0 2px 0 rgba(34,47,62,.2),0 4px 8px 0 rgba(34,47,62,.15);min-width:0;overflow:hidden}.tox .tox-pop__dialog>:not(.tox-toolbar){margin:4px 4px 4px 8px}.tox .tox-pop__dialog .tox-toolbar{background-color:transparent;margin-bottom:-1px}.tox .tox-pop::after,.tox .tox-pop::before{border-style:solid;content:'';display:block;height:0;opacity:1;position:absolute;width:0}.tox .tox-pop.tox-pop--inset::after,.tox .tox-pop.tox-pop--inset::before{opacity:0;transition:all 0s .15s,visibility 0s,opacity 75ms ease}.tox .tox-pop.tox-pop--bottom::after,.tox .tox-pop.tox-pop--bottom::before{left:50%;top:100%}.tox .tox-pop.tox-pop--bottom::after{border-color:#fff transparent transparent transparent;border-width:8px;margin-left:-8px;margin-top:-1px}.tox .tox-pop.tox-pop--bottom::before{border-color:#eee transparent transparent transparent;border-width:9px;margin-left:-9px}.tox .tox-pop.tox-pop--top::after,.tox .tox-pop.tox-pop--top::before{left:50%;top:0;transform:translateY(-100%)}.tox .tox-pop.tox-pop--top::after{border-color:transparent transparent #fff transparent;border-width:8px;margin-left:-8px;margin-top:1px}.tox .tox-pop.tox-pop--top::before{border-color:transparent transparent #eee transparent;border-width:9px;margin-left:-9px}.tox .tox-pop.tox-pop--left::after,.tox .tox-pop.tox-pop--left::before{left:0;top:calc(50% - 1px);transform:translateY(-50%)}.tox .tox-pop.tox-pop--left::after{border-color:transparent #fff transparent transparent;border-width:8px;margin-left:-15px}.tox .tox-pop.tox-pop--left::before{border-color:transparent #eee transparent transparent;border-width:10px;margin-left:-19px}.tox .tox-pop.tox-pop--right::after,.tox .tox-pop.tox-pop--right::before{left:100%;top:calc(50% + 1px);transform:translateY(-50%)}.tox .tox-pop.tox-pop--right::after{border-color:transparent transparent transparent #fff;border-width:8px;margin-left:-1px}.tox .tox-pop.tox-pop--right::before{border-color:transparent transparent transparent #eee;border-width:10px;margin-left:-1px}.tox .tox-pop.tox-pop--align-left::after,.tox .tox-pop.tox-pop--align-left::before{left:20px}.tox .tox-pop.tox-pop--align-right::after,.tox .tox-pop.tox-pop--align-right::before{left:calc(100% - 20px)}.tox .tox-sidebar-wrap{display:flex;flex-direction:row;flex-grow:1;min-height:0}.tox .tox-sidebar{background-color:#fff;display:flex;flex-direction:row;justify-content:flex-end}.tox .tox-sidebar__slider{display:flex;overflow:hidden}.tox .tox-sidebar__pane-container{display:flex}.tox .tox-sidebar__pane{display:flex}.tox .tox-sidebar--sliding-closed{opacity:0}.tox .tox-sidebar--sliding-open{opacity:1}.tox .tox-sidebar--sliding-growing,.tox .tox-sidebar--sliding-shrinking{transition:width .5s ease,opacity .5s ease}.tox .tox-selector{background-color:#4099ff;border-color:#4099ff;border-style:solid;border-width:1px;box-sizing:border-box;display:inline-block;height:10px;position:absolute;width:10px}.tox.tox-platform-touch .tox-selector{height:12px;width:12px}.tox .tox-slider{align-items:center;display:flex;flex:1;height:24px;justify-content:center;position:relative}.tox .tox-slider__rail{background-color:transparent;border:1px solid #eee;border-radius:6px;height:10px;min-width:120px;width:100%}.tox .tox-slider__handle{background-color:#006ce7;border:2px solid #0054b4;border-radius:6px;box-shadow:none;height:24px;left:50%;position:absolute;top:50%;transform:translateX(-50%) translateY(-50%);width:14px}.tox .tox-form__controls-h-stack>.tox-slider:not(:first-of-type){margin-inline-start:8px}.tox .tox-form__controls-h-stack>.tox-form__group+.tox-slider{margin-inline-start:32px}.tox .tox-form__controls-h-stack>.tox-slider+.tox-form__group{margin-inline-start:32px}.tox .tox-source-code{overflow:auto}.tox .tox-spinner{display:flex}.tox .tox-spinner>div{animation:tam-bouncing-dots 1.5s ease-in-out 0s infinite both;background-color:rgba(34,47,62,.7);border-radius:100%;height:8px;width:8px}.tox .tox-spinner>div:nth-child(1){animation-delay:-.32s}.tox .tox-spinner>div:nth-child(2){animation-delay:-.16s}@keyframes tam-bouncing-dots{0%,100%,80%{transform:scale(0)}40%{transform:scale(1)}}.tox:not([dir=rtl]) .tox-spinner>div:not(:first-child){margin-left:4px}.tox[dir=rtl] .tox-spinner>div:not(:first-child){margin-right:4px}.tox .tox-statusbar{align-items:center;background-color:#fff;border-top:1px solid #e3e3e3;color:rgba(34,47,62,.7);display:flex;flex:0 0 auto;font-size:14px;font-weight:400;height:25px;overflow:hidden;padding:0 8px;position:relative;text-transform:none}.tox .tox-statusbar__path{display:flex;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tox .tox-statusbar__right-container{display:flex;justify-content:flex-end;white-space:nowrap}.tox .tox-statusbar__help-text{text-align:center}.tox .tox-statusbar__text-container{display:flex;flex:1 1 auto;justify-content:space-between;overflow:hidden}@media only screen and (min-width:768px){.tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols>.tox-statusbar__help-text,.tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols>.tox-statusbar__path,.tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols>.tox-statusbar__right-container{flex:0 0 calc(100% / 3)}}.tox .tox-statusbar__text-container.tox-statusbar__text-container--flex-end{justify-content:flex-end}.tox .tox-statusbar__text-container.tox-statusbar__text-container--flex-start{justify-content:flex-start}.tox .tox-statusbar__text-container.tox-statusbar__text-container--space-around{justify-content:space-around}.tox .tox-statusbar__path>*{display:inline;white-space:nowrap}.tox .tox-statusbar__wordcount{flex:0 0 auto;margin-left:1ch}@media only screen and (max-width:767px){.tox .tox-statusbar__text-container .tox-statusbar__help-text{display:none}.tox .tox-statusbar__text-container .tox-statusbar__help-text:only-child{display:block}}.tox .tox-statusbar a,.tox .tox-statusbar__path-item,.tox .tox-statusbar__wordcount{color:rgba(34,47,62,.7);text-decoration:none}.tox .tox-statusbar a:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar a:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:hover:not(:disabled):not([aria-disabled=true]){color:#222f3e;cursor:pointer}.tox .tox-statusbar__branding svg{fill:rgba(34,47,62,.8);height:1.14em;vertical-align:-.28em;width:3.6em}.tox .tox-statusbar__branding a:focus:not(:disabled):not([aria-disabled=true]) svg,.tox .tox-statusbar__branding a:hover:not(:disabled):not([aria-disabled=true]) svg{fill:#222f3e}.tox .tox-statusbar__resize-handle{align-items:flex-end;align-self:stretch;cursor:nwse-resize;display:flex;flex:0 0 auto;justify-content:flex-end;margin-left:auto;margin-right:-8px;padding-bottom:3px;padding-left:1ch;padding-right:3px}.tox .tox-statusbar__resize-handle svg{display:block;fill:rgba(34,47,62,.5)}.tox .tox-statusbar__resize-handle:focus svg{background-color:#dee0e2;border-radius:1px 1px 5px 1px;box-shadow:0 0 0 2px #dee0e2}.tox:not([dir=rtl]) .tox-statusbar__path>*{margin-right:4px}.tox:not([dir=rtl]) .tox-statusbar__branding{margin-left:2ch}.tox[dir=rtl] .tox-statusbar{flex-direction:row-reverse}.tox[dir=rtl] .tox-statusbar__path>*{margin-left:4px}.tox .tox-throbber{z-index:1299}.tox .tox-throbber__busy-spinner{align-items:center;background-color:rgba(255,255,255,.6);bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}.tox .tox-tbtn{align-items:center;background:0 0;border:0;border-radius:3px;box-shadow:none;color:#222f3e;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:400;height:28px;justify-content:center;margin:6px 1px 5px 0;outline:0;overflow:hidden;padding:0;text-transform:none;width:34px}.tox .tox-tbtn svg{display:block;fill:#222f3e}.tox .tox-tbtn.tox-tbtn-more{padding-left:5px;padding-right:5px;width:inherit}.tox .tox-tbtn:focus{background:#cce2fa;border:0;box-shadow:none}.tox .tox-tbtn:hover{background:#cce2fa;border:0;box-shadow:none;color:#222f3e}.tox .tox-tbtn:hover svg{fill:#222f3e}.tox .tox-tbtn:active{background:#a6ccf7;border:0;box-shadow:none;color:#222f3e}.tox .tox-tbtn:active svg{fill:#222f3e}.tox .tox-tbtn--disabled .tox-tbtn--enabled svg{fill:rgba(34,47,62,.5)}.tox .tox-tbtn--disabled,.tox .tox-tbtn--disabled:hover,.tox .tox-tbtn:disabled,.tox .tox-tbtn:disabled:hover{background:0 0;border:0;box-shadow:none;color:rgba(34,47,62,.5);cursor:not-allowed}.tox .tox-tbtn--disabled svg,.tox .tox-tbtn--disabled:hover svg,.tox .tox-tbtn:disabled svg,.tox .tox-tbtn:disabled:hover svg{fill:rgba(34,47,62,.5)}.tox .tox-tbtn--enabled,.tox .tox-tbtn--enabled:hover{background:#a6ccf7;border:0;box-shadow:none;color:#222f3e}.tox .tox-tbtn--enabled:hover>*,.tox .tox-tbtn--enabled>*{transform:none}.tox .tox-tbtn--enabled svg,.tox .tox-tbtn--enabled:hover svg{fill:#222f3e}.tox .tox-tbtn--enabled.tox-tbtn--disabled svg,.tox .tox-tbtn--enabled:hover.tox-tbtn--disabled svg{fill:rgba(34,47,62,.5)}.tox .tox-tbtn:focus:not(.tox-tbtn--disabled){color:#222f3e}.tox .tox-tbtn:focus:not(.tox-tbtn--disabled) svg{fill:#222f3e}.tox .tox-tbtn:active>*{transform:none}.tox .tox-tbtn--md{height:42px;width:51px}.tox .tox-tbtn--lg{flex-direction:column;height:56px;width:68px}.tox .tox-tbtn--return{align-self:stretch;height:unset;width:16px}.tox .tox-tbtn--labeled{padding:0 4px;width:unset}.tox .tox-tbtn__vlabel{display:block;font-size:10px;font-weight:400;letter-spacing:-.025em;margin-bottom:4px;white-space:nowrap}.tox .tox-number-input{border-radius:3px;display:flex;margin:6px 1px 5px 0;padding:0 4px;width:auto}.tox .tox-number-input .tox-input-wrapper{background:#f7f7f7;display:flex;pointer-events:none;text-align:center}.tox .tox-number-input .tox-input-wrapper:focus{background:#cce2fa}.tox .tox-number-input input{border-radius:3px;color:#222f3e;font-size:14px;margin:2px 0;pointer-events:all;width:60px}.tox .tox-number-input input:hover{background:#cce2fa;color:#222f3e}.tox .tox-number-input input:focus{background:#fff;color:#222f3e}.tox .tox-number-input input:disabled{background:0 0;border:0;box-shadow:none;color:rgba(34,47,62,.5);cursor:not-allowed}.tox .tox-number-input button{background:#f7f7f7;color:#222f3e;height:28px;text-align:center;width:24px}.tox .tox-number-input button svg{display:block;fill:#222f3e;margin:0 auto;transform:scale(.67)}.tox .tox-number-input button:focus{background:#cce2fa}.tox .tox-number-input button:hover{background:#cce2fa;border:0;box-shadow:none;color:#222f3e}.tox .tox-number-input button:hover svg{fill:#222f3e}.tox .tox-number-input button:active{background:#a6ccf7;border:0;box-shadow:none;color:#222f3e}.tox .tox-number-input button:active svg{fill:#222f3e}.tox .tox-number-input button:disabled{background:0 0;border:0;box-shadow:none;color:rgba(34,47,62,.5);cursor:not-allowed}.tox .tox-number-input button:disabled svg{fill:rgba(34,47,62,.5)}.tox .tox-number-input button.minus{border-radius:3px 0 0 3px}.tox .tox-number-input button.plus{border-radius:0 3px 3px 0}.tox .tox-number-input:focus:not(:active)>.tox-input-wrapper,.tox .tox-number-input:focus:not(:active)>button{background:#cce2fa}.tox .tox-tbtn--select{margin:6px 1px 5px 0;padding:0 4px;width:auto}.tox .tox-tbtn__select-label{cursor:default;font-weight:400;height:initial;margin:0 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tox .tox-tbtn__select-chevron{align-items:center;display:flex;justify-content:center;width:16px}.tox .tox-tbtn__select-chevron svg{fill:rgba(34,47,62,.5)}.tox .tox-tbtn--bespoke{background:#f7f7f7}.tox .tox-tbtn--bespoke+.tox-tbtn--bespoke{margin-inline-start:4px}.tox .tox-tbtn--bespoke .tox-tbtn__select-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:7em}.tox .tox-tbtn--disabled .tox-tbtn__select-label,.tox .tox-tbtn--select:disabled .tox-tbtn__select-label{cursor:not-allowed}.tox .tox-split-button{border:0;border-radius:3px;box-sizing:border-box;display:flex;margin:6px 1px 5px 0;overflow:hidden}.tox .tox-split-button:hover{box-shadow:0 0 0 1px #cce2fa inset}.tox .tox-split-button:focus{background:#cce2fa;box-shadow:none;color:#222f3e}.tox .tox-split-button>*{border-radius:0}.tox .tox-split-button__chevron{width:16px}.tox .tox-split-button__chevron svg{fill:rgba(34,47,62,.5)}.tox .tox-split-button .tox-tbtn{margin:0}.tox .tox-split-button.tox-tbtn--disabled .tox-tbtn:focus,.tox .tox-split-button.tox-tbtn--disabled .tox-tbtn:hover,.tox .tox-split-button.tox-tbtn--disabled:focus,.tox .tox-split-button.tox-tbtn--disabled:hover{background:0 0;box-shadow:none;color:rgba(34,47,62,.5)}.tox.tox-platform-touch .tox-split-button .tox-tbtn--select{padding:0 0}.tox.tox-platform-touch .tox-split-button .tox-tbtn:not(.tox-tbtn--select):first-child{width:30px}.tox.tox-platform-touch .tox-split-button__chevron{width:20px}.tox .tox-split-button.tox-tbtn--disabled svg #tox-icon-highlight-bg-color__color,.tox .tox-split-button.tox-tbtn--disabled svg #tox-icon-text-color__color{opacity:.6}.tox .tox-toolbar-overlord{background-color:#fff}.tox .tox-toolbar,.tox .tox-toolbar__overflow,.tox .tox-toolbar__primary{background-attachment:local;background-color:#fff;background-image:repeating-linear-gradient(#e3e3e3 0 1px,transparent 1px 39px);background-position:center top 40px;background-repeat:no-repeat;background-size:calc(100% - 11px * 2) calc(100% - 41px);display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:wrap;padding:0 0;transform:perspective(1px)}.tox .tox-toolbar-overlord>.tox-toolbar,.tox .tox-toolbar-overlord>.tox-toolbar__overflow,.tox .tox-toolbar-overlord>.tox-toolbar__primary{background-position:center top 0;background-size:calc(100% - 11px * 2) calc(100% - 0px)}.tox .tox-toolbar__overflow.tox-toolbar__overflow--closed{height:0;opacity:0;padding-bottom:0;padding-top:0;visibility:hidden}.tox .tox-toolbar__overflow--growing{transition:height .3s ease,opacity .2s linear .1s}.tox .tox-toolbar__overflow--shrinking{transition:opacity .3s ease,height .2s linear .1s,visibility 0s linear .3s}.tox .tox-anchorbar,.tox .tox-toolbar-overlord{grid-column:1/-1}.tox .tox-menubar+.tox-toolbar,.tox .tox-menubar+.tox-toolbar-overlord{border-top:1px solid transparent;margin-top:-1px;padding-bottom:1px;padding-top:1px}.tox .tox-toolbar--scrolling{flex-wrap:nowrap;overflow-x:auto}.tox .tox-pop .tox-toolbar{border-width:0}.tox .tox-toolbar--no-divider{background-image:none}.tox .tox-toolbar-overlord .tox-toolbar:not(.tox-toolbar--scrolling):first-child,.tox .tox-toolbar-overlord .tox-toolbar__primary{background-position:center top 39px}.tox .tox-editor-header>.tox-toolbar--scrolling,.tox .tox-toolbar-overlord .tox-toolbar--scrolling:first-child{background-image:none}.tox.tox-tinymce-aux .tox-toolbar__overflow{background-color:#fff;background-position:center top 43px;background-size:calc(100% - 8px * 2) calc(100% - 51px);border:none;border-radius:6px;box-shadow:0 0 2px 0 rgba(34,47,62,.2),0 4px 8px 0 rgba(34,47,62,.15);overscroll-behavior:none;padding:4px 0}.tox-pop .tox-pop__dialog .tox-toolbar{background-position:center top 43px;background-size:calc(100% - 11px * 2) calc(100% - 51px);padding:4px 0}.tox .tox-toolbar__group{align-items:center;display:flex;flex-wrap:wrap;margin:0 0;padding:0 11px 0 12px}.tox .tox-toolbar__group--pull-right{margin-left:auto}.tox .tox-toolbar--scrolling .tox-toolbar__group{flex-shrink:0;flex-wrap:nowrap}.tox:not([dir=rtl]) .tox-toolbar__group:not(:last-of-type){border-right:1px solid transparent}.tox[dir=rtl] .tox-toolbar__group:not(:last-of-type){border-left:1px solid transparent}.tox .tox-tooltip{display:inline-block;padding:8px;position:relative}.tox .tox-tooltip__body{background-color:#222f3e;border-radius:6px;box-shadow:0 2px 4px rgba(34,47,62,.3);color:rgba(255,255,255,.75);font-size:14px;font-style:normal;font-weight:400;padding:4px 8px;text-transform:none}.tox .tox-tooltip__arrow{position:absolute}.tox .tox-tooltip--down .tox-tooltip__arrow{border-left:8px solid transparent;border-right:8px solid transparent;border-top:8px solid #222f3e;bottom:0;left:50%;position:absolute;transform:translateX(-50%)}.tox .tox-tooltip--up .tox-tooltip__arrow{border-bottom:8px solid #222f3e;border-left:8px solid transparent;border-right:8px solid transparent;left:50%;position:absolute;top:0;transform:translateX(-50%)}.tox .tox-tooltip--right .tox-tooltip__arrow{border-bottom:8px solid transparent;border-left:8px solid #222f3e;border-top:8px solid transparent;position:absolute;right:0;top:50%;transform:translateY(-50%)}.tox .tox-tooltip--left .tox-tooltip__arrow{border-bottom:8px solid transparent;border-right:8px solid #222f3e;border-top:8px solid transparent;left:0;position:absolute;top:50%;transform:translateY(-50%)}.tox .tox-tree{display:flex;flex-direction:column}.tox .tox-tree .tox-trbtn{align-items:center;background:0 0;border:0;border-radius:4px;box-shadow:none;color:#222f3e;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:400;height:28px;margin-bottom:4px;margin-top:4px;outline:0;overflow:hidden;padding:0;padding-left:8px;text-transform:none}.tox .tox-tree .tox-trbtn .tox-tree__label{cursor:default;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tox .tox-tree .tox-trbtn svg{display:block;fill:#222f3e}.tox .tox-tree .tox-trbtn:focus{background:#cce2fa;border:0;box-shadow:none}.tox .tox-tree .tox-trbtn:hover{background:#cce2fa;border:0;box-shadow:none;color:#222f3e}.tox .tox-tree .tox-trbtn:hover svg{fill:#222f3e}.tox .tox-tree .tox-trbtn:active{background:#a6ccf7;border:0;box-shadow:none;color:#222f3e}.tox .tox-tree .tox-trbtn:active svg{fill:#222f3e}.tox .tox-tree .tox-trbtn--disabled,.tox .tox-tree .tox-trbtn--disabled:hover,.tox .tox-tree .tox-trbtn:disabled,.tox .tox-tree .tox-trbtn:disabled:hover{background:0 0;border:0;box-shadow:none;color:rgba(34,47,62,.5);cursor:not-allowed}.tox .tox-tree .tox-trbtn--disabled svg,.tox .tox-tree .tox-trbtn--disabled:hover svg,.tox .tox-tree .tox-trbtn:disabled svg,.tox .tox-tree .tox-trbtn:disabled:hover svg{fill:rgba(34,47,62,.5)}.tox .tox-tree .tox-trbtn--enabled,.tox .tox-tree .tox-trbtn--enabled:hover{background:#a6ccf7;border:0;box-shadow:none;color:#222f3e}.tox .tox-tree .tox-trbtn--enabled:hover>*,.tox .tox-tree .tox-trbtn--enabled>*{transform:none}.tox .tox-tree .tox-trbtn--enabled svg,.tox .tox-tree .tox-trbtn--enabled:hover svg{fill:#222f3e}.tox .tox-tree .tox-trbtn:focus:not(.tox-trbtn--disabled){color:#222f3e}.tox .tox-tree .tox-trbtn:focus:not(.tox-trbtn--disabled) svg{fill:#222f3e}.tox .tox-tree .tox-trbtn:active>*{transform:none}.tox .tox-tree .tox-trbtn--return{align-self:stretch;height:unset;width:16px}.tox .tox-tree .tox-trbtn--labeled{padding:0 4px;width:unset}.tox .tox-tree .tox-trbtn__vlabel{display:block;font-size:10px;font-weight:400;letter-spacing:-.025em;margin-bottom:4px;white-space:nowrap}.tox .tox-tree .tox-tree--directory{display:flex;flex-direction:column}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label{font-weight:700}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn{margin-left:auto}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn svg{fill:transparent}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn.tox-mbtn--active svg,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn:focus svg{fill:#222f3e}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:focus .tox-mbtn svg,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover .tox-mbtn svg{fill:#222f3e}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover:has(.tox-mbtn:hover){background-color:transparent;color:#222f3e}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover:has(.tox-mbtn:hover) .tox-chevron svg{fill:#222f3e}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-chevron{margin-right:6px}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--growing) .tox-chevron,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--shrinking) .tox-chevron{transition:transform .5s ease-in-out}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--growing) .tox-chevron,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--open) .tox-chevron{transform:rotate(90deg)}.tox .tox-tree .tox-tree--leaf__label{font-weight:400}.tox .tox-tree .tox-tree--leaf__label .tox-mbtn{margin-left:auto}.tox .tox-tree .tox-tree--leaf__label .tox-mbtn svg{fill:transparent}.tox .tox-tree .tox-tree--leaf__label .tox-mbtn.tox-mbtn--active svg,.tox .tox-tree .tox-tree--leaf__label .tox-mbtn:focus svg{fill:#222f3e}.tox .tox-tree .tox-tree--leaf__label:hover .tox-mbtn svg{fill:#222f3e}.tox .tox-tree .tox-tree--leaf__label:hover:has(.tox-mbtn:hover){background-color:transparent;color:#222f3e}.tox .tox-tree .tox-tree--leaf__label:hover:has(.tox-mbtn:hover) .tox-chevron svg{fill:#222f3e}.tox .tox-tree .tox-tree--directory__children{overflow:hidden;padding-left:16px}.tox .tox-tree .tox-tree--directory__children.tox-tree--directory__children--growing,.tox .tox-tree .tox-tree--directory__children.tox-tree--directory__children--shrinking{transition:height .5s ease-in-out}.tox .tox-tree .tox-trbtn.tox-tree--leaf__label{display:flex;justify-content:space-between}.tox .tox-view-wrap,.tox .tox-view-wrap__slot-container{background-color:#fff;display:flex;flex:1;flex-direction:column}.tox .tox-view{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.tox .tox-view__header{align-items:center;display:flex;font-size:16px;justify-content:space-between;padding:8px 8px 0 8px;position:relative}.tox .tox-view--mobile.tox-view__header,.tox .tox-view--mobile.tox-view__toolbar{padding:8px}.tox .tox-view--scrolling{flex-wrap:nowrap;overflow-x:auto}.tox .tox-view__toolbar{display:flex;flex-direction:row;gap:8px;justify-content:space-between;padding:8px 8px 0 8px}.tox .tox-view__toolbar__group{display:flex;flex-direction:row;gap:12px}.tox .tox-view__header-end,.tox .tox-view__header-start{display:flex}.tox .tox-view__pane{height:100%;padding:8px;width:100%}.tox .tox-view__pane_panel{border:1px solid #eee;border-radius:6px}.tox:not([dir=rtl]) .tox-view__header .tox-view__header-end>*,.tox:not([dir=rtl]) .tox-view__header .tox-view__header-start>*{margin-left:8px}.tox[dir=rtl] .tox-view__header .tox-view__header-end>*,.tox[dir=rtl] .tox-view__header .tox-view__header-start>*{margin-right:8px}.tox .tox-well{border:1px solid #eee;border-radius:6px;padding:8px;width:100%}.tox .tox-well>:first-child{margin-top:0}.tox .tox-well>:last-child{margin-bottom:0}.tox .tox-well>:only-child{margin:0}.tox .tox-custom-editor{border:1px solid #eee;border-radius:6px;display:flex;flex:1;overflow:hidden;position:relative}.tox .tox-dialog-loading::before{background-color:rgba(0,0,0,.5);content:\"\";height:100%;position:absolute;width:100%;z-index:1000}.tox .tox-tab{cursor:pointer}.tox .tox-dialog__content-js{display:flex;flex:1}.tox .tox-dialog__body-content .tox-collection{display:flex;flex:1}") +//# sourceMappingURL=skin.js.map diff --git a/tinymce-resource/skins/ui/oxide/skin.min.css b/tinymce-resource/skins/ui/oxide/skin.min.css new file mode 100644 index 000000000..3809e7b35 --- /dev/null +++ b/tinymce-resource/skins/ui/oxide/skin.min.css @@ -0,0 +1 @@ +.tox{box-shadow:none;box-sizing:content-box;color:#222f3e;cursor:auto;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:normal;-webkit-tap-highlight-color:transparent;text-decoration:none;text-shadow:none;text-transform:none;vertical-align:initial;white-space:normal}.tox :not(svg):not(rect){box-sizing:inherit;color:inherit;cursor:inherit;direction:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;line-height:inherit;-webkit-tap-highlight-color:inherit;text-align:inherit;text-decoration:inherit;text-shadow:inherit;text-transform:inherit;vertical-align:inherit;white-space:inherit}.tox :not(svg):not(rect){background:0 0;border:0;box-shadow:none;float:none;height:auto;margin:0;max-width:none;outline:0;padding:0;position:static;width:auto}.tox:not([dir=rtl]){direction:ltr;text-align:left}.tox[dir=rtl]{direction:rtl;text-align:right}.tox-tinymce{border:2px solid #eee;border-radius:10px;box-shadow:none;box-sizing:border-box;display:flex;flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;overflow:hidden;position:relative;visibility:inherit!important}.tox.tox-tinymce-inline{border:none;box-shadow:none;overflow:initial}.tox.tox-tinymce-inline .tox-editor-container{overflow:initial}.tox.tox-tinymce-inline .tox-editor-header{background-color:#fff;border:2px solid #eee;border-radius:10px;box-shadow:none;overflow:hidden}.tox-tinymce-aux{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;z-index:1300}.tox-tinymce :focus,.tox-tinymce-aux :focus{outline:0}button::-moz-focus-inner{border:0}.tox[dir=rtl] .tox-icon--flip svg{transform:rotateY(180deg)}.tox .accessibility-issue__header{align-items:center;display:flex;margin-bottom:4px}.tox .accessibility-issue__description{align-items:stretch;border-radius:6px;display:flex;justify-content:space-between}.tox .accessibility-issue__description>div{padding-bottom:4px}.tox .accessibility-issue__description>div>div{align-items:center;display:flex;margin-bottom:4px}.tox .accessibility-issue__description>div>div .tox-icon svg{display:block}.tox .accessibility-issue__repair{margin-top:16px}.tox .tox-dialog__body-content .accessibility-issue--info .accessibility-issue__description{background-color:rgba(0,101,216,.1);color:#222f3e}.tox .tox-dialog__body-content .accessibility-issue--info .tox-form__group h2{color:#006ce7}.tox .tox-dialog__body-content .accessibility-issue--info .tox-icon svg{fill:#006ce7}.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon{background-color:#006ce7;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:focus,.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:hover{background-color:#0060ce}.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:active{background-color:#0054b4}.tox .tox-dialog__body-content .accessibility-issue--warn .accessibility-issue__description{background-color:rgba(255,165,0,.08);color:#222f3e}.tox .tox-dialog__body-content .accessibility-issue--warn .tox-form__group h2{color:#8f5d00}.tox .tox-dialog__body-content .accessibility-issue--warn .tox-icon svg{fill:#8f5d00}.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon{background-color:#ffe89d;color:#222f3e}.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:focus,.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:hover{background-color:#f2d574;color:#222f3e}.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:active{background-color:#e8c657;color:#222f3e}.tox .tox-dialog__body-content .accessibility-issue--error .accessibility-issue__description{background-color:rgba(204,0,0,.1);color:#222f3e}.tox .tox-dialog__body-content .accessibility-issue--error .tox-form__group h2{color:#c00}.tox .tox-dialog__body-content .accessibility-issue--error .tox-icon svg{fill:#c00}.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon{background-color:#f2bfbf;color:#222f3e}.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:focus,.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:hover{background-color:#e9a4a4;color:#222f3e}.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:active{background-color:#ee9494;color:#222f3e}.tox .tox-dialog__body-content .accessibility-issue--success .accessibility-issue__description{background-color:rgba(120,171,70,.1);color:#222f3e}.tox .tox-dialog__body-content .accessibility-issue--success .accessibility-issue__description>:last-child{display:none}.tox .tox-dialog__body-content .accessibility-issue--success .tox-form__group h2{color:#527530}.tox .tox-dialog__body-content .accessibility-issue--success .tox-icon svg{fill:#527530}.tox .tox-dialog__body-content .accessibility-issue__header .tox-form__group h1,.tox .tox-dialog__body-content .tox-form__group .accessibility-issue__description h2{font-size:14px;margin-top:0}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__header .tox-button{margin-left:4px}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__header>:nth-last-child(2){margin-left:auto}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__description{padding:4px 4px 4px 8px}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__header .tox-button{margin-right:4px}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__header>:nth-last-child(2){margin-right:auto}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__description{padding:4px 8px 4px 4px}.tox .tox-advtemplate .tox-form__grid{flex:1}.tox .tox-advtemplate .tox-form__grid>div:first-child{display:flex;flex-direction:column;width:30%}.tox .tox-advtemplate .tox-form__grid>div:first-child>div:nth-child(2){flex-basis:0;flex-grow:1;overflow:auto}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox .tox-advtemplate .tox-form__grid>div:first-child{width:100%}}.tox .tox-advtemplate iframe{border-color:#eee;border-radius:10px;border-style:solid;border-width:1px;margin:0 10px}.tox .tox-anchorbar{display:flex;flex:0 0 auto}.tox .tox-bottom-anchorbar{display:flex;flex:0 0 auto}.tox .tox-bar{display:flex;flex:0 0 auto}.tox .tox-button{background-color:#006ce7;background-image:none;background-position:0 0;background-repeat:repeat;border-color:#006ce7;border-radius:6px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#fff;cursor:pointer;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:14px;font-style:normal;font-weight:700;letter-spacing:normal;line-height:24px;margin:0;outline:0;padding:4px 16px;position:relative;text-align:center;text-decoration:none;text-transform:none;white-space:nowrap}.tox .tox-button::before{border-radius:6px;bottom:-1px;box-shadow:inset 0 0 0 2px #fff,0 0 0 1px #006ce7,0 0 0 3px rgba(0,108,231,.25);content:'';left:-1px;opacity:0;pointer-events:none;position:absolute;right:-1px;top:-1px}.tox .tox-button[disabled]{background-color:#006ce7;background-image:none;border-color:#006ce7;box-shadow:none;color:rgba(255,255,255,.5);cursor:not-allowed}.tox .tox-button:focus:not(:disabled){background-color:#0060ce;background-image:none;border-color:#0060ce;box-shadow:none;color:#fff}.tox .tox-button:focus-visible:not(:disabled)::before{opacity:1}.tox .tox-button:hover:not(:disabled){background-color:#0060ce;background-image:none;border-color:#0060ce;box-shadow:none;color:#fff}.tox .tox-button:active:not(:disabled){background-color:#0054b4;background-image:none;border-color:#0054b4;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled{background-color:#0054b4;background-image:none;border-color:#0054b4;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled[disabled]{background-color:#0054b4;background-image:none;border-color:#0054b4;box-shadow:none;color:rgba(255,255,255,.5);cursor:not-allowed}.tox .tox-button.tox-button--enabled:focus:not(:disabled){background-color:#00489b;background-image:none;border-color:#00489b;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled:hover:not(:disabled){background-color:#00489b;background-image:none;border-color:#00489b;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled:active:not(:disabled){background-color:#003c81;background-image:none;border-color:#003c81;box-shadow:none;color:#fff}.tox .tox-button--icon-and-text,.tox .tox-button.tox-button--icon-and-text,.tox .tox-button.tox-button--secondary.tox-button--icon-and-text{display:flex;padding:5px 4px}.tox .tox-button--icon-and-text .tox-icon svg,.tox .tox-button.tox-button--icon-and-text .tox-icon svg,.tox .tox-button.tox-button--secondary.tox-button--icon-and-text .tox-icon svg{display:block;fill:currentColor}.tox .tox-button--secondary{background-color:#f0f0f0;background-image:none;background-position:0 0;background-repeat:repeat;border-color:#f0f0f0;border-radius:6px;border-style:solid;border-width:1px;box-shadow:none;color:#222f3e;font-size:14px;font-style:normal;font-weight:700;letter-spacing:normal;outline:0;padding:4px 16px;text-decoration:none;text-transform:none}.tox .tox-button--secondary[disabled]{background-color:#f0f0f0;background-image:none;border-color:#f0f0f0;box-shadow:none;color:rgba(34,47,62,.5)}.tox .tox-button--secondary:focus:not(:disabled){background-color:#e3e3e3;background-image:none;border-color:#e3e3e3;box-shadow:none;color:#222f3e}.tox .tox-button--secondary:hover:not(:disabled){background-color:#e3e3e3;background-image:none;border-color:#e3e3e3;box-shadow:none;color:#222f3e}.tox .tox-button--secondary:active:not(:disabled){background-color:#d6d6d6;background-image:none;border-color:#d6d6d6;box-shadow:none;color:#222f3e}.tox .tox-button--secondary.tox-button--enabled{background-color:#a8c8ed;background-image:none;border-color:#a8c8ed;box-shadow:none;color:#222f3e}.tox .tox-button--secondary.tox-button--enabled[disabled]{background-color:#a8c8ed;background-image:none;border-color:#a8c8ed;box-shadow:none;color:rgba(34,47,62,.5)}.tox .tox-button--secondary.tox-button--enabled:focus:not(:disabled){background-color:#93bbe9;background-image:none;border-color:#93bbe9;box-shadow:none;color:#222f3e}.tox .tox-button--secondary.tox-button--enabled:hover:not(:disabled){background-color:#93bbe9;background-image:none;border-color:#93bbe9;box-shadow:none;color:#222f3e}.tox .tox-button--secondary.tox-button--enabled:active:not(:disabled){background-color:#7daee4;background-image:none;border-color:#7daee4;box-shadow:none;color:#222f3e}.tox .tox-button--icon,.tox .tox-button.tox-button--icon,.tox .tox-button.tox-button--secondary.tox-button--icon{padding:4px}.tox .tox-button--icon .tox-icon svg,.tox .tox-button.tox-button--icon .tox-icon svg,.tox .tox-button.tox-button--secondary.tox-button--icon .tox-icon svg{display:block;fill:currentColor}.tox .tox-button-link{background:0;border:none;box-sizing:border-box;cursor:pointer;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:16px;font-weight:400;line-height:1.3;margin:0;padding:0;white-space:nowrap}.tox .tox-button-link--sm{font-size:14px}.tox .tox-button--naked{background-color:transparent;border-color:transparent;box-shadow:unset;color:#222f3e}.tox .tox-button--naked[disabled]{background-color:rgba(34,47,62,.12);border-color:transparent;box-shadow:unset;color:rgba(34,47,62,.5)}.tox .tox-button--naked:hover:not(:disabled){background-color:rgba(34,47,62,.12);border-color:transparent;box-shadow:unset;color:#222f3e}.tox .tox-button--naked:focus:not(:disabled){background-color:rgba(34,47,62,.12);border-color:transparent;box-shadow:unset;color:#222f3e}.tox .tox-button--naked:active:not(:disabled){background-color:rgba(34,47,62,.18);border-color:transparent;box-shadow:unset;color:#222f3e}.tox .tox-button--naked .tox-icon svg{fill:currentColor}.tox .tox-button--naked.tox-button--icon:hover:not(:disabled){color:#222f3e}.tox .tox-checkbox{align-items:center;border-radius:6px;cursor:pointer;display:flex;height:36px;min-width:36px}.tox .tox-checkbox__input{height:1px;overflow:hidden;position:absolute;top:auto;width:1px}.tox .tox-checkbox__icons{align-items:center;border-radius:6px;box-shadow:0 0 0 2px transparent;box-sizing:content-box;display:flex;height:24px;justify-content:center;padding:calc(4px - 1px);width:24px}.tox .tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:block;fill:rgba(34,47,62,.3)}.tox .tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{display:none;fill:#006ce7}.tox .tox-checkbox__icons .tox-checkbox-icon__checked svg{display:none;fill:#006ce7}.tox .tox-checkbox--disabled{color:rgba(34,47,62,.5);cursor:not-allowed}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__checked svg{fill:rgba(34,47,62,.5)}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__unchecked svg{fill:rgba(34,47,62,.5)}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{fill:rgba(34,47,62,.5)}.tox input.tox-checkbox__input:checked+.tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:none}.tox input.tox-checkbox__input:checked+.tox-checkbox__icons .tox-checkbox-icon__checked svg{display:block}.tox input.tox-checkbox__input:indeterminate+.tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:none}.tox input.tox-checkbox__input:indeterminate+.tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{display:block}.tox input.tox-checkbox__input:focus+.tox-checkbox__icons{border-radius:6px;box-shadow:inset 0 0 0 1px #006ce7;padding:calc(4px - 1px)}.tox:not([dir=rtl]) .tox-checkbox__label{margin-left:4px}.tox:not([dir=rtl]) .tox-checkbox__input{left:-10000px}.tox:not([dir=rtl]) .tox-bar .tox-checkbox{margin-left:4px}.tox[dir=rtl] .tox-checkbox__label{margin-right:4px}.tox[dir=rtl] .tox-checkbox__input{right:-10000px}.tox[dir=rtl] .tox-bar .tox-checkbox{margin-right:4px}.tox .tox-collection--toolbar .tox-collection__group{display:flex;padding:0}.tox .tox-collection--grid .tox-collection__group{display:flex;flex-wrap:wrap;max-height:208px;overflow-x:hidden;overflow-y:auto;padding:0}.tox .tox-collection--list .tox-collection__group{border-bottom-width:0;border-color:#e3e3e3;border-left-width:0;border-right-width:0;border-style:solid;border-top-width:1px;padding:4px 0}.tox .tox-collection--list .tox-collection__group:first-child{border-top-width:0}.tox .tox-collection__group-heading{background-color:#fcfcfc;color:rgba(34,47,62,.7);cursor:default;font-size:12px;font-style:normal;font-weight:400;margin-bottom:4px;margin-top:-4px;padding:4px 8px;text-transform:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.tox .tox-collection__item{align-items:center;border-radius:3px;color:#222f3e;display:flex;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.tox .tox-collection--list .tox-collection__item{padding:4px 8px}.tox .tox-collection--toolbar .tox-collection__item{border-radius:3px;padding:4px}.tox .tox-collection--grid .tox-collection__item{border-radius:3px;padding:4px}.tox .tox-collection--list .tox-collection__item--enabled{background-color:#fff;color:#222f3e}.tox .tox-collection--list .tox-collection__item--active{background-color:#cce2fa}.tox .tox-collection--toolbar .tox-collection__item--enabled{background-color:#a6ccf7;color:#222f3e}.tox .tox-collection--toolbar .tox-collection__item--active{background-color:#cce2fa}.tox .tox-collection--grid .tox-collection__item--enabled{background-color:#a6ccf7;color:#222f3e}.tox .tox-collection--grid .tox-collection__item--active:not(.tox-collection__item--state-disabled){background-color:#cce2fa;color:#222f3e}.tox .tox-collection--list .tox-collection__item--active:not(.tox-collection__item--state-disabled){color:#222f3e}.tox .tox-collection--toolbar .tox-collection__item--active:not(.tox-collection__item--state-disabled){color:#222f3e}.tox .tox-collection__item-checkmark,.tox .tox-collection__item-icon{align-items:center;display:flex;height:24px;justify-content:center;width:24px}.tox .tox-collection__item-checkmark svg,.tox .tox-collection__item-icon svg{fill:currentColor}.tox .tox-collection--toolbar-lg .tox-collection__item-icon{height:48px;width:48px}.tox .tox-collection__item-label{color:currentColor;display:inline-block;flex:1;font-size:14px;font-style:normal;font-weight:400;line-height:24px;max-width:100%;text-transform:none;word-break:break-all}.tox .tox-collection__item-accessory{color:rgba(34,47,62,.7);display:inline-block;font-size:14px;height:24px;line-height:24px;text-transform:none}.tox .tox-collection__item-caret{align-items:center;display:flex;min-height:24px}.tox .tox-collection__item-caret::after{content:'';font-size:0;min-height:inherit}.tox .tox-collection__item-caret svg{fill:#222f3e}.tox .tox-collection__item--state-disabled{background-color:transparent;color:rgba(34,47,62,.5);cursor:not-allowed}.tox .tox-collection__item--state-disabled .tox-collection__item-caret svg{fill:rgba(34,47,62,.5)}.tox .tox-collection--list .tox-collection__item:not(.tox-collection__item--enabled) .tox-collection__item-checkmark svg{display:none}.tox .tox-collection--list .tox-collection__item:not(.tox-collection__item--enabled) .tox-collection__item-accessory+.tox-collection__item-checkmark{display:none}.tox .tox-collection--horizontal{background-color:#fff;border:1px solid #e3e3e3;border-radius:6px;box-shadow:0 0 2px 0 rgba(34,47,62,.2),0 4px 8px 0 rgba(34,47,62,.15);display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:nowrap;margin-bottom:0;overflow-x:auto;padding:0}.tox .tox-collection--horizontal .tox-collection__group{align-items:center;display:flex;flex-wrap:nowrap;margin:0;padding:0 4px}.tox .tox-collection--horizontal .tox-collection__item{height:28px;margin:6px 1px 5px 0;padding:0 4px}.tox .tox-collection--horizontal .tox-collection__item-label{white-space:nowrap}.tox .tox-collection--horizontal .tox-collection__item-caret{margin-left:4px}.tox .tox-collection__item-container{display:flex}.tox .tox-collection__item-container--row{align-items:center;flex:1 1 auto;flex-direction:row}.tox .tox-collection__item-container--row.tox-collection__item-container--align-left{margin-right:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--align-right{justify-content:flex-end;margin-left:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-top{align-items:flex-start;margin-bottom:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-middle{align-items:center}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-bottom{align-items:flex-end;margin-top:auto}.tox .tox-collection__item-container--column{align-self:center;flex:1 1 auto;flex-direction:column}.tox .tox-collection__item-container--column.tox-collection__item-container--align-left{align-items:flex-start}.tox .tox-collection__item-container--column.tox-collection__item-container--align-right{align-items:flex-end}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-top{align-self:flex-start}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-middle{align-self:center}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-bottom{align-self:flex-end}.tox:not([dir=rtl]) .tox-collection--horizontal .tox-collection__group:not(:last-of-type){border-right:1px solid transparent}.tox:not([dir=rtl]) .tox-collection--list .tox-collection__item>:not(:first-child){margin-left:8px}.tox:not([dir=rtl]) .tox-collection--list .tox-collection__item>.tox-collection__item-label:first-child{margin-left:4px}.tox:not([dir=rtl]) .tox-collection__item-accessory{margin-left:16px;text-align:right}.tox:not([dir=rtl]) .tox-collection .tox-collection__item-caret{margin-left:16px}.tox[dir=rtl] .tox-collection--horizontal .tox-collection__group:not(:last-of-type){border-left:1px solid transparent}.tox[dir=rtl] .tox-collection--list .tox-collection__item>:not(:first-child){margin-right:8px}.tox[dir=rtl] .tox-collection--list .tox-collection__item>.tox-collection__item-label:first-child{margin-right:4px}.tox[dir=rtl] .tox-collection__item-accessory{margin-right:16px;text-align:left}.tox[dir=rtl] .tox-collection .tox-collection__item-caret{margin-right:16px;transform:rotateY(180deg)}.tox[dir=rtl] .tox-collection--horizontal .tox-collection__item-caret{margin-right:4px}.tox .tox-color-picker-container{display:flex;flex-direction:row;height:225px;margin:0}.tox .tox-sv-palette{box-sizing:border-box;display:flex;height:100%}.tox .tox-sv-palette-spectrum{height:100%}.tox .tox-sv-palette,.tox .tox-sv-palette-spectrum{width:225px}.tox .tox-sv-palette-thumb{background:0 0;border:1px solid #000;border-radius:50%;box-sizing:content-box;height:12px;position:absolute;width:12px}.tox .tox-sv-palette-inner-thumb{border:1px solid #fff;border-radius:50%;height:10px;position:absolute;width:10px}.tox .tox-hue-slider{box-sizing:border-box;height:100%;width:25px}.tox .tox-hue-slider-spectrum{background:linear-gradient(to bottom,red,#ff0080,#f0f,#8000ff,#00f,#0080ff,#0ff,#00ff80,#0f0,#80ff00,#ff0,#ff8000,red);height:100%;width:100%}.tox .tox-hue-slider,.tox .tox-hue-slider-spectrum{width:20px}.tox .tox-hue-slider-spectrum:focus,.tox .tox-sv-palette-spectrum:focus{outline:#08f solid}.tox .tox-hue-slider-thumb{background:#fff;border:1px solid #000;box-sizing:content-box;height:4px;width:100%}.tox .tox-rgb-form{display:flex;flex-direction:column;justify-content:space-between}.tox .tox-rgb-form div{align-items:center;display:flex;justify-content:space-between;margin-bottom:5px;width:inherit}.tox .tox-rgb-form input{width:6em}.tox .tox-rgb-form input.tox-invalid{border:1px solid red!important}.tox .tox-rgb-form .tox-rgba-preview{border:1px solid #000;flex-grow:2;margin-bottom:0}.tox:not([dir=rtl]) .tox-sv-palette{margin-right:15px}.tox:not([dir=rtl]) .tox-hue-slider{margin-right:15px}.tox:not([dir=rtl]) .tox-hue-slider-thumb{margin-left:-1px}.tox:not([dir=rtl]) .tox-rgb-form label{margin-right:.5em}.tox[dir=rtl] .tox-sv-palette{margin-left:15px}.tox[dir=rtl] .tox-hue-slider{margin-left:15px}.tox[dir=rtl] .tox-hue-slider-thumb{margin-right:-1px}.tox[dir=rtl] .tox-rgb-form label{margin-left:.5em}.tox .tox-toolbar .tox-swatches,.tox .tox-toolbar__overflow .tox-swatches,.tox .tox-toolbar__primary .tox-swatches{margin:5px 0 6px 11px}.tox .tox-collection--list .tox-collection__group .tox-swatches-menu{border:0;margin:-4px -4px}.tox .tox-swatches__row{display:flex}.tox .tox-swatch{height:30px;transition:transform .15s,box-shadow .15s;width:30px}.tox .tox-swatch:focus,.tox .tox-swatch:hover{box-shadow:0 0 0 1px rgba(127,127,127,.3) inset;transform:scale(.8)}.tox .tox-swatch--remove{align-items:center;display:flex;justify-content:center}.tox .tox-swatch--remove svg path{stroke:#e74c3c}.tox .tox-swatches__picker-btn{align-items:center;background-color:transparent;border:0;cursor:pointer;display:flex;height:30px;justify-content:center;outline:0;padding:0;width:30px}.tox .tox-swatches__picker-btn svg{fill:#222f3e;height:24px;width:24px}.tox .tox-swatches__picker-btn:hover{background:#cce2fa}.tox div.tox-swatch:not(.tox-swatch--remove) svg{display:none;fill:#222f3e;height:24px;margin:calc((30px - 24px)/ 2) calc((30px - 24px)/ 2);width:24px}.tox div.tox-swatch:not(.tox-swatch--remove) svg path{fill:#fff;paint-order:stroke;stroke:#222f3e;stroke-width:2px}.tox div.tox-swatch:not(.tox-swatch--remove).tox-collection__item--enabled svg{display:block}.tox:not([dir=rtl]) .tox-swatches__picker-btn{margin-left:auto}.tox[dir=rtl] .tox-swatches__picker-btn{margin-right:auto}.tox .tox-comment-thread{background:#fff;position:relative}.tox .tox-comment-thread>:not(:first-child){margin-top:8px}.tox .tox-comment{background:#fff;border:1px solid #eee;border-radius:6px;box-shadow:0 4px 8px 0 rgba(34,47,62,.1);padding:8px 8px 16px 8px;position:relative}.tox .tox-comment__header{align-items:center;color:#222f3e;display:flex;justify-content:space-between}.tox .tox-comment__date{color:#222f3e;font-size:12px;line-height:18px}.tox .tox-comment__body{color:#222f3e;font-size:14px;font-style:normal;font-weight:400;line-height:1.3;margin-top:8px;position:relative;text-transform:initial}.tox .tox-comment__body textarea{resize:none;white-space:normal;width:100%}.tox .tox-comment__expander{padding-top:8px}.tox .tox-comment__expander p{color:rgba(34,47,62,.7);font-size:14px;font-style:normal}.tox .tox-comment__body p{margin:0}.tox .tox-comment__buttonspacing{padding-top:16px;text-align:center}.tox .tox-comment-thread__overlay::after{background:#fff;bottom:0;content:"";display:flex;left:0;opacity:.9;position:absolute;right:0;top:0;z-index:5}.tox .tox-comment__reply{display:flex;flex-shrink:0;flex-wrap:wrap;justify-content:flex-end;margin-top:8px}.tox .tox-comment__reply>:first-child{margin-bottom:8px;width:100%}.tox .tox-comment__edit{display:flex;flex-wrap:wrap;justify-content:flex-end;margin-top:16px}.tox .tox-comment__gradient::after{background:linear-gradient(rgba(255,255,255,0),#fff);bottom:0;content:"";display:block;height:5em;margin-top:-40px;position:absolute;width:100%}.tox .tox-comment__overlay{background:#fff;bottom:0;display:flex;flex-direction:column;flex-grow:1;left:0;opacity:.9;position:absolute;right:0;text-align:center;top:0;z-index:5}.tox .tox-comment__loading-text{align-items:center;color:#222f3e;display:flex;flex-direction:column;position:relative}.tox .tox-comment__loading-text>div{padding-bottom:16px}.tox .tox-comment__overlaytext{bottom:0;flex-direction:column;font-size:14px;left:0;padding:1em;position:absolute;right:0;top:0;z-index:10}.tox .tox-comment__overlaytext p{background-color:#fff;box-shadow:0 0 8px 8px #fff;color:#222f3e;text-align:center}.tox .tox-comment__overlaytext div:nth-of-type(2){font-size:.8em}.tox .tox-comment__busy-spinner{align-items:center;background-color:#fff;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:20}.tox .tox-comment__scroll{display:flex;flex-direction:column;flex-shrink:1;overflow:auto}.tox .tox-conversations{margin:8px}.tox:not([dir=rtl]) .tox-comment__edit{margin-left:8px}.tox:not([dir=rtl]) .tox-comment__buttonspacing>:last-child,.tox:not([dir=rtl]) .tox-comment__edit>:last-child,.tox:not([dir=rtl]) .tox-comment__reply>:last-child{margin-left:8px}.tox[dir=rtl] .tox-comment__edit{margin-right:8px}.tox[dir=rtl] .tox-comment__buttonspacing>:last-child,.tox[dir=rtl] .tox-comment__edit>:last-child,.tox[dir=rtl] .tox-comment__reply>:last-child{margin-right:8px}.tox .tox-user{align-items:center;display:flex}.tox .tox-user__avatar svg{fill:rgba(34,47,62,.7)}.tox .tox-user__avatar img{border-radius:50%;height:36px;object-fit:cover;vertical-align:middle;width:36px}.tox .tox-user__name{color:#222f3e;font-size:14px;font-style:normal;font-weight:700;line-height:18px;text-transform:none}.tox:not([dir=rtl]) .tox-user__avatar img,.tox:not([dir=rtl]) .tox-user__avatar svg{margin-right:8px}.tox:not([dir=rtl]) .tox-user__avatar+.tox-user__name{margin-left:8px}.tox[dir=rtl] .tox-user__avatar img,.tox[dir=rtl] .tox-user__avatar svg{margin-left:8px}.tox[dir=rtl] .tox-user__avatar+.tox-user__name{margin-right:8px}.tox .tox-dialog-wrap{align-items:center;bottom:0;display:flex;justify-content:center;left:0;position:fixed;right:0;top:0;z-index:1100}.tox .tox-dialog-wrap__backdrop{background-color:rgba(255,255,255,.75);bottom:0;left:0;position:absolute;right:0;top:0;z-index:1}.tox .tox-dialog-wrap__backdrop--opaque{background-color:#fff}.tox .tox-dialog{background-color:#fff;border-color:#eee;border-radius:10px;border-style:solid;border-width:0;box-shadow:0 16px 16px -10px rgba(34,47,62,.15),0 0 40px 1px rgba(34,47,62,.15);display:flex;flex-direction:column;max-height:100%;max-width:480px;overflow:hidden;position:relative;width:95vw;z-index:2}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox .tox-dialog{align-self:flex-start;margin:8px auto;max-height:calc(100vh - 8px * 2);width:calc(100vw - 16px)}}.tox .tox-dialog-inline{z-index:1100}.tox .tox-dialog__header{align-items:center;background-color:#fff;border-bottom:none;color:#222f3e;display:flex;font-size:16px;justify-content:space-between;padding:8px 16px 0 16px;position:relative}.tox .tox-dialog__header .tox-button{z-index:1}.tox .tox-dialog__draghandle{cursor:grab;height:100%;left:0;position:absolute;top:0;width:100%}.tox .tox-dialog__draghandle:active{cursor:grabbing}.tox .tox-dialog__dismiss{margin-left:auto}.tox .tox-dialog__title{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:20px;font-style:normal;font-weight:400;line-height:1.3;margin:0;text-transform:none}.tox .tox-dialog__body{color:#222f3e;display:flex;flex:1;font-size:16px;font-style:normal;font-weight:400;line-height:1.3;min-width:0;text-align:left;text-transform:none}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox .tox-dialog__body{flex-direction:column}}.tox .tox-dialog__body-nav{align-items:flex-start;display:flex;flex-direction:column;flex-shrink:0;padding:16px 16px}@media only screen and (min-width:768px){.tox .tox-dialog__body-nav{max-width:11em}}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox .tox-dialog__body-nav{flex-direction:row;-webkit-overflow-scrolling:touch;overflow-x:auto;padding-bottom:0}}.tox .tox-dialog__body-nav-item{border-bottom:2px solid transparent;color:rgba(34,47,62,.7);display:inline-block;flex-shrink:0;font-size:14px;line-height:1.3;margin-bottom:8px;max-width:13em;text-decoration:none}.tox .tox-dialog__body-nav-item:focus{background-color:rgba(0,108,231,.1)}.tox .tox-dialog__body-nav-item--active{border-bottom:2px solid #006ce7;color:#006ce7}.tox .tox-dialog__body-content{box-sizing:border-box;display:flex;flex:1;flex-direction:column;max-height:min(650px,calc(100vh - 110px));overflow:auto;-webkit-overflow-scrolling:touch;padding:16px 16px}.tox .tox-dialog__body-content>*{margin-bottom:0;margin-top:16px}.tox .tox-dialog__body-content>:first-child{margin-top:0}.tox .tox-dialog__body-content>:last-child{margin-bottom:0}.tox .tox-dialog__body-content>:only-child{margin-bottom:0;margin-top:0}.tox .tox-dialog__body-content a{color:#006ce7;cursor:pointer;text-decoration:underline}.tox .tox-dialog__body-content a:focus,.tox .tox-dialog__body-content a:hover{color:#003c81;text-decoration:underline}.tox .tox-dialog__body-content a:focus-visible{border-radius:1px;outline:2px solid #006ce7;outline-offset:2px}.tox .tox-dialog__body-content a:active{color:#00244e;text-decoration:underline}.tox .tox-dialog__body-content svg{fill:#222f3e}.tox .tox-dialog__body-content strong{font-weight:700}.tox .tox-dialog__body-content ul{list-style-type:disc}.tox .tox-dialog__body-content dd,.tox .tox-dialog__body-content ol,.tox .tox-dialog__body-content ul{padding-inline-start:2.5rem}.tox .tox-dialog__body-content dl,.tox .tox-dialog__body-content ol,.tox .tox-dialog__body-content ul{margin-bottom:16px}.tox .tox-dialog__body-content dd,.tox .tox-dialog__body-content dl,.tox .tox-dialog__body-content dt,.tox .tox-dialog__body-content ol,.tox .tox-dialog__body-content ul{display:block;margin-inline-end:0;margin-inline-start:0}.tox .tox-dialog__body-content .tox-form__group h1{color:#222f3e;font-size:20px;font-style:normal;font-weight:700;letter-spacing:normal;margin-bottom:16px;margin-top:2rem;text-transform:none}.tox .tox-dialog__body-content .tox-form__group h2{color:#222f3e;font-size:16px;font-style:normal;font-weight:700;letter-spacing:normal;margin-bottom:16px;margin-top:2rem;text-transform:none}.tox .tox-dialog__body-content .tox-form__group p{margin-bottom:16px}.tox .tox-dialog__body-content .tox-form__group h1:first-child,.tox .tox-dialog__body-content .tox-form__group h2:first-child,.tox .tox-dialog__body-content .tox-form__group p:first-child{margin-top:0}.tox .tox-dialog__body-content .tox-form__group h1:last-child,.tox .tox-dialog__body-content .tox-form__group h2:last-child,.tox .tox-dialog__body-content .tox-form__group p:last-child{margin-bottom:0}.tox .tox-dialog__body-content .tox-form__group h1:only-child,.tox .tox-dialog__body-content .tox-form__group h2:only-child,.tox .tox-dialog__body-content .tox-form__group p:only-child{margin-bottom:0;margin-top:0}.tox .tox-dialog__body-content .tox-form__group .tox-label.tox-label--center{text-align:center}.tox .tox-dialog__body-content .tox-form__group .tox-label.tox-label--end{text-align:end}.tox .tox-dialog--width-lg{height:650px;max-width:1200px}.tox .tox-dialog--fullscreen{height:100%;max-width:100%}.tox .tox-dialog--fullscreen .tox-dialog__body-content{max-height:100%}.tox .tox-dialog--width-md{max-width:800px}.tox .tox-dialog--width-md .tox-dialog__body-content{overflow:auto}.tox .tox-dialog__body-content--centered{text-align:center}.tox .tox-dialog__footer{align-items:center;background-color:#fff;border-top:none;display:flex;justify-content:space-between;padding:8px 16px}.tox .tox-dialog__footer-end,.tox .tox-dialog__footer-start{display:flex}.tox .tox-dialog__busy-spinner{align-items:center;background-color:rgba(255,255,255,.75);bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:3}.tox .tox-dialog__table{border-collapse:collapse;width:100%}.tox .tox-dialog__table thead th{font-weight:700;padding-bottom:8px}.tox .tox-dialog__table thead th:first-child{padding-right:8px}.tox .tox-dialog__table tbody tr{border-bottom:1px solid #626262}.tox .tox-dialog__table tbody tr:last-child{border-bottom:none}.tox .tox-dialog__table td{padding-bottom:8px;padding-top:8px}.tox .tox-dialog__table td:first-child{padding-right:8px}.tox .tox-dialog__iframe{min-height:200px}.tox .tox-dialog__iframe.tox-dialog__iframe--opaque{background:#fff}.tox .tox-navobj-bordered{position:relative}.tox .tox-navobj-bordered::before{border:1px solid #eee;border-radius:6px;content:'';inset:0;opacity:1;pointer-events:none;position:absolute;z-index:1}.tox .tox-navobj-bordered-focus.tox-navobj-bordered::before{border-color:#006ce7;box-shadow:0 0 0 2px rgba(0,108,231,.25);outline:0}.tox .tox-dialog__popups{position:absolute;width:100%;z-index:1100}.tox .tox-dialog__body-iframe{display:flex;flex:1;flex-direction:column}.tox .tox-dialog__body-iframe .tox-navobj{display:flex;flex:1}.tox .tox-dialog__body-iframe .tox-navobj :nth-child(2){flex:1;height:100%}.tox .tox-dialog-dock-fadeout{opacity:0;visibility:hidden}.tox .tox-dialog-dock-fadein{opacity:1;visibility:visible}.tox .tox-dialog-dock-transition{transition:visibility 0s linear .3s,opacity .3s ease}.tox .tox-dialog-dock-transition.tox-dialog-dock-fadein{transition-delay:0s}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox:not([dir=rtl]) .tox-dialog__body-nav{margin-right:0}}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox:not([dir=rtl]) .tox-dialog__body-nav-item:not(:first-child){margin-left:8px}}.tox:not([dir=rtl]) .tox-dialog__footer .tox-dialog__footer-end>*,.tox:not([dir=rtl]) .tox-dialog__footer .tox-dialog__footer-start>*{margin-left:8px}.tox[dir=rtl] .tox-dialog__body{text-align:right}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox[dir=rtl] .tox-dialog__body-nav{margin-left:0}}@media only screen and (max-width:767px){body:not(.tox-force-desktop) .tox[dir=rtl] .tox-dialog__body-nav-item:not(:first-child){margin-right:8px}}.tox[dir=rtl] .tox-dialog__footer .tox-dialog__footer-end>*,.tox[dir=rtl] .tox-dialog__footer .tox-dialog__footer-start>*{margin-right:8px}body.tox-dialog__disable-scroll{overflow:hidden}.tox .tox-dropzone-container{display:flex;flex:1}.tox .tox-dropzone{align-items:center;background:#fff;border:2px dashed #eee;box-sizing:border-box;display:flex;flex-direction:column;flex-grow:1;justify-content:center;min-height:100px;padding:10px}.tox .tox-dropzone p{color:rgba(34,47,62,.7);margin:0 0 16px 0}.tox .tox-edit-area{display:flex;flex:1;overflow:hidden;position:relative}.tox .tox-edit-area::before{border:2px solid #2d6adf;border-radius:4px;content:'';inset:0;opacity:0;pointer-events:none;position:absolute;transition:opacity .15s;z-index:1}.tox .tox-edit-area__iframe{background-color:#fff;border:0;box-sizing:border-box;flex:1;height:100%;position:absolute;width:100%}.tox.tox-edit-focus .tox-edit-area::before{opacity:1}.tox.tox-inline-edit-area{border:1px dotted #eee}.tox .tox-editor-container{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.tox .tox-editor-header{display:grid;grid-template-columns:1fr min-content;z-index:2}.tox:not(.tox-tinymce-inline) .tox-editor-header{background-color:#fff;border-bottom:none;box-shadow:0 2px 2px -2px rgba(34,47,62,.1),0 8px 8px -4px rgba(34,47,62,.07);padding:4px 0}.tox:not(.tox-tinymce-inline) .tox-editor-header:not(.tox-editor-dock-transition){transition:box-shadow .5s}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-bottom .tox-editor-header{border-top:1px solid #e3e3e3;box-shadow:none}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-sticky-on .tox-editor-header{background-color:#fff;box-shadow:0 2px 2px -2px rgba(34,47,62,.2),0 8px 8px -4px rgba(34,47,62,.15);padding:4px 0}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-sticky-on.tox-tinymce--toolbar-bottom .tox-editor-header{box-shadow:0 2px 2px -2px rgba(34,47,62,.2),0 8px 8px -4px rgba(34,47,62,.15)}.tox.tox:not(.tox-tinymce-inline) .tox-editor-header.tox-editor-header--empty{background:0 0;border:none;box-shadow:none;padding:0}.tox-editor-dock-fadeout{opacity:0;visibility:hidden}.tox-editor-dock-fadein{opacity:1;visibility:visible}.tox-editor-dock-transition{transition:visibility 0s linear .25s,opacity .25s ease}.tox-editor-dock-transition.tox-editor-dock-fadein{transition-delay:0s}.tox .tox-control-wrap{flex:1;position:relative}.tox .tox-control-wrap:not(.tox-control-wrap--status-invalid) .tox-control-wrap__status-icon-invalid,.tox .tox-control-wrap:not(.tox-control-wrap--status-unknown) .tox-control-wrap__status-icon-unknown,.tox .tox-control-wrap:not(.tox-control-wrap--status-valid) .tox-control-wrap__status-icon-valid{display:none}.tox .tox-control-wrap svg{display:block}.tox .tox-control-wrap__status-icon-wrap{position:absolute;top:50%;transform:translateY(-50%)}.tox .tox-control-wrap__status-icon-invalid svg{fill:#c00}.tox .tox-control-wrap__status-icon-unknown svg{fill:orange}.tox .tox-control-wrap__status-icon-valid svg{fill:green}.tox:not([dir=rtl]) .tox-control-wrap--status-invalid .tox-textfield,.tox:not([dir=rtl]) .tox-control-wrap--status-unknown .tox-textfield,.tox:not([dir=rtl]) .tox-control-wrap--status-valid .tox-textfield{padding-right:32px}.tox:not([dir=rtl]) .tox-control-wrap__status-icon-wrap{right:4px}.tox[dir=rtl] .tox-control-wrap--status-invalid .tox-textfield,.tox[dir=rtl] .tox-control-wrap--status-unknown .tox-textfield,.tox[dir=rtl] .tox-control-wrap--status-valid .tox-textfield{padding-left:32px}.tox[dir=rtl] .tox-control-wrap__status-icon-wrap{left:4px}.tox .tox-autocompleter{max-width:25em}.tox .tox-autocompleter .tox-menu{box-sizing:border-box;max-width:25em}.tox .tox-autocompleter .tox-autocompleter-highlight{font-weight:700}.tox .tox-color-input{display:flex;position:relative;z-index:1}.tox .tox-color-input .tox-textfield{z-index:-1}.tox .tox-color-input span{border-color:rgba(34,47,62,.2);border-radius:6px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;height:24px;position:absolute;top:6px;width:24px}.tox .tox-color-input span:focus:not([aria-disabled=true]),.tox .tox-color-input span:hover:not([aria-disabled=true]){border-color:#006ce7;cursor:pointer}.tox .tox-color-input span::before{background-image:linear-gradient(45deg,rgba(0,0,0,.25) 25%,transparent 25%),linear-gradient(-45deg,rgba(0,0,0,.25) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,rgba(0,0,0,.25) 75%),linear-gradient(-45deg,transparent 75%,rgba(0,0,0,.25) 75%);background-position:0 0,0 6px,6px -6px,-6px 0;background-size:12px 12px;border:1px solid #fff;border-radius:6px;box-sizing:border-box;content:'';height:24px;left:-1px;position:absolute;top:-1px;width:24px;z-index:-1}.tox .tox-color-input span[aria-disabled=true]{cursor:not-allowed}.tox:not([dir=rtl]) .tox-color-input .tox-textfield{padding-left:36px}.tox:not([dir=rtl]) .tox-color-input span{left:6px}.tox[dir=rtl] .tox-color-input .tox-textfield{padding-right:36px}.tox[dir=rtl] .tox-color-input span{right:6px}.tox .tox-label,.tox .tox-toolbar-label{color:rgba(34,47,62,.7);display:block;font-size:14px;font-style:normal;font-weight:400;line-height:1.3;padding:0 8px 0 0;text-transform:none;white-space:nowrap}.tox .tox-toolbar-label{padding:0 8px}.tox[dir=rtl] .tox-label{padding:0 0 0 8px}.tox .tox-form{display:flex;flex:1;flex-direction:column}.tox .tox-form__group{box-sizing:border-box;margin-bottom:4px}.tox .tox-form-group--maximize{flex:1}.tox .tox-form__group--error{color:#c00}.tox .tox-form__group--collection{display:flex}.tox .tox-form__grid{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between}.tox .tox-form__grid--2col>.tox-form__group{width:calc(50% - (8px / 2))}.tox .tox-form__grid--3col>.tox-form__group{width:calc(100% / 3 - (8px / 2))}.tox .tox-form__grid--4col>.tox-form__group{width:calc(25% - (8px / 2))}.tox .tox-form__controls-h-stack{align-items:center;display:flex}.tox .tox-form__group--inline{align-items:center;display:flex}.tox .tox-form__group--stretched{display:flex;flex:1;flex-direction:column}.tox .tox-form__group--stretched .tox-textarea{flex:1}.tox .tox-form__group--stretched .tox-navobj{display:flex;flex:1}.tox .tox-form__group--stretched .tox-navobj :nth-child(2){flex:1;height:100%}.tox:not([dir=rtl]) .tox-form__controls-h-stack>:not(:first-child){margin-left:4px}.tox[dir=rtl] .tox-form__controls-h-stack>:not(:first-child){margin-right:4px}.tox .tox-lock.tox-locked .tox-lock-icon__unlock,.tox .tox-lock:not(.tox-locked) .tox-lock-icon__lock{display:none}.tox .tox-listboxfield .tox-listbox--select,.tox .tox-textarea,.tox .tox-textarea-wrap .tox-textarea:focus,.tox .tox-textfield,.tox .tox-toolbar-textfield{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#eee;border-radius:6px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#222f3e;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:16px;line-height:24px;margin:0;min-height:34px;outline:0;padding:5px 5.5px;resize:none;width:100%}.tox .tox-textarea[disabled],.tox .tox-textfield[disabled]{background-color:#f2f2f2;color:rgba(34,47,62,.85);cursor:not-allowed}.tox .tox-custom-editor:focus-within,.tox .tox-listboxfield .tox-listbox--select:focus,.tox .tox-textarea-wrap:focus-within,.tox .tox-textarea:focus,.tox .tox-textfield:focus{background-color:#fff;border-color:#006ce7;box-shadow:0 0 0 2px rgba(0,108,231,.25);outline:0}.tox .tox-toolbar-textfield{border-width:0;margin-bottom:3px;margin-top:2px;max-width:250px}.tox .tox-naked-btn{background-color:transparent;border:0;border-color:transparent;box-shadow:unset;color:#006ce7;cursor:pointer;display:block;margin:0;padding:0}.tox .tox-naked-btn svg{display:block;fill:#222f3e}.tox:not([dir=rtl]) .tox-toolbar-textfield+*{margin-left:4px}.tox[dir=rtl] .tox-toolbar-textfield+*{margin-right:4px}.tox .tox-listboxfield{cursor:pointer;position:relative}.tox .tox-listboxfield .tox-listbox--select[disabled]{background-color:#f2f2f2;color:rgba(34,47,62,.85);cursor:not-allowed}.tox .tox-listbox__select-label{cursor:default;flex:1;margin:0 4px}.tox .tox-listbox__select-chevron{align-items:center;display:flex;justify-content:center;width:16px}.tox .tox-listbox__select-chevron svg{fill:#222f3e}.tox .tox-listboxfield .tox-listbox--select{align-items:center;display:flex}.tox:not([dir=rtl]) .tox-listboxfield svg{right:8px}.tox[dir=rtl] .tox-listboxfield svg{left:8px}.tox .tox-selectfield{cursor:pointer;position:relative}.tox .tox-selectfield select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#eee;border-radius:6px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#222f3e;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:16px;line-height:24px;margin:0;min-height:34px;outline:0;padding:5px 5.5px;resize:none;width:100%}.tox .tox-selectfield select[disabled]{background-color:#f2f2f2;color:rgba(34,47,62,.85);cursor:not-allowed}.tox .tox-selectfield select::-ms-expand{display:none}.tox .tox-selectfield select:focus{background-color:#fff;border-color:#006ce7;box-shadow:0 0 0 2px rgba(0,108,231,.25);outline:0}.tox .tox-selectfield svg{pointer-events:none;position:absolute;top:50%;transform:translateY(-50%)}.tox:not([dir=rtl]) .tox-selectfield select[size="0"],.tox:not([dir=rtl]) .tox-selectfield select[size="1"]{padding-right:24px}.tox:not([dir=rtl]) .tox-selectfield svg{right:8px}.tox[dir=rtl] .tox-selectfield select[size="0"],.tox[dir=rtl] .tox-selectfield select[size="1"]{padding-left:24px}.tox[dir=rtl] .tox-selectfield svg{left:8px}.tox .tox-textarea-wrap{border-color:#eee;border-radius:6px;border-style:solid;border-width:1px;display:flex;flex:1;overflow:hidden}.tox .tox-textarea{-webkit-appearance:textarea;-moz-appearance:textarea;appearance:textarea;white-space:pre-wrap}.tox .tox-textarea-wrap .tox-textarea{border:none}.tox .tox-textarea-wrap .tox-textarea:focus{border:none}.tox-fullscreen{border:0;height:100%;margin:0;overflow:hidden;overscroll-behavior:none;padding:0;touch-action:pinch-zoom;width:100%}.tox.tox-tinymce.tox-fullscreen .tox-statusbar__resize-handle{display:none}.tox-shadowhost.tox-fullscreen,.tox.tox-tinymce.tox-fullscreen{left:0;position:fixed;top:0;z-index:1200}.tox.tox-tinymce.tox-fullscreen{background-color:transparent}.tox-fullscreen .tox.tox-tinymce-aux,.tox-fullscreen~.tox.tox-tinymce-aux{z-index:1201}.tox .tox-help__more-link{list-style:none;margin-top:1em}.tox .tox-imagepreview{background-color:#666;height:380px;overflow:hidden;position:relative;width:100%}.tox .tox-imagepreview.tox-imagepreview__loaded{overflow:auto}.tox .tox-imagepreview__container{display:flex;left:100vw;position:absolute;top:100vw}.tox .tox-imagepreview__image{background:url(data:image/gif;base64,R0lGODdhDAAMAIABAMzMzP///ywAAAAADAAMAAACFoQfqYeabNyDMkBQb81Uat85nxguUAEAOw==)}.tox .tox-image-tools .tox-spacer{flex:1}.tox .tox-image-tools .tox-bar{align-items:center;display:flex;height:60px;justify-content:center}.tox .tox-image-tools .tox-imagepreview,.tox .tox-image-tools .tox-imagepreview+.tox-bar{margin-top:8px}.tox .tox-image-tools .tox-croprect-block{background:#000;opacity:.5;position:absolute;zoom:1}.tox .tox-image-tools .tox-croprect-handle{border:2px solid #fff;height:20px;left:0;position:absolute;top:0;width:20px}.tox .tox-image-tools .tox-croprect-handle-move{border:0;cursor:move;position:absolute}.tox .tox-image-tools .tox-croprect-handle-nw{border-width:2px 0 0 2px;cursor:nw-resize;left:100px;margin:-2px 0 0 -2px;top:100px}.tox .tox-image-tools .tox-croprect-handle-ne{border-width:2px 2px 0 0;cursor:ne-resize;left:200px;margin:-2px 0 0 -20px;top:100px}.tox .tox-image-tools .tox-croprect-handle-sw{border-width:0 0 2px 2px;cursor:sw-resize;left:100px;margin:-20px 2px 0 -2px;top:200px}.tox .tox-image-tools .tox-croprect-handle-se{border-width:0 2px 2px 0;cursor:se-resize;left:200px;margin:-20px 0 0 -20px;top:200px}.tox .tox-insert-table-picker{display:flex;flex-wrap:wrap;width:170px}.tox .tox-insert-table-picker>div{border-color:#eee;border-style:solid;border-width:0 1px 1px 0;box-sizing:border-box;height:17px;width:17px}.tox .tox-collection--list .tox-collection__group .tox-insert-table-picker{margin:-4px -4px}.tox .tox-insert-table-picker .tox-insert-table-picker__selected{background-color:rgba(0,108,231,.5);border-color:rgba(0,108,231,.5)}.tox .tox-insert-table-picker__label{color:rgba(34,47,62,.7);display:block;font-size:14px;padding:4px;text-align:center;width:100%}.tox:not([dir=rtl]) .tox-insert-table-picker>div:nth-child(10n){border-right:0}.tox[dir=rtl] .tox-insert-table-picker>div:nth-child(10n+1){border-right:0}.tox .tox-menu{background-color:#fff;border:1px solid transparent;border-radius:6px;box-shadow:0 0 2px 0 rgba(34,47,62,.2),0 4px 8px 0 rgba(34,47,62,.15);display:inline-block;overflow:hidden;vertical-align:top;z-index:1150}.tox .tox-menu.tox-collection.tox-collection--list{padding:0 4px}.tox .tox-menu.tox-collection.tox-collection--toolbar{padding:8px}.tox .tox-menu.tox-collection.tox-collection--grid{padding:8px}@media only screen and (min-width:768px){.tox .tox-menu .tox-collection__item-label{overflow-wrap:break-word;word-break:normal}.tox .tox-dialog__popups .tox-menu .tox-collection__item-label{word-break:break-all}}.tox .tox-menu__label blockquote,.tox .tox-menu__label code,.tox .tox-menu__label h1,.tox .tox-menu__label h2,.tox .tox-menu__label h3,.tox .tox-menu__label h4,.tox .tox-menu__label h5,.tox .tox-menu__label h6,.tox .tox-menu__label p{margin:0}.tox .tox-menubar{background:repeating-linear-gradient(transparent 0 1px,transparent 1px 39px) center top 39px/100% calc(100% - 39px) no-repeat;background-color:#fff;display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:wrap;grid-column:1/-1;grid-row:1;padding:0 11px 0 12px}.tox .tox-promotion+.tox-menubar{grid-column:1}.tox .tox-promotion{background:repeating-linear-gradient(transparent 0 1px,transparent 1px 39px) center top 39px/100% calc(100% - 39px) no-repeat;background-color:#fff;grid-column:2;grid-row:1;padding-inline-end:8px;padding-inline-start:4px;padding-top:5px}.tox .tox-promotion-link{align-items:unsafe center;background-color:#e8f1f8;border-radius:5px;color:#086be6;cursor:pointer;display:flex;font-size:14px;height:26.6px;padding:4px 8px;white-space:nowrap}.tox .tox-promotion-link:hover{background-color:#b4d7ff}.tox .tox-promotion-link:focus{background-color:#d9edf7}.tox .tox-mbtn{align-items:center;background:0 0;border:0;border-radius:3px;box-shadow:none;color:#222f3e;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:400;height:28px;justify-content:center;margin:5px 1px 6px 0;outline:0;overflow:hidden;padding:0 4px;text-transform:none;width:auto}.tox .tox-mbtn[disabled]{background-color:transparent;border:0;box-shadow:none;color:rgba(34,47,62,.5);cursor:not-allowed}.tox .tox-mbtn:focus:not(:disabled){background:#cce2fa;border:0;box-shadow:none;color:#222f3e}.tox .tox-mbtn--active{background:#a6ccf7;border:0;box-shadow:none;color:#222f3e}.tox .tox-mbtn:hover:not(:disabled):not(.tox-mbtn--active){background:#cce2fa;border:0;box-shadow:none;color:#222f3e}.tox .tox-mbtn__select-label{cursor:default;font-weight:400;margin:0 4px}.tox .tox-mbtn[disabled] .tox-mbtn__select-label{cursor:not-allowed}.tox .tox-mbtn__select-chevron{align-items:center;display:flex;justify-content:center;width:16px;display:none}.tox .tox-notification{border-radius:6px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;display:grid;font-size:14px;font-weight:400;grid-template-columns:minmax(40px,1fr) auto minmax(40px,1fr);margin-top:4px;opacity:0;padding:4px;transition:transform .1s ease-in,opacity 150ms ease-in}.tox .tox-notification p{font-size:14px;font-weight:400}.tox .tox-notification a{cursor:pointer;text-decoration:underline}.tox .tox-notification--in{opacity:1}.tox .tox-notification--success{background-color:#e4eeda;border-color:#d7e6c8;color:#222f3e}.tox .tox-notification--success p{color:#222f3e}.tox .tox-notification--success a{color:#517342}.tox .tox-notification--success svg{fill:#222f3e}.tox .tox-notification--error{background-color:#f5cccc;border-color:#f0b3b3;color:#222f3e}.tox .tox-notification--error p{color:#222f3e}.tox .tox-notification--error a{color:#77181f}.tox .tox-notification--error svg{fill:#222f3e}.tox .tox-notification--warn,.tox .tox-notification--warning{background-color:#fff5cc;border-color:#fff0b3;color:#222f3e}.tox .tox-notification--warn p,.tox .tox-notification--warning p{color:#222f3e}.tox .tox-notification--warn a,.tox .tox-notification--warning a{color:#7a6e25}.tox .tox-notification--warn svg,.tox .tox-notification--warning svg{fill:#222f3e}.tox .tox-notification--info{background-color:#d6e7fb;border-color:#c1dbf9;color:#222f3e}.tox .tox-notification--info p{color:#222f3e}.tox .tox-notification--info a{color:#2a64a6}.tox .tox-notification--info svg{fill:#222f3e}.tox .tox-notification__body{align-self:center;color:#222f3e;font-size:14px;grid-column-end:3;grid-column-start:2;grid-row-end:2;grid-row-start:1;text-align:center;white-space:normal;word-break:break-all;word-break:break-word}.tox .tox-notification__body>*{margin:0}.tox .tox-notification__body>*+*{margin-top:1rem}.tox .tox-notification__icon{align-self:center;grid-column-end:2;grid-column-start:1;grid-row-end:2;grid-row-start:1;justify-self:end}.tox .tox-notification__icon svg{display:block}.tox .tox-notification__dismiss{align-self:start;grid-column-end:4;grid-column-start:3;grid-row-end:2;grid-row-start:1;justify-self:end}.tox .tox-notification .tox-progress-bar{grid-column-end:4;grid-column-start:1;grid-row-end:3;grid-row-start:2;justify-self:center}.tox .tox-pop{display:inline-block;position:relative}.tox .tox-pop--resizing{transition:width .1s ease}.tox .tox-pop--resizing .tox-toolbar,.tox .tox-pop--resizing .tox-toolbar__group{flex-wrap:nowrap}.tox .tox-pop--transition{transition:.15s ease;transition-property:left,right,top,bottom}.tox .tox-pop--transition::after,.tox .tox-pop--transition::before{transition:all .15s,visibility 0s,opacity 75ms ease 75ms}.tox .tox-pop__dialog{background-color:#fff;border:1px solid #eee;border-radius:6px;box-shadow:0 0 2px 0 rgba(34,47,62,.2),0 4px 8px 0 rgba(34,47,62,.15);min-width:0;overflow:hidden}.tox .tox-pop__dialog>:not(.tox-toolbar){margin:4px 4px 4px 8px}.tox .tox-pop__dialog .tox-toolbar{background-color:transparent;margin-bottom:-1px}.tox .tox-pop::after,.tox .tox-pop::before{border-style:solid;content:'';display:block;height:0;opacity:1;position:absolute;width:0}.tox .tox-pop.tox-pop--inset::after,.tox .tox-pop.tox-pop--inset::before{opacity:0;transition:all 0s .15s,visibility 0s,opacity 75ms ease}.tox .tox-pop.tox-pop--bottom::after,.tox .tox-pop.tox-pop--bottom::before{left:50%;top:100%}.tox .tox-pop.tox-pop--bottom::after{border-color:#fff transparent transparent transparent;border-width:8px;margin-left:-8px;margin-top:-1px}.tox .tox-pop.tox-pop--bottom::before{border-color:#eee transparent transparent transparent;border-width:9px;margin-left:-9px}.tox .tox-pop.tox-pop--top::after,.tox .tox-pop.tox-pop--top::before{left:50%;top:0;transform:translateY(-100%)}.tox .tox-pop.tox-pop--top::after{border-color:transparent transparent #fff transparent;border-width:8px;margin-left:-8px;margin-top:1px}.tox .tox-pop.tox-pop--top::before{border-color:transparent transparent #eee transparent;border-width:9px;margin-left:-9px}.tox .tox-pop.tox-pop--left::after,.tox .tox-pop.tox-pop--left::before{left:0;top:calc(50% - 1px);transform:translateY(-50%)}.tox .tox-pop.tox-pop--left::after{border-color:transparent #fff transparent transparent;border-width:8px;margin-left:-15px}.tox .tox-pop.tox-pop--left::before{border-color:transparent #eee transparent transparent;border-width:10px;margin-left:-19px}.tox .tox-pop.tox-pop--right::after,.tox .tox-pop.tox-pop--right::before{left:100%;top:calc(50% + 1px);transform:translateY(-50%)}.tox .tox-pop.tox-pop--right::after{border-color:transparent transparent transparent #fff;border-width:8px;margin-left:-1px}.tox .tox-pop.tox-pop--right::before{border-color:transparent transparent transparent #eee;border-width:10px;margin-left:-1px}.tox .tox-pop.tox-pop--align-left::after,.tox .tox-pop.tox-pop--align-left::before{left:20px}.tox .tox-pop.tox-pop--align-right::after,.tox .tox-pop.tox-pop--align-right::before{left:calc(100% - 20px)}.tox .tox-sidebar-wrap{display:flex;flex-direction:row;flex-grow:1;min-height:0}.tox .tox-sidebar{background-color:#fff;display:flex;flex-direction:row;justify-content:flex-end}.tox .tox-sidebar__slider{display:flex;overflow:hidden}.tox .tox-sidebar__pane-container{display:flex}.tox .tox-sidebar__pane{display:flex}.tox .tox-sidebar--sliding-closed{opacity:0}.tox .tox-sidebar--sliding-open{opacity:1}.tox .tox-sidebar--sliding-growing,.tox .tox-sidebar--sliding-shrinking{transition:width .5s ease,opacity .5s ease}.tox .tox-selector{background-color:#4099ff;border-color:#4099ff;border-style:solid;border-width:1px;box-sizing:border-box;display:inline-block;height:10px;position:absolute;width:10px}.tox.tox-platform-touch .tox-selector{height:12px;width:12px}.tox .tox-slider{align-items:center;display:flex;flex:1;height:24px;justify-content:center;position:relative}.tox .tox-slider__rail{background-color:transparent;border:1px solid #eee;border-radius:6px;height:10px;min-width:120px;width:100%}.tox .tox-slider__handle{background-color:#006ce7;border:2px solid #0054b4;border-radius:6px;box-shadow:none;height:24px;left:50%;position:absolute;top:50%;transform:translateX(-50%) translateY(-50%);width:14px}.tox .tox-form__controls-h-stack>.tox-slider:not(:first-of-type){margin-inline-start:8px}.tox .tox-form__controls-h-stack>.tox-form__group+.tox-slider{margin-inline-start:32px}.tox .tox-form__controls-h-stack>.tox-slider+.tox-form__group{margin-inline-start:32px}.tox .tox-source-code{overflow:auto}.tox .tox-spinner{display:flex}.tox .tox-spinner>div{animation:tam-bouncing-dots 1.5s ease-in-out 0s infinite both;background-color:rgba(34,47,62,.7);border-radius:100%;height:8px;width:8px}.tox .tox-spinner>div:nth-child(1){animation-delay:-.32s}.tox .tox-spinner>div:nth-child(2){animation-delay:-.16s}@keyframes tam-bouncing-dots{0%,100%,80%{transform:scale(0)}40%{transform:scale(1)}}.tox:not([dir=rtl]) .tox-spinner>div:not(:first-child){margin-left:4px}.tox[dir=rtl] .tox-spinner>div:not(:first-child){margin-right:4px}.tox .tox-statusbar{align-items:center;background-color:#fff;border-top:1px solid #e3e3e3;color:rgba(34,47,62,.7);display:flex;flex:0 0 auto;font-size:14px;font-weight:400;height:25px;overflow:hidden;padding:0 8px;position:relative;text-transform:none}.tox .tox-statusbar__path{display:flex;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tox .tox-statusbar__right-container{display:flex;justify-content:flex-end;white-space:nowrap}.tox .tox-statusbar__help-text{text-align:center}.tox .tox-statusbar__text-container{display:flex;flex:1 1 auto;justify-content:space-between;overflow:hidden}@media only screen and (min-width:768px){.tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols>.tox-statusbar__help-text,.tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols>.tox-statusbar__path,.tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols>.tox-statusbar__right-container{flex:0 0 calc(100% / 3)}}.tox .tox-statusbar__text-container.tox-statusbar__text-container--flex-end{justify-content:flex-end}.tox .tox-statusbar__text-container.tox-statusbar__text-container--flex-start{justify-content:flex-start}.tox .tox-statusbar__text-container.tox-statusbar__text-container--space-around{justify-content:space-around}.tox .tox-statusbar__path>*{display:inline;white-space:nowrap}.tox .tox-statusbar__wordcount{flex:0 0 auto;margin-left:1ch}@media only screen and (max-width:767px){.tox .tox-statusbar__text-container .tox-statusbar__help-text{display:none}.tox .tox-statusbar__text-container .tox-statusbar__help-text:only-child{display:block}}.tox .tox-statusbar a,.tox .tox-statusbar__path-item,.tox .tox-statusbar__wordcount{color:rgba(34,47,62,.7);text-decoration:none}.tox .tox-statusbar a:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar a:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:hover:not(:disabled):not([aria-disabled=true]){color:#222f3e;cursor:pointer}.tox .tox-statusbar__branding svg{fill:rgba(34,47,62,.8);height:1.14em;vertical-align:-.28em;width:3.6em}.tox .tox-statusbar__branding a:focus:not(:disabled):not([aria-disabled=true]) svg,.tox .tox-statusbar__branding a:hover:not(:disabled):not([aria-disabled=true]) svg{fill:#222f3e}.tox .tox-statusbar__resize-handle{align-items:flex-end;align-self:stretch;cursor:nwse-resize;display:flex;flex:0 0 auto;justify-content:flex-end;margin-left:auto;margin-right:-8px;padding-bottom:3px;padding-left:1ch;padding-right:3px}.tox .tox-statusbar__resize-handle svg{display:block;fill:rgba(34,47,62,.5)}.tox .tox-statusbar__resize-handle:focus svg{background-color:#dee0e2;border-radius:1px 1px 5px 1px;box-shadow:0 0 0 2px #dee0e2}.tox:not([dir=rtl]) .tox-statusbar__path>*{margin-right:4px}.tox:not([dir=rtl]) .tox-statusbar__branding{margin-left:2ch}.tox[dir=rtl] .tox-statusbar{flex-direction:row-reverse}.tox[dir=rtl] .tox-statusbar__path>*{margin-left:4px}.tox .tox-throbber{z-index:1299}.tox .tox-throbber__busy-spinner{align-items:center;background-color:rgba(255,255,255,.6);bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}.tox .tox-tbtn{align-items:center;background:0 0;border:0;border-radius:3px;box-shadow:none;color:#222f3e;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:400;height:28px;justify-content:center;margin:6px 1px 5px 0;outline:0;overflow:hidden;padding:0;text-transform:none;width:34px}.tox .tox-tbtn svg{display:block;fill:#222f3e}.tox .tox-tbtn.tox-tbtn-more{padding-left:5px;padding-right:5px;width:inherit}.tox .tox-tbtn:focus{background:#cce2fa;border:0;box-shadow:none}.tox .tox-tbtn:hover{background:#cce2fa;border:0;box-shadow:none;color:#222f3e}.tox .tox-tbtn:hover svg{fill:#222f3e}.tox .tox-tbtn:active{background:#a6ccf7;border:0;box-shadow:none;color:#222f3e}.tox .tox-tbtn:active svg{fill:#222f3e}.tox .tox-tbtn--disabled .tox-tbtn--enabled svg{fill:rgba(34,47,62,.5)}.tox .tox-tbtn--disabled,.tox .tox-tbtn--disabled:hover,.tox .tox-tbtn:disabled,.tox .tox-tbtn:disabled:hover{background:0 0;border:0;box-shadow:none;color:rgba(34,47,62,.5);cursor:not-allowed}.tox .tox-tbtn--disabled svg,.tox .tox-tbtn--disabled:hover svg,.tox .tox-tbtn:disabled svg,.tox .tox-tbtn:disabled:hover svg{fill:rgba(34,47,62,.5)}.tox .tox-tbtn--enabled,.tox .tox-tbtn--enabled:hover{background:#a6ccf7;border:0;box-shadow:none;color:#222f3e}.tox .tox-tbtn--enabled:hover>*,.tox .tox-tbtn--enabled>*{transform:none}.tox .tox-tbtn--enabled svg,.tox .tox-tbtn--enabled:hover svg{fill:#222f3e}.tox .tox-tbtn--enabled.tox-tbtn--disabled svg,.tox .tox-tbtn--enabled:hover.tox-tbtn--disabled svg{fill:rgba(34,47,62,.5)}.tox .tox-tbtn:focus:not(.tox-tbtn--disabled){color:#222f3e}.tox .tox-tbtn:focus:not(.tox-tbtn--disabled) svg{fill:#222f3e}.tox .tox-tbtn:active>*{transform:none}.tox .tox-tbtn--md{height:42px;width:51px}.tox .tox-tbtn--lg{flex-direction:column;height:56px;width:68px}.tox .tox-tbtn--return{align-self:stretch;height:unset;width:16px}.tox .tox-tbtn--labeled{padding:0 4px;width:unset}.tox .tox-tbtn__vlabel{display:block;font-size:10px;font-weight:400;letter-spacing:-.025em;margin-bottom:4px;white-space:nowrap}.tox .tox-number-input{border-radius:3px;display:flex;margin:6px 1px 5px 0;padding:0 4px;width:auto}.tox .tox-number-input .tox-input-wrapper{background:#f7f7f7;display:flex;pointer-events:none;text-align:center}.tox .tox-number-input .tox-input-wrapper:focus{background:#cce2fa}.tox .tox-number-input input{border-radius:3px;color:#222f3e;font-size:14px;margin:2px 0;pointer-events:all;width:60px}.tox .tox-number-input input:hover{background:#cce2fa;color:#222f3e}.tox .tox-number-input input:focus{background:#fff;color:#222f3e}.tox .tox-number-input input:disabled{background:0 0;border:0;box-shadow:none;color:rgba(34,47,62,.5);cursor:not-allowed}.tox .tox-number-input button{background:#f7f7f7;color:#222f3e;height:28px;text-align:center;width:24px}.tox .tox-number-input button svg{display:block;fill:#222f3e;margin:0 auto;transform:scale(.67)}.tox .tox-number-input button:focus{background:#cce2fa}.tox .tox-number-input button:hover{background:#cce2fa;border:0;box-shadow:none;color:#222f3e}.tox .tox-number-input button:hover svg{fill:#222f3e}.tox .tox-number-input button:active{background:#a6ccf7;border:0;box-shadow:none;color:#222f3e}.tox .tox-number-input button:active svg{fill:#222f3e}.tox .tox-number-input button:disabled{background:0 0;border:0;box-shadow:none;color:rgba(34,47,62,.5);cursor:not-allowed}.tox .tox-number-input button:disabled svg{fill:rgba(34,47,62,.5)}.tox .tox-number-input button.minus{border-radius:3px 0 0 3px}.tox .tox-number-input button.plus{border-radius:0 3px 3px 0}.tox .tox-number-input:focus:not(:active)>.tox-input-wrapper,.tox .tox-number-input:focus:not(:active)>button{background:#cce2fa}.tox .tox-tbtn--select{margin:6px 1px 5px 0;padding:0 4px;width:auto}.tox .tox-tbtn__select-label{cursor:default;font-weight:400;height:initial;margin:0 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tox .tox-tbtn__select-chevron{align-items:center;display:flex;justify-content:center;width:16px}.tox .tox-tbtn__select-chevron svg{fill:rgba(34,47,62,.5)}.tox .tox-tbtn--bespoke{background:#f7f7f7}.tox .tox-tbtn--bespoke+.tox-tbtn--bespoke{margin-inline-start:4px}.tox .tox-tbtn--bespoke .tox-tbtn__select-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:7em}.tox .tox-tbtn--disabled .tox-tbtn__select-label,.tox .tox-tbtn--select:disabled .tox-tbtn__select-label{cursor:not-allowed}.tox .tox-split-button{border:0;border-radius:3px;box-sizing:border-box;display:flex;margin:6px 1px 5px 0;overflow:hidden}.tox .tox-split-button:hover{box-shadow:0 0 0 1px #cce2fa inset}.tox .tox-split-button:focus{background:#cce2fa;box-shadow:none;color:#222f3e}.tox .tox-split-button>*{border-radius:0}.tox .tox-split-button__chevron{width:16px}.tox .tox-split-button__chevron svg{fill:rgba(34,47,62,.5)}.tox .tox-split-button .tox-tbtn{margin:0}.tox .tox-split-button.tox-tbtn--disabled .tox-tbtn:focus,.tox .tox-split-button.tox-tbtn--disabled .tox-tbtn:hover,.tox .tox-split-button.tox-tbtn--disabled:focus,.tox .tox-split-button.tox-tbtn--disabled:hover{background:0 0;box-shadow:none;color:rgba(34,47,62,.5)}.tox.tox-platform-touch .tox-split-button .tox-tbtn--select{padding:0 0}.tox.tox-platform-touch .tox-split-button .tox-tbtn:not(.tox-tbtn--select):first-child{width:30px}.tox.tox-platform-touch .tox-split-button__chevron{width:20px}.tox .tox-split-button.tox-tbtn--disabled svg #tox-icon-highlight-bg-color__color,.tox .tox-split-button.tox-tbtn--disabled svg #tox-icon-text-color__color{opacity:.6}.tox .tox-toolbar-overlord{background-color:#fff}.tox .tox-toolbar,.tox .tox-toolbar__overflow,.tox .tox-toolbar__primary{background-attachment:local;background-color:#fff;background-image:repeating-linear-gradient(#e3e3e3 0 1px,transparent 1px 39px);background-position:center top 40px;background-repeat:no-repeat;background-size:calc(100% - 11px * 2) calc(100% - 41px);display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:wrap;padding:0 0;transform:perspective(1px)}.tox .tox-toolbar-overlord>.tox-toolbar,.tox .tox-toolbar-overlord>.tox-toolbar__overflow,.tox .tox-toolbar-overlord>.tox-toolbar__primary{background-position:center top 0;background-size:calc(100% - 11px * 2) calc(100% - 0px)}.tox .tox-toolbar__overflow.tox-toolbar__overflow--closed{height:0;opacity:0;padding-bottom:0;padding-top:0;visibility:hidden}.tox .tox-toolbar__overflow--growing{transition:height .3s ease,opacity .2s linear .1s}.tox .tox-toolbar__overflow--shrinking{transition:opacity .3s ease,height .2s linear .1s,visibility 0s linear .3s}.tox .tox-anchorbar,.tox .tox-toolbar-overlord{grid-column:1/-1}.tox .tox-menubar+.tox-toolbar,.tox .tox-menubar+.tox-toolbar-overlord{border-top:1px solid transparent;margin-top:-1px;padding-bottom:1px;padding-top:1px}.tox .tox-toolbar--scrolling{flex-wrap:nowrap;overflow-x:auto}.tox .tox-pop .tox-toolbar{border-width:0}.tox .tox-toolbar--no-divider{background-image:none}.tox .tox-toolbar-overlord .tox-toolbar:not(.tox-toolbar--scrolling):first-child,.tox .tox-toolbar-overlord .tox-toolbar__primary{background-position:center top 39px}.tox .tox-editor-header>.tox-toolbar--scrolling,.tox .tox-toolbar-overlord .tox-toolbar--scrolling:first-child{background-image:none}.tox.tox-tinymce-aux .tox-toolbar__overflow{background-color:#fff;background-position:center top 43px;background-size:calc(100% - 8px * 2) calc(100% - 51px);border:none;border-radius:6px;box-shadow:0 0 2px 0 rgba(34,47,62,.2),0 4px 8px 0 rgba(34,47,62,.15);overscroll-behavior:none;padding:4px 0}.tox-pop .tox-pop__dialog .tox-toolbar{background-position:center top 43px;background-size:calc(100% - 11px * 2) calc(100% - 51px);padding:4px 0}.tox .tox-toolbar__group{align-items:center;display:flex;flex-wrap:wrap;margin:0 0;padding:0 11px 0 12px}.tox .tox-toolbar__group--pull-right{margin-left:auto}.tox .tox-toolbar--scrolling .tox-toolbar__group{flex-shrink:0;flex-wrap:nowrap}.tox:not([dir=rtl]) .tox-toolbar__group:not(:last-of-type){border-right:1px solid transparent}.tox[dir=rtl] .tox-toolbar__group:not(:last-of-type){border-left:1px solid transparent}.tox .tox-tooltip{display:inline-block;padding:8px;position:relative}.tox .tox-tooltip__body{background-color:#222f3e;border-radius:6px;box-shadow:0 2px 4px rgba(34,47,62,.3);color:rgba(255,255,255,.75);font-size:14px;font-style:normal;font-weight:400;padding:4px 8px;text-transform:none}.tox .tox-tooltip__arrow{position:absolute}.tox .tox-tooltip--down .tox-tooltip__arrow{border-left:8px solid transparent;border-right:8px solid transparent;border-top:8px solid #222f3e;bottom:0;left:50%;position:absolute;transform:translateX(-50%)}.tox .tox-tooltip--up .tox-tooltip__arrow{border-bottom:8px solid #222f3e;border-left:8px solid transparent;border-right:8px solid transparent;left:50%;position:absolute;top:0;transform:translateX(-50%)}.tox .tox-tooltip--right .tox-tooltip__arrow{border-bottom:8px solid transparent;border-left:8px solid #222f3e;border-top:8px solid transparent;position:absolute;right:0;top:50%;transform:translateY(-50%)}.tox .tox-tooltip--left .tox-tooltip__arrow{border-bottom:8px solid transparent;border-right:8px solid #222f3e;border-top:8px solid transparent;left:0;position:absolute;top:50%;transform:translateY(-50%)}.tox .tox-tree{display:flex;flex-direction:column}.tox .tox-tree .tox-trbtn{align-items:center;background:0 0;border:0;border-radius:4px;box-shadow:none;color:#222f3e;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:400;height:28px;margin-bottom:4px;margin-top:4px;outline:0;overflow:hidden;padding:0;padding-left:8px;text-transform:none}.tox .tox-tree .tox-trbtn .tox-tree__label{cursor:default;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tox .tox-tree .tox-trbtn svg{display:block;fill:#222f3e}.tox .tox-tree .tox-trbtn:focus{background:#cce2fa;border:0;box-shadow:none}.tox .tox-tree .tox-trbtn:hover{background:#cce2fa;border:0;box-shadow:none;color:#222f3e}.tox .tox-tree .tox-trbtn:hover svg{fill:#222f3e}.tox .tox-tree .tox-trbtn:active{background:#a6ccf7;border:0;box-shadow:none;color:#222f3e}.tox .tox-tree .tox-trbtn:active svg{fill:#222f3e}.tox .tox-tree .tox-trbtn--disabled,.tox .tox-tree .tox-trbtn--disabled:hover,.tox .tox-tree .tox-trbtn:disabled,.tox .tox-tree .tox-trbtn:disabled:hover{background:0 0;border:0;box-shadow:none;color:rgba(34,47,62,.5);cursor:not-allowed}.tox .tox-tree .tox-trbtn--disabled svg,.tox .tox-tree .tox-trbtn--disabled:hover svg,.tox .tox-tree .tox-trbtn:disabled svg,.tox .tox-tree .tox-trbtn:disabled:hover svg{fill:rgba(34,47,62,.5)}.tox .tox-tree .tox-trbtn--enabled,.tox .tox-tree .tox-trbtn--enabled:hover{background:#a6ccf7;border:0;box-shadow:none;color:#222f3e}.tox .tox-tree .tox-trbtn--enabled:hover>*,.tox .tox-tree .tox-trbtn--enabled>*{transform:none}.tox .tox-tree .tox-trbtn--enabled svg,.tox .tox-tree .tox-trbtn--enabled:hover svg{fill:#222f3e}.tox .tox-tree .tox-trbtn:focus:not(.tox-trbtn--disabled){color:#222f3e}.tox .tox-tree .tox-trbtn:focus:not(.tox-trbtn--disabled) svg{fill:#222f3e}.tox .tox-tree .tox-trbtn:active>*{transform:none}.tox .tox-tree .tox-trbtn--return{align-self:stretch;height:unset;width:16px}.tox .tox-tree .tox-trbtn--labeled{padding:0 4px;width:unset}.tox .tox-tree .tox-trbtn__vlabel{display:block;font-size:10px;font-weight:400;letter-spacing:-.025em;margin-bottom:4px;white-space:nowrap}.tox .tox-tree .tox-tree--directory{display:flex;flex-direction:column}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label{font-weight:700}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn{margin-left:auto}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn svg{fill:transparent}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn.tox-mbtn--active svg,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn:focus svg{fill:#222f3e}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:focus .tox-mbtn svg,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover .tox-mbtn svg{fill:#222f3e}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover:has(.tox-mbtn:hover){background-color:transparent;color:#222f3e}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover:has(.tox-mbtn:hover) .tox-chevron svg{fill:#222f3e}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-chevron{margin-right:6px}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--growing) .tox-chevron,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--shrinking) .tox-chevron{transition:transform .5s ease-in-out}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--growing) .tox-chevron,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--open) .tox-chevron{transform:rotate(90deg)}.tox .tox-tree .tox-tree--leaf__label{font-weight:400}.tox .tox-tree .tox-tree--leaf__label .tox-mbtn{margin-left:auto}.tox .tox-tree .tox-tree--leaf__label .tox-mbtn svg{fill:transparent}.tox .tox-tree .tox-tree--leaf__label .tox-mbtn.tox-mbtn--active svg,.tox .tox-tree .tox-tree--leaf__label .tox-mbtn:focus svg{fill:#222f3e}.tox .tox-tree .tox-tree--leaf__label:hover .tox-mbtn svg{fill:#222f3e}.tox .tox-tree .tox-tree--leaf__label:hover:has(.tox-mbtn:hover){background-color:transparent;color:#222f3e}.tox .tox-tree .tox-tree--leaf__label:hover:has(.tox-mbtn:hover) .tox-chevron svg{fill:#222f3e}.tox .tox-tree .tox-tree--directory__children{overflow:hidden;padding-left:16px}.tox .tox-tree .tox-tree--directory__children.tox-tree--directory__children--growing,.tox .tox-tree .tox-tree--directory__children.tox-tree--directory__children--shrinking{transition:height .5s ease-in-out}.tox .tox-tree .tox-trbtn.tox-tree--leaf__label{display:flex;justify-content:space-between}.tox .tox-view-wrap,.tox .tox-view-wrap__slot-container{background-color:#fff;display:flex;flex:1;flex-direction:column}.tox .tox-view{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.tox .tox-view__header{align-items:center;display:flex;font-size:16px;justify-content:space-between;padding:8px 8px 0 8px;position:relative}.tox .tox-view--mobile.tox-view__header,.tox .tox-view--mobile.tox-view__toolbar{padding:8px}.tox .tox-view--scrolling{flex-wrap:nowrap;overflow-x:auto}.tox .tox-view__toolbar{display:flex;flex-direction:row;gap:8px;justify-content:space-between;padding:8px 8px 0 8px}.tox .tox-view__toolbar__group{display:flex;flex-direction:row;gap:12px}.tox .tox-view__header-end,.tox .tox-view__header-start{display:flex}.tox .tox-view__pane{height:100%;padding:8px;width:100%}.tox .tox-view__pane_panel{border:1px solid #eee;border-radius:6px}.tox:not([dir=rtl]) .tox-view__header .tox-view__header-end>*,.tox:not([dir=rtl]) .tox-view__header .tox-view__header-start>*{margin-left:8px}.tox[dir=rtl] .tox-view__header .tox-view__header-end>*,.tox[dir=rtl] .tox-view__header .tox-view__header-start>*{margin-right:8px}.tox .tox-well{border:1px solid #eee;border-radius:6px;padding:8px;width:100%}.tox .tox-well>:first-child{margin-top:0}.tox .tox-well>:last-child{margin-bottom:0}.tox .tox-well>:only-child{margin:0}.tox .tox-custom-editor{border:1px solid #eee;border-radius:6px;display:flex;flex:1;overflow:hidden;position:relative}.tox .tox-dialog-loading::before{background-color:rgba(0,0,0,.5);content:"";height:100%;position:absolute;width:100%;z-index:1000}.tox .tox-tab{cursor:pointer}.tox .tox-dialog__content-js{display:flex;flex:1}.tox .tox-dialog__body-content .tox-collection{display:flex;flex:1} diff --git a/tinymce-resource/skins/ui/oxide/skin.shadowdom.css b/tinymce-resource/skins/ui/oxide/skin.shadowdom.css new file mode 100644 index 000000000..25b0a3710 --- /dev/null +++ b/tinymce-resource/skins/ui/oxide/skin.shadowdom.css @@ -0,0 +1,30 @@ +body.tox-dialog__disable-scroll { + overflow: hidden; +} +.tox-fullscreen { + border: 0; + height: 100%; + margin: 0; + overflow: hidden; + overscroll-behavior: none; + padding: 0; + touch-action: pinch-zoom; + width: 100%; +} +.tox.tox-tinymce.tox-fullscreen .tox-statusbar__resize-handle { + display: none; +} +.tox.tox-tinymce.tox-fullscreen, +.tox-shadowhost.tox-fullscreen { + left: 0; + position: fixed; + top: 0; + z-index: 1200; +} +.tox.tox-tinymce.tox-fullscreen { + background-color: transparent; +} +.tox-fullscreen .tox.tox-tinymce-aux, +.tox-fullscreen ~ .tox.tox-tinymce-aux { + z-index: 1201; +} diff --git a/tinymce-resource/skins/ui/oxide/skin.shadowdom.js b/tinymce-resource/skins/ui/oxide/skin.shadowdom.js new file mode 100644 index 000000000..9c75844d1 --- /dev/null +++ b/tinymce-resource/skins/ui/oxide/skin.shadowdom.js @@ -0,0 +1,2 @@ +tinymce.Resource.add('ui/default/skin.shadowdom.css', "body.tox-dialog__disable-scroll{overflow:hidden}.tox-fullscreen{border:0;height:100%;margin:0;overflow:hidden;overscroll-behavior:none;padding:0;touch-action:pinch-zoom;width:100%}.tox.tox-tinymce.tox-fullscreen .tox-statusbar__resize-handle{display:none}.tox-shadowhost.tox-fullscreen,.tox.tox-tinymce.tox-fullscreen{left:0;position:fixed;top:0;z-index:1200}.tox.tox-tinymce.tox-fullscreen{background-color:transparent}.tox-fullscreen .tox.tox-tinymce-aux,.tox-fullscreen~.tox.tox-tinymce-aux{z-index:1201}") +//# sourceMappingURL=skin.shadowdom.js.map diff --git a/tinymce-resource/skins/ui/oxide/skin.shadowdom.min.css b/tinymce-resource/skins/ui/oxide/skin.shadowdom.min.css new file mode 100644 index 000000000..8745951a4 --- /dev/null +++ b/tinymce-resource/skins/ui/oxide/skin.shadowdom.min.css @@ -0,0 +1 @@ +body.tox-dialog__disable-scroll{overflow:hidden}.tox-fullscreen{border:0;height:100%;margin:0;overflow:hidden;overscroll-behavior:none;padding:0;touch-action:pinch-zoom;width:100%}.tox.tox-tinymce.tox-fullscreen .tox-statusbar__resize-handle{display:none}.tox-shadowhost.tox-fullscreen,.tox.tox-tinymce.tox-fullscreen{left:0;position:fixed;top:0;z-index:1200}.tox.tox-tinymce.tox-fullscreen{background-color:transparent}.tox-fullscreen .tox.tox-tinymce-aux,.tox-fullscreen~.tox.tox-tinymce-aux{z-index:1201}