@aceshooting/lyra-cdn 0.0.0-stage → 33.2.0
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/LICENSE +21 -0
- package/README.md +39 -2
- package/THIRD_PARTY_NOTICES.md +65 -0
- package/dist/accent-roles.css +1 -0
- package/dist/accents.css +1 -0
- package/dist/chunks/accordion-item.class-QQJTJCAL.js +14 -0
- package/dist/chunks/accordion.class-3TJIWGBU.js +3 -0
- package/dist/chunks/activity-feed.class-W3DIETK6.js +22 -0
- package/dist/chunks/agent-eval-dashboard.class-JUD75XYR.js +9 -0
- package/dist/chunks/agent-question.class-YWALCPRR.js +9 -0
- package/dist/chunks/agent-run.class-2KHBYA57.js +50 -0
- package/dist/chunks/agent-trace.class-UMHLHHVU.js +13 -0
- package/dist/chunks/agent-workspace.class-JDF2UZJ2.js +54 -0
- package/dist/chunks/alert.class-ZRNOQAPC.js +12 -0
- package/dist/chunks/animated-image.class-JVMX4IQU.js +17 -0
- package/dist/chunks/animation.class-SJ2SXRWA.js +1 -0
- package/dist/chunks/announcer-DVOE2WFB.js +1 -0
- package/dist/chunks/app-rail-group.class-IOUHPGUA.js +18 -0
- package/dist/chunks/app-rail-item.class-AZJEOHWP.js +1 -0
- package/dist/chunks/app-rail.class-XVOQNLUV.js +24 -0
- package/dist/chunks/approval-queue.class-TRNO7UBU.js +12 -0
- package/dist/chunks/archive-viewer.class-TJON7JRM.js +1 -0
- package/dist/chunks/artifact-panel.class-RPGPE4LI.js +45 -0
- package/dist/chunks/attachment-chip.class-PAU22ELR.js +1 -0
- package/dist/chunks/attachment-trigger.class-6Z7SFEEP.js +40 -0
- package/dist/chunks/audio-visualizer.class-LN7ET6N3.js +1 -0
- package/dist/chunks/av-player.class-4MPXTIIC.js +34 -0
- package/dist/chunks/avatar-group.class-Q4MDXABG.js +9 -0
- package/dist/chunks/avatar.class-UC2NECS6.js +9 -0
- package/dist/chunks/background-runs.class-YDEYAQK7.js +21 -0
- package/dist/chunks/badge.class-IZRA37EC.js +1 -0
- package/dist/chunks/bar-chart.class-2JHDDVOA.js +1 -0
- package/dist/chunks/bar-list.class-TFZQZJST.js +9 -0
- package/dist/chunks/box-plot.class-FDWQAZU6.js +66 -0
- package/dist/chunks/branch-picker.class-I77LCCWM.js +12 -0
- package/dist/chunks/breadcrumb-item.class-NNVN7WJR.js +1 -0
- package/dist/chunks/breadcrumb.class-OLTO4SVO.js +1 -0
- package/dist/chunks/browser-frame.class-LX4PPIC6.js +27 -0
- package/dist/chunks/bubble-chart.class-NP4KGNH2.js +1 -0
- package/dist/chunks/budget-meter.class-75UDTRG5.js +13 -0
- package/dist/chunks/button-group.class-TLY2ZBQP.js +1 -0
- package/dist/chunks/button.class-4MN2A64P.js +1 -0
- package/dist/chunks/calendar-viewer.class-KE4MOEPN.js +1 -0
- package/dist/chunks/calendar.class-NTLY2HUJ.js +2 -0
- package/dist/chunks/callout.class-KOBF76DF.js +13 -0
- package/dist/chunks/card.class-BOYDF22F.js +1 -0
- package/dist/chunks/carousel-item.class-L6TPZ25O.js +1 -0
- package/dist/chunks/carousel.class-CVURHQLE.js +26 -0
- package/dist/chunks/category-bar.class-A4L2QNLD.js +14 -0
- package/dist/chunks/change-review.class-5HIW3BF3.js +15 -0
- package/dist/chunks/chart-3d.class-YDT6MOMJ.js +39 -0
- package/dist/chunks/chart-spatial-data-NBSAQJPD.js +2 -0
- package/dist/chunks/chart-sync-CYSER4UT.js +1 -0
- package/dist/chunks/chart.class-DDAMNWHN.js +1 -0
- package/dist/chunks/chat-composer.class-RLA3ZACN.js +28 -0
- package/dist/chunks/chat-message.class-GYRUWTDS.js +36 -0
- package/dist/chunks/chat-viewport.class-72QQV6IV.js +13 -0
- package/dist/chunks/checkbox-group.class-ICM5UOJP.js +1 -0
- package/dist/chunks/checkbox.class-Q3K7IWU4.js +1 -0
- package/dist/chunks/checkpoint.class-UEUPFBAQ.js +28 -0
- package/dist/chunks/chip-group.class-L75VGSPI.js +1 -0
- package/dist/chunks/chip.class-DDMES33F.js +1 -0
- package/dist/chunks/chord.class-XNITFJXI.js +5 -0
- package/dist/chunks/choropleth.class-H6DRSFZJ.js +1 -0
- package/dist/chunks/chunk-22XNCUCW.js +1 -0
- package/dist/chunks/chunk-26MS46PV.js +1 -0
- package/dist/chunks/chunk-2BBI7M75.js +1 -0
- package/dist/chunks/chunk-2CH7YZRL.js +4 -0
- package/dist/chunks/chunk-2GWBSIY7.js +1 -0
- package/dist/chunks/chunk-2HHGGW2U.js +1 -0
- package/dist/chunks/chunk-2JMEKYWD.js +1 -0
- package/dist/chunks/chunk-2KSQKG5V.js +1 -0
- package/dist/chunks/chunk-2MJHMCYK.js +1 -0
- package/dist/chunks/chunk-2N62LETQ.js +1 -0
- package/dist/chunks/chunk-2OELKZ6S.js +82 -0
- package/dist/chunks/chunk-2POOYUWS.js +5 -0
- package/dist/chunks/chunk-2RJSNPGI.js +4 -0
- package/dist/chunks/chunk-2U2DKKAJ.js +1 -0
- package/dist/chunks/chunk-2V6V3ZQV.js +1 -0
- package/dist/chunks/chunk-2WVGFBNL.js +1 -0
- package/dist/chunks/chunk-2WXXKPUW.js +1 -0
- package/dist/chunks/chunk-2XUGZVLQ.js +1 -0
- package/dist/chunks/chunk-32IK33EM.js +1 -0
- package/dist/chunks/chunk-32UCFJLK.js +1 -0
- package/dist/chunks/chunk-33UOO5JQ.js +1 -0
- package/dist/chunks/chunk-34M5HC53.js +1 -0
- package/dist/chunks/chunk-3AZXZUWI.js +1 -0
- package/dist/chunks/chunk-3B5CNRFC.js +1 -0
- package/dist/chunks/chunk-3CEWOZEG.js +3 -0
- package/dist/chunks/chunk-3CLMBMQL.js +1 -0
- package/dist/chunks/chunk-3EGAV5VK.js +1 -0
- package/dist/chunks/chunk-3GVZW6O4.js +1 -0
- package/dist/chunks/chunk-3HGKUVDX.js +1 -0
- package/dist/chunks/chunk-3HP7ZF3Z.js +1 -0
- package/dist/chunks/chunk-3KFGHQIW.js +25 -0
- package/dist/chunks/chunk-3LZ3G4LQ.js +1 -0
- package/dist/chunks/chunk-3NDOB5KI.js +11 -0
- package/dist/chunks/chunk-3O6SR5DE.js +8 -0
- package/dist/chunks/chunk-3VGB4YSQ.js +1 -0
- package/dist/chunks/chunk-3WSZLXI3.js +21 -0
- package/dist/chunks/chunk-3Z4JTDQE.js +74 -0
- package/dist/chunks/chunk-43JJVC4Y.js +1 -0
- package/dist/chunks/chunk-447JFZVE.js +1 -0
- package/dist/chunks/chunk-44UP75KF.js +1 -0
- package/dist/chunks/chunk-47NA355M.js +1 -0
- package/dist/chunks/chunk-47UCUOZA.js +1 -0
- package/dist/chunks/chunk-4BU3QW2I.js +1 -0
- package/dist/chunks/chunk-4DGNOLGC.js +1 -0
- package/dist/chunks/chunk-4FLREGZM.js +1 -0
- package/dist/chunks/chunk-4HBBNYPU.js +1 -0
- package/dist/chunks/chunk-4HLN2JNM.js +1 -0
- package/dist/chunks/chunk-4I73X3XX.js +1 -0
- package/dist/chunks/chunk-4IZLDM76.js +1 -0
- package/dist/chunks/chunk-4LTUIJ3G.js +1 -0
- package/dist/chunks/chunk-4MKUE3GN.js +1 -0
- package/dist/chunks/chunk-4O7AAJWV.js +26 -0
- package/dist/chunks/chunk-4QBXZ5BM.js +1 -0
- package/dist/chunks/chunk-4QG5Y44P.js +1 -0
- package/dist/chunks/chunk-4RMGRTHH.js +1 -0
- package/dist/chunks/chunk-4VZYY6B7.js +0 -0
- package/dist/chunks/chunk-52KZYK6Q.js +1 -0
- package/dist/chunks/chunk-5427UHWC.js +12 -0
- package/dist/chunks/chunk-55GU3MXG.js +14 -0
- package/dist/chunks/chunk-572XGZZ5.js +1 -0
- package/dist/chunks/chunk-5ABX2WSA.js +14 -0
- package/dist/chunks/chunk-5AFUYAAF.js +1 -0
- package/dist/chunks/chunk-5ES6C332.js +1 -0
- package/dist/chunks/chunk-5GGJSTOJ.js +1 -0
- package/dist/chunks/chunk-5GZCQCDN.js +1 -0
- package/dist/chunks/chunk-5JKTCQAF.js +1 -0
- package/dist/chunks/chunk-5LD7TNKP.js +1 -0
- package/dist/chunks/chunk-5NRIHGYU.js +1 -0
- package/dist/chunks/chunk-5PNMEGOF.js +1 -0
- package/dist/chunks/chunk-5T6W5AEE.js +1 -0
- package/dist/chunks/chunk-5TFWWAYA.js +1 -0
- package/dist/chunks/chunk-63566KPS.js +1 -0
- package/dist/chunks/chunk-63D3NJTI.js +1 -0
- package/dist/chunks/chunk-64LHUFN2.js +1 -0
- package/dist/chunks/chunk-64UM73EQ.js +1 -0
- package/dist/chunks/chunk-663KPBUU.js +21 -0
- package/dist/chunks/chunk-6C34RIPL.js +1 -0
- package/dist/chunks/chunk-6MPQ3X33.js +36 -0
- package/dist/chunks/chunk-6QJPXVQQ.js +1 -0
- package/dist/chunks/chunk-6V63RBPQ.js +1 -0
- package/dist/chunks/chunk-6VD2DS33.js +37 -0
- package/dist/chunks/chunk-6YZJHDDG.js +0 -0
- package/dist/chunks/chunk-6Z42KKFI.js +1 -0
- package/dist/chunks/chunk-73OCJEUD.js +18 -0
- package/dist/chunks/chunk-74IRLMMQ.js +1 -0
- package/dist/chunks/chunk-75NZLHXG.js +1 -0
- package/dist/chunks/chunk-7AMXIXSH.js +1 -0
- package/dist/chunks/chunk-7IARSJTT.js +27 -0
- package/dist/chunks/chunk-7JP4RLLR.js +1 -0
- package/dist/chunks/chunk-7N7J53ZD.js +1 -0
- package/dist/chunks/chunk-7VF3P6ID.js +1 -0
- package/dist/chunks/chunk-7YIBMRDK.js +1 -0
- package/dist/chunks/chunk-7YMQGPNL.js +1 -0
- package/dist/chunks/chunk-7ZEV5FWS.js +17 -0
- package/dist/chunks/chunk-A6LP23R4.js +1 -0
- package/dist/chunks/chunk-A6ZORMLN.js +1 -0
- package/dist/chunks/chunk-ACA4VONN.js +1 -0
- package/dist/chunks/chunk-AGGZ3MBQ.js +1 -0
- package/dist/chunks/chunk-AJHSEOC3.js +1 -0
- package/dist/chunks/chunk-ALOKFZ76.js +57 -0
- package/dist/chunks/chunk-AM5V5QEX.js +1 -0
- package/dist/chunks/chunk-ANBF274Q.js +1 -0
- package/dist/chunks/chunk-AOHLWLQM.js +1 -0
- package/dist/chunks/chunk-AT4JHXF6.js +47 -0
- package/dist/chunks/chunk-AVZPWRZU.js +1 -0
- package/dist/chunks/chunk-AY55RGQK.js +6 -0
- package/dist/chunks/chunk-AYDPHUAX.js +1 -0
- package/dist/chunks/chunk-AYJGGEBA.js +1 -0
- package/dist/chunks/chunk-B6GAZN5X.js +1 -0
- package/dist/chunks/chunk-BDETGDBF.js +1 -0
- package/dist/chunks/chunk-BFMOZL5O.js +1 -0
- package/dist/chunks/chunk-BFT2W23T.js +1 -0
- package/dist/chunks/chunk-BJSAEYK3.js +1 -0
- package/dist/chunks/chunk-BL2Z2MJN.js +83 -0
- package/dist/chunks/chunk-BL7EC2AS.js +1 -0
- package/dist/chunks/chunk-BQTPD2AJ.js +1 -0
- package/dist/chunks/chunk-BUTCVOEQ.js +1 -0
- package/dist/chunks/chunk-BY636SMQ.js +1 -0
- package/dist/chunks/chunk-BY7GVILL.js +1 -0
- package/dist/chunks/chunk-BYJSQYRN.js +1 -0
- package/dist/chunks/chunk-C337CGQG.js +1 -0
- package/dist/chunks/chunk-C6BTEIPF.js +64 -0
- package/dist/chunks/chunk-CBTNPB3Y.js +36 -0
- package/dist/chunks/chunk-CGUPP4BQ.js +1 -0
- package/dist/chunks/chunk-CHE5UV3U.js +26 -0
- package/dist/chunks/chunk-CMUORJBL.js +1 -0
- package/dist/chunks/chunk-CN2FTU25.js +3 -0
- package/dist/chunks/chunk-COHDKIWJ.js +1 -0
- package/dist/chunks/chunk-CORI3FSS.js +1 -0
- package/dist/chunks/chunk-CP7N27S7.js +1 -0
- package/dist/chunks/chunk-CPRTONZ3.js +1 -0
- package/dist/chunks/chunk-CR23WLJQ.js +1 -0
- package/dist/chunks/chunk-CSV23ONU.js +1 -0
- package/dist/chunks/chunk-CT2EQPYB.js +1 -0
- package/dist/chunks/chunk-CVAEW7JJ.js +1 -0
- package/dist/chunks/chunk-CYNW7F6K.js +1 -0
- package/dist/chunks/chunk-CZM5BBN2.js +1 -0
- package/dist/chunks/chunk-CZO6UKTU.js +1 -0
- package/dist/chunks/chunk-D2PJK46W.js +1 -0
- package/dist/chunks/chunk-D2SJJB5I.js +1 -0
- package/dist/chunks/chunk-D3C3UDTS.js +1 -0
- package/dist/chunks/chunk-D5U3K2E7.js +1 -0
- package/dist/chunks/chunk-D7CW4PXK.js +32 -0
- package/dist/chunks/chunk-DA3VX2RO.js +1 -0
- package/dist/chunks/chunk-DA4DTS26.js +1 -0
- package/dist/chunks/chunk-DCLACGZW.js +1 -0
- package/dist/chunks/chunk-DEFBHDIB.js +1 -0
- package/dist/chunks/chunk-DEHO557B.js +1 -0
- package/dist/chunks/chunk-DMTQAWEJ.js +1 -0
- package/dist/chunks/chunk-DXHC3OY6.js +13 -0
- package/dist/chunks/chunk-E3D5VGRJ.js +1 -0
- package/dist/chunks/chunk-E4ZZLWV4.js +1 -0
- package/dist/chunks/chunk-E7SGLHEE.js +1 -0
- package/dist/chunks/chunk-EAADOA33.js +15 -0
- package/dist/chunks/chunk-EBAKIACC.js +1 -0
- package/dist/chunks/chunk-EDV6BLBD.js +1 -0
- package/dist/chunks/chunk-EGJATIB6.js +1 -0
- package/dist/chunks/chunk-EHOJ7YCN.js +1 -0
- package/dist/chunks/chunk-EHYV2MX6.js +14 -0
- package/dist/chunks/chunk-EJSMR7JS.js +1 -0
- package/dist/chunks/chunk-EKG7ZNTK.js +1 -0
- package/dist/chunks/chunk-EN3HJQOP.js +1 -0
- package/dist/chunks/chunk-ENQS5KAZ.js +1 -0
- package/dist/chunks/chunk-EPCZZM2T.js +1 -0
- package/dist/chunks/chunk-EQQWQHBM.js +1 -0
- package/dist/chunks/chunk-EY5CISAR.js +6 -0
- package/dist/chunks/chunk-F335SOCY.js +1 -0
- package/dist/chunks/chunk-F33HF7D2.js +1 -0
- package/dist/chunks/chunk-FBPNOOMY.js +1 -0
- package/dist/chunks/chunk-FDQP4QQZ.js +1 -0
- package/dist/chunks/chunk-FECUUR3M.js +1 -0
- package/dist/chunks/chunk-FGVF2QID.js +14 -0
- package/dist/chunks/chunk-FH3ZM5XY.js +5 -0
- package/dist/chunks/chunk-FHC6MDBQ.js +1 -0
- package/dist/chunks/chunk-FHCXQD42.js +25 -0
- package/dist/chunks/chunk-FHEXSVUO.js +1 -0
- package/dist/chunks/chunk-FHITMZSI.js +1 -0
- package/dist/chunks/chunk-FKBNZDD7.js +44 -0
- package/dist/chunks/chunk-FMJBEREI.js +12 -0
- package/dist/chunks/chunk-FMKKFAOH.js +1 -0
- package/dist/chunks/chunk-FOABE6ZB.js +1 -0
- package/dist/chunks/chunk-FSEC3GHJ.js +1 -0
- package/dist/chunks/chunk-FSNXLFDJ.js +1 -0
- package/dist/chunks/chunk-FSVHLHIT.js +1 -0
- package/dist/chunks/chunk-FWTBOJRS.js +1 -0
- package/dist/chunks/chunk-FY3YWTCF.js +1 -0
- package/dist/chunks/chunk-FZNZYJRG.js +1 -0
- package/dist/chunks/chunk-FZTW7LID.js +1 -0
- package/dist/chunks/chunk-G6XBJVZN.js +1 -0
- package/dist/chunks/chunk-GBF4AHIG.js +1 -0
- package/dist/chunks/chunk-GBPPMZXX.js +12 -0
- package/dist/chunks/chunk-GG6D77XO.js +20 -0
- package/dist/chunks/chunk-GGSUOPBU.js +1 -0
- package/dist/chunks/chunk-GMPUTEBU.js +1 -0
- package/dist/chunks/chunk-GO5FDNGZ.js +29 -0
- package/dist/chunks/chunk-GQQLHK37.js +1 -0
- package/dist/chunks/chunk-GS3SNJSH.js +1 -0
- package/dist/chunks/chunk-GT6NF7FZ.js +1 -0
- package/dist/chunks/chunk-GUP74TZL.js +1 -0
- package/dist/chunks/chunk-GW3IPDNG.js +1 -0
- package/dist/chunks/chunk-GWK6YXNE.js +1 -0
- package/dist/chunks/chunk-H2ZMVF42.js +1 -0
- package/dist/chunks/chunk-H62CTJMK.js +1 -0
- package/dist/chunks/chunk-H7QRF3VI.js +13 -0
- package/dist/chunks/chunk-HBLKVMMS.js +1 -0
- package/dist/chunks/chunk-HCFVFABH.js +1 -0
- package/dist/chunks/chunk-HEIK7X4U.js +1 -0
- package/dist/chunks/chunk-HELIEOVI.js +1 -0
- package/dist/chunks/chunk-HIDIAJTO.js +11 -0
- package/dist/chunks/chunk-HJM3VV3X.js +1 -0
- package/dist/chunks/chunk-HNILYHZT.js +1 -0
- package/dist/chunks/chunk-HOE7GLKQ.js +1 -0
- package/dist/chunks/chunk-HQ2AX6XY.js +1 -0
- package/dist/chunks/chunk-HRRMXG52.js +1 -0
- package/dist/chunks/chunk-I43LXZUP.js +20 -0
- package/dist/chunks/chunk-I4GPOH6E.js +1 -0
- package/dist/chunks/chunk-IE6AFNI6.js +1 -0
- package/dist/chunks/chunk-IERX6SOK.js +1 -0
- package/dist/chunks/chunk-IFDV4HWR.js +1 -0
- package/dist/chunks/chunk-IHHKAXNV.js +1 -0
- package/dist/chunks/chunk-IIQRBUEC.js +32 -0
- package/dist/chunks/chunk-IJ2AN2PR.js +1 -0
- package/dist/chunks/chunk-IQT3IIXF.js +30 -0
- package/dist/chunks/chunk-IRH2OYBM.js +1 -0
- package/dist/chunks/chunk-ITEKCROO.js +17 -0
- package/dist/chunks/chunk-IYCYTW25.js +1 -0
- package/dist/chunks/chunk-IYJATAHI.js +1 -0
- package/dist/chunks/chunk-J24TYMEI.js +1 -0
- package/dist/chunks/chunk-J2SUHUFZ.js +1 -0
- package/dist/chunks/chunk-J2TS4IBA.js +1 -0
- package/dist/chunks/chunk-J5OZZS24.js +1 -0
- package/dist/chunks/chunk-JCQRYWQN.js +2 -0
- package/dist/chunks/chunk-JCR7AUGN.js +1 -0
- package/dist/chunks/chunk-JFDY4CIA.js +1 -0
- package/dist/chunks/chunk-JI2LOU2Q.js +37 -0
- package/dist/chunks/chunk-JJXEQFM4.js +1 -0
- package/dist/chunks/chunk-JKL737HR.js +1 -0
- package/dist/chunks/chunk-JNB4S2FJ.js +1 -0
- package/dist/chunks/chunk-JO2S7Y7Z.js +1 -0
- package/dist/chunks/chunk-JQPRVZA3.js +1 -0
- package/dist/chunks/chunk-JQY5SX5R.js +1 -0
- package/dist/chunks/chunk-JTGCA7JE.js +10 -0
- package/dist/chunks/chunk-JU6UYDBK.js +1 -0
- package/dist/chunks/chunk-JVOILMDD.js +1 -0
- package/dist/chunks/chunk-JVOVG6SR.js +1 -0
- package/dist/chunks/chunk-JVZ26WRM.js +1 -0
- package/dist/chunks/chunk-JWGMK54E.js +0 -0
- package/dist/chunks/chunk-JZRWF7SV.js +1 -0
- package/dist/chunks/chunk-K3TGAVRE.js +1 -0
- package/dist/chunks/chunk-KKP6NH4M.js +1 -0
- package/dist/chunks/chunk-KLAMX2AK.js +1 -0
- package/dist/chunks/chunk-KMEVGBVM.js +1 -0
- package/dist/chunks/chunk-KN7PQ2NG.js +14 -0
- package/dist/chunks/chunk-KPB62ASL.js +1 -0
- package/dist/chunks/chunk-KSGONSTQ.js +1 -0
- package/dist/chunks/chunk-KUTB5XAE.js +1 -0
- package/dist/chunks/chunk-KV5EA3VA.js +31 -0
- package/dist/chunks/chunk-LBD36U6I.js +10 -0
- package/dist/chunks/chunk-LEDCMWT7.js +1 -0
- package/dist/chunks/chunk-LF23D7NZ.js +1 -0
- package/dist/chunks/chunk-LG433UEO.js +1 -0
- package/dist/chunks/chunk-LGLYOAAH.js +1 -0
- package/dist/chunks/chunk-LH4NPB7C.js +17 -0
- package/dist/chunks/chunk-LIK3XPAA.js +1 -0
- package/dist/chunks/chunk-LKFMXDRF.js +9 -0
- package/dist/chunks/chunk-LKJSF4EL.js +1 -0
- package/dist/chunks/chunk-LNTNQCGT.js +22 -0
- package/dist/chunks/chunk-LP5CZC5A.js +154 -0
- package/dist/chunks/chunk-LQRWTBCJ.js +1 -0
- package/dist/chunks/chunk-LTQOZLV3.js +1 -0
- package/dist/chunks/chunk-LWRRZGB2.js +1 -0
- package/dist/chunks/chunk-LYRJMDVM.js +38 -0
- package/dist/chunks/chunk-M3K6BXUV.js +1 -0
- package/dist/chunks/chunk-M4D3KFCO.js +1 -0
- package/dist/chunks/chunk-M6GTMDIY.js +19 -0
- package/dist/chunks/chunk-MDVVFS4A.js +1 -0
- package/dist/chunks/chunk-MGE5GHJU.js +1 -0
- package/dist/chunks/chunk-MHTTI7OW.js +1 -0
- package/dist/chunks/chunk-MISTOUAC.js +82 -0
- package/dist/chunks/chunk-MM35T5DF.js +28 -0
- package/dist/chunks/chunk-MM5JS5OO.js +1 -0
- package/dist/chunks/chunk-MNABI7LU.js +59 -0
- package/dist/chunks/chunk-MNJDXYAM.js +14 -0
- package/dist/chunks/chunk-MNK2M6M4.js +19 -0
- package/dist/chunks/chunk-MQD7W2IC.js +1 -0
- package/dist/chunks/chunk-MRVJ5TYC.js +1 -0
- package/dist/chunks/chunk-MXGFXKQC.js +1 -0
- package/dist/chunks/chunk-MYVZYT72.js +1 -0
- package/dist/chunks/chunk-MZCLIVAU.js +42 -0
- package/dist/chunks/chunk-N3SLYE7N.js +5 -0
- package/dist/chunks/chunk-N4SM4L4G.js +25 -0
- package/dist/chunks/chunk-NE47UFEJ.js +1 -0
- package/dist/chunks/chunk-NE65SWWE.js +1 -0
- package/dist/chunks/chunk-NF6FYAQW.js +1 -0
- package/dist/chunks/chunk-NHLOYHBZ.js +1 -0
- package/dist/chunks/chunk-NIUZMMMP.js +1 -0
- package/dist/chunks/chunk-NPDEYEMQ.js +1 -0
- package/dist/chunks/chunk-NUFRM6SI.js +0 -0
- package/dist/chunks/chunk-NUSYJATF.js +1 -0
- package/dist/chunks/chunk-NWVMNFLB.js +31 -0
- package/dist/chunks/chunk-NYPKLHXJ.js +13 -0
- package/dist/chunks/chunk-NZ4AFJOB.js +1 -0
- package/dist/chunks/chunk-O2MKCPYI.js +1 -0
- package/dist/chunks/chunk-O2T7X3BV.js +27 -0
- package/dist/chunks/chunk-O3PZG44H.js +1 -0
- package/dist/chunks/chunk-O4JTT6QN.js +1 -0
- package/dist/chunks/chunk-O4NFRBN5.js +1 -0
- package/dist/chunks/chunk-O7SAQOPI.js +1 -0
- package/dist/chunks/chunk-OHAD3FCV.js +1 -0
- package/dist/chunks/chunk-OJG4CY56.js +15 -0
- package/dist/chunks/chunk-OJP46YHH.js +4 -0
- package/dist/chunks/chunk-OLFDREFE.js +1 -0
- package/dist/chunks/chunk-ONTV26D7.js +1 -0
- package/dist/chunks/chunk-OP7ARFKR.js +1 -0
- package/dist/chunks/chunk-OQNEE7LX.js +1 -0
- package/dist/chunks/chunk-OUV7KSOP.js +1 -0
- package/dist/chunks/chunk-OWYWVR2O.js +1 -0
- package/dist/chunks/chunk-P5SHYWUS.js +1 -0
- package/dist/chunks/chunk-PASGSUGZ.js +1 -0
- package/dist/chunks/chunk-PGL4UQXK.js +1 -0
- package/dist/chunks/chunk-PHMSXPLK.js +4 -0
- package/dist/chunks/chunk-PJ72NB2H.js +1 -0
- package/dist/chunks/chunk-PO7I65U7.js +1 -0
- package/dist/chunks/chunk-POFTB33M.js +21 -0
- package/dist/chunks/chunk-PQJCLAD7.js +1 -0
- package/dist/chunks/chunk-PROPAUSV.js +1 -0
- package/dist/chunks/chunk-PU5VTCB3.js +1 -0
- package/dist/chunks/chunk-PU6CXUNJ.js +2 -0
- package/dist/chunks/chunk-PVYXJDUG.js +1 -0
- package/dist/chunks/chunk-PYZTDC3A.js +8 -0
- package/dist/chunks/chunk-PZ2KUPDO.js +1 -0
- package/dist/chunks/chunk-Q4FMITV7.js +1 -0
- package/dist/chunks/chunk-Q6TJSRDF.js +1 -0
- package/dist/chunks/chunk-QCM7NVLU.js +1 -0
- package/dist/chunks/chunk-QDIC72BY.js +6 -0
- package/dist/chunks/chunk-QE3SIMKA.js +15 -0
- package/dist/chunks/chunk-QE4FNDWW.js +17 -0
- package/dist/chunks/chunk-QIYCMK2Q.js +1 -0
- package/dist/chunks/chunk-QOOQMUEJ.js +2 -0
- package/dist/chunks/chunk-QRTG3F4F.js +1 -0
- package/dist/chunks/chunk-QSRMNZNK.js +1 -0
- package/dist/chunks/chunk-QWEVB7QR.js +1 -0
- package/dist/chunks/chunk-QZ7AVTED.js +1 -0
- package/dist/chunks/chunk-R3ZA2YUH.js +1 -0
- package/dist/chunks/chunk-R4PKLCQP.js +1 -0
- package/dist/chunks/chunk-R54QPLJ7.js +1 -0
- package/dist/chunks/chunk-R6ZW7GHW.js +1 -0
- package/dist/chunks/chunk-RDSMOXJD.js +1 -0
- package/dist/chunks/chunk-RDTKEL46.js +1 -0
- package/dist/chunks/chunk-REFNQCPK.js +12 -0
- package/dist/chunks/chunk-REOFE46N.js +1 -0
- package/dist/chunks/chunk-RNCRO7PW.js +1 -0
- package/dist/chunks/chunk-RRBNRXZW.js +1 -0
- package/dist/chunks/chunk-RTWAT4DT.js +2 -0
- package/dist/chunks/chunk-RTZ7B2EH.js +1 -0
- package/dist/chunks/chunk-RVITBUU6.js +1 -0
- package/dist/chunks/chunk-RXMSI3Y6.js +1 -0
- package/dist/chunks/chunk-RXPLYD4P.js +67 -0
- package/dist/chunks/chunk-RXVKNUZ5.js +1 -0
- package/dist/chunks/chunk-S56LOJ4B.js +1 -0
- package/dist/chunks/chunk-S5RHQP2W.js +1 -0
- package/dist/chunks/chunk-SB42JUUY.js +10 -0
- package/dist/chunks/chunk-SEFJRNGR.js +3 -0
- package/dist/chunks/chunk-SIU7CGB3.js +1 -0
- package/dist/chunks/chunk-SMBJ5WYS.js +1 -0
- package/dist/chunks/chunk-SNET54ZU.js +0 -0
- package/dist/chunks/chunk-SSLH76L7.js +1 -0
- package/dist/chunks/chunk-SWG4IM7R.js +1 -0
- package/dist/chunks/chunk-SYG6XMW4.js +1 -0
- package/dist/chunks/chunk-SYS7C4PF.js +9 -0
- package/dist/chunks/chunk-T2RUXH53.js +1 -0
- package/dist/chunks/chunk-T2ZLMA43.js +1 -0
- package/dist/chunks/chunk-TDLXFMNH.js +0 -0
- package/dist/chunks/chunk-TH54GLBQ.js +1 -0
- package/dist/chunks/chunk-TO3Y7UQS.js +1 -0
- package/dist/chunks/chunk-TQHRNXS4.js +2 -0
- package/dist/chunks/chunk-TQSJCN5E.js +1 -0
- package/dist/chunks/chunk-TRCULNM3.js +28 -0
- package/dist/chunks/chunk-TWSBTYTU.js +1 -0
- package/dist/chunks/chunk-U6HFL7A7.js +1 -0
- package/dist/chunks/chunk-UDPPJDWT.js +9 -0
- package/dist/chunks/chunk-UDRXM6B3.js +1 -0
- package/dist/chunks/chunk-UK7QW5GE.js +1 -0
- package/dist/chunks/chunk-UKOOP7SS.js +1 -0
- package/dist/chunks/chunk-UL2EEJOU.js +1 -0
- package/dist/chunks/chunk-UL6W2E4T.js +1 -0
- package/dist/chunks/chunk-ULKZXAM5.js +1 -0
- package/dist/chunks/chunk-UNLIU4L5.js +1 -0
- package/dist/chunks/chunk-URHGY3TD.js +1 -0
- package/dist/chunks/chunk-UTM46NXE.js +1 -0
- package/dist/chunks/chunk-UZKWY3JE.js +1 -0
- package/dist/chunks/chunk-V2B4ISQF.js +1 -0
- package/dist/chunks/chunk-V5JVMTQF.js +3 -0
- package/dist/chunks/chunk-V7ZVCKZR.js +1 -0
- package/dist/chunks/chunk-VFS3C4WO.js +1 -0
- package/dist/chunks/chunk-VQAZGI6X.js +1 -0
- package/dist/chunks/chunk-VRBQVFBZ.js +1 -0
- package/dist/chunks/chunk-VSNJ77YA.js +1 -0
- package/dist/chunks/chunk-VT7TGEIV.js +1 -0
- package/dist/chunks/chunk-VVOMS3RS.js +1 -0
- package/dist/chunks/chunk-W27FHN37.js +1 -0
- package/dist/chunks/chunk-W2Q5B22N.js +1 -0
- package/dist/chunks/chunk-WAKJDOXV.js +1 -0
- package/dist/chunks/chunk-WBECN74C.js +1 -0
- package/dist/chunks/chunk-WC4AUVAR.js +1 -0
- package/dist/chunks/chunk-WFFW3XU3.js +31 -0
- package/dist/chunks/chunk-WK4ZGZU2.js +1 -0
- package/dist/chunks/chunk-WMZZHNCY.js +1 -0
- package/dist/chunks/chunk-WQBLUFYN.js +1 -0
- package/dist/chunks/chunk-WSSAZ5G7.js +1 -0
- package/dist/chunks/chunk-WT4V2XEM.js +1 -0
- package/dist/chunks/chunk-WU4N5UHB.js +9 -0
- package/dist/chunks/chunk-WV7EKGZO.js +1 -0
- package/dist/chunks/chunk-WVZNJZMH.js +11 -0
- package/dist/chunks/chunk-X4QWXLSG.js +4 -0
- package/dist/chunks/chunk-X5E3FMMR.js +1 -0
- package/dist/chunks/chunk-X6RC667W.js +2 -0
- package/dist/chunks/chunk-X7SFGVWR.js +1 -0
- package/dist/chunks/chunk-XAEFRBXF.js +8 -0
- package/dist/chunks/chunk-XCSEMP5I.js +1 -0
- package/dist/chunks/chunk-XHOHYCRV.js +1 -0
- package/dist/chunks/chunk-XIWT65ZD.js +1 -0
- package/dist/chunks/chunk-XMNCWOKP.js +1 -0
- package/dist/chunks/chunk-XT7BZEWG.js +1 -0
- package/dist/chunks/chunk-XVJJ33GD.js +1 -0
- package/dist/chunks/chunk-XVZ4KBFX.js +1 -0
- package/dist/chunks/chunk-XWB2NT26.js +1 -0
- package/dist/chunks/chunk-XYHOA2VI.js +1 -0
- package/dist/chunks/chunk-Y4H2IIZS.js +1 -0
- package/dist/chunks/chunk-Y5NLVFCT.js +1 -0
- package/dist/chunks/chunk-YAEJ6MML.js +41 -0
- package/dist/chunks/chunk-YAEPLSC2.js +9 -0
- package/dist/chunks/chunk-YAGWZALW.js +1 -0
- package/dist/chunks/chunk-YBLCWFPT.js +1 -0
- package/dist/chunks/chunk-YBUWSTZE.js +1 -0
- package/dist/chunks/chunk-YGK7SVB4.js +1 -0
- package/dist/chunks/chunk-YJ3LLVT3.js +1 -0
- package/dist/chunks/chunk-YKIFFZ3J.js +1 -0
- package/dist/chunks/chunk-YN5IXUXK.js +1 -0
- package/dist/chunks/chunk-YNMFL6SJ.js +1 -0
- package/dist/chunks/chunk-YOF6G5B6.js +1 -0
- package/dist/chunks/chunk-YOHC7PXJ.js +1 -0
- package/dist/chunks/chunk-YPVGWQK7.js +29 -0
- package/dist/chunks/chunk-YQOGPXWW.js +1 -0
- package/dist/chunks/chunk-YRWS5F6Q.js +15 -0
- package/dist/chunks/chunk-YVOGDIOW.js +1 -0
- package/dist/chunks/chunk-YVV6QKXB.js +19 -0
- package/dist/chunks/chunk-YWD6QGZX.js +1 -0
- package/dist/chunks/chunk-YWYMHJ5S.js +1 -0
- package/dist/chunks/chunk-Z3KK2QDW.js +17 -0
- package/dist/chunks/chunk-Z3NZDZAK.js +1 -0
- package/dist/chunks/chunk-Z632AFNZ.js +1 -0
- package/dist/chunks/chunk-Z7WGANHK.js +1 -0
- package/dist/chunks/chunk-ZBL7UKWW.js +1 -0
- package/dist/chunks/chunk-ZCBLW3RZ.js +15 -0
- package/dist/chunks/chunk-ZD6IWVN5.js +1 -0
- package/dist/chunks/chunk-ZDG44NX2.js +1 -0
- package/dist/chunks/chunk-ZFXCA2EW.js +1 -0
- package/dist/chunks/chunk-ZK7AY7SZ.js +1 -0
- package/dist/chunks/chunk-ZKFTYDJE.js +11 -0
- package/dist/chunks/chunk-ZKXMVPXH.js +1 -0
- package/dist/chunks/chunk-ZMRZS6LX.js +1 -0
- package/dist/chunks/chunk-ZMURF4M6.js +1 -0
- package/dist/chunks/chunk-ZOZBMAAN.js +11 -0
- package/dist/chunks/chunk-ZPKMCOQD.js +1 -0
- package/dist/chunks/chunk-ZPTUI2BV.js +1 -0
- package/dist/chunks/chunk-ZS6YWVVJ.js +15 -0
- package/dist/chunks/chunk-ZV2BM64C.js +37 -0
- package/dist/chunks/chunk-ZVB4ZXSV.js +1 -0
- package/dist/chunks/chunk-ZVJAZT3K.js +1 -0
- package/dist/chunks/chunk-ZWAEXQZN.js +1 -0
- package/dist/chunks/chunk-ZWFD2OT5.js +52 -0
- package/dist/chunks/chunk-ZY4EI27T.js +1 -0
- package/dist/chunks/chunk-inspector.class-7HP4VGKC.js +1 -0
- package/dist/chunks/citation-badge.class-Q67ZSHRU.js +1 -0
- package/dist/chunks/claim-evidence.class-JU5BVM5J.js +1 -0
- package/dist/chunks/code-block-core.class-SKAIMQS6.js +1 -0
- package/dist/chunks/code-block.class-FYJZXUH5.js +1 -0
- package/dist/chunks/code-editor.class-WX7D6YMQ.js +23 -0
- package/dist/chunks/color-picker.class-ILOTXUX6.js +49 -0
- package/dist/chunks/combobox-catalog-HUTQD75K.js +1 -0
- package/dist/chunks/combobox.class-KSGXRRIP.js +1 -0
- package/dist/chunks/command-palette.class-OQOSPFQT.js +29 -0
- package/dist/chunks/commit-card.class-YOZWNFRK.js +40 -0
- package/dist/chunks/community-card.class-HARLY2US.js +1 -0
- package/dist/chunks/compare-panel.class-GZPQTNLL.js +26 -0
- package/dist/chunks/condition-builder.class-4ZYWB6FB.js +53 -0
- package/dist/chunks/confirm-bar.class-MGVONPL5.js +1 -0
- package/dist/chunks/connector-manager.class-6A264VFQ.js +22 -0
- package/dist/chunks/contact-viewer.class-HHIW7OCU.js +9 -0
- package/dist/chunks/context-inspector.class-JXBDPTVT.js +33 -0
- package/dist/chunks/context-menu.class-AEQLHBCB.js +6 -0
- package/dist/chunks/context-meter.class-5S5XPCIN.js +41 -0
- package/dist/chunks/control-group.class-4A2WLN52.js +1 -0
- package/dist/chunks/conversation-item.class-O5LDWQG3.js +31 -0
- package/dist/chunks/copy-button.class-FSKUVHQU.js +1 -0
- package/dist/chunks/counter.class-V5CTCNRZ.js +1 -0
- package/dist/chunks/country-picker.class-IXWHM5BV.js +1 -0
- package/dist/chunks/csv-viewer.class-FRC7SKXV.js +8 -0
- package/dist/chunks/currency-picker.class-A4R2NLNI.js +1 -0
- package/dist/chunks/dashboard-grid.class-LVMY46KX.js +11 -0
- package/dist/chunks/data-grid.class-AVSTVDDO.js +214 -0
- package/dist/chunks/dataset-viewer.class-VFUQ2IFV.js +13 -0
- package/dist/chunks/date-input.class-SDLPDCOX.js +46 -0
- package/dist/chunks/date-picker.class-NTNJ75OL.js +1 -0
- package/dist/chunks/details.class-OIDNOI3Q.js +1 -0
- package/dist/chunks/dialog.class-6G3PRXJ7.js +1 -0
- package/dist/chunks/diff-view.class-EFNJJ7DJ.js +23 -0
- package/dist/chunks/divider.class-R52ZO7DT.js +5 -0
- package/dist/chunks/dock-panel.class-IITPJF2E.js +13 -0
- package/dist/chunks/document-compare.class-OOCSLVYY.js +20 -0
- package/dist/chunks/document-library.class-D4XEHUOU.js +30 -0
- package/dist/chunks/document-preview.class-C5NKPPOU.js +1 -0
- package/dist/chunks/document-token-css.generated-ENJYCTTF.js +10 -0
- package/dist/chunks/document-viewer.class-ICSHDBZO.js +11 -0
- package/dist/chunks/docx-viewer.class-YEZW2AZZ.js +16 -0
- package/dist/chunks/doughnut-chart.class-6AFYZSJP.js +1 -0
- package/dist/chunks/drawer.class-CBERDAFN.js +1 -0
- package/dist/chunks/drilldown-panel.class-XRP4X5TP.js +45 -0
- package/dist/chunks/drop-zone.class-JC64NEMI.js +17 -0
- package/dist/chunks/dropdown-item.class-LV474IQX.js +1 -0
- package/dist/chunks/dropdown.class-KIKEAKRJ.js +1 -0
- package/dist/chunks/ebook-viewer.class-IHREUVAF.js +11 -0
- package/dist/chunks/email-viewer.class-R6CUOOEP.js +25 -0
- package/dist/chunks/embedding-explorer.class-TVI7KPT6.js +47 -0
- package/dist/chunks/emoji-picker.class-DYTJULND.js +42 -0
- package/dist/chunks/empty.class-SYWXOLEU.js +1 -0
- package/dist/chunks/entity-card.class-RQ6VFVFJ.js +1 -0
- package/dist/chunks/entity-chip.class-2UONKEZE.js +1 -0
- package/dist/chunks/entity-dossier.class-GIPTUMPI.js +27 -0
- package/dist/chunks/env-list.class-PPLCQYHR.js +26 -0
- package/dist/chunks/eval-dataset.class-YEGV2AIB.js +34 -0
- package/dist/chunks/eval-result.class-VAXGWMCF.js +14 -0
- package/dist/chunks/evaluation-run.class-U3NRQDLQ.js +47 -0
- package/dist/chunks/export-button.class-RZ5MH4DQ.js +13 -0
- package/dist/chunks/external-label-association-EK3BK25O.js +1 -0
- package/dist/chunks/file-icon.class-KYBT6IQ4.js +1 -0
- package/dist/chunks/file-input.class-CQUO5JZO.js +39 -0
- package/dist/chunks/file-tree.class-MG6WM64Y.js +6 -0
- package/dist/chunks/filter-bar.class-R3ETKFVN.js +46 -0
- package/dist/chunks/flag.class-Z25RDXP2.js +1 -0
- package/dist/chunks/flow-canvas.class-FWGJXIJJ.js +75 -0
- package/dist/chunks/flow-controls.class-KJHBTMRD.js +7 -0
- package/dist/chunks/flow-minimap.class-HC6TH2B6.js +18 -0
- package/dist/chunks/flow-node.class-BUZCHSLQ.js +23 -0
- package/dist/chunks/flow-run-status.class-TX56ZDDL.js +8 -0
- package/dist/chunks/format-bytes.class-XCKLEQSU.js +1 -0
- package/dist/chunks/format-date.class-ZZ7EWIRK.js +1 -0
- package/dist/chunks/format-number.class-37MB2H64.js +1 -0
- package/dist/chunks/funnel.class-3ICEYBNP.js +19 -0
- package/dist/chunks/gauge.class-3UION2VP.js +21 -0
- package/dist/chunks/generation-metrics.class-3C7ZB4E6.js +14 -0
- package/dist/chunks/geojson-viewer.class-4IQAT3CW.js +18 -0
- package/dist/chunks/graph-legend.class-RHGTTIQL.js +1 -0
- package/dist/chunks/graph-query-builder.class-BTNSMAVX.js +65 -0
- package/dist/chunks/graph-spatial-controller-IKW2OMUW.js +27 -0
- package/dist/chunks/graph.class-XM4JSDQW.js +1 -0
- package/dist/chunks/greycat-language-KJHNG54J.js +1 -0
- package/dist/chunks/grounding-summary.class-VFWZWBAL.js +1 -0
- package/dist/chunks/handoff-divider.class-R3M7IOHV.js +12 -0
- package/dist/chunks/heatmap.class-DOGRCIEE.js +64 -0
- package/dist/chunks/help.class-VKGHRXRP.js +3 -0
- package/dist/chunks/hierarchy-source-controller-4X7OULM5.js +1 -0
- package/dist/chunks/hierarchy-source-view-KSPAJYZ3.js +1 -0
- package/dist/chunks/hierarchy-summary-source-B2C6IAAC.js +1 -0
- package/dist/chunks/highlight-layer.class-OVLTMDUJ.js +19 -0
- package/dist/chunks/histogram.class-BLNBUEC7.js +1 -0
- package/dist/chunks/html-viewer.class-DOHCS2P2.js +1 -0
- package/dist/chunks/icon-button.class-YFLBOPCD.js +1 -0
- package/dist/chunks/icon.class-D2PSXP74.js +4 -0
- package/dist/chunks/image-comparer.class-AG7U2NWT.js +12 -0
- package/dist/chunks/image-viewer.class-SG7S4WVN.js +34 -0
- package/dist/chunks/include.class-WKRUOEMO.js +1 -0
- package/dist/chunks/ingestion-queue.class-GWKTTUFD.js +44 -0
- package/dist/chunks/input.class-DTVEIMWX.js +1 -0
- package/dist/chunks/intersection-observer.class-HKGDRZZH.js +1 -0
- package/dist/chunks/json-viewer.class-K7BYCJNG.js +1 -0
- package/dist/chunks/kbd.class-TNFKKAEI.js +9 -0
- package/dist/chunks/knowledge-base-admin.class-7SUQ7JGE.js +19 -0
- package/dist/chunks/knowledge-base.class-LFVU45CO.js +68 -0
- package/dist/chunks/knowledge-graph-explorer.class-5OUV5L6G.js +55 -0
- package/dist/chunks/known-date.class-RTGHUBGP.js +27 -0
- package/dist/chunks/layered-layout-OESYHVZG.js +1 -0
- package/dist/chunks/lightbox-item.class-7IZWQWVO.js +9 -0
- package/dist/chunks/lightbox.class-SJZWUXF4.js +39 -0
- package/dist/chunks/line-chart.class-XVDMRPVA.js +1 -0
- package/dist/chunks/lite-chart.class-WL3RR5AO.js +1 -0
- package/dist/chunks/live-region.class-5QSNVPGP.js +1 -0
- package/dist/chunks/locale-picker.class-OYP36LHA.js +35 -0
- package/dist/chunks/lr-attachment-chip-WZSKK7OT.js +1 -0
- package/dist/chunks/lr-button-FOWJMQBE.js +1 -0
- package/dist/chunks/lr-checkbox-UCQ46QYB.js +1 -0
- package/dist/chunks/lr-checkbox-group-66XB6GXG.js +1 -0
- package/dist/chunks/lr-chip-RMKTQJMH.js +1 -0
- package/dist/chunks/lr-citation-badge-A5NBC44F.js +1 -0
- package/dist/chunks/lr-code-block-F6PZS5RO.js +1 -0
- package/dist/chunks/lr-details-Z6B5IAP3.js +1 -0
- package/dist/chunks/lr-document-preview-PSXY6CER.js +1 -0
- package/dist/chunks/lr-dropdown-4FVM2VZA.js +1 -0
- package/dist/chunks/lr-dropdown-item-BJVD3V7C.js +1 -0
- package/dist/chunks/lr-empty-RRDLJFIR.js +1 -0
- package/dist/chunks/lr-entity-card-H4U2XPVV.js +1 -0
- package/dist/chunks/lr-flag-6ZEB2C6F.js +1 -0
- package/dist/chunks/lr-grounding-summary-47T7HVD4.js +1 -0
- package/dist/chunks/lr-json-viewer-V7WXHKWB.js +1 -0
- package/dist/chunks/lr-markdown-BL6ZKV2L.js +1 -0
- package/dist/chunks/lr-neighbor-list-42A7TWPV.js +1 -0
- package/dist/chunks/lr-option-O5YKQGYD.js +1 -0
- package/dist/chunks/lr-pagination-TEVWTWZR.js +1 -0
- package/dist/chunks/lr-path-strip-CVM37IJK.js +1 -0
- package/dist/chunks/lr-select-54E6JWXG.js +1 -0
- package/dist/chunks/lr-source-card-3GDTLINC.js +1 -0
- package/dist/chunks/lr-thinking-panel-ZBVEHINV.js +1 -0
- package/dist/chunks/lr-toast-QOENFRV5.js +1 -0
- package/dist/chunks/lr-tool-approval-dialog-CFLKYA5W.js +1 -0
- package/dist/chunks/lr-tool-call-block-766HXOJC.js +1 -0
- package/dist/chunks/lr-tool-call-chip-4YEACPS5.js +1 -0
- package/dist/chunks/lr-tool-param-form-IBU4P2BH.js +1 -0
- package/dist/chunks/lr-tool-result-view-35FSFJX2.js +1 -0
- package/dist/chunks/lr-tool-timeline-XXBTVALU.js +1 -0
- package/dist/chunks/lr-virtual-list-KLXF67KT.js +1 -0
- package/dist/chunks/lr-widget-renderer-E7H56NWQ.js +1 -0
- package/dist/chunks/map-anchor-controller-FZUGR6E2.js +1 -0
- package/dist/chunks/map-anchor.class-T34NQADS.js +1 -0
- package/dist/chunks/map-controls-lifecycle-SRF5BBIB.js +1 -0
- package/dist/chunks/map-data-layer-runtime-YE3JHYGD.js +1 -0
- package/dist/chunks/map-drawing-controller-WCQGUQFM.js +1 -0
- package/dist/chunks/map-feature-state-routes-PK32TXQJ.js +1 -0
- package/dist/chunks/map-hash-owner-IKTTU6J7.js +1 -0
- package/dist/chunks/map-image-export-controller-RUSEHX7D.js +5 -0
- package/dist/chunks/map-images-YCFC6YNN.js +1 -0
- package/dist/chunks/map-owned-features-YH3B3HM2.js +1 -0
- package/dist/chunks/map-scene-controls-7MOIIX4X.js +1 -0
- package/dist/chunks/map-scene-elevated-lines-5LJFZBCQ.js +36 -0
- package/dist/chunks/map-scene-render-controller-22M5JR2L.js +1 -0
- package/dist/chunks/map-style-overrides-QPN774ZE.js +1 -0
- package/dist/chunks/map.class-6GLEG3EW.js +87 -0
- package/dist/chunks/markdown-core.class-XGQKXDR7.js +1 -0
- package/dist/chunks/markdown.class-GXUI6C3W.js +1 -0
- package/dist/chunks/mcp-app.class-SMBZKVIE.js +49 -0
- package/dist/chunks/media-card.class-HH42MEPL.js +1 -0
- package/dist/chunks/memory-panel.class-A2T7V4OS.js +59 -0
- package/dist/chunks/mention-popover.class-PR2XWTH4.js +18 -0
- package/dist/chunks/menu-item.class-MWBBEDEO.js +1 -0
- package/dist/chunks/menu-label.class-OS4OXDQ3.js +1 -0
- package/dist/chunks/menu.class-YIJ6JJZG.js +1 -0
- package/dist/chunks/menubar-item.class-THRQ2YDD.js +1 -0
- package/dist/chunks/menubar.class-BX7ZAG76.js +1 -0
- package/dist/chunks/message-actions.class-O2RLFQWJ.js +10 -0
- package/dist/chunks/message-feedback.class-MGX6GNUL.js +1 -0
- package/dist/chunks/message-parts.class-IJVBDYNL.js +11 -0
- package/dist/chunks/mind-map.class-5WNMK3DN.js +36 -0
- package/dist/chunks/model-select.class-NRD5BP6S.js +1 -0
- package/dist/chunks/model-settings-panel.class-WFKPFGIV.js +13 -0
- package/dist/chunks/model-viewer.class-CBG2CVNO.js +9 -0
- package/dist/chunks/multi-split.class-4TYA4SO4.js +9 -0
- package/dist/chunks/mutation-observer.class-O6GSBFYQ.js +1 -0
- package/dist/chunks/native-time-input.class-E6IHEFEF.js +1 -0
- package/dist/chunks/navigation-menu-item.class-APWZ2TUY.js +7 -0
- package/dist/chunks/navigation-menu.class-DFOLBKU3.js +8 -0
- package/dist/chunks/neighbor-list.class-BQDHYAE4.js +1 -0
- package/dist/chunks/node-palette.class-3Z6TSZS6.js +25 -0
- package/dist/chunks/notebook-viewer.class-QXA4U7SU.js +16 -0
- package/dist/chunks/number-input.class-XWSNL57L.js +1 -0
- package/dist/chunks/number-ticker.class-3M2DW55V.js +1 -0
- package/dist/chunks/option.class-WYSAIWE3.js +1 -0
- package/dist/chunks/otp-input.class-AO7MTPCY.js +12 -0
- package/dist/chunks/page-rail.class-4REURRKR.js +16 -0
- package/dist/chunks/page.class-6DBYH7CG.js +52 -0
- package/dist/chunks/pagination.class-HERBBEOL.js +1 -0
- package/dist/chunks/pan-zoom.class-5AHG6YRE.js +1 -0
- package/dist/chunks/passive-markup-54LSKNVB.js +1 -0
- package/dist/chunks/path-strip.class-4NBX3SOP.js +1 -0
- package/dist/chunks/pdf-viewer.class-YLSXSR2B.js +14 -0
- package/dist/chunks/permission-grant.class-RN4VZBKN.js +16 -0
- package/dist/chunks/permission-rules.class-3YV3FYA4.js +18 -0
- package/dist/chunks/phone-input.class-YHNLM55W.js +29 -0
- package/dist/chunks/pie-chart.class-VODVZCSP.js +1 -0
- package/dist/chunks/polar-area-chart.class-IMKORO3H.js +1 -0
- package/dist/chunks/policy-summary.class-VRKIJRYA.js +23 -0
- package/dist/chunks/poll-status.class-CSLFDKRA.js +15 -0
- package/dist/chunks/popover.class-NTMQAVHE.js +1 -0
- package/dist/chunks/popup.class-A5TLOULM.js +8 -0
- package/dist/chunks/positioner-V5P6XVZW.js +1 -0
- package/dist/chunks/pptx-viewer.class-PLTIFVBD.js +14 -0
- package/dist/chunks/progress-bar.class-OD75C4K3.js +4 -0
- package/dist/chunks/progress-ring.class-MRGTWKTL.js +7 -0
- package/dist/chunks/prompt-input.class-D6A5PWDZ.js +28 -0
- package/dist/chunks/prompt-queue.class-B4EEH3AO.js +28 -0
- package/dist/chunks/prompt-studio.class-SZ2OMY3T.js +67 -0
- package/dist/chunks/provenance-panel.class-6PSWC5G7.js +1 -0
- package/dist/chunks/push-to-talk.class-CN2BMG2V.js +1 -0
- package/dist/chunks/qr-code.class-GSYIWBKK.js +4 -0
- package/dist/chunks/radar-chart.class-OLQIGFYR.js +1 -0
- package/dist/chunks/radial-bar.class-RFXEA26T.js +10 -0
- package/dist/chunks/radio-button.class-TX3TZQML.js +1 -0
- package/dist/chunks/radio-group.class-BORI2LTS.js +12 -0
- package/dist/chunks/radio.class-E3CXUAYU.js +1 -0
- package/dist/chunks/rag-answer.class-GHA7OOAL.js +27 -0
- package/dist/chunks/rag-eval-dashboard.class-S6VGUBXL.js +54 -0
- package/dist/chunks/random-content.class-ZKB5HTPT.js +11 -0
- package/dist/chunks/rating.class-DNNOLSJX.js +8 -0
- package/dist/chunks/realtime-session.class-37KSLLRL.js +28 -0
- package/dist/chunks/relative-time.class-WLVVINPZ.js +1 -0
- package/dist/chunks/reorder-item.class-EUGO5GHM.js +16 -0
- package/dist/chunks/reorder-list.class-PW6RNOW3.js +6 -0
- package/dist/chunks/research-progress.class-E5YWFJ4F.js +21 -0
- package/dist/chunks/resize-observer.class-PPUDNUN4.js +1 -0
- package/dist/chunks/responsive-panel.class-YUYAF2E5.js +17 -0
- package/dist/chunks/result-card.class-4ORWV5KQ.js +1 -0
- package/dist/chunks/result-field.class-ZY54DBG5.js +1 -0
- package/dist/chunks/retrieval-compare.class-BROHJ3ID.js +44 -0
- package/dist/chunks/retrieval-results.class-FXBUJDUC.js +37 -0
- package/dist/chunks/retrieval-search.class-AH67OJ4K.js +22 -0
- package/dist/chunks/retrieval-trace.class-FD2WLDUI.js +25 -0
- package/dist/chunks/rubric-form.class-2BCNON3Q.js +49 -0
- package/dist/chunks/sankey.class-EMHA3ZVD.js +2 -0
- package/dist/chunks/scatter-chart.class-CTYLVUDJ.js +1 -0
- package/dist/chunks/schema-viewer.class-X47LWEX7.js +32 -0
- package/dist/chunks/scroller.class-VNVZUQY3.js +1 -0
- package/dist/chunks/segmented.class-RHULKE77.js +1 -0
- package/dist/chunks/select.class-ACREPFVX.js +1 -0
- package/dist/chunks/selection-toolbar.class-ZFPYHJKD.js +5 -0
- package/dist/chunks/sequence-playback.class-UZSTO4L6.js +9 -0
- package/dist/chunks/sequence-strip-source-controller-TBFABYT4.js +1 -0
- package/dist/chunks/sequence-strip.class-U5D6HJUJ.js +45 -0
- package/dist/chunks/signature-pad.class-AN6MALUI.js +17 -0
- package/dist/chunks/skeleton.class-NRGJLESX.js +1 -0
- package/dist/chunks/slider.class-J5TA65CX.js +1 -0
- package/dist/chunks/source-card.class-QYFB5JVD.js +1 -0
- package/dist/chunks/source-list.class-GWRURXGD.js +11 -0
- package/dist/chunks/source-picker.class-VXI4FOQS.js +27 -0
- package/dist/chunks/span-waterfall.class-GUW3NHYL.js +1 -0
- package/dist/chunks/sparkline.class-HVMZ2X6P.js +12 -0
- package/dist/chunks/spinner.class-AGCPM2TZ.js +1 -0
- package/dist/chunks/split-panel.class-BPVZTWZY.js +13 -0
- package/dist/chunks/spreadsheet-viewer.class-IRJXDMYD.js +9 -0
- package/dist/chunks/stack-trace.class-PSEUMRXV.js +27 -0
- package/dist/chunks/stat.class-MK4L5S7Y.js +1 -0
- package/dist/chunks/step.class-DKYFFMTD.js +18 -0
- package/dist/chunks/stepper.class-3VTA4Q4Y.js +22 -0
- package/dist/chunks/stream-status.class-BF4Y5K4N.js +14 -0
- package/dist/chunks/streaming-text-core.class-JXCHGQT6.js +1 -0
- package/dist/chunks/streaming-text.class-466AYDYR.js +1 -0
- package/dist/chunks/style-panel.class-4WDVCE52.js +9 -0
- package/dist/chunks/subagent-panel.class-5PTX2TH5.js +22 -0
- package/dist/chunks/suggestion-chips.class-5M54LJQN.js +13 -0
- package/dist/chunks/svg-viewer.class-62LEPJYV.js +6 -0
- package/dist/chunks/swatch-picker.class-7E4FE5CT.js +15 -0
- package/dist/chunks/switch.class-XWZ6HOAU.js +1 -0
- package/dist/chunks/tab-group.class-VVM4NKXQ.js +1 -0
- package/dist/chunks/tab-panel.class-2WOWRVDB.js +1 -0
- package/dist/chunks/tab.class-QUE23SXQ.js +1 -0
- package/dist/chunks/table.class-QYW5ORNY.js +85 -0
- package/dist/chunks/tag.class-H3JEVLPR.js +3 -0
- package/dist/chunks/task-list.class-EGBWNTAD.js +40 -0
- package/dist/chunks/terminal.class-7VVFQ57Z.js +28 -0
- package/dist/chunks/test-results.class-VNEWN2OU.js +55 -0
- package/dist/chunks/text-quote-index-43G6MA3W.js +1 -0
- package/dist/chunks/textarea.class-XDQKJ432.js +1 -0
- package/dist/chunks/thinking-panel.class-MD2E3YKO.js +1 -0
- package/dist/chunks/thread-list.class-CTXIHTQQ.js +66 -0
- package/dist/chunks/time-input.class-FCIYWGO4.js +38 -0
- package/dist/chunks/time-range.class-XXMSXARI.js +13 -0
- package/dist/chunks/time-zone-picker.class-6ZEH7A2C.js +1 -0
- package/dist/chunks/timeline-item.class-4OZLSCAH.js +36 -0
- package/dist/chunks/timeline.class-S4AHAP3V.js +13 -0
- package/dist/chunks/toast-item.class-F2SY7DYP.js +1 -0
- package/dist/chunks/toast.class-DLXDLSFL.js +1 -0
- package/dist/chunks/toggle-group.class-VGOPG7AZ.js +3 -0
- package/dist/chunks/toggle.class-SU2EYDBN.js +3 -0
- package/dist/chunks/token-input.class-D2IFZHJ4.js +27 -0
- package/dist/chunks/tool-approval-dialog.class-4KA4A5JY.js +1 -0
- package/dist/chunks/tool-call-block.class-6LCDKUHT.js +1 -0
- package/dist/chunks/tool-call-chip.class-XTSFF5DD.js +1 -0
- package/dist/chunks/tool-param-form.class-KC3FCGXE.js +1 -0
- package/dist/chunks/tool-result-dialog.class-HW7VBXQ7.js +35 -0
- package/dist/chunks/tool-result-view.class-AD3YEU4X.js +1 -0
- package/dist/chunks/tool-select-dialog.class-VJDI5JVJ.js +58 -0
- package/dist/chunks/tool-timeline.class-7XBH2YDU.js +1 -0
- package/dist/chunks/tooltip.class-MXUQ6PAU.js +1 -0
- package/dist/chunks/tour.class-IB74A2TU.js +44 -0
- package/dist/chunks/trace-tree.class-L2A3FIPW.js +38 -0
- package/dist/chunks/transcript-feed.class-OZWTJKLL.js +1 -0
- package/dist/chunks/tree-item.class-TVSMLGZ7.js +1 -0
- package/dist/chunks/tree.class-XQUKO24E.js +11 -0
- package/dist/chunks/treemap.class-7NAGNNWK.js +4 -0
- package/dist/chunks/typing-indicator.class-IVFR24ZI.js +4 -0
- package/dist/chunks/unit-picker.class-O4D4ZGMT.js +1 -0
- package/dist/chunks/usage-badge-overlay-runtime-E3FACAVI.js +1 -0
- package/dist/chunks/usage-badge.class-6CHSV6U7.js +24 -0
- package/dist/chunks/video-playlist.class-R5A5H6TT.js +28 -0
- package/dist/chunks/video-thumbnails-DN3N5ZJR.js +5 -0
- package/dist/chunks/video.class-NBJLOC5D.js +101 -0
- package/dist/chunks/virtual-list.class-F4VBJK33.js +1 -0
- package/dist/chunks/visually-hidden.class-WIRQAOHJ.js +1 -0
- package/dist/chunks/voice-picker.class-ZP57HP5Q.js +47 -0
- package/dist/chunks/widget-renderer.class-2W475PVB.js +1 -0
- package/dist/chunks/widget.class-IC32HE5J.js +41 -0
- package/dist/chunks/word-cloud.class-J6DW54DZ.js +26 -0
- package/dist/chunks/xml-viewer.class-HDNKLHFI.js +39 -0
- package/dist/chunks/zoomable-frame.class-4J22EEKD.js +4 -0
- package/dist/density.css +1 -0
- package/dist/design-tokens.css +1 -0
- package/dist/lyra-ui.loader.js +1 -0
- package/dist/native.css +1 -0
- package/dist/theme-core.css +1 -0
- package/dist/theme.css +1 -0
- package/dist/utilities.css +1 -0
- package/package.json +60 -3
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import{a as Xt}from"./chunk-TO3Y7UQS.js";import{a as Jt,c as Zt}from"./chunk-QDIC72BY.js";import{b as Kt}from"./chunk-RXVKNUZ5.js";import{a as Me,b as Be}from"./chunk-BYJSQYRN.js";import{a as ie}from"./chunk-DMTQAWEJ.js";import{a as Nt,b as Wt,d as Gt,e as jt}from"./chunk-R6ZW7GHW.js";import{e as Yt}from"./chunk-YKIFFZ3J.js";import{a as gt,b as yt,c as xt,d as wt,e as _t,f as St}from"./chunk-FDQP4QQZ.js";import{a as Rt,b as P,c as Ct}from"./chunk-ZVJAZT3K.js";import{a as At}from"./chunk-J5OZZS24.js";import{a as ht}from"./chunk-J2TS4IBA.js";import{a as Ye}from"./chunk-IYCYTW25.js";import{b as Ot}from"./chunk-ZMRZS6LX.js";import{a as $t}from"./chunk-GT6NF7FZ.js";import{a as _,b as oe}from"./chunk-3GVZW6O4.js";import{a as ct,b as kt}from"./chunk-JFDY4CIA.js";import{a as dt,i as ut,j as pt}from"./chunk-E4ZZLWV4.js";import{a as mt,b as bt,c as vt}from"./chunk-FHEXSVUO.js";import{a as nt,b as E}from"./chunk-43JJVC4Y.js";import{a as rt}from"./chunk-FOABE6ZB.js";import{c as U}from"./chunk-LF23D7NZ.js";import{a as qt}from"./chunk-ONTV26D7.js";import{b as Vt,c as Et}from"./chunk-4BU3QW2I.js";import{a as ft}from"./chunk-JKL737HR.js";import{a as Lt,b as Tt}from"./chunk-F33HF7D2.js";import{a as Xe,b as Je,c as Ze,d as et,j as tt,k as at,l as lt}from"./chunk-QOOQMUEJ.js";import{r as Ft,s as Pt,t as Ut,u as Mt,v as Bt,w as Ht,x as Qt}from"./chunk-VSNJ77YA.js";import{a as Ke}from"./chunk-GW3IPDNG.js";import{c as It,d as f}from"./chunk-QIYCMK2Q.js";import{g as He,h as Qe,l as Ne,m as We,r as Ge,s as je}from"./chunk-XIWT65ZD.js";import{a as zt}from"./chunk-CGUPP4BQ.js";import{a as te}from"./chunk-K3TGAVRE.js";import{a as S,b as se,c as it,d as ot,f as re,g as F,i as st,k as ne}from"./chunk-J2SUHUFZ.js";import{a as Dt}from"./chunk-IHHKAXNV.js";import{a as de}from"./chunk-UTM46NXE.js";import{a as I}from"./chunk-63566KPS.js";import{a as ge}from"./chunk-Z632AFNZ.js";import{a as V,c as Se}from"./chunk-5ES6C332.js";import{b as Ee,e as J,q as De}from"./chunk-C6BTEIPF.js";import{b as le,h as $}from"./chunk-HEIK7X4U.js";import{Eb as Te,Ga as Oe,Nb as Ve,Pa as ze,Qa as qe,Ra as ke,V as Ce,gb as Ae,lb as Le,s as Re}from"./chunk-IFDV4HWR.js";import{a as Z,d as Ie,e as Fe,f as O,j as ee,l as Pe}from"./chunk-3HGKUVDX.js";import{a as $e}from"./chunk-JNB4S2FJ.js";import{e as he}from"./chunk-BDETGDBF.js";import{D as _e,E as X,a as ye,b as xe,v as K,x as we}from"./chunk-2CH7YZRL.js";import{c as Y,d as ve,g as fe}from"./chunk-32IK33EM.js";import{a as c,b as u,c as y,d as G,z as be}from"./chunk-JTGCA7JE.js";import{b as ce}from"./chunk-CR23WLJQ.js";import{b as j,h as pe}from"./chunk-5NRIHGYU.js";import{b as L,e as v,i as g}from"./chunk-CN2FTU25.js";import{b as Ue}from"./chunk-ZVB4ZXSV.js";import{g as T,i as me}from"./chunk-AVZPWRZU.js";import{c as ue}from"./chunk-3CLMBMQL.js";async function ei(d,e,t){let[i,o]=await Promise.all([Xt(),import("./passive-markup-54LSKNVB.js")]);if(t())return"stale";if(!i)return null;let s=new Map,r=e.createElement("template");for(let h of d){if(h.html===void 0)continue;r.content.replaceChildren(o.sanitizePassiveMarkupFragment(i,h.html,e,"passive-document"));let l=r.innerHTML;l.trim()!==""&&s.set(h,l)}return s}var ti=L` :host{display:block;--_lr-combobox-trigger-padding:var(--lr-form-control-padding-block) var(--lr-space-s);--_lr-combobox-trigger-min-height:var(--lr-form-control-height);--_lr-combobox-font-size:var(--lr-form-control-font-size);--_lr-combobox-tag-padding:var(--lr-size-0-1rem) var(--lr-size-0-4rem);--_lr-combobox-tag-font-size:var(--lr-font-size-sm);--_lr-combobox-expand-size:min( var(--lr-size-1-75rem), max(0px, calc(var(--lr-form-control-height) - 2 * var(--lr-form-control-padding-block) - 2 * var(--lr-border-width-thin))) );--_lr-combobox-gap:var(--lr-space-xs);--_lr-combobox-radius:var(--lr-form-control-radius);--_lr-combobox-fill:var(--lr-color-surface);--_lr-combobox-border-color:var(--lr-color-border);--_lr-combobox-text-color:inherit;--_lr-form-control-focus-shadow:var(--lr-form-control-focus-shadow, none);--_lr-form-control-transition:var(--lr-form-control-transition, none)}:host([pill]){--_lr-combobox-radius:var(--lr-radius-pill)}:host([appearance=filled]){--_lr-combobox-fill:var(--lr-color-surface-raised);--_lr-combobox-border-color:transparent}:host([appearance=filled-outlined]){--_lr-combobox-fill:var(--lr-color-surface-raised)}:host([appearance=plain]){--_lr-combobox-fill:transparent;--_lr-combobox-border-color:transparent}:host([appearance=accent]){--_lr-combobox-fill:var(--lr-color-brand);--_lr-combobox-border-color:transparent;--_lr-combobox-text-color:var(--lr-color-on-brand)}:host([appearance=accent]) [part=start],:host([appearance=accent]) [part=end],:host([appearance=accent]) [part=expand-icon],:host([appearance=accent]) [part=combobox-input]::placeholder{color:inherit}:host([appearance=accent]) [part~=tag]{background:color-mix(in srgb,currentColor 20%,transparent);color:inherit}:host([size="2xs"]){--_lr-combobox-trigger-padding:var(--lr-form-control-padding-block) var(--lr-space-2xs);--_lr-combobox-tag-padding:0 var(--lr-size-0-25rem);--_lr-combobox-tag-font-size:var(--lr-font-size-2xs);--_lr-combobox-expand-size:var(--lr-size-1rem)}:host([size=xs]){--_lr-combobox-trigger-padding:var(--lr-form-control-padding-block) var(--lr-space-xs);--_lr-combobox-tag-padding:0 var(--lr-size-0-25rem);--_lr-combobox-tag-font-size:var(--lr-font-size-2xs);--_lr-combobox-expand-size:var(--lr-size-1rem)}:host([size=s]),:host([size=small]){--_lr-combobox-trigger-padding:var(--lr-form-control-padding-block) var(--lr-space-xs);--_lr-combobox-tag-padding:var(--lr-size-0-05rem) var(--lr-size-0-3125rem);--_lr-combobox-tag-font-size:var(--lr-font-size-xs);--_lr-combobox-expand-size:var(--lr-size-1-25rem)}:host([size=l]),:host([size=large]){--_lr-combobox-trigger-padding:var(--lr-form-control-padding-block) var(--lr-space-m);--_lr-combobox-tag-padding:var(--lr-size-0-15rem) var(--lr-size-0-5rem);--_lr-combobox-tag-font-size:var(--lr-font-size-md-sm)}:host([size=xl]){--_lr-combobox-trigger-padding:var(--lr-form-control-padding-block) var(--lr-space-l);--_lr-combobox-tag-padding:var(--lr-size-0-25rem) var(--lr-size-0-625rem);--_lr-combobox-tag-font-size:var(--lr-font-size-m)}${Tt} ${Lt} ${Xe} [part=combobox]{display:flex;flex-wrap:wrap;align-items:center;gap:var(--lr-combobox-gap,var(--_lr-combobox-gap));inline-size:100%;min-block-size:var(--lr-combobox-trigger-height,var(--lr-combobox-trigger-min-height,var(--_lr-combobox-trigger-min-height)));box-sizing:border-box;block-size:var(--lr-combobox-trigger-height,auto);padding:var(--lr-combobox-trigger-padding,var(--_lr-combobox-trigger-padding));border:var(--lr-border-width-thin) solid var(--lr-combobox-border-color,var(--_lr-combobox-border-color));border-radius:var(--lr-combobox-radius,var(--_lr-combobox-radius));background:var(--lr-combobox-fill,var(--_lr-combobox-fill));color:var(--lr-combobox-color,var(--_lr-combobox-text-color));font-size:var(--lr-combobox-font-size,var(--_lr-combobox-font-size));cursor:text}[part=combobox]{${Ze}}@media (prefers-reduced-motion:reduce){:host{--_lr-form-control-transition:none}}[part=combobox]:focus-within{border-color:var(--lr-combobox-open-border-color,var(--lr-color-brand));outline:var(--lr-border-width-medium) solid transparent;${Je}}:host(:disabled) [part=combobox]{${X}}[part=start],[part=end]{flex:0 0 auto;display:inline-flex;align-items:center;color:var(--lr-color-text-quiet)}.control-contents{display:contents}[part=start][hidden],[part=end][hidden]{display:none}[part=tags]{display:contents}[part~=tag]{display:inline-flex;min-inline-size:0;max-inline-size:min(100%,var(--tag-max-size,var(--lr-size-12rem)));align-items:center;gap:var(--lr-space-xs);padding:var(--lr-combobox-tag-padding,var(--_lr-combobox-tag-padding));font-size:var(--lr-combobox-tag-font-size,var(--_lr-combobox-tag-font-size));background:var(--lr-combobox-tag-bg,var(--lr-color-brand-quiet));color:var(--lr-combobox-tag-color,var(--lr-color-text));border-radius:var(--lr-combobox-tag-radius,var(--lr-radius))}[part~=tag-overflow]{color:var(--lr-color-text-quiet);white-space:nowrap}[part=tag-label]{min-inline-size:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[part=combobox-input][data-unknown-value]{font-style:italic}[part=tag][data-unknown-value] [part=tag__content]{font-style:italic}[part=tag][data-unknown-value]{border:var(--lr-border-width-thin) var(--lr-combobox-unknown-value-border-style,dashed) var(--lr-combobox-unknown-value-border-color,var(--lr-color-border))}[part~=option][data-unknown-value] [part=option-label]{font-style:italic}[part~=option][data-unknown-value]{border:var(--lr-border-width-thin) var(--lr-combobox-unknown-value-border-style,dashed) var(--lr-combobox-unknown-value-border-color,var(--lr-color-border))}[part=unknown-value]{flex:0 0 auto;margin-inline-start:var(--lr-space-2xs);font-size:var(--lr-size-0-6875rem);font-style:normal;font-weight:var(--lr-font-weight-normal);color:var(--lr-color-text-quiet);white-space:nowrap}[part~=tag__remove-button]{display:inline-flex;align-items:center;justify-content:center;${ye} margin:calc((var(--lr-icon-button-size) - var(--lr-size-1rem)) / -2);border:none;background:none;cursor:pointer;color:inherit;padding:0;font:inherit;line-height:var(--lr-line-height-none);font-size:var(--lr-font-size-m);${_e}}[part=combobox-input]{flex:1 1 var(--lr-size-6ch);min-inline-size:var(--lr-size-4ch);padding-block:0;border:none;outline:none;background:transparent;color:inherit;font:inherit}[part=combobox-input]::placeholder{color:var(--lr-color-text-quiet)}[part=clear-button],[part=expand-icon]{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;border:none;background:none;cursor:pointer;color:var(--lr-color-text-quiet);padding:var(--lr-space-xs);line-height:var(--lr-line-height-none)}[part=expand-icon]{box-sizing:border-box;min-inline-size:min(var(--lr-icon-button-size),var(--lr-combobox-expand-size,var(--_lr-combobox-expand-size)));min-block-size:min(var(--lr-icon-button-size),var(--lr-combobox-expand-size,var(--_lr-combobox-expand-size)));padding:0}[part=clear-button]{font:inherit;min-inline-size:max(var(--lr-size-24px),min(var(--lr-icon-button-size),var(--lr-form-control-height)));min-block-size:max(var(--lr-size-24px),min(var(--lr-icon-button-size),var(--lr-form-control-height)));line-height:var(--lr-line-height-none)}[part=expand-icon] svg{transform:rotate(90deg)}[part=spinner]{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;inline-size:var(--lr-size-1em);block-size:var(--lr-size-1em);color:var(--lr-color-text-quiet);animation:lr-combobox-spin var(--lr-duration-ambient) var(--lr-easing-linear) infinite}[part=spinner] svg{inline-size:100%;block-size:100%}@keyframes lr-combobox-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){[part=spinner]{animation:none}}[part=clear-button]:hover{color:var(--lr-color-text)}[part=clear-button]:active{background: ${K("var(--lr-color-surface)")};border-radius:var(--lr-radius)}[part~=tag__remove-button]:hover{background:color-mix(in srgb,currentColor 16%,transparent)}[part~=tag__remove-button]:active{background: ${we("currentColor")}}[part=clear-button]:focus-visible,[part~=tag__remove-button]:focus-visible{${xe}}[part=listbox][hidden]{display:none}[part=listbox]{position:fixed;z-index:var(--lr-overlay-stack-index,var(--lr-layer-dropdown));box-sizing:border-box;max-block-size:min(var(--lr-size-18rem),var(--lr-positioner-available-block-size,var(--lr-size-18rem)));overflow-y:auto;overflow-x:hidden;scrollbar-width:var(--lr-theme-scrollbar-width,auto);scrollbar-gutter:var(--lr-theme-scrollbar-gutter,auto);scrollbar-color:var(--lr-theme-scrollbar-color,auto);inline-size:max-content;padding:var(--lr-space-xs);${Et} ${Vt} box-shadow:var(--lr-overlay-shadow-anchored,var(--lr-shadow-m));visibility:hidden;opacity:0;transform:translateY(var(--lr-size-neg-0-25rem));transition:opacity var(--hide-duration,var(--lr-transition-fast)),transform var(--hide-duration,var(--lr-transition-fast)),visibility var(--hide-duration,var(--lr-transition-fast))}:host(:not([sync=width]):not([sync=both])) [part=listbox]{min-inline-size:min(var(--lr-size-12rem),var(--lr-positioner-available-inline-size,var(--lr-size-12rem)));max-inline-size:min(var(--lr-popover-viewport-clamp),var(--lr-size-28rem),var(--lr-positioner-available-inline-size,100vw))}:host([sync=width]) [part=listbox],:host([sync=both]) [part=listbox]{max-inline-size:var(--lr-positioner-available-inline-size,100vw)}[part=option],.group-label,.loading,.empty,.source-error{min-inline-size:0;overflow-wrap:anywhere}:host([open]) [part=listbox][data-positioned]{visibility:visible;opacity:1;transform:translateY(0);transition-duration:var(--_lr-motion-duration,var(--show-duration,var(--lr-transition-fast)))}@media (prefers-reduced-motion:reduce){[part=listbox]{transition:none!important}}[part=option]{display:flex;align-items:center;gap:var(--lr-space-xs);inline-size:100%;padding:var(--lr-space-xs) var(--lr-space-s);border:var(--lr-border-width-thin) solid transparent;border-radius:var(--lr-radius);background:none;color:inherit;font:inherit;text-align:start;cursor:pointer}[part=option][aria-selected=true]{background:var(--lr-combobox-option-selected-bg,transparent);border-color:var(--lr-combobox-option-selected-border-color,var(--lr-color-brand));color:var(--lr-combobox-option-selected-color,var(--lr-color-brand));font-weight:var(--lr-combobox-option-selected-font-weight,var(--lr-font-weight-semibold))}[part=option]:where(:not([aria-disabled=true])):hover,[part=option][data-active]{background:var(--lr-combobox-option-active-bg,var(--lr-color-brand-quiet))}[part=option]:where(:not([aria-disabled=true])):active{background: ${K("var(--lr-combobox-option-active-bg, var(--lr-color-brand-quiet))")}}[part=option][aria-disabled=true]{${X}}[part=option-dot]{inline-size:var(--lr-size-0-5rem);block-size:var(--lr-size-0-5rem);border-radius:50%;flex:0 0 auto}[part=option-icon]{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;color:var(--lr-color-text-quiet)}[part=option-start],[part=option-end]{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;max-inline-size:40%;overflow:hidden}[part=option-start]>*,[part=option-end]>*{min-inline-size:0;max-inline-size:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[part=option-label]{display:flex;flex-direction:column;flex:1 1 auto;min-inline-size:0}[part=option-sub]{font-size:var(--lr-font-size-xs);color:var(--lr-color-text-quiet)}[part=option-badge]{flex:0 0 auto;padding:0 var(--lr-space-xs);border-radius:var(--lr-radius-pill);background:var(--lr-combobox-option-badge-bg,var(--lr-color-brand-quiet));color:var(--lr-color-text);font-size:var(--lr-font-size-xs)}[part=option-overflow],[part=option-html-fallback],.loading{padding:var(--lr-space-s) var(--lr-space-m);font-size:var(--lr-font-size-sm);color:var(--lr-color-text-quiet)}.group-label{padding:var(--lr-space-xs) var(--lr-space-s) 0;font-size:var(--lr-size-0-6875rem);font-weight:var(--lr-font-weight-bold);text-transform:uppercase;letter-spacing:var(--lr-size-0-04em);color:var(--lr-color-text-quiet)}.empty{padding:var(--lr-space-m);color:var(--lr-color-text-quiet);font-size:var(--lr-font-size-md-sm)}[part=source-error-row]{padding:var(--lr-space-xs) var(--lr-space-s)}${Jt} [part=form-control],[part=form-control-label],[part~=hint],[part=error]{${tt}}${kt} ${At} ${qt('[part="listbox"]',L`var(--lr-overlay-surface, var(--_lr-overlay-surface, var(--lr-color-surface-container-high)))`,void 0,!0)} ${$e} ${et(L`[part="combobox"]`)} ${Ke(L`[part="combobox-input"]`)} `;He();var ri=Z(["value","text"],"value"),ni=Z(["accent","filled","outlined","filled-outlined","plain"],"outlined"),di={...ee,fromAttribute:(d,e)=>d===null?void 0:ee.fromAttribute?.(d,e)};function ii(d){return typeof d=="string"||typeof d=="number"?v`<span>${d}</span>`:d}var ai=2e3,li=25e4,M=4096,oi=1e3,ui=li*4;function pi(d){return typeof d=="object"&&d!==null&&d.nodeType===1&&typeof d.getAttribute=="function"}function si(d){let e=d.label,t=typeof e=="string"&&e!==""?e:d.getAttribute("label")??(d.textContent??"").trim(),i=d.getAttribute("value")??"";return{value:i,label:t||i,...d.hasAttribute("disabled")?{disabled:!0}:{}}}function mi(d,e){if(typeof d=="string"){if(d.length>ui)throw new TypeError("Combobox dataSource markup exceeds the size limit");let t=new e.DOMParser().parseFromString(d,"text/html");return Array.from(t.body.children).filter(i=>i.localName==="option"||i.localName.endsWith("-option")).map(si)}return Array.isArray(d)?d.map(t=>pi(t)?si(t):t):d}function ci(d,e=!1){if(typeof d=="string"||typeof d=="number")return!0;if(typeof d!="object"||d===null)return!1;if(Array.isArray(d))return!e&&d.every(s=>ci(s,!0));let{nodeType:t,cloneNode:i,strings:o}=d;return typeof t=="number"&&typeof i=="function"||Array.isArray(o)&&Object.hasOwn(o,"raw")}function bi(d){let e,t;try{Array.isArray(d)?e=d:typeof d=="object"&&d!==null&&(e=d.rows,t=d.total)}catch{throw new TypeError("Invalid combobox source result")}if(!Array.isArray(e))throw new TypeError("Invalid combobox source result");let i=typeof t=="number"&&Number.isFinite(t)&&t>=0?Math.trunc(t):e.length,o=[],s=0,r=Math.min(e.length,ai);for(let l=0;l<r;l++)try{let n=e[l]?.value,m=e[l]?.label;if(typeof n!="string"||typeof m!="string"||n.length>M||m.length>M)continue;let b=e[l],p=W=>{let z=b[W];return typeof z=="string"&&z.length<=M?z:void 0},w=W=>{let z=b[W];return ci(z)?z:void 0},C=w("icon"),q=w("start"),k=w("end"),x=p("sub"),R=p("html"),B=p("accessibleLabel"),H=p("dotColor"),Q=p("title"),N=p("group"),A=b.badge,D=typeof A=="string"&&A.length<=M||typeof A=="number"&&Number.isFinite(A)?A:void 0,ae=n.length+m.length+(x?.length??0)+(R?.length??0)+(B?.length??0)+(H?.length??0)+(Q?.length??0)+(N?.length??0)+(typeof D=="string"?D.length:0);if(s+ae>li)break;s+=ae,o.push({value:n,label:m,...x===void 0?{}:{sub:x},...R===void 0?{}:{html:R},...C===void 0?{}:{icon:C},...q===void 0?{}:{start:q},...k===void 0?{}:{end:k},...D===void 0?{}:{badge:D},...B===void 0?{}:{accessibleLabel:B},...b.data===void 0?{}:{data:b.data},...H===void 0?{}:{dotColor:H},...Q===void 0?{}:{title:Q},...N===void 0?{}:{group:N},...typeof b.disabled=="boolean"?{disabled:b.disabled}:{}})}catch{}let h=Math.max(i,e.length);return{rows:o,total:h,truncated:h>o.length}}var a=class extends Ye{static{this.defaultStrings={...super.defaultStrings,clear:Re,comboboxCreate:Ft,comboboxLabel:Pt,comboboxLoadError:Ut,comboboxOverflow:Mt,comboboxRequired:Bt,comboboxRichContentUnavailable:Ht,comboboxSelectedOverflow:Qt,fieldRequired:Ce,loading:Oe,noData:ze,noMatches:qe,notInCatalog:ke,removeWithContext:Ae,retry:Le,tableLoadFailed:Te,valueInvalid:Ve}}static{this.collectionSupport=he}static{this.immutableEventDetails=Object.freeze(["lr-input","lr-change","lr-change-request"])}static{this.identityEventDetailCollectionItems=Object.freeze({"lr-input":Object.freeze(["data"]),"lr-change":Object.freeze(["data"]),"lr-change-request":Object.freeze(["data"])})}static{this.formAssociated=!0}static{this.styles=[be.styles,ge,ti,fe]}static{this.properties={customError:{attribute:"custom-error",reflect:!0,noAccessor:!0},multiple:{type:Boolean,reflect:!0,noAccessor:!0},disabled:{type:Boolean,reflect:!0,noAccessor:!0},required:{type:Boolean,reflect:!0,noAccessor:!0},readonly:{type:Boolean,reflect:!0,noAccessor:!0},value:{noAccessor:!0},defaultValue:{attribute:"default-value",noAccessor:!0},name:{reflect:!0,noAccessor:!0,converter:Ie},maxOptionsVisible:{converter:O(3),attribute:"max-options-visible",noAccessor:!0},maxRender:{converter:O(200),attribute:"max-render",noAccessor:!0},sourceDelay:{converter:O(200),attribute:"source-delay",noAccessor:!0},filterDebounce:{converter:O(200),attribute:"filter-debounce",noAccessor:!0},minQueryLength:{converter:O(0),attribute:"min-query-length",noAccessor:!0}}}get open(){return this._open}set open(e){let t=this._open;if(this._open=!!e&&!this.readonly&&!f(this)&&this.meetsMinimumQuery(this.query),this._open===t){e&&!this._open&&this.hasAttribute("open")&&this.removeAttribute("open");return}this.requestUpdate("open",t)}get commit(){return this._commit}set commit(e){let t=ri.normalizeReflected(this,"commit",e),i=this._commit;i!==t&&(this._commit=t,this.commitsText&&this._selected.includes("")&&this.setValue([],!1),this.requestUpdate("commit",i))}get appearance(){return this._appearance}set appearance(e){let t=ni.normalizeReflected(this,"appearance",e),i=this._appearance;this._appearance=t,t!==i&&this.requestUpdate("appearance",i)}get positioningStrategy(){return this.strategy.value}set positioningStrategy(e){this.strategy.set(e)}get dataSource(){return this.dataSourceAdapter!==null&&this.source===this.dataSourceAdapter?this._dataSource:null}set dataSource(e){if(typeof e!="function"){this.dataSourceAdapter!==null&&this.source===this.dataSourceAdapter&&(this.source=null),this._dataSource=null,this.dataSourceAdapter=null;return}let t=e,i=(o,{signal:s})=>{let r=this.ownerDocument.defaultView??window;return Promise.resolve(t({query:o,signal:s})).then(h=>mi(h,r))};this._dataSource=t,this.dataSourceAdapter=i,this.source=i}get currentOption(){if(!this.open||this.activeIndex<0||!this.listboxRendered)return;let e=this.navigableRows(this.renderedRows.rows)[this.activeIndex];return e&&!e.createInput&&e.unknownValue===void 0?this.sourceOptionsByRow.get(e):void 0}set currentOption(e){let t=this.open&&this.listboxRendered&&e?this.navigableRows(this.renderedRows.rows):[];this.activeIndex=t.findIndex(i=>this.sourceOptionsByRow.get(i)===e)}get serverRequests(){return this.server&&!this.source}get autocorrect(){return this.autocorrectState.value}set autocorrect(e){this.autocorrectState.set(e)}get inputValue(){return this.query}set inputValue(e){this.explicitInputValue=!0,this.query=e??"",this.activeIndex=-1,(this.source||this.serverRequests)&&this.runSource(this.query),this.requestUpdate()}get query(){return this._query}set query(e){let t=this._query;e!==t&&(this._query=e,this.requestUpdate("query",t),this.enforceMinimumQuery(!0))}constructor(){super(),this.placeholder="",this.label="",this.labelDisplay="visible",this.labelPlacement="top",this.hint="",this.helpText="",this.errorText="",this.allowCreate=!1,this.allowCustomValue=!1,this._commit="value",this.withUnknownOption=!1,this.loading=!1,this._appearance="outlined",this.placement="bottom",this.strategy=new vt(this,"fixed"),this.topLayer=!1,this.size="m",this.pill=!1,this.clearable=!1,this.withClear=!1,this.withLabel=!1,this.withHint=!1,this.validators=[],this.autocomplete="off",this.inputMode="",this.enterKeyHint="",this.spellcheck=!1,this.autocapitalize="",this.autocorrectState=new jt(this,!0),this.filter=null,this.source=null,this._dataSource=null,this.dataSourceAdapter=null,this.server=!1,this._query="",this.explicitInputValue=!1,this.textEdited=!1,this.activeIndex=-1,this.options=[],this.optionsObserved=!1,this.touched=!1,this.validityRevision=0,this.slotPresence=new Dt(this),this.sourceLoading=!1,this.sourceFailed=!1,this.sourceEverSettled=!1,this.asyncRows=[],this._sourceTotal=0,this._sourceTruncated=!1,this.sourceErrorAnnouncements=new Ue(this,{eager:["assertive"]}),this.rowHtml=new Map,this.rowHtmlUnavailable=!1,this.sourceDebounce=new zt(0,e=>this.runSourceRequest(e),()=>this.ownerDocument.defaultView),this.sourceToken=0,this.refreshQueued=!1,this._sourceWarmed=!1,this._selectedLabelCache=new Map,this._selectedRowCache=new Map,this._renderedRows=[],this._open=!1,this._fieldsetDisabled=!1,this.listId=Y("combobox-list"),this.inputId=Y("combobox-input"),this.listboxPositioned=!1,this.positioningGeneration=0,this.positioningReady=Promise.resolve(!1),this.restoreFocusOnClose=!0,this.restoringOverlayFocus=!1,this.popupController=new Ct({host:this,popup:()=>this.renderRoot.querySelector('[part="listbox"]'),emit:(e,t)=>P(this,e,t),onPointer:Rt(this,{overlay:()=>this.overlayHandle,dismiss:()=>{this.restoreFocusOnClose=!1,this.hide()}})}),this.listboxHidden=!0,this.listboxRendered=!1,this._isFirstUpdate=!0,this.openVetoed=!1,this.closeAfterPositioningFailure=!1,this.minimumQueryClosePending=!1,this.minimumQueryCloseUnpainted=!1,this.closeCleanupPending=!1,this._selected=[],this.multiplePreferences=[],this.sourceOptionsByRow=new WeakMap,this._valueDirty=!1,this._multiple=!1,this._disabled=!1,this._required=!1,this._readonly=!1,this._defaultSelected=[],this._defaultCaptured=!1,this.explicitDefault=!1,this._restoredStateActive=!1,this._name="",this._maxOptionsVisible=3,this._maxRender=200,this._sourceDelay=200,this._minQueryLength=0,this.localDescriptionIds="",this.selectionGuard=new nt,this.requestingSelection=!1,this.previousSelection=[],this.loadingRowShown=!1,this.markInteracted=()=>{this.touched||(this.touched=!0,this.updateValidity(),this.syncCustomStates())},this.collectOptions=e=>{this.collectOptionsFromSlot(e.target)},this.callbackRefreshEpoch=0,this.memo=new gt,this.adornments=new yt,this.selectedWrites=new xt(e=>{if(!this.isConnected)return;let t=this.optionIndex.members;if(this.multiple){let i=_t(this._selected,this.multipleOccurrences,e,o=>t.has(o));this.setValue(i.values,!0,void 0,i.occurrences)}else{let{value:i,option:o}=wt({value:this._selected[0],option:this.singleSelectedOption},e,s=>t.has(s));this.setValue(i===void 0?[]:i,!0,o)}}),this.optionRefreshPending=!1,this.onOptionChange=e=>{e.stopPropagation();let t=e.composedPath().find(S);if(st(e)&&S(t)&&this.optionIndex.members.has(t)){this._valueDirty=!0,this._restoredStateActive=!1,E(this.selectionGuard),this.selectedWrites.record(t,{selected:t.selected,value:t.value});return}S(t)&&this.adornments.refresh(t),!this.optionRefreshPending&&(this.optionRefreshPending=!0,queueMicrotask(()=>{this.optionRefreshPending=!1,this.refreshOptionDefaults(),this.reflectSelected(),this.options=[...this.options],this.normalizeActiveIndex()}))},this.lastRenderedRows=[],this.onInput=e=>{f(this)||this.readonly||(this.explicitInputValue=!1,this.textEdited=this.commitsText,this.query=e.target.value,this.activeIndex=-1,this.show(),(this.source||this.serverRequests)&&this.runSource(this.query),this.emit("lr-filter",{value:this.query}))},this.onInputBlur=e=>{f(this)||(this.touched=!0),this.syncCustomStates(),this.onComboFocusOut(e),te(this,e)},this.onComboFocusOut=e=>{let t=this.renderRoot.querySelector('[part="combobox"]'),i=e.relatedTarget;i&&typeof i.nodeType=="number"&&t?.contains(i)||(this.restoreFocusOnClose=!1,this.commitsText&&this.textEdited&&!f(this)&&!this.readonly&&this.commitText(this.query),this.hide())},this.onInputFocus=e=>{if(f(this)){e.stopPropagation();return}this.restoringOverlayFocus||this.show(),te(this,e)},this.onKeyDown=e=>{if(e.defaultPrevented||le(e)||f(this)||this.readonly)return;let t=["ArrowDown","ArrowUp","Enter","End"].includes(e.key)?this.navigableRows(this.renderedRows.rows):[];switch(e.key){case"ArrowDown":case"ArrowUp":if(!this.meetsMinimumQuery(this.query))return;if(e.preventDefault(),!this.open){let i=new Set(this.committed);this.activeIndex=t.findIndex(o=>i.has(o.value)),this.show();return}if(e.key==="ArrowDown"){this.activeIndex=Math.min(t.length-1,this.activeIndex+1);break}this.activeIndex=Math.max(0,this.activeIndex-1);break;case"Enter":{let i=t[this.activeIndex];if(this.open&&this.activeIndex>=0&&i){e.preventDefault(),this.pickRow(i);break}if(this.commitsText&&this.textEdited){let s=this.open;if(this.commitText(this.query),s){e.preventDefault();break}}let o=this.createRow;if(this.open&&o){e.preventDefault(),this.createOption(o.createInput);break}if(this.open&&this.allowCustomValue&&!this.multiple&&this.query.trim()){e.preventDefault(),this.commitCustomValue(this.query.trim());break}Yt(this,e);break}case"Escape":this.open&&(!this.overlayHandle?.isActive()||this.overlayHandle.isTopmost())&&(e.preventDefault(),this.hide());break;case"Home":this.open&&(e.preventDefault(),this.activeIndex=0);break;case"End":this.open&&(e.preventDefault(),this.activeIndex=t.length-1);break;case"Backspace":this.multiple&&!this.query&&this._selected.length&&this.removeValueAt(this._selected.length-1);break}},this.onComboMouseDown=e=>{if(!f(this)){if(e.composedPath()[0]===this.inputEl){this.renderRoot.activeElement===this.inputEl&&!this.open&&!this.readonly&&this.show();return}e.target.closest("button")||(e.preventDefault(),this.inputEl?.focus(),this.show())}},this.onListboxMouseDown=e=>{e.preventDefault()},this.onListboxClick=e=>{let t=e.target.closest('[part="option"]'),i=this._renderedRows[Number(t?.dataset.index)];i&&this.pickRow(i)},this.requestUpdate("commit",void 0),this.validityController=new Ge(this,{invalid:e=>this.emit("lr-invalid",null,e),interacted:this.markInteracted,customError:()=>this.validityController.customValidityMessage}),this.internals=this.validityController.formInternals,new ct(this,'[part="listbox"]',()=>this.open)}get form(){return We(this.internals)}set form(e){Ne(this,e)}get validationTarget(){return this.validationTargetOverride??this.inputEl??void 0}set validationTarget(e){this.validationTargetOverride=e??void 0,this.validityController.refreshAnchor()}resetValidity(){this.validityController.setCustomValidity(""),this.updateValidity()}get input(){return this.inputEl??null}get selectionStart(){return this.inputEl?.selectionStart??null}set selectionStart(e){this.inputEl&&(this.inputEl.selectionStart=e)}get selectionEnd(){return this.inputEl?.selectionEnd??null}set selectionEnd(e){this.inputEl&&(this.inputEl.selectionEnd=e)}get selectionDirection(){return this.inputEl?.selectionDirection}set selectionDirection(e){this.inputEl&&(this.inputEl.selectionDirection=e)}get interactionBarred(){return f(this)||this.readonly}focus(e){this.deferFocusUntilRendered(e)||f(this)||this.inputEl?.focus(e)}blur(){this.inputEl?.blur()}click(){f(this)||(this.inputEl?.focus(),this.show())}select(){this.input?.select()}setSelectionRange(e,t,i="none"){this.input?.setSelectionRange(e,t,i)}setRangeText(e,t,i,o){let s=this.inputEl;s&&(Nt(s,e,t,i,o),this.explicitInputValue=!0,this.query=s.value,this.activeIndex=-1,(this.source||this.serverRequests)&&this.runSource(this.query))}[Qe](){return this.validationTarget}syncExternalDescription(){if(!this.isConnected)return;let e=this.renderRoot.querySelector('[part="combobox-input"]');e&&(this.externalDescriptionLease?this.externalDescriptionLease.update(e):this.externalDescriptionLease=ht(this,e,()=>this.localDescriptionIds))}releaseExternalDescription(){this.externalDescriptionLease?.release(),this.externalDescriptionLease=void 0}connectedCallback(){super.connectedCallback(),this.hasUpdated&&this.syncExternalDescription(),this.updateValidity(),this.hasUpdated&&this.syncValidatorAttributeObserver(),this.hasUpdated&&queueMicrotask(()=>{this.open?this.reconnectOpenPopup():this.source&&this._selected.length&&this.asyncRows.length===0&&this.runSource("")})}adoptedCallback(){super.adoptedCallback(),this.popupController.cancel(),this.releaseExternalDescription(),this.hasUpdated&&this.syncExternalDescription(),this.listboxPositioned=!1,this.invalidateListboxPositioning(),this.overlayHandle?.deactivate({restoreFocus:!1}),this.overlayHandle=void 0,this.popupController.unbindPointer(),this.clearSourceTimer(),this.sourceToken+=1,this.sourceLoading=!1,this.sourceAbort?.abort(),this.sourceAbort=void 0,this.sourceErrorAnnouncements.adopted()}willUpdate(e){super.willUpdate(e),this._isFirstUpdate=!this.hasUpdated,this.enforceMinimumQuery(!1),this.announceOpenTransition(e),this.open?(this.listboxHidden=!1,this.listboxRendered=!0):e.has("open")&&this.interactionBarred&&(this.listboxHidden=!0),e.has("open")&&!this.openVetoed&&(this.listboxPositioned=!1),e.has("open")&&this.openVetoed?this.closeCleanupPending=!1:e.has("open")&&!this.open&&this.finalizeCloseState(),e.has("server")&&!this.source&&e.get("server")!==void 0&&(this.clearSourceTimer(),this.sourceAbort?.abort(),this.sourceAbort=void 0,this.sourceToken++),e.has("source")&&(this.clearSourceTimer(),this.sourceAbort?.abort(),this.sourceAbort=void 0,this.sourceToken++,this.sourceLoading=!1,this.sourceFailed=!1,this.sourceEverSettled=!1,this.asyncRows=[],this.multiplePreferences=[],this._sourceTotal=0,this._sourceTruncated=!1,this.activeIndex=-1,this._sourceWarmed=!1,this.source&&this.open&&this.runSource(this.query)),!this._sourceWarmed&&this.source&&(this._selected.length>0||(this.pendingSelectedRowValues?.length??0)>0)&&this.asyncRows.length===0&&(this._sourceWarmed=!0,this.runSource(""))}firstUpdated(e){super.firstUpdated(e);let t=this.optionsSlot;queueMicrotask(()=>{de(t,i=>{this.optionsObserved=!0,i.assignedElements({flatten:!0}).some(S)&&this.collectOptionsFromSlot(i)})})}get name(){return this._name}set name(e){let t=this._name;this._name=e??"",je(this,this._name),this.syncFormValue(),this.requestUpdate("name",t)}get multiple(){return this._multiple}set multiple(e){let t=this._multiple;this._multiple=!!e,this.toggleAttribute("multiple",this._multiple),this.reflectSelected(),this.syncFormValue(),this.requestUpdate("multiple",t)}get disabled(){return this._disabled}set disabled(e){let t=this._disabled;this._disabled=!!e,this.toggleAttribute("disabled",this._disabled),this._fieldsetDisabled=this.validityController?.fieldsetDisabled(this._fieldsetDisabled)??this._fieldsetDisabled,this._disabled&&this.hide(),this.updateValidity(),this.requestUpdate("disabled",t)}get required(){return this._required}set required(e){let t=this._required;this._required=!!e,this.toggleAttribute("required",this._required),this.updateValidity(),this.requestUpdate("required",t)}get readonly(){return this._readonly}set readonly(e){let t=this._readonly;this._readonly=!!e,this.toggleAttribute("readonly",this._readonly),this._readonly&&this.hide(),this.updateValidity(),this.requestUpdate("readonly",t)}get value(){return this.multiple?[...this._selected]:this._selected[0]??""}set value(e){this.setValue(e,!0)}get defaultValue(){return this.multiple?[...this._defaultSelected]:this._defaultSelected[0]??""}set defaultValue(e){let t=this.defaultValue;this.explicitDefault=!0;let i=se(e);this._defaultSelected=this.multiple?i:i.slice(0,1),!this._valueDirty&&!this._restoredStateActive&&this.setValue(this._defaultSelected,!1),this.requestUpdate("defaultValue",t)}setValue(e,t,i,o=[]){E(this.selectionGuard),this.selectedWrites.clear();let s=this._selected;this.previousSelection=s,this.singleSelectedOption=i,t&&(this._restoredStateActive=!1,this._valueDirty=!0);let r=se(e);this._selected=this.commitsText?r.filter(l=>l!==""):r,this.multiplePreferences=o;let h=new Set(this._selected);if(h.size>0){let l=this.rowsByValue(h);for(let n of h){let m=l.get(n);m&&this._selectedRowCache.set(n,m)}}for(let l of this._selectedRowCache.keys())h.has(l)||this._selectedRowCache.delete(l);for(let l of this._selectedLabelCache.keys())h.has(l)||this._selectedLabelCache.delete(l);this.syncFormValue(),this.reflectSelected(),this.updateValidity(),this.requestUpdate("value",s)}get maxOptionsVisible(){return this._maxOptionsVisible}set maxOptionsVisible(e){let t=this._maxOptionsVisible;this._maxOptionsVisible=T(e,3),this.requestUpdate("maxOptionsVisible",t)}get maxRender(){return this._maxRender}get sourceDelay(){return this._sourceDelay}set sourceDelay(e){let t=this._sourceDelay;this._sourceDelay=me(e,200),this.requestUpdate("sourceDelay",t)}get filterDebounce(){return this.sourceDelay}set filterDebounce(e){this.sourceDelay=e}get minQueryLength(){return this._minQueryLength}set minQueryLength(e){let t=this._minQueryLength;this._minQueryLength=T(e),this.enforceMinimumQuery(this.open||this.explicitInputValue),this.requestUpdate("minQueryLength",t)}meetsMinimumQuery(e){let t=this._minQueryLength??0;if(t===0)return!0;let i=e.trim(),o=0;for(let s=0;s<i.length;s+=i.codePointAt(s)>65535?2:1)if(++o>=t)return!0;return!1}enforceMinimumQuery(e){if(this.meetsMinimumQuery(this.query))return;this.clearSourceTimer();let t=this.sourceAbort;this.sourceAbort=void 0;let i=++this.sourceToken;this.refreshQueued=!1,this.sourceLoading=!1,this.sourceFailed=!1,this.asyncRows.length&&(this.asyncRows=[]),this._sourceTotal=0,this._sourceTruncated=!1,this.activeIndex=-1,t?.abort(),!(i!==this.sourceToken||this.meetsMinimumQuery(this.query))&&(this.closeCleanupPending=!1,e&&(this.explicitInputValue=!0),this.minimumQueryClosePending||=this.open,this.open=!1,this.listboxHidden=!0,this.listboxRendered=!1,this.listboxPositioned=!1,this.popupController.cancel())}set maxRender(e){let t=this._maxRender;this._maxRender=Math.min(T(e,200),oi),this.requestUpdate("maxRender",t)}get sourceTotal(){return this._sourceTotal}get sourceTruncated(){return this._sourceTruncated}get selectedRows(){return this.resolveSelectedRowSlots().filter(e=>e!=null).map(e=>{let t=this.sourceOptionsByRow.get(e);return{...e,...t?this.adornments.get(t):{}}})}resolveSelectedRowSlots(e=this.committed,t){if(e===this._selected&&this.multiple&&t===void 0)return this.multipleOccurrences.map((o,s)=>this.rowForOccurrence(o,e[s]));let i;return e.map(o=>t?.value===o?t:!this.source&&!this.multiple&&this.singleSelectedOption?.value===o?this.rowForOption(this.singleSelectedOption,!1):this._selectedRowCache.get(o)??(i??=this.rowsByValue(new Set(e))).get(o))}get multipleOccurrences(){let e=this.source?this.asyncRows:this.options;return this.memo.get("multipleOccurrences",[e,this._selected,this.multiplePreferences],()=>{if(!this._selected.length)return[];let t=new Set(this._selected),i=new St(e,s=>s.value,{accept:s=>t.has(s)}),o=this._selected.map((s,r)=>{let h=this.multiplePreferences[r];if(h?.value!==s)return;if(i.claim(h))return h;if(!this.source||S(h))return;let l=i.remaining(s).find(n=>n.label===h.label&&Object.is(n.data,h.data));return l&&i.claim(l),l??h});return this._selected.map((s,r)=>o[r]??i.take(s))})}rowForOccurrence(e,t){return S(e)?this.rowForOption(e,!1):e??this._selectedRowCache.get(t)}get committed(){return this.multiple?this._selected:this._selected.slice(0,1)}rowsByValue(e){let t=this.source?new Map:this.localRowsByValue(e,this.options);for(let i of this.asyncRows)e.has(i.value)&&!t.has(i.value)&&t.set(i.value,i);return t}localRowsByValue(e,t){let i=new Map;if(e.size===0)return i;for(let o of t){let s=o.value;e.has(s)&&!i.has(s)&&i.set(s,this.rowForOption(o,!1))}return i}set selectedRows(e){E(this.selectionGuard);let t=[],i=new Set;if(Array.isArray(e))for(let o of e){let s;try{s=o?.value}catch{continue}typeof s!="string"||i.has(s)||(i.add(s),t.push(s))}if(t.length>0&&!this.hasSelectionSourceRows){this.pendingSelectedRowValues=t,this.source&&this.isConnected&&(this._sourceWarmed=!0,this.runSource(""));return}this.pendingSelectedRowValues=void 0,this.applySelectedRowValues(t)}get barredFromValidation(){return It(this,this.internals)}syncValidatorAttributeObserver(){this.validatorAttributeObserver?.(),this.validatorAttributeObserver=this.isConnected?Be(this,this.validators,()=>{this.updateValidity(),this.validityRevision++}):void 0}updateValidity(){if(this.barredFromValidation){this.validityController.setValidity({}),this.syncCustomStates();return}let e={},t="";this.required&&this._selected.length===0&&(e.valueMissing=!0,t=()=>this.localize("comboboxRequired"));let i=Me(this.validators,this.value,this,()=>this.localize("valueInvalid"));i.flags&&Object.assign(e,i.flags),i.message&&(t=i.message),this.validityController.setValidity(e,t),this.syncCustomStates()}syncCustomStates(){Se(this.internals,{required:this.required,hasInteracted:this.touched,barred:this.barredFromValidation}),V(this.internals,"blank",this._selected.length===0),V(this.internals,"disabled",this.effectiveDisabled),this.syncLoadingStates()}syncLoadingStates(){V(this.internals,"loading",this.loading||this.sourceLoading),V(this.internals,"showing-loading-row",this.loadingRowShown)}syncFormValue(){let e=JSON.stringify(this._selected);if(this.multiple){if(!this.name){this.internals.setFormValue(null,e);return}let t=new FormData;for(let i of this._selected)t.append(this.name,i);this.internals.setFormValue(t,e)}else this.internals.setFormValue(this._selected[0]??"",e)}get effectiveDisabled(){return this.disabled||this._fieldsetDisabled}formResetCallback(){this.touched=!1,this._restoredStateActive=!1,this._valueDirty=!1;let e=this.explicitDefault||this._defaultSelected.length>0?this._defaultSelected:this.options.filter(i=>F(i)).map(i=>i.value);this._defaultSelected.length===0&&e.length>0&&(this._defaultSelected=[...e]);let t=this.explicitDefault?[]:this.options.filter(i=>i.defaultSelected||F(i));this.setValue(this.multiple?e:e.slice(0,1),!1,t[0],t);for(let i of this.options)i[ot](i.selected);this.query="",this.explicitInputValue=!1,this.textEdited=!1}formStateRestoreCallback(e,t){let i=[];if(typeof e=="string")try{let o=JSON.parse(e);Array.isArray(o)&&o.every(s=>typeof s=="string")&&(i=o)}catch{}this.assignValue(this.multiple?i:i.slice(0,1)),this._restoredStateActive=!0}formDisabledCallback(e){if(this.validityController?.reflectingDisabled)return;let t=this.effectiveDisabled;this._fieldsetDisabled=e,t!==this.effectiveDisabled&&(e&&this.hide(),this.updateValidity(),this.requestUpdate())}checkValidity(){return this.validityController.checkValidity(()=>this.updateValidity())}reportValidity(){return this.validityController.reportValidity(()=>{this.touched=!0,this.updateValidity(),this.syncCustomStates()})}setCustomValidity(e){this.validityController.setCustomValidity(e??""),this.syncCustomStates()}disconnectedCallback(){E(this.selectionGuard),this.selectedWrites.clear(),this.listboxHidden=!0,this.releaseExternalDescription(),this.popupController.cancel(),this.listboxPositioned=!1,this.validatorAttributeObserver?.(),this.validatorAttributeObserver=void 0,super.disconnectedCallback(),this.invalidateListboxPositioning(),this.clearSourceTimer(),this.sourceToken+=1,this.sourceLoading=!1,this.sourceAbort?.abort(),this.sourceAbort=void 0,this.overlayHandle?.deactivate({restoreFocus:!1}),this.overlayHandle=void 0,this.popupController.unbindPointer(),this.open=!1}collectOptionsFromSlot(e){let t=new Set(this.options);if(this.optionsObserved=!0,this.options=e.assignedElements({flatten:!0}).filter(S),this.adornments.clear(),this.normalizeActiveIndex(),this.applyPendingSelectedRows(),this.explicitDefault){this.reflectSelected();return}if(this._defaultCaptured){let i=this.options.filter(r=>!t.has(r)&&r.defaultSelected),o=this.options.filter(r=>!t.has(r)&&r.selected&&!r.defaultSelected);this.refreshOptionDefaults();let s=this._restoredStateActive?[]:[...this._valueDirty?[]:i,...o];if(s.length){if(this.multiple){let r=this.multipleOccurrences,h=new Set(r),l=s.filter(n=>!h.has(n));this.setValue([...this._selected,...l.map(n=>n.value)],o.length>0,void 0,[...r,...l])}else{let r=s[s.length-1];this.setValue(r.value,o.length>0,r)}return}}else{this._defaultCaptured=!0;let i=this.options.filter(p=>p.defaultSelected),o=this.options.filter(p=>p.selected),s=this.multiple?i:i.slice(0,1),r=this.multiple?o:o.slice(0,1),h=this.options.filter(p=>F(p)),l=this.options.some(p=>re(p)),n=this.options.filter(p=>re(p)&&p.selected);this._defaultSelected=(s.length>0?s:h.length>0?h:r).map(p=>p.value);let m=s.length>0,b=l?this.multiple?o:n.length>0?n.slice(-1):r:m?s:r;if(b.length&&!this._restoredStateActive&&!this._valueDirty){this.setValue(b.map(p=>p.value),!m||l,b[0],b);return}l&&(this._valueDirty=!0)}this.reflectSelected()}refreshOptionDefaults(){if(this.explicitDefault)return;let e=this.options.filter(t=>t.defaultSelected);this._defaultSelected=(this.multiple?e:e.slice(0,1)).map(t=>t.value),!this._valueDirty&&!this._restoredStateActive&&this.setValue(this._defaultSelected,!1,e[0],e)}requestUpdate(...e){e[0]===void 0&&(this.callbackRefreshEpoch=(this.callbackRefreshEpoch??0)+1),super.requestUpdate(...e)}get selectedLabels(){return this.memo.get("selectedLabels",[this._selected,this.options,this.asyncRows,this.source,this.sourceEverSettled,this.optionsObserved,this.getUnknownLabel,this.loading,this.effectiveLocale,this.strings,this.callbackRefreshEpoch],()=>pe(this.effectiveLocale,{type:"unit"}).format(this._selected.map((e,t)=>this.labelFor(e,t))))}get optionIndex(){return this.memo.get("index",[this.options],()=>{let e=new Map;for(let t of this.options)e.has(t.value)||e.set(t.value,t);return{values:e,members:new Set(this.options)}})}get asyncIndex(){return this.memo.get("asyncIndex",[this.asyncRows],()=>{let e=new Map;for(let t of this.asyncRows)e.has(t.value)||e.set(t.value,t);return e})}get searchCorpus(){return this.memo.get("corpus",[this.options,this.effectiveLocale],()=>this.options.map(e=>({label:_(e.label,this.effectiveLocale),search:_(e.searchText,this.effectiveLocale),value:_(e.value,this.effectiveLocale)})))}reflectSelected(){let e=this._selected[0],t=this.multiplePreferences[0];!this.multiple&&S(t)&&t.value===e&&this.optionIndex.members.has(t)&&(this.singleSelectedOption=t),(!this.singleSelectedOption||!this.optionIndex.members.has(this.singleSelectedOption)||this.singleSelectedOption.value!==e)&&(this.singleSelectedOption=e===void 0?void 0:this.optionIndex.values.get(e));let i=this.multiple?new Set(this._selected):void 0;for(let o of this.options)o[it](i?i.has(o.value):o===this.singleSelectedOption)}labelFor(e,t){if(this.commitsText)return e;let i=o=>o!==void 0&&o.trim().length>0?o:void 0;if(this.getUnknownLabel&&this.isUnknownValue(e)){let o=i(this.getUnknownLabel(e));if(o!==void 0)return o}return(t===void 0?void 0:i(this.multipleOccurrences[t]?.label))??(!this.source&&!this.multiple&&this.singleSelectedOption?.value===e?i(this.singleSelectedOption.label):void 0)??i(this._selectedLabelCache.get(e))??i(this.optionIndex.values.get(e)?.label)??i(this.asyncIndex.get(e)?.label)??(this.loading||this.source&&!this.sourceEverSettled?this.statusText("loading",this.loadingText):void 0)??e}isUnknownValue(e){return this.commitsText||!this.source&&!this.optionsObserved||this.loading||this.source&&!this.sourceEverSettled?!1:!(!this.source&&!this.multiple&&this.singleSelectedOption?.value===e||this._selectedLabelCache.has(e)||this.optionIndex.values.has(e)||this.asyncIndex.has(e))}rowForOption(e,t=!0){let i=t?this.adornments.get(e):{},o={value:e.value,label:e.label||e.value,sub:e.sub||void 0,dotColor:e.dotColor||void 0,title:e.title||void 0,group:e.group||void 0,disabled:!$(e,this),data:e.data,...i.start===void 0?{}:{start:i.start},...i.end===void 0?{}:{end:i.end}};return this.sourceOptionsByRow.set(o,e),o}get hasSelectionSourceRows(){return(this.source?this.asyncRows.length:this.options.length)>0}applySelectedRowValues(e){let t=new Set(e),i=this.source?this.rowsByValue(t):this.localRowsByValue(t,this.options),o=e.map(r=>i.get(r)).filter(r=>r!==void 0),s=this.multiple?o:o.slice(0,1);this.assignValue(s.map(r=>r.value));for(let r of s)this._selectedRowCache.set(r.value,r)}applyPendingSelectedRows(e=!1){if(this.pendingSelectedRowValues===void 0||!e&&!this.hasSelectionSourceRows)return!1;let t=this.pendingSelectedRowValues;return this.pendingSelectedRowValues=void 0,this.applySelectedRowValues(t),!0}get unknownRows(){if(!this.withUnknownOption)return[];let e=this.effectiveLocale,t=oe(this.query,e);return this.committed.flatMap(i=>this.isUnknownValue(i)?[{value:i,label:this.labelFor(i),badge:this.localize("notInCatalog"),unknownValue:i}]:[]).filter(i=>!t||_(i.label,e).includes(t)||_(i.value,e).includes(t))}get createRow(){if(!this.allowCreate)return;let e=this.query.trim();if(!e)return;let t=this.effectiveLocale,i=_(e,t);if(!(this.source?this.memo.get("asyncExact",[this.asyncRows,t],()=>new Set(this.asyncRows.flatMap(o=>[_(o.value,t),_(o.label,t)]))).has(i):this.searchCorpus.some(o=>o.value===i||o.label===i)))return{value:e,label:this.localize("comboboxCreate",void 0,{value:e}),createInput:e}}capRows(e,t){let i=this.multiple?this.multipleOccurrences:void 0;return this.memo.get("capRows",[e,this.maxRender,this._selected,i,t],()=>{let o=new Set(this.committed),s=new Set(i),r=i?e.filter(l=>s.has(l)):e.filter(l=>o.has(l.value)),h=t===void 0?void 0:e.find(l=>l.value===t);return ne(e,this.maxRender,h?[h,...r]:r)})}navigableRows(e){return this.memo.get("navigableRows",[e],()=>e.filter(t=>!t.disabled))}get renderedRows(){let e=this.navigableRows(this.lastRenderedRows)[this.activeIndex]?.value,t=this.memo.get("renderedRows",[this.callbackRefreshEpoch,this.options,this.asyncRows,this.source,this.query,this._selected,this.multiple,this.multiplePreferences,this.maxRender,this._sourceTotal,this.withUnknownOption,this.allowCreate,this.filter,this.server,this.getUnknownLabel,this.loading,this.sourceEverSettled,this.effectiveLocale,this.strings,e],()=>this.computeRenderedRows(e));return this.lastRenderedRows=t.rows,t}computeRenderedRows(e){let t,i;if(this.source){let n=this.capRows(this.asyncRows,e);t=[...n.rows],i=n.overflow,i+=Math.max(0,this._sourceTotal-this.asyncRows.length)}else{let n=this.capRows(this.filtered,e);t=n.rows.map(m=>this.rowForOption(m)),i=n.overflow}let o=this.createRow;t.push(...this.unknownRows),o&&t.push(o);let s=new Set(this.committed),r=t.filter(n=>s.has(n.value)),h=t.find(n=>n.value===e),l=ne(t,oi,h?[h,...r]:r);return{rows:l.rows,overflow:i+l.overflow}}normalizeActiveIndex(){if(this.activeIndex<0)return;let e=this.navigableRows(this.renderedRows.rows).length,t=e>0?Math.min(this.activeIndex,e-1):-1;t!==this.activeIndex&&(this.activeIndex=t)}get filtered(){if(this.server)return this.options;let e=this.effectiveLocale,t=this.filter?this.query.trim().toLocaleLowerCase(e):oe(this.query,e),i=this.multiple?"":this.labelFor(this._selected[0]??"")??"",o=this.filter?i.toLocaleLowerCase(e):_(i,e),s=t===o?"":t;return s?this.memo.get("filtered",[this.options,this.filter,s,e,this.callbackRefreshEpoch],()=>{let r=this.filter;if(r)return this.options.filter(l=>r(l,s));let h=this.searchCorpus;return this.options.filter((l,n)=>h[n].label.includes(s)||h[n].search.includes(s))}):this.options}get commitsText(){return this.commit==="text"&&!this.multiple}get displayValue(){return this.multiple||this.open||this.explicitInputValue?this.query:this._selected[0]?this.labelFor(this._selected[0]):""}announceOpenTransition(e){this.openVetoed=!1,this.minimumQueryCloseUnpainted=!1;let t=this.minimumQueryClosePending;if(this.minimumQueryClosePending=!1,t&&!this.open)if(!this._isFirstUpdate&&e.has("open")&&e.get("open")===!0&&this.isConnected){if(P(this,"lr-hide",!1),!this.open)return}else{this.minimumQueryCloseUnpainted=!0;return}let i=!this.open&&this.closeAfterPositioningFailure;if(this.closeAfterPositioningFailure=!1,!(!e.has("open")||this._isFirstUpdate||!this.open&&this.interactionBarred)){if(!this.isConnected||i){P(this,"lr-hide",!1);return}this.openVetoed=this.popupController.announce(this.open,()=>{this.open=!this.open})}}show(){if(this.open||this.interactionBarred)return Promise.resolve();let e=this._selected[0]??"";if(this.commitsText&&!this.textEdited&&!this.explicitInputValue&&this.query!==e&&(this.query=e,(this.source||this.serverRequests)&&this.runSource(this.query)),!this.meetsMinimumQuery(this.query))return Promise.resolve();let t=this.popupController.wait(!0);return this.open=!0,this.open||this.popupController.release("lr-after-show"),t}hide(){if(!this.open)return Promise.resolve();let e=this.popupController.wait(!1);return this.closeCleanupPending=!0,this.open=!1,e}finalizeCloseState(){if(this.closeCleanupPending&&(this.closeCleanupPending=!1,this.activeIndex=-1,!this.multiple)){let e=this.query!=="";this.query="",this.explicitInputValue=!1,this.textEdited=!1,e&&this.source&&(this.asyncRows=[],this.sourceFailed=!1,this._sourceTotal=0,this._sourceTruncated=!1)}}activateListboxOverlay(){this.invalidateListboxPositioning(),this.overlayHandle?.deactivate({restoreFocus:!1}),this.restoreFocusOnClose=!0,this.overlayHandle=ft({host:this,panel:()=>this.renderRoot.querySelector('[part="listbox"]'),onEscape:()=>{this.hide()},onBackdrop:()=>{this.restoreFocusOnClose=!1,this.hide()},restoreFocusTo:this.inputEl??null}),this.popupController.bindPointer(),this.beginListboxPositioning()}beginListboxPositioning(){let e=this.renderRoot.querySelector('[part="combobox"]'),t=this.renderRoot.querySelector('[part="listbox"]');if(e&&t){let i=this.positioningGeneration;this.positioningReady=new Promise(o=>{this.resolvePositioningReady=o}),this.startListboxPositioning(i,e,t)}}invalidateListboxPositioning(){this.positioningGeneration++,this.cleanup?.(),this.cleanup=void 0,this.resolvePositioningReady?.(!1),this.resolvePositioningReady=void 0}resolveCurrentPositioning(e){let t=this.resolvePositioningReady;this.resolvePositioningReady=void 0,t?.(e)}async startListboxPositioning(e,t,i){try{let o=await dt(),{place:s}=o;if(e!==this.positioningGeneration||!this.open||!this.isConnected||this.renderRoot.querySelector('[part="combobox"]')!==t||this.renderRoot.querySelector('[part="listbox"]')!==i)return;this.placedTopLayer=pt(i,this.placedTopLayer,this.topLayer,o);let r=s(t,i,{placement:`${this.placement}-start`,...ut(this.topLayer,mt(this,this.strategy.authored,"fixed")),sync:this.sync,onPlaced:()=>{e===this.positioningGeneration&&(this.listboxPositioned=!0,this.updateComplete.then(()=>{e!==this.positioningGeneration||!this.open||this.resolveCurrentPositioning(!0)}))}});e!==this.positioningGeneration?r():this.cleanup=r}catch{if(e!==this.positioningGeneration||!this.open)return;this.resolveCurrentPositioning(!1),this.closeAfterPositioningFailure=!0,this.hide()}}teardownListboxOverlay(e=this.restoreFocusOnClose){this.invalidateListboxPositioning(),this.restoringOverlayFocus=e;try{this.overlayHandle?.deactivate({restoreFocus:e})}finally{this.restoringOverlayFocus=!1}this.overlayHandle=void 0,this.popupController.unbindPointer(),this.restoreFocusOnClose=!0}reconnectOpenPopup(){!this.isConnected||!this.open||(this.activateListboxOverlay(),this.source&&this.asyncRows.length===0&&this.runSource(this.query))}syncVisibleOptionsCap(){let e=this.renderRoot?.querySelector('[part="listbox"]');if(!e)return;let t=()=>{e.style.removeProperty("max-block-size")},i=typeof this.visibleOptions=="number"?T(this.visibleOptions,0):0;if(i<=0)return t();let o=e.querySelectorAll('[part="option"]');if(o.length<=i)return t();let s=o[i];if(!s)return t();let r=s.getBoundingClientRect().top-e.getBoundingClientRect().top;if(!Number.isFinite(r)||r<=0)return t();e.style.setProperty("max-block-size",`min(${Math.ceil(r)}px, var(--lr-positioner-available-block-size, var(--lr-size-18rem)))`)}updated(e){if(super.updated(e),this.syncExternalDescription(),this.syncLoadingStates(),(e.has("visibleOptions")||e.has("open")||e.has("query")||e.has("options")||e.has("asyncRows")||e.has("maxRender")||e.has("value")||e.has("listboxPositioned")||e.has("strings")||e.has("lang")||e.has("size")||e.has("filter")||e.has("allowCreate")||e.has("withUnknownOption"))&&this.syncVisibleOptionsCap(),e.has("open")&&!this.openVetoed?this.open&&this.isConnected?(this.activateListboxOverlay(),this._isFirstUpdate||this.settleTransition("lr-after-show"),this.refreshQueued?(this.refreshQueued=!1,this.runSource(this.query)):this.source&&this.asyncRows.length===0?this.runSource(this.query):this.serverRequests&&queueMicrotask(()=>{this.open&&this.serverRequests&&this.runSource(this.query,{immediate:!0})})):this.open?this.teardownListboxOverlay(!1):(this.teardownListboxOverlay(),this.interactionBarred||this.minimumQueryCloseUnpainted?this.popupController.cancel():this._isFirstUpdate||this.settleTransition("lr-after-hide")):e.has("open")&&this.openVetoed&&(this.restoreFocusOnClose=!0),e.has("topLayer")&&!e.has("open")&&this.open&&this.isConnected&&(this.invalidateListboxPositioning(),this.beginListboxPositioning()),e.has("name")&&this.syncFormValue(),e.has("validators")&&(this.updateValidity(),this.syncValidatorAttributeObserver()),(e.has("touched")||e.has("required")||e.has("value")||e.has("validators")||e.has("validityRevision"))&&this.toggleAttribute("data-invalid",this.touched&&!this.internals.validity.valid),e.has("activeIndex")||e.has("listboxPositioned")){let t=this.renderRoot.querySelector('[part="listbox"]'),i=t?.querySelector('[part="option"][data-active]');t&&i&&Ot(t,i)}}settleTransition(e){return this.popupController.settle(e,{waitForPosition:async t=>{for(;this.open&&!this.listboxPositioned;){let i=this.positioningReady,o=await i;if(t())return!1;if(o)break;if(i===this.positioningReady)return!1}return!0},conceal:()=>{this.listboxHidden=!0,this.listboxRendered=!1}})}emitValueEvents(e){let t=this,i=e?[...e]:this.resolveSelectedRowSlots().map(r=>r?.data),o=this.multiple?[...this.previousSelection]:this.previousSelection[0]??"",s={value:t.value,previousValue:o,data:i};ie(t,"input",s,r=>t.emit("lr-input",r)),ie(t,"change",s,r=>t.emit("lr-change",r))}assignValue(e){this.value=e}acceptsSelection(e,t,i){if(this.requestingSelection)return!1;let o=this,{multiple:s,open:r,source:h,sourceToken:l}=this,n=(i?i.map((p,w)=>this.rowForOccurrence(p,e[w])):this.resolveSelectedRowSlots(e,t)).map(p=>p?.data),m=t&&this.sourceOptionsByRow.get(t),b=!1;this.requestingSelection=!0;try{rt({requestDetail:{value:s?e:e[0]??"",previousValue:o.value,data:n},emitRequest:(p,w)=>o.emit("lr-change-request",p,w),guard:this.selectionGuard,commit:()=>{this.interactionBarred||this.multiple!==s||this.open!==r||this.source!==h||this.sourceToken!==l||m&&(!this.renderRoot.querySelector("slot:not([name])")?.assignedElements({flatten:!0}).includes(m)||!$(m,this)||m.value!==t?.value||!Object.is(m.data,t?.data))||(b=!0)}})}finally{this.requestingSelection=!1}return b}createOption(e){if(f(this)||this.readonly||this.emit("lr-create",{inputValue:e},{cancelable:!0}).defaultPrevented||f(this)||this.readonly||!this.allowCreate)return;let t=this.ownerDocument.createElement(ue("option"));t.setAttribute("value",e),t.textContent=e,this.pickRow({value:e,label:e},t)}commitCustomValue(e){if(f(this)||this.readonly||this.multiple||!e)return;let t=this._selected[0]!==e;t&&!this.acceptsSelection([e])||(this.touched=!0,this._selectedLabelCache.set(e,e),this.assignValue(e),this.query="",this.explicitInputValue=!1,this.hide(),t&&this.emitValueEvents())}commitText(e,t){let i=(this._selected[0]??"")!==e,o=e?[e]:[];i&&!this.acceptsSelection(o,void 0,t&&[t])||(this.touched=!0,this.assignValue(o),this.query="",this.explicitInputValue=!1,this.textEdited=!1,this.hide(),i&&this.emitValueEvents(t&&[t.data]))}pickRow(e,t){let i=this.sourceOptionsByRow.get(e);if(f(this)||this.readonly||e.disabled||i&&!$(i,this))return;if(e.createInput!==void 0){this.createOption(e.createInput);return}if(this.commitsText){this.commitText(e.label,e),this.emit("lr-activate",{value:e.value});return}let o=this.multiple?[...new Set(this._selected)]:[e.value],s=this.multiple?o.indexOf(e.value):-1,r;if(this.multiple){let l=this.multipleOccurrences,n=new Map;for(let[m,b]of this._selected.entries())n.has(b)||n.set(b,l[m]);r=o.map(m=>n.get(m)),s>=0?(o.splice(s,1),r.splice(s,1)):(o.push(e.value),r.push(i??e))}let h=this.multiple||this._selected[0]!==e.value;if(!(h&&!this.acceptsSelection(o,e,r))){if(t){if(!this.allowCreate)return;this.append(t),r&&(r[r.length-1]=t)}this.touched=!0,s>=0&&!o.includes(e.value)?this._selectedRowCache.delete(e.value):s<0&&e.unknownValue===void 0&&(this._selectedLabelCache.set(e.value,e.label),this.multiple||this._selectedRowCache.clear(),this._selectedRowCache.set(e.value,e)),this.setValue(o,!0,i,r),this.query="",this.explicitInputValue=!1,this.multiple||this.hide(),(this.source||this.serverRequests)&&this.runSource(this.query),h&&this.emitValueEvents(),this.emit("lr-activate",{value:e.value})}}removeValueAt(e){if(f(this)||this.readonly||e<0||e>=this._selected.length)return;let t=this._selected.filter((o,s)=>s!==e),i=this.multipleOccurrences.filter((o,s)=>s!==e);this.acceptsSelection(t,void 0,i)&&(this.touched=!0,this.setValue(t,!0,void 0,i),this.emitValueEvents())}clear(){if(f(this)||this.readonly)return;let e=this._selected.length>0,t=this.query!=="";!e&&!t||e&&!this.acceptsSelection([])||(e&&(this.touched=!0,this.assignValue([])),this.query="",this.explicitInputValue=!1,this.textEdited=!1,(this.source||this.serverRequests)&&this.runSource(this.query),e&&(this.emitValueEvents(),this.emit("lr-clear")),t&&this.emit("lr-filter",{value:this.query}))}refresh(){if(!(!this.source&&!this.serverRequests)){if(!this.open){this.refreshQueued=!0;return}this.refreshQueued=!1,this.runSource(this.query,{immediate:!0})}}reload(){this.refresh()}runSource(e,t){let i=this.source;if(!i&&!this.serverRequests)return;if(!this.meetsMinimumQuery(e)||!this.meetsMinimumQuery(this.query)){this.enforceMinimumQuery(!1);return}this.clearSourceTimer();let o=this.sourceAbort;this.sourceAbort=void 0;let s=++this.sourceToken;if(o?.abort(),s!==this.sourceToken||i!==this.source||!this.meetsMinimumQuery(this.query))return;let r=this.ownerDocument.defaultView;if(!this.isConnected||!r)return;let h={query:e,token:s,owner:r,source:i};if(i||(this.loading=!0),t?.immediate){this.runSourceRequest(h);return}this.sourceDebounce.delayMs=this._sourceDelay,this.sourceDebounce.push(h)}runSourceRequest({query:e,token:t,owner:i,source:o}){let s=()=>t===this.sourceToken&&o===this.source&&(o!==null||this.server)&&this.meetsMinimumQuery(e)&&this.meetsMinimumQuery(this.query)&&this.isConnected&&this.ownerDocument.defaultView===i;if(!s())return;let r=new i.AbortController;if(this.sourceAbort=r,!o){Promise.resolve().then(()=>{s()&&this.emit("lr-options-request",{query:e,signal:r.signal})});return}this.sourceLoading=!0,this.sourceFailed=!1,Promise.resolve().then(()=>{if(s()&&(this.emit("lr-options-request",{query:e,signal:r.signal}),!!s()))return o(e,{signal:r.signal,limit:ai})}).then(h=>{if(!s())return;let l=bi(h);this._sourceTotal=l.total,this._sourceTruncated=l.truncated,this.asyncRows=l.rows,this.sanitizeRowHtml(l.rows,s),this.sourceFailed=!1,this.sourceEverSettled=!0,this.normalizeActiveIndex(),this.applyPendingSelectedRows(!0);let n=new Set(this._selected);for(let m of l.rows)n.has(m.value)&&this._selectedRowCache.set(m.value,m)}).catch(h=>{s()&&(this.sourceEverSettled=!0,this.asyncRows=[],this._sourceTotal=0,this._sourceTruncated=!1,this.activeIndex=-1,this.sourceFailed=!0,this.sourceErrorAnnouncements.announceAssertive(this.localize("comboboxLoadError")),this.emit("lr-source-error",{error:h,query:e}),this.emit("lr-options-error",{error:h,request:{query:e}}),!1)}).finally(()=>{t===this.sourceToken&&(this.sourceLoading=!1)})}async sanitizeRowHtml(e,t){this.rowHtml=new Map;let i=e.filter(r=>r.html!==void 0);if(i.length===0){this.rowHtmlUnavailable=!1;return}let o=()=>!t()||this.asyncRows!==e,s=null;try{let r=await ei(i,this.ownerDocument,o);if(r==="stale")return;s=r}catch{s=null}if(!o()){if(s){this.rowHtml=s,this.rowHtmlUnavailable=!1;return}this.rowHtmlUnavailable||this.sourceErrorAnnouncements.announcePolite(this.localize("comboboxRichContentUnavailable")),this.rowHtmlUnavailable=!0}}clearSourceTimer(){this.sourceDebounce.cancel()}renderRows(e,t){let i=[],o,s=[],r=0,h=new Set(this.committed),l=()=>{if(s.length){if(o){let n=`${this.listId}-group-${r++}`;i.push(v`<div role="group" aria-labelledby=${n}>
|
|
2
|
+
<div id=${n} part="group-label" class="group-label">${o}</div>
|
|
3
|
+
${s}
|
|
4
|
+
</div>`)}else i.push(...s);s=[]}};return e.forEach((n,m)=>{n.group!==o&&(l(),o=n.group);let b=`${this.listId}-opt-${m}`,p=this.sourceOptionsByRow.get(n),w=this.rowHtml.get(n),C=this.multiple||this.source||n.unknownValue!==void 0?h.has(n.value):this.singleSelectedOption!==void 0&&p===this.singleSelectedOption;C&&!this.multiple&&h.delete(n.value),s.push(v`<div
|
|
5
|
+
part="option"
|
|
6
|
+
id=${b}
|
|
7
|
+
role="option"
|
|
8
|
+
data-index=${m}
|
|
9
|
+
data-value=${n.value}
|
|
10
|
+
?data-create=${n.createInput!==void 0}
|
|
11
|
+
?data-unknown-value=${n.unknownValue!==void 0}
|
|
12
|
+
title=${n.title||g}
|
|
13
|
+
aria-selected=${C?"true":"false"}
|
|
14
|
+
aria-disabled=${n.disabled?"true":"false"}
|
|
15
|
+
aria-label=${n.accessibleLabel||g}
|
|
16
|
+
?data-active=${b===t}
|
|
17
|
+
>
|
|
18
|
+
${n.start?I(ii(n.start),{part:"option-start"}):""}
|
|
19
|
+
${n.icon?I(n.icon,{part:"option-icon"}):""}
|
|
20
|
+
${n.dotColor?v`<span
|
|
21
|
+
part="option-dot"
|
|
22
|
+
style=${"background:"+($t(n.dotColor)??"transparent")+";"}
|
|
23
|
+
></span>`:""}
|
|
24
|
+
<span part="option-label">
|
|
25
|
+
${w===void 0?v`<span>${U(n.label)}</span>`:v`<span class="sr-only">${U(n.label)}</span
|
|
26
|
+
><span part="option-html" aria-hidden="true" dir="auto">${Kt(w)}</span>`}
|
|
27
|
+
${n.sub?v`<span part="option-sub">${U(n.sub)}</span>`:""}
|
|
28
|
+
</span>
|
|
29
|
+
${n.badge!=null?v`<span part="option-badge">${n.badge}</span>`:""}
|
|
30
|
+
${n.end?I(ii(n.end),{part:"option-end"}):""}
|
|
31
|
+
</div>`)}),l(),i}renderTag(e,t){let i=this.multipleOccurrences[t],o=S(i)?i:this.optionIndex.values.get(e);if(this.getTag&&o)return this.getTag(o,t);let s=this.labelFor(e,t),r=this.isUnknownValue(e);return v`<span part="tag" title=${o?.title||g} ?data-unknown-value=${r}>
|
|
32
|
+
<span part="tag-label"
|
|
33
|
+
><span part="tag__content" aria-hidden="true">${s}</span
|
|
34
|
+
>${r?v`<span part="unknown-value">${this.localize("notInCatalog")}</span>`:""}</span
|
|
35
|
+
>
|
|
36
|
+
<button
|
|
37
|
+
part="tag__remove-button tag__remove-button__button"
|
|
38
|
+
type="button"
|
|
39
|
+
?disabled=${this.effectiveDisabled||this.readonly}
|
|
40
|
+
aria-label=${this.localize("removeWithContext",void 0,{label:s})}
|
|
41
|
+
@click=${h=>{h.stopPropagation(),this._selected[t]===e&&this.removeValueAt(t)}}
|
|
42
|
+
>
|
|
43
|
+
<span part="tag__remove-button__base">${J()}</span>
|
|
44
|
+
</button>
|
|
45
|
+
</span>`}statusText(e,t,i){return t==null?this.localize(e,void 0,i):i===void 0?t:t.replace(/\{(\w+)\}/g,(o,s)=>{let r=i[s];return typeof r=="string"||typeof r=="number"?String(r):o})}render(){let{rows:e,overflow:t}=this.listboxRendered?this.renderedRows:{rows:[],overflow:0};this._renderedRows=e;let i=e.filter(x=>!x.disabled),o=this.activeIndex>=0?i[this.activeIndex]:void 0,s=o?`${this.listId}-opt-${e.indexOf(o)}`:"",r=this.multiple?this._selected.slice(0,this.maxOptionsVisible):[],h=this.multiple?this._selected.length-r.length:0,l=this._selected.length>0,n=!this.multiple&&!this.open&&!this.explicitInputValue&&l&&this.isUnknownValue(this._selected[0]),m=this.query!==""&&(this.open||this.multiple),b=lt({presence:this.slotPresence,idPrefix:"combobox",hint:this.hint,errorText:this.errorText,withHint:this.withHint,helpText:this.helpText}),p=this.withLabel||this.slotPresence.has("label")||(this.label??"").length>0,w=this.localDescriptionIds=[this.multiple&&l?"combobox-value":"",b.describedBy].filter(Boolean).join(" "),C=b.hasError||this.touched&&!this.internals.validity.valid,q=this.loading||this.sourceLoading,k=q&&!(this.serverRequests&&e.length>0);return this.loadingRowShown=this.listboxRendered&&this.open&&k,v`
|
|
46
|
+
<div part="form-control">
|
|
47
|
+
<label
|
|
48
|
+
part="form-control-label"
|
|
49
|
+
for=${this.inputId}
|
|
50
|
+
?hidden=${!p}
|
|
51
|
+
>
|
|
52
|
+
<span part="label">${this.label}<slot name="label"></slot></span>
|
|
53
|
+
</label>
|
|
54
|
+
<div
|
|
55
|
+
part="combobox"
|
|
56
|
+
@mousedown=${this.onComboMouseDown}
|
|
57
|
+
@focusout=${this.onComboFocusOut}
|
|
58
|
+
>
|
|
59
|
+
<span part="form-control-input" class="control-contents">
|
|
60
|
+
<span part="start" ?hidden=${!this.slotPresence.has("start")}>
|
|
61
|
+
<slot name="start"></slot>
|
|
62
|
+
</span>
|
|
63
|
+
<div part="tags">
|
|
64
|
+
${r.map((x,R)=>this.renderTag(x,R))}
|
|
65
|
+
${h>0?v`<span part="tag tag-overflow" aria-hidden="true"
|
|
66
|
+
>${this.localize("comboboxSelectedOverflow",void 0,{n:j(this.effectiveLocale).format(h)})}</span
|
|
67
|
+
>`:""}
|
|
68
|
+
</div>
|
|
69
|
+
${this.multiple&&l?v`<span id="combobox-value" class="sr-only"
|
|
70
|
+
>${this.selectedLabels}</span
|
|
71
|
+
>`:""}
|
|
72
|
+
<input
|
|
73
|
+
id=${this.inputId}
|
|
74
|
+
part="combobox-input"
|
|
75
|
+
role="combobox"
|
|
76
|
+
aria-label=${ve(this)??(p?g:this.placeholder||this.localize("comboboxLabel"))}
|
|
77
|
+
aria-describedby=${w||g}
|
|
78
|
+
aria-expanded=${this.open?"true":"false"}
|
|
79
|
+
aria-controls=${this.listId}
|
|
80
|
+
aria-haspopup=${this.sourceFailed?"dialog":g}
|
|
81
|
+
aria-activedescendant=${this.sourceFailed?g:s||g}
|
|
82
|
+
aria-autocomplete="list"
|
|
83
|
+
aria-required=${this.required?"true":"false"}
|
|
84
|
+
aria-invalid=${C?"true":"false"}
|
|
85
|
+
autocomplete=${this.autocomplete||g}
|
|
86
|
+
inputmode=${this.inputMode||g}
|
|
87
|
+
enterkeyhint=${this.enterKeyHint||g}
|
|
88
|
+
spellcheck=${this.spellcheck}
|
|
89
|
+
autocapitalize=${this.autocapitalize||g}
|
|
90
|
+
autocorrect=${Wt(this,this.autocorrect)}
|
|
91
|
+
.value=${this.displayValue}
|
|
92
|
+
placeholder=${l&&!this.multiple?"":this.placeholder}
|
|
93
|
+
?disabled=${this.effectiveDisabled}
|
|
94
|
+
?readonly=${this.readonly}
|
|
95
|
+
?data-unknown-value=${n}
|
|
96
|
+
@input=${this.onInput}
|
|
97
|
+
@keydown=${this.onKeyDown}
|
|
98
|
+
@focus=${this.onInputFocus}
|
|
99
|
+
@blur=${this.onInputBlur}
|
|
100
|
+
/>
|
|
101
|
+
${n?v`<span part="unknown-value">${this.localize("notInCatalog")}</span>`:""}
|
|
102
|
+
${(this.clearable||this.withClear)&&(l||m)?v`<button
|
|
103
|
+
part="clear-button"
|
|
104
|
+
type="button"
|
|
105
|
+
?disabled=${this.effectiveDisabled||this.readonly}
|
|
106
|
+
aria-label=${this.localize("clear")}
|
|
107
|
+
@mousedown=${x=>x.preventDefault()}
|
|
108
|
+
@click=${x=>{x.stopPropagation(),this.clear();let R=this.restoringOverlayFocus;this.restoringOverlayFocus=!0;try{this.inputEl?.focus()}finally{this.restoringOverlayFocus=R}}}
|
|
109
|
+
>
|
|
110
|
+
<span aria-hidden="true" inert
|
|
111
|
+
><slot name="clear-icon">${J()}</slot></span
|
|
112
|
+
>
|
|
113
|
+
</button>`:""}
|
|
114
|
+
${q&&!this.loadingRowShown?v`<span part="spinner" aria-hidden="true" inert>${De()}</span>`:""}
|
|
115
|
+
<span part="end" ?hidden=${!this.slotPresence.has("end")}>
|
|
116
|
+
<slot name="end"></slot>
|
|
117
|
+
</span>
|
|
118
|
+
<span part="expand-icon" aria-hidden="true" inert
|
|
119
|
+
><slot name="expand-icon">${Ee()}</slot></span
|
|
120
|
+
>
|
|
121
|
+
</span>
|
|
122
|
+
</div>
|
|
123
|
+
<div
|
|
124
|
+
part="listbox"
|
|
125
|
+
?hidden=${this.listboxHidden}
|
|
126
|
+
?data-positioned=${this.listboxPositioned}
|
|
127
|
+
id=${this.listId}
|
|
128
|
+
role=${this.sourceFailed?"dialog":"listbox"}
|
|
129
|
+
aria-label=${this.sourceFailed?this.localize("comboboxLoadError"):g}
|
|
130
|
+
aria-multiselectable=${this.sourceFailed?g:this.multiple?"true":"false"}
|
|
131
|
+
@mousedown=${this.onListboxMouseDown}
|
|
132
|
+
@click=${this.onListboxClick}
|
|
133
|
+
>
|
|
134
|
+
<span class="glass-scroll-layer" aria-hidden="true"></span>
|
|
135
|
+
${this.listboxRendered?k?v`<div class="loading" part="status loading" role="option" aria-selected="false" aria-disabled="true"
|
|
136
|
+
><slot name="loading">${this.statusText("loading",this.loadingText)}</slot></div
|
|
137
|
+
>`:this.sourceFailed?v`<div class="source-error" part="source-error-row" role="presentation">
|
|
138
|
+
${Zt(this,{loading:!1,error:!0,empty:!1,errorHeading:this.localize("comboboxLoadError"),compact:!0,headingLevel:"none",onRetry:()=>this.refresh(),emitRetryRequest:(x,R)=>this.emit("lr-retry-request",x,R),slotNames:{error:"source-error"}},{error:"source-error"},"lr-retry-request")}
|
|
139
|
+
</div>`:e.length===0?this.query===""?v`<div class="empty" part="status empty" role="option" aria-selected="false" aria-disabled="true"
|
|
140
|
+
><slot name="empty">${this.statusText("noMatches",this.emptyText)}</slot></div
|
|
141
|
+
>`:v`<div class="empty" part="status no-results" role="option" aria-selected="false" aria-disabled="true"
|
|
142
|
+
><slot name="no-results">${this.statusText("noMatches",this.emptyText)}</slot></div
|
|
143
|
+
>`:v`${this.renderRows(e,s)}
|
|
144
|
+
${t>0?v`<div part="option-overflow">${this.statusText("comboboxOverflow",this.overflowText,{n:j(this.effectiveLocale).format(t)})}</div>`:""}
|
|
145
|
+
${this.rowHtmlUnavailable&&e.some(x=>x.html!==void 0)?v`<div part="option-html-fallback">${this.localize("comboboxRichContentUnavailable")}</div>`:""}`:g}
|
|
146
|
+
</div>
|
|
147
|
+
${at({...b,idPrefix:"combobox",hint:this.hint||this.helpText,errorText:this.errorText,helpTextSlot:!0})}
|
|
148
|
+
</div>
|
|
149
|
+
<slot
|
|
150
|
+
@slotchange=${this.collectOptions}
|
|
151
|
+
@lr-option-change=${this.onOptionChange}
|
|
152
|
+
hidden
|
|
153
|
+
></slot>
|
|
154
|
+
`}};c([u()],a.prototype,"placeholder",void 0),c([u()],a.prototype,"label",void 0),c([u({attribute:"label-display",reflect:!0})],a.prototype,"labelDisplay",void 0),c([u({attribute:"label-placement",reflect:!0})],a.prototype,"labelPlacement",void 0),c([u()],a.prototype,"hint",void 0),c([u({attribute:"help-text"})],a.prototype,"helpText",void 0),c([u({attribute:"error-text"})],a.prototype,"errorText",void 0),c([u({type:Boolean,reflect:!0})],a.prototype,"open",null),c([u({type:Boolean,attribute:"allow-create"})],a.prototype,"allowCreate",void 0),c([u({type:Boolean,attribute:"allow-custom-value"})],a.prototype,"allowCustomValue",void 0),c([u({converter:ri,reflect:!0})],a.prototype,"commit",null),c([u({type:Boolean,attribute:"with-unknown-option",reflect:!0})],a.prototype,"withUnknownOption",void 0),c([u({attribute:!1})],a.prototype,"getUnknownLabel",void 0),c([u({type:Boolean,reflect:!0})],a.prototype,"loading",void 0),c([u({converter:ni,reflect:!0})],a.prototype,"appearance",null),c([u({reflect:!0,converter:Fe("bottom")})],a.prototype,"placement",void 0),c([u({reflect:!0})],a.prototype,"sync",void 0),c([u({attribute:"positioning-strategy",reflect:!0,converter:bt})],a.prototype,"positioningStrategy",null),c([u({type:Boolean,attribute:"top-layer",reflect:!0})],a.prototype,"topLayer",void 0),c([u({reflect:!0})],a.prototype,"size",void 0),c([u({type:Boolean,reflect:!0})],a.prototype,"pill",void 0),c([u({type:Boolean,reflect:!0})],a.prototype,"clearable",void 0),c([u({type:Boolean,attribute:"with-clear"})],a.prototype,"withClear",void 0),c([u({type:Boolean,attribute:"with-label"})],a.prototype,"withLabel",void 0),c([u({type:Boolean,attribute:"with-hint"})],a.prototype,"withHint",void 0),c([u({attribute:!1})],a.prototype,"getTag",void 0),c([u({attribute:!1})],a.prototype,"validators",void 0),c([u({useDefault:!0})],a.prototype,"autocomplete",void 0),c([u({attribute:"inputmode"})],a.prototype,"inputMode",void 0),c([u({attribute:"enterkeyhint"})],a.prototype,"enterKeyHint",void 0),c([u({converter:di,useDefault:!0})],a.prototype,"spellcheck",void 0),c([u()],a.prototype,"autocapitalize",void 0),c([u({attribute:"empty-text"})],a.prototype,"emptyText",void 0),c([u({attribute:"loading-text"})],a.prototype,"loadingText",void 0),c([u({attribute:"overflow-text"})],a.prototype,"overflowText",void 0),c([u({attribute:!1})],a.prototype,"filter",void 0),c([u({attribute:!1})],a.prototype,"source",void 0),c([u({attribute:!1})],a.prototype,"dataSource",null),c([u({type:Boolean,reflect:!0})],a.prototype,"server",void 0),c([u({converter:Pe})],a.prototype,"autocorrect",null),c([y()],a.prototype,"query",null),c([y()],a.prototype,"activeIndex",void 0),c([y()],a.prototype,"options",void 0),c([y()],a.prototype,"optionsObserved",void 0),c([y()],a.prototype,"touched",void 0),c([y()],a.prototype,"validityRevision",void 0),c([y()],a.prototype,"sourceLoading",void 0),c([y()],a.prototype,"sourceFailed",void 0),c([y()],a.prototype,"sourceEverSettled",void 0),c([y()],a.prototype,"asyncRows",void 0),c([y()],a.prototype,"rowHtml",void 0),c([y()],a.prototype,"rowHtmlUnavailable",void 0),c([G('[part="combobox-input"]')],a.prototype,"inputEl",void 0),c([G("slot:not([name])")],a.prototype,"optionsSlot",void 0),c([y()],a.prototype,"listboxPositioned",void 0),c([y()],a.prototype,"listboxHidden",void 0),c([y()],a.prototype,"listboxRendered",void 0),c([u({converter:O(void 0),attribute:"visible-options"})],a.prototype,"visibleOptions",void 0),Gt(a.prototype);export{a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as o}from"./chunk-AVZPWRZU.js";var y=64*1024*1024,p=Object.freeze(["gltf","glb","stl","obj","ply","xyz","pcd"]),a=Object.freeze({"model/gltf+json":"gltf","model/gltf-binary":"glb","model/stl":"stl","application/sla":"stl","model/obj":"obj","application/x-ply":"ply","application/ply":"ply","application/x-pcd":"pcd","application/pcd":"pcd"});function n(t,e){return typeof t=="object"&&t!==null?Object.getOwnPropertyDescriptor(t,e)?.value:void 0}function i(t){if(typeof t!="number"||!Number.isFinite(t))throw new TypeError("Model camera fields must be finite numbers");return t}function b(t){let e=n(t,"target");return Object.freeze({yaw:o(i(n(t,"yaw")),-1e7,1e7)%(Math.PI*2),pitch:o(i(n(t,"pitch")),-Math.PI/2+.01,Math.PI/2-.01),distance:o(i(n(t,"distance")),.01,(2-2**-23)*2**127/8),target:Object.freeze({x:o(i(n(e,"x")),-1e7,1e7),y:o(i(n(e,"y")),-1e7,1e7),z:o(i(n(e,"z")),-1e7,1e7)})})}var M=b({yaw:0,pitch:0,distance:500,target:{x:0,y:0,z:0}});function u(t,e,s,f){if(t!=="auto")return p.includes(t)?t:null;let r=s.split(";",1)[0].trim().toLowerCase(),c=Object.hasOwn(a,r)?a[r]:void 0;if(c)return c;for(let d of[e,f.split(/[?#]/,1)[0]]){let l=/\.([a-z0-9]+)$/i.exec(d)?.[1]?.toLowerCase();if(p.includes(l))return l}return null}export{y as a,p as b,b as c,M as d,u as e};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as A,h as g,k as I}from"./chunk-RDTKEL46.js";import{b as M,g as j}from"./chunk-AVZPWRZU.js";function k(n){switch(n){case"agent":case"llm":case"tool":case"retriever":case"embedding":case"other":return n;default:return"other"}}function _(n){switch(n){case"pending":case"running":case"success":case"error":case"denied":case"incomplete":case"unknown":return n;default:return n==null?"pending":"unknown"}}var S=500;var R=["id","parentId","name","kind","startMs","endMs","status","tokensIn","tokensOut","costText","detail"],z=new WeakMap;function w(n,a){return I(n,a)}function D(n){try{if(n===null||typeof n!="object"||Array.isArray(n))return;let a=new Map;for(let b of R){let u=w(n,b);if(u===g)return;a.set(b,u)}let s=b=>{let u=a.get(b);if(!(u===void 0||u===A||u===g))return u.value},r=s("id"),e=s("startMs"),t=s("endMs");if(typeof r!="string"||r.trim().length===0||typeof e!="number"||!Number.isFinite(e)||t!=null&&(typeof t!="number"||!Number.isFinite(t)))return;let o=M(e,0,0,Number.MAX_SAFE_INTEGER),d=t==null?void 0:M(t,o,o,Number.MAX_SAFE_INTEGER),i=s("parentId"),l=s("name"),h=s("kind"),m=s("status"),c=s("tokensIn"),y=s("tokensOut"),f=s("costText"),p=s("detail"),E={id:r,name:typeof l=="string"?l:"",kind:k(h),startMs:o,status:_(m),...d===void 0?{}:{endMs:d},...typeof i=="string"&&i.length>0?{parentId:i}:{},...typeof c=="number"?{tokensIn:c}:{},...typeof y=="number"?{tokensOut:y}:{},...typeof f=="string"?{costText:f}:{},...typeof p=="string"?{detail:p}:{}};return Object.freeze(E),Object.freeze({source:n,span:E})}catch{return}}function x(n){let a=!1;try{a=Object.isFrozen(n)}catch{return[]}if(a){let t=z.get(n);if(t)return t}let s=[],r=new Set;try{for(let t of n){let o=D(t);!o||r.has(o.span.id)||(r.add(o.span.id),s.push(o))}}catch{return[]}let e=Object.freeze(s);return a&&z.set(n,e),e}function O(n,a,s){let r=new Map(n.map(t=>[t.id,t])),e=Object.freeze({get size(){return r.size},get:t=>r.get(t),has:t=>r.has(t),entries:()=>r.entries(),keys:()=>r.keys(),values:()=>r.values(),[Symbol.iterator]:()=>r[Symbol.iterator](),forEach(t,o){r.forEach((d,i)=>t.call(o,d,i,e))}});return Object.freeze({spans:Object.freeze(n),byId:e,truncated:n.length<a,extentEndMs:s})}var N=new WeakMap;function C(n,a=null,s=S){let r=x(Array.isArray(n)?n:[]),e=N.get(r);if(!e){let c=r.map(({span:p})=>p),y=new Map(c.map(p=>[p.id,p])),f=0;for(let p of c)f=Math.max(f,p.endMs??p.startMs,p.startMs);e={spans:c,byId:y,extentEndMs:f,projections:new Map},N.set(r,e)}let t=Math.max(1,Math.min(5e3,j(s,S))),o=e.projections.get(t);if(!o){let c=e.spans.slice(0,t);o=O(c,e.spans.length,e.extentEndMs),e.projections.clear(),e.projections.set(t,o)}if(e.reservation?.active===a&&e.reservation.limit===t)return e.reservation.projection;let d=new Set,i=a?e.byId.get(a):void 0,l=!0;for(;i&&d.size<t&&!d.has(i.id);)d.add(i.id),l&&=o.byId.has(i.id),i=i.parentId?e.byId.get(i.parentId):void 0;if(l)return o;for(let c of e.spans){if(d.size>=t)break;d.add(c.id)}let h=e.spans.filter(c=>d.has(c.id)),m=O(h,e.spans.length,e.extentEndMs);return e.reservation={active:a,limit:t,projection:m},m}export{k as a,_ as b,C as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as c}from"./chunk-E3D5VGRJ.js";import{n as p,r as i}from"./chunk-RDTKEL46.js";function m(r){return r==="mercator"||r==="globe"?r:void 0}function a(r,e){return p(r,e,()=>{throw new TypeError("Invalid map scene descriptor")})}function y(r){if(r==null)return r;if(!i(r))throw new TypeError("Invalid map terrain");let e=a(r,"source"),t=a(r,"exaggeration");if(typeof e!="string"||e.trim().length===0||e.length>4096||t!==void 0&&(typeof t!="number"||!Number.isFinite(t)||t<0))throw new TypeError("Invalid map terrain");return Object.freeze({source:e,exaggeration:t===void 0?1:t})}function w(r,e){let t=c(r===void 0?{type:"mercator"}:r)?.value;if(!i(t))throw new TypeError("Invalid map projection");let n=a(t,"type");if((typeof n!="string"||n.length===0)&&!Array.isArray(n))throw new TypeError("Invalid map projection");if(Array.isArray(n)&&n.length===0)throw new TypeError("Invalid map projection");return Object.freeze({projection:t,terrain:y(e)??null})}function u(r,e){if(!i(r))throw new TypeError("Invalid current map style");let t=a(r,"sources");if(!i(t))throw new TypeError("Invalid map terrain source");let n=a(t,e);if(!i(n)||a(n,"type")!=="raster-dem")throw new TypeError("Invalid map terrain source");let o=Object.create(null);return Object.defineProperty(o,e,{value:Object.freeze({type:"raster-dem"}),enumerable:!0}),Object.freeze(o)}function h(r,e,t){let n;if(r!==void 0){let o=a(r,"type");if(typeof o=="string"&&o!=="mercator"&&o!=="globe")throw new TypeError("Unsupported map projection");if(typeof o!="string"&&!Array.isArray(o))throw new TypeError("Invalid map projection");n=Object.freeze({type:o==="mercator"?"mercator":"globe"})}return Object.freeze({...n===void 0?{}:{projection:n},...e===void 0?{}:{terrain:e!==null},...e==null?{}:{sources:u(t,e.source)}})}function l(r,e){if(r===e)return!0;if(Array.isArray(r)||Array.isArray(e))return Array.isArray(r)&&Array.isArray(e)&&r.length===e.length&&r.every((n,o)=>l(n,e[o]));if(!i(r)||!i(e))return!1;let t=Object.keys(r);return t.length===Object.keys(e).length&&t.every(n=>Object.hasOwn(e,n)&&l(a(r,n),a(e,n)))}export{m as a,y as b,w as c,h as d,l as e};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import{a as B,b as _t}from"./chunk-AJHSEOC3.js";import{a as Ot,b as $t,c as X}from"./chunk-AGGZ3MBQ.js";import{a as S}from"./chunk-WV7EKGZO.js";import{a as zt}from"./chunk-TO3Y7UQS.js";import{a as Lt}from"./chunk-B6GAZN5X.js";import{e as Et,f as te}from"./chunk-RTZ7B2EH.js";import{b as It}from"./chunk-RXVKNUZ5.js";import{d as At,f as ee}from"./chunk-PZ2KUPDO.js";import{a as Tt}from"./chunk-2POOYUWS.js";import{a as V,d as Rt,g as St,h as we}from"./chunk-V2B4ISQF.js";import{a as yt}from"./chunk-3AZXZUWI.js";import{a as ft}from"./chunk-O4NFRBN5.js";import{c as Ht,e as Mt}from"./chunk-TH54GLBQ.js";import{b as Ct}from"./chunk-4QBXZ5BM.js";import{a as ut}from"./chunk-J24TYMEI.js";import{a as mt}from"./chunk-2MJHMCYK.js";import{a as gt,c as pt,g as Z,h as ve}from"./chunk-4QG5Y44P.js";import{e as bt,f as vt,j as wt,l as xt}from"./chunk-S5RHQP2W.js";import{b as kt}from"./chunk-64UM73EQ.js";import{K as et,L as tt,M as it,N as rt,R as nt,S as st,T as ot,ia as at,ja as lt}from"./chunk-63D3NJTI.js";import{a as ht,b as dt,c as ct}from"./chunk-YRWS5F6Q.js";import{c as Ze}from"./chunk-GT6NF7FZ.js";import{C as Qe,D as Ve,N as Xe}from"./chunk-C6BTEIPF.js";import{a as Fe}from"./chunk-2WXXKPUW.js";import{a as je,b as Ue,c as Ge,z as qe}from"./chunk-IFDV4HWR.js";import{e as Ye}from"./chunk-REOFE46N.js";import{a as Pe,e as Ke,g as Be,o as Ne,v as We}from"./chunk-2CH7YZRL.js";import{a as j,c as G,z as De}from"./chunk-JTGCA7JE.js";import{b as Q}from"./chunk-CR23WLJQ.js";import{b as be}from"./chunk-5NRIHGYU.js";import{b as $e,e as K,i as U,k as _e}from"./chunk-CN2FTU25.js";import{b as Je}from"./chunk-ZVB4ZXSV.js";import{f as F}from"./chunk-AVZPWRZU.js";import{b as Oe,c as q}from"./chunk-OP7ARFKR.js";function Ri(i){return typeof i=="object"&&i!==null&&"defaults"in i&&typeof i.defaults=="object"&&i.defaults!==null&&"use"in i&&typeof i.use=="function"&&"parse"in i&&typeof i.parse=="function"}function Si(i){if(typeof i!="object"&&typeof i!="function"||i===null||!("Marked"in i))return!1;try{let e=i.Marked;return typeof e!="function"?!1:Ri(new e)}catch{return!1}}var Dt=ee({cache:"generation",load:()=>(async()=>{try{return await import("marked")}catch(i){throw i}})(),isCapability:Si,warningKey:"lyra-markdown-marked-unavailable",warning:"<lr-markdown>/<lr-markdown-core>: The optional marked peer could not be resolved to a parser. Content is rendered as plain text.",failedWarning:"<lr-markdown>/<lr-markdown-core>: Markdown parsing is unavailable because the optional marked peer could not load. Content is rendered as plain text."}),ie,Ft;async function Ti(i,e){let[t,r]=await Promise.all([i?Dt.loadWith(i):Dt.load(),zt(e)]);return{marked:t??void 0,DOMPurify:r??void 0}}function Pt(){return ie||(ie=Ti().then(i=>(i.marked&&i.DOMPurify?Ft=i:ie=void 0,i))),ie}function Kt(){return Ft}var Nt=200;function Wt(i){return Array.from(i.replace(/[\p{Cc}\p{Cf}]/gu,"")).slice(0,32).join("")}function xe(i,e,t){let r=i.createElement(e);return r.setAttribute("part",t),r.setAttribute("data-lr-code-chrome",""),r}var Bt=new WeakMap;function jt(i,e){let t=i.ownerDocument,r=Bt.get(t);r||Bt.set(t,r=new Map);let n=r.get(e);if(!n){let s=t.createElement("div");_e(e==="error"?Xe():e==="success"?Qe():Ve(),s),n=s.querySelector("svg"),n.replaceChildren(...n.children),r.set(e,n)}i.replaceChildren(n.cloneNode(!0))}function Ut(i,e){let t=i.ownerDocument,r=xe(t,"div","code-block-header");if(e){let s=xe(t,"span","code-block-language");s.setAttribute("data-language",e),s.setAttribute("aria-hidden","true"),r.append(s)}let n=xe(t,"button","code-block-copy");return n.type="button",jt(n,"rest"),r.append(n),i.firstChild!==r&&i.insertBefore(r,i.firstChild),n}var re=class{constructor(e,t){this.host=e,this.options=t,this.records=[],this.feedback=new Map,this.buttons=new WeakMap,this.frames=new WeakMap,this.painted=new WeakMap,this.liveButtons=new Map,this.liveFrames=new Map,this.contentRoot=null,this.sink=new Je(e,{register:!1}),e.addController(this)}get nonce(){if(!this.nonceValue){let e=new Uint32Array(4);if(typeof globalThis.crypto?.getRandomValues=="function")globalThis.crypto.getRandomValues(e);else for(let t=0;t<e.length;t++)e[t]=Math.floor(Math.random()*4294967296);this.nonceValue=Array.from(e,t=>t.toString(16).padStart(8,"0")).join("")}return this.nonceValue}setBlocks(e,t=0){for(let r=t;r<Math.max(this.records.length,e.length);r++){let n=this.records[r],s=e[r];(n?.language!==s?.language||n?.source!==s?.source)&&this.resetIndex(r)}for(let r=t;r<e.length;r++)this.records[r]={...e[r]};this.records.length=e.length}resetIndex(e){let t=this.feedback.get(e);t&&(this.feedback.delete(e),t.reset(),this.host.removeController(t))}release(){for(let e of this.feedback.keys())this.resetIndex(e);this.sink.disconnect(),this.remembered=void 0,this.contentRoot=null}hostConnected(){this.options.isEnabled()&&this.sink.current("polite")}hostDisconnected(){this.release()}hostAdopted(){this.release()}hostUpdate(){let e=q(this.host.ownerDocument),t=e?this.buttons.get(e):void 0;e&&t!==void 0&&(this.remembered={button:e,index:t})}hostUpdated(){if(!this.options.isEnabled()){this.sink.disconnect(),this.contentRoot=null;return}if(!this.host.isConnected)return;this.hostConnected();let e=this.options.getContentRoot();if(!e)return;let t=this.options.contentVersion();if(e!==this.contentRoot||t!==this.contentVersion){this.contentRoot=e,this.contentVersion=t;let n=this.options.getChangedRoots?.()??[e];if(n.includes(e))this.liveButtons.clear(),this.liveFrames.clear();else for(let[a,h]of this.liveFrames)h.isConnected||(this.liveFrames.delete(a),this.liveButtons.delete(a));let s=`[data-lr-code-frame^="${this.nonce}:"]`,o=n.flatMap(a=>[...a.nodeType===1&&a.matches(s)?[a]:[],...a.querySelectorAll(s)]),l=0;for(let a of o){if(l++>=this.records.length)break;let h=Number(a.getAttribute("data-lr-code-frame")?.slice(this.nonce.length+1)),p=this.records[h];if(!p||a.getAttribute("data-lr-code-frame")!==`${this.nonce}:${h}`)continue;let c=this.frames.get(a);c||(a.setAttribute("role","group"),a.setAttribute("data-lr-code-chrome",""),c=this.options.buildHeader(a,p.language),this.frames.set(a,c),this.buttons.set(c,h)),this.liveButtons.set(h,c),this.liveFrames.set(h,a)}}for(let[n,s]of this.liveButtons){let o=this.records[n],l=this.liveFrames.get(n);if(!o||!l)continue;let{localize:a}=this.options,h=this.records.length>1?this.options.formatIndex(n+1):void 0,p=h===void 0?o.language?a("codeRegionWithLanguage",void 0,{language:o.language}):a("codeRegion"):o.language?a("codeRegionWithLanguageIndexed",void 0,{language:o.language,index:h}):a("codeRegionIndexed",void 0,{index:h});l.getAttribute("aria-label")!==p&&l.setAttribute("aria-label",p);let c=this.feedback.get(n)?.status??"rest",m=c==="success"?a("copiedToClipboard"):c==="error"?a("copyFailed"):h===void 0?a("copyCode"):a("copyCodeIndexed",void 0,{index:h});for(let T of["aria-label","title"])s.getAttribute(T)!==m&&s.setAttribute(T,m);let k=c==="success"?"code-block-copy code-block-copy-success":c==="error"?"code-block-copy code-block-copy-error":"code-block-copy";s.getAttribute("part")!==k&&s.setAttribute("part",k),this.painted.get(s)!==c&&(jt(s,c),this.painted.set(s,c))}let r=this.remembered;if(this.remembered=void 0,r&&!r.button.isConnected){let n=this.host.ownerDocument,s=q(n);(!s||s===n.body||s===n.documentElement)&&this.liveButtons.get(r.index)?.focus({preventScroll:!0})}}handleClick(e){for(let t of e.composedPath()){let r=this.buttons.get(t);if(r!==void 0)return this.copy(r),!0}return!1}copy(e){let t=this.records[e];if(!t||!this.host.isConnected||!this.options.isEnabled())return;this.resetIndex(e);let r=new Ht(this.host,()=>t.source,n=>{Mt({emit:this.options.emit,announce:s=>this.sink.announcePolite(s?this.options.localize("copiedToClipboard"):this.options.localize("copyFailed"))},n,()=>this.feedback.get(e)===r&&this.options.isEnabled())});return this.feedback.set(e,r),r.write(t.source)}};function Hi(i){return At(i,"renderToString")}var Gt=ee({cache:"generation",load:()=>(async()=>{try{return await import("katex")}catch(i){throw i}})(),isCapability:Hi,warningKey:"lyra-markdown-katex-unavailable",warning:"<lr-markdown>/<lr-markdown-core>: The optional KaTeX peer could not be resolved to a math renderer. TeX is rendered as literal text.",failedWarning:"<lr-markdown>/<lr-markdown-core>: Math rendering is unavailable because the optional KaTeX peer could not load. TeX is rendered as literal text."}),qt,Qt,Mi=Symbol.for("@aceshooting/lyra-ui/markdown-katex-cache-generation");function Vt(i){let e=Reflect.get(globalThis,Mi);return(e!==Qt||i&&i!==qt)&&(Qt=e,qt=i,Gt.override(i)),Gt.load()}function Ci(i){if(!(!i||typeof i!="object"&&typeof i!="function"||typeof i.Marked!="function"))return new i.Marked}var Y=class{get(e){if(e)return this.module!==e&&(this.module=e,this.parser=Ci(e)),this.parser}};function ae(i,e){let t=F(e,4,1,32);return i.replace(/^[\t ]+/gm,r=>{let n=0,s="";for(let o of r){let l=o===" "?t-n%t:1;s+=" ".repeat(l),n+=l}return s})}var ne=class{get handle(){return this.pending?.handle}get settled(){return this.pending?.settled}request(e,t){if(this.pending)return this.pending.handle;let r,n=new Promise(o=>{r=o}),s={owner:e,settled:n,resolve:r};this.pending=s;try{s.handle=e.requestAnimationFrame(()=>{this.pending===s&&(this.pending=void 0,e.clearTimeout(s.fallback),s.resolve(),t())}),this.pending===s&&(s.fallback=e.setTimeout(()=>{this.pending===s&&(this.cancel(),t())},100))}catch{this.pending===s&&(this.pending=void 0),s.resolve();return}return s.handle}cancel(){let e=this.pending;if(!e)return!1;this.pending=void 0;try{e.owner.clearTimeout(e.fallback),e.handle!==void 0&&e.owner.cancelAnimationFrame(e.handle)}catch{}finally{e.resolve()}return!0}};function Ai(i){return S(i).replace(/&((?:#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,"&$1")}function Xt(i){try{return encodeURI(i).replace(/%25/g,"%")}catch{return null}}var le=100,ti=8192,Ei=2*1024*1024,Ii=512*1024,Li=256;function zi(i,e){let t=2166136261,r=2654435769,n=`${i}\0${e}`;for(let s=0;s<n.length;s++){let o=n.charCodeAt(s);t=Math.imul(t^o,16777619)>>>0,r=Math.imul(r^o,2246822507)>>>0}return`${i}:${e.length}:${t.toString(36)}:${r.toString(36)}`}function he(i,e){if(!i.has(e)){if(i.size>=Li){let t=i.values().next().value;t!==void 0&&i.delete(t)}i.add(e)}}async function ii(i,e,t=4){let r=[...new Map(i.map(o=>[o.key,o])).values()],n=0,s=async()=>{for(;n<r.length;){let o=r[n++];o&&await e(o)}};await Promise.all(Array.from({length:Math.min(t,r.length)},()=>s()))}function ri(i,e){let t=i.get(e);return t!==void 0&&(i.delete(e),i.set(e,t)),t}var Yt=new WeakMap;function de(i,e,t,r=le,n=Ei){let s=(e.length+t.length)*2;if(s>Ii||s>n)return!1;let o=Yt.get(i)??0,l=a=>{o-=(a.length+(i.get(a)??"").length)*2,i.delete(a)};for(i.has(e)&&l(e);i.size>=r||o+s>n;){let a=i.keys().next().value;if(a===void 0)break;l(a)}return i.set(e,t),Yt.set(i,o+s),!0}var Oi=/^\$(?![\s$])((?:\\\$|[^$])*?(?:\\\$|[^$\s\\]))\$(?![$\d])/;function $i(i){return{name:"math",level:"inline",start(e){let t=e.indexOf("$");return t===-1?void 0:t},tokenizer(e){if(e.startsWith("$$")){let r=e.indexOf("$$",2);if(r>2){let n=e.slice(0,r+2),s=e.slice(2,r).trim();if(s)return{type:"math",raw:n,tex:s,display:!0}}}let t=Oi.exec(e);if(t)return{type:"math",raw:t[0],tex:t[1].replace(/\\\$/g,"$").trim(),display:!1}},renderer(e){return i(e)}}}var _i="lyra-markdown-dompurify-unavailable",Di="<lr-markdown>/<lr-markdown-core>: HTML sanitization is unavailable because the optional DOMPurify peer could not load. Content is rendered as plain text unless trusted HTML is explicitly selected.";function Jt(){Q(_i,Di)}function Fi(i){return typeof i=="object"&&i!==null&&i.task===!0}function Pi(i,e){for(let t of e){if(typeof t!="object"||t===null)continue;let r=t;if(r.type!=="text"&&r.type!=="paragraph"||!Array.isArray(r.tokens))continue;let n=r.tokens.filter(o=>typeof o!="object"||o===null?!0:o.type!=="checkbox"),s=i.parser.parseInline(n,i.parser.textRenderer).replace(/\s+/g," ").trim();if(s)return s}return null}function ni(i){return ce(i).render(i.content)}function ce(i){let{marked:e,gfm:t,linkTarget:r,escapeHtmlOption:n,trustedHtmlOption:s,withoutImagesOption:o=!1,linkSchemesOption:l=null,highlightCodeOption:a,getCachedHighlight:h,failedHighlightKeys:p,headingAnchorsOption:c,mathOption:m,cachedKatex:k,pendingKeys:T,headingTreeOut:H}=i,M=F(i.headingOffset,0),A=i.slugger??new X,I=i.activeHighlightKeys??new Set,R=new Set(i.pendingKeys.map(({key:d})=>d)),E=[],$=!1,L=(i.markedConfigurations??[]).some(d=>!!(d?.renderer||d?.hooks||d?.extensions)),y=0,f=!1,w=i.codeBlockHeaderOption===!0&&i.rawContent!==void 0&&/^[\t ]*\t/m.test(i.rawContent)?Ki(i.rawContent,i.content,i.tabSize??4):void 0,_=i.codeBlockHeaderOption===!0&&!!(i.codeFrameNonce&&i.codeBlocksOut),O=(d,g,u)=>{let b=y++,x=g.text.replace(/\n$/,""),v=w?.(g.raw)??!1,C=i.codeBlocksOut;if(!_||!C||!x||g.escaped||C.length+(i.codeBlockIndexOffset??0)>=Nt)return d;let P=C.length+(i.codeBlockIndexOffset??0);return/^ +/m.test(x)&&v&&(f=!0),C.push({language:Wt(u),source:x,ordinal:b}),`<div part='code-block-frame' data-lr-code-frame='${i.codeFrameNonce}:${P}'>${d.replace(/\n$/,"")}</div>
|
|
2
|
+
`},z=new e.Marked;m&&z.use({extensions:[$i(d=>{if(!k)return $=!0,S(d.display?`$$${d.tex}$$`:`$${d.tex}$`);try{let g=k.renderToString(d.tex,{output:"mathml",throwOnError:!1,trust:!1,maxSize:20,maxExpand:1e3,strict:"ignore"});return`<span part='math' data-display='${d.display?"block":"inline"}'>${g}</span>`}catch{return S(d.display?`$$${d.tex}$$`:`$${d.tex}$`)}})]}),z.use({renderer:{heading(d){let g=Math.min(6,Math.max(1,d.depth+M)),u=this.parser.parseInline(d.tokens,this.parser.textRenderer),b=A.slug(u);H.push({id:b,label:u,level:g});let x=c&&b?` id='${S(b)}'`:"";return`<h${g} part='heading'${x}>${this.parser.parseInline(d.tokens)}</h${g}>
|
|
3
|
+
`},paragraph(d){return`<p part='paragraph'>${this.parser.parseInline(d.tokens)}</p>
|
|
4
|
+
`},list(d){let g=d.ordered,u=d.start,b=d.items.length>0&&d.items.every(Fi),x="";for(let P of d.items)x+=this.listitem(P);let v=g?"ol":"ul",C=g&&u!==1?` start='${u}'`:"";return`<${v}${b?g?" part='list task-list'":" part='list task-list' role='list'":" part='list'"}${C}>
|
|
5
|
+
${x}</${v}>
|
|
6
|
+
`},listitem(d){let g=d.task===!0,u=d.task===!0?Pi(this,d.tokens):null;E.push(u);try{return g?`<li${d.checked===!0?" part='task-item task-item-checked'":" part='task-item'"}>${this.parser.parse(d.tokens)}</li>
|
|
7
|
+
`:`<li>${this.parser.parse(d.tokens)}</li>
|
|
8
|
+
`}finally{E.pop()}},checkbox(d){let g=E.at(-1),u=d.checked?" checked=''":"",b=g?` aria-label='${S(g)}'`:"";return`<input part='task-checkbox'${u} disabled='' type='checkbox'${b}>`},code(d){let g=(d.lang??"").trim().split(/\s+/)[0]??"",u=`${d.text.replace(/\n$/,"")}
|
|
9
|
+
`,b=d.escaped?u:S(u);if(a&&g&&u.length<=ti){let v=zi(g,u);if(I.has(v)||I.size<le){I.add(v);let C=h(v);if(C!==void 0)return O(C,d,g);!p.has(v)&&!R.has(v)&&(R.add(v),T.push({key:v,lang:g,code:u}))}}let x=g?` class='language-${S(g)}'`:"";return O(`<pre part='code-block' tabindex='0'><code${x}>${b}</code></pre>
|
|
10
|
+
`,d,g)},codespan(d){return`<code part='inline-code'>${S(d.text)}</code>`},blockquote(d){return`<blockquote part='blockquote'>
|
|
11
|
+
${this.parser.parse(d.tokens)}</blockquote>
|
|
12
|
+
`},table(d){let g="";for(let v of d.header){let C=this.parser.parseInline(v.tokens),P=v.align?` align='${v.align}'`:"";g+=`<th scope='col'${P}>${C}</th>`}let u="";for(let v of d.rows){let C="";for(let P of v)C+=this.tablecell(P);u+=this.tablerow({text:C})}let b=`<thead>
|
|
13
|
+
${this.tablerow({text:g})}</thead>
|
|
14
|
+
`,x=u?`<tbody>${u}</tbody>
|
|
15
|
+
`:"";return`<div part='table-wrapper' role='group' tabindex='0'><table part='table'>
|
|
16
|
+
${b}${x}</table></div>
|
|
17
|
+
`},link(d){let g=this.parser.parseInline(d.tokens),u=Xt(d.href);if(u===null)return g;let b=l?ve(u,l):s?u:pt(u);if(b===null)return g;let x=d.title?` title='${S(d.title)}'`:"",v=r?` target='${S(r)}' rel='noopener noreferrer'`:"";return`<a part='link' href='${S(b)}'${x}${v}>${g}</a>`},image(d){let g=this.parser.parseInline(d.tokens,this.parser.textRenderer);if(o)return S(g);let u=Xt(d.href);if(u===null)return S(g);let b=s?u:gt(u);if(b===null)return S(g);let x=d.title?` title='${S(d.title)}'`:"";return`<img part='img' src='${S(b)}' alt='${S(g)}'${x}>`},html(d){return L=!0,n?S(d.text):d.text},text(d){return n&&d.escaped===!0&&!d.tokens?Ai(d.text):!1}}});for(let d of i.markedConfigurations??[]){if(!d||typeof d!="object")continue;let g=Object.fromEntries(Object.entries(d).filter(([,u])=>u!=null));Object.keys(g).length>0&&z.use(g)}let D=z;return{instance:D,render(d,g){let u,b={inLink:!1,inRawBlock:!1};if(g){let x={...z.defaults,gfm:t,async:!1},v=new D.Lexer(x);Object.assign(v.tokens.links,g.links),Object.assign(v.state,g.state);let C=v.lex(d);b={inLink:v.state.inLink,inRawBlock:v.state.inRawBlock},z.defaults.walkTokens&&D.walkTokens(C,z.defaults.walkTokens),u=D.parser(C,x)}else u=z.parse(d,{gfm:t,async:!1});if(typeof u!="string")throw new TypeError("The Markdown parser returned non-string markup.");return _&&i.rawContent!==void 0&&i.tabSize!==void 0&&f&&Bi(z,i,y),{html:u,hadMathFallback:$,hasRawHtml:L,state:b}}}}function Ki(i,e,t){let r=0,n;return s=>{if(!s)return!0;let o=e.indexOf(s,r);if(o<0)return!0;if(r=o+s.length,!n){n=[];let p=0;for(let c of i.matchAll(/[^\r\n\u2028\u2029]*(?:\r\n|[\r\n\u2028\u2029]|$)/g))c[0]&&(n.push({normalized:p,raw:c.index,end:c.index+c[0].length}),p+=ae(c[0],t).length);if(p!==e.length)return!0}let l=p=>{let c=0,m=n.length;for(;c+1<m;){let k=c+m>>>1;n[k].normalized<=p?c=k:m=k}return c},a=n[l(o)],h=n[l(Math.max(o,r-1))];return!a||!h||/^[\t ]*\t/m.test(i.slice(a.raw,h.end))}}function Bi(i,e,t){let r=i;if(!(typeof r.lexer!="function"||typeof r.walkTokens!="function"))try{let n={...i.defaults,gfm:e.gfm,async:!1},s=n.hooks,o=s?.preprocess?s.preprocess(e.rawContent):e.rawContent;if(typeof o!="string")return;let l=r.lexer(o,n);if(s?.processAllTokens&&(l=s.processAllTokens(l)),!Array.isArray(l))return;let a=[];if(r.walkTokens(l,h=>{h.type==="code"&&typeof h.text=="string"&&a.push(h.text.replace(/\n$/,""))}),a.length!==t)return;for(let h of e.codeBlocksOut??[]){let p=a[h.ordinal];p!==void 0&&ae(p,e.tabSize)===h.source&&(h.source=p)}}catch{}}var Zt=Symbol.for("@aceshooting/lyra-ui/markdown-katex-override");function ye(){return Reflect.has(globalThis,Zt)?{present:!0,value:Reflect.get(globalThis,Zt)}:{present:!1,value:null}}function Ur(){let i,e=!1,t=!1,r=new Set;return{getIfLoaded(){let n=ye();return n.present?n.value:i??null},isConfirmedMissing(){let n=ye();return(n.present?n.value:i)===null},startLoad(n){ye().present||i||t||(r.add(n),!e&&(e=!0,Vt().then(s=>{e=!1;let o=i!==s;i=s;let l=[...r];if(r.clear(),!!o){t=!0;try{for(let a of l)a()}finally{t=!1}}})))}}}function Ni(i){return{name:"lr-markdown-code-block",pre(e){e.properties.part=["code-block"],e.properties.tabindex="0"},code(e){let t=e.properties.class,r=Array.isArray(t)?t.map(String):t?[String(t)]:[];e.properties.class=[...r,`language-${i}`]}}}var si=/^#(?:[\da-f]{3}|[\da-f]{4}|[\da-f]{6}|[\da-f]{8})$/i,Wi={color:"data-lr-shiki-light","background-color":"data-lr-shiki-light-bg","--shiki-light":"data-lr-shiki-light","--shiki-light-bg":"data-lr-shiki-light-bg","--shiki-dark":"data-lr-shiki-dark","--shiki-dark-bg":"data-lr-shiki-dark-bg"},ji={"data-lr-shiki-light":"color","data-lr-shiki-light-bg":"background-color","data-lr-shiki-dark":"--shiki-dark","data-lr-shiki-dark-bg":"--shiki-dark-bg"};function Ui(i){return i.replace(/\sstyle=([\x22\x27])(.*?)\1/gi,(e,t,r)=>{let n=[];for(let s of r.split(";")){let o=s.indexOf(":");if(o<0)continue;let l=s.slice(0,o).trim().toLowerCase(),a=s.slice(o+1).trim(),h=Wi[l];h&&si.test(a)&&n.push(`${h}="${a}"`)}return n.length>0?` ${n.join(" ")}`:""})}function Gi(i){return i.includes("data-lr-shiki-")?i.replace(/<[a-z][^<>]*>/gi,e=>{let t=[],r=e.replace(/\s(data-lr-shiki-(?:light-bg|dark-bg|light|dark))=([\x22\x27])(#[\da-f]+)\2/gi,(n,s,o,l)=>{let a=ji[s.toLowerCase()];return!a||!si.test(l)?n:(t.push(`${a}:${l}`),"")});return t.length===0?r:`${r.slice(0,-1)} style="${t.join(";")}">`}):i}var qi=/<(?:img|image|feimage|input|source|video)\b/i;function Qi(i){if(!qi.test(i))return i;let e=document.createElement("template");e.innerHTML=i;let t=e.content,r=t.ownerDocument,n=!1;for(let s of t.querySelectorAll("img, input"))s.localName==="input"&&s.getAttribute("type")?.trim().toLowerCase()!=="image"||(s.replaceWith(r.createTextNode(s.getAttribute("alt")??"")),n=!0);for(let s of t.querySelectorAll("picture source, image, feImage"))s.remove(),n=!0;for(let s of t.querySelectorAll("video[poster]"))s.removeAttribute("poster"),n=!0;return n?e.innerHTML:i}var Vi="http://www.w3.org/1999/xlink";function Xi(i,e){if(!/<(?:a|area)[\s/>]/i.test(i))return i;let t=document.createElement("template");t.innerHTML=i;let r=!1;for(let n of t.content.querySelectorAll("a, area"))[n.getAttribute("href"),n.getAttributeNS(Vi,"href")].every(s=>s===null||ve(s,e)!==null)||(n.localName==="area"?n.remove():n.replaceWith(...n.childNodes),r=!0);return r?t.innerHTML:i}function Yi(i){if(!/target/i.test(i))return i;let e=document.createElement("template");e.innerHTML=i;let t=!1;for(let r of e.content.querySelectorAll("a[target],area[target],form[target]")){let n=mt(r.getAttribute("rel"),"target");n!==r.getAttribute("rel")&&(r.setAttribute("rel",n),t=!0)}return t?e.innerHTML:i}function Gr(i,e){if(e.code.length>ti)return null;try{let t=i.codeToHtml(e.code,{lang:te(e.lang),themes:Et,transformers:[Ni(e.lang)]});return typeof t=="string"?`${Ui(t)}
|
|
18
|
+
`:null}catch{return null}}var Re=new WeakMap;function oi(i,e){let t=(Re.get(i)??0)+1;Re.set(i,t);let r=Kt();if(r){e(r);return}Pt().then(n=>{!i.isConnected||Re.get(i)!==t||e(n)})}function Te(i){return i.has("content")||i.has("tabSize")||i.has("htmlMode")||i.has("withoutGfm")||i.has("withoutImages")||i.has("linkTarget")||i.has("linkSchemes")||i.has("headingOffset")||i.has("streaming")||i.has("headingAnchors")||i.has("math")||i.has("withoutSyntaxHighlighting")||i.has("languages")||i.has("languageLoaders")||i.has("codeBlockHeader")||i.has("streamingRender")}function He(i){return i.has("withoutSyntaxHighlighting")||Ji(i)||i.has("codeBlockHeader")}function Ji(i){return i.has("languages")||i.has("languageLoaders")}function ge(i){return i==="progressive"?"progressive":"plain"}function N(i){return i==="escape"||i==="trusted"?i:"sanitize"}function Me(i){return i.htmlMode!=="sanitize"?null:{ADD_ATTR:["target"],FORBID_ATTR:["style","data-lr-code-chrome"],...i.codeBlockHeader||i.withoutImages?{FORBID_TAGS:["style"]}:{},...i.math?{ADD_TAGS:["semantics","annotation"]}:{}}}function ai(i){let{deps:e,tag:t}=i;if(!e.marked)return{status:"fallback",error:new Error(`<${t}> could not render: the "marked" peer dependency failed to load.`),headingTree:null};let r=[],n=[],s,o,l=!0;try{let k=i.parse(e.marked,r,n);s=k.html,o=k.hadMathFallback,l=k.hasRawHtml!==!1}catch(k){return{status:"fallback",error:k,headingTree:null}}i.onParsed();let a=o&&i.isKatexConfirmedMissing(),h=Me({...i,codeBlockHeader:i.codeBlockHeader??!1}),p=i.withoutImages??!1,c=i.linkSchemes??null;if(h===null)return{status:"rendered",html:se(e,null,s,l,p,c),headingTree:n,mathFailed:a,pendingKeys:r};if(!e.DOMPurify){let k=new Error(`<${t}> could not render: sanitize is enabled (the default) but the "dompurify" peer dependency failed to load \u2014 refusing to render unsanitized HTML. Install it with \`pnpm add dompurify\`, or set html-mode="trusted" to explicitly opt out of sanitization.`);return Jt(),{status:"fallback",error:k,headingTree:n}}let m;try{m=se(e,h,s,l,p,c)}catch(k){return Jt(),{status:"fallback",error:k,headingTree:n}}return{status:"rendered",html:m,headingTree:n,mathFailed:a,pendingKeys:r}}function se(i,e,t,r=!0,n=!1,s=null){if(typeof t!="string")throw new TypeError("The Markdown parser returned non-string markup.");let o=t;if(e!==null){if(!i.DOMPurify)throw new Error("The HTML sanitizer is unavailable.");let p=i.DOMPurify.sanitize(t,e);if(typeof p!="string")throw new TypeError("The HTML sanitizer returned non-string markup.");o=p}let l=Gi(o),a=r?Yi(l):l,h=s?Xi(a,s):a;return n?Qi(h):h}function li(i){return new Error(`<${i}> needs the optional peer dependency \`katex\` to render math (the \`math\` property is set) \u2014 install it with \`pnpm add katex\`.`)}function hi(i,e){e?i.setAttribute("aria-busy","true"):i.removeAttribute("aria-busy")}function di(i,e,t){return Ot(i,t,e.id)}function ci(i,e,t){let r=t.resolve(e),n=r?wt(t.scope,r):null;return n?($t(i,n),!0):!1}var Se=typeof Element>"u"?void 0:Element.prototype.getAttribute,ei=typeof HTMLAnchorElement>"u"?void 0:Object.getOwnPropertyDescriptor(HTMLAnchorElement.prototype,"href")?.get;function Ce(i){if(!(typeof i!="object"&&typeof i!="function"||i===null)&&!(!Se||!ei))try{return Se.call(i,"data-lr-brand-probe"),ei.call(i),i}catch{return}}function Zi(i,e){try{let t=Se?.call(i,e);return typeof t=="string"?t:void 0}catch{return}}function gi(i,e){if(!e||i.defaultPrevented||i.button>0||i.ctrlKey||i.metaKey||i.shiftKey||i.altKey)return null;let t=i.composedPath().find(n=>Ce(n)!==void 0);if(!t)return null;let r=Zi(t,"href")??"";return r.startsWith(e)?r:null}function pi(i){return i("markdownTableRegion")}var oe='[part="table-wrapper"][role="group"]';function pe(i){return i?.nodeType===1&&i.matches(oe)||i?.querySelector(oe)!=null}function ui(i,e){if(!i)return;let t=[...i?.nodeType===1&&i.matches(oe)?[i]:[],...i.querySelectorAll(oe)];t.forEach((r,n)=>{let s=typeof e=="string"?e:e(n+1,t.length);r.getAttribute("aria-label")!==s&&r.setAttribute("aria-label",s)})}function mi(i){let e=!i.progressive&&i.renderedHtml===null,t=i.progressive?.tail,r=Ze(i.maxHeight);return K`<div
|
|
19
|
+
part="content"
|
|
20
|
+
role="document"
|
|
21
|
+
tabindex=${i.content.trim()?"0":U}
|
|
22
|
+
aria-label=${Fe(i.hostAriaLabel)??U}
|
|
23
|
+
?data-fallback=${e}
|
|
24
|
+
?data-unsanitized=${!i.sanitized}
|
|
25
|
+
data-dark-theme=${i.isDarkTheme?"true":U}
|
|
26
|
+
style=${r?ft({"--lr-markdown-max-height":r,"overflow-block":"auto"}):U}
|
|
27
|
+
@click=${i.onClick}
|
|
28
|
+
>${i.progressive?K`${_t(i.progressive.blocks,i.progressive.revision??0,i.progressive.changedFrom??0)}${t?t.kind==="open-fence"?K`<pre part="code-block" tabindex="0"><code>${B(t.text)}</code></pre>`:K`<div part="streaming-tail">${B(t.text)}</div>`:U}`:e?i.fallbackSegments?.map(n=>n.kind==="prose"?B(n.text):n.kind==="block"?K`<span class="fallback-code">${B(n.text)}</span>`:K`<span class="fallback-inline-code">${B(n.text)}</span>`)??B(i.content):It(i.renderedHtml)}</div>${i.liveRegion}`}function Ae(i){let e=/^([\t ]*)(`{3,}|~{3,})([^\r\n]*)\r?$/.exec(i);if(!e)return null;let t=e[2],r=e[3];return t[0]==="`"&&r.includes("`")?null:{char:t[0],length:t.length,indent:e[1].length,info:r}}function fi(i,e){return e.char===i.char&&e.length>=i.length&&!/[^ \t]/.test(e.info)}function ue(i){if(!/^ {0,3}[`~]/.test(i))return null;let e=i.indexOf(`
|
|
29
|
+
`);if(e<0)return null;let t=Ae(i.slice(0,e));return t&&{...t,end:e+1}}function Ee(i){return new RegExp(`^ {0,3}${i.char}{${i.length},}[ ]*\r?$`,"m")}var Ie=128,ki=128,er=64,me=class{constructor(){this.source="",this.lineStart=0,this.scannedTo=0,this.proseStart=0,this.blockStart=0,this.fence=null,this.blocks=0,this.inlines=0,this.ticks=[],this.activeTick=null,this.slashes=0,this.tailPairs=[],this.pendingTick=0,this.committed=[],this.lastResult=null,this.examined=0,this.probe="indent",this.probeMarker="",this.probeCount=0,this.probeIndent=0}get scannedCodeUnits(){return this.examined}reset(){this.source="",this.lineStart=this.scannedTo=this.proseStart=this.blockStart=0,this.fence=null,this.blocks=this.inlines=this.examined=0,this.ticks=[],this.activeTick=null,this.slashes=0,this.tailPairs=[],this.pendingTick=0,this.committed.length=0,this.lastResult=null,this.resetProbe()}segments(e){if(e===this.source)return this.lastResult;for(e.startsWith(this.source)||this.reset(),this.source=e;this.scannedTo<e.length;){let n=this.scannedTo++,s=e[n];if(this.examined++,s===`
|
|
30
|
+
`){this.finishTick(),this.finishLine(n+1);continue}this.probeCharacter(s),s==="`"?this.activeTick?this.activeTick.end=n+1:this.activeTick={start:n,end:n+1,escaped:this.slashes%2===1}:this.finishTick(),this.slashes=s==="\\"?this.slashes+1:0}let t=[...this.committed],r=(n,s,o)=>{o>s&&t.push({kind:n,text:e.slice(s,o)})};if(this.fence)r("block",this.blockStart,e.length);else if(this.blocks<Ie&&this.probe!=="invalid"&&this.probeCount>=3)r("prose",this.proseStart,this.lineStart),r("block",this.lineStart,e.length);else{let n=this.proseStart;if(!(this.blocks<Ie&&this.probe!=="invalid"&&this.probe!=="info"&&this.probeCount<3))for(let[s,o]of this.tailPairs)r("prose",n,s),r("inline",s,o),n=o;r("prose",n,e.length)}return this.lastResult=t.some(({kind:n})=>n!=="prose")?t:null,this.lastResult}resetProbe(){this.probe="indent",this.probeMarker="",this.probeCount=this.probeIndent=0}probeCharacter(e){if(this.probe!=="invalid"){if(this.probe==="indent"){if(e===" "||e===" "){++this.probeIndent>=er&&(this.probe="invalid");return}if(e!=="`"&&e!=="~"){this.probe="invalid";return}this.probeMarker=e,this.probe=e==="`"?"ticks":"tildes"}if(this.probe==="ticks"||this.probe==="tildes"){if(e===this.probeMarker){this.probeCount++;return}if(this.probeCount<3){this.probe="invalid";return}this.probe="info"}this.probeMarker==="`"&&e==="`"&&(this.probe="invalid")}}finishTick(){let e=this.activeTick;if(e&&(this.activeTick=null,this.ticks.push(e),!(this.fence||this.inlines+this.tailPairs.length>=ki)))for(;this.pendingTick<this.ticks.length;){let t=this.ticks[this.pendingTick],r=t.start+(t.escaped?1:0);if(r===t.end){this.pendingTick++;continue}if(e===t||e.end-e.start!==t.end-r)return;this.tailPairs.push([r,e.end]),this.pendingTick=this.ticks.length}}commit(e,t,r){r>t&&this.committed.push({kind:e,text:this.source.slice(t,r)})}finishLine(e){let t=this.source.slice(this.lineStart,e-1);this.examined+=t.length;let r=Ae(t);if(this.fence)r&&fi(this.fence,r)&&(this.commit("block",this.blockStart,e),this.blocks++,this.fence=null,this.proseStart=e);else if(r&&this.blocks<Ie)this.commit("prose",this.proseStart,this.lineStart),this.blockStart=this.lineStart,this.fence=r;else{let n=new Map,s=new Map;for(let o=this.ticks.length-1;o>=0;o--){let l=this.ticks[o],a=l.end-l.start-(l.escaped?1:0),h=n.get(a);h!==void 0&&s.set(o,h),n.set(l.end-l.start,o)}for(let o=0;o<this.ticks.length&&this.inlines<ki;o++){let l=s.get(o);if(l===void 0)continue;let a=this.ticks[o],h=a.start+(a.escaped?1:0);this.commit("prose",this.proseStart,h),this.proseStart=this.ticks[l].end,this.commit("inline",h,this.proseStart),this.inlines++,o=l}}this.lineStart=e,this.ticks=[],this.tailPairs=[],this.pendingTick=0,this.slashes=0,this.resetProbe()}};var tr=2048,ir=32,rr=65536,nr=2e3,bi=32768,sr=8192,or=8;function wi(i,e){if(typeof i.Lexer!="function"||typeof i.parser!="function"||typeof i.walkTokens!="function")return!1;let t=i.defaults;if(t.pedantic===!0||t.async===!0)return!1;let r=t.extensions;if(r?.block?.length||r?.startBlock?.length)return!1;for(let[n,s]of[["tokenizer",i.Tokenizer],["hooks",i.Hooks]]){let o=t[n];if(o!=null&&(typeof o!="object"||Object.values(o).some(l=>typeof l=="function")||s&&o.constructor!==s))return!1}try{let n=new i.Lexer({...t,gfm:e,async:!1});return!!(n.tokens?.links&&n.state&&typeof n.blockTokens=="function"&&typeof n.options.tokenizer?.def=="function")}catch{return!1}}var J=class{constructor(e){this.tabSize=e,this.raw="",this.text="",this.completeEnd=0,this.displayEnd=0,this.processed=0,this.column=0,this.leading=!0,this.lineHasText=!1,this.starts=[[0,0]]}append(e,t=!1){this.raw=e;let r="";for(let n=this.processed;n<e.length;n++){let s=e[n];if(s==="\r"&&n===e.length-1&&!t)break;if(s==="\r"||s===`
|
|
31
|
+
`)s==="\r"&&e[n+1]===`
|
|
32
|
+
`&&n++,r+=`
|
|
33
|
+
`,this.completeEnd=this.text.length+r.length,this.lineHasText&&(this.displayEnd=this.completeEnd),this.lineHasText=!1,this.column=0,this.leading=!0,this.starts.push([this.completeEnd,n+1]);else{if(this.leading&&(s===" "||s===" ")){let o=s===" "?this.tabSize-this.column%this.tabSize:1;r+=" ".repeat(o),this.column+=o}else r+=s,this.leading=s==="\u2028"||s==="\u2029",this.leading&&(this.column=0);/\s/.test(s)||(this.lineHasText=!0),this.lineHasText&&(this.displayEnd=this.text.length+r.length)}this.processed=n+1}this.text+=r}rawOffset(e){let t=0,r=this.starts.length;for(;t+1<r;){let o=t+r>>>1;this.starts[o][0]<=e?t=o:r=o}let[n,s]=this.starts[t];return e===n?s:e===this.text.length?this.raw.length:s+e-n}};function ar(i){let e=/^( *)(\S)/.exec(i);return!!(e&&(e[1].length>=4||!/[#>*+\-=_`~<|["'(\d]/.test(e[2])))}function vi(i,e=i.length){let t=ue(i);return t?Ee(t).test(i.slice(t.end,e).replace(/[^\n]*$/,"")):!1}function lr(i){let e=[],t=/^(?:area|base|br|col|embed|hr|img|input|link|meta|source|track|wbr|basefont|bgsound|frame|keygen|param)$/,r=0;for(;r<i.length;){let n=e.at(-1);if(n&&/^(?:script|style|textarea|title|xmp|iframe|noembed|noframes|noscript|plaintext)$/.test(n)){if(n==="plaintext")return!1;let h=new RegExp(`</${n}(?=[\\s>])`,"ig");h.lastIndex=r;let p=h.exec(i);if(!p)return!1;r=p.index}else if(r=i.indexOf("<",r),r<0)break;if(i.startsWith("<!--",r)){let h=i.indexOf("-->",r+4);if(h<0)return!1;r=h+3;continue}if(/^[!?]/.test(i[r+1]??"")){let h=i.indexOf(">",r+2);if(h<0)return!1;r=h+1;continue}let s=/^<\/?([a-z][\w:-]*)/i.exec(i.slice(r));if(!s){r++;continue}let o=s[1].toLowerCase(),l="",a=r+s[0].length;for(;a<i.length;a++){let h=i[a];if(l)h===l&&(l="");else if(h==='"'||h==="'")l=h;else if(h===">")break}if(a===i.length)return!1;if(i[r+1]==="/"){let h=e.lastIndexOf(o);h>=0&&e.splice(h,1)}else!t.test(o)&&!(i[a-1]==="/"&&(e.includes("svg")||e.includes("math")||o==="svg"||o==="math"))&&e.push(o);r=a+1}return e.length===0}function hr(i,e){let t=/^ {0,3}\[(?!\s*\])(?:\\[\s\S]|[^[\]\\])+\]: *(?:\n[ \t]*)?(?:[^<\s][^\s]*|<.*?>)(?: +(?:\n[ \t]*)?| *\n[ \t]*)(["'(])/.exec(i);if(!t)return!1;let r=e?.(i);if(r&&r.title!=null)return!1;let n=i.slice(t[0].length,i.lastIndexOf(`
|
|
34
|
+
`)+1);return t[1]==='"'?!/(^|[^\\])"/.test(n):t[1]==="("?!/[()]/.test(n):!/'|\n\n/.test(n)}var fe=class{changed(e){this.changedFrom=Math.min(this.changedFrom??e,e),this.projectionFrom=Math.min(this.projectionFrom,e)}takeChangedFrom(){let e=this.changedFrom;return this.changedFrom=void 0,e}project(){if(this.projectionFrom===1/0)return;let e=this.projectionFrom;this.projectedRecords.length=this.recordEnds[e-1]??0,this.projectedHeadings.length=this.headingEnds[e-1]??0;for(let t=e;t<this.blocks.length;t++){let r=this.blocks[t];this.projectedRecords.push(...r.codeBlocks),this.projectedHeadings.push(...r.headings),this.recordEnds[t]=this.projectedRecords.length,this.headingEnds[t]=this.projectedHeadings.length}this.recordEnds.length=this.headingEnds.length=this.blocks.length,this.projectionFrom=1/0}recordOffset(e){return this.project(),this.recordEnds[e-1]??0}constructor(e,t){this.options=e,this.blocks=[],this.stats={frames:0,lexedUnits:0,committedUnits:0,groupRenders:0,recomputes:0,stalls:0,highlightDispatches:0},this.projectionFrom=0,this.projectedRecords=[],this.projectedHeadings=[],this.recordEnds=[],this.headingEnds=[],this.committedEnd=0,this.definitions=Object.create(null),this.committedDefinitions=Object.create(null),this.definitionChanges=0,this.deferredDefinitions=!1,this.plan=[],this.planIndex=0,this.lastLexEnd=-1,this.lastLexStart=-1,this.lastLexSize=0,this.lastCompleteEnd=-1,this.lastDecisive=!1,this.hintsEnabled=!0,this.waitForInput=!1,this.frozen=!1,this.eof=!1,this.slugger=new X,this.sluggerDirty=!1,this.invalidated=new Set,this.highlightQueue=new Map,this.memo=new Map,this.normalized=new J(e.tabSize),this.replayEnds=t?.map(r=>r.end)??[]}suspend(){this.suspendedSource=this.source,this.normalized=new J(this.options.tabSize),this.plan=[],this.planIndex=0,this.memo.clear(),this.highlightQueue.clear(),this.fenceScan=void 0,this.lastLexEnd=this.lastCompleteEnd=-1}restoreSource(){if(this.suspendedSource===void 0)return;let e=this.suspendedSource;this.suspendedSource=void 0,this.normalized.append(e,this.eof)}get source(){return this.suspendedSource??this.normalized.raw}get end(){return this.committedEnd}get failed(){return this.frozen}get records(){return this.project(),this.projectedRecords}get headings(){return this.project(),this.projectedHeadings}get pending(){return!this.frozen&&(!this.waitForInput&&this.planIndex<this.plan.length||this.recomputeFrom!==void 0||this.highlightQueue.size>0)}update(e){if(this.restoreSource(),e!==this.source){if(e.startsWith(this.source))this.normalized.append(e);else{let t=JSON.stringify(this.definitions),r=0,n=Math.min(e.length,this.source.length)+1;for(;r+1<n;){let o=r+n>>>1;e.startsWith(this.source.slice(0,o))?r=o:n=o}let s=this.blocks.findIndex(o=>o.evidenceEnd>r);s>=0&&(this.blocks.length=s,this.changed(s)),this.committedEnd=this.blocks.at(-1)?.end??0,this.sluggerDirty=!0,this.normalized=new J(this.options.tabSize),this.definitions=Object.create(null),this.committedDefinitions=Object.create(null),this.definitionChanges=0,this.deferredDefinitions=!1,this.memo.clear(),this.frozen=!1,this.lastLexEnd=this.lastCompleteEnd=-1,this.normalized.append(e);for(let o of this.blocks)for(let[l,a]of Object.entries(o.definitions))l in this.definitions||(this.definitions[l]=a);Object.assign(this.committedDefinitions,this.definitions),t!==JSON.stringify(this.definitions)&&this.blocks.forEach((o,l)=>{o.source.includes("[")&&this.invalidate(l)}),this.plan=[],this.planIndex=0}this.waitForInput&&(this.plan=[],this.planIndex=0),this.waitForInput=!1}}resume(){this.restoreSource();let e=this.blocks.findIndex(t=>t.eofOnly);if(e>=0&&(this.blocks.length=e,this.changed(e)),this.committedEnd=this.blocks.at(-1)?.end??0,e>=0){let t=JSON.stringify(this.definitions),r=this.lexer();r.blockTokens(this.normalized.text.slice(0,this.committedEnd),r.tokens),this.committedDefinitions={...r.tokens.links},this.definitions={...this.committedDefinitions},t!==JSON.stringify(this.definitions)&&this.blocks.forEach((n,s)=>{n.source.includes("[")&&this.invalidate(s)})}this.sluggerDirty=!0,this.eof=!1,this.plan=[],this.planIndex=0,this.lastLexEnd=this.lastCompleteEnd=-1,this.waitForInput=!1}invalidateHighlights(e){let t=new Set(e);this.blocks.forEach((r,n)=>{r.pendingKeys.some(({key:s})=>t.has(s))&&this.invalidate(n)}),this.memo.clear()}invalidateMath(){this.blocks.forEach((e,t)=>{e.hadMathFallback&&this.invalidate(t)}),this.memo.clear()}invalidate(e){this.invalidated.add(e),this.recomputeFrom=Math.min(this.recomputeFrom??e,e),this.sluggerDirty=!0}nextHighlight(){let e=this.highlightQueue.entries().next().value;if(e)return this.highlightQueue.delete(e[0]),this.stats.highlightDispatches++,e[1]}lexer(){return new this.options.parser.Lexer({...this.options.parser.defaults,gfm:this.options.gfm,async:!1})}preparePlan(e){let t=this.normalized.text,r=this.committedEnd;r!==this.lastLexStart&&(this.lastLexStart=r,this.lastLexEnd=r,this.lastLexSize=0,this.lastCompleteEnd=-1,this.fenceScan=void 0);let n=this.normalized.completeEnd,s=t.slice(n),o=ar(s),l=e||o?t.length:n,a=l-r;if(!e&&n===this.lastCompleteEnd&&o===this.lastDecisive)return;let h=t.slice(Math.max(r,this.lastLexEnd)),p=this.hintsEnabled&&/\n[ \t]*\n(?|\d{1,9}[.)](?:\s|$))[^\s]/.test(h),c=t.slice(r,l),m=ue(c),k=!1;if(m){this.fenceScan?.start!==r&&(this.fenceScan={start:r,end:r+m.end,closed:!1});let f=this.fenceScan,w=Ee(m);if(!f.closed&&n>f.end&&(f.closed=w.test(t.slice(f.end,n).replace(/[^\n]*$/,"")),k=f.closed,f.end=n),!e&&this.lastLexEnd>=r+m.end&&!f.closed){this.lastCompleteEnd=n,this.lastDecisive=o;return}}if(!e&&!k&&a>16384&&a<this.lastLexSize*1.25&&a-this.lastLexSize<16384&&!p)return;this.lastCompleteEnd=n,this.lastDecisive=o,this.lastLexEnd=l,this.lastLexSize=a,this.stats.lexedUnits+=c.length;let T=this.lexer();T.blockTokens(c,T.tokens);let H=T.tokens,M=[],A=0;for(let f of H){for(;!c.startsWith(f.raw,A);){let w=T.options.tokenizer?.def?.(c.slice(A));if(w?.raw&&typeof w.tag=="string"&&T.tokens.links[w.tag])A+=w.raw.length;else{this.stats.stalls++;return}}A+=f.raw.length,M.push(A)}let I=H.length-1;for(;I>=0&&H[I].type==="space";)I--;let R=[],E=r,$;for(let f=0;f<=I;f++){let w=H[f];if(w.type==="space")continue;let _=M[f],O=f+1;for(;O<H.length&&H[O].type==="space";)O++;let z=O<H.length,D=_-w.raw.length,d=r+_<=n&&(w.type==="heading"||w.type==="hr"||w.type==="code"&&vi(w.raw));if(!d&&/^(?:paragraph|table|blockquote|def|html)$/.test(w.type)){let u=w.type==="html"&&/^ {0,3}(?:<(?:script|pre|style|textarea)[\s>]|<!--|<\?|<![A-Z]|<!\[CDATA\[)/i.test(w.raw),b=c[_-1]===`
|
|
35
|
+
`?_:c.indexOf(`
|
|
36
|
+
`,_)+1,x=b>0?c.indexOf(`
|
|
37
|
+
`,b):-1;d=!u&&x>=0&&/^[\t ]*$/.test(c.slice(b,x))}if(!e&&c.length-D<bi&&hr(c.slice(D),T.options.tokenizer?.def?.bind(T.options.tokenizer))){$=D;break}if(!e&&!z&&!d)break;let g=r+(O>f+1?M[O-1]:_);R.push({start:E,end:g,evidenceEnd:d?g:r+(M[O]??c.length),eofOnly:!z&&!d}),E=g}e&&E<t.length&&R.push({start:E,end:t.length,evidenceEnd:t.length,eofOnly:!0});let L={...this.committedDefinitions},y=H.links;if($!==void 0&&!e){let f=this.lexer();f.blockTokens(c.slice(0,$),f.tokens),y=f.tokens.links}for(let[f,w]of Object.entries(y))f in L||(L[f]=w);JSON.stringify(L)!==JSON.stringify(this.definitions)&&(this.definitions=L,this.memo.clear(),this.definitionChanges++,e||this.definitionChanges<=or?this.blocks.forEach((f,w)=>{f.source.includes("[")&&this.invalidate(w)}):this.deferredDefinitions=!0),this.plan=R,this.planIndex=0,this.hintsEnabled=!p||R.length>0}step(e=!1,t=!1,r=1/0){if(this.restoreSource(),this.frozen)return;this.stats.frames++,e&&(this.eof=!0,this.normalized.append(this.source,!0),this.plan=[],this.planIndex=0,this.lastCompleteEnd=-1,this.deferredDefinitions&&this.blocks.forEach((l,a)=>{l.source.includes("[")&&this.invalidate(a)}));let n=e||t?1/0:ir,s=0,o=0;try{if(this.planIndex>=this.plan.length&&this.preparePlan(e),this.sluggerDirty){this.slugger=new X;let l=Math.min(this.recomputeFrom??this.blocks.length,this.blocks.length);for(let a=0;a<l;a++)for(let h of this.blocks[a].headings)this.slugger.slug(h.label);this.sluggerDirty=!1}for(;this.recomputeFrom!==void 0&&s<n;){let l=this.recomputeFrom;this.recomputeFrom=l+1<this.blocks.length?l+1:void 0;let a=this.blocks[l];if(!a)continue;let h=this.blocks[l-1]?.state??{inLink:!1,inRawBlock:!1},p=this.slugger,c=!1,m=p.clone();for(let R of a.headings)m.slug(R.label)!==R.id&&(c=!0);let k=a.seedState.inLink!==h.inLink||a.seedState.inRawBlock!==h.inRawBlock;if(!this.invalidated.delete(l)&&!c&&!k){this.slugger=m;continue}let T=this.recordOffset(l),H=this.options.render(a.source,this.rawSlice(a.start,a.end),this.definitions,h,p,T),{rawHtml:M,pendingKeys:A,...I}=H;this.blocks[l]={...a,...I,pendingKeys:A.map(({key:R})=>({key:R})),seedState:{...h}},this.changed(l),s++,this.stats.groupRenders++,this.stats.recomputes++}for(;this.planIndex<this.plan.length&&s<n&&this.committedEnd<r;){if(this.blocks.length>=nr){this.frozen=!0;break}let l=this.plan[this.planIndex],a=this.planIndex,h=this.replayEnds[this.blocks.length];for(;a+1<this.plan.length;){let c=this.plan[a+1];if(h!==void 0?c.end>h:c.end-l.start>tr)break;a++}let p=!1;for(;a<this.plan.length&&s<n;){let c=this.plan[a],m=this.normalized.text.slice(l.start,c.end);if(!e&&!t&&o>0&&o+m.length>rr)return;let k=this.blocks.at(-1)?.state??{inLink:!1,inRawBlock:!1},T=this.slugger,H=`${l.start}:${c.end}`,M=this.memo.get(H);if(!M){let y=T.clone();M={result:this.options.render(m,this.rawSlice(l.start,c.end),this.definitions,k,y,this.records.length),slugger:y},this.memo.set(H,M),s++,this.stats.groupRenders++}let A=lr(M.result.rawHtml);if(!e&&!A&&m.length<bi){a++;continue}let{rawHtml:I,pendingKeys:R,...E}=M.result,$={...E,pendingKeys:R.map(({key:y})=>({key:y})),definitions:Object.create(null),source:m,start:l.start,end:c.end,evidenceEnd:this.normalized.rawOffset(Math.max(...this.plan.slice(this.planIndex,a+1).map(y=>y.evidenceEnd))),eofOnly:this.plan.slice(this.planIndex,a+1).some(y=>y.eofOnly),balanced:A,seedState:{...k}};this.changed(this.blocks.length),this.blocks.push($),this.slugger=M.slugger,this.memo.clear();let L=this.lexer();L.blockTokens(m,L.tokens),this.stats.lexedUnits+=m.length,$.definitions={...L.tokens.links};for(let[y,f]of Object.entries(L.tokens.links))y in this.committedDefinitions||(this.committedDefinitions[y]=f);this.committedEnd=c.end,o+=m.length,this.stats.committedUnits+=m.length;for(let y of R)y.code.length<=sr&&this.highlightQueue.set(y.key,y);this.planIndex=a+1,this.planIndex===this.plan.length&&(this.lastCompleteEnd=-1),this.waitForInput=!1,p=!0;break}if(!p){this.waitForInput=a>=this.plan.length;break}}}catch{this.frozen=!0}}rawSlice(e,t){return this.source.slice(this.normalized.rawOffset(e),this.normalized.rawOffset(t))}get tail(){let e=this.normalized.text.slice(this.committedEnd);if(!e||this.eof)return null;let t=!this.frozen&&ue(e),r=this.fenceScan?.start===this.committedEnd?this.fenceScan.closed:vi(e);if(t&&!r){let s=e.slice(t.end);return t.char==="`"&&t.indent&&(s=s.replace(new RegExp(`^ {0,${t.indent}}`,"gm"),"")),{kind:"open-fence",text:s}}let n=this.normalized.text.slice(this.committedEnd,Math.max(this.committedEnd,this.normalized.displayEnd));return n?{kind:"text",text:n}:null}};var ke,Le;function xi(){return Le??=import("./text-quote-index-43G6MA3W.js").then(i=>ke=i,i=>{throw Le=void 0,i}),Le}function Rn(i,e){return{tag:i,connectedInstances:new Set,sharedParser:new Y,katexState:e}}var dr="lyra-markdown-highlight-failed",cr="<lr-markdown>/<lr-markdown-core>: Syntax highlighting could not complete. Code is rendered as plain text.";function gr(i,e){let t=e.clientX===0&&e.clientY===0&&e.screenX===0&&e.screenY===0;if(e.detail!==0&&!t)return null;let r=e.composedPath().find(n=>Ce(n)!==void 0);if(!r)return null;for(let n=i.length-1;n>=0;n--){let s=i[n];if(s)try{if(s.range.intersectsNode(r))return s.id}catch{}}return null}var ze=class extends De{static{this.defaultStrings={...super.defaultStrings,anchorJumped:je,anchorJumpedToPage:Ue,anchorNotFound:Ge,codeRegion:et,codeRegionIndexed:tt,codeRegionWithLanguage:it,codeRegionWithLanguageIndexed:rt,copiedToClipboard:nt,copyCode:st,copyCodeIndexed:ot,copyFailed:qe,markdownTableRegion:at,markdownTableRegionIndexed:lt}}},pr=new Map,yi=new WeakMap,ur=1;function mr(i,e){if(!i)return`default:${e}`;let t=yi.get(i);return t===void 0&&(t=ur++,yi.set(i,t)),`${t}:${e}`}var W=class extends yt(ze){get highlightLanguageSources(){return this.languages}constructor(){super(),this.anchorKinds=["fragment","text-quote"],this.renderedHtml=null,this.renderedBlocks=[],this.streamingTail=null,this.progressiveRevision=0,this.progressiveChangedFrom=0,this.isDarkTheme=!1,this.boundLocalize=this.localize.bind(this),this.hasTableWrappers=!1,this.fallbackCode=new me,this.parser=new Y,this.headingTree=[],this.markdownTextScopeBuilds=0,this.resolvedHighlightRanges=[],this.mathFailureReported=!1,this.highlightCache=pr,this.completedHighlights=new Map,this.highlightToken=0,this.streamingRenderFrames=new ne,this.failedHighlightKeys=new Set,this.inFlightHighlightKeys=new Map,this.progressiveAdopted=!1,this.progressiveRebuild=!1,this.progressiveInputGeneration=0,this.codeBlocks=[],this.handleKatexResolved=()=>{this.isConnected&&(this.progressiveSession&&this.streaming?(this.progressiveSession.invalidateMath(),this.scheduleStreamingRender()):this.renderMarkdown())},this.teardown=new ut(()=>this.releaseHighlightState()),this.repaintAfterConnect=!1,this.renderingDuringUpdate=!1,this.onContentClick=e=>{if(this.codeHeader.handleClick(e))return;let t=gi(e,this.internalLinkPrefix);t!==null&&e.preventDefault();let r=we(this.resolvedHighlightRanges,e.clientX,e.clientY)??gr(this.resolvedHighlightRanges,e);r&&this.emit("lr-highlight-activate",{highlightId:r}),t!==null&&this.emit("lr-link-activate",{href:t})},new Ct(this,()=>this.refreshTheme()),this.codeHeader=new re(this,{isEnabled:()=>this.codeBlockHeader,getChangedRoots:()=>this.changedMarkdownRoots(),contentVersion:()=>this.progressiveSession?this.progressiveRevision:this.renderedHtml,getContentRoot:()=>this.contentRoot(),localize:this.boundLocalize,formatIndex:e=>be(this.effectiveLocale).format(e),buildHeader:(e,t)=>Ut(e,t),emit:(e,t)=>this.emit(e,t??null)})}get marked(){return this.parser.get(this.deps?.marked)}refreshTheme(){this.isDarkTheme=Lt(this)}connectedCallback(){if(super.connectedCallback(),this.markdownVariant.connectedInstances.add(this),this.hasUpdated){this.refreshTheme();let t=this.contentRoot();t&&this.bindTextSelection(t)}this.repaintAfterConnect=this.hasUpdated&&this.highlights.length>0,this.repaintAfterConnect&&(this.textQuoteIndexCache=void 0,this.requestUpdate());let e=this.teardown.cancel();oi(this,t=>{let r=e&&this.deps===t;if(this.deps=t,r){this.progressiveSession&&this.streaming&&this.scheduleStreamingRender();return}this.renderMarkdown(),this.requestUpdate()})}disconnectedCallback(){this.markdownVariant.connectedInstances.delete(this),super.disconnectedCallback(),this.cancelStreamingRender(),this.cancelHighlightRepaint(),this.teardown.schedule()}releaseHighlightState(){this.highlightToken++,this.completedHighlights=new Map,this.resolvedHighlightRanges=[],this.highlightHandle?.release(),this.highlightHandle=void 0,this.textQuoteIndexCache=void 0,this.quoteScope?.builder.disconnect(),this.quoteScope=void 0,this.cancelHighlightRepaint(),this.domSnapshot?.observer.disconnect(),this.domSnapshot=void 0,this.fallbackCode.reset()}adoptedCallback(){this.teardown.flush(),super.adoptedCallback(),this.codeHeader.hostAdopted(),this.quoteScope?.builder.disconnect(),this.quoteScope=void 0,this.cancelHighlightRepaint(),this.cancelStreamingRender(),this.streaming&&this.progressiveSession&&this.scheduleStreamingRender()}firstUpdated(e){super.firstUpdated(e);let t=this.renderRoot.querySelector('[part="content"]');t&&this.isConnected&&this.bindTextSelection(t)}willUpdate(e){super.willUpdate(e),this.seedFirstRenderState(()=>this.refreshTheme());let t=Oe(this),r='[part~="code-block"], [part~="code-block-copy"], [part~="table-wrapper"]';if(t?.matches(r)&&(this.rememberedFocus={node:t,index:[...this.renderRoot.querySelectorAll(r)].indexOf(t),selector:r}),this.hasUpdated&&e.has("math")&&(this.mathFailureReported=!1),!this.deps||!Te(e))return;let n=ge(this.streamingRender)==="progressive",s=[...e.keys()].some(o=>o!=="content"&&o!=="streaming"&&Te(new Map([[o,void 0]])));if((He(e)||!n&&(e.has("content")||e.has("streaming")))&&this.highlightToken++,He(e)&&(this.failedHighlightKeys.clear(),this.completedHighlights=new Map),n?s&&(this.progressiveRebuild=!0):this.resetProgressiveMarkdown(),e.has("content")&&this.progressiveInputGeneration++,this.streaming)this.progressiveAdopted&&(this.progressiveSession?.resume(),this.progressiveAdopted=!1),this.progressiveSession?.update(this.content??""),this.progressiveSession&&this.syncProgressiveMarkdown(),n?this.scheduleStreamingRender():(this.cancelStreamingRender(),this.renderMarkdown());else{this.cancelStreamingRender(),(e.has("content")&&!e.has("streaming")||s)&&this.resetProgressiveMarkdown(),this.renderingDuringUpdate=!0;try{this.renderMarkdown()}finally{this.renderingDuringUpdate=!1}}}cancelStreamingRender(){let e=this.streamingRenderRaf;this.streamingRenderRaf=void 0,!this.streamingRenderFrames.cancel()&&e!==void 0&&this.ownerDocument.defaultView?.cancelAnimationFrame(e)}scheduleStreamingRender(){if(this.streamingRenderRaf!==void 0)return;let e=this.ownerDocument.defaultView;if(!e){this.isConnected&&this.runStreamingFrame();return}let t=this.streamingRenderFrames.request(e,()=>{this.streamingRenderRaf=void 0,this.isConnected&&this.ownerDocument.defaultView===e&&this.runStreamingFrame()});t===void 0?this.isConnected&&this.runStreamingFrame():this.streamingRenderFrames.handle===t&&(this.streamingRenderRaf=t)}runStreamingFrame(){ge(this.streamingRender)==="progressive"?this.renderProgressiveMarkdown():this.renderMarkdown()}async getUpdateComplete(){await super.getUpdateComplete(),await this.textQuoteIndexPending;let e=this.progressiveInputGeneration,t=(this.content?.length??0)-(this.progressiveSession?.end??0),r=Math.ceil(Math.max(0,t)/65536)+2;for(let n=0;n<r&&this.streamingRenderRaf!==void 0&&(await this.streamingRenderFrames.settled,await super.getUpdateComplete(),e===this.progressiveInputGeneration);n++);return super.getUpdateComplete()}changedMarkdownRoots(){let e=this.contentRoot();if(!e)return[];if(!this.isConnected)return[e];let t=this.domSnapshot;if(t?.root!==e){t?.observer.disconnect();let o=[],l=this.ownerDocument.defaultView?.MutationObserver??MutationObserver,a=new l(h=>o.push(...h));return a.observe(e,{childList:!0}),this.domSnapshot={root:e,revision:this.progressiveRevision,html:this.renderedHtml,observer:a,records:o,tail:this.streamingTail?e.lastElementChild:null,changed:[e]},[e]}if(t.revision===this.progressiveRevision&&t.html===this.renderedHtml)return t.changed;let r=t.records.splice(0);r.push(...t.observer.takeRecords());let n=[],s=!this.progressiveSession;for(let o of r){for(let l of o.removedNodes)l.nodeType===1&&l!==t.tail&&(s=!0);for(let l of o.addedNodes)l.nodeType===1&&l.parentNode===e&&n.push(l)}return t.revision=this.progressiveRevision,t.html=this.renderedHtml,t.tail=this.streamingTail?e.lastElementChild:null,t.changed=s?[e]:n,t.changed}updated(e){super.updated(e),hi(this,!this.deps||this.streaming);let t=e.has("renderedHtml")||e.has("renderedBlocks")||e.has("progressiveRevision"),r=t?this.changedMarkdownRoots():[];if(t&&(this.hasTableWrappers=r.includes(this.contentRoot())?pe(this.contentRoot()):this.hasTableWrappers||r.some(a=>pe(a))),!this.hasTableWrappers)this.tableRegionLabel=void 0;else{let a=pi(this.boundLocalize),h=`${a}
|
|
38
|
+
${this.effectiveLocale}`;if(t&&r.some(p=>pe(p))||h!==this.tableRegionLabel||this.strings!==this.tableRegionStrings){this.tableRegionLabel=h,this.tableRegionStrings=this.strings;let p=be(this.effectiveLocale);ui(this.contentRoot(),(c,m)=>m>1?this.localize("markdownTableRegionIndexed",void 0,{index:p.format(c)}):a)}}let n=this.rememberedFocus;if(this.rememberedFocus=void 0,n&&!n.node.isConnected){let a=q(this.ownerDocument);if(!a||a===this.ownerDocument.body||a===this.ownerDocument.documentElement){let h=this.renderRoot.querySelectorAll(n.selector)[n.index];h?h.focus({preventScroll:!0}):this.streaming&&(this.rememberedFocus=n)}}let s=this.effectiveLocale,o=this.textQuoteLocale!==void 0&&this.textQuoteLocale!==s;this.textQuoteLocale=s;let l=e.has("renderedHtml")||e.has("renderedBlocks")||e.has("streamingTail")||e.has("progressiveRevision");(o||l||e.has("content"))&&(this.progressiveSession&&!o&&this.textQuoteIndexCache?this.textQuoteIndexCache.mappingDirty=!0:this.textQuoteIndexCache=void 0),(this.repaintAfterConnect||l||e.has("highlights")||e.has("activeHighlightId")||o&&this.highlights.length>0)&&(this.repaintAfterConnect=!1,this.streaming&&this.progressiveSession&&l&&!e.has("highlights")&&!e.has("activeHighlightId")&&!o?this.scheduleHighlightRepaint():(this.cancelHighlightRepaint(),this.repaintHighlights())),e.has("streaming")&&!this.streaming&&(this.cancelHighlightRepaint(),this.repaintHighlights()),(e.has("content")&&!(this.streaming&&this.streamingRender==="progressive"&&this.renderedHtml!==null)||l)&&this.isConnected&&this.emit("lr-content-settled",null)}renderMarkdown(){if(this.streaming){if(ge(this.streamingRender)==="progressive"){this.progressiveRebuild=!!this.progressiveSession,this.scheduleStreamingRender();return}this.renderedHtml=null,this.resetProgressiveMarkdown(),this.headingTree=[],this.codeHeader.setBlocks([]);return}let e=this.deps;if(!e)return;let t=this.progressiveSession;t?.update(this.content??""),t?.step(!0,!0),this.codeBlocks=[];let r=ai({tag:this.markdownVariant.tag,deps:e,htmlMode:N(this.htmlMode),math:this.math,codeBlockHeader:this.codeBlockHeader,withoutImages:this.withoutImages,linkSchemes:Z(this.linkSchemes),parse:(o,l,a)=>this.parseMarkdown(o,l,a),onParsed:()=>this.maybeLoadKatex(),isKatexConfirmedMissing:()=>this.markdownVariant.katexState.isConfirmedMissing()});if(r.headingTree&&(this.headingTree=r.headingTree),r.status==="fallback"){this.renderedHtml=null,this.resetProgressiveMarkdown(),this.codeHeader.setBlocks([]),this.reportRenderError(r.error);return}let n=N(this.htmlMode),s=t&&!t.failed&&t.blocks.map(o=>o.html).join("")===r.html&&(n!=="trusted"||!t.blocks.some(o=>o.hasRawHtml))&&(n==="sanitize"||t.blocks.slice(0,-1).every(o=>o.balanced));s?(this.progressiveAdopted=!0,this.syncProgressiveMarkdown()):this.resetProgressiveMarkdown(),this.renderedHtml=r.html,this.completedHighlights=new Map,this.codeHeader.setBlocks(this.codeBlocks),s&&t.suspend(),r.mathFailed&&this.reportMathFailure(),r.pendingKeys.length>0&&!this.withoutSyntaxHighlighting&&this.highlightPending(r.pendingKeys)}resetProgressiveMarkdown(){this.progressiveSession=void 0,this.progressiveAdopted=!1,this.progressiveRebuild=!1,this.progressiveChangedFrom=0,this.renderedBlocks.length&&(this.renderedBlocks=[]),this.streamingTail=null}createProgressiveSession(e){let t=this.deps,r=N(this.htmlMode);if(!t?.marked||r==="sanitize"&&!t.DOMPurify)return;let n=ce(this.markdownParseOptions(t.marked,"",[],[],void 0,[]));if(!wi(n.instance,!this.withoutGfm)){Q("lyra-markdown-progressive-unavailable","<lr-markdown>: this parser configuration uses plain streaming.");return}let s=this.withoutImages,o=Z(this.linkSchemes),l=Me({htmlMode:r,math:this.math,codeBlockHeader:this.codeBlockHeader,withoutImages:s}),a=new Set,h=new fe({parser:n.instance,gfm:!this.withoutGfm,tabSize:F(this.tabSize,4,1,32),render:(p,c,m,k,T,H)=>{let M=[],A=[],I=[],R=this.markdownParseOptions(t.marked,p,M,A,T,I,c);R.codeBlockIndexOffset=H,R.activeHighlightKeys=a,R.highlightCodeOption=!this.withoutSyntaxHighlighting;let E=ce(R).render(p,{links:m,state:k});return this.maybeLoadKatex(),{...E,rawHtml:E.html,html:se(t,l,E.html,E.hasRawHtml,s,o),headings:A,codeBlocks:I,pendingKeys:M}}},e?.blocks);return h.update(this.content??""),e&&h.step(!1,!0,e.end),h}renderProgressiveMarkdown(){let e=this.progressiveSession;(!e||this.progressiveRebuild)&&(this.progressiveSession=this.createProgressiveSession(e),this.progressiveRebuild=!1);let t=this.progressiveSession;if(!t){this.renderedHtml=null,this.renderedBlocks=[],this.streamingTail=null,this.headingTree=[],this.codeHeader.setBlocks([]);return}t.update(this.content??""),t.step(),this.renderedHtml="",this.syncProgressiveMarkdown(),t.pending||(this.completedHighlights=new Map);let r=t.nextHighlight();r&&!this.withoutSyntaxHighlighting&&this.highlightPending([r]),t.pending&&this.scheduleStreamingRender()}syncProgressiveMarkdown(){let e=this.progressiveSession;if(!e)return;let t=e.takeChangedFrom();if(t!==void 0){this.progressiveChangedFrom=Math.min(this.progressiveChangedFrom,t);for(let n=t;n<e.blocks.length;n++)this.renderedBlocks[n]={id:`stream-${n}`,html:e.blocks[n].html};this.renderedBlocks.length=e.blocks.length,this.progressiveRevision++,this.headingTree=e.headings,this.codeHeader.setBlocks(e.records,e.recordOffset(t))}let r=e.tail;(r?.kind!==this.streamingTail?.kind||r?.text!==this.streamingTail?.text)&&(this.streamingTail=r)}progressiveStats(){return this.progressiveSession?.stats}maybeLoadKatex(){this.math&&this.markdownVariant.katexState.startLoad(this.handleKatexResolved)}reportRenderError(e){let t=()=>this.emit("lr-render-error",{error:e});!this.hasUpdated||this.renderingDuringUpdate?this.scheduleAfterUpdate(t,"lr-render-error"):t()}reportMathFailure(){this.mathFailureReported||(this.mathFailureReported=!0,this.reportRenderError(li(this.markdownVariant.tag)))}grammarCacheKey(e){let t=e.slice(0,e.indexOf(":")),r=this.highlightLanguageSources,n=r?.[t]??r?.[te(t)];return mr(r,`${n?"authored":this.markdownVariant.tag}:${e}`)}getCachedHighlight(e){return this.completedHighlights.get(e)??ri(this.highlightCache,this.grammarCacheKey(e))}setCachedHighlight(e,t){return de(this.highlightCache,this.grammarCacheKey(e),t,le)}async highlightPending(e){let t=e.filter(({key:a})=>this.inFlightHighlightKeys.get(a)!==this.highlightToken);if(t.length===0)return;let r=this.highlightToken;for(let{key:a}of t)this.inFlightHighlightKeys.set(a,r);let n=this.languages,s=new Map,o=()=>r===this.highlightToken&&this.isConnected,l=async a=>{let h=await this.tokenizePendingHighlight(a,n,o);if(!(!o()||h===void 0)){if(h===null||!de(s,a.key,h)){he(this.failedHighlightKeys,a.key);return}this.setCachedHighlight(a.key,h)}};try{await ii(t,l);for(let{key:a}of t)o()&&!s.has(a)&&this.getCachedHighlight(a)===void 0&&he(this.failedHighlightKeys,a)}catch{for(let{key:a}of t)he(this.failedHighlightKeys,a);Q(dr,cr)}finally{for(let{key:a}of t)this.inFlightHighlightKeys.get(a)===r&&this.inFlightHighlightKeys.delete(a)}if(o()){for(let[a,h]of s)de(this.completedHighlights,a,h);this.progressiveSession?(this.progressiveSession.invalidateHighlights(t.map(({key:a})=>a)),this.streaming?this.scheduleStreamingRender():this.renderMarkdown()):this.renderMarkdown()}}parseMarkdown(e,t,r){let n=this.content??"";return ni(this.markdownParseOptions(e,ae(n,F(this.tabSize,4,1,32)),t,r,void 0,this.codeBlocks,n))}markdownParseOptions(e,t,r,n,s,o=[],l=t){let a=this.markdownVariant;return{marked:e,slugger:s,content:t,pendingKeys:r,headingTreeOut:n,codeBlocksOut:o,rawContent:l,markedConfigurations:[a.sharedParser.get(e)?.defaults,this.marked?.defaults],gfm:!this.withoutGfm,linkTarget:this.linkTarget,headingOffset:F(this.headingOffset,0,0,6),escapeHtmlOption:N(this.htmlMode)==="escape",trustedHtmlOption:N(this.htmlMode)==="trusted",withoutImagesOption:this.withoutImages,linkSchemesOption:Z(this.linkSchemes),codeBlockHeaderOption:this.codeBlockHeader,codeFrameNonce:this.codeBlockHeader?this.codeHeader.nonce:void 0,tabSize:F(this.tabSize,4,1,32),highlightCodeOption:!this.withoutSyntaxHighlighting&&!this.streaming,getCachedHighlight:h=>this.getCachedHighlight(h),failedHighlightKeys:this.failedHighlightKeys,headingAnchorsOption:this.headingAnchors,mathOption:this.math,cachedKatex:this.math?a.katexState.getIfLoaded():null}}getHeadingTree(){return[...this.headingTree]}contentRoot(){return this.renderRoot.querySelector('[part="content"]')}async applyAnchor(e){let t=this.contentRoot();if(!t)return!1;if(e.kind==="fragment")return di(t,e,this.headingTree);if(e.kind==="text-quote"){if(!ke&&(await xi(),this.contentRoot()!==t))return!1;let r=this.markdownTextIndex(t),n=ci(t,e,r);return!V(this.ownerDocument)&&this.highlights.length>0&&this.repaintHighlights(),n}return!1}computeSelectionAnchor(e){let t=this.contentRoot();if(!t)return null;let r=xt(e,this.markdownTextScope(t).scope);return!V(this.ownerDocument)&&this.highlights.length>0&&this.scheduleAfterUpdate(()=>this.repaintHighlights()),r}ensureHighlightHandle(){return this.highlightHandle??=Rt(this,this.ownerDocument,{part:"highlight"}),this.highlightHandle}cancelHighlightRepaint(){let e=this.highlightRepaintTimer;this.highlightRepaintTimer=void 0,e&&e.view.clearTimeout(e.id)}scheduleHighlightRepaint(){if(this.highlights.length===0||this.highlightRepaintTimer)return;let e=this.ownerDocument.defaultView;if(!e){this.repaintHighlights();return}let t={view:e,id:0};t.id=e.setTimeout(()=>{this.highlightRepaintTimer===t&&(this.highlightRepaintTimer=void 0,this.isConnected&&this.ownerDocument.defaultView===e&&this.repaintHighlights())},100),this.highlightRepaintTimer=t}markdownTextScope(e){let t=this.effectiveLocale,r=this.textQuoteIndexCache;if(r?.root===e&&r.locale===t&&!r.mappingDirty)return r;if(r?.mappingDirty){let o=this.ensureHighlightHandle();for(let l of["accent","success","warning","danger","neutral"])o.setRanges(l,[]);o.setActive(null)}let n;if(this.progressiveSession?(this.quoteScope?.root!==e&&(this.quoteScope?.builder.disconnect(),this.quoteScope={root:e,builder:new vt(e,{maxTraversalNodes:kt.maxTraversalNodes+4008})}),n=this.quoteScope.builder.update(this.streamingTail?e.lastElementChild:null)):(this.quoteScope?.builder.disconnect(),this.quoteScope=void 0,n=bt(e)),this.markdownTextScopeBuilds++,r?.root===e&&r.locale===t&&(!r.index||r.index.rebindScope(n)))return r.scope=n,r.mappingDirty=!1,r;let s={root:e,locale:t,scope:n,mappingDirty:!1};return this.textQuoteIndexCache=s,s}markdownTextIndex(e){let t=this.markdownTextScope(e);if(t.index)return t.index;if(!ke){this.textQuoteIndexPending??=xi().then(()=>{this.textQuoteIndexPending=void 0,this.isConnected&&this.repaintHighlights()},()=>{this.textQuoteIndexPending=void 0});return}return t.index=ke.createTextQuoteIndex(t.scope,t.locale),t.index}markdownTextScopeBuildCount(){return this.markdownTextScopeBuilds}markdownTextQuoteScanCount(){return this.textQuoteIndexCache?.index?.scanCount??0}repaintHighlights(){this.resolvedHighlightRanges=[];let e=this.contentRoot();if(!e)return;if(this.highlights.length===0){this.highlightHandle?.release(),this.highlightHandle=void 0;return}if(this.streaming&&this.progressiveSession&&!V(this.ownerDocument)){this.highlightHandle?.release(),this.highlightHandle=void 0;return}let t=this.markdownTextIndex(e);t&&(this.resolvedHighlightRanges=St({handle:this.ensureHighlightHandle(),highlights:this.highlights,activeHighlightId:this.activeHighlightId,index:t}),!V(this.ownerDocument)&&this.textQuoteIndexCache&&(this.textQuoteIndexCache.mappingDirty=!0))}render(){let e=!!(this.progressiveSession&&(this.streaming||this.progressiveAdopted)),t=this.progressiveChangedFrom;return this.progressiveChangedFrom=1/0,mi({content:this.content??"",sanitized:N(this.htmlMode)==="sanitize",renderedHtml:this.renderedHtml,fallbackSegments:!e&&this.renderedHtml===null?this.fallbackCode.segments(this.content??""):null,progressive:e?{blocks:this.renderedBlocks,tail:this.streamingTail,revision:this.progressiveRevision,changedFrom:t}:null,hostAriaLabel:this.getAttribute("aria-label"),isDarkTheme:this.isDarkTheme,onClick:this.onContentClick,liveRegion:this.renderAnchorLiveRegion(),maxHeight:this.maxHeight})}};j([G()],W.prototype,"renderedHtml",void 0),j([G()],W.prototype,"renderedBlocks",void 0),j([G()],W.prototype,"streamingTail",void 0),j([G()],W.prototype,"progressiveRevision",void 0),j([G()],W.prototype,"isDarkTheme",void 0);var En=$e` :host{${Ye} line-height:var(--lr-line-height-loose);--_lr-markdown-max-height:none}[part=content]{--_lr-markdown-content-min-size:var(--lr-markdown-content-min-size, 0);min-block-size:var(--_lr-markdown-content-min-size);box-sizing:border-box;min-inline-size:var(--_lr-markdown-content-min-size);max-inline-size:100%;max-block-size:var(--lr-markdown-max-height,var(--_lr-markdown-max-height));overflow-inline:auto;overflow-block:hidden;overflow-wrap:anywhere;font-size:var(--lr-markdown-font-size,inherit);line-height:var(--lr-markdown-line-height,inherit);color:var(--lr-markdown-color,inherit)}[part=content][data-unsanitized]{contain:paint}[part=streaming-tail]{content-visibility:auto;contain-intrinsic-block-size:auto var(--lr-size-24rem);white-space:pre-wrap;overflow-wrap:anywhere}[part=content]:focus-visible,[part=code-block]:focus-visible,[part=table-wrapper]:focus-visible{${Ke}}[part=code-block]:focus-visible,[part=table-wrapper]:focus-visible{${Ne}}[part=content][data-fallback]{white-space:pre-wrap;font-family:inherit}[part=content]>:first-child{margin-block-start:0}[part=content]>:last-child{margin-block-end:0}[part=heading]{line-height:var(--lr-line-height-compact);margin-block:var(--lr-markdown-heading-margin-block-start,var(--lr-space-l)) var(--lr-markdown-block-gap,var(--lr-space-s));font-weight:var(--lr-markdown-heading-font-weight,var(--lr-font-weight-bold))}h1[part=heading]{font-size:var(--lr-markdown-heading-1-font-size,calc(var(--lr-size-1em) * 2))}h2[part=heading]{font-size:var(--lr-markdown-heading-2-font-size,var(--lr-size-1-5em))}h3[part=heading]{font-size:var(--lr-markdown-heading-3-font-size,calc(var(--lr-size-1em) * 1.17))}h4[part=heading]{font-size:var(--lr-markdown-heading-4-font-size,var(--lr-size-1em))}[part=content] p{margin-block:0 var(--lr-markdown-paragraph-gap,var(--lr-markdown-block-gap,var(--lr-space-s)))}[part=content] ul,[part=content] ol{margin-block:0 var(--lr-markdown-list-gap,var(--lr-markdown-block-gap,var(--lr-space-s)));padding-inline-start:var(--lr-markdown-list-indent,var(--lr-size-2-5rem))}ul>[part~=task-item]{list-style:none}[part~=task-checkbox]{--_lr-markdown-task-box:var(--lr-markdown-task-checkbox-size, var(--lr-size-0-875em));appearance:none;box-sizing:border-box;display:inline-grid;place-content:center;inline-size:var(--_lr-markdown-task-box);block-size:var(--_lr-markdown-task-box);margin-block:0;margin-inline:0 var(--lr-space-s);vertical-align:middle;font-size:inherit;opacity:1;-webkit-print-color-adjust:exact;print-color-adjust:exact;border:var(--lr-border-width-thin) solid var(--lr-color-border);border-radius:var(--lr-radius-xs);background:var(--lr-color-surface)}ul>[part~=task-item]>[part~=task-checkbox],ul>[part~=task-item]>p:first-child>[part~=task-checkbox]{margin-inline-start:calc(-1 * (var(--_lr-markdown-task-box) + var(--lr-space-s)))}[part~=task-checkbox]:where(:checked){background:var(--lr-color-brand);border-color:var(--lr-color-brand)}[part~=task-checkbox]:where(:checked)::before{content:'';direction:ltr;inline-size:var(--lr-size-0-3em);block-size:var(--lr-size-0-5em);border:0 solid var(--lr-color-on-brand);border-inline-end-width:var(--lr-border-width-medium);border-block-end-width:var(--lr-border-width-medium);transform:translateY(-10%) rotate(45deg)}[part=content] code{font-family:var(--lr-markdown-font-mono,var(--lr-font-mono));font-size:var(--lr-size-0-875em);background:var(--lr-markdown-code-bg,var(--lr-color-brand-quiet));border-radius:var(--lr-markdown-code-radius,calc(var(--lr-radius) * 0.5));padding:var(--lr-markdown-code-padding,var(--lr-size-0-125rem) var(--lr-size-0-3125rem))}[part=code-block]{font-family:var(--lr-markdown-font-mono,var(--lr-font-mono));line-height:var(--lr-markdown-code-block-line-height,var(--lr-line-height-normal));margin-block:0 var(--lr-markdown-block-gap,var(--lr-space-s));padding:var(--lr-markdown-code-block-padding,var(--lr-space-s) var(--lr-space-m));border-radius:var(--lr-markdown-code-block-radius,var(--lr-radius));background:var(--lr-markdown-code-block-bg,var(--lr-markdown-code-bg,var(--lr-color-brand-quiet)));white-space:pre;overflow-wrap:normal;overflow-x:auto;overflow-y:hidden;overflow-inline:auto;overflow-block:hidden;tab-size:var(--lr-code-block-tab-size,2)}[part=content] :where(pre[part~=code-block]:not([dir]),code:not([dir],pre *)){direction:ltr;unicode-bidi:isolate;text-align:start}[part=content] :where(pre:not([part~=code-block],[dir])){unicode-bidi:plaintext}[part=content][data-fallback] :where(.fallback-code,.fallback-inline-code){direction:ltr;unicode-bidi:isolate}[part=content][data-fallback] .fallback-code{display:block;text-align:start}[part=code-block] code{padding:0;background:none;font-size:var(--lr-markdown-code-block-font-size,var(--lr-font-size-sm));line-height:var(--lr-markdown-code-block-line-height,var(--lr-line-height-normal))}[part=content][data-dark-theme=true] [part=code-block].shiki,[part=content][data-dark-theme=true] [part=code-block] span[style*='--shiki-dark']{color:var(--shiki-dark,inherit)!important;background-color:var(--shiki-dark-bg,transparent)!important}[part=link]{color:var(--lr-markdown-link-color,var(--lr-color-brand));text-underline-offset:var(--lr-size-0-125rem)}[part=link]:hover{color:var(--lr-markdown-link-hover-color,var(--lr-markdown-link-color,var(--lr-color-brand)))}[part=img]{max-inline-size:100%}[part=blockquote]{margin-block:0 var(--lr-markdown-block-gap,var(--lr-space-s));margin-inline:0;padding-inline-start:var(--lr-space-m);border-inline-start:var(--lr-border-width-thick) solid var(--lr-markdown-blockquote-border-color,var(--lr-color-border-subtle));color:var(--lr-markdown-blockquote-color,var(--lr-color-text-quiet))}[part=table-wrapper]{margin-block:0 var(--lr-markdown-block-gap,var(--lr-space-s));overflow-x:auto;overflow-y:hidden;overflow-inline:auto;overflow-block:hidden}[part=table]{border-collapse:collapse;margin-block:0 var(--lr-markdown-block-gap,var(--lr-space-s));inline-size:100%}[part=table-wrapper]>[part=table]{margin-block:0;overflow-wrap:break-word;word-break:normal}[part=table] th,[part=table] td{border:var(--lr-border-width-thin) solid var(--lr-color-border-subtle);padding:var(--lr-space-xs) var(--lr-space-s)}[part=table] th:not([align]),[part=table] td:not([align]){text-align:start}[part=table] th{background:var(--lr-markdown-table-header-bg,var(--lr-color-brand-quiet));font-weight:var(--lr-font-weight-semibold)}[part=math][data-display=block]{display:block;margin-block:var(--lr-space-s) var(--lr-space-s);white-space:pre;overflow-wrap:normal;overflow-x:auto;overflow-y:hidden;overflow-inline:auto;overflow-block:hidden;text-align:center}[part=math][data-display=inline]{display:inline-block}${Tt("markdown",{neutralBackground:"var(--lr-color-surface)"})} [part~=code-block-frame]:where([data-lr-code-chrome]){margin-block:0 var(--lr-markdown-block-gap,var(--lr-space-s));border:var(--lr-border-width-thin) solid var(--lr-color-border-subtle);border-radius:var(--lr-markdown-code-block-radius,var(--lr-radius));overflow:clip}[part~=code-block-frame]:where([data-lr-code-chrome])>[part=code-block]{margin:0;border-radius:0}[part~=code-block-header]:where([data-lr-code-chrome]){display:flex;align-items:center;gap:var(--lr-space-xs);min-inline-size:0;padding-inline:var(--lr-space-s) var(--lr-space-2xs);background:var(--lr-markdown-code-header-bg,var(--lr-color-surface));color:var(--lr-markdown-code-header-color,var(--lr-color-text-quiet));border-block-end:var(--lr-border-width-thin) solid var(--lr-color-border-subtle);font:var(--lr-font-size-xs)/var(--lr-line-height-normal) var(--lr-font);user-select:none}[part~=code-block-language]:where([data-lr-code-chrome]){flex:0 1 auto;min-inline-size:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;direction:ltr;unicode-bidi:isolate}[part~=code-block-language]:where([data-lr-code-chrome])::before{content:attr(data-language)}[part~=code-block-copy]:where([data-lr-code-chrome]){margin-inline-start:auto;${Pe} ${ht} flex-shrink:0;--_lr-icon-button-background-default:var(--lr-markdown-code-copy-bg, transparent);--_lr-icon-button-background-hover-default:var(--lr-markdown-code-copy-hover-bg, var(--lr-color-brand-quiet));--_lr-icon-button-color-hover-default:var(--lr-markdown-code-copy-hover-color, var(--lr-color-brand));--_lr-icon-button-color-active-default:var( --lr-markdown-code-copy-active-color, var(--lr-markdown-code-copy-hover-color, var(--lr-color-brand)) );--_lr-icon-button-background-active-default:var(--lr-markdown-code-copy-active-bg, ${We("var(--lr-color-brand-quiet)")})}[part~=code-block-copy]:where([data-lr-code-chrome]) svg{inline-size:var(--lr-size-1em);block-size:var(--lr-size-1em)}[part~=code-block-copy]:where([data-lr-code-chrome]:hover){${dt}}[part~=code-block-copy]:where([data-lr-code-chrome]:active){${ct}}[part~=code-block-copy]:where([data-lr-code-chrome]):focus-visible{${Be}}@media (forced-colors:active){[part~=code-block-copy]:where([data-lr-code-chrome]){border:var(--lr-border-width-thin) solid ButtonText}}[part~=code-block-copy-success]:where([data-lr-code-chrome]){color:var(--lr-markdown-code-copy-success-color,var(--lr-color-success))}[part~=code-block-copy-error]:where([data-lr-code-chrome]){color:var(--lr-markdown-code-copy-error-color,var(--lr-color-danger))}`;export{Pt as a,Kt as b,Ur as c,Gr as d,Rn as e,W as f,En as g};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as c}from"./chunk-J24TYMEI.js";function w(s){if(typeof s!="number"||!Number.isSafeInteger(s)||s<0)throw new RangeError("Invalid source count");return s}function f(s){if(typeof s=="string"&&s.length>0||typeof s=="number"&&Number.isFinite(s))return s;throw new TypeError("Invalid source revision")}var a=class{constructor(e,t){if(this.host=e,this.options=t,this.sourceEpoch=0,this.channels=new Map,t.channels.length<1||t.channels.length>16)throw new RangeError("Invalid source channels");for(let n of t.channels){if(typeof n!="string"||n.length===0||this.channels.has(n))throw new TypeError("Invalid source channel");this.channels.set(n,void 0)}this.active=e.isConnected,t.deferDisconnect&&(this.detached=new c(()=>this.refresh())),e.addController(this)}get epoch(){return this.sourceEpoch}setSource(e,t){if(e===this.source&&t===this.revision)return!1;let n;try{if(e===void 0){if(t!==void 0)throw new TypeError("Revision requires a source")}else{if(typeof e!="object"&&typeof e!="function"||e===null)throw new TypeError("Invalid source");n=f(t)}}catch(r){throw this.source=void 0,this.revision=void 0,this.refresh(),r}return this.source=e,this.revision=n,this.refresh(),!0}refresh(){this.sourceEpoch++;let e=[...this.channels.values()];for(let t of this.channels.keys())this.channels.set(t,void 0);try{this.options.onReset?.()}finally{for(let t of e)t?.abort()}}invalidate(e){if(!this.channels.has(e))throw new TypeError("Unknown source channel");let t=this.channels.get(e);this.channels.set(e,void 0),t?.abort()}begin(e,t){if(!this.channels.has(e))throw new TypeError("Unknown source channel");let n=this.channels.get(e),r=this.source,i=this.revision;if(!this.active||!this.host.isConnected||r===void 0||i===void 0){this.channels.set(e,void 0),n?.abort();return}let l=this.host.ownerDocument,o=new AbortController,d=this.sourceEpoch;this.channels.set(e,o);let h={context:Object.freeze({revision:i,locale:t,signal:o.signal}),isCurrent:()=>this.active&&this.host.isConnected&&this.host.ownerDocument===l&&this.source===r&&this.revision===i&&this.sourceEpoch===d&&this.channels.get(e)===o&&!o.signal.aborted};return n?.abort(),h.isCurrent()?h:void 0}adopted(){this.detached?.cancel(),this.refresh()}hostConnected(){this.active=!0,this.detached?.cancel()}hostDisconnected(){this.active=!1,this.detached?this.detached.schedule():this.refresh()}};export{w as a,f as b,a as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var o=class extends RangeError{};function i(t,n,e=!1){if(!Number.isFinite(t)||e&&t<0)throw new o(`${n} must be a finite${e?" nonnegative":""} number`);return t}function u(t,n){for(let e of["x","y","width","height","top","right","bottom","left"])i(t[e],`${n}.${e}`,e==="width"||e==="height");return t}function m(t){let n=i(t.x,"virtualAnchorFromRect() x"),e=i(t.y,"virtualAnchorFromRect() y"),h=i(t.width??0,"virtualAnchorFromRect() width",!0),r=i(t.height??0,"virtualAnchorFromRect() height",!0),c=new DOMRect(n,e,h,r);return{getBoundingClientRect:()=>c,contextElement:t.contextElement}}export{o as a,i as b,u as c,m as d};
|