@costrict/csc 4.0.4 → 4.0.5-2
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/README.md +398 -398
- package/dist/{chunk-kpdp2gz2.js → chunk-017h2t5s.js} +13 -13
- package/dist/{chunk-tg41r14s.js → chunk-01s11pzc.js} +5 -5
- package/dist/{chunk-yhjccrrs.js → chunk-03fgtmxr.js} +97 -97
- package/dist/{chunk-pn0k5wak.js → chunk-03qpgz7e.js} +749 -23
- package/dist/{chunk-zwna33ms.js → chunk-04gervaa.js} +36 -36
- package/dist/{chunk-xq3k2392.js → chunk-06vftkzj.js} +57 -57
- package/dist/{chunk-b4ftppkp.js → chunk-07qe00pw.js} +22 -22
- package/dist/{chunk-zwv3h48p.js → chunk-0bnr3avz.js} +3 -3
- package/dist/{chunk-gaz7te9m.js → chunk-0f0x7wey.js} +6 -6
- package/dist/{chunk-tw4tjc73.js → chunk-0jd3p53p.js} +1 -1
- package/dist/{chunk-waar1mpa.js → chunk-0mf8c3kx.js} +2 -3
- package/dist/{chunk-31959kp1.js → chunk-0t96xx6m.js} +5 -5
- package/dist/chunk-0vrstrej.js +40 -0
- package/dist/{chunk-epat31ss.js → chunk-0vwyh27q.js} +1 -1
- package/dist/{chunk-v4zejp1f.js → chunk-0wcjaby5.js} +57 -57
- package/dist/{chunk-bg86k3wz.js → chunk-0x2d0pvq.js} +83 -339
- package/dist/{chunk-smzahkka.js → chunk-0xfdnpd3.js} +4 -4
- package/dist/{chunk-bgptt4dd.js → chunk-0xkrxtvs.js} +56 -56
- package/dist/{chunk-w8ttjf01.js → chunk-0yncnctp.js} +183 -179
- package/dist/{chunk-m0yqzzgm.js → chunk-11hsxgtv.js} +2 -2
- package/dist/{chunk-6rrp0t66.js → chunk-1gj2ern2.js} +530 -1321
- package/dist/{chunk-zatd0y92.js → chunk-1nmcmem8.js} +5 -5
- package/dist/{chunk-3q10e1r5.js → chunk-22rbrd4c.js} +64 -64
- package/dist/{chunk-ds6b4567.js → chunk-25d4tsxt.js} +67 -67
- package/dist/{chunk-p6359g16.js → chunk-2625r3vm.js} +26 -26
- package/dist/{chunk-sqb7kkqx.js → chunk-262zh26y.js} +6 -6
- package/dist/{chunk-m5chmh67.js → chunk-2c0sn45e.js} +2 -2
- package/dist/{chunk-cb0cjgk3.js → chunk-2d3mes58.js} +56 -56
- package/dist/{chunk-4qcmn89e.js → chunk-2dhbfegz.js} +14 -17
- package/dist/{chunk-whs655k7.js → chunk-2dwsdnd5.js} +57 -57
- package/dist/{chunk-j1psatq5.js → chunk-2j59ksap.js} +3 -3
- package/dist/{chunk-pv6amr31.js → chunk-2kmmz00g.js} +1 -1
- package/dist/{chunk-nt36mbmr.js → chunk-2mtjmgq4.js} +14 -14
- package/dist/{chunk-j2ba3wye.js → chunk-2ne8qzyp.js} +22 -22
- package/dist/chunk-2xpkjfdd.js +94 -0
- package/dist/{chunk-eenv3551.js → chunk-30934n2w.js} +56 -56
- package/dist/{chunk-125xg82c.js → chunk-3a8yw7zy.js} +22 -22
- package/dist/{chunk-hhc28ga0.js → chunk-3aj8x8wh.js} +26 -26
- package/dist/{chunk-j5bved6z.js → chunk-3hk1e3s8.js} +61 -61
- package/dist/{chunk-b43rsa2d.js → chunk-3nys7146.js} +2 -2
- package/dist/{chunk-pbn6n0kg.js → chunk-3px6h32z.js} +56 -56
- package/dist/{chunk-bnznxckg.js → chunk-3rrf7vb7.js} +56 -56
- package/dist/{chunk-j2bv645h.js → chunk-3s96vaet.js} +9 -11
- package/dist/{chunk-8ew7s39b.js → chunk-3wdbgpa5.js} +1 -1
- package/dist/{chunk-a7bs51hq.js → chunk-423tyk90.js} +28 -28
- package/dist/{chunk-6zf34pgy.js → chunk-47sy4t29.js} +1 -1
- package/dist/{chunk-p2xfr5am.js → chunk-48qkvr25.js} +57 -57
- package/dist/{chunk-q4tkspkp.js → chunk-4bfe005x.js} +4 -4
- package/dist/{chunk-qdfzdcz3.js → chunk-4dn253dg.js} +60 -60
- package/dist/{chunk-r089a4na.js → chunk-4gv5n07n.js} +22 -22
- package/dist/{chunk-npvte75f.js → chunk-4jy4qv07.js} +5 -5
- package/dist/{chunk-n00sjrne.js → chunk-4m7gyesz.js} +6 -6
- package/dist/{chunk-90tgpdv5.js → chunk-4q954a7f.js} +3 -3
- package/dist/{chunk-7sgatxct.js → chunk-4qqswajh.js} +5 -5
- package/dist/{chunk-zwwgfs0j.js → chunk-4rwe8abn.js} +3 -3
- package/dist/{chunk-122wp3n9.js → chunk-4sfd9m3h.js} +2 -2
- package/dist/{chunk-q72weaf5.js → chunk-4tn9qqws.js} +829 -2177
- package/dist/{chunk-3d953efq.js → chunk-4wr994cr.js} +5 -5
- package/dist/{chunk-kaqp12mx.js → chunk-4xptxbxj.js} +56 -56
- package/dist/{chunk-9pp9xrw2.js → chunk-50fv6d8k.js} +14 -17
- package/dist/{chunk-fmq83t7h.js → chunk-50x6aec4.js} +3 -3
- package/dist/{chunk-9k7n4z3r.js → chunk-54nmt278.js} +5 -5
- package/dist/{chunk-kn9hzg11.js → chunk-5798ckxm.js} +3 -3
- package/dist/{chunk-m3szhhvz.js → chunk-5bb2bqwr.js} +58 -58
- package/dist/{chunk-63v197w4.js → chunk-5c6821w5.js} +56 -56
- package/dist/{chunk-vh70jg33.js → chunk-5kzpey2d.js} +4 -4
- package/dist/{chunk-4w4wdgeb.js → chunk-5nbjxyeb.js} +23 -23
- package/dist/{chunk-1sg2k4mx.js → chunk-5vdpbk46.js} +515 -515
- package/dist/{chunk-yhc1fee8.js → chunk-5vt3zdmw.js} +23 -23
- package/dist/{chunk-0gqymhpf.js → chunk-61ts87kf.js} +4 -4
- package/dist/{chunk-tjaexdr7.js → chunk-63cw4ef2.js} +56 -56
- package/dist/{chunk-9rtywfhp.js → chunk-64nsm3qd.js} +2 -2
- package/dist/{chunk-7mpdfrdm.js → chunk-656z4m7c.js} +5 -5
- package/dist/{chunk-h9ef6kkf.js → chunk-67xwtjkv.js} +5 -5
- package/dist/{chunk-8jpxzesa.js → chunk-67zpbdn4.js} +1 -1
- package/dist/{chunk-8vawdfrp.js → chunk-6c5zyga7.js} +3 -5
- package/dist/{chunk-mz0qfs55.js → chunk-6dj7qxgs.js} +63 -63
- package/dist/{chunk-jxyh3xyq.js → chunk-6e7m4qwa.js} +23 -23
- package/dist/{chunk-f6qh3vrn.js → chunk-6kw1svfr.js} +4 -4
- package/dist/{chunk-t1mtqz1e.js → chunk-6r247w4d.js} +1 -1
- package/dist/{chunk-4mygvv18.js → chunk-6rjtp4nk.js} +57 -57
- package/dist/{chunk-dct4myst.js → chunk-6yax8ef2.js} +57 -57
- package/dist/{chunk-ntwe4mq2.js → chunk-6zfse75g.js} +11 -11
- package/dist/{chunk-tz2rkx2s.js → chunk-71xc05s3.js} +3 -3
- package/dist/{chunk-2mmx9qqz.js → chunk-769r5are.js} +27 -27
- package/dist/{chunk-zf5wkcyy.js → chunk-7bme7hfa.js} +127 -1099
- package/dist/{chunk-ppa284pd.js → chunk-7h8yq9tw.js} +56 -56
- package/dist/{chunk-sx291v4f.js → chunk-7mkddxxm.js} +63 -63
- package/dist/{chunk-9m27g5s1.js → chunk-7njxy9q8.js} +18 -3
- package/dist/{chunk-vdh36rw7.js → chunk-7pdhxye3.js} +3 -3
- package/dist/{chunk-zpm1rpmw.js → chunk-7q2pgeny.js} +16 -16
- package/dist/{chunk-f16qs2ag.js → chunk-7r37a4t0.js} +56 -56
- package/dist/{chunk-skxa5fes.js → chunk-7sk1sscc.js} +14 -16
- package/dist/{chunk-b3behs0y.js → chunk-7wqgtnxf.js} +3 -3
- package/dist/{chunk-3gaxrmqq.js → chunk-7xsa2mcd.js} +15 -15
- package/dist/{chunk-t1whcbtd.js → chunk-7zzbce1y.js} +73 -73
- package/dist/{chunk-371mcwkv.js → chunk-861s8jy8.js} +7 -7
- package/dist/{chunk-kh9fj2xh.js → chunk-86415apq.js} +60 -60
- package/dist/{chunk-7vzj8rfd.js → chunk-86b8rhe0.js} +4 -4
- package/dist/{chunk-tp3mqwh3.js → chunk-87gjcnga.js} +7 -7
- package/dist/{chunk-vxnvzfnv.js → chunk-8avfrdpz.js} +2 -3
- package/dist/{chunk-6dhen79h.js → chunk-8b3p55rz.js} +8 -8
- package/dist/{chunk-h13g15kb.js → chunk-8bcxzxe5.js} +1 -1
- package/dist/{chunk-pb2x8g1w.js → chunk-8g14cs7t.js} +67 -67
- package/dist/{chunk-s6a338bt.js → chunk-8g3sbhtv.js} +3 -3
- package/dist/{chunk-2f3vsxna.js → chunk-8hmfghmy.js} +5 -5
- package/dist/{chunk-j64ga6ta.js → chunk-8jyp5q4y.js} +304 -272
- package/dist/{chunk-zwkqabbj.js → chunk-8wxvkw8d.js} +11 -11
- package/dist/{chunk-3b5a4wa6.js → chunk-8zfg78yq.js} +22 -22
- package/dist/{chunk-02n5zpyc.js → chunk-95gj5fgc.js} +4 -4
- package/dist/{chunk-rzj6hzme.js → chunk-965vae8e.js} +8 -8
- package/dist/{chunk-rar7nmve.js → chunk-9b7s3jwq.js} +57 -57
- package/dist/{chunk-ga3m4ews.js → chunk-9bt80zz1.js} +56 -56
- package/dist/{chunk-ng8q29em.js → chunk-9f1128wv.js} +2 -2
- package/dist/chunk-9fnz1421.js +180 -0
- package/dist/{chunk-kh9hfyzf.js → chunk-9qjtmqvh.js} +56 -56
- package/dist/{chunk-eserktyd.js → chunk-9szwp11z.js} +4 -4
- package/dist/{chunk-vmfckw4g.js → chunk-9v2wtvk2.js} +56 -56
- package/dist/{chunk-ftwqpbvy.js → chunk-9xz0knh8.js} +56 -56
- package/dist/{chunk-b82adekm.js → chunk-absyky51.js} +57 -57
- package/dist/{chunk-bneqxcmf.js → chunk-acv242nr.js} +1 -1
- package/dist/{chunk-4h43b7ww.js → chunk-ak67x6gk.js} +69 -69
- package/dist/{chunk-w12f58yz.js → chunk-amp2gnxw.js} +14 -17
- package/dist/{chunk-mnrswcqf.js → chunk-anm6tjv1.js} +56 -56
- package/dist/{chunk-b909mp8w.js → chunk-aqf46h5w.js} +1 -1
- package/dist/{chunk-td6j7fcr.js → chunk-avc2286c.js} +56 -56
- package/dist/{chunk-y64tceyw.js → chunk-b08zpkbe.js} +3 -3
- package/dist/{chunk-rn68wk3p.js → chunk-b91fnap2.js} +22 -22
- package/dist/{chunk-2ab59kwj.js → chunk-bdr1btg9.js} +3 -3
- package/dist/{chunk-03mgn26m.js → chunk-bqhegf30.js} +65 -65
- package/dist/{chunk-j04z48rw.js → chunk-bt64sq5y.js} +3 -3
- package/dist/{chunk-5qxgyby3.js → chunk-btma241g.js} +612 -2
- package/dist/{chunk-yztxtgd8.js → chunk-bvrsyxek.js} +66 -66
- package/dist/{chunk-xs12ggs7.js → chunk-c22zscvr.js} +60 -60
- package/dist/{chunk-ex2q76wx.js → chunk-c5yryhhe.js} +1 -1
- package/dist/{chunk-2kxk7ftp.js → chunk-ccecm4xc.js} +59 -59
- package/dist/{chunk-b2pxvgwp.js → chunk-ccpczrgp.js} +10 -10
- package/dist/{chunk-swq8qack.js → chunk-chm6hn2w.js} +24 -24
- package/dist/{chunk-6ge6zddg.js → chunk-chv0ybb2.js} +3 -3
- package/dist/{chunk-bbxfenf0.js → chunk-ckhc04my.js} +57 -57
- package/dist/{chunk-2dtmmwxh.js → chunk-cqvjzkby.js} +4 -4
- package/dist/{chunk-9b2ts7my.js → chunk-d1gqavnx.js} +1 -1
- package/dist/{chunk-5zpstd3m.js → chunk-dd2axg8f.js} +7 -7
- package/dist/{chunk-9b48fxkx.js → chunk-dde29xbq.js} +56 -56
- package/dist/{chunk-0wp0zaz8.js → chunk-ddqc9xg3.js} +57 -57
- package/dist/{chunk-ngrj6x74.js → chunk-df52t7ys.js} +168 -161
- package/dist/{chunk-sw51thrz.js → chunk-dmmgx418.js} +59 -59
- package/dist/{chunk-pp347e16.js → chunk-dt9jxccj.js} +56 -56
- package/dist/{chunk-tq82bwaf.js → chunk-dvd65zc6.js} +2 -2
- package/dist/{chunk-cx8c18e3.js → chunk-dxrv7e4f.js} +62 -62
- package/dist/{chunk-rgm0v4he.js → chunk-e321pz6p.js} +24 -24
- package/dist/{chunk-vmf74a91.js → chunk-e4r3ytgn.js} +57 -57
- package/dist/{chunk-sjmx1scx.js → chunk-e6y51dry.js} +23 -23
- package/dist/{chunk-sd3jwppm.js → chunk-ebbxn1k1.js} +8 -8
- package/dist/{chunk-m1qqm2nc.js → chunk-ec8te99g.js} +3 -3
- package/dist/{chunk-wkh76b1p.js → chunk-enxnnzk5.js} +7 -7
- package/dist/{chunk-zwa133ny.js → chunk-es1hw74y.js} +2 -2
- package/dist/{chunk-ezwhbfk8.js → chunk-evddwqmn.js} +5 -5
- package/dist/{chunk-1j8anrn2.js → chunk-ezn0kc6e.js} +56 -56
- package/dist/{chunk-dc83q1dm.js → chunk-f4kbe948.js} +2 -2
- package/dist/{chunk-w2x18mrn.js → chunk-f5tw1fzg.js} +23 -23
- package/dist/{chunk-5a6vqs49.js → chunk-f7d1nm78.js} +67 -67
- package/dist/{chunk-p6ejgd85.js → chunk-f9r0qhn5.js} +60 -60
- package/dist/{chunk-7rk9ppx4.js → chunk-fbz7854m.js} +1 -1
- package/dist/{chunk-w8krbzb0.js → chunk-fc1dg6fw.js} +4 -4
- package/dist/chunk-ff3ahqvh.js +85 -0
- package/dist/{chunk-yb6x70md.js → chunk-fg5ke2mj.js} +1786 -141
- package/dist/{chunk-dge3af7q.js → chunk-fgccqgaa.js} +8 -8
- package/dist/{chunk-rwzb4fmk.js → chunk-fh13xqb9.js} +59 -59
- package/dist/{chunk-neh0bkkf.js → chunk-fh1s6406.js} +56 -56
- package/dist/{chunk-nzqmmqwj.js → chunk-fh4n4a9x.js} +23 -23
- package/dist/{chunk-kxptk43f.js → chunk-fjawf9k6.js} +57 -57
- package/dist/{chunk-m7r4wqc3.js → chunk-fp4n49gs.js} +1 -1
- package/dist/{chunk-jvgc4q2b.js → chunk-fqrvsdfn.js} +59 -59
- package/dist/{chunk-svw35ajj.js → chunk-fshcxsrd.js} +57 -57
- package/dist/{chunk-h5qx4apy.js → chunk-fswvn2rk.js} +1 -1
- package/dist/{chunk-bwqvhzrw.js → chunk-fthbxpt7.js} +76 -69
- package/dist/{chunk-send164b.js → chunk-ftm33kfs.js} +23 -23
- package/dist/{chunk-1nz1mgm6.js → chunk-fw8e2t6e.js} +39 -268
- package/dist/{chunk-fw64v27c.js → chunk-fz0ch109.js} +3 -3
- package/dist/{chunk-vxs1rvy8.js → chunk-g27zzhxy.js} +6 -6
- package/dist/{chunk-z8zf2bjp.js → chunk-g4qkf769.js} +4 -4
- package/dist/{chunk-j2cbcyf7.js → chunk-g649rtg8.js} +4 -6
- package/dist/{chunk-5p8k3wyp.js → chunk-g80p271x.js} +59 -59
- package/dist/{chunk-ekkewv4y.js → chunk-g8bjvhzs.js} +1 -1
- package/dist/{chunk-js21kfpq.js → chunk-garqv1np.js} +1 -1
- package/dist/{chunk-2c8aqb33.js → chunk-gemm3j13.js} +56 -56
- package/dist/{chunk-t4z17xt4.js → chunk-geytfqmn.js} +10 -10
- package/dist/{chunk-tsdqd747.js → chunk-gfex5hb6.js} +10 -4
- package/dist/{chunk-kk42fg5v.js → chunk-gffypgc8.js} +23 -23
- package/dist/{chunk-4nvhfqsy.js → chunk-gh5t5hks.js} +58 -58
- package/dist/{chunk-h0n9zhgw.js → chunk-gjsh5d1m.js} +56 -56
- package/dist/{chunk-xeehxb1q.js → chunk-gntxvc8d.js} +3 -3
- package/dist/{chunk-yw0st51b.js → chunk-gp0e8n1j.js} +57 -57
- package/dist/{chunk-7t38tp7c.js → chunk-gvw8sq1x.js} +24 -24
- package/dist/{chunk-5dn1m1r7.js → chunk-gwyn2qmg.js} +2 -2
- package/dist/{chunk-h28xqfk8.js → chunk-gybg10fj.js} +62 -62
- package/dist/{chunk-7srwepm7.js → chunk-h0634caf.js} +1 -1
- package/dist/{chunk-zw543g0m.js → chunk-h50avem9.js} +57 -57
- package/dist/{chunk-34vn56ag.js → chunk-h7c9t4eg.js} +8 -8
- package/dist/{chunk-zbrk28bp.js → chunk-h9vwd6jb.js} +56 -56
- package/dist/{chunk-nn8nkawn.js → chunk-hece55mn.js} +7 -7
- package/dist/{chunk-skrja2sz.js → chunk-hj1zymy7.js} +2 -2
- package/dist/{chunk-7sgn6fv0.js → chunk-hnydgd6d.js} +6 -6
- package/dist/{chunk-9azyfe65.js → chunk-hrj5pszj.js} +61 -61
- package/dist/{chunk-vhjhyt2r.js → chunk-j2dwrqy6.js} +26 -26
- package/dist/{chunk-ebx4j5r5.js → chunk-j6k3zjb5.js} +5 -7
- package/dist/{chunk-3nmhzccb.js → chunk-j6v1eh21.js} +2 -2
- package/dist/{chunk-2xezy8pc.js → chunk-jfr51c5y.js} +7 -7
- package/dist/{chunk-khdftpea.js → chunk-jgxk5p8d.js} +9 -9
- package/dist/{chunk-cs9xxrmx.js → chunk-jh5g3xkz.js} +56 -56
- package/dist/{chunk-zvxjnak3.js → chunk-jpawr85p.js} +56 -56
- package/dist/{chunk-rvp6qq44.js → chunk-jqv2patg.js} +5 -5
- package/dist/{chunk-9kqtdah4.js → chunk-jr21cjeg.js} +1 -1
- package/dist/{chunk-znehavdm.js → chunk-jvnb1zrw.js} +1 -1
- package/dist/{chunk-34b0y9w3.js → chunk-k4xqffsa.js} +57 -57
- package/dist/{chunk-92skmpg9.js → chunk-k53j516k.js} +56 -56
- package/dist/{chunk-jd2ams26.js → chunk-k6h9p8gg.js} +6 -6
- package/dist/{chunk-3c1ddhnk.js → chunk-kgbtjbmd.js} +19 -207
- package/dist/{chunk-ztqfa7pd.js → chunk-khz74t05.js} +56 -56
- package/dist/{chunk-xt4v95je.js → chunk-kjkb2g5m.js} +3 -3
- package/dist/{chunk-tyxhcbsd.js → chunk-kpmqm0t6.js} +1 -1
- package/dist/{chunk-d09j71dr.js → chunk-kqdp5wzc.js} +6 -6
- package/dist/{chunk-8y3eszv7.js → chunk-krbnqs28.js} +2 -2
- package/dist/{chunk-wj8gbr2g.js → chunk-kt3be60k.js} +58 -58
- package/dist/{chunk-vgdtw10n.js → chunk-ktzxeprc.js} +2 -2
- package/dist/{chunk-65gzht6d.js → chunk-m38tg84x.js} +56 -56
- package/dist/{chunk-b3t64cwd.js → chunk-m3x5s3db.js} +59 -59
- package/dist/{chunk-z5w7a1cv.js → chunk-m7p0qsyd.js} +26 -26
- package/dist/{chunk-njdz3yry.js → chunk-mb56b98v.js} +4 -4
- package/dist/{chunk-jp8tnjzr.js → chunk-mc0ehz52.js} +59 -59
- package/dist/{chunk-vf3etxnx.js → chunk-mcs219z2.js} +1 -1
- package/dist/{chunk-ffy37ks3.js → chunk-mdcz65hq.js} +23 -23
- package/dist/{chunk-61edjmf6.js → chunk-mg1w5bk3.js} +2 -2
- package/dist/{chunk-metmg93w.js → chunk-mgjpqqqv.js} +2 -2
- package/dist/{chunk-1k0wbt0f.js → chunk-mn4ve34r.js} +87 -87
- package/dist/{chunk-4vqz7w3v.js → chunk-mratscx5.js} +4 -4
- package/dist/{chunk-n5pe3jtt.js → chunk-n1bh6pgv.js} +2 -2
- package/dist/{chunk-t0twk3e5.js → chunk-n217n8sr.js} +1 -1
- package/dist/chunk-n35vwqby.js +777 -0
- package/dist/{chunk-4tre5ddg.js → chunk-neak2qc4.js} +1 -1
- package/dist/{chunk-w8yhf638.js → chunk-nfnvct96.js} +1 -1
- package/dist/{chunk-e5ewhhx6.js → chunk-nm4p4t82.js} +56 -56
- package/dist/{chunk-9pkh2w7v.js → chunk-nm5gk39k.js} +8 -8
- package/dist/{chunk-wyz7j9j0.js → chunk-nr4y1jqa.js} +23 -23
- package/dist/{chunk-1d0d18qj.js → chunk-nsnkzerj.js} +22 -22
- package/dist/{chunk-j5keq4ye.js → chunk-nt65jyx9.js} +60 -60
- package/dist/{chunk-0pkrwxrg.js → chunk-nz4mxnb9.js} +3 -3
- package/dist/{chunk-74v2mh4t.js → chunk-p1adg740.js} +1 -1
- package/dist/{chunk-d8ztpy7x.js → chunk-p45yh5qt.js} +7 -7
- package/dist/{chunk-jvf4wvhn.js → chunk-p4nbt9zw.js} +57 -57
- package/dist/{chunk-0xfz1hj1.js → chunk-pbrwgq4d.js} +6 -6
- package/dist/{chunk-6hk5a6ky.js → chunk-pc5qdkr6.js} +56 -56
- package/dist/{chunk-67jg7cfy.js → chunk-phce1mav.js} +2 -2
- package/dist/{chunk-vjv7wvnc.js → chunk-phqrbrn0.js} +4 -4
- package/dist/{chunk-3xhmzvxm.js → chunk-pjkaqt23.js} +5 -5
- package/dist/{chunk-jq9vjfbd.js → chunk-pjqxn9ac.js} +57 -57
- package/dist/{chunk-npywdb7q.js → chunk-pn1wg9d1.js} +3 -3
- package/dist/{chunk-f62xm8dh.js → chunk-pn8s6m5g.js} +3 -3
- package/dist/{chunk-9snpw77c.js → chunk-pnarhx6j.js} +67 -67
- package/dist/{chunk-6eq35v86.js → chunk-pnv69npn.js} +1 -1
- package/dist/{chunk-1395xfcq.js → chunk-pyzhdqts.js} +58 -58
- package/dist/{chunk-j95j6wz8.js → chunk-q27bsq0y.js} +1 -1
- package/dist/chunk-q697t7v5.js +500 -0
- package/dist/{chunk-wdwa58v1.js → chunk-qc0qywhh.js} +59 -59
- package/dist/{chunk-3jjc204v.js → chunk-qcgd8bgd.js} +18 -18
- package/dist/{chunk-d9bvzfkg.js → chunk-qd5ch7gy.js} +62 -62
- package/dist/{chunk-vj8q7shk.js → chunk-qe7arwgg.js} +2 -2
- package/dist/{chunk-r41sjxcn.js → chunk-qegzj6nm.js} +1 -1
- package/dist/{chunk-9jt1c7t9.js → chunk-qenkaqer.js} +58 -58
- package/dist/{chunk-hyc3kbfq.js → chunk-qevpw4g9.js} +4 -4
- package/dist/{chunk-kerkk89t.js → chunk-qfdzqed0.js} +4 -4
- package/dist/{chunk-99p0sa4h.js → chunk-qhw6wg0y.js} +2 -2
- package/dist/{chunk-6jdrt36m.js → chunk-qk4akts4.js} +2 -2
- package/dist/{chunk-knc5za98.js → chunk-qkjkr973.js} +57 -57
- package/dist/{chunk-5ycqyqbj.js → chunk-qnbe7d8a.js} +1 -1
- package/dist/{chunk-e4jqbn4d.js → chunk-qqfbkaad.js} +3 -4
- package/dist/{chunk-zqhxr0h7.js → chunk-qs2xnhte.js} +5 -7
- package/dist/{chunk-hfy21maq.js → chunk-qszxzska.js} +6 -6
- package/dist/{chunk-nbvc8bh6.js → chunk-qvf5w48h.js} +24 -24
- package/dist/{chunk-tbce47cr.js → chunk-qxsrtfzn.js} +4 -4
- package/dist/{chunk-2cpxc5we.js → chunk-r1931n7y.js} +56 -56
- package/dist/{chunk-13g6d7wt.js → chunk-r3rck4qa.js} +10 -10
- package/dist/{chunk-pb2nc7r0.js → chunk-r5c38r2r.js} +149 -61
- package/dist/{chunk-k6tzzr9c.js → chunk-r65v6fg2.js} +7 -7
- package/dist/{chunk-me2986xy.js → chunk-r6v7yh3c.js} +57 -57
- package/dist/{chunk-ns3babbs.js → chunk-r7mjzgyn.js} +2 -4
- package/dist/{chunk-jxe1a8kz.js → chunk-rbkzzw66.js} +6 -6
- package/dist/chunk-red9b98p.js +378 -0
- package/dist/{chunk-drnxbc1w.js → chunk-rfp8ja4z.js} +2 -2
- package/dist/{chunk-g8w2205d.js → chunk-rhcejk4j.js} +6 -6
- package/dist/{chunk-r6ewgv12.js → chunk-rjpkjatc.js} +1 -1
- package/dist/{chunk-rw44vqpq.js → chunk-rqzrj3gm.js} +56 -56
- package/dist/{chunk-g0jmqbp4.js → chunk-rr9tqgxc.js} +6 -6
- package/dist/{chunk-s38qgqfs.js → chunk-rrtkz2js.js} +4 -4
- package/dist/{chunk-k95meznc.js → chunk-rsf6y5zm.js} +7 -7
- package/dist/{chunk-7jm7pa1e.js → chunk-ryd3pd8a.js} +14 -17
- package/dist/{chunk-wn8nakrh.js → chunk-s748h9my.js} +56 -56
- package/dist/{chunk-32fv3vze.js → chunk-s8a5ta09.js} +25 -25
- package/dist/{chunk-5wxavbb8.js → chunk-sa4athwh.js} +23 -23
- package/dist/{chunk-ew68a4sy.js → chunk-sec4gngn.js} +57 -57
- package/dist/{chunk-wxe04dx4.js → chunk-sf8fnzc3.js} +3 -3
- package/dist/{chunk-k591s450.js → chunk-sfh6dmxz.js} +56 -56
- package/dist/chunk-shj5md9j.js +1486 -0
- package/dist/{chunk-n0pkzaaw.js → chunk-smcj5g84.js} +6 -6
- package/dist/{chunk-0ejzh5by.js → chunk-spw5dfzh.js} +58 -58
- package/dist/{chunk-1ymedh1v.js → chunk-stwnpgkm.js} +23 -23
- package/dist/{chunk-0kh2f6kh.js → chunk-sz53f4b4.js} +3 -3
- package/dist/{chunk-ndcrbqq2.js → chunk-t24yf1vt.js} +57 -57
- package/dist/{chunk-z93cpz34.js → chunk-t7b3r8v9.js} +3 -3
- package/dist/{chunk-00m08jnq.js → chunk-ta5dpd9k.js} +56 -56
- package/dist/{chunk-mj9rbmy1.js → chunk-tdcaa5xt.js} +5 -5
- package/dist/{chunk-zr78q4qg.js → chunk-tephtjvc.js} +56 -56
- package/dist/{chunk-7f0atzzf.js → chunk-tgwvgrb8.js} +57 -57
- package/dist/{chunk-95dy6w67.js → chunk-tq7vtsx4.js} +2 -2
- package/dist/{chunk-vhk0hgnv.js → chunk-tvw4vmrq.js} +56 -56
- package/dist/{chunk-7vzwyazf.js → chunk-v1rvqs6p.js} +4 -4
- package/dist/{chunk-tzpxsjm3.js → chunk-v3rtftz9.js} +29 -29
- package/dist/{chunk-sm24ay0y.js → chunk-v3yayvzt.js} +117 -117
- package/dist/{chunk-z6wpnk5y.js → chunk-vn9vww4b.js} +1 -1
- package/dist/{chunk-84cjtasj.js → chunk-vnc0m7be.js} +58 -58
- package/dist/{chunk-0wrzeej6.js → chunk-vqnb1we6.js} +1 -1
- package/dist/{chunk-fq1j9zm0.js → chunk-vsa6z84y.js} +3 -3
- package/dist/{chunk-atpyr1kg.js → chunk-vvf0dstd.js} +57 -57
- package/dist/{chunk-6v1p41rg.js → chunk-vy5q8hrp.js} +7 -7
- package/dist/{chunk-mbv3f2vm.js → chunk-vywhk0sd.js} +4 -4
- package/dist/{chunk-t2ex5gsn.js → chunk-w02wh43r.js} +3 -3
- package/dist/{chunk-e08marnp.js → chunk-w058sn3x.js} +4 -4
- package/dist/{chunk-mq7m54qk.js → chunk-w5nbvkxb.js} +69 -69
- package/dist/{chunk-8ympg941.js → chunk-w6eqjaa7.js} +1 -1
- package/dist/{chunk-rexrttsb.js → chunk-wcz7qa33.js} +33 -33
- package/dist/{chunk-jh0d0pbd.js → chunk-wg0d4shw.js} +4 -4
- package/dist/{chunk-7kbezevv.js → chunk-wk9wdgv6.js} +5 -5
- package/dist/{chunk-edt6c4pc.js → chunk-wkjptwgy.js} +73 -73
- package/dist/{chunk-ekqvx6ek.js → chunk-wn36chwc.js} +56 -56
- package/dist/{chunk-sdzpdzj3.js → chunk-wnncbex7.js} +58 -58
- package/dist/{chunk-s8zha7q1.js → chunk-ws1046mv.js} +9 -11
- package/dist/{chunk-bhwnjx3e.js → chunk-wtymvrh9.js} +8 -8
- package/dist/{chunk-drnr3z7x.js → chunk-wz2qyvhx.js} +144 -144
- package/dist/{chunk-sf4rsw52.js → chunk-x463hr55.js} +8 -8
- package/dist/{chunk-xafy9ccy.js → chunk-x6gjy97a.js} +57 -57
- package/dist/{chunk-1zrpqh8h.js → chunk-x7aa6ah7.js} +1 -1
- package/dist/{chunk-79ztw13h.js → chunk-x89jeqbz.js} +2 -2
- package/dist/{chunk-2katyzq9.js → chunk-x8zp00qp.js} +3 -3
- package/dist/{chunk-g24e2jr3.js → chunk-xgxyhgy9.js} +56 -56
- package/dist/{chunk-8w2a9md8.js → chunk-xmmg3e9j.js} +3 -3
- package/dist/{chunk-7e78w86v.js → chunk-xn1wfxt2.js} +3 -3
- package/dist/{chunk-sjraxh5y.js → chunk-xr186qye.js} +57 -57
- package/dist/{chunk-fp2z22f1.js → chunk-xrrbcvj4.js} +59 -59
- package/dist/{chunk-g1jfytsa.js → chunk-xt17cf7n.js} +5 -5
- package/dist/{chunk-tzaj5mwz.js → chunk-xt71y0fa.js} +31 -31
- package/dist/{chunk-rvn77re6.js → chunk-xws9mdet.js} +23 -23
- package/dist/{chunk-vny8tpke.js → chunk-xza7dswj.js} +24 -24
- package/dist/{chunk-d6713rzt.js → chunk-y2zdt5wf.js} +30 -10
- package/dist/{chunk-z5tmqz5e.js → chunk-y4kd1f5p.js} +56 -56
- package/dist/{chunk-t31xvfy2.js → chunk-y5rq3t59.js} +60 -60
- package/dist/{chunk-avtcf910.js → chunk-y5x8wqe5.js} +1 -1
- package/dist/{chunk-wsm0s0c3.js → chunk-yd1xffwg.js} +3 -3
- package/dist/{chunk-vntvaf0c.js → chunk-ydepjfqs.js} +63 -63
- package/dist/{chunk-x6ceqp7t.js → chunk-ydwdbxgd.js} +23 -23
- package/dist/{chunk-hk24qq7n.js → chunk-yh27vvgm.js} +9 -9
- package/dist/{chunk-y8ab9dyv.js → chunk-yn6phqhx.js} +1 -1
- package/dist/{chunk-dc4krjj4.js → chunk-yr4qqfcj.js} +22 -22
- package/dist/{chunk-z43cvm9f.js → chunk-yrzxjvas.js} +75 -75
- package/dist/{chunk-7d3ba1n4.js → chunk-yvzh49tc.js} +1 -1
- package/dist/chunk-z51d7scc.js +244 -0
- package/dist/chunk-zdf30s24.js +334 -0
- package/dist/{chunk-dxcr07z5.js → chunk-ze6zvkg6.js} +4 -4
- package/dist/{chunk-nbath9yz.js → chunk-zhd2dv7y.js} +7 -7
- package/dist/{chunk-nvrje5t4.js → chunk-zm18kc5q.js} +70 -70
- package/dist/{chunk-3px6f9s5.js → chunk-zshqb2h1.js} +2 -2
- package/dist/{chunk-d6vexw90.js → chunk-zyy7th0a.js} +1 -1
- package/dist/cli-bun.js +0 -0
- package/dist/cli-node.js +418 -10
- package/dist/cli.js +11 -11
- package/dist/download-ripgrep.js +1 -1
- package/package.json +200 -195
- package/scripts/postinstall.cjs +339 -339
- package/scripts/setup-chrome-mcp.mjs +39 -39
- package/dist/chunk-05rcynmf.js +0 -81
- package/dist/chunk-27xc1csx.js +0 -104
- package/dist/chunk-30rst83v.js +0 -168
- package/dist/chunk-33tdaxv0.js +0 -16
- package/dist/chunk-3enkzjbw.js +0 -3966
- package/dist/chunk-3h8a89gy.js +0 -46
- package/dist/chunk-3qm927vk.js +0 -542
- package/dist/chunk-3z7wsvpa.js +0 -24
- package/dist/chunk-44ct1wzm.js +0 -17
- package/dist/chunk-4s0bw3mn.js +0 -208
- package/dist/chunk-7m3ja921.js +0 -27
- package/dist/chunk-7vs34s16.js +0 -173
- package/dist/chunk-80h2am3g.js +0 -5241
- package/dist/chunk-8f6raa6q.js +0 -615
- package/dist/chunk-a9vdeb6y.js +0 -258
- package/dist/chunk-ahc4y7pa.js +0 -782
- package/dist/chunk-b0bk6bxs.js +0 -742
- package/dist/chunk-b4wg70y1.js +0 -54
- package/dist/chunk-btnvjcc5.js +0 -15
- package/dist/chunk-cs6c9gbk.js +0 -1172
- package/dist/chunk-enhtm7h3.js +0 -1731
- package/dist/chunk-fckn68n0.js +0 -180
- package/dist/chunk-h0qngp9w.js +0 -157
- package/dist/chunk-hasadm64.js +0 -412
- package/dist/chunk-hk9xz7gk.js +0 -118
- package/dist/chunk-j2k4p94p.js +0 -55
- package/dist/chunk-jgcsawpq.js +0 -659
- package/dist/chunk-jzmz18nn.js +0 -65
- package/dist/chunk-kg4qmgbk.js +0 -1095
- package/dist/chunk-n0qaeaa5.js +0 -256
- package/dist/chunk-nbxr4cfd.js +0 -880
- package/dist/chunk-q25bjaev.js +0 -15
- package/dist/chunk-qpydzzk0.js +0 -182
- package/dist/chunk-qqy9drhh.js +0 -864
- package/dist/chunk-qtddenhw.js +0 -607
- package/dist/chunk-r6h4zwjj.js +0 -36
- package/dist/chunk-th1cykx3.js +0 -494
- package/dist/chunk-ttk5dzz8.js +0 -25
- package/dist/chunk-v9yc4wjc.js +0 -220
- package/dist/chunk-vsemkegd.js +0 -718
- package/dist/chunk-wadkbt36.js +0 -40
- package/dist/chunk-xsq9ae7x.js +0 -90
- package/dist/chunk-ze6h1ch1.js +0 -21
- package/dist/chunk-ztpbxsq6.js +0 -910
- package/dist/{chunk-2j1t3hcw.js → chunk-a07s68gh.js} +3 -3
|
@@ -2819,60 +2819,41 @@ ${hashEntry(stringified)} ${stringified}`);
|
|
|
2819
2819
|
}
|
|
2820
2820
|
});
|
|
2821
2821
|
|
|
2822
|
-
// node_modules/.bun/lru-cache@11.
|
|
2822
|
+
// node_modules/.bun/lru-cache@11.3.5/node_modules/lru-cache/dist/commonjs/index.min.js
|
|
2823
2823
|
var require_index_min = __commonJS((exports) => {
|
|
2824
|
+
var G = (c, t) => () => (t || c((t = { exports: {} }).exports, t), t.exports);
|
|
2825
|
+
var M = G((O) => {
|
|
2826
|
+
Object.defineProperty(O, "__esModule", { value: true });
|
|
2827
|
+
O.tracing = O.metrics = undefined;
|
|
2828
|
+
var L = __require("diagnostics_channel");
|
|
2829
|
+
O.metrics = (0, L.channel)("lru-cache:metrics");
|
|
2830
|
+
O.tracing = (0, L.tracingChannel)("lru-cache");
|
|
2831
|
+
});
|
|
2824
2832
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2825
2833
|
exports.LRUCache = undefined;
|
|
2826
|
-
var
|
|
2834
|
+
var u = M();
|
|
2835
|
+
var D = () => u.metrics.hasSubscribers || u.tracing.hasSubscribers;
|
|
2836
|
+
var P = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date;
|
|
2827
2837
|
var U = new Set;
|
|
2828
|
-
var
|
|
2829
|
-
var
|
|
2830
|
-
typeof
|
|
2838
|
+
var j = typeof process == "object" && process ? process : {};
|
|
2839
|
+
var H = (c, t, e, i) => {
|
|
2840
|
+
typeof j.emitWarning == "function" ? j.emitWarning(c, t, e, i) : console.error(`[${e}] ${t}: ${c}`);
|
|
2831
2841
|
};
|
|
2832
|
-
var
|
|
2833
|
-
var
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
_onabort = [];
|
|
2838
|
-
reason;
|
|
2839
|
-
aborted = false;
|
|
2840
|
-
addEventListener(i, s) {
|
|
2841
|
-
this._onabort.push(s);
|
|
2842
|
-
}
|
|
2843
|
-
}, C = class {
|
|
2844
|
-
constructor() {
|
|
2845
|
-
t();
|
|
2846
|
-
}
|
|
2847
|
-
signal = new L;
|
|
2848
|
-
abort(i) {
|
|
2849
|
-
if (!this.signal.aborted) {
|
|
2850
|
-
this.signal.reason = i, this.signal.aborted = true;
|
|
2851
|
-
for (let s of this.signal._onabort)
|
|
2852
|
-
s(i);
|
|
2853
|
-
this.signal.onabort?.(i);
|
|
2854
|
-
}
|
|
2855
|
-
}
|
|
2856
|
-
};
|
|
2857
|
-
let c = R.env?.LRU_CACHE_IGNORE_AC_WARNING !== "1", t = () => {
|
|
2858
|
-
c && (c = false, I("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.", "NO_ABORT_CONTROLLER", "ENOTSUP", t));
|
|
2859
|
-
};
|
|
2860
|
-
}
|
|
2861
|
-
var x = (c) => !U.has(c);
|
|
2862
|
-
var H = Symbol("type");
|
|
2863
|
-
var y = (c) => c && c === Math.floor(c) && c > 0 && isFinite(c);
|
|
2864
|
-
var M = (c) => y(c) ? c <= Math.pow(2, 8) ? Uint8Array : c <= Math.pow(2, 16) ? Uint16Array : c <= Math.pow(2, 32) ? Uint32Array : c <= Number.MAX_SAFE_INTEGER ? z : null : null;
|
|
2865
|
-
var z = class extends Array {
|
|
2842
|
+
var N = (c) => !U.has(c);
|
|
2843
|
+
var B = Symbol("type");
|
|
2844
|
+
var F = (c) => !!c && c === Math.floor(c) && c > 0 && isFinite(c);
|
|
2845
|
+
var I = (c) => F(c) ? c <= Math.pow(2, 8) ? Uint8Array : c <= Math.pow(2, 16) ? Uint16Array : c <= Math.pow(2, 32) ? Uint32Array : c <= Number.MAX_SAFE_INTEGER ? W : null : null;
|
|
2846
|
+
var W = class extends Array {
|
|
2866
2847
|
constructor(t) {
|
|
2867
2848
|
super(t), this.fill(0);
|
|
2868
2849
|
}
|
|
2869
2850
|
};
|
|
2870
|
-
var
|
|
2851
|
+
var C = class c {
|
|
2871
2852
|
heap;
|
|
2872
2853
|
length;
|
|
2873
2854
|
static #o = false;
|
|
2874
2855
|
static create(t) {
|
|
2875
|
-
let e =
|
|
2856
|
+
let e = I(t);
|
|
2876
2857
|
if (!e)
|
|
2877
2858
|
return [];
|
|
2878
2859
|
c.#o = true;
|
|
@@ -2891,17 +2872,17 @@ var require_index_min = __commonJS((exports) => {
|
|
|
2891
2872
|
return this.heap[--this.length];
|
|
2892
2873
|
}
|
|
2893
2874
|
};
|
|
2894
|
-
var
|
|
2875
|
+
var x = class c {
|
|
2895
2876
|
#o;
|
|
2896
2877
|
#c;
|
|
2878
|
+
#m;
|
|
2879
|
+
#D;
|
|
2897
2880
|
#w;
|
|
2898
|
-
#
|
|
2881
|
+
#M;
|
|
2882
|
+
#j;
|
|
2899
2883
|
#S;
|
|
2900
|
-
#L;
|
|
2901
|
-
#U;
|
|
2902
|
-
#m;
|
|
2903
2884
|
get perf() {
|
|
2904
|
-
return this.#
|
|
2885
|
+
return this.#S;
|
|
2905
2886
|
}
|
|
2906
2887
|
ttl;
|
|
2907
2888
|
ttlResolution;
|
|
@@ -2919,30 +2900,30 @@ var require_index_min = __commonJS((exports) => {
|
|
|
2919
2900
|
allowStaleOnFetchRejection;
|
|
2920
2901
|
ignoreFetchAbort;
|
|
2921
2902
|
#n;
|
|
2922
|
-
#
|
|
2903
|
+
#b;
|
|
2923
2904
|
#s;
|
|
2924
2905
|
#i;
|
|
2925
2906
|
#t;
|
|
2926
|
-
#a;
|
|
2927
|
-
#u;
|
|
2928
2907
|
#l;
|
|
2908
|
+
#u;
|
|
2909
|
+
#a;
|
|
2929
2910
|
#h;
|
|
2930
|
-
#b;
|
|
2931
|
-
#r;
|
|
2932
2911
|
#y;
|
|
2933
|
-
#
|
|
2912
|
+
#r;
|
|
2913
|
+
#_;
|
|
2914
|
+
#F;
|
|
2934
2915
|
#d;
|
|
2935
2916
|
#g;
|
|
2936
2917
|
#T;
|
|
2937
|
-
#
|
|
2918
|
+
#O;
|
|
2938
2919
|
#f;
|
|
2939
|
-
#
|
|
2920
|
+
#U;
|
|
2940
2921
|
static unsafeExposeInternals(t) {
|
|
2941
|
-
return { starts: t.#
|
|
2942
|
-
return t.#
|
|
2922
|
+
return { starts: t.#F, ttls: t.#d, autopurgeTimers: t.#g, sizes: t.#_, keyMap: t.#s, keyList: t.#i, valList: t.#t, next: t.#l, prev: t.#u, get head() {
|
|
2923
|
+
return t.#a;
|
|
2943
2924
|
}, get tail() {
|
|
2944
2925
|
return t.#h;
|
|
2945
|
-
}, free: t.#
|
|
2926
|
+
}, free: t.#y, isBackgroundFetch: (e) => t.#e(e), backgroundFetch: (e, i, s, n) => t.#P(e, i, s, n), moveToTail: (e) => t.#L(e), indexes: (e) => t.#A(e), rindexes: (e) => t.#v(e), isStale: (e) => t.#p(e) };
|
|
2946
2927
|
}
|
|
2947
2928
|
get max() {
|
|
2948
2929
|
return this.#o;
|
|
@@ -2951,36 +2932,36 @@ var require_index_min = __commonJS((exports) => {
|
|
|
2951
2932
|
return this.#c;
|
|
2952
2933
|
}
|
|
2953
2934
|
get calculatedSize() {
|
|
2954
|
-
return this.#
|
|
2935
|
+
return this.#b;
|
|
2955
2936
|
}
|
|
2956
2937
|
get size() {
|
|
2957
2938
|
return this.#n;
|
|
2958
2939
|
}
|
|
2959
2940
|
get fetchMethod() {
|
|
2960
|
-
return this.#
|
|
2941
|
+
return this.#M;
|
|
2961
2942
|
}
|
|
2962
2943
|
get memoMethod() {
|
|
2963
|
-
return this.#
|
|
2944
|
+
return this.#j;
|
|
2964
2945
|
}
|
|
2965
2946
|
get dispose() {
|
|
2966
|
-
return this.#
|
|
2947
|
+
return this.#m;
|
|
2967
2948
|
}
|
|
2968
2949
|
get onInsert() {
|
|
2969
|
-
return this.#
|
|
2950
|
+
return this.#D;
|
|
2970
2951
|
}
|
|
2971
2952
|
get disposeAfter() {
|
|
2972
|
-
return this.#
|
|
2953
|
+
return this.#w;
|
|
2973
2954
|
}
|
|
2974
2955
|
constructor(t) {
|
|
2975
|
-
let { max: e = 0, ttl: i, ttlResolution: s = 1, ttlAutopurge: n, updateAgeOnGet: o, updateAgeOnHas:
|
|
2976
|
-
if (
|
|
2956
|
+
let { max: e = 0, ttl: i, ttlResolution: s = 1, ttlAutopurge: n, updateAgeOnGet: o, updateAgeOnHas: r, allowStale: h, dispose: a, onInsert: d, disposeAfter: f, noDisposeOnSet: p, noUpdateTTL: m, maxSize: T = 0, maxEntrySize: w = 0, sizeCalculation: y, fetchMethod: l, memoMethod: S, noDeleteOnFetchRejection: _, noDeleteOnStaleGet: b, allowStaleOnFetchRejection: g, allowStaleOnFetchAbort: A, ignoreFetchAbort: v, perf: R } = t;
|
|
2957
|
+
if (R !== undefined && typeof R?.now != "function")
|
|
2977
2958
|
throw new TypeError("perf option must have a now() method if specified");
|
|
2978
|
-
if (this.#
|
|
2959
|
+
if (this.#S = R ?? P, e !== 0 && !F(e))
|
|
2979
2960
|
throw new TypeError("max option must be a nonnegative integer");
|
|
2980
|
-
let
|
|
2981
|
-
if (!
|
|
2961
|
+
let z = e ? I(e) : Array;
|
|
2962
|
+
if (!z)
|
|
2982
2963
|
throw new Error("invalid max value: " + e);
|
|
2983
|
-
if (this.#o = e, this.#c =
|
|
2964
|
+
if (this.#o = e, this.#c = T, this.maxEntrySize = w || this.#c, this.sizeCalculation = y, this.sizeCalculation) {
|
|
2984
2965
|
if (!this.#c && !this.maxEntrySize)
|
|
2985
2966
|
throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");
|
|
2986
2967
|
if (typeof this.sizeCalculation != "function")
|
|
@@ -2988,155 +2969,155 @@ var require_index_min = __commonJS((exports) => {
|
|
|
2988
2969
|
}
|
|
2989
2970
|
if (S !== undefined && typeof S != "function")
|
|
2990
2971
|
throw new TypeError("memoMethod must be a function if defined");
|
|
2991
|
-
if (this.#
|
|
2972
|
+
if (this.#j = S, l !== undefined && typeof l != "function")
|
|
2992
2973
|
throw new TypeError("fetchMethod must be a function if specified");
|
|
2993
|
-
if (this.#
|
|
2994
|
-
if (this.#c !== 0 && !
|
|
2974
|
+
if (this.#M = l, this.#O = !!l, this.#s = new Map, this.#i = Array.from({ length: e }).fill(undefined), this.#t = Array.from({ length: e }).fill(undefined), this.#l = new z(e), this.#u = new z(e), this.#a = 0, this.#h = 0, this.#y = C.create(e), this.#n = 0, this.#b = 0, typeof a == "function" && (this.#m = a), typeof d == "function" && (this.#D = d), typeof f == "function" ? (this.#w = f, this.#r = []) : (this.#w = undefined, this.#r = undefined), this.#T = !!this.#m, this.#U = !!this.#D, this.#f = !!this.#w, this.noDisposeOnSet = !!p, this.noUpdateTTL = !!m, this.noDeleteOnFetchRejection = !!_, this.allowStaleOnFetchRejection = !!g, this.allowStaleOnFetchAbort = !!A, this.ignoreFetchAbort = !!v, this.maxEntrySize !== 0) {
|
|
2975
|
+
if (this.#c !== 0 && !F(this.#c))
|
|
2995
2976
|
throw new TypeError("maxSize must be a positive integer if specified");
|
|
2996
|
-
if (!
|
|
2977
|
+
if (!F(this.maxEntrySize))
|
|
2997
2978
|
throw new TypeError("maxEntrySize must be a positive integer if specified");
|
|
2998
|
-
this.#
|
|
2979
|
+
this.#X();
|
|
2999
2980
|
}
|
|
3000
|
-
if (this.allowStale = !!
|
|
3001
|
-
if (!
|
|
2981
|
+
if (this.allowStale = !!h, this.noDeleteOnStaleGet = !!b, this.updateAgeOnGet = !!o, this.updateAgeOnHas = !!r, this.ttlResolution = F(s) || s === 0 ? s : 1, this.ttlAutopurge = !!n, this.ttl = i || 0, this.ttl) {
|
|
2982
|
+
if (!F(this.ttl))
|
|
3002
2983
|
throw new TypeError("ttl must be a positive integer if specified");
|
|
3003
|
-
this.#
|
|
2984
|
+
this.#H();
|
|
3004
2985
|
}
|
|
3005
2986
|
if (this.#o === 0 && this.ttl === 0 && this.#c === 0)
|
|
3006
2987
|
throw new TypeError("At least one of max, maxSize, or ttl is required");
|
|
3007
2988
|
if (!this.ttlAutopurge && !this.#o && !this.#c) {
|
|
3008
2989
|
let E = "LRU_CACHE_UNBOUNDED";
|
|
3009
|
-
|
|
2990
|
+
N(E) && (U.add(E), H("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", E, c));
|
|
3010
2991
|
}
|
|
3011
2992
|
}
|
|
3012
2993
|
getRemainingTTL(t) {
|
|
3013
2994
|
return this.#s.has(t) ? 1 / 0 : 0;
|
|
3014
2995
|
}
|
|
3015
|
-
#
|
|
3016
|
-
let t = new
|
|
3017
|
-
this.#d = t, this.#
|
|
3018
|
-
let i = this.ttlAutopurge ?
|
|
3019
|
-
this.#g = i, this.#N = (
|
|
3020
|
-
e[
|
|
3021
|
-
}, this.#R = (
|
|
3022
|
-
e[
|
|
2996
|
+
#H() {
|
|
2997
|
+
let t = new W(this.#o), e = new W(this.#o);
|
|
2998
|
+
this.#d = t, this.#F = e;
|
|
2999
|
+
let i = this.ttlAutopurge ? Array.from({ length: this.#o }) : undefined;
|
|
3000
|
+
this.#g = i, this.#N = (r, h, a = this.#S.now()) => {
|
|
3001
|
+
e[r] = h !== 0 ? a : 0, t[r] = h, s(r, h);
|
|
3002
|
+
}, this.#R = (r) => {
|
|
3003
|
+
e[r] = t[r] !== 0 ? this.#S.now() : 0, s(r, t[r]);
|
|
3023
3004
|
};
|
|
3024
|
-
let s = this.ttlAutopurge ? (
|
|
3025
|
-
if (i?.[
|
|
3005
|
+
let s = this.ttlAutopurge ? (r, h) => {
|
|
3006
|
+
if (i?.[r] && (clearTimeout(i[r]), i[r] = undefined), h && h !== 0 && i) {
|
|
3026
3007
|
let a = setTimeout(() => {
|
|
3027
|
-
this.#p(
|
|
3028
|
-
},
|
|
3029
|
-
a.unref && a.unref(), i[
|
|
3008
|
+
this.#p(r) && this.#z(this.#i[r], "expire");
|
|
3009
|
+
}, h + 1);
|
|
3010
|
+
a.unref && a.unref(), i[r] = a;
|
|
3030
3011
|
}
|
|
3031
3012
|
} : () => {};
|
|
3032
|
-
this.#
|
|
3033
|
-
if (t[
|
|
3034
|
-
let a = t[
|
|
3035
|
-
if (!a || !
|
|
3013
|
+
this.#E = (r, h) => {
|
|
3014
|
+
if (t[h]) {
|
|
3015
|
+
let a = t[h], d = e[h];
|
|
3016
|
+
if (!a || !d)
|
|
3036
3017
|
return;
|
|
3037
|
-
|
|
3038
|
-
let f =
|
|
3039
|
-
|
|
3018
|
+
r.ttl = a, r.start = d, r.now = n || o();
|
|
3019
|
+
let f = r.now - d;
|
|
3020
|
+
r.remainingTTL = a - f;
|
|
3040
3021
|
}
|
|
3041
3022
|
};
|
|
3042
3023
|
let n = 0, o = () => {
|
|
3043
|
-
let
|
|
3024
|
+
let r = this.#S.now();
|
|
3044
3025
|
if (this.ttlResolution > 0) {
|
|
3045
|
-
n =
|
|
3046
|
-
let
|
|
3047
|
-
|
|
3026
|
+
n = r;
|
|
3027
|
+
let h = setTimeout(() => n = 0, this.ttlResolution);
|
|
3028
|
+
h.unref && h.unref();
|
|
3048
3029
|
}
|
|
3049
|
-
return
|
|
3030
|
+
return r;
|
|
3050
3031
|
};
|
|
3051
|
-
this.getRemainingTTL = (
|
|
3052
|
-
let
|
|
3053
|
-
if (
|
|
3032
|
+
this.getRemainingTTL = (r) => {
|
|
3033
|
+
let h = this.#s.get(r);
|
|
3034
|
+
if (h === undefined)
|
|
3054
3035
|
return 0;
|
|
3055
|
-
let a = t[
|
|
3056
|
-
if (!a || !
|
|
3036
|
+
let a = t[h], d = e[h];
|
|
3037
|
+
if (!a || !d)
|
|
3057
3038
|
return 1 / 0;
|
|
3058
|
-
let f = (n || o()) -
|
|
3039
|
+
let f = (n || o()) - d;
|
|
3059
3040
|
return a - f;
|
|
3060
|
-
}, this.#p = (
|
|
3061
|
-
let
|
|
3062
|
-
return !!a && !!
|
|
3041
|
+
}, this.#p = (r) => {
|
|
3042
|
+
let h = e[r], a = t[r];
|
|
3043
|
+
return !!a && !!h && (n || o()) - h > a;
|
|
3063
3044
|
};
|
|
3064
3045
|
}
|
|
3065
3046
|
#R = () => {};
|
|
3066
|
-
#
|
|
3047
|
+
#E = () => {};
|
|
3067
3048
|
#N = () => {};
|
|
3068
3049
|
#p = () => false;
|
|
3069
|
-
#
|
|
3070
|
-
let t = new
|
|
3071
|
-
this.#
|
|
3072
|
-
this.#
|
|
3073
|
-
}, this.#
|
|
3050
|
+
#X() {
|
|
3051
|
+
let t = new W(this.#o);
|
|
3052
|
+
this.#b = 0, this.#_ = t, this.#C = (e) => {
|
|
3053
|
+
this.#b -= t[e], t[e] = 0;
|
|
3054
|
+
}, this.#k = (e, i, s, n) => {
|
|
3074
3055
|
if (this.#e(i))
|
|
3075
3056
|
return 0;
|
|
3076
|
-
if (!
|
|
3057
|
+
if (!F(s))
|
|
3077
3058
|
if (n) {
|
|
3078
3059
|
if (typeof n != "function")
|
|
3079
3060
|
throw new TypeError("sizeCalculation must be a function");
|
|
3080
|
-
if (s = n(i, e), !
|
|
3061
|
+
if (s = n(i, e), !F(s))
|
|
3081
3062
|
throw new TypeError("sizeCalculation return invalid (expect positive integer)");
|
|
3082
3063
|
} else
|
|
3083
3064
|
throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");
|
|
3084
3065
|
return s;
|
|
3085
|
-
}, this.#
|
|
3066
|
+
}, this.#I = (e, i, s) => {
|
|
3086
3067
|
if (t[e] = i, this.#c) {
|
|
3087
3068
|
let n = this.#c - t[e];
|
|
3088
|
-
for (;this.#
|
|
3069
|
+
for (;this.#b > n; )
|
|
3089
3070
|
this.#G(true);
|
|
3090
3071
|
}
|
|
3091
|
-
this.#
|
|
3072
|
+
this.#b += t[e], s && (s.entrySize = i, s.totalCalculatedSize = this.#b);
|
|
3092
3073
|
};
|
|
3093
3074
|
}
|
|
3094
|
-
#
|
|
3095
|
-
#
|
|
3096
|
-
#
|
|
3075
|
+
#C = (t) => {};
|
|
3076
|
+
#I = (t, e, i) => {};
|
|
3077
|
+
#k = (t, e, i, s) => {
|
|
3097
3078
|
if (i || s)
|
|
3098
3079
|
throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");
|
|
3099
3080
|
return 0;
|
|
3100
3081
|
};
|
|
3101
|
-
*#
|
|
3082
|
+
*#A({ allowStale: t = this.allowStale } = {}) {
|
|
3102
3083
|
if (this.#n)
|
|
3103
|
-
for (let e = this.#h
|
|
3084
|
+
for (let e = this.#h;this.#V(e) && ((t || !this.#p(e)) && (yield e), e !== this.#a); )
|
|
3104
3085
|
e = this.#u[e];
|
|
3105
3086
|
}
|
|
3106
|
-
*#
|
|
3087
|
+
*#v({ allowStale: t = this.allowStale } = {}) {
|
|
3107
3088
|
if (this.#n)
|
|
3108
|
-
for (let e = this.#
|
|
3109
|
-
e = this.#
|
|
3089
|
+
for (let e = this.#a;this.#V(e) && ((t || !this.#p(e)) && (yield e), e !== this.#h); )
|
|
3090
|
+
e = this.#l[e];
|
|
3110
3091
|
}
|
|
3111
|
-
#
|
|
3092
|
+
#V(t) {
|
|
3112
3093
|
return t !== undefined && this.#s.get(this.#i[t]) === t;
|
|
3113
3094
|
}
|
|
3114
3095
|
*entries() {
|
|
3115
|
-
for (let t of this.#
|
|
3096
|
+
for (let t of this.#A())
|
|
3116
3097
|
this.#t[t] !== undefined && this.#i[t] !== undefined && !this.#e(this.#t[t]) && (yield [this.#i[t], this.#t[t]]);
|
|
3117
3098
|
}
|
|
3118
3099
|
*rentries() {
|
|
3119
|
-
for (let t of this.#
|
|
3100
|
+
for (let t of this.#v())
|
|
3120
3101
|
this.#t[t] !== undefined && this.#i[t] !== undefined && !this.#e(this.#t[t]) && (yield [this.#i[t], this.#t[t]]);
|
|
3121
3102
|
}
|
|
3122
3103
|
*keys() {
|
|
3123
|
-
for (let t of this.#
|
|
3104
|
+
for (let t of this.#A()) {
|
|
3124
3105
|
let e = this.#i[t];
|
|
3125
3106
|
e !== undefined && !this.#e(this.#t[t]) && (yield e);
|
|
3126
3107
|
}
|
|
3127
3108
|
}
|
|
3128
3109
|
*rkeys() {
|
|
3129
|
-
for (let t of this.#
|
|
3110
|
+
for (let t of this.#v()) {
|
|
3130
3111
|
let e = this.#i[t];
|
|
3131
3112
|
e !== undefined && !this.#e(this.#t[t]) && (yield e);
|
|
3132
3113
|
}
|
|
3133
3114
|
}
|
|
3134
3115
|
*values() {
|
|
3135
|
-
for (let t of this.#
|
|
3116
|
+
for (let t of this.#A())
|
|
3136
3117
|
this.#t[t] !== undefined && !this.#e(this.#t[t]) && (yield this.#t[t]);
|
|
3137
3118
|
}
|
|
3138
3119
|
*rvalues() {
|
|
3139
|
-
for (let t of this.#
|
|
3120
|
+
for (let t of this.#v())
|
|
3140
3121
|
this.#t[t] !== undefined && !this.#e(this.#t[t]) && (yield this.#t[t]);
|
|
3141
3122
|
}
|
|
3142
3123
|
[Symbol.iterator]() {
|
|
@@ -3144,28 +3125,28 @@ var require_index_min = __commonJS((exports) => {
|
|
|
3144
3125
|
}
|
|
3145
3126
|
[Symbol.toStringTag] = "LRUCache";
|
|
3146
3127
|
find(t, e = {}) {
|
|
3147
|
-
for (let i of this.#
|
|
3128
|
+
for (let i of this.#A()) {
|
|
3148
3129
|
let s = this.#t[i], n = this.#e(s) ? s.__staleWhileFetching : s;
|
|
3149
3130
|
if (n !== undefined && t(n, this.#i[i], this))
|
|
3150
|
-
return this
|
|
3131
|
+
return this.#x(this.#i[i], e);
|
|
3151
3132
|
}
|
|
3152
3133
|
}
|
|
3153
3134
|
forEach(t, e = this) {
|
|
3154
|
-
for (let i of this.#
|
|
3135
|
+
for (let i of this.#A()) {
|
|
3155
3136
|
let s = this.#t[i], n = this.#e(s) ? s.__staleWhileFetching : s;
|
|
3156
3137
|
n !== undefined && t.call(e, n, this.#i[i], this);
|
|
3157
3138
|
}
|
|
3158
3139
|
}
|
|
3159
3140
|
rforEach(t, e = this) {
|
|
3160
|
-
for (let i of this.#
|
|
3141
|
+
for (let i of this.#v()) {
|
|
3161
3142
|
let s = this.#t[i], n = this.#e(s) ? s.__staleWhileFetching : s;
|
|
3162
3143
|
n !== undefined && t.call(e, n, this.#i[i], this);
|
|
3163
3144
|
}
|
|
3164
3145
|
}
|
|
3165
3146
|
purgeStale() {
|
|
3166
3147
|
let t = false;
|
|
3167
|
-
for (let e of this.#
|
|
3168
|
-
this.#p(e) && (this.#
|
|
3148
|
+
for (let e of this.#v({ allowStale: true }))
|
|
3149
|
+
this.#p(e) && (this.#z(this.#i[e], "expire"), t = true);
|
|
3169
3150
|
return t;
|
|
3170
3151
|
}
|
|
3171
3152
|
info(t) {
|
|
@@ -3176,28 +3157,28 @@ var require_index_min = __commonJS((exports) => {
|
|
|
3176
3157
|
if (s === undefined)
|
|
3177
3158
|
return;
|
|
3178
3159
|
let n = { value: s };
|
|
3179
|
-
if (this.#d && this.#
|
|
3180
|
-
let o = this.#d[e],
|
|
3181
|
-
if (o &&
|
|
3182
|
-
let
|
|
3183
|
-
n.ttl =
|
|
3160
|
+
if (this.#d && this.#F) {
|
|
3161
|
+
let o = this.#d[e], r = this.#F[e];
|
|
3162
|
+
if (o && r) {
|
|
3163
|
+
let h = o - (this.#S.now() - r);
|
|
3164
|
+
n.ttl = h, n.start = Date.now();
|
|
3184
3165
|
}
|
|
3185
3166
|
}
|
|
3186
|
-
return this.#
|
|
3167
|
+
return this.#_ && (n.size = this.#_[e]), n;
|
|
3187
3168
|
}
|
|
3188
3169
|
dump() {
|
|
3189
3170
|
let t = [];
|
|
3190
|
-
for (let e of this.#
|
|
3171
|
+
for (let e of this.#A({ allowStale: true })) {
|
|
3191
3172
|
let i = this.#i[e], s = this.#t[e], n = this.#e(s) ? s.__staleWhileFetching : s;
|
|
3192
3173
|
if (n === undefined || i === undefined)
|
|
3193
3174
|
continue;
|
|
3194
3175
|
let o = { value: n };
|
|
3195
|
-
if (this.#d && this.#
|
|
3176
|
+
if (this.#d && this.#F) {
|
|
3196
3177
|
o.ttl = this.#d[e];
|
|
3197
|
-
let
|
|
3198
|
-
o.start = Math.floor(Date.now() -
|
|
3178
|
+
let r = this.#S.now() - this.#F[e];
|
|
3179
|
+
o.start = Math.floor(Date.now() - r);
|
|
3199
3180
|
}
|
|
3200
|
-
this.#
|
|
3181
|
+
this.#_ && (o.size = this.#_[e]), t.unshift([i, o]);
|
|
3201
3182
|
}
|
|
3202
3183
|
return t;
|
|
3203
3184
|
}
|
|
@@ -3206,50 +3187,59 @@ var require_index_min = __commonJS((exports) => {
|
|
|
3206
3187
|
for (let [e, i] of t) {
|
|
3207
3188
|
if (i.start) {
|
|
3208
3189
|
let s = Date.now() - i.start;
|
|
3209
|
-
i.start = this.#
|
|
3190
|
+
i.start = this.#S.now() - s;
|
|
3210
3191
|
}
|
|
3211
|
-
this
|
|
3192
|
+
this.#W(e, i.value, i);
|
|
3212
3193
|
}
|
|
3213
3194
|
}
|
|
3214
3195
|
set(t, e, i = {}) {
|
|
3196
|
+
let { status: s = u.metrics.hasSubscribers ? {} : undefined } = i;
|
|
3197
|
+
i.status = s, s && (s.op = "set", s.key = t, e !== undefined && (s.value = e));
|
|
3198
|
+
let n = this.#W(t, e, i);
|
|
3199
|
+
return s && u.metrics.hasSubscribers && u.metrics.publish(s), n;
|
|
3200
|
+
}
|
|
3201
|
+
#W(t, e, i = {}) {
|
|
3202
|
+
let { ttl: s = this.ttl, start: n, noDisposeOnSet: o = this.noDisposeOnSet, sizeCalculation: r = this.sizeCalculation, status: h } = i;
|
|
3215
3203
|
if (e === undefined)
|
|
3216
|
-
return this.delete(t), this;
|
|
3217
|
-
let {
|
|
3218
|
-
|
|
3219
|
-
|
|
3204
|
+
return h && (h.set = "deleted"), this.delete(t), this;
|
|
3205
|
+
let { noUpdateTTL: a = this.noUpdateTTL } = i;
|
|
3206
|
+
h && !this.#e(e) && (h.value = e);
|
|
3207
|
+
let d = this.#k(t, e, i.size || 0, r, h);
|
|
3208
|
+
if (this.maxEntrySize && d > this.maxEntrySize)
|
|
3209
|
+
return this.#z(t, "set"), h && (h.set = "miss", h.maxEntrySizeExceeded = true), this;
|
|
3220
3210
|
let f = this.#n === 0 ? undefined : this.#s.get(t);
|
|
3221
3211
|
if (f === undefined)
|
|
3222
|
-
f = this.#n === 0 ? this.#h : this.#
|
|
3212
|
+
f = this.#n === 0 ? this.#h : this.#y.length !== 0 ? this.#y.pop() : this.#n === this.#o ? this.#G(false) : this.#n, this.#i[f] = t, this.#t[f] = e, this.#s.set(t, f), this.#l[this.#h] = f, this.#u[f] = this.#h, this.#h = f, this.#n++, this.#I(f, d, h), h && (h.set = "add"), a = false, this.#U && this.#D?.(e, t, "add");
|
|
3223
3213
|
else {
|
|
3224
|
-
this.#
|
|
3225
|
-
let
|
|
3226
|
-
if (e !==
|
|
3227
|
-
if (this.#
|
|
3228
|
-
|
|
3229
|
-
let { __staleWhileFetching:
|
|
3230
|
-
|
|
3214
|
+
this.#L(f);
|
|
3215
|
+
let p = this.#t[f];
|
|
3216
|
+
if (e !== p) {
|
|
3217
|
+
if (this.#O && this.#e(p)) {
|
|
3218
|
+
p.__abortController.abort(new Error("replaced"));
|
|
3219
|
+
let { __staleWhileFetching: m } = p;
|
|
3220
|
+
m !== undefined && !o && (this.#T && this.#m?.(m, t, "set"), this.#f && this.#r?.push([m, t, "set"]));
|
|
3231
3221
|
} else
|
|
3232
|
-
o || (this.#T && this.#
|
|
3233
|
-
if (this.#
|
|
3234
|
-
|
|
3235
|
-
let
|
|
3236
|
-
|
|
3222
|
+
o || (this.#T && this.#m?.(p, t, "set"), this.#f && this.#r?.push([p, t, "set"]));
|
|
3223
|
+
if (this.#C(f), this.#I(f, d, h), this.#t[f] = e, h) {
|
|
3224
|
+
h.set = "replace";
|
|
3225
|
+
let m = p && this.#e(p) ? p.__staleWhileFetching : p;
|
|
3226
|
+
m !== undefined && (h.oldValue = m);
|
|
3237
3227
|
}
|
|
3238
3228
|
} else
|
|
3239
|
-
|
|
3240
|
-
this.#
|
|
3229
|
+
h && (h.set = "update");
|
|
3230
|
+
this.#U && this.onInsert?.(e, t, e === p ? "update" : "replace");
|
|
3241
3231
|
}
|
|
3242
|
-
if (s !== 0 && !this.#d && this.#
|
|
3243
|
-
let
|
|
3244
|
-
for (;
|
|
3245
|
-
this.#
|
|
3232
|
+
if (s !== 0 && !this.#d && this.#H(), this.#d && (a || this.#N(f, s, n), h && this.#E(h, f)), !o && this.#f && this.#r) {
|
|
3233
|
+
let p = this.#r, m;
|
|
3234
|
+
for (;m = p?.shift(); )
|
|
3235
|
+
this.#w?.(...m);
|
|
3246
3236
|
}
|
|
3247
3237
|
return this;
|
|
3248
3238
|
}
|
|
3249
3239
|
pop() {
|
|
3250
3240
|
try {
|
|
3251
3241
|
for (;this.#n; ) {
|
|
3252
|
-
let t = this.#t[this.#
|
|
3242
|
+
let t = this.#t[this.#a];
|
|
3253
3243
|
if (this.#G(true), this.#e(t)) {
|
|
3254
3244
|
if (t.__staleWhileFetching)
|
|
3255
3245
|
return t.__staleWhileFetching;
|
|
@@ -3260,181 +3250,223 @@ var require_index_min = __commonJS((exports) => {
|
|
|
3260
3250
|
if (this.#f && this.#r) {
|
|
3261
3251
|
let t = this.#r, e;
|
|
3262
3252
|
for (;e = t?.shift(); )
|
|
3263
|
-
this.#
|
|
3253
|
+
this.#w?.(...e);
|
|
3264
3254
|
}
|
|
3265
3255
|
}
|
|
3266
3256
|
}
|
|
3267
3257
|
#G(t) {
|
|
3268
|
-
let e = this.#
|
|
3269
|
-
return this.#
|
|
3258
|
+
let e = this.#a, i = this.#i[e], s = this.#t[e];
|
|
3259
|
+
return this.#O && this.#e(s) ? s.__abortController.abort(new Error("evicted")) : (this.#T || this.#f) && (this.#T && this.#m?.(s, i, "evict"), this.#f && this.#r?.push([s, i, "evict"])), this.#C(e), this.#g?.[e] && (clearTimeout(this.#g[e]), this.#g[e] = undefined), t && (this.#i[e] = undefined, this.#t[e] = undefined, this.#y.push(e)), this.#n === 1 ? (this.#a = this.#h = 0, this.#y.length = 0) : this.#a = this.#l[e], this.#s.delete(i), this.#n--, e;
|
|
3270
3260
|
}
|
|
3271
3261
|
has(t, e = {}) {
|
|
3262
|
+
let { status: i = u.metrics.hasSubscribers ? {} : undefined } = e;
|
|
3263
|
+
e.status = i, i && (i.op = "has", i.key = t);
|
|
3264
|
+
let s = this.#Y(t, e);
|
|
3265
|
+
return u.metrics.hasSubscribers && u.metrics.publish(i), s;
|
|
3266
|
+
}
|
|
3267
|
+
#Y(t, e = {}) {
|
|
3272
3268
|
let { updateAgeOnHas: i = this.updateAgeOnHas, status: s } = e, n = this.#s.get(t);
|
|
3273
3269
|
if (n !== undefined) {
|
|
3274
3270
|
let o = this.#t[n];
|
|
3275
3271
|
if (this.#e(o) && o.__staleWhileFetching === undefined)
|
|
3276
3272
|
return false;
|
|
3277
3273
|
if (this.#p(n))
|
|
3278
|
-
s && (s.has = "stale", this.#
|
|
3274
|
+
s && (s.has = "stale", this.#E(s, n));
|
|
3279
3275
|
else
|
|
3280
|
-
return i && this.#R(n), s && (s.has = "hit", this.#
|
|
3276
|
+
return i && this.#R(n), s && (s.has = "hit", this.#E(s, n)), true;
|
|
3281
3277
|
} else
|
|
3282
3278
|
s && (s.has = "miss");
|
|
3283
3279
|
return false;
|
|
3284
3280
|
}
|
|
3285
3281
|
peek(t, e = {}) {
|
|
3286
|
-
let {
|
|
3287
|
-
|
|
3282
|
+
let { status: i = D() ? {} : undefined } = e;
|
|
3283
|
+
i && (i.op = "peek", i.key = t), e.status = i;
|
|
3284
|
+
let s = this.#J(t, e);
|
|
3285
|
+
return u.metrics.hasSubscribers && u.metrics.publish(i), s;
|
|
3286
|
+
}
|
|
3287
|
+
#J(t, e) {
|
|
3288
|
+
let { status: i, allowStale: s = this.allowStale } = e, n = this.#s.get(t);
|
|
3289
|
+
if (n === undefined || !s && this.#p(n)) {
|
|
3290
|
+
i && (i.peek = n === undefined ? "miss" : "stale");
|
|
3288
3291
|
return;
|
|
3289
|
-
|
|
3290
|
-
|
|
3292
|
+
}
|
|
3293
|
+
let o = this.#t[n], r = this.#e(o) ? o.__staleWhileFetching : o;
|
|
3294
|
+
return i && (r !== undefined ? (i.peek = "hit", i.value = r) : i.peek = "miss"), r;
|
|
3291
3295
|
}
|
|
3292
|
-
#
|
|
3296
|
+
#P(t, e, i, s) {
|
|
3293
3297
|
let n = e === undefined ? undefined : this.#t[e];
|
|
3294
3298
|
if (this.#e(n))
|
|
3295
3299
|
return n;
|
|
3296
|
-
let o = new
|
|
3297
|
-
|
|
3298
|
-
let
|
|
3299
|
-
let { aborted: l } = o.signal, S = i.ignoreFetchAbort &&
|
|
3300
|
-
if (i.status && (l && !
|
|
3301
|
-
return f(o.signal.reason,
|
|
3302
|
-
let
|
|
3303
|
-
return (
|
|
3304
|
-
},
|
|
3305
|
-
let { aborted: l } = o.signal, S = l && i.allowStaleOnFetchAbort,
|
|
3306
|
-
if (this.#t[e] ===
|
|
3307
|
-
return i.status &&
|
|
3308
|
-
if (
|
|
3309
|
-
throw
|
|
3310
|
-
},
|
|
3311
|
-
let l = this.#
|
|
3312
|
-
l && l instanceof Promise && l.then((S) =>
|
|
3313
|
-
(!i.ignoreFetchAbort || i.allowStaleOnFetchAbort) && (
|
|
3300
|
+
let o = new AbortController, { signal: r } = i;
|
|
3301
|
+
r?.addEventListener("abort", () => o.abort(r.reason), { signal: o.signal });
|
|
3302
|
+
let h = { signal: o.signal, options: i, context: s }, a = (w, y = false) => {
|
|
3303
|
+
let { aborted: l } = o.signal, S = i.ignoreFetchAbort && w !== undefined, _ = i.ignoreFetchAbort || !!(i.allowStaleOnFetchAbort && w !== undefined);
|
|
3304
|
+
if (i.status && (l && !y ? (i.status.fetchAborted = true, i.status.fetchError = o.signal.reason, S && (i.status.fetchAbortIgnored = true)) : i.status.fetchResolved = true), l && !S && !y)
|
|
3305
|
+
return f(o.signal.reason, _);
|
|
3306
|
+
let b = m, g = this.#t[e];
|
|
3307
|
+
return (g === m || g === undefined && S && y) && (w === undefined ? b.__staleWhileFetching !== undefined ? this.#t[e] = b.__staleWhileFetching : this.#z(t, "fetch") : (i.status && (i.status.fetchUpdated = true), this.#W(t, w, h.options))), w;
|
|
3308
|
+
}, d = (w) => (i.status && (i.status.fetchRejected = true, i.status.fetchError = w), f(w, false)), f = (w, y) => {
|
|
3309
|
+
let { aborted: l } = o.signal, S = l && i.allowStaleOnFetchAbort, _ = S || i.allowStaleOnFetchRejection, b = _ || i.noDeleteOnFetchRejection, g = m;
|
|
3310
|
+
if (this.#t[e] === m && (!b || !y && g.__staleWhileFetching === undefined ? this.#z(t, "fetch") : S || (this.#t[e] = g.__staleWhileFetching)), _)
|
|
3311
|
+
return i.status && g.__staleWhileFetching !== undefined && (i.status.returnedStale = true), g.__staleWhileFetching;
|
|
3312
|
+
if (g.__returned === g)
|
|
3313
|
+
throw w;
|
|
3314
|
+
}, p = (w, y) => {
|
|
3315
|
+
let l = this.#M?.(t, n, h);
|
|
3316
|
+
l && l instanceof Promise && l.then((S) => w(S === undefined ? undefined : S), y), o.signal.addEventListener("abort", () => {
|
|
3317
|
+
(!i.ignoreFetchAbort || i.allowStaleOnFetchAbort) && (w(undefined), i.allowStaleOnFetchAbort && (w = (S) => a(S, true)));
|
|
3314
3318
|
});
|
|
3315
3319
|
};
|
|
3316
3320
|
i.status && (i.status.fetchDispatched = true);
|
|
3317
|
-
let
|
|
3318
|
-
return e === undefined ? (this
|
|
3321
|
+
let m = new Promise(p).then(a, d), T = Object.assign(m, { __abortController: o, __staleWhileFetching: n, __returned: undefined });
|
|
3322
|
+
return e === undefined ? (this.#W(t, T, { ...h.options, status: undefined }), e = this.#s.get(t)) : this.#t[e] = T, T;
|
|
3319
3323
|
}
|
|
3320
3324
|
#e(t) {
|
|
3321
|
-
if (!this.#
|
|
3325
|
+
if (!this.#O)
|
|
3322
3326
|
return false;
|
|
3323
3327
|
let e = t;
|
|
3324
|
-
return !!e && e instanceof Promise && e.hasOwnProperty("__staleWhileFetching") && e.__abortController instanceof
|
|
3325
|
-
}
|
|
3326
|
-
|
|
3327
|
-
let
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3328
|
+
return !!e && e instanceof Promise && e.hasOwnProperty("__staleWhileFetching") && e.__abortController instanceof AbortController;
|
|
3329
|
+
}
|
|
3330
|
+
fetch(t, e = {}) {
|
|
3331
|
+
let i = u.tracing.hasSubscribers, { status: s = D() ? {} : undefined } = e;
|
|
3332
|
+
e.status = s, s && e.context && (s.context = e.context);
|
|
3333
|
+
let n = this.#q(t, e);
|
|
3334
|
+
return s && D() && i && (s.trace = true, u.tracing.tracePromise(() => n, s).catch(() => {})), n;
|
|
3335
|
+
}
|
|
3336
|
+
async#q(t, e = {}) {
|
|
3337
|
+
let { allowStale: i = this.allowStale, updateAgeOnGet: s = this.updateAgeOnGet, noDeleteOnStaleGet: n = this.noDeleteOnStaleGet, ttl: o = this.ttl, noDisposeOnSet: r = this.noDisposeOnSet, size: h = 0, sizeCalculation: a = this.sizeCalculation, noUpdateTTL: d = this.noUpdateTTL, noDeleteOnFetchRejection: f = this.noDeleteOnFetchRejection, allowStaleOnFetchRejection: p = this.allowStaleOnFetchRejection, ignoreFetchAbort: m = this.ignoreFetchAbort, allowStaleOnFetchAbort: T = this.allowStaleOnFetchAbort, context: w, forceRefresh: y = false, status: l, signal: S } = e;
|
|
3338
|
+
if (l && (l.op = "fetch", l.key = t, y && (l.forceRefresh = true)), !this.#O)
|
|
3339
|
+
return l && (l.fetch = "get"), this.#x(t, { allowStale: i, updateAgeOnGet: s, noDeleteOnStaleGet: n, status: l });
|
|
3340
|
+
let _ = { allowStale: i, updateAgeOnGet: s, noDeleteOnStaleGet: n, ttl: o, noDisposeOnSet: r, size: h, sizeCalculation: a, noUpdateTTL: d, noDeleteOnFetchRejection: f, allowStaleOnFetchRejection: p, allowStaleOnFetchAbort: T, ignoreFetchAbort: m, status: l, signal: S }, b = this.#s.get(t);
|
|
3341
|
+
if (b === undefined) {
|
|
3332
3342
|
l && (l.fetch = "miss");
|
|
3333
|
-
let
|
|
3334
|
-
return
|
|
3343
|
+
let g = this.#P(t, b, _, w);
|
|
3344
|
+
return g.__returned = g;
|
|
3335
3345
|
} else {
|
|
3336
|
-
let
|
|
3337
|
-
if (this.#e(
|
|
3338
|
-
let E = i &&
|
|
3339
|
-
return l && (l.fetch = "inflight", E && (l.returnedStale = true)), E ?
|
|
3340
|
-
}
|
|
3341
|
-
let
|
|
3342
|
-
if (!
|
|
3343
|
-
return l && (l.fetch = "hit"), this.#
|
|
3344
|
-
let
|
|
3345
|
-
return l && (l.fetch =
|
|
3346
|
-
}
|
|
3347
|
-
}
|
|
3348
|
-
|
|
3349
|
-
let i =
|
|
3346
|
+
let g = this.#t[b];
|
|
3347
|
+
if (this.#e(g)) {
|
|
3348
|
+
let E = i && g.__staleWhileFetching !== undefined;
|
|
3349
|
+
return l && (l.fetch = "inflight", E && (l.returnedStale = true)), E ? g.__staleWhileFetching : g.__returned = g;
|
|
3350
|
+
}
|
|
3351
|
+
let A = this.#p(b);
|
|
3352
|
+
if (!y && !A)
|
|
3353
|
+
return l && (l.fetch = "hit"), this.#L(b), s && this.#R(b), l && this.#E(l, b), g;
|
|
3354
|
+
let v = this.#P(t, b, _, w), z = v.__staleWhileFetching !== undefined && i;
|
|
3355
|
+
return l && (l.fetch = A ? "stale" : "refresh", z && A && (l.returnedStale = true)), z ? v.__staleWhileFetching : v.__returned = v;
|
|
3356
|
+
}
|
|
3357
|
+
}
|
|
3358
|
+
forceFetch(t, e = {}) {
|
|
3359
|
+
let i = u.tracing.hasSubscribers, { status: s = D() ? {} : undefined } = e;
|
|
3360
|
+
e.status = s, s && e.context && (s.context = e.context);
|
|
3361
|
+
let n = this.#K(t, e);
|
|
3362
|
+
return s && D() && i && (s.trace = true, u.tracing.tracePromise(() => n, s).catch(() => {})), n;
|
|
3363
|
+
}
|
|
3364
|
+
async#K(t, e = {}) {
|
|
3365
|
+
let i = await this.#q(t, e);
|
|
3350
3366
|
if (i === undefined)
|
|
3351
3367
|
throw new Error("fetch() returned undefined");
|
|
3352
3368
|
return i;
|
|
3353
3369
|
}
|
|
3354
3370
|
memo(t, e = {}) {
|
|
3355
|
-
let i =
|
|
3371
|
+
let { status: i = u.metrics.hasSubscribers ? {} : undefined } = e;
|
|
3372
|
+
e.status = i, i && (i.op = "memo", i.key = t, e.context && (i.context = e.context));
|
|
3373
|
+
let s = this.#Q(t, e);
|
|
3374
|
+
return i && (i.value = s), u.metrics.hasSubscribers && u.metrics.publish(i), s;
|
|
3375
|
+
}
|
|
3376
|
+
#Q(t, e = {}) {
|
|
3377
|
+
let i = this.#j;
|
|
3356
3378
|
if (!i)
|
|
3357
3379
|
throw new Error("no memoMethod provided to constructor");
|
|
3358
|
-
let { context: s,
|
|
3359
|
-
|
|
3380
|
+
let { context: s, status: n, forceRefresh: o, ...r } = e;
|
|
3381
|
+
n && o && (n.forceRefresh = true);
|
|
3382
|
+
let h = this.#x(t, r), a = o || h === undefined;
|
|
3383
|
+
if (n && (n.memo = a ? "miss" : "hit", a || (n.value = h)), !a)
|
|
3360
3384
|
return h;
|
|
3361
|
-
let
|
|
3362
|
-
return this
|
|
3385
|
+
let d = i(t, h, { options: r, context: s });
|
|
3386
|
+
return n && (n.value = d), this.#W(t, d, r), d;
|
|
3363
3387
|
}
|
|
3364
3388
|
get(t, e = {}) {
|
|
3365
|
-
let {
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3389
|
+
let { status: i = u.metrics.hasSubscribers ? {} : undefined } = e;
|
|
3390
|
+
e.status = i, i && (i.op = "get", i.key = t);
|
|
3391
|
+
let s = this.#x(t, e);
|
|
3392
|
+
return i && (s !== undefined && (i.value = s), u.metrics.hasSubscribers && u.metrics.publish(i)), s;
|
|
3393
|
+
}
|
|
3394
|
+
#x(t, e = {}) {
|
|
3395
|
+
let { allowStale: i = this.allowStale, updateAgeOnGet: s = this.updateAgeOnGet, noDeleteOnStaleGet: n = this.noDeleteOnStaleGet, status: o } = e, r = this.#s.get(t);
|
|
3396
|
+
if (r === undefined) {
|
|
3370
3397
|
o && (o.get = "miss");
|
|
3398
|
+
return;
|
|
3399
|
+
}
|
|
3400
|
+
let h = this.#t[r], a = this.#e(h);
|
|
3401
|
+
return o && this.#E(o, r), this.#p(r) ? a ? (o && (o.get = "stale-fetching"), i && h.__staleWhileFetching !== undefined ? (o && (o.returnedStale = true), h.__staleWhileFetching) : undefined) : (n || this.#z(t, "expire"), o && (o.get = "stale"), i ? (o && (o.returnedStale = true), h) : undefined) : (o && (o.get = a ? "fetching" : "hit"), this.#L(r), s && this.#R(r), a ? h.__staleWhileFetching : h);
|
|
3371
3402
|
}
|
|
3372
|
-
#
|
|
3373
|
-
this.#u[e] = t, this.#
|
|
3403
|
+
#B(t, e) {
|
|
3404
|
+
this.#u[e] = t, this.#l[t] = e;
|
|
3374
3405
|
}
|
|
3375
|
-
#
|
|
3376
|
-
t !== this.#h && (t === this.#
|
|
3406
|
+
#L(t) {
|
|
3407
|
+
t !== this.#h && (t === this.#a ? this.#a = this.#l[t] : this.#B(this.#u[t], this.#l[t]), this.#B(this.#h, t), this.#h = t);
|
|
3377
3408
|
}
|
|
3378
3409
|
delete(t) {
|
|
3379
|
-
return this.#
|
|
3410
|
+
return this.#z(t, "delete");
|
|
3380
3411
|
}
|
|
3381
|
-
#
|
|
3412
|
+
#z(t, e) {
|
|
3413
|
+
u.metrics.hasSubscribers && u.metrics.publish({ op: "delete", delete: e, key: t });
|
|
3382
3414
|
let i = false;
|
|
3383
3415
|
if (this.#n !== 0) {
|
|
3384
3416
|
let s = this.#s.get(t);
|
|
3385
3417
|
if (s !== undefined)
|
|
3386
3418
|
if (this.#g?.[s] && (clearTimeout(this.#g?.[s]), this.#g[s] = undefined), i = true, this.#n === 1)
|
|
3387
|
-
this
|
|
3419
|
+
this.#$(e);
|
|
3388
3420
|
else {
|
|
3389
|
-
this.#
|
|
3421
|
+
this.#C(s);
|
|
3390
3422
|
let n = this.#t[s];
|
|
3391
|
-
if (this.#e(n) ? n.__abortController.abort(new Error("deleted")) : (this.#T || this.#f) && (this.#T && this.#
|
|
3423
|
+
if (this.#e(n) ? n.__abortController.abort(new Error("deleted")) : (this.#T || this.#f) && (this.#T && this.#m?.(n, t, e), this.#f && this.#r?.push([n, t, e])), this.#s.delete(t), this.#i[s] = undefined, this.#t[s] = undefined, s === this.#h)
|
|
3392
3424
|
this.#h = this.#u[s];
|
|
3393
|
-
else if (s === this.#
|
|
3394
|
-
this.#
|
|
3425
|
+
else if (s === this.#a)
|
|
3426
|
+
this.#a = this.#l[s];
|
|
3395
3427
|
else {
|
|
3396
3428
|
let o = this.#u[s];
|
|
3397
|
-
this.#
|
|
3398
|
-
let
|
|
3399
|
-
this.#u[
|
|
3429
|
+
this.#l[o] = this.#l[s];
|
|
3430
|
+
let r = this.#l[s];
|
|
3431
|
+
this.#u[r] = this.#u[s];
|
|
3400
3432
|
}
|
|
3401
|
-
this.#n--, this.#
|
|
3433
|
+
this.#n--, this.#y.push(s);
|
|
3402
3434
|
}
|
|
3403
3435
|
}
|
|
3404
3436
|
if (this.#f && this.#r?.length) {
|
|
3405
3437
|
let s = this.#r, n;
|
|
3406
3438
|
for (;n = s?.shift(); )
|
|
3407
|
-
this.#
|
|
3439
|
+
this.#w?.(...n);
|
|
3408
3440
|
}
|
|
3409
3441
|
return i;
|
|
3410
3442
|
}
|
|
3411
3443
|
clear() {
|
|
3412
|
-
return this
|
|
3444
|
+
return this.#$("delete");
|
|
3413
3445
|
}
|
|
3414
|
-
|
|
3415
|
-
for (let e of this.#
|
|
3446
|
+
#$(t) {
|
|
3447
|
+
for (let e of this.#v({ allowStale: true })) {
|
|
3416
3448
|
let i = this.#t[e];
|
|
3417
3449
|
if (this.#e(i))
|
|
3418
3450
|
i.__abortController.abort(new Error("deleted"));
|
|
3419
3451
|
else {
|
|
3420
3452
|
let s = this.#i[e];
|
|
3421
|
-
this.#T && this.#
|
|
3453
|
+
this.#T && this.#m?.(i, s, t), this.#f && this.#r?.push([i, s, t]);
|
|
3422
3454
|
}
|
|
3423
3455
|
}
|
|
3424
|
-
if (this.#s.clear(), this.#t.fill(undefined), this.#i.fill(undefined), this.#d && this.#
|
|
3425
|
-
this.#d.fill(0), this.#
|
|
3456
|
+
if (this.#s.clear(), this.#t.fill(undefined), this.#i.fill(undefined), this.#d && this.#F) {
|
|
3457
|
+
this.#d.fill(0), this.#F.fill(0);
|
|
3426
3458
|
for (let e of this.#g ?? [])
|
|
3427
3459
|
e !== undefined && clearTimeout(e);
|
|
3428
3460
|
this.#g?.fill(undefined);
|
|
3429
3461
|
}
|
|
3430
|
-
if (this.#
|
|
3462
|
+
if (this.#_ && this.#_.fill(0), this.#a = 0, this.#h = 0, this.#y.length = 0, this.#b = 0, this.#n = 0, this.#f && this.#r) {
|
|
3431
3463
|
let e = this.#r, i;
|
|
3432
3464
|
for (;i = e?.shift(); )
|
|
3433
|
-
this.#
|
|
3465
|
+
this.#w?.(...i);
|
|
3434
3466
|
}
|
|
3435
3467
|
}
|
|
3436
3468
|
};
|
|
3437
|
-
exports.LRUCache =
|
|
3469
|
+
exports.LRUCache = x;
|
|
3438
3470
|
});
|
|
3439
3471
|
|
|
3440
3472
|
// node_modules/.bun/cacache@20.0.4/node_modules/cacache/lib/memoization.js
|