graview 0.1.71 → 0.1.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/preview/chunk.2IOJNFCR.js +1 -0
- package/dist/preview/{chunk.5EQRIZ6I.js → chunk.2Q4ZXP7P.js} +1 -1
- package/dist/preview/{chunk.MEAUTBVM.js → chunk.2TTKQAWQ.js} +1 -1
- package/dist/preview/{chunk.6BBUTKFC.js → chunk.2YSE3SQN.js} +3 -3
- package/dist/preview/{chunk.CGRX6SDE.js → chunk.2ZPR6FRI.js} +1 -1
- package/dist/preview/chunk.3BE4SHZD.js +1 -0
- package/dist/preview/{chunk.TSZ2S3VG.js → chunk.43HWCHBN.js} +1 -1
- package/dist/preview/{chunk.TQ3MNB6K.js → chunk.45OLF6BK.js} +1 -1
- package/dist/preview/{chunk.ZY3NAJDM.js → chunk.47QWCVZD.js} +1 -1
- package/dist/preview/{chunk.WU6D3SPL.js → chunk.4A7BRBEA.js} +1 -1
- package/dist/preview/chunk.4EPCI6VY.js +1 -0
- package/dist/preview/{chunk.UZKBFI52.js → chunk.4PB5UFUJ.js} +1 -1
- package/dist/preview/{chunk.MKJV3BM5.js → chunk.4TDYDIIM.js} +1 -1
- package/dist/preview/{chunk.HXRHEPPJ.js → chunk.4VX7GPFS.js} +1 -1
- package/dist/preview/{chunk.OUF2QFZL.js → chunk.523X2YEQ.js} +1 -1
- package/dist/preview/{chunk.KBJ3UUER.js → chunk.53GQQETN.js} +1 -1
- package/dist/preview/{chunk.DHO3QZYK.js → chunk.5MKZTHU2.js} +1 -1
- package/dist/preview/{chunk.F5O3HR7X.js → chunk.5ZT4R227.js} +1 -1
- package/dist/preview/{chunk.LHCGC3K6.js → chunk.65SI77M7.js} +1 -1
- package/dist/preview/chunk.6ESAFTWB.js +1 -0
- package/dist/preview/chunk.6GUIFP2A.js +1 -0
- package/dist/preview/{chunk.D6ODKMOV.js → chunk.6GZYKHEN.js} +1 -1
- package/dist/preview/{chunk.F7KVEWFH.js → chunk.6YKKZI4H.js} +1 -1
- package/dist/preview/{chunk.Z2BCOZDZ.js → chunk.73RMM4W7.js} +1 -1
- package/dist/preview/{chunk.4O64QV2Y.js → chunk.7DCBIMOI.js} +1 -1
- package/dist/preview/chunk.7JE3J7H4.js +1 -0
- package/dist/preview/{chunk.RDUGUC7R.js → chunk.7QGDWAHH.js} +1 -1
- package/dist/preview/{chunk.7PWLRRUS.js → chunk.7VCYVCYM.js} +2 -2
- package/dist/preview/{chunk.GFBE4VNT.js → chunk.A4TBVXHQ.js} +1 -1
- package/dist/preview/{chunk.LDWWUKKX.js → chunk.A6LJPXJ3.js} +1 -1
- package/dist/preview/chunk.AAPXF6NP.js +1 -0
- package/dist/preview/{chunk.UJ7RTNT4.js → chunk.APUICV5Z.js} +1 -1
- package/dist/preview/chunk.ASNVH2G4.js +25 -0
- package/dist/preview/{chunk.OKHXXIMN.js → chunk.CJHCUHVN.js} +1 -1
- package/dist/preview/chunk.CUEPNS3Z.js +1 -0
- package/dist/preview/{chunk.H33XWGAY.js → chunk.CUJRWBPX.js} +1 -1
- package/dist/preview/{chunk.4YZ2A6SJ.js → chunk.D5PW6YWF.js} +3 -3
- package/dist/preview/chunk.DCIYOZYP.js +1 -0
- package/dist/preview/{chunk.3CLTABGP.js → chunk.DEBW4FH6.js} +1 -1
- package/dist/preview/{chunk.UQZ2P6KD.js → chunk.DYPSFTRP.js} +1 -1
- package/dist/preview/{chunk.BWMPC7LK.js → chunk.E6QZUT4L.js} +1 -1
- package/dist/preview/{chunk.MEBKTW7H.js → chunk.E7QZZRAQ.js} +1 -1
- package/dist/preview/chunk.EHCMBAZO.js +3 -0
- package/dist/preview/chunk.EXTD5JWD.js +1 -0
- package/dist/preview/{chunk.S2BMI23H.js → chunk.EZF2T3XQ.js} +1 -1
- package/dist/preview/chunk.EZSST3IU.js +1 -0
- package/dist/preview/{chunk.7THS3DLZ.js → chunk.F2BZ4SC4.js} +1 -1
- package/dist/preview/chunk.F2I7ERGM.js +1 -0
- package/dist/preview/{chunk.VUDNQOOX.js → chunk.FCV3NX6L.js} +1 -1
- package/dist/preview/{chunk.QVBP4UZG.js → chunk.FFTBUXKX.js} +2 -2
- package/dist/preview/{chunk.7MDGPTYF.js → chunk.FILBI7XA.js} +1 -1
- package/dist/preview/{chunk.D4F6QX5L.js → chunk.FKSI5522.js} +1 -1
- package/dist/preview/{chunk.QNWGDG2Z.js → chunk.FQ2QUDZS.js} +1 -1
- package/dist/preview/{chunk.O5RPSUXV.js → chunk.G2ZDDO3C.js} +1 -1
- package/dist/preview/{chunk.IPKODEOZ.js → chunk.GAVEWSXU.js} +1 -1
- package/dist/preview/chunk.GH6QX7JR.js +87 -0
- package/dist/preview/chunk.GMHBAS45.js +1 -0
- package/dist/preview/{chunk.OYMN3IFX.js → chunk.GXK5PI7I.js} +1 -1
- package/dist/preview/{chunk.DDSAFU3B.js → chunk.GYP3EF6Z.js} +1 -1
- package/dist/preview/chunk.H2RVMT4Y.js +111 -0
- package/dist/preview/chunk.HCHGKI64.js +1 -0
- package/dist/preview/chunk.HE7SAJKZ.js +1 -0
- package/dist/preview/{chunk.JLNTE5CH.js → chunk.HIIYDKFC.js} +2 -2
- package/dist/preview/chunk.HPDUGKEF.js +32 -0
- package/dist/preview/{chunk.H4BPTMED.js → chunk.HQRPOGTS.js} +1 -1
- package/dist/preview/chunk.HUJLELZ3.js +1 -0
- package/dist/preview/chunk.HVRUHRXR.js +1 -0
- package/dist/preview/{chunk.QJJWAYHB.js → chunk.I46VNAMS.js} +1 -1
- package/dist/preview/{chunk.QK4QZVQG.js → chunk.ID4GOKT6.js} +1 -1
- package/dist/preview/{chunk.64K5ELSQ.js → chunk.IZKCTF2R.js} +1 -1
- package/dist/preview/{chunk.4HU2ILFY.js → chunk.IZUAZ6EV.js} +1 -1
- package/dist/preview/{chunk.5PQV7GFE.js → chunk.J3CUBMUZ.js} +1 -1
- package/dist/preview/{chunk.P43LPXXJ.js → chunk.J4D4BIB4.js} +1 -1
- package/dist/preview/{chunk.NI4OPHTL.js → chunk.J7GH2CGV.js} +1 -1
- package/dist/preview/{chunk.5WCSQFS5.js → chunk.JE4RBRKH.js} +1 -1
- package/dist/preview/{chunk.ARGEGV5T.js → chunk.JJSZLCNU.js} +1 -1
- package/dist/preview/{chunk.WS5ORRGS.js → chunk.JKX4J3KG.js} +1 -1
- package/dist/preview/{chunk.ZONRIOIA.js → chunk.JMXBMLKH.js} +1 -1
- package/dist/preview/{chunk.6ZRVVRDQ.js → chunk.JOB3EKS6.js} +1 -1
- package/dist/preview/{chunk.PQTXM4VY.js → chunk.JP33TNCH.js} +1 -1
- package/dist/preview/{chunk.Z3TK2LJM.js → chunk.K6EN2YR4.js} +1 -1
- package/dist/preview/chunk.K6YKXTKC.js +1 -0
- package/dist/preview/{chunk.VPFUOTY7.js → chunk.KAIZDIRK.js} +1 -1
- package/dist/preview/{chunk.KZUHXOZU.js → chunk.KAQGSLC6.js} +3 -3
- package/dist/preview/{chunk.WGH2P2YL.js → chunk.KFYSKZC4.js} +1 -1
- package/dist/preview/chunk.KHVW6Q3T.js +1 -0
- package/dist/preview/chunk.KMFH26SS.js +1 -0
- package/dist/preview/{chunk.67S2UWBT.js → chunk.L3ST2YKI.js} +1 -1
- package/dist/preview/{chunk.V5JB5UJS.js → chunk.L6BLZJ6K.js} +1 -1
- package/dist/preview/{chunk.MQNW3O67.js → chunk.LG2BQ5LB.js} +1 -1
- package/dist/preview/{chunk.T6KOL7TW.js → chunk.LLYHHG67.js} +1 -1
- package/dist/preview/{chunk.MWWNKM3I.js → chunk.LPWANRBL.js} +1 -1
- package/dist/preview/{chunk.EJC7ACZT.js → chunk.LSS64NAA.js} +1 -1
- package/dist/preview/{chunk.NH3VXTGX.js → chunk.MFNWHXGL.js} +1 -1
- package/dist/preview/{chunk.DG3YNOH3.js → chunk.MNH3WUAB.js} +1 -1
- package/dist/preview/chunk.MQ7AB5N4.js +1 -0
- package/dist/preview/{chunk.KJPLX72N.js → chunk.MU5JK5TK.js} +1 -1
- package/dist/preview/{chunk.L6P55HFW.js → chunk.N5CACZ5F.js} +1 -1
- package/dist/preview/{chunk.W3TJF4EH.js → chunk.NFC2TYA6.js} +1 -1
- package/dist/preview/{chunk.VL3YDD7D.js → chunk.NKRDVOLJ.js} +1 -1
- package/dist/preview/{chunk.SGYZM6ZU.js → chunk.NNK2E2EP.js} +1 -1
- package/dist/preview/{chunk.W332P5T3.js → chunk.NVPKYWMF.js} +1 -1
- package/dist/preview/{chunk.EEGVI266.js → chunk.NWJ7ELHN.js} +1 -1
- package/dist/preview/{chunk.7KX36ENH.js → chunk.O5P6LXHF.js} +1 -1
- package/dist/preview/{chunk.DX7RGK5G.js → chunk.OFK6673S.js} +1 -1
- package/dist/preview/{chunk.HPFEYMGP.js → chunk.OG6FEP3K.js} +1 -1
- package/dist/preview/{chunk.EA2KYBBR.js → chunk.OHGAZ3D5.js} +1 -1
- package/dist/preview/{chunk.SPJ34VHA.js → chunk.ONVYKLRX.js} +1 -1
- package/dist/preview/chunk.OQ3FKUP2.js +1 -0
- package/dist/preview/chunk.OUJV4CYS.js +1 -0
- package/dist/preview/{chunk.CVN2XFMF.js → chunk.OWHH7JDV.js} +1 -1
- package/dist/preview/{chunk.G767NLBH.js → chunk.OXDCGGZV.js} +1 -1
- package/dist/preview/{chunk.VVIQSFM4.js → chunk.P3Z4ZCL3.js} +1 -1
- package/dist/preview/{chunk.FNSVGSZI.js → chunk.PF7XQ5R5.js} +1 -1
- package/dist/preview/chunk.PH547SON.js +1 -0
- package/dist/preview/{chunk.N3MXLORL.js → chunk.PS765ODQ.js} +1 -1
- package/dist/preview/{chunk.NXHEOHRR.js → chunk.PVAYYFT2.js} +1 -1
- package/dist/preview/{chunk.Z22C2JJ4.js → chunk.Q6WOIE5I.js} +1 -1
- package/dist/preview/{chunk.CEJIH3CN.js → chunk.QE257AXE.js} +1 -1
- package/dist/preview/chunk.QKNC5OUC.js +1 -0
- package/dist/preview/{chunk.W6L2VAJG.js → chunk.QMGBAKX6.js} +1 -1
- package/dist/preview/{chunk.DJGZOPAS.js → chunk.QNFX5VHW.js} +1 -1
- package/dist/preview/chunk.QPCDAQTW.js +1 -0
- package/dist/preview/{chunk.Y5WQD6KV.js → chunk.QPTQIGLX.js} +1 -1
- package/dist/preview/{chunk.IXYG65TM.js → chunk.R5YGW5ZX.js} +1 -1
- package/dist/preview/{chunk.7FI75ZVE.js → chunk.RJ6KEVZC.js} +1 -1
- package/dist/preview/{chunk.OVSKPBPS.js → chunk.RKVMRP7B.js} +1 -1
- package/dist/preview/{chunk.7TACFS7Q.js → chunk.S7U2CHHG.js} +1 -1
- package/dist/preview/{chunk.HT35PAHI.js → chunk.SD2UYSV6.js} +2 -2
- package/dist/preview/{chunk.LQ5J6YQW.js → chunk.SI5GGFQR.js} +1 -1
- package/dist/preview/{chunk.U5KJQFAP.js → chunk.SMF5S4DQ.js} +1 -1
- package/dist/preview/{chunk.RO3D2RNP.js → chunk.SNDFIJVX.js} +1 -1
- package/dist/preview/{chunk.CEOQY5KS.js → chunk.STHWM422.js} +2 -2
- package/dist/preview/{chunk.X7U3JMBR.js → chunk.SV75TRCH.js} +1 -1
- package/dist/preview/{chunk.Q6GEPVQ7.js → chunk.SXGPRFA4.js} +1 -1
- package/dist/preview/{chunk.6TBQV3NO.js → chunk.T3RFZ66S.js} +1 -1
- package/dist/preview/{chunk.VGYG2IBZ.js → chunk.T6ISUVUP.js} +1 -1
- package/dist/preview/{chunk.L3MLGFIS.js → chunk.TBLOBXZ2.js} +1 -1
- package/dist/preview/{chunk.MT252WP4.js → chunk.TDWJU6GW.js} +1 -1
- package/dist/preview/{chunk.EPSYX2SF.js → chunk.THLT6NVO.js} +1 -1
- package/dist/preview/{chunk.W5O5F4FT.js → chunk.TQCVEKPH.js} +1 -1
- package/dist/preview/{chunk.4ZEHLUXV.js → chunk.TQF5XCUS.js} +1 -1
- package/dist/preview/{chunk.VICBF3MQ.js → chunk.TWXYI5AP.js} +1 -1
- package/dist/preview/{chunk.LNKY6MT4.js → chunk.UOUQZYVD.js} +1 -1
- package/dist/preview/{chunk.FIUPDGUZ.js → chunk.UPL3D3ZO.js} +1 -1
- package/dist/preview/{chunk.GFOZVQBQ.js → chunk.UXW43HNW.js} +1 -1
- package/dist/preview/{chunk.MM7MLBGB.js → chunk.V4GSVXSV.js} +1 -1
- package/dist/preview/chunk.VCEDSOAK.js +1 -0
- package/dist/preview/{chunk.3RRK6UTN.js → chunk.VE4AQFLW.js} +1 -1
- package/dist/preview/{chunk.QDDDKEBH.js → chunk.VGQDPEB5.js} +1 -1
- package/dist/preview/{chunk.XTHSPLZZ.js → chunk.VMYXBFPE.js} +1 -1
- package/dist/preview/{chunk.EHLV3LND.js → chunk.VNI6HZEF.js} +2 -2
- package/dist/preview/chunk.VQRY2NQ6.js +1 -0
- package/dist/preview/{chunk.MFMC35ET.js → chunk.VUE6ILQV.js} +1 -1
- package/dist/preview/{chunk.BSWR5SGX.js → chunk.W2VSEEKX.js} +1 -1
- package/dist/preview/{chunk.4QMAYVPU.js → chunk.WAPY4RCS.js} +1 -1
- package/dist/preview/chunk.WFRSGGU5.js +1 -0
- package/dist/preview/{chunk.QKRQPUCE.js → chunk.WIVNFOQR.js} +1 -1
- package/dist/preview/chunk.WRIBFLVG.js +1 -0
- package/dist/preview/{chunk.RHIP2UYE.js → chunk.WWD2TS47.js} +1 -1
- package/dist/preview/{chunk.7XGU6KVF.js → chunk.WWFOQDPR.js} +2 -2
- package/dist/preview/{chunk.JNK5WBSU.js → chunk.X5MCAUFX.js} +1 -1
- package/dist/preview/{chunk.G5AF5IXL.js → chunk.XBWFQ54R.js} +1 -1
- package/dist/preview/{chunk.7LPHWJB4.js → chunk.XMBGT6UT.js} +1 -1
- package/dist/preview/{chunk.FOHZPYUV.js → chunk.XP4IVKKR.js} +1 -1
- package/dist/preview/chunk.XYBWBMNU.js +1 -0
- package/dist/preview/{chunk.OPMGQS5J.js → chunk.YC2IDHQX.js} +1 -1
- package/dist/preview/{chunk.JAPTTM6Y.js → chunk.YCYJHPWS.js} +1 -1
- package/dist/preview/{chunk.T6UJEXFL.js → chunk.YF5GCOSZ.js} +1 -1
- package/dist/preview/{chunk.VDFQFLTU.js → chunk.YGGBGHZU.js} +1 -1
- package/dist/preview/{chunk.U6V4KZF5.js → chunk.YRC6PKXP.js} +1 -1
- package/dist/preview/{chunk.EJIQDMLU.js → chunk.YRN67Z5K.js} +1 -1
- package/dist/preview/{chunk.6L6RUOSF.js → chunk.ZDUKVXBI.js} +1 -1
- package/dist/preview/index.html +55 -55
- package/dist/preview/page.js +2 -2
- package/package.json +6 -6
- package/dist/preview/chunk.23DATB5Y.js +0 -1
- package/dist/preview/chunk.2INDKSJI.js +0 -1
- package/dist/preview/chunk.45HUV56Z.js +0 -1
- package/dist/preview/chunk.4LWWXIM4.js +0 -1
- package/dist/preview/chunk.4UDST6IF.js +0 -1
- package/dist/preview/chunk.6A3KTD66.js +0 -1
- package/dist/preview/chunk.6IMRCKB4.js +0 -1
- package/dist/preview/chunk.7ZLCA3WK.js +0 -1
- package/dist/preview/chunk.CPK6CYKN.js +0 -111
- package/dist/preview/chunk.DGYWNM5U.js +0 -1
- package/dist/preview/chunk.EOSN5DWW.js +0 -1
- package/dist/preview/chunk.EUXAIG73.js +0 -1
- package/dist/preview/chunk.EZQK23AB.js +0 -1
- package/dist/preview/chunk.F6MY6WJ4.js +0 -1
- package/dist/preview/chunk.FW6M6GIU.js +0 -32
- package/dist/preview/chunk.GKYJQE5A.js +0 -1
- package/dist/preview/chunk.HLKDYI6J.js +0 -1
- package/dist/preview/chunk.IZDB777E.js +0 -1
- package/dist/preview/chunk.JCKIJSW7.js +0 -25
- package/dist/preview/chunk.JREA2XDG.js +0 -1
- package/dist/preview/chunk.MJ4T6YXI.js +0 -1
- package/dist/preview/chunk.ML4X7VVK.js +0 -1
- package/dist/preview/chunk.NNGG7RCO.js +0 -1
- package/dist/preview/chunk.OOQG2AEF.js +0 -1
- package/dist/preview/chunk.RJ7VSWTA.js +0 -87
- package/dist/preview/chunk.RSMCTI2N.js +0 -1
- package/dist/preview/chunk.TBEKEHFS.js +0 -1
- package/dist/preview/chunk.TO3ZKCA2.js +0 -1
- package/dist/preview/chunk.TTM5GQ2U.js +0 -1
- package/dist/preview/chunk.TUBY6SV3.js +0 -1
- package/dist/preview/chunk.UJPX3BUV.js +0 -1
- package/dist/preview/chunk.X2UYEA7H.js +0 -1
- package/dist/preview/chunk.XSM4OTF4.js +0 -1
- package/dist/preview/chunk.YXVUJ3NB.js +0 -1
- package/dist/preview/chunk.ZGLOXN7O.js +0 -1
- package/dist/preview/chunk.ZLQIGZXO.js +0 -3
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import{b as W,e as Oe,f as Be,g as Fe,h as He,i as Ie,j as ze,k as Ke,l as ne,m as Ve}from"./chunk.FKSI5522.js";import{a as Ge,c as je}from"./chunk.V4GSVXSV.js";import{b as De}from"./chunk.L6BLZJ6K.js";import{a as Me,b as Pe,c as qe,d as j}from"./chunk.VNI6HZEF.js";import"./chunk.THLT6NVO.js";import{k as Te,l as Ee}from"./chunk.HIIYDKFC.js";import"./chunk.GYP3EF6Z.js";import"./chunk.KMFH26SS.js";import"./chunk.YF5GCOSZ.js";import"./chunk.F2BZ4SC4.js";import{e as Ce}from"./chunk.WAPY4RCS.js";import{m as $e}from"./chunk.JJSZLCNU.js";import{a as Re,b as Le}from"./chunk.JKX4J3KG.js";import{h as Ae}from"./chunk.JMXBMLKH.js";import{e as be,f as ke}from"./chunk.PVAYYFT2.js";import"./chunk.HJCQ6I3S.js";import"./chunk.QNFX5VHW.js";import"./chunk.UXW43HNW.js";import"./chunk.LG2BQ5LB.js";import"./chunk.L3ST2YKI.js";import"./chunk.7VCYVCYM.js";import{a as me}from"./chunk.2TTKQAWQ.js";import"./chunk.CJHCUHVN.js";import"./chunk.MFNWHXGL.js";import"./chunk.DCIYOZYP.js";import{a as ye,b as xe,j as Se}from"./chunk.IZKCTF2R.js";import"./chunk.G4JJXA63.js";import{a as fe}from"./chunk.TBY5IR7C.js";import"./chunk.JP33TNCH.js";import"./chunk.BIDL7GQD.js";import"./chunk.O5P6LXHF.js";import"./chunk.VGQDPEB5.js";import"./chunk.WIVNFOQR.js";import"./chunk.ONVYKLRX.js";import"./chunk.XOZU4OFA.js";import"./chunk.53GQQETN.js";import"./chunk.Q5WEOX3Q.js";import"./chunk.7DCBIMOI.js";import"./chunk.GXK5PI7I.js";import"./chunk.DYPSFTRP.js";import"./chunk.WVUJXDXZ.js";import"./chunk.J7GH2CGV.js";import"./chunk.SMF5S4DQ.js";import"./chunk.XP4IVKKR.js";import"./chunk.R5YGW5ZX.js";import"./chunk.QMGBAKX6.js";import"./chunk.PS765ODQ.js";import"./chunk.MIE4TJRW.js";import{s as he}from"./chunk.DEBW4FH6.js";import"./chunk.RD2FSSLV.js";import"./chunk.OWHH7JDV.js";import"./chunk.T3RFZ66S.js";import"./chunk.TDWJU6GW.js";import{l as ue}from"./chunk.P3Z4ZCL3.js";import"./chunk.45OLF6BK.js";import"./chunk.T6ISUVUP.js";import{G as Ne,t as U}from"./chunk.GH6QX7JR.js";import"./chunk.J4D4BIB4.js";import{G as Je,Va as ae,Wa as Y,_ as ge,ba as we,ia as I,j as le,ka as te,l as pe,m as ce,r as J,va as ve}from"./chunk.ASNVH2G4.js";import"./chunk.SDO3U72B.js";import{L as ie,T as oe,Z as C,ma as re,oa as ee,qa as se,sa as de}from"./chunk.ZDUKVXBI.js";import"./chunk.FQLNBIQ5.js";import{b as Z}from"./chunk.AJZBJBMO.js";var o=Z(Je(),1);var e=Z(ge(),1),Ye=560;function Ue(t,n){let[d,g]=(0,o.useState)(0);return(0,o.useEffect)(()=>{let r=t.current;if(!r||!n){g(0);return}let i=0,c=()=>{i=0;let f=r.getBoundingClientRect().bottom;g([...r.querySelectorAll('[data-testid="kind-stop-table"] tbody tr[data-graview-pick]')].filter(S=>S.getBoundingClientRect().top>f-24).length)},b=()=>{i||(i=requestAnimationFrame(c))};c(),r.addEventListener("scroll",b,{passive:!0});let L=typeof ResizeObserver>"u"?null:new ResizeObserver(b);L?.observe(r);let R=r.querySelector('[data-testid="kind-stop-body"]');return R&&L?.observe(R),()=>{r.removeEventListener("scroll",b),L?.disconnect(),i&&cancelAnimationFrame(i)}},[t,n]),d}function Xe({narrow:t,at:n,children:d}){return t?(0,e.jsx)("div",{ref:n,className:"graview-kind-stop-scroll","data-testid":"kind-stop-scroll",children:d}):(0,e.jsx)(e.Fragment,{children:d})}function Ze(t){let[n,d]=(0,o.useState)(!1);return(0,o.useLayoutEffect)(()=>{let g=t.current;if(!g)return;let r=()=>{let c=g.getBoundingClientRect().width;c>0&&d(c<Ye)};if(r(),typeof ResizeObserver>"u")return;let i=new ResizeObserver(r);return i.observe(g),()=>i.disconnect()},[t]),n}var _e="as",et=(t,n)=>`graview:kind-seen:${t}:${n}`;function tt(t){try{return localStorage.getItem(t)}catch{return null}}function at(t,n){try{localStorage.setItem(t,n)}catch{}}var nt=(t,n)=>({...le(ce(t,!1),n),relation:null});function Mt({kind:t,members:n,flagged:d=[],label:g,retired:r=0}){let{store:i,brand:c,principal:b,views:L,view:R}=I(),{go:f}=Y(),S=te(),w=i.schema,$=w.tryDefinition(t),p=g??se(w,t),A=i.today()??ie(),l=n,N=(0,o.useId)(),h=(0,o.useMemo)(()=>Oe(w,t,l,A),[w,t,l,A]),u=R.within?.[_e]==="table"?{shape:"table"}:h,y=Re(R),T=u.shape==="table"&&!y.sort?Be(w,t):void 0,x=T?{...y,sort:T}:y,M=(0,o.useMemo)(()=>new Set(d),[d]),s=(0,o.useMemo)(()=>Ae(l,x,{schema:w,graph:i.graph,flagged:M,today:A}),[l,x,w,i,M,A,S]),k=(0,o.useMemo)(()=>ke(w,be(w,t)),[w,t]),D=L.arrangement?.()?.lists?.[t]?.filters,H=q=>f(Le(R,q)),V=(0,o.useMemo)(()=>({name:c?.name??"app",schema:w,...i.policy?{policy:i.policy}:{}}),[c,w,i]),_=JSON.stringify(Fe(t,u,x)),O=(0,o.useMemo)(()=>{let q=Se(JSON.parse(_),{app:V,sight:xe(V,b)});return ye(q)?void 0:q},[_,V,b]),G=u.shape!=="table"&&O!==void 0,z=(0,o.useRef)(null),P=Ze(z),[K,a]=(0,o.useState)(!1),m=(0,o.useId)(),B=(0,o.useMemo)(()=>fe(i,b),[i,b]),F=(l.length>1||r>0)&&!G?(0,e.jsx)($e,{schema:w,graph:i.graph,kind:t,arrangement:x,onChange:H,offers:k,...D?{filters:D}:{},kept:{shown:s.nodes.length,of:l.length},testId:"kind-arrange",chips:{nodes:l,flagged:M,today:A},...r>0?{past:{count:r,widen:()=>f(Ce(R,!0))}}:{}}):null,E=!!x.query||(x.filter?.length??0)>0,Q=(0,o.useRef)(null),X=Ue(Q,P&&!G);return(0,e.jsxs)("section",{ref:z,"aria-labelledby":N,className:"graview-kind-stop","data-testid":"kind-stop","data-graview-kind-stop":t,"data-graview-shape":u.shape,"data-graview-narrow":P||void 0,children:[(0,e.jsx)("style",{children:ct}),(0,e.jsxs)(Xe,{narrow:P,at:Q,children:[(0,e.jsx)(it,{kind:t,plural:p,count:l.length,headingId:N,description:$?.description,...P?{tools:{open:K,id:m,toggle:()=>a(q=>!q),narrowed:E}}:{}}),P&&K?(0,e.jsxs)("div",{id:m,className:"graview-kind-stop-tools","data-testid":"kind-stop-tools",role:"group","aria-label":`Find, filter and arrange the ${p.toLowerCase()}`,children:[F,l.length>0?(0,e.jsx)(We,{derived:h,shape:u,draft:O,author:!1}):null,(0,e.jsx)(Qe,{kind:t,plural:p})]}):null,(0,e.jsx)(rt,{kind:t,plural:p,members:l,today:A,arrangement:x,onArrange:H,compact:P}),P&&E&&!K?(0,e.jsxs)("p",{className:"graview-kind-stop-narrowed","data-testid":"kind-stop-narrowed",children:[(0,e.jsxs)("span",{className:"graview-kind-stop-quiet-text",children:[C(s.nodes.length)," of ",C(l.length)," shown"]})," ",(0,e.jsx)("button",{type:"button",className:"graview-kind-stop-link",onClick:()=>H({}),children:"Show all"})]}):null,P?null:F,l.length>0&&!P?(0,e.jsx)(We,{derived:h,shape:u,draft:O,author:B}):null,(0,e.jsx)("div",{className:"graview-kind-stop-body","data-testid":"kind-stop-body",children:l.length===0?(0,e.jsx)("p",{className:"graview-kind-stop-empty","data-testid":"kind-stop-empty",children:"Nothing here yet."}):G?(0,e.jsx)(lt,{draft:O,nodes:l}):s.nodes.length===0?(0,e.jsxs)("p",{className:"graview-kind-stop-empty","data-testid":"kind-stop-none-kept",children:["None of the ",C(l.length)," ",p.toLowerCase()," ",x.query?`says \u201C${x.query}\u201D`:"is kept by these filters","."," ",(0,e.jsx)("button",{type:"button",className:"graview-kind-stop-link",onClick:()=>H({}),children:"Show them all"})]}):(0,e.jsx)(pt,{kind:t,nodes:s.nodes,groups:s.grouped?s.groups.map(q=>({key:q.key,label:q.label,nodes:q.nodes})):void 0,flagged:M,plural:p,arrangement:x})})]}),X>0?(0,e.jsxs)("button",{type:"button",className:"graview-kind-stop-below","data-testid":"kind-stop-below","data-graview-below":X,onClick:()=>Q.current?.scrollBy({top:Math.round(Q.current.clientHeight*.8),behavior:"smooth"}),children:[ee(w,t,X).replace(/^(\S+)\s/,"$1 more ")," below ",(0,e.jsx)("span",{"aria-hidden":"true",children:"\u2193"})]}):null]})}function Qe({kind:t,plural:n}){let{setSelection:d,setMenuAt:g}=I();return(0,e.jsx)("button",{type:"button",className:"graview-kind-stop-quiet","data-testid":"kind-stop-acts","aria-haspopup":"menu","aria-label":`What can be done with the ${n.toLowerCase()}`,onClick:r=>{let i=r.currentTarget.getBoundingClientRect();d([J(t)]),g({x:Math.round(i.left),y:Math.round(i.bottom+4),on:J(t)})},children:"Acts\u2026"})}function it({kind:t,plural:n,count:d,headingId:g,description:r,tools:i}){let{store:c}=I(),b=(0,o.useMemo)(()=>({about:[J(t)]}),[t]),{affordances:L}=Te(b),{apply:R,preview:f}=Ee(),S=(0,o.useMemo)(()=>{let v=u=>c.allMutations().find(y=>y.name===u.mutation)?.creates?.includes(t)??!1;return L.find(u=>!u.destructive&&!u.setsAside&&v(u))},[L,c,t]),[w,$]=(0,o.useState)(!1),[p,A]=(0,o.useState)(null),l=(0,o.useRef)(null),N=(0,o.useRef)(null);(0,o.useEffect)(()=>{let v=N.current;if(!v||v.closest('[data-testid="kind-stop"]')?.contains(document.activeElement))return;let u=!1;try{u=document.activeElement instanceof HTMLElement&&document.activeElement!==document.body&&document.activeElement.matches(":focus-visible")}catch{u=!0}u?delete v.dataset.graviewQuietFocus:v.dataset.graviewQuietFocus="",v.focus({preventScroll:!0})},[t]);let h=(v,u)=>{try{f(v,u),R(v,u),A(null),$(!1),requestAnimationFrame(()=>l.current?.focus())}catch(y){return A(ue(c.schema,c.allMutations(),y)),[]}};return(0,e.jsxs)("header",{className:"graview-kind-stop-head",children:[(0,e.jsxs)("div",{className:"graview-kind-stop-title",children:[(0,e.jsx)("h2",{id:g,ref:N,tabIndex:-1,"data-testid":"kind-stop-title",onKeyDown:v=>delete v.currentTarget.dataset.graviewQuietFocus,onBlur:v=>delete v.currentTarget.dataset.graviewQuietFocus,children:n}),(0,e.jsxs)("p",{"data-testid":"kind-stop-count",children:[ee(c.schema,t,d),r?` \xB7 ${r}`:""]})]}),(0,e.jsxs)("div",{className:"graview-kind-stop-acts",children:[S?(0,e.jsx)("button",{ref:l,type:"button",className:"graview-kind-stop-primary","data-testid":"kind-stop-primary","data-affordance":S.id,"aria-expanded":S.open.length>0?w:void 0,onClick:()=>{A(null),S.open.length===0?h(S):$(v=>!v)},children:S.label}):null,i?(0,e.jsx)("button",{type:"button",className:"graview-kind-stop-more-tools","data-testid":"kind-stop-tools-open","aria-expanded":i.open,"aria-controls":i.open?i.id:void 0,"aria-label":`Find, filter, arrange and act on the ${n.toLowerCase()}`,title:"Find, filter, arrange and acts","data-narrowed":i.narrowed||void 0,onClick:i.toggle,children:(0,e.jsx)("span",{"aria-hidden":"true",children:"\u22EF"})}):(0,e.jsx)(Qe,{kind:t,plural:n})]}),w&&S?(0,e.jsx)("div",{className:"graview-kind-stop-ask","data-testid":"kind-stop-ask","aria-label":S.label,role:"group",children:(0,e.jsx)(me,{affordance:S,onApply:v=>h(S,v),onCancel:()=>{$(!1),l.current?.focus()}})}):null,p?(0,e.jsx)("p",{role:"alert",className:"graview-kind-stop-failed","data-testid":"kind-stop-failed",children:p}):null]})}var ot=U.part((t,n)=>(0,e.jsx)(t.ProblemRows,{...n}),{what:"The problems",as:"li"});function rt({kind:t,plural:n,members:d,today:g,arrangement:r,onArrange:i,compact:c=!1}){let{store:b,brand:L,setSelection:R}=I(),f=b.schema,S=ae(),w=(0,o.useMemo)(()=>new Set(d.map(s=>s.id)),[d]),$=(0,o.useMemo)(()=>ze(S,w,s=>b.allInvariants().find(k=>k.name===s)?.label),[S,w,b]),p=(0,o.useMemo)(()=>Ke(f,t,d,g),[f,t,d,g]),A=et(Ne(L,f),t),[l]=(0,o.useState)(()=>tt(A));(0,o.useEffect)(()=>()=>at(A,new Date().toISOString()),[A]);let N=te(),h=(0,o.useMemo)(()=>l?Ve(b.log.all(),t,l,s=>b.graph.getNode(s)?.kind):null,[l,b,t,N]),[v,u]=(0,o.useState)(null),y=s=>i({...r,filter:[...(r.filter??[]).filter(k=>!s?.some(D=>D.key===k.key)),...s??[]]}),T=$.reduce((s,k)=>s+k.violations.length,0),x=[];if(p&&(p.overdue>0||p.soon>0)){let s=p.field;x.push((0,e.jsxs)("li",{"data-testid":"kind-stop-dates",children:[p.overdue>0?(0,e.jsxs)("button",{type:"button",className:"graview-kind-stop-fact","data-tone":"warn",onClick:()=>y(ne(p,"overdue",g)),"aria-label":`${C(p.overdue)} overdue \u2014 show only these`,children:[C(p.overdue)," overdue"]}):null,p.soon>0?(0,e.jsxs)("button",{type:"button",className:"graview-kind-stop-fact",onClick:()=>y(ne(p,"soon",g)),"aria-label":`${C(p.soon)} in the next 7 days \u2014 show only these`,children:[C(p.soon)," ",p.due?"due":""," in the next 7 days"]}):null,(0,e.jsxs)("span",{className:"graview-kind-stop-quiet-text",children:[" by ",de(f.tryDefinition(t),s).toLowerCase()]})]},"dates"))}let M=(r.filter??[]).some(s=>s.key==="is"&&s.value==="flagged");if($.length>0&&c){let s=$.map(k=>k.label).join(", ");x.push((0,e.jsxs)("li",{className:"graview-kind-stop-problems-line","data-testid":"kind-stop-problems","data-graview-problems":T,children:[(0,e.jsxs)("span",{className:"graview-kind-stop-warn",children:[(0,e.jsx)("span",{"aria-hidden":"true",children:"\u26A0 "}),T===1?"1 problem":`${C(T)} problems`]}),(0,e.jsxs)("span",{className:"graview-kind-stop-quiet-text graview-kind-stop-rules-said",title:s,children:[" ","\xB7 ",s]}),(0,e.jsx)("button",{type:"button",className:"graview-kind-stop-link","data-testid":"kind-stop-only-problems","aria-pressed":M,"aria-label":M?`Show all the ${n.toLowerCase()}`:`Show only the ${n.toLowerCase()} with a problem`,onClick:()=>M?i({...r,filter:(r.filter??[]).filter(k=>!(k.key==="is"&&k.value==="flagged"))}):y([{key:"is",value:"flagged"}]),children:M?"Show all":"Show"})]},"problems"))}else $.length>0&&x.push((0,e.jsxs)("li",{"data-testid":"kind-stop-problems","data-graview-problems":T,children:[(0,e.jsxs)("span",{className:"graview-kind-stop-warn",children:[(0,e.jsx)("span",{"aria-hidden":"true",children:"\u26A0 "}),T===1?"1 problem":`${C(T)} problems`]}),(0,e.jsxs)("span",{className:"graview-kind-stop-quiet-text",children:[" in ",n.toLowerCase(),":"]}),(0,e.jsx)("ul",{className:"graview-kind-stop-rules",children:$.map(s=>(0,e.jsx)(st,{group:s,open:v===s.invariant,onToggle:()=>u(k=>k===s.invariant?null:s.invariant),onPick:k=>R([k])},s.invariant))}),(0,e.jsxs)("button",{type:"button",className:"graview-kind-stop-link","data-testid":"kind-stop-only-problems",onClick:()=>y([{key:"is",value:"flagged"}]),children:["Show only the ",n.toLowerCase()," with a problem"]})]},"problems"));if(h&&(h.added>0||h.changed>0)){let s=[h.added>0?`${C(h.added)} added`:"",h.changed>0?`${C(h.changed)} changed`:""].filter(Boolean);x.push((0,e.jsxs)("li",{"data-testid":"kind-stop-since",children:[(0,e.jsxs)("span",{className:"graview-kind-stop-quiet-text",children:["Since you last looked (",oe(l.slice(0,10)),"):"]})," ",s.join(", ")]},"since"))}return x.length===0?null:(0,e.jsx)("ul",{className:"graview-kind-stop-going-on","aria-label":`What is going on in the ${n.toLowerCase()}`,"data-testid":"kind-stop-going-on",children:x})}function st({group:t,open:n,onToggle:d,onPick:g}){let r=(0,o.useId)();return(0,e.jsxs)("li",{"data-graview-rule":t.invariant,children:[(0,e.jsxs)("button",{type:"button",className:"graview-kind-stop-rule","aria-expanded":n,"aria-controls":r,onClick:d,onPointerEnter:U.prefetch,onFocus:U.prefetch,children:[(0,e.jsx)("span",{"aria-hidden":"true",className:"graview-kind-stop-chevron","data-open":n||void 0,children:"\u203A"}),t.label," ",(0,e.jsxs)("span",{className:"graview-kind-stop-quiet-text",children:["\xB7 ",C(t.violations.length)]})]}),n?(0,e.jsx)("ol",{id:r,className:"graview-kind-stop-problem-rows","data-testid":"kind-stop-problem-rows",children:(0,e.jsx)(o.Suspense,{fallback:null,children:(0,e.jsx)(ot,{violations:t.violations,pick:i=>{let c=i.subjectId??t.records[0]??i.nodeIds[0];c!==void 0&&g(c)}})})}):null]})}var dt={board:"Board",calendar:"Calendar",table:"Table"};function We({derived:t,shape:n,draft:d,author:g}){let{view:r}=I(),{go:i}=Y(),{keep:c}=Ge(je()),[b,L]=(0,o.useState)(!1),R=t.shape==="table"?[]:[t.shape,"table"];return!g&&R.length===0?null:(0,e.jsxs)("div",{className:"graview-kind-stop-shape","data-testid":"kind-stop-shape",children:[R.length>0?(0,e.jsx)("span",{role:"group","aria-label":"Show as",className:"graview-kind-stop-switch",children:R.map(f=>(0,e.jsx)("button",{type:"button","aria-pressed":n.shape===f,"data-testid":`kind-stop-as-${f}`,onClick:()=>i(pe(r,_e,f===t.shape?null:f)),children:dt[f]},f))}):null,g?(0,e.jsx)("span",{className:"graview-kind-stop-quiet-text","data-testid":"kind-stop-derived",children:d?`${d.said.replace(/\.$/,"")}, derived from the declaration`:"Derived from the declaration"}):null,d&&g?(0,e.jsx)("button",{type:"button",className:"graview-kind-stop-link","data-testid":"kind-stop-keep",disabled:b,title:`Keep \u201C${d.title}\u201D as a lens: a place of its own`,onClick:()=>{L(!0),c(d).finally(()=>L(!1))},children:"Keep as a lens"}):null]})}function lt({draft:t,nodes:n}){let d=De(t.drawn);return(0,e.jsx)("div",{className:"graview-kind-stop-lens","data-graview-draft":t.lens.name,children:(0,e.jsx)(we,{mode:"scene",children:(0,e.jsx)(he,{kind:t.kind,view:t.title,children:(0,e.jsx)(d,{nodes:n,label:t.title,fidelity:"full",cardinality:"many",mode:"fullscreen",selected:!1})})})})}function pt({kind:t,nodes:n,groups:d,flagged:g,plural:r,arrangement:i}){let{store:c,views:b,view:L,selection:R,setSelection:f,setMenuAt:S,principal:w}=I(),{go:$}=Y(),p=c.schema,A=c.graph,l=(0,o.useMemo)(()=>(d?d.flatMap(a=>a.nodes):n).map(a=>a.id),[n,d]),N=Me(l),h=(0,o.useMemo)(()=>c.permittedMutations(w).some(a=>{let m=a.subject?.kinds;return m!==void 0&&(m==="*"||m.includes(t))}),[c,w,t]),v=(0,o.useRef)(null),u=a=>{N.choose(a),requestAnimationFrame(()=>{let m=N.list.current;((a[0]===void 0?null:m?.querySelector(`[data-graview-choose-box="${CSS.escape(a[0])}"]`))??m)?.focus({preventScroll:!0})})},y=N.chosen.length,T=b.lookup(t,{cardinality:"one",fidelity:"glyph"}),x=T!==void 0&&!ve(T)?T:void 0,M=a=>R.includes(a),s=ae(),k=(0,o.useMemo)(()=>He(p,t,n,A),[p,t,n,A]),[D,H]=(0,o.useState)(W);(0,o.useEffect)(()=>H(W),[i.query,i.filter?.length,i.sort?.by,i.group?.by]);let V=p.tryDefinition(t),_=a=>s.filter(m=>m.nodeIds.includes(a)||m.subjectId===a).map(m=>m.message),O=i.sort?.by,G=`${r}${i.sort?`, in order of ${k.find(a=>a.key===O)?.label.toLowerCase()??O}`:""}`,z=D,P=a=>{let m=re(V,a),B=g.has(a.id)?_(a.id):[];return(0,e.jsxs)("tr",{"data-graview-pick":a.id,tabIndex:-1,"data-graview-record":a.id,"data-flagged":B.length>0||void 0,...h?{"data-graview-choose":a.id}:{},children:[h?(0,e.jsx)("td",{className:"graview-choose-at",children:(0,e.jsx)("input",{...N.boxProps(a.id,m),onPointerEnter:j,onFocus:j})}):null,(0,e.jsxs)("th",{scope:"row",className:"graview-kind-stop-name",children:[x?(0,e.jsx)("div",{"data-graview-pick":a.id,className:"graview-kind-stop-own-row",children:(0,e.jsx)(x,{node:a,cardinality:"one",fidelity:"glyph",mode:"scene",selected:M(a.id),...B.length>0?{flagged:[a.id]}:{}})}):(0,e.jsx)("button",{type:"button","data-testid":"kind-stop-row-go",title:`Go to ${m}`,onClick:()=>$(nt(L,a.id)),children:m}),B.length>0?(0,e.jsxs)("span",{className:"graview-kind-stop-flag",title:B.join(" \xB7 "),children:[(0,e.jsx)("span",{"aria-hidden":"true",children:"\u26A0"}),(0,e.jsx)("span",{className:"graview-kind-stop-hidden",children:`Problem: ${B.join(". ")}`})]}):null]}),k.map(F=>{let E=Ie(p,a,F,A);return(0,e.jsx)("td",{"data-label":F.label,"data-short":E.text.length>0&&E.text.length<=14||void 0,"data-empty":E.text?void 0:"",...E.title?{title:E.title}:{},children:E.text?(0,e.jsx)("span",{children:E.text}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("b",{"aria-hidden":"true",children:"\u2014"}),(0,e.jsx)("i",{className:"graview-kind-stop-hidden",children:"none"})]})},F.key)}),(0,e.jsx)("td",{className:"graview-kind-stop-row-acts",children:(0,e.jsx)("button",{type:"button","data-testid":"kind-stop-row-acts","aria-haspopup":"menu","aria-label":`What can be done with ${m}`,onClick:F=>{let E=F.currentTarget.getBoundingClientRect();f([a.id]),S({x:Math.round(E.left),y:Math.round(E.bottom+4),on:a.id})},children:(0,e.jsx)("span",{"aria-hidden":"true",children:"\u22EF"})})})]},a.id)},K=a=>{let m=a.slice(0,Math.max(0,z));return z-=m.length,m.map(P)};return(0,e.jsxs)("div",{className:"graview-kind-stop-table-at",...h?{...N.listProps,ref:a=>{v.current=a,N.list.current=a},tabIndex:-1,role:"group","aria-label":y>0?`${r}, ${y} chosen`:r,"data-graview-choosable":""}:{},children:[h?(0,e.jsx)("style",{children:Pe}):null,(0,e.jsxs)("table",{className:"graview-kind-stop-table","data-testid":"kind-stop-table",children:[(0,e.jsx)("caption",{className:"graview-kind-stop-hidden",children:G}),(0,e.jsx)("thead",{children:(0,e.jsxs)("tr",{children:[h?(0,e.jsx)("td",{className:"graview-choose-at graview-choose-all",children:(0,e.jsx)("input",{type:"checkbox",className:"graview-choose-box","data-testid":"kind-stop-choose-all","aria-label":`Choose all ${C(n.length)} ${r.toLowerCase()}`,checked:y>0&&y===n.length,ref:a=>{a&&(a.indeterminate=y>0&&y<n.length)},onPointerEnter:j,onFocus:j,onChange:()=>y===n.length?N.clear():N.choose(l)})}):null,(0,e.jsx)("th",{scope:"col","aria-sort":O==="label"?i.sort?.direction==="desc"?"descending":"ascending":void 0,children:"Name"}),k.map(a=>(0,e.jsx)("th",{scope:"col","aria-sort":a.about==="field"&&a.key===O?i.sort?.direction==="desc"?"descending":"ascending":void 0,children:a.label},a.key)),(0,e.jsx)("th",{scope:"col",children:(0,e.jsx)("span",{className:"graview-kind-stop-hidden",children:"Acts"})})]})}),d?d.map(a=>z<=0?null:(0,e.jsxs)("tbody",{"data-graview-group":a.key,children:[(0,e.jsx)("tr",{className:"graview-kind-stop-group",children:(0,e.jsxs)("th",{scope:"rowgroup",colSpan:k.length+(h?3:2),children:[a.label," ",(0,e.jsxs)("span",{className:"graview-kind-stop-quiet-text",children:["\xB7 ",C(a.nodes.length)]})]})}),K(a.nodes)]},a.key||"-")):(0,e.jsx)("tbody",{children:K(n)})]}),h?(0,e.jsx)(qe,{store:c,chosen:N.chosen,principal:w,anchor:()=>v.current?.closest('[data-testid="kind-stop"]')??null,of:l.length,onChooseAll:()=>N.choose(l),onClear:N.clear,onActed:u}):null,n.length>D?(0,e.jsxs)("p",{className:"graview-kind-stop-more",children:[(0,e.jsxs)("span",{className:"graview-kind-stop-quiet-text","data-testid":"kind-stop-shown",children:[C(D)," of ",C(n.length)," shown"]})," ",(0,e.jsxs)("button",{type:"button",className:"graview-kind-stop-link","data-testid":"kind-stop-more",onClick:()=>H(a=>a+W),children:["Show ",C(Math.min(W,n.length-D))," more"]})]}):null]})}var ct=`
|
|
2
|
+
.graview-kind-stop{container-type:inline-size;box-sizing:border-box;height:100%;min-height:0;display:flex;flex-direction:column;gap:10px;padding:16px 18px 12px;border:1px solid var(--graview-edge);border-radius:var(--graview-radius,12px);background:var(--graview-panel);color:var(--graview-ink);box-shadow:var(--graview-lift-low);overflow:auto;overscroll-behavior:contain}
|
|
3
|
+
[data-graview-map-panel] .graview-kind-stop{height:auto;padding:4px 6px 12px;border:0;box-shadow:none;background:none;overflow:visible}
|
|
4
|
+
.graview-kind-stop :focus-visible{outline:2px solid var(--graview-accent);outline-offset:2px}
|
|
5
|
+
.graview-kind-stop h2[data-graview-quiet-focus]:focus{outline:none}
|
|
6
|
+
.graview-kind-stop button{font:inherit;cursor:pointer}
|
|
7
|
+
.graview-kind-stop :is(.graview-kind-stop-more-tools,.graview-kind-stop-link,.graview-kind-stop-rule,.graview-kind-stop-name button,.graview-kind-stop-row-acts button,.graview-kind-stop-fact,.graview-kind-stop-switch button){box-shadow:none}
|
|
8
|
+
.graview-kind-stop-head{display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px 16px}
|
|
9
|
+
.graview-kind-stop-title{flex:1 1 16rem;min-width:0}
|
|
10
|
+
.graview-kind-stop-title h2{margin:0;outline-offset:2px;font-size:var(--graview-text-heading);line-height:1.3;overflow-wrap:anywhere}
|
|
11
|
+
.graview-kind-stop-title p{margin:2px 0 0;font-size:.875rem;color:var(--graview-ink-muted);overflow-wrap:anywhere}
|
|
12
|
+
.graview-kind-stop-acts{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
|
|
13
|
+
.graview-kind-stop-primary,.graview-kind-stop-quiet{min-height:32px;padding:0 14px;border-radius:8px;font-size:.875rem}
|
|
14
|
+
.graview-kind-stop-primary{border:1px solid var(--graview-accent);background:var(--graview-accent);color:var(--graview-accent-ink);font-weight:600}
|
|
15
|
+
.graview-kind-stop-quiet{border:1px solid var(--graview-edge);background:transparent;color:var(--graview-ink)}
|
|
16
|
+
.graview-kind-stop-ask{flex:1 1 100%;min-width:0;padding:10px 12px;border:1px solid var(--graview-edge);border-radius:10px}
|
|
17
|
+
.graview-kind-stop-failed{flex:1 1 100%;margin:0;font-size:var(--graview-text-small);color:var(--graview-warn)}
|
|
18
|
+
.graview-kind-stop-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
|
|
19
|
+
.graview-kind-stop-going-on{list-style:none;margin:0;padding:0;display:grid;gap:6px;font-size:.875rem}
|
|
20
|
+
.graview-kind-stop-going-on>li{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;min-width:0}
|
|
21
|
+
.graview-kind-stop-fact{min-height:28px;padding:0 10px;border:1px solid var(--graview-edge);border-radius:999px;background:transparent;color:var(--graview-ink)}
|
|
22
|
+
.graview-kind-stop-fact[data-tone=warn],.graview-kind-stop-warn{color:var(--graview-warn);font-weight:600}
|
|
23
|
+
.graview-kind-stop-quiet-text{color:var(--graview-ink-muted)}
|
|
24
|
+
.graview-kind-stop-rules{list-style:none;margin:0;padding:0;flex:1 1 100%;display:grid;gap:2px}
|
|
25
|
+
.graview-kind-stop-rule{display:inline-flex;align-items:center;gap:6px;min-height:28px;max-width:100%;padding:0 6px;border:1px solid transparent;border-radius:7px;background:none;color:var(--graview-ink);text-align:left;overflow-wrap:anywhere}
|
|
26
|
+
.graview-kind-stop-rule:hover{border-color:var(--graview-edge)}
|
|
27
|
+
.graview-kind-stop-chevron{display:inline-block;width:.8em}
|
|
28
|
+
.graview-kind-stop-chevron[data-open]{transform:rotate(90deg)}
|
|
29
|
+
.graview-kind-stop-problem-rows{list-style:none;margin:2px 0 6px 18px;padding:0;max-width:44rem}
|
|
30
|
+
.graview-kind-stop-link{min-height:28px;padding:0 4px;border:0;background:none;color:var(--graview-accent);text-decoration:underline;text-underline-offset:2px}
|
|
31
|
+
.graview-kind-stop-link:disabled{opacity:.6;cursor:default}
|
|
32
|
+
.graview-kind-stop-shape{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;font-size:var(--graview-text-small)}
|
|
33
|
+
.graview-kind-stop-switch{display:inline-flex;border:1px solid var(--graview-edge);border-radius:8px;overflow:hidden}
|
|
34
|
+
.graview-kind-stop-switch button{min-height:28px;padding:0 12px;border:0;background:transparent;color:var(--graview-ink-muted)}
|
|
35
|
+
.graview-kind-stop-switch button+button{border-left:1px solid var(--graview-edge)}
|
|
36
|
+
.graview-kind-stop-switch button[aria-pressed=true]{background:color-mix(in srgb,var(--graview-accent) 16%,transparent);color:var(--graview-ink);font-weight:600}
|
|
37
|
+
.graview-kind-stop-body{flex:1 0 auto;min-width:0}
|
|
38
|
+
.graview-kind-stop-empty{margin:24px 0;color:var(--graview-ink-muted)}
|
|
39
|
+
.graview-kind-stop-lens{min-width:0}
|
|
40
|
+
|
|
41
|
+
.graview-kind-stop-table-at{min-width:0}
|
|
42
|
+
.graview-kind-stop-table{width:100%;border-collapse:collapse;font-size:.875rem}
|
|
43
|
+
.graview-kind-stop-table th,.graview-kind-stop-table td{padding:7px 8px;text-align:left;vertical-align:top;border-top:1px solid var(--graview-edge);overflow-wrap:break-word}
|
|
44
|
+
.graview-kind-stop-table td{color:var(--graview-ink)}
|
|
45
|
+
.graview-kind-stop-table td>span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
|
|
46
|
+
.graview-kind-stop-table td[data-short]{white-space:nowrap;font-variant-numeric:tabular-nums}
|
|
47
|
+
.graview-kind-stop-table thead th{border-top:0;font-size:var(--graview-text-small);font-weight:600;letter-spacing:.04em;color:var(--graview-ink-muted)}
|
|
48
|
+
.graview-kind-stop-name{font-weight:500;min-width:8rem;max-width:22rem}
|
|
49
|
+
.graview-kind-stop-name button{display:inline-block;min-width:24px;min-height:24px;padding:0;border:0;background:none;color:var(--graview-ink);font-weight:500;text-align:left;text-decoration:underline;text-decoration-color:var(--graview-edge);text-underline-offset:3px}
|
|
50
|
+
.graview-kind-stop-name button:hover{text-decoration-color:currentColor}
|
|
51
|
+
.graview-kind-stop-own-row{display:inline-block;max-width:100%;cursor:pointer}
|
|
52
|
+
.graview-kind-stop-flag{margin-left:6px;color:var(--graview-warn)}
|
|
53
|
+
.graview-kind-stop-group th{padding-top:12px;font-weight:600;color:var(--graview-ink)}
|
|
54
|
+
.graview-kind-stop-row-acts{width:1%;white-space:nowrap;text-align:right}
|
|
55
|
+
.graview-kind-stop-row-acts button{min-width:32px;min-height:28px;border:1px solid var(--graview-edge-bright,var(--graview-edge));border-radius:7px;background:none;color:var(--graview-ink);font-size:1.125rem;font-weight:700;line-height:1}
|
|
56
|
+
.graview-kind-stop-row-acts button:hover{background:color-mix(in srgb,var(--graview-ink) 8%,transparent)}
|
|
57
|
+
.graview-kind-stop-table td[data-empty] b{font-weight:400;color:var(--graview-ink-faint)}
|
|
58
|
+
.graview-kind-stop-table tr[data-graview-pick]{cursor:default}
|
|
59
|
+
.graview-kind-stop-more{margin:10px 0 0;font-size:.875rem}
|
|
60
|
+
.graview-kind-stop-table-at[data-graview-choosable]{outline:none}
|
|
61
|
+
[data-graview-choosable]:hover .graview-choose-all .graview-choose-box{opacity:1}
|
|
62
|
+
.graview-kind-stop-table .graview-choose-at{width:1%;padding-right:0;vertical-align:middle}
|
|
63
|
+
.graview-kind-stop-more-tools{position:relative;min-width:32px;min-height:32px;padding:0 8px;border:0;border-radius:8px;background:none;color:var(--graview-ink);font-size:1.125rem;line-height:1}
|
|
64
|
+
.graview-kind-stop-more-tools:hover,.graview-kind-stop-more-tools[aria-expanded=true]{background:color-mix(in srgb,var(--graview-ink) 8%,transparent)}
|
|
65
|
+
.graview-kind-stop-more-tools[data-narrowed]::after{content:"";position:absolute;top:8px;right:6px;width:7px;height:7px;border-radius:50%;background:var(--graview-accent)}
|
|
66
|
+
.graview-kind-stop-tools{display:grid;gap:8px;justify-items:start;padding:10px;border:1px solid var(--graview-edge);border-radius:10px}
|
|
67
|
+
.graview-kind-stop-tools>*{max-width:100%}
|
|
68
|
+
.graview-kind-stop-problems-line{flex-wrap:nowrap!important}
|
|
69
|
+
.graview-kind-stop-problems-line .graview-kind-stop-warn{flex:0 0 auto;white-space:nowrap}
|
|
70
|
+
.graview-kind-stop-rules-said{flex:1 1 auto;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
|
|
71
|
+
.graview-kind-stop-problems-line .graview-kind-stop-link{flex:0 0 auto}
|
|
72
|
+
.graview-kind-stop-narrowed{margin:0;font-size:.875rem}
|
|
73
|
+
.graview-kind-stop[data-graview-narrow]{overflow:hidden}
|
|
74
|
+
|
|
75
|
+
.graview-kind-stop[data-graview-narrow]{height:auto;max-height:100%;flex:0 1 auto;margin-bottom:auto}
|
|
76
|
+
.graview-kind-stop-scroll{flex:1 1 auto;min-height:0;padding:4px;margin:-4px;display:flex;flex-direction:column;gap:10px;overflow:auto;overscroll-behavior:contain}
|
|
77
|
+
[data-graview-map-panel] .graview-kind-stop-scroll{overflow:visible}
|
|
78
|
+
[data-graview-map-panel] .graview-kind-stop[data-graview-narrow]{overflow:visible}
|
|
79
|
+
.graview-kind-stop-below{align-self:stretch;flex:0 0 auto;margin:0 -16px -12px;min-height:44px;padding:0 16px;border:0;border-top:1px solid var(--graview-edge);background:var(--graview-panel);color:var(--graview-accent);font-size:.875rem;text-align:left}
|
|
80
|
+
@container (max-width: 559px){
|
|
81
|
+
.graview-kind-stop{padding:14px 16px 12px}
|
|
82
|
+
.graview-kind-stop-head{position:relative;padding-right:52px}
|
|
83
|
+
.graview-kind-stop-acts{flex:1 1 100%}
|
|
84
|
+
.graview-kind-stop-primary{flex:0 0 auto}
|
|
85
|
+
.graview-kind-stop-more-tools{position:absolute;top:-6px;right:0}
|
|
86
|
+
.graview-kind-stop-name button{text-decoration:none}
|
|
87
|
+
.graview-kind-stop-row-acts button{border-color:transparent;font-weight:400;color:var(--graview-ink-muted)}
|
|
88
|
+
.graview-kind-stop-row-acts button:hover{color:var(--graview-ink)}
|
|
89
|
+
.graview-kind-stop-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
|
|
90
|
+
.graview-kind-stop-table,.graview-kind-stop-table tbody,.graview-kind-stop-table tr{display:block}
|
|
91
|
+
.graview-kind-stop-table tr{position:relative;padding:8px 40px 8px 0;border-top:1px solid var(--graview-edge)}
|
|
92
|
+
.graview-kind-stop-table th,.graview-kind-stop-table td{display:block;padding:1px 0;border:0}
|
|
93
|
+
.graview-kind-stop-table td>span{display:inline}
|
|
94
|
+
.graview-kind-stop-table td[data-short]{white-space:normal}
|
|
95
|
+
.graview-kind-stop-table td[data-label]::before{content:attr(data-label) " \xB7 ";color:var(--graview-ink-muted)}
|
|
96
|
+
.graview-kind-stop-row-acts{position:absolute;top:6px;right:0;width:auto}
|
|
97
|
+
.graview-kind-stop-table [data-graview-choose]{padding-left:34px}
|
|
98
|
+
.graview-kind-stop-table td.graview-choose-at{position:absolute;left:0;top:8px;width:auto;padding:0}
|
|
99
|
+
.graview-kind-stop-table thead .graview-choose-at{position:static}
|
|
100
|
+
}
|
|
101
|
+
@media (pointer: coarse){
|
|
102
|
+
.graview-kind-stop-table-at:not([data-graview-choosing]) .graview-choose-at{display:none}
|
|
103
|
+
.graview-kind-stop-table-at:not([data-graview-choosing]) [data-graview-choose]{padding-left:0}
|
|
104
|
+
}
|
|
105
|
+
@media (pointer: coarse){
|
|
106
|
+
.graview-kind-stop-primary,.graview-kind-stop-quiet,.graview-kind-stop-fact,.graview-kind-stop-rule,.graview-kind-stop-link,.graview-kind-stop-switch button,.graview-kind-stop-row-acts button{min-height:44px}
|
|
107
|
+
.graview-kind-stop-row-acts button,.graview-kind-stop-more-tools{min-width:44px;min-height:44px}
|
|
108
|
+
.graview-kind-stop-name button{min-height:44px}
|
|
109
|
+
}
|
|
110
|
+
@media (prefers-reduced-motion: reduce){.graview-kind-stop *{transition:none!important;animation:none!important}}
|
|
111
|
+
`;export{Mt as KindStop};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __graviewPreload=(base,files)=>{if(typeof document>"u")return;const asked=globalThis.__graviewPreloaded??=new Set;for(const file of files){const href=new URL(file,base).href;if(asked.has(href))continue;asked.add(href);const link=document.createElement("link");link.rel="modulepreload";link.href=href;document.head.append(link)}};import{a as le,b as M,c as ue}from"./chunk.65SI77M7.js";import{A as te,C as re,E as oe,G as ae,I as ie,M as se,O as de,R as ce,i as J,j as Q,l as X,r as Y,u as ee,v as ne}from"./chunk.GH6QX7JR.js";import{a as W}from"./chunk.J4D4BIB4.js";import{Da as _,Ea as H,Fa as j,G as $,Ra as Z,Ya as U,_ as G,ia as q,ka as z}from"./chunk.ASNVH2G4.js";import{a as K}from"./chunk.SDO3U72B.js";import{fd as T,jd as I}from"./chunk.ZDUKVXBI.js";import{b as B}from"./chunk.AJZBJBMO.js";var o=B($(),1);var h=B($(),1),k,he=K(()=>(__graviewPreload(import.meta.url,["./chunk.NNK2E2EP.js","./chunk.CEQQIW7Z.js","./chunk.VUE6ILQV.js","./chunk.2IOJNFCR.js","./chunk.AAPXF6NP.js","./chunk.QDVGHI7R.js","./chunk.TBLOBXZ2.js","./chunk.MIE4TJRW.js","./chunk.DEBW4FH6.js","./chunk.RD2FSSLV.js","./chunk.OWHH7JDV.js","./chunk.T3RFZ66S.js","./chunk.TDWJU6GW.js","./chunk.P3Z4ZCL3.js","./chunk.45OLF6BK.js","./chunk.T6ISUVUP.js","./chunk.ASNVH2G4.js","./chunk.SDO3U72B.js","./chunk.ZDUKVXBI.js","./chunk.FQLNBIQ5.js","./chunk.AJZBJBMO.js"]),import("./chunk.PF7XQ5R5.js"))),ye=()=>he().then(e=>void(k=e),()=>new Promise(e=>setTimeout(e,2e3)).then(ye)),pe=j(ye),ke=e=>!!e&&k===void 0;function Ae({onReady:e,fetch:n}){return(0,h.useLayoutEffect)(()=>void n().then(e),[e,n]),null}var ge=0;function xe(e){let[n,t]=(0,h.useState)(()=>k);(0,h.useEffect)(()=>{if(!e||n)return;let i=!1;return pe().then(()=>{i||t(k)}),()=>{i=!0}},[e,n]);let r=(0,h.useMemo)(()=>ge+=1,[e]);return{over:(0,h.useMemo)(()=>{let i=n??k;if(!e||!i)return;let{source:s,worker:d,...l}=e,c={...l,worker:d??{source:s},draft:!0};return{name:e.manifest.name,home:e.manifest.attach==="home",register:g=>i.registerWorkerView(g,c)}},[e,n]),n:r}}var we=[];function me(e,n,t){let[r,a]=(0,h.useState)(we);return(0,h.useEffect)(()=>{let i=()=>void pe().then(()=>a(n.forked()));if(n?.forked)return n.forked().length>0&&i(),n.onChange?.(i)},[n]),(0,h.useMemo)(()=>r.length>0&&k?r.reduce((i,s)=>k.registerWorkerView(i,{manifest:s.manifest,worker:{source:s.source},...s.draft?{keepsNothing:!0}:{}}),H(_(t),e)):e,[e,r,t])}var p=B(G(),1),De=e=>typeof e=="object"?e:{};function Ne({rootRef:e,firstLook:n,app:t}){let r=(0,o.useCallback)(()=>e.current,[e]);return n?(0,p.jsx)(ce,{firstLook:n,root:r,app:t}):null}function Le(e,n,t){let{app:r}=e,a=(0,o.useMemo)(()=>{let s=se(n(r.schema,r.viewSpecs),r),d=t?Se(s,t):s,l=e.views?e.views(r.schema,d):s,c=l===d?s:H(s,l);return de(c,r.schema,ae(e.brand??r.brand,r.schema)),t?t.register(c):c},[e.views,r.schema,r.viewSpecs,r.lenses,r.pages,r.home,t]),i=me(a,e.keptViews,r.schema);return Z(i,e.keptViews)}function Se(e,n){let t={...e,register(r,a,i,s){return s?.name!==n.name&&e.register(r,a,i,s),t},...e.home?{home:(r,a)=>(n.home||e.home(r,a),t)}:{}};return t}var P=e=>e?e.getBoundingClientRect().height:0;function Te(e,n,t){let r=(0,o.useRef)(t);r.current=t;let a=t!==void 0;(0,o.useLayoutEffect)(()=>{let i=e.current;if(!i||!a)return;let s=()=>{let m=[...i.children],w=m.find(R=>R.hasAttribute("data-graview-app-bar")),f=m.find(R=>R.hasAttribute("data-embed-content")),S=f?.querySelector("[data-embed-measure]")??null,u=m.find(R=>R.hasAttribute("data-graview-place-line"));return{strip:w,line:u,content:f,measure:S}},d=-1,l=()=>{let{strip:m,line:w,content:f,measure:S}=s(),u=Math.ceil(P(m)+P(w)+P(S||f));u!==d&&(d=u,r.current?.(u))};if(l(),typeof ResizeObserver>"u")return;let c=new ResizeObserver(l),g=()=>{c.disconnect();let{strip:m,line:w,content:f,measure:S}=s();for(let u of[i,m,w,f,S])u&&c.observe(u)};g();let b=new MutationObserver(()=>{g(),l()});return b.observe(i,{childList:!0}),()=>{c.disconnect(),b.disconnect()}},[e,n,a])}var Ie=480,ve=0;function Ke(e){let{app:n,seed:t,scheme:r="auto",brand:a=n.brand,fonts:i=!0,height:s="100%",label:d}=e,l=(0,o.useRef)(null);U(l);let c=s==="viewport"?"100dvh":s,g=X(typeof c=="string"&&/vh\b/.test(c)),b=(0,o.useMemo)(()=>`graview-embed-${++ve}`,[]),m=(0,o.useMemo)(()=>e.store??e.remote?.store??M(n,t),[e.store,e.remote,n,t]),w=e.presence??e.remote?.presence,f=e.hostContext?.theme,S=ue(r==="auto"&&f===void 0,a?.scheme),u=r==="auto"?f??S:r,R=(0,o.useMemo)(()=>W(u,a,{scope:`.${b}`}),[u,a,b]);J(e.favicon?I(e.assetsAt,T(a)):void 0),Q(e.favicon?a:void 0),(0,o.useEffect)(()=>{if(!i||typeof document>"u")return;let v=le(a);if(!v||document.querySelector(`link[href="${v}"]`))return;let y=document.createElement("link");y.rel="stylesheet",y.href=v,document.head.appendChild(y)},[a,i]);let C=(0,o.useRef)(void 0);(0,o.useLayoutEffect)(()=>{let v=l.current,y=C.current;if(C.current=d,!v||!d)return;let V=E=>{let A=E.getAttribute("aria-label")??"",x=y&&y!==d?A.startsWith(`${y} \xB7 `)?A.slice(y.length+3):A===y?"":A:A;x===d&&(E.getAttribute("role")==="region"||E.tagName==="SECTION"&&!E.hasAttribute("role"))&&E.setAttribute("role","group");let L=x.startsWith(`${d} \xB7 `)||x===d?x:x?`${d} \xB7 ${x}`:d;L!==A&&E.setAttribute("aria-label",L)},F=()=>v.querySelectorAll("aside, nav, main, header, footer, section[aria-label]:not([role]), [role=region], [role=complementary], [role=navigation], [role=search]").forEach(E=>{E.hasAttribute("data-graview-named-by-lens")||V(E)});F();let N=new MutationObserver(F);return N.observe(v,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["aria-label"]}),()=>N.disconnect()},[d]);let O=g?`${c}`.replace(/([\d.]+)[sdl]?vh\b/g,(v,y)=>`${+y*g/100}px`):c;return{rootRef:l,scope:b,css:R,scheme:u,store:m,presence:w,brand:a,auto:s==="auto",height:O}}function We({rootRef:e,board:n,onReport:t,where:r}){let a=(0,o.useCallback)(()=>e.current?.querySelector("[data-embed-content]")??e.current,[e]),i=(0,o.useRef)(r);i.current=r;let s=(0,o.useMemo)(()=>t?{tell:t,where:()=>i.current()}:void 0,[t]);return(0,p.jsx)(Y,{board:n,anchor:a,report:s})}function $e(e){let n=e.split(/[?#]/)[0].split("/").filter(Boolean).map(t=>{try{return decodeURIComponent(t)}catch{return t}});return n.length===0?{place:"home"}:n[0]==="places"?{place:n[1]??"places"}:{place:n[0],...n[1]!==void 0?{record:n[1]}:{}}}function Ge(e,n,t){return{brand:t,locale:e.locale,timeZone:e.timeZone,principal:e.principal,seats:e.seats,presence:n,typing:e.remote?.typing,people:e.people,memory:e.memory,presenceTtlMs:e.presenceTtlMs,onKeepLens:e.onKeepLens,onProposeChange:e.onProposeChange,composeChange:e.composeChange,onDraftChange:e.onDraftChange,displayOptions:e.displayOptions,ai:e.ai,files:e.files,viewerState:e.viewerState,assetsAt:e.assetsAt,resolveApp:e.resolveApp,history:e.history,linkedRecords:e.linkedRecords,subscriptions:e.subscriptions,dismissals:e.dismissals,whileAway:e.whileAway,notifications:e.notifications,onNotificationsSeen:e.onNotificationsSeen,workflowRuns:e.workflowRuns,keptViews:e.keptViews,onExport:e.onExport,signIn:e.signIn,menuSections:e.menuSections,app:e.app}}function qe({name:e,heading:n,faces:t,at:r,without:a,home:i,reach:s,standing:d,hostActions:l,barActions:c,appMenu:g,schemeChoice:b,share:m,status:w,keeping:f,onFind:S,named:u=!0,history:R=!0}){let{brand:C,store:O,principal:v,views:y}=q();z();let V=a?.has("places")?[]:ee({store:O,principal:v,views:y}),F=oe();return(0,p.jsx)(te,{brand:C,name:e,named:u,history:R,description:C?.subtitle,heading:n,faces:t,home:i,places:V,current:r===null?null:ne(V,r),reach:s,onFind:S,...t||r===null?{scenePlaces:F}:{},...c?{actions:c}:{},...g?{appMenu:g}:{},...b?{scheme:b}:{},...m?{share:m}:{},...w?{status:w}:{},tools:(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(ie,{clean:d}),(0,p.jsx)(re,{...l?{hostActions:l}:{},...f?{keeping:f}:{}})]})})}var ze=e=>({appMenu:e.appMenu,share:e.share,status:e.status,schemeChoice:e.schemeChoice,notifications:e.notifications});function _e(e){return{appMenu:e.appMenu,share:e.share,status:e.status,schemeChoice:e.schemeChoice,notifications:e.notifications}}var je=e=>e===!1?2:Math.min(e+1,6);function Ze(e){let[n,t]=(0,o.useState)(e),r=(0,o.useRef)(void 0),a=(0,o.useRef)(void 0),i=(0,o.useMemo)(()=>({go:r,at:t,pending:a}),[]),s=(0,o.useCallback)(d=>{if(r.current){r.current(d);return}a.current=d,t(d)},[]);return{at:n,setAt:t,steering:i,steer:s}}function be(e){let n=typeof e=="object"&&e!==null?e.name:void 0;return{name:typeof n=="string"&&n.length>0?n:typeof e=="object"?"Error":typeof e}}var D=()=>typeof performance<"u"?performance.now():Date.now();function Ue(e,n){let t=(0,o.useRef)({onError:e,face:n});return t.current={onError:e,face:n},(0,o.useCallback)((r,a)=>t.current.onError?.(be(r),{module:a.module,face:t.current.face}),[])}function Je(e,n){let t=(0,o.useRef)(null);t.current===null&&(t.current=D());let r=(0,o.useRef)({onReady:e,face:n});r.current={onReady:e,face:n};let a=(0,o.useRef)(!1);return(0,o.useCallback)(i=>{a.current||(a.current=!0,r.current.onReady?.({ms:Math.max(0,D()-(t.current??D())),face:i}))},[])}var fe=class extends o.Component{state={failed:!1};static getDerivedStateFromError(){return{failed:!0}}componentDidCatch(n,t){console.error(`[graview] ${this.props.module} threw while rendering`,n,t.componentStack),this.props.report(n,{module:this.props.module})}render(){return this.state.failed?(0,p.jsxs)("div",{role:"alert","data-graview-face-error":this.props.module,...this.props.content?{"data-embed-content":""}:{},style:this.props.content?{flex:"1 1 auto",display:"grid",alignContent:"center",justifyItems:"center",gap:8,padding:24,background:"var(--graview-ground)",color:"var(--graview-ink)",fontSize:"0.9375rem"}:{display:"inline-flex",alignItems:"center",gap:6,fontSize:"0.8125rem",color:"var(--graview-ink-muted)"},children:[(0,p.jsx)("span",{children:this.props.content?"This part of the app could not draw.":"Could not draw."}),(0,p.jsx)("button",{type:"button",onClick:()=>this.setState({failed:!1}),style:{padding:"3px 11px",fontSize:"0.8125rem"},children:"Try again"})]}):this.props.children}};export{pe as a,ke as b,Ae as c,xe as d,De as e,Ne as f,Le as g,Te as h,Ie as i,Ke as j,We as k,$e as l,Ge as m,qe as n,ze as o,_e as p,je as q,Ze as r,Ue as s,Je as t,fe as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as R}from"./chunk.TRP66PHK.js";import{f as v,g as _,h as B}from"./chunk.PGT4ZQDG.js";import"./chunk.AJZBJBMO.js";var F=e=>`The app's face "${String(e)}" for its views`,D=(e,t,n)=>`${F(e)} is not loaded: ${t} answered ${n||"no type"}, not a font.`;function k(e,t){let n=`${F(e.family)} is not loaded`,a=B(e,_(t.typography));if(a)return{refused:`${n}: ${a}.`};let s=v(e.src);if("asset"in s){let i=t.asset?.(s.asset);return i?{url:i}:{refused:`${n}: this host says nowhere the app's own files are served (\`asset\`), so ${e.src} is not fetched.`}}return R(t.origins).includes(new URL(s.https).origin)?{url:s.https}:{refused:`${n}: ${s.origin} is no origin this host lists for the faces its views are lent (\`fonts.origins\`), so it is not fetched.`}}async function J(e,t,n,a="same-origin"){let s=await e(t,{signal:n,credentials:a,redirect:"error"});if(!s.ok)return s.body?.cancel(),"failed";let i=(s.headers.get("content-type")??"").split(";")[0].trim().toLowerCase();if(i!==""&&!i.startsWith("font/")&&!i.startsWith("application/font-")&&!i.startsWith("application/x-font-")&&i!=="application/octet-stream")return s.body?.cancel(),{type:i};let o=Number(s.headers.get("content-length")??NaN);if(Number.isFinite(o)&&o>2e6)return s.body?.cancel(),"over";let c=s.body?.getReader();if(!c)return"failed";let f=[],g=0;for(;;){let{done:r,value:d}=await c.read();if(r)break;if(g+=d.byteLength,g>2e6)return c.cancel(),"over";f.push(d)}let h=new Uint8Array(g),l=0;for(let r of f)h.set(r,l),l+=r.byteLength;return h.buffer}var G=new WeakMap,j=new WeakMap,A=e=>{let t=String(e.weight??"normal").trim().replace(/\s+/g," ").toLowerCase();return t==="normal"?"400":t==="bold"?"700":t},U=e=>JSON.stringify([e.family.toLowerCase(),A(e),(e.style??"normal").toLowerCase()]);function L(e,t){let n;for(let i=t.files.length-1;i>=0&&!n;i-=1)t.files[i].face&&(n=t.files[i]);for(let i of t.files)i===n||!i.drawn||(e.fonts?.delete(i.face),i.drawn=!1);n&&!n.drawn&&(e.fonts?.add(n.face),n.drawn=!0);let a=t.files.filter(i=>[...i.holders.keys()].some(o=>!o.going));if(a.length<2){t.told=void 0;return}if(!n||n!==a.at(-1)||t.told===n.url)return;t.told=n.url;let s=new Set;for(let i of a)for(let[o,c]of i.holders)o.going||s.has(o)||(s.add(o),o.say(`${F(c)} is lent from ${a.length} files on this page, and the one drawn in every view is ${n.url}.`))}function Z(e,t,n,a,s){let i=e.defaultView,o=G.get(e)??new Map;G.set(e,o);let c={say:a,going:!1},f=s?j.get(s):void 0;f&&(f.going=!0);let g=[];t.length>8&&a(`The app lends its views ${t.length} faces and at most ${8} are loaded, so ${t.slice(8).map(r=>`"${r.family}"`).join(", ")} ${t.length-8===1?"is":"are"} not.`);for(let r of t.slice(0,8)){let d=k(r,n);if("refused"in d){a(d.refused);continue}let $="asset"in v(r.src),N=i?.FontFace,M=i?.fetch?.bind(i);if(!N||!e.fonts||$&&!M)continue;let O=U(r),y=o.get(O)??{files:[]};o.set(O,y);let b=y.files.find(u=>u.url===d.url);if(b){b.holders.set(c,r.family),y.files.splice(y.files.indexOf(b),1),y.files.push(b),g.push({name:y,one:b}),L(e,y);continue}let C=()=>{},z=new Promise(u=>C=u),p={url:d.url,stop:new AbortController,holders:new Map([[c,r.family]]),settled:z,settle:C,drawn:!1};y.files.push(p),g.push({name:y,one:p});let S=u=>{if(p.settle(),p.stop.signal.aborted)return;let w=y.files.indexOf(p);w>=0&&y.files.splice(w,1);for(let[W,H]of p.holders)W.going||W.say(u(H));L(e,y),y.files.length===0&&o.get(O)===y&&o.delete(O)},V=()=>S(u=>`${F(u)} could not be loaded from ${d.url}.`),T={display:"swap",...r.weight!==void 0?{weight:A(r)}:{},...r.style?{style:r.style.toLowerCase()}:{}},P=u=>{let w=new N(r.family,u,T);w.status==="error"&&(w=new N(JSON.stringify(r.family),u,T)),w.load().then(()=>{p.settle(),!(p.stop.signal.aborted||!y.files.includes(p))&&(p.face=w,L(e,y))},V)};$?J(M,d.url,p.stop.signal).then(u=>{if(p.stop.signal.aborted)return p.settle();if(u==="failed")return V();if(typeof u=="object"&&"type"in u)return S(w=>D(w,d.url,u.type));if(u==="over")return S(w=>`${F(w)} is not loaded: its file, ${d.url}, is more than ${2e6/1e6} MB, the most a file the app holds may be as a face for its views.`);P(u)},V):P(`url(${JSON.stringify(d.url)})`)}let h=!1,l=()=>{if(!h){h=!0,s?.();for(let{name:r,one:d}of g){if(d.holders.delete(c),d.holders.size>0)continue;d.stop.abort(),d.settle();let $=r.files.indexOf(d);$>=0&&r.files.splice($,1),d.drawn&&e.fonts?.delete(d.face),d.drawn=!1,L(e,r)}for(let[r,d]of o)d.files.length===0&&o.delete(r)}};return j.set(l,c),s&&Promise.all(g.map(({one:r})=>r.settled)).then(()=>s()),l}var I=e=>`font/${/\.(woff2|woff|ttf|otf)(?:[?#]|$)/i.exec(e)?.[1]?.toLowerCase()??"woff2"}`;function q(e){let t=new Uint8Array(e),n="";for(let a=0;a<t.length;a+=32768)n+=String.fromCharCode(...t.subarray(a,a+32768));return btoa(n)}async function K(e,t,n){e.length>8&&n(`The app lends its views ${e.length} faces and at most ${8} are loaded, so ${e.slice(8).map(o=>`"${o.family}"`).join(", ")} ${e.length-8===1?"is":"are"} not.`);let a=new Map;for(let o of e.slice(0,8)){let c=k(o,t);if("refused"in c){n(c.refused);continue}let f=U(o),g=(a.get(f)??[]).filter(h=>h.url!==c.url);g.push({font:o,url:c.url}),a.set(f,g)}let s=t.signal??new AbortController().signal;return(await Promise.all([...a.values()].map(async o=>{try{for(let c=o.length-1;c>=0;c-=1){let{font:f,url:g}=o[c],h="asset"in v(f.src),l=await J(t.fetch,g,s,h?"same-origin":"omit").catch(()=>"failed");if(s.aborted)return;if(l==="failed"){n(`${F(f.family)} could not be loaded from ${g}.`);continue}if(l==="over"){n(`${F(f.family)} is not loaded: its file, ${g}, is more than ${2e6/1e6} MB, the most a file may be as a face for the app's views.`);continue}if(!(l instanceof ArrayBuffer)){n(D(f.family,g,l.type));continue}return o.length>1&&n(`${F(f.family)} is lent from ${o.length} files, and the one drawn in the frame is ${g}.`),{family:f.family,...f.weight!==void 0?{weight:A(f)}:{},...f.style?{style:f.style.toLowerCase()}:{},src:`data:${I(g)};base64,${q(l)}`}}return}finally{t.settled?.(o[0].font.family)}}))).filter(o=>o!==void 0)}var E=new WeakMap,Y=8;function ee(e,t,n){let a=t.map(l=>{let r=v(l.src);return r&&"asset"in r?n.asset?.(r.asset)??null:null}),s=JSON.stringify([t,n.typography??null,n.origins??[],a]),i=E.get(e)??new Map;E.set(e,i);let o=i.get(s);if(o)return o;let c=[],f=new Set;for(let l of t.slice(0,8))"refused"in k(l,n)||f.add(l.family);let g=K(t,{...n,fetch:e.fetch.bind(e),settled:l=>f.delete(l)},l=>c.push(l)).then(l=>({fonts:l,said:c})),h={read:g,waiting:()=>[...f]};return i.set(s,h),i.size>Y&&i.delete(i.keys().next().value),g.then(l=>{l.said.length>0&&i.get(s)===h&&i.delete(s)},()=>i.delete(s)),h}export{K as frameFonts,Z as loadViewFonts,ee as readFrameFonts,k as viewFontAddress};
|