@intent-hq/web 2.346.1 → 2.346.3
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/package.json +1 -1
- package/web/app/immutable/chunks/{BBhsbqLJ.js → -CHLoCv2.js} +1 -1
- package/web/app/immutable/chunks/{DKnPivVx.js → -FMYDRBF.js} +1 -1
- package/web/app/immutable/chunks/{BDgfFtcK.js → 2FIlKX-3.js} +1 -1
- package/web/app/immutable/chunks/{CS0II5i-.js → 2JP5OgdF.js} +1 -1
- package/web/app/immutable/chunks/{ENl_7pWb.js → 2cCVtmIg.js} +1 -1
- package/web/app/immutable/chunks/{COhzdkuA.js → 3kodm_f4.js} +1 -1
- package/web/app/immutable/chunks/{DUyBdSjv.js → 5GYSXevc.js} +1 -1
- package/web/app/immutable/chunks/{3OP-tats.js → 6EBJYAxp.js} +1 -1
- package/web/app/immutable/chunks/{CuD9DL4y.js → 6qKuCjdA.js} +1 -1
- package/web/app/immutable/chunks/{Bw9Opv8X.js → 7uqL-6tT.js} +1 -1
- package/web/app/immutable/chunks/{DSHtWXiq.js → 8LHayabj.js} +1 -1
- package/web/app/immutable/chunks/{JbkOWTOg.js → 8ksyQzxS.js} +1 -1
- package/web/app/immutable/chunks/{BnSdmDXX.js → 905ViLyg.js} +1 -1
- package/web/app/immutable/chunks/{NqdaVAll.js → AhLUcdeh.js} +1 -1
- package/web/app/immutable/chunks/{sCaWuYEb.js → B-mfoYJY.js} +1 -1
- package/web/app/immutable/chunks/{BGqL3gJO.js → B0A8uFhj.js} +1 -1
- package/web/app/immutable/chunks/{BaDPh7vq.js → B1Bex3N_.js} +1 -1
- package/web/app/immutable/chunks/{UxXMSC13.js → B2Nx9i4m.js} +1 -1
- package/web/app/immutable/chunks/{W4Nuovgc.js → B2lO9JOz.js} +1 -1
- package/web/app/immutable/chunks/{DNQiloiF.js → B35kShEY.js} +1 -1
- package/web/app/immutable/chunks/{O3Ve923N.js → B3GLZuHB.js} +1 -1
- package/web/app/immutable/chunks/{DlrkMELS.js → B3Z7v7rH.js} +1 -1
- package/web/app/immutable/chunks/{Ck2hwsBm.js → B4-LumaR.js} +1 -1
- package/web/app/immutable/chunks/{DzEm_gMB.js → B5jn8aKG.js} +1 -1
- package/web/app/immutable/chunks/{T9_nVC7k.js → B6lORqss.js} +1 -1
- package/web/app/immutable/chunks/{HAVpWhg1.js → B7J_zYsA.js} +1 -1
- package/web/app/immutable/chunks/{CIhlsnLM.js → B7PtZbeR.js} +1 -1
- package/web/app/immutable/chunks/{CxlqEDL_.js → B7myJZdQ.js} +3 -3
- package/web/app/immutable/chunks/{Cv_fAsRR.js → BAYfmcgi.js} +1 -1
- package/web/app/immutable/chunks/{CXgI2Ln7.js → BAo6IWBv.js} +1 -1
- package/web/app/immutable/chunks/{35EIyCm3.js → BIuKjPZF.js} +1 -1
- package/web/app/immutable/chunks/{DhWGSJOr.js → BJwkYtAi.js} +1 -1
- package/web/app/immutable/chunks/{CSelYXXo.js → BL2lJmRT.js} +1 -1
- package/web/app/immutable/chunks/{BW1uSKLL.js → BLgIfeYS.js} +1 -1
- package/web/app/immutable/chunks/{V_ABjOKq.js → BMOaW1oW.js} +1 -1
- package/web/app/immutable/chunks/{CPo4UsMt.js → BN2mg-Hu.js} +1 -1
- package/web/app/immutable/chunks/{B6_GAXLX.js → BOr-kq9m.js} +1 -1
- package/web/app/immutable/chunks/{NhKlePe6.js → BPY8OTRz.js} +1 -1
- package/web/app/immutable/chunks/{Cjyjhytt.js → BPg5N0kY.js} +1 -1
- package/web/app/immutable/chunks/{yw7dEI88.js → BR8cFY4D.js} +1 -1
- package/web/app/immutable/chunks/{CNHQ2hz2.js → BS47DjuS.js} +1 -1
- package/web/app/immutable/chunks/{CTMYdigD.js → BS8Oxiwq.js} +1 -1
- package/web/app/immutable/chunks/{2_W5MGlF.js → BTrGu4V2.js} +1 -1
- package/web/app/immutable/chunks/{DZZviYVT.js → BVKuTBgW.js} +2 -2
- package/web/app/immutable/chunks/{BlznqeMI.js → BVxykti4.js} +1 -1
- package/web/app/immutable/chunks/{CZ2Oen6-.js → BWqWCv74.js} +1 -1
- package/web/app/immutable/chunks/{B2i6P1Yj.js → BXVSJTKx.js} +1 -1
- package/web/app/immutable/chunks/{CUEYQ1xR.js → BYu-G7r_.js} +1 -1
- package/web/app/immutable/chunks/{DctMspbi.js → BZQDFgmp.js} +1 -1
- package/web/app/immutable/chunks/{BppmVmxY.js → B_E_i0pj.js} +1 -1
- package/web/app/immutable/chunks/{Bs3_4AtC.js → BcTzrLaX.js} +1 -1
- package/web/app/immutable/chunks/{BmLxQNOC.js → Bf-2W8ee.js} +1 -1
- package/web/app/immutable/chunks/{T1DVgc50.js → Bfufmy9h.js} +1 -1
- package/web/app/immutable/chunks/{BkzhB_Po.js → BgO7_9-9.js} +1 -1
- package/web/app/immutable/chunks/BgsoTwBt.js +1 -0
- package/web/app/immutable/chunks/{B_ALvSh2.js → BhpN5y2w.js} +1 -1
- package/web/app/immutable/chunks/{Do1gmE20.js → BhwQ3RpS.js} +1 -1
- package/web/app/immutable/chunks/{3hAJcdO4.js → Bii5NwwM.js} +1 -1
- package/web/app/immutable/chunks/{CK5SmfAe.js → BjQLXdCG.js} +1 -1
- package/web/app/immutable/chunks/{C4LCiNWC.js → BjQQ-QAR.js} +1 -1
- package/web/app/immutable/chunks/{C3LkuwxU.js → BjyueHVe.js} +1 -1
- package/web/app/immutable/chunks/{CKfg4UqD.js → Bndg0x8W.js} +1 -1
- package/web/app/immutable/chunks/{AfO8pDU9.js → BoCkK5Wk.js} +1 -1
- package/web/app/immutable/chunks/{CP2XzLLk.js → Br0L4BrM.js} +1 -1
- package/web/app/immutable/chunks/{DL98Mvfc.js → Bs4SchIj.js} +1 -1
- package/web/app/immutable/chunks/{5ICkS6dd.js → BsCcl9ES.js} +1 -1
- package/web/app/immutable/chunks/{CjxgW2LG.js → BtFbwSdu.js} +1 -1
- package/web/app/immutable/chunks/{qvZYvB9N.js → Bv2KudWv.js} +1 -1
- package/web/app/immutable/chunks/{BvpnWd-y.js → Bwi3H4EE.js} +1 -1
- package/web/app/immutable/chunks/{BycUBg6h.js → ByhhTiqD.js} +1 -1
- package/web/app/immutable/chunks/{dT5WNNGq.js → BzUmccFe.js} +1 -1
- package/web/app/immutable/chunks/{BO3bzcut.js → C-P--5-o.js} +1 -1
- package/web/app/immutable/chunks/{BLXPhKCH.js → C1s5hjq_.js} +1 -1
- package/web/app/immutable/chunks/{BI0I5q5w.js → C2UUXRHQ.js} +3 -3
- package/web/app/immutable/chunks/{B_uWHofm.js → C2XebNhA.js} +1 -1
- package/web/app/immutable/chunks/{tn7Dp-vi.js → C2aqDEXl.js} +1 -1
- package/web/app/immutable/chunks/{UKn44y3B.js → C55nGHPT.js} +1 -1
- package/web/app/immutable/chunks/{BIB7YFjF.js → C6WcTrxv.js} +2 -2
- package/web/app/immutable/chunks/{BIWW5pDn.js → C6vwP-ay.js} +1 -1
- package/web/app/immutable/chunks/{C4t0jJ4k.js → CABbtsx1.js} +1 -1
- package/web/app/immutable/chunks/{YuOz6Rmc.js → CAZtkTon.js} +1 -1
- package/web/app/immutable/chunks/{C1s02RDB.js → CApIfgsx.js} +1 -1
- package/web/app/immutable/chunks/{D0wwPGAk.js → CB69UzLI.js} +1 -1
- package/web/app/immutable/chunks/{BMCRnGzk.js → CCk7G8nC.js} +1 -1
- package/web/app/immutable/chunks/CD1fj6ns.js +1 -0
- package/web/app/immutable/chunks/{B-hjApiN.js → CEbGQG52.js} +1 -1
- package/web/app/immutable/chunks/{B2Qef3kJ.js → CFvWMGvD.js} +2 -2
- package/web/app/immutable/chunks/{BA-Wd8x9.js → CHDzcbuO.js} +1 -1
- package/web/app/immutable/chunks/{jqkXCyuX.js → CHKJ-bXh.js} +1 -1
- package/web/app/immutable/chunks/{BFVZAW0_.js → CIKf0hiv.js} +1 -1
- package/web/app/immutable/chunks/{0h3tB2X7.js → CIpI7Qrh.js} +1 -1
- package/web/app/immutable/chunks/{BEF8aCkH.js → CK8WOQOm.js} +1 -1
- package/web/app/immutable/chunks/{SnydeSOZ.js → CMb8WXOk.js} +2 -2
- package/web/app/immutable/chunks/{RKjwEkJS.js → CO4a0yRH.js} +1 -1
- package/web/app/immutable/chunks/{Dnk26fqb.js → COZ71ZSJ.js} +3 -3
- package/web/app/immutable/chunks/{DciVixd2.js → CPB4vP4H.js} +3 -3
- package/web/app/immutable/chunks/{C1N6iAP2.js → CPKMQWOs.js} +1 -1
- package/web/app/immutable/chunks/{DghbEZ16.js → CQQbNjsN.js} +1 -1
- package/web/app/immutable/chunks/{5m7mNQI1.js → CUL4Iea5.js} +1 -1
- package/web/app/immutable/chunks/{QcdWHB0v.js → CUxXMHrG.js} +1 -1
- package/web/app/immutable/chunks/{BZklR_B6.js → CW-YFngS.js} +1 -1
- package/web/app/immutable/chunks/{BMlW8PWp.js → CXOFOhS1.js} +1 -1
- package/web/app/immutable/chunks/{uIpdZ1Gn.js → CX_kUgUI.js} +1 -1
- package/web/app/immutable/chunks/{DQ3kuV3H.js → CZmb_yca.js} +1 -1
- package/web/app/immutable/chunks/{CXZBvyNr.js → C_Lje1cd.js} +1 -1
- package/web/app/immutable/chunks/{CNwVL4wn.js → CaUG7pKp.js} +1 -1
- package/web/app/immutable/chunks/{Cd-mRODX.js → CcUMYD8T.js} +1 -1
- package/web/app/immutable/chunks/{By74nslt.js → Ce3hxymX.js} +2 -2
- package/web/app/immutable/chunks/{ChOLlFah.js → CekmJHGy.js} +3 -3
- package/web/app/immutable/chunks/{-IUVo3ff.js → Cf3lvx7n.js} +4 -4
- package/web/app/immutable/chunks/{Dx1uQEhV.js → CgthA8iG.js} +1 -1
- package/web/app/immutable/chunks/{VVSQHNmC.js → Ch-DGnj6.js} +1 -1
- package/web/app/immutable/chunks/{KErKc4MM.js → CjxlVYMT.js} +2 -2
- package/web/app/immutable/chunks/{DaOs4JNK.js → CkkCr6dG.js} +1 -1
- package/web/app/immutable/chunks/{BB4FgpiZ.js → ClH0Gega.js} +1 -1
- package/web/app/immutable/chunks/{DD34O6fm.js → CnodB1ak.js} +24 -24
- package/web/app/immutable/chunks/{j3POoRwI.js → Coi6oyYv.js} +1 -1
- package/web/app/immutable/chunks/{CxSx5kbz.js → Coq4Q49X.js} +1 -1
- package/web/app/immutable/chunks/{BfaGwOq5.js → CqZy0zQ2.js} +1 -1
- package/web/app/immutable/chunks/{CqvGUHnF.js → CqzfYhYr.js} +1 -1
- package/web/app/immutable/chunks/{D9WJ9yaW.js → CrWhihJ_.js} +1 -1
- package/web/app/immutable/chunks/{BGsa1Rn-.js → CsKccV54.js} +1 -1
- package/web/app/immutable/chunks/{BtiDRzyn.js → CwDNa5HL.js} +1 -1
- package/web/app/immutable/chunks/{DxlsP5Pu.js → CwT6KWlV.js} +4 -4
- package/web/app/immutable/chunks/{R_Ru9hwD.js → CwUHwo2Y.js} +1 -1
- package/web/app/immutable/chunks/{BzrasdW9.js → Cwvr2VA7.js} +1 -1
- package/web/app/immutable/chunks/{BHmRsJkZ.js → CxMGjr-k.js} +1 -1
- package/web/app/immutable/chunks/{BZHceihR.js → CyYhxGJX.js} +1 -1
- package/web/app/immutable/chunks/{C4s4Sq6j.js → Cyc9AKzR.js} +1 -1
- package/web/app/immutable/chunks/{E9kqzP8d.js → CzPYlOCC.js} +1 -1
- package/web/app/immutable/chunks/{DRG7DUhO.js → D-l6NLYy.js} +1 -1
- package/web/app/immutable/chunks/{uc8QMJUx.js → D1PKFqe0.js} +1 -1
- package/web/app/immutable/chunks/{CiLrRXKC.js → D1TT2-Xo.js} +1 -1
- package/web/app/immutable/chunks/{BfaHQDJW.js → D2X9xdX0.js} +1 -1
- package/web/app/immutable/chunks/{DGs9CA_z.js → D2hrkGhh.js} +1 -1
- package/web/app/immutable/chunks/{CGhe-vKv.js → D3BzyAjt.js} +1 -1
- package/web/app/immutable/chunks/{B-izwTdw.js → D3UJod5R.js} +2 -2
- package/web/app/immutable/chunks/{Mrn_4qcP.js → D4_mjoiz.js} +1 -1
- package/web/app/immutable/chunks/{Bfi661u9.js → D4gGvbme.js} +4 -4
- package/web/app/immutable/chunks/{C0deMyYN.js → D4iUNFJq.js} +1 -1
- package/web/app/immutable/chunks/{Znww69M9.js → D4wRJWJo.js} +1 -1
- package/web/app/immutable/chunks/{cX33-fuj.js → D6HxW8tD.js} +1 -1
- package/web/app/immutable/chunks/D6VwVF_C.js +1 -0
- package/web/app/immutable/chunks/{hCF4Zu9x.js → D6rAyjoF.js} +1 -1
- package/web/app/immutable/chunks/{CFpSvOJx.js → D9kdbyS6.js} +1 -1
- package/web/app/immutable/chunks/{-oWCrnEw.js → D9u2PK-L.js} +1 -1
- package/web/app/immutable/chunks/{BMxLlxet.js → DDuFS2zo.js} +1 -1
- package/web/app/immutable/chunks/{CFFiNWgw.js → DEApyfNP.js} +1 -1
- package/web/app/immutable/chunks/{4I5A3DRt.js → DEQYPNCO.js} +1 -1
- package/web/app/immutable/chunks/{BPZ_JA05.js → DHbLiTwn.js} +1 -1
- package/web/app/immutable/chunks/{DuMO6x6m.js → DI8xYaVc.js} +1 -1
- package/web/app/immutable/chunks/{_RxuD-W2.js → DKOceApm.js} +1 -1
- package/web/app/immutable/chunks/{HXO2zRQJ.js → DKRbyLvF.js} +1 -1
- package/web/app/immutable/chunks/{BZpL3F2r.js → DKs0uFks.js} +1 -1
- package/web/app/immutable/chunks/{Dzr2-f8u.js → DKzgMUBy.js} +2 -2
- package/web/app/immutable/chunks/{m296fjds.js → DLH4F1ED.js} +1 -1
- package/web/app/immutable/chunks/{Cdb_pBT1.js → DLIkH-mx.js} +1 -1
- package/web/app/immutable/chunks/{P1zH2HLT.js → DN6EDRqv.js} +1 -1
- package/web/app/immutable/chunks/{BYpXsiCq.js → DNbEh_Pn.js} +1 -1
- package/web/app/immutable/chunks/{CsvSUZwX.js → DOH10_LL.js} +2 -2
- package/web/app/immutable/chunks/{DqmvYlsZ.js → DP4V6iDW.js} +1 -1
- package/web/app/immutable/chunks/{DNMpoEvN.js → DPcH5rXQ.js} +1 -1
- package/web/app/immutable/chunks/{Cueu30DH.js → DQ01F80Q.js} +1 -1
- package/web/app/immutable/chunks/{CjS1Cmfi.js → DTT_rauc.js} +1 -1
- package/web/app/immutable/chunks/{CS4C4Dqz.js → DU9Ky5os.js} +1 -1
- package/web/app/immutable/chunks/{zEbP96sv.js → DUOZnHQ0.js} +4 -4
- package/web/app/immutable/chunks/{CzGw49VI.js → DVJxiIYn.js} +1 -1
- package/web/app/immutable/chunks/{DetpMFuT.js → DVlQV8vI.js} +1 -1
- package/web/app/immutable/chunks/{eqxSNkBq.js → DW0lWqDY.js} +1 -1
- package/web/app/immutable/chunks/{DxkncNQp.js → DYxNs3ex.js} +1 -1
- package/web/app/immutable/chunks/{k6cZvV27.js → DZHzDies.js} +1 -1
- package/web/app/immutable/chunks/{CMG5CVfP.js → DZtzqJzi.js} +1 -1
- package/web/app/immutable/chunks/{BmooL5Pj.js → Db6-PdUB.js} +1 -1
- package/web/app/immutable/chunks/{DuA0wXTo.js → DbdK0wtE.js} +1 -1
- package/web/app/immutable/chunks/{CPE7SIVP.js → Dbp_q6hu.js} +1 -1
- package/web/app/immutable/chunks/{D9TgvNHy.js → DcwiOhhA.js} +1 -1
- package/web/app/immutable/chunks/{rBb3s3xl.js → DfqK8haP.js} +1 -1
- package/web/app/immutable/chunks/{9PMcLe0B.js → DhO5FJJI.js} +1 -1
- package/web/app/immutable/chunks/{C7CRtBIe.js → DhUKwJna.js} +1 -1
- package/web/app/immutable/chunks/{D6G3HdC8.js → DhWxuzTb.js} +1 -1
- package/web/app/immutable/chunks/{Db5vVNPd.js → Dih9qRTv.js} +1 -1
- package/web/app/immutable/chunks/{CMcMoJJq.js → Dj3ZrCzO.js} +1 -1
- package/web/app/immutable/chunks/{1kPFR2jr.js → DjbBeQRM.js} +1 -1
- package/web/app/immutable/chunks/{bYaMqcEY.js → DklZSLh2.js} +1 -1
- package/web/app/immutable/chunks/{BotBkFiN.js → Dn2BQOth.js} +1 -1
- package/web/app/immutable/chunks/{SrhdBdnO.js → DoYFP432.js} +1 -1
- package/web/app/immutable/chunks/{CjsTzCaF.js → DpUWgmrg.js} +1 -1
- package/web/app/immutable/chunks/{BEA1dP-Y.js → DqcBqbDI.js} +1 -1
- package/web/app/immutable/chunks/{BG2eX09y.js → Dr9VLQ7a.js} +1 -1
- package/web/app/immutable/chunks/{C7fHSR36.js → DtL2rtM8.js} +1 -1
- package/web/app/immutable/chunks/{BnsQkZ2z.js → DvFUmkR8.js} +1 -1
- package/web/app/immutable/chunks/{CLqD3xZb.js → DvTOURZI.js} +1 -1
- package/web/app/immutable/chunks/{Bkff-hvs.js → DvyKNoGC.js} +1 -1
- package/web/app/immutable/chunks/{BqRBAXUd.js → DwrUEXuQ.js} +3 -3
- package/web/app/immutable/chunks/DzyUo7pt.js +1 -0
- package/web/app/immutable/chunks/{C4EqZepj.js → EOsEsFiT.js} +1 -1
- package/web/app/immutable/chunks/{BKJdB-rj.js → EbS0dv8R.js} +1 -1
- package/web/app/immutable/chunks/{DxdbljsN.js → GRe-AQYA.js} +1 -1
- package/web/app/immutable/chunks/{CJl18r_J.js → GXoNce_4.js} +1 -1
- package/web/app/immutable/chunks/{CyhyGZAH.js → LdVrshUq.js} +2 -2
- package/web/app/immutable/chunks/{BwPpu-bL.js → LxLcg7tj.js} +1 -1
- package/web/app/immutable/chunks/M1o9ycAe.js +4 -0
- package/web/app/immutable/chunks/{P2s61dnl.js → MA6Nl0OX.js} +1 -1
- package/web/app/immutable/chunks/{tcnXcM0S.js → MQ537-MV.js} +1 -1
- package/web/app/immutable/chunks/{DmY0GWNY.js → Mc93eSxl.js} +1 -1
- package/web/app/immutable/chunks/{DhUnCLhA.js → NDjLJa7E.js} +1 -1
- package/web/app/immutable/chunks/{BqOOOgy5.js → Q9dh-ELL.js} +1 -1
- package/web/app/immutable/chunks/{B9wI8Jqn.js → SWyKEy91.js} +1 -1
- package/web/app/immutable/chunks/{CpB9-pxF.js → TPdIgwsT.js} +2 -2
- package/web/app/immutable/chunks/{-_IhnrUG.js → U5yX75Fv.js} +1 -1
- package/web/app/immutable/chunks/{D3e1E0pH.js → VpmaCPqv.js} +3 -3
- package/web/app/immutable/chunks/{a48W8e3q.js → XuyckbH_.js} +1 -1
- package/web/app/immutable/chunks/Y9-4hTF9.js +1 -0
- package/web/app/immutable/chunks/{Dsq9SKtm.js → ZKiqJWPE.js} +1 -1
- package/web/app/immutable/chunks/{BCjermhu.js → _dg-9BeG.js} +1 -1
- package/web/app/immutable/chunks/aos1n-nT.js +4 -0
- package/web/app/immutable/chunks/{fPgojm2p.js → baJQH4o5.js} +1 -1
- package/web/app/immutable/chunks/{Bs7Hg6Iw.js → cFbB-5Cu.js} +1 -1
- package/web/app/immutable/chunks/{DTTdoBjw.js → cw0Fy9sQ.js} +1 -1
- package/web/app/immutable/chunks/{BcLSwxTf.js → ddhULx4L.js} +1 -1
- package/web/app/immutable/chunks/{C1c28WNI.js → fqYOWiI-.js} +1 -1
- package/web/app/immutable/chunks/{C-6Vv_Md.js → hUKBOWr5.js} +1 -1
- package/web/app/immutable/chunks/{8-yHkkqV.js → jSRaMDVY.js} +1 -1
- package/web/app/immutable/chunks/{BD_lDepV.js → jdYPqvvP.js} +2 -2
- package/web/app/immutable/chunks/{DN_Lq29a.js → l8NmpVqL.js} +1 -1
- package/web/app/immutable/chunks/{BjCpOU4b.js → mdG_8hzH.js} +1 -1
- package/web/app/immutable/chunks/{DR-bu7f0.js → mli93Dcp.js} +1 -1
- package/web/app/immutable/chunks/{rISNYNCE.js → n8cz4x1y.js} +1 -1
- package/web/app/immutable/chunks/{DSU9ZcQ0.js → o6NTBM2j.js} +1 -1
- package/web/app/immutable/chunks/{CNOSe0wO.js → pBUZ5yOz.js} +1 -1
- package/web/app/immutable/chunks/{C9u4tXUT.js → poVs4JlU.js} +1 -1
- package/web/app/immutable/chunks/{zqCR6Knb.js → q6hitSEG.js} +1 -1
- package/web/app/immutable/chunks/{_5Vv4dkf.js → rt8UAcU5.js} +1 -1
- package/web/app/immutable/chunks/{C4xNNtUj.js → tU_ZJtMw.js} +1 -1
- package/web/app/immutable/chunks/{DMtABnLi.js → urgjvk31.js} +1 -1
- package/web/app/immutable/chunks/{CzGRX-SL.js → wz6AT1mX.js} +1 -1
- package/web/app/immutable/entry/{app.Dg3CVjdE.js → app.BTU46CGQ.js} +3 -3
- package/web/app/immutable/entry/start.VeHGe5l7.js +1 -0
- package/web/app/immutable/nodes/{0.mr7Lr8Nh.js → 0.Ci7PVT_k.js} +1 -1
- package/web/app/immutable/nodes/{1.rfzchHhR.js → 1.BR59lUe8.js} +1 -1
- package/web/app/immutable/nodes/{10.D4xVtSvV.js → 10.DgX_PEe_.js} +1 -1
- package/web/app/immutable/nodes/{11.Bl5UwrS9.js → 11.CtUvalit.js} +1 -1
- package/web/app/immutable/nodes/{12.CUp8k2-A.js → 12.BEzNSZ5P.js} +1 -1
- package/web/app/immutable/nodes/{13.Ch9aZ9Uv.js → 13.sp2ZZVeV.js} +3 -3
- package/web/app/immutable/nodes/{14.Bjuagqn-.js → 14.C7X_5Bue.js} +3 -3
- package/web/app/immutable/nodes/{15.Cto8qDz0.js → 15.DxqMZDdK.js} +1 -1
- package/web/app/immutable/nodes/{16.SivUu1Ma.js → 16.C_vshDQR.js} +1 -1
- package/web/app/immutable/nodes/{17.Chj8J0QC.js → 17.BtrKoac8.js} +1 -1
- package/web/app/immutable/nodes/{18.D_tnQyvk.js → 18.B3AoO6j9.js} +2 -2
- package/web/app/immutable/nodes/{2.WfgNcNo2.js → 2.DlWTJs6C.js} +6 -6
- package/web/app/immutable/nodes/{3.D4wTMvE8.js → 3.DTgoPy4s.js} +1 -1
- package/web/app/immutable/nodes/{4.ZitfbCkz.js → 4.DSkknvUk.js} +1 -1
- package/web/app/immutable/nodes/{5.BFEJ_NR_.js → 5.pRTuZIBK.js} +1 -1
- package/web/app/immutable/nodes/{6.Bkj3ggYn.js → 6.IXz7usII.js} +1 -1
- package/web/app/immutable/nodes/{7.Cz8EbGz5.js → 7.-QsdIQf6.js} +1 -1
- package/web/app/immutable/nodes/{8.gF00dlat.js → 8.s2ERF-BG.js} +4 -4
- package/web/app/immutable/nodes/{9.COG4Nc0F.js → 9.CzyfEfdP.js} +5 -5
- package/web/app/version.json +1 -1
- package/web/generated/paraglide.js +49 -49
- package/web/index.html +18 -18
- package/web/app/immutable/chunks/BKW86yq_.js +0 -1
- package/web/app/immutable/chunks/BZvAKLUn.js +0 -1
- package/web/app/immutable/chunks/BjFh2SH5.js +0 -1
- package/web/app/immutable/chunks/BtwtItRa.js +0 -4
- package/web/app/immutable/chunks/D1jZIoRI.js +0 -1
- package/web/app/immutable/chunks/DnBFSw4A.js +0 -4
- package/web/app/immutable/chunks/O7PQPM4V.js +0 -1
- package/web/app/immutable/entry/start.51bhhgUY.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/
|
|
2
|
-
var kle=Object.defineProperty;var Ile=(o,e,t)=>e in o?kle(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var Ji=(o,e,t)=>Ile(o,typeof e!="symbol"?e+"":e,t);import{_ as Ae}from"./
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/DNbEh_Pn.js","/app/immutable/chunks/CsKccV54.js","/app/immutable/chunks/DoYFP432.js","/app/immutable/chunks/BS47DjuS.js","/app/immutable/chunks/BPg5N0kY.js","/app/immutable/chunks/CQQbNjsN.js","/app/immutable/chunks/B35kShEY.js","/app/immutable/chunks/DZtzqJzi.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var kle=Object.defineProperty;var Ile=(o,e,t)=>e in o?kle(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var Ji=(o,e,t)=>Ile(o,typeof e!="symbol"?e+"":e,t);import{_ as Ae}from"./Y9-4hTF9.js";function qX(){return globalThis._VSCODE_NLS_MESSAGES}function k9(){return globalThis._VSCODE_NLS_LANGUAGE}const Ele=k9()==="pseudo"||typeof document<"u"&&document.location&&typeof document.location.hash=="string"&&document.location.hash.indexOf("pseudo=true")>=0;function Hk(o,e){let t;return e.length===0?t=o:t=o.replace(/\{(\d+)\}/g,(i,n)=>{const s=parseInt(n,10),r=e[s];let a=i;return typeof r=="string"?a=r:(typeof r=="number"||typeof r=="boolean"||r===void 0||r===null)&&(a=String(r)),a}),Ele&&(t="["+t.replace(/[aouei]/g,"$&$&")+"]"),t}function m(o,e,...t){return Hk(typeof o=="number"?KX(o,e):e,t)}function KX(o,e){const t=qX()?.[o];if(typeof t!="string"){if(typeof e=="string")return e;throw new Error(`!!! NLS MISSING: ${o} !!!`)}return t}function j(o,e,...t){let i;typeof o=="number"?i=KX(o,e):i=e;const n=Hk(i,t);return{value:n,original:e===i?n:Hk(e,t)}}function Tle(o,e){const t=o;typeof t.vscodeWindowId!="number"&&Object.defineProperty(t,"vscodeWindowId",{get:()=>e})}const Pt=window,mN=class mN{constructor(){this.mapWindowIdToZoomFactor=new Map}getZoomFactor(e){return this.mapWindowIdToZoomFactor.get(this.getWindowId(e))??1}getWindowId(e){return e.vscodeWindowId}};mN.INSTANCE=new mN;let tF=mN;function GX(o,e,t){typeof e=="string"&&(e=o.matchMedia(e)),e.addEventListener("change",t)}function iF(o){return tF.INSTANCE.getZoomFactor(o)}const hw=navigator.userAgent,js=hw.indexOf("Firefox")>=0,nM=hw.indexOf("AppleWebKit")>=0,vx=hw.indexOf("Chrome")>=0,Gm=!vx&&hw.indexOf("Safari")>=0,ZX=!vx&&!Gm&&nM;hw.indexOf("Electron/")>=0;const DU=hw.indexOf("Android")>=0;let S2=!1;if(typeof Pt.matchMedia=="function"){const o=Pt.matchMedia("(display-mode: standalone) or (display-mode: window-controls-overlay)"),e=Pt.matchMedia("(display-mode: fullscreen)");S2=o.matches,GX(Pt,o,({matches:t})=>{S2&&e.matches||(S2=t)})}function Vk(){return globalThis.MonacoEnvironment}class Nle{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?wC.isErrorNoTelemetry(e)?new wC(e.message+`
|
|
3
3
|
|
|
4
4
|
`+e.stack):new Error(e.message+`
|
|
5
5
|
|
|
@@ -992,4 +992,4 @@ Ensure your bundler properly bundles modules referenced by "new URL('...?esm', i
|
|
|
992
992
|
|
|
993
993
|
${JSON.stringify(s,null,2)}`);return r.value}}async notify(e,t,i){if(!this.checkChannel(this._requestSender))throw new Error;const n=e.paramsSerializer.serializeToJson(t);EX(n),this._requestSender.sendNotification({method:e.method,params:n},i)}};function EX(o){if(o!==null&&Array.isArray(o)&&typeof o!="object")throw new Error("Invalid value! Only null, array and object is allowed.")}var TX=class Tae extends Error{constructor(e,t,i=qa.genericApplicationError){super(e),Pe(this,"data"),Pe(this,"code"),this.data=t,this.code=i,Object.setPrototypeOf(this,Tae.prototype)}},N6e=class S9{constructor(e,t,i,n,s=!1){Pe(this,"method"),Pe(this,"paramsSerializer"),Pe(this,"resultSerializer"),Pe(this,"errorSerializer"),Pe(this,"isOptional"),Pe(this,"kind","request"),this.method=e,this.paramsSerializer=t,this.resultSerializer=i,this.errorSerializer=n,this.isOptional=s}withMethod(e){return new S9(e,this.paramsSerializer,this.resultSerializer,this.errorSerializer)}optional(){return new S9(this.method,this.paramsSerializer,this.resultSerializer,this.errorSerializer,!0)}},R6e=class Nae{constructor(e,t){Pe(this,"method"),Pe(this,"paramsSerializer"),Pe(this,"kind","notification"),this.method=e,this.paramsSerializer=t}withMethod(e){return new Nae(e,this.paramsSerializer)}};function Ze(o){return new N6e((o||{}).method,iC.sAny(),iC.sAny(),iC.sAny())}function zi(o){return new R6e((o||{}).method,iC.sAny())}const M6e=Symbol();var NX=(kX=M6e,YD=class{constructor(o){Pe(this,"error"),Pe(this,kX),this.error=o}},Pe(YD,"factory",o=>new YD(o)),YD);function A6e(o){const e=RX(o.server),t=RX(o.client);return new P6e(o.tags||[],e,t)}function RX(o){const e={};for(const[t,i]of Object.entries(o)){const n=i.method?i.method:t;e[t]=i.withMethod(n)}return e}var P6e=class Rae{constructor(e=[],t,i){Pe(this,"tags"),Pe(this,"server"),Pe(this,"client"),this.tags=e,this.server=t,this.client=i}_onlyDesignTime(){return new Error("This property is not meant to be accessed at runtime")}get TContractObject(){throw this._onlyDesignTime()}get TClientInterface(){throw this._onlyDesignTime()}get TServerInterface(){throw this._onlyDesignTime()}get TClientHandler(){throw this._onlyDesignTime()}get TServerHandler(){throw this._onlyDesignTime()}get TTags(){throw this._onlyDesignTime()}getInterface(e,t,i,n){const s=this.buildCounterpart(e,i),r=this.registerHandlers(e,t,n,s);return{counterpart:s,dispose:()=>r.dispose()}}buildCounterpart(e,t){const i={};for(const[n,s]of Object.entries(t)){let r;s.kind==="request"?s.isOptional?r=async(a,l)=>{a===void 0&&(a={});try{return await e.request(s,a,l)}catch(c){if(c&&c.code===qa.methodNotFound)return kae;throw c}}:r=(a,l)=>(a===void 0&&(a={}),e.request(s,a,l)):r=(a,l)=>(a===void 0&&(a={}),e.notify(s,a,l)),i[n]=r}return i}registerHandlers(e,t,i,n){const s=[];for(const[r,a]of Object.entries(t))if(a.kind==="request"){let l=i[r];if(!l)continue;const c=this.createRequestHandler(n,l);s.push(e.registerRequestHandler(a,c))}else{const l=i[r];l&&s.push(e.registerNotificationHandler(a,(c,d)=>{l(c,{context:d,counterpart:n})}))}return{dispose:()=>s.forEach(r=>r.dispose())}}createRequestHandler(e,t){return async(i,n,s)=>{const r=await t(i,{context:s,counterpart:e,newErr:NX.factory,requestId:n});return r instanceof NX?r.error:{ok:r}}}static getServerFromStream(e,t,i,n){const s=w9.fromTransport(t,i),{server:r}=e.getServer(s,n);return s.startListen(),{channel:s,server:r}}static registerServerToStream(e,t,i,n){const s=w9.fromTransport(t,i),{client:r}=e.registerServer(s,n);return s.startListen(),{channel:s,client:r}}getServer(e,t){const{counterpart:i,dispose:n}=this.getInterface(e,this.client,this.server,t);return{server:i,dispose:n}}registerServer(e,t){const{counterpart:i,dispose:n}=this.getInterface(e,this.server,this.client,t);return{client:i,dispose:n}}withContext(){return new Rae(this.tags,this.server,this.client)}};let nC=(function(o){return o.Comment="comment",o.Imports="imports",o.Region="region",o})({}),en=(function(o){return o[o.File=1]="File",o[o.Module=2]="Module",o[o.Namespace=3]="Namespace",o[o.Package=4]="Package",o[o.Class=5]="Class",o[o.Method=6]="Method",o[o.Property=7]="Property",o[o.Field=8]="Field",o[o.Constructor=9]="Constructor",o[o.Enum=10]="Enum",o[o.Interface=11]="Interface",o[o.Function=12]="Function",o[o.Variable=13]="Variable",o[o.Constant=14]="Constant",o[o.String=15]="String",o[o.Number=16]="Number",o[o.Boolean=17]="Boolean",o[o.Array=18]="Array",o[o.Object=19]="Object",o[o.Key=20]="Key",o[o.Null=21]="Null",o[o.EnumMember=22]="EnumMember",o[o.Struct=23]="Struct",o[o.Event=24]="Event",o[o.Operator=25]="Operator",o[o.TypeParameter=26]="TypeParameter",o})({}),Mae=(function(o){return o[o.Deprecated=1]="Deprecated",o})({}),MX=(function(o){return o[o.Type=1]="Type",o[o.Parameter=2]="Parameter",o})({}),O6e=(function(o){return o[o.None=0]="None",o[o.Full=1]="Full",o[o.Incremental=2]="Incremental",o})({}),cn=(function(o){return o[o.Text=1]="Text",o[o.Method=2]="Method",o[o.Function=3]="Function",o[o.Constructor=4]="Constructor",o[o.Field=5]="Field",o[o.Variable=6]="Variable",o[o.Class=7]="Class",o[o.Interface=8]="Interface",o[o.Module=9]="Module",o[o.Property=10]="Property",o[o.Unit=11]="Unit",o[o.Value=12]="Value",o[o.Enum=13]="Enum",o[o.Keyword=14]="Keyword",o[o.Snippet=15]="Snippet",o[o.Color=16]="Color",o[o.File=17]="File",o[o.Reference=18]="Reference",o[o.Folder=19]="Folder",o[o.EnumMember=20]="EnumMember",o[o.Constant=21]="Constant",o[o.Struct=22]="Struct",o[o.Event=23]="Event",o[o.Operator=24]="Operator",o[o.TypeParameter=25]="TypeParameter",o})({}),F6e=(function(o){return o[o.Deprecated=1]="Deprecated",o})({}),W6e=(function(o){return o[o.PlainText=1]="PlainText",o[o.Snippet=2]="Snippet",o})({}),JO=(function(o){return o[o.Text=1]="Text",o[o.Read=2]="Read",o[o.Write=3]="Write",o})({}),Dd=(function(o){return o.Empty="",o.QuickFix="quickfix",o.Refactor="refactor",o.RefactorExtract="refactor.extract",o.RefactorInline="refactor.inline",o.RefactorRewrite="refactor.rewrite",o.Source="source",o.SourceOrganizeImports="source.organizeImports",o.SourceFixAll="source.fixAll",o})({}),pN=(function(o){return o.PlainText="plaintext",o.Markdown="markdown",o})({}),dh=(function(o){return o[o.Error=1]="Error",o[o.Warning=2]="Warning",o[o.Information=3]="Information",o[o.Hint=4]="Hint",o})({}),AX=(function(o){return o[o.Unnecessary=1]="Unnecessary",o[o.Deprecated=2]="Deprecated",o})({}),Wk=(function(o){return o[o.Invoked=1]="Invoked",o[o.TriggerCharacter=2]="TriggerCharacter",o[o.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",o})({}),Bk=(function(o){return o[o.Invoked=1]="Invoked",o[o.TriggerCharacter=2]="TriggerCharacter",o[o.ContentChange=3]="ContentChange",o})({}),y9=(function(o){return o[o.Invoked=1]="Invoked",o[o.Automatic=2]="Automatic",o})({}),B6e=(function(o){return o.Relative="relative",o})({});var wt=class{constructor(o){this.method=o}};const ht={textDocumentImplementation:new wt("textDocument/implementation"),textDocumentTypeDefinition:new wt("textDocument/typeDefinition"),textDocumentDocumentColor:new wt("textDocument/documentColor"),textDocumentColorPresentation:new wt("textDocument/colorPresentation"),textDocumentFoldingRange:new wt("textDocument/foldingRange"),textDocumentDeclaration:new wt("textDocument/declaration"),textDocumentSelectionRange:new wt("textDocument/selectionRange"),textDocumentPrepareCallHierarchy:new wt("textDocument/prepareCallHierarchy"),textDocumentSemanticTokensFull:new wt("textDocument/semanticTokens/full"),textDocumentSemanticTokensFullDelta:new wt("textDocument/semanticTokens/full/delta"),textDocumentLinkedEditingRange:new wt("textDocument/linkedEditingRange"),workspaceWillCreateFiles:new wt("workspace/willCreateFiles"),workspaceWillRenameFiles:new wt("workspace/willRenameFiles"),workspaceWillDeleteFiles:new wt("workspace/willDeleteFiles"),textDocumentMoniker:new wt("textDocument/moniker"),textDocumentPrepareTypeHierarchy:new wt("textDocument/prepareTypeHierarchy"),textDocumentInlineValue:new wt("textDocument/inlineValue"),textDocumentInlayHint:new wt("textDocument/inlayHint"),textDocumentDiagnostic:new wt("textDocument/diagnostic"),textDocumentInlineCompletion:new wt("textDocument/inlineCompletion"),textDocumentWillSaveWaitUntil:new wt("textDocument/willSaveWaitUntil"),textDocumentCompletion:new wt("textDocument/completion"),textDocumentHover:new wt("textDocument/hover"),textDocumentSignatureHelp:new wt("textDocument/signatureHelp"),textDocumentDefinition:new wt("textDocument/definition"),textDocumentReferences:new wt("textDocument/references"),textDocumentDocumentHighlight:new wt("textDocument/documentHighlight"),textDocumentDocumentSymbol:new wt("textDocument/documentSymbol"),textDocumentCodeAction:new wt("textDocument/codeAction"),workspaceSymbol:new wt("workspace/symbol"),textDocumentCodeLens:new wt("textDocument/codeLens"),textDocumentDocumentLink:new wt("textDocument/documentLink"),textDocumentFormatting:new wt("textDocument/formatting"),textDocumentRangeFormatting:new wt("textDocument/rangeFormatting"),textDocumentRangesFormatting:new wt("textDocument/rangesFormatting"),textDocumentOnTypeFormatting:new wt("textDocument/onTypeFormatting"),textDocumentRename:new wt("textDocument/rename"),workspaceExecuteCommand:new wt("workspace/executeCommand"),workspaceDidCreateFiles:new wt("workspace/didCreateFiles"),workspaceDidRenameFiles:new wt("workspace/didRenameFiles"),workspaceDidDeleteFiles:new wt("workspace/didDeleteFiles"),workspaceDidChangeConfiguration:new wt("workspace/didChangeConfiguration"),textDocumentDidOpen:new wt("textDocument/didOpen"),textDocumentDidChange:new wt("textDocument/didChange"),textDocumentDidClose:new wt("textDocument/didClose"),textDocumentDidSave:new wt("textDocument/didSave"),textDocumentWillSave:new wt("textDocument/willSave"),workspaceDidChangeWatchedFiles:new wt("workspace/didChangeWatchedFiles")},bx=A6e({server:{textDocumentImplementation:Ze({method:"textDocument/implementation"}),textDocumentTypeDefinition:Ze({method:"textDocument/typeDefinition"}),textDocumentDocumentColor:Ze({method:"textDocument/documentColor"}),textDocumentColorPresentation:Ze({method:"textDocument/colorPresentation"}),textDocumentFoldingRange:Ze({method:"textDocument/foldingRange"}),textDocumentDeclaration:Ze({method:"textDocument/declaration"}),textDocumentSelectionRange:Ze({method:"textDocument/selectionRange"}),textDocumentPrepareCallHierarchy:Ze({method:"textDocument/prepareCallHierarchy"}),callHierarchyIncomingCalls:Ze({method:"callHierarchy/incomingCalls"}),callHierarchyOutgoingCalls:Ze({method:"callHierarchy/outgoingCalls"}),textDocumentSemanticTokensFull:Ze({method:"textDocument/semanticTokens/full"}),textDocumentSemanticTokensFullDelta:Ze({method:"textDocument/semanticTokens/full/delta"}),textDocumentSemanticTokensRange:Ze({method:"textDocument/semanticTokens/range"}),textDocumentLinkedEditingRange:Ze({method:"textDocument/linkedEditingRange"}),workspaceWillCreateFiles:Ze({method:"workspace/willCreateFiles"}),workspaceWillRenameFiles:Ze({method:"workspace/willRenameFiles"}),workspaceWillDeleteFiles:Ze({method:"workspace/willDeleteFiles"}),textDocumentMoniker:Ze({method:"textDocument/moniker"}),textDocumentPrepareTypeHierarchy:Ze({method:"textDocument/prepareTypeHierarchy"}),typeHierarchySupertypes:Ze({method:"typeHierarchy/supertypes"}),typeHierarchySubtypes:Ze({method:"typeHierarchy/subtypes"}),textDocumentInlineValue:Ze({method:"textDocument/inlineValue"}),textDocumentInlayHint:Ze({method:"textDocument/inlayHint"}),inlayHintResolve:Ze({method:"inlayHint/resolve"}),textDocumentDiagnostic:Ze({method:"textDocument/diagnostic"}),workspaceDiagnostic:Ze({method:"workspace/diagnostic"}),textDocumentInlineCompletion:Ze({method:"textDocument/inlineCompletion"}),initialize:Ze({method:"initialize"}),shutdown:Ze({method:"shutdown"}),textDocumentWillSaveWaitUntil:Ze({method:"textDocument/willSaveWaitUntil"}),textDocumentCompletion:Ze({method:"textDocument/completion"}),completionItemResolve:Ze({method:"completionItem/resolve"}),textDocumentHover:Ze({method:"textDocument/hover"}),textDocumentSignatureHelp:Ze({method:"textDocument/signatureHelp"}),textDocumentDefinition:Ze({method:"textDocument/definition"}),textDocumentReferences:Ze({method:"textDocument/references"}),textDocumentDocumentHighlight:Ze({method:"textDocument/documentHighlight"}),textDocumentDocumentSymbol:Ze({method:"textDocument/documentSymbol"}),textDocumentCodeAction:Ze({method:"textDocument/codeAction"}),codeActionResolve:Ze({method:"codeAction/resolve"}),workspaceSymbol:Ze({method:"workspace/symbol"}),workspaceSymbolResolve:Ze({method:"workspaceSymbol/resolve"}),textDocumentCodeLens:Ze({method:"textDocument/codeLens"}),codeLensResolve:Ze({method:"codeLens/resolve"}),textDocumentDocumentLink:Ze({method:"textDocument/documentLink"}),documentLinkResolve:Ze({method:"documentLink/resolve"}),textDocumentFormatting:Ze({method:"textDocument/formatting"}),textDocumentRangeFormatting:Ze({method:"textDocument/rangeFormatting"}),textDocumentRangesFormatting:Ze({method:"textDocument/rangesFormatting"}),textDocumentOnTypeFormatting:Ze({method:"textDocument/onTypeFormatting"}),textDocumentRename:Ze({method:"textDocument/rename"}),textDocumentPrepareRename:Ze({method:"textDocument/prepareRename"}),workspaceExecuteCommand:Ze({method:"workspace/executeCommand"}),workspaceDidChangeWorkspaceFolders:zi({method:"workspace/didChangeWorkspaceFolders"}),windowWorkDoneProgressCancel:zi({method:"window/workDoneProgress/cancel"}),workspaceDidCreateFiles:zi({method:"workspace/didCreateFiles"}),workspaceDidRenameFiles:zi({method:"workspace/didRenameFiles"}),workspaceDidDeleteFiles:zi({method:"workspace/didDeleteFiles"}),notebookDocumentDidOpen:zi({method:"notebookDocument/didOpen"}),notebookDocumentDidChange:zi({method:"notebookDocument/didChange"}),notebookDocumentDidSave:zi({method:"notebookDocument/didSave"}),notebookDocumentDidClose:zi({method:"notebookDocument/didClose"}),initialized:zi({method:"initialized"}),exit:zi({method:"exit"}),workspaceDidChangeConfiguration:zi({method:"workspace/didChangeConfiguration"}),textDocumentDidOpen:zi({method:"textDocument/didOpen"}),textDocumentDidChange:zi({method:"textDocument/didChange"}),textDocumentDidClose:zi({method:"textDocument/didClose"}),textDocumentDidSave:zi({method:"textDocument/didSave"}),textDocumentWillSave:zi({method:"textDocument/willSave"}),workspaceDidChangeWatchedFiles:zi({method:"workspace/didChangeWatchedFiles"}),setTrace:zi({method:"$/setTrace"}),cancelRequest:zi({method:"$/cancelRequest"}),progress:zi({method:"$/progress"})},client:{workspaceWorkspaceFolders:Ze({method:"workspace/workspaceFolders"}).optional(),workspaceConfiguration:Ze({method:"workspace/configuration"}).optional(),workspaceFoldingRangeRefresh:Ze({method:"workspace/foldingRange/refresh"}).optional(),windowWorkDoneProgressCreate:Ze({method:"window/workDoneProgress/create"}).optional(),workspaceSemanticTokensRefresh:Ze({method:"workspace/semanticTokens/refresh"}).optional(),windowShowDocument:Ze({method:"window/showDocument"}).optional(),workspaceInlineValueRefresh:Ze({method:"workspace/inlineValue/refresh"}).optional(),workspaceInlayHintRefresh:Ze({method:"workspace/inlayHint/refresh"}).optional(),workspaceDiagnosticRefresh:Ze({method:"workspace/diagnostic/refresh"}).optional(),clientRegisterCapability:Ze({method:"client/registerCapability"}).optional(),clientUnregisterCapability:Ze({method:"client/unregisterCapability"}).optional(),windowShowMessageRequest:Ze({method:"window/showMessageRequest"}).optional(),workspaceCodeLensRefresh:Ze({method:"workspace/codeLens/refresh"}).optional(),workspaceApplyEdit:Ze({method:"workspace/applyEdit"}).optional(),windowShowMessage:zi({method:"window/showMessage"}),windowLogMessage:zi({method:"window/logMessage"}),telemetryEvent:zi({method:"telemetry/event"}),textDocumentPublishDiagnostics:zi({method:"textDocument/publishDiagnostics"}),logTrace:zi({method:"$/logTrace"}),cancelRequest:zi({method:"$/cancelRequest"}),progress:zi({method:"$/progress"})}});function Gp(o,e){if(o.textModel!==e)throw new Error(`Expected text model to be ${e}, but got ${o.textModel}`);return o}var ln=(XO=class{constructor(){Pe(this,"_store",new Mz)}dispose(){this._store.dispose()}_register(o){if(o===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(o)}},Pe(XO,"None",Object.freeze({dispose(){}})),XO),Mz=(XD=class{constructor(){Pe(this,"_toDispose",new Set),Pe(this,"_isDisposed",!1)}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}clear(){if(this._toDispose.size!==0)try{for(const o of this._toDispose)o.dispose()}finally{this._toDispose.clear()}}add(o){if(!o)return o;if(o===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?XD.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(o),o}},Pe(XD,"DISABLE_DISPOSED_WARNING",!1),XD);const Aae=new Map([[Dd.Empty,""],[Dd.QuickFix,"quickfix"],[Dd.Refactor,"refactor"],[Dd.RefactorExtract,"refactor.extract"],[Dd.RefactorInline,"refactor.inline"],[Dd.RefactorRewrite,"refactor.rewrite"],[Dd.Source,"source"],[Dd.SourceOrganizeImports,"source.organizeImports"],[Dd.SourceFixAll,"source.fixAll"]]);function H6e(o){if(o)return Aae.get(o)??o}const V6e=new Map([[Le.CodeActionTriggerType.Invoke,y9.Invoked],[Le.CodeActionTriggerType.Auto,y9.Automatic]]);function z6e(o){return V6e.get(o)??y9.Invoked}const Pae=new Map([[cn.Text,Le.CompletionItemKind.Text],[cn.Method,Le.CompletionItemKind.Method],[cn.Function,Le.CompletionItemKind.Function],[cn.Constructor,Le.CompletionItemKind.Constructor],[cn.Field,Le.CompletionItemKind.Field],[cn.Variable,Le.CompletionItemKind.Variable],[cn.Class,Le.CompletionItemKind.Class],[cn.Interface,Le.CompletionItemKind.Interface],[cn.Module,Le.CompletionItemKind.Module],[cn.Property,Le.CompletionItemKind.Property],[cn.Unit,Le.CompletionItemKind.Unit],[cn.Value,Le.CompletionItemKind.Value],[cn.Enum,Le.CompletionItemKind.Enum],[cn.Keyword,Le.CompletionItemKind.Keyword],[cn.Snippet,Le.CompletionItemKind.Snippet],[cn.Color,Le.CompletionItemKind.Color],[cn.File,Le.CompletionItemKind.File],[cn.Reference,Le.CompletionItemKind.Reference],[cn.Folder,Le.CompletionItemKind.Folder],[cn.EnumMember,Le.CompletionItemKind.EnumMember],[cn.Constant,Le.CompletionItemKind.Constant],[cn.Struct,Le.CompletionItemKind.Struct],[cn.Event,Le.CompletionItemKind.Event],[cn.Operator,Le.CompletionItemKind.Operator],[cn.TypeParameter,Le.CompletionItemKind.TypeParameter]]);function U6e(o){return o?Pae.get(o)??Le.CompletionItemKind.Text:Le.CompletionItemKind.Text}const Oae=new Map([[F6e.Deprecated,Le.CompletionItemTag.Deprecated]]);function $6e(o){return Oae.get(o)}const j6e=new Map([[Le.CompletionTriggerKind.Invoke,Wk.Invoked],[Le.CompletionTriggerKind.TriggerCharacter,Wk.TriggerCharacter],[Le.CompletionTriggerKind.TriggerForIncompleteCompletions,Wk.TriggerForIncompleteCompletions]]);function q6e(o){return j6e.get(o)??Wk.Invoked}const K6e=new Map([[W6e.Snippet,Le.CompletionItemInsertTextRule.InsertAsSnippet]]);function G6e(o){if(o)return K6e.get(o)}const Fae=new Map([[en.File,Le.SymbolKind.File],[en.Module,Le.SymbolKind.Module],[en.Namespace,Le.SymbolKind.Namespace],[en.Package,Le.SymbolKind.Package],[en.Class,Le.SymbolKind.Class],[en.Method,Le.SymbolKind.Method],[en.Property,Le.SymbolKind.Property],[en.Field,Le.SymbolKind.Field],[en.Constructor,Le.SymbolKind.Constructor],[en.Enum,Le.SymbolKind.Enum],[en.Interface,Le.SymbolKind.Interface],[en.Function,Le.SymbolKind.Function],[en.Variable,Le.SymbolKind.Variable],[en.Constant,Le.SymbolKind.Constant],[en.String,Le.SymbolKind.String],[en.Number,Le.SymbolKind.Number],[en.Boolean,Le.SymbolKind.Boolean],[en.Array,Le.SymbolKind.Array],[en.Object,Le.SymbolKind.Object],[en.Key,Le.SymbolKind.Key],[en.Null,Le.SymbolKind.Null],[en.EnumMember,Le.SymbolKind.EnumMember],[en.Struct,Le.SymbolKind.Struct],[en.Event,Le.SymbolKind.Event],[en.Operator,Le.SymbolKind.Operator],[en.TypeParameter,Le.SymbolKind.TypeParameter]]);function Wae(o){return Fae.get(o)??Le.SymbolKind.File}const Z6e=new Map([[Mae.Deprecated,Le.SymbolTag.Deprecated]]);function Bae(o){return Z6e.get(o)}const Y6e=new Map([[JO.Text,Le.DocumentHighlightKind.Text],[JO.Read,Le.DocumentHighlightKind.Read],[JO.Write,Le.DocumentHighlightKind.Write]]);function X6e(o){return o?Y6e.get(o)??Le.DocumentHighlightKind.Text:Le.DocumentHighlightKind.Text}const Q6e=new Map([[nC.Comment,Le.FoldingRangeKind.Comment],[nC.Imports,Le.FoldingRangeKind.Imports],[nC.Region,Le.FoldingRangeKind.Region]]);function J6e(o){if(o)return Q6e.get(o)}const eze=new Map([[Gc.Error,dh.Error],[Gc.Warning,dh.Warning],[Gc.Info,dh.Information],[Gc.Hint,dh.Hint]]);function tze(o){return eze.get(o)??dh.Error}const ize=new Map([[dh.Error,Gc.Error],[dh.Warning,Gc.Warning],[dh.Information,Gc.Info],[dh.Hint,Gc.Hint]]);function nze(o){return o?ize.get(o)??Gc.Error:Gc.Error}const Hae=new Map([[AX.Unnecessary,DX.Unnecessary],[AX.Deprecated,DX.Deprecated]]);function sze(o){return Hae.get(o)}const oze=new Map([[Le.SignatureHelpTriggerKind.Invoke,Bk.Invoked],[Le.SignatureHelpTriggerKind.TriggerCharacter,Bk.TriggerCharacter],[Le.SignatureHelpTriggerKind.ContentChange,Bk.ContentChange]]);function rze(o){return oze.get(o)??Bk.Invoked}function sC(o){if(o)return{id:o.command,title:o.title,arguments:o.arguments}}const aze=new Map([[MX.Type,Le.InlayHintKind.Type],[MX.Parameter,Le.InlayHintKind.Parameter]]);function lze(o){return o?aze.get(o)??Le.InlayHintKind.Type:Le.InlayHintKind.Type}function Ug(o,e){if("targetUri"in o){const t=e.bridge.translateBackRange({uri:o.targetUri},o.targetRange);return{uri:t.textModel.uri,range:t.range,originSelectionRange:o.originSelectionRange?e.bridge.translateBackRange({uri:o.targetUri},o.originSelectionRange).range:void 0,targetSelectionRange:o.targetSelectionRange?e.bridge.translateBackRange({uri:o.targetUri},o.targetSelectionRange).range:void 0}}else{const t=e.bridge.translateBackRange({uri:o.uri},o.range);return{uri:t.textModel.uri,range:t.range}}}function Qn(o){return!o||o.length===0?{language:"*"}:o.map(e=>"notebook"in e?typeof e.notebook=="string"?{notebookType:e.notebook,language:e.language}:{notebookType:e.notebook.notebookType,language:e.language,pattern:e.notebook.pattern,scheme:e.notebook.scheme}:{language:e.language,pattern:e.pattern,scheme:e.scheme})}function cze(o,e){if(!e)return!0;const t=o.getLanguageId();if(o.uri.toString(!0),!e||e.length===0)return!0;for(const i of e)if(!(i.language&&i.language!=="*"&&i.language!==t))return!0;return!1}function x9(o){const e={severity:nze(o.severity),startLineNumber:o.range.start.line+1,startColumn:o.range.start.character+1,endLineNumber:o.range.end.line+1,endColumn:o.range.end.character+1,message:o.message,source:o.source,code:typeof o.code=="string"?o.code:o.code?.toString()};return o.tags&&(e.tags=o.tags.map(t=>sze(t)).filter(t=>t!==void 0)),o.relatedInformation&&(e.relatedInformation=o.relatedInformation.map(t=>({resource:yae.parse(t.location.uri),startLineNumber:t.location.range.start.line+1,startColumn:t.location.range.start.character+1,endLineNumber:t.location.range.end.line+1,endColumn:t.location.range.end.character+1,message:t.message}))),e}var dze=class extends ln{constructor(o){super(),this._connection=o,this._register(this._connection.capabilities.addStaticClientCapabilities({textDocument:{completion:{dynamicRegistration:!0,contextSupport:!0,completionItemKind:{valueSet:Array.from(Pae.keys())},completionItem:{tagSupport:{valueSet:Array.from(Oae.keys())},commitCharactersSupport:!0,deprecatedSupport:!0,preselectSupport:!0}}}})),this._register(this._connection.capabilities.registerCapabilityHandler(ht.textDocumentCompletion,!0,e=>Le.registerCompletionItemProvider(Qn(e.documentSelector),new hze(this._connection,e))))}},hze=class{constructor(o,e){Pe(this,"resolveCompletionItem"),this._client=o,this._capabilities=e,e.resolveProvider&&(this.resolveCompletionItem=async(t,i)=>(Vae(t,await this._client.server.completionItemResolve(t._lspItem),this._client.bridge,t._translated,t._model),t))}get triggerCharacters(){return this._capabilities.triggerCharacters}async provideCompletionItems(o,e,t,i){const n=this._client.bridge.translate(o,e),s=await this._client.server.textDocumentCompletion({textDocument:n.textDocument,position:n.position,context:t.triggerCharacter?{triggerKind:q6e(t.triggerKind),triggerCharacter:t.triggerCharacter}:void 0});return s?{suggestions:(Array.isArray(s)?s:s.items).map(r=>({...uze(r,this._client.bridge,n,o,e),_lspItem:r,_translated:n,_model:o}))}:{suggestions:[]}}};function uze(o,e,t,i,n){let s=o.insertText||o.label,r;o.textEdit&&("range"in o.textEdit?(s=o.textEdit.newText,r=Gp(e.translateBackRange(t.textDocument,o.textEdit.range),i).range):(s=o.textEdit.newText,r={insert:Gp(e.translateBackRange(t.textDocument,o.textEdit.insert),i).range,replace:Gp(e.translateBackRange(t.textDocument,o.textEdit.replace),i).range})),r||(r=i2.fromPositions(n,n));const a={label:o.label,kind:U6e(o.kind),insertText:s,sortText:o.sortText,filterText:o.filterText,preselect:o.preselect,commitCharacters:o.commitCharacters,range:r};return Vae(a,o,e,t,i),a}function Vae(o,e,t,i,n){e.detail!==void 0&&(o.detail=e.detail),e.documentation!==void 0&&(o.documentation=gze(e.documentation)),e.insertTextFormat!==void 0&&(o.insertTextRules=G6e(e.insertTextFormat)),e.tags&&e.tags.length>0&&(o.tags=e.tags.map($6e).filter(s=>s!==void 0)),e.additionalTextEdits&&e.additionalTextEdits.length>0&&(o.additionalTextEdits=e.additionalTextEdits.map(s=>({range:Gp(t.translateBackRange(i.textDocument,s.range),n).range,text:s.newText}))),e.command&&(o.command=sC(e.command))}function gze(o){if(o)return typeof o=="string"?o:{value:o.value}}var fze=class extends ln{constructor(o){super(),this._connection=o,this._register(this._connection.capabilities.addStaticClientCapabilities({textDocument:{hover:{dynamicRegistration:!0,contentFormat:[pN.Markdown,pN.PlainText]}}})),this._register(this._connection.capabilities.registerCapabilityHandler(ht.textDocumentHover,!0,e=>Le.registerHoverProvider(Qn(e.documentSelector),new pze(this._connection,e))))}},pze=class{constructor(o,e){this._client=o,this._capabilities=e}async provideHover(o,e,t){const i=this._client.bridge.translate(o,e),n=await this._client.server.textDocumentHover({textDocument:i.textDocument,position:i.position});return!n||!n.contents?null:{contents:mze(n.contents),range:n.range?this._client.bridge.translateBackRange(i.textDocument,n.range).range:void 0}}};function mze(o){return Array.isArray(o)?o.map(e=>PX(e)):[PX(o)]}function PX(o){return typeof o=="string"?{value:o}:"kind"in o?{value:o.value}:{value:`\`\`\`${o.language}
|
|
994
994
|
${o.value}
|
|
995
|
-
\`\`\``}}var _ze=class extends ln{constructor(o){super(),this._connection=o,this._register(this._connection.capabilities.addStaticClientCapabilities({textDocument:{signatureHelp:{dynamicRegistration:!0,contextSupport:!0,signatureInformation:{documentationFormat:[pN.Markdown,pN.PlainText],parameterInformation:{labelOffsetSupport:!0},activeParameterSupport:!0}}}})),this._register(this._connection.capabilities.registerCapabilityHandler(ht.textDocumentSignatureHelp,!0,e=>Le.registerSignatureHelpProvider(Qn(e.documentSelector),new bze(this._connection,e))))}},bze=class{constructor(o,e){Pe(this,"signatureHelpTriggerCharacters"),Pe(this,"signatureHelpRetriggerCharacters"),this._client=o,this._capabilities=e,this.signatureHelpTriggerCharacters=e.triggerCharacters,this.signatureHelpRetriggerCharacters=e.retriggerCharacters}async provideSignatureHelp(o,e,t,i){const n=this._client.bridge.translate(o,e),s=await this._client.server.textDocumentSignatureHelp({textDocument:n.textDocument,position:n.position,context:{triggerKind:rze(i.triggerKind),triggerCharacter:i.triggerCharacter,isRetrigger:i.isRetrigger}});return s?{value:{signatures:s.signatures.map(r=>({label:r.label,documentation:OX(r.documentation),parameters:r.parameters?.map(a=>({label:a.label,documentation:OX(a.documentation)}))||[],activeParameter:r.activeParameter})),activeSignature:s.activeSignature||0,activeParameter:s.activeParameter||0},dispose:()=>{}}:null}};function OX(o){if(o)return typeof o=="string"?o:{value:o.value}}var vze=class extends ln{constructor(o){super(),this._connection=o,this._register(this._connection.capabilities.addStaticClientCapabilities({textDocument:{definition:{dynamicRegistration:!0,linkSupport:!0}}})),this._register(this._connection.capabilities.registerCapabilityHandler(ht.textDocumentDefinition,!0,e=>Le.registerDefinitionProvider(Qn(e.documentSelector),new Cze(this._connection,e))))}},Cze=class{constructor(o,e){this._client=o,this._capabilities=e}async provideDefinition(o,e,t){const i=this._client.bridge.translate(o,e),n=await this._client.server.textDocumentDefinition({textDocument:i.textDocument,position:i.position});return n?Array.isArray(n)?n.map(s=>Ug(s,this._client)):Ug(n,this._client):null}},wze=class extends ln{constructor(o){super(),this._connection=o,this._register(this._connection.capabilities.addStaticClientCapabilities({textDocument:{declaration:{dynamicRegistration:!0,linkSupport:!0}}})),this._register(this._connection.capabilities.registerCapabilityHandler(ht.textDocumentDeclaration,!0,e=>Le.registerDeclarationProvider(Qn(e.documentSelector),new Sze(this._connection,e))))}},Sze=class{constructor(o,e){this._client=o,this._capabilities=e}async provideDeclaration(o,e,t){const i=this._client.bridge.translate(o,e),n=await this._client.server.textDocumentDeclaration({textDocument:i.textDocument,position:i.position});return n?Array.isArray(n)?n.map(s=>Ug(s,this._client)):Ug(n,this._client):null}},yze=class extends ln{constructor(o){super(),this._connection=o,this._register(this._connection.capabilities.addStaticClientCapabilities({textDocument:{typeDefinition:{dynamicRegistration:!0,linkSupport:!0}}})),this._register(this._connection.capabilities.registerCapabilityHandler(ht.textDocumentTypeDefinition,!0,e=>Le.registerTypeDefinitionProvider(Qn(e.documentSelector),new xze(this._connection,e))))}},xze=class{constructor(o,e){this._client=o,this._capabilities=e}async provideTypeDefinition(o,e,t){const i=this._client.bridge.translate(o,e),n=await this._client.server.textDocumentTypeDefinition({textDocument:i.textDocument,position:i.position});return n?Array.isArray(n)?n.map(s=>Ug(s,this._client)):Ug(n,this._client):null}},Lze=class extends ln{constructor(o){super(),this._connection=o,this._register(this._connection.capabilities.addStaticClientCapabilities({textDocument:{implementation:{dynamicRegistration:!0,linkSupport:!0}}})),this._register(this._connection.capabilities.registerCapabilityHandler(ht.textDocumentImplementation,!0,e=>Le.registerImplementationProvider(Qn(e.documentSelector),new Dze(this._connection,e))))}},Dze=class{constructor(o,e){this._client=o,this._capabilities=e}async provideImplementation(o,e,t){const i=this._client.bridge.translate(o,e),n=await this._client.server.textDocumentImplementation({textDocument:i.textDocument,position:i.position});return n?Array.isArray(n)?n.map(s=>Ug(s,this._client)):Ug(n,this._client):null}},kze=class extends ln{constructor(o){super(),this._connection=o,this._register(this._connection.capabilities.addStaticClientCapabilities({textDocument:{references:{dynamicRegistration:!0}}})),this._register(this._connection.capabilities.registerCapabilityHandler(ht.textDocumentReferences,!0,e=>Le.registerReferenceProvider(Qn(e.documentSelector),new Ize(this._connection,e))))}},Ize=class{constructor(o,e){this._client=o,this._capabilities=e}async provideReferences(o,e,t,i){const n=this._client.bridge.translate(o,e),s=await this._client.server.textDocumentReferences({textDocument:n.textDocument,position:n.position,context:{includeDeclaration:t.includeDeclaration}});return s?s.map(r=>{const a=this._client.bridge.translateBackRange({uri:r.uri},r.range);return{uri:a.textModel.uri,range:a.range}}):null}},Eze=class extends ln{constructor(o){super(),this._connection=o,this._register(this._connection.capabilities.addStaticClientCapabilities({textDocument:{documentHighlight:{dynamicRegistration:!0}}})),this._register(this._connection.capabilities.registerCapabilityHandler(ht.textDocumentDocumentHighlight,!0,e=>Le.registerDocumentHighlightProvider(Qn(e.documentSelector),new Tze(this._connection,e))))}},Tze=class{constructor(o,e){this._client=o,this._capabilities=e}async provideDocumentHighlights(o,e,t){const i=this._client.bridge.translate(o,e),n=await this._client.server.textDocumentDocumentHighlight({textDocument:i.textDocument,position:i.position});return n?n.map(s=>({range:this._client.bridge.translateBackRange(i.textDocument,s.range).range,kind:X6e(s.kind)})):null}},Nze=class extends ln{constructor(o){super(),this._connection=o,this._register(this._connection.capabilities.addStaticClientCapabilities({textDocument:{documentSymbol:{dynamicRegistration:!0,hierarchicalDocumentSymbolSupport:!0,symbolKind:{valueSet:Array.from(Fae.keys())},tagSupport:{valueSet:[Mae.Deprecated]}}}})),this._register(this._connection.capabilities.registerCapabilityHandler(ht.textDocumentDocumentSymbol,!0,e=>Le.registerDocumentSymbolProvider(Qn(e.documentSelector),new Rze(this._connection,e))))}},Rze=class{constructor(o,e){this._client=o,this._capabilities=e}async provideDocumentSymbols(o,e){const t=this._client.bridge.translate(o,new X_(1,1)),i=await this._client.server.textDocumentDocumentSymbol({textDocument:t.textDocument});return i?Array.isArray(i)&&i.length>0?"location"in i[0]?i.map(n=>Mze(n,this._client)):i.map(n=>zae(n,this._client,t.textDocument)):[]:null}};function zae(o,e,t){return{name:o.name,detail:o.detail||"",kind:Wae(o.kind),tags:o.tags?.map(i=>Bae(i)).filter(i=>i!==void 0)||[],range:e.bridge.translateBackRange(t,o.range).range,selectionRange:e.bridge.translateBackRange(t,o.selectionRange).range,children:o.children?.map(i=>zae(i,e,t))||[]}}function Mze(o,e){return{name:o.name,detail:"",kind:Wae(o.kind),tags:o.tags?.map(t=>Bae(t)).filter(t=>t!==void 0)||[],range:e.bridge.translateBackRange({uri:o.location.uri},o.location.range).range,selectionRange:e.bridge.translateBackRange({uri:o.location.uri},o.location.range).range,children:[]}}var Aze=class extends ln{constructor(o){super(),this._connection=o,this._register(this._connection.capabilities.addStaticClientCapabilities({textDocument:{rename:{dynamicRegistration:!0,prepareSupport:!0}}})),this._register(this._connection.capabilities.registerCapabilityHandler(ht.textDocumentRename,!0,e=>Le.registerRenameProvider(Qn(e.documentSelector),new Pze(this._connection,e))))}},Pze=class{constructor(o,e){this._client=o,this._capabilities=e}async provideRenameEdits(o,e,t,i){const n=this._client.bridge.translate(o,e),s=await this._client.server.textDocumentRename({textDocument:n.textDocument,position:n.position,newName:t});return s?Oze(s,this._client):null}async resolveRenameLocation(o,e,t){if(!this._capabilities.prepareProvider)return null;const i=this._client.bridge.translate(o,e),n=await this._client.server.textDocumentPrepareRename({textDocument:i.textDocument,position:i.position});if(!n)return null;if("range"in n&&"placeholder"in n)return{range:this._client.bridge.translateBackRange(i.textDocument,n.range).range,text:n.placeholder};if("defaultBehavior"in n)return null;if("start"in n&&"end"in n){const s=this._client.bridge.translateBackRange(i.textDocument,n).range;return{range:s,text:o.getValueInRange(s)}}return null}};function Oze(o,e){const t=[];if(o.changes)for(const i in o.changes){const n=o.changes[i];for(const s of n){const r=e.bridge.translateBackRange({uri:i},s.range);t.push({resource:r.textModel.uri,versionId:void 0,textEdit:{range:r.range,text:s.newText}})}}if(o.documentChanges){for(const i of o.documentChanges)if("textDocument"in i){const n=i.textDocument.uri;for(const s of i.edits){const r=e.bridge.translateBackRange({uri:n},s.range);t.push({resource:r.textModel.uri,versionId:i.textDocument.version,textEdit:{range:r.range,text:s.newText}})}}}return{edits:t}}var Fze=class extends ln{constructor(o){super(),this._connection=o,this._register(this._connection.capabilities.addStaticClientCapabilities({textDocument:{codeAction:{dynamicRegistration:!0,codeActionLiteralSupport:{codeActionKind:{valueSet:Array.from(Aae.keys())}},isPreferredSupport:!0,disabledSupport:!0,dataSupport:!0,resolveSupport:{properties:["edit"]}}}})),this._register(this._connection.capabilities.registerCapabilityHandler(ht.textDocumentCodeAction,!0,e=>Le.registerCodeActionProvider(Qn(e.documentSelector),new Wze(this._connection,e))))}},Wze=class{constructor(o,e){Pe(this,"resolveCodeAction"),this._client=o,this._capabilities=e,e.resolveProvider&&(this.resolveCodeAction=async(t,i)=>{if(t._lspAction){const n=await this._client.server.codeActionResolve(t._lspAction);n.edit&&(t.edit=FX(n.edit,this._client)),n.command&&(t.command=sC(n.command))}return t})}async provideCodeActions(o,e,t,i){const n=this._client.bridge.translate(o,e.getStartPosition()),s=await this._client.server.textDocumentCodeAction({textDocument:n.textDocument,range:this._client.bridge.translateRange(o,e),context:{diagnostics:t.markers.map(r=>({range:this._client.bridge.translateRange(o,i2.lift(r)),message:r.message,severity:tze(r.severity)})),triggerKind:z6e(t.trigger)}});return s?{actions:(Array.isArray(s)?s:[s]).map(r=>{if("title"in r&&!("kind"in r)){const a=r;return{title:a.title,command:sC(a)}}else{const a=r;return{title:a.title,kind:H6e(a.kind),isPreferred:a.isPreferred,disabled:a.disabled?.reason,edit:a.edit?FX(a.edit,this._client):void 0,command:sC(a.command),_lspAction:a}}}),dispose:()=>{}}:null}};function FX(o,e){const t=[];if(o.changes)for(const i in o.changes){const n=o.changes[i];for(const s of n){const r=e.bridge.translateBackRange({uri:i},s.range);t.push({resource:r.textModel.uri,versionId:void 0,textEdit:{range:r.range,text:s.newText}})}}if(o.documentChanges){for(const i of o.documentChanges)if("textDocument"in i){const n=i.textDocument.uri;for(const s of i.edits){const r=e.bridge.translateBackRange({uri:n},s.range);t.push({resource:r.textModel.uri,versionId:i.textDocument.version??void 0,textEdit:{range:r.range,text:s.newText}})}}}return{edits:t}}var Bze=class extends ln{constructor(o){super(),this._connection=o,this._register(this._connection.capabilities.addStaticClientCapabilities({textDocument:{codeLens:{dynamicRegistration:!0}}})),this._register(this._connection.capabilities.registerCapabilityHandler(ht.textDocumentCodeLens,!0,e=>Le.registerCodeLensProvider(Qn(e.documentSelector),new Hze(this._connection,e))))}},Hze=class{constructor(o,e){this._client=o,this._capabilities=e}async provideCodeLenses(o,e){const t=this._client.bridge.translate(o,new X_(1,1)),i=await this._client.server.textDocumentCodeLens({textDocument:t.textDocument});return i?{lenses:i.map(n=>({range:Gp(this._client.bridge.translateBackRange(t.textDocument,n.range),o).range,command:sC(n.command),_lspCodeLens:n})),dispose:()=>{}}:null}async resolveCodeLens(o,e,t){if(!this._capabilities.resolveProvider||!e._lspCodeLens)return e;const i=await this._client.server.codeLensResolve(e._lspCodeLens);return i.command&&(e.command={id:i.command.command,title:i.command.title,arguments:i.command.arguments}),e}},Vze=class extends ln{constructor(o){super(),this._connection=o,this._register(this._connection.capabilities.addStaticClientCapabilities({textDocument:{documentLink:{dynamicRegistration:!0,tooltipSupport:!0}}})),this._register(this._connection.capabilities.registerCapabilityHandler(ht.textDocumentDocumentLink,!0,e=>Le.registerLinkProvider(Qn(e.documentSelector),new zze(this._connection,e))))}},zze=class{constructor(o,e){this._client=o,this._capabilities=e}async provideLinks(o,e){const t=this._client.bridge.translate(o,new X_(1,1)),i=await this._client.server.textDocumentDocumentLink({textDocument:t.textDocument});return i?{links:i.map(n=>({range:this._client.bridge.translateBackRange(t.textDocument,n.range).range,url:n.target,tooltip:n.tooltip}))}:null}async resolveLink(o,e){return this._capabilities.resolveProvider,o}},Uze=class extends ln{constructor(o){super(),this._connection=o,this._register(this._connection.capabilities.addStaticClientCapabilities({textDocument:{formatting:{dynamicRegistration:!0}}})),this._register(this._connection.capabilities.registerCapabilityHandler(ht.textDocumentFormatting,!0,e=>Le.registerDocumentFormattingEditProvider(Qn(e.documentSelector),new $ze(this._connection,e))))}},$ze=class{constructor(o,e){this._client=o,this._capabilities=e}async provideDocumentFormattingEdits(o,e,t){const i=this._client.bridge.translate(o,new X_(1,1)),n=await this._client.server.textDocumentFormatting({textDocument:i.textDocument,options:{tabSize:e.tabSize,insertSpaces:e.insertSpaces}});return n?n.map(s=>({range:this._client.bridge.translateBackRange(i.textDocument,s.range).range,text:s.newText})):null}},jze=class extends ln{constructor(o){super(),this._connection=o,this._register(this._connection.capabilities.addStaticClientCapabilities({textDocument:{rangeFormatting:{dynamicRegistration:!0}}})),this._register(this._connection.capabilities.registerCapabilityHandler(ht.textDocumentRangeFormatting,!0,e=>Le.registerDocumentRangeFormattingEditProvider(Qn(e.documentSelector),new qze(this._connection,e))))}},qze=class{constructor(o,e){this._client=o,this._capabilities=e}async provideDocumentRangeFormattingEdits(o,e,t,i){const n=this._client.bridge.translate(o,e.getStartPosition()),s=await this._client.server.textDocumentRangeFormatting({textDocument:n.textDocument,range:this._client.bridge.translateRange(o,e),options:{tabSize:t.tabSize,insertSpaces:t.insertSpaces}});return s?s.map(r=>({range:this._client.bridge.translateBackRange(n.textDocument,r.range).range,text:r.newText})):null}},Kze=class extends ln{constructor(o){super(),this._connection=o,this._register(this._connection.capabilities.addStaticClientCapabilities({textDocument:{onTypeFormatting:{dynamicRegistration:!0}}})),this._register(this._connection.capabilities.registerCapabilityHandler(ht.textDocumentOnTypeFormatting,!0,e=>Le.registerOnTypeFormattingEditProvider(Qn(e.documentSelector),new Gze(this._connection,e))))}},Gze=class{constructor(o,e){Pe(this,"autoFormatTriggerCharacters"),this._client=o,this._capabilities=e,this.autoFormatTriggerCharacters=[e.firstTriggerCharacter,...e.moreTriggerCharacter||[]]}async provideOnTypeFormattingEdits(o,e,t,i,n){const s=this._client.bridge.translate(o,e),r=await this._client.server.textDocumentOnTypeFormatting({textDocument:s.textDocument,position:s.position,ch:t,options:{tabSize:i.tabSize,insertSpaces:i.insertSpaces}});return r?r.map(a=>({range:this._client.bridge.translateBackRange(s.textDocument,a.range).range,text:a.newText})):null}},Zze=class extends ln{constructor(o){super(),this._connection=o,this._register(this._connection.capabilities.addStaticClientCapabilities({textDocument:{foldingRange:{dynamicRegistration:!0,rangeLimit:5e3,lineFoldingOnly:!1,foldingRangeKind:{valueSet:[nC.Comment,nC.Imports,nC.Region]}}}})),this._register(this._connection.capabilities.registerCapabilityHandler(ht.textDocumentFoldingRange,!0,e=>Le.registerFoldingRangeProvider(Qn(e.documentSelector),new Yze(this._connection,e))))}},Yze=class{constructor(o,e){this._client=o,this._capabilities=e}async provideFoldingRanges(o,e,t){const i=this._client.bridge.translate(o,new X_(1,1)),n=await this._client.server.textDocumentFoldingRange({textDocument:i.textDocument});return n?n.map(s=>({start:s.startLine+1,end:s.endLine+1,kind:J6e(s.kind)})):null}},Xze=class extends ln{constructor(o){super(),this._connection=o,this._register(this._connection.capabilities.addStaticClientCapabilities({textDocument:{selectionRange:{dynamicRegistration:!0}}})),this._register(this._connection.capabilities.registerCapabilityHandler(ht.textDocumentSelectionRange,!0,e=>Le.registerSelectionRangeProvider(Qn(e.documentSelector),new Qze(this._connection,e))))}},Qze=class{constructor(o,e){this._client=o,this._capabilities=e}async provideSelectionRanges(o,e,t){const i=this._client.bridge.translate(o,e[0]),n=await this._client.server.textDocumentSelectionRange({textDocument:i.textDocument,positions:e.map(s=>this._client.bridge.translate(o,s).position)});return n?n.map(s=>this.convertSelectionRange(s,i.textDocument)):null}convertSelectionRange(o,e){const t=[];let i=o;for(;i;)t.push({range:this._client.bridge.translateBackRange(e,i.range).range}),i=i.parent;return t}},Jze=class extends ln{constructor(o){super(),Pe(this,"_providers",new Set),this._connection=o,this._register(this._connection.capabilities.addStaticClientCapabilities({textDocument:{inlayHint:{dynamicRegistration:!0,resolveSupport:{properties:["tooltip","textEdits","label.tooltip","label.location","label.command"]}}},workspace:{inlayHint:{refreshSupport:!0}}})),this._register(this._connection.connection.registerRequestHandler(bx.client.workspaceInlayHintRefresh,async()=>{for(const e of this._providers)e.refresh();return{ok:null}})),this._register(this._connection.capabilities.registerCapabilityHandler(ht.textDocumentInlayHint,!0,e=>{const t=new eUe(this._connection,e);this._providers.add(t);const i=Le.registerInlayHintsProvider(Qn(e.documentSelector),t);return{dispose:()=>{this._providers.delete(t),i.dispose()}}}))}},eUe=class{constructor(o,e){Pe(this,"_onDidChangeInlayHints",new dw),Pe(this,"onDidChangeInlayHints",this._onDidChangeInlayHints.event),Pe(this,"resolveInlayHint"),this._client=o,this._capabilities=e,e.resolveProvider&&(this.resolveInlayHint=async(t,i)=>{const n=await this._client.server.inlayHintResolve(t._lspInlayHint);return n.tooltip&&(t.tooltip=L9(n.tooltip)),n.label!==t._lspInlayHint.label&&(t.label=WX(n.label)),n.textEdits&&(t.textEdits=n.textEdits.map(s=>({range:this._client.bridge.translateBackRange({uri:t._targetUri},s.range).range,text:s.newText}))),t})}refresh(){this._onDidChangeInlayHints.fire()}async provideInlayHints(o,e,t){const i=this._client.bridge.translate(o,e.getStartPosition()),n=await tUe(async()=>await this._client.server.textDocumentInlayHint({textDocument:i.textDocument,range:this._client.bridge.translateRange(o,e)}));return n?{hints:n.map(s=>({label:WX(s.label),position:Gp(this._client.bridge.translateBack(i.textDocument,s.position),o).position,kind:lze(s.kind),tooltip:L9(s.tooltip),paddingLeft:s.paddingLeft,paddingRight:s.paddingRight,textEdits:s.textEdits?.map(r=>({range:Gp(this._client.bridge.translateBackRange(i.textDocument,r.range),o).range,text:r.newText})),_lspInlayHint:s,_targetUri:i.textDocument.uri})),dispose:()=>{}}:null}};async function tUe(o){for(let e=3;;e--)try{return await o()}catch(t){if(t.message==="content modified"&&e>0)continue;throw t}}function WX(o){return typeof o=="string"?o:o.map(e=>{const t={label:e.value,tooltip:L9(e.tooltip),command:sC(e.command)};return e.location&&(t.location={uri:yae.parse(e.location.uri),range:new i2(e.location.range.start.line+1,e.location.range.start.character+1,e.location.range.end.line+1,e.location.range.end.character+1)}),t})}function L9(o){if(o)return typeof o=="string"?o:{value:o.value}}var iUe=class extends ln{constructor(o){super(),this._connection=o,this._register(this._connection.capabilities.addStaticClientCapabilities({textDocument:{semanticTokens:{dynamicRegistration:!0,requests:{range:!0,full:{delta:!0}},tokenTypes:["namespace","type","class","enum","interface","struct","typeParameter","parameter","variable","property","enumMember","event","function","method","macro","keyword","modifier","comment","string","number","regexp","operator","decorator"],tokenModifiers:["declaration","definition","readonly","static","deprecated","abstract","async","modification","documentation","defaultLibrary"],formats:[B6e.Relative],overlappingTokenSupport:!1,multilineTokenSupport:!0}}})),this._register(this._connection.capabilities.registerCapabilityHandler(ht.textDocumentSemanticTokensFull,!0,e=>Le.registerDocumentSemanticTokensProvider(Qn(e.documentSelector),new nUe(this._connection,e))))}},nUe=class{constructor(o,e){this._client=o,this._capabilities=e}getLegend(){return{tokenTypes:this._capabilities.legend.tokenTypes,tokenModifiers:this._capabilities.legend.tokenModifiers}}releaseDocumentSemanticTokens(o){}async provideDocumentSemanticTokens(o,e,t){const i=this._client.bridge.translate(o,o.getPositionAt(0)),n=this._capabilities.full;if(e&&n&&typeof n=="object"&&n.delta){const r=await this._client.server.textDocumentSemanticTokensFullDelta({textDocument:i.textDocument,previousResultId:e});return r?"edits"in r?{resultId:r.resultId,edits:r.edits.map(a=>({start:a.start,deleteCount:a.deleteCount,data:a.data?new Uint32Array(a.data):void 0}))}:{resultId:r.resultId,data:new Uint32Array(r.data)}:null}const s=await this._client.server.textDocumentSemanticTokensFull({textDocument:i.textDocument});return s?{resultId:s.resultId,data:new Uint32Array(s.data)}:null}async provideDocumentSemanticTokensEdits(o,e,t){return this.provideDocumentSemanticTokens(o,e,t)}},sUe=class extends ln{constructor(o){super(),Pe(this,"_diagnosticsMarkerOwner","lsp"),Pe(this,"_pullDiagnosticProviders",new Map),this._connection=o,this._register(this._connection.capabilities.addStaticClientCapabilities({textDocument:{publishDiagnostics:{relatedInformation:!0,tagSupport:{valueSet:[...Hae.keys()]},versionSupport:!0,codeDescriptionSupport:!0,dataSupport:!0},diagnostic:{dynamicRegistration:!0,relatedDocumentSupport:!0}}})),this._register(this._connection.connection.registerNotificationHandler(bx.client.textDocumentPublishDiagnostics,e=>this._handlePublishDiagnostics(e))),this._register(this._connection.capabilities.registerCapabilityHandler(ht.textDocumentDiagnostic,!0,e=>{const t=new Mz;for(const i of Kp.getModels())this._addPullDiagnosticProvider(i,e,t);return t.add(Kp.onDidCreateModel(i=>{this._addPullDiagnosticProvider(i,e,t)})),t}))}_addPullDiagnosticProvider(o,e,t){if(o.getLanguageId(),!cze(o,e.documentSelector))return;const i=new oUe(o,this._connection,this._diagnosticsMarkerOwner,e);this._pullDiagnosticProviders.set(o,i),t.add(i),t.add(o.onWillDispose(()=>{this._pullDiagnosticProviders.delete(o)}))}_handlePublishDiagnostics(o){const e=o.uri;try{const t=this._connection.bridge.translateBack({uri:e},{line:0,character:0}).textModel;if(!t||t.isDisposed())return;const i=o.diagnostics.map(n=>x9(n));Kp.setModelMarkers(t,this._diagnosticsMarkerOwner,i)}catch(t){console.debug(`Could not set diagnostics for ${e}:`,t)}}},oUe=class extends ln{constructor(o,e,t,i){super(),Pe(this,"_updateHandle"),Pe(this,"_previousResultId"),this._model=o,this._connection=e,this._markerOwner=t,this._capability=i,this._register(this._model.onDidChangeContent(()=>{this._scheduleDiagnosticUpdate()})),this._scheduleDiagnosticUpdate()}_scheduleDiagnosticUpdate(){this._updateHandle!==void 0&&clearTimeout(this._updateHandle),this._updateHandle=window.setTimeout(()=>{this._updateHandle=void 0,this._requestDiagnostics()},500)}async _requestDiagnostics(){if(!this._model.isDisposed())try{const o=this._connection.bridge.translate(this._model,new X_(1,1)),e=await this._connection.server.textDocumentDiagnostic({textDocument:o.textDocument,identifier:this._capability.identifier,previousResultId:this._previousResultId});if(this._model.isDisposed())return;this._handleDiagnosticReport(e)}catch(o){console.error("Error requesting diagnostics:",o)}}_handleDiagnosticReport(o){if(o.kind==="full"){this._previousResultId=o.resultId;const e=o.items.map(t=>x9(t));Kp.setModelMarkers(this._model,this._markerOwner,e),"relatedDocuments"in o&&o.relatedDocuments&&this._handleRelatedDocuments(o.relatedDocuments)}else o.kind==="unchanged"&&(this._previousResultId=o.resultId)}_handleRelatedDocuments(o){for(const[e,t]of Object.entries(o))try{const i=this._connection.bridge.translateBack({uri:e},{line:0,character:0}).textModel;if(!i||i.isDisposed())continue;if(t.kind==="full"){const n=t.items.map(s=>x9(s));Kp.setModelMarkers(i,this._markerOwner,n)}}catch(i){console.debug(`Could not set related diagnostics for ${e}:`,i)}}dispose(){this._updateHandle!==void 0&&(clearTimeout(this._updateHandle),this._updateHandle=void 0),super.dispose()}},rUe=class{constructor(o,e,t,i){this.server=o,this.bridge=e,this.capabilities=t,this.connection=i}},aUe=class extends ln{constructor(o){super(),Pe(this,"_staticCapabilities",new Set),Pe(this,"_dynamicFromStatic",dUe.create()),Pe(this,"_registrations",new Map),Pe(this,"_serverCapabilities"),this._connection=o,this._register(this._connection.registerRequestHandler(bx.client.clientRegisterCapability,async e=>{for(const t of e.registrations){const i=HX(t.method),n=new BX(t.id,i,t.registerOptions,!1);this._registerCapabilityOptions(n)}return{ok:null}})),this._register(this._connection.registerRequestHandler(bx.client.clientUnregisterCapability,async e=>{for(const t of e.unregisterations){const i=HX(t.method),n=this._registrations.get(i),s=n?.registrations.get(t.id);if(!s)throw new Error(`No registration for method ${t.method} with id ${t.id}`);s?.handlerDisposables.forEach(r=>r.dispose()),n?.registrations.delete(t.id)}return{ok:null}}))}_registerCapabilityOptions(o){let e=this._registrations.get(o.capability);if(e||(e=new VX,this._registrations.set(o.capability,e)),e.registrations.has(o.id))throw new Error(`Handler for method ${o.capability.method} with id ${o.id} already registered`);e.registrations.set(o.id,o);for(const t of e.handlers)!t.handleStaticCapability&&o.isFromStatic||o.handlerDisposables.set(t,t.handler(o.options))}setServerCapabilities(o){if(this._serverCapabilities)throw new Error("Server capabilities already set");this._serverCapabilities=o;for(const e of Object.values(ht)){const t=this._dynamicFromStatic.getOptions(e,o);t&&this._registerCapabilityOptions(new BX(e.method,e,t,!0))}}getClientCapabilities(){const o={};for(const e of this._staticCapabilities)$ae(o,e.cap);return o}addStaticClientCapabilities(o){const e={cap:o};return this._staticCapabilities.add(e),{dispose:()=>{this._staticCapabilities.delete(e)}}}registerCapabilityHandler(o,e,t){let i=this._registrations.get(o);i||(i=new VX,this._registrations.set(o,i));const n=new lUe(o,e,t);i.handlers.add(n);for(const s of i.registrations.values())!n.handleStaticCapability&&s.isFromStatic||s.handlerDisposables.set(n,t(s.options));return{dispose:()=>{i.handlers.delete(n);for(const s of i.registrations.values()){const r=s.handlerDisposables.get(n);r&&(r.dispose(),s.handlerDisposables.delete(n))}}}}},lUe=class{constructor(o,e,t){this.capability=o,this.handleStaticCapability=e,this.handler=t}},BX=class{constructor(o,e,t,i){Pe(this,"handlerDisposables",new Map),this.id=o,this.capability=e,this.options=t,this.isFromStatic=i}};const cUe=new Map([...Object.values(ht)].map(o=>[o.method,o]));function HX(o){const e=cUe.get(o);if(!e)throw new Error(`No capability found for method ${o}`);return e}var VX=class{constructor(){Pe(this,"handlers",new Set),Pe(this,"registrations",new Map)}},dUe=class Uae{constructor(){Pe(this,"_mappings",new Map)}static create(){const e=new Uae;return e.set(ht.textDocumentDidChange,t=>{if(t.textDocumentSync!==void 0)return typeof t.textDocumentSync=="object"?{syncKind:t.textDocumentSync.change??O6e.None,documentSelector:null}:{syncKind:t.textDocumentSync,documentSelector:null}}),e.set(ht.textDocumentCompletion,t=>t.completionProvider),e.set(ht.textDocumentHover,t=>t.hoverProvider),e.set(ht.textDocumentSignatureHelp,t=>t.signatureHelpProvider),e.set(ht.textDocumentDefinition,t=>t.definitionProvider),e.set(ht.textDocumentReferences,t=>t.referencesProvider),e.set(ht.textDocumentDocumentHighlight,t=>t.documentHighlightProvider),e.set(ht.textDocumentDocumentSymbol,t=>t.documentSymbolProvider),e.set(ht.textDocumentCodeAction,t=>t.codeActionProvider),e.set(ht.textDocumentCodeLens,t=>t.codeLensProvider),e.set(ht.textDocumentDocumentLink,t=>t.documentLinkProvider),e.set(ht.textDocumentFormatting,t=>t.documentFormattingProvider),e.set(ht.textDocumentRangeFormatting,t=>t.documentRangeFormattingProvider),e.set(ht.textDocumentOnTypeFormatting,t=>t.documentOnTypeFormattingProvider),e.set(ht.textDocumentRename,t=>t.renameProvider),e.set(ht.textDocumentFoldingRange,t=>t.foldingRangeProvider),e.set(ht.textDocumentDeclaration,t=>t.declarationProvider),e.set(ht.textDocumentTypeDefinition,t=>t.typeDefinitionProvider),e.set(ht.textDocumentImplementation,t=>t.implementationProvider),e.set(ht.textDocumentDocumentColor,t=>t.colorProvider),e.set(ht.textDocumentSelectionRange,t=>t.selectionRangeProvider),e.set(ht.textDocumentLinkedEditingRange,t=>t.linkedEditingRangeProvider),e.set(ht.textDocumentPrepareCallHierarchy,t=>t.callHierarchyProvider),e.set(ht.textDocumentSemanticTokensFull,t=>t.semanticTokensProvider),e.set(ht.textDocumentInlayHint,t=>t.inlayHintProvider),e.set(ht.textDocumentInlineValue,t=>t.inlineValueProvider),e.set(ht.textDocumentDiagnostic,t=>t.diagnosticProvider),e.set(ht.textDocumentMoniker,t=>t.monikerProvider),e.set(ht.textDocumentPrepareTypeHierarchy,t=>t.typeHierarchyProvider),e.set(ht.workspaceSymbol,t=>t.workspaceSymbolProvider),e.set(ht.workspaceExecuteCommand,t=>t.executeCommandProvider),e}set(e,t){if(this._mappings.has(e.method))throw new Error(`Capability for method ${e.method} already registered`);this._mappings.set(e.method,t)}getOptions(e,t){const i=this._mappings.get(e.method);if(i)return i(t)}};function $ae(o,e){for(const t of Object.keys(e)){const i=e[t];if(i===void 0)continue;const n=o[t];if(n===void 0){o[t]=i;continue}if(typeof i!="object"||i===null){o[t]=i;continue}if(typeof n!="object"||n===null){o[t]=i;continue}$ae(n,i)}}var hUe=class extends ln{constructor(o,e){super(),Pe(this,"_managedModels",new Map),Pe(this,"_managedModelsReverse",new Map),Pe(this,"_started",!1),this._server=o,this._capabilities=e,this._register(this._capabilities.addStaticClientCapabilities({textDocument:{synchronization:{dynamicRegistration:!0,willSave:!1,willSaveWaitUntil:!1,didSave:!1}}})),this._register(e.registerCapabilityHandler(ht.textDocumentDidChange,!0,t=>{if(this._started)return{dispose:()=>{}};this._started=!0,this._register(Kp.onDidCreateModel(i=>{this._getOrCreateManagedModel(i)}));for(const i of Kp.getModels())this._getOrCreateManagedModel(i);return{dispose:()=>{}}}))}_getOrCreateManagedModel(o){if(!this._started)throw new Error("Not started");const e=o.uri.toString(!0).toLowerCase();let t=this._managedModels.get(o);return t||(t=new uUe(o,this._server),this._managedModels.set(o,t),this._managedModelsReverse.set(e,o)),o.onWillDispose(()=>{t.dispose(),this._managedModels.delete(o),this._managedModelsReverse.delete(e)}),t}translateBack(o,e){const t=o.uri.toLowerCase(),i=this._managedModelsReverse.get(t);if(!i)throw new Error(`No text model for uri ${t}`);return{textModel:i,position:new X_(e.line+1,e.character+1)}}translateBackRange(o,e){const t=o.uri.toLowerCase(),i=this._managedModelsReverse.get(t);if(!i)throw new Error(`No text model for uri ${t}`);return{textModel:i,range:new i2(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}}translate(o,e){return{textDocument:{uri:o.uri.toString(!0)},position:{line:e.lineNumber-1,character:e.column-1}}}translateRange(o,e){return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}},uUe=class extends ln{constructor(o,e){super(),this._textModel=o,this._api=e;const t=o.uri.toString(!0).toLowerCase();this._api.textDocumentDidOpen({textDocument:{languageId:o.getLanguageId(),uri:t,version:o.getVersionId(),text:o.getValue()}}),this._register(o.onDidChangeContent(i=>{const n=i.changes.map(s=>gUe(s));this._api.textDocumentDidChange({textDocument:{uri:t,version:o.getVersionId()},contentChanges:n})})),this._register({dispose:()=>{this._api.textDocumentDidClose({textDocument:{uri:t}})}})}};function gUe(o){return{range:fUe(o.range),rangeLength:o.rangeLength,text:o.text}}function fUe(o){return{start:{line:o.startLineNumber-1,character:o.startColumn-1},end:{line:o.endLineNumber-1,character:o.endColumn-1}}}var pUe=class{constructor(o){Pe(this,"_connection"),Pe(this,"_capabilitiesRegistry"),Pe(this,"_bridge"),Pe(this,"_initPromise");const e=w9.fromTransport(o),t=bx.getServer(e,{});e.startListen(),this._capabilitiesRegistry=new aUe(e),this._bridge=new hUe(t.server,this._capabilitiesRegistry),this._connection=new rUe(t.server,this._bridge,this._capabilitiesRegistry,e),this.createFeatures(),this._initPromise=this._init()}async _init(){const o=await this._connection.server.initialize({processId:null,capabilities:this._capabilitiesRegistry.getClientCapabilities(),rootUri:null});this._connection.server.initialized({}),this._capabilitiesRegistry.setServerCapabilities(o.capabilities)}createFeatures(){const o=new Mz;return o.add(new dze(this._connection)),o.add(new fze(this._connection)),o.add(new _ze(this._connection)),o.add(new vze(this._connection)),o.add(new wze(this._connection)),o.add(new yze(this._connection)),o.add(new Lze(this._connection)),o.add(new kze(this._connection)),o.add(new Eze(this._connection)),o.add(new Nze(this._connection)),o.add(new Aze(this._connection)),o.add(new Fze(this._connection)),o.add(new Bze(this._connection)),o.add(new Vze(this._connection)),o.add(new Uze(this._connection)),o.add(new jze(this._connection)),o.add(new Kze(this._connection)),o.add(new Zze(this._connection)),o.add(new Xze(this._connection)),o.add(new Jze(this._connection)),o.add(new iUe(this._connection)),o.add(new sUe(this._connection)),o}},Vb=null;typeof WebSocket<"u"?Vb=WebSocket:typeof MozWebSocket<"u"?Vb=MozWebSocket:typeof global<"u"?Vb=global.WebSocket||global.MozWebSocket:typeof window<"u"?Vb=window.WebSocket||window.MozWebSocket:typeof self<"u"&&(Vb=self.WebSocket||self.MozWebSocket);var mUe=Vb;function _Ue(o){return"host"in o?{address:`${o.forceTls?"wss":"ws"}://${o.host}:${o.port}`}:o}var bUe=class D9 extends xae{constructor(e){super(),Pe(this,"socket"),Pe(this,"errorEmitter",new Rz),Pe(this,"onError",this.errorEmitter),this.socket=e,e.onmessage=t=>{try{const i=t.data;if(typeof i=="string"){const n=JSON.parse(i);this._dispatchReceivedMessage(n)}else throw new Error("Not supported")}catch(i){this.errorEmitter.fire({error:i})}},e.onclose=t=>{this._onConnectionClosed()}}static connectTo(e){const t=new mUe(_Ue(e).address);return new Promise((i,n)=>{t.onerror=s=>{n(s)},t.onopen=()=>{i(new D9(t))}})}static fromWebSocket(e){return new D9(e)}close(){this.socket.close()}dispose(){this.close()}_sendImpl(e){const t=JSON.stringify(e);return new Promise((i,n)=>{this.socket.send(t,s=>{s?n(s):i()})})}toString(){return`${this.id}@${this.socket.url}`}},jae=class extends xae{constructor(o,e=void 0,t=void 0){super(),Pe(this,"_windowLike"),Pe(this,"_source"),Pe(this,"_loadingState"),Pe(this,"_disposed",!1),Pe(this,"_messageHandler",({data:i,source:n})=>{this._source&&n!==this._source||typeof i=="object"&&i&&this._dispatchReceivedMessage(i)}),this._windowLike=o,this._source=e,this._loadingState=t,this._windowLike.addEventListener("message",this._messageHandler)}async _sendImpl(o){if(this._disposed)throw new Error("Transport is disposed");this._loadingState&&!this._loadingState.loaded&&await this._loadingState.onLoaded,this._windowLike.postMessage(o)}toString(){return`${this.id}@${this._windowLike}`}dispose(){this._disposed||(this._disposed=!0,this._windowLike.removeEventListener("message",this._messageHandler))}};function vUe(o){if(typeof window>"u")throw new Error("call this function from the main browser thread");return new jae(o)}function CUe(o){if(typeof window>"u")throw new Error("call this function from the main browser thread");return new jae(o.contentWindow,o.contentWindow,{loaded:window.document.readyState==="complete",onLoaded:new Promise(e=>{window.addEventListener("load",()=>e())})})}const GKe=Object.freeze(Object.defineProperty({__proto__:null,MonacoLspClient:pUe,WebSocketTransport:bUe,createTransportToIFrame:CUe,createTransportToWorker:vUe},Symbol.toStringTag,{value:"Module"})),qae={},eF={};class Az{static getOrCreate(e){return eF[e]||(eF[e]=new Az(e)),eF[e]}constructor(e){this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((t,i)=>{this._lazyLoadPromiseResolve=t,this._lazyLoadPromiseReject=i})}load(){return this._loadingTriggered||(this._loadingTriggered=!0,qae[this._languageId].loader().then(e=>this._lazyLoadPromiseResolve(e),e=>this._lazyLoadPromiseReject(e))),this._lazyLoadPromise}}function We(o){const e=o.id;qae[e]=o,Le.register(o);const t=Az.getOrCreate(e);Le.registerTokensProviderFactory(e,{create:async()=>(await t.load()).language}),Le.onLanguageEncountered(e,async()=>{const i=await t.load();Le.setLanguageConfiguration(e,i.conf)})}We({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>Ae(()=>import("./DLDM7-KI.js"),[],import.meta.url)});We({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>Ae(()=>import("./DNDY2TF8.js"),[],import.meta.url)});We({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>Ae(()=>import("./Y6nb8tq_.js"),[],import.meta.url)});We({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>Ae(()=>import("./BwHxbl9M.js"),[],import.meta.url)});We({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>Ae(()=>import("./CFznDFnq.js"),[],import.meta.url)});We({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>Ae(()=>import("./Bf6VGUru.js"),[],import.meta.url)});We({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>Ae(()=>import("./Dnu-v4kV.js"),[],import.meta.url)});We({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>Ae(()=>import("./Bd8akH9Z.js"),[],import.meta.url)});We({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>Ae(()=>import("./BbWJElDN.js"),[],import.meta.url)});We({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>Ae(()=>import("./BbWJElDN.js"),[],import.meta.url)});We({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>Ae(()=>import("./Co3qMtFm.js"),[],import.meta.url)});We({id:"csp",extensions:[".csp"],aliases:["CSP","csp"],loader:()=>Ae(()=>import("./D-4FJmMZ.js"),[],import.meta.url)});We({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>Ae(()=>import("./DdJfP1eB.js"),[],import.meta.url)});We({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>Ae(()=>import("./cTPe9QuQ.js"),[],import.meta.url)});We({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>Ae(()=>import("./BOtBlQCF.js"),[],import.meta.url)});We({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>Ae(()=>import("./BG73LgW2.js"),[],import.meta.url)});We({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>Ae(()=>import("./BEgZUVRK.js"),[],import.meta.url)});We({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>Ae(()=>import("./BkW5O-1t.js"),[],import.meta.url)});We({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>Ae(()=>import("./BeJ5waoc.js"),[],import.meta.url)});We({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>Ae(()=>import("./PahG7c26.js"),[],import.meta.url)});We({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>Ae(()=>import("./3OP-tats.js"),[],import.meta.url).then(o=>o.TagAutoInterpolationDollar)});We({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>Ae(()=>import("./3OP-tats.js"),[],import.meta.url).then(o=>o.TagAngleInterpolationDollar)});We({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>Ae(()=>import("./3OP-tats.js"),[],import.meta.url).then(o=>o.TagBracketInterpolationDollar)});We({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>Ae(()=>import("./3OP-tats.js"),[],import.meta.url).then(o=>o.TagAngleInterpolationBracket)});We({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>Ae(()=>import("./3OP-tats.js"),[],import.meta.url).then(o=>o.TagBracketInterpolationBracket)});We({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>Ae(()=>import("./3OP-tats.js"),[],import.meta.url).then(o=>o.TagAutoInterpolationDollar)});We({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>Ae(()=>import("./3OP-tats.js"),[],import.meta.url).then(o=>o.TagAutoInterpolationBracket)});We({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>Ae(()=>import("./acbASCJo.js"),[],import.meta.url)});We({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>Ae(()=>import("./BxJiqAUM.js"),[],import.meta.url)});We({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>Ae(()=>import("./Bw9Opv8X.js"),[],import.meta.url)});We({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>Ae(()=>import("./DtV1sZF8.js"),[],import.meta.url)});We({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>Ae(()=>import("./BHmRsJkZ.js"),[],import.meta.url)});We({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>Ae(()=>import("./Kd9XrMLS.js"),[],import.meta.url)});We({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>Ae(()=>import("./CXBNlu9o.js"),[],import.meta.url)});We({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>Ae(()=>import("./BYpXsiCq.js"),__vite__mapDeps([0,1]),import.meta.url)});We({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>Ae(()=>import("./cl7-CwDS.js"),[],import.meta.url)});We({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>Ae(()=>import("./s7OhZKlX.js"),[],import.meta.url)});We({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>Ae(()=>import("./9HpZscsL.js"),[],import.meta.url)});We({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>Ae(()=>import("./OrD6JF1K.js"),[],import.meta.url)});We({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>Ae(()=>import("./Cyyb5UIc.js"),[],import.meta.url)});We({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>Ae(()=>import("./tcnXcM0S.js"),[],import.meta.url)});We({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>Ae(()=>import("./B8OfTtLu.js"),[],import.meta.url)});We({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>Ae(()=>import("./BFxVWTOG.js"),[],import.meta.url)});We({id:"mdx",extensions:[".mdx"],aliases:["MDX","mdx"],loader:()=>Ae(()=>import("./CIhlsnLM.js"),[],import.meta.url)});We({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>Ae(()=>import("./CiqrrVzr.js"),[],import.meta.url)});We({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>Ae(()=>import("./DmeGPVcC.js"),[],import.meta.url)});We({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>Ae(()=>import("./C_tMU-Nz.js"),[],import.meta.url)});We({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>Ae(()=>import("./BDtDVThU.js"),[],import.meta.url)});We({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>Ae(()=>import("./vHIfCaH5.js"),[],import.meta.url)});We({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>Ae(()=>import("./DtZ0uQbO.js"),[],import.meta.url)});We({id:"perl",extensions:[".pl",".pm"],aliases:["Perl","pl"],loader:()=>Ae(()=>import("./Ub6l9XKa.js"),[],import.meta.url)});We({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>Ae(()=>import("./BlNEE0v7.js"),[],import.meta.url)});We({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>Ae(()=>import("./BBUBE1dy.js"),[],import.meta.url)});We({id:"pla",extensions:[".pla"],loader:()=>Ae(()=>import("./DSh2-awV.js"),[],import.meta.url)});We({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>Ae(()=>import("./CocnycG-.js"),[],import.meta.url)});We({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>Ae(()=>import("./tScXyioY.js"),[],import.meta.url)});We({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>Ae(()=>import("./COWaemsV.js"),[],import.meta.url)});We({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>Ae(()=>import("./Brw8urJB.js"),[],import.meta.url)});We({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>Ae(()=>import("./8SOpv6rk.js"),[],import.meta.url)});We({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>Ae(()=>import("./BMxLlxet.js"),[],import.meta.url)});We({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>Ae(()=>import("./Bw9ernYp.js"),[],import.meta.url)});We({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>Ae(()=>import("./j7ic8hl3.js"),[],import.meta.url)});We({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>Ae(()=>import("./DNMpoEvN.js"),[],import.meta.url)});We({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>Ae(()=>import("./Bu5POkcn.js"),[],import.meta.url)});We({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>Ae(()=>import("./Bs9aos_-.js"),[],import.meta.url)});We({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>Ae(()=>import("./CqXO7rUv.js"),[],import.meta.url)});We({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>Ae(()=>import("./zBfavPgS.js"),[],import.meta.url)});We({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>Ae(()=>import("./BzKRNQWT.js"),[],import.meta.url)});We({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>Ae(()=>import("./BBc9UKZt.js"),[],import.meta.url)});We({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:()=>Ae(()=>import("./D9hQfWCl.js"),[],import.meta.url)});We({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>Ae(()=>import("./BPhDTwHR.js"),[],import.meta.url)});We({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>Ae(()=>import("./CBJaRo0y.js"),[],import.meta.url)});We({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>Ae(()=>import("./DiJ1NA_G.js"),[],import.meta.url)});We({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>Ae(()=>import("./Db0IVjzk.js"),[],import.meta.url)});We({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>Ae(()=>import("./CnS9iZB_.js"),[],import.meta.url)});We({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>Ae(()=>import("./CJmd_6j2.js"),[],import.meta.url)});We({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>Ae(()=>import("./ClhHkBeG.js"),[],import.meta.url)});We({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib",".TcPOU",".TcDUT",".TcGVL",".TcIO"],aliases:["StructuredText","scl","stl"],loader:()=>Ae(()=>import("./CHwy0fLd.js"),[],import.meta.url)});We({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>Ae(()=>import("./Bqt4WxQ4.js"),[],import.meta.url)});We({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>Ae(()=>import("./Bs9z6M-B.js"),[],import.meta.url)});We({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>Ae(()=>import("./Bs9z6M-B.js"),[],import.meta.url)});We({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>Ae(()=>import("./Dm6ycUr_.js"),[],import.meta.url)});We({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>Ae(()=>import("./Csy3S7wG.js"),[],import.meta.url)});We({id:"typescript",extensions:[".ts",".tsx",".cts",".mts"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>Ae(()=>import("./BGsa1Rn-.js"),[],import.meta.url)});We({id:"typespec",extensions:[".tsp"],aliases:["TypeSpec"],loader:()=>Ae(()=>import("./Btyra-wh.js"),[],import.meta.url)});We({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>Ae(()=>import("./Db0cS2oM.js"),[],import.meta.url)});We({id:"wgsl",extensions:[".wgsl"],aliases:["WebGPU Shading Language","WGSL","wgsl"],loader:()=>Ae(()=>import("./DumH7NcR.js"),[],import.meta.url)});We({id:"xml",extensions:[".xml",".xsd",".dtd",".ascx",".csproj",".config",".props",".targets",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xslt",".xsl"],firstLine:"(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)",aliases:["XML","xml"],mimetypes:["text/xml","application/xml","application/xaml+xml","application/xml-dtd"],loader:()=>Ae(()=>import("./Cv_fAsRR.js"),[],import.meta.url)});We({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>Ae(()=>import("./Cueu30DH.js"),[],import.meta.url)});let Pz=class{constructor(e,t,i){this._onDidChange=new dw,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(e){this.setOptions(e)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}};const Oz={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},Fz={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},Kae=new Pz("css",Oz,Fz),Gae=new Pz("scss",Oz,Fz),Zae=new Pz("less",Oz,Fz);function Wz(){return Ae(()=>import("./SrhdBdnO.js"),__vite__mapDeps([2,3,4]),import.meta.url)}Le.onLanguage("less",()=>{Wz().then(o=>o.setupMode(Zae))});Le.onLanguage("scss",()=>{Wz().then(o=>o.setupMode(Gae))});Le.onLanguage("css",()=>{Wz().then(o=>o.setupMode(Kae))});const YKe=Object.freeze(Object.defineProperty({__proto__:null,cssDefaults:Kae,lessDefaults:Zae,scssDefaults:Gae},Symbol.toStringTag,{value:"Module"}));let wUe=class{constructor(e,t,i){this._onDidChange=new dw,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}};const SUe={tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},n2={format:SUe,suggest:{},data:{useDefaultDataProvider:!0}};function s2(o){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:o===XS,documentFormattingEdits:o===XS,documentRangeFormattingEdits:o===XS}}const XS="html",zX="handlebars",UX="razor",Yae=o2(XS,n2,s2(XS)),yUe=Yae.defaults,Xae=o2(zX,n2,s2(zX)),xUe=Xae.defaults,Qae=o2(UX,n2,s2(UX)),LUe=Qae.defaults;function DUe(){return Ae(()=>import("./DghbEZ16.js"),__vite__mapDeps([5,3,4]),import.meta.url)}function o2(o,e=n2,t=s2(o)){const i=new wUe(o,e,t);let n;const s=Le.onLanguage(o,async()=>{n=(await DUe()).setupMode(i)});return{defaults:i,dispose(){s.dispose(),n?.dispose(),n=void 0}}}const QKe=Object.freeze(Object.defineProperty({__proto__:null,handlebarDefaults:xUe,handlebarLanguageService:Xae,htmlDefaults:yUe,htmlLanguageService:Yae,razorDefaults:LUe,razorLanguageService:Qae,registerHTMLLanguageService:o2},Symbol.toStringTag,{value:"Module"}));let kUe=class{constructor(e,t,i){this._onDidChange=new dw,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}};const IUe={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},EUe={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},Jae=new kUe("json",IUe,EUe),TUe=()=>ele().then(o=>o.getWorker());function ele(){return Ae(()=>import("./DNQiloiF.js"),__vite__mapDeps([6,3,4]),import.meta.url)}Le.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});Le.onLanguage("json",()=>{ele().then(o=>o.setupMode(Jae))});const eGe=Object.freeze(Object.defineProperty({__proto__:null,getWorker:TUe,jsonDefaults:Jae},Symbol.toStringTag,{value:"Module"})),NUe="5.9.3";var tle=(o=>(o[o.None=0]="None",o[o.CommonJS=1]="CommonJS",o[o.AMD=2]="AMD",o[o.UMD=3]="UMD",o[o.System=4]="System",o[o.ES2015=5]="ES2015",o[o.ESNext=99]="ESNext",o))(tle||{}),ile=(o=>(o[o.None=0]="None",o[o.Preserve=1]="Preserve",o[o.React=2]="React",o[o.ReactNative=3]="ReactNative",o[o.ReactJSX=4]="ReactJSX",o[o.ReactJSXDev=5]="ReactJSXDev",o))(ile||{}),nle=(o=>(o[o.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",o[o.LineFeed=1]="LineFeed",o))(nle||{}),sle=(o=>(o[o.ES3=0]="ES3",o[o.ES5=1]="ES5",o[o.ES2015=2]="ES2015",o[o.ES2016=3]="ES2016",o[o.ES2017=4]="ES2017",o[o.ES2018=5]="ES2018",o[o.ES2019=6]="ES2019",o[o.ES2020=7]="ES2020",o[o.ESNext=99]="ESNext",o[o.JSON=100]="JSON",o[o.Latest=99]="Latest",o))(sle||{}),ole=(o=>(o[o.Classic=1]="Classic",o[o.NodeJs=2]="NodeJs",o))(ole||{});class rle{constructor(e,t,i,n,s){this._onDidChange=new dw,this._onDidExtraLibsChange=new dw,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(e),this.setDiagnosticsOptions(t),this.setWorkerOptions(i),this.setInlayHintsOptions(n),this.setModeConfiguration(s),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get modeConfiguration(){return this._modeConfiguration}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(e,t){let i;if(typeof t>"u"?i=`ts:extralib-${Math.random().toString(36).substring(2,15)}`:i=t,this._extraLibs[i]&&this._extraLibs[i].content===e)return{dispose:()=>{}};let n=1;return this._removedExtraLibs[i]&&(n=this._removedExtraLibs[i]+1),this._extraLibs[i]&&(n=this._extraLibs[i].version+1),this._extraLibs[i]={content:e,version:n},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let s=this._extraLibs[i];s&&s.version===n&&(delete this._extraLibs[i],this._removedExtraLibs[i]=n,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(e){for(const t in this._extraLibs)this._removedExtraLibs[t]=this._extraLibs[t].version;if(this._extraLibs=Object.create(null),e&&e.length>0)for(const t of e){const i=t.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,n=t.content;let s=1;this._removedExtraLibs[i]&&(s=this._removedExtraLibs[i]+1),this._extraLibs[i]={content:n,version:s}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(e){this._compilerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(e){this._workerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(e){this._inlayHintsOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(e){}setEagerModelSync(e){this._eagerModelSync=e}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(void 0)}}const RUe=NUe,ale={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,diagnostics:!0,documentRangeFormattingEdits:!0,signatureHelp:!0,onTypeFormattingEdits:!0,codeActions:!0,inlayHints:!0},lle=new rle({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},ale),cle=new rle({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},ale),MUe=()=>r2().then(o=>o.getTypeScriptWorker()),AUe=()=>r2().then(o=>o.getJavaScriptWorker());function r2(){return Ae(()=>import("./CMG5CVfP.js"),__vite__mapDeps([7,3]),import.meta.url)}Le.onLanguage("typescript",()=>r2().then(o=>o.setupTypeScript(lle)));Le.onLanguage("javascript",()=>r2().then(o=>o.setupJavaScript(cle)));const tGe=Object.freeze(Object.defineProperty({__proto__:null,JsxEmit:ile,ModuleKind:tle,ModuleResolutionKind:ole,NewLineKind:nle,ScriptTarget:sle,getJavaScriptWorker:AUe,getTypeScriptWorker:MUe,javascriptDefaults:cle,typescriptDefaults:lle,typescriptVersion:RUe},Symbol.toStringTag,{value:"Module"})),$X="__monacoFindWidgetTabIndexPatchApplied",I1="__monacoFindWidgetOriginalTabIndex";function jX(o,e){const t=o?._domNode;if(!t)return;const i=t.querySelectorAll('input, textarea, [tabindex], [role="button"], [role="checkbox"]');for(const n of i)if(n instanceof HTMLElement)if(e){if(!(I1 in n.dataset))continue;const s=n.dataset[I1];s===""?n.removeAttribute("tabindex"):n.tabIndex=Number(s),delete n.dataset[I1]}else I1 in n.dataset||(n.dataset[I1]=n.getAttribute("tabindex")??""),n.tabIndex=-1}if(!Kd[$X]){const o=Kd.prototype._reveal,e=Kd.prototype._hide;Kd.prototype._reveal=function(...t){o.apply(this,t),jX(this,!0)},Kd.prototype._hide=function(...t){e.apply(this,t),jX(this,!1)},Kd[$X]=!0}export{zKe as C,dw as E,ile as J,UKe as K,Gc as M,X_ as P,i2 as R,sle as S,KKe as T,yae as U,$Ke as a,DX as b,tle as c,ole as d,jKe as e,qKe as f,Kp as g,QKe as h,GKe as i,cle as j,eGe as k,Le as l,tGe as m,YKe as r,lle as t};
|
|
995
|
+
\`\`\``}}var _ze=class extends ln{constructor(o){super(),this._connection=o,this._register(this._connection.capabilities.addStaticClientCapabilities({textDocument:{signatureHelp:{dynamicRegistration:!0,contextSupport:!0,signatureInformation:{documentationFormat:[pN.Markdown,pN.PlainText],parameterInformation:{labelOffsetSupport:!0},activeParameterSupport:!0}}}})),this._register(this._connection.capabilities.registerCapabilityHandler(ht.textDocumentSignatureHelp,!0,e=>Le.registerSignatureHelpProvider(Qn(e.documentSelector),new bze(this._connection,e))))}},bze=class{constructor(o,e){Pe(this,"signatureHelpTriggerCharacters"),Pe(this,"signatureHelpRetriggerCharacters"),this._client=o,this._capabilities=e,this.signatureHelpTriggerCharacters=e.triggerCharacters,this.signatureHelpRetriggerCharacters=e.retriggerCharacters}async provideSignatureHelp(o,e,t,i){const n=this._client.bridge.translate(o,e),s=await this._client.server.textDocumentSignatureHelp({textDocument:n.textDocument,position:n.position,context:{triggerKind:rze(i.triggerKind),triggerCharacter:i.triggerCharacter,isRetrigger:i.isRetrigger}});return s?{value:{signatures:s.signatures.map(r=>({label:r.label,documentation:OX(r.documentation),parameters:r.parameters?.map(a=>({label:a.label,documentation:OX(a.documentation)}))||[],activeParameter:r.activeParameter})),activeSignature:s.activeSignature||0,activeParameter:s.activeParameter||0},dispose:()=>{}}:null}};function OX(o){if(o)return typeof o=="string"?o:{value:o.value}}var vze=class extends ln{constructor(o){super(),this._connection=o,this._register(this._connection.capabilities.addStaticClientCapabilities({textDocument:{definition:{dynamicRegistration:!0,linkSupport:!0}}})),this._register(this._connection.capabilities.registerCapabilityHandler(ht.textDocumentDefinition,!0,e=>Le.registerDefinitionProvider(Qn(e.documentSelector),new Cze(this._connection,e))))}},Cze=class{constructor(o,e){this._client=o,this._capabilities=e}async provideDefinition(o,e,t){const i=this._client.bridge.translate(o,e),n=await this._client.server.textDocumentDefinition({textDocument:i.textDocument,position:i.position});return n?Array.isArray(n)?n.map(s=>Ug(s,this._client)):Ug(n,this._client):null}},wze=class extends ln{constructor(o){super(),this._connection=o,this._register(this._connection.capabilities.addStaticClientCapabilities({textDocument:{declaration:{dynamicRegistration:!0,linkSupport:!0}}})),this._register(this._connection.capabilities.registerCapabilityHandler(ht.textDocumentDeclaration,!0,e=>Le.registerDeclarationProvider(Qn(e.documentSelector),new Sze(this._connection,e))))}},Sze=class{constructor(o,e){this._client=o,this._capabilities=e}async provideDeclaration(o,e,t){const i=this._client.bridge.translate(o,e),n=await this._client.server.textDocumentDeclaration({textDocument:i.textDocument,position:i.position});return n?Array.isArray(n)?n.map(s=>Ug(s,this._client)):Ug(n,this._client):null}},yze=class extends ln{constructor(o){super(),this._connection=o,this._register(this._connection.capabilities.addStaticClientCapabilities({textDocument:{typeDefinition:{dynamicRegistration:!0,linkSupport:!0}}})),this._register(this._connection.capabilities.registerCapabilityHandler(ht.textDocumentTypeDefinition,!0,e=>Le.registerTypeDefinitionProvider(Qn(e.documentSelector),new xze(this._connection,e))))}},xze=class{constructor(o,e){this._client=o,this._capabilities=e}async provideTypeDefinition(o,e,t){const i=this._client.bridge.translate(o,e),n=await this._client.server.textDocumentTypeDefinition({textDocument:i.textDocument,position:i.position});return n?Array.isArray(n)?n.map(s=>Ug(s,this._client)):Ug(n,this._client):null}},Lze=class extends ln{constructor(o){super(),this._connection=o,this._register(this._connection.capabilities.addStaticClientCapabilities({textDocument:{implementation:{dynamicRegistration:!0,linkSupport:!0}}})),this._register(this._connection.capabilities.registerCapabilityHandler(ht.textDocumentImplementation,!0,e=>Le.registerImplementationProvider(Qn(e.documentSelector),new Dze(this._connection,e))))}},Dze=class{constructor(o,e){this._client=o,this._capabilities=e}async provideImplementation(o,e,t){const i=this._client.bridge.translate(o,e),n=await this._client.server.textDocumentImplementation({textDocument:i.textDocument,position:i.position});return n?Array.isArray(n)?n.map(s=>Ug(s,this._client)):Ug(n,this._client):null}},kze=class extends ln{constructor(o){super(),this._connection=o,this._register(this._connection.capabilities.addStaticClientCapabilities({textDocument:{references:{dynamicRegistration:!0}}})),this._register(this._connection.capabilities.registerCapabilityHandler(ht.textDocumentReferences,!0,e=>Le.registerReferenceProvider(Qn(e.documentSelector),new Ize(this._connection,e))))}},Ize=class{constructor(o,e){this._client=o,this._capabilities=e}async provideReferences(o,e,t,i){const n=this._client.bridge.translate(o,e),s=await this._client.server.textDocumentReferences({textDocument:n.textDocument,position:n.position,context:{includeDeclaration:t.includeDeclaration}});return s?s.map(r=>{const a=this._client.bridge.translateBackRange({uri:r.uri},r.range);return{uri:a.textModel.uri,range:a.range}}):null}},Eze=class extends ln{constructor(o){super(),this._connection=o,this._register(this._connection.capabilities.addStaticClientCapabilities({textDocument:{documentHighlight:{dynamicRegistration:!0}}})),this._register(this._connection.capabilities.registerCapabilityHandler(ht.textDocumentDocumentHighlight,!0,e=>Le.registerDocumentHighlightProvider(Qn(e.documentSelector),new Tze(this._connection,e))))}},Tze=class{constructor(o,e){this._client=o,this._capabilities=e}async provideDocumentHighlights(o,e,t){const i=this._client.bridge.translate(o,e),n=await this._client.server.textDocumentDocumentHighlight({textDocument:i.textDocument,position:i.position});return n?n.map(s=>({range:this._client.bridge.translateBackRange(i.textDocument,s.range).range,kind:X6e(s.kind)})):null}},Nze=class extends ln{constructor(o){super(),this._connection=o,this._register(this._connection.capabilities.addStaticClientCapabilities({textDocument:{documentSymbol:{dynamicRegistration:!0,hierarchicalDocumentSymbolSupport:!0,symbolKind:{valueSet:Array.from(Fae.keys())},tagSupport:{valueSet:[Mae.Deprecated]}}}})),this._register(this._connection.capabilities.registerCapabilityHandler(ht.textDocumentDocumentSymbol,!0,e=>Le.registerDocumentSymbolProvider(Qn(e.documentSelector),new Rze(this._connection,e))))}},Rze=class{constructor(o,e){this._client=o,this._capabilities=e}async provideDocumentSymbols(o,e){const t=this._client.bridge.translate(o,new X_(1,1)),i=await this._client.server.textDocumentDocumentSymbol({textDocument:t.textDocument});return i?Array.isArray(i)&&i.length>0?"location"in i[0]?i.map(n=>Mze(n,this._client)):i.map(n=>zae(n,this._client,t.textDocument)):[]:null}};function zae(o,e,t){return{name:o.name,detail:o.detail||"",kind:Wae(o.kind),tags:o.tags?.map(i=>Bae(i)).filter(i=>i!==void 0)||[],range:e.bridge.translateBackRange(t,o.range).range,selectionRange:e.bridge.translateBackRange(t,o.selectionRange).range,children:o.children?.map(i=>zae(i,e,t))||[]}}function Mze(o,e){return{name:o.name,detail:"",kind:Wae(o.kind),tags:o.tags?.map(t=>Bae(t)).filter(t=>t!==void 0)||[],range:e.bridge.translateBackRange({uri:o.location.uri},o.location.range).range,selectionRange:e.bridge.translateBackRange({uri:o.location.uri},o.location.range).range,children:[]}}var Aze=class extends ln{constructor(o){super(),this._connection=o,this._register(this._connection.capabilities.addStaticClientCapabilities({textDocument:{rename:{dynamicRegistration:!0,prepareSupport:!0}}})),this._register(this._connection.capabilities.registerCapabilityHandler(ht.textDocumentRename,!0,e=>Le.registerRenameProvider(Qn(e.documentSelector),new Pze(this._connection,e))))}},Pze=class{constructor(o,e){this._client=o,this._capabilities=e}async provideRenameEdits(o,e,t,i){const n=this._client.bridge.translate(o,e),s=await this._client.server.textDocumentRename({textDocument:n.textDocument,position:n.position,newName:t});return s?Oze(s,this._client):null}async resolveRenameLocation(o,e,t){if(!this._capabilities.prepareProvider)return null;const i=this._client.bridge.translate(o,e),n=await this._client.server.textDocumentPrepareRename({textDocument:i.textDocument,position:i.position});if(!n)return null;if("range"in n&&"placeholder"in n)return{range:this._client.bridge.translateBackRange(i.textDocument,n.range).range,text:n.placeholder};if("defaultBehavior"in n)return null;if("start"in n&&"end"in n){const s=this._client.bridge.translateBackRange(i.textDocument,n).range;return{range:s,text:o.getValueInRange(s)}}return null}};function Oze(o,e){const t=[];if(o.changes)for(const i in o.changes){const n=o.changes[i];for(const s of n){const r=e.bridge.translateBackRange({uri:i},s.range);t.push({resource:r.textModel.uri,versionId:void 0,textEdit:{range:r.range,text:s.newText}})}}if(o.documentChanges){for(const i of o.documentChanges)if("textDocument"in i){const n=i.textDocument.uri;for(const s of i.edits){const r=e.bridge.translateBackRange({uri:n},s.range);t.push({resource:r.textModel.uri,versionId:i.textDocument.version,textEdit:{range:r.range,text:s.newText}})}}}return{edits:t}}var Fze=class extends ln{constructor(o){super(),this._connection=o,this._register(this._connection.capabilities.addStaticClientCapabilities({textDocument:{codeAction:{dynamicRegistration:!0,codeActionLiteralSupport:{codeActionKind:{valueSet:Array.from(Aae.keys())}},isPreferredSupport:!0,disabledSupport:!0,dataSupport:!0,resolveSupport:{properties:["edit"]}}}})),this._register(this._connection.capabilities.registerCapabilityHandler(ht.textDocumentCodeAction,!0,e=>Le.registerCodeActionProvider(Qn(e.documentSelector),new Wze(this._connection,e))))}},Wze=class{constructor(o,e){Pe(this,"resolveCodeAction"),this._client=o,this._capabilities=e,e.resolveProvider&&(this.resolveCodeAction=async(t,i)=>{if(t._lspAction){const n=await this._client.server.codeActionResolve(t._lspAction);n.edit&&(t.edit=FX(n.edit,this._client)),n.command&&(t.command=sC(n.command))}return t})}async provideCodeActions(o,e,t,i){const n=this._client.bridge.translate(o,e.getStartPosition()),s=await this._client.server.textDocumentCodeAction({textDocument:n.textDocument,range:this._client.bridge.translateRange(o,e),context:{diagnostics:t.markers.map(r=>({range:this._client.bridge.translateRange(o,i2.lift(r)),message:r.message,severity:tze(r.severity)})),triggerKind:z6e(t.trigger)}});return s?{actions:(Array.isArray(s)?s:[s]).map(r=>{if("title"in r&&!("kind"in r)){const a=r;return{title:a.title,command:sC(a)}}else{const a=r;return{title:a.title,kind:H6e(a.kind),isPreferred:a.isPreferred,disabled:a.disabled?.reason,edit:a.edit?FX(a.edit,this._client):void 0,command:sC(a.command),_lspAction:a}}}),dispose:()=>{}}:null}};function FX(o,e){const t=[];if(o.changes)for(const i in o.changes){const n=o.changes[i];for(const s of n){const r=e.bridge.translateBackRange({uri:i},s.range);t.push({resource:r.textModel.uri,versionId:void 0,textEdit:{range:r.range,text:s.newText}})}}if(o.documentChanges){for(const i of o.documentChanges)if("textDocument"in i){const n=i.textDocument.uri;for(const s of i.edits){const r=e.bridge.translateBackRange({uri:n},s.range);t.push({resource:r.textModel.uri,versionId:i.textDocument.version??void 0,textEdit:{range:r.range,text:s.newText}})}}}return{edits:t}}var Bze=class extends ln{constructor(o){super(),this._connection=o,this._register(this._connection.capabilities.addStaticClientCapabilities({textDocument:{codeLens:{dynamicRegistration:!0}}})),this._register(this._connection.capabilities.registerCapabilityHandler(ht.textDocumentCodeLens,!0,e=>Le.registerCodeLensProvider(Qn(e.documentSelector),new Hze(this._connection,e))))}},Hze=class{constructor(o,e){this._client=o,this._capabilities=e}async provideCodeLenses(o,e){const t=this._client.bridge.translate(o,new X_(1,1)),i=await this._client.server.textDocumentCodeLens({textDocument:t.textDocument});return i?{lenses:i.map(n=>({range:Gp(this._client.bridge.translateBackRange(t.textDocument,n.range),o).range,command:sC(n.command),_lspCodeLens:n})),dispose:()=>{}}:null}async resolveCodeLens(o,e,t){if(!this._capabilities.resolveProvider||!e._lspCodeLens)return e;const i=await this._client.server.codeLensResolve(e._lspCodeLens);return i.command&&(e.command={id:i.command.command,title:i.command.title,arguments:i.command.arguments}),e}},Vze=class extends ln{constructor(o){super(),this._connection=o,this._register(this._connection.capabilities.addStaticClientCapabilities({textDocument:{documentLink:{dynamicRegistration:!0,tooltipSupport:!0}}})),this._register(this._connection.capabilities.registerCapabilityHandler(ht.textDocumentDocumentLink,!0,e=>Le.registerLinkProvider(Qn(e.documentSelector),new zze(this._connection,e))))}},zze=class{constructor(o,e){this._client=o,this._capabilities=e}async provideLinks(o,e){const t=this._client.bridge.translate(o,new X_(1,1)),i=await this._client.server.textDocumentDocumentLink({textDocument:t.textDocument});return i?{links:i.map(n=>({range:this._client.bridge.translateBackRange(t.textDocument,n.range).range,url:n.target,tooltip:n.tooltip}))}:null}async resolveLink(o,e){return this._capabilities.resolveProvider,o}},Uze=class extends ln{constructor(o){super(),this._connection=o,this._register(this._connection.capabilities.addStaticClientCapabilities({textDocument:{formatting:{dynamicRegistration:!0}}})),this._register(this._connection.capabilities.registerCapabilityHandler(ht.textDocumentFormatting,!0,e=>Le.registerDocumentFormattingEditProvider(Qn(e.documentSelector),new $ze(this._connection,e))))}},$ze=class{constructor(o,e){this._client=o,this._capabilities=e}async provideDocumentFormattingEdits(o,e,t){const i=this._client.bridge.translate(o,new X_(1,1)),n=await this._client.server.textDocumentFormatting({textDocument:i.textDocument,options:{tabSize:e.tabSize,insertSpaces:e.insertSpaces}});return n?n.map(s=>({range:this._client.bridge.translateBackRange(i.textDocument,s.range).range,text:s.newText})):null}},jze=class extends ln{constructor(o){super(),this._connection=o,this._register(this._connection.capabilities.addStaticClientCapabilities({textDocument:{rangeFormatting:{dynamicRegistration:!0}}})),this._register(this._connection.capabilities.registerCapabilityHandler(ht.textDocumentRangeFormatting,!0,e=>Le.registerDocumentRangeFormattingEditProvider(Qn(e.documentSelector),new qze(this._connection,e))))}},qze=class{constructor(o,e){this._client=o,this._capabilities=e}async provideDocumentRangeFormattingEdits(o,e,t,i){const n=this._client.bridge.translate(o,e.getStartPosition()),s=await this._client.server.textDocumentRangeFormatting({textDocument:n.textDocument,range:this._client.bridge.translateRange(o,e),options:{tabSize:t.tabSize,insertSpaces:t.insertSpaces}});return s?s.map(r=>({range:this._client.bridge.translateBackRange(n.textDocument,r.range).range,text:r.newText})):null}},Kze=class extends ln{constructor(o){super(),this._connection=o,this._register(this._connection.capabilities.addStaticClientCapabilities({textDocument:{onTypeFormatting:{dynamicRegistration:!0}}})),this._register(this._connection.capabilities.registerCapabilityHandler(ht.textDocumentOnTypeFormatting,!0,e=>Le.registerOnTypeFormattingEditProvider(Qn(e.documentSelector),new Gze(this._connection,e))))}},Gze=class{constructor(o,e){Pe(this,"autoFormatTriggerCharacters"),this._client=o,this._capabilities=e,this.autoFormatTriggerCharacters=[e.firstTriggerCharacter,...e.moreTriggerCharacter||[]]}async provideOnTypeFormattingEdits(o,e,t,i,n){const s=this._client.bridge.translate(o,e),r=await this._client.server.textDocumentOnTypeFormatting({textDocument:s.textDocument,position:s.position,ch:t,options:{tabSize:i.tabSize,insertSpaces:i.insertSpaces}});return r?r.map(a=>({range:this._client.bridge.translateBackRange(s.textDocument,a.range).range,text:a.newText})):null}},Zze=class extends ln{constructor(o){super(),this._connection=o,this._register(this._connection.capabilities.addStaticClientCapabilities({textDocument:{foldingRange:{dynamicRegistration:!0,rangeLimit:5e3,lineFoldingOnly:!1,foldingRangeKind:{valueSet:[nC.Comment,nC.Imports,nC.Region]}}}})),this._register(this._connection.capabilities.registerCapabilityHandler(ht.textDocumentFoldingRange,!0,e=>Le.registerFoldingRangeProvider(Qn(e.documentSelector),new Yze(this._connection,e))))}},Yze=class{constructor(o,e){this._client=o,this._capabilities=e}async provideFoldingRanges(o,e,t){const i=this._client.bridge.translate(o,new X_(1,1)),n=await this._client.server.textDocumentFoldingRange({textDocument:i.textDocument});return n?n.map(s=>({start:s.startLine+1,end:s.endLine+1,kind:J6e(s.kind)})):null}},Xze=class extends ln{constructor(o){super(),this._connection=o,this._register(this._connection.capabilities.addStaticClientCapabilities({textDocument:{selectionRange:{dynamicRegistration:!0}}})),this._register(this._connection.capabilities.registerCapabilityHandler(ht.textDocumentSelectionRange,!0,e=>Le.registerSelectionRangeProvider(Qn(e.documentSelector),new Qze(this._connection,e))))}},Qze=class{constructor(o,e){this._client=o,this._capabilities=e}async provideSelectionRanges(o,e,t){const i=this._client.bridge.translate(o,e[0]),n=await this._client.server.textDocumentSelectionRange({textDocument:i.textDocument,positions:e.map(s=>this._client.bridge.translate(o,s).position)});return n?n.map(s=>this.convertSelectionRange(s,i.textDocument)):null}convertSelectionRange(o,e){const t=[];let i=o;for(;i;)t.push({range:this._client.bridge.translateBackRange(e,i.range).range}),i=i.parent;return t}},Jze=class extends ln{constructor(o){super(),Pe(this,"_providers",new Set),this._connection=o,this._register(this._connection.capabilities.addStaticClientCapabilities({textDocument:{inlayHint:{dynamicRegistration:!0,resolveSupport:{properties:["tooltip","textEdits","label.tooltip","label.location","label.command"]}}},workspace:{inlayHint:{refreshSupport:!0}}})),this._register(this._connection.connection.registerRequestHandler(bx.client.workspaceInlayHintRefresh,async()=>{for(const e of this._providers)e.refresh();return{ok:null}})),this._register(this._connection.capabilities.registerCapabilityHandler(ht.textDocumentInlayHint,!0,e=>{const t=new eUe(this._connection,e);this._providers.add(t);const i=Le.registerInlayHintsProvider(Qn(e.documentSelector),t);return{dispose:()=>{this._providers.delete(t),i.dispose()}}}))}},eUe=class{constructor(o,e){Pe(this,"_onDidChangeInlayHints",new dw),Pe(this,"onDidChangeInlayHints",this._onDidChangeInlayHints.event),Pe(this,"resolveInlayHint"),this._client=o,this._capabilities=e,e.resolveProvider&&(this.resolveInlayHint=async(t,i)=>{const n=await this._client.server.inlayHintResolve(t._lspInlayHint);return n.tooltip&&(t.tooltip=L9(n.tooltip)),n.label!==t._lspInlayHint.label&&(t.label=WX(n.label)),n.textEdits&&(t.textEdits=n.textEdits.map(s=>({range:this._client.bridge.translateBackRange({uri:t._targetUri},s.range).range,text:s.newText}))),t})}refresh(){this._onDidChangeInlayHints.fire()}async provideInlayHints(o,e,t){const i=this._client.bridge.translate(o,e.getStartPosition()),n=await tUe(async()=>await this._client.server.textDocumentInlayHint({textDocument:i.textDocument,range:this._client.bridge.translateRange(o,e)}));return n?{hints:n.map(s=>({label:WX(s.label),position:Gp(this._client.bridge.translateBack(i.textDocument,s.position),o).position,kind:lze(s.kind),tooltip:L9(s.tooltip),paddingLeft:s.paddingLeft,paddingRight:s.paddingRight,textEdits:s.textEdits?.map(r=>({range:Gp(this._client.bridge.translateBackRange(i.textDocument,r.range),o).range,text:r.newText})),_lspInlayHint:s,_targetUri:i.textDocument.uri})),dispose:()=>{}}:null}};async function tUe(o){for(let e=3;;e--)try{return await o()}catch(t){if(t.message==="content modified"&&e>0)continue;throw t}}function WX(o){return typeof o=="string"?o:o.map(e=>{const t={label:e.value,tooltip:L9(e.tooltip),command:sC(e.command)};return e.location&&(t.location={uri:yae.parse(e.location.uri),range:new i2(e.location.range.start.line+1,e.location.range.start.character+1,e.location.range.end.line+1,e.location.range.end.character+1)}),t})}function L9(o){if(o)return typeof o=="string"?o:{value:o.value}}var iUe=class extends ln{constructor(o){super(),this._connection=o,this._register(this._connection.capabilities.addStaticClientCapabilities({textDocument:{semanticTokens:{dynamicRegistration:!0,requests:{range:!0,full:{delta:!0}},tokenTypes:["namespace","type","class","enum","interface","struct","typeParameter","parameter","variable","property","enumMember","event","function","method","macro","keyword","modifier","comment","string","number","regexp","operator","decorator"],tokenModifiers:["declaration","definition","readonly","static","deprecated","abstract","async","modification","documentation","defaultLibrary"],formats:[B6e.Relative],overlappingTokenSupport:!1,multilineTokenSupport:!0}}})),this._register(this._connection.capabilities.registerCapabilityHandler(ht.textDocumentSemanticTokensFull,!0,e=>Le.registerDocumentSemanticTokensProvider(Qn(e.documentSelector),new nUe(this._connection,e))))}},nUe=class{constructor(o,e){this._client=o,this._capabilities=e}getLegend(){return{tokenTypes:this._capabilities.legend.tokenTypes,tokenModifiers:this._capabilities.legend.tokenModifiers}}releaseDocumentSemanticTokens(o){}async provideDocumentSemanticTokens(o,e,t){const i=this._client.bridge.translate(o,o.getPositionAt(0)),n=this._capabilities.full;if(e&&n&&typeof n=="object"&&n.delta){const r=await this._client.server.textDocumentSemanticTokensFullDelta({textDocument:i.textDocument,previousResultId:e});return r?"edits"in r?{resultId:r.resultId,edits:r.edits.map(a=>({start:a.start,deleteCount:a.deleteCount,data:a.data?new Uint32Array(a.data):void 0}))}:{resultId:r.resultId,data:new Uint32Array(r.data)}:null}const s=await this._client.server.textDocumentSemanticTokensFull({textDocument:i.textDocument});return s?{resultId:s.resultId,data:new Uint32Array(s.data)}:null}async provideDocumentSemanticTokensEdits(o,e,t){return this.provideDocumentSemanticTokens(o,e,t)}},sUe=class extends ln{constructor(o){super(),Pe(this,"_diagnosticsMarkerOwner","lsp"),Pe(this,"_pullDiagnosticProviders",new Map),this._connection=o,this._register(this._connection.capabilities.addStaticClientCapabilities({textDocument:{publishDiagnostics:{relatedInformation:!0,tagSupport:{valueSet:[...Hae.keys()]},versionSupport:!0,codeDescriptionSupport:!0,dataSupport:!0},diagnostic:{dynamicRegistration:!0,relatedDocumentSupport:!0}}})),this._register(this._connection.connection.registerNotificationHandler(bx.client.textDocumentPublishDiagnostics,e=>this._handlePublishDiagnostics(e))),this._register(this._connection.capabilities.registerCapabilityHandler(ht.textDocumentDiagnostic,!0,e=>{const t=new Mz;for(const i of Kp.getModels())this._addPullDiagnosticProvider(i,e,t);return t.add(Kp.onDidCreateModel(i=>{this._addPullDiagnosticProvider(i,e,t)})),t}))}_addPullDiagnosticProvider(o,e,t){if(o.getLanguageId(),!cze(o,e.documentSelector))return;const i=new oUe(o,this._connection,this._diagnosticsMarkerOwner,e);this._pullDiagnosticProviders.set(o,i),t.add(i),t.add(o.onWillDispose(()=>{this._pullDiagnosticProviders.delete(o)}))}_handlePublishDiagnostics(o){const e=o.uri;try{const t=this._connection.bridge.translateBack({uri:e},{line:0,character:0}).textModel;if(!t||t.isDisposed())return;const i=o.diagnostics.map(n=>x9(n));Kp.setModelMarkers(t,this._diagnosticsMarkerOwner,i)}catch(t){console.debug(`Could not set diagnostics for ${e}:`,t)}}},oUe=class extends ln{constructor(o,e,t,i){super(),Pe(this,"_updateHandle"),Pe(this,"_previousResultId"),this._model=o,this._connection=e,this._markerOwner=t,this._capability=i,this._register(this._model.onDidChangeContent(()=>{this._scheduleDiagnosticUpdate()})),this._scheduleDiagnosticUpdate()}_scheduleDiagnosticUpdate(){this._updateHandle!==void 0&&clearTimeout(this._updateHandle),this._updateHandle=window.setTimeout(()=>{this._updateHandle=void 0,this._requestDiagnostics()},500)}async _requestDiagnostics(){if(!this._model.isDisposed())try{const o=this._connection.bridge.translate(this._model,new X_(1,1)),e=await this._connection.server.textDocumentDiagnostic({textDocument:o.textDocument,identifier:this._capability.identifier,previousResultId:this._previousResultId});if(this._model.isDisposed())return;this._handleDiagnosticReport(e)}catch(o){console.error("Error requesting diagnostics:",o)}}_handleDiagnosticReport(o){if(o.kind==="full"){this._previousResultId=o.resultId;const e=o.items.map(t=>x9(t));Kp.setModelMarkers(this._model,this._markerOwner,e),"relatedDocuments"in o&&o.relatedDocuments&&this._handleRelatedDocuments(o.relatedDocuments)}else o.kind==="unchanged"&&(this._previousResultId=o.resultId)}_handleRelatedDocuments(o){for(const[e,t]of Object.entries(o))try{const i=this._connection.bridge.translateBack({uri:e},{line:0,character:0}).textModel;if(!i||i.isDisposed())continue;if(t.kind==="full"){const n=t.items.map(s=>x9(s));Kp.setModelMarkers(i,this._markerOwner,n)}}catch(i){console.debug(`Could not set related diagnostics for ${e}:`,i)}}dispose(){this._updateHandle!==void 0&&(clearTimeout(this._updateHandle),this._updateHandle=void 0),super.dispose()}},rUe=class{constructor(o,e,t,i){this.server=o,this.bridge=e,this.capabilities=t,this.connection=i}},aUe=class extends ln{constructor(o){super(),Pe(this,"_staticCapabilities",new Set),Pe(this,"_dynamicFromStatic",dUe.create()),Pe(this,"_registrations",new Map),Pe(this,"_serverCapabilities"),this._connection=o,this._register(this._connection.registerRequestHandler(bx.client.clientRegisterCapability,async e=>{for(const t of e.registrations){const i=HX(t.method),n=new BX(t.id,i,t.registerOptions,!1);this._registerCapabilityOptions(n)}return{ok:null}})),this._register(this._connection.registerRequestHandler(bx.client.clientUnregisterCapability,async e=>{for(const t of e.unregisterations){const i=HX(t.method),n=this._registrations.get(i),s=n?.registrations.get(t.id);if(!s)throw new Error(`No registration for method ${t.method} with id ${t.id}`);s?.handlerDisposables.forEach(r=>r.dispose()),n?.registrations.delete(t.id)}return{ok:null}}))}_registerCapabilityOptions(o){let e=this._registrations.get(o.capability);if(e||(e=new VX,this._registrations.set(o.capability,e)),e.registrations.has(o.id))throw new Error(`Handler for method ${o.capability.method} with id ${o.id} already registered`);e.registrations.set(o.id,o);for(const t of e.handlers)!t.handleStaticCapability&&o.isFromStatic||o.handlerDisposables.set(t,t.handler(o.options))}setServerCapabilities(o){if(this._serverCapabilities)throw new Error("Server capabilities already set");this._serverCapabilities=o;for(const e of Object.values(ht)){const t=this._dynamicFromStatic.getOptions(e,o);t&&this._registerCapabilityOptions(new BX(e.method,e,t,!0))}}getClientCapabilities(){const o={};for(const e of this._staticCapabilities)$ae(o,e.cap);return o}addStaticClientCapabilities(o){const e={cap:o};return this._staticCapabilities.add(e),{dispose:()=>{this._staticCapabilities.delete(e)}}}registerCapabilityHandler(o,e,t){let i=this._registrations.get(o);i||(i=new VX,this._registrations.set(o,i));const n=new lUe(o,e,t);i.handlers.add(n);for(const s of i.registrations.values())!n.handleStaticCapability&&s.isFromStatic||s.handlerDisposables.set(n,t(s.options));return{dispose:()=>{i.handlers.delete(n);for(const s of i.registrations.values()){const r=s.handlerDisposables.get(n);r&&(r.dispose(),s.handlerDisposables.delete(n))}}}}},lUe=class{constructor(o,e,t){this.capability=o,this.handleStaticCapability=e,this.handler=t}},BX=class{constructor(o,e,t,i){Pe(this,"handlerDisposables",new Map),this.id=o,this.capability=e,this.options=t,this.isFromStatic=i}};const cUe=new Map([...Object.values(ht)].map(o=>[o.method,o]));function HX(o){const e=cUe.get(o);if(!e)throw new Error(`No capability found for method ${o}`);return e}var VX=class{constructor(){Pe(this,"handlers",new Set),Pe(this,"registrations",new Map)}},dUe=class Uae{constructor(){Pe(this,"_mappings",new Map)}static create(){const e=new Uae;return e.set(ht.textDocumentDidChange,t=>{if(t.textDocumentSync!==void 0)return typeof t.textDocumentSync=="object"?{syncKind:t.textDocumentSync.change??O6e.None,documentSelector:null}:{syncKind:t.textDocumentSync,documentSelector:null}}),e.set(ht.textDocumentCompletion,t=>t.completionProvider),e.set(ht.textDocumentHover,t=>t.hoverProvider),e.set(ht.textDocumentSignatureHelp,t=>t.signatureHelpProvider),e.set(ht.textDocumentDefinition,t=>t.definitionProvider),e.set(ht.textDocumentReferences,t=>t.referencesProvider),e.set(ht.textDocumentDocumentHighlight,t=>t.documentHighlightProvider),e.set(ht.textDocumentDocumentSymbol,t=>t.documentSymbolProvider),e.set(ht.textDocumentCodeAction,t=>t.codeActionProvider),e.set(ht.textDocumentCodeLens,t=>t.codeLensProvider),e.set(ht.textDocumentDocumentLink,t=>t.documentLinkProvider),e.set(ht.textDocumentFormatting,t=>t.documentFormattingProvider),e.set(ht.textDocumentRangeFormatting,t=>t.documentRangeFormattingProvider),e.set(ht.textDocumentOnTypeFormatting,t=>t.documentOnTypeFormattingProvider),e.set(ht.textDocumentRename,t=>t.renameProvider),e.set(ht.textDocumentFoldingRange,t=>t.foldingRangeProvider),e.set(ht.textDocumentDeclaration,t=>t.declarationProvider),e.set(ht.textDocumentTypeDefinition,t=>t.typeDefinitionProvider),e.set(ht.textDocumentImplementation,t=>t.implementationProvider),e.set(ht.textDocumentDocumentColor,t=>t.colorProvider),e.set(ht.textDocumentSelectionRange,t=>t.selectionRangeProvider),e.set(ht.textDocumentLinkedEditingRange,t=>t.linkedEditingRangeProvider),e.set(ht.textDocumentPrepareCallHierarchy,t=>t.callHierarchyProvider),e.set(ht.textDocumentSemanticTokensFull,t=>t.semanticTokensProvider),e.set(ht.textDocumentInlayHint,t=>t.inlayHintProvider),e.set(ht.textDocumentInlineValue,t=>t.inlineValueProvider),e.set(ht.textDocumentDiagnostic,t=>t.diagnosticProvider),e.set(ht.textDocumentMoniker,t=>t.monikerProvider),e.set(ht.textDocumentPrepareTypeHierarchy,t=>t.typeHierarchyProvider),e.set(ht.workspaceSymbol,t=>t.workspaceSymbolProvider),e.set(ht.workspaceExecuteCommand,t=>t.executeCommandProvider),e}set(e,t){if(this._mappings.has(e.method))throw new Error(`Capability for method ${e.method} already registered`);this._mappings.set(e.method,t)}getOptions(e,t){const i=this._mappings.get(e.method);if(i)return i(t)}};function $ae(o,e){for(const t of Object.keys(e)){const i=e[t];if(i===void 0)continue;const n=o[t];if(n===void 0){o[t]=i;continue}if(typeof i!="object"||i===null){o[t]=i;continue}if(typeof n!="object"||n===null){o[t]=i;continue}$ae(n,i)}}var hUe=class extends ln{constructor(o,e){super(),Pe(this,"_managedModels",new Map),Pe(this,"_managedModelsReverse",new Map),Pe(this,"_started",!1),this._server=o,this._capabilities=e,this._register(this._capabilities.addStaticClientCapabilities({textDocument:{synchronization:{dynamicRegistration:!0,willSave:!1,willSaveWaitUntil:!1,didSave:!1}}})),this._register(e.registerCapabilityHandler(ht.textDocumentDidChange,!0,t=>{if(this._started)return{dispose:()=>{}};this._started=!0,this._register(Kp.onDidCreateModel(i=>{this._getOrCreateManagedModel(i)}));for(const i of Kp.getModels())this._getOrCreateManagedModel(i);return{dispose:()=>{}}}))}_getOrCreateManagedModel(o){if(!this._started)throw new Error("Not started");const e=o.uri.toString(!0).toLowerCase();let t=this._managedModels.get(o);return t||(t=new uUe(o,this._server),this._managedModels.set(o,t),this._managedModelsReverse.set(e,o)),o.onWillDispose(()=>{t.dispose(),this._managedModels.delete(o),this._managedModelsReverse.delete(e)}),t}translateBack(o,e){const t=o.uri.toLowerCase(),i=this._managedModelsReverse.get(t);if(!i)throw new Error(`No text model for uri ${t}`);return{textModel:i,position:new X_(e.line+1,e.character+1)}}translateBackRange(o,e){const t=o.uri.toLowerCase(),i=this._managedModelsReverse.get(t);if(!i)throw new Error(`No text model for uri ${t}`);return{textModel:i,range:new i2(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}}translate(o,e){return{textDocument:{uri:o.uri.toString(!0)},position:{line:e.lineNumber-1,character:e.column-1}}}translateRange(o,e){return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}},uUe=class extends ln{constructor(o,e){super(),this._textModel=o,this._api=e;const t=o.uri.toString(!0).toLowerCase();this._api.textDocumentDidOpen({textDocument:{languageId:o.getLanguageId(),uri:t,version:o.getVersionId(),text:o.getValue()}}),this._register(o.onDidChangeContent(i=>{const n=i.changes.map(s=>gUe(s));this._api.textDocumentDidChange({textDocument:{uri:t,version:o.getVersionId()},contentChanges:n})})),this._register({dispose:()=>{this._api.textDocumentDidClose({textDocument:{uri:t}})}})}};function gUe(o){return{range:fUe(o.range),rangeLength:o.rangeLength,text:o.text}}function fUe(o){return{start:{line:o.startLineNumber-1,character:o.startColumn-1},end:{line:o.endLineNumber-1,character:o.endColumn-1}}}var pUe=class{constructor(o){Pe(this,"_connection"),Pe(this,"_capabilitiesRegistry"),Pe(this,"_bridge"),Pe(this,"_initPromise");const e=w9.fromTransport(o),t=bx.getServer(e,{});e.startListen(),this._capabilitiesRegistry=new aUe(e),this._bridge=new hUe(t.server,this._capabilitiesRegistry),this._connection=new rUe(t.server,this._bridge,this._capabilitiesRegistry,e),this.createFeatures(),this._initPromise=this._init()}async _init(){const o=await this._connection.server.initialize({processId:null,capabilities:this._capabilitiesRegistry.getClientCapabilities(),rootUri:null});this._connection.server.initialized({}),this._capabilitiesRegistry.setServerCapabilities(o.capabilities)}createFeatures(){const o=new Mz;return o.add(new dze(this._connection)),o.add(new fze(this._connection)),o.add(new _ze(this._connection)),o.add(new vze(this._connection)),o.add(new wze(this._connection)),o.add(new yze(this._connection)),o.add(new Lze(this._connection)),o.add(new kze(this._connection)),o.add(new Eze(this._connection)),o.add(new Nze(this._connection)),o.add(new Aze(this._connection)),o.add(new Fze(this._connection)),o.add(new Bze(this._connection)),o.add(new Vze(this._connection)),o.add(new Uze(this._connection)),o.add(new jze(this._connection)),o.add(new Kze(this._connection)),o.add(new Zze(this._connection)),o.add(new Xze(this._connection)),o.add(new Jze(this._connection)),o.add(new iUe(this._connection)),o.add(new sUe(this._connection)),o}},Vb=null;typeof WebSocket<"u"?Vb=WebSocket:typeof MozWebSocket<"u"?Vb=MozWebSocket:typeof global<"u"?Vb=global.WebSocket||global.MozWebSocket:typeof window<"u"?Vb=window.WebSocket||window.MozWebSocket:typeof self<"u"&&(Vb=self.WebSocket||self.MozWebSocket);var mUe=Vb;function _Ue(o){return"host"in o?{address:`${o.forceTls?"wss":"ws"}://${o.host}:${o.port}`}:o}var bUe=class D9 extends xae{constructor(e){super(),Pe(this,"socket"),Pe(this,"errorEmitter",new Rz),Pe(this,"onError",this.errorEmitter),this.socket=e,e.onmessage=t=>{try{const i=t.data;if(typeof i=="string"){const n=JSON.parse(i);this._dispatchReceivedMessage(n)}else throw new Error("Not supported")}catch(i){this.errorEmitter.fire({error:i})}},e.onclose=t=>{this._onConnectionClosed()}}static connectTo(e){const t=new mUe(_Ue(e).address);return new Promise((i,n)=>{t.onerror=s=>{n(s)},t.onopen=()=>{i(new D9(t))}})}static fromWebSocket(e){return new D9(e)}close(){this.socket.close()}dispose(){this.close()}_sendImpl(e){const t=JSON.stringify(e);return new Promise((i,n)=>{this.socket.send(t,s=>{s?n(s):i()})})}toString(){return`${this.id}@${this.socket.url}`}},jae=class extends xae{constructor(o,e=void 0,t=void 0){super(),Pe(this,"_windowLike"),Pe(this,"_source"),Pe(this,"_loadingState"),Pe(this,"_disposed",!1),Pe(this,"_messageHandler",({data:i,source:n})=>{this._source&&n!==this._source||typeof i=="object"&&i&&this._dispatchReceivedMessage(i)}),this._windowLike=o,this._source=e,this._loadingState=t,this._windowLike.addEventListener("message",this._messageHandler)}async _sendImpl(o){if(this._disposed)throw new Error("Transport is disposed");this._loadingState&&!this._loadingState.loaded&&await this._loadingState.onLoaded,this._windowLike.postMessage(o)}toString(){return`${this.id}@${this._windowLike}`}dispose(){this._disposed||(this._disposed=!0,this._windowLike.removeEventListener("message",this._messageHandler))}};function vUe(o){if(typeof window>"u")throw new Error("call this function from the main browser thread");return new jae(o)}function CUe(o){if(typeof window>"u")throw new Error("call this function from the main browser thread");return new jae(o.contentWindow,o.contentWindow,{loaded:window.document.readyState==="complete",onLoaded:new Promise(e=>{window.addEventListener("load",()=>e())})})}const GKe=Object.freeze(Object.defineProperty({__proto__:null,MonacoLspClient:pUe,WebSocketTransport:bUe,createTransportToIFrame:CUe,createTransportToWorker:vUe},Symbol.toStringTag,{value:"Module"})),qae={},eF={};class Az{static getOrCreate(e){return eF[e]||(eF[e]=new Az(e)),eF[e]}constructor(e){this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((t,i)=>{this._lazyLoadPromiseResolve=t,this._lazyLoadPromiseReject=i})}load(){return this._loadingTriggered||(this._loadingTriggered=!0,qae[this._languageId].loader().then(e=>this._lazyLoadPromiseResolve(e),e=>this._lazyLoadPromiseReject(e))),this._lazyLoadPromise}}function We(o){const e=o.id;qae[e]=o,Le.register(o);const t=Az.getOrCreate(e);Le.registerTokensProviderFactory(e,{create:async()=>(await t.load()).language}),Le.onLanguageEncountered(e,async()=>{const i=await t.load();Le.setLanguageConfiguration(e,i.conf)})}We({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>Ae(()=>import("./DLDM7-KI.js"),[],import.meta.url)});We({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>Ae(()=>import("./DNDY2TF8.js"),[],import.meta.url)});We({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>Ae(()=>import("./Y6nb8tq_.js"),[],import.meta.url)});We({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>Ae(()=>import("./BwHxbl9M.js"),[],import.meta.url)});We({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>Ae(()=>import("./CFznDFnq.js"),[],import.meta.url)});We({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>Ae(()=>import("./Bf6VGUru.js"),[],import.meta.url)});We({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>Ae(()=>import("./Dnu-v4kV.js"),[],import.meta.url)});We({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>Ae(()=>import("./Bd8akH9Z.js"),[],import.meta.url)});We({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>Ae(()=>import("./BbWJElDN.js"),[],import.meta.url)});We({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>Ae(()=>import("./BbWJElDN.js"),[],import.meta.url)});We({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>Ae(()=>import("./Co3qMtFm.js"),[],import.meta.url)});We({id:"csp",extensions:[".csp"],aliases:["CSP","csp"],loader:()=>Ae(()=>import("./D-4FJmMZ.js"),[],import.meta.url)});We({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>Ae(()=>import("./DdJfP1eB.js"),[],import.meta.url)});We({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>Ae(()=>import("./cTPe9QuQ.js"),[],import.meta.url)});We({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>Ae(()=>import("./BOtBlQCF.js"),[],import.meta.url)});We({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>Ae(()=>import("./BG73LgW2.js"),[],import.meta.url)});We({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>Ae(()=>import("./BEgZUVRK.js"),[],import.meta.url)});We({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>Ae(()=>import("./BkW5O-1t.js"),[],import.meta.url)});We({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>Ae(()=>import("./BeJ5waoc.js"),[],import.meta.url)});We({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>Ae(()=>import("./PahG7c26.js"),[],import.meta.url)});We({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>Ae(()=>import("./6EBJYAxp.js"),[],import.meta.url).then(o=>o.TagAutoInterpolationDollar)});We({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>Ae(()=>import("./6EBJYAxp.js"),[],import.meta.url).then(o=>o.TagAngleInterpolationDollar)});We({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>Ae(()=>import("./6EBJYAxp.js"),[],import.meta.url).then(o=>o.TagBracketInterpolationDollar)});We({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>Ae(()=>import("./6EBJYAxp.js"),[],import.meta.url).then(o=>o.TagAngleInterpolationBracket)});We({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>Ae(()=>import("./6EBJYAxp.js"),[],import.meta.url).then(o=>o.TagBracketInterpolationBracket)});We({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>Ae(()=>import("./6EBJYAxp.js"),[],import.meta.url).then(o=>o.TagAutoInterpolationDollar)});We({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>Ae(()=>import("./6EBJYAxp.js"),[],import.meta.url).then(o=>o.TagAutoInterpolationBracket)});We({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>Ae(()=>import("./acbASCJo.js"),[],import.meta.url)});We({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>Ae(()=>import("./BxJiqAUM.js"),[],import.meta.url)});We({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>Ae(()=>import("./7uqL-6tT.js"),[],import.meta.url)});We({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>Ae(()=>import("./DtV1sZF8.js"),[],import.meta.url)});We({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>Ae(()=>import("./CxMGjr-k.js"),[],import.meta.url)});We({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>Ae(()=>import("./Kd9XrMLS.js"),[],import.meta.url)});We({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>Ae(()=>import("./CXBNlu9o.js"),[],import.meta.url)});We({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>Ae(()=>import("./DNbEh_Pn.js"),__vite__mapDeps([0,1]),import.meta.url)});We({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>Ae(()=>import("./cl7-CwDS.js"),[],import.meta.url)});We({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>Ae(()=>import("./s7OhZKlX.js"),[],import.meta.url)});We({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>Ae(()=>import("./9HpZscsL.js"),[],import.meta.url)});We({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>Ae(()=>import("./OrD6JF1K.js"),[],import.meta.url)});We({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>Ae(()=>import("./Cyyb5UIc.js"),[],import.meta.url)});We({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>Ae(()=>import("./MQ537-MV.js"),[],import.meta.url)});We({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>Ae(()=>import("./B8OfTtLu.js"),[],import.meta.url)});We({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>Ae(()=>import("./BFxVWTOG.js"),[],import.meta.url)});We({id:"mdx",extensions:[".mdx"],aliases:["MDX","mdx"],loader:()=>Ae(()=>import("./B7PtZbeR.js"),[],import.meta.url)});We({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>Ae(()=>import("./CiqrrVzr.js"),[],import.meta.url)});We({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>Ae(()=>import("./DmeGPVcC.js"),[],import.meta.url)});We({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>Ae(()=>import("./C_tMU-Nz.js"),[],import.meta.url)});We({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>Ae(()=>import("./BDtDVThU.js"),[],import.meta.url)});We({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>Ae(()=>import("./vHIfCaH5.js"),[],import.meta.url)});We({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>Ae(()=>import("./DtZ0uQbO.js"),[],import.meta.url)});We({id:"perl",extensions:[".pl",".pm"],aliases:["Perl","pl"],loader:()=>Ae(()=>import("./Ub6l9XKa.js"),[],import.meta.url)});We({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>Ae(()=>import("./BlNEE0v7.js"),[],import.meta.url)});We({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>Ae(()=>import("./BBUBE1dy.js"),[],import.meta.url)});We({id:"pla",extensions:[".pla"],loader:()=>Ae(()=>import("./DSh2-awV.js"),[],import.meta.url)});We({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>Ae(()=>import("./CocnycG-.js"),[],import.meta.url)});We({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>Ae(()=>import("./tScXyioY.js"),[],import.meta.url)});We({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>Ae(()=>import("./COWaemsV.js"),[],import.meta.url)});We({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>Ae(()=>import("./Brw8urJB.js"),[],import.meta.url)});We({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>Ae(()=>import("./8SOpv6rk.js"),[],import.meta.url)});We({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>Ae(()=>import("./DDuFS2zo.js"),[],import.meta.url)});We({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>Ae(()=>import("./Bw9ernYp.js"),[],import.meta.url)});We({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>Ae(()=>import("./j7ic8hl3.js"),[],import.meta.url)});We({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>Ae(()=>import("./DPcH5rXQ.js"),[],import.meta.url)});We({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>Ae(()=>import("./Bu5POkcn.js"),[],import.meta.url)});We({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>Ae(()=>import("./Bs9aos_-.js"),[],import.meta.url)});We({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>Ae(()=>import("./CqXO7rUv.js"),[],import.meta.url)});We({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>Ae(()=>import("./zBfavPgS.js"),[],import.meta.url)});We({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>Ae(()=>import("./BzKRNQWT.js"),[],import.meta.url)});We({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>Ae(()=>import("./BBc9UKZt.js"),[],import.meta.url)});We({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:()=>Ae(()=>import("./D9hQfWCl.js"),[],import.meta.url)});We({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>Ae(()=>import("./BPhDTwHR.js"),[],import.meta.url)});We({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>Ae(()=>import("./CBJaRo0y.js"),[],import.meta.url)});We({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>Ae(()=>import("./DiJ1NA_G.js"),[],import.meta.url)});We({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>Ae(()=>import("./Db0IVjzk.js"),[],import.meta.url)});We({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>Ae(()=>import("./CnS9iZB_.js"),[],import.meta.url)});We({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>Ae(()=>import("./CJmd_6j2.js"),[],import.meta.url)});We({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>Ae(()=>import("./ClhHkBeG.js"),[],import.meta.url)});We({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib",".TcPOU",".TcDUT",".TcGVL",".TcIO"],aliases:["StructuredText","scl","stl"],loader:()=>Ae(()=>import("./CHwy0fLd.js"),[],import.meta.url)});We({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>Ae(()=>import("./Bqt4WxQ4.js"),[],import.meta.url)});We({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>Ae(()=>import("./Bs9z6M-B.js"),[],import.meta.url)});We({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>Ae(()=>import("./Bs9z6M-B.js"),[],import.meta.url)});We({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>Ae(()=>import("./Dm6ycUr_.js"),[],import.meta.url)});We({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>Ae(()=>import("./Csy3S7wG.js"),[],import.meta.url)});We({id:"typescript",extensions:[".ts",".tsx",".cts",".mts"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>Ae(()=>import("./CsKccV54.js"),[],import.meta.url)});We({id:"typespec",extensions:[".tsp"],aliases:["TypeSpec"],loader:()=>Ae(()=>import("./Btyra-wh.js"),[],import.meta.url)});We({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>Ae(()=>import("./Db0cS2oM.js"),[],import.meta.url)});We({id:"wgsl",extensions:[".wgsl"],aliases:["WebGPU Shading Language","WGSL","wgsl"],loader:()=>Ae(()=>import("./DumH7NcR.js"),[],import.meta.url)});We({id:"xml",extensions:[".xml",".xsd",".dtd",".ascx",".csproj",".config",".props",".targets",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xslt",".xsl"],firstLine:"(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)",aliases:["XML","xml"],mimetypes:["text/xml","application/xml","application/xaml+xml","application/xml-dtd"],loader:()=>Ae(()=>import("./BAYfmcgi.js"),[],import.meta.url)});We({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>Ae(()=>import("./DQ01F80Q.js"),[],import.meta.url)});let Pz=class{constructor(e,t,i){this._onDidChange=new dw,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(e){this.setOptions(e)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}};const Oz={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},Fz={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},Kae=new Pz("css",Oz,Fz),Gae=new Pz("scss",Oz,Fz),Zae=new Pz("less",Oz,Fz);function Wz(){return Ae(()=>import("./DoYFP432.js"),__vite__mapDeps([2,3,4]),import.meta.url)}Le.onLanguage("less",()=>{Wz().then(o=>o.setupMode(Zae))});Le.onLanguage("scss",()=>{Wz().then(o=>o.setupMode(Gae))});Le.onLanguage("css",()=>{Wz().then(o=>o.setupMode(Kae))});const YKe=Object.freeze(Object.defineProperty({__proto__:null,cssDefaults:Kae,lessDefaults:Zae,scssDefaults:Gae},Symbol.toStringTag,{value:"Module"}));let wUe=class{constructor(e,t,i){this._onDidChange=new dw,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}};const SUe={tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},n2={format:SUe,suggest:{},data:{useDefaultDataProvider:!0}};function s2(o){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:o===XS,documentFormattingEdits:o===XS,documentRangeFormattingEdits:o===XS}}const XS="html",zX="handlebars",UX="razor",Yae=o2(XS,n2,s2(XS)),yUe=Yae.defaults,Xae=o2(zX,n2,s2(zX)),xUe=Xae.defaults,Qae=o2(UX,n2,s2(UX)),LUe=Qae.defaults;function DUe(){return Ae(()=>import("./CQQbNjsN.js"),__vite__mapDeps([5,3,4]),import.meta.url)}function o2(o,e=n2,t=s2(o)){const i=new wUe(o,e,t);let n;const s=Le.onLanguage(o,async()=>{n=(await DUe()).setupMode(i)});return{defaults:i,dispose(){s.dispose(),n?.dispose(),n=void 0}}}const QKe=Object.freeze(Object.defineProperty({__proto__:null,handlebarDefaults:xUe,handlebarLanguageService:Xae,htmlDefaults:yUe,htmlLanguageService:Yae,razorDefaults:LUe,razorLanguageService:Qae,registerHTMLLanguageService:o2},Symbol.toStringTag,{value:"Module"}));let kUe=class{constructor(e,t,i){this._onDidChange=new dw,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}};const IUe={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},EUe={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},Jae=new kUe("json",IUe,EUe),TUe=()=>ele().then(o=>o.getWorker());function ele(){return Ae(()=>import("./B35kShEY.js"),__vite__mapDeps([6,3,4]),import.meta.url)}Le.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});Le.onLanguage("json",()=>{ele().then(o=>o.setupMode(Jae))});const eGe=Object.freeze(Object.defineProperty({__proto__:null,getWorker:TUe,jsonDefaults:Jae},Symbol.toStringTag,{value:"Module"})),NUe="5.9.3";var tle=(o=>(o[o.None=0]="None",o[o.CommonJS=1]="CommonJS",o[o.AMD=2]="AMD",o[o.UMD=3]="UMD",o[o.System=4]="System",o[o.ES2015=5]="ES2015",o[o.ESNext=99]="ESNext",o))(tle||{}),ile=(o=>(o[o.None=0]="None",o[o.Preserve=1]="Preserve",o[o.React=2]="React",o[o.ReactNative=3]="ReactNative",o[o.ReactJSX=4]="ReactJSX",o[o.ReactJSXDev=5]="ReactJSXDev",o))(ile||{}),nle=(o=>(o[o.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",o[o.LineFeed=1]="LineFeed",o))(nle||{}),sle=(o=>(o[o.ES3=0]="ES3",o[o.ES5=1]="ES5",o[o.ES2015=2]="ES2015",o[o.ES2016=3]="ES2016",o[o.ES2017=4]="ES2017",o[o.ES2018=5]="ES2018",o[o.ES2019=6]="ES2019",o[o.ES2020=7]="ES2020",o[o.ESNext=99]="ESNext",o[o.JSON=100]="JSON",o[o.Latest=99]="Latest",o))(sle||{}),ole=(o=>(o[o.Classic=1]="Classic",o[o.NodeJs=2]="NodeJs",o))(ole||{});class rle{constructor(e,t,i,n,s){this._onDidChange=new dw,this._onDidExtraLibsChange=new dw,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(e),this.setDiagnosticsOptions(t),this.setWorkerOptions(i),this.setInlayHintsOptions(n),this.setModeConfiguration(s),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get modeConfiguration(){return this._modeConfiguration}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(e,t){let i;if(typeof t>"u"?i=`ts:extralib-${Math.random().toString(36).substring(2,15)}`:i=t,this._extraLibs[i]&&this._extraLibs[i].content===e)return{dispose:()=>{}};let n=1;return this._removedExtraLibs[i]&&(n=this._removedExtraLibs[i]+1),this._extraLibs[i]&&(n=this._extraLibs[i].version+1),this._extraLibs[i]={content:e,version:n},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let s=this._extraLibs[i];s&&s.version===n&&(delete this._extraLibs[i],this._removedExtraLibs[i]=n,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(e){for(const t in this._extraLibs)this._removedExtraLibs[t]=this._extraLibs[t].version;if(this._extraLibs=Object.create(null),e&&e.length>0)for(const t of e){const i=t.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,n=t.content;let s=1;this._removedExtraLibs[i]&&(s=this._removedExtraLibs[i]+1),this._extraLibs[i]={content:n,version:s}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(e){this._compilerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(e){this._workerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(e){this._inlayHintsOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(e){}setEagerModelSync(e){this._eagerModelSync=e}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(void 0)}}const RUe=NUe,ale={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,diagnostics:!0,documentRangeFormattingEdits:!0,signatureHelp:!0,onTypeFormattingEdits:!0,codeActions:!0,inlayHints:!0},lle=new rle({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},ale),cle=new rle({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},ale),MUe=()=>r2().then(o=>o.getTypeScriptWorker()),AUe=()=>r2().then(o=>o.getJavaScriptWorker());function r2(){return Ae(()=>import("./DZtzqJzi.js"),__vite__mapDeps([7,3]),import.meta.url)}Le.onLanguage("typescript",()=>r2().then(o=>o.setupTypeScript(lle)));Le.onLanguage("javascript",()=>r2().then(o=>o.setupJavaScript(cle)));const tGe=Object.freeze(Object.defineProperty({__proto__:null,JsxEmit:ile,ModuleKind:tle,ModuleResolutionKind:ole,NewLineKind:nle,ScriptTarget:sle,getJavaScriptWorker:AUe,getTypeScriptWorker:MUe,javascriptDefaults:cle,typescriptDefaults:lle,typescriptVersion:RUe},Symbol.toStringTag,{value:"Module"})),$X="__monacoFindWidgetTabIndexPatchApplied",I1="__monacoFindWidgetOriginalTabIndex";function jX(o,e){const t=o?._domNode;if(!t)return;const i=t.querySelectorAll('input, textarea, [tabindex], [role="button"], [role="checkbox"]');for(const n of i)if(n instanceof HTMLElement)if(e){if(!(I1 in n.dataset))continue;const s=n.dataset[I1];s===""?n.removeAttribute("tabindex"):n.tabIndex=Number(s),delete n.dataset[I1]}else I1 in n.dataset||(n.dataset[I1]=n.getAttribute("tabindex")??""),n.tabIndex=-1}if(!Kd[$X]){const o=Kd.prototype._reveal,e=Kd.prototype._hide;Kd.prototype._reveal=function(...t){o.apply(this,t),jX(this,!0)},Kd.prototype._hide=function(...t){e.apply(this,t),jX(this,!1)},Kd[$X]=!0}export{zKe as C,dw as E,ile as J,UKe as K,Gc as M,X_ as P,i2 as R,sle as S,KKe as T,yae as U,$Ke as a,DX as b,tle as c,ole as d,jKe as e,qKe as f,Kp as g,QKe as h,GKe as i,cle as j,eGe as k,Le as l,tGe as m,YKe as r,lle as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as e}from"./
|
|
1
|
+
import{l as e}from"./B7myJZdQ.js";const n={comments:{blockComment:["<!--","-->"]},brackets:[["<",">"]],autoClosingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],surroundingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],onEnterRules:[{beforeText:new RegExp("<([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:e.IndentAction.Indent}}]},o={defaultToken:"",tokenPostfix:".xml",ignoreCase:!0,qualifiedName:/(?:[\w\.\-]+:)?[\w\.\-]+/,tokenizer:{root:[[/[^<&]+/,""],{include:"@whitespace"},[/(<)(@qualifiedName)/,[{token:"delimiter"},{token:"tag",next:"@tag"}]],[/(<\/)(@qualifiedName)(\s*)(>)/,[{token:"delimiter"},{token:"tag"},"",{token:"delimiter"}]],[/(<\?)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/(<\!)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/<\!\[CDATA\[/,{token:"delimiter.cdata",next:"@cdata"}],[/&\w+;/,"string.escape"]],cdata:[[/[^\]]+/,""],[/\]\]>/,{token:"delimiter.cdata",next:"@pop"}],[/\]/,""]],tag:[[/[ \t\r\n]+/,""],[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/,["attribute.name","","attribute.value"]],[/@qualifiedName/,"attribute.name"],[/\?>/,{token:"delimiter",next:"@pop"}],[/(\/)(>)/,[{token:"tag"},{token:"delimiter",next:"@pop"}]],[/>/,{token:"delimiter",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/<!--/,{token:"comment",next:"@comment"}]],comment:[[/[^<\-]+/,"comment.content"],[/-->/,{token:"comment",next:"@pop"}],[/<!--/,"comment.content.invalid"],[/[<\-]/,"comment.content"]]}};export{n as conf,o as language};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as l,r as m,d as a}from"./
|
|
1
|
+
import{g as l,r as m,d as a}from"./DvTOURZI.js";import{p}from"./Bf-2W8ee.js";import{b as t,ay as o}from"./D4gGvbme.js";import{M as u,b as c}from"./CUxXMHrG.js";var f=c().RailroadPeg.parser.LangiumParser,i=t(e=>{const r=e.alternatives.map(d);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformOrderedChoice"),d=t(e=>{const r=e.elements.map(P);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformSequence"),P=t(e=>{const r=g(e.suffix);return e.operator?{type:"special",text:e.operator==="&"?`&${s(r)}`:`!${s(r)}`}:r},"transformPrefix"),s=t(e=>{switch(e.type){case"terminal":return`"${e.value}"`;case"nonterminal":return e.name;case"special":return e.text;default:return"(...)"}},"nodeToLabel"),g=t(e=>{const r=y(e.primary);if(!e.operator)return r;switch(e.operator){case"?":return{type:"optional",element:r};case"*":return{type:"repetition",element:r,min:0,max:1/0};case"+":return{type:"repetition",element:r,min:1,max:1/0};default:throw new Error(`Unsupported PEG suffix operator: ${e.operator}`)}},"transformSuffix"),y=t(e=>{switch(e.$type){case"PegLiteral":return{type:"terminal",value:e.value};case"PegIdentifier":return{type:"nonterminal",name:e.name};case"PegGroup":return i(e.element);case"PegAny":return{type:"special",text:e.dot};default:throw new Error(`Unsupported PEG primary node: ${e.$type}`)}},"transformPrimary"),v=t(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=t(e=>{p(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(v(r)))},"populateDb"),b={parse:t(e=>{a.clear(),o.debug("[PEG Parser] Starting Langium parse");const r=f.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new u(r);const n=r.value;o.debug("[PEG Parser] Parsed rules:",n.rules.length),h(n),o.debug("[PEG Parser] Parse complete")},"parse"),parser:{yy:a}},$={parser:b,db:a,renderer:m,styles:l};export{$ as diagram};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as Gt,aZ as Kt,U as Ht,Y as Yt,b0 as Xt,V as Zt,a_ as Jt,b as w,W as wt,aX as Qt,aW as ot,i as $t,an as te,au as ee,H as ne,B as se,r as ie,q as oe,O as re}from"./Bfi661u9.js";const kt=(t,n)=>Gt(t,"a",-n),_t=1e-10;function st(t,n){const s=le(t),e=s.filter(l=>ae(l,t));let i=0,o=0;const r=[];if(e.length>1){const l=Et(e);for(let u=0;u<e.length;++u){const a=e[u];a.angle=Math.atan2(a.x-l.x,a.y-l.y)}e.sort((u,a)=>a.angle-u.angle);let f=e[e.length-1];for(let u=0;u<e.length;++u){const a=e[u];o+=(f.x+a.x)*(a.y-f.y);const y={x:(a.x+f.x)/2,y:(a.y+f.y)/2};let h=null;for(let b=0;b<a.parentIndex.length;++b)if(f.parentIndex.includes(a.parentIndex[b])){const p=t[a.parentIndex[b]],M=Math.atan2(a.x-p.x,a.y-p.y),E=Math.atan2(f.x-p.x,f.y-p.y);let _=E-M;_<0&&(_+=2*Math.PI);const S=E-_/2;let g=q(y,{x:p.x+p.radius*Math.sin(S),y:p.y+p.radius*Math.cos(S)});g>p.radius*2&&(g=p.radius*2),(h==null||h.width>g)&&(h={circle:p,width:g,p1:a,p2:f,large:g>p.radius,sweep:!0})}h!=null&&(r.push(h),i+=lt(h.circle.radius,h.width),f=a)}}else{let l=t[0];for(let u=1;u<t.length;++u)t[u].radius<l.radius&&(l=t[u]);let f=!1;for(let u=0;u<t.length;++u)if(q(t[u],l)>Math.abs(l.radius-t[u].radius)){f=!0;break}f?i=o=0:(i=l.radius*l.radius*Math.PI,r.push({circle:l,p1:{x:l.x,y:l.y+l.radius},p2:{x:l.x-_t,y:l.y+l.radius},width:l.radius*2,large:!0,sweep:!0}))}return o/=2,n&&(n.area=i+o,n.arcArea=i,n.polygonArea=o,n.arcs=r,n.innerPoints=e,n.intersectionPoints=s),i+o}function ae(t,n){return n.every(s=>q(t,s)<s.radius+_t)}function le(t){const n=[];for(let s=0;s<t.length;++s)for(let e=s+1;e<t.length;++e){const i=Tt(t[s],t[e]);for(const o of i)o.parentIndex=[s,e],n.push(o)}return n}function lt(t,n){return t*t*Math.acos(1-n/t)-(t-n)*Math.sqrt(n*(2*t-n))}function q(t,n){return Math.sqrt((t.x-n.x)*(t.x-n.x)+(t.y-n.y)*(t.y-n.y))}function xt(t,n,s){if(s>=t+n)return 0;if(s<=Math.abs(t-n))return Math.PI*Math.min(t,n)*Math.min(t,n);const e=t-(s*s-n*n+t*t)/(2*s),i=n-(s*s-t*t+n*n)/(2*s);return lt(t,e)+lt(n,i)}function Tt(t,n){const s=q(t,n),e=t.radius,i=n.radius;if(s>=e+i||s<=Math.abs(e-i))return[];const o=(e*e-i*i+s*s)/(2*s),r=Math.sqrt(e*e-o*o),l=t.x+o*(n.x-t.x)/s,f=t.y+o*(n.y-t.y)/s,u=-(n.y-t.y)*(r/s),a=-(n.x-t.x)*(r/s);return[{x:l+u,y:f-a},{x:l-u,y:f+a}]}function Et(t){const n={x:0,y:0};for(const s of t)n.x+=s.x,n.y+=s.y;return n.x/=t.length,n.y/=t.length,n}function ce(t,n,s,e){e=e||{};const i=e.maxIterations||100,o=e.tolerance||1e-10,r=t(n),l=t(s);let f=s-n;if(r*l>0)throw"Initial bisect points must have opposite signs";if(r===0)return n;if(l===0)return s;for(let u=0;u<i;++u){f/=2;const a=n+f,y=t(a);if(y*r>=0&&(n=a),Math.abs(f)<o||y===0)return a}return n+f}function ct(t){const n=new Array(t);for(let s=0;s<t;++s)n[s]=0;return n}function Mt(t,n){return ct(t).map(()=>ct(n))}function $(t,n){let s=0;for(let e=0;e<t.length;++e)s+=t[e]*n[e];return s}function ut(t){return Math.sqrt($(t,t))}function ft(t,n,s){for(let e=0;e<n.length;++e)t[e]=n[e]*s}function Z(t,n,s,e,i){for(let o=0;o<t.length;++o)t[o]=n*s[o]+e*i[o]}function zt(t,n,s){s=s||{};const e=s.maxIterations||n.length*200,i=s.nonZeroDelta||1.05,o=s.zeroDelta||.001,r=s.minErrorDelta||1e-6,l=s.minErrorDelta||1e-5,f=s.rho!==void 0?s.rho:1,u=s.chi!==void 0?s.chi:2,a=s.psi!==void 0?s.psi:-.5,y=s.sigma!==void 0?s.sigma:.5;let h;const b=n.length,p=new Array(b+1);p[0]=n,p[0].fx=t(n),p[0].id=0;for(let v=0;v<b;++v){const c=n.slice();c[v]=c[v]?c[v]*i:o,p[v+1]=c,p[v+1].fx=t(c),p[v+1].id=v+1}function M(v){for(let c=0;c<v.length;c++)p[b][c]=v[c];p[b].fx=v.fx}const E=(v,c)=>v.fx-c.fx,_=n.slice(),S=n.slice(),g=n.slice(),m=n.slice();for(let v=0;v<e;++v){if(p.sort(E),s.history){const x=p.map(d=>{const C=d.slice();return C.fx=d.fx,C.id=d.id,C});x.sort((d,C)=>d.id-C.id),s.history.push({x:p[0].slice(),fx:p[0].fx,simplex:x})}h=0;for(let x=0;x<b;++x)h=Math.max(h,Math.abs(p[0][x]-p[1][x]));if(Math.abs(p[0].fx-p[b].fx)<r&&h<l)break;for(let x=0;x<b;++x){_[x]=0;for(let d=0;d<b;++d)_[x]+=p[d][x];_[x]/=b}const c=p[b];if(Z(S,1+f,_,-f,c),S.fx=t(S),S.fx<p[0].fx)Z(m,1+u,_,-u,c),m.fx=t(m),m.fx<S.fx?M(m):M(S);else if(S.fx>=p[b-1].fx){let x=!1;if(S.fx>c.fx?(Z(g,1+a,_,-a,c),g.fx=t(g),g.fx<c.fx?M(g):x=!0):(Z(g,1-a*f,_,a*f,c),g.fx=t(g),g.fx<S.fx?M(g):x=!0),x){if(y>=1)break;for(let d=1;d<p.length;++d)Z(p[d],1-y,p[0],y,p[d]),p[d].fx=t(p[d])}}else M(S)}return p.sort(E),{fx:p[0].fx,x:p[0]}}function ue(t,n,s,e,i,o,r){const l=s.fx,f=$(s.fxprime,n);let u=l,a=l,y=f,h=0;i=i||1,o=o||1e-6,r=r||.1;function b(p,M,E){for(let _=0;_<16;++_)if(i=(p+M)/2,Z(e.x,1,s.x,i,n),u=e.fx=t(e.x,e.fxprime),y=$(e.fxprime,n),u>l+o*i*f||u>=E)M=i;else{if(Math.abs(y)<=-r*f)return i;y*(M-p)>=0&&(M=p),p=i,E=u}return 0}for(let p=0;p<10;++p){if(Z(e.x,1,s.x,i,n),u=e.fx=t(e.x,e.fxprime),y=$(e.fxprime,n),u>l+o*i*f||p&&u>=a)return b(h,i,a);if(Math.abs(y)<=-r*f)return i;if(y>=0)return b(i,h,u);a=u,h=i,i*=2}return i}function fe(t,n,s){let e={x:n.slice(),fx:0,fxprime:n.slice()},i={x:n.slice(),fx:0,fxprime:n.slice()};const o=n.slice();let r,l,f=1,u;s=s||{},u=s.maxIterations||n.length*20,e.fx=t(e.x,e.fxprime),r=e.fxprime.slice(),ft(r,e.fxprime,-1);for(let a=0;a<u;++a){if(f=ue(t,r,e,i,f),s.history&&s.history.push({x:e.x.slice(),fx:e.fx,fxprime:e.fxprime.slice(),alpha:f}),!f)ft(r,e.fxprime,-1);else{Z(o,1,i.fxprime,-1,e.fxprime);const y=$(e.fxprime,e.fxprime),h=Math.max(0,$(o,i.fxprime)/y);Z(r,h,r,-1,i.fxprime),l=e,e=i,i=l}if(ut(e.fxprime)<=1e-5)break}return s.history&&s.history.push({x:e.x.slice(),fx:e.fx,fxprime:e.fxprime.slice(),alpha:f}),e}function At(t,n={}){n.maxIterations=n.maxIterations||500;const s=n.initialLayout||xe,e=n.lossFunction||tt,i=he(t,n),o=s(i,n),r=Object.keys(o),l=[];for(const a of r)l.push(o[a].x),l.push(o[a].y);const u=zt(a=>{const y={};for(let h=0;h<r.length;++h){const b=r[h];y[b]={x:a[2*h],y:a[2*h+1],radius:o[b].radius}}return e(y,i)},l,n).x;for(let a=0;a<r.length;++a){const y=r[a];o[y].x=u[2*a],o[y].y=u[2*a+1]}return o}const Rt=1e-10;function ht(t,n,s){return Math.min(t,n)*Math.min(t,n)*Math.PI<=s+Rt?Math.abs(t-n):ce(e=>xt(t,n,e)-s,0,t+n)}function he(t,n={}){const s=n.distinct,e=t.map(l=>Object.assign({},l));function i(l){return l.join(";")}if(s){const l=new Map;for(const f of e)for(let u=0;u<f.sets.length;u++){const a=String(f.sets[u]);l.set(a,f.size+(l.get(a)||0));for(let y=u+1;y<f.sets.length;y++){const h=String(f.sets[y]),b=`${a};${h}`,p=`${h};${a}`;l.set(b,f.size+(l.get(b)||0)),l.set(p,f.size+(l.get(p)||0))}}for(const f of e)f.sets.length<3&&(f.size=l.get(i(f.sets)))}const o=[],r=new Set;for(const l of e)if(l.sets.length===1)o.push(l.sets[0]);else if(l.sets.length===2){const f=l.sets[0],u=l.sets[1];r.add(i(l.sets)),r.add(i([u,f]))}o.sort((l,f)=>l===f?0:l<f?-1:1);for(let l=0;l<o.length;++l){const f=o[l];for(let u=l+1;u<o.length;++u){const a=o[u];r.has(i([f,a]))||e.push({sets:[f,a],size:0})}}return e}function de(t,n,s){const e=Mt(n.length,n.length),i=Mt(n.length,n.length);return t.filter(o=>o.sets.length===2).forEach(o=>{const r=s[o.sets[0]],l=s[o.sets[1]],f=Math.sqrt(n[r].size/Math.PI),u=Math.sqrt(n[l].size/Math.PI),a=ht(f,u,o.size);e[r][l]=e[l][r]=a;let y=0;o.size+1e-10>=Math.min(n[r].size,n[l].size)?y=1:o.size<=1e-10&&(y=-1),i[r][l]=i[l][r]=y}),{distances:e,constraints:i}}function ge(t,n,s,e){for(let o=0;o<n.length;++o)n[o]=0;let i=0;for(let o=0;o<s.length;++o){const r=t[2*o],l=t[2*o+1];for(let f=o+1;f<s.length;++f){const u=t[2*f],a=t[2*f+1],y=s[o][f],h=e[o][f],b=(u-r)*(u-r)+(a-l)*(a-l),p=Math.sqrt(b),M=b-y*y;h>0&&p<=y||h<0&&p>=y||(i+=2*M*M,n[2*o]+=4*M*(r-u),n[2*o+1]+=4*M*(l-a),n[2*f]+=4*M*(u-r),n[2*f+1]+=4*M*(a-l))}}return i}function xe(t,n={}){let s=pe(t,n);const e=n.lossFunction||tt;if(t.length>=8){const i=ye(t,n),o=e(i,t),r=e(s,t);o+1e-8<r&&(s=i)}return s}function ye(t,n={}){const s=n.restarts||10,e=[],i={};for(const h of t)h.sets.length===1&&(i[h.sets[0]]=e.length,e.push(h));let{distances:o,constraints:r}=de(t,e,i);const l=ut(o.map(ut))/o.length;o=o.map(h=>h.map(b=>b/l));const f=(h,b)=>ge(h,b,o,r);let u=null;for(let h=0;h<s;++h){const b=ct(o.length*2).map(Math.random),p=fe(f,b,n);(!u||p.fx<u.fx)&&(u=p)}const a=u.x,y={};for(let h=0;h<e.length;++h){const b=e[h];y[b.sets[0]]={x:a[2*h]*l,y:a[2*h+1]*l,radius:Math.sqrt(b.size/Math.PI)}}if(n.history)for(const h of n.history)ft(h.x,l);return y}function pe(t,n){const s=n&&n.lossFunction?n.lossFunction:tt,e={},i={};for(const y of t)if(y.sets.length===1){const h=y.sets[0];e[h]={x:1e10,y:1e10,rowid:e.length,size:y.size,radius:Math.sqrt(y.size/Math.PI)},i[h]=[]}t=t.filter(y=>y.sets.length===2);for(const y of t){let h=y.weight!=null?y.weight:1;const b=y.sets[0],p=y.sets[1];y.size+Rt>=Math.min(e[b].size,e[p].size)&&(h=0),i[b].push({set:p,size:y.size,weight:h}),i[p].push({set:b,size:y.size,weight:h})}const o=[];Object.keys(i).forEach(y=>{let h=0;for(let b=0;b<i[y].length;++b)h+=i[y][b].size*i[y][b].weight;o.push({set:y,size:h})});function r(y,h){return h.size-y.size}o.sort(r);const l={};function f(y){return y.set in l}function u(y,h){e[h].x=y.x,e[h].y=y.y,l[h]=!0}u({x:0,y:0},o[0].set);for(let y=1;y<o.length;++y){const h=o[y].set,b=i[h].filter(f),p=e[h];if(b.sort(r),b.length===0)throw"ERROR: missing pairwise overlap information";const M=[];for(var a=0;a<b.length;++a){const S=e[b[a].set],g=ht(p.radius,S.radius,b[a].size);M.push({x:S.x+g,y:S.y}),M.push({x:S.x-g,y:S.y}),M.push({y:S.y+g,x:S.x}),M.push({y:S.y-g,x:S.x});for(let m=a+1;m<b.length;++m){const v=e[b[m].set],c=ht(p.radius,v.radius,b[m].size),x=Tt({x:S.x,y:S.y,radius:g},{x:v.x,y:v.y,radius:c});M.push(...x)}}let E=1e50,_=M[0];for(const S of M){e[h].x=S.x,e[h].y=S.y;const g=s(e,t);g<E&&(E=g,_=S)}u(_,h)}return e}function tt(t,n){let s=0;for(const e of n){if(e.sets.length===1)continue;let i;if(e.sets.length===2){const r=t[e.sets[0]],l=t[e.sets[1]];i=xt(r.radius,l.radius,q(r,l))}else i=st(e.sets.map(r=>t[r]));const o=e.weight!=null?e.weight:1;s+=o*(i-e.size)*(i-e.size)}return s}function Ct(t,n){let s=0;for(const e of n){if(e.sets.length===1)continue;let i;if(e.sets.length===2){const l=t[e.sets[0]],f=t[e.sets[1]];i=xt(l.radius,f.radius,q(l,f))}else i=st(e.sets.map(l=>t[l]));const o=e.weight!=null?e.weight:1,r=Math.log((i+1)/(e.size+1));s+=o*r*r}return s}function me(t,n,s){if(s==null?t.sort((i,o)=>o.radius-i.radius):t.sort(s),t.length>0){const i=t[0].x,o=t[0].y;for(const r of t)r.x-=i,r.y-=o}if(t.length===2&&q(t[0],t[1])<Math.abs(t[1].radius-t[0].radius)&&(t[1].x=t[0].x+t[0].radius-t[1].radius-1e-10,t[1].y=t[0].y),t.length>1){const i=Math.atan2(t[1].x,t[1].y)-n,o=Math.cos(i),r=Math.sin(i);for(const l of t){const f=l.x,u=l.y;l.x=o*f-r*u,l.y=r*f+o*u}}if(t.length>2){let i=Math.atan2(t[2].x,t[2].y)-n;for(;i<0;)i+=2*Math.PI;for(;i>2*Math.PI;)i-=2*Math.PI;if(i>Math.PI){const o=t[1].y/(1e-10+t[1].x);for(const r of t){var e=(r.x+o*r.y)/(1+o*o);r.x=2*e-r.x,r.y=2*e*o-r.y}}}}function be(t){t.forEach(i=>{i.parent=i});function n(i){return i.parent!==i&&(i.parent=n(i.parent)),i.parent}function s(i,o){const r=n(i),l=n(o);r.parent=l}for(let i=0;i<t.length;++i)for(let o=i+1;o<t.length;++o){const r=t[i].radius+t[o].radius;q(t[i],t[o])+1e-10<r&&s(t[o],t[i])}const e=new Map;for(let i=0;i<t.length;++i){const o=n(t[i]).parent.setid;e.has(o)||e.set(o,[]),e.get(o).push(t[i])}return t.forEach(i=>{delete i.parent}),Array.from(e.values())}function dt(t){const n=s=>{const e=t.reduce((o,r)=>Math.max(o,r[s]+r.radius),Number.NEGATIVE_INFINITY),i=t.reduce((o,r)=>Math.min(o,r[s]-r.radius),Number.POSITIVE_INFINITY);return{max:e,min:i}};return{xRange:n("x"),yRange:n("y")}}function Dt(t,n,s){n==null&&(n=Math.PI/2);let e=Ft(t).map(u=>Object.assign({},u));const i=be(e);for(const u of i){me(u,n,s);const a=dt(u);u.size=(a.xRange.max-a.xRange.min)*(a.yRange.max-a.yRange.min),u.bounds=a}i.sort((u,a)=>a.size-u.size),e=i[0];let o=e.bounds;const r=(o.xRange.max-o.xRange.min)/50;function l(u,a,y){if(!u)return;const h=u.bounds;let b,p;if(a)b=o.xRange.max-h.xRange.min+r;else{b=o.xRange.max-h.xRange.max;const M=(h.xRange.max-h.xRange.min)/2-(o.xRange.max-o.xRange.min)/2;M<0&&(b+=M)}if(y)p=o.yRange.max-h.yRange.min+r;else{p=o.yRange.max-h.yRange.max;const M=(h.yRange.max-h.yRange.min)/2-(o.yRange.max-o.yRange.min)/2;M<0&&(p+=M)}for(const M of u)M.x+=b,M.y+=p,e.push(M)}let f=1;for(;f<i.length;)l(i[f],!0,!1),l(i[f+1],!1,!0),l(i[f+2],!0,!0),f+=3,o=dt(e);return Nt(e)}function Ot(t,n,s,e,i){const o=Ft(t);n-=2*e,s-=2*e;const{xRange:r,yRange:l}=dt(o);if(r.max===r.min||l.max===l.min)return console.log("not scaling solution: zero size detected"),t;let f,u;if(i){const b=Math.sqrt(i/Math.PI)*2;f=n/b,u=s/b}else f=n/(r.max-r.min),u=s/(l.max-l.min);const a=Math.min(u,f),y=(n-(r.max-r.min)*a)/2,h=(s-(l.max-l.min)*a)/2;return Nt(o.map(b=>({radius:a*b.radius,x:e+y+(b.x-r.min)*a,y:e+h+(b.y-l.min)*a,setid:b.setid})))}function Nt(t){const n={};for(const s of t)n[s.setid]=s;return n}function Ft(t){return Object.keys(t).map(s=>Object.assign(t[s],{setid:s}))}function ve(t={}){let n=!1,s=600,e=350,i=15,o=1e3,r=Math.PI/2,l=!0,f=null,u=!0,a=!0,y=null,h=null,b=!1,p=null,M=t&&t.symmetricalTextCentre?t.symmetricalTextCentre:!1,E={},_=t&&t.colourScheme?t.colourScheme:t&&t.colorScheme?t.colorScheme:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],S=0,g=function(x){if(x in E)return E[x];var d=E[x]=_[S];return S+=1,S>=_.length&&(S=0),d},m=At,v=tt;function c(x){let d=x.datum();const C=new Set;d.forEach(k=>{k.size==0&&k.sets.length==1&&C.add(k.sets[0])}),d=d.filter(k=>!k.sets.some(O=>C.has(O)));let I={},D={};if(d.length>0){let k=m(d,{lossFunction:v,distinct:b});l&&(k=Dt(k,r,h)),I=Ot(k,s,e,i,f),D=Lt(I,d,M)}const U={};d.forEach(k=>{k.label&&(U[k.sets]=k.label)});function V(k){if(k.sets in U)return U[k.sets];if(k.sets.length==1)return""+k.sets[0]}x.selectAll("svg").data([I]).enter().append("svg");const F=x.select("svg");n?F.attr("viewBox",`0 0 ${s} ${e}`):F.attr("width",s).attr("height",e);const R={};let T=!1;F.selectAll(".venn-area path").each(function(k){const O=this.getAttribute("d");k.sets.length==1&&O&&!b&&(T=!0,R[k.sets[0]]=Me(O))});function A(k){return O=>{const K=k.sets.map(et=>{let Y=R[et],X=I[et];return Y||(Y={x:s/2,y:e/2,radius:1}),X||(X={x:s/2,y:e/2,radius:1}),{x:Y.x*(1-O)+X.x*O,y:Y.y*(1-O)+X.y*O,radius:Y.radius*(1-O)+X.radius*O}});return St(K,p)}}const W=F.selectAll(".venn-area").data(d,k=>k.sets),P=W.enter().append("g").attr("class",k=>`venn-area venn-${k.sets.length==1?"circle":"intersection"}${k.colour||k.color?" venn-coloured":""}`).attr("data-venn-sets",k=>k.sets.join("_")),B=P.append("path"),G=P.append("text").attr("class","label").text(k=>V(k)).attr("text-anchor","middle").attr("dy",".35em").attr("x",s/2).attr("y",e/2);a&&(B.style("fill-opacity","0").filter(k=>k.sets.length==1).style("fill",k=>k.colour?k.colour:k.color?k.color:g(k.sets)).style("fill-opacity",".25"),G.style("fill",k=>k.colour||k.color?"#FFF":t.textFill?t.textFill:k.sets.length==1?g(k.sets):"#444"));function L(k){return typeof k.transition=="function"?k.transition("venn").duration(o):k}let z=x;T&&typeof z.transition=="function"?(z=L(x),z.selectAll("path").attrTween("d",A)):z.selectAll("path").attr("d",k=>St(k.sets.map(O=>I[O])),p);const N=z.selectAll("text").filter(k=>k.sets in D).text(k=>V(k)).attr("x",k=>Math.floor(D[k.sets].x)).attr("y",k=>Math.floor(D[k.sets].y));u&&(T?"on"in N?N.on("end",rt(I,V)):N.each("end",rt(I,V)):N.each(rt(I,V)));const j=L(W.exit()).remove();typeof W.transition=="function"&&j.selectAll("path").attrTween("d",A);const Q=j.selectAll("text").attr("x",s/2).attr("y",e/2);return y!==null&&(G.style("font-size","0px"),N.style("font-size",y),Q.style("font-size","0px")),{circles:I,textCentres:D,nodes:W,enter:P,update:z,exit:j}}return c.wrap=function(x){return arguments.length?(u=x,c):u},c.useViewBox=function(){return n=!0,c},c.width=function(x){return arguments.length?(s=x,c):s},c.height=function(x){return arguments.length?(e=x,c):e},c.padding=function(x){return arguments.length?(i=x,c):i},c.distinct=function(x){return arguments.length?(b=x,c):b},c.colours=function(x){return arguments.length?(g=x,c):g},c.colors=function(x){return arguments.length?(g=x,c):g},c.fontSize=function(x){return arguments.length?(y=x,c):y},c.round=function(x){return arguments.length?(p=x,c):p},c.duration=function(x){return arguments.length?(o=x,c):o},c.layoutFunction=function(x){return arguments.length?(m=x,c):m},c.normalize=function(x){return arguments.length?(l=x,c):l},c.scaleToFit=function(x){return arguments.length?(f=x,c):f},c.styled=function(x){return arguments.length?(a=x,c):a},c.orientation=function(x){return arguments.length?(r=x,c):r},c.orientationOrder=function(x){return arguments.length?(h=x,c):h},c.lossFunction=function(x){return arguments.length?(v=x==="default"?tt:x==="logRatio"?Ct:x,c):v},c}function rt(t,n){return function(s){const e=this,i=t[s.sets[0]].radius||50,o=n(s)||"",r=o.split(/\s+/).reverse(),f=(o.length+r.length)/3;let u=r.pop(),a=[u],y=0;const h=1.1;e.textContent=null;const b=[];function p(g){const m=e.ownerDocument.createElementNS(e.namespaceURI,"tspan");return m.textContent=g,b.push(m),e.append(m),m}let M=p(u);for(;u=r.pop(),!!u;){a.push(u);const g=a.join(" ");M.textContent=g,g.length>f&&M.getComputedTextLength()>i&&(a.pop(),M.textContent=a.join(" "),a=[u],M=p(u),y++)}const E=.35-y*h/2,_=e.getAttribute("x"),S=e.getAttribute("y");b.forEach((g,m)=>{g.setAttribute("x",_),g.setAttribute("y",S),g.setAttribute("dy",`${E+m*h}em`)})}}function at(t,n,s){let e=n[0].radius-q(n[0],t);for(let i=1;i<n.length;++i){const o=n[i].radius-q(n[i],t);o<=e&&(e=o)}for(let i=0;i<s.length;++i){const o=q(s[i],t)-s[i].radius;o<=e&&(e=o)}return e}function jt(t,n,s){const e=[];for(const a of t)e.push({x:a.x,y:a.y}),e.push({x:a.x+a.radius/2,y:a.y}),e.push({x:a.x-a.radius/2,y:a.y}),e.push({x:a.x,y:a.y+a.radius/2}),e.push({x:a.x,y:a.y-a.radius/2});let i=e[0],o=at(e[0],t,n);for(let a=1;a<e.length;++a){const y=at(e[a],t,n);y>=o&&(i=e[a],o=y)}const r=zt(a=>-1*at({x:a[0],y:a[1]},t,n),[i.x,i.y],{maxIterations:500,minErrorDelta:1e-10}).x,l={x:s?0:r[0],y:r[1]};let f=!0;for(const a of t)if(q(l,a)>a.radius){f=!1;break}for(const a of n)if(q(l,a)<a.radius){f=!1;break}if(f)return l;if(t.length==1)return{x:t[0].x,y:t[0].y};const u={};return st(t,u),u.arcs.length===0?{x:0,y:-1e3,disjoint:!0}:u.arcs.length==1?{x:u.arcs[0].circle.x,y:u.arcs[0].circle.y}:n.length?jt(t,[]):Et(u.arcs.map(a=>a.p1))}function Ie(t){const n={},s=Object.keys(t);for(const e of s)n[e]=[];for(let e=0;e<s.length;e++){const i=s[e],o=t[i];for(let r=e+1;r<s.length;++r){const l=s[r],f=t[l],u=q(o,f);u+f.radius<=o.radius+1e-10?n[l].push(i):u+o.radius<=f.radius+1e-10&&n[i].push(l)}}return n}function Lt(t,n,s){const e={},i=Ie(t);for(let o=0;o<n.length;++o){const r=n[o].sets,l={},f={};for(let h=0;h<r.length;++h){l[r[h]]=!0;const b=i[r[h]];for(let p=0;p<b.length;++p)f[b[p]]=!0}const u=[],a=[];for(let h in t)h in l?u.push(t[h]):h in f||a.push(t[h]);const y=jt(u,a,s);e[r]=y,y.disjoint&&n[o].size>0&&console.log("WARNING: area "+r+" not represented on screen")}return e}function ke(t,n,s){const e=[];return e.push(`
|
|
1
|
+
import{c as Gt,aZ as Kt,U as Ht,Y as Yt,b0 as Xt,V as Zt,a_ as Jt,b as w,W as wt,aX as Qt,aW as ot,i as $t,an as te,au as ee,H as ne,B as se,r as ie,q as oe,O as re}from"./D4gGvbme.js";const kt=(t,n)=>Gt(t,"a",-n),_t=1e-10;function st(t,n){const s=le(t),e=s.filter(l=>ae(l,t));let i=0,o=0;const r=[];if(e.length>1){const l=Et(e);for(let u=0;u<e.length;++u){const a=e[u];a.angle=Math.atan2(a.x-l.x,a.y-l.y)}e.sort((u,a)=>a.angle-u.angle);let f=e[e.length-1];for(let u=0;u<e.length;++u){const a=e[u];o+=(f.x+a.x)*(a.y-f.y);const y={x:(a.x+f.x)/2,y:(a.y+f.y)/2};let h=null;for(let b=0;b<a.parentIndex.length;++b)if(f.parentIndex.includes(a.parentIndex[b])){const p=t[a.parentIndex[b]],M=Math.atan2(a.x-p.x,a.y-p.y),E=Math.atan2(f.x-p.x,f.y-p.y);let _=E-M;_<0&&(_+=2*Math.PI);const S=E-_/2;let g=q(y,{x:p.x+p.radius*Math.sin(S),y:p.y+p.radius*Math.cos(S)});g>p.radius*2&&(g=p.radius*2),(h==null||h.width>g)&&(h={circle:p,width:g,p1:a,p2:f,large:g>p.radius,sweep:!0})}h!=null&&(r.push(h),i+=lt(h.circle.radius,h.width),f=a)}}else{let l=t[0];for(let u=1;u<t.length;++u)t[u].radius<l.radius&&(l=t[u]);let f=!1;for(let u=0;u<t.length;++u)if(q(t[u],l)>Math.abs(l.radius-t[u].radius)){f=!0;break}f?i=o=0:(i=l.radius*l.radius*Math.PI,r.push({circle:l,p1:{x:l.x,y:l.y+l.radius},p2:{x:l.x-_t,y:l.y+l.radius},width:l.radius*2,large:!0,sweep:!0}))}return o/=2,n&&(n.area=i+o,n.arcArea=i,n.polygonArea=o,n.arcs=r,n.innerPoints=e,n.intersectionPoints=s),i+o}function ae(t,n){return n.every(s=>q(t,s)<s.radius+_t)}function le(t){const n=[];for(let s=0;s<t.length;++s)for(let e=s+1;e<t.length;++e){const i=Tt(t[s],t[e]);for(const o of i)o.parentIndex=[s,e],n.push(o)}return n}function lt(t,n){return t*t*Math.acos(1-n/t)-(t-n)*Math.sqrt(n*(2*t-n))}function q(t,n){return Math.sqrt((t.x-n.x)*(t.x-n.x)+(t.y-n.y)*(t.y-n.y))}function xt(t,n,s){if(s>=t+n)return 0;if(s<=Math.abs(t-n))return Math.PI*Math.min(t,n)*Math.min(t,n);const e=t-(s*s-n*n+t*t)/(2*s),i=n-(s*s-t*t+n*n)/(2*s);return lt(t,e)+lt(n,i)}function Tt(t,n){const s=q(t,n),e=t.radius,i=n.radius;if(s>=e+i||s<=Math.abs(e-i))return[];const o=(e*e-i*i+s*s)/(2*s),r=Math.sqrt(e*e-o*o),l=t.x+o*(n.x-t.x)/s,f=t.y+o*(n.y-t.y)/s,u=-(n.y-t.y)*(r/s),a=-(n.x-t.x)*(r/s);return[{x:l+u,y:f-a},{x:l-u,y:f+a}]}function Et(t){const n={x:0,y:0};for(const s of t)n.x+=s.x,n.y+=s.y;return n.x/=t.length,n.y/=t.length,n}function ce(t,n,s,e){e=e||{};const i=e.maxIterations||100,o=e.tolerance||1e-10,r=t(n),l=t(s);let f=s-n;if(r*l>0)throw"Initial bisect points must have opposite signs";if(r===0)return n;if(l===0)return s;for(let u=0;u<i;++u){f/=2;const a=n+f,y=t(a);if(y*r>=0&&(n=a),Math.abs(f)<o||y===0)return a}return n+f}function ct(t){const n=new Array(t);for(let s=0;s<t;++s)n[s]=0;return n}function Mt(t,n){return ct(t).map(()=>ct(n))}function $(t,n){let s=0;for(let e=0;e<t.length;++e)s+=t[e]*n[e];return s}function ut(t){return Math.sqrt($(t,t))}function ft(t,n,s){for(let e=0;e<n.length;++e)t[e]=n[e]*s}function Z(t,n,s,e,i){for(let o=0;o<t.length;++o)t[o]=n*s[o]+e*i[o]}function zt(t,n,s){s=s||{};const e=s.maxIterations||n.length*200,i=s.nonZeroDelta||1.05,o=s.zeroDelta||.001,r=s.minErrorDelta||1e-6,l=s.minErrorDelta||1e-5,f=s.rho!==void 0?s.rho:1,u=s.chi!==void 0?s.chi:2,a=s.psi!==void 0?s.psi:-.5,y=s.sigma!==void 0?s.sigma:.5;let h;const b=n.length,p=new Array(b+1);p[0]=n,p[0].fx=t(n),p[0].id=0;for(let v=0;v<b;++v){const c=n.slice();c[v]=c[v]?c[v]*i:o,p[v+1]=c,p[v+1].fx=t(c),p[v+1].id=v+1}function M(v){for(let c=0;c<v.length;c++)p[b][c]=v[c];p[b].fx=v.fx}const E=(v,c)=>v.fx-c.fx,_=n.slice(),S=n.slice(),g=n.slice(),m=n.slice();for(let v=0;v<e;++v){if(p.sort(E),s.history){const x=p.map(d=>{const C=d.slice();return C.fx=d.fx,C.id=d.id,C});x.sort((d,C)=>d.id-C.id),s.history.push({x:p[0].slice(),fx:p[0].fx,simplex:x})}h=0;for(let x=0;x<b;++x)h=Math.max(h,Math.abs(p[0][x]-p[1][x]));if(Math.abs(p[0].fx-p[b].fx)<r&&h<l)break;for(let x=0;x<b;++x){_[x]=0;for(let d=0;d<b;++d)_[x]+=p[d][x];_[x]/=b}const c=p[b];if(Z(S,1+f,_,-f,c),S.fx=t(S),S.fx<p[0].fx)Z(m,1+u,_,-u,c),m.fx=t(m),m.fx<S.fx?M(m):M(S);else if(S.fx>=p[b-1].fx){let x=!1;if(S.fx>c.fx?(Z(g,1+a,_,-a,c),g.fx=t(g),g.fx<c.fx?M(g):x=!0):(Z(g,1-a*f,_,a*f,c),g.fx=t(g),g.fx<S.fx?M(g):x=!0),x){if(y>=1)break;for(let d=1;d<p.length;++d)Z(p[d],1-y,p[0],y,p[d]),p[d].fx=t(p[d])}}else M(S)}return p.sort(E),{fx:p[0].fx,x:p[0]}}function ue(t,n,s,e,i,o,r){const l=s.fx,f=$(s.fxprime,n);let u=l,a=l,y=f,h=0;i=i||1,o=o||1e-6,r=r||.1;function b(p,M,E){for(let _=0;_<16;++_)if(i=(p+M)/2,Z(e.x,1,s.x,i,n),u=e.fx=t(e.x,e.fxprime),y=$(e.fxprime,n),u>l+o*i*f||u>=E)M=i;else{if(Math.abs(y)<=-r*f)return i;y*(M-p)>=0&&(M=p),p=i,E=u}return 0}for(let p=0;p<10;++p){if(Z(e.x,1,s.x,i,n),u=e.fx=t(e.x,e.fxprime),y=$(e.fxprime,n),u>l+o*i*f||p&&u>=a)return b(h,i,a);if(Math.abs(y)<=-r*f)return i;if(y>=0)return b(i,h,u);a=u,h=i,i*=2}return i}function fe(t,n,s){let e={x:n.slice(),fx:0,fxprime:n.slice()},i={x:n.slice(),fx:0,fxprime:n.slice()};const o=n.slice();let r,l,f=1,u;s=s||{},u=s.maxIterations||n.length*20,e.fx=t(e.x,e.fxprime),r=e.fxprime.slice(),ft(r,e.fxprime,-1);for(let a=0;a<u;++a){if(f=ue(t,r,e,i,f),s.history&&s.history.push({x:e.x.slice(),fx:e.fx,fxprime:e.fxprime.slice(),alpha:f}),!f)ft(r,e.fxprime,-1);else{Z(o,1,i.fxprime,-1,e.fxprime);const y=$(e.fxprime,e.fxprime),h=Math.max(0,$(o,i.fxprime)/y);Z(r,h,r,-1,i.fxprime),l=e,e=i,i=l}if(ut(e.fxprime)<=1e-5)break}return s.history&&s.history.push({x:e.x.slice(),fx:e.fx,fxprime:e.fxprime.slice(),alpha:f}),e}function At(t,n={}){n.maxIterations=n.maxIterations||500;const s=n.initialLayout||xe,e=n.lossFunction||tt,i=he(t,n),o=s(i,n),r=Object.keys(o),l=[];for(const a of r)l.push(o[a].x),l.push(o[a].y);const u=zt(a=>{const y={};for(let h=0;h<r.length;++h){const b=r[h];y[b]={x:a[2*h],y:a[2*h+1],radius:o[b].radius}}return e(y,i)},l,n).x;for(let a=0;a<r.length;++a){const y=r[a];o[y].x=u[2*a],o[y].y=u[2*a+1]}return o}const Rt=1e-10;function ht(t,n,s){return Math.min(t,n)*Math.min(t,n)*Math.PI<=s+Rt?Math.abs(t-n):ce(e=>xt(t,n,e)-s,0,t+n)}function he(t,n={}){const s=n.distinct,e=t.map(l=>Object.assign({},l));function i(l){return l.join(";")}if(s){const l=new Map;for(const f of e)for(let u=0;u<f.sets.length;u++){const a=String(f.sets[u]);l.set(a,f.size+(l.get(a)||0));for(let y=u+1;y<f.sets.length;y++){const h=String(f.sets[y]),b=`${a};${h}`,p=`${h};${a}`;l.set(b,f.size+(l.get(b)||0)),l.set(p,f.size+(l.get(p)||0))}}for(const f of e)f.sets.length<3&&(f.size=l.get(i(f.sets)))}const o=[],r=new Set;for(const l of e)if(l.sets.length===1)o.push(l.sets[0]);else if(l.sets.length===2){const f=l.sets[0],u=l.sets[1];r.add(i(l.sets)),r.add(i([u,f]))}o.sort((l,f)=>l===f?0:l<f?-1:1);for(let l=0;l<o.length;++l){const f=o[l];for(let u=l+1;u<o.length;++u){const a=o[u];r.has(i([f,a]))||e.push({sets:[f,a],size:0})}}return e}function de(t,n,s){const e=Mt(n.length,n.length),i=Mt(n.length,n.length);return t.filter(o=>o.sets.length===2).forEach(o=>{const r=s[o.sets[0]],l=s[o.sets[1]],f=Math.sqrt(n[r].size/Math.PI),u=Math.sqrt(n[l].size/Math.PI),a=ht(f,u,o.size);e[r][l]=e[l][r]=a;let y=0;o.size+1e-10>=Math.min(n[r].size,n[l].size)?y=1:o.size<=1e-10&&(y=-1),i[r][l]=i[l][r]=y}),{distances:e,constraints:i}}function ge(t,n,s,e){for(let o=0;o<n.length;++o)n[o]=0;let i=0;for(let o=0;o<s.length;++o){const r=t[2*o],l=t[2*o+1];for(let f=o+1;f<s.length;++f){const u=t[2*f],a=t[2*f+1],y=s[o][f],h=e[o][f],b=(u-r)*(u-r)+(a-l)*(a-l),p=Math.sqrt(b),M=b-y*y;h>0&&p<=y||h<0&&p>=y||(i+=2*M*M,n[2*o]+=4*M*(r-u),n[2*o+1]+=4*M*(l-a),n[2*f]+=4*M*(u-r),n[2*f+1]+=4*M*(a-l))}}return i}function xe(t,n={}){let s=pe(t,n);const e=n.lossFunction||tt;if(t.length>=8){const i=ye(t,n),o=e(i,t),r=e(s,t);o+1e-8<r&&(s=i)}return s}function ye(t,n={}){const s=n.restarts||10,e=[],i={};for(const h of t)h.sets.length===1&&(i[h.sets[0]]=e.length,e.push(h));let{distances:o,constraints:r}=de(t,e,i);const l=ut(o.map(ut))/o.length;o=o.map(h=>h.map(b=>b/l));const f=(h,b)=>ge(h,b,o,r);let u=null;for(let h=0;h<s;++h){const b=ct(o.length*2).map(Math.random),p=fe(f,b,n);(!u||p.fx<u.fx)&&(u=p)}const a=u.x,y={};for(let h=0;h<e.length;++h){const b=e[h];y[b.sets[0]]={x:a[2*h]*l,y:a[2*h+1]*l,radius:Math.sqrt(b.size/Math.PI)}}if(n.history)for(const h of n.history)ft(h.x,l);return y}function pe(t,n){const s=n&&n.lossFunction?n.lossFunction:tt,e={},i={};for(const y of t)if(y.sets.length===1){const h=y.sets[0];e[h]={x:1e10,y:1e10,rowid:e.length,size:y.size,radius:Math.sqrt(y.size/Math.PI)},i[h]=[]}t=t.filter(y=>y.sets.length===2);for(const y of t){let h=y.weight!=null?y.weight:1;const b=y.sets[0],p=y.sets[1];y.size+Rt>=Math.min(e[b].size,e[p].size)&&(h=0),i[b].push({set:p,size:y.size,weight:h}),i[p].push({set:b,size:y.size,weight:h})}const o=[];Object.keys(i).forEach(y=>{let h=0;for(let b=0;b<i[y].length;++b)h+=i[y][b].size*i[y][b].weight;o.push({set:y,size:h})});function r(y,h){return h.size-y.size}o.sort(r);const l={};function f(y){return y.set in l}function u(y,h){e[h].x=y.x,e[h].y=y.y,l[h]=!0}u({x:0,y:0},o[0].set);for(let y=1;y<o.length;++y){const h=o[y].set,b=i[h].filter(f),p=e[h];if(b.sort(r),b.length===0)throw"ERROR: missing pairwise overlap information";const M=[];for(var a=0;a<b.length;++a){const S=e[b[a].set],g=ht(p.radius,S.radius,b[a].size);M.push({x:S.x+g,y:S.y}),M.push({x:S.x-g,y:S.y}),M.push({y:S.y+g,x:S.x}),M.push({y:S.y-g,x:S.x});for(let m=a+1;m<b.length;++m){const v=e[b[m].set],c=ht(p.radius,v.radius,b[m].size),x=Tt({x:S.x,y:S.y,radius:g},{x:v.x,y:v.y,radius:c});M.push(...x)}}let E=1e50,_=M[0];for(const S of M){e[h].x=S.x,e[h].y=S.y;const g=s(e,t);g<E&&(E=g,_=S)}u(_,h)}return e}function tt(t,n){let s=0;for(const e of n){if(e.sets.length===1)continue;let i;if(e.sets.length===2){const r=t[e.sets[0]],l=t[e.sets[1]];i=xt(r.radius,l.radius,q(r,l))}else i=st(e.sets.map(r=>t[r]));const o=e.weight!=null?e.weight:1;s+=o*(i-e.size)*(i-e.size)}return s}function Ct(t,n){let s=0;for(const e of n){if(e.sets.length===1)continue;let i;if(e.sets.length===2){const l=t[e.sets[0]],f=t[e.sets[1]];i=xt(l.radius,f.radius,q(l,f))}else i=st(e.sets.map(l=>t[l]));const o=e.weight!=null?e.weight:1,r=Math.log((i+1)/(e.size+1));s+=o*r*r}return s}function me(t,n,s){if(s==null?t.sort((i,o)=>o.radius-i.radius):t.sort(s),t.length>0){const i=t[0].x,o=t[0].y;for(const r of t)r.x-=i,r.y-=o}if(t.length===2&&q(t[0],t[1])<Math.abs(t[1].radius-t[0].radius)&&(t[1].x=t[0].x+t[0].radius-t[1].radius-1e-10,t[1].y=t[0].y),t.length>1){const i=Math.atan2(t[1].x,t[1].y)-n,o=Math.cos(i),r=Math.sin(i);for(const l of t){const f=l.x,u=l.y;l.x=o*f-r*u,l.y=r*f+o*u}}if(t.length>2){let i=Math.atan2(t[2].x,t[2].y)-n;for(;i<0;)i+=2*Math.PI;for(;i>2*Math.PI;)i-=2*Math.PI;if(i>Math.PI){const o=t[1].y/(1e-10+t[1].x);for(const r of t){var e=(r.x+o*r.y)/(1+o*o);r.x=2*e-r.x,r.y=2*e*o-r.y}}}}function be(t){t.forEach(i=>{i.parent=i});function n(i){return i.parent!==i&&(i.parent=n(i.parent)),i.parent}function s(i,o){const r=n(i),l=n(o);r.parent=l}for(let i=0;i<t.length;++i)for(let o=i+1;o<t.length;++o){const r=t[i].radius+t[o].radius;q(t[i],t[o])+1e-10<r&&s(t[o],t[i])}const e=new Map;for(let i=0;i<t.length;++i){const o=n(t[i]).parent.setid;e.has(o)||e.set(o,[]),e.get(o).push(t[i])}return t.forEach(i=>{delete i.parent}),Array.from(e.values())}function dt(t){const n=s=>{const e=t.reduce((o,r)=>Math.max(o,r[s]+r.radius),Number.NEGATIVE_INFINITY),i=t.reduce((o,r)=>Math.min(o,r[s]-r.radius),Number.POSITIVE_INFINITY);return{max:e,min:i}};return{xRange:n("x"),yRange:n("y")}}function Dt(t,n,s){n==null&&(n=Math.PI/2);let e=Ft(t).map(u=>Object.assign({},u));const i=be(e);for(const u of i){me(u,n,s);const a=dt(u);u.size=(a.xRange.max-a.xRange.min)*(a.yRange.max-a.yRange.min),u.bounds=a}i.sort((u,a)=>a.size-u.size),e=i[0];let o=e.bounds;const r=(o.xRange.max-o.xRange.min)/50;function l(u,a,y){if(!u)return;const h=u.bounds;let b,p;if(a)b=o.xRange.max-h.xRange.min+r;else{b=o.xRange.max-h.xRange.max;const M=(h.xRange.max-h.xRange.min)/2-(o.xRange.max-o.xRange.min)/2;M<0&&(b+=M)}if(y)p=o.yRange.max-h.yRange.min+r;else{p=o.yRange.max-h.yRange.max;const M=(h.yRange.max-h.yRange.min)/2-(o.yRange.max-o.yRange.min)/2;M<0&&(p+=M)}for(const M of u)M.x+=b,M.y+=p,e.push(M)}let f=1;for(;f<i.length;)l(i[f],!0,!1),l(i[f+1],!1,!0),l(i[f+2],!0,!0),f+=3,o=dt(e);return Nt(e)}function Ot(t,n,s,e,i){const o=Ft(t);n-=2*e,s-=2*e;const{xRange:r,yRange:l}=dt(o);if(r.max===r.min||l.max===l.min)return console.log("not scaling solution: zero size detected"),t;let f,u;if(i){const b=Math.sqrt(i/Math.PI)*2;f=n/b,u=s/b}else f=n/(r.max-r.min),u=s/(l.max-l.min);const a=Math.min(u,f),y=(n-(r.max-r.min)*a)/2,h=(s-(l.max-l.min)*a)/2;return Nt(o.map(b=>({radius:a*b.radius,x:e+y+(b.x-r.min)*a,y:e+h+(b.y-l.min)*a,setid:b.setid})))}function Nt(t){const n={};for(const s of t)n[s.setid]=s;return n}function Ft(t){return Object.keys(t).map(s=>Object.assign(t[s],{setid:s}))}function ve(t={}){let n=!1,s=600,e=350,i=15,o=1e3,r=Math.PI/2,l=!0,f=null,u=!0,a=!0,y=null,h=null,b=!1,p=null,M=t&&t.symmetricalTextCentre?t.symmetricalTextCentre:!1,E={},_=t&&t.colourScheme?t.colourScheme:t&&t.colorScheme?t.colorScheme:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],S=0,g=function(x){if(x in E)return E[x];var d=E[x]=_[S];return S+=1,S>=_.length&&(S=0),d},m=At,v=tt;function c(x){let d=x.datum();const C=new Set;d.forEach(k=>{k.size==0&&k.sets.length==1&&C.add(k.sets[0])}),d=d.filter(k=>!k.sets.some(O=>C.has(O)));let I={},D={};if(d.length>0){let k=m(d,{lossFunction:v,distinct:b});l&&(k=Dt(k,r,h)),I=Ot(k,s,e,i,f),D=Lt(I,d,M)}const U={};d.forEach(k=>{k.label&&(U[k.sets]=k.label)});function V(k){if(k.sets in U)return U[k.sets];if(k.sets.length==1)return""+k.sets[0]}x.selectAll("svg").data([I]).enter().append("svg");const F=x.select("svg");n?F.attr("viewBox",`0 0 ${s} ${e}`):F.attr("width",s).attr("height",e);const R={};let T=!1;F.selectAll(".venn-area path").each(function(k){const O=this.getAttribute("d");k.sets.length==1&&O&&!b&&(T=!0,R[k.sets[0]]=Me(O))});function A(k){return O=>{const K=k.sets.map(et=>{let Y=R[et],X=I[et];return Y||(Y={x:s/2,y:e/2,radius:1}),X||(X={x:s/2,y:e/2,radius:1}),{x:Y.x*(1-O)+X.x*O,y:Y.y*(1-O)+X.y*O,radius:Y.radius*(1-O)+X.radius*O}});return St(K,p)}}const W=F.selectAll(".venn-area").data(d,k=>k.sets),P=W.enter().append("g").attr("class",k=>`venn-area venn-${k.sets.length==1?"circle":"intersection"}${k.colour||k.color?" venn-coloured":""}`).attr("data-venn-sets",k=>k.sets.join("_")),B=P.append("path"),G=P.append("text").attr("class","label").text(k=>V(k)).attr("text-anchor","middle").attr("dy",".35em").attr("x",s/2).attr("y",e/2);a&&(B.style("fill-opacity","0").filter(k=>k.sets.length==1).style("fill",k=>k.colour?k.colour:k.color?k.color:g(k.sets)).style("fill-opacity",".25"),G.style("fill",k=>k.colour||k.color?"#FFF":t.textFill?t.textFill:k.sets.length==1?g(k.sets):"#444"));function L(k){return typeof k.transition=="function"?k.transition("venn").duration(o):k}let z=x;T&&typeof z.transition=="function"?(z=L(x),z.selectAll("path").attrTween("d",A)):z.selectAll("path").attr("d",k=>St(k.sets.map(O=>I[O])),p);const N=z.selectAll("text").filter(k=>k.sets in D).text(k=>V(k)).attr("x",k=>Math.floor(D[k.sets].x)).attr("y",k=>Math.floor(D[k.sets].y));u&&(T?"on"in N?N.on("end",rt(I,V)):N.each("end",rt(I,V)):N.each(rt(I,V)));const j=L(W.exit()).remove();typeof W.transition=="function"&&j.selectAll("path").attrTween("d",A);const Q=j.selectAll("text").attr("x",s/2).attr("y",e/2);return y!==null&&(G.style("font-size","0px"),N.style("font-size",y),Q.style("font-size","0px")),{circles:I,textCentres:D,nodes:W,enter:P,update:z,exit:j}}return c.wrap=function(x){return arguments.length?(u=x,c):u},c.useViewBox=function(){return n=!0,c},c.width=function(x){return arguments.length?(s=x,c):s},c.height=function(x){return arguments.length?(e=x,c):e},c.padding=function(x){return arguments.length?(i=x,c):i},c.distinct=function(x){return arguments.length?(b=x,c):b},c.colours=function(x){return arguments.length?(g=x,c):g},c.colors=function(x){return arguments.length?(g=x,c):g},c.fontSize=function(x){return arguments.length?(y=x,c):y},c.round=function(x){return arguments.length?(p=x,c):p},c.duration=function(x){return arguments.length?(o=x,c):o},c.layoutFunction=function(x){return arguments.length?(m=x,c):m},c.normalize=function(x){return arguments.length?(l=x,c):l},c.scaleToFit=function(x){return arguments.length?(f=x,c):f},c.styled=function(x){return arguments.length?(a=x,c):a},c.orientation=function(x){return arguments.length?(r=x,c):r},c.orientationOrder=function(x){return arguments.length?(h=x,c):h},c.lossFunction=function(x){return arguments.length?(v=x==="default"?tt:x==="logRatio"?Ct:x,c):v},c}function rt(t,n){return function(s){const e=this,i=t[s.sets[0]].radius||50,o=n(s)||"",r=o.split(/\s+/).reverse(),f=(o.length+r.length)/3;let u=r.pop(),a=[u],y=0;const h=1.1;e.textContent=null;const b=[];function p(g){const m=e.ownerDocument.createElementNS(e.namespaceURI,"tspan");return m.textContent=g,b.push(m),e.append(m),m}let M=p(u);for(;u=r.pop(),!!u;){a.push(u);const g=a.join(" ");M.textContent=g,g.length>f&&M.getComputedTextLength()>i&&(a.pop(),M.textContent=a.join(" "),a=[u],M=p(u),y++)}const E=.35-y*h/2,_=e.getAttribute("x"),S=e.getAttribute("y");b.forEach((g,m)=>{g.setAttribute("x",_),g.setAttribute("y",S),g.setAttribute("dy",`${E+m*h}em`)})}}function at(t,n,s){let e=n[0].radius-q(n[0],t);for(let i=1;i<n.length;++i){const o=n[i].radius-q(n[i],t);o<=e&&(e=o)}for(let i=0;i<s.length;++i){const o=q(s[i],t)-s[i].radius;o<=e&&(e=o)}return e}function jt(t,n,s){const e=[];for(const a of t)e.push({x:a.x,y:a.y}),e.push({x:a.x+a.radius/2,y:a.y}),e.push({x:a.x-a.radius/2,y:a.y}),e.push({x:a.x,y:a.y+a.radius/2}),e.push({x:a.x,y:a.y-a.radius/2});let i=e[0],o=at(e[0],t,n);for(let a=1;a<e.length;++a){const y=at(e[a],t,n);y>=o&&(i=e[a],o=y)}const r=zt(a=>-1*at({x:a[0],y:a[1]},t,n),[i.x,i.y],{maxIterations:500,minErrorDelta:1e-10}).x,l={x:s?0:r[0],y:r[1]};let f=!0;for(const a of t)if(q(l,a)>a.radius){f=!1;break}for(const a of n)if(q(l,a)<a.radius){f=!1;break}if(f)return l;if(t.length==1)return{x:t[0].x,y:t[0].y};const u={};return st(t,u),u.arcs.length===0?{x:0,y:-1e3,disjoint:!0}:u.arcs.length==1?{x:u.arcs[0].circle.x,y:u.arcs[0].circle.y}:n.length?jt(t,[]):Et(u.arcs.map(a=>a.p1))}function Ie(t){const n={},s=Object.keys(t);for(const e of s)n[e]=[];for(let e=0;e<s.length;e++){const i=s[e],o=t[i];for(let r=e+1;r<s.length;++r){const l=s[r],f=t[l],u=q(o,f);u+f.radius<=o.radius+1e-10?n[l].push(i):u+o.radius<=f.radius+1e-10&&n[i].push(l)}}return n}function Lt(t,n,s){const e={},i=Ie(t);for(let o=0;o<n.length;++o){const r=n[o].sets,l={},f={};for(let h=0;h<r.length;++h){l[r[h]]=!0;const b=i[r[h]];for(let p=0;p<b.length;++p)f[b[p]]=!0}const u=[],a=[];for(let h in t)h in l?u.push(t[h]):h in f||a.push(t[h]);const y=jt(u,a,s);e[r]=y,y.disjoint&&n[o].size>0&&console.log("WARNING: area "+r+" not represented on screen")}return e}function ke(t,n,s){const e=[];return e.push(`
|
|
2
2
|
M`,t,n),e.push(`
|
|
3
3
|
m`,-s,0),e.push(`
|
|
4
4
|
a`,s,s,0,1,0,s*2,0),e.push(`
|