ss-component-new 1.1.605 → 1.1.607
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{array-mnEYd91h.cjs → array-C1gcNGaP.cjs} +1 -1
- package/dist/{array-wJSGLzMi.js → array-CaisX3_y.js} +1 -1
- package/dist/{index-jvd5BlOv.js → index-2Wg02nub.js} +3 -3
- package/dist/index-2tDhJ_PE.cjs +74 -0
- package/dist/{index-BFZVT-Sq.js → index-B1cMw_e2.js} +1 -1
- package/dist/{index-B3S96rWX.js → index-B807Lss8.js} +5 -5
- package/dist/{index-D5dSCTOb.cjs → index-BB7D-KhK.cjs} +1 -1
- package/dist/{index-CE-DNAtJ.cjs → index-BE4_rScS.cjs} +1 -1
- package/dist/{index-BJi_ECqJ.cjs → index-BJT2Fp0F.cjs} +1 -1
- package/dist/{index-BoTmnPfw.js → index-BK5LNaz2.js} +3 -3
- package/dist/{index-BhXpwWAD.cjs → index-BLu4cCOv.cjs} +1 -1
- package/dist/{index-BTFOodKO.cjs → index-BO2NNsQ3.cjs} +1 -1
- package/dist/index-BXKDfdBV.js +4482 -0
- package/dist/{index-CbVh7iYe.cjs → index-BgX_ia5H.cjs} +1 -1
- package/dist/{index-Dhe8iP7z.cjs → index-BhfNBV_Y.cjs} +1 -1
- package/dist/{index-CEkkLcyX.js → index-BibVOdJy.js} +8 -8
- package/dist/{index-z1u39i0Q.js → index-BlEsLLOQ.js} +3 -3
- package/dist/{index-CGVBRzfc.js → index-BmzN-3ze.js} +5 -5
- package/dist/{index-Dm8EQvZF.cjs → index-Bn3uMi-8.cjs} +1 -1
- package/dist/index-BsQ8_gbw.cjs +1 -0
- package/dist/{index-DYF20hZA.cjs → index-CEoanfoT.cjs} +1 -1
- package/dist/{index-C35HTOcd.js → index-CV9GhHVQ.js} +13 -13
- package/dist/{index-CDeREboV.js → index-CVee1Bur.js} +6 -6
- package/dist/{index-D0x4MvAM.cjs → index-Cplpn8hS.cjs} +2 -2
- package/dist/{index-DOiC1373.cjs → index-CrE-2oNV.cjs} +1 -1
- package/dist/{index-C0CRKcQx.cjs → index-Cuz54Fkl.cjs} +10 -10
- package/dist/{index-B1ApyEfu.cjs → index-CxutEIsS.cjs} +1 -1
- package/dist/{index-COrn88rF.js → index-D-gtCink.js} +15 -15
- package/dist/{index-j2a9krnF.cjs → index-D8E80dju.cjs} +1 -1
- package/dist/{index-BOb-2bQ6.js → index-D8wJ8OVO.js} +2 -2
- package/dist/{index-5CvXwzwG.cjs → index-DB2epzvg.cjs} +1 -1
- package/dist/{index-BAb0kfXo.js → index-DFX5NE_3.js} +36 -37
- package/dist/{index-CXqD_FTn.cjs → index-DGCcBd5v.cjs} +1 -1
- package/dist/{index-CMcDLpN5.js → index-DKk2Yk2F.js} +4 -4
- package/dist/{index-FXurbsHT.js → index-DLSzOar0.js} +4 -4
- package/dist/{index-Bw96u8wR.cjs → index-Df6NZqSR.cjs} +1 -1
- package/dist/{index-Dn8la5dB.js → index-Dn4SxfsB.js} +4 -4
- package/dist/{index-BBqMNSK_.cjs → index-DsUHBIBK.cjs} +1 -1
- package/dist/{index-CZrl0Fev.js → index-DsYFSymz.js} +4 -4
- package/dist/{index-D8IKCabu.cjs → index-DyxA9Pwa.cjs} +1 -1
- package/dist/{index-DqD_Hyzj.js → index-GsF9RQ1o.js} +5 -5
- package/dist/{index-CmXpvujN.js → index-HkaBIp59.js} +1 -1
- package/dist/{index-DIrvEGH-.js → index-MFHk1eEx.js} +4 -4
- package/dist/{index-CeO47quJ.js → index-S1z7XnLi.js} +3 -3
- package/dist/{index-Bkm9CeI0.js → index-V9vs-ScR.js} +1 -1
- package/dist/{index-i_Upngyu.js → index-Y9kXXuBJ.js} +5 -5
- package/dist/{index-Cnd5Q6NW.js → index-Z04SVHEk.js} +1 -1
- package/dist/{index-CJ_rdkr8.js → index-hBF27unU.js} +7021 -7051
- package/dist/{index-B92TAYd7.cjs → index-hNt29cU7.cjs} +1 -1
- package/dist/{index--8CVtL-E.cjs → index-rTgVjPGa.cjs} +1 -1
- package/dist/{index-C3HU3x5-.cjs → index-uYHnI5wK.cjs} +1 -1
- package/dist/{index-l52VRsV3.cjs → index-v95HBZGa.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-B7vWHeIj.cjs → index.vue_vue_type_script_setup_true_lang-CeNJa0E4.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-DRLcD2rZ.js → index.vue_vue_type_script_setup_true_lang-DBVpFaiR.js} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CixHWeC-.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CJBQxdRk.js} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CtG0TYo3.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Dz4Fg0J1.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_1ee6cc73_lang-DaN_9lgK.cjs → index.vue_vue_type_style_index_0_scoped_1ee6cc73_lang-Biklcd9I.cjs} +9 -9
- package/dist/{index.vue_vue_type_style_index_0_scoped_1ee6cc73_lang-CWG3xdoz.js → index.vue_vue_type_style_index_0_scoped_1ee6cc73_lang-C5-XfA7-.js} +2090 -2084
- package/dist/{index.vue_vue_type_style_index_0_scoped_9a453346_lang-CmpUd8Zj.cjs → index.vue_vue_type_style_index_0_scoped_9a453346_lang-C1BOdGun.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_9a453346_lang-BOENsqzc.js → index.vue_vue_type_style_index_0_scoped_9a453346_lang-DgHSOxfw.js} +8 -8
- package/dist/{login-afGmER0u.js → login-B63LEngH.js} +1 -1
- package/dist/{login-BBvcYktp.cjs → login-Db7lD3cs.cjs} +1 -1
- package/dist/{main-Cd47eVrO.cjs → main-B_yFDeIi.cjs} +1 -1
- package/dist/{main-BL272YWP.js → main-DjbrOkYk.js} +5 -5
- package/dist/{menu-DYsWoy6Z.cjs → menu-1olc0mrV.cjs} +9 -9
- package/dist/{menu-Qw1eGtzq.js → menu-BxkEScwt.js} +201 -199
- package/dist/{modelComp-y7HaQuVQ.js → modelComp-Bj7Q1JDt.js} +1 -1
- package/dist/{modelComp-8s0tWZDU.cjs → modelComp-C5jCD_od.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +9 -9
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +9 -9
- package/dist/{threeModel-C-n4eIhM.cjs → threeModel-BFW_sW2p.cjs} +1 -1
- package/dist/{threeModel-CbKUUt8N.js → threeModel-CGO5VFhW.js} +142 -142
- package/package.json +1 -1
- package/dist/index-C5a3rVz_.js +0 -4458
- package/dist/index-Cy0LSoSr.cjs +0 -1
- package/dist/index-RFCzxTjm.cjs +0 -87
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
"use strict";const u=require("vue"),Wo=require("./index-BpPyaNFa.cjs"),Nt=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CtG0TYo3.cjs"),ce=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ee=require("./menu-DYsWoy6Z.cjs"),eh=require("./index.vue_vue_type_script_setup_true_lang-B7vWHeIj.cjs");var th="[object Number]";function Fo(n){return typeof n=="number"||ee.isObjectLike(n)&&ee.baseGetTag(n)==th}const jr={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0},activeText:{type:String,default:"是"},inactiveText:{type:String,default:"否"}},setup(n){const e=n,t=u.ref(e.value);return(i,s)=>{const o=u.resolveComponent("el-switch");return u.openBlock(),u.createBlock(o,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=r=>t.value=r),"active-color":"#13ce66","inactive-color":"#ff4949","active-text":e==null?void 0:e.activeText,"inactive-text":e==null?void 0:e.inactiveText},null,8,["modelValue","active-text","inactive-text"])}}},qr={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const e=n,t=u.ref(e.value);return(i,s)=>{const o=u.resolveComponent("el-input");return u.openBlock(),u.createBlock(o,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=r=>t.value=r),disabled:!(e!=null&&e.isEdit),clearable:""},null,8,["modelValue","disabled"])}}},ih="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1751963315312'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4705'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M363.485867%20865.117867h305.5616c21.6576%200%2039.2192-17.194667%2039.2192-38.4s-17.5616-38.4-39.2192-38.4H363.485867c-21.6576%200-39.2192%2017.194667-39.2192%2038.4s17.5616%2038.4%2039.2192%2038.4z'%20fill='%23A6ADB4'%20p-id='4706'%3e%3c/path%3e%3cpath%20d='M945.288533%20699.835733a40.448%2040.448%200%200%200-43.195733%2043.1872v147.037867a46.865067%2046.865067%200%200%201-45.960533%2048.708267H166.766933a46.882133%2046.882133%200%200%201-45.038933-48.708267v-147.029333a40.439467%2040.439467%200%201%200-80.887467%200v147.029333a125.883733%20125.883733%200%200%200%20125.9264%20128.657067h693.0432c70.203733-1.006933%20126.4384-58.461867%20125.9264-128.657067v-147.029333a40.430933%2040.430933%200%200%200-40.448-43.195734zM40.840533%20127.735467v147.959466a39.517867%2039.517867%200%200%200%2079.044267%200V127.735467a45.943467%2045.943467%200%200%201%2046.882133-47.786667h693.0432a46.882133%2046.882133%200%200%201%2045.960534%2047.786667v147.959466a39.509333%2039.509333%200%200%200%2039.517866%2039.509334%2040.448%2040.448%200%200%200%2040.448-39.509334V127.735467C986.248533%2058.052267%20930.423467%201.024%20860.7232%200H166.775467A125.934933%20125.934933%200%200%200%2040.840533%20127.744z%20m168.4992%20427.972266H326.229333L357.316267%20640H418.133333L295.150933%20315.733333h-52.701866L119.466667%20640h60.817066l29.056-84.292267zM269.124267%20392.533333L307.2%20503.466667h-76.8l38.724267-110.933334z%20m231.552%20131.959467h32.631466a123.246933%20123.246933%200%200%200%2088.192-28.535467c23.389867-19.959467%2036.394667-49.134933%2035.413334-79.488%201.6384-28.245333-9.838933-55.722667-31.249067-74.743466a127.573333%20127.573333%200%200%200-84.0192-25.813334H443.733333V640h56.942934V524.4928zM503.466667%20366.933333h32.136533c42.180267%200%2061.602133%2017.493333%2061.602133%2053.162667%201.092267%2016.0256-4.8128%2031.701333-16.068266%2042.666667a71.364267%2071.364267%200%200%201-51.5584%2014.677333H503.466667V366.933333z%20m286.293333-51.0976H691.2V640h57.3184V524.4672h32.853333c31.837867%201.928533%2063.189333-8.311467%2087.381334-28.544%2023.543467-19.959467%2036.625067-49.152%2035.643733-79.505067%201.536-28.100267-9.710933-55.441067-30.754133-74.752a131.84%20131.84%200%200%200-83.882667-25.8304z%20m39.4752%20147.131734a73.813333%2073.813333%200%200%201-49.527467%2014.72H750.933333V366.933333h32.119467c42.1632%200%2061.576533%2017.527467%2061.576533%2053.2736%201.262933%2015.957333-4.394667%2031.650133-15.394133%2042.752z'%20fill='%23A6ADB4'%20p-id='4707'%3e%3c/path%3e%3c/svg%3e",nh=Object.freeze(Object.defineProperty({__proto__:null,default:ih},Symbol.toStringTag,{value:"Module"})),sh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750407294483'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='13930'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M925.866667%20797.866667c-12.8-25.6-34.133333-46.933333-64-64-29.866667-21.333333-68.266667-34.133333-119.466667-42.666667-4.266667%200-29.866667-4.266667-59.733333-12.8-21.333333-4.266667-34.133333-8.533333-38.4-12.8v-17.066667c4.266667-51.2%2029.866667-76.8%2055.466666-106.666666%208.533333-8.533333%2017.066667-21.333333%2025.6-29.866667%2029.866667-42.666667%2034.133333-89.6%2034.133334-98.133333%200-8.533333%200-17.066667-4.266667-21.333334-4.266667-8.533333-8.533333-12.8-12.8-21.333333%200-12.8%204.266667-21.333333%204.266667-29.866667%200-21.333333%204.266667-55.466667-4.266667-89.6%200-8.533333-4.266667-12.8-4.266667-21.333333-8.533333-25.6-17.066667-46.933333-34.133333-68.266667-4.266667-12.8-64-72.533333-234.666667-85.333333H401.066667c-4.266667%200-17.066667%200-25.6%204.266667-21.333333%204.266667-38.4%2021.333333-42.666667%2042.666666v21.333334c-8.533333%208.533333-55.466667%2051.2-55.466667%20102.4-4.266667%2034.133333-4.266667%2085.333333%200%20123.733333-8.533333%208.533333-17.066667%2021.333333-12.8%2042.666667%200%2012.8%204.266667%2055.466667%2034.133334%2098.133333%208.533333%208.533333%2017.066667%2017.066667%2025.6%2029.866667%2025.6%2029.866667%2051.2%2055.466667%2055.466666%20106.666666v17.066667c-4.266667%204.266667-17.066667%208.533333-38.4%2012.8-29.866667%208.533333-59.733333%2012.8-64%2012.8-46.933333%208.533333-85.333333%2021.333333-115.2%2042.666667-25.6%2017.066667-46.933333%2038.4-64%2064-25.6%2038.4-25.6%2076.8-25.6%2085.333333v21.333333c0%2025.6%2021.333333%2046.933333%2046.933334%2046.933334H896c25.6%200%2046.933333-21.333333%2046.933333-46.933334v-17.066666c8.533333-12.8%208.533333-51.2-17.066666-89.6z%20m-546.133334-128c0%204.266667%200%204.266667%200%200v4.266666c-4.266667%200-4.266667%200%200-4.266666z%20m503.466667%20213.333333l-742.4%204.266667v-4.266667s0-25.6%2012.8-51.2c8.533333-17.066667%2025.6-29.866667%2042.666667-42.666667%2025.6-17.066667%2055.466667-25.6%2089.6-34.133333%204.266667%200%2034.133333-4.266667%2068.266666-12.8%2051.2-12.8%2076.8-29.866667%2085.333334-46.933333%200-4.266667%200-4.266667%204.266666-8.533334v-42.666666c-8.533333-72.533333-42.666667-115.2-72.533333-145.066667-8.533333-8.533333-12.8-17.066667-21.333333-21.333333-21.333333-29.866667-21.333333-59.733333-21.333334-64l4.266667-4.266667%208.533333-8.533333c4.266667-17.066667%200-25.6%200-29.866667-4.266667-34.133333-4.266667-81.066667%200-119.466667%200-29.866667%2029.866667-55.466667%2029.866667-55.466666%208.533333-4.266667%2017.066667-12.8%2021.333333-21.333334%200-4.266667%204.266667-4.266667%204.266667-8.533333v-25.6H465.066667c140.8%208.533333%20192%2059.733333%20192%2059.733333%208.533333%2012.8%2017.066667%2025.6%2021.333333%2042.666667%204.266667%204.266667%204.266667%208.533333%204.266667%2012.8%204.266667%2029.866667%204.266667%2055.466667%204.266666%2076.8%200%2012.8%200%2021.333333-4.266666%2038.4%200%2012.8%200%2025.6%208.533333%2029.866667l4.266667%204.266666%204.266666%204.266667s0%2034.133333-21.333333%2064c-4.266667%208.533333-12.8%2012.8-21.333333%2021.333333-29.866667%2029.866667-64%2072.533333-72.533334%20145.066667v42.666667c0%204.266667%200%204.266667%204.266667%208.533333%208.533333%2021.333333%2034.133333%2034.133333%2085.333333%2046.933333%2034.133333%208.533333%2064%2012.8%2068.266667%2012.8%2038.4%208.533333%2068.266667%2017.066667%2093.866667%2034.133334%2017.066667%2012.8%2034.133333%2025.6%2042.666666%2042.666666%208.533333%2025.6%208.533333%2051.2%204.266667%2055.466667z'%20p-id='13931'%3e%3c/path%3e%3c/svg%3e",oh=Object.freeze(Object.defineProperty({__proto__:null,default:sh},Symbol.toStringTag,{value:"Module"})),rh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750642267995'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='15790'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M926.3%20337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6%2076.2%20339.3%2099.6c-53.3%2022.6-101.2%2054.8-142.3%2096-41.1%2041.1-73.4%2089-96%20142.3-23.4%2055.2-35.2%20113.9-35.2%20174.3%200%2060.4%2011.8%20119.1%2035.2%20174.3%2022.6%2053.3%2054.8%20101.2%2096%20142.3%2041.1%2041.1%2089%2073.4%20142.3%2096%2055.2%2023.4%20113.9%2035.2%20174.3%2035.2s119.1-11.8%20174.3-35.2c53.3-22.6%20101.2-54.8%20142.3-96%2041.1-41.1%2073.4-89%2096-142.3%2023.4-55.2%2035.2-113.9%2035.2-174.3%200.1-60.4-11.8-119.1-35.1-174.3zM513.7%20879.1c-202.3%200-366.9-164.6-366.9-366.9s164.6-366.9%20366.9-366.9c202.3%200%20366.9%20164.6%20366.9%20366.9S716%20879.1%20513.7%20879.1z'%20p-id='15791'%3e%3c/path%3e%3cpath%20d='M697.9%20329.1c-15.6-15.6-41-15.6-56.6%200L513%20457.4%20384.7%20329.1c-15.6-15.6-41-15.6-56.6%200-15.6%2015.6-15.6%2041%200%2056.6L456.4%20514%20328.1%20642.3c-15.6%2015.6-15.6%2041%200%2056.6%2015.6%2015.6%2041%2015.6%2056.6%200L513%20570.6l128.3%20128.3c15.6%2015.6%2041%2015.6%2056.6%200%2015.6-15.6%2015.6-41%200-56.6L569.6%20514l128.3-128.3c15.6-15.6%2015.6-41.1%200-56.6z'%20p-id='15792'%3e%3c/path%3e%3c/svg%3e",lh=Object.freeze(Object.defineProperty({__proto__:null,default:rh},Symbol.toStringTag,{value:"Module"})),ah="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750816526374'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='9498'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M926.3%20337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6%2076.2%20339.3%2099.6c-53.3%2022.6-101.2%2054.8-142.3%2096-41.1%2041.1-73.4%2089-96%20142.3-23.4%2055.2-35.2%20113.9-35.2%20174.3%200%2060.4%2011.8%20119.1%2035.2%20174.3%2022.6%2053.3%2054.8%20101.2%2096%20142.3%2041.1%2041.1%2089%2073.4%20142.3%2096%2055.2%2023.4%20113.9%2035.2%20174.3%2035.2s119.1-11.8%20174.3-35.2c53.3-22.6%20101.2-54.8%20142.3-96%2041.1-41.1%2073.4-89%2096-142.3%2023.4-55.2%2035.2-113.9%2035.2-174.3%200.1-60.4-11.8-119.1-35.1-174.3zM513.7%20879.1c-202.3%200-366.9-164.6-366.9-366.9s164.6-366.9%20366.9-366.9c202.3%200%20366.9%20164.6%20366.9%20366.9S716%20879.1%20513.7%20879.1z'%20p-id='9499'%3e%3c/path%3e%3cpath%20d='M695.7%20469.2h-139v-139c0-23.6-19.3-43-43-43-23.6%200-43%2019.3-43%2043v139h-139c-23.6%200-43%2019.3-43%2043s19.3%2043%2043%2043h139v139c0%2023.7%2019.3%2043%2043%2043%2023.6%200%2043-19.3%2043-43v-139h139c23.6%200%2043-19.3%2043-43s-19.4-43-43-43z'%20p-id='9500'%3e%3c/path%3e%3c/svg%3e",ch=Object.freeze(Object.defineProperty({__proto__:null,default:ah},Symbol.toStringTag,{value:"Module"})),hh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750816329545'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='9351'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M926.3%20337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6%2076.2%20339.3%2099.6c-53.3%2022.6-101.2%2054.8-142.3%2096-41.1%2041.1-73.4%2089-96%20142.3-23.4%2055.2-35.2%20113.9-35.2%20174.3%200%2060.4%2011.8%20119.1%2035.2%20174.3%2022.6%2053.3%2054.8%20101.2%2096%20142.3%2041.1%2041.1%2089%2073.4%20142.3%2096%2055.2%2023.4%20113.9%2035.2%20174.3%2035.2s119.1-11.8%20174.3-35.2c53.3-22.6%20101.2-54.8%20142.3-96%2041.1-41.1%2073.4-89%2096-142.3%2023.4-55.2%2035.2-113.9%2035.2-174.3%200.1-60.4-11.8-119.1-35.1-174.3zM513.7%20879.1c-202.3%200-366.9-164.6-366.9-366.9s164.6-366.9%20366.9-366.9c202.3%200%20366.9%20164.6%20366.9%20366.9S716%20879.1%20513.7%20879.1z'%20p-id='9352'%3e%3c/path%3e%3cpath%20d='M697.9%20329.1c-15.6-15.6-41-15.6-56.6%200L513%20457.4%20384.7%20329.1c-15.6-15.6-41-15.6-56.6%200-15.6%2015.6-15.6%2041%200%2056.6L456.4%20514%20328.1%20642.3c-15.6%2015.6-15.6%2041%200%2056.6%2015.6%2015.6%2041%2015.6%2056.6%200L513%20570.6l128.3%20128.3c15.6%2015.6%2041%2015.6%2056.6%200%2015.6-15.6%2015.6-41%200-56.6L569.6%20514l128.3-128.3c15.6-15.6%2015.6-41.1%200-56.6z'%20p-id='9353'%3e%3c/path%3e%3c/svg%3e",uh=Object.freeze(Object.defineProperty({__proto__:null,default:hh},Symbol.toStringTag,{value:"Module"})),fh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750815766948'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='9204'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M923.9%20335.8c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.8-35.2-174.3-35.2S392.2%2074.1%20337%2097.5c-53.3%2022.6-101.2%2054.8-142.3%2096-41.1%2041.1-73.4%2089-96%20142.3C75.3%20391%2063.5%20449.7%2063.5%20510.1c0%2060.4%2011.8%20119.1%2035.2%20174.3%2022.6%2053.3%2054.8%20101.2%2096%20142.3%2041.1%2041.1%2089%2073.4%20142.3%2096%2055.2%2023.4%20113.9%2035.2%20174.3%2035.2s119.1-11.8%20174.3-35.2c35.9-15.2%2069.3-34.8%2099.8-58.5l-0.1-0.1c9.1-7.4%2014.8-18.6%2014.8-31.2%200-22.3-18-40.3-40.3-40.3-9.2%200-17.7%203.1-24.5%208.3l-0.2-0.3c-62%2047.9-139.7%2076.4-223.9%2076.4-202.3%200-366.9-164.6-366.9-366.9s164.7-366.9%20367-366.9%20366.9%20164.6%20366.9%20366.9c0%2066.2-17.6%20128.3-48.4%20182l0.4%200.2c-4.4%206.5-7%2014.2-7%2022.6%200%2022.3%2018%2040.3%2040.3%2040.3%2016%200%2029.8-9.3%2036.3-22.8l0.2%200.1c8.9-15.5%2016.8-31.5%2023.8-48.1%2023.4-55.2%2035.2-113.9%2035.2-174.3%200.1-60.4-11.7-119.1-35.1-174.3z'%20p-id='9205'%3e%3c/path%3e%3cpath%20d='M693.7%20626.5H507.6l-57.1%2066.1h243.2zM663.2%20411.4c7.5-7.6%207.5-23.5%200-31.3l-45.4-46.8c-7.7-7.6-22.9-7.6-30.4%200l-45.7%2046.8%2076.1%2078.1%2045.4-46.8zM328.8%20614.5v78.1h76.1l197.5-218.7-76-77.9z'%20p-id='9206'%3e%3c/path%3e%3c/svg%3e",dh=Object.freeze(Object.defineProperty({__proto__:null,default:fh},Symbol.toStringTag,{value:"Module"})),ph="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750815629946'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='9058'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M78.768011%20168.230165c0-30.999918%2024.230644-56.076722%2054.15419-56.076722L403.692131%20112.153443%20403.692131%2056.076722c0-30.999918%2024.230644-56.076722%2054.15419-56.076722l108.306335%200c29.923546%200%2054.155214%2025.076803%2054.155214%2056.076722l0%2056.077745%20270.768906%200c29.923546%200%2054.15419%2025.076803%2054.15419%2056.076722l0%2056.076722L78.768011%20224.307909%2078.768011%20168.230165zM891.076776%20336.461352l0%20112.153443%200%20519.30746c0%2030.923181-24.231667%2056.077745-54.153167%2056.077745L187.076392%201024c-29.923546%200-54.15419-25.154564-54.15419-56.077745L132.922201%20448.614796%20132.922201%20336.461352l0-56.077745%20758.154574%200L891.076776%20336.461352zM349.53794%20448.614796c0-30.923181-24.230644-56.076722-54.15419-56.076722-29.922523%200-54.153167%2025.153541-54.153167%2056.076722l0%20407.154017c0%2030.923181%2024.230644%2056.077745%2054.153167%2056.077745%2029.923546%200%2054.15419-25.154564%2054.15419-56.077745L349.53794%20448.614796zM566.153679%20448.614796c0-30.923181-24.230644-56.076722-54.15419-56.076722-29.922523%200-54.153167%2025.153541-54.153167%2056.076722l0%20407.154017c0%2030.923181%2024.230644%2056.077745%2054.153167%2056.077745%2029.923546%200%2054.15419-25.154564%2054.15419-56.077745L566.153679%20448.614796zM782.770441%20448.614796c0-30.923181-24.231667-56.076722-54.155214-56.076722s-54.15419%2025.153541-54.15419%2056.076722l0%20407.154017c0%2030.923181%2024.230644%2056.077745%2054.15419%2056.077745s54.155214-25.154564%2054.155214-56.077745L782.770441%20448.614796z'%20p-id='9059'%3e%3c/path%3e%3c/svg%3e",gh=Object.freeze(Object.defineProperty({__proto__:null,default:ph},Symbol.toStringTag,{value:"Module"})),mh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753424743198'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='51312'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M672.768%2062.890667l147.797333%2085.333333-34.048%2095.146667a384.725333%20384.725333%200%200%201%2058.026667%2076.629333c16.469333%2028.501333%2028.842667%2058.24%2037.376%2088.533333L981.333333%20426.666667v170.666666l-99.541333%2018.133334a383.573333%20383.573333%200%200%201-95.274667%20165.162666l34.048%2095.146667-147.797333%2085.333333-65.408-77.056a383.573333%20383.573333%200%200%201-190.677333-0.085333l-65.450667%2077.141333-147.797333-85.333333%2034.048-95.146667a384.725333%20384.725333%200%200%201-58.026667-76.629333%20384.725333%20384.725333%200%200%201-37.376-88.576L42.666667%20597.333333v-170.666666l99.541333-18.133334a383.573333%20383.573333%200%200%201%2095.274667-165.162666l-34.048-95.146667%20147.797333-85.333333L416.64%20139.946667a383.573333%20383.573333%200%200%201%20190.677333%200.085333l65.450667-77.141333zM405.333333%20327.253333a213.333333%20213.333333%200%201%200%20213.333334%20369.493334%20213.333333%20213.333333%200%200%200-213.333334-369.493334zM512%20384a128%20128%200%201%201%200%20256%20128%20128%200%200%201%200-256z'%20p-id='51313'%3e%3c/path%3e%3c/svg%3e",vh=Object.freeze(Object.defineProperty({__proto__:null,default:mh},Symbol.toStringTag,{value:"Module"})),wh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750815488055'%20class='icon'%20viewBox='0%200%201025%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='8912'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200.1953125'%20height='200'%3e%3cpath%20d='M127.110228%20701.648461q0%2026.438928%2018.812314%2045.251241t46.268123%2018.812314l253.203575%200%200%20128.12711-318.284012%200q-26.438928%200-49.82721-9.660377t-40.675273-26.947368-26.947368-40.675273-9.660377-50.844091l0-637.584906q0-26.438928%209.660377-49.82721t26.947368-40.675273%2040.675273-27.455809%2049.82721-10.168818l766.728898%200q26.438928%200%2049.82721%2010.168818t40.675273%2027.455809%2027.455809%2040.675273%2010.168818%2049.82721l0%20187.106256-128.12711%201.016882q-2.033764-25.422046-19.829196-43.217478t-44.234359-17.795432l-637.584906%200q-27.455809%200-46.268123%2018.812314t-18.812314%2045.251241l0%20382.347567zM1016.881827%20501.322741q6.101291%209.151936%207.626614%2023.388282t-10.677259%2028.472691q-11.1857%2014.236346-18.303873%2021.354518l-8.135055%208.135055-105.75571-95.586892q5.084409-6.101291%2014.236346-14.744786t14.236346-13.727905q14.236346-14.236346%2030.506455-12.711023t27.455809%206.609732q12.202582%205.084409%2026.438928%2018.812314t22.3714%2029.998014zM613.179742%20789.100298q3.050645-3.050645%2014.236346-16.270109t27.96425-32.540218%2037.116187-42.200596%2040.675273-46.268123q48.810328-54.911619%20108.806356-122.025819l107.789474%2095.586892q-59.996028%2068.131082-108.806356%20123.042701-20.337637%2023.388282-40.675273%2046.268123t-37.116187%2041.183714-27.455809%2029.998014-12.711023%2013.727905q-9.151936%2012.202582-25.422046%2020.337637-7.118173%205.084409-21.354518%2011.1857t-29.998014%2012.202582-29.489573%2010.677259-20.846077%205.59285q-26.438928%205.084409-23.388282-22.3714%201.016882-7.118173%204.067527-21.862959t6.609732-30.506455%207.118173-28.981132%205.59285-18.303873q5.084409-13.219464%2017.286991-28.472691z'%20p-id='8913'%3e%3c/path%3e%3c/svg%3e",xh=Object.freeze(Object.defineProperty({__proto__:null,default:wh},Symbol.toStringTag,{value:"Module"})),bh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753088395767'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='23263'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M508%20512m-112%200a112%20112%200%201%200%20224%200%20112%20112%200%201%200-224%200Z'%20p-id='23264'%3e%3c/path%3e%3cpath%20d='M942.2%20486.2C847.4%20286.5%20704.1%20186%20512%20186c-192.2%200-335.4%20100.5-430.2%20300.3-7.7%2016.2-7.7%2035.2%200%2051.5C176.6%20737.5%20319.9%20838%20512%20838c192.2%200%20335.4-100.5%20430.2-300.3%207.7-16.2%207.7-35%200-51.5zM508%20688c-97.2%200-176-78.8-176-176s78.8-176%20176-176%20176%2078.8%20176%20176-78.8%20176-176%20176z'%20p-id='23265'%3e%3c/path%3e%3c/svg%3e",yh=Object.freeze(Object.defineProperty({__proto__:null,default:bh},Symbol.toStringTag,{value:"Module"})),kh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750407346075'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='14076'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M122.368%20165.888h778.24c-9.216%200-16.384-7.168-16.384-16.384v713.728c0-9.216%207.168-16.384%2016.384-16.384h-778.24c9.216%200%2016.384%207.168%2016.384%2016.384V150.016c0%208.192-6.656%2015.872-16.384%2015.872z%20m-32.768%20684.544c0%2026.112%2020.992%2047.104%2047.104%2047.104h750.08c26.112%200%2047.104-20.992%2047.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112%200-47.104%2020.992-47.104%2047.104v688.128z'%20p-id='14077'%3e%3c/path%3e%3cpath%20d='M510.464%20639.488l207.872-254.976H302.08z'%20p-id='14078'%3e%3c/path%3e%3c/svg%3e",Sh=Object.freeze(Object.defineProperty({__proto__:null,default:kh},Symbol.toStringTag,{value:"Module"})),Ch="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750407433101'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='14223'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M122.88%20165.888h778.24c-9.216%200-16.384-7.168-16.384-16.384v713.728c0-9.216%207.168-16.384%2016.384-16.384H122.88c9.216%200%2016.384%207.168%2016.384%2016.384V150.016c0%208.192-6.656%2015.872-16.384%2015.872z%20m-32.768%20684.544c0%2026.112%2020.992%2047.104%2047.104%2047.104h750.08c26.112%200%2047.104-20.992%2047.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H137.216c-26.112%200-47.104%2020.992-47.104%2047.104v688.128z'%20p-id='14224'%3e%3c/path%3e%3cpath%20d='M244.224%20279.04h142.848v49.152H244.224zM244.224%20425.472h142.848v49.152H244.224zM436.736%20279.04h342.528v49.152H436.736zM436.736%20425.472h342.528v49.152H436.736zM244.224%20572.416h142.848v49.152H244.224zM436.736%20572.416h342.528v172.544H436.736z'%20p-id='14225'%3e%3c/path%3e%3c/svg%3e",_h=Object.freeze(Object.defineProperty({__proto__:null,default:Ch},Symbol.toStringTag,{value:"Module"})),Oh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1751708264977'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='5492'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M512%2064C264.6%2064%2064%20264.6%2064%20512s200.6%20448%20448%20448%20448-200.6%20448-448S759.4%2064%20512%2064z%20m104%20316.9c0%2010.2-4.9%2019.9-13.2%2025.9L457.4%20512l145.4%20105.2c8.3%206%2013.2%2015.6%2013.2%2025.9V690c0%206.5-7.4%2010.3-12.7%206.5l-246-178c-4.4-3.2-4.4-9.7%200-12.9l246-178c5.3-3.8%2012.7-0.1%2012.7%206.5v46.8z'%20p-id='5493'%20fill='%2372B02D'%3e%3c/path%3e%3c/svg%3e",Mh=Object.freeze(Object.defineProperty({__proto__:null,default:Oh},Symbol.toStringTag,{value:"Module"})),Dh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750411679824'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='35651'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M474%20152m8%200l60%200q8%200%208%208l0%20704q0%208-8%208l-60%200q-8%200-8-8l0-704q0-8%208-8Z'%20p-id='35652'%3e%3c/path%3e%3cpath%20d='M168%20474m8%200l672%200q8%200%208%208l0%2060q0%208-8%208l-672%200q-8%200-8-8l0-60q0-8%208-8Z'%20p-id='35653'%3e%3c/path%3e%3c/svg%3e",Th=Object.freeze(Object.defineProperty({__proto__:null,default:Dh},Symbol.toStringTag,{value:"Module"})),Ah="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1751708287937'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='5743'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M512%2064C264.6%2064%2064%20264.6%2064%20512s200.6%20448%20448%20448%20448-200.6%20448-448S759.4%2064%20512%2064z%20m154.7%20454.5l-246%20178c-5.3%203.8-12.7%200-12.7-6.5v-46.9c0-10.2%204.9-19.9%2013.2-25.9L566.6%20512%20421.2%20406.8c-8.3-6-13.2-15.6-13.2-25.9V334c0-6.5%207.4-10.3%2012.7-6.5l246%20178c4.4%203.2%204.4%209.8%200%2013z'%20p-id='5744'%20fill='%2372B02D'%3e%3c/path%3e%3c/svg%3e",Bh=Object.freeze(Object.defineProperty({__proto__:null,default:Ah},Symbol.toStringTag,{value:"Module"})),Ph="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750643434994'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='16376'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M926.3%20337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6%2076.2%20339.3%2099.6c-53.3%2022.6-101.2%2054.8-142.3%2096-41.1%2041.1-73.4%2089-96%20142.3-23.4%2055.2-35.2%20113.9-35.2%20174.3%200%2060.4%2011.8%20119.1%2035.2%20174.3%2022.6%2053.3%2054.8%20101.2%2096%20142.3%2041.1%2041.1%2089%2073.4%20142.3%2096%2055.2%2023.4%20113.9%2035.2%20174.3%2035.2s119.1-11.8%20174.3-35.2c53.3-22.6%20101.2-54.8%20142.3-96%2041.1-41.1%2073.4-89%2096-142.3%2023.4-55.2%2035.2-113.9%2035.2-174.3%200.1-60.4-11.8-119.1-35.1-174.3zM513.7%20879.1c-202.3%200-366.9-164.6-366.9-366.9s164.6-366.9%20366.9-366.9c202.3%200%20366.9%20164.6%20366.9%20366.9S716%20879.1%20513.7%20879.1z'%20p-id='16377'%3e%3c/path%3e%3cpath%20d='M715.6%20371.6c-15.7-15.7-41.4-15.7-57%200l-196%20196-95.9-95.9c-15.7-15.7-41.4-15.7-57%200-15.7%2015.7-15.7%2041.4%200%2057l124.5%20124.5c15.7%2015.7%2041.4%2015.7%2057%200l224.5-224.5c15.6-15.7%2015.6-41.4-0.1-57.1z'%20p-id='16378'%3e%3c/path%3e%3c/svg%3e",Eh=Object.freeze(Object.defineProperty({__proto__:null,default:Ph},Symbol.toStringTag,{value:"Module"})),Vh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750406704613'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='13783'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M122.368%20165.888h778.24c-9.216%200-16.384-7.168-16.384-16.384v713.728c0-9.216%207.168-16.384%2016.384-16.384h-778.24c9.216%200%2016.384%207.168%2016.384%2016.384V150.016c0%208.192-6.656%2015.872-16.384%2015.872z%20m-32.768%20684.544c0%2026.112%2020.992%2047.104%2047.104%2047.104h750.08c26.112%200%2047.104-20.992%2047.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112%200-47.104%2020.992-47.104%2047.104v688.128z'%20p-id='13784'%3e%3c/path%3e%3cpath%20d='M573.44%20646.656l-3.072%206.144c-8.192%2012.288-14.336%2025.088-19.456%2038.912-6.656%2018.944-3.072%2036.352%2016.896%2043.008%2034.816%2011.264%2072.704%209.216%20106.496-4.608%209.216-3.072%2011.264-4.096%2034.304-12.8%2016.384-6.656%2033.792-12.8%2051.2-17.408%201.024%200%202.048-0.512%203.072-1.024%2010.24-2.048%206.656-5.632%2016.896%201.024%203.584%203.072%208.704%204.096%2013.312%203.072%204.608-1.024%205.632-3.072%208.192-7.68%205.632-8.192%203.584-19.456-4.608-25.088-18.944-12.8-22.528-10.24-41.472-6.144-1.536%200.512-3.072%200.512-4.096%201.024-18.944%205.12-37.376%2011.264-55.808%2018.432-22.016%208.704-24.064%209.728-32.768%2012.288-24.576%2010.24-52.224%2012.8-78.336%206.144%204.608-11.264%2010.24-22.016%2016.896-32.256%201.536-2.048%202.56-4.096%203.584-6.144%208.704-13.824%2015.36-29.184%2018.432-45.056%204.096-19.456-7.68-38.4-27.136-42.496-0.512%200-1.536-0.512-2.048-0.512-27.648-6.656-59.392%203.072-148.992%2037.888-81.92%2032.256-117.76%2041.984-129.024%2035.84-4.096-2.56-8.704-3.072-13.312-1.536-9.728%202.56-15.36%2012.8-12.8%2022.016%201.024%204.608%204.096%208.192%208.192%2010.752%2023.04%208.704%2048.64%207.68%2071.168-2.048%2029.696-9.216%2059.392-19.456%2088.064-32.256%2077.824-30.72%20111.104-40.448%20126.976-36.352%203.072%201.024%203.072%200%202.56%203.072-2.56%2012.288-7.168%2023.552-13.312%2033.792zM665.088%20235.52c-19.456-17.92-49.664-17.408-68.608%201.024L312.32%20519.68c-2.048%202.048-3.584%204.608-4.608%207.68l-22.528%2080.896c-2.56%209.728%203.072%2019.456%2012.8%2021.504%203.584%201.024%207.68%200.512%2011.264-0.512l71.168-29.696c5.632-2.56%2010.752-5.632%2015.36-10.24l283.648-269.824%202.56-2.56c18.432-19.456%2017.92-50.176-2.048-68.608l-1.024-1.024-13.824-11.776z'%20p-id='13785'%3e%3c/path%3e%3c/svg%3e",zh=Object.freeze(Object.defineProperty({__proto__:null,default:Vh},Symbol.toStringTag,{value:"Module"})),Lh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750642902470'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='16229'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M0%200h1024v1024H0z'%20fill='%23FFFFFF'%20fill-opacity='0'%20p-id='16230'%3e%3c/path%3e%3cpath%20d='M204%20372c66.31%200%20121.852%2046.1%20136.326%20108h137.53c12.901-33.907%2045.71-58%2084.144-58%2038.435%200%2071.243%2024.093%2084.145%2058h139.71c12.902-33.907%2045.71-58%2084.145-58%2049.706%200%2090%2040.294%2090%2090s-40.294%2090-90%2090c-38.434%200-71.242-24.092-84.144-57.998H646.144C633.242%20577.908%20600.434%20602%20562%20602c-38.434%200-71.242-24.092-84.144-57.998h-137.53C325.852%20605.9%20270.309%20652%20204%20652c-77.32%200-140-62.68-140-140s62.68-140%20140-140z%20m0%2064c-41.974%200-76%2034.026-76%2076s34.026%2076%2076%2076%2076-34.026%2076-76-34.026-76-76-76z%20m358%2050c-14.36%200-26%2011.64-26%2026s11.64%2026%2026%2026%2026-11.64%2026-26-11.64-26-26-26z%20m308%200c-14.36%200-26%2011.64-26%2026s11.64%2026%2026%2026%2026-11.64%2026-26-11.64-26-26-26z'%20p-id='16231'%3e%3c/path%3e%3c/svg%3e",Nh=Object.freeze(Object.defineProperty({__proto__:null,default:Lh},Symbol.toStringTag,{value:"Module"})),Rh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750667945909'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='16523'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M778.7%2097.2H247.3C165%2097.2%2098%20164.3%2098%20246.7v532.2c0%2082.4%2067%20149.4%20149.3%20149.4h531.5c82.3%200%20149.3-67%20149.3-149.4V246.7C928%20164.3%20861%2097.2%20778.7%2097.2z%20m-452.2%2079.9h373.1v83.7H331.9c-2.9%200-5.5-2.6-5.5-5.5v-78.2z%20m373%20671.3h-373v-225h373.1v225z%20m148.7-69.6c0%2038.1-30.8%2069.2-68.8%2069.5V612.9c0-38.3-31.1-69.4-69.3-69.4H316c-38.2%200-69.3%2031.1-69.3%2069.4v235.4c-38-0.3-68.8-31.4-68.8-69.5V246.7c0-38.1%2030.8-69.2%2068.8-69.5v78.2c0%2047.1%2038.3%2085.4%2085.3%2085.4h378c38.2%200%2069.3-31.1%2069.3-69.4v-94.2c38%200.3%2068.8%2031.4%2068.8%2069.5v532.1z'%20p-id='16524'%3e%3c/path%3e%3c/svg%3e",Ih=Object.freeze(Object.defineProperty({__proto__:null,default:Rh},Symbol.toStringTag,{value:"Module"})),Hh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750407459145'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='14370'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M122.368%20165.888h778.24c-9.216%200-16.384-7.168-16.384-16.384v713.728c0-9.216%207.168-16.384%2016.384-16.384h-778.24c9.216%200%2016.384%207.168%2016.384%2016.384V150.016c0%208.192-6.656%2015.872-16.384%2015.872z%20m-32.768%20684.544c0%2026.112%2020.992%2047.104%2047.104%2047.104h750.08c26.112%200%2047.104-20.992%2047.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112%200-47.104%2020.992-47.104%2047.104v688.128z'%20p-id='14371'%3e%3c/path%3e%3cpath%20d='M249.344%20347.648h49.152v499.2h-49.152zM584.704%20347.648h49.152v499.2h-49.152zM137.728%20165.888h746.496v181.76H137.728z'%20p-id='14372'%3e%3c/path%3e%3cpath%20d='M137.728%20481.792h746.496v49.152H137.728zM137.728%20664.576h746.496v49.152H137.728z'%20p-id='14373'%3e%3c/path%3e%3c/svg%3e",$h=Object.freeze(Object.defineProperty({__proto__:null,default:Hh},Symbol.toStringTag,{value:"Module"})),Wh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750813714349'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4271'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M376.6%20494.8c5.1%204.8%207.9%2011.7%207.6%2018.7%200.4%207.1-2.5%2014-7.6%2018.7-5.3%204.7-12.3%207.2-19.3%206.9h-69.6v235.1c0.2%207.4-2.9%2014.4-8.4%2019.1-5.5%205.4-12.9%208.3-20.5%208.1-7.6%200.3-15.1-2.7-20.5-8.1-5.3-4.9-8.2-11.9-8.1-19.1v-235H161c-7.2%200.3-14.2-2.3-19.3-7.3-5.2-4.8-8-11.7-7.6-18.7-0.3-7%202.5-13.7%207.6-18.3%205.3-4.8%2012.2-7.3%2019.3-7h198.4c6.3%200%2012.4%202.5%2017.2%206.9z%20m215.7%2070.1c5.2%205.1%208%2012.2%207.7%2019.6v189.9c0.3%207.2-2.5%2014.2-7.7%2019.1-4.8%205.3-11.7%208.3-18.9%208.1-7.1%200.1-13.9-2.7-18.9-7.7-4.8-5.2-7.6-12-7.6-19.1-18%2019.5-42.9%2030.8-69.2%2031.4-19.7%200.3-38.9-5.3-55.5-15.9-17.2-10.7-31.2-26.1-40.3-44.4-19.3-40.4-19.3-87.6%200-128%208.9-18.4%2022.9-33.8%2040.3-44.4%2016-10.5%2034.8-16.1%2053.9-15.9%2026.3-0.1%2051.8%209.8%2071.2%2027.7-0.2-7.3%202.6-14.4%207.7-19.6%2010.6-10.2%2027.2-10.2%2037.8%200l-0.5-0.8z%20m-61.2%20168.7c24.1-31.6%2024.1-75.6%200-107.2-11.5-14.3-28.9-22.3-47.1-21.6-17.9-0.5-35.1%207.4-46.3%2021.6-12.1%2015-18.5%2034-18.1%2053.4-0.6%2019.5%205.7%2038.6%2017.7%2053.8%2011.6%2013.9%2028.8%2021.7%2046.7%2021.2%2018.1%200.4%2035.3-7.4%2047.1-21.2zM835.4%20573c17.1%2010.7%2031%2025.9%2040.3%2044%209.9%2019.8%2014.9%2041.8%2014.5%2064%200.4%2022.3-4.6%2044.4-14.5%2064.4-9%2018.3-23%2033.7-40.3%2044.4-16%2010.6-34.8%2016.1-53.9%2015.9-13.9%200.2-27.7-2.9-40.3-9-11.6-5-22.1-12.2-31-21.2v2.8c0.2%207.2-2.5%2014.2-7.5%2019.4-5%205.1-11.9%208-19.1%207.9-7.1%200.3-14-2.5-18.9-7.7-5.2-5.1-8-12.2-7.6-19.6V497.2c-0.2-7.3%202.5-14.4%207.6-19.6%2010.6-10.3%2027.2-10.3%2037.8%200%205.1%205.2%207.9%2012.2%207.6%2019.6v93.3c8-9.8%2018-17.7%2029.4-23.2%2012.4-6.8%2026.2-10.3%2040.3-10.2%2019.7-0.2%2039%205.3%2055.6%2015.9z%20m-15.7%20163c12.2-15.1%2018.6-34.3%2018.1-53.8%200.6-19.4-5.7-38.3-17.7-53.4-12-13.4-29-21.1-46.9-21.1s-34.9%207.7-46.9%2021.1c-24.1%2031.6-24.1%2075.6%200%20107.2%2011.6%2014.1%2029%2022.1%2047.1%2021.6%2018.3-0.2%2035.4-9.1%2046.3-24v2.4zM708.1%20253.5c-15.5%200-28-12.5-28-28V113.4c-0.1-8%200-15.9%200-23.8V77.9c0-15.5%2012.5-28%2028-28H886c17%200%2032.9%206.6%2045%2018.6%2011.3%2011.3%2017.8%2026%2018.6%2041.8%200.1%200.7%200.1%201.4%200.1%202.1v113.2c0%2015.5-12.5%2028-28%2028H708.1z%20m28-56h157.4v-84.1c0-2-0.8-3.9-2.2-5.4-1.4-1.4-3.4-2.2-5.4-2.2H736.1v91.7zM371.9%20254.6c-15.5%200-28-12.5-28-28V78.9c0-15.4%2012.5-27.9%2027.9-28l213.4-1.1h0.1c17%200%2032.9%206.6%2045%2018.6%2012%2012.1%2018.6%2028%2018.6%2045v113.2c0%2015.5-12.5%2028-28%2028h-249z%20m28-56.1h193v-85.2c0-2-0.8-3.9-2.2-5.4-1.4-1.4-3.3-2.2-5.3-2.2l-185.5%200.9v91.9z'%20p-id='4272'%3e%3c/path%3e%3cpath%20d='M72.4%20974.2c-17.3%200-33.5-6.7-45.7-18.7-12.2-12.1-18.9-28.1-18.9-45.1V113.6c0-35.2%2029-63.8%2064.6-63.8h169c17.3%200%2033.5%206.6%2045.7%2018.7%2012.2%2012%2018.9%2028.1%2018.9%2045.1V283c0%202%200.8%203.9%202.3%205.4%201.5%201.4%203.4%202.2%205.4%202.2h637.9c17.3%200%2033.5%206.6%2045.7%2018.7%2012.2%2012%2018.9%2028%2018.9%2045.1v556c0%2017.1-6.7%2033.1-18.9%2045.1s-28.4%2018.7-45.7%2018.7H72.4z%20m7.7-860.6c-4.3%200-7.7%203.4-7.7%207.6v788.7c0%202%200.8%204%202.3%205.4%201.4%201.4%203.4%202.2%205.4%202.2h871.5c2.1%200%204-0.8%205.4-2.2%201.5-1.4%202.3-3.3%202.3-5.4V350.6c0-2-0.8-3.9-2.2-5.3-1.5-1.5-3.4-2.3-5.4-2.3h-638c-17.3%200-33.5-6.7-45.7-18.7-12.2-12-18.9-28.1-18.9-45.1V121.1c0-2-0.8-3.9-2.3-5.4-1.4-1.4-3.4-2.2-5.4-2.2H80.1z'%20p-id='4273'%3e%3c/path%3e%3c/svg%3e",Fh=Object.freeze(Object.defineProperty({__proto__:null,default:Wh},Symbol.toStringTag,{value:"Module"})),Gh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750482237209'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2084'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='48'%20height='48'%3e%3cpath%20d='M171.52%20924.16v-107.52c0-19.968%2015.872-35.84%2035.84-35.84s35.84%2015.872%2035.84%2035.84v107.52c0%2019.968-15.872%2035.84-35.84%2035.84s-35.84-15.872-35.84-35.84z%20m0-322.56v-107.52c0-19.968%2015.872-35.84%2035.84-35.84s35.84%2015.872%2035.84%2035.84v107.52c0%2019.968-15.872%2035.84-35.84%2035.84s-35.84-15.872-35.84-35.84z%20m0-394.24v-107.52c0-19.968%2015.872-35.84%2035.84-35.84s35.84%2015.872%2035.84%2035.84v107.52c0%2019.968-15.872%2035.84-35.84%2035.84s-35.84-15.872-35.84-35.84z'%20p-id='2085'%3e%3c/path%3e%3cpath%20d='M350.72%20350.72c0%2079.36-64%20143.36-143.36%20143.36s-143.36-64-143.36-143.36%2064-143.36%20143.36-143.36%20143.36%2064%20143.36%20143.36z%20m-143.36-71.68c-39.424%200-71.68%2032.256-71.68%2071.68s32.256%2071.68%2071.68%2071.68%2071.68-32.256%2071.68-71.68-32.256-71.68-71.68-71.68z%20m143.36%20430.08c0%2079.36-64%20143.36-143.36%20143.36s-143.36-64-143.36-143.36%2064-143.36%20143.36-143.36%20143.36%2064%20143.36%20143.36z%20m-143.36-71.68c-39.424%200-71.68%2032.256-71.68%2071.68s32.256%2071.68%2071.68%2071.68%2071.68-32.256%2071.68-71.68-32.256-71.68-71.68-71.68z%20m716.8-286.72h-501.76c-19.968%200-35.84-15.872-35.84-35.84s15.872-35.84%2035.84-35.84h501.76c19.968%200%2035.84%2015.872%2035.84%2035.84s-15.872%2035.84-35.84%2035.84z%20m-284.672%20107.52H420.352c-18.432%200-33.792-15.36-33.792-33.792v-4.096c0-18.432%2015.36-33.792%2033.792-33.792h219.136c18.432%200%2033.792%2015.36%2033.792%2033.792v4.096c0%2018.432-15.36%2033.792-33.792%2033.792z%20m284.672%20250.88h-501.76c-19.968%200-35.84-15.872-35.84-35.84s15.872-35.84%2035.84-35.84h501.76c19.968%200%2035.84%2015.872%2035.84%2035.84s-15.872%2035.84-35.84%2035.84z%20m-284.672%20107.52H420.352c-18.432%200-33.792-15.36-33.792-33.792v-4.096c0-18.432%2015.36-33.792%2033.792-33.792h219.136c18.432%200%2033.792%2015.36%2033.792%2033.792v4.096c0%2018.432-15.36%2033.792-33.792%2033.792z'%20p-id='2086'%3e%3c/path%3e%3c/svg%3e",jh=Object.freeze(Object.defineProperty({__proto__:null,default:Gh},Symbol.toStringTag,{value:"Module"})),qh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752140707910'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4361'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M512%20315.9c-108.3%200-196.1%2087.8-196.1%20196.1S403.7%20708.1%20512%20708.1%20708.1%20620.3%20708.1%20512%20620.3%20315.9%20512%20315.9z%20m93.41%20289.51A132.11%20132.11%200%201%201%20644.1%20512a131.25%20131.25%200%200%201-38.69%2093.41z'%20p-id='4362'%3e%3c/path%3e%3cpath%20d='M851.37%20512c0-7.13-0.23-14.33-0.69-21.54l68.83-62.15-4.73-18.69a413.07%20413.07%200%200%200-45.62-110L859.29%20283l-92.59%204.73a340.49%20340.49%200%200%200-30.45-30.45l4.75-92.57-16.56-9.87a413.07%20413.07%200%200%200-110-45.62l-18.69-4.74-62.15%2068.84a336.56%20336.56%200%200%200-43.08%200l-62.15-68.84-18.69%204.74a413.07%20413.07%200%200%200-110%2045.62L283%20164.71l4.73%2092.59a341.81%20341.81%200%200%200-30.45%2030.45L164.71%20283l-9.87%2016.56a413.07%20413.07%200%200%200-45.62%20110l-4.74%2018.69%2068.84%2062.15c-0.46%207.21-0.69%2014.41-0.69%2021.54s0.23%2014.33%200.69%2021.54l-68.84%2062.15%204.74%2018.69a413.07%20413.07%200%200%200%2045.62%20110l9.87%2016.68%2092.59-4.73a340.49%20340.49%200%200%200%2030.45%2030.45L283%20859.29l16.56%209.87a413.07%20413.07%200%200%200%20110%2045.62l18.69%204.73%2062.15-68.83a336.56%20336.56%200%200%200%2043.08%200l62.15%2068.83%2018.69-4.73a413.07%20413.07%200%200%200%20110-45.62l16.68-9.87-4.73-92.59a341.81%20341.81%200%200%200%2030.45-30.45l92.57%204.75%209.87-16.56a413.07%20413.07%200%200%200%2045.62-110l4.73-18.69-68.83-62.15c0.46-7.27%200.69-14.47%200.69-21.6z%20m-65.75-31.06a276.51%20276.51%200%200%201%200%2062.12l-1.83%2016.32L847.57%20617a349.88%20349.88%200%200%201-24.1%2058.1l-85.81-4.38-10.25%2012.85a277.6%20277.6%200%200%201-43.88%2043.88l-12.85%2010.25%204.38%2085.81a349.88%20349.88%200%200%201-58.1%2024.1l-57.58-63.78-16.32%201.83a276.51%20276.51%200%200%201-62.12%200l-16.32-1.83L407%20847.57a349.88%20349.88%200%200%201-58.1-24.1l4.38-85.81-12.85-10.25a277.66%20277.66%200%200%201-43.89-43.88l-10.24-12.85-85.81%204.38A349%20349%200%200%201%20176.44%20617l63.77-57.58-1.83-16.32a276.51%20276.51%200%200%201%200-62.12l1.83-16.32L176.43%20407a349.88%20349.88%200%200%201%2024.1-58.1l85.81%204.38%2010.24-12.85a278.57%20278.57%200%200%201%2043.89-43.89l12.85-10.24-4.38-85.81a349.88%20349.88%200%200%201%2058.1-24.1l57.58%2063.78%2016.32-1.83a276.51%20276.51%200%200%201%2062.12%200l16.32%201.83L617%20176.44a349%20349%200%200%201%2058.1%2024.09l-4.38%2085.81%2012.85%2010.24a277.66%20277.66%200%200%201%2043.88%2043.89l10.25%2012.85%2085.81-4.38a349.88%20349.88%200%200%201%2024.1%2058.1l-63.78%2057.58z'%20p-id='4363'%3e%3c/path%3e%3c/svg%3e",Uh=Object.freeze(Object.defineProperty({__proto__:null,default:qh},Symbol.toStringTag,{value:"Module"})),Yh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750819285235'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='5686'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='48'%20height='48'%3e%3cpath%20d='M804.571429%20511.890286A219.428571%20219.428571%200%200%201%201024%20731.428571a219.428571%20219.428571%200%201%201-219.428571-219.501714z%20m131.291428%20139.885714l-210.176%20210.212571a155.026286%20155.026286%200%200%200%2078.884572%2021.394286c85.101714%200%20154.112-68.022857%20154.112-151.990857%200-29.184-8.338286-56.466286-22.784-79.616zM804.571429%20579.364571c-85.101714%200-154.112%2068.059429-154.112%20152.027429%200%2029.184%208.338286%2056.429714%2022.784%2079.579429l210.176-210.212572A155.026286%20155.026286%200%200%200%20804.571429%20579.364571zM804.498286%2073.142857c36.754286%200%2072.813714%2036.315429%2072.813714%2073.069714v315.757715a254.171429%20254.171429%200%200%200-72.667429-21.796572V146.212571H72.704l-0.036571%20487.716572%20248.978285-249.417143%20193.353143%20195.510857%2033.536-37.449143v19.2a254.646857%20254.646857%200%200%200-36.205714%20119.369143l-190.902857-193.097143-243.529143%20243.931429h437.028571c3.84%2025.782857%2011.556571%2050.285714%2022.491429%2072.96H72.96C36.534857%20804.937143%200%20768.475429%200%20731.940571V146.212571C0%20110.006857%2036.352%2073.142857%2072.96%2073.142857h731.538286zM581.851429%20256c40.155429%200%2072.704%2032.804571%2072.704%2073.216%200%2040.448-32.548571%2073.252571-72.704%2073.252571a72.96%2072.96%200%200%201-72.777143-73.252571c0-40.411429%2032.585143-73.216%2072.777143-73.216z'%20p-id='5687'%3e%3c/path%3e%3c/svg%3e",Kh=Object.freeze(Object.defineProperty({__proto__:null,default:Yh},Symbol.toStringTag,{value:"Module"})),Xh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750387251918'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='9358'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M764.9%2064H225.4l1.4%20224.2%2064-0.4-1-159.8h383.6v224H896v544H289.8l1-159.8-64-0.4-1.4%20224.2H960V277.7L764.9%2064z%20m-27.6%2064.7L882.8%20288H737.3V128.7z'%20p-id='9359'%3e%3c/path%3e%3cpath%20d='M356.5%20224h255.9v64H356.5z'%20p-id='9360'%3e%3c/path%3e%3cpath%20d='M576.4%20416h255.9v64H576.4zM512.5%20576h319.8v64H512.5zM384.5%20736h447.8v64H384.5z'%20p-id='9361'%3e%3c/path%3e%3cpath%20d='M336.9%20349H198.6l98.9%2098.9H64v128.2h233.5L198.6%20675h138.3l162.9-163z'%20p-id='9362'%3e%3c/path%3e%3c/svg%3e",Qh=Object.freeze(Object.defineProperty({__proto__:null,default:Xh},Symbol.toStringTag,{value:"Module"})),Jh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759000039'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2839'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M952.167422%201011.201424a43.463154%2043.463154%200%200%201-61.58846%200l-43.029534-43.072896a195.533604%20195.533604%200%201%201%2062.238889-60.851307l42.379105%2042.350197a43.52097%2043.52097%200%200%201%200%2061.574006zM746.472662%20682.951266a119.028624%20119.028624%200%201%200%20119.028624%20118.956354%20119.043078%20119.043078%200%200%200-119.028624-118.956354z%20m-430.092986-17.344791h126.515792a43.477608%2043.477608%200%200%201%2043.361976%2043.361976%2042.292381%2042.292381%200%200%201-43.361976%2042.061117h-126.515792a42.306835%2042.306835%200%200%201-43.361976-42.061117%2043.492062%2043.492062%200%200%201%2043.361976-43.361976z%20m0-260.460935a43.434246%2043.434246%200%201%201%200-86.868492h320.372733a43.434246%2043.434246%200%200%201%200%2086.868492H316.379676z%20m320.083653%20173.447904H316.090597a43.434246%2043.434246%200%200%201%200-86.868492h320.40164a43.434246%2043.434246%200%201%201%200%2086.868492z%20m173.274456-376.960111c0-43.651056%201.705571-42.061117-42.046663-42.061117h-88.588517v12.285893c0%2030.064303-10.03107%2031.076083-40.109828%2031.076083H315.613615c-30.078757%200-42.523644-1.011779-42.523645-31.076083v-12.285893h-85.278552c-43.73778%200-42.899448-3.035338-42.899448%2040.760257v655.488537c0%2043.651056-5.665965%2040.760257%2038.086268%2040.760257h302.276335c4.798725%2028.329824%2019.773061%2053.19069%2045.862516%2086.001253H158.845618c-66.936437%200-100.180618-37.435839-100.180619-104.357823V181.831364c0-66.921983%2034.212599-109.272179%20101.177944-109.27218h113.203665V54.636234a52.988335%2052.988335%200%200%201%203.94594-19.079269l1.633301-3.468958a65.968019%2065.968019%200%200%201%208.556764-13.153133l2.71735-3.035338a56.370569%2056.370569%200%200%201%2016.463097-11.563194A54.000114%2054.000114%200%200%201%20327.624882%200.000145h296.942811a53.638764%2053.638764%200%200%201%2021.218461%204.336197%2054.534912%2054.534912%200%200%201%2015.566949%2010.551414l3.786946%204.191658a55.055255%2055.055255%200%200%201%207.588346%2011.418654l1.907927%203.758038a54.679452%2054.679452%200%200%201%204.495191%2020.380128v17.92295h113.247027c66.936437%200%20104.068742%2039.025778%20104.068743%20105.947762v390.402323l-86.723952-38.158539V201.633333z'%20fill='%238a8a8a'%20p-id='2840'%3e%3c/path%3e%3c/svg%3e",Zh=Object.freeze(Object.defineProperty({__proto__:null,default:Jh},Symbol.toStringTag,{value:"Module"})),e1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1751614934560'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2487'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M807.936%2099.328c-17.408%200-32.256%209.216-40.448%2023.552h-348.16L284.672%20355.84l35.84%2035.84%20126.976-219.648h321.536c8.192%2012.8%2022.528%2020.992%2038.912%2020.992%2025.6%200%2046.592-20.992%2046.592-46.592s-20.992-47.104-46.592-47.104z'%20p-id='2488'%3e%3c/path%3e%3cpath%20d='M301.056%2050.688c-8.704%2014.848-7.68%2032.768%200%2046.592L127.488%20399.36l134.656%20232.448%2048.64-13.312L183.808%20399.36l160.256-279.04c15.36-1.024%2029.696-9.216%2037.888-23.04%2012.8-22.528%205.12-50.688-17.408-63.488s-50.688-5.632-63.488%2016.896z'%20p-id='2489'%3e%3c/path%3e%3cpath%20d='M15.872%20467.456c8.704%2014.848%2024.064%2023.552%2040.448%2023.552L228.352%20793.6l268.8%201.536%2013.312-48.64-253.44-1.536-159.232-279.552c6.656-13.312%207.168-30.208-1.024-44.032-12.8-22.528-40.96-30.208-63.488-17.408-22.528%2012.8-30.208%2040.96-17.408%2063.488z'%20p-id='2490'%3e%3c/path%3e%3cpath%20d='M216.064%20924.672c17.408%200%2032.256-9.216%2040.448-23.552h348.16l134.144-232.448-35.84-35.84-126.976%20219.648H254.976c-8.192-12.8-22.528-20.992-38.912-20.992-25.6%200-46.592%2020.992-46.592%2046.592s20.992%2046.592%2046.592%2046.592z'%20p-id='2491'%3e%3c/path%3e%3cpath%20d='M722.944%20973.312c8.704-14.848%207.68-32.768%200-46.592l173.568-302.08-134.656-232.448-48.64%2013.312%20127.488%20219.136-160.256%20279.04c-15.36%201.024-29.696%209.216-37.888%2023.04-12.8%2022.528-5.12%2050.688%2017.408%2063.488%2022.016%2013.312%2050.176%205.632%2062.976-16.896z'%20p-id='2492'%3e%3c/path%3e%3cpath%20d='M1008.128%20556.544c-8.704-14.848-24.064-23.552-40.448-23.552L795.648%20230.4l-268.8-1.536-13.312%2048.64%20253.44%201.536%20159.232%20279.552c-6.656%2013.312-7.168%2030.208%201.024%2044.032%2012.8%2022.528%2040.96%2030.208%2063.488%2017.408%2022.528-12.8%2030.208-40.96%2017.408-63.488zM512%20391.168C445.44%20391.168%20391.168%20445.44%20391.168%20512S445.44%20632.832%20512%20632.832s120.832-54.272%20120.832-120.832S578.56%20391.168%20512%20391.168z%20m0%20196.096c-41.472%200-75.264-33.792-75.264-75.264s33.792-75.264%2075.264-75.264%2075.264%2033.792%2075.264%2075.264-33.792%2075.264-75.264%2075.264z'%20p-id='2493'%3e%3c/path%3e%3c/svg%3e",t1=Object.freeze(Object.defineProperty({__proto__:null,default:e1},Symbol.toStringTag,{value:"Module"})),i1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753428217148'%20class='icon'%20viewBox='0%200%201230%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='34443'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='19.21875'%20height='16'%3e%3cpath%20d='M800.585901%20666.312904a71.402697%2071.402697%200%201%200-71.739503-71.402697%2071.514965%2071.514965%200%200%200%2071.739503%2071.402697z%20m412.47407-192.877097a456.820086%20456.820086%200%200%201%200%20242.611995%20102.051968%20102.051968%200%200%200-41.090231-8.644666%20104.521873%20104.521873%200%200%200-92.060081%2056.134195%20110.135292%20110.135292%200%200%200%2028.965245%20138.090122%20338.938274%20338.938274%200%200%201-204.216204%20121.586668%20104.634141%20104.634141%200%200%200-208.370135%200%20434.590944%20434.590944%200%200%201-204.216205-121.586668%20110.247561%20110.247561%200%200%200%2031.884224-132.476702%20104.858678%20104.858678%200%200%200-94.866791-61.859884%20102.501042%20102.501042%200%200%200-41.2025%208.644666%20456.371012%20456.371012%200%200%201%200-242.499726%20101.041552%20101.041552%200%200%200%2040.977963%208.532398%20106.430435%20106.430435%200%200%200%20104.858678-108.002193%20108.90034%20108.90034%200%200%200-41.539305-86.109856A434.029602%20434.029602%200%200%201%20696.064028%20166.718562a104.634141%20104.634141%200%200%200%20208.370135%200%20455.13606%20455.13606%200%200%201%20203.991668%20121.249863%20108.788071%20108.788071%200%200%200-41.651574%2086.109856%20106.430435%20106.430435%200%200%200%20104.970946%20108.002193%20102.61331%20102.61331%200%200%200%2040.977963-8.532398z%20m-55.460585%20167.841246a747.258415%20747.258415%200%200%200%200-93.182765%20163.799583%20163.799583%200%200%201-135.283412-84.762636%20166.269488%20166.269488%200%200%201-2.582173-155.379454%20358.472974%20358.472974%200%200%200-80.047363-46.591382%20171.546102%20171.546102%200%200%201-275.618902%200%20358.136169%20358.136169%200%200%200-79.935094%2046.591382%20163.125973%20163.125973%200%200%201-5.501152%20158.747506%20168.402587%20168.402587%200%200%201-134.72207%2080.496437%20767.915799%20767.915799%200%200%200%200%2095.203596%20168.402587%20168.402587%200%200%201%20134.04846%2078.587874%20162.901436%20162.901436%200%200%201%206.399298%20160.880605%20357.013485%20357.013485%200%200%200%2080.159632%2046.703651%20168.402587%20168.402587%200%200%201%20275.618901%200%20357.911632%20357.911632%200%200%200%2080.159632-46.703651%20166.15722%20166.15722%200%200%201%205.725688-161.21741%20163.687315%20163.687315%200%200%201%20132.027629-78.587874z%20m-357.013485-189.17224A142.805394%20142.805394%200%201%201%20657.668238%20595.022476a142.805394%20142.805394%200%200%201%20142.917663-142.693126zM0%20499.931148v-71.402697h261.922158v71.402697zM0%2071.402697V0h1142.779958v71.402697H0z%20m0%20857.16917v-71.402697h333.324855v71.402697z'%20fill='%23404040'%20p-id='34444'%3e%3c/path%3e%3c/svg%3e",n1=Object.freeze(Object.defineProperty({__proto__:null,default:i1},Symbol.toStringTag,{value:"Module"})),s1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1751513326254'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2635'%20width='16'%20height='16'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cpath%20d='M273.54647%20325.996013h476.395357c19.444708-2.046811%2036.842605%2011.769166%2039.40112%2030.702171%202.046811%2019.444708-11.769166%2036.330903-31.213874%2038.377714-2.558514%200.511703-5.117029%200.511703-7.675543%200H273.54647c-10.234057-0.511703-19.956411-4.605326-26.608548-11.257463-6.652137-6.652137-10.74576-15.351086-10.74576-24.561737%200.511703-19.956411%2017.397897-35.307497%2037.866011-34.284091v1.023406z%20m0%20209.286467h476.395357c19.444708-2.046811%2036.842605%2011.769166%2039.40112%2030.702171%202.046811%2019.444708-11.769166%2036.330903-31.213874%2038.377714-2.558514%200.511703-5.117029%200.511703-7.675543%200H273.54647c-9.722354%200-19.444708-3.58192-26.608548-10.234057-6.652137-6.652137-10.74576-15.351086-10.74576-24.561737%200.511703-19.444708%2017.397897-35.307497%2037.354308-34.284091z%20m0%20185.748136h324.931312c19.444708%200%2035.307497%2015.862788%2035.307497%2034.795794%200%2019.444708-15.862788%2034.795794-35.307497%2034.795794H273.54647c-9.722354-0.511703-19.444708-4.093623-26.608548-10.74576-6.652137-6.140434-10.74576-14.839383-10.74576-24.050034%200.511703-19.444708%2017.397897-35.307497%2037.354308-34.795794zM135.898402%200.041294h96.71184c17.397897-0.511703%2033.772388%208.187246%2043.494742%2022.514926l53.217097%2082.38416c4.605326%207.16384%2012.792571%2011.769166%2020.979817%2011.257462h322.884501c8.698949%200%2016.886194-4.093623%2021.49152-11.257462l53.217097-82.38416c9.722354-14.32768%2026.096846-23.026628%2043.494742-22.514926h97.223543c53.7288-1.535109%2098.246948%2039.912823%20100.293759%2093.12992v837.657572c-2.046811%2052.705394-46.56496%2094.153325-100.293759%2093.12992h-752.203196c-53.7288%201.535109-98.758651-39.912823-100.293759-92.618217V93.171214C37.139751%2039.954117%2082.169603-1.493814%20135.898402%200.041294z%20m82.895863%2070.103291H135.898402c-6.652137%200-13.304274%202.558514-18.421303%206.652138-4.605326%204.093623-7.16384%2010.234057-7.16384%2016.374491v837.657572c0.511703%2013.304274%2011.769166%2023.538331%2025.07344%2023.026629h752.203196c6.652137%200%2013.304274-2.558514%2018.421303-6.652138%204.605326-4.093623%207.16384-10.234057%207.16384-16.374491V93.171214c0.511703-6.140434-2.046811-12.280868-7.16384-16.374491-5.117029-4.605326-11.257463-6.652137-18.421303-6.652138h-82.895862l-46.053257%2070.614994c-18.933006%2028.65536-51.681988%2045.541554-86.477783%2045.029851H350.813601c-34.795794%200.511703-67.544777-16.374491-86.477782-45.029851l-45.541554-70.614994zM399.425372%200.041294h225.149256c19.956411-0.511703%2036.842605%2015.351086%2037.866011%2034.795795-0.511703%2019.956411-17.397897%2035.307497-37.866011%2034.795794H399.425372c-10.234057-0.511703-19.956411-4.093623-27.120251-10.74576-6.652137-6.140434-10.74576-15.351086-10.234057-24.050034C362.582767%2015.39238%20378.957258-0.470408%20399.425372%200.041294z'%20p-id='2636'%3e%3c/path%3e%3c/svg%3e",o1=Object.freeze(Object.defineProperty({__proto__:null,default:s1},Symbol.toStringTag,{value:"Module"})),r1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1751513344245'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2848'%20width='16'%20height='16'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cpath%20d='M855.04%20385.024q19.456%202.048%2038.912%2010.24t33.792%2023.04%2021.504%2037.376%202.048%2054.272q-2.048%208.192-8.192%2040.448t-14.336%2074.24-18.432%2086.528-19.456%2076.288q-5.12%2018.432-14.848%2037.888t-25.088%2035.328-36.864%2026.112-51.2%2010.24l-567.296%200q-21.504%200-44.544-9.216t-42.496-26.112-31.744-40.96-12.288-53.76l0-439.296q0-62.464%2033.792-97.792t95.232-35.328l503.808%200q22.528%200%2046.592%208.704t43.52%2024.064%2031.744%2035.84%2012.288%2044.032l0%2011.264-53.248%200q-40.96%200-95.744-0.512t-116.736-0.512-115.712-0.512-92.672-0.512l-47.104%200q-26.624%200-41.472%2016.896t-23.04%2044.544q-8.192%2029.696-18.432%2062.976t-18.432%2061.952q-10.24%2033.792-20.48%2065.536-2.048%208.192-2.048%2013.312%200%2017.408%2011.776%2029.184t29.184%2011.776q31.744%200%2043.008-39.936l54.272-198.656q133.12%201.024%20243.712%201.024l286.72%200z'%20p-id='2849'%3e%3c/path%3e%3c/svg%3e",l1=Object.freeze(Object.defineProperty({__proto__:null,default:r1},Symbol.toStringTag,{value:"Module"})),a1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750406004238'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='9507'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M896%20128H128c-25.6%200-42.666667%2017.066667-42.666667%2042.666667v682.666666c0%2025.6%2017.066667%2042.666667%2042.666667%2042.666667h768c25.6%200%2042.666667-17.066667%2042.666667-42.666667V170.666667c0-25.6-17.066667-42.666667-42.666667-42.666667zM170.666667%20213.333333h298.666666v341.333334H170.666667V213.333333z%20m0%20597.333334v-170.666667h298.666666v170.666667H170.666667z%20m682.666666%200h-298.666666v-341.333334h298.666666v341.333334z%20m0-426.666667h-298.666666V213.333333h298.666666v170.666667z'%20p-id='9508'%3e%3c/path%3e%3c/svg%3e",c1=Object.freeze(Object.defineProperty({__proto__:null,default:a1},Symbol.toStringTag,{value:"Module"})),h1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753777791101'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3501'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M512%2010.24a71.68%2071.68%200%200%201%2071.68%2071.68v10.24h81.92a92.20096%2092.20096%200%200%201%2086.91712%2061.44h23.10144c37.64224%200%2056.77056%203.4304%2076.77952%2013.3632%2018.71872%209.29792%2033.72032%2023.2448%2043.9296%2040.93952C907.4688%20227.25632%20911.36%20245.97504%20911.36%20281.83552v603.68896c0%2035.86048-3.8912%2054.5792-15.04256%2073.9328-10.19904%2017.70496-25.20064%2031.6416-43.9296%2040.93952-19.99872%209.9328-39.1168%2013.3632-76.76928%2013.3632H248.38144c-37.64224%200-56.77056-3.4304-76.77952-13.3632-18.71872-9.29792-33.72032-23.2448-43.9296-40.93952C116.5312%20940.10368%20112.64%20921.38496%20112.64%20885.52448V281.83552c0-35.86048%203.8912-54.5792%2015.04256-73.9328%2010.19904-17.70496%2025.20064-31.6416%2043.9296-40.93952%2019.99872-9.9328%2039.1168-13.3632%2076.76928-13.3632h23.10144A92.20096%2092.20096%200%200%201%20358.4%2092.16h81.92V81.92a71.68%2071.68%200%200%201%2071.68-71.68zM271.48288%20215.04h-26.368c-26.4704%200.14336-36.2496%202.01728-46.1824%206.9632-7.9872%203.95264-13.9264%209.472-18.01216%2016.56832-4.87424%208.45824-6.69696%2016.60928-6.83008%2040.23296v609.75104c0.13312%2023.62368%201.95584%2031.77472%206.83008%2040.2432%204.08576%207.08608%2010.0352%2012.5952%2018.01216%2016.56832%2010.3424%205.13024%2020.50048%206.95296%2049.44896%206.95296h527.23712c28.94848%200%2039.1168-1.82272%2049.44896-6.9632%207.9872-3.95264%2013.9264-9.472%2018.01216-16.56832%205.07904-8.8064%206.84032-17.29536%206.84032-43.264V281.83552c0-25.96864-1.76128-34.44736-6.84032-43.264-4.08576-7.09632-10.0352-12.61568-18.01216-16.57856-9.9328-4.93568-19.712-6.8096-46.1824-6.94272h-26.368A92.20096%2092.20096%200%200%201%20665.6%20276.48H358.4a92.20096%2092.20096%200%200%201-86.91712-61.44zM686.08%20788.48a30.72%2030.72%200%200%201%200%2061.44H337.92a30.72%2030.72%200%200%201%200-61.44h348.16z%20m8.22272-377.01632a30.72%2030.72%200%201%201%2043.44832%2043.44832L506.05056%20686.61248a30.72%2030.72%200%200%201-43.44832%200L332.26752%20556.27776a30.72%2030.72%200%200%201%200-43.44832l1.31072-1.2288a30.72%2030.72%200%200%201%2042.1376%201.2288l108.60544%20108.61568zM665.6%20153.6H358.4a30.72%2030.72%200%200%200%200%2061.44h307.2a30.72%2030.72%200%200%200%200-61.44zM512%2071.68a10.24%2010.24%200%200%200-10.24%2010.24v10.24h20.48V81.92a10.24%2010.24%200%200%200-10.24-10.24z'%20fill='%23000000'%20p-id='3502'%3e%3c/path%3e%3c/svg%3e",u1=Object.freeze(Object.defineProperty({__proto__:null,default:h1},Symbol.toStringTag,{value:"Module"})),f1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752200265785'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4294'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M930.4%20337.3c-22.7-53.7-55.2-101.9-96.6-143.3-41.4-41.4-89.6-73.9-143.3-96.6C634.9%2073.9%20575.9%2062%20515.1%2062c-60.8%200-119.9%2011.9-175.5%2035.4-53.7%2022.7-101.9%2055.2-143.3%2096.6-41.4%2041.4-73.9%2089.6-96.6%20143.3-23.5%2055.6-35.4%20114.6-35.4%20175.5%200%2050.5%208.3%20100.1%2024.7%20147.4l66.1-22.9c-13.8-39.9-20.8-81.8-20.8-124.5%200-209.9%20170.8-380.7%20380.7-380.7%20209.9%200%20380.8%20170.8%20380.8%20380.7%200%2041.6-6.7%2082.5-19.8%20121.5l66.3%2022.3c15.6-46.2%2023.5-94.7%2023.5-143.9%200-60.8-11.9-119.8-35.4-175.4z'%20p-id='4295'%3e%3c/path%3e%3cpath%20d='M656.9%20422.2c0-76.9-62.6-139.5-139.5-139.5s-139.5%2062.6-139.5%20139.5%2062.6%20139.5%20139.5%20139.5%20139.5-62.6%20139.5-139.5z%20m-209%200c0-38.3%2031.2-69.5%2069.5-69.5s69.5%2031.2%2069.5%2069.5-31.2%2069.5-69.5%2069.5-69.5-31.2-69.5-69.5zM713.8%20627.8c-62-27.2-128.1-40.9-196.4-40.9-69%200-135.7%2014-198.2%2041.7-60.4%2026.7-114.1%2064.9-159.5%20113.3l-20.3%2021.7%2018.1%2023.6c41.2%2053.6%2094.8%2098%20155%20128.3%2063.2%2031.8%20131.3%2048%20202.6%2048%2071.9%200%20140.6-16.4%20204.2-48.8%2060.7-30.9%20114.5-76%20155.6-130.4l17.9-23.7-20.5-21.6c-45.3-47.6-98.6-85-158.5-111.2zM515.1%20893.5c-109%200-210.3-45.3-282.5-125.4%2077.7-71.9%20177.7-111.2%20284.8-111.2%20105.8%200%20204.9%2038.4%20282.2%20108.8-72.2%2081.6-174.3%20127.8-284.5%20127.8z'%20p-id='4296'%3e%3c/path%3e%3c/svg%3e",d1=Object.freeze(Object.defineProperty({__proto__:null,default:f1},Symbol.toStringTag,{value:"Module"})),p1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752200308077'%20class='icon'%20viewBox='0%200%201169%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='5263'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='18.265625'%20height='16'%3e%3cpath%20d='M787.333831%20588.946093a75.189984%2075.189984%200%200%200-75.093984%2075.092984%2075.189984%2075.189984%200%200%200%2075.093984%2075.093984%2075.165984%2075.165984%200%200%200%2075.067984-75.093984%2075.165984%2075.165984%200%200%200-75.067984-75.092984m0%20222.841953a147.919968%20147.919968%200%200%201-147.748968-147.748969c0-81.455982%2066.291986-147.747968%20147.748968-147.747968%2081.431983%200%20147.747968%2066.291986%20147.747968%20147.747968%200%2081.480982-66.315986%20147.748968-147.747968%20147.748969m89.452981%20102.106978c0.342%200.244%201.317%200.585%202.315999%200.585h0.122l71.484985-39.496992c-1.706-4.022999-9.605998-23.478995-9.605998-43.739991a113.858976%20113.858976%200%200%201%20107.739977-113.613975c0.853-4.729999%205.557999-31.524993%205.557998-51.639989s-4.704999-46.88399-5.558998-51.637989a113.858976%20113.858976%200%200%201-107.738977-113.565976c0-20.357996%207.923998-39.813991%209.605998-43.81299l-70.313985-39.057992-0.293-0.025a5.339999%205.339999%200%200%200-2.706%200.732%20196.753958%20196.753958%200%200%201-26.014994%2021.819995c-21.698995%2015.238997-42.153991%2022.967995-60.951987%2022.967995-18.919996%200-39.594991-7.874998-61.390987-23.405995a194.705958%20194.705958%200%200%201-26.160994-22.283995%205.777999%205.777999%200%200%200-2.729999-0.707h-0.245l-72.824985%2040.032992c1.706%204.046999%209.580998%2023.479995%209.580998%2043.73999A113.858976%20113.858976%200%200%201%20528.895886%20614.350088c-0.854%204.729999-5.509999%2031.524993-5.509998%2051.638989s4.655999%2046.90899%205.533998%2051.662989a113.858976%20113.858976%200%200%201%20107.763977%20113.589975c0%2020.334996-7.972998%2039.863991-9.679998%2043.788991l68.973985%2038.545992h0.146c1.024%200%201.95-0.365%202.317-0.585a200.849957%20200.849957%200%200%201%2026.428994-23.161995c22.088995-16.188997%2043.079991-24.429995%2062.414987-24.429995%2019.552996%200%2040.715991%208.387998%2062.950986%2024.917995%2014.920997%2011.068998%2025.258995%2022.185995%2026.550995%2023.575995m22.673995%20108.397976c-13.774997-0.025-27.135994-5.704999-35.765993-15.213996-11.775997-12.896997-49.005989-46.44599-79.530982-46.44599-30.280993%200-68.119985%2033.767993-78.993984%2045.54399-8.606998%209.386998-21.869995%2014.969997-35.498992%2014.969997-6.484999%200-12.604997-1.243-18.187996-3.706l-0.975-0.414-92.69698-51.833988-0.926-0.683a44.46999%2044.46999%200%200%201-14.920996-53.735989c0.049-0.146%208.532998-19.699996%208.532998-37.594992a98.376979%2098.376979%200%200%200-98.254979-98.254978h-3.900999c-15.505997%200-28.159994-13.799997-32.182993-35.108993-0.341-1.706-7.923998-42.178991-7.923999-74.044984%200-31.913993%207.557998-72.361984%207.899999-74.117984%204.119999-21.576995%2016.992996-35.449992%2032.816993-35.083993h3.266999a98.400979%2098.400979%200%200%200%2098.279979-98.303978c0-17.846996-8.484998-37.399992-8.558998-37.619992a44.34899%2044.34899%200%200%201%2015.067996-53.661989l0.95-0.658%2097.840979-53.759988%201.024-0.415c5.485999-2.364999%2011.507998-3.534999%2017.895996-3.534999%2013.604997%200%2026.891994%205.436999%2035.595992%2014.628997%2011.580998%2012.116997%2048.17699%2043.641991%2077.774984%2043.64199%2029.354994%200%2065.755986-30.914993%2077.287983-42.812991%208.654998-8.996998%2021.844995-14.335997%2035.302992-14.335997%206.509999%200%2012.653997%201.219%2018.285997%203.657l0.974999%200.414%2094.47698%2052.516988%200.95%200.658c16.895996%2011.751997%2023.332995%2034.889993%2014.945997%2053.735989-0.049%200.146-8.532998%2019.699996-8.532999%2037.545992a98.400979%2098.400979%200%200%200%2098.254979%2098.279978h3.291c15.774997-0.341%2028.719994%2013.506997%2032.816993%2035.107993%200.317%201.707%207.899998%2042.203991%207.899998%2074.069984%200%2031.889993-7.582998%2072.410984-7.948998%2074.117984-4.046999%2021.551995-16.992996%2035.424992-32.767993%2035.059993h-3.291a98.400979%2098.400979%200%200%200-98.254979%2098.278978c0%2017.846996%208.483998%2037.449992%208.556999%2037.619992a44.42199%2044.42199%200%200%201-15.017997%2053.710989l-0.927%200.683-96.133979%2053.100988-0.975%200.415a44.88499%2044.88499%200%200%201-17.846996%203.583999z%20m222.061952-705.339848a48.76199%2048.76199%200%201%201-97.523979%200V121.977194c0-13.457997-10.873998-24.453995-24.307995-24.453995h-877.859811c-13.262997%200-24.306995%2010.970998-24.306995%2024.453995v584.995874c0%2013.457997%2010.873998%2024.453995%2024.307995%2024.453995h219.500953a48.76199%2048.76199%200%201%201%200%2097.523979H48.907989A48.76199%2048.76199%200%200%201%200%20780.190052V48.76221C0%2021.822215%2021.893995%200.00022%2048.907989%200.00022h1023.706781a48.76199%2048.76199%200%200%201%2048.907989%2048.76199v268.189942zM219.427953%20975.23701c0-26.940994%2021.991995-48.76199%2048.981989-48.761989h194.607959a48.76199%2048.76199%200%201%201%200%2097.523979H268.433942a48.76199%2048.76199%200%200%201-49.005989-48.76199z'%20p-id='5264'%3e%3c/path%3e%3c/svg%3e",g1=Object.freeze(Object.defineProperty({__proto__:null,default:p1},Symbol.toStringTag,{value:"Module"})),m1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759014120'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3160'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M567.466667%20908.8H128c-17.066667%200-34.133333-17.066667-34.133333-34.133333V290.133333c0-17.066667%20170.666667-187.733333%20187.733333-187.733333h285.866667c17.066667%200%2034.133333%2017.066667%2034.133333%2034.133333v733.866667c0%2021.333333-17.066667%2038.4-34.133333%2038.4z%20m-430.933334-42.666667h422.4V149.333333H285.866667c-21.333333%2017.066667-128%20123.733333-149.333334%20149.333334v567.466666zM567.466667%20149.333333zM887.466667%20256h-170.666667c-25.6%200-42.666667-21.333333-42.666667-46.933333V153.6c0-25.6%2017.066667-46.933333%2042.666667-46.933333h170.666667c25.6%200%2042.666667%2021.333333%2042.666666%2046.933333v51.2c0%2029.866667-17.066667%2051.2-42.666666%2051.2z%20m-166.4-106.666667V209.066667h170.666666V153.6v-4.266667h-170.666666z%20m-4.266667%200zM887.466667%20785.066667h-170.666667c-25.6%200-42.666667-17.066667-42.666667-38.4V307.2c0-21.333333%2017.066667-38.4%2042.666667-38.4h170.666667c25.6%200%2042.666667%2017.066667%2042.666666%2038.4v435.2c0%2025.6-17.066667%2042.666667-42.666666%2042.666667z%20m0-477.866667l-170.666667%204.266667v430.933333l170.666667-4.266667V307.2z'%20fill='%23707070'%20p-id='3161'%3e%3c/path%3e%3cpath%20d='M802.133333%20917.333333c-8.533333%200-12.8-4.266667-17.066666-8.533333L678.4%20768c-4.266667-8.533333-4.266667-17.066667%200-21.333333%204.266667-8.533333%2012.8-12.8%2017.066667-12.8h213.333333c8.533333%200%2017.066667%204.266667%2017.066667%2012.8%204.266667%208.533333%204.266667%2017.066667%200%2021.333333l-106.666667%20140.8c-4.266667%208.533333-8.533333%208.533333-17.066667%208.533333z%20m-64-140.8l64%2085.333334%2064-85.333334h-128zM290.133333%20337.066667l-179.2-25.6c-4.266667%200-12.8-4.266667-17.066666-12.8-4.266667-8.533333%200-17.066667%204.266666-21.333334L247.466667%20128c8.533333-8.533333%2017.066667-8.533333%2025.6-8.533333%208.533333%204.266667%2012.8%208.533333%2012.8%2017.066666l25.6%20174.933334c0%208.533333%200%2012.8-4.266667%2017.066666-4.266667%208.533333-8.533333%208.533333-17.066667%208.533334z%20m-128-59.733334l106.666667%2012.8-17.066667-102.4-89.6%2089.6zM448%20456.533333H302.933333c-12.8%200-21.333333-8.533333-21.333333-21.333333s8.533333-21.333333%2021.333333-21.333333h145.066667c12.8%200%2021.333333%208.533333%2021.333333%2021.333333s-8.533333%2021.333333-21.333333%2021.333333zM460.8%20593.066667h-256c-12.8%200-21.333333-8.533333-21.333333-21.333334s8.533333-21.333333%2021.333333-21.333333h256c12.8%200%2021.333333%208.533333%2021.333333%2021.333333s-8.533333%2021.333333-21.333333%2021.333334zM460.8%20704h-256c-12.8%200-21.333333-8.533333-21.333333-21.333333s8.533333-21.333333%2021.333333-21.333334h256c12.8%200%2021.333333%208.533333%2021.333333%2021.333334s-8.533333%2021.333333-21.333333%2021.333333z'%20p-id='3162'%3e%3c/path%3e%3c/svg%3e",v1=Object.freeze(Object.defineProperty({__proto__:null,default:m1},Symbol.toStringTag,{value:"Module"})),w1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759021503'%20class='icon'%20viewBox='0%200%201170%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3318'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='36.5625'%20height='32'%3e%3cpath%20d='M1165.165714%20493.714286L890.88%2018.285714a36.571429%2036.571429%200%200%200-31.451429-18.285714h-548.571428a36.571429%2036.571429%200%200%200-31.451429%2018.285714L5.12%20493.714286a36.571429%2036.571429%200%200%200%200%2036.571428l274.285714%20475.428572a36.571429%2036.571429%200%200%200%2031.451429%2018.285714h548.571428a36.571429%2036.571429%200%200%200%2031.451429-18.285714l274.285714-475.428572a36.571429%2036.571429%200%200%200%200-36.571428zM78.994286%20512l227.474285-393.508571%2073.142858%20128a950.857143%20950.857143%200%200%201-82.651429%20210.651428q14.628571%2057.782857%2021.942857%20103.862857%2019.748571-30.72%2037.302857-64.365714v268.434286h73.142857V338.651429l3.657143-11.702858%2065.828572%20111.908572v21.211428H512l13.897143%2023.405715H444.708571v89.965714h73.142858V541.257143h40.228571L585.142857%20585.142857H484.937143v58.514286h135.314286l17.554285%2029.257143a23.405714%2023.405714%200%200%201-27.062857%2024.137143h-73.142857q9.508571%2044.617143%2013.897143%2073.142857a915.748571%20915.748571%200%200%200%2099.474286%200%2065.828571%2065.828571%200%200%200%2032.182857-10.24L804.571429%20950.857143H332.068571z%20m785.554285%20393.508571L714.605714%20658.285714v-14.628571h122.148572V585.142857H670.72l-25.6-43.885714h151.405714v32.914286h73.142857V483.474286H610.742857l-13.897143-23.405715h225.28v-131.657142H517.851429l-13.897143-23.405715h365.714285v-57.782857H707.291429l-18.285715-49.737143-84.845714%2014.628572%2015.36%2035.108571H468.845714l-7.314285-12.434286c0-7.314286%204.388571-13.165714%206.582857-20.48l-21.942857-4.388571L365.714286%2073.142857h473.234285l253.074286%20438.857143z%20m-292.571428-496.64v-29.257142h173.348571v29.988571z'%20p-id='3319'%3e%3c/path%3e%3c/svg%3e",x1=Object.freeze(Object.defineProperty({__proto__:null,default:w1},Symbol.toStringTag,{value:"Module"})),b1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759312255'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2472'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M381.525333%20351.765333v160c0%2023.402667%203.136%2053.888%209.408%2091.456L426.666667%20731.690667V652.8l76.181333-0.021333V601.6h50.794667v-0.021333l-25.386667%200.021333v-51.2l25.386667-0.021333V499.2h25.386666v51.178667h25.408V448h25.386667v102.378667l25.408%200.021333v51.2l-76.202667-0.021333v0.021333h253.994667l-0.021333%2051.178667L960%20652.8v232.277333h64v42.666667H0v-42.666667h21.333333c72.746667-160%20109.141333-284.437333%20109.141334-373.333333v-160h251.050666zM921.898667%20789.333333H515.562667v25.6h406.336V789.333333z%20m0-51.2H515.562667v25.6h406.336v-25.6zM353.877333%20234.666667c0%2041.216-63.210667%2072.106667-109.482666%2059.626666-34.709333-9.386667-70.016%2013.162667-84.053334%2022.186667l-3.029333%201.92c-2.581333%201.621333-3.712%202.154667-3.072%200.896%2038.890667-75.52%2090.154667-60.309333%2090.154667-60.309333%2069.354667%2024.32%20109.482667-24.32%20109.482666-24.32z%20m64-85.333334c0%2051.52-79.018667%2090.154667-136.853333%2074.517334-57.856-15.637333-117.013333%2039.68-112.682667%2031.274666%2048.597333-94.4%20112.682667-75.392%20112.682667-75.392C367.722667%20210.133333%20417.877333%20149.333333%20417.877333%20149.333333z'%20fill='%23000000'%20p-id='2473'%3e%3c/path%3e%3c/svg%3e",y1=Object.freeze(Object.defineProperty({__proto__:null,default:b1},Symbol.toStringTag,{value:"Module"})),k1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752204045219'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4010'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M345.216%20664.192a315.84%20315.84%200%200%201%2093.12-224.64%20315.84%20315.84%200%200%201%20100.992-68.16%20315.392%20315.392%200%200%201%20123.648-24.96%20315.392%20315.392%200%200%201%20158.72%2042.368V124.8a24.768%2024.768%200%200%200-24.768-24.768H559.296a32.64%2032.64%200%200%201%200.704%206.976v133.184c0%2019.2-15.616%2034.816-34.816%2034.816H395.072a34.816%2034.816%200%200%201-34.752-34.816v-133.12a32.64%2032.64%200%200%201%200.64-6.976H123.456a24.768%2024.768%200%200%200-24.768%2024.832v676.544c0%2013.76%2011.072%2024.832%2024.768%2024.832h266.24a316.224%20316.224%200%200%201-44.416-162.112z%20m317.76-257.792a257.792%20257.792%200%201%200%200%20515.52%20257.792%20257.792%200%200%200%200-515.52z%20m112.256%20293.376a104.704%20104.704%200%200%201-107.328%2025.216l-68.48%2068.48a46.528%2046.528%200%200%201-65.728-65.664l68.48-68.48a104.512%20104.512%200%200%201%20140.8-129.28L675.904%20597.12l10.88%2042.88%2043.328%2011.328%2067.072-67.136c16.64%2038.336%209.216%2084.416-21.952%20115.584z%20m-220.16%2051.456a20.928%2020.928%200%201%200%2041.856%200%2020.928%2020.928%200%200%200-41.856%200z'%20p-id='4011'%3e%3c/path%3e%3c/svg%3e",S1=Object.freeze(Object.defineProperty({__proto__:null,default:k1},Symbol.toStringTag,{value:"Module"})),C1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752024926580'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1794'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M896%20810.666667h85.333333v85.333333H42.666667v-85.333333h85.333333V170.666667a42.666667%2042.666667%200%200%201%2042.666667-42.666667h426.666666a42.666667%2042.666667%200%200%201%2042.666667%2042.666667v640h85.333333V384h128a42.666667%2042.666667%200%200%201%2042.666667%2042.666667v384zM298.666667%20469.333333v85.333334h170.666666v-85.333334H298.666667z%20m0-170.666666v85.333333h170.666666V298.666667H298.666667z'%20fill='%23000000'%20p-id='1795'%3e%3c/path%3e%3c/svg%3e",_1=Object.freeze(Object.defineProperty({__proto__:null,default:C1},Symbol.toStringTag,{value:"Module"})),O1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753777755003'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2702'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M393.6%20768l105.6-105.6L605.6%20768l46.4-46.4L545.6%20616l105.6-105.6-45.6-46.4-105.6%20106.4L393.6%20464l-46.4%2046.4L453.6%20616%20348%20722.4l45.6%2045.6z%20m420.8-608h-43.2V73.6H684V160H336.8V73.6H250.4V160h-43.2c-48%200-86.4%2039.2-86.4%2087.2l-0.8%20608c0%2048%2038.4%2087.2%2087.2%2087.2h608c48%200%2087.2-39.2%2087.2-87.2v-608c-0.8-48-40-87.2-88-87.2z%20m0%20695.2h-608V377.6h608v477.6z'%20fill=''%20p-id='2703'%3e%3c/path%3e%3c/svg%3e",M1=Object.freeze(Object.defineProperty({__proto__:null,default:O1},Symbol.toStringTag,{value:"Module"})),D1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753777764300'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2863'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M709.6%20514.4l-46.4-46.4-212.8%20213.6-92.8-92.8-45.6%2046.4%20139.2%20139.2c-0.8-0.8%20258.4-260%20258.4-260z%20m108-351.2h-44v-88H686.4v87.2H337.6V75.2H250.4v87.2h-44c-48.8%200-87.2%2039.2-87.2%2087.2l-0.8%20611.2c0%2048%2039.2%2087.2%2087.2%2087.2h611.2c48%200%2087.2-39.2%2087.2-87.2V250.4c0.8-48-38.4-87.2-86.4-87.2z%20m0%20697.6H206.4v-480h611.2v480z'%20fill=''%20p-id='2864'%3e%3c/path%3e%3c/svg%3e",T1=Object.freeze(Object.defineProperty({__proto__:null,default:D1},Symbol.toStringTag,{value:"Module"})),A1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753758984014'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2517'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M733.090909%20744.727273h-442.181818a34.909091%2034.909091%200%201%200%200%2069.818182h442.181818a34.909091%2034.909091%200%201%200%200-69.818182m-297.681454-229.818182a52.037818%2052.037818%200%200%200%2050.129454-38.050909L512%20381.928727l26.461091%2094.929455a52.037818%2052.037818%200%200%200%20100.119273%200.372363l70.283636-244.736a34.955636%2034.955636%200%200%200-29.672727-44.357818c-17.268364-2.048-33.117091%2010.146909-37.911273%2026.856728l-52.433455%20182.574545-43.659636-153.227636a35.025455%2035.025455%200%200%200-67.374545%200.186181l-42.658909%20153.041455-52.433455-182.574545c-4.794182-16.709818-20.642909-28.904727-37.911273-26.856728a34.955636%2034.955636%200%200%200-29.672727%2044.357818l70.283636%20244.736a52.014545%2052.014545%200%200%200%2049.989819%2037.678546M733.090909%20605.090909h-442.181818a34.909091%2034.909091%200%201%200%200%2069.818182h442.181818a34.909091%2034.909091%200%201%200%200-69.818182m139.636364%20116.363636a34.909091%2034.909091%200%200%200%2034.909091-34.90909V93.090909a69.818182%2069.818182%200%200%200-69.818182-69.818182H186.181818a69.818182%2069.818182%200%200%200-69.818182%2069.818182v837.818182a69.818182%2069.818182%200%200%200%2069.818182%2069.818182h651.636364a69.818182%2069.818182%200%200%200%2069.818182-69.818182v-81.454546a34.909091%2034.909091%200%201%200-69.818182%200V930.909091H186.181818V93.090909h651.636364v593.454546a34.909091%2034.909091%200%200%200%2034.909091%2034.90909'%20p-id='2518'%3e%3c/path%3e%3c/svg%3e",B1=Object.freeze(Object.defineProperty({__proto__:null,default:A1},Symbol.toStringTag,{value:"Module"})),P1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759028609'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3475'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M867.288842%2064.648392%20157.782559%2064.648392c-16.954137%200-30.699186%2013.745049-30.699186%2030.699186L127.083373%20928.244122c0%2016.954137%2013.745049%2030.699186%2030.699186%2030.699186l709.506283%200c16.954137%200%2030.699186-13.745049%2030.699186-30.699186L897.988028%2095.347578C897.988028%2078.392418%20884.242979%2064.648392%20867.288842%2064.648392zM574.652945%20126.046764l131.487683%200%200%20273.587052-53.983495-32.547277c-10.112312-6.095835-22.824845-5.852288-32.694633%200.62524l-44.809555%2029.408797L574.652945%20126.046764zM513.254573%20126.046764l0%20327.943031c0%2011.281951%206.187933%2021.655206%2016.116049%2027.01426%204.562922%202.463098%209.577123%203.684926%2014.58109%203.684926%205.881964%200%2011.749602-1.688455%2016.84669-5.033643l76.202543-50.012044%2083.98888%2050.637284c9.478885%205.715165%2021.305235%205.884011%2030.946826%200.440022%209.640568-5.445012%2015.60235-15.658631%2015.60235-26.730805L767.539001%20126.046764l69.050656%200%200%20642.611733L188.481745%20768.658498%20188.481745%20126.046764%20513.254573%20126.046764zM188.481745%20897.544937l0-67.488067%20648.107911%200%200%2067.488067L188.481745%20897.544937z'%20p-id='3476'%3e%3c/path%3e%3c/svg%3e",E1=Object.freeze(Object.defineProperty({__proto__:null,default:P1},Symbol.toStringTag,{value:"Module"})),V1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752025080767'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2430'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M976%2016H48A48%2048%200%200%200%200%2064v720a48%2048%200%200%200%2048%2048h928a48%2048%200%200%200%2048-48V64a48%2048%200%200%200-48-48zM303.12%20272.8a8%208%200%200%201%208-8%20165.76%20165.76%200%200%201%2094.4%2035.44%208%208%200%200%201%201.04%2011.76l-39.44%2040a8.8%208.8%200%200%201-11.28%200.88%2093.84%2093.84%200%200%200-44.32-16%209.12%209.12%200%200%201-8-8.8z%20m92.16%20298.16a169.52%20169.52%200%200%201-64.48%2026.56h-0.4a153.76%20153.76%200%200%201-27.28%202.4%20168%20168%200%200%201-33.36-332.08%208%208%200%200%201%209.44%208v57.2a8.8%208.8%200%200%201-6.16%208A96%2096%200%200%200%20303.12%20528a93.6%2093.6%200%200%200%2043.2-10.72%208.8%208.8%200%200%201%2010.4%201.36l39.52%2040a8%208%200%200%201-0.96%2012.32z%20m34.8-29.84a8%208%200%200%201-11.84%200l-39.04-39.04a9.12%209.12%200%200%201-0.48-11.84A94.8%2094.8%200%200%200%20384%20381.36a9.04%209.04%200%200%201%200.96-11.12l39.6-40a8%208%200%200%201%2012%200.64%20168%20168%200%200%201-6.24%20210.08z%20m190.56%208.56a33.44%2033.44%200%201%201-66.88%200V415.44a33.44%2033.44%200%201%201%2066.88%200z%20m133.68%200a33.44%2033.44%200%201%201-66.88%200V289.6a33.44%2033.44%200%201%201%2066.88%200z%20m133.68%200a33.44%2033.44%200%201%201-66.88%200V289.6a33.44%2033.44%200%201%201%2066.88%200zM800%20936H240a40%2040%200%200%200%200%2080h560a40%2040%200%200%200%200-80z'%20p-id='2431'%3e%3c/path%3e%3c/svg%3e",z1=Object.freeze(Object.defineProperty({__proto__:null,default:V1},Symbol.toStringTag,{value:"Module"})),L1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752025102384'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2587'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M744.459278%20327.891539v-30.371913c0-19.963561%2016.323482-36.17329%2036.457671-36.173291h151.120177l1.82004-0.341257c20.191066%200%2036.514548%2016.152853%2036.514548%2036.17329v144.636285a319.075722%20319.075722%200%200%200-98.566529-72.34658%20408.371423%20408.371423%200%200%200-127.345907-41.576534z%20m-463.200121%20343.134372l-102.149732%201.080649v36.17329h105.107297c-2.27505%2027.186844-2.27505%2054.544317%200%2081.731161%205.061986%2035.661404%2013.820927%2070.69717%2026.276824%20104.538534H28.671763V74.735383C28.671763%2033.613859%2062.342499%200.284381%20103.919032%200.284381h526.617131c41.576533%200%2075.190393%2033.329478%2075.190393%2074.451002v250.994859s-198.896221-2.559431-319.360102%20121.828912a403.025056%20403.025056%200%200%200-105.107297%20223.466757zM179.109425%20149.243261H103.919032v75.929784h75.190393V149.243261z%20m0%20148.958879H103.919032v75.986661h75.190393V298.20214z%20m0%20149.015756H103.919032v75.929784h75.190393V447.217896z%20m150.32391-297.974635H254.299818v75.929784h75.133517V149.243261z%20m0%20148.958879H254.299818v75.986661h75.133517V298.20214z%20m0%20149.015756H254.299818v75.929784h75.133517V447.217896z%20m225.969312-111.363683s25.139299-7.621417%2039.415236-11.20462c14.219061-3.64008%2036.457672-7.223283%2036.457672-7.223283l-0.739392-17.745387H555.402647v36.17329z%20m-0.398134-110.681168h76.271042l-1.080649-75.929784H555.004513v75.929784zM404.623727%20373.44941h76.271042L479.81412%20298.20214H404.623727v75.24727z%20m0-148.276365h76.271042L479.81412%20149.243261H404.623727v75.929784z%20m281.082392%20185.13217c170.913109%200%20309.463637%20137.29925%20309.463636%20306.6767%200%20169.320575-138.550527%20306.619824-309.463636%20306.619825-170.969986%200-309.520513-137.29925-309.520513-306.619825%200-169.377451%20138.550527-306.676701%20309.520513-306.6767z%20m-127.744041%20481.684899L685.706119%20824.705519l128.82469%2067.625853-24.456785-142.816246%20104.367906-100.500321-144.124399-20.646076-64.611412-129.450328-63.530763%20129.791586-144.181275%2020.646076%20104.424781%20100.557197-24.456784%20142.076854z'%20p-id='2588'%3e%3c/path%3e%3c/svg%3e",N1=Object.freeze(Object.defineProperty({__proto__:null,default:L1},Symbol.toStringTag,{value:"Module"})),R1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752130138508'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2207'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M182.857%20164.571h658.286V512h73.143V128c0-20.114-16.457-36.571-36.572-36.571H146.286c-20.115%200-36.572%2016.457-36.572%2036.571v768c0%2020.114%2016.457%2036.571%2036.572%2036.571H510.17V859.43H182.857V164.57z'%20p-id='2208'%3e%3c/path%3e%3cpath%20d='M585.143%20475.429h-256v73.142h256V475.43z%20m109.714-164.572H329.143V384h365.714v-73.143zM475.43%20640H329.143v73.143h146.286V640z%20m448%2073.143h-69.486c14.628-18.286%2023.771-40.229%2023.771-64%200-54.857-45.714-100.572-100.571-100.572S676.57%20594.286%20676.57%20649.143c0%2023.771%209.143%2045.714%2023.772%2064h-69.486c-14.628%200-27.428%2012.8-27.428%2027.428v73.143c0%2014.629%2012.8%2027.429%2027.428%2027.429H923.43c14.628%200%2027.428-12.8%2027.428-27.429v-73.143c0-14.628-12.8-27.428-27.428-27.428zM896%20786.286H658.286V768h82.285C755.2%20768%20768%20755.2%20768%20740.571v-29.257c0-9.143-5.486-18.285-12.8-23.771-14.629-9.143-23.771-23.772-23.771-38.4%200-25.6%2020.114-45.714%2045.714-45.714s45.714%2020.114%2045.714%2045.714c0%2016.457-9.143%2031.086-23.771%2038.4-9.143%205.486-12.8%2014.628-12.8%2023.771v29.257c0%2014.629%2012.8%2027.429%2027.428%2027.429H896v18.286z%20m-9.143%2091.428H667.43v54.857h219.428v-54.857z'%20p-id='2209'%3e%3c/path%3e%3c/svg%3e",I1=Object.freeze(Object.defineProperty({__proto__:null,default:R1},Symbol.toStringTag,{value:"Module"})),H1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753766097595'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3186'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M201.813333%20776.32h620.373334a37.12%2037.12%200%200%200%2035.2-42.666667l-14.08-77.653333a71.04%2071.04%200%200%200-66.986667-56.32h-169.173333L593.066667%20512a208%20208%200%200%200%20130.56-193.92%20211.626667%20211.626667%200%200%200-423.04%200A207.786667%20207.786667%200%200%200%20430.933333%20512l-10.666666%2088.106667h-168.96a67.84%2067.84%200%200%200-66.986667%2056.32L170.666667%20733.866667a32.853333%2032.853333%200%200%200%2031.146666%2042.453333z%20m627.413334%2070.4H194.773333a35.413333%2035.413333%200%200%200%200%2070.613333h634.453334a35.413333%2035.413333%200%200%200%200-70.613333z'%20p-id='3187'%3e%3c/path%3e%3c/svg%3e",$1=Object.freeze(Object.defineProperty({__proto__:null,default:H1},Symbol.toStringTag,{value:"Module"})),W1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1751524519735'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2598'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M798.72%20320v446.976H223.232V320H63.488v532.48c0%2041.472%2033.792%2075.264%2075.264%2075.264h745.472c41.472%200%2075.264-33.792%2075.264-75.264v-532.48H798.72z'%20p-id='2599'%3e%3c/path%3e%3cpath%20d='M608.256%20494.592z%20m-10.24-4.608z'%20p-id='2600'%3e%3c/path%3e%3cpath%20d='M819.2%2096.256H203.776c-41.472%200-75.264%2033.792-75.264%2075.264V286.72h128v448h510.464V286.72h128V171.008c-0.512-41.472-34.304-74.752-75.776-74.752z%20m-154.112%20493.056l-12.8%2012.8c-12.8%2012.8-33.28%2012.8-46.08%200L477.184%20473.088c-33.792%2011.776-72.704%204.608-99.328-22.528-27.136-27.136-34.304-66.048-22.528-99.84l38.4%2038.4c12.8%2012.8%2033.28%2012.8%2046.08%200l12.8-12.8c12.8-12.8%2012.8-33.28%200-46.08L414.208%20291.84c33.792-11.776%2072.704-4.096%2099.84%2022.528%2027.136%2027.136%2034.304%2066.048%2022.528%2099.84l128.512%20128.512c12.288%2013.312%2012.288%2033.792%200%2046.592z'%20p-id='2601'%3e%3c/path%3e%3c/svg%3e",F1=Object.freeze(Object.defineProperty({__proto__:null,default:W1},Symbol.toStringTag,{value:"Module"})),G1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752201011725'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4040'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M567.68%2072.277l320.725%20170.667a94.805%2094.805%200%200%201%2050.262%2083.627v371.626c0%2035.158-19.414%2067.414-50.432%2083.798L567.467%20951.936a118.43%20118.43%200%200%201-110.934%200L135.765%20782.08a94.805%2094.805%200%200%201-50.432-83.797V326.656c0-35.072%2019.328-67.285%2050.262-83.755L456.32%2072.277a118.528%20118.528%200%200%201%20111.36%200z%20m123.35%20294.144L512.596%20469.333h-1.237L332.97%20366.421a42.667%2042.667%200%201%200-42.666%2073.899l179.03%20103.381v181.632a42.667%2042.667%200%200%200%2037.674%2042.368L512%20768a42.667%2042.667%200%200%200%2042.667-42.667V543.66L733.696%20440.32a42.667%2042.667%200%200%200-42.667-73.899z'%20p-id='4041'%3e%3c/path%3e%3c/svg%3e",j1=Object.freeze(Object.defineProperty({__proto__:null,default:G1},Symbol.toStringTag,{value:"Module"})),q1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752200860282'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2792'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M1024%20806.4V25.6c0-12.8-12.8-25.6-25.6-25.6H25.6C12.8%200%200%2012.8%200%2025.6v780.8h435.2v166.4H236.8v51.2h556.8v-51.2H588.8v-166.4H1024zM320%20281.6c-12.8-12.8-19.2-25.6-32-32l44.8-76.8c44.8%2025.6%2096%2012.8%20121.6-32%2012.8-12.8%2012.8-32%2012.8-44.8h89.6c0%2051.2%2038.4%2083.2%2089.6%2083.2%2012.8%200%2032-6.4%2044.8-12.8l44.8%2076.8c-44.8%2025.6-57.6%2076.8-32%20115.2%2012.8%2012.8%2019.2%2025.6%2032%2032l-44.8%2076.8c-44.8-19.2-96-6.4-121.6%2038.4-12.8%2012.8-12.8%2025.6-12.8%2044.8H467.2c0-44.8-38.4-83.2-89.6-83.2-12.8%200-32%206.4-44.8%2012.8l-44.8-83.2c38.4-25.6%2051.2-76.8%2032-115.2zM102.4%20704v-51.2h825.6v51.2H102.4zM512%20416c51.2%200%2096-38.4%2096-89.6S569.6%20236.8%20512%20236.8c-51.2%200-96%2038.4-96%2089.6%200%2051.2%2044.8%2089.6%2096%2089.6z'%20p-id='2793'%3e%3c/path%3e%3c/svg%3e",U1=Object.freeze(Object.defineProperty({__proto__:null,default:q1},Symbol.toStringTag,{value:"Module"})),Y1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753777785512'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3343'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M730.55%20249.234a29.038%2029.038%200%200%201-30.39-25.746v-120.1c0-16.421%2012.873-29.733%2028.672-29.77l1.719%200.037h20.955c15.982-0.658%2029.44%2012.105%2030.281%2028.635v121.271a28.891%2028.891%200%200%201-30.28%2027.429l-20.956-1.756z%20m-430.445%200a28.197%2028.197%200%200%201-32.768-23.369l-0.366-2.377v-120.1a28.855%2028.855%200%200%201%2027.136-30.245%2027.136%2027.136%200%200%201%205.998%200.439h20.444c16.018-0.659%2029.732%2012.032%2030.902%2028.635v121.271c-1.206%2016.42-14.994%2028.709-30.72%2027.465h-0.219l-20.407-1.719z%20m579.401-78.884c30.391-1.646%2056.32%2022.637%2057.93%2054.162a78.994%2078.994%200%200%201%200%205.888v655.653c-2.305%2032.768-29.002%2057.929-60.673%2057.16H168.777c-31.268%200.366-57.307-24.831-59.063-57.197V230.363c0-33.17%2025.93-60.086%2057.93-60.086a11.337%2011.337%200%200%201%201.133%200.036h62.354v53.212c0.878%2038.217%2031.488%2068.498%2068.352%2067.51h21.614c35.913-0.292%2065.06-30.28%2065.646-67.547v-51.456H662.6v51.493c0%2038.217%2029.879%2069.23%2066.78%2069.23h21.504c36.9%201.572%2067.986-28.124%2069.449-66.305l0.073-2.889v-51.529l59.1-1.682zM168.777%20886.016h709.669V371.09H168.777v514.926z'%20p-id='3344'%3e%3c/path%3e%3cpath%20d='M305.445%20687.799h69.01V570.55h151.698v-72.96H400.165a623.799%20623.799%200%200%201-64.732%2091.83%20220.965%20220.965%200%200%200-26.587-22.966%20441.82%20441.82%200%200%200%2091.282-147.164l35.145%209.436c-5.998%2013.531-12.288%2026.66-18.87%2039.35H711.24v29.514H560.823v72.96h143.14v28.708h-143.14v88.54H730.55v29.513H560.823v110.665h-34.706V717.312H305.445v-29.513z%20m102.875%200h117.87v-88.54H408.32v88.54z'%20p-id='3345'%3e%3c/path%3e%3c/svg%3e",K1=Object.freeze(Object.defineProperty({__proto__:null,default:Y1},Symbol.toStringTag,{value:"Module"})),X1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759007967'%20class='icon'%20viewBox='0%200%201099%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3000'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='34.34375'%20height='32'%3e%3cpath%20d='M214.47633%20310.45989h112.733945a37.577982%2037.577982%200%201%201%200%2075.155963h-112.733945a37.577982%2037.577982%200%201%201%200-75.155963z%20m296.715743%200h112.733945a37.577982%2037.577982%200%201%201%200%2075.155963h-112.733945a37.577982%2037.577982%200%201%201%200-75.155963zM214.47633%20472.590092h112.733945a37.577982%2037.577982%200%201%201%200%2075.155963h-112.733945a37.577982%2037.577982%200%201%201%200-75.155963z%20m0%20162.111413h112.733945a37.577982%2037.577982%200%201%201%200%2075.155963h-112.733945a37.577982%2037.577982%200%201%201%200-75.155963z'%20fill='%23000000'%20p-id='3001'%3e%3c/path%3e%3cpath%20d='M426.641615%20837.124697H75.193541v-695.19266h108.036698v28.183486a37.577982%2037.577982%200%201%200%2075.155963%200v-28.183486h126.825688v28.183486a37.577982%2037.577982%200%201%200%2075.155963%200v-28.183486h126.844477v28.183486a37.577982%2037.577982%200%201%200%2075.155964%200v-28.183486h108.027302v177.912954a37.577982%2037.577982%200%201%200%2075.155964%200V141.941431c0-41.448514-33.726239-75.155963-75.155964-75.155963h-108.036697v-28.183486a37.577982%2037.577982%200%201%200-75.155963%200v28.183486h-126.825688v-28.183486a37.577982%2037.577982%200%201%200-75.155964%200v28.183486H258.386202v-28.183486a37.577982%2037.577982%200%201%200-75.155963%200v28.183486h-108.036698c-41.429725%200-75.155963%2033.716844-75.155963%2075.155963v695.192661c0%2041.429725%2033.726239%2075.155963%2075.155963%2075.155963h351.448074a37.577982%2037.577982%200%201%200%200-75.155963z'%20fill='%23000000'%20p-id='3002'%3e%3c/path%3e%3cpath%20d='M779.743119%20385.174312c-176.128%200-319.412844%20143.284844-319.412844%20319.412844%200%20176.128%20143.284844%20319.412844%20319.412844%20319.412844%20176.128%200%20319.412844-143.284844%20319.412844-319.412844%200-176.128-143.294239-319.412844-319.412844-319.412844z%20m0%20563.669725c-134.679486%200-244.256881-109.577394-244.25688-244.256881s109.577394-244.256881%20244.25688-244.256881%20244.256881%20109.577394%20244.256881%20244.256881-109.577394%20244.256881-244.256881%20244.256881z'%20fill='%23000000'%20p-id='3003'%3e%3c/path%3e%3cpath%20d='M814.54033%20864.293578v-54.957798H939.449541v-32.702239H814.54033v-74.225908h119.563743v-32.692844H814.54033v-54.441101H939.449541v-32.692844H687.395229L688.945321%20563.669725h-32.899523c-3.44778%2023.448661-8.389284%2040.706349-14.815119%2051.782458-4.255706%207.186789-11.320367%2013.546862-21.193982%2019.089615v36.40367c14.815119-4.359046%2026.417321-10.484257%2034.797211-18.375633%208.849615-8.248367%2016.834936-20.677284%2023.955964-37.296147h103.88433v54.431706H684.295046c-10.446679%200-19.869358%204.302679-28.249248%2012.908037-8.267156%208.718092-12.400734%2020.141798-12.400734%2034.289908v59.730202H620.036697v32.692844h162.637505V864.293578h31.866128zM779.743119%20779.743119H676.40367v-50.82422c0-8.586569%201.719193-14.730569%205.148183-18.422605%203.663853-3.945688%2010.136661-5.909138%2019.446606-5.909138H779.743119v75.155963z'%20fill='%23000000'%20p-id='3004'%3e%3c/path%3e%3c/svg%3e",Q1=Object.freeze(Object.defineProperty({__proto__:null,default:X1},Symbol.toStringTag,{value:"Module"})),J1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753766077288'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2709'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M728%20103.583H145.25c-46.35%201.35-83.25%2039.15-83.25%2085.5v675.45c0%2046.35%2036.9%2084.15%2083.25%2085.95H467.9c-47.7-60.3-73.35-135-73.35-211.95-1.8-185.4%20147.15-337.05%20332.55-338.85h0.45c27.9%200%2056.25%204.05%2083.25%2011.25v-222.75c-0.45-45.9-36.9-83.25-82.8-84.6z%20m-395.55%20391.95h-166.5v-77.85H332.9v77.85z%20m374.85-198.45H165.95v-75.6h540.9l0.45%2075.6z'%20p-id='2710'%3e%3c/path%3e%3cpath%20d='M727.55%20486.533c-131.85-2.25-240.3%20103.05-242.1%20234.45s103.05%20240.3%20234.45%20242.1%20240.3-103.05%20242.1-234.45v-4.05c1.35-130.05-103.5-237.15-234.45-238.05z%20m-42.75%20380.25a17.111%2017.111%200%200%201-24.3%200l-99.9-98.1c-5.85-5.85-5.85-14.85%200-20.7l21.15-20.7c5.85-5.85%2015.3-5.85%2021.15%200l68.4%2067.5%20195.3-198c5.85-5.85%2014.85-5.85%2020.7%200l20.7%2021.15c5.85%205.85%205.85%2015.3%200%2021.15l-223.2%20227.7z'%20p-id='2711'%3e%3c/path%3e%3c/svg%3e",Z1=Object.freeze(Object.defineProperty({__proto__:null,default:J1},Symbol.toStringTag,{value:"Module"})),e3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759318614'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2633'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M990.263463%20965.191663c-4.679457-35.882495-21.525502-63.876334-54.148857-80.555577-19.705657-10.060083-40.144446-18.767768-60.584233-27.27569-39.090694-16.311678-78.048546-32.891038-119.212784-43.72021-21.693303-5.71523-42.533616-14.289074-61.302383-26.990028-25.737512-17.41537-42.082151-40.796673-43.285725-72.616981-1.253515-33.023881%206.283557-62.021531%2037.704336-80.254932%2014.623677-8.489943%2024.767661-21.827144%2030.935355-37.671376%205.615348-14.405935%2010.277825-29.196415%2015.69341-43.70323%201.102694-2.892574%203.108318-6.468338%205.648309-7.604991%2012.233509-5.498487%2021.4426-14.138252%2027.693196-25.687572%2010.714308-19.837501%2014.95928-41.18821%2011.983804-63.55871-1.471257-11.054905-4.914179-21.951996-13.570924-29.639889-4.11113-3.668654-4.880219-7.328319-4.780338-12.200548%200.200762-10.696329%200.066921-21.409639%200.066921-31.913196h-481.277892c0%2011.974815%200.166802%2023.289412-0.116862%2034.596018-0.07591%202.991456-0.876961%206.417398-2.532001%208.832537-8.114388%2011.849963-13.454063%2024.79363-14.723558%2039.016782-2.707792%2030.359038%205.364645%2057.591778%2030.667672%2075.675357%2010.135993%207.236428%2015.952104%2014.573736%2018.634925%2025.804433%200.794059%203.34304%202.030595%206.585199%203.167248%209.84334%208.198289%2023.548106%2018.333283%2045.726833%2039.985635%2060.517313%205.849071%203.994269%2010.68734%209.459794%2015.994053%2014.273093%207.720854%206.969744%2013.587904%2015.525609%2015.016213%2025.703552%202.005624%2014.306053%202.790694%2028.846829%203.33405%2043.336665%200.644237%2017.264549-5.381625%2032.439573-16.929945%2045.224428-19.746609%2021.861104-44.121735%2037.503574-71.472336%2047.280993-41.957299%2014.958281-84.758597%2027.625276-126.966599%2041.948309-26.089096%208.857508-52.228132%2017.882817-77.472229%2028.813868-35.589841%2015.408747-57.457937%2042.166051-61.444215%2081.992873-0.02497%200.267683-0.066921%200.534367-0.10088%200.80205-1.186594%2011.197735-3.618713%2022.26163-5.481507%2033.392445%200%208.373081%200%2016.747162%200.01698%2025.136224h435.041662c5.139911-39.677%2015.65146-78.098487%2027.459473-116.187368%201.762912-5.716229%201.194585-9.057271-3.30109-13.2533-6.233616-5.83309-11.54832-12.717935-16.746163-19.537856-5.071992-6.685081-5.047021-14.222153-1.63806-21.693303%206.55923-14.406934%2017.773946-24.634818%2030.425959-33.459365%201.62108-1.119674%204.203021-1.152635%206.342487-1.202576%201.378367-0.01698%202.766723%200.032961%204.162069%200.065922%200.442476-0.01698%200.885951-0.032961%201.303456-0.032961%203.776526-0.066921%207.588011%200.149823%2011.397499%200.267683%202.273307-0.065922%204.513653-0.183782%206.753001-0.551347%203.441923-0.552346%206.651121-0.585307%209.726478-0.384544%2015.241945-0.969851%2026.572523%206.350477%2037.369733%2016.895985%2021.358699%2020.874273%2022.394472%2038.890931%200.567328%2059.296759-7.42021%206.969744-7.603993%2012.585092-5.564409%2021.542482%208.20528%2035.933434%2015.408747%2072.132554%2022.962799%20108.248771h395.557435v-41.430922c-0.985832-5.81611-2.189406-11.5653-2.958496-17.38141z%20m-163.216658-613.325473c1.72196%200%203.475883-0.175792%205.164882%200.032961%204.96412%200.635248%206.834904-1.63806%206.233616-6.342487-1.6041-12.434271-2.390169-25.044333-5.01506-37.252872-4.612536-21.45059-17.681056-35.297188-39.708962-39.850793-1.437297-0.300644-2.841634-0.727139-4.295911-1.061743-7.470151-1.688-10.562488-5.915992-11.247676-13.988429-1.353397-16.144875-2.340228-32.707256-6.784963-48.140974-1.454277-5.005071-3.042396-9.785408-4.646496-14.464865a0.576317%200.576317%200%200%201-0.065922-0.166803c-34.762821-99.666938-109.201643-125.671134-149.780574-139.234067-5.196844-1.746931-7.620972%200.777079-9.225072%204.554604-3.408962%207.913626-7.253408%2015.794291-9.259032%2024.099453-10.227884%2042.625507-19.921402%2085.385854-29.815682%20128.095262-0.384544%201.62108-0.969851%203.184228-1.471257%204.771348-1.152635-1.796871-1.152635-3.276119-1.152634-4.746377%200.049941-56.222401%200.082902-112.451793%200.082901-168.682185%200-4.922169%200.133841-9.89428-0.434485-14.765509-1.538178-13.354181-11.949845-23.021729-25.336987-23.323372-13.068519-0.283664-26.147027-0.216743-39.207555%200.049941-10.637399%200.208753-18.542036%205.615348-22.478373%2015.266915-2.156446%205.297724-2.874595%2011.498379-2.891575%2017.29751-0.200762%2056.473104-0.108871%20112.945208-0.108871%20169.417314v7.270387c-2.172427-2.657852-2.732763-5.256773-3.32606-7.855694-8.348111-36.500762-16.336648-73.084426-25.244097-109.452346-3.083348-12.593083-8.31515-24.684759-12.901717-36.876317-1.538178-4.061189-4.028228-6.793952-9.668547-5.079983-90.240104%2027.492433-158.837845%20105.407138-161.153102%20199.951144-0.291655%2011.598261-1.762912%2013.17739-12.876747%2016.445519-2.841634%200.835011-5.674278%201.64605-8.514913%202.48206-14.189192%204.161071-23.92466%2013.295251-29.765741%2026.723344-7.446179%2017.113728-8.464973%2035.247247-8.941408%2054.826055%204.95513%200%208.849517%200%2012.734915%200.00799%20203.704697-0.006992%20407.408396-0.006992%20611.103105-0.006991z'%20p-id='2634'%3e%3c/path%3e%3c/svg%3e",t3=Object.freeze(Object.defineProperty({__proto__:null,default:e3},Symbol.toStringTag,{value:"Module"})),i3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753777770979'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3024'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M905.8%20974.5H116.1c-28.2%200-51.1-22.9-51.1-51.1V100.7c0-28.2%2022.9-51.1%2051.1-51.1h789.7c28.2%200%2051.1%2022.9%2051.1%2051.1v822.7c0%2028.1-22.9%2051.1-51.1%2051.1z%20m-760.8-80h731.9v-765H145v765z'%20p-id='3025'%3e%3c/path%3e%3cpath%20d='M673.6%20269.5H230.8c-22.1%200-40-17.9-40-40s17.9-40%2040-40h442.7c22.1%200%2040%2017.9%2040%2040s-17.8%2040-39.9%2040zM673.6%20434.4H230.8c-22.1%200-40-17.9-40-40s17.9-40%2040-40h442.7c22.1%200%2040%2017.9%2040%2040s-17.8%2040-39.9%2040zM433.5%20599.3H230.8c-22.1%200-40-17.9-40-40s17.9-40%2040-40h202.7c22.1%200%2040%2017.9%2040%2040s-17.9%2040-40%2040z'%20p-id='3026'%3e%3c/path%3e%3cpath%20d='M681.1%20833.5h-66.5v-44.8c-13.2-3.3-25.9-8.6-37.6-15.6l-31.7%2031.7-47-47%2031.7-31.7c-7-11.7-12.3-24.4-15.6-37.6h-44.8V622h44.8c3.3-13.2%208.6-25.9%2015.6-37.6l-31.7-31.7%2047-47%2031.7%2031.7c11.7-7%2024.4-12.3%2037.6-15.6V477h66.5v44.8c13.2%203.3%2025.9%208.6%2037.6%2015.6l31.7-31.7%2047%2047-31.7%2031.7c7%2011.7%2012.3%2024.4%2015.6%2037.6h44.8v66.5h-44.8c-3.3%2013.2-8.6%2025.9-15.6%2037.6l31.7%2031.7-47%2047-31.7-31.7c-11.7%207-24.4%2012.3-37.6%2015.6v44.8z%20m-36.5-30h6.5v-40l12.8-1.9c17.2-2.6%2033.8-9.4%2047.8-19.8l10.4-7.7%2028.3%2028.3%204.6-4.6-28.3-28.3%207.7-10.4c10.4-14.1%2017.3-30.6%2019.8-47.8l1.9-12.8h40V652h-40l-1.9-12.8c-2.6-17.2-9.4-33.8-19.8-47.8l-7.7-10.4%2028.3-28.3-4.6-4.6-28.3%2028.3-10.4-7.7c-14.1-10.4-30.6-17.3-47.8-19.8l-12.8-1.9v-40h-6.5v40l-12.8%201.9c-17.2%202.6-33.8%209.4-47.8%2019.8l-10.4%207.7-28.3-28.3-4.6%204.6L569%20581l-7.7%2010.4c-10.4%2014.1-17.3%2030.6-19.8%2047.8l-1.9%2012.8h-40v6.5h40l1.9%2012.8c2.6%2017.2%209.4%2033.8%2019.8%2047.8l7.7%2010.4-28.3%2028.3%204.6%204.6%2028.3-28.3%2010.4%207.7c14.1%2010.4%2030.6%2017.3%2047.8%2019.8l12.8%201.9v40z'%20p-id='3027'%3e%3c/path%3e%3cpath%20d='M647.9%20728.8c-40.5%200-73.5-33-73.5-73.5s33-73.5%2073.5-73.5%2073.5%2033%2073.5%2073.5-33%2073.5-73.5%2073.5z%20m0-117.1c-24%200-43.5%2019.5-43.5%2043.5s19.5%2043.5%2043.5%2043.5%2043.5-19.5%2043.5-43.5-19.5-43.5-43.5-43.5z'%20p-id='3028'%3e%3c/path%3e%3c/svg%3e",n3=Object.freeze(Object.defineProperty({__proto__:null,default:i3},Symbol.toStringTag,{value:"Module"})),s3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752025036400'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2116'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M992.768%20859.940571v29.696c0%2044.470857-35.108571%2094.866286-78.848%2094.866286H122.733714C78.921143%20984.502857%2043.885714%20934.034286%2043.885714%20889.636571v-29.696c0-7.387429%205.851429-11.849143%2011.702857-11.849142h925.476572c5.851429-1.462857%2011.702857%204.388571%2011.702857%2011.849142zM204.653714%20218.038857v600.429714h-115.565714V266.971429c0-26.697143%2021.942857-49.005714%2048.274286-49.005715h67.291428z%20m694.637715%200a49.005714%2049.005714%200%200%201%2048.201142%2048.932572v551.497142H829.44V217.965714h69.851429zM759.954286%2048.274286c7.314286%200%2012.580571%204.096%2014.116571%2010.605714l0.512%204.242286V818.468571H257.828571V186.88H370.834286c7.314286%200%2012.507429-4.096%2014.116571-10.678857l0.438857-4.169143V48.274286h374.491429zM721.188571%20686.226286H316.854857c-8.777143%200-14.555429%2012.434286-14.555428%2023.04%200%209.069714%205.339429%2019.456%2011.483428%2022.235428l3.072%200.731429H719.725714c8.777143%200%2016.091429-10.166857%2016.091429-23.113143%200-12.141714-7.314286-22.893714-14.628572-22.893714z%20m0-133.412572H316.854857c-8.777143%200-14.555429%2012.434286-14.555428%2022.966857%200%209.142857%205.339429%2019.529143%2011.483428%2022.308572l3.072%200.731428H719.725714c8.777143%200%2016.091429-10.24%2016.091429-23.113142%200-12.141714-7.314286-22.893714-14.628572-22.893715z%20m-294.4-329.874285C326.948571%20324.388571%20398.994286%20497.371429%20539.794286%20497.371429c40.96%200%2081.92-16.603429%20111.323428-46.592a16.164571%2016.164571%200%200%200%202.779429-19.748572l-2.779429-3.510857-88.429714-91.428571%2088.502857-89.892572a16.237714%2016.237714%200%200%200%200-23.259428%20156.452571%20156.452571%200%200%200-224.402286%200z%20m187.392%201.462857l10.093715%206.875428L532.992%20324.022857a16.676571%2016.676571%200%200%200-2.779429%2020.333714l2.779429%203.657143%2091.282286%2092.745143c-21.942857%2017.115429-50.761143%2027.428571-79.433143%2027.428572-116.589714%200-174.08-142.409143-92.891429-224.841143a131.657143%20131.657143%200%200%201%20162.230857-18.870857z%20m75.264%2018.285714l-3.291428%202.486857-75.849143%2077.092572a14.409143%2014.409143%200%200%200-2.852571%2016.896l2.852571%203.876571L686.08%20420.132571c5.851429%205.924571%2016.091429%205.924571%2021.942857-1.462857a148.772571%20148.772571%200%200%200%200-171.958857%2014.628571%2014.628571%200%200%200-18.651428-3.949714z%20m4.022858%2035.108571c15.579429%2030.354286%2017.334857%2065.316571%205.193142%2096.694858l-5.12%2011.556571-52.662857-53.394286%2052.662857-54.857143zM357.741714%2048.274286v108.982857H259.291429c0-1.974857%200.658286-3.949714%201.462857-5.485714l1.462857-1.974858L348.891429%2051.273143a10.825143%2010.825143%200%200%201%204.388571-2.56l2.925714-0.438857h1.462857z'%20p-id='2117'%3e%3c/path%3e%3c/svg%3e",o3=Object.freeze(Object.defineProperty({__proto__:null,default:s3},Symbol.toStringTag,{value:"Module"})),r3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753777796588'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3658'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M768%20682.666667v-85.333334h42.666667V170.666667H256v428.16c6.954667-0.981333%2014.08-1.493333%2021.333333-1.493334H341.333333v85.333334H277.333333a64%2064%200%200%200%200%20128H426.666667v85.333333H277.333333A149.333333%20149.333333%200%200%201%20128%20746.666667V213.333333a128%20128%200%200%201%20128-128h597.333333a42.666667%2042.666667%200%200%201%2042.666667%2042.666667v725.333333a42.666667%2042.666667%200%200%201-42.666667%2042.666667h-170.666666v-85.333333h128v-128h-42.666667zM298.666667%20213.333333h85.333333v85.333334H298.666667V213.333333z%20m0%20128h85.333333v85.333334H298.666667V341.333333z%20m298.666666%20384v256h-85.333333v-256H384l170.666667-213.333333%20170.666666%20213.333333h-128z'%20fill='%23000000'%20p-id='3659'%3e%3c/path%3e%3c/svg%3e",l3=Object.freeze(Object.defineProperty({__proto__:null,default:r3},Symbol.toStringTag,{value:"Module"})),a3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759785431'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2822'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M959%20830.7V295.2c0-42.9-20.8-62.8-62.5-59.6H544.9c-13.3%200-24.2-3.2-32.6-9.5-9.9-15.8-25.4-35.5-42.5-61.8-18-27.7-35.3-35.8-57.5-35.8H141.1c-51.6%200.2-77.4%2023.4-77.4%2069.4v628.5c0%2052.4%2020.8%2075.5%2062.5%2069.1h778.2c43-0.3%2061.3-21.8%2054.6-64.8zM262.4%20670.1c-17.7%200-32-14.3-32-32s14.3-32%2032-32%2032%2014.3%2032%2032-14.3%2032-32%2032z%20m0-174.4c-17.7%200-32-14.3-32-32s14.3-32%2032-32%2032%2014.3%2032%2032-14.3%2032-32%2032z%20m531.2%20142.4c0%2017.7-14.3%2032-32%2032h-388c-17.7%200-32-14.3-32-32s14.3-32%2032-32h388c17.7%200%2032%2014.3%2032%2032z%20m0-174.6c0%2017.7-14.3%2032-32%2032h-388c-17.7%200-32-14.3-32-32s14.3-32%2032-32h388c17.7%200%2032%2014.3%2032%2032z'%20p-id='2823'%3e%3c/path%3e%3c/svg%3e",c3=Object.freeze(Object.defineProperty({__proto__:null,default:a3},Symbol.toStringTag,{value:"Module"})),h3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752023937641'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1733'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M604.672%20640c-45.568-78.848-129.536-127.488-220.672-128H128c-70.656%200-128%2057.344-128%20128v384h1024v-384h-419.328z'%20p-id='1734'%3e%3c/path%3e%3cpath%20d='M640%20576h256V128c0-70.656-57.344-128-128-128H256C185.344%200%20128%2057.344%20128%20128v320h256c100.864%200%20195.584%2047.616%20256%20128zM352.256%20198.656h320v104.448H352.256V198.656z'%20p-id='1735'%3e%3c/path%3e%3c/svg%3e",u3=Object.freeze(Object.defineProperty({__proto__:null,default:h3},Symbol.toStringTag,{value:"Module"})),f3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1751524549947'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2910'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M256%20170.496v170.496h512V170.496h85.504c23.552%200%2042.496%2018.944%2042.496%2042.496V896c0%2023.552-18.944%2042.496-42.496%2042.496H170.496c-23.552%200-42.496-18.944-42.496-42.496V212.992c0-23.552%2018.944-42.496%2042.496-42.496H256z%20m256%20513.024H256v83.456h256v-83.456zM768%20491.52H256v83.456h512V491.52zM341.504%2085.504h341.504V256H341.504V85.504z'%20p-id='2911'%3e%3c/path%3e%3c/svg%3e",d3=Object.freeze(Object.defineProperty({__proto__:null,default:f3},Symbol.toStringTag,{value:"Module"})),p3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753758992227'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2678'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M733.090909%20744.727273h-442.181818a34.909091%2034.909091%200%201%200%200%2069.818182h442.181818a34.909091%2034.909091%200%201%200%200-69.818182zM440.389818%20238.987636h58.065455c30.254545%200%2051.549091%207.889455%2065.303272%2024.296728%2013.172364%2015.522909%2019.851636%2039.586909%2019.851637%2071.493818%200%2031.069091-7.330909%2054.295273-22.411637%2070.958545-15.150545%2016.686545-37.236364%2024.808727-67.514181%2024.808728h-53.294546v-191.557819z%20m53.294546%20261.376c50.362182%200%2090.461091-16.034909%20119.249454-47.732363%2026.856727-29.696%2040.494545-69.352727%2040.494546-117.853091%200-48.942545-12.264727-88.203636-36.305455-116.48-27.275636-32.605091-67.188364-49.128727-118.667636-49.128727h-90.670546c-20.503273%200-37.213091%2016.709818-37.213091%2037.236363V463.127273c0%2020.526545%2016.709818%2037.236364%2037.213091%2037.236363h85.899637zM733.090909%20605.090909h-442.181818a34.909091%2034.909091%200%201%200%200%2069.818182h442.181818a34.909091%2034.909091%200%201%200%200-69.818182z%20m139.636364%20116.363636a34.909091%2034.909091%200%200%200%2034.909091-34.90909V93.090909a69.818182%2069.818182%200%200%200-69.818182-69.818182H186.181818a69.818182%2069.818182%200%200%200-69.818182%2069.818182v837.818182a69.818182%2069.818182%200%200%200%2069.818182%2069.818182h651.636364a69.818182%2069.818182%200%200%200%2069.818182-69.818182v-81.454546a34.909091%2034.909091%200%201%200-69.818182%200V930.909091H186.181818V93.090909h651.636364v593.454546a34.909091%2034.909091%200%200%200%2034.909091%2034.90909z'%20p-id='2679'%3e%3c/path%3e%3c/svg%3e",g3=Object.freeze(Object.defineProperty({__proto__:null,default:p3},Symbol.toStringTag,{value:"Module"})),m3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759086010'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3951'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M733.090909%20744.727273h-442.181818a34.909091%2034.909091%200%201%200%200%2069.818182h442.181818a34.909091%2034.909091%200%201%200%200-69.818182M651.636364%20498.618182a34.909091%2034.909091%200%200%200%2034.909091-34.909091V206.824727a53.806545%2053.806545%200%200%200-103.121455-21.550545l-71.144727%20163.002182-71.703273-163.118546a53.829818%2053.829818%200%200%200-49.268364-32.139636h-0.046545A53.806545%2053.806545%200%200%200%20337.454545%20206.824727v256.884364a34.909091%2034.909091%200%201%200%2069.818182%200v-180.782546l73.634909%20165.213091a35.002182%2035.002182%200%200%200%2064.046546-0.256l71.773091-164.375272v180.200727a34.909091%2034.909091%200%200%200%2034.909091%2034.909091M872.727273%20721.454545a34.909091%2034.909091%200%200%200%2034.909091-34.90909V93.090909a69.818182%2069.818182%200%200%200-69.818182-69.818182H186.181818a69.818182%2069.818182%200%200%200-69.818182%2069.818182v837.818182a69.818182%2069.818182%200%200%200%2069.818182%2069.818182h651.636364a69.818182%2069.818182%200%200%200%2069.818182-69.818182v-81.454546a34.909091%2034.909091%200%201%200-69.818182%200V930.909091H186.181818V93.090909h651.636364v593.454546a34.909091%2034.909091%200%200%200%2034.909091%2034.90909m-139.636364-116.363636h-442.181818a34.909091%2034.909091%200%201%200%200%2069.818182h442.181818a34.909091%2034.909091%200%201%200%200-69.818182'%20p-id='3952'%3e%3c/path%3e%3c/svg%3e",v3=Object.freeze(Object.defineProperty({__proto__:null,default:m3},Symbol.toStringTag,{value:"Module"})),w3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759499798'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2663'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M32%20992V640A96%2096%200%200%201%20128%20544h256a221.44%20221.44%200%200%201%20192%20112l9.6%2016h406.4v320z'%20p-id='2664'%3e%3c/path%3e%3cpath%20d='M384%20576a192%20192%200%200%201%20165.12%2096l18.56%2032H960v256H64v-320a64%2064%200%200%201%2064-64h256m0-64H128a128%20128%200%200%200-128%20128v384h1024v-384H604.8A256%20256%200%200%200%20384%20512z'%20p-id='2665'%3e%3c/path%3e%3cpath%20d='M640%20576h256V128a128%20128%200%200%200-128-128H256a128%20128%200%200%200-128%20128v320h256a320%20320%200%200%201%20256%20128zM352%20198.4h320v104.32h-320z'%20p-id='2666'%3e%3c/path%3e%3c/svg%3e",x3=Object.freeze(Object.defineProperty({__proto__:null,default:w3},Symbol.toStringTag,{value:"Module"})),b3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752130130786'%20class='icon'%20viewBox='0%200%201131%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2045'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='17.671875'%20height='16'%3e%3cpath%20d='M60.576386%202.134361c8.093301-1.603855%2016.371663-1.184386%2024.563662-1.233734%20289.125783%200%20578.239229%200%20867.365012%200.012337%2011.769831%200.012337%2023.539663%202.825253%2033.989398%208.278361%2019.110554%209.808193%2033.495904%2028.326554%2038.134747%2049.312386%201.961639%208.105639%201.924627%2016.495036%201.838265%2024.785735-20.529349-0.481157-41.071036-0.098699-61.612723-0.222073-274.320964%200.012337-548.654265-0.012337-822.987566%200.024675-20.183904-0.098699-40.12106%208.61147-53.889542%2023.342265-12.70747%2013.435373-20.072867%2031.768675-20.048193%2050.274699-0.012337%20199.556627%200.024675%20399.113253-0.024675%20598.66988-18.629398-1.44347-36.49388-10.375711-48.942265-24.304579C7.612145%20718.564241%200.962313%20702.081542%200%20685.253398V70.569639c0.986988-11.967229%204.404434-23.78641%2010.733494-34.038747C21.479325%2018.703422%2040.047036%205.77388%2060.576386%202.134361z'%20p-id='2046'%3e%3c/path%3e%3cpath%20d='M127.62988%20141.213301c13.583422-13.163952%2032.360867-20.726747%2051.274024-20.628048%20292.814651-0.012337%20585.616964-0.012337%20878.419277%200%2018.308627-0.086361%2036.49388%206.98294%2049.953927%2019.406651%2014.113928%2012.732145%2022.639036%2031.065446%2024.057832%2049.978602v614.844145c-0.900627%2015.471036-6.477108%2030.682988-16.260627%2042.736578-13.484723%2017.025542-34.791325%2027.536964-56.529735%2027.722024-61.588048%200.049349-123.163759%200-184.751807%200.024675-20.776096%2035.889349-41.478169%2071.828048-62.22959%20107.742072-5.699855%209.314699-10.091952%2019.764434-18.506024%2027.068145-12.288%2011.387373-30.201831%2016.174265-46.561157%2012.596433-14.311325-2.960964-27.142169-12.238651-34.482892-24.859759-23.589012-40.848964-47.153349-81.710265-70.767036-122.546891-154.118169-0.012337-308.236337%200.012337-462.354506-0.012338-20.751422%200.135711-41.280771-9.055614-55.06159-24.551325-12.250988-13.521735-19.147566-31.719325-18.962506-49.966265V194.843759c-0.160386-19.998843%208.278361-39.849639%2022.76241-53.630458m213.312771%20283.808386c-26.932434%202.109687-52.224%2018.01253-65.967808%2041.256096-11.535422%2019.024193-15.002217%2042.63788-9.672482%2064.215904%204.416771%2018.283952%2015.17494%2034.914699%2029.918073%2046.573494%2014.484048%2011.572434%2032.854361%2018.185253%2051.397397%2018.469012%2018.000193%200.41947%2036.062072-5.095325%2050.755856-15.495711%2015.026892-10.511422%2026.512964-25.994795%2032.151132-43.452145%205.564145-17.03788%205.564145-35.827663%200.012338-52.865542-5.897253-18.283952-18.209928-34.371855-34.248482-44.907952-15.878169-10.573108-35.371181-15.446361-54.346024-13.793156m270.138602%200c-27.22853%202.146699-52.754506%2018.407325-66.387277%2042.045686-11.819181%2019.974169-14.792482%2044.87094-8.204337%2067.102844%205.35441%2018.543036%2017.309301%2035.038072%2033.125783%2046.042988%2014.780145%2010.375711%2032.916048%2015.816482%2050.96559%2015.31065%2017.03788-0.357783%2033.903036-6.020627%2047.70853-16.001542%2014.656771-10.486747%2025.859084-25.723373%2031.410892-42.872289%205.576482-17.062554%205.576482-35.877012%200.024674-52.939566-5.90959-18.296289-18.24694-34.408867-34.322506-44.944964-15.865831-10.548434-35.346506-15.409349-54.321349-13.743807m270.15094%200.012337c-26.586988%202.109687-51.545446%2017.64241-65.375615%2040.404819-11.041928%2017.77812-15.039229%2039.713928-11.189976%2060.28029%203.627181%2020.122217%2014.891181%2038.702265%2030.929735%2051.360385%2026.179855%2021.306602%2065.30159%2024.501976%2094.590458%207.710843%2018.678747-10.338699%2033.212145-27.931759%2039.726265-48.26371%205.53947-17.025542%205.53947-35.790651-0.012337-52.816193-5.983614-18.567711-18.604723-34.877687-35.025735-45.413783-15.742458-10.227663-34.951711-14.915855-53.642795-13.262651z'%20p-id='2047'%3e%3c/path%3e%3c/svg%3e",y3=Object.freeze(Object.defineProperty({__proto__:null,default:b3},Symbol.toStringTag,{value:"Module"})),k3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759479045'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2341'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M554.41%20897.187c16.52%200%2029.913%2013.39%2029.913%2029.906%200%2016.281-13.013%2029.524-29.207%2029.899l-0.707%200.008H407.145c-16.52%200-29.913-13.39-29.913-29.907%200-16.28%2013.013-29.523%2029.207-29.898l0.706-0.008H554.41z%20m40.268-84.377c16.52%200%2029.913%2013.39%2029.913%2029.907%200%2016.28-13.013%2029.523-29.207%2029.898l-0.706%200.009H365.323c-16.52%200-29.913-13.39-29.913-29.907%200-16.281%2013.013-29.524%2029.207-29.899l0.706-0.008h229.355zM480%2069c189.986%200%20344%20153.982%20344%20343.927%200%20120.12-61.593%20225.858-154.926%20287.365l-2.205%2010.384c-1.519%207.084-3.529%2016.359-6.03%2027.826-5.927%2027.183-29.801%2046.65-57.546%2047.072H356.239c-28.52%200-53.076-20.128-58.666-48.09l-2.757-13.628c-3.321-16.19-5.226-24.448-5.715-24.775C196.791%20637.403%20136%20532.263%20136%20412.927%20136%20222.982%20290.014%2069%20480%2069z%20m-62.585%20133.938C316.255%20221.817%20266.292%20290.58%20260.3%20399.042c-0.911%2016.492%2011.722%2030.6%2028.218%2031.51%2016.495%200.912%2030.606-11.72%2031.517-28.211%204.58-82.907%2036.8-127.25%20108.358-140.605%2016.24-3.031%2026.947-18.65%2023.916-34.887-3.032-16.237-18.654-26.942-34.894-23.911z'%20p-id='2342'%3e%3c/path%3e%3c/svg%3e",S3=Object.freeze(Object.defineProperty({__proto__:null,default:k3},Symbol.toStringTag,{value:"Module"})),C3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753766090732'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3028'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M736%20256H320c-16%200-32%2016-32%2032s16%2032%2032%2032h416c16%200%2032-16%2032-32s-16-32-32-32zM736%20448H320c-16%200-32%2016-32%2032s16%2032%2032%2032h416c16%200%2032-16%2032-32s-16-32-32-32z'%20p-id='3029'%3e%3c/path%3e%3cpath%20d='M192%20160c0-35.2%2028.8-64%2064-64h544c35.2%200%2064%2028.8%2064%2064v512h96V64c0-35.2-28.8-64-64-64H160C124.8%200%2096%2028.8%2096%2064v608h96V160zM992%20672H64c-19.2%200-32%2012.8-32%2032v288c0%2019.2%2012.8%2032%2032%2032h928c19.2%200%2032-12.8%2032-32v-288c0-16-12.8-32-32-32z%20m-320%20224h-288v-96h288v96z'%20p-id='3030'%3e%3c/path%3e%3c/svg%3e",_3=Object.freeze(Object.defineProperty({__proto__:null,default:C3},Symbol.toStringTag,{value:"Module"})),O3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752200274113'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4456'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M751.4%20553.2c-42.5-38.5-92.1-67.1-145.5-84.6%2053.2-38.9%2087.8-101.8%2087.8-172.7C693.7%20178%20597.7%2082%20479.8%2082c-57.1%200-110.8%2022.2-151.2%2062.6C288.2%20185%20266%20238.7%20266%20295.8s22.2%20110.8%2062.6%20151.2c7.8%207.8%2016.2%2015%2025%2021.4-10.5%203.5-20.9%207.3-31.2%2011.7-48.2%2020.4-91.4%2049.5-128.5%2086.7s-66.3%2080.4-86.7%20128.5c-21.1%2049.9-31.8%20102.9-31.8%20157.4%200%2024.8%202.3%2049.7%206.8%2073.9l68.8-12.7c-3.7-20-5.6-40.6-5.6-61.2%200-184.4%20150-334.4%20334.4-334.4%2083.2%200%20163%2030.8%20224.5%2086.6l47.1-51.7zM479.8%20152c79.3%200%20143.9%2064.5%20143.9%20143.9s-64.5%20143.9-143.9%20143.9S336%20375.2%20336%20295.9%20400.5%20152%20479.8%20152zM726.3%20665.3h213.8v70H726.3zM503%20831.6h437.1v70H503z'%20p-id='4457'%3e%3c/path%3e%3c/svg%3e",M3=Object.freeze(Object.defineProperty({__proto__:null,default:O3},Symbol.toStringTag,{value:"Module"})),D3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752023723226'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1733'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M34.816%2080.896v862.208c0%2044.544%2036.352%2080.896%2080.896%2080.896h38.912V0h-38.912C71.168%200%2034.816%2036.352%2034.816%2080.896zM908.288%200H839.68v252.928l-126.976-125.952L586.24%20250.88l-0.512-250.88H244.736v1024h663.552c44.544%200%2080.896-36.352%2080.896-80.896V80.896c0-44.544-36.352-80.896-80.896-80.896z%20m-66.048%20681.472H413.696v-57.856h429.056v57.856z%20m0-115.712H413.696V507.904h429.056v57.856z'%20p-id='1734'%3e%3c/path%3e%3c/svg%3e",T3=Object.freeze(Object.defineProperty({__proto__:null,default:D3},Symbol.toStringTag,{value:"Module"})),A3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753777777175'%20class='icon'%20viewBox='0%200%201170%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3184'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='36.5625'%20height='32'%3e%3cpath%20d='M743.893333%200H45.013333A45.226667%2045.226667%200%200%200%200%2045.013333v805.973334A45.226667%2045.226667%200%200%200%2045.013333%20896h698.88a45.226667%2045.226667%200%200%200%2045.013334-45.013333V45.013333A45.226667%2045.226667%200%200%200%20743.893333%200z%20m-682.666666%2061.653333h666.026666v772.693334H61.866667z'%20p-id='3185'%3e%3c/path%3e%3cpath%20d='M464.64%20279.466667h132.266667a27.946667%2027.946667%200%200%200%2027.946666-27.733334%20160.426667%20160.426667%200%200%200-160.213333-160%2027.306667%2027.306667%200%200%200-19.626667%208.106667%2028.16%2028.16%200%200%200-8.106666%2019.626667v132.266666a27.733333%2027.733333%200%200%200%208.106666%2019.626667%2027.52%2027.52%200%200%200%2019.626667%208.106667z%20m100.906667-55.68h-73.173334V150.826667a105.386667%20105.386667%200%200%201%2073.173334%2072.96zM598.186667%20580.266667H185.173333a30.933333%2030.933333%200%200%200-26.666666%2046.293333%2031.36%2031.36%200%200%200%2026.666666%2015.36h413.013334a30.933333%2030.933333%200%201%200%200-61.653333zM598.186667%20711.893333H185.173333a30.933333%2030.933333%200%200%200-26.666666%2046.293334%2031.36%2031.36%200%200%200%2026.666666%2015.36h413.013334a30.933333%2030.933333%200%201%200%200-61.653334z'%20p-id='3186'%3e%3c/path%3e%3cpath%20d='M375.893333%20533.76a192%20192%200%200%200%20193.28-193.28%2027.733333%2027.733333%200%200%200-27.733333-27.733333h-137.813333V174.933333a27.733333%2027.733333%200%200%200-27.733334-27.733333%20193.28%20193.28%200%201%200%200%20386.56zM347.946667%20205.44v135.04a27.946667%2027.946667%200%200%200%2027.946666%2027.733333h135.04a137.813333%20137.813333%200%201%201-162.986666-162.773333z'%20p-id='3187'%3e%3c/path%3e%3c/svg%3e",B3=Object.freeze(Object.defineProperty({__proto__:null,default:A3},Symbol.toStringTag,{value:"Module"})),P3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753766068495'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2552'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M816%20161H208c-44.183%200-80%2035.817-80%2080v542c0%2044.183%2035.817%2080%2080%2080h608c44.183%200%2080-35.817%2080-80V241c0-44.183-35.817-80-80-80zM325.379%20516.243l55.154%2055.154c12.497%2012.497%2012.497%2032.758%200%2045.255s-32.758%2012.497-45.255%200l-59.397-59.396-22.627-22.628c-12.497-12.497-12.497-32.758%200-45.255l22.627-22.627%2059.397-59.397c12.497-12.496%2032.758-12.496%2045.255%200%2012.497%2012.497%2012.497%2032.759%200%2045.255l-55.154%2055.154a6%206%200%200%200%200%208.485z%20m263.065-84.345L492.65%20621.021c-7.986%2015.767-27.24%2022.073-43.006%2014.088s-22.073-27.24-14.087-43.007l95.793-189.123c7.985-15.766%2027.24-22.073%2043.006-14.087%2015.766%207.985%2022.073%2027.24%2014.088%2043.006z%20m182.302%20102.729l-22.627%2022.628-59.397%2059.396c-12.497%2012.497-32.758%2012.497-45.255%200s-12.497-32.758%200-45.255l55.154-55.154a6%206%200%200%200%200-8.485l-55.154-55.154c-12.497-12.496-12.497-32.758%200-45.255%2012.497-12.496%2032.758-12.496%2045.255%200l59.397%2059.397%2022.627%2022.627c12.497%2012.498%2012.497%2032.758%200%2045.255z'%20p-id='2553'%3e%3c/path%3e%3c/svg%3e",E3=Object.freeze(Object.defineProperty({__proto__:null,default:P3},Symbol.toStringTag,{value:"Module"})),V3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752200066150'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1884'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M381.3%2087.3h-238C99.7%2087.3%2064%20123%2064%20166.7v238c0%2043.6%2035.7%2079.3%2079.3%2079.3h238c43.6%200%2079.3-35.7%2079.3-79.3v-238c0.1-43.7-35.6-79.4-79.3-79.4zM381.3%20563.3h-238C99.7%20563.3%2064%20599%2064%20642.7v238c0%2043.6%2035.7%2079.3%2079.3%2079.3h238c43.6%200%2079.3-35.7%2079.3-79.3v-238c0.1-43.7-35.6-79.4-79.3-79.4zM857.3%20563.3h-238c-43.6%200-79.3%2035.7-79.3%2079.3v238c0%2043.6%2035.7%2079.3%2079.3%2079.3h238c43.6%200%2079.3-35.7%2079.3-79.3v-238c0.1-43.6-35.6-79.3-79.3-79.3zM936.8%20229.6L794.4%2087.2c-30.9-30.9-81.3-30.9-112.2%200L539.8%20229.6c-30.9%2030.9-30.9%2081.3%200%20112.2l142.4%20142.4c30.9%2030.9%2081.3%2030.9%20112.2%200l142.4-142.4c30.9-30.9%2030.9-81.4%200-112.2z'%20p-id='1885'%3e%3c/path%3e%3c/svg%3e",z3=Object.freeze(Object.defineProperty({__proto__:null,default:V3},Symbol.toStringTag,{value:"Module"})),L3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753766544167'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2552'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M771.584%20590.336c-116.224%200-209.92%2094.208-209.92%20209.92s94.208%20209.92%20209.92%20209.92c116.224%200%20209.92-94.208%20209.92-209.92s-93.696-209.92-209.92-209.92z%20m-122.88%20217.088c0%208.192-6.656%2014.336-14.336%2014.336-8.192%200-14.336-6.656-14.336-14.336%200-55.808%2045.568-101.376%20101.376-101.376h64l-43.52-31.744c-6.656-4.608-7.68-13.824-3.072-19.968%204.608-6.656%2013.824-7.68%2020.48-3.072l66.56%2048.128c14.336%2010.752%2014.336%2032.256%200%2042.496l-66.56%2048.128c-2.56%202.048-5.632%202.56-8.704%202.56-6.144%200-11.776-4.096-13.824-10.24-2.048-6.144%200-12.288%205.12-16.384l43.52-31.744h-64c-40.448%201.024-72.704%2033.28-72.704%2073.216z%20m166.4%2087.04h-64l43.52%2031.744c5.12%203.584%207.168%2010.24%205.12%2016.384-2.048%206.144-7.68%2010.24-13.824%2010.24-3.072%200-6.144-1.024-8.704-2.56l-66.56-48.128c-14.336-10.752-14.336-32.256%200-42.496l66.56-48.128c6.656-4.608%2015.36-3.072%2020.48%203.072%204.608%206.656%203.072%2015.36-3.072%2019.968l-43.52%2031.744h64c39.936%200%2072.192-32.256%2072.192-72.192%200-8.192%206.656-14.336%2014.336-14.336%208.192%200%2014.336%206.656%2014.336%2014.336%200.512%2054.784-45.056%20100.352-100.864%20100.352z'%20p-id='2553'%3e%3c/path%3e%3cpath%20d='M724.48%2013.824H174.08C101.376%2013.824%2042.496%2072.704%2042.496%20145.408v703.488c0%2072.704%2058.88%20132.096%20132.096%20132.096H593.92c-44.032-46.08-71.168-108.032-71.168-176.64%200-140.8%20114.176-254.976%20254.976-254.976%2027.648%200%2054.272%204.608%2079.36%2012.8V145.408c-1.024-72.704-59.904-131.584-132.608-131.584zM414.208%20850.432H260.096c-19.456%200-34.816-15.872-34.816-34.816s15.872-34.816%2034.816-34.816h154.112c19.456%200%2034.816%2015.872%2034.816%2034.816s-15.36%2034.816-34.816%2034.816z%20m0-153.088H260.096c-19.456%200-34.816-15.872-34.816-34.816%200-19.456%2015.872-34.816%2034.816-34.816h154.112c19.456%200%2034.816%2015.872%2034.816%2034.816%200%2018.944-15.36%2034.816-34.816%2034.816zM624.64%20324.608c-23.04%2022.528-46.592%2045.056-69.632%2068.096%205.12%2029.184%2010.24%2058.368%2014.848%2087.552%201.536%207.68%203.072%2015.872-0.512%2023.04-5.632%2012.288-21.504%2017.408-33.28%2011.776-28.672-15.36-57.856-30.208-86.528-45.568-28.672%2014.848-57.344%2030.208-86.016%2045.056-8.192%204.096-18.432%203.584-25.6-1.536-7.68-5.632-12.288-15.36-10.24-25.088%205.632-31.744%2010.752-63.488%2016.384-95.232-20.992-20.992-42.496-41.472-64-62.464-3.584-3.584-8.192-7.168-10.24-11.776-4.096-8.192-3.584-18.432%202.048-25.6%204.096-5.632%2010.24-9.216%2016.896-10.24L384%20268.8c14.336-29.184%2028.672-58.368%2043.52-87.552%203.584-6.656%2010.24-11.776%2017.92-12.8%207.68-1.536%2016.384%201.536%2021.504%207.168%203.072%203.072%205.12%207.168%206.656%2011.264%2013.312%2027.136%2026.624%2053.76%2039.936%2080.896%200.512%201.536%202.56%201.024%203.584%201.536l93.696%2013.824c11.776%201.536%2021.504%2012.8%2020.992%2025.088-0.512%205.632-3.072%2011.776-7.168%2016.384z'%20p-id='2554'%3e%3c/path%3e%3c/svg%3e",N3=Object.freeze(Object.defineProperty({__proto__:null,default:L3},Symbol.toStringTag,{value:"Module"})),R3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753766865378'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='11941'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M853.339798%208.145455h-682.666667A72.04202%2072.04202%200%200%200%2098.682828%2080.161616v863.676768a72.04202%2072.04202%200%200%200%2071.977374%2072.016161h682.666667a72.04202%2072.04202%200%200%200%2071.990303-72.016161V80.161616a72.04202%2072.04202%200%200%200-71.977374-72.016161zM777.470707%2080.161616h39.925657a35.956364%2035.956364%200%200%201%2035.995151%2035.995152v791.725252A35.956364%2035.956364%200%200%201%20817.344646%20943.838384H206.655354a35.956364%2035.956364%200%200%201-35.995152-35.995152V116.11798A35.956364%2035.956364%200%200%201%20206.655354%2080.161616h426.808888m219.875556%20827.720404'%20p-id='11942'%3e%3c/path%3e%3cpath%20d='M727.369697%20655.954747h-431.838384a35.995152%2035.995152%200%201%200%200%2071.977374h431.838384a35.995152%2035.995152%200%201%200%200-71.977374z%20m0-215.919191h-431.838384a35.982222%2035.982222%200%201%200%200%2071.977373h431.838384a35.982222%2035.982222%200%201%200%200-71.977373zM295.505455%20296.080808h215.919191a35.982222%2035.982222%200%200%200%200-71.977374h-215.919191a35.982222%2035.982222%200%201%200%200%2071.977374z%20m0%200M639.709091%20222.926869l2.029899-5.288081%2019.083636-48.536566c4.473535-11.468283%2016.252121-18.967273%2029.659798-18.967273a31.030303%2031.030303%200%200%201%2029.246061%2019.39394L738.010505%20218.505051l2.029899%205.30101%209.748687%200.439596%2012.192323%200.439596%200.814546-145.583839a10.343434%2010.343434%200%200%200-3.65899-7.990303%2012.101818%2012.101818%200%200%200-8.533334-3.090101L630.774949%2067.232323c-6.464646%200-12.179394%204.861414-12.179393%2011.028687l-0.814546%20145.596768h12.179394z'%20p-id='11943'%3e%3c/path%3e%3cpath%20d='M789.999192%20245.010101l-36.964849-0.814545-10.96404-0.400809-10.96404-0.413737-9.347879-0.400808h-4.460606l-22.742626-63.353535a6.606869%206.606869%200%200%200-12.192324%200l-21.979798%2057.263838-2.430707%206.089697h-35.710707l-36.964848%200.400808a6.244848%206.244848%200%200%200-6.089697%204.059798%205.973333%205.973333%200%200%200%202.430707%206.904243l57.276767%2041.024646-21.527272%2064.18101a5.986263%205.986263%200%200%200%202.430707%206.904242%203.090101%203.090101%200%200%200%202.029899%200.814546h4.059798a2.107475%202.107475%200%200%200%201.629091-0.814546l59.707474-38.180202%2059.306667%2038.994748a6.529293%206.529293%200%200%200%203.65899%201.215353%207.757576%207.757576%200%200%200%204.059798-1.215353%205.805253%205.805253%200%200%200%202.430707-6.904242l-20.686869-64.646465%2058.078384-40.210101a6.606869%206.606869%200%200%200%202.430707-6.904243%2010.252929%2010.252929%200%200%200-6.464646-3.658989z%20m0%200'%20p-id='11944'%3e%3c/path%3e%3c/svg%3e",I3=Object.freeze(Object.defineProperty({__proto__:null,default:R3},Symbol.toStringTag,{value:"Module"})),H3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752024794809'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1891'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M730.2%2045.8H72c-41.1%200-72%2030.9-72%2072v776.5c0%2041.1%2030.9%2077.2%2072%2077.2h447.3c-10.3-15.5-20.6-41.1-20.6-61.7v-41.1c0-61.7%2051.4-118.2%20118.2-118.2h10.3l46.2-56.5c-15.5-15.5-30.9-35.9-35.9-61.7C606.6%20550%20653%20457.5%20740.3%20431.7c15.5-5.2%2035.9-10.3%2051.4-10.3h15.5V112.6c0-36-35.9-66.8-77-66.8zM179.9%20236H365c20.6%200%2035.9%2015.5%2035.9%2035.9%200%2020.6-15.5%2035.9-35.9%2035.9H179.9c-20.6%200-35.9-15.5-35.9-35.9-0.1-20.4%2015.3-35.9%2035.9-35.9z%20m298.2%20498.8H179.9c-20.6%200-35.9-15.5-35.9-35.9%200-20.6%2015.5-35.9%2035.9-35.9h303.3c20.6%200%2035.9%2015.5%2035.9%2035.9-4.9%2015.4-20.4%2035.9-41%2035.9z%20m56.7-215.9H179.9c-20.6%200-35.9-15.5-35.9-35.9%200-20.6%2015.5-35.9%2035.9-35.9h354.9c20.6%200%2035.9%2015.5%2035.9%2035.9s-15.4%2035.9-35.9%2035.9z'%20p-id='1892'%3e%3c/path%3e%3cpath%20d='M966.7%20806.8h-41.1L822.8%20688.5c56.5-20.6%2087.5-77.2%2066.9-133.7-15.5-46.2-56.5-72-102.8-72-10.3%200-20.6%200-35.9%205.2-56.5%2020.6-87.5%2077.2-66.9%20133.7%2010.3%2030.9%2035.9%2056.5%2066.9%2066.9L648.1%20806.8h-30.9c-35.9%200-61.7%2025.8-61.7%2061.7v35.9c0%2035.9%2030.9%2061.7%2061.7%2061.7h344.6c35.9%200%2061.7-25.8%2061.7-61.7v-35.9c4.9-30.8-25.9-61.7-56.8-61.7z'%20p-id='1893'%3e%3c/path%3e%3c/svg%3e",$3=Object.freeze(Object.defineProperty({__proto__:null,default:H3},Symbol.toStringTag,{value:"Module"})),W3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752200287229'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4780'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M878.4%20243.5h-91.2v-41.2c0-58.6-47.7-106.2-106.2-106.2H354.2c-58.6%200-106.2%2047.7-106.2%20106.2v41.2h-91.2c-43.2%200-78.4%2035.1-78.4%2078.4V856c0%2043.2%2035.1%2078.4%2078.4%2078.4h721.5c43.2%200%2078.4-35.1%2078.4-78.4V321.8c0-43.2-35.1-78.3-78.3-78.3zM318%20202.3c0-20%2016.2-36.2%2036.2-36.2H681c20%200%2036.2%2016.3%2036.2%2036.2v41.2H318v-41.2zM156.8%20313.5h721.5c4.6%200%208.4%203.7%208.4%208.4V554H692.4c-14.8-45.3-57.4-78.2-107.6-78.2H450.4c-50.2%200-92.9%2032.9-107.6%2078.2H148.5V321.8c0-4.6%203.7-8.3%208.3-8.3zM628%20588.9c0%2023.8-19.4%2043.2-43.2%2043.2H450.4c-23.8%200-43.2-19.4-43.2-43.2%200-23.8%2019.4-43.2%2043.2-43.2h134.3c23.9%200%2043.3%2019.4%2043.3%2043.2z%20m250.4%20275.5H156.8c-4.6%200-8.4-3.7-8.4-8.4V623.9h194.3c14.8%2045.3%2057.4%2078.2%20107.6%2078.2h134.3c50.2%200%2092.9-32.9%20107.6-78.2h194.3V856c0.2%204.6-3.5%208.4-8.1%208.4z'%20p-id='4781'%3e%3c/path%3e%3c/svg%3e",F3=Object.freeze(Object.defineProperty({__proto__:null,default:W3},Symbol.toStringTag,{value:"Module"})),G3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752200301883'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='5102'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M414.2%2078H158.6c-41.5%200-75.3%2033.8-75.3%2075.3v255.5c0%2041.5%2033.8%2075.3%2075.3%2075.3h255.5c41.5%200%2075.3-33.8%2075.3-75.3V153.3c0-41.5-33.7-75.3-75.2-75.3z%20m5.2%20330.8c0%202.9-2.4%205.3-5.3%205.3H158.6c-2.9%200-5.3-2.4-5.3-5.3V153.3c0-2.9%202.4-5.3%205.3-5.3h255.5c2.9%200%205.3%202.4%205.3%205.3v255.5zM414.2%20544.8H158.6c-41.5%200-75.3%2033.8-75.3%2075.3v255.5c0%2041.5%2033.8%2075.3%2075.3%2075.3h255.5c41.5%200%2075.3-33.8%2075.3-75.3V620.1c0-41.5-33.7-75.3-75.2-75.3z%20m5.2%20330.8c0%202.9-2.4%205.3-5.3%205.3H158.6c-2.9%200-5.3-2.4-5.3-5.3V620.1c0-2.9%202.4-5.3%205.3-5.3h255.5c2.9%200%205.3%202.4%205.3%205.3v255.5zM908.8%20119.3H607.2c-19.3%200-35%2015.7-35%2035s15.7%2035%2035%2035h301.6c19.3%200%2035-15.7%2035-35s-15.7-35-35-35zM908.8%20343.8H607.2c-19.3%200-35%2015.7-35%2035s15.7%2035%2035%2035h301.6c19.3%200%2035-15.7%2035-35s-15.7-35-35-35zM908.8%20568.3H607.2c-19.3%200-35%2015.7-35%2035s15.7%2035%2035%2035h301.6c19.3%200%2035-15.7%2035-35s-15.7-35-35-35zM908.8%20792.8H607.2c-19.3%200-35%2015.7-35%2035s15.7%2035%2035%2035h301.6c19.3%200%2035-15.7%2035-35s-15.7-35-35-35z'%20p-id='5103'%3e%3c/path%3e%3c/svg%3e",j3=Object.freeze(Object.defineProperty({__proto__:null,default:G3},Symbol.toStringTag,{value:"Module"})),q3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759305280'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2311'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M919.3%20526.2l-174-68.2c-42.7-16.7-88.8%2014.7-88.8%2060.5v343c0%2035.9%2029.1%2065%2065%2065h174c35.9%200%2065-29.1%2065-65V586.7c0.1-26.7-16.3-50.8-41.2-60.5zM488.5%20115.1L108.3%20252.4c-25.8%209.3-42.9%2033.8-42.9%2061.2v547.9c0%2035.9%2029.1%2065%2065%2065h380.2c35.9%200%2065-29.1%2065-65V176.3c0-45.1-44.7-76.5-87.1-61.2z%20m-53.9%20573.2H197.3c-23.9%200-43.4-19.4-43.4-43.4%200-23.9%2019.4-43.4%2043.4-43.4h237.3c23.9%200%2043.4%2019.4%2043.4%2043.4s-19.4%2043.4-43.4%2043.4z%20m0-177.1H197.3c-23.9%200-43.4-19.4-43.4-43.4%200-23.9%2019.4-43.4%2043.4-43.4h237.3c23.9%200%2043.4%2019.4%2043.4%2043.4s-19.4%2043.4-43.4%2043.4z'%20p-id='2312'%3e%3c/path%3e%3c/svg%3e",U3=Object.freeze(Object.defineProperty({__proto__:null,default:q3},Symbol.toStringTag,{value:"Module"})),Y3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759035832'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3636'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M512%20446c0%2017.6-14.4%2032-32%2032H288c-17.6%200-32-14.4-32-32s14.4-32%2032-32h192c17.6%200%2032%2014.4%2032%2032z%20m223.9-66c-8.2%200-16.5%203.1-22.7%209.3l-45.6%2045.3-22.7-22.6c-6.2-6.2-14.5-9.3-22.7-9.3s-16.5%203.1-22.7%209.3c-12.5%2012.4-12.5%2032.8%200%2045.3l45.6%2045.3c6.2%206.2%2014.5%209.3%2022.7%209.3s16.5-3.1%2022.7-9.3l68.3-68c12.5-12.4%2012.5-32.8%200-45.3-6.4-6.2-14.6-9.3-22.9-9.3zM480%20638H288c-17.6%200-32%2014.4-32%2032s14.4%2032%2032%2032h192c17.6%200%2032-14.4%2032-32s-14.4-32-32-32z%20m255.9-34c-8.2%200-16.5%203.1-22.7%209.3l-45.6%2045.3-22.7-22.6c-6.2-6.2-14.5-9.3-22.7-9.3s-16.5%203.1-22.7%209.3c-12.5%2012.4-12.5%2032.8%200%2045.3l45.6%2045.3c6.2%206.2%2014.5%209.3%2022.7%209.3s16.5-3.1%2022.7-9.3l68.3-68c12.5-12.4%2012.5-32.8%200-45.3-6.4-6.2-14.6-9.3-22.9-9.3zM888%20192v704c0%2035.2-28.8%2064-64%2064H200c-35.2%200-64-28.8-64-64V192c0-35.2%2028.8-64%2064-64h136c0-35.2%2028.8-64%2064-64h224c35.2%200%2064%2028.8%2064%2064h136c35.2%200%2064%2028.8%2064%2064z%20m-488-0.1l0.1%200.1h223.8l0.1-0.1v-63.8l-0.1-0.1H400.1l-0.1%200.1v63.8z%20m424%200.2l-0.1-0.1H688c0%2035.2-28.8%2064-64%2064H400c-35.2%200-64-28.8-64-64H200.1l-0.1%200.1v703.8l0.1%200.1h623.8l0.1-0.1V192.1z'%20p-id='3637'%3e%3c/path%3e%3c/svg%3e",K3=Object.freeze(Object.defineProperty({__proto__:null,default:Y3},Symbol.toStringTag,{value:"Module"})),X3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752200293861'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4941'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M874.9%20577.3c-26.1-27.2-56.8-48.9-90.3-64.1%205.4-4.6%2010.6-9.6%2015.5-14.8%2032.3-34.7%2050.1-79.8%2050.1-127.2%200-102.9-83.7-186.7-186.7-186.7-11%200-21.8%200.9-32.5%202.8-7.1-9.6-14.9-18.7-23.4-27.2-44.6-44.6-103.9-69.2-167-69.2s-122.4%2024.6-167%2069.2-69.2%20103.9-69.2%20167%2024.6%20122.4%2069.2%20167c10.8%2010.8%2022.4%2020.4%2034.8%2028.7-4.9%201.8-9.7%203.8-14.5%205.8-44.9%2019-85.2%2046.2-119.9%2080.8-34.6%2034.6-61.8%2075-80.8%20119.9-19.7%2046.5-29.6%2095.9-29.6%20146.8%200%2017.7%201.2%2035.5%203.7%2052.9l69.3-9.7c-2-14.2-3-28.7-3-43.1%200-169.4%20137.8-307.1%20307.1-307.1s307.1%20137.8%20307.1%20307.1c0%2014.4-1%2028.9-3%2043.1l69.3%209.7c2.4-17.4%203.7-35.2%203.7-52.9%200-50.9-10-100.3-29.6-146.8-19-44.9-46.2-85.2-80.8-119.9-34.6-34.6-74.9-61.8-119.9-80.8-4.8-2-9.7-4-14.6-5.8%2012.3-8.4%2024-18%2034.8-28.7%2044.6-44.6%2069.2-103.9%2069.2-167%200-25-3.9-49.4-11.3-72.6%2063.4%201.1%20114.7%2053%20114.7%20116.6%200%2045.5-26.6%2085.6-65.3%20104.7-16.3%208.1-26.8%2024.4-26.8%2042.6v1c0%2021.2%2014.1%2040%2034.6%2045.5%2094.9%2025.8%20163.8%20112.4%20163.8%20215%200%2010.5-0.7%2021-2.2%2031.3l69.3%209.7c1.9-13.5%202.9-27.3%202.9-41-0.1-75.8-29.1-147.8-81.7-202.6z%20m-434.3-84c-91.6%200-166.2-74.6-166.2-166.2S349%20160.9%20440.6%20160.9s166.2%2074.6%20166.2%20166.2-74.5%20166.2-166.2%20166.2z'%20p-id='4942'%3e%3c/path%3e%3c/svg%3e",Q3=Object.freeze(Object.defineProperty({__proto__:null,default:X3},Symbol.toStringTag,{value:"Module"})),J3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759042395'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3793'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M751.104%20402.432H272.896a33.6896%2033.6896%200%200%201%200-67.3792h478.208a33.6896%2033.6896%200%201%201%200%2067.3792m0%20192.7168H272.896a33.7408%2033.7408%200%200%201%200-67.4304h478.208a33.7408%2033.7408%200%200%201%200%2067.4304m0%20192.6144H272.896a33.6896%2033.6896%200%201%201%200-67.3792h478.208a33.7408%2033.7408%200%201%201%200%2067.4304M621.6192%2075.3152H402.3296a33.6896%2033.6896%200%201%201%200-67.3792h219.2896a33.6896%2033.6896%200%200%201%200%2067.3792'%20p-id='3794'%3e%3c/path%3e%3cpath%20d='M169.2672%2070.912a37.9392%2037.9392%200%200%200-37.888%2037.8368v806.5024a37.888%2037.888%200%200%200%2037.888%2037.888h685.4656a37.888%2037.888%200%200%200%2037.8368-37.888V108.7488a37.9392%2037.9392%200%200%200-37.8368-37.8368h-72.704a128%20128%200%200%201-127.1296%20116.0192H369.1008a127.6928%20127.6928%200%200%201-127.1808-116.0192z%20m685.4656%20949.6576H169.2672a105.3696%20105.3696%200%200%201-105.2672-105.3184V108.7488A105.3696%20105.3696%200%200%201%20169.2672%203.4304h139.52v55.9104a60.2112%2060.2112%200%200%200%2060.3136%2060.16h285.7984a60.1088%2060.1088%200%200%200%2060.2112-60.16V3.4304h139.52a105.4208%20105.4208%200%200%201%20105.3696%20105.3184v806.5024a105.3184%20105.3184%200%200%201-105.2672%20105.3184z'%20p-id='3795'%3e%3c/path%3e%3c/svg%3e",Z3=Object.freeze(Object.defineProperty({__proto__:null,default:J3},Symbol.toStringTag,{value:"Module"})),eu="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1751524561033'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3065'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M960%20491.52v380.416c0%2026.112-23.04%2047.616-52.224%2047.616H116.224c-29.184%200-52.224-21.504-52.224-47.616V491.52c0-26.112%2023.04-47.616%2052.224-47.616h791.552c28.672%200%2052.224%2021.504%2052.224%2047.616z%20m-149.504%20156.16H213.504V783.36h596.992v-135.68z%20m149.504-500.736v186.88c0%2023.04-20.992%2042.496-46.592%2042.496H110.592c-25.6%200-46.592-18.944-46.592-42.496V146.944c0-23.04%2020.992-42.496%2046.592-42.496h802.304c26.112%200%2047.104%2018.944%2047.104%2042.496z%20m-671.744%2025.6c-41.472%200-74.752%2030.208-74.752%2068.096s33.792%2068.096%2074.752%2068.096S363.008%20278.528%20363.008%20240.64s-33.792-68.096-74.752-68.096z%20m224.256%200c-41.472%200-74.752%2030.208-74.752%2068.096s33.792%2068.096%2074.752%2068.096%2074.752-30.208%2074.752-68.096-33.792-68.096-74.752-68.096z'%20p-id='3066'%3e%3c/path%3e%3c/svg%3e",tu=Object.freeze(Object.defineProperty({__proto__:null,default:eu},Symbol.toStringTag,{value:"Module"})),iu="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752025057554'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2273'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M768%20544c105.6%200%20192%2086.4%20192%20192%200%20106.24-85.76%20192-192%20192s-192-85.76-192-192%2085.76-192%20192-192z%20m12.8-454.4a32%2032%200%200%201%2032%2032v362.368A255.744%20255.744%200%200%200%20530.56%20640H192a32%2032%200%200%200-5.76%2063.488L192%20704h321.92a255.104%20255.104%200%200%200%2065.024%20204.864L128.064%20908.8a32%2032%200%200%201-32-32V121.6a32%2032%200%200%201%2032-32h652.8z%20m62.72%20562.752l-4.352%203.712-100.992%20103.872-36.288-39.296-4.288-3.84a32%2032%200%200%200-46.208%2042.752l3.52%204.608%2059.264%2064%204.48%203.968a32%2032%200%200%200%2037.376%200.448l4.544-3.84%20124.48-128%203.648-4.48a32%2032%200%200%200-45.12-43.904zM384%20768H192a32%2032%200%200%200-5.76%2063.488L192%20832h192a32%2032%200%201%200%200-64z%20m76.8-384a89.6%2089.6%200%201%200%200%20179.2%2089.6%2089.6%200%200%200%200-179.2z%20m3.392-251.584a32%2032%200%200%200-43.776%2011.392l-217.6%20371.2-2.496%205.248a32%2032%200%200%200%2057.664%2027.136l217.6-371.2%202.496-5.248a32%2032%200%200%200-13.888-38.528zM460.8%20448a25.6%2025.6%200%201%201%200%2051.2%2025.6%2025.6%200%200%201%200-51.2zM230.4%20128a89.6%2089.6%200%201%200%200%20179.2%2089.6%2089.6%200%200%200%200-179.2z%20m0%2064a25.6%2025.6%200%201%201%200%2051.2%2025.6%2025.6%200%200%201%200-51.2z'%20p-id='2274'%3e%3c/path%3e%3c/svg%3e",nu=Object.freeze(Object.defineProperty({__proto__:null,default:iu},Symbol.toStringTag,{value:"Module"})),su="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752024911338'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1794'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M588.8%20532.3c-9.3-35.1-40.9-61-78.9-61-37.5%200-68.7%2025.3-78.5%2059.7-35.1%209.3-61%2040.9-61%2078.9%200%2037.5%2025.3%2068.7%2059.7%2078.5%209.3%2035.1%2040.9%2061%2078.9%2061%2037.5%200%2068.7-25.3%2078.5-59.7%2035-9.3%2061-40.9%2061-78.9%200-37.5-25.3-68.7-59.7-78.5zM624.4%20777.8H405.6c-8.1%200-14.7%206.3-14.7%2014l-6%20136.5c0%207.7%206.6%2014%2014.7%2014h29.9c8%200%2014.5-6%2014.7-13.6%200.8-29.4%2014.7-96%2069-96.4%2057.3-0.4%2071.5%2066.9%2072.3%2096.4%200.2%207.6%206.7%2013.6%2014.7%2013.6h30.2c8.2%200%2014.8-6.3%2014.7-14l-6-136.5c0-7.7-6.6-14-14.7-14z'%20fill='%23020202'%20p-id='1795'%3e%3c/path%3e%3cpath%20d='M797.5%2080H231.7c-68.5%200-124%2055.5-124%20124v454.5c0%2066.3%2053.7%20120%20120%20120h116.5c12.5%200%2022.6-10.1%2022.6-22.6v-27.2s-0.4-18.8-3.8-31.4c-1.2-4.2-3.6-8-6.9-10.8-23.6-20.7-38.6-50.9-38.6-84.8%200-48.9%2031.1-90.3%2074.5-106.2%206.2-2.3%2011-7%2013.4-13.2%2016.4-42.4%2057.2-72.7%20105.4-72.7%2048.9%200%2090.3%2031.1%20106.2%2074.5%202.3%206.2%207%2011%2013.2%2013.4%2042.4%2016.4%2072.7%2057.2%2072.7%20105.4%200%2035.1-16%2066.2-41%2086.9-1%200.8%201.1%2032.7%201.5%2038%200%200.5%200.1%201%200.1%201.5v26.4c0%2012.5%2010.1%2022.6%2022.6%2022.6h115.4c66.3%200%20120-53.7%20120-120V204c0-68.5-55.5-124-124-124z%20m-74.4%20246.5c0%2020.6-16.9%2037.5-37.5%2037.5h-342c-20.6%200-37.5-16.9-37.5-37.5S323%20289%20343.6%20289h342c20.6%200%2037.5%2016.9%2037.5%2037.5z%20m0-124c0%2020.6-16.9%2037.5-37.5%2037.5h-342c-20.6%200-37.5-16.9-37.5-37.5S323%20165%20343.6%20165h342c20.6%200%2037.5%2016.9%2037.5%2037.5z'%20fill='%23020202'%20p-id='1796'%3e%3c/path%3e%3c/svg%3e",ou=Object.freeze(Object.defineProperty({__proto__:null,default:su},Symbol.toStringTag,{value:"Module"})),ru="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://%20www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759802627'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3075'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M538.229%20225.071l322.441%200.03c46.887%200%2081.569%2034.381%2084.651%2082.355v487.122c0%2046.889-37.765%2086.494-84.651%2086.494H163.763c-46.887%200-84.651-38.579-84.651-86.494V225.102c0-46.887%2037.765-86.494%2084.651-86.494h208.153c81.632-0.001%2081.632%2086.494%20166.313%2086.463z%20m113.199%20377.577h-15.469c-17.098%200-30.935%2013.837-30.935%2030.936v92.809c0%2017.1%2013.837%2030.936%2030.935%2030.936h92.81c17.098%200%2030.938-13.836%2030.938-30.936v-92.809c0-17.099-13.84-30.936-30.938-30.936H713.3v-61.872c0-17.1-13.837-30.936-30.935-30.936H527.684v-30.936h15.469c17.098%200%2030.935-13.836%2030.935-30.936v-92.81c0-17.098-13.837-30.936-30.935-30.936h-92.81c-17.098%200-30.934%2013.838-30.934%2030.936v92.81c0%2017.1%2013.836%2030.936%2030.934%2030.936h15.469v30.936H342.068c-17.098%200-30.938%2013.836-30.938%2030.936v61.872h-15.466c-17.101%200-30.938%2013.837-30.938%2030.936v92.809c0%2017.1%2013.836%2030.936%2030.938%2030.936h92.807c17.101%200%2030.938-13.836%2030.938-30.936v-92.809c0-17.099-13.837-30.936-30.938-30.936h-15.466v-30.936h278.423v30.936z'%20p-id='3076'%3e%3c/path%3e%3c/svg%3e",lu=Object.freeze(Object.defineProperty({__proto__:null,default:ru},Symbol.toStringTag,{value:"Module"})),au="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752200280399'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4617'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M322.5%2062h384.6v70H322.5z'%20p-id='4618'%3e%3c/path%3e%3cpath%20d='M870.2%2062h-59.3v70h59.3c7.2%200%2013%205.8%2013%2013v733.9c0%207.2-5.8%2013-13%2013h-720c-7.2%200-13-5.8-13-13V145c0-7.2%205.8-13%2013-13h68.6V62h-68.6c-45.8%200-83%2037.2-83%2083v733.9c0%2045.8%2037.2%2083%2083%2083h720c45.8%200%2083-37.2%2083-83V145c0-45.8-37.3-83-83-83z'%20p-id='4619'%3e%3c/path%3e%3cpath%20d='M295%20806.2c-0.5-5.7-0.7-11.6-0.7-17.3%200-119%2096.8-215.8%20215.8-215.8S726%20669.8%20726%20788.8c0%205.8-0.2%2011.6-0.7%2017.3l69.8%205.6c0.6-7.6%200.9-15.3%200.9-22.9%200-76.4-29.7-148.1-83.7-202.1-29.7-29.8-64.9-52.1-103.3-66.2%2045.6-31.5%2075.5-84.1%2075.5-143.5%200-96.1-78.2-174.4-174.4-174.4-96.1%200-174.4%2078.2-174.4%20174.4%200%2059.5%2029.9%20112%2075.5%20143.5C373%20534.6%20337.8%20557%20308%20586.7c-54%2054-83.7%20125.8-83.7%20202.1%200%207.6%200.3%2015.3%200.9%2022.9l69.8-5.5z%20m215.2-533.6c57.5%200%20104.4%2046.8%20104.4%20104.4%200%2057.5-46.8%20104.4-104.4%20104.4-57.5%200-104.4-46.8-104.4-104.4%200-57.6%2046.8-104.4%20104.4-104.4z'%20p-id='4620'%3e%3c/path%3e%3c/svg%3e",cu=Object.freeze(Object.defineProperty({__proto__:null,default:au},Symbol.toStringTag,{value:"Module"})),hu="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753776005679'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2552'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M875.7248%20656.5376H634.624a29.44%2029.44%200%200%200-28.3648%2021.3248%2094.5152%2094.5152%200%200%201-181.8624%200%2029.44%2029.44%200%200%200-28.3904-21.3248H160.6656A58.2656%2058.2656%200%200%200%20102.4%20714.8032v172.2368a58.2656%2058.2656%200%200%200%2058.2656%2058.2656h715.0592a58.2656%2058.2656%200%200%200%2058.2656-58.2656v-172.2368a58.2656%2058.2656%200%200%200-58.2656-58.2656z%20m-229.632-481.3312v3.1488c-4.0448-1.8944-4.0448-2.5344%200-3.1488-4.0448-1.2544%200-1.8944%200-3.1488v3.1488z'%20fill='%23000000'%20p-id='2553'%3e%3c/path%3e%3cpath%20d='M833.6896%20102.4H354.1504c-17.5872%200-32.0768%2016.3072-32.0768%2035.7632V610.816h127.488c0%2040.1664%2028.8768%2072.7808%2064.0256%2072.7808%2035.7888%200%2064-32.6144%2064-72.7808h288.1024V138.1632c0-20.0704-14.4384-35.7632-32-35.7632zM457.472%20261.12h272.9472c13.056%200%2022.7584%2010.7008%2023.296%2023.296%200.5888%2012.6464-11.1104%2023.3472-23.296%2023.3472H457.4976c-13.056%200-22.7328-10.7008-23.296-23.3216-0.5632-12.6464%2011.1104-23.296%2023.296-23.296z%20m273.2288%20209.4592h-272.896c-13.0816%200-22.784-10.6752-23.3216-23.296-0.5632-12.6464%2011.1104-23.296%2023.296-23.296h272.9216c13.056%200%2022.7584%2010.6752%2023.296%2023.296%200.5888%2012.6208-11.0848%2023.296-23.296%2023.296z%20m-512-295.3728h39.4496v435.584H162.1248V231.7568c0-31.232%2025.344-56.576%2056.576-56.576z'%20fill='%23000000'%20p-id='2554'%3e%3c/path%3e%3c/svg%3e",uu=Object.freeze(Object.defineProperty({__proto__:null,default:hu},Symbol.toStringTag,{value:"Module"})),fu="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752025023308'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1955'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M481.322667%20891.349333l-328.533334-157.866666a72.064%2072.064%200%200%201-38.4-85.333334l366.933334%20179.2%2034.133333%2017.066667%20328.533333-157.866667%2068.266667-38.4a77.354667%2077.354667%200%200%201-38.4%2085.333334l-328.533333%20157.866666a58.069333%2058.069333%200%200%201-64%200z%20m0-153.6l-328.533334-157.866666a71.978667%2071.978667%200%200%201-38.4-85.333334l366.933334%20179.2%2034.133333%2017.066667%20328.533333-157.866667%2068.266667-38.4a77.269333%2077.269333%200%200%201-38.4%2085.333334l-328.533333%20157.866666a58.069333%2058.069333%200%200%201-64%200z%20m0-153.6l-328.533334-158.08a71.509333%2071.509333%200%200%201-34.133333-97.92%2067.626667%2067.626667%200%200%201%2034.133333-34.133333l328.533334-157.866667a57.770667%2057.770667%200%200%201%2064%200l328.533333%20157.866667a71.808%2071.808%200%200%201%2034.133333%2098.133333%2065.792%2065.792%200%200%201-34.133333%2034.133334l-328.533333%20158.08a58.496%2058.496%200%200%201-64%200z'%20p-id='1956'%3e%3c/path%3e%3c/svg%3e",du=Object.freeze(Object.defineProperty({__proto__:null,default:fu},Symbol.toStringTag,{value:"Module"})),pu="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753766109243'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3509'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M287.976534%20569.570276l76.718651%200%200%2063.953068-76.718651%200%200-63.953068Z'%20p-id='3510'%3e%3c/path%3e%3cpath%20d='M390.351503%20441.538988l-95.992178%200%200%2063.953068%2070.461012%200C364.820337%20479.96089%20377.58592%20460.812515%20390.351503%20441.538988z'%20p-id='3511'%3e%3c/path%3e%3cpath%20d='M287.976534%20313.632853l447.92178%200%200%2063.953068-447.92178%200%200-63.953068Z'%20p-id='3512'%3e%3c/path%3e%3cpath%20d='M287.976534%20697.601564l76.718651%200%200%2063.953068-76.718651%200%200-63.953068Z'%20p-id='3513'%3e%3c/path%3e%3cpath%20d='M921.625031%20441.538988%20492.726473%20441.538988c-38.421902%200-70.461012%2032.03911-70.461012%2070.461012L422.265461%20940.773405c0%2038.421902%2032.03911%2070.461012%2070.461012%2070.461012l428.773405%200c38.421902%200%2070.461012-32.03911%2070.461012-70.461012L991.96089%20512C991.96089%20473.578098%20959.92178%20441.538988%20921.625031%20441.538988zM911.863114%20917.494989c0%200-40.549499-157.692496-211.13273-180.219995l0%2061.700318c0%2012.139819-13.141041%2019.774138-23.653874%2013.641652l-184.850648-106.755317c-10.512833-6.132486-10.512833-21.275972%200-27.283305l184.850648-106.755317c10.512833-6.132486%2023.653874%201.501833%2023.653874%2013.641652l0%2050.06111C700.730384%20635.400636%20915.617697%20609.619164%20911.863114%20917.494989z'%20p-id='3514'%3e%3c/path%3e%3cpath%20d='M895.968712%200%20128.031288%200C76.843803%200.125153%2032.03911%2044.804693%2032.03911%2096.117331l0%20831.890491c0%2051.187485%2044.804693%2095.992178%2095.992178%2095.992178l255.937424%200c-12.765583-19.273527-25.531166-44.804693-25.531166-70.461012L358.437546%20889.460768%20160.070398%20889.460768%20160.070398%20121.648497l703.859203%200%200%20268.703007%2057.570276%200c25.531166%200%2051.187485%206.382791%2070.461012%2025.531166L991.96089%2095.992178C991.96089%2044.804693%20947.156197%200%20895.968712%200z'%20p-id='3515'%3e%3c/path%3e%3c/svg%3e",gu=Object.freeze(Object.defineProperty({__proto__:null,default:pu},Symbol.toStringTag,{value:"Module"}));function Ur(){const n=Object.assign({"/public/icons/svg/App.svg":nh,"/public/icons/svg/Avatar.svg":oh,"/public/icons/svg/Cancel.svg":lh,"/public/icons/svg/ChildAdd.svg":ch,"/public/icons/svg/ChildDelete.svg":uh,"/public/icons/svg/ChildFix.svg":dh,"/public/icons/svg/Delete.svg":gh,"/public/icons/svg/DongHuaFangZhen.svg":vh,"/public/icons/svg/Edit.svg":xh,"/public/icons/svg/EyeFill.svg":yh,"/public/icons/svg/Fold.svg":Sh,"/public/icons/svg/Form.svg":_h,"/public/icons/svg/Left.svg":Mh,"/public/icons/svg/Plus.svg":Th,"/public/icons/svg/Right.svg":Bh,"/public/icons/svg/Save.svg":Eh,"/public/icons/svg/Signature.svg":zh,"/public/icons/svg/Step.svg":Nh,"/public/icons/svg/Store.svg":Ih,"/public/icons/svg/Table.svg":$h,"/public/icons/svg/Tabs.svg":Fh,"/public/icons/svg/TimeLine.svg":jh,"/public/icons/svg/config.svg":Uh,"/public/icons/svg/emptyImg.svg":Kh,"/public/icons/svg/import.svg":Qh,"/public/icons/svg/jd单.svg":Zh,"/public/icons/svg/logo.svg":t1,"/public/icons/svg/operate.svg":n1,"/public/icons/svg/wenjian.svg":o1,"/public/icons/svg/wenjianjia.svg":l1,"/public/icons/svg/write.svg":c1,"/public/icons/svg/专项监督报告.svg":u1,"/public/icons/svg/个人中心.svg":d1,"/public/icons/svg/主菜单管理.svg":g1,"/public/icons/svg/会议纪要.svg":v1,"/public/icons/svg/停工令.svg":x1,"/public/icons/svg/制造厂.svg":y1,"/public/icons/svg/加工.svg":S1,"/public/icons/svg/协作单位.svg":_1,"/public/icons/svg/取消.svg":M1,"/public/icons/svg/同意.svg":T1,"/public/icons/svg/周报.svg":B1,"/public/icons/svg/备忘录.svg":E1,"/public/icons/svg/大屏.svg":z1,"/public/icons/svg/审批中心.svg":N1,"/public/icons/svg/审批列表.svg":I1,"/public/icons/svg/审核.svg":$1,"/public/icons/svg/工件库.svg":F1,"/public/icons/svg/工作台.svg":j1,"/public/icons/svg/平台管理.svg":U1,"/public/icons/svg/年度监造.svg":K1,"/public/icons/svg/年度计划.svg":Q1,"/public/icons/svg/批准.svg":Z1,"/public/icons/svg/承包商.svg":t3,"/public/icons/svg/技术监督单.svg":n3,"/public/icons/svg/报告中心.svg":o3,"/public/icons/svg/提交.svg":l3,"/public/icons/svg/文件管理.svg":c3,"/public/icons/svg/文档管理.svg":u3,"/public/icons/svg/方法库.svg":d3,"/public/icons/svg/日报.svg":g3,"/public/icons/svg/月报.svg":v3,"/public/icons/svg/档案管理.svg":x3,"/public/icons/svg/消息中心.svg":y3,"/public/icons/svg/灯泡维修.svg":S3,"/public/icons/svg/生成报告.svg":_3,"/public/icons/svg/用户管理.svg":M3,"/public/icons/svg/知识库.svg":T3,"/public/icons/svg/策划报告.svg":B3,"/public/icons/svg/算法.svg":E3,"/public/icons/svg/系统管理.svg":z3,"/public/icons/svg/经验反馈.svg":N3,"/public/icons/svg/经验反馈2.svg":I3,"/public/icons/svg/考核.svg":$3,"/public/icons/svg/职位管理.svg":F3,"/public/icons/svg/菜单管理.svg":j3,"/public/icons/svg/营运单位.svg":U3,"/public/icons/svg/观察意见单.svg":K3,"/public/icons/svg/角色管理.svg":Q3,"/public/icons/svg/记录单.svg":Z3,"/public/icons/svg/设备库.svg":tu,"/public/icons/svg/质量计划.svg":nu,"/public/icons/svg/资质管理.svg":ou,"/public/icons/svg/部门文件.svg":lu,"/public/icons/svg/部门管理.svg":cu,"/public/icons/svg/项目信息.svg":uu,"/public/icons/svg/项目管理.svg":du,"/public/icons/svg/驳回.svg":gu});return Object.keys(n).map(e=>({value:e.split("/").pop().replace(".svg",""),path:n[e].default}))}const mu={class:"icon-popover"},vu=["onClick"],wu=u.defineComponent({__name:"index",props:{modelValue:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,i=e,s=u.ref(t.modelValue),o=u.ref(!1),r=u.ref([]),l=()=>{o.value=!0},a=()=>{o.value=!1},c=h=>{s.value=h.value,i("update:modelValue",h.value)};return u.onMounted(()=>{r.value=Ur()}),(h,f)=>{const d=u.resolveComponent("el-input"),p=u.resolveComponent("el-popover");return u.openBlock(),u.createBlock(p,{width:"400",visible:o.value,title:"图标",placement:"bottom"},{default:u.withCtx(()=>[u.createElementVNode("div",mu,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(r.value,(g,m)=>(u.openBlock(),u.createElementBlock("div",{key:m,class:"icon-wrap",onClick:v=>c(g)},[u.createVNode(Wo.SvgIcon,{name:g==null?void 0:g.value,style:{width:"20px",height:"20px"}},null,8,["name"])],8,vu))),128))])]),reference:u.withCtx(()=>[u.createVNode(d,{modelValue:s.value,"onUpdate:modelValue":f[0]||(f[0]=g=>s.value=g),placeholder:"请输入",disabled:!(t!=null&&t.isEdit),clearable:"",onFocus:l,onBlur:a},{prepend:u.withCtx(()=>[u.createVNode(Wo.SvgIcon,{name:s.value,style:{width:"20px",height:"20px"}},null,8,["name"])]),_:1},8,["modelValue","disabled"])]),_:1},8,["visible"])}}}),xu=ce._export_sfc(wu,[["__scopeId","data-v-d9981dd9"]]),bu={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const e=n,t=u.ref(e.value);return(i,s)=>{const o=u.resolveComponent("el-input");return u.openBlock(),u.createBlock(o,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=r=>t.value=r),disabled:!(e!=null&&e.isEdit),type:"password","show-password":"",clearable:""},null,8,["modelValue","disabled"])}}},yu={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const e=n,t=u.ref(e.value);return(i,s)=>{const o=u.resolveComponent("el-color-picker");return u.openBlock(),u.createBlock(o,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=r=>t.value=r),"show-alpha":""},null,8,["modelValue"])}}},ku={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const e=n,t=u.ref(e.value);return(i,s)=>{const o=u.resolveComponent("el-input");return u.openBlock(),u.createBlock(o,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=r=>t.value=r),style:{height:"100%"},type:"number"},null,8,["modelValue"])}}},Rn=u.defineComponent({__name:"index",props:{modelValue:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},emptyColor:{type:Boolean,default:!1},buttonType:{type:String,default:"primary"}},emits:["clickTrigger"],setup(n,{emit:e}){const t=n,i=u.ref(t.modelValue),s=e,o=r=>{s("clickTrigger",r)};return(r,l)=>{const a=u.resolveComponent("el-button");return u.openBlock(),u.createBlock(a,{type:t==null?void 0:t.buttonType,id:t!=null&&t.emptyColor?"":"themeButton",onClick:l[0]||(l[0]=c=>o(i.value)),loading:t==null?void 0:t.loading},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(i.value),1)]),_:1},8,["type","id","loading"])}}}),Su={class:"form-content-view"},Cu={class:"form-item-label-child"},_u=["onClick"],Ou={class:"form-item-label-child"},Mu=["onClick"],Du=["onClick"],Tu={__name:"index",props:{formRules:Object,rowContents:Array,buttonValue:Array,isEnableWrap:{default:!0,type:Boolean},isRowFlex:{default:!1,type:Boolean},isButtonRow:{default:!0,type:Boolean},rowValues:Array,isEdit:{type:Boolean,default:!0},isStartJustify:{type:Boolean,default:!0}},emits:["change","onButtonClick","clickTrigger","blur","changeVisible","blurChange","preview"],setup(n,{emit:e}){const t=n;u.onMounted(()=>{console.log("表单",t==null?void 0:t.rowContents)});const i=e,s=u.ref(null),o=u.ref(null),r=u.ref(),l=u.ref(),a=u.ref(0),c=b=>Ms(b),h=b=>{i("clickTrigger",b)},f=b=>{i("preview",b)},d=()=>{i("blur",l.value)},p=()=>{i("blurChange",l.value)},g=()=>{u.nextTick(()=>{a.value++})},m=(b,k)=>{switch(b){case"datetime":return Nt.dayjs(k).format("YYYY-MM-DD HH:mm:ss");case"date":return Nt.dayjs(k).format("YYYY-MM-DD");default:return k}},v=b=>{i("changeVisible",b)};u.watch(()=>t==null?void 0:t.rowContents,()=>{var k,_;if(((k=t==null?void 0:t.rowContents)==null?void 0:k.length)===0)return;const b={};(_=ee.cloneDeep(t==null?void 0:t.rowContents))==null||_.forEach(y=>{b[(y==null?void 0:y.name)??(y==null?void 0:y.prop)]=m(y==null?void 0:y.type,y==null?void 0:y.value)}),r.value=b,l.value=b,g()},{deep:!0,immediate:!0});const x=async(b,k)=>{await u.nextTick(),console.log("onButtonClick",b,l.value),k&&await(k==null?void 0:k.validate((_,y)=>{_?i("onButtonClick",{content:l.value,buttonName:b}):console.log("表单校验失败",y)}))};return u.watch(()=>l.value,()=>{i("change",l.value)},{deep:!0}),(b,k)=>{var C;const _=u.resolveComponent("el-form-item"),y=u.resolveComponent("el-form"),S=u.resolveComponent("el-button");return u.openBlock(),u.createElementBlock("div",{class:"form-content",style:u.normalizeStyle({flexDirection:n.isButtonRow?"row":"column"})},[u.createElementVNode("div",Su,[t.isEnableWrap?(u.openBlock(),u.createBlock(y,{ref_key:"formWrapRef",ref:s,model:r.value,rules:n.formRules,class:"form-data",key:t.isRowFlex+a.value},{default:u.withCtx(()=>{var P,O;return[(P=b.item)!=null&&P.isFormColHidden?u.createCommentVNode("",!0):(u.openBlock(!0),u.createElementBlock(u.Fragment,{key:0},u.renderList(u.unref(ee.cloneDeep)(t==null?void 0:t.rowContents),(w,A)=>(u.openBlock(),u.createBlock(_,{key:A,class:"form-item",prop:(w==null?void 0:w.prop)??(w==null?void 0:w.name),style:u.normalizeStyle({flexDirection:n.isRowFlex?"row":"column",alignItems:n.isRowFlex?"center":"start",height:n.isRowFlex?"100%":"auto"})},u.createSlots({default:u.withCtx(()=>{var T,D,R;return[w!=null&&w.isFormColHidden?u.createCommentVNode("",!0):(u.openBlock(),u.createBlock(u.resolveDynamicComponent(c((w==null?void 0:w.type)??"Input")),{modelValue:l.value[(w==null?void 0:w.prop)??w.name],"onUpdate:modelValue":H=>l.value[(w==null?void 0:w.prop)??w.name]=H,key:w==null?void 0:w.type,content:(w==null?void 0:w.contents)??[],isEdit:t==null?void 0:t.isEdit,onClickTrigger:h,onBlur:d,optionUrl:w==null?void 0:w.optionUrl,onChangeVisible:v,onBlurChange:p,config:w==null?void 0:w.config},null,40,["modelValue","onUpdate:modelValue","content","isEdit","optionUrl","config"])),typeof l.value[(w==null?void 0:w.prop)??w.name]=="string"&&((T=l.value[(w==null?void 0:w.prop)??w.name])!=null&&T.includes(".stl")||(D=l.value[(w==null?void 0:w.prop)??w.name])!=null&&D.includes(".obj")||(R=l.value[(w==null?void 0:w.prop)??w.name])!=null&&R.includes(".urdf"))?(u.openBlock(),u.createBlock(Rn,{key:1,class:"calculator-content",onClickTrigger:H=>f(l.value[(w==null?void 0:w.prop)??w.name]),modelValue:"预览"},null,8,["onClickTrigger"])):u.createCommentVNode("",!0)]}),_:2},[w!=null&&w.isFormColHidden?void 0:{name:"label",fn:u.withCtx(()=>[w!=null&&w.label?(u.openBlock(),u.createElementBlock("div",{key:0,class:"from-item-label",style:u.normalizeStyle({width:n.isRowFlex?"72px":"260px",minWidth:n.isRowFlex?"72px":"260px"})},[u.createElementVNode("div",Cu,u.toDisplayString(w==null?void 0:w.label),1)],4)):u.createCommentVNode("",!0)]),key:"0"}]),1032,["prop","style"]))),128)),((O=t.buttonValue)==null?void 0:O.length)>0&&n.isButtonRow?(u.openBlock(),u.createElementBlock("div",{key:1,class:"form-button",style:u.normalizeStyle({paddingTop:n.isRowFlex?"0":"26px",justifyContent:n.isStartJustify?"start":"end"})},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(t==null?void 0:t.buttonValue,(w,A)=>(u.openBlock(),u.createElementBlock("div",{key:A,class:"form-button-content"},[w?(u.openBlock(),u.createElementBlock("div",{key:0,class:"form-button-item",style:u.normalizeStyle({background:(w==null?void 0:w.background)??"var(--ssComponent-primary-color)"}),onClick:T=>x(w==null?void 0:w.label,s.value)},u.toDisplayString(w==null?void 0:w.label),13,_u)):u.createCommentVNode("",!0)]))),128))],4)):u.createCommentVNode("",!0)]}),_:1},8,["model","rules"])):(u.openBlock(),u.createBlock(y,{ref_key:"formRef",ref:o,model:l.value,rules:n.formRules,class:"form-noRegular-data",key:a.value},{default:u.withCtx(()=>{var P,O;return[(P=b.item)!=null&&P.isFormColHidden?u.createCommentVNode("",!0):(u.openBlock(!0),u.createElementBlock(u.Fragment,{key:0},u.renderList(u.unref(ee.cloneDeep)(t==null?void 0:t.rowContents),(w,A)=>(u.openBlock(),u.createBlock(_,{key:A,class:u.normalizeClass(["form-item",{"form-row-content":!n.isRowFlex}]),prop:(w==null?void 0:w.prop)??(w==null?void 0:w.name),style:u.normalizeStyle({flexDirection:n.isRowFlex?"row":"column",alignItems:n.isRowFlex?"center":"start",height:n.isRowFlex?"100%":"auto",width:`calc((100% / ${(w==null?void 0:w.width)??1}) - 12px)`,minWidth:`calc((100% / ${(w==null?void 0:w.width)??1}) - 12px)`})},u.createSlots({default:u.withCtx(()=>{var T,D,R;return[w!=null&&w.isFormColHidden?u.createCommentVNode("",!0):(u.openBlock(),u.createBlock(u.resolveDynamicComponent(c((w==null?void 0:w.type)??"Input")),{modelValue:l.value[(w==null?void 0:w.prop)??w.name],"onUpdate:modelValue":H=>l.value[(w==null?void 0:w.prop)??w.name]=H,isEdit:t==null?void 0:t.isEdit,content:(w==null?void 0:w.contents)??[],onClickTrigger:h,onBlur:d,key:w==null?void 0:w.type,optionUrl:w==null?void 0:w.optionUrl,onChangeVisible:v,onBlurChange:p,config:w==null?void 0:w.config},null,40,["modelValue","onUpdate:modelValue","isEdit","content","optionUrl","config"])),typeof l.value[(w==null?void 0:w.prop)??w.name]=="string"&&((T=l.value[(w==null?void 0:w.prop)??w.name])!=null&&T.includes(".stl")||(D=l.value[(w==null?void 0:w.prop)??w.name])!=null&&D.includes(".obj")||(R=l.value[(w==null?void 0:w.prop)??w.name])!=null&&R.includes(".urdf"))?(u.openBlock(),u.createBlock(Rn,{key:1,class:"calculator-content form-preview",onClickTrigger:H=>f(l.value[(w==null?void 0:w.prop)??w.name]),modelValue:"预览"},null,8,["onClickTrigger"])):u.createCommentVNode("",!0)]}),_:2},[w!=null&&w.isFormColHidden?void 0:{name:"label",fn:u.withCtx(()=>[w!=null&&w.label?(u.openBlock(),u.createElementBlock("div",{key:0,class:"from-item-label",style:u.normalizeStyle({width:n.isRowFlex?"72px":"auto",minWidth:n.isRowFlex?"72px":`calc((100% / ${(w==null?void 0:w.width)??1}) - 8px)`})},[u.createElementVNode("div",Ou,u.toDisplayString(w==null?void 0:w.label),1)],4)):u.createCommentVNode("",!0)]),key:"0"}]),1032,["prop","class","style"]))),128)),((O=t.buttonValue)==null?void 0:O.length)>0&&n.isButtonRow?(u.openBlock(),u.createElementBlock("div",{key:1,class:"form-button",style:u.normalizeStyle({paddingTop:n.isRowFlex?"0":"26px",justifyContent:n.isStartJustify?"start":"end"})},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(t==null?void 0:t.buttonValue,(w,A)=>(u.openBlock(),u.createElementBlock("div",{key:A,class:"form-button-content"},[w?(u.openBlock(),u.createElementBlock("div",{key:0,class:"form-button-item",style:u.normalizeStyle({background:(w==null?void 0:w.background)??"var(--ssComponent-primary-color)"}),onClick:T=>x(w==null?void 0:w.label,o.value)},u.toDisplayString(w==null?void 0:w.label),13,Mu)):u.createCommentVNode("",!0)]))),128))],4)):u.createCommentVNode("",!0)]}),_:1},8,["model","rules"]))]),((C=t.buttonValue)==null?void 0:C.length)>0&&!n.isButtonRow?(u.openBlock(),u.createElementBlock("div",{key:0,class:"form-button",style:u.normalizeStyle({justifyContent:n.isStartJustify?"start":"end"})},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(t==null?void 0:t.buttonValue,(P,O)=>(u.openBlock(),u.createElementBlock("div",{key:O,class:"form-button-content",onClick:w=>x(P==null?void 0:P.label,t.isEnableWrap?s.value:o.value)},[u.createVNode(S,{id:"themeButton"},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(P==null?void 0:P.label),1)]),_:2},1024)],8,Du))),128))],4)):u.createCommentVNode("",!0)],4)}}},Yr=ce._export_sfc(Tu,[["__scopeId","data-v-50d837be"]]),Au={__name:"index",props:{value:String,formRules:{type:Object,default:()=>{}},content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},emits:["clickTrigger","changeTrigger"],setup(n,{emit:e}){const t=n,i=e,s=r=>{i("clickTrigger",r)},o=r=>{i("changeTrigger",r)};return(r,l)=>{var a,c,h,f,d,p,g;return u.openBlock(),u.createBlock(Yr,{rowContents:((a=t==null?void 0:t.content)==null?void 0:a.rowContents)??[],formRules:(c=t==null?void 0:t.content)==null?void 0:c.formRules,buttonValue:((h=t==null?void 0:t.content)==null?void 0:h.buttonValue)??[],isEnableWrap:(f=t==null?void 0:t.content)==null?void 0:f.isEnableWrap,isRowFlex:(d=t==null?void 0:t.content)==null?void 0:d.isRowFlex,isButtonRow:(p=t==null?void 0:t.content)==null?void 0:p.isButtonRow,rowValues:((g=t==null?void 0:t.content)==null?void 0:g.rowValues)??[],onOnButtonClick:s,onChange:o},null,8,["rowContents","formRules","buttonValue","isEnableWrap","isRowFlex","isButtonRow","rowValues"])}}},Kr={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},emits:["change"],setup(n,{emit:e}){const t=n,i=u.ref(t.value),s=e,o=r=>{s("change",r)};return(r,l)=>{const a=u.resolveComponent("el-radio"),c=u.resolveComponent("el-radio-group");return u.openBlock(),u.createBlock(c,{modelValue:i.value,"onUpdate:modelValue":l[0]||(l[0]=h=>i.value=h),style:{height:"100%"},onChange:l[1]||(l[1]=h=>o(h))},{default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(t.content,(h,f)=>(u.openBlock(),u.createBlock(a,{key:f,label:h.value},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(h==null?void 0:h.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])}}},Xr={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0},isWrap:{type:Boolean,default:!1},min:{type:Number,default:1}},emits:["change"],setup(n,{emit:e}){const t=n,i=u.ref(t.value),s=e,o=r=>{s("change",r)};return(r,l)=>{const a=u.resolveComponent("el-checkbox"),c=u.resolveComponent("el-checkbox-group");return u.openBlock(),u.createBlock(c,{modelValue:i.value,"onUpdate:modelValue":l[0]||(l[0]=h=>i.value=h),style:{height:"100%"},min:n.min,onChange:l[1]||(l[1]=h=>o(h))},{default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(n.content,h=>(u.openBlock(),u.createBlock(a,{key:h.label,label:h.label,value:h.label,style:u.normalizeStyle({width:n.isWrap?"90%":"auto"})},null,8,["label","value","style"]))),128))]),_:1},8,["modelValue","min"])}}},Bu={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const e=n;return u.onMounted(()=>{document.querySelectorAll(".el-tab-pane").forEach(i=>{i.style.display="block"})}),(t,i)=>{var s;return u.openBlock(),u.createBlock(Ho,{tabsContents:((s=e==null?void 0:e.content)==null?void 0:s.tabsContents)??[]},u.createSlots({_:2},[u.renderList(t.$slots,(o,r)=>({name:r,fn:u.withCtx(l=>[u.renderSlot(t.$slots,r,u.normalizeProps(u.guardReactiveProps(l||{})))])}))]),1032,["tabsContents"])}}},Pu={class:"extra-button-content"},Eu={__name:"header",props:{buttons:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]}},emits:["buttonClick"],setup(n,{emit:e}){const t=n;u.ref(!1);const i=u.ref([]);u.ref([{label:"取消"},{label:"确认"}]);const s=o=>{var r;i.value=(r=o==null?void 0:o.filter(l=>(l==null?void 0:l.label)!==""&&(l==null?void 0:l.label)!=="操作"))==null?void 0:r.map(l=>({label:(l==null?void 0:l.label)??"",value:"",name:(l==null?void 0:l.prop)??""}))};return u.onMounted(()=>{s(t.columns)}),u.watch(()=>t.columns,()=>{s(t.columns)},{deep:!0,immediate:!0}),(o,r)=>(u.openBlock(),u.createElementBlock("div",Pu,[u.renderSlot(o.$slots,"headerButton",{},void 0,!0)]))}},Vu=ce._export_sfc(Eu,[["__scopeId","data-v-9727dc88"]]),zu={key:0},Lu=u.defineComponent({__name:"recurseCol",props:{column:{type:Object,default:{}}},setup(n){return(e,t)=>{var l,a,c,h,f,d,p,g,m;const i=u.resolveComponent("svg-icon"),s=u.resolveComponent("el-tooltip"),o=u.resolveComponent("RecurseCol",!0),r=u.resolveComponent("el-table-column");return n.column.isHidden?u.createCommentVNode("",!0):(u.openBlock(),u.createBlock(r,{key:0,label:n.column.label,prop:n.column.prop,fixed:((l=n.column)==null?void 0:l.label)==="操作"?"right":(a=n.column)==null?void 0:a.fixed,align:((c=n.column)==null?void 0:c.align)??"center",sortable:((h=n.column)==null?void 0:h.sortable)??!0,"show-overflow-tooltip":((f=n.column)==null?void 0:f.showOverflowTooltip)??!0,width:((d=n.column)==null?void 0:d.label)==="操作"?80:(p=n.column)==null?void 0:p.width,"min-width":(g=n.column)!=null&&g.width?parseInt(n.column.width):void 0,"class-name":(((m=n.column)==null?void 0:m.isNotDrag)??!1)===!0?"is-not-drag":"is-drag"},{header:u.withCtx(()=>[n.column.label!=="操作"?(u.openBlock(),u.createElementBlock("span",zu,u.toDisplayString(n.column.label),1)):(u.openBlock(),u.createBlock(s,{key:1,content:"操作",placement:"left-start",effect:"light"},{default:u.withCtx(()=>[u.createVNode(i,{name:"operate",style:{width:"15px",height:"15px"}})]),_:1}))]),default:u.withCtx(v=>[u.renderSlot(e.$slots,"content",{row:v.row,column:v.column,$index:v.$index}),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(n.column.children,(x,b)=>(u.openBlock(),u.createBlock(o,{key:b,column:x},u.createSlots({_:2},[u.renderList(e.$slots,(k,_)=>({name:_,fn:u.withCtx(y=>[u.renderSlot(e.$slots,_,u.mergeProps({ref_for:!0},y,{slotData:y,row:v.row,item:{child:x}}))])}))]),1032,["column"]))),128))]),_:3},8,["label","prop","fixed","align","sortable","show-overflow-tooltip","width","min-width","class-name"]))}}}),Nu={key:0},Ru=u.defineComponent({__name:"index",props:{column:{type:Object,default:{}}},setup(n){return(e,t)=>{var s,o,r,l,a,c,h,f,d,p;const i=u.resolveComponent("el-table-column");return n.column.isTableColHidden?u.createCommentVNode("",!0):(u.openBlock(),u.createBlock(i,{key:0,label:n.column.label,prop:n.column.prop,fixed:((s=n.column)==null?void 0:s.label)==="操作"?"right":(o=n.column)==null?void 0:o.fixed,align:((r=n.column)==null?void 0:r.align)??"center",sortable:((l=n.column)==null?void 0:l.sortable)??!0,"show-overflow-tooltip":((a=n.column)==null?void 0:a.showOverflowTooltip)??!0,width:((c=n.column)==null?void 0:c.label)==="操作"?80:(h=n.column)==null?void 0:h.width,"min-width":(f=n.column)!=null&&f.width?parseInt(n.column.width):void 0,"class-name":((d=n.column)==null?void 0:d.prop)==="operate"?"action":(((p=n.column)==null?void 0:p.isNotDrag)??!1)===!0?"is-not-drag":"is-drag"},{header:u.withCtx(()=>[n.column.label!=="操作"?(u.openBlock(),u.createElementBlock("span",Nu,u.toDisplayString(n.column.label),1)):u.renderSlot(e.$slots,"operateHeader",{key:1})]),default:u.withCtx(g=>[u.renderSlot(e.$slots,"content",{row:g.row,column:g.column,$index:g.$index}),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(n.column.children,(m,v)=>(u.openBlock(),u.createBlock(Lu,{key:v,column:m},u.createSlots({_:2},[u.renderList(e.$slots,(x,b)=>({name:b,fn:u.withCtx(({row:k,slotData:_,item:y})=>[u.renderSlot(e.$slots,b,u.mergeProps({ref_for:!0},_??k,{item:y??m,slotData:_??k}))])}))]),1032,["column"]))),128))]),_:3},8,["label","prop","fixed","align","sortable","show-overflow-tooltip","width","min-width","class-name"]))}}}),Iu={class:"table-content-show"},Hu=["onClick"],$u=["onClick"],Wu=["onClick"],Fu={key:2,class:"table-content"},Gu={__name:"index",props:{checkedColumns:Array,columns:Array,tableData:Array,currentPage:Number,total:Number,pageSize:Number,extraButton:{type:Array,default:()=>[]},isShowPagination:{type:Boolean,default:!0},isShowEdit:{type:Boolean,default:!0},isMoveColumn:{type:Boolean,default:!0},isShowDelete:{type:Boolean,default:!0}},emits:["dbClickRow","fixRow","deleteRow","doSizeChange","doCurrentChange","buttonClick","contentClick","rowClick"],setup(n,{emit:e}){const t=n,i=u.ref([]),s=u.ref([]),o=u.ref(0),r=u.ref(null),l=u.ref(null),a=e;u.onMounted(()=>{var O;i.value=t==null?void 0:t.columns,s.value=(O=t==null?void 0:t.tableData)==null?void 0:O.map(w=>{var T;let A={};for(let D in w)A[D]=Fo(w[D])&&w[D]===0?(T=w[D])==null?void 0:T.toString():w[D];return A}),t.isMoveColumn&&k(),y()});const c=(O,w,A,T)=>u.computed(()=>{var R,H,N,F,ie,U,Q,Ce,be,Pe;let D=O!=null&&O[w==null?void 0:w.prop]?((H=(R=O==null?void 0:O[w==null?void 0:w.prop])==null?void 0:R[0])==null?void 0:H.contents)??(O==null?void 0:O[w==null?void 0:w.prop]):((F=(N=O==null?void 0:O[A==null?void 0:A.prop])==null?void 0:N[0])==null?void 0:F.contents)??(O==null?void 0:O[A==null?void 0:A.prop])??((U=(ie=T==null?void 0:T[A==null?void 0:A.prop])==null?void 0:ie[0])==null?void 0:U.contents)??(T==null?void 0:T[A==null?void 0:A.prop])??((be=(Ce=O==null?void 0:O[(Q=A==null?void 0:A.child)==null?void 0:Q.prop])==null?void 0:Ce[0])==null?void 0:be.contents)??(O==null?void 0:O[(Pe=A==null?void 0:A.child)==null?void 0:Pe.prop]);return Array.isArray(D)&&!(D!=null&&D.every(Ye=>typeof Ye=="string"||typeof Ye=="number"))?"查看":D}),h=O=>{a("rowClick",{row:O,type:"table"})},f=O=>{a("buttonClick",O)};u.watch(()=>t==null?void 0:t.tableData,()=>{var O;s.value=(O=t==null?void 0:t.tableData)==null?void 0:O.map(w=>{var T;let A={};for(let D in w)A[D]=Fo(w[D])&&w[D]===0?(T=w[D])==null?void 0:T.toString():w[D];return A})},{deep:!0});const d=O=>Ms(O),p=O=>{a("doCurrentChange",O)},g=(O,w)=>{a("dbClickRow",O)},m=O=>{a("doSizeChange",O)},v=O=>{a("fixRow",O)},x=O=>{a("deleteRow",O)},b=(O,w,A,T)=>{a("contentClick",O,w,A,T)},k=()=>{var w;const O=(w=r.value)==null?void 0:w.$el.querySelector(".el-table__header-wrapper tr");!O||!t.isMoveColumn||Nt.Sortable.create(O,{animation:180,delay:0,handle:".is-drag .cell",onMove:A=>!A.related.classList.contains("is-not-drag"),onEnd:A=>{o.value++;const T=A.oldIndex,D=A.newIndex,R=i.value.splice(T,1)[0];i.value.splice(D,0,R),t.isMoveColumn&&u.nextTick(()=>{k(),y()})}})};u.watch(()=>t.isMoveColumn,()=>{t.isMoveColumn&&u.nextTick(()=>{k(),y()})});const _=({column:O})=>O.label&&O.label.length>8?"long-header":"",y=()=>{var w;const O=(w=r.value)==null?void 0:w.$el.querySelector(".el-table__body-wrapper tbody");O&&new Nt.Sortable(O,{animation:150,handle:".el-table__row",ghostClass:"sortable-ghost",onEnd:({newIndex:A,oldIndex:T})=>{const D=[...s.value],[R]=D.splice(T,1);D.splice(A,0,R),s.value=D,u.nextTick(()=>{y()})}})},S=O=>{O.preventDefault();try{const A=(O.clipboardData||(window==null?void 0:window.clipboardData)).getData("text/plain");if(!A)return;const T=C(A);if(!T.length)return;const{rowIndex:D,columnIndex:R}=l.value||{rowIndex:0,columnIndex:0},H=[];if(T==null||T.forEach(N=>{H.push(N.length+R)}),(H==null?void 0:H.filter(N=>{var F;return N>Object.keys((F=s.value)==null?void 0:F[0]).length}).length)>0){ee.ElMessage({type:"warning",message:"所剩列数不够"});return}for(let N=0;N<T.length;N++){const F=T[N],ie=s.value[D+N],U=ee.cloneDeep(i.value).map(Q=>Q.prop);for(let Q=0;Q<F.length&&R+Q<U.length;Q++){const Ce=U[R+Q];ie[Ce]=F[Q]||""}}}catch(w){console.error("粘贴失败:",w)}},C=O=>O.trim().split(/\r\n|\n|\r/).map(T=>T.trim()?T.split(" ").map(D=>D.replace(/^"(.*)"$/,"$1")):[""]),P=({row:O,rowIndex:w})=>w%2===0?"default-row":"special-row";return(O,w)=>{const A=u.resolveComponent("el-table"),T=u.resolveComponent("el-pagination");return u.openBlock(),u.createElementBlock("div",Iu,[u.createVNode(Vu,{buttons:t==null?void 0:t.extraButton,onButtonClick:f,columns:i.value},{headerButton:u.withCtx(()=>[u.renderSlot(O.$slots,"headerButton",{buttons:t==null?void 0:t.extraButton,columns:i.value},void 0,!0)]),_:3},8,["buttons","columns"]),(u.openBlock(),u.createBlock(A,{border:!1,class:"table-wrap",data:s.value,stripe:"",style:{width:"100%"},"max-height":"600",ref_key:"tableRef",ref:r,"empty-text":"暂无数据",onSelectionChange:O.handleTableSelectChange,onCellClick:h,onRowDblclick:g,key:o.value,onPaste:S,"row-class-name":P,"header-cell-class-name":_},{default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(i.value,(D,R)=>{var H;return u.openBlock(),u.createElementBlock(u.Fragment,null,[(H=n.checkedColumns)!=null&&H.includes(D==null?void 0:D.label)?(u.openBlock(),u.createBlock(Ru,{key:0,column:D},{operateHeader:u.withCtx(()=>[u.renderSlot(O.$slots,"operateCol",{},void 0,!0)]),content:u.withCtx(({row:N,item:F,slotData:ie})=>[((D==null?void 0:D.type)??"text")==="text"&&((N==null?void 0:N.tableEditType)??"text")==="text"?(u.openBlock(),u.createElementBlock("span",{key:0,class:"table-content",style:u.normalizeStyle({cursor:N!=null&&N.children?"pointer":"default"}),onClick:U=>{var Q;return b(N!=null&&N[D==null?void 0:D.prop]?N==null?void 0:N[D==null?void 0:D.prop]:(N==null?void 0:N[F==null?void 0:F.prop])??(ie==null?void 0:ie[F==null?void 0:F.prop])??(N==null?void 0:N[(Q=F==null?void 0:F.child)==null?void 0:Q.prop]),F==null?void 0:F.prop,N??ie,{data:c(N,D,F,ie).value})}},u.toDisplayString(c(N,D,F,ie)),13,Hu)):u.createCommentVNode("",!0),((D==null?void 0:D.type)??"text")==="operate"?(u.openBlock(),u.createElementBlock("span",{key:1,class:"table-operate",style:u.normalizeStyle({justifyContent:n.isShowEdit&&n.isShowDelete?"space-between":"center"})},[u.renderSlot(O.$slots,"actions",{item:N},void 0,!0),n.isShowEdit?(u.openBlock(),u.createElementBlock("span",{key:0,onClick:U=>v(N),class:"blue-table-operate table-operate-content"},"编辑",8,$u)):u.createCommentVNode("",!0),n.isShowDelete?(u.openBlock(),u.createElementBlock("span",{key:1,onClick:U=>x(N),class:"red-table-operate table-operate-content"},"删除",8,Wu)):u.createCommentVNode("",!0)],4)):u.createCommentVNode("",!0),((D==null?void 0:D.type)??"text")==="edit"&&((N==null?void 0:N.tableEditType)??"text")!=="edit"||((D==null?void 0:D.type)??"text")==="text"&&((N==null?void 0:N.tableEditType)??"text")==="edit"?(u.openBlock(),u.createElementBlock("span",Fu,[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(d((D==null?void 0:D.columnType)??"Input")),{modelValue:N[D.prop],"onUpdate:modelValue":U=>N[D.prop]=U,style:{height:"100%"},content:(D==null?void 0:D.contents)??[]},null,8,["modelValue","onUpdate:modelValue","content"]))])):u.createCommentVNode("",!0)]),_:2},1032,["column"])):u.createCommentVNode("",!0)],64)}),256))]),_:3},8,["data","onSelectionChange"])),(t==null?void 0:t.isShowPagination)??!1?(u.openBlock(),u.createBlock(T,{key:0,onSizeChange:m,onCurrentChange:p,"current-page":(t==null?void 0:t.currentPage)??1,"page-sizes":[5,10,20,50,100],"page-size":(t==null?void 0:t.pageSize)??10,layout:"total, sizes, prev, pager, next, jumper",total:(t==null?void 0:t.total)??0},null,8,["current-page","page-size","total"])):u.createCommentVNode("",!0)])}}},Qr=ce._export_sfc(Gu,[["__scopeId","data-v-214d6a18"]]),ju={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},emits:["dbChange"],setup(n,{emit:e}){const t=n,i=u.ref([]);u.watch(()=>{var r;return(r=t==null?void 0:t.content)==null?void 0:r.tableData},()=>{var r,l,a,c;((l=(r=t==null?void 0:t.content)==null?void 0:r.tableData)==null?void 0:l.length)===0||!((a=t==null?void 0:t.content)!=null&&a.tableData)||(i.value=ee.cloneDeep((c=t==null?void 0:t.content)==null?void 0:c.tableData))},{deep:!0,immediate:!0});const s=e,o=r=>{var h,f,d,p;if(((h=t==null?void 0:t.content)==null?void 0:h.dbType)!=="edit"||!i.value||((f=i.value)==null?void 0:f.length)===0)return;let l=i.value,a=[];((d=l==null?void 0:l.filter(g=>(g==null?void 0:g.tableEditType)==="edit"))==null?void 0:d.length)!==(((p=t==null?void 0:t.content)==null?void 0:p.editNumber)??1)&&(l=l==null?void 0:l.map(g=>((g==null?void 0:g.id)===(r==null?void 0:r.id)&&(g.tableEditType="edit",a.push(g)),g)),s("dbChange",{content:l,item:a}))};return(r,l)=>{var a,c,h,f,d,p,g;return u.openBlock(),u.createElementBlock(u.Fragment,null,[u.renderSlot(r.$slots,`${(a=t==null?void 0:t.content)==null?void 0:a.value}_tableHeader`),(u.openBlock(),u.createBlock(Qr,{columns:((c=t==null?void 0:t.content)==null?void 0:c.columns)??[],tableData:i.value??[],currentPage:(h=t==null?void 0:t.content)==null?void 0:h.currentPage,total:(f=t==null?void 0:t.content)==null?void 0:f.total,pageSize:(d=t==null?void 0:t.content)==null?void 0:d.pageSize,isShowPagination:(p=t==null?void 0:t.content)==null?void 0:p.isShowPagination,isShowEdit:!1,isMoveColumn:(g=t==null?void 0:t.content)==null?void 0:g.isMoveColumn,isShowDelete:!1,onDoClickRow:o,key:i.value??[]},{actions:u.withCtx(({item:m})=>{var v;return[u.renderSlot(r.$slots,`${(v=t==null?void 0:t.content)==null?void 0:v.value}_action`,{item:m})]}),_:3},8,["columns","tableData","currentPage","total","pageSize","isShowPagination","isMoveColumn"]))],64)}}},qu=async n=>{var i,s,o;const e=await ee.getInsofDataApi({key:{pageKey:n==null?void 0:n.path,tableId:n==null?void 0:n.id,type:"data",systemKey:sessionStorage.getItem("systemKey")}});let t=[];return((i=e==null?void 0:e.data)==null?void 0:i.type)==="success"&&(t=(o=(s=e==null?void 0:e.data)==null?void 0:s.result)==null?void 0:o.map(r=>{var l;return(l=r==null?void 0:r.value)==null?void 0:l.tableData})),t=t==null?void 0:t.map(r=>({label:r==null?void 0:r[n==null?void 0:n.columnType],value:r==null?void 0:r[n==null?void 0:n.columnType]})),t},Uu=async n=>{var s,o,r,l,a;let e="",t=[];(s=n==null?void 0:n.menuSelect)==null||s.forEach(c=>{e=e===""?e+c:e+"/"+c});let i="";return(l=(r=(o=await Nt.menuToParent(n==null?void 0:n.menuSelect))==null?void 0:o.data)==null?void 0:r.result)==null||l.forEach(c=>{var h,f,d,p;((f=(h=c==null?void 0:c.value)==null?void 0:h.pageData)==null?void 0:f.name)===(((p=(d=n==null?void 0:n.groupSelect)==null?void 0:d[0])==null?void 0:p.replaceAll("'",""))??"")&&(i=c==null?void 0:c.id)}),i!==""&&(t=qu({path:e,id:i,columnType:(a=n==null?void 0:n.groupSelect)==null?void 0:a[1]})),t},Yu={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0},optionUrl:{type:Object,default:()=>{}}},emits:["blurChange"],setup(n,{emit:e}){const t=n,i=e,s=u.ref(t.value),o=u.ref();u.onMounted(()=>{o.value=t==null?void 0:t.content});const r=()=>{i("blurChange")};return u.watch(()=>t.optionUrl,async()=>{var l,a,c,h;((a=(l=t.optionUrl)==null?void 0:l.menuSelect)==null?void 0:a.length)>0&&(o.value=await Uu(t.optionUrl),s.value=(h=(c=o.value)==null?void 0:c[0])==null?void 0:h.value)},{immediate:!0,deep:!0}),(l,a)=>{const c=u.resolveComponent("el-option"),h=u.resolveComponent("el-select");return u.openBlock(),u.createBlock(h,{modelValue:s.value,"onUpdate:modelValue":a[0]||(a[0]=f=>s.value=f),clearable:"",placeholder:"请选择下拉内容...",style:{width:"100%"},onChange:r},{default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(o.value,f=>(u.openBlock(),u.createBlock(c,{key:f.value,label:f.label,value:f.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])}}},Ku=u.defineComponent({__name:"index",props:{value:String,config:Object,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},emits:["changeVisible"],setup(n,{emit:e}){const t=n,i=u.ref(t.value),s=e,o=u.ref({checkStrictly:!0}),r=l=>{s("changeVisible",l)};return(l,a)=>{const c=u.resolveComponent("el-cascader");return u.openBlock(),u.createBlock(c,{modelValue:i.value,"onUpdate:modelValue":a[0]||(a[0]=h=>i.value=h),clearable:"",props:o.value,options:t==null?void 0:t.content,style:{width:"100%"},onVisibleChange:r},null,8,["modelValue","props","options"])}}}),Xu={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const e=n,t=u.ref(e.value);return(i,s)=>{const o=u.resolveComponent("el-option"),r=u.resolveComponent("el-select");return u.openBlock(),u.createBlock(r,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=l=>t.value=l),multiple:"",clearable:"",placeholder:"请选择下拉内容...",style:{width:"100%"}},{default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(e==null?void 0:e.content,l=>(u.openBlock(),u.createBlock(o,{key:l.value,label:l.label,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])}}},Qu=u.defineComponent({__name:"menuItem",props:{menuList:{type:Array,default:()=>[]}},emits:["clickMenu","openMenu","closeMenu"],setup(n,{emit:e}){const t=e,i=r=>{t("clickMenu",r)},s=r=>{t("openMenu",r)},o=r=>{t("closeMenu",r)};return u.onMounted(()=>{}),(r,l)=>{const a=u.resolveComponent("MenuItem",!0),c=u.resolveComponent("el-sub-menu"),h=u.resolveComponent("el-menu-item");return u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(n.menuList,f=>(u.openBlock(),u.createElementBlock(u.Fragment,null,[f.show&&f.children&&f.children.length>0?(u.openBlock(),u.createBlock(c,{index:f.path,key:f.path},{title:u.withCtx(()=>[u.renderSlot(r.$slots,"title",{menu:f})]),default:u.withCtx(()=>[u.createVNode(a,{menuList:f.children,onClickMenu:i,onOpenMenu:s,onCloseMenu:o},u.createSlots({_:2},[u.renderList(r.$slots,(d,p)=>({name:p,fn:u.withCtx(g=>[u.renderSlot(r.$slots,p,u.mergeProps({ref_for:!0},g))])}))]),1032,["menuList"])]),_:2},1032,["index"])):f.show?(u.openBlock(),u.createBlock(h,{index:f.path,key:f.path,onClick:d=>i(f)},{title:u.withCtx(()=>[u.renderSlot(r.$slots,"title",{menu:f})]),_:2},1032,["index","onClick"])):u.createCommentVNode("",!0)],64))),256)}}}),Ju=u.defineComponent({__name:"index",props:{menuList:{type:Array,default:()=>[]},mode:{type:String,default:"vertical"}},emits:["clickMenu","openMenu","closeMenu"],setup(n,{emit:e}){const t=ee.useMenuState(),{activeMenuPath:i,activeMenuOpenPaths:s,activeTopMenuPath:o}=ee.storeToRefs(t),r=n,l=e,a=p=>{l("clickMenu",p)},c=p=>{l("openMenu",p)},h=p=>{l("closeMenu",p)},f=u.computed(()=>(r==null?void 0:r.mode)==="vertical"?i.value:o.value),d=u.computed(()=>s.value);return(p,g)=>{const m=u.resolveComponent("el-sub-menu"),v=u.resolveComponent("el-menu-item"),x=u.resolveComponent("el-menu");return u.openBlock(),u.createBlock(x,{class:"menu-wrap",mode:n.mode,"default-active":f.value,"default-openeds":d.value,"unique-opened":!0,"collapse-transition":!1,"popper-offset":12,ellipsis:!0,onOpen:c,onClose:h},{default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(n.menuList,b=>(u.openBlock(),u.createElementBlock(u.Fragment,null,[b.show&&b.children&&b.children.length>0?(u.openBlock(),u.createBlock(m,{index:b.path,key:b.path,style:u.normalizeStyle(b.style)},{title:u.withCtx(()=>[u.renderSlot(p.$slots,"title",{menu:b},void 0,!0)]),default:u.withCtx(()=>[u.createVNode(Qu,{menuList:b.children,onClickMenu:a},u.createSlots({_:2},[u.renderList(p.$slots,(k,_)=>({name:_,fn:u.withCtx(y=>[u.renderSlot(p.$slots,_,u.mergeProps({ref_for:!0},y),void 0,!0)])}))]),1032,["menuList"])]),_:2},1032,["index","style"])):b.show?(u.openBlock(),u.createBlock(v,{index:b.path,key:b.path,style:u.normalizeStyle(b.style),onClick:k=>a(b)},{title:u.withCtx(()=>[u.renderSlot(p.$slots,"title",{menu:b},void 0,!0)]),_:2},1032,["index","style","onClick"])):u.createCommentVNode("",!0)],64))),256))]),_:3},8,["mode","default-active","default-openeds"])}}}),Jr=ce._export_sfc(Ju,[["__scopeId","data-v-6a992c79"]]),Zu=Object.freeze(Object.defineProperty({__proto__:null,default:Jr},Symbol.toStringTag,{value:"Module"})),ef={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const e=n,t=u.ref(e.value);return(i,s)=>{const o=u.resolveComponent("el-date-picker");return u.openBlock(),u.createBlock(o,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=r=>t.value=r),type:"date",placeholder:"请选择日期",format:"YYYY-MM-DD",style:{width:"100%"}},null,8,["modelValue"])}}},tf={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const e=n,t=u.ref(e.value);return(i,s)=>{const o=u.resolveComponent("el-date-picker");return u.openBlock(),u.createBlock(o,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=r=>t.value=r),type:"datetime",placeholder:"请选择时间",format:"YYYY-MM-DD HH:mm:ss",style:{width:"100%"}},null,8,["modelValue"])}}},nf={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const e=n,t=u.ref(e.value);return(i,s)=>{const o=u.resolveComponent("el-input");return u.openBlock(),u.createBlock(o,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=r=>t.value=r),type:"textarea",placeholder:"请输入内容...",disabled:!(e!=null&&e.isEdit)},null,8,["modelValue","disabled"])}}},sf=ce._export_sfc(nf,[["__scopeId","data-v-e31bf677"]]),of={class:"dialog-title"},rf={__name:"index",props:{title:{type:String,default:""},dialogWidth:{type:Number,default:600},visible:{type:Boolean,default:!1},fullScreen:{type:Boolean,default:!1},dialogHeight:{type:Number,default:600},showClose:{type:Boolean,default:!0}},emits:["beforeDestroy"],setup(n,{emit:e}){const t=n,i=e,s=u.ref(!1),o=()=>{i("beforeDestroy")};return u.watch(()=>t==null?void 0:t.visible,()=>{s.value=t==null?void 0:t.visible},{deep:!0,immediate:!0}),(r,l)=>{const a=u.resolveComponent("el-dialog");return u.openBlock(),u.createBlock(a,{modelValue:s.value,"onUpdate:modelValue":l[0]||(l[0]=c=>s.value=c),width:t==null?void 0:t.dialogWidth,"before-close":o,draggable:"",style:u.normalizeStyle({height:t==null?void 0:t.dialogHeight}),fullscreen:t==null?void 0:t.fullScreen,"destroy-on-close":!0,"show-close":t==null?void 0:t.showClose},{default:u.withCtx(()=>[u.renderSlot(r.$slots,"default",{},void 0,!0)]),header:u.withCtx(()=>[u.createElementVNode("div",of,u.toDisplayString(t==null?void 0:t.title),1),u.renderSlot(r.$slots,"header",{},void 0,!0)]),footer:u.withCtx(()=>[u.renderSlot(r.$slots,"footer",{},void 0,!0)]),_:3},8,["modelValue","width","style","fullscreen","show-close"])}}},Bi=ce._export_sfc(rf,[["__scopeId","data-v-048a6610"]]);function lf(n){const e=sessionStorage.getItem("loginToken")??"123456";return ee.service({url:"/api/sysFile/uploadFile",method:"post",data:n,headers:{Authorization:e,"Content-Type":"multipart/form-data"}})}function af(n){const e=sessionStorage.getItem("loginToken")??"123456";return ee.service({url:"/api/sysFile/uploadAvatar",method:"post",data:n,headers:{Authorization:e,"Content-Type":"multipart/form-data"}})}function Zr(n){const e=sessionStorage.getItem("loginToken")??"123456";return ee.service({url:"/api/sysFile/downloadFile",method:"post",data:n,headers:{Authorization:e,Accept:"application/octet-stream"},responseType:"blob"})}const cf={class:"txt-renderer"},hf={class:"txt-wrapper"},uf={__name:"index",props:{fileName:String,blobUrl:String},setup(n){const e=n,t=u.computed(()=>e.blobUrl),i=u.ref("");return u.watchEffect(async()=>{t.value;const o=await(await fetch(t.value)).blob(),r=new FileReader;r.onload=function(l){i.value=l.target.result},r.readAsText(o)}),(s,o)=>(u.openBlock(),u.createElementBlock("div",cf,[u.createElementVNode("pre",hf,u.toDisplayString(i.value),1)]))}},ff=ce._export_sfc(uf,[["__scopeId","data-v-fde812b6"]]),df={class:"docx-renderer"},pf={__name:"index",props:{fileName:String,blobUrl:String},setup(n){const e=n,t=u.computed(()=>e.blobUrl),i=u.ref(null);return u.watchEffect(async()=>{t.value;const o=await(await fetch(t.value)).blob();await Nt.renderAsync(o,i.value,null,{})}),(s,o)=>(u.openBlock(),u.createElementBlock("div",df,[u.createElementVNode("div",{ref_key:"docxPreview",ref:i,class:"render-docx-wrappper"},null,512)]))}},gf=ce._export_sfc(pf,[["__scopeId","data-v-78135a17"]]),mf={class:"xlsx-renderer"},vf={__name:"index",props:{fileName:String,blobUrl:String},setup(n){const e=n,t=u.computed(()=>e.blobUrl),i=u.ref(null);return u.watchEffect(async()=>{t.value;const o=await(await fetch(t.value)).blob();i.value=Nt.Hg.init(document.getElementById("excel")),i.value.preview(o).then(()=>{console.log("预览完成")}).catch(r=>{console.log("预览失败",r)})}),(s,o)=>(u.openBlock(),u.createElementBlock("div",mf,o[0]||(o[0]=[u.createElementVNode("div",{id:"excel"},null,-1)])))}},wf=ce._export_sfc(vf,[["__scopeId","data-v-08dbfb73"]]),xf={class:"pdf-renderer"},bf=["src"],yf={__name:"index",props:{fileName:String,blobUrl:String},setup(n){const e=n,t=u.computed(()=>e.blobUrl),i=u.ref("");return u.watchEffect(async()=>{t.value;const o=await(await fetch(t.value)).blob(),r=new Blob([o],{type:"application/pdf"}),l=URL.createObjectURL(r);i.value=l}),u.onUnmounted(()=>{i.value&&URL.revokeObjectURL(i.value)}),(s,o)=>(u.openBlock(),u.createElementBlock("div",xf,[u.createElementVNode("iframe",{src:i.value,class:"pdf-iframe"},null,8,bf)]))}},kf=ce._export_sfc(yf,[["__scopeId","data-v-b4ab8c04"]]);let s0=[],el=[];(()=>{let n="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=0,t=0;e<n.length;e++)(e%2?el:s0).push(t=t+n[e])})();function Sf(n){if(n<768)return!1;for(let e=0,t=s0.length;;){let i=e+t>>1;if(n<s0[i])t=i;else if(n>=el[i])e=i+1;else return!0;if(e==t)return!1}}function Go(n){return n>=127462&&n<=127487}const jo=8205;function Cf(n,e,t=!0,i=!0){return(t?tl:_f)(n,e,i)}function tl(n,e,t){if(e==n.length)return e;e&&il(n.charCodeAt(e))&&nl(n.charCodeAt(e-1))&&e--;let i=Ds(n,e);for(e+=qo(i);e<n.length;){let s=Ds(n,e);if(i==jo||s==jo||t&&Sf(s))e+=qo(s),i=s;else if(Go(s)){let o=0,r=e-2;for(;r>=0&&Go(Ds(n,r));)o++,r-=2;if(o%2==0)break;e+=2}else break}return e}function _f(n,e,t){for(;e>0;){let i=tl(n,e-2,t);if(i<e)return i;e--}return 0}function Ds(n,e){let t=n.charCodeAt(e);if(!nl(t)||e+1==n.length)return t;let i=n.charCodeAt(e+1);return il(i)?(t-55296<<10)+(i-56320)+65536:t}function il(n){return n>=56320&&n<57344}function nl(n){return n>=55296&&n<56320}function qo(n){return n<65536?1:2}class q{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,i){[e,t]=si(this,e,t);let s=[];return this.decompose(0,e,s,2),i.length&&i.decompose(0,i.length,s,3),this.decompose(t,this.length,s,1),Ze.from(s,this.length-(t-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=si(this,e,t);let i=[];return this.decompose(e,t,i,0),Ze.from(i,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),i=this.length-this.scanIdentical(e,-1),s=new Ci(this),o=new Ci(e);for(let r=t,l=t;;){if(s.next(r),o.next(r),r=0,s.lineBreak!=o.lineBreak||s.done!=o.done||s.value!=o.value)return!1;if(l+=s.value.length,s.done||l>=i)return!0}}iter(e=1){return new Ci(this,e)}iterRange(e,t=this.length){return new sl(this,e,t)}iterLines(e,t){let i;if(e==null)i=this.iter();else{t==null&&(t=this.lines+1);let s=this.line(e).from;i=this.iterRange(s,Math.max(s,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new ol(i)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?q.empty:e.length<=32?new ne(e):Ze.from(ne.split(e,[]))}}class ne extends q{constructor(e,t=Of(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,i,s){for(let o=0;;o++){let r=this.text[o],l=s+r.length;if((t?i:l)>=e)return new Mf(s,l,i,r);s=l+1,i++}}decompose(e,t,i,s){let o=e<=0&&t>=this.length?this:new ne(Uo(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(s&1){let r=i.pop(),l=On(o.text,r.text.slice(),0,o.length);if(l.length<=32)i.push(new ne(l,r.length+o.length));else{let a=l.length>>1;i.push(new ne(l.slice(0,a)),new ne(l.slice(a)))}}else i.push(o)}replace(e,t,i){if(!(i instanceof ne))return super.replace(e,t,i);[e,t]=si(this,e,t);let s=On(this.text,On(i.text,Uo(this.text,0,e)),t),o=this.length+i.length-(t-e);return s.length<=32?new ne(s,o):Ze.from(ne.split(s,[]),o)}sliceString(e,t=this.length,i=`
|
|
1
|
+
"use strict";const u=require("vue"),Wo=require("./index-BpPyaNFa.cjs"),Rt=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Dz4Fg0J1.cjs"),ce=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ee=require("./menu-1olc0mrV.cjs"),eh=require("./index.vue_vue_type_script_setup_true_lang-CeNJa0E4.cjs");var th="[object Number]";function Fo(n){return typeof n=="number"||ee.isObjectLike(n)&&ee.baseGetTag(n)==th}const jr={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0},activeText:{type:String,default:"是"},inactiveText:{type:String,default:"否"}},setup(n){const e=n,t=u.ref(e.value);return(i,s)=>{const o=u.resolveComponent("el-switch");return u.openBlock(),u.createBlock(o,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=r=>t.value=r),"active-color":"#13ce66","inactive-color":"#ff4949","active-text":e==null?void 0:e.activeText,"inactive-text":e==null?void 0:e.inactiveText},null,8,["modelValue","active-text","inactive-text"])}}},qr={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const e=n,t=u.ref(e.value);return(i,s)=>{const o=u.resolveComponent("el-input");return u.openBlock(),u.createBlock(o,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=r=>t.value=r),disabled:!(e!=null&&e.isEdit),clearable:""},null,8,["modelValue","disabled"])}}},ih="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1751963315312'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4705'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M363.485867%20865.117867h305.5616c21.6576%200%2039.2192-17.194667%2039.2192-38.4s-17.5616-38.4-39.2192-38.4H363.485867c-21.6576%200-39.2192%2017.194667-39.2192%2038.4s17.5616%2038.4%2039.2192%2038.4z'%20fill='%23A6ADB4'%20p-id='4706'%3e%3c/path%3e%3cpath%20d='M945.288533%20699.835733a40.448%2040.448%200%200%200-43.195733%2043.1872v147.037867a46.865067%2046.865067%200%200%201-45.960533%2048.708267H166.766933a46.882133%2046.882133%200%200%201-45.038933-48.708267v-147.029333a40.439467%2040.439467%200%201%200-80.887467%200v147.029333a125.883733%20125.883733%200%200%200%20125.9264%20128.657067h693.0432c70.203733-1.006933%20126.4384-58.461867%20125.9264-128.657067v-147.029333a40.430933%2040.430933%200%200%200-40.448-43.195734zM40.840533%20127.735467v147.959466a39.517867%2039.517867%200%200%200%2079.044267%200V127.735467a45.943467%2045.943467%200%200%201%2046.882133-47.786667h693.0432a46.882133%2046.882133%200%200%201%2045.960534%2047.786667v147.959466a39.509333%2039.509333%200%200%200%2039.517866%2039.509334%2040.448%2040.448%200%200%200%2040.448-39.509334V127.735467C986.248533%2058.052267%20930.423467%201.024%20860.7232%200H166.775467A125.934933%20125.934933%200%200%200%2040.840533%20127.744z%20m168.4992%20427.972266H326.229333L357.316267%20640H418.133333L295.150933%20315.733333h-52.701866L119.466667%20640h60.817066l29.056-84.292267zM269.124267%20392.533333L307.2%20503.466667h-76.8l38.724267-110.933334z%20m231.552%20131.959467h32.631466a123.246933%20123.246933%200%200%200%2088.192-28.535467c23.389867-19.959467%2036.394667-49.134933%2035.413334-79.488%201.6384-28.245333-9.838933-55.722667-31.249067-74.743466a127.573333%20127.573333%200%200%200-84.0192-25.813334H443.733333V640h56.942934V524.4928zM503.466667%20366.933333h32.136533c42.180267%200%2061.602133%2017.493333%2061.602133%2053.162667%201.092267%2016.0256-4.8128%2031.701333-16.068266%2042.666667a71.364267%2071.364267%200%200%201-51.5584%2014.677333H503.466667V366.933333z%20m286.293333-51.0976H691.2V640h57.3184V524.4672h32.853333c31.837867%201.928533%2063.189333-8.311467%2087.381334-28.544%2023.543467-19.959467%2036.625067-49.152%2035.643733-79.505067%201.536-28.100267-9.710933-55.441067-30.754133-74.752a131.84%20131.84%200%200%200-83.882667-25.8304z%20m39.4752%20147.131734a73.813333%2073.813333%200%200%201-49.527467%2014.72H750.933333V366.933333h32.119467c42.1632%200%2061.576533%2017.527467%2061.576533%2053.2736%201.262933%2015.957333-4.394667%2031.650133-15.394133%2042.752z'%20fill='%23A6ADB4'%20p-id='4707'%3e%3c/path%3e%3c/svg%3e",nh=Object.freeze(Object.defineProperty({__proto__:null,default:ih},Symbol.toStringTag,{value:"Module"})),sh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750407294483'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='13930'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M925.866667%20797.866667c-12.8-25.6-34.133333-46.933333-64-64-29.866667-21.333333-68.266667-34.133333-119.466667-42.666667-4.266667%200-29.866667-4.266667-59.733333-12.8-21.333333-4.266667-34.133333-8.533333-38.4-12.8v-17.066667c4.266667-51.2%2029.866667-76.8%2055.466666-106.666666%208.533333-8.533333%2017.066667-21.333333%2025.6-29.866667%2029.866667-42.666667%2034.133333-89.6%2034.133334-98.133333%200-8.533333%200-17.066667-4.266667-21.333334-4.266667-8.533333-8.533333-12.8-12.8-21.333333%200-12.8%204.266667-21.333333%204.266667-29.866667%200-21.333333%204.266667-55.466667-4.266667-89.6%200-8.533333-4.266667-12.8-4.266667-21.333333-8.533333-25.6-17.066667-46.933333-34.133333-68.266667-4.266667-12.8-64-72.533333-234.666667-85.333333H401.066667c-4.266667%200-17.066667%200-25.6%204.266667-21.333333%204.266667-38.4%2021.333333-42.666667%2042.666666v21.333334c-8.533333%208.533333-55.466667%2051.2-55.466667%20102.4-4.266667%2034.133333-4.266667%2085.333333%200%20123.733333-8.533333%208.533333-17.066667%2021.333333-12.8%2042.666667%200%2012.8%204.266667%2055.466667%2034.133334%2098.133333%208.533333%208.533333%2017.066667%2017.066667%2025.6%2029.866667%2025.6%2029.866667%2051.2%2055.466667%2055.466666%20106.666666v17.066667c-4.266667%204.266667-17.066667%208.533333-38.4%2012.8-29.866667%208.533333-59.733333%2012.8-64%2012.8-46.933333%208.533333-85.333333%2021.333333-115.2%2042.666667-25.6%2017.066667-46.933333%2038.4-64%2064-25.6%2038.4-25.6%2076.8-25.6%2085.333333v21.333333c0%2025.6%2021.333333%2046.933333%2046.933334%2046.933334H896c25.6%200%2046.933333-21.333333%2046.933333-46.933334v-17.066666c8.533333-12.8%208.533333-51.2-17.066666-89.6z%20m-546.133334-128c0%204.266667%200%204.266667%200%200v4.266666c-4.266667%200-4.266667%200%200-4.266666z%20m503.466667%20213.333333l-742.4%204.266667v-4.266667s0-25.6%2012.8-51.2c8.533333-17.066667%2025.6-29.866667%2042.666667-42.666667%2025.6-17.066667%2055.466667-25.6%2089.6-34.133333%204.266667%200%2034.133333-4.266667%2068.266666-12.8%2051.2-12.8%2076.8-29.866667%2085.333334-46.933333%200-4.266667%200-4.266667%204.266666-8.533334v-42.666666c-8.533333-72.533333-42.666667-115.2-72.533333-145.066667-8.533333-8.533333-12.8-17.066667-21.333333-21.333333-21.333333-29.866667-21.333333-59.733333-21.333334-64l4.266667-4.266667%208.533333-8.533333c4.266667-17.066667%200-25.6%200-29.866667-4.266667-34.133333-4.266667-81.066667%200-119.466667%200-29.866667%2029.866667-55.466667%2029.866667-55.466666%208.533333-4.266667%2017.066667-12.8%2021.333333-21.333334%200-4.266667%204.266667-4.266667%204.266667-8.533333v-25.6H465.066667c140.8%208.533333%20192%2059.733333%20192%2059.733333%208.533333%2012.8%2017.066667%2025.6%2021.333333%2042.666667%204.266667%204.266667%204.266667%208.533333%204.266667%2012.8%204.266667%2029.866667%204.266667%2055.466667%204.266666%2076.8%200%2012.8%200%2021.333333-4.266666%2038.4%200%2012.8%200%2025.6%208.533333%2029.866667l4.266667%204.266666%204.266666%204.266667s0%2034.133333-21.333333%2064c-4.266667%208.533333-12.8%2012.8-21.333333%2021.333333-29.866667%2029.866667-64%2072.533333-72.533334%20145.066667v42.666667c0%204.266667%200%204.266667%204.266667%208.533333%208.533333%2021.333333%2034.133333%2034.133333%2085.333333%2046.933333%2034.133333%208.533333%2064%2012.8%2068.266667%2012.8%2038.4%208.533333%2068.266667%2017.066667%2093.866667%2034.133334%2017.066667%2012.8%2034.133333%2025.6%2042.666666%2042.666666%208.533333%2025.6%208.533333%2051.2%204.266667%2055.466667z'%20p-id='13931'%3e%3c/path%3e%3c/svg%3e",oh=Object.freeze(Object.defineProperty({__proto__:null,default:sh},Symbol.toStringTag,{value:"Module"})),rh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750642267995'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='15790'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M926.3%20337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6%2076.2%20339.3%2099.6c-53.3%2022.6-101.2%2054.8-142.3%2096-41.1%2041.1-73.4%2089-96%20142.3-23.4%2055.2-35.2%20113.9-35.2%20174.3%200%2060.4%2011.8%20119.1%2035.2%20174.3%2022.6%2053.3%2054.8%20101.2%2096%20142.3%2041.1%2041.1%2089%2073.4%20142.3%2096%2055.2%2023.4%20113.9%2035.2%20174.3%2035.2s119.1-11.8%20174.3-35.2c53.3-22.6%20101.2-54.8%20142.3-96%2041.1-41.1%2073.4-89%2096-142.3%2023.4-55.2%2035.2-113.9%2035.2-174.3%200.1-60.4-11.8-119.1-35.1-174.3zM513.7%20879.1c-202.3%200-366.9-164.6-366.9-366.9s164.6-366.9%20366.9-366.9c202.3%200%20366.9%20164.6%20366.9%20366.9S716%20879.1%20513.7%20879.1z'%20p-id='15791'%3e%3c/path%3e%3cpath%20d='M697.9%20329.1c-15.6-15.6-41-15.6-56.6%200L513%20457.4%20384.7%20329.1c-15.6-15.6-41-15.6-56.6%200-15.6%2015.6-15.6%2041%200%2056.6L456.4%20514%20328.1%20642.3c-15.6%2015.6-15.6%2041%200%2056.6%2015.6%2015.6%2041%2015.6%2056.6%200L513%20570.6l128.3%20128.3c15.6%2015.6%2041%2015.6%2056.6%200%2015.6-15.6%2015.6-41%200-56.6L569.6%20514l128.3-128.3c15.6-15.6%2015.6-41.1%200-56.6z'%20p-id='15792'%3e%3c/path%3e%3c/svg%3e",lh=Object.freeze(Object.defineProperty({__proto__:null,default:rh},Symbol.toStringTag,{value:"Module"})),ah="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750816526374'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='9498'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M926.3%20337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6%2076.2%20339.3%2099.6c-53.3%2022.6-101.2%2054.8-142.3%2096-41.1%2041.1-73.4%2089-96%20142.3-23.4%2055.2-35.2%20113.9-35.2%20174.3%200%2060.4%2011.8%20119.1%2035.2%20174.3%2022.6%2053.3%2054.8%20101.2%2096%20142.3%2041.1%2041.1%2089%2073.4%20142.3%2096%2055.2%2023.4%20113.9%2035.2%20174.3%2035.2s119.1-11.8%20174.3-35.2c53.3-22.6%20101.2-54.8%20142.3-96%2041.1-41.1%2073.4-89%2096-142.3%2023.4-55.2%2035.2-113.9%2035.2-174.3%200.1-60.4-11.8-119.1-35.1-174.3zM513.7%20879.1c-202.3%200-366.9-164.6-366.9-366.9s164.6-366.9%20366.9-366.9c202.3%200%20366.9%20164.6%20366.9%20366.9S716%20879.1%20513.7%20879.1z'%20p-id='9499'%3e%3c/path%3e%3cpath%20d='M695.7%20469.2h-139v-139c0-23.6-19.3-43-43-43-23.6%200-43%2019.3-43%2043v139h-139c-23.6%200-43%2019.3-43%2043s19.3%2043%2043%2043h139v139c0%2023.7%2019.3%2043%2043%2043%2023.6%200%2043-19.3%2043-43v-139h139c23.6%200%2043-19.3%2043-43s-19.4-43-43-43z'%20p-id='9500'%3e%3c/path%3e%3c/svg%3e",ch=Object.freeze(Object.defineProperty({__proto__:null,default:ah},Symbol.toStringTag,{value:"Module"})),hh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750816329545'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='9351'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M926.3%20337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6%2076.2%20339.3%2099.6c-53.3%2022.6-101.2%2054.8-142.3%2096-41.1%2041.1-73.4%2089-96%20142.3-23.4%2055.2-35.2%20113.9-35.2%20174.3%200%2060.4%2011.8%20119.1%2035.2%20174.3%2022.6%2053.3%2054.8%20101.2%2096%20142.3%2041.1%2041.1%2089%2073.4%20142.3%2096%2055.2%2023.4%20113.9%2035.2%20174.3%2035.2s119.1-11.8%20174.3-35.2c53.3-22.6%20101.2-54.8%20142.3-96%2041.1-41.1%2073.4-89%2096-142.3%2023.4-55.2%2035.2-113.9%2035.2-174.3%200.1-60.4-11.8-119.1-35.1-174.3zM513.7%20879.1c-202.3%200-366.9-164.6-366.9-366.9s164.6-366.9%20366.9-366.9c202.3%200%20366.9%20164.6%20366.9%20366.9S716%20879.1%20513.7%20879.1z'%20p-id='9352'%3e%3c/path%3e%3cpath%20d='M697.9%20329.1c-15.6-15.6-41-15.6-56.6%200L513%20457.4%20384.7%20329.1c-15.6-15.6-41-15.6-56.6%200-15.6%2015.6-15.6%2041%200%2056.6L456.4%20514%20328.1%20642.3c-15.6%2015.6-15.6%2041%200%2056.6%2015.6%2015.6%2041%2015.6%2056.6%200L513%20570.6l128.3%20128.3c15.6%2015.6%2041%2015.6%2056.6%200%2015.6-15.6%2015.6-41%200-56.6L569.6%20514l128.3-128.3c15.6-15.6%2015.6-41.1%200-56.6z'%20p-id='9353'%3e%3c/path%3e%3c/svg%3e",uh=Object.freeze(Object.defineProperty({__proto__:null,default:hh},Symbol.toStringTag,{value:"Module"})),fh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750815766948'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='9204'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M923.9%20335.8c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.8-35.2-174.3-35.2S392.2%2074.1%20337%2097.5c-53.3%2022.6-101.2%2054.8-142.3%2096-41.1%2041.1-73.4%2089-96%20142.3C75.3%20391%2063.5%20449.7%2063.5%20510.1c0%2060.4%2011.8%20119.1%2035.2%20174.3%2022.6%2053.3%2054.8%20101.2%2096%20142.3%2041.1%2041.1%2089%2073.4%20142.3%2096%2055.2%2023.4%20113.9%2035.2%20174.3%2035.2s119.1-11.8%20174.3-35.2c35.9-15.2%2069.3-34.8%2099.8-58.5l-0.1-0.1c9.1-7.4%2014.8-18.6%2014.8-31.2%200-22.3-18-40.3-40.3-40.3-9.2%200-17.7%203.1-24.5%208.3l-0.2-0.3c-62%2047.9-139.7%2076.4-223.9%2076.4-202.3%200-366.9-164.6-366.9-366.9s164.7-366.9%20367-366.9%20366.9%20164.6%20366.9%20366.9c0%2066.2-17.6%20128.3-48.4%20182l0.4%200.2c-4.4%206.5-7%2014.2-7%2022.6%200%2022.3%2018%2040.3%2040.3%2040.3%2016%200%2029.8-9.3%2036.3-22.8l0.2%200.1c8.9-15.5%2016.8-31.5%2023.8-48.1%2023.4-55.2%2035.2-113.9%2035.2-174.3%200.1-60.4-11.7-119.1-35.1-174.3z'%20p-id='9205'%3e%3c/path%3e%3cpath%20d='M693.7%20626.5H507.6l-57.1%2066.1h243.2zM663.2%20411.4c7.5-7.6%207.5-23.5%200-31.3l-45.4-46.8c-7.7-7.6-22.9-7.6-30.4%200l-45.7%2046.8%2076.1%2078.1%2045.4-46.8zM328.8%20614.5v78.1h76.1l197.5-218.7-76-77.9z'%20p-id='9206'%3e%3c/path%3e%3c/svg%3e",dh=Object.freeze(Object.defineProperty({__proto__:null,default:fh},Symbol.toStringTag,{value:"Module"})),ph="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750815629946'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='9058'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M78.768011%20168.230165c0-30.999918%2024.230644-56.076722%2054.15419-56.076722L403.692131%20112.153443%20403.692131%2056.076722c0-30.999918%2024.230644-56.076722%2054.15419-56.076722l108.306335%200c29.923546%200%2054.155214%2025.076803%2054.155214%2056.076722l0%2056.077745%20270.768906%200c29.923546%200%2054.15419%2025.076803%2054.15419%2056.076722l0%2056.076722L78.768011%20224.307909%2078.768011%20168.230165zM891.076776%20336.461352l0%20112.153443%200%20519.30746c0%2030.923181-24.231667%2056.077745-54.153167%2056.077745L187.076392%201024c-29.923546%200-54.15419-25.154564-54.15419-56.077745L132.922201%20448.614796%20132.922201%20336.461352l0-56.077745%20758.154574%200L891.076776%20336.461352zM349.53794%20448.614796c0-30.923181-24.230644-56.076722-54.15419-56.076722-29.922523%200-54.153167%2025.153541-54.153167%2056.076722l0%20407.154017c0%2030.923181%2024.230644%2056.077745%2054.153167%2056.077745%2029.923546%200%2054.15419-25.154564%2054.15419-56.077745L349.53794%20448.614796zM566.153679%20448.614796c0-30.923181-24.230644-56.076722-54.15419-56.076722-29.922523%200-54.153167%2025.153541-54.153167%2056.076722l0%20407.154017c0%2030.923181%2024.230644%2056.077745%2054.153167%2056.077745%2029.923546%200%2054.15419-25.154564%2054.15419-56.077745L566.153679%20448.614796zM782.770441%20448.614796c0-30.923181-24.231667-56.076722-54.155214-56.076722s-54.15419%2025.153541-54.15419%2056.076722l0%20407.154017c0%2030.923181%2024.230644%2056.077745%2054.15419%2056.077745s54.155214-25.154564%2054.155214-56.077745L782.770441%20448.614796z'%20p-id='9059'%3e%3c/path%3e%3c/svg%3e",gh=Object.freeze(Object.defineProperty({__proto__:null,default:ph},Symbol.toStringTag,{value:"Module"})),mh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753424743198'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='51312'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M672.768%2062.890667l147.797333%2085.333333-34.048%2095.146667a384.725333%20384.725333%200%200%201%2058.026667%2076.629333c16.469333%2028.501333%2028.842667%2058.24%2037.376%2088.533333L981.333333%20426.666667v170.666666l-99.541333%2018.133334a383.573333%20383.573333%200%200%201-95.274667%20165.162666l34.048%2095.146667-147.797333%2085.333333-65.408-77.056a383.573333%20383.573333%200%200%201-190.677333-0.085333l-65.450667%2077.141333-147.797333-85.333333%2034.048-95.146667a384.725333%20384.725333%200%200%201-58.026667-76.629333%20384.725333%20384.725333%200%200%201-37.376-88.576L42.666667%20597.333333v-170.666666l99.541333-18.133334a383.573333%20383.573333%200%200%201%2095.274667-165.162666l-34.048-95.146667%20147.797333-85.333333L416.64%20139.946667a383.573333%20383.573333%200%200%201%20190.677333%200.085333l65.450667-77.141333zM405.333333%20327.253333a213.333333%20213.333333%200%201%200%20213.333334%20369.493334%20213.333333%20213.333333%200%200%200-213.333334-369.493334zM512%20384a128%20128%200%201%201%200%20256%20128%20128%200%200%201%200-256z'%20p-id='51313'%3e%3c/path%3e%3c/svg%3e",vh=Object.freeze(Object.defineProperty({__proto__:null,default:mh},Symbol.toStringTag,{value:"Module"})),wh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750815488055'%20class='icon'%20viewBox='0%200%201025%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='8912'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200.1953125'%20height='200'%3e%3cpath%20d='M127.110228%20701.648461q0%2026.438928%2018.812314%2045.251241t46.268123%2018.812314l253.203575%200%200%20128.12711-318.284012%200q-26.438928%200-49.82721-9.660377t-40.675273-26.947368-26.947368-40.675273-9.660377-50.844091l0-637.584906q0-26.438928%209.660377-49.82721t26.947368-40.675273%2040.675273-27.455809%2049.82721-10.168818l766.728898%200q26.438928%200%2049.82721%2010.168818t40.675273%2027.455809%2027.455809%2040.675273%2010.168818%2049.82721l0%20187.106256-128.12711%201.016882q-2.033764-25.422046-19.829196-43.217478t-44.234359-17.795432l-637.584906%200q-27.455809%200-46.268123%2018.812314t-18.812314%2045.251241l0%20382.347567zM1016.881827%20501.322741q6.101291%209.151936%207.626614%2023.388282t-10.677259%2028.472691q-11.1857%2014.236346-18.303873%2021.354518l-8.135055%208.135055-105.75571-95.586892q5.084409-6.101291%2014.236346-14.744786t14.236346-13.727905q14.236346-14.236346%2030.506455-12.711023t27.455809%206.609732q12.202582%205.084409%2026.438928%2018.812314t22.3714%2029.998014zM613.179742%20789.100298q3.050645-3.050645%2014.236346-16.270109t27.96425-32.540218%2037.116187-42.200596%2040.675273-46.268123q48.810328-54.911619%20108.806356-122.025819l107.789474%2095.586892q-59.996028%2068.131082-108.806356%20123.042701-20.337637%2023.388282-40.675273%2046.268123t-37.116187%2041.183714-27.455809%2029.998014-12.711023%2013.727905q-9.151936%2012.202582-25.422046%2020.337637-7.118173%205.084409-21.354518%2011.1857t-29.998014%2012.202582-29.489573%2010.677259-20.846077%205.59285q-26.438928%205.084409-23.388282-22.3714%201.016882-7.118173%204.067527-21.862959t6.609732-30.506455%207.118173-28.981132%205.59285-18.303873q5.084409-13.219464%2017.286991-28.472691z'%20p-id='8913'%3e%3c/path%3e%3c/svg%3e",bh=Object.freeze(Object.defineProperty({__proto__:null,default:wh},Symbol.toStringTag,{value:"Module"})),xh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753088395767'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='23263'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M508%20512m-112%200a112%20112%200%201%200%20224%200%20112%20112%200%201%200-224%200Z'%20p-id='23264'%3e%3c/path%3e%3cpath%20d='M942.2%20486.2C847.4%20286.5%20704.1%20186%20512%20186c-192.2%200-335.4%20100.5-430.2%20300.3-7.7%2016.2-7.7%2035.2%200%2051.5C176.6%20737.5%20319.9%20838%20512%20838c192.2%200%20335.4-100.5%20430.2-300.3%207.7-16.2%207.7-35%200-51.5zM508%20688c-97.2%200-176-78.8-176-176s78.8-176%20176-176%20176%2078.8%20176%20176-78.8%20176-176%20176z'%20p-id='23265'%3e%3c/path%3e%3c/svg%3e",yh=Object.freeze(Object.defineProperty({__proto__:null,default:xh},Symbol.toStringTag,{value:"Module"})),kh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750407346075'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='14076'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M122.368%20165.888h778.24c-9.216%200-16.384-7.168-16.384-16.384v713.728c0-9.216%207.168-16.384%2016.384-16.384h-778.24c9.216%200%2016.384%207.168%2016.384%2016.384V150.016c0%208.192-6.656%2015.872-16.384%2015.872z%20m-32.768%20684.544c0%2026.112%2020.992%2047.104%2047.104%2047.104h750.08c26.112%200%2047.104-20.992%2047.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112%200-47.104%2020.992-47.104%2047.104v688.128z'%20p-id='14077'%3e%3c/path%3e%3cpath%20d='M510.464%20639.488l207.872-254.976H302.08z'%20p-id='14078'%3e%3c/path%3e%3c/svg%3e",Sh=Object.freeze(Object.defineProperty({__proto__:null,default:kh},Symbol.toStringTag,{value:"Module"})),Ch="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750407433101'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='14223'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M122.88%20165.888h778.24c-9.216%200-16.384-7.168-16.384-16.384v713.728c0-9.216%207.168-16.384%2016.384-16.384H122.88c9.216%200%2016.384%207.168%2016.384%2016.384V150.016c0%208.192-6.656%2015.872-16.384%2015.872z%20m-32.768%20684.544c0%2026.112%2020.992%2047.104%2047.104%2047.104h750.08c26.112%200%2047.104-20.992%2047.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H137.216c-26.112%200-47.104%2020.992-47.104%2047.104v688.128z'%20p-id='14224'%3e%3c/path%3e%3cpath%20d='M244.224%20279.04h142.848v49.152H244.224zM244.224%20425.472h142.848v49.152H244.224zM436.736%20279.04h342.528v49.152H436.736zM436.736%20425.472h342.528v49.152H436.736zM244.224%20572.416h142.848v49.152H244.224zM436.736%20572.416h342.528v172.544H436.736z'%20p-id='14225'%3e%3c/path%3e%3c/svg%3e",_h=Object.freeze(Object.defineProperty({__proto__:null,default:Ch},Symbol.toStringTag,{value:"Module"})),Oh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1751708264977'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='5492'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M512%2064C264.6%2064%2064%20264.6%2064%20512s200.6%20448%20448%20448%20448-200.6%20448-448S759.4%2064%20512%2064z%20m104%20316.9c0%2010.2-4.9%2019.9-13.2%2025.9L457.4%20512l145.4%20105.2c8.3%206%2013.2%2015.6%2013.2%2025.9V690c0%206.5-7.4%2010.3-12.7%206.5l-246-178c-4.4-3.2-4.4-9.7%200-12.9l246-178c5.3-3.8%2012.7-0.1%2012.7%206.5v46.8z'%20p-id='5493'%20fill='%2372B02D'%3e%3c/path%3e%3c/svg%3e",Mh=Object.freeze(Object.defineProperty({__proto__:null,default:Oh},Symbol.toStringTag,{value:"Module"})),Dh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750411679824'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='35651'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M474%20152m8%200l60%200q8%200%208%208l0%20704q0%208-8%208l-60%200q-8%200-8-8l0-704q0-8%208-8Z'%20p-id='35652'%3e%3c/path%3e%3cpath%20d='M168%20474m8%200l672%200q8%200%208%208l0%2060q0%208-8%208l-672%200q-8%200-8-8l0-60q0-8%208-8Z'%20p-id='35653'%3e%3c/path%3e%3c/svg%3e",Th=Object.freeze(Object.defineProperty({__proto__:null,default:Dh},Symbol.toStringTag,{value:"Module"})),Ah="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1751708287937'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='5743'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M512%2064C264.6%2064%2064%20264.6%2064%20512s200.6%20448%20448%20448%20448-200.6%20448-448S759.4%2064%20512%2064z%20m154.7%20454.5l-246%20178c-5.3%203.8-12.7%200-12.7-6.5v-46.9c0-10.2%204.9-19.9%2013.2-25.9L566.6%20512%20421.2%20406.8c-8.3-6-13.2-15.6-13.2-25.9V334c0-6.5%207.4-10.3%2012.7-6.5l246%20178c4.4%203.2%204.4%209.8%200%2013z'%20p-id='5744'%20fill='%2372B02D'%3e%3c/path%3e%3c/svg%3e",Bh=Object.freeze(Object.defineProperty({__proto__:null,default:Ah},Symbol.toStringTag,{value:"Module"})),Ph="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750643434994'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='16376'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M926.3%20337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6%2076.2%20339.3%2099.6c-53.3%2022.6-101.2%2054.8-142.3%2096-41.1%2041.1-73.4%2089-96%20142.3-23.4%2055.2-35.2%20113.9-35.2%20174.3%200%2060.4%2011.8%20119.1%2035.2%20174.3%2022.6%2053.3%2054.8%20101.2%2096%20142.3%2041.1%2041.1%2089%2073.4%20142.3%2096%2055.2%2023.4%20113.9%2035.2%20174.3%2035.2s119.1-11.8%20174.3-35.2c53.3-22.6%20101.2-54.8%20142.3-96%2041.1-41.1%2073.4-89%2096-142.3%2023.4-55.2%2035.2-113.9%2035.2-174.3%200.1-60.4-11.8-119.1-35.1-174.3zM513.7%20879.1c-202.3%200-366.9-164.6-366.9-366.9s164.6-366.9%20366.9-366.9c202.3%200%20366.9%20164.6%20366.9%20366.9S716%20879.1%20513.7%20879.1z'%20p-id='16377'%3e%3c/path%3e%3cpath%20d='M715.6%20371.6c-15.7-15.7-41.4-15.7-57%200l-196%20196-95.9-95.9c-15.7-15.7-41.4-15.7-57%200-15.7%2015.7-15.7%2041.4%200%2057l124.5%20124.5c15.7%2015.7%2041.4%2015.7%2057%200l224.5-224.5c15.6-15.7%2015.6-41.4-0.1-57.1z'%20p-id='16378'%3e%3c/path%3e%3c/svg%3e",Eh=Object.freeze(Object.defineProperty({__proto__:null,default:Ph},Symbol.toStringTag,{value:"Module"})),Vh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750406704613'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='13783'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M122.368%20165.888h778.24c-9.216%200-16.384-7.168-16.384-16.384v713.728c0-9.216%207.168-16.384%2016.384-16.384h-778.24c9.216%200%2016.384%207.168%2016.384%2016.384V150.016c0%208.192-6.656%2015.872-16.384%2015.872z%20m-32.768%20684.544c0%2026.112%2020.992%2047.104%2047.104%2047.104h750.08c26.112%200%2047.104-20.992%2047.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112%200-47.104%2020.992-47.104%2047.104v688.128z'%20p-id='13784'%3e%3c/path%3e%3cpath%20d='M573.44%20646.656l-3.072%206.144c-8.192%2012.288-14.336%2025.088-19.456%2038.912-6.656%2018.944-3.072%2036.352%2016.896%2043.008%2034.816%2011.264%2072.704%209.216%20106.496-4.608%209.216-3.072%2011.264-4.096%2034.304-12.8%2016.384-6.656%2033.792-12.8%2051.2-17.408%201.024%200%202.048-0.512%203.072-1.024%2010.24-2.048%206.656-5.632%2016.896%201.024%203.584%203.072%208.704%204.096%2013.312%203.072%204.608-1.024%205.632-3.072%208.192-7.68%205.632-8.192%203.584-19.456-4.608-25.088-18.944-12.8-22.528-10.24-41.472-6.144-1.536%200.512-3.072%200.512-4.096%201.024-18.944%205.12-37.376%2011.264-55.808%2018.432-22.016%208.704-24.064%209.728-32.768%2012.288-24.576%2010.24-52.224%2012.8-78.336%206.144%204.608-11.264%2010.24-22.016%2016.896-32.256%201.536-2.048%202.56-4.096%203.584-6.144%208.704-13.824%2015.36-29.184%2018.432-45.056%204.096-19.456-7.68-38.4-27.136-42.496-0.512%200-1.536-0.512-2.048-0.512-27.648-6.656-59.392%203.072-148.992%2037.888-81.92%2032.256-117.76%2041.984-129.024%2035.84-4.096-2.56-8.704-3.072-13.312-1.536-9.728%202.56-15.36%2012.8-12.8%2022.016%201.024%204.608%204.096%208.192%208.192%2010.752%2023.04%208.704%2048.64%207.68%2071.168-2.048%2029.696-9.216%2059.392-19.456%2088.064-32.256%2077.824-30.72%20111.104-40.448%20126.976-36.352%203.072%201.024%203.072%200%202.56%203.072-2.56%2012.288-7.168%2023.552-13.312%2033.792zM665.088%20235.52c-19.456-17.92-49.664-17.408-68.608%201.024L312.32%20519.68c-2.048%202.048-3.584%204.608-4.608%207.68l-22.528%2080.896c-2.56%209.728%203.072%2019.456%2012.8%2021.504%203.584%201.024%207.68%200.512%2011.264-0.512l71.168-29.696c5.632-2.56%2010.752-5.632%2015.36-10.24l283.648-269.824%202.56-2.56c18.432-19.456%2017.92-50.176-2.048-68.608l-1.024-1.024-13.824-11.776z'%20p-id='13785'%3e%3c/path%3e%3c/svg%3e",zh=Object.freeze(Object.defineProperty({__proto__:null,default:Vh},Symbol.toStringTag,{value:"Module"})),Lh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750642902470'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='16229'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M0%200h1024v1024H0z'%20fill='%23FFFFFF'%20fill-opacity='0'%20p-id='16230'%3e%3c/path%3e%3cpath%20d='M204%20372c66.31%200%20121.852%2046.1%20136.326%20108h137.53c12.901-33.907%2045.71-58%2084.144-58%2038.435%200%2071.243%2024.093%2084.145%2058h139.71c12.902-33.907%2045.71-58%2084.145-58%2049.706%200%2090%2040.294%2090%2090s-40.294%2090-90%2090c-38.434%200-71.242-24.092-84.144-57.998H646.144C633.242%20577.908%20600.434%20602%20562%20602c-38.434%200-71.242-24.092-84.144-57.998h-137.53C325.852%20605.9%20270.309%20652%20204%20652c-77.32%200-140-62.68-140-140s62.68-140%20140-140z%20m0%2064c-41.974%200-76%2034.026-76%2076s34.026%2076%2076%2076%2076-34.026%2076-76-34.026-76-76-76z%20m358%2050c-14.36%200-26%2011.64-26%2026s11.64%2026%2026%2026%2026-11.64%2026-26-11.64-26-26-26z%20m308%200c-14.36%200-26%2011.64-26%2026s11.64%2026%2026%2026%2026-11.64%2026-26-11.64-26-26-26z'%20p-id='16231'%3e%3c/path%3e%3c/svg%3e",Rh=Object.freeze(Object.defineProperty({__proto__:null,default:Lh},Symbol.toStringTag,{value:"Module"})),Nh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750667945909'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='16523'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M778.7%2097.2H247.3C165%2097.2%2098%20164.3%2098%20246.7v532.2c0%2082.4%2067%20149.4%20149.3%20149.4h531.5c82.3%200%20149.3-67%20149.3-149.4V246.7C928%20164.3%20861%2097.2%20778.7%2097.2z%20m-452.2%2079.9h373.1v83.7H331.9c-2.9%200-5.5-2.6-5.5-5.5v-78.2z%20m373%20671.3h-373v-225h373.1v225z%20m148.7-69.6c0%2038.1-30.8%2069.2-68.8%2069.5V612.9c0-38.3-31.1-69.4-69.3-69.4H316c-38.2%200-69.3%2031.1-69.3%2069.4v235.4c-38-0.3-68.8-31.4-68.8-69.5V246.7c0-38.1%2030.8-69.2%2068.8-69.5v78.2c0%2047.1%2038.3%2085.4%2085.3%2085.4h378c38.2%200%2069.3-31.1%2069.3-69.4v-94.2c38%200.3%2068.8%2031.4%2068.8%2069.5v532.1z'%20p-id='16524'%3e%3c/path%3e%3c/svg%3e",Ih=Object.freeze(Object.defineProperty({__proto__:null,default:Nh},Symbol.toStringTag,{value:"Module"})),Hh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750407459145'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='14370'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M122.368%20165.888h778.24c-9.216%200-16.384-7.168-16.384-16.384v713.728c0-9.216%207.168-16.384%2016.384-16.384h-778.24c9.216%200%2016.384%207.168%2016.384%2016.384V150.016c0%208.192-6.656%2015.872-16.384%2015.872z%20m-32.768%20684.544c0%2026.112%2020.992%2047.104%2047.104%2047.104h750.08c26.112%200%2047.104-20.992%2047.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112%200-47.104%2020.992-47.104%2047.104v688.128z'%20p-id='14371'%3e%3c/path%3e%3cpath%20d='M249.344%20347.648h49.152v499.2h-49.152zM584.704%20347.648h49.152v499.2h-49.152zM137.728%20165.888h746.496v181.76H137.728z'%20p-id='14372'%3e%3c/path%3e%3cpath%20d='M137.728%20481.792h746.496v49.152H137.728zM137.728%20664.576h746.496v49.152H137.728z'%20p-id='14373'%3e%3c/path%3e%3c/svg%3e",$h=Object.freeze(Object.defineProperty({__proto__:null,default:Hh},Symbol.toStringTag,{value:"Module"})),Wh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750813714349'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4271'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M376.6%20494.8c5.1%204.8%207.9%2011.7%207.6%2018.7%200.4%207.1-2.5%2014-7.6%2018.7-5.3%204.7-12.3%207.2-19.3%206.9h-69.6v235.1c0.2%207.4-2.9%2014.4-8.4%2019.1-5.5%205.4-12.9%208.3-20.5%208.1-7.6%200.3-15.1-2.7-20.5-8.1-5.3-4.9-8.2-11.9-8.1-19.1v-235H161c-7.2%200.3-14.2-2.3-19.3-7.3-5.2-4.8-8-11.7-7.6-18.7-0.3-7%202.5-13.7%207.6-18.3%205.3-4.8%2012.2-7.3%2019.3-7h198.4c6.3%200%2012.4%202.5%2017.2%206.9z%20m215.7%2070.1c5.2%205.1%208%2012.2%207.7%2019.6v189.9c0.3%207.2-2.5%2014.2-7.7%2019.1-4.8%205.3-11.7%208.3-18.9%208.1-7.1%200.1-13.9-2.7-18.9-7.7-4.8-5.2-7.6-12-7.6-19.1-18%2019.5-42.9%2030.8-69.2%2031.4-19.7%200.3-38.9-5.3-55.5-15.9-17.2-10.7-31.2-26.1-40.3-44.4-19.3-40.4-19.3-87.6%200-128%208.9-18.4%2022.9-33.8%2040.3-44.4%2016-10.5%2034.8-16.1%2053.9-15.9%2026.3-0.1%2051.8%209.8%2071.2%2027.7-0.2-7.3%202.6-14.4%207.7-19.6%2010.6-10.2%2027.2-10.2%2037.8%200l-0.5-0.8z%20m-61.2%20168.7c24.1-31.6%2024.1-75.6%200-107.2-11.5-14.3-28.9-22.3-47.1-21.6-17.9-0.5-35.1%207.4-46.3%2021.6-12.1%2015-18.5%2034-18.1%2053.4-0.6%2019.5%205.7%2038.6%2017.7%2053.8%2011.6%2013.9%2028.8%2021.7%2046.7%2021.2%2018.1%200.4%2035.3-7.4%2047.1-21.2zM835.4%20573c17.1%2010.7%2031%2025.9%2040.3%2044%209.9%2019.8%2014.9%2041.8%2014.5%2064%200.4%2022.3-4.6%2044.4-14.5%2064.4-9%2018.3-23%2033.7-40.3%2044.4-16%2010.6-34.8%2016.1-53.9%2015.9-13.9%200.2-27.7-2.9-40.3-9-11.6-5-22.1-12.2-31-21.2v2.8c0.2%207.2-2.5%2014.2-7.5%2019.4-5%205.1-11.9%208-19.1%207.9-7.1%200.3-14-2.5-18.9-7.7-5.2-5.1-8-12.2-7.6-19.6V497.2c-0.2-7.3%202.5-14.4%207.6-19.6%2010.6-10.3%2027.2-10.3%2037.8%200%205.1%205.2%207.9%2012.2%207.6%2019.6v93.3c8-9.8%2018-17.7%2029.4-23.2%2012.4-6.8%2026.2-10.3%2040.3-10.2%2019.7-0.2%2039%205.3%2055.6%2015.9z%20m-15.7%20163c12.2-15.1%2018.6-34.3%2018.1-53.8%200.6-19.4-5.7-38.3-17.7-53.4-12-13.4-29-21.1-46.9-21.1s-34.9%207.7-46.9%2021.1c-24.1%2031.6-24.1%2075.6%200%20107.2%2011.6%2014.1%2029%2022.1%2047.1%2021.6%2018.3-0.2%2035.4-9.1%2046.3-24v2.4zM708.1%20253.5c-15.5%200-28-12.5-28-28V113.4c-0.1-8%200-15.9%200-23.8V77.9c0-15.5%2012.5-28%2028-28H886c17%200%2032.9%206.6%2045%2018.6%2011.3%2011.3%2017.8%2026%2018.6%2041.8%200.1%200.7%200.1%201.4%200.1%202.1v113.2c0%2015.5-12.5%2028-28%2028H708.1z%20m28-56h157.4v-84.1c0-2-0.8-3.9-2.2-5.4-1.4-1.4-3.4-2.2-5.4-2.2H736.1v91.7zM371.9%20254.6c-15.5%200-28-12.5-28-28V78.9c0-15.4%2012.5-27.9%2027.9-28l213.4-1.1h0.1c17%200%2032.9%206.6%2045%2018.6%2012%2012.1%2018.6%2028%2018.6%2045v113.2c0%2015.5-12.5%2028-28%2028h-249z%20m28-56.1h193v-85.2c0-2-0.8-3.9-2.2-5.4-1.4-1.4-3.3-2.2-5.3-2.2l-185.5%200.9v91.9z'%20p-id='4272'%3e%3c/path%3e%3cpath%20d='M72.4%20974.2c-17.3%200-33.5-6.7-45.7-18.7-12.2-12.1-18.9-28.1-18.9-45.1V113.6c0-35.2%2029-63.8%2064.6-63.8h169c17.3%200%2033.5%206.6%2045.7%2018.7%2012.2%2012%2018.9%2028.1%2018.9%2045.1V283c0%202%200.8%203.9%202.3%205.4%201.5%201.4%203.4%202.2%205.4%202.2h637.9c17.3%200%2033.5%206.6%2045.7%2018.7%2012.2%2012%2018.9%2028%2018.9%2045.1v556c0%2017.1-6.7%2033.1-18.9%2045.1s-28.4%2018.7-45.7%2018.7H72.4z%20m7.7-860.6c-4.3%200-7.7%203.4-7.7%207.6v788.7c0%202%200.8%204%202.3%205.4%201.4%201.4%203.4%202.2%205.4%202.2h871.5c2.1%200%204-0.8%205.4-2.2%201.5-1.4%202.3-3.3%202.3-5.4V350.6c0-2-0.8-3.9-2.2-5.3-1.5-1.5-3.4-2.3-5.4-2.3h-638c-17.3%200-33.5-6.7-45.7-18.7-12.2-12-18.9-28.1-18.9-45.1V121.1c0-2-0.8-3.9-2.3-5.4-1.4-1.4-3.4-2.2-5.4-2.2H80.1z'%20p-id='4273'%3e%3c/path%3e%3c/svg%3e",Fh=Object.freeze(Object.defineProperty({__proto__:null,default:Wh},Symbol.toStringTag,{value:"Module"})),Gh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750482237209'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2084'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='48'%20height='48'%3e%3cpath%20d='M171.52%20924.16v-107.52c0-19.968%2015.872-35.84%2035.84-35.84s35.84%2015.872%2035.84%2035.84v107.52c0%2019.968-15.872%2035.84-35.84%2035.84s-35.84-15.872-35.84-35.84z%20m0-322.56v-107.52c0-19.968%2015.872-35.84%2035.84-35.84s35.84%2015.872%2035.84%2035.84v107.52c0%2019.968-15.872%2035.84-35.84%2035.84s-35.84-15.872-35.84-35.84z%20m0-394.24v-107.52c0-19.968%2015.872-35.84%2035.84-35.84s35.84%2015.872%2035.84%2035.84v107.52c0%2019.968-15.872%2035.84-35.84%2035.84s-35.84-15.872-35.84-35.84z'%20p-id='2085'%3e%3c/path%3e%3cpath%20d='M350.72%20350.72c0%2079.36-64%20143.36-143.36%20143.36s-143.36-64-143.36-143.36%2064-143.36%20143.36-143.36%20143.36%2064%20143.36%20143.36z%20m-143.36-71.68c-39.424%200-71.68%2032.256-71.68%2071.68s32.256%2071.68%2071.68%2071.68%2071.68-32.256%2071.68-71.68-32.256-71.68-71.68-71.68z%20m143.36%20430.08c0%2079.36-64%20143.36-143.36%20143.36s-143.36-64-143.36-143.36%2064-143.36%20143.36-143.36%20143.36%2064%20143.36%20143.36z%20m-143.36-71.68c-39.424%200-71.68%2032.256-71.68%2071.68s32.256%2071.68%2071.68%2071.68%2071.68-32.256%2071.68-71.68-32.256-71.68-71.68-71.68z%20m716.8-286.72h-501.76c-19.968%200-35.84-15.872-35.84-35.84s15.872-35.84%2035.84-35.84h501.76c19.968%200%2035.84%2015.872%2035.84%2035.84s-15.872%2035.84-35.84%2035.84z%20m-284.672%20107.52H420.352c-18.432%200-33.792-15.36-33.792-33.792v-4.096c0-18.432%2015.36-33.792%2033.792-33.792h219.136c18.432%200%2033.792%2015.36%2033.792%2033.792v4.096c0%2018.432-15.36%2033.792-33.792%2033.792z%20m284.672%20250.88h-501.76c-19.968%200-35.84-15.872-35.84-35.84s15.872-35.84%2035.84-35.84h501.76c19.968%200%2035.84%2015.872%2035.84%2035.84s-15.872%2035.84-35.84%2035.84z%20m-284.672%20107.52H420.352c-18.432%200-33.792-15.36-33.792-33.792v-4.096c0-18.432%2015.36-33.792%2033.792-33.792h219.136c18.432%200%2033.792%2015.36%2033.792%2033.792v4.096c0%2018.432-15.36%2033.792-33.792%2033.792z'%20p-id='2086'%3e%3c/path%3e%3c/svg%3e",jh=Object.freeze(Object.defineProperty({__proto__:null,default:Gh},Symbol.toStringTag,{value:"Module"})),qh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752140707910'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4361'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M512%20315.9c-108.3%200-196.1%2087.8-196.1%20196.1S403.7%20708.1%20512%20708.1%20708.1%20620.3%20708.1%20512%20620.3%20315.9%20512%20315.9z%20m93.41%20289.51A132.11%20132.11%200%201%201%20644.1%20512a131.25%20131.25%200%200%201-38.69%2093.41z'%20p-id='4362'%3e%3c/path%3e%3cpath%20d='M851.37%20512c0-7.13-0.23-14.33-0.69-21.54l68.83-62.15-4.73-18.69a413.07%20413.07%200%200%200-45.62-110L859.29%20283l-92.59%204.73a340.49%20340.49%200%200%200-30.45-30.45l4.75-92.57-16.56-9.87a413.07%20413.07%200%200%200-110-45.62l-18.69-4.74-62.15%2068.84a336.56%20336.56%200%200%200-43.08%200l-62.15-68.84-18.69%204.74a413.07%20413.07%200%200%200-110%2045.62L283%20164.71l4.73%2092.59a341.81%20341.81%200%200%200-30.45%2030.45L164.71%20283l-9.87%2016.56a413.07%20413.07%200%200%200-45.62%20110l-4.74%2018.69%2068.84%2062.15c-0.46%207.21-0.69%2014.41-0.69%2021.54s0.23%2014.33%200.69%2021.54l-68.84%2062.15%204.74%2018.69a413.07%20413.07%200%200%200%2045.62%20110l9.87%2016.68%2092.59-4.73a340.49%20340.49%200%200%200%2030.45%2030.45L283%20859.29l16.56%209.87a413.07%20413.07%200%200%200%20110%2045.62l18.69%204.73%2062.15-68.83a336.56%20336.56%200%200%200%2043.08%200l62.15%2068.83%2018.69-4.73a413.07%20413.07%200%200%200%20110-45.62l16.68-9.87-4.73-92.59a341.81%20341.81%200%200%200%2030.45-30.45l92.57%204.75%209.87-16.56a413.07%20413.07%200%200%200%2045.62-110l4.73-18.69-68.83-62.15c0.46-7.27%200.69-14.47%200.69-21.6z%20m-65.75-31.06a276.51%20276.51%200%200%201%200%2062.12l-1.83%2016.32L847.57%20617a349.88%20349.88%200%200%201-24.1%2058.1l-85.81-4.38-10.25%2012.85a277.6%20277.6%200%200%201-43.88%2043.88l-12.85%2010.25%204.38%2085.81a349.88%20349.88%200%200%201-58.1%2024.1l-57.58-63.78-16.32%201.83a276.51%20276.51%200%200%201-62.12%200l-16.32-1.83L407%20847.57a349.88%20349.88%200%200%201-58.1-24.1l4.38-85.81-12.85-10.25a277.66%20277.66%200%200%201-43.89-43.88l-10.24-12.85-85.81%204.38A349%20349%200%200%201%20176.44%20617l63.77-57.58-1.83-16.32a276.51%20276.51%200%200%201%200-62.12l1.83-16.32L176.43%20407a349.88%20349.88%200%200%201%2024.1-58.1l85.81%204.38%2010.24-12.85a278.57%20278.57%200%200%201%2043.89-43.89l12.85-10.24-4.38-85.81a349.88%20349.88%200%200%201%2058.1-24.1l57.58%2063.78%2016.32-1.83a276.51%20276.51%200%200%201%2062.12%200l16.32%201.83L617%20176.44a349%20349%200%200%201%2058.1%2024.09l-4.38%2085.81%2012.85%2010.24a277.66%20277.66%200%200%201%2043.88%2043.89l10.25%2012.85%2085.81-4.38a349.88%20349.88%200%200%201%2024.1%2058.1l-63.78%2057.58z'%20p-id='4363'%3e%3c/path%3e%3c/svg%3e",Uh=Object.freeze(Object.defineProperty({__proto__:null,default:qh},Symbol.toStringTag,{value:"Module"})),Yh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750819285235'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='5686'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='48'%20height='48'%3e%3cpath%20d='M804.571429%20511.890286A219.428571%20219.428571%200%200%201%201024%20731.428571a219.428571%20219.428571%200%201%201-219.428571-219.501714z%20m131.291428%20139.885714l-210.176%20210.212571a155.026286%20155.026286%200%200%200%2078.884572%2021.394286c85.101714%200%20154.112-68.022857%20154.112-151.990857%200-29.184-8.338286-56.466286-22.784-79.616zM804.571429%20579.364571c-85.101714%200-154.112%2068.059429-154.112%20152.027429%200%2029.184%208.338286%2056.429714%2022.784%2079.579429l210.176-210.212572A155.026286%20155.026286%200%200%200%20804.571429%20579.364571zM804.498286%2073.142857c36.754286%200%2072.813714%2036.315429%2072.813714%2073.069714v315.757715a254.171429%20254.171429%200%200%200-72.667429-21.796572V146.212571H72.704l-0.036571%20487.716572%20248.978285-249.417143%20193.353143%20195.510857%2033.536-37.449143v19.2a254.646857%20254.646857%200%200%200-36.205714%20119.369143l-190.902857-193.097143-243.529143%20243.931429h437.028571c3.84%2025.782857%2011.556571%2050.285714%2022.491429%2072.96H72.96C36.534857%20804.937143%200%20768.475429%200%20731.940571V146.212571C0%20110.006857%2036.352%2073.142857%2072.96%2073.142857h731.538286zM581.851429%20256c40.155429%200%2072.704%2032.804571%2072.704%2073.216%200%2040.448-32.548571%2073.252571-72.704%2073.252571a72.96%2072.96%200%200%201-72.777143-73.252571c0-40.411429%2032.585143-73.216%2072.777143-73.216z'%20p-id='5687'%3e%3c/path%3e%3c/svg%3e",Kh=Object.freeze(Object.defineProperty({__proto__:null,default:Yh},Symbol.toStringTag,{value:"Module"})),Xh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750387251918'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='9358'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M764.9%2064H225.4l1.4%20224.2%2064-0.4-1-159.8h383.6v224H896v544H289.8l1-159.8-64-0.4-1.4%20224.2H960V277.7L764.9%2064z%20m-27.6%2064.7L882.8%20288H737.3V128.7z'%20p-id='9359'%3e%3c/path%3e%3cpath%20d='M356.5%20224h255.9v64H356.5z'%20p-id='9360'%3e%3c/path%3e%3cpath%20d='M576.4%20416h255.9v64H576.4zM512.5%20576h319.8v64H512.5zM384.5%20736h447.8v64H384.5z'%20p-id='9361'%3e%3c/path%3e%3cpath%20d='M336.9%20349H198.6l98.9%2098.9H64v128.2h233.5L198.6%20675h138.3l162.9-163z'%20p-id='9362'%3e%3c/path%3e%3c/svg%3e",Qh=Object.freeze(Object.defineProperty({__proto__:null,default:Xh},Symbol.toStringTag,{value:"Module"})),Jh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759000039'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2839'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M952.167422%201011.201424a43.463154%2043.463154%200%200%201-61.58846%200l-43.029534-43.072896a195.533604%20195.533604%200%201%201%2062.238889-60.851307l42.379105%2042.350197a43.52097%2043.52097%200%200%201%200%2061.574006zM746.472662%20682.951266a119.028624%20119.028624%200%201%200%20119.028624%20118.956354%20119.043078%20119.043078%200%200%200-119.028624-118.956354z%20m-430.092986-17.344791h126.515792a43.477608%2043.477608%200%200%201%2043.361976%2043.361976%2042.292381%2042.292381%200%200%201-43.361976%2042.061117h-126.515792a42.306835%2042.306835%200%200%201-43.361976-42.061117%2043.492062%2043.492062%200%200%201%2043.361976-43.361976z%20m0-260.460935a43.434246%2043.434246%200%201%201%200-86.868492h320.372733a43.434246%2043.434246%200%200%201%200%2086.868492H316.379676z%20m320.083653%20173.447904H316.090597a43.434246%2043.434246%200%200%201%200-86.868492h320.40164a43.434246%2043.434246%200%201%201%200%2086.868492z%20m173.274456-376.960111c0-43.651056%201.705571-42.061117-42.046663-42.061117h-88.588517v12.285893c0%2030.064303-10.03107%2031.076083-40.109828%2031.076083H315.613615c-30.078757%200-42.523644-1.011779-42.523645-31.076083v-12.285893h-85.278552c-43.73778%200-42.899448-3.035338-42.899448%2040.760257v655.488537c0%2043.651056-5.665965%2040.760257%2038.086268%2040.760257h302.276335c4.798725%2028.329824%2019.773061%2053.19069%2045.862516%2086.001253H158.845618c-66.936437%200-100.180618-37.435839-100.180619-104.357823V181.831364c0-66.921983%2034.212599-109.272179%20101.177944-109.27218h113.203665V54.636234a52.988335%2052.988335%200%200%201%203.94594-19.079269l1.633301-3.468958a65.968019%2065.968019%200%200%201%208.556764-13.153133l2.71735-3.035338a56.370569%2056.370569%200%200%201%2016.463097-11.563194A54.000114%2054.000114%200%200%201%20327.624882%200.000145h296.942811a53.638764%2053.638764%200%200%201%2021.218461%204.336197%2054.534912%2054.534912%200%200%201%2015.566949%2010.551414l3.786946%204.191658a55.055255%2055.055255%200%200%201%207.588346%2011.418654l1.907927%203.758038a54.679452%2054.679452%200%200%201%204.495191%2020.380128v17.92295h113.247027c66.936437%200%20104.068742%2039.025778%20104.068743%20105.947762v390.402323l-86.723952-38.158539V201.633333z'%20fill='%238a8a8a'%20p-id='2840'%3e%3c/path%3e%3c/svg%3e",Zh=Object.freeze(Object.defineProperty({__proto__:null,default:Jh},Symbol.toStringTag,{value:"Module"})),e1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1751614934560'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2487'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M807.936%2099.328c-17.408%200-32.256%209.216-40.448%2023.552h-348.16L284.672%20355.84l35.84%2035.84%20126.976-219.648h321.536c8.192%2012.8%2022.528%2020.992%2038.912%2020.992%2025.6%200%2046.592-20.992%2046.592-46.592s-20.992-47.104-46.592-47.104z'%20p-id='2488'%3e%3c/path%3e%3cpath%20d='M301.056%2050.688c-8.704%2014.848-7.68%2032.768%200%2046.592L127.488%20399.36l134.656%20232.448%2048.64-13.312L183.808%20399.36l160.256-279.04c15.36-1.024%2029.696-9.216%2037.888-23.04%2012.8-22.528%205.12-50.688-17.408-63.488s-50.688-5.632-63.488%2016.896z'%20p-id='2489'%3e%3c/path%3e%3cpath%20d='M15.872%20467.456c8.704%2014.848%2024.064%2023.552%2040.448%2023.552L228.352%20793.6l268.8%201.536%2013.312-48.64-253.44-1.536-159.232-279.552c6.656-13.312%207.168-30.208-1.024-44.032-12.8-22.528-40.96-30.208-63.488-17.408-22.528%2012.8-30.208%2040.96-17.408%2063.488z'%20p-id='2490'%3e%3c/path%3e%3cpath%20d='M216.064%20924.672c17.408%200%2032.256-9.216%2040.448-23.552h348.16l134.144-232.448-35.84-35.84-126.976%20219.648H254.976c-8.192-12.8-22.528-20.992-38.912-20.992-25.6%200-46.592%2020.992-46.592%2046.592s20.992%2046.592%2046.592%2046.592z'%20p-id='2491'%3e%3c/path%3e%3cpath%20d='M722.944%20973.312c8.704-14.848%207.68-32.768%200-46.592l173.568-302.08-134.656-232.448-48.64%2013.312%20127.488%20219.136-160.256%20279.04c-15.36%201.024-29.696%209.216-37.888%2023.04-12.8%2022.528-5.12%2050.688%2017.408%2063.488%2022.016%2013.312%2050.176%205.632%2062.976-16.896z'%20p-id='2492'%3e%3c/path%3e%3cpath%20d='M1008.128%20556.544c-8.704-14.848-24.064-23.552-40.448-23.552L795.648%20230.4l-268.8-1.536-13.312%2048.64%20253.44%201.536%20159.232%20279.552c-6.656%2013.312-7.168%2030.208%201.024%2044.032%2012.8%2022.528%2040.96%2030.208%2063.488%2017.408%2022.528-12.8%2030.208-40.96%2017.408-63.488zM512%20391.168C445.44%20391.168%20391.168%20445.44%20391.168%20512S445.44%20632.832%20512%20632.832s120.832-54.272%20120.832-120.832S578.56%20391.168%20512%20391.168z%20m0%20196.096c-41.472%200-75.264-33.792-75.264-75.264s33.792-75.264%2075.264-75.264%2075.264%2033.792%2075.264%2075.264-33.792%2075.264-75.264%2075.264z'%20p-id='2493'%3e%3c/path%3e%3c/svg%3e",t1=Object.freeze(Object.defineProperty({__proto__:null,default:e1},Symbol.toStringTag,{value:"Module"})),i1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753428217148'%20class='icon'%20viewBox='0%200%201230%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='34443'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='19.21875'%20height='16'%3e%3cpath%20d='M800.585901%20666.312904a71.402697%2071.402697%200%201%200-71.739503-71.402697%2071.514965%2071.514965%200%200%200%2071.739503%2071.402697z%20m412.47407-192.877097a456.820086%20456.820086%200%200%201%200%20242.611995%20102.051968%20102.051968%200%200%200-41.090231-8.644666%20104.521873%20104.521873%200%200%200-92.060081%2056.134195%20110.135292%20110.135292%200%200%200%2028.965245%20138.090122%20338.938274%20338.938274%200%200%201-204.216204%20121.586668%20104.634141%20104.634141%200%200%200-208.370135%200%20434.590944%20434.590944%200%200%201-204.216205-121.586668%20110.247561%20110.247561%200%200%200%2031.884224-132.476702%20104.858678%20104.858678%200%200%200-94.866791-61.859884%20102.501042%20102.501042%200%200%200-41.2025%208.644666%20456.371012%20456.371012%200%200%201%200-242.499726%20101.041552%20101.041552%200%200%200%2040.977963%208.532398%20106.430435%20106.430435%200%200%200%20104.858678-108.002193%20108.90034%20108.90034%200%200%200-41.539305-86.109856A434.029602%20434.029602%200%200%201%20696.064028%20166.718562a104.634141%20104.634141%200%200%200%20208.370135%200%20455.13606%20455.13606%200%200%201%20203.991668%20121.249863%20108.788071%20108.788071%200%200%200-41.651574%2086.109856%20106.430435%20106.430435%200%200%200%20104.970946%20108.002193%20102.61331%20102.61331%200%200%200%2040.977963-8.532398z%20m-55.460585%20167.841246a747.258415%20747.258415%200%200%200%200-93.182765%20163.799583%20163.799583%200%200%201-135.283412-84.762636%20166.269488%20166.269488%200%200%201-2.582173-155.379454%20358.472974%20358.472974%200%200%200-80.047363-46.591382%20171.546102%20171.546102%200%200%201-275.618902%200%20358.136169%20358.136169%200%200%200-79.935094%2046.591382%20163.125973%20163.125973%200%200%201-5.501152%20158.747506%20168.402587%20168.402587%200%200%201-134.72207%2080.496437%20767.915799%20767.915799%200%200%200%200%2095.203596%20168.402587%20168.402587%200%200%201%20134.04846%2078.587874%20162.901436%20162.901436%200%200%201%206.399298%20160.880605%20357.013485%20357.013485%200%200%200%2080.159632%2046.703651%20168.402587%20168.402587%200%200%201%20275.618901%200%20357.911632%20357.911632%200%200%200%2080.159632-46.703651%20166.15722%20166.15722%200%200%201%205.725688-161.21741%20163.687315%20163.687315%200%200%201%20132.027629-78.587874z%20m-357.013485-189.17224A142.805394%20142.805394%200%201%201%20657.668238%20595.022476a142.805394%20142.805394%200%200%201%20142.917663-142.693126zM0%20499.931148v-71.402697h261.922158v71.402697zM0%2071.402697V0h1142.779958v71.402697H0z%20m0%20857.16917v-71.402697h333.324855v71.402697z'%20fill='%23404040'%20p-id='34444'%3e%3c/path%3e%3c/svg%3e",n1=Object.freeze(Object.defineProperty({__proto__:null,default:i1},Symbol.toStringTag,{value:"Module"})),s1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1751513326254'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2635'%20width='16'%20height='16'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cpath%20d='M273.54647%20325.996013h476.395357c19.444708-2.046811%2036.842605%2011.769166%2039.40112%2030.702171%202.046811%2019.444708-11.769166%2036.330903-31.213874%2038.377714-2.558514%200.511703-5.117029%200.511703-7.675543%200H273.54647c-10.234057-0.511703-19.956411-4.605326-26.608548-11.257463-6.652137-6.652137-10.74576-15.351086-10.74576-24.561737%200.511703-19.956411%2017.397897-35.307497%2037.866011-34.284091v1.023406z%20m0%20209.286467h476.395357c19.444708-2.046811%2036.842605%2011.769166%2039.40112%2030.702171%202.046811%2019.444708-11.769166%2036.330903-31.213874%2038.377714-2.558514%200.511703-5.117029%200.511703-7.675543%200H273.54647c-9.722354%200-19.444708-3.58192-26.608548-10.234057-6.652137-6.652137-10.74576-15.351086-10.74576-24.561737%200.511703-19.444708%2017.397897-35.307497%2037.354308-34.284091z%20m0%20185.748136h324.931312c19.444708%200%2035.307497%2015.862788%2035.307497%2034.795794%200%2019.444708-15.862788%2034.795794-35.307497%2034.795794H273.54647c-9.722354-0.511703-19.444708-4.093623-26.608548-10.74576-6.652137-6.140434-10.74576-14.839383-10.74576-24.050034%200.511703-19.444708%2017.397897-35.307497%2037.354308-34.795794zM135.898402%200.041294h96.71184c17.397897-0.511703%2033.772388%208.187246%2043.494742%2022.514926l53.217097%2082.38416c4.605326%207.16384%2012.792571%2011.769166%2020.979817%2011.257462h322.884501c8.698949%200%2016.886194-4.093623%2021.49152-11.257462l53.217097-82.38416c9.722354-14.32768%2026.096846-23.026628%2043.494742-22.514926h97.223543c53.7288-1.535109%2098.246948%2039.912823%20100.293759%2093.12992v837.657572c-2.046811%2052.705394-46.56496%2094.153325-100.293759%2093.12992h-752.203196c-53.7288%201.535109-98.758651-39.912823-100.293759-92.618217V93.171214C37.139751%2039.954117%2082.169603-1.493814%20135.898402%200.041294z%20m82.895863%2070.103291H135.898402c-6.652137%200-13.304274%202.558514-18.421303%206.652138-4.605326%204.093623-7.16384%2010.234057-7.16384%2016.374491v837.657572c0.511703%2013.304274%2011.769166%2023.538331%2025.07344%2023.026629h752.203196c6.652137%200%2013.304274-2.558514%2018.421303-6.652138%204.605326-4.093623%207.16384-10.234057%207.16384-16.374491V93.171214c0.511703-6.140434-2.046811-12.280868-7.16384-16.374491-5.117029-4.605326-11.257463-6.652137-18.421303-6.652138h-82.895862l-46.053257%2070.614994c-18.933006%2028.65536-51.681988%2045.541554-86.477783%2045.029851H350.813601c-34.795794%200.511703-67.544777-16.374491-86.477782-45.029851l-45.541554-70.614994zM399.425372%200.041294h225.149256c19.956411-0.511703%2036.842605%2015.351086%2037.866011%2034.795795-0.511703%2019.956411-17.397897%2035.307497-37.866011%2034.795794H399.425372c-10.234057-0.511703-19.956411-4.093623-27.120251-10.74576-6.652137-6.140434-10.74576-15.351086-10.234057-24.050034C362.582767%2015.39238%20378.957258-0.470408%20399.425372%200.041294z'%20p-id='2636'%3e%3c/path%3e%3c/svg%3e",o1=Object.freeze(Object.defineProperty({__proto__:null,default:s1},Symbol.toStringTag,{value:"Module"})),r1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1751513344245'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2848'%20width='16'%20height='16'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cpath%20d='M855.04%20385.024q19.456%202.048%2038.912%2010.24t33.792%2023.04%2021.504%2037.376%202.048%2054.272q-2.048%208.192-8.192%2040.448t-14.336%2074.24-18.432%2086.528-19.456%2076.288q-5.12%2018.432-14.848%2037.888t-25.088%2035.328-36.864%2026.112-51.2%2010.24l-567.296%200q-21.504%200-44.544-9.216t-42.496-26.112-31.744-40.96-12.288-53.76l0-439.296q0-62.464%2033.792-97.792t95.232-35.328l503.808%200q22.528%200%2046.592%208.704t43.52%2024.064%2031.744%2035.84%2012.288%2044.032l0%2011.264-53.248%200q-40.96%200-95.744-0.512t-116.736-0.512-115.712-0.512-92.672-0.512l-47.104%200q-26.624%200-41.472%2016.896t-23.04%2044.544q-8.192%2029.696-18.432%2062.976t-18.432%2061.952q-10.24%2033.792-20.48%2065.536-2.048%208.192-2.048%2013.312%200%2017.408%2011.776%2029.184t29.184%2011.776q31.744%200%2043.008-39.936l54.272-198.656q133.12%201.024%20243.712%201.024l286.72%200z'%20p-id='2849'%3e%3c/path%3e%3c/svg%3e",l1=Object.freeze(Object.defineProperty({__proto__:null,default:r1},Symbol.toStringTag,{value:"Module"})),a1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750406004238'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='9507'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M896%20128H128c-25.6%200-42.666667%2017.066667-42.666667%2042.666667v682.666666c0%2025.6%2017.066667%2042.666667%2042.666667%2042.666667h768c25.6%200%2042.666667-17.066667%2042.666667-42.666667V170.666667c0-25.6-17.066667-42.666667-42.666667-42.666667zM170.666667%20213.333333h298.666666v341.333334H170.666667V213.333333z%20m0%20597.333334v-170.666667h298.666666v170.666667H170.666667z%20m682.666666%200h-298.666666v-341.333334h298.666666v341.333334z%20m0-426.666667h-298.666666V213.333333h298.666666v170.666667z'%20p-id='9508'%3e%3c/path%3e%3c/svg%3e",c1=Object.freeze(Object.defineProperty({__proto__:null,default:a1},Symbol.toStringTag,{value:"Module"})),h1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753777791101'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3501'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M512%2010.24a71.68%2071.68%200%200%201%2071.68%2071.68v10.24h81.92a92.20096%2092.20096%200%200%201%2086.91712%2061.44h23.10144c37.64224%200%2056.77056%203.4304%2076.77952%2013.3632%2018.71872%209.29792%2033.72032%2023.2448%2043.9296%2040.93952C907.4688%20227.25632%20911.36%20245.97504%20911.36%20281.83552v603.68896c0%2035.86048-3.8912%2054.5792-15.04256%2073.9328-10.19904%2017.70496-25.20064%2031.6416-43.9296%2040.93952-19.99872%209.9328-39.1168%2013.3632-76.76928%2013.3632H248.38144c-37.64224%200-56.77056-3.4304-76.77952-13.3632-18.71872-9.29792-33.72032-23.2448-43.9296-40.93952C116.5312%20940.10368%20112.64%20921.38496%20112.64%20885.52448V281.83552c0-35.86048%203.8912-54.5792%2015.04256-73.9328%2010.19904-17.70496%2025.20064-31.6416%2043.9296-40.93952%2019.99872-9.9328%2039.1168-13.3632%2076.76928-13.3632h23.10144A92.20096%2092.20096%200%200%201%20358.4%2092.16h81.92V81.92a71.68%2071.68%200%200%201%2071.68-71.68zM271.48288%20215.04h-26.368c-26.4704%200.14336-36.2496%202.01728-46.1824%206.9632-7.9872%203.95264-13.9264%209.472-18.01216%2016.56832-4.87424%208.45824-6.69696%2016.60928-6.83008%2040.23296v609.75104c0.13312%2023.62368%201.95584%2031.77472%206.83008%2040.2432%204.08576%207.08608%2010.0352%2012.5952%2018.01216%2016.56832%2010.3424%205.13024%2020.50048%206.95296%2049.44896%206.95296h527.23712c28.94848%200%2039.1168-1.82272%2049.44896-6.9632%207.9872-3.95264%2013.9264-9.472%2018.01216-16.56832%205.07904-8.8064%206.84032-17.29536%206.84032-43.264V281.83552c0-25.96864-1.76128-34.44736-6.84032-43.264-4.08576-7.09632-10.0352-12.61568-18.01216-16.57856-9.9328-4.93568-19.712-6.8096-46.1824-6.94272h-26.368A92.20096%2092.20096%200%200%201%20665.6%20276.48H358.4a92.20096%2092.20096%200%200%201-86.91712-61.44zM686.08%20788.48a30.72%2030.72%200%200%201%200%2061.44H337.92a30.72%2030.72%200%200%201%200-61.44h348.16z%20m8.22272-377.01632a30.72%2030.72%200%201%201%2043.44832%2043.44832L506.05056%20686.61248a30.72%2030.72%200%200%201-43.44832%200L332.26752%20556.27776a30.72%2030.72%200%200%201%200-43.44832l1.31072-1.2288a30.72%2030.72%200%200%201%2042.1376%201.2288l108.60544%20108.61568zM665.6%20153.6H358.4a30.72%2030.72%200%200%200%200%2061.44h307.2a30.72%2030.72%200%200%200%200-61.44zM512%2071.68a10.24%2010.24%200%200%200-10.24%2010.24v10.24h20.48V81.92a10.24%2010.24%200%200%200-10.24-10.24z'%20fill='%23000000'%20p-id='3502'%3e%3c/path%3e%3c/svg%3e",u1=Object.freeze(Object.defineProperty({__proto__:null,default:h1},Symbol.toStringTag,{value:"Module"})),f1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752200265785'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4294'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M930.4%20337.3c-22.7-53.7-55.2-101.9-96.6-143.3-41.4-41.4-89.6-73.9-143.3-96.6C634.9%2073.9%20575.9%2062%20515.1%2062c-60.8%200-119.9%2011.9-175.5%2035.4-53.7%2022.7-101.9%2055.2-143.3%2096.6-41.4%2041.4-73.9%2089.6-96.6%20143.3-23.5%2055.6-35.4%20114.6-35.4%20175.5%200%2050.5%208.3%20100.1%2024.7%20147.4l66.1-22.9c-13.8-39.9-20.8-81.8-20.8-124.5%200-209.9%20170.8-380.7%20380.7-380.7%20209.9%200%20380.8%20170.8%20380.8%20380.7%200%2041.6-6.7%2082.5-19.8%20121.5l66.3%2022.3c15.6-46.2%2023.5-94.7%2023.5-143.9%200-60.8-11.9-119.8-35.4-175.4z'%20p-id='4295'%3e%3c/path%3e%3cpath%20d='M656.9%20422.2c0-76.9-62.6-139.5-139.5-139.5s-139.5%2062.6-139.5%20139.5%2062.6%20139.5%20139.5%20139.5%20139.5-62.6%20139.5-139.5z%20m-209%200c0-38.3%2031.2-69.5%2069.5-69.5s69.5%2031.2%2069.5%2069.5-31.2%2069.5-69.5%2069.5-69.5-31.2-69.5-69.5zM713.8%20627.8c-62-27.2-128.1-40.9-196.4-40.9-69%200-135.7%2014-198.2%2041.7-60.4%2026.7-114.1%2064.9-159.5%20113.3l-20.3%2021.7%2018.1%2023.6c41.2%2053.6%2094.8%2098%20155%20128.3%2063.2%2031.8%20131.3%2048%20202.6%2048%2071.9%200%20140.6-16.4%20204.2-48.8%2060.7-30.9%20114.5-76%20155.6-130.4l17.9-23.7-20.5-21.6c-45.3-47.6-98.6-85-158.5-111.2zM515.1%20893.5c-109%200-210.3-45.3-282.5-125.4%2077.7-71.9%20177.7-111.2%20284.8-111.2%20105.8%200%20204.9%2038.4%20282.2%20108.8-72.2%2081.6-174.3%20127.8-284.5%20127.8z'%20p-id='4296'%3e%3c/path%3e%3c/svg%3e",d1=Object.freeze(Object.defineProperty({__proto__:null,default:f1},Symbol.toStringTag,{value:"Module"})),p1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752200308077'%20class='icon'%20viewBox='0%200%201169%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='5263'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='18.265625'%20height='16'%3e%3cpath%20d='M787.333831%20588.946093a75.189984%2075.189984%200%200%200-75.093984%2075.092984%2075.189984%2075.189984%200%200%200%2075.093984%2075.093984%2075.165984%2075.165984%200%200%200%2075.067984-75.093984%2075.165984%2075.165984%200%200%200-75.067984-75.092984m0%20222.841953a147.919968%20147.919968%200%200%201-147.748968-147.748969c0-81.455982%2066.291986-147.747968%20147.748968-147.747968%2081.431983%200%20147.747968%2066.291986%20147.747968%20147.747968%200%2081.480982-66.315986%20147.748968-147.747968%20147.748969m89.452981%20102.106978c0.342%200.244%201.317%200.585%202.315999%200.585h0.122l71.484985-39.496992c-1.706-4.022999-9.605998-23.478995-9.605998-43.739991a113.858976%20113.858976%200%200%201%20107.739977-113.613975c0.853-4.729999%205.557999-31.524993%205.557998-51.639989s-4.704999-46.88399-5.558998-51.637989a113.858976%20113.858976%200%200%201-107.738977-113.565976c0-20.357996%207.923998-39.813991%209.605998-43.81299l-70.313985-39.057992-0.293-0.025a5.339999%205.339999%200%200%200-2.706%200.732%20196.753958%20196.753958%200%200%201-26.014994%2021.819995c-21.698995%2015.238997-42.153991%2022.967995-60.951987%2022.967995-18.919996%200-39.594991-7.874998-61.390987-23.405995a194.705958%20194.705958%200%200%201-26.160994-22.283995%205.777999%205.777999%200%200%200-2.729999-0.707h-0.245l-72.824985%2040.032992c1.706%204.046999%209.580998%2023.479995%209.580998%2043.73999A113.858976%20113.858976%200%200%201%20528.895886%20614.350088c-0.854%204.729999-5.509999%2031.524993-5.509998%2051.638989s4.655999%2046.90899%205.533998%2051.662989a113.858976%20113.858976%200%200%201%20107.763977%20113.589975c0%2020.334996-7.972998%2039.863991-9.679998%2043.788991l68.973985%2038.545992h0.146c1.024%200%201.95-0.365%202.317-0.585a200.849957%20200.849957%200%200%201%2026.428994-23.161995c22.088995-16.188997%2043.079991-24.429995%2062.414987-24.429995%2019.552996%200%2040.715991%208.387998%2062.950986%2024.917995%2014.920997%2011.068998%2025.258995%2022.185995%2026.550995%2023.575995m22.673995%20108.397976c-13.774997-0.025-27.135994-5.704999-35.765993-15.213996-11.775997-12.896997-49.005989-46.44599-79.530982-46.44599-30.280993%200-68.119985%2033.767993-78.993984%2045.54399-8.606998%209.386998-21.869995%2014.969997-35.498992%2014.969997-6.484999%200-12.604997-1.243-18.187996-3.706l-0.975-0.414-92.69698-51.833988-0.926-0.683a44.46999%2044.46999%200%200%201-14.920996-53.735989c0.049-0.146%208.532998-19.699996%208.532998-37.594992a98.376979%2098.376979%200%200%200-98.254979-98.254978h-3.900999c-15.505997%200-28.159994-13.799997-32.182993-35.108993-0.341-1.706-7.923998-42.178991-7.923999-74.044984%200-31.913993%207.557998-72.361984%207.899999-74.117984%204.119999-21.576995%2016.992996-35.449992%2032.816993-35.083993h3.266999a98.400979%2098.400979%200%200%200%2098.279979-98.303978c0-17.846996-8.484998-37.399992-8.558998-37.619992a44.34899%2044.34899%200%200%201%2015.067996-53.661989l0.95-0.658%2097.840979-53.759988%201.024-0.415c5.485999-2.364999%2011.507998-3.534999%2017.895996-3.534999%2013.604997%200%2026.891994%205.436999%2035.595992%2014.628997%2011.580998%2012.116997%2048.17699%2043.641991%2077.774984%2043.64199%2029.354994%200%2065.755986-30.914993%2077.287983-42.812991%208.654998-8.996998%2021.844995-14.335997%2035.302992-14.335997%206.509999%200%2012.653997%201.219%2018.285997%203.657l0.974999%200.414%2094.47698%2052.516988%200.95%200.658c16.895996%2011.751997%2023.332995%2034.889993%2014.945997%2053.735989-0.049%200.146-8.532998%2019.699996-8.532999%2037.545992a98.400979%2098.400979%200%200%200%2098.254979%2098.279978h3.291c15.774997-0.341%2028.719994%2013.506997%2032.816993%2035.107993%200.317%201.707%207.899998%2042.203991%207.899998%2074.069984%200%2031.889993-7.582998%2072.410984-7.948998%2074.117984-4.046999%2021.551995-16.992996%2035.424992-32.767993%2035.059993h-3.291a98.400979%2098.400979%200%200%200-98.254979%2098.278978c0%2017.846996%208.483998%2037.449992%208.556999%2037.619992a44.42199%2044.42199%200%200%201-15.017997%2053.710989l-0.927%200.683-96.133979%2053.100988-0.975%200.415a44.88499%2044.88499%200%200%201-17.846996%203.583999z%20m222.061952-705.339848a48.76199%2048.76199%200%201%201-97.523979%200V121.977194c0-13.457997-10.873998-24.453995-24.307995-24.453995h-877.859811c-13.262997%200-24.306995%2010.970998-24.306995%2024.453995v584.995874c0%2013.457997%2010.873998%2024.453995%2024.307995%2024.453995h219.500953a48.76199%2048.76199%200%201%201%200%2097.523979H48.907989A48.76199%2048.76199%200%200%201%200%20780.190052V48.76221C0%2021.822215%2021.893995%200.00022%2048.907989%200.00022h1023.706781a48.76199%2048.76199%200%200%201%2048.907989%2048.76199v268.189942zM219.427953%20975.23701c0-26.940994%2021.991995-48.76199%2048.981989-48.761989h194.607959a48.76199%2048.76199%200%201%201%200%2097.523979H268.433942a48.76199%2048.76199%200%200%201-49.005989-48.76199z'%20p-id='5264'%3e%3c/path%3e%3c/svg%3e",g1=Object.freeze(Object.defineProperty({__proto__:null,default:p1},Symbol.toStringTag,{value:"Module"})),m1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759014120'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3160'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M567.466667%20908.8H128c-17.066667%200-34.133333-17.066667-34.133333-34.133333V290.133333c0-17.066667%20170.666667-187.733333%20187.733333-187.733333h285.866667c17.066667%200%2034.133333%2017.066667%2034.133333%2034.133333v733.866667c0%2021.333333-17.066667%2038.4-34.133333%2038.4z%20m-430.933334-42.666667h422.4V149.333333H285.866667c-21.333333%2017.066667-128%20123.733333-149.333334%20149.333334v567.466666zM567.466667%20149.333333zM887.466667%20256h-170.666667c-25.6%200-42.666667-21.333333-42.666667-46.933333V153.6c0-25.6%2017.066667-46.933333%2042.666667-46.933333h170.666667c25.6%200%2042.666667%2021.333333%2042.666666%2046.933333v51.2c0%2029.866667-17.066667%2051.2-42.666666%2051.2z%20m-166.4-106.666667V209.066667h170.666666V153.6v-4.266667h-170.666666z%20m-4.266667%200zM887.466667%20785.066667h-170.666667c-25.6%200-42.666667-17.066667-42.666667-38.4V307.2c0-21.333333%2017.066667-38.4%2042.666667-38.4h170.666667c25.6%200%2042.666667%2017.066667%2042.666666%2038.4v435.2c0%2025.6-17.066667%2042.666667-42.666666%2042.666667z%20m0-477.866667l-170.666667%204.266667v430.933333l170.666667-4.266667V307.2z'%20fill='%23707070'%20p-id='3161'%3e%3c/path%3e%3cpath%20d='M802.133333%20917.333333c-8.533333%200-12.8-4.266667-17.066666-8.533333L678.4%20768c-4.266667-8.533333-4.266667-17.066667%200-21.333333%204.266667-8.533333%2012.8-12.8%2017.066667-12.8h213.333333c8.533333%200%2017.066667%204.266667%2017.066667%2012.8%204.266667%208.533333%204.266667%2017.066667%200%2021.333333l-106.666667%20140.8c-4.266667%208.533333-8.533333%208.533333-17.066667%208.533333z%20m-64-140.8l64%2085.333334%2064-85.333334h-128zM290.133333%20337.066667l-179.2-25.6c-4.266667%200-12.8-4.266667-17.066666-12.8-4.266667-8.533333%200-17.066667%204.266666-21.333334L247.466667%20128c8.533333-8.533333%2017.066667-8.533333%2025.6-8.533333%208.533333%204.266667%2012.8%208.533333%2012.8%2017.066666l25.6%20174.933334c0%208.533333%200%2012.8-4.266667%2017.066666-4.266667%208.533333-8.533333%208.533333-17.066667%208.533334z%20m-128-59.733334l106.666667%2012.8-17.066667-102.4-89.6%2089.6zM448%20456.533333H302.933333c-12.8%200-21.333333-8.533333-21.333333-21.333333s8.533333-21.333333%2021.333333-21.333333h145.066667c12.8%200%2021.333333%208.533333%2021.333333%2021.333333s-8.533333%2021.333333-21.333333%2021.333333zM460.8%20593.066667h-256c-12.8%200-21.333333-8.533333-21.333333-21.333334s8.533333-21.333333%2021.333333-21.333333h256c12.8%200%2021.333333%208.533333%2021.333333%2021.333333s-8.533333%2021.333333-21.333333%2021.333334zM460.8%20704h-256c-12.8%200-21.333333-8.533333-21.333333-21.333333s8.533333-21.333333%2021.333333-21.333334h256c12.8%200%2021.333333%208.533333%2021.333333%2021.333334s-8.533333%2021.333333-21.333333%2021.333333z'%20p-id='3162'%3e%3c/path%3e%3c/svg%3e",v1=Object.freeze(Object.defineProperty({__proto__:null,default:m1},Symbol.toStringTag,{value:"Module"})),w1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759021503'%20class='icon'%20viewBox='0%200%201170%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3318'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='36.5625'%20height='32'%3e%3cpath%20d='M1165.165714%20493.714286L890.88%2018.285714a36.571429%2036.571429%200%200%200-31.451429-18.285714h-548.571428a36.571429%2036.571429%200%200%200-31.451429%2018.285714L5.12%20493.714286a36.571429%2036.571429%200%200%200%200%2036.571428l274.285714%20475.428572a36.571429%2036.571429%200%200%200%2031.451429%2018.285714h548.571428a36.571429%2036.571429%200%200%200%2031.451429-18.285714l274.285714-475.428572a36.571429%2036.571429%200%200%200%200-36.571428zM78.994286%20512l227.474285-393.508571%2073.142858%20128a950.857143%20950.857143%200%200%201-82.651429%20210.651428q14.628571%2057.782857%2021.942857%20103.862857%2019.748571-30.72%2037.302857-64.365714v268.434286h73.142857V338.651429l3.657143-11.702858%2065.828572%20111.908572v21.211428H512l13.897143%2023.405715H444.708571v89.965714h73.142858V541.257143h40.228571L585.142857%20585.142857H484.937143v58.514286h135.314286l17.554285%2029.257143a23.405714%2023.405714%200%200%201-27.062857%2024.137143h-73.142857q9.508571%2044.617143%2013.897143%2073.142857a915.748571%20915.748571%200%200%200%2099.474286%200%2065.828571%2065.828571%200%200%200%2032.182857-10.24L804.571429%20950.857143H332.068571z%20m785.554285%20393.508571L714.605714%20658.285714v-14.628571h122.148572V585.142857H670.72l-25.6-43.885714h151.405714v32.914286h73.142857V483.474286H610.742857l-13.897143-23.405715h225.28v-131.657142H517.851429l-13.897143-23.405715h365.714285v-57.782857H707.291429l-18.285715-49.737143-84.845714%2014.628572%2015.36%2035.108571H468.845714l-7.314285-12.434286c0-7.314286%204.388571-13.165714%206.582857-20.48l-21.942857-4.388571L365.714286%2073.142857h473.234285l253.074286%20438.857143z%20m-292.571428-496.64v-29.257142h173.348571v29.988571z'%20p-id='3319'%3e%3c/path%3e%3c/svg%3e",b1=Object.freeze(Object.defineProperty({__proto__:null,default:w1},Symbol.toStringTag,{value:"Module"})),x1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759312255'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2472'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M381.525333%20351.765333v160c0%2023.402667%203.136%2053.888%209.408%2091.456L426.666667%20731.690667V652.8l76.181333-0.021333V601.6h50.794667v-0.021333l-25.386667%200.021333v-51.2l25.386667-0.021333V499.2h25.386666v51.178667h25.408V448h25.386667v102.378667l25.408%200.021333v51.2l-76.202667-0.021333v0.021333h253.994667l-0.021333%2051.178667L960%20652.8v232.277333h64v42.666667H0v-42.666667h21.333333c72.746667-160%20109.141333-284.437333%20109.141334-373.333333v-160h251.050666zM921.898667%20789.333333H515.562667v25.6h406.336V789.333333z%20m0-51.2H515.562667v25.6h406.336v-25.6zM353.877333%20234.666667c0%2041.216-63.210667%2072.106667-109.482666%2059.626666-34.709333-9.386667-70.016%2013.162667-84.053334%2022.186667l-3.029333%201.92c-2.581333%201.621333-3.712%202.154667-3.072%200.896%2038.890667-75.52%2090.154667-60.309333%2090.154667-60.309333%2069.354667%2024.32%20109.482667-24.32%20109.482666-24.32z%20m64-85.333334c0%2051.52-79.018667%2090.154667-136.853333%2074.517334-57.856-15.637333-117.013333%2039.68-112.682667%2031.274666%2048.597333-94.4%20112.682667-75.392%20112.682667-75.392C367.722667%20210.133333%20417.877333%20149.333333%20417.877333%20149.333333z'%20fill='%23000000'%20p-id='2473'%3e%3c/path%3e%3c/svg%3e",y1=Object.freeze(Object.defineProperty({__proto__:null,default:x1},Symbol.toStringTag,{value:"Module"})),k1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752204045219'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4010'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M345.216%20664.192a315.84%20315.84%200%200%201%2093.12-224.64%20315.84%20315.84%200%200%201%20100.992-68.16%20315.392%20315.392%200%200%201%20123.648-24.96%20315.392%20315.392%200%200%201%20158.72%2042.368V124.8a24.768%2024.768%200%200%200-24.768-24.768H559.296a32.64%2032.64%200%200%201%200.704%206.976v133.184c0%2019.2-15.616%2034.816-34.816%2034.816H395.072a34.816%2034.816%200%200%201-34.752-34.816v-133.12a32.64%2032.64%200%200%201%200.64-6.976H123.456a24.768%2024.768%200%200%200-24.768%2024.832v676.544c0%2013.76%2011.072%2024.832%2024.768%2024.832h266.24a316.224%20316.224%200%200%201-44.416-162.112z%20m317.76-257.792a257.792%20257.792%200%201%200%200%20515.52%20257.792%20257.792%200%200%200%200-515.52z%20m112.256%20293.376a104.704%20104.704%200%200%201-107.328%2025.216l-68.48%2068.48a46.528%2046.528%200%200%201-65.728-65.664l68.48-68.48a104.512%20104.512%200%200%201%20140.8-129.28L675.904%20597.12l10.88%2042.88%2043.328%2011.328%2067.072-67.136c16.64%2038.336%209.216%2084.416-21.952%20115.584z%20m-220.16%2051.456a20.928%2020.928%200%201%200%2041.856%200%2020.928%2020.928%200%200%200-41.856%200z'%20p-id='4011'%3e%3c/path%3e%3c/svg%3e",S1=Object.freeze(Object.defineProperty({__proto__:null,default:k1},Symbol.toStringTag,{value:"Module"})),C1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752024926580'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1794'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M896%20810.666667h85.333333v85.333333H42.666667v-85.333333h85.333333V170.666667a42.666667%2042.666667%200%200%201%2042.666667-42.666667h426.666666a42.666667%2042.666667%200%200%201%2042.666667%2042.666667v640h85.333333V384h128a42.666667%2042.666667%200%200%201%2042.666667%2042.666667v384zM298.666667%20469.333333v85.333334h170.666666v-85.333334H298.666667z%20m0-170.666666v85.333333h170.666666V298.666667H298.666667z'%20fill='%23000000'%20p-id='1795'%3e%3c/path%3e%3c/svg%3e",_1=Object.freeze(Object.defineProperty({__proto__:null,default:C1},Symbol.toStringTag,{value:"Module"})),O1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753777755003'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2702'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M393.6%20768l105.6-105.6L605.6%20768l46.4-46.4L545.6%20616l105.6-105.6-45.6-46.4-105.6%20106.4L393.6%20464l-46.4%2046.4L453.6%20616%20348%20722.4l45.6%2045.6z%20m420.8-608h-43.2V73.6H684V160H336.8V73.6H250.4V160h-43.2c-48%200-86.4%2039.2-86.4%2087.2l-0.8%20608c0%2048%2038.4%2087.2%2087.2%2087.2h608c48%200%2087.2-39.2%2087.2-87.2v-608c-0.8-48-40-87.2-88-87.2z%20m0%20695.2h-608V377.6h608v477.6z'%20fill=''%20p-id='2703'%3e%3c/path%3e%3c/svg%3e",M1=Object.freeze(Object.defineProperty({__proto__:null,default:O1},Symbol.toStringTag,{value:"Module"})),D1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753777764300'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2863'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M709.6%20514.4l-46.4-46.4-212.8%20213.6-92.8-92.8-45.6%2046.4%20139.2%20139.2c-0.8-0.8%20258.4-260%20258.4-260z%20m108-351.2h-44v-88H686.4v87.2H337.6V75.2H250.4v87.2h-44c-48.8%200-87.2%2039.2-87.2%2087.2l-0.8%20611.2c0%2048%2039.2%2087.2%2087.2%2087.2h611.2c48%200%2087.2-39.2%2087.2-87.2V250.4c0.8-48-38.4-87.2-86.4-87.2z%20m0%20697.6H206.4v-480h611.2v480z'%20fill=''%20p-id='2864'%3e%3c/path%3e%3c/svg%3e",T1=Object.freeze(Object.defineProperty({__proto__:null,default:D1},Symbol.toStringTag,{value:"Module"})),A1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753758984014'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2517'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M733.090909%20744.727273h-442.181818a34.909091%2034.909091%200%201%200%200%2069.818182h442.181818a34.909091%2034.909091%200%201%200%200-69.818182m-297.681454-229.818182a52.037818%2052.037818%200%200%200%2050.129454-38.050909L512%20381.928727l26.461091%2094.929455a52.037818%2052.037818%200%200%200%20100.119273%200.372363l70.283636-244.736a34.955636%2034.955636%200%200%200-29.672727-44.357818c-17.268364-2.048-33.117091%2010.146909-37.911273%2026.856728l-52.433455%20182.574545-43.659636-153.227636a35.025455%2035.025455%200%200%200-67.374545%200.186181l-42.658909%20153.041455-52.433455-182.574545c-4.794182-16.709818-20.642909-28.904727-37.911273-26.856728a34.955636%2034.955636%200%200%200-29.672727%2044.357818l70.283636%20244.736a52.014545%2052.014545%200%200%200%2049.989819%2037.678546M733.090909%20605.090909h-442.181818a34.909091%2034.909091%200%201%200%200%2069.818182h442.181818a34.909091%2034.909091%200%201%200%200-69.818182m139.636364%20116.363636a34.909091%2034.909091%200%200%200%2034.909091-34.90909V93.090909a69.818182%2069.818182%200%200%200-69.818182-69.818182H186.181818a69.818182%2069.818182%200%200%200-69.818182%2069.818182v837.818182a69.818182%2069.818182%200%200%200%2069.818182%2069.818182h651.636364a69.818182%2069.818182%200%200%200%2069.818182-69.818182v-81.454546a34.909091%2034.909091%200%201%200-69.818182%200V930.909091H186.181818V93.090909h651.636364v593.454546a34.909091%2034.909091%200%200%200%2034.909091%2034.90909'%20p-id='2518'%3e%3c/path%3e%3c/svg%3e",B1=Object.freeze(Object.defineProperty({__proto__:null,default:A1},Symbol.toStringTag,{value:"Module"})),P1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759028609'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3475'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M867.288842%2064.648392%20157.782559%2064.648392c-16.954137%200-30.699186%2013.745049-30.699186%2030.699186L127.083373%20928.244122c0%2016.954137%2013.745049%2030.699186%2030.699186%2030.699186l709.506283%200c16.954137%200%2030.699186-13.745049%2030.699186-30.699186L897.988028%2095.347578C897.988028%2078.392418%20884.242979%2064.648392%20867.288842%2064.648392zM574.652945%20126.046764l131.487683%200%200%20273.587052-53.983495-32.547277c-10.112312-6.095835-22.824845-5.852288-32.694633%200.62524l-44.809555%2029.408797L574.652945%20126.046764zM513.254573%20126.046764l0%20327.943031c0%2011.281951%206.187933%2021.655206%2016.116049%2027.01426%204.562922%202.463098%209.577123%203.684926%2014.58109%203.684926%205.881964%200%2011.749602-1.688455%2016.84669-5.033643l76.202543-50.012044%2083.98888%2050.637284c9.478885%205.715165%2021.305235%205.884011%2030.946826%200.440022%209.640568-5.445012%2015.60235-15.658631%2015.60235-26.730805L767.539001%20126.046764l69.050656%200%200%20642.611733L188.481745%20768.658498%20188.481745%20126.046764%20513.254573%20126.046764zM188.481745%20897.544937l0-67.488067%20648.107911%200%200%2067.488067L188.481745%20897.544937z'%20p-id='3476'%3e%3c/path%3e%3c/svg%3e",E1=Object.freeze(Object.defineProperty({__proto__:null,default:P1},Symbol.toStringTag,{value:"Module"})),V1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752025080767'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2430'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M976%2016H48A48%2048%200%200%200%200%2064v720a48%2048%200%200%200%2048%2048h928a48%2048%200%200%200%2048-48V64a48%2048%200%200%200-48-48zM303.12%20272.8a8%208%200%200%201%208-8%20165.76%20165.76%200%200%201%2094.4%2035.44%208%208%200%200%201%201.04%2011.76l-39.44%2040a8.8%208.8%200%200%201-11.28%200.88%2093.84%2093.84%200%200%200-44.32-16%209.12%209.12%200%200%201-8-8.8z%20m92.16%20298.16a169.52%20169.52%200%200%201-64.48%2026.56h-0.4a153.76%20153.76%200%200%201-27.28%202.4%20168%20168%200%200%201-33.36-332.08%208%208%200%200%201%209.44%208v57.2a8.8%208.8%200%200%201-6.16%208A96%2096%200%200%200%20303.12%20528a93.6%2093.6%200%200%200%2043.2-10.72%208.8%208.8%200%200%201%2010.4%201.36l39.52%2040a8%208%200%200%201-0.96%2012.32z%20m34.8-29.84a8%208%200%200%201-11.84%200l-39.04-39.04a9.12%209.12%200%200%201-0.48-11.84A94.8%2094.8%200%200%200%20384%20381.36a9.04%209.04%200%200%201%200.96-11.12l39.6-40a8%208%200%200%201%2012%200.64%20168%20168%200%200%201-6.24%20210.08z%20m190.56%208.56a33.44%2033.44%200%201%201-66.88%200V415.44a33.44%2033.44%200%201%201%2066.88%200z%20m133.68%200a33.44%2033.44%200%201%201-66.88%200V289.6a33.44%2033.44%200%201%201%2066.88%200z%20m133.68%200a33.44%2033.44%200%201%201-66.88%200V289.6a33.44%2033.44%200%201%201%2066.88%200zM800%20936H240a40%2040%200%200%200%200%2080h560a40%2040%200%200%200%200-80z'%20p-id='2431'%3e%3c/path%3e%3c/svg%3e",z1=Object.freeze(Object.defineProperty({__proto__:null,default:V1},Symbol.toStringTag,{value:"Module"})),L1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752025102384'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2587'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M744.459278%20327.891539v-30.371913c0-19.963561%2016.323482-36.17329%2036.457671-36.173291h151.120177l1.82004-0.341257c20.191066%200%2036.514548%2016.152853%2036.514548%2036.17329v144.636285a319.075722%20319.075722%200%200%200-98.566529-72.34658%20408.371423%20408.371423%200%200%200-127.345907-41.576534z%20m-463.200121%20343.134372l-102.149732%201.080649v36.17329h105.107297c-2.27505%2027.186844-2.27505%2054.544317%200%2081.731161%205.061986%2035.661404%2013.820927%2070.69717%2026.276824%20104.538534H28.671763V74.735383C28.671763%2033.613859%2062.342499%200.284381%20103.919032%200.284381h526.617131c41.576533%200%2075.190393%2033.329478%2075.190393%2074.451002v250.994859s-198.896221-2.559431-319.360102%20121.828912a403.025056%20403.025056%200%200%200-105.107297%20223.466757zM179.109425%20149.243261H103.919032v75.929784h75.190393V149.243261z%20m0%20148.958879H103.919032v75.986661h75.190393V298.20214z%20m0%20149.015756H103.919032v75.929784h75.190393V447.217896z%20m150.32391-297.974635H254.299818v75.929784h75.133517V149.243261z%20m0%20148.958879H254.299818v75.986661h75.133517V298.20214z%20m0%20149.015756H254.299818v75.929784h75.133517V447.217896z%20m225.969312-111.363683s25.139299-7.621417%2039.415236-11.20462c14.219061-3.64008%2036.457672-7.223283%2036.457672-7.223283l-0.739392-17.745387H555.402647v36.17329z%20m-0.398134-110.681168h76.271042l-1.080649-75.929784H555.004513v75.929784zM404.623727%20373.44941h76.271042L479.81412%20298.20214H404.623727v75.24727z%20m0-148.276365h76.271042L479.81412%20149.243261H404.623727v75.929784z%20m281.082392%20185.13217c170.913109%200%20309.463637%20137.29925%20309.463636%20306.6767%200%20169.320575-138.550527%20306.619824-309.463636%20306.619825-170.969986%200-309.520513-137.29925-309.520513-306.619825%200-169.377451%20138.550527-306.676701%20309.520513-306.6767z%20m-127.744041%20481.684899L685.706119%20824.705519l128.82469%2067.625853-24.456785-142.816246%20104.367906-100.500321-144.124399-20.646076-64.611412-129.450328-63.530763%20129.791586-144.181275%2020.646076%20104.424781%20100.557197-24.456784%20142.076854z'%20p-id='2588'%3e%3c/path%3e%3c/svg%3e",R1=Object.freeze(Object.defineProperty({__proto__:null,default:L1},Symbol.toStringTag,{value:"Module"})),N1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752130138508'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2207'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M182.857%20164.571h658.286V512h73.143V128c0-20.114-16.457-36.571-36.572-36.571H146.286c-20.115%200-36.572%2016.457-36.572%2036.571v768c0%2020.114%2016.457%2036.571%2036.572%2036.571H510.17V859.43H182.857V164.57z'%20p-id='2208'%3e%3c/path%3e%3cpath%20d='M585.143%20475.429h-256v73.142h256V475.43z%20m109.714-164.572H329.143V384h365.714v-73.143zM475.43%20640H329.143v73.143h146.286V640z%20m448%2073.143h-69.486c14.628-18.286%2023.771-40.229%2023.771-64%200-54.857-45.714-100.572-100.571-100.572S676.57%20594.286%20676.57%20649.143c0%2023.771%209.143%2045.714%2023.772%2064h-69.486c-14.628%200-27.428%2012.8-27.428%2027.428v73.143c0%2014.629%2012.8%2027.429%2027.428%2027.429H923.43c14.628%200%2027.428-12.8%2027.428-27.429v-73.143c0-14.628-12.8-27.428-27.428-27.428zM896%20786.286H658.286V768h82.285C755.2%20768%20768%20755.2%20768%20740.571v-29.257c0-9.143-5.486-18.285-12.8-23.771-14.629-9.143-23.771-23.772-23.771-38.4%200-25.6%2020.114-45.714%2045.714-45.714s45.714%2020.114%2045.714%2045.714c0%2016.457-9.143%2031.086-23.771%2038.4-9.143%205.486-12.8%2014.628-12.8%2023.771v29.257c0%2014.629%2012.8%2027.429%2027.428%2027.429H896v18.286z%20m-9.143%2091.428H667.43v54.857h219.428v-54.857z'%20p-id='2209'%3e%3c/path%3e%3c/svg%3e",I1=Object.freeze(Object.defineProperty({__proto__:null,default:N1},Symbol.toStringTag,{value:"Module"})),H1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753766097595'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3186'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M201.813333%20776.32h620.373334a37.12%2037.12%200%200%200%2035.2-42.666667l-14.08-77.653333a71.04%2071.04%200%200%200-66.986667-56.32h-169.173333L593.066667%20512a208%20208%200%200%200%20130.56-193.92%20211.626667%20211.626667%200%200%200-423.04%200A207.786667%20207.786667%200%200%200%20430.933333%20512l-10.666666%2088.106667h-168.96a67.84%2067.84%200%200%200-66.986667%2056.32L170.666667%20733.866667a32.853333%2032.853333%200%200%200%2031.146666%2042.453333z%20m627.413334%2070.4H194.773333a35.413333%2035.413333%200%200%200%200%2070.613333h634.453334a35.413333%2035.413333%200%200%200%200-70.613333z'%20p-id='3187'%3e%3c/path%3e%3c/svg%3e",$1=Object.freeze(Object.defineProperty({__proto__:null,default:H1},Symbol.toStringTag,{value:"Module"})),W1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1751524519735'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2598'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M798.72%20320v446.976H223.232V320H63.488v532.48c0%2041.472%2033.792%2075.264%2075.264%2075.264h745.472c41.472%200%2075.264-33.792%2075.264-75.264v-532.48H798.72z'%20p-id='2599'%3e%3c/path%3e%3cpath%20d='M608.256%20494.592z%20m-10.24-4.608z'%20p-id='2600'%3e%3c/path%3e%3cpath%20d='M819.2%2096.256H203.776c-41.472%200-75.264%2033.792-75.264%2075.264V286.72h128v448h510.464V286.72h128V171.008c-0.512-41.472-34.304-74.752-75.776-74.752z%20m-154.112%20493.056l-12.8%2012.8c-12.8%2012.8-33.28%2012.8-46.08%200L477.184%20473.088c-33.792%2011.776-72.704%204.608-99.328-22.528-27.136-27.136-34.304-66.048-22.528-99.84l38.4%2038.4c12.8%2012.8%2033.28%2012.8%2046.08%200l12.8-12.8c12.8-12.8%2012.8-33.28%200-46.08L414.208%20291.84c33.792-11.776%2072.704-4.096%2099.84%2022.528%2027.136%2027.136%2034.304%2066.048%2022.528%2099.84l128.512%20128.512c12.288%2013.312%2012.288%2033.792%200%2046.592z'%20p-id='2601'%3e%3c/path%3e%3c/svg%3e",F1=Object.freeze(Object.defineProperty({__proto__:null,default:W1},Symbol.toStringTag,{value:"Module"})),G1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752201011725'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4040'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M567.68%2072.277l320.725%20170.667a94.805%2094.805%200%200%201%2050.262%2083.627v371.626c0%2035.158-19.414%2067.414-50.432%2083.798L567.467%20951.936a118.43%20118.43%200%200%201-110.934%200L135.765%20782.08a94.805%2094.805%200%200%201-50.432-83.797V326.656c0-35.072%2019.328-67.285%2050.262-83.755L456.32%2072.277a118.528%20118.528%200%200%201%20111.36%200z%20m123.35%20294.144L512.596%20469.333h-1.237L332.97%20366.421a42.667%2042.667%200%201%200-42.666%2073.899l179.03%20103.381v181.632a42.667%2042.667%200%200%200%2037.674%2042.368L512%20768a42.667%2042.667%200%200%200%2042.667-42.667V543.66L733.696%20440.32a42.667%2042.667%200%200%200-42.667-73.899z'%20p-id='4041'%3e%3c/path%3e%3c/svg%3e",j1=Object.freeze(Object.defineProperty({__proto__:null,default:G1},Symbol.toStringTag,{value:"Module"})),q1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752200860282'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2792'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M1024%20806.4V25.6c0-12.8-12.8-25.6-25.6-25.6H25.6C12.8%200%200%2012.8%200%2025.6v780.8h435.2v166.4H236.8v51.2h556.8v-51.2H588.8v-166.4H1024zM320%20281.6c-12.8-12.8-19.2-25.6-32-32l44.8-76.8c44.8%2025.6%2096%2012.8%20121.6-32%2012.8-12.8%2012.8-32%2012.8-44.8h89.6c0%2051.2%2038.4%2083.2%2089.6%2083.2%2012.8%200%2032-6.4%2044.8-12.8l44.8%2076.8c-44.8%2025.6-57.6%2076.8-32%20115.2%2012.8%2012.8%2019.2%2025.6%2032%2032l-44.8%2076.8c-44.8-19.2-96-6.4-121.6%2038.4-12.8%2012.8-12.8%2025.6-12.8%2044.8H467.2c0-44.8-38.4-83.2-89.6-83.2-12.8%200-32%206.4-44.8%2012.8l-44.8-83.2c38.4-25.6%2051.2-76.8%2032-115.2zM102.4%20704v-51.2h825.6v51.2H102.4zM512%20416c51.2%200%2096-38.4%2096-89.6S569.6%20236.8%20512%20236.8c-51.2%200-96%2038.4-96%2089.6%200%2051.2%2044.8%2089.6%2096%2089.6z'%20p-id='2793'%3e%3c/path%3e%3c/svg%3e",U1=Object.freeze(Object.defineProperty({__proto__:null,default:q1},Symbol.toStringTag,{value:"Module"})),Y1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753777785512'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3343'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M730.55%20249.234a29.038%2029.038%200%200%201-30.39-25.746v-120.1c0-16.421%2012.873-29.733%2028.672-29.77l1.719%200.037h20.955c15.982-0.658%2029.44%2012.105%2030.281%2028.635v121.271a28.891%2028.891%200%200%201-30.28%2027.429l-20.956-1.756z%20m-430.445%200a28.197%2028.197%200%200%201-32.768-23.369l-0.366-2.377v-120.1a28.855%2028.855%200%200%201%2027.136-30.245%2027.136%2027.136%200%200%201%205.998%200.439h20.444c16.018-0.659%2029.732%2012.032%2030.902%2028.635v121.271c-1.206%2016.42-14.994%2028.709-30.72%2027.465h-0.219l-20.407-1.719z%20m579.401-78.884c30.391-1.646%2056.32%2022.637%2057.93%2054.162a78.994%2078.994%200%200%201%200%205.888v655.653c-2.305%2032.768-29.002%2057.929-60.673%2057.16H168.777c-31.268%200.366-57.307-24.831-59.063-57.197V230.363c0-33.17%2025.93-60.086%2057.93-60.086a11.337%2011.337%200%200%201%201.133%200.036h62.354v53.212c0.878%2038.217%2031.488%2068.498%2068.352%2067.51h21.614c35.913-0.292%2065.06-30.28%2065.646-67.547v-51.456H662.6v51.493c0%2038.217%2029.879%2069.23%2066.78%2069.23h21.504c36.9%201.572%2067.986-28.124%2069.449-66.305l0.073-2.889v-51.529l59.1-1.682zM168.777%20886.016h709.669V371.09H168.777v514.926z'%20p-id='3344'%3e%3c/path%3e%3cpath%20d='M305.445%20687.799h69.01V570.55h151.698v-72.96H400.165a623.799%20623.799%200%200%201-64.732%2091.83%20220.965%20220.965%200%200%200-26.587-22.966%20441.82%20441.82%200%200%200%2091.282-147.164l35.145%209.436c-5.998%2013.531-12.288%2026.66-18.87%2039.35H711.24v29.514H560.823v72.96h143.14v28.708h-143.14v88.54H730.55v29.513H560.823v110.665h-34.706V717.312H305.445v-29.513z%20m102.875%200h117.87v-88.54H408.32v88.54z'%20p-id='3345'%3e%3c/path%3e%3c/svg%3e",K1=Object.freeze(Object.defineProperty({__proto__:null,default:Y1},Symbol.toStringTag,{value:"Module"})),X1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759007967'%20class='icon'%20viewBox='0%200%201099%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3000'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='34.34375'%20height='32'%3e%3cpath%20d='M214.47633%20310.45989h112.733945a37.577982%2037.577982%200%201%201%200%2075.155963h-112.733945a37.577982%2037.577982%200%201%201%200-75.155963z%20m296.715743%200h112.733945a37.577982%2037.577982%200%201%201%200%2075.155963h-112.733945a37.577982%2037.577982%200%201%201%200-75.155963zM214.47633%20472.590092h112.733945a37.577982%2037.577982%200%201%201%200%2075.155963h-112.733945a37.577982%2037.577982%200%201%201%200-75.155963z%20m0%20162.111413h112.733945a37.577982%2037.577982%200%201%201%200%2075.155963h-112.733945a37.577982%2037.577982%200%201%201%200-75.155963z'%20fill='%23000000'%20p-id='3001'%3e%3c/path%3e%3cpath%20d='M426.641615%20837.124697H75.193541v-695.19266h108.036698v28.183486a37.577982%2037.577982%200%201%200%2075.155963%200v-28.183486h126.825688v28.183486a37.577982%2037.577982%200%201%200%2075.155963%200v-28.183486h126.844477v28.183486a37.577982%2037.577982%200%201%200%2075.155964%200v-28.183486h108.027302v177.912954a37.577982%2037.577982%200%201%200%2075.155964%200V141.941431c0-41.448514-33.726239-75.155963-75.155964-75.155963h-108.036697v-28.183486a37.577982%2037.577982%200%201%200-75.155963%200v28.183486h-126.825688v-28.183486a37.577982%2037.577982%200%201%200-75.155964%200v28.183486H258.386202v-28.183486a37.577982%2037.577982%200%201%200-75.155963%200v28.183486h-108.036698c-41.429725%200-75.155963%2033.716844-75.155963%2075.155963v695.192661c0%2041.429725%2033.726239%2075.155963%2075.155963%2075.155963h351.448074a37.577982%2037.577982%200%201%200%200-75.155963z'%20fill='%23000000'%20p-id='3002'%3e%3c/path%3e%3cpath%20d='M779.743119%20385.174312c-176.128%200-319.412844%20143.284844-319.412844%20319.412844%200%20176.128%20143.284844%20319.412844%20319.412844%20319.412844%20176.128%200%20319.412844-143.284844%20319.412844-319.412844%200-176.128-143.294239-319.412844-319.412844-319.412844z%20m0%20563.669725c-134.679486%200-244.256881-109.577394-244.25688-244.256881s109.577394-244.256881%20244.25688-244.256881%20244.256881%20109.577394%20244.256881%20244.256881-109.577394%20244.256881-244.256881%20244.256881z'%20fill='%23000000'%20p-id='3003'%3e%3c/path%3e%3cpath%20d='M814.54033%20864.293578v-54.957798H939.449541v-32.702239H814.54033v-74.225908h119.563743v-32.692844H814.54033v-54.441101H939.449541v-32.692844H687.395229L688.945321%20563.669725h-32.899523c-3.44778%2023.448661-8.389284%2040.706349-14.815119%2051.782458-4.255706%207.186789-11.320367%2013.546862-21.193982%2019.089615v36.40367c14.815119-4.359046%2026.417321-10.484257%2034.797211-18.375633%208.849615-8.248367%2016.834936-20.677284%2023.955964-37.296147h103.88433v54.431706H684.295046c-10.446679%200-19.869358%204.302679-28.249248%2012.908037-8.267156%208.718092-12.400734%2020.141798-12.400734%2034.289908v59.730202H620.036697v32.692844h162.637505V864.293578h31.866128zM779.743119%20779.743119H676.40367v-50.82422c0-8.586569%201.719193-14.730569%205.148183-18.422605%203.663853-3.945688%2010.136661-5.909138%2019.446606-5.909138H779.743119v75.155963z'%20fill='%23000000'%20p-id='3004'%3e%3c/path%3e%3c/svg%3e",Q1=Object.freeze(Object.defineProperty({__proto__:null,default:X1},Symbol.toStringTag,{value:"Module"})),J1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753766077288'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2709'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M728%20103.583H145.25c-46.35%201.35-83.25%2039.15-83.25%2085.5v675.45c0%2046.35%2036.9%2084.15%2083.25%2085.95H467.9c-47.7-60.3-73.35-135-73.35-211.95-1.8-185.4%20147.15-337.05%20332.55-338.85h0.45c27.9%200%2056.25%204.05%2083.25%2011.25v-222.75c-0.45-45.9-36.9-83.25-82.8-84.6z%20m-395.55%20391.95h-166.5v-77.85H332.9v77.85z%20m374.85-198.45H165.95v-75.6h540.9l0.45%2075.6z'%20p-id='2710'%3e%3c/path%3e%3cpath%20d='M727.55%20486.533c-131.85-2.25-240.3%20103.05-242.1%20234.45s103.05%20240.3%20234.45%20242.1%20240.3-103.05%20242.1-234.45v-4.05c1.35-130.05-103.5-237.15-234.45-238.05z%20m-42.75%20380.25a17.111%2017.111%200%200%201-24.3%200l-99.9-98.1c-5.85-5.85-5.85-14.85%200-20.7l21.15-20.7c5.85-5.85%2015.3-5.85%2021.15%200l68.4%2067.5%20195.3-198c5.85-5.85%2014.85-5.85%2020.7%200l20.7%2021.15c5.85%205.85%205.85%2015.3%200%2021.15l-223.2%20227.7z'%20p-id='2711'%3e%3c/path%3e%3c/svg%3e",Z1=Object.freeze(Object.defineProperty({__proto__:null,default:J1},Symbol.toStringTag,{value:"Module"})),e3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759318614'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2633'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M990.263463%20965.191663c-4.679457-35.882495-21.525502-63.876334-54.148857-80.555577-19.705657-10.060083-40.144446-18.767768-60.584233-27.27569-39.090694-16.311678-78.048546-32.891038-119.212784-43.72021-21.693303-5.71523-42.533616-14.289074-61.302383-26.990028-25.737512-17.41537-42.082151-40.796673-43.285725-72.616981-1.253515-33.023881%206.283557-62.021531%2037.704336-80.254932%2014.623677-8.489943%2024.767661-21.827144%2030.935355-37.671376%205.615348-14.405935%2010.277825-29.196415%2015.69341-43.70323%201.102694-2.892574%203.108318-6.468338%205.648309-7.604991%2012.233509-5.498487%2021.4426-14.138252%2027.693196-25.687572%2010.714308-19.837501%2014.95928-41.18821%2011.983804-63.55871-1.471257-11.054905-4.914179-21.951996-13.570924-29.639889-4.11113-3.668654-4.880219-7.328319-4.780338-12.200548%200.200762-10.696329%200.066921-21.409639%200.066921-31.913196h-481.277892c0%2011.974815%200.166802%2023.289412-0.116862%2034.596018-0.07591%202.991456-0.876961%206.417398-2.532001%208.832537-8.114388%2011.849963-13.454063%2024.79363-14.723558%2039.016782-2.707792%2030.359038%205.364645%2057.591778%2030.667672%2075.675357%2010.135993%207.236428%2015.952104%2014.573736%2018.634925%2025.804433%200.794059%203.34304%202.030595%206.585199%203.167248%209.84334%208.198289%2023.548106%2018.333283%2045.726833%2039.985635%2060.517313%205.849071%203.994269%2010.68734%209.459794%2015.994053%2014.273093%207.720854%206.969744%2013.587904%2015.525609%2015.016213%2025.703552%202.005624%2014.306053%202.790694%2028.846829%203.33405%2043.336665%200.644237%2017.264549-5.381625%2032.439573-16.929945%2045.224428-19.746609%2021.861104-44.121735%2037.503574-71.472336%2047.280993-41.957299%2014.958281-84.758597%2027.625276-126.966599%2041.948309-26.089096%208.857508-52.228132%2017.882817-77.472229%2028.813868-35.589841%2015.408747-57.457937%2042.166051-61.444215%2081.992873-0.02497%200.267683-0.066921%200.534367-0.10088%200.80205-1.186594%2011.197735-3.618713%2022.26163-5.481507%2033.392445%200%208.373081%200%2016.747162%200.01698%2025.136224h435.041662c5.139911-39.677%2015.65146-78.098487%2027.459473-116.187368%201.762912-5.716229%201.194585-9.057271-3.30109-13.2533-6.233616-5.83309-11.54832-12.717935-16.746163-19.537856-5.071992-6.685081-5.047021-14.222153-1.63806-21.693303%206.55923-14.406934%2017.773946-24.634818%2030.425959-33.459365%201.62108-1.119674%204.203021-1.152635%206.342487-1.202576%201.378367-0.01698%202.766723%200.032961%204.162069%200.065922%200.442476-0.01698%200.885951-0.032961%201.303456-0.032961%203.776526-0.066921%207.588011%200.149823%2011.397499%200.267683%202.273307-0.065922%204.513653-0.183782%206.753001-0.551347%203.441923-0.552346%206.651121-0.585307%209.726478-0.384544%2015.241945-0.969851%2026.572523%206.350477%2037.369733%2016.895985%2021.358699%2020.874273%2022.394472%2038.890931%200.567328%2059.296759-7.42021%206.969744-7.603993%2012.585092-5.564409%2021.542482%208.20528%2035.933434%2015.408747%2072.132554%2022.962799%20108.248771h395.557435v-41.430922c-0.985832-5.81611-2.189406-11.5653-2.958496-17.38141z%20m-163.216658-613.325473c1.72196%200%203.475883-0.175792%205.164882%200.032961%204.96412%200.635248%206.834904-1.63806%206.233616-6.342487-1.6041-12.434271-2.390169-25.044333-5.01506-37.252872-4.612536-21.45059-17.681056-35.297188-39.708962-39.850793-1.437297-0.300644-2.841634-0.727139-4.295911-1.061743-7.470151-1.688-10.562488-5.915992-11.247676-13.988429-1.353397-16.144875-2.340228-32.707256-6.784963-48.140974-1.454277-5.005071-3.042396-9.785408-4.646496-14.464865a0.576317%200.576317%200%200%201-0.065922-0.166803c-34.762821-99.666938-109.201643-125.671134-149.780574-139.234067-5.196844-1.746931-7.620972%200.777079-9.225072%204.554604-3.408962%207.913626-7.253408%2015.794291-9.259032%2024.099453-10.227884%2042.625507-19.921402%2085.385854-29.815682%20128.095262-0.384544%201.62108-0.969851%203.184228-1.471257%204.771348-1.152635-1.796871-1.152635-3.276119-1.152634-4.746377%200.049941-56.222401%200.082902-112.451793%200.082901-168.682185%200-4.922169%200.133841-9.89428-0.434485-14.765509-1.538178-13.354181-11.949845-23.021729-25.336987-23.323372-13.068519-0.283664-26.147027-0.216743-39.207555%200.049941-10.637399%200.208753-18.542036%205.615348-22.478373%2015.266915-2.156446%205.297724-2.874595%2011.498379-2.891575%2017.29751-0.200762%2056.473104-0.108871%20112.945208-0.108871%20169.417314v7.270387c-2.172427-2.657852-2.732763-5.256773-3.32606-7.855694-8.348111-36.500762-16.336648-73.084426-25.244097-109.452346-3.083348-12.593083-8.31515-24.684759-12.901717-36.876317-1.538178-4.061189-4.028228-6.793952-9.668547-5.079983-90.240104%2027.492433-158.837845%20105.407138-161.153102%20199.951144-0.291655%2011.598261-1.762912%2013.17739-12.876747%2016.445519-2.841634%200.835011-5.674278%201.64605-8.514913%202.48206-14.189192%204.161071-23.92466%2013.295251-29.765741%2026.723344-7.446179%2017.113728-8.464973%2035.247247-8.941408%2054.826055%204.95513%200%208.849517%200%2012.734915%200.00799%20203.704697-0.006992%20407.408396-0.006992%20611.103105-0.006991z'%20p-id='2634'%3e%3c/path%3e%3c/svg%3e",t3=Object.freeze(Object.defineProperty({__proto__:null,default:e3},Symbol.toStringTag,{value:"Module"})),i3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753777770979'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3024'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M905.8%20974.5H116.1c-28.2%200-51.1-22.9-51.1-51.1V100.7c0-28.2%2022.9-51.1%2051.1-51.1h789.7c28.2%200%2051.1%2022.9%2051.1%2051.1v822.7c0%2028.1-22.9%2051.1-51.1%2051.1z%20m-760.8-80h731.9v-765H145v765z'%20p-id='3025'%3e%3c/path%3e%3cpath%20d='M673.6%20269.5H230.8c-22.1%200-40-17.9-40-40s17.9-40%2040-40h442.7c22.1%200%2040%2017.9%2040%2040s-17.8%2040-39.9%2040zM673.6%20434.4H230.8c-22.1%200-40-17.9-40-40s17.9-40%2040-40h442.7c22.1%200%2040%2017.9%2040%2040s-17.8%2040-39.9%2040zM433.5%20599.3H230.8c-22.1%200-40-17.9-40-40s17.9-40%2040-40h202.7c22.1%200%2040%2017.9%2040%2040s-17.9%2040-40%2040z'%20p-id='3026'%3e%3c/path%3e%3cpath%20d='M681.1%20833.5h-66.5v-44.8c-13.2-3.3-25.9-8.6-37.6-15.6l-31.7%2031.7-47-47%2031.7-31.7c-7-11.7-12.3-24.4-15.6-37.6h-44.8V622h44.8c3.3-13.2%208.6-25.9%2015.6-37.6l-31.7-31.7%2047-47%2031.7%2031.7c11.7-7%2024.4-12.3%2037.6-15.6V477h66.5v44.8c13.2%203.3%2025.9%208.6%2037.6%2015.6l31.7-31.7%2047%2047-31.7%2031.7c7%2011.7%2012.3%2024.4%2015.6%2037.6h44.8v66.5h-44.8c-3.3%2013.2-8.6%2025.9-15.6%2037.6l31.7%2031.7-47%2047-31.7-31.7c-11.7%207-24.4%2012.3-37.6%2015.6v44.8z%20m-36.5-30h6.5v-40l12.8-1.9c17.2-2.6%2033.8-9.4%2047.8-19.8l10.4-7.7%2028.3%2028.3%204.6-4.6-28.3-28.3%207.7-10.4c10.4-14.1%2017.3-30.6%2019.8-47.8l1.9-12.8h40V652h-40l-1.9-12.8c-2.6-17.2-9.4-33.8-19.8-47.8l-7.7-10.4%2028.3-28.3-4.6-4.6-28.3%2028.3-10.4-7.7c-14.1-10.4-30.6-17.3-47.8-19.8l-12.8-1.9v-40h-6.5v40l-12.8%201.9c-17.2%202.6-33.8%209.4-47.8%2019.8l-10.4%207.7-28.3-28.3-4.6%204.6L569%20581l-7.7%2010.4c-10.4%2014.1-17.3%2030.6-19.8%2047.8l-1.9%2012.8h-40v6.5h40l1.9%2012.8c2.6%2017.2%209.4%2033.8%2019.8%2047.8l7.7%2010.4-28.3%2028.3%204.6%204.6%2028.3-28.3%2010.4%207.7c14.1%2010.4%2030.6%2017.3%2047.8%2019.8l12.8%201.9v40z'%20p-id='3027'%3e%3c/path%3e%3cpath%20d='M647.9%20728.8c-40.5%200-73.5-33-73.5-73.5s33-73.5%2073.5-73.5%2073.5%2033%2073.5%2073.5-33%2073.5-73.5%2073.5z%20m0-117.1c-24%200-43.5%2019.5-43.5%2043.5s19.5%2043.5%2043.5%2043.5%2043.5-19.5%2043.5-43.5-19.5-43.5-43.5-43.5z'%20p-id='3028'%3e%3c/path%3e%3c/svg%3e",n3=Object.freeze(Object.defineProperty({__proto__:null,default:i3},Symbol.toStringTag,{value:"Module"})),s3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752025036400'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2116'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M992.768%20859.940571v29.696c0%2044.470857-35.108571%2094.866286-78.848%2094.866286H122.733714C78.921143%20984.502857%2043.885714%20934.034286%2043.885714%20889.636571v-29.696c0-7.387429%205.851429-11.849143%2011.702857-11.849142h925.476572c5.851429-1.462857%2011.702857%204.388571%2011.702857%2011.849142zM204.653714%20218.038857v600.429714h-115.565714V266.971429c0-26.697143%2021.942857-49.005714%2048.274286-49.005715h67.291428z%20m694.637715%200a49.005714%2049.005714%200%200%201%2048.201142%2048.932572v551.497142H829.44V217.965714h69.851429zM759.954286%2048.274286c7.314286%200%2012.580571%204.096%2014.116571%2010.605714l0.512%204.242286V818.468571H257.828571V186.88H370.834286c7.314286%200%2012.507429-4.096%2014.116571-10.678857l0.438857-4.169143V48.274286h374.491429zM721.188571%20686.226286H316.854857c-8.777143%200-14.555429%2012.434286-14.555428%2023.04%200%209.069714%205.339429%2019.456%2011.483428%2022.235428l3.072%200.731429H719.725714c8.777143%200%2016.091429-10.166857%2016.091429-23.113143%200-12.141714-7.314286-22.893714-14.628572-22.893714z%20m0-133.412572H316.854857c-8.777143%200-14.555429%2012.434286-14.555428%2022.966857%200%209.142857%205.339429%2019.529143%2011.483428%2022.308572l3.072%200.731428H719.725714c8.777143%200%2016.091429-10.24%2016.091429-23.113142%200-12.141714-7.314286-22.893714-14.628572-22.893715z%20m-294.4-329.874285C326.948571%20324.388571%20398.994286%20497.371429%20539.794286%20497.371429c40.96%200%2081.92-16.603429%20111.323428-46.592a16.164571%2016.164571%200%200%200%202.779429-19.748572l-2.779429-3.510857-88.429714-91.428571%2088.502857-89.892572a16.237714%2016.237714%200%200%200%200-23.259428%20156.452571%20156.452571%200%200%200-224.402286%200z%20m187.392%201.462857l10.093715%206.875428L532.992%20324.022857a16.676571%2016.676571%200%200%200-2.779429%2020.333714l2.779429%203.657143%2091.282286%2092.745143c-21.942857%2017.115429-50.761143%2027.428571-79.433143%2027.428572-116.589714%200-174.08-142.409143-92.891429-224.841143a131.657143%20131.657143%200%200%201%20162.230857-18.870857z%20m75.264%2018.285714l-3.291428%202.486857-75.849143%2077.092572a14.409143%2014.409143%200%200%200-2.852571%2016.896l2.852571%203.876571L686.08%20420.132571c5.851429%205.924571%2016.091429%205.924571%2021.942857-1.462857a148.772571%20148.772571%200%200%200%200-171.958857%2014.628571%2014.628571%200%200%200-18.651428-3.949714z%20m4.022858%2035.108571c15.579429%2030.354286%2017.334857%2065.316571%205.193142%2096.694858l-5.12%2011.556571-52.662857-53.394286%2052.662857-54.857143zM357.741714%2048.274286v108.982857H259.291429c0-1.974857%200.658286-3.949714%201.462857-5.485714l1.462857-1.974858L348.891429%2051.273143a10.825143%2010.825143%200%200%201%204.388571-2.56l2.925714-0.438857h1.462857z'%20p-id='2117'%3e%3c/path%3e%3c/svg%3e",o3=Object.freeze(Object.defineProperty({__proto__:null,default:s3},Symbol.toStringTag,{value:"Module"})),r3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753777796588'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3658'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M768%20682.666667v-85.333334h42.666667V170.666667H256v428.16c6.954667-0.981333%2014.08-1.493333%2021.333333-1.493334H341.333333v85.333334H277.333333a64%2064%200%200%200%200%20128H426.666667v85.333333H277.333333A149.333333%20149.333333%200%200%201%20128%20746.666667V213.333333a128%20128%200%200%201%20128-128h597.333333a42.666667%2042.666667%200%200%201%2042.666667%2042.666667v725.333333a42.666667%2042.666667%200%200%201-42.666667%2042.666667h-170.666666v-85.333333h128v-128h-42.666667zM298.666667%20213.333333h85.333333v85.333334H298.666667V213.333333z%20m0%20128h85.333333v85.333334H298.666667V341.333333z%20m298.666666%20384v256h-85.333333v-256H384l170.666667-213.333333%20170.666666%20213.333333h-128z'%20fill='%23000000'%20p-id='3659'%3e%3c/path%3e%3c/svg%3e",l3=Object.freeze(Object.defineProperty({__proto__:null,default:r3},Symbol.toStringTag,{value:"Module"})),a3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759785431'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2822'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M959%20830.7V295.2c0-42.9-20.8-62.8-62.5-59.6H544.9c-13.3%200-24.2-3.2-32.6-9.5-9.9-15.8-25.4-35.5-42.5-61.8-18-27.7-35.3-35.8-57.5-35.8H141.1c-51.6%200.2-77.4%2023.4-77.4%2069.4v628.5c0%2052.4%2020.8%2075.5%2062.5%2069.1h778.2c43-0.3%2061.3-21.8%2054.6-64.8zM262.4%20670.1c-17.7%200-32-14.3-32-32s14.3-32%2032-32%2032%2014.3%2032%2032-14.3%2032-32%2032z%20m0-174.4c-17.7%200-32-14.3-32-32s14.3-32%2032-32%2032%2014.3%2032%2032-14.3%2032-32%2032z%20m531.2%20142.4c0%2017.7-14.3%2032-32%2032h-388c-17.7%200-32-14.3-32-32s14.3-32%2032-32h388c17.7%200%2032%2014.3%2032%2032z%20m0-174.6c0%2017.7-14.3%2032-32%2032h-388c-17.7%200-32-14.3-32-32s14.3-32%2032-32h388c17.7%200%2032%2014.3%2032%2032z'%20p-id='2823'%3e%3c/path%3e%3c/svg%3e",c3=Object.freeze(Object.defineProperty({__proto__:null,default:a3},Symbol.toStringTag,{value:"Module"})),h3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752023937641'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1733'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M604.672%20640c-45.568-78.848-129.536-127.488-220.672-128H128c-70.656%200-128%2057.344-128%20128v384h1024v-384h-419.328z'%20p-id='1734'%3e%3c/path%3e%3cpath%20d='M640%20576h256V128c0-70.656-57.344-128-128-128H256C185.344%200%20128%2057.344%20128%20128v320h256c100.864%200%20195.584%2047.616%20256%20128zM352.256%20198.656h320v104.448H352.256V198.656z'%20p-id='1735'%3e%3c/path%3e%3c/svg%3e",u3=Object.freeze(Object.defineProperty({__proto__:null,default:h3},Symbol.toStringTag,{value:"Module"})),f3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1751524549947'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2910'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M256%20170.496v170.496h512V170.496h85.504c23.552%200%2042.496%2018.944%2042.496%2042.496V896c0%2023.552-18.944%2042.496-42.496%2042.496H170.496c-23.552%200-42.496-18.944-42.496-42.496V212.992c0-23.552%2018.944-42.496%2042.496-42.496H256z%20m256%20513.024H256v83.456h256v-83.456zM768%20491.52H256v83.456h512V491.52zM341.504%2085.504h341.504V256H341.504V85.504z'%20p-id='2911'%3e%3c/path%3e%3c/svg%3e",d3=Object.freeze(Object.defineProperty({__proto__:null,default:f3},Symbol.toStringTag,{value:"Module"})),p3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753758992227'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2678'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M733.090909%20744.727273h-442.181818a34.909091%2034.909091%200%201%200%200%2069.818182h442.181818a34.909091%2034.909091%200%201%200%200-69.818182zM440.389818%20238.987636h58.065455c30.254545%200%2051.549091%207.889455%2065.303272%2024.296728%2013.172364%2015.522909%2019.851636%2039.586909%2019.851637%2071.493818%200%2031.069091-7.330909%2054.295273-22.411637%2070.958545-15.150545%2016.686545-37.236364%2024.808727-67.514181%2024.808728h-53.294546v-191.557819z%20m53.294546%20261.376c50.362182%200%2090.461091-16.034909%20119.249454-47.732363%2026.856727-29.696%2040.494545-69.352727%2040.494546-117.853091%200-48.942545-12.264727-88.203636-36.305455-116.48-27.275636-32.605091-67.188364-49.128727-118.667636-49.128727h-90.670546c-20.503273%200-37.213091%2016.709818-37.213091%2037.236363V463.127273c0%2020.526545%2016.709818%2037.236364%2037.213091%2037.236363h85.899637zM733.090909%20605.090909h-442.181818a34.909091%2034.909091%200%201%200%200%2069.818182h442.181818a34.909091%2034.909091%200%201%200%200-69.818182z%20m139.636364%20116.363636a34.909091%2034.909091%200%200%200%2034.909091-34.90909V93.090909a69.818182%2069.818182%200%200%200-69.818182-69.818182H186.181818a69.818182%2069.818182%200%200%200-69.818182%2069.818182v837.818182a69.818182%2069.818182%200%200%200%2069.818182%2069.818182h651.636364a69.818182%2069.818182%200%200%200%2069.818182-69.818182v-81.454546a34.909091%2034.909091%200%201%200-69.818182%200V930.909091H186.181818V93.090909h651.636364v593.454546a34.909091%2034.909091%200%200%200%2034.909091%2034.90909z'%20p-id='2679'%3e%3c/path%3e%3c/svg%3e",g3=Object.freeze(Object.defineProperty({__proto__:null,default:p3},Symbol.toStringTag,{value:"Module"})),m3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759086010'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3951'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M733.090909%20744.727273h-442.181818a34.909091%2034.909091%200%201%200%200%2069.818182h442.181818a34.909091%2034.909091%200%201%200%200-69.818182M651.636364%20498.618182a34.909091%2034.909091%200%200%200%2034.909091-34.909091V206.824727a53.806545%2053.806545%200%200%200-103.121455-21.550545l-71.144727%20163.002182-71.703273-163.118546a53.829818%2053.829818%200%200%200-49.268364-32.139636h-0.046545A53.806545%2053.806545%200%200%200%20337.454545%20206.824727v256.884364a34.909091%2034.909091%200%201%200%2069.818182%200v-180.782546l73.634909%20165.213091a35.002182%2035.002182%200%200%200%2064.046546-0.256l71.773091-164.375272v180.200727a34.909091%2034.909091%200%200%200%2034.909091%2034.909091M872.727273%20721.454545a34.909091%2034.909091%200%200%200%2034.909091-34.90909V93.090909a69.818182%2069.818182%200%200%200-69.818182-69.818182H186.181818a69.818182%2069.818182%200%200%200-69.818182%2069.818182v837.818182a69.818182%2069.818182%200%200%200%2069.818182%2069.818182h651.636364a69.818182%2069.818182%200%200%200%2069.818182-69.818182v-81.454546a34.909091%2034.909091%200%201%200-69.818182%200V930.909091H186.181818V93.090909h651.636364v593.454546a34.909091%2034.909091%200%200%200%2034.909091%2034.90909m-139.636364-116.363636h-442.181818a34.909091%2034.909091%200%201%200%200%2069.818182h442.181818a34.909091%2034.909091%200%201%200%200-69.818182'%20p-id='3952'%3e%3c/path%3e%3c/svg%3e",v3=Object.freeze(Object.defineProperty({__proto__:null,default:m3},Symbol.toStringTag,{value:"Module"})),w3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759499798'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2663'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M32%20992V640A96%2096%200%200%201%20128%20544h256a221.44%20221.44%200%200%201%20192%20112l9.6%2016h406.4v320z'%20p-id='2664'%3e%3c/path%3e%3cpath%20d='M384%20576a192%20192%200%200%201%20165.12%2096l18.56%2032H960v256H64v-320a64%2064%200%200%201%2064-64h256m0-64H128a128%20128%200%200%200-128%20128v384h1024v-384H604.8A256%20256%200%200%200%20384%20512z'%20p-id='2665'%3e%3c/path%3e%3cpath%20d='M640%20576h256V128a128%20128%200%200%200-128-128H256a128%20128%200%200%200-128%20128v320h256a320%20320%200%200%201%20256%20128zM352%20198.4h320v104.32h-320z'%20p-id='2666'%3e%3c/path%3e%3c/svg%3e",b3=Object.freeze(Object.defineProperty({__proto__:null,default:w3},Symbol.toStringTag,{value:"Module"})),x3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752130130786'%20class='icon'%20viewBox='0%200%201131%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2045'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='17.671875'%20height='16'%3e%3cpath%20d='M60.576386%202.134361c8.093301-1.603855%2016.371663-1.184386%2024.563662-1.233734%20289.125783%200%20578.239229%200%20867.365012%200.012337%2011.769831%200.012337%2023.539663%202.825253%2033.989398%208.278361%2019.110554%209.808193%2033.495904%2028.326554%2038.134747%2049.312386%201.961639%208.105639%201.924627%2016.495036%201.838265%2024.785735-20.529349-0.481157-41.071036-0.098699-61.612723-0.222073-274.320964%200.012337-548.654265-0.012337-822.987566%200.024675-20.183904-0.098699-40.12106%208.61147-53.889542%2023.342265-12.70747%2013.435373-20.072867%2031.768675-20.048193%2050.274699-0.012337%20199.556627%200.024675%20399.113253-0.024675%20598.66988-18.629398-1.44347-36.49388-10.375711-48.942265-24.304579C7.612145%20718.564241%200.962313%20702.081542%200%20685.253398V70.569639c0.986988-11.967229%204.404434-23.78641%2010.733494-34.038747C21.479325%2018.703422%2040.047036%205.77388%2060.576386%202.134361z'%20p-id='2046'%3e%3c/path%3e%3cpath%20d='M127.62988%20141.213301c13.583422-13.163952%2032.360867-20.726747%2051.274024-20.628048%20292.814651-0.012337%20585.616964-0.012337%20878.419277%200%2018.308627-0.086361%2036.49388%206.98294%2049.953927%2019.406651%2014.113928%2012.732145%2022.639036%2031.065446%2024.057832%2049.978602v614.844145c-0.900627%2015.471036-6.477108%2030.682988-16.260627%2042.736578-13.484723%2017.025542-34.791325%2027.536964-56.529735%2027.722024-61.588048%200.049349-123.163759%200-184.751807%200.024675-20.776096%2035.889349-41.478169%2071.828048-62.22959%20107.742072-5.699855%209.314699-10.091952%2019.764434-18.506024%2027.068145-12.288%2011.387373-30.201831%2016.174265-46.561157%2012.596433-14.311325-2.960964-27.142169-12.238651-34.482892-24.859759-23.589012-40.848964-47.153349-81.710265-70.767036-122.546891-154.118169-0.012337-308.236337%200.012337-462.354506-0.012338-20.751422%200.135711-41.280771-9.055614-55.06159-24.551325-12.250988-13.521735-19.147566-31.719325-18.962506-49.966265V194.843759c-0.160386-19.998843%208.278361-39.849639%2022.76241-53.630458m213.312771%20283.808386c-26.932434%202.109687-52.224%2018.01253-65.967808%2041.256096-11.535422%2019.024193-15.002217%2042.63788-9.672482%2064.215904%204.416771%2018.283952%2015.17494%2034.914699%2029.918073%2046.573494%2014.484048%2011.572434%2032.854361%2018.185253%2051.397397%2018.469012%2018.000193%200.41947%2036.062072-5.095325%2050.755856-15.495711%2015.026892-10.511422%2026.512964-25.994795%2032.151132-43.452145%205.564145-17.03788%205.564145-35.827663%200.012338-52.865542-5.897253-18.283952-18.209928-34.371855-34.248482-44.907952-15.878169-10.573108-35.371181-15.446361-54.346024-13.793156m270.138602%200c-27.22853%202.146699-52.754506%2018.407325-66.387277%2042.045686-11.819181%2019.974169-14.792482%2044.87094-8.204337%2067.102844%205.35441%2018.543036%2017.309301%2035.038072%2033.125783%2046.042988%2014.780145%2010.375711%2032.916048%2015.816482%2050.96559%2015.31065%2017.03788-0.357783%2033.903036-6.020627%2047.70853-16.001542%2014.656771-10.486747%2025.859084-25.723373%2031.410892-42.872289%205.576482-17.062554%205.576482-35.877012%200.024674-52.939566-5.90959-18.296289-18.24694-34.408867-34.322506-44.944964-15.865831-10.548434-35.346506-15.409349-54.321349-13.743807m270.15094%200.012337c-26.586988%202.109687-51.545446%2017.64241-65.375615%2040.404819-11.041928%2017.77812-15.039229%2039.713928-11.189976%2060.28029%203.627181%2020.122217%2014.891181%2038.702265%2030.929735%2051.360385%2026.179855%2021.306602%2065.30159%2024.501976%2094.590458%207.710843%2018.678747-10.338699%2033.212145-27.931759%2039.726265-48.26371%205.53947-17.025542%205.53947-35.790651-0.012337-52.816193-5.983614-18.567711-18.604723-34.877687-35.025735-45.413783-15.742458-10.227663-34.951711-14.915855-53.642795-13.262651z'%20p-id='2047'%3e%3c/path%3e%3c/svg%3e",y3=Object.freeze(Object.defineProperty({__proto__:null,default:x3},Symbol.toStringTag,{value:"Module"})),k3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759479045'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2341'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M554.41%20897.187c16.52%200%2029.913%2013.39%2029.913%2029.906%200%2016.281-13.013%2029.524-29.207%2029.899l-0.707%200.008H407.145c-16.52%200-29.913-13.39-29.913-29.907%200-16.28%2013.013-29.523%2029.207-29.898l0.706-0.008H554.41z%20m40.268-84.377c16.52%200%2029.913%2013.39%2029.913%2029.907%200%2016.28-13.013%2029.523-29.207%2029.898l-0.706%200.009H365.323c-16.52%200-29.913-13.39-29.913-29.907%200-16.281%2013.013-29.524%2029.207-29.899l0.706-0.008h229.355zM480%2069c189.986%200%20344%20153.982%20344%20343.927%200%20120.12-61.593%20225.858-154.926%20287.365l-2.205%2010.384c-1.519%207.084-3.529%2016.359-6.03%2027.826-5.927%2027.183-29.801%2046.65-57.546%2047.072H356.239c-28.52%200-53.076-20.128-58.666-48.09l-2.757-13.628c-3.321-16.19-5.226-24.448-5.715-24.775C196.791%20637.403%20136%20532.263%20136%20412.927%20136%20222.982%20290.014%2069%20480%2069z%20m-62.585%20133.938C316.255%20221.817%20266.292%20290.58%20260.3%20399.042c-0.911%2016.492%2011.722%2030.6%2028.218%2031.51%2016.495%200.912%2030.606-11.72%2031.517-28.211%204.58-82.907%2036.8-127.25%20108.358-140.605%2016.24-3.031%2026.947-18.65%2023.916-34.887-3.032-16.237-18.654-26.942-34.894-23.911z'%20p-id='2342'%3e%3c/path%3e%3c/svg%3e",S3=Object.freeze(Object.defineProperty({__proto__:null,default:k3},Symbol.toStringTag,{value:"Module"})),C3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753766090732'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3028'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M736%20256H320c-16%200-32%2016-32%2032s16%2032%2032%2032h416c16%200%2032-16%2032-32s-16-32-32-32zM736%20448H320c-16%200-32%2016-32%2032s16%2032%2032%2032h416c16%200%2032-16%2032-32s-16-32-32-32z'%20p-id='3029'%3e%3c/path%3e%3cpath%20d='M192%20160c0-35.2%2028.8-64%2064-64h544c35.2%200%2064%2028.8%2064%2064v512h96V64c0-35.2-28.8-64-64-64H160C124.8%200%2096%2028.8%2096%2064v608h96V160zM992%20672H64c-19.2%200-32%2012.8-32%2032v288c0%2019.2%2012.8%2032%2032%2032h928c19.2%200%2032-12.8%2032-32v-288c0-16-12.8-32-32-32z%20m-320%20224h-288v-96h288v96z'%20p-id='3030'%3e%3c/path%3e%3c/svg%3e",_3=Object.freeze(Object.defineProperty({__proto__:null,default:C3},Symbol.toStringTag,{value:"Module"})),O3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752200274113'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4456'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M751.4%20553.2c-42.5-38.5-92.1-67.1-145.5-84.6%2053.2-38.9%2087.8-101.8%2087.8-172.7C693.7%20178%20597.7%2082%20479.8%2082c-57.1%200-110.8%2022.2-151.2%2062.6C288.2%20185%20266%20238.7%20266%20295.8s22.2%20110.8%2062.6%20151.2c7.8%207.8%2016.2%2015%2025%2021.4-10.5%203.5-20.9%207.3-31.2%2011.7-48.2%2020.4-91.4%2049.5-128.5%2086.7s-66.3%2080.4-86.7%20128.5c-21.1%2049.9-31.8%20102.9-31.8%20157.4%200%2024.8%202.3%2049.7%206.8%2073.9l68.8-12.7c-3.7-20-5.6-40.6-5.6-61.2%200-184.4%20150-334.4%20334.4-334.4%2083.2%200%20163%2030.8%20224.5%2086.6l47.1-51.7zM479.8%20152c79.3%200%20143.9%2064.5%20143.9%20143.9s-64.5%20143.9-143.9%20143.9S336%20375.2%20336%20295.9%20400.5%20152%20479.8%20152zM726.3%20665.3h213.8v70H726.3zM503%20831.6h437.1v70H503z'%20p-id='4457'%3e%3c/path%3e%3c/svg%3e",M3=Object.freeze(Object.defineProperty({__proto__:null,default:O3},Symbol.toStringTag,{value:"Module"})),D3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752023723226'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1733'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M34.816%2080.896v862.208c0%2044.544%2036.352%2080.896%2080.896%2080.896h38.912V0h-38.912C71.168%200%2034.816%2036.352%2034.816%2080.896zM908.288%200H839.68v252.928l-126.976-125.952L586.24%20250.88l-0.512-250.88H244.736v1024h663.552c44.544%200%2080.896-36.352%2080.896-80.896V80.896c0-44.544-36.352-80.896-80.896-80.896z%20m-66.048%20681.472H413.696v-57.856h429.056v57.856z%20m0-115.712H413.696V507.904h429.056v57.856z'%20p-id='1734'%3e%3c/path%3e%3c/svg%3e",T3=Object.freeze(Object.defineProperty({__proto__:null,default:D3},Symbol.toStringTag,{value:"Module"})),A3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753777777175'%20class='icon'%20viewBox='0%200%201170%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3184'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='36.5625'%20height='32'%3e%3cpath%20d='M743.893333%200H45.013333A45.226667%2045.226667%200%200%200%200%2045.013333v805.973334A45.226667%2045.226667%200%200%200%2045.013333%20896h698.88a45.226667%2045.226667%200%200%200%2045.013334-45.013333V45.013333A45.226667%2045.226667%200%200%200%20743.893333%200z%20m-682.666666%2061.653333h666.026666v772.693334H61.866667z'%20p-id='3185'%3e%3c/path%3e%3cpath%20d='M464.64%20279.466667h132.266667a27.946667%2027.946667%200%200%200%2027.946666-27.733334%20160.426667%20160.426667%200%200%200-160.213333-160%2027.306667%2027.306667%200%200%200-19.626667%208.106667%2028.16%2028.16%200%200%200-8.106666%2019.626667v132.266666a27.733333%2027.733333%200%200%200%208.106666%2019.626667%2027.52%2027.52%200%200%200%2019.626667%208.106667z%20m100.906667-55.68h-73.173334V150.826667a105.386667%20105.386667%200%200%201%2073.173334%2072.96zM598.186667%20580.266667H185.173333a30.933333%2030.933333%200%200%200-26.666666%2046.293333%2031.36%2031.36%200%200%200%2026.666666%2015.36h413.013334a30.933333%2030.933333%200%201%200%200-61.653333zM598.186667%20711.893333H185.173333a30.933333%2030.933333%200%200%200-26.666666%2046.293334%2031.36%2031.36%200%200%200%2026.666666%2015.36h413.013334a30.933333%2030.933333%200%201%200%200-61.653334z'%20p-id='3186'%3e%3c/path%3e%3cpath%20d='M375.893333%20533.76a192%20192%200%200%200%20193.28-193.28%2027.733333%2027.733333%200%200%200-27.733333-27.733333h-137.813333V174.933333a27.733333%2027.733333%200%200%200-27.733334-27.733333%20193.28%20193.28%200%201%200%200%20386.56zM347.946667%20205.44v135.04a27.946667%2027.946667%200%200%200%2027.946666%2027.733333h135.04a137.813333%20137.813333%200%201%201-162.986666-162.773333z'%20p-id='3187'%3e%3c/path%3e%3c/svg%3e",B3=Object.freeze(Object.defineProperty({__proto__:null,default:A3},Symbol.toStringTag,{value:"Module"})),P3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753766068495'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2552'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M816%20161H208c-44.183%200-80%2035.817-80%2080v542c0%2044.183%2035.817%2080%2080%2080h608c44.183%200%2080-35.817%2080-80V241c0-44.183-35.817-80-80-80zM325.379%20516.243l55.154%2055.154c12.497%2012.497%2012.497%2032.758%200%2045.255s-32.758%2012.497-45.255%200l-59.397-59.396-22.627-22.628c-12.497-12.497-12.497-32.758%200-45.255l22.627-22.627%2059.397-59.397c12.497-12.496%2032.758-12.496%2045.255%200%2012.497%2012.497%2012.497%2032.759%200%2045.255l-55.154%2055.154a6%206%200%200%200%200%208.485z%20m263.065-84.345L492.65%20621.021c-7.986%2015.767-27.24%2022.073-43.006%2014.088s-22.073-27.24-14.087-43.007l95.793-189.123c7.985-15.766%2027.24-22.073%2043.006-14.087%2015.766%207.985%2022.073%2027.24%2014.088%2043.006z%20m182.302%20102.729l-22.627%2022.628-59.397%2059.396c-12.497%2012.497-32.758%2012.497-45.255%200s-12.497-32.758%200-45.255l55.154-55.154a6%206%200%200%200%200-8.485l-55.154-55.154c-12.497-12.496-12.497-32.758%200-45.255%2012.497-12.496%2032.758-12.496%2045.255%200l59.397%2059.397%2022.627%2022.627c12.497%2012.498%2012.497%2032.758%200%2045.255z'%20p-id='2553'%3e%3c/path%3e%3c/svg%3e",E3=Object.freeze(Object.defineProperty({__proto__:null,default:P3},Symbol.toStringTag,{value:"Module"})),V3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752200066150'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1884'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M381.3%2087.3h-238C99.7%2087.3%2064%20123%2064%20166.7v238c0%2043.6%2035.7%2079.3%2079.3%2079.3h238c43.6%200%2079.3-35.7%2079.3-79.3v-238c0.1-43.7-35.6-79.4-79.3-79.4zM381.3%20563.3h-238C99.7%20563.3%2064%20599%2064%20642.7v238c0%2043.6%2035.7%2079.3%2079.3%2079.3h238c43.6%200%2079.3-35.7%2079.3-79.3v-238c0.1-43.7-35.6-79.4-79.3-79.4zM857.3%20563.3h-238c-43.6%200-79.3%2035.7-79.3%2079.3v238c0%2043.6%2035.7%2079.3%2079.3%2079.3h238c43.6%200%2079.3-35.7%2079.3-79.3v-238c0.1-43.6-35.6-79.3-79.3-79.3zM936.8%20229.6L794.4%2087.2c-30.9-30.9-81.3-30.9-112.2%200L539.8%20229.6c-30.9%2030.9-30.9%2081.3%200%20112.2l142.4%20142.4c30.9%2030.9%2081.3%2030.9%20112.2%200l142.4-142.4c30.9-30.9%2030.9-81.4%200-112.2z'%20p-id='1885'%3e%3c/path%3e%3c/svg%3e",z3=Object.freeze(Object.defineProperty({__proto__:null,default:V3},Symbol.toStringTag,{value:"Module"})),L3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753766544167'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2552'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M771.584%20590.336c-116.224%200-209.92%2094.208-209.92%20209.92s94.208%20209.92%20209.92%20209.92c116.224%200%20209.92-94.208%20209.92-209.92s-93.696-209.92-209.92-209.92z%20m-122.88%20217.088c0%208.192-6.656%2014.336-14.336%2014.336-8.192%200-14.336-6.656-14.336-14.336%200-55.808%2045.568-101.376%20101.376-101.376h64l-43.52-31.744c-6.656-4.608-7.68-13.824-3.072-19.968%204.608-6.656%2013.824-7.68%2020.48-3.072l66.56%2048.128c14.336%2010.752%2014.336%2032.256%200%2042.496l-66.56%2048.128c-2.56%202.048-5.632%202.56-8.704%202.56-6.144%200-11.776-4.096-13.824-10.24-2.048-6.144%200-12.288%205.12-16.384l43.52-31.744h-64c-40.448%201.024-72.704%2033.28-72.704%2073.216z%20m166.4%2087.04h-64l43.52%2031.744c5.12%203.584%207.168%2010.24%205.12%2016.384-2.048%206.144-7.68%2010.24-13.824%2010.24-3.072%200-6.144-1.024-8.704-2.56l-66.56-48.128c-14.336-10.752-14.336-32.256%200-42.496l66.56-48.128c6.656-4.608%2015.36-3.072%2020.48%203.072%204.608%206.656%203.072%2015.36-3.072%2019.968l-43.52%2031.744h64c39.936%200%2072.192-32.256%2072.192-72.192%200-8.192%206.656-14.336%2014.336-14.336%208.192%200%2014.336%206.656%2014.336%2014.336%200.512%2054.784-45.056%20100.352-100.864%20100.352z'%20p-id='2553'%3e%3c/path%3e%3cpath%20d='M724.48%2013.824H174.08C101.376%2013.824%2042.496%2072.704%2042.496%20145.408v703.488c0%2072.704%2058.88%20132.096%20132.096%20132.096H593.92c-44.032-46.08-71.168-108.032-71.168-176.64%200-140.8%20114.176-254.976%20254.976-254.976%2027.648%200%2054.272%204.608%2079.36%2012.8V145.408c-1.024-72.704-59.904-131.584-132.608-131.584zM414.208%20850.432H260.096c-19.456%200-34.816-15.872-34.816-34.816s15.872-34.816%2034.816-34.816h154.112c19.456%200%2034.816%2015.872%2034.816%2034.816s-15.36%2034.816-34.816%2034.816z%20m0-153.088H260.096c-19.456%200-34.816-15.872-34.816-34.816%200-19.456%2015.872-34.816%2034.816-34.816h154.112c19.456%200%2034.816%2015.872%2034.816%2034.816%200%2018.944-15.36%2034.816-34.816%2034.816zM624.64%20324.608c-23.04%2022.528-46.592%2045.056-69.632%2068.096%205.12%2029.184%2010.24%2058.368%2014.848%2087.552%201.536%207.68%203.072%2015.872-0.512%2023.04-5.632%2012.288-21.504%2017.408-33.28%2011.776-28.672-15.36-57.856-30.208-86.528-45.568-28.672%2014.848-57.344%2030.208-86.016%2045.056-8.192%204.096-18.432%203.584-25.6-1.536-7.68-5.632-12.288-15.36-10.24-25.088%205.632-31.744%2010.752-63.488%2016.384-95.232-20.992-20.992-42.496-41.472-64-62.464-3.584-3.584-8.192-7.168-10.24-11.776-4.096-8.192-3.584-18.432%202.048-25.6%204.096-5.632%2010.24-9.216%2016.896-10.24L384%20268.8c14.336-29.184%2028.672-58.368%2043.52-87.552%203.584-6.656%2010.24-11.776%2017.92-12.8%207.68-1.536%2016.384%201.536%2021.504%207.168%203.072%203.072%205.12%207.168%206.656%2011.264%2013.312%2027.136%2026.624%2053.76%2039.936%2080.896%200.512%201.536%202.56%201.024%203.584%201.536l93.696%2013.824c11.776%201.536%2021.504%2012.8%2020.992%2025.088-0.512%205.632-3.072%2011.776-7.168%2016.384z'%20p-id='2554'%3e%3c/path%3e%3c/svg%3e",R3=Object.freeze(Object.defineProperty({__proto__:null,default:L3},Symbol.toStringTag,{value:"Module"})),N3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753766865378'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='11941'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M853.339798%208.145455h-682.666667A72.04202%2072.04202%200%200%200%2098.682828%2080.161616v863.676768a72.04202%2072.04202%200%200%200%2071.977374%2072.016161h682.666667a72.04202%2072.04202%200%200%200%2071.990303-72.016161V80.161616a72.04202%2072.04202%200%200%200-71.977374-72.016161zM777.470707%2080.161616h39.925657a35.956364%2035.956364%200%200%201%2035.995151%2035.995152v791.725252A35.956364%2035.956364%200%200%201%20817.344646%20943.838384H206.655354a35.956364%2035.956364%200%200%201-35.995152-35.995152V116.11798A35.956364%2035.956364%200%200%201%20206.655354%2080.161616h426.808888m219.875556%20827.720404'%20p-id='11942'%3e%3c/path%3e%3cpath%20d='M727.369697%20655.954747h-431.838384a35.995152%2035.995152%200%201%200%200%2071.977374h431.838384a35.995152%2035.995152%200%201%200%200-71.977374z%20m0-215.919191h-431.838384a35.982222%2035.982222%200%201%200%200%2071.977373h431.838384a35.982222%2035.982222%200%201%200%200-71.977373zM295.505455%20296.080808h215.919191a35.982222%2035.982222%200%200%200%200-71.977374h-215.919191a35.982222%2035.982222%200%201%200%200%2071.977374z%20m0%200M639.709091%20222.926869l2.029899-5.288081%2019.083636-48.536566c4.473535-11.468283%2016.252121-18.967273%2029.659798-18.967273a31.030303%2031.030303%200%200%201%2029.246061%2019.39394L738.010505%20218.505051l2.029899%205.30101%209.748687%200.439596%2012.192323%200.439596%200.814546-145.583839a10.343434%2010.343434%200%200%200-3.65899-7.990303%2012.101818%2012.101818%200%200%200-8.533334-3.090101L630.774949%2067.232323c-6.464646%200-12.179394%204.861414-12.179393%2011.028687l-0.814546%20145.596768h12.179394z'%20p-id='11943'%3e%3c/path%3e%3cpath%20d='M789.999192%20245.010101l-36.964849-0.814545-10.96404-0.400809-10.96404-0.413737-9.347879-0.400808h-4.460606l-22.742626-63.353535a6.606869%206.606869%200%200%200-12.192324%200l-21.979798%2057.263838-2.430707%206.089697h-35.710707l-36.964848%200.400808a6.244848%206.244848%200%200%200-6.089697%204.059798%205.973333%205.973333%200%200%200%202.430707%206.904243l57.276767%2041.024646-21.527272%2064.18101a5.986263%205.986263%200%200%200%202.430707%206.904242%203.090101%203.090101%200%200%200%202.029899%200.814546h4.059798a2.107475%202.107475%200%200%200%201.629091-0.814546l59.707474-38.180202%2059.306667%2038.994748a6.529293%206.529293%200%200%200%203.65899%201.215353%207.757576%207.757576%200%200%200%204.059798-1.215353%205.805253%205.805253%200%200%200%202.430707-6.904242l-20.686869-64.646465%2058.078384-40.210101a6.606869%206.606869%200%200%200%202.430707-6.904243%2010.252929%2010.252929%200%200%200-6.464646-3.658989z%20m0%200'%20p-id='11944'%3e%3c/path%3e%3c/svg%3e",I3=Object.freeze(Object.defineProperty({__proto__:null,default:N3},Symbol.toStringTag,{value:"Module"})),H3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752024794809'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1891'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M730.2%2045.8H72c-41.1%200-72%2030.9-72%2072v776.5c0%2041.1%2030.9%2077.2%2072%2077.2h447.3c-10.3-15.5-20.6-41.1-20.6-61.7v-41.1c0-61.7%2051.4-118.2%20118.2-118.2h10.3l46.2-56.5c-15.5-15.5-30.9-35.9-35.9-61.7C606.6%20550%20653%20457.5%20740.3%20431.7c15.5-5.2%2035.9-10.3%2051.4-10.3h15.5V112.6c0-36-35.9-66.8-77-66.8zM179.9%20236H365c20.6%200%2035.9%2015.5%2035.9%2035.9%200%2020.6-15.5%2035.9-35.9%2035.9H179.9c-20.6%200-35.9-15.5-35.9-35.9-0.1-20.4%2015.3-35.9%2035.9-35.9z%20m298.2%20498.8H179.9c-20.6%200-35.9-15.5-35.9-35.9%200-20.6%2015.5-35.9%2035.9-35.9h303.3c20.6%200%2035.9%2015.5%2035.9%2035.9-4.9%2015.4-20.4%2035.9-41%2035.9z%20m56.7-215.9H179.9c-20.6%200-35.9-15.5-35.9-35.9%200-20.6%2015.5-35.9%2035.9-35.9h354.9c20.6%200%2035.9%2015.5%2035.9%2035.9s-15.4%2035.9-35.9%2035.9z'%20p-id='1892'%3e%3c/path%3e%3cpath%20d='M966.7%20806.8h-41.1L822.8%20688.5c56.5-20.6%2087.5-77.2%2066.9-133.7-15.5-46.2-56.5-72-102.8-72-10.3%200-20.6%200-35.9%205.2-56.5%2020.6-87.5%2077.2-66.9%20133.7%2010.3%2030.9%2035.9%2056.5%2066.9%2066.9L648.1%20806.8h-30.9c-35.9%200-61.7%2025.8-61.7%2061.7v35.9c0%2035.9%2030.9%2061.7%2061.7%2061.7h344.6c35.9%200%2061.7-25.8%2061.7-61.7v-35.9c4.9-30.8-25.9-61.7-56.8-61.7z'%20p-id='1893'%3e%3c/path%3e%3c/svg%3e",$3=Object.freeze(Object.defineProperty({__proto__:null,default:H3},Symbol.toStringTag,{value:"Module"})),W3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752200287229'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4780'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M878.4%20243.5h-91.2v-41.2c0-58.6-47.7-106.2-106.2-106.2H354.2c-58.6%200-106.2%2047.7-106.2%20106.2v41.2h-91.2c-43.2%200-78.4%2035.1-78.4%2078.4V856c0%2043.2%2035.1%2078.4%2078.4%2078.4h721.5c43.2%200%2078.4-35.1%2078.4-78.4V321.8c0-43.2-35.1-78.3-78.3-78.3zM318%20202.3c0-20%2016.2-36.2%2036.2-36.2H681c20%200%2036.2%2016.3%2036.2%2036.2v41.2H318v-41.2zM156.8%20313.5h721.5c4.6%200%208.4%203.7%208.4%208.4V554H692.4c-14.8-45.3-57.4-78.2-107.6-78.2H450.4c-50.2%200-92.9%2032.9-107.6%2078.2H148.5V321.8c0-4.6%203.7-8.3%208.3-8.3zM628%20588.9c0%2023.8-19.4%2043.2-43.2%2043.2H450.4c-23.8%200-43.2-19.4-43.2-43.2%200-23.8%2019.4-43.2%2043.2-43.2h134.3c23.9%200%2043.3%2019.4%2043.3%2043.2z%20m250.4%20275.5H156.8c-4.6%200-8.4-3.7-8.4-8.4V623.9h194.3c14.8%2045.3%2057.4%2078.2%20107.6%2078.2h134.3c50.2%200%2092.9-32.9%20107.6-78.2h194.3V856c0.2%204.6-3.5%208.4-8.1%208.4z'%20p-id='4781'%3e%3c/path%3e%3c/svg%3e",F3=Object.freeze(Object.defineProperty({__proto__:null,default:W3},Symbol.toStringTag,{value:"Module"})),G3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752200301883'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='5102'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M414.2%2078H158.6c-41.5%200-75.3%2033.8-75.3%2075.3v255.5c0%2041.5%2033.8%2075.3%2075.3%2075.3h255.5c41.5%200%2075.3-33.8%2075.3-75.3V153.3c0-41.5-33.7-75.3-75.2-75.3z%20m5.2%20330.8c0%202.9-2.4%205.3-5.3%205.3H158.6c-2.9%200-5.3-2.4-5.3-5.3V153.3c0-2.9%202.4-5.3%205.3-5.3h255.5c2.9%200%205.3%202.4%205.3%205.3v255.5zM414.2%20544.8H158.6c-41.5%200-75.3%2033.8-75.3%2075.3v255.5c0%2041.5%2033.8%2075.3%2075.3%2075.3h255.5c41.5%200%2075.3-33.8%2075.3-75.3V620.1c0-41.5-33.7-75.3-75.2-75.3z%20m5.2%20330.8c0%202.9-2.4%205.3-5.3%205.3H158.6c-2.9%200-5.3-2.4-5.3-5.3V620.1c0-2.9%202.4-5.3%205.3-5.3h255.5c2.9%200%205.3%202.4%205.3%205.3v255.5zM908.8%20119.3H607.2c-19.3%200-35%2015.7-35%2035s15.7%2035%2035%2035h301.6c19.3%200%2035-15.7%2035-35s-15.7-35-35-35zM908.8%20343.8H607.2c-19.3%200-35%2015.7-35%2035s15.7%2035%2035%2035h301.6c19.3%200%2035-15.7%2035-35s-15.7-35-35-35zM908.8%20568.3H607.2c-19.3%200-35%2015.7-35%2035s15.7%2035%2035%2035h301.6c19.3%200%2035-15.7%2035-35s-15.7-35-35-35zM908.8%20792.8H607.2c-19.3%200-35%2015.7-35%2035s15.7%2035%2035%2035h301.6c19.3%200%2035-15.7%2035-35s-15.7-35-35-35z'%20p-id='5103'%3e%3c/path%3e%3c/svg%3e",j3=Object.freeze(Object.defineProperty({__proto__:null,default:G3},Symbol.toStringTag,{value:"Module"})),q3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759305280'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2311'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M919.3%20526.2l-174-68.2c-42.7-16.7-88.8%2014.7-88.8%2060.5v343c0%2035.9%2029.1%2065%2065%2065h174c35.9%200%2065-29.1%2065-65V586.7c0.1-26.7-16.3-50.8-41.2-60.5zM488.5%20115.1L108.3%20252.4c-25.8%209.3-42.9%2033.8-42.9%2061.2v547.9c0%2035.9%2029.1%2065%2065%2065h380.2c35.9%200%2065-29.1%2065-65V176.3c0-45.1-44.7-76.5-87.1-61.2z%20m-53.9%20573.2H197.3c-23.9%200-43.4-19.4-43.4-43.4%200-23.9%2019.4-43.4%2043.4-43.4h237.3c23.9%200%2043.4%2019.4%2043.4%2043.4s-19.4%2043.4-43.4%2043.4z%20m0-177.1H197.3c-23.9%200-43.4-19.4-43.4-43.4%200-23.9%2019.4-43.4%2043.4-43.4h237.3c23.9%200%2043.4%2019.4%2043.4%2043.4s-19.4%2043.4-43.4%2043.4z'%20p-id='2312'%3e%3c/path%3e%3c/svg%3e",U3=Object.freeze(Object.defineProperty({__proto__:null,default:q3},Symbol.toStringTag,{value:"Module"})),Y3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759035832'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3636'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M512%20446c0%2017.6-14.4%2032-32%2032H288c-17.6%200-32-14.4-32-32s14.4-32%2032-32h192c17.6%200%2032%2014.4%2032%2032z%20m223.9-66c-8.2%200-16.5%203.1-22.7%209.3l-45.6%2045.3-22.7-22.6c-6.2-6.2-14.5-9.3-22.7-9.3s-16.5%203.1-22.7%209.3c-12.5%2012.4-12.5%2032.8%200%2045.3l45.6%2045.3c6.2%206.2%2014.5%209.3%2022.7%209.3s16.5-3.1%2022.7-9.3l68.3-68c12.5-12.4%2012.5-32.8%200-45.3-6.4-6.2-14.6-9.3-22.9-9.3zM480%20638H288c-17.6%200-32%2014.4-32%2032s14.4%2032%2032%2032h192c17.6%200%2032-14.4%2032-32s-14.4-32-32-32z%20m255.9-34c-8.2%200-16.5%203.1-22.7%209.3l-45.6%2045.3-22.7-22.6c-6.2-6.2-14.5-9.3-22.7-9.3s-16.5%203.1-22.7%209.3c-12.5%2012.4-12.5%2032.8%200%2045.3l45.6%2045.3c6.2%206.2%2014.5%209.3%2022.7%209.3s16.5-3.1%2022.7-9.3l68.3-68c12.5-12.4%2012.5-32.8%200-45.3-6.4-6.2-14.6-9.3-22.9-9.3zM888%20192v704c0%2035.2-28.8%2064-64%2064H200c-35.2%200-64-28.8-64-64V192c0-35.2%2028.8-64%2064-64h136c0-35.2%2028.8-64%2064-64h224c35.2%200%2064%2028.8%2064%2064h136c35.2%200%2064%2028.8%2064%2064z%20m-488-0.1l0.1%200.1h223.8l0.1-0.1v-63.8l-0.1-0.1H400.1l-0.1%200.1v63.8z%20m424%200.2l-0.1-0.1H688c0%2035.2-28.8%2064-64%2064H400c-35.2%200-64-28.8-64-64H200.1l-0.1%200.1v703.8l0.1%200.1h623.8l0.1-0.1V192.1z'%20p-id='3637'%3e%3c/path%3e%3c/svg%3e",K3=Object.freeze(Object.defineProperty({__proto__:null,default:Y3},Symbol.toStringTag,{value:"Module"})),X3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752200293861'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4941'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M874.9%20577.3c-26.1-27.2-56.8-48.9-90.3-64.1%205.4-4.6%2010.6-9.6%2015.5-14.8%2032.3-34.7%2050.1-79.8%2050.1-127.2%200-102.9-83.7-186.7-186.7-186.7-11%200-21.8%200.9-32.5%202.8-7.1-9.6-14.9-18.7-23.4-27.2-44.6-44.6-103.9-69.2-167-69.2s-122.4%2024.6-167%2069.2-69.2%20103.9-69.2%20167%2024.6%20122.4%2069.2%20167c10.8%2010.8%2022.4%2020.4%2034.8%2028.7-4.9%201.8-9.7%203.8-14.5%205.8-44.9%2019-85.2%2046.2-119.9%2080.8-34.6%2034.6-61.8%2075-80.8%20119.9-19.7%2046.5-29.6%2095.9-29.6%20146.8%200%2017.7%201.2%2035.5%203.7%2052.9l69.3-9.7c-2-14.2-3-28.7-3-43.1%200-169.4%20137.8-307.1%20307.1-307.1s307.1%20137.8%20307.1%20307.1c0%2014.4-1%2028.9-3%2043.1l69.3%209.7c2.4-17.4%203.7-35.2%203.7-52.9%200-50.9-10-100.3-29.6-146.8-19-44.9-46.2-85.2-80.8-119.9-34.6-34.6-74.9-61.8-119.9-80.8-4.8-2-9.7-4-14.6-5.8%2012.3-8.4%2024-18%2034.8-28.7%2044.6-44.6%2069.2-103.9%2069.2-167%200-25-3.9-49.4-11.3-72.6%2063.4%201.1%20114.7%2053%20114.7%20116.6%200%2045.5-26.6%2085.6-65.3%20104.7-16.3%208.1-26.8%2024.4-26.8%2042.6v1c0%2021.2%2014.1%2040%2034.6%2045.5%2094.9%2025.8%20163.8%20112.4%20163.8%20215%200%2010.5-0.7%2021-2.2%2031.3l69.3%209.7c1.9-13.5%202.9-27.3%202.9-41-0.1-75.8-29.1-147.8-81.7-202.6z%20m-434.3-84c-91.6%200-166.2-74.6-166.2-166.2S349%20160.9%20440.6%20160.9s166.2%2074.6%20166.2%20166.2-74.5%20166.2-166.2%20166.2z'%20p-id='4942'%3e%3c/path%3e%3c/svg%3e",Q3=Object.freeze(Object.defineProperty({__proto__:null,default:X3},Symbol.toStringTag,{value:"Module"})),J3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759042395'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3793'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M751.104%20402.432H272.896a33.6896%2033.6896%200%200%201%200-67.3792h478.208a33.6896%2033.6896%200%201%201%200%2067.3792m0%20192.7168H272.896a33.7408%2033.7408%200%200%201%200-67.4304h478.208a33.7408%2033.7408%200%200%201%200%2067.4304m0%20192.6144H272.896a33.6896%2033.6896%200%201%201%200-67.3792h478.208a33.7408%2033.7408%200%201%201%200%2067.4304M621.6192%2075.3152H402.3296a33.6896%2033.6896%200%201%201%200-67.3792h219.2896a33.6896%2033.6896%200%200%201%200%2067.3792'%20p-id='3794'%3e%3c/path%3e%3cpath%20d='M169.2672%2070.912a37.9392%2037.9392%200%200%200-37.888%2037.8368v806.5024a37.888%2037.888%200%200%200%2037.888%2037.888h685.4656a37.888%2037.888%200%200%200%2037.8368-37.888V108.7488a37.9392%2037.9392%200%200%200-37.8368-37.8368h-72.704a128%20128%200%200%201-127.1296%20116.0192H369.1008a127.6928%20127.6928%200%200%201-127.1808-116.0192z%20m685.4656%20949.6576H169.2672a105.3696%20105.3696%200%200%201-105.2672-105.3184V108.7488A105.3696%20105.3696%200%200%201%20169.2672%203.4304h139.52v55.9104a60.2112%2060.2112%200%200%200%2060.3136%2060.16h285.7984a60.1088%2060.1088%200%200%200%2060.2112-60.16V3.4304h139.52a105.4208%20105.4208%200%200%201%20105.3696%20105.3184v806.5024a105.3184%20105.3184%200%200%201-105.2672%20105.3184z'%20p-id='3795'%3e%3c/path%3e%3c/svg%3e",Z3=Object.freeze(Object.defineProperty({__proto__:null,default:J3},Symbol.toStringTag,{value:"Module"})),eu="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1751524561033'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3065'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M960%20491.52v380.416c0%2026.112-23.04%2047.616-52.224%2047.616H116.224c-29.184%200-52.224-21.504-52.224-47.616V491.52c0-26.112%2023.04-47.616%2052.224-47.616h791.552c28.672%200%2052.224%2021.504%2052.224%2047.616z%20m-149.504%20156.16H213.504V783.36h596.992v-135.68z%20m149.504-500.736v186.88c0%2023.04-20.992%2042.496-46.592%2042.496H110.592c-25.6%200-46.592-18.944-46.592-42.496V146.944c0-23.04%2020.992-42.496%2046.592-42.496h802.304c26.112%200%2047.104%2018.944%2047.104%2042.496z%20m-671.744%2025.6c-41.472%200-74.752%2030.208-74.752%2068.096s33.792%2068.096%2074.752%2068.096S363.008%20278.528%20363.008%20240.64s-33.792-68.096-74.752-68.096z%20m224.256%200c-41.472%200-74.752%2030.208-74.752%2068.096s33.792%2068.096%2074.752%2068.096%2074.752-30.208%2074.752-68.096-33.792-68.096-74.752-68.096z'%20p-id='3066'%3e%3c/path%3e%3c/svg%3e",tu=Object.freeze(Object.defineProperty({__proto__:null,default:eu},Symbol.toStringTag,{value:"Module"})),iu="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752025057554'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2273'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M768%20544c105.6%200%20192%2086.4%20192%20192%200%20106.24-85.76%20192-192%20192s-192-85.76-192-192%2085.76-192%20192-192z%20m12.8-454.4a32%2032%200%200%201%2032%2032v362.368A255.744%20255.744%200%200%200%20530.56%20640H192a32%2032%200%200%200-5.76%2063.488L192%20704h321.92a255.104%20255.104%200%200%200%2065.024%20204.864L128.064%20908.8a32%2032%200%200%201-32-32V121.6a32%2032%200%200%201%2032-32h652.8z%20m62.72%20562.752l-4.352%203.712-100.992%20103.872-36.288-39.296-4.288-3.84a32%2032%200%200%200-46.208%2042.752l3.52%204.608%2059.264%2064%204.48%203.968a32%2032%200%200%200%2037.376%200.448l4.544-3.84%20124.48-128%203.648-4.48a32%2032%200%200%200-45.12-43.904zM384%20768H192a32%2032%200%200%200-5.76%2063.488L192%20832h192a32%2032%200%201%200%200-64z%20m76.8-384a89.6%2089.6%200%201%200%200%20179.2%2089.6%2089.6%200%200%200%200-179.2z%20m3.392-251.584a32%2032%200%200%200-43.776%2011.392l-217.6%20371.2-2.496%205.248a32%2032%200%200%200%2057.664%2027.136l217.6-371.2%202.496-5.248a32%2032%200%200%200-13.888-38.528zM460.8%20448a25.6%2025.6%200%201%201%200%2051.2%2025.6%2025.6%200%200%201%200-51.2zM230.4%20128a89.6%2089.6%200%201%200%200%20179.2%2089.6%2089.6%200%200%200%200-179.2z%20m0%2064a25.6%2025.6%200%201%201%200%2051.2%2025.6%2025.6%200%200%201%200-51.2z'%20p-id='2274'%3e%3c/path%3e%3c/svg%3e",nu=Object.freeze(Object.defineProperty({__proto__:null,default:iu},Symbol.toStringTag,{value:"Module"})),su="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752024911338'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1794'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M588.8%20532.3c-9.3-35.1-40.9-61-78.9-61-37.5%200-68.7%2025.3-78.5%2059.7-35.1%209.3-61%2040.9-61%2078.9%200%2037.5%2025.3%2068.7%2059.7%2078.5%209.3%2035.1%2040.9%2061%2078.9%2061%2037.5%200%2068.7-25.3%2078.5-59.7%2035-9.3%2061-40.9%2061-78.9%200-37.5-25.3-68.7-59.7-78.5zM624.4%20777.8H405.6c-8.1%200-14.7%206.3-14.7%2014l-6%20136.5c0%207.7%206.6%2014%2014.7%2014h29.9c8%200%2014.5-6%2014.7-13.6%200.8-29.4%2014.7-96%2069-96.4%2057.3-0.4%2071.5%2066.9%2072.3%2096.4%200.2%207.6%206.7%2013.6%2014.7%2013.6h30.2c8.2%200%2014.8-6.3%2014.7-14l-6-136.5c0-7.7-6.6-14-14.7-14z'%20fill='%23020202'%20p-id='1795'%3e%3c/path%3e%3cpath%20d='M797.5%2080H231.7c-68.5%200-124%2055.5-124%20124v454.5c0%2066.3%2053.7%20120%20120%20120h116.5c12.5%200%2022.6-10.1%2022.6-22.6v-27.2s-0.4-18.8-3.8-31.4c-1.2-4.2-3.6-8-6.9-10.8-23.6-20.7-38.6-50.9-38.6-84.8%200-48.9%2031.1-90.3%2074.5-106.2%206.2-2.3%2011-7%2013.4-13.2%2016.4-42.4%2057.2-72.7%20105.4-72.7%2048.9%200%2090.3%2031.1%20106.2%2074.5%202.3%206.2%207%2011%2013.2%2013.4%2042.4%2016.4%2072.7%2057.2%2072.7%20105.4%200%2035.1-16%2066.2-41%2086.9-1%200.8%201.1%2032.7%201.5%2038%200%200.5%200.1%201%200.1%201.5v26.4c0%2012.5%2010.1%2022.6%2022.6%2022.6h115.4c66.3%200%20120-53.7%20120-120V204c0-68.5-55.5-124-124-124z%20m-74.4%20246.5c0%2020.6-16.9%2037.5-37.5%2037.5h-342c-20.6%200-37.5-16.9-37.5-37.5S323%20289%20343.6%20289h342c20.6%200%2037.5%2016.9%2037.5%2037.5z%20m0-124c0%2020.6-16.9%2037.5-37.5%2037.5h-342c-20.6%200-37.5-16.9-37.5-37.5S323%20165%20343.6%20165h342c20.6%200%2037.5%2016.9%2037.5%2037.5z'%20fill='%23020202'%20p-id='1796'%3e%3c/path%3e%3c/svg%3e",ou=Object.freeze(Object.defineProperty({__proto__:null,default:su},Symbol.toStringTag,{value:"Module"})),ru="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://%20www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759802627'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3075'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M538.229%20225.071l322.441%200.03c46.887%200%2081.569%2034.381%2084.651%2082.355v487.122c0%2046.889-37.765%2086.494-84.651%2086.494H163.763c-46.887%200-84.651-38.579-84.651-86.494V225.102c0-46.887%2037.765-86.494%2084.651-86.494h208.153c81.632-0.001%2081.632%2086.494%20166.313%2086.463z%20m113.199%20377.577h-15.469c-17.098%200-30.935%2013.837-30.935%2030.936v92.809c0%2017.1%2013.837%2030.936%2030.935%2030.936h92.81c17.098%200%2030.938-13.836%2030.938-30.936v-92.809c0-17.099-13.84-30.936-30.938-30.936H713.3v-61.872c0-17.1-13.837-30.936-30.935-30.936H527.684v-30.936h15.469c17.098%200%2030.935-13.836%2030.935-30.936v-92.81c0-17.098-13.837-30.936-30.935-30.936h-92.81c-17.098%200-30.934%2013.838-30.934%2030.936v92.81c0%2017.1%2013.836%2030.936%2030.934%2030.936h15.469v30.936H342.068c-17.098%200-30.938%2013.836-30.938%2030.936v61.872h-15.466c-17.101%200-30.938%2013.837-30.938%2030.936v92.809c0%2017.1%2013.836%2030.936%2030.938%2030.936h92.807c17.101%200%2030.938-13.836%2030.938-30.936v-92.809c0-17.099-13.837-30.936-30.938-30.936h-15.466v-30.936h278.423v30.936z'%20p-id='3076'%3e%3c/path%3e%3c/svg%3e",lu=Object.freeze(Object.defineProperty({__proto__:null,default:ru},Symbol.toStringTag,{value:"Module"})),au="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752200280399'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4617'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M322.5%2062h384.6v70H322.5z'%20p-id='4618'%3e%3c/path%3e%3cpath%20d='M870.2%2062h-59.3v70h59.3c7.2%200%2013%205.8%2013%2013v733.9c0%207.2-5.8%2013-13%2013h-720c-7.2%200-13-5.8-13-13V145c0-7.2%205.8-13%2013-13h68.6V62h-68.6c-45.8%200-83%2037.2-83%2083v733.9c0%2045.8%2037.2%2083%2083%2083h720c45.8%200%2083-37.2%2083-83V145c0-45.8-37.3-83-83-83z'%20p-id='4619'%3e%3c/path%3e%3cpath%20d='M295%20806.2c-0.5-5.7-0.7-11.6-0.7-17.3%200-119%2096.8-215.8%20215.8-215.8S726%20669.8%20726%20788.8c0%205.8-0.2%2011.6-0.7%2017.3l69.8%205.6c0.6-7.6%200.9-15.3%200.9-22.9%200-76.4-29.7-148.1-83.7-202.1-29.7-29.8-64.9-52.1-103.3-66.2%2045.6-31.5%2075.5-84.1%2075.5-143.5%200-96.1-78.2-174.4-174.4-174.4-96.1%200-174.4%2078.2-174.4%20174.4%200%2059.5%2029.9%20112%2075.5%20143.5C373%20534.6%20337.8%20557%20308%20586.7c-54%2054-83.7%20125.8-83.7%20202.1%200%207.6%200.3%2015.3%200.9%2022.9l69.8-5.5z%20m215.2-533.6c57.5%200%20104.4%2046.8%20104.4%20104.4%200%2057.5-46.8%20104.4-104.4%20104.4-57.5%200-104.4-46.8-104.4-104.4%200-57.6%2046.8-104.4%20104.4-104.4z'%20p-id='4620'%3e%3c/path%3e%3c/svg%3e",cu=Object.freeze(Object.defineProperty({__proto__:null,default:au},Symbol.toStringTag,{value:"Module"})),hu="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753776005679'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2552'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M875.7248%20656.5376H634.624a29.44%2029.44%200%200%200-28.3648%2021.3248%2094.5152%2094.5152%200%200%201-181.8624%200%2029.44%2029.44%200%200%200-28.3904-21.3248H160.6656A58.2656%2058.2656%200%200%200%20102.4%20714.8032v172.2368a58.2656%2058.2656%200%200%200%2058.2656%2058.2656h715.0592a58.2656%2058.2656%200%200%200%2058.2656-58.2656v-172.2368a58.2656%2058.2656%200%200%200-58.2656-58.2656z%20m-229.632-481.3312v3.1488c-4.0448-1.8944-4.0448-2.5344%200-3.1488-4.0448-1.2544%200-1.8944%200-3.1488v3.1488z'%20fill='%23000000'%20p-id='2553'%3e%3c/path%3e%3cpath%20d='M833.6896%20102.4H354.1504c-17.5872%200-32.0768%2016.3072-32.0768%2035.7632V610.816h127.488c0%2040.1664%2028.8768%2072.7808%2064.0256%2072.7808%2035.7888%200%2064-32.6144%2064-72.7808h288.1024V138.1632c0-20.0704-14.4384-35.7632-32-35.7632zM457.472%20261.12h272.9472c13.056%200%2022.7584%2010.7008%2023.296%2023.296%200.5888%2012.6464-11.1104%2023.3472-23.296%2023.3472H457.4976c-13.056%200-22.7328-10.7008-23.296-23.3216-0.5632-12.6464%2011.1104-23.296%2023.296-23.296z%20m273.2288%20209.4592h-272.896c-13.0816%200-22.784-10.6752-23.3216-23.296-0.5632-12.6464%2011.1104-23.296%2023.296-23.296h272.9216c13.056%200%2022.7584%2010.6752%2023.296%2023.296%200.5888%2012.6208-11.0848%2023.296-23.296%2023.296z%20m-512-295.3728h39.4496v435.584H162.1248V231.7568c0-31.232%2025.344-56.576%2056.576-56.576z'%20fill='%23000000'%20p-id='2554'%3e%3c/path%3e%3c/svg%3e",uu=Object.freeze(Object.defineProperty({__proto__:null,default:hu},Symbol.toStringTag,{value:"Module"})),fu="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752025023308'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1955'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M481.322667%20891.349333l-328.533334-157.866666a72.064%2072.064%200%200%201-38.4-85.333334l366.933334%20179.2%2034.133333%2017.066667%20328.533333-157.866667%2068.266667-38.4a77.354667%2077.354667%200%200%201-38.4%2085.333334l-328.533333%20157.866666a58.069333%2058.069333%200%200%201-64%200z%20m0-153.6l-328.533334-157.866666a71.978667%2071.978667%200%200%201-38.4-85.333334l366.933334%20179.2%2034.133333%2017.066667%20328.533333-157.866667%2068.266667-38.4a77.269333%2077.269333%200%200%201-38.4%2085.333334l-328.533333%20157.866666a58.069333%2058.069333%200%200%201-64%200z%20m0-153.6l-328.533334-158.08a71.509333%2071.509333%200%200%201-34.133333-97.92%2067.626667%2067.626667%200%200%201%2034.133333-34.133333l328.533334-157.866667a57.770667%2057.770667%200%200%201%2064%200l328.533333%20157.866667a71.808%2071.808%200%200%201%2034.133333%2098.133333%2065.792%2065.792%200%200%201-34.133333%2034.133334l-328.533333%20158.08a58.496%2058.496%200%200%201-64%200z'%20p-id='1956'%3e%3c/path%3e%3c/svg%3e",du=Object.freeze(Object.defineProperty({__proto__:null,default:fu},Symbol.toStringTag,{value:"Module"})),pu="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753766109243'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3509'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M287.976534%20569.570276l76.718651%200%200%2063.953068-76.718651%200%200-63.953068Z'%20p-id='3510'%3e%3c/path%3e%3cpath%20d='M390.351503%20441.538988l-95.992178%200%200%2063.953068%2070.461012%200C364.820337%20479.96089%20377.58592%20460.812515%20390.351503%20441.538988z'%20p-id='3511'%3e%3c/path%3e%3cpath%20d='M287.976534%20313.632853l447.92178%200%200%2063.953068-447.92178%200%200-63.953068Z'%20p-id='3512'%3e%3c/path%3e%3cpath%20d='M287.976534%20697.601564l76.718651%200%200%2063.953068-76.718651%200%200-63.953068Z'%20p-id='3513'%3e%3c/path%3e%3cpath%20d='M921.625031%20441.538988%20492.726473%20441.538988c-38.421902%200-70.461012%2032.03911-70.461012%2070.461012L422.265461%20940.773405c0%2038.421902%2032.03911%2070.461012%2070.461012%2070.461012l428.773405%200c38.421902%200%2070.461012-32.03911%2070.461012-70.461012L991.96089%20512C991.96089%20473.578098%20959.92178%20441.538988%20921.625031%20441.538988zM911.863114%20917.494989c0%200-40.549499-157.692496-211.13273-180.219995l0%2061.700318c0%2012.139819-13.141041%2019.774138-23.653874%2013.641652l-184.850648-106.755317c-10.512833-6.132486-10.512833-21.275972%200-27.283305l184.850648-106.755317c10.512833-6.132486%2023.653874%201.501833%2023.653874%2013.641652l0%2050.06111C700.730384%20635.400636%20915.617697%20609.619164%20911.863114%20917.494989z'%20p-id='3514'%3e%3c/path%3e%3cpath%20d='M895.968712%200%20128.031288%200C76.843803%200.125153%2032.03911%2044.804693%2032.03911%2096.117331l0%20831.890491c0%2051.187485%2044.804693%2095.992178%2095.992178%2095.992178l255.937424%200c-12.765583-19.273527-25.531166-44.804693-25.531166-70.461012L358.437546%20889.460768%20160.070398%20889.460768%20160.070398%20121.648497l703.859203%200%200%20268.703007%2057.570276%200c25.531166%200%2051.187485%206.382791%2070.461012%2025.531166L991.96089%2095.992178C991.96089%2044.804693%20947.156197%200%20895.968712%200z'%20p-id='3515'%3e%3c/path%3e%3c/svg%3e",gu=Object.freeze(Object.defineProperty({__proto__:null,default:pu},Symbol.toStringTag,{value:"Module"}));function Ur(){const n=Object.assign({"/public/icons/svg/App.svg":nh,"/public/icons/svg/Avatar.svg":oh,"/public/icons/svg/Cancel.svg":lh,"/public/icons/svg/ChildAdd.svg":ch,"/public/icons/svg/ChildDelete.svg":uh,"/public/icons/svg/ChildFix.svg":dh,"/public/icons/svg/Delete.svg":gh,"/public/icons/svg/DongHuaFangZhen.svg":vh,"/public/icons/svg/Edit.svg":bh,"/public/icons/svg/EyeFill.svg":yh,"/public/icons/svg/Fold.svg":Sh,"/public/icons/svg/Form.svg":_h,"/public/icons/svg/Left.svg":Mh,"/public/icons/svg/Plus.svg":Th,"/public/icons/svg/Right.svg":Bh,"/public/icons/svg/Save.svg":Eh,"/public/icons/svg/Signature.svg":zh,"/public/icons/svg/Step.svg":Rh,"/public/icons/svg/Store.svg":Ih,"/public/icons/svg/Table.svg":$h,"/public/icons/svg/Tabs.svg":Fh,"/public/icons/svg/TimeLine.svg":jh,"/public/icons/svg/config.svg":Uh,"/public/icons/svg/emptyImg.svg":Kh,"/public/icons/svg/import.svg":Qh,"/public/icons/svg/jd单.svg":Zh,"/public/icons/svg/logo.svg":t1,"/public/icons/svg/operate.svg":n1,"/public/icons/svg/wenjian.svg":o1,"/public/icons/svg/wenjianjia.svg":l1,"/public/icons/svg/write.svg":c1,"/public/icons/svg/专项监督报告.svg":u1,"/public/icons/svg/个人中心.svg":d1,"/public/icons/svg/主菜单管理.svg":g1,"/public/icons/svg/会议纪要.svg":v1,"/public/icons/svg/停工令.svg":b1,"/public/icons/svg/制造厂.svg":y1,"/public/icons/svg/加工.svg":S1,"/public/icons/svg/协作单位.svg":_1,"/public/icons/svg/取消.svg":M1,"/public/icons/svg/同意.svg":T1,"/public/icons/svg/周报.svg":B1,"/public/icons/svg/备忘录.svg":E1,"/public/icons/svg/大屏.svg":z1,"/public/icons/svg/审批中心.svg":R1,"/public/icons/svg/审批列表.svg":I1,"/public/icons/svg/审核.svg":$1,"/public/icons/svg/工件库.svg":F1,"/public/icons/svg/工作台.svg":j1,"/public/icons/svg/平台管理.svg":U1,"/public/icons/svg/年度监造.svg":K1,"/public/icons/svg/年度计划.svg":Q1,"/public/icons/svg/批准.svg":Z1,"/public/icons/svg/承包商.svg":t3,"/public/icons/svg/技术监督单.svg":n3,"/public/icons/svg/报告中心.svg":o3,"/public/icons/svg/提交.svg":l3,"/public/icons/svg/文件管理.svg":c3,"/public/icons/svg/文档管理.svg":u3,"/public/icons/svg/方法库.svg":d3,"/public/icons/svg/日报.svg":g3,"/public/icons/svg/月报.svg":v3,"/public/icons/svg/档案管理.svg":b3,"/public/icons/svg/消息中心.svg":y3,"/public/icons/svg/灯泡维修.svg":S3,"/public/icons/svg/生成报告.svg":_3,"/public/icons/svg/用户管理.svg":M3,"/public/icons/svg/知识库.svg":T3,"/public/icons/svg/策划报告.svg":B3,"/public/icons/svg/算法.svg":E3,"/public/icons/svg/系统管理.svg":z3,"/public/icons/svg/经验反馈.svg":R3,"/public/icons/svg/经验反馈2.svg":I3,"/public/icons/svg/考核.svg":$3,"/public/icons/svg/职位管理.svg":F3,"/public/icons/svg/菜单管理.svg":j3,"/public/icons/svg/营运单位.svg":U3,"/public/icons/svg/观察意见单.svg":K3,"/public/icons/svg/角色管理.svg":Q3,"/public/icons/svg/记录单.svg":Z3,"/public/icons/svg/设备库.svg":tu,"/public/icons/svg/质量计划.svg":nu,"/public/icons/svg/资质管理.svg":ou,"/public/icons/svg/部门文件.svg":lu,"/public/icons/svg/部门管理.svg":cu,"/public/icons/svg/项目信息.svg":uu,"/public/icons/svg/项目管理.svg":du,"/public/icons/svg/驳回.svg":gu});return Object.keys(n).map(e=>({value:e.split("/").pop().replace(".svg",""),path:n[e].default}))}const mu={class:"icon-popover"},vu=["onClick"],wu=u.defineComponent({__name:"index",props:{modelValue:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,i=e,s=u.ref(t.modelValue),o=u.ref(!1),r=u.ref([]),l=()=>{o.value=!0},a=()=>{o.value=!1},c=h=>{s.value=h.value,i("update:modelValue",h.value)};return u.onMounted(()=>{r.value=Ur()}),(h,f)=>{const d=u.resolveComponent("el-input"),p=u.resolveComponent("el-popover");return u.openBlock(),u.createBlock(p,{width:"400",visible:o.value,title:"图标",placement:"bottom"},{default:u.withCtx(()=>[u.createElementVNode("div",mu,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(r.value,(g,m)=>(u.openBlock(),u.createElementBlock("div",{key:m,class:"icon-wrap",onClick:v=>c(g)},[u.createVNode(Wo.SvgIcon,{name:g==null?void 0:g.value,style:{width:"20px",height:"20px"}},null,8,["name"])],8,vu))),128))])]),reference:u.withCtx(()=>[u.createVNode(d,{modelValue:s.value,"onUpdate:modelValue":f[0]||(f[0]=g=>s.value=g),placeholder:"请输入",disabled:!(t!=null&&t.isEdit),clearable:"",onFocus:l,onBlur:a},{prepend:u.withCtx(()=>[u.createVNode(Wo.SvgIcon,{name:s.value,style:{width:"20px",height:"20px"}},null,8,["name"])]),_:1},8,["modelValue","disabled"])]),_:1},8,["visible"])}}}),bu=ce._export_sfc(wu,[["__scopeId","data-v-d9981dd9"]]),xu={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const e=n,t=u.ref(e.value);return(i,s)=>{const o=u.resolveComponent("el-input");return u.openBlock(),u.createBlock(o,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=r=>t.value=r),disabled:!(e!=null&&e.isEdit),type:"password","show-password":"",clearable:""},null,8,["modelValue","disabled"])}}},yu={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const e=n,t=u.ref(e.value);return(i,s)=>{const o=u.resolveComponent("el-color-picker");return u.openBlock(),u.createBlock(o,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=r=>t.value=r),"show-alpha":""},null,8,["modelValue"])}}},ku={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const e=n,t=u.ref(e.value);return(i,s)=>{const o=u.resolveComponent("el-input");return u.openBlock(),u.createBlock(o,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=r=>t.value=r),style:{height:"100%"},type:"number"},null,8,["modelValue"])}}},Nn=u.defineComponent({__name:"index",props:{modelValue:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},emptyColor:{type:Boolean,default:!1},buttonType:{type:String,default:"primary"}},emits:["clickTrigger"],setup(n,{emit:e}){const t=n,i=u.ref(t.modelValue),s=e,o=r=>{s("clickTrigger",r)};return(r,l)=>{const a=u.resolveComponent("el-button");return u.openBlock(),u.createBlock(a,{type:t==null?void 0:t.buttonType,id:t!=null&&t.emptyColor?"":"themeButton",onClick:l[0]||(l[0]=c=>o(i.value)),loading:t==null?void 0:t.loading},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(i.value),1)]),_:1},8,["type","id","loading"])}}}),Su={class:"form-content-view"},Cu={class:"form-item-label-child"},_u=["onClick"],Ou={class:"form-item-label-child"},Mu=["onClick"],Du=["onClick"],Tu={__name:"index",props:{formRules:Object,rowContents:Array,buttonValue:Array,isEnableWrap:{default:!0,type:Boolean},isRowFlex:{default:!1,type:Boolean},isButtonRow:{default:!0,type:Boolean},rowValues:Array,isEdit:{type:Boolean,default:!0},isStartJustify:{type:Boolean,default:!0}},emits:["change","onButtonClick","clickTrigger","blur","changeVisible","blurChange","preview"],setup(n,{emit:e}){const t=n;u.onMounted(()=>{console.log("表单",t==null?void 0:t.rowContents)});const i=e,s=u.ref(null),o=u.ref(null),r=u.ref(),l=u.ref(),a=u.ref(0),c=x=>Ms(x),h=x=>{i("clickTrigger",x)},f=x=>{i("preview",x)},d=()=>{i("blur",l.value)},p=()=>{i("blurChange",l.value)},g=()=>{u.nextTick(()=>{a.value++})},m=(x,k)=>{switch(x){case"datetime":return Rt.dayjs(k).format("YYYY-MM-DD HH:mm:ss");case"date":return Rt.dayjs(k).format("YYYY-MM-DD");default:return k}},v=x=>{i("changeVisible",x)};u.watch(()=>t==null?void 0:t.rowContents,()=>{var k,_;if(((k=t==null?void 0:t.rowContents)==null?void 0:k.length)===0)return;const x={};(_=ee.cloneDeep(t==null?void 0:t.rowContents))==null||_.forEach(y=>{x[(y==null?void 0:y.name)??(y==null?void 0:y.prop)]=m(y==null?void 0:y.type,y==null?void 0:y.value)}),r.value=x,l.value=x,g()},{deep:!0,immediate:!0});const b=async(x,k)=>{await u.nextTick(),console.log("onButtonClick",x,l.value),k&&await(k==null?void 0:k.validate((_,y)=>{_?i("onButtonClick",{content:l.value,buttonName:x}):console.log("表单校验失败",y)}))};return u.watch(()=>l.value,()=>{i("change",l.value)},{deep:!0}),(x,k)=>{var C;const _=u.resolveComponent("el-form-item"),y=u.resolveComponent("el-form"),S=u.resolveComponent("el-button");return u.openBlock(),u.createElementBlock("div",{class:"form-content",style:u.normalizeStyle({flexDirection:n.isButtonRow?"row":"column"})},[u.createElementVNode("div",Su,[t.isEnableWrap?(u.openBlock(),u.createBlock(y,{ref_key:"formWrapRef",ref:s,model:r.value,rules:n.formRules,class:"form-data",key:t.isRowFlex+a.value},{default:u.withCtx(()=>{var P,O;return[(P=x.item)!=null&&P.isFormColHidden?u.createCommentVNode("",!0):(u.openBlock(!0),u.createElementBlock(u.Fragment,{key:0},u.renderList(u.unref(ee.cloneDeep)(t==null?void 0:t.rowContents),(w,A)=>(u.openBlock(),u.createBlock(_,{key:A,class:"form-item",prop:(w==null?void 0:w.prop)??(w==null?void 0:w.name),style:u.normalizeStyle({flexDirection:n.isRowFlex?"row":"column",alignItems:n.isRowFlex?"center":"start",height:n.isRowFlex?"100%":"auto"})},u.createSlots({default:u.withCtx(()=>{var T,D,N,H;return[w!=null&&w.isFormColHidden?u.createCommentVNode("",!0):(u.openBlock(),u.createBlock(u.resolveDynamicComponent(c((w==null?void 0:w.type)??"Input")),{modelValue:l.value[(w==null?void 0:w.prop)??w.name],"onUpdate:modelValue":R=>l.value[(w==null?void 0:w.prop)??w.name]=R,key:w==null?void 0:w.type,content:(w==null?void 0:w.contents)??[],isEdit:t==null?void 0:t.isEdit,onClickTrigger:h,onBlur:d,optionUrl:w==null?void 0:w.optionUrl,onChangeVisible:v,onBlurChange:p,config:w==null?void 0:w.config},null,40,["modelValue","onUpdate:modelValue","content","isEdit","optionUrl","config"])),typeof l.value[(w==null?void 0:w.prop)??w.name]=="string"&&((T=l.value[(w==null?void 0:w.prop)??w.name])!=null&&T.includes(".stl")||(D=l.value[(w==null?void 0:w.prop)??w.name])!=null&&D.includes(".obj")||(N=l.value[(w==null?void 0:w.prop)??w.name])!=null&&N.includes(".urdf")||(H=l.value[(w==null?void 0:w.prop)??w.name])!=null&&H.includes(".ls"))?(u.openBlock(),u.createBlock(Nn,{key:1,class:"calculator-content",onClickTrigger:R=>f(l.value[(w==null?void 0:w.prop)??w.name]),modelValue:"预览"},null,8,["onClickTrigger"])):u.createCommentVNode("",!0)]}),_:2},[w!=null&&w.isFormColHidden?void 0:{name:"label",fn:u.withCtx(()=>[w!=null&&w.label?(u.openBlock(),u.createElementBlock("div",{key:0,class:"from-item-label",style:u.normalizeStyle({width:n.isRowFlex?"72px":"260px",minWidth:n.isRowFlex?"72px":"260px"})},[u.createElementVNode("div",Cu,u.toDisplayString(w==null?void 0:w.label),1)],4)):u.createCommentVNode("",!0)]),key:"0"}]),1032,["prop","style"]))),128)),((O=t.buttonValue)==null?void 0:O.length)>0&&n.isButtonRow?(u.openBlock(),u.createElementBlock("div",{key:1,class:"form-button",style:u.normalizeStyle({paddingTop:n.isRowFlex?"0":"26px",justifyContent:n.isStartJustify?"start":"end"})},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(t==null?void 0:t.buttonValue,(w,A)=>(u.openBlock(),u.createElementBlock("div",{key:A,class:"form-button-content"},[w?(u.openBlock(),u.createElementBlock("div",{key:0,class:"form-button-item",style:u.normalizeStyle({background:(w==null?void 0:w.background)??"var(--ssComponent-primary-color)"}),onClick:T=>b(w==null?void 0:w.label,s.value)},u.toDisplayString(w==null?void 0:w.label),13,_u)):u.createCommentVNode("",!0)]))),128))],4)):u.createCommentVNode("",!0)]}),_:1},8,["model","rules"])):(u.openBlock(),u.createBlock(y,{ref_key:"formRef",ref:o,model:l.value,rules:n.formRules,class:"form-noRegular-data",key:a.value},{default:u.withCtx(()=>{var P,O;return[(P=x.item)!=null&&P.isFormColHidden?u.createCommentVNode("",!0):(u.openBlock(!0),u.createElementBlock(u.Fragment,{key:0},u.renderList(u.unref(ee.cloneDeep)(t==null?void 0:t.rowContents),(w,A)=>(u.openBlock(),u.createBlock(_,{key:A,class:u.normalizeClass(["form-item",{"form-row-content":!n.isRowFlex}]),prop:(w==null?void 0:w.prop)??(w==null?void 0:w.name),style:u.normalizeStyle({flexDirection:n.isRowFlex?"row":"column",alignItems:n.isRowFlex?"center":"start",height:n.isRowFlex?"100%":"auto",width:`calc((100% / ${(w==null?void 0:w.width)??1}) - 12px)`,minWidth:`calc((100% / ${(w==null?void 0:w.width)??1}) - 12px)`})},u.createSlots({default:u.withCtx(()=>{var T,D,N,H;return[w!=null&&w.isFormColHidden?u.createCommentVNode("",!0):(u.openBlock(),u.createBlock(u.resolveDynamicComponent(c((w==null?void 0:w.type)??"Input")),{modelValue:l.value[(w==null?void 0:w.prop)??w.name],"onUpdate:modelValue":R=>l.value[(w==null?void 0:w.prop)??w.name]=R,isEdit:t==null?void 0:t.isEdit,content:(w==null?void 0:w.contents)??[],onClickTrigger:h,onBlur:d,key:w==null?void 0:w.type,optionUrl:w==null?void 0:w.optionUrl,onChangeVisible:v,onBlurChange:p,config:w==null?void 0:w.config},null,40,["modelValue","onUpdate:modelValue","isEdit","content","optionUrl","config"])),typeof l.value[(w==null?void 0:w.prop)??w.name]=="string"&&((T=l.value[(w==null?void 0:w.prop)??w.name])!=null&&T.includes(".stl")||(D=l.value[(w==null?void 0:w.prop)??w.name])!=null&&D.includes(".obj")||(N=l.value[(w==null?void 0:w.prop)??w.name])!=null&&N.includes(".urdf")||(H=l.value[(w==null?void 0:w.prop)??w.name])!=null&&H.includes(".ls"))?(u.openBlock(),u.createBlock(Nn,{key:1,class:"calculator-content form-preview",onClickTrigger:R=>f(l.value[(w==null?void 0:w.prop)??w.name]),modelValue:"预览"},null,8,["onClickTrigger"])):u.createCommentVNode("",!0)]}),_:2},[w!=null&&w.isFormColHidden?void 0:{name:"label",fn:u.withCtx(()=>[w!=null&&w.label?(u.openBlock(),u.createElementBlock("div",{key:0,class:"from-item-label",style:u.normalizeStyle({width:n.isRowFlex?"72px":"auto",minWidth:n.isRowFlex?"72px":`calc((100% / ${(w==null?void 0:w.width)??1}) - 8px)`})},[u.createElementVNode("div",Ou,u.toDisplayString(w==null?void 0:w.label),1)],4)):u.createCommentVNode("",!0)]),key:"0"}]),1032,["prop","class","style"]))),128)),((O=t.buttonValue)==null?void 0:O.length)>0&&n.isButtonRow?(u.openBlock(),u.createElementBlock("div",{key:1,class:"form-button",style:u.normalizeStyle({paddingTop:n.isRowFlex?"0":"26px",justifyContent:n.isStartJustify?"start":"end"})},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(t==null?void 0:t.buttonValue,(w,A)=>(u.openBlock(),u.createElementBlock("div",{key:A,class:"form-button-content"},[w?(u.openBlock(),u.createElementBlock("div",{key:0,class:"form-button-item",style:u.normalizeStyle({background:(w==null?void 0:w.background)??"var(--ssComponent-primary-color)"}),onClick:T=>b(w==null?void 0:w.label,o.value)},u.toDisplayString(w==null?void 0:w.label),13,Mu)):u.createCommentVNode("",!0)]))),128))],4)):u.createCommentVNode("",!0)]}),_:1},8,["model","rules"]))]),((C=t.buttonValue)==null?void 0:C.length)>0&&!n.isButtonRow?(u.openBlock(),u.createElementBlock("div",{key:0,class:"form-button",style:u.normalizeStyle({justifyContent:n.isStartJustify?"start":"end"})},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(t==null?void 0:t.buttonValue,(P,O)=>(u.openBlock(),u.createElementBlock("div",{key:O,class:"form-button-content",onClick:w=>b(P==null?void 0:P.label,t.isEnableWrap?s.value:o.value)},[u.createVNode(S,{id:"themeButton"},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(P==null?void 0:P.label),1)]),_:2},1024)],8,Du))),128))],4)):u.createCommentVNode("",!0)],4)}}},Yr=ce._export_sfc(Tu,[["__scopeId","data-v-c13bd9dc"]]),Au={__name:"index",props:{value:String,formRules:{type:Object,default:()=>{}},content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},emits:["clickTrigger","changeTrigger"],setup(n,{emit:e}){const t=n,i=e,s=r=>{i("clickTrigger",r)},o=r=>{i("changeTrigger",r)};return(r,l)=>{var a,c,h,f,d,p,g;return u.openBlock(),u.createBlock(Yr,{rowContents:((a=t==null?void 0:t.content)==null?void 0:a.rowContents)??[],formRules:(c=t==null?void 0:t.content)==null?void 0:c.formRules,buttonValue:((h=t==null?void 0:t.content)==null?void 0:h.buttonValue)??[],isEnableWrap:(f=t==null?void 0:t.content)==null?void 0:f.isEnableWrap,isRowFlex:(d=t==null?void 0:t.content)==null?void 0:d.isRowFlex,isButtonRow:(p=t==null?void 0:t.content)==null?void 0:p.isButtonRow,rowValues:((g=t==null?void 0:t.content)==null?void 0:g.rowValues)??[],onOnButtonClick:s,onChange:o},null,8,["rowContents","formRules","buttonValue","isEnableWrap","isRowFlex","isButtonRow","rowValues"])}}},Kr={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},emits:["change"],setup(n,{emit:e}){const t=n,i=u.ref(t.value),s=e,o=r=>{s("change",r)};return(r,l)=>{const a=u.resolveComponent("el-radio"),c=u.resolveComponent("el-radio-group");return u.openBlock(),u.createBlock(c,{modelValue:i.value,"onUpdate:modelValue":l[0]||(l[0]=h=>i.value=h),style:{height:"100%"},onChange:l[1]||(l[1]=h=>o(h))},{default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(t.content,(h,f)=>(u.openBlock(),u.createBlock(a,{key:f,label:h.value},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(h==null?void 0:h.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])}}},Xr={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0},isWrap:{type:Boolean,default:!1},min:{type:Number,default:1}},emits:["change"],setup(n,{emit:e}){const t=n,i=u.ref(t.value),s=e,o=r=>{s("change",r)};return(r,l)=>{const a=u.resolveComponent("el-checkbox"),c=u.resolveComponent("el-checkbox-group");return u.openBlock(),u.createBlock(c,{modelValue:i.value,"onUpdate:modelValue":l[0]||(l[0]=h=>i.value=h),style:{height:"100%"},min:n.min,onChange:l[1]||(l[1]=h=>o(h))},{default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(n.content,h=>(u.openBlock(),u.createBlock(a,{key:h.label,label:h.label,value:h.label,style:u.normalizeStyle({width:n.isWrap?"90%":"auto"})},null,8,["label","value","style"]))),128))]),_:1},8,["modelValue","min"])}}},Bu={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const e=n;return u.onMounted(()=>{document.querySelectorAll(".el-tab-pane").forEach(i=>{i.style.display="block"})}),(t,i)=>{var s;return u.openBlock(),u.createBlock(Ho,{tabsContents:((s=e==null?void 0:e.content)==null?void 0:s.tabsContents)??[]},u.createSlots({_:2},[u.renderList(t.$slots,(o,r)=>({name:r,fn:u.withCtx(l=>[u.renderSlot(t.$slots,r,u.normalizeProps(u.guardReactiveProps(l||{})))])}))]),1032,["tabsContents"])}}},Pu={class:"extra-button-content"},Eu={__name:"header",props:{buttons:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]}},emits:["buttonClick"],setup(n,{emit:e}){const t=n;u.ref(!1);const i=u.ref([]);u.ref([{label:"取消"},{label:"确认"}]);const s=o=>{var r;i.value=(r=o==null?void 0:o.filter(l=>(l==null?void 0:l.label)!==""&&(l==null?void 0:l.label)!=="操作"))==null?void 0:r.map(l=>({label:(l==null?void 0:l.label)??"",value:"",name:(l==null?void 0:l.prop)??""}))};return u.onMounted(()=>{s(t.columns)}),u.watch(()=>t.columns,()=>{s(t.columns)},{deep:!0,immediate:!0}),(o,r)=>(u.openBlock(),u.createElementBlock("div",Pu,[u.renderSlot(o.$slots,"headerButton",{},void 0,!0)]))}},Vu=ce._export_sfc(Eu,[["__scopeId","data-v-9727dc88"]]),zu={key:0},Lu=u.defineComponent({__name:"recurseCol",props:{column:{type:Object,default:{}}},setup(n){return(e,t)=>{var l,a,c,h,f,d,p,g,m;const i=u.resolveComponent("svg-icon"),s=u.resolveComponent("el-tooltip"),o=u.resolveComponent("RecurseCol",!0),r=u.resolveComponent("el-table-column");return n.column.isHidden?u.createCommentVNode("",!0):(u.openBlock(),u.createBlock(r,{key:0,label:n.column.label,prop:n.column.prop,fixed:((l=n.column)==null?void 0:l.label)==="操作"?"right":(a=n.column)==null?void 0:a.fixed,align:((c=n.column)==null?void 0:c.align)??"center",sortable:((h=n.column)==null?void 0:h.sortable)??!0,"show-overflow-tooltip":((f=n.column)==null?void 0:f.showOverflowTooltip)??!0,width:((d=n.column)==null?void 0:d.label)==="操作"?80:(p=n.column)==null?void 0:p.width,"min-width":(g=n.column)!=null&&g.width?parseInt(n.column.width):void 0,"class-name":(((m=n.column)==null?void 0:m.isNotDrag)??!1)===!0?"is-not-drag":"is-drag"},{header:u.withCtx(()=>[n.column.label!=="操作"?(u.openBlock(),u.createElementBlock("span",zu,u.toDisplayString(n.column.label),1)):(u.openBlock(),u.createBlock(s,{key:1,content:"操作",placement:"left-start",effect:"light"},{default:u.withCtx(()=>[u.createVNode(i,{name:"operate",style:{width:"15px",height:"15px"}})]),_:1}))]),default:u.withCtx(v=>[u.renderSlot(e.$slots,"content",{row:v.row,column:v.column,$index:v.$index}),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(n.column.children,(b,x)=>(u.openBlock(),u.createBlock(o,{key:x,column:b},u.createSlots({_:2},[u.renderList(e.$slots,(k,_)=>({name:_,fn:u.withCtx(y=>[u.renderSlot(e.$slots,_,u.mergeProps({ref_for:!0},y,{slotData:y,row:v.row,item:{child:b}}))])}))]),1032,["column"]))),128))]),_:3},8,["label","prop","fixed","align","sortable","show-overflow-tooltip","width","min-width","class-name"]))}}}),Ru={key:0},Nu=u.defineComponent({__name:"index",props:{column:{type:Object,default:{}}},setup(n){return(e,t)=>{var s,o,r,l,a,c,h,f,d,p;const i=u.resolveComponent("el-table-column");return n.column.isTableColHidden?u.createCommentVNode("",!0):(u.openBlock(),u.createBlock(i,{key:0,label:n.column.label,prop:n.column.prop,fixed:((s=n.column)==null?void 0:s.label)==="操作"?"right":(o=n.column)==null?void 0:o.fixed,align:((r=n.column)==null?void 0:r.align)??"center",sortable:((l=n.column)==null?void 0:l.sortable)??!0,"show-overflow-tooltip":((a=n.column)==null?void 0:a.showOverflowTooltip)??!0,width:((c=n.column)==null?void 0:c.label)==="操作"?80:(h=n.column)==null?void 0:h.width,"min-width":(f=n.column)!=null&&f.width?parseInt(n.column.width):void 0,"class-name":((d=n.column)==null?void 0:d.prop)==="operate"?"action":(((p=n.column)==null?void 0:p.isNotDrag)??!1)===!0?"is-not-drag":"is-drag"},{header:u.withCtx(()=>[n.column.label!=="操作"?(u.openBlock(),u.createElementBlock("span",Ru,u.toDisplayString(n.column.label),1)):u.renderSlot(e.$slots,"operateHeader",{key:1})]),default:u.withCtx(g=>[u.renderSlot(e.$slots,"content",{row:g.row,column:g.column,$index:g.$index}),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(n.column.children,(m,v)=>(u.openBlock(),u.createBlock(Lu,{key:v,column:m},u.createSlots({_:2},[u.renderList(e.$slots,(b,x)=>({name:x,fn:u.withCtx(({row:k,slotData:_,item:y})=>[u.renderSlot(e.$slots,x,u.mergeProps({ref_for:!0},_??k,{item:y??m,slotData:_??k}))])}))]),1032,["column"]))),128))]),_:3},8,["label","prop","fixed","align","sortable","show-overflow-tooltip","width","min-width","class-name"]))}}}),Iu={class:"table-content-show"},Hu=["onClick"],$u=["onClick"],Wu=["onClick"],Fu={key:2,class:"table-content"},Gu={__name:"index",props:{checkedColumns:Array,columns:Array,tableData:Array,currentPage:Number,total:Number,pageSize:Number,extraButton:{type:Array,default:()=>[]},isShowPagination:{type:Boolean,default:!0},isShowEdit:{type:Boolean,default:!0},isMoveColumn:{type:Boolean,default:!0},isShowDelete:{type:Boolean,default:!0}},emits:["dbClickRow","fixRow","deleteRow","doSizeChange","doCurrentChange","buttonClick","contentClick","rowClick"],setup(n,{emit:e}){const t=n,i=u.ref([]),s=u.ref([]),o=u.ref(0),r=u.ref(null),l=u.ref(null),a=e;u.onMounted(()=>{var O;i.value=t==null?void 0:t.columns,s.value=(O=t==null?void 0:t.tableData)==null?void 0:O.map(w=>{var T;let A={};for(let D in w)A[D]=Fo(w[D])&&w[D]===0?(T=w[D])==null?void 0:T.toString():w[D];return A}),t.isMoveColumn&&k(),y()});const c=(O,w,A,T)=>u.computed(()=>{var N,H,R,F,ie,U,Q,Ce,xe,Pe;let D=O!=null&&O[w==null?void 0:w.prop]?((H=(N=O==null?void 0:O[w==null?void 0:w.prop])==null?void 0:N[0])==null?void 0:H.contents)??(O==null?void 0:O[w==null?void 0:w.prop]):((F=(R=O==null?void 0:O[A==null?void 0:A.prop])==null?void 0:R[0])==null?void 0:F.contents)??(O==null?void 0:O[A==null?void 0:A.prop])??((U=(ie=T==null?void 0:T[A==null?void 0:A.prop])==null?void 0:ie[0])==null?void 0:U.contents)??(T==null?void 0:T[A==null?void 0:A.prop])??((xe=(Ce=O==null?void 0:O[(Q=A==null?void 0:A.child)==null?void 0:Q.prop])==null?void 0:Ce[0])==null?void 0:xe.contents)??(O==null?void 0:O[(Pe=A==null?void 0:A.child)==null?void 0:Pe.prop]);return Array.isArray(D)&&!(D!=null&&D.every(Ye=>typeof Ye=="string"||typeof Ye=="number"))?"查看":D}),h=O=>{a("rowClick",{row:O,type:"table"})},f=O=>{a("buttonClick",O)};u.watch(()=>t==null?void 0:t.tableData,()=>{var O;s.value=(O=t==null?void 0:t.tableData)==null?void 0:O.map(w=>{var T;let A={};for(let D in w)A[D]=Fo(w[D])&&w[D]===0?(T=w[D])==null?void 0:T.toString():w[D];return A})},{deep:!0});const d=O=>Ms(O),p=O=>{a("doCurrentChange",O)},g=(O,w)=>{a("dbClickRow",O)},m=O=>{a("doSizeChange",O)},v=O=>{a("fixRow",O)},b=O=>{a("deleteRow",O)},x=(O,w,A,T)=>{a("contentClick",O,w,A,T)},k=()=>{var w;const O=(w=r.value)==null?void 0:w.$el.querySelector(".el-table__header-wrapper tr");!O||!t.isMoveColumn||Rt.Sortable.create(O,{animation:180,delay:0,handle:".is-drag .cell",onMove:A=>!A.related.classList.contains("is-not-drag"),onEnd:A=>{o.value++;const T=A.oldIndex,D=A.newIndex,N=i.value.splice(T,1)[0];i.value.splice(D,0,N),t.isMoveColumn&&u.nextTick(()=>{k(),y()})}})};u.watch(()=>t.isMoveColumn,()=>{t.isMoveColumn&&u.nextTick(()=>{k(),y()})});const _=({column:O})=>O.label&&O.label.length>8?"long-header":"",y=()=>{var w;const O=(w=r.value)==null?void 0:w.$el.querySelector(".el-table__body-wrapper tbody");O&&new Rt.Sortable(O,{animation:150,handle:".el-table__row",ghostClass:"sortable-ghost",onEnd:({newIndex:A,oldIndex:T})=>{const D=[...s.value],[N]=D.splice(T,1);D.splice(A,0,N),s.value=D,u.nextTick(()=>{y()})}})},S=O=>{O.preventDefault();try{const A=(O.clipboardData||(window==null?void 0:window.clipboardData)).getData("text/plain");if(!A)return;const T=C(A);if(!T.length)return;const{rowIndex:D,columnIndex:N}=l.value||{rowIndex:0,columnIndex:0},H=[];if(T==null||T.forEach(R=>{H.push(R.length+N)}),(H==null?void 0:H.filter(R=>{var F;return R>Object.keys((F=s.value)==null?void 0:F[0]).length}).length)>0){ee.ElMessage({type:"warning",message:"所剩列数不够"});return}for(let R=0;R<T.length;R++){const F=T[R],ie=s.value[D+R],U=ee.cloneDeep(i.value).map(Q=>Q.prop);for(let Q=0;Q<F.length&&N+Q<U.length;Q++){const Ce=U[N+Q];ie[Ce]=F[Q]||""}}}catch(w){console.error("粘贴失败:",w)}},C=O=>O.trim().split(/\r\n|\n|\r/).map(T=>T.trim()?T.split(" ").map(D=>D.replace(/^"(.*)"$/,"$1")):[""]),P=({row:O,rowIndex:w})=>w%2===0?"default-row":"special-row";return(O,w)=>{const A=u.resolveComponent("el-table"),T=u.resolveComponent("el-pagination");return u.openBlock(),u.createElementBlock("div",Iu,[u.createVNode(Vu,{buttons:t==null?void 0:t.extraButton,onButtonClick:f,columns:i.value},{headerButton:u.withCtx(()=>[u.renderSlot(O.$slots,"headerButton",{buttons:t==null?void 0:t.extraButton,columns:i.value},void 0,!0)]),_:3},8,["buttons","columns"]),(u.openBlock(),u.createBlock(A,{border:!1,class:"table-wrap",data:s.value,stripe:"",style:{width:"100%"},"max-height":"600",ref_key:"tableRef",ref:r,"empty-text":"暂无数据",onSelectionChange:O.handleTableSelectChange,onCellClick:h,onRowDblclick:g,key:o.value,onPaste:S,"row-class-name":P,"header-cell-class-name":_},{default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(i.value,(D,N)=>{var H;return u.openBlock(),u.createElementBlock(u.Fragment,null,[(H=n.checkedColumns)!=null&&H.includes(D==null?void 0:D.label)?(u.openBlock(),u.createBlock(Nu,{key:0,column:D},{operateHeader:u.withCtx(()=>[u.renderSlot(O.$slots,"operateCol",{},void 0,!0)]),content:u.withCtx(({row:R,item:F,slotData:ie})=>[((D==null?void 0:D.type)??"text")==="text"&&((R==null?void 0:R.tableEditType)??"text")==="text"?(u.openBlock(),u.createElementBlock("span",{key:0,class:"table-content",style:u.normalizeStyle({cursor:R!=null&&R.children?"pointer":"default"}),onClick:U=>{var Q;return x(R!=null&&R[D==null?void 0:D.prop]?R==null?void 0:R[D==null?void 0:D.prop]:(R==null?void 0:R[F==null?void 0:F.prop])??(ie==null?void 0:ie[F==null?void 0:F.prop])??(R==null?void 0:R[(Q=F==null?void 0:F.child)==null?void 0:Q.prop]),F==null?void 0:F.prop,R??ie,{data:c(R,D,F,ie).value})}},u.toDisplayString(c(R,D,F,ie)),13,Hu)):u.createCommentVNode("",!0),((D==null?void 0:D.type)??"text")==="operate"?(u.openBlock(),u.createElementBlock("span",{key:1,class:"table-operate",style:u.normalizeStyle({justifyContent:n.isShowEdit&&n.isShowDelete?"space-between":"center"})},[u.renderSlot(O.$slots,"actions",{item:R},void 0,!0),n.isShowEdit?(u.openBlock(),u.createElementBlock("span",{key:0,onClick:U=>v(R),class:"blue-table-operate table-operate-content"},"编辑",8,$u)):u.createCommentVNode("",!0),n.isShowDelete?(u.openBlock(),u.createElementBlock("span",{key:1,onClick:U=>b(R),class:"red-table-operate table-operate-content"},"删除",8,Wu)):u.createCommentVNode("",!0)],4)):u.createCommentVNode("",!0),((D==null?void 0:D.type)??"text")==="edit"&&((R==null?void 0:R.tableEditType)??"text")!=="edit"||((D==null?void 0:D.type)??"text")==="text"&&((R==null?void 0:R.tableEditType)??"text")==="edit"?(u.openBlock(),u.createElementBlock("span",Fu,[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(d((D==null?void 0:D.columnType)??"Input")),{modelValue:R[D.prop],"onUpdate:modelValue":U=>R[D.prop]=U,style:{height:"100%"},content:(D==null?void 0:D.contents)??[]},null,8,["modelValue","onUpdate:modelValue","content"]))])):u.createCommentVNode("",!0)]),_:2},1032,["column"])):u.createCommentVNode("",!0)],64)}),256))]),_:3},8,["data","onSelectionChange"])),(t==null?void 0:t.isShowPagination)??!1?(u.openBlock(),u.createBlock(T,{key:0,onSizeChange:m,onCurrentChange:p,"current-page":(t==null?void 0:t.currentPage)??1,"page-sizes":[5,10,20,50,100],"page-size":(t==null?void 0:t.pageSize)??10,layout:"total, sizes, prev, pager, next, jumper",total:(t==null?void 0:t.total)??0},null,8,["current-page","page-size","total"])):u.createCommentVNode("",!0)])}}},Qr=ce._export_sfc(Gu,[["__scopeId","data-v-214d6a18"]]),ju={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},emits:["dbChange"],setup(n,{emit:e}){const t=n,i=u.ref([]);u.watch(()=>{var r;return(r=t==null?void 0:t.content)==null?void 0:r.tableData},()=>{var r,l,a,c;((l=(r=t==null?void 0:t.content)==null?void 0:r.tableData)==null?void 0:l.length)===0||!((a=t==null?void 0:t.content)!=null&&a.tableData)||(i.value=ee.cloneDeep((c=t==null?void 0:t.content)==null?void 0:c.tableData))},{deep:!0,immediate:!0});const s=e,o=r=>{var h,f,d,p;if(((h=t==null?void 0:t.content)==null?void 0:h.dbType)!=="edit"||!i.value||((f=i.value)==null?void 0:f.length)===0)return;let l=i.value,a=[];((d=l==null?void 0:l.filter(g=>(g==null?void 0:g.tableEditType)==="edit"))==null?void 0:d.length)!==(((p=t==null?void 0:t.content)==null?void 0:p.editNumber)??1)&&(l=l==null?void 0:l.map(g=>((g==null?void 0:g.id)===(r==null?void 0:r.id)&&(g.tableEditType="edit",a.push(g)),g)),s("dbChange",{content:l,item:a}))};return(r,l)=>{var a,c,h,f,d,p,g;return u.openBlock(),u.createElementBlock(u.Fragment,null,[u.renderSlot(r.$slots,`${(a=t==null?void 0:t.content)==null?void 0:a.value}_tableHeader`),(u.openBlock(),u.createBlock(Qr,{columns:((c=t==null?void 0:t.content)==null?void 0:c.columns)??[],tableData:i.value??[],currentPage:(h=t==null?void 0:t.content)==null?void 0:h.currentPage,total:(f=t==null?void 0:t.content)==null?void 0:f.total,pageSize:(d=t==null?void 0:t.content)==null?void 0:d.pageSize,isShowPagination:(p=t==null?void 0:t.content)==null?void 0:p.isShowPagination,isShowEdit:!1,isMoveColumn:(g=t==null?void 0:t.content)==null?void 0:g.isMoveColumn,isShowDelete:!1,onDoClickRow:o,key:i.value??[]},{actions:u.withCtx(({item:m})=>{var v;return[u.renderSlot(r.$slots,`${(v=t==null?void 0:t.content)==null?void 0:v.value}_action`,{item:m})]}),_:3},8,["columns","tableData","currentPage","total","pageSize","isShowPagination","isMoveColumn"]))],64)}}},qu=async n=>{var i,s,o;const e=await ee.getInsofDataApi({key:{pageKey:n==null?void 0:n.path,tableId:n==null?void 0:n.id,type:"data",systemKey:sessionStorage.getItem("systemKey")}});let t=[];return((i=e==null?void 0:e.data)==null?void 0:i.type)==="success"&&(t=(o=(s=e==null?void 0:e.data)==null?void 0:s.result)==null?void 0:o.map(r=>{var l;return(l=r==null?void 0:r.value)==null?void 0:l.tableData})),t=t==null?void 0:t.map(r=>({label:r==null?void 0:r[n==null?void 0:n.columnType],value:r==null?void 0:r[n==null?void 0:n.columnType]})),t},Uu=async n=>{var s,o,r,l,a;let e="",t=[];(s=n==null?void 0:n.menuSelect)==null||s.forEach(c=>{e=e===""?e+c:e+"/"+c});let i="";return(l=(r=(o=await Rt.menuToParent(n==null?void 0:n.menuSelect))==null?void 0:o.data)==null?void 0:r.result)==null||l.forEach(c=>{var h,f,d,p;((f=(h=c==null?void 0:c.value)==null?void 0:h.pageData)==null?void 0:f.name)===(((p=(d=n==null?void 0:n.groupSelect)==null?void 0:d[0])==null?void 0:p.replaceAll("'",""))??"")&&(i=c==null?void 0:c.id)}),i!==""&&(t=qu({path:e,id:i,columnType:(a=n==null?void 0:n.groupSelect)==null?void 0:a[1]})),t},Yu={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0},optionUrl:{type:Object,default:()=>{}}},emits:["blurChange"],setup(n,{emit:e}){const t=n,i=e,s=u.ref(t.value),o=u.ref();u.onMounted(()=>{o.value=t==null?void 0:t.content});const r=()=>{i("blurChange")};return u.watch(()=>t.optionUrl,async()=>{var l,a,c,h;((a=(l=t.optionUrl)==null?void 0:l.menuSelect)==null?void 0:a.length)>0&&(o.value=await Uu(t.optionUrl),s.value=(h=(c=o.value)==null?void 0:c[0])==null?void 0:h.value)},{immediate:!0,deep:!0}),(l,a)=>{const c=u.resolveComponent("el-option"),h=u.resolveComponent("el-select");return u.openBlock(),u.createBlock(h,{modelValue:s.value,"onUpdate:modelValue":a[0]||(a[0]=f=>s.value=f),clearable:"",placeholder:"请选择下拉内容...",style:{width:"100%"},onChange:r},{default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(o.value,f=>(u.openBlock(),u.createBlock(c,{key:f.value,label:f.label,value:f.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])}}},Ku=u.defineComponent({__name:"index",props:{value:String,config:Object,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},emits:["changeVisible"],setup(n,{emit:e}){const t=n,i=u.ref(t.value),s=e,o=u.ref({checkStrictly:!0}),r=l=>{s("changeVisible",l)};return(l,a)=>{const c=u.resolveComponent("el-cascader");return u.openBlock(),u.createBlock(c,{modelValue:i.value,"onUpdate:modelValue":a[0]||(a[0]=h=>i.value=h),clearable:"",props:o.value,options:t==null?void 0:t.content,style:{width:"100%"},onVisibleChange:r},null,8,["modelValue","props","options"])}}}),Xu={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const e=n,t=u.ref(e.value);return(i,s)=>{const o=u.resolveComponent("el-option"),r=u.resolveComponent("el-select");return u.openBlock(),u.createBlock(r,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=l=>t.value=l),multiple:"",clearable:"",placeholder:"请选择下拉内容...",style:{width:"100%"}},{default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(e==null?void 0:e.content,l=>(u.openBlock(),u.createBlock(o,{key:l.value,label:l.label,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])}}},Qu=u.defineComponent({__name:"menuItem",props:{menuList:{type:Array,default:()=>[]}},emits:["clickMenu","openMenu","closeMenu"],setup(n,{emit:e}){const t=e,i=r=>{t("clickMenu",r)},s=r=>{t("openMenu",r)},o=r=>{t("closeMenu",r)};return u.onMounted(()=>{}),(r,l)=>{const a=u.resolveComponent("MenuItem",!0),c=u.resolveComponent("el-sub-menu"),h=u.resolveComponent("el-menu-item");return u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(n.menuList,f=>(u.openBlock(),u.createElementBlock(u.Fragment,null,[f.show&&f.children&&f.children.length>0?(u.openBlock(),u.createBlock(c,{index:f.path,key:f.path},{title:u.withCtx(()=>[u.renderSlot(r.$slots,"title",{menu:f})]),default:u.withCtx(()=>[u.createVNode(a,{menuList:f.children,onClickMenu:i,onOpenMenu:s,onCloseMenu:o},u.createSlots({_:2},[u.renderList(r.$slots,(d,p)=>({name:p,fn:u.withCtx(g=>[u.renderSlot(r.$slots,p,u.mergeProps({ref_for:!0},g))])}))]),1032,["menuList"])]),_:2},1032,["index"])):f.show?(u.openBlock(),u.createBlock(h,{index:f.path,key:f.path,onClick:d=>i(f)},{title:u.withCtx(()=>[u.renderSlot(r.$slots,"title",{menu:f})]),_:2},1032,["index","onClick"])):u.createCommentVNode("",!0)],64))),256)}}}),Ju=u.defineComponent({__name:"index",props:{menuList:{type:Array,default:()=>[]},mode:{type:String,default:"vertical"}},emits:["clickMenu","openMenu","closeMenu"],setup(n,{emit:e}){const t=ee.useMenuState(),{activeMenuPath:i,activeMenuOpenPaths:s,activeTopMenuPath:o}=ee.storeToRefs(t),r=n,l=e,a=p=>{l("clickMenu",p)},c=p=>{l("openMenu",p)},h=p=>{l("closeMenu",p)},f=u.computed(()=>(r==null?void 0:r.mode)==="vertical"?i.value:o.value),d=u.computed(()=>s.value);return(p,g)=>{const m=u.resolveComponent("el-sub-menu"),v=u.resolveComponent("el-menu-item"),b=u.resolveComponent("el-menu");return u.openBlock(),u.createBlock(b,{class:"menu-wrap",mode:n.mode,"default-active":f.value,"default-openeds":d.value,"unique-opened":!0,"collapse-transition":!1,"popper-offset":12,ellipsis:!0,onOpen:c,onClose:h},{default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(n.menuList,x=>(u.openBlock(),u.createElementBlock(u.Fragment,null,[x.show&&x.children&&x.children.length>0?(u.openBlock(),u.createBlock(m,{index:x.path,key:x.path,style:u.normalizeStyle(x.style)},{title:u.withCtx(()=>[u.renderSlot(p.$slots,"title",{menu:x},void 0,!0)]),default:u.withCtx(()=>[u.createVNode(Qu,{menuList:x.children,onClickMenu:a},u.createSlots({_:2},[u.renderList(p.$slots,(k,_)=>({name:_,fn:u.withCtx(y=>[u.renderSlot(p.$slots,_,u.mergeProps({ref_for:!0},y),void 0,!0)])}))]),1032,["menuList"])]),_:2},1032,["index","style"])):x.show?(u.openBlock(),u.createBlock(v,{index:x.path,key:x.path,style:u.normalizeStyle(x.style),onClick:k=>a(x)},{title:u.withCtx(()=>[u.renderSlot(p.$slots,"title",{menu:x},void 0,!0)]),_:2},1032,["index","style","onClick"])):u.createCommentVNode("",!0)],64))),256))]),_:3},8,["mode","default-active","default-openeds"])}}}),Jr=ce._export_sfc(Ju,[["__scopeId","data-v-6a992c79"]]),Zu=Object.freeze(Object.defineProperty({__proto__:null,default:Jr},Symbol.toStringTag,{value:"Module"})),ef={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const e=n,t=u.ref(e.value);return(i,s)=>{const o=u.resolveComponent("el-date-picker");return u.openBlock(),u.createBlock(o,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=r=>t.value=r),type:"date",placeholder:"请选择日期",format:"YYYY-MM-DD",style:{width:"100%"}},null,8,["modelValue"])}}},tf={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const e=n,t=u.ref(e.value);return(i,s)=>{const o=u.resolveComponent("el-date-picker");return u.openBlock(),u.createBlock(o,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=r=>t.value=r),type:"datetime",placeholder:"请选择时间",format:"YYYY-MM-DD HH:mm:ss",style:{width:"100%"}},null,8,["modelValue"])}}},nf={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const e=n,t=u.ref(e.value);return(i,s)=>{const o=u.resolveComponent("el-input");return u.openBlock(),u.createBlock(o,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=r=>t.value=r),type:"textarea",placeholder:"请输入内容...",disabled:!(e!=null&&e.isEdit)},null,8,["modelValue","disabled"])}}},sf=ce._export_sfc(nf,[["__scopeId","data-v-e31bf677"]]),of={class:"dialog-title"},rf={__name:"index",props:{title:{type:String,default:""},dialogWidth:{type:Number,default:600},visible:{type:Boolean,default:!1},fullScreen:{type:Boolean,default:!1},dialogHeight:{type:Number,default:600},showClose:{type:Boolean,default:!0}},emits:["beforeDestroy"],setup(n,{emit:e}){const t=n,i=e,s=u.ref(!1),o=()=>{i("beforeDestroy")};return u.watch(()=>t==null?void 0:t.visible,()=>{s.value=t==null?void 0:t.visible},{deep:!0,immediate:!0}),(r,l)=>{const a=u.resolveComponent("el-dialog");return u.openBlock(),u.createBlock(a,{modelValue:s.value,"onUpdate:modelValue":l[0]||(l[0]=c=>s.value=c),width:t==null?void 0:t.dialogWidth,"before-close":o,draggable:"",style:u.normalizeStyle({height:t==null?void 0:t.dialogHeight}),fullscreen:t==null?void 0:t.fullScreen,"destroy-on-close":!0,"show-close":t==null?void 0:t.showClose},{default:u.withCtx(()=>[u.renderSlot(r.$slots,"default",{},void 0,!0)]),header:u.withCtx(()=>[u.createElementVNode("div",of,u.toDisplayString(t==null?void 0:t.title),1),u.renderSlot(r.$slots,"header",{},void 0,!0)]),footer:u.withCtx(()=>[u.renderSlot(r.$slots,"footer",{},void 0,!0)]),_:3},8,["modelValue","width","style","fullscreen","show-close"])}}},Bi=ce._export_sfc(rf,[["__scopeId","data-v-048a6610"]]);function lf(n){const e=sessionStorage.getItem("loginToken")??"123456";return ee.service({url:"/api/sysFile/uploadFile",method:"post",data:n,headers:{Authorization:e,"Content-Type":"multipart/form-data"}})}function af(n){const e=sessionStorage.getItem("loginToken")??"123456";return ee.service({url:"/api/sysFile/uploadAvatar",method:"post",data:n,headers:{Authorization:e,"Content-Type":"multipart/form-data"}})}function Zr(n){const e=sessionStorage.getItem("loginToken")??"123456";return ee.service({url:"/api/sysFile/downloadFile",method:"post",data:n,headers:{Authorization:e,Accept:"application/octet-stream"},responseType:"blob"})}const cf={class:"txt-renderer"},hf={class:"txt-wrapper"},uf={__name:"index",props:{fileName:String,blobUrl:String},setup(n){const e=n,t=u.computed(()=>e.blobUrl),i=u.ref("");return u.watchEffect(async()=>{t.value;const o=await(await fetch(t.value)).blob(),r=new FileReader;r.onload=function(l){i.value=l.target.result},r.readAsText(o)}),(s,o)=>(u.openBlock(),u.createElementBlock("div",cf,[u.createElementVNode("pre",hf,u.toDisplayString(i.value),1)]))}},ff=ce._export_sfc(uf,[["__scopeId","data-v-fde812b6"]]),df={class:"docx-renderer"},pf={__name:"index",props:{fileName:String,blobUrl:String},setup(n){const e=n,t=u.computed(()=>e.blobUrl),i=u.ref(null);return u.watchEffect(async()=>{t.value;const o=await(await fetch(t.value)).blob();await Rt.renderAsync(o,i.value,null,{})}),(s,o)=>(u.openBlock(),u.createElementBlock("div",df,[u.createElementVNode("div",{ref_key:"docxPreview",ref:i,class:"render-docx-wrappper"},null,512)]))}},gf=ce._export_sfc(pf,[["__scopeId","data-v-78135a17"]]),mf={class:"xlsx-renderer"},vf={__name:"index",props:{fileName:String,blobUrl:String},setup(n){const e=n,t=u.computed(()=>e.blobUrl),i=u.ref(null);return u.watchEffect(async()=>{t.value;const o=await(await fetch(t.value)).blob();i.value=Rt.Hg.init(document.getElementById("excel")),i.value.preview(o).then(()=>{console.log("预览完成")}).catch(r=>{console.log("预览失败",r)})}),(s,o)=>(u.openBlock(),u.createElementBlock("div",mf,o[0]||(o[0]=[u.createElementVNode("div",{id:"excel"},null,-1)])))}},wf=ce._export_sfc(vf,[["__scopeId","data-v-08dbfb73"]]),bf={class:"pdf-renderer"},xf=["src"],yf={__name:"index",props:{fileName:String,blobUrl:String},setup(n){const e=n,t=u.computed(()=>e.blobUrl),i=u.ref("");return u.watchEffect(async()=>{t.value;const o=await(await fetch(t.value)).blob(),r=new Blob([o],{type:"application/pdf"}),l=URL.createObjectURL(r);i.value=l}),u.onUnmounted(()=>{i.value&&URL.revokeObjectURL(i.value)}),(s,o)=>(u.openBlock(),u.createElementBlock("div",bf,[u.createElementVNode("iframe",{src:i.value,class:"pdf-iframe"},null,8,xf)]))}},kf=ce._export_sfc(yf,[["__scopeId","data-v-b4ab8c04"]]);let s0=[],el=[];(()=>{let n="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=0,t=0;e<n.length;e++)(e%2?el:s0).push(t=t+n[e])})();function Sf(n){if(n<768)return!1;for(let e=0,t=s0.length;;){let i=e+t>>1;if(n<s0[i])t=i;else if(n>=el[i])e=i+1;else return!0;if(e==t)return!1}}function Go(n){return n>=127462&&n<=127487}const jo=8205;function Cf(n,e,t=!0,i=!0){return(t?tl:_f)(n,e,i)}function tl(n,e,t){if(e==n.length)return e;e&&il(n.charCodeAt(e))&&nl(n.charCodeAt(e-1))&&e--;let i=Ds(n,e);for(e+=qo(i);e<n.length;){let s=Ds(n,e);if(i==jo||s==jo||t&&Sf(s))e+=qo(s),i=s;else if(Go(s)){let o=0,r=e-2;for(;r>=0&&Go(Ds(n,r));)o++,r-=2;if(o%2==0)break;e+=2}else break}return e}function _f(n,e,t){for(;e>0;){let i=tl(n,e-2,t);if(i<e)return i;e--}return 0}function Ds(n,e){let t=n.charCodeAt(e);if(!nl(t)||e+1==n.length)return t;let i=n.charCodeAt(e+1);return il(i)?(t-55296<<10)+(i-56320)+65536:t}function il(n){return n>=56320&&n<57344}function nl(n){return n>=55296&&n<56320}function qo(n){return n<65536?1:2}class q{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,i){[e,t]=si(this,e,t);let s=[];return this.decompose(0,e,s,2),i.length&&i.decompose(0,i.length,s,3),this.decompose(t,this.length,s,1),Ze.from(s,this.length-(t-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=si(this,e,t);let i=[];return this.decompose(e,t,i,0),Ze.from(i,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),i=this.length-this.scanIdentical(e,-1),s=new Ci(this),o=new Ci(e);for(let r=t,l=t;;){if(s.next(r),o.next(r),r=0,s.lineBreak!=o.lineBreak||s.done!=o.done||s.value!=o.value)return!1;if(l+=s.value.length,s.done||l>=i)return!0}}iter(e=1){return new Ci(this,e)}iterRange(e,t=this.length){return new sl(this,e,t)}iterLines(e,t){let i;if(e==null)i=this.iter();else{t==null&&(t=this.lines+1);let s=this.line(e).from;i=this.iterRange(s,Math.max(s,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new ol(i)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?q.empty:e.length<=32?new ne(e):Ze.from(ne.split(e,[]))}}class ne extends q{constructor(e,t=Of(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,i,s){for(let o=0;;o++){let r=this.text[o],l=s+r.length;if((t?i:l)>=e)return new Mf(s,l,i,r);s=l+1,i++}}decompose(e,t,i,s){let o=e<=0&&t>=this.length?this:new ne(Uo(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(s&1){let r=i.pop(),l=On(o.text,r.text.slice(),0,o.length);if(l.length<=32)i.push(new ne(l,r.length+o.length));else{let a=l.length>>1;i.push(new ne(l.slice(0,a)),new ne(l.slice(a)))}}else i.push(o)}replace(e,t,i){if(!(i instanceof ne))return super.replace(e,t,i);[e,t]=si(this,e,t);let s=On(this.text,On(i.text,Uo(this.text,0,e)),t),o=this.length+i.length-(t-e);return s.length<=32?new ne(s,o):Ze.from(ne.split(s,[]),o)}sliceString(e,t=this.length,i=`
|
|
2
2
|
`){[e,t]=si(this,e,t);let s="";for(let o=0,r=0;o<=t&&r<this.text.length;r++){let l=this.text[r],a=o+l.length;o>e&&r&&(s+=i),e<a&&t>o&&(s+=l.slice(Math.max(0,e-o),t-o)),o=a+1}return s}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let i=[],s=-1;for(let o of e)i.push(o),s+=o.length+1,i.length==32&&(t.push(new ne(i,s)),i=[],s=-1);return s>-1&&t.push(new ne(i,s)),t}}class Ze extends q{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let i of e)this.lines+=i.lines}lineInner(e,t,i,s){for(let o=0;;o++){let r=this.children[o],l=s+r.length,a=i+r.lines-1;if((t?a:l)>=e)return r.lineInner(e,t,i,s);s=l+1,i=a+1}}decompose(e,t,i,s){for(let o=0,r=0;r<=t&&o<this.children.length;o++){let l=this.children[o],a=r+l.length;if(e<=a&&t>=r){let c=s&((r<=e?1:0)|(a>=t?2:0));r>=e&&a<=t&&!c?i.push(l):l.decompose(e-r,t-r,i,c)}r=a+1}}replace(e,t,i){if([e,t]=si(this,e,t),i.lines<this.lines)for(let s=0,o=0;s<this.children.length;s++){let r=this.children[s],l=o+r.length;if(e>=o&&t<=l){let a=r.replace(e-o,t-o,i),c=this.lines-r.lines+a.lines;if(a.lines<c>>4&&a.lines>c>>6){let h=this.children.slice();return h[s]=a,new Ze(h,this.length-(t-e)+i.length)}return super.replace(o,l,a)}o=l+1}return super.replace(e,t,i)}sliceString(e,t=this.length,i=`
|
|
3
3
|
`){[e,t]=si(this,e,t);let s="";for(let o=0,r=0;o<this.children.length&&r<=t;o++){let l=this.children[o],a=r+l.length;r>e&&o&&(s+=i),e<a&&t>r&&(s+=l.sliceString(e-r,t-r,i)),r=a+1}return s}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof Ze))return 0;let i=0,[s,o,r,l]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;s+=t,o+=t){if(s==r||o==l)return i;let a=this.children[s],c=e.children[o];if(a!=c)return i+a.scanIdentical(c,t);i+=a.length+1}}static from(e,t=e.reduce((i,s)=>i+s.length+1,-1)){let i=0;for(let p of e)i+=p.lines;if(i<32){let p=[];for(let g of e)g.flatten(p);return new ne(p,t)}let s=Math.max(32,i>>5),o=s<<1,r=s>>1,l=[],a=0,c=-1,h=[];function f(p){let g;if(p.lines>o&&p instanceof Ze)for(let m of p.children)f(m);else p.lines>r&&(a>r||!a)?(d(),l.push(p)):p instanceof ne&&a&&(g=h[h.length-1])instanceof ne&&p.lines+g.lines<=32?(a+=p.lines,c+=p.length+1,h[h.length-1]=new ne(g.text.concat(p.text),g.length+1+p.length)):(a+p.lines>s&&d(),a+=p.lines,c+=p.length+1,h.push(p))}function d(){a!=0&&(l.push(h.length==1?h[0]:Ze.from(h,c)),c=-1,a=h.length=0)}for(let p of e)f(p);return d(),l.length==1?l[0]:new Ze(l,t)}}q.empty=new ne([""],0);function Of(n){let e=-1;for(let t of n)e+=t.length+1;return e}function On(n,e,t=0,i=1e9){for(let s=0,o=0,r=!0;o<n.length&&s<=i;o++){let l=n[o],a=s+l.length;a>=t&&(a>i&&(l=l.slice(0,i-s)),s<t&&(l=l.slice(t-s)),r?(e[e.length-1]+=l,r=!1):e.push(l)),s=a+1}return e}function Uo(n,e,t){return On(n,[""],e,t)}class Ci{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof ne?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,s=this.nodes[i],o=this.offsets[i],r=o>>1,l=s instanceof ne?s.text.length:s.children.length;if(r==(t>0?l:0)){if(i==0)return this.done=!0,this.value="",this;t>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((o&1)==(t>0?0:1)){if(this.offsets[i]+=t,e==0)return this.lineBreak=!0,this.value=`
|
|
4
|
-
`,this;e--}else if(s instanceof ne){let a=s.text[r+(t<0?-1:0)];if(this.offsets[i]+=t,a.length>Math.max(0,e))return this.value=e==0?a:t>0?a.slice(e):a.slice(0,a.length-e),this;e-=a.length}else{let a=s.children[r+(t<0?-1:0)];e>a.length?(e-=a.length,this.offsets[i]+=t):(t<0&&this.offsets[i]--,this.nodes.push(a),this.offsets.push(t>0?1:(a instanceof ne?a.text.length:a.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class sl{constructor(e,t,i){this.value="",this.done=!1,this.cursor=new Ci(e,t>i?-1:1),this.pos=t>i?e.length:0,this.from=Math.min(t,i),this.to=Math.max(t,i)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let i=t<0?this.pos-this.from:this.to-this.pos;e>i&&(e=i),i-=e;let{value:s}=this.cursor.next(e);return this.pos+=(s.length+e)*t,this.value=s.length<=i?s:t<0?s.slice(s.length-i):s.slice(0,i),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class ol{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:i,value:s}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=s,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(q.prototype[Symbol.iterator]=function(){return this.iter()},Ci.prototype[Symbol.iterator]=sl.prototype[Symbol.iterator]=ol.prototype[Symbol.iterator]=function(){return this});class Mf{constructor(e,t,i,s){this.from=e,this.to=t,this.number=i,this.text=s}get length(){return this.to-this.from}}function si(n,e,t){return e=Math.max(0,Math.min(n.length,e)),[e,Math.max(e,Math.min(n.length,t))]}function ge(n,e,t=!0,i=!0){return Cf(n,e,t,i)}function Df(n){return n>=56320&&n<57344}function Tf(n){return n>=55296&&n<56320}function Oe(n,e){let t=n.charCodeAt(e);if(!Tf(t)||e+1==n.length)return t;let i=n.charCodeAt(e+1);return Df(i)?(t-55296<<10)+(i-56320)+65536:t}function to(n){return n<=65535?String.fromCharCode(n):(n-=65536,String.fromCharCode((n>>10)+55296,(n&1023)+56320))}function et(n){return n<65536?1:2}const o0=/\r\n?|\n/;var ye=function(n){return n[n.Simple=0]="Simple",n[n.TrackDel=1]="TrackDel",n[n.TrackBefore=2]="TrackBefore",n[n.TrackAfter=3]="TrackAfter",n}(ye||(ye={}));class st{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let i=this.sections[t+1];e+=i<0?this.sections[t]:i}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let t=0,i=0,s=0;t<this.sections.length;){let o=this.sections[t++],r=this.sections[t++];r<0?(e(i,s,o),s+=o):s+=r,i+=o}}iterChangedRanges(e,t=!1){r0(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let i=this.sections[t++],s=this.sections[t++];s<0?e.push(i,s):e.push(s,i)}return new st(e)}composeDesc(e){return this.empty?e:e.empty?this:rl(this,e)}mapDesc(e,t=!1){return e.empty?this:l0(this,e,t)}mapPos(e,t=-1,i=ye.Simple){let s=0,o=0;for(let r=0;r<this.sections.length;){let l=this.sections[r++],a=this.sections[r++],c=s+l;if(a<0){if(c>e)return o+(e-s);o+=l}else{if(i!=ye.Simple&&c>=e&&(i==ye.TrackDel&&s<e&&c>e||i==ye.TrackBefore&&s<e||i==ye.TrackAfter&&c>e))return null;if(c>e||c==e&&t<0&&!l)return e==s||t<0?o:o+a;o+=a}s=c}if(e>s)throw new RangeError(`Position ${e} is out of range for changeset of length ${s}`);return o}touchesRange(e,t=e){for(let i=0,s=0;i<this.sections.length&&s<=t;){let o=this.sections[i++],r=this.sections[i++],l=s+o;if(r>=0&&s<=t&&l>=e)return s<e&&l>t?"cover":!0;s=l}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let i=this.sections[t++],s=this.sections[t++];e+=(e?" ":"")+i+(s>=0?":"+s:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(t=>typeof t!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new st(e)}static create(e){return new st(e)}}class le extends st{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return r0(this,(t,i,s,o,r)=>e=e.replace(s,s+(i-t),r),!1),e}mapDesc(e,t=!1){return l0(this,e,t,!0)}invert(e){let t=this.sections.slice(),i=[];for(let s=0,o=0;s<t.length;s+=2){let r=t[s],l=t[s+1];if(l>=0){t[s]=l,t[s+1]=r;let a=s>>1;for(;i.length<a;)i.push(q.empty);i.push(r?e.slice(o,o+r):q.empty)}o+=r}return new le(t,i)}compose(e){return this.empty?e:e.empty?this:rl(this,e,!0)}map(e,t=!1){return e.empty?this:l0(this,e,t,!0)}iterChanges(e,t=!1){r0(this,e,t)}get desc(){return st.create(this.sections)}filter(e){let t=[],i=[],s=[],o=new Pi(this);e:for(let r=0,l=0;;){let a=r==e.length?1e9:e[r++];for(;l<a||l==a&&o.len==0;){if(o.done)break e;let h=Math.min(o.len,a-l);ve(s,h,-1);let f=o.ins==-1?-1:o.off==0?o.ins:0;ve(t,h,f),f>0&&wt(i,t,o.text),o.forward(h),l+=h}let c=e[r++];for(;l<c;){if(o.done)break e;let h=Math.min(o.len,c-l);ve(t,h,-1),ve(s,h,o.ins==-1?-1:o.off==0?o.ins:0),o.forward(h),l+=h}}return{changes:new le(t,i),filtered:st.create(s)}}toJSON(){let e=[];for(let t=0;t<this.sections.length;t+=2){let i=this.sections[t],s=this.sections[t+1];s<0?e.push(i):s==0?e.push([i]):e.push([i].concat(this.inserted[t>>1].toJSON()))}return e}static of(e,t,i){let s=[],o=[],r=0,l=null;function a(h=!1){if(!h&&!s.length)return;r<t&&ve(s,t-r,-1);let f=new le(s,o);l=l?l.compose(f.map(l)):f,s=[],o=[],r=0}function c(h){if(Array.isArray(h))for(let f of h)c(f);else if(h instanceof le){if(h.length!=t)throw new RangeError(`Mismatched change set length (got ${h.length}, expected ${t})`);a(),l=l?l.compose(h.map(l)):h}else{let{from:f,to:d=f,insert:p}=h;if(f>d||f<0||d>t)throw new RangeError(`Invalid change range ${f} to ${d} (in doc of length ${t})`);let g=p?typeof p=="string"?q.of(p.split(i||o0)):p:q.empty,m=g.length;if(f==d&&m==0)return;f<r&&a(),f>r&&ve(s,f-r,-1),ve(s,d-f,m),wt(o,s,g),r=d}}return c(e),a(!l),l}static empty(e){return new le(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],i=[];for(let s=0;s<e.length;s++){let o=e[s];if(typeof o=="number")t.push(o,-1);else{if(!Array.isArray(o)||typeof o[0]!="number"||o.some((r,l)=>l&&typeof r!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(o.length==1)t.push(o[0],0);else{for(;i.length<s;)i.push(q.empty);i[s]=q.of(o.slice(1)),t.push(o[0],i[s].length)}}}return new le(t,i)}static createSet(e,t){return new le(e,t)}}function ve(n,e,t,i=!1){if(e==0&&t<=0)return;let s=n.length-2;s>=0&&t<=0&&t==n[s+1]?n[s]+=e:s>=0&&e==0&&n[s]==0?n[s+1]+=t:i?(n[s]+=e,n[s+1]+=t):n.push(e,t)}function wt(n,e,t){if(t.length==0)return;let i=e.length-2>>1;if(i<n.length)n[n.length-1]=n[n.length-1].append(t);else{for(;n.length<i;)n.push(q.empty);n.push(t)}}function r0(n,e,t){let i=n.inserted;for(let s=0,o=0,r=0;r<n.sections.length;){let l=n.sections[r++],a=n.sections[r++];if(a<0)s+=l,o+=l;else{let c=s,h=o,f=q.empty;for(;c+=l,h+=a,a&&i&&(f=f.append(i[r-2>>1])),!(t||r==n.sections.length||n.sections[r+1]<0);)l=n.sections[r++],a=n.sections[r++];e(s,c,o,h,f),s=c,o=h}}}function l0(n,e,t,i=!1){let s=[],o=i?[]:null,r=new Pi(n),l=new Pi(e);for(let a=-1;;){if(r.done&&l.len||l.done&&r.len)throw new Error("Mismatched change set lengths");if(r.ins==-1&&l.ins==-1){let c=Math.min(r.len,l.len);ve(s,c,-1),r.forward(c),l.forward(c)}else if(l.ins>=0&&(r.ins<0||a==r.i||r.off==0&&(l.len<r.len||l.len==r.len&&!t))){let c=l.len;for(ve(s,l.ins,-1);c;){let h=Math.min(r.len,c);r.ins>=0&&a<r.i&&r.len<=h&&(ve(s,0,r.ins),o&&wt(o,s,r.text),a=r.i),r.forward(h),c-=h}l.next()}else if(r.ins>=0){let c=0,h=r.len;for(;h;)if(l.ins==-1){let f=Math.min(h,l.len);c+=f,h-=f,l.forward(f)}else if(l.ins==0&&l.len<h)h-=l.len,l.next();else break;ve(s,c,a<r.i?r.ins:0),o&&a<r.i&&wt(o,s,r.text),a=r.i,r.forward(r.len-h)}else{if(r.done&&l.done)return o?le.createSet(s,o):st.create(s);throw new Error("Mismatched change set lengths")}}}function rl(n,e,t=!1){let i=[],s=t?[]:null,o=new Pi(n),r=new Pi(e);for(let l=!1;;){if(o.done&&r.done)return s?le.createSet(i,s):st.create(i);if(o.ins==0)ve(i,o.len,0,l),o.next();else if(r.len==0&&!r.done)ve(i,0,r.ins,l),s&&wt(s,i,r.text),r.next();else{if(o.done||r.done)throw new Error("Mismatched change set lengths");{let a=Math.min(o.len2,r.len),c=i.length;if(o.ins==-1){let h=r.ins==-1?-1:r.off?0:r.ins;ve(i,a,h,l),s&&h&&wt(s,i,r.text)}else r.ins==-1?(ve(i,o.off?0:o.len,a,l),s&&wt(s,i,o.textBit(a))):(ve(i,o.off?0:o.len,r.off?0:r.ins,l),s&&!r.off&&wt(s,i,r.text));l=(o.ins>a||r.ins>=0&&r.len>a)&&(l||i.length>c),o.forward2(a),r.forward(a)}}}}class Pi{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,t=this.i-2>>1;return t>=e.length?q.empty:e[t]}textBit(e){let{inserted:t}=this.set,i=this.i-2>>1;return i>=t.length&&!e?q.empty:t[i].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class Et{constructor(e,t,i){this.from=e,this.to=t,this.flags=i}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,t=-1){let i,s;return this.empty?i=s=e.mapPos(this.from,t):(i=e.mapPos(this.from,1),s=e.mapPos(this.to,-1)),i==this.from&&s==this.to?this:new Et(i,s,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return M.range(e,t);let i=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return M.range(this.anchor,i)}eq(e,t=!1){return this.anchor==e.anchor&&this.head==e.head&&(!t||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return M.range(e.anchor,e.head)}static create(e,t,i){return new Et(e,t,i)}}class M{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:M.create(this.ranges.map(i=>i.map(e,t)),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let i=0;i<this.ranges.length;i++)if(!this.ranges[i].eq(e.ranges[i],t))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new M([this.main],0)}addRange(e,t=!0){return M.create([e].concat(this.ranges),t?0:this.mainIndex+1)}replaceRange(e,t=this.mainIndex){let i=this.ranges.slice();return i[t]=e,M.create(i,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new M(e.ranges.map(t=>Et.fromJSON(t)),e.main)}static single(e,t=e){return new M([M.range(e,t)],0)}static create(e,t=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let i=0,s=0;s<e.length;s++){let o=e[s];if(o.empty?o.from<=i:o.from<i)return M.normalized(e.slice(),t);i=o.to}return new M(e,t)}static cursor(e,t=0,i,s){return Et.create(e,e,(t==0?0:t<0?8:16)|(i==null?7:Math.min(6,i))|(s??16777215)<<6)}static range(e,t,i,s){let o=(i??16777215)<<6|(s==null?7:Math.min(6,s));return t<e?Et.create(t,e,48|o):Et.create(e,t,(t>e?8:0)|o)}static normalized(e,t=0){let i=e[t];e.sort((s,o)=>s.from-o.from),t=e.indexOf(i);for(let s=1;s<e.length;s++){let o=e[s],r=e[s-1];if(o.empty?o.from<=r.to:o.from<r.to){let l=r.from,a=Math.max(o.to,r.to);s<=t&&t--,e.splice(--s,2,o.anchor>o.head?M.range(a,l):M.range(l,a))}}return new M(e,t)}}function ll(n,e){for(let t of n.ranges)if(t.to>e)throw new RangeError("Selection points outside of document")}let io=0;class L{constructor(e,t,i,s,o){this.combine=e,this.compareInput=t,this.compare=i,this.isStatic=s,this.id=io++,this.default=e([]),this.extensions=typeof o=="function"?o(this):o}get reader(){return this}static define(e={}){return new L(e.combine||(t=>t),e.compareInput||((t,i)=>t===i),e.compare||(e.combine?(t,i)=>t===i:no),!!e.static,e.enables)}of(e){return new Mn([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Mn(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Mn(e,this,2,t)}from(e,t){return t||(t=i=>i),this.compute([e],i=>t(i.field(e)))}}function no(n,e){return n==e||n.length==e.length&&n.every((t,i)=>t===e[i])}class Mn{constructor(e,t,i,s){this.dependencies=e,this.facet=t,this.type=i,this.value=s,this.id=io++}dynamicSlot(e){var t;let i=this.value,s=this.facet.compareInput,o=this.id,r=e[o]>>1,l=this.type==2,a=!1,c=!1,h=[];for(let f of this.dependencies)f=="doc"?a=!0:f=="selection"?c=!0:(((t=e[f.id])!==null&&t!==void 0?t:1)&1)==0&&h.push(e[f.id]);return{create(f){return f.values[r]=i(f),1},update(f,d){if(a&&d.docChanged||c&&(d.docChanged||d.selection)||a0(f,h)){let p=i(f);if(l?!Yo(p,f.values[r],s):!s(p,f.values[r]))return f.values[r]=p,1}return 0},reconfigure:(f,d)=>{let p,g=d.config.address[o];if(g!=null){let m=Hn(d,g);if(this.dependencies.every(v=>v instanceof L?d.facet(v)===f.facet(v):v instanceof me?d.field(v,!1)==f.field(v,!1):!0)||(l?Yo(p=i(f),m,s):s(p=i(f),m)))return f.values[r]=m,0}else p=i(f);return f.values[r]=p,1}}}}function Yo(n,e,t){if(n.length!=e.length)return!1;for(let i=0;i<n.length;i++)if(!t(n[i],e[i]))return!1;return!0}function a0(n,e){let t=!1;for(let i of e)_i(n,i)&1&&(t=!0);return t}function Af(n,e,t){let i=t.map(a=>n[a.id]),s=t.map(a=>a.type),o=i.filter(a=>!(a&1)),r=n[e.id]>>1;function l(a){let c=[];for(let h=0;h<i.length;h++){let f=Hn(a,i[h]);if(s[h]==2)for(let d of f)c.push(d);else c.push(f)}return e.combine(c)}return{create(a){for(let c of i)_i(a,c);return a.values[r]=l(a),1},update(a,c){if(!a0(a,o))return 0;let h=l(a);return e.compare(h,a.values[r])?0:(a.values[r]=h,1)},reconfigure(a,c){let h=a0(a,i),f=c.config.facets[e.id],d=c.facet(e);if(f&&!h&&no(t,f))return a.values[r]=d,0;let p=l(a);return e.compare(p,d)?(a.values[r]=d,0):(a.values[r]=p,1)}}}const tn=L.define({static:!0});class me{constructor(e,t,i,s,o){this.id=e,this.createF=t,this.updateF=i,this.compareF=s,this.spec=o,this.provides=void 0}static define(e){let t=new me(io++,e.create,e.update,e.compare||((i,s)=>i===s),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(tn).find(i=>i.field==this);return((t==null?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:i=>(i.values[t]=this.create(i),1),update:(i,s)=>{let o=i.values[t],r=this.updateF(o,s);return this.compareF(o,r)?0:(i.values[t]=r,1)},reconfigure:(i,s)=>{let o=i.facet(tn),r=s.facet(tn),l;return(l=o.find(a=>a.field==this))&&l!=r.find(a=>a.field==this)?(i.values[t]=l.create(i),1):s.config.address[this.id]!=null?(i.values[t]=s.field(this),0):(i.values[t]=this.create(i),1)}}}init(e){return[this,tn.of({field:this,create:e})]}get extension(){return this}}const Bt={lowest:4,low:3,default:2,high:1,highest:0};function pi(n){return e=>new al(e,n)}const Ft={highest:pi(Bt.highest),high:pi(Bt.high),default:pi(Bt.default),low:pi(Bt.low),lowest:pi(Bt.lowest)};class al{constructor(e,t){this.inner=e,this.prec=t}}class ps{of(e){return new c0(this,e)}reconfigure(e){return ps.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class c0{constructor(e,t){this.compartment=e,this.inner=t}}class In{constructor(e,t,i,s,o,r){for(this.base=e,this.compartments=t,this.dynamicSlots=i,this.address=s,this.staticValues=o,this.facets=r,this.statusTemplate=[];this.statusTemplate.length<i.length;)this.statusTemplate.push(0)}staticFacet(e){let t=this.address[e.id];return t==null?e.default:this.staticValues[t>>1]}static resolve(e,t,i){let s=[],o=Object.create(null),r=new Map;for(let d of Bf(e,t,r))d instanceof me?s.push(d):(o[d.facet.id]||(o[d.facet.id]=[])).push(d);let l=Object.create(null),a=[],c=[];for(let d of s)l[d.id]=c.length<<1,c.push(p=>d.slot(p));let h=i==null?void 0:i.config.facets;for(let d in o){let p=o[d],g=p[0].facet,m=h&&h[d]||[];if(p.every(v=>v.type==0))if(l[g.id]=a.length<<1|1,no(m,p))a.push(i.facet(g));else{let v=g.combine(p.map(x=>x.value));a.push(i&&g.compare(v,i.facet(g))?i.facet(g):v)}else{for(let v of p)v.type==0?(l[v.id]=a.length<<1|1,a.push(v.value)):(l[v.id]=c.length<<1,c.push(x=>v.dynamicSlot(x)));l[g.id]=c.length<<1,c.push(v=>Af(v,g,p))}}let f=c.map(d=>d(l));return new In(e,r,f,l,a,o)}}function Bf(n,e,t){let i=[[],[],[],[],[]],s=new Map;function o(r,l){let a=s.get(r);if(a!=null){if(a<=l)return;let c=i[a].indexOf(r);c>-1&&i[a].splice(c,1),r instanceof c0&&t.delete(r.compartment)}if(s.set(r,l),Array.isArray(r))for(let c of r)o(c,l);else if(r instanceof c0){if(t.has(r.compartment))throw new RangeError("Duplicate use of compartment in extensions");let c=e.get(r.compartment)||r.inner;t.set(r.compartment,c),o(c,l)}else if(r instanceof al)o(r.inner,r.prec);else if(r instanceof me)i[l].push(r),r.provides&&o(r.provides,l);else if(r instanceof Mn)i[l].push(r),r.facet.extensions&&o(r.facet.extensions,Bt.default);else{let c=r.extension;if(!c)throw new Error(`Unrecognized extension value in extension set (${r}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);o(c,l)}}return o(n,Bt.default),i.reduce((r,l)=>r.concat(l))}function _i(n,e){if(e&1)return 2;let t=e>>1,i=n.status[t];if(i==4)throw new Error("Cyclic dependency between fields and/or facets");if(i&2)return i;n.status[t]=4;let s=n.computeSlot(n,n.config.dynamicSlots[t]);return n.status[t]=2|s}function Hn(n,e){return e&1?n.config.staticValues[e>>1]:n.values[e>>1]}const cl=L.define(),h0=L.define({combine:n=>n.some(e=>e),static:!0}),hl=L.define({combine:n=>n.length?n[0]:void 0,static:!0}),ul=L.define(),fl=L.define(),dl=L.define(),pl=L.define({combine:n=>n.length?n[0]:!1});class pt{constructor(e,t){this.type=e,this.value=t}static define(){return new Pf}}class Pf{of(e){return new pt(this,e)}}class Ef{constructor(e){this.map=e}of(e){return new $(this,e)}}class ${constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return t===void 0?void 0:t==this.value?this:new $(this.type,t)}is(e){return this.type==e}static define(e={}){return new Ef(e.map||(t=>t))}static mapEffects(e,t){if(!e.length)return e;let i=[];for(let s of e){let o=s.map(t);o&&i.push(o)}return i}}$.reconfigure=$.define();$.appendConfig=$.define();class ae{constructor(e,t,i,s,o,r){this.startState=e,this.changes=t,this.selection=i,this.effects=s,this.annotations=o,this.scrollIntoView=r,this._doc=null,this._state=null,i&&ll(i,t.newLength),o.some(l=>l.type==ae.time)||(this.annotations=o.concat(ae.time.of(Date.now())))}static create(e,t,i,s,o,r){return new ae(e,t,i,s,o,r)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(ae.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&t[e.length]=="."))}}ae.time=pt.define();ae.userEvent=pt.define();ae.addToHistory=pt.define();ae.remote=pt.define();function Vf(n,e){let t=[];for(let i=0,s=0;;){let o,r;if(i<n.length&&(s==e.length||e[s]>=n[i]))o=n[i++],r=n[i++];else if(s<e.length)o=e[s++],r=e[s++];else return t;!t.length||t[t.length-1]<o?t.push(o,r):t[t.length-1]<r&&(t[t.length-1]=r)}}function gl(n,e,t){var i;let s,o,r;return t?(s=e.changes,o=le.empty(e.changes.length),r=n.changes.compose(e.changes)):(s=e.changes.map(n.changes),o=n.changes.mapDesc(e.changes,!0),r=n.changes.compose(s)),{changes:r,selection:e.selection?e.selection.map(o):(i=n.selection)===null||i===void 0?void 0:i.map(s),effects:$.mapEffects(n.effects,s).concat($.mapEffects(e.effects,o)),annotations:n.annotations.length?n.annotations.concat(e.annotations):e.annotations,scrollIntoView:n.scrollIntoView||e.scrollIntoView}}function u0(n,e,t){let i=e.selection,s=Jt(e.annotations);return e.userEvent&&(s=s.concat(ae.userEvent.of(e.userEvent))),{changes:e.changes instanceof le?e.changes:le.of(e.changes||[],t,n.facet(hl)),selection:i&&(i instanceof M?i:M.single(i.anchor,i.head)),effects:Jt(e.effects),annotations:s,scrollIntoView:!!e.scrollIntoView}}function ml(n,e,t){let i=u0(n,e.length?e[0]:{},n.doc.length);e.length&&e[0].filter===!1&&(t=!1);for(let o=1;o<e.length;o++){e[o].filter===!1&&(t=!1);let r=!!e[o].sequential;i=gl(i,u0(n,e[o],r?i.changes.newLength:n.doc.length),r)}let s=ae.create(n,i.changes,i.selection,i.effects,i.annotations,i.scrollIntoView);return Lf(t?zf(s):s)}function zf(n){let e=n.startState,t=!0;for(let s of e.facet(ul)){let o=s(n);if(o===!1){t=!1;break}Array.isArray(o)&&(t=t===!0?o:Vf(t,o))}if(t!==!0){let s,o;if(t===!1)o=n.changes.invertedDesc,s=le.empty(e.doc.length);else{let r=n.changes.filter(t);s=r.changes,o=r.filtered.mapDesc(r.changes).invertedDesc}n=ae.create(e,s,n.selection&&n.selection.map(o),$.mapEffects(n.effects,o),n.annotations,n.scrollIntoView)}let i=e.facet(fl);for(let s=i.length-1;s>=0;s--){let o=i[s](n);o instanceof ae?n=o:Array.isArray(o)&&o.length==1&&o[0]instanceof ae?n=o[0]:n=ml(e,Jt(o),!1)}return n}function Lf(n){let e=n.startState,t=e.facet(dl),i=n;for(let s=t.length-1;s>=0;s--){let o=t[s](n);o&&Object.keys(o).length&&(i=gl(i,u0(e,o,n.changes.newLength),!0))}return i==n?n:ae.create(e,n.changes,n.selection,i.effects,i.annotations,i.scrollIntoView)}const Nf=[];function Jt(n){return n==null?Nf:Array.isArray(n)?n:[n]}var te=function(n){return n[n.Word=0]="Word",n[n.Space=1]="Space",n[n.Other=2]="Other",n}(te||(te={}));const Rf=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let f0;try{f0=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function If(n){if(f0)return f0.test(n);for(let e=0;e<n.length;e++){let t=n[e];if(/\w/.test(t)||t>""&&(t.toUpperCase()!=t.toLowerCase()||Rf.test(t)))return!0}return!1}function Hf(n){return e=>{if(!/\S/.test(e))return te.Space;if(If(e))return te.Word;for(let t=0;t<n.length;t++)if(e.indexOf(n[t])>-1)return te.Word;return te.Other}}class G{constructor(e,t,i,s,o,r){this.config=e,this.doc=t,this.selection=i,this.values=s,this.status=e.statusTemplate.slice(),this.computeSlot=o,r&&(r._state=this);for(let l=0;l<this.config.dynamicSlots.length;l++)_i(this,l<<1);this.computeSlot=null}field(e,t=!0){let i=this.config.address[e.id];if(i==null){if(t)throw new RangeError("Field is not present in this state");return}return _i(this,i),Hn(this,i)}update(...e){return ml(this,e,!0)}applyTransaction(e){let t=this.config,{base:i,compartments:s}=t;for(let l of e.effects)l.is(ps.reconfigure)?(t&&(s=new Map,t.compartments.forEach((a,c)=>s.set(c,a)),t=null),s.set(l.value.compartment,l.value.extension)):l.is($.reconfigure)?(t=null,i=l.value):l.is($.appendConfig)&&(t=null,i=Jt(i).concat(l.value));let o;t?o=e.startState.values.slice():(t=In.resolve(i,s,this),o=new G(t,this.doc,this.selection,t.dynamicSlots.map(()=>null),(a,c)=>c.reconfigure(a,this),null).values);let r=e.startState.facet(h0)?e.newSelection:e.newSelection.asSingle();new G(t,e.newDoc,r,o,(l,a)=>a.update(l,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:M.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,i=e(t.ranges[0]),s=this.changes(i.changes),o=[i.range],r=Jt(i.effects);for(let l=1;l<t.ranges.length;l++){let a=e(t.ranges[l]),c=this.changes(a.changes),h=c.map(s);for(let d=0;d<l;d++)o[d]=o[d].map(h);let f=s.mapDesc(c,!0);o.push(a.range.map(f)),s=s.compose(h),r=$.mapEffects(r,h).concat($.mapEffects(Jt(a.effects),f))}return{changes:s,selection:M.create(o,t.mainIndex),effects:r}}changes(e=[]){return e instanceof le?e:le.of(e,this.doc.length,this.facet(G.lineSeparator))}toText(e){return q.of(e.split(this.facet(G.lineSeparator)||o0))}sliceDoc(e=0,t=this.doc.length){return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return t==null?e.default:(_i(this,t),Hn(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let i in e){let s=e[i];s instanceof me&&this.config.address[s.id]!=null&&(t[i]=s.spec.toJSON(this.field(e[i]),this))}return t}static fromJSON(e,t={},i){if(!e||typeof e.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let s=[];if(i){for(let o in i)if(Object.prototype.hasOwnProperty.call(e,o)){let r=i[o],l=e[o];s.push(r.init(a=>r.spec.fromJSON(l,a)))}}return G.create({doc:e.doc,selection:M.fromJSON(e.selection),extensions:t.extensions?s.concat([t.extensions]):s})}static create(e={}){let t=In.resolve(e.extensions||[],new Map),i=e.doc instanceof q?e.doc:q.of((e.doc||"").split(t.staticFacet(G.lineSeparator)||o0)),s=e.selection?e.selection instanceof M?e.selection:M.single(e.selection.anchor,e.selection.head):M.single(0);return ll(s,i.length),t.staticFacet(h0)||(s=s.asSingle()),new G(t,i,s,t.dynamicSlots.map(()=>null),(o,r)=>r.create(o),null)}get tabSize(){return this.facet(G.tabSize)}get lineBreak(){return this.facet(G.lineSeparator)||`
|
|
5
|
-
`}get readOnly(){return this.facet(pl)}phrase(e,...t){for(let i of this.facet(G.phrases))if(Object.prototype.hasOwnProperty.call(i,e)){e=i[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(i,s)=>{if(s=="$")return"$";let o=+(s||1);return!o||o>t.length?i:t[o-1]})),e}languageDataAt(e,t,i=-1){let s=[];for(let o of this.facet(cl))for(let r of o(this,t,i))Object.prototype.hasOwnProperty.call(r,e)&&s.push(r[e]);return s}charCategorizer(e){return Hf(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:t,from:i,length:s}=this.doc.lineAt(e),o=this.charCategorizer(e),r=e-i,l=e-i;for(;r>0;){let a=ge(t,r,!1);if(o(t.slice(a,r))!=te.Word)break;r=a}for(;l<s;){let a=ge(t,l);if(o(t.slice(l,a))!=te.Word)break;l=a}return r==l?null:M.range(r+i,l+i)}}G.allowMultipleSelections=h0;G.tabSize=L.define({combine:n=>n.length?n[0]:4});G.lineSeparator=hl;G.readOnly=pl;G.phrases=L.define({compare(n,e){let t=Object.keys(n),i=Object.keys(e);return t.length==i.length&&t.every(s=>n[s]==e[s])}});G.languageData=cl;G.changeFilter=ul;G.transactionFilter=fl;G.transactionExtender=dl;ps.reconfigure=$.define();function rt(n,e,t={}){let i={};for(let s of n)for(let o of Object.keys(s)){let r=s[o],l=i[o];if(l===void 0)i[o]=r;else if(!(l===r||r===void 0))if(Object.hasOwnProperty.call(t,o))i[o]=t[o](l,r);else throw new Error("Config merge conflict for field "+o)}for(let s in e)i[s]===void 0&&(i[s]=e[s]);return i}class Rt{eq(e){return this==e}range(e,t=e){return d0.create(e,t,this)}}Rt.prototype.startSide=Rt.prototype.endSide=0;Rt.prototype.point=!1;Rt.prototype.mapMode=ye.TrackDel;let d0=class vl{constructor(e,t,i){this.from=e,this.to=t,this.value=i}static create(e,t,i){return new vl(e,t,i)}};function p0(n,e){return n.from-e.from||n.value.startSide-e.value.startSide}class so{constructor(e,t,i,s){this.from=e,this.to=t,this.value=i,this.maxPoint=s}get length(){return this.to[this.to.length-1]}findIndex(e,t,i,s=0){let o=i?this.to:this.from;for(let r=s,l=o.length;;){if(r==l)return r;let a=r+l>>1,c=o[a]-e||(i?this.value[a].endSide:this.value[a].startSide)-t;if(a==r)return c>=0?r:l;c>=0?l=a:r=a+1}}between(e,t,i,s){for(let o=this.findIndex(t,-1e9,!0),r=this.findIndex(i,1e9,!1,o);o<r;o++)if(s(this.from[o]+e,this.to[o]+e,this.value[o])===!1)return!1}map(e,t){let i=[],s=[],o=[],r=-1,l=-1;for(let a=0;a<this.value.length;a++){let c=this.value[a],h=this.from[a]+e,f=this.to[a]+e,d,p;if(h==f){let g=t.mapPos(h,c.startSide,c.mapMode);if(g==null||(d=p=g,c.startSide!=c.endSide&&(p=t.mapPos(h,c.endSide),p<d)))continue}else if(d=t.mapPos(h,c.startSide),p=t.mapPos(f,c.endSide),d>p||d==p&&c.startSide>0&&c.endSide<=0)continue;(p-d||c.endSide-c.startSide)<0||(r<0&&(r=d),c.point&&(l=Math.max(l,p-d)),i.push(c),s.push(d-r),o.push(p-r))}return{mapped:i.length?new so(s,o,i,l):null,pos:r}}}class j{constructor(e,t,i,s){this.chunkPos=e,this.chunk=t,this.nextLayer=i,this.maxPoint=s}static create(e,t,i,s){return new j(e,t,i,s)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:i=!1,filterFrom:s=0,filterTo:o=this.length}=e,r=e.filter;if(t.length==0&&!r)return this;if(i&&(t=t.slice().sort(p0)),this.isEmpty)return t.length?j.of(t):this;let l=new wl(this,null,-1).goto(0),a=0,c=[],h=new ut;for(;l.value||a<t.length;)if(a<t.length&&(l.from-t[a].from||l.startSide-t[a].value.startSide)>=0){let f=t[a++];h.addInner(f.from,f.to,f.value)||c.push(f)}else l.rangeIndex==1&&l.chunkIndex<this.chunk.length&&(a==t.length||this.chunkEnd(l.chunkIndex)<t[a].from)&&(!r||s>this.chunkEnd(l.chunkIndex)||o<this.chunkPos[l.chunkIndex])&&h.addChunk(this.chunkPos[l.chunkIndex],this.chunk[l.chunkIndex])?l.nextChunk():((!r||s>l.to||o<l.from||r(l.from,l.to,l.value))&&(h.addInner(l.from,l.to,l.value)||c.push(d0.create(l.from,l.to,l.value))),l.next());return h.finishInner(this.nextLayer.isEmpty&&!c.length?j.empty:this.nextLayer.update({add:c,filter:r,filterFrom:s,filterTo:o}))}map(e){if(e.empty||this.isEmpty)return this;let t=[],i=[],s=-1;for(let r=0;r<this.chunk.length;r++){let l=this.chunkPos[r],a=this.chunk[r],c=e.touchesRange(l,l+a.length);if(c===!1)s=Math.max(s,a.maxPoint),t.push(a),i.push(e.mapPos(l));else if(c===!0){let{mapped:h,pos:f}=a.map(l,e);h&&(s=Math.max(s,h.maxPoint),t.push(h),i.push(f))}}let o=this.nextLayer.map(e);return t.length==0?o:new j(i,t,o||j.empty,s)}between(e,t,i){if(!this.isEmpty){for(let s=0;s<this.chunk.length;s++){let o=this.chunkPos[s],r=this.chunk[s];if(t>=o&&e<=o+r.length&&r.between(o,e-o,t-o,i)===!1)return}this.nextLayer.between(e,t,i)}}iter(e=0){return Ei.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return Ei.from(e).goto(t)}static compare(e,t,i,s,o=-1){let r=e.filter(f=>f.maxPoint>0||!f.isEmpty&&f.maxPoint>=o),l=t.filter(f=>f.maxPoint>0||!f.isEmpty&&f.maxPoint>=o),a=Ko(r,l,i),c=new gi(r,a,o),h=new gi(l,a,o);i.iterGaps((f,d,p)=>Xo(c,f,h,d,p,s)),i.empty&&i.length==0&&Xo(c,0,h,0,0,s)}static eq(e,t,i=0,s){s==null&&(s=999999999);let o=e.filter(h=>!h.isEmpty&&t.indexOf(h)<0),r=t.filter(h=>!h.isEmpty&&e.indexOf(h)<0);if(o.length!=r.length)return!1;if(!o.length)return!0;let l=Ko(o,r),a=new gi(o,l,0).goto(i),c=new gi(r,l,0).goto(i);for(;;){if(a.to!=c.to||!g0(a.active,c.active)||a.point&&(!c.point||!a.point.eq(c.point)))return!1;if(a.to>s)return!0;a.next(),c.next()}}static spans(e,t,i,s,o=-1){let r=new gi(e,null,o).goto(t),l=t,a=r.openStart;for(;;){let c=Math.min(r.to,i);if(r.point){let h=r.activeForPoint(r.to),f=r.pointFrom<t?h.length+1:r.point.startSide<0?h.length:Math.min(h.length,a);s.point(l,c,r.point,h,f,r.pointRank),a=Math.min(r.openEnd(c),h.length)}else c>l&&(s.span(l,c,r.active,a),a=r.openEnd(c));if(r.to>i)return a+(r.point&&r.to>i?1:0);l=r.to,r.next()}}static of(e,t=!1){let i=new ut;for(let s of e instanceof d0?[e]:t?$f(e):e)i.add(s.from,s.to,s.value);return i.finish()}static join(e){if(!e.length)return j.empty;let t=e[e.length-1];for(let i=e.length-2;i>=0;i--)for(let s=e[i];s!=j.empty;s=s.nextLayer)t=new j(s.chunkPos,s.chunk,t,Math.max(s.maxPoint,t.maxPoint));return t}}j.empty=new j([],[],null,-1);function $f(n){if(n.length>1)for(let e=n[0],t=1;t<n.length;t++){let i=n[t];if(p0(e,i)>0)return n.slice().sort(p0);e=i}return n}j.empty.nextLayer=j.empty;class ut{finishChunk(e){this.chunks.push(new so(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,i){this.addInner(e,t,i)||(this.nextLayer||(this.nextLayer=new ut)).add(e,t,i)}addInner(e,t,i){let s=e-this.lastTo||i.startSide-this.last.endSide;if(s<=0&&(e-this.lastFrom||i.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return s<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=i,this.lastFrom=e,this.lastTo=t,this.value.push(i),i.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let i=t.value.length-1;return this.last=t.value[i],this.lastFrom=t.from[i]+e,this.lastTo=t.to[i]+e,!0}finish(){return this.finishInner(j.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let t=j.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function Ko(n,e,t){let i=new Map;for(let o of n)for(let r=0;r<o.chunk.length;r++)o.chunk[r].maxPoint<=0&&i.set(o.chunk[r],o.chunkPos[r]);let s=new Set;for(let o of e)for(let r=0;r<o.chunk.length;r++){let l=i.get(o.chunk[r]);l!=null&&(t?t.mapPos(l):l)==o.chunkPos[r]&&!(t!=null&&t.touchesRange(l,l+o.chunk[r].length))&&s.add(o.chunk[r])}return s}class wl{constructor(e,t,i,s=0){this.layer=e,this.skip=t,this.minPoint=i,this.rank=s}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e,t=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,t,!1),this}gotoInner(e,t,i){for(;this.chunkIndex<this.layer.chunk.length;){let s=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(s)||this.layer.chunkEnd(this.chunkIndex)<e||s.maxPoint<this.minPoint))break;this.chunkIndex++,i=!1}if(this.chunkIndex<this.layer.chunk.length){let s=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],t,!0);(!i||this.rangeIndex<s)&&this.setRangeIndex(s)}this.next()}forward(e,t){(this.to-e||this.endSide-t)<0&&this.gotoInner(e,t,!0)}next(){for(;;)if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}else{let e=this.layer.chunkPos[this.chunkIndex],t=this.layer.chunk[this.chunkIndex],i=e+t.from[this.rangeIndex];if(this.from=i,this.to=e+t.to[this.rangeIndex],this.value=t.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=e}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}}class Ei{constructor(e){this.heap=e}static from(e,t=null,i=-1){let s=[];for(let o=0;o<e.length;o++)for(let r=e[o];!r.isEmpty;r=r.nextLayer)r.maxPoint>=i&&s.push(new wl(r,t,i,o));return s.length==1?s[0]:new Ei(s)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let i of this.heap)i.goto(e,t);for(let i=this.heap.length>>1;i>=0;i--)Ts(this.heap,i);return this.next(),this}forward(e,t){for(let i of this.heap)i.forward(e,t);for(let i=this.heap.length>>1;i>=0;i--)Ts(this.heap,i);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),Ts(this.heap,0)}}}function Ts(n,e){for(let t=n[e];;){let i=(e<<1)+1;if(i>=n.length)break;let s=n[i];if(i+1<n.length&&s.compare(n[i+1])>=0&&(s=n[i+1],i++),t.compare(s)<0)break;n[i]=t,n[e]=s,e=i}}class gi{constructor(e,t,i){this.minPoint=i,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=Ei.from(e,t,i)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){nn(this.active,e),nn(this.activeTo,e),nn(this.activeRank,e),this.minActive=Qo(this.active,this.activeTo)}addActive(e){let t=0,{value:i,to:s,rank:o}=this.cursor;for(;t<this.activeRank.length&&(o-this.activeRank[t]||s-this.activeTo[t])>0;)t++;sn(this.active,t,i),sn(this.activeTo,t,s),sn(this.activeRank,t,o),e&&sn(e,t,this.cursor.from),this.minActive=Qo(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let i=this.openStart<0?[]:null;for(;;){let s=this.minActive;if(s>-1&&(this.activeTo[s]-this.cursor.from||this.active[s].endSide-this.cursor.startSide)<0){if(this.activeTo[s]>e){this.to=this.activeTo[s],this.endSide=this.active[s].endSide;break}this.removeActive(s),i&&nn(i,s)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let o=this.cursor.value;if(!o.point)this.addActive(i),this.cursor.next();else if(t&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)this.cursor.next();else{this.point=o,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=o.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}}else{this.to=this.endSide=1e9;break}}if(i){this.openStart=0;for(let s=i.length-1;s>=0&&i[s]<e;s--)this.openStart++}}activeForPoint(e){if(!this.active.length)return this.active;let t=[];for(let i=this.active.length-1;i>=0&&!(this.activeRank[i]<this.pointRank);i--)(this.activeTo[i]>e||this.activeTo[i]==e&&this.active[i].endSide>=this.point.endSide)&&t.push(this.active[i]);return t.reverse()}openEnd(e){let t=0;for(let i=this.activeTo.length-1;i>=0&&this.activeTo[i]>e;i--)t++;return t}}function Xo(n,e,t,i,s,o){n.goto(e),t.goto(i);let r=i+s,l=i,a=i-e;for(;;){let c=n.to+a-t.to,h=c||n.endSide-t.endSide,f=h<0?n.to+a:t.to,d=Math.min(f,r);if(n.point||t.point?n.point&&t.point&&(n.point==t.point||n.point.eq(t.point))&&g0(n.activeForPoint(n.to),t.activeForPoint(t.to))||o.comparePoint(l,d,n.point,t.point):d>l&&!g0(n.active,t.active)&&o.compareRange(l,d,n.active,t.active),f>r)break;(c||n.openEnd!=t.openEnd)&&o.boundChange&&o.boundChange(f),l=f,h<=0&&n.next(),h>=0&&t.next()}}function g0(n,e){if(n.length!=e.length)return!1;for(let t=0;t<n.length;t++)if(n[t]!=e[t]&&!n[t].eq(e[t]))return!1;return!0}function nn(n,e){for(let t=e,i=n.length-1;t<i;t++)n[t]=n[t+1];n.pop()}function sn(n,e,t){for(let i=n.length-1;i>=e;i--)n[i+1]=n[i];n[e]=t}function Qo(n,e){let t=-1,i=1e9;for(let s=0;s<e.length;s++)(e[s]-i||n[s].endSide-n[t].endSide)<0&&(t=s,i=e[s]);return t}function ui(n,e,t=n.length){let i=0;for(let s=0;s<t&&s<n.length;)n.charCodeAt(s)==9?(i+=e-i%e,s++):(i++,s=ge(n,s));return i}function m0(n,e,t,i){for(let s=0,o=0;;){if(o>=e)return s;if(s==n.length)break;o+=n.charCodeAt(s)==9?t-o%t:1,s=ge(n,s)}return i===!0?-1:n.length}const v0="ͼ",Jo=typeof Symbol>"u"?"__"+v0:Symbol.for(v0),w0=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),Zo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class St{constructor(e,t){this.rules=[];let{finish:i}=t||{};function s(r){return/^@/.test(r)?[r]:r.split(/,\s*/)}function o(r,l,a,c){let h=[],f=/^@(\w+)\b/.exec(r[0]),d=f&&f[1]=="keyframes";if(f&&l==null)return a.push(r[0]+";");for(let p in l){let g=l[p];if(/&/.test(p))o(p.split(/,\s*/).map(m=>r.map(v=>m.replace(/&/,v))).reduce((m,v)=>m.concat(v)),g,a);else if(g&&typeof g=="object"){if(!f)throw new RangeError("The value of a property ("+p+") should be a primitive value.");o(s(p),g,h,d)}else g!=null&&h.push(p.replace(/_.*/,"").replace(/[A-Z]/g,m=>"-"+m.toLowerCase())+": "+g+";")}(h.length||d)&&a.push((i&&!f&&!c?r.map(i):r).join(", ")+" {"+h.join(" ")+"}")}for(let r in e)o(s(r),e[r],this.rules)}getRules(){return this.rules.join(`
|
|
4
|
+
`,this;e--}else if(s instanceof ne){let a=s.text[r+(t<0?-1:0)];if(this.offsets[i]+=t,a.length>Math.max(0,e))return this.value=e==0?a:t>0?a.slice(e):a.slice(0,a.length-e),this;e-=a.length}else{let a=s.children[r+(t<0?-1:0)];e>a.length?(e-=a.length,this.offsets[i]+=t):(t<0&&this.offsets[i]--,this.nodes.push(a),this.offsets.push(t>0?1:(a instanceof ne?a.text.length:a.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class sl{constructor(e,t,i){this.value="",this.done=!1,this.cursor=new Ci(e,t>i?-1:1),this.pos=t>i?e.length:0,this.from=Math.min(t,i),this.to=Math.max(t,i)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let i=t<0?this.pos-this.from:this.to-this.pos;e>i&&(e=i),i-=e;let{value:s}=this.cursor.next(e);return this.pos+=(s.length+e)*t,this.value=s.length<=i?s:t<0?s.slice(s.length-i):s.slice(0,i),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class ol{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:i,value:s}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=s,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(q.prototype[Symbol.iterator]=function(){return this.iter()},Ci.prototype[Symbol.iterator]=sl.prototype[Symbol.iterator]=ol.prototype[Symbol.iterator]=function(){return this});class Mf{constructor(e,t,i,s){this.from=e,this.to=t,this.number=i,this.text=s}get length(){return this.to-this.from}}function si(n,e,t){return e=Math.max(0,Math.min(n.length,e)),[e,Math.max(e,Math.min(n.length,t))]}function ge(n,e,t=!0,i=!0){return Cf(n,e,t,i)}function Df(n){return n>=56320&&n<57344}function Tf(n){return n>=55296&&n<56320}function Oe(n,e){let t=n.charCodeAt(e);if(!Tf(t)||e+1==n.length)return t;let i=n.charCodeAt(e+1);return Df(i)?(t-55296<<10)+(i-56320)+65536:t}function to(n){return n<=65535?String.fromCharCode(n):(n-=65536,String.fromCharCode((n>>10)+55296,(n&1023)+56320))}function et(n){return n<65536?1:2}const o0=/\r\n?|\n/;var ye=function(n){return n[n.Simple=0]="Simple",n[n.TrackDel=1]="TrackDel",n[n.TrackBefore=2]="TrackBefore",n[n.TrackAfter=3]="TrackAfter",n}(ye||(ye={}));class st{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let i=this.sections[t+1];e+=i<0?this.sections[t]:i}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let t=0,i=0,s=0;t<this.sections.length;){let o=this.sections[t++],r=this.sections[t++];r<0?(e(i,s,o),s+=o):s+=r,i+=o}}iterChangedRanges(e,t=!1){r0(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let i=this.sections[t++],s=this.sections[t++];s<0?e.push(i,s):e.push(s,i)}return new st(e)}composeDesc(e){return this.empty?e:e.empty?this:rl(this,e)}mapDesc(e,t=!1){return e.empty?this:l0(this,e,t)}mapPos(e,t=-1,i=ye.Simple){let s=0,o=0;for(let r=0;r<this.sections.length;){let l=this.sections[r++],a=this.sections[r++],c=s+l;if(a<0){if(c>e)return o+(e-s);o+=l}else{if(i!=ye.Simple&&c>=e&&(i==ye.TrackDel&&s<e&&c>e||i==ye.TrackBefore&&s<e||i==ye.TrackAfter&&c>e))return null;if(c>e||c==e&&t<0&&!l)return e==s||t<0?o:o+a;o+=a}s=c}if(e>s)throw new RangeError(`Position ${e} is out of range for changeset of length ${s}`);return o}touchesRange(e,t=e){for(let i=0,s=0;i<this.sections.length&&s<=t;){let o=this.sections[i++],r=this.sections[i++],l=s+o;if(r>=0&&s<=t&&l>=e)return s<e&&l>t?"cover":!0;s=l}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let i=this.sections[t++],s=this.sections[t++];e+=(e?" ":"")+i+(s>=0?":"+s:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(t=>typeof t!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new st(e)}static create(e){return new st(e)}}class le extends st{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return r0(this,(t,i,s,o,r)=>e=e.replace(s,s+(i-t),r),!1),e}mapDesc(e,t=!1){return l0(this,e,t,!0)}invert(e){let t=this.sections.slice(),i=[];for(let s=0,o=0;s<t.length;s+=2){let r=t[s],l=t[s+1];if(l>=0){t[s]=l,t[s+1]=r;let a=s>>1;for(;i.length<a;)i.push(q.empty);i.push(r?e.slice(o,o+r):q.empty)}o+=r}return new le(t,i)}compose(e){return this.empty?e:e.empty?this:rl(this,e,!0)}map(e,t=!1){return e.empty?this:l0(this,e,t,!0)}iterChanges(e,t=!1){r0(this,e,t)}get desc(){return st.create(this.sections)}filter(e){let t=[],i=[],s=[],o=new Pi(this);e:for(let r=0,l=0;;){let a=r==e.length?1e9:e[r++];for(;l<a||l==a&&o.len==0;){if(o.done)break e;let h=Math.min(o.len,a-l);ve(s,h,-1);let f=o.ins==-1?-1:o.off==0?o.ins:0;ve(t,h,f),f>0&&wt(i,t,o.text),o.forward(h),l+=h}let c=e[r++];for(;l<c;){if(o.done)break e;let h=Math.min(o.len,c-l);ve(t,h,-1),ve(s,h,o.ins==-1?-1:o.off==0?o.ins:0),o.forward(h),l+=h}}return{changes:new le(t,i),filtered:st.create(s)}}toJSON(){let e=[];for(let t=0;t<this.sections.length;t+=2){let i=this.sections[t],s=this.sections[t+1];s<0?e.push(i):s==0?e.push([i]):e.push([i].concat(this.inserted[t>>1].toJSON()))}return e}static of(e,t,i){let s=[],o=[],r=0,l=null;function a(h=!1){if(!h&&!s.length)return;r<t&&ve(s,t-r,-1);let f=new le(s,o);l=l?l.compose(f.map(l)):f,s=[],o=[],r=0}function c(h){if(Array.isArray(h))for(let f of h)c(f);else if(h instanceof le){if(h.length!=t)throw new RangeError(`Mismatched change set length (got ${h.length}, expected ${t})`);a(),l=l?l.compose(h.map(l)):h}else{let{from:f,to:d=f,insert:p}=h;if(f>d||f<0||d>t)throw new RangeError(`Invalid change range ${f} to ${d} (in doc of length ${t})`);let g=p?typeof p=="string"?q.of(p.split(i||o0)):p:q.empty,m=g.length;if(f==d&&m==0)return;f<r&&a(),f>r&&ve(s,f-r,-1),ve(s,d-f,m),wt(o,s,g),r=d}}return c(e),a(!l),l}static empty(e){return new le(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],i=[];for(let s=0;s<e.length;s++){let o=e[s];if(typeof o=="number")t.push(o,-1);else{if(!Array.isArray(o)||typeof o[0]!="number"||o.some((r,l)=>l&&typeof r!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(o.length==1)t.push(o[0],0);else{for(;i.length<s;)i.push(q.empty);i[s]=q.of(o.slice(1)),t.push(o[0],i[s].length)}}}return new le(t,i)}static createSet(e,t){return new le(e,t)}}function ve(n,e,t,i=!1){if(e==0&&t<=0)return;let s=n.length-2;s>=0&&t<=0&&t==n[s+1]?n[s]+=e:s>=0&&e==0&&n[s]==0?n[s+1]+=t:i?(n[s]+=e,n[s+1]+=t):n.push(e,t)}function wt(n,e,t){if(t.length==0)return;let i=e.length-2>>1;if(i<n.length)n[n.length-1]=n[n.length-1].append(t);else{for(;n.length<i;)n.push(q.empty);n.push(t)}}function r0(n,e,t){let i=n.inserted;for(let s=0,o=0,r=0;r<n.sections.length;){let l=n.sections[r++],a=n.sections[r++];if(a<0)s+=l,o+=l;else{let c=s,h=o,f=q.empty;for(;c+=l,h+=a,a&&i&&(f=f.append(i[r-2>>1])),!(t||r==n.sections.length||n.sections[r+1]<0);)l=n.sections[r++],a=n.sections[r++];e(s,c,o,h,f),s=c,o=h}}}function l0(n,e,t,i=!1){let s=[],o=i?[]:null,r=new Pi(n),l=new Pi(e);for(let a=-1;;){if(r.done&&l.len||l.done&&r.len)throw new Error("Mismatched change set lengths");if(r.ins==-1&&l.ins==-1){let c=Math.min(r.len,l.len);ve(s,c,-1),r.forward(c),l.forward(c)}else if(l.ins>=0&&(r.ins<0||a==r.i||r.off==0&&(l.len<r.len||l.len==r.len&&!t))){let c=l.len;for(ve(s,l.ins,-1);c;){let h=Math.min(r.len,c);r.ins>=0&&a<r.i&&r.len<=h&&(ve(s,0,r.ins),o&&wt(o,s,r.text),a=r.i),r.forward(h),c-=h}l.next()}else if(r.ins>=0){let c=0,h=r.len;for(;h;)if(l.ins==-1){let f=Math.min(h,l.len);c+=f,h-=f,l.forward(f)}else if(l.ins==0&&l.len<h)h-=l.len,l.next();else break;ve(s,c,a<r.i?r.ins:0),o&&a<r.i&&wt(o,s,r.text),a=r.i,r.forward(r.len-h)}else{if(r.done&&l.done)return o?le.createSet(s,o):st.create(s);throw new Error("Mismatched change set lengths")}}}function rl(n,e,t=!1){let i=[],s=t?[]:null,o=new Pi(n),r=new Pi(e);for(let l=!1;;){if(o.done&&r.done)return s?le.createSet(i,s):st.create(i);if(o.ins==0)ve(i,o.len,0,l),o.next();else if(r.len==0&&!r.done)ve(i,0,r.ins,l),s&&wt(s,i,r.text),r.next();else{if(o.done||r.done)throw new Error("Mismatched change set lengths");{let a=Math.min(o.len2,r.len),c=i.length;if(o.ins==-1){let h=r.ins==-1?-1:r.off?0:r.ins;ve(i,a,h,l),s&&h&&wt(s,i,r.text)}else r.ins==-1?(ve(i,o.off?0:o.len,a,l),s&&wt(s,i,o.textBit(a))):(ve(i,o.off?0:o.len,r.off?0:r.ins,l),s&&!r.off&&wt(s,i,r.text));l=(o.ins>a||r.ins>=0&&r.len>a)&&(l||i.length>c),o.forward2(a),r.forward(a)}}}}class Pi{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,t=this.i-2>>1;return t>=e.length?q.empty:e[t]}textBit(e){let{inserted:t}=this.set,i=this.i-2>>1;return i>=t.length&&!e?q.empty:t[i].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class Et{constructor(e,t,i){this.from=e,this.to=t,this.flags=i}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,t=-1){let i,s;return this.empty?i=s=e.mapPos(this.from,t):(i=e.mapPos(this.from,1),s=e.mapPos(this.to,-1)),i==this.from&&s==this.to?this:new Et(i,s,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return M.range(e,t);let i=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return M.range(this.anchor,i)}eq(e,t=!1){return this.anchor==e.anchor&&this.head==e.head&&(!t||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return M.range(e.anchor,e.head)}static create(e,t,i){return new Et(e,t,i)}}class M{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:M.create(this.ranges.map(i=>i.map(e,t)),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let i=0;i<this.ranges.length;i++)if(!this.ranges[i].eq(e.ranges[i],t))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new M([this.main],0)}addRange(e,t=!0){return M.create([e].concat(this.ranges),t?0:this.mainIndex+1)}replaceRange(e,t=this.mainIndex){let i=this.ranges.slice();return i[t]=e,M.create(i,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new M(e.ranges.map(t=>Et.fromJSON(t)),e.main)}static single(e,t=e){return new M([M.range(e,t)],0)}static create(e,t=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let i=0,s=0;s<e.length;s++){let o=e[s];if(o.empty?o.from<=i:o.from<i)return M.normalized(e.slice(),t);i=o.to}return new M(e,t)}static cursor(e,t=0,i,s){return Et.create(e,e,(t==0?0:t<0?8:16)|(i==null?7:Math.min(6,i))|(s??16777215)<<6)}static range(e,t,i,s){let o=(i??16777215)<<6|(s==null?7:Math.min(6,s));return t<e?Et.create(t,e,48|o):Et.create(e,t,(t>e?8:0)|o)}static normalized(e,t=0){let i=e[t];e.sort((s,o)=>s.from-o.from),t=e.indexOf(i);for(let s=1;s<e.length;s++){let o=e[s],r=e[s-1];if(o.empty?o.from<=r.to:o.from<r.to){let l=r.from,a=Math.max(o.to,r.to);s<=t&&t--,e.splice(--s,2,o.anchor>o.head?M.range(a,l):M.range(l,a))}}return new M(e,t)}}function ll(n,e){for(let t of n.ranges)if(t.to>e)throw new RangeError("Selection points outside of document")}let io=0;class L{constructor(e,t,i,s,o){this.combine=e,this.compareInput=t,this.compare=i,this.isStatic=s,this.id=io++,this.default=e([]),this.extensions=typeof o=="function"?o(this):o}get reader(){return this}static define(e={}){return new L(e.combine||(t=>t),e.compareInput||((t,i)=>t===i),e.compare||(e.combine?(t,i)=>t===i:no),!!e.static,e.enables)}of(e){return new Mn([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Mn(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Mn(e,this,2,t)}from(e,t){return t||(t=i=>i),this.compute([e],i=>t(i.field(e)))}}function no(n,e){return n==e||n.length==e.length&&n.every((t,i)=>t===e[i])}class Mn{constructor(e,t,i,s){this.dependencies=e,this.facet=t,this.type=i,this.value=s,this.id=io++}dynamicSlot(e){var t;let i=this.value,s=this.facet.compareInput,o=this.id,r=e[o]>>1,l=this.type==2,a=!1,c=!1,h=[];for(let f of this.dependencies)f=="doc"?a=!0:f=="selection"?c=!0:(((t=e[f.id])!==null&&t!==void 0?t:1)&1)==0&&h.push(e[f.id]);return{create(f){return f.values[r]=i(f),1},update(f,d){if(a&&d.docChanged||c&&(d.docChanged||d.selection)||a0(f,h)){let p=i(f);if(l?!Yo(p,f.values[r],s):!s(p,f.values[r]))return f.values[r]=p,1}return 0},reconfigure:(f,d)=>{let p,g=d.config.address[o];if(g!=null){let m=Hn(d,g);if(this.dependencies.every(v=>v instanceof L?d.facet(v)===f.facet(v):v instanceof me?d.field(v,!1)==f.field(v,!1):!0)||(l?Yo(p=i(f),m,s):s(p=i(f),m)))return f.values[r]=m,0}else p=i(f);return f.values[r]=p,1}}}}function Yo(n,e,t){if(n.length!=e.length)return!1;for(let i=0;i<n.length;i++)if(!t(n[i],e[i]))return!1;return!0}function a0(n,e){let t=!1;for(let i of e)_i(n,i)&1&&(t=!0);return t}function Af(n,e,t){let i=t.map(a=>n[a.id]),s=t.map(a=>a.type),o=i.filter(a=>!(a&1)),r=n[e.id]>>1;function l(a){let c=[];for(let h=0;h<i.length;h++){let f=Hn(a,i[h]);if(s[h]==2)for(let d of f)c.push(d);else c.push(f)}return e.combine(c)}return{create(a){for(let c of i)_i(a,c);return a.values[r]=l(a),1},update(a,c){if(!a0(a,o))return 0;let h=l(a);return e.compare(h,a.values[r])?0:(a.values[r]=h,1)},reconfigure(a,c){let h=a0(a,i),f=c.config.facets[e.id],d=c.facet(e);if(f&&!h&&no(t,f))return a.values[r]=d,0;let p=l(a);return e.compare(p,d)?(a.values[r]=d,0):(a.values[r]=p,1)}}}const tn=L.define({static:!0});class me{constructor(e,t,i,s,o){this.id=e,this.createF=t,this.updateF=i,this.compareF=s,this.spec=o,this.provides=void 0}static define(e){let t=new me(io++,e.create,e.update,e.compare||((i,s)=>i===s),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(tn).find(i=>i.field==this);return((t==null?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:i=>(i.values[t]=this.create(i),1),update:(i,s)=>{let o=i.values[t],r=this.updateF(o,s);return this.compareF(o,r)?0:(i.values[t]=r,1)},reconfigure:(i,s)=>{let o=i.facet(tn),r=s.facet(tn),l;return(l=o.find(a=>a.field==this))&&l!=r.find(a=>a.field==this)?(i.values[t]=l.create(i),1):s.config.address[this.id]!=null?(i.values[t]=s.field(this),0):(i.values[t]=this.create(i),1)}}}init(e){return[this,tn.of({field:this,create:e})]}get extension(){return this}}const Bt={lowest:4,low:3,default:2,high:1,highest:0};function pi(n){return e=>new al(e,n)}const Ft={highest:pi(Bt.highest),high:pi(Bt.high),default:pi(Bt.default),low:pi(Bt.low),lowest:pi(Bt.lowest)};class al{constructor(e,t){this.inner=e,this.prec=t}}class ps{of(e){return new c0(this,e)}reconfigure(e){return ps.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class c0{constructor(e,t){this.compartment=e,this.inner=t}}class In{constructor(e,t,i,s,o,r){for(this.base=e,this.compartments=t,this.dynamicSlots=i,this.address=s,this.staticValues=o,this.facets=r,this.statusTemplate=[];this.statusTemplate.length<i.length;)this.statusTemplate.push(0)}staticFacet(e){let t=this.address[e.id];return t==null?e.default:this.staticValues[t>>1]}static resolve(e,t,i){let s=[],o=Object.create(null),r=new Map;for(let d of Bf(e,t,r))d instanceof me?s.push(d):(o[d.facet.id]||(o[d.facet.id]=[])).push(d);let l=Object.create(null),a=[],c=[];for(let d of s)l[d.id]=c.length<<1,c.push(p=>d.slot(p));let h=i==null?void 0:i.config.facets;for(let d in o){let p=o[d],g=p[0].facet,m=h&&h[d]||[];if(p.every(v=>v.type==0))if(l[g.id]=a.length<<1|1,no(m,p))a.push(i.facet(g));else{let v=g.combine(p.map(b=>b.value));a.push(i&&g.compare(v,i.facet(g))?i.facet(g):v)}else{for(let v of p)v.type==0?(l[v.id]=a.length<<1|1,a.push(v.value)):(l[v.id]=c.length<<1,c.push(b=>v.dynamicSlot(b)));l[g.id]=c.length<<1,c.push(v=>Af(v,g,p))}}let f=c.map(d=>d(l));return new In(e,r,f,l,a,o)}}function Bf(n,e,t){let i=[[],[],[],[],[]],s=new Map;function o(r,l){let a=s.get(r);if(a!=null){if(a<=l)return;let c=i[a].indexOf(r);c>-1&&i[a].splice(c,1),r instanceof c0&&t.delete(r.compartment)}if(s.set(r,l),Array.isArray(r))for(let c of r)o(c,l);else if(r instanceof c0){if(t.has(r.compartment))throw new RangeError("Duplicate use of compartment in extensions");let c=e.get(r.compartment)||r.inner;t.set(r.compartment,c),o(c,l)}else if(r instanceof al)o(r.inner,r.prec);else if(r instanceof me)i[l].push(r),r.provides&&o(r.provides,l);else if(r instanceof Mn)i[l].push(r),r.facet.extensions&&o(r.facet.extensions,Bt.default);else{let c=r.extension;if(!c)throw new Error(`Unrecognized extension value in extension set (${r}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);o(c,l)}}return o(n,Bt.default),i.reduce((r,l)=>r.concat(l))}function _i(n,e){if(e&1)return 2;let t=e>>1,i=n.status[t];if(i==4)throw new Error("Cyclic dependency between fields and/or facets");if(i&2)return i;n.status[t]=4;let s=n.computeSlot(n,n.config.dynamicSlots[t]);return n.status[t]=2|s}function Hn(n,e){return e&1?n.config.staticValues[e>>1]:n.values[e>>1]}const cl=L.define(),h0=L.define({combine:n=>n.some(e=>e),static:!0}),hl=L.define({combine:n=>n.length?n[0]:void 0,static:!0}),ul=L.define(),fl=L.define(),dl=L.define(),pl=L.define({combine:n=>n.length?n[0]:!1});class pt{constructor(e,t){this.type=e,this.value=t}static define(){return new Pf}}class Pf{of(e){return new pt(this,e)}}class Ef{constructor(e){this.map=e}of(e){return new $(this,e)}}class ${constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return t===void 0?void 0:t==this.value?this:new $(this.type,t)}is(e){return this.type==e}static define(e={}){return new Ef(e.map||(t=>t))}static mapEffects(e,t){if(!e.length)return e;let i=[];for(let s of e){let o=s.map(t);o&&i.push(o)}return i}}$.reconfigure=$.define();$.appendConfig=$.define();class ae{constructor(e,t,i,s,o,r){this.startState=e,this.changes=t,this.selection=i,this.effects=s,this.annotations=o,this.scrollIntoView=r,this._doc=null,this._state=null,i&&ll(i,t.newLength),o.some(l=>l.type==ae.time)||(this.annotations=o.concat(ae.time.of(Date.now())))}static create(e,t,i,s,o,r){return new ae(e,t,i,s,o,r)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(ae.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&t[e.length]=="."))}}ae.time=pt.define();ae.userEvent=pt.define();ae.addToHistory=pt.define();ae.remote=pt.define();function Vf(n,e){let t=[];for(let i=0,s=0;;){let o,r;if(i<n.length&&(s==e.length||e[s]>=n[i]))o=n[i++],r=n[i++];else if(s<e.length)o=e[s++],r=e[s++];else return t;!t.length||t[t.length-1]<o?t.push(o,r):t[t.length-1]<r&&(t[t.length-1]=r)}}function gl(n,e,t){var i;let s,o,r;return t?(s=e.changes,o=le.empty(e.changes.length),r=n.changes.compose(e.changes)):(s=e.changes.map(n.changes),o=n.changes.mapDesc(e.changes,!0),r=n.changes.compose(s)),{changes:r,selection:e.selection?e.selection.map(o):(i=n.selection)===null||i===void 0?void 0:i.map(s),effects:$.mapEffects(n.effects,s).concat($.mapEffects(e.effects,o)),annotations:n.annotations.length?n.annotations.concat(e.annotations):e.annotations,scrollIntoView:n.scrollIntoView||e.scrollIntoView}}function u0(n,e,t){let i=e.selection,s=Jt(e.annotations);return e.userEvent&&(s=s.concat(ae.userEvent.of(e.userEvent))),{changes:e.changes instanceof le?e.changes:le.of(e.changes||[],t,n.facet(hl)),selection:i&&(i instanceof M?i:M.single(i.anchor,i.head)),effects:Jt(e.effects),annotations:s,scrollIntoView:!!e.scrollIntoView}}function ml(n,e,t){let i=u0(n,e.length?e[0]:{},n.doc.length);e.length&&e[0].filter===!1&&(t=!1);for(let o=1;o<e.length;o++){e[o].filter===!1&&(t=!1);let r=!!e[o].sequential;i=gl(i,u0(n,e[o],r?i.changes.newLength:n.doc.length),r)}let s=ae.create(n,i.changes,i.selection,i.effects,i.annotations,i.scrollIntoView);return Lf(t?zf(s):s)}function zf(n){let e=n.startState,t=!0;for(let s of e.facet(ul)){let o=s(n);if(o===!1){t=!1;break}Array.isArray(o)&&(t=t===!0?o:Vf(t,o))}if(t!==!0){let s,o;if(t===!1)o=n.changes.invertedDesc,s=le.empty(e.doc.length);else{let r=n.changes.filter(t);s=r.changes,o=r.filtered.mapDesc(r.changes).invertedDesc}n=ae.create(e,s,n.selection&&n.selection.map(o),$.mapEffects(n.effects,o),n.annotations,n.scrollIntoView)}let i=e.facet(fl);for(let s=i.length-1;s>=0;s--){let o=i[s](n);o instanceof ae?n=o:Array.isArray(o)&&o.length==1&&o[0]instanceof ae?n=o[0]:n=ml(e,Jt(o),!1)}return n}function Lf(n){let e=n.startState,t=e.facet(dl),i=n;for(let s=t.length-1;s>=0;s--){let o=t[s](n);o&&Object.keys(o).length&&(i=gl(i,u0(e,o,n.changes.newLength),!0))}return i==n?n:ae.create(e,n.changes,n.selection,i.effects,i.annotations,i.scrollIntoView)}const Rf=[];function Jt(n){return n==null?Rf:Array.isArray(n)?n:[n]}var te=function(n){return n[n.Word=0]="Word",n[n.Space=1]="Space",n[n.Other=2]="Other",n}(te||(te={}));const Nf=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let f0;try{f0=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function If(n){if(f0)return f0.test(n);for(let e=0;e<n.length;e++){let t=n[e];if(/\w/.test(t)||t>""&&(t.toUpperCase()!=t.toLowerCase()||Nf.test(t)))return!0}return!1}function Hf(n){return e=>{if(!/\S/.test(e))return te.Space;if(If(e))return te.Word;for(let t=0;t<n.length;t++)if(e.indexOf(n[t])>-1)return te.Word;return te.Other}}class G{constructor(e,t,i,s,o,r){this.config=e,this.doc=t,this.selection=i,this.values=s,this.status=e.statusTemplate.slice(),this.computeSlot=o,r&&(r._state=this);for(let l=0;l<this.config.dynamicSlots.length;l++)_i(this,l<<1);this.computeSlot=null}field(e,t=!0){let i=this.config.address[e.id];if(i==null){if(t)throw new RangeError("Field is not present in this state");return}return _i(this,i),Hn(this,i)}update(...e){return ml(this,e,!0)}applyTransaction(e){let t=this.config,{base:i,compartments:s}=t;for(let l of e.effects)l.is(ps.reconfigure)?(t&&(s=new Map,t.compartments.forEach((a,c)=>s.set(c,a)),t=null),s.set(l.value.compartment,l.value.extension)):l.is($.reconfigure)?(t=null,i=l.value):l.is($.appendConfig)&&(t=null,i=Jt(i).concat(l.value));let o;t?o=e.startState.values.slice():(t=In.resolve(i,s,this),o=new G(t,this.doc,this.selection,t.dynamicSlots.map(()=>null),(a,c)=>c.reconfigure(a,this),null).values);let r=e.startState.facet(h0)?e.newSelection:e.newSelection.asSingle();new G(t,e.newDoc,r,o,(l,a)=>a.update(l,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:M.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,i=e(t.ranges[0]),s=this.changes(i.changes),o=[i.range],r=Jt(i.effects);for(let l=1;l<t.ranges.length;l++){let a=e(t.ranges[l]),c=this.changes(a.changes),h=c.map(s);for(let d=0;d<l;d++)o[d]=o[d].map(h);let f=s.mapDesc(c,!0);o.push(a.range.map(f)),s=s.compose(h),r=$.mapEffects(r,h).concat($.mapEffects(Jt(a.effects),f))}return{changes:s,selection:M.create(o,t.mainIndex),effects:r}}changes(e=[]){return e instanceof le?e:le.of(e,this.doc.length,this.facet(G.lineSeparator))}toText(e){return q.of(e.split(this.facet(G.lineSeparator)||o0))}sliceDoc(e=0,t=this.doc.length){return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return t==null?e.default:(_i(this,t),Hn(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let i in e){let s=e[i];s instanceof me&&this.config.address[s.id]!=null&&(t[i]=s.spec.toJSON(this.field(e[i]),this))}return t}static fromJSON(e,t={},i){if(!e||typeof e.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let s=[];if(i){for(let o in i)if(Object.prototype.hasOwnProperty.call(e,o)){let r=i[o],l=e[o];s.push(r.init(a=>r.spec.fromJSON(l,a)))}}return G.create({doc:e.doc,selection:M.fromJSON(e.selection),extensions:t.extensions?s.concat([t.extensions]):s})}static create(e={}){let t=In.resolve(e.extensions||[],new Map),i=e.doc instanceof q?e.doc:q.of((e.doc||"").split(t.staticFacet(G.lineSeparator)||o0)),s=e.selection?e.selection instanceof M?e.selection:M.single(e.selection.anchor,e.selection.head):M.single(0);return ll(s,i.length),t.staticFacet(h0)||(s=s.asSingle()),new G(t,i,s,t.dynamicSlots.map(()=>null),(o,r)=>r.create(o),null)}get tabSize(){return this.facet(G.tabSize)}get lineBreak(){return this.facet(G.lineSeparator)||`
|
|
5
|
+
`}get readOnly(){return this.facet(pl)}phrase(e,...t){for(let i of this.facet(G.phrases))if(Object.prototype.hasOwnProperty.call(i,e)){e=i[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(i,s)=>{if(s=="$")return"$";let o=+(s||1);return!o||o>t.length?i:t[o-1]})),e}languageDataAt(e,t,i=-1){let s=[];for(let o of this.facet(cl))for(let r of o(this,t,i))Object.prototype.hasOwnProperty.call(r,e)&&s.push(r[e]);return s}charCategorizer(e){return Hf(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:t,from:i,length:s}=this.doc.lineAt(e),o=this.charCategorizer(e),r=e-i,l=e-i;for(;r>0;){let a=ge(t,r,!1);if(o(t.slice(a,r))!=te.Word)break;r=a}for(;l<s;){let a=ge(t,l);if(o(t.slice(l,a))!=te.Word)break;l=a}return r==l?null:M.range(r+i,l+i)}}G.allowMultipleSelections=h0;G.tabSize=L.define({combine:n=>n.length?n[0]:4});G.lineSeparator=hl;G.readOnly=pl;G.phrases=L.define({compare(n,e){let t=Object.keys(n),i=Object.keys(e);return t.length==i.length&&t.every(s=>n[s]==e[s])}});G.languageData=cl;G.changeFilter=ul;G.transactionFilter=fl;G.transactionExtender=dl;ps.reconfigure=$.define();function rt(n,e,t={}){let i={};for(let s of n)for(let o of Object.keys(s)){let r=s[o],l=i[o];if(l===void 0)i[o]=r;else if(!(l===r||r===void 0))if(Object.hasOwnProperty.call(t,o))i[o]=t[o](l,r);else throw new Error("Config merge conflict for field "+o)}for(let s in e)i[s]===void 0&&(i[s]=e[s]);return i}class Nt{eq(e){return this==e}range(e,t=e){return d0.create(e,t,this)}}Nt.prototype.startSide=Nt.prototype.endSide=0;Nt.prototype.point=!1;Nt.prototype.mapMode=ye.TrackDel;let d0=class vl{constructor(e,t,i){this.from=e,this.to=t,this.value=i}static create(e,t,i){return new vl(e,t,i)}};function p0(n,e){return n.from-e.from||n.value.startSide-e.value.startSide}class so{constructor(e,t,i,s){this.from=e,this.to=t,this.value=i,this.maxPoint=s}get length(){return this.to[this.to.length-1]}findIndex(e,t,i,s=0){let o=i?this.to:this.from;for(let r=s,l=o.length;;){if(r==l)return r;let a=r+l>>1,c=o[a]-e||(i?this.value[a].endSide:this.value[a].startSide)-t;if(a==r)return c>=0?r:l;c>=0?l=a:r=a+1}}between(e,t,i,s){for(let o=this.findIndex(t,-1e9,!0),r=this.findIndex(i,1e9,!1,o);o<r;o++)if(s(this.from[o]+e,this.to[o]+e,this.value[o])===!1)return!1}map(e,t){let i=[],s=[],o=[],r=-1,l=-1;for(let a=0;a<this.value.length;a++){let c=this.value[a],h=this.from[a]+e,f=this.to[a]+e,d,p;if(h==f){let g=t.mapPos(h,c.startSide,c.mapMode);if(g==null||(d=p=g,c.startSide!=c.endSide&&(p=t.mapPos(h,c.endSide),p<d)))continue}else if(d=t.mapPos(h,c.startSide),p=t.mapPos(f,c.endSide),d>p||d==p&&c.startSide>0&&c.endSide<=0)continue;(p-d||c.endSide-c.startSide)<0||(r<0&&(r=d),c.point&&(l=Math.max(l,p-d)),i.push(c),s.push(d-r),o.push(p-r))}return{mapped:i.length?new so(s,o,i,l):null,pos:r}}}class j{constructor(e,t,i,s){this.chunkPos=e,this.chunk=t,this.nextLayer=i,this.maxPoint=s}static create(e,t,i,s){return new j(e,t,i,s)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:i=!1,filterFrom:s=0,filterTo:o=this.length}=e,r=e.filter;if(t.length==0&&!r)return this;if(i&&(t=t.slice().sort(p0)),this.isEmpty)return t.length?j.of(t):this;let l=new wl(this,null,-1).goto(0),a=0,c=[],h=new ut;for(;l.value||a<t.length;)if(a<t.length&&(l.from-t[a].from||l.startSide-t[a].value.startSide)>=0){let f=t[a++];h.addInner(f.from,f.to,f.value)||c.push(f)}else l.rangeIndex==1&&l.chunkIndex<this.chunk.length&&(a==t.length||this.chunkEnd(l.chunkIndex)<t[a].from)&&(!r||s>this.chunkEnd(l.chunkIndex)||o<this.chunkPos[l.chunkIndex])&&h.addChunk(this.chunkPos[l.chunkIndex],this.chunk[l.chunkIndex])?l.nextChunk():((!r||s>l.to||o<l.from||r(l.from,l.to,l.value))&&(h.addInner(l.from,l.to,l.value)||c.push(d0.create(l.from,l.to,l.value))),l.next());return h.finishInner(this.nextLayer.isEmpty&&!c.length?j.empty:this.nextLayer.update({add:c,filter:r,filterFrom:s,filterTo:o}))}map(e){if(e.empty||this.isEmpty)return this;let t=[],i=[],s=-1;for(let r=0;r<this.chunk.length;r++){let l=this.chunkPos[r],a=this.chunk[r],c=e.touchesRange(l,l+a.length);if(c===!1)s=Math.max(s,a.maxPoint),t.push(a),i.push(e.mapPos(l));else if(c===!0){let{mapped:h,pos:f}=a.map(l,e);h&&(s=Math.max(s,h.maxPoint),t.push(h),i.push(f))}}let o=this.nextLayer.map(e);return t.length==0?o:new j(i,t,o||j.empty,s)}between(e,t,i){if(!this.isEmpty){for(let s=0;s<this.chunk.length;s++){let o=this.chunkPos[s],r=this.chunk[s];if(t>=o&&e<=o+r.length&&r.between(o,e-o,t-o,i)===!1)return}this.nextLayer.between(e,t,i)}}iter(e=0){return Ei.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return Ei.from(e).goto(t)}static compare(e,t,i,s,o=-1){let r=e.filter(f=>f.maxPoint>0||!f.isEmpty&&f.maxPoint>=o),l=t.filter(f=>f.maxPoint>0||!f.isEmpty&&f.maxPoint>=o),a=Ko(r,l,i),c=new gi(r,a,o),h=new gi(l,a,o);i.iterGaps((f,d,p)=>Xo(c,f,h,d,p,s)),i.empty&&i.length==0&&Xo(c,0,h,0,0,s)}static eq(e,t,i=0,s){s==null&&(s=999999999);let o=e.filter(h=>!h.isEmpty&&t.indexOf(h)<0),r=t.filter(h=>!h.isEmpty&&e.indexOf(h)<0);if(o.length!=r.length)return!1;if(!o.length)return!0;let l=Ko(o,r),a=new gi(o,l,0).goto(i),c=new gi(r,l,0).goto(i);for(;;){if(a.to!=c.to||!g0(a.active,c.active)||a.point&&(!c.point||!a.point.eq(c.point)))return!1;if(a.to>s)return!0;a.next(),c.next()}}static spans(e,t,i,s,o=-1){let r=new gi(e,null,o).goto(t),l=t,a=r.openStart;for(;;){let c=Math.min(r.to,i);if(r.point){let h=r.activeForPoint(r.to),f=r.pointFrom<t?h.length+1:r.point.startSide<0?h.length:Math.min(h.length,a);s.point(l,c,r.point,h,f,r.pointRank),a=Math.min(r.openEnd(c),h.length)}else c>l&&(s.span(l,c,r.active,a),a=r.openEnd(c));if(r.to>i)return a+(r.point&&r.to>i?1:0);l=r.to,r.next()}}static of(e,t=!1){let i=new ut;for(let s of e instanceof d0?[e]:t?$f(e):e)i.add(s.from,s.to,s.value);return i.finish()}static join(e){if(!e.length)return j.empty;let t=e[e.length-1];for(let i=e.length-2;i>=0;i--)for(let s=e[i];s!=j.empty;s=s.nextLayer)t=new j(s.chunkPos,s.chunk,t,Math.max(s.maxPoint,t.maxPoint));return t}}j.empty=new j([],[],null,-1);function $f(n){if(n.length>1)for(let e=n[0],t=1;t<n.length;t++){let i=n[t];if(p0(e,i)>0)return n.slice().sort(p0);e=i}return n}j.empty.nextLayer=j.empty;class ut{finishChunk(e){this.chunks.push(new so(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,i){this.addInner(e,t,i)||(this.nextLayer||(this.nextLayer=new ut)).add(e,t,i)}addInner(e,t,i){let s=e-this.lastTo||i.startSide-this.last.endSide;if(s<=0&&(e-this.lastFrom||i.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return s<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=i,this.lastFrom=e,this.lastTo=t,this.value.push(i),i.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let i=t.value.length-1;return this.last=t.value[i],this.lastFrom=t.from[i]+e,this.lastTo=t.to[i]+e,!0}finish(){return this.finishInner(j.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let t=j.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function Ko(n,e,t){let i=new Map;for(let o of n)for(let r=0;r<o.chunk.length;r++)o.chunk[r].maxPoint<=0&&i.set(o.chunk[r],o.chunkPos[r]);let s=new Set;for(let o of e)for(let r=0;r<o.chunk.length;r++){let l=i.get(o.chunk[r]);l!=null&&(t?t.mapPos(l):l)==o.chunkPos[r]&&!(t!=null&&t.touchesRange(l,l+o.chunk[r].length))&&s.add(o.chunk[r])}return s}class wl{constructor(e,t,i,s=0){this.layer=e,this.skip=t,this.minPoint=i,this.rank=s}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e,t=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,t,!1),this}gotoInner(e,t,i){for(;this.chunkIndex<this.layer.chunk.length;){let s=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(s)||this.layer.chunkEnd(this.chunkIndex)<e||s.maxPoint<this.minPoint))break;this.chunkIndex++,i=!1}if(this.chunkIndex<this.layer.chunk.length){let s=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],t,!0);(!i||this.rangeIndex<s)&&this.setRangeIndex(s)}this.next()}forward(e,t){(this.to-e||this.endSide-t)<0&&this.gotoInner(e,t,!0)}next(){for(;;)if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}else{let e=this.layer.chunkPos[this.chunkIndex],t=this.layer.chunk[this.chunkIndex],i=e+t.from[this.rangeIndex];if(this.from=i,this.to=e+t.to[this.rangeIndex],this.value=t.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=e}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}}class Ei{constructor(e){this.heap=e}static from(e,t=null,i=-1){let s=[];for(let o=0;o<e.length;o++)for(let r=e[o];!r.isEmpty;r=r.nextLayer)r.maxPoint>=i&&s.push(new wl(r,t,i,o));return s.length==1?s[0]:new Ei(s)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let i of this.heap)i.goto(e,t);for(let i=this.heap.length>>1;i>=0;i--)Ts(this.heap,i);return this.next(),this}forward(e,t){for(let i of this.heap)i.forward(e,t);for(let i=this.heap.length>>1;i>=0;i--)Ts(this.heap,i);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),Ts(this.heap,0)}}}function Ts(n,e){for(let t=n[e];;){let i=(e<<1)+1;if(i>=n.length)break;let s=n[i];if(i+1<n.length&&s.compare(n[i+1])>=0&&(s=n[i+1],i++),t.compare(s)<0)break;n[i]=t,n[e]=s,e=i}}class gi{constructor(e,t,i){this.minPoint=i,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=Ei.from(e,t,i)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){nn(this.active,e),nn(this.activeTo,e),nn(this.activeRank,e),this.minActive=Qo(this.active,this.activeTo)}addActive(e){let t=0,{value:i,to:s,rank:o}=this.cursor;for(;t<this.activeRank.length&&(o-this.activeRank[t]||s-this.activeTo[t])>0;)t++;sn(this.active,t,i),sn(this.activeTo,t,s),sn(this.activeRank,t,o),e&&sn(e,t,this.cursor.from),this.minActive=Qo(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let i=this.openStart<0?[]:null;for(;;){let s=this.minActive;if(s>-1&&(this.activeTo[s]-this.cursor.from||this.active[s].endSide-this.cursor.startSide)<0){if(this.activeTo[s]>e){this.to=this.activeTo[s],this.endSide=this.active[s].endSide;break}this.removeActive(s),i&&nn(i,s)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let o=this.cursor.value;if(!o.point)this.addActive(i),this.cursor.next();else if(t&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)this.cursor.next();else{this.point=o,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=o.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}}else{this.to=this.endSide=1e9;break}}if(i){this.openStart=0;for(let s=i.length-1;s>=0&&i[s]<e;s--)this.openStart++}}activeForPoint(e){if(!this.active.length)return this.active;let t=[];for(let i=this.active.length-1;i>=0&&!(this.activeRank[i]<this.pointRank);i--)(this.activeTo[i]>e||this.activeTo[i]==e&&this.active[i].endSide>=this.point.endSide)&&t.push(this.active[i]);return t.reverse()}openEnd(e){let t=0;for(let i=this.activeTo.length-1;i>=0&&this.activeTo[i]>e;i--)t++;return t}}function Xo(n,e,t,i,s,o){n.goto(e),t.goto(i);let r=i+s,l=i,a=i-e;for(;;){let c=n.to+a-t.to,h=c||n.endSide-t.endSide,f=h<0?n.to+a:t.to,d=Math.min(f,r);if(n.point||t.point?n.point&&t.point&&(n.point==t.point||n.point.eq(t.point))&&g0(n.activeForPoint(n.to),t.activeForPoint(t.to))||o.comparePoint(l,d,n.point,t.point):d>l&&!g0(n.active,t.active)&&o.compareRange(l,d,n.active,t.active),f>r)break;(c||n.openEnd!=t.openEnd)&&o.boundChange&&o.boundChange(f),l=f,h<=0&&n.next(),h>=0&&t.next()}}function g0(n,e){if(n.length!=e.length)return!1;for(let t=0;t<n.length;t++)if(n[t]!=e[t]&&!n[t].eq(e[t]))return!1;return!0}function nn(n,e){for(let t=e,i=n.length-1;t<i;t++)n[t]=n[t+1];n.pop()}function sn(n,e,t){for(let i=n.length-1;i>=e;i--)n[i+1]=n[i];n[e]=t}function Qo(n,e){let t=-1,i=1e9;for(let s=0;s<e.length;s++)(e[s]-i||n[s].endSide-n[t].endSide)<0&&(t=s,i=e[s]);return t}function ui(n,e,t=n.length){let i=0;for(let s=0;s<t&&s<n.length;)n.charCodeAt(s)==9?(i+=e-i%e,s++):(i++,s=ge(n,s));return i}function m0(n,e,t,i){for(let s=0,o=0;;){if(o>=e)return s;if(s==n.length)break;o+=n.charCodeAt(s)==9?t-o%t:1,s=ge(n,s)}return i===!0?-1:n.length}const v0="ͼ",Jo=typeof Symbol>"u"?"__"+v0:Symbol.for(v0),w0=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),Zo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class St{constructor(e,t){this.rules=[];let{finish:i}=t||{};function s(r){return/^@/.test(r)?[r]:r.split(/,\s*/)}function o(r,l,a,c){let h=[],f=/^@(\w+)\b/.exec(r[0]),d=f&&f[1]=="keyframes";if(f&&l==null)return a.push(r[0]+";");for(let p in l){let g=l[p];if(/&/.test(p))o(p.split(/,\s*/).map(m=>r.map(v=>m.replace(/&/,v))).reduce((m,v)=>m.concat(v)),g,a);else if(g&&typeof g=="object"){if(!f)throw new RangeError("The value of a property ("+p+") should be a primitive value.");o(s(p),g,h,d)}else g!=null&&h.push(p.replace(/_.*/,"").replace(/[A-Z]/g,m=>"-"+m.toLowerCase())+": "+g+";")}(h.length||d)&&a.push((i&&!f&&!c?r.map(i):r).join(", ")+" {"+h.join(" ")+"}")}for(let r in e)o(s(r),e[r],this.rules)}getRules(){return this.rules.join(`
|
|
6
6
|
`)}static newName(){let e=Zo[Jo]||1;return Zo[Jo]=e+1,v0+e.toString(36)}static mount(e,t,i){let s=e[w0],o=i&&i.nonce;s?o&&s.setNonce(o):s=new Wf(e,o),s.mount(Array.isArray(t)?t:[t],e)}}let e2=new Map;class Wf{constructor(e,t){let i=e.ownerDocument||e,s=i.defaultView;if(!e.head&&e.adoptedStyleSheets&&s.CSSStyleSheet){let o=e2.get(i);if(o)return e[w0]=o;this.sheet=new s.CSSStyleSheet,e2.set(i,this)}else this.styleTag=i.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[w0]=this}mount(e,t){let i=this.sheet,s=0,o=0;for(let r=0;r<e.length;r++){let l=e[r],a=this.modules.indexOf(l);if(a<o&&a>-1&&(this.modules.splice(a,1),o--,a=-1),a==-1){if(this.modules.splice(o++,0,l),i)for(let c=0;c<l.rules.length;c++)i.insertRule(l.rules[c],s++)}else{for(;o<a;)s+=this.modules[o++].rules.length;s+=l.rules.length,o++}}if(i)t.adoptedStyleSheets.indexOf(this.sheet)<0&&(t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets]);else{let r="";for(let a=0;a<this.modules.length;a++)r+=this.modules[a].getRules()+`
|
|
7
|
-
`;this.styleTag.textContent=r;let l=t.head||t;this.styleTag.parentNode!=l&&l.insertBefore(this.styleTag,l.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}var Ct={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},Vi={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Ff=typeof navigator<"u"&&/Mac/.test(navigator.platform),Gf=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var pe=0;pe<10;pe++)Ct[48+pe]=Ct[96+pe]=String(pe);for(var pe=1;pe<=24;pe++)Ct[pe+111]="F"+pe;for(var pe=65;pe<=90;pe++)Ct[pe]=String.fromCharCode(pe+32),Vi[pe]=String.fromCharCode(pe);for(var As in Ct)Vi.hasOwnProperty(As)||(Vi[As]=Ct[As]);function jf(n){var e=Ff&&n.metaKey&&n.shiftKey&&!n.ctrlKey&&!n.altKey||Gf&&n.shiftKey&&n.key&&n.key.length==1||n.key=="Unidentified",t=!e&&n.key||(n.shiftKey?Vi:Ct)[n.keyCode]||n.key||"Unidentified";return t=="Esc"&&(t="Escape"),t=="Del"&&(t="Delete"),t=="Left"&&(t="ArrowLeft"),t=="Up"&&(t="ArrowUp"),t=="Right"&&(t="ArrowRight"),t=="Down"&&(t="ArrowDown"),t}function Y(){var n=arguments[0];typeof n=="string"&&(n=document.createElement(n));var e=1,t=arguments[1];if(t&&typeof t=="object"&&t.nodeType==null&&!Array.isArray(t)){for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var s=t[i];typeof s=="string"?n.setAttribute(i,s):s!=null&&(n[i]=s)}e++}for(;e<arguments.length;e++)xl(n,arguments[e]);return n}function xl(n,e){if(typeof e=="string")n.appendChild(document.createTextNode(e));else if(e!=null)if(e.nodeType!=null)n.appendChild(e);else if(Array.isArray(e))for(var t=0;t<e.length;t++)xl(n,e[t]);else throw new RangeError("Unsupported child node: "+e)}function zi(n){let e;return n.nodeType==11?e=n.getSelection?n:n.ownerDocument:e=n,e.getSelection()}function x0(n,e){return e?n==e||n.contains(e.nodeType!=1?e.parentNode:e):!1}function Dn(n,e){if(!e.anchorNode)return!1;try{return x0(n,e.anchorNode)}catch{return!1}}function Li(n){return n.nodeType==3?Ht(n,0,n.nodeValue.length).getClientRects():n.nodeType==1?n.getClientRects():[]}function Oi(n,e,t,i){return t?t2(n,e,t,i,-1)||t2(n,e,t,i,1):!1}function It(n){for(var e=0;;e++)if(n=n.previousSibling,!n)return e}function $n(n){return n.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(n.nodeName)}function t2(n,e,t,i,s){for(;;){if(n==t&&e==i)return!0;if(e==(s<0?0:ot(n))){if(n.nodeName=="DIV")return!1;let o=n.parentNode;if(!o||o.nodeType!=1)return!1;e=It(n)+(s<0?0:1),n=o}else if(n.nodeType==1){if(n=n.childNodes[e+(s<0?-1:0)],n.nodeType==1&&n.contentEditable=="false")return!1;e=s<0?ot(n):0}else return!1}}function ot(n){return n.nodeType==3?n.nodeValue.length:n.childNodes.length}function gs(n,e){let t=e?n.left:n.right;return{left:t,right:t,top:n.top,bottom:n.bottom}}function qf(n){let e=n.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:n.innerWidth,top:0,bottom:n.innerHeight}}function bl(n,e){let t=e.width/n.offsetWidth,i=e.height/n.offsetHeight;return(t>.995&&t<1.005||!isFinite(t)||Math.abs(e.width-n.offsetWidth)<1)&&(t=1),(i>.995&&i<1.005||!isFinite(i)||Math.abs(e.height-n.offsetHeight)<1)&&(i=1),{scaleX:t,scaleY:i}}function Uf(n,e,t,i,s,o,r,l){let a=n.ownerDocument,c=a.defaultView||window;for(let h=n,f=!1;h&&!f;)if(h.nodeType==1){let d,p=h==a.body,g=1,m=1;if(p)d=qf(c);else{if(/^(fixed|sticky)$/.test(getComputedStyle(h).position)&&(f=!0),h.scrollHeight<=h.clientHeight&&h.scrollWidth<=h.clientWidth){h=h.assignedSlot||h.parentNode;continue}let b=h.getBoundingClientRect();({scaleX:g,scaleY:m}=bl(h,b)),d={left:b.left,right:b.left+h.clientWidth*g,top:b.top,bottom:b.top+h.clientHeight*m}}let v=0,x=0;if(s=="nearest")e.top<d.top?(x=e.top-(d.top+r),t>0&&e.bottom>d.bottom+x&&(x=e.bottom-d.bottom+r)):e.bottom>d.bottom&&(x=e.bottom-d.bottom+r,t<0&&e.top-x<d.top&&(x=e.top-(d.top+r)));else{let b=e.bottom-e.top,k=d.bottom-d.top;x=(s=="center"&&b<=k?e.top+b/2-k/2:s=="start"||s=="center"&&t<0?e.top-r:e.bottom-k+r)-d.top}if(i=="nearest"?e.left<d.left?(v=e.left-(d.left+o),t>0&&e.right>d.right+v&&(v=e.right-d.right+o)):e.right>d.right&&(v=e.right-d.right+o,t<0&&e.left<d.left+v&&(v=e.left-(d.left+o))):v=(i=="center"?e.left+(e.right-e.left)/2-(d.right-d.left)/2:i=="start"==l?e.left-o:e.right-(d.right-d.left)+o)-d.left,v||x)if(p)c.scrollBy(v,x);else{let b=0,k=0;if(x){let _=h.scrollTop;h.scrollTop+=x/m,k=(h.scrollTop-_)*m}if(v){let _=h.scrollLeft;h.scrollLeft+=v/g,b=(h.scrollLeft-_)*g}e={left:e.left-b,top:e.top-k,right:e.right-b,bottom:e.bottom-k},b&&Math.abs(b-v)<1&&(i="nearest"),k&&Math.abs(k-x)<1&&(s="nearest")}if(p)break;(e.top<d.top||e.bottom>d.bottom||e.left<d.left||e.right>d.right)&&(e={left:Math.max(e.left,d.left),right:Math.min(e.right,d.right),top:Math.max(e.top,d.top),bottom:Math.min(e.bottom,d.bottom)}),h=h.assignedSlot||h.parentNode}else if(h.nodeType==11)h=h.host;else break}function Yf(n){let e=n.ownerDocument,t,i;for(let s=n.parentNode;s&&!(s==e.body||t&&i);)if(s.nodeType==1)!i&&s.scrollHeight>s.clientHeight&&(i=s),!t&&s.scrollWidth>s.clientWidth&&(t=s),s=s.assignedSlot||s.parentNode;else if(s.nodeType==11)s=s.host;else break;return{x:t,y:i}}class Kf{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:i}=e;this.set(t,Math.min(e.anchorOffset,t?ot(t):0),i,Math.min(e.focusOffset,i?ot(i):0))}set(e,t,i,s){this.anchorNode=e,this.anchorOffset=t,this.focusNode=i,this.focusOffset=s}}let jt=null;function yl(n){if(n.setActive)return n.setActive();if(jt)return n.focus(jt);let e=[];for(let t=n;t&&(e.push(t,t.scrollTop,t.scrollLeft),t!=t.ownerDocument);t=t.parentNode);if(n.focus(jt==null?{get preventScroll(){return jt={preventScroll:!0},!0}}:void 0),!jt){jt=!1;for(let t=0;t<e.length;){let i=e[t++],s=e[t++],o=e[t++];i.scrollTop!=s&&(i.scrollTop=s),i.scrollLeft!=o&&(i.scrollLeft=o)}}}let i2;function Ht(n,e,t=e){let i=i2||(i2=document.createRange());return i.setEnd(n,t),i.setStart(n,e),i}function Zt(n,e,t,i){let s={key:e,code:e,keyCode:t,which:t,cancelable:!0};i&&({altKey:s.altKey,ctrlKey:s.ctrlKey,shiftKey:s.shiftKey,metaKey:s.metaKey}=i);let o=new KeyboardEvent("keydown",s);o.synthetic=!0,n.dispatchEvent(o);let r=new KeyboardEvent("keyup",s);return r.synthetic=!0,n.dispatchEvent(r),o.defaultPrevented||r.defaultPrevented}function Xf(n){for(;n;){if(n&&(n.nodeType==9||n.nodeType==11&&n.host))return n;n=n.assignedSlot||n.parentNode}return null}function kl(n){for(;n.attributes.length;)n.removeAttributeNode(n.attributes[0])}function Qf(n,e){let t=e.focusNode,i=e.focusOffset;if(!t||e.anchorNode!=t||e.anchorOffset!=i)return!1;for(i=Math.min(i,ot(t));;)if(i){if(t.nodeType!=1)return!1;let s=t.childNodes[i-1];s.contentEditable=="false"?i--:(t=s,i=ot(t))}else{if(t==n)return!0;i=It(t),t=t.parentNode}}function Sl(n){return n.scrollTop>Math.max(1,n.scrollHeight-n.clientHeight-4)}function Cl(n,e){for(let t=n,i=e;;){if(t.nodeType==3&&i>0)return{node:t,offset:i};if(t.nodeType==1&&i>0){if(t.contentEditable=="false")return null;t=t.childNodes[i-1],i=ot(t)}else if(t.parentNode&&!$n(t))i=It(t),t=t.parentNode;else return null}}function _l(n,e){for(let t=n,i=e;;){if(t.nodeType==3&&i<t.nodeValue.length)return{node:t,offset:i};if(t.nodeType==1&&i<t.childNodes.length){if(t.contentEditable=="false")return null;t=t.childNodes[i],i=0}else if(t.parentNode&&!$n(t))i=It(t)+1,t=t.parentNode;else return null}}class we{constructor(e,t,i=!0){this.node=e,this.offset=t,this.precise=i}static before(e,t){return new we(e.parentNode,It(e),t)}static after(e,t){return new we(e.parentNode,It(e)+1,t)}}const oo=[];class X{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let t=this.posAtStart;for(let i of this.children){if(i==e)return t;t+=i.length+i.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}sync(e,t){if(this.flags&2){let i=this.dom,s=null,o;for(let r of this.children){if(r.flags&7){if(!r.dom&&(o=s?s.nextSibling:i.firstChild)){let l=X.get(o);(!l||!l.parent&&l.canReuseDOM(r))&&r.reuseDOM(o)}r.sync(e,t),r.flags&=-8}if(o=s?s.nextSibling:i.firstChild,t&&!t.written&&t.node==i&&o!=r.dom&&(t.written=!0),r.dom.parentNode==i)for(;o&&o!=r.dom;)o=n2(o);else i.insertBefore(r.dom,o);s=r.dom}for(o=s?s.nextSibling:i.firstChild,o&&t&&t.node==i&&(t.written=!0);o;)o=n2(o)}else if(this.flags&1)for(let i of this.children)i.flags&7&&(i.sync(e,t),i.flags&=-8)}reuseDOM(e){}localPosFromDOM(e,t){let i;if(e==this.dom)i=this.dom.childNodes[t];else{let s=ot(e)==0?0:t==0?-1:1;for(;;){let o=e.parentNode;if(o==this.dom)break;s==0&&o.firstChild!=o.lastChild&&(e==o.firstChild?s=-1:s=1),e=o}s<0?i=e:i=e.nextSibling}if(i==this.dom.firstChild)return 0;for(;i&&!X.get(i);)i=i.nextSibling;if(!i)return this.length;for(let s=0,o=0;;s++){let r=this.children[s];if(r.dom==i)return o;o+=r.length+r.breakAfter}}domBoundsAround(e,t,i=0){let s=-1,o=-1,r=-1,l=-1;for(let a=0,c=i,h=i;a<this.children.length;a++){let f=this.children[a],d=c+f.length;if(c<e&&d>t)return f.domBoundsAround(e,t,c);if(d>=e&&s==-1&&(s=a,o=c),c>t&&f.dom.parentNode==this.dom){r=a,l=h;break}h=d,c=d+f.breakAfter}return{from:o,to:l<0?i+this.length:l,startDOM:(s?this.children[s-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:r<this.children.length&&r>=0?this.children[r].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let t=this.parent;t;t=t.parent){if(e&&(t.flags|=2),t.flags&1)return;t.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,this.flags&7&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let t=e.parent;if(!t)return e;e=t}}replaceChildren(e,t,i=oo){this.markDirty();for(let s=e;s<t;s++){let o=this.children[s];o.parent==this&&i.indexOf(o)<0&&o.destroy()}i.length<250?this.children.splice(e,t-e,...i):this.children=[].concat(this.children.slice(0,e),i,this.children.slice(t));for(let s=0;s<i.length;s++)i[s].setParent(this)}ignoreMutation(e){return!1}ignoreEvent(e){return!1}childCursor(e=this.length){return new Ol(this.children,e,this.children.length)}childPos(e,t=1){return this.childCursor().findPos(e,t)}toString(){let e=this.constructor.name.replace("View","");return e+(this.children.length?"("+this.children.join()+")":this.length?"["+(e=="Text"?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}static get(e){return e.cmView}get isEditable(){return!0}get isWidget(){return!1}get isHidden(){return!1}merge(e,t,i,s,o,r){return!1}become(e){return!1}canReuseDOM(e){return e.constructor==this.constructor&&!((this.flags|e.flags)&8)}getSide(){return 0}destroy(){for(let e of this.children)e.parent==this&&e.destroy();this.parent=null}}X.prototype.breakAfter=0;function n2(n){let e=n.nextSibling;return n.parentNode.removeChild(n),e}class Ol{constructor(e,t,i){this.children=e,this.pos=t,this.i=i,this.off=0}findPos(e,t=1){for(;;){if(e>this.pos||e==this.pos&&(t>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let i=this.children[--this.i];this.pos-=i.length+i.breakAfter}}}function Ml(n,e,t,i,s,o,r,l,a){let{children:c}=n,h=c.length?c[e]:null,f=o.length?o[o.length-1]:null,d=f?f.breakAfter:r;if(!(e==i&&h&&!r&&!d&&o.length<2&&h.merge(t,s,o.length?f:null,t==0,l,a))){if(i<c.length){let p=c[i];p&&(s<p.length||p.breakAfter&&(f!=null&&f.breakAfter))?(e==i&&(p=p.split(s),s=0),!d&&f&&p.merge(0,s,f,!0,0,a)?o[o.length-1]=p:((s||p.children.length&&!p.children[0].length)&&p.merge(0,s,null,!1,0,a),o.push(p))):p!=null&&p.breakAfter&&(f?f.breakAfter=1:r=1),i++}for(h&&(h.breakAfter=r,t>0&&(!r&&o.length&&h.merge(t,h.length,o[0],!1,l,0)?h.breakAfter=o.shift().breakAfter:(t<h.length||h.children.length&&h.children[h.children.length-1].length==0)&&h.merge(t,h.length,null,!1,l,0),e++));e<i&&o.length;)if(c[i-1].become(o[o.length-1]))i--,o.pop(),a=o.length?0:l;else if(c[e].become(o[0]))e++,o.shift(),l=o.length?0:a;else break;!o.length&&e&&i<c.length&&!c[e-1].breakAfter&&c[i].merge(0,0,c[e-1],!1,l,a)&&e--,(e<i||o.length)&&n.replaceChildren(e,i,o)}}function Dl(n,e,t,i,s,o){let r=n.childCursor(),{i:l,off:a}=r.findPos(t,1),{i:c,off:h}=r.findPos(e,-1),f=e-t;for(let d of i)f+=d.length;n.length+=f,Ml(n,c,h,l,a,i,0,s,o)}let Me=typeof navigator<"u"?navigator:{userAgent:"",vendor:"",platform:""},b0=typeof document<"u"?document:{documentElement:{style:{}}};const y0=/Edge\/(\d+)/.exec(Me.userAgent),Tl=/MSIE \d/.test(Me.userAgent),k0=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Me.userAgent),ms=!!(Tl||k0||y0),s2=!ms&&/gecko\/(\d+)/i.test(Me.userAgent),Bs=!ms&&/Chrome\/(\d+)/.exec(Me.userAgent),Jf="webkitFontSmoothing"in b0.documentElement.style,Al=!ms&&/Apple Computer/.test(Me.vendor),o2=Al&&(/Mobile\/\w+/.test(Me.userAgent)||Me.maxTouchPoints>2);var V={mac:o2||/Mac/.test(Me.platform),windows:/Win/.test(Me.platform),linux:/Linux|X11/.test(Me.platform),ie:ms,ie_version:Tl?b0.documentMode||6:k0?+k0[1]:y0?+y0[1]:0,gecko:s2,gecko_version:s2?+(/Firefox\/(\d+)/.exec(Me.userAgent)||[0,0])[1]:0,chrome:!!Bs,chrome_version:Bs?+Bs[1]:0,ios:o2,android:/Android\b/.test(Me.userAgent),safari:Al,webkit_version:Jf?+(/\bAppleWebKit\/(\d+)/.exec(Me.userAgent)||[0,0])[1]:0,tabSize:b0.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const Zf=256;class je extends X{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,t){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(t&&t.node==this.dom&&(t.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){e.nodeType==3&&this.createDOM(e)}merge(e,t,i){return this.flags&8||i&&(!(i instanceof je)||this.length-(t-e)+i.length>Zf||i.flags&8)?!1:(this.text=this.text.slice(0,e)+(i?i.text:"")+this.text.slice(t),this.markDirty(),!0)}split(e){let t=new je(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),t.flags|=this.flags&8,t}localPosFromDOM(e,t){return e==this.dom?t:t?this.text.length:0}domAtPos(e){return new we(this.dom,e)}domBoundsAround(e,t,i){return{from:i,to:i+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,t){return ed(this.dom,e,t)}}class ft extends X{constructor(e,t=[],i=0){super(),this.mark=e,this.children=t,this.length=i;for(let s of t)s.setParent(this)}setAttrs(e){if(kl(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let t in this.mark.attrs)e.setAttribute(t,this.mark.attrs[t]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!((this.flags|e.flags)&8)}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,t){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,t)}merge(e,t,i,s,o,r){return i&&(!(i instanceof ft&&i.mark.eq(this.mark))||e&&o<=0||t<this.length&&r<=0)?!1:(Dl(this,e,t,i?i.children.slice():[],o-1,r-1),this.markDirty(),!0)}split(e){let t=[],i=0,s=-1,o=0;for(let l of this.children){let a=i+l.length;a>e&&t.push(i<e?l.split(e-i):l),s<0&&i>=e&&(s=o),i=a,o++}let r=this.length-e;return this.length=e,s>-1&&(this.children.length=s,this.markDirty()),new ft(this.mark,t,r)}domAtPos(e){return Bl(this,e)}coordsAt(e,t){return El(this,e,t)}}function ed(n,e,t){let i=n.nodeValue.length;e>i&&(e=i);let s=e,o=e,r=0;e==0&&t<0||e==i&&t>=0?V.chrome||V.gecko||(e?(s--,r=1):o<i&&(o++,r=-1)):t<0?s--:o<i&&o++;let l=Ht(n,s,o).getClientRects();if(!l.length)return null;let a=l[(r?r<0:t>=0)?0:l.length-1];return V.safari&&!r&&a.width==0&&(a=Array.prototype.find.call(l,c=>c.width)||a),r?gs(a,r<0):a||null}class xt extends X{static create(e,t,i){return new xt(e,t,i)}constructor(e,t,i){super(),this.widget=e,this.length=t,this.side=i,this.prevWidget=null}split(e){let t=xt.create(this.widget,this.length-e,this.side);return this.length-=e,t}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(e,t,i,s,o,r){return i&&(!(i instanceof xt)||!this.widget.compare(i.widget)||e>0&&o<=0||t<this.length&&r<=0)?!1:(this.length=e+(i?i.length:0)+(this.length-t),!0)}become(e){return e instanceof xt&&e.side==this.side&&this.widget.constructor==e.widget.constructor?(this.widget.compare(e.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,!0):!1}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get overrideDOMText(){if(this.length==0)return q.empty;let e=this;for(;e.parent;)e=e.parent;let{view:t}=e,i=t&&t.state.doc,s=this.posAtStart;return i?i.slice(s,s+this.length):q.empty}domAtPos(e){return(this.length?e==0:this.side>0)?we.before(this.dom):we.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,t){let i=this.widget.coordsAt(this.dom,e,t);if(i)return i;let s=this.dom.getClientRects(),o=null;if(!s.length)return null;let r=this.side?this.side<0:e>0;for(let l=r?s.length-1:0;o=s[l],!(e>0?l==0:l==s.length-1||o.top<o.bottom);l+=r?-1:1);return gs(o,!r)}get isEditable(){return!1}get isWidget(){return!0}get isHidden(){return this.widget.isHidden}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class oi extends X{constructor(e){super(),this.side=e}get length(){return 0}merge(){return!1}become(e){return e instanceof oi&&e.side==this.side}split(){return new oi(this.side)}sync(){if(!this.dom){let e=document.createElement("img");e.className="cm-widgetBuffer",e.setAttribute("aria-hidden","true"),this.setDOM(e)}}getSide(){return this.side}domAtPos(e){return this.side>0?we.before(this.dom):we.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return q.empty}get isHidden(){return!0}}je.prototype.children=xt.prototype.children=oi.prototype.children=oo;function Bl(n,e){let t=n.dom,{children:i}=n,s=0;for(let o=0;s<i.length;s++){let r=i[s],l=o+r.length;if(!(l==o&&r.getSide()<=0)){if(e>o&&e<l&&r.dom.parentNode==t)return r.domAtPos(e-o);if(e<=o)break;o=l}}for(let o=s;o>0;o--){let r=i[o-1];if(r.dom.parentNode==t)return r.domAtPos(r.length)}for(let o=s;o<i.length;o++){let r=i[o];if(r.dom.parentNode==t)return r.domAtPos(0)}return new we(t,0)}function Pl(n,e,t){let i,{children:s}=n;t>0&&e instanceof ft&&s.length&&(i=s[s.length-1])instanceof ft&&i.mark.eq(e.mark)?Pl(i,e.children[0],t-1):(s.push(e),e.setParent(n)),n.length+=e.length}function El(n,e,t){let i=null,s=-1,o=null,r=-1;function l(c,h){for(let f=0,d=0;f<c.children.length&&d<=h;f++){let p=c.children[f],g=d+p.length;g>=h&&(p.children.length?l(p,h-d):(!o||o.isHidden&&(t>0||id(o,p)))&&(g>h||d==g&&p.getSide()>0)?(o=p,r=h-d):(d<h||d==g&&p.getSide()<0&&!p.isHidden)&&(i=p,s=h-d)),d=g}}l(n,e);let a=(t<0?i:o)||i||o;return a?a.coordsAt(Math.max(0,a==i?s:r),t):td(n)}function td(n){let e=n.dom.lastChild;if(!e)return n.dom.getBoundingClientRect();let t=Li(e);return t[t.length-1]||null}function id(n,e){let t=n.coordsAt(0,1),i=e.coordsAt(0,1);return t&&i&&i.top<t.bottom}function S0(n,e){for(let t in n)t=="class"&&e.class?e.class+=" "+n.class:t=="style"&&e.style?e.style+=";"+n.style:e[t]=n[t];return e}const r2=Object.create(null);function Wn(n,e,t){if(n==e)return!0;n||(n=r2),e||(e=r2);let i=Object.keys(n),s=Object.keys(e);if(i.length-(t&&i.indexOf(t)>-1?1:0)!=s.length-(t&&s.indexOf(t)>-1?1:0))return!1;for(let o of i)if(o!=t&&(s.indexOf(o)==-1||n[o]!==e[o]))return!1;return!0}function C0(n,e,t){let i=!1;if(e)for(let s in e)t&&s in t||(i=!0,s=="style"?n.style.cssText="":n.removeAttribute(s));if(t)for(let s in t)e&&e[s]==t[s]||(i=!0,s=="style"?n.style.cssText=t[s]:n.setAttribute(s,t[s]));return i}function nd(n){let e=Object.create(null);for(let t=0;t<n.attributes.length;t++){let i=n.attributes[t];e[i.name]=i.value}return e}class Dt{eq(e){return!1}updateDOM(e,t){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,t,i){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}}var ke=function(n){return n[n.Text=0]="Text",n[n.WidgetBefore=1]="WidgetBefore",n[n.WidgetAfter=2]="WidgetAfter",n[n.WidgetRange=3]="WidgetRange",n}(ke||(ke={}));class I extends Rt{constructor(e,t,i,s){super(),this.startSide=e,this.endSide=t,this.widget=i,this.spec=s}get heightRelevant(){return!1}static mark(e){return new Yi(e)}static widget(e){let t=Math.max(-1e4,Math.min(1e4,e.side||0)),i=!!e.block;return t+=i&&!e.inlineOrder?t>0?3e8:-4e8:t>0?1e8:-1e8,new _t(e,t,t,i,e.widget||null,!1)}static replace(e){let t=!!e.block,i,s;if(e.isBlockGap)i=-5e8,s=4e8;else{let{start:o,end:r}=Vl(e,t);i=(o?t?-3e8:-1:5e8)-1,s=(r?t?2e8:1:-6e8)+1}return new _t(e,i,s,t,e.widget||null,!0)}static line(e){return new Ki(e)}static set(e,t=!1){return j.of(e,t)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}I.none=j.empty;class Yi extends I{constructor(e){let{start:t,end:i}=Vl(e);super(t?-1:5e8,i?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var t,i;return this==e||e instanceof Yi&&this.tagName==e.tagName&&(this.class||((t=this.attrs)===null||t===void 0?void 0:t.class))==(e.class||((i=e.attrs)===null||i===void 0?void 0:i.class))&&Wn(this.attrs,e.attrs,"class")}range(e,t=e){if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}}Yi.prototype.point=!1;class Ki extends I{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof Ki&&this.spec.class==e.spec.class&&Wn(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}Ki.prototype.mapMode=ye.TrackBefore;Ki.prototype.point=!0;class _t extends I{constructor(e,t,i,s,o,r){super(t,i,o,e),this.block=s,this.isReplace=r,this.mapMode=s?t<=0?ye.TrackBefore:ye.TrackAfter:ye.TrackDel}get type(){return this.startSide!=this.endSide?ke.WidgetRange:this.startSide<=0?ke.WidgetBefore:ke.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof _t&&sd(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}_t.prototype.point=!0;function Vl(n,e=!1){let{inclusiveStart:t,inclusiveEnd:i}=n;return t==null&&(t=n.inclusive),i==null&&(i=n.inclusive),{start:t??e,end:i??e}}function sd(n,e){return n==e||!!(n&&e&&n.compare(e))}function Tn(n,e,t,i=0){let s=t.length-1;s>=0&&t[s]+i>=n?t[s]=Math.max(t[s],e):t.push(n,e)}class se extends X{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(e,t,i,s,o,r){if(i){if(!(i instanceof se))return!1;this.dom||i.transferDOM(this)}return s&&this.setDeco(i?i.attrs:null),Dl(this,e,t,i?i.children.slice():[],o,r),!0}split(e){let t=new se;if(t.breakAfter=this.breakAfter,this.length==0)return t;let{i,off:s}=this.childPos(e);s&&(t.append(this.children[i].split(s),0),this.children[i].merge(s,this.children[i].length,null,!1,0,0),i++);for(let o=i;o<this.children.length;o++)t.append(this.children[o],0);for(;i>0&&this.children[i-1].length==0;)this.children[--i].destroy();return this.children.length=i,this.markDirty(),this.length=e,t}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){Wn(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,t){Pl(this,e,t)}addLineDeco(e){let t=e.spec.attributes,i=e.spec.class;t&&(this.attrs=S0(t,this.attrs||{})),i&&(this.attrs=S0({class:i},this.attrs||{}))}domAtPos(e){return Bl(this,e)}reuseDOM(e){e.nodeName=="DIV"&&(this.setDOM(e),this.flags|=6)}sync(e,t){var i;this.dom?this.flags&4&&(kl(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(C0(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,t);let s=this.dom.lastChild;for(;s&&X.get(s)instanceof ft;)s=s.lastChild;if(!s||!this.length||s.nodeName!="BR"&&((i=X.get(s))===null||i===void 0?void 0:i.isEditable)==!1&&(!V.ios||!this.children.some(o=>o instanceof je))){let o=document.createElement("BR");o.cmIgnore=!0,this.dom.appendChild(o)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let e=0,t;for(let i of this.children){if(!(i instanceof je)||/[^ -~]/.test(i.text))return null;let s=Li(i.dom);if(s.length!=1)return null;e+=s[0].width,t=s[0].height}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length,textHeight:t}:null}coordsAt(e,t){let i=El(this,e,t);if(!this.children.length&&i&&this.parent){let{heightOracle:s}=this.parent.view.viewState,o=i.bottom-i.top;if(Math.abs(o-s.lineHeight)<2&&s.textHeight<o){let r=(o-s.textHeight)/2;return{top:i.top+r,bottom:i.bottom-r,left:i.left,right:i.left}}}return i}become(e){return e instanceof se&&this.children.length==0&&e.children.length==0&&Wn(this.attrs,e.attrs)&&this.breakAfter==e.breakAfter}covers(){return!0}static find(e,t){for(let i=0,s=0;i<e.children.length;i++){let o=e.children[i],r=s+o.length;if(r>=t){if(o instanceof se)return o;if(r>t)break}s=r+o.breakAfter}return null}}class ht extends X{constructor(e,t,i){super(),this.widget=e,this.length=t,this.deco=i,this.breakAfter=0,this.prevWidget=null}merge(e,t,i,s,o,r){return i&&(!(i instanceof ht)||!this.widget.compare(i.widget)||e>0&&o<=0||t<this.length&&r<=0)?!1:(this.length=e+(i?i.length:0)+(this.length-t),!0)}domAtPos(e){return e==0?we.before(this.dom):we.after(this.dom,e==this.length)}split(e){let t=this.length-e;this.length=e;let i=new ht(this.widget,t,this.deco);return i.breakAfter=this.breakAfter,i}get children(){return oo}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}get overrideDOMText(){return this.parent?this.parent.view.state.doc.slice(this.posAtStart,this.posAtEnd):q.empty}domBoundsAround(){return null}become(e){return e instanceof ht&&e.widget.constructor==this.widget.constructor?(e.widget.compare(this.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,this.deco=e.deco,this.breakAfter=e.breakAfter,!0):!1}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get isEditable(){return!1}get isWidget(){return!0}coordsAt(e,t){let i=this.widget.coordsAt(this.dom,e,t);return i||(this.widget instanceof _0?null:gs(this.dom.getBoundingClientRect(),this.length?e==0:t<=0))}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}covers(e){let{startSide:t,endSide:i}=this.deco;return t==i?!1:e<0?t<0:i>0}}class _0 extends Dt{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return e.className="cm-gap",this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}}class Mi{constructor(e,t,i,s){this.doc=e,this.pos=t,this.end=i,this.disallowBlockEffectsFor=s,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=t}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof ht&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new se),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(on(new oi(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(e&&this.content.length&&this.content[this.content.length-1]instanceof ht)&&this.getLine()}buildText(e,t,i){for(;e>0;){if(this.textOff==this.text.length){let{value:o,lineBreak:r,done:l}=this.cursor.next(this.skip);if(this.skip=0,l)throw new Error("Ran out of text content when drawing inline views");if(r){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}else this.text=o,this.textOff=0}let s=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(t.slice(t.length-i)),this.getLine().append(on(new je(this.text.slice(this.textOff,this.textOff+s)),t),i),this.atCursorPos=!0,this.textOff+=s,e-=s,i=0}}span(e,t,i,s){this.buildText(t-e,i,s),this.pos=t,this.openStart<0&&(this.openStart=s)}point(e,t,i,s,o,r){if(this.disallowBlockEffectsFor[r]&&i instanceof _t){if(i.block)throw new RangeError("Block decorations may not be specified via plugins");if(t>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let l=t-e;if(i instanceof _t)if(i.block)i.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new ht(i.widget||ri.block,l,i));else{let a=xt.create(i.widget||ri.inline,l,l?0:i.startSide),c=this.atCursorPos&&!a.isEditable&&o<=s.length&&(e<t||i.startSide>0),h=!a.isEditable&&(e<t||o>s.length||i.startSide<=0),f=this.getLine();this.pendingBuffer==2&&!c&&!a.isEditable&&(this.pendingBuffer=0),this.flushBuffer(s),c&&(f.append(on(new oi(1),s),o),o=s.length+Math.max(0,o-s.length)),f.append(on(a,s),o),this.atCursorPos=h,this.pendingBuffer=h?e<t||o>s.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=s.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(i);l&&(this.textOff+l<=this.text.length?this.textOff+=l:(this.skip+=l-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=t),this.openStart<0&&(this.openStart=o)}static build(e,t,i,s,o){let r=new Mi(e,t,i,o);return r.openEnd=j.spans(s,t,i,r),r.openStart<0&&(r.openStart=r.openEnd),r.finish(r.openEnd),r}}function on(n,e){for(let t of e)n=new ft(t,[n],n.length);return n}class ri extends Dt{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}ri.inline=new ri("span");ri.block=new ri("div");var Z=function(n){return n[n.LTR=0]="LTR",n[n.RTL=1]="RTL",n}(Z||(Z={}));const $t=Z.LTR,ro=Z.RTL;function zl(n){let e=[];for(let t=0;t<n.length;t++)e.push(1<<+n[t]);return e}const od=zl("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),rd=zl("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),O0=Object.create(null),Ke=[];for(let n of["()","[]","{}"]){let e=n.charCodeAt(0),t=n.charCodeAt(1);O0[e]=t,O0[t]=-e}function Ll(n){return n<=247?od[n]:1424<=n&&n<=1524?2:1536<=n&&n<=1785?rd[n-1536]:1774<=n&&n<=2220?4:8192<=n&&n<=8204?256:64336<=n&&n<=65023?4:1}const ld=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class bt{get dir(){return this.level%2?ro:$t}constructor(e,t,i){this.from=e,this.to=t,this.level=i}side(e,t){return this.dir==t==e?this.to:this.from}forward(e,t){return e==(this.dir==t)}static find(e,t,i,s){let o=-1;for(let r=0;r<e.length;r++){let l=e[r];if(l.from<=t&&l.to>=t){if(l.level==i)return r;(o<0||(s!=0?s<0?l.from<t:l.to>t:e[o].level>l.level))&&(o=r)}}if(o<0)throw new RangeError("Index out of range");return o}}function Nl(n,e){if(n.length!=e.length)return!1;for(let t=0;t<n.length;t++){let i=n[t],s=e[t];if(i.from!=s.from||i.to!=s.to||i.direction!=s.direction||!Nl(i.inner,s.inner))return!1}return!0}const K=[];function ad(n,e,t,i,s){for(let o=0;o<=i.length;o++){let r=o?i[o-1].to:e,l=o<i.length?i[o].from:t,a=o?256:s;for(let c=r,h=a,f=a;c<l;c++){let d=Ll(n.charCodeAt(c));d==512?d=h:d==8&&f==4&&(d=16),K[c]=d==4?2:d,d&7&&(f=d),h=d}for(let c=r,h=a,f=a;c<l;c++){let d=K[c];if(d==128)c<l-1&&h==K[c+1]&&h&24?d=K[c]=h:K[c]=256;else if(d==64){let p=c+1;for(;p<l&&K[p]==64;)p++;let g=c&&h==8||p<t&&K[p]==8?f==1?1:8:256;for(let m=c;m<p;m++)K[m]=g;c=p-1}else d==8&&f==1&&(K[c]=1);h=d,d&7&&(f=d)}}}function cd(n,e,t,i,s){let o=s==1?2:1;for(let r=0,l=0,a=0;r<=i.length;r++){let c=r?i[r-1].to:e,h=r<i.length?i[r].from:t;for(let f=c,d,p,g;f<h;f++)if(p=O0[d=n.charCodeAt(f)])if(p<0){for(let m=l-3;m>=0;m-=3)if(Ke[m+1]==-p){let v=Ke[m+2],x=v&2?s:v&4?v&1?o:s:0;x&&(K[f]=K[Ke[m]]=x),l=m;break}}else{if(Ke.length==189)break;Ke[l++]=f,Ke[l++]=d,Ke[l++]=a}else if((g=K[f])==2||g==1){let m=g==s;a=m?0:1;for(let v=l-3;v>=0;v-=3){let x=Ke[v+2];if(x&2)break;if(m)Ke[v+2]|=2;else{if(x&4)break;Ke[v+2]|=4}}}}}function hd(n,e,t,i){for(let s=0,o=i;s<=t.length;s++){let r=s?t[s-1].to:n,l=s<t.length?t[s].from:e;for(let a=r;a<l;){let c=K[a];if(c==256){let h=a+1;for(;;)if(h==l){if(s==t.length)break;h=t[s++].to,l=s<t.length?t[s].from:e}else if(K[h]==256)h++;else break;let f=o==1,d=(h<e?K[h]:i)==1,p=f==d?f?1:2:i;for(let g=h,m=s,v=m?t[m-1].to:n;g>a;)g==v&&(g=t[--m].from,v=m?t[m-1].to:n),K[--g]=p;a=h}else o=c,a++}}}function M0(n,e,t,i,s,o,r){let l=i%2?2:1;if(i%2==s%2)for(let a=e,c=0;a<t;){let h=!0,f=!1;if(c==o.length||a<o[c].from){let m=K[a];m!=l&&(h=!1,f=m==16)}let d=!h&&l==1?[]:null,p=h?i:i+1,g=a;e:for(;;)if(c<o.length&&g==o[c].from){if(f)break e;let m=o[c];if(!h)for(let v=m.to,x=c+1;;){if(v==t)break e;if(x<o.length&&o[x].from==v)v=o[x++].to;else{if(K[v]==l)break e;break}}if(c++,d)d.push(m);else{m.from>a&&r.push(new bt(a,m.from,p));let v=m.direction==$t!=!(p%2);D0(n,v?i+1:i,s,m.inner,m.from,m.to,r),a=m.to}g=m.to}else{if(g==t||(h?K[g]!=l:K[g]==l))break;g++}d?M0(n,a,g,i+1,s,d,r):a<g&&r.push(new bt(a,g,p)),a=g}else for(let a=t,c=o.length;a>e;){let h=!0,f=!1;if(!c||a>o[c-1].to){let m=K[a-1];m!=l&&(h=!1,f=m==16)}let d=!h&&l==1?[]:null,p=h?i:i+1,g=a;e:for(;;)if(c&&g==o[c-1].to){if(f)break e;let m=o[--c];if(!h)for(let v=m.from,x=c;;){if(v==e)break e;if(x&&o[x-1].to==v)v=o[--x].from;else{if(K[v-1]==l)break e;break}}if(d)d.push(m);else{m.to<a&&r.push(new bt(m.to,a,p));let v=m.direction==$t!=!(p%2);D0(n,v?i+1:i,s,m.inner,m.from,m.to,r),a=m.from}g=m.from}else{if(g==e||(h?K[g-1]!=l:K[g-1]==l))break;g--}d?M0(n,g,a,i+1,s,d,r):g<a&&r.push(new bt(g,a,p)),a=g}}function D0(n,e,t,i,s,o,r){let l=e%2?2:1;ad(n,s,o,i,l),cd(n,s,o,i,l),hd(s,o,i,l),M0(n,s,o,e,t,i,r)}function ud(n,e,t){if(!n)return[new bt(0,0,e==ro?1:0)];if(e==$t&&!t.length&&!ld.test(n))return Rl(n.length);if(t.length)for(;n.length>K.length;)K[K.length]=256;let i=[],s=e==$t?0:1;return D0(n,s,s,t,0,n.length,i),i}function Rl(n){return[new bt(0,n,0)]}let Il="";function fd(n,e,t,i,s){var o;let r=i.head-n.from,l=bt.find(e,r,(o=i.bidiLevel)!==null&&o!==void 0?o:-1,i.assoc),a=e[l],c=a.side(s,t);if(r==c){let d=l+=s?1:-1;if(d<0||d>=e.length)return null;a=e[l=d],r=a.side(!s,t),c=a.side(s,t)}let h=ge(n.text,r,a.forward(s,t));(h<a.from||h>a.to)&&(h=c),Il=n.text.slice(Math.min(r,h),Math.max(r,h));let f=l==(s?e.length-1:0)?null:e[l+(s?1:-1)];return f&&h==c&&f.level+(s?0:1)<a.level?M.cursor(f.side(!s,t)+n.from,f.forward(s,t)?1:-1,f.level):M.cursor(h+n.from,a.forward(s,t)?-1:1,a.level)}function dd(n,e,t){for(let i=e;i<t;i++){let s=Ll(n.charCodeAt(i));if(s==1)return $t;if(s==2||s==4)return ro}return $t}const Hl=L.define(),$l=L.define(),Wl=L.define(),Fl=L.define(),T0=L.define(),Gl=L.define(),jl=L.define(),lo=L.define(),ao=L.define(),ql=L.define({combine:n=>n.some(e=>e)}),Ul=L.define({combine:n=>n.some(e=>e)}),Yl=L.define();class ei{constructor(e,t="nearest",i="nearest",s=5,o=5,r=!1){this.range=e,this.y=t,this.x=i,this.yMargin=s,this.xMargin=o,this.isSnapshot=r}map(e){return e.empty?this:new ei(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new ei(M.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const rn=$.define({map:(n,e)=>n.map(e)}),Kl=$.define();function Te(n,e,t){let i=n.facet(Fl);i.length?i[0](e):window.onerror&&window.onerror(String(e),t,void 0,void 0,e)||(t?console.error(t+":",e):console.error(e))}const ct=L.define({combine:n=>n.length?n[0]:!0});let pd=0;const Yt=L.define({combine(n){return n.filter((e,t)=>{for(let i=0;i<t;i++)if(n[i].plugin==e.plugin)return!1;return!0})}});class re{constructor(e,t,i,s,o){this.id=e,this.create=t,this.domEventHandlers=i,this.domEventObservers=s,this.baseExtensions=o(this),this.extension=this.baseExtensions.concat(Yt.of({plugin:this,arg:void 0}))}of(e){return this.baseExtensions.concat(Yt.of({plugin:this,arg:e}))}static define(e,t){const{eventHandlers:i,eventObservers:s,provide:o,decorations:r}=t||{};return new re(pd++,e,i,s,l=>{let a=[];return r&&a.push(Ni.of(c=>{let h=c.plugin(l);return h?r(h):I.none})),o&&a.push(o(l)),a})}static fromClass(e,t){return re.define((i,s)=>new e(i,s),t)}}class Ps{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}get plugin(){return this.spec&&this.spec.plugin}update(e){if(this.value){if(this.mustUpdate){let t=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(t)}catch(i){if(Te(t.state,i,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.plugin.create(e,this.spec.arg)}catch(t){Te(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(!((t=this.value)===null||t===void 0)&&t.destroy)try{this.value.destroy()}catch(i){Te(e.state,i,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const Xl=L.define(),co=L.define(),Ni=L.define(),Ql=L.define(),ho=L.define(),Jl=L.define();function l2(n,e){let t=n.state.facet(Jl);if(!t.length)return t;let i=t.map(o=>o instanceof Function?o(n):o),s=[];return j.spans(i,e.from,e.to,{point(){},span(o,r,l,a){let c=o-e.from,h=r-e.from,f=s;for(let d=l.length-1;d>=0;d--,a--){let p=l[d].spec.bidiIsolate,g;if(p==null&&(p=dd(e.text,c,h)),a>0&&f.length&&(g=f[f.length-1]).to==c&&g.direction==p)g.to=h,f=g.inner;else{let m={from:c,to:h,direction:p,inner:[]};f.push(m),f=m.inner}}}}),s}const Zl=L.define();function uo(n){let e=0,t=0,i=0,s=0;for(let o of n.state.facet(Zl)){let r=o(n);r&&(r.left!=null&&(e=Math.max(e,r.left)),r.right!=null&&(t=Math.max(t,r.right)),r.top!=null&&(i=Math.max(i,r.top)),r.bottom!=null&&(s=Math.max(s,r.bottom)))}return{left:e,right:t,top:i,bottom:s}}const bi=L.define();class He{constructor(e,t,i,s){this.fromA=e,this.toA=t,this.fromB=i,this.toB=s}join(e){return new He(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,i=this;for(;t>0;t--){let s=e[t-1];if(!(s.fromA>i.toA)){if(s.toA<i.fromA)break;i=i.join(s),e.splice(t-1,1)}}return e.splice(t,0,i),e}static extendWithRanges(e,t){if(t.length==0)return e;let i=[];for(let s=0,o=0,r=0,l=0;;s++){let a=s==e.length?null:e[s],c=r-l,h=a?a.fromB:1e9;for(;o<t.length&&t[o]<h;){let f=t[o],d=t[o+1],p=Math.max(l,f),g=Math.min(h,d);if(p<=g&&new He(p+c,g+c,p,g).addToSet(i),d>h)break;o+=2}if(!a)return i;new He(a.fromA,a.toA,a.fromB,a.toB).addToSet(i),r=a.toA,l=a.toB}}}class Fn{constructor(e,t,i){this.view=e,this.state=t,this.transactions=i,this.flags=0,this.startState=e.state,this.changes=le.empty(this.startState.doc.length);for(let o of i)this.changes=this.changes.compose(o.changes);let s=[];this.changes.iterChangedRanges((o,r,l,a)=>s.push(new He(o,r,l,a))),this.changedRanges=s}static create(e,t,i){return new Fn(e,t,i)}get viewportChanged(){return(this.flags&4)>0}get viewportMoved(){return(this.flags&8)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&18)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}class a2 extends X{get length(){return this.view.state.doc.length}constructor(e){super(),this.view=e,this.decorations=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.editContextFormatting=I.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new se],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new He(0,0,0,e.state.doc.length)],0,null)}update(e){var t;let i=e.changedRanges;this.minWidth>0&&i.length&&(i.every(({fromA:c,toA:h})=>h<this.minWidthFrom||c>this.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(e);let s=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&(!((t=this.domChanged)===null||t===void 0)&&t.newSel?s=this.domChanged.newSel.head:!yd(e.changes,this.hasComposition)&&!e.selectionSet&&(s=e.state.selection.main.head));let o=s>-1?md(this.view,e.changes,s):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:c,to:h}=this.hasComposition;i=new He(c,h,e.changes.mapPos(c,-1),e.changes.mapPos(h,1)).addToSet(i.slice())}this.hasComposition=o?{from:o.range.fromB,to:o.range.toB}:null,(V.ie||V.chrome)&&!o&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let r=this.decorations,l=this.updateDeco(),a=xd(r,l,e.changes);return i=He.extendWithRanges(i,a),!(this.flags&7)&&i.length==0?!1:(this.updateInner(i,e.startState.doc.length,o),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t,i){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,t,i);let{observer:s}=this.view;s.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let r=V.chrome||V.ios?{node:s.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,r),this.flags&=-8,r&&(r.written||s.selectionRange.focusNode!=r.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(r=>r.flags&=-9);let o=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let r of this.children)r instanceof ht&&r.widget instanceof _0&&o.push(r.dom);s.updateGaps(o)}updateChildren(e,t,i){let s=i?i.range.addToSet(e.slice()):e,o=this.childCursor(t);for(let r=s.length-1;;r--){let l=r>=0?s[r]:null;if(!l)break;let{fromA:a,toA:c,fromB:h,toB:f}=l,d,p,g,m;if(i&&i.range.fromB<f&&i.range.toB>h){let _=Mi.build(this.view.state.doc,h,i.range.fromB,this.decorations,this.dynamicDecorationMap),y=Mi.build(this.view.state.doc,i.range.toB,f,this.decorations,this.dynamicDecorationMap);p=_.breakAtStart,g=_.openStart,m=y.openEnd;let S=this.compositionView(i);y.breakAtStart?S.breakAfter=1:y.content.length&&S.merge(S.length,S.length,y.content[0],!1,y.openStart,0)&&(S.breakAfter=y.content[0].breakAfter,y.content.shift()),_.content.length&&S.merge(0,0,_.content[_.content.length-1],!0,0,_.openEnd)&&_.content.pop(),d=_.content.concat(S).concat(y.content)}else({content:d,breakAtStart:p,openStart:g,openEnd:m}=Mi.build(this.view.state.doc,h,f,this.decorations,this.dynamicDecorationMap));let{i:v,off:x}=o.findPos(c,1),{i:b,off:k}=o.findPos(a,-1);Ml(this,b,k,v,x,d,p,g,m)}i&&this.fixCompositionDOM(i)}updateEditContextFormatting(e){this.editContextFormatting=this.editContextFormatting.map(e.changes);for(let t of e.transactions)for(let i of t.effects)i.is(Kl)&&(this.editContextFormatting=i.value)}compositionView(e){let t=new je(e.text.nodeValue);t.flags|=8;for(let{deco:s}of e.marks)t=new ft(s,[t],t.length);let i=new se;return i.append(t,0),i}fixCompositionDOM(e){let t=(o,r)=>{r.flags|=8|(r.children.some(a=>a.flags&7)?1:0),this.markedForComposition.add(r);let l=X.get(o);l&&l!=r&&(l.dom=null),r.setDOM(o)},i=this.childPos(e.range.fromB,1),s=this.children[i.i];t(e.line,s);for(let o=e.marks.length-1;o>=-1;o--)i=s.childPos(i.off,1),s=s.children[i.i],t(o>=0?e.marks[o].node:e.text,s)}updateSelection(e=!1,t=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let i=this.view.root.activeElement,s=i==this.dom,o=!s&&!(this.view.state.facet(ct)||this.dom.tabIndex>-1)&&Dn(this.dom,this.view.observer.selectionRange)&&!(i&&this.dom.contains(i));if(!(s||t||o))return;let r=this.forceSelection;this.forceSelection=!1;let l=this.view.state.selection.main,a=this.moveToLine(this.domAtPos(l.anchor)),c=l.empty?a:this.moveToLine(this.domAtPos(l.head));if(V.gecko&&l.empty&&!this.hasComposition&&gd(a)){let f=document.createTextNode("");this.view.observer.ignore(()=>a.node.insertBefore(f,a.node.childNodes[a.offset]||null)),a=c=new we(f,0),r=!0}let h=this.view.observer.selectionRange;(r||!h.focusNode||(!Oi(a.node,a.offset,h.anchorNode,h.anchorOffset)||!Oi(c.node,c.offset,h.focusNode,h.focusOffset))&&!this.suppressWidgetCursorChange(h,l))&&(this.view.observer.ignore(()=>{V.android&&V.chrome&&this.dom.contains(h.focusNode)&&bd(h.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let f=zi(this.view.root);if(f)if(l.empty){if(V.gecko){let d=vd(a.node,a.offset);if(d&&d!=3){let p=(d==1?Cl:_l)(a.node,a.offset);p&&(a=new we(p.node,p.offset))}}f.collapse(a.node,a.offset),l.bidiLevel!=null&&f.caretBidiLevel!==void 0&&(f.caretBidiLevel=l.bidiLevel)}else if(f.extend){f.collapse(a.node,a.offset);try{f.extend(c.node,c.offset)}catch{}}else{let d=document.createRange();l.anchor>l.head&&([a,c]=[c,a]),d.setEnd(c.node,c.offset),d.setStart(a.node,a.offset),f.removeAllRanges(),f.addRange(d)}o&&this.view.root.activeElement==this.dom&&(this.dom.blur(),i&&i.focus())}),this.view.observer.setSelectionRange(a,c)),this.impreciseAnchor=a.precise?null:new we(h.anchorNode,h.anchorOffset),this.impreciseHead=c.precise?null:new we(h.focusNode,h.focusOffset)}suppressWidgetCursorChange(e,t){return this.hasComposition&&t.empty&&Oi(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==t.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,t=e.state.selection.main,i=zi(e.root),{anchorNode:s,anchorOffset:o}=e.observer.selectionRange;if(!i||!t.empty||!t.assoc||!i.modify)return;let r=se.find(this,t.head);if(!r)return;let l=r.posAtStart;if(t.head==l||t.head==l+r.length)return;let a=this.coordsAt(t.head,-1),c=this.coordsAt(t.head,1);if(!a||!c||a.bottom>c.top)return;let h=this.domAtPos(t.head+t.assoc);i.collapse(h.node,h.offset),i.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let f=e.observer.selectionRange;e.docView.posFromDOM(f.anchorNode,f.anchorOffset)!=t.from&&i.collapse(s,o)}moveToLine(e){let t=this.dom,i;if(e.node!=t)return e;for(let s=e.offset;!i&&s<t.childNodes.length;s++){let o=X.get(t.childNodes[s]);o instanceof se&&(i=o.domAtPos(0))}for(let s=e.offset-1;!i&&s>=0;s--){let o=X.get(t.childNodes[s]);o instanceof se&&(i=o.domAtPos(o.length))}return i?new we(i.node,i.offset,!0):e}nearest(e){for(let t=e;t;){let i=X.get(t);if(i&&i.rootView==this)return i;t=t.parentNode}return null}posFromDOM(e,t){let i=this.nearest(e);if(!i)throw new RangeError("Trying to find position for a DOM position outside of the document");return i.localPosFromDOM(e,t)+i.posAtStart}domAtPos(e){let{i:t,off:i}=this.childCursor().findPos(e,-1);for(;t<this.children.length-1;){let s=this.children[t];if(i<s.length||s instanceof se)break;t++,i=0}return this.children[t].domAtPos(i)}coordsAt(e,t){let i=null,s=0;for(let o=this.length,r=this.children.length-1;r>=0;r--){let l=this.children[r],a=o-l.breakAfter,c=a-l.length;if(a<e)break;if(c<=e&&(c<e||l.covers(-1))&&(a>e||l.covers(1))&&(!i||l instanceof se&&!(i instanceof se&&t>=0)))i=l,s=c;else if(i&&c==e&&a==e&&l instanceof ht&&Math.abs(t)<2){if(l.deco.startSide<0)break;r&&(i=null)}o=c}return i?i.coordsAt(e-s,t):null}coordsForChar(e){let{i:t,off:i}=this.childPos(e,1),s=this.children[t];if(!(s instanceof se))return null;for(;s.children.length;){let{i:l,off:a}=s.childPos(i,1);for(;;l++){if(l==s.children.length)return null;if((s=s.children[l]).length)break}i=a}if(!(s instanceof je))return null;let o=ge(s.text,i);if(o==i)return null;let r=Ht(s.dom,i,o).getClientRects();for(let l=0;l<r.length;l++){let a=r[l];if(l==r.length-1||a.top<a.bottom&&a.left<a.right)return a}return null}measureVisibleLineHeights(e){let t=[],{from:i,to:s}=e,o=this.view.contentDOM.clientWidth,r=o>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,l=-1,a=this.view.textDirection==Z.LTR;for(let c=0,h=0;h<this.children.length;h++){let f=this.children[h],d=c+f.length;if(d>s)break;if(c>=i){let p=f.dom.getBoundingClientRect();if(t.push(p.height),r){let g=f.dom.lastChild,m=g?Li(g):[];if(m.length){let v=m[m.length-1],x=a?v.right-p.left:p.right-v.left;x>l&&(l=x,this.minWidth=o,this.minWidthFrom=c,this.minWidthTo=d)}}}c=d+f.breakAfter}return t}textDirectionAt(e){let{i:t}=this.childPos(e,1);return getComputedStyle(this.children[t].dom).direction=="rtl"?Z.RTL:Z.LTR}measureTextSize(){for(let o of this.children)if(o instanceof se){let r=o.measureTextSize();if(r)return r}let e=document.createElement("div"),t,i,s;return e.className="cm-line",e.style.width="99999px",e.style.position="absolute",e.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(e);let o=Li(e.firstChild)[0];t=e.getBoundingClientRect().height,i=o?o.width/27:7,s=o?o.height:t,e.remove()}),{lineHeight:t,charWidth:i,textHeight:s}}childCursor(e=this.length){let t=this.children.length;return t&&(e-=this.children[--t].length),new Ol(this.children,e,t)}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let i=0,s=0;;s++){let o=s==t.viewports.length?null:t.viewports[s],r=o?o.from-1:this.length;if(r>i){let l=(t.lineBlockAt(r).bottom-t.lineBlockAt(i).top)/this.view.scaleY;e.push(I.replace({widget:new _0(l),block:!0,inclusive:!0,isBlockGap:!0}).range(i,r))}if(!o)break;i=o.to+1}return I.set(e)}updateDeco(){let e=1,t=this.view.state.facet(Ni).map(o=>(this.dynamicDecorationMap[e++]=typeof o=="function")?o(this.view):o),i=!1,s=this.view.state.facet(Ql).map((o,r)=>{let l=typeof o=="function";return l&&(i=!0),l?o(this.view):o});for(s.length&&(this.dynamicDecorationMap[e++]=i,t.push(j.join(s))),this.decorations=[this.editContextFormatting,...t,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];e<this.decorations.length;)this.dynamicDecorationMap[e++]=!1;return this.decorations}scrollIntoView(e){if(e.isSnapshot){let c=this.view.viewState.lineBlockAt(e.range.head);this.view.scrollDOM.scrollTop=c.top-e.yMargin,this.view.scrollDOM.scrollLeft=e.xMargin;return}for(let c of this.view.state.facet(Yl))try{if(c(this.view,e.range,e))return!0}catch(h){Te(this.view.state,h,"scroll handler")}let{range:t}=e,i=this.coordsAt(t.head,t.empty?t.assoc:t.head>t.anchor?-1:1),s;if(!i)return;!t.empty&&(s=this.coordsAt(t.anchor,t.anchor>t.head?-1:1))&&(i={left:Math.min(i.left,s.left),top:Math.min(i.top,s.top),right:Math.max(i.right,s.right),bottom:Math.max(i.bottom,s.bottom)});let o=uo(this.view),r={left:i.left-o.left,top:i.top-o.top,right:i.right+o.right,bottom:i.bottom+o.bottom},{offsetWidth:l,offsetHeight:a}=this.view.scrollDOM;Uf(this.view.scrollDOM,r,t.head<t.anchor?-1:1,e.x,e.y,Math.max(Math.min(e.xMargin,l),-l),Math.max(Math.min(e.yMargin,a),-a),this.view.textDirection==Z.LTR)}}function gd(n){return n.node.nodeType==1&&n.node.firstChild&&(n.offset==0||n.node.childNodes[n.offset-1].contentEditable=="false")&&(n.offset==n.node.childNodes.length||n.node.childNodes[n.offset].contentEditable=="false")}function ea(n,e){let t=n.observer.selectionRange;if(!t.focusNode)return null;let i=Cl(t.focusNode,t.focusOffset),s=_l(t.focusNode,t.focusOffset),o=i||s;if(s&&i&&s.node!=i.node){let l=X.get(s.node);if(!l||l instanceof je&&l.text!=s.node.nodeValue)o=s;else if(n.docView.lastCompositionAfterCursor){let a=X.get(i.node);!a||a instanceof je&&a.text!=i.node.nodeValue||(o=s)}}if(n.docView.lastCompositionAfterCursor=o!=i,!o)return null;let r=e-o.offset;return{from:r,to:r+o.node.nodeValue.length,node:o.node}}function md(n,e,t){let i=ea(n,t);if(!i)return null;let{node:s,from:o,to:r}=i,l=s.nodeValue;if(/[\n\r]/.test(l)||n.state.doc.sliceString(i.from,i.to)!=l)return null;let a=e.invertedDesc,c=new He(a.mapPos(o),a.mapPos(r),o,r),h=[];for(let f=s.parentNode;;f=f.parentNode){let d=X.get(f);if(d instanceof ft)h.push({node:f,deco:d.mark});else{if(d instanceof se||f.nodeName=="DIV"&&f.parentNode==n.contentDOM)return{range:c,text:s,marks:h,line:f};if(f!=n.contentDOM)h.push({node:f,deco:new Yi({inclusive:!0,attributes:nd(f),tagName:f.tagName.toLowerCase()})});else return null}}}function vd(n,e){return n.nodeType!=1?0:(e&&n.childNodes[e-1].contentEditable=="false"?1:0)|(e<n.childNodes.length&&n.childNodes[e].contentEditable=="false"?2:0)}let wd=class{constructor(){this.changes=[]}compareRange(e,t){Tn(e,t,this.changes)}comparePoint(e,t){Tn(e,t,this.changes)}boundChange(e){Tn(e,e,this.changes)}};function xd(n,e,t){let i=new wd;return j.compare(n,e,t,i),i.changes}function bd(n,e){for(let t=n;t&&t!=e;t=t.assignedSlot||t.parentNode)if(t.nodeType==1&&t.contentEditable=="false")return!0;return!1}function yd(n,e){let t=!1;return e&&n.iterChangedRanges((i,s)=>{i<e.to&&s>e.from&&(t=!0)}),t}function kd(n,e,t=1){let i=n.charCategorizer(e),s=n.doc.lineAt(e),o=e-s.from;if(s.length==0)return M.cursor(e);o==0?t=1:o==s.length&&(t=-1);let r=o,l=o;t<0?r=ge(s.text,o,!1):l=ge(s.text,o);let a=i(s.text.slice(r,l));for(;r>0;){let c=ge(s.text,r,!1);if(i(s.text.slice(c,r))!=a)break;r=c}for(;l<s.length;){let c=ge(s.text,l);if(i(s.text.slice(l,c))!=a)break;l=c}return M.range(r+s.from,l+s.from)}function Sd(n,e){return e.left>n?e.left-n:Math.max(0,n-e.right)}function Cd(n,e){return e.top>n?e.top-n:Math.max(0,n-e.bottom)}function Es(n,e){return n.top<e.bottom-1&&n.bottom>e.top+1}function c2(n,e){return e<n.top?{top:e,left:n.left,right:n.right,bottom:n.bottom}:n}function h2(n,e){return e>n.bottom?{top:n.top,left:n.left,right:n.right,bottom:e}:n}function A0(n,e,t){let i,s,o,r,l=!1,a,c,h,f;for(let g=n.firstChild;g;g=g.nextSibling){let m=Li(g);for(let v=0;v<m.length;v++){let x=m[v];s&&Es(s,x)&&(x=c2(h2(x,s.bottom),s.top));let b=Sd(e,x),k=Cd(t,x);if(b==0&&k==0)return g.nodeType==3?u2(g,e,t):A0(g,e,t);(!i||r>k||r==k&&o>b)&&(i=g,s=x,o=b,r=k,l=b?e<x.left?v>0:v<m.length-1:!0),b==0?t>x.bottom&&(!h||h.bottom<x.bottom)?(a=g,h=x):t<x.top&&(!f||f.top>x.top)&&(c=g,f=x):h&&Es(h,x)?h=h2(h,x.bottom):f&&Es(f,x)&&(f=c2(f,x.top))}}if(h&&h.bottom>=t?(i=a,s=h):f&&f.top<=t&&(i=c,s=f),!i)return{node:n,offset:0};let d=Math.max(s.left,Math.min(s.right,e));if(i.nodeType==3)return u2(i,d,t);if(l&&i.contentEditable!="false")return A0(i,d,t);let p=Array.prototype.indexOf.call(n.childNodes,i)+(e>=(s.left+s.right)/2?1:0);return{node:n,offset:p}}function u2(n,e,t){let i=n.nodeValue.length,s=-1,o=1e9,r=0;for(let l=0;l<i;l++){let a=Ht(n,l,l+1).getClientRects();for(let c=0;c<a.length;c++){let h=a[c];if(h.top==h.bottom)continue;r||(r=e-h.left);let f=(h.top>t?h.top-t:t-h.bottom)-1;if(h.left-1<=e&&h.right+1>=e&&f<o){let d=e>=(h.left+h.right)/2,p=d;if((V.chrome||V.gecko)&&Ht(n,l).getBoundingClientRect().left==h.right&&(p=!d),f<=0)return{node:n,offset:l+(p?1:0)};s=l+(p?1:0),o=f}}}return{node:n,offset:s>-1?s:r>0?n.nodeValue.length:0}}function ta(n,e,t,i=-1){var s,o;let r=n.contentDOM.getBoundingClientRect(),l=r.top+n.viewState.paddingTop,a,{docHeight:c}=n.viewState,{x:h,y:f}=e,d=f-l;if(d<0)return 0;if(d>c)return n.state.doc.length;for(let _=n.viewState.heightOracle.textHeight/2,y=!1;a=n.elementAtHeight(d),a.type!=ke.Text;)for(;d=i>0?a.bottom+_:a.top-_,!(d>=0&&d<=c);){if(y)return t?null:0;y=!0,i=-i}f=l+d;let p=a.from;if(p<n.viewport.from)return n.viewport.from==0?0:t?null:f2(n,r,a,h,f);if(p>n.viewport.to)return n.viewport.to==n.state.doc.length?n.state.doc.length:t?null:f2(n,r,a,h,f);let g=n.dom.ownerDocument,m=n.root.elementFromPoint?n.root:g,v=m.elementFromPoint(h,f);v&&!n.contentDOM.contains(v)&&(v=null),v||(h=Math.max(r.left+1,Math.min(r.right-1,h)),v=m.elementFromPoint(h,f),v&&!n.contentDOM.contains(v)&&(v=null));let x,b=-1;if(v&&((s=n.docView.nearest(v))===null||s===void 0?void 0:s.isEditable)!=!1){if(g.caretPositionFromPoint){let _=g.caretPositionFromPoint(h,f);_&&({offsetNode:x,offset:b}=_)}else if(g.caretRangeFromPoint){let _=g.caretRangeFromPoint(h,f);_&&({startContainer:x,startOffset:b}=_,(!n.contentDOM.contains(x)||V.safari&&_d(x,b,h)||V.chrome&&Od(x,b,h))&&(x=void 0))}x&&(b=Math.min(ot(x),b))}if(!x||!n.docView.dom.contains(x)){let _=se.find(n.docView,p);if(!_)return d>a.top+a.height/2?a.to:a.from;({node:x,offset:b}=A0(_.dom,h,f))}let k=n.docView.nearest(x);if(!k)return null;if(k.isWidget&&((o=k.dom)===null||o===void 0?void 0:o.nodeType)==1){let _=k.dom.getBoundingClientRect();return e.y<_.top||e.y<=_.bottom&&e.x<=(_.left+_.right)/2?k.posAtStart:k.posAtEnd}else return k.localPosFromDOM(x,b)+k.posAtStart}function f2(n,e,t,i,s){let o=Math.round((i-e.left)*n.defaultCharacterWidth);if(n.lineWrapping&&t.height>n.defaultLineHeight*1.5){let l=n.viewState.heightOracle.textHeight,a=Math.floor((s-t.top-(n.defaultLineHeight-l)*.5)/l);o+=a*n.viewState.heightOracle.lineLength}let r=n.state.sliceDoc(t.from,t.to);return t.from+m0(r,o,n.state.tabSize)}function _d(n,e,t){let i,s=n;if(n.nodeType!=3||e!=(i=n.nodeValue.length))return!1;for(;;){let o=s.nextSibling;if(o){if(o.nodeName=="BR")break;return!1}else{let r=s.parentNode;if(!r||r.nodeName=="DIV")break;s=r}}return Ht(n,i-1,i).getBoundingClientRect().right>t}function Od(n,e,t){if(e!=0)return!1;for(let s=n;;){let o=s.parentNode;if(!o||o.nodeType!=1||o.firstChild!=s)return!1;if(o.classList.contains("cm-line"))break;s=o}let i=n.nodeType==1?n.getBoundingClientRect():Ht(n,0,Math.max(n.nodeValue.length,1)).getBoundingClientRect();return t-i.left>5}function B0(n,e,t){let i=n.lineBlockAt(e);if(Array.isArray(i.type)){let s;for(let o of i.type){if(o.from>e)break;if(!(o.to<e)){if(o.from<e&&o.to>e)return o;(!s||o.type==ke.Text&&(s.type!=o.type||(t<0?o.from<e:o.to>e)))&&(s=o)}}return s||i}return i}function Md(n,e,t,i){let s=B0(n,e.head,e.assoc||-1),o=!i||s.type!=ke.Text||!(n.lineWrapping||s.widgetLineBreaks)?null:n.coordsAtPos(e.assoc<0&&e.head>s.from?e.head-1:e.head);if(o){let r=n.dom.getBoundingClientRect(),l=n.textDirectionAt(s.from),a=n.posAtCoords({x:t==(l==Z.LTR)?r.right-1:r.left+1,y:(o.top+o.bottom)/2});if(a!=null)return M.cursor(a,t?-1:1)}return M.cursor(t?s.to:s.from,t?-1:1)}function d2(n,e,t,i){let s=n.state.doc.lineAt(e.head),o=n.bidiSpans(s),r=n.textDirectionAt(s.from);for(let l=e,a=null;;){let c=fd(s,o,r,l,t),h=Il;if(!c){if(s.number==(t?n.state.doc.lines:1))return l;h=`
|
|
8
|
-
`,s=n.state.doc.line(s.number+(t?1:-1)),o=n.bidiSpans(s),c=n.visualLineSide(s,!t)}if(a){if(!a(h))return l}else{if(!i)return c;a=i(h)}l=c}}function Dd(n,e,t){let i=n.state.charCategorizer(e),s=i(t);return o=>{let r=i(o);return s==te.Space&&(s=r),s==r}}function Td(n,e,t,i){let s=e.head,o=t?1:-1;if(s==(t?n.state.doc.length:0))return M.cursor(s,e.assoc);let r=e.goalColumn,l,a=n.contentDOM.getBoundingClientRect(),c=n.coordsAtPos(s,e.assoc||-1),h=n.documentTop;if(c)r==null&&(r=c.left-a.left),l=o<0?c.top:c.bottom;else{let p=n.viewState.lineBlockAt(s);r==null&&(r=Math.min(a.right-a.left,n.defaultCharacterWidth*(s-p.from))),l=(o<0?p.top:p.bottom)+h}let f=a.left+r,d=i??n.viewState.heightOracle.textHeight>>1;for(let p=0;;p+=10){let g=l+(d+p)*o,m=ta(n,{x:f,y:g},!1,o);if(g<a.top||g>a.bottom||(o<0?m<s:m>s)){let v=n.docView.coordsForChar(m),
|
|
9
|
-
`&&n.lineWrapping&&(i&&(i=M.single(i.main.anchor-1,i.main.head-1)),t={from:s.from,to:s.to,insert:q.of([" "])}),t)return fo(n,t,i,o);if(i&&!i.main.eq(s)){let r=!1,l="select";return n.inputState.lastSelectionTime>Date.now()-50&&(n.inputState.lastSelectionOrigin=="select"&&(r=!0),l=n.inputState.lastSelectionOrigin),n.dispatch({selection:i,scrollIntoView:r,userEvent:l}),!0}else return!1}function fo(n,e,t,i=-1){if(V.ios&&n.inputState.flushIOSKey(e))return!0;let s=n.state.selection.main;if(V.android&&(e.to==s.to&&(e.from==s.from||e.from==s.from-1&&n.state.sliceDoc(e.from,s.from)==" ")&&e.insert.length==1&&e.insert.lines==2&&Zt(n.contentDOM,"Enter",13)||(e.from==s.from-1&&e.to==s.to&&e.insert.length==0||i==8&&e.insert.length<e.to-e.from&&e.to>s.head)&&Zt(n.contentDOM,"Backspace",8)||e.from==s.from&&e.to==s.to+1&&e.insert.length==0&&Zt(n.contentDOM,"Delete",46)))return!0;let o=e.insert.toString();n.inputState.composing>=0&&n.inputState.composing++;let r,l=()=>r||(r=Ed(n,e,t));return n.state.facet(Gl).some(a=>a(n,e.from,e.to,o,l))||n.dispatch(l()),!0}function Ed(n,e,t){let i,s=n.state,o=s.selection.main;if(e.from>=o.from&&e.to<=o.to&&e.to-e.from>=(o.to-o.from)/3&&(!t||t.main.empty&&t.main.from==e.from+e.insert.length)&&n.inputState.composing<0){let l=o.from<e.from?s.sliceDoc(o.from,e.from):"",a=o.to>e.to?s.sliceDoc(e.to,o.to):"";i=s.replaceSelection(n.state.toText(l+e.insert.sliceString(0,void 0,n.state.lineBreak)+a))}else{let l=s.changes(e),a=t&&t.main.to<=l.newLength?t.main:void 0;if(s.selection.ranges.length>1&&n.inputState.composing>=0&&e.to<=o.to&&e.to>=o.to-10){let c=n.state.sliceDoc(e.from,e.to),h,f=t&&ea(n,t.main.head);if(f){let g=e.insert.length-(e.to-e.from);h={from:f.from,to:f.to-g}}else h=n.state.doc.lineAt(o.head);let d=o.to-e.to,p=o.to-o.from;i=s.changeByRange(g=>{if(g.from==o.from&&g.to==o.to)return{changes:l,range:a||g.map(l)};let m=g.to-d,v=m-c.length;if(g.to-g.from!=p||n.state.sliceDoc(v,m)!=c||g.to>=h.from&&g.from<=h.to)return{range:g};let x=s.changes({from:v,to:m,insert:e.insert}),b=g.to-o.to;return{changes:x,range:a?M.range(Math.max(0,a.anchor+b),Math.max(0,a.head+b)):g.map(x)}})}else i={changes:l,selection:a&&s.selection.replaceRange(a)}}let r="input.type";return(n.composing||n.inputState.compositionPendingChange&&n.inputState.compositionEndedAt>Date.now()-50)&&(n.inputState.compositionPendingChange=!1,r+=".compose",n.inputState.compositionFirstChange&&(r+=".start",n.inputState.compositionFirstChange=!1)),s.update(i,{userEvent:r,scrollIntoView:!0})}function Vd(n,e,t,i){let s=Math.min(n.length,e.length),o=0;for(;o<s&&n.charCodeAt(o)==e.charCodeAt(o);)o++;if(o==s&&n.length==e.length)return null;let r=n.length,l=e.length;for(;r>0&&l>0&&n.charCodeAt(r-1)==e.charCodeAt(l-1);)r--,l--;if(i=="end"){let a=Math.max(0,o-Math.min(r,l));t-=r+a-o}if(r<o&&n.length<e.length){let a=t<=o&&t>=r?o-t:0;o-=a,l=o+(l-r),r=o}else if(l<o){let a=t<=o&&t>=l?o-t:0;o-=a,r=o+(r-l),l=o}return{from:o,toA:r,toB:l}}function zd(n){let e=[];if(n.root.activeElement!=n.contentDOM)return e;let{anchorNode:t,anchorOffset:i,focusNode:s,focusOffset:o}=n.observer.selectionRange;return t&&(e.push(new p2(t,i)),(s!=t||o!=i)&&e.push(new p2(s,o))),e}function Ld(n,e){if(n.length==0)return null;let t=n[0].pos,i=n.length==2?n[1].pos:t;return t>-1&&i>-1?M.single(t+e,i+e):null}class Nd{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,V.safari&&e.contentDOM.addEventListener("input",()=>null),V.gecko&&Zd(e.contentDOM.ownerDocument)}handleEvent(e){!jd(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||(this.view.updateState!=0?Promise.resolve().then(()=>this.runHandlers(e.type,e)):this.runHandlers(e.type,e))}runHandlers(e,t){let i=this.handlers[e];if(i){for(let s of i.observers)s(this.view,t);for(let s of i.handlers){if(t.defaultPrevented)break;if(s(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=Rd(e),i=this.handlers,s=this.view.contentDOM;for(let o in t)if(o!="scroll"){let r=!t[o].handlers.length,l=i[o];l&&r!=!l.handlers.length&&(s.removeEventListener(o,this.handleEvent),l=null),l||s.addEventListener(o,this.handleEvent,{passive:r})}for(let o in i)o!="scroll"&&!t[o]&&s.removeEventListener(o,this.handleEvent);this.handlers=t}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&e.keyCode!=27&&sa.indexOf(e.keyCode)<0&&(this.tabFocusMode=-1),V.android&&V.chrome&&!e.synthetic&&(e.keyCode==13||e.keyCode==8))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;let t;return V.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&((t=na.find(i=>i.keyCode==e.keyCode))&&!e.ctrlKey||Id.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(this.pendingIOSKey=t||e,setTimeout(()=>this.flushIOSKey(),250),!0):(e.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(e){let t=this.pendingIOSKey;return!t||t.key=="Enter"&&e&&e.from<e.to&&/^\S+$/.test(e.insert.toString())?!1:(this.pendingIOSKey=void 0,Zt(this.view.contentDOM,t.key,t.keyCode,t instanceof KeyboardEvent?t:void 0))}ignoreDuringComposition(e){return/^key/.test(e.type)?this.composing>0?!0:V.safari&&!V.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.view.observer.update(e),this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function g2(n,e){return(t,i)=>{try{return e.call(n,i,t)}catch(s){Te(t.state,s)}}}function Rd(n){let e=Object.create(null);function t(i){return e[i]||(e[i]={observers:[],handlers:[]})}for(let i of n){let s=i.spec,o=s&&s.plugin.domEventHandlers,r=s&&s.plugin.domEventObservers;if(o)for(let l in o){let a=o[l];a&&t(l).handlers.push(g2(i.value,a))}if(r)for(let l in r){let a=r[l];a&&t(l).observers.push(g2(i.value,a))}}for(let i in qe)t(i).handlers.push(qe[i]);for(let i in We)t(i).observers.push(We[i]);return e}const na=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],Id="dthko",sa=[16,17,18,20,91,92,224,225],ln=6;function an(n){return Math.max(0,n)*.7+8}function Hd(n,e){return Math.max(Math.abs(n.clientX-e.clientX),Math.abs(n.clientY-e.clientY))}class $d{constructor(e,t,i,s){this.view=e,this.startEvent=t,this.style=i,this.mustSelect=s,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParents=Yf(e.contentDOM),this.atoms=e.state.facet(ho).map(r=>r(e));let o=e.contentDOM.ownerDocument;o.addEventListener("mousemove",this.move=this.move.bind(this)),o.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(G.allowMultipleSelections)&&Wd(e,t),this.dragging=Gd(e,t)&&la(t)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&Hd(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let t=0,i=0,s=0,o=0,r=this.view.win.innerWidth,l=this.view.win.innerHeight;this.scrollParents.x&&({left:s,right:r}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:o,bottom:l}=this.scrollParents.y.getBoundingClientRect());let a=uo(this.view);e.clientX-a.left<=s+ln?t=-an(s-e.clientX):e.clientX+a.right>=r-ln&&(t=an(e.clientX-r)),e.clientY-a.top<=o+ln?i=-an(o-e.clientY):e.clientY+a.bottom>=l-ln&&(i=an(e.clientY-l)),this.setScrollSpeed(t,i)}up(e){this.dragging==null&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){let{x:e,y:t}=this.scrollSpeed;e&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=e,e=0),t&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=t,t=0),(e||t)&&this.view.win.scrollBy(e,t),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(e){let t=null;for(let i=0;i<e.ranges.length;i++){let s=e.ranges[i],o=null;if(s.empty){let r=An(this.atoms,s.from,0);r!=s.from&&(o=M.cursor(r,-1))}else{let r=An(this.atoms,s.from,-1),l=An(this.atoms,s.to,1);(r!=s.from||l!=s.to)&&(o=M.range(s.from==s.anchor?r:l,s.from==s.head?r:l))}o&&(t||(t=e.ranges.slice()),t[i]=o)}return t?M.create(t,e.mainIndex):e}select(e){let{view:t}=this,i=this.skipAtoms(this.style.get(e,this.extend,this.multiple));(this.mustSelect||!i.eq(t.state.selection,this.dragging===!1))&&this.view.dispatch({selection:i,userEvent:"select.pointer"}),this.mustSelect=!1}update(e){e.transactions.some(t=>t.isUserEvent("input.type"))?this.destroy():this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}}function Wd(n,e){let t=n.state.facet(Hl);return t.length?t[0](e):V.mac?e.metaKey:e.ctrlKey}function Fd(n,e){let t=n.state.facet($l);return t.length?t[0](e):V.mac?!e.altKey:!e.ctrlKey}function Gd(n,e){let{main:t}=n.state.selection;if(t.empty)return!1;let i=zi(n.root);if(!i||i.rangeCount==0)return!0;let s=i.getRangeAt(0).getClientRects();for(let o=0;o<s.length;o++){let r=s[o];if(r.left<=e.clientX&&r.right>=e.clientX&&r.top<=e.clientY&&r.bottom>=e.clientY)return!0}return!1}function jd(n,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let t=e.target,i;t!=n.contentDOM;t=t.parentNode)if(!t||t.nodeType==11||(i=X.get(t))&&i.ignoreEvent(e))return!1;return!0}const qe=Object.create(null),We=Object.create(null),oa=V.ie&&V.ie_version<15||V.ios&&V.webkit_version<604;function qd(n){let e=n.dom.parentNode;if(!e)return;let t=e.appendChild(document.createElement("textarea"));t.style.cssText="position: fixed; left: -10000px; top: 10px",t.focus(),setTimeout(()=>{n.focus(),t.remove(),ra(n,t.value)},50)}function vs(n,e,t){for(let i of n.facet(e))t=i(t,n);return t}function ra(n,e){e=vs(n.state,lo,e);let{state:t}=n,i,s=1,o=t.toText(e),r=o.lines==t.selection.ranges.length;if(P0!=null&&t.selection.ranges.every(a=>a.empty)&&P0==o.toString()){let a=-1;i=t.changeByRange(c=>{let h=t.doc.lineAt(c.from);if(h.from==a)return{range:c};a=h.from;let f=t.toText((r?o.line(s++).text:e)+t.lineBreak);return{changes:{from:h.from,insert:f},range:M.cursor(c.from+f.length)}})}else r?i=t.changeByRange(a=>{let c=o.line(s++);return{changes:{from:a.from,to:a.to,insert:c.text},range:M.cursor(a.from+c.length)}}):i=t.replaceSelection(o);n.dispatch(i,{userEvent:"input.paste",scrollIntoView:!0})}We.scroll=n=>{n.inputState.lastScrollTop=n.scrollDOM.scrollTop,n.inputState.lastScrollLeft=n.scrollDOM.scrollLeft};qe.keydown=(n,e)=>(n.inputState.setSelectionOrigin("select"),e.keyCode==27&&n.inputState.tabFocusMode!=0&&(n.inputState.tabFocusMode=Date.now()+2e3),!1);We.touchstart=(n,e)=>{n.inputState.lastTouchTime=Date.now(),n.inputState.setSelectionOrigin("select.pointer")};We.touchmove=n=>{n.inputState.setSelectionOrigin("select.pointer")};qe.mousedown=(n,e)=>{if(n.observer.flush(),n.inputState.lastTouchTime>Date.now()-2e3)return!1;let t=null;for(let i of n.state.facet(Wl))if(t=i(n,e),t)break;if(!t&&e.button==0&&(t=Kd(n,e)),t){let i=!n.hasFocus;n.inputState.startMouseSelection(new $d(n,e,t,i)),i&&n.observer.ignore(()=>{yl(n.contentDOM);let o=n.root.activeElement;o&&!o.contains(n.contentDOM)&&o.blur()});let s=n.inputState.mouseSelection;if(s)return s.start(e),s.dragging===!1}return!1};function m2(n,e,t,i){if(i==1)return M.cursor(e,t);if(i==2)return kd(n.state,e,t);{let s=se.find(n.docView,e),o=n.state.doc.lineAt(s?s.posAtEnd:e),r=s?s.posAtStart:o.from,l=s?s.posAtEnd:o.to;return l<n.state.doc.length&&l==o.to&&l++,M.range(r,l)}}let v2=(n,e,t)=>e>=t.top&&e<=t.bottom&&n>=t.left&&n<=t.right;function Ud(n,e,t,i){let s=se.find(n.docView,e);if(!s)return 1;let o=e-s.posAtStart;if(o==0)return 1;if(o==s.length)return-1;let r=s.coordsAt(o,-1);if(r&&v2(t,i,r))return-1;let l=s.coordsAt(o,1);return l&&v2(t,i,l)?1:r&&r.bottom>=i?-1:1}function w2(n,e){let t=n.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:t,bias:Ud(n,t,e.clientX,e.clientY)}}const Yd=V.ie&&V.ie_version<=11;let x2=null,b2=0,y2=0;function la(n){if(!Yd)return n.detail;let e=x2,t=y2;return x2=n,y2=Date.now(),b2=!e||t>Date.now()-400&&Math.abs(e.clientX-n.clientX)<2&&Math.abs(e.clientY-n.clientY)<2?(b2+1)%3:1}function Kd(n,e){let t=w2(n,e),i=la(e),s=n.state.selection;return{update(o){o.docChanged&&(t.pos=o.changes.mapPos(t.pos),s=s.map(o.changes))},get(o,r,l){let a=w2(n,o),c,h=m2(n,a.pos,a.bias,i);if(t.pos!=a.pos&&!r){let f=m2(n,t.pos,t.bias,i),d=Math.min(f.from,h.from),p=Math.max(f.to,h.to);h=d<h.from?M.range(d,p):M.range(p,d)}return r?s.replaceRange(s.main.extend(h.from,h.to)):l&&i==1&&s.ranges.length>1&&(c=Xd(s,a.pos))?c:l?s.addRange(h):M.create([h])}}}function Xd(n,e){for(let t=0;t<n.ranges.length;t++){let{from:i,to:s}=n.ranges[t];if(i<=e&&s>=e)return M.create(n.ranges.slice(0,t).concat(n.ranges.slice(t+1)),n.mainIndex==t?0:n.mainIndex-(n.mainIndex>t?1:0))}return null}qe.dragstart=(n,e)=>{let{selection:{main:t}}=n.state;if(e.target.draggable){let s=n.docView.nearest(e.target);if(s&&s.isWidget){let o=s.posAtStart,r=o+s.length;(o>=t.to||r<=t.from)&&(t=M.range(o,r))}}let{inputState:i}=n;return i.mouseSelection&&(i.mouseSelection.dragging=!0),i.draggedContent=t,e.dataTransfer&&(e.dataTransfer.setData("Text",vs(n.state,ao,n.state.sliceDoc(t.from,t.to))),e.dataTransfer.effectAllowed="copyMove"),!1};qe.dragend=n=>(n.inputState.draggedContent=null,!1);function k2(n,e,t,i){if(t=vs(n.state,lo,t),!t)return;let s=n.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:o}=n.inputState,r=i&&o&&Fd(n,e)?{from:o.from,to:o.to}:null,l={from:s,insert:t},a=n.state.changes(r?[r,l]:l);n.focus(),n.dispatch({changes:a,selection:{anchor:a.mapPos(s,-1),head:a.mapPos(s,1)},userEvent:r?"move.drop":"input.drop"}),n.inputState.draggedContent=null}qe.drop=(n,e)=>{if(!e.dataTransfer)return!1;if(n.state.readOnly)return!0;let t=e.dataTransfer.files;if(t&&t.length){let i=Array(t.length),s=0,o=()=>{++s==t.length&&k2(n,e,i.filter(r=>r!=null).join(n.state.lineBreak),!1)};for(let r=0;r<t.length;r++){let l=new FileReader;l.onerror=o,l.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(l.result)||(i[r]=l.result),o()},l.readAsText(t[r])}return!0}else{let i=e.dataTransfer.getData("Text");if(i)return k2(n,e,i,!0),!0}return!1};qe.paste=(n,e)=>{if(n.state.readOnly)return!0;n.observer.flush();let t=oa?null:e.clipboardData;return t?(ra(n,t.getData("text/plain")||t.getData("text/uri-list")),!0):(qd(n),!1)};function Qd(n,e){let t=n.dom.parentNode;if(!t)return;let i=t.appendChild(document.createElement("textarea"));i.style.cssText="position: fixed; left: -10000px; top: 10px",i.value=e,i.focus(),i.selectionEnd=e.length,i.selectionStart=0,setTimeout(()=>{i.remove(),n.focus()},50)}function Jd(n){let e=[],t=[],i=!1;for(let s of n.selection.ranges)s.empty||(e.push(n.sliceDoc(s.from,s.to)),t.push(s));if(!e.length){let s=-1;for(let{from:o}of n.selection.ranges){let r=n.doc.lineAt(o);r.number>s&&(e.push(r.text),t.push({from:r.from,to:Math.min(n.doc.length,r.to+1)})),s=r.number}i=!0}return{text:vs(n,ao,e.join(n.lineBreak)),ranges:t,linewise:i}}let P0=null;qe.copy=qe.cut=(n,e)=>{let{text:t,ranges:i,linewise:s}=Jd(n.state);if(!t&&!s)return!1;P0=s?t:null,e.type=="cut"&&!n.state.readOnly&&n.dispatch({changes:i,scrollIntoView:!0,userEvent:"delete.cut"});let o=oa?null:e.clipboardData;return o?(o.clearData(),o.setData("text/plain",t),!0):(Qd(n,t),!1)};const aa=pt.define();function ca(n,e){let t=[];for(let i of n.facet(jl)){let s=i(n,e);s&&t.push(s)}return t.length?n.update({effects:t,annotations:aa.of(!0)}):null}function ha(n){setTimeout(()=>{let e=n.hasFocus;if(e!=n.inputState.notifiedFocused){let t=ca(n.state,e);t?n.dispatch(t):n.update([])}},10)}We.focus=n=>{n.inputState.lastFocusTime=Date.now(),!n.scrollDOM.scrollTop&&(n.inputState.lastScrollTop||n.inputState.lastScrollLeft)&&(n.scrollDOM.scrollTop=n.inputState.lastScrollTop,n.scrollDOM.scrollLeft=n.inputState.lastScrollLeft),ha(n)};We.blur=n=>{n.observer.clearSelectionRange(),ha(n)};We.compositionstart=We.compositionupdate=n=>{n.observer.editContext||(n.inputState.compositionFirstChange==null&&(n.inputState.compositionFirstChange=!0),n.inputState.composing<0&&(n.inputState.composing=0))};We.compositionend=n=>{n.observer.editContext||(n.inputState.composing=-1,n.inputState.compositionEndedAt=Date.now(),n.inputState.compositionPendingKey=!0,n.inputState.compositionPendingChange=n.observer.pendingRecords().length>0,n.inputState.compositionFirstChange=null,V.chrome&&V.android?n.observer.flushSoon():n.inputState.compositionPendingChange?Promise.resolve().then(()=>n.observer.flush()):setTimeout(()=>{n.inputState.composing<0&&n.docView.hasComposition&&n.update([])},50))};We.contextmenu=n=>{n.inputState.lastContextMenu=Date.now()};qe.beforeinput=(n,e)=>{var t,i;if(e.inputType=="insertReplacementText"&&n.observer.editContext){let o=(t=e.dataTransfer)===null||t===void 0?void 0:t.getData("text/plain"),r=e.getTargetRanges();if(o&&r.length){let l=r[0],a=n.posAtDOM(l.startContainer,l.startOffset),c=n.posAtDOM(l.endContainer,l.endOffset);return fo(n,{from:a,to:c,insert:n.state.toText(o)},null),!0}}let s;if(V.chrome&&V.android&&(s=na.find(o=>o.inputType==e.inputType))&&(n.observer.delayAndroidKey(s.key,s.keyCode),s.key=="Backspace"||s.key=="Delete")){let o=((i=window.visualViewport)===null||i===void 0?void 0:i.height)||0;setTimeout(()=>{var r;(((r=window.visualViewport)===null||r===void 0?void 0:r.height)||0)>o+10&&n.hasFocus&&(n.contentDOM.blur(),n.focus())},100)}return V.ios&&e.inputType=="deleteContentForward"&&n.observer.flushSoon(),V.safari&&e.inputType=="insertText"&&n.inputState.composing>=0&&setTimeout(()=>We.compositionend(n,e),20),!1};const S2=new Set;function Zd(n){S2.has(n)||(S2.add(n),n.addEventListener("copy",()=>{}),n.addEventListener("cut",()=>{}))}const C2=["pre-wrap","normal","pre-line","break-spaces"];let li=!1;function _2(){li=!1}class e6{constructor(e){this.lineWrapping=e,this.doc=q.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30}heightForGap(e,t){let i=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(i+=Math.max(0,Math.ceil((t-e-i*this.lineLength*.5)/this.lineLength))),this.lineHeight*i}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/Math.max(1,this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return C2.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let i=0;i<e.length;i++){let s=e[i];s<0?i++:this.heightSamples[Math.floor(s*10)]||(t=!0,this.heightSamples[Math.floor(s*10)]=!0)}return t}refresh(e,t,i,s,o,r){let l=C2.indexOf(e)>-1,a=Math.round(t)!=Math.round(this.lineHeight)||this.lineWrapping!=l;if(this.lineWrapping=l,this.lineHeight=t,this.charWidth=i,this.textHeight=s,this.lineLength=o,a){this.heightSamples={};for(let c=0;c<r.length;c++){let h=r[c];h<0?c++:this.heightSamples[Math.floor(h*10)]=!0}}return a}}class t6{constructor(e,t){this.from=e,this.heights=t,this.index=0}get more(){return this.index<this.heights.length}}class tt{constructor(e,t,i,s,o){this.from=e,this.length=t,this.top=i,this.height=s,this._content=o}get type(){return typeof this._content=="number"?ke.Text:Array.isArray(this._content)?this._content:this._content.type}get to(){return this.from+this.length}get bottom(){return this.top+this.height}get widget(){return this._content instanceof _t?this._content.widget:null}get widgetLineBreaks(){return typeof this._content=="number"?this._content:0}join(e){let t=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(e._content)?e._content:[e]);return new tt(this.from,this.length+e.length,this.top,this.height+e.height,t)}}var J=function(n){return n[n.ByPos=0]="ByPos",n[n.ByHeight=1]="ByHeight",n[n.ByPosNoHeight=2]="ByPosNoHeight",n}(J||(J={}));const Bn=.001;class Se{constructor(e,t,i=2){this.length=e,this.height=t,this.flags=i}get outdated(){return(this.flags&2)>0}set outdated(e){this.flags=(e?2:0)|this.flags&-3}setHeight(e){this.height!=e&&(Math.abs(this.height-e)>Bn&&(li=!0),this.height=e)}replace(e,t,i){return Se.of(i)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,i,s){let o=this,r=i.doc;for(let l=s.length-1;l>=0;l--){let{fromA:a,toA:c,fromB:h,toB:f}=s[l],d=o.lineAt(a,J.ByPosNoHeight,i.setDoc(t),0,0),p=d.to>=c?d:o.lineAt(c,J.ByPosNoHeight,i,0,0);for(f+=p.to-c,c=p.to;l>0&&d.from<=s[l-1].toA;)a=s[l-1].fromA,h=s[l-1].fromB,l--,a<d.from&&(d=o.lineAt(a,J.ByPosNoHeight,i,0,0));h+=d.from-a,a=d.from;let g=po.build(i.setDoc(r),e,h,f);o=Gn(o,o.replace(a,c,g))}return o.updateHeight(i,0)}static empty(){return new ze(0,0)}static of(e){if(e.length==1)return e[0];let t=0,i=e.length,s=0,o=0;for(;;)if(t==i)if(s>o*2){let l=e[t-1];l.break?e.splice(--t,1,l.left,null,l.right):e.splice(--t,1,l.left,l.right),i+=1+l.break,s-=l.size}else if(o>s*2){let l=e[i];l.break?e.splice(i,1,l.left,null,l.right):e.splice(i,1,l.left,l.right),i+=2+l.break,o-=l.size}else break;else if(s<o){let l=e[t++];l&&(s+=l.size)}else{let l=e[--i];l&&(o+=l.size)}let r=0;return e[t-1]==null?(r=1,t--):e[t]==null&&(r=1,i++),new i6(Se.of(e.slice(0,t)),r,Se.of(e.slice(i)))}}function Gn(n,e){return n==e?n:(n.constructor!=e.constructor&&(li=!0),e)}Se.prototype.size=1;class ua extends Se{constructor(e,t,i){super(e,t),this.deco=i}blockAt(e,t,i,s){return new tt(s,this.length,i,this.height,this.deco||0)}lineAt(e,t,i,s,o){return this.blockAt(0,i,s,o)}forEachLine(e,t,i,s,o,r){e<=o+this.length&&t>=o&&r(this.blockAt(0,i,s,o))}updateHeight(e,t=0,i=!1,s){return s&&s.from<=t&&s.more&&this.setHeight(s.heights[s.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class ze extends ua{constructor(e,t){super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,t,i,s){return new tt(s,this.length,i,this.height,this.breaks)}replace(e,t,i){let s=i[0];return i.length==1&&(s instanceof ze||s instanceof de&&s.flags&4)&&Math.abs(this.length-s.length)<10?(s instanceof de?s=new ze(s.length,this.height):s.height=this.height,this.outdated||(s.outdated=!1),s):Se.of(i)}updateHeight(e,t=0,i=!1,s){return s&&s.from<=t&&s.more?this.setHeight(s.heights[s.index++]):(i||this.outdated)&&this.setHeight(Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class de extends Se{constructor(e){super(e,0)}heightMetrics(e,t){let i=e.doc.lineAt(t).number,s=e.doc.lineAt(t+this.length).number,o=s-i+1,r,l=0;if(e.lineWrapping){let a=Math.min(this.height,e.lineHeight*o);r=a/o,this.length>o+1&&(l=(this.height-a)/(this.length-o-1))}else r=this.height/o;return{firstLine:i,lastLine:s,perLine:r,perChar:l}}blockAt(e,t,i,s){let{firstLine:o,lastLine:r,perLine:l,perChar:a}=this.heightMetrics(t,s);if(t.lineWrapping){let c=s+(e<t.lineHeight?0:Math.round(Math.max(0,Math.min(1,(e-i)/this.height))*this.length)),h=t.doc.lineAt(c),f=l+h.length*a,d=Math.max(i,e-f/2);return new tt(h.from,h.length,d,f,0)}else{let c=Math.max(0,Math.min(r-o,Math.floor((e-i)/l))),{from:h,length:f}=t.doc.line(o+c);return new tt(h,f,i+l*c,l,0)}}lineAt(e,t,i,s,o){if(t==J.ByHeight)return this.blockAt(e,i,s,o);if(t==J.ByPosNoHeight){let{from:p,to:g}=i.doc.lineAt(e);return new tt(p,g-p,0,0,0)}let{firstLine:r,perLine:l,perChar:a}=this.heightMetrics(i,o),c=i.doc.lineAt(e),h=l+c.length*a,f=c.number-r,d=s+l*f+a*(c.from-o-f);return new tt(c.from,c.length,Math.max(s,Math.min(d,s+this.height-h)),h,0)}forEachLine(e,t,i,s,o,r){e=Math.max(e,o),t=Math.min(t,o+this.length);let{firstLine:l,perLine:a,perChar:c}=this.heightMetrics(i,o);for(let h=e,f=s;h<=t;){let d=i.doc.lineAt(h);if(h==e){let g=d.number-l;f+=a*g+c*(e-o-g)}let p=a+c*d.length;r(new tt(d.from,d.length,f,p,0)),f+=p,h=d.to+1}}replace(e,t,i){let s=this.length-t;if(s>0){let o=i[i.length-1];o instanceof de?i[i.length-1]=new de(o.length+s):i.push(null,new de(s-1))}if(e>0){let o=i[0];o instanceof de?i[0]=new de(e+o.length):i.unshift(new de(e-1),null)}return Se.of(i)}decomposeLeft(e,t){t.push(new de(e-1),null)}decomposeRight(e,t){t.push(null,new de(this.length-e-1))}updateHeight(e,t=0,i=!1,s){let o=t+this.length;if(s&&s.from<=t+this.length&&s.more){let r=[],l=Math.max(t,s.from),a=-1;for(s.from>t&&r.push(new de(s.from-t-1).updateHeight(e,t));l<=o&&s.more;){let h=e.doc.lineAt(l).length;r.length&&r.push(null);let f=s.heights[s.index++];a==-1?a=f:Math.abs(f-a)>=Bn&&(a=-2);let d=new ze(h,f);d.outdated=!1,r.push(d),l+=h+1}l<=o&&r.push(null,new de(o-l).updateHeight(e,l));let c=Se.of(r);return(a<0||Math.abs(c.height-this.height)>=Bn||Math.abs(a-this.heightMetrics(e,t).perLine)>=Bn)&&(li=!0),Gn(this,c)}else(i||this.outdated)&&(this.setHeight(e.heightForGap(t,t+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class i6 extends Se{constructor(e,t,i){super(e.length+t+i.length,e.height+i.height,t|(e.outdated||i.outdated?2:0)),this.left=e,this.right=i,this.size=e.size+i.size}get break(){return this.flags&1}blockAt(e,t,i,s){let o=i+this.left.height;return e<o?this.left.blockAt(e,t,i,s):this.right.blockAt(e,t,o,s+this.left.length+this.break)}lineAt(e,t,i,s,o){let r=s+this.left.height,l=o+this.left.length+this.break,a=t==J.ByHeight?e<r:e<l,c=a?this.left.lineAt(e,t,i,s,o):this.right.lineAt(e,t,i,r,l);if(this.break||(a?c.to<l:c.from>l))return c;let h=t==J.ByPosNoHeight?J.ByPosNoHeight:J.ByPos;return a?c.join(this.right.lineAt(l,h,i,r,l)):this.left.lineAt(l,h,i,s,o).join(c)}forEachLine(e,t,i,s,o,r){let l=s+this.left.height,a=o+this.left.length+this.break;if(this.break)e<a&&this.left.forEachLine(e,t,i,s,o,r),t>=a&&this.right.forEachLine(e,t,i,l,a,r);else{let c=this.lineAt(a,J.ByPos,i,s,o);e<c.from&&this.left.forEachLine(e,c.from-1,i,s,o,r),c.to>=e&&c.from<=t&&r(c),t>c.to&&this.right.forEachLine(c.to+1,t,i,l,a,r)}}replace(e,t,i){let s=this.left.length+this.break;if(t<s)return this.balanced(this.left.replace(e,t,i),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-s,t-s,i));let o=[];e>0&&this.decomposeLeft(e,o);let r=o.length;for(let l of i)o.push(l);if(e>0&&O2(o,r-1),t<this.length){let l=o.length;this.decomposeRight(t,o),O2(o,l)}return Se.of(o)}decomposeLeft(e,t){let i=this.left.length;if(e<=i)return this.left.decomposeLeft(e,t);t.push(this.left),this.break&&(i++,e>=i&&t.push(null)),e>i&&this.right.decomposeLeft(e-i,t)}decomposeRight(e,t){let i=this.left.length,s=i+this.break;if(e>=s)return this.right.decomposeRight(e-s,t);e<i&&this.left.decomposeRight(e,t),this.break&&e<s&&t.push(null),t.push(this.right)}balanced(e,t){return e.size>2*t.size||t.size>2*e.size?Se.of(this.break?[e,null,t]:[e,t]):(this.left=Gn(this.left,e),this.right=Gn(this.right,t),this.setHeight(e.height+t.height),this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,i=!1,s){let{left:o,right:r}=this,l=t+o.length+this.break,a=null;return s&&s.from<=t+o.length&&s.more?a=o=o.updateHeight(e,t,i,s):o.updateHeight(e,t,i),s&&s.from<=l+r.length&&s.more?a=r=r.updateHeight(e,l,i,s):r.updateHeight(e,l,i),a?this.balanced(o,r):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function O2(n,e){let t,i;n[e]==null&&(t=n[e-1])instanceof de&&(i=n[e+1])instanceof de&&n.splice(e-1,3,new de(t.length+1+i.length))}const n6=5;class po{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let i=Math.min(t,this.lineEnd),s=this.nodes[this.nodes.length-1];s instanceof ze?s.length+=i-this.pos:(i>this.pos||!this.isCovered)&&this.nodes.push(new ze(i-this.pos,-1)),this.writtenTo=i,t>i&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,i){if(e<t||i.heightRelevant){let s=i.widget?i.widget.estimatedHeight:0,o=i.widget?i.widget.lineBreaks:0;s<0&&(s=this.oracle.lineHeight);let r=t-e;i.block?this.addBlock(new ua(r,s,i)):(r||o||s>=n6)&&this.addLineDeco(s,o,r)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenTo<e&&((this.writtenTo<e-1||this.nodes[this.nodes.length-1]==null)&&this.nodes.push(this.blankContent(this.writtenTo,e-1)),this.nodes.push(null)),this.pos>e&&this.nodes.push(new ze(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,t){let i=new de(t-e);return this.oracle.doc.lineAt(e).to==t&&(i.flags|=4),i}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof ze)return e;let t=new ze(0,-1);return this.nodes.push(t),t}addBlock(e){this.enterLine();let t=e.deco;t&&t.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,t&&t.endSide>0&&(this.covering=e)}addLineDeco(e,t,i){let s=this.ensureLine();s.length+=i,s.collapsed+=i,s.widgetHeight=Math.max(s.widgetHeight,e),s.breaks+=t,this.writtenTo=this.pos=this.pos+i}finish(e){let t=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(t instanceof ze)&&!this.isCovered?this.nodes.push(new ze(0,-1)):(this.writtenTo<this.pos||t==null)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos));let i=e;for(let s of this.nodes)s instanceof ze&&s.updateHeight(this.oracle,i),i+=s?s.length:1;return this.nodes}static build(e,t,i,s){let o=new po(i,e);return j.spans(t,i,s,o,0),o.finish(i)}}function s6(n,e,t){let i=new o6;return j.compare(n,e,t,i,0),i.changes}class o6{constructor(){this.changes=[]}compareRange(){}comparePoint(e,t,i,s){(e<t||i&&i.heightRelevant||s&&s.heightRelevant)&&Tn(e,t,this.changes,5)}}function r6(n,e){let t=n.getBoundingClientRect(),i=n.ownerDocument,s=i.defaultView||window,o=Math.max(0,t.left),r=Math.min(s.innerWidth,t.right),l=Math.max(0,t.top),a=Math.min(s.innerHeight,t.bottom);for(let c=n.parentNode;c&&c!=i.body;)if(c.nodeType==1){let h=c,f=window.getComputedStyle(h);if((h.scrollHeight>h.clientHeight||h.scrollWidth>h.clientWidth)&&f.overflow!="visible"){let d=h.getBoundingClientRect();o=Math.max(o,d.left),r=Math.min(r,d.right),l=Math.max(l,d.top),a=Math.min(c==n.parentNode?s.innerHeight:a,d.bottom)}c=f.position=="absolute"||f.position=="fixed"?h.offsetParent:h.parentNode}else if(c.nodeType==11)c=c.host;else break;return{left:o-t.left,right:Math.max(o,r)-t.left,top:l-(t.top+e),bottom:Math.max(l,a)-(t.top+e)}}function l6(n){let e=n.getBoundingClientRect(),t=n.ownerDocument.defaultView||window;return e.left<t.innerWidth&&e.right>0&&e.top<t.innerHeight&&e.bottom>0}function a6(n,e){let t=n.getBoundingClientRect();return{left:0,right:t.right-t.left,top:e,bottom:t.bottom-(t.top+e)}}class zs{constructor(e,t,i,s){this.from=e,this.to=t,this.size=i,this.displaySize=s}static same(e,t){if(e.length!=t.length)return!1;for(let i=0;i<e.length;i++){let s=e[i],o=t[i];if(s.from!=o.from||s.to!=o.to||s.size!=o.size)return!1}return!0}draw(e,t){return I.replace({widget:new c6(this.displaySize*(t?e.scaleY:e.scaleX),t)}).range(this.from,this.to)}}class c6 extends Dt{constructor(e,t){super(),this.size=e,this.vertical=t}eq(e){return e.size==this.size&&e.vertical==this.vertical}toDOM(){let e=document.createElement("div");return this.vertical?e.style.height=this.size+"px":(e.style.width=this.size+"px",e.style.height="2px",e.style.display="inline-block"),e}get estimatedHeight(){return this.vertical?this.size:-1}}class M2{constructor(e){this.state=e,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scrollTop=0,this.scrolledToBottom=!1,this.scaleX=1,this.scaleY=1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=D2,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=Z.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let t=e.facet(co).some(i=>typeof i!="function"&&i.class=="cm-lineWrapping");this.heightOracle=new e6(t),this.stateDeco=e.facet(Ni).filter(i=>typeof i!="function"),this.heightMap=Se.empty().applyChanges(this.stateDeco,q.empty,this.heightOracle.setDoc(e.doc),[new He(0,0,0,e.doc.length)]);for(let i=0;i<2&&(this.viewport=this.getViewport(0,null),!!this.updateForViewport());i++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=I.set(this.lineGaps.map(i=>i.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let i=0;i<=1;i++){let s=i?t.head:t.anchor;if(!e.some(({from:o,to:r})=>s>=o&&s<=r)){let{from:o,to:r}=this.lineBlockAt(s);e.push(new cn(o,r))}}return this.viewports=e.sort((i,s)=>i.from-s.from),this.updateScaler()}updateScaler(){let e=this.scaler;return this.scaler=this.heightMap.height<=7e6?D2:new go(this.heightOracle,this.heightMap,this.viewports),e.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(ki(e,this.scaler))})}update(e,t=null){this.state=e.state;let i=this.stateDeco;this.stateDeco=this.state.facet(Ni).filter(h=>typeof h!="function");let s=e.changedRanges,o=He.extendWithRanges(s,s6(i,this.stateDeco,e?e.changes:le.empty(this.state.doc.length))),r=this.heightMap.height,l=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);_2(),this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),o),(this.heightMap.height!=r||li)&&(e.flags|=2),l?(this.scrollAnchorPos=e.changes.mapPos(l.from,-1),this.scrollAnchorHeight=l.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=r);let a=o.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.head<a.from||t.range.head>a.to)||!this.viewportIsAppropriate(a))&&(a=this.getViewport(0,t));let c=a.from!=this.viewport.from||a.to!=this.viewport.to;this.viewport=a,e.flags|=this.updateForViewport(),(c||!e.changes.empty||e.flags&2)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(e.changes),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(Ul)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let t=e.contentDOM,i=window.getComputedStyle(t),s=this.heightOracle,o=i.whiteSpace;this.defaultTextDirection=i.direction=="rtl"?Z.RTL:Z.LTR;let r=this.heightOracle.mustRefreshForWrapping(o),l=t.getBoundingClientRect(),a=r||this.mustMeasureContent||this.contentDOMHeight!=l.height;this.contentDOMHeight=l.height,this.mustMeasureContent=!1;let c=0,h=0;if(l.width&&l.height){let{scaleX:_,scaleY:y}=bl(t,l);(_>.005&&Math.abs(this.scaleX-_)>.005||y>.005&&Math.abs(this.scaleY-y)>.005)&&(this.scaleX=_,this.scaleY=y,c|=16,r=a=!0)}let f=(parseInt(i.paddingTop)||0)*this.scaleY,d=(parseInt(i.paddingBottom)||0)*this.scaleY;(this.paddingTop!=f||this.paddingBottom!=d)&&(this.paddingTop=f,this.paddingBottom=d,c|=18),this.editorWidth!=e.scrollDOM.clientWidth&&(s.lineWrapping&&(a=!0),this.editorWidth=e.scrollDOM.clientWidth,c|=16);let p=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=p&&(this.scrollAnchorHeight=-1,this.scrollTop=p),this.scrolledToBottom=Sl(e.scrollDOM);let g=(this.printing?a6:r6)(t,this.paddingTop),m=g.top-this.pixelViewport.top,v=g.bottom-this.pixelViewport.bottom;this.pixelViewport=g;let x=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(x!=this.inView&&(this.inView=x,x&&(a=!0)),!this.inView&&!this.scrollTarget&&!l6(e.dom))return 0;let b=l.width;if((this.contentDOMWidth!=b||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=l.width,this.editorHeight=e.scrollDOM.clientHeight,c|=16),a){let _=e.docView.measureVisibleLineHeights(this.viewport);if(s.mustRefreshForHeights(_)&&(r=!0),r||s.lineWrapping&&Math.abs(b-this.contentDOMWidth)>s.charWidth){let{lineHeight:y,charWidth:S,textHeight:C}=e.docView.measureTextSize();r=y>0&&s.refresh(o,y,S,C,Math.max(5,b/S),_),r&&(e.docView.minWidth=0,c|=16)}m>0&&v>0?h=Math.max(m,v):m<0&&v<0&&(h=Math.min(m,v)),_2();for(let y of this.viewports){let S=y.from==this.viewport.from?_:e.docView.measureVisibleLineHeights(y);this.heightMap=(r?Se.empty().applyChanges(this.stateDeco,q.empty,this.heightOracle,[new He(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(s,0,r,new t6(y.from,S))}li&&(c|=2)}let k=!this.viewportIsAppropriate(this.viewport,h)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return k&&(c&2&&(c|=this.updateScaler()),this.viewport=this.getViewport(h,this.scrollTarget),c|=this.updateForViewport()),(c&2||k)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(r?[]:this.lineGaps,e)),c|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),c}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let i=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),s=this.heightMap,o=this.heightOracle,{visibleTop:r,visibleBottom:l}=this,a=new cn(s.lineAt(r-i*1e3,J.ByHeight,o,0,0).from,s.lineAt(l+(1-i)*1e3,J.ByHeight,o,0,0).to);if(t){let{head:c}=t.range;if(c<a.from||c>a.to){let h=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),f=s.lineAt(c,J.ByPos,o,0,0),d;t.y=="center"?d=(f.top+f.bottom)/2-h/2:t.y=="start"||t.y=="nearest"&&c<a.from?d=f.top:d=f.bottom-h,a=new cn(s.lineAt(d-1e3/2,J.ByHeight,o,0,0).from,s.lineAt(d+h+1e3/2,J.ByHeight,o,0,0).to)}}return a}mapViewport(e,t){let i=t.mapPos(e.from,-1),s=t.mapPos(e.to,1);return new cn(this.heightMap.lineAt(i,J.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(s,J.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:e,to:t},i=0){if(!this.inView)return!0;let{top:s}=this.heightMap.lineAt(e,J.ByPos,this.heightOracle,0,0),{bottom:o}=this.heightMap.lineAt(t,J.ByPos,this.heightOracle,0,0),{visibleTop:r,visibleBottom:l}=this;return(e==0||s<=r-Math.max(10,Math.min(-i,250)))&&(t==this.state.doc.length||o>=l+Math.max(10,Math.min(i,250)))&&s>r-2*1e3&&o<l+2*1e3}mapLineGaps(e,t){if(!e.length||t.empty)return e;let i=[];for(let s of e)t.touchesRange(s.from,s.to)||i.push(new zs(t.mapPos(s.from),t.mapPos(s.to),s.size,s.displaySize));return i}ensureLineGaps(e,t){let i=this.heightOracle.lineWrapping,s=i?1e4:2e3,o=s>>1,r=s<<1;if(this.defaultTextDirection!=Z.LTR&&!i)return[];let l=[],a=(h,f,d,p)=>{if(f-h<o)return;let g=this.state.selection.main,m=[g.from];g.empty||m.push(g.to);for(let x of m)if(x>h&&x<f){a(h,x-10,d,p),a(x+10,f,d,p);return}let v=u6(e,x=>x.from>=d.from&&x.to<=d.to&&Math.abs(x.from-h)<o&&Math.abs(x.to-f)<o&&!m.some(b=>x.from<b&&x.to>b));if(!v){if(f<d.to&&t&&i&&t.visibleRanges.some(k=>k.from<=f&&k.to>=f)){let k=t.moveToLineBoundary(M.cursor(f),!1,!0).head;k>h&&(f=k)}let x=this.gapSize(d,h,f,p),b=i||x<2e6?x:2e6;v=new zs(h,f,x,b)}l.push(v)},c=h=>{if(h.length<r||h.type!=ke.Text)return;let f=h6(h.from,h.to,this.stateDeco);if(f.total<r)return;let d=this.scrollTarget?this.scrollTarget.range.head:null,p,g;if(i){let m=s/this.heightOracle.lineLength*this.heightOracle.lineHeight,v,x;if(d!=null){let b=un(f,d),k=((this.visibleBottom-this.visibleTop)/2+m)/h.height;v=b-k,x=b+k}else v=(this.visibleTop-h.top-m)/h.height,x=(this.visibleBottom-h.top+m)/h.height;p=hn(f,v),g=hn(f,x)}else{let m=f.total*this.heightOracle.charWidth,v=s*this.heightOracle.charWidth,x=0;if(m>2e6)for(let S of e)S.from>=h.from&&S.from<h.to&&S.size!=S.displaySize&&S.from*this.heightOracle.charWidth+x<this.pixelViewport.left&&(x=S.size-S.displaySize);let b=this.pixelViewport.left+x,k=this.pixelViewport.right+x,_,y;if(d!=null){let S=un(f,d),C=((k-b)/2+v)/m;_=S-C,y=S+C}else _=(b-v)/m,y=(k+v)/m;p=hn(f,_),g=hn(f,y)}p>h.from&&a(h.from,p,h,f),g<h.to&&a(g,h.to,h,f)};for(let h of this.viewportLines)Array.isArray(h.type)?h.type.forEach(c):c(h);return l}gapSize(e,t,i,s){let o=un(s,i)-un(s,t);return this.heightOracle.lineWrapping?e.height*o:s.total*this.heightOracle.charWidth*o}updateLineGaps(e){zs.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=I.set(e.map(t=>t.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(e){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let i=[];j.spans(t,this.viewport.from,this.viewport.to,{span(o,r){i.push({from:o,to:r})},point(){}},20);let s=0;if(i.length!=this.visibleRanges.length)s=12;else for(let o=0;o<i.length&&!(s&8);o++){let r=this.visibleRanges[o],l=i[o];(r.from!=l.from||r.to!=l.to)&&(s|=4,e&&e.mapPos(r.from,-1)==l.from&&e.mapPos(r.to,1)==l.to||(s|=8))}return this.visibleRanges=i,s}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(t=>t.from<=e&&t.to>=e)||ki(this.heightMap.lineAt(e,J.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return e>=this.viewportLines[0].top&&e<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(t=>t.top<=e&&t.bottom>=e)||ki(this.heightMap.lineAt(this.scaler.fromDOM(e),J.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let t=this.lineBlockAtHeight(e+8);return t.from>=this.viewport.from||this.viewportLines[0].top-e>200?t:this.viewportLines[0]}elementAtHeight(e){return ki(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class cn{constructor(e,t){this.from=e,this.to=t}}function h6(n,e,t){let i=[],s=n,o=0;return j.spans(t,n,e,{span(){},point(r,l){r>s&&(i.push({from:s,to:r}),o+=r-s),s=l}},20),s<e&&(i.push({from:s,to:e}),o+=e-s),{total:o,ranges:i}}function hn({total:n,ranges:e},t){if(t<=0)return e[0].from;if(t>=1)return e[e.length-1].to;let i=Math.floor(n*t);for(let s=0;;s++){let{from:o,to:r}=e[s],l=r-o;if(i<=l)return o+i;i-=l}}function un(n,e){let t=0;for(let{from:i,to:s}of n.ranges){if(e<=s){t+=e-i;break}t+=s-i}return t/n.total}function u6(n,e){for(let t of n)if(e(t))return t}const D2={toDOM(n){return n},fromDOM(n){return n},scale:1,eq(n){return n==this}};class go{constructor(e,t,i){let s=0,o=0,r=0;this.viewports=i.map(({from:l,to:a})=>{let c=t.lineAt(l,J.ByPos,e,0,0).top,h=t.lineAt(a,J.ByPos,e,0,0).bottom;return s+=h-c,{from:l,to:a,top:c,bottom:h,domTop:0,domBottom:0}}),this.scale=(7e6-s)/(t.height-s);for(let l of this.viewports)l.domTop=r+(l.top-o)*this.scale,r=l.domBottom=l.domTop+(l.bottom-l.top),o=l.bottom}toDOM(e){for(let t=0,i=0,s=0;;t++){let o=t<this.viewports.length?this.viewports[t]:null;if(!o||e<o.top)return s+(e-i)*this.scale;if(e<=o.bottom)return o.domTop+(e-o.top);i=o.bottom,s=o.domBottom}}fromDOM(e){for(let t=0,i=0,s=0;;t++){let o=t<this.viewports.length?this.viewports[t]:null;if(!o||e<o.domTop)return i+(e-s)/this.scale;if(e<=o.domBottom)return o.top+(e-o.domTop);i=o.bottom,s=o.domBottom}}eq(e){return e instanceof go?this.scale==e.scale&&this.viewports.length==e.viewports.length&&this.viewports.every((t,i)=>t.from==e.viewports[i].from&&t.to==e.viewports[i].to):!1}}function ki(n,e){if(e.scale==1)return n;let t=e.toDOM(n.top),i=e.toDOM(n.bottom);return new tt(n.from,n.length,t,i-t,Array.isArray(n._content)?n._content.map(s=>ki(s,e)):n._content)}const fn=L.define({combine:n=>n.join(" ")}),E0=L.define({combine:n=>n.indexOf(!0)>-1}),V0=St.newName(),fa=St.newName(),da=St.newName(),pa={"&light":"."+fa,"&dark":"."+da};function z0(n,e,t){return new St(e,{finish(i){return/&/.test(i)?i.replace(/&\w*/,s=>{if(s=="&")return n;if(!t||!t[s])throw new RangeError(`Unsupported selector: ${s}`);return t[s]}):n+" "+i}})}const f6=z0("."+V0,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0,overflowAnchor:"none"},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#ddd"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",zIndex:200},".cm-gutters-before":{insetInlineStart:0},".cm-gutters-after":{insetInlineEnd:0},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",border:"0px solid #ddd","&.cm-gutters-before":{borderRightWidth:"1px"},"&.cm-gutters-after":{borderLeftWidth:"1px"}},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0,zIndex:300},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-dialog":{padding:"2px 19px 4px 6px",position:"relative","& label":{fontSize:"80%"}},".cm-dialog-close":{position:"absolute",top:"3px",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",fontSize:"14px",padding:"0"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top",userSelect:"none"},".cm-highlightSpace":{backgroundImage:"radial-gradient(circle at 50% 55%, #aaa 20%, transparent 5%)",backgroundPosition:"center"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},pa),d6={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},Ls=V.ie&&V.ie_version<=11;class p6{constructor(e){this.view=e,this.active=!1,this.editContext=null,this.selectionRange=new Kf,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(t=>{for(let i of t)this.queue.push(i);(V.ie&&V.ie_version<=11||V.ios&&e.composing)&&t.some(i=>i.type=="childList"&&i.removedNodes.length||i.type=="characterData"&&i.oldValue.length>i.target.nodeValue.length)?this.flushSoon():this.flush()}),window.EditContext&&V.android&&e.constructor.EDIT_CONTEXT!==!1&&!(V.chrome&&V.chrome_version<126)&&(this.editContext=new m6(e),e.state.facet(ct)&&(e.contentDOM.editContext=this.editContext.editContext)),Ls&&(this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue:t.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var t;((t=this.view.docView)===null||t===void 0?void 0:t.lastUpdate)<Date.now()-75&&this.onResize()}),this.resizeScroll.observe(e.scrollDOM)),this.addWindowListeners(this.win=e.win),this.start(),typeof IntersectionObserver=="function"&&(this.intersection=new IntersectionObserver(t=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),t.length>0&&t[t.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(t=>{t.length>0&&t[t.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(e){(e.type=="change"||!e.type)&&!e.matches||(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((t,i)=>t!=e[i]))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:i}=this,s=this.selectionRange;if(i.state.facet(ct)?i.root.activeElement!=this.dom:!Dn(this.dom,s))return;let o=s.anchorNode&&i.docView.nearest(s.anchorNode);if(o&&o.ignoreEvent(e)){t||(this.selectionChanged=!1);return}(V.ie&&V.ie_version<=11||V.android&&V.chrome)&&!i.state.selection.main.empty&&s.focusNode&&Oi(s.focusNode,s.focusOffset,s.anchorNode,s.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=zi(e.root);if(!t)return!1;let i=V.safari&&e.root.nodeType==11&&e.root.activeElement==this.dom&&g6(this.view,t)||t;if(!i||this.selectionRange.eq(i))return!1;let s=Dn(this.dom,i);return s&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&Qf(this.dom,i)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),!1):(this.selectionRange.setRange(i),s&&(this.selectionChanged=!0),!0)}setSelectionRange(e,t){this.selectionRange.set(e.node,e.offset,t.node,t.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let e=0,t=null;for(let i=this.dom;i;)if(i.nodeType==1)!t&&e<this.scrollTargets.length&&this.scrollTargets[e]==i?e++:t||(t=this.scrollTargets.slice(0,e)),t&&t.push(i),i=i.assignedSlot||i.parentNode;else if(i.nodeType==11)i=i.host;else break;if(e<this.scrollTargets.length&&!t&&(t=this.scrollTargets.slice(0,e)),t){for(let i of this.scrollTargets)i.removeEventListener("scroll",this.onScroll);for(let i of this.scrollTargets=t)i.addEventListener("scroll",this.onScroll)}}ignore(e){if(!this.active)return e();try{return this.stop(),e()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,d6),Ls&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),Ls&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(e,t){var i;if(!this.delayedAndroidKey){let s=()=>{let o=this.delayedAndroidKey;o&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=o.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&o.force&&Zt(this.dom,o.key,o.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(s)}(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange<Date.now()-50||!!(!((i=this.delayedAndroidKey)===null||i===void 0)&&i.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame(()=>{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let t=-1,i=-1,s=!1;for(let o of e){let r=this.readMutation(o);r&&(r.typeOver&&(s=!0),t==-1?{from:t,to:i}=r:(t=Math.min(r.from,t),i=Math.max(r.to,i)))}return{from:t,to:i,typeOver:s}}readChange(){let{from:e,to:t,typeOver:i}=this.processRecords(),s=this.selectionChanged&&Dn(this.dom,this.selectionRange);if(e<0&&!s)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let o=new Pd(this.view,e,t,i);return this.view.docView.domChanged={newSel:o.newSel?o.newSel.main:null},o}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return this.view.requestMeasure(),!1;let i=this.view.state,s=ia(this.view,t);return this.view.state==i&&(t.domChanged||t.newSel&&!t.newSel.main.eq(this.view.state.selection.main))&&this.view.update([]),s}readMutation(e){let t=this.view.docView.nearest(e.target);if(!t||t.ignoreMutation(e))return null;if(t.markDirty(e.type=="attributes"),e.type=="attributes"&&(t.flags|=4),e.type=="childList"){let i=T2(t,e.previousSibling||e.target.previousSibling,-1),s=T2(t,e.nextSibling||e.target.nextSibling,1);return{from:i?t.posAfter(i):t.posAtStart,to:s?t.posBefore(s):t.posAtEnd,typeOver:!1}}else return e.type=="characterData"?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener?this.printQuery.addEventListener("change",this.onPrint):this.printQuery.addListener(this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener?this.printQuery.removeEventListener("change",this.onPrint):this.printQuery.removeListener(this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}update(e){this.editContext&&(this.editContext.update(e),e.startState.facet(ct)!=e.state.facet(ct)&&(e.view.contentDOM.editContext=e.state.facet(ct)?this.editContext.editContext:null))}destroy(){var e,t,i;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(t=this.gapIntersection)===null||t===void 0||t.disconnect(),(i=this.resizeScroll)===null||i===void 0||i.disconnect();for(let s of this.scrollTargets)s.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy())}}function T2(n,e,t){for(;e;){let i=X.get(e);if(i&&i.parent==n)return i;let s=e.parentNode;e=s!=n.dom?s:t>0?e.nextSibling:e.previousSibling}return null}function A2(n,e){let t=e.startContainer,i=e.startOffset,s=e.endContainer,o=e.endOffset,r=n.docView.domAtPos(n.state.selection.main.anchor);return Oi(r.node,r.offset,s,o)&&([t,i,s,o]=[s,o,t,i]),{anchorNode:t,anchorOffset:i,focusNode:s,focusOffset:o}}function g6(n,e){if(e.getComposedRanges){let s=e.getComposedRanges(n.root)[0];if(s)return A2(n,s)}let t=null;function i(s){s.preventDefault(),s.stopImmediatePropagation(),t=s.getTargetRanges()[0]}return n.contentDOM.addEventListener("beforeinput",i,!0),n.dom.ownerDocument.execCommand("indent"),n.contentDOM.removeEventListener("beforeinput",i,!0),t?A2(n,t):null}class m6{constructor(e){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.composing=null,this.resetRange(e.state);let t=this.editContext=new window.EditContext({text:e.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,e.state.selection.main.anchor))),selectionEnd:this.toContextPos(e.state.selection.main.head)});this.handlers.textupdate=i=>{let s=e.state.selection.main,{anchor:o,head:r}=s,l=this.toEditorPos(i.updateRangeStart),a=this.toEditorPos(i.updateRangeEnd);e.inputState.composing>=0&&!this.composing&&(this.composing={contextBase:i.updateRangeStart,editorBase:l,drifted:!1});let c={from:l,to:a,insert:q.of(i.text.split(`
|
|
10
|
-
`))};if(c.from==this.from&&o<this.from?c.from=o:c.to==this.to&&o>this.to&&(c.to=o),c.from==c.to&&!c.insert.length){let h=M.single(this.toEditorPos(i.selectionStart),this.toEditorPos(i.selectionEnd));h.main.eq(s)||e.dispatch({selection:h,userEvent:"select"});return}if((V.mac||V.android)&&c.from==r-1&&/^\. ?$/.test(i.text)&&e.contentDOM.getAttribute("autocorrect")=="off"&&(c={from:l,to:a,insert:q.of([i.text.replace("."," ")])}),this.pendingContextChange=c,!e.state.readOnly){let h=this.to-this.from+(c.to-c.from+c.insert.length);fo(e,c,M.single(this.toEditorPos(i.selectionStart,h),this.toEditorPos(i.selectionEnd,h)))}this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state))},this.handlers.characterboundsupdate=i=>{let s=[],o=null;for(let r=this.toEditorPos(i.rangeStart),l=this.toEditorPos(i.rangeEnd);r<l;r++){let a=e.coordsForChar(r);o=a&&new DOMRect(a.left,a.top,a.right-a.left,a.bottom-a.top)||o||new DOMRect,s.push(o)}t.updateCharacterBounds(i.rangeStart,s)},this.handlers.textformatupdate=i=>{let s=[];for(let o of i.getTextFormats()){let r=o.underlineStyle,l=o.underlineThickness;if(r!="None"&&l!="None"){let a=this.toEditorPos(o.rangeStart),c=this.toEditorPos(o.rangeEnd);if(a<c){let h=`text-decoration: underline ${r=="Dashed"?"dashed ":r=="Squiggle"?"wavy ":""}${l=="Thin"?1:2}px`;s.push(I.mark({attributes:{style:h}}).range(a,c))}}}e.dispatch({effects:Kl.of(I.set(s))})},this.handlers.compositionstart=()=>{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(e.inputState.composing=-1,e.inputState.compositionFirstChange=null,this.composing){let{drifted:i}=this.composing;this.composing=null,i&&this.reset(e.state)}};for(let i in this.handlers)t.addEventListener(i,this.handlers[i]);this.measureReq={read:i=>{this.editContext.updateControlBounds(i.contentDOM.getBoundingClientRect());let s=zi(i.root);s&&s.rangeCount&&this.editContext.updateSelectionBounds(s.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let t=0,i=!1,s=this.pendingContextChange;return e.changes.iterChanges((o,r,l,a,c)=>{if(i)return;let h=c.length-(r-o);if(s&&r>=s.to)if(s.from==o&&s.to==r&&s.insert.eq(c)){s=this.pendingContextChange=null,t+=h,this.to+=h;return}else s=null,this.revertPending(e.state);if(o+=t,r+=t,r<=this.from)this.from+=h,this.to+=h;else if(o<this.to){if(o<this.from||r>this.to||this.to-this.from+c.length>3e4){i=!0;return}this.editContext.updateText(this.toContextPos(o),this.toContextPos(r),c.toString()),this.to+=h}t+=h}),s&&!i&&this.revertPending(e.state),!i}update(e){let t=this.pendingContextChange,i=e.startState.selection.main;this.composing&&(this.composing.drifted||!e.changes.touchesRange(i.from,i.to)&&e.transactions.some(s=>!s.isUserEvent("input.type")&&s.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=!0,this.composing.editorBase=e.changes.mapPos(this.composing.editorBase)):!this.applyEdits(e)||!this.rangeIsValid(e.state)?(this.pendingContextChange=null,this.reset(e.state)):(e.docChanged||e.selectionSet||t)&&this.setSelection(e.state),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:t}=e.selection.main;this.from=Math.max(0,t-1e4),this.to=Math.min(e.doc.length,t+1e4)}reset(e){this.resetRange(e),this.editContext.updateText(0,this.editContext.text.length,e.doc.sliceString(this.from,this.to)),this.setSelection(e)}revertPending(e){let t=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(t.from),this.toContextPos(t.from+t.insert.length),e.doc.sliceString(t.from,t.to))}setSelection(e){let{main:t}=e.selection,i=this.toContextPos(Math.max(this.from,Math.min(this.to,t.anchor))),s=this.toContextPos(t.head);(this.editContext.selectionStart!=i||this.editContext.selectionEnd!=s)&&this.editContext.updateSelection(i,s)}rangeIsValid(e){let{head:t}=e.selection.main;return!(this.from>0&&t-this.from<500||this.to<e.doc.length&&this.to-t<500||this.to-this.from>1e4*3)}toEditorPos(e,t=this.to-this.from){e=Math.min(e,t);let i=this.composing;return i&&i.drifted?i.editorBase+(e-i.contextBase):e+this.from}toContextPos(e){let t=this.composing;return t&&t.drifted?t.contextBase+(e-t.editorBase):e-this.from}destroy(){for(let e in this.handlers)this.editContext.removeEventListener(e,this.handlers[e])}}class z{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return!!this.inputState&&this.inputState.composing>0}get compositionStarted(){return!!this.inputState&&this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){var t;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:i}=e;this.dispatchTransactions=e.dispatchTransactions||i&&(s=>s.forEach(o=>i(o,this)))||(s=>this.update(s)),this.dispatch=this.dispatch.bind(this),this._root=e.root||Xf(e.parent)||document,this.viewState=new M2(e.state||G.create(e)),e.scrollTo&&e.scrollTo.is(rn)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(Yt).map(s=>new Ps(s));for(let s of this.plugins)s.update(this);this.observer=new p6(this),this.inputState=new Nd(this),this.inputState.ensureHandlers(this.plugins),this.docView=new a2(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),!((t=document.fonts)===null||t===void 0)&&t.ready&&document.fonts.ready.then(()=>this.requestMeasure())}dispatch(...e){let t=e.length==1&&e[0]instanceof ae?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(t,this)}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let t=!1,i=!1,s,o=this.state;for(let d of e){if(d.startState!=o)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");o=d.state}if(this.destroyed){this.viewState.state=o;return}let r=this.hasFocus,l=0,a=null;e.some(d=>d.annotation(aa))?(this.inputState.notifiedFocused=r,l=1):r!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=r,a=ca(o,r),a||(l=1));let c=this.observer.delayedAndroidKey,h=null;if(c?(this.observer.clearDelayedAndroidKey(),h=this.observer.readChange(),(h&&!this.state.doc.eq(o.doc)||!this.state.selection.eq(o.selection))&&(h=null)):this.observer.clear(),o.facet(G.phrases)!=this.state.facet(G.phrases))return this.setState(o);s=Fn.create(this,o,e),s.flags|=l;let f=this.viewState.scrollTarget;try{this.updateState=2;for(let d of e){if(f&&(f=f.map(d.changes)),d.scrollIntoView){let{main:p}=d.state.selection;f=new ei(p.empty?p:M.cursor(p.head,p.head>p.anchor?-1:1))}for(let p of d.effects)p.is(rn)&&(f=p.value.clip(this.state))}this.viewState.update(s,f),this.bidiCache=jn.update(this.bidiCache,s.changes),s.empty||(this.updatePlugins(s),this.inputState.update(s)),t=this.docView.update(s),this.state.facet(bi)!=this.styleModules&&this.mountStyles(),i=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(t,e.some(d=>d.isUserEvent("select.pointer")))}finally{this.updateState=0}if(s.startState.facet(fn)!=s.state.facet(fn)&&(this.viewState.mustMeasureContent=!0),(t||i||f||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),t&&this.docViewUpdate(),!s.empty)for(let d of this.state.facet(T0))try{d(s)}catch(p){Te(this.state,p,"update listener")}(a||h)&&Promise.resolve().then(()=>{a&&this.state==a.startState&&this.dispatch(a),h&&!ia(this,h)&&c.force&&Zt(this.contentDOM,c.key,c.keyCode)})}setState(e){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let t=this.hasFocus;try{for(let i of this.plugins)i.destroy(this);this.viewState=new M2(e),this.plugins=e.facet(Yt).map(i=>new Ps(i)),this.pluginMap.clear();for(let i of this.plugins)i.update(this);this.docView.destroy(),this.docView=new a2(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(Yt),i=e.state.facet(Yt);if(t!=i){let s=[];for(let o of i){let r=t.indexOf(o);if(r<0)s.push(new Ps(o));else{let l=this.plugins[r];l.mustUpdate=e,s.push(l)}}for(let o of this.plugins)o.mustUpdate!=e&&o.destroy(this);this.plugins=s,this.pluginMap.clear()}else for(let s of this.plugins)s.mustUpdate=e;for(let s=0;s<this.plugins.length;s++)this.plugins[s].update(this);t!=i&&this.inputState.ensureHandlers(this.plugins)}docViewUpdate(){for(let e of this.plugins){let t=e.value;if(t&&t.docViewUpdate)try{t.docViewUpdate(this)}catch(i){Te(this.state,i,"doc view update listener")}}}measure(e=!0){if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,i=this.scrollDOM,s=i.scrollTop*this.scaleY,{scrollAnchorPos:o,scrollAnchorHeight:r}=this.viewState;Math.abs(s-this.viewState.scrollTop)>1&&(r=-1),this.viewState.scrollAnchorHeight=-1;try{for(let l=0;;l++){if(r<0)if(Sl(i))o=-1,r=this.viewState.heightMap.height;else{let p=this.viewState.scrollAnchorAt(s);o=p.from,r=p.top}this.updateState=1;let a=this.viewState.measure(this);if(!a&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(l>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let c=[];a&4||([this.measureRequests,c]=[c,this.measureRequests]);let h=c.map(p=>{try{return p.read(this)}catch(g){return Te(this.state,g),B2}}),f=Fn.create(this,this.state,[]),d=!1;f.flags|=a,t?t.flags|=a:t=f,this.updateState=2,f.empty||(this.updatePlugins(f),this.inputState.update(f),this.updateAttrs(),d=this.docView.update(f),d&&this.docViewUpdate());for(let p=0;p<c.length;p++)if(h[p]!=B2)try{let g=c[p];g.write&&g.write(h[p],this)}catch(g){Te(this.state,g)}if(d&&this.docView.updateSelection(!0),!f.viewportChanged&&this.measureRequests.length==0){if(this.viewState.editorHeight)if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,r=-1;continue}else{let g=(o<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(o).top)-r;if(g>1||g<-1){s=s+g,i.scrollTop=s/this.scaleY,r=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let l of this.state.facet(T0))l(t)}get themeClasses(){return V0+" "+(this.state.facet(E0)?da:fa)+" "+this.state.facet(fn)}updateAttrs(){let e=P2(this,Xl,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",writingsuggestions:"false",translate:"no",contenteditable:this.state.facet(ct)?"true":"false",class:"cm-content",style:`${V.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),P2(this,co,t);let i=this.observer.ignore(()=>{let s=C0(this.contentDOM,this.contentAttrs,t),o=C0(this.dom,this.editorAttrs,e);return s||o});return this.editorAttrs=e,this.contentAttrs=t,i}showAnnouncements(e){let t=!0;for(let i of e)for(let s of i.effects)if(s.is(z.announce)){t&&(this.announceDOM.textContent=""),t=!1;let o=this.announceDOM.appendChild(document.createElement("div"));o.textContent=s.value}}mountStyles(){this.styleModules=this.state.facet(bi);let e=this.state.facet(z.cspNonce);St.mount(this.root,this.styleModules.concat(f6).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let t=0;t<this.measureRequests.length;t++)if(this.measureRequests[t].key===e.key){this.measureRequests[t]=e;return}}this.measureRequests.push(e)}}plugin(e){let t=this.pluginMap.get(e);return(t===void 0||t&&t.plugin!=e)&&this.pluginMap.set(e,t=this.plugins.find(i=>i.plugin==e)||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,i){return Vs(this,e,d2(this,e,t,i))}moveByGroup(e,t){return Vs(this,e,d2(this,e,t,i=>Dd(this,e.head,i)))}visualLineSide(e,t){let i=this.bidiSpans(e),s=this.textDirectionAt(e.from),o=i[t?i.length-1:0];return M.cursor(o.side(t,s)+e.from,o.forward(!t,s)?1:-1)}moveToLineBoundary(e,t,i=!0){return Md(this,e,t,i)}moveVertically(e,t,i){return Vs(this,e,Td(this,e,t,i))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,t=0){return this.docView.posFromDOM(e,t)}posAtCoords(e,t=!0){return this.readMeasured(),ta(this,e,t)}coordsAtPos(e,t=1){this.readMeasured();let i=this.docView.coordsAt(e,t);if(!i||i.left==i.right)return i;let s=this.state.doc.lineAt(e),o=this.bidiSpans(s),r=o[bt.find(o,e-s.from,-1,t)];return gs(i,r.dir==Z.LTR==t>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(ql)||e<this.viewport.from||e>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>v6)return Rl(e.length);let t=this.textDirectionAt(e.from),i;for(let o of this.bidiCache)if(o.from==e.from&&o.dir==t&&(o.fresh||Nl(o.isolates,i=l2(this,e))))return o.order;i||(i=l2(this,e));let s=ud(e.text,t,i);return this.bidiCache.push(new jn(e.from,e.to,t,i,!0,s)),s}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||V.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{yl(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){return rn.of(new ei(typeof e=="number"?M.cursor(e):e,t.y,t.x,t.yMargin,t.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:t}=this.scrollDOM,i=this.viewState.scrollAnchorAt(e);return rn.of(new ei(M.cursor(i.from),"start","start",i.top-e,t,!0))}setTabFocusMode(e){e==null?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:typeof e=="boolean"?this.inputState.tabFocusMode=e?0:-1:this.inputState.tabFocusMode!=0&&(this.inputState.tabFocusMode=Date.now()+e)}static domEventHandlers(e){return re.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return re.define(()=>({}),{eventObservers:e})}static theme(e,t){let i=St.newName(),s=[fn.of(i),bi.of(z0(`.${i}`,e))];return t&&t.dark&&s.push(E0.of(!0)),s}static baseTheme(e){return Ft.lowest(bi.of(z0("."+V0,e,pa)))}static findFromDOM(e){var t;let i=e.querySelector(".cm-content"),s=i&&X.get(i)||X.get(e);return((t=s==null?void 0:s.rootView)===null||t===void 0?void 0:t.view)||null}}z.styleModule=bi;z.inputHandler=Gl;z.clipboardInputFilter=lo;z.clipboardOutputFilter=ao;z.scrollHandler=Yl;z.focusChangeEffect=jl;z.perLineTextDirection=ql;z.exceptionSink=Fl;z.updateListener=T0;z.editable=ct;z.mouseSelectionStyle=Wl;z.dragMovesSelection=$l;z.clickAddsSelectionRange=Hl;z.decorations=Ni;z.outerDecorations=Ql;z.atomicRanges=ho;z.bidiIsolatedRanges=Jl;z.scrollMargins=Zl;z.darkTheme=E0;z.cspNonce=L.define({combine:n=>n.length?n[0]:""});z.contentAttributes=co;z.editorAttributes=Xl;z.lineWrapping=z.contentAttributes.of({class:"cm-lineWrapping"});z.announce=$.define();const v6=4096,B2={};class jn{constructor(e,t,i,s,o,r){this.from=e,this.to=t,this.dir=i,this.isolates=s,this.fresh=o,this.order=r}static update(e,t){if(t.empty&&!e.some(o=>o.fresh))return e;let i=[],s=e.length?e[e.length-1].dir:Z.LTR;for(let o=Math.max(0,e.length-10);o<e.length;o++){let r=e[o];r.dir==s&&!t.touchesRange(r.from,r.to)&&i.push(new jn(t.mapPos(r.from,1),t.mapPos(r.to,-1),r.dir,r.isolates,!1,r.order))}return i}}function P2(n,e,t){for(let i=n.state.facet(e),s=i.length-1;s>=0;s--){let o=i[s],r=typeof o=="function"?o(n):o;r&&S0(r,t)}return t}const w6=V.mac?"mac":V.windows?"win":V.linux?"linux":"key";function x6(n,e){const t=n.split(/-(?!$)/);let i=t[t.length-1];i=="Space"&&(i=" ");let s,o,r,l;for(let a=0;a<t.length-1;++a){const c=t[a];if(/^(cmd|meta|m)$/i.test(c))l=!0;else if(/^a(lt)?$/i.test(c))s=!0;else if(/^(c|ctrl|control)$/i.test(c))o=!0;else if(/^s(hift)?$/i.test(c))r=!0;else if(/^mod$/i.test(c))e=="mac"?l=!0:o=!0;else throw new Error("Unrecognized modifier name: "+c)}return s&&(i="Alt-"+i),o&&(i="Ctrl-"+i),l&&(i="Meta-"+i),r&&(i="Shift-"+i),i}function dn(n,e,t){return e.altKey&&(n="Alt-"+n),e.ctrlKey&&(n="Ctrl-"+n),e.metaKey&&(n="Meta-"+n),t!==!1&&e.shiftKey&&(n="Shift-"+n),n}const b6=Ft.default(z.domEventHandlers({keydown(n,e){return ma(ga(e.state),n,e,"editor")}})),mo=L.define({enables:b6}),E2=new WeakMap;function ga(n){let e=n.facet(mo),t=E2.get(e);return t||E2.set(e,t=S6(e.reduce((i,s)=>i.concat(s),[]))),t}function y6(n,e,t){return ma(ga(n.state),e,n,t)}let vt=null;const k6=4e3;function S6(n,e=w6){let t=Object.create(null),i=Object.create(null),s=(r,l)=>{let a=i[r];if(a==null)i[r]=l;else if(a!=l)throw new Error("Key binding "+r+" is used both as a regular binding and as a multi-stroke prefix")},o=(r,l,a,c,h)=>{var f,d;let p=t[r]||(t[r]=Object.create(null)),g=l.split(/ (?!$)/).map(x=>x6(x,e));for(let x=1;x<g.length;x++){let b=g.slice(0,x).join(" ");s(b,!0),p[b]||(p[b]={preventDefault:!0,stopPropagation:!1,run:[k=>{let _=vt={view:k,prefix:b,scope:r};return setTimeout(()=>{vt==_&&(vt=null)},k6),!0}]})}let m=g.join(" ");s(m,!1);let v=p[m]||(p[m]={preventDefault:!1,stopPropagation:!1,run:((d=(f=p._any)===null||f===void 0?void 0:f.run)===null||d===void 0?void 0:d.slice())||[]});a&&v.run.push(a),c&&(v.preventDefault=!0),h&&(v.stopPropagation=!0)};for(let r of n){let l=r.scope?r.scope.split(" "):["editor"];if(r.any)for(let c of l){let h=t[c]||(t[c]=Object.create(null));h._any||(h._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:f}=r;for(let d in h)h[d].run.push(p=>f(p,L0))}let a=r[e]||r.key;if(a)for(let c of l)o(c,a,r.run,r.preventDefault,r.stopPropagation),r.shift&&o(c,"Shift-"+a,r.shift,r.preventDefault,r.stopPropagation)}return t}let L0=null;function ma(n,e,t,i){L0=e;let s=jf(e),o=Oe(s,0),r=et(o)==s.length&&s!=" ",l="",a=!1,c=!1,h=!1;vt&&vt.view==t&&vt.scope==i&&(l=vt.prefix+" ",sa.indexOf(e.keyCode)<0&&(c=!0,vt=null));let f=new Set,d=v=>{if(v){for(let x of v.run)if(!f.has(x)&&(f.add(x),x(t)))return v.stopPropagation&&(h=!0),!0;v.preventDefault&&(v.stopPropagation&&(h=!0),c=!0)}return!1},p=n[i],g,m;return p&&(d(p[l+dn(s,e,!r)])?a=!0:r&&(e.altKey||e.metaKey||e.ctrlKey)&&!(V.windows&&e.ctrlKey&&e.altKey)&&!(V.mac&&e.altKey&&!e.ctrlKey)&&(g=Ct[e.keyCode])&&g!=s?(d(p[l+dn(g,e,!0)])||e.shiftKey&&(m=Vi[e.keyCode])!=s&&m!=g&&d(p[l+dn(m,e,!1)]))&&(a=!0):r&&e.shiftKey&&d(p[l+dn(s,e,!0)])&&(a=!0),!a&&d(p._any)&&(a=!0)),c&&(a=!0),a&&h&&e.stopPropagation(),L0=null,a}class Xi{constructor(e,t,i,s,o){this.className=e,this.left=t,this.top=i,this.width=s,this.height=o}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,t){return t.className!=this.className?!1:(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",this.width!=null&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,t,i){if(i.empty){let s=e.coordsAtPos(i.head,i.assoc||1);if(!s)return[];let o=va(e);return[new Xi(t,s.left-o.left,s.top-o.top,null,s.bottom-s.top)]}else return C6(e,t,i)}}function va(n){let e=n.scrollDOM.getBoundingClientRect();return{left:(n.textDirection==Z.LTR?e.left:e.right-n.scrollDOM.clientWidth*n.scaleX)-n.scrollDOM.scrollLeft*n.scaleX,top:e.top-n.scrollDOM.scrollTop*n.scaleY}}function V2(n,e,t,i){let s=n.coordsAtPos(e,t*2);if(!s)return i;let o=n.dom.getBoundingClientRect(),r=(s.top+s.bottom)/2,l=n.posAtCoords({x:o.left+1,y:r}),a=n.posAtCoords({x:o.right-1,y:r});return l==null||a==null?i:{from:Math.max(i.from,Math.min(l,a)),to:Math.min(i.to,Math.max(l,a))}}function C6(n,e,t){if(t.to<=n.viewport.from||t.from>=n.viewport.to)return[];let i=Math.max(t.from,n.viewport.from),s=Math.min(t.to,n.viewport.to),o=n.textDirection==Z.LTR,r=n.contentDOM,l=r.getBoundingClientRect(),a=va(n),c=r.querySelector(".cm-line"),h=c&&window.getComputedStyle(c),f=l.left+(h?parseInt(h.paddingLeft)+Math.min(0,parseInt(h.textIndent)):0),d=l.right-(h?parseInt(h.paddingRight):0),p=B0(n,i,1),g=B0(n,s,-1),m=p.type==ke.Text?p:null,v=g.type==ke.Text?g:null;if(m&&(n.lineWrapping||p.widgetLineBreaks)&&(m=V2(n,i,1,m)),v&&(n.lineWrapping||g.widgetLineBreaks)&&(v=V2(n,s,-1,v)),m&&v&&m.from==v.from&&m.to==v.to)return b(k(t.from,t.to,m));{let y=m?k(t.from,null,m):_(p,!1),S=v?k(null,t.to,v):_(g,!0),C=[];return(m||p).to<(v||g).from-(m&&v?1:0)||p.widgetLineBreaks>1&&y.bottom+n.defaultLineHeight/2<S.top?C.push(x(f,y.bottom,d,S.top)):y.bottom<S.top&&n.elementAtHeight((y.bottom+S.top)/2).type==ke.Text&&(y.bottom=S.top=(y.bottom+S.top)/2),b(y).concat(C).concat(b(S))}function x(y,S,C,P){return new Xi(e,y-a.left,S-a.top,C-y,P-S)}function b({top:y,bottom:S,horizontal:C}){let P=[];for(let O=0;O<C.length;O+=2)P.push(x(C[O],y,C[O+1],S));return P}function k(y,S,C){let P=1e9,O=-1e9,w=[];function A(R,H,N,F,ie){let U=n.coordsAtPos(R,R==C.to?-2:2),Q=n.coordsAtPos(N,N==C.from?2:-2);!U||!Q||(P=Math.min(U.top,Q.top,P),O=Math.max(U.bottom,Q.bottom,O),ie==Z.LTR?w.push(o&&H?f:U.left,o&&F?d:Q.right):w.push(!o&&F?f:Q.left,!o&&H?d:U.right))}let T=y??C.from,D=S??C.to;for(let R of n.visibleRanges)if(R.to>T&&R.from<D)for(let H=Math.max(R.from,T),N=Math.min(R.to,D);;){let F=n.state.doc.lineAt(H);for(let ie of n.bidiSpans(F)){let U=ie.from+F.from,Q=ie.to+F.from;if(U>=N)break;Q>H&&A(Math.max(U,H),y==null&&U<=T,Math.min(Q,N),S==null&&Q>=D,ie.dir)}if(H=F.to+1,H>=N)break}return w.length==0&&A(T,y==null,D,S==null,n.textDirection),{top:P,bottom:O,horizontal:w}}function _(y,S){let C=l.top+(S?y.top:y.bottom);return{top:C,bottom:C,horizontal:[]}}}function _6(n,e){return n.constructor==e.constructor&&n.eq(e)}class O6{constructor(e,t){this.view=e,this.layer=t,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),t.above&&this.dom.classList.add("cm-layer-above"),t.class&&this.dom.classList.add(t.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),t.mount&&t.mount(this.dom,e)}update(e){e.startState.facet(Pn)!=e.state.facet(Pn)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}docViewUpdate(e){this.layer.updateOnDocViewUpdate!==!1&&e.requestMeasure(this.measureReq)}setOrder(e){let t=0,i=e.facet(Pn);for(;t<i.length&&i[t]!=this.layer;)t++;this.dom.style.zIndex=String((this.layer.above?150:-1)-t)}measure(){return this.layer.markers(this.view)}scale(){let{scaleX:e,scaleY:t}=this.view;(e!=this.scaleX||t!=this.scaleY)&&(this.scaleX=e,this.scaleY=t,this.dom.style.transform=`scale(${1/e}, ${1/t})`)}draw(e){if(e.length!=this.drawn.length||e.some((t,i)=>!_6(t,this.drawn[i]))){let t=this.dom.firstChild,i=0;for(let s of e)s.update&&t&&s.constructor&&this.drawn[i].constructor&&s.update(t,this.drawn[i])?(t=t.nextSibling,i++):this.dom.insertBefore(s.draw(),t);for(;t;){let s=t.nextSibling;t.remove(),t=s}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const Pn=L.define();function wa(n){return[re.define(e=>new O6(e,n)),Pn.of(n)]}const Ri=L.define({combine(n){return rt(n,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,t)=>Math.min(e,t),drawRangeCursor:(e,t)=>e||t})}});function M6(n={}){return[Ri.of(n),D6,T6,A6,Ul.of(!0)]}function xa(n){return n.startState.facet(Ri)!=n.state.facet(Ri)}const D6=wa({above:!0,markers(n){let{state:e}=n,t=e.facet(Ri),i=[];for(let s of e.selection.ranges){let o=s==e.selection.main;if(s.empty||t.drawRangeCursor){let r=o?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",l=s.empty?s:M.cursor(s.head,s.head>s.anchor?-1:1);for(let a of Xi.forRange(n,r,l))i.push(a)}}return i},update(n,e){n.transactions.some(i=>i.selection)&&(e.style.animationName=e.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let t=xa(n);return t&&z2(n.state,e),n.docChanged||n.selectionSet||t},mount(n,e){z2(e.state,n)},class:"cm-cursorLayer"});function z2(n,e){e.style.animationDuration=n.facet(Ri).cursorBlinkRate+"ms"}const T6=wa({above:!1,markers(n){return n.state.selection.ranges.map(e=>e.empty?[]:Xi.forRange(n,"cm-selectionBackground",e)).reduce((e,t)=>e.concat(t))},update(n,e){return n.docChanged||n.selectionSet||n.viewportChanged||xa(n)},class:"cm-selectionLayer"}),A6=Ft.highest(z.theme({".cm-line":{"& ::selection, &::selection":{backgroundColor:"transparent !important"},caretColor:"transparent !important"},".cm-content":{caretColor:"transparent !important","& :focus":{caretColor:"initial !important","&::selection, & ::selection":{backgroundColor:"Highlight !important"}}}})),ba=$.define({map(n,e){return n==null?null:e.mapPos(n)}}),Si=me.define({create(){return null},update(n,e){return n!=null&&(n=e.changes.mapPos(n)),e.effects.reduce((t,i)=>i.is(ba)?i.value:t,n)}}),B6=re.fromClass(class{constructor(n){this.view=n,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(n){var e;let t=n.state.field(Si);t==null?this.cursor!=null&&((e=this.cursor)===null||e===void 0||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(n.startState.field(Si)!=t||n.docChanged||n.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:n}=this,e=n.state.field(Si),t=e!=null&&n.coordsAtPos(e);if(!t)return null;let i=n.scrollDOM.getBoundingClientRect();return{left:t.left-i.left+n.scrollDOM.scrollLeft*n.scaleX,top:t.top-i.top+n.scrollDOM.scrollTop*n.scaleY,height:t.bottom-t.top}}drawCursor(n){if(this.cursor){let{scaleX:e,scaleY:t}=this.view;n?(this.cursor.style.left=n.left/e+"px",this.cursor.style.top=n.top/t+"px",this.cursor.style.height=n.height/t+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(n){this.view.state.field(Si)!=n&&this.view.dispatch({effects:ba.of(n)})}},{eventObservers:{dragover(n){this.setDropPos(this.view.posAtCoords({x:n.clientX,y:n.clientY}))},dragleave(n){(n.target==this.view.contentDOM||!this.view.contentDOM.contains(n.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function P6(){return[Si,B6]}function L2(n,e,t,i,s){e.lastIndex=0;for(let o=n.iterRange(t,i),r=t,l;!o.next().done;r+=o.value.length)if(!o.lineBreak)for(;l=e.exec(o.value);)s(r+l.index,l)}function E6(n,e){let t=n.visibleRanges;if(t.length==1&&t[0].from==n.viewport.from&&t[0].to==n.viewport.to)return t;let i=[];for(let{from:s,to:o}of t)s=Math.max(n.state.doc.lineAt(s).from,s-e),o=Math.min(n.state.doc.lineAt(o).to,o+e),i.length&&i[i.length-1].to>=s?i[i.length-1].to=o:i.push({from:s,to:o});return i}class V6{constructor(e){const{regexp:t,decoration:i,decorate:s,boundary:o,maxLength:r=1e3}=e;if(!t.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=t,s)this.addMatch=(l,a,c,h)=>s(h,c,c+l[0].length,l,a);else if(typeof i=="function")this.addMatch=(l,a,c,h)=>{let f=i(l,a,c);f&&h(c,c+l[0].length,f)};else if(i)this.addMatch=(l,a,c,h)=>h(c,c+l[0].length,i);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=o,this.maxLength=r}createDeco(e){let t=new ut,i=t.add.bind(t);for(let{from:s,to:o}of E6(e,this.maxLength))L2(e.state.doc,this.regexp,s,o,(r,l)=>this.addMatch(l,e,r,i));return t.finish()}updateDeco(e,t){let i=1e9,s=-1;return e.docChanged&&e.changes.iterChanges((o,r,l,a)=>{a>=e.view.viewport.from&&l<=e.view.viewport.to&&(i=Math.min(l,i),s=Math.max(a,s))}),e.viewportMoved||s-i>1e3?this.createDeco(e.view):s>-1?this.updateRange(e.view,t.map(e.changes),i,s):t}updateRange(e,t,i,s){for(let o of e.visibleRanges){let r=Math.max(o.from,i),l=Math.min(o.to,s);if(l>=r){let a=e.state.doc.lineAt(r),c=a.to<l?e.state.doc.lineAt(l):a,h=Math.max(o.from,a.from),f=Math.min(o.to,c.to);if(this.boundary){for(;r>a.from;r--)if(this.boundary.test(a.text[r-1-a.from])){h=r;break}for(;l<c.to;l++)if(this.boundary.test(c.text[l-c.from])){f=l;break}}let d=[],p,g=(m,v,x)=>d.push(x.range(m,v));if(a==c)for(this.regexp.lastIndex=h-a.from;(p=this.regexp.exec(a.text))&&p.index<f-a.from;)this.addMatch(p,e,p.index+a.from,g);else L2(e.state.doc,this.regexp,h,f,(m,v)=>this.addMatch(v,e,m,g));t=t.update({filterFrom:h,filterTo:f,filter:(m,v)=>m<h||v>f,add:d})}}return t}}const N0=/x/.unicode!=null?"gu":"g",z6=new RegExp(`[\0-\b
|
|
11
|
-
--\u2028\u2029\uFEFF-]`,N0),L6={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let Ns=null;function N6(){var n;if(Ns==null&&typeof document<"u"&&document.body){let e=document.body.style;Ns=((n=e.tabSize)!==null&&n!==void 0?n:e.MozTabSize)!=null}return Ns||!1}const En=L.define({combine(n){let e=rt(n,{render:null,specialChars:z6,addSpecialChars:null});return(e.replaceTabs=!N6())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,N0)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,N0)),e}});function R6(n={}){return[En.of(n),I6()]}let N2=null;function I6(){return N2||(N2=re.fromClass(class{constructor(n){this.view=n,this.decorations=I.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(n.state.facet(En)),this.decorations=this.decorator.createDeco(n)}makeDecorator(n){return new V6({regexp:n.specialChars,decoration:(e,t,i)=>{let{doc:s}=t.state,o=Oe(e[0],0);if(o==9){let r=s.lineAt(i),l=t.state.tabSize,a=ui(r.text,l,i-r.from);return I.replace({widget:new F6((l-a%l)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[o]||(this.decorationCache[o]=I.replace({widget:new W6(n,o)}))},boundary:n.replaceTabs?void 0:/[^]/})}update(n){let e=n.state.facet(En);n.startState.facet(En)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(n.view)):this.decorations=this.decorator.updateDeco(n,this.decorations)}},{decorations:n=>n.decorations}))}const H6="•";function $6(n){return n>=32?H6:n==10?"":String.fromCharCode(9216+n)}class W6 extends Dt{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=$6(this.code),i=e.state.phrase("Control character")+" "+(L6[this.code]||"0x"+this.code.toString(16)),s=this.options.render&&this.options.render(this.code,i,t);if(s)return s;let o=document.createElement("span");return o.textContent=t,o.title=i,o.setAttribute("aria-label",i),o.className="cm-specialChar",o}ignoreEvent(){return!1}}class F6 extends Dt{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}function G6(){return q6}const j6=I.line({class:"cm-activeLine"}),q6=re.fromClass(class{constructor(n){this.decorations=this.getDeco(n)}update(n){(n.docChanged||n.selectionSet)&&(this.decorations=this.getDeco(n.view))}getDeco(n){let e=-1,t=[];for(let i of n.state.selection.ranges){let s=n.lineBlockAt(i.head);s.from>e&&(t.push(j6.range(s.from)),e=s.from)}return I.set(t)}},{decorations:n=>n.decorations}),R0=2e3;function U6(n,e,t){let i=Math.min(e.line,t.line),s=Math.max(e.line,t.line),o=[];if(e.off>R0||t.off>R0||e.col<0||t.col<0){let r=Math.min(e.off,t.off),l=Math.max(e.off,t.off);for(let a=i;a<=s;a++){let c=n.doc.line(a);c.length<=l&&o.push(M.range(c.from+r,c.to+l))}}else{let r=Math.min(e.col,t.col),l=Math.max(e.col,t.col);for(let a=i;a<=s;a++){let c=n.doc.line(a),h=m0(c.text,r,n.tabSize,!0);if(h<0)o.push(M.cursor(c.to));else{let f=m0(c.text,l,n.tabSize);o.push(M.range(c.from+h,c.from+f))}}}return o}function Y6(n,e){let t=n.coordsAtPos(n.viewport.from);return t?Math.round(Math.abs((t.left-e)/n.defaultCharacterWidth)):-1}function R2(n,e){let t=n.posAtCoords({x:e.clientX,y:e.clientY},!1),i=n.state.doc.lineAt(t),s=t-i.from,o=s>R0?-1:s==i.length?Y6(n,e.clientX):ui(i.text,n.state.tabSize,t-i.from);return{line:i.number,col:o,off:s}}function K6(n,e){let t=R2(n,e),i=n.state.selection;return t?{update(s){if(s.docChanged){let o=s.changes.mapPos(s.startState.doc.line(t.line).from),r=s.state.doc.lineAt(o);t={line:r.number,col:t.col,off:Math.min(t.off,r.length)},i=i.map(s.changes)}},get(s,o,r){let l=R2(n,s);if(!l)return i;let a=U6(n.state,t,l);return a.length?r?M.create(a.concat(i.ranges)):M.create(a):i}}:null}function X6(n){let e=t=>t.altKey&&t.button==0;return z.mouseSelectionStyle.of((t,i)=>e(i)?K6(t,i):null)}const Q6={Alt:[18,n=>!!n.altKey],Control:[17,n=>!!n.ctrlKey],Shift:[16,n=>!!n.shiftKey],Meta:[91,n=>!!n.metaKey]},J6={style:"cursor: crosshair"};function Z6(n={}){let[e,t]=Q6[n.key||"Alt"],i=re.fromClass(class{constructor(s){this.view=s,this.isDown=!1}set(s){this.isDown!=s&&(this.isDown=s,this.view.update([]))}},{eventObservers:{keydown(s){this.set(s.keyCode==e||t(s))},keyup(s){(s.keyCode==e||!t(s))&&this.set(!1)},mousemove(s){this.set(t(s))}}});return[i,z.contentAttributes.of(s=>{var o;return!((o=s.plugin(i))===null||o===void 0)&&o.isDown?J6:null})]}const mi="-10000px";class ya{constructor(e,t,i,s){this.facet=t,this.createTooltipView=i,this.removeTooltipView=s,this.input=e.state.facet(t),this.tooltips=this.input.filter(r=>r);let o=null;this.tooltipViews=this.tooltips.map(r=>o=i(r,o))}update(e,t){var i;let s=e.state.facet(this.facet),o=s.filter(a=>a);if(s===this.input){for(let a of this.tooltipViews)a.update&&a.update(e);return!1}let r=[],l=t?[]:null;for(let a=0;a<o.length;a++){let c=o[a],h=-1;if(c){for(let f=0;f<this.tooltips.length;f++){let d=this.tooltips[f];d&&d.create==c.create&&(h=f)}if(h<0)r[a]=this.createTooltipView(c,a?r[a-1]:null),l&&(l[a]=!!c.above);else{let f=r[a]=this.tooltipViews[h];l&&(l[a]=t[h]),f.update&&f.update(e)}}}for(let a of this.tooltipViews)r.indexOf(a)<0&&(this.removeTooltipView(a),(i=a.destroy)===null||i===void 0||i.call(a));return t&&(l.forEach((a,c)=>t[c]=a),t.length=l.length),this.input=s,this.tooltips=o,this.tooltipViews=r,!0}}function e4(n){let e=n.dom.ownerDocument.documentElement;return{top:0,left:0,bottom:e.clientHeight,right:e.clientWidth}}const Rs=L.define({combine:n=>{var e,t,i;return{position:V.ios?"absolute":((e=n.find(s=>s.position))===null||e===void 0?void 0:e.position)||"fixed",parent:((t=n.find(s=>s.parent))===null||t===void 0?void 0:t.parent)||null,tooltipSpace:((i=n.find(s=>s.tooltipSpace))===null||i===void 0?void 0:i.tooltipSpace)||e4}}}),I2=new WeakMap,vo=re.fromClass(class{constructor(n){this.view=n,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let e=n.state.facet(Rs);this.position=e.position,this.parent=e.parent,this.classes=n.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver=typeof ResizeObserver=="function"?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new ya(n,wo,(t,i)=>this.createTooltip(t,i),t=>{this.resizeObserver&&this.resizeObserver.unobserve(t.dom),t.dom.remove()}),this.above=this.manager.tooltips.map(t=>!!t.above),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(t=>{Date.now()>this.lastTransaction-50&&t.length>0&&t[t.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),n.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let n of this.manager.tooltipViews)this.intersectionObserver.observe(n.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(n){n.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(n,this.above);e&&this.observeIntersection();let t=e||n.geometryChanged,i=n.state.facet(Rs);if(i.position!=this.position&&!this.madeAbsolute){this.position=i.position;for(let s of this.manager.tooltipViews)s.dom.style.position=this.position;t=!0}if(i.parent!=this.parent){this.parent&&this.container.remove(),this.parent=i.parent,this.createContainer();for(let s of this.manager.tooltipViews)this.container.appendChild(s.dom);t=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);t&&this.maybeMeasure()}createTooltip(n,e){let t=n.create(this.view),i=e?e.dom:null;if(t.dom.classList.add("cm-tooltip"),n.arrow&&!t.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let s=document.createElement("div");s.className="cm-tooltip-arrow",t.dom.appendChild(s)}return t.dom.style.position=this.position,t.dom.style.top=mi,t.dom.style.left="0px",this.container.insertBefore(t.dom,i),t.mount&&t.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(t.dom),t}destroy(){var n,e,t;this.view.win.removeEventListener("resize",this.measureSoon);for(let i of this.manager.tooltipViews)i.dom.remove(),(n=i.destroy)===null||n===void 0||n.call(i);this.parent&&this.container.remove(),(e=this.resizeObserver)===null||e===void 0||e.disconnect(),(t=this.intersectionObserver)===null||t===void 0||t.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let n=1,e=1,t=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:o}=this.manager.tooltipViews[0];if(V.gecko)t=o.offsetParent!=this.container.ownerDocument.body;else if(o.style.top==mi&&o.style.left=="0px"){let r=o.getBoundingClientRect();t=Math.abs(r.top+1e4)>1||Math.abs(r.left)>1}}if(t||this.position=="absolute")if(this.parent){let o=this.parent.getBoundingClientRect();o.width&&o.height&&(n=o.width/this.parent.offsetWidth,e=o.height/this.parent.offsetHeight)}else({scaleX:n,scaleY:e}=this.view.viewState);let i=this.view.scrollDOM.getBoundingClientRect(),s=uo(this.view);return{visible:{left:i.left+s.left,top:i.top+s.top,right:i.right-s.right,bottom:i.bottom-s.bottom},parent:this.parent?this.container.getBoundingClientRect():this.view.dom.getBoundingClientRect(),pos:this.manager.tooltips.map((o,r)=>{let l=this.manager.tooltipViews[r];return l.getCoords?l.getCoords(o.pos):this.view.coordsAtPos(o.pos)}),size:this.manager.tooltipViews.map(({dom:o})=>o.getBoundingClientRect()),space:this.view.state.facet(Rs).tooltipSpace(this.view),scaleX:n,scaleY:e,makeAbsolute:t}}writeMeasure(n){var e;if(n.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let l of this.manager.tooltipViews)l.dom.style.position="absolute"}let{visible:t,space:i,scaleX:s,scaleY:o}=n,r=[];for(let l=0;l<this.manager.tooltips.length;l++){let a=this.manager.tooltips[l],c=this.manager.tooltipViews[l],{dom:h}=c,f=n.pos[l],d=n.size[l];if(!f||a.clip!==!1&&(f.bottom<=Math.max(t.top,i.top)||f.top>=Math.min(t.bottom,i.bottom)||f.right<Math.max(t.left,i.left)-.1||f.left>Math.min(t.right,i.right)+.1)){h.style.top=mi;continue}let p=a.arrow?c.dom.querySelector(".cm-tooltip-arrow"):null,g=p?7:0,m=d.right-d.left,v=(e=I2.get(c))!==null&&e!==void 0?e:d.bottom-d.top,x=c.offset||i4,b=this.view.textDirection==Z.LTR,k=d.width>i.right-i.left?b?i.left:i.right-d.width:b?Math.max(i.left,Math.min(f.left-(p?14:0)+x.x,i.right-m)):Math.min(Math.max(i.left,f.left-m+(p?14:0)-x.x),i.right-m),_=this.above[l];!a.strictSide&&(_?f.top-v-g-x.y<i.top:f.bottom+v+g+x.y>i.bottom)&&_==i.bottom-f.bottom>f.top-i.top&&(_=this.above[l]=!_);let y=(_?f.top-i.top:i.bottom-f.bottom)-g;if(y<v&&c.resize!==!1){if(y<this.view.defaultLineHeight){h.style.top=mi;continue}I2.set(c,v),h.style.height=(v=y)/o+"px"}else h.style.height&&(h.style.height="");let S=_?f.top-v-g-x.y:f.bottom+g+x.y,C=k+m;if(c.overlap!==!0)for(let P of r)P.left<C&&P.right>k&&P.top<S+v&&P.bottom>S&&(S=_?P.top-v-2-g:P.bottom+g+2);if(this.position=="absolute"?(h.style.top=(S-n.parent.top)/o+"px",H2(h,(k-n.parent.left)/s)):(h.style.top=S/o+"px",H2(h,k/s)),p){let P=f.left+(b?x.x:-x.x)-(k+14-7);p.style.left=P/s+"px"}c.overlap!==!0&&r.push({left:k,top:S,right:C,bottom:S+v}),h.classList.toggle("cm-tooltip-above",_),h.classList.toggle("cm-tooltip-below",!_),c.positioned&&c.positioned(n.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let n of this.manager.tooltipViews)n.dom.style.top=mi}},{eventObservers:{scroll(){this.maybeMeasure()}}});function H2(n,e){let t=parseInt(n.style.left,10);(isNaN(t)||Math.abs(e-t)>1)&&(n.style.left=e+"px")}const t4=z.baseTheme({".cm-tooltip":{zIndex:500,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),i4={x:0,y:0},wo=L.define({enables:[vo,t4]}),qn=L.define({combine:n=>n.reduce((e,t)=>e.concat(t),[])});class ws{static create(e){return new ws(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new ya(e,qn,(t,i)=>this.createHostedView(t,i),t=>t.dom.remove())}createHostedView(e,t){let i=e.create(this.view);return i.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(i.dom,t?t.dom.nextSibling:this.dom.firstChild),this.mounted&&i.mount&&i.mount(this.view),i}mount(e){for(let t of this.manager.tooltipViews)t.mount&&t.mount(e);this.mounted=!0}positioned(e){for(let t of this.manager.tooltipViews)t.positioned&&t.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let t of this.manager.tooltipViews)(e=t.destroy)===null||e===void 0||e.call(t)}passProp(e){let t;for(let i of this.manager.tooltipViews){let s=i[e];if(s!==void 0){if(t===void 0)t=s;else if(t!==s)return}}return t}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const n4=wo.compute([qn],n=>{let e=n.facet(qn);return e.length===0?null:{pos:Math.min(...e.map(t=>t.pos)),end:Math.max(...e.map(t=>{var i;return(i=t.end)!==null&&i!==void 0?i:t.pos})),create:ws.create,above:e[0].above,arrow:e.some(t=>t.arrow)}});class s4{constructor(e,t,i,s,o){this.view=e,this.source=t,this.field=i,this.setHover=s,this.hoverTime=o,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active.length)return;let e=Date.now()-this.lastMove.time;e<this.hoverTime?this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime-e):this.startHover()}startHover(){clearTimeout(this.restartTimeout);let{view:e,lastMove:t}=this,i=e.docView.nearest(t.target);if(!i)return;let s,o=1;if(i instanceof xt)s=i.posAtStart;else{if(s=e.posAtCoords(t),s==null)return;let l=e.coordsAtPos(s);if(!l||t.y<l.top||t.y>l.bottom||t.x<l.left-e.defaultCharacterWidth||t.x>l.right+e.defaultCharacterWidth)return;let a=e.bidiSpans(e.state.doc.lineAt(s)).find(h=>h.from<=s&&h.to>=s),c=a&&a.dir==Z.RTL?-1:1;o=t.x<l.left?-c:c}let r=this.source(e,s,o);if(r!=null&&r.then){let l=this.pending={pos:s};r.then(a=>{this.pending==l&&(this.pending=null,a&&!(Array.isArray(a)&&!a.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(a)?a:[a])}))},a=>Te(e.state,a,"hover tooltip"))}else r&&!(Array.isArray(r)&&!r.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(r)?r:[r])})}get tooltip(){let e=this.view.plugin(vo),t=e?e.manager.tooltips.findIndex(i=>i.create==ws.create):-1;return t>-1?e.manager.tooltipViews[t]:null}mousemove(e){var t,i;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:s,tooltip:o}=this;if(s.length&&o&&!o4(o.dom,e)||this.pending){let{pos:r}=s[0]||this.pending,l=(i=(t=s[0])===null||t===void 0?void 0:t.end)!==null&&i!==void 0?i:r;(r==l?this.view.posAtCoords(this.lastMove)!=r:!r4(this.view,r,l,e.clientX,e.clientY))&&(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:t}=this;if(t.length){let{tooltip:i}=this;i&&i.dom.contains(e.relatedTarget)?this.watchTooltipLeave(i.dom):this.view.dispatch({effects:this.setHover.of([])})}}watchTooltipLeave(e){let t=i=>{e.removeEventListener("mouseleave",t),this.active.length&&!this.view.dom.contains(i.relatedTarget)&&this.view.dispatch({effects:this.setHover.of([])})};e.addEventListener("mouseleave",t)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const pn=4;function o4(n,e){let{left:t,right:i,top:s,bottom:o}=n.getBoundingClientRect(),r;if(r=n.querySelector(".cm-tooltip-arrow")){let l=r.getBoundingClientRect();s=Math.min(l.top,s),o=Math.max(l.bottom,o)}return e.clientX>=t-pn&&e.clientX<=i+pn&&e.clientY>=s-pn&&e.clientY<=o+pn}function r4(n,e,t,i,s,o){let r=n.scrollDOM.getBoundingClientRect(),l=n.documentTop+n.documentPadding.top+n.contentHeight;if(r.left>i||r.right<i||r.top>s||Math.min(r.bottom,l)<s)return!1;let a=n.posAtCoords({x:i,y:s},!1);return a>=e&&a<=t}function l4(n,e={}){let t=$.define(),i=me.define({create(){return[]},update(s,o){if(s.length&&(e.hideOnChange&&(o.docChanged||o.selection)?s=[]:e.hideOn&&(s=s.filter(r=>!e.hideOn(o,r))),o.docChanged)){let r=[];for(let l of s){let a=o.changes.mapPos(l.pos,-1,ye.TrackDel);if(a!=null){let c=Object.assign(Object.create(null),l);c.pos=a,c.end!=null&&(c.end=o.changes.mapPos(c.end)),r.push(c)}}s=r}for(let r of o.effects)r.is(t)&&(s=r.value),r.is(a4)&&(s=[]);return s},provide:s=>qn.from(s)});return{active:i,extension:[i,re.define(s=>new s4(s,n,i,t,e.hoverTime||300)),n4]}}function ka(n,e){let t=n.plugin(vo);if(!t)return null;let i=t.manager.tooltips.indexOf(e);return i<0?null:t.manager.tooltipViews[i]}const a4=$.define(),$2=L.define({combine(n){let e,t;for(let i of n)e=e||i.topContainer,t=t||i.bottomContainer;return{topContainer:e,bottomContainer:t}}});function Ii(n,e){let t=n.plugin(Sa),i=t?t.specs.indexOf(e):-1;return i>-1?t.panels[i]:null}const Sa=re.fromClass(class{constructor(n){this.input=n.state.facet(Hi),this.specs=this.input.filter(t=>t),this.panels=this.specs.map(t=>t(n));let e=n.state.facet($2);this.top=new gn(n,!0,e.topContainer),this.bottom=new gn(n,!1,e.bottomContainer),this.top.sync(this.panels.filter(t=>t.top)),this.bottom.sync(this.panels.filter(t=>!t.top));for(let t of this.panels)t.dom.classList.add("cm-panel"),t.mount&&t.mount()}update(n){let e=n.state.facet($2);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new gn(n.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new gn(n.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let t=n.state.facet(Hi);if(t!=this.input){let i=t.filter(a=>a),s=[],o=[],r=[],l=[];for(let a of i){let c=this.specs.indexOf(a),h;c<0?(h=a(n.view),l.push(h)):(h=this.panels[c],h.update&&h.update(n)),s.push(h),(h.top?o:r).push(h)}this.specs=i,this.panels=s,this.top.sync(o),this.bottom.sync(r);for(let a of l)a.dom.classList.add("cm-panel"),a.mount&&a.mount()}else for(let i of this.panels)i.update&&i.update(n)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:n=>z.scrollMargins.of(e=>{let t=e.plugin(n);return t&&{top:t.top.scrollMargin(),bottom:t.bottom.scrollMargin()}})});class gn{constructor(e,t,i){this.view=e,this.top=t,this.container=i,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let t of this.panels)t.destroy&&e.indexOf(t)<0&&t.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let t=this.container||this.view.dom;t.insertBefore(this.dom,this.top?t.firstChild:null)}let e=this.dom.firstChild;for(let t of this.panels)if(t.dom.parentNode==this.dom){for(;e!=t.dom;)e=W2(e);e=e.nextSibling}else this.dom.insertBefore(t.dom,e);for(;e;)e=W2(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function W2(n){let e=n.nextSibling;return n.remove(),e}const Hi=L.define({enables:Sa});class dt extends Rt{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}dt.prototype.elementClass="";dt.prototype.toDOM=void 0;dt.prototype.mapMode=ye.TrackBefore;dt.prototype.startSide=dt.prototype.endSide=-1;dt.prototype.point=!0;const Vn=L.define(),c4=L.define(),h4={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>j.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{},side:"before"},Di=L.define();function u4(n){return[Ca(),Di.of({...h4,...n})]}const F2=L.define({combine:n=>n.some(e=>e)});function Ca(n){return[f4]}const f4=re.fromClass(class{constructor(n){this.view=n,this.domAfter=null,this.prevViewport=n.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters cm-gutters-before",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=n.state.facet(Di).map(e=>new j2(n,e)),this.fixed=!n.state.facet(F2);for(let e of this.gutters)e.config.side=="after"?this.getDOMAfter().appendChild(e.dom):this.dom.appendChild(e.dom);this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),n.scrollDOM.insertBefore(this.dom,n.contentDOM)}getDOMAfter(){return this.domAfter||(this.domAfter=document.createElement("div"),this.domAfter.className="cm-gutters cm-gutters-after",this.domAfter.setAttribute("aria-hidden","true"),this.domAfter.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.domAfter.style.position=this.fixed?"sticky":"",this.view.scrollDOM.appendChild(this.domAfter)),this.domAfter}update(n){if(this.updateGutters(n)){let e=this.prevViewport,t=n.view.viewport,i=Math.min(e.to,t.to)-Math.max(e.from,t.from);this.syncGutters(i<(t.to-t.from)*.8)}if(n.geometryChanged){let e=this.view.contentHeight/this.view.scaleY+"px";this.dom.style.minHeight=e,this.domAfter&&(this.domAfter.style.minHeight=e)}this.view.state.facet(F2)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":"",this.domAfter&&(this.domAfter.style.position=this.fixed?"sticky":"")),this.prevViewport=n.view.viewport}syncGutters(n){let e=this.dom.nextSibling;n&&(this.dom.remove(),this.domAfter&&this.domAfter.remove());let t=j.iter(this.view.state.facet(Vn),this.view.viewport.from),i=[],s=this.gutters.map(o=>new d4(o,this.view.viewport,-this.view.documentPadding.top));for(let o of this.view.viewportLineBlocks)if(i.length&&(i=[]),Array.isArray(o.type)){let r=!0;for(let l of o.type)if(l.type==ke.Text&&r){I0(t,i,l.from);for(let a of s)a.line(this.view,l,i);r=!1}else if(l.widget)for(let a of s)a.widget(this.view,l)}else if(o.type==ke.Text){I0(t,i,o.from);for(let r of s)r.line(this.view,o,i)}else if(o.widget)for(let r of s)r.widget(this.view,o);for(let o of s)o.finish();n&&(this.view.scrollDOM.insertBefore(this.dom,e),this.domAfter&&this.view.scrollDOM.appendChild(this.domAfter))}updateGutters(n){let e=n.startState.facet(Di),t=n.state.facet(Di),i=n.docChanged||n.heightChanged||n.viewportChanged||!j.eq(n.startState.facet(Vn),n.state.facet(Vn),n.view.viewport.from,n.view.viewport.to);if(e==t)for(let s of this.gutters)s.update(n)&&(i=!0);else{i=!0;let s=[];for(let o of t){let r=e.indexOf(o);r<0?s.push(new j2(this.view,o)):(this.gutters[r].update(n),s.push(this.gutters[r]))}for(let o of this.gutters)o.dom.remove(),s.indexOf(o)<0&&o.destroy();for(let o of s)o.config.side=="after"?this.getDOMAfter().appendChild(o.dom):this.dom.appendChild(o.dom);this.gutters=s}return i}destroy(){for(let n of this.gutters)n.destroy();this.dom.remove(),this.domAfter&&this.domAfter.remove()}},{provide:n=>z.scrollMargins.of(e=>{let t=e.plugin(n);if(!t||t.gutters.length==0||!t.fixed)return null;let i=t.dom.offsetWidth*e.scaleX,s=t.domAfter?t.domAfter.offsetWidth*e.scaleX:0;return e.textDirection==Z.LTR?{left:i,right:s}:{right:i,left:s}})});function G2(n){return Array.isArray(n)?n:[n]}function I0(n,e,t){for(;n.value&&n.from<=t;)n.from==t&&e.push(n.value),n.next()}class d4{constructor(e,t,i){this.gutter=e,this.height=i,this.i=0,this.cursor=j.iter(e.markers,t.from)}addElement(e,t,i){let{gutter:s}=this,o=(t.top-this.height)/e.scaleY,r=t.height/e.scaleY;if(this.i==s.elements.length){let l=new _a(e,r,o,i);s.elements.push(l),s.dom.appendChild(l.dom)}else s.elements[this.i].update(e,r,o,i);this.height=t.bottom,this.i++}line(e,t,i){let s=[];I0(this.cursor,s,t.from),i.length&&(s=s.concat(i));let o=this.gutter.config.lineMarker(e,t,s);o&&s.unshift(o);let r=this.gutter;s.length==0&&!r.config.renderEmptyElements||this.addElement(e,t,s)}widget(e,t){let i=this.gutter.config.widgetMarker(e,t.widget,t),s=i?[i]:null;for(let o of e.state.facet(c4)){let r=o(e,t.widget,t);r&&(s||(s=[])).push(r)}s&&this.addElement(e,t,s)}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}}class j2{constructor(e,t){this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let i in t.domEventHandlers)this.dom.addEventListener(i,s=>{let o=s.target,r;if(o!=this.dom&&this.dom.contains(o)){for(;o.parentNode!=this.dom;)o=o.parentNode;let a=o.getBoundingClientRect();r=(a.top+a.bottom)/2}else r=s.clientY;let l=e.lineBlockAtHeight(r-e.documentTop);t.domEventHandlers[i](e,l,s)&&s.preventDefault()});this.markers=G2(t.markers(e)),t.initialSpacer&&(this.spacer=new _a(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=G2(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let s=this.config.updateSpacer(this.spacer.markers[0],e);s!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[s])}let i=e.view.viewport;return!j.eq(this.markers,t,i.from,i.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):!1)}destroy(){for(let e of this.elements)e.destroy()}}class _a{constructor(e,t,i,s){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,i,s)}update(e,t,i,s){this.height!=t&&(this.height=t,this.dom.style.height=t+"px"),this.above!=i&&(this.dom.style.marginTop=(this.above=i)?i+"px":""),p4(this.markers,s)||this.setMarkers(e,s)}setMarkers(e,t){let i="cm-gutterElement",s=this.dom.firstChild;for(let o=0,r=0;;){let l=r,a=o<t.length?t[o++]:null,c=!1;if(a){let h=a.elementClass;h&&(i+=" "+h);for(let f=r;f<this.markers.length;f++)if(this.markers[f].compare(a)){l=f,c=!0;break}}else l=this.markers.length;for(;r<l;){let h=this.markers[r++];if(h.toDOM){h.destroy(s);let f=s.nextSibling;s.remove(),s=f}}if(!a)break;a.toDOM&&(c?s=s.nextSibling:this.dom.insertBefore(a.toDOM(e),s)),c&&r++}this.dom.className=i,this.markers=t}destroy(){this.setMarkers(null,[])}}function p4(n,e){if(n.length!=e.length)return!1;for(let t=0;t<n.length;t++)if(!n[t].compare(e[t]))return!1;return!0}const g4=L.define(),m4=L.define(),Kt=L.define({combine(n){return rt(n,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,t){let i=Object.assign({},e);for(let s in t){let o=i[s],r=t[s];i[s]=o?(l,a,c)=>o(l,a,c)||r(l,a,c):r}return i}})}});class Is extends dt{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function Hs(n,e){return n.state.facet(Kt).formatNumber(e,n.state)}const v4=Di.compute([Kt],n=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet(g4)},lineMarker(e,t,i){return i.some(s=>s.toDOM)?null:new Is(Hs(e,e.state.doc.lineAt(t.from).number))},widgetMarker:(e,t,i)=>{for(let s of e.state.facet(m4)){let o=s(e,t,i);if(o)return o}return null},lineMarkerChange:e=>e.startState.facet(Kt)!=e.state.facet(Kt),initialSpacer(e){return new Is(Hs(e,q2(e.state.doc.lines)))},updateSpacer(e,t){let i=Hs(t.view,q2(t.view.state.doc.lines));return i==e.number?e:new Is(i)},domEventHandlers:n.facet(Kt).domEventHandlers,side:"before"}));function w4(n={}){return[Kt.of(n),Ca(),v4]}function q2(n){let e=9;for(;e<n;)e=e*10+9;return e}const x4=new class extends dt{constructor(){super(...arguments),this.elementClass="cm-activeLineGutter"}},b4=Vn.compute(["selection"],n=>{let e=[],t=-1;for(let i of n.selection.ranges){let s=n.doc.lineAt(i.head).from;s>t&&(t=s,e.push(x4.range(s)))}return j.of(e)});function y4(){return b4}const Oa=1024;let k4=0;class $s{constructor(e,t){this.from=e,this.to=t}}class W{constructor(e={}){this.id=k4++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=Be.match(e)),t=>{let i=e(t);return i===void 0?null:[this,i]}}}W.closedBy=new W({deserialize:n=>n.split(" ")});W.openedBy=new W({deserialize:n=>n.split(" ")});W.group=new W({deserialize:n=>n.split(" ")});W.isolate=new W({deserialize:n=>{if(n&&n!="rtl"&&n!="ltr"&&n!="auto")throw new RangeError("Invalid value for isolate: "+n);return n||"auto"}});W.contextHash=new W({perNode:!0});W.lookAhead=new W({perNode:!0});W.mounted=new W({perNode:!0});class Un{constructor(e,t,i){this.tree=e,this.overlay=t,this.parser=i}static get(e){return e&&e.props&&e.props[W.mounted.id]}}const S4=Object.create(null);class Be{constructor(e,t,i,s=0){this.name=e,this.props=t,this.id=i,this.flags=s}static define(e){let t=e.props&&e.props.length?Object.create(null):S4,i=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),s=new Be(e.name||"",t,e.id,i);if(e.props){for(let o of e.props)if(Array.isArray(o)||(o=o(s)),o){if(o[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[o[0].id]=o[1]}}return s}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let t=this.prop(W.group);return t?t.indexOf(e)>-1:!1}return this.id==e}static match(e){let t=Object.create(null);for(let i in e)for(let s of i.split(" "))t[s]=e[i];return i=>{for(let s=i.prop(W.group),o=-1;o<(s?s.length:0);o++){let r=t[o<0?i.name:s[o]];if(r)return r}}}}Be.none=new Be("",Object.create(null),0,8);class xo{constructor(e){this.types=e;for(let t=0;t<e.length;t++)if(e[t].id!=t)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let t=[];for(let i of this.types){let s=null;for(let o of e){let r=o(i);r&&(s||(s=Object.assign({},i.props)),s[r[0].id]=r[1])}t.push(s?new Be(i.name,s,i.id,i.flags):i)}return new xo(t)}}const mn=new WeakMap,U2=new WeakMap;var he;(function(n){n[n.ExcludeBuffers=1]="ExcludeBuffers",n[n.IncludeAnonymous=2]="IncludeAnonymous",n[n.IgnoreMounts=4]="IgnoreMounts",n[n.IgnoreOverlays=8]="IgnoreOverlays"})(he||(he={}));class oe{constructor(e,t,i,s,o){if(this.type=e,this.children=t,this.positions=i,this.length=s,this.props=null,o&&o.length){this.props=Object.create(null);for(let[r,l]of o)this.props[typeof r=="number"?r:r.id]=l}}toString(){let e=Un.get(this);if(e&&!e.overlay)return e.tree.toString();let t="";for(let i of this.children){let s=i.toString();s&&(t&&(t+=","),t+=s)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(t.length?"("+t+")":""):t}cursor(e=0){return new $0(this.topNode,e)}cursorAt(e,t=0,i=0){let s=mn.get(this)||this.topNode,o=new $0(s);return o.moveTo(e,t),mn.set(this,o._tree),o}get topNode(){return new $e(this,0,0,null)}resolve(e,t=0){let i=$i(mn.get(this)||this.topNode,e,t,!1);return mn.set(this,i),i}resolveInner(e,t=0){let i=$i(U2.get(this)||this.topNode,e,t,!0);return U2.set(this,i),i}resolveStack(e,t=0){return O4(this,e,t)}iterate(e){let{enter:t,leave:i,from:s=0,to:o=this.length}=e,r=e.mode||0,l=(r&he.IncludeAnonymous)>0;for(let a=this.cursor(r|he.IncludeAnonymous);;){let c=!1;if(a.from<=o&&a.to>=s&&(!l&&a.type.isAnonymous||t(a)!==!1)){if(a.firstChild())continue;c=!0}for(;c&&i&&(l||!a.type.isAnonymous)&&i(a),!a.nextSibling();){if(!a.parent())return;c=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:ko(Be.none,this.children,this.positions,0,this.children.length,0,this.length,(t,i,s)=>new oe(this.type,t,i,s,this.propValues),e.makeTree||((t,i,s)=>new oe(Be.none,t,i,s)))}static build(e){return M4(e)}}oe.empty=new oe(Be.none,[],[],0);class bo{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new bo(this.buffer,this.index)}}class Ot{constructor(e,t,i){this.buffer=e,this.length=t,this.set=i}get type(){return Be.none}toString(){let e=[];for(let t=0;t<this.buffer.length;)e.push(this.childString(t)),t=this.buffer[t+3];return e.join(",")}childString(e){let t=this.buffer[e],i=this.buffer[e+3],s=this.set.types[t],o=s.name;if(/\W/.test(o)&&!s.isError&&(o=JSON.stringify(o)),e+=4,i==e)return o;let r=[];for(;e<i;)r.push(this.childString(e)),e=this.buffer[e+3];return o+"("+r.join(",")+")"}findChild(e,t,i,s,o){let{buffer:r}=this,l=-1;for(let a=e;a!=t&&!(Ma(o,s,r[a+1],r[a+2])&&(l=a,i>0));a=r[a+3]);return l}slice(e,t,i){let s=this.buffer,o=new Uint16Array(t-e),r=0;for(let l=e,a=0;l<t;){o[a++]=s[l++],o[a++]=s[l++]-i;let c=o[a++]=s[l++]-i;o[a++]=s[l++]-e,r=Math.max(r,c)}return new Ot(o,r,this.set)}}function Ma(n,e,t,i){switch(n){case-2:return t<e;case-1:return i>=e&&t<e;case 0:return t<e&&i>e;case 1:return t<=e&&i>e;case 2:return i>e;case 4:return!0}}function $i(n,e,t,i){for(var s;n.from==n.to||(t<1?n.from>=e:n.from>e)||(t>-1?n.to<=e:n.to<e);){let r=!i&&n instanceof $e&&n.index<0?null:n.parent;if(!r)return n;n=r}let o=i?0:he.IgnoreOverlays;if(i)for(let r=n,l=r.parent;l;r=l,l=r.parent)r instanceof $e&&r.index<0&&((s=l.enter(e,t,o))===null||s===void 0?void 0:s.from)!=r.from&&(n=l);for(;;){let r=n.enter(e,t,o);if(!r)return n;n=r}}class Da{cursor(e=0){return new $0(this,e)}getChild(e,t=null,i=null){let s=Y2(this,e,t,i);return s.length?s[0]:null}getChildren(e,t=null,i=null){return Y2(this,e,t,i)}resolve(e,t=0){return $i(this,e,t,!1)}resolveInner(e,t=0){return $i(this,e,t,!0)}matchContext(e){return H0(this.parent,e)}enterUnfinishedNodesBefore(e){let t=this.childBefore(e),i=this;for(;t;){let s=t.lastChild;if(!s||s.to!=t.to)break;s.type.isError&&s.from==s.to?(i=t,t=s.prevSibling):t=s}return i}get node(){return this}get next(){return this.parent}}class $e extends Da{constructor(e,t,i,s){super(),this._tree=e,this.from=t,this.index=i,this._parent=s}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,t,i,s,o=0){for(let r=this;;){for(let{children:l,positions:a}=r._tree,c=t>0?l.length:-1;e!=c;e+=t){let h=l[e],f=a[e]+r.from;if(Ma(s,i,f,f+h.length)){if(h instanceof Ot){if(o&he.ExcludeBuffers)continue;let d=h.findChild(0,h.buffer.length,t,i-f,s);if(d>-1)return new yt(new C4(r,h,e,f),null,d)}else if(o&he.IncludeAnonymous||!h.type.isAnonymous||yo(h)){let d;if(!(o&he.IgnoreMounts)&&(d=Un.get(h))&&!d.overlay)return new $e(d.tree,f,e,r);let p=new $e(h,f,e,r);return o&he.IncludeAnonymous||!p.type.isAnonymous?p:p.nextChild(t<0?h.children.length-1:0,t,i,s)}}}if(o&he.IncludeAnonymous||!r.type.isAnonymous||(r.index>=0?e=r.index+t:e=t<0?-1:r._parent._tree.children.length,r=r._parent,!r))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,i=0){let s;if(!(i&he.IgnoreOverlays)&&(s=Un.get(this._tree))&&s.overlay){let o=e-this.from;for(let{from:r,to:l}of s.overlay)if((t>0?r<=o:r<o)&&(t<0?l>=o:l>o))return new $e(s.tree,s.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,i)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function Y2(n,e,t,i){let s=n.cursor(),o=[];if(!s.firstChild())return o;if(t!=null){for(let r=!1;!r;)if(r=s.type.is(t),!s.nextSibling())return o}for(;;){if(i!=null&&s.type.is(i))return o;if(s.type.is(e)&&o.push(s.node),!s.nextSibling())return i==null?o:[]}}function H0(n,e,t=e.length-1){for(let i=n;t>=0;i=i.parent){if(!i)return!1;if(!i.type.isAnonymous){if(e[t]&&e[t]!=i.name)return!1;t--}}return!0}class C4{constructor(e,t,i,s){this.parent=e,this.buffer=t,this.index=i,this.start=s}}class yt extends Da{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,i){super(),this.context=e,this._parent=t,this.index=i,this.type=e.buffer.set.types[e.buffer.buffer[i]]}child(e,t,i){let{buffer:s}=this.context,o=s.findChild(this.index+4,s.buffer[this.index+3],e,t-this.context.start,i);return o<0?null:new yt(this.context,this,o)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,i=0){if(i&he.ExcludeBuffers)return null;let{buffer:s}=this.context,o=s.findChild(this.index+4,s.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return o<0?null:new yt(this.context,this,o)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new yt(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new yt(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:i}=this.context,s=this.index+4,o=i.buffer[this.index+3];if(o>s){let r=i.buffer[this.index+1];e.push(i.slice(s,o,r)),t.push(0)}return new oe(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function Ta(n){if(!n.length)return null;let e=0,t=n[0];for(let o=1;o<n.length;o++){let r=n[o];(r.from>t.from||r.to<t.to)&&(t=r,e=o)}let i=t instanceof $e&&t.index<0?null:t.parent,s=n.slice();return i?s[e]=i:s.splice(e,1),new _4(s,t)}class _4{constructor(e,t){this.heads=e,this.node=t}get next(){return Ta(this.heads)}}function O4(n,e,t){let i=n.resolveInner(e,t),s=null;for(let o=i instanceof $e?i:i.context.parent;o;o=o.parent)if(o.index<0){let r=o.parent;(s||(s=[i])).push(r.resolve(e,t)),o=r}else{let r=Un.get(o.tree);if(r&&r.overlay&&r.overlay[0].from<=e&&r.overlay[r.overlay.length-1].to>=e){let l=new $e(r.tree,r.overlay[0].from+o.from,-1,o);(s||(s=[i])).push($i(l,e,t,!1))}}return s?Ta(s):i}class $0{get name(){return this.type.name}constructor(e,t=0){if(this.mode=t,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof $e)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let i=e._parent;i;i=i._parent)this.stack.unshift(i.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,t){this.index=e;let{start:i,buffer:s}=this.buffer;return this.type=t||s.set.types[s.buffer[e]],this.from=i+s.buffer[e+1],this.to=i+s.buffer[e+2],!0}yield(e){return e?e instanceof $e?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,i){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,i,this.mode));let{buffer:s}=this.buffer,o=s.findChild(this.index+4,s.buffer[this.index+3],e,t-this.buffer.start,i);return o<0?!1:(this.stack.push(this.index),this.yieldBuf(o))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,i=this.mode){return this.buffer?i&he.ExcludeBuffers?!1:this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,i))}parent(){if(!this.buffer)return this.yieldNode(this.mode&he.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&he.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:t}=this.buffer,i=this.stack.length-1;if(e<0){let s=i<0?0:this.stack[i]+4;if(this.index!=s)return this.yieldBuf(t.findChild(s,this.index,-1,0,4))}else{let s=t.buffer[this.index+3];if(s<(i<0?t.buffer.length:t.buffer[this.stack[i]+3]))return this.yieldBuf(s)}return i<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,i,{buffer:s}=this;if(s){if(e>0){if(this.index<s.buffer.buffer.length)return!1}else for(let o=0;o<this.index;o++)if(s.buffer.buffer[o+3]<this.index)return!1;({index:t,parent:i}=s)}else({index:t,_parent:i}=this._tree);for(;i;{index:t,_parent:i}=i)if(t>-1)for(let o=t+e,r=e<0?-1:i._tree.children.length;o!=r;o+=e){let l=i._tree.children[o];if(this.mode&he.IncludeAnonymous||l instanceof Ot||!l.type.isAnonymous||yo(l))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,t););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,t=null,i=0;if(e&&e.context==this.buffer)e:for(let s=this.index,o=this.stack.length;o>=0;){for(let r=e;r;r=r._parent)if(r.index==s){if(s==this.index)return r;t=r,i=o+1;break e}s=this.stack[--o]}for(let s=i;s<this.stack.length;s++)t=new yt(this.buffer,t,this.stack[s]);return this.bufferNode=new yt(this.buffer,t,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,t){for(let i=0;;){let s=!1;if(this.type.isAnonymous||e(this)!==!1){if(this.firstChild()){i++;continue}this.type.isAnonymous||(s=!0)}for(;;){if(s&&t&&t(this),s=this.type.isAnonymous,!i)return;if(this.nextSibling())break;this.parent(),i--,s=!0}}}matchContext(e){if(!this.buffer)return H0(this.node.parent,e);let{buffer:t}=this.buffer,{types:i}=t.set;for(let s=e.length-1,o=this.stack.length-1;s>=0;o--){if(o<0)return H0(this._tree,e,s);let r=i[t.buffer[this.stack[o]]];if(!r.isAnonymous){if(e[s]&&e[s]!=r.name)return!1;s--}}return!0}}function yo(n){return n.children.some(e=>e instanceof Ot||!e.type.isAnonymous||yo(e))}function M4(n){var e;let{buffer:t,nodeSet:i,maxBufferLength:s=Oa,reused:o=[],minRepeatType:r=i.types.length}=n,l=Array.isArray(t)?new bo(t,t.length):t,a=i.types,c=0,h=0;function f(y,S,C,P,O,w){let{id:A,start:T,end:D,size:R}=l,H=h,N=c;for(;R<0;)if(l.next(),R==-1){let Ce=o[A];C.push(Ce),P.push(T-y);return}else if(R==-3){c=A;return}else if(R==-4){h=A;return}else throw new RangeError(`Unrecognized record size: ${R}`);let F=a[A],ie,U,Q=T-y;if(D-T<=s&&(U=v(l.pos-S,O))){let Ce=new Uint16Array(U.size-U.skip),be=l.pos-U.size,Pe=Ce.length;for(;l.pos>be;)Pe=x(U.start,Ce,Pe);ie=new Ot(Ce,D-U.start,i),Q=U.start-y}else{let Ce=l.pos-R;l.next();let be=[],Pe=[],Ye=A>=r?A:-1,Gt=0,en=D;for(;l.pos>Ce;)Ye>=0&&l.id==Ye&&l.size>=0?(l.end<=en-s&&(g(be,Pe,T,Gt,l.end,en,Ye,H,N),Gt=be.length,en=l.end),l.next()):w>2500?d(T,Ce,be,Pe):f(T,Ce,be,Pe,Ye,w+1);if(Ye>=0&&Gt>0&&Gt<be.length&&g(be,Pe,T,Gt,T,en,Ye,H,N),be.reverse(),Pe.reverse(),Ye>-1&&Gt>0){let $o=p(F,N);ie=ko(F,be,Pe,0,be.length,0,D-T,$o,$o)}else ie=m(F,be,Pe,D-T,H-D,N)}C.push(ie),P.push(Q)}function d(y,S,C,P){let O=[],w=0,A=-1;for(;l.pos>S;){let{id:T,start:D,end:R,size:H}=l;if(H>4)l.next();else{if(A>-1&&D<A)break;A<0&&(A=R-s),O.push(T,D,R),w++,l.next()}}if(w){let T=new Uint16Array(w*4),D=O[O.length-2];for(let R=O.length-3,H=0;R>=0;R-=3)T[H++]=O[R],T[H++]=O[R+1]-D,T[H++]=O[R+2]-D,T[H++]=H;C.push(new Ot(T,O[2]-D,i)),P.push(D-y)}}function p(y,S){return(C,P,O)=>{let w=0,A=C.length-1,T,D;if(A>=0&&(T=C[A])instanceof oe){if(!A&&T.type==y&&T.length==O)return T;(D=T.prop(W.lookAhead))&&(w=P[A]+T.length+D)}return m(y,C,P,O,w,S)}}function g(y,S,C,P,O,w,A,T,D){let R=[],H=[];for(;y.length>P;)R.push(y.pop()),H.push(S.pop()+C-O);y.push(m(i.types[A],R,H,w-O,T-w,D)),S.push(O-C)}function m(y,S,C,P,O,w,A){if(w){let T=[W.contextHash,w];A=A?[T].concat(A):[T]}if(O>25){let T=[W.lookAhead,O];A=A?[T].concat(A):[T]}return new oe(y,S,C,P,A)}function v(y,S){let C=l.fork(),P=0,O=0,w=0,A=C.end-s,T={size:0,start:0,skip:0};e:for(let D=C.pos-y;C.pos>D;){let R=C.size;if(C.id==S&&R>=0){T.size=P,T.start=O,T.skip=w,w+=4,P+=4,C.next();continue}let H=C.pos-R;if(R<0||H<D||C.start<A)break;let N=C.id>=r?4:0,F=C.start;for(C.next();C.pos>H;){if(C.size<0)if(C.size==-3)N+=4;else break e;else C.id>=r&&(N+=4);C.next()}O=F,P+=R,w+=N}return(S<0||P==y)&&(T.size=P,T.start=O,T.skip=w),T.size>4?T:void 0}function x(y,S,C){let{id:P,start:O,end:w,size:A}=l;if(l.next(),A>=0&&P<r){let T=C;if(A>4){let D=l.pos-(A-4);for(;l.pos>D;)C=x(y,S,C)}S[--C]=T,S[--C]=w-y,S[--C]=O-y,S[--C]=P}else A==-3?c=P:A==-4&&(h=P);return C}let b=[],k=[];for(;l.pos>0;)f(n.start||0,n.bufferStart||0,b,k,-1,0);let _=(e=n.length)!==null&&e!==void 0?e:b.length?k[0]+b[0].length:0;return new oe(a[n.topID],b.reverse(),k.reverse(),_)}const K2=new WeakMap;function zn(n,e){if(!n.isAnonymous||e instanceof Ot||e.type!=n)return 1;let t=K2.get(e);if(t==null){t=1;for(let i of e.children){if(i.type!=n||!(i instanceof oe)){t=1;break}t+=zn(n,i)}K2.set(e,t)}return t}function ko(n,e,t,i,s,o,r,l,a){let c=0;for(let g=i;g<s;g++)c+=zn(n,e[g]);let h=Math.ceil(c*1.5/8),f=[],d=[];function p(g,m,v,x,b){for(let k=v;k<x;){let _=k,y=m[k],S=zn(n,g[k]);for(k++;k<x;k++){let C=zn(n,g[k]);if(S+C>=h)break;S+=C}if(k==_+1){if(S>h){let C=g[_];p(C.children,C.positions,0,C.children.length,m[_]+b);continue}f.push(g[_])}else{let C=m[k-1]+g[k-1].length-y;f.push(ko(n,g,m,_,k,y,C,null,a))}d.push(y+b-o)}}return p(e,t,i,s,0),(l||a)(f,d,r)}class zt{constructor(e,t,i,s,o=!1,r=!1){this.from=e,this.to=t,this.tree=i,this.offset=s,this.open=(o?1:0)|(r?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,t=[],i=!1){let s=[new zt(0,e.length,e,0,!1,i)];for(let o of t)o.to>e.length&&s.push(o);return s}static applyChanges(e,t,i=128){if(!t.length)return e;let s=[],o=1,r=e.length?e[0]:null;for(let l=0,a=0,c=0;;l++){let h=l<t.length?t[l]:null,f=h?h.fromA:1e9;if(f-a>=i)for(;r&&r.from<f;){let d=r;if(a>=d.from||f<=d.to||c){let p=Math.max(d.from,a)-c,g=Math.min(d.to,f)-c;d=p>=g?null:new zt(p,g,d.tree,d.offset+c,l>0,!!h)}if(d&&s.push(d),r.to>f)break;r=o<e.length?e[o++]:null}if(!h)break;a=h.toA,c=h.toA-h.toB}return s}}class Aa{startParse(e,t,i){return typeof e=="string"&&(e=new D4(e)),i=i?i.length?i.map(s=>new $s(s.from,s.to)):[new $s(0,0)]:[new $s(0,e.length)],this.createParse(e,t||[],i)}parse(e,t,i){let s=this.startParse(e,t,i);for(;;){let o=s.advance();if(o)return o}}}class D4{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}new W({perNode:!0});let T4=0;class Ne{constructor(e,t,i,s){this.name=e,this.set=t,this.base=i,this.modified=s,this.id=T4++}toString(){let{name:e}=this;for(let t of this.modified)t.name&&(e=`${t.name}(${e})`);return e}static define(e,t){let i=typeof e=="string"?e:"?";if(e instanceof Ne&&(t=e),t!=null&&t.base)throw new Error("Can not derive from a modified tag");let s=new Ne(i,[],null,[]);if(s.set.push(s),t)for(let o of t.set)s.set.push(o);return s}static defineModifier(e){let t=new Yn(e);return i=>i.modified.indexOf(t)>-1?i:Yn.get(i.base||i,i.modified.concat(t).sort((s,o)=>s.id-o.id))}}let A4=0;class Yn{constructor(e){this.name=e,this.instances=[],this.id=A4++}static get(e,t){if(!t.length)return e;let i=t[0].instances.find(l=>l.base==e&&B4(t,l.modified));if(i)return i;let s=[],o=new Ne(e.name,s,e,t);for(let l of t)l.instances.push(o);let r=P4(t);for(let l of e.set)if(!l.modified.length)for(let a of r)s.push(Yn.get(l,a));return o}}function B4(n,e){return n.length==e.length&&n.every((t,i)=>t==e[i])}function P4(n){let e=[[]];for(let t=0;t<n.length;t++)for(let i=0,s=e.length;i<s;i++)e.push(e[i].concat(n[t]));return e.sort((t,i)=>i.length-t.length)}function Ba(n){let e=Object.create(null);for(let t in n){let i=n[t];Array.isArray(i)||(i=[i]);for(let s of t.split(" "))if(s){let o=[],r=2,l=s;for(let f=0;;){if(l=="..."&&f>0&&f+3==s.length){r=1;break}let d=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(l);if(!d)throw new RangeError("Invalid path: "+s);if(o.push(d[0]=="*"?"":d[0][0]=='"'?JSON.parse(d[0]):d[0]),f+=d[0].length,f==s.length)break;let p=s[f++];if(f==s.length&&p=="!"){r=0;break}if(p!="/")throw new RangeError("Invalid path: "+s);l=s.slice(f)}let a=o.length-1,c=o[a];if(!c)throw new RangeError("Invalid path: "+s);let h=new Kn(i,r,a>0?o.slice(0,a):null);e[c]=h.sort(e[c])}}return Pa.add(e)}const Pa=new W;class Kn{constructor(e,t,i,s){this.tags=e,this.mode=t,this.context=i,this.next=s}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}}Kn.empty=new Kn([],2,null);function Ea(n,e){let t=Object.create(null);for(let o of n)if(!Array.isArray(o.tag))t[o.tag.id]=o.class;else for(let r of o.tag)t[r.id]=o.class;let{scope:i,all:s=null}=e||{};return{style:o=>{let r=s;for(let l of o)for(let a of l.set){let c=t[a.id];if(c){r=r?r+" "+c:c;break}}return r},scope:i}}function E4(n,e){let t=null;for(let i of n){let s=i.style(e);s&&(t=t?t+" "+s:s)}return t}function V4(n,e,t,i=0,s=n.length){let o=new z4(i,Array.isArray(e)?e:[e],t);o.highlightRange(n.cursor(),i,s,"",o.highlighters),o.flush(s)}class z4{constructor(e,t,i){this.at=e,this.highlighters=t,this.span=i,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,i,s,o){let{type:r,from:l,to:a}=e;if(l>=i||a<=t)return;r.isTop&&(o=this.highlighters.filter(p=>!p.scope||p.scope(r)));let c=s,h=L4(e)||Kn.empty,f=E4(o,h.tags);if(f&&(c&&(c+=" "),c+=f,h.mode==1&&(s+=(s?" ":"")+f)),this.startSpan(Math.max(t,l),c),h.opaque)return;let d=e.tree&&e.tree.prop(W.mounted);if(d&&d.overlay){let p=e.node.enter(d.overlay[0].from+l,1),g=this.highlighters.filter(v=>!v.scope||v.scope(d.tree.type)),m=e.firstChild();for(let v=0,x=l;;v++){let b=v<d.overlay.length?d.overlay[v]:null,k=b?b.from+l:a,_=Math.max(t,x),y=Math.min(i,k);if(_<y&&m)for(;e.from<y&&(this.highlightRange(e,_,y,s,o),this.startSpan(Math.min(y,e.to),c),!(e.to>=k||!e.nextSibling())););if(!b||k>i)break;x=b.to+l,x>t&&(this.highlightRange(p.cursor(),Math.max(t,b.from+l),Math.min(i,x),"",g),this.startSpan(Math.min(i,x),c))}m&&e.parent()}else if(e.firstChild()){d&&(s="");do if(!(e.to<=t)){if(e.from>=i)break;this.highlightRange(e,t,i,s,o),this.startSpan(Math.min(i,e.to),c)}while(e.nextSibling());e.parent()}}}function L4(n){let e=n.type.prop(Pa);for(;e&&e.context&&!n.matchContext(e.context);)e=e.next;return e||null}const E=Ne.define,vn=E(),gt=E(),X2=E(gt),Q2=E(gt),mt=E(),wn=E(mt),Ws=E(mt),Je=E(),At=E(Je),Xe=E(),Qe=E(),W0=E(),vi=E(W0),xn=E(),B={comment:vn,lineComment:E(vn),blockComment:E(vn),docComment:E(vn),name:gt,variableName:E(gt),typeName:X2,tagName:E(X2),propertyName:Q2,attributeName:E(Q2),className:E(gt),labelName:E(gt),namespace:E(gt),macroName:E(gt),literal:mt,string:wn,docString:E(wn),character:E(wn),attributeValue:E(wn),number:Ws,integer:E(Ws),float:E(Ws),bool:E(mt),regexp:E(mt),escape:E(mt),color:E(mt),url:E(mt),keyword:Xe,self:E(Xe),null:E(Xe),atom:E(Xe),unit:E(Xe),modifier:E(Xe),operatorKeyword:E(Xe),controlKeyword:E(Xe),definitionKeyword:E(Xe),moduleKeyword:E(Xe),operator:Qe,derefOperator:E(Qe),arithmeticOperator:E(Qe),logicOperator:E(Qe),bitwiseOperator:E(Qe),compareOperator:E(Qe),updateOperator:E(Qe),definitionOperator:E(Qe),typeOperator:E(Qe),controlOperator:E(Qe),punctuation:W0,separator:E(W0),bracket:vi,angleBracket:E(vi),squareBracket:E(vi),paren:E(vi),brace:E(vi),content:Je,heading:At,heading1:E(At),heading2:E(At),heading3:E(At),heading4:E(At),heading5:E(At),heading6:E(At),contentSeparator:E(Je),list:E(Je),quote:E(Je),emphasis:E(Je),strong:E(Je),link:E(Je),monospace:E(Je),strikethrough:E(Je),inserted:E(),deleted:E(),changed:E(),invalid:E(),meta:xn,documentMeta:E(xn),annotation:E(xn),processingInstruction:E(xn),definition:Ne.defineModifier("definition"),constant:Ne.defineModifier("constant"),function:Ne.defineModifier("function"),standard:Ne.defineModifier("standard"),local:Ne.defineModifier("local"),special:Ne.defineModifier("special")};for(let n in B){let e=B[n];e instanceof Ne&&(e.name=n)}Ea([{tag:B.link,class:"tok-link"},{tag:B.heading,class:"tok-heading"},{tag:B.emphasis,class:"tok-emphasis"},{tag:B.strong,class:"tok-strong"},{tag:B.keyword,class:"tok-keyword"},{tag:B.atom,class:"tok-atom"},{tag:B.bool,class:"tok-bool"},{tag:B.url,class:"tok-url"},{tag:B.labelName,class:"tok-labelName"},{tag:B.inserted,class:"tok-inserted"},{tag:B.deleted,class:"tok-deleted"},{tag:B.literal,class:"tok-literal"},{tag:B.string,class:"tok-string"},{tag:B.number,class:"tok-number"},{tag:[B.regexp,B.escape,B.special(B.string)],class:"tok-string2"},{tag:B.variableName,class:"tok-variableName"},{tag:B.local(B.variableName),class:"tok-variableName tok-local"},{tag:B.definition(B.variableName),class:"tok-variableName tok-definition"},{tag:B.special(B.variableName),class:"tok-variableName2"},{tag:B.definition(B.propertyName),class:"tok-propertyName tok-definition"},{tag:B.typeName,class:"tok-typeName"},{tag:B.namespace,class:"tok-namespace"},{tag:B.className,class:"tok-className"},{tag:B.macroName,class:"tok-macroName"},{tag:B.propertyName,class:"tok-propertyName"},{tag:B.operator,class:"tok-operator"},{tag:B.comment,class:"tok-comment"},{tag:B.meta,class:"tok-meta"},{tag:B.invalid,class:"tok-invalid"},{tag:B.punctuation,class:"tok-punctuation"}]);var Fs;const Xt=new W;function N4(n){return L.define({combine:n?e=>e.concat(n):void 0})}const R4=new W;class Ge{constructor(e,t,i=[],s=""){this.data=e,this.name=s,G.prototype.hasOwnProperty("tree")||Object.defineProperty(G.prototype,"tree",{get(){return fe(this)}}),this.parser=t,this.extension=[Mt.of(this),G.languageData.of((o,r,l)=>{let a=J2(o,r,l),c=a.type.prop(Xt);if(!c)return[];let h=o.facet(c),f=a.type.prop(R4);if(f){let d=a.resolve(r-a.from,l);for(let p of f)if(p.test(d,o)){let g=o.facet(p.facet);return p.type=="replace"?g:g.concat(h)}}return h})].concat(i)}isActiveAt(e,t,i=-1){return J2(e,t,i).type.prop(Xt)==this.data}findRegions(e){let t=e.facet(Mt);if((t==null?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let i=[],s=(o,r)=>{if(o.prop(Xt)==this.data){i.push({from:r,to:r+o.length});return}let l=o.prop(W.mounted);if(l){if(l.tree.prop(Xt)==this.data){if(l.overlay)for(let a of l.overlay)i.push({from:a.from+r,to:a.to+r});else i.push({from:r,to:r+o.length});return}else if(l.overlay){let a=i.length;if(s(l.tree,l.overlay[0].from+r),i.length>a)return}}for(let a=0;a<o.children.length;a++){let c=o.children[a];c instanceof oe&&s(c,o.positions[a]+r)}};return s(fe(e),0),i}get allowsNesting(){return!0}}Ge.setState=$.define();function J2(n,e,t){let i=n.facet(Mt),s=fe(n).topNode;if(!i||i.allowsNesting)for(let o=s;o;o=o.enter(e,t,he.ExcludeBuffers))o.type.isTop&&(s=o);return s}class Xn extends Ge{constructor(e,t,i){super(e,t,[],i),this.parser=t}static define(e){let t=N4(e.languageData);return new Xn(t,e.parser.configure({props:[Xt.add(i=>i.isTop?t:void 0)]}),e.name)}configure(e,t){return new Xn(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function fe(n){let e=n.field(Ge.state,!1);return e?e.tree:oe.empty}class I4{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let i=this.cursorPos-this.string.length;return e<i||t>=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-i,t-i)}}let wi=null;class Qn{constructor(e,t,i=[],s,o,r,l,a){this.parser=e,this.state=t,this.fragments=i,this.tree=s,this.treeLen=o,this.viewport=r,this.skipped=l,this.scheduleOn=a,this.parse=null,this.tempSkipped=[]}static create(e,t,i){return new Qn(e,t,[],oe.empty,0,i,[],null)}startParse(){return this.parser.startParse(new I4(this.state.doc),this.fragments)}work(e,t){return t!=null&&t>=this.state.doc.length&&(t=void 0),this.tree!=oe.empty&&this.isDone(t??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var i;if(typeof e=="number"){let s=Date.now()+e;e=()=>Date.now()>s}for(this.parse||(this.parse=this.startParse()),t!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&t<this.state.doc.length&&this.parse.stopAt(t);;){let s=this.parse.advance();if(s)if(this.fragments=this.withoutTempSkipped(zt.addTree(s,this.fragments,this.parse.stoppedAt!=null)),this.treeLen=(i=this.parse.stoppedAt)!==null&&i!==void 0?i:this.state.doc.length,this.tree=s,this.parse=null,this.treeLen<(t??this.state.doc.length))this.parse=this.startParse();else return!0;if(e())return!1}})}takeTree(){let e,t;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(t=this.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(zt.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=wi;wi=this;try{return e()}finally{wi=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=Z2(e,t.from,t.to);return e}changes(e,t){let{fragments:i,tree:s,treeLen:o,viewport:r,skipped:l}=this;if(this.takeTree(),!e.empty){let a=[];if(e.iterChangedRanges((c,h,f,d)=>a.push({fromA:c,toA:h,fromB:f,toB:d})),i=zt.applyChanges(i,a),s=oe.empty,o=0,r={from:e.mapPos(r.from,-1),to:e.mapPos(r.to,1)},this.skipped.length){l=[];for(let c of this.skipped){let h=e.mapPos(c.from,1),f=e.mapPos(c.to,-1);h<f&&l.push({from:h,to:f})}}}return new Qn(this.parser,t,i,s,o,r,l,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let t=this.skipped.length;for(let i=0;i<this.skipped.length;i++){let{from:s,to:o}=this.skipped[i];s<e.to&&o>e.from&&(this.fragments=Z2(this.fragments,s,o),this.skipped.splice(i--,1))}return this.skipped.length>=t?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends Aa{createParse(t,i,s){let o=s[0].from,r=s[s.length-1].to;return{parsedPos:o,advance(){let a=wi;if(a){for(let c of s)a.tempSkipped.push(c);e&&(a.scheduleOn=a.scheduleOn?Promise.all([a.scheduleOn,e]):e)}return this.parsedPos=r,new oe(Be.none,[],[],r-o)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&t[0].from==0&&t[0].to>=e}static get(){return wi}}function Z2(n,e,t){return zt.applyChanges(n,[{fromA:e,toA:t,fromB:e,toB:t}])}class ai{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),i=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,i)||t.takeTree(),new ai(t)}static init(e){let t=Math.min(3e3,e.doc.length),i=Qn.create(e.facet(Mt).parser,e,{from:0,to:t});return i.work(20,t)||i.takeTree(),new ai(i)}}Ge.state=me.define({create:ai.init,update(n,e){for(let t of e.effects)if(t.is(Ge.setState))return t.value;return e.startState.facet(Mt)!=e.state.facet(Mt)?ai.init(e.state):n.apply(e)}});let Va=n=>{let e=setTimeout(()=>n(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(Va=n=>{let e=-1,t=setTimeout(()=>{e=requestIdleCallback(n,{timeout:400})},100);return()=>e<0?clearTimeout(t):cancelIdleCallback(e)});const Gs=typeof navigator<"u"&&(!((Fs=navigator.scheduling)===null||Fs===void 0)&&Fs.isInputPending)?()=>navigator.scheduling.isInputPending():null,H4=re.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(Ge.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(Ge.state);(t.tree!=t.context.tree||!t.context.isDone(e.doc.length))&&(this.working=Va(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEnd<t&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=t+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:i,viewport:{to:s}}=this.view,o=i.field(Ge.state);if(o.tree==o.context.tree&&o.context.isDone(s+1e5))return;let r=Date.now()+Math.min(this.chunkBudget,100,e&&!Gs?Math.max(25,e.timeRemaining()-5):1e9),l=o.context.treeLen<s&&i.doc.length>s+1e3,a=o.context.work(()=>Gs&&Gs()||Date.now()>r,s+(l?0:1e5));this.chunkBudget-=Date.now()-t,(a||this.chunkBudget<=0)&&(o.context.takeTree(),this.view.dispatch({effects:Ge.setState.of(new ai(o.context))})),this.chunkBudget>0&&!(a&&!l)&&this.scheduleWork(),this.checkAsyncSchedule(o.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(t=>Te(this.view.state,t)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),Mt=L.define({combine(n){return n.length?n[0]:null},enables:n=>[Ge.state,H4,z.contentAttributes.compute([n],e=>{let t=e.facet(n);return t&&t.name?{"data-language":t.name}:{}})]});class $4{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}const W4=L.define(),So=L.define({combine:n=>{if(!n.length)return" ";let e=n[0];if(!e||/\S/.test(e)||Array.from(e).some(t=>t!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(n[0]));return e}});function Jn(n){let e=n.facet(So);return e.charCodeAt(0)==9?n.tabSize*e.length:e.length}function Wi(n,e){let t="",i=n.tabSize,s=n.facet(So)[0];if(s==" "){for(;e>=i;)t+=" ",e-=i;s=" "}for(let o=0;o<e;o++)t+=s;return t}function Co(n,e){n instanceof G&&(n=new xs(n));for(let i of n.state.facet(W4)){let s=i(n,e);if(s!==void 0)return s}let t=fe(n.state);return t.length>=e?F4(n,t,e):null}class xs{constructor(e,t={}){this.state=e,this.options=t,this.unit=Jn(e)}lineAt(e,t=1){let i=this.state.doc.lineAt(e),{simulateBreak:s,simulateDoubleBreak:o}=this.options;return s!=null&&s>=i.from&&s<=i.to?o&&s==e?{text:"",from:e}:(t<0?s<e:s<=e)?{text:i.text.slice(s-i.from),from:s}:{text:i.text.slice(0,s-i.from),from:i.from}:i}textAfterPos(e,t=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:i,from:s}=this.lineAt(e,t);return i.slice(e-s,Math.min(i.length,e+100-s))}column(e,t=1){let{text:i,from:s}=this.lineAt(e,t),o=this.countColumn(i,e-s),r=this.options.overrideIndentation?this.options.overrideIndentation(s):-1;return r>-1&&(o+=r-this.countColumn(i,i.search(/\S|$/))),o}countColumn(e,t=e.length){return ui(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:i,from:s}=this.lineAt(e,t),o=this.options.overrideIndentation;if(o){let r=o(s);if(r>-1)return r}return this.countColumn(i,i.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const za=new W;function F4(n,e,t){let i=e.resolveStack(t),s=e.resolveInner(t,-1).resolve(t,0).enterUnfinishedNodesBefore(t);if(s!=i.node){let o=[];for(let r=s;r&&!(r.from<i.node.from||r.to>i.node.to||r.from==i.node.from&&r.type==i.node.type);r=r.parent)o.push(r);for(let r=o.length-1;r>=0;r--)i={node:o[r],next:i}}return La(i,n,t)}function La(n,e,t){for(let i=n;i;i=i.next){let s=j4(i.node);if(s)return s(_o.create(e,t,i))}return 0}function G4(n){return n.pos==n.options.simulateBreak&&n.options.simulateDoubleBreak}function j4(n){let e=n.type.prop(za);if(e)return e;let t=n.firstChild,i;if(t&&(i=t.type.prop(W.closedBy))){let s=n.lastChild,o=s&&i.indexOf(s.name)>-1;return r=>K4(r,!0,1,void 0,o&&!G4(r)?s.from:void 0)}return n.parent==null?q4:null}function q4(){return 0}class _o extends xs{constructor(e,t,i){super(e.state,e.options),this.base=e,this.pos=t,this.context=i}get node(){return this.context.node}static create(e,t,i){return new _o(e,t,i)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let i=e.resolve(t.from);for(;i.parent&&i.parent.from==i.from;)i=i.parent;if(U4(i,e))break;t=this.state.doc.lineAt(i.from)}return this.lineIndent(t.from)}continue(){return La(this.context.next,this.base,this.pos)}}function U4(n,e){for(let t=e;t;t=t.parent)if(n==t)return!0;return!1}function Y4(n){let e=n.node,t=e.childAfter(e.from),i=e.lastChild;if(!t)return null;let s=n.options.simulateBreak,o=n.state.doc.lineAt(t.from),r=s==null||s<=o.from?o.to:Math.min(o.to,s);for(let l=t.to;;){let a=e.childAfter(l);if(!a||a==i)return null;if(!a.type.isSkipped){if(a.from>=r)return null;let c=/^ */.exec(o.text.slice(t.to-o.from))[0].length;return{from:t.from,to:t.to+c}}l=a.to}}function K4(n,e,t,i,s){let o=n.textAfter,r=o.match(/^\s*/)[0].length,l=i&&o.slice(r,r+i.length)==i||s==n.pos+r,a=Y4(n);return a?l?n.column(a.from):n.column(a.to):n.baseIndent+(l?0:n.unit*t)}const X4=200;function Q4(){return G.transactionFilter.of(n=>{if(!n.docChanged||!n.isUserEvent("input.type")&&!n.isUserEvent("input.complete"))return n;let e=n.startState.languageDataAt("indentOnInput",n.startState.selection.main.head);if(!e.length)return n;let t=n.newDoc,{head:i}=n.newSelection.main,s=t.lineAt(i);if(i>s.from+X4)return n;let o=t.sliceString(s.from,i);if(!e.some(c=>c.test(o)))return n;let{state:r}=n,l=-1,a=[];for(let{head:c}of r.selection.ranges){let h=r.doc.lineAt(c);if(h.from==l)continue;l=h.from;let f=Co(r,h.from);if(f==null)continue;let d=/^\s*/.exec(h.text)[0],p=Wi(r,f);d!=p&&a.push({from:h.from,to:h.from+d.length,insert:p})}return a.length?[n,{changes:a,sequential:!0}]:n})}const J4=L.define(),Na=new W;function Z4(n,e,t){let i=fe(n);if(i.length<t)return null;let s=i.resolveStack(t,1),o=null;for(let r=s;r;r=r.next){let l=r.node;if(l.to<=t||l.from>t)continue;if(o&&l.from<e)break;let a=l.type.prop(Na);if(a&&(l.to<i.length-50||i.length==n.doc.length||!ep(l))){let c=a(l,n);c&&c.from<=t&&c.from>=e&&c.to>t&&(o=c)}}return o}function ep(n){let e=n.lastChild;return e&&e.to==n.to&&e.type.isError}function Zn(n,e,t){for(let i of n.facet(J4)){let s=i(n,e,t);if(s)return s}return Z4(n,e,t)}function Ra(n,e){let t=e.mapPos(n.from,1),i=e.mapPos(n.to,-1);return t>=i?void 0:{from:t,to:i}}const bs=$.define({map:Ra}),Qi=$.define({map:Ra});function Ia(n){let e=[];for(let{head:t}of n.state.selection.ranges)e.some(i=>i.from<=t&&i.to>=t)||e.push(n.lineBlockAt(t));return e}const Wt=me.define({create(){return I.none},update(n,e){e.isUserEvent("delete")&&e.changes.iterChangedRanges((t,i)=>n=er(n,t,i)),n=n.map(e.changes);for(let t of e.effects)if(t.is(bs)&&!tp(n,t.value.from,t.value.to)){let{preparePlaceholder:i}=e.state.facet(Wa),s=i?I.replace({widget:new ap(i(e.state,t.value))}):tr;n=n.update({add:[s.range(t.value.from,t.value.to)]})}else t.is(Qi)&&(n=n.update({filter:(i,s)=>t.value.from!=i||t.value.to!=s,filterFrom:t.value.from,filterTo:t.value.to}));return e.selection&&(n=er(n,e.selection.main.head)),n},provide:n=>z.decorations.from(n),toJSON(n,e){let t=[];return n.between(0,e.doc.length,(i,s)=>{t.push(i,s)}),t},fromJSON(n){if(!Array.isArray(n)||n.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let t=0;t<n.length;){let i=n[t++],s=n[t++];if(typeof i!="number"||typeof s!="number")throw new RangeError("Invalid JSON for fold state");e.push(tr.range(i,s))}return I.set(e,!0)}});function er(n,e,t=e){let i=!1;return n.between(e,t,(s,o)=>{s<t&&o>e&&(i=!0)}),i?n.update({filterFrom:e,filterTo:t,filter:(s,o)=>s>=t||o<=e}):n}function es(n,e,t){var i;let s=null;return(i=n.field(Wt,!1))===null||i===void 0||i.between(e,t,(o,r)=>{(!s||s.from>o)&&(s={from:o,to:r})}),s}function tp(n,e,t){let i=!1;return n.between(e,e,(s,o)=>{s==e&&o==t&&(i=!0)}),i}function Ha(n,e){return n.field(Wt,!1)?e:e.concat($.appendConfig.of(Fa()))}const ip=n=>{for(let e of Ia(n)){let t=Zn(n.state,e.from,e.to);if(t)return n.dispatch({effects:Ha(n.state,[bs.of(t),$a(n,t)])}),!0}return!1},np=n=>{if(!n.state.field(Wt,!1))return!1;let e=[];for(let t of Ia(n)){let i=es(n.state,t.from,t.to);i&&e.push(Qi.of(i),$a(n,i,!1))}return e.length&&n.dispatch({effects:e}),e.length>0};function $a(n,e,t=!0){let i=n.state.doc.lineAt(e.from).number,s=n.state.doc.lineAt(e.to).number;return z.announce.of(`${n.state.phrase(t?"Folded lines":"Unfolded lines")} ${i} ${n.state.phrase("to")} ${s}.`)}const sp=n=>{let{state:e}=n,t=[];for(let i=0;i<e.doc.length;){let s=n.lineBlockAt(i),o=Zn(e,s.from,s.to);o&&t.push(bs.of(o)),i=(o?n.lineBlockAt(o.to):s).to+1}return t.length&&n.dispatch({effects:Ha(n.state,t)}),!!t.length},op=n=>{let e=n.state.field(Wt,!1);if(!e||!e.size)return!1;let t=[];return e.between(0,n.state.doc.length,(i,s)=>{t.push(Qi.of({from:i,to:s}))}),n.dispatch({effects:t}),!0},rp=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:ip},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:np},{key:"Ctrl-Alt-[",run:sp},{key:"Ctrl-Alt-]",run:op}],lp={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},Wa=L.define({combine(n){return rt(n,lp)}});function Fa(n){return[Wt,up]}function Ga(n,e){let{state:t}=n,i=t.facet(Wa),s=r=>{let l=n.lineBlockAt(n.posAtDOM(r.target)),a=es(n.state,l.from,l.to);a&&n.dispatch({effects:Qi.of(a)}),r.preventDefault()};if(i.placeholderDOM)return i.placeholderDOM(n,s,e);let o=document.createElement("span");return o.textContent=i.placeholderText,o.setAttribute("aria-label",t.phrase("folded code")),o.title=t.phrase("unfold"),o.className="cm-foldPlaceholder",o.onclick=s,o}const tr=I.replace({widget:new class extends Dt{toDOM(n){return Ga(n,null)}}});class ap extends Dt{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return Ga(e,this.value)}}const cp={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class js extends dt{constructor(e,t){super(),this.config=e,this.open=t}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let t=document.createElement("span");return t.textContent=this.open?this.config.openText:this.config.closedText,t.title=e.state.phrase(this.open?"Fold line":"Unfold line"),t}}function hp(n={}){let e={...cp,...n},t=new js(e,!0),i=new js(e,!1),s=re.fromClass(class{constructor(r){this.from=r.viewport.from,this.markers=this.buildMarkers(r)}update(r){(r.docChanged||r.viewportChanged||r.startState.facet(Mt)!=r.state.facet(Mt)||r.startState.field(Wt,!1)!=r.state.field(Wt,!1)||fe(r.startState)!=fe(r.state)||e.foldingChanged(r))&&(this.markers=this.buildMarkers(r.view))}buildMarkers(r){let l=new ut;for(let a of r.viewportLineBlocks){let c=es(r.state,a.from,a.to)?i:Zn(r.state,a.from,a.to)?t:null;c&&l.add(a.from,a.from,c)}return l.finish()}}),{domEventHandlers:o}=e;return[s,u4({class:"cm-foldGutter",markers(r){var l;return((l=r.plugin(s))===null||l===void 0?void 0:l.markers)||j.empty},initialSpacer(){return new js(e,!1)},domEventHandlers:{...o,click:(r,l,a)=>{if(o.click&&o.click(r,l,a))return!0;let c=es(r.state,l.from,l.to);if(c)return r.dispatch({effects:Qi.of(c)}),!0;let h=Zn(r.state,l.from,l.to);return h?(r.dispatch({effects:bs.of(h)}),!0):!1}}}),Fa()]}const up=z.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class ys{constructor(e,t){this.specs=e;let i;function s(l){let a=St.newName();return(i||(i=Object.create(null)))["."+a]=l,a}const o=typeof t.all=="string"?t.all:t.all?s(t.all):void 0,r=t.scope;this.scope=r instanceof Ge?l=>l.prop(Xt)==r.data:r?l=>l==r:void 0,this.style=Ea(e.map(l=>({tag:l.tag,class:l.class||s(Object.assign({},l,{tag:null}))})),{all:o}).style,this.module=i?new St(i):null,this.themeType=t.themeType}static define(e,t){return new ys(e,t||{})}}const F0=L.define(),ja=L.define({combine(n){return n.length?[n[0]]:null}});function qs(n){let e=n.facet(F0);return e.length?e:n.facet(ja)}function fp(n,e){let t=[pp],i;return n instanceof ys&&(n.module&&t.push(z.styleModule.of(n.module)),i=n.themeType),e!=null&&e.fallback?t.push(ja.of(n)):i?t.push(F0.computeN([z.darkTheme],s=>s.facet(z.darkTheme)==(i=="dark")?[n]:[])):t.push(F0.of(n)),t}class dp{constructor(e){this.markCache=Object.create(null),this.tree=fe(e.state),this.decorations=this.buildDeco(e,qs(e.state)),this.decoratedTo=e.viewport.to}update(e){let t=fe(e.state),i=qs(e.state),s=i!=qs(e.startState),{viewport:o}=e.view,r=e.changes.mapPos(this.decoratedTo,1);t.length<o.to&&!s&&t.type==this.tree.type&&r>=o.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=r):(t!=this.tree||e.viewportChanged||s)&&(this.tree=t,this.decorations=this.buildDeco(e.view,i),this.decoratedTo=o.to)}buildDeco(e,t){if(!t||!this.tree.length)return I.none;let i=new ut;for(let{from:s,to:o}of e.visibleRanges)V4(this.tree,t,(r,l,a)=>{i.add(r,l,this.markCache[a]||(this.markCache[a]=I.mark({class:a})))},s,o);return i.finish()}}const pp=Ft.high(re.fromClass(dp,{decorations:n=>n.decorations})),gp=ys.define([{tag:B.meta,color:"#404740"},{tag:B.link,textDecoration:"underline"},{tag:B.heading,textDecoration:"underline",fontWeight:"bold"},{tag:B.emphasis,fontStyle:"italic"},{tag:B.strong,fontWeight:"bold"},{tag:B.strikethrough,textDecoration:"line-through"},{tag:B.keyword,color:"#708"},{tag:[B.atom,B.bool,B.url,B.contentSeparator,B.labelName],color:"#219"},{tag:[B.literal,B.inserted],color:"#164"},{tag:[B.string,B.deleted],color:"#a11"},{tag:[B.regexp,B.escape,B.special(B.string)],color:"#e40"},{tag:B.definition(B.variableName),color:"#00f"},{tag:B.local(B.variableName),color:"#30a"},{tag:[B.typeName,B.namespace],color:"#085"},{tag:B.className,color:"#167"},{tag:[B.special(B.variableName),B.macroName],color:"#256"},{tag:B.definition(B.propertyName),color:"#00c"},{tag:B.comment,color:"#940"},{tag:B.invalid,color:"#f00"}]),mp=z.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),qa=1e4,Ua="()[]{}",Ya=L.define({combine(n){return rt(n,{afterCursor:!0,brackets:Ua,maxScanDistance:qa,renderMatch:xp})}}),vp=I.mark({class:"cm-matchingBracket"}),wp=I.mark({class:"cm-nonmatchingBracket"});function xp(n){let e=[],t=n.matched?vp:wp;return e.push(t.range(n.start.from,n.start.to)),n.end&&e.push(t.range(n.end.from,n.end.to)),e}const bp=me.define({create(){return I.none},update(n,e){if(!e.docChanged&&!e.selection)return n;let t=[],i=e.state.facet(Ya);for(let s of e.state.selection.ranges){if(!s.empty)continue;let o=it(e.state,s.head,-1,i)||s.head>0&&it(e.state,s.head-1,1,i)||i.afterCursor&&(it(e.state,s.head,1,i)||s.head<e.state.doc.length&&it(e.state,s.head+1,-1,i));o&&(t=t.concat(i.renderMatch(o,e.state)))}return I.set(t,!0)},provide:n=>z.decorations.from(n)}),yp=[bp,mp];function kp(n={}){return[Ya.of(n),yp]}const Ka=new W;function G0(n,e,t){let i=n.prop(e<0?W.openedBy:W.closedBy);if(i)return i;if(n.name.length==1){let s=t.indexOf(n.name);if(s>-1&&s%2==(e<0?1:0))return[t[s+e]]}return null}function j0(n){let e=n.type.prop(Ka);return e?e(n.node):n}function it(n,e,t,i={}){let s=i.maxScanDistance||qa,o=i.brackets||Ua,r=fe(n),l=r.resolveInner(e,t);for(let a=l;a;a=a.parent){let c=G0(a.type,t,o);if(c&&a.from<a.to){let h=j0(a);if(h&&(t>0?e>=h.from&&e<h.to:e>h.from&&e<=h.to))return Sp(n,e,t,a,h,c,o)}}return Cp(n,e,t,r,l.type,s,o)}function Sp(n,e,t,i,s,o,r){let l=i.parent,a={from:s.from,to:s.to},c=0,h=l==null?void 0:l.cursor();if(h&&(t<0?h.childBefore(i.from):h.childAfter(i.to)))do if(t<0?h.to<=i.from:h.from>=i.to){if(c==0&&o.indexOf(h.type.name)>-1&&h.from<h.to){let f=j0(h);return{start:a,end:f?{from:f.from,to:f.to}:void 0,matched:!0}}else if(G0(h.type,t,r))c++;else if(G0(h.type,-t,r)){if(c==0){let f=j0(h);return{start:a,end:f&&f.from<f.to?{from:f.from,to:f.to}:void 0,matched:!1}}c--}}while(t<0?h.prevSibling():h.nextSibling());return{start:a,matched:!1}}function Cp(n,e,t,i,s,o,r){let l=t<0?n.sliceDoc(e-1,e):n.sliceDoc(e,e+1),a=r.indexOf(l);if(a<0||a%2==0!=t>0)return null;let c={from:t<0?e-1:e,to:t>0?e+1:e},h=n.doc.iterRange(e,t>0?n.doc.length:0),f=0;for(let d=0;!h.next().done&&d<=o;){let p=h.value;t<0&&(d+=p.length);let g=e+d*t;for(let m=t>0?0:p.length-1,v=t>0?p.length:-1;m!=v;m+=t){let x=r.indexOf(p[m]);if(!(x<0||i.resolveInner(g+m,1).type!=s))if(x%2==0==t>0)f++;else{if(f==1)return{start:c,end:{from:g+m,to:g+m+1},matched:x>>1==a>>1};f--}}t>0&&(d+=p.length)}return h.done?{start:c,matched:!1}:null}const _p=Object.create(null),ir=[Be.none],nr=[],sr=Object.create(null),Op=Object.create(null);for(let[n,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])Op[n]=Mp(_p,e);function Us(n,e){nr.indexOf(n)>-1||(nr.push(n),console.warn(e))}function Mp(n,e){let t=[];for(let l of e.split(" ")){let a=[];for(let c of l.split(".")){let h=n[c]||B[c];h?typeof h=="function"?a.length?a=a.map(h):Us(c,`Modifier ${c} used at start of tag`):a.length?Us(c,`Tag ${c} used as modifier`):a=Array.isArray(h)?h:[h]:Us(c,`Unknown highlighting tag ${c}`)}for(let c of a)t.push(c)}if(!t.length)return 0;let i=e.replace(/ /g,"_"),s=i+" "+t.map(l=>l.id),o=sr[s];if(o)return o.id;let r=sr[s]=Be.define({id:ir.length,name:i,props:[Ba({[i]:t})]});return ir.push(r),r.id}Z.RTL,Z.LTR;const Dp=n=>{let{state:e}=n,t=e.doc.lineAt(e.selection.main.from),i=Mo(n.state,t.from);return i.line?Tp(n):i.block?Bp(n):!1};function Oo(n,e){return({state:t,dispatch:i})=>{if(t.readOnly)return!1;let s=n(e,t);return s?(i(t.update(s)),!0):!1}}const Tp=Oo(Vp,0),Ap=Oo(Xa,0),Bp=Oo((n,e)=>Xa(n,e,Ep(e)),0);function Mo(n,e){let t=n.languageDataAt("commentTokens",e,1);return t.length?t[0]:{}}const xi=50;function Pp(n,{open:e,close:t},i,s){let o=n.sliceDoc(i-xi,i),r=n.sliceDoc(s,s+xi),l=/\s*$/.exec(o)[0].length,a=/^\s*/.exec(r)[0].length,c=o.length-l;if(o.slice(c-e.length,c)==e&&r.slice(a,a+t.length)==t)return{open:{pos:i-l,margin:l&&1},close:{pos:s+a,margin:a&&1}};let h,f;s-i<=2*xi?h=f=n.sliceDoc(i,s):(h=n.sliceDoc(i,i+xi),f=n.sliceDoc(s-xi,s));let d=/^\s*/.exec(h)[0].length,p=/\s*$/.exec(f)[0].length,g=f.length-p-t.length;return h.slice(d,d+e.length)==e&&f.slice(g,g+t.length)==t?{open:{pos:i+d+e.length,margin:/\s/.test(h.charAt(d+e.length))?1:0},close:{pos:s-p-t.length,margin:/\s/.test(f.charAt(g-1))?1:0}}:null}function Ep(n){let e=[];for(let t of n.selection.ranges){let i=n.doc.lineAt(t.from),s=t.to<=i.to?i:n.doc.lineAt(t.to);s.from>i.from&&s.from==t.to&&(s=t.to==i.to+1?i:n.doc.lineAt(t.to-1));let o=e.length-1;o>=0&&e[o].to>i.from?e[o].to=s.to:e.push({from:i.from+/^\s*/.exec(i.text)[0].length,to:s.to})}return e}function Xa(n,e,t=e.selection.ranges){let i=t.map(o=>Mo(e,o.from).block);if(!i.every(o=>o))return null;let s=t.map((o,r)=>Pp(e,i[r],o.from,o.to));if(n!=2&&!s.every(o=>o))return{changes:e.changes(t.map((o,r)=>s[r]?[]:[{from:o.from,insert:i[r].open+" "},{from:o.to,insert:" "+i[r].close}]))};if(n!=1&&s.some(o=>o)){let o=[];for(let r=0,l;r<s.length;r++)if(l=s[r]){let a=i[r],{open:c,close:h}=l;o.push({from:c.pos-a.open.length,to:c.pos+c.margin},{from:h.pos-h.margin,to:h.pos+a.close.length})}return{changes:o}}return null}function Vp(n,e,t=e.selection.ranges){let i=[],s=-1;for(let{from:o,to:r}of t){let l=i.length,a=1e9,c=Mo(e,o).line;if(c){for(let h=o;h<=r;){let f=e.doc.lineAt(h);if(f.from>s&&(o==r||r>f.from)){s=f.from;let d=/^\s*/.exec(f.text)[0].length,p=d==f.length,g=f.text.slice(d,d+c.length)==c?d:-1;d<f.text.length&&d<a&&(a=d),i.push({line:f,comment:g,token:c,indent:d,empty:p,single:!1})}h=f.to+1}if(a<1e9)for(let h=l;h<i.length;h++)i[h].indent<i[h].line.text.length&&(i[h].indent=a);i.length==l+1&&(i[l].single=!0)}}if(n!=2&&i.some(o=>o.comment<0&&(!o.empty||o.single))){let o=[];for(let{line:l,token:a,indent:c,empty:h,single:f}of i)(f||!h)&&o.push({from:l.from+c,insert:a+" "});let r=e.changes(o);return{changes:r,selection:e.selection.map(r,1)}}else if(n!=1&&i.some(o=>o.comment>=0)){let o=[];for(let{line:r,comment:l,token:a}of i)if(l>=0){let c=r.from+l,h=c+a.length;r.text[h-r.from]==" "&&h++,o.push({from:c,to:h})}return{changes:o}}return null}const q0=pt.define(),zp=pt.define(),Lp=L.define(),Qa=L.define({combine(n){return rt(n,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(i,s)=>e(i,s)||t(i,s)})}}),Ja=me.define({create(){return nt.empty},update(n,e){let t=e.state.facet(Qa),i=e.annotation(q0);if(i){let a=Ae.fromTransaction(e,i.selection),c=i.side,h=c==0?n.undone:n.done;return a?h=ts(h,h.length,t.minDepth,a):h=tc(h,e.startState.selection),new nt(c==0?i.rest:h,c==0?h:i.rest)}let s=e.annotation(zp);if((s=="full"||s=="before")&&(n=n.isolate()),e.annotation(ae.addToHistory)===!1)return e.changes.empty?n:n.addMapping(e.changes.desc);let o=Ae.fromTransaction(e),r=e.annotation(ae.time),l=e.annotation(ae.userEvent);return o?n=n.addChanges(o,r,l,t,e):e.selection&&(n=n.addSelection(e.startState.selection,r,l,t.newGroupDelay)),(s=="full"||s=="after")&&(n=n.isolate()),n},toJSON(n){return{done:n.done.map(e=>e.toJSON()),undone:n.undone.map(e=>e.toJSON())}},fromJSON(n){return new nt(n.done.map(Ae.fromJSON),n.undone.map(Ae.fromJSON))}});function Np(n={}){return[Ja,Qa.of(n),z.domEventHandlers({beforeinput(e,t){let i=e.inputType=="historyUndo"?Za:e.inputType=="historyRedo"?U0:null;return i?(e.preventDefault(),i(t)):!1}})]}function ks(n,e){return function({state:t,dispatch:i}){if(!e&&t.readOnly)return!1;let s=t.field(Ja,!1);if(!s)return!1;let o=s.pop(n,t,e);return o?(i(o),!0):!1}}const Za=ks(0,!1),U0=ks(1,!1),Rp=ks(0,!0),Ip=ks(1,!0);class Ae{constructor(e,t,i,s,o){this.changes=e,this.effects=t,this.mapped=i,this.startSelection=s,this.selectionsAfter=o}setSelAfter(e){return new Ae(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,i;return{changes:(e=this.changes)===null||e===void 0?void 0:e.toJSON(),mapped:(t=this.mapped)===null||t===void 0?void 0:t.toJSON(),startSelection:(i=this.startSelection)===null||i===void 0?void 0:i.toJSON(),selectionsAfter:this.selectionsAfter.map(s=>s.toJSON())}}static fromJSON(e){return new Ae(e.changes&&le.fromJSON(e.changes),[],e.mapped&&st.fromJSON(e.mapped),e.startSelection&&M.fromJSON(e.startSelection),e.selectionsAfter.map(M.fromJSON))}static fromTransaction(e,t){let i=Re;for(let s of e.startState.facet(Lp)){let o=s(e);o.length&&(i=i.concat(o))}return!i.length&&e.changes.empty?null:new Ae(e.changes.invert(e.startState.doc),i,void 0,t||e.startState.selection,Re)}static selection(e){return new Ae(void 0,Re,void 0,void 0,e)}}function ts(n,e,t,i){let s=e+1>t+20?e-t-1:0,o=n.slice(s,e);return o.push(i),o}function Hp(n,e){let t=[],i=!1;return n.iterChangedRanges((s,o)=>t.push(s,o)),e.iterChangedRanges((s,o,r,l)=>{for(let a=0;a<t.length;){let c=t[a++],h=t[a++];l>=c&&r<=h&&(i=!0)}}),i}function $p(n,e){return n.ranges.length==e.ranges.length&&n.ranges.filter((t,i)=>t.empty!=e.ranges[i].empty).length===0}function ec(n,e){return n.length?e.length?n.concat(e):n:e}const Re=[],Wp=200;function tc(n,e){if(n.length){let t=n[n.length-1],i=t.selectionsAfter.slice(Math.max(0,t.selectionsAfter.length-Wp));return i.length&&i[i.length-1].eq(e)?n:(i.push(e),ts(n,n.length-1,1e9,t.setSelAfter(i)))}else return[Ae.selection([e])]}function Fp(n){let e=n[n.length-1],t=n.slice();return t[n.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),t}function Ys(n,e){if(!n.length)return n;let t=n.length,i=Re;for(;t;){let s=Gp(n[t-1],e,i);if(s.changes&&!s.changes.empty||s.effects.length){let o=n.slice(0,t);return o[t-1]=s,o}else e=s.mapped,t--,i=s.selectionsAfter}return i.length?[Ae.selection(i)]:Re}function Gp(n,e,t){let i=ec(n.selectionsAfter.length?n.selectionsAfter.map(l=>l.map(e)):Re,t);if(!n.changes)return Ae.selection(i);let s=n.changes.map(e),o=e.mapDesc(n.changes,!0),r=n.mapped?n.mapped.composeDesc(o):o;return new Ae(s,$.mapEffects(n.effects,e),r,n.startSelection.map(o),i)}const jp=/^(input\.type|delete)($|\.)/;class nt{constructor(e,t,i=0,s=void 0){this.done=e,this.undone=t,this.prevTime=i,this.prevUserEvent=s}isolate(){return this.prevTime?new nt(this.done,this.undone):this}addChanges(e,t,i,s,o){let r=this.done,l=r[r.length-1];return l&&l.changes&&!l.changes.empty&&e.changes&&(!i||jp.test(i))&&(!l.selectionsAfter.length&&t-this.prevTime<s.newGroupDelay&&s.joinToEvent(o,Hp(l.changes,e.changes))||i=="input.type.compose")?r=ts(r,r.length-1,s.minDepth,new Ae(e.changes.compose(l.changes),ec($.mapEffects(e.effects,l.changes),l.effects),l.mapped,l.startSelection,Re)):r=ts(r,r.length,s.minDepth,e),new nt(r,Re,t,i)}addSelection(e,t,i,s){let o=this.done.length?this.done[this.done.length-1].selectionsAfter:Re;return o.length>0&&t-this.prevTime<s&&i==this.prevUserEvent&&i&&/^select($|\.)/.test(i)&&$p(o[o.length-1],e)?this:new nt(tc(this.done,e),this.undone,t,i)}addMapping(e){return new nt(Ys(this.done,e),Ys(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,i){let s=e==0?this.done:this.undone;if(s.length==0)return null;let o=s[s.length-1],r=o.selectionsAfter[0]||t.selection;if(i&&o.selectionsAfter.length)return t.update({selection:o.selectionsAfter[o.selectionsAfter.length-1],annotations:q0.of({side:e,rest:Fp(s),selection:r}),userEvent:e==0?"select.undo":"select.redo",scrollIntoView:!0});if(o.changes){let l=s.length==1?Re:s.slice(0,s.length-1);return o.mapped&&(l=Ys(l,o.mapped)),t.update({changes:o.changes,selection:o.startSelection,effects:o.effects,annotations:q0.of({side:e,rest:l,selection:r}),filter:!1,userEvent:e==0?"undo":"redo",scrollIntoView:!0})}else return null}}nt.empty=new nt(Re,Re);const qp=[{key:"Mod-z",run:Za,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:U0,preventDefault:!0},{linux:"Ctrl-Shift-z",run:U0,preventDefault:!0},{key:"Mod-u",run:Rp,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:Ip,preventDefault:!0}];function fi(n,e){return M.create(n.ranges.map(e),n.mainIndex)}function lt(n,e){return n.update({selection:e,scrollIntoView:!0,userEvent:"select"})}function Ue({state:n,dispatch:e},t){let i=fi(n.selection,t);return i.eq(n.selection,!0)?!1:(e(lt(n,i)),!0)}function Ss(n,e){return M.cursor(e?n.to:n.from)}function ic(n,e){return Ue(n,t=>t.empty?n.moveByChar(t,e):Ss(t,e))}function xe(n){return n.textDirectionAt(n.state.selection.main.head)==Z.LTR}const nc=n=>ic(n,!xe(n)),sc=n=>ic(n,xe(n));function oc(n,e){return Ue(n,t=>t.empty?n.moveByGroup(t,e):Ss(t,e))}const Up=n=>oc(n,!xe(n)),Yp=n=>oc(n,xe(n));function Kp(n,e,t){if(e.type.prop(t))return!0;let i=e.to-e.from;return i&&(i>2||/[^\s,.;:]/.test(n.sliceDoc(e.from,e.to)))||e.firstChild}function Cs(n,e,t){let i=fe(n).resolveInner(e.head),s=t?W.closedBy:W.openedBy;for(let a=e.head;;){let c=t?i.childAfter(a):i.childBefore(a);if(!c)break;Kp(n,c,s)?i=c:a=t?c.to:c.from}let o=i.type.prop(s),r,l;return o&&(r=t?it(n,i.from,1):it(n,i.to,-1))&&r.matched?l=t?r.end.to:r.end.from:l=t?i.to:i.from,M.cursor(l,t?-1:1)}const Xp=n=>Ue(n,e=>Cs(n.state,e,!xe(n))),Qp=n=>Ue(n,e=>Cs(n.state,e,xe(n)));function rc(n,e){return Ue(n,t=>{if(!t.empty)return Ss(t,e);let i=n.moveVertically(t,e);return i.head!=t.head?i:n.moveToLineBoundary(t,e)})}const lc=n=>rc(n,!1),ac=n=>rc(n,!0);function cc(n){let e=n.scrollDOM.clientHeight<n.scrollDOM.scrollHeight-2,t=0,i=0,s;if(e){for(let o of n.state.facet(z.scrollMargins)){let r=o(n);r!=null&&r.top&&(t=Math.max(r==null?void 0:r.top,t)),r!=null&&r.bottom&&(i=Math.max(r==null?void 0:r.bottom,i))}s=n.scrollDOM.clientHeight-t-i}else s=(n.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:t,marginBottom:i,selfScroll:e,height:Math.max(n.defaultLineHeight,s-5)}}function hc(n,e){let t=cc(n),{state:i}=n,s=fi(i.selection,r=>r.empty?n.moveVertically(r,e,t.height):Ss(r,e));if(s.eq(i.selection))return!1;let o;if(t.selfScroll){let r=n.coordsAtPos(i.selection.main.head),l=n.scrollDOM.getBoundingClientRect(),a=l.top+t.marginTop,c=l.bottom-t.marginBottom;r&&r.top>a&&r.bottom<c&&(o=z.scrollIntoView(s.main.head,{y:"start",yMargin:r.top-a}))}return n.dispatch(lt(i,s),{effects:o}),!0}const or=n=>hc(n,!1),Y0=n=>hc(n,!0);function Tt(n,e,t){let i=n.lineBlockAt(e.head),s=n.moveToLineBoundary(e,t);if(s.head==e.head&&s.head!=(t?i.to:i.from)&&(s=n.moveToLineBoundary(e,t,!1)),!t&&s.head==i.from&&i.length){let o=/^\s*/.exec(n.state.sliceDoc(i.from,Math.min(i.from+100,i.to)))[0].length;o&&e.head!=i.from+o&&(s=M.cursor(i.from+o))}return s}const Jp=n=>Ue(n,e=>Tt(n,e,!0)),Zp=n=>Ue(n,e=>Tt(n,e,!1)),eg=n=>Ue(n,e=>Tt(n,e,!xe(n))),tg=n=>Ue(n,e=>Tt(n,e,xe(n))),ig=n=>Ue(n,e=>M.cursor(n.lineBlockAt(e.head).from,1)),ng=n=>Ue(n,e=>M.cursor(n.lineBlockAt(e.head).to,-1));function sg(n,e,t){let i=!1,s=fi(n.selection,o=>{let r=it(n,o.head,-1)||it(n,o.head,1)||o.head>0&&it(n,o.head-1,1)||o.head<n.doc.length&&it(n,o.head+1,-1);if(!r||!r.end)return o;i=!0;let l=r.start.from==o.head?r.end.to:r.end.from;return M.cursor(l)});return i?(e(lt(n,s)),!0):!1}const og=({state:n,dispatch:e})=>sg(n,e);function Fe(n,e){let t=fi(n.state.selection,i=>{let s=e(i);return M.range(i.anchor,s.head,s.goalColumn,s.bidiLevel||void 0)});return t.eq(n.state.selection)?!1:(n.dispatch(lt(n.state,t)),!0)}function uc(n,e){return Fe(n,t=>n.moveByChar(t,e))}const fc=n=>uc(n,!xe(n)),dc=n=>uc(n,xe(n));function pc(n,e){return Fe(n,t=>n.moveByGroup(t,e))}const rg=n=>pc(n,!xe(n)),lg=n=>pc(n,xe(n)),ag=n=>Fe(n,e=>Cs(n.state,e,!xe(n))),cg=n=>Fe(n,e=>Cs(n.state,e,xe(n)));function gc(n,e){return Fe(n,t=>n.moveVertically(t,e))}const mc=n=>gc(n,!1),vc=n=>gc(n,!0);function wc(n,e){return Fe(n,t=>n.moveVertically(t,e,cc(n).height))}const rr=n=>wc(n,!1),lr=n=>wc(n,!0),hg=n=>Fe(n,e=>Tt(n,e,!0)),ug=n=>Fe(n,e=>Tt(n,e,!1)),fg=n=>Fe(n,e=>Tt(n,e,!xe(n))),dg=n=>Fe(n,e=>Tt(n,e,xe(n))),pg=n=>Fe(n,e=>M.cursor(n.lineBlockAt(e.head).from)),gg=n=>Fe(n,e=>M.cursor(n.lineBlockAt(e.head).to)),ar=({state:n,dispatch:e})=>(e(lt(n,{anchor:0})),!0),cr=({state:n,dispatch:e})=>(e(lt(n,{anchor:n.doc.length})),!0),hr=({state:n,dispatch:e})=>(e(lt(n,{anchor:n.selection.main.anchor,head:0})),!0),ur=({state:n,dispatch:e})=>(e(lt(n,{anchor:n.selection.main.anchor,head:n.doc.length})),!0),mg=({state:n,dispatch:e})=>(e(n.update({selection:{anchor:0,head:n.doc.length},userEvent:"select"})),!0),vg=({state:n,dispatch:e})=>{let t=_s(n).map(({from:i,to:s})=>M.range(i,Math.min(s+1,n.doc.length)));return e(n.update({selection:M.create(t),userEvent:"select"})),!0},wg=({state:n,dispatch:e})=>{let t=fi(n.selection,i=>{let s=fe(n),o=s.resolveStack(i.from,1);if(i.empty){let r=s.resolveStack(i.from,-1);r.node.from>=o.node.from&&r.node.to<=o.node.to&&(o=r)}for(let r=o;r;r=r.next){let{node:l}=r;if((l.from<i.from&&l.to>=i.to||l.to>i.to&&l.from<=i.from)&&r.next)return M.range(l.to,l.from)}return i});return t.eq(n.selection)?!1:(e(lt(n,t)),!0)},xg=({state:n,dispatch:e})=>{let t=n.selection,i=null;return t.ranges.length>1?i=M.create([t.main]):t.main.empty||(i=M.create([M.cursor(t.main.head)])),i?(e(lt(n,i)),!0):!1};function Ji(n,e){if(n.state.readOnly)return!1;let t="delete.selection",{state:i}=n,s=i.changeByRange(o=>{let{from:r,to:l}=o;if(r==l){let a=e(o);a<r?(t="delete.backward",a=bn(n,a,!1)):a>r&&(t="delete.forward",a=bn(n,a,!0)),r=Math.min(r,a),l=Math.max(l,a)}else r=bn(n,r,!1),l=bn(n,l,!0);return r==l?{range:o}:{changes:{from:r,to:l},range:M.cursor(r,r<o.head?-1:1)}});return s.changes.empty?!1:(n.dispatch(i.update(s,{scrollIntoView:!0,userEvent:t,effects:t=="delete.selection"?z.announce.of(i.phrase("Selection deleted")):void 0})),!0)}function bn(n,e,t){if(n instanceof z)for(let i of n.state.facet(z.atomicRanges).map(s=>s(n)))i.between(e,e,(s,o)=>{s<e&&o>e&&(e=t?o:s)});return e}const xc=(n,e,t)=>Ji(n,i=>{let s=i.from,{state:o}=n,r=o.doc.lineAt(s),l,a;if(t&&!e&&s>r.from&&s<r.from+200&&!/[^ \t]/.test(l=r.text.slice(0,s-r.from))){if(l[l.length-1]==" ")return s-1;let c=ui(l,o.tabSize),h=c%Jn(o)||Jn(o);for(let f=0;f<h&&l[l.length-1-f]==" ";f++)s--;a=s}else a=ge(r.text,s-r.from,e,e)+r.from,a==s&&r.number!=(e?o.doc.lines:1)?a+=e?1:-1:!e&&/[\ufe00-\ufe0f]/.test(r.text.slice(a-r.from,s-r.from))&&(a=ge(r.text,a-r.from,!1,!1)+r.from);return a}),K0=n=>xc(n,!1,!0),bc=n=>xc(n,!0,!1),yc=(n,e)=>Ji(n,t=>{let i=t.head,{state:s}=n,o=s.doc.lineAt(i),r=s.charCategorizer(i);for(let l=null;;){if(i==(e?o.to:o.from)){i==t.head&&o.number!=(e?s.doc.lines:1)&&(i+=e?1:-1);break}let a=ge(o.text,i-o.from,e)+o.from,c=o.text.slice(Math.min(i,a)-o.from,Math.max(i,a)-o.from),h=r(c);if(l!=null&&h!=l)break;(c!=" "||i!=t.head)&&(l=h),i=a}return i}),kc=n=>yc(n,!1),bg=n=>yc(n,!0),yg=n=>Ji(n,e=>{let t=n.lineBlockAt(e.head).to;return e.head<t?t:Math.min(n.state.doc.length,e.head+1)}),kg=n=>Ji(n,e=>{let t=n.moveToLineBoundary(e,!1).head;return e.head>t?t:Math.max(0,e.head-1)}),Sg=n=>Ji(n,e=>{let t=n.moveToLineBoundary(e,!0).head;return e.head<t?t:Math.min(n.state.doc.length,e.head+1)}),Cg=({state:n,dispatch:e})=>{if(n.readOnly)return!1;let t=n.changeByRange(i=>({changes:{from:i.from,to:i.to,insert:q.of(["",""])},range:M.cursor(i.from)}));return e(n.update(t,{scrollIntoView:!0,userEvent:"input"})),!0},_g=({state:n,dispatch:e})=>{if(n.readOnly)return!1;let t=n.changeByRange(i=>{if(!i.empty||i.from==0||i.from==n.doc.length)return{range:i};let s=i.from,o=n.doc.lineAt(s),r=s==o.from?s-1:ge(o.text,s-o.from,!1)+o.from,l=s==o.to?s+1:ge(o.text,s-o.from,!0)+o.from;return{changes:{from:r,to:l,insert:n.doc.slice(s,l).append(n.doc.slice(r,s))},range:M.cursor(l)}});return t.changes.empty?!1:(e(n.update(t,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function _s(n){let e=[],t=-1;for(let i of n.selection.ranges){let s=n.doc.lineAt(i.from),o=n.doc.lineAt(i.to);if(!i.empty&&i.to==o.from&&(o=n.doc.lineAt(i.to-1)),t>=s.number){let r=e[e.length-1];r.to=o.to,r.ranges.push(i)}else e.push({from:s.from,to:o.to,ranges:[i]});t=o.number+1}return e}function Sc(n,e,t){if(n.readOnly)return!1;let i=[],s=[];for(let o of _s(n)){if(t?o.to==n.doc.length:o.from==0)continue;let r=n.doc.lineAt(t?o.to+1:o.from-1),l=r.length+1;if(t){i.push({from:o.to,to:r.to},{from:o.from,insert:r.text+n.lineBreak});for(let a of o.ranges)s.push(M.range(Math.min(n.doc.length,a.anchor+l),Math.min(n.doc.length,a.head+l)))}else{i.push({from:r.from,to:o.from},{from:o.to,insert:n.lineBreak+r.text});for(let a of o.ranges)s.push(M.range(a.anchor-l,a.head-l))}}return i.length?(e(n.update({changes:i,scrollIntoView:!0,selection:M.create(s,n.selection.mainIndex),userEvent:"move.line"})),!0):!1}const Og=({state:n,dispatch:e})=>Sc(n,e,!1),Mg=({state:n,dispatch:e})=>Sc(n,e,!0);function Cc(n,e,t){if(n.readOnly)return!1;let i=[];for(let s of _s(n))t?i.push({from:s.from,insert:n.doc.slice(s.from,s.to)+n.lineBreak}):i.push({from:s.to,insert:n.lineBreak+n.doc.slice(s.from,s.to)});return e(n.update({changes:i,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const Dg=({state:n,dispatch:e})=>Cc(n,e,!1),Tg=({state:n,dispatch:e})=>Cc(n,e,!0),Ag=n=>{if(n.state.readOnly)return!1;let{state:e}=n,t=e.changes(_s(e).map(({from:s,to:o})=>(s>0?s--:o<e.doc.length&&o++,{from:s,to:o}))),i=fi(e.selection,s=>{let o;if(n.lineWrapping){let r=n.lineBlockAt(s.head),l=n.coordsAtPos(s.head,s.assoc||1);l&&(o=r.bottom+n.documentTop-l.bottom+n.defaultLineHeight/2)}return n.moveVertically(s,!0,o)}).map(t);return n.dispatch({changes:t,selection:i,scrollIntoView:!0,userEvent:"delete.line"}),!0};function Bg(n,e){if(/\(\)|\[\]|\{\}/.test(n.sliceDoc(e-1,e+1)))return{from:e,to:e};let t=fe(n).resolveInner(e),i=t.childBefore(e),s=t.childAfter(e),o;return i&&s&&i.to<=e&&s.from>=e&&(o=i.type.prop(W.closedBy))&&o.indexOf(s.name)>-1&&n.doc.lineAt(i.to).from==n.doc.lineAt(s.from).from&&!/\S/.test(n.sliceDoc(i.to,s.from))?{from:i.to,to:s.from}:null}const fr=_c(!1),Pg=_c(!0);function _c(n){return({state:e,dispatch:t})=>{if(e.readOnly)return!1;let i=e.changeByRange(s=>{let{from:o,to:r}=s,l=e.doc.lineAt(o),a=!n&&o==r&&Bg(e,o);n&&(o=r=(r<=l.to?l:e.doc.lineAt(r)).to);let c=new xs(e,{simulateBreak:o,simulateDoubleBreak:!!a}),h=Co(c,o);for(h==null&&(h=ui(/^\s*/.exec(e.doc.lineAt(o).text)[0],e.tabSize));r<l.to&&/\s/.test(l.text[r-l.from]);)r++;a?{from:o,to:r}=a:o>l.from&&o<l.from+100&&!/\S/.test(l.text.slice(0,o))&&(o=l.from);let f=["",Wi(e,h)];return a&&f.push(Wi(e,c.lineIndent(l.from,-1))),{changes:{from:o,to:r,insert:q.of(f)},range:M.cursor(o+1+f[1].length)}});return t(e.update(i,{scrollIntoView:!0,userEvent:"input"})),!0}}function Do(n,e){let t=-1;return n.changeByRange(i=>{let s=[];for(let r=i.from;r<=i.to;){let l=n.doc.lineAt(r);l.number>t&&(i.empty||i.to>l.from)&&(e(l,s,i),t=l.number),r=l.to+1}let o=n.changes(s);return{changes:s,range:M.range(o.mapPos(i.anchor,1),o.mapPos(i.head,1))}})}const Eg=({state:n,dispatch:e})=>{if(n.readOnly)return!1;let t=Object.create(null),i=new xs(n,{overrideIndentation:o=>{let r=t[o];return r??-1}}),s=Do(n,(o,r,l)=>{let a=Co(i,o.from);if(a==null)return;/\S/.test(o.text)||(a=0);let c=/^\s*/.exec(o.text)[0],h=Wi(n,a);(c!=h||l.from<o.from+c.length)&&(t[o.from]=a,r.push({from:o.from,to:o.from+c.length,insert:h}))});return s.changes.empty||e(n.update(s,{userEvent:"indent"})),!0},Vg=({state:n,dispatch:e})=>n.readOnly?!1:(e(n.update(Do(n,(t,i)=>{i.push({from:t.from,insert:n.facet(So)})}),{userEvent:"input.indent"})),!0),zg=({state:n,dispatch:e})=>n.readOnly?!1:(e(n.update(Do(n,(t,i)=>{let s=/^\s*/.exec(t.text)[0];if(!s)return;let o=ui(s,n.tabSize),r=0,l=Wi(n,Math.max(0,o-Jn(n)));for(;r<s.length&&r<l.length&&s.charCodeAt(r)==l.charCodeAt(r);)r++;i.push({from:t.from+r,to:t.from+s.length,insert:l.slice(r)})}),{userEvent:"delete.dedent"})),!0),Lg=n=>(n.setTabFocusMode(),!0),Ng=[{key:"Ctrl-b",run:nc,shift:fc,preventDefault:!0},{key:"Ctrl-f",run:sc,shift:dc},{key:"Ctrl-p",run:lc,shift:mc},{key:"Ctrl-n",run:ac,shift:vc},{key:"Ctrl-a",run:ig,shift:pg},{key:"Ctrl-e",run:ng,shift:gg},{key:"Ctrl-d",run:bc},{key:"Ctrl-h",run:K0},{key:"Ctrl-k",run:yg},{key:"Ctrl-Alt-h",run:kc},{key:"Ctrl-o",run:Cg},{key:"Ctrl-t",run:_g},{key:"Ctrl-v",run:Y0}],Rg=[{key:"ArrowLeft",run:nc,shift:fc,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:Up,shift:rg,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:eg,shift:fg,preventDefault:!0},{key:"ArrowRight",run:sc,shift:dc,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:Yp,shift:lg,preventDefault:!0},{mac:"Cmd-ArrowRight",run:tg,shift:dg,preventDefault:!0},{key:"ArrowUp",run:lc,shift:mc,preventDefault:!0},{mac:"Cmd-ArrowUp",run:ar,shift:hr},{mac:"Ctrl-ArrowUp",run:or,shift:rr},{key:"ArrowDown",run:ac,shift:vc,preventDefault:!0},{mac:"Cmd-ArrowDown",run:cr,shift:ur},{mac:"Ctrl-ArrowDown",run:Y0,shift:lr},{key:"PageUp",run:or,shift:rr},{key:"PageDown",run:Y0,shift:lr},{key:"Home",run:Zp,shift:ug,preventDefault:!0},{key:"Mod-Home",run:ar,shift:hr},{key:"End",run:Jp,shift:hg,preventDefault:!0},{key:"Mod-End",run:cr,shift:ur},{key:"Enter",run:fr,shift:fr},{key:"Mod-a",run:mg},{key:"Backspace",run:K0,shift:K0},{key:"Delete",run:bc},{key:"Mod-Backspace",mac:"Alt-Backspace",run:kc},{key:"Mod-Delete",mac:"Alt-Delete",run:bg},{mac:"Mod-Backspace",run:kg},{mac:"Mod-Delete",run:Sg}].concat(Ng.map(n=>({mac:n.key,run:n.run,shift:n.shift}))),Ig=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:Xp,shift:ag},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:Qp,shift:cg},{key:"Alt-ArrowUp",run:Og},{key:"Shift-Alt-ArrowUp",run:Dg},{key:"Alt-ArrowDown",run:Mg},{key:"Shift-Alt-ArrowDown",run:Tg},{key:"Escape",run:xg},{key:"Mod-Enter",run:Pg},{key:"Alt-l",mac:"Ctrl-l",run:vg},{key:"Mod-i",run:wg,preventDefault:!0},{key:"Mod-[",run:zg},{key:"Mod-]",run:Vg},{key:"Mod-Alt-\\",run:Eg},{key:"Shift-Mod-k",run:Ag},{key:"Shift-Mod-\\",run:og},{key:"Mod-/",run:Dp},{key:"Alt-A",run:Ap},{key:"Ctrl-m",mac:"Shift-Alt-m",run:Lg}].concat(Rg),dr=typeof String.prototype.normalize=="function"?n=>n.normalize("NFKD"):n=>n;class ci{constructor(e,t,i=0,s=e.length,o,r){this.test=r,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(i,s),this.bufferStart=i,this.normalize=o?l=>o(dr(l)):dr,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return Oe(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=to(e),i=this.bufferStart+this.bufferPos;this.bufferPos+=et(e);let s=this.normalize(t);if(s.length)for(let o=0,r=i;;o++){let l=s.charCodeAt(o),a=this.match(l,r,this.bufferPos+this.bufferStart);if(o==s.length-1){if(a)return this.value=a,this;break}r==i&&o<t.length&&t.charCodeAt(o)==l&&r++}}}match(e,t,i){let s=null;for(let o=0;o<this.matches.length;o+=2){let r=this.matches[o],l=!1;this.query.charCodeAt(r)==e&&(r==this.query.length-1?s={from:this.matches[o+1],to:i}:(this.matches[o]++,l=!0)),l||(this.matches.splice(o,2),o-=2)}return this.query.charCodeAt(0)==e&&(this.query.length==1?s={from:t,to:i}:this.matches.push(1,t)),s&&this.test&&!this.test(s.from,s.to,this.buffer,this.bufferStart)&&(s=null),s}}typeof Symbol<"u"&&(ci.prototype[Symbol.iterator]=function(){return this});const Oc={from:-1,to:-1,match:/.*/.exec("")},To="gm"+(/x/.unicode==null?"":"u");class Mc{constructor(e,t,i,s=0,o=e.length){if(this.text=e,this.to=o,this.curLine="",this.done=!1,this.value=Oc,/\\[sWDnr]|\n|\r|\[\^/.test(t))return new Dc(e,t,i,s,o);this.re=new RegExp(t,To+(i!=null&&i.ignoreCase?"i":"")),this.test=i==null?void 0:i.test,this.iter=e.iter();let r=e.lineAt(s);this.curLineStart=r.from,this.matchPos=is(e,s),this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let i=this.curLineStart+t.index,s=i+t[0].length;if(this.matchPos=is(this.text,s+(i==s?1:0)),i==this.curLineStart+this.curLine.length&&this.nextLine(),(i<s||i>this.value.to)&&(!this.test||this.test(i,s,t)))return this.value={from:i,to:s,match:t},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length<this.to)this.nextLine(),e=0;else return this.done=!0,this}}}const Ks=new WeakMap;class ti{constructor(e,t){this.from=e,this.text=t}get to(){return this.from+this.text.length}static get(e,t,i){let s=Ks.get(e);if(!s||s.from>=i||s.to<=t){let l=new ti(t,e.sliceString(t,i));return Ks.set(e,l),l}if(s.from==t&&s.to==i)return s;let{text:o,from:r}=s;return r>t&&(o=e.sliceString(t,r)+o,r=t),s.to<i&&(o+=e.sliceString(s.to,i)),Ks.set(e,new ti(r,o)),new ti(t,o.slice(t-r,i-r))}}class Dc{constructor(e,t,i,s,o){this.text=e,this.to=o,this.done=!1,this.value=Oc,this.matchPos=is(e,s),this.re=new RegExp(t,To+(i!=null&&i.ignoreCase?"i":"")),this.test=i==null?void 0:i.test,this.flat=ti.get(e,s,this.chunkEnd(s+5e3))}chunkEnd(e){return e>=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let i=this.flat.from+t.index,s=i+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(i,s,t)))return this.value={from:i,to:s,match:t},this.matchPos=is(this.text,s+(i==s?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=ti.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(Mc.prototype[Symbol.iterator]=Dc.prototype[Symbol.iterator]=function(){return this});function Hg(n){try{return new RegExp(n,To),!0}catch{return!1}}function is(n,e){if(e>=n.length)return e;let t=n.lineAt(e),i;for(;e<t.to&&(i=t.text.charCodeAt(e-t.from))>=56320&&i<57344;)e++;return e}function X0(n){let e=String(n.state.doc.lineAt(n.state.selection.main.head).number),t=Y("input",{class:"cm-textfield",name:"line",value:e}),i=Y("form",{class:"cm-gotoLine",onkeydown:o=>{o.keyCode==27?(o.preventDefault(),n.dispatch({effects:Ti.of(!1)}),n.focus()):o.keyCode==13&&(o.preventDefault(),s())},onsubmit:o=>{o.preventDefault(),s()}},Y("label",n.state.phrase("Go to line"),": ",t)," ",Y("button",{class:"cm-button",type:"submit"},n.state.phrase("go")),Y("button",{name:"close",onclick:()=>{n.dispatch({effects:Ti.of(!1)}),n.focus()},"aria-label":n.state.phrase("close"),type:"button"},["×"]));function s(){let o=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(t.value);if(!o)return;let{state:r}=n,l=r.doc.lineAt(r.selection.main.head),[,a,c,h,f]=o,d=h?+h.slice(1):0,p=c?+c:l.number;if(c&&f){let v=p/100;a&&(v=v*(a=="-"?-1:1)+l.number/r.doc.lines),p=Math.round(r.doc.lines*v)}else c&&a&&(p=p*(a=="-"?-1:1)+l.number);let g=r.doc.line(Math.max(1,Math.min(r.doc.lines,p))),m=M.cursor(g.from+Math.max(0,Math.min(d,g.length)));n.dispatch({effects:[Ti.of(!1),z.scrollIntoView(m.from,{y:"center"})],selection:m}),n.focus()}return{dom:i}}const Ti=$.define(),pr=me.define({create(){return!0},update(n,e){for(let t of e.effects)t.is(Ti)&&(n=t.value);return n},provide:n=>Hi.from(n,e=>e?X0:null)}),$g=n=>{let e=Ii(n,X0);if(!e){let t=[Ti.of(!0)];n.state.field(pr,!1)==null&&t.push($.appendConfig.of([pr,Wg])),n.dispatch({effects:t}),e=Ii(n,X0)}return e&&e.dom.querySelector("input").select(),!0},Wg=z.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px",position:"relative","& label":{fontSize:"80%"},"& [name=close]":{position:"absolute",top:"0",bottom:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:"0"}}}),Fg={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},Gg=L.define({combine(n){return rt(n,Fg,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})}});function jg(n){return[Xg,Kg]}const qg=I.mark({class:"cm-selectionMatch"}),Ug=I.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function gr(n,e,t,i){return(t==0||n(e.sliceDoc(t-1,t))!=te.Word)&&(i==e.doc.length||n(e.sliceDoc(i,i+1))!=te.Word)}function Yg(n,e,t,i){return n(e.sliceDoc(t,t+1))==te.Word&&n(e.sliceDoc(i-1,i))==te.Word}const Kg=re.fromClass(class{constructor(n){this.decorations=this.getDeco(n)}update(n){(n.selectionSet||n.docChanged||n.viewportChanged)&&(this.decorations=this.getDeco(n.view))}getDeco(n){let e=n.state.facet(Gg),{state:t}=n,i=t.selection;if(i.ranges.length>1)return I.none;let s=i.main,o,r=null;if(s.empty){if(!e.highlightWordAroundCursor)return I.none;let a=t.wordAt(s.head);if(!a)return I.none;r=t.charCategorizer(s.head),o=t.sliceDoc(a.from,a.to)}else{let a=s.to-s.from;if(a<e.minSelectionLength||a>200)return I.none;if(e.wholeWords){if(o=t.sliceDoc(s.from,s.to),r=t.charCategorizer(s.head),!(gr(r,t,s.from,s.to)&&Yg(r,t,s.from,s.to)))return I.none}else if(o=t.sliceDoc(s.from,s.to),!o)return I.none}let l=[];for(let a of n.visibleRanges){let c=new ci(t.doc,o,a.from,a.to);for(;!c.next().done;){let{from:h,to:f}=c.value;if((!r||gr(r,t,h,f))&&(s.empty&&h<=s.from&&f>=s.to?l.push(Ug.range(h,f)):(h>=s.to||f<=s.from)&&l.push(qg.range(h,f)),l.length>e.maxMatches))return I.none}}return I.set(l)}},{decorations:n=>n.decorations}),Xg=z.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),Qg=({state:n,dispatch:e})=>{let{selection:t}=n,i=M.create(t.ranges.map(s=>n.wordAt(s.head)||M.cursor(s.head)),t.mainIndex);return i.eq(t)?!1:(e(n.update({selection:i})),!0)};function Jg(n,e){let{main:t,ranges:i}=n.selection,s=n.wordAt(t.head),o=s&&s.from==t.from&&s.to==t.to;for(let r=!1,l=new ci(n.doc,e,i[i.length-1].to);;)if(l.next(),l.done){if(r)return null;l=new ci(n.doc,e,0,Math.max(0,i[i.length-1].from-1)),r=!0}else{if(r&&i.some(a=>a.from==l.value.from))continue;if(o){let a=n.wordAt(l.value.from);if(!a||a.from!=l.value.from||a.to!=l.value.to)continue}return l.value}}const Zg=({state:n,dispatch:e})=>{let{ranges:t}=n.selection;if(t.some(o=>o.from===o.to))return Qg({state:n,dispatch:e});let i=n.sliceDoc(t[0].from,t[0].to);if(n.selection.ranges.some(o=>n.sliceDoc(o.from,o.to)!=i))return!1;let s=Jg(n,i);return s?(e(n.update({selection:n.selection.addRange(M.range(s.from,s.to),!1),effects:z.scrollIntoView(s.to)})),!0):!1},di=L.define({combine(n){return rt(n,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new u8(e),scrollToMatch:e=>z.scrollIntoView(e)})}});class Tc{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||Hg(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(t,i)=>i=="n"?`
|
|
12
|
-
`:i=="r"?"\r":i=="t"?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new n8(this):new t8(this)}getCursor(e,t=0,i){let s=e.doc?e:G.create({doc:e});return i==null&&(i=s.doc.length),this.regexp?Ut(this,s,t,i):qt(this,s,t,i)}}class Ac{constructor(e){this.spec=e}}function qt(n,e,t,i){return new ci(e.doc,n.unquoted,t,i,n.caseSensitive?void 0:s=>s.toLowerCase(),n.wholeWord?e8(e.doc,e.charCategorizer(e.selection.main.head)):void 0)}function e8(n,e){return(t,i,s,o)=>((o>t||o+s.length<i)&&(o=Math.max(0,t-2),s=n.sliceString(o,Math.min(n.length,i+2))),(e(ns(s,t-o))!=te.Word||e(ss(s,t-o))!=te.Word)&&(e(ss(s,i-o))!=te.Word||e(ns(s,i-o))!=te.Word))}class t8 extends Ac{constructor(e){super(e)}nextMatch(e,t,i){let s=qt(this.spec,e,i,e.doc.length).nextOverlapping();if(s.done){let o=Math.min(e.doc.length,t+this.spec.unquoted.length);s=qt(this.spec,e,0,o).nextOverlapping()}return s.done||s.value.from==t&&s.value.to==i?null:s.value}prevMatchInRange(e,t,i){for(let s=i;;){let o=Math.max(t,s-1e4-this.spec.unquoted.length),r=qt(this.spec,e,o,s),l=null;for(;!r.nextOverlapping().done;)l=r.value;if(l)return l;if(o==t)return null;s-=1e4}}prevMatch(e,t,i){let s=this.prevMatchInRange(e,0,t);return s||(s=this.prevMatchInRange(e,Math.max(0,i-this.spec.unquoted.length),e.doc.length)),s&&(s.from!=t||s.to!=i)?s:null}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,t){let i=qt(this.spec,e,0,e.doc.length),s=[];for(;!i.next().done;){if(s.length>=t)return null;s.push(i.value)}return s}highlight(e,t,i,s){let o=qt(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(i+this.spec.unquoted.length,e.doc.length));for(;!o.next().done;)s(o.value.from,o.value.to)}}function Ut(n,e,t,i){return new Mc(e.doc,n.search,{ignoreCase:!n.caseSensitive,test:n.wholeWord?i8(e.charCategorizer(e.selection.main.head)):void 0},t,i)}function ns(n,e){return n.slice(ge(n,e,!1),e)}function ss(n,e){return n.slice(e,ge(n,e))}function i8(n){return(e,t,i)=>!i[0].length||(n(ns(i.input,i.index))!=te.Word||n(ss(i.input,i.index))!=te.Word)&&(n(ss(i.input,i.index+i[0].length))!=te.Word||n(ns(i.input,i.index+i[0].length))!=te.Word)}class n8 extends Ac{nextMatch(e,t,i){let s=Ut(this.spec,e,i,e.doc.length).next();return s.done&&(s=Ut(this.spec,e,0,t).next()),s.done?null:s.value}prevMatchInRange(e,t,i){for(let s=1;;s++){let o=Math.max(t,i-s*1e4),r=Ut(this.spec,e,o,i),l=null;for(;!r.next().done;)l=r.value;if(l&&(o==t||l.from>o+10))return l;if(o==t)return null}}prevMatch(e,t,i){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,i,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(t,i)=>{if(i=="&")return e.match[0];if(i=="$")return"$";for(let s=i.length;s>0;s--){let o=+i.slice(0,s);if(o>0&&o<e.match.length)return e.match[o]+i.slice(s)}return t})}matchAll(e,t){let i=Ut(this.spec,e,0,e.doc.length),s=[];for(;!i.next().done;){if(s.length>=t)return null;s.push(i.value)}return s}highlight(e,t,i,s){let o=Ut(this.spec,e,Math.max(0,t-250),Math.min(i+250,e.doc.length));for(;!o.next().done;)s(o.value.from,o.value.to)}}const Fi=$.define(),Ao=$.define(),kt=me.define({create(n){return new Xs(Q0(n).create(),null)},update(n,e){for(let t of e.effects)t.is(Fi)?n=new Xs(t.value.create(),n.panel):t.is(Ao)&&(n=new Xs(n.query,t.value?Bo:null));return n},provide:n=>Hi.from(n,e=>e.panel)});class Xs{constructor(e,t){this.query=e,this.panel=t}}const s8=I.mark({class:"cm-searchMatch"}),o8=I.mark({class:"cm-searchMatch cm-searchMatch-selected"}),r8=re.fromClass(class{constructor(n){this.view=n,this.decorations=this.highlight(n.state.field(kt))}update(n){let e=n.state.field(kt);(e!=n.startState.field(kt)||n.docChanged||n.selectionSet||n.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:n,panel:e}){if(!e||!n.spec.valid)return I.none;let{view:t}=this,i=new ut;for(let s=0,o=t.visibleRanges,r=o.length;s<r;s++){let{from:l,to:a}=o[s];for(;s<r-1&&a>o[s+1].from-2*250;)a=o[++s].to;n.highlight(t.state,l,a,(c,h)=>{let f=t.state.selection.ranges.some(d=>d.from==c&&d.to==h);i.add(c,h,f?o8:s8)})}return i.finish()}},{decorations:n=>n.decorations});function Zi(n){return e=>{let t=e.state.field(kt,!1);return t&&t.query.spec.valid?n(e,t):Ec(e)}}const os=Zi((n,{query:e})=>{let{to:t}=n.state.selection.main,i=e.nextMatch(n.state,t,t);if(!i)return!1;let s=M.single(i.from,i.to),o=n.state.facet(di);return n.dispatch({selection:s,effects:[Po(n,i),o.scrollToMatch(s.main,n)],userEvent:"select.search"}),Pc(n),!0}),rs=Zi((n,{query:e})=>{let{state:t}=n,{from:i}=t.selection.main,s=e.prevMatch(t,i,i);if(!s)return!1;let o=M.single(s.from,s.to),r=n.state.facet(di);return n.dispatch({selection:o,effects:[Po(n,s),r.scrollToMatch(o.main,n)],userEvent:"select.search"}),Pc(n),!0}),l8=Zi((n,{query:e})=>{let t=e.matchAll(n.state,1e3);return!t||!t.length?!1:(n.dispatch({selection:M.create(t.map(i=>M.range(i.from,i.to))),userEvent:"select.search.matches"}),!0)}),a8=({state:n,dispatch:e})=>{let t=n.selection;if(t.ranges.length>1||t.main.empty)return!1;let{from:i,to:s}=t.main,o=[],r=0;for(let l=new ci(n.doc,n.sliceDoc(i,s));!l.next().done;){if(o.length>1e3)return!1;l.value.from==i&&(r=o.length),o.push(M.range(l.value.from,l.value.to))}return e(n.update({selection:M.create(o,r),userEvent:"select.search.matches"})),!0},mr=Zi((n,{query:e})=>{let{state:t}=n,{from:i,to:s}=t.selection.main;if(t.readOnly)return!1;let o=e.nextMatch(t,i,i);if(!o)return!1;let r=o,l=[],a,c,h=[];r.from==i&&r.to==s&&(c=t.toText(e.getReplacement(r)),l.push({from:r.from,to:r.to,insert:c}),r=e.nextMatch(t,r.from,r.to),h.push(z.announce.of(t.phrase("replaced match on line $",t.doc.lineAt(i).number)+".")));let f=n.state.changes(l);return r&&(a=M.single(r.from,r.to).map(f),h.push(Po(n,r)),h.push(t.facet(di).scrollToMatch(a.main,n))),n.dispatch({changes:f,selection:a,effects:h,userEvent:"input.replace"}),!0}),c8=Zi((n,{query:e})=>{if(n.state.readOnly)return!1;let t=e.matchAll(n.state,1e9).map(s=>{let{from:o,to:r}=s;return{from:o,to:r,insert:e.getReplacement(s)}});if(!t.length)return!1;let i=n.state.phrase("replaced $ matches",t.length)+".";return n.dispatch({changes:t,effects:z.announce.of(i),userEvent:"input.replace.all"}),!0});function Bo(n){return n.state.facet(di).createPanel(n)}function Q0(n,e){var t,i,s,o,r;let l=n.selection.main,a=l.empty||l.to>l.from+100?"":n.sliceDoc(l.from,l.to);if(e&&!a)return e;let c=n.facet(di);return new Tc({search:((t=e==null?void 0:e.literal)!==null&&t!==void 0?t:c.literal)?a:a.replace(/\n/g,"\\n"),caseSensitive:(i=e==null?void 0:e.caseSensitive)!==null&&i!==void 0?i:c.caseSensitive,literal:(s=e==null?void 0:e.literal)!==null&&s!==void 0?s:c.literal,regexp:(o=e==null?void 0:e.regexp)!==null&&o!==void 0?o:c.regexp,wholeWord:(r=e==null?void 0:e.wholeWord)!==null&&r!==void 0?r:c.wholeWord})}function Bc(n){let e=Ii(n,Bo);return e&&e.dom.querySelector("[main-field]")}function Pc(n){let e=Bc(n);e&&e==n.root.activeElement&&e.select()}const Ec=n=>{let e=n.state.field(kt,!1);if(e&&e.panel){let t=Bc(n);if(t&&t!=n.root.activeElement){let i=Q0(n.state,e.query.spec);i.valid&&n.dispatch({effects:Fi.of(i)}),t.focus(),t.select()}}else n.dispatch({effects:[Ao.of(!0),e?Fi.of(Q0(n.state,e.query.spec)):$.appendConfig.of(d8)]});return!0},Vc=n=>{let e=n.state.field(kt,!1);if(!e||!e.panel)return!1;let t=Ii(n,Bo);return t&&t.dom.contains(n.root.activeElement)&&n.focus(),n.dispatch({effects:Ao.of(!1)}),!0},h8=[{key:"Mod-f",run:Ec,scope:"editor search-panel"},{key:"F3",run:os,shift:rs,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:os,shift:rs,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:Vc,scope:"editor search-panel"},{key:"Mod-Shift-l",run:a8},{key:"Mod-Alt-g",run:$g},{key:"Mod-d",run:Zg,preventDefault:!0}];class u8{constructor(e){this.view=e;let t=this.query=e.state.field(kt).query.spec;this.commit=this.commit.bind(this),this.searchField=Y("input",{value:t.search,placeholder:Ee(e,"Find"),"aria-label":Ee(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Y("input",{value:t.replace,placeholder:Ee(e,"Replace"),"aria-label":Ee(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Y("input",{type:"checkbox",name:"case",form:"",checked:t.caseSensitive,onchange:this.commit}),this.reField=Y("input",{type:"checkbox",name:"re",form:"",checked:t.regexp,onchange:this.commit}),this.wordField=Y("input",{type:"checkbox",name:"word",form:"",checked:t.wholeWord,onchange:this.commit});function i(s,o,r){return Y("button",{class:"cm-button",name:s,onclick:o,type:"button"},r)}this.dom=Y("div",{onkeydown:s=>this.keydown(s),class:"cm-search"},[this.searchField,i("next",()=>os(e),[Ee(e,"next")]),i("prev",()=>rs(e),[Ee(e,"previous")]),i("select",()=>l8(e),[Ee(e,"all")]),Y("label",null,[this.caseField,Ee(e,"match case")]),Y("label",null,[this.reField,Ee(e,"regexp")]),Y("label",null,[this.wordField,Ee(e,"by word")]),...e.state.readOnly?[]:[Y("br"),this.replaceField,i("replace",()=>mr(e),[Ee(e,"replace")]),i("replaceAll",()=>c8(e),[Ee(e,"replace all")])],Y("button",{name:"close",onclick:()=>Vc(e),"aria-label":Ee(e,"close"),type:"button"},["×"])])}commit(){let e=new Tc({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:Fi.of(e)}))}keydown(e){y6(this.view,e,"search-panel")?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?rs:os)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),mr(this.view))}update(e){for(let t of e.transactions)for(let i of t.effects)i.is(Fi)&&!i.value.eq(this.query)&&this.setQuery(i.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(di).top}}function Ee(n,e){return n.state.phrase(e)}const yn=30,kn=/[\s\.,:;?!]/;function Po(n,{from:e,to:t}){let i=n.state.doc.lineAt(e),s=n.state.doc.lineAt(t).to,o=Math.max(i.from,e-yn),r=Math.min(s,t+yn),l=n.state.sliceDoc(o,r);if(o!=i.from){for(let a=0;a<yn;a++)if(!kn.test(l[a+1])&&kn.test(l[a])){l=l.slice(a);break}}if(r!=s){for(let a=l.length-1;a>l.length-yn;a--)if(!kn.test(l[a-1])&&kn.test(l[a])){l=l.slice(0,a);break}}return z.announce.of(`${n.state.phrase("current match")}. ${l} ${n.state.phrase("on line")} ${i.number}.`)}const f8=z.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),d8=[kt,Ft.low(r8),f8];class zc{constructor(e,t,i,s){this.state=e,this.pos=t,this.explicit=i,this.view=s,this.abortListeners=[],this.abortOnDocChange=!1}tokenBefore(e){let t=fe(this.state).resolveInner(this.pos,-1);for(;t&&e.indexOf(t.name)<0;)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),i=Math.max(t.from,this.pos-250),s=t.text.slice(i-t.from,this.pos-t.from),o=s.search(Lc(e,!1));return o<0?null:{from:i+o,to:this.pos,text:s.slice(o)}}get aborted(){return this.abortListeners==null}addEventListener(e,t,i){e=="abort"&&this.abortListeners&&(this.abortListeners.push(t),i&&i.onDocChange&&(this.abortOnDocChange=!0))}}function vr(n){let e=Object.keys(n).join(""),t=/\w/.test(e);return t&&(e=e.replace(/\w/g,"")),`[${t?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function p8(n){let e=Object.create(null),t=Object.create(null);for(let{label:s}of n){e[s[0]]=!0;for(let o=1;o<s.length;o++)t[s[o]]=!0}let i=vr(e)+vr(t)+"*$";return[new RegExp("^"+i),new RegExp(i)]}function g8(n){let e=n.map(s=>typeof s=="string"?{label:s}:s),[t,i]=e.every(s=>/^\w+$/.test(s.label))?[/\w*$/,/\w+$/]:p8(e);return s=>{let o=s.matchBefore(i);return o||s.explicit?{from:o?o.from:s.pos,options:e,validFor:t}:null}}class wr{constructor(e,t,i,s){this.completion=e,this.source=t,this.match=i,this.score=s}}function Lt(n){return n.selection.main.from}function Lc(n,e){var t;let{source:i}=n,s=e&&i[0]!="^",o=i[i.length-1]!="$";return!s&&!o?n:new RegExp(`${s?"^":""}(?:${i})${o?"$":""}`,(t=n.flags)!==null&&t!==void 0?t:n.ignoreCase?"i":"")}const Nc=pt.define();function m8(n,e,t,i){let{main:s}=n.selection,o=t-s.from,r=i-s.from;return Object.assign(Object.assign({},n.changeByRange(l=>{if(l!=s&&t!=i&&n.sliceDoc(l.from+o,l.from+r)!=n.sliceDoc(t,i))return{range:l};let a=n.toText(e);return{changes:{from:l.from+o,to:i==s.from?l.to:l.from+r,insert:a},range:M.cursor(l.from+o+a.length)}})),{scrollIntoView:!0,userEvent:"input.complete"})}const xr=new WeakMap;function v8(n){if(!Array.isArray(n))return n;let e=xr.get(n);return e||xr.set(n,e=g8(n)),e}const ls=$.define(),Gi=$.define();class w8{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let t=0;t<e.length;){let i=Oe(e,t),s=et(i);this.chars.push(i);let o=e.slice(t,t+s),r=o.toUpperCase();this.folded.push(Oe(r==o?o.toLowerCase():r,0)),t+=s}this.astral=e.length!=this.chars.length}ret(e,t){return this.score=e,this.matched=t,this}match(e){if(this.pattern.length==0)return this.ret(-100,[]);if(e.length<this.pattern.length)return null;let{chars:t,folded:i,any:s,precise:o,byWord:r}=this;if(t.length==1){let b=Oe(e,0),k=et(b),_=k==e.length?0:-100;if(b!=t[0])if(b==i[0])_+=-200;else return null;return this.ret(_,[0,k])}let l=e.indexOf(this.pattern);if(l==0)return this.ret(e.length==this.pattern.length?0:-100,[0,this.pattern.length]);let a=t.length,c=0;if(l<0){for(let b=0,k=Math.min(e.length,200);b<k&&c<a;){let _=Oe(e,b);(_==t[c]||_==i[c])&&(s[c++]=b),b+=et(_)}if(c<a)return null}let h=0,f=0,d=!1,p=0,g=-1,m=-1,v=/[a-z]/.test(e),x=!0;for(let b=0,k=Math.min(e.length,200),_=0;b<k&&f<a;){let y=Oe(e,b);l<0&&(h<a&&y==t[h]&&(o[h++]=b),p<a&&(y==t[p]||y==i[p]?(p==0&&(g=b),m=b+1,p++):p=0));let S,C=y<255?y>=48&&y<=57||y>=97&&y<=122?2:y>=65&&y<=90?1:0:(S=to(y))!=S.toLowerCase()?1:S!=S.toUpperCase()?2:0;(!b||C==1&&v||_==0&&C!=0)&&(t[f]==y||i[f]==y&&(d=!0)?r[f++]=b:r.length&&(x=!1)),_=C,b+=et(y)}return f==a&&r[0]==0&&x?this.result(-100+(d?-200:0),r,e):p==a&&g==0?this.ret(-200-e.length+(m==e.length?0:-100),[0,m]):l>-1?this.ret(-700-e.length,[l,l+this.pattern.length]):p==a?this.ret(-900-e.length,[g,m]):f==a?this.result(-100+(d?-200:0)+-700+(x?0:-1100),r,e):t.length==2?null:this.result((s[0]?-700:0)+-200+-1100,s,e)}result(e,t,i){let s=[],o=0;for(let r of t){let l=r+(this.astral?et(Oe(i,r)):1);o&&s[o-1]==r?s[o-1]=l:(s[o++]=r,s[o++]=l)}return this.ret(e-i.length,s)}}class x8{constructor(e){this.pattern=e,this.matched=[],this.score=0,this.folded=e.toLowerCase()}match(e){if(e.length<this.pattern.length)return null;let t=e.slice(0,this.pattern.length),i=t==this.pattern?0:t.toLowerCase()==this.folded?-200:null;return i==null?null:(this.matched=[0,t.length],this.score=i+(e.length==this.pattern.length?0:-100),this)}}const ue=L.define({combine(n){return rt(n,{activateOnTyping:!0,activateOnCompletion:()=>!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:b8,filterStrict:!1,compareCompletions:(e,t)=>e.label.localeCompare(t.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>i=>br(e(i),t(i)),optionClass:(e,t)=>i=>br(e(i),t(i)),addToOptions:(e,t)=>e.concat(t),filterStrict:(e,t)=>e||t})}});function br(n,e){return n?e?n+" "+e:n:e}function b8(n,e,t,i,s,o){let r=n.textDirection==Z.RTL,l=r,a=!1,c="top",h,f,d=e.left-s.left,p=s.right-e.right,g=i.right-i.left,m=i.bottom-i.top;if(l&&d<Math.min(g,p)?l=!1:!l&&p<Math.min(g,d)&&(l=!0),g<=(l?d:p))h=Math.max(s.top,Math.min(t.top,s.bottom-m))-e.top,f=Math.min(400,l?d:p);else{a=!0,f=Math.min(400,(r?e.right:s.right-e.left)-30);let b=s.bottom-e.bottom;b>=m||b>e.top?h=t.bottom-e.top:(c="bottom",h=e.bottom-t.top)}let v=(e.bottom-e.top)/o.offsetHeight,x=(e.right-e.left)/o.offsetWidth;return{style:`${c}: ${h/v}px; max-width: ${f/x}px`,class:"cm-completionInfo-"+(a?r?"left-narrow":"right-narrow":l?"left":"right")}}function y8(n){let e=n.addToOptions.slice();return n.icons&&e.push({render(t){let i=document.createElement("div");return i.classList.add("cm-completionIcon"),t.type&&i.classList.add(...t.type.split(/\s+/g).map(s=>"cm-completionIcon-"+s)),i.setAttribute("aria-hidden","true"),i},position:20}),e.push({render(t,i,s,o){let r=document.createElement("span");r.className="cm-completionLabel";let l=t.displayLabel||t.label,a=0;for(let c=0;c<o.length;){let h=o[c++],f=o[c++];h>a&&r.appendChild(document.createTextNode(l.slice(a,h)));let d=r.appendChild(document.createElement("span"));d.appendChild(document.createTextNode(l.slice(h,f))),d.className="cm-completionMatchedText",a=f}return a<l.length&&r.appendChild(document.createTextNode(l.slice(a))),r},position:50},{render(t){if(!t.detail)return null;let i=document.createElement("span");return i.className="cm-completionDetail",i.textContent=t.detail,i},position:80}),e.sort((t,i)=>t.position-i.position).map(t=>t.render)}function Qs(n,e,t){if(n<=t)return{from:0,to:n};if(e<0&&(e=0),e<=n>>1){let s=Math.floor(e/t);return{from:s*t,to:(s+1)*t}}let i=Math.floor((n-e)/t);return{from:n-(i+1)*t,to:n-i*t}}class k8{constructor(e,t,i){this.view=e,this.stateField=t,this.applyCompletion=i,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:a=>this.placeInfo(a),key:this},this.space=null,this.currentClass="";let s=e.state.field(t),{options:o,selected:r}=s.open,l=e.state.facet(ue);this.optionContent=y8(l),this.optionClass=l.optionClass,this.tooltipClass=l.tooltipClass,this.range=Qs(o.length,r,l.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",a=>{let{options:c}=e.state.field(t).open;for(let h=a.target,f;h&&h!=this.dom;h=h.parentNode)if(h.nodeName=="LI"&&(f=/-(\d+)$/.exec(h.id))&&+f[1]<c.length){this.applyCompletion(e,c[+f[1]]),a.preventDefault();return}}),this.dom.addEventListener("focusout",a=>{let c=e.state.field(this.stateField,!1);c&&c.tooltip&&e.state.facet(ue).closeOnBlur&&a.relatedTarget!=e.contentDOM&&e.dispatch({effects:Gi.of(null)})}),this.showOptions(o,s.id)}mount(){this.updateSel()}showOptions(e,t){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,t,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){var t;let i=e.state.field(this.stateField),s=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),i!=s){let{options:o,selected:r,disabled:l}=i.open;(!s.open||s.open.options!=o)&&(this.range=Qs(o.length,r,e.state.facet(ue).maxRenderedOptions),this.showOptions(o,i.id)),this.updateSel(),l!=((t=s.open)===null||t===void 0?void 0:t.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!l)}}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let i of this.currentClass.split(" "))i&&this.dom.classList.remove(i);for(let i of t.split(" "))i&&this.dom.classList.add(i);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;if((t.selected>-1&&t.selected<this.range.from||t.selected>=this.range.to)&&(this.range=Qs(t.options.length,t.selected,this.view.state.facet(ue).maxRenderedOptions),this.showOptions(t.options,e.id)),this.updateSelectedOption(t.selected)){this.destroyInfo();let{completion:i}=t.options[t.selected],{info:s}=i;if(!s)return;let o=typeof s=="string"?document.createTextNode(s):s(i);if(!o)return;"then"in o?o.then(r=>{r&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(r,i)}).catch(r=>Te(this.view.state,r,"completion info")):this.addInfoPane(o,i)}}addInfoPane(e,t){this.destroyInfo();let i=this.info=document.createElement("div");if(i.className="cm-tooltip cm-completionInfo",e.nodeType!=null)i.appendChild(e),this.infoDestroy=null;else{let{dom:s,destroy:o}=e;i.appendChild(s),this.infoDestroy=o||null}this.dom.appendChild(i),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let t=null;for(let i=this.list.firstChild,s=this.range.from;i;i=i.nextSibling,s++)i.nodeName!="LI"||!i.id?s--:s==e?i.hasAttribute("aria-selected")||(i.setAttribute("aria-selected","true"),t=i):i.hasAttribute("aria-selected")&&i.removeAttribute("aria-selected");return t&&C8(this.list,t),t}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),i=this.info.getBoundingClientRect(),s=e.getBoundingClientRect(),o=this.space;if(!o){let r=this.dom.ownerDocument.documentElement;o={left:0,top:0,right:r.clientWidth,bottom:r.clientHeight}}return s.top>Math.min(o.bottom,t.bottom)-10||s.bottom<Math.max(o.top,t.top)+10?null:this.view.state.facet(ue).positionInfo(this.view,t,s,i,o,this.dom)}placeInfo(e){this.info&&(e?(e.style&&(this.info.style.cssText=e.style),this.info.className="cm-tooltip cm-completionInfo "+(e.class||"")):this.info.style.cssText="top: -1e6px")}createListBox(e,t,i){const s=document.createElement("ul");s.id=t,s.setAttribute("role","listbox"),s.setAttribute("aria-expanded","true"),s.setAttribute("aria-label",this.view.state.phrase("Completions")),s.addEventListener("mousedown",r=>{r.target==s&&r.preventDefault()});let o=null;for(let r=i.from;r<i.to;r++){let{completion:l,match:a}=e[r],{section:c}=l;if(c){let d=typeof c=="string"?c:c.name;if(d!=o&&(r>i.from||i.from==0))if(o=d,typeof c!="string"&&c.header)s.appendChild(c.header(c));else{let p=s.appendChild(document.createElement("completion-section"));p.textContent=d}}const h=s.appendChild(document.createElement("li"));h.id=t+"-"+r,h.setAttribute("role","option");let f=this.optionClass(l);f&&(h.className=f);for(let d of this.optionContent){let p=d(l,this.view.state,this.view,a);p&&h.appendChild(p)}}return i.from&&s.classList.add("cm-completionListIncompleteTop"),i.to<e.length&&s.classList.add("cm-completionListIncompleteBottom"),s}destroyInfo(){this.info&&(this.infoDestroy&&this.infoDestroy(),this.info.remove(),this.info=null)}destroy(){this.destroyInfo()}}function S8(n,e){return t=>new k8(t,n,e)}function C8(n,e){let t=n.getBoundingClientRect(),i=e.getBoundingClientRect(),s=t.height/n.offsetHeight;i.top<t.top?n.scrollTop-=(t.top-i.top)/s:i.bottom>t.bottom&&(n.scrollTop+=(i.bottom-t.bottom)/s)}function yr(n){return(n.boost||0)*100+(n.apply?10:0)+(n.info?5:0)+(n.type?1:0)}function _8(n,e){let t=[],i=null,s=c=>{t.push(c);let{section:h}=c.completion;if(h){i||(i=[]);let f=typeof h=="string"?h:h.name;i.some(d=>d.name==f)||i.push(typeof h=="string"?{name:f}:h)}},o=e.facet(ue);for(let c of n)if(c.hasResult()){let h=c.result.getMatch;if(c.result.filter===!1)for(let f of c.result.options)s(new wr(f,c.source,h?h(f):[],1e9-t.length));else{let f=e.sliceDoc(c.from,c.to),d,p=o.filterStrict?new x8(f):new w8(f);for(let g of c.result.options)if(d=p.match(g.label)){let m=g.displayLabel?h?h(g,d.matched):[]:d.matched;s(new wr(g,c.source,m,d.score+(g.boost||0)))}}}if(i){let c=Object.create(null),h=0,f=(d,p)=>{var g,m;return((g=d.rank)!==null&&g!==void 0?g:1e9)-((m=p.rank)!==null&&m!==void 0?m:1e9)||(d.name<p.name?-1:1)};for(let d of i.sort(f))h-=1e5,c[d.name]=h;for(let d of t){let{section:p}=d.completion;p&&(d.score+=c[typeof p=="string"?p:p.name])}}let r=[],l=null,a=o.compareCompletions;for(let c of t.sort((h,f)=>f.score-h.score||a(h.completion,f.completion))){let h=c.completion;!l||l.label!=h.label||l.detail!=h.detail||l.type!=null&&h.type!=null&&l.type!=h.type||l.apply!=h.apply||l.boost!=h.boost?r.push(c):yr(c.completion)>yr(l)&&(r[r.length-1]=c),l=c.completion}return r}class Qt{constructor(e,t,i,s,o,r){this.options=e,this.attrs=t,this.tooltip=i,this.timestamp=s,this.selected=o,this.disabled=r}setSelected(e,t){return e==this.selected||e>=this.options.length?this:new Qt(this.options,kr(t,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,t,i,s,o,r){if(s&&!r&&e.some(c=>c.isPending))return s.setDisabled();let l=_8(e,t);if(!l.length)return s&&e.some(c=>c.isPending)?s.setDisabled():null;let a=t.facet(ue).selectOnOpen?0:-1;if(s&&s.selected!=a&&s.selected!=-1){let c=s.options[s.selected].completion;for(let h=0;h<l.length;h++)if(l[h].completion==c){a=h;break}}return new Qt(l,kr(i,a),{pos:e.reduce((c,h)=>h.hasResult()?Math.min(c,h.from):c,1e8),create:B8,above:o.aboveCursor},s?s.timestamp:Date.now(),a,!1)}map(e){return new Qt(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}setDisabled(){return new Qt(this.options,this.attrs,this.tooltip,this.timestamp,this.selected,!0)}}class as{constructor(e,t,i){this.active=e,this.id=t,this.open=i}static start(){return new as(T8,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(e){let{state:t}=e,i=t.facet(ue),o=(i.override||t.languageDataAt("autocomplete",Lt(t)).map(v8)).map(a=>(this.active.find(h=>h.source==a)||new Ie(a,this.active.some(h=>h.state!=0)?1:0)).update(e,i));o.length==this.active.length&&o.every((a,c)=>a==this.active[c])&&(o=this.active);let r=this.open,l=e.effects.some(a=>a.is(Eo));r&&e.docChanged&&(r=r.map(e.changes)),e.selection||o.some(a=>a.hasResult()&&e.changes.touchesRange(a.from,a.to))||!O8(o,this.active)||l?r=Qt.build(o,t,this.id,r,i,l):r&&r.disabled&&!o.some(a=>a.isPending)&&(r=null),!r&&o.every(a=>!a.isPending)&&o.some(a=>a.hasResult())&&(o=o.map(a=>a.hasResult()?new Ie(a.source,0):a));for(let a of e.effects)a.is(Ic)&&(r=r&&r.setSelected(a.value,this.id));return o==this.active&&r==this.open?this:new as(o,this.id,r)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?M8:D8}}function O8(n,e){if(n==e)return!0;for(let t=0,i=0;;){for(;t<n.length&&!n[t].hasResult();)t++;for(;i<e.length&&!e[i].hasResult();)i++;let s=t==n.length,o=i==e.length;if(s||o)return s==o;if(n[t++].result!=e[i++].result)return!1}}const M8={"aria-autocomplete":"list"},D8={};function kr(n,e){let t={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":n};return e>-1&&(t["aria-activedescendant"]=n+"-"+e),t}const T8=[];function Rc(n,e){if(n.isUserEvent("input.complete")){let i=n.annotation(Nc);if(i&&e.activateOnCompletion(i))return 12}let t=n.isUserEvent("input.type");return t&&e.activateOnTyping?5:t?1:n.isUserEvent("delete.backward")?2:n.selection?8:n.docChanged?16:0}class Ie{constructor(e,t,i=!1){this.source=e,this.state=t,this.explicit=i}hasResult(){return!1}get isPending(){return this.state==1}update(e,t){let i=Rc(e,t),s=this;(i&8||i&16&&this.touches(e))&&(s=new Ie(s.source,0)),i&4&&s.state==0&&(s=new Ie(this.source,1)),s=s.updateFor(e,i);for(let o of e.effects)if(o.is(ls))s=new Ie(s.source,1,o.value);else if(o.is(Gi))s=new Ie(s.source,0);else if(o.is(Eo))for(let r of o.value)r.source==s.source&&(s=r);return s}updateFor(e,t){return this.map(e.changes)}map(e){return this}touches(e){return e.changes.touchesRange(Lt(e.state))}}class ii extends Ie{constructor(e,t,i,s,o,r){super(e,3,t),this.limit=i,this.result=s,this.from=o,this.to=r}hasResult(){return!0}updateFor(e,t){var i;if(!(t&3))return this.map(e.changes);let s=this.result;s.map&&!e.changes.empty&&(s=s.map(s,e.changes));let o=e.changes.mapPos(this.from),r=e.changes.mapPos(this.to,1),l=Lt(e.state);if(l>r||!s||t&2&&(Lt(e.startState)==this.from||l<this.limit))return new Ie(this.source,t&4?1:0);let a=e.changes.mapPos(this.limit);return A8(s.validFor,e.state,o,r)?new ii(this.source,this.explicit,a,s,o,r):s.update&&(s=s.update(s,o,r,new zc(e.state,l,!1)))?new ii(this.source,this.explicit,a,s,s.from,(i=s.to)!==null&&i!==void 0?i:Lt(e.state)):new Ie(this.source,1,this.explicit)}map(e){return e.empty?this:(this.result.map?this.result.map(this.result,e):this.result)?new ii(this.source,this.explicit,e.mapPos(this.limit),this.result,e.mapPos(this.from),e.mapPos(this.to,1)):new Ie(this.source,0)}touches(e){return e.changes.touchesRange(this.from,this.to)}}function A8(n,e,t,i){if(!n)return!1;let s=e.sliceDoc(t,i);return typeof n=="function"?n(s,t,i,e):Lc(n,!0).test(s)}const Eo=$.define({map(n,e){return n.map(t=>t.map(e))}}),Ic=$.define(),De=me.define({create(){return as.start()},update(n,e){return n.update(e)},provide:n=>[wo.from(n,e=>e.tooltip),z.contentAttributes.from(n,e=>e.attrs)]});function Vo(n,e){const t=e.completion.apply||e.completion.label;let i=n.state.field(De).active.find(s=>s.source==e.source);return i instanceof ii?(typeof t=="string"?n.dispatch(Object.assign(Object.assign({},m8(n.state,t,i.from,i.to)),{annotations:Nc.of(e.completion)})):t(n,e.completion,i.from,i.to),!0):!1}const B8=S8(De,Vo);function Sn(n,e="option"){return t=>{let i=t.state.field(De,!1);if(!i||!i.open||i.open.disabled||Date.now()-i.open.timestamp<t.state.facet(ue).interactionDelay)return!1;let s=1,o;e=="page"&&(o=ka(t,i.open.tooltip))&&(s=Math.max(2,Math.floor(o.dom.offsetHeight/o.dom.querySelector("li").offsetHeight)-1));let{length:r}=i.open.options,l=i.open.selected>-1?i.open.selected+s*(n?1:-1):n?0:r-1;return l<0?l=e=="page"?0:r-1:l>=r&&(l=e=="page"?r-1:0),t.dispatch({effects:Ic.of(l)}),!0}}const P8=n=>{let e=n.state.field(De,!1);return n.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestamp<n.state.facet(ue).interactionDelay?!1:Vo(n,e.open.options[e.open.selected])},Sr=n=>n.state.field(De,!1)?(n.dispatch({effects:ls.of(!0)}),!0):!1,E8=n=>{let e=n.state.field(De,!1);return!e||!e.active.some(t=>t.state!=0)?!1:(n.dispatch({effects:Gi.of(null)}),!0)};class V8{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}}const z8=50,L8=1e3,N8=re.fromClass(class{constructor(n){this.view=n,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let e of n.state.field(De).active)e.isPending&&this.startQuery(e)}update(n){let e=n.state.field(De),t=n.state.facet(ue);if(!n.selectionSet&&!n.docChanged&&n.startState.field(De)==e)return;let i=n.transactions.some(o=>{let r=Rc(o,t);return r&8||(o.selection||o.docChanged)&&!(r&3)});for(let o=0;o<this.running.length;o++){let r=this.running[o];if(i||r.context.abortOnDocChange&&n.docChanged||r.updates.length+n.transactions.length>z8&&Date.now()-r.time>L8){for(let l of r.context.abortListeners)try{l()}catch(a){Te(this.view.state,a)}r.context.abortListeners=null,this.running.splice(o--,1)}else r.updates.push(...n.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),n.transactions.some(o=>o.effects.some(r=>r.is(ls)))&&(this.pendingStart=!0);let s=this.pendingStart?50:t.activateOnTypingDelay;if(this.debounceUpdate=e.active.some(o=>o.isPending&&!this.running.some(r=>r.active.source==o.source))?setTimeout(()=>this.startUpdate(),s):-1,this.composing!=0)for(let o of n.transactions)o.isUserEvent("input.type")?this.composing=2:this.composing==2&&o.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:n}=this.view,e=n.field(De);for(let t of e.active)t.isPending&&!this.running.some(i=>i.active.source==t.source)&&this.startQuery(t);this.running.length&&e.open&&e.open.disabled&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(ue).updateSyncTime))}startQuery(n){let{state:e}=this.view,t=Lt(e),i=new zc(e,t,n.explicit,this.view),s=new V8(n,i);this.running.push(s),Promise.resolve(n.source(i)).then(o=>{s.context.aborted||(s.done=o||null,this.scheduleAccept())},o=>{this.view.dispatch({effects:Gi.of(null)}),Te(this.view.state,o)})}scheduleAccept(){this.running.every(n=>n.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(ue).updateSyncTime))}accept(){var n;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],t=this.view.state.facet(ue),i=this.view.state.field(De);for(let s=0;s<this.running.length;s++){let o=this.running[s];if(o.done===void 0)continue;if(this.running.splice(s--,1),o.done){let l=Lt(o.updates.length?o.updates[0].startState:this.view.state),a=Math.min(l,o.done.from+(o.active.explicit?0:1)),c=new ii(o.active.source,o.active.explicit,a,o.done,o.done.from,(n=o.done.to)!==null&&n!==void 0?n:l);for(let h of o.updates)c=c.update(h,t);if(c.hasResult()){e.push(c);continue}}let r=i.active.find(l=>l.source==o.active.source);if(r&&r.isPending)if(o.done==null){let l=new Ie(o.active.source,0);for(let a of o.updates)l=l.update(a,t);l.isPending||e.push(l)}else this.startQuery(r)}(e.length||i.open&&i.open.disabled)&&this.view.dispatch({effects:Eo.of(e)})}},{eventHandlers:{blur(n){let e=this.view.state.field(De,!1);if(e&&e.tooltip&&this.view.state.facet(ue).closeOnBlur){let t=e.open&&ka(this.view,e.open.tooltip);(!t||!t.dom.contains(n.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:Gi.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:ls.of(!1)}),20),this.composing=0}}}),R8=typeof navigator=="object"&&/Win/.test(navigator.platform),I8=Ft.highest(z.domEventHandlers({keydown(n,e){let t=e.state.field(De,!1);if(!t||!t.open||t.open.disabled||t.open.selected<0||n.key.length>1||n.ctrlKey&&!(R8&&n.altKey)||n.metaKey)return!1;let i=t.open.options[t.open.selected],s=t.active.find(r=>r.source==i.source),o=i.completion.commitCharacters||s.result.commitCharacters;return o&&o.indexOf(n.key)>-1&&Vo(e,i),!1}})),H8=z.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box",whiteSpace:"pre-line"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}}),ji={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},Vt=$.define({map(n,e){let t=e.mapPos(n,-1,ye.TrackAfter);return t??void 0}}),zo=new class extends Rt{};zo.startSide=1;zo.endSide=-1;const Hc=me.define({create(){return j.empty},update(n,e){if(n=n.map(e.changes),e.selection){let t=e.state.doc.lineAt(e.selection.main.head);n=n.update({filter:i=>i>=t.from&&i<=t.to})}for(let t of e.effects)t.is(Vt)&&(n=n.update({add:[zo.range(t.value,t.value+1)]}));return n}});function $8(){return[F8,Hc]}const Js="()[]{}<>«»»«[]{}";function $c(n){for(let e=0;e<Js.length;e+=2)if(Js.charCodeAt(e)==n)return Js.charAt(e+1);return to(n<128?n:n+1)}function Wc(n,e){return n.languageDataAt("closeBrackets",e)[0]||ji}const W8=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),F8=z.inputHandler.of((n,e,t,i)=>{if((W8?n.composing:n.compositionStarted)||n.state.readOnly)return!1;let s=n.state.selection.main;if(i.length>2||i.length==2&&et(Oe(i,0))==1||e!=s.from||t!=s.to)return!1;let o=q8(n.state,i);return o?(n.dispatch(o),!0):!1}),G8=({state:n,dispatch:e})=>{if(n.readOnly)return!1;let i=Wc(n,n.selection.main.head).brackets||ji.brackets,s=null,o=n.changeByRange(r=>{if(r.empty){let l=U8(n.doc,r.head);for(let a of i)if(a==l&&Os(n.doc,r.head)==$c(Oe(a,0)))return{changes:{from:r.head-a.length,to:r.head+a.length},range:M.cursor(r.head-a.length)}}return{range:s=r}});return s||e(n.update(o,{scrollIntoView:!0,userEvent:"delete.backward"})),!s},j8=[{key:"Backspace",run:G8}];function q8(n,e){let t=Wc(n,n.selection.main.head),i=t.brackets||ji.brackets;for(let s of i){let o=$c(Oe(s,0));if(e==s)return o==s?X8(n,s,i.indexOf(s+s+s)>-1,t):Y8(n,s,o,t.before||ji.before);if(e==o&&Fc(n,n.selection.main.from))return K8(n,s,o)}return null}function Fc(n,e){let t=!1;return n.field(Hc).between(0,n.doc.length,i=>{i==e&&(t=!0)}),t}function Os(n,e){let t=n.sliceString(e,e+2);return t.slice(0,et(Oe(t,0)))}function U8(n,e){let t=n.sliceString(e-2,e);return et(Oe(t,0))==t.length?t:t.slice(1)}function Y8(n,e,t,i){let s=null,o=n.changeByRange(r=>{if(!r.empty)return{changes:[{insert:e,from:r.from},{insert:t,from:r.to}],effects:Vt.of(r.to+e.length),range:M.range(r.anchor+e.length,r.head+e.length)};let l=Os(n.doc,r.head);return!l||/\s/.test(l)||i.indexOf(l)>-1?{changes:{insert:e+t,from:r.head},effects:Vt.of(r.head+e.length),range:M.cursor(r.head+e.length)}:{range:s=r}});return s?null:n.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function K8(n,e,t){let i=null,s=n.changeByRange(o=>o.empty&&Os(n.doc,o.head)==t?{changes:{from:o.head,to:o.head+t.length,insert:t},range:M.cursor(o.head+t.length)}:i={range:o});return i?null:n.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function X8(n,e,t,i){let s=i.stringPrefixes||ji.stringPrefixes,o=null,r=n.changeByRange(l=>{if(!l.empty)return{changes:[{insert:e,from:l.from},{insert:e,from:l.to}],effects:Vt.of(l.to+e.length),range:M.range(l.anchor+e.length,l.head+e.length)};let a=l.head,c=Os(n.doc,a),h;if(c==e){if(Cr(n,a))return{changes:{insert:e+e,from:a},effects:Vt.of(a+e.length),range:M.cursor(a+e.length)};if(Fc(n,a)){let d=t&&n.sliceDoc(a,a+e.length*3)==e+e+e?e+e+e:e;return{changes:{from:a,to:a+d.length,insert:d},range:M.cursor(a+d.length)}}}else{if(t&&n.sliceDoc(a-2*e.length,a)==e+e&&(h=_r(n,a-2*e.length,s))>-1&&Cr(n,h))return{changes:{insert:e+e+e+e,from:a},effects:Vt.of(a+e.length),range:M.cursor(a+e.length)};if(n.charCategorizer(a)(c)!=te.Word&&_r(n,a,s)>-1&&!Q8(n,a,e,s))return{changes:{insert:e+e,from:a},effects:Vt.of(a+e.length),range:M.cursor(a+e.length)}}return{range:o=l}});return o?null:n.update(r,{scrollIntoView:!0,userEvent:"input.type"})}function Cr(n,e){let t=fe(n).resolveInner(e+1);return t.parent&&t.from==e}function Q8(n,e,t,i){let s=fe(n).resolveInner(e,-1),o=i.reduce((r,l)=>Math.max(r,l.length),0);for(let r=0;r<5;r++){let l=n.sliceDoc(s.from,Math.min(s.to,s.from+t.length+o)),a=l.indexOf(t);if(!a||a>-1&&i.indexOf(l.slice(0,a))>-1){let h=s.firstChild;for(;h&&h.from==s.from&&h.to-h.from>t.length+a;){if(n.sliceDoc(h.to-t.length,h.to)==t)return!1;h=h.firstChild}return!0}let c=s.to==e&&s.parent;if(!c)break;s=c}return!1}function _r(n,e,t){let i=n.charCategorizer(e);if(i(n.sliceDoc(e-1,e))!=te.Word)return e;for(let s of t){let o=e-s.length;if(n.sliceDoc(o,e)==s&&i(n.sliceDoc(o-1,o))!=te.Word)return o}return-1}function J8(n={}){return[I8,De,ue.of(n),N8,Z8,H8]}const Gc=[{key:"Ctrl-Space",run:Sr},{mac:"Alt-`",run:Sr},{key:"Escape",run:E8},{key:"ArrowDown",run:Sn(!0)},{key:"ArrowUp",run:Sn(!1)},{key:"PageDown",run:Sn(!0,"page")},{key:"PageUp",run:Sn(!1,"page")},{key:"Enter",run:P8}],Z8=Ft.highest(mo.computeN([ue],n=>n.facet(ue).defaultKeymap?[Gc]:[]));class Or{constructor(e,t,i){this.from=e,this.to=t,this.diagnostic=i}}class Pt{constructor(e,t,i){this.diagnostics=e,this.panel=t,this.selected=i}static init(e,t,i){let s=i.facet(qi).markerFilter;s&&(e=s(e,i));let o=e.slice().sort((h,f)=>h.from-f.from||h.to-f.to),r=new ut,l=[],a=0;for(let h=0;;){let f=h==o.length?null:o[h];if(!f&&!l.length)break;let d,p;for(l.length?(d=a,p=l.reduce((m,v)=>Math.min(m,v.to),f&&f.from>d?f.from:1e8)):(d=f.from,p=f.to,l.push(f),h++);h<o.length;){let m=o[h];if(m.from==d&&(m.to>m.from||m.to==d))l.push(m),h++,p=Math.min(m.to,p);else{p=Math.min(m.from,p);break}}let g=f5(l);if(l.some(m=>m.from==m.to||m.from==m.to-1&&i.doc.lineAt(m.from).to==m.from))r.add(d,d,I.widget({widget:new a5(g),diagnostics:l.slice()}));else{let m=l.reduce((v,x)=>x.markClass?v+" "+x.markClass:v,"");r.add(d,p,I.mark({class:"cm-lintRange cm-lintRange-"+g+m,diagnostics:l.slice(),inclusiveEnd:l.some(v=>v.to>p)}))}a=p;for(let m=0;m<l.length;m++)l[m].to<=a&&l.splice(m--,1)}let c=r.finish();return new Pt(c,t,hi(c))}}function hi(n,e=null,t=0){let i=null;return n.between(t,1e9,(s,o,{spec:r})=>{if(!(e&&r.diagnostics.indexOf(e)<0))if(!i)i=new Or(s,o,e||r.diagnostics[0]);else{if(r.diagnostics.indexOf(i.diagnostic)<0)return!1;i=new Or(i.from,o,i.diagnostic)}}),i}function e5(n,e){let t=e.pos,i=e.end||t,s=n.state.facet(qi).hideOn(n,t,i);if(s!=null)return s;let o=n.startState.doc.lineAt(e.pos);return!!(n.effects.some(r=>r.is(jc))||n.changes.touchesRange(o.from,Math.max(o.to,i)))}function t5(n,e){return n.field(Le,!1)?e:e.concat($.appendConfig.of(d5))}const jc=$.define(),Lo=$.define(),qc=$.define(),Le=me.define({create(){return new Pt(I.none,null,null)},update(n,e){if(e.docChanged&&n.diagnostics.size){let t=n.diagnostics.map(e.changes),i=null,s=n.panel;if(n.selected){let o=e.changes.mapPos(n.selected.from,1);i=hi(t,n.selected.diagnostic,o)||hi(t,null,o)}!t.size&&s&&e.state.facet(qi).autoPanel&&(s=null),n=new Pt(t,s,i)}for(let t of e.effects)if(t.is(jc)){let i=e.state.facet(qi).autoPanel?t.value.length?Ui.open:null:n.panel;n=Pt.init(t.value,i,e.state)}else t.is(Lo)?n=new Pt(n.diagnostics,t.value?Ui.open:null,n.selected):t.is(qc)&&(n=new Pt(n.diagnostics,n.panel,t.value));return n},provide:n=>[Hi.from(n,e=>e.panel),z.decorations.from(n,e=>e.diagnostics)]}),i5=I.mark({class:"cm-lintRange cm-lintRange-active"});function n5(n,e,t){let{diagnostics:i}=n.state.field(Le),s,o=-1,r=-1;i.between(e-(t<0?1:0),e+(t>0?1:0),(a,c,{spec:h})=>{if(e>=a&&e<=c&&(a==c||(e>a||t>0)&&(e<c||t<0)))return s=h.diagnostics,o=a,r=c,!1});let l=n.state.facet(qi).tooltipFilter;return s&&l&&(s=l(s,n.state)),s?{pos:o,end:r,above:n.state.doc.lineAt(o).to<r,create(){return{dom:s5(n,s)}}}:null}function s5(n,e){return Y("ul",{class:"cm-tooltip-lint"},e.map(t=>Yc(n,t,!1)))}const o5=n=>{let e=n.state.field(Le,!1);(!e||!e.panel)&&n.dispatch({effects:t5(n.state,[Lo.of(!0)])});let t=Ii(n,Ui.open);return t&&t.dom.querySelector(".cm-panel-lint ul").focus(),!0},Mr=n=>{let e=n.state.field(Le,!1);return!e||!e.panel?!1:(n.dispatch({effects:Lo.of(!1)}),!0)},r5=n=>{let e=n.state.field(Le,!1);if(!e)return!1;let t=n.state.selection.main,i=e.diagnostics.iter(t.to+1);return!i.value&&(i=e.diagnostics.iter(0),!i.value||i.from==t.from&&i.to==t.to)?!1:(n.dispatch({selection:{anchor:i.from,head:i.to},scrollIntoView:!0}),!0)},l5=[{key:"Mod-Shift-m",run:o5,preventDefault:!0},{key:"F8",run:r5}],qi=L.define({combine(n){return Object.assign({sources:n.map(e=>e.source).filter(e=>e!=null)},rt(n.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{needsRefresh:(e,t)=>e?t?i=>e(i)||t(i):e:t}))}});function Uc(n){let e=[];if(n)e:for(let{name:t}of n){for(let i=0;i<t.length;i++){let s=t[i];if(/[a-zA-Z]/.test(s)&&!e.some(o=>o.toLowerCase()==s.toLowerCase())){e.push(s);continue e}}e.push("")}return e}function Yc(n,e,t){var i;let s=t?Uc(e.actions):[];return Y("li",{class:"cm-diagnostic cm-diagnostic-"+e.severity},Y("span",{class:"cm-diagnosticText"},e.renderMessage?e.renderMessage(n):e.message),(i=e.actions)===null||i===void 0?void 0:i.map((o,r)=>{let l=!1,a=d=>{if(d.preventDefault(),l)return;l=!0;let p=hi(n.state.field(Le).diagnostics,e);p&&o.apply(n,p.from,p.to)},{name:c}=o,h=s[r]?c.indexOf(s[r]):-1,f=h<0?c:[c.slice(0,h),Y("u",c.slice(h,h+1)),c.slice(h+1)];return Y("button",{type:"button",class:"cm-diagnosticAction",onclick:a,onmousedown:a,"aria-label":` Action: ${c}${h<0?"":` (access key "${s[r]})"`}.`},f)}),e.source&&Y("div",{class:"cm-diagnosticSource"},e.source))}class a5 extends Dt{constructor(e){super(),this.sev=e}eq(e){return e.sev==this.sev}toDOM(){return Y("span",{class:"cm-lintPoint cm-lintPoint-"+this.sev})}}class Dr{constructor(e,t){this.diagnostic=t,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=Yc(e,t,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class Ui{constructor(e){this.view=e,this.items=[];let t=s=>{if(s.keyCode==27)Mr(this.view),this.view.focus();else if(s.keyCode==38||s.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(s.keyCode==40||s.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(s.keyCode==36)this.moveSelection(0);else if(s.keyCode==35)this.moveSelection(this.items.length-1);else if(s.keyCode==13)this.view.focus();else if(s.keyCode>=65&&s.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:o}=this.items[this.selectedIndex],r=Uc(o.actions);for(let l=0;l<r.length;l++)if(r[l].toUpperCase().charCodeAt(0)==s.keyCode){let a=hi(this.view.state.field(Le).diagnostics,o);a&&o.actions[l].apply(e,a.from,a.to)}}else return;s.preventDefault()},i=s=>{for(let o=0;o<this.items.length;o++)this.items[o].dom.contains(s.target)&&this.moveSelection(o)};this.list=Y("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:t,onclick:i}),this.dom=Y("div",{class:"cm-panel-lint"},this.list,Y("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:()=>Mr(this.view)},"×")),this.update()}get selectedIndex(){let e=this.view.state.field(Le).selected;if(!e)return-1;for(let t=0;t<this.items.length;t++)if(this.items[t].diagnostic==e.diagnostic)return t;return-1}update(){let{diagnostics:e,selected:t}=this.view.state.field(Le),i=0,s=!1,o=null,r=new Set;for(e.between(0,this.view.state.doc.length,(l,a,{spec:c})=>{for(let h of c.diagnostics){if(r.has(h))continue;r.add(h);let f=-1,d;for(let p=i;p<this.items.length;p++)if(this.items[p].diagnostic==h){f=p;break}f<0?(d=new Dr(this.view,h),this.items.splice(i,0,d),s=!0):(d=this.items[f],f>i&&(this.items.splice(i,f-i),s=!0)),t&&d.diagnostic==t.diagnostic?d.dom.hasAttribute("aria-selected")||(d.dom.setAttribute("aria-selected","true"),o=d):d.dom.hasAttribute("aria-selected")&&d.dom.removeAttribute("aria-selected"),i++}});i<this.items.length&&!(this.items.length==1&&this.items[0].diagnostic.from<0);)s=!0,this.items.pop();this.items.length==0&&(this.items.push(new Dr(this.view,{from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")})),s=!0),o?(this.list.setAttribute("aria-activedescendant",o.id),this.view.requestMeasure({key:this,read:()=>({sel:o.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:l,panel:a})=>{let c=a.height/this.list.offsetHeight;l.top<a.top?this.list.scrollTop-=(a.top-l.top)/c:l.bottom>a.bottom&&(this.list.scrollTop+=(l.bottom-a.bottom)/c)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),s&&this.sync()}sync(){let e=this.list.firstChild;function t(){let i=e;e=i.nextSibling,i.remove()}for(let i of this.items)if(i.dom.parentNode==this.list){for(;e!=i.dom;)t();e=i.dom.nextSibling}else this.list.insertBefore(i.dom,e);for(;e;)t()}moveSelection(e){if(this.selectedIndex<0)return;let t=this.view.state.field(Le),i=hi(t.diagnostics,this.items[e].diagnostic);i&&this.view.dispatch({selection:{anchor:i.from,head:i.to},scrollIntoView:!0,effects:qc.of(i)})}static open(e){return new Ui(e)}}function c5(n,e='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${e}>${encodeURIComponent(n)}</svg>')`}function Cn(n){return c5(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${n}" fill="none" stroke-width=".7"/>`,'width="6" height="3"')}const h5=z.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:Cn("#d11")},".cm-lintRange-warning":{backgroundImage:Cn("orange")},".cm-lintRange-info":{backgroundImage:Cn("#999")},".cm-lintRange-hint":{backgroundImage:Cn("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});function u5(n){return n=="error"?4:n=="warning"?3:n=="info"?2:1}function f5(n){let e="hint",t=1;for(let i of n){let s=u5(i.severity);s>t&&(t=s,e=i.severity)}return e}const d5=[Le,z.decorations.compute([Le],n=>{let{selected:e,panel:t}=n.field(Le);return!e||!t||e.from==e.to?I.none:I.set([i5.range(e.from,e.to)])}),l4(n5,{hideOn:e5}),h5],p5=[w4(),y4(),R6(),Np(),hp(),M6(),P6(),G.allowMultipleSelections.of(!0),Q4(),fp(gp,{fallback:!0}),kp(),$8(),J8(),X6(),Z6(),G6(),jg(),mo.of([...j8,...Ig,...h8,...qp,...rp,...Gc,...l5])];class cs{constructor(e,t,i,s,o,r,l,a,c,h=0,f){this.p=e,this.stack=t,this.state=i,this.reducePos=s,this.pos=o,this.score=r,this.buffer=l,this.bufferBase=a,this.curContext=c,this.lookAhead=h,this.parent=f}toString(){return`[${this.stack.filter((e,t)=>t%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t,i=0){let s=e.parser.context;return new cs(e,[],t,i,i,0,[],0,s?new Tr(s,s.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var t;let i=e>>19,s=e&65535,{parser:o}=this.p,r=this.reducePos<this.pos-25;r&&this.setLookAhead(this.pos);let l=o.dynamicPrecedence(s);if(l&&(this.score+=l),i==0){this.pushState(o.getGoto(this.state,s,!0),this.reducePos),s<o.minRepeatTerm&&this.storeNode(s,this.reducePos,this.reducePos,r?8:4,!0),this.reduceContext(s,this.reducePos);return}let a=this.stack.length-(i-1)*3-(e&262144?6:0),c=a?this.stack[a-2]:this.p.ranges[0].from,h=this.reducePos-c;h>=2e3&&!(!((t=this.p.parser.nodeSet.types[s])===null||t===void 0)&&t.isAnonymous)&&(c==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=h):this.p.lastBigReductionSize<h&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=c,this.p.lastBigReductionSize=h));let f=a?this.stack[a-1]:0,d=this.bufferBase+this.buffer.length-f;if(s<o.minRepeatTerm||e&131072){let p=o.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(s,c,p,d+4,!0)}if(e&262144)this.state=this.stack[a];else{let p=this.stack[a-3];this.state=o.getGoto(p,s,!0)}for(;this.stack.length>a;)this.stack.pop();this.reduceContext(s,c)}storeNode(e,t,i,s=4,o=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let r=this,l=this.buffer.length;if(l==0&&r.parent&&(l=r.bufferBase-r.parent.bufferBase,r=r.parent),l>0&&r.buffer[l-4]==0&&r.buffer[l-1]>-1){if(t==i)return;if(r.buffer[l-2]>=t){r.buffer[l-2]=i;return}}}if(!o||this.pos==i)this.buffer.push(e,t,i,s);else{let r=this.buffer.length;if(r>0&&this.buffer[r-4]!=0){let l=!1;for(let a=r;a>0&&this.buffer[a-2]>i;a-=4)if(this.buffer[a-1]>=0){l=!0;break}if(l)for(;r>0&&this.buffer[r-2]>i;)this.buffer[r]=this.buffer[r-4],this.buffer[r+1]=this.buffer[r-3],this.buffer[r+2]=this.buffer[r-2],this.buffer[r+3]=this.buffer[r-1],r-=4,s>4&&(s-=4)}this.buffer[r]=e,this.buffer[r+1]=t,this.buffer[r+2]=i,this.buffer[r+3]=s}}shift(e,t,i,s){if(e&131072)this.pushState(e&65535,this.pos);else if((e&262144)==0){let o=e,{parser:r}=this.p;(s>this.pos||t<=r.maxNode)&&(this.pos=s,r.stateFlag(o,1)||(this.reducePos=s)),this.pushState(o,i),this.shiftContext(t,i),t<=r.maxNode&&this.buffer.push(t,i,s,4)}else this.pos=s,this.shiftContext(t,i),t<=this.p.parser.maxNode&&this.buffer.push(t,i,s,4)}apply(e,t,i,s){e&65536?this.reduce(e):this.shift(e,t,i,s)}useNode(e,t){let i=this.p.reused.length-1;(i<0||this.p.reused[i]!=e)&&(this.p.reused.push(e),i++);let s=this.pos;this.reducePos=this.pos=s+e.length,this.pushState(t,s),this.buffer.push(i,s,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,t=e.buffer.length;for(;t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let i=e.buffer.slice(t),s=e.bufferBase+t;for(;e&&s==e.bufferBase;)e=e.parent;return new cs(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,i,s,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let i=e<=this.p.parser.maxNode;i&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,i?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new g5(this);;){let i=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(i==0)return!1;if((i&65536)==0)return!0;t.reduce(i)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let s=[];for(let o=0,r;o<t.length;o+=2)(r=t[o+1])!=this.state&&this.p.parser.hasAction(r,e)&&s.push(t[o],r);if(this.stack.length<120)for(let o=0;s.length<8&&o<t.length;o+=2){let r=t[o+1];s.some((l,a)=>a&1&&l==r)||s.push(t[o],r)}t=s}let i=[];for(let s=0;s<t.length&&i.length<4;s+=2){let o=t[s+1];if(o==this.state)continue;let r=this.split();r.pushState(o,this.pos),r.storeNode(0,r.pos,r.pos,4,!0),r.shiftContext(t[s],this.pos),r.reducePos=this.pos,r.score-=200,i.push(r)}return i}forceReduce(){let{parser:e}=this.p,t=e.stateSlot(this.state,5);if((t&65536)==0)return!1;if(!e.validAction(this.state,t)){let i=t>>19,s=t&65535,o=this.stack.length-i*3;if(o<0||e.getGoto(this.stack[o],s,!1)<0){let r=this.findForcedReduction();if(r==null)return!1;t=r}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}findForcedReduction(){let{parser:e}=this.p,t=[],i=(s,o)=>{if(!t.includes(s))return t.push(s),e.allActions(s,r=>{if(!(r&393216))if(r&65536){let l=(r>>19)-o;if(l>1){let a=r&65535,c=this.stack.length-l*3;if(c>=0&&e.getGoto(this.stack[c],a,!1)>=0)return l<<19|65536|a}}else{let l=i(r,o+1);if(l!=null)return l}})};return i(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;t<this.stack.length;t+=3)if(this.stack[t]!=e.stack[t])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(t)))}reduceContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(t)))}emitContext(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-3)&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(e){if(e!=this.curContext.context){let t=new Tr(this.curContext.tracker,e);t.hash!=this.curContext.hash&&this.emitContext(),this.curContext=t}}setLookAhead(e){e>this.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class Tr{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}}class g5{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=e&65535,i=e>>19;i==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(i-1)*3;let s=this.start.p.parser.getGoto(this.stack[this.base-3],t,!0);this.state=s}}class hs{constructor(e,t,i){this.stack=e,this.pos=t,this.index=i,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,t=e.bufferBase+e.buffer.length){return new hs(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new hs(this.stack,this.pos,this.index)}}function _n(n,e=Uint16Array){if(typeof n!="string")return n;let t=null;for(let i=0,s=0;i<n.length;){let o=0;for(;;){let r=n.charCodeAt(i++),l=!1;if(r==126){o=65535;break}r>=92&&r--,r>=34&&r--;let a=r-32;if(a>=46&&(a-=46,l=!0),o+=a,l)break;o*=46}t?t[s++]=o:t=new e(o)}return t}class Ln{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const Ar=new Ln;class m5{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=Ar,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let i=this.range,s=this.rangeIndex,o=this.pos+e;for(;o<i.from;){if(!s)return null;let r=this.ranges[--s];o-=i.from-r.to,i=r}for(;t<0?o>i.to:o>=i.to;){if(s==this.ranges.length-1)return null;let r=this.ranges[++s];o+=r.from-i.to,i=r}return o}clipPos(e){if(e>=this.range.from&&e<this.range.to)return e;for(let t of this.ranges)if(t.to>e)return Math.max(e,t.from);return this.end}peek(e){let t=this.chunkOff+e,i,s;if(t>=0&&t<this.chunk.length)i=this.pos+e,s=this.chunk.charCodeAt(t);else{let o=this.resolveOffset(e,1);if(o==null)return-1;if(i=o,i>=this.chunk2Pos&&i<this.chunk2Pos+this.chunk2.length)s=this.chunk2.charCodeAt(i-this.chunk2Pos);else{let r=this.rangeIndex,l=this.range;for(;l.to<=i;)l=this.ranges[++r];this.chunk2=this.input.chunk(this.chunk2Pos=i),i+this.chunk2.length>l.to&&(this.chunk2=this.chunk2.slice(0,l.to-i)),s=this.chunk2.charCodeAt(0)}}return i>=this.token.lookAhead&&(this.token.lookAhead=i+1),s}acceptToken(e,t=0){let i=t?this.resolveOffset(t,-1):this.pos;if(i==null||i<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=e,this.token.end=i}acceptTokenTo(e,t){this.token.value=e,this.token.end=t}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:t}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=t,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos),t=this.pos+e.length;this.chunk=t>this.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=Ar,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;e>=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e<this.chunkPos+this.chunk.length?this.chunkOff=e-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(e,t){if(e>=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let i="";for(let s of this.ranges){if(s.from>=t)break;s.to>e&&(i+=this.input.read(Math.max(s.from,e),Math.min(s.to,t)))}return i}}class ni{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:i}=t.p;v5(this.data,e,t,this.id,i.data,i.tokenPrecTable)}}ni.prototype.contextual=ni.prototype.fallback=ni.prototype.extend=!1;ni.prototype.fallback=ni.prototype.extend=!1;class Kc{constructor(e,t={}){this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}}function v5(n,e,t,i,s,o){let r=0,l=1<<i,{dialect:a}=t.p.parser;e:for(;(l&n[r])!=0;){let c=n[r+1];for(let p=r+3;p<c;p+=2)if((n[p+1]&l)>0){let g=n[p];if(a.allows(g)&&(e.token.value==-1||e.token.value==g||w5(g,e.token.value,s,o))){e.acceptToken(g);break}}let h=e.next,f=0,d=n[r+2];if(e.next<0&&d>f&&n[c+d*3-3]==65535){r=n[c+d*3-1];continue e}for(;f<d;){let p=f+d>>1,g=c+p+(p<<1),m=n[g],v=n[g+1]||65536;if(h<m)d=p;else if(h>=v)f=p+1;else{r=n[g+2],e.advance();continue e}}break}}function Br(n,e,t){for(let i=e,s;(s=n[i])!=65535;i++)if(s==t)return i-e;return-1}function w5(n,e,t,i){let s=Br(t,i,e);return s<0||Br(t,i,n)<s}const Ve=typeof process<"u"&&process.env&&/\bparse\b/.test(process.env.LOG);let Zs=null;function Pr(n,e,t){let i=n.cursor(he.IncludeAnonymous);for(i.moveTo(e);;)if(!(t<0?i.childBefore(e):i.childAfter(e)))for(;;){if((t<0?i.to<e:i.from>e)&&!i.type.isError)return t<0?Math.max(0,Math.min(i.to-1,e-25)):Math.min(n.length,Math.max(i.from+1,e+25));if(t<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return t<0?0:n.length}}class x5{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?Pr(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?Pr(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(e<this.nextStart)return null;for(;this.fragment&&this.safeTo<=e;)this.nextFragment();if(!this.fragment)return null;for(;;){let t=this.trees.length-1;if(t<0)return this.nextFragment(),null;let i=this.trees[t],s=this.index[t];if(s==i.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let o=i.children[s],r=this.start[t]+i.positions[s];if(r>e)return this.nextStart=r,null;if(o instanceof oe){if(r==e){if(r<this.safeFrom)return null;let l=r+o.length;if(l<=this.safeTo){let a=o.prop(W.lookAhead);if(!a||l+a<this.fragment.to)return o}}this.index[t]++,r+o.length>=Math.max(this.safeFrom,e)&&(this.trees.push(o),this.start.push(r),this.index.push(0))}else this.index[t]++,this.nextStart=r+o.length}}}class b5{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(i=>new Ln)}getActions(e){let t=0,i=null,{parser:s}=e.p,{tokenizers:o}=s,r=s.stateSlot(e.state,3),l=e.curContext?e.curContext.hash:0,a=0;for(let c=0;c<o.length;c++){if((1<<c&r)==0)continue;let h=o[c],f=this.tokens[c];if(!(i&&!h.fallback)&&((h.contextual||f.start!=e.pos||f.mask!=r||f.context!=l)&&(this.updateCachedToken(f,h,e),f.mask=r,f.context=l),f.lookAhead>f.end+25&&(a=Math.max(f.lookAhead,a)),f.value!=0)){let d=t;if(f.extended>-1&&(t=this.addActions(e,f.extended,f.end,t)),t=this.addActions(e,f.value,f.end,t),!h.extend&&(i=f,t>d))break}}for(;this.actions.length>t;)this.actions.pop();return a&&e.setLookAhead(a),!i&&e.pos==this.stream.end&&(i=new Ln,i.value=e.p.parser.eofTerm,i.start=i.end=e.pos,t=this.addActions(e,i.value,i.end,t)),this.mainToken=i,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new Ln,{pos:i,p:s}=e;return t.start=i,t.end=Math.min(i+1,s.stream.end),t.value=i==s.stream.end?s.parser.eofTerm:0,t}updateCachedToken(e,t,i){let s=this.stream.clipPos(i.pos);if(t.token(this.stream.reset(s,e),i),e.value>-1){let{parser:o}=i.p;for(let r=0;r<o.specialized.length;r++)if(o.specialized[r]==e.value){let l=o.specializers[r](this.stream.read(e.start,e.end),i);if(l>=0&&i.p.parser.dialect.allows(l>>1)){(l&1)==0?e.value=l>>1:e.extended=l>>1;break}}}else e.value=0,e.end=this.stream.clipPos(s+1)}putAction(e,t,i,s){for(let o=0;o<s;o+=3)if(this.actions[o]==e)return s;return this.actions[s++]=e,this.actions[s++]=t,this.actions[s++]=i,s}addActions(e,t,i,s){let{state:o}=e,{parser:r}=e.p,{data:l}=r;for(let a=0;a<2;a++)for(let c=r.stateSlot(o,a?2:1);;c+=3){if(l[c]==65535)if(l[c+1]==1)c=at(l,c+2);else{s==0&&l[c+1]==2&&(s=this.putAction(at(l,c+2),t,i,s));break}l[c]==t&&(s=this.putAction(at(l,c+1),t,i,s))}return s}}class y5{constructor(e,t,i,s){this.parser=e,this.input=t,this.ranges=s,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new m5(t,s),this.tokens=new b5(e,this.stream),this.topTerm=e.top[1];let{from:o}=s[0];this.stacks=[cs.start(this,e.top[0],o)],this.fragments=i.length&&this.stream.end-o>e.bufferLength*4?new x5(i,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,t=this.minStackPos,i=this.stacks=[],s,o;if(this.bigReductionCount>300&&e.length==1){let[r]=e;for(;r.forceReduce()&&r.stack.length&&r.stack[r.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let r=0;r<e.length;r++){let l=e[r];for(;;){if(this.tokens.mainToken=null,l.pos>t)i.push(l);else{if(this.advanceStack(l,i,e))continue;{s||(s=[],o=[]),s.push(l);let a=this.tokens.getMainToken(l);o.push(a.value,a.end)}}break}}if(!i.length){let r=s&&C5(s);if(r)return Ve&&console.log("Finish with "+this.stackID(r)),this.stackToTree(r);if(this.parser.strict)throw Ve&&s&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+t);this.recovering||(this.recovering=5)}if(this.recovering&&s){let r=this.stoppedAt!=null&&s[0].pos>this.stoppedAt?s[0]:this.runRecovery(s,o,i);if(r)return Ve&&console.log("Force-finish "+this.stackID(r)),this.stackToTree(r.forceAll())}if(this.recovering){let r=this.recovering==1?1:this.recovering*3;if(i.length>r)for(i.sort((l,a)=>a.score-l.score);i.length>r;)i.pop();i.some(l=>l.reducePos>t)&&this.recovering--}else if(i.length>1){e:for(let r=0;r<i.length-1;r++){let l=i[r];for(let a=r+1;a<i.length;a++){let c=i[a];if(l.sameState(c)||l.buffer.length>500&&c.buffer.length>500)if((l.score-c.score||l.buffer.length-c.buffer.length)>0)i.splice(a--,1);else{i.splice(r--,1);continue e}}}i.length>12&&i.splice(12,i.length-12)}this.minStackPos=i[0].pos;for(let r=1;r<i.length;r++)i[r].pos<this.minStackPos&&(this.minStackPos=i[r].pos);return null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}advanceStack(e,t,i){let s=e.pos,{parser:o}=this,r=Ve?this.stackID(e)+" -> ":"";if(this.stoppedAt!=null&&s>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let c=e.curContext&&e.curContext.tracker.strict,h=c?e.curContext.hash:0;for(let f=this.fragments.nodeAt(s);f;){let d=this.parser.nodeSet.types[f.type.id]==f.type?o.getGoto(e.state,f.type.id):-1;if(d>-1&&f.length&&(!c||(f.prop(W.contextHash)||0)==h))return e.useNode(f,d),Ve&&console.log(r+this.stackID(e)+` (via reuse of ${o.getName(f.type.id)})`),!0;if(!(f instanceof oe)||f.children.length==0||f.positions[0]>0)break;let p=f.children[0];if(p instanceof oe&&f.positions[0]==0)f=p;else break}}let l=o.stateSlot(e.state,4);if(l>0)return e.reduce(l),Ve&&console.log(r+this.stackID(e)+` (via always-reduce ${o.getName(l&65535)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let a=this.tokens.getActions(e);for(let c=0;c<a.length;){let h=a[c++],f=a[c++],d=a[c++],p=c==a.length||!i,g=p?e:e.split(),m=this.tokens.mainToken;if(g.apply(h,f,m?m.start:g.pos,d),Ve&&console.log(r+this.stackID(g)+` (via ${(h&65536)==0?"shift":`reduce of ${o.getName(h&65535)}`} for ${o.getName(f)} @ ${s}${g==e?"":", split"})`),p)return!0;g.pos>s?t.push(g):i.push(g)}return!1}advanceFully(e,t){let i=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>i)return Er(e,t),!0}}runRecovery(e,t,i){let s=null,o=!1;for(let r=0;r<e.length;r++){let l=e[r],a=t[r<<1],c=t[(r<<1)+1],h=Ve?this.stackID(l)+" -> ":"";if(l.deadEnd&&(o||(o=!0,l.restart(),Ve&&console.log(h+this.stackID(l)+" (restarted)"),this.advanceFully(l,i))))continue;let f=l.split(),d=h;for(let p=0;f.forceReduce()&&p<10&&(Ve&&console.log(d+this.stackID(f)+" (via force-reduce)"),!this.advanceFully(f,i));p++)Ve&&(d=this.stackID(f)+" -> ");for(let p of l.recoverByInsert(a))Ve&&console.log(h+this.stackID(p)+" (via recover-insert)"),this.advanceFully(p,i);this.stream.end>l.pos?(c==l.pos&&(c++,a=0),l.recoverByDelete(a,c),Ve&&console.log(h+this.stackID(l)+` (via recover-delete ${this.parser.getName(a)})`),Er(l,i)):(!s||s.score<l.score)&&(s=l)}return s}stackToTree(e){return e.close(),oe.build({buffer:hs.create(e),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:e.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(e){let t=(Zs||(Zs=new WeakMap)).get(e);return t||Zs.set(e,t=String.fromCodePoint(this.nextStackID++)),t+e}}function Er(n,e){for(let t=0;t<e.length;t++){let i=e[t];if(i.pos==n.pos&&i.sameState(n)){e[t].score<n.score&&(e[t]=n);return}}e.push(n)}class k5{constructor(e,t,i){this.source=e,this.flags=t,this.disabled=i}allows(e){return!this.disabled||this.disabled[e]==0}}const e0=n=>n;class S5{constructor(e){this.start=e.start,this.shift=e.shift||e0,this.reduce=e.reduce||e0,this.reuse=e.reuse||e0,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}}class us extends Aa{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let t=e.nodeNames.split(" ");this.minRepeatTerm=t.length;for(let l=0;l<e.repeatNodeCount;l++)t.push("");let i=Object.keys(e.topRules).map(l=>e.topRules[l][1]),s=[];for(let l=0;l<t.length;l++)s.push([]);function o(l,a,c){s[l].push([a,a.deserialize(String(c))])}if(e.nodeProps)for(let l of e.nodeProps){let a=l[0];typeof a=="string"&&(a=W[a]);for(let c=1;c<l.length;){let h=l[c++];if(h>=0)o(h,a,l[c++]);else{let f=l[c+-h];for(let d=-h;d>0;d--)o(l[c++],a,f);c++}}}this.nodeSet=new xo(t.map((l,a)=>Be.define({name:a>=this.minRepeatTerm?void 0:l,id:a,props:s[a],top:i.indexOf(a)>-1,error:a==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(a)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=Oa;let r=_n(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let l=0;l<this.specializerSpecs.length;l++)this.specialized[l]=this.specializerSpecs[l].term;this.specializers=this.specializerSpecs.map(Vr),this.states=_n(e.states,Uint32Array),this.data=_n(e.stateData),this.goto=_n(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map(l=>typeof l=="number"?new ni(r,l):l),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,i){let s=new y5(this,e,t,i);for(let o of this.wrappers)s=o(s,e,t,i);return s}getGoto(e,t,i=!1){let s=this.goto;if(t>=s[0])return-1;for(let o=s[t+1];;){let r=s[o++],l=r&1,a=s[o++];if(l&&i)return a;for(let c=o+(r>>1);o<c;o++)if(s[o]==e)return a;if(l)return-1}}hasAction(e,t){let i=this.data;for(let s=0;s<2;s++)for(let o=this.stateSlot(e,s?2:1),r;;o+=3){if((r=i[o])==65535)if(i[o+1]==1)r=i[o=at(i,o+2)];else{if(i[o+1]==2)return at(i,o+2);break}if(r==t||r==0)return at(i,o+1)}return 0}stateSlot(e,t){return this.states[e*6+t]}stateFlag(e,t){return(this.stateSlot(e,0)&t)>0}validAction(e,t){return!!this.allActions(e,i=>i==t?!0:null)}allActions(e,t){let i=this.stateSlot(e,4),s=i?t(i):void 0;for(let o=this.stateSlot(e,1);s==null;o+=3){if(this.data[o]==65535)if(this.data[o+1]==1)o=at(this.data,o+2);else break;s=t(at(this.data,o+1))}return s}nextStates(e){let t=[];for(let i=this.stateSlot(e,1);;i+=3){if(this.data[i]==65535)if(this.data[i+1]==1)i=at(this.data,i+2);else break;if((this.data[i+2]&1)==0){let s=this.data[i+1];t.some((o,r)=>r&1&&o==s)||t.push(this.data[i],s)}}return t}configure(e){let t=Object.assign(Object.create(us.prototype),this);if(e.props&&(t.nodeSet=this.nodeSet.extend(...e.props)),e.top){let i=this.topRules[e.top];if(!i)throw new RangeError(`Invalid top rule name ${e.top}`);t.top=i}return e.tokenizers&&(t.tokenizers=this.tokenizers.map(i=>{let s=e.tokenizers.find(o=>o.from==i);return s?s.to:i})),e.specializers&&(t.specializers=this.specializers.slice(),t.specializerSpecs=this.specializerSpecs.map((i,s)=>{let o=e.specializers.find(l=>l.from==i.external);if(!o)return i;let r=Object.assign(Object.assign({},i),{external:o.to});return t.specializers[s]=Vr(r),r})),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),e.bufferLength!=null&&(t.bufferLength=e.bufferLength),t}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return t==null?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),i=t.map(()=>!1);if(e)for(let o of e.split(" ")){let r=t.indexOf(o);r>=0&&(i[r]=!0)}let s=null;for(let o=0;o<t.length;o++)if(!i[o])for(let r=this.dialects[t[o]],l;(l=this.data[r++])!=65535;)(s||(s=new Uint8Array(this.maxTerm+1)))[l]=1;return new k5(e,i,s)}static deserialize(e){return new us(e)}}function at(n,e){return n[e]|n[e+1]<<16}function C5(n){let e=null;for(let t of n){let i=t.p.stoppedAt;(t.pos==t.p.stream.end||i!=null&&t.pos>i)&&t.p.parser.stateFlag(t.state,2)&&(!e||e.score<t.score)&&(e=t)}return e}function Vr(n){if(n.external){let e=n.extend?1:0;return(t,i)=>n.external(t,i)<<1|e}return n.get}const J0=1,_5=2,O5=3,M5=4,D5=5,T5=36,A5=37,B5=38,P5=11,E5=13;function V5(n){return n==45||n==46||n==58||n>=65&&n<=90||n==95||n>=97&&n<=122||n>=161}function z5(n){return n==9||n==10||n==13||n==32}let zr=null,Lr=null,Nr=0;function Z0(n,e){let t=n.pos+e;if(Lr==n&&Nr==t)return zr;for(;z5(n.peek(e));)e++;let i="";for(;;){let s=n.peek(e);if(!V5(s))break;i+=String.fromCharCode(s),e++}return Lr=n,Nr=t,zr=i||null}function Rr(n,e){this.name=n,this.parent=e}const L5=new S5({start:null,shift(n,e,t,i){return e==J0?new Rr(Z0(i,1)||"",n):n},reduce(n,e){return e==P5&&n?n.parent:n},reuse(n,e,t,i){let s=e.type.id;return s==J0||s==E5?new Rr(Z0(i,1)||"",n):n},strict:!1}),N5=new Kc((n,e)=>{if(n.next==60){if(n.advance(),n.next==47){n.advance();let t=Z0(n,0);if(!t)return n.acceptToken(D5);if(e.context&&t==e.context.name)return n.acceptToken(_5);for(let i=e.context;i;i=i.parent)if(i.name==t)return n.acceptToken(O5,-2);n.acceptToken(M5)}else if(n.next!=33&&n.next!=63)return n.acceptToken(J0)}},{contextual:!0});function No(n,e){return new Kc(t=>{let i=0,s=e.charCodeAt(0);e:for(;!(t.next<0);t.advance(),i++)if(t.next==s){for(let o=1;o<e.length;o++)if(t.peek(o)!=e.charCodeAt(o))continue e;break}i&&t.acceptToken(n)})}const R5=No(T5,"-->"),I5=No(A5,"?>"),H5=No(B5,"]]>"),$5=Ba({Text:B.content,"StartTag StartCloseTag EndTag SelfCloseEndTag":B.angleBracket,TagName:B.tagName,"MismatchedCloseTag/TagName":[B.tagName,B.invalid],AttributeName:B.attributeName,AttributeValue:B.attributeValue,Is:B.definitionOperator,"EntityReference CharacterReference":B.character,Comment:B.blockComment,ProcessingInst:B.processingInstruction,DoctypeDecl:B.documentMeta,Cdata:B.special(B.string)}),W5=us.deserialize({version:14,states:",lOQOaOOOrOxO'#CfOzOpO'#CiO!tOaO'#CgOOOP'#Cg'#CgO!{OrO'#CrO#TOtO'#CsO#]OpO'#CtOOOP'#DT'#DTOOOP'#Cv'#CvQQOaOOOOOW'#Cw'#CwO#eOxO,59QOOOP,59Q,59QOOOO'#Cx'#CxO#mOpO,59TO#uO!bO,59TOOOP'#C|'#C|O$TOaO,59RO$[OpO'#CoOOOP,59R,59ROOOQ'#C}'#C}O$dOrO,59^OOOP,59^,59^OOOS'#DO'#DOO$lOtO,59_OOOP,59_,59_O$tOpO,59`O$|OpO,59`OOOP-E6t-E6tOOOW-E6u-E6uOOOP1G.l1G.lOOOO-E6v-E6vO%UO!bO1G.oO%UO!bO1G.oO%dOpO'#CkO%lO!bO'#CyO%zO!bO1G.oOOOP1G.o1G.oOOOP1G.w1G.wOOOP-E6z-E6zOOOP1G.m1G.mO&VOpO,59ZO&_OpO,59ZOOOQ-E6{-E6{OOOP1G.x1G.xOOOS-E6|-E6|OOOP1G.y1G.yO&gOpO1G.zO&gOpO1G.zOOOP1G.z1G.zO&oO!bO7+$ZO&}O!bO7+$ZOOOP7+$Z7+$ZOOOP7+$c7+$cO'YOpO,59VO'bOpO,59VO'mO!bO,59eOOOO-E6w-E6wO'{OpO1G.uO'{OpO1G.uOOOP1G.u1G.uO(TOpO7+$fOOOP7+$f7+$fO(]O!bO<<GuOOOP<<Gu<<GuOOOP<<G}<<G}O'bOpO1G.qO'bOpO1G.qO(hO#tO'#CnO(vO&jO'#CnOOOO1G.q1G.qO)UOpO7+$aOOOP7+$a7+$aOOOP<<HQ<<HQOOOPAN=aAN=aOOOPAN=iAN=iO'bOpO7+$]OOOO7+$]7+$]OOOO'#Cz'#CzO)^O#tO,59YOOOO,59Y,59YOOOO'#C{'#C{O)lO&jO,59YOOOP<<G{<<G{OOOO<<Gw<<GwOOOO-E6x-E6xOOOO1G.t1G.tOOOO-E6y-E6y",stateData:")z~OPQOSVOTWOVWOWWOXWOiXOyPO!QTO!SUO~OvZOx]O~O^`Oz^O~OPQOQcOSVOTWOVWOWWOXWOyPO!QTO!SUO~ORdO~P!SOteO!PgO~OuhO!RjO~O^lOz^O~OvZOxoO~O^qOz^O~O[vO`sOdwOz^O~ORyO~P!SO^{Oz^O~OteO!P}O~OuhO!R!PO~O^!QOz^O~O[!SOz^O~O[!VO`sOd!WOz^O~Oa!YOz^O~Oz^O[mX`mXdmX~O[!VO`sOd!WO~O^!]Oz^O~O[!_Oz^O~O[!aOz^O~O[!cO`sOd!dOz^O~O[!cO`sOd!dO~Oa!eOz^O~Oz^O{!gO}!hO~Oz^O[ma`madma~O[!kOz^O~O[!lOz^O~O[!mO`sOd!nO~OW!qOX!qO{!sO|!qO~OW!tOX!tO}!sO!O!tO~O[!vOz^O~OW!qOX!qO{!yO|!qO~OW!tOX!tO}!yO!O!tO~O",goto:"%cxPPPPPPPPPPyyP!PP!VPP!`!jP!pyyyP!v!|#S$[$k$q$w$}%TPPPP%ZXWORYbXRORYb_t`qru!T!U!bQ!i!YS!p!e!fR!w!oQdRRybXSORYbQYORmYQ[PRn[Q_QQkVjp_krz!R!T!X!Z!^!`!f!j!oQr`QzcQ!RlQ!TqQ!XsQ!ZtQ!^{Q!`!QQ!f!YQ!j!]R!o!eQu`S!UqrU![u!U!bR!b!TQ!r!gR!x!rQ!u!hR!z!uQbRRxbQfTR|fQiUR!OiSXOYTaRb",nodeNames:"⚠ StartTag StartCloseTag MissingCloseTag StartCloseTag StartCloseTag Document Text EntityReference CharacterReference Cdata Element EndTag OpenTag TagName Attribute AttributeName Is AttributeValue CloseTag SelfCloseEndTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag DoctypeDecl",maxTerm:50,context:L5,nodeProps:[["closedBy",1,"SelfCloseEndTag EndTag",13,"CloseTag MissingCloseTag"],["openedBy",12,"StartTag StartCloseTag",19,"OpenTag",20,"StartTag"],["isolate",-6,13,18,19,21,22,24,""]],propSources:[$5],skippedNodes:[0],repeatNodeCount:9,tokenData:"!)v~R!YOX$qXY)iYZ)iZ]$q]^)i^p$qpq)iqr$qrs*vsv$qvw+fwx/ix}$q}!O0[!O!P$q!P!Q2z!Q![$q![!]4n!]!^$q!^!_8U!_!`!#t!`!a!$l!a!b!%d!b!c$q!c!}4n!}#P$q#P#Q!'W#Q#R$q#R#S4n#S#T$q#T#o4n#o%W$q%W%o4n%o%p$q%p&a4n&a&b$q&b1p4n1p4U$q4U4d4n4d4e$q4e$IS4n$IS$I`$q$I`$Ib4n$Ib$Kh$q$Kh%#t4n%#t&/x$q&/x&Et4n&Et&FV$q&FV;'S4n;'S;:j8O;:j;=`)c<%l?&r$q?&r?Ah4n?Ah?BY$q?BY?Mn4n?MnO$qi$zXVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qa%nVVP!O`Ov%gwx&Tx!^%g!^!_&o!_;'S%g;'S;=`'W<%lO%gP&YTVPOv&Tw!^&T!_;'S&T;'S;=`&i<%lO&TP&lP;=`<%l&T`&tS!O`Ov&ox;'S&o;'S;=`'Q<%lO&o`'TP;=`<%l&oa'ZP;=`<%l%gX'eWVP|WOr'^rs&Tsv'^w!^'^!^!_'}!_;'S'^;'S;=`(i<%lO'^W(ST|WOr'}sv'}w;'S'};'S;=`(c<%lO'}W(fP;=`<%l'}X(lP;=`<%l'^h(vV|W!O`Or(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(oh)`P;=`<%l(oi)fP;=`<%l$qo)t`VP|W!O`zUOX$qXY)iYZ)iZ]$q]^)i^p$qpq)iqr$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qk+PV{YVP!O`Ov%gwx&Tx!^%g!^!_&o!_;'S%g;'S;=`'W<%lO%g~+iast,n![!]-r!c!}-r#R#S-r#T#o-r%W%o-r%p&a-r&b1p-r4U4d-r4e$IS-r$I`$Ib-r$Kh%#t-r&/x&Et-r&FV;'S-r;'S;:j/c?&r?Ah-r?BY?Mn-r~,qQ!Q![,w#l#m-V~,zQ!Q![,w!]!^-Q~-VOX~~-YR!Q![-c!c!i-c#T#Z-c~-fS!Q![-c!]!^-Q!c!i-c#T#Z-c~-ug}!O-r!O!P-r!Q![-r![!]-r!]!^/^!c!}-r#R#S-r#T#o-r$}%O-r%W%o-r%p&a-r&b1p-r1p4U-r4U4d-r4e$IS-r$I`$Ib-r$Je$Jg-r$Kh%#t-r&/x&Et-r&FV;'S-r;'S;:j/c?&r?Ah-r?BY?Mn-r~/cOW~~/fP;=`<%l-rk/rW}bVP|WOr'^rs&Tsv'^w!^'^!^!_'}!_;'S'^;'S;=`(i<%lO'^k0eZVP|W!O`Or$qrs%gsv$qwx'^x}$q}!O1W!O!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qk1aZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a2S!a;'S$q;'S;=`)c<%lO$qk2_X!PQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qm3TZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a3v!a;'S$q;'S;=`)c<%lO$qm4RXdSVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qo4{!P`S^QVP|W!O`Or$qrs%gsv$qwx'^x}$q}!O4n!O!P4n!P!Q$q!Q![4n![!]4n!]!^$q!^!_(o!_!c$q!c!}4n!}#R$q#R#S4n#S#T$q#T#o4n#o$}$q$}%O4n%O%W$q%W%o4n%o%p$q%p&a4n&a&b$q&b1p4n1p4U4n4U4d4n4d4e$q4e$IS4n$IS$I`$q$I`$Ib4n$Ib$Je$q$Je$Jg4n$Jg$Kh$q$Kh%#t4n%#t&/x$q&/x&Et4n&Et&FV$q&FV;'S4n;'S;:j8O;:j;=`)c<%l?&r$q?&r?Ah4n?Ah?BY$q?BY?Mn4n?MnO$qo8RP;=`<%l4ni8]Y|W!O`Oq(oqr8{rs&osv(owx'}x!a(o!a!b!#U!b;'S(o;'S;=`)]<%lO(oi9S_|W!O`Or(ors&osv(owx'}x}(o}!O:R!O!f(o!f!g;e!g!}(o!}#ODh#O#W(o#W#XLp#X;'S(o;'S;=`)]<%lO(oi:YX|W!O`Or(ors&osv(owx'}x}(o}!O:u!O;'S(o;'S;=`)]<%lO(oi;OV!QP|W!O`Or(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(oi;lX|W!O`Or(ors&osv(owx'}x!q(o!q!r<X!r;'S(o;'S;=`)]<%lO(oi<`X|W!O`Or(ors&osv(owx'}x!e(o!e!f<{!f;'S(o;'S;=`)]<%lO(oi=SX|W!O`Or(ors&osv(owx'}x!v(o!v!w=o!w;'S(o;'S;=`)]<%lO(oi=vX|W!O`Or(ors&osv(owx'}x!{(o!{!|>c!|;'S(o;'S;=`)]<%lO(oi>jX|W!O`Or(ors&osv(owx'}x!r(o!r!s?V!s;'S(o;'S;=`)]<%lO(oi?^X|W!O`Or(ors&osv(owx'}x!g(o!g!h?y!h;'S(o;'S;=`)]<%lO(oi@QY|W!O`Or?yrs@psv?yvwA[wxBdx!`?y!`!aCr!a;'S?y;'S;=`Db<%lO?ya@uV!O`Ov@pvxA[x!`@p!`!aAy!a;'S@p;'S;=`B^<%lO@pPA_TO!`A[!`!aAn!a;'SA[;'S;=`As<%lOA[PAsOiPPAvP;=`<%lA[aBQSiP!O`Ov&ox;'S&o;'S;=`'Q<%lO&oaBaP;=`<%l@pXBiX|WOrBdrsA[svBdvwA[w!`Bd!`!aCU!a;'SBd;'S;=`Cl<%lOBdXC]TiP|WOr'}sv'}w;'S'};'S;=`(c<%lO'}XCoP;=`<%lBdiC{ViP|W!O`Or(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(oiDeP;=`<%l?yiDoZ|W!O`Or(ors&osv(owx'}x!e(o!e!fEb!f#V(o#V#WIr#W;'S(o;'S;=`)]<%lO(oiEiX|W!O`Or(ors&osv(owx'}x!f(o!f!gFU!g;'S(o;'S;=`)]<%lO(oiF]X|W!O`Or(ors&osv(owx'}x!c(o!c!dFx!d;'S(o;'S;=`)]<%lO(oiGPX|W!O`Or(ors&osv(owx'}x!v(o!v!wGl!w;'S(o;'S;=`)]<%lO(oiGsX|W!O`Or(ors&osv(owx'}x!c(o!c!dH`!d;'S(o;'S;=`)]<%lO(oiHgX|W!O`Or(ors&osv(owx'}x!}(o!}#OIS#O;'S(o;'S;=`)]<%lO(oiI]V|W!O`yPOr(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(oiIyX|W!O`Or(ors&osv(owx'}x#W(o#W#XJf#X;'S(o;'S;=`)]<%lO(oiJmX|W!O`Or(ors&osv(owx'}x#T(o#T#UKY#U;'S(o;'S;=`)]<%lO(oiKaX|W!O`Or(ors&osv(owx'}x#h(o#h#iK|#i;'S(o;'S;=`)]<%lO(oiLTX|W!O`Or(ors&osv(owx'}x#T(o#T#UH`#U;'S(o;'S;=`)]<%lO(oiLwX|W!O`Or(ors&osv(owx'}x#c(o#c#dMd#d;'S(o;'S;=`)]<%lO(oiMkX|W!O`Or(ors&osv(owx'}x#V(o#V#WNW#W;'S(o;'S;=`)]<%lO(oiN_X|W!O`Or(ors&osv(owx'}x#h(o#h#iNz#i;'S(o;'S;=`)]<%lO(oi! RX|W!O`Or(ors&osv(owx'}x#m(o#m#n! n#n;'S(o;'S;=`)]<%lO(oi! uX|W!O`Or(ors&osv(owx'}x#d(o#d#e!!b#e;'S(o;'S;=`)]<%lO(oi!!iX|W!O`Or(ors&osv(owx'}x#X(o#X#Y?y#Y;'S(o;'S;=`)]<%lO(oi!#_V!SP|W!O`Or(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(ok!$PXaQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qo!$wX[UVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qk!%mZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a!&`!a;'S$q;'S;=`)c<%lO$qk!&kX!RQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qk!'aZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_#P$q#P#Q!(S#Q;'S$q;'S;=`)c<%lO$qk!(]ZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a!)O!a;'S$q;'S;=`)c<%lO$qk!)ZXxQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$q",tokenizers:[N5,R5,I5,H5,0,1,2,3,4],topRules:{Document:[0,6]},tokenPrec:0});function Nn(n,e){let t=e&&e.getChild("TagName");return t?n.sliceString(t.from,t.to):""}function t0(n,e){let t=e&&e.firstChild;return!t||t.name!="OpenTag"?"":Nn(n,t)}function F5(n,e,t){let i=e&&e.getChildren("Attribute").find(o=>o.from<=t&&o.to>=t),s=i&&i.getChild("AttributeName");return s?n.sliceString(s.from,s.to):""}function i0(n){for(let e=n&&n.parent;e;e=e.parent)if(e.name=="Element")return e;return null}function G5(n,e){var t;let i=fe(n).resolveInner(e,-1),s=null;for(let o=i;!s&&o.parent;o=o.parent)(o.name=="OpenTag"||o.name=="CloseTag"||o.name=="SelfClosingTag"||o.name=="MismatchedCloseTag")&&(s=o);if(s&&(s.to>e||s.lastChild.type.isError)){let o=s.parent;if(i.name=="TagName")return s.name=="CloseTag"||s.name=="MismatchedCloseTag"?{type:"closeTag",from:i.from,context:o}:{type:"openTag",from:i.from,context:i0(o)};if(i.name=="AttributeName")return{type:"attrName",from:i.from,context:s};if(i.name=="AttributeValue")return{type:"attrValue",from:i.from,context:s};let r=i==s||i.name=="Attribute"?i.childBefore(e):i;return(r==null?void 0:r.name)=="StartTag"?{type:"openTag",from:e,context:i0(o)}:(r==null?void 0:r.name)=="StartCloseTag"&&r.to<=e?{type:"closeTag",from:e,context:o}:(r==null?void 0:r.name)=="Is"?{type:"attrValue",from:e,context:s}:r?{type:"attrName",from:e,context:s}:null}else if(i.name=="StartCloseTag")return{type:"closeTag",from:e,context:i.parent};for(;i.parent&&i.to==e&&!(!((t=i.lastChild)===null||t===void 0)&&t.type.isError);)i=i.parent;return i.name=="Element"||i.name=="Text"||i.name=="Document"?{type:"tag",from:e,context:i.name=="Element"?i:i0(i)}:null}class j5{constructor(e,t,i){this.attrs=t,this.attrValues=i,this.children=[],this.name=e.name,this.completion=Object.assign(Object.assign({type:"type"},e.completion||{}),{label:this.name}),this.openCompletion=Object.assign(Object.assign({},this.completion),{label:"<"+this.name}),this.closeCompletion=Object.assign(Object.assign({},this.completion),{label:"</"+this.name+">",boost:2}),this.closeNameCompletion=Object.assign(Object.assign({},this.completion),{label:this.name+">"}),this.text=e.textContent?e.textContent.map(s=>({label:s,type:"text"})):[]}}const n0=/^[:\-\.\w\u00b7-\uffff]*$/;function Ir(n){return Object.assign(Object.assign({type:"property"},n.completion||{}),{label:n.name})}function Hr(n){return typeof n=="string"?{label:`"${n}"`,type:"constant"}:/^"/.test(n.label)?n:Object.assign(Object.assign({},n),{label:`"${n.label}"`})}function q5(n,e){let t=[],i=[],s=Object.create(null);for(let a of e){let c=Ir(a);t.push(c),a.global&&i.push(c),a.values&&(s[a.name]=a.values.map(Hr))}let o=[],r=[],l=Object.create(null);for(let a of n){let c=i,h=s;a.attributes&&(c=c.concat(a.attributes.map(d=>typeof d=="string"?t.find(p=>p.label==d)||{label:d,type:"property"}:(d.values&&(h==s&&(h=Object.create(h)),h[d.name]=d.values.map(Hr)),Ir(d)))));let f=new j5(a,c,h);l[f.name]=f,o.push(f),a.top&&r.push(f)}r.length||(r=o);for(let a=0;a<o.length;a++){let c=n[a],h=o[a];if(c.children)for(let f of c.children)l[f]&&h.children.push(l[f]);else h.children=o}return a=>{var c;let{doc:h}=a.state,f=G5(a.state,a.pos);if(!f||f.type=="tag"&&!a.explicit)return null;let{type:d,from:p,context:g}=f;if(d=="openTag"){let m=r,v=t0(h,g);if(v){let x=l[v];m=(x==null?void 0:x.children)||o}return{from:p,options:m.map(x=>x.completion),validFor:n0}}else if(d=="closeTag"){let m=t0(h,g);return m?{from:p,to:a.pos+(h.sliceString(a.pos,a.pos+1)==">"?1:0),options:[((c=l[m])===null||c===void 0?void 0:c.closeNameCompletion)||{label:m+">",type:"type"}],validFor:n0}:null}else if(d=="attrName"){let m=l[Nn(h,g)];return{from:p,options:(m==null?void 0:m.attrs)||i,validFor:n0}}else if(d=="attrValue"){let m=F5(h,g,p);if(!m)return null;let v=l[Nn(h,g)],x=((v==null?void 0:v.attrValues)||s)[m];return!x||!x.length?null:{from:p,to:a.pos+(h.sliceString(a.pos,a.pos+1)=='"'?1:0),options:x,validFor:/^"[^"]*"?$/}}else if(d=="tag"){let m=t0(h,g),v=l[m],x=[],b=g&&g.lastChild;m&&(!b||b.name!="CloseTag"||Nn(h,b)!=m)&&x.push(v?v.closeCompletion:{label:"</"+m+">",type:"type",boost:2});let k=x.concat(((v==null?void 0:v.children)||(g?o:r)).map(_=>_.openCompletion));if(g&&(v!=null&&v.text.length)){let _=g.firstChild;_.to>a.pos-20&&!/\S/.test(a.state.sliceDoc(_.to,a.pos))&&(k=k.concat(v.text))}return{from:p,options:k,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}else return null}}const eo=Xn.define({name:"xml",parser:W5.configure({props:[za.add({Element(n){let e=/^\s*<\//.test(n.textAfter);return n.lineIndent(n.node.from)+(e?0:n.unit)},"OpenTag CloseTag SelfClosingTag"(n){return n.column(n.node.from)+n.unit}}),Na.add({Element(n){let e=n.firstChild,t=n.lastChild;return!e||e.name!="OpenTag"?null:{from:e.to,to:t.name=="CloseTag"?t.from:n.to}}}),Ka.add({"OpenTag CloseTag":n=>n.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"<!--",close:"-->"}},indentOnInput:/^\s*<\/$/}});function U5(n={}){let e=[eo.data.of({autocomplete:q5(n.elements||[],n.attributes||[])})];return n.autoCloseTags!==!1&&e.push(Y5),new $4(eo,e)}function $r(n,e,t=n.length){if(!e)return"";let i=e.firstChild,s=i&&i.getChild("TagName");return s?n.sliceString(s.from,Math.min(s.to,t)):""}const Y5=z.inputHandler.of((n,e,t,i,s)=>{if(n.composing||n.state.readOnly||e!=t||i!=">"&&i!="/"||!eo.isActiveAt(n.state,e,-1))return!1;let o=s(),{state:r}=o,l=r.changeByRange(a=>{var c,h,f;let{head:d}=a,p=r.doc.sliceString(d-1,d)==i,g=fe(r).resolveInner(d,-1),m;if(p&&i==">"&&g.name=="EndTag"){let v=g.parent;if(((h=(c=v.parent)===null||c===void 0?void 0:c.lastChild)===null||h===void 0?void 0:h.name)!="CloseTag"&&(m=$r(r.doc,v.parent,d))){let x=d+(r.doc.sliceString(d,d+1)===">"?1:0),b=`</${m}>`;return{range:a,changes:{from:d,to:x,insert:b}}}}else if(p&&i=="/"&&g.name=="StartCloseTag"){let v=g.parent;if(g.from==d-2&&((f=v.lastChild)===null||f===void 0?void 0:f.name)!="CloseTag"&&(m=$r(r.doc,v,d))){let x=d+(r.doc.sliceString(d,d+1)===">"?1:0),b=`${m}>`;return{range:M.cursor(d+b.length,-1),changes:{from:d,to:x,insert:b}}}}return{range:a}});return l.changes.empty?!1:(n.dispatch([o,r.update(l,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),K5={class:"xml-renderer"},X5={ref:"xml-editor",id:"xml-editor"},Q5={__name:"index",props:{fileName:String,blobUrl:String},setup(n){const e=n,t=u.computed(()=>e.blobUrl),i=u.ref("");return u.watchEffect(async()=>{const o=await(await fetch(t.value)).blob(),r=new FileReader;r.onload=function(l){debugger;i.value=l.target.result},r.readAsText(o)}),u.watchEffect(()=>{const s=new z({doc:i.value,extensions:[p5,U5(),z.lineWrapping,G.readOnly.of(!0)],parent:document.querySelector("#xml-editor")});s.dom.style.width="100%"}),(s,o)=>(u.openBlock(),u.createElementBlock("div",K5,[u.createElementVNode("div",X5,null,512)]))}},J5=ce._export_sfc(Q5,[["__scopeId","data-v-edd4ac40"]]),Z5={class:"img-renderer"},e7={__name:"index",props:{fileName:String,blobUrl:String},setup(n){const e=n,t=u.computed(()=>e.blobUrl),i=u.computed(()=>[e.blobUrl]);return(s,o)=>{const r=u.resolveComponent("el-image");return u.openBlock(),u.createElementBlock("div",Z5,[u.createVNode(r,{class:"render-img",src:t.value,"zoom-rate":1.2,"max-scale":7,"min-scale":.2,"preview-src-list":i.value,fit:"contain"},null,8,["src","preview-src-list"])])}}},t7=ce._export_sfc(e7,[["__scopeId","data-v-92be70b7"]]),i7={class:"file-preview"},n7={key:0,class:"preview-txt"},s7={key:1,class:"preview-docx"},o7={key:2,class:"preview-xlsx"},r7={key:3,class:"preview-pdf"},l7={key:4,class:"preview-xml"},a7={key:5,class:"preview-xml"},c7={key:6,class:"not-support"},h7={__name:"index",props:{fileName:String,blobUrl:String},emits:["destroy"],setup(n,{emit:e}){const t=e,i=n,s=u.computed(()=>i.blobUrl),o=u.computed(()=>i.fileName),r=u.computed(()=>{const v=o.value;if(!v)return;const x=v.split(".");return x==null?void 0:x[1]}),l=u.computed(()=>(r==null?void 0:r.value)==="txt"),a=u.computed(()=>(r==null?void 0:r.value)==="ls"),c=u.computed(()=>(r==null?void 0:r.value)==="urdf"),h=u.computed(()=>c.value),f=u.computed(()=>(r==null?void 0:r.value)==="docx"),d=u.computed(()=>(r==null?void 0:r.value)==="xlsx"),p=u.computed(()=>(r==null?void 0:r.value)==="pdf"),g=u.computed(()=>{const v=r==null?void 0:r.value;return v==="jpg"||v==="png"}),m=u.computed(()=>!l&&!a&&!h&&!f&&!d&&!p&&!g);return u.onUnmounted(()=>{t("destroy")}),(v,x)=>(u.openBlock(),u.createElementBlock("div",i7,[l.value||a.value?(u.openBlock(),u.createElementBlock("div",n7,[u.createVNode(ff,{fileName:o.value,blobUrl:s.value},null,8,["fileName","blobUrl"])])):u.createCommentVNode("",!0),f.value?(u.openBlock(),u.createElementBlock("div",s7,[u.createVNode(gf,{fileName:o.value,blobUrl:s.value},null,8,["fileName","blobUrl"])])):u.createCommentVNode("",!0),d.value?(u.openBlock(),u.createElementBlock("div",o7,[u.createVNode(wf,{fileName:o.value,blobUrl:s.value},null,8,["fileName","blobUrl"])])):u.createCommentVNode("",!0),p.value?(u.openBlock(),u.createElementBlock("div",r7,[u.createVNode(kf,{fileName:o.value,blobUrl:s.value},null,8,["fileName","blobUrl"])])):u.createCommentVNode("",!0),c.value?(u.openBlock(),u.createElementBlock("div",l7,[u.createVNode(J5,{fileName:o.value,blobUrl:s.value},null,8,["fileName","blobUrl"])])):u.createCommentVNode("",!0),g.value?(u.openBlock(),u.createElementBlock("div",a7,[u.createVNode(t7,{fileName:o.value,blobUrl:s.value},null,8,["fileName","blobUrl"])])):u.createCommentVNode("",!0),m.value?(u.openBlock(),u.createElementBlock("div",c7,x[0]||(x[0]=[u.createElementVNode("div",null,"当前文件格式暂不支持预览",-1)]))):u.createCommentVNode("",!0)]))}},Ro=ce._export_sfc(h7,[["__scopeId","data-v-68790d60"]]),u7={key:0,class:"upload-value"},f7={class:"upload-content-title-wrap"},d7={class:"upload-content-title"},p7={class:"icon"},g7={style:{display:"flex","justify-content":"space-between",width:"100%"}},m7={class:"upload-content-title"},v7={class:"icon"},w7={class:"dialog-footer"},x7={__name:"index",props:{modelValue:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,i=e,s=u.ref(Array.isArray(t.modelValue)?t.modelValue:[]),o=u.ref(!1),r=u.ref(Array.isArray(t.modelValue)?t.modelValue:[]),l=u.ref(!1),a=u.ref(""),c=u.ref(""),h=u.ref(Array.isArray(t.modelValue)?t.modelValue:[]),f=()=>{l.value=!0,h.value=s.value,r.value=s.value},d=async k=>{var S;const _=await Zr({url:(S=ee.cloneDeep(k))==null?void 0:S.url});let y=URL.createObjectURL(_.data);c.value=y},p=async k=>{var y,S,C,P;if(k==null?void 0:k.url)a.value=(k==null?void 0:k.name)+"."+((P=(y=ee.cloneDeep(k))==null?void 0:y.url.split("."))==null?void 0:P[((C=(S=ee.cloneDeep(k))==null?void 0:S.url.split("."))==null?void 0:C.length)-1]),await d(k);else{a.value=k==null?void 0:k.name;const O=k.raw;c.value=URL.createObjectURL(O)}o.value=!0},g=k=>{var _;h.value=(_=ee.cloneDeep(h.value))==null?void 0:_.filter((y,S)=>S!==k),r.value=h.value},m=k=>{var O;const _=k.split(","),y=(O=_==null?void 0:_[0])==null?void 0:O.match(/:(.*?);/)[1],S=atob(_[1]);let C=S.length;const P=new Uint8Array(C);for(;C--;)P[C]=S.charCodeAt(C);return new Blob([P],{type:y})},v=async()=>{var S;l.value=!1;const k=(S=r.value)==null?void 0:S.map(async C=>{if(C!=null&&C.base64){const P=new FormData,O=m(C==null?void 0:C.base64);return P.append("file",O,C==null?void 0:C.name),await lf(P)}else return C}),_=await Promise.all(k);let y=[];_==null||_.map(C=>{var P,O,w,A,T,D;return y.push({name:((O=(P=C==null?void 0:C.data)==null?void 0:P.result)==null?void 0:O.fileName)??(C==null?void 0:C.name),url:((A=(w=C==null?void 0:C.data)==null?void 0:w.result)==null?void 0:A.url)??(C==null?void 0:C.url)}),(D=(T=C==null?void 0:C.data)==null?void 0:T.result)==null?void 0:D.url}),ee.ElMessage.success("上传成功"),s.value=y,i("update:modelValue",y),r.value=[]},x=()=>{l.value=!1,r.value=s.value,h.value=s.value},b=k=>{if(!k)return;const _=new FileReader;_.onload=y=>{const S=r.value===""?[]:r.value;S.push({name:k.name,size:k.size,type:k.type,base64:y.target.result}),r.value=S},_.onerror=y=>{console.error("文件读取错误:",y),fileData.value={name:"",size:0,type:"",base64:""}},_.readAsDataURL(k.raw)};return(k,_)=>{const y=u.resolveComponent("el-button"),S=u.resolveComponent("svg-icon"),C=u.resolveComponent("el-icon"),P=u.resolveComponent("el-upload");return t!=null&&t.isEdit?(u.openBlock(),u.createElementBlock("div",u7,[u.createVNode(y,{type:"primary",onClick:f,class:"upload-button"},{default:u.withCtx(()=>_[2]||(_[2]=[u.createTextVNode(" 上传 ")])),_:1,__:[2]}),u.createElementVNode("div",f7,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(s.value,O=>(u.openBlock(),u.createElementBlock("div",{class:"upload-content-title",key:O,style:{display:"flex","justify-content":"space-between",width:"100%"}},[u.createElementVNode("div",d7,u.toDisplayString(O==null?void 0:O.name),1),u.createElementVNode("div",p7,[u.createVNode(S,{name:"EyeFill",style:{width:"20px",height:"20px",cursor:"pointer"},onClick:w=>p(O)},null,8,["onClick"])])]))),128))]),u.createVNode(Bi,{visible:l.value,onBeforeDestroy:x,title:"上传文件"},{default:u.withCtx(()=>[u.createVNode(P,{"file-list":h.value,"onUpdate:fileList":_[0]||(_[0]=O=>h.value=O),multiple:"",drag:"",action:"","auto-upload":!1,limit:20,"on-change":b,class:"upload-content"},{tip:u.withCtx(()=>_[3]||(_[3]=[u.createElementVNode("div",{class:"el-upload__tip tip-content"}," 请上传大小不超过10MB的文件 ",-1)])),default:u.withCtx(()=>[u.createVNode(C,{class:"el-icon--upload"},{default:u.withCtx(()=>[u.createVNode(u.unref(ee.upload_filled_default))]),_:1}),_[4]||(_[4]=u.createElementVNode("div",{class:"el-upload__text"},[u.createTextVNode(" 将文件拖到此处或"),u.createElementVNode("em",null,"点击上传")],-1))]),file:u.withCtx(({file:O,index:w})=>[u.createElementVNode("div",g7,[u.createElementVNode("div",m7,u.toDisplayString(O==null?void 0:O.name),1),u.createElementVNode("div",v7,[u.createVNode(S,{name:"EyeFill",style:{width:"20px",height:"20px",cursor:"pointer"},onClick:A=>p(O)},null,8,["onClick"]),u.createVNode(S,{name:"Cancel",style:{width:"20px",height:"20px",cursor:"pointer"},onClick:A=>g(w)},null,8,["onClick"])])])]),_:1},8,["file-list"])]),footer:u.withCtx(()=>[u.createElementVNode("div",w7,[u.createVNode(y,{onClick:x,id:"themeBorderButton"},{default:u.withCtx(()=>_[5]||(_[5]=[u.createTextVNode("取消")])),_:1,__:[5]}),u.createVNode(y,{type:"primary",onClick:v,id:"themeButton"},{default:u.withCtx(()=>_[6]||(_[6]=[u.createTextVNode("确认")])),_:1,__:[6]})])]),_:1},8,["visible"]),u.createVNode(Bi,{visible:o.value,onBeforeDestroy:_[1]||(_[1]=O=>o.value=!1),style:{height:"calc(100% - 200px)"}},{default:u.withCtx(()=>[(u.openBlock(),u.createBlock(Ro,{key:a.value+c.value,fileName:a.value,blobUrl:c.value},null,8,["fileName","blobUrl"]))]),_:1},8,["visible"])])):u.createCommentVNode("",!0)}}},b7=ce._export_sfc(x7,[["__scopeId","data-v-c950e225"]]);/*!
|
|
7
|
+
`;this.styleTag.textContent=r;let l=t.head||t;this.styleTag.parentNode!=l&&l.insertBefore(this.styleTag,l.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}var Ct={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},Vi={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Ff=typeof navigator<"u"&&/Mac/.test(navigator.platform),Gf=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var pe=0;pe<10;pe++)Ct[48+pe]=Ct[96+pe]=String(pe);for(var pe=1;pe<=24;pe++)Ct[pe+111]="F"+pe;for(var pe=65;pe<=90;pe++)Ct[pe]=String.fromCharCode(pe+32),Vi[pe]=String.fromCharCode(pe);for(var As in Ct)Vi.hasOwnProperty(As)||(Vi[As]=Ct[As]);function jf(n){var e=Ff&&n.metaKey&&n.shiftKey&&!n.ctrlKey&&!n.altKey||Gf&&n.shiftKey&&n.key&&n.key.length==1||n.key=="Unidentified",t=!e&&n.key||(n.shiftKey?Vi:Ct)[n.keyCode]||n.key||"Unidentified";return t=="Esc"&&(t="Escape"),t=="Del"&&(t="Delete"),t=="Left"&&(t="ArrowLeft"),t=="Up"&&(t="ArrowUp"),t=="Right"&&(t="ArrowRight"),t=="Down"&&(t="ArrowDown"),t}function Y(){var n=arguments[0];typeof n=="string"&&(n=document.createElement(n));var e=1,t=arguments[1];if(t&&typeof t=="object"&&t.nodeType==null&&!Array.isArray(t)){for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var s=t[i];typeof s=="string"?n.setAttribute(i,s):s!=null&&(n[i]=s)}e++}for(;e<arguments.length;e++)bl(n,arguments[e]);return n}function bl(n,e){if(typeof e=="string")n.appendChild(document.createTextNode(e));else if(e!=null)if(e.nodeType!=null)n.appendChild(e);else if(Array.isArray(e))for(var t=0;t<e.length;t++)bl(n,e[t]);else throw new RangeError("Unsupported child node: "+e)}function zi(n){let e;return n.nodeType==11?e=n.getSelection?n:n.ownerDocument:e=n,e.getSelection()}function b0(n,e){return e?n==e||n.contains(e.nodeType!=1?e.parentNode:e):!1}function Dn(n,e){if(!e.anchorNode)return!1;try{return b0(n,e.anchorNode)}catch{return!1}}function Li(n){return n.nodeType==3?Ht(n,0,n.nodeValue.length).getClientRects():n.nodeType==1?n.getClientRects():[]}function Oi(n,e,t,i){return t?t2(n,e,t,i,-1)||t2(n,e,t,i,1):!1}function It(n){for(var e=0;;e++)if(n=n.previousSibling,!n)return e}function $n(n){return n.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(n.nodeName)}function t2(n,e,t,i,s){for(;;){if(n==t&&e==i)return!0;if(e==(s<0?0:ot(n))){if(n.nodeName=="DIV")return!1;let o=n.parentNode;if(!o||o.nodeType!=1)return!1;e=It(n)+(s<0?0:1),n=o}else if(n.nodeType==1){if(n=n.childNodes[e+(s<0?-1:0)],n.nodeType==1&&n.contentEditable=="false")return!1;e=s<0?ot(n):0}else return!1}}function ot(n){return n.nodeType==3?n.nodeValue.length:n.childNodes.length}function gs(n,e){let t=e?n.left:n.right;return{left:t,right:t,top:n.top,bottom:n.bottom}}function qf(n){let e=n.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:n.innerWidth,top:0,bottom:n.innerHeight}}function xl(n,e){let t=e.width/n.offsetWidth,i=e.height/n.offsetHeight;return(t>.995&&t<1.005||!isFinite(t)||Math.abs(e.width-n.offsetWidth)<1)&&(t=1),(i>.995&&i<1.005||!isFinite(i)||Math.abs(e.height-n.offsetHeight)<1)&&(i=1),{scaleX:t,scaleY:i}}function Uf(n,e,t,i,s,o,r,l){let a=n.ownerDocument,c=a.defaultView||window;for(let h=n,f=!1;h&&!f;)if(h.nodeType==1){let d,p=h==a.body,g=1,m=1;if(p)d=qf(c);else{if(/^(fixed|sticky)$/.test(getComputedStyle(h).position)&&(f=!0),h.scrollHeight<=h.clientHeight&&h.scrollWidth<=h.clientWidth){h=h.assignedSlot||h.parentNode;continue}let x=h.getBoundingClientRect();({scaleX:g,scaleY:m}=xl(h,x)),d={left:x.left,right:x.left+h.clientWidth*g,top:x.top,bottom:x.top+h.clientHeight*m}}let v=0,b=0;if(s=="nearest")e.top<d.top?(b=e.top-(d.top+r),t>0&&e.bottom>d.bottom+b&&(b=e.bottom-d.bottom+r)):e.bottom>d.bottom&&(b=e.bottom-d.bottom+r,t<0&&e.top-b<d.top&&(b=e.top-(d.top+r)));else{let x=e.bottom-e.top,k=d.bottom-d.top;b=(s=="center"&&x<=k?e.top+x/2-k/2:s=="start"||s=="center"&&t<0?e.top-r:e.bottom-k+r)-d.top}if(i=="nearest"?e.left<d.left?(v=e.left-(d.left+o),t>0&&e.right>d.right+v&&(v=e.right-d.right+o)):e.right>d.right&&(v=e.right-d.right+o,t<0&&e.left<d.left+v&&(v=e.left-(d.left+o))):v=(i=="center"?e.left+(e.right-e.left)/2-(d.right-d.left)/2:i=="start"==l?e.left-o:e.right-(d.right-d.left)+o)-d.left,v||b)if(p)c.scrollBy(v,b);else{let x=0,k=0;if(b){let _=h.scrollTop;h.scrollTop+=b/m,k=(h.scrollTop-_)*m}if(v){let _=h.scrollLeft;h.scrollLeft+=v/g,x=(h.scrollLeft-_)*g}e={left:e.left-x,top:e.top-k,right:e.right-x,bottom:e.bottom-k},x&&Math.abs(x-v)<1&&(i="nearest"),k&&Math.abs(k-b)<1&&(s="nearest")}if(p)break;(e.top<d.top||e.bottom>d.bottom||e.left<d.left||e.right>d.right)&&(e={left:Math.max(e.left,d.left),right:Math.min(e.right,d.right),top:Math.max(e.top,d.top),bottom:Math.min(e.bottom,d.bottom)}),h=h.assignedSlot||h.parentNode}else if(h.nodeType==11)h=h.host;else break}function Yf(n){let e=n.ownerDocument,t,i;for(let s=n.parentNode;s&&!(s==e.body||t&&i);)if(s.nodeType==1)!i&&s.scrollHeight>s.clientHeight&&(i=s),!t&&s.scrollWidth>s.clientWidth&&(t=s),s=s.assignedSlot||s.parentNode;else if(s.nodeType==11)s=s.host;else break;return{x:t,y:i}}class Kf{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:i}=e;this.set(t,Math.min(e.anchorOffset,t?ot(t):0),i,Math.min(e.focusOffset,i?ot(i):0))}set(e,t,i,s){this.anchorNode=e,this.anchorOffset=t,this.focusNode=i,this.focusOffset=s}}let jt=null;function yl(n){if(n.setActive)return n.setActive();if(jt)return n.focus(jt);let e=[];for(let t=n;t&&(e.push(t,t.scrollTop,t.scrollLeft),t!=t.ownerDocument);t=t.parentNode);if(n.focus(jt==null?{get preventScroll(){return jt={preventScroll:!0},!0}}:void 0),!jt){jt=!1;for(let t=0;t<e.length;){let i=e[t++],s=e[t++],o=e[t++];i.scrollTop!=s&&(i.scrollTop=s),i.scrollLeft!=o&&(i.scrollLeft=o)}}}let i2;function Ht(n,e,t=e){let i=i2||(i2=document.createRange());return i.setEnd(n,t),i.setStart(n,e),i}function Zt(n,e,t,i){let s={key:e,code:e,keyCode:t,which:t,cancelable:!0};i&&({altKey:s.altKey,ctrlKey:s.ctrlKey,shiftKey:s.shiftKey,metaKey:s.metaKey}=i);let o=new KeyboardEvent("keydown",s);o.synthetic=!0,n.dispatchEvent(o);let r=new KeyboardEvent("keyup",s);return r.synthetic=!0,n.dispatchEvent(r),o.defaultPrevented||r.defaultPrevented}function Xf(n){for(;n;){if(n&&(n.nodeType==9||n.nodeType==11&&n.host))return n;n=n.assignedSlot||n.parentNode}return null}function kl(n){for(;n.attributes.length;)n.removeAttributeNode(n.attributes[0])}function Qf(n,e){let t=e.focusNode,i=e.focusOffset;if(!t||e.anchorNode!=t||e.anchorOffset!=i)return!1;for(i=Math.min(i,ot(t));;)if(i){if(t.nodeType!=1)return!1;let s=t.childNodes[i-1];s.contentEditable=="false"?i--:(t=s,i=ot(t))}else{if(t==n)return!0;i=It(t),t=t.parentNode}}function Sl(n){return n.scrollTop>Math.max(1,n.scrollHeight-n.clientHeight-4)}function Cl(n,e){for(let t=n,i=e;;){if(t.nodeType==3&&i>0)return{node:t,offset:i};if(t.nodeType==1&&i>0){if(t.contentEditable=="false")return null;t=t.childNodes[i-1],i=ot(t)}else if(t.parentNode&&!$n(t))i=It(t),t=t.parentNode;else return null}}function _l(n,e){for(let t=n,i=e;;){if(t.nodeType==3&&i<t.nodeValue.length)return{node:t,offset:i};if(t.nodeType==1&&i<t.childNodes.length){if(t.contentEditable=="false")return null;t=t.childNodes[i],i=0}else if(t.parentNode&&!$n(t))i=It(t)+1,t=t.parentNode;else return null}}class we{constructor(e,t,i=!0){this.node=e,this.offset=t,this.precise=i}static before(e,t){return new we(e.parentNode,It(e),t)}static after(e,t){return new we(e.parentNode,It(e)+1,t)}}const oo=[];class X{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let t=this.posAtStart;for(let i of this.children){if(i==e)return t;t+=i.length+i.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}sync(e,t){if(this.flags&2){let i=this.dom,s=null,o;for(let r of this.children){if(r.flags&7){if(!r.dom&&(o=s?s.nextSibling:i.firstChild)){let l=X.get(o);(!l||!l.parent&&l.canReuseDOM(r))&&r.reuseDOM(o)}r.sync(e,t),r.flags&=-8}if(o=s?s.nextSibling:i.firstChild,t&&!t.written&&t.node==i&&o!=r.dom&&(t.written=!0),r.dom.parentNode==i)for(;o&&o!=r.dom;)o=n2(o);else i.insertBefore(r.dom,o);s=r.dom}for(o=s?s.nextSibling:i.firstChild,o&&t&&t.node==i&&(t.written=!0);o;)o=n2(o)}else if(this.flags&1)for(let i of this.children)i.flags&7&&(i.sync(e,t),i.flags&=-8)}reuseDOM(e){}localPosFromDOM(e,t){let i;if(e==this.dom)i=this.dom.childNodes[t];else{let s=ot(e)==0?0:t==0?-1:1;for(;;){let o=e.parentNode;if(o==this.dom)break;s==0&&o.firstChild!=o.lastChild&&(e==o.firstChild?s=-1:s=1),e=o}s<0?i=e:i=e.nextSibling}if(i==this.dom.firstChild)return 0;for(;i&&!X.get(i);)i=i.nextSibling;if(!i)return this.length;for(let s=0,o=0;;s++){let r=this.children[s];if(r.dom==i)return o;o+=r.length+r.breakAfter}}domBoundsAround(e,t,i=0){let s=-1,o=-1,r=-1,l=-1;for(let a=0,c=i,h=i;a<this.children.length;a++){let f=this.children[a],d=c+f.length;if(c<e&&d>t)return f.domBoundsAround(e,t,c);if(d>=e&&s==-1&&(s=a,o=c),c>t&&f.dom.parentNode==this.dom){r=a,l=h;break}h=d,c=d+f.breakAfter}return{from:o,to:l<0?i+this.length:l,startDOM:(s?this.children[s-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:r<this.children.length&&r>=0?this.children[r].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let t=this.parent;t;t=t.parent){if(e&&(t.flags|=2),t.flags&1)return;t.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,this.flags&7&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let t=e.parent;if(!t)return e;e=t}}replaceChildren(e,t,i=oo){this.markDirty();for(let s=e;s<t;s++){let o=this.children[s];o.parent==this&&i.indexOf(o)<0&&o.destroy()}i.length<250?this.children.splice(e,t-e,...i):this.children=[].concat(this.children.slice(0,e),i,this.children.slice(t));for(let s=0;s<i.length;s++)i[s].setParent(this)}ignoreMutation(e){return!1}ignoreEvent(e){return!1}childCursor(e=this.length){return new Ol(this.children,e,this.children.length)}childPos(e,t=1){return this.childCursor().findPos(e,t)}toString(){let e=this.constructor.name.replace("View","");return e+(this.children.length?"("+this.children.join()+")":this.length?"["+(e=="Text"?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}static get(e){return e.cmView}get isEditable(){return!0}get isWidget(){return!1}get isHidden(){return!1}merge(e,t,i,s,o,r){return!1}become(e){return!1}canReuseDOM(e){return e.constructor==this.constructor&&!((this.flags|e.flags)&8)}getSide(){return 0}destroy(){for(let e of this.children)e.parent==this&&e.destroy();this.parent=null}}X.prototype.breakAfter=0;function n2(n){let e=n.nextSibling;return n.parentNode.removeChild(n),e}class Ol{constructor(e,t,i){this.children=e,this.pos=t,this.i=i,this.off=0}findPos(e,t=1){for(;;){if(e>this.pos||e==this.pos&&(t>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let i=this.children[--this.i];this.pos-=i.length+i.breakAfter}}}function Ml(n,e,t,i,s,o,r,l,a){let{children:c}=n,h=c.length?c[e]:null,f=o.length?o[o.length-1]:null,d=f?f.breakAfter:r;if(!(e==i&&h&&!r&&!d&&o.length<2&&h.merge(t,s,o.length?f:null,t==0,l,a))){if(i<c.length){let p=c[i];p&&(s<p.length||p.breakAfter&&(f!=null&&f.breakAfter))?(e==i&&(p=p.split(s),s=0),!d&&f&&p.merge(0,s,f,!0,0,a)?o[o.length-1]=p:((s||p.children.length&&!p.children[0].length)&&p.merge(0,s,null,!1,0,a),o.push(p))):p!=null&&p.breakAfter&&(f?f.breakAfter=1:r=1),i++}for(h&&(h.breakAfter=r,t>0&&(!r&&o.length&&h.merge(t,h.length,o[0],!1,l,0)?h.breakAfter=o.shift().breakAfter:(t<h.length||h.children.length&&h.children[h.children.length-1].length==0)&&h.merge(t,h.length,null,!1,l,0),e++));e<i&&o.length;)if(c[i-1].become(o[o.length-1]))i--,o.pop(),a=o.length?0:l;else if(c[e].become(o[0]))e++,o.shift(),l=o.length?0:a;else break;!o.length&&e&&i<c.length&&!c[e-1].breakAfter&&c[i].merge(0,0,c[e-1],!1,l,a)&&e--,(e<i||o.length)&&n.replaceChildren(e,i,o)}}function Dl(n,e,t,i,s,o){let r=n.childCursor(),{i:l,off:a}=r.findPos(t,1),{i:c,off:h}=r.findPos(e,-1),f=e-t;for(let d of i)f+=d.length;n.length+=f,Ml(n,c,h,l,a,i,0,s,o)}let Me=typeof navigator<"u"?navigator:{userAgent:"",vendor:"",platform:""},x0=typeof document<"u"?document:{documentElement:{style:{}}};const y0=/Edge\/(\d+)/.exec(Me.userAgent),Tl=/MSIE \d/.test(Me.userAgent),k0=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Me.userAgent),ms=!!(Tl||k0||y0),s2=!ms&&/gecko\/(\d+)/i.test(Me.userAgent),Bs=!ms&&/Chrome\/(\d+)/.exec(Me.userAgent),Jf="webkitFontSmoothing"in x0.documentElement.style,Al=!ms&&/Apple Computer/.test(Me.vendor),o2=Al&&(/Mobile\/\w+/.test(Me.userAgent)||Me.maxTouchPoints>2);var V={mac:o2||/Mac/.test(Me.platform),windows:/Win/.test(Me.platform),linux:/Linux|X11/.test(Me.platform),ie:ms,ie_version:Tl?x0.documentMode||6:k0?+k0[1]:y0?+y0[1]:0,gecko:s2,gecko_version:s2?+(/Firefox\/(\d+)/.exec(Me.userAgent)||[0,0])[1]:0,chrome:!!Bs,chrome_version:Bs?+Bs[1]:0,ios:o2,android:/Android\b/.test(Me.userAgent),safari:Al,webkit_version:Jf?+(/\bAppleWebKit\/(\d+)/.exec(Me.userAgent)||[0,0])[1]:0,tabSize:x0.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const Zf=256;class je extends X{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,t){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(t&&t.node==this.dom&&(t.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){e.nodeType==3&&this.createDOM(e)}merge(e,t,i){return this.flags&8||i&&(!(i instanceof je)||this.length-(t-e)+i.length>Zf||i.flags&8)?!1:(this.text=this.text.slice(0,e)+(i?i.text:"")+this.text.slice(t),this.markDirty(),!0)}split(e){let t=new je(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),t.flags|=this.flags&8,t}localPosFromDOM(e,t){return e==this.dom?t:t?this.text.length:0}domAtPos(e){return new we(this.dom,e)}domBoundsAround(e,t,i){return{from:i,to:i+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,t){return ed(this.dom,e,t)}}class ft extends X{constructor(e,t=[],i=0){super(),this.mark=e,this.children=t,this.length=i;for(let s of t)s.setParent(this)}setAttrs(e){if(kl(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let t in this.mark.attrs)e.setAttribute(t,this.mark.attrs[t]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!((this.flags|e.flags)&8)}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,t){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,t)}merge(e,t,i,s,o,r){return i&&(!(i instanceof ft&&i.mark.eq(this.mark))||e&&o<=0||t<this.length&&r<=0)?!1:(Dl(this,e,t,i?i.children.slice():[],o-1,r-1),this.markDirty(),!0)}split(e){let t=[],i=0,s=-1,o=0;for(let l of this.children){let a=i+l.length;a>e&&t.push(i<e?l.split(e-i):l),s<0&&i>=e&&(s=o),i=a,o++}let r=this.length-e;return this.length=e,s>-1&&(this.children.length=s,this.markDirty()),new ft(this.mark,t,r)}domAtPos(e){return Bl(this,e)}coordsAt(e,t){return El(this,e,t)}}function ed(n,e,t){let i=n.nodeValue.length;e>i&&(e=i);let s=e,o=e,r=0;e==0&&t<0||e==i&&t>=0?V.chrome||V.gecko||(e?(s--,r=1):o<i&&(o++,r=-1)):t<0?s--:o<i&&o++;let l=Ht(n,s,o).getClientRects();if(!l.length)return null;let a=l[(r?r<0:t>=0)?0:l.length-1];return V.safari&&!r&&a.width==0&&(a=Array.prototype.find.call(l,c=>c.width)||a),r?gs(a,r<0):a||null}class bt extends X{static create(e,t,i){return new bt(e,t,i)}constructor(e,t,i){super(),this.widget=e,this.length=t,this.side=i,this.prevWidget=null}split(e){let t=bt.create(this.widget,this.length-e,this.side);return this.length-=e,t}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(e,t,i,s,o,r){return i&&(!(i instanceof bt)||!this.widget.compare(i.widget)||e>0&&o<=0||t<this.length&&r<=0)?!1:(this.length=e+(i?i.length:0)+(this.length-t),!0)}become(e){return e instanceof bt&&e.side==this.side&&this.widget.constructor==e.widget.constructor?(this.widget.compare(e.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,!0):!1}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get overrideDOMText(){if(this.length==0)return q.empty;let e=this;for(;e.parent;)e=e.parent;let{view:t}=e,i=t&&t.state.doc,s=this.posAtStart;return i?i.slice(s,s+this.length):q.empty}domAtPos(e){return(this.length?e==0:this.side>0)?we.before(this.dom):we.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,t){let i=this.widget.coordsAt(this.dom,e,t);if(i)return i;let s=this.dom.getClientRects(),o=null;if(!s.length)return null;let r=this.side?this.side<0:e>0;for(let l=r?s.length-1:0;o=s[l],!(e>0?l==0:l==s.length-1||o.top<o.bottom);l+=r?-1:1);return gs(o,!r)}get isEditable(){return!1}get isWidget(){return!0}get isHidden(){return this.widget.isHidden}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class oi extends X{constructor(e){super(),this.side=e}get length(){return 0}merge(){return!1}become(e){return e instanceof oi&&e.side==this.side}split(){return new oi(this.side)}sync(){if(!this.dom){let e=document.createElement("img");e.className="cm-widgetBuffer",e.setAttribute("aria-hidden","true"),this.setDOM(e)}}getSide(){return this.side}domAtPos(e){return this.side>0?we.before(this.dom):we.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return q.empty}get isHidden(){return!0}}je.prototype.children=bt.prototype.children=oi.prototype.children=oo;function Bl(n,e){let t=n.dom,{children:i}=n,s=0;for(let o=0;s<i.length;s++){let r=i[s],l=o+r.length;if(!(l==o&&r.getSide()<=0)){if(e>o&&e<l&&r.dom.parentNode==t)return r.domAtPos(e-o);if(e<=o)break;o=l}}for(let o=s;o>0;o--){let r=i[o-1];if(r.dom.parentNode==t)return r.domAtPos(r.length)}for(let o=s;o<i.length;o++){let r=i[o];if(r.dom.parentNode==t)return r.domAtPos(0)}return new we(t,0)}function Pl(n,e,t){let i,{children:s}=n;t>0&&e instanceof ft&&s.length&&(i=s[s.length-1])instanceof ft&&i.mark.eq(e.mark)?Pl(i,e.children[0],t-1):(s.push(e),e.setParent(n)),n.length+=e.length}function El(n,e,t){let i=null,s=-1,o=null,r=-1;function l(c,h){for(let f=0,d=0;f<c.children.length&&d<=h;f++){let p=c.children[f],g=d+p.length;g>=h&&(p.children.length?l(p,h-d):(!o||o.isHidden&&(t>0||id(o,p)))&&(g>h||d==g&&p.getSide()>0)?(o=p,r=h-d):(d<h||d==g&&p.getSide()<0&&!p.isHidden)&&(i=p,s=h-d)),d=g}}l(n,e);let a=(t<0?i:o)||i||o;return a?a.coordsAt(Math.max(0,a==i?s:r),t):td(n)}function td(n){let e=n.dom.lastChild;if(!e)return n.dom.getBoundingClientRect();let t=Li(e);return t[t.length-1]||null}function id(n,e){let t=n.coordsAt(0,1),i=e.coordsAt(0,1);return t&&i&&i.top<t.bottom}function S0(n,e){for(let t in n)t=="class"&&e.class?e.class+=" "+n.class:t=="style"&&e.style?e.style+=";"+n.style:e[t]=n[t];return e}const r2=Object.create(null);function Wn(n,e,t){if(n==e)return!0;n||(n=r2),e||(e=r2);let i=Object.keys(n),s=Object.keys(e);if(i.length-(t&&i.indexOf(t)>-1?1:0)!=s.length-(t&&s.indexOf(t)>-1?1:0))return!1;for(let o of i)if(o!=t&&(s.indexOf(o)==-1||n[o]!==e[o]))return!1;return!0}function C0(n,e,t){let i=!1;if(e)for(let s in e)t&&s in t||(i=!0,s=="style"?n.style.cssText="":n.removeAttribute(s));if(t)for(let s in t)e&&e[s]==t[s]||(i=!0,s=="style"?n.style.cssText=t[s]:n.setAttribute(s,t[s]));return i}function nd(n){let e=Object.create(null);for(let t=0;t<n.attributes.length;t++){let i=n.attributes[t];e[i.name]=i.value}return e}class Dt{eq(e){return!1}updateDOM(e,t){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,t,i){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}}var ke=function(n){return n[n.Text=0]="Text",n[n.WidgetBefore=1]="WidgetBefore",n[n.WidgetAfter=2]="WidgetAfter",n[n.WidgetRange=3]="WidgetRange",n}(ke||(ke={}));class I extends Nt{constructor(e,t,i,s){super(),this.startSide=e,this.endSide=t,this.widget=i,this.spec=s}get heightRelevant(){return!1}static mark(e){return new Yi(e)}static widget(e){let t=Math.max(-1e4,Math.min(1e4,e.side||0)),i=!!e.block;return t+=i&&!e.inlineOrder?t>0?3e8:-4e8:t>0?1e8:-1e8,new _t(e,t,t,i,e.widget||null,!1)}static replace(e){let t=!!e.block,i,s;if(e.isBlockGap)i=-5e8,s=4e8;else{let{start:o,end:r}=Vl(e,t);i=(o?t?-3e8:-1:5e8)-1,s=(r?t?2e8:1:-6e8)+1}return new _t(e,i,s,t,e.widget||null,!0)}static line(e){return new Ki(e)}static set(e,t=!1){return j.of(e,t)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}I.none=j.empty;class Yi extends I{constructor(e){let{start:t,end:i}=Vl(e);super(t?-1:5e8,i?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var t,i;return this==e||e instanceof Yi&&this.tagName==e.tagName&&(this.class||((t=this.attrs)===null||t===void 0?void 0:t.class))==(e.class||((i=e.attrs)===null||i===void 0?void 0:i.class))&&Wn(this.attrs,e.attrs,"class")}range(e,t=e){if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}}Yi.prototype.point=!1;class Ki extends I{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof Ki&&this.spec.class==e.spec.class&&Wn(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}Ki.prototype.mapMode=ye.TrackBefore;Ki.prototype.point=!0;class _t extends I{constructor(e,t,i,s,o,r){super(t,i,o,e),this.block=s,this.isReplace=r,this.mapMode=s?t<=0?ye.TrackBefore:ye.TrackAfter:ye.TrackDel}get type(){return this.startSide!=this.endSide?ke.WidgetRange:this.startSide<=0?ke.WidgetBefore:ke.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof _t&&sd(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}_t.prototype.point=!0;function Vl(n,e=!1){let{inclusiveStart:t,inclusiveEnd:i}=n;return t==null&&(t=n.inclusive),i==null&&(i=n.inclusive),{start:t??e,end:i??e}}function sd(n,e){return n==e||!!(n&&e&&n.compare(e))}function Tn(n,e,t,i=0){let s=t.length-1;s>=0&&t[s]+i>=n?t[s]=Math.max(t[s],e):t.push(n,e)}class se extends X{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(e,t,i,s,o,r){if(i){if(!(i instanceof se))return!1;this.dom||i.transferDOM(this)}return s&&this.setDeco(i?i.attrs:null),Dl(this,e,t,i?i.children.slice():[],o,r),!0}split(e){let t=new se;if(t.breakAfter=this.breakAfter,this.length==0)return t;let{i,off:s}=this.childPos(e);s&&(t.append(this.children[i].split(s),0),this.children[i].merge(s,this.children[i].length,null,!1,0,0),i++);for(let o=i;o<this.children.length;o++)t.append(this.children[o],0);for(;i>0&&this.children[i-1].length==0;)this.children[--i].destroy();return this.children.length=i,this.markDirty(),this.length=e,t}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){Wn(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,t){Pl(this,e,t)}addLineDeco(e){let t=e.spec.attributes,i=e.spec.class;t&&(this.attrs=S0(t,this.attrs||{})),i&&(this.attrs=S0({class:i},this.attrs||{}))}domAtPos(e){return Bl(this,e)}reuseDOM(e){e.nodeName=="DIV"&&(this.setDOM(e),this.flags|=6)}sync(e,t){var i;this.dom?this.flags&4&&(kl(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(C0(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,t);let s=this.dom.lastChild;for(;s&&X.get(s)instanceof ft;)s=s.lastChild;if(!s||!this.length||s.nodeName!="BR"&&((i=X.get(s))===null||i===void 0?void 0:i.isEditable)==!1&&(!V.ios||!this.children.some(o=>o instanceof je))){let o=document.createElement("BR");o.cmIgnore=!0,this.dom.appendChild(o)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let e=0,t;for(let i of this.children){if(!(i instanceof je)||/[^ -~]/.test(i.text))return null;let s=Li(i.dom);if(s.length!=1)return null;e+=s[0].width,t=s[0].height}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length,textHeight:t}:null}coordsAt(e,t){let i=El(this,e,t);if(!this.children.length&&i&&this.parent){let{heightOracle:s}=this.parent.view.viewState,o=i.bottom-i.top;if(Math.abs(o-s.lineHeight)<2&&s.textHeight<o){let r=(o-s.textHeight)/2;return{top:i.top+r,bottom:i.bottom-r,left:i.left,right:i.left}}}return i}become(e){return e instanceof se&&this.children.length==0&&e.children.length==0&&Wn(this.attrs,e.attrs)&&this.breakAfter==e.breakAfter}covers(){return!0}static find(e,t){for(let i=0,s=0;i<e.children.length;i++){let o=e.children[i],r=s+o.length;if(r>=t){if(o instanceof se)return o;if(r>t)break}s=r+o.breakAfter}return null}}class ht extends X{constructor(e,t,i){super(),this.widget=e,this.length=t,this.deco=i,this.breakAfter=0,this.prevWidget=null}merge(e,t,i,s,o,r){return i&&(!(i instanceof ht)||!this.widget.compare(i.widget)||e>0&&o<=0||t<this.length&&r<=0)?!1:(this.length=e+(i?i.length:0)+(this.length-t),!0)}domAtPos(e){return e==0?we.before(this.dom):we.after(this.dom,e==this.length)}split(e){let t=this.length-e;this.length=e;let i=new ht(this.widget,t,this.deco);return i.breakAfter=this.breakAfter,i}get children(){return oo}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}get overrideDOMText(){return this.parent?this.parent.view.state.doc.slice(this.posAtStart,this.posAtEnd):q.empty}domBoundsAround(){return null}become(e){return e instanceof ht&&e.widget.constructor==this.widget.constructor?(e.widget.compare(this.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,this.deco=e.deco,this.breakAfter=e.breakAfter,!0):!1}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get isEditable(){return!1}get isWidget(){return!0}coordsAt(e,t){let i=this.widget.coordsAt(this.dom,e,t);return i||(this.widget instanceof _0?null:gs(this.dom.getBoundingClientRect(),this.length?e==0:t<=0))}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}covers(e){let{startSide:t,endSide:i}=this.deco;return t==i?!1:e<0?t<0:i>0}}class _0 extends Dt{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return e.className="cm-gap",this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}}class Mi{constructor(e,t,i,s){this.doc=e,this.pos=t,this.end=i,this.disallowBlockEffectsFor=s,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=t}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof ht&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new se),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(on(new oi(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(e&&this.content.length&&this.content[this.content.length-1]instanceof ht)&&this.getLine()}buildText(e,t,i){for(;e>0;){if(this.textOff==this.text.length){let{value:o,lineBreak:r,done:l}=this.cursor.next(this.skip);if(this.skip=0,l)throw new Error("Ran out of text content when drawing inline views");if(r){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}else this.text=o,this.textOff=0}let s=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(t.slice(t.length-i)),this.getLine().append(on(new je(this.text.slice(this.textOff,this.textOff+s)),t),i),this.atCursorPos=!0,this.textOff+=s,e-=s,i=0}}span(e,t,i,s){this.buildText(t-e,i,s),this.pos=t,this.openStart<0&&(this.openStart=s)}point(e,t,i,s,o,r){if(this.disallowBlockEffectsFor[r]&&i instanceof _t){if(i.block)throw new RangeError("Block decorations may not be specified via plugins");if(t>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let l=t-e;if(i instanceof _t)if(i.block)i.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new ht(i.widget||ri.block,l,i));else{let a=bt.create(i.widget||ri.inline,l,l?0:i.startSide),c=this.atCursorPos&&!a.isEditable&&o<=s.length&&(e<t||i.startSide>0),h=!a.isEditable&&(e<t||o>s.length||i.startSide<=0),f=this.getLine();this.pendingBuffer==2&&!c&&!a.isEditable&&(this.pendingBuffer=0),this.flushBuffer(s),c&&(f.append(on(new oi(1),s),o),o=s.length+Math.max(0,o-s.length)),f.append(on(a,s),o),this.atCursorPos=h,this.pendingBuffer=h?e<t||o>s.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=s.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(i);l&&(this.textOff+l<=this.text.length?this.textOff+=l:(this.skip+=l-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=t),this.openStart<0&&(this.openStart=o)}static build(e,t,i,s,o){let r=new Mi(e,t,i,o);return r.openEnd=j.spans(s,t,i,r),r.openStart<0&&(r.openStart=r.openEnd),r.finish(r.openEnd),r}}function on(n,e){for(let t of e)n=new ft(t,[n],n.length);return n}class ri extends Dt{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}ri.inline=new ri("span");ri.block=new ri("div");var Z=function(n){return n[n.LTR=0]="LTR",n[n.RTL=1]="RTL",n}(Z||(Z={}));const $t=Z.LTR,ro=Z.RTL;function zl(n){let e=[];for(let t=0;t<n.length;t++)e.push(1<<+n[t]);return e}const od=zl("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),rd=zl("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),O0=Object.create(null),Ke=[];for(let n of["()","[]","{}"]){let e=n.charCodeAt(0),t=n.charCodeAt(1);O0[e]=t,O0[t]=-e}function Ll(n){return n<=247?od[n]:1424<=n&&n<=1524?2:1536<=n&&n<=1785?rd[n-1536]:1774<=n&&n<=2220?4:8192<=n&&n<=8204?256:64336<=n&&n<=65023?4:1}const ld=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class xt{get dir(){return this.level%2?ro:$t}constructor(e,t,i){this.from=e,this.to=t,this.level=i}side(e,t){return this.dir==t==e?this.to:this.from}forward(e,t){return e==(this.dir==t)}static find(e,t,i,s){let o=-1;for(let r=0;r<e.length;r++){let l=e[r];if(l.from<=t&&l.to>=t){if(l.level==i)return r;(o<0||(s!=0?s<0?l.from<t:l.to>t:e[o].level>l.level))&&(o=r)}}if(o<0)throw new RangeError("Index out of range");return o}}function Rl(n,e){if(n.length!=e.length)return!1;for(let t=0;t<n.length;t++){let i=n[t],s=e[t];if(i.from!=s.from||i.to!=s.to||i.direction!=s.direction||!Rl(i.inner,s.inner))return!1}return!0}const K=[];function ad(n,e,t,i,s){for(let o=0;o<=i.length;o++){let r=o?i[o-1].to:e,l=o<i.length?i[o].from:t,a=o?256:s;for(let c=r,h=a,f=a;c<l;c++){let d=Ll(n.charCodeAt(c));d==512?d=h:d==8&&f==4&&(d=16),K[c]=d==4?2:d,d&7&&(f=d),h=d}for(let c=r,h=a,f=a;c<l;c++){let d=K[c];if(d==128)c<l-1&&h==K[c+1]&&h&24?d=K[c]=h:K[c]=256;else if(d==64){let p=c+1;for(;p<l&&K[p]==64;)p++;let g=c&&h==8||p<t&&K[p]==8?f==1?1:8:256;for(let m=c;m<p;m++)K[m]=g;c=p-1}else d==8&&f==1&&(K[c]=1);h=d,d&7&&(f=d)}}}function cd(n,e,t,i,s){let o=s==1?2:1;for(let r=0,l=0,a=0;r<=i.length;r++){let c=r?i[r-1].to:e,h=r<i.length?i[r].from:t;for(let f=c,d,p,g;f<h;f++)if(p=O0[d=n.charCodeAt(f)])if(p<0){for(let m=l-3;m>=0;m-=3)if(Ke[m+1]==-p){let v=Ke[m+2],b=v&2?s:v&4?v&1?o:s:0;b&&(K[f]=K[Ke[m]]=b),l=m;break}}else{if(Ke.length==189)break;Ke[l++]=f,Ke[l++]=d,Ke[l++]=a}else if((g=K[f])==2||g==1){let m=g==s;a=m?0:1;for(let v=l-3;v>=0;v-=3){let b=Ke[v+2];if(b&2)break;if(m)Ke[v+2]|=2;else{if(b&4)break;Ke[v+2]|=4}}}}}function hd(n,e,t,i){for(let s=0,o=i;s<=t.length;s++){let r=s?t[s-1].to:n,l=s<t.length?t[s].from:e;for(let a=r;a<l;){let c=K[a];if(c==256){let h=a+1;for(;;)if(h==l){if(s==t.length)break;h=t[s++].to,l=s<t.length?t[s].from:e}else if(K[h]==256)h++;else break;let f=o==1,d=(h<e?K[h]:i)==1,p=f==d?f?1:2:i;for(let g=h,m=s,v=m?t[m-1].to:n;g>a;)g==v&&(g=t[--m].from,v=m?t[m-1].to:n),K[--g]=p;a=h}else o=c,a++}}}function M0(n,e,t,i,s,o,r){let l=i%2?2:1;if(i%2==s%2)for(let a=e,c=0;a<t;){let h=!0,f=!1;if(c==o.length||a<o[c].from){let m=K[a];m!=l&&(h=!1,f=m==16)}let d=!h&&l==1?[]:null,p=h?i:i+1,g=a;e:for(;;)if(c<o.length&&g==o[c].from){if(f)break e;let m=o[c];if(!h)for(let v=m.to,b=c+1;;){if(v==t)break e;if(b<o.length&&o[b].from==v)v=o[b++].to;else{if(K[v]==l)break e;break}}if(c++,d)d.push(m);else{m.from>a&&r.push(new xt(a,m.from,p));let v=m.direction==$t!=!(p%2);D0(n,v?i+1:i,s,m.inner,m.from,m.to,r),a=m.to}g=m.to}else{if(g==t||(h?K[g]!=l:K[g]==l))break;g++}d?M0(n,a,g,i+1,s,d,r):a<g&&r.push(new xt(a,g,p)),a=g}else for(let a=t,c=o.length;a>e;){let h=!0,f=!1;if(!c||a>o[c-1].to){let m=K[a-1];m!=l&&(h=!1,f=m==16)}let d=!h&&l==1?[]:null,p=h?i:i+1,g=a;e:for(;;)if(c&&g==o[c-1].to){if(f)break e;let m=o[--c];if(!h)for(let v=m.from,b=c;;){if(v==e)break e;if(b&&o[b-1].to==v)v=o[--b].from;else{if(K[v-1]==l)break e;break}}if(d)d.push(m);else{m.to<a&&r.push(new xt(m.to,a,p));let v=m.direction==$t!=!(p%2);D0(n,v?i+1:i,s,m.inner,m.from,m.to,r),a=m.from}g=m.from}else{if(g==e||(h?K[g-1]!=l:K[g-1]==l))break;g--}d?M0(n,g,a,i+1,s,d,r):g<a&&r.push(new xt(g,a,p)),a=g}}function D0(n,e,t,i,s,o,r){let l=e%2?2:1;ad(n,s,o,i,l),cd(n,s,o,i,l),hd(s,o,i,l),M0(n,s,o,e,t,i,r)}function ud(n,e,t){if(!n)return[new xt(0,0,e==ro?1:0)];if(e==$t&&!t.length&&!ld.test(n))return Nl(n.length);if(t.length)for(;n.length>K.length;)K[K.length]=256;let i=[],s=e==$t?0:1;return D0(n,s,s,t,0,n.length,i),i}function Nl(n){return[new xt(0,n,0)]}let Il="";function fd(n,e,t,i,s){var o;let r=i.head-n.from,l=xt.find(e,r,(o=i.bidiLevel)!==null&&o!==void 0?o:-1,i.assoc),a=e[l],c=a.side(s,t);if(r==c){let d=l+=s?1:-1;if(d<0||d>=e.length)return null;a=e[l=d],r=a.side(!s,t),c=a.side(s,t)}let h=ge(n.text,r,a.forward(s,t));(h<a.from||h>a.to)&&(h=c),Il=n.text.slice(Math.min(r,h),Math.max(r,h));let f=l==(s?e.length-1:0)?null:e[l+(s?1:-1)];return f&&h==c&&f.level+(s?0:1)<a.level?M.cursor(f.side(!s,t)+n.from,f.forward(s,t)?1:-1,f.level):M.cursor(h+n.from,a.forward(s,t)?-1:1,a.level)}function dd(n,e,t){for(let i=e;i<t;i++){let s=Ll(n.charCodeAt(i));if(s==1)return $t;if(s==2||s==4)return ro}return $t}const Hl=L.define(),$l=L.define(),Wl=L.define(),Fl=L.define(),T0=L.define(),Gl=L.define(),jl=L.define(),lo=L.define(),ao=L.define(),ql=L.define({combine:n=>n.some(e=>e)}),Ul=L.define({combine:n=>n.some(e=>e)}),Yl=L.define();class ei{constructor(e,t="nearest",i="nearest",s=5,o=5,r=!1){this.range=e,this.y=t,this.x=i,this.yMargin=s,this.xMargin=o,this.isSnapshot=r}map(e){return e.empty?this:new ei(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new ei(M.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const rn=$.define({map:(n,e)=>n.map(e)}),Kl=$.define();function Te(n,e,t){let i=n.facet(Fl);i.length?i[0](e):window.onerror&&window.onerror(String(e),t,void 0,void 0,e)||(t?console.error(t+":",e):console.error(e))}const ct=L.define({combine:n=>n.length?n[0]:!0});let pd=0;const Yt=L.define({combine(n){return n.filter((e,t)=>{for(let i=0;i<t;i++)if(n[i].plugin==e.plugin)return!1;return!0})}});class re{constructor(e,t,i,s,o){this.id=e,this.create=t,this.domEventHandlers=i,this.domEventObservers=s,this.baseExtensions=o(this),this.extension=this.baseExtensions.concat(Yt.of({plugin:this,arg:void 0}))}of(e){return this.baseExtensions.concat(Yt.of({plugin:this,arg:e}))}static define(e,t){const{eventHandlers:i,eventObservers:s,provide:o,decorations:r}=t||{};return new re(pd++,e,i,s,l=>{let a=[];return r&&a.push(Ri.of(c=>{let h=c.plugin(l);return h?r(h):I.none})),o&&a.push(o(l)),a})}static fromClass(e,t){return re.define((i,s)=>new e(i,s),t)}}class Ps{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}get plugin(){return this.spec&&this.spec.plugin}update(e){if(this.value){if(this.mustUpdate){let t=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(t)}catch(i){if(Te(t.state,i,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.plugin.create(e,this.spec.arg)}catch(t){Te(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(!((t=this.value)===null||t===void 0)&&t.destroy)try{this.value.destroy()}catch(i){Te(e.state,i,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const Xl=L.define(),co=L.define(),Ri=L.define(),Ql=L.define(),ho=L.define(),Jl=L.define();function l2(n,e){let t=n.state.facet(Jl);if(!t.length)return t;let i=t.map(o=>o instanceof Function?o(n):o),s=[];return j.spans(i,e.from,e.to,{point(){},span(o,r,l,a){let c=o-e.from,h=r-e.from,f=s;for(let d=l.length-1;d>=0;d--,a--){let p=l[d].spec.bidiIsolate,g;if(p==null&&(p=dd(e.text,c,h)),a>0&&f.length&&(g=f[f.length-1]).to==c&&g.direction==p)g.to=h,f=g.inner;else{let m={from:c,to:h,direction:p,inner:[]};f.push(m),f=m.inner}}}}),s}const Zl=L.define();function uo(n){let e=0,t=0,i=0,s=0;for(let o of n.state.facet(Zl)){let r=o(n);r&&(r.left!=null&&(e=Math.max(e,r.left)),r.right!=null&&(t=Math.max(t,r.right)),r.top!=null&&(i=Math.max(i,r.top)),r.bottom!=null&&(s=Math.max(s,r.bottom)))}return{left:e,right:t,top:i,bottom:s}}const xi=L.define();class He{constructor(e,t,i,s){this.fromA=e,this.toA=t,this.fromB=i,this.toB=s}join(e){return new He(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,i=this;for(;t>0;t--){let s=e[t-1];if(!(s.fromA>i.toA)){if(s.toA<i.fromA)break;i=i.join(s),e.splice(t-1,1)}}return e.splice(t,0,i),e}static extendWithRanges(e,t){if(t.length==0)return e;let i=[];for(let s=0,o=0,r=0,l=0;;s++){let a=s==e.length?null:e[s],c=r-l,h=a?a.fromB:1e9;for(;o<t.length&&t[o]<h;){let f=t[o],d=t[o+1],p=Math.max(l,f),g=Math.min(h,d);if(p<=g&&new He(p+c,g+c,p,g).addToSet(i),d>h)break;o+=2}if(!a)return i;new He(a.fromA,a.toA,a.fromB,a.toB).addToSet(i),r=a.toA,l=a.toB}}}class Fn{constructor(e,t,i){this.view=e,this.state=t,this.transactions=i,this.flags=0,this.startState=e.state,this.changes=le.empty(this.startState.doc.length);for(let o of i)this.changes=this.changes.compose(o.changes);let s=[];this.changes.iterChangedRanges((o,r,l,a)=>s.push(new He(o,r,l,a))),this.changedRanges=s}static create(e,t,i){return new Fn(e,t,i)}get viewportChanged(){return(this.flags&4)>0}get viewportMoved(){return(this.flags&8)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&18)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}class a2 extends X{get length(){return this.view.state.doc.length}constructor(e){super(),this.view=e,this.decorations=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.editContextFormatting=I.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new se],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new He(0,0,0,e.state.doc.length)],0,null)}update(e){var t;let i=e.changedRanges;this.minWidth>0&&i.length&&(i.every(({fromA:c,toA:h})=>h<this.minWidthFrom||c>this.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(e);let s=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&(!((t=this.domChanged)===null||t===void 0)&&t.newSel?s=this.domChanged.newSel.head:!yd(e.changes,this.hasComposition)&&!e.selectionSet&&(s=e.state.selection.main.head));let o=s>-1?md(this.view,e.changes,s):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:c,to:h}=this.hasComposition;i=new He(c,h,e.changes.mapPos(c,-1),e.changes.mapPos(h,1)).addToSet(i.slice())}this.hasComposition=o?{from:o.range.fromB,to:o.range.toB}:null,(V.ie||V.chrome)&&!o&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let r=this.decorations,l=this.updateDeco(),a=bd(r,l,e.changes);return i=He.extendWithRanges(i,a),!(this.flags&7)&&i.length==0?!1:(this.updateInner(i,e.startState.doc.length,o),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t,i){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,t,i);let{observer:s}=this.view;s.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let r=V.chrome||V.ios?{node:s.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,r),this.flags&=-8,r&&(r.written||s.selectionRange.focusNode!=r.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(r=>r.flags&=-9);let o=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let r of this.children)r instanceof ht&&r.widget instanceof _0&&o.push(r.dom);s.updateGaps(o)}updateChildren(e,t,i){let s=i?i.range.addToSet(e.slice()):e,o=this.childCursor(t);for(let r=s.length-1;;r--){let l=r>=0?s[r]:null;if(!l)break;let{fromA:a,toA:c,fromB:h,toB:f}=l,d,p,g,m;if(i&&i.range.fromB<f&&i.range.toB>h){let _=Mi.build(this.view.state.doc,h,i.range.fromB,this.decorations,this.dynamicDecorationMap),y=Mi.build(this.view.state.doc,i.range.toB,f,this.decorations,this.dynamicDecorationMap);p=_.breakAtStart,g=_.openStart,m=y.openEnd;let S=this.compositionView(i);y.breakAtStart?S.breakAfter=1:y.content.length&&S.merge(S.length,S.length,y.content[0],!1,y.openStart,0)&&(S.breakAfter=y.content[0].breakAfter,y.content.shift()),_.content.length&&S.merge(0,0,_.content[_.content.length-1],!0,0,_.openEnd)&&_.content.pop(),d=_.content.concat(S).concat(y.content)}else({content:d,breakAtStart:p,openStart:g,openEnd:m}=Mi.build(this.view.state.doc,h,f,this.decorations,this.dynamicDecorationMap));let{i:v,off:b}=o.findPos(c,1),{i:x,off:k}=o.findPos(a,-1);Ml(this,x,k,v,b,d,p,g,m)}i&&this.fixCompositionDOM(i)}updateEditContextFormatting(e){this.editContextFormatting=this.editContextFormatting.map(e.changes);for(let t of e.transactions)for(let i of t.effects)i.is(Kl)&&(this.editContextFormatting=i.value)}compositionView(e){let t=new je(e.text.nodeValue);t.flags|=8;for(let{deco:s}of e.marks)t=new ft(s,[t],t.length);let i=new se;return i.append(t,0),i}fixCompositionDOM(e){let t=(o,r)=>{r.flags|=8|(r.children.some(a=>a.flags&7)?1:0),this.markedForComposition.add(r);let l=X.get(o);l&&l!=r&&(l.dom=null),r.setDOM(o)},i=this.childPos(e.range.fromB,1),s=this.children[i.i];t(e.line,s);for(let o=e.marks.length-1;o>=-1;o--)i=s.childPos(i.off,1),s=s.children[i.i],t(o>=0?e.marks[o].node:e.text,s)}updateSelection(e=!1,t=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let i=this.view.root.activeElement,s=i==this.dom,o=!s&&!(this.view.state.facet(ct)||this.dom.tabIndex>-1)&&Dn(this.dom,this.view.observer.selectionRange)&&!(i&&this.dom.contains(i));if(!(s||t||o))return;let r=this.forceSelection;this.forceSelection=!1;let l=this.view.state.selection.main,a=this.moveToLine(this.domAtPos(l.anchor)),c=l.empty?a:this.moveToLine(this.domAtPos(l.head));if(V.gecko&&l.empty&&!this.hasComposition&&gd(a)){let f=document.createTextNode("");this.view.observer.ignore(()=>a.node.insertBefore(f,a.node.childNodes[a.offset]||null)),a=c=new we(f,0),r=!0}let h=this.view.observer.selectionRange;(r||!h.focusNode||(!Oi(a.node,a.offset,h.anchorNode,h.anchorOffset)||!Oi(c.node,c.offset,h.focusNode,h.focusOffset))&&!this.suppressWidgetCursorChange(h,l))&&(this.view.observer.ignore(()=>{V.android&&V.chrome&&this.dom.contains(h.focusNode)&&xd(h.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let f=zi(this.view.root);if(f)if(l.empty){if(V.gecko){let d=vd(a.node,a.offset);if(d&&d!=3){let p=(d==1?Cl:_l)(a.node,a.offset);p&&(a=new we(p.node,p.offset))}}f.collapse(a.node,a.offset),l.bidiLevel!=null&&f.caretBidiLevel!==void 0&&(f.caretBidiLevel=l.bidiLevel)}else if(f.extend){f.collapse(a.node,a.offset);try{f.extend(c.node,c.offset)}catch{}}else{let d=document.createRange();l.anchor>l.head&&([a,c]=[c,a]),d.setEnd(c.node,c.offset),d.setStart(a.node,a.offset),f.removeAllRanges(),f.addRange(d)}o&&this.view.root.activeElement==this.dom&&(this.dom.blur(),i&&i.focus())}),this.view.observer.setSelectionRange(a,c)),this.impreciseAnchor=a.precise?null:new we(h.anchorNode,h.anchorOffset),this.impreciseHead=c.precise?null:new we(h.focusNode,h.focusOffset)}suppressWidgetCursorChange(e,t){return this.hasComposition&&t.empty&&Oi(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==t.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,t=e.state.selection.main,i=zi(e.root),{anchorNode:s,anchorOffset:o}=e.observer.selectionRange;if(!i||!t.empty||!t.assoc||!i.modify)return;let r=se.find(this,t.head);if(!r)return;let l=r.posAtStart;if(t.head==l||t.head==l+r.length)return;let a=this.coordsAt(t.head,-1),c=this.coordsAt(t.head,1);if(!a||!c||a.bottom>c.top)return;let h=this.domAtPos(t.head+t.assoc);i.collapse(h.node,h.offset),i.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let f=e.observer.selectionRange;e.docView.posFromDOM(f.anchorNode,f.anchorOffset)!=t.from&&i.collapse(s,o)}moveToLine(e){let t=this.dom,i;if(e.node!=t)return e;for(let s=e.offset;!i&&s<t.childNodes.length;s++){let o=X.get(t.childNodes[s]);o instanceof se&&(i=o.domAtPos(0))}for(let s=e.offset-1;!i&&s>=0;s--){let o=X.get(t.childNodes[s]);o instanceof se&&(i=o.domAtPos(o.length))}return i?new we(i.node,i.offset,!0):e}nearest(e){for(let t=e;t;){let i=X.get(t);if(i&&i.rootView==this)return i;t=t.parentNode}return null}posFromDOM(e,t){let i=this.nearest(e);if(!i)throw new RangeError("Trying to find position for a DOM position outside of the document");return i.localPosFromDOM(e,t)+i.posAtStart}domAtPos(e){let{i:t,off:i}=this.childCursor().findPos(e,-1);for(;t<this.children.length-1;){let s=this.children[t];if(i<s.length||s instanceof se)break;t++,i=0}return this.children[t].domAtPos(i)}coordsAt(e,t){let i=null,s=0;for(let o=this.length,r=this.children.length-1;r>=0;r--){let l=this.children[r],a=o-l.breakAfter,c=a-l.length;if(a<e)break;if(c<=e&&(c<e||l.covers(-1))&&(a>e||l.covers(1))&&(!i||l instanceof se&&!(i instanceof se&&t>=0)))i=l,s=c;else if(i&&c==e&&a==e&&l instanceof ht&&Math.abs(t)<2){if(l.deco.startSide<0)break;r&&(i=null)}o=c}return i?i.coordsAt(e-s,t):null}coordsForChar(e){let{i:t,off:i}=this.childPos(e,1),s=this.children[t];if(!(s instanceof se))return null;for(;s.children.length;){let{i:l,off:a}=s.childPos(i,1);for(;;l++){if(l==s.children.length)return null;if((s=s.children[l]).length)break}i=a}if(!(s instanceof je))return null;let o=ge(s.text,i);if(o==i)return null;let r=Ht(s.dom,i,o).getClientRects();for(let l=0;l<r.length;l++){let a=r[l];if(l==r.length-1||a.top<a.bottom&&a.left<a.right)return a}return null}measureVisibleLineHeights(e){let t=[],{from:i,to:s}=e,o=this.view.contentDOM.clientWidth,r=o>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,l=-1,a=this.view.textDirection==Z.LTR;for(let c=0,h=0;h<this.children.length;h++){let f=this.children[h],d=c+f.length;if(d>s)break;if(c>=i){let p=f.dom.getBoundingClientRect();if(t.push(p.height),r){let g=f.dom.lastChild,m=g?Li(g):[];if(m.length){let v=m[m.length-1],b=a?v.right-p.left:p.right-v.left;b>l&&(l=b,this.minWidth=o,this.minWidthFrom=c,this.minWidthTo=d)}}}c=d+f.breakAfter}return t}textDirectionAt(e){let{i:t}=this.childPos(e,1);return getComputedStyle(this.children[t].dom).direction=="rtl"?Z.RTL:Z.LTR}measureTextSize(){for(let o of this.children)if(o instanceof se){let r=o.measureTextSize();if(r)return r}let e=document.createElement("div"),t,i,s;return e.className="cm-line",e.style.width="99999px",e.style.position="absolute",e.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(e);let o=Li(e.firstChild)[0];t=e.getBoundingClientRect().height,i=o?o.width/27:7,s=o?o.height:t,e.remove()}),{lineHeight:t,charWidth:i,textHeight:s}}childCursor(e=this.length){let t=this.children.length;return t&&(e-=this.children[--t].length),new Ol(this.children,e,t)}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let i=0,s=0;;s++){let o=s==t.viewports.length?null:t.viewports[s],r=o?o.from-1:this.length;if(r>i){let l=(t.lineBlockAt(r).bottom-t.lineBlockAt(i).top)/this.view.scaleY;e.push(I.replace({widget:new _0(l),block:!0,inclusive:!0,isBlockGap:!0}).range(i,r))}if(!o)break;i=o.to+1}return I.set(e)}updateDeco(){let e=1,t=this.view.state.facet(Ri).map(o=>(this.dynamicDecorationMap[e++]=typeof o=="function")?o(this.view):o),i=!1,s=this.view.state.facet(Ql).map((o,r)=>{let l=typeof o=="function";return l&&(i=!0),l?o(this.view):o});for(s.length&&(this.dynamicDecorationMap[e++]=i,t.push(j.join(s))),this.decorations=[this.editContextFormatting,...t,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];e<this.decorations.length;)this.dynamicDecorationMap[e++]=!1;return this.decorations}scrollIntoView(e){if(e.isSnapshot){let c=this.view.viewState.lineBlockAt(e.range.head);this.view.scrollDOM.scrollTop=c.top-e.yMargin,this.view.scrollDOM.scrollLeft=e.xMargin;return}for(let c of this.view.state.facet(Yl))try{if(c(this.view,e.range,e))return!0}catch(h){Te(this.view.state,h,"scroll handler")}let{range:t}=e,i=this.coordsAt(t.head,t.empty?t.assoc:t.head>t.anchor?-1:1),s;if(!i)return;!t.empty&&(s=this.coordsAt(t.anchor,t.anchor>t.head?-1:1))&&(i={left:Math.min(i.left,s.left),top:Math.min(i.top,s.top),right:Math.max(i.right,s.right),bottom:Math.max(i.bottom,s.bottom)});let o=uo(this.view),r={left:i.left-o.left,top:i.top-o.top,right:i.right+o.right,bottom:i.bottom+o.bottom},{offsetWidth:l,offsetHeight:a}=this.view.scrollDOM;Uf(this.view.scrollDOM,r,t.head<t.anchor?-1:1,e.x,e.y,Math.max(Math.min(e.xMargin,l),-l),Math.max(Math.min(e.yMargin,a),-a),this.view.textDirection==Z.LTR)}}function gd(n){return n.node.nodeType==1&&n.node.firstChild&&(n.offset==0||n.node.childNodes[n.offset-1].contentEditable=="false")&&(n.offset==n.node.childNodes.length||n.node.childNodes[n.offset].contentEditable=="false")}function ea(n,e){let t=n.observer.selectionRange;if(!t.focusNode)return null;let i=Cl(t.focusNode,t.focusOffset),s=_l(t.focusNode,t.focusOffset),o=i||s;if(s&&i&&s.node!=i.node){let l=X.get(s.node);if(!l||l instanceof je&&l.text!=s.node.nodeValue)o=s;else if(n.docView.lastCompositionAfterCursor){let a=X.get(i.node);!a||a instanceof je&&a.text!=i.node.nodeValue||(o=s)}}if(n.docView.lastCompositionAfterCursor=o!=i,!o)return null;let r=e-o.offset;return{from:r,to:r+o.node.nodeValue.length,node:o.node}}function md(n,e,t){let i=ea(n,t);if(!i)return null;let{node:s,from:o,to:r}=i,l=s.nodeValue;if(/[\n\r]/.test(l)||n.state.doc.sliceString(i.from,i.to)!=l)return null;let a=e.invertedDesc,c=new He(a.mapPos(o),a.mapPos(r),o,r),h=[];for(let f=s.parentNode;;f=f.parentNode){let d=X.get(f);if(d instanceof ft)h.push({node:f,deco:d.mark});else{if(d instanceof se||f.nodeName=="DIV"&&f.parentNode==n.contentDOM)return{range:c,text:s,marks:h,line:f};if(f!=n.contentDOM)h.push({node:f,deco:new Yi({inclusive:!0,attributes:nd(f),tagName:f.tagName.toLowerCase()})});else return null}}}function vd(n,e){return n.nodeType!=1?0:(e&&n.childNodes[e-1].contentEditable=="false"?1:0)|(e<n.childNodes.length&&n.childNodes[e].contentEditable=="false"?2:0)}let wd=class{constructor(){this.changes=[]}compareRange(e,t){Tn(e,t,this.changes)}comparePoint(e,t){Tn(e,t,this.changes)}boundChange(e){Tn(e,e,this.changes)}};function bd(n,e,t){let i=new wd;return j.compare(n,e,t,i),i.changes}function xd(n,e){for(let t=n;t&&t!=e;t=t.assignedSlot||t.parentNode)if(t.nodeType==1&&t.contentEditable=="false")return!0;return!1}function yd(n,e){let t=!1;return e&&n.iterChangedRanges((i,s)=>{i<e.to&&s>e.from&&(t=!0)}),t}function kd(n,e,t=1){let i=n.charCategorizer(e),s=n.doc.lineAt(e),o=e-s.from;if(s.length==0)return M.cursor(e);o==0?t=1:o==s.length&&(t=-1);let r=o,l=o;t<0?r=ge(s.text,o,!1):l=ge(s.text,o);let a=i(s.text.slice(r,l));for(;r>0;){let c=ge(s.text,r,!1);if(i(s.text.slice(c,r))!=a)break;r=c}for(;l<s.length;){let c=ge(s.text,l);if(i(s.text.slice(l,c))!=a)break;l=c}return M.range(r+s.from,l+s.from)}function Sd(n,e){return e.left>n?e.left-n:Math.max(0,n-e.right)}function Cd(n,e){return e.top>n?e.top-n:Math.max(0,n-e.bottom)}function Es(n,e){return n.top<e.bottom-1&&n.bottom>e.top+1}function c2(n,e){return e<n.top?{top:e,left:n.left,right:n.right,bottom:n.bottom}:n}function h2(n,e){return e>n.bottom?{top:n.top,left:n.left,right:n.right,bottom:e}:n}function A0(n,e,t){let i,s,o,r,l=!1,a,c,h,f;for(let g=n.firstChild;g;g=g.nextSibling){let m=Li(g);for(let v=0;v<m.length;v++){let b=m[v];s&&Es(s,b)&&(b=c2(h2(b,s.bottom),s.top));let x=Sd(e,b),k=Cd(t,b);if(x==0&&k==0)return g.nodeType==3?u2(g,e,t):A0(g,e,t);(!i||r>k||r==k&&o>x)&&(i=g,s=b,o=x,r=k,l=x?e<b.left?v>0:v<m.length-1:!0),x==0?t>b.bottom&&(!h||h.bottom<b.bottom)?(a=g,h=b):t<b.top&&(!f||f.top>b.top)&&(c=g,f=b):h&&Es(h,b)?h=h2(h,b.bottom):f&&Es(f,b)&&(f=c2(f,b.top))}}if(h&&h.bottom>=t?(i=a,s=h):f&&f.top<=t&&(i=c,s=f),!i)return{node:n,offset:0};let d=Math.max(s.left,Math.min(s.right,e));if(i.nodeType==3)return u2(i,d,t);if(l&&i.contentEditable!="false")return A0(i,d,t);let p=Array.prototype.indexOf.call(n.childNodes,i)+(e>=(s.left+s.right)/2?1:0);return{node:n,offset:p}}function u2(n,e,t){let i=n.nodeValue.length,s=-1,o=1e9,r=0;for(let l=0;l<i;l++){let a=Ht(n,l,l+1).getClientRects();for(let c=0;c<a.length;c++){let h=a[c];if(h.top==h.bottom)continue;r||(r=e-h.left);let f=(h.top>t?h.top-t:t-h.bottom)-1;if(h.left-1<=e&&h.right+1>=e&&f<o){let d=e>=(h.left+h.right)/2,p=d;if((V.chrome||V.gecko)&&Ht(n,l).getBoundingClientRect().left==h.right&&(p=!d),f<=0)return{node:n,offset:l+(p?1:0)};s=l+(p?1:0),o=f}}}return{node:n,offset:s>-1?s:r>0?n.nodeValue.length:0}}function ta(n,e,t,i=-1){var s,o;let r=n.contentDOM.getBoundingClientRect(),l=r.top+n.viewState.paddingTop,a,{docHeight:c}=n.viewState,{x:h,y:f}=e,d=f-l;if(d<0)return 0;if(d>c)return n.state.doc.length;for(let _=n.viewState.heightOracle.textHeight/2,y=!1;a=n.elementAtHeight(d),a.type!=ke.Text;)for(;d=i>0?a.bottom+_:a.top-_,!(d>=0&&d<=c);){if(y)return t?null:0;y=!0,i=-i}f=l+d;let p=a.from;if(p<n.viewport.from)return n.viewport.from==0?0:t?null:f2(n,r,a,h,f);if(p>n.viewport.to)return n.viewport.to==n.state.doc.length?n.state.doc.length:t?null:f2(n,r,a,h,f);let g=n.dom.ownerDocument,m=n.root.elementFromPoint?n.root:g,v=m.elementFromPoint(h,f);v&&!n.contentDOM.contains(v)&&(v=null),v||(h=Math.max(r.left+1,Math.min(r.right-1,h)),v=m.elementFromPoint(h,f),v&&!n.contentDOM.contains(v)&&(v=null));let b,x=-1;if(v&&((s=n.docView.nearest(v))===null||s===void 0?void 0:s.isEditable)!=!1){if(g.caretPositionFromPoint){let _=g.caretPositionFromPoint(h,f);_&&({offsetNode:b,offset:x}=_)}else if(g.caretRangeFromPoint){let _=g.caretRangeFromPoint(h,f);_&&({startContainer:b,startOffset:x}=_,(!n.contentDOM.contains(b)||V.safari&&_d(b,x,h)||V.chrome&&Od(b,x,h))&&(b=void 0))}b&&(x=Math.min(ot(b),x))}if(!b||!n.docView.dom.contains(b)){let _=se.find(n.docView,p);if(!_)return d>a.top+a.height/2?a.to:a.from;({node:b,offset:x}=A0(_.dom,h,f))}let k=n.docView.nearest(b);if(!k)return null;if(k.isWidget&&((o=k.dom)===null||o===void 0?void 0:o.nodeType)==1){let _=k.dom.getBoundingClientRect();return e.y<_.top||e.y<=_.bottom&&e.x<=(_.left+_.right)/2?k.posAtStart:k.posAtEnd}else return k.localPosFromDOM(b,x)+k.posAtStart}function f2(n,e,t,i,s){let o=Math.round((i-e.left)*n.defaultCharacterWidth);if(n.lineWrapping&&t.height>n.defaultLineHeight*1.5){let l=n.viewState.heightOracle.textHeight,a=Math.floor((s-t.top-(n.defaultLineHeight-l)*.5)/l);o+=a*n.viewState.heightOracle.lineLength}let r=n.state.sliceDoc(t.from,t.to);return t.from+m0(r,o,n.state.tabSize)}function _d(n,e,t){let i,s=n;if(n.nodeType!=3||e!=(i=n.nodeValue.length))return!1;for(;;){let o=s.nextSibling;if(o){if(o.nodeName=="BR")break;return!1}else{let r=s.parentNode;if(!r||r.nodeName=="DIV")break;s=r}}return Ht(n,i-1,i).getBoundingClientRect().right>t}function Od(n,e,t){if(e!=0)return!1;for(let s=n;;){let o=s.parentNode;if(!o||o.nodeType!=1||o.firstChild!=s)return!1;if(o.classList.contains("cm-line"))break;s=o}let i=n.nodeType==1?n.getBoundingClientRect():Ht(n,0,Math.max(n.nodeValue.length,1)).getBoundingClientRect();return t-i.left>5}function B0(n,e,t){let i=n.lineBlockAt(e);if(Array.isArray(i.type)){let s;for(let o of i.type){if(o.from>e)break;if(!(o.to<e)){if(o.from<e&&o.to>e)return o;(!s||o.type==ke.Text&&(s.type!=o.type||(t<0?o.from<e:o.to>e)))&&(s=o)}}return s||i}return i}function Md(n,e,t,i){let s=B0(n,e.head,e.assoc||-1),o=!i||s.type!=ke.Text||!(n.lineWrapping||s.widgetLineBreaks)?null:n.coordsAtPos(e.assoc<0&&e.head>s.from?e.head-1:e.head);if(o){let r=n.dom.getBoundingClientRect(),l=n.textDirectionAt(s.from),a=n.posAtCoords({x:t==(l==Z.LTR)?r.right-1:r.left+1,y:(o.top+o.bottom)/2});if(a!=null)return M.cursor(a,t?-1:1)}return M.cursor(t?s.to:s.from,t?-1:1)}function d2(n,e,t,i){let s=n.state.doc.lineAt(e.head),o=n.bidiSpans(s),r=n.textDirectionAt(s.from);for(let l=e,a=null;;){let c=fd(s,o,r,l,t),h=Il;if(!c){if(s.number==(t?n.state.doc.lines:1))return l;h=`
|
|
8
|
+
`,s=n.state.doc.line(s.number+(t?1:-1)),o=n.bidiSpans(s),c=n.visualLineSide(s,!t)}if(a){if(!a(h))return l}else{if(!i)return c;a=i(h)}l=c}}function Dd(n,e,t){let i=n.state.charCategorizer(e),s=i(t);return o=>{let r=i(o);return s==te.Space&&(s=r),s==r}}function Td(n,e,t,i){let s=e.head,o=t?1:-1;if(s==(t?n.state.doc.length:0))return M.cursor(s,e.assoc);let r=e.goalColumn,l,a=n.contentDOM.getBoundingClientRect(),c=n.coordsAtPos(s,e.assoc||-1),h=n.documentTop;if(c)r==null&&(r=c.left-a.left),l=o<0?c.top:c.bottom;else{let p=n.viewState.lineBlockAt(s);r==null&&(r=Math.min(a.right-a.left,n.defaultCharacterWidth*(s-p.from))),l=(o<0?p.top:p.bottom)+h}let f=a.left+r,d=i??n.viewState.heightOracle.textHeight>>1;for(let p=0;;p+=10){let g=l+(d+p)*o,m=ta(n,{x:f,y:g},!1,o);if(g<a.top||g>a.bottom||(o<0?m<s:m>s)){let v=n.docView.coordsForChar(m),b=!v||g<v.top?-1:1;return M.cursor(m,b,void 0,r)}}}function An(n,e,t){for(;;){let i=0;for(let s of n)s.between(e-1,e+1,(o,r,l)=>{if(e>o&&e<r){let a=i||t||(e-o<r-e?-1:1);e=a<0?o:r,i=a}});if(!i)return e}}function Vs(n,e,t){let i=An(n.state.facet(ho).map(s=>s(n)),t.from,e.head>t.from?-1:1);return i==t.from?t:M.cursor(i,i<t.from?1:-1)}const yi="";class Ad{constructor(e,t){this.points=e,this.text="",this.lineSeparator=t.facet(G.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=yi}readRange(e,t){if(!e)return this;let i=e.parentNode;for(let s=e;;){this.findPointBefore(i,s);let o=this.text.length;this.readNode(s);let r=s.nextSibling;if(r==t)break;let l=X.get(s),a=X.get(r);(l&&a?l.breakAfter:(l?l.breakAfter:$n(s))||$n(r)&&(s.nodeName!="BR"||s.cmIgnore)&&this.text.length>o)&&this.lineBreak(),s=r}return this.findPointBefore(i,t),this}readTextNode(e){let t=e.nodeValue;for(let i of this.points)i.node==e&&(i.pos=this.text.length+Math.min(i.offset,t.length));for(let i=0,s=this.lineSeparator?null:/\r\n?|\n/g;;){let o=-1,r=1,l;if(this.lineSeparator?(o=t.indexOf(this.lineSeparator,i),r=this.lineSeparator.length):(l=s.exec(t))&&(o=l.index,r=l[0].length),this.append(t.slice(i,o<0?t.length:o)),o<0)break;if(this.lineBreak(),r>1)for(let a of this.points)a.node==e&&a.pos>this.text.length&&(a.pos-=r-1);i=o+r}}readNode(e){if(e.cmIgnore)return;let t=X.get(e),i=t&&t.overrideDOMText;if(i!=null){this.findPointInside(e,i.length);for(let s=i.iter();!s.next().done;)s.lineBreak?this.lineBreak():this.append(s.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let i of this.points)i.node==e&&e.childNodes[i.offset]==t&&(i.pos=this.text.length)}findPointInside(e,t){for(let i of this.points)(e.nodeType==3?i.node==e:e.contains(i.node))&&(i.pos=this.text.length+(Bd(e,i.node,i.offset)?t:0))}}function Bd(n,e,t){for(;;){if(!e||t<ot(e))return!1;if(e==n)return!0;t=It(e)+1,e=e.parentNode}}class p2{constructor(e,t){this.node=e,this.offset=t,this.pos=-1}}class Pd{constructor(e,t,i,s){this.typeOver=s,this.bounds=null,this.text="",this.domChanged=t>-1;let{impreciseHead:o,impreciseAnchor:r}=e.docView;if(e.state.readOnly&&t>-1)this.newSel=null;else if(t>-1&&(this.bounds=e.docView.domBoundsAround(t,i,0))){let l=o||r?[]:zd(e),a=new Ad(l,e.state);a.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=a.text,this.newSel=Ld(l,this.bounds.from)}else{let l=e.observer.selectionRange,a=o&&o.node==l.focusNode&&o.offset==l.focusOffset||!b0(e.contentDOM,l.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(l.focusNode,l.focusOffset),c=r&&r.node==l.anchorNode&&r.offset==l.anchorOffset||!b0(e.contentDOM,l.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(l.anchorNode,l.anchorOffset),h=e.viewport;if((V.ios||V.chrome)&&e.state.selection.main.empty&&a!=c&&(h.from>0||h.to<e.state.doc.length)){let f=Math.min(a,c),d=Math.max(a,c),p=h.from-f,g=h.to-d;(p==0||p==1||f==0)&&(g==0||g==-1||d==e.state.doc.length)&&(a=0,c=e.state.doc.length)}this.newSel=M.single(c,a)}}}function ia(n,e){let t,{newSel:i}=e,s=n.state.selection.main,o=n.inputState.lastKeyTime>Date.now()-100?n.inputState.lastKeyCode:-1;if(e.bounds){let{from:r,to:l}=e.bounds,a=s.from,c=null;(o===8||V.android&&e.text.length<l-r)&&(a=s.to,c="end");let h=Vd(n.state.doc.sliceString(r,l,yi),e.text,a-r,c);h&&(V.chrome&&o==13&&h.toB==h.from+2&&e.text.slice(h.from,h.toB)==yi+yi&&h.toB--,t={from:r+h.from,to:r+h.toA,insert:q.of(e.text.slice(h.from,h.toB).split(yi))})}else i&&(!n.hasFocus&&n.state.facet(ct)||i.main.eq(s))&&(i=null);if(!t&&!i)return!1;if(!t&&e.typeOver&&!s.empty&&i&&i.main.empty?t={from:s.from,to:s.to,insert:n.state.doc.slice(s.from,s.to)}:(V.mac||V.android)&&t&&t.from==t.to&&t.from==s.head-1&&/^\. ?$/.test(t.insert.toString())&&n.contentDOM.getAttribute("autocorrect")=="off"?(i&&t.insert.length==2&&(i=M.single(i.main.anchor-1,i.main.head-1)),t={from:t.from,to:t.to,insert:q.of([t.insert.toString().replace("."," ")])}):t&&t.from>=s.from&&t.to<=s.to&&(t.from!=s.from||t.to!=s.to)&&s.to-s.from-(t.to-t.from)<=4?t={from:s.from,to:s.to,insert:n.state.doc.slice(s.from,t.from).append(t.insert).append(n.state.doc.slice(t.to,s.to))}:V.chrome&&t&&t.from==t.to&&t.from==s.head&&t.insert.toString()==`
|
|
9
|
+
`&&n.lineWrapping&&(i&&(i=M.single(i.main.anchor-1,i.main.head-1)),t={from:s.from,to:s.to,insert:q.of([" "])}),t)return fo(n,t,i,o);if(i&&!i.main.eq(s)){let r=!1,l="select";return n.inputState.lastSelectionTime>Date.now()-50&&(n.inputState.lastSelectionOrigin=="select"&&(r=!0),l=n.inputState.lastSelectionOrigin),n.dispatch({selection:i,scrollIntoView:r,userEvent:l}),!0}else return!1}function fo(n,e,t,i=-1){if(V.ios&&n.inputState.flushIOSKey(e))return!0;let s=n.state.selection.main;if(V.android&&(e.to==s.to&&(e.from==s.from||e.from==s.from-1&&n.state.sliceDoc(e.from,s.from)==" ")&&e.insert.length==1&&e.insert.lines==2&&Zt(n.contentDOM,"Enter",13)||(e.from==s.from-1&&e.to==s.to&&e.insert.length==0||i==8&&e.insert.length<e.to-e.from&&e.to>s.head)&&Zt(n.contentDOM,"Backspace",8)||e.from==s.from&&e.to==s.to+1&&e.insert.length==0&&Zt(n.contentDOM,"Delete",46)))return!0;let o=e.insert.toString();n.inputState.composing>=0&&n.inputState.composing++;let r,l=()=>r||(r=Ed(n,e,t));return n.state.facet(Gl).some(a=>a(n,e.from,e.to,o,l))||n.dispatch(l()),!0}function Ed(n,e,t){let i,s=n.state,o=s.selection.main;if(e.from>=o.from&&e.to<=o.to&&e.to-e.from>=(o.to-o.from)/3&&(!t||t.main.empty&&t.main.from==e.from+e.insert.length)&&n.inputState.composing<0){let l=o.from<e.from?s.sliceDoc(o.from,e.from):"",a=o.to>e.to?s.sliceDoc(e.to,o.to):"";i=s.replaceSelection(n.state.toText(l+e.insert.sliceString(0,void 0,n.state.lineBreak)+a))}else{let l=s.changes(e),a=t&&t.main.to<=l.newLength?t.main:void 0;if(s.selection.ranges.length>1&&n.inputState.composing>=0&&e.to<=o.to&&e.to>=o.to-10){let c=n.state.sliceDoc(e.from,e.to),h,f=t&&ea(n,t.main.head);if(f){let g=e.insert.length-(e.to-e.from);h={from:f.from,to:f.to-g}}else h=n.state.doc.lineAt(o.head);let d=o.to-e.to,p=o.to-o.from;i=s.changeByRange(g=>{if(g.from==o.from&&g.to==o.to)return{changes:l,range:a||g.map(l)};let m=g.to-d,v=m-c.length;if(g.to-g.from!=p||n.state.sliceDoc(v,m)!=c||g.to>=h.from&&g.from<=h.to)return{range:g};let b=s.changes({from:v,to:m,insert:e.insert}),x=g.to-o.to;return{changes:b,range:a?M.range(Math.max(0,a.anchor+x),Math.max(0,a.head+x)):g.map(b)}})}else i={changes:l,selection:a&&s.selection.replaceRange(a)}}let r="input.type";return(n.composing||n.inputState.compositionPendingChange&&n.inputState.compositionEndedAt>Date.now()-50)&&(n.inputState.compositionPendingChange=!1,r+=".compose",n.inputState.compositionFirstChange&&(r+=".start",n.inputState.compositionFirstChange=!1)),s.update(i,{userEvent:r,scrollIntoView:!0})}function Vd(n,e,t,i){let s=Math.min(n.length,e.length),o=0;for(;o<s&&n.charCodeAt(o)==e.charCodeAt(o);)o++;if(o==s&&n.length==e.length)return null;let r=n.length,l=e.length;for(;r>0&&l>0&&n.charCodeAt(r-1)==e.charCodeAt(l-1);)r--,l--;if(i=="end"){let a=Math.max(0,o-Math.min(r,l));t-=r+a-o}if(r<o&&n.length<e.length){let a=t<=o&&t>=r?o-t:0;o-=a,l=o+(l-r),r=o}else if(l<o){let a=t<=o&&t>=l?o-t:0;o-=a,r=o+(r-l),l=o}return{from:o,toA:r,toB:l}}function zd(n){let e=[];if(n.root.activeElement!=n.contentDOM)return e;let{anchorNode:t,anchorOffset:i,focusNode:s,focusOffset:o}=n.observer.selectionRange;return t&&(e.push(new p2(t,i)),(s!=t||o!=i)&&e.push(new p2(s,o))),e}function Ld(n,e){if(n.length==0)return null;let t=n[0].pos,i=n.length==2?n[1].pos:t;return t>-1&&i>-1?M.single(t+e,i+e):null}class Rd{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,V.safari&&e.contentDOM.addEventListener("input",()=>null),V.gecko&&Zd(e.contentDOM.ownerDocument)}handleEvent(e){!jd(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||(this.view.updateState!=0?Promise.resolve().then(()=>this.runHandlers(e.type,e)):this.runHandlers(e.type,e))}runHandlers(e,t){let i=this.handlers[e];if(i){for(let s of i.observers)s(this.view,t);for(let s of i.handlers){if(t.defaultPrevented)break;if(s(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=Nd(e),i=this.handlers,s=this.view.contentDOM;for(let o in t)if(o!="scroll"){let r=!t[o].handlers.length,l=i[o];l&&r!=!l.handlers.length&&(s.removeEventListener(o,this.handleEvent),l=null),l||s.addEventListener(o,this.handleEvent,{passive:r})}for(let o in i)o!="scroll"&&!t[o]&&s.removeEventListener(o,this.handleEvent);this.handlers=t}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&e.keyCode!=27&&sa.indexOf(e.keyCode)<0&&(this.tabFocusMode=-1),V.android&&V.chrome&&!e.synthetic&&(e.keyCode==13||e.keyCode==8))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;let t;return V.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&((t=na.find(i=>i.keyCode==e.keyCode))&&!e.ctrlKey||Id.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(this.pendingIOSKey=t||e,setTimeout(()=>this.flushIOSKey(),250),!0):(e.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(e){let t=this.pendingIOSKey;return!t||t.key=="Enter"&&e&&e.from<e.to&&/^\S+$/.test(e.insert.toString())?!1:(this.pendingIOSKey=void 0,Zt(this.view.contentDOM,t.key,t.keyCode,t instanceof KeyboardEvent?t:void 0))}ignoreDuringComposition(e){return/^key/.test(e.type)?this.composing>0?!0:V.safari&&!V.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.view.observer.update(e),this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function g2(n,e){return(t,i)=>{try{return e.call(n,i,t)}catch(s){Te(t.state,s)}}}function Nd(n){let e=Object.create(null);function t(i){return e[i]||(e[i]={observers:[],handlers:[]})}for(let i of n){let s=i.spec,o=s&&s.plugin.domEventHandlers,r=s&&s.plugin.domEventObservers;if(o)for(let l in o){let a=o[l];a&&t(l).handlers.push(g2(i.value,a))}if(r)for(let l in r){let a=r[l];a&&t(l).observers.push(g2(i.value,a))}}for(let i in qe)t(i).handlers.push(qe[i]);for(let i in We)t(i).observers.push(We[i]);return e}const na=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],Id="dthko",sa=[16,17,18,20,91,92,224,225],ln=6;function an(n){return Math.max(0,n)*.7+8}function Hd(n,e){return Math.max(Math.abs(n.clientX-e.clientX),Math.abs(n.clientY-e.clientY))}class $d{constructor(e,t,i,s){this.view=e,this.startEvent=t,this.style=i,this.mustSelect=s,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParents=Yf(e.contentDOM),this.atoms=e.state.facet(ho).map(r=>r(e));let o=e.contentDOM.ownerDocument;o.addEventListener("mousemove",this.move=this.move.bind(this)),o.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(G.allowMultipleSelections)&&Wd(e,t),this.dragging=Gd(e,t)&&la(t)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&Hd(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let t=0,i=0,s=0,o=0,r=this.view.win.innerWidth,l=this.view.win.innerHeight;this.scrollParents.x&&({left:s,right:r}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:o,bottom:l}=this.scrollParents.y.getBoundingClientRect());let a=uo(this.view);e.clientX-a.left<=s+ln?t=-an(s-e.clientX):e.clientX+a.right>=r-ln&&(t=an(e.clientX-r)),e.clientY-a.top<=o+ln?i=-an(o-e.clientY):e.clientY+a.bottom>=l-ln&&(i=an(e.clientY-l)),this.setScrollSpeed(t,i)}up(e){this.dragging==null&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){let{x:e,y:t}=this.scrollSpeed;e&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=e,e=0),t&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=t,t=0),(e||t)&&this.view.win.scrollBy(e,t),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(e){let t=null;for(let i=0;i<e.ranges.length;i++){let s=e.ranges[i],o=null;if(s.empty){let r=An(this.atoms,s.from,0);r!=s.from&&(o=M.cursor(r,-1))}else{let r=An(this.atoms,s.from,-1),l=An(this.atoms,s.to,1);(r!=s.from||l!=s.to)&&(o=M.range(s.from==s.anchor?r:l,s.from==s.head?r:l))}o&&(t||(t=e.ranges.slice()),t[i]=o)}return t?M.create(t,e.mainIndex):e}select(e){let{view:t}=this,i=this.skipAtoms(this.style.get(e,this.extend,this.multiple));(this.mustSelect||!i.eq(t.state.selection,this.dragging===!1))&&this.view.dispatch({selection:i,userEvent:"select.pointer"}),this.mustSelect=!1}update(e){e.transactions.some(t=>t.isUserEvent("input.type"))?this.destroy():this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}}function Wd(n,e){let t=n.state.facet(Hl);return t.length?t[0](e):V.mac?e.metaKey:e.ctrlKey}function Fd(n,e){let t=n.state.facet($l);return t.length?t[0](e):V.mac?!e.altKey:!e.ctrlKey}function Gd(n,e){let{main:t}=n.state.selection;if(t.empty)return!1;let i=zi(n.root);if(!i||i.rangeCount==0)return!0;let s=i.getRangeAt(0).getClientRects();for(let o=0;o<s.length;o++){let r=s[o];if(r.left<=e.clientX&&r.right>=e.clientX&&r.top<=e.clientY&&r.bottom>=e.clientY)return!0}return!1}function jd(n,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let t=e.target,i;t!=n.contentDOM;t=t.parentNode)if(!t||t.nodeType==11||(i=X.get(t))&&i.ignoreEvent(e))return!1;return!0}const qe=Object.create(null),We=Object.create(null),oa=V.ie&&V.ie_version<15||V.ios&&V.webkit_version<604;function qd(n){let e=n.dom.parentNode;if(!e)return;let t=e.appendChild(document.createElement("textarea"));t.style.cssText="position: fixed; left: -10000px; top: 10px",t.focus(),setTimeout(()=>{n.focus(),t.remove(),ra(n,t.value)},50)}function vs(n,e,t){for(let i of n.facet(e))t=i(t,n);return t}function ra(n,e){e=vs(n.state,lo,e);let{state:t}=n,i,s=1,o=t.toText(e),r=o.lines==t.selection.ranges.length;if(P0!=null&&t.selection.ranges.every(a=>a.empty)&&P0==o.toString()){let a=-1;i=t.changeByRange(c=>{let h=t.doc.lineAt(c.from);if(h.from==a)return{range:c};a=h.from;let f=t.toText((r?o.line(s++).text:e)+t.lineBreak);return{changes:{from:h.from,insert:f},range:M.cursor(c.from+f.length)}})}else r?i=t.changeByRange(a=>{let c=o.line(s++);return{changes:{from:a.from,to:a.to,insert:c.text},range:M.cursor(a.from+c.length)}}):i=t.replaceSelection(o);n.dispatch(i,{userEvent:"input.paste",scrollIntoView:!0})}We.scroll=n=>{n.inputState.lastScrollTop=n.scrollDOM.scrollTop,n.inputState.lastScrollLeft=n.scrollDOM.scrollLeft};qe.keydown=(n,e)=>(n.inputState.setSelectionOrigin("select"),e.keyCode==27&&n.inputState.tabFocusMode!=0&&(n.inputState.tabFocusMode=Date.now()+2e3),!1);We.touchstart=(n,e)=>{n.inputState.lastTouchTime=Date.now(),n.inputState.setSelectionOrigin("select.pointer")};We.touchmove=n=>{n.inputState.setSelectionOrigin("select.pointer")};qe.mousedown=(n,e)=>{if(n.observer.flush(),n.inputState.lastTouchTime>Date.now()-2e3)return!1;let t=null;for(let i of n.state.facet(Wl))if(t=i(n,e),t)break;if(!t&&e.button==0&&(t=Kd(n,e)),t){let i=!n.hasFocus;n.inputState.startMouseSelection(new $d(n,e,t,i)),i&&n.observer.ignore(()=>{yl(n.contentDOM);let o=n.root.activeElement;o&&!o.contains(n.contentDOM)&&o.blur()});let s=n.inputState.mouseSelection;if(s)return s.start(e),s.dragging===!1}return!1};function m2(n,e,t,i){if(i==1)return M.cursor(e,t);if(i==2)return kd(n.state,e,t);{let s=se.find(n.docView,e),o=n.state.doc.lineAt(s?s.posAtEnd:e),r=s?s.posAtStart:o.from,l=s?s.posAtEnd:o.to;return l<n.state.doc.length&&l==o.to&&l++,M.range(r,l)}}let v2=(n,e,t)=>e>=t.top&&e<=t.bottom&&n>=t.left&&n<=t.right;function Ud(n,e,t,i){let s=se.find(n.docView,e);if(!s)return 1;let o=e-s.posAtStart;if(o==0)return 1;if(o==s.length)return-1;let r=s.coordsAt(o,-1);if(r&&v2(t,i,r))return-1;let l=s.coordsAt(o,1);return l&&v2(t,i,l)?1:r&&r.bottom>=i?-1:1}function w2(n,e){let t=n.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:t,bias:Ud(n,t,e.clientX,e.clientY)}}const Yd=V.ie&&V.ie_version<=11;let b2=null,x2=0,y2=0;function la(n){if(!Yd)return n.detail;let e=b2,t=y2;return b2=n,y2=Date.now(),x2=!e||t>Date.now()-400&&Math.abs(e.clientX-n.clientX)<2&&Math.abs(e.clientY-n.clientY)<2?(x2+1)%3:1}function Kd(n,e){let t=w2(n,e),i=la(e),s=n.state.selection;return{update(o){o.docChanged&&(t.pos=o.changes.mapPos(t.pos),s=s.map(o.changes))},get(o,r,l){let a=w2(n,o),c,h=m2(n,a.pos,a.bias,i);if(t.pos!=a.pos&&!r){let f=m2(n,t.pos,t.bias,i),d=Math.min(f.from,h.from),p=Math.max(f.to,h.to);h=d<h.from?M.range(d,p):M.range(p,d)}return r?s.replaceRange(s.main.extend(h.from,h.to)):l&&i==1&&s.ranges.length>1&&(c=Xd(s,a.pos))?c:l?s.addRange(h):M.create([h])}}}function Xd(n,e){for(let t=0;t<n.ranges.length;t++){let{from:i,to:s}=n.ranges[t];if(i<=e&&s>=e)return M.create(n.ranges.slice(0,t).concat(n.ranges.slice(t+1)),n.mainIndex==t?0:n.mainIndex-(n.mainIndex>t?1:0))}return null}qe.dragstart=(n,e)=>{let{selection:{main:t}}=n.state;if(e.target.draggable){let s=n.docView.nearest(e.target);if(s&&s.isWidget){let o=s.posAtStart,r=o+s.length;(o>=t.to||r<=t.from)&&(t=M.range(o,r))}}let{inputState:i}=n;return i.mouseSelection&&(i.mouseSelection.dragging=!0),i.draggedContent=t,e.dataTransfer&&(e.dataTransfer.setData("Text",vs(n.state,ao,n.state.sliceDoc(t.from,t.to))),e.dataTransfer.effectAllowed="copyMove"),!1};qe.dragend=n=>(n.inputState.draggedContent=null,!1);function k2(n,e,t,i){if(t=vs(n.state,lo,t),!t)return;let s=n.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:o}=n.inputState,r=i&&o&&Fd(n,e)?{from:o.from,to:o.to}:null,l={from:s,insert:t},a=n.state.changes(r?[r,l]:l);n.focus(),n.dispatch({changes:a,selection:{anchor:a.mapPos(s,-1),head:a.mapPos(s,1)},userEvent:r?"move.drop":"input.drop"}),n.inputState.draggedContent=null}qe.drop=(n,e)=>{if(!e.dataTransfer)return!1;if(n.state.readOnly)return!0;let t=e.dataTransfer.files;if(t&&t.length){let i=Array(t.length),s=0,o=()=>{++s==t.length&&k2(n,e,i.filter(r=>r!=null).join(n.state.lineBreak),!1)};for(let r=0;r<t.length;r++){let l=new FileReader;l.onerror=o,l.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(l.result)||(i[r]=l.result),o()},l.readAsText(t[r])}return!0}else{let i=e.dataTransfer.getData("Text");if(i)return k2(n,e,i,!0),!0}return!1};qe.paste=(n,e)=>{if(n.state.readOnly)return!0;n.observer.flush();let t=oa?null:e.clipboardData;return t?(ra(n,t.getData("text/plain")||t.getData("text/uri-list")),!0):(qd(n),!1)};function Qd(n,e){let t=n.dom.parentNode;if(!t)return;let i=t.appendChild(document.createElement("textarea"));i.style.cssText="position: fixed; left: -10000px; top: 10px",i.value=e,i.focus(),i.selectionEnd=e.length,i.selectionStart=0,setTimeout(()=>{i.remove(),n.focus()},50)}function Jd(n){let e=[],t=[],i=!1;for(let s of n.selection.ranges)s.empty||(e.push(n.sliceDoc(s.from,s.to)),t.push(s));if(!e.length){let s=-1;for(let{from:o}of n.selection.ranges){let r=n.doc.lineAt(o);r.number>s&&(e.push(r.text),t.push({from:r.from,to:Math.min(n.doc.length,r.to+1)})),s=r.number}i=!0}return{text:vs(n,ao,e.join(n.lineBreak)),ranges:t,linewise:i}}let P0=null;qe.copy=qe.cut=(n,e)=>{let{text:t,ranges:i,linewise:s}=Jd(n.state);if(!t&&!s)return!1;P0=s?t:null,e.type=="cut"&&!n.state.readOnly&&n.dispatch({changes:i,scrollIntoView:!0,userEvent:"delete.cut"});let o=oa?null:e.clipboardData;return o?(o.clearData(),o.setData("text/plain",t),!0):(Qd(n,t),!1)};const aa=pt.define();function ca(n,e){let t=[];for(let i of n.facet(jl)){let s=i(n,e);s&&t.push(s)}return t.length?n.update({effects:t,annotations:aa.of(!0)}):null}function ha(n){setTimeout(()=>{let e=n.hasFocus;if(e!=n.inputState.notifiedFocused){let t=ca(n.state,e);t?n.dispatch(t):n.update([])}},10)}We.focus=n=>{n.inputState.lastFocusTime=Date.now(),!n.scrollDOM.scrollTop&&(n.inputState.lastScrollTop||n.inputState.lastScrollLeft)&&(n.scrollDOM.scrollTop=n.inputState.lastScrollTop,n.scrollDOM.scrollLeft=n.inputState.lastScrollLeft),ha(n)};We.blur=n=>{n.observer.clearSelectionRange(),ha(n)};We.compositionstart=We.compositionupdate=n=>{n.observer.editContext||(n.inputState.compositionFirstChange==null&&(n.inputState.compositionFirstChange=!0),n.inputState.composing<0&&(n.inputState.composing=0))};We.compositionend=n=>{n.observer.editContext||(n.inputState.composing=-1,n.inputState.compositionEndedAt=Date.now(),n.inputState.compositionPendingKey=!0,n.inputState.compositionPendingChange=n.observer.pendingRecords().length>0,n.inputState.compositionFirstChange=null,V.chrome&&V.android?n.observer.flushSoon():n.inputState.compositionPendingChange?Promise.resolve().then(()=>n.observer.flush()):setTimeout(()=>{n.inputState.composing<0&&n.docView.hasComposition&&n.update([])},50))};We.contextmenu=n=>{n.inputState.lastContextMenu=Date.now()};qe.beforeinput=(n,e)=>{var t,i;if(e.inputType=="insertReplacementText"&&n.observer.editContext){let o=(t=e.dataTransfer)===null||t===void 0?void 0:t.getData("text/plain"),r=e.getTargetRanges();if(o&&r.length){let l=r[0],a=n.posAtDOM(l.startContainer,l.startOffset),c=n.posAtDOM(l.endContainer,l.endOffset);return fo(n,{from:a,to:c,insert:n.state.toText(o)},null),!0}}let s;if(V.chrome&&V.android&&(s=na.find(o=>o.inputType==e.inputType))&&(n.observer.delayAndroidKey(s.key,s.keyCode),s.key=="Backspace"||s.key=="Delete")){let o=((i=window.visualViewport)===null||i===void 0?void 0:i.height)||0;setTimeout(()=>{var r;(((r=window.visualViewport)===null||r===void 0?void 0:r.height)||0)>o+10&&n.hasFocus&&(n.contentDOM.blur(),n.focus())},100)}return V.ios&&e.inputType=="deleteContentForward"&&n.observer.flushSoon(),V.safari&&e.inputType=="insertText"&&n.inputState.composing>=0&&setTimeout(()=>We.compositionend(n,e),20),!1};const S2=new Set;function Zd(n){S2.has(n)||(S2.add(n),n.addEventListener("copy",()=>{}),n.addEventListener("cut",()=>{}))}const C2=["pre-wrap","normal","pre-line","break-spaces"];let li=!1;function _2(){li=!1}class e6{constructor(e){this.lineWrapping=e,this.doc=q.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30}heightForGap(e,t){let i=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(i+=Math.max(0,Math.ceil((t-e-i*this.lineLength*.5)/this.lineLength))),this.lineHeight*i}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/Math.max(1,this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return C2.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let i=0;i<e.length;i++){let s=e[i];s<0?i++:this.heightSamples[Math.floor(s*10)]||(t=!0,this.heightSamples[Math.floor(s*10)]=!0)}return t}refresh(e,t,i,s,o,r){let l=C2.indexOf(e)>-1,a=Math.round(t)!=Math.round(this.lineHeight)||this.lineWrapping!=l;if(this.lineWrapping=l,this.lineHeight=t,this.charWidth=i,this.textHeight=s,this.lineLength=o,a){this.heightSamples={};for(let c=0;c<r.length;c++){let h=r[c];h<0?c++:this.heightSamples[Math.floor(h*10)]=!0}}return a}}class t6{constructor(e,t){this.from=e,this.heights=t,this.index=0}get more(){return this.index<this.heights.length}}class tt{constructor(e,t,i,s,o){this.from=e,this.length=t,this.top=i,this.height=s,this._content=o}get type(){return typeof this._content=="number"?ke.Text:Array.isArray(this._content)?this._content:this._content.type}get to(){return this.from+this.length}get bottom(){return this.top+this.height}get widget(){return this._content instanceof _t?this._content.widget:null}get widgetLineBreaks(){return typeof this._content=="number"?this._content:0}join(e){let t=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(e._content)?e._content:[e]);return new tt(this.from,this.length+e.length,this.top,this.height+e.height,t)}}var J=function(n){return n[n.ByPos=0]="ByPos",n[n.ByHeight=1]="ByHeight",n[n.ByPosNoHeight=2]="ByPosNoHeight",n}(J||(J={}));const Bn=.001;class Se{constructor(e,t,i=2){this.length=e,this.height=t,this.flags=i}get outdated(){return(this.flags&2)>0}set outdated(e){this.flags=(e?2:0)|this.flags&-3}setHeight(e){this.height!=e&&(Math.abs(this.height-e)>Bn&&(li=!0),this.height=e)}replace(e,t,i){return Se.of(i)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,i,s){let o=this,r=i.doc;for(let l=s.length-1;l>=0;l--){let{fromA:a,toA:c,fromB:h,toB:f}=s[l],d=o.lineAt(a,J.ByPosNoHeight,i.setDoc(t),0,0),p=d.to>=c?d:o.lineAt(c,J.ByPosNoHeight,i,0,0);for(f+=p.to-c,c=p.to;l>0&&d.from<=s[l-1].toA;)a=s[l-1].fromA,h=s[l-1].fromB,l--,a<d.from&&(d=o.lineAt(a,J.ByPosNoHeight,i,0,0));h+=d.from-a,a=d.from;let g=po.build(i.setDoc(r),e,h,f);o=Gn(o,o.replace(a,c,g))}return o.updateHeight(i,0)}static empty(){return new ze(0,0)}static of(e){if(e.length==1)return e[0];let t=0,i=e.length,s=0,o=0;for(;;)if(t==i)if(s>o*2){let l=e[t-1];l.break?e.splice(--t,1,l.left,null,l.right):e.splice(--t,1,l.left,l.right),i+=1+l.break,s-=l.size}else if(o>s*2){let l=e[i];l.break?e.splice(i,1,l.left,null,l.right):e.splice(i,1,l.left,l.right),i+=2+l.break,o-=l.size}else break;else if(s<o){let l=e[t++];l&&(s+=l.size)}else{let l=e[--i];l&&(o+=l.size)}let r=0;return e[t-1]==null?(r=1,t--):e[t]==null&&(r=1,i++),new i6(Se.of(e.slice(0,t)),r,Se.of(e.slice(i)))}}function Gn(n,e){return n==e?n:(n.constructor!=e.constructor&&(li=!0),e)}Se.prototype.size=1;class ua extends Se{constructor(e,t,i){super(e,t),this.deco=i}blockAt(e,t,i,s){return new tt(s,this.length,i,this.height,this.deco||0)}lineAt(e,t,i,s,o){return this.blockAt(0,i,s,o)}forEachLine(e,t,i,s,o,r){e<=o+this.length&&t>=o&&r(this.blockAt(0,i,s,o))}updateHeight(e,t=0,i=!1,s){return s&&s.from<=t&&s.more&&this.setHeight(s.heights[s.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class ze extends ua{constructor(e,t){super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,t,i,s){return new tt(s,this.length,i,this.height,this.breaks)}replace(e,t,i){let s=i[0];return i.length==1&&(s instanceof ze||s instanceof de&&s.flags&4)&&Math.abs(this.length-s.length)<10?(s instanceof de?s=new ze(s.length,this.height):s.height=this.height,this.outdated||(s.outdated=!1),s):Se.of(i)}updateHeight(e,t=0,i=!1,s){return s&&s.from<=t&&s.more?this.setHeight(s.heights[s.index++]):(i||this.outdated)&&this.setHeight(Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class de extends Se{constructor(e){super(e,0)}heightMetrics(e,t){let i=e.doc.lineAt(t).number,s=e.doc.lineAt(t+this.length).number,o=s-i+1,r,l=0;if(e.lineWrapping){let a=Math.min(this.height,e.lineHeight*o);r=a/o,this.length>o+1&&(l=(this.height-a)/(this.length-o-1))}else r=this.height/o;return{firstLine:i,lastLine:s,perLine:r,perChar:l}}blockAt(e,t,i,s){let{firstLine:o,lastLine:r,perLine:l,perChar:a}=this.heightMetrics(t,s);if(t.lineWrapping){let c=s+(e<t.lineHeight?0:Math.round(Math.max(0,Math.min(1,(e-i)/this.height))*this.length)),h=t.doc.lineAt(c),f=l+h.length*a,d=Math.max(i,e-f/2);return new tt(h.from,h.length,d,f,0)}else{let c=Math.max(0,Math.min(r-o,Math.floor((e-i)/l))),{from:h,length:f}=t.doc.line(o+c);return new tt(h,f,i+l*c,l,0)}}lineAt(e,t,i,s,o){if(t==J.ByHeight)return this.blockAt(e,i,s,o);if(t==J.ByPosNoHeight){let{from:p,to:g}=i.doc.lineAt(e);return new tt(p,g-p,0,0,0)}let{firstLine:r,perLine:l,perChar:a}=this.heightMetrics(i,o),c=i.doc.lineAt(e),h=l+c.length*a,f=c.number-r,d=s+l*f+a*(c.from-o-f);return new tt(c.from,c.length,Math.max(s,Math.min(d,s+this.height-h)),h,0)}forEachLine(e,t,i,s,o,r){e=Math.max(e,o),t=Math.min(t,o+this.length);let{firstLine:l,perLine:a,perChar:c}=this.heightMetrics(i,o);for(let h=e,f=s;h<=t;){let d=i.doc.lineAt(h);if(h==e){let g=d.number-l;f+=a*g+c*(e-o-g)}let p=a+c*d.length;r(new tt(d.from,d.length,f,p,0)),f+=p,h=d.to+1}}replace(e,t,i){let s=this.length-t;if(s>0){let o=i[i.length-1];o instanceof de?i[i.length-1]=new de(o.length+s):i.push(null,new de(s-1))}if(e>0){let o=i[0];o instanceof de?i[0]=new de(e+o.length):i.unshift(new de(e-1),null)}return Se.of(i)}decomposeLeft(e,t){t.push(new de(e-1),null)}decomposeRight(e,t){t.push(null,new de(this.length-e-1))}updateHeight(e,t=0,i=!1,s){let o=t+this.length;if(s&&s.from<=t+this.length&&s.more){let r=[],l=Math.max(t,s.from),a=-1;for(s.from>t&&r.push(new de(s.from-t-1).updateHeight(e,t));l<=o&&s.more;){let h=e.doc.lineAt(l).length;r.length&&r.push(null);let f=s.heights[s.index++];a==-1?a=f:Math.abs(f-a)>=Bn&&(a=-2);let d=new ze(h,f);d.outdated=!1,r.push(d),l+=h+1}l<=o&&r.push(null,new de(o-l).updateHeight(e,l));let c=Se.of(r);return(a<0||Math.abs(c.height-this.height)>=Bn||Math.abs(a-this.heightMetrics(e,t).perLine)>=Bn)&&(li=!0),Gn(this,c)}else(i||this.outdated)&&(this.setHeight(e.heightForGap(t,t+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class i6 extends Se{constructor(e,t,i){super(e.length+t+i.length,e.height+i.height,t|(e.outdated||i.outdated?2:0)),this.left=e,this.right=i,this.size=e.size+i.size}get break(){return this.flags&1}blockAt(e,t,i,s){let o=i+this.left.height;return e<o?this.left.blockAt(e,t,i,s):this.right.blockAt(e,t,o,s+this.left.length+this.break)}lineAt(e,t,i,s,o){let r=s+this.left.height,l=o+this.left.length+this.break,a=t==J.ByHeight?e<r:e<l,c=a?this.left.lineAt(e,t,i,s,o):this.right.lineAt(e,t,i,r,l);if(this.break||(a?c.to<l:c.from>l))return c;let h=t==J.ByPosNoHeight?J.ByPosNoHeight:J.ByPos;return a?c.join(this.right.lineAt(l,h,i,r,l)):this.left.lineAt(l,h,i,s,o).join(c)}forEachLine(e,t,i,s,o,r){let l=s+this.left.height,a=o+this.left.length+this.break;if(this.break)e<a&&this.left.forEachLine(e,t,i,s,o,r),t>=a&&this.right.forEachLine(e,t,i,l,a,r);else{let c=this.lineAt(a,J.ByPos,i,s,o);e<c.from&&this.left.forEachLine(e,c.from-1,i,s,o,r),c.to>=e&&c.from<=t&&r(c),t>c.to&&this.right.forEachLine(c.to+1,t,i,l,a,r)}}replace(e,t,i){let s=this.left.length+this.break;if(t<s)return this.balanced(this.left.replace(e,t,i),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-s,t-s,i));let o=[];e>0&&this.decomposeLeft(e,o);let r=o.length;for(let l of i)o.push(l);if(e>0&&O2(o,r-1),t<this.length){let l=o.length;this.decomposeRight(t,o),O2(o,l)}return Se.of(o)}decomposeLeft(e,t){let i=this.left.length;if(e<=i)return this.left.decomposeLeft(e,t);t.push(this.left),this.break&&(i++,e>=i&&t.push(null)),e>i&&this.right.decomposeLeft(e-i,t)}decomposeRight(e,t){let i=this.left.length,s=i+this.break;if(e>=s)return this.right.decomposeRight(e-s,t);e<i&&this.left.decomposeRight(e,t),this.break&&e<s&&t.push(null),t.push(this.right)}balanced(e,t){return e.size>2*t.size||t.size>2*e.size?Se.of(this.break?[e,null,t]:[e,t]):(this.left=Gn(this.left,e),this.right=Gn(this.right,t),this.setHeight(e.height+t.height),this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,i=!1,s){let{left:o,right:r}=this,l=t+o.length+this.break,a=null;return s&&s.from<=t+o.length&&s.more?a=o=o.updateHeight(e,t,i,s):o.updateHeight(e,t,i),s&&s.from<=l+r.length&&s.more?a=r=r.updateHeight(e,l,i,s):r.updateHeight(e,l,i),a?this.balanced(o,r):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function O2(n,e){let t,i;n[e]==null&&(t=n[e-1])instanceof de&&(i=n[e+1])instanceof de&&n.splice(e-1,3,new de(t.length+1+i.length))}const n6=5;class po{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let i=Math.min(t,this.lineEnd),s=this.nodes[this.nodes.length-1];s instanceof ze?s.length+=i-this.pos:(i>this.pos||!this.isCovered)&&this.nodes.push(new ze(i-this.pos,-1)),this.writtenTo=i,t>i&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,i){if(e<t||i.heightRelevant){let s=i.widget?i.widget.estimatedHeight:0,o=i.widget?i.widget.lineBreaks:0;s<0&&(s=this.oracle.lineHeight);let r=t-e;i.block?this.addBlock(new ua(r,s,i)):(r||o||s>=n6)&&this.addLineDeco(s,o,r)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenTo<e&&((this.writtenTo<e-1||this.nodes[this.nodes.length-1]==null)&&this.nodes.push(this.blankContent(this.writtenTo,e-1)),this.nodes.push(null)),this.pos>e&&this.nodes.push(new ze(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,t){let i=new de(t-e);return this.oracle.doc.lineAt(e).to==t&&(i.flags|=4),i}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof ze)return e;let t=new ze(0,-1);return this.nodes.push(t),t}addBlock(e){this.enterLine();let t=e.deco;t&&t.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,t&&t.endSide>0&&(this.covering=e)}addLineDeco(e,t,i){let s=this.ensureLine();s.length+=i,s.collapsed+=i,s.widgetHeight=Math.max(s.widgetHeight,e),s.breaks+=t,this.writtenTo=this.pos=this.pos+i}finish(e){let t=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(t instanceof ze)&&!this.isCovered?this.nodes.push(new ze(0,-1)):(this.writtenTo<this.pos||t==null)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos));let i=e;for(let s of this.nodes)s instanceof ze&&s.updateHeight(this.oracle,i),i+=s?s.length:1;return this.nodes}static build(e,t,i,s){let o=new po(i,e);return j.spans(t,i,s,o,0),o.finish(i)}}function s6(n,e,t){let i=new o6;return j.compare(n,e,t,i,0),i.changes}class o6{constructor(){this.changes=[]}compareRange(){}comparePoint(e,t,i,s){(e<t||i&&i.heightRelevant||s&&s.heightRelevant)&&Tn(e,t,this.changes,5)}}function r6(n,e){let t=n.getBoundingClientRect(),i=n.ownerDocument,s=i.defaultView||window,o=Math.max(0,t.left),r=Math.min(s.innerWidth,t.right),l=Math.max(0,t.top),a=Math.min(s.innerHeight,t.bottom);for(let c=n.parentNode;c&&c!=i.body;)if(c.nodeType==1){let h=c,f=window.getComputedStyle(h);if((h.scrollHeight>h.clientHeight||h.scrollWidth>h.clientWidth)&&f.overflow!="visible"){let d=h.getBoundingClientRect();o=Math.max(o,d.left),r=Math.min(r,d.right),l=Math.max(l,d.top),a=Math.min(c==n.parentNode?s.innerHeight:a,d.bottom)}c=f.position=="absolute"||f.position=="fixed"?h.offsetParent:h.parentNode}else if(c.nodeType==11)c=c.host;else break;return{left:o-t.left,right:Math.max(o,r)-t.left,top:l-(t.top+e),bottom:Math.max(l,a)-(t.top+e)}}function l6(n){let e=n.getBoundingClientRect(),t=n.ownerDocument.defaultView||window;return e.left<t.innerWidth&&e.right>0&&e.top<t.innerHeight&&e.bottom>0}function a6(n,e){let t=n.getBoundingClientRect();return{left:0,right:t.right-t.left,top:e,bottom:t.bottom-(t.top+e)}}class zs{constructor(e,t,i,s){this.from=e,this.to=t,this.size=i,this.displaySize=s}static same(e,t){if(e.length!=t.length)return!1;for(let i=0;i<e.length;i++){let s=e[i],o=t[i];if(s.from!=o.from||s.to!=o.to||s.size!=o.size)return!1}return!0}draw(e,t){return I.replace({widget:new c6(this.displaySize*(t?e.scaleY:e.scaleX),t)}).range(this.from,this.to)}}class c6 extends Dt{constructor(e,t){super(),this.size=e,this.vertical=t}eq(e){return e.size==this.size&&e.vertical==this.vertical}toDOM(){let e=document.createElement("div");return this.vertical?e.style.height=this.size+"px":(e.style.width=this.size+"px",e.style.height="2px",e.style.display="inline-block"),e}get estimatedHeight(){return this.vertical?this.size:-1}}class M2{constructor(e){this.state=e,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scrollTop=0,this.scrolledToBottom=!1,this.scaleX=1,this.scaleY=1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=D2,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=Z.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let t=e.facet(co).some(i=>typeof i!="function"&&i.class=="cm-lineWrapping");this.heightOracle=new e6(t),this.stateDeco=e.facet(Ri).filter(i=>typeof i!="function"),this.heightMap=Se.empty().applyChanges(this.stateDeco,q.empty,this.heightOracle.setDoc(e.doc),[new He(0,0,0,e.doc.length)]);for(let i=0;i<2&&(this.viewport=this.getViewport(0,null),!!this.updateForViewport());i++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=I.set(this.lineGaps.map(i=>i.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let i=0;i<=1;i++){let s=i?t.head:t.anchor;if(!e.some(({from:o,to:r})=>s>=o&&s<=r)){let{from:o,to:r}=this.lineBlockAt(s);e.push(new cn(o,r))}}return this.viewports=e.sort((i,s)=>i.from-s.from),this.updateScaler()}updateScaler(){let e=this.scaler;return this.scaler=this.heightMap.height<=7e6?D2:new go(this.heightOracle,this.heightMap,this.viewports),e.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(ki(e,this.scaler))})}update(e,t=null){this.state=e.state;let i=this.stateDeco;this.stateDeco=this.state.facet(Ri).filter(h=>typeof h!="function");let s=e.changedRanges,o=He.extendWithRanges(s,s6(i,this.stateDeco,e?e.changes:le.empty(this.state.doc.length))),r=this.heightMap.height,l=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);_2(),this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),o),(this.heightMap.height!=r||li)&&(e.flags|=2),l?(this.scrollAnchorPos=e.changes.mapPos(l.from,-1),this.scrollAnchorHeight=l.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=r);let a=o.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.head<a.from||t.range.head>a.to)||!this.viewportIsAppropriate(a))&&(a=this.getViewport(0,t));let c=a.from!=this.viewport.from||a.to!=this.viewport.to;this.viewport=a,e.flags|=this.updateForViewport(),(c||!e.changes.empty||e.flags&2)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(e.changes),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(Ul)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let t=e.contentDOM,i=window.getComputedStyle(t),s=this.heightOracle,o=i.whiteSpace;this.defaultTextDirection=i.direction=="rtl"?Z.RTL:Z.LTR;let r=this.heightOracle.mustRefreshForWrapping(o),l=t.getBoundingClientRect(),a=r||this.mustMeasureContent||this.contentDOMHeight!=l.height;this.contentDOMHeight=l.height,this.mustMeasureContent=!1;let c=0,h=0;if(l.width&&l.height){let{scaleX:_,scaleY:y}=xl(t,l);(_>.005&&Math.abs(this.scaleX-_)>.005||y>.005&&Math.abs(this.scaleY-y)>.005)&&(this.scaleX=_,this.scaleY=y,c|=16,r=a=!0)}let f=(parseInt(i.paddingTop)||0)*this.scaleY,d=(parseInt(i.paddingBottom)||0)*this.scaleY;(this.paddingTop!=f||this.paddingBottom!=d)&&(this.paddingTop=f,this.paddingBottom=d,c|=18),this.editorWidth!=e.scrollDOM.clientWidth&&(s.lineWrapping&&(a=!0),this.editorWidth=e.scrollDOM.clientWidth,c|=16);let p=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=p&&(this.scrollAnchorHeight=-1,this.scrollTop=p),this.scrolledToBottom=Sl(e.scrollDOM);let g=(this.printing?a6:r6)(t,this.paddingTop),m=g.top-this.pixelViewport.top,v=g.bottom-this.pixelViewport.bottom;this.pixelViewport=g;let b=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(b!=this.inView&&(this.inView=b,b&&(a=!0)),!this.inView&&!this.scrollTarget&&!l6(e.dom))return 0;let x=l.width;if((this.contentDOMWidth!=x||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=l.width,this.editorHeight=e.scrollDOM.clientHeight,c|=16),a){let _=e.docView.measureVisibleLineHeights(this.viewport);if(s.mustRefreshForHeights(_)&&(r=!0),r||s.lineWrapping&&Math.abs(x-this.contentDOMWidth)>s.charWidth){let{lineHeight:y,charWidth:S,textHeight:C}=e.docView.measureTextSize();r=y>0&&s.refresh(o,y,S,C,Math.max(5,x/S),_),r&&(e.docView.minWidth=0,c|=16)}m>0&&v>0?h=Math.max(m,v):m<0&&v<0&&(h=Math.min(m,v)),_2();for(let y of this.viewports){let S=y.from==this.viewport.from?_:e.docView.measureVisibleLineHeights(y);this.heightMap=(r?Se.empty().applyChanges(this.stateDeco,q.empty,this.heightOracle,[new He(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(s,0,r,new t6(y.from,S))}li&&(c|=2)}let k=!this.viewportIsAppropriate(this.viewport,h)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return k&&(c&2&&(c|=this.updateScaler()),this.viewport=this.getViewport(h,this.scrollTarget),c|=this.updateForViewport()),(c&2||k)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(r?[]:this.lineGaps,e)),c|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),c}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let i=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),s=this.heightMap,o=this.heightOracle,{visibleTop:r,visibleBottom:l}=this,a=new cn(s.lineAt(r-i*1e3,J.ByHeight,o,0,0).from,s.lineAt(l+(1-i)*1e3,J.ByHeight,o,0,0).to);if(t){let{head:c}=t.range;if(c<a.from||c>a.to){let h=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),f=s.lineAt(c,J.ByPos,o,0,0),d;t.y=="center"?d=(f.top+f.bottom)/2-h/2:t.y=="start"||t.y=="nearest"&&c<a.from?d=f.top:d=f.bottom-h,a=new cn(s.lineAt(d-1e3/2,J.ByHeight,o,0,0).from,s.lineAt(d+h+1e3/2,J.ByHeight,o,0,0).to)}}return a}mapViewport(e,t){let i=t.mapPos(e.from,-1),s=t.mapPos(e.to,1);return new cn(this.heightMap.lineAt(i,J.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(s,J.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:e,to:t},i=0){if(!this.inView)return!0;let{top:s}=this.heightMap.lineAt(e,J.ByPos,this.heightOracle,0,0),{bottom:o}=this.heightMap.lineAt(t,J.ByPos,this.heightOracle,0,0),{visibleTop:r,visibleBottom:l}=this;return(e==0||s<=r-Math.max(10,Math.min(-i,250)))&&(t==this.state.doc.length||o>=l+Math.max(10,Math.min(i,250)))&&s>r-2*1e3&&o<l+2*1e3}mapLineGaps(e,t){if(!e.length||t.empty)return e;let i=[];for(let s of e)t.touchesRange(s.from,s.to)||i.push(new zs(t.mapPos(s.from),t.mapPos(s.to),s.size,s.displaySize));return i}ensureLineGaps(e,t){let i=this.heightOracle.lineWrapping,s=i?1e4:2e3,o=s>>1,r=s<<1;if(this.defaultTextDirection!=Z.LTR&&!i)return[];let l=[],a=(h,f,d,p)=>{if(f-h<o)return;let g=this.state.selection.main,m=[g.from];g.empty||m.push(g.to);for(let b of m)if(b>h&&b<f){a(h,b-10,d,p),a(b+10,f,d,p);return}let v=u6(e,b=>b.from>=d.from&&b.to<=d.to&&Math.abs(b.from-h)<o&&Math.abs(b.to-f)<o&&!m.some(x=>b.from<x&&b.to>x));if(!v){if(f<d.to&&t&&i&&t.visibleRanges.some(k=>k.from<=f&&k.to>=f)){let k=t.moveToLineBoundary(M.cursor(f),!1,!0).head;k>h&&(f=k)}let b=this.gapSize(d,h,f,p),x=i||b<2e6?b:2e6;v=new zs(h,f,b,x)}l.push(v)},c=h=>{if(h.length<r||h.type!=ke.Text)return;let f=h6(h.from,h.to,this.stateDeco);if(f.total<r)return;let d=this.scrollTarget?this.scrollTarget.range.head:null,p,g;if(i){let m=s/this.heightOracle.lineLength*this.heightOracle.lineHeight,v,b;if(d!=null){let x=un(f,d),k=((this.visibleBottom-this.visibleTop)/2+m)/h.height;v=x-k,b=x+k}else v=(this.visibleTop-h.top-m)/h.height,b=(this.visibleBottom-h.top+m)/h.height;p=hn(f,v),g=hn(f,b)}else{let m=f.total*this.heightOracle.charWidth,v=s*this.heightOracle.charWidth,b=0;if(m>2e6)for(let S of e)S.from>=h.from&&S.from<h.to&&S.size!=S.displaySize&&S.from*this.heightOracle.charWidth+b<this.pixelViewport.left&&(b=S.size-S.displaySize);let x=this.pixelViewport.left+b,k=this.pixelViewport.right+b,_,y;if(d!=null){let S=un(f,d),C=((k-x)/2+v)/m;_=S-C,y=S+C}else _=(x-v)/m,y=(k+v)/m;p=hn(f,_),g=hn(f,y)}p>h.from&&a(h.from,p,h,f),g<h.to&&a(g,h.to,h,f)};for(let h of this.viewportLines)Array.isArray(h.type)?h.type.forEach(c):c(h);return l}gapSize(e,t,i,s){let o=un(s,i)-un(s,t);return this.heightOracle.lineWrapping?e.height*o:s.total*this.heightOracle.charWidth*o}updateLineGaps(e){zs.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=I.set(e.map(t=>t.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(e){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let i=[];j.spans(t,this.viewport.from,this.viewport.to,{span(o,r){i.push({from:o,to:r})},point(){}},20);let s=0;if(i.length!=this.visibleRanges.length)s=12;else for(let o=0;o<i.length&&!(s&8);o++){let r=this.visibleRanges[o],l=i[o];(r.from!=l.from||r.to!=l.to)&&(s|=4,e&&e.mapPos(r.from,-1)==l.from&&e.mapPos(r.to,1)==l.to||(s|=8))}return this.visibleRanges=i,s}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(t=>t.from<=e&&t.to>=e)||ki(this.heightMap.lineAt(e,J.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return e>=this.viewportLines[0].top&&e<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(t=>t.top<=e&&t.bottom>=e)||ki(this.heightMap.lineAt(this.scaler.fromDOM(e),J.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let t=this.lineBlockAtHeight(e+8);return t.from>=this.viewport.from||this.viewportLines[0].top-e>200?t:this.viewportLines[0]}elementAtHeight(e){return ki(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class cn{constructor(e,t){this.from=e,this.to=t}}function h6(n,e,t){let i=[],s=n,o=0;return j.spans(t,n,e,{span(){},point(r,l){r>s&&(i.push({from:s,to:r}),o+=r-s),s=l}},20),s<e&&(i.push({from:s,to:e}),o+=e-s),{total:o,ranges:i}}function hn({total:n,ranges:e},t){if(t<=0)return e[0].from;if(t>=1)return e[e.length-1].to;let i=Math.floor(n*t);for(let s=0;;s++){let{from:o,to:r}=e[s],l=r-o;if(i<=l)return o+i;i-=l}}function un(n,e){let t=0;for(let{from:i,to:s}of n.ranges){if(e<=s){t+=e-i;break}t+=s-i}return t/n.total}function u6(n,e){for(let t of n)if(e(t))return t}const D2={toDOM(n){return n},fromDOM(n){return n},scale:1,eq(n){return n==this}};class go{constructor(e,t,i){let s=0,o=0,r=0;this.viewports=i.map(({from:l,to:a})=>{let c=t.lineAt(l,J.ByPos,e,0,0).top,h=t.lineAt(a,J.ByPos,e,0,0).bottom;return s+=h-c,{from:l,to:a,top:c,bottom:h,domTop:0,domBottom:0}}),this.scale=(7e6-s)/(t.height-s);for(let l of this.viewports)l.domTop=r+(l.top-o)*this.scale,r=l.domBottom=l.domTop+(l.bottom-l.top),o=l.bottom}toDOM(e){for(let t=0,i=0,s=0;;t++){let o=t<this.viewports.length?this.viewports[t]:null;if(!o||e<o.top)return s+(e-i)*this.scale;if(e<=o.bottom)return o.domTop+(e-o.top);i=o.bottom,s=o.domBottom}}fromDOM(e){for(let t=0,i=0,s=0;;t++){let o=t<this.viewports.length?this.viewports[t]:null;if(!o||e<o.domTop)return i+(e-s)/this.scale;if(e<=o.domBottom)return o.top+(e-o.domTop);i=o.bottom,s=o.domBottom}}eq(e){return e instanceof go?this.scale==e.scale&&this.viewports.length==e.viewports.length&&this.viewports.every((t,i)=>t.from==e.viewports[i].from&&t.to==e.viewports[i].to):!1}}function ki(n,e){if(e.scale==1)return n;let t=e.toDOM(n.top),i=e.toDOM(n.bottom);return new tt(n.from,n.length,t,i-t,Array.isArray(n._content)?n._content.map(s=>ki(s,e)):n._content)}const fn=L.define({combine:n=>n.join(" ")}),E0=L.define({combine:n=>n.indexOf(!0)>-1}),V0=St.newName(),fa=St.newName(),da=St.newName(),pa={"&light":"."+fa,"&dark":"."+da};function z0(n,e,t){return new St(e,{finish(i){return/&/.test(i)?i.replace(/&\w*/,s=>{if(s=="&")return n;if(!t||!t[s])throw new RangeError(`Unsupported selector: ${s}`);return t[s]}):n+" "+i}})}const f6=z0("."+V0,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0,overflowAnchor:"none"},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#ddd"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",zIndex:200},".cm-gutters-before":{insetInlineStart:0},".cm-gutters-after":{insetInlineEnd:0},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",border:"0px solid #ddd","&.cm-gutters-before":{borderRightWidth:"1px"},"&.cm-gutters-after":{borderLeftWidth:"1px"}},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0,zIndex:300},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-dialog":{padding:"2px 19px 4px 6px",position:"relative","& label":{fontSize:"80%"}},".cm-dialog-close":{position:"absolute",top:"3px",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",fontSize:"14px",padding:"0"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top",userSelect:"none"},".cm-highlightSpace":{backgroundImage:"radial-gradient(circle at 50% 55%, #aaa 20%, transparent 5%)",backgroundPosition:"center"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},pa),d6={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},Ls=V.ie&&V.ie_version<=11;class p6{constructor(e){this.view=e,this.active=!1,this.editContext=null,this.selectionRange=new Kf,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(t=>{for(let i of t)this.queue.push(i);(V.ie&&V.ie_version<=11||V.ios&&e.composing)&&t.some(i=>i.type=="childList"&&i.removedNodes.length||i.type=="characterData"&&i.oldValue.length>i.target.nodeValue.length)?this.flushSoon():this.flush()}),window.EditContext&&V.android&&e.constructor.EDIT_CONTEXT!==!1&&!(V.chrome&&V.chrome_version<126)&&(this.editContext=new m6(e),e.state.facet(ct)&&(e.contentDOM.editContext=this.editContext.editContext)),Ls&&(this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue:t.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var t;((t=this.view.docView)===null||t===void 0?void 0:t.lastUpdate)<Date.now()-75&&this.onResize()}),this.resizeScroll.observe(e.scrollDOM)),this.addWindowListeners(this.win=e.win),this.start(),typeof IntersectionObserver=="function"&&(this.intersection=new IntersectionObserver(t=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),t.length>0&&t[t.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(t=>{t.length>0&&t[t.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(e){(e.type=="change"||!e.type)&&!e.matches||(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((t,i)=>t!=e[i]))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:i}=this,s=this.selectionRange;if(i.state.facet(ct)?i.root.activeElement!=this.dom:!Dn(this.dom,s))return;let o=s.anchorNode&&i.docView.nearest(s.anchorNode);if(o&&o.ignoreEvent(e)){t||(this.selectionChanged=!1);return}(V.ie&&V.ie_version<=11||V.android&&V.chrome)&&!i.state.selection.main.empty&&s.focusNode&&Oi(s.focusNode,s.focusOffset,s.anchorNode,s.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=zi(e.root);if(!t)return!1;let i=V.safari&&e.root.nodeType==11&&e.root.activeElement==this.dom&&g6(this.view,t)||t;if(!i||this.selectionRange.eq(i))return!1;let s=Dn(this.dom,i);return s&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&Qf(this.dom,i)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),!1):(this.selectionRange.setRange(i),s&&(this.selectionChanged=!0),!0)}setSelectionRange(e,t){this.selectionRange.set(e.node,e.offset,t.node,t.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let e=0,t=null;for(let i=this.dom;i;)if(i.nodeType==1)!t&&e<this.scrollTargets.length&&this.scrollTargets[e]==i?e++:t||(t=this.scrollTargets.slice(0,e)),t&&t.push(i),i=i.assignedSlot||i.parentNode;else if(i.nodeType==11)i=i.host;else break;if(e<this.scrollTargets.length&&!t&&(t=this.scrollTargets.slice(0,e)),t){for(let i of this.scrollTargets)i.removeEventListener("scroll",this.onScroll);for(let i of this.scrollTargets=t)i.addEventListener("scroll",this.onScroll)}}ignore(e){if(!this.active)return e();try{return this.stop(),e()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,d6),Ls&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),Ls&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(e,t){var i;if(!this.delayedAndroidKey){let s=()=>{let o=this.delayedAndroidKey;o&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=o.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&o.force&&Zt(this.dom,o.key,o.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(s)}(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange<Date.now()-50||!!(!((i=this.delayedAndroidKey)===null||i===void 0)&&i.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame(()=>{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let t=-1,i=-1,s=!1;for(let o of e){let r=this.readMutation(o);r&&(r.typeOver&&(s=!0),t==-1?{from:t,to:i}=r:(t=Math.min(r.from,t),i=Math.max(r.to,i)))}return{from:t,to:i,typeOver:s}}readChange(){let{from:e,to:t,typeOver:i}=this.processRecords(),s=this.selectionChanged&&Dn(this.dom,this.selectionRange);if(e<0&&!s)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let o=new Pd(this.view,e,t,i);return this.view.docView.domChanged={newSel:o.newSel?o.newSel.main:null},o}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return this.view.requestMeasure(),!1;let i=this.view.state,s=ia(this.view,t);return this.view.state==i&&(t.domChanged||t.newSel&&!t.newSel.main.eq(this.view.state.selection.main))&&this.view.update([]),s}readMutation(e){let t=this.view.docView.nearest(e.target);if(!t||t.ignoreMutation(e))return null;if(t.markDirty(e.type=="attributes"),e.type=="attributes"&&(t.flags|=4),e.type=="childList"){let i=T2(t,e.previousSibling||e.target.previousSibling,-1),s=T2(t,e.nextSibling||e.target.nextSibling,1);return{from:i?t.posAfter(i):t.posAtStart,to:s?t.posBefore(s):t.posAtEnd,typeOver:!1}}else return e.type=="characterData"?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener?this.printQuery.addEventListener("change",this.onPrint):this.printQuery.addListener(this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener?this.printQuery.removeEventListener("change",this.onPrint):this.printQuery.removeListener(this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}update(e){this.editContext&&(this.editContext.update(e),e.startState.facet(ct)!=e.state.facet(ct)&&(e.view.contentDOM.editContext=e.state.facet(ct)?this.editContext.editContext:null))}destroy(){var e,t,i;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(t=this.gapIntersection)===null||t===void 0||t.disconnect(),(i=this.resizeScroll)===null||i===void 0||i.disconnect();for(let s of this.scrollTargets)s.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy())}}function T2(n,e,t){for(;e;){let i=X.get(e);if(i&&i.parent==n)return i;let s=e.parentNode;e=s!=n.dom?s:t>0?e.nextSibling:e.previousSibling}return null}function A2(n,e){let t=e.startContainer,i=e.startOffset,s=e.endContainer,o=e.endOffset,r=n.docView.domAtPos(n.state.selection.main.anchor);return Oi(r.node,r.offset,s,o)&&([t,i,s,o]=[s,o,t,i]),{anchorNode:t,anchorOffset:i,focusNode:s,focusOffset:o}}function g6(n,e){if(e.getComposedRanges){let s=e.getComposedRanges(n.root)[0];if(s)return A2(n,s)}let t=null;function i(s){s.preventDefault(),s.stopImmediatePropagation(),t=s.getTargetRanges()[0]}return n.contentDOM.addEventListener("beforeinput",i,!0),n.dom.ownerDocument.execCommand("indent"),n.contentDOM.removeEventListener("beforeinput",i,!0),t?A2(n,t):null}class m6{constructor(e){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.composing=null,this.resetRange(e.state);let t=this.editContext=new window.EditContext({text:e.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,e.state.selection.main.anchor))),selectionEnd:this.toContextPos(e.state.selection.main.head)});this.handlers.textupdate=i=>{let s=e.state.selection.main,{anchor:o,head:r}=s,l=this.toEditorPos(i.updateRangeStart),a=this.toEditorPos(i.updateRangeEnd);e.inputState.composing>=0&&!this.composing&&(this.composing={contextBase:i.updateRangeStart,editorBase:l,drifted:!1});let c={from:l,to:a,insert:q.of(i.text.split(`
|
|
10
|
+
`))};if(c.from==this.from&&o<this.from?c.from=o:c.to==this.to&&o>this.to&&(c.to=o),c.from==c.to&&!c.insert.length){let h=M.single(this.toEditorPos(i.selectionStart),this.toEditorPos(i.selectionEnd));h.main.eq(s)||e.dispatch({selection:h,userEvent:"select"});return}if((V.mac||V.android)&&c.from==r-1&&/^\. ?$/.test(i.text)&&e.contentDOM.getAttribute("autocorrect")=="off"&&(c={from:l,to:a,insert:q.of([i.text.replace("."," ")])}),this.pendingContextChange=c,!e.state.readOnly){let h=this.to-this.from+(c.to-c.from+c.insert.length);fo(e,c,M.single(this.toEditorPos(i.selectionStart,h),this.toEditorPos(i.selectionEnd,h)))}this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state))},this.handlers.characterboundsupdate=i=>{let s=[],o=null;for(let r=this.toEditorPos(i.rangeStart),l=this.toEditorPos(i.rangeEnd);r<l;r++){let a=e.coordsForChar(r);o=a&&new DOMRect(a.left,a.top,a.right-a.left,a.bottom-a.top)||o||new DOMRect,s.push(o)}t.updateCharacterBounds(i.rangeStart,s)},this.handlers.textformatupdate=i=>{let s=[];for(let o of i.getTextFormats()){let r=o.underlineStyle,l=o.underlineThickness;if(r!="None"&&l!="None"){let a=this.toEditorPos(o.rangeStart),c=this.toEditorPos(o.rangeEnd);if(a<c){let h=`text-decoration: underline ${r=="Dashed"?"dashed ":r=="Squiggle"?"wavy ":""}${l=="Thin"?1:2}px`;s.push(I.mark({attributes:{style:h}}).range(a,c))}}}e.dispatch({effects:Kl.of(I.set(s))})},this.handlers.compositionstart=()=>{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(e.inputState.composing=-1,e.inputState.compositionFirstChange=null,this.composing){let{drifted:i}=this.composing;this.composing=null,i&&this.reset(e.state)}};for(let i in this.handlers)t.addEventListener(i,this.handlers[i]);this.measureReq={read:i=>{this.editContext.updateControlBounds(i.contentDOM.getBoundingClientRect());let s=zi(i.root);s&&s.rangeCount&&this.editContext.updateSelectionBounds(s.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let t=0,i=!1,s=this.pendingContextChange;return e.changes.iterChanges((o,r,l,a,c)=>{if(i)return;let h=c.length-(r-o);if(s&&r>=s.to)if(s.from==o&&s.to==r&&s.insert.eq(c)){s=this.pendingContextChange=null,t+=h,this.to+=h;return}else s=null,this.revertPending(e.state);if(o+=t,r+=t,r<=this.from)this.from+=h,this.to+=h;else if(o<this.to){if(o<this.from||r>this.to||this.to-this.from+c.length>3e4){i=!0;return}this.editContext.updateText(this.toContextPos(o),this.toContextPos(r),c.toString()),this.to+=h}t+=h}),s&&!i&&this.revertPending(e.state),!i}update(e){let t=this.pendingContextChange,i=e.startState.selection.main;this.composing&&(this.composing.drifted||!e.changes.touchesRange(i.from,i.to)&&e.transactions.some(s=>!s.isUserEvent("input.type")&&s.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=!0,this.composing.editorBase=e.changes.mapPos(this.composing.editorBase)):!this.applyEdits(e)||!this.rangeIsValid(e.state)?(this.pendingContextChange=null,this.reset(e.state)):(e.docChanged||e.selectionSet||t)&&this.setSelection(e.state),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:t}=e.selection.main;this.from=Math.max(0,t-1e4),this.to=Math.min(e.doc.length,t+1e4)}reset(e){this.resetRange(e),this.editContext.updateText(0,this.editContext.text.length,e.doc.sliceString(this.from,this.to)),this.setSelection(e)}revertPending(e){let t=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(t.from),this.toContextPos(t.from+t.insert.length),e.doc.sliceString(t.from,t.to))}setSelection(e){let{main:t}=e.selection,i=this.toContextPos(Math.max(this.from,Math.min(this.to,t.anchor))),s=this.toContextPos(t.head);(this.editContext.selectionStart!=i||this.editContext.selectionEnd!=s)&&this.editContext.updateSelection(i,s)}rangeIsValid(e){let{head:t}=e.selection.main;return!(this.from>0&&t-this.from<500||this.to<e.doc.length&&this.to-t<500||this.to-this.from>1e4*3)}toEditorPos(e,t=this.to-this.from){e=Math.min(e,t);let i=this.composing;return i&&i.drifted?i.editorBase+(e-i.contextBase):e+this.from}toContextPos(e){let t=this.composing;return t&&t.drifted?t.contextBase+(e-t.editorBase):e-this.from}destroy(){for(let e in this.handlers)this.editContext.removeEventListener(e,this.handlers[e])}}class z{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return!!this.inputState&&this.inputState.composing>0}get compositionStarted(){return!!this.inputState&&this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){var t;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:i}=e;this.dispatchTransactions=e.dispatchTransactions||i&&(s=>s.forEach(o=>i(o,this)))||(s=>this.update(s)),this.dispatch=this.dispatch.bind(this),this._root=e.root||Xf(e.parent)||document,this.viewState=new M2(e.state||G.create(e)),e.scrollTo&&e.scrollTo.is(rn)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(Yt).map(s=>new Ps(s));for(let s of this.plugins)s.update(this);this.observer=new p6(this),this.inputState=new Rd(this),this.inputState.ensureHandlers(this.plugins),this.docView=new a2(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),!((t=document.fonts)===null||t===void 0)&&t.ready&&document.fonts.ready.then(()=>this.requestMeasure())}dispatch(...e){let t=e.length==1&&e[0]instanceof ae?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(t,this)}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let t=!1,i=!1,s,o=this.state;for(let d of e){if(d.startState!=o)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");o=d.state}if(this.destroyed){this.viewState.state=o;return}let r=this.hasFocus,l=0,a=null;e.some(d=>d.annotation(aa))?(this.inputState.notifiedFocused=r,l=1):r!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=r,a=ca(o,r),a||(l=1));let c=this.observer.delayedAndroidKey,h=null;if(c?(this.observer.clearDelayedAndroidKey(),h=this.observer.readChange(),(h&&!this.state.doc.eq(o.doc)||!this.state.selection.eq(o.selection))&&(h=null)):this.observer.clear(),o.facet(G.phrases)!=this.state.facet(G.phrases))return this.setState(o);s=Fn.create(this,o,e),s.flags|=l;let f=this.viewState.scrollTarget;try{this.updateState=2;for(let d of e){if(f&&(f=f.map(d.changes)),d.scrollIntoView){let{main:p}=d.state.selection;f=new ei(p.empty?p:M.cursor(p.head,p.head>p.anchor?-1:1))}for(let p of d.effects)p.is(rn)&&(f=p.value.clip(this.state))}this.viewState.update(s,f),this.bidiCache=jn.update(this.bidiCache,s.changes),s.empty||(this.updatePlugins(s),this.inputState.update(s)),t=this.docView.update(s),this.state.facet(xi)!=this.styleModules&&this.mountStyles(),i=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(t,e.some(d=>d.isUserEvent("select.pointer")))}finally{this.updateState=0}if(s.startState.facet(fn)!=s.state.facet(fn)&&(this.viewState.mustMeasureContent=!0),(t||i||f||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),t&&this.docViewUpdate(),!s.empty)for(let d of this.state.facet(T0))try{d(s)}catch(p){Te(this.state,p,"update listener")}(a||h)&&Promise.resolve().then(()=>{a&&this.state==a.startState&&this.dispatch(a),h&&!ia(this,h)&&c.force&&Zt(this.contentDOM,c.key,c.keyCode)})}setState(e){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let t=this.hasFocus;try{for(let i of this.plugins)i.destroy(this);this.viewState=new M2(e),this.plugins=e.facet(Yt).map(i=>new Ps(i)),this.pluginMap.clear();for(let i of this.plugins)i.update(this);this.docView.destroy(),this.docView=new a2(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(Yt),i=e.state.facet(Yt);if(t!=i){let s=[];for(let o of i){let r=t.indexOf(o);if(r<0)s.push(new Ps(o));else{let l=this.plugins[r];l.mustUpdate=e,s.push(l)}}for(let o of this.plugins)o.mustUpdate!=e&&o.destroy(this);this.plugins=s,this.pluginMap.clear()}else for(let s of this.plugins)s.mustUpdate=e;for(let s=0;s<this.plugins.length;s++)this.plugins[s].update(this);t!=i&&this.inputState.ensureHandlers(this.plugins)}docViewUpdate(){for(let e of this.plugins){let t=e.value;if(t&&t.docViewUpdate)try{t.docViewUpdate(this)}catch(i){Te(this.state,i,"doc view update listener")}}}measure(e=!0){if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,i=this.scrollDOM,s=i.scrollTop*this.scaleY,{scrollAnchorPos:o,scrollAnchorHeight:r}=this.viewState;Math.abs(s-this.viewState.scrollTop)>1&&(r=-1),this.viewState.scrollAnchorHeight=-1;try{for(let l=0;;l++){if(r<0)if(Sl(i))o=-1,r=this.viewState.heightMap.height;else{let p=this.viewState.scrollAnchorAt(s);o=p.from,r=p.top}this.updateState=1;let a=this.viewState.measure(this);if(!a&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(l>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let c=[];a&4||([this.measureRequests,c]=[c,this.measureRequests]);let h=c.map(p=>{try{return p.read(this)}catch(g){return Te(this.state,g),B2}}),f=Fn.create(this,this.state,[]),d=!1;f.flags|=a,t?t.flags|=a:t=f,this.updateState=2,f.empty||(this.updatePlugins(f),this.inputState.update(f),this.updateAttrs(),d=this.docView.update(f),d&&this.docViewUpdate());for(let p=0;p<c.length;p++)if(h[p]!=B2)try{let g=c[p];g.write&&g.write(h[p],this)}catch(g){Te(this.state,g)}if(d&&this.docView.updateSelection(!0),!f.viewportChanged&&this.measureRequests.length==0){if(this.viewState.editorHeight)if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,r=-1;continue}else{let g=(o<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(o).top)-r;if(g>1||g<-1){s=s+g,i.scrollTop=s/this.scaleY,r=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let l of this.state.facet(T0))l(t)}get themeClasses(){return V0+" "+(this.state.facet(E0)?da:fa)+" "+this.state.facet(fn)}updateAttrs(){let e=P2(this,Xl,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",writingsuggestions:"false",translate:"no",contenteditable:this.state.facet(ct)?"true":"false",class:"cm-content",style:`${V.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),P2(this,co,t);let i=this.observer.ignore(()=>{let s=C0(this.contentDOM,this.contentAttrs,t),o=C0(this.dom,this.editorAttrs,e);return s||o});return this.editorAttrs=e,this.contentAttrs=t,i}showAnnouncements(e){let t=!0;for(let i of e)for(let s of i.effects)if(s.is(z.announce)){t&&(this.announceDOM.textContent=""),t=!1;let o=this.announceDOM.appendChild(document.createElement("div"));o.textContent=s.value}}mountStyles(){this.styleModules=this.state.facet(xi);let e=this.state.facet(z.cspNonce);St.mount(this.root,this.styleModules.concat(f6).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let t=0;t<this.measureRequests.length;t++)if(this.measureRequests[t].key===e.key){this.measureRequests[t]=e;return}}this.measureRequests.push(e)}}plugin(e){let t=this.pluginMap.get(e);return(t===void 0||t&&t.plugin!=e)&&this.pluginMap.set(e,t=this.plugins.find(i=>i.plugin==e)||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,i){return Vs(this,e,d2(this,e,t,i))}moveByGroup(e,t){return Vs(this,e,d2(this,e,t,i=>Dd(this,e.head,i)))}visualLineSide(e,t){let i=this.bidiSpans(e),s=this.textDirectionAt(e.from),o=i[t?i.length-1:0];return M.cursor(o.side(t,s)+e.from,o.forward(!t,s)?1:-1)}moveToLineBoundary(e,t,i=!0){return Md(this,e,t,i)}moveVertically(e,t,i){return Vs(this,e,Td(this,e,t,i))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,t=0){return this.docView.posFromDOM(e,t)}posAtCoords(e,t=!0){return this.readMeasured(),ta(this,e,t)}coordsAtPos(e,t=1){this.readMeasured();let i=this.docView.coordsAt(e,t);if(!i||i.left==i.right)return i;let s=this.state.doc.lineAt(e),o=this.bidiSpans(s),r=o[xt.find(o,e-s.from,-1,t)];return gs(i,r.dir==Z.LTR==t>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(ql)||e<this.viewport.from||e>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>v6)return Nl(e.length);let t=this.textDirectionAt(e.from),i;for(let o of this.bidiCache)if(o.from==e.from&&o.dir==t&&(o.fresh||Rl(o.isolates,i=l2(this,e))))return o.order;i||(i=l2(this,e));let s=ud(e.text,t,i);return this.bidiCache.push(new jn(e.from,e.to,t,i,!0,s)),s}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||V.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{yl(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){return rn.of(new ei(typeof e=="number"?M.cursor(e):e,t.y,t.x,t.yMargin,t.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:t}=this.scrollDOM,i=this.viewState.scrollAnchorAt(e);return rn.of(new ei(M.cursor(i.from),"start","start",i.top-e,t,!0))}setTabFocusMode(e){e==null?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:typeof e=="boolean"?this.inputState.tabFocusMode=e?0:-1:this.inputState.tabFocusMode!=0&&(this.inputState.tabFocusMode=Date.now()+e)}static domEventHandlers(e){return re.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return re.define(()=>({}),{eventObservers:e})}static theme(e,t){let i=St.newName(),s=[fn.of(i),xi.of(z0(`.${i}`,e))];return t&&t.dark&&s.push(E0.of(!0)),s}static baseTheme(e){return Ft.lowest(xi.of(z0("."+V0,e,pa)))}static findFromDOM(e){var t;let i=e.querySelector(".cm-content"),s=i&&X.get(i)||X.get(e);return((t=s==null?void 0:s.rootView)===null||t===void 0?void 0:t.view)||null}}z.styleModule=xi;z.inputHandler=Gl;z.clipboardInputFilter=lo;z.clipboardOutputFilter=ao;z.scrollHandler=Yl;z.focusChangeEffect=jl;z.perLineTextDirection=ql;z.exceptionSink=Fl;z.updateListener=T0;z.editable=ct;z.mouseSelectionStyle=Wl;z.dragMovesSelection=$l;z.clickAddsSelectionRange=Hl;z.decorations=Ri;z.outerDecorations=Ql;z.atomicRanges=ho;z.bidiIsolatedRanges=Jl;z.scrollMargins=Zl;z.darkTheme=E0;z.cspNonce=L.define({combine:n=>n.length?n[0]:""});z.contentAttributes=co;z.editorAttributes=Xl;z.lineWrapping=z.contentAttributes.of({class:"cm-lineWrapping"});z.announce=$.define();const v6=4096,B2={};class jn{constructor(e,t,i,s,o,r){this.from=e,this.to=t,this.dir=i,this.isolates=s,this.fresh=o,this.order=r}static update(e,t){if(t.empty&&!e.some(o=>o.fresh))return e;let i=[],s=e.length?e[e.length-1].dir:Z.LTR;for(let o=Math.max(0,e.length-10);o<e.length;o++){let r=e[o];r.dir==s&&!t.touchesRange(r.from,r.to)&&i.push(new jn(t.mapPos(r.from,1),t.mapPos(r.to,-1),r.dir,r.isolates,!1,r.order))}return i}}function P2(n,e,t){for(let i=n.state.facet(e),s=i.length-1;s>=0;s--){let o=i[s],r=typeof o=="function"?o(n):o;r&&S0(r,t)}return t}const w6=V.mac?"mac":V.windows?"win":V.linux?"linux":"key";function b6(n,e){const t=n.split(/-(?!$)/);let i=t[t.length-1];i=="Space"&&(i=" ");let s,o,r,l;for(let a=0;a<t.length-1;++a){const c=t[a];if(/^(cmd|meta|m)$/i.test(c))l=!0;else if(/^a(lt)?$/i.test(c))s=!0;else if(/^(c|ctrl|control)$/i.test(c))o=!0;else if(/^s(hift)?$/i.test(c))r=!0;else if(/^mod$/i.test(c))e=="mac"?l=!0:o=!0;else throw new Error("Unrecognized modifier name: "+c)}return s&&(i="Alt-"+i),o&&(i="Ctrl-"+i),l&&(i="Meta-"+i),r&&(i="Shift-"+i),i}function dn(n,e,t){return e.altKey&&(n="Alt-"+n),e.ctrlKey&&(n="Ctrl-"+n),e.metaKey&&(n="Meta-"+n),t!==!1&&e.shiftKey&&(n="Shift-"+n),n}const x6=Ft.default(z.domEventHandlers({keydown(n,e){return ma(ga(e.state),n,e,"editor")}})),mo=L.define({enables:x6}),E2=new WeakMap;function ga(n){let e=n.facet(mo),t=E2.get(e);return t||E2.set(e,t=S6(e.reduce((i,s)=>i.concat(s),[]))),t}function y6(n,e,t){return ma(ga(n.state),e,n,t)}let vt=null;const k6=4e3;function S6(n,e=w6){let t=Object.create(null),i=Object.create(null),s=(r,l)=>{let a=i[r];if(a==null)i[r]=l;else if(a!=l)throw new Error("Key binding "+r+" is used both as a regular binding and as a multi-stroke prefix")},o=(r,l,a,c,h)=>{var f,d;let p=t[r]||(t[r]=Object.create(null)),g=l.split(/ (?!$)/).map(b=>b6(b,e));for(let b=1;b<g.length;b++){let x=g.slice(0,b).join(" ");s(x,!0),p[x]||(p[x]={preventDefault:!0,stopPropagation:!1,run:[k=>{let _=vt={view:k,prefix:x,scope:r};return setTimeout(()=>{vt==_&&(vt=null)},k6),!0}]})}let m=g.join(" ");s(m,!1);let v=p[m]||(p[m]={preventDefault:!1,stopPropagation:!1,run:((d=(f=p._any)===null||f===void 0?void 0:f.run)===null||d===void 0?void 0:d.slice())||[]});a&&v.run.push(a),c&&(v.preventDefault=!0),h&&(v.stopPropagation=!0)};for(let r of n){let l=r.scope?r.scope.split(" "):["editor"];if(r.any)for(let c of l){let h=t[c]||(t[c]=Object.create(null));h._any||(h._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:f}=r;for(let d in h)h[d].run.push(p=>f(p,L0))}let a=r[e]||r.key;if(a)for(let c of l)o(c,a,r.run,r.preventDefault,r.stopPropagation),r.shift&&o(c,"Shift-"+a,r.shift,r.preventDefault,r.stopPropagation)}return t}let L0=null;function ma(n,e,t,i){L0=e;let s=jf(e),o=Oe(s,0),r=et(o)==s.length&&s!=" ",l="",a=!1,c=!1,h=!1;vt&&vt.view==t&&vt.scope==i&&(l=vt.prefix+" ",sa.indexOf(e.keyCode)<0&&(c=!0,vt=null));let f=new Set,d=v=>{if(v){for(let b of v.run)if(!f.has(b)&&(f.add(b),b(t)))return v.stopPropagation&&(h=!0),!0;v.preventDefault&&(v.stopPropagation&&(h=!0),c=!0)}return!1},p=n[i],g,m;return p&&(d(p[l+dn(s,e,!r)])?a=!0:r&&(e.altKey||e.metaKey||e.ctrlKey)&&!(V.windows&&e.ctrlKey&&e.altKey)&&!(V.mac&&e.altKey&&!e.ctrlKey)&&(g=Ct[e.keyCode])&&g!=s?(d(p[l+dn(g,e,!0)])||e.shiftKey&&(m=Vi[e.keyCode])!=s&&m!=g&&d(p[l+dn(m,e,!1)]))&&(a=!0):r&&e.shiftKey&&d(p[l+dn(s,e,!0)])&&(a=!0),!a&&d(p._any)&&(a=!0)),c&&(a=!0),a&&h&&e.stopPropagation(),L0=null,a}class Xi{constructor(e,t,i,s,o){this.className=e,this.left=t,this.top=i,this.width=s,this.height=o}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,t){return t.className!=this.className?!1:(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",this.width!=null&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,t,i){if(i.empty){let s=e.coordsAtPos(i.head,i.assoc||1);if(!s)return[];let o=va(e);return[new Xi(t,s.left-o.left,s.top-o.top,null,s.bottom-s.top)]}else return C6(e,t,i)}}function va(n){let e=n.scrollDOM.getBoundingClientRect();return{left:(n.textDirection==Z.LTR?e.left:e.right-n.scrollDOM.clientWidth*n.scaleX)-n.scrollDOM.scrollLeft*n.scaleX,top:e.top-n.scrollDOM.scrollTop*n.scaleY}}function V2(n,e,t,i){let s=n.coordsAtPos(e,t*2);if(!s)return i;let o=n.dom.getBoundingClientRect(),r=(s.top+s.bottom)/2,l=n.posAtCoords({x:o.left+1,y:r}),a=n.posAtCoords({x:o.right-1,y:r});return l==null||a==null?i:{from:Math.max(i.from,Math.min(l,a)),to:Math.min(i.to,Math.max(l,a))}}function C6(n,e,t){if(t.to<=n.viewport.from||t.from>=n.viewport.to)return[];let i=Math.max(t.from,n.viewport.from),s=Math.min(t.to,n.viewport.to),o=n.textDirection==Z.LTR,r=n.contentDOM,l=r.getBoundingClientRect(),a=va(n),c=r.querySelector(".cm-line"),h=c&&window.getComputedStyle(c),f=l.left+(h?parseInt(h.paddingLeft)+Math.min(0,parseInt(h.textIndent)):0),d=l.right-(h?parseInt(h.paddingRight):0),p=B0(n,i,1),g=B0(n,s,-1),m=p.type==ke.Text?p:null,v=g.type==ke.Text?g:null;if(m&&(n.lineWrapping||p.widgetLineBreaks)&&(m=V2(n,i,1,m)),v&&(n.lineWrapping||g.widgetLineBreaks)&&(v=V2(n,s,-1,v)),m&&v&&m.from==v.from&&m.to==v.to)return x(k(t.from,t.to,m));{let y=m?k(t.from,null,m):_(p,!1),S=v?k(null,t.to,v):_(g,!0),C=[];return(m||p).to<(v||g).from-(m&&v?1:0)||p.widgetLineBreaks>1&&y.bottom+n.defaultLineHeight/2<S.top?C.push(b(f,y.bottom,d,S.top)):y.bottom<S.top&&n.elementAtHeight((y.bottom+S.top)/2).type==ke.Text&&(y.bottom=S.top=(y.bottom+S.top)/2),x(y).concat(C).concat(x(S))}function b(y,S,C,P){return new Xi(e,y-a.left,S-a.top,C-y,P-S)}function x({top:y,bottom:S,horizontal:C}){let P=[];for(let O=0;O<C.length;O+=2)P.push(b(C[O],y,C[O+1],S));return P}function k(y,S,C){let P=1e9,O=-1e9,w=[];function A(N,H,R,F,ie){let U=n.coordsAtPos(N,N==C.to?-2:2),Q=n.coordsAtPos(R,R==C.from?2:-2);!U||!Q||(P=Math.min(U.top,Q.top,P),O=Math.max(U.bottom,Q.bottom,O),ie==Z.LTR?w.push(o&&H?f:U.left,o&&F?d:Q.right):w.push(!o&&F?f:Q.left,!o&&H?d:U.right))}let T=y??C.from,D=S??C.to;for(let N of n.visibleRanges)if(N.to>T&&N.from<D)for(let H=Math.max(N.from,T),R=Math.min(N.to,D);;){let F=n.state.doc.lineAt(H);for(let ie of n.bidiSpans(F)){let U=ie.from+F.from,Q=ie.to+F.from;if(U>=R)break;Q>H&&A(Math.max(U,H),y==null&&U<=T,Math.min(Q,R),S==null&&Q>=D,ie.dir)}if(H=F.to+1,H>=R)break}return w.length==0&&A(T,y==null,D,S==null,n.textDirection),{top:P,bottom:O,horizontal:w}}function _(y,S){let C=l.top+(S?y.top:y.bottom);return{top:C,bottom:C,horizontal:[]}}}function _6(n,e){return n.constructor==e.constructor&&n.eq(e)}class O6{constructor(e,t){this.view=e,this.layer=t,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),t.above&&this.dom.classList.add("cm-layer-above"),t.class&&this.dom.classList.add(t.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),t.mount&&t.mount(this.dom,e)}update(e){e.startState.facet(Pn)!=e.state.facet(Pn)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}docViewUpdate(e){this.layer.updateOnDocViewUpdate!==!1&&e.requestMeasure(this.measureReq)}setOrder(e){let t=0,i=e.facet(Pn);for(;t<i.length&&i[t]!=this.layer;)t++;this.dom.style.zIndex=String((this.layer.above?150:-1)-t)}measure(){return this.layer.markers(this.view)}scale(){let{scaleX:e,scaleY:t}=this.view;(e!=this.scaleX||t!=this.scaleY)&&(this.scaleX=e,this.scaleY=t,this.dom.style.transform=`scale(${1/e}, ${1/t})`)}draw(e){if(e.length!=this.drawn.length||e.some((t,i)=>!_6(t,this.drawn[i]))){let t=this.dom.firstChild,i=0;for(let s of e)s.update&&t&&s.constructor&&this.drawn[i].constructor&&s.update(t,this.drawn[i])?(t=t.nextSibling,i++):this.dom.insertBefore(s.draw(),t);for(;t;){let s=t.nextSibling;t.remove(),t=s}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const Pn=L.define();function wa(n){return[re.define(e=>new O6(e,n)),Pn.of(n)]}const Ni=L.define({combine(n){return rt(n,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,t)=>Math.min(e,t),drawRangeCursor:(e,t)=>e||t})}});function M6(n={}){return[Ni.of(n),D6,T6,A6,Ul.of(!0)]}function ba(n){return n.startState.facet(Ni)!=n.state.facet(Ni)}const D6=wa({above:!0,markers(n){let{state:e}=n,t=e.facet(Ni),i=[];for(let s of e.selection.ranges){let o=s==e.selection.main;if(s.empty||t.drawRangeCursor){let r=o?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",l=s.empty?s:M.cursor(s.head,s.head>s.anchor?-1:1);for(let a of Xi.forRange(n,r,l))i.push(a)}}return i},update(n,e){n.transactions.some(i=>i.selection)&&(e.style.animationName=e.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let t=ba(n);return t&&z2(n.state,e),n.docChanged||n.selectionSet||t},mount(n,e){z2(e.state,n)},class:"cm-cursorLayer"});function z2(n,e){e.style.animationDuration=n.facet(Ni).cursorBlinkRate+"ms"}const T6=wa({above:!1,markers(n){return n.state.selection.ranges.map(e=>e.empty?[]:Xi.forRange(n,"cm-selectionBackground",e)).reduce((e,t)=>e.concat(t))},update(n,e){return n.docChanged||n.selectionSet||n.viewportChanged||ba(n)},class:"cm-selectionLayer"}),A6=Ft.highest(z.theme({".cm-line":{"& ::selection, &::selection":{backgroundColor:"transparent !important"},caretColor:"transparent !important"},".cm-content":{caretColor:"transparent !important","& :focus":{caretColor:"initial !important","&::selection, & ::selection":{backgroundColor:"Highlight !important"}}}})),xa=$.define({map(n,e){return n==null?null:e.mapPos(n)}}),Si=me.define({create(){return null},update(n,e){return n!=null&&(n=e.changes.mapPos(n)),e.effects.reduce((t,i)=>i.is(xa)?i.value:t,n)}}),B6=re.fromClass(class{constructor(n){this.view=n,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(n){var e;let t=n.state.field(Si);t==null?this.cursor!=null&&((e=this.cursor)===null||e===void 0||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(n.startState.field(Si)!=t||n.docChanged||n.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:n}=this,e=n.state.field(Si),t=e!=null&&n.coordsAtPos(e);if(!t)return null;let i=n.scrollDOM.getBoundingClientRect();return{left:t.left-i.left+n.scrollDOM.scrollLeft*n.scaleX,top:t.top-i.top+n.scrollDOM.scrollTop*n.scaleY,height:t.bottom-t.top}}drawCursor(n){if(this.cursor){let{scaleX:e,scaleY:t}=this.view;n?(this.cursor.style.left=n.left/e+"px",this.cursor.style.top=n.top/t+"px",this.cursor.style.height=n.height/t+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(n){this.view.state.field(Si)!=n&&this.view.dispatch({effects:xa.of(n)})}},{eventObservers:{dragover(n){this.setDropPos(this.view.posAtCoords({x:n.clientX,y:n.clientY}))},dragleave(n){(n.target==this.view.contentDOM||!this.view.contentDOM.contains(n.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function P6(){return[Si,B6]}function L2(n,e,t,i,s){e.lastIndex=0;for(let o=n.iterRange(t,i),r=t,l;!o.next().done;r+=o.value.length)if(!o.lineBreak)for(;l=e.exec(o.value);)s(r+l.index,l)}function E6(n,e){let t=n.visibleRanges;if(t.length==1&&t[0].from==n.viewport.from&&t[0].to==n.viewport.to)return t;let i=[];for(let{from:s,to:o}of t)s=Math.max(n.state.doc.lineAt(s).from,s-e),o=Math.min(n.state.doc.lineAt(o).to,o+e),i.length&&i[i.length-1].to>=s?i[i.length-1].to=o:i.push({from:s,to:o});return i}class V6{constructor(e){const{regexp:t,decoration:i,decorate:s,boundary:o,maxLength:r=1e3}=e;if(!t.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=t,s)this.addMatch=(l,a,c,h)=>s(h,c,c+l[0].length,l,a);else if(typeof i=="function")this.addMatch=(l,a,c,h)=>{let f=i(l,a,c);f&&h(c,c+l[0].length,f)};else if(i)this.addMatch=(l,a,c,h)=>h(c,c+l[0].length,i);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=o,this.maxLength=r}createDeco(e){let t=new ut,i=t.add.bind(t);for(let{from:s,to:o}of E6(e,this.maxLength))L2(e.state.doc,this.regexp,s,o,(r,l)=>this.addMatch(l,e,r,i));return t.finish()}updateDeco(e,t){let i=1e9,s=-1;return e.docChanged&&e.changes.iterChanges((o,r,l,a)=>{a>=e.view.viewport.from&&l<=e.view.viewport.to&&(i=Math.min(l,i),s=Math.max(a,s))}),e.viewportMoved||s-i>1e3?this.createDeco(e.view):s>-1?this.updateRange(e.view,t.map(e.changes),i,s):t}updateRange(e,t,i,s){for(let o of e.visibleRanges){let r=Math.max(o.from,i),l=Math.min(o.to,s);if(l>=r){let a=e.state.doc.lineAt(r),c=a.to<l?e.state.doc.lineAt(l):a,h=Math.max(o.from,a.from),f=Math.min(o.to,c.to);if(this.boundary){for(;r>a.from;r--)if(this.boundary.test(a.text[r-1-a.from])){h=r;break}for(;l<c.to;l++)if(this.boundary.test(c.text[l-c.from])){f=l;break}}let d=[],p,g=(m,v,b)=>d.push(b.range(m,v));if(a==c)for(this.regexp.lastIndex=h-a.from;(p=this.regexp.exec(a.text))&&p.index<f-a.from;)this.addMatch(p,e,p.index+a.from,g);else L2(e.state.doc,this.regexp,h,f,(m,v)=>this.addMatch(v,e,m,g));t=t.update({filterFrom:h,filterTo:f,filter:(m,v)=>m<h||v>f,add:d})}}return t}}const R0=/x/.unicode!=null?"gu":"g",z6=new RegExp(`[\0-\b
|
|
11
|
+
--\u2028\u2029\uFEFF-]`,R0),L6={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let Rs=null;function R6(){var n;if(Rs==null&&typeof document<"u"&&document.body){let e=document.body.style;Rs=((n=e.tabSize)!==null&&n!==void 0?n:e.MozTabSize)!=null}return Rs||!1}const En=L.define({combine(n){let e=rt(n,{render:null,specialChars:z6,addSpecialChars:null});return(e.replaceTabs=!R6())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,R0)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,R0)),e}});function N6(n={}){return[En.of(n),I6()]}let R2=null;function I6(){return R2||(R2=re.fromClass(class{constructor(n){this.view=n,this.decorations=I.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(n.state.facet(En)),this.decorations=this.decorator.createDeco(n)}makeDecorator(n){return new V6({regexp:n.specialChars,decoration:(e,t,i)=>{let{doc:s}=t.state,o=Oe(e[0],0);if(o==9){let r=s.lineAt(i),l=t.state.tabSize,a=ui(r.text,l,i-r.from);return I.replace({widget:new F6((l-a%l)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[o]||(this.decorationCache[o]=I.replace({widget:new W6(n,o)}))},boundary:n.replaceTabs?void 0:/[^]/})}update(n){let e=n.state.facet(En);n.startState.facet(En)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(n.view)):this.decorations=this.decorator.updateDeco(n,this.decorations)}},{decorations:n=>n.decorations}))}const H6="•";function $6(n){return n>=32?H6:n==10?"":String.fromCharCode(9216+n)}class W6 extends Dt{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=$6(this.code),i=e.state.phrase("Control character")+" "+(L6[this.code]||"0x"+this.code.toString(16)),s=this.options.render&&this.options.render(this.code,i,t);if(s)return s;let o=document.createElement("span");return o.textContent=t,o.title=i,o.setAttribute("aria-label",i),o.className="cm-specialChar",o}ignoreEvent(){return!1}}class F6 extends Dt{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}function G6(){return q6}const j6=I.line({class:"cm-activeLine"}),q6=re.fromClass(class{constructor(n){this.decorations=this.getDeco(n)}update(n){(n.docChanged||n.selectionSet)&&(this.decorations=this.getDeco(n.view))}getDeco(n){let e=-1,t=[];for(let i of n.state.selection.ranges){let s=n.lineBlockAt(i.head);s.from>e&&(t.push(j6.range(s.from)),e=s.from)}return I.set(t)}},{decorations:n=>n.decorations}),N0=2e3;function U6(n,e,t){let i=Math.min(e.line,t.line),s=Math.max(e.line,t.line),o=[];if(e.off>N0||t.off>N0||e.col<0||t.col<0){let r=Math.min(e.off,t.off),l=Math.max(e.off,t.off);for(let a=i;a<=s;a++){let c=n.doc.line(a);c.length<=l&&o.push(M.range(c.from+r,c.to+l))}}else{let r=Math.min(e.col,t.col),l=Math.max(e.col,t.col);for(let a=i;a<=s;a++){let c=n.doc.line(a),h=m0(c.text,r,n.tabSize,!0);if(h<0)o.push(M.cursor(c.to));else{let f=m0(c.text,l,n.tabSize);o.push(M.range(c.from+h,c.from+f))}}}return o}function Y6(n,e){let t=n.coordsAtPos(n.viewport.from);return t?Math.round(Math.abs((t.left-e)/n.defaultCharacterWidth)):-1}function N2(n,e){let t=n.posAtCoords({x:e.clientX,y:e.clientY},!1),i=n.state.doc.lineAt(t),s=t-i.from,o=s>N0?-1:s==i.length?Y6(n,e.clientX):ui(i.text,n.state.tabSize,t-i.from);return{line:i.number,col:o,off:s}}function K6(n,e){let t=N2(n,e),i=n.state.selection;return t?{update(s){if(s.docChanged){let o=s.changes.mapPos(s.startState.doc.line(t.line).from),r=s.state.doc.lineAt(o);t={line:r.number,col:t.col,off:Math.min(t.off,r.length)},i=i.map(s.changes)}},get(s,o,r){let l=N2(n,s);if(!l)return i;let a=U6(n.state,t,l);return a.length?r?M.create(a.concat(i.ranges)):M.create(a):i}}:null}function X6(n){let e=t=>t.altKey&&t.button==0;return z.mouseSelectionStyle.of((t,i)=>e(i)?K6(t,i):null)}const Q6={Alt:[18,n=>!!n.altKey],Control:[17,n=>!!n.ctrlKey],Shift:[16,n=>!!n.shiftKey],Meta:[91,n=>!!n.metaKey]},J6={style:"cursor: crosshair"};function Z6(n={}){let[e,t]=Q6[n.key||"Alt"],i=re.fromClass(class{constructor(s){this.view=s,this.isDown=!1}set(s){this.isDown!=s&&(this.isDown=s,this.view.update([]))}},{eventObservers:{keydown(s){this.set(s.keyCode==e||t(s))},keyup(s){(s.keyCode==e||!t(s))&&this.set(!1)},mousemove(s){this.set(t(s))}}});return[i,z.contentAttributes.of(s=>{var o;return!((o=s.plugin(i))===null||o===void 0)&&o.isDown?J6:null})]}const mi="-10000px";class ya{constructor(e,t,i,s){this.facet=t,this.createTooltipView=i,this.removeTooltipView=s,this.input=e.state.facet(t),this.tooltips=this.input.filter(r=>r);let o=null;this.tooltipViews=this.tooltips.map(r=>o=i(r,o))}update(e,t){var i;let s=e.state.facet(this.facet),o=s.filter(a=>a);if(s===this.input){for(let a of this.tooltipViews)a.update&&a.update(e);return!1}let r=[],l=t?[]:null;for(let a=0;a<o.length;a++){let c=o[a],h=-1;if(c){for(let f=0;f<this.tooltips.length;f++){let d=this.tooltips[f];d&&d.create==c.create&&(h=f)}if(h<0)r[a]=this.createTooltipView(c,a?r[a-1]:null),l&&(l[a]=!!c.above);else{let f=r[a]=this.tooltipViews[h];l&&(l[a]=t[h]),f.update&&f.update(e)}}}for(let a of this.tooltipViews)r.indexOf(a)<0&&(this.removeTooltipView(a),(i=a.destroy)===null||i===void 0||i.call(a));return t&&(l.forEach((a,c)=>t[c]=a),t.length=l.length),this.input=s,this.tooltips=o,this.tooltipViews=r,!0}}function e4(n){let e=n.dom.ownerDocument.documentElement;return{top:0,left:0,bottom:e.clientHeight,right:e.clientWidth}}const Ns=L.define({combine:n=>{var e,t,i;return{position:V.ios?"absolute":((e=n.find(s=>s.position))===null||e===void 0?void 0:e.position)||"fixed",parent:((t=n.find(s=>s.parent))===null||t===void 0?void 0:t.parent)||null,tooltipSpace:((i=n.find(s=>s.tooltipSpace))===null||i===void 0?void 0:i.tooltipSpace)||e4}}}),I2=new WeakMap,vo=re.fromClass(class{constructor(n){this.view=n,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let e=n.state.facet(Ns);this.position=e.position,this.parent=e.parent,this.classes=n.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver=typeof ResizeObserver=="function"?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new ya(n,wo,(t,i)=>this.createTooltip(t,i),t=>{this.resizeObserver&&this.resizeObserver.unobserve(t.dom),t.dom.remove()}),this.above=this.manager.tooltips.map(t=>!!t.above),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(t=>{Date.now()>this.lastTransaction-50&&t.length>0&&t[t.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),n.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let n of this.manager.tooltipViews)this.intersectionObserver.observe(n.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(n){n.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(n,this.above);e&&this.observeIntersection();let t=e||n.geometryChanged,i=n.state.facet(Ns);if(i.position!=this.position&&!this.madeAbsolute){this.position=i.position;for(let s of this.manager.tooltipViews)s.dom.style.position=this.position;t=!0}if(i.parent!=this.parent){this.parent&&this.container.remove(),this.parent=i.parent,this.createContainer();for(let s of this.manager.tooltipViews)this.container.appendChild(s.dom);t=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);t&&this.maybeMeasure()}createTooltip(n,e){let t=n.create(this.view),i=e?e.dom:null;if(t.dom.classList.add("cm-tooltip"),n.arrow&&!t.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let s=document.createElement("div");s.className="cm-tooltip-arrow",t.dom.appendChild(s)}return t.dom.style.position=this.position,t.dom.style.top=mi,t.dom.style.left="0px",this.container.insertBefore(t.dom,i),t.mount&&t.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(t.dom),t}destroy(){var n,e,t;this.view.win.removeEventListener("resize",this.measureSoon);for(let i of this.manager.tooltipViews)i.dom.remove(),(n=i.destroy)===null||n===void 0||n.call(i);this.parent&&this.container.remove(),(e=this.resizeObserver)===null||e===void 0||e.disconnect(),(t=this.intersectionObserver)===null||t===void 0||t.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let n=1,e=1,t=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:o}=this.manager.tooltipViews[0];if(V.gecko)t=o.offsetParent!=this.container.ownerDocument.body;else if(o.style.top==mi&&o.style.left=="0px"){let r=o.getBoundingClientRect();t=Math.abs(r.top+1e4)>1||Math.abs(r.left)>1}}if(t||this.position=="absolute")if(this.parent){let o=this.parent.getBoundingClientRect();o.width&&o.height&&(n=o.width/this.parent.offsetWidth,e=o.height/this.parent.offsetHeight)}else({scaleX:n,scaleY:e}=this.view.viewState);let i=this.view.scrollDOM.getBoundingClientRect(),s=uo(this.view);return{visible:{left:i.left+s.left,top:i.top+s.top,right:i.right-s.right,bottom:i.bottom-s.bottom},parent:this.parent?this.container.getBoundingClientRect():this.view.dom.getBoundingClientRect(),pos:this.manager.tooltips.map((o,r)=>{let l=this.manager.tooltipViews[r];return l.getCoords?l.getCoords(o.pos):this.view.coordsAtPos(o.pos)}),size:this.manager.tooltipViews.map(({dom:o})=>o.getBoundingClientRect()),space:this.view.state.facet(Ns).tooltipSpace(this.view),scaleX:n,scaleY:e,makeAbsolute:t}}writeMeasure(n){var e;if(n.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let l of this.manager.tooltipViews)l.dom.style.position="absolute"}let{visible:t,space:i,scaleX:s,scaleY:o}=n,r=[];for(let l=0;l<this.manager.tooltips.length;l++){let a=this.manager.tooltips[l],c=this.manager.tooltipViews[l],{dom:h}=c,f=n.pos[l],d=n.size[l];if(!f||a.clip!==!1&&(f.bottom<=Math.max(t.top,i.top)||f.top>=Math.min(t.bottom,i.bottom)||f.right<Math.max(t.left,i.left)-.1||f.left>Math.min(t.right,i.right)+.1)){h.style.top=mi;continue}let p=a.arrow?c.dom.querySelector(".cm-tooltip-arrow"):null,g=p?7:0,m=d.right-d.left,v=(e=I2.get(c))!==null&&e!==void 0?e:d.bottom-d.top,b=c.offset||i4,x=this.view.textDirection==Z.LTR,k=d.width>i.right-i.left?x?i.left:i.right-d.width:x?Math.max(i.left,Math.min(f.left-(p?14:0)+b.x,i.right-m)):Math.min(Math.max(i.left,f.left-m+(p?14:0)-b.x),i.right-m),_=this.above[l];!a.strictSide&&(_?f.top-v-g-b.y<i.top:f.bottom+v+g+b.y>i.bottom)&&_==i.bottom-f.bottom>f.top-i.top&&(_=this.above[l]=!_);let y=(_?f.top-i.top:i.bottom-f.bottom)-g;if(y<v&&c.resize!==!1){if(y<this.view.defaultLineHeight){h.style.top=mi;continue}I2.set(c,v),h.style.height=(v=y)/o+"px"}else h.style.height&&(h.style.height="");let S=_?f.top-v-g-b.y:f.bottom+g+b.y,C=k+m;if(c.overlap!==!0)for(let P of r)P.left<C&&P.right>k&&P.top<S+v&&P.bottom>S&&(S=_?P.top-v-2-g:P.bottom+g+2);if(this.position=="absolute"?(h.style.top=(S-n.parent.top)/o+"px",H2(h,(k-n.parent.left)/s)):(h.style.top=S/o+"px",H2(h,k/s)),p){let P=f.left+(x?b.x:-b.x)-(k+14-7);p.style.left=P/s+"px"}c.overlap!==!0&&r.push({left:k,top:S,right:C,bottom:S+v}),h.classList.toggle("cm-tooltip-above",_),h.classList.toggle("cm-tooltip-below",!_),c.positioned&&c.positioned(n.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let n of this.manager.tooltipViews)n.dom.style.top=mi}},{eventObservers:{scroll(){this.maybeMeasure()}}});function H2(n,e){let t=parseInt(n.style.left,10);(isNaN(t)||Math.abs(e-t)>1)&&(n.style.left=e+"px")}const t4=z.baseTheme({".cm-tooltip":{zIndex:500,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),i4={x:0,y:0},wo=L.define({enables:[vo,t4]}),qn=L.define({combine:n=>n.reduce((e,t)=>e.concat(t),[])});class ws{static create(e){return new ws(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new ya(e,qn,(t,i)=>this.createHostedView(t,i),t=>t.dom.remove())}createHostedView(e,t){let i=e.create(this.view);return i.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(i.dom,t?t.dom.nextSibling:this.dom.firstChild),this.mounted&&i.mount&&i.mount(this.view),i}mount(e){for(let t of this.manager.tooltipViews)t.mount&&t.mount(e);this.mounted=!0}positioned(e){for(let t of this.manager.tooltipViews)t.positioned&&t.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let t of this.manager.tooltipViews)(e=t.destroy)===null||e===void 0||e.call(t)}passProp(e){let t;for(let i of this.manager.tooltipViews){let s=i[e];if(s!==void 0){if(t===void 0)t=s;else if(t!==s)return}}return t}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const n4=wo.compute([qn],n=>{let e=n.facet(qn);return e.length===0?null:{pos:Math.min(...e.map(t=>t.pos)),end:Math.max(...e.map(t=>{var i;return(i=t.end)!==null&&i!==void 0?i:t.pos})),create:ws.create,above:e[0].above,arrow:e.some(t=>t.arrow)}});class s4{constructor(e,t,i,s,o){this.view=e,this.source=t,this.field=i,this.setHover=s,this.hoverTime=o,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active.length)return;let e=Date.now()-this.lastMove.time;e<this.hoverTime?this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime-e):this.startHover()}startHover(){clearTimeout(this.restartTimeout);let{view:e,lastMove:t}=this,i=e.docView.nearest(t.target);if(!i)return;let s,o=1;if(i instanceof bt)s=i.posAtStart;else{if(s=e.posAtCoords(t),s==null)return;let l=e.coordsAtPos(s);if(!l||t.y<l.top||t.y>l.bottom||t.x<l.left-e.defaultCharacterWidth||t.x>l.right+e.defaultCharacterWidth)return;let a=e.bidiSpans(e.state.doc.lineAt(s)).find(h=>h.from<=s&&h.to>=s),c=a&&a.dir==Z.RTL?-1:1;o=t.x<l.left?-c:c}let r=this.source(e,s,o);if(r!=null&&r.then){let l=this.pending={pos:s};r.then(a=>{this.pending==l&&(this.pending=null,a&&!(Array.isArray(a)&&!a.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(a)?a:[a])}))},a=>Te(e.state,a,"hover tooltip"))}else r&&!(Array.isArray(r)&&!r.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(r)?r:[r])})}get tooltip(){let e=this.view.plugin(vo),t=e?e.manager.tooltips.findIndex(i=>i.create==ws.create):-1;return t>-1?e.manager.tooltipViews[t]:null}mousemove(e){var t,i;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:s,tooltip:o}=this;if(s.length&&o&&!o4(o.dom,e)||this.pending){let{pos:r}=s[0]||this.pending,l=(i=(t=s[0])===null||t===void 0?void 0:t.end)!==null&&i!==void 0?i:r;(r==l?this.view.posAtCoords(this.lastMove)!=r:!r4(this.view,r,l,e.clientX,e.clientY))&&(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:t}=this;if(t.length){let{tooltip:i}=this;i&&i.dom.contains(e.relatedTarget)?this.watchTooltipLeave(i.dom):this.view.dispatch({effects:this.setHover.of([])})}}watchTooltipLeave(e){let t=i=>{e.removeEventListener("mouseleave",t),this.active.length&&!this.view.dom.contains(i.relatedTarget)&&this.view.dispatch({effects:this.setHover.of([])})};e.addEventListener("mouseleave",t)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const pn=4;function o4(n,e){let{left:t,right:i,top:s,bottom:o}=n.getBoundingClientRect(),r;if(r=n.querySelector(".cm-tooltip-arrow")){let l=r.getBoundingClientRect();s=Math.min(l.top,s),o=Math.max(l.bottom,o)}return e.clientX>=t-pn&&e.clientX<=i+pn&&e.clientY>=s-pn&&e.clientY<=o+pn}function r4(n,e,t,i,s,o){let r=n.scrollDOM.getBoundingClientRect(),l=n.documentTop+n.documentPadding.top+n.contentHeight;if(r.left>i||r.right<i||r.top>s||Math.min(r.bottom,l)<s)return!1;let a=n.posAtCoords({x:i,y:s},!1);return a>=e&&a<=t}function l4(n,e={}){let t=$.define(),i=me.define({create(){return[]},update(s,o){if(s.length&&(e.hideOnChange&&(o.docChanged||o.selection)?s=[]:e.hideOn&&(s=s.filter(r=>!e.hideOn(o,r))),o.docChanged)){let r=[];for(let l of s){let a=o.changes.mapPos(l.pos,-1,ye.TrackDel);if(a!=null){let c=Object.assign(Object.create(null),l);c.pos=a,c.end!=null&&(c.end=o.changes.mapPos(c.end)),r.push(c)}}s=r}for(let r of o.effects)r.is(t)&&(s=r.value),r.is(a4)&&(s=[]);return s},provide:s=>qn.from(s)});return{active:i,extension:[i,re.define(s=>new s4(s,n,i,t,e.hoverTime||300)),n4]}}function ka(n,e){let t=n.plugin(vo);if(!t)return null;let i=t.manager.tooltips.indexOf(e);return i<0?null:t.manager.tooltipViews[i]}const a4=$.define(),$2=L.define({combine(n){let e,t;for(let i of n)e=e||i.topContainer,t=t||i.bottomContainer;return{topContainer:e,bottomContainer:t}}});function Ii(n,e){let t=n.plugin(Sa),i=t?t.specs.indexOf(e):-1;return i>-1?t.panels[i]:null}const Sa=re.fromClass(class{constructor(n){this.input=n.state.facet(Hi),this.specs=this.input.filter(t=>t),this.panels=this.specs.map(t=>t(n));let e=n.state.facet($2);this.top=new gn(n,!0,e.topContainer),this.bottom=new gn(n,!1,e.bottomContainer),this.top.sync(this.panels.filter(t=>t.top)),this.bottom.sync(this.panels.filter(t=>!t.top));for(let t of this.panels)t.dom.classList.add("cm-panel"),t.mount&&t.mount()}update(n){let e=n.state.facet($2);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new gn(n.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new gn(n.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let t=n.state.facet(Hi);if(t!=this.input){let i=t.filter(a=>a),s=[],o=[],r=[],l=[];for(let a of i){let c=this.specs.indexOf(a),h;c<0?(h=a(n.view),l.push(h)):(h=this.panels[c],h.update&&h.update(n)),s.push(h),(h.top?o:r).push(h)}this.specs=i,this.panels=s,this.top.sync(o),this.bottom.sync(r);for(let a of l)a.dom.classList.add("cm-panel"),a.mount&&a.mount()}else for(let i of this.panels)i.update&&i.update(n)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:n=>z.scrollMargins.of(e=>{let t=e.plugin(n);return t&&{top:t.top.scrollMargin(),bottom:t.bottom.scrollMargin()}})});class gn{constructor(e,t,i){this.view=e,this.top=t,this.container=i,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let t of this.panels)t.destroy&&e.indexOf(t)<0&&t.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let t=this.container||this.view.dom;t.insertBefore(this.dom,this.top?t.firstChild:null)}let e=this.dom.firstChild;for(let t of this.panels)if(t.dom.parentNode==this.dom){for(;e!=t.dom;)e=W2(e);e=e.nextSibling}else this.dom.insertBefore(t.dom,e);for(;e;)e=W2(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function W2(n){let e=n.nextSibling;return n.remove(),e}const Hi=L.define({enables:Sa});class dt extends Nt{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}dt.prototype.elementClass="";dt.prototype.toDOM=void 0;dt.prototype.mapMode=ye.TrackBefore;dt.prototype.startSide=dt.prototype.endSide=-1;dt.prototype.point=!0;const Vn=L.define(),c4=L.define(),h4={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>j.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{},side:"before"},Di=L.define();function u4(n){return[Ca(),Di.of({...h4,...n})]}const F2=L.define({combine:n=>n.some(e=>e)});function Ca(n){return[f4]}const f4=re.fromClass(class{constructor(n){this.view=n,this.domAfter=null,this.prevViewport=n.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters cm-gutters-before",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=n.state.facet(Di).map(e=>new j2(n,e)),this.fixed=!n.state.facet(F2);for(let e of this.gutters)e.config.side=="after"?this.getDOMAfter().appendChild(e.dom):this.dom.appendChild(e.dom);this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),n.scrollDOM.insertBefore(this.dom,n.contentDOM)}getDOMAfter(){return this.domAfter||(this.domAfter=document.createElement("div"),this.domAfter.className="cm-gutters cm-gutters-after",this.domAfter.setAttribute("aria-hidden","true"),this.domAfter.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.domAfter.style.position=this.fixed?"sticky":"",this.view.scrollDOM.appendChild(this.domAfter)),this.domAfter}update(n){if(this.updateGutters(n)){let e=this.prevViewport,t=n.view.viewport,i=Math.min(e.to,t.to)-Math.max(e.from,t.from);this.syncGutters(i<(t.to-t.from)*.8)}if(n.geometryChanged){let e=this.view.contentHeight/this.view.scaleY+"px";this.dom.style.minHeight=e,this.domAfter&&(this.domAfter.style.minHeight=e)}this.view.state.facet(F2)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":"",this.domAfter&&(this.domAfter.style.position=this.fixed?"sticky":"")),this.prevViewport=n.view.viewport}syncGutters(n){let e=this.dom.nextSibling;n&&(this.dom.remove(),this.domAfter&&this.domAfter.remove());let t=j.iter(this.view.state.facet(Vn),this.view.viewport.from),i=[],s=this.gutters.map(o=>new d4(o,this.view.viewport,-this.view.documentPadding.top));for(let o of this.view.viewportLineBlocks)if(i.length&&(i=[]),Array.isArray(o.type)){let r=!0;for(let l of o.type)if(l.type==ke.Text&&r){I0(t,i,l.from);for(let a of s)a.line(this.view,l,i);r=!1}else if(l.widget)for(let a of s)a.widget(this.view,l)}else if(o.type==ke.Text){I0(t,i,o.from);for(let r of s)r.line(this.view,o,i)}else if(o.widget)for(let r of s)r.widget(this.view,o);for(let o of s)o.finish();n&&(this.view.scrollDOM.insertBefore(this.dom,e),this.domAfter&&this.view.scrollDOM.appendChild(this.domAfter))}updateGutters(n){let e=n.startState.facet(Di),t=n.state.facet(Di),i=n.docChanged||n.heightChanged||n.viewportChanged||!j.eq(n.startState.facet(Vn),n.state.facet(Vn),n.view.viewport.from,n.view.viewport.to);if(e==t)for(let s of this.gutters)s.update(n)&&(i=!0);else{i=!0;let s=[];for(let o of t){let r=e.indexOf(o);r<0?s.push(new j2(this.view,o)):(this.gutters[r].update(n),s.push(this.gutters[r]))}for(let o of this.gutters)o.dom.remove(),s.indexOf(o)<0&&o.destroy();for(let o of s)o.config.side=="after"?this.getDOMAfter().appendChild(o.dom):this.dom.appendChild(o.dom);this.gutters=s}return i}destroy(){for(let n of this.gutters)n.destroy();this.dom.remove(),this.domAfter&&this.domAfter.remove()}},{provide:n=>z.scrollMargins.of(e=>{let t=e.plugin(n);if(!t||t.gutters.length==0||!t.fixed)return null;let i=t.dom.offsetWidth*e.scaleX,s=t.domAfter?t.domAfter.offsetWidth*e.scaleX:0;return e.textDirection==Z.LTR?{left:i,right:s}:{right:i,left:s}})});function G2(n){return Array.isArray(n)?n:[n]}function I0(n,e,t){for(;n.value&&n.from<=t;)n.from==t&&e.push(n.value),n.next()}class d4{constructor(e,t,i){this.gutter=e,this.height=i,this.i=0,this.cursor=j.iter(e.markers,t.from)}addElement(e,t,i){let{gutter:s}=this,o=(t.top-this.height)/e.scaleY,r=t.height/e.scaleY;if(this.i==s.elements.length){let l=new _a(e,r,o,i);s.elements.push(l),s.dom.appendChild(l.dom)}else s.elements[this.i].update(e,r,o,i);this.height=t.bottom,this.i++}line(e,t,i){let s=[];I0(this.cursor,s,t.from),i.length&&(s=s.concat(i));let o=this.gutter.config.lineMarker(e,t,s);o&&s.unshift(o);let r=this.gutter;s.length==0&&!r.config.renderEmptyElements||this.addElement(e,t,s)}widget(e,t){let i=this.gutter.config.widgetMarker(e,t.widget,t),s=i?[i]:null;for(let o of e.state.facet(c4)){let r=o(e,t.widget,t);r&&(s||(s=[])).push(r)}s&&this.addElement(e,t,s)}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}}class j2{constructor(e,t){this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let i in t.domEventHandlers)this.dom.addEventListener(i,s=>{let o=s.target,r;if(o!=this.dom&&this.dom.contains(o)){for(;o.parentNode!=this.dom;)o=o.parentNode;let a=o.getBoundingClientRect();r=(a.top+a.bottom)/2}else r=s.clientY;let l=e.lineBlockAtHeight(r-e.documentTop);t.domEventHandlers[i](e,l,s)&&s.preventDefault()});this.markers=G2(t.markers(e)),t.initialSpacer&&(this.spacer=new _a(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=G2(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let s=this.config.updateSpacer(this.spacer.markers[0],e);s!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[s])}let i=e.view.viewport;return!j.eq(this.markers,t,i.from,i.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):!1)}destroy(){for(let e of this.elements)e.destroy()}}class _a{constructor(e,t,i,s){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,i,s)}update(e,t,i,s){this.height!=t&&(this.height=t,this.dom.style.height=t+"px"),this.above!=i&&(this.dom.style.marginTop=(this.above=i)?i+"px":""),p4(this.markers,s)||this.setMarkers(e,s)}setMarkers(e,t){let i="cm-gutterElement",s=this.dom.firstChild;for(let o=0,r=0;;){let l=r,a=o<t.length?t[o++]:null,c=!1;if(a){let h=a.elementClass;h&&(i+=" "+h);for(let f=r;f<this.markers.length;f++)if(this.markers[f].compare(a)){l=f,c=!0;break}}else l=this.markers.length;for(;r<l;){let h=this.markers[r++];if(h.toDOM){h.destroy(s);let f=s.nextSibling;s.remove(),s=f}}if(!a)break;a.toDOM&&(c?s=s.nextSibling:this.dom.insertBefore(a.toDOM(e),s)),c&&r++}this.dom.className=i,this.markers=t}destroy(){this.setMarkers(null,[])}}function p4(n,e){if(n.length!=e.length)return!1;for(let t=0;t<n.length;t++)if(!n[t].compare(e[t]))return!1;return!0}const g4=L.define(),m4=L.define(),Kt=L.define({combine(n){return rt(n,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,t){let i=Object.assign({},e);for(let s in t){let o=i[s],r=t[s];i[s]=o?(l,a,c)=>o(l,a,c)||r(l,a,c):r}return i}})}});class Is extends dt{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function Hs(n,e){return n.state.facet(Kt).formatNumber(e,n.state)}const v4=Di.compute([Kt],n=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet(g4)},lineMarker(e,t,i){return i.some(s=>s.toDOM)?null:new Is(Hs(e,e.state.doc.lineAt(t.from).number))},widgetMarker:(e,t,i)=>{for(let s of e.state.facet(m4)){let o=s(e,t,i);if(o)return o}return null},lineMarkerChange:e=>e.startState.facet(Kt)!=e.state.facet(Kt),initialSpacer(e){return new Is(Hs(e,q2(e.state.doc.lines)))},updateSpacer(e,t){let i=Hs(t.view,q2(t.view.state.doc.lines));return i==e.number?e:new Is(i)},domEventHandlers:n.facet(Kt).domEventHandlers,side:"before"}));function w4(n={}){return[Kt.of(n),Ca(),v4]}function q2(n){let e=9;for(;e<n;)e=e*10+9;return e}const b4=new class extends dt{constructor(){super(...arguments),this.elementClass="cm-activeLineGutter"}},x4=Vn.compute(["selection"],n=>{let e=[],t=-1;for(let i of n.selection.ranges){let s=n.doc.lineAt(i.head).from;s>t&&(t=s,e.push(b4.range(s)))}return j.of(e)});function y4(){return x4}const Oa=1024;let k4=0;class $s{constructor(e,t){this.from=e,this.to=t}}class W{constructor(e={}){this.id=k4++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=Be.match(e)),t=>{let i=e(t);return i===void 0?null:[this,i]}}}W.closedBy=new W({deserialize:n=>n.split(" ")});W.openedBy=new W({deserialize:n=>n.split(" ")});W.group=new W({deserialize:n=>n.split(" ")});W.isolate=new W({deserialize:n=>{if(n&&n!="rtl"&&n!="ltr"&&n!="auto")throw new RangeError("Invalid value for isolate: "+n);return n||"auto"}});W.contextHash=new W({perNode:!0});W.lookAhead=new W({perNode:!0});W.mounted=new W({perNode:!0});class Un{constructor(e,t,i){this.tree=e,this.overlay=t,this.parser=i}static get(e){return e&&e.props&&e.props[W.mounted.id]}}const S4=Object.create(null);class Be{constructor(e,t,i,s=0){this.name=e,this.props=t,this.id=i,this.flags=s}static define(e){let t=e.props&&e.props.length?Object.create(null):S4,i=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),s=new Be(e.name||"",t,e.id,i);if(e.props){for(let o of e.props)if(Array.isArray(o)||(o=o(s)),o){if(o[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[o[0].id]=o[1]}}return s}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let t=this.prop(W.group);return t?t.indexOf(e)>-1:!1}return this.id==e}static match(e){let t=Object.create(null);for(let i in e)for(let s of i.split(" "))t[s]=e[i];return i=>{for(let s=i.prop(W.group),o=-1;o<(s?s.length:0);o++){let r=t[o<0?i.name:s[o]];if(r)return r}}}}Be.none=new Be("",Object.create(null),0,8);class bo{constructor(e){this.types=e;for(let t=0;t<e.length;t++)if(e[t].id!=t)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let t=[];for(let i of this.types){let s=null;for(let o of e){let r=o(i);r&&(s||(s=Object.assign({},i.props)),s[r[0].id]=r[1])}t.push(s?new Be(i.name,s,i.id,i.flags):i)}return new bo(t)}}const mn=new WeakMap,U2=new WeakMap;var he;(function(n){n[n.ExcludeBuffers=1]="ExcludeBuffers",n[n.IncludeAnonymous=2]="IncludeAnonymous",n[n.IgnoreMounts=4]="IgnoreMounts",n[n.IgnoreOverlays=8]="IgnoreOverlays"})(he||(he={}));class oe{constructor(e,t,i,s,o){if(this.type=e,this.children=t,this.positions=i,this.length=s,this.props=null,o&&o.length){this.props=Object.create(null);for(let[r,l]of o)this.props[typeof r=="number"?r:r.id]=l}}toString(){let e=Un.get(this);if(e&&!e.overlay)return e.tree.toString();let t="";for(let i of this.children){let s=i.toString();s&&(t&&(t+=","),t+=s)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(t.length?"("+t+")":""):t}cursor(e=0){return new $0(this.topNode,e)}cursorAt(e,t=0,i=0){let s=mn.get(this)||this.topNode,o=new $0(s);return o.moveTo(e,t),mn.set(this,o._tree),o}get topNode(){return new $e(this,0,0,null)}resolve(e,t=0){let i=$i(mn.get(this)||this.topNode,e,t,!1);return mn.set(this,i),i}resolveInner(e,t=0){let i=$i(U2.get(this)||this.topNode,e,t,!0);return U2.set(this,i),i}resolveStack(e,t=0){return O4(this,e,t)}iterate(e){let{enter:t,leave:i,from:s=0,to:o=this.length}=e,r=e.mode||0,l=(r&he.IncludeAnonymous)>0;for(let a=this.cursor(r|he.IncludeAnonymous);;){let c=!1;if(a.from<=o&&a.to>=s&&(!l&&a.type.isAnonymous||t(a)!==!1)){if(a.firstChild())continue;c=!0}for(;c&&i&&(l||!a.type.isAnonymous)&&i(a),!a.nextSibling();){if(!a.parent())return;c=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:ko(Be.none,this.children,this.positions,0,this.children.length,0,this.length,(t,i,s)=>new oe(this.type,t,i,s,this.propValues),e.makeTree||((t,i,s)=>new oe(Be.none,t,i,s)))}static build(e){return M4(e)}}oe.empty=new oe(Be.none,[],[],0);class xo{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new xo(this.buffer,this.index)}}class Ot{constructor(e,t,i){this.buffer=e,this.length=t,this.set=i}get type(){return Be.none}toString(){let e=[];for(let t=0;t<this.buffer.length;)e.push(this.childString(t)),t=this.buffer[t+3];return e.join(",")}childString(e){let t=this.buffer[e],i=this.buffer[e+3],s=this.set.types[t],o=s.name;if(/\W/.test(o)&&!s.isError&&(o=JSON.stringify(o)),e+=4,i==e)return o;let r=[];for(;e<i;)r.push(this.childString(e)),e=this.buffer[e+3];return o+"("+r.join(",")+")"}findChild(e,t,i,s,o){let{buffer:r}=this,l=-1;for(let a=e;a!=t&&!(Ma(o,s,r[a+1],r[a+2])&&(l=a,i>0));a=r[a+3]);return l}slice(e,t,i){let s=this.buffer,o=new Uint16Array(t-e),r=0;for(let l=e,a=0;l<t;){o[a++]=s[l++],o[a++]=s[l++]-i;let c=o[a++]=s[l++]-i;o[a++]=s[l++]-e,r=Math.max(r,c)}return new Ot(o,r,this.set)}}function Ma(n,e,t,i){switch(n){case-2:return t<e;case-1:return i>=e&&t<e;case 0:return t<e&&i>e;case 1:return t<=e&&i>e;case 2:return i>e;case 4:return!0}}function $i(n,e,t,i){for(var s;n.from==n.to||(t<1?n.from>=e:n.from>e)||(t>-1?n.to<=e:n.to<e);){let r=!i&&n instanceof $e&&n.index<0?null:n.parent;if(!r)return n;n=r}let o=i?0:he.IgnoreOverlays;if(i)for(let r=n,l=r.parent;l;r=l,l=r.parent)r instanceof $e&&r.index<0&&((s=l.enter(e,t,o))===null||s===void 0?void 0:s.from)!=r.from&&(n=l);for(;;){let r=n.enter(e,t,o);if(!r)return n;n=r}}class Da{cursor(e=0){return new $0(this,e)}getChild(e,t=null,i=null){let s=Y2(this,e,t,i);return s.length?s[0]:null}getChildren(e,t=null,i=null){return Y2(this,e,t,i)}resolve(e,t=0){return $i(this,e,t,!1)}resolveInner(e,t=0){return $i(this,e,t,!0)}matchContext(e){return H0(this.parent,e)}enterUnfinishedNodesBefore(e){let t=this.childBefore(e),i=this;for(;t;){let s=t.lastChild;if(!s||s.to!=t.to)break;s.type.isError&&s.from==s.to?(i=t,t=s.prevSibling):t=s}return i}get node(){return this}get next(){return this.parent}}class $e extends Da{constructor(e,t,i,s){super(),this._tree=e,this.from=t,this.index=i,this._parent=s}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,t,i,s,o=0){for(let r=this;;){for(let{children:l,positions:a}=r._tree,c=t>0?l.length:-1;e!=c;e+=t){let h=l[e],f=a[e]+r.from;if(Ma(s,i,f,f+h.length)){if(h instanceof Ot){if(o&he.ExcludeBuffers)continue;let d=h.findChild(0,h.buffer.length,t,i-f,s);if(d>-1)return new yt(new C4(r,h,e,f),null,d)}else if(o&he.IncludeAnonymous||!h.type.isAnonymous||yo(h)){let d;if(!(o&he.IgnoreMounts)&&(d=Un.get(h))&&!d.overlay)return new $e(d.tree,f,e,r);let p=new $e(h,f,e,r);return o&he.IncludeAnonymous||!p.type.isAnonymous?p:p.nextChild(t<0?h.children.length-1:0,t,i,s)}}}if(o&he.IncludeAnonymous||!r.type.isAnonymous||(r.index>=0?e=r.index+t:e=t<0?-1:r._parent._tree.children.length,r=r._parent,!r))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,i=0){let s;if(!(i&he.IgnoreOverlays)&&(s=Un.get(this._tree))&&s.overlay){let o=e-this.from;for(let{from:r,to:l}of s.overlay)if((t>0?r<=o:r<o)&&(t<0?l>=o:l>o))return new $e(s.tree,s.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,i)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function Y2(n,e,t,i){let s=n.cursor(),o=[];if(!s.firstChild())return o;if(t!=null){for(let r=!1;!r;)if(r=s.type.is(t),!s.nextSibling())return o}for(;;){if(i!=null&&s.type.is(i))return o;if(s.type.is(e)&&o.push(s.node),!s.nextSibling())return i==null?o:[]}}function H0(n,e,t=e.length-1){for(let i=n;t>=0;i=i.parent){if(!i)return!1;if(!i.type.isAnonymous){if(e[t]&&e[t]!=i.name)return!1;t--}}return!0}class C4{constructor(e,t,i,s){this.parent=e,this.buffer=t,this.index=i,this.start=s}}class yt extends Da{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,i){super(),this.context=e,this._parent=t,this.index=i,this.type=e.buffer.set.types[e.buffer.buffer[i]]}child(e,t,i){let{buffer:s}=this.context,o=s.findChild(this.index+4,s.buffer[this.index+3],e,t-this.context.start,i);return o<0?null:new yt(this.context,this,o)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,i=0){if(i&he.ExcludeBuffers)return null;let{buffer:s}=this.context,o=s.findChild(this.index+4,s.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return o<0?null:new yt(this.context,this,o)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new yt(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new yt(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:i}=this.context,s=this.index+4,o=i.buffer[this.index+3];if(o>s){let r=i.buffer[this.index+1];e.push(i.slice(s,o,r)),t.push(0)}return new oe(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function Ta(n){if(!n.length)return null;let e=0,t=n[0];for(let o=1;o<n.length;o++){let r=n[o];(r.from>t.from||r.to<t.to)&&(t=r,e=o)}let i=t instanceof $e&&t.index<0?null:t.parent,s=n.slice();return i?s[e]=i:s.splice(e,1),new _4(s,t)}class _4{constructor(e,t){this.heads=e,this.node=t}get next(){return Ta(this.heads)}}function O4(n,e,t){let i=n.resolveInner(e,t),s=null;for(let o=i instanceof $e?i:i.context.parent;o;o=o.parent)if(o.index<0){let r=o.parent;(s||(s=[i])).push(r.resolve(e,t)),o=r}else{let r=Un.get(o.tree);if(r&&r.overlay&&r.overlay[0].from<=e&&r.overlay[r.overlay.length-1].to>=e){let l=new $e(r.tree,r.overlay[0].from+o.from,-1,o);(s||(s=[i])).push($i(l,e,t,!1))}}return s?Ta(s):i}class $0{get name(){return this.type.name}constructor(e,t=0){if(this.mode=t,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof $e)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let i=e._parent;i;i=i._parent)this.stack.unshift(i.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,t){this.index=e;let{start:i,buffer:s}=this.buffer;return this.type=t||s.set.types[s.buffer[e]],this.from=i+s.buffer[e+1],this.to=i+s.buffer[e+2],!0}yield(e){return e?e instanceof $e?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,i){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,i,this.mode));let{buffer:s}=this.buffer,o=s.findChild(this.index+4,s.buffer[this.index+3],e,t-this.buffer.start,i);return o<0?!1:(this.stack.push(this.index),this.yieldBuf(o))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,i=this.mode){return this.buffer?i&he.ExcludeBuffers?!1:this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,i))}parent(){if(!this.buffer)return this.yieldNode(this.mode&he.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&he.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:t}=this.buffer,i=this.stack.length-1;if(e<0){let s=i<0?0:this.stack[i]+4;if(this.index!=s)return this.yieldBuf(t.findChild(s,this.index,-1,0,4))}else{let s=t.buffer[this.index+3];if(s<(i<0?t.buffer.length:t.buffer[this.stack[i]+3]))return this.yieldBuf(s)}return i<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,i,{buffer:s}=this;if(s){if(e>0){if(this.index<s.buffer.buffer.length)return!1}else for(let o=0;o<this.index;o++)if(s.buffer.buffer[o+3]<this.index)return!1;({index:t,parent:i}=s)}else({index:t,_parent:i}=this._tree);for(;i;{index:t,_parent:i}=i)if(t>-1)for(let o=t+e,r=e<0?-1:i._tree.children.length;o!=r;o+=e){let l=i._tree.children[o];if(this.mode&he.IncludeAnonymous||l instanceof Ot||!l.type.isAnonymous||yo(l))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,t););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,t=null,i=0;if(e&&e.context==this.buffer)e:for(let s=this.index,o=this.stack.length;o>=0;){for(let r=e;r;r=r._parent)if(r.index==s){if(s==this.index)return r;t=r,i=o+1;break e}s=this.stack[--o]}for(let s=i;s<this.stack.length;s++)t=new yt(this.buffer,t,this.stack[s]);return this.bufferNode=new yt(this.buffer,t,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,t){for(let i=0;;){let s=!1;if(this.type.isAnonymous||e(this)!==!1){if(this.firstChild()){i++;continue}this.type.isAnonymous||(s=!0)}for(;;){if(s&&t&&t(this),s=this.type.isAnonymous,!i)return;if(this.nextSibling())break;this.parent(),i--,s=!0}}}matchContext(e){if(!this.buffer)return H0(this.node.parent,e);let{buffer:t}=this.buffer,{types:i}=t.set;for(let s=e.length-1,o=this.stack.length-1;s>=0;o--){if(o<0)return H0(this._tree,e,s);let r=i[t.buffer[this.stack[o]]];if(!r.isAnonymous){if(e[s]&&e[s]!=r.name)return!1;s--}}return!0}}function yo(n){return n.children.some(e=>e instanceof Ot||!e.type.isAnonymous||yo(e))}function M4(n){var e;let{buffer:t,nodeSet:i,maxBufferLength:s=Oa,reused:o=[],minRepeatType:r=i.types.length}=n,l=Array.isArray(t)?new xo(t,t.length):t,a=i.types,c=0,h=0;function f(y,S,C,P,O,w){let{id:A,start:T,end:D,size:N}=l,H=h,R=c;for(;N<0;)if(l.next(),N==-1){let Ce=o[A];C.push(Ce),P.push(T-y);return}else if(N==-3){c=A;return}else if(N==-4){h=A;return}else throw new RangeError(`Unrecognized record size: ${N}`);let F=a[A],ie,U,Q=T-y;if(D-T<=s&&(U=v(l.pos-S,O))){let Ce=new Uint16Array(U.size-U.skip),xe=l.pos-U.size,Pe=Ce.length;for(;l.pos>xe;)Pe=b(U.start,Ce,Pe);ie=new Ot(Ce,D-U.start,i),Q=U.start-y}else{let Ce=l.pos-N;l.next();let xe=[],Pe=[],Ye=A>=r?A:-1,Gt=0,en=D;for(;l.pos>Ce;)Ye>=0&&l.id==Ye&&l.size>=0?(l.end<=en-s&&(g(xe,Pe,T,Gt,l.end,en,Ye,H,R),Gt=xe.length,en=l.end),l.next()):w>2500?d(T,Ce,xe,Pe):f(T,Ce,xe,Pe,Ye,w+1);if(Ye>=0&&Gt>0&&Gt<xe.length&&g(xe,Pe,T,Gt,T,en,Ye,H,R),xe.reverse(),Pe.reverse(),Ye>-1&&Gt>0){let $o=p(F,R);ie=ko(F,xe,Pe,0,xe.length,0,D-T,$o,$o)}else ie=m(F,xe,Pe,D-T,H-D,R)}C.push(ie),P.push(Q)}function d(y,S,C,P){let O=[],w=0,A=-1;for(;l.pos>S;){let{id:T,start:D,end:N,size:H}=l;if(H>4)l.next();else{if(A>-1&&D<A)break;A<0&&(A=N-s),O.push(T,D,N),w++,l.next()}}if(w){let T=new Uint16Array(w*4),D=O[O.length-2];for(let N=O.length-3,H=0;N>=0;N-=3)T[H++]=O[N],T[H++]=O[N+1]-D,T[H++]=O[N+2]-D,T[H++]=H;C.push(new Ot(T,O[2]-D,i)),P.push(D-y)}}function p(y,S){return(C,P,O)=>{let w=0,A=C.length-1,T,D;if(A>=0&&(T=C[A])instanceof oe){if(!A&&T.type==y&&T.length==O)return T;(D=T.prop(W.lookAhead))&&(w=P[A]+T.length+D)}return m(y,C,P,O,w,S)}}function g(y,S,C,P,O,w,A,T,D){let N=[],H=[];for(;y.length>P;)N.push(y.pop()),H.push(S.pop()+C-O);y.push(m(i.types[A],N,H,w-O,T-w,D)),S.push(O-C)}function m(y,S,C,P,O,w,A){if(w){let T=[W.contextHash,w];A=A?[T].concat(A):[T]}if(O>25){let T=[W.lookAhead,O];A=A?[T].concat(A):[T]}return new oe(y,S,C,P,A)}function v(y,S){let C=l.fork(),P=0,O=0,w=0,A=C.end-s,T={size:0,start:0,skip:0};e:for(let D=C.pos-y;C.pos>D;){let N=C.size;if(C.id==S&&N>=0){T.size=P,T.start=O,T.skip=w,w+=4,P+=4,C.next();continue}let H=C.pos-N;if(N<0||H<D||C.start<A)break;let R=C.id>=r?4:0,F=C.start;for(C.next();C.pos>H;){if(C.size<0)if(C.size==-3)R+=4;else break e;else C.id>=r&&(R+=4);C.next()}O=F,P+=N,w+=R}return(S<0||P==y)&&(T.size=P,T.start=O,T.skip=w),T.size>4?T:void 0}function b(y,S,C){let{id:P,start:O,end:w,size:A}=l;if(l.next(),A>=0&&P<r){let T=C;if(A>4){let D=l.pos-(A-4);for(;l.pos>D;)C=b(y,S,C)}S[--C]=T,S[--C]=w-y,S[--C]=O-y,S[--C]=P}else A==-3?c=P:A==-4&&(h=P);return C}let x=[],k=[];for(;l.pos>0;)f(n.start||0,n.bufferStart||0,x,k,-1,0);let _=(e=n.length)!==null&&e!==void 0?e:x.length?k[0]+x[0].length:0;return new oe(a[n.topID],x.reverse(),k.reverse(),_)}const K2=new WeakMap;function zn(n,e){if(!n.isAnonymous||e instanceof Ot||e.type!=n)return 1;let t=K2.get(e);if(t==null){t=1;for(let i of e.children){if(i.type!=n||!(i instanceof oe)){t=1;break}t+=zn(n,i)}K2.set(e,t)}return t}function ko(n,e,t,i,s,o,r,l,a){let c=0;for(let g=i;g<s;g++)c+=zn(n,e[g]);let h=Math.ceil(c*1.5/8),f=[],d=[];function p(g,m,v,b,x){for(let k=v;k<b;){let _=k,y=m[k],S=zn(n,g[k]);for(k++;k<b;k++){let C=zn(n,g[k]);if(S+C>=h)break;S+=C}if(k==_+1){if(S>h){let C=g[_];p(C.children,C.positions,0,C.children.length,m[_]+x);continue}f.push(g[_])}else{let C=m[k-1]+g[k-1].length-y;f.push(ko(n,g,m,_,k,y,C,null,a))}d.push(y+x-o)}}return p(e,t,i,s,0),(l||a)(f,d,r)}class zt{constructor(e,t,i,s,o=!1,r=!1){this.from=e,this.to=t,this.tree=i,this.offset=s,this.open=(o?1:0)|(r?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,t=[],i=!1){let s=[new zt(0,e.length,e,0,!1,i)];for(let o of t)o.to>e.length&&s.push(o);return s}static applyChanges(e,t,i=128){if(!t.length)return e;let s=[],o=1,r=e.length?e[0]:null;for(let l=0,a=0,c=0;;l++){let h=l<t.length?t[l]:null,f=h?h.fromA:1e9;if(f-a>=i)for(;r&&r.from<f;){let d=r;if(a>=d.from||f<=d.to||c){let p=Math.max(d.from,a)-c,g=Math.min(d.to,f)-c;d=p>=g?null:new zt(p,g,d.tree,d.offset+c,l>0,!!h)}if(d&&s.push(d),r.to>f)break;r=o<e.length?e[o++]:null}if(!h)break;a=h.toA,c=h.toA-h.toB}return s}}class Aa{startParse(e,t,i){return typeof e=="string"&&(e=new D4(e)),i=i?i.length?i.map(s=>new $s(s.from,s.to)):[new $s(0,0)]:[new $s(0,e.length)],this.createParse(e,t||[],i)}parse(e,t,i){let s=this.startParse(e,t,i);for(;;){let o=s.advance();if(o)return o}}}class D4{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}new W({perNode:!0});let T4=0;class Re{constructor(e,t,i,s){this.name=e,this.set=t,this.base=i,this.modified=s,this.id=T4++}toString(){let{name:e}=this;for(let t of this.modified)t.name&&(e=`${t.name}(${e})`);return e}static define(e,t){let i=typeof e=="string"?e:"?";if(e instanceof Re&&(t=e),t!=null&&t.base)throw new Error("Can not derive from a modified tag");let s=new Re(i,[],null,[]);if(s.set.push(s),t)for(let o of t.set)s.set.push(o);return s}static defineModifier(e){let t=new Yn(e);return i=>i.modified.indexOf(t)>-1?i:Yn.get(i.base||i,i.modified.concat(t).sort((s,o)=>s.id-o.id))}}let A4=0;class Yn{constructor(e){this.name=e,this.instances=[],this.id=A4++}static get(e,t){if(!t.length)return e;let i=t[0].instances.find(l=>l.base==e&&B4(t,l.modified));if(i)return i;let s=[],o=new Re(e.name,s,e,t);for(let l of t)l.instances.push(o);let r=P4(t);for(let l of e.set)if(!l.modified.length)for(let a of r)s.push(Yn.get(l,a));return o}}function B4(n,e){return n.length==e.length&&n.every((t,i)=>t==e[i])}function P4(n){let e=[[]];for(let t=0;t<n.length;t++)for(let i=0,s=e.length;i<s;i++)e.push(e[i].concat(n[t]));return e.sort((t,i)=>i.length-t.length)}function Ba(n){let e=Object.create(null);for(let t in n){let i=n[t];Array.isArray(i)||(i=[i]);for(let s of t.split(" "))if(s){let o=[],r=2,l=s;for(let f=0;;){if(l=="..."&&f>0&&f+3==s.length){r=1;break}let d=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(l);if(!d)throw new RangeError("Invalid path: "+s);if(o.push(d[0]=="*"?"":d[0][0]=='"'?JSON.parse(d[0]):d[0]),f+=d[0].length,f==s.length)break;let p=s[f++];if(f==s.length&&p=="!"){r=0;break}if(p!="/")throw new RangeError("Invalid path: "+s);l=s.slice(f)}let a=o.length-1,c=o[a];if(!c)throw new RangeError("Invalid path: "+s);let h=new Kn(i,r,a>0?o.slice(0,a):null);e[c]=h.sort(e[c])}}return Pa.add(e)}const Pa=new W;class Kn{constructor(e,t,i,s){this.tags=e,this.mode=t,this.context=i,this.next=s}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}}Kn.empty=new Kn([],2,null);function Ea(n,e){let t=Object.create(null);for(let o of n)if(!Array.isArray(o.tag))t[o.tag.id]=o.class;else for(let r of o.tag)t[r.id]=o.class;let{scope:i,all:s=null}=e||{};return{style:o=>{let r=s;for(let l of o)for(let a of l.set){let c=t[a.id];if(c){r=r?r+" "+c:c;break}}return r},scope:i}}function E4(n,e){let t=null;for(let i of n){let s=i.style(e);s&&(t=t?t+" "+s:s)}return t}function V4(n,e,t,i=0,s=n.length){let o=new z4(i,Array.isArray(e)?e:[e],t);o.highlightRange(n.cursor(),i,s,"",o.highlighters),o.flush(s)}class z4{constructor(e,t,i){this.at=e,this.highlighters=t,this.span=i,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,i,s,o){let{type:r,from:l,to:a}=e;if(l>=i||a<=t)return;r.isTop&&(o=this.highlighters.filter(p=>!p.scope||p.scope(r)));let c=s,h=L4(e)||Kn.empty,f=E4(o,h.tags);if(f&&(c&&(c+=" "),c+=f,h.mode==1&&(s+=(s?" ":"")+f)),this.startSpan(Math.max(t,l),c),h.opaque)return;let d=e.tree&&e.tree.prop(W.mounted);if(d&&d.overlay){let p=e.node.enter(d.overlay[0].from+l,1),g=this.highlighters.filter(v=>!v.scope||v.scope(d.tree.type)),m=e.firstChild();for(let v=0,b=l;;v++){let x=v<d.overlay.length?d.overlay[v]:null,k=x?x.from+l:a,_=Math.max(t,b),y=Math.min(i,k);if(_<y&&m)for(;e.from<y&&(this.highlightRange(e,_,y,s,o),this.startSpan(Math.min(y,e.to),c),!(e.to>=k||!e.nextSibling())););if(!x||k>i)break;b=x.to+l,b>t&&(this.highlightRange(p.cursor(),Math.max(t,x.from+l),Math.min(i,b),"",g),this.startSpan(Math.min(i,b),c))}m&&e.parent()}else if(e.firstChild()){d&&(s="");do if(!(e.to<=t)){if(e.from>=i)break;this.highlightRange(e,t,i,s,o),this.startSpan(Math.min(i,e.to),c)}while(e.nextSibling());e.parent()}}}function L4(n){let e=n.type.prop(Pa);for(;e&&e.context&&!n.matchContext(e.context);)e=e.next;return e||null}const E=Re.define,vn=E(),gt=E(),X2=E(gt),Q2=E(gt),mt=E(),wn=E(mt),Ws=E(mt),Je=E(),At=E(Je),Xe=E(),Qe=E(),W0=E(),vi=E(W0),bn=E(),B={comment:vn,lineComment:E(vn),blockComment:E(vn),docComment:E(vn),name:gt,variableName:E(gt),typeName:X2,tagName:E(X2),propertyName:Q2,attributeName:E(Q2),className:E(gt),labelName:E(gt),namespace:E(gt),macroName:E(gt),literal:mt,string:wn,docString:E(wn),character:E(wn),attributeValue:E(wn),number:Ws,integer:E(Ws),float:E(Ws),bool:E(mt),regexp:E(mt),escape:E(mt),color:E(mt),url:E(mt),keyword:Xe,self:E(Xe),null:E(Xe),atom:E(Xe),unit:E(Xe),modifier:E(Xe),operatorKeyword:E(Xe),controlKeyword:E(Xe),definitionKeyword:E(Xe),moduleKeyword:E(Xe),operator:Qe,derefOperator:E(Qe),arithmeticOperator:E(Qe),logicOperator:E(Qe),bitwiseOperator:E(Qe),compareOperator:E(Qe),updateOperator:E(Qe),definitionOperator:E(Qe),typeOperator:E(Qe),controlOperator:E(Qe),punctuation:W0,separator:E(W0),bracket:vi,angleBracket:E(vi),squareBracket:E(vi),paren:E(vi),brace:E(vi),content:Je,heading:At,heading1:E(At),heading2:E(At),heading3:E(At),heading4:E(At),heading5:E(At),heading6:E(At),contentSeparator:E(Je),list:E(Je),quote:E(Je),emphasis:E(Je),strong:E(Je),link:E(Je),monospace:E(Je),strikethrough:E(Je),inserted:E(),deleted:E(),changed:E(),invalid:E(),meta:bn,documentMeta:E(bn),annotation:E(bn),processingInstruction:E(bn),definition:Re.defineModifier("definition"),constant:Re.defineModifier("constant"),function:Re.defineModifier("function"),standard:Re.defineModifier("standard"),local:Re.defineModifier("local"),special:Re.defineModifier("special")};for(let n in B){let e=B[n];e instanceof Re&&(e.name=n)}Ea([{tag:B.link,class:"tok-link"},{tag:B.heading,class:"tok-heading"},{tag:B.emphasis,class:"tok-emphasis"},{tag:B.strong,class:"tok-strong"},{tag:B.keyword,class:"tok-keyword"},{tag:B.atom,class:"tok-atom"},{tag:B.bool,class:"tok-bool"},{tag:B.url,class:"tok-url"},{tag:B.labelName,class:"tok-labelName"},{tag:B.inserted,class:"tok-inserted"},{tag:B.deleted,class:"tok-deleted"},{tag:B.literal,class:"tok-literal"},{tag:B.string,class:"tok-string"},{tag:B.number,class:"tok-number"},{tag:[B.regexp,B.escape,B.special(B.string)],class:"tok-string2"},{tag:B.variableName,class:"tok-variableName"},{tag:B.local(B.variableName),class:"tok-variableName tok-local"},{tag:B.definition(B.variableName),class:"tok-variableName tok-definition"},{tag:B.special(B.variableName),class:"tok-variableName2"},{tag:B.definition(B.propertyName),class:"tok-propertyName tok-definition"},{tag:B.typeName,class:"tok-typeName"},{tag:B.namespace,class:"tok-namespace"},{tag:B.className,class:"tok-className"},{tag:B.macroName,class:"tok-macroName"},{tag:B.propertyName,class:"tok-propertyName"},{tag:B.operator,class:"tok-operator"},{tag:B.comment,class:"tok-comment"},{tag:B.meta,class:"tok-meta"},{tag:B.invalid,class:"tok-invalid"},{tag:B.punctuation,class:"tok-punctuation"}]);var Fs;const Xt=new W;function R4(n){return L.define({combine:n?e=>e.concat(n):void 0})}const N4=new W;class Ge{constructor(e,t,i=[],s=""){this.data=e,this.name=s,G.prototype.hasOwnProperty("tree")||Object.defineProperty(G.prototype,"tree",{get(){return fe(this)}}),this.parser=t,this.extension=[Mt.of(this),G.languageData.of((o,r,l)=>{let a=J2(o,r,l),c=a.type.prop(Xt);if(!c)return[];let h=o.facet(c),f=a.type.prop(N4);if(f){let d=a.resolve(r-a.from,l);for(let p of f)if(p.test(d,o)){let g=o.facet(p.facet);return p.type=="replace"?g:g.concat(h)}}return h})].concat(i)}isActiveAt(e,t,i=-1){return J2(e,t,i).type.prop(Xt)==this.data}findRegions(e){let t=e.facet(Mt);if((t==null?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let i=[],s=(o,r)=>{if(o.prop(Xt)==this.data){i.push({from:r,to:r+o.length});return}let l=o.prop(W.mounted);if(l){if(l.tree.prop(Xt)==this.data){if(l.overlay)for(let a of l.overlay)i.push({from:a.from+r,to:a.to+r});else i.push({from:r,to:r+o.length});return}else if(l.overlay){let a=i.length;if(s(l.tree,l.overlay[0].from+r),i.length>a)return}}for(let a=0;a<o.children.length;a++){let c=o.children[a];c instanceof oe&&s(c,o.positions[a]+r)}};return s(fe(e),0),i}get allowsNesting(){return!0}}Ge.setState=$.define();function J2(n,e,t){let i=n.facet(Mt),s=fe(n).topNode;if(!i||i.allowsNesting)for(let o=s;o;o=o.enter(e,t,he.ExcludeBuffers))o.type.isTop&&(s=o);return s}class Xn extends Ge{constructor(e,t,i){super(e,t,[],i),this.parser=t}static define(e){let t=R4(e.languageData);return new Xn(t,e.parser.configure({props:[Xt.add(i=>i.isTop?t:void 0)]}),e.name)}configure(e,t){return new Xn(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function fe(n){let e=n.field(Ge.state,!1);return e?e.tree:oe.empty}class I4{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let i=this.cursorPos-this.string.length;return e<i||t>=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-i,t-i)}}let wi=null;class Qn{constructor(e,t,i=[],s,o,r,l,a){this.parser=e,this.state=t,this.fragments=i,this.tree=s,this.treeLen=o,this.viewport=r,this.skipped=l,this.scheduleOn=a,this.parse=null,this.tempSkipped=[]}static create(e,t,i){return new Qn(e,t,[],oe.empty,0,i,[],null)}startParse(){return this.parser.startParse(new I4(this.state.doc),this.fragments)}work(e,t){return t!=null&&t>=this.state.doc.length&&(t=void 0),this.tree!=oe.empty&&this.isDone(t??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var i;if(typeof e=="number"){let s=Date.now()+e;e=()=>Date.now()>s}for(this.parse||(this.parse=this.startParse()),t!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&t<this.state.doc.length&&this.parse.stopAt(t);;){let s=this.parse.advance();if(s)if(this.fragments=this.withoutTempSkipped(zt.addTree(s,this.fragments,this.parse.stoppedAt!=null)),this.treeLen=(i=this.parse.stoppedAt)!==null&&i!==void 0?i:this.state.doc.length,this.tree=s,this.parse=null,this.treeLen<(t??this.state.doc.length))this.parse=this.startParse();else return!0;if(e())return!1}})}takeTree(){let e,t;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(t=this.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(zt.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=wi;wi=this;try{return e()}finally{wi=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=Z2(e,t.from,t.to);return e}changes(e,t){let{fragments:i,tree:s,treeLen:o,viewport:r,skipped:l}=this;if(this.takeTree(),!e.empty){let a=[];if(e.iterChangedRanges((c,h,f,d)=>a.push({fromA:c,toA:h,fromB:f,toB:d})),i=zt.applyChanges(i,a),s=oe.empty,o=0,r={from:e.mapPos(r.from,-1),to:e.mapPos(r.to,1)},this.skipped.length){l=[];for(let c of this.skipped){let h=e.mapPos(c.from,1),f=e.mapPos(c.to,-1);h<f&&l.push({from:h,to:f})}}}return new Qn(this.parser,t,i,s,o,r,l,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let t=this.skipped.length;for(let i=0;i<this.skipped.length;i++){let{from:s,to:o}=this.skipped[i];s<e.to&&o>e.from&&(this.fragments=Z2(this.fragments,s,o),this.skipped.splice(i--,1))}return this.skipped.length>=t?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends Aa{createParse(t,i,s){let o=s[0].from,r=s[s.length-1].to;return{parsedPos:o,advance(){let a=wi;if(a){for(let c of s)a.tempSkipped.push(c);e&&(a.scheduleOn=a.scheduleOn?Promise.all([a.scheduleOn,e]):e)}return this.parsedPos=r,new oe(Be.none,[],[],r-o)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&t[0].from==0&&t[0].to>=e}static get(){return wi}}function Z2(n,e,t){return zt.applyChanges(n,[{fromA:e,toA:t,fromB:e,toB:t}])}class ai{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),i=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,i)||t.takeTree(),new ai(t)}static init(e){let t=Math.min(3e3,e.doc.length),i=Qn.create(e.facet(Mt).parser,e,{from:0,to:t});return i.work(20,t)||i.takeTree(),new ai(i)}}Ge.state=me.define({create:ai.init,update(n,e){for(let t of e.effects)if(t.is(Ge.setState))return t.value;return e.startState.facet(Mt)!=e.state.facet(Mt)?ai.init(e.state):n.apply(e)}});let Va=n=>{let e=setTimeout(()=>n(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(Va=n=>{let e=-1,t=setTimeout(()=>{e=requestIdleCallback(n,{timeout:400})},100);return()=>e<0?clearTimeout(t):cancelIdleCallback(e)});const Gs=typeof navigator<"u"&&(!((Fs=navigator.scheduling)===null||Fs===void 0)&&Fs.isInputPending)?()=>navigator.scheduling.isInputPending():null,H4=re.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(Ge.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(Ge.state);(t.tree!=t.context.tree||!t.context.isDone(e.doc.length))&&(this.working=Va(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEnd<t&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=t+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:i,viewport:{to:s}}=this.view,o=i.field(Ge.state);if(o.tree==o.context.tree&&o.context.isDone(s+1e5))return;let r=Date.now()+Math.min(this.chunkBudget,100,e&&!Gs?Math.max(25,e.timeRemaining()-5):1e9),l=o.context.treeLen<s&&i.doc.length>s+1e3,a=o.context.work(()=>Gs&&Gs()||Date.now()>r,s+(l?0:1e5));this.chunkBudget-=Date.now()-t,(a||this.chunkBudget<=0)&&(o.context.takeTree(),this.view.dispatch({effects:Ge.setState.of(new ai(o.context))})),this.chunkBudget>0&&!(a&&!l)&&this.scheduleWork(),this.checkAsyncSchedule(o.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(t=>Te(this.view.state,t)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),Mt=L.define({combine(n){return n.length?n[0]:null},enables:n=>[Ge.state,H4,z.contentAttributes.compute([n],e=>{let t=e.facet(n);return t&&t.name?{"data-language":t.name}:{}})]});class $4{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}const W4=L.define(),So=L.define({combine:n=>{if(!n.length)return" ";let e=n[0];if(!e||/\S/.test(e)||Array.from(e).some(t=>t!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(n[0]));return e}});function Jn(n){let e=n.facet(So);return e.charCodeAt(0)==9?n.tabSize*e.length:e.length}function Wi(n,e){let t="",i=n.tabSize,s=n.facet(So)[0];if(s==" "){for(;e>=i;)t+=" ",e-=i;s=" "}for(let o=0;o<e;o++)t+=s;return t}function Co(n,e){n instanceof G&&(n=new bs(n));for(let i of n.state.facet(W4)){let s=i(n,e);if(s!==void 0)return s}let t=fe(n.state);return t.length>=e?F4(n,t,e):null}class bs{constructor(e,t={}){this.state=e,this.options=t,this.unit=Jn(e)}lineAt(e,t=1){let i=this.state.doc.lineAt(e),{simulateBreak:s,simulateDoubleBreak:o}=this.options;return s!=null&&s>=i.from&&s<=i.to?o&&s==e?{text:"",from:e}:(t<0?s<e:s<=e)?{text:i.text.slice(s-i.from),from:s}:{text:i.text.slice(0,s-i.from),from:i.from}:i}textAfterPos(e,t=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:i,from:s}=this.lineAt(e,t);return i.slice(e-s,Math.min(i.length,e+100-s))}column(e,t=1){let{text:i,from:s}=this.lineAt(e,t),o=this.countColumn(i,e-s),r=this.options.overrideIndentation?this.options.overrideIndentation(s):-1;return r>-1&&(o+=r-this.countColumn(i,i.search(/\S|$/))),o}countColumn(e,t=e.length){return ui(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:i,from:s}=this.lineAt(e,t),o=this.options.overrideIndentation;if(o){let r=o(s);if(r>-1)return r}return this.countColumn(i,i.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const za=new W;function F4(n,e,t){let i=e.resolveStack(t),s=e.resolveInner(t,-1).resolve(t,0).enterUnfinishedNodesBefore(t);if(s!=i.node){let o=[];for(let r=s;r&&!(r.from<i.node.from||r.to>i.node.to||r.from==i.node.from&&r.type==i.node.type);r=r.parent)o.push(r);for(let r=o.length-1;r>=0;r--)i={node:o[r],next:i}}return La(i,n,t)}function La(n,e,t){for(let i=n;i;i=i.next){let s=j4(i.node);if(s)return s(_o.create(e,t,i))}return 0}function G4(n){return n.pos==n.options.simulateBreak&&n.options.simulateDoubleBreak}function j4(n){let e=n.type.prop(za);if(e)return e;let t=n.firstChild,i;if(t&&(i=t.type.prop(W.closedBy))){let s=n.lastChild,o=s&&i.indexOf(s.name)>-1;return r=>K4(r,!0,1,void 0,o&&!G4(r)?s.from:void 0)}return n.parent==null?q4:null}function q4(){return 0}class _o extends bs{constructor(e,t,i){super(e.state,e.options),this.base=e,this.pos=t,this.context=i}get node(){return this.context.node}static create(e,t,i){return new _o(e,t,i)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let i=e.resolve(t.from);for(;i.parent&&i.parent.from==i.from;)i=i.parent;if(U4(i,e))break;t=this.state.doc.lineAt(i.from)}return this.lineIndent(t.from)}continue(){return La(this.context.next,this.base,this.pos)}}function U4(n,e){for(let t=e;t;t=t.parent)if(n==t)return!0;return!1}function Y4(n){let e=n.node,t=e.childAfter(e.from),i=e.lastChild;if(!t)return null;let s=n.options.simulateBreak,o=n.state.doc.lineAt(t.from),r=s==null||s<=o.from?o.to:Math.min(o.to,s);for(let l=t.to;;){let a=e.childAfter(l);if(!a||a==i)return null;if(!a.type.isSkipped){if(a.from>=r)return null;let c=/^ */.exec(o.text.slice(t.to-o.from))[0].length;return{from:t.from,to:t.to+c}}l=a.to}}function K4(n,e,t,i,s){let o=n.textAfter,r=o.match(/^\s*/)[0].length,l=i&&o.slice(r,r+i.length)==i||s==n.pos+r,a=Y4(n);return a?l?n.column(a.from):n.column(a.to):n.baseIndent+(l?0:n.unit*t)}const X4=200;function Q4(){return G.transactionFilter.of(n=>{if(!n.docChanged||!n.isUserEvent("input.type")&&!n.isUserEvent("input.complete"))return n;let e=n.startState.languageDataAt("indentOnInput",n.startState.selection.main.head);if(!e.length)return n;let t=n.newDoc,{head:i}=n.newSelection.main,s=t.lineAt(i);if(i>s.from+X4)return n;let o=t.sliceString(s.from,i);if(!e.some(c=>c.test(o)))return n;let{state:r}=n,l=-1,a=[];for(let{head:c}of r.selection.ranges){let h=r.doc.lineAt(c);if(h.from==l)continue;l=h.from;let f=Co(r,h.from);if(f==null)continue;let d=/^\s*/.exec(h.text)[0],p=Wi(r,f);d!=p&&a.push({from:h.from,to:h.from+d.length,insert:p})}return a.length?[n,{changes:a,sequential:!0}]:n})}const J4=L.define(),Ra=new W;function Z4(n,e,t){let i=fe(n);if(i.length<t)return null;let s=i.resolveStack(t,1),o=null;for(let r=s;r;r=r.next){let l=r.node;if(l.to<=t||l.from>t)continue;if(o&&l.from<e)break;let a=l.type.prop(Ra);if(a&&(l.to<i.length-50||i.length==n.doc.length||!ep(l))){let c=a(l,n);c&&c.from<=t&&c.from>=e&&c.to>t&&(o=c)}}return o}function ep(n){let e=n.lastChild;return e&&e.to==n.to&&e.type.isError}function Zn(n,e,t){for(let i of n.facet(J4)){let s=i(n,e,t);if(s)return s}return Z4(n,e,t)}function Na(n,e){let t=e.mapPos(n.from,1),i=e.mapPos(n.to,-1);return t>=i?void 0:{from:t,to:i}}const xs=$.define({map:Na}),Qi=$.define({map:Na});function Ia(n){let e=[];for(let{head:t}of n.state.selection.ranges)e.some(i=>i.from<=t&&i.to>=t)||e.push(n.lineBlockAt(t));return e}const Wt=me.define({create(){return I.none},update(n,e){e.isUserEvent("delete")&&e.changes.iterChangedRanges((t,i)=>n=er(n,t,i)),n=n.map(e.changes);for(let t of e.effects)if(t.is(xs)&&!tp(n,t.value.from,t.value.to)){let{preparePlaceholder:i}=e.state.facet(Wa),s=i?I.replace({widget:new ap(i(e.state,t.value))}):tr;n=n.update({add:[s.range(t.value.from,t.value.to)]})}else t.is(Qi)&&(n=n.update({filter:(i,s)=>t.value.from!=i||t.value.to!=s,filterFrom:t.value.from,filterTo:t.value.to}));return e.selection&&(n=er(n,e.selection.main.head)),n},provide:n=>z.decorations.from(n),toJSON(n,e){let t=[];return n.between(0,e.doc.length,(i,s)=>{t.push(i,s)}),t},fromJSON(n){if(!Array.isArray(n)||n.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let t=0;t<n.length;){let i=n[t++],s=n[t++];if(typeof i!="number"||typeof s!="number")throw new RangeError("Invalid JSON for fold state");e.push(tr.range(i,s))}return I.set(e,!0)}});function er(n,e,t=e){let i=!1;return n.between(e,t,(s,o)=>{s<t&&o>e&&(i=!0)}),i?n.update({filterFrom:e,filterTo:t,filter:(s,o)=>s>=t||o<=e}):n}function es(n,e,t){var i;let s=null;return(i=n.field(Wt,!1))===null||i===void 0||i.between(e,t,(o,r)=>{(!s||s.from>o)&&(s={from:o,to:r})}),s}function tp(n,e,t){let i=!1;return n.between(e,e,(s,o)=>{s==e&&o==t&&(i=!0)}),i}function Ha(n,e){return n.field(Wt,!1)?e:e.concat($.appendConfig.of(Fa()))}const ip=n=>{for(let e of Ia(n)){let t=Zn(n.state,e.from,e.to);if(t)return n.dispatch({effects:Ha(n.state,[xs.of(t),$a(n,t)])}),!0}return!1},np=n=>{if(!n.state.field(Wt,!1))return!1;let e=[];for(let t of Ia(n)){let i=es(n.state,t.from,t.to);i&&e.push(Qi.of(i),$a(n,i,!1))}return e.length&&n.dispatch({effects:e}),e.length>0};function $a(n,e,t=!0){let i=n.state.doc.lineAt(e.from).number,s=n.state.doc.lineAt(e.to).number;return z.announce.of(`${n.state.phrase(t?"Folded lines":"Unfolded lines")} ${i} ${n.state.phrase("to")} ${s}.`)}const sp=n=>{let{state:e}=n,t=[];for(let i=0;i<e.doc.length;){let s=n.lineBlockAt(i),o=Zn(e,s.from,s.to);o&&t.push(xs.of(o)),i=(o?n.lineBlockAt(o.to):s).to+1}return t.length&&n.dispatch({effects:Ha(n.state,t)}),!!t.length},op=n=>{let e=n.state.field(Wt,!1);if(!e||!e.size)return!1;let t=[];return e.between(0,n.state.doc.length,(i,s)=>{t.push(Qi.of({from:i,to:s}))}),n.dispatch({effects:t}),!0},rp=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:ip},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:np},{key:"Ctrl-Alt-[",run:sp},{key:"Ctrl-Alt-]",run:op}],lp={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},Wa=L.define({combine(n){return rt(n,lp)}});function Fa(n){return[Wt,up]}function Ga(n,e){let{state:t}=n,i=t.facet(Wa),s=r=>{let l=n.lineBlockAt(n.posAtDOM(r.target)),a=es(n.state,l.from,l.to);a&&n.dispatch({effects:Qi.of(a)}),r.preventDefault()};if(i.placeholderDOM)return i.placeholderDOM(n,s,e);let o=document.createElement("span");return o.textContent=i.placeholderText,o.setAttribute("aria-label",t.phrase("folded code")),o.title=t.phrase("unfold"),o.className="cm-foldPlaceholder",o.onclick=s,o}const tr=I.replace({widget:new class extends Dt{toDOM(n){return Ga(n,null)}}});class ap extends Dt{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return Ga(e,this.value)}}const cp={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class js extends dt{constructor(e,t){super(),this.config=e,this.open=t}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let t=document.createElement("span");return t.textContent=this.open?this.config.openText:this.config.closedText,t.title=e.state.phrase(this.open?"Fold line":"Unfold line"),t}}function hp(n={}){let e={...cp,...n},t=new js(e,!0),i=new js(e,!1),s=re.fromClass(class{constructor(r){this.from=r.viewport.from,this.markers=this.buildMarkers(r)}update(r){(r.docChanged||r.viewportChanged||r.startState.facet(Mt)!=r.state.facet(Mt)||r.startState.field(Wt,!1)!=r.state.field(Wt,!1)||fe(r.startState)!=fe(r.state)||e.foldingChanged(r))&&(this.markers=this.buildMarkers(r.view))}buildMarkers(r){let l=new ut;for(let a of r.viewportLineBlocks){let c=es(r.state,a.from,a.to)?i:Zn(r.state,a.from,a.to)?t:null;c&&l.add(a.from,a.from,c)}return l.finish()}}),{domEventHandlers:o}=e;return[s,u4({class:"cm-foldGutter",markers(r){var l;return((l=r.plugin(s))===null||l===void 0?void 0:l.markers)||j.empty},initialSpacer(){return new js(e,!1)},domEventHandlers:{...o,click:(r,l,a)=>{if(o.click&&o.click(r,l,a))return!0;let c=es(r.state,l.from,l.to);if(c)return r.dispatch({effects:Qi.of(c)}),!0;let h=Zn(r.state,l.from,l.to);return h?(r.dispatch({effects:xs.of(h)}),!0):!1}}}),Fa()]}const up=z.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class ys{constructor(e,t){this.specs=e;let i;function s(l){let a=St.newName();return(i||(i=Object.create(null)))["."+a]=l,a}const o=typeof t.all=="string"?t.all:t.all?s(t.all):void 0,r=t.scope;this.scope=r instanceof Ge?l=>l.prop(Xt)==r.data:r?l=>l==r:void 0,this.style=Ea(e.map(l=>({tag:l.tag,class:l.class||s(Object.assign({},l,{tag:null}))})),{all:o}).style,this.module=i?new St(i):null,this.themeType=t.themeType}static define(e,t){return new ys(e,t||{})}}const F0=L.define(),ja=L.define({combine(n){return n.length?[n[0]]:null}});function qs(n){let e=n.facet(F0);return e.length?e:n.facet(ja)}function fp(n,e){let t=[pp],i;return n instanceof ys&&(n.module&&t.push(z.styleModule.of(n.module)),i=n.themeType),e!=null&&e.fallback?t.push(ja.of(n)):i?t.push(F0.computeN([z.darkTheme],s=>s.facet(z.darkTheme)==(i=="dark")?[n]:[])):t.push(F0.of(n)),t}class dp{constructor(e){this.markCache=Object.create(null),this.tree=fe(e.state),this.decorations=this.buildDeco(e,qs(e.state)),this.decoratedTo=e.viewport.to}update(e){let t=fe(e.state),i=qs(e.state),s=i!=qs(e.startState),{viewport:o}=e.view,r=e.changes.mapPos(this.decoratedTo,1);t.length<o.to&&!s&&t.type==this.tree.type&&r>=o.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=r):(t!=this.tree||e.viewportChanged||s)&&(this.tree=t,this.decorations=this.buildDeco(e.view,i),this.decoratedTo=o.to)}buildDeco(e,t){if(!t||!this.tree.length)return I.none;let i=new ut;for(let{from:s,to:o}of e.visibleRanges)V4(this.tree,t,(r,l,a)=>{i.add(r,l,this.markCache[a]||(this.markCache[a]=I.mark({class:a})))},s,o);return i.finish()}}const pp=Ft.high(re.fromClass(dp,{decorations:n=>n.decorations})),gp=ys.define([{tag:B.meta,color:"#404740"},{tag:B.link,textDecoration:"underline"},{tag:B.heading,textDecoration:"underline",fontWeight:"bold"},{tag:B.emphasis,fontStyle:"italic"},{tag:B.strong,fontWeight:"bold"},{tag:B.strikethrough,textDecoration:"line-through"},{tag:B.keyword,color:"#708"},{tag:[B.atom,B.bool,B.url,B.contentSeparator,B.labelName],color:"#219"},{tag:[B.literal,B.inserted],color:"#164"},{tag:[B.string,B.deleted],color:"#a11"},{tag:[B.regexp,B.escape,B.special(B.string)],color:"#e40"},{tag:B.definition(B.variableName),color:"#00f"},{tag:B.local(B.variableName),color:"#30a"},{tag:[B.typeName,B.namespace],color:"#085"},{tag:B.className,color:"#167"},{tag:[B.special(B.variableName),B.macroName],color:"#256"},{tag:B.definition(B.propertyName),color:"#00c"},{tag:B.comment,color:"#940"},{tag:B.invalid,color:"#f00"}]),mp=z.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),qa=1e4,Ua="()[]{}",Ya=L.define({combine(n){return rt(n,{afterCursor:!0,brackets:Ua,maxScanDistance:qa,renderMatch:bp})}}),vp=I.mark({class:"cm-matchingBracket"}),wp=I.mark({class:"cm-nonmatchingBracket"});function bp(n){let e=[],t=n.matched?vp:wp;return e.push(t.range(n.start.from,n.start.to)),n.end&&e.push(t.range(n.end.from,n.end.to)),e}const xp=me.define({create(){return I.none},update(n,e){if(!e.docChanged&&!e.selection)return n;let t=[],i=e.state.facet(Ya);for(let s of e.state.selection.ranges){if(!s.empty)continue;let o=it(e.state,s.head,-1,i)||s.head>0&&it(e.state,s.head-1,1,i)||i.afterCursor&&(it(e.state,s.head,1,i)||s.head<e.state.doc.length&&it(e.state,s.head+1,-1,i));o&&(t=t.concat(i.renderMatch(o,e.state)))}return I.set(t,!0)},provide:n=>z.decorations.from(n)}),yp=[xp,mp];function kp(n={}){return[Ya.of(n),yp]}const Ka=new W;function G0(n,e,t){let i=n.prop(e<0?W.openedBy:W.closedBy);if(i)return i;if(n.name.length==1){let s=t.indexOf(n.name);if(s>-1&&s%2==(e<0?1:0))return[t[s+e]]}return null}function j0(n){let e=n.type.prop(Ka);return e?e(n.node):n}function it(n,e,t,i={}){let s=i.maxScanDistance||qa,o=i.brackets||Ua,r=fe(n),l=r.resolveInner(e,t);for(let a=l;a;a=a.parent){let c=G0(a.type,t,o);if(c&&a.from<a.to){let h=j0(a);if(h&&(t>0?e>=h.from&&e<h.to:e>h.from&&e<=h.to))return Sp(n,e,t,a,h,c,o)}}return Cp(n,e,t,r,l.type,s,o)}function Sp(n,e,t,i,s,o,r){let l=i.parent,a={from:s.from,to:s.to},c=0,h=l==null?void 0:l.cursor();if(h&&(t<0?h.childBefore(i.from):h.childAfter(i.to)))do if(t<0?h.to<=i.from:h.from>=i.to){if(c==0&&o.indexOf(h.type.name)>-1&&h.from<h.to){let f=j0(h);return{start:a,end:f?{from:f.from,to:f.to}:void 0,matched:!0}}else if(G0(h.type,t,r))c++;else if(G0(h.type,-t,r)){if(c==0){let f=j0(h);return{start:a,end:f&&f.from<f.to?{from:f.from,to:f.to}:void 0,matched:!1}}c--}}while(t<0?h.prevSibling():h.nextSibling());return{start:a,matched:!1}}function Cp(n,e,t,i,s,o,r){let l=t<0?n.sliceDoc(e-1,e):n.sliceDoc(e,e+1),a=r.indexOf(l);if(a<0||a%2==0!=t>0)return null;let c={from:t<0?e-1:e,to:t>0?e+1:e},h=n.doc.iterRange(e,t>0?n.doc.length:0),f=0;for(let d=0;!h.next().done&&d<=o;){let p=h.value;t<0&&(d+=p.length);let g=e+d*t;for(let m=t>0?0:p.length-1,v=t>0?p.length:-1;m!=v;m+=t){let b=r.indexOf(p[m]);if(!(b<0||i.resolveInner(g+m,1).type!=s))if(b%2==0==t>0)f++;else{if(f==1)return{start:c,end:{from:g+m,to:g+m+1},matched:b>>1==a>>1};f--}}t>0&&(d+=p.length)}return h.done?{start:c,matched:!1}:null}const _p=Object.create(null),ir=[Be.none],nr=[],sr=Object.create(null),Op=Object.create(null);for(let[n,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])Op[n]=Mp(_p,e);function Us(n,e){nr.indexOf(n)>-1||(nr.push(n),console.warn(e))}function Mp(n,e){let t=[];for(let l of e.split(" ")){let a=[];for(let c of l.split(".")){let h=n[c]||B[c];h?typeof h=="function"?a.length?a=a.map(h):Us(c,`Modifier ${c} used at start of tag`):a.length?Us(c,`Tag ${c} used as modifier`):a=Array.isArray(h)?h:[h]:Us(c,`Unknown highlighting tag ${c}`)}for(let c of a)t.push(c)}if(!t.length)return 0;let i=e.replace(/ /g,"_"),s=i+" "+t.map(l=>l.id),o=sr[s];if(o)return o.id;let r=sr[s]=Be.define({id:ir.length,name:i,props:[Ba({[i]:t})]});return ir.push(r),r.id}Z.RTL,Z.LTR;const Dp=n=>{let{state:e}=n,t=e.doc.lineAt(e.selection.main.from),i=Mo(n.state,t.from);return i.line?Tp(n):i.block?Bp(n):!1};function Oo(n,e){return({state:t,dispatch:i})=>{if(t.readOnly)return!1;let s=n(e,t);return s?(i(t.update(s)),!0):!1}}const Tp=Oo(Vp,0),Ap=Oo(Xa,0),Bp=Oo((n,e)=>Xa(n,e,Ep(e)),0);function Mo(n,e){let t=n.languageDataAt("commentTokens",e,1);return t.length?t[0]:{}}const bi=50;function Pp(n,{open:e,close:t},i,s){let o=n.sliceDoc(i-bi,i),r=n.sliceDoc(s,s+bi),l=/\s*$/.exec(o)[0].length,a=/^\s*/.exec(r)[0].length,c=o.length-l;if(o.slice(c-e.length,c)==e&&r.slice(a,a+t.length)==t)return{open:{pos:i-l,margin:l&&1},close:{pos:s+a,margin:a&&1}};let h,f;s-i<=2*bi?h=f=n.sliceDoc(i,s):(h=n.sliceDoc(i,i+bi),f=n.sliceDoc(s-bi,s));let d=/^\s*/.exec(h)[0].length,p=/\s*$/.exec(f)[0].length,g=f.length-p-t.length;return h.slice(d,d+e.length)==e&&f.slice(g,g+t.length)==t?{open:{pos:i+d+e.length,margin:/\s/.test(h.charAt(d+e.length))?1:0},close:{pos:s-p-t.length,margin:/\s/.test(f.charAt(g-1))?1:0}}:null}function Ep(n){let e=[];for(let t of n.selection.ranges){let i=n.doc.lineAt(t.from),s=t.to<=i.to?i:n.doc.lineAt(t.to);s.from>i.from&&s.from==t.to&&(s=t.to==i.to+1?i:n.doc.lineAt(t.to-1));let o=e.length-1;o>=0&&e[o].to>i.from?e[o].to=s.to:e.push({from:i.from+/^\s*/.exec(i.text)[0].length,to:s.to})}return e}function Xa(n,e,t=e.selection.ranges){let i=t.map(o=>Mo(e,o.from).block);if(!i.every(o=>o))return null;let s=t.map((o,r)=>Pp(e,i[r],o.from,o.to));if(n!=2&&!s.every(o=>o))return{changes:e.changes(t.map((o,r)=>s[r]?[]:[{from:o.from,insert:i[r].open+" "},{from:o.to,insert:" "+i[r].close}]))};if(n!=1&&s.some(o=>o)){let o=[];for(let r=0,l;r<s.length;r++)if(l=s[r]){let a=i[r],{open:c,close:h}=l;o.push({from:c.pos-a.open.length,to:c.pos+c.margin},{from:h.pos-h.margin,to:h.pos+a.close.length})}return{changes:o}}return null}function Vp(n,e,t=e.selection.ranges){let i=[],s=-1;for(let{from:o,to:r}of t){let l=i.length,a=1e9,c=Mo(e,o).line;if(c){for(let h=o;h<=r;){let f=e.doc.lineAt(h);if(f.from>s&&(o==r||r>f.from)){s=f.from;let d=/^\s*/.exec(f.text)[0].length,p=d==f.length,g=f.text.slice(d,d+c.length)==c?d:-1;d<f.text.length&&d<a&&(a=d),i.push({line:f,comment:g,token:c,indent:d,empty:p,single:!1})}h=f.to+1}if(a<1e9)for(let h=l;h<i.length;h++)i[h].indent<i[h].line.text.length&&(i[h].indent=a);i.length==l+1&&(i[l].single=!0)}}if(n!=2&&i.some(o=>o.comment<0&&(!o.empty||o.single))){let o=[];for(let{line:l,token:a,indent:c,empty:h,single:f}of i)(f||!h)&&o.push({from:l.from+c,insert:a+" "});let r=e.changes(o);return{changes:r,selection:e.selection.map(r,1)}}else if(n!=1&&i.some(o=>o.comment>=0)){let o=[];for(let{line:r,comment:l,token:a}of i)if(l>=0){let c=r.from+l,h=c+a.length;r.text[h-r.from]==" "&&h++,o.push({from:c,to:h})}return{changes:o}}return null}const q0=pt.define(),zp=pt.define(),Lp=L.define(),Qa=L.define({combine(n){return rt(n,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(i,s)=>e(i,s)||t(i,s)})}}),Ja=me.define({create(){return nt.empty},update(n,e){let t=e.state.facet(Qa),i=e.annotation(q0);if(i){let a=Ae.fromTransaction(e,i.selection),c=i.side,h=c==0?n.undone:n.done;return a?h=ts(h,h.length,t.minDepth,a):h=tc(h,e.startState.selection),new nt(c==0?i.rest:h,c==0?h:i.rest)}let s=e.annotation(zp);if((s=="full"||s=="before")&&(n=n.isolate()),e.annotation(ae.addToHistory)===!1)return e.changes.empty?n:n.addMapping(e.changes.desc);let o=Ae.fromTransaction(e),r=e.annotation(ae.time),l=e.annotation(ae.userEvent);return o?n=n.addChanges(o,r,l,t,e):e.selection&&(n=n.addSelection(e.startState.selection,r,l,t.newGroupDelay)),(s=="full"||s=="after")&&(n=n.isolate()),n},toJSON(n){return{done:n.done.map(e=>e.toJSON()),undone:n.undone.map(e=>e.toJSON())}},fromJSON(n){return new nt(n.done.map(Ae.fromJSON),n.undone.map(Ae.fromJSON))}});function Rp(n={}){return[Ja,Qa.of(n),z.domEventHandlers({beforeinput(e,t){let i=e.inputType=="historyUndo"?Za:e.inputType=="historyRedo"?U0:null;return i?(e.preventDefault(),i(t)):!1}})]}function ks(n,e){return function({state:t,dispatch:i}){if(!e&&t.readOnly)return!1;let s=t.field(Ja,!1);if(!s)return!1;let o=s.pop(n,t,e);return o?(i(o),!0):!1}}const Za=ks(0,!1),U0=ks(1,!1),Np=ks(0,!0),Ip=ks(1,!0);class Ae{constructor(e,t,i,s,o){this.changes=e,this.effects=t,this.mapped=i,this.startSelection=s,this.selectionsAfter=o}setSelAfter(e){return new Ae(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,i;return{changes:(e=this.changes)===null||e===void 0?void 0:e.toJSON(),mapped:(t=this.mapped)===null||t===void 0?void 0:t.toJSON(),startSelection:(i=this.startSelection)===null||i===void 0?void 0:i.toJSON(),selectionsAfter:this.selectionsAfter.map(s=>s.toJSON())}}static fromJSON(e){return new Ae(e.changes&&le.fromJSON(e.changes),[],e.mapped&&st.fromJSON(e.mapped),e.startSelection&&M.fromJSON(e.startSelection),e.selectionsAfter.map(M.fromJSON))}static fromTransaction(e,t){let i=Ne;for(let s of e.startState.facet(Lp)){let o=s(e);o.length&&(i=i.concat(o))}return!i.length&&e.changes.empty?null:new Ae(e.changes.invert(e.startState.doc),i,void 0,t||e.startState.selection,Ne)}static selection(e){return new Ae(void 0,Ne,void 0,void 0,e)}}function ts(n,e,t,i){let s=e+1>t+20?e-t-1:0,o=n.slice(s,e);return o.push(i),o}function Hp(n,e){let t=[],i=!1;return n.iterChangedRanges((s,o)=>t.push(s,o)),e.iterChangedRanges((s,o,r,l)=>{for(let a=0;a<t.length;){let c=t[a++],h=t[a++];l>=c&&r<=h&&(i=!0)}}),i}function $p(n,e){return n.ranges.length==e.ranges.length&&n.ranges.filter((t,i)=>t.empty!=e.ranges[i].empty).length===0}function ec(n,e){return n.length?e.length?n.concat(e):n:e}const Ne=[],Wp=200;function tc(n,e){if(n.length){let t=n[n.length-1],i=t.selectionsAfter.slice(Math.max(0,t.selectionsAfter.length-Wp));return i.length&&i[i.length-1].eq(e)?n:(i.push(e),ts(n,n.length-1,1e9,t.setSelAfter(i)))}else return[Ae.selection([e])]}function Fp(n){let e=n[n.length-1],t=n.slice();return t[n.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),t}function Ys(n,e){if(!n.length)return n;let t=n.length,i=Ne;for(;t;){let s=Gp(n[t-1],e,i);if(s.changes&&!s.changes.empty||s.effects.length){let o=n.slice(0,t);return o[t-1]=s,o}else e=s.mapped,t--,i=s.selectionsAfter}return i.length?[Ae.selection(i)]:Ne}function Gp(n,e,t){let i=ec(n.selectionsAfter.length?n.selectionsAfter.map(l=>l.map(e)):Ne,t);if(!n.changes)return Ae.selection(i);let s=n.changes.map(e),o=e.mapDesc(n.changes,!0),r=n.mapped?n.mapped.composeDesc(o):o;return new Ae(s,$.mapEffects(n.effects,e),r,n.startSelection.map(o),i)}const jp=/^(input\.type|delete)($|\.)/;class nt{constructor(e,t,i=0,s=void 0){this.done=e,this.undone=t,this.prevTime=i,this.prevUserEvent=s}isolate(){return this.prevTime?new nt(this.done,this.undone):this}addChanges(e,t,i,s,o){let r=this.done,l=r[r.length-1];return l&&l.changes&&!l.changes.empty&&e.changes&&(!i||jp.test(i))&&(!l.selectionsAfter.length&&t-this.prevTime<s.newGroupDelay&&s.joinToEvent(o,Hp(l.changes,e.changes))||i=="input.type.compose")?r=ts(r,r.length-1,s.minDepth,new Ae(e.changes.compose(l.changes),ec($.mapEffects(e.effects,l.changes),l.effects),l.mapped,l.startSelection,Ne)):r=ts(r,r.length,s.minDepth,e),new nt(r,Ne,t,i)}addSelection(e,t,i,s){let o=this.done.length?this.done[this.done.length-1].selectionsAfter:Ne;return o.length>0&&t-this.prevTime<s&&i==this.prevUserEvent&&i&&/^select($|\.)/.test(i)&&$p(o[o.length-1],e)?this:new nt(tc(this.done,e),this.undone,t,i)}addMapping(e){return new nt(Ys(this.done,e),Ys(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,i){let s=e==0?this.done:this.undone;if(s.length==0)return null;let o=s[s.length-1],r=o.selectionsAfter[0]||t.selection;if(i&&o.selectionsAfter.length)return t.update({selection:o.selectionsAfter[o.selectionsAfter.length-1],annotations:q0.of({side:e,rest:Fp(s),selection:r}),userEvent:e==0?"select.undo":"select.redo",scrollIntoView:!0});if(o.changes){let l=s.length==1?Ne:s.slice(0,s.length-1);return o.mapped&&(l=Ys(l,o.mapped)),t.update({changes:o.changes,selection:o.startSelection,effects:o.effects,annotations:q0.of({side:e,rest:l,selection:r}),filter:!1,userEvent:e==0?"undo":"redo",scrollIntoView:!0})}else return null}}nt.empty=new nt(Ne,Ne);const qp=[{key:"Mod-z",run:Za,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:U0,preventDefault:!0},{linux:"Ctrl-Shift-z",run:U0,preventDefault:!0},{key:"Mod-u",run:Np,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:Ip,preventDefault:!0}];function fi(n,e){return M.create(n.ranges.map(e),n.mainIndex)}function lt(n,e){return n.update({selection:e,scrollIntoView:!0,userEvent:"select"})}function Ue({state:n,dispatch:e},t){let i=fi(n.selection,t);return i.eq(n.selection,!0)?!1:(e(lt(n,i)),!0)}function Ss(n,e){return M.cursor(e?n.to:n.from)}function ic(n,e){return Ue(n,t=>t.empty?n.moveByChar(t,e):Ss(t,e))}function be(n){return n.textDirectionAt(n.state.selection.main.head)==Z.LTR}const nc=n=>ic(n,!be(n)),sc=n=>ic(n,be(n));function oc(n,e){return Ue(n,t=>t.empty?n.moveByGroup(t,e):Ss(t,e))}const Up=n=>oc(n,!be(n)),Yp=n=>oc(n,be(n));function Kp(n,e,t){if(e.type.prop(t))return!0;let i=e.to-e.from;return i&&(i>2||/[^\s,.;:]/.test(n.sliceDoc(e.from,e.to)))||e.firstChild}function Cs(n,e,t){let i=fe(n).resolveInner(e.head),s=t?W.closedBy:W.openedBy;for(let a=e.head;;){let c=t?i.childAfter(a):i.childBefore(a);if(!c)break;Kp(n,c,s)?i=c:a=t?c.to:c.from}let o=i.type.prop(s),r,l;return o&&(r=t?it(n,i.from,1):it(n,i.to,-1))&&r.matched?l=t?r.end.to:r.end.from:l=t?i.to:i.from,M.cursor(l,t?-1:1)}const Xp=n=>Ue(n,e=>Cs(n.state,e,!be(n))),Qp=n=>Ue(n,e=>Cs(n.state,e,be(n)));function rc(n,e){return Ue(n,t=>{if(!t.empty)return Ss(t,e);let i=n.moveVertically(t,e);return i.head!=t.head?i:n.moveToLineBoundary(t,e)})}const lc=n=>rc(n,!1),ac=n=>rc(n,!0);function cc(n){let e=n.scrollDOM.clientHeight<n.scrollDOM.scrollHeight-2,t=0,i=0,s;if(e){for(let o of n.state.facet(z.scrollMargins)){let r=o(n);r!=null&&r.top&&(t=Math.max(r==null?void 0:r.top,t)),r!=null&&r.bottom&&(i=Math.max(r==null?void 0:r.bottom,i))}s=n.scrollDOM.clientHeight-t-i}else s=(n.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:t,marginBottom:i,selfScroll:e,height:Math.max(n.defaultLineHeight,s-5)}}function hc(n,e){let t=cc(n),{state:i}=n,s=fi(i.selection,r=>r.empty?n.moveVertically(r,e,t.height):Ss(r,e));if(s.eq(i.selection))return!1;let o;if(t.selfScroll){let r=n.coordsAtPos(i.selection.main.head),l=n.scrollDOM.getBoundingClientRect(),a=l.top+t.marginTop,c=l.bottom-t.marginBottom;r&&r.top>a&&r.bottom<c&&(o=z.scrollIntoView(s.main.head,{y:"start",yMargin:r.top-a}))}return n.dispatch(lt(i,s),{effects:o}),!0}const or=n=>hc(n,!1),Y0=n=>hc(n,!0);function Tt(n,e,t){let i=n.lineBlockAt(e.head),s=n.moveToLineBoundary(e,t);if(s.head==e.head&&s.head!=(t?i.to:i.from)&&(s=n.moveToLineBoundary(e,t,!1)),!t&&s.head==i.from&&i.length){let o=/^\s*/.exec(n.state.sliceDoc(i.from,Math.min(i.from+100,i.to)))[0].length;o&&e.head!=i.from+o&&(s=M.cursor(i.from+o))}return s}const Jp=n=>Ue(n,e=>Tt(n,e,!0)),Zp=n=>Ue(n,e=>Tt(n,e,!1)),eg=n=>Ue(n,e=>Tt(n,e,!be(n))),tg=n=>Ue(n,e=>Tt(n,e,be(n))),ig=n=>Ue(n,e=>M.cursor(n.lineBlockAt(e.head).from,1)),ng=n=>Ue(n,e=>M.cursor(n.lineBlockAt(e.head).to,-1));function sg(n,e,t){let i=!1,s=fi(n.selection,o=>{let r=it(n,o.head,-1)||it(n,o.head,1)||o.head>0&&it(n,o.head-1,1)||o.head<n.doc.length&&it(n,o.head+1,-1);if(!r||!r.end)return o;i=!0;let l=r.start.from==o.head?r.end.to:r.end.from;return M.cursor(l)});return i?(e(lt(n,s)),!0):!1}const og=({state:n,dispatch:e})=>sg(n,e);function Fe(n,e){let t=fi(n.state.selection,i=>{let s=e(i);return M.range(i.anchor,s.head,s.goalColumn,s.bidiLevel||void 0)});return t.eq(n.state.selection)?!1:(n.dispatch(lt(n.state,t)),!0)}function uc(n,e){return Fe(n,t=>n.moveByChar(t,e))}const fc=n=>uc(n,!be(n)),dc=n=>uc(n,be(n));function pc(n,e){return Fe(n,t=>n.moveByGroup(t,e))}const rg=n=>pc(n,!be(n)),lg=n=>pc(n,be(n)),ag=n=>Fe(n,e=>Cs(n.state,e,!be(n))),cg=n=>Fe(n,e=>Cs(n.state,e,be(n)));function gc(n,e){return Fe(n,t=>n.moveVertically(t,e))}const mc=n=>gc(n,!1),vc=n=>gc(n,!0);function wc(n,e){return Fe(n,t=>n.moveVertically(t,e,cc(n).height))}const rr=n=>wc(n,!1),lr=n=>wc(n,!0),hg=n=>Fe(n,e=>Tt(n,e,!0)),ug=n=>Fe(n,e=>Tt(n,e,!1)),fg=n=>Fe(n,e=>Tt(n,e,!be(n))),dg=n=>Fe(n,e=>Tt(n,e,be(n))),pg=n=>Fe(n,e=>M.cursor(n.lineBlockAt(e.head).from)),gg=n=>Fe(n,e=>M.cursor(n.lineBlockAt(e.head).to)),ar=({state:n,dispatch:e})=>(e(lt(n,{anchor:0})),!0),cr=({state:n,dispatch:e})=>(e(lt(n,{anchor:n.doc.length})),!0),hr=({state:n,dispatch:e})=>(e(lt(n,{anchor:n.selection.main.anchor,head:0})),!0),ur=({state:n,dispatch:e})=>(e(lt(n,{anchor:n.selection.main.anchor,head:n.doc.length})),!0),mg=({state:n,dispatch:e})=>(e(n.update({selection:{anchor:0,head:n.doc.length},userEvent:"select"})),!0),vg=({state:n,dispatch:e})=>{let t=_s(n).map(({from:i,to:s})=>M.range(i,Math.min(s+1,n.doc.length)));return e(n.update({selection:M.create(t),userEvent:"select"})),!0},wg=({state:n,dispatch:e})=>{let t=fi(n.selection,i=>{let s=fe(n),o=s.resolveStack(i.from,1);if(i.empty){let r=s.resolveStack(i.from,-1);r.node.from>=o.node.from&&r.node.to<=o.node.to&&(o=r)}for(let r=o;r;r=r.next){let{node:l}=r;if((l.from<i.from&&l.to>=i.to||l.to>i.to&&l.from<=i.from)&&r.next)return M.range(l.to,l.from)}return i});return t.eq(n.selection)?!1:(e(lt(n,t)),!0)},bg=({state:n,dispatch:e})=>{let t=n.selection,i=null;return t.ranges.length>1?i=M.create([t.main]):t.main.empty||(i=M.create([M.cursor(t.main.head)])),i?(e(lt(n,i)),!0):!1};function Ji(n,e){if(n.state.readOnly)return!1;let t="delete.selection",{state:i}=n,s=i.changeByRange(o=>{let{from:r,to:l}=o;if(r==l){let a=e(o);a<r?(t="delete.backward",a=xn(n,a,!1)):a>r&&(t="delete.forward",a=xn(n,a,!0)),r=Math.min(r,a),l=Math.max(l,a)}else r=xn(n,r,!1),l=xn(n,l,!0);return r==l?{range:o}:{changes:{from:r,to:l},range:M.cursor(r,r<o.head?-1:1)}});return s.changes.empty?!1:(n.dispatch(i.update(s,{scrollIntoView:!0,userEvent:t,effects:t=="delete.selection"?z.announce.of(i.phrase("Selection deleted")):void 0})),!0)}function xn(n,e,t){if(n instanceof z)for(let i of n.state.facet(z.atomicRanges).map(s=>s(n)))i.between(e,e,(s,o)=>{s<e&&o>e&&(e=t?o:s)});return e}const bc=(n,e,t)=>Ji(n,i=>{let s=i.from,{state:o}=n,r=o.doc.lineAt(s),l,a;if(t&&!e&&s>r.from&&s<r.from+200&&!/[^ \t]/.test(l=r.text.slice(0,s-r.from))){if(l[l.length-1]==" ")return s-1;let c=ui(l,o.tabSize),h=c%Jn(o)||Jn(o);for(let f=0;f<h&&l[l.length-1-f]==" ";f++)s--;a=s}else a=ge(r.text,s-r.from,e,e)+r.from,a==s&&r.number!=(e?o.doc.lines:1)?a+=e?1:-1:!e&&/[\ufe00-\ufe0f]/.test(r.text.slice(a-r.from,s-r.from))&&(a=ge(r.text,a-r.from,!1,!1)+r.from);return a}),K0=n=>bc(n,!1,!0),xc=n=>bc(n,!0,!1),yc=(n,e)=>Ji(n,t=>{let i=t.head,{state:s}=n,o=s.doc.lineAt(i),r=s.charCategorizer(i);for(let l=null;;){if(i==(e?o.to:o.from)){i==t.head&&o.number!=(e?s.doc.lines:1)&&(i+=e?1:-1);break}let a=ge(o.text,i-o.from,e)+o.from,c=o.text.slice(Math.min(i,a)-o.from,Math.max(i,a)-o.from),h=r(c);if(l!=null&&h!=l)break;(c!=" "||i!=t.head)&&(l=h),i=a}return i}),kc=n=>yc(n,!1),xg=n=>yc(n,!0),yg=n=>Ji(n,e=>{let t=n.lineBlockAt(e.head).to;return e.head<t?t:Math.min(n.state.doc.length,e.head+1)}),kg=n=>Ji(n,e=>{let t=n.moveToLineBoundary(e,!1).head;return e.head>t?t:Math.max(0,e.head-1)}),Sg=n=>Ji(n,e=>{let t=n.moveToLineBoundary(e,!0).head;return e.head<t?t:Math.min(n.state.doc.length,e.head+1)}),Cg=({state:n,dispatch:e})=>{if(n.readOnly)return!1;let t=n.changeByRange(i=>({changes:{from:i.from,to:i.to,insert:q.of(["",""])},range:M.cursor(i.from)}));return e(n.update(t,{scrollIntoView:!0,userEvent:"input"})),!0},_g=({state:n,dispatch:e})=>{if(n.readOnly)return!1;let t=n.changeByRange(i=>{if(!i.empty||i.from==0||i.from==n.doc.length)return{range:i};let s=i.from,o=n.doc.lineAt(s),r=s==o.from?s-1:ge(o.text,s-o.from,!1)+o.from,l=s==o.to?s+1:ge(o.text,s-o.from,!0)+o.from;return{changes:{from:r,to:l,insert:n.doc.slice(s,l).append(n.doc.slice(r,s))},range:M.cursor(l)}});return t.changes.empty?!1:(e(n.update(t,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function _s(n){let e=[],t=-1;for(let i of n.selection.ranges){let s=n.doc.lineAt(i.from),o=n.doc.lineAt(i.to);if(!i.empty&&i.to==o.from&&(o=n.doc.lineAt(i.to-1)),t>=s.number){let r=e[e.length-1];r.to=o.to,r.ranges.push(i)}else e.push({from:s.from,to:o.to,ranges:[i]});t=o.number+1}return e}function Sc(n,e,t){if(n.readOnly)return!1;let i=[],s=[];for(let o of _s(n)){if(t?o.to==n.doc.length:o.from==0)continue;let r=n.doc.lineAt(t?o.to+1:o.from-1),l=r.length+1;if(t){i.push({from:o.to,to:r.to},{from:o.from,insert:r.text+n.lineBreak});for(let a of o.ranges)s.push(M.range(Math.min(n.doc.length,a.anchor+l),Math.min(n.doc.length,a.head+l)))}else{i.push({from:r.from,to:o.from},{from:o.to,insert:n.lineBreak+r.text});for(let a of o.ranges)s.push(M.range(a.anchor-l,a.head-l))}}return i.length?(e(n.update({changes:i,scrollIntoView:!0,selection:M.create(s,n.selection.mainIndex),userEvent:"move.line"})),!0):!1}const Og=({state:n,dispatch:e})=>Sc(n,e,!1),Mg=({state:n,dispatch:e})=>Sc(n,e,!0);function Cc(n,e,t){if(n.readOnly)return!1;let i=[];for(let s of _s(n))t?i.push({from:s.from,insert:n.doc.slice(s.from,s.to)+n.lineBreak}):i.push({from:s.to,insert:n.lineBreak+n.doc.slice(s.from,s.to)});return e(n.update({changes:i,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const Dg=({state:n,dispatch:e})=>Cc(n,e,!1),Tg=({state:n,dispatch:e})=>Cc(n,e,!0),Ag=n=>{if(n.state.readOnly)return!1;let{state:e}=n,t=e.changes(_s(e).map(({from:s,to:o})=>(s>0?s--:o<e.doc.length&&o++,{from:s,to:o}))),i=fi(e.selection,s=>{let o;if(n.lineWrapping){let r=n.lineBlockAt(s.head),l=n.coordsAtPos(s.head,s.assoc||1);l&&(o=r.bottom+n.documentTop-l.bottom+n.defaultLineHeight/2)}return n.moveVertically(s,!0,o)}).map(t);return n.dispatch({changes:t,selection:i,scrollIntoView:!0,userEvent:"delete.line"}),!0};function Bg(n,e){if(/\(\)|\[\]|\{\}/.test(n.sliceDoc(e-1,e+1)))return{from:e,to:e};let t=fe(n).resolveInner(e),i=t.childBefore(e),s=t.childAfter(e),o;return i&&s&&i.to<=e&&s.from>=e&&(o=i.type.prop(W.closedBy))&&o.indexOf(s.name)>-1&&n.doc.lineAt(i.to).from==n.doc.lineAt(s.from).from&&!/\S/.test(n.sliceDoc(i.to,s.from))?{from:i.to,to:s.from}:null}const fr=_c(!1),Pg=_c(!0);function _c(n){return({state:e,dispatch:t})=>{if(e.readOnly)return!1;let i=e.changeByRange(s=>{let{from:o,to:r}=s,l=e.doc.lineAt(o),a=!n&&o==r&&Bg(e,o);n&&(o=r=(r<=l.to?l:e.doc.lineAt(r)).to);let c=new bs(e,{simulateBreak:o,simulateDoubleBreak:!!a}),h=Co(c,o);for(h==null&&(h=ui(/^\s*/.exec(e.doc.lineAt(o).text)[0],e.tabSize));r<l.to&&/\s/.test(l.text[r-l.from]);)r++;a?{from:o,to:r}=a:o>l.from&&o<l.from+100&&!/\S/.test(l.text.slice(0,o))&&(o=l.from);let f=["",Wi(e,h)];return a&&f.push(Wi(e,c.lineIndent(l.from,-1))),{changes:{from:o,to:r,insert:q.of(f)},range:M.cursor(o+1+f[1].length)}});return t(e.update(i,{scrollIntoView:!0,userEvent:"input"})),!0}}function Do(n,e){let t=-1;return n.changeByRange(i=>{let s=[];for(let r=i.from;r<=i.to;){let l=n.doc.lineAt(r);l.number>t&&(i.empty||i.to>l.from)&&(e(l,s,i),t=l.number),r=l.to+1}let o=n.changes(s);return{changes:s,range:M.range(o.mapPos(i.anchor,1),o.mapPos(i.head,1))}})}const Eg=({state:n,dispatch:e})=>{if(n.readOnly)return!1;let t=Object.create(null),i=new bs(n,{overrideIndentation:o=>{let r=t[o];return r??-1}}),s=Do(n,(o,r,l)=>{let a=Co(i,o.from);if(a==null)return;/\S/.test(o.text)||(a=0);let c=/^\s*/.exec(o.text)[0],h=Wi(n,a);(c!=h||l.from<o.from+c.length)&&(t[o.from]=a,r.push({from:o.from,to:o.from+c.length,insert:h}))});return s.changes.empty||e(n.update(s,{userEvent:"indent"})),!0},Vg=({state:n,dispatch:e})=>n.readOnly?!1:(e(n.update(Do(n,(t,i)=>{i.push({from:t.from,insert:n.facet(So)})}),{userEvent:"input.indent"})),!0),zg=({state:n,dispatch:e})=>n.readOnly?!1:(e(n.update(Do(n,(t,i)=>{let s=/^\s*/.exec(t.text)[0];if(!s)return;let o=ui(s,n.tabSize),r=0,l=Wi(n,Math.max(0,o-Jn(n)));for(;r<s.length&&r<l.length&&s.charCodeAt(r)==l.charCodeAt(r);)r++;i.push({from:t.from+r,to:t.from+s.length,insert:l.slice(r)})}),{userEvent:"delete.dedent"})),!0),Lg=n=>(n.setTabFocusMode(),!0),Rg=[{key:"Ctrl-b",run:nc,shift:fc,preventDefault:!0},{key:"Ctrl-f",run:sc,shift:dc},{key:"Ctrl-p",run:lc,shift:mc},{key:"Ctrl-n",run:ac,shift:vc},{key:"Ctrl-a",run:ig,shift:pg},{key:"Ctrl-e",run:ng,shift:gg},{key:"Ctrl-d",run:xc},{key:"Ctrl-h",run:K0},{key:"Ctrl-k",run:yg},{key:"Ctrl-Alt-h",run:kc},{key:"Ctrl-o",run:Cg},{key:"Ctrl-t",run:_g},{key:"Ctrl-v",run:Y0}],Ng=[{key:"ArrowLeft",run:nc,shift:fc,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:Up,shift:rg,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:eg,shift:fg,preventDefault:!0},{key:"ArrowRight",run:sc,shift:dc,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:Yp,shift:lg,preventDefault:!0},{mac:"Cmd-ArrowRight",run:tg,shift:dg,preventDefault:!0},{key:"ArrowUp",run:lc,shift:mc,preventDefault:!0},{mac:"Cmd-ArrowUp",run:ar,shift:hr},{mac:"Ctrl-ArrowUp",run:or,shift:rr},{key:"ArrowDown",run:ac,shift:vc,preventDefault:!0},{mac:"Cmd-ArrowDown",run:cr,shift:ur},{mac:"Ctrl-ArrowDown",run:Y0,shift:lr},{key:"PageUp",run:or,shift:rr},{key:"PageDown",run:Y0,shift:lr},{key:"Home",run:Zp,shift:ug,preventDefault:!0},{key:"Mod-Home",run:ar,shift:hr},{key:"End",run:Jp,shift:hg,preventDefault:!0},{key:"Mod-End",run:cr,shift:ur},{key:"Enter",run:fr,shift:fr},{key:"Mod-a",run:mg},{key:"Backspace",run:K0,shift:K0},{key:"Delete",run:xc},{key:"Mod-Backspace",mac:"Alt-Backspace",run:kc},{key:"Mod-Delete",mac:"Alt-Delete",run:xg},{mac:"Mod-Backspace",run:kg},{mac:"Mod-Delete",run:Sg}].concat(Rg.map(n=>({mac:n.key,run:n.run,shift:n.shift}))),Ig=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:Xp,shift:ag},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:Qp,shift:cg},{key:"Alt-ArrowUp",run:Og},{key:"Shift-Alt-ArrowUp",run:Dg},{key:"Alt-ArrowDown",run:Mg},{key:"Shift-Alt-ArrowDown",run:Tg},{key:"Escape",run:bg},{key:"Mod-Enter",run:Pg},{key:"Alt-l",mac:"Ctrl-l",run:vg},{key:"Mod-i",run:wg,preventDefault:!0},{key:"Mod-[",run:zg},{key:"Mod-]",run:Vg},{key:"Mod-Alt-\\",run:Eg},{key:"Shift-Mod-k",run:Ag},{key:"Shift-Mod-\\",run:og},{key:"Mod-/",run:Dp},{key:"Alt-A",run:Ap},{key:"Ctrl-m",mac:"Shift-Alt-m",run:Lg}].concat(Ng),dr=typeof String.prototype.normalize=="function"?n=>n.normalize("NFKD"):n=>n;class ci{constructor(e,t,i=0,s=e.length,o,r){this.test=r,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(i,s),this.bufferStart=i,this.normalize=o?l=>o(dr(l)):dr,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return Oe(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=to(e),i=this.bufferStart+this.bufferPos;this.bufferPos+=et(e);let s=this.normalize(t);if(s.length)for(let o=0,r=i;;o++){let l=s.charCodeAt(o),a=this.match(l,r,this.bufferPos+this.bufferStart);if(o==s.length-1){if(a)return this.value=a,this;break}r==i&&o<t.length&&t.charCodeAt(o)==l&&r++}}}match(e,t,i){let s=null;for(let o=0;o<this.matches.length;o+=2){let r=this.matches[o],l=!1;this.query.charCodeAt(r)==e&&(r==this.query.length-1?s={from:this.matches[o+1],to:i}:(this.matches[o]++,l=!0)),l||(this.matches.splice(o,2),o-=2)}return this.query.charCodeAt(0)==e&&(this.query.length==1?s={from:t,to:i}:this.matches.push(1,t)),s&&this.test&&!this.test(s.from,s.to,this.buffer,this.bufferStart)&&(s=null),s}}typeof Symbol<"u"&&(ci.prototype[Symbol.iterator]=function(){return this});const Oc={from:-1,to:-1,match:/.*/.exec("")},To="gm"+(/x/.unicode==null?"":"u");class Mc{constructor(e,t,i,s=0,o=e.length){if(this.text=e,this.to=o,this.curLine="",this.done=!1,this.value=Oc,/\\[sWDnr]|\n|\r|\[\^/.test(t))return new Dc(e,t,i,s,o);this.re=new RegExp(t,To+(i!=null&&i.ignoreCase?"i":"")),this.test=i==null?void 0:i.test,this.iter=e.iter();let r=e.lineAt(s);this.curLineStart=r.from,this.matchPos=is(e,s),this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let i=this.curLineStart+t.index,s=i+t[0].length;if(this.matchPos=is(this.text,s+(i==s?1:0)),i==this.curLineStart+this.curLine.length&&this.nextLine(),(i<s||i>this.value.to)&&(!this.test||this.test(i,s,t)))return this.value={from:i,to:s,match:t},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length<this.to)this.nextLine(),e=0;else return this.done=!0,this}}}const Ks=new WeakMap;class ti{constructor(e,t){this.from=e,this.text=t}get to(){return this.from+this.text.length}static get(e,t,i){let s=Ks.get(e);if(!s||s.from>=i||s.to<=t){let l=new ti(t,e.sliceString(t,i));return Ks.set(e,l),l}if(s.from==t&&s.to==i)return s;let{text:o,from:r}=s;return r>t&&(o=e.sliceString(t,r)+o,r=t),s.to<i&&(o+=e.sliceString(s.to,i)),Ks.set(e,new ti(r,o)),new ti(t,o.slice(t-r,i-r))}}class Dc{constructor(e,t,i,s,o){this.text=e,this.to=o,this.done=!1,this.value=Oc,this.matchPos=is(e,s),this.re=new RegExp(t,To+(i!=null&&i.ignoreCase?"i":"")),this.test=i==null?void 0:i.test,this.flat=ti.get(e,s,this.chunkEnd(s+5e3))}chunkEnd(e){return e>=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let i=this.flat.from+t.index,s=i+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(i,s,t)))return this.value={from:i,to:s,match:t},this.matchPos=is(this.text,s+(i==s?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=ti.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(Mc.prototype[Symbol.iterator]=Dc.prototype[Symbol.iterator]=function(){return this});function Hg(n){try{return new RegExp(n,To),!0}catch{return!1}}function is(n,e){if(e>=n.length)return e;let t=n.lineAt(e),i;for(;e<t.to&&(i=t.text.charCodeAt(e-t.from))>=56320&&i<57344;)e++;return e}function X0(n){let e=String(n.state.doc.lineAt(n.state.selection.main.head).number),t=Y("input",{class:"cm-textfield",name:"line",value:e}),i=Y("form",{class:"cm-gotoLine",onkeydown:o=>{o.keyCode==27?(o.preventDefault(),n.dispatch({effects:Ti.of(!1)}),n.focus()):o.keyCode==13&&(o.preventDefault(),s())},onsubmit:o=>{o.preventDefault(),s()}},Y("label",n.state.phrase("Go to line"),": ",t)," ",Y("button",{class:"cm-button",type:"submit"},n.state.phrase("go")),Y("button",{name:"close",onclick:()=>{n.dispatch({effects:Ti.of(!1)}),n.focus()},"aria-label":n.state.phrase("close"),type:"button"},["×"]));function s(){let o=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(t.value);if(!o)return;let{state:r}=n,l=r.doc.lineAt(r.selection.main.head),[,a,c,h,f]=o,d=h?+h.slice(1):0,p=c?+c:l.number;if(c&&f){let v=p/100;a&&(v=v*(a=="-"?-1:1)+l.number/r.doc.lines),p=Math.round(r.doc.lines*v)}else c&&a&&(p=p*(a=="-"?-1:1)+l.number);let g=r.doc.line(Math.max(1,Math.min(r.doc.lines,p))),m=M.cursor(g.from+Math.max(0,Math.min(d,g.length)));n.dispatch({effects:[Ti.of(!1),z.scrollIntoView(m.from,{y:"center"})],selection:m}),n.focus()}return{dom:i}}const Ti=$.define(),pr=me.define({create(){return!0},update(n,e){for(let t of e.effects)t.is(Ti)&&(n=t.value);return n},provide:n=>Hi.from(n,e=>e?X0:null)}),$g=n=>{let e=Ii(n,X0);if(!e){let t=[Ti.of(!0)];n.state.field(pr,!1)==null&&t.push($.appendConfig.of([pr,Wg])),n.dispatch({effects:t}),e=Ii(n,X0)}return e&&e.dom.querySelector("input").select(),!0},Wg=z.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px",position:"relative","& label":{fontSize:"80%"},"& [name=close]":{position:"absolute",top:"0",bottom:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:"0"}}}),Fg={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},Gg=L.define({combine(n){return rt(n,Fg,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})}});function jg(n){return[Xg,Kg]}const qg=I.mark({class:"cm-selectionMatch"}),Ug=I.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function gr(n,e,t,i){return(t==0||n(e.sliceDoc(t-1,t))!=te.Word)&&(i==e.doc.length||n(e.sliceDoc(i,i+1))!=te.Word)}function Yg(n,e,t,i){return n(e.sliceDoc(t,t+1))==te.Word&&n(e.sliceDoc(i-1,i))==te.Word}const Kg=re.fromClass(class{constructor(n){this.decorations=this.getDeco(n)}update(n){(n.selectionSet||n.docChanged||n.viewportChanged)&&(this.decorations=this.getDeco(n.view))}getDeco(n){let e=n.state.facet(Gg),{state:t}=n,i=t.selection;if(i.ranges.length>1)return I.none;let s=i.main,o,r=null;if(s.empty){if(!e.highlightWordAroundCursor)return I.none;let a=t.wordAt(s.head);if(!a)return I.none;r=t.charCategorizer(s.head),o=t.sliceDoc(a.from,a.to)}else{let a=s.to-s.from;if(a<e.minSelectionLength||a>200)return I.none;if(e.wholeWords){if(o=t.sliceDoc(s.from,s.to),r=t.charCategorizer(s.head),!(gr(r,t,s.from,s.to)&&Yg(r,t,s.from,s.to)))return I.none}else if(o=t.sliceDoc(s.from,s.to),!o)return I.none}let l=[];for(let a of n.visibleRanges){let c=new ci(t.doc,o,a.from,a.to);for(;!c.next().done;){let{from:h,to:f}=c.value;if((!r||gr(r,t,h,f))&&(s.empty&&h<=s.from&&f>=s.to?l.push(Ug.range(h,f)):(h>=s.to||f<=s.from)&&l.push(qg.range(h,f)),l.length>e.maxMatches))return I.none}}return I.set(l)}},{decorations:n=>n.decorations}),Xg=z.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),Qg=({state:n,dispatch:e})=>{let{selection:t}=n,i=M.create(t.ranges.map(s=>n.wordAt(s.head)||M.cursor(s.head)),t.mainIndex);return i.eq(t)?!1:(e(n.update({selection:i})),!0)};function Jg(n,e){let{main:t,ranges:i}=n.selection,s=n.wordAt(t.head),o=s&&s.from==t.from&&s.to==t.to;for(let r=!1,l=new ci(n.doc,e,i[i.length-1].to);;)if(l.next(),l.done){if(r)return null;l=new ci(n.doc,e,0,Math.max(0,i[i.length-1].from-1)),r=!0}else{if(r&&i.some(a=>a.from==l.value.from))continue;if(o){let a=n.wordAt(l.value.from);if(!a||a.from!=l.value.from||a.to!=l.value.to)continue}return l.value}}const Zg=({state:n,dispatch:e})=>{let{ranges:t}=n.selection;if(t.some(o=>o.from===o.to))return Qg({state:n,dispatch:e});let i=n.sliceDoc(t[0].from,t[0].to);if(n.selection.ranges.some(o=>n.sliceDoc(o.from,o.to)!=i))return!1;let s=Jg(n,i);return s?(e(n.update({selection:n.selection.addRange(M.range(s.from,s.to),!1),effects:z.scrollIntoView(s.to)})),!0):!1},di=L.define({combine(n){return rt(n,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new u8(e),scrollToMatch:e=>z.scrollIntoView(e)})}});class Tc{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||Hg(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(t,i)=>i=="n"?`
|
|
12
|
+
`:i=="r"?"\r":i=="t"?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new n8(this):new t8(this)}getCursor(e,t=0,i){let s=e.doc?e:G.create({doc:e});return i==null&&(i=s.doc.length),this.regexp?Ut(this,s,t,i):qt(this,s,t,i)}}class Ac{constructor(e){this.spec=e}}function qt(n,e,t,i){return new ci(e.doc,n.unquoted,t,i,n.caseSensitive?void 0:s=>s.toLowerCase(),n.wholeWord?e8(e.doc,e.charCategorizer(e.selection.main.head)):void 0)}function e8(n,e){return(t,i,s,o)=>((o>t||o+s.length<i)&&(o=Math.max(0,t-2),s=n.sliceString(o,Math.min(n.length,i+2))),(e(ns(s,t-o))!=te.Word||e(ss(s,t-o))!=te.Word)&&(e(ss(s,i-o))!=te.Word||e(ns(s,i-o))!=te.Word))}class t8 extends Ac{constructor(e){super(e)}nextMatch(e,t,i){let s=qt(this.spec,e,i,e.doc.length).nextOverlapping();if(s.done){let o=Math.min(e.doc.length,t+this.spec.unquoted.length);s=qt(this.spec,e,0,o).nextOverlapping()}return s.done||s.value.from==t&&s.value.to==i?null:s.value}prevMatchInRange(e,t,i){for(let s=i;;){let o=Math.max(t,s-1e4-this.spec.unquoted.length),r=qt(this.spec,e,o,s),l=null;for(;!r.nextOverlapping().done;)l=r.value;if(l)return l;if(o==t)return null;s-=1e4}}prevMatch(e,t,i){let s=this.prevMatchInRange(e,0,t);return s||(s=this.prevMatchInRange(e,Math.max(0,i-this.spec.unquoted.length),e.doc.length)),s&&(s.from!=t||s.to!=i)?s:null}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,t){let i=qt(this.spec,e,0,e.doc.length),s=[];for(;!i.next().done;){if(s.length>=t)return null;s.push(i.value)}return s}highlight(e,t,i,s){let o=qt(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(i+this.spec.unquoted.length,e.doc.length));for(;!o.next().done;)s(o.value.from,o.value.to)}}function Ut(n,e,t,i){return new Mc(e.doc,n.search,{ignoreCase:!n.caseSensitive,test:n.wholeWord?i8(e.charCategorizer(e.selection.main.head)):void 0},t,i)}function ns(n,e){return n.slice(ge(n,e,!1),e)}function ss(n,e){return n.slice(e,ge(n,e))}function i8(n){return(e,t,i)=>!i[0].length||(n(ns(i.input,i.index))!=te.Word||n(ss(i.input,i.index))!=te.Word)&&(n(ss(i.input,i.index+i[0].length))!=te.Word||n(ns(i.input,i.index+i[0].length))!=te.Word)}class n8 extends Ac{nextMatch(e,t,i){let s=Ut(this.spec,e,i,e.doc.length).next();return s.done&&(s=Ut(this.spec,e,0,t).next()),s.done?null:s.value}prevMatchInRange(e,t,i){for(let s=1;;s++){let o=Math.max(t,i-s*1e4),r=Ut(this.spec,e,o,i),l=null;for(;!r.next().done;)l=r.value;if(l&&(o==t||l.from>o+10))return l;if(o==t)return null}}prevMatch(e,t,i){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,i,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(t,i)=>{if(i=="&")return e.match[0];if(i=="$")return"$";for(let s=i.length;s>0;s--){let o=+i.slice(0,s);if(o>0&&o<e.match.length)return e.match[o]+i.slice(s)}return t})}matchAll(e,t){let i=Ut(this.spec,e,0,e.doc.length),s=[];for(;!i.next().done;){if(s.length>=t)return null;s.push(i.value)}return s}highlight(e,t,i,s){let o=Ut(this.spec,e,Math.max(0,t-250),Math.min(i+250,e.doc.length));for(;!o.next().done;)s(o.value.from,o.value.to)}}const Fi=$.define(),Ao=$.define(),kt=me.define({create(n){return new Xs(Q0(n).create(),null)},update(n,e){for(let t of e.effects)t.is(Fi)?n=new Xs(t.value.create(),n.panel):t.is(Ao)&&(n=new Xs(n.query,t.value?Bo:null));return n},provide:n=>Hi.from(n,e=>e.panel)});class Xs{constructor(e,t){this.query=e,this.panel=t}}const s8=I.mark({class:"cm-searchMatch"}),o8=I.mark({class:"cm-searchMatch cm-searchMatch-selected"}),r8=re.fromClass(class{constructor(n){this.view=n,this.decorations=this.highlight(n.state.field(kt))}update(n){let e=n.state.field(kt);(e!=n.startState.field(kt)||n.docChanged||n.selectionSet||n.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:n,panel:e}){if(!e||!n.spec.valid)return I.none;let{view:t}=this,i=new ut;for(let s=0,o=t.visibleRanges,r=o.length;s<r;s++){let{from:l,to:a}=o[s];for(;s<r-1&&a>o[s+1].from-2*250;)a=o[++s].to;n.highlight(t.state,l,a,(c,h)=>{let f=t.state.selection.ranges.some(d=>d.from==c&&d.to==h);i.add(c,h,f?o8:s8)})}return i.finish()}},{decorations:n=>n.decorations});function Zi(n){return e=>{let t=e.state.field(kt,!1);return t&&t.query.spec.valid?n(e,t):Ec(e)}}const os=Zi((n,{query:e})=>{let{to:t}=n.state.selection.main,i=e.nextMatch(n.state,t,t);if(!i)return!1;let s=M.single(i.from,i.to),o=n.state.facet(di);return n.dispatch({selection:s,effects:[Po(n,i),o.scrollToMatch(s.main,n)],userEvent:"select.search"}),Pc(n),!0}),rs=Zi((n,{query:e})=>{let{state:t}=n,{from:i}=t.selection.main,s=e.prevMatch(t,i,i);if(!s)return!1;let o=M.single(s.from,s.to),r=n.state.facet(di);return n.dispatch({selection:o,effects:[Po(n,s),r.scrollToMatch(o.main,n)],userEvent:"select.search"}),Pc(n),!0}),l8=Zi((n,{query:e})=>{let t=e.matchAll(n.state,1e3);return!t||!t.length?!1:(n.dispatch({selection:M.create(t.map(i=>M.range(i.from,i.to))),userEvent:"select.search.matches"}),!0)}),a8=({state:n,dispatch:e})=>{let t=n.selection;if(t.ranges.length>1||t.main.empty)return!1;let{from:i,to:s}=t.main,o=[],r=0;for(let l=new ci(n.doc,n.sliceDoc(i,s));!l.next().done;){if(o.length>1e3)return!1;l.value.from==i&&(r=o.length),o.push(M.range(l.value.from,l.value.to))}return e(n.update({selection:M.create(o,r),userEvent:"select.search.matches"})),!0},mr=Zi((n,{query:e})=>{let{state:t}=n,{from:i,to:s}=t.selection.main;if(t.readOnly)return!1;let o=e.nextMatch(t,i,i);if(!o)return!1;let r=o,l=[],a,c,h=[];r.from==i&&r.to==s&&(c=t.toText(e.getReplacement(r)),l.push({from:r.from,to:r.to,insert:c}),r=e.nextMatch(t,r.from,r.to),h.push(z.announce.of(t.phrase("replaced match on line $",t.doc.lineAt(i).number)+".")));let f=n.state.changes(l);return r&&(a=M.single(r.from,r.to).map(f),h.push(Po(n,r)),h.push(t.facet(di).scrollToMatch(a.main,n))),n.dispatch({changes:f,selection:a,effects:h,userEvent:"input.replace"}),!0}),c8=Zi((n,{query:e})=>{if(n.state.readOnly)return!1;let t=e.matchAll(n.state,1e9).map(s=>{let{from:o,to:r}=s;return{from:o,to:r,insert:e.getReplacement(s)}});if(!t.length)return!1;let i=n.state.phrase("replaced $ matches",t.length)+".";return n.dispatch({changes:t,effects:z.announce.of(i),userEvent:"input.replace.all"}),!0});function Bo(n){return n.state.facet(di).createPanel(n)}function Q0(n,e){var t,i,s,o,r;let l=n.selection.main,a=l.empty||l.to>l.from+100?"":n.sliceDoc(l.from,l.to);if(e&&!a)return e;let c=n.facet(di);return new Tc({search:((t=e==null?void 0:e.literal)!==null&&t!==void 0?t:c.literal)?a:a.replace(/\n/g,"\\n"),caseSensitive:(i=e==null?void 0:e.caseSensitive)!==null&&i!==void 0?i:c.caseSensitive,literal:(s=e==null?void 0:e.literal)!==null&&s!==void 0?s:c.literal,regexp:(o=e==null?void 0:e.regexp)!==null&&o!==void 0?o:c.regexp,wholeWord:(r=e==null?void 0:e.wholeWord)!==null&&r!==void 0?r:c.wholeWord})}function Bc(n){let e=Ii(n,Bo);return e&&e.dom.querySelector("[main-field]")}function Pc(n){let e=Bc(n);e&&e==n.root.activeElement&&e.select()}const Ec=n=>{let e=n.state.field(kt,!1);if(e&&e.panel){let t=Bc(n);if(t&&t!=n.root.activeElement){let i=Q0(n.state,e.query.spec);i.valid&&n.dispatch({effects:Fi.of(i)}),t.focus(),t.select()}}else n.dispatch({effects:[Ao.of(!0),e?Fi.of(Q0(n.state,e.query.spec)):$.appendConfig.of(d8)]});return!0},Vc=n=>{let e=n.state.field(kt,!1);if(!e||!e.panel)return!1;let t=Ii(n,Bo);return t&&t.dom.contains(n.root.activeElement)&&n.focus(),n.dispatch({effects:Ao.of(!1)}),!0},h8=[{key:"Mod-f",run:Ec,scope:"editor search-panel"},{key:"F3",run:os,shift:rs,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:os,shift:rs,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:Vc,scope:"editor search-panel"},{key:"Mod-Shift-l",run:a8},{key:"Mod-Alt-g",run:$g},{key:"Mod-d",run:Zg,preventDefault:!0}];class u8{constructor(e){this.view=e;let t=this.query=e.state.field(kt).query.spec;this.commit=this.commit.bind(this),this.searchField=Y("input",{value:t.search,placeholder:Ee(e,"Find"),"aria-label":Ee(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Y("input",{value:t.replace,placeholder:Ee(e,"Replace"),"aria-label":Ee(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Y("input",{type:"checkbox",name:"case",form:"",checked:t.caseSensitive,onchange:this.commit}),this.reField=Y("input",{type:"checkbox",name:"re",form:"",checked:t.regexp,onchange:this.commit}),this.wordField=Y("input",{type:"checkbox",name:"word",form:"",checked:t.wholeWord,onchange:this.commit});function i(s,o,r){return Y("button",{class:"cm-button",name:s,onclick:o,type:"button"},r)}this.dom=Y("div",{onkeydown:s=>this.keydown(s),class:"cm-search"},[this.searchField,i("next",()=>os(e),[Ee(e,"next")]),i("prev",()=>rs(e),[Ee(e,"previous")]),i("select",()=>l8(e),[Ee(e,"all")]),Y("label",null,[this.caseField,Ee(e,"match case")]),Y("label",null,[this.reField,Ee(e,"regexp")]),Y("label",null,[this.wordField,Ee(e,"by word")]),...e.state.readOnly?[]:[Y("br"),this.replaceField,i("replace",()=>mr(e),[Ee(e,"replace")]),i("replaceAll",()=>c8(e),[Ee(e,"replace all")])],Y("button",{name:"close",onclick:()=>Vc(e),"aria-label":Ee(e,"close"),type:"button"},["×"])])}commit(){let e=new Tc({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:Fi.of(e)}))}keydown(e){y6(this.view,e,"search-panel")?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?rs:os)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),mr(this.view))}update(e){for(let t of e.transactions)for(let i of t.effects)i.is(Fi)&&!i.value.eq(this.query)&&this.setQuery(i.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(di).top}}function Ee(n,e){return n.state.phrase(e)}const yn=30,kn=/[\s\.,:;?!]/;function Po(n,{from:e,to:t}){let i=n.state.doc.lineAt(e),s=n.state.doc.lineAt(t).to,o=Math.max(i.from,e-yn),r=Math.min(s,t+yn),l=n.state.sliceDoc(o,r);if(o!=i.from){for(let a=0;a<yn;a++)if(!kn.test(l[a+1])&&kn.test(l[a])){l=l.slice(a);break}}if(r!=s){for(let a=l.length-1;a>l.length-yn;a--)if(!kn.test(l[a-1])&&kn.test(l[a])){l=l.slice(0,a);break}}return z.announce.of(`${n.state.phrase("current match")}. ${l} ${n.state.phrase("on line")} ${i.number}.`)}const f8=z.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),d8=[kt,Ft.low(r8),f8];class zc{constructor(e,t,i,s){this.state=e,this.pos=t,this.explicit=i,this.view=s,this.abortListeners=[],this.abortOnDocChange=!1}tokenBefore(e){let t=fe(this.state).resolveInner(this.pos,-1);for(;t&&e.indexOf(t.name)<0;)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),i=Math.max(t.from,this.pos-250),s=t.text.slice(i-t.from,this.pos-t.from),o=s.search(Lc(e,!1));return o<0?null:{from:i+o,to:this.pos,text:s.slice(o)}}get aborted(){return this.abortListeners==null}addEventListener(e,t,i){e=="abort"&&this.abortListeners&&(this.abortListeners.push(t),i&&i.onDocChange&&(this.abortOnDocChange=!0))}}function vr(n){let e=Object.keys(n).join(""),t=/\w/.test(e);return t&&(e=e.replace(/\w/g,"")),`[${t?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function p8(n){let e=Object.create(null),t=Object.create(null);for(let{label:s}of n){e[s[0]]=!0;for(let o=1;o<s.length;o++)t[s[o]]=!0}let i=vr(e)+vr(t)+"*$";return[new RegExp("^"+i),new RegExp(i)]}function g8(n){let e=n.map(s=>typeof s=="string"?{label:s}:s),[t,i]=e.every(s=>/^\w+$/.test(s.label))?[/\w*$/,/\w+$/]:p8(e);return s=>{let o=s.matchBefore(i);return o||s.explicit?{from:o?o.from:s.pos,options:e,validFor:t}:null}}class wr{constructor(e,t,i,s){this.completion=e,this.source=t,this.match=i,this.score=s}}function Lt(n){return n.selection.main.from}function Lc(n,e){var t;let{source:i}=n,s=e&&i[0]!="^",o=i[i.length-1]!="$";return!s&&!o?n:new RegExp(`${s?"^":""}(?:${i})${o?"$":""}`,(t=n.flags)!==null&&t!==void 0?t:n.ignoreCase?"i":"")}const Rc=pt.define();function m8(n,e,t,i){let{main:s}=n.selection,o=t-s.from,r=i-s.from;return Object.assign(Object.assign({},n.changeByRange(l=>{if(l!=s&&t!=i&&n.sliceDoc(l.from+o,l.from+r)!=n.sliceDoc(t,i))return{range:l};let a=n.toText(e);return{changes:{from:l.from+o,to:i==s.from?l.to:l.from+r,insert:a},range:M.cursor(l.from+o+a.length)}})),{scrollIntoView:!0,userEvent:"input.complete"})}const br=new WeakMap;function v8(n){if(!Array.isArray(n))return n;let e=br.get(n);return e||br.set(n,e=g8(n)),e}const ls=$.define(),Gi=$.define();class w8{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let t=0;t<e.length;){let i=Oe(e,t),s=et(i);this.chars.push(i);let o=e.slice(t,t+s),r=o.toUpperCase();this.folded.push(Oe(r==o?o.toLowerCase():r,0)),t+=s}this.astral=e.length!=this.chars.length}ret(e,t){return this.score=e,this.matched=t,this}match(e){if(this.pattern.length==0)return this.ret(-100,[]);if(e.length<this.pattern.length)return null;let{chars:t,folded:i,any:s,precise:o,byWord:r}=this;if(t.length==1){let x=Oe(e,0),k=et(x),_=k==e.length?0:-100;if(x!=t[0])if(x==i[0])_+=-200;else return null;return this.ret(_,[0,k])}let l=e.indexOf(this.pattern);if(l==0)return this.ret(e.length==this.pattern.length?0:-100,[0,this.pattern.length]);let a=t.length,c=0;if(l<0){for(let x=0,k=Math.min(e.length,200);x<k&&c<a;){let _=Oe(e,x);(_==t[c]||_==i[c])&&(s[c++]=x),x+=et(_)}if(c<a)return null}let h=0,f=0,d=!1,p=0,g=-1,m=-1,v=/[a-z]/.test(e),b=!0;for(let x=0,k=Math.min(e.length,200),_=0;x<k&&f<a;){let y=Oe(e,x);l<0&&(h<a&&y==t[h]&&(o[h++]=x),p<a&&(y==t[p]||y==i[p]?(p==0&&(g=x),m=x+1,p++):p=0));let S,C=y<255?y>=48&&y<=57||y>=97&&y<=122?2:y>=65&&y<=90?1:0:(S=to(y))!=S.toLowerCase()?1:S!=S.toUpperCase()?2:0;(!x||C==1&&v||_==0&&C!=0)&&(t[f]==y||i[f]==y&&(d=!0)?r[f++]=x:r.length&&(b=!1)),_=C,x+=et(y)}return f==a&&r[0]==0&&b?this.result(-100+(d?-200:0),r,e):p==a&&g==0?this.ret(-200-e.length+(m==e.length?0:-100),[0,m]):l>-1?this.ret(-700-e.length,[l,l+this.pattern.length]):p==a?this.ret(-900-e.length,[g,m]):f==a?this.result(-100+(d?-200:0)+-700+(b?0:-1100),r,e):t.length==2?null:this.result((s[0]?-700:0)+-200+-1100,s,e)}result(e,t,i){let s=[],o=0;for(let r of t){let l=r+(this.astral?et(Oe(i,r)):1);o&&s[o-1]==r?s[o-1]=l:(s[o++]=r,s[o++]=l)}return this.ret(e-i.length,s)}}class b8{constructor(e){this.pattern=e,this.matched=[],this.score=0,this.folded=e.toLowerCase()}match(e){if(e.length<this.pattern.length)return null;let t=e.slice(0,this.pattern.length),i=t==this.pattern?0:t.toLowerCase()==this.folded?-200:null;return i==null?null:(this.matched=[0,t.length],this.score=i+(e.length==this.pattern.length?0:-100),this)}}const ue=L.define({combine(n){return rt(n,{activateOnTyping:!0,activateOnCompletion:()=>!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:x8,filterStrict:!1,compareCompletions:(e,t)=>e.label.localeCompare(t.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>i=>xr(e(i),t(i)),optionClass:(e,t)=>i=>xr(e(i),t(i)),addToOptions:(e,t)=>e.concat(t),filterStrict:(e,t)=>e||t})}});function xr(n,e){return n?e?n+" "+e:n:e}function x8(n,e,t,i,s,o){let r=n.textDirection==Z.RTL,l=r,a=!1,c="top",h,f,d=e.left-s.left,p=s.right-e.right,g=i.right-i.left,m=i.bottom-i.top;if(l&&d<Math.min(g,p)?l=!1:!l&&p<Math.min(g,d)&&(l=!0),g<=(l?d:p))h=Math.max(s.top,Math.min(t.top,s.bottom-m))-e.top,f=Math.min(400,l?d:p);else{a=!0,f=Math.min(400,(r?e.right:s.right-e.left)-30);let x=s.bottom-e.bottom;x>=m||x>e.top?h=t.bottom-e.top:(c="bottom",h=e.bottom-t.top)}let v=(e.bottom-e.top)/o.offsetHeight,b=(e.right-e.left)/o.offsetWidth;return{style:`${c}: ${h/v}px; max-width: ${f/b}px`,class:"cm-completionInfo-"+(a?r?"left-narrow":"right-narrow":l?"left":"right")}}function y8(n){let e=n.addToOptions.slice();return n.icons&&e.push({render(t){let i=document.createElement("div");return i.classList.add("cm-completionIcon"),t.type&&i.classList.add(...t.type.split(/\s+/g).map(s=>"cm-completionIcon-"+s)),i.setAttribute("aria-hidden","true"),i},position:20}),e.push({render(t,i,s,o){let r=document.createElement("span");r.className="cm-completionLabel";let l=t.displayLabel||t.label,a=0;for(let c=0;c<o.length;){let h=o[c++],f=o[c++];h>a&&r.appendChild(document.createTextNode(l.slice(a,h)));let d=r.appendChild(document.createElement("span"));d.appendChild(document.createTextNode(l.slice(h,f))),d.className="cm-completionMatchedText",a=f}return a<l.length&&r.appendChild(document.createTextNode(l.slice(a))),r},position:50},{render(t){if(!t.detail)return null;let i=document.createElement("span");return i.className="cm-completionDetail",i.textContent=t.detail,i},position:80}),e.sort((t,i)=>t.position-i.position).map(t=>t.render)}function Qs(n,e,t){if(n<=t)return{from:0,to:n};if(e<0&&(e=0),e<=n>>1){let s=Math.floor(e/t);return{from:s*t,to:(s+1)*t}}let i=Math.floor((n-e)/t);return{from:n-(i+1)*t,to:n-i*t}}class k8{constructor(e,t,i){this.view=e,this.stateField=t,this.applyCompletion=i,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:a=>this.placeInfo(a),key:this},this.space=null,this.currentClass="";let s=e.state.field(t),{options:o,selected:r}=s.open,l=e.state.facet(ue);this.optionContent=y8(l),this.optionClass=l.optionClass,this.tooltipClass=l.tooltipClass,this.range=Qs(o.length,r,l.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",a=>{let{options:c}=e.state.field(t).open;for(let h=a.target,f;h&&h!=this.dom;h=h.parentNode)if(h.nodeName=="LI"&&(f=/-(\d+)$/.exec(h.id))&&+f[1]<c.length){this.applyCompletion(e,c[+f[1]]),a.preventDefault();return}}),this.dom.addEventListener("focusout",a=>{let c=e.state.field(this.stateField,!1);c&&c.tooltip&&e.state.facet(ue).closeOnBlur&&a.relatedTarget!=e.contentDOM&&e.dispatch({effects:Gi.of(null)})}),this.showOptions(o,s.id)}mount(){this.updateSel()}showOptions(e,t){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,t,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){var t;let i=e.state.field(this.stateField),s=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),i!=s){let{options:o,selected:r,disabled:l}=i.open;(!s.open||s.open.options!=o)&&(this.range=Qs(o.length,r,e.state.facet(ue).maxRenderedOptions),this.showOptions(o,i.id)),this.updateSel(),l!=((t=s.open)===null||t===void 0?void 0:t.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!l)}}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let i of this.currentClass.split(" "))i&&this.dom.classList.remove(i);for(let i of t.split(" "))i&&this.dom.classList.add(i);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;if((t.selected>-1&&t.selected<this.range.from||t.selected>=this.range.to)&&(this.range=Qs(t.options.length,t.selected,this.view.state.facet(ue).maxRenderedOptions),this.showOptions(t.options,e.id)),this.updateSelectedOption(t.selected)){this.destroyInfo();let{completion:i}=t.options[t.selected],{info:s}=i;if(!s)return;let o=typeof s=="string"?document.createTextNode(s):s(i);if(!o)return;"then"in o?o.then(r=>{r&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(r,i)}).catch(r=>Te(this.view.state,r,"completion info")):this.addInfoPane(o,i)}}addInfoPane(e,t){this.destroyInfo();let i=this.info=document.createElement("div");if(i.className="cm-tooltip cm-completionInfo",e.nodeType!=null)i.appendChild(e),this.infoDestroy=null;else{let{dom:s,destroy:o}=e;i.appendChild(s),this.infoDestroy=o||null}this.dom.appendChild(i),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let t=null;for(let i=this.list.firstChild,s=this.range.from;i;i=i.nextSibling,s++)i.nodeName!="LI"||!i.id?s--:s==e?i.hasAttribute("aria-selected")||(i.setAttribute("aria-selected","true"),t=i):i.hasAttribute("aria-selected")&&i.removeAttribute("aria-selected");return t&&C8(this.list,t),t}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),i=this.info.getBoundingClientRect(),s=e.getBoundingClientRect(),o=this.space;if(!o){let r=this.dom.ownerDocument.documentElement;o={left:0,top:0,right:r.clientWidth,bottom:r.clientHeight}}return s.top>Math.min(o.bottom,t.bottom)-10||s.bottom<Math.max(o.top,t.top)+10?null:this.view.state.facet(ue).positionInfo(this.view,t,s,i,o,this.dom)}placeInfo(e){this.info&&(e?(e.style&&(this.info.style.cssText=e.style),this.info.className="cm-tooltip cm-completionInfo "+(e.class||"")):this.info.style.cssText="top: -1e6px")}createListBox(e,t,i){const s=document.createElement("ul");s.id=t,s.setAttribute("role","listbox"),s.setAttribute("aria-expanded","true"),s.setAttribute("aria-label",this.view.state.phrase("Completions")),s.addEventListener("mousedown",r=>{r.target==s&&r.preventDefault()});let o=null;for(let r=i.from;r<i.to;r++){let{completion:l,match:a}=e[r],{section:c}=l;if(c){let d=typeof c=="string"?c:c.name;if(d!=o&&(r>i.from||i.from==0))if(o=d,typeof c!="string"&&c.header)s.appendChild(c.header(c));else{let p=s.appendChild(document.createElement("completion-section"));p.textContent=d}}const h=s.appendChild(document.createElement("li"));h.id=t+"-"+r,h.setAttribute("role","option");let f=this.optionClass(l);f&&(h.className=f);for(let d of this.optionContent){let p=d(l,this.view.state,this.view,a);p&&h.appendChild(p)}}return i.from&&s.classList.add("cm-completionListIncompleteTop"),i.to<e.length&&s.classList.add("cm-completionListIncompleteBottom"),s}destroyInfo(){this.info&&(this.infoDestroy&&this.infoDestroy(),this.info.remove(),this.info=null)}destroy(){this.destroyInfo()}}function S8(n,e){return t=>new k8(t,n,e)}function C8(n,e){let t=n.getBoundingClientRect(),i=e.getBoundingClientRect(),s=t.height/n.offsetHeight;i.top<t.top?n.scrollTop-=(t.top-i.top)/s:i.bottom>t.bottom&&(n.scrollTop+=(i.bottom-t.bottom)/s)}function yr(n){return(n.boost||0)*100+(n.apply?10:0)+(n.info?5:0)+(n.type?1:0)}function _8(n,e){let t=[],i=null,s=c=>{t.push(c);let{section:h}=c.completion;if(h){i||(i=[]);let f=typeof h=="string"?h:h.name;i.some(d=>d.name==f)||i.push(typeof h=="string"?{name:f}:h)}},o=e.facet(ue);for(let c of n)if(c.hasResult()){let h=c.result.getMatch;if(c.result.filter===!1)for(let f of c.result.options)s(new wr(f,c.source,h?h(f):[],1e9-t.length));else{let f=e.sliceDoc(c.from,c.to),d,p=o.filterStrict?new b8(f):new w8(f);for(let g of c.result.options)if(d=p.match(g.label)){let m=g.displayLabel?h?h(g,d.matched):[]:d.matched;s(new wr(g,c.source,m,d.score+(g.boost||0)))}}}if(i){let c=Object.create(null),h=0,f=(d,p)=>{var g,m;return((g=d.rank)!==null&&g!==void 0?g:1e9)-((m=p.rank)!==null&&m!==void 0?m:1e9)||(d.name<p.name?-1:1)};for(let d of i.sort(f))h-=1e5,c[d.name]=h;for(let d of t){let{section:p}=d.completion;p&&(d.score+=c[typeof p=="string"?p:p.name])}}let r=[],l=null,a=o.compareCompletions;for(let c of t.sort((h,f)=>f.score-h.score||a(h.completion,f.completion))){let h=c.completion;!l||l.label!=h.label||l.detail!=h.detail||l.type!=null&&h.type!=null&&l.type!=h.type||l.apply!=h.apply||l.boost!=h.boost?r.push(c):yr(c.completion)>yr(l)&&(r[r.length-1]=c),l=c.completion}return r}class Qt{constructor(e,t,i,s,o,r){this.options=e,this.attrs=t,this.tooltip=i,this.timestamp=s,this.selected=o,this.disabled=r}setSelected(e,t){return e==this.selected||e>=this.options.length?this:new Qt(this.options,kr(t,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,t,i,s,o,r){if(s&&!r&&e.some(c=>c.isPending))return s.setDisabled();let l=_8(e,t);if(!l.length)return s&&e.some(c=>c.isPending)?s.setDisabled():null;let a=t.facet(ue).selectOnOpen?0:-1;if(s&&s.selected!=a&&s.selected!=-1){let c=s.options[s.selected].completion;for(let h=0;h<l.length;h++)if(l[h].completion==c){a=h;break}}return new Qt(l,kr(i,a),{pos:e.reduce((c,h)=>h.hasResult()?Math.min(c,h.from):c,1e8),create:B8,above:o.aboveCursor},s?s.timestamp:Date.now(),a,!1)}map(e){return new Qt(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}setDisabled(){return new Qt(this.options,this.attrs,this.tooltip,this.timestamp,this.selected,!0)}}class as{constructor(e,t,i){this.active=e,this.id=t,this.open=i}static start(){return new as(T8,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(e){let{state:t}=e,i=t.facet(ue),o=(i.override||t.languageDataAt("autocomplete",Lt(t)).map(v8)).map(a=>(this.active.find(h=>h.source==a)||new Ie(a,this.active.some(h=>h.state!=0)?1:0)).update(e,i));o.length==this.active.length&&o.every((a,c)=>a==this.active[c])&&(o=this.active);let r=this.open,l=e.effects.some(a=>a.is(Eo));r&&e.docChanged&&(r=r.map(e.changes)),e.selection||o.some(a=>a.hasResult()&&e.changes.touchesRange(a.from,a.to))||!O8(o,this.active)||l?r=Qt.build(o,t,this.id,r,i,l):r&&r.disabled&&!o.some(a=>a.isPending)&&(r=null),!r&&o.every(a=>!a.isPending)&&o.some(a=>a.hasResult())&&(o=o.map(a=>a.hasResult()?new Ie(a.source,0):a));for(let a of e.effects)a.is(Ic)&&(r=r&&r.setSelected(a.value,this.id));return o==this.active&&r==this.open?this:new as(o,this.id,r)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?M8:D8}}function O8(n,e){if(n==e)return!0;for(let t=0,i=0;;){for(;t<n.length&&!n[t].hasResult();)t++;for(;i<e.length&&!e[i].hasResult();)i++;let s=t==n.length,o=i==e.length;if(s||o)return s==o;if(n[t++].result!=e[i++].result)return!1}}const M8={"aria-autocomplete":"list"},D8={};function kr(n,e){let t={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":n};return e>-1&&(t["aria-activedescendant"]=n+"-"+e),t}const T8=[];function Nc(n,e){if(n.isUserEvent("input.complete")){let i=n.annotation(Rc);if(i&&e.activateOnCompletion(i))return 12}let t=n.isUserEvent("input.type");return t&&e.activateOnTyping?5:t?1:n.isUserEvent("delete.backward")?2:n.selection?8:n.docChanged?16:0}class Ie{constructor(e,t,i=!1){this.source=e,this.state=t,this.explicit=i}hasResult(){return!1}get isPending(){return this.state==1}update(e,t){let i=Nc(e,t),s=this;(i&8||i&16&&this.touches(e))&&(s=new Ie(s.source,0)),i&4&&s.state==0&&(s=new Ie(this.source,1)),s=s.updateFor(e,i);for(let o of e.effects)if(o.is(ls))s=new Ie(s.source,1,o.value);else if(o.is(Gi))s=new Ie(s.source,0);else if(o.is(Eo))for(let r of o.value)r.source==s.source&&(s=r);return s}updateFor(e,t){return this.map(e.changes)}map(e){return this}touches(e){return e.changes.touchesRange(Lt(e.state))}}class ii extends Ie{constructor(e,t,i,s,o,r){super(e,3,t),this.limit=i,this.result=s,this.from=o,this.to=r}hasResult(){return!0}updateFor(e,t){var i;if(!(t&3))return this.map(e.changes);let s=this.result;s.map&&!e.changes.empty&&(s=s.map(s,e.changes));let o=e.changes.mapPos(this.from),r=e.changes.mapPos(this.to,1),l=Lt(e.state);if(l>r||!s||t&2&&(Lt(e.startState)==this.from||l<this.limit))return new Ie(this.source,t&4?1:0);let a=e.changes.mapPos(this.limit);return A8(s.validFor,e.state,o,r)?new ii(this.source,this.explicit,a,s,o,r):s.update&&(s=s.update(s,o,r,new zc(e.state,l,!1)))?new ii(this.source,this.explicit,a,s,s.from,(i=s.to)!==null&&i!==void 0?i:Lt(e.state)):new Ie(this.source,1,this.explicit)}map(e){return e.empty?this:(this.result.map?this.result.map(this.result,e):this.result)?new ii(this.source,this.explicit,e.mapPos(this.limit),this.result,e.mapPos(this.from),e.mapPos(this.to,1)):new Ie(this.source,0)}touches(e){return e.changes.touchesRange(this.from,this.to)}}function A8(n,e,t,i){if(!n)return!1;let s=e.sliceDoc(t,i);return typeof n=="function"?n(s,t,i,e):Lc(n,!0).test(s)}const Eo=$.define({map(n,e){return n.map(t=>t.map(e))}}),Ic=$.define(),De=me.define({create(){return as.start()},update(n,e){return n.update(e)},provide:n=>[wo.from(n,e=>e.tooltip),z.contentAttributes.from(n,e=>e.attrs)]});function Vo(n,e){const t=e.completion.apply||e.completion.label;let i=n.state.field(De).active.find(s=>s.source==e.source);return i instanceof ii?(typeof t=="string"?n.dispatch(Object.assign(Object.assign({},m8(n.state,t,i.from,i.to)),{annotations:Rc.of(e.completion)})):t(n,e.completion,i.from,i.to),!0):!1}const B8=S8(De,Vo);function Sn(n,e="option"){return t=>{let i=t.state.field(De,!1);if(!i||!i.open||i.open.disabled||Date.now()-i.open.timestamp<t.state.facet(ue).interactionDelay)return!1;let s=1,o;e=="page"&&(o=ka(t,i.open.tooltip))&&(s=Math.max(2,Math.floor(o.dom.offsetHeight/o.dom.querySelector("li").offsetHeight)-1));let{length:r}=i.open.options,l=i.open.selected>-1?i.open.selected+s*(n?1:-1):n?0:r-1;return l<0?l=e=="page"?0:r-1:l>=r&&(l=e=="page"?r-1:0),t.dispatch({effects:Ic.of(l)}),!0}}const P8=n=>{let e=n.state.field(De,!1);return n.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestamp<n.state.facet(ue).interactionDelay?!1:Vo(n,e.open.options[e.open.selected])},Sr=n=>n.state.field(De,!1)?(n.dispatch({effects:ls.of(!0)}),!0):!1,E8=n=>{let e=n.state.field(De,!1);return!e||!e.active.some(t=>t.state!=0)?!1:(n.dispatch({effects:Gi.of(null)}),!0)};class V8{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}}const z8=50,L8=1e3,R8=re.fromClass(class{constructor(n){this.view=n,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let e of n.state.field(De).active)e.isPending&&this.startQuery(e)}update(n){let e=n.state.field(De),t=n.state.facet(ue);if(!n.selectionSet&&!n.docChanged&&n.startState.field(De)==e)return;let i=n.transactions.some(o=>{let r=Nc(o,t);return r&8||(o.selection||o.docChanged)&&!(r&3)});for(let o=0;o<this.running.length;o++){let r=this.running[o];if(i||r.context.abortOnDocChange&&n.docChanged||r.updates.length+n.transactions.length>z8&&Date.now()-r.time>L8){for(let l of r.context.abortListeners)try{l()}catch(a){Te(this.view.state,a)}r.context.abortListeners=null,this.running.splice(o--,1)}else r.updates.push(...n.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),n.transactions.some(o=>o.effects.some(r=>r.is(ls)))&&(this.pendingStart=!0);let s=this.pendingStart?50:t.activateOnTypingDelay;if(this.debounceUpdate=e.active.some(o=>o.isPending&&!this.running.some(r=>r.active.source==o.source))?setTimeout(()=>this.startUpdate(),s):-1,this.composing!=0)for(let o of n.transactions)o.isUserEvent("input.type")?this.composing=2:this.composing==2&&o.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:n}=this.view,e=n.field(De);for(let t of e.active)t.isPending&&!this.running.some(i=>i.active.source==t.source)&&this.startQuery(t);this.running.length&&e.open&&e.open.disabled&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(ue).updateSyncTime))}startQuery(n){let{state:e}=this.view,t=Lt(e),i=new zc(e,t,n.explicit,this.view),s=new V8(n,i);this.running.push(s),Promise.resolve(n.source(i)).then(o=>{s.context.aborted||(s.done=o||null,this.scheduleAccept())},o=>{this.view.dispatch({effects:Gi.of(null)}),Te(this.view.state,o)})}scheduleAccept(){this.running.every(n=>n.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(ue).updateSyncTime))}accept(){var n;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],t=this.view.state.facet(ue),i=this.view.state.field(De);for(let s=0;s<this.running.length;s++){let o=this.running[s];if(o.done===void 0)continue;if(this.running.splice(s--,1),o.done){let l=Lt(o.updates.length?o.updates[0].startState:this.view.state),a=Math.min(l,o.done.from+(o.active.explicit?0:1)),c=new ii(o.active.source,o.active.explicit,a,o.done,o.done.from,(n=o.done.to)!==null&&n!==void 0?n:l);for(let h of o.updates)c=c.update(h,t);if(c.hasResult()){e.push(c);continue}}let r=i.active.find(l=>l.source==o.active.source);if(r&&r.isPending)if(o.done==null){let l=new Ie(o.active.source,0);for(let a of o.updates)l=l.update(a,t);l.isPending||e.push(l)}else this.startQuery(r)}(e.length||i.open&&i.open.disabled)&&this.view.dispatch({effects:Eo.of(e)})}},{eventHandlers:{blur(n){let e=this.view.state.field(De,!1);if(e&&e.tooltip&&this.view.state.facet(ue).closeOnBlur){let t=e.open&&ka(this.view,e.open.tooltip);(!t||!t.dom.contains(n.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:Gi.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:ls.of(!1)}),20),this.composing=0}}}),N8=typeof navigator=="object"&&/Win/.test(navigator.platform),I8=Ft.highest(z.domEventHandlers({keydown(n,e){let t=e.state.field(De,!1);if(!t||!t.open||t.open.disabled||t.open.selected<0||n.key.length>1||n.ctrlKey&&!(N8&&n.altKey)||n.metaKey)return!1;let i=t.open.options[t.open.selected],s=t.active.find(r=>r.source==i.source),o=i.completion.commitCharacters||s.result.commitCharacters;return o&&o.indexOf(n.key)>-1&&Vo(e,i),!1}})),H8=z.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box",whiteSpace:"pre-line"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}}),ji={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},Vt=$.define({map(n,e){let t=e.mapPos(n,-1,ye.TrackAfter);return t??void 0}}),zo=new class extends Nt{};zo.startSide=1;zo.endSide=-1;const Hc=me.define({create(){return j.empty},update(n,e){if(n=n.map(e.changes),e.selection){let t=e.state.doc.lineAt(e.selection.main.head);n=n.update({filter:i=>i>=t.from&&i<=t.to})}for(let t of e.effects)t.is(Vt)&&(n=n.update({add:[zo.range(t.value,t.value+1)]}));return n}});function $8(){return[F8,Hc]}const Js="()[]{}<>«»»«[]{}";function $c(n){for(let e=0;e<Js.length;e+=2)if(Js.charCodeAt(e)==n)return Js.charAt(e+1);return to(n<128?n:n+1)}function Wc(n,e){return n.languageDataAt("closeBrackets",e)[0]||ji}const W8=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),F8=z.inputHandler.of((n,e,t,i)=>{if((W8?n.composing:n.compositionStarted)||n.state.readOnly)return!1;let s=n.state.selection.main;if(i.length>2||i.length==2&&et(Oe(i,0))==1||e!=s.from||t!=s.to)return!1;let o=q8(n.state,i);return o?(n.dispatch(o),!0):!1}),G8=({state:n,dispatch:e})=>{if(n.readOnly)return!1;let i=Wc(n,n.selection.main.head).brackets||ji.brackets,s=null,o=n.changeByRange(r=>{if(r.empty){let l=U8(n.doc,r.head);for(let a of i)if(a==l&&Os(n.doc,r.head)==$c(Oe(a,0)))return{changes:{from:r.head-a.length,to:r.head+a.length},range:M.cursor(r.head-a.length)}}return{range:s=r}});return s||e(n.update(o,{scrollIntoView:!0,userEvent:"delete.backward"})),!s},j8=[{key:"Backspace",run:G8}];function q8(n,e){let t=Wc(n,n.selection.main.head),i=t.brackets||ji.brackets;for(let s of i){let o=$c(Oe(s,0));if(e==s)return o==s?X8(n,s,i.indexOf(s+s+s)>-1,t):Y8(n,s,o,t.before||ji.before);if(e==o&&Fc(n,n.selection.main.from))return K8(n,s,o)}return null}function Fc(n,e){let t=!1;return n.field(Hc).between(0,n.doc.length,i=>{i==e&&(t=!0)}),t}function Os(n,e){let t=n.sliceString(e,e+2);return t.slice(0,et(Oe(t,0)))}function U8(n,e){let t=n.sliceString(e-2,e);return et(Oe(t,0))==t.length?t:t.slice(1)}function Y8(n,e,t,i){let s=null,o=n.changeByRange(r=>{if(!r.empty)return{changes:[{insert:e,from:r.from},{insert:t,from:r.to}],effects:Vt.of(r.to+e.length),range:M.range(r.anchor+e.length,r.head+e.length)};let l=Os(n.doc,r.head);return!l||/\s/.test(l)||i.indexOf(l)>-1?{changes:{insert:e+t,from:r.head},effects:Vt.of(r.head+e.length),range:M.cursor(r.head+e.length)}:{range:s=r}});return s?null:n.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function K8(n,e,t){let i=null,s=n.changeByRange(o=>o.empty&&Os(n.doc,o.head)==t?{changes:{from:o.head,to:o.head+t.length,insert:t},range:M.cursor(o.head+t.length)}:i={range:o});return i?null:n.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function X8(n,e,t,i){let s=i.stringPrefixes||ji.stringPrefixes,o=null,r=n.changeByRange(l=>{if(!l.empty)return{changes:[{insert:e,from:l.from},{insert:e,from:l.to}],effects:Vt.of(l.to+e.length),range:M.range(l.anchor+e.length,l.head+e.length)};let a=l.head,c=Os(n.doc,a),h;if(c==e){if(Cr(n,a))return{changes:{insert:e+e,from:a},effects:Vt.of(a+e.length),range:M.cursor(a+e.length)};if(Fc(n,a)){let d=t&&n.sliceDoc(a,a+e.length*3)==e+e+e?e+e+e:e;return{changes:{from:a,to:a+d.length,insert:d},range:M.cursor(a+d.length)}}}else{if(t&&n.sliceDoc(a-2*e.length,a)==e+e&&(h=_r(n,a-2*e.length,s))>-1&&Cr(n,h))return{changes:{insert:e+e+e+e,from:a},effects:Vt.of(a+e.length),range:M.cursor(a+e.length)};if(n.charCategorizer(a)(c)!=te.Word&&_r(n,a,s)>-1&&!Q8(n,a,e,s))return{changes:{insert:e+e,from:a},effects:Vt.of(a+e.length),range:M.cursor(a+e.length)}}return{range:o=l}});return o?null:n.update(r,{scrollIntoView:!0,userEvent:"input.type"})}function Cr(n,e){let t=fe(n).resolveInner(e+1);return t.parent&&t.from==e}function Q8(n,e,t,i){let s=fe(n).resolveInner(e,-1),o=i.reduce((r,l)=>Math.max(r,l.length),0);for(let r=0;r<5;r++){let l=n.sliceDoc(s.from,Math.min(s.to,s.from+t.length+o)),a=l.indexOf(t);if(!a||a>-1&&i.indexOf(l.slice(0,a))>-1){let h=s.firstChild;for(;h&&h.from==s.from&&h.to-h.from>t.length+a;){if(n.sliceDoc(h.to-t.length,h.to)==t)return!1;h=h.firstChild}return!0}let c=s.to==e&&s.parent;if(!c)break;s=c}return!1}function _r(n,e,t){let i=n.charCategorizer(e);if(i(n.sliceDoc(e-1,e))!=te.Word)return e;for(let s of t){let o=e-s.length;if(n.sliceDoc(o,e)==s&&i(n.sliceDoc(o-1,o))!=te.Word)return o}return-1}function J8(n={}){return[I8,De,ue.of(n),R8,Z8,H8]}const Gc=[{key:"Ctrl-Space",run:Sr},{mac:"Alt-`",run:Sr},{key:"Escape",run:E8},{key:"ArrowDown",run:Sn(!0)},{key:"ArrowUp",run:Sn(!1)},{key:"PageDown",run:Sn(!0,"page")},{key:"PageUp",run:Sn(!1,"page")},{key:"Enter",run:P8}],Z8=Ft.highest(mo.computeN([ue],n=>n.facet(ue).defaultKeymap?[Gc]:[]));class Or{constructor(e,t,i){this.from=e,this.to=t,this.diagnostic=i}}class Pt{constructor(e,t,i){this.diagnostics=e,this.panel=t,this.selected=i}static init(e,t,i){let s=i.facet(qi).markerFilter;s&&(e=s(e,i));let o=e.slice().sort((h,f)=>h.from-f.from||h.to-f.to),r=new ut,l=[],a=0;for(let h=0;;){let f=h==o.length?null:o[h];if(!f&&!l.length)break;let d,p;for(l.length?(d=a,p=l.reduce((m,v)=>Math.min(m,v.to),f&&f.from>d?f.from:1e8)):(d=f.from,p=f.to,l.push(f),h++);h<o.length;){let m=o[h];if(m.from==d&&(m.to>m.from||m.to==d))l.push(m),h++,p=Math.min(m.to,p);else{p=Math.min(m.from,p);break}}let g=f5(l);if(l.some(m=>m.from==m.to||m.from==m.to-1&&i.doc.lineAt(m.from).to==m.from))r.add(d,d,I.widget({widget:new a5(g),diagnostics:l.slice()}));else{let m=l.reduce((v,b)=>b.markClass?v+" "+b.markClass:v,"");r.add(d,p,I.mark({class:"cm-lintRange cm-lintRange-"+g+m,diagnostics:l.slice(),inclusiveEnd:l.some(v=>v.to>p)}))}a=p;for(let m=0;m<l.length;m++)l[m].to<=a&&l.splice(m--,1)}let c=r.finish();return new Pt(c,t,hi(c))}}function hi(n,e=null,t=0){let i=null;return n.between(t,1e9,(s,o,{spec:r})=>{if(!(e&&r.diagnostics.indexOf(e)<0))if(!i)i=new Or(s,o,e||r.diagnostics[0]);else{if(r.diagnostics.indexOf(i.diagnostic)<0)return!1;i=new Or(i.from,o,i.diagnostic)}}),i}function e5(n,e){let t=e.pos,i=e.end||t,s=n.state.facet(qi).hideOn(n,t,i);if(s!=null)return s;let o=n.startState.doc.lineAt(e.pos);return!!(n.effects.some(r=>r.is(jc))||n.changes.touchesRange(o.from,Math.max(o.to,i)))}function t5(n,e){return n.field(Le,!1)?e:e.concat($.appendConfig.of(d5))}const jc=$.define(),Lo=$.define(),qc=$.define(),Le=me.define({create(){return new Pt(I.none,null,null)},update(n,e){if(e.docChanged&&n.diagnostics.size){let t=n.diagnostics.map(e.changes),i=null,s=n.panel;if(n.selected){let o=e.changes.mapPos(n.selected.from,1);i=hi(t,n.selected.diagnostic,o)||hi(t,null,o)}!t.size&&s&&e.state.facet(qi).autoPanel&&(s=null),n=new Pt(t,s,i)}for(let t of e.effects)if(t.is(jc)){let i=e.state.facet(qi).autoPanel?t.value.length?Ui.open:null:n.panel;n=Pt.init(t.value,i,e.state)}else t.is(Lo)?n=new Pt(n.diagnostics,t.value?Ui.open:null,n.selected):t.is(qc)&&(n=new Pt(n.diagnostics,n.panel,t.value));return n},provide:n=>[Hi.from(n,e=>e.panel),z.decorations.from(n,e=>e.diagnostics)]}),i5=I.mark({class:"cm-lintRange cm-lintRange-active"});function n5(n,e,t){let{diagnostics:i}=n.state.field(Le),s,o=-1,r=-1;i.between(e-(t<0?1:0),e+(t>0?1:0),(a,c,{spec:h})=>{if(e>=a&&e<=c&&(a==c||(e>a||t>0)&&(e<c||t<0)))return s=h.diagnostics,o=a,r=c,!1});let l=n.state.facet(qi).tooltipFilter;return s&&l&&(s=l(s,n.state)),s?{pos:o,end:r,above:n.state.doc.lineAt(o).to<r,create(){return{dom:s5(n,s)}}}:null}function s5(n,e){return Y("ul",{class:"cm-tooltip-lint"},e.map(t=>Yc(n,t,!1)))}const o5=n=>{let e=n.state.field(Le,!1);(!e||!e.panel)&&n.dispatch({effects:t5(n.state,[Lo.of(!0)])});let t=Ii(n,Ui.open);return t&&t.dom.querySelector(".cm-panel-lint ul").focus(),!0},Mr=n=>{let e=n.state.field(Le,!1);return!e||!e.panel?!1:(n.dispatch({effects:Lo.of(!1)}),!0)},r5=n=>{let e=n.state.field(Le,!1);if(!e)return!1;let t=n.state.selection.main,i=e.diagnostics.iter(t.to+1);return!i.value&&(i=e.diagnostics.iter(0),!i.value||i.from==t.from&&i.to==t.to)?!1:(n.dispatch({selection:{anchor:i.from,head:i.to},scrollIntoView:!0}),!0)},l5=[{key:"Mod-Shift-m",run:o5,preventDefault:!0},{key:"F8",run:r5}],qi=L.define({combine(n){return Object.assign({sources:n.map(e=>e.source).filter(e=>e!=null)},rt(n.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{needsRefresh:(e,t)=>e?t?i=>e(i)||t(i):e:t}))}});function Uc(n){let e=[];if(n)e:for(let{name:t}of n){for(let i=0;i<t.length;i++){let s=t[i];if(/[a-zA-Z]/.test(s)&&!e.some(o=>o.toLowerCase()==s.toLowerCase())){e.push(s);continue e}}e.push("")}return e}function Yc(n,e,t){var i;let s=t?Uc(e.actions):[];return Y("li",{class:"cm-diagnostic cm-diagnostic-"+e.severity},Y("span",{class:"cm-diagnosticText"},e.renderMessage?e.renderMessage(n):e.message),(i=e.actions)===null||i===void 0?void 0:i.map((o,r)=>{let l=!1,a=d=>{if(d.preventDefault(),l)return;l=!0;let p=hi(n.state.field(Le).diagnostics,e);p&&o.apply(n,p.from,p.to)},{name:c}=o,h=s[r]?c.indexOf(s[r]):-1,f=h<0?c:[c.slice(0,h),Y("u",c.slice(h,h+1)),c.slice(h+1)];return Y("button",{type:"button",class:"cm-diagnosticAction",onclick:a,onmousedown:a,"aria-label":` Action: ${c}${h<0?"":` (access key "${s[r]})"`}.`},f)}),e.source&&Y("div",{class:"cm-diagnosticSource"},e.source))}class a5 extends Dt{constructor(e){super(),this.sev=e}eq(e){return e.sev==this.sev}toDOM(){return Y("span",{class:"cm-lintPoint cm-lintPoint-"+this.sev})}}class Dr{constructor(e,t){this.diagnostic=t,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=Yc(e,t,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class Ui{constructor(e){this.view=e,this.items=[];let t=s=>{if(s.keyCode==27)Mr(this.view),this.view.focus();else if(s.keyCode==38||s.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(s.keyCode==40||s.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(s.keyCode==36)this.moveSelection(0);else if(s.keyCode==35)this.moveSelection(this.items.length-1);else if(s.keyCode==13)this.view.focus();else if(s.keyCode>=65&&s.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:o}=this.items[this.selectedIndex],r=Uc(o.actions);for(let l=0;l<r.length;l++)if(r[l].toUpperCase().charCodeAt(0)==s.keyCode){let a=hi(this.view.state.field(Le).diagnostics,o);a&&o.actions[l].apply(e,a.from,a.to)}}else return;s.preventDefault()},i=s=>{for(let o=0;o<this.items.length;o++)this.items[o].dom.contains(s.target)&&this.moveSelection(o)};this.list=Y("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:t,onclick:i}),this.dom=Y("div",{class:"cm-panel-lint"},this.list,Y("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:()=>Mr(this.view)},"×")),this.update()}get selectedIndex(){let e=this.view.state.field(Le).selected;if(!e)return-1;for(let t=0;t<this.items.length;t++)if(this.items[t].diagnostic==e.diagnostic)return t;return-1}update(){let{diagnostics:e,selected:t}=this.view.state.field(Le),i=0,s=!1,o=null,r=new Set;for(e.between(0,this.view.state.doc.length,(l,a,{spec:c})=>{for(let h of c.diagnostics){if(r.has(h))continue;r.add(h);let f=-1,d;for(let p=i;p<this.items.length;p++)if(this.items[p].diagnostic==h){f=p;break}f<0?(d=new Dr(this.view,h),this.items.splice(i,0,d),s=!0):(d=this.items[f],f>i&&(this.items.splice(i,f-i),s=!0)),t&&d.diagnostic==t.diagnostic?d.dom.hasAttribute("aria-selected")||(d.dom.setAttribute("aria-selected","true"),o=d):d.dom.hasAttribute("aria-selected")&&d.dom.removeAttribute("aria-selected"),i++}});i<this.items.length&&!(this.items.length==1&&this.items[0].diagnostic.from<0);)s=!0,this.items.pop();this.items.length==0&&(this.items.push(new Dr(this.view,{from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")})),s=!0),o?(this.list.setAttribute("aria-activedescendant",o.id),this.view.requestMeasure({key:this,read:()=>({sel:o.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:l,panel:a})=>{let c=a.height/this.list.offsetHeight;l.top<a.top?this.list.scrollTop-=(a.top-l.top)/c:l.bottom>a.bottom&&(this.list.scrollTop+=(l.bottom-a.bottom)/c)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),s&&this.sync()}sync(){let e=this.list.firstChild;function t(){let i=e;e=i.nextSibling,i.remove()}for(let i of this.items)if(i.dom.parentNode==this.list){for(;e!=i.dom;)t();e=i.dom.nextSibling}else this.list.insertBefore(i.dom,e);for(;e;)t()}moveSelection(e){if(this.selectedIndex<0)return;let t=this.view.state.field(Le),i=hi(t.diagnostics,this.items[e].diagnostic);i&&this.view.dispatch({selection:{anchor:i.from,head:i.to},scrollIntoView:!0,effects:qc.of(i)})}static open(e){return new Ui(e)}}function c5(n,e='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${e}>${encodeURIComponent(n)}</svg>')`}function Cn(n){return c5(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${n}" fill="none" stroke-width=".7"/>`,'width="6" height="3"')}const h5=z.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:Cn("#d11")},".cm-lintRange-warning":{backgroundImage:Cn("orange")},".cm-lintRange-info":{backgroundImage:Cn("#999")},".cm-lintRange-hint":{backgroundImage:Cn("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});function u5(n){return n=="error"?4:n=="warning"?3:n=="info"?2:1}function f5(n){let e="hint",t=1;for(let i of n){let s=u5(i.severity);s>t&&(t=s,e=i.severity)}return e}const d5=[Le,z.decorations.compute([Le],n=>{let{selected:e,panel:t}=n.field(Le);return!e||!t||e.from==e.to?I.none:I.set([i5.range(e.from,e.to)])}),l4(n5,{hideOn:e5}),h5],p5=[w4(),y4(),N6(),Rp(),hp(),M6(),P6(),G.allowMultipleSelections.of(!0),Q4(),fp(gp,{fallback:!0}),kp(),$8(),J8(),X6(),Z6(),G6(),jg(),mo.of([...j8,...Ig,...h8,...qp,...rp,...Gc,...l5])];class cs{constructor(e,t,i,s,o,r,l,a,c,h=0,f){this.p=e,this.stack=t,this.state=i,this.reducePos=s,this.pos=o,this.score=r,this.buffer=l,this.bufferBase=a,this.curContext=c,this.lookAhead=h,this.parent=f}toString(){return`[${this.stack.filter((e,t)=>t%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t,i=0){let s=e.parser.context;return new cs(e,[],t,i,i,0,[],0,s?new Tr(s,s.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var t;let i=e>>19,s=e&65535,{parser:o}=this.p,r=this.reducePos<this.pos-25;r&&this.setLookAhead(this.pos);let l=o.dynamicPrecedence(s);if(l&&(this.score+=l),i==0){this.pushState(o.getGoto(this.state,s,!0),this.reducePos),s<o.minRepeatTerm&&this.storeNode(s,this.reducePos,this.reducePos,r?8:4,!0),this.reduceContext(s,this.reducePos);return}let a=this.stack.length-(i-1)*3-(e&262144?6:0),c=a?this.stack[a-2]:this.p.ranges[0].from,h=this.reducePos-c;h>=2e3&&!(!((t=this.p.parser.nodeSet.types[s])===null||t===void 0)&&t.isAnonymous)&&(c==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=h):this.p.lastBigReductionSize<h&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=c,this.p.lastBigReductionSize=h));let f=a?this.stack[a-1]:0,d=this.bufferBase+this.buffer.length-f;if(s<o.minRepeatTerm||e&131072){let p=o.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(s,c,p,d+4,!0)}if(e&262144)this.state=this.stack[a];else{let p=this.stack[a-3];this.state=o.getGoto(p,s,!0)}for(;this.stack.length>a;)this.stack.pop();this.reduceContext(s,c)}storeNode(e,t,i,s=4,o=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let r=this,l=this.buffer.length;if(l==0&&r.parent&&(l=r.bufferBase-r.parent.bufferBase,r=r.parent),l>0&&r.buffer[l-4]==0&&r.buffer[l-1]>-1){if(t==i)return;if(r.buffer[l-2]>=t){r.buffer[l-2]=i;return}}}if(!o||this.pos==i)this.buffer.push(e,t,i,s);else{let r=this.buffer.length;if(r>0&&this.buffer[r-4]!=0){let l=!1;for(let a=r;a>0&&this.buffer[a-2]>i;a-=4)if(this.buffer[a-1]>=0){l=!0;break}if(l)for(;r>0&&this.buffer[r-2]>i;)this.buffer[r]=this.buffer[r-4],this.buffer[r+1]=this.buffer[r-3],this.buffer[r+2]=this.buffer[r-2],this.buffer[r+3]=this.buffer[r-1],r-=4,s>4&&(s-=4)}this.buffer[r]=e,this.buffer[r+1]=t,this.buffer[r+2]=i,this.buffer[r+3]=s}}shift(e,t,i,s){if(e&131072)this.pushState(e&65535,this.pos);else if((e&262144)==0){let o=e,{parser:r}=this.p;(s>this.pos||t<=r.maxNode)&&(this.pos=s,r.stateFlag(o,1)||(this.reducePos=s)),this.pushState(o,i),this.shiftContext(t,i),t<=r.maxNode&&this.buffer.push(t,i,s,4)}else this.pos=s,this.shiftContext(t,i),t<=this.p.parser.maxNode&&this.buffer.push(t,i,s,4)}apply(e,t,i,s){e&65536?this.reduce(e):this.shift(e,t,i,s)}useNode(e,t){let i=this.p.reused.length-1;(i<0||this.p.reused[i]!=e)&&(this.p.reused.push(e),i++);let s=this.pos;this.reducePos=this.pos=s+e.length,this.pushState(t,s),this.buffer.push(i,s,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,t=e.buffer.length;for(;t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let i=e.buffer.slice(t),s=e.bufferBase+t;for(;e&&s==e.bufferBase;)e=e.parent;return new cs(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,i,s,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let i=e<=this.p.parser.maxNode;i&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,i?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new g5(this);;){let i=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(i==0)return!1;if((i&65536)==0)return!0;t.reduce(i)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let s=[];for(let o=0,r;o<t.length;o+=2)(r=t[o+1])!=this.state&&this.p.parser.hasAction(r,e)&&s.push(t[o],r);if(this.stack.length<120)for(let o=0;s.length<8&&o<t.length;o+=2){let r=t[o+1];s.some((l,a)=>a&1&&l==r)||s.push(t[o],r)}t=s}let i=[];for(let s=0;s<t.length&&i.length<4;s+=2){let o=t[s+1];if(o==this.state)continue;let r=this.split();r.pushState(o,this.pos),r.storeNode(0,r.pos,r.pos,4,!0),r.shiftContext(t[s],this.pos),r.reducePos=this.pos,r.score-=200,i.push(r)}return i}forceReduce(){let{parser:e}=this.p,t=e.stateSlot(this.state,5);if((t&65536)==0)return!1;if(!e.validAction(this.state,t)){let i=t>>19,s=t&65535,o=this.stack.length-i*3;if(o<0||e.getGoto(this.stack[o],s,!1)<0){let r=this.findForcedReduction();if(r==null)return!1;t=r}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}findForcedReduction(){let{parser:e}=this.p,t=[],i=(s,o)=>{if(!t.includes(s))return t.push(s),e.allActions(s,r=>{if(!(r&393216))if(r&65536){let l=(r>>19)-o;if(l>1){let a=r&65535,c=this.stack.length-l*3;if(c>=0&&e.getGoto(this.stack[c],a,!1)>=0)return l<<19|65536|a}}else{let l=i(r,o+1);if(l!=null)return l}})};return i(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;t<this.stack.length;t+=3)if(this.stack[t]!=e.stack[t])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(t)))}reduceContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(t)))}emitContext(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-3)&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(e){if(e!=this.curContext.context){let t=new Tr(this.curContext.tracker,e);t.hash!=this.curContext.hash&&this.emitContext(),this.curContext=t}}setLookAhead(e){e>this.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class Tr{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}}class g5{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=e&65535,i=e>>19;i==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(i-1)*3;let s=this.start.p.parser.getGoto(this.stack[this.base-3],t,!0);this.state=s}}class hs{constructor(e,t,i){this.stack=e,this.pos=t,this.index=i,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,t=e.bufferBase+e.buffer.length){return new hs(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new hs(this.stack,this.pos,this.index)}}function _n(n,e=Uint16Array){if(typeof n!="string")return n;let t=null;for(let i=0,s=0;i<n.length;){let o=0;for(;;){let r=n.charCodeAt(i++),l=!1;if(r==126){o=65535;break}r>=92&&r--,r>=34&&r--;let a=r-32;if(a>=46&&(a-=46,l=!0),o+=a,l)break;o*=46}t?t[s++]=o:t=new e(o)}return t}class Ln{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const Ar=new Ln;class m5{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=Ar,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let i=this.range,s=this.rangeIndex,o=this.pos+e;for(;o<i.from;){if(!s)return null;let r=this.ranges[--s];o-=i.from-r.to,i=r}for(;t<0?o>i.to:o>=i.to;){if(s==this.ranges.length-1)return null;let r=this.ranges[++s];o+=r.from-i.to,i=r}return o}clipPos(e){if(e>=this.range.from&&e<this.range.to)return e;for(let t of this.ranges)if(t.to>e)return Math.max(e,t.from);return this.end}peek(e){let t=this.chunkOff+e,i,s;if(t>=0&&t<this.chunk.length)i=this.pos+e,s=this.chunk.charCodeAt(t);else{let o=this.resolveOffset(e,1);if(o==null)return-1;if(i=o,i>=this.chunk2Pos&&i<this.chunk2Pos+this.chunk2.length)s=this.chunk2.charCodeAt(i-this.chunk2Pos);else{let r=this.rangeIndex,l=this.range;for(;l.to<=i;)l=this.ranges[++r];this.chunk2=this.input.chunk(this.chunk2Pos=i),i+this.chunk2.length>l.to&&(this.chunk2=this.chunk2.slice(0,l.to-i)),s=this.chunk2.charCodeAt(0)}}return i>=this.token.lookAhead&&(this.token.lookAhead=i+1),s}acceptToken(e,t=0){let i=t?this.resolveOffset(t,-1):this.pos;if(i==null||i<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=e,this.token.end=i}acceptTokenTo(e,t){this.token.value=e,this.token.end=t}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:t}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=t,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos),t=this.pos+e.length;this.chunk=t>this.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=Ar,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;e>=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e<this.chunkPos+this.chunk.length?this.chunkOff=e-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(e,t){if(e>=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let i="";for(let s of this.ranges){if(s.from>=t)break;s.to>e&&(i+=this.input.read(Math.max(s.from,e),Math.min(s.to,t)))}return i}}class ni{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:i}=t.p;v5(this.data,e,t,this.id,i.data,i.tokenPrecTable)}}ni.prototype.contextual=ni.prototype.fallback=ni.prototype.extend=!1;ni.prototype.fallback=ni.prototype.extend=!1;class Kc{constructor(e,t={}){this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}}function v5(n,e,t,i,s,o){let r=0,l=1<<i,{dialect:a}=t.p.parser;e:for(;(l&n[r])!=0;){let c=n[r+1];for(let p=r+3;p<c;p+=2)if((n[p+1]&l)>0){let g=n[p];if(a.allows(g)&&(e.token.value==-1||e.token.value==g||w5(g,e.token.value,s,o))){e.acceptToken(g);break}}let h=e.next,f=0,d=n[r+2];if(e.next<0&&d>f&&n[c+d*3-3]==65535){r=n[c+d*3-1];continue e}for(;f<d;){let p=f+d>>1,g=c+p+(p<<1),m=n[g],v=n[g+1]||65536;if(h<m)d=p;else if(h>=v)f=p+1;else{r=n[g+2],e.advance();continue e}}break}}function Br(n,e,t){for(let i=e,s;(s=n[i])!=65535;i++)if(s==t)return i-e;return-1}function w5(n,e,t,i){let s=Br(t,i,e);return s<0||Br(t,i,n)<s}const Ve=typeof process<"u"&&process.env&&/\bparse\b/.test(process.env.LOG);let Zs=null;function Pr(n,e,t){let i=n.cursor(he.IncludeAnonymous);for(i.moveTo(e);;)if(!(t<0?i.childBefore(e):i.childAfter(e)))for(;;){if((t<0?i.to<e:i.from>e)&&!i.type.isError)return t<0?Math.max(0,Math.min(i.to-1,e-25)):Math.min(n.length,Math.max(i.from+1,e+25));if(t<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return t<0?0:n.length}}class b5{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?Pr(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?Pr(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(e<this.nextStart)return null;for(;this.fragment&&this.safeTo<=e;)this.nextFragment();if(!this.fragment)return null;for(;;){let t=this.trees.length-1;if(t<0)return this.nextFragment(),null;let i=this.trees[t],s=this.index[t];if(s==i.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let o=i.children[s],r=this.start[t]+i.positions[s];if(r>e)return this.nextStart=r,null;if(o instanceof oe){if(r==e){if(r<this.safeFrom)return null;let l=r+o.length;if(l<=this.safeTo){let a=o.prop(W.lookAhead);if(!a||l+a<this.fragment.to)return o}}this.index[t]++,r+o.length>=Math.max(this.safeFrom,e)&&(this.trees.push(o),this.start.push(r),this.index.push(0))}else this.index[t]++,this.nextStart=r+o.length}}}class x5{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(i=>new Ln)}getActions(e){let t=0,i=null,{parser:s}=e.p,{tokenizers:o}=s,r=s.stateSlot(e.state,3),l=e.curContext?e.curContext.hash:0,a=0;for(let c=0;c<o.length;c++){if((1<<c&r)==0)continue;let h=o[c],f=this.tokens[c];if(!(i&&!h.fallback)&&((h.contextual||f.start!=e.pos||f.mask!=r||f.context!=l)&&(this.updateCachedToken(f,h,e),f.mask=r,f.context=l),f.lookAhead>f.end+25&&(a=Math.max(f.lookAhead,a)),f.value!=0)){let d=t;if(f.extended>-1&&(t=this.addActions(e,f.extended,f.end,t)),t=this.addActions(e,f.value,f.end,t),!h.extend&&(i=f,t>d))break}}for(;this.actions.length>t;)this.actions.pop();return a&&e.setLookAhead(a),!i&&e.pos==this.stream.end&&(i=new Ln,i.value=e.p.parser.eofTerm,i.start=i.end=e.pos,t=this.addActions(e,i.value,i.end,t)),this.mainToken=i,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new Ln,{pos:i,p:s}=e;return t.start=i,t.end=Math.min(i+1,s.stream.end),t.value=i==s.stream.end?s.parser.eofTerm:0,t}updateCachedToken(e,t,i){let s=this.stream.clipPos(i.pos);if(t.token(this.stream.reset(s,e),i),e.value>-1){let{parser:o}=i.p;for(let r=0;r<o.specialized.length;r++)if(o.specialized[r]==e.value){let l=o.specializers[r](this.stream.read(e.start,e.end),i);if(l>=0&&i.p.parser.dialect.allows(l>>1)){(l&1)==0?e.value=l>>1:e.extended=l>>1;break}}}else e.value=0,e.end=this.stream.clipPos(s+1)}putAction(e,t,i,s){for(let o=0;o<s;o+=3)if(this.actions[o]==e)return s;return this.actions[s++]=e,this.actions[s++]=t,this.actions[s++]=i,s}addActions(e,t,i,s){let{state:o}=e,{parser:r}=e.p,{data:l}=r;for(let a=0;a<2;a++)for(let c=r.stateSlot(o,a?2:1);;c+=3){if(l[c]==65535)if(l[c+1]==1)c=at(l,c+2);else{s==0&&l[c+1]==2&&(s=this.putAction(at(l,c+2),t,i,s));break}l[c]==t&&(s=this.putAction(at(l,c+1),t,i,s))}return s}}class y5{constructor(e,t,i,s){this.parser=e,this.input=t,this.ranges=s,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new m5(t,s),this.tokens=new x5(e,this.stream),this.topTerm=e.top[1];let{from:o}=s[0];this.stacks=[cs.start(this,e.top[0],o)],this.fragments=i.length&&this.stream.end-o>e.bufferLength*4?new b5(i,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,t=this.minStackPos,i=this.stacks=[],s,o;if(this.bigReductionCount>300&&e.length==1){let[r]=e;for(;r.forceReduce()&&r.stack.length&&r.stack[r.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let r=0;r<e.length;r++){let l=e[r];for(;;){if(this.tokens.mainToken=null,l.pos>t)i.push(l);else{if(this.advanceStack(l,i,e))continue;{s||(s=[],o=[]),s.push(l);let a=this.tokens.getMainToken(l);o.push(a.value,a.end)}}break}}if(!i.length){let r=s&&C5(s);if(r)return Ve&&console.log("Finish with "+this.stackID(r)),this.stackToTree(r);if(this.parser.strict)throw Ve&&s&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+t);this.recovering||(this.recovering=5)}if(this.recovering&&s){let r=this.stoppedAt!=null&&s[0].pos>this.stoppedAt?s[0]:this.runRecovery(s,o,i);if(r)return Ve&&console.log("Force-finish "+this.stackID(r)),this.stackToTree(r.forceAll())}if(this.recovering){let r=this.recovering==1?1:this.recovering*3;if(i.length>r)for(i.sort((l,a)=>a.score-l.score);i.length>r;)i.pop();i.some(l=>l.reducePos>t)&&this.recovering--}else if(i.length>1){e:for(let r=0;r<i.length-1;r++){let l=i[r];for(let a=r+1;a<i.length;a++){let c=i[a];if(l.sameState(c)||l.buffer.length>500&&c.buffer.length>500)if((l.score-c.score||l.buffer.length-c.buffer.length)>0)i.splice(a--,1);else{i.splice(r--,1);continue e}}}i.length>12&&i.splice(12,i.length-12)}this.minStackPos=i[0].pos;for(let r=1;r<i.length;r++)i[r].pos<this.minStackPos&&(this.minStackPos=i[r].pos);return null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}advanceStack(e,t,i){let s=e.pos,{parser:o}=this,r=Ve?this.stackID(e)+" -> ":"";if(this.stoppedAt!=null&&s>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let c=e.curContext&&e.curContext.tracker.strict,h=c?e.curContext.hash:0;for(let f=this.fragments.nodeAt(s);f;){let d=this.parser.nodeSet.types[f.type.id]==f.type?o.getGoto(e.state,f.type.id):-1;if(d>-1&&f.length&&(!c||(f.prop(W.contextHash)||0)==h))return e.useNode(f,d),Ve&&console.log(r+this.stackID(e)+` (via reuse of ${o.getName(f.type.id)})`),!0;if(!(f instanceof oe)||f.children.length==0||f.positions[0]>0)break;let p=f.children[0];if(p instanceof oe&&f.positions[0]==0)f=p;else break}}let l=o.stateSlot(e.state,4);if(l>0)return e.reduce(l),Ve&&console.log(r+this.stackID(e)+` (via always-reduce ${o.getName(l&65535)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let a=this.tokens.getActions(e);for(let c=0;c<a.length;){let h=a[c++],f=a[c++],d=a[c++],p=c==a.length||!i,g=p?e:e.split(),m=this.tokens.mainToken;if(g.apply(h,f,m?m.start:g.pos,d),Ve&&console.log(r+this.stackID(g)+` (via ${(h&65536)==0?"shift":`reduce of ${o.getName(h&65535)}`} for ${o.getName(f)} @ ${s}${g==e?"":", split"})`),p)return!0;g.pos>s?t.push(g):i.push(g)}return!1}advanceFully(e,t){let i=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>i)return Er(e,t),!0}}runRecovery(e,t,i){let s=null,o=!1;for(let r=0;r<e.length;r++){let l=e[r],a=t[r<<1],c=t[(r<<1)+1],h=Ve?this.stackID(l)+" -> ":"";if(l.deadEnd&&(o||(o=!0,l.restart(),Ve&&console.log(h+this.stackID(l)+" (restarted)"),this.advanceFully(l,i))))continue;let f=l.split(),d=h;for(let p=0;f.forceReduce()&&p<10&&(Ve&&console.log(d+this.stackID(f)+" (via force-reduce)"),!this.advanceFully(f,i));p++)Ve&&(d=this.stackID(f)+" -> ");for(let p of l.recoverByInsert(a))Ve&&console.log(h+this.stackID(p)+" (via recover-insert)"),this.advanceFully(p,i);this.stream.end>l.pos?(c==l.pos&&(c++,a=0),l.recoverByDelete(a,c),Ve&&console.log(h+this.stackID(l)+` (via recover-delete ${this.parser.getName(a)})`),Er(l,i)):(!s||s.score<l.score)&&(s=l)}return s}stackToTree(e){return e.close(),oe.build({buffer:hs.create(e),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:e.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(e){let t=(Zs||(Zs=new WeakMap)).get(e);return t||Zs.set(e,t=String.fromCodePoint(this.nextStackID++)),t+e}}function Er(n,e){for(let t=0;t<e.length;t++){let i=e[t];if(i.pos==n.pos&&i.sameState(n)){e[t].score<n.score&&(e[t]=n);return}}e.push(n)}class k5{constructor(e,t,i){this.source=e,this.flags=t,this.disabled=i}allows(e){return!this.disabled||this.disabled[e]==0}}const e0=n=>n;class S5{constructor(e){this.start=e.start,this.shift=e.shift||e0,this.reduce=e.reduce||e0,this.reuse=e.reuse||e0,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}}class us extends Aa{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let t=e.nodeNames.split(" ");this.minRepeatTerm=t.length;for(let l=0;l<e.repeatNodeCount;l++)t.push("");let i=Object.keys(e.topRules).map(l=>e.topRules[l][1]),s=[];for(let l=0;l<t.length;l++)s.push([]);function o(l,a,c){s[l].push([a,a.deserialize(String(c))])}if(e.nodeProps)for(let l of e.nodeProps){let a=l[0];typeof a=="string"&&(a=W[a]);for(let c=1;c<l.length;){let h=l[c++];if(h>=0)o(h,a,l[c++]);else{let f=l[c+-h];for(let d=-h;d>0;d--)o(l[c++],a,f);c++}}}this.nodeSet=new bo(t.map((l,a)=>Be.define({name:a>=this.minRepeatTerm?void 0:l,id:a,props:s[a],top:i.indexOf(a)>-1,error:a==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(a)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=Oa;let r=_n(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let l=0;l<this.specializerSpecs.length;l++)this.specialized[l]=this.specializerSpecs[l].term;this.specializers=this.specializerSpecs.map(Vr),this.states=_n(e.states,Uint32Array),this.data=_n(e.stateData),this.goto=_n(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map(l=>typeof l=="number"?new ni(r,l):l),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,i){let s=new y5(this,e,t,i);for(let o of this.wrappers)s=o(s,e,t,i);return s}getGoto(e,t,i=!1){let s=this.goto;if(t>=s[0])return-1;for(let o=s[t+1];;){let r=s[o++],l=r&1,a=s[o++];if(l&&i)return a;for(let c=o+(r>>1);o<c;o++)if(s[o]==e)return a;if(l)return-1}}hasAction(e,t){let i=this.data;for(let s=0;s<2;s++)for(let o=this.stateSlot(e,s?2:1),r;;o+=3){if((r=i[o])==65535)if(i[o+1]==1)r=i[o=at(i,o+2)];else{if(i[o+1]==2)return at(i,o+2);break}if(r==t||r==0)return at(i,o+1)}return 0}stateSlot(e,t){return this.states[e*6+t]}stateFlag(e,t){return(this.stateSlot(e,0)&t)>0}validAction(e,t){return!!this.allActions(e,i=>i==t?!0:null)}allActions(e,t){let i=this.stateSlot(e,4),s=i?t(i):void 0;for(let o=this.stateSlot(e,1);s==null;o+=3){if(this.data[o]==65535)if(this.data[o+1]==1)o=at(this.data,o+2);else break;s=t(at(this.data,o+1))}return s}nextStates(e){let t=[];for(let i=this.stateSlot(e,1);;i+=3){if(this.data[i]==65535)if(this.data[i+1]==1)i=at(this.data,i+2);else break;if((this.data[i+2]&1)==0){let s=this.data[i+1];t.some((o,r)=>r&1&&o==s)||t.push(this.data[i],s)}}return t}configure(e){let t=Object.assign(Object.create(us.prototype),this);if(e.props&&(t.nodeSet=this.nodeSet.extend(...e.props)),e.top){let i=this.topRules[e.top];if(!i)throw new RangeError(`Invalid top rule name ${e.top}`);t.top=i}return e.tokenizers&&(t.tokenizers=this.tokenizers.map(i=>{let s=e.tokenizers.find(o=>o.from==i);return s?s.to:i})),e.specializers&&(t.specializers=this.specializers.slice(),t.specializerSpecs=this.specializerSpecs.map((i,s)=>{let o=e.specializers.find(l=>l.from==i.external);if(!o)return i;let r=Object.assign(Object.assign({},i),{external:o.to});return t.specializers[s]=Vr(r),r})),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),e.bufferLength!=null&&(t.bufferLength=e.bufferLength),t}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return t==null?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),i=t.map(()=>!1);if(e)for(let o of e.split(" ")){let r=t.indexOf(o);r>=0&&(i[r]=!0)}let s=null;for(let o=0;o<t.length;o++)if(!i[o])for(let r=this.dialects[t[o]],l;(l=this.data[r++])!=65535;)(s||(s=new Uint8Array(this.maxTerm+1)))[l]=1;return new k5(e,i,s)}static deserialize(e){return new us(e)}}function at(n,e){return n[e]|n[e+1]<<16}function C5(n){let e=null;for(let t of n){let i=t.p.stoppedAt;(t.pos==t.p.stream.end||i!=null&&t.pos>i)&&t.p.parser.stateFlag(t.state,2)&&(!e||e.score<t.score)&&(e=t)}return e}function Vr(n){if(n.external){let e=n.extend?1:0;return(t,i)=>n.external(t,i)<<1|e}return n.get}const J0=1,_5=2,O5=3,M5=4,D5=5,T5=36,A5=37,B5=38,P5=11,E5=13;function V5(n){return n==45||n==46||n==58||n>=65&&n<=90||n==95||n>=97&&n<=122||n>=161}function z5(n){return n==9||n==10||n==13||n==32}let zr=null,Lr=null,Rr=0;function Z0(n,e){let t=n.pos+e;if(Lr==n&&Rr==t)return zr;for(;z5(n.peek(e));)e++;let i="";for(;;){let s=n.peek(e);if(!V5(s))break;i+=String.fromCharCode(s),e++}return Lr=n,Rr=t,zr=i||null}function Nr(n,e){this.name=n,this.parent=e}const L5=new S5({start:null,shift(n,e,t,i){return e==J0?new Nr(Z0(i,1)||"",n):n},reduce(n,e){return e==P5&&n?n.parent:n},reuse(n,e,t,i){let s=e.type.id;return s==J0||s==E5?new Nr(Z0(i,1)||"",n):n},strict:!1}),R5=new Kc((n,e)=>{if(n.next==60){if(n.advance(),n.next==47){n.advance();let t=Z0(n,0);if(!t)return n.acceptToken(D5);if(e.context&&t==e.context.name)return n.acceptToken(_5);for(let i=e.context;i;i=i.parent)if(i.name==t)return n.acceptToken(O5,-2);n.acceptToken(M5)}else if(n.next!=33&&n.next!=63)return n.acceptToken(J0)}},{contextual:!0});function Ro(n,e){return new Kc(t=>{let i=0,s=e.charCodeAt(0);e:for(;!(t.next<0);t.advance(),i++)if(t.next==s){for(let o=1;o<e.length;o++)if(t.peek(o)!=e.charCodeAt(o))continue e;break}i&&t.acceptToken(n)})}const N5=Ro(T5,"-->"),I5=Ro(A5,"?>"),H5=Ro(B5,"]]>"),$5=Ba({Text:B.content,"StartTag StartCloseTag EndTag SelfCloseEndTag":B.angleBracket,TagName:B.tagName,"MismatchedCloseTag/TagName":[B.tagName,B.invalid],AttributeName:B.attributeName,AttributeValue:B.attributeValue,Is:B.definitionOperator,"EntityReference CharacterReference":B.character,Comment:B.blockComment,ProcessingInst:B.processingInstruction,DoctypeDecl:B.documentMeta,Cdata:B.special(B.string)}),W5=us.deserialize({version:14,states:",lOQOaOOOrOxO'#CfOzOpO'#CiO!tOaO'#CgOOOP'#Cg'#CgO!{OrO'#CrO#TOtO'#CsO#]OpO'#CtOOOP'#DT'#DTOOOP'#Cv'#CvQQOaOOOOOW'#Cw'#CwO#eOxO,59QOOOP,59Q,59QOOOO'#Cx'#CxO#mOpO,59TO#uO!bO,59TOOOP'#C|'#C|O$TOaO,59RO$[OpO'#CoOOOP,59R,59ROOOQ'#C}'#C}O$dOrO,59^OOOP,59^,59^OOOS'#DO'#DOO$lOtO,59_OOOP,59_,59_O$tOpO,59`O$|OpO,59`OOOP-E6t-E6tOOOW-E6u-E6uOOOP1G.l1G.lOOOO-E6v-E6vO%UO!bO1G.oO%UO!bO1G.oO%dOpO'#CkO%lO!bO'#CyO%zO!bO1G.oOOOP1G.o1G.oOOOP1G.w1G.wOOOP-E6z-E6zOOOP1G.m1G.mO&VOpO,59ZO&_OpO,59ZOOOQ-E6{-E6{OOOP1G.x1G.xOOOS-E6|-E6|OOOP1G.y1G.yO&gOpO1G.zO&gOpO1G.zOOOP1G.z1G.zO&oO!bO7+$ZO&}O!bO7+$ZOOOP7+$Z7+$ZOOOP7+$c7+$cO'YOpO,59VO'bOpO,59VO'mO!bO,59eOOOO-E6w-E6wO'{OpO1G.uO'{OpO1G.uOOOP1G.u1G.uO(TOpO7+$fOOOP7+$f7+$fO(]O!bO<<GuOOOP<<Gu<<GuOOOP<<G}<<G}O'bOpO1G.qO'bOpO1G.qO(hO#tO'#CnO(vO&jO'#CnOOOO1G.q1G.qO)UOpO7+$aOOOP7+$a7+$aOOOP<<HQ<<HQOOOPAN=aAN=aOOOPAN=iAN=iO'bOpO7+$]OOOO7+$]7+$]OOOO'#Cz'#CzO)^O#tO,59YOOOO,59Y,59YOOOO'#C{'#C{O)lO&jO,59YOOOP<<G{<<G{OOOO<<Gw<<GwOOOO-E6x-E6xOOOO1G.t1G.tOOOO-E6y-E6y",stateData:")z~OPQOSVOTWOVWOWWOXWOiXOyPO!QTO!SUO~OvZOx]O~O^`Oz^O~OPQOQcOSVOTWOVWOWWOXWOyPO!QTO!SUO~ORdO~P!SOteO!PgO~OuhO!RjO~O^lOz^O~OvZOxoO~O^qOz^O~O[vO`sOdwOz^O~ORyO~P!SO^{Oz^O~OteO!P}O~OuhO!R!PO~O^!QOz^O~O[!SOz^O~O[!VO`sOd!WOz^O~Oa!YOz^O~Oz^O[mX`mXdmX~O[!VO`sOd!WO~O^!]Oz^O~O[!_Oz^O~O[!aOz^O~O[!cO`sOd!dOz^O~O[!cO`sOd!dO~Oa!eOz^O~Oz^O{!gO}!hO~Oz^O[ma`madma~O[!kOz^O~O[!lOz^O~O[!mO`sOd!nO~OW!qOX!qO{!sO|!qO~OW!tOX!tO}!sO!O!tO~O[!vOz^O~OW!qOX!qO{!yO|!qO~OW!tOX!tO}!yO!O!tO~O",goto:"%cxPPPPPPPPPPyyP!PP!VPP!`!jP!pyyyP!v!|#S$[$k$q$w$}%TPPPP%ZXWORYbXRORYb_t`qru!T!U!bQ!i!YS!p!e!fR!w!oQdRRybXSORYbQYORmYQ[PRn[Q_QQkVjp_krz!R!T!X!Z!^!`!f!j!oQr`QzcQ!RlQ!TqQ!XsQ!ZtQ!^{Q!`!QQ!f!YQ!j!]R!o!eQu`S!UqrU![u!U!bR!b!TQ!r!gR!x!rQ!u!hR!z!uQbRRxbQfTR|fQiUR!OiSXOYTaRb",nodeNames:"⚠ StartTag StartCloseTag MissingCloseTag StartCloseTag StartCloseTag Document Text EntityReference CharacterReference Cdata Element EndTag OpenTag TagName Attribute AttributeName Is AttributeValue CloseTag SelfCloseEndTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag DoctypeDecl",maxTerm:50,context:L5,nodeProps:[["closedBy",1,"SelfCloseEndTag EndTag",13,"CloseTag MissingCloseTag"],["openedBy",12,"StartTag StartCloseTag",19,"OpenTag",20,"StartTag"],["isolate",-6,13,18,19,21,22,24,""]],propSources:[$5],skippedNodes:[0],repeatNodeCount:9,tokenData:"!)v~R!YOX$qXY)iYZ)iZ]$q]^)i^p$qpq)iqr$qrs*vsv$qvw+fwx/ix}$q}!O0[!O!P$q!P!Q2z!Q![$q![!]4n!]!^$q!^!_8U!_!`!#t!`!a!$l!a!b!%d!b!c$q!c!}4n!}#P$q#P#Q!'W#Q#R$q#R#S4n#S#T$q#T#o4n#o%W$q%W%o4n%o%p$q%p&a4n&a&b$q&b1p4n1p4U$q4U4d4n4d4e$q4e$IS4n$IS$I`$q$I`$Ib4n$Ib$Kh$q$Kh%#t4n%#t&/x$q&/x&Et4n&Et&FV$q&FV;'S4n;'S;:j8O;:j;=`)c<%l?&r$q?&r?Ah4n?Ah?BY$q?BY?Mn4n?MnO$qi$zXVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qa%nVVP!O`Ov%gwx&Tx!^%g!^!_&o!_;'S%g;'S;=`'W<%lO%gP&YTVPOv&Tw!^&T!_;'S&T;'S;=`&i<%lO&TP&lP;=`<%l&T`&tS!O`Ov&ox;'S&o;'S;=`'Q<%lO&o`'TP;=`<%l&oa'ZP;=`<%l%gX'eWVP|WOr'^rs&Tsv'^w!^'^!^!_'}!_;'S'^;'S;=`(i<%lO'^W(ST|WOr'}sv'}w;'S'};'S;=`(c<%lO'}W(fP;=`<%l'}X(lP;=`<%l'^h(vV|W!O`Or(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(oh)`P;=`<%l(oi)fP;=`<%l$qo)t`VP|W!O`zUOX$qXY)iYZ)iZ]$q]^)i^p$qpq)iqr$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qk+PV{YVP!O`Ov%gwx&Tx!^%g!^!_&o!_;'S%g;'S;=`'W<%lO%g~+iast,n![!]-r!c!}-r#R#S-r#T#o-r%W%o-r%p&a-r&b1p-r4U4d-r4e$IS-r$I`$Ib-r$Kh%#t-r&/x&Et-r&FV;'S-r;'S;:j/c?&r?Ah-r?BY?Mn-r~,qQ!Q![,w#l#m-V~,zQ!Q![,w!]!^-Q~-VOX~~-YR!Q![-c!c!i-c#T#Z-c~-fS!Q![-c!]!^-Q!c!i-c#T#Z-c~-ug}!O-r!O!P-r!Q![-r![!]-r!]!^/^!c!}-r#R#S-r#T#o-r$}%O-r%W%o-r%p&a-r&b1p-r1p4U-r4U4d-r4e$IS-r$I`$Ib-r$Je$Jg-r$Kh%#t-r&/x&Et-r&FV;'S-r;'S;:j/c?&r?Ah-r?BY?Mn-r~/cOW~~/fP;=`<%l-rk/rW}bVP|WOr'^rs&Tsv'^w!^'^!^!_'}!_;'S'^;'S;=`(i<%lO'^k0eZVP|W!O`Or$qrs%gsv$qwx'^x}$q}!O1W!O!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qk1aZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a2S!a;'S$q;'S;=`)c<%lO$qk2_X!PQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qm3TZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a3v!a;'S$q;'S;=`)c<%lO$qm4RXdSVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qo4{!P`S^QVP|W!O`Or$qrs%gsv$qwx'^x}$q}!O4n!O!P4n!P!Q$q!Q![4n![!]4n!]!^$q!^!_(o!_!c$q!c!}4n!}#R$q#R#S4n#S#T$q#T#o4n#o$}$q$}%O4n%O%W$q%W%o4n%o%p$q%p&a4n&a&b$q&b1p4n1p4U4n4U4d4n4d4e$q4e$IS4n$IS$I`$q$I`$Ib4n$Ib$Je$q$Je$Jg4n$Jg$Kh$q$Kh%#t4n%#t&/x$q&/x&Et4n&Et&FV$q&FV;'S4n;'S;:j8O;:j;=`)c<%l?&r$q?&r?Ah4n?Ah?BY$q?BY?Mn4n?MnO$qo8RP;=`<%l4ni8]Y|W!O`Oq(oqr8{rs&osv(owx'}x!a(o!a!b!#U!b;'S(o;'S;=`)]<%lO(oi9S_|W!O`Or(ors&osv(owx'}x}(o}!O:R!O!f(o!f!g;e!g!}(o!}#ODh#O#W(o#W#XLp#X;'S(o;'S;=`)]<%lO(oi:YX|W!O`Or(ors&osv(owx'}x}(o}!O:u!O;'S(o;'S;=`)]<%lO(oi;OV!QP|W!O`Or(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(oi;lX|W!O`Or(ors&osv(owx'}x!q(o!q!r<X!r;'S(o;'S;=`)]<%lO(oi<`X|W!O`Or(ors&osv(owx'}x!e(o!e!f<{!f;'S(o;'S;=`)]<%lO(oi=SX|W!O`Or(ors&osv(owx'}x!v(o!v!w=o!w;'S(o;'S;=`)]<%lO(oi=vX|W!O`Or(ors&osv(owx'}x!{(o!{!|>c!|;'S(o;'S;=`)]<%lO(oi>jX|W!O`Or(ors&osv(owx'}x!r(o!r!s?V!s;'S(o;'S;=`)]<%lO(oi?^X|W!O`Or(ors&osv(owx'}x!g(o!g!h?y!h;'S(o;'S;=`)]<%lO(oi@QY|W!O`Or?yrs@psv?yvwA[wxBdx!`?y!`!aCr!a;'S?y;'S;=`Db<%lO?ya@uV!O`Ov@pvxA[x!`@p!`!aAy!a;'S@p;'S;=`B^<%lO@pPA_TO!`A[!`!aAn!a;'SA[;'S;=`As<%lOA[PAsOiPPAvP;=`<%lA[aBQSiP!O`Ov&ox;'S&o;'S;=`'Q<%lO&oaBaP;=`<%l@pXBiX|WOrBdrsA[svBdvwA[w!`Bd!`!aCU!a;'SBd;'S;=`Cl<%lOBdXC]TiP|WOr'}sv'}w;'S'};'S;=`(c<%lO'}XCoP;=`<%lBdiC{ViP|W!O`Or(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(oiDeP;=`<%l?yiDoZ|W!O`Or(ors&osv(owx'}x!e(o!e!fEb!f#V(o#V#WIr#W;'S(o;'S;=`)]<%lO(oiEiX|W!O`Or(ors&osv(owx'}x!f(o!f!gFU!g;'S(o;'S;=`)]<%lO(oiF]X|W!O`Or(ors&osv(owx'}x!c(o!c!dFx!d;'S(o;'S;=`)]<%lO(oiGPX|W!O`Or(ors&osv(owx'}x!v(o!v!wGl!w;'S(o;'S;=`)]<%lO(oiGsX|W!O`Or(ors&osv(owx'}x!c(o!c!dH`!d;'S(o;'S;=`)]<%lO(oiHgX|W!O`Or(ors&osv(owx'}x!}(o!}#OIS#O;'S(o;'S;=`)]<%lO(oiI]V|W!O`yPOr(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(oiIyX|W!O`Or(ors&osv(owx'}x#W(o#W#XJf#X;'S(o;'S;=`)]<%lO(oiJmX|W!O`Or(ors&osv(owx'}x#T(o#T#UKY#U;'S(o;'S;=`)]<%lO(oiKaX|W!O`Or(ors&osv(owx'}x#h(o#h#iK|#i;'S(o;'S;=`)]<%lO(oiLTX|W!O`Or(ors&osv(owx'}x#T(o#T#UH`#U;'S(o;'S;=`)]<%lO(oiLwX|W!O`Or(ors&osv(owx'}x#c(o#c#dMd#d;'S(o;'S;=`)]<%lO(oiMkX|W!O`Or(ors&osv(owx'}x#V(o#V#WNW#W;'S(o;'S;=`)]<%lO(oiN_X|W!O`Or(ors&osv(owx'}x#h(o#h#iNz#i;'S(o;'S;=`)]<%lO(oi! RX|W!O`Or(ors&osv(owx'}x#m(o#m#n! n#n;'S(o;'S;=`)]<%lO(oi! uX|W!O`Or(ors&osv(owx'}x#d(o#d#e!!b#e;'S(o;'S;=`)]<%lO(oi!!iX|W!O`Or(ors&osv(owx'}x#X(o#X#Y?y#Y;'S(o;'S;=`)]<%lO(oi!#_V!SP|W!O`Or(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(ok!$PXaQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qo!$wX[UVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qk!%mZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a!&`!a;'S$q;'S;=`)c<%lO$qk!&kX!RQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qk!'aZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_#P$q#P#Q!(S#Q;'S$q;'S;=`)c<%lO$qk!(]ZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a!)O!a;'S$q;'S;=`)c<%lO$qk!)ZXxQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$q",tokenizers:[R5,N5,I5,H5,0,1,2,3,4],topRules:{Document:[0,6]},tokenPrec:0});function Rn(n,e){let t=e&&e.getChild("TagName");return t?n.sliceString(t.from,t.to):""}function t0(n,e){let t=e&&e.firstChild;return!t||t.name!="OpenTag"?"":Rn(n,t)}function F5(n,e,t){let i=e&&e.getChildren("Attribute").find(o=>o.from<=t&&o.to>=t),s=i&&i.getChild("AttributeName");return s?n.sliceString(s.from,s.to):""}function i0(n){for(let e=n&&n.parent;e;e=e.parent)if(e.name=="Element")return e;return null}function G5(n,e){var t;let i=fe(n).resolveInner(e,-1),s=null;for(let o=i;!s&&o.parent;o=o.parent)(o.name=="OpenTag"||o.name=="CloseTag"||o.name=="SelfClosingTag"||o.name=="MismatchedCloseTag")&&(s=o);if(s&&(s.to>e||s.lastChild.type.isError)){let o=s.parent;if(i.name=="TagName")return s.name=="CloseTag"||s.name=="MismatchedCloseTag"?{type:"closeTag",from:i.from,context:o}:{type:"openTag",from:i.from,context:i0(o)};if(i.name=="AttributeName")return{type:"attrName",from:i.from,context:s};if(i.name=="AttributeValue")return{type:"attrValue",from:i.from,context:s};let r=i==s||i.name=="Attribute"?i.childBefore(e):i;return(r==null?void 0:r.name)=="StartTag"?{type:"openTag",from:e,context:i0(o)}:(r==null?void 0:r.name)=="StartCloseTag"&&r.to<=e?{type:"closeTag",from:e,context:o}:(r==null?void 0:r.name)=="Is"?{type:"attrValue",from:e,context:s}:r?{type:"attrName",from:e,context:s}:null}else if(i.name=="StartCloseTag")return{type:"closeTag",from:e,context:i.parent};for(;i.parent&&i.to==e&&!(!((t=i.lastChild)===null||t===void 0)&&t.type.isError);)i=i.parent;return i.name=="Element"||i.name=="Text"||i.name=="Document"?{type:"tag",from:e,context:i.name=="Element"?i:i0(i)}:null}class j5{constructor(e,t,i){this.attrs=t,this.attrValues=i,this.children=[],this.name=e.name,this.completion=Object.assign(Object.assign({type:"type"},e.completion||{}),{label:this.name}),this.openCompletion=Object.assign(Object.assign({},this.completion),{label:"<"+this.name}),this.closeCompletion=Object.assign(Object.assign({},this.completion),{label:"</"+this.name+">",boost:2}),this.closeNameCompletion=Object.assign(Object.assign({},this.completion),{label:this.name+">"}),this.text=e.textContent?e.textContent.map(s=>({label:s,type:"text"})):[]}}const n0=/^[:\-\.\w\u00b7-\uffff]*$/;function Ir(n){return Object.assign(Object.assign({type:"property"},n.completion||{}),{label:n.name})}function Hr(n){return typeof n=="string"?{label:`"${n}"`,type:"constant"}:/^"/.test(n.label)?n:Object.assign(Object.assign({},n),{label:`"${n.label}"`})}function q5(n,e){let t=[],i=[],s=Object.create(null);for(let a of e){let c=Ir(a);t.push(c),a.global&&i.push(c),a.values&&(s[a.name]=a.values.map(Hr))}let o=[],r=[],l=Object.create(null);for(let a of n){let c=i,h=s;a.attributes&&(c=c.concat(a.attributes.map(d=>typeof d=="string"?t.find(p=>p.label==d)||{label:d,type:"property"}:(d.values&&(h==s&&(h=Object.create(h)),h[d.name]=d.values.map(Hr)),Ir(d)))));let f=new j5(a,c,h);l[f.name]=f,o.push(f),a.top&&r.push(f)}r.length||(r=o);for(let a=0;a<o.length;a++){let c=n[a],h=o[a];if(c.children)for(let f of c.children)l[f]&&h.children.push(l[f]);else h.children=o}return a=>{var c;let{doc:h}=a.state,f=G5(a.state,a.pos);if(!f||f.type=="tag"&&!a.explicit)return null;let{type:d,from:p,context:g}=f;if(d=="openTag"){let m=r,v=t0(h,g);if(v){let b=l[v];m=(b==null?void 0:b.children)||o}return{from:p,options:m.map(b=>b.completion),validFor:n0}}else if(d=="closeTag"){let m=t0(h,g);return m?{from:p,to:a.pos+(h.sliceString(a.pos,a.pos+1)==">"?1:0),options:[((c=l[m])===null||c===void 0?void 0:c.closeNameCompletion)||{label:m+">",type:"type"}],validFor:n0}:null}else if(d=="attrName"){let m=l[Rn(h,g)];return{from:p,options:(m==null?void 0:m.attrs)||i,validFor:n0}}else if(d=="attrValue"){let m=F5(h,g,p);if(!m)return null;let v=l[Rn(h,g)],b=((v==null?void 0:v.attrValues)||s)[m];return!b||!b.length?null:{from:p,to:a.pos+(h.sliceString(a.pos,a.pos+1)=='"'?1:0),options:b,validFor:/^"[^"]*"?$/}}else if(d=="tag"){let m=t0(h,g),v=l[m],b=[],x=g&&g.lastChild;m&&(!x||x.name!="CloseTag"||Rn(h,x)!=m)&&b.push(v?v.closeCompletion:{label:"</"+m+">",type:"type",boost:2});let k=b.concat(((v==null?void 0:v.children)||(g?o:r)).map(_=>_.openCompletion));if(g&&(v!=null&&v.text.length)){let _=g.firstChild;_.to>a.pos-20&&!/\S/.test(a.state.sliceDoc(_.to,a.pos))&&(k=k.concat(v.text))}return{from:p,options:k,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}else return null}}const eo=Xn.define({name:"xml",parser:W5.configure({props:[za.add({Element(n){let e=/^\s*<\//.test(n.textAfter);return n.lineIndent(n.node.from)+(e?0:n.unit)},"OpenTag CloseTag SelfClosingTag"(n){return n.column(n.node.from)+n.unit}}),Ra.add({Element(n){let e=n.firstChild,t=n.lastChild;return!e||e.name!="OpenTag"?null:{from:e.to,to:t.name=="CloseTag"?t.from:n.to}}}),Ka.add({"OpenTag CloseTag":n=>n.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"<!--",close:"-->"}},indentOnInput:/^\s*<\/$/}});function U5(n={}){let e=[eo.data.of({autocomplete:q5(n.elements||[],n.attributes||[])})];return n.autoCloseTags!==!1&&e.push(Y5),new $4(eo,e)}function $r(n,e,t=n.length){if(!e)return"";let i=e.firstChild,s=i&&i.getChild("TagName");return s?n.sliceString(s.from,Math.min(s.to,t)):""}const Y5=z.inputHandler.of((n,e,t,i,s)=>{if(n.composing||n.state.readOnly||e!=t||i!=">"&&i!="/"||!eo.isActiveAt(n.state,e,-1))return!1;let o=s(),{state:r}=o,l=r.changeByRange(a=>{var c,h,f;let{head:d}=a,p=r.doc.sliceString(d-1,d)==i,g=fe(r).resolveInner(d,-1),m;if(p&&i==">"&&g.name=="EndTag"){let v=g.parent;if(((h=(c=v.parent)===null||c===void 0?void 0:c.lastChild)===null||h===void 0?void 0:h.name)!="CloseTag"&&(m=$r(r.doc,v.parent,d))){let b=d+(r.doc.sliceString(d,d+1)===">"?1:0),x=`</${m}>`;return{range:a,changes:{from:d,to:b,insert:x}}}}else if(p&&i=="/"&&g.name=="StartCloseTag"){let v=g.parent;if(g.from==d-2&&((f=v.lastChild)===null||f===void 0?void 0:f.name)!="CloseTag"&&(m=$r(r.doc,v,d))){let b=d+(r.doc.sliceString(d,d+1)===">"?1:0),x=`${m}>`;return{range:M.cursor(d+x.length,-1),changes:{from:d,to:b,insert:x}}}}return{range:a}});return l.changes.empty?!1:(n.dispatch([o,r.update(l,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),K5={class:"xml-renderer"},X5={ref:"xml-editor",id:"xml-editor"},Q5={__name:"index",props:{fileName:String,blobUrl:String},setup(n){const e=n,t=u.computed(()=>e.blobUrl),i=u.ref("");return u.watchEffect(async()=>{const o=await(await fetch(t.value)).blob(),r=new FileReader;r.onload=function(l){debugger;i.value=l.target.result},r.readAsText(o)}),u.watchEffect(()=>{const s=new z({doc:i.value,extensions:[p5,U5(),z.lineWrapping,G.readOnly.of(!0)],parent:document.querySelector("#xml-editor")});s.dom.style.width="100%"}),(s,o)=>(u.openBlock(),u.createElementBlock("div",K5,[u.createElementVNode("div",X5,null,512)]))}},J5=ce._export_sfc(Q5,[["__scopeId","data-v-edd4ac40"]]),Z5={class:"img-renderer"},e7={__name:"index",props:{fileName:String,blobUrl:String},setup(n){const e=n,t=u.computed(()=>e.blobUrl),i=u.computed(()=>[e.blobUrl]);return(s,o)=>{const r=u.resolveComponent("el-image");return u.openBlock(),u.createElementBlock("div",Z5,[u.createVNode(r,{class:"render-img",src:t.value,"zoom-rate":1.2,"max-scale":7,"min-scale":.2,"preview-src-list":i.value,fit:"contain"},null,8,["src","preview-src-list"])])}}},t7=ce._export_sfc(e7,[["__scopeId","data-v-92be70b7"]]),i7={class:"file-preview"},n7={key:0,class:"preview-docx"},s7={key:1,class:"preview-xlsx"},o7={key:2,class:"preview-pdf"},r7={key:3,class:"preview-xml"},l7={key:4,class:"preview-xml"},a7={key:5,class:"preview-txt"},c7={key:6,class:"not-support"},h7={__name:"index",props:{fileName:String,blobUrl:String},emits:["destroy"],setup(n,{emit:e}){const t=e,i=n,s=u.computed(()=>(console.log(232,i.blobUrl),i.blobUrl)),o=u.computed(()=>i.fileName),r=u.computed(()=>{const v=o.value;if(!v)return;const b=v.split(".");return b==null?void 0:b[1]}),l=u.computed(()=>(r==null?void 0:r.value)==="txt"),a=u.computed(()=>(r==null?void 0:r.value)==="ls"),c=u.computed(()=>(r==null?void 0:r.value)==="urdf"),h=u.computed(()=>c.value),f=u.computed(()=>(r==null?void 0:r.value)==="docx"),d=u.computed(()=>(r==null?void 0:r.value)==="xlsx"),p=u.computed(()=>(r==null?void 0:r.value)==="pdf"),g=u.computed(()=>{const v=r==null?void 0:r.value;return v==="jpg"||v==="png"}),m=u.computed(()=>!l&&!a&&!h&&!f&&!d&&!p&&!g);return u.onUnmounted(()=>{t("destroy")}),(v,b)=>(u.openBlock(),u.createElementBlock("div",i7,[f.value?(u.openBlock(),u.createElementBlock("div",n7,[u.createVNode(gf,{fileName:o.value,blobUrl:s.value},null,8,["fileName","blobUrl"])])):u.createCommentVNode("",!0),d.value?(u.openBlock(),u.createElementBlock("div",s7,[u.createVNode(wf,{fileName:o.value,blobUrl:s.value},null,8,["fileName","blobUrl"])])):u.createCommentVNode("",!0),p.value?(u.openBlock(),u.createElementBlock("div",o7,[u.createVNode(kf,{fileName:o.value,blobUrl:s.value},null,8,["fileName","blobUrl"])])):u.createCommentVNode("",!0),c.value?(u.openBlock(),u.createElementBlock("div",r7,[u.createVNode(J5,{fileName:o.value,blobUrl:s.value},null,8,["fileName","blobUrl"])])):u.createCommentVNode("",!0),g.value?(u.openBlock(),u.createElementBlock("div",l7,[u.createVNode(t7,{fileName:o.value,blobUrl:s.value},null,8,["fileName","blobUrl"])])):(u.openBlock(),u.createElementBlock("div",a7,[u.createVNode(ff,{fileName:o.value,blobUrl:s.value},null,8,["fileName","blobUrl"])])),m.value?(u.openBlock(),u.createElementBlock("div",c7,b[0]||(b[0]=[u.createElementVNode("div",null,"当前文件格式暂不支持预览",-1)]))):u.createCommentVNode("",!0)]))}},No=ce._export_sfc(h7,[["__scopeId","data-v-13c9f682"]]),u7={key:0,class:"upload-value"},f7={class:"upload-content-title-wrap"},d7={class:"upload-content-title"},p7={class:"icon"},g7={style:{display:"flex","justify-content":"space-between",width:"100%"}},m7={class:"upload-content-title"},v7={class:"icon"},w7={class:"dialog-footer"},b7={__name:"index",props:{modelValue:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,i=e,s=u.ref(Array.isArray(t.modelValue)?t.modelValue:[]),o=u.ref(!1),r=u.ref(Array.isArray(t.modelValue)?t.modelValue:[]),l=u.ref(!1),a=u.ref(""),c=u.ref(""),h=u.ref(Array.isArray(t.modelValue)?t.modelValue:[]),f=()=>{l.value=!0,h.value=s.value,r.value=s.value},d=async k=>{var S;const _=await Zr({url:(S=ee.cloneDeep(k))==null?void 0:S.url});let y=URL.createObjectURL(_.data);c.value=y},p=async k=>{var y,S,C,P;if(k==null?void 0:k.url)a.value=(k==null?void 0:k.name)+"."+((P=(y=ee.cloneDeep(k))==null?void 0:y.url.split("."))==null?void 0:P[((C=(S=ee.cloneDeep(k))==null?void 0:S.url.split("."))==null?void 0:C.length)-1]),await d(k);else{a.value=k==null?void 0:k.name;const O=k.raw;c.value=URL.createObjectURL(O)}o.value=!0},g=k=>{var _;h.value=(_=ee.cloneDeep(h.value))==null?void 0:_.filter((y,S)=>S!==k),r.value=h.value},m=k=>{var O;const _=k.split(","),y=(O=_==null?void 0:_[0])==null?void 0:O.match(/:(.*?);/)[1],S=atob(_[1]);let C=S.length;const P=new Uint8Array(C);for(;C--;)P[C]=S.charCodeAt(C);return new Blob([P],{type:y})},v=async()=>{var S;l.value=!1;const k=(S=r.value)==null?void 0:S.map(async C=>{if(C!=null&&C.base64){const P=new FormData,O=m(C==null?void 0:C.base64);return P.append("file",O,C==null?void 0:C.name),await lf(P)}else return C}),_=await Promise.all(k);let y=[];_==null||_.map(C=>{var P,O,w,A,T,D;return y.push({name:((O=(P=C==null?void 0:C.data)==null?void 0:P.result)==null?void 0:O.fileName)??(C==null?void 0:C.name),url:((A=(w=C==null?void 0:C.data)==null?void 0:w.result)==null?void 0:A.url)??(C==null?void 0:C.url)}),(D=(T=C==null?void 0:C.data)==null?void 0:T.result)==null?void 0:D.url}),ee.ElMessage.success("上传成功"),s.value=y,i("update:modelValue",y),r.value=[]},b=()=>{l.value=!1,r.value=s.value,h.value=s.value},x=k=>{if(!k)return;const _=new FileReader;_.onload=y=>{const S=r.value===""?[]:r.value;S.push({name:k.name,size:k.size,type:k.type,base64:y.target.result}),r.value=S},_.onerror=y=>{console.error("文件读取错误:",y),fileData.value={name:"",size:0,type:"",base64:""}},_.readAsDataURL(k.raw)};return(k,_)=>{const y=u.resolveComponent("el-button"),S=u.resolveComponent("svg-icon"),C=u.resolveComponent("el-icon"),P=u.resolveComponent("el-upload");return t!=null&&t.isEdit?(u.openBlock(),u.createElementBlock("div",u7,[u.createVNode(y,{type:"primary",onClick:f,class:"upload-button"},{default:u.withCtx(()=>_[2]||(_[2]=[u.createTextVNode(" 上传 ")])),_:1,__:[2]}),u.createElementVNode("div",f7,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(s.value,O=>(u.openBlock(),u.createElementBlock("div",{class:"upload-content-title",key:O,style:{display:"flex","justify-content":"space-between",width:"100%"}},[u.createElementVNode("div",d7,u.toDisplayString(O==null?void 0:O.name),1),u.createElementVNode("div",p7,[u.createVNode(S,{name:"EyeFill",style:{width:"20px",height:"20px",cursor:"pointer"},onClick:w=>p(O)},null,8,["onClick"])])]))),128))]),u.createVNode(Bi,{visible:l.value,onBeforeDestroy:b,title:"上传文件"},{default:u.withCtx(()=>[u.createVNode(P,{"file-list":h.value,"onUpdate:fileList":_[0]||(_[0]=O=>h.value=O),multiple:"",drag:"",action:"","auto-upload":!1,limit:20,"on-change":x,class:"upload-content"},{tip:u.withCtx(()=>_[3]||(_[3]=[u.createElementVNode("div",{class:"el-upload__tip tip-content"}," 请上传大小不超过10MB的文件 ",-1)])),default:u.withCtx(()=>[u.createVNode(C,{class:"el-icon--upload"},{default:u.withCtx(()=>[u.createVNode(u.unref(ee.upload_filled_default))]),_:1}),_[4]||(_[4]=u.createElementVNode("div",{class:"el-upload__text"},[u.createTextVNode(" 将文件拖到此处或"),u.createElementVNode("em",null,"点击上传")],-1))]),file:u.withCtx(({file:O,index:w})=>[u.createElementVNode("div",g7,[u.createElementVNode("div",m7,u.toDisplayString(O==null?void 0:O.name),1),u.createElementVNode("div",v7,[u.createVNode(S,{name:"EyeFill",style:{width:"20px",height:"20px",cursor:"pointer"},onClick:A=>p(O)},null,8,["onClick"]),u.createVNode(S,{name:"Cancel",style:{width:"20px",height:"20px",cursor:"pointer"},onClick:A=>g(w)},null,8,["onClick"])])])]),_:1},8,["file-list"])]),footer:u.withCtx(()=>[u.createElementVNode("div",w7,[u.createVNode(y,{onClick:b,id:"themeBorderButton"},{default:u.withCtx(()=>_[5]||(_[5]=[u.createTextVNode("取消")])),_:1,__:[5]}),u.createVNode(y,{type:"primary",onClick:v,id:"themeButton"},{default:u.withCtx(()=>_[6]||(_[6]=[u.createTextVNode("确认")])),_:1,__:[6]})])]),_:1},8,["visible"]),u.createVNode(Bi,{visible:o.value,onBeforeDestroy:_[1]||(_[1]=O=>o.value=!1),style:{height:"calc(100% - 200px)"}},{default:u.withCtx(()=>[(u.openBlock(),u.createBlock(No,{key:a.value+c.value,fileName:a.value,blobUrl:c.value},null,8,["fileName","blobUrl"]))]),_:1},8,["visible"])])):u.createCommentVNode("",!0)}}},x7=ce._export_sfc(b7,[["__scopeId","data-v-c950e225"]]);/*!
|
|
13
13
|
* Signature Pad v3.0.0-beta.4 | https://github.com/szimek/signature_pad
|
|
14
14
|
* (c) 2020 Szymon Nowak | Released under the MIT license
|
|
15
|
-
*/class fs{constructor(e,t,i){this.x=e,this.y=t,this.time=i||Date.now()}distanceTo(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))}equals(e){return this.x===e.x&&this.y===e.y&&this.time===e.time}velocityFrom(e){return this.time!==e.time?this.distanceTo(e)/(this.time-e.time):0}}class Io{constructor(e,t,i,s,o,r){this.startPoint=e,this.control2=t,this.control1=i,this.endPoint=s,this.startWidth=o,this.endWidth=r}static fromPoints(e,t){const i=this.calculateControlPoints(e[0],e[1],e[2]).c2,s=this.calculateControlPoints(e[1],e[2],e[3]).c1;return new Io(e[1],i,s,e[2],t.start,t.end)}static calculateControlPoints(e,t,i){const s=e.x-t.x,o=e.y-t.y,r=t.x-i.x,l=t.y-i.y,a={x:(e.x+t.x)/2,y:(e.y+t.y)/2},c={x:(t.x+i.x)/2,y:(t.y+i.y)/2},h=Math.sqrt(s*s+o*o),f=Math.sqrt(r*r+l*l),d=a.x-c.x,p=a.y-c.y,g=f/(h+f),m={x:c.x+d*g,y:c.y+p*g},v=t.x-m.x,x=t.y-m.y;return{c1:new fs(a.x+v,a.y+x),c2:new fs(c.x+v,c.y+x)}}length(){let t=0,i,s;for(let o=0;o<=10;o+=1){const r=o/10,l=this.point(r,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),a=this.point(r,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(o>0){const c=l-i,h=a-s;t+=Math.sqrt(c*c+h*h)}i=l,s=a}return t}point(e,t,i,s,o){return t*(1-e)*(1-e)*(1-e)+3*i*(1-e)*(1-e)*e+3*s*(1-e)*e*e+o*e*e*e}}function y7(n,e=250){let t=0,i=null,s,o,r;const l=()=>{t=Date.now(),i=null,s=n.apply(o,r),i||(o=null,r=[])};return function(...c){const h=Date.now(),f=e-(h-t);return o=this,r=c,f<=0||f>e?(i&&(clearTimeout(i),i=null),t=h,s=n.apply(o,r),i||(o=null,r=[])):i||(i=window.setTimeout(l,f)),s}}class ds{constructor(e,t={}){this.canvas=e,this.options=t,this._handleMouseDown=i=>{i.which===1&&(this._mouseButtonDown=!0,this._strokeBegin(i))},this._handleMouseMove=i=>{this._mouseButtonDown&&this._strokeMoveUpdate(i)},this._handleMouseUp=i=>{i.which===1&&this._mouseButtonDown&&(this._mouseButtonDown=!1,this._strokeEnd(i))},this._handleTouchStart=i=>{if(i.preventDefault(),i.targetTouches.length===1){const s=i.changedTouches[0];this._strokeBegin(s)}},this._handleTouchMove=i=>{i.preventDefault();const s=i.targetTouches[0];this._strokeMoveUpdate(s)},this._handleTouchEnd=i=>{if(i.target===this.canvas){i.preventDefault();const o=i.changedTouches[0];this._strokeEnd(o)}},this.velocityFilterWeight=t.velocityFilterWeight||.7,this.minWidth=t.minWidth||.5,this.maxWidth=t.maxWidth||2.5,this.throttle="throttle"in t?t.throttle:16,this.minDistance="minDistance"in t?t.minDistance:5,this.dotSize=t.dotSize||function(){return(this.minWidth+this.maxWidth)/2},this.penColor=t.penColor||"black",this.backgroundColor=t.backgroundColor||"rgba(0,0,0,0)",this.onBegin=t.onBegin,this.onEnd=t.onEnd,this._strokeMoveUpdate=this.throttle?y7(ds.prototype._strokeUpdate,this.throttle):ds.prototype._strokeUpdate,this._ctx=e.getContext("2d"),this.clear(),this.on()}clear(){const{_ctx:e,canvas:t}=this;e.fillStyle=this.backgroundColor,e.clearRect(0,0,t.width,t.height),e.fillRect(0,0,t.width,t.height),this._data=[],this._reset(),this._isEmpty=!0}fromDataURL(e,t={},i){const s=new Image,o=t.ratio||window.devicePixelRatio||1,r=t.width||this.canvas.width/o,l=t.height||this.canvas.height/o;this._reset(),s.onload=()=>{this._ctx.drawImage(s,0,0,r,l),i&&i()},s.onerror=a=>{i&&i(a)},s.src=e,this._isEmpty=!1}toDataURL(e="image/png",t){switch(e){case"image/svg+xml":return this._toSVG();default:return this.canvas.toDataURL(e,t)}}on(){this.canvas.style.touchAction="none",this.canvas.style.msTouchAction="none",window.PointerEvent?this._handlePointerEvents():(this._handleMouseEvents(),"ontouchstart"in window&&this._handleTouchEvents())}off(){this.canvas.style.touchAction="auto",this.canvas.style.msTouchAction="auto",this.canvas.removeEventListener("pointerdown",this._handleMouseDown),this.canvas.removeEventListener("pointermove",this._handleMouseMove),document.removeEventListener("pointerup",this._handleMouseUp),this.canvas.removeEventListener("mousedown",this._handleMouseDown),this.canvas.removeEventListener("mousemove",this._handleMouseMove),document.removeEventListener("mouseup",this._handleMouseUp),this.canvas.removeEventListener("touchstart",this._handleTouchStart),this.canvas.removeEventListener("touchmove",this._handleTouchMove),this.canvas.removeEventListener("touchend",this._handleTouchEnd)}isEmpty(){return this._isEmpty}fromData(e){this.clear(),this._fromData(e,({color:t,curve:i})=>this._drawCurve({color:t,curve:i}),({color:t,point:i})=>this._drawDot({color:t,point:i})),this._data=e}toData(){return this._data}_strokeBegin(e){const t={color:this.penColor,points:[]};typeof this.onBegin=="function"&&this.onBegin(e),this._data.push(t),this._reset(),this._strokeUpdate(e)}_strokeUpdate(e){if(this._data.length===0){this._strokeBegin(e);return}const t=e.clientX,i=e.clientY,s=this._createPoint(t,i),o=this._data[this._data.length-1],r=o.points,l=r.length>0&&r[r.length-1],a=l?s.distanceTo(l)<=this.minDistance:!1,c=o.color;if(!l||!(l&&a)){const h=this._addPoint(s);l?h&&this._drawCurve({color:c,curve:h}):this._drawDot({color:c,point:s}),r.push({time:s.time,x:s.x,y:s.y})}}_strokeEnd(e){this._strokeUpdate(e),typeof this.onEnd=="function"&&this.onEnd(e)}_handlePointerEvents(){this._mouseButtonDown=!1,this.canvas.addEventListener("pointerdown",this._handleMouseDown),this.canvas.addEventListener("pointermove",this._handleMouseMove),document.addEventListener("pointerup",this._handleMouseUp)}_handleMouseEvents(){this._mouseButtonDown=!1,this.canvas.addEventListener("mousedown",this._handleMouseDown),this.canvas.addEventListener("mousemove",this._handleMouseMove),document.addEventListener("mouseup",this._handleMouseUp)}_handleTouchEvents(){this.canvas.addEventListener("touchstart",this._handleTouchStart),this.canvas.addEventListener("touchmove",this._handleTouchMove),this.canvas.addEventListener("touchend",this._handleTouchEnd)}_reset(){this._lastPoints=[],this._lastVelocity=0,this._lastWidth=(this.minWidth+this.maxWidth)/2,this._ctx.fillStyle=this.penColor}_createPoint(e,t){const i=this.canvas.getBoundingClientRect();return new fs(e-i.left,t-i.top,new Date().getTime())}_addPoint(e){const{_lastPoints:t}=this;if(t.push(e),t.length>2){t.length===3&&t.unshift(t[0]);const i=this._calculateCurveWidths(t[1],t[2]),s=Io.fromPoints(t,i);return t.shift(),s}return null}_calculateCurveWidths(e,t){const i=this.velocityFilterWeight*t.velocityFrom(e)+(1-this.velocityFilterWeight)*this._lastVelocity,s=this._strokeWidth(i),o={end:s,start:this._lastWidth};return this._lastVelocity=i,this._lastWidth=s,o}_strokeWidth(e){return Math.max(this.maxWidth/(e+1),this.minWidth)}_drawCurveSegment(e,t,i){const s=this._ctx;s.moveTo(e,t),s.arc(e,t,i,0,2*Math.PI,!1),this._isEmpty=!1}_drawCurve({color:e,curve:t}){const i=this._ctx,s=t.endWidth-t.startWidth,o=Math.floor(t.length())*2;i.beginPath(),i.fillStyle=e;for(let r=0;r<o;r+=1){const l=r/o,a=l*l,c=a*l,h=1-l,f=h*h,d=f*h;let p=d*t.startPoint.x;p+=3*f*l*t.control1.x,p+=3*h*a*t.control2.x,p+=c*t.endPoint.x;let g=d*t.startPoint.y;g+=3*f*l*t.control1.y,g+=3*h*a*t.control2.y,g+=c*t.endPoint.y;const m=Math.min(t.startWidth+c*s,this.maxWidth);this._drawCurveSegment(p,g,m)}i.closePath(),i.fill()}_drawDot({color:e,point:t}){const i=this._ctx,s=typeof this.dotSize=="function"?this.dotSize():this.dotSize;i.beginPath(),this._drawCurveSegment(t.x,t.y,s),i.closePath(),i.fillStyle=e,i.fill()}_fromData(e,t,i){for(const s of e){const{color:o,points:r}=s;if(r.length>1)for(let l=0;l<r.length;l+=1){const a=r[l],c=new fs(a.x,a.y,a.time);this.penColor=o,l===0&&this._reset();const h=this._addPoint(c);h&&t({color:o,curve:h})}else this._reset(),i({color:o,point:r[0]})}}_toSVG(){const e=this._data,t=Math.max(window.devicePixelRatio||1,1),i=0,s=0,o=this.canvas.width/t,r=this.canvas.height/t,l=document.createElementNS("http://www.w3.org/2000/svg","svg");l.setAttribute("width",this.canvas.width.toString()),l.setAttribute("height",this.canvas.height.toString()),this._fromData(e,({color:p,curve:g})=>{const m=document.createElement("path");if(!isNaN(g.control1.x)&&!isNaN(g.control1.y)&&!isNaN(g.control2.x)&&!isNaN(g.control2.y)){const v=`M ${g.startPoint.x.toFixed(3)},${g.startPoint.y.toFixed(3)} C ${g.control1.x.toFixed(3)},${g.control1.y.toFixed(3)} ${g.control2.x.toFixed(3)},${g.control2.y.toFixed(3)} ${g.endPoint.x.toFixed(3)},${g.endPoint.y.toFixed(3)}`;m.setAttribute("d",v),m.setAttribute("stroke-width",(g.endWidth*2.25).toFixed(3)),m.setAttribute("stroke",p),m.setAttribute("fill","none"),m.setAttribute("stroke-linecap","round"),l.appendChild(m)}},({color:p,point:g})=>{const m=document.createElement("circle"),v=typeof this.dotSize=="function"?this.dotSize():this.dotSize;m.setAttribute("r",v.toString()),m.setAttribute("cx",g.x.toString()),m.setAttribute("cy",g.y.toString()),m.setAttribute("fill",p),l.appendChild(m)});const a="data:image/svg+xml;base64,",c=`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="${i} ${s} ${o} ${r}" width="${o}" height="${r}">`;let h=l.innerHTML;if(h===void 0){const p=document.createElement("dummy"),g=l.childNodes;p.innerHTML="";for(let m=0;m<g.length;m+=1)p.appendChild(g[m].cloneNode(!0));h=p.innerHTML}const d=c+h+"</svg>";return a+btoa(d)}}var k7={format:"image/png",quality:.92,width:void 0,height:void 0,Canvas:void 0,crossOrigin:void 0},Wr=function(n,e){return n===void 0&&(n=[]),e===void 0&&(e={}),new Promise(function(t){e=Object.assign({},k7,e);var i=e.Canvas?new e.Canvas:window.document.createElement("canvas"),s=e.Image||window.Image,o=n.map(function(l){return new Promise(function(a,c){l.constructor.name!=="Object"&&(l={src:l});var h=new s;h.crossOrigin=e.crossOrigin,h.onerror=function(){return c(new Error("Couldn't load image"))},h.onload=function(){return a(Object.assign({},l,{img:h}))},h.src=l.src})}),r=i.getContext("2d");t(Promise.all(o).then(function(l){var a=function(c){return e[c]||Math.max.apply(Math,l.map(function(h){return h.img[c]}))};return i.width=a("width"),i.height=a("height"),l.forEach(function(c){return r.globalAlpha=c.opacity?c.opacity:1,r.drawImage(c.img,c.x||0,c.y||0)}),e.Canvas&&e.format==="image/jpeg"?new Promise(function(c,h){i.toDataURL(e.format,{quality:e.quality,progressive:!1},function(f,d){if(f){h(f);return}c(d)})}):i.toDataURL(e.format,e.quality)}))})};let Ai;(function(n){n.PNG="image/png",n.JPEG="image/jpeg",n.SVG="image/svg+xml"})(Ai||(Ai={}));let _e;(function(n){n.FILE="file",n.DATA_URL="data_url"})(_e||(_e={}));function S7(n,e,t,i=Date.now()){let s=n.length,o=new Uint8Array(s);for(;s--;)o[s]=n.charCodeAt(s);return new File([o],e,{type:t,lastModified:i})}function C7(n,e,t=Date.now()){const i=n.split(","),o=i[0].match(/:(.*?);/);if(!o)throw new Error("Invalid data url");const r=o[1],l=atob(i[1]);return S7(l,e,r,t)}const Fr=n=>JSON.parse(JSON.stringify(n)),Gr={x:0,y:0,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="},_7={dotSize:(.5+2.5)/2,minWidth:.5,maxWidth:2.5,throttle:16,minDistance:5,backgroundColor:"rgba(0,0,0,0)",penColor:"black",velocityFilterWeight:.7};var O7=u.defineComponent({name:"VueSignaturePad",props:{modelValue:{type:[String,File],required:!1},width:{type:Number,default:250,validator:function(n){return 0<=n&&n<=99999}},height:{type:Number,default:150,validator:function(n){return 0<=n&&n<=99999}},saveType:{type:String,default:Ai.PNG,validator:function(n){const e=Object.values(Ai);return e.includes(n)?!0:(console.warn(`The Image type is incorrect! Supported ones are ${e.join(", ")}.`),!1)}},saveOutput:{type:String,default:_e.DATA_URL,validator:function(n){const e=Object.values(_e);return e.includes(n)?!0:(console.warn(`The save output is incorrect! Supported ones are ${e.join(", ")}.`),!1)}},customStyle:{type:Object,default:()=>({})},options:{type:Object,default:()=>_7},images:{type:Array,default:()=>[]}},setup(n,e){const t=u.reactive({cacheImages:[],onResizeHandler:null,signaturePad:{},signatureData:Gr}),i=u.ref(null),s=u.computed(()=>{if(!i.value)throw new Error('No canvas could be found with this "ref" in the template');return i.value}),o=u.computed(()=>{const S=Array.from(Fr(n.images)),C=Array.from(Fr(t.cacheImages));return[...S,...C]});u.watch(()=>n.options,S=>{Object.keys(S).forEach(C=>{Object.prototype.hasOwnProperty.call(t.signaturePad,C)&&(t.signaturePad[C]=S[C])})});function r(){const S=s.value,C=t.signaturePad.toData(),P=Math.max(window.devicePixelRatio||1,1);S.width=S.offsetWidth*P,S.height=S.offsetHeight*P;const O=S.getContext("2d");O&&O.scale(P,P),t.signaturePad.clear(),t.signatureData=Gr,t.signaturePad.fromData(C)}function l(S=n.saveType,C){if(t.signaturePad.isEmpty()){if(n.saveOutput===_e.FILE)return{isEmpty:!0,file:null,output:_e.FILE};if(n.saveOutput===_e.DATA_URL)return{isEmpty:!0,data:null,output:_e.DATA_URL};throw new Error(`This saveOutput ${n.saveOutput} is not supported`)}const P=t.signaturePad.toDataURL(S,C);if(t.signatureData.src=P,n.saveOutput===_e.FILE)return{isEmpty:!1,file:C7(P,"signature"),output:_e.FILE};if(n.saveOutput===_e.DATA_URL)return{isEmpty:!1,data:P,output:_e.DATA_URL};throw new Error(`This saveOutput ${n.saveOutput} is not supported`)}function a(){const S=t.signaturePad.toData();S&&t.signaturePad.fromData(S.slice(0,-1))}function c(){const S=l();let C=null;S.output===_e.FILE?C=S.file:S.output===_e.DATA_URL&&(C=S.data),e.emit("input",C)}function h(S){return t.signatureData=S,Wr([...n.images,...t.cacheImages,t.signatureData])}function f(S=[]){return t.cacheImages=[...t.cacheImages,...S],Wr([...n.images,...t.cacheImages,t.signatureData])}function d(S,C={},P){t.signaturePad.fromDataURL(S,C,P)}function p(S){t.signaturePad.fromData(S)}function g(S=Ai.PNG,C){return t.signaturePad.toDataURL(S,C)}function m(){return t.signaturePad.toData()}function v(){t.signaturePad.off()}function x(){t.signaturePad.on()}function b(){return t.signaturePad.isEmpty()}function k(){return o.value}function _(){return t.cacheImages=[],t.cacheImages}function y(){t.signaturePad.clear(),e.emit("input",null)}return u.onMounted(()=>{const S=s.value,C=new ds(S,{onEnd:c,...n.options});t.signaturePad=C,t.onResizeHandler=r,window.addEventListener("resize",t.onResizeHandler,!1),r()}),u.onBeforeUnmount(()=>{t.onResizeHandler&&window.removeEventListener("resize",t.onResizeHandler,!1)}),{...u.toRefs(t),signaturePadCanvas:i,propsImagesAndCustomImages:o,resizeCanvas:r,saveSignature:l,undoSignature:a,mergeImageAndSignature:h,addImages:f,fromDataURL:d,toDataURL:g,fromData:p,toData:m,lockSignaturePad:v,openSignaturePad:x,isEmpty:b,getPropImagesAndCacheImages:k,clearCacheImages:_,clearSignature:y}},render(){const{width:n,height:e,customStyle:t}=this,i={width:`${n}px`,height:`${e}px`};return u.h("div",{style:{...i,...t}},[u.h("canvas",{style:{width:"100%",height:"100%"},ref:"signaturePadCanvas"})])}}),M7=(()=>{const n=O7;return n.install=e=>{e.component("SignaturePad",n)},n})();const D7={class:"signature-wrap"},T7={class:"signature-types"},A7={class:"signature-pad"},B7={class:"signature-operates"},P7={__name:"index",props:{signPadInfo:{type:Object,default:()=>{}}},emits:["beforeDestroy","clickSubmitSign"],setup(n,{emit:e}){var a;const t=n;u.ref(t.value);const i=u.ref(),s=u.reactive({loading:!1,avatarLoading:!1,signDialogVisible:!1,ruleFormBase:{},ruleFormPassword:{},signOptions:{penColor:"#000000",minWidth:1,onBegin:()=>{i.value.resizeCanvas()}},signFileList:[],passwordNew2:"",cropperTitle:""}),o=e;u.watch((a=t.signPadInfo)==null?void 0:a.dialogShow,c=>{console.log("dialogShow",c)}),u.watch(s.signOptions,()=>{console.log("signOptions:",s.signOptions),u.nextTick(()=>{var h;const c=(h=i.value)==null?void 0:h.signaturePad;console.log("signaturePadRef:",i.value),c?(c.penColor=s.signOptions.penColor,c.minWidth=s.signOptions.minWidth):console.error("signaturePadRef没有被初始化")})});const r=()=>{o("beforeDestroy")},l=()=>{var f;const{isEmpty:c,data:h}=(f=i.value)==null?void 0:f.saveSignature();c||o("clickSubmitSign",h)};return(c,h)=>{var g,m,v;const f=u.resolveComponent("el-input-number"),d=u.resolveComponent("el-color-picker"),p=u.resolveComponent("el-button");return u.openBlock(),u.createElementBlock(u.Fragment,null,[u.createElementVNode("div",D7,[u.renderSlot(c.$slots,"signatureRender",{},void 0,!0),u.createElementVNode("div",T7,[u.renderSlot(c.$slots,"signatureTypes",{},void 0,!0)])]),u.createVNode(Bi,{class:"signature-dialog",title:(g=n.signPadInfo)==null?void 0:g.dialogTitle,dialogWidth:`${((m=n.signPadInfo)==null?void 0:m.dialogWidth)??30}%`,visible:(v=n.signPadInfo)==null?void 0:v.dialogShow,onBeforeDestroy:r},{default:u.withCtx(()=>[u.createElementVNode("div",A7,[u.createVNode(u.unref(M7),{ref_key:"signaturePadRef",ref:i,options:s.signOptions},null,8,["options"])]),u.createElementVNode("div",B7,[u.createElementVNode("div",null,[h[2]||(h[2]=u.createElementVNode("span",null,"画笔粗细:",-1)),u.createVNode(f,{modelValue:s.signOptions.minWidth,"onUpdate:modelValue":h[0]||(h[0]=x=>s.signOptions.minWidth=x),min:.5,max:2.5,step:.1,size:"small"},null,8,["modelValue"])]),u.createElementVNode("div",null,[h[3]||(h[3]=u.createElementVNode("span",null,"画笔颜色:",-1)),u.createVNode(d,{modelValue:s.signOptions.penColor,"onUpdate:modelValue":h[1]||(h[1]=x=>s.signOptions.penColor=x),"color-format":"hex",size:"default"},null,8,["modelValue"])])])]),footer:u.withCtx(()=>[u.createVNode(p,{onClick:r},{default:u.withCtx(()=>h[4]||(h[4]=[u.createTextVNode("取消")])),_:1,__:[4]}),u.createVNode(p,{type:"primary",onClick:l},{default:u.withCtx(()=>h[5]||(h[5]=[u.createTextVNode("确认")])),_:1,__:[5]})]),_:1},8,["title","dialogWidth","visible"])],64)}}},Xc=ce._export_sfc(P7,[["__scopeId","data-v-e409734b"]]),Qc=u.defineComponent({__name:"index",setup(n){const e=u.ref(null),t=async i=>{var s;i&&(await u.nextTick(),(s=e.value)==null||s.update())};return(i,s)=>{const o=u.resolveComponent("el-dropdown-menu"),r=u.resolveComponent("el-dropdown");return u.openBlock(),u.createBlock(r,{onVisibleChange:t},{dropdown:u.withCtx(()=>[u.createVNode(o,null,{default:u.withCtx(()=>[u.renderSlot(i.$slots,"dropMenu")]),_:3})]),default:u.withCtx(()=>[u.createElementVNode("div",null,[u.renderSlot(i.$slots,"dropTitle")])]),_:3})}}}),E7={class:"file-preview-container"},V7={class:"container-left"},z7=["title","onClick"],L7={class:"item-right"},N7={class:"container-right"},R7=u.defineComponent({__name:"index",props:{fileDataList:{},index:{}},emits:["destroy"],setup(n,{emit:e}){const t=e,i=n,s=u.ref();u.watch(()=>i.fileDataList,()=>{s.value=i.fileDataList},{deep:!0,immediate:!0});const o=u.ref(i.index||0),r=u.computed(()=>{const f=s==null?void 0:s.value,d=o.value;return f==null?void 0:f[d]}),l=u.computed(()=>{const f=r==null?void 0:r.value;return f==null?void 0:f.name}),a=u.computed(()=>{const f=r==null?void 0:r.value;return f==null?void 0:f.blobUrl}),c=f=>{o.value=f},h=f=>{const d=document.createElement("a");d.href=f.blobUrl,d.download=f.name,d.style.display="none",document.body.appendChild(d),d.click(),setTimeout(()=>{document.body.removeChild(d)},100)};return u.onUnmounted(()=>{t("destroy")}),(f,d)=>{const p=u.resolveComponent("el-icon");return u.openBlock(),u.createElementBlock("div",E7,[u.createElementVNode("div",V7,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(s.value,(g,m)=>(u.openBlock(),u.createElementBlock("div",{key:m,class:u.normalizeClass(["left-item",{"active-item":m==o.value}])},[u.createElementVNode("div",{class:"item-name",title:g.name,onClick:v=>c(m)},u.toDisplayString(g==null?void 0:g.name),9,z7),u.createElementVNode("div",L7,[u.createVNode(p,{class:"download-icon",onClick:v=>h(g)},{default:u.withCtx(()=>[u.createVNode(u.unref(ee.download_default))]),_:2},1032,["onClick"])])],2))),128))]),u.createElementVNode("div",N7,[u.createVNode(Ro,{class:"right-item",fileName:l.value,blobUrl:a.value},null,8,["fileName","blobUrl"])])])}}}),Jc=ce._export_sfc(R7,[["__scopeId","data-v-460d0fb4"]]),I7={class:"file-preview-dialog-header"},H7={class:"header-left"},$7={class:"header-right"},W7={class:"file-preview-dialog-body"},F7=u.defineComponent({__name:"index",props:{fileDataList:{},index:{default:0},customTitle:{},isRevokeBlob:{type:Boolean,default:!0}},emits:["destroy"],setup(n,{emit:e}){const t=e,i=n,s=u.ref(!0),o=u.computed(()=>i.fileDataList),r=u.computed(()=>i.index),l=u.computed(()=>i.isRevokeBlob),a=u.ref(!1),c=()=>{const d=a.value;a.value=!d},h=()=>{f(),s.value=!1},f=()=>{t("destroy")};return u.onUnmounted(()=>{t("destroy");const d=o.value;l.value&&(d==null||d.forEach(g=>{const{blobUrl:m}=g;URL.revokeObjectURL(m)}))}),(d,p)=>{const g=u.resolveComponent("el-icon");return u.openBlock(),u.createBlock(Bi,{class:"file-preview-dialog",visible:s.value,onBeforeDestroy:f,showClose:!1,fullScreen:a.value},{header:u.withCtx(()=>[u.createElementVNode("div",I7,[u.createElementVNode("div",H7,u.toDisplayString(d.customTitle),1),u.createElementVNode("div",$7,[u.createVNode(g,null,{default:u.withCtx(()=>[u.createVNode(u.unref(ee.full_screen_default),{onClick:c})]),_:1}),u.createVNode(g,null,{default:u.withCtx(()=>[u.createVNode(u.unref(ee.close_default),{onClick:h})]),_:1})])])]),default:u.withCtx(()=>{var m;return[u.createElementVNode("div",W7,[p[0]||(p[0]=u.createElementVNode("div",{class:"file-preview-header"},null,-1)),(u.openBlock(),u.createBlock(Jc,{class:"file-preview-content",fileDataList:o.value,key:(m=o.value)==null?void 0:m.length,index:r.value},null,8,["fileDataList","index"]))])]}),_:1},8,["visible","fullScreen"])}}}),Zc=ce._export_sfc(F7,[["__scopeId","data-v-18f196f0"]]),G7={AVATARUPLOAD:eh._sfc_main,SIGNATURE:Xc,SWITCH:jr,INPUT:qr,PASSWORD:bu,COLOR:yu,NUMBER:ku,FORM:Au,RADIO:Kr,CHECKBOX:Xr,TAB:Bu,TABLE:ju,SELECT:Yu,MULTISELECT:Xu,SSMenu:Jr,DATE:ef,DATETIME:tf,TEXTAREA:sf,UPLOAD:b7,INPUTPOPOVER:xu,CASCADER:Ku,BUTTON:Rn,DROPDOWN:Qc,FILEPREVIEW:Ro,FILEPREVIEWCONTAINER:Jc,FILEPREVIEWDIALOG:Zc};function Ms(n){return G7[n==null?void 0:n.toUpperCase()]||null}const j7=["onDblclick"],q7={key:1,class:"tabs-label"},U7={__name:"index",props:{tabsContents:{type:Array,default:()=>[]},tabPosition:{type:String,default:"top"}},emits:["dblClick","clickTrigger","changeTrigger"],setup(n,{emit:e}){const t=n,i=e,s=u.ref([]),o=u.ref(""),r=h=>Ms(h),l=h=>{i("dblClick",h)},a=h=>{i("clickTrigger",h)},c=h=>{i("changeTrigger",h)};return u.watch(()=>t.tabsContents,()=>{var h;s.value=ee.cloneDeep(t.tabsContents),o.value=(h=s.value[0])==null?void 0:h.value},{deep:!0,immediate:!0}),(h,f)=>{const d=u.resolveComponent("el-tab-pane"),p=u.resolveComponent("el-tabs");return u.openBlock(),u.createBlock(p,{type:"card",modelValue:o.value,"onUpdate:modelValue":f[0]||(f[0]=g=>o.value=g),"tab-position":t==null?void 0:t.tabPosition},{default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(s.value,(g,m)=>(u.openBlock(),u.createBlock(d,{key:m,name:g==null?void 0:g.value},{label:u.withCtx(()=>{var v;return[g!=null&&g.label?(u.openBlock(),u.createElementBlock("div",{key:0,onDblclick:x=>l(g)},u.toDisplayString(g==null?void 0:g.label),41,j7)):u.createCommentVNode("",!0),g!=null&&g.contents&&((v=g==null?void 0:g.contents)==null?void 0:v.length)>0?(u.openBlock(),u.createElementBlock("div",q7,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(g==null?void 0:g.contents,(x,b)=>(u.openBlock(),u.createElementBlock("div",{key:b,class:"tabs-children"},[x!=null&&x.value||(x==null?void 0:x.value)===""?(u.openBlock(),u.createBlock(u.resolveDynamicComponent(r(x==null?void 0:x.type)),{key:0,modelValue:x.value,"onUpdate:modelValue":k=>x.value=k,content:(x==null?void 0:x.contents)??[]},null,8,["modelValue","onUpdate:modelValue","content"])):u.createCommentVNode("",!0)]))),128))])):u.createCommentVNode("",!0),u.renderSlot(h.$slots,`${(g==null?void 0:g.value)??""}_header`,{},void 0,!0)]}),default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(g==null?void 0:g.children,(v,x)=>(u.openBlock(),u.createElementBlock("div",{key:x,class:"tabs-contents"},[u.renderSlot(h.$slots,`${(v==null?void 0:v.value)??""}_operateButtons`,{},void 0,!0),v!=null&&v.value||(v==null?void 0:v.value)===""?(u.openBlock(),u.createBlock(u.resolveDynamicComponent(r(v==null?void 0:v.type)),{key:0,modelValue:v.value,"onUpdate:modelValue":b=>v.value=b,onClickTrigger:a,onChangeTrigger:c,content:v==null?void 0:v.content},u.createSlots({_:2},[name?{name,fn:u.withCtx(b=>[u.renderSlot(h.$slots,name,u.mergeProps({ref_for:!0},b||{}),void 0,!0)]),key:"0"}:void 0]),1064,["modelValue","onUpdate:modelValue","content"])):u.createCommentVNode("",!0)]))),128))]),_:2},1032,["name"]))),128))]),_:3},8,["modelValue","tab-position"])}}},Ho=ce._export_sfc(U7,[["__scopeId","data-v-0f027c8c"]]),Y7=Object.freeze(Object.defineProperty({__proto__:null,default:Ho},Symbol.toStringTag,{value:"Module"}));exports.Signature=Xc;exports._sfc_main=Qc;exports._sfc_main$1=Rn;exports._sfc_main$2=qr;exports._sfc_main$3=Kr;exports._sfc_main$4=jr;exports._sfc_main$5=Xr;exports.downloadAvatarApi=Zr;exports.getComponent=Ms;exports.getSvgIcons=Ur;exports.index=Zu;exports.index$1=Y7;exports.ssDialog=Bi;exports.ssFilePreview=Zc;exports.ssForm=Yr;exports.ssTab=Ho;exports.ssTable=Qr;exports.uploadAvatarApi=af;
|
|
15
|
+
*/class fs{constructor(e,t,i){this.x=e,this.y=t,this.time=i||Date.now()}distanceTo(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))}equals(e){return this.x===e.x&&this.y===e.y&&this.time===e.time}velocityFrom(e){return this.time!==e.time?this.distanceTo(e)/(this.time-e.time):0}}class Io{constructor(e,t,i,s,o,r){this.startPoint=e,this.control2=t,this.control1=i,this.endPoint=s,this.startWidth=o,this.endWidth=r}static fromPoints(e,t){const i=this.calculateControlPoints(e[0],e[1],e[2]).c2,s=this.calculateControlPoints(e[1],e[2],e[3]).c1;return new Io(e[1],i,s,e[2],t.start,t.end)}static calculateControlPoints(e,t,i){const s=e.x-t.x,o=e.y-t.y,r=t.x-i.x,l=t.y-i.y,a={x:(e.x+t.x)/2,y:(e.y+t.y)/2},c={x:(t.x+i.x)/2,y:(t.y+i.y)/2},h=Math.sqrt(s*s+o*o),f=Math.sqrt(r*r+l*l),d=a.x-c.x,p=a.y-c.y,g=f/(h+f),m={x:c.x+d*g,y:c.y+p*g},v=t.x-m.x,b=t.y-m.y;return{c1:new fs(a.x+v,a.y+b),c2:new fs(c.x+v,c.y+b)}}length(){let t=0,i,s;for(let o=0;o<=10;o+=1){const r=o/10,l=this.point(r,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),a=this.point(r,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(o>0){const c=l-i,h=a-s;t+=Math.sqrt(c*c+h*h)}i=l,s=a}return t}point(e,t,i,s,o){return t*(1-e)*(1-e)*(1-e)+3*i*(1-e)*(1-e)*e+3*s*(1-e)*e*e+o*e*e*e}}function y7(n,e=250){let t=0,i=null,s,o,r;const l=()=>{t=Date.now(),i=null,s=n.apply(o,r),i||(o=null,r=[])};return function(...c){const h=Date.now(),f=e-(h-t);return o=this,r=c,f<=0||f>e?(i&&(clearTimeout(i),i=null),t=h,s=n.apply(o,r),i||(o=null,r=[])):i||(i=window.setTimeout(l,f)),s}}class ds{constructor(e,t={}){this.canvas=e,this.options=t,this._handleMouseDown=i=>{i.which===1&&(this._mouseButtonDown=!0,this._strokeBegin(i))},this._handleMouseMove=i=>{this._mouseButtonDown&&this._strokeMoveUpdate(i)},this._handleMouseUp=i=>{i.which===1&&this._mouseButtonDown&&(this._mouseButtonDown=!1,this._strokeEnd(i))},this._handleTouchStart=i=>{if(i.preventDefault(),i.targetTouches.length===1){const s=i.changedTouches[0];this._strokeBegin(s)}},this._handleTouchMove=i=>{i.preventDefault();const s=i.targetTouches[0];this._strokeMoveUpdate(s)},this._handleTouchEnd=i=>{if(i.target===this.canvas){i.preventDefault();const o=i.changedTouches[0];this._strokeEnd(o)}},this.velocityFilterWeight=t.velocityFilterWeight||.7,this.minWidth=t.minWidth||.5,this.maxWidth=t.maxWidth||2.5,this.throttle="throttle"in t?t.throttle:16,this.minDistance="minDistance"in t?t.minDistance:5,this.dotSize=t.dotSize||function(){return(this.minWidth+this.maxWidth)/2},this.penColor=t.penColor||"black",this.backgroundColor=t.backgroundColor||"rgba(0,0,0,0)",this.onBegin=t.onBegin,this.onEnd=t.onEnd,this._strokeMoveUpdate=this.throttle?y7(ds.prototype._strokeUpdate,this.throttle):ds.prototype._strokeUpdate,this._ctx=e.getContext("2d"),this.clear(),this.on()}clear(){const{_ctx:e,canvas:t}=this;e.fillStyle=this.backgroundColor,e.clearRect(0,0,t.width,t.height),e.fillRect(0,0,t.width,t.height),this._data=[],this._reset(),this._isEmpty=!0}fromDataURL(e,t={},i){const s=new Image,o=t.ratio||window.devicePixelRatio||1,r=t.width||this.canvas.width/o,l=t.height||this.canvas.height/o;this._reset(),s.onload=()=>{this._ctx.drawImage(s,0,0,r,l),i&&i()},s.onerror=a=>{i&&i(a)},s.src=e,this._isEmpty=!1}toDataURL(e="image/png",t){switch(e){case"image/svg+xml":return this._toSVG();default:return this.canvas.toDataURL(e,t)}}on(){this.canvas.style.touchAction="none",this.canvas.style.msTouchAction="none",window.PointerEvent?this._handlePointerEvents():(this._handleMouseEvents(),"ontouchstart"in window&&this._handleTouchEvents())}off(){this.canvas.style.touchAction="auto",this.canvas.style.msTouchAction="auto",this.canvas.removeEventListener("pointerdown",this._handleMouseDown),this.canvas.removeEventListener("pointermove",this._handleMouseMove),document.removeEventListener("pointerup",this._handleMouseUp),this.canvas.removeEventListener("mousedown",this._handleMouseDown),this.canvas.removeEventListener("mousemove",this._handleMouseMove),document.removeEventListener("mouseup",this._handleMouseUp),this.canvas.removeEventListener("touchstart",this._handleTouchStart),this.canvas.removeEventListener("touchmove",this._handleTouchMove),this.canvas.removeEventListener("touchend",this._handleTouchEnd)}isEmpty(){return this._isEmpty}fromData(e){this.clear(),this._fromData(e,({color:t,curve:i})=>this._drawCurve({color:t,curve:i}),({color:t,point:i})=>this._drawDot({color:t,point:i})),this._data=e}toData(){return this._data}_strokeBegin(e){const t={color:this.penColor,points:[]};typeof this.onBegin=="function"&&this.onBegin(e),this._data.push(t),this._reset(),this._strokeUpdate(e)}_strokeUpdate(e){if(this._data.length===0){this._strokeBegin(e);return}const t=e.clientX,i=e.clientY,s=this._createPoint(t,i),o=this._data[this._data.length-1],r=o.points,l=r.length>0&&r[r.length-1],a=l?s.distanceTo(l)<=this.minDistance:!1,c=o.color;if(!l||!(l&&a)){const h=this._addPoint(s);l?h&&this._drawCurve({color:c,curve:h}):this._drawDot({color:c,point:s}),r.push({time:s.time,x:s.x,y:s.y})}}_strokeEnd(e){this._strokeUpdate(e),typeof this.onEnd=="function"&&this.onEnd(e)}_handlePointerEvents(){this._mouseButtonDown=!1,this.canvas.addEventListener("pointerdown",this._handleMouseDown),this.canvas.addEventListener("pointermove",this._handleMouseMove),document.addEventListener("pointerup",this._handleMouseUp)}_handleMouseEvents(){this._mouseButtonDown=!1,this.canvas.addEventListener("mousedown",this._handleMouseDown),this.canvas.addEventListener("mousemove",this._handleMouseMove),document.addEventListener("mouseup",this._handleMouseUp)}_handleTouchEvents(){this.canvas.addEventListener("touchstart",this._handleTouchStart),this.canvas.addEventListener("touchmove",this._handleTouchMove),this.canvas.addEventListener("touchend",this._handleTouchEnd)}_reset(){this._lastPoints=[],this._lastVelocity=0,this._lastWidth=(this.minWidth+this.maxWidth)/2,this._ctx.fillStyle=this.penColor}_createPoint(e,t){const i=this.canvas.getBoundingClientRect();return new fs(e-i.left,t-i.top,new Date().getTime())}_addPoint(e){const{_lastPoints:t}=this;if(t.push(e),t.length>2){t.length===3&&t.unshift(t[0]);const i=this._calculateCurveWidths(t[1],t[2]),s=Io.fromPoints(t,i);return t.shift(),s}return null}_calculateCurveWidths(e,t){const i=this.velocityFilterWeight*t.velocityFrom(e)+(1-this.velocityFilterWeight)*this._lastVelocity,s=this._strokeWidth(i),o={end:s,start:this._lastWidth};return this._lastVelocity=i,this._lastWidth=s,o}_strokeWidth(e){return Math.max(this.maxWidth/(e+1),this.minWidth)}_drawCurveSegment(e,t,i){const s=this._ctx;s.moveTo(e,t),s.arc(e,t,i,0,2*Math.PI,!1),this._isEmpty=!1}_drawCurve({color:e,curve:t}){const i=this._ctx,s=t.endWidth-t.startWidth,o=Math.floor(t.length())*2;i.beginPath(),i.fillStyle=e;for(let r=0;r<o;r+=1){const l=r/o,a=l*l,c=a*l,h=1-l,f=h*h,d=f*h;let p=d*t.startPoint.x;p+=3*f*l*t.control1.x,p+=3*h*a*t.control2.x,p+=c*t.endPoint.x;let g=d*t.startPoint.y;g+=3*f*l*t.control1.y,g+=3*h*a*t.control2.y,g+=c*t.endPoint.y;const m=Math.min(t.startWidth+c*s,this.maxWidth);this._drawCurveSegment(p,g,m)}i.closePath(),i.fill()}_drawDot({color:e,point:t}){const i=this._ctx,s=typeof this.dotSize=="function"?this.dotSize():this.dotSize;i.beginPath(),this._drawCurveSegment(t.x,t.y,s),i.closePath(),i.fillStyle=e,i.fill()}_fromData(e,t,i){for(const s of e){const{color:o,points:r}=s;if(r.length>1)for(let l=0;l<r.length;l+=1){const a=r[l],c=new fs(a.x,a.y,a.time);this.penColor=o,l===0&&this._reset();const h=this._addPoint(c);h&&t({color:o,curve:h})}else this._reset(),i({color:o,point:r[0]})}}_toSVG(){const e=this._data,t=Math.max(window.devicePixelRatio||1,1),i=0,s=0,o=this.canvas.width/t,r=this.canvas.height/t,l=document.createElementNS("http://www.w3.org/2000/svg","svg");l.setAttribute("width",this.canvas.width.toString()),l.setAttribute("height",this.canvas.height.toString()),this._fromData(e,({color:p,curve:g})=>{const m=document.createElement("path");if(!isNaN(g.control1.x)&&!isNaN(g.control1.y)&&!isNaN(g.control2.x)&&!isNaN(g.control2.y)){const v=`M ${g.startPoint.x.toFixed(3)},${g.startPoint.y.toFixed(3)} C ${g.control1.x.toFixed(3)},${g.control1.y.toFixed(3)} ${g.control2.x.toFixed(3)},${g.control2.y.toFixed(3)} ${g.endPoint.x.toFixed(3)},${g.endPoint.y.toFixed(3)}`;m.setAttribute("d",v),m.setAttribute("stroke-width",(g.endWidth*2.25).toFixed(3)),m.setAttribute("stroke",p),m.setAttribute("fill","none"),m.setAttribute("stroke-linecap","round"),l.appendChild(m)}},({color:p,point:g})=>{const m=document.createElement("circle"),v=typeof this.dotSize=="function"?this.dotSize():this.dotSize;m.setAttribute("r",v.toString()),m.setAttribute("cx",g.x.toString()),m.setAttribute("cy",g.y.toString()),m.setAttribute("fill",p),l.appendChild(m)});const a="data:image/svg+xml;base64,",c=`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="${i} ${s} ${o} ${r}" width="${o}" height="${r}">`;let h=l.innerHTML;if(h===void 0){const p=document.createElement("dummy"),g=l.childNodes;p.innerHTML="";for(let m=0;m<g.length;m+=1)p.appendChild(g[m].cloneNode(!0));h=p.innerHTML}const d=c+h+"</svg>";return a+btoa(d)}}var k7={format:"image/png",quality:.92,width:void 0,height:void 0,Canvas:void 0,crossOrigin:void 0},Wr=function(n,e){return n===void 0&&(n=[]),e===void 0&&(e={}),new Promise(function(t){e=Object.assign({},k7,e);var i=e.Canvas?new e.Canvas:window.document.createElement("canvas"),s=e.Image||window.Image,o=n.map(function(l){return new Promise(function(a,c){l.constructor.name!=="Object"&&(l={src:l});var h=new s;h.crossOrigin=e.crossOrigin,h.onerror=function(){return c(new Error("Couldn't load image"))},h.onload=function(){return a(Object.assign({},l,{img:h}))},h.src=l.src})}),r=i.getContext("2d");t(Promise.all(o).then(function(l){var a=function(c){return e[c]||Math.max.apply(Math,l.map(function(h){return h.img[c]}))};return i.width=a("width"),i.height=a("height"),l.forEach(function(c){return r.globalAlpha=c.opacity?c.opacity:1,r.drawImage(c.img,c.x||0,c.y||0)}),e.Canvas&&e.format==="image/jpeg"?new Promise(function(c,h){i.toDataURL(e.format,{quality:e.quality,progressive:!1},function(f,d){if(f){h(f);return}c(d)})}):i.toDataURL(e.format,e.quality)}))})};let Ai;(function(n){n.PNG="image/png",n.JPEG="image/jpeg",n.SVG="image/svg+xml"})(Ai||(Ai={}));let _e;(function(n){n.FILE="file",n.DATA_URL="data_url"})(_e||(_e={}));function S7(n,e,t,i=Date.now()){let s=n.length,o=new Uint8Array(s);for(;s--;)o[s]=n.charCodeAt(s);return new File([o],e,{type:t,lastModified:i})}function C7(n,e,t=Date.now()){const i=n.split(","),o=i[0].match(/:(.*?);/);if(!o)throw new Error("Invalid data url");const r=o[1],l=atob(i[1]);return S7(l,e,r,t)}const Fr=n=>JSON.parse(JSON.stringify(n)),Gr={x:0,y:0,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="},_7={dotSize:(.5+2.5)/2,minWidth:.5,maxWidth:2.5,throttle:16,minDistance:5,backgroundColor:"rgba(0,0,0,0)",penColor:"black",velocityFilterWeight:.7};var O7=u.defineComponent({name:"VueSignaturePad",props:{modelValue:{type:[String,File],required:!1},width:{type:Number,default:250,validator:function(n){return 0<=n&&n<=99999}},height:{type:Number,default:150,validator:function(n){return 0<=n&&n<=99999}},saveType:{type:String,default:Ai.PNG,validator:function(n){const e=Object.values(Ai);return e.includes(n)?!0:(console.warn(`The Image type is incorrect! Supported ones are ${e.join(", ")}.`),!1)}},saveOutput:{type:String,default:_e.DATA_URL,validator:function(n){const e=Object.values(_e);return e.includes(n)?!0:(console.warn(`The save output is incorrect! Supported ones are ${e.join(", ")}.`),!1)}},customStyle:{type:Object,default:()=>({})},options:{type:Object,default:()=>_7},images:{type:Array,default:()=>[]}},setup(n,e){const t=u.reactive({cacheImages:[],onResizeHandler:null,signaturePad:{},signatureData:Gr}),i=u.ref(null),s=u.computed(()=>{if(!i.value)throw new Error('No canvas could be found with this "ref" in the template');return i.value}),o=u.computed(()=>{const S=Array.from(Fr(n.images)),C=Array.from(Fr(t.cacheImages));return[...S,...C]});u.watch(()=>n.options,S=>{Object.keys(S).forEach(C=>{Object.prototype.hasOwnProperty.call(t.signaturePad,C)&&(t.signaturePad[C]=S[C])})});function r(){const S=s.value,C=t.signaturePad.toData(),P=Math.max(window.devicePixelRatio||1,1);S.width=S.offsetWidth*P,S.height=S.offsetHeight*P;const O=S.getContext("2d");O&&O.scale(P,P),t.signaturePad.clear(),t.signatureData=Gr,t.signaturePad.fromData(C)}function l(S=n.saveType,C){if(t.signaturePad.isEmpty()){if(n.saveOutput===_e.FILE)return{isEmpty:!0,file:null,output:_e.FILE};if(n.saveOutput===_e.DATA_URL)return{isEmpty:!0,data:null,output:_e.DATA_URL};throw new Error(`This saveOutput ${n.saveOutput} is not supported`)}const P=t.signaturePad.toDataURL(S,C);if(t.signatureData.src=P,n.saveOutput===_e.FILE)return{isEmpty:!1,file:C7(P,"signature"),output:_e.FILE};if(n.saveOutput===_e.DATA_URL)return{isEmpty:!1,data:P,output:_e.DATA_URL};throw new Error(`This saveOutput ${n.saveOutput} is not supported`)}function a(){const S=t.signaturePad.toData();S&&t.signaturePad.fromData(S.slice(0,-1))}function c(){const S=l();let C=null;S.output===_e.FILE?C=S.file:S.output===_e.DATA_URL&&(C=S.data),e.emit("input",C)}function h(S){return t.signatureData=S,Wr([...n.images,...t.cacheImages,t.signatureData])}function f(S=[]){return t.cacheImages=[...t.cacheImages,...S],Wr([...n.images,...t.cacheImages,t.signatureData])}function d(S,C={},P){t.signaturePad.fromDataURL(S,C,P)}function p(S){t.signaturePad.fromData(S)}function g(S=Ai.PNG,C){return t.signaturePad.toDataURL(S,C)}function m(){return t.signaturePad.toData()}function v(){t.signaturePad.off()}function b(){t.signaturePad.on()}function x(){return t.signaturePad.isEmpty()}function k(){return o.value}function _(){return t.cacheImages=[],t.cacheImages}function y(){t.signaturePad.clear(),e.emit("input",null)}return u.onMounted(()=>{const S=s.value,C=new ds(S,{onEnd:c,...n.options});t.signaturePad=C,t.onResizeHandler=r,window.addEventListener("resize",t.onResizeHandler,!1),r()}),u.onBeforeUnmount(()=>{t.onResizeHandler&&window.removeEventListener("resize",t.onResizeHandler,!1)}),{...u.toRefs(t),signaturePadCanvas:i,propsImagesAndCustomImages:o,resizeCanvas:r,saveSignature:l,undoSignature:a,mergeImageAndSignature:h,addImages:f,fromDataURL:d,toDataURL:g,fromData:p,toData:m,lockSignaturePad:v,openSignaturePad:b,isEmpty:x,getPropImagesAndCacheImages:k,clearCacheImages:_,clearSignature:y}},render(){const{width:n,height:e,customStyle:t}=this,i={width:`${n}px`,height:`${e}px`};return u.h("div",{style:{...i,...t}},[u.h("canvas",{style:{width:"100%",height:"100%"},ref:"signaturePadCanvas"})])}}),M7=(()=>{const n=O7;return n.install=e=>{e.component("SignaturePad",n)},n})();const D7={class:"signature-wrap"},T7={class:"signature-types"},A7={class:"signature-pad"},B7={class:"signature-operates"},P7={__name:"index",props:{signPadInfo:{type:Object,default:()=>{}}},emits:["beforeDestroy","clickSubmitSign"],setup(n,{emit:e}){var a;const t=n;u.ref(t.value);const i=u.ref(),s=u.reactive({loading:!1,avatarLoading:!1,signDialogVisible:!1,ruleFormBase:{},ruleFormPassword:{},signOptions:{penColor:"#000000",minWidth:1,onBegin:()=>{i.value.resizeCanvas()}},signFileList:[],passwordNew2:"",cropperTitle:""}),o=e;u.watch((a=t.signPadInfo)==null?void 0:a.dialogShow,c=>{console.log("dialogShow",c)}),u.watch(s.signOptions,()=>{console.log("signOptions:",s.signOptions),u.nextTick(()=>{var h;const c=(h=i.value)==null?void 0:h.signaturePad;console.log("signaturePadRef:",i.value),c?(c.penColor=s.signOptions.penColor,c.minWidth=s.signOptions.minWidth):console.error("signaturePadRef没有被初始化")})});const r=()=>{o("beforeDestroy")},l=()=>{var f;const{isEmpty:c,data:h}=(f=i.value)==null?void 0:f.saveSignature();c||o("clickSubmitSign",h)};return(c,h)=>{var g,m,v;const f=u.resolveComponent("el-input-number"),d=u.resolveComponent("el-color-picker"),p=u.resolveComponent("el-button");return u.openBlock(),u.createElementBlock(u.Fragment,null,[u.createElementVNode("div",D7,[u.renderSlot(c.$slots,"signatureRender",{},void 0,!0),u.createElementVNode("div",T7,[u.renderSlot(c.$slots,"signatureTypes",{},void 0,!0)])]),u.createVNode(Bi,{class:"signature-dialog",title:(g=n.signPadInfo)==null?void 0:g.dialogTitle,dialogWidth:`${((m=n.signPadInfo)==null?void 0:m.dialogWidth)??30}%`,visible:(v=n.signPadInfo)==null?void 0:v.dialogShow,onBeforeDestroy:r},{default:u.withCtx(()=>[u.createElementVNode("div",A7,[u.createVNode(u.unref(M7),{ref_key:"signaturePadRef",ref:i,options:s.signOptions},null,8,["options"])]),u.createElementVNode("div",B7,[u.createElementVNode("div",null,[h[2]||(h[2]=u.createElementVNode("span",null,"画笔粗细:",-1)),u.createVNode(f,{modelValue:s.signOptions.minWidth,"onUpdate:modelValue":h[0]||(h[0]=b=>s.signOptions.minWidth=b),min:.5,max:2.5,step:.1,size:"small"},null,8,["modelValue"])]),u.createElementVNode("div",null,[h[3]||(h[3]=u.createElementVNode("span",null,"画笔颜色:",-1)),u.createVNode(d,{modelValue:s.signOptions.penColor,"onUpdate:modelValue":h[1]||(h[1]=b=>s.signOptions.penColor=b),"color-format":"hex",size:"default"},null,8,["modelValue"])])])]),footer:u.withCtx(()=>[u.createVNode(p,{onClick:r},{default:u.withCtx(()=>h[4]||(h[4]=[u.createTextVNode("取消")])),_:1,__:[4]}),u.createVNode(p,{type:"primary",onClick:l},{default:u.withCtx(()=>h[5]||(h[5]=[u.createTextVNode("确认")])),_:1,__:[5]})]),_:1},8,["title","dialogWidth","visible"])],64)}}},Xc=ce._export_sfc(P7,[["__scopeId","data-v-e409734b"]]),Qc=u.defineComponent({__name:"index",setup(n){const e=u.ref(null),t=async i=>{var s;i&&(await u.nextTick(),(s=e.value)==null||s.update())};return(i,s)=>{const o=u.resolveComponent("el-dropdown-menu"),r=u.resolveComponent("el-dropdown");return u.openBlock(),u.createBlock(r,{onVisibleChange:t},{dropdown:u.withCtx(()=>[u.createVNode(o,null,{default:u.withCtx(()=>[u.renderSlot(i.$slots,"dropMenu")]),_:3})]),default:u.withCtx(()=>[u.createElementVNode("div",null,[u.renderSlot(i.$slots,"dropTitle")])]),_:3})}}}),E7={class:"file-preview-container"},V7={class:"container-left"},z7=["title","onClick"],L7={class:"item-right"},R7={class:"container-right"},N7=u.defineComponent({__name:"index",props:{fileDataList:{},index:{}},emits:["destroy"],setup(n,{emit:e}){const t=e,i=n,s=u.ref();u.watch(()=>i.fileDataList,()=>{s.value=i.fileDataList},{deep:!0,immediate:!0});const o=u.ref(i.index||0),r=u.computed(()=>{const f=s==null?void 0:s.value,d=o.value;return f==null?void 0:f[d]}),l=u.computed(()=>{const f=r==null?void 0:r.value;return f==null?void 0:f.name}),a=u.computed(()=>{const f=r==null?void 0:r.value;return f==null?void 0:f.blobUrl}),c=f=>{o.value=f},h=f=>{const d=document.createElement("a");d.href=f.blobUrl,d.download=f.name,d.style.display="none",document.body.appendChild(d),d.click(),setTimeout(()=>{document.body.removeChild(d)},100)};return u.onUnmounted(()=>{t("destroy")}),(f,d)=>{const p=u.resolveComponent("el-icon");return u.openBlock(),u.createElementBlock("div",E7,[u.createElementVNode("div",V7,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(s.value,(g,m)=>(u.openBlock(),u.createElementBlock("div",{key:m,class:u.normalizeClass(["left-item",{"active-item":m==o.value}])},[u.createElementVNode("div",{class:"item-name",title:g.name,onClick:v=>c(m)},u.toDisplayString(g==null?void 0:g.name),9,z7),u.createElementVNode("div",L7,[u.createVNode(p,{class:"download-icon",onClick:v=>h(g)},{default:u.withCtx(()=>[u.createVNode(u.unref(ee.download_default))]),_:2},1032,["onClick"])])],2))),128))]),u.createElementVNode("div",R7,[u.createVNode(No,{class:"right-item",fileName:l.value,blobUrl:a.value},null,8,["fileName","blobUrl"])])])}}}),Jc=ce._export_sfc(N7,[["__scopeId","data-v-460d0fb4"]]),I7={class:"file-preview-dialog-header"},H7={class:"header-left"},$7={class:"header-right"},W7={class:"file-preview-dialog-body"},F7=u.defineComponent({__name:"index",props:{fileDataList:{},index:{default:0},customTitle:{},isRevokeBlob:{type:Boolean,default:!0}},emits:["destroy"],setup(n,{emit:e}){const t=e,i=n,s=u.ref(!0),o=u.computed(()=>i.fileDataList),r=u.computed(()=>i.index),l=u.computed(()=>i.isRevokeBlob),a=u.ref(!1),c=()=>{const d=a.value;a.value=!d},h=()=>{f(),s.value=!1},f=()=>{t("destroy")};return u.onUnmounted(()=>{t("destroy");const d=o.value;l.value&&(d==null||d.forEach(g=>{const{blobUrl:m}=g;URL.revokeObjectURL(m)}))}),(d,p)=>{const g=u.resolveComponent("el-icon");return u.openBlock(),u.createBlock(Bi,{class:"file-preview-dialog",visible:s.value,onBeforeDestroy:f,showClose:!1,fullScreen:a.value},{header:u.withCtx(()=>[u.createElementVNode("div",I7,[u.createElementVNode("div",H7,u.toDisplayString(d.customTitle),1),u.createElementVNode("div",$7,[u.createVNode(g,null,{default:u.withCtx(()=>[u.createVNode(u.unref(ee.full_screen_default),{onClick:c})]),_:1}),u.createVNode(g,null,{default:u.withCtx(()=>[u.createVNode(u.unref(ee.close_default),{onClick:h})]),_:1})])])]),default:u.withCtx(()=>{var m;return[u.createElementVNode("div",W7,[p[0]||(p[0]=u.createElementVNode("div",{class:"file-preview-header"},null,-1)),(u.openBlock(),u.createBlock(Jc,{class:"file-preview-content",fileDataList:o.value,key:(m=o.value)==null?void 0:m.length,index:r.value},null,8,["fileDataList","index"]))])]}),_:1},8,["visible","fullScreen"])}}}),Zc=ce._export_sfc(F7,[["__scopeId","data-v-18f196f0"]]),G7={AVATARUPLOAD:eh._sfc_main,SIGNATURE:Xc,SWITCH:jr,INPUT:qr,PASSWORD:xu,COLOR:yu,NUMBER:ku,FORM:Au,RADIO:Kr,CHECKBOX:Xr,TAB:Bu,TABLE:ju,SELECT:Yu,MULTISELECT:Xu,SSMenu:Jr,DATE:ef,DATETIME:tf,TEXTAREA:sf,UPLOAD:x7,INPUTPOPOVER:bu,CASCADER:Ku,BUTTON:Nn,DROPDOWN:Qc,FILEPREVIEW:No,FILEPREVIEWCONTAINER:Jc,FILEPREVIEWDIALOG:Zc};function Ms(n){return G7[n==null?void 0:n.toUpperCase()]||null}const j7=["onDblclick"],q7={key:1,class:"tabs-label"},U7={__name:"index",props:{tabsContents:{type:Array,default:()=>[]},tabPosition:{type:String,default:"top"}},emits:["dblClick","clickTrigger","changeTrigger"],setup(n,{emit:e}){const t=n,i=e,s=u.ref([]),o=u.ref(""),r=h=>Ms(h),l=h=>{i("dblClick",h)},a=h=>{i("clickTrigger",h)},c=h=>{i("changeTrigger",h)};return u.watch(()=>t.tabsContents,()=>{var h;s.value=ee.cloneDeep(t.tabsContents),o.value=(h=s.value[0])==null?void 0:h.value},{deep:!0,immediate:!0}),(h,f)=>{const d=u.resolveComponent("el-tab-pane"),p=u.resolveComponent("el-tabs");return u.openBlock(),u.createBlock(p,{type:"card",modelValue:o.value,"onUpdate:modelValue":f[0]||(f[0]=g=>o.value=g),"tab-position":t==null?void 0:t.tabPosition},{default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(s.value,(g,m)=>(u.openBlock(),u.createBlock(d,{key:m,name:g==null?void 0:g.value},{label:u.withCtx(()=>{var v;return[g!=null&&g.label?(u.openBlock(),u.createElementBlock("div",{key:0,onDblclick:b=>l(g)},u.toDisplayString(g==null?void 0:g.label),41,j7)):u.createCommentVNode("",!0),g!=null&&g.contents&&((v=g==null?void 0:g.contents)==null?void 0:v.length)>0?(u.openBlock(),u.createElementBlock("div",q7,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(g==null?void 0:g.contents,(b,x)=>(u.openBlock(),u.createElementBlock("div",{key:x,class:"tabs-children"},[b!=null&&b.value||(b==null?void 0:b.value)===""?(u.openBlock(),u.createBlock(u.resolveDynamicComponent(r(b==null?void 0:b.type)),{key:0,modelValue:b.value,"onUpdate:modelValue":k=>b.value=k,content:(b==null?void 0:b.contents)??[]},null,8,["modelValue","onUpdate:modelValue","content"])):u.createCommentVNode("",!0)]))),128))])):u.createCommentVNode("",!0),u.renderSlot(h.$slots,`${(g==null?void 0:g.value)??""}_header`,{},void 0,!0)]}),default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(g==null?void 0:g.children,(v,b)=>(u.openBlock(),u.createElementBlock("div",{key:b,class:"tabs-contents"},[u.renderSlot(h.$slots,`${(v==null?void 0:v.value)??""}_operateButtons`,{},void 0,!0),v!=null&&v.value||(v==null?void 0:v.value)===""?(u.openBlock(),u.createBlock(u.resolveDynamicComponent(r(v==null?void 0:v.type)),{key:0,modelValue:v.value,"onUpdate:modelValue":x=>v.value=x,onClickTrigger:a,onChangeTrigger:c,content:v==null?void 0:v.content},u.createSlots({_:2},[name?{name,fn:u.withCtx(x=>[u.renderSlot(h.$slots,name,u.mergeProps({ref_for:!0},x||{}),void 0,!0)]),key:"0"}:void 0]),1064,["modelValue","onUpdate:modelValue","content"])):u.createCommentVNode("",!0)]))),128))]),_:2},1032,["name"]))),128))]),_:3},8,["modelValue","tab-position"])}}},Ho=ce._export_sfc(U7,[["__scopeId","data-v-0f027c8c"]]),Y7=Object.freeze(Object.defineProperty({__proto__:null,default:Ho},Symbol.toStringTag,{value:"Module"}));exports.Signature=Xc;exports._sfc_main=Qc;exports._sfc_main$1=Nn;exports._sfc_main$2=qr;exports._sfc_main$3=Kr;exports._sfc_main$4=jr;exports._sfc_main$5=Xr;exports.downloadAvatarApi=Zr;exports.getComponent=Ms;exports.getSvgIcons=Ur;exports.index=Zu;exports.index$1=Y7;exports.ssDialog=Bi;exports.ssFilePreview=Zc;exports.ssForm=Yr;exports.ssTab=Ho;exports.ssTable=Qr;exports.uploadAvatarApi=af;
|