@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,64 @@
|
|
|
1
|
+
import{a as Ci}from"./chunk-GBF4AHIG.js";import{Ab as li,Bb as ni,Cb as ci,Db as hi,Eb as di,Fb as ui,Gb as mi,Hb as pi,Ib as fi,Jb as wi,pb as Yt,qb as Zt,rb as Jt,sb as Qt,tb as ei,ub as ti,vb as ii,wb as ri,xb as oi,yb as si,zb as ai}from"./chunk-PROPAUSV.js";import{d as Ae}from"./chunk-RTWAT4DT.js";import{a as O}from"./chunk-O4NFRBN5.js";import{a as F,b as jt,c as Xt}from"./chunk-M3K6BXUV.js";import{b as Ht}from"./chunk-4QBXZ5BM.js";import{b as Je,c as qt,d as ue}from"./chunk-XYHOA2VI.js";import{a as Gt,b as q}from"./chunk-2N62LETQ.js";import"./chunk-J24TYMEI.js";import"./chunk-YNMFL6SJ.js";import{a as Vt,b as Wt,f as Kt,g as Ut}from"./chunk-4HBBNYPU.js";import{c as Ot}from"./chunk-GGSUOPBU.js";import"./chunk-7AMXIXSH.js";import"./chunk-H62CTJMK.js";import{b as $e,c as Ze}from"./chunk-LEDCMWT7.js";import{a as H}from"./chunk-GT6NF7FZ.js";import{a as Bt}from"./chunk-ENQS5KAZ.js";import{a as Nt}from"./chunk-JKL737HR.js";import"./chunk-NHLOYHBZ.js";import"./chunk-3EGAV5VK.js";import"./chunk-MDVVFS4A.js";import{i as yt}from"./chunk-CSV23ONU.js";import{a as Ye}from"./chunk-FHC6MDBQ.js";import"./chunk-QCM7NVLU.js";import{e as Dt}from"./chunk-PJ72NB2H.js";import{a as re}from"./chunk-2WXXKPUW.js";import"./chunk-34M5HC53.js";import{a as Pe,b as ve,d as Se}from"./chunk-HEIK7X4U.js";import{Ga as Pt,Pa as It}from"./chunk-IFDV4HWR.js";import{e as $t}from"./chunk-REOFE46N.js";import"./chunk-IRH2OYBM.js";import{a as Ie,f as U}from"./chunk-3HGKUVDX.js";import{d as At,e as kt}from"./chunk-BDETGDBF.js";import{a as Xe,l as K,p as de,v as zt}from"./chunk-2CH7YZRL.js";import{c as Et,g as _t}from"./chunk-32IK33EM.js";import{a as S,b as y,c as G,d as Mt,g as Tt,i as Rt,z as je}from"./chunk-JTGCA7JE.js";import"./chunk-4VZYY6B7.js";import{b as ye}from"./chunk-CR23WLJQ.js";import{k as xe}from"./chunk-RDTKEL46.js";import{b as qe,e as Le}from"./chunk-5NRIHGYU.js";import{b as Lt,e as L,i as T}from"./chunk-CN2FTU25.js";import{b as Ft}from"./chunk-ZVB4ZXSV.js";import"./chunk-MM5JS5OO.js";import"./chunk-RNCRO7PW.js";import"./chunk-UDRXM6B3.js";import"./chunk-KLAMX2AK.js";import"./chunk-ZD6IWVN5.js";import{a as B,b as D,f as le,g as ne,j as ce,m as he}from"./chunk-AVZPWRZU.js";import"./chunk-GMPUTEBU.js";import"./chunk-3CLMBMQL.js";import{a as be,b as ge}from"./chunk-OP7ARFKR.js";import"./chunk-5PNMEGOF.js";import"./chunk-Z7WGANHK.js";function z(o,e){if(typeof o!="object"&&typeof o!="function"||o===null)throw new TypeError("Invalid matrix record");let t=Object.getOwnPropertyDescriptor(o,e);if(!t||!Object.hasOwn(t,"value"))throw new TypeError("Invalid matrix field");return t.value}function me(o){if(typeof o!="number"||!Number.isFinite(o))throw new TypeError("Invalid matrix number");return o}function ke(o){let e=F(z(o,"rowStart")),t=F(z(o,"rowEnd")),i=F(z(o,"columnStart")),r=F(z(o,"columnEnd"));if(e>=t||i>=r||!Number.isSafeInteger((t-e)*(r-i)))throw new RangeError("Invalid matrix rectangle");return Object.freeze({rowStart:e,rowEnd:t,columnStart:i,columnEnd:r})}function bi(o){if(o===null)return null;let e=me(z(o,"min")),t=me(z(o,"max"));if(e>t)throw new RangeError("Invalid matrix domain");return Object.freeze({min:e,max:t})}function gi(o,e){let t=z(o,"value"),i=t===null?null:me(t),r=z(o,"rowLabel"),s=z(o,"columnLabel");if(typeof r!="string"||typeof s!="string"||r.length>1024||s.length>1024||i!==null&&(!e||i<e.min||i>e.max))throw new RangeError("Invalid matrix cell");return Object.freeze({value:i,rowLabel:r,columnLabel:s})}function Me(o,e){return e.rowStart>=o.rowStart&&e.rowEnd<=o.rowEnd&&e.columnStart>=o.columnStart&&e.columnEnd<=o.columnEnd}function vi(o,e,t,i){if(!Array.isArray(o))throw new TypeError("Invalid matrix tiles");let r=F(z(o,"length"));if(!r||r>t)throw new RangeError("Invalid matrix tile budget");let s=[],a=new Set([e.columnStart,e.columnEnd]),l=[];for(let b=0;b<r;b++){let m=z(o,String(b)),C=ke(m),A=F(z(m,"count")),k=F(z(m,"validCount")),E=me(z(m,"sum")),P=z(m,"min"),M=z(m,"max"),x=P===null?null:me(P),R=M===null?null:me(M);if(!Me(e,C)||A!==(C.rowEnd-C.rowStart)*(C.columnEnd-C.columnStart)||k>A)throw new RangeError("Invalid matrix tile counts");if(k===0){if(x!==null||R!==null||E!==0)throw new RangeError("Invalid empty matrix tile")}else{if(!i||x===null||R===null||x>R||x<i.min||R>i.max)throw new RangeError("Invalid matrix tile extrema");let $=E/k,_=Math.max(1,Math.abs(x),Math.abs(R),Math.abs($));if(!Number.isFinite($)||$/_<x/_-32*Number.EPSILON||$/_>R/_+32*Number.EPSILON)throw new RangeError("Invalid matrix tile mean")}s.push(Object.freeze({...C,count:A,validCount:k,min:x,max:R,sum:E})),a.add(C.columnStart),a.add(C.columnEnd),l.push({row:C.rowStart,start:C.columnStart,end:C.columnEnd,delta:1},{row:C.rowEnd,start:C.columnStart,end:C.columnEnd,delta:-1})}let n=[...a].sort((b,m)=>b-m),c=new Map(n.map((b,m)=>[b,m])),d=n.length-1,h=new Int32Array(d*4),u=new Int32Array(d*4),p=new Int32Array(d*4);function f(b,m,C,A,k,E){if(A<=m&&C<=k){h[b]=h[b]+E,u[b]=u[b]+E,p[b]=p[b]+E;return}let P=Math.floor((m+C)/2);A<P&&f(b*2,m,P,A,k,E),k>P&&f(b*2+1,P,C,A,k,E),h[b]=p[b]+Math.min(h[b*2],h[b*2+1]),u[b]=p[b]+Math.max(u[b*2],u[b*2+1])}l.sort((b,m)=>b.row-m.row);let g=e.rowStart,w=0;for(;w<l.length;){let b=l[w].row;if(b>g&&(h[1]!==1||u[1]!==1))throw new RangeError("Incomplete matrix partition");for(;w<l.length&&l[w].row===b;){let m=l[w++];f(1,0,d,c.get(m.start),c.get(m.end),m.delta)}g=b}if(g!==e.rowEnd||h[1]!==0||u[1]!==0)throw new RangeError("Incomplete matrix partition");return Object.freeze(s)}var Fe=class{constructor(e,t,i){this.repaint=t,this.locale=i,this.source=null,this.rows=0,this.cols=0,this.domain=null,this.viewport=null,this.tiles=[],this.cells=[],this.cursor=null,this.selected=null,this.loading=!1,this.error=!1,this.tileBusy=!1,this.exactBusy=0,this.pendingCoordinates=new Set,this.acceptedInput=null,this.previousViewport=null,this.key="",this.exactVersion=0,this.windowVersion=0,this.requests=new Xt(e,{channels:["tiles","focus","cells"],onReset:()=>this.clear()})}cancelExact(){let e=++this.exactVersion,t=this.requests.epoch,i=this.cancelFocus,r=this.focusIntent,s=this.window;this.cancelFocus=void 0,this.focusIntent=void 0,this.window=void 0,this.windowVersion++,s&&(s.results.length=0,s.finish(!1)),i?.(),r?.resolve(null),this.requests.invalidate("focus"),e===this.exactVersion&&t===this.requests.epoch&&this.requests.invalidate("cells")}retainWindowFor(e,t){let i=this.window;!i||Me(i.rectangle,{rowStart:e,rowEnd:e+1,columnStart:t,columnEnd:t+1})||(this.window=void 0,this.windowVersion++,i.results.length=0,i.finish(!1),this.requests.invalidate("cells"))}detach(){this.requests.setSource(void 0,void 0),this.clear(),this.key=""}invalidate(){this.requests.refresh(),this.key=""}clear(){this.exactVersion++,this.windowVersion++,this.source=null,this.rows=0,this.cols=0,this.domain=null,this.viewport=null,this.error=!1,this.cancelFocus?.(),this.cancelFocus=void 0,this.focusIntent?.resolve(null),this.focusIntent=void 0,this.tileIntent=void 0,this.window&&(this.window.results.length=0,this.window.finish(!1)),this.window=void 0,this.tiles=[],this.cells=[],this.cursor=null,this.selected=null,this.loading=!1}configure(e,t,i,r){let s=this.requests.epoch;try{let a=jt(e.revision);if(this.requests.epoch!==s)return;let l=F(e.rowCount);if(this.requests.epoch!==s)return;let n=F(e.columnCount);if(this.requests.epoch!==s)return;if(!Number.isSafeInteger(l*n))throw new RangeError("Invalid matrix size");let c=bi(e.domain);if(this.requests.epoch!==s)return;let d=this.requests.setSource(e,a);if(this.requests.epoch!==s+(d?1:0))return;this.revision=a,this.source=e,this.rows=l,this.cols=n,this.domain=c;let h=null;if(t!==null){let g=ke(t);if(l&&n){if(!i&&t===this.acceptedInput&&this.previousViewport){let w=Math.min(l,this.previousViewport.rowEnd-this.previousViewport.rowStart),b=Math.min(n,this.previousViewport.columnEnd-this.previousViewport.columnStart),m=Math.min(this.previousViewport.rowStart,l-w),C=Math.min(this.previousViewport.columnStart,n-b);h=Object.freeze({rowStart:m,rowEnd:m+w,columnStart:C,columnEnd:C+b})}else h=g;if(!Me({rowStart:0,rowEnd:l,columnStart:0,columnEnd:n},h))throw new RangeError("Invalid matrix viewport")}else if(i)throw new RangeError("Invalid empty matrix viewport")}else l&&n&&(h=Object.freeze({rowStart:0,rowEnd:l,columnStart:0,columnEnd:n}));if(this.acceptedInput=t,this.previousViewport=h,this.viewport=h,this.error=!1,!h){this.tiles=[],this.loading=!1;return}let u=`${this.requests.epoch}:${h.rowStart}:${h.rowEnd}:${h.columnStart}:${h.columnEnd}:${r}`;if(u===this.key)return;this.key=u;let p=this.requests.epoch;if(this.cancelExact(),p!==this.requests.epoch||this.source!==e)return;let f=this.requests.begin("tiles",this.locale());if(!f)return;this.loading=!0,this.tileIntent={lease:f,source:e,viewport:h,budget:r,domain:c},this.pumpTiles()}catch{(this.requests.epoch===s||this.source===e)&&this.fail()}}fail(){this.error||(this.invalidate(),this.error=!0,this.repaint())}pumpTiles(){if(this.tileBusy||!this.tileIntent)return;let e=this.tileIntent;this.tileIntent=void 0,e.lease.isCurrent()&&(this.tileBusy=!0,(async()=>{try{let t=e.source.query;if(!e.lease.isCurrent())return;let i=await t.call(e.source,Object.freeze({...e.viewport,maxCells:e.budget,signal:e.lease.context.signal}));if(!e.lease.isCurrent())return;let r=vi(i,e.viewport,e.budget,e.domain);if(!e.lease.isCurrent())return;this.tiles=r,this.loading=!1,this.error=!1,this.repaint()}catch{e.lease.isCurrent()&&(this.tiles=[],this.loading=!1,this.error=!0,this.repaint())}finally{this.tileBusy=!1,this.pumpTiles()}})())}valid(e,t){return Number.isSafeInteger(e)&&Number.isSafeInteger(t)&&e>=0&&t>=0&&e<this.rows&&t<this.cols}cached(e,t){return this.cursor?.row===e&&this.cursor.col===t?this.cursor:this.cells.find(i=>i.row===e&&i.col===t)??this.window?.results.find(i=>i.row===e&&i.col===t)??(this.selected?.row===e&&this.selected.col===t?this.selected:void 0)}exact(e,t){let i=++this.exactVersion,r=this.requests.epoch,s=this.cancelFocus,a=this.focusIntent;if(this.cancelFocus=void 0,this.focusIntent=void 0,s?.(),a?.resolve(null),this.requests.invalidate("focus"),i!==this.exactVersion||r!==this.requests.epoch||!this.valid(e,t)||!this.source||this.error)return Promise.resolve(null);let l=this.cached(e,t);if(l)return Promise.resolve(l);let n=this.requests.begin("focus",this.locale());return!n||i!==this.exactVersion?Promise.resolve(null):new Promise(c=>{let d=!1,h=u=>{d||(d=!0,c(u))};this.cancelFocus=()=>h(null),this.focusIntent={row:e,col:t,lease:n,resolve:h},this.pumpExact()})}ensureWindow(e,t){if(!this.valid(e,t)||this.error)return Promise.resolve(!1);let i=Math.min(20,this.rows),r=Math.min(20,this.cols),s=Math.max(0,Math.min(this.rows-i,e-Math.floor(i/2))),a=Math.max(0,Math.min(this.cols-r,t-Math.floor(r/2))),l=Object.freeze({rowStart:s,rowEnd:s+i,columnStart:a,columnEnd:a+r});if(this.window&&Me(this.window.rectangle,{rowStart:e,rowEnd:e+1,columnStart:t,columnEnd:t+1}))return this.window.done;let n=++this.windowVersion,c=this.window;if(this.window=void 0,c&&(c.results.length=0,c.finish(!1)),this.cells.some(p=>p.row===e&&p.col===t))return this.requests.invalidate("cells"),Promise.resolve(n===this.windowVersion);let d=this.requests.begin("cells",this.locale());if(!d||n!==this.windowVersion)return Promise.resolve(!1);let h,u=new Promise(p=>{h=p});return this.window={lease:d,rectangle:l,next:0,results:[],pending:0,done:u,finish:h},this.pumpExact(),u}pumpExact(){for(;this.exactBusy<2;){if(this.focusIntent){let n=this.focusIntent;if(this.pendingCoordinates.has(`${this.requests.epoch}:${n.row}:${n.col}`))return;if(this.focusIntent=void 0,!n.lease.isCurrent()){n.resolve(null);continue}let c=this.cached(n.row,n.col);if(c){n.resolve(c);continue}this.read(n.row,n.col,n.lease,d=>n.resolve(d));continue}let e=this.window;if(!e||!e.lease.isCurrent())return;let t=e.rectangle.columnEnd-e.rectangle.columnStart,i=t*(e.rectangle.rowEnd-e.rectangle.rowStart);if(e.next===i){e.pending===0&&(this.cells=Object.freeze(e.results.sort((n,c)=>n.row-c.row||n.col-c.col)),this.window=void 0,e.finish(!0),this.repaint());return}let r=e.next++,s=e.rectangle.rowStart+Math.floor(r/t),a=e.rectangle.columnStart+r%t,l=this.cached(s,a);if(l){e.results.push(l);continue}e.pending++,this.read(s,a,e.lease,n=>{e.pending--,!(e!==this.window||!e.lease.isCurrent())&&(n?e.results.push(n):(e.results.length=0,e.finish(!1),this.window=void 0,this.error=!0,this.repaint()))})}}read(e,t,i,r){let s=this.source,a=this.domain,l=`${this.requests.epoch}:${e}:${t}`;this.pendingCoordinates.add(l),this.exactBusy++,(async()=>{try{let n=s.getCell;if(!i.isCurrent()){r(null);return}let c=await n.call(s,e,t,{signal:i.context.signal});if(!i.isCurrent()){r(null);return}let d=gi(c,a);r(i.isCurrent()?Object.freeze({row:e,col:t,...d}):null)}catch{i.isCurrent()&&(this.error=!0,this.repaint()),r(null)}finally{this.pendingCoordinates.delete(l),this.exactBusy--,this.pumpExact()}})()}};function Si(o,e,t){return .1+.9*ce(o,e,t)}function Ne(o,e,t){if(o<0)return-1;if(e<=0)return 0;let i=Math.sqrt(o)/Math.sqrt(e);return Math.min(t-1,Math.floor(i*t))}function xi(o,e,t,i){let r=ce(o,e,t);return Math.min(i-1,Math.floor(r*i))}function yi(o,e,t,i){return!Number.isFinite(o)||!Number.isFinite(i)?ce(o,e,t):!Number.isFinite(e)||!Number.isFinite(t)?ce(o,e,t):!(i>e)||!(i<t)?ce(o,e,t):o<=e?0:o>=t?1:o<=i?.5*((o-e)/(i-e)):.5+.5*((o-i)/(t-i))}function Li(o,e,t,i){return .1+.9*yi(o,e,t,i)}function Ai(o,e,t,i,r){let s=yi(o,e,t,i);return Math.min(r-1,Math.floor(s*r))}var Te=5,ki=256,j=1e4,V=256,oe=400;function X(o){return le(o,Te,2,ki)}var rr=/^([0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i,or=/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)(?:\s*,\s*([\d.]+))?\s*\)/i;function Be(o){let e=o.trim().replace("#","");if(!rr.test(e))return null;let t=e.length===4||e.length===8,i=e.length<=4?e.split("").map(s=>s+s).join(""):e,r=Number.parseInt(i,16);return t?[r>>>24&255,r>>>16&255,r>>>8&255,(r&255)/255]:[r>>16&255,r>>8&255,r&255,1]}function sr(o){let e=or.exec(o);if(!e)return null;let t=e[4]===void 0?1:Number(e[4]);return[Number(e[1]),Number(e[2]),Number(e[3]),t]}function ar(o){ye(`heatmap-invalid-color:${o}`,`<lr-heatmap> could not parse "${o}" (set via --lr-heatmap-scale-lo/-hi) as a CSS color; falling back to the default ramp endpoint.`)}function lr(){ye("heatmap-no-canvas-context","<lr-heatmap>: no 2D canvas context is available in this environment; color resolution for non-hex/non-rgb values (e.g. oklch(), color(srgb ...), named colors) will fall back to the given default instead of resolving the requested color.")}function Y(o,e,t){let i=Be(e)??[0,0,0,1],r=Be(o);if(r)return r;let s=q(t);if(!s)return lr(),i;s.fillStyle="rgb(1, 2, 3)";let a=s.fillStyle;if(s.fillStyle=o,s.fillStyle===a){s.fillStyle="rgb(4, 5, 6)";let d=s.fillStyle;if(s.fillStyle=o,s.fillStyle===d)return ar(o),i}let l=s.fillStyle,n=Be(l)??sr(l);if(n)return n;let c=qt(s.canvas.ownerDocument,l,s);return c?[...c]:i}var Z=60,J=20,Oe=4,Qe=.4,Mi=240,Ge=6,et={fromAttribute:o=>{if(o===null)return;let e=o.trim();if(e.toLowerCase()==="auto")return"auto";let t=Number.parseFloat(e);return Number.isFinite(t)&&t>=0?t:void 0},toAttribute:o=>o===void 0?null:String(o)},tt=Ie(["none","rows","cols","both"],"none"),it=Ie(["top","bottom"],"bottom"),rt=Ie(["none","rows","cols","both"],"none"),fe="rgba(128,128,128,0.25)",ot="#ffffff",Re=7,we="#cde2fb",Ee="#0969da",Q="10px system-ui, sans-serif",se=28,Ve=2,ae=16,st=11,at=2,lt=22,Ti=4096,nt=40,pe=4,ee=2,te="#0969da",Ce="#cf222e",ie="#1a7f37",ct=/var\(|currentcolor|light-dark\(/i,We=16384,Ri=16777216,_e=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]);function De(o){return o.key==="Home"||o.key==="End"?Pe(o)||o.altKey:ve(o)}var Ei=new Set([..._e,"Home","End"]),_i=864e5,Di=2,ze={fromAttribute(o){if(o===null||o.trim()==="")return;let e=Number(o);return Number.isFinite(e)?e:void 0}},zi=Object.freeze({kind:"matrix",rowLabels:Object.freeze([]),colLabels:Object.freeze([]),values:Object.freeze([])});function ht(o){if(!(o==null||!Number.isFinite(o)))return D(o,pe,pe)}var Pi={fromAttribute(o){return o?.trim()?X(Number(o)):Te}};function dt(o,e,t){let i=Math.min(1,Math.max(0,t)),r=Math.round(o[0]+(e[0]-o[0])*i),s=Math.round(o[1]+(e[1]-o[1])*i),a=Math.round(o[2]+(e[2]-o[2])*i),l=o[3]+(e[3]-o[3])*i;return ue([r,s,a,l])}var Ii=new Set(["cellGapX","cellGapY","cellRadius"]);function Fi(o,e){let t=o.matrixController;if((e.has("locale")||e.has("strings"))&&(o.sourceRevealIntent++,o.sourceNavigationIntent++,t.cancelExact()),(e.has("data")||e.has("maxCells"))&&(o.sourceNeedsConfigure=!0),!["mean","min","max"].includes(o.matrixReducer)){t.fail();return}if(e.has("matrixReducer")&&t.error&&(o.sourceNeedsConfigure=!0),Bi(o),o.sourceSelectedCellsInput!==o.selectedCells||o.sourceSelectedCellsEpoch!==t.requests.epoch){o.sourceSelectedCellsInput=o.selectedCells,o.sourceSelectedCellsEpoch=t.requests.epoch,o.sourceSelectedKeys.clear();for(let s=0;s<Math.min(o.selectedCells.length,j);s++){let a=o.selectedCells[s];a?.row!==void 0&&a.col!==void 0&&t.valid(a.row,a.col)&&o.sourceSelectedKeys.add(`${a.row}:${a.col}`)}}let i=t.domain;o.cachedValueRange=o.domain&&o.domain.length===2&&o.domain.every(Number.isFinite)&&o.domain[0]<=o.domain[1]?[o.domain[0],o.domain[1]]:i?[i.min,i.max]:null,o.rebuildBoundedDecorations();let r=ge(o);if(r?.dataset.sourceRow!==void 0&&!t.cells.some(s=>String(s.row)===r.dataset.sourceRow&&String(s.col)===r.dataset.sourceCol)){o.sourceRestoringFocus=!0;try{o.shadowRoot?.querySelector('[part="source-exact-window"]')?.focus()}finally{o.sourceRestoringFocus=!1}}}function Ni(o){let e=o.matrixController;e.error?(o.sourceHasSucceeded&&!o.sourceFailureAnnounced&&o.announcements.announcePolite(o.localize("heatmapSourceError")),o.sourceFailureAnnounced=!0):e.loading||(o.sourceHasSucceeded=!0,o.sourceFailureAnnounced=!1),wt(o);let t=o.selectedCell,i=`${e.requests.epoch}:${t?.row}:${t?.col}`;if(i!==o.sourceSelectionKey&&(o.sourceSelectionKey=i,e.selected=null,t?.row!==void 0&&t.col!==void 0&&e.valid(t.row,t.col))){let r=e.requests.epoch,s=o.matrixSource;e.exact(t.row,t.col).then(a=>{a&&I(o,s,r)&&o.sourceSelectionKey===i&&(e.selected=a,o.sourceResult++)})}if(o.accessibleCells&&e.viewport&&!e.error){let r=e.cursor;e.ensureWindow(r?.row??e.viewport.rowStart,r?.col??e.viewport.columnStart)}}async function ut(o,e,t){let i=o.matrixController,r=o.matrixSource,s=++o.sourceRevealIntent;if(!r||!o.isConnected)return!1;let a=o.ownerDocument,l=o.sourceBindingGeneration,n=()=>s===o.sourceRevealIntent&&l===o.sourceBindingGeneration&&o.matrixSource===r&&o.isConnected&&o.ownerDocument===a;if(!o.matrixController&&(await o.updateComplete,!n()||!o.matrixController)||(i.retainWindowFor(e,t),!n())||(await o.updateComplete,!n())||o.matrixSource!==r||!i.valid(e,t)||i.error)return!1;let c=i.viewport;if(c&&o.matrixViewport&&(e<c.rowStart||e>=c.rowEnd||t<c.columnStart||t>=c.columnEnd)){let m=c.rowEnd-c.rowStart,C=c.columnEnd-c.columnStart,A=Math.max(0,Math.min(i.rows-m,e)),k=Math.max(0,Math.min(i.cols-C,t));if(o.matrixViewport=Object.freeze({rowStart:A,rowEnd:A+m,columnStart:k,columnEnd:k+C}),await o.updateComplete,!n())return!1}let d=be(o.ownerDocument),h=o.sourceFocusVersion,u=i.requests.epoch,p=()=>n()&&I(o,r,u)&&h===o.sourceFocusVersion,f=await i.exact(e,t);if(!f||!p())return!1;let g=o.cellInteractive;if(!p()||!(g?.call(o,{row:e,col:t},f.value??Number.NaN)??!0)||!p())return!1;let w=Gi(o,f,p);if(!p()||(i.cursor=f,o.accessibleCells&&!await i.ensureWindow(e,t))||!p()||(o.sourceResult++,await o.updateComplete,!p()))return!1;let b=o.shadowRoot?.querySelector(`[data-source-row="${e}"][data-source-col="${t}"]`)??o.shadowRoot?.querySelector("[data-source-entry]");if(be(o.ownerDocument)!==d)return!1;o.sourceRestoringFocus=!0;try{b?.focus()}finally{o.sourceRestoringFocus=!1}return p()&&o.announcements.announcePolite(w),!!b&&p()}function I(o,e,t){return o.isConnected&&o.matrixSource===e&&o.matrixController.requests.epoch===t}function Bi(o){let e=o.matrixController;if(!o.matrixSource||!e)return;let t=Math.floor(Math.min(We,Math.max(0,o.getBoundingClientRect().width)));if(!(t<=0)&&!(!o.sourceNeedsConfigure&&t===o.sourceWidth)){if(o.sourceWidth=t,o.sourceNeedsConfigure=!1,o.sourceTooltip=null,o.sourceViewportInvalid||o.data.kind!=="matrix"||!["mean","min","max"].includes(o.matrixReducer)){e.fail();return}e.configure(o.matrixSource,o.matrixViewport,o.sourceViewportExplicit,Math.min(o.cellBudget,Math.max(1,t*t))),o.sourceViewportExplicit=!1}}function Ke(o,e){return e===null?o.localize("heatmapNoDataValue"):o.formatNumericValue(e)}function nr(o,e){let t=qe(o.effectiveLocale);return o.localize("heatmapSourceRangeLabel",void 0,{rowStart:t.format(e.rowStart+1),rowEnd:t.format(e.rowEnd),columnStart:t.format(e.columnStart+1),columnEnd:t.format(e.columnEnd),valid:t.format(e.validCount),count:t.format(e.count),min:Ke(o,e.min),max:Ke(o,e.max),reducer:hr(o),value:Ke(o,mt(o,e))})}function cr(o,e){let t=o.matrixController,i=t.viewport;if(!i||t.loading||t.error)return;let r=e.currentTarget,s=r.getBoundingClientRect(),a=(e.clientX-s.left)/s.width,l=(e.clientY-s.top)/s.height,n=i.rowStart+Math.floor(l*(i.rowEnd-i.rowStart)),c=i.columnStart+Math.floor(a*(i.columnEnd-i.columnStart)),d=ft(o,n,c);o.sourceTooltip=d?{tile:d,x:r.offsetLeft+a*r.offsetWidth,y:r.offsetTop+l*r.offsetHeight}:null}function hr(o){return o.localize(o.matrixReducer==="min"?"heatmapSourceMin":o.matrixReducer==="max"?"heatmapSourceMax":"heatmapSourceMean")}function mt(o,e){return e.validCount===0?null:o.matrixReducer==="mean"?e.sum/e.validCount:e[o.matrixReducer]}function Oi(o,e){let t=o.matrixController;!o.matrixSource||t.error||t.loading||t.revision===void 0||o.emit("lr-matrix-range-select",Object.freeze({...e,revision:t.revision}))}async function pt(o,e,t,i="keyboard"){let r=o.matrixController,s=o.matrixSource,a=r.requests.epoch;if(!s)return;let l=await r.exact(e,t);if(!l||!I(o,s,a))return;let n=o.cellInteractive;if(!(!I(o,s,a)||!(n?.call(o,{row:e,col:t},l.value??Number.NaN)??!0)||!I(o,s,a))){if(r.cursor=l,o.sourceResult++,o.multiple){let c=o.selectedCells.slice(0,j).filter(h=>h.row!==void 0&&h.col!==void 0&&r.valid(h.row,h.col)),d=c.some(h=>h.row===e&&h.col===t)?c.filter(h=>h.row!==e||h.col!==t):[...c.slice(0,j-1),{row:e,col:t}];if(!I(o,s,a)||(o.emit("lr-selection-change",{selectedCells:d,source:i}),!I(o,s,a)))return}o.emit("lr-cell-activate",Object.freeze({row:e,col:t,value:l.value??Number.NaN}))}}function ft(o,e,t){return o.matrixController.tiles.find(i=>e>=i.rowStart&&e<i.rowEnd&&t>=i.columnStart&&t<i.columnEnd)}function dr(o,e){let t=o.matrixController,i=t.viewport;if(!i||t.loading||t.error)return;let r=e.currentTarget.getBoundingClientRect(),s=Math.min(i.rowEnd-1,i.rowStart+Math.floor((e.clientY-r.top)/r.height*(i.rowEnd-i.rowStart))),a=Math.min(i.columnEnd-1,i.columnStart+Math.floor((e.clientX-r.left)/r.width*(i.columnEnd-i.columnStart))),l=ft(o,s,a);l?.count===1?pt(o,s,a,"pointer"):l&&Oi(o,l)}async function $i(o,e){if(De(e))return;let t=o.matrixController,i=t.viewport,r=o.matrixSource,s=t.requests.epoch,a=++o.sourceNavigationIntent;if(!r||!i||t.error)return;let l=t.cursor,n=l?.row??i.rowStart,c=l?.col??i.columnStart;if(e.key==="Enter"||e.key===" "){if(e.preventDefault(),Se(e))return;if(e.shiftKey){let u=ft(o,n,c);u&&Oi(o,u)}else await pt(o,n,c);return}let d=0,h=0;if(e.key==="ArrowDown")d=1;else if(e.key==="ArrowUp")d=-1;else if(e.key==="ArrowRight")h=1;else if(e.key==="ArrowLeft")h=-1;else if(e.key==="PageDown")d=Math.min(20,t.rows);else if(e.key==="PageUp")d=-Math.min(20,t.rows);else if(e.key==="Home")c=0,e.ctrlKey&&(n=0);else if(e.key==="End")c=t.cols-1,e.ctrlKey&&(n=t.rows-1);else return;e.preventDefault();for(let u=0;u<32;u++){n=Math.max(0,Math.min(t.rows-1,n+d)),c=Math.max(0,Math.min(t.cols-1,c+h));let p=ut(o,n,c),f=o.sourceRevealIntent;if(await p||a!==o.sourceNavigationIntent||f!==o.sourceRevealIntent||!I(o,r,s)||!d&&!h)return}}function Gi(o,e,t){let i=o.cellText;return t()?i?.call(o,{row:e.row,col:e.col},e.value??Number.NaN)??o.localize("heatmapMatrixCellLabel",void 0,{row:e.rowLabel,col:e.columnLabel,value:Ke(o,e.value)}):""}function Vi(o){let e=o.matrixController;if(e.loading||e.error||!e.tiles.length)return"";let t="rowStart,rowEnd,columnStart,columnEnd,count,validCount,min,max,sum,reducer,value",i=e.tiles.map(r=>Ae([r.rowStart,r.rowEnd,r.columnStart,r.columnEnd,r.count,r.validCount,r.min,r.max,r.sum,o.matrixReducer,mt(o,r)]));return[t,...i].join(`\r
|
|
2
|
+
`)}function wt(o){let e=o.matrixController;if(!e)return;Bi(o);let t=e.viewport,i=o.shadowRoot?.querySelector("canvas");if(!i||!t||e.loading||e.error)return;let r=o.matrixSource,s=e.requests.epoch,a=o.sourceWidth,l=o.sizeCanvas(i,a,a),n=o.ownerDocument.defaultView?.getComputedStyle(o);if(!l||!n){o.scheduleAfterUpdate(()=>{I(o,r,s)&&e.fail()},"heatmap-source-canvas-failure");return}let c=o.colorRamp(Re,n).colors,d=o.readToken(n,"no-data-fill",fe),h=o.cachedValueRange?.[0]??0,u=o.cachedValueRange?.[1]??1;l.clearRect(0,0,a,a);for(let g of e.tiles){let w=mt(o,g),b=Math.max(1,Math.abs(h),Math.abs(u),Math.abs(w??0)),m=w===null||h===u?0:(w/b-h/b)/(u/b-h/b);l.fillStyle=w===null?d:c[o.scale==="sqrt"?Math.max(0,Ne(Math.max(0,m),1,c.length)):o.rampBucket(w,h,u,c.length)],l.fillRect((g.columnStart-t.columnStart)/(t.columnEnd-t.columnStart)*a,(g.rowStart-t.rowStart)/(t.rowEnd-t.rowStart)*a,(g.columnEnd-g.columnStart)/(t.columnEnd-t.columnStart)*a,(g.rowEnd-g.rowStart)/(t.rowEnd-t.rowStart)*a)}let p=e.cursor;p&&p.row>=t.rowStart&&p.row<t.rowEnd&&p.col>=t.columnStart&&p.col<t.columnEnd&&(l.strokeStyle=o.readToken(n,"focus-ring-color",te),l.strokeRect((p.col-t.columnStart)/(t.columnEnd-t.columnStart)*a,(p.row-t.rowStart)/(t.rowEnd-t.rowStart)*a,Math.max(1,a/(t.columnEnd-t.columnStart)),Math.max(1,a/(t.rowEnd-t.rowStart))));let f=o.selectedCell;f?.row!==void 0&&f.col!==void 0&&e.valid(f.row,f.col)&&f.row>=t.rowStart&&f.row<t.rowEnd&&f.col>=t.columnStart&&f.col<t.columnEnd&&(l.strokeStyle=o.readToken(n,"selected-color",ie),l.strokeRect((f.col-t.columnStart)/(t.columnEnd-t.columnStart)*a,(f.row-t.rowStart)/(t.rowEnd-t.rowStart)*a,Math.max(1,a/(t.columnEnd-t.columnStart)),Math.max(1,a/(t.rowEnd-t.rowStart)))),I(o,r,s)&&(o.drawDirty=!1,o.canvasHasContent=!0)}function Wi(o){let e=o.matrixController,t=e.viewport,i=m=>qe(o.effectiveLocale).format(m),r=t?o.localize("heatmapSourceSummary",void 0,{rows:i(e.rows),cols:i(e.cols),rowStart:i(t.rowStart+1),rowEnd:i(t.rowEnd),columnStart:i(t.columnStart+1),columnEnd:i(t.columnEnd),tiles:i(e.tiles.length)}):o.localize("noData"),s=o.localize("heatmapMatrixLabel",void 0,{rows:i(e.rows),cols:i(e.cols),label:o.valueLabel||o.localize("heatmapValueLabel"),range:e.domain?`${i(e.domain.min)}\u2013${i(e.domain.max)}`:o.localize("heatmapNoDataValue")}),a=e.cells,l=[...new Set(a.map(m=>m.row))],n=e.cursor,c=o.matrixSource,d=e.requests.epoch,h=new Map,u=()=>I(o,c,d);for(let m of a){let C=o.cellInteractive;if(!u())return L``;let A=C?.call(o,{row:m.row,col:m.col},m.value??Number.NaN)??!0;if(!u())return L``;let k=Gi(o,m,u);if(!u())return L``;let E=o.cellColor;if(!u())return L``;let P=E?.call(o,{row:m.row,col:m.col},m.value??Number.NaN);if(!I(o,c,d))return L``;h.set(m,{label:k,interactive:A,color:P?H(P)??void 0:void 0})}let p=a.find(m=>h.get(m)?.interactive&&m.row===n?.row&&m.col===n.col)??a.find(m=>h.get(m)?.interactive),f=a.length?o.localize("heatmapSourceExactWindow",void 0,{rowStart:i(a[0].row+1),rowEnd:i(a[a.length-1].row+1),columnStart:i(Math.min(...a.map(m=>m.col))+1),columnEnd:i(Math.max(...a.map(m=>m.col))+1)}):o.localize("loading"),g=re(o.getAttribute("aria-label"))??re(o.label),w=re(o.description),b=w?"source-help description":"source-help";return L`<div part="base" aria-busy=${String(e.loading)} @focusin=${()=>{o.sourceRestoringFocus||o.sourceFocusVersion++}}>
|
|
3
|
+
<p part="source-summary">${r} ${s}</p>
|
|
4
|
+
<p id="source-help">${o.localize("heatmapSourceKeyboardHelp")}</p>
|
|
5
|
+
${w?L`<p id="description" part="description" class="sr-only">${w}</p>`:T}
|
|
6
|
+
${e.error?L`<p part="source-error">${o.localize("heatmapSourceError")}</p>`:T}
|
|
7
|
+
${t?L`<div class="source-axes" aria-hidden="true"><span>${i(t.columnStart+1)}</span><span>${i(t.columnStart+Math.floor((t.columnEnd-t.columnStart-1)/2)+1)}</span><span>${i(t.columnEnd)}</span></div>`:T}
|
|
8
|
+
<canvas part="canvas" data-source-entry tabindex=${o.accessibleCells?"-1":"0"} role=${o.accessibleCells?T:"application"} aria-hidden=${o.accessibleCells?"true":T} aria-label=${o.accessibleCells?T:g??r} aria-describedby=${b} @click=${m=>dr(o,m)} @mousemove=${m=>cr(o,m)} @mouseleave=${()=>{o.sourceTooltip=null}} @keydown=${m=>$i(o,m)}></canvas>
|
|
9
|
+
${o.sourceTooltip?L`<p part="tooltip" style=${O({left:`${o.sourceTooltip.x}px`,top:`${o.sourceTooltip.y}px`})}>${nr(o,o.sourceTooltip.tile)}</p>`:T}
|
|
10
|
+
${o.accessibleCells?L`<p>${f}</p><div part="source-exact-window" role="grid" aria-label=${g??f} aria-describedby=${w?"description":T} aria-rowcount=${e.rows} aria-colcount=${e.cols} tabindex=${p?"-1":"0"} data-source-entry @keydown=${m=>$i(o,m)}>
|
|
11
|
+
${l.map(m=>L`<div role="row" aria-rowindex=${m+1}>${a.filter(C=>C.row===m).map(C=>L`<div role="gridcell" aria-colindex=${C.col+1} aria-selected=${String(o.multiple?o.sourceSelectedKeys.has(`${C.row}:${C.col}`):o.selectedCell?.row===C.row&&o.selectedCell.col===C.col)}><button part="cell" data-source-row=${C.row} data-source-col=${C.col} ?disabled=${!h.get(C)?.interactive} style=${O({backgroundColor:h.get(C)?.color})} tabindex=${p?.row===C.row&&p?.col===C.col?"0":"-1"} @focus=${()=>{I(o,c,d)&&e.cells===a&&(e.cursor=C,e.retainWindowFor(C.row,C.col),o.sourceResult++)}} @click=${()=>{I(o,c,d)&&e.cells===a&&pt(o,C.row,C.col,"pointer")}}>${h.get(C)?.label}</button></div>`)}</div>`)}
|
|
12
|
+
</div>`:T}
|
|
13
|
+
${o.withoutLegend?T:o.renderLegend(o.cachedValueRange)}
|
|
14
|
+
<div part="source-status">${e.loading?o.localize("loading"):T}</div>
|
|
15
|
+
</div>`}var Ki=Lt` .source-axes{display:flex;justify-content:space-between;gap:var(--lr-space-xs);font-size:var(--lr-font-size-sm)}[part=source-exact-window]{overflow:auto;max-inline-size:100%;contain:inline-size}[part=source-exact-window] [role=row]{display:flex;inline-size:max-content}[part=source-exact-window] [role=gridcell]{flex:none}[part=source-exact-window] [part=cell]{position:relative;inline-size:auto;block-size:auto;min-inline-size:var(--lr-icon-button-size);min-block-size:var(--lr-icon-button-size);padding:var(--lr-space-xs);white-space:nowrap;color:var(--lr-color-text);background:var(--lr-color-surface);border:var(--lr-border-width-thin) solid var(--lr-color-border)}:host{${$t} --_lr-heatmap-scale-lo:var(--lr-color-brand-quiet);--_lr-heatmap-scale-hi:var(--lr-color-brand);--_lr-heatmap-no-data-fill:var(--lr-color-no-data);--_lr-heatmap-label-font:var(--lr-size-10px) var(--lr-font);--_lr-heatmap-tooltip-bg:var(--lr-color-surface);--_lr-heatmap-tooltip-color:var(--lr-color-text);--_lr-heatmap-focus-ring-color:var(--lr-focus-ring-color);--_lr-heatmap-annotation-color:var(--lr-color-danger);--_lr-heatmap-selected-color:var(--lr-color-success);--_lr-heatmap-sticky-label-bg:var(--lr-color-surface)}[part=base]{position:relative;display:flex;flex-direction:column;gap:var(--lr-space-xs);min-inline-size:0;max-inline-size:100%}:host([fill]){block-size:100%;min-block-size:0}:host([fill]) [part=base]{block-size:100%;box-sizing:border-box}:host([fill]) [part=grid]{flex:1 1 auto;min-block-size:0}:host([fit-block]){min-block-size:0}:host([fit-block]) [part=base]{max-block-size:inherit;box-sizing:border-box}:host([fit-block]) [part=grid]{flex:1 1 auto;min-block-size:0}[part=base]:where([data-fit-frame-contained]){overflow:clip}[part=base]:where([data-fit-frame-contained]) [part=canvas]{max-inline-size:100%}canvas{display:block;inline-size:100%;direction:ltr;cursor:pointer}[part=canvas]:hover{outline:var(--lr-border-width-thin) solid var(--lr-heatmap-hover-ring-color,var(--lr-heatmap-focus-ring-color,var(--_lr-heatmap-focus-ring-color)));${K}}:host([multiple]) [part=canvas],:host([multiple]) [part=cell]{touch-action:none;user-select:none}[part=canvas]:active{${de("var(--lr-heatmap-focus-ring-color, var(--_lr-heatmap-focus-ring-color))")} ${K}}[part=cells]{position:absolute;inset:0;direction:ltr;pointer-events:none}[part=grid]{position:relative;overflow:auto;direction:ltr;min-inline-size:0;max-inline-size:100%;max-block-size:var(--lr-heatmap-grid-max-block-size,none)}.grid-stack{position:relative;display:grid;grid-template-areas:'stack'}.grid-stack>*{grid-area:stack;align-self:start;justify-self:start}[part=row-labels],[part=col-labels]{position:sticky;display:block;pointer-events:none;z-index:var(--lr-layer-content)}[part=row-labels]{inset-inline-start:0}[part=col-labels]{inset-block-start:0}.cell-row{display:contents}.surface-frame{position:relative}.axis-targets{position:absolute;inset-block-start:0;inset-inline-start:0;direction:ltr;pointer-events:none;z-index:var(--lr-layer-content)}.grid-stack>.axis-targets{position:relative}.grid-stack>.axis-targets[data-frozen-rows]{position:sticky;inset-inline-start:0}.grid-stack>.axis-targets[data-frozen-cols]{position:sticky;inset-block-start:0}[part~=row-label],[part~=col-label]{position:absolute;box-sizing:border-box;padding:0;border:0;border-radius:var(--lr-radius-xs);background:transparent;color:transparent;cursor:pointer;pointer-events:auto;transition:var(--lr-transition-interactive);${Xe}}[part~=row-label]:disabled,[part~=col-label]:disabled{cursor:default}[part~=row-label-pressed]{box-shadow:inset var(--lr-border-width-thick) 0 0 0 var(--lr-heatmap-axis-pressed-color,var(--lr-color-brand))}[part~=col-label-pressed]{box-shadow:inset 0 calc(-1 * var(--lr-border-width-thick)) 0 0 var(--lr-heatmap-axis-pressed-color,var(--lr-color-brand))}[part~=row-label]:enabled:hover,[part~=col-label]:enabled:hover{background:var(--lr-heatmap-axis-hover-bg,color-mix(in srgb,var(--lr-color-brand) 12%,transparent))}[part~=row-label]:enabled:active,[part~=col-label]:enabled:active{background: ${zt("var(--lr-heatmap-axis-hover-bg, color-mix(in srgb, var(--lr-color-brand) 12%, transparent))")}}[part~=row-label]:focus-visible,[part~=col-label]:focus-visible{${de("var(--lr-heatmap-focus-ring-color, var(--_lr-heatmap-focus-ring-color))")} ${K}}[part=cell]{position:absolute;display:block;padding:0;border:0;border-radius:0;background:transparent;color:transparent;cursor:pointer;pointer-events:auto;${Xe}}[part=cell]:hover{outline:var(--lr-border-width-thin) solid var(--lr-heatmap-hover-ring-color,var(--lr-heatmap-focus-ring-color,var(--_lr-heatmap-focus-ring-color)));${K}}[part=cell]:active{${de("var(--lr-heatmap-focus-ring-color, var(--_lr-heatmap-focus-ring-color))")} ${K}}[part=cell]:focus-visible{${de("var(--lr-heatmap-focus-ring-color, var(--_lr-heatmap-focus-ring-color))")} ${K}}[part=canvas]:focus-visible{${de("var(--lr-heatmap-focus-ring-color, var(--_lr-heatmap-focus-ring-color))")} ${K}}[part=tooltip]{position:absolute;transform:translate(-50%,-100%);margin-block-start:var(--lr-size-neg-6px);padding:var(--lr-size-2px) var(--lr-size-6px);border-radius:var(--lr-radius);background:var(--lr-heatmap-tooltip-bg,var(--_lr-heatmap-tooltip-bg));color:var(--lr-heatmap-tooltip-color,var(--_lr-heatmap-tooltip-color));font-size:var(--lr-font-size-xs);white-space:nowrap;box-shadow:var(--lr-shadow-m);pointer-events:none;z-index:var(--lr-layer-content)}[part=tooltip],[part=legend-lo],[part=legend-hi],[part=legend-stop-label]{unicode-bidi:plaintext}[part=tooltip].tooltip-below{transform:translate(-50%,0);margin-block-start:var(--lr-size-6px)}[part=tooltip][hidden]{display:none}[part=legend]{display:flex;flex:none;flex-wrap:wrap;align-items:center;gap:var(--lr-heatmap-legend-gap,var(--lr-space-xs));justify-content:var(--lr-heatmap-legend-justify,normal);--_lr-heatmap-legend-offset:calc(var(--lr-heatmap-legend-offset, var(--lr-space-xs)) - var(--lr-space-xs));margin-block-start:var(--_lr-heatmap-legend-offset);min-inline-size:0;max-inline-size:100%;box-sizing:border-box;padding:var(--lr-heatmap-legend-padding,0);border-radius:var(--lr-heatmap-legend-radius,0);background:var(--lr-heatmap-legend-bg,transparent);font-family:var(--lr-heatmap-legend-font-family,inherit);font-size:var(--lr-heatmap-legend-font-size,var(--lr-font-size-xs));color:var(--lr-heatmap-legend-color,var(--lr-color-text-quiet));overflow-wrap:anywhere;border-block-start:var(--lr-heatmap-legend-divider,none)}:host([legend-placement=top]) [part=legend]{margin-block:0 var(--_lr-heatmap-legend-offset);border-block-start:none;border-block-end:var(--lr-heatmap-legend-divider,none)}[part=legend] .bar{flex:0 1 var(--lr-heatmap-legend-ramp-inline-size,var(--lr-size-6rem));min-inline-size:0;inline-size:var(--lr-heatmap-legend-ramp-inline-size,var(--lr-size-6rem));block-size:var(--lr-heatmap-legend-ramp-block-size,var(--lr-size-0-5rem));border-radius:var(--lr-heatmap-legend-ramp-radius,var(--lr-size-2px));background:var(--lr-heatmap-color-steps-gradient,linear-gradient(to right,var(--lr-heatmap-scale-lo,var(--_lr-heatmap-scale-lo)),var(--lr-heatmap-scale-hi,var(--_lr-heatmap-scale-hi))))}:host(:dir(rtl)) [part=legend] .bar{transform:scaleX(-1)}[part=legend-stop]{display:inline-flex;align-items:center;gap:var(--lr-size-3px);min-inline-size:0;max-inline-size:100%;overflow-wrap:anywhere}[part=legend-swatch]{flex:0 0 auto;inline-size:var(--lr-heatmap-legend-swatch-size,var(--lr-size-0-6rem));block-size:var(--lr-heatmap-legend-swatch-size,var(--lr-size-0-6rem));border-radius:var(--lr-heatmap-legend-swatch-radius,var(--lr-radius-xs))}[part=legend-stop-label]{min-inline-size:0;max-inline-size:100%;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}[part=legend-lo],[part=legend-hi],[part=legend-value-label]{min-inline-size:0;max-inline-size:100%;overflow-wrap:anywhere}[part=legend-annotation]{display:inline-flex;align-items:center;gap:var(--lr-size-3px);min-inline-size:0;max-inline-size:100%;overflow-wrap:anywhere}[part=legend-annotation] .ring-swatch{flex:0 0 auto;inline-size:var(--lr-heatmap-legend-swatch-size,var(--lr-size-0-6rem));block-size:var(--lr-heatmap-legend-swatch-size,var(--lr-size-0-6rem));border-radius:50%;border:var(--lr-border-width-medium) solid var(--lr-heatmap-annotation-color,var(--_lr-heatmap-annotation-color))}@media (forced-colors:active){[part=legend] .bar,[part=legend-swatch],[part=legend-annotation] .ring-swatch{forced-color-adjust:none;outline:var(--lr-border-width-thin) solid CanvasText}[part~=row-label]:enabled:hover,[part~=col-label]:enabled:hover{border:var(--lr-border-width-thin) solid ButtonText}[part~=row-label-pressed],[part~=col-label-pressed]{border:var(--lr-border-width-thick) solid Highlight}}`;var ur=864e5,Ct=1e4,mr=530;function bt(o){if(o.startsWith("-")||o.startsWith("+"))return new Date(`${o}T00:00:00Z`);let e=Ze(o);return e?$e(e.y,e.m-1,e.d):new Date(NaN)}function gt(o,e=0,t,i,r=Ct){let s=Math.max(1,Math.min(1e5,ne(r,Ct))),a=Math.max(1,Math.floor(mr*s/Ct)),l=(M,x)=>{if(!M||typeof M!="object")return;let R=xe(M,x);return typeof R=="object"?R.value:void 0},n=l(o,"length"),c=ne(typeof n=="number"?n:0,0),d=c>s,h=new Map;for(let M=0;M<Math.min(c,s);M++){let x=l(o,String(M)),R=l(x,"date"),$=l(x,"value");if(typeof R!="string"||typeof $!="number"||h.has(R))continue;let _=Ze(R);_&&h.set(R,{date:R,value:$,dateObj:$e(_.y,_.m-1,_.d)})}let u=[...h.values()];if(u.length===0)return{cells:[],weekCount:0,firstWeekStart:new Date(0),monthLabels:[],truncated:d};let p=he(u.map(M=>M.dateObj.getTime())),f=new Date(p[0]),g=(f.getUTCDay()-e+7)%7,w=$e(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate()-g),b=u.map(M=>{let x=(M.dateObj.getUTCDay()-e+7)%7,R=Math.round((M.dateObj.getTime()-w.getTime())/ur),$=Math.floor(R/7);return{date:M.date,value:M.value,week:$,weekday:x}}),m=he(b.map(M=>M.week))[1]+1,C=m>a,A=Math.min(m,a),k=b.filter(M=>M.week<A),E=[],P=new Set;for(let M of k.slice().sort((x,R)=>x.week-R.week||x.weekday-R.weekday)){let x=bt(M.date),R=`${x.getUTCFullYear()}-${x.getUTCMonth()}`;P.has(R)||(P.add(R),E.push({week:M.week,label:t?.(x.getUTCMonth(),x.getUTCFullYear())??Le(i,{month:"short",calendar:"gregory",timeZone:"UTC"}).format(x)}))}return{cells:k,weekCount:A,firstWeekStart:w,monthLabels:E,truncated:d||C}}function Ui(o,e,t){if(e.length===0)return 0;let i=0,r=e.length;for(;i<r;){let a=i+r>>>1;e[a]<=o?i=a+1:r=a}let s=i/e.length;return Math.min(t-1,Math.floor(s*t))}function Hi(o,e,t,i){let{rows:r,cols:s,cellSize:a,padLeft:l,padTop:n}=t;if(r===0||s===0)return null;let c=Math.floor((o-l)/a),d=Math.floor((e-n)/(t.rowHeight??a));if(d<0||d>=r||c<0||c>=s||t.customShape&&(o-l-c*a>=t.cellWidth||e-n-d*(t.rowHeight??a)>=t.cellHeight))return null;let h={row:d,col:c};return i(h)?h:null}function qi(o,e,t){for(let i=0;i<o;i++)for(let r=0;r<e;r++){let s={row:i,col:r};if(t(s))return s}return null}function ji(o,e,t,i,r,s,a){let l=o,n=e;for(;;){let c=Math.min(r-1,Math.max(0,l+t)),d=Math.min(s-1,Math.max(0,n+i));if(c===l&&d===n)return{row:o,col:e};l=c,n=d;let h={row:l,col:n};if(a(h))return h}}function Xi(o,e,t,i,r,s,a,l){if(t===0)return null;let n=r(),c=0,d=t;for(;c<d;){let w=Math.floor((c+d)/2);i[w]<=o?c=w+1:d=w}let h=c-1;if(h<0||o>=i[h]+n)return null;let u=s(),p=n,f=null;for(let w=0;w<7;w++){let b=u[w];if(e>=b&&e<b+p){f=w;break}}if(f===null)return null;let g=a(h,f);return l(g)?g:null}function Yi(o,e,t){for(let i=0;i<o;i++)for(let r=0;r<7;r++){let s=e(i,r);if(t(s))return s}return null}function Zi(o,e,t,i,r,s,a){let l=o,n=e;for(;;){let c=Math.min(r-1,Math.max(0,l+t)),d=Math.min(6,Math.max(0,n+i));if(c===l&&d===n)return s(o,e);l=c,n=d;let h=s(l,n);if(a(h))return h}}function vt(o,e){let t=new Date(o.getTime()+e*864e5).toISOString();return t.slice(0,t.indexOf("T"))}function St(o,e,t,i){let r=o*7+e;return t[r]??vt(i,r)}function Ji(o,e,t,i,r,s){let a=t.get(`${o}:${e}`);return a?{date:a.date,value:a.value}:{date:St(o,e,i,r),value:s?Number.NaN:-1}}function Qi(o,e,t,i){let r=t.get(`${o}:${e}`);return r?r.value:i?Number.NaN:-1}function er(o,e){return{x:e.padLeft+o.col*e.cellSize,y:e.padTop+o.row*(e.rowHeight??e.cellSize),w:e.cellWidth,h:e.cellHeight}}function xt(o,e,t){return{x:t.columnPositions[o]??t.padLeft,y:t.rowPositions[e]??t.padTop,w:t.cellSize,h:t.cellSize}}function tr(o,e){return{x:e.padLeft+o.col*e.cellSize,y:e.padTop+o.row*(e.rowHeight??e.cellSize),w:e.cellWidth??e.cellSize-1,h:e.cellHeight??e.cellSize-1}}var Ue=class{constructor(){this.widths=new Map,this.clipped=new Map,this.entries=0,this.textUnits=0}key(e,t,i){if(typeof t!="string"||t.length>65536)return;let r=[e.font,e.direction,e.fontKerning,e.fontStretch,e.fontVariantCaps,e.letterSpacing,e.wordSpacing,e.textRendering,t,i],s=0;for(let a of r)if(typeof a=="string"&&(s+=a.length),s>65536)return;return JSON.stringify(r)}remember(e,t,i,r=t.length){this.entries>=1024||this.textUnits+r>65536||(e.set(t,i),this.entries+=1,this.textUnits+=r)}width(e,t){let i=this.key(e,t);if(i===void 0)return e.measureText(t).width;let r=this.widths.get(i);if(r!==void 0)return r;let s=e.measureText(t).width;return this.remember(this.widths,i,s),s}clip(e,t,i,r){let s=this.key(e,t,i);if(s===void 0)return r();let a=this.clipped.get(s);if(a!==void 0)return a;let l=r();return this.remember(this.clipped,s,l,s.length+l.length),l}};function ir(o,e){if(Object.is(o,e))return!1;if(!Array.isArray(o)||!Array.isArray(e)||o.length!==e.length)return!0;for(let t=0;t<o.length;t+=1){if(Object.hasOwn(o,t)!==Object.hasOwn(e,t))return!0;let i=o[t],r=e[t];if(!i||!r){if(!Object.is(i,r))return!0;continue}if(!Object.is(i.value,r.value)||!Object.is(i.color,r.color)||!Object.is(i.label,r.label)||!Object.is(i.partOfRamp,r.partOfRamp))return!0}return!1}var v=class extends je{static{this.defaultStrings={...super.defaultStrings,heatmapCalendarCellLabel:Yt,heatmapCalendarLabel:Zt,heatmapDecorationLimit:Jt,heatmapDefaultColLabel:Qt,heatmapDefaultRowLabel:ei,heatmapInputLimit:ti,heatmapMatrixCellLabel:ii,heatmapMatrixLabel:ri,heatmapNoDataValue:oi,heatmapProjectionLimit:si,heatmapSelectedCellLabel:ai,heatmapSelectedCount:li,heatmapSourceError:ni,heatmapSourceExactWindow:ci,heatmapSourceKeyboardHelp:hi,heatmapSourceMax:di,heatmapSourceMean:ui,heatmapSourceMin:mi,heatmapSourceRangeLabel:pi,heatmapSourceSummary:fi,heatmapValueLabel:wi,loading:Pt,noData:It}}get matrixSource(){return this.sourceInput}set matrixSource(e){let t=this.sourceInput;this.sourceInput=e,this.sourceBindingGeneration++,e===null?this.matrixController?.detach():this.matrixController?.invalidate(),this.sourceNeedsConfigure=!0,this.requestUpdate("matrixSource",t,{hasChanged:()=>!0})}get matrixViewport(){return this.sourceViewportInput}set matrixViewport(e){let t=this.sourceViewportInput;this.sourceViewportInvalid=!1;try{this.sourceViewportInput=e===null?null:ke(e)}catch{this.sourceViewportInvalid=!0,this.sourceViewportInput=null}this.sourceViewportExplicit=!0,this.sourceNeedsConfigure=!0;let i=this.sourceViewportInput;!this.sourceViewportInvalid&&(t===i||t!==null&&i!==null&&t.rowStart===i.rowStart&&t.rowEnd===i.rowEnd&&t.columnStart===i.columnStart&&t.columnEnd===i.columnEnd)||this.matrixController?.invalidate(),this.requestUpdate("matrixViewport",t,{hasChanged:()=>!0})}scheduleUpdate(){return this.matrixSource&&!this.matrixController&&this.isConnected&&(this.matrixController=new Fe(this,()=>{this.sourceResult++},()=>this.effectiveLocale)),super.scheduleUpdate()}revealSourceCell(e,t){return ut(this,e,t)}static{this.collectionSupport=kt}static{this.immutableEventDetails=Object.freeze(["lr-selection-change"])}static{this.ownedCollectionProperties=Object.freeze(["data","annotations","legendStops","colorSteps","selectedCells"])}static{this.identityCollectionObjectProperties=Object.freeze(["data"])}static{this.styles=[je.styles,Ki,_t]}static get observedAttributes(){return[...new Set([...super.observedAttributes,"role"])]}get cellBudget(){return Math.max(1,Math.min(1e5,ne(this.maxCells,j)))}get effectiveMode(){return this.data.kind}get stickyLabels(){return this._stickyLabels}set stickyLabels(e){let t=tt.normalizeReflected(this,"sticky-labels",e),i=this._stickyLabels;i!==t&&(this._stickyLabels=t,this.requestUpdate("stickyLabels",i))}get effectiveStickyLabels(){return this.effectiveMode==="matrix"?this._stickyLabels:"none"}get freezesRowLabels(){let e=this.effectiveStickyLabels;return e==="rows"||e==="both"}get freezesColLabels(){let e=this.effectiveStickyLabels;return e==="cols"||e==="both"}get effectiveColLabelRotation(){if(typeof this.colLabelRotation!="number")return 0;let e=B(this.colLabelRotation,0);return Math.min(90,Math.max(0,e))}get matrixPadLeft(){if(this.rowLabelWidth==="auto")return this.resolvedRowLabelWidth;if(typeof this.rowLabelWidth!="number")return Z;let e=B(this.rowLabelWidth,Z);return e>=0?e:Z}get matrixGeometry(){if(!(this.matrixSource||this.effectiveMode!=="matrix"))return this.lastPaintedMatrixGeometry}set matrixGeometry(e){}get calendarGeometry(){if(this.effectiveMode==="calendar")return this.lastPaintedCalendarGeometry}set calendarGeometry(e){}exportData(e){if(e==="csv")return this.exportCsv();if(this.matrixSource&&(!this.matrixController||this.matrixController.loading||this.matrixController.error||this.sourceNeedsConfigure)||e!=="png"||!this.canvasHasContent||this.drawDirty||!this.canvas||this.canvas.width<=0||this.canvas.height<=0)return"";try{let t=this.frozenBandCanvas("row-labels"),i=this.frozenBandCanvas("col-labels");if(!t&&!i)return this.canvas.toDataURL("image/png");let r=this.ownerDocument.createElement("canvas");r.width=this.canvas.width,r.height=this.canvas.height;let s=r.getContext("2d");return s?(s.drawImage(this.canvas,0,0),t&&t.width>0&&t.height>0&&s.drawImage(t,0,0),i&&i.width>0&&i.height>0&&s.drawImage(i,0,0),r.toDataURL("image/png")):""}catch{return""}}exportCsv(){if(this.matrixSource)return this.matrixController?Vi(this):"";let e=this.data;if(e.kind==="calendar"){let r="date,value",s=e.days.filter(a=>!this.isNoData(a.value)).map(a=>Ae([a.date,a.value]));return[r,...s].join(`\r
|
|
16
|
+
`)}let t="row,column,value",i=[];return e.values.forEach((r,s)=>{let a=e.rowLabels[s]??"";r.forEach((l,n)=>{if(this.isNoData(l))return;let c=e.colLabels[n]??"";i.push(Ae([a,c,l]))})}),[t,...i].join(`\r
|
|
17
|
+
`)}get matrixPadTop(){if(this.colLabelHeight==="auto")return this.resolvedColLabelHeight;if(typeof this.colLabelHeight!="number")return J;let e=B(this.colLabelHeight,J);return e>=0?e:J}measureColLabelHeight(e){let t=this.matrixColLabels;if(t.length===0)return J;let i=q(this.ownerDocument);if(!i)return J;i.font=this.readToken(e,"label-font",Q);let r=0,s=le(this.colLabelInterval,1,1);for(let n=0;n<t.length;n+=s)r=Math.max(r,this.labelWidth(i,t[n]));let a=this.effectiveColLabelRotation*Math.PI/180,l=r*Math.sin(a);return Math.max(J,Math.min(Math.ceil(l)+Ge,Mi))}measureRowLabelWidth(e){let t=this.matrixRowLabels;if(t.length===0)return Z;let i=q(this.ownerDocument);if(!i)return Z;i.font=this.readToken(e,"label-font",Q);let r=0;for(let l of t)r=Math.max(r,this.labelWidth(i,l));let s=this.clientWidth||0,a=s>0?s*Qe:Number.POSITIVE_INFINITY;return Math.min(Math.max(Z,Math.ceil(r)+Oe*2),a)}withLabelCache(e){let t=this.labelCache;this.labelCache=new Ue;try{e()}finally{this.labelCache=t}}labelWidth(e,t){return this.labelCache?.width(e,t)??e.measureText(t).width}ellipsize(e,t,i){return this.labelCache?.clip(e,t,i,()=>this.ellipsizeLabel(e,t,i))??this.ellipsizeLabel(e,t,i)}ellipsizeLabel(e,t,i){if(i<=0)return"";if(this.labelWidth(e,t)<=i)return t;let r=[...t],s=n=>`${r.slice(0,n).join("")}\u2026`,a=0,l=r.length-1;for(;a<l;){let n=a+l+1>>1;this.labelWidth(e,s(n))<=i?a=n:l=n-1}return a>0||this.labelWidth(e,"\u2026")<=i?s(a):""}get calendarPadLeft(){let e=this.calendarWeekdayLabelWidth;return e==="auto"?this.resolvedCalendarWeekdayLabelWidth:e??se}measureCalendarWeekdayLabelWidth(e,t){let i=q(this.ownerDocument);if(!i)return se;i.font=this.readToken(e,"label-font",Q);let r=0;for(let l of this.weekdayLabels(t))l&&(r=Math.max(r,this.labelWidth(i,l)));let s=this.clientWidth||0,a=s>0?Math.max(se,s*Qe):Number.POSITIVE_INFINITY;return Math.min(Math.max(se,Math.ceil(r)+Ve*2),a)}get matrixRowLabels(){return this.cachedMatrixData.rowLabels}get matrixColLabels(){return this.cachedMatrixData.colLabels}get matrixValues(){return this.cachedMatrixData.values}get calendarDays(){return this.data.kind==="calendar"?this.data.days:[]}get calendarData(){return this.data.kind==="calendar"?this.data:void 0}get cellSize(){return this._cellSize??(this.effectiveMode==="calendar"?st:lt)}set cellSize(e){let t=this._cellSize;this._cellSize=e==null?void 0:D(e,this.effectiveMode==="calendar"?st:lt,1),this.requestUpdate("cellSize",t)}get rowHeight(){return this._rowHeight}set rowHeight(e){let t=this._rowHeight;this._rowHeight=e==null||!Number.isFinite(e)?void 0:D(e,1,1,Ti),this.requestUpdate("rowHeight",t)}get legendPlacement(){return this._legendPlacement}set legendPlacement(e){let t=it.normalizeReflected(this,"legend-placement",e),i=this._legendPlacement;i!==t&&(this._legendPlacement=t,this.requestUpdate("legendPlacement",i))}get axisSelection(){return this._axisSelection}set axisSelection(e){let t=rt.normalizeReflected(this,"axis-selection",e),i=this._axisSelection;i!==t&&(this._axisSelection=t,this.requestUpdate("axisSelection",i))}get signedDomain(){return this.domain!==void 0||this.midpoint!==void 0}rampAlpha(e,t,i){let r=this.midpoint;return r===void 0?Si(e,t,i):Li(e,t,i,r)}rampBucket(e,t,i,r){let s=this.midpoint;return s===void 0?xi(e,t,i,r):Ai(e,t,i,s,r)}isNoData(e){return Number.isFinite(e)?e<0&&!this.signedDomain:!0}get maxCellSize(){return this._maxCellSize}set maxCellSize(e){let t=this._maxCellSize;this._maxCellSize=ht(e),this.requestUpdate("maxCellSize",t)}get minCellSize(){return this._minCellSize}set minCellSize(e){let t=this._minCellSize;this._minCellSize=ht(e),this.requestUpdate("minCellSize",t)}get normalizedFirstDayOfWeek(){return(le(this.calendarData?.firstDayOfWeek??0,0)%7+7)%7}get bucketCount(){return this._bucketCount}set bucketCount(e){let t=this._bucketCount;this._bucketCount=X(e),this.requestUpdate("bucketCount",t)}toggleRowSelection(e){this.toggleSelectionAxis(e,!0)}toggleColumnSelection(e){this.toggleSelectionAxis(e,!1)}get calendarWeekdayLabelText(){return this.calendarData?.weekdayLabelText}get calendarWeekdayLabelWidth(){let e=this.calendarData?.weekdayLabelWidth;if(e==="auto")return e;if(typeof e!="number")return;let t=B(e,se);return t>=0?t:void 0}get calendarMonthLabelText(){return this.calendarData?.monthLabelText}get calendarColumnX(){return this.calendarData?.columnX}get calendarRowY(){return this.calendarData?.rowY}constructor(){super(),this.sourceBindingGeneration=0,this.sourceInput=null,this.sourceViewportInput=null,this.sourceViewportInvalid=!1,this.matrixReducer="mean",this.sourceNeedsConfigure=!0,this.sourceViewportExplicit=!1,this.sourceRevealIntent=0,this.sourceNavigationIntent=0,this.sourceResult=0,this.sourceTooltip=null,this.sourceFocusVersion=0,this.sourceRestoringFocus=!1,this.sourceHasSucceeded=!1,this.sourceFailureAnnounced=!1,this.sourceSelectedKeys=new Set,this.sourceSelectionKey="",this.sourceSelectedCellsEpoch=-1,this.sourceWidth=0,this.data=zi,this.maxCells=1e4,this._stickyLabels="none",this.resolvedColLabelHeight=J,this.resolvedRowLabelWidth=Z,this.resolvedCalendarWeekdayLabelWidth=se,this.withoutLegend=!1,this._legendPlacement="bottom",this.fill=!1,this.fitBlock=!1,this._axisSelection="none",this.axisFocus={row:0,col:0},this.scale="linear",this.cellGapX=1,this.cellGapY=1,this.cellRadius=0,this.colLabelInterval=1,this.fitToWidth=!1,this._bucketCount=Te,this.annotations=[],this.selectedCell=null,this.label=null,this.description=null,this.multiple=!1,this.selectedCells=[],this.accessibleCells=!1,this.cachedValueRange=null,this.cachedMatrixData={rowLabels:[],colLabels:[],values:[],truncated:!1},this.cachedCalendarGrid=gt(this.calendarDays),this.cachedCalendarSortedValues=[],this.cachedCalendarCellsByPos=new Map,this.cachedCalendarCellsByDate=new Map,this.cachedAnnotations=[],this.cachedLegendStops=[],this.cachedColorSteps=[],this.cachedCalendarAnnotationDates=new Set,this.cachedMatrixAnnotationPositions=new Set,this.decorationProjectionTruncated=!1,this.cachedCalendarDateByPos=[],this.cachedRamp=null,this.canvasHasContent=!1,this.canvasVisible=!0,this.drawDirty=!1,this.overlayRevision=0,this.hoverCell=null,this.focusedCell=null,this.liveText="",this.accessibleTargetSizePx=nt,this.restoringAccessibleFocus=!1,this.accessibleFocusGeneration=0,this.announcements=new Ft(this,{eager:["polite"]}),this.authorRole=null,this.authorAriaLabel=null,this.generatedAriaLabel="",this.accessibleDescription="",this.syncingGeneratedSemantics=!1,this.hasSyncedDescribedByElements=!1,this.initialLimitUpdate=!0,this.lastLimitNotice="",this.canvasBlurred=!1,this.onCanvasFocusChange=e=>{let t=e.type==="blur";this.canvasBlurred!==t&&(this.canvasBlurred=t,this.focusedCell&&(this.repaintFocusRing(t?this.focusedCell:null)||this.requestDraw()))},this.scheduleDraw=()=>{if(this.drawFrameRequest)return;let e=this.ownerDocument.defaultView;if(!e||!this.isConnected)return;let t={owner:e,handle:0};t.handle=e.requestAnimationFrame(()=>{this.drawFrameRequest===t&&(this.drawFrameRequest=void 0,this.isConnected&&this.ownerDocument.defaultView===e&&this.requestDraw())}),this.drawFrameRequest=t},this.selectedPositions=new Map,this.selectionAnchor=null,this.onSelectionPointerDown=e=>{if(e.button!==0||!e.isPrimary||this.selectionGesture||(this.canceledSelectionPointer=void 0,this.releaseSelectionClick?.(),this.releaseSelectionClick=void 0,!this.multiple))return;let t=this.selectionContext;if(!t?.())return;let i=this.selectionPointerPosition(e);if(!i||!t())return;if(e.preventDefault(),this.selectionRangeBase=void 0,this.selectionAnchor=i,this.focusedCell=i,this.accessibleCells?this.focusAccessibleCell(i):this.canvas?.focus(),!t()){this.canceledSelectionPointer=e.pointerId,this.suppressNextSelectionClick();return}let r=e.currentTarget;this.selectionGesture={current:t,pointerId:e.pointerId,target:r,start:i,previous:i,moved:!1,selecting:!this.selectedPositions.has(this.accessibleCellKey(i)),cells:new Map(this.selectedPositions)},Vt(r,e.pointerId),this.paintSelectionTo(i)},this.onSelectionPointerMove=e=>{let t=this.selectionGesture;if(!t||t.pointerId!==e.pointerId)return;if(!t.current()){this.cancelSelectionGesture();return}let i=this.selectionPointerPosition(e);if(!t.current()){this.cancelSelectionGesture();return}i&&!this.samePos(i,t.previous)&&this.paintSelectionTo(i)},this.onSelectionPointerUp=e=>{if(this.canceledSelectionPointer===e.pointerId){this.canceledSelectionPointer=void 0,this.suppressNextSelectionClick();return}let t=this.selectionGesture;if(!t||t.pointerId!==e.pointerId)return;if(!t.current()){this.cancelSelectionGesture(!0);return}let i=this.selectionPointerPosition(e);if(!t.current()){this.cancelSelectionGesture(!0);return}i&&this.paintSelectionTo(i),this.cancelSelectionGesture(!0),t.current()&&(this.proposeSelection(t.cells,"pointer"),!t.moved&&t.current(!0)&&this.emitCellClick(t.start,"pointer",!1,()=>t.current(!0)))},this.onSelectionPointerCancel=e=>{this.selectionGesture?.pointerId===e.pointerId&&this.cancelSelectionGesture()},this.tooltipSize={inline:0,block:0},this.onPointerMove=e=>{let t=this.hitTest(e.offsetX,e.offsetY);this.samePos(this.hoverCell,t)||(this.hoverCell=t)},this.onPointerLeave=()=>{this.hoverCell=null},this.onCanvasClick=e=>{if(this.consumeSelectionClick(e))return;let t=this.hitTest(e.offsetX,e.offsetY);t&&(this.focusedCell=t,this.announce(t),this.emitCellClick(t))},this.onKeyDown=e=>{this.selectionKeyDown(e,this.focusedCell)||De(e)||this.navigateGridKey(e)},this.canvasColorCache=new Map,this.onAccessibleCellFocus=e=>{if(this.restoringAccessibleFocus)return;let t=e.currentTarget.dataset.cellKey,i=t?this.accessibleCellAtKey(t):null;i&&(this.samePos(i,this.focusedCell)||(this.selectionAnchor=i,this.selectionRangeBase=void 0),this.focusedCell=i,this.announce(i))},this.onAccessibleCellClick=e=>{if(this.consumeSelectionClick(e))return;let t=e.currentTarget.dataset.cellKey,i=t?this.accessibleCellAtKey(t):null;i&&(this.focusedCell=i,this.announce(i),this.emitCellClick(i,e.detail===0?"keyboard":"pointer"))},this.onAccessibleCellKeyDown=e=>{let t=e.currentTarget.dataset.cellKey,i=t?this.accessibleCellAtKey(t):null;i&&(this.selectionKeyDown(e,i)||!Ei.has(e.key)||De(e)||(e.preventDefault(),this.focusedCell=i,this.navigateGridKey(e),this.focusAccessibleCell(this.focusedCell)))},this.onAxisTargetClick=e=>{let t=e.currentTarget,i=Number(t.dataset.axisIndex),r=t.dataset.axis==="row"?"row":"col";this.axisFocus={...this.axisFocus,[r]:i},r==="row"?this.toggleRowSelection(i):this.toggleColumnSelection(i)},this.onAxisTargetKeyDown=e=>{if(ve(e))return;let t=e.currentTarget,i=t.dataset.axis==="row"?"row":"col",r=Number(t.dataset.axisIndex),s=Array.from(t.parentElement?.querySelectorAll(".axis-target:not([disabled])")??[]),a=s.indexOf(t),l=i==="row"?"ArrowUp":"ArrowLeft",n=i==="row"?"ArrowDown":"ArrowRight",c=e.key===l?a-1:e.key===n?a+1:e.key==="Home"?0:e.key==="End"?s.length-1:void 0;if(c===void 0)return;e.preventDefault();let d=s[Math.max(0,Math.min(s.length-1,c))];!d||d===t||(t.setAttribute("tabindex","-1"),d.setAttribute("tabindex","0"),d.focus(),this.axisFocus={...this.axisFocus,[i]:Number(d.dataset.axisIndex??r)})},new Ht(this,()=>this.onThemeSignal()),this.calendarSpacingTrackingArmed=!0}requestUpdate(e,t,i){e===Tt&&this.syncingGeneratedSemantics||(this.calendarSpacingTrackingArmed&&e!==void 0&&Ii.has(e)&&(this.explicitCalendarSpacingProperties??=new Set).add(e),e===void 0&&(this.sourceBindingGeneration=(this.sourceBindingGeneration??0)+1,this.matrixController?.invalidate(),this.sourceNeedsConfigure=!0),super.requestUpdate(e,t,i))}explicitCalendarSpacing(e){return this.explicitCalendarSpacingProperties?.has(e)?this[e]??void 0:void 0}warnOnLegendRampMismatch(){let e=this.cachedColorSteps.map(i=>H(i)??i);if(e.length===0)return;let t=this.cachedLegendStops.filter(i=>!!i.color&&i.partOfRamp!==!1).map(i=>H(i.color??"")??i.color??"");t.length===0||t.length===e.length&&t.every((i,r)=>i===e[r])||ye("lyra-heatmap-legend-ramp-mismatch",`<${this.localName}>: legendStops describes ${t.length} colour(s) that do not match the ${e.length} colorSteps the cells are painted from, so the legend may misdescribe the ramp. Supply legendStops built from the same array as colorSteps, or omit it to keep the built-in gradient key.`)}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),!(t===i||this.syncingGeneratedSemantics)&&(e==="role"&&(this.authorRole=i),e==="aria-label"&&(this.authorAriaLabel=i))}connectedCallback(){super.connectedCallback(),this.matrixSource&&!this.matrixController&&this.requestUpdate("matrixSource"),this.sourceNeedsConfigure=!0,this.refreshAccessibleTargetSize();let e=this.ownerDocument.defaultView,t=e?.ResizeObserver;if(e&&t){let r;r=new t(()=>{!this.isConnected||this.ownerDocument.defaultView!==e||this.resizeObserver!==r||this.scheduleDraw()}),this.resizeObserver=r,r.observe(this)}let i=e?.IntersectionObserver;if(this.canvasVisible=!0,e&&i){let r;r=new i(s=>{if(!this.isConnected||this.ownerDocument.defaultView!==e||this.intersectionObserver!==r)return;let a=s.find(l=>l.target===this);!a||a.isIntersecting===this.canvasVisible||(this.canvasVisible=a.isIntersecting,this.canvasVisible&&this.drawDirty&&this.scheduleDraw())}),this.intersectionObserver=r,r.observe(this)}this.cachedRamp=null,this.resolvedStepsMemo=void 0,this.paintedTheme=void 0,this.canvasColorCache.clear(),this.watchDpr(),this.drawDirty&&!t&&this.scheduleDraw()}disconnectedCallback(){this.sourceBindingGeneration++,this.dismissTooltip(),super.disconnectedCallback(),this.cancelSelectionGesture(),this.canceledSelectionPointer=void 0,this.releaseSelectionClick?.(),this.releaseSelectionClick=void 0,this.selectionAnchor=null,this.selectionRangeBase=void 0,this.accessibleFocusGeneration++,this.pendingAccessibleFocus=void 0,this.pendingAccessibleFocusOrigin=void 0,this.restoringAccessibleFocus=!1,this.hoverCell=null,this.focusedCell=null,this.canvasBlurred=!1,this.liveText="",this.canvasHasContent=!1,this.drawDirty=!0,this.resizeObserver?.disconnect(),this.resizeObserver=void 0,this.intersectionObserver?.disconnect(),this.intersectionObserver=void 0,this.canvasVisible=!0,this.stopWatchingDpr?.(),this.stopWatchingDpr=void 0,this.cancelDrawFrame()}adoptedCallback(){this.sourceBindingGeneration++,super.adoptedCallback(),this.matrixController?.requests.adopted(),this.sourceNeedsConfigure=!0,this.announcements.adopted()}watchDpr(){this.stopWatchingDpr=yt(this.ownerDocument.defaultView,()=>this.requestDraw())}willUpdate(e){if(super.willUpdate(e),this.selectionContext=this.captureSelectionContext(),e.has("matrixSource")&&!this.matrixSource&&e.set("data",void 0),this.matrixSource){this.clearGeneratedSemantics(),this.matrixController&&Fi(this,e);return}(e.size===0||[...e.keys()].some(c=>!["hoverCell","focusedCell","liveText"].includes(String(c))))&&this.overlayRevision++,(e.has("data")||e.has("maxCells")||e.has("domain")||e.has("midpoint")||!this.hasUpdated)&&this.rebuildCanonicalMatrixData(),(e.has("annotations")||e.has("legendStops")||e.has("colorSteps")||!this.hasUpdated)&&this.rebuildBoundedDecorations();let t=e.has("accessibleCells")&&this.hasUpdated,i=e.has("data")||e.has("maxCells")||e.has("cellInteractive"),r=i||t?ge(this):null,s=r?.matches('[part="cell"]')?r:null,a=s?.matches('[part="cell"]')?[...this.renderRoot.querySelectorAll('[part="cell"]')]:[],l=s?.matches('[part="cell"]')?{identity:s.dataset.cellIdentity,index:a.indexOf(s)}:void 0;i&&(this.focusedCell=null,this.hoverCell=null,this.liveText="");let n=this.effectiveLocale;if(e.has("data")||e.has("maxCells")||e.has("locale")||this.lastUpdatedLocale!==n||!this.hasUpdated){this.cachedCalendarGrid=gt(this.calendarDays,this.normalizedFirstDayOfWeek,this.calendarMonthLabelText,n,this.cellBudget),this.cachedCalendarSortedValues=this.cachedCalendarGrid.cells.map(h=>h.value).filter(h=>!this.isNoData(h)).sort((h,u)=>h-u),this.cachedCalendarCellsByPos=new Map(this.cachedCalendarGrid.cells.map(h=>[`${h.week}:${h.weekday}`,h])),this.cachedCalendarCellsByDate=new Map(this.cachedCalendarGrid.cells.map(h=>[h.date,h]));let{firstWeekStart:c,weekCount:d}=this.cachedCalendarGrid;this.cachedCalendarDateByPos=Array.from({length:d*7},(h,u)=>vt(c,u))}if(e.has("colorSteps")||e.has("withoutLegend")||!this.hasUpdated){let c=this.withoutLegend?[]:this.cachedColorSteps.map(H);c.length>=2&&c.every(d=>d!==void 0)?this.style.setProperty("--lr-heatmap-color-steps-gradient",`linear-gradient(to right, ${c.join(", ")})`):this.style.removeProperty("--lr-heatmap-color-steps-gradient")}if((e.has("data")||e.has("maxCells")||e.has("domain")||e.has("midpoint")||!this.hasUpdated)&&(this.cachedValueRange=this.computeValueRange()),(i||!this.hasUpdated)&&(this.accessibleIndex=void 0),(i||t||e.has("multiple"))&&(this.cancelSelectionGesture(),this.selectionAnchor=null,this.selectionRangeBase=void 0,this.proposedSelectionKeys=void 0),i||e.has("selectedCells")||e.has("multiple")||!this.hasUpdated){let c=this.selectedPositions;if(this.rebuildSelectedPositions(),this.pendingSelectionRepaint=void 0,!i&&e.has("selectedCells")){let d=[...c].filter(([h])=>!this.selectedPositions.has(h)).map(([,h])=>h);for(let[h,u]of this.selectedPositions)c.has(h)||d.push(u);d.length<=16&&(this.pendingSelectionRepaint=d)}e.has("selectedCells")&&this.selectionGesture&&this.cancelSelectionGesture(),e.has("selectedCells")&&this.selectionRangeBase&&(this.proposedSelectionKeys?.size!==this.selectedPositions.size||[...this.selectedPositions.keys()].some(d=>!this.proposedSelectionKeys?.has(d)))&&(this.selectionAnchor=this.focusedCell,this.selectionRangeBase=void 0)}if(l){let c=this.accessibleCellPositions(),d=(l.identity==null?void 0:c.find(h=>this.accessibleCellIdentity(h)===l.identity))??c[Math.min(Math.max(l.index,0),c.length-1)]??null;this.focusedCell=d,this.liveText=d?this.resolveCellText(d):"",this.pendingAccessibleFocus=d??"base",this.pendingAccessibleFocusOrigin=s??void 0,this.restoringAccessibleFocus=!0,this.accessibleFocusGeneration++}if(t){let c=e.get("accessibleCells")===!0;if(c&&!this.accessibleCells&&s){let d=s.dataset.cellKey,h=d?this.accessibleCellAtKey(d):null;h&&(this.focusedCell=h,this.liveText=this.resolveCellText(h)),this.pendingAccessibleFocus="canvas",this.pendingAccessibleFocusOrigin=s,this.restoringAccessibleFocus=!0,this.accessibleFocusGeneration++}else if(!c&&this.accessibleCells&&r?.matches('[part="canvas"]')){let d=this.accessibleCellPositions(),h=this.focusedCell?d.find(u=>this.samePos(u,this.focusedCell))??d[0]??null:d[0]??null;this.focusedCell=h,this.liveText=h?this.resolveCellText(h):"",this.pendingAccessibleFocus=h??"base",this.pendingAccessibleFocusOrigin=r,this.restoringAccessibleFocus=!0,this.accessibleFocusGeneration++}}if(!this.hasUpdated||e.size===0||[...e.keys()].some(c=>!["hoverCell","focusedCell","liveText"].includes(String(c)))){let c=this.cachedValueRange,d=c?`${this.formatNumericValue(c[0])}\u2013${this.formatNumericValue(c[1])}`:this.localize("heatmapNoDataValue"),h=this.localizedValueLabel(),u;if(this.effectiveMode==="calendar")u=this.localize("heatmapCalendarLabel",void 0,{days:this.formatLocaleNumber(this.cachedCalendarGrid.cells.length),label:h,range:d});else{let w=this.matrixRowLabels.length,b=this.matrixColLabels.length;u=this.localize("heatmapMatrixLabel",void 0,{rows:this.formatLocaleNumber(w),cols:this.formatLocaleNumber(b),label:h,range:d})}let p=this.selectedCellDescription(),f=re(this.label);this.accessibleDescription=re(this.description)??(f?u:"");let g=[f??u,p,this.projectionDescription()].filter(Boolean).join(" ");this.generatedAriaLabel=g,this.syncingGeneratedSemantics=!0;try{this.authorRole===null&&this.getAttribute("role")!=="group"&&this.setAttribute("role","group"),this.authorAriaLabel===null&&this.getAttribute("aria-label")!==g&&this.setAttribute("aria-label",g)}finally{this.syncingGeneratedSemantics=!1}}}clearGeneratedSemantics(){if(this.generatedAriaLabel!==""){this.syncingGeneratedSemantics=!0;try{this.authorRole===null&&this.getAttribute("role")==="group"&&this.removeAttribute("role"),this.authorAriaLabel===null&&this.getAttribute("aria-label")===this.generatedAriaLabel&&this.removeAttribute("aria-label"),this.generatedAriaLabel=""}finally{this.syncingGeneratedSemantics=!1}}}rebuildBoundedDecorations(){this.cachedAnnotations=this.annotations.slice(0,V).map(e=>e??{}),this.cachedLegendStops=(this.legendStops??[]).slice(0,V).map(e=>e??{}),this.cachedColorSteps=(this.colorSteps??[]).slice(0,V),this.warnOnLegendRampMismatch(),this.cachedCalendarAnnotationDates=new Set(this.cachedAnnotations.flatMap(e=>e.date==null?[]:[e.date])),this.cachedMatrixAnnotationPositions=new Set(this.cachedAnnotations.flatMap(e=>e.row==null||e.col==null?[]:[`${e.row}:${e.col}`])),this.decorationProjectionTruncated=this.annotations.length>V||(this.legendStops?.length??0)>V||(this.colorSteps?.length??0)>V}get ownedInputTruncated(){return["annotations","legendStops","colorSteps","selectedCells"].some(e=>At(this,e)!==void 0)}get projectionTruncated(){return this.decorationProjectionTruncated||this.ownedInputTruncated||(this.effectiveMode==="calendar"?this.cachedCalendarGrid.truncated:this.cachedMatrixData.truncated)}get cellProjectionTruncated(){return this.effectiveMode==="calendar"?this.cachedCalendarGrid.truncated:this.cachedMatrixData.truncated}projectedCellCount(){return this.effectiveMode==="calendar"?this.cachedCalendarGrid.weekCount*7:this.matrixRowLabels.length*this.matrixColLabels.length}projectionDescription(){let e=[];return this.cellProjectionTruncated&&e.push(this.localize("heatmapProjectionLimit",void 0,{count:this.formatLocaleNumber(this.projectedCellCount())})),this.decorationProjectionTruncated&&e.push(this.localize("heatmapDecorationLimit",void 0,{count:this.formatLocaleNumber(V)})),this.ownedInputTruncated&&e.push(this.localize("heatmapInputLimit")),e.join(" ")}rebuildCanonicalMatrixData(){if(this.data.kind!=="matrix"){this.cachedMatrixData={rowLabels:[],colLabels:[],values:[],truncated:!1};return}let e=(f,g)=>{if(!f||typeof f!="object")return;let w=xe(f,g);return typeof w=="object"?w.value:void 0},t=e(this.data,"rowLabels"),i=e(this.data,"colLabels"),r=e(this.data,"values"),s=f=>{let g=e(f,"length");return ne(typeof g=="number"?g:0,0)},a=Math.min(s(i),this.cellBudget),l=a===0?this.cellBudget:Math.floor(this.cellBudget/a),n=Math.min(s(t),l),c=(f,g)=>{let w=new Array(g);if(!f||typeof f!="object")return w;for(let b=0;b<g;b++){let m=xe(f,String(b));if(typeof m!="object")continue;let C=m.value;w[b]=C===null||typeof C!="object"&&typeof C!="function"?String(C):""}return w},d=c(t,n),h=c(i,a),u=n!==s(t)||a!==s(i)||s(r)>n,p=Array.from({length:n},(f,g)=>{let w=e(r,String(g));return s(w)>a&&(u=!0),Array.from({length:a},(b,m)=>{let C=e(w,String(m));return typeof C=="number"?C:this.signedDomain?Number.NaN:-1})});this.cachedMatrixData={rowLabels:d,colLabels:h,values:p,truncated:u}}selectedCellDescription(){if(this.multiple){let i=this.currentSelectedPositions.size;return i?this.localize("heatmapSelectedCount",void 0,{count:this.formatLocaleNumber(i)}):""}if(!this.selectedCell)return"";if(this.effectiveMode==="calendar"){if(this.selectedCell.date==null)return"";let i=this.cachedCalendarCellsByDate.get(this.selectedCell.date);return i?this.localize("heatmapSelectedCellLabel",void 0,{cell:this.calendarCellText({week:i.week,weekday:i.weekday,date:i.date})}):""}let{row:e,col:t}=this.selectedCell;return e==null||t==null||e<0||e>=this.matrixRowLabels.length||t<0||t>=this.matrixColLabels.length?"":this.localize("heatmapSelectedCellLabel",void 0,{cell:this.matrixCellText({row:e,col:t})})}computeValueRange(){let e=this.domain;if(e){let[i,r]=e;if(Number.isFinite(i)&&Number.isFinite(r)&&i!==r)return i<r?[i,r]:[r,i]}let t=this.effectiveMode==="calendar"?this.cachedCalendarGrid.cells.map(i=>i.value):this.matrixValues.flat();return he(t.filter(i=>!this.isNoData(i)))}localizedValueLabel(){return this.valueLabel===void 0?this.localize("heatmapValueLabel"):this.valueLabel}formatNumericValue(e){return Ot(e,this.effectiveLocale)}syncExternalDescription(){let e=this.getAttribute("aria-describedby");if(!e&&!this.hasSyncedDescribedByElements)return;let t=this.accessibleCells?this.renderRoot.querySelector('[part="cells"]'):this.canvas;this.hasSyncedDescribedByElements=Dt(this,t??void 0,e)}updated(e){super.updated(e),this.syncTooltipOverlay();let t=this.effectiveLocale,i=this.lastUpdatedLocale!==t;if(this.lastUpdatedLocale=t,this.matrixSource){this.matrixController&&Ni(this);return}this.syncExternalDescription(),this.syncAccessibleTabStop();let r=this.projectionDescription();if(!this.initialLimitUpdate&&r&&r!==this.lastLimitNotice&&this.announcements.announcePolite(r),this.initialLimitUpdate=!1,this.lastLimitNotice=r,this.hoverCell&&this.scheduleAfterUpdate(()=>this.measureTooltip(),"heatmap-tooltip-metrics"),["data","maxCells","cellSize","rowHeight","cellGapX","cellGapY","cellRadius","colLabelInterval","maxCellSize","minCellSize","valueLabel","scale","domain","midpoint","fitToWidth","rowLabelWidth","colLabelHeight","colLabelRotation","bucketCount","annotations","focusedCell","colorSteps","cellColor","selectedCell","selectedCells","multiple","selectionPreview","legendStops","accessibleCells","accessibleTargetSizePx","locale","stickyLabels","fill","fitBlock"].some(n=>e.has(n))||i){if(!i&&e.has("focusedCell")&&[...e.keys()].every(h=>h==="focusedCell"||h==="liveText")&&this.repaintFocusRing(e.get("focusedCell")))return;let n=this.pendingSelectionRepaint,c=[...e.keys()].every(h=>["selectedCells","focusedCell","liveText"].includes(String(h))),d=!i&&n!==void 0&&c&&(!e.has("focusedCell")||this.repaintFocusRing(e.get("focusedCell")))&&n.every(h=>this.repaintCell(h));this.pendingSelectionRepaint=void 0,d||this.requestDraw()}let s=this.pendingAccessibleFocus;if(s===void 0)return;this.pendingAccessibleFocus=void 0;let a=this.pendingAccessibleFocusOrigin;this.pendingAccessibleFocusOrigin=void 0;let l=this.accessibleFocusGeneration;this.scheduleAfterUpdate(()=>{try{if(l!==this.accessibleFocusGeneration||!this.isConnected)return;if(a){let c=ge(this),d=be(this.ownerDocument),h=c===a,u=c===null&&(d===null||d===this||d===this.ownerDocument.body);if(!h&&!u)return}if(s==="base"){this.shadowRoot?.querySelector('[part="base"]')?.focus();return}if(s==="canvas"){this.shadowRoot?.querySelector('[part="canvas"]')?.focus();return}let n=this.accessibleCellIdentity(s);[...this.shadowRoot?.querySelectorAll('[part="cell"]')??[]].find(c=>c.dataset.cellIdentity===n)?.focus()}finally{this.restoringAccessibleFocus=!1}},"heatmap-accessible-focus")}refreshTheme(){this.resolvedStepsMemo=void 0,this.cachedRamp=null,this.refreshAccessibleTargetSize()||this.requestDraw()}themeSignature(){let e=this.ownerDocument.defaultView?.getComputedStyle(this);return e?[...this.scaleEndpoints(e),this.readToken(e,"no-data-fill",fe),this.labelColor(e),this.readToken(e,"label-font",Q),this.readToken(e,"focus-ring-color",te),this.readToken(e,"annotation-color",Ce),this.readToken(e,"selected-color",ie),this.stickyLabelBg(e),...this.resolvedColorSteps()].join("\0"):""}onThemeSignal(){this.resolvedStepsMemo=void 0;let e=this.themeSignature(),t=this.refreshAccessibleTargetSize();e===this.paintedTheme&&!this.cellColor||(this.paintedTheme=e,this.cachedRamp=null,t||this.scheduleDraw())}refreshAccessibleTargetSize(){let e=this.ownerDocument.defaultView?.getComputedStyle(this).getPropertyValue("--lr-icon-button-size").trim()??"",t=Ci(e,{host:this}),i=t!==void 0&&Number.isFinite(t)&&t>0?t:nt;return i===this.accessibleTargetSizePx?!1:(this.accessibleTargetSizePx=i,!0)}readToken(e,t,i){return e.getPropertyValue(`--lr-heatmap-${t}`).trim()||e.getPropertyValue(`--_lr-heatmap-${t}`).trim()||i}scaleEndpoints(e){return[this.readToken(e,"scale-lo",we),this.readToken(e,"scale-hi",Ee)]}labelColor(e){return e.getPropertyValue("--lr-color-text-quiet").trim()||"#6b7280"}stickyLabelBg(e){let t=this.readToken(e,"sticky-label-bg",ot);return ue(Y(t,ot,this.ownerDocument))}strokeCellState(e,t,i,r,s,a,l){let n=l??this.calendarCellShape(r),c=n?.custom?n.w:r,d=n?.custom?n.h:r;n?.custom&&(e.save(),e.beginPath(),e.roundRect(t,i,n.w,n.h,n.radius),e.clip());let h=Math.min(s==="annotation"?.5:s==="selected"?3.5:6.5,Math.max(.5,(Math.min(c,d)-ee-1)/2)),u=Math.max(1,c-h*2),p=Math.max(1,d-h*2);e.lineWidth=ee,e.strokeStyle=a,e.setLineDash?.(s==="annotation"?[]:s==="selected"?[4,2]:[1,2]),n?.custom&&n.radius>0?(e.beginPath(),e.roundRect(t+h,i+h,u,p,Math.max(0,n.radius-h)),e.stroke()):e.strokeRect(t+h,i+h,u,p),e.setLineDash?.([]),n?.custom&&e.restore()}isSelectedPos(e){return this.multiple?this.currentSelectedPositions.has(this.accessibleCellKey(e)):this.selectedCell?"week"in e?this.selectedCell.date==null?!1:this.calendarCellAt(e).date===this.selectedCell.date:this.selectedCell.row===e.row&&this.selectedCell.col===e.col:!1}draw(){if(this.matrixSource){this.matrixController&&wt(this);return}if(!this.canvasVisible){this.drawDirty=!0;return}this.syncDeferredFitFrame(!1),this.drawDirty=!1,this.canvasHasContent=!1,this.paintedTheme??=this.themeSignature(),this.effectiveMode==="calendar"?this.drawCalendar():this.drawMatrix()}requestDraw(){this.drawDirty=!0,this.isConnected&&(this.canvasVisible?this.draw():this.syncDeferredFitFrame(!0))}syncDeferredFitFrame(e){let t=this.shadowRoot?.querySelector('[part="base"]');if(!t)return;let i=!1;e&&this.fitToWidth&&this.clientWidth>0&&(i=(this.effectiveMode==="calendar"?this.columnXFor(Math.max(1,this.cachedCalendarGrid.weekCount)):this.matrixPadLeft+this.matrixColLabels.length*this.matrixCellSize(this.matrixColLabels.length))<=this.clientWidth),t.toggleAttribute("data-fit-frame-contained",i)}ringedCell(){return this.canvasBlurred?null:this.focusedCell}repaintFocusRing(e){if(!this.canvasHasContent||!this.canvas||this.drawDirty)return!1;let t=this.ringedCell();if(this.effectiveMode==="calendar"){if(e&&!("week"in e)||t&&!("week"in t))return!1;this.repaintCalendarFocusCell(e&&"week"in e?e:null),t&&(!e||!this.samePos(e,t))&&this.repaintCalendarFocusCell(t)}else{if(e&&!("row"in e)||t&&!("row"in t))return!1;this.repaintMatrixFocusCell(e&&"row"in e?e:null),t&&(!e||!this.samePos(e,t))&&this.repaintMatrixFocusCell(t)}return!0}cancelDrawFrame(){let e=this.drawFrameRequest;e&&e.owner.cancelAnimationFrame(e.handle),this.drawFrameRequest=void 0}resolveColorStep(e,t){let i=H(e);if(!i)return t;let r=ct.test(i)?null:q(this.ownerDocument);return r?(r.fillStyle=i,r.fillStyle):Je(this,i,t)}resolvedColorSteps(){let e=this.cachedColorSteps;return(this.resolvedStepsMemo?.source!==e||this.resolvedStepsMemo.document!==this.ownerDocument)&&(this.resolvedStepsMemo={source:e,document:this.ownerDocument,colors:e.map(t=>this.resolveColorStep(t,""))}),this.resolvedStepsMemo.colors}colorRamp(e,t){let i=this.cachedColorSteps;if(i&&i.length>=2){let h=`steps ${i.join(" ")}`;if(this.cachedRamp?.key===h)return this.cachedRamp;let u=this.resolvedColorSteps().map((w,b)=>w||(b===i.length-1?Ee:we)),p=u.map(w=>ue(Y(w,we,this.ownerDocument))),f=Y(u[0],we,this.ownerDocument),g=Y(u[u.length-1],Ee,this.ownerDocument);return this.cachedRamp={key:h,colors:p,loRgb:f,hiRgb:g},this.cachedRamp}let[r,s]=this.scaleEndpoints(t),a=X(e),l=`${r}\0${s}\0${a}`;if(this.cachedRamp?.key===l)return this.cachedRamp;let n=Y(r,we,this.ownerDocument),c=Y(s,Ee,this.ownerDocument),d=Array.from({length:a},(h,u)=>dt(n,c,u/(a-1)));return this.cachedRamp={key:l,colors:d,loRgb:n,hiRgb:c},this.cachedRamp}calendarCellSize(){return this.calendarSpacing().cellSize}calendarSpacing(){let{weekCount:e}=this.cachedCalendarGrid,t=this.explicitCalendarSpacing("cellGapX"),i=this.explicitCalendarSpacing("cellGapY"),r=this.explicitCalendarSpacing("cellRadius"),s=(l,n)=>l===void 0?at:D(l,at,0,Math.max(0,n-1)),a;if(this.fitToWidth&&e>0){let l=s(t,this.cellSize),n=this.clientWidth||this.calendarPadLeft+e*(this.cellSize+l);a=this.clampFitCellSize((n-this.calendarPadLeft)/e-l)}else a=this.cellSize;return this.accessibleCells&&(a=Math.max(a,this.accessibleTargetSizePx)),{cellSize:a,gapX:s(t,a),gapY:s(i,a),radius:r===void 0?0:D(r,0,0,a/2)}}clampFitCellSize(e){let t=D(e,pe,Math.max(pe,this.minCellSize??pe));return this.maxCellSize==null?t:Math.min(t,this.maxCellSize)}columnXFor(e){return(this.calendarPaintColumns??this.calendarColumnPositions())[e]??this.calendarPadLeft}rowYFor(e){return(this.calendarPaintRows??this.calendarRowPositions())[e]??ae}calendarColumnPositions(e=this.calendarSpacing()){let{cellSize:t,gapX:i}=e,r=this.cachedCalendarGrid.weekCount,s=this.calendarColumnX,a=this.calendarPadLeft,l=this.cachedColumnGeometry;if(l!==void 0&&l.callback===s&&l.padLeft===a&&l.cellSize===t&&l.gap===i&&l.weekCount===r)return l.positions;let n=[];for(let c=0;c<=r;c++){let d=c===0?a:n[c-1]+t+i,h=d;if(s)try{let u=s(c);Number.isFinite(u)&&u>=0&&(c===0||u>=n[c-1]+t)&&(h=u)}catch{h=d}n.push(h)}return this.cachedColumnGeometry={callback:s,padLeft:a,cellSize:t,gap:i,weekCount:r,positions:n},n}calendarRowPositions(e=this.calendarSpacing()){let{cellSize:t,gapY:i}=e,r=this.calendarRowY,s=this.cachedRowGeometry;if(s!==void 0&&s.callback===r&&s.cellSize===t&&s.gap===i)return s.positions;let a=[];for(let l=0;l<=7;l++){let n=l===0?ae:a[l-1]+t+i,c=n;if(r)try{let d=r(l);Number.isFinite(d)&&d>=0&&(l===0||d>=a[l-1]+t)&&(c=d)}catch{c=n}a.push(c)}return this.cachedRowGeometry={callback:r,cellSize:t,gap:i,positions:a},a}weekdayLabels(e){let t=Le(this.effectiveLocale||void 0,{weekday:"short",timeZone:"UTC"}),i=["","","","","","",""];for(let r of[1,3,5]){let s=(r-this.normalizedFirstDayOfWeek+7)%7;i[s]=this.calendarWeekdayLabelText?.(r)??t.format(new Date(e.getTime()+s*_i))}return i}paintCalendarAxisLabels(e,t,i,r,s,a=!0,l=!0){if(e.fillStyle=this.labelColor(i),e.font=this.readToken(i,"label-font",Q),a){let n=this.columnXFor(Math.max(1,this.cachedCalendarGrid.weekCount)),c=[];s.forEach((d,h)=>{let u=this.ellipsize(e,d.label,n);if(!u)return;let p=this.labelWidth(e,u),f=Math.max(0,Math.min(this.columnXFor(d.week),n-p)),g=s[h+1]?.week??Math.max(d.week+1,this.cachedCalendarGrid.weekCount),w={label:u,x:f,end:f+p+Di,span:g-d.week},b=c[c.length-1];for(;b&&w.x<b.end&&w.span>b.span;)c.pop(),b=c[c.length-1];b&&w.x<b.end||c.push(w)});for(let{label:d,x:h}of c)e.fillText(d,h,ae-4)}if(l){let n=this.calendarPadLeft-Ve*2;this.weekdayLabels(r).forEach((c,d)=>{let h=c?this.ellipsize(e,c,n):"";h&&e.fillText(h,Ve,this.rowYFor(d)+t-1)})}}drawCalendar(){try{this.withLabelCache(()=>this.paintCalendar())}finally{this.calendarPaintColumns=void 0,this.calendarPaintRows=void 0}}paintCalendar(){if(!this.canvas)return;let{weekCount:e,firstWeekStart:t,monthLabels:i}=this.cachedCalendarGrid,r=this.ownerDocument.defaultView?.getComputedStyle(this);if(!r)return;this.calendarWeekdayLabelWidth==="auto"&&(this.resolvedCalendarWeekdayLabelWidth=this.measureCalendarWeekdayLabelWidth(r,t));let s=this.calendarSpacing(),a=s.cellSize;this.calendarPaintColumns=this.calendarColumnPositions(s),this.calendarPaintRows=this.calendarRowPositions(s);let l=this.columnXFor(Math.max(1,e)),n=this.rowYFor(7),c=this.sizeCanvas(this.canvas,l,n);if(!c)return;c.clearRect(0,0,l,n);let d=this.fillContext(X(this.bucketCount),r,"calendar");this.canvasColorCache.clear();for(let u=0;u<e;u++)for(let p=0;p<7;p++)this.paintCalendarCell(c,u,p,a,s.radius,d);if(this.cachedAnnotations.length)for(let u of this.cachedAnnotations){if(u.date==null)continue;let p=this.cachedCalendarCellsByDate.get(u.date);if(!p)continue;let f=this.columnXFor(p.week),g=this.rowYFor(p.weekday);this.strokeCellState(c,f,g,a,"annotation",this.readToken(r,"annotation-color",Ce))}for(let u of this.selectedPaintPositions())if("week"in u){let p=this.columnXFor(u.week),f=this.rowYFor(u.weekday);this.strokeCellState(c,p,f,a,"selected",this.readToken(r,"selected-color",ie))}let h=this.ringedCell();if(h&&"week"in h){let{week:u,weekday:p}=h;if(u<e&&p<7){let f=this.columnXFor(u),g=this.rowYFor(p);this.strokeCellState(c,f,g,a,"focus",this.readToken(r,"focus-ring-color",te))}}this.paintCalendarAxisLabels(c,a,r,t,i),this.canvasHasContent=!0,this.recordCalendarGeometry(s,e)&&this.accessibleCells&&this.scheduleAfterUpdate(()=>this.requestUpdate(),"heatmap-calendar-accessible-geometry")}matrixCellSize(e){let t;if(this.fitToWidth&&e>0){let a=this.matrixPadLeft,l=this.clientWidth||a+e*this.cellSize;t=this.clampFitCellSize((l-a)/e)}else t=this.cellSize;if(!this.accessibleCells)return t;let i=this.accessibleTargetSizePx,r=B(this.cellGapX,1)!==1||B(this.cellGapY,1)!==1||D(this.cellRadius,0,0)>0,s=this.rowHeight!==void 0?D(this.cellGapX,1,0,i):r?Math.max(D(this.cellGapX,1,0,i),D(this.cellGapY,1,0,i)):0;return Math.max(t,i+s)}matrixRowHeight(e){if(this.rowHeight===void 0)return e;let t=D(this.rowHeight,e,1);if(!this.accessibleCells)return t;let i=this.accessibleTargetSizePx;return Math.max(t,i+D(this.cellGapY,1,0,i))}matrixCellShape(e,t=this.matrixRowHeight(e)){if(t===e&&B(this.cellGapX,1)===1&&B(this.cellGapY,1)===1&&D(this.cellRadius,0,0)===0)return{w:e-1,h:e-1,radius:0,custom:!1};let i=this.accessibleCells?this.accessibleTargetSizePx:1,r=e-D(this.cellGapX,1,0,Math.max(0,e-Math.min(e,i))),s=t-D(this.cellGapY,1,0,Math.max(0,t-Math.min(t,i))),a=D(this.cellRadius,0,0,Math.min(r,s)/2);return{w:r,h:s,radius:a,custom:t!==e||r!==e-1||s!==e-1||a!==0}}calendarCellShape(e){let t=this.calendarSpacing().radius;return t>0?{w:e,h:e,radius:Math.min(t,e/2),custom:!0}:void 0}fillMatrixCell(e,t,i,r){r.radius===0?e.fillRect(t,i,r.w,r.h):(e.beginPath(),e.roundRect(t,i,r.w,r.h,r.radius),e.fill())}fillContext(e,t,i){let[r,s]=this.cachedValueRange??[0,1];return{ramp:this.colorRamp(e,t),noData:this.readToken(t,"no-data-fill",fe),lo:r,hi:s,mode:i,styles:t}}cellFill(e,t,i){let{ramp:r,noData:s,lo:a,hi:l,mode:n,styles:c}=i;if(t!=null)return this.resolveCellColor(t,c);if(this.isNoData(e))return s;if(this.scale==="sqrt"){let d=Ne(e,l,r.colors.length);return d<0?s:r.colors[d]}return this.cachedColorSteps.length>=2?r.colors[this.rampBucket(e,a,l,r.colors.length)]:n==="calendar"?r.colors[Ui(e,this.cachedCalendarSortedValues,r.colors.length)]:dt(r.loRgb,r.hiRgb,this.rampAlpha(e,a,l))}paintMatrixCell(e,t,i,r,s,a,l){let n=this.matrixValues[t]?.[i]??Number.NaN;e.fillStyle=this.cellFill(n,this.cellColor?.({row:t,col:i},n),l),this.fillMatrixCell(e,r,s,a)}paintMatrixFocusOverlays(e,t,i,r,s,a,l,n){let c=this.matrixPadLeft+i*r,d=this.matrixPadTop+t*s;n==="annotation"&&this.cachedMatrixAnnotationPositions.has(`${t}:${i}`)&&this.strokeCellState(e,c,d,r,"annotation",this.readToken(l,"annotation-color",Ce),a),n==="selected"&&this.isSelectedPos({row:t,col:i})&&this.strokeCellState(e,c,d,r,"selected",this.readToken(l,"selected-color",ie),a);let h=this.ringedCell();n==="focus"&&h&&"row"in h&&h.row===t&&h.col===i&&this.strokeCellState(e,c,d,r,"focus",this.readToken(l,"focus-ring-color",te),a)}focusRepaintBounds(e,t,i,r,s=r){let a=ee+1,l=e.getTransform().a,n=Math.floor((t-a)*l)/l,c=Math.floor((i-a)*l)/l,d=Math.ceil((t+r+a)*l)/l,h=Math.ceil((i+s+a)*l)/l;return{left:n,top:c,width:d-n,height:h-c,radius:Math.ceil((2*a+1/l)/r),rowRadius:Math.ceil((2*a+1/l)/s)}}repaintMatrixFocusCell(e){this.withLabelCache(()=>this.paintMatrixFocusCell(e))}paintMatrixFocusCell(e){if(!e||!this.canvas)return;let t=this.matrixRowLabels.length,i=this.matrixColLabels.length;if(e.row<0||e.row>=t||e.col<0||e.col>=i)return;let r=this.matrixCellSize(i),s=this.matrixRowHeight(r),a=this.matrixCellShape(r,s),l=this.matrixPadLeft,n=this.matrixPadTop,c=l+e.col*r,d=n+e.row*s,h=this.canvas.getContext("2d");if(!h)return;let u=this.ownerDocument.defaultView?.getComputedStyle(this);if(!u)return;let{left:p,top:f,width:g,height:w,radius:b,rowRadius:m}=this.focusRepaintBounds(h,c,d,r,s),C=Math.max(0,e.row-m),A=Math.min(t-1,e.row+m),k=Math.max(0,e.col-b),E=Math.min(i-1,e.col+b),P=this.fillContext(Re,u,"matrix"),M=s===r?void 0:this.ownerDocument.createElement("canvas"),x=h.getTransform().a,R=Math.floor((this.matrixPadLeft+k*r-ee-1)*x)/x,$=Math.floor((this.matrixPadTop+C*s-ee-1)*x)/x;if(M){let W=Math.ceil((this.matrixPadLeft+(E+1)*r+ee+1)*x),N=Math.ceil((this.matrixPadTop+(A+1)*s+ee+1)*x);M.width=W-Math.round(R*x),M.height=N-Math.round($*x)}let _=M?.getContext("2d")??h;if(M&&_===h){this.drawMatrix();return}_.save();try{M?_.setTransform(x,0,0,x,-R*x,-$*x):(_.beginPath(),_.rect(p,f,g,w),_.clip(),_.clearRect(p,f,g,w));for(let W=C;W<=A;W++)for(let N=k;N<=E;N++)this.paintMatrixCell(_,W,N,l+N*r,n+W*s,a,P);for(let W of["annotation","selected","focus"])for(let N=C;N<=A;N++)for(let He=k;He<=E;He++)this.paintMatrixFocusOverlays(_,N,He,r,s,a,u,W);p<this.matrixPadLeft&&this.paintMatrixRowLabels(_,this.matrixPadLeft,this.matrixPadTop,s,u,{top:f,bottom:f+w}),f<this.matrixPadTop&&this.paintMatrixColLabels(_,this.matrixPadLeft,this.matrixPadTop,r,u,{first:k,last:E})}finally{_.restore()}if(M){h.save();try{h.setTransform(1,0,0,1,0,0),h.clearRect(p*x,f*x,g*x,w*x),h.drawImage(M,Math.round((p-R)*x),Math.round((f-$)*x),Math.round(g*x),Math.round(w*x),Math.round(p*x),Math.round(f*x),Math.round(g*x),Math.round(w*x))}finally{h.restore()}}}paintCalendarCell(e,t,i,r,s,a){let l=this.calendarValueAt(t,i);e.fillStyle=this.cellFill(l,this.cellColor?.(this.calendarPos(t,i),l),a),this.fillCalendarCell(e,this.columnXFor(t),this.rowYFor(i),r,s)}fillCalendarCell(e,t,i,r,s){s===0?e.fillRect(t,i,r,r):(e.beginPath(),e.roundRect(t,i,r,r,s),e.fill())}recordCalendarGeometry(e,t){let i={padLeft:this.calendarPadLeft,padTop:ae,cellSize:e.cellSize,cellWidth:e.cellSize,cellHeight:e.cellSize,cellGapX:e.gapX,cellGapY:e.gapY,cellRadius:e.radius,weekCount:t,firstDayOfWeek:this.normalizedFirstDayOfWeek},r=this.lastPaintedCalendarGeometry;if(r&&Object.keys(i).every(a=>r[a]===i[a]))return!1;let s=Object.freeze(i);return this.lastPaintedCalendarGeometry=s,this.emit("lr-calendar-geometry-change",s),!0}paintCalendarFocusOverlays(e,t,i,r,s,a){let l=this.calendarDateAt(t,i),n=this.columnXFor(t),c=this.rowYFor(i);a==="annotation"&&this.cachedCalendarCellsByDate.has(l)&&this.cachedCalendarAnnotationDates.has(l)&&this.strokeCellState(e,n,c,r,"annotation",this.readToken(s,"annotation-color",Ce)),a==="selected"&&(this.multiple||this.cachedCalendarCellsByDate.has(l))&&this.isSelectedPos({week:t,weekday:i,date:l})&&this.strokeCellState(e,n,c,r,"selected",this.readToken(s,"selected-color",ie));let d=this.ringedCell();a==="focus"&&d&&"week"in d&&d.week===t&&d.weekday===i&&this.strokeCellState(e,n,c,r,"focus",this.readToken(s,"focus-ring-color",te))}repaintCalendarFocusCell(e){this.withLabelCache(()=>this.paintCalendarFocusCell(e))}paintCalendarFocusCell(e){if(!e||!this.canvas)return;let{weekCount:t,firstWeekStart:i}=this.cachedCalendarGrid;if(e.week<0||e.week>=t||e.weekday<0||e.weekday>=7)return;let r=this.calendarCellSize(),s=this.columnXFor(e.week),a=this.rowYFor(e.weekday),l=this.canvas.getContext("2d");if(!l)return;let n=this.ownerDocument.defaultView?.getComputedStyle(this);if(!n)return;let{left:c,top:d,width:h,height:u,radius:p}=this.focusRepaintBounds(l,s,a,r),f=Math.max(0,e.week-p),g=Math.min(t-1,e.week+p),w=Math.max(0,e.weekday-p),b=Math.min(6,e.weekday+p),m=this.fillContext(X(this.bucketCount),n,"calendar"),C=this.calendarSpacing().radius;l.save();try{l.beginPath(),l.rect(c,d,h,u),l.clip(),l.clearRect(c,d,h,u);for(let A=f;A<=g;A++)for(let k=w;k<=b;k++)this.paintCalendarCell(l,A,k,r,C,m);for(let A of["annotation","selected","focus"])for(let k=f;k<=g;k++)for(let E=w;E<=b;E++)this.paintCalendarFocusOverlays(l,k,E,r,n,A);this.paintCalendarAxisLabels(l,r,n,i,this.cachedCalendarGrid.monthLabels,d<ae,c<this.calendarPadLeft)}finally{l.restore()}}drawMatrix(){this.withLabelCache(()=>this.paintMatrix())}paintMatrix(){if(!this.canvas)return;let e=this.matrixRowLabels.length,t=this.matrixColLabels.length,i=this.ownerDocument.defaultView?.getComputedStyle(this);if(!i)return;this.rowLabelWidth==="auto"&&(this.resolvedRowLabelWidth=this.measureRowLabelWidth(i)),this.colLabelHeight==="auto"&&(this.resolvedColLabelHeight=this.measureColLabelHeight(i));let r=this.matrixPadLeft,s=this.matrixPadTop,a=this.matrixCellSize(t),l=this.matrixRowHeight(a),n=this.matrixCellShape(a,l),c=n.custom?{cellWidth:n.w,cellHeight:n.h,cellRadius:n.radius}:{},d=this.lastPaintedMatrixGeometry,h=d&&d.padLeft===r&&d.padTop===s&&d.cellSize===a&&d.rowHeight===(l===a?void 0:l)&&d.cellWidth===c.cellWidth&&d.cellHeight===c.cellHeight&&d.cellRadius===c.cellRadius?d:Object.freeze({padLeft:r,padTop:s,cellSize:a,...l===a?{}:{rowHeight:l},...c});this.lastPaintedMatrixGeometry=h;let u=h!==d;u&&this.emit("lr-matrix-geometry-change",h);let p=r+t*a,f=s+e*l,g=this.sizeCanvas(this.canvas,p,f);if(!g)return;g.clearRect(0,0,p,f);let w=this.fillContext(Re,i,"matrix");this.canvasColorCache.clear();for(let m=0;m<e;m++)for(let C=0;C<t;C++)this.paintMatrixCell(g,m,C,r+C*a,s+m*l,n,w);if(this.cachedAnnotations.length)for(let m of this.cachedAnnotations){if(m.row==null||m.col==null||m.row<0||m.row>=e||m.col<0||m.col>=t)continue;let C=r+m.col*a,A=s+m.row*l;this.strokeCellState(g,C,A,a,"annotation",this.readToken(i,"annotation-color",Ce),n)}for(let m of this.selectedPaintPositions()){if(!("row"in m))continue;let{row:C,col:A}=m;if(C>=0&&C<e&&A>=0&&A<t){let k=r+A*a,E=s+C*l;this.strokeCellState(g,k,E,a,"selected",this.readToken(i,"selected-color",ie),n)}}let b=this.ringedCell();if(b&&"row"in b){let{row:m,col:C}=b;if(m<e&&C<t){let A=r+C*a,k=s+m*l;this.strokeCellState(g,A,k,a,"focus",this.readToken(i,"focus-ring-color",te),n)}}this.paintMatrixRowLabels(g,r,s,l,i),this.paintMatrixColLabels(g,r,s,a,i),this.paintFrozenLabelBands(r,s,a,l,p,f,g.getTransform().a,i),this.canvasHasContent=!0,u&&(this.accessibleCells||this.effectiveAxisSelection!=="none")&&this.scheduleAfterUpdate(()=>this.requestUpdate(),"heatmap-matrix-accessible-geometry")}paintMatrixRowLabels(e,t,i,r,s,a){e.fillStyle=this.labelColor(s),e.font=this.readToken(s,"label-font",Q);let l=t-Oe*2,n=0,c=this.matrixRowLabels.length-1;if(a){let{fontBoundingBoxAscent:d,fontBoundingBoxDescent:h}=e.measureText("M"),u=i+r/2+3;n=Math.max(n,Math.floor((a.top-h-u)/r)),c=Math.min(c,Math.ceil((a.bottom+d-u)/r))}for(let d=n;d<=c;d++){let h=this.ellipsize(e,this.matrixRowLabels[d],l);h&&e.fillText(h,Oe,i+d*r+r/2+3)}}paintMatrixColLabels(e,t,i,r,s,a){e.fillStyle=this.labelColor(s),e.font=this.readToken(s,"label-font",Q);let l=this.effectiveColLabelRotation,n=le(this.colLabelInterval,1,1);if(l===0){let h=this.matrixColLabels.length;this.matrixColLabels.forEach((u,p)=>{if(p%n!==0||a&&(p<a.first-n+1||p>a.last))return;let f=this.ellipsize(e,u,Math.min(n,h-p)*r-2);f&&e.fillText(f,t+p*r+2,i-Ge)});return}let c=l*Math.PI/180,d=e.textAlign;e.textAlign="right",this.matrixColLabels.forEach((h,u)=>{u%n===0&&(e.save(),e.translate(t+u*r+r/2,i-Ge),e.rotate(c),e.fillText(h,0,0),e.restore())}),e.textAlign=d}paintFrozenLabelBands(e,t,i,r,s,a,l,n){if(this.effectiveStickyLabels==="none")return;let c=this.stickyLabelBg(n),d=this.frozenBandCanvas("row-labels");d&&this.paintFrozenBand(d,e,a,l,c,u=>this.paintMatrixRowLabels(u,e,t,r,n));let h=this.frozenBandCanvas("col-labels");h&&this.paintFrozenBand(h,s,t,l,c,u=>this.paintMatrixColLabels(u,e,t,i,n))}frozenBandCanvas(e){return this.shadowRoot?.querySelector(`[part="${e}"]`)??null}sizeCanvas(e,t,i,r=this.ownerDocument.defaultView?.devicePixelRatio){let{pixelWidth:s,pixelHeight:a,scale:l}=Gt({cssWidth:t,cssHeight:i,desiredScale:r,maxDimension:We,maxPixels:Ri});e.width=s,e.height=a,e.style.width=`${t}px`,e.style.height=`${i}px`;let n=e.getContext("2d");return n?.scale(l,l),n}paintFrozenBand(e,t,i,r,s,a){let l=this.sizeCanvas(e,t,i,r);l&&(l.clearRect(0,0,t,i),l.fillStyle=s,l.fillRect(0,0,t,i),a(l))}hitTest(e,t){return this.effectiveMode==="calendar"?this.hitTestCalendar(e,t):this.hitTestMatrix(e,t)}matrixNavigationGeometry(e,t){let i=this.lastPaintedMatrixGeometry;if(i)return{rows:e,cols:t,padLeft:i.padLeft,padTop:i.padTop,cellSize:i.cellSize,rowHeight:i.rowHeight??i.cellSize,cellWidth:i.cellWidth??i.cellSize-1,cellHeight:i.cellHeight??i.cellSize-1,customShape:i.cellWidth!==void 0};let r=this.matrixCellSize(t),s=this.matrixRowHeight(r),a=this.matrixCellShape(r,s);return{rows:e,cols:t,padLeft:this.matrixPadLeft,padTop:this.matrixPadTop,cellSize:r,rowHeight:s,cellWidth:a.w,cellHeight:a.h,customShape:a.custom}}calendarNavigationGeometry(){let e=this.calendarSpacing(),t=e.cellSize,i=this.calendarColumnPositions(e),r=this.calendarRowPositions(e);return{weekCount:this.cachedCalendarGrid.weekCount,cellSize:t,columnPositions:i,rowPositions:r,padLeft:this.calendarPadLeft,padTop:ae}}hitTestMatrix(e,t){let i=this.matrixRowLabels.length,r=this.matrixColLabels.length;return i===0||r===0?null:Hi(e,t,this.matrixNavigationGeometry(i,r),s=>this.isCellInteractive(s))}firstInteractiveMatrixCell(e,t){return qi(e,t,i=>this.isCellInteractive(i))}nextInteractiveMatrixCell(e,t,i,r,s,a){return ji(e,t,i,r,s,a,l=>this.isCellInteractive(l))}firstInteractiveCalendarCell(e){return Yi(e,(t,i)=>this.calendarPos(t,i),t=>this.isCellInteractive(t))}nextInteractiveCalendarCell(e,t,i,r,s){return Zi(e,t,i,r,s,(a,l)=>this.calendarPos(a,l),a=>this.isCellInteractive(a))}hitTestCalendar(e,t){let i=this.cachedCalendarGrid.weekCount;if(i===0)return null;let r=this.calendarSpacing(),s=this.calendarColumnPositions(r);return Xi(e,t,i,s,()=>r.cellSize,()=>this.calendarRowPositions(r),(a,l)=>this.calendarPos(a,l),a=>this.isCellInteractive(a))}calendarCellAt(e){return Ji(e.week,e.weekday,this.cachedCalendarCellsByPos,this.cachedCalendarDateByPos,this.cachedCalendarGrid.firstWeekStart,this.signedDomain)}calendarValueAt(e,t){return Qi(e,t,this.cachedCalendarCellsByPos,this.signedDomain)}calendarDateAt(e,t){return St(e,t,this.cachedCalendarDateByPos,this.cachedCalendarGrid.firstWeekStart)}calendarPos(e,t){return{week:e,weekday:t,date:this.calendarDateAt(e,t)}}cellRect(e){return"week"in e?xt(e.week,e.weekday,this.calendarNavigationGeometry()):er(e,this.matrixNavigationGeometry(this.matrixRowLabels.length,this.matrixColLabels.length))}accessibleCellRect(e){return"week"in e||!this.lastPaintedMatrixGeometry?this.cellRect(e):tr(e,this.lastPaintedMatrixGeometry)}defaultCellText(e){return"week"in e?this.calendarCellText(e):this.matrixCellText(e)}matrixCellText(e){let t=this.matrixRowLabels[e.row]??this.localize("heatmapDefaultRowLabel",void 0,{n:this.formatLocaleNumber(e.row+1)}),i=this.matrixColLabels[e.col]??this.localize("heatmapDefaultColLabel",void 0,{n:this.formatLocaleNumber(e.col+1)}),r=this.matrixValues[e.row]?.[e.col],s=r==null||this.isNoData(r)?this.localize("heatmapNoDataValue"):this.formatNumericValue(r);return this.localize("heatmapMatrixCellLabel",void 0,{row:t,col:i,value:s})}calendarCellText(e){let{date:t,value:i}=this.calendarCellAt(e),r=Le(this.effectiveLocale||void 0,{month:"short",day:"numeric",calendar:"gregory",timeZone:"UTC"}).format(bt(t)),s=this.isNoData(i)?this.localize("heatmapNoDataValue"):this.formatNumericValue(i);return this.localize("heatmapCalendarCellLabel",void 0,{date:r,value:s})}valueAt(e){return"week"in e?this.calendarCellAt(e).value:this.matrixValues[e.row]?.[e.col]??-1}resolveCellText(e){return this.cellText?this.cellText(e,this.valueAt(e)):this.defaultCellText(e)}isCellInteractive(e){return this.cellInteractive?.(e,this.valueAt(e))??!0}announce(e,t){let i=this.resolveCellText(e),r=t??this.isSelectedPos(e)?this.localize("heatmapSelectedCellLabel",void 0,{cell:i}):i;this.liveText=r,this.announcements.announcePolite(r)}emitCellClick(e,t="pointer",i=!0,r){if(!this.isCellInteractive(e)||r&&!r())return;if(this.multiple&&i){let a=this.sourceBindingGeneration;if(this.selectionAnchor=e,this.selectionRangeBase=void 0,this.toggleSelectionPositions([e],t),!this.isConnected||this.matrixSource||this.sourceBindingGeneration!==a)return}let s;if("week"in e){let{date:a,value:l}=this.calendarCellAt(e);s={date:a,value:l}}else{let a=this.matrixValues[e.row]?.[e.col]??-1;s={row:e.row,col:e.col,value:a}}this.emit("lr-cell-activate",{...s})}get currentSelectedPositions(){return this.selectionPreview??this.selectedPositions}selectedPaintPositions(){if(this.multiple)return[...this.currentSelectedPositions.values()];let e=this.selectedCell;if(!e)return[];if(this.effectiveMode==="calendar"){let t=e.date?this.cachedCalendarCellsByDate.get(e.date):void 0;return t?[t]:[]}return e.row!=null&&e.col!=null?[{row:e.row,col:e.col}]:[]}rebuildSelectedPositions(){let e=new Map,t=Array.isArray(this.selectedCells)?this.selectedCells:[],i=t.length&&this.effectiveMode==="calendar"?new Map(this.accessibleCellPositions().map(r=>[this.accessibleCellIdentity(r),r])):void 0;for(let r=0;r<Math.min(t.length,j);r++){let s=t[r];if(!s||typeof s!="object")continue;let a=i?typeof s.date=="string"?i.get(s.date):void 0:Number.isInteger(s.row)&&Number.isInteger(s.col)?this.accessibleCellAtKey(`matrix-${s.row}-${s.col}`):void 0;a&&e.set(this.accessibleCellKey(a),a)}this.selectedPositions=e}selectionCoordinates(e){return"week"in e?{row:e.weekday,col:e.week}:e}proposeSelection(e,t){if(e.size===this.selectedPositions.size&&[...e.keys()].every(r=>this.selectedPositions.has(r)))return;this.proposedSelectionKeys=new Set(e.keys());let i=[...e.values()].sort((r,s)=>{let a=this.selectionCoordinates(r),l=this.selectionCoordinates(s);return a.row-l.row||a.col-l.col}).map(r=>"week"in r?{date:r.date}:{row:r.row,col:r.col});this.emit("lr-selection-change",{selectedCells:i,source:t})}toggleSelectionPositions(e,t){if(!this.multiple||e.length===0)return;let i=new Map(this.selectedPositions),r=e.every(s=>i.has(this.accessibleCellKey(s)));for(let s of e){let a=this.accessibleCellKey(s);r?i.delete(a):i.set(a,s)}this.proposeSelection(i,t)}toggleSelectionAxis(e,t){!this.multiple||!Number.isInteger(e)||e<0||(this.cancelSelectionGesture(),this.selectionRangeBase=void 0,this.toggleSelectionPositions(this.accessibleCellPositions().filter(i=>{let r=this.selectionCoordinates(i);return(t?r.row:r.col)===e}),t?"row":"column"))}selectionKeyDown(e,t){if(!this.multiple||Pe(e)||e.altKey)return!1;if(e.key==="Escape"&&this.selectionGesture&&!ve(e))return e.preventDefault(),this.cancelSelectionGesture(),!0;if(e.key!==" "||!t||!(e.shiftKey||e.ctrlKey||e.metaKey))return!1;e.preventDefault();let i=this.selectionCoordinates(t);return e.ctrlKey||e.metaKey?this.toggleColumnSelection(i.col):this.toggleRowSelection(i.row),!0}extendSelection(e,t,i){if(!this.multiple)return;if(!i){this.selectionAnchor=t,this.selectionRangeBase=void 0;return}this.selectionAnchor??=e??t,this.selectionRangeBase??=new Map(this.selectedPositions);let r=this.selectionCoordinates(this.selectionAnchor),s=this.selectionCoordinates(t),a=new Map(this.selectionRangeBase);for(let l=Math.min(r.row,s.row);l<=Math.max(r.row,s.row);l++)for(let n=Math.min(r.col,s.col);n<=Math.max(r.col,s.col);n++){let c=this.effectiveMode==="calendar"?`calendar-${n}-${l}`:`matrix-${l}-${n}`,d=this.accessibleCellAtKey(c);d&&a.set(c,d)}return this.proposeSelection(a,"keyboard"),new Set(a.keys())}selectionPointerPosition(e){if(!this.canvas)return null;let t=this.canvas.getBoundingClientRect(),i=Bt(this.canvas);return this.hitTest((e.clientX-t.left)/i.x,(e.clientY-t.top)/i.y)}captureSelectionContext(){let e=this.data,t=this.maxCells,i=this.cellInteractive,r=this.selectedCells,s=this.accessibleCells,a=this.matrixSource,l=this.ownerDocument;return(n=!1)=>this.isConnected&&this.ownerDocument===l&&this.multiple&&this.data===e&&Object.is(this.maxCells,t)&&this.cellInteractive===i&&this.accessibleCells===s&&this.matrixSource===a&&(n||this.selectedCells===r)}paintSelectionTo(e){let t=this.selectionGesture;if(!t)return;this.samePos(e,t.previous)||(t.moved=!0);let i=this.selectionCoordinates(t.previous),r=this.selectionCoordinates(e),s=Math.max(Math.abs(r.row-i.row),Math.abs(r.col-i.col),1),a=[];for(let l=0;l<=s;l++){let n=Math.round(i.row+(r.row-i.row)*l/s),c=Math.round(i.col+(r.col-i.col)*l/s),d=this.effectiveMode==="calendar"?`calendar-${c}-${n}`:`matrix-${n}-${c}`,h=this.accessibleCellAtKey(d);h&&(t.cells.has(d)!==t.selecting&&a.push(h),t.selecting?t.cells.set(d,h):t.cells.delete(d))}if(t.previous=e,this.selectionPreview!==t.cells){this.selectionPreview=t.cells;return}this.requestUpdate(),(a.length>16||!a.every(l=>this.repaintCell(l)))&&this.requestDraw()}repaintCell(e){return!this.canvasHasContent||!this.canvas||this.drawDirty?!1:("week"in e?this.repaintCalendarFocusCell(e):this.repaintMatrixFocusCell(e),!0)}cancelSelectionGesture(e=!1){let t=this.selectionGesture;this.selectionGesture=void 0,this.selectionPreview=void 0,t&&(e||(this.canceledSelectionPointer=t.pointerId),this.suppressNextSelectionClick(),Wt(t.target,t.pointerId))}suppressNextSelectionClick(){let e=this.ownerDocument.defaultView;e&&(this.releaseSelectionClick?.(),this.selectionClickKey??=Et("heatmap-selection"),this.releaseSelectionClick=Kt(e,this.selectionClickKey))}consumeSelectionClick(e){return e.detail!==0&&this.selectionClickKey!==void 0&&Ut(e,this.selectionClickKey)}get gridScrollportRendered(){return this.effectiveStickyLabels!=="none"||(this.fill||this.fitBlock)&&this.effectiveMode==="matrix"}get gridScrollport(){return this.shadowRoot?.querySelector('[part="grid"]')??null}measureTooltip(){let e=this.shadowRoot?.querySelector('[part="tooltip"]');if(!e||e.hidden)return;let t=this.ownerDocument.defaultView,i=t?Math.abs(B(Number.parseFloat(t.getComputedStyle(e).marginBlockStart),0)):0,r=e.offsetWidth,s=e.offsetHeight+i;r===this.tooltipSize.inline&&s===this.tooltipSize.block||(this.tooltipSize={inline:r,block:s},this.requestUpdate())}tooltipAnchor(e){let t=this.cellRect(e),i=t.x+t.w/2,r=this.gridScrollport,s=r??this.shadowRoot?.querySelector('[part="base"]');if(!s)return{style:{left:`${i}px`,top:`${t.y}px`},below:!1};let{inline:a,block:l}=this.tooltipSize,n=r?.scrollLeft??0,c=r?.scrollTop??0,d=n+(r&&this.freezesRowLabels?this.matrixPadLeft:0),h=n+s.clientWidth,u=c+(r&&this.freezesColLabels?this.matrixPadTop:0),p=c+s.clientHeight,f=t.y-l<u&&t.y+t.h+l<=p;return{style:{left:`${Math.max(d+a/2,Math.min(i,h-a/2))}px`,top:`${f?t.y+t.h:t.y}px`},below:f}}scrollCellIntoView(e){let t=this.gridScrollport;if(!t)return;let i=this.cellRect(e),r=this.freezesRowLabels?this.matrixPadLeft:0,s=this.freezesColLabels?this.matrixPadTop:0,a=Math.min(Math.max(t.scrollLeft,i.x+i.w-t.clientWidth),i.x-r),l=Math.min(Math.max(t.scrollTop,i.y+i.h-t.clientHeight),i.y-s);a!==t.scrollLeft&&(t.scrollLeft=a),l!==t.scrollTop&&(t.scrollTop=l)}samePos(e,t){return e===t?!0:!e||!t?!1:"week"in e&&"week"in t?e.week===t.week&&e.weekday===t.weekday:"row"in e&&"row"in t?e.row===t.row&&e.col===t.col:!1}edgeCell(e){if(e.key!=="Home"&&e.key!=="End")return null;let t=this.focusedCell&&!(e.ctrlKey||e.metaKey)?this.selectionCoordinates(this.focusedCell).row:void 0,i=this.accessibleCellPositions().filter(r=>t===void 0||this.selectionCoordinates(r).row===t);return i[e.key==="Home"?0:i.length-1]??null}navigateGridKey(e){let t=this.focusedCell,i=this.edgeCell(e);if(i?(e.preventDefault(),this.focusedCell=i,this.scrollCellIntoView(i)):this.effectiveMode==="calendar"?this.onCalendarKeyDown(e):this.onMatrixKeyDown(e),(i||_e.has(e.key))&&this.focusedCell){let r=this.extendSelection(t,this.focusedCell,e.shiftKey);this.announce(this.focusedCell,r?.has(this.accessibleCellKey(this.focusedCell)))}}onMatrixKeyDown(e){let t=this.matrixRowLabels.length,i=this.matrixColLabels.length;if(t===0||i===0)return;if(e.key==="Enter"||e.key===" "){e.preventDefault(),this.focusedCell&&!Se(e)&&this.emitCellClick(this.focusedCell,"keyboard");return}if(!_e.has(e.key))return;if(e.preventDefault(),!this.focusedCell||!("row"in this.focusedCell)){let c=this.firstInteractiveMatrixCell(t,i);if(!c)return;this.focusedCell=c,this.scrollCellIntoView(c);return}let{row:r,col:s}=this.focusedCell,a=0,l=0;e.key==="ArrowUp"?a=-1:e.key==="ArrowDown"?a=1:e.key==="ArrowLeft"?l=-1:e.key==="ArrowRight"&&(l=1);let n=this.nextInteractiveMatrixCell(r,s,a,l,t,i);this.focusedCell=n,this.scrollCellIntoView(n)}onCalendarKeyDown(e){let{weekCount:t}=this.cachedCalendarGrid;if(t===0)return;if(e.key==="Enter"||e.key===" "){e.preventDefault(),this.focusedCell&&!Se(e)&&this.emitCellClick(this.focusedCell,"keyboard");return}if(!_e.has(e.key))return;if(e.preventDefault(),!this.focusedCell||!("week"in this.focusedCell)){let n=this.firstInteractiveCalendarCell(t);if(!n)return;this.focusedCell=n;return}let{week:i,weekday:r}=this.focusedCell,s=0,a=0;e.key==="ArrowUp"?a=-1:e.key==="ArrowDown"?a=1:e.key==="ArrowLeft"?s=-1:e.key==="ArrowRight"&&(s=1);let l=this.nextInteractiveCalendarCell(i,r,s,a,t);this.focusedCell=l}resolveCellColor(e,t){let i=this.canvasColorCache.get(e);if(i===void 0){let r=ct.test(e)?null:q(this.ownerDocument);if(r){r.fillStyle="rgb(1, 2, 3)";let s=r.fillStyle;r.fillStyle=e,r.fillStyle!==s&&(i=r.fillStyle)}i??=Je(this,e,this.readToken(t,"no-data-fill",fe)),this.canvasColorCache.set(e,i)}return i}accessibleCellIndex(){if(this.accessibleIndex)return this.accessibleIndex;let e=[];if(this.effectiveMode==="calendar"){let{weekCount:i}=this.cachedCalendarGrid;for(let r=0;r<i;r++)for(let s=0;s<7;s++){let a=this.calendarPos(r,s);this.isCellInteractive(a)&&e.push(a)}}else for(let i=0;i<this.matrixRowLabels.length;i++)for(let r=0;r<this.matrixColLabels.length;r++){let s={row:i,col:r};this.isCellInteractive(s)&&e.push(s)}let t=new Map;return e.forEach((i,r)=>t.set(this.accessibleCellKey(i),r)),this.accessibleIndex={positions:e,byKey:t}}accessibleCellPositions(){return this.accessibleCellIndex().positions}accessibleCellKey(e){return"week"in e?`calendar-${e.week}-${e.weekday}`:`matrix-${e.row}-${e.col}`}accessibleCellIdentity(e){return"week"in e?e.date:this.accessibleCellKey(e)}accessibleCellAtKey(e){let{positions:t,byKey:i}=this.accessibleCellIndex(),r=i.get(e);return r===void 0?null:t[r]}focusAccessibleCell(e){e&&this.updateComplete.then(()=>{[...this.shadowRoot?.querySelectorAll('[part="cell"]')??[]].find(t=>t.dataset.cellKey===this.accessibleCellKey(e))?.focus()})}accessibleWindowStart(){if(!this.accessibleCells)return 0;let{positions:e,byKey:t}=this.accessibleCellIndex(),i=this.focusedCell?t.get(this.accessibleCellKey(this.focusedCell))??0:0;return Math.max(0,Math.min(Math.max(0,e.length-oe),i-Math.floor(oe/2)))}syncAccessibleTabStop(){if(!this.accessibleCells)return;let e=this.focusedCell??this.accessibleCellPositions()[0],t=e?this.accessibleCellKey(e):void 0,i=this.renderRoot.querySelector('[part="cell"][tabindex="0"]');i?.dataset.cellKey!==t&&(i?.setAttribute("tabindex","-1"),t&&this.renderRoot.querySelector(`[data-cell-key="${t}"]`)?.setAttribute("tabindex","0"))}renderAccessibleCells(e){if(!this.accessibleCells)return L``;let t=this.accessibleCellPositions(),i=this.focusedCell??t[0]??null,r=t.slice(e,e+oe),s=new Map;for(let c of r){let d="week"in c?c.weekday+1:c.row+1,h=s.get(d);h?h.push(c):s.set(d,[c])}let a=this.effectiveMode==="calendar"?7:this.matrixRowLabels.length,l=this.effectiveMode==="calendar"?this.cachedCalendarGrid.weekCount:this.matrixColLabels.length,n=this.effectiveMode==="calendar"?this.calendarNavigationGeometry():void 0;return L`
|
|
18
|
+
<div part="cells" role="grid" aria-label=${this.authorAriaLabel??this.generatedAriaLabel} aria-rowcount=${a} aria-colcount=${l} aria-multiselectable=${this.multiple?"true":T} aria-describedby=${[this.getAttribute("aria-describedby")??"",this.accessibleDescription?"description":"",this.projectionTruncated?"projection-limit":""].filter(Boolean).join(" ")||T} >
|
|
19
|
+
${[...s].map(([c,d])=>L`
|
|
20
|
+
<div class="cell-row" role="row" aria-rowindex=${c}>
|
|
21
|
+
${d.map(h=>{let u=n&&"week"in h?xt(h.week,h.weekday,n):this.accessibleCellRect(h),p=this.accessibleCellKey(h),f="week"in h?h.week+1:h.col+1;return L`
|
|
22
|
+
<button part="cell" class="cell" type="button" role="gridcell" aria-colindex=${f} data-cell-key=${p} data-cell-identity=${this.accessibleCellIdentity(h)} aria-label=${this.resolveCellText(h)} aria-selected=${this.isSelectedPos(h)?"true":"false"} tabindex=${this.samePos(i,h)?"0":"-1"} style=${O({insetInlineStart:`${u.x}px`,insetBlockStart:`${u.y}px`,inlineSize:`${u.w}px`,blockSize:`${u.h}px`})} @focus=${this.onAccessibleCellFocus} @click=${this.onAccessibleCellClick} @keydown=${this.onAccessibleCellKeyDown} ></button>
|
|
23
|
+
`})}
|
|
24
|
+
</div>
|
|
25
|
+
`)}
|
|
26
|
+
</div>
|
|
27
|
+
`}renderLegendScale(e){let t=this.cachedLegendStops;return t.length>0?L`${t.map(i=>{let r=H(i.color);return L`
|
|
28
|
+
<span part="legend-stop">
|
|
29
|
+
${r?L`<span part="legend-swatch" style=${O({background:r})} ></span>`:T}
|
|
30
|
+
<span part="legend-stop-label" >${i.label??this.formatNumericValue(i.value)}</span
|
|
31
|
+
>
|
|
32
|
+
</span>
|
|
33
|
+
`})}`:L`<span part="legend-lo" >${e?this.formatNumericValue(e[0]):""}</span
|
|
34
|
+
>
|
|
35
|
+
<span class="bar"></span>
|
|
36
|
+
<span part="legend-hi" >${e?this.formatNumericValue(e[1]):""}</span
|
|
37
|
+
>`}renderGridSurface(e){let t=this.accessibleWindowStart(),i=L`
|
|
38
|
+
<canvas part="canvas" tabindex=${this.accessibleCells?"-1":"0"} aria-hidden=${this.accessibleCells?"true":T} role=${this.accessibleCells?T:"application"} aria-label=${this.accessibleCells?T:this.authorAriaLabel??this.generatedAriaLabel} aria-describedby=${this.accessibleCells?T:[this.getAttribute("aria-describedby")??"",this.accessibleDescription?"description":"",e?"projection-limit":""].filter(Boolean).join(" ")||T} @pointermove=${this.onPointerMove} @pointerleave=${this.onPointerLeave} @click=${this.onCanvasClick} @keydown=${this.onKeyDown} @focus=${this.onCanvasFocusChange} @blur=${this.onCanvasFocusChange} ></canvas>
|
|
39
|
+
${Ye([this.overlayRevision,t],()=>this.renderAccessibleCells(t))}
|
|
40
|
+
${this.renderAxisTargets()}
|
|
41
|
+
${this.freezesRowLabels?L`<canvas part="row-labels" aria-hidden="true"></canvas>`:T}
|
|
42
|
+
${this.freezesColLabels?L`<canvas part="col-labels" aria-hidden="true"></canvas>`:T}
|
|
43
|
+
`;return this.gridScrollportRendered?L`<div part="grid">
|
|
44
|
+
<div class="grid-stack">${i}${this.renderTooltip()}</div>
|
|
45
|
+
</div>`:this.legendPlacement==="top"&&!this.withoutLegend?L`<div class="surface-frame">${i}${this.renderTooltip()}</div>`:i}visibleTooltip(){return this.renderRoot.querySelector('[part="tooltip"]:not([hidden])')}dismissTooltip(){this.tooltipOverlay?.deactivate({restoreFocus:!1}),this.tooltipOverlay=void 0,this.hoverCell=null,this.sourceTooltip=null}syncTooltipOverlay(){this.visibleTooltip()?this.tooltipOverlay??=Nt({host:this,panel:()=>this.visibleTooltip(),onEscape:()=>this.dismissTooltip()}):this.tooltipOverlay&&(this.tooltipOverlay.deactivate({restoreFocus:!1}),this.tooltipOverlay=void 0)}get effectiveAxisSelection(){return this.multiple&&this.effectiveMode==="matrix"&&!this.matrixSource?this._axisSelection:"none"}axisSelectionCounts(){let e={rowTotal:[],rowSelected:[],colTotal:[],colSelected:[]},t=this.currentSelectedPositions;for(let i of this.accessibleCellPositions()){let{row:r,col:s}=this.selectionCoordinates(i),a=t.has(this.accessibleCellKey(i))?1:0;e.rowTotal[r]=(e.rowTotal[r]??0)+1,e.colTotal[s]=(e.colTotal[s]??0)+1,e.rowSelected[r]=(e.rowSelected[r]??0)+a,e.colSelected[s]=(e.colSelected[s]??0)+a}return e}renderAxisTargets(){let e=this.effectiveAxisSelection,t=this.lastPaintedMatrixGeometry;if(e==="none"||!t)return T;let{padLeft:i,padTop:r,cellSize:s}=t,a=t.rowHeight??s,l=Math.min(this.matrixRowLabels.length,oe),n=Math.min(this.matrixColLabels.length,oe),c=this.axisSelectionCounts(),d=(g,w)=>{let b=g==="row"?c.rowTotal:c.colTotal,m=this.axisFocus[g];return m<w&&(b[m]??0)>0?m:Array.from({length:w},(C,A)=>A).find(C=>(b[C]??0)>0)??-1},h={row:d("row",l),col:d("col",n)},u=(g,w,b)=>{let m=(g==="row"?c.rowTotal:c.colTotal)[w]??0,C=m>0&&(g==="row"?c.rowSelected:c.colSelected)[w]===m,A=(g==="row"?this.matrixRowLabels:this.matrixColLabels)[w]||this.localize(g==="row"?"heatmapDefaultRowLabel":"heatmapDefaultColLabel",void 0,{n:this.formatLocaleNumber(w+1)});return L`<button part=${C?`${g}-label ${g}-label-pressed`:`${g}-label`} class="axis-target" type="button" data-axis=${g} data-axis-index=${w} aria-label=${A} aria-pressed=${C?"true":"false"} ?disabled=${m===0} tabindex=${h[g]===w?"0":"-1"} style=${O(b)} @click=${this.onAxisTargetClick} @keydown=${this.onAxisTargetKeyDown} ></button>`},p=e==="rows"||e==="both",f=e==="cols"||e==="both";return L`${p?L`<div class="axis-targets" ?data-frozen-rows=${this.freezesRowLabels} style=${O({inlineSize:`${i}px`,blockSize:`${r+l*a}px`})} >${Array.from({length:l},(g,w)=>u("row",w,{insetInlineStart:"0px",insetBlockStart:`${r+w*a}px`,inlineSize:`${i}px`,blockSize:`${a}px`}))}</div>`:T}${f?L`<div class="axis-targets" ?data-frozen-cols=${this.freezesColLabels} style=${O({inlineSize:`${i+n*s}px`,blockSize:`${r}px`})} >${Array.from({length:n},(g,w)=>u("col",w,{insetInlineStart:`${i+w*s}px`,insetBlockStart:"0px",inlineSize:`${s}px`,blockSize:`${r}px`}))}</div>`:T}`}renderTooltip(){let e=this.hoverCell,t=e?this.tooltipAnchor(e):null;return L`<div part="tooltip" class=${t?.below?"tooltip-below":T} dir=${this.effectiveDirection} ?hidden=${!e} style=${O(t?.style??{})} >${e?this.resolveCellText(e):""}</div
|
|
46
|
+
>`}renderLegend(e){let t=this.cachedAnnotations.filter(i=>i.label);return L`<div part="legend">
|
|
47
|
+
${this.renderLegendScale(e)}
|
|
48
|
+
<span part="legend-value-label">${this.localizedValueLabel()}</span>
|
|
49
|
+
${t.map(i=>L`<span part="legend-annotation" ><span class="ring-swatch"></span>${i.label}</span
|
|
50
|
+
>`)}
|
|
51
|
+
<slot name="legend"></slot>
|
|
52
|
+
</div>`}render(){if(this.matrixSource)return this.matrixController?Wi(this):L`<div part="source-status">${this.localize("loading")}</div>`;let e=this.cachedValueRange,t=this.projectionDescription(),i=this.withoutLegend?T:Ye([this.cachedAnnotations,this.cachedLegendStops,e,this.valueLabel,this.effectiveLocale,this.strings,Rt(this.effectiveLocale)],()=>this.renderLegend(e)),r=this.legendPlacement==="top";return L`
|
|
53
|
+
<div part="base" tabindex="-1" @pointerdown=${this.onSelectionPointerDown} @pointermove=${this.onSelectionPointerMove} @pointerup=${this.onSelectionPointerUp} @pointercancel=${this.onSelectionPointerCancel} @lostpointercapture=${this.onSelectionPointerCancel} data-projection-truncated=${this.projectionTruncated?"true":"false"} >
|
|
54
|
+
${r?i:T}
|
|
55
|
+
${this.renderGridSurface(t)}
|
|
56
|
+
${this.accessibleDescription?L`<p id="description" part="description" class="sr-only">${this.accessibleDescription}</p>`:T}
|
|
57
|
+
${t?L`<span id="projection-limit" part="projection-limit" class="sr-only" >${t}</span
|
|
58
|
+
>`:T}
|
|
59
|
+
${this.gridScrollportRendered||r&&!this.withoutLegend?T:this.renderTooltip()}
|
|
60
|
+
<div id="live-region" part="live-region" class="sr-only" aria-hidden="true" >${this.liveText}</div
|
|
61
|
+
>
|
|
62
|
+
${r?T:i}
|
|
63
|
+
</div>
|
|
64
|
+
`}};S([y({attribute:!1,noAccessor:!0})],v.prototype,"matrixSource",null),S([y({attribute:!1,noAccessor:!0})],v.prototype,"matrixViewport",null),S([y({attribute:"matrix-reducer"})],v.prototype,"matrixReducer",void 0),S([G()],v.prototype,"sourceResult",void 0),S([G()],v.prototype,"sourceTooltip",void 0),S([y({attribute:!1})],v.prototype,"data",void 0),S([y({converter:U(1e4),attribute:"max-cells"})],v.prototype,"maxCells",void 0),S([y({converter:et,attribute:"row-label-width",reflect:!0})],v.prototype,"rowLabelWidth",void 0),S([y({converter:et,attribute:"col-label-height"})],v.prototype,"colLabelHeight",void 0),S([y({converter:U(void 0),attribute:"col-label-rotation"})],v.prototype,"colLabelRotation",void 0),S([y({converter:tt,attribute:"sticky-labels",reflect:!0})],v.prototype,"stickyLabels",null),S([y({type:Number,attribute:"cell-size",converter:ze})],v.prototype,"cellSize",null),S([y({type:Number,attribute:"row-height",converter:ze})],v.prototype,"rowHeight",null),S([y({attribute:"value-label"})],v.prototype,"valueLabel",void 0),S([y({type:Boolean,attribute:"without-legend",reflect:!0})],v.prototype,"withoutLegend",void 0),S([y({converter:it,attribute:"legend-placement",reflect:!0})],v.prototype,"legendPlacement",null),S([y({type:Boolean,reflect:!0})],v.prototype,"fill",void 0),S([y({type:Boolean,attribute:"fit-block",reflect:!0})],v.prototype,"fitBlock",void 0),S([y({converter:rt,attribute:"axis-selection",reflect:!0})],v.prototype,"axisSelection",null),S([G()],v.prototype,"axisFocus",void 0),S([y()],v.prototype,"scale",void 0),S([y({converter:U(null),attribute:"cell-gap-x"})],v.prototype,"cellGapX",void 0),S([y({converter:U(null),attribute:"cell-gap-y"})],v.prototype,"cellGapY",void 0),S([y({converter:U(null),attribute:"cell-radius"})],v.prototype,"cellRadius",void 0),S([y({converter:U(1),attribute:"col-label-interval"})],v.prototype,"colLabelInterval",void 0),S([y({attribute:!1})],v.prototype,"domain",void 0),S([y({converter:U(void 0)})],v.prototype,"midpoint",void 0),S([y({type:Boolean,attribute:"fit-to-width"})],v.prototype,"fitToWidth",void 0),S([y({type:Number,attribute:"max-cell-size",converter:ze})],v.prototype,"maxCellSize",null),S([y({type:Number,attribute:"min-cell-size",converter:ze})],v.prototype,"minCellSize",null),S([y({attribute:"bucket-count",converter:Pi})],v.prototype,"bucketCount",null),S([y({attribute:!1})],v.prototype,"annotations",void 0),S([y({attribute:!1,hasChanged:ir})],v.prototype,"legendStops",void 0),S([y({attribute:!1})],v.prototype,"selectedCell",void 0),S([y()],v.prototype,"label",void 0),S([y()],v.prototype,"description",void 0),S([y({type:Boolean,reflect:!0})],v.prototype,"multiple",void 0),S([y({attribute:!1})],v.prototype,"selectedCells",void 0),S([y({type:Boolean,attribute:"accessible-cells"})],v.prototype,"accessibleCells",void 0),S([y({attribute:!1})],v.prototype,"cellText",void 0),S([y({attribute:!1})],v.prototype,"cellInteractive",void 0),S([y({attribute:!1})],v.prototype,"cellColor",void 0),S([y({attribute:!1})],v.prototype,"colorSteps",void 0),S([Mt('[part="canvas"]')],v.prototype,"canvas",void 0),S([G()],v.prototype,"hoverCell",void 0),S([G()],v.prototype,"focusedCell",void 0),S([G()],v.prototype,"liveText",void 0),S([G()],v.prototype,"accessibleTargetSizePx",void 0),S([G()],v.prototype,"selectionPreview",void 0);export{v as LyraHeatmap,oe as MAX_ACCESSIBLE_HEATMAP_CELLS,ki as MAX_BUCKET_COUNT,j as MAX_HEATMAP_CELLS,V as MAX_HEATMAP_DECORATIONS,Be as hexToRgb,X as normalizeBucketCount,Y as resolveRgb};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{L as p}from"./chunk-C6BTEIPF.js";import"./chunk-EHOJ7YCN.js";import"./chunk-FY3YWTCF.js";import{F as a}from"./chunk-IFDV4HWR.js";import{e as n}from"./chunk-3HGKUVDX.js";import{a as e,b as r,z as l}from"./chunk-JTGCA7JE.js";import"./chunk-4VZYY6B7.js";import"./chunk-CR23WLJQ.js";import"./chunk-RDTKEL46.js";import"./chunk-5NRIHGYU.js";import{b as i,e as s}from"./chunk-CN2FTU25.js";import"./chunk-ZD6IWVN5.js";import"./chunk-AVZPWRZU.js";import"./chunk-GMPUTEBU.js";import"./chunk-3CLMBMQL.js";import"./chunk-OP7ARFKR.js";import"./chunk-5PNMEGOF.js";import"./chunk-Z7WGANHK.js";var c=i`:host{vertical-align:middle;display:inline-flex}.glyph{font-size:var(--lr-help-icon-size,var(--lr-size-1em));display:inline-flex}[part~=popover]{--lr-overlay-max-inline-size:var(--lr-help-max-inline-size,var(--lr-size-20rem))}`,t=class extends l{constructor(){super(...arguments),this.label="",this.placement="top"}static{this.defaultStrings={...super.defaultStrings,details:a}}static{this.styles=[l.styles,c]}render(){let o=this.label||this.localize("details");return s`<lr-popover part="popover" exportparts="popup, content" trigger="click focus" placement=${this.placement} .accessibleLabel=${o} ><lr-icon-button slot="trigger" part="trigger" exportparts="button:trigger-control" aria-label=${o} ><span class="glyph" aria-hidden="true">${p()}</span></lr-icon-button
|
|
2
|
+
><slot></slot
|
|
3
|
+
></lr-popover>`}};e([r()],t.prototype,"label",void 0),e([r({reflect:!0,converter:n("top")})],t.prototype,"placement",void 0);export{t as LyraHelp};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b,c,d}from"./chunk-DEFBHDIB.js";import"./chunk-OUV7KSOP.js";import"./chunk-UKOOP7SS.js";import"./chunk-M3K6BXUV.js";import"./chunk-J24TYMEI.js";import"./chunk-4QG5Y44P.js";import"./chunk-HEIK7X4U.js";import"./chunk-RDTKEL46.js";import"./chunk-AVZPWRZU.js";import"./chunk-OP7ARFKR.js";import"./chunk-Z7WGANHK.js";export{d as HierarchySourceController,a as hierarchyField,b as hierarchyKey,c as hierarchyText};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-DXHC3OY6.js";import"./chunk-XWB2NT26.js";import"./chunk-7JP4RLLR.js";import"./chunk-UL2EEJOU.js";import"./chunk-G6XBJVZN.js";import"./chunk-IRH2OYBM.js";import"./chunk-CN2FTU25.js";export{a as hierarchySourceView};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b,c,d,e,f,g,h}from"./chunk-BL7EC2AS.js";import"./chunk-DEFBHDIB.js";import"./chunk-OUV7KSOP.js";import"./chunk-UKOOP7SS.js";import"./chunk-M3K6BXUV.js";import"./chunk-J24TYMEI.js";import"./chunk-4QG5Y44P.js";import"./chunk-HEIK7X4U.js";import"./chunk-RDTKEL46.js";import"./chunk-5NRIHGYU.js";import"./chunk-AVZPWRZU.js";import"./chunk-OP7ARFKR.js";import"./chunk-Z7WGANHK.js";export{h as applyHierarchySourceEffects,e as captureHierarchyRowAuthority,d as captureHierarchySourceEffects,b as createHierarchySummarySource,f as hierarchySourceFieldReader,a as hierarchySourceSummary,g as revealActiveHierarchyKey,c as traceSourceSummary};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import{a as G}from"./chunk-FBPNOOMY.js";import{a as V}from"./chunk-GBF4AHIG.js";import{a as K}from"./chunk-NE47UFEJ.js";import{b as U,c as L}from"./chunk-MRVJ5TYC.js";import{va as P}from"./chunk-FH3ZM5XY.js";import{a as A}from"./chunk-O4NFRBN5.js";import"./chunk-YNMFL6SJ.js";import{a as R}from"./chunk-5T6W5AEE.js";import"./chunk-7AMXIXSH.js";import{c as q}from"./chunk-O3PZG44H.js";import"./chunk-H62CTJMK.js";import{f as j}from"./chunk-GT6NF7FZ.js";import"./chunk-CSV23ONU.js";import"./chunk-IJ2AN2PR.js";import"./chunk-GUP74TZL.js";import"./chunk-QCM7NVLU.js";import{a as M}from"./chunk-2WXXKPUW.js";import"./chunk-34M5HC53.js";import{b as z,e as S}from"./chunk-HEIK7X4U.js";import{xa as W,ya as H}from"./chunk-IFDV4HWR.js";import"./chunk-IRH2OYBM.js";import{e as C}from"./chunk-BDETGDBF.js";import{D as E,a as D,c as $,v as k}from"./chunk-2CH7YZRL.js";import"./chunk-32IK33EM.js";import{a as v,b as y,c as w,z as x}from"./chunk-JTGCA7JE.js";import"./chunk-4VZYY6B7.js";import"./chunk-CR23WLJQ.js";import"./chunk-RDTKEL46.js";import{b as O}from"./chunk-5NRIHGYU.js";import{b as F,e as b,i as c}from"./chunk-CN2FTU25.js";import"./chunk-RNCRO7PW.js";import"./chunk-UDRXM6B3.js";import"./chunk-KLAMX2AK.js";import"./chunk-ZD6IWVN5.js";import"./chunk-AVZPWRZU.js";import"./chunk-GMPUTEBU.js";import"./chunk-3CLMBMQL.js";import{b as T}from"./chunk-OP7ARFKR.js";import"./chunk-5PNMEGOF.js";import"./chunk-Z7WGANHK.js";var N=F` :host{position:absolute;inset:0;display:block;pointer-events:none}[part=base]{position:absolute;inset:0}[part=rect]{--_lr-highlight-layer-background:var( --lr-highlight-layer-accent-bg, var(--lr-color-brand-quiet) );--_lr-highlight-layer-outline:var( --lr-highlight-layer-accent-outline, var(--lr-color-brand) );position:absolute;pointer-events:none;box-sizing:border-box;border-radius:var(--lr-radius-xs);background:var(--_lr-highlight-layer-background);outline:var(--lr-border-width-thin) solid var(--_lr-highlight-layer-outline);outline-offset:calc(-1 * var(--lr-border-width-thin))}[part=rect-target]{position:absolute;z-index:var(--lr-layer-content);box-sizing:border-box;pointer-events:auto;cursor:pointer;transform:translate(-50%,-50%)}[part=rect-target]:hover + [part=rect]{outline-width:var(--lr-border-width-medium)}[part=rect-target]:active + [part=rect]{outline-width:var(--lr-border-width-medium);background: ${k("var(--_lr-highlight-layer-background)")}}[part=rect]:where([data-tone=success]){--_lr-highlight-layer-background:var( --lr-highlight-layer-success-bg, var(--lr-color-success-quiet) );--_lr-highlight-layer-outline:var( --lr-highlight-layer-success-outline, var(--lr-color-success) )}[part=rect]:where([data-tone=warning]){--_lr-highlight-layer-background:var( --lr-highlight-layer-warning-bg, var(--lr-color-warning-quiet) );--_lr-highlight-layer-outline:var( --lr-highlight-layer-warning-outline, var(--lr-color-warning) )}[part=rect]:where([data-tone=danger]){--_lr-highlight-layer-background:var( --lr-highlight-layer-danger-bg, var(--lr-color-danger-quiet) );--_lr-highlight-layer-outline:var( --lr-highlight-layer-danger-outline, var(--lr-color-danger) )}[part=rect]:where([data-tone=neutral]){--_lr-highlight-layer-background:var( --lr-highlight-layer-neutral-bg, var(--lr-color-surface-raised) );--_lr-highlight-layer-outline:var( --lr-highlight-layer-neutral-outline, var(--lr-color-text-quiet) )}[part=rect]:where([data-active]){outline-width:var(--lr-border-width-thick);outline-offset:calc(-1 * var(--lr-border-width-thick))}[part=rect-target]:focus-visible{${$}}[part=highlight-actions]{position:absolute;z-index:var(--lr-layer-content);inset-inline:0;inset-block-end:0;display:grid;gap:var(--lr-space-xs);max-block-size:50%;overflow-y:auto;padding:var(--lr-space-xs);pointer-events:none}[part=highlight-action]{${D} ${K} background:var(--lr-highlight-layer-action-bg,var(--lr-color-surface));${E} border-radius:var(--lr-radius-xs);pointer-events:auto;cursor:pointer}[part=highlight-action]:hover{background:var(--lr-highlight-layer-action-hover-bg,var(--lr-color-surface-raised))}[part=highlight-action]:active{background:var(--lr-highlight-layer-action-active-bg,${k("var(--lr-highlight-layer-action-hover-bg, var(--lr-color-surface-raised))")})}[part=highlight-action]:focus-visible{${$}}[part=rect]:where([data-flash]){background:var(--lr-highlight-layer-flash-bg,var(--lr-color-brand));animation:var(--_lr-motion-animation,lr-highlight-layer-flash var(--lr-transition-ambient))}@keyframes lr-highlight-layer-flash{from{opacity:1}to{opacity:0.45}}@media (prefers-reduced-motion:reduce){[part=rect]:where([data-flash]){animation:none;background:var(--_lr-highlight-layer-background);outline-width:var(--lr-border-width-thick);outline-offset:calc(-1 * var(--lr-border-width-thick))}}`;function _(m){let t=m.split(",").map(i=>i.trim());return t.length?t:[""]}function Y(m,t,i){let e=_(m),r=_(t).map(l=>Math.max(0,R(l))),a=_(i).map(R),o=0;return e.forEach((l,s)=>{if(l.toLowerCase()==="none")return;let d=r[s%r.length]??0,n=a[s%a.length]??0;o=Math.max(o,d+n,0)}),o}var J=1e4,Q=1e3,Z=600;function tt(m){if(!Array.isArray(m))return Object.freeze([]);let t=[],i=new Set,e=Math.min(m.length,J);for(let r=0;r<e;r+=1)try{let a=m[r];if(a===null||typeof a!="object"||Array.isArray(a))continue;let o=a.id;if(typeof o!="string")continue;let l=o.trim();if(l.length===0||i.has(l))continue;let s=a.rects;if(!Array.isArray(s))continue;i.add(l);let d=[],n=Math.min(s.length,Q);for(let h=0;h<n;h+=1){let p=j(s[h]);p!==void 0&&d.push(Object.freeze(p))}t.push(Object.freeze({...a,id:l,rects:Object.freeze(d)}))}catch{}return Object.freeze(t)}var f=class extends x{constructor(){super(...arguments),this._items=Object.freeze([]),this.activeHighlightId=null,this.withoutInteraction=!1,this.focusedId=null,this.flashingId=null,this.actionList=!1,this.flashGeneration=0,this.pendingFocusId=null}static{this.defaultStrings={...super.defaultStrings,highlightLayerLabel:P,highlightOfTotal:W,highlightWithLabel:H}}static{this.collectionSupport=C}static{this.ownedCollectionProperties=Object.freeze(["items"])}static{this.styles=[x.styles,N]}get items(){return this._items}set items(t){let i=this._items;this._items=tt(t),this.requestUpdate("items",i)}connectedCallback(){super.connectedCallback();let t=this.ownerDocument.defaultView?.ResizeObserver;this.sizeObserver=t?new t(i=>{this.boxSize=i.at(-1)?.contentRect??this.boxSize}):void 0,this.sizeObserver?.observe(this)}willUpdate(t){super.willUpdate(t);let i=this.hasFocusedAction();if(t.has("items")){let e=(a,o)=>a?.findIndex(l=>l.id===o)??-1,r=t.get("items");if(this.focusedId!==null&&e(this.items,this.focusedId)<0){let a=e(r,this.focusedId),o=this.itemIndexesWithRects(this.items.map(s=>s.rects)).reduce((s,d)=>s===null||Math.abs(d-a)<Math.abs(s-a)?d:s,null);this.focusedId=o===null?null:this.items[o].id;let l=e(r,this.focusedId);i&&l>=0&&this.primaryTarget(l)?.focus()}t.get("items")!==void 0&&this.clearFlash()}(t.has("items")||t.has("boxSize")||t.has("withoutInteraction"))&&(this.actionList=!this.withoutInteraction&&this.hitAreasOverlap(),i&&(this.pendingFocusId=this.focusedId))}updated(t){super.updated(t);let i=this.pendingFocusId;if(this.pendingFocusId=null,i===null)return;let e=this.items.findIndex(r=>r.id===i);e>=0&&this.focusRect(e)}disconnectedCallback(){super.disconnectedCallback(),this.sizeObserver?.disconnect(),this.focusedId=null,this.pendingFocusId=null,this.clearFlash()}hasFocusedAction(){return T(this)?.matches("[data-item-action]")??!1}hitAreasOverlap(){let t=this.ownerDocument?.defaultView;if(!t)return!1;let{width:i,height:e}=this.boxSize??this.getBoundingClientRect(),r=V(t.getComputedStyle(this).getPropertyValue("--lr-icon-button-size").trim(),{host:this})??0;return G(this.items.map(a=>a.rects),{width:i,height:e},r)}adoptedCallback(){super.adoptedCallback(),this.clearFlash()}flash(t){if(this.clearFlash(),!this.isConnected||!this.items.some(e=>e.id===t))return;this.flashingId=t;let i=this.flashGeneration;this.updateComplete.then(()=>{if(i!==this.flashGeneration||this.flashingId!==t||!this.isConnected)return;let e=this.primaryVisualRect(this.items.findIndex(s=>s.id===t));if(!e){this.flashingId=null;return}let r=e.ownerDocument.defaultView;if(!r){this.flashingId=null;return}let a=r.getComputedStyle(e),o=Y(a.animationName,a.animationDuration,a.animationDelay);this.flashTimerWindow=r;let l=o>0&&!q(this)?o:Z;this.flashTimer=r.setTimeout(()=>{i!==this.flashGeneration||this.flashTimerWindow!==r||(this.flashTimer=void 0,this.flashTimerWindow=void 0,this.flashingId=null)},l)})}clearFlash(){this.flashTimer!==void 0&&this.flashTimerWindow?.clearTimeout(this.flashTimer),this.flashTimer=void 0,this.flashTimerWindow=void 0,this.flashGeneration+=1,this.flashingId=null}itemIndexesWithRects(t){let i=[];return t.forEach((e,r)=>{e.length>0&&i.push(r)}),i}tabStopIndex(t){let i=this.itemIndexesWithRects(t);if(i.length===0)return null;if(this.focusedId!==null){let e=this.items.findIndex(r=>r.id===this.focusedId);if(i.includes(e))return e}if(this.activeHighlightId){let e=this.items.findIndex((r,a)=>r.id===this.activeHighlightId&&t[a].length>0);if(e>=0)return e}return i[0]}onRectClick(t){this.emit("lr-highlight-activate",{highlightId:t})}onRectFocus(t){this.focusedId=t.id}primaryTarget(t){return[...this.renderRoot.querySelectorAll("[data-item-action]")].find(i=>i.dataset.itemIndex===String(t))??null}primaryVisualRect(t){return[...this.renderRoot.querySelectorAll('[part="rect"][data-primary]')].find(i=>i.dataset.itemIndex===String(t))??null}focusRect(t){this.primaryTarget(t)?.focus()}onRectKeyDown(t,i){if(t.key==="Enter"||t.key===" "){if(S(t))return;t.preventDefault(),this.onRectClick(this.items[i].id);return}if(z(t)||t.shiftKey)return;let e=this.effectiveDirection==="rtl",r=t.key==="ArrowDown"||(e?t.key==="ArrowLeft":t.key==="ArrowRight"),a=t.key==="ArrowUp"||(e?t.key==="ArrowRight":t.key==="ArrowLeft"),o=this.itemIndexesWithRects(this.items.map(d=>d.rects)),l=o.indexOf(i),s;r?s=o[Math.min(o.length-1,l+1)]:a?s=o[Math.max(0,l-1)]:t.key==="Home"?s=o[0]:t.key==="End"&&(s=o.at(-1)),!(s===void 0||s===i)&&(t.preventDefault(),this.focusedId=this.items[s].id,this.scheduleAfterUpdate(()=>this.focusRect(s)))}rectLabel(t,i,e){let r=O(this.effectiveLocale),a=M(t.label);return a?this.localize("highlightWithLabel",void 0,{label:a}):this.localize("highlightOfTotal",void 0,{index:r.format(i+1),total:r.format(e)})}render(){let t=this.items.map(n=>n.rects),i=this.itemIndexesWithRects(t);if(i.length===0)return L(this,null),c;let e=this.tabStopIndex(t),r=this.activeHighlightId?this.items.findIndex((n,h)=>n.id===this.activeHighlightId&&t[h].length>0):-1,a=new Map(i.map((n,h)=>[n,h])),o=!this.withoutInteraction,l=o&&this.actionList,s=L(this,o?"group":null),d=o?U(this,this.localize("highlightLayerLabel")):null;return b`
|
|
2
|
+
<div part="base" role=${s??c} aria-label=${d??c} aria-hidden=${o?c:"true"} >
|
|
3
|
+
${this.items.map((n,h)=>{let p=r===h,I=this.flashingId===n.id;return t[h].map((u,B)=>{let g=B===0;return b`
|
|
4
|
+
${o?l?c:b`
|
|
5
|
+
<span part="rect-target" data-id=${n.id} data-item-index=${h} ?data-primary=${g} ?data-item-action=${g} aria-current=${g?String(p):c} aria-hidden=${g?c:"true"} role=${g?"button":c} tabindex=${g?e===h?"0":"-1":c} aria-label=${g?this.rectLabel(n,a.get(h)??0,i.length):c} style=${A({left:`calc(${u.x}% + ${u.width/2}%)`,top:`calc(${u.y}% + ${u.height/2}%)`,width:`max(${u.width}%, var(--lr-icon-button-size))`,height:`max(${u.height}%, var(--lr-icon-button-size))`})} @click=${()=>this.onRectClick(n.id)} @focus=${g?()=>this.onRectFocus(n):c} @keydown=${g?X=>this.onRectKeyDown(X,h):c} ></span>
|
|
6
|
+
`:c}
|
|
7
|
+
<span part="rect" data-id=${n.id} data-item-index=${h} ?data-primary=${g} data-tone=${n.tone??"accent"} ?data-active=${p} ?data-flash=${I} aria-hidden="true" style=${A({left:`${u.x}%`,top:`${u.y}%`,width:`${u.width}%`,height:`${u.height}%`})} ></span>
|
|
8
|
+
`})})}
|
|
9
|
+
${l?b`
|
|
10
|
+
<div part="highlight-actions">
|
|
11
|
+
${i.map(n=>{let h=this.items[n],p=this.rectLabel(h,a.get(n)??0,i.length);return b`
|
|
12
|
+
<button part="highlight-action" type="button" data-id=${h.id} data-item-index=${n} data-item-action aria-current=${String(r===n)} tabindex=${e===n?"0":"-1"} aria-label=${p} @click=${()=>this.onRectClick(h.id)} @focus=${()=>this.onRectFocus(h)} @keydown=${I=>this.onRectKeyDown(I,n)} >
|
|
13
|
+
${p}
|
|
14
|
+
</button>
|
|
15
|
+
`})}
|
|
16
|
+
</div>
|
|
17
|
+
`:c}
|
|
18
|
+
</div>
|
|
19
|
+
`}};v([y({attribute:!1})],f.prototype,"items",null),v([y({attribute:"active-highlight-id"})],f.prototype,"activeHighlightId",void 0),v([y({type:Boolean,attribute:"without-interaction",reflect:!0})],f.prototype,"withoutInteraction",void 0),v([w()],f.prototype,"focusedId",void 0),v([w()],f.prototype,"flashingId",void 0),v([w()],f.prototype,"boxSize",void 0);export{f as LyraHighlightLayer};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as Q,b as j,c as st}from"./chunk-MISTOUAC.js";import"./chunk-TQSJCN5E.js";import"./chunk-IYJATAHI.js";import"./chunk-LKFMXDRF.js";import{l as tt,w as et}from"./chunk-PGL4UQXK.js";import"./chunk-BUTCVOEQ.js";import{$ as nt,Y as it,Z as rt,_ as ot}from"./chunk-JVOILMDD.js";import{a as Z}from"./chunk-PU6CXUNJ.js";import"./chunk-PZ2KUPDO.js";import"./chunk-YVOGDIOW.js";import"./chunk-HELIEOVI.js";import"./chunk-RTWAT4DT.js";import"./chunk-O4NFRBN5.js";import{a as b,b as J}from"./chunk-M3K6BXUV.js";import"./chunk-4QBXZ5BM.js";import"./chunk-XYHOA2VI.js";import"./chunk-J24TYMEI.js";import"./chunk-KPB62ASL.js";import{a as V,b as X}from"./chunk-GGSUOPBU.js";import"./chunk-4LTUIJ3G.js";import"./chunk-XHOHYCRV.js";import"./chunk-HCFVFABH.js";import"./chunk-7AMXIXSH.js";import"./chunk-O3PZG44H.js";import"./chunk-H62CTJMK.js";import"./chunk-KKP6NH4M.js";import"./chunk-GT6NF7FZ.js";import"./chunk-UTM46NXE.js";import"./chunk-GUP74TZL.js";import"./chunk-QCM7NVLU.js";import"./chunk-2WXXKPUW.js";import"./chunk-34M5HC53.js";import"./chunk-3HP7ZF3Z.js";import"./chunk-HEIK7X4U.js";import"./chunk-IFDV4HWR.js";import"./chunk-REOFE46N.js";import"./chunk-IRH2OYBM.js";import"./chunk-3HGKUVDX.js";import{d as H,e as Y}from"./chunk-BDETGDBF.js";import"./chunk-2CH7YZRL.js";import{g as K}from"./chunk-32IK33EM.js";import{a as L,b as _,o as T,z as W}from"./chunk-JTGCA7JE.js";import"./chunk-4VZYY6B7.js";import"./chunk-CR23WLJQ.js";import"./chunk-RDTKEL46.js";import{b as D}from"./chunk-5NRIHGYU.js";import"./chunk-CN2FTU25.js";import"./chunk-ZVB4ZXSV.js";import"./chunk-MM5JS5OO.js";import"./chunk-RNCRO7PW.js";import"./chunk-UDRXM6B3.js";import"./chunk-KLAMX2AK.js";import"./chunk-ZD6IWVN5.js";import{j as G,k as I}from"./chunk-AVZPWRZU.js";import"./chunk-GMPUTEBU.js";import"./chunk-3CLMBMQL.js";import"./chunk-OP7ARFKR.js";import"./chunk-5PNMEGOF.js";import"./chunk-Z7WGANHK.js";function at(i,t){Object.defineProperty(i.prototype,"type",{configurable:!0,enumerable:!0,get(){return t},set(e){}})}var vt=1e3,ut="\u2066",ct="\u2069";function B(i){let t;try{t=typeof i=="number"?i:Number(i)}catch{return 0}return Number.isFinite(t)?Math.min(vt,Math.max(0,Math.floor(t))):0}function x(i,t,e){let r=Math.abs(e??t);return r>0&&r<1e-18?D(i,{notation:"scientific",maximumSignificantDigits:17}):D(i,{maximumFractionDigits:e===void 0?V(t,2):X(e)})}function lt(i){let t=1/0,e=-1/0;for(let r of i)r<t&&(t=r),r>e&&(e=r);return[t,e]}function k(i,t,e,r){return t===e?0:Math.min(r-1,Math.max(0,Math.floor(G(i,t,e)*r)))}function mt(i,t,[e,r],o){if(!i.length||t<=0)return[];let u=r===e,m=T(o),s=r/t-e/t,c=x(m,s,u?e:void 0);if(u)return[{label:`${ut}${c.format(e)}${ct}`,count:i.length}];let n=r,a=c.formatRange?.bind(c),v=Array.from({length:t},(y,g)=>{let w=I(e,n,g/t),C=I(e,n,(g+1)/t);return{label:`${ut}${a?a(w,C):`${c.format(w)}\u2013${c.format(C)}`}${ct}`,count:0}});for(let y of i)v[k(y,e,r,t)].count++;return v}function d(i,t){if(i===null||typeof i!="object")throw new TypeError("Invalid distribution");let e=Object.getOwnPropertyDescriptor(i,t);if(!e||!("value"in e))throw new TypeError("Invalid distribution");return e.value}function M(i){let t=J(d(i,"revision")),e=d(i,"counts"),r=b(d(e,"sourceCount")),o=b(d(e,"validCount")),u=b(d(e,"invalidCount"));if(o>r||u!==r-o)throw new TypeError("Invalid counts");let m=d(i,"edges"),s=d(i,"binCounts");if(!Array.isArray(m)||!Array.isArray(s))throw new TypeError("Invalid bins");let c=b(d(m,"length")),n=b(d(s,"length"));if(c>1001||n>1e3||c!==0&&c<2||n!==Math.max(0,c-1))throw new TypeError("Invalid bins");let a=[],v=[];for(let l=0;l<c;l++){let h=d(m,l);if(typeof h!="number"||!Number.isFinite(h)||l>0&&h<=a[l-1])throw new TypeError("Invalid edge");a.push(h)}let y=o;for(let l=0;l<n;l++){let h=b(d(s,l));if(h>y)throw new TypeError("Invalid bin count");y-=h,v.push(h)}let g=b(d(i,"belowCount")),w=b(d(i,"aboveCount"));if(g>y||w!==y-g||!a.length&&o!==0)throw new TypeError("Invalid outliers");let C=d(i,"domain"),P=null;if(o){let l=d(C,"min"),h=d(C,"max");if(typeof l!="number"||typeof h!="number"||!Number.isFinite(l)||!Number.isFinite(h)||l>h)throw new TypeError("Invalid domain");if(g>0!=l<a[0]||w>0!=h>a.at(-1))throw new TypeError("Invalid outlier domain");for(let p=0;p<n;p++){if(v[p]===0)continue;let S=a[p],q=a[p+1];if(S>h||(p===n-1?q<l:q<=l))throw new TypeError("Populated bin outside domain")}let U=p=>{if(p<a[0])return-1;if(p>a[c-1])return n;let S=0;for(;S<n-1&&p>=a[S+1];)S++;return S},O=p=>p<0?g:p===n?w:v[p],A=U(l),$=U(h);if(O(A)===0||O($)===0||l!==h&&A===$&&O(A)<2)throw new TypeError("Unrepresented domain extrema");P=Object.freeze({min:l,max:h})}else if(C!==null)throw new TypeError("Invalid empty domain");return Object.freeze({revision:t,counts:Object.freeze({sourceCount:r,validCount:o,invalidCount:u}),domain:P,edges:Object.freeze(a),binCounts:Object.freeze(v),belowCount:g,aboveCount:w})}function R(i,t){return Object.freeze(i.binCounts.map((e,r)=>{let o=i.edges[r],u=i.edges[r+1],m=u-o,s=x(T(t),m),c=s.formatRange,n=c?c.call(s,o,u):`${s.format(o)}\u2013${s.format(u)}`;return Object.freeze({label:`\u2066${n}\u2069`,count:e})}))}var F=new WeakMap,E=new WeakMap;function ht(i){E.set(i,{}),F.delete(i)}var z=new WeakMap;function dt(i,t,e,r){let o=z.get(i);if(!o||o.values!==t||!o.buckets.length)return;let[u,m]=o.domain;for(let n=0;n<e;n++){let a=t[n];if(a===u||a===m)return}if(r.some(n=>n<u||n>m))return;let s=new Int32Array(o.buckets.length);for(let n=0;n<e;n++){let a=t[n];Number.isFinite(a)&&s[k(a,u,m,o.bins)]--}for(let n of r)s[k(n,u,m,o.bins)]++;let c=o.buckets.map((n,a)=>s[a]?{label:n.label,count:n.count+s[a]}:n);z.set(i,{...o,values:i.values,buckets:c})}function N(i){let t=i.effectiveLocale,e=i.distribution;if(e!=null){let c=E.get(i),n=F.get(i);if(n?.source===e&&n.locale===t)return n.buckets;let a;try{a=R(M(e),t)}catch{a=[]}return i.distribution===e&&E.get(i)===c&&F.set(i,{source:e,locale:t,buckets:a}),a}let r=B(i.bins),o=z.get(i);if(o&&o.values===i.values&&o.bins===r&&o.locale===t)return o.buckets;let u=i.values.filter(Number.isFinite),m=lt(u),s=mt(u,r,m,t);return z.set(i,{values:i.values,bins:r,locale:t,domain:m,buckets:s}),s}var pt=1e4,wt=new Set(["distribution","seriesLabel","locale","strings"]),Ct=["values","bins","seriesLabel","distribution"],bt=Object.freeze({}),f=class extends st{constructor(){super(...arguments),this.type="bar",this.bins=10,this.values=[],this.seriesLabel="",this._distribution=null,this.distributionDirty=!0,this.sampleBatches=[],this.committingSamples=!1}static{this.defaultStrings={...super.defaultStrings,chartSummarySeparator:". ",histogramDistributionRange:it,histogramDistributionSummary:rt,histogramFrequency:ot,histogramInputLimit:nt}}static{this.collectionSupport=Y}static{this.ownedCollectionProperties=Object.freeze(["values"])}static{this.appendOrderedCollectionProperties=Object.freeze(["values"])}static{this.styles=[W.styles,Z,tt,j,K,et]}get distribution(){return this._distribution}set distribution(t){let e=this._distribution;this._distribution=t,this.requestUpdate("distribution",e)}refreshDistribution(){if(this.distributionDirty&&(this.distributionDirty=!1,this.distributionSnapshot=void 0,this.distributionProjection=void 0,this._distribution!=null))try{let t=M(this._distribution),e=R(t,this.effectiveLocale),r=t.counts.validCount-t.belowCount-t.aboveCount;this.distributionProjection=Object.freeze({kind:"categories",revision:t.revision,aggregation:"count",counts:Object.freeze({sourceCount:r,validCount:r,invalidCount:0}),categories:Object.freeze(e.map((o,u)=>Object.freeze({id:`bin${u}`,label:o.label.replace(/^\u2066|\u2069$/gu,"")}))),categoryCounts:t.binCounts,series:Object.freeze([Object.freeze({id:"histogram",label:this.seriesLabel||this.localize("histogramFrequency"),values:t.binCounts})])}),this.distributionSnapshot=t}catch{}}preparedDataInput(){return this.refreshDistribution(),this._distribution!=null?this.distributionProjection??bt:this.preparedData==null?null:bt}willUpdate(t){let e=this.effectiveLocale,r=this.seriesLabel||this.localize("histogramFrequency");(e!==this.distributionLocale||r!==this.distributionLabel)&&(this.distributionLocale=e,this.distributionLabel=r,this.distributionDirty=!0,this._distribution!=null&&super.requestUpdate("preparedData",void 0)),super.willUpdate(t)}emitPreparedSourceSelection(t,e){}preparedSummary(){let t=this.distributionSnapshot;if(!t)return;let e=D(this.effectiveLocale),r=this.localize("histogramDistributionSummary",void 0,{validCount:e.format(t.counts.validCount),invalidCount:e.format(t.counts.invalidCount),belowCount:e.format(t.belowCount),aboveCount:e.format(t.aboveCount)});return t.domain?[r,this.localize("histogramDistributionRange",void 0,{min:e.format(t.domain.min),max:e.format(t.domain.max)})].join(this.localize("chartSummarySeparator")):r}appendSamples(t,e=0){if(this._distribution!=null||!Array.isArray(t))return;let r=Number.isFinite(e)?Math.max(0,Math.floor(e)):0,o=r>0?Math.min(r,pt):pt;this.sampleBatches.push({source:t,limit:o,newest:[],cursor:t.length-1}),this.sampleBatches.length===1&&this.continueSampleBatch()}cancelSampleBatches(){clearTimeout(this.sampleTimer),this.sampleTimer=void 0,this.sampleBatches&&(this.sampleBatches.length=0)}requestUpdate(t,e,r){(t==="values"&&!this.committingSamples||t==="distribution"||t===void 0&&this._distribution!=null)&&this.cancelSampleBatches(),(t===void 0||wt.has(t))&&(this.distributionDirty=!0,ht(this),t!==void 0&&this._distribution!=null&&super.requestUpdate("preparedData",void 0),t==="distribution"&&this._distribution==null&&super.requestUpdate("preparedData",void 0)),super.requestUpdate(t,e,r)}teardownConnection(){this.cancelSampleBatches(),super.teardownConnection()}continueSampleBatch(){let t=this.sampleBatches[0];if(!t)return;let e=Math.max(-1,t.cursor-1e4);for(;t.cursor>e&&t.newest.length<t.limit;t.cursor--){let r;try{r=t.source[t.cursor]}catch{if(this.sampleBatches[0]!==t)return;continue}if(this.sampleBatches[0]!==t)return;typeof r=="number"&&Number.isFinite(r)&&t.newest.push(r)}if(t.cursor<0||t.newest.length===t.limit){let r=this.values,o=Math.min(r.length,t.limit-t.newest.length),u=new Array(o+t.newest.length),m=r.length-o;for(let s=0;s<o;s++)u[s]=r[m+s];for(let s=0;s<t.newest.length;s++)u[u.length-1-s]=t.newest[s];this.sampleBatches.shift(),this.committingSamples=!0;try{this.withStreamedTableUpdate(()=>{this.values=u}),dt(this,r,m,t.newest)}finally{this.committingSamples=!1}}this.sampleBatches.length&&(this.sampleTimer=setTimeout(()=>{this.sampleTimer=void 0,this.continueSampleBatch()},0))}normalizeEffectiveConfig(t){if(!t)return;if(this.normalizedConfig?.source===t)return this.normalizedConfig.value;let e={...t};return delete e.type,delete e.data,this.normalizedConfig={source:t,value:e},e}appendData(t,e,r=0){this.appendSamples(e,r)}inputLimitMessage(){return this._distribution!=null?this.preparedSummary()??"":H(this,"values")?this.localize("histogramInputLimit"):super.inputLimitMessage()}chartContentChanged(t){return super.chartContentChanged(t)||Ct.some(e=>t.has(e))}};L([_({converter:{fromAttribute:i=>B(i)}})],f.prototype,"bins",void 0),L([_({attribute:!1})],f.prototype,"values",void 0),L([_({attribute:"series-label"})],f.prototype,"seriesLabel",void 0),L([_({attribute:!1})],f.prototype,"distribution",null);var ft=new WeakMap;function gt(i,t){let e=N(i),r=ft.get(i);return(r?.buckets!==e||r.label!==t)&&(r={buckets:e,label:t,labels:Object.freeze(e.map(o=>o.label.replace(/^\u2066|\u2069$/gu,""))),datasets:Object.freeze([Q({label:t,data:Object.freeze(e.map(o=>o.count))})])},ft.set(i,r)),r}Object.defineProperty(f.prototype,"labels",{configurable:!0,enumerable:!0,get(){return gt(this,this.seriesLabel||this.localize("histogramFrequency")).labels},set(i){}}),Object.defineProperty(f.prototype,"datasets",{configurable:!0,enumerable:!0,get(){return gt(this,this.seriesLabel||this.localize("histogramFrequency")).datasets},set(i){}}),at(f,"bar");export{f as LyraHistogram,N as binnedBuckets};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as H}from"./chunk-TO3Y7UQS.js";import{a as q}from"./chunk-D3C3UDTS.js";import"./chunk-PZ2KUPDO.js";import"./chunk-YVOGDIOW.js";import{a as T}from"./chunk-32UCFJLK.js";import"./chunk-V2B4ISQF.js";import"./chunk-3AZXZUWI.js";import{a as F}from"./chunk-EN3HJQOP.js";import{a as k}from"./chunk-6Z42KKFI.js";import{a as R,c as z}from"./chunk-OQNEE7LX.js";import{a as x,b as U}from"./chunk-2RJSNPGI.js";import{a as D}from"./chunk-COHDKIWJ.js";import{b as E,c as P}from"./chunk-MRVJ5TYC.js";import{K as C,O as Y,S as V,U as $,W as M,wa as N,xa as J}from"./chunk-FH3ZM5XY.js";import{f as c}from"./chunk-OUV7KSOP.js";import{a as _}from"./chunk-O4NFRBN5.js";import"./chunk-RDSMOXJD.js";import"./chunk-U6HFL7A7.js";import"./chunk-NF6FYAQW.js";import{a as A}from"./chunk-J24TYMEI.js";import"./chunk-4QG5Y44P.js";import"./chunk-2XUGZVLQ.js";import"./chunk-S5RHQP2W.js";import"./chunk-64UM73EQ.js";import{c as b}from"./chunk-GT6NF7FZ.js";import"./chunk-7YMQGPNL.js";import"./chunk-IJ2AN2PR.js";import{a as L}from"./chunk-SMBJ5WYS.js";import{a as u}from"./chunk-2WXXKPUW.js";import{G as v,a as f,b as w,c as g,nb as S}from"./chunk-IFDV4HWR.js";import{e as y}from"./chunk-REOFE46N.js";import"./chunk-IRH2OYBM.js";import"./chunk-BDETGDBF.js";import{g as p}from"./chunk-32IK33EM.js";import{a as o,b as s,c as h,z as l}from"./chunk-JTGCA7JE.js";import"./chunk-4VZYY6B7.js";import"./chunk-CR23WLJQ.js";import"./chunk-RDTKEL46.js";import"./chunk-5NRIHGYU.js";import{b as m,e as i,i as n}from"./chunk-CN2FTU25.js";import"./chunk-ZVB4ZXSV.js";import"./chunk-MM5JS5OO.js";import"./chunk-RNCRO7PW.js";import"./chunk-UDRXM6B3.js";import"./chunk-KLAMX2AK.js";import"./chunk-ZD6IWVN5.js";import"./chunk-AVZPWRZU.js";import"./chunk-GMPUTEBU.js";import"./chunk-3CLMBMQL.js";import"./chunk-OP7ARFKR.js";import"./chunk-5PNMEGOF.js";import"./chunk-Z7WGANHK.js";var B=m` :host{${y}}[part=body]{min-block-size:var(--lr-size-10rem);max-block-size:var(--lr-html-viewer-max-height,none);box-sizing:border-box;overflow:auto;padding:var(--lr-space-m)}[part=html]{display:block;max-inline-size:100%;contain:paint;overflow-x:auto;overflow-wrap:anywhere}[part=html] img{max-inline-size:100%;block-size:auto}.empty-note,[part=error]{margin:0;color:var(--lr-color-text-quiet);font-size:var(--lr-font-size-md-sm);text-align:center}[part=error]{color:var(--lr-color-danger)}`;var d=class extends l{},r=class extends T(d){constructor(){super(...arguments),this.src="",this.name="",this.maxHeight="",this.fetchState={kind:"idle"},this.transport=new z(this,{load:(e,t)=>this.readDocument(e,t),onError:e=>{let t=e instanceof R?new c(this.localize("documentPreviewUrlNotAllowed"),a=>a("documentPreviewUrlNotAllowed")):e;this.fetchState={kind:"error",message:k(t,this.localize.bind(this))},this.emit("lr-render-error",{error:t})}}),this.announcements=new D(this),this.detached=new A(()=>{this.fetchState={kind:"idle"}})}static{this.defaultStrings={...super.defaultStrings,anchorJumped:f,anchorJumpedToPage:w,anchorNotFound:g,documentPreviewEmpty:v,documentPreviewFailedToLoad:C,documentPreviewResourceTooLarge:Y,documentPreviewTypeDocument:V,documentPreviewUrlNotAllowed:$,documentViewerMissingSanitizer:M,htmlViewerLabel:N,loadingDocument:J,scrollerLabel:S}}static{this.styles=[l.styles,B,F,p,x]}syncScrollRegion(){this.releaseScrollRegion?.();let e=this.renderRoot.querySelector('[part="body"]');this.releaseScrollRegion=e&&this.isConnected?L(e,this.localize("scrollerLabel")):void 0}updated(e){super.updated(e),this.syncScrollRegion(),this.announcements.transition("load",this.fetchState.kind,this.fetchState.kind==="error"?this.fetchState.message():this.localize("loadingDocument")),e.has("src")&&this.scheduleAfterUpdate(()=>{this.load()}),this.isConnected&&e.has("fetchState")&&this.fetchState.kind==="loaded"&&this.emit("lr-load",null)}connectedCallback(){super.connectedCallback(),this.hasUpdated&&this.syncScrollRegion(),this.announcements.connect(),!(this.detached.cancel()&&this.fetchState.kind!=="loading")&&this.hasUpdated&&this.src&&this.scheduleAfterUpdate(()=>{this.load()})}disconnectedCallback(){this.announcements.disconnect(),this.releaseScrollRegion?.(),this.releaseScrollRegion=void 0,super.disconnectedCallback(),this.detached.schedule()}adoptedCallback(){super.adoptedCallback(),this.detached.flush(),this.announcements.adopted()}load(){return this.fetchState=this.src?{kind:"loading"}:{kind:"idle"},this.transport.begin(this.src)}async readDocument(e,t){let a=await H();if(this.transport.isStale(t))return;if(!a)throw new c(this.localize("documentViewerMissingSanitizer"),I=>I("documentViewerMissingSanitizer"));let j=await this.transport.readText(e);if(this.transport.isStale(t))return;let G=q(a,j,this.ownerDocument,"passive-document");this.transport.isStale(t)||(this.fetchState={kind:"loaded",markup:G})}renderBody(){let e=P(this,this.fetchState.kind==="loaded"?"document":null);switch(this.fetchState.kind){case"loaded":return i`<div part="html" role=${e??n} aria-label=${E(this,u(this.name)??this.localize("htmlViewerLabel"))??n}>${this.fetchState.markup}</div>`;case"loading":return U(this.localize("loadingDocument"));case"error":return i`<div part="error">${this.fetchState.message()}</div>`;default:return i`<p class="empty-note">${this.localize("documentPreviewEmpty",void 0,{type:this.localize("documentPreviewTypeDocument")})}</p>`}}textContentRoot(){return this.fetchState.kind==="loaded"?super.textContentRoot():null}render(){let e=b(this.maxHeight);return i`<div part="base" aria-busy=${this.fetchState.kind==="loading"?"true":"false"} style=${e?_({"--lr-html-viewer-max-height":e}):n}><div part="body">${this.renderBody()}</div>${this.renderAnchorLiveRegion()}</div>`}};o([s()],r.prototype,"src",void 0),o([s()],r.prototype,"name",void 0),o([s({attribute:"max-height"})],r.prototype,"maxHeight",void 0),o([h()],r.prototype,"fetchState",void 0);export{r as LyraHtmlViewer};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-DA4DTS26.js";import"./chunk-Q6TJSRDF.js";import"./chunk-5LD7TNKP.js";import"./chunk-2MJHMCYK.js";import"./chunk-4QG5Y44P.js";import"./chunk-YRWS5F6Q.js";import"./chunk-VSNJ77YA.js";import"./chunk-K3TGAVRE.js";import"./chunk-UTM46NXE.js";import"./chunk-WK4ZGZU2.js";import"./chunk-PJ72NB2H.js";import"./chunk-2WXXKPUW.js";import"./chunk-JNB4S2FJ.js";import"./chunk-2CH7YZRL.js";import"./chunk-32IK33EM.js";import"./chunk-JTGCA7JE.js";import"./chunk-4VZYY6B7.js";import"./chunk-CR23WLJQ.js";import"./chunk-RDTKEL46.js";import"./chunk-5NRIHGYU.js";import"./chunk-CN2FTU25.js";import"./chunk-RNCRO7PW.js";import"./chunk-UDRXM6B3.js";import"./chunk-KLAMX2AK.js";import"./chunk-ZD6IWVN5.js";import"./chunk-AVZPWRZU.js";import"./chunk-GMPUTEBU.js";import"./chunk-3CLMBMQL.js";import"./chunk-OP7ARFKR.js";import"./chunk-5PNMEGOF.js";import"./chunk-Z7WGANHK.js";export{a as LyraIconButton};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{a as Y}from"./chunk-BY7GVILL.js";import{a as F,b as $,c as q,d as H}from"./chunk-Q6TJSRDF.js";import{m as D,n as U,o as j}from"./chunk-VRBQVFBZ.js";import{a as O}from"./chunk-TO3Y7UQS.js";import{a as T}from"./chunk-D3C3UDTS.js";import"./chunk-PZ2KUPDO.js";import"./chunk-YVOGDIOW.js";import{g as R,h as g,j as x,m as M}from"./chunk-OUV7KSOP.js";import{b as d}from"./chunk-4QG5Y44P.js";import{a as A,b as E}from"./chunk-EHOJ7YCN.js";import{a as L}from"./chunk-2WXXKPUW.js";import{f as N}from"./chunk-3HGKUVDX.js";import{g as _}from"./chunk-32IK33EM.js";import{a as n,b as l,c as k,d as v,z as y}from"./chunk-JTGCA7JE.js";import"./chunk-4VZYY6B7.js";import"./chunk-CR23WLJQ.js";import"./chunk-RDTKEL46.js";import"./chunk-5NRIHGYU.js";import{b as w,e as h,f as S,i as u}from"./chunk-CN2FTU25.js";import{b as I}from"./chunk-ZVB4ZXSV.js";import"./chunk-MM5JS5OO.js";import{m as C}from"./chunk-RNCRO7PW.js";import"./chunk-UDRXM6B3.js";import"./chunk-KLAMX2AK.js";import"./chunk-ZD6IWVN5.js";import{a as z}from"./chunk-AVZPWRZU.js";import"./chunk-GMPUTEBU.js";import"./chunk-3CLMBMQL.js";import"./chunk-OP7ARFKR.js";import"./chunk-5PNMEGOF.js";import"./chunk-Z7WGANHK.js";var Q=new Map,V=new Set;var B="\0defaults",ee="",te="";function P(){return ee}function G(){return te}function b(i){return Q.get(i)}function X(i){return V.add(i),()=>{V.delete(i)}}function W(i,e){let t=d(i);if(!t)return null;let r,a;try{a=new URL(e),r=new URL(t,a)}catch{return null}return r.protocol!=="http:"&&r.protocol!=="https:"||r.origin!==a.origin||r.hash.length<2?null:r.href}var Z=1024*1024,re=128,ae="passive-svg-v1",ie=new Y(re),K=new WeakMap,oe=1;function ne(i){i.querySelectorAll("style, foreignObject").forEach(e=>e.remove());for(let e of[i,...i.querySelectorAll("*")])for(let t of[...e.attributes]){let r=t.localName.toLowerCase(),a=t.value;if(r==="style"||r==="src"||r==="poster"){e.removeAttributeNode(t);continue}if(r==="href"){(e.localName.toLowerCase()!=="use"||!F(a))&&e.removeAttributeNode(t);continue}H(r,a)&&e.removeAttributeNode(t)}}var f=class extends Error{constructor(e,t){super(`Icon resource failed: ${e}`),this.reason=e,this.cause=t,this.name="IconResourceError"}};function se(i){let e=i.view.document,t=K.get(e);return t===void 0&&(t=oe++,K.set(e,t)),JSON.stringify([t,i.url,Z,ae])}function J(i){return ie.acquire(se(i),async e=>{let t;try{t=await i.view.fetch(i.url,e?{signal:e}:void 0)}catch(s){throw g(s)?s:new f("load",s)}if(!t.ok)throw new f("load",new Error(`${t.status} ${t.statusText}`));let r;try{r=await M(t,Z)}catch(s){throw g(s)?s:new f(x(s)?"too-large":"load",s)}if(r.trim()==="")return null;let a=await O();if(!a)throw new f("sanitizer");let m=T(a,r,document,"passive-svg").firstElementChild;if(!(m instanceof SVGSVGElement))throw new f("load",new Error("response is not an SVG document"));return ne(m),m})}var le=w`:host{inline-size:var(--lr-icon-size,calc(var(--lr-size-1em) * 1.25));block-size:var(--lr-icon-size,var(--lr-size-1em));color:inherit;justify-content:center;align-items:center;display:inline-flex}svg{block-size:100%;inline-size:auto;max-inline-size:100%;display:block;overflow:visible}svg[data-lr-stroked]{stroke-width:var(--lr-icon-stroke-width,var(--lr-theme-icon-stroke-width,1.75))}.semantic-owner{justify-content:center;align-items:center;block-size:100%;inline-size:100%;display:inline-flex}slot{display:none}:host(:where([canvas=auto])){inline-size:auto}:host(:where([canvas=square])){inline-size:var(--lr-icon-size,calc(var(--lr-size-1em) * 1.25));block-size:var(--lr-icon-size,calc(var(--lr-size-1em) * 1.25))}:host(:where([canvas=roomy])){inline-size:var(--lr-icon-size,var(--lr-size-1-5em));block-size:var(--lr-icon-size,var(--lr-size-1-5em))}:host(:where([rotate],[flip])){transform:rotate(var(--lr-icon-rotate,0deg)) scale(var(--lr-icon-flip-x,var(--_lr-icon-flip-x,1)),var(--lr-icon-flip-y,var(--_lr-icon-flip-y,1)))}:host(:where([flip=x],[flip=horizontal])){--_lr-icon-flip-x:-1}:host(:where([flip=y],[flip=vertical])){--_lr-icon-flip-y:-1}:host(:where([flip=both])){--_lr-icon-flip-x:-1;--_lr-icon-flip-y:-1}.fa-primary{fill:var(--primary-color,currentColor);opacity:var(--primary-opacity,1)}.fa-secondary{fill:var(--secondary-color,currentColor);opacity:var(--secondary-opacity,.4)}:host(:where([swap-opacity])) .fa-primary{opacity:var(--secondary-opacity,.4)}:host(:where([swap-opacity])) .fa-secondary{opacity:var(--primary-opacity,1)}:host(:where([animation])) svg{animation-delay:var(--animation-delay,0s);animation-direction:var(--animation-direction,normal);animation-duration:var(--_lr-motion-duration,var(--animation-duration,var(--lr-duration-icon)));animation-iteration-count:var(--animation-iteration-count,infinite);animation-timing-function:var(--animation-timing,var(--lr-easing-emphasized));transform-origin:50%}:host(:where([animation=beat])) svg{animation-name:var(--_lr-motion-animation,lr-icon-beat)}:host(:where([animation=fade])) svg{animation-name:var(--_lr-motion-animation,lr-icon-fade)}:host(:where([animation=beat-fade])) svg{animation-name:var(--_lr-motion-animation,lr-icon-beat-fade)}:host(:where([animation=bounce])) svg{animation-name:var(--_lr-motion-animation,lr-icon-bounce)}:host(:where([animation=flip])) svg{animation-name:var(--_lr-motion-animation,lr-icon-flip)}:host(:where([animation=flip-360])) svg{animation-name:var(--_lr-motion-animation,lr-icon-flip-360)}:host(:where([animation=shake])) svg{animation-name:var(--_lr-motion-animation,lr-icon-shake)}:host(:where([animation=spin])),:host(:where([animation=spin-reverse])),:host(:where([animation=spin-snap])),:host(:where([animation=spin-snap-4])),:host(:where([animation=spin-snap-8])){perspective:calc(var(--lr-size-1em) * 8)}:host(:where([animation=spin])) svg,:host(:where([animation=spin-reverse])) svg,:host(:where([animation=spin-snap])) svg,:host(:where([animation=spin-snap-4])) svg,:host(:where([animation=spin-snap-8])) svg{animation-name:var(--_lr-motion-animation,lr-icon-spin)}:host(:where([animation=spin-reverse])) svg{animation-direction:var(--animation-direction,reverse)}:host(:where([animation=spin-snap])) svg{animation-timing-function:var(--animation-timing,steps(6))}:host(:where([animation=spin-snap-4])) svg{animation-timing-function:var(--animation-timing,steps(4))}:host(:where([animation=spin-snap-8])) svg{animation-timing-function:var(--animation-timing,steps(8))}:host(:where([animation=spin-pulse])) svg{animation-name:var(--_lr-motion-animation,lr-icon-spin-pulse)}:host(:where([animation=buzz])) svg{animation-name:var(--_lr-motion-animation,lr-icon-buzz)}:host(:where([animation=wag])) svg{animation-name:var(--_lr-motion-animation,lr-icon-wag)}:host(:where([animation=float])) svg{animation-name:var(--_lr-motion-animation,lr-icon-float)}:host(:where([animation=swing])) svg{animation-name:var(--_lr-motion-animation,lr-icon-swing)}:host(:where([animation=jello])) svg{animation-name:var(--_lr-motion-animation,lr-icon-jello)}@keyframes lr-icon-beat{50%{transform:scale(var(--beat-scale,1.25))}}@keyframes lr-icon-fade{50%{opacity:var(--fade-opacity,.4)}}@keyframes lr-icon-beat-fade{50%{opacity:var(--beat-fade-opacity,.4);transform:scale(var(--beat-fade-scale,1.25))}}@keyframes lr-icon-bounce{0%,to{transform:translateY(var(--bounce-anticipation,0)) scale(var(--bounce-start-scale-x,1),var(--bounce-start-scale-y,1))}45%{transform:translateY(var(--bounce-height,calc(var(--lr-size-0-5em) * -1))) scale(var(--bounce-jump-scale-x,.95),var(--bounce-jump-scale-y,1.05))}70%{transform:translateY(var(--bounce-rebound,calc(var(--lr-size-1em) * -.1))) scale(var(--bounce-land-scale-x,1.08),var(--bounce-land-scale-y,.92))}}@keyframes lr-icon-flip{50%{transform:scale(var(--flip-anticipation-scale,.9)) rotate3d(var(--flip-x,0),var(--flip-y,1),var(--flip-z,0),calc(var(--flip-angle,180deg) + var(--flip-overshoot,0deg)))}}@keyframes lr-icon-flip-360{0%{transform:scale(var(--flip-anticipation-scale,.9))}to{transform:rotate3d(var(--flip-x,0),var(--flip-y,1),var(--flip-z,0),calc(var(--flip-angle,360deg) + var(--flip-overshoot,0deg)))}}@keyframes lr-icon-shake{20%,60%{transform:translateX(calc(var(--lr-size-1em) * -.12))}40%,80%{transform:translateX(calc(var(--lr-size-1em) * .12))}}@keyframes lr-icon-spin{to{transform:rotate(1turn)}}@keyframes lr-icon-spin-pulse{50%{opacity:var(--fade-opacity,.4);transform:rotate(.5turn) scale(var(--beat-scale,1.1))}to{transform:rotate(1turn)}}@keyframes lr-icon-buzz{25%{transform:translateX(calc(var(--buzz-distance,calc(var(--lr-size-1em) * .12)) * -1)) rotate(-4deg)}75%{transform:translateX(var(--buzz-distance,calc(var(--lr-size-1em) * .12))) rotate(4deg)}}@keyframes lr-icon-wag{25%{transform:rotate(calc(var(--wag-angle,12deg) * -1))}75%{transform:rotate(var(--wag-angle,12deg))}}@keyframes lr-icon-swing{20%{transform:rotate(var(--swing-angle,15deg))}40%{transform:rotate(calc(var(--swing-angle,15deg) * -.7))}60%{transform:rotate(calc(var(--swing-angle,15deg) * .45))}80%{transform:rotate(calc(var(--swing-angle,15deg) * -.2))}}@keyframes lr-icon-jello{30%{transform:scale(var(--jello-scale-x,1.18),var(--jello-scale-y,.82))}55%{transform:scale(calc(2 - var(--jello-scale-x,1.18)),calc(2 - var(--jello-scale-y,.82)))}75%{transform:scale(calc((var(--jello-scale-x,1.18) + 2) / 3),calc((var(--jello-scale-y,.82) + 2) / 3))}}@keyframes lr-icon-float{0%,to{transform:translateX(0) translateY(0) rotate(0deg) scale(var(--float-squash-x,1.04),var(--float-squash-y,.96))}50%{transform:translateX(var(--float-drift,0)) translateY(var(--float-height,calc(var(--lr-size-0-5em) * -1))) rotate(var(--float-tilt,4deg)) scale(var(--float-stretch-x,.96),var(--float-stretch-y,1.04))}}@media (prefers-reduced-motion:reduce){:host(:where([animation])) svg{animation:none!important}}`,ce={add:"M12 5v14M5 12h14",check:"m5 12 4 4L19 6",close:"m6 6 12 12M18 6 6 18",refresh:E,search:A,menu:"M4 6h16M4 12h16M4 18h16","chevron-left":"m15 18-6-6 6-6","chevron-right":"m9 18 6-6-6-6","chevron-down":"m6 9 6 6 6-6",calendar:"M6 3v3M18 3v3M4 9h16M5 5h14a1 1 0 0 1 1 1v13H4V6a1 1 0 0 1 1-1Z",command:"M6 6h4v4H6zM14 6h4v4h-4zM6 14h4v4H6zM14 14h4v4h-4z",trash:"M4 7h16M10 11v6M14 11v6M6 7l1 14h10l1-14M9 7V4h6v3"},o=class extends y{constructor(){super(...arguments),this._name="",this.path="",this.label="",this.library="default",this.family="",this.variant="",this._src="",this.rotate=0,this.swapOpacity=!1,this.fetchState={kind:"idle"},this.errorAnnouncementSink=new I(this),this.generation=0,this.onCustomSlotChange=()=>{this.syncCustomNodes()}}static{this.defaultStrings={...super.defaultStrings,iconLoadError:D,iconSanitizerMissing:U,iconTooLarge:j}}static{this.styles=[y.styles,le,_]}get name(){return this._name}set name(e){let t=this._name;this._name=e??"",this.requestUpdate("name",t)}get src(){return this._src}set src(e){let t=this._src;this._src=e??"",this.requestUpdate("src",t)}connectedCallback(){super.connectedCallback(),this.stopLibrarySubscription??=X(e=>{(e===this.library||e===B)&&this.load()}),this.hasUpdated&&(queueMicrotask(()=>{this.isConnected&&this.syncCustomNodes()}),this.hasRemoteSource()&&this.scheduleAfterUpdate(()=>{this.load()}))}disconnectedCallback(){this.generation++,this.releaseResourceLease(),this.stopLibrarySubscription?.(),this.stopLibrarySubscription=void 0,this.customContentObserver?.disconnect(),this.customContentObserver=void 0,this.fetchState.kind!=="idle"&&(this.fetchState={kind:"idle"}),super.disconnectedCallback()}updated(e){if(super.updated(e),e.has("rotate")){let t=z(this.rotate??0,0);t?this.style.setProperty("--lr-icon-rotate",`${t}deg`):this.style.removeProperty("--lr-icon-rotate")}this.applyRemoteA11y(),this.syncCustomNodes(),(e.has("src")||e.has("library")||e.has("name")||e.has("family")||e.has("variant"))&&this.scheduleAfterUpdate(()=>{this.load()})}syncCustomNodes(){if(this.fetchState.kind!=="idle")return;let e=this.svgEl;if(!e)return;e.querySelectorAll("[data-lr-custom-copy]").forEach(r=>r.remove()),this.customContentObserver?.disconnect();let t=this.customSlot;if(t){for(let r of t.assignedNodes({flatten:!0})){let a=this.cloneSvgNode(r);a&&(a.setAttribute("data-lr-custom-copy",""),e.append(a))}this.observeCustomContent(t)}}observeCustomContent(e){if(this.customContentObserver?.disconnect(),!this.isConnected)return;let t=this.ownerDocument.defaultView?.MutationObserver;if(t){this.customContentObserver??=new t(()=>{this.isConnected&&this.syncCustomNodes()});for(let r of e.assignedNodes({flatten:!0}))r.nodeType===1&&this.customContentObserver.observe(r,{attributes:!0,childList:!0,subtree:!0})}}cloneSvgNode(e){if(e.nodeType!==1)return null;let t=e;if(t.localName.includes("-")||$(t.localName))return null;let r=this.ownerDocument.createElementNS("http://www.w3.org/2000/svg",t.localName);for(let a of t.attributes)q(a.name,a.value,t.localName)||r.setAttribute(a.name==="xlink:href"?"href":a.name,a.value);for(let a of t.childNodes){let m=this.cloneSvgNode(a);m?r.append(m):a.nodeType===3&&r.append(this.ownerDocument.createTextNode(a.textContent??""))}return r}accessibleLabel(){return this.getAttribute("aria-label")??this.label}hasRemoteSource(){return!!(this.src||this.name&&this.library&&b(this.library))}releaseResourceLease(){this.resourceLease?.release(),this.resourceLease=void 0}async load(){let e=++this.generation;this.releaseResourceLease();let t=this.name&&this.library?b(this.library):void 0;if(!t&&!this.src){this.fetchState.kind!=="idle"&&(this.fetchState={kind:"idle"});return}this.errorAnnouncementSink.current("assertive"),this.fetchState={kind:"loading"};let r=this.src;try{if(t){if(r=await t.resolver(this.name,this.family||P(),this.variant||G()),!this.isConnected||e!==this.generation)return;if(typeof r!="string")throw new TypeError("icon resolver did not return a URL")}}catch(c){await this.fail("load",e,this.name,c);return}if(!r){this.isConnected&&e===this.generation&&(this.fetchState={kind:"idle"});return}if(t?.spriteSheet){let c=W(r,this.ownerDocument.baseURI);if(!c){await this.fail("load",e,r,new Error("icon sprite URL is not allowed"));return}if(this.fetchState={kind:"sprite",href:c},await this.updateComplete,!this.isConnected||e!==this.generation)return;this.emit("lr-load",{src:c});return}let a=d(r);if(!a){await this.fail("load",e,r,new Error("icon URL is not allowed"));return}let m=R(this,a);if(!m){await this.fail("load",e,a,new Error("icon URL is not available"));return}let s;try{s=J(m),this.resourceLease=s;let c=await s.promise;if(!this.isConnected||e!==this.generation)return;if(!c){if(this.fetchState={kind:"empty"},await this.updateComplete,!this.isConnected||e!==this.generation)return;this.emit("lr-load",{src:a});return}let p=this.ownerDocument.importNode(c,!0);if(t?.mutator?.(p),!this.isConnected||e!==this.generation||(this.fetchState={kind:"loaded",node:p},await this.updateComplete,!this.isConnected||e!==this.generation))return;this.emit("lr-load",{src:a})}catch(c){let p=c instanceof f?c.reason:"load";await this.fail(p,e,a,c)}finally{this.resourceLease===s&&(this.resourceLease=void 0),s?.release()}}async fail(e,t,r,a){!this.isConnected||t!==this.generation||(this.fetchState={kind:"error",reason:e},await this.updateComplete,!(!this.isConnected||t!==this.generation)&&(C(this)&&L(this.accessibleLabel())!==void 0&&this.errorAnnouncementSink.announceAssertive(this.errorMessage(e)),this.emit("lr-error",{src:r,error:a})))}errorMessage(e){return e==="sanitizer"?this.localize("iconSanitizerMissing"):e==="too-large"?this.localize("iconTooLarge"):this.localize("iconLoadError")}applyRemoteA11y(){let e=this.fetchState;if(e.kind==="loaded"){e.node.setAttribute("part","svg"),e.node.setAttribute("focusable","false"),e.node.setAttribute("aria-hidden","true"),e.node.removeAttribute("aria-label");for(let t of e.node.querySelectorAll("use")){let r=new Set((t.getAttribute("part")??"").split(/\s+/).filter(Boolean));r.add("use"),t.setAttribute("part",[...r].join(" "))}}}renderBuiltIn(){let e=this.path||ce[this.name]||"";return h`<svg part="svg" data-lr-stroked viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" >
|
|
2
|
+
${e?S`<path d=${e}></path>`:u}</svg
|
|
3
|
+
>${e?u:h`<slot @slotchange=${this.onCustomSlotChange}></slot>`}`}render(){let e=this.fetchState,t=this.accessibleLabel(),r;switch(e.kind){case"loaded":r=h`${e.node}`;break;case"sprite":r=h`<svg part="svg" aria-hidden="true" focusable="false"><use part="use" href=${e.href}></use></svg>`;break;case"error":r=h`<span part="error" class="sr-only" aria-hidden="true">${this.errorMessage(e.reason)}</span>`;break;case"empty":r=h`<span part="empty" aria-hidden="true"></span>`;break;case"loading":r=h``;break;default:r=this.renderBuiltIn();break}return h`<span class="semantic-owner" role=${t?"img":u} aria-label=${t||u} aria-hidden=${t?"false":"true"} >${r}</span
|
|
4
|
+
>`}};n([l({reflect:!0,useDefault:!0})],o.prototype,"name",null),n([l()],o.prototype,"path",void 0),n([l()],o.prototype,"label",void 0),n([l({reflect:!0})],o.prototype,"library",void 0),n([l({reflect:!0,useDefault:!0})],o.prototype,"family",void 0),n([l({reflect:!0,useDefault:!0})],o.prototype,"variant",void 0),n([l()],o.prototype,"src",null),n([l({converter:N(0),reflect:!0,useDefault:!0})],o.prototype,"rotate",void 0),n([l({reflect:!0})],o.prototype,"flip",void 0),n([l({reflect:!0})],o.prototype,"canvas",void 0),n([l({type:Boolean,reflect:!0,attribute:"swap-opacity"})],o.prototype,"swapOpacity",void 0),n([l({reflect:!0})],o.prototype,"animation",void 0),n([k()],o.prototype,"fetchState",void 0),n([v("svg")],o.prototype,"svgEl",void 0),n([v("slot")],o.prototype,"customSlot",void 0);export{o as LyraIcon};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import{a as x}from"./chunk-PQJCLAD7.js";import{d as E}from"./chunk-LG433UEO.js";import{aa as $}from"./chunk-BFMOZL5O.js";import{a as D}from"./chunk-4HBBNYPU.js";import{a as l}from"./chunk-DMTQAWEJ.js";import{a}from"./chunk-K3TGAVRE.js";import{a as h}from"./chunk-5ES6C332.js";import{a as g}from"./chunk-IJ2AN2PR.js";import"./chunk-WK4ZGZU2.js";import{b as m}from"./chunk-C6BTEIPF.js";import"./chunk-EHOJ7YCN.js";import"./chunk-FY3YWTCF.js";import{e as f}from"./chunk-PJ72NB2H.js";import{f as k}from"./chunk-3HGKUVDX.js";import{c as w}from"./chunk-JNB4S2FJ.js";import{D as P,c as y,v as z}from"./chunk-2CH7YZRL.js";import"./chunk-32IK33EM.js";import{a as e,b as o,d as v,z as c}from"./chunk-JTGCA7JE.js";import"./chunk-4VZYY6B7.js";import"./chunk-CR23WLJQ.js";import"./chunk-RDTKEL46.js";import"./chunk-5NRIHGYU.js";import{b as u,e as b}from"./chunk-CN2FTU25.js";import"./chunk-RNCRO7PW.js";import"./chunk-UDRXM6B3.js";import"./chunk-KLAMX2AK.js";import"./chunk-ZD6IWVN5.js";import{b as s,q as p}from"./chunk-AVZPWRZU.js";import"./chunk-GMPUTEBU.js";import"./chunk-3CLMBMQL.js";import"./chunk-OP7ARFKR.js";import"./chunk-5PNMEGOF.js";import"./chunk-Z7WGANHK.js";var _=u` :host{display:block;min-inline-size:0;--_lr-image-comparer-divider-width:var( --divider-width, var(--lr-size-1px) );--_lr-image-comparer-handle-size:var( --handle-size, var(--lr-icon-button-size) )}[part~=base]{position:relative;isolation:isolate;min-inline-size:0;block-size:100%;min-block-size:var(--lr-icon-button-size);overflow:hidden;background:var(--lr-color-surface-raised)}[part=before],[part=after]{display:block;min-inline-size:0}[part=before]{position:absolute;inset:0;z-index:var(--lr-layer-content);clip-path:inset(0 calc(100% - var(--lr-comparer-position,50%)) 0 0)}[part~=base][data-orientation=vertical] [part=before]{clip-path:inset(0 0 calc(100% - var(--lr-comparer-position,50%)) 0)}:host(:dir(rtl)) [part=before]{clip-path:inset(0 0 0 calc(100% - var(--lr-comparer-position,50%)))}:host(:dir(rtl)) [part~=base][data-orientation=vertical] [part=before]{clip-path:inset(0 0 calc(100% - var(--lr-comparer-position,50%)) 0)}[part=before] ::slotted(*),[part=after] ::slotted(*){display:block;box-sizing:border-box;min-inline-size:0;inline-size:100%;max-inline-size:100%;overflow-wrap:anywhere}[part=before] ::slotted([hidden]:not([hidden="until-found" i])),[part=after] ::slotted([hidden]:not([hidden="until-found" i])){display:none}[part=divider]{position:absolute;z-index:var(--lr-layer-popover);inset-block:0;inset-inline-start:var(--lr-comparer-position,50%);inline-size:var(--lr-image-comparer-divider-width,var(--_lr-image-comparer-divider-width));background:var(--lr-image-comparer-divider-color,var(--lr-color-surface));box-shadow:var(--lr-shadow-s);pointer-events:none;${P}}[part~=base][data-orientation=vertical] [part=divider]{inset-block:auto;inset-inline:0;inset-block-start:var(--lr-comparer-position,50%);inline-size:auto;block-size:var(--lr-image-comparer-divider-width,var(--_lr-image-comparer-divider-width))}[part=handle]{position:absolute;z-index:var(--lr-layer-popover);inset:0}[part=input]{position:absolute;inset:0;inline-size:100%;block-size:100%;margin:0;opacity:0;cursor:ew-resize}[part~=base][data-orientation=vertical] [part=input]{writing-mode:vertical-lr;direction:ltr;cursor:ns-resize}.handle-visual{position:absolute;inset-block-start:50%;inset-inline-start:var(--lr-comparer-position,50%);display:inline-flex;align-items:center;justify-content:center;inline-size:var(--lr-image-comparer-handle-size,var(--_lr-image-comparer-handle-size));block-size:var(--lr-image-comparer-handle-size,var(--_lr-image-comparer-handle-size));border:var(--lr-border-width-thin) solid var(--lr-image-comparer-handle-border-color,var(--lr-color-border));border-radius:var(--lr-radius-pill);background:var(--lr-image-comparer-handle-bg,var(--lr-color-surface));color:var(--lr-image-comparer-handle-color,var(--lr-color-text));box-shadow:var(--lr-shadow-s);pointer-events:none;transform:translate(-50%,-50%)}:host(:dir(rtl)) .handle-visual{transform:translate(50%,-50%)}[part~=base][data-orientation=vertical] .handle-visual{inset-block-start:var(--lr-comparer-position,50%);inset-inline-start:50%}.handle-fallback{display:inline-flex;flex-direction:row;align-items:center;justify-content:center;direction:ltr}.handle-fallback svg{inline-size:var(--lr-size-0-75rem);block-size:var(--lr-size-0-75rem)}.handle-fallback svg:first-child{transform:rotate(180deg)}[part~=base][data-orientation=vertical] .handle-fallback{transform:rotate(90deg)}[part=input]:hover{opacity:0.01}[part=input]:focus-visible{opacity:0.01;outline:none}[part=handle]:has([part=input]:focus-visible) .handle-visual{${y}}[part~=base]:has([part=input]:hover) [part=divider]{background:var(--lr-image-comparer-divider-hover-color,var(--lr-color-brand))}[part~=base]:has([part=input]:active) [part=divider]{background:var(--lr-image-comparer-divider-active-color,${z("var(--lr-image-comparer-divider-hover-color, var(--lr-color-brand))")})}${w('[part="divider"]')} @media (forced-colors:active){[part~=base] [part=divider]{forced-color-adjust:none;background:CanvasText;transition:none}}`;var A=new Set(["horizontal","vertical"]);function I(d){return A.has(d)?d:"horizontal"}var t=class extends c{constructor(){super(...arguments),this.internals=g(this),this._position=50,this._orientation="horizontal",this.beforeLabel="",this.afterLabel="",this.accessibleLabel=null,this.hasSyncedDescribedByElements=!1,this.keyboardDirty=!1,this.onInput=i=>{let r=i.currentTarget;this.position=Number(r.value);let n=this.position;a(this,i),this.emit("lr-input",{value:n})},this.onChange=i=>{this.position=Number(i.currentTarget.value);let r=this.position;a(this,i),this.emit("lr-change",{value:r})},this.onPointerDown=i=>{!i.isPrimary||i.button!==0||this.activePointerId!==void 0||(this.activePointerId=i.pointerId,h(this.internals,"dragging",!0),D(i.currentTarget,i.pointerId))},this.onPointerEnd=i=>{i&&this.activePointerId!==void 0&&i.pointerId!==this.activePointerId||(this.activePointerId=void 0,h(this.internals,"dragging",!1))},this.onKeyDown=i=>{if(!p(i.key))return;if(i.altKey||i.ctrlKey||i.metaKey||i.shiftKey){x(i);return}let r=this.keyboardPosition(i.key);if(r===void 0)return;i.preventDefault();let n=s(r,this.normalizedPosition,0,100);n!==this.normalizedPosition&&(this.position=n,this.keyboardDirty=!0,l(this,"input",{value:this.position},L=>this.emit("lr-input",L)))},this.onKeyUp=i=>{!p(i.key)||!this.keyboardDirty||(!i.altKey&&!i.ctrlKey&&!i.metaKey&&!i.shiftKey&&i.preventDefault(),this.keyboardDirty=!1,l(this,"change",{value:this.position},r=>this.emit("lr-change",r)))},this.onFocus=i=>{a(this,i)},this.onBlur=i=>{this.onPointerEnd(),this.keyboardDirty&&(this.keyboardDirty=!1,l(this,"change",{value:this.position},r=>this.emit("lr-change",r))),a(this,i)}}static{this.defaultStrings={...super.defaultStrings,imageComparerLabel:$}}static{this.styles=[c.styles,_]}get position(){return this._position}set position(i){let r=this._position;this._position=s(i,50,0,100),this.requestUpdate("position",r)}get orientation(){return this._orientation}set orientation(i){let r=this._orientation;this._orientation=I(i),this.requestUpdate("orientation",r)}get normalizedPosition(){return s(this.position,50,0,100)}keyboardPosition(i){if(i==="Home")return 0;if(i==="End")return 100;if(i==="PageUp")return this.normalizedPosition+10;if(i==="PageDown")return this.normalizedPosition-10;let r=this.effectiveDirection==="rtl";if(this.orientation==="vertical")return i==="ArrowUp"||i==="ArrowLeft"?this.normalizedPosition-1:i==="ArrowDown"||i==="ArrowRight"?this.normalizedPosition+1:void 0;if(i==="ArrowLeft")return this.normalizedPosition+(r?1:-1);if(i==="ArrowRight")return this.normalizedPosition+(r?-1:1);if(i==="ArrowUp")return this.normalizedPosition+1;if(i==="ArrowDown")return this.normalizedPosition-1}disconnectedCallback(){this.onPointerEnd(),this.keyboardDirty=!1,super.disconnectedCallback()}updated(i){super.updated(i);let r=this.getAttribute("aria-describedby");(r||this.hasSyncedDescribedByElements)&&(this.hasSyncedDescribedByElements=f(this,this.handleEl,r))}focus(i){this.deferFocusUntilRendered(i)||this.handleEl?.focus(i)}blur(){this.handleEl?.blur()}click(){this.handleEl?.click()}render(){let i=`${this.normalizedPosition}%`,r=this.accessibleLabel?.trim()?this.accessibleLabel:this.localize("imageComparerLabel");return b`<div part="base comparison" data-orientation=${this.orientation} style="--lr-comparer-position: ${i}" role="group" aria-label=${r} >
|
|
2
|
+
<div part="after"><slot name="after">${this.afterLabel}</slot></div>
|
|
3
|
+
<div part="before"><slot name="before">${this.beforeLabel}</slot></div>
|
|
4
|
+
<div part="divider" aria-hidden="true"></div>
|
|
5
|
+
<div part="handle">
|
|
6
|
+
<input part="input" type="range" min="0" max="100" step="1" .value=${String(this.normalizedPosition)} aria-label=${r} aria-valuetext=${E(this.effectiveLocale,this.normalizedPosition)} aria-orientation=${this.orientation} @input=${this.onInput} @change=${this.onChange} @focus=${this.onFocus} @blur=${this.onBlur} @pointerdown=${this.onPointerDown} @pointerup=${this.onPointerEnd} @pointercancel=${this.onPointerEnd} @lostpointercapture=${this.onPointerEnd} @keydown=${this.onKeyDown} @keyup=${this.onKeyUp} />
|
|
7
|
+
<span class="handle-visual" aria-hidden="true" inert>
|
|
8
|
+
<slot name="handle" ><span class="handle-fallback">${m()}${m()}</span></slot
|
|
9
|
+
>
|
|
10
|
+
</span>
|
|
11
|
+
</div>
|
|
12
|
+
</div>`}};e([o({converter:k(50),reflect:!0})],t.prototype,"position",null),e([o({reflect:!0})],t.prototype,"orientation",null),e([o({attribute:"before-label"})],t.prototype,"beforeLabel",void 0),e([o({attribute:"after-label"})],t.prototype,"afterLabel",void 0),e([o({attribute:"aria-label"})],t.prototype,"accessibleLabel",void 0),e([v('[part="input"]')],t.prototype,"handleEl",void 0);export{t as LyraImageComparer};
|