@qitqode/qitqode-android-arm64 0.1.33 → 0.1.35
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/bundle/{chunk-x4sp99g6.js → chunk-03xppy47.js} +1 -1
- package/bundle/chunk-0442cmw2.js +2 -0
- package/bundle/{chunk-2vn41ecx.js → chunk-04hvaaje.js} +1 -1
- package/bundle/{chunk-6phh70sp.js → chunk-06k6egt2.js} +1 -1
- package/bundle/{chunk-x5trw1f5.js → chunk-085pvqr4.js} +1 -1
- package/bundle/{chunk-8n20thvd.js → chunk-08f4khsw.js} +2 -2
- package/bundle/{chunk-mk1bfzg5.js → chunk-08m0hkdz.js} +1 -1
- package/bundle/{chunk-kfxv5rfg.js → chunk-09pkckr1.js} +1 -1
- package/bundle/{chunk-6kp07m7p.js → chunk-0c6ep9mc.js} +1 -1
- package/bundle/{chunk-0v0vqbn5.js → chunk-0h8wdch6.js} +1 -1
- package/bundle/{chunk-t56r99hp.js → chunk-0msqaywp.js} +1 -1
- package/bundle/chunk-0x5jn813.js +2 -0
- package/bundle/{chunk-yphsjp71.js → chunk-11g2rpv8.js} +1 -1
- package/bundle/{chunk-vhe0tth1.js → chunk-11v7vz3y.js} +1 -1
- package/bundle/{chunk-1sgahe1s.js → chunk-1byd3wma.js} +1 -1
- package/bundle/{chunk-x3y2xzhn.js → chunk-1dtzxt2w.js} +1 -1
- package/bundle/{chunk-31qrzrwy.js → chunk-1gf116rg.js} +1 -1
- package/bundle/{chunk-05mce0j3.js → chunk-1me21qdc.js} +1 -1
- package/bundle/{chunk-rvkrgkeq.js → chunk-1pg6pv0m.js} +1 -1
- package/bundle/{chunk-0bbs01f0.js → chunk-1yt5rsew.js} +1 -1
- package/bundle/chunk-28t9akfn.js +2 -0
- package/bundle/{chunk-52bam8g7.js → chunk-2h1fcqvf.js} +1 -1
- package/bundle/{chunk-vykgpaqt.js → chunk-2kens6wh.js} +1 -1
- package/bundle/chunk-2scyp9ns.js +2 -0
- package/bundle/{chunk-hbbsbyyq.js → chunk-2swch6mx.js} +1 -1
- package/bundle/chunk-2tw58kwb.js +2 -0
- package/bundle/chunk-2vxx0tax.js +2 -0
- package/bundle/chunk-2ybt3p5z.js +2 -0
- package/bundle/chunk-2zpkw3ge.js +2 -0
- package/bundle/{chunk-zzv0yayn.js → chunk-31g86yn6.js} +1 -1
- package/bundle/{chunk-xthkjax9.js → chunk-34p46th6.js} +1 -1
- package/bundle/chunk-397be2x0.js +2 -0
- package/bundle/chunk-3c78nkgn.js +2 -0
- package/bundle/{chunk-g453xy7p.js → chunk-3d91q2qd.js} +1 -1
- package/bundle/{chunk-7xm75w1e.js → chunk-3k2b05fv.js} +1 -1
- package/bundle/{chunk-tvdmnee6.js → chunk-3mzcr3fw.js} +1 -1
- package/bundle/{chunk-enpzvmtc.js → chunk-41v0x1jk.js} +1 -1
- package/bundle/chunk-43yv7tz1.js +2 -0
- package/bundle/chunk-496ajawz.js +2 -0
- package/bundle/{chunk-78ymd20x.js → chunk-499gp5g5.js} +1 -1
- package/bundle/{chunk-ea5ph627.js → chunk-4hzm14xt.js} +1 -1
- package/bundle/{chunk-rzhdkkpz.js → chunk-4ttf9rjd.js} +1 -1
- package/bundle/{chunk-vywnd5sf.js → chunk-4wxxyrxn.js} +1 -1
- package/bundle/chunk-4xw14sed.js +2 -0
- package/bundle/chunk-536naqqv.js +2 -0
- package/bundle/{chunk-0h6rn479.js → chunk-54wh8b12.js} +1 -1
- package/bundle/chunk-57nvmhjq.js +2 -0
- package/bundle/{chunk-60v5jvgt.js → chunk-5a7fs1hg.js} +1 -1
- package/bundle/{chunk-tc18nbmn.js → chunk-5e4fxy99.js} +44 -44
- package/bundle/chunk-5he3d7cy.js +2 -0
- package/bundle/{chunk-r1zf109g.js → chunk-5qr286w8.js} +1 -1
- package/bundle/{chunk-srt5peec.js → chunk-606vpgc4.js} +1 -1
- package/bundle/{chunk-gwp17r03.js → chunk-67d5d8mr.js} +1 -1
- package/bundle/{chunk-gxq9vh1z.js → chunk-6a1skxcj.js} +1 -1
- package/bundle/{chunk-ftnadrks.js → chunk-6a77w77q.js} +1 -1
- package/bundle/{chunk-yek0sk2q.js → chunk-6a7c7wnf.js} +1 -1
- package/bundle/chunk-6cj7cn5x.js +2 -0
- package/bundle/{chunk-fgg9txzb.js → chunk-6gb65bv1.js} +1 -1
- package/bundle/{chunk-rh9vnpgr.js → chunk-6ged58yw.js} +1 -1
- package/bundle/chunk-6hybp2mt.js +2 -0
- package/bundle/{chunk-d6ry9418.js → chunk-6p94fpbn.js} +2 -2
- package/bundle/{chunk-xcmgkc57.js → chunk-6styp5dn.js} +1 -1
- package/bundle/chunk-6y423jax.js +3 -0
- package/bundle/{chunk-ejrhvy38.js → chunk-6ynxf3q7.js} +1 -1
- package/bundle/{chunk-cfgvm15x.js → chunk-71zw0qhf.js} +1 -1
- package/bundle/chunk-72ghkgcn.js +2 -0
- package/bundle/{chunk-bh53dz71.js → chunk-7311jry1.js} +1 -1
- package/bundle/{chunk-d07p6fpk.js → chunk-73myw3bj.js} +2 -2
- package/bundle/chunk-741teh8k.js +2 -0
- package/bundle/{chunk-10bjs581.js → chunk-79agp7v3.js} +2 -2
- package/bundle/chunk-7b3wx6kn.js +2 -0
- package/bundle/{chunk-40efytmk.js → chunk-7eexey82.js} +1 -1
- package/bundle/{chunk-33e9y2aw.js → chunk-7mxt5b0h.js} +1 -1
- package/bundle/{chunk-yjf3kyej.js → chunk-7vd91wsd.js} +1 -1
- package/bundle/{chunk-nv3eyyaj.js → chunk-81trveht.js} +1 -1
- package/bundle/{chunk-dnwefyhv.js → chunk-8762ty72.js} +1 -1
- package/bundle/{chunk-qc8rsn4v.js → chunk-891yevv2.js} +1 -1
- package/bundle/{chunk-ctpy42xe.js → chunk-8c1ypgw5.js} +1 -1
- package/bundle/{chunk-8qswepp2.js → chunk-8ktgy41r.js} +1 -1
- package/bundle/{chunk-w18xs2h5.js → chunk-8q73cjyj.js} +1 -1
- package/bundle/chunk-8rt63jbm.js +2 -0
- package/bundle/{chunk-481k3dag.js → chunk-8vg4fmg2.js} +20 -20
- package/bundle/chunk-8y623qdx.js +2 -0
- package/bundle/chunk-921vn745.js +2 -0
- package/bundle/chunk-945ebhte.js +2 -0
- package/bundle/{chunk-4jtxtkj7.js → chunk-94pcpztx.js} +2 -2
- package/bundle/chunk-9548cc0c.js +2 -0
- package/bundle/{chunk-ff8nb7b3.js → chunk-9ayxg9mq.js} +1 -1
- package/bundle/{chunk-a7amey9s.js → chunk-9fxkh84w.js} +1 -1
- package/bundle/{chunk-8hytwgwf.js → chunk-9qdr9t8c.js} +1 -1
- package/bundle/{chunk-gt31468k.js → chunk-9x25d115.js} +1 -1
- package/bundle/{chunk-s08qccxa.js → chunk-9yrypq1r.js} +1 -1
- package/bundle/{chunk-zs8kqdsf.js → chunk-a0rp7gh4.js} +2 -2
- package/bundle/chunk-a1hzeejj.js +5 -0
- package/bundle/{chunk-tq0239xp.js → chunk-a3a1trap.js} +1 -1
- package/bundle/{chunk-n9xns8by.js → chunk-a48t0g95.js} +2 -2
- package/bundle/{chunk-d8dsdcb3.js → chunk-a949at1c.js} +1 -1
- package/bundle/{chunk-n1600mnf.js → chunk-aa8hymcv.js} +1 -1
- package/bundle/chunk-akk84fnc.js +2 -0
- package/bundle/chunk-aw7j7brm.js +2 -0
- package/bundle/{chunk-e1w70zdn.js → chunk-axdzm75h.js} +2 -2
- package/bundle/{chunk-js1n8tgv.js → chunk-azhw650z.js} +1 -1
- package/bundle/{chunk-t8m74g39.js → chunk-b4knxpqh.js} +1 -1
- package/bundle/{chunk-a1kazz9r.js → chunk-b6cybdj3.js} +1 -1
- package/bundle/{chunk-jef04wyf.js → chunk-ba3h1pzs.js} +1 -1
- package/bundle/{chunk-71xz70r9.js → chunk-bbzztav6.js} +1 -1
- package/bundle/{chunk-dactgryw.js → chunk-bj00xk8k.js} +1 -1
- package/bundle/{chunk-cxnfy6qk.js → chunk-bk4phk66.js} +1 -1
- package/bundle/{chunk-e01wnqvc.js → chunk-bnss5dkk.js} +1 -1
- package/bundle/{chunk-fvzwbjh8.js → chunk-bv29k2pf.js} +1 -1
- package/bundle/{chunk-v1xjc3s8.js → chunk-by855es0.js} +1 -1
- package/bundle/{chunk-zy9w1vkc.js → chunk-c5fa8cb1.js} +1 -1
- package/bundle/{chunk-x9rbv6p6.js → chunk-c5pb87yf.js} +1 -1
- package/bundle/{chunk-ck2gfaba.js → chunk-c6vfwjg4.js} +1 -1
- package/bundle/{chunk-2et3wkjy.js → chunk-ca4r31we.js} +1 -1
- package/bundle/chunk-ckbwdrm3.js +2 -0
- package/bundle/{chunk-a3aqmm3x.js → chunk-cqj21rfj.js} +1 -1
- package/bundle/{chunk-3632wgg1.js → chunk-cs38g1bx.js} +1 -1
- package/bundle/{chunk-53bqcctj.js → chunk-cz3h5n1v.js} +1 -1
- package/bundle/{chunk-rg0mrprz.js → chunk-d00c1k9w.js} +1 -1
- package/bundle/{chunk-p18axz0m.js → chunk-dcndy4sr.js} +1 -1
- package/bundle/{chunk-e7ny0b3x.js → chunk-dctj3c22.js} +1 -1
- package/bundle/{chunk-vvxmwyrw.js → chunk-df2aswz3.js} +1 -1
- package/bundle/{chunk-skqbaadf.js → chunk-dffhkd30.js} +1 -1
- package/bundle/chunk-dhc6e1t7.js +2 -0
- package/bundle/{chunk-pe29yy6s.js → chunk-dhqaqeq6.js} +1 -1
- package/bundle/chunk-dk6rbqvp.js +2 -0
- package/bundle/{chunk-te47zdxd.js → chunk-dk975etf.js} +2 -2
- package/bundle/chunk-dwajajaq.js +2 -0
- package/bundle/{chunk-dryzt12j.js → chunk-dxcrggvq.js} +1 -1
- package/bundle/chunk-dyt3n3fe.js +2 -0
- package/bundle/{chunk-fn9h4ync.js → chunk-dyv2hqvc.js} +1 -1
- package/bundle/{chunk-93p131d5.js → chunk-e6xnynaz.js} +1 -1
- package/bundle/{chunk-wefez1gt.js → chunk-e74efvj2.js} +6 -6
- package/bundle/chunk-e7ah0e61.js +2 -0
- package/bundle/{chunk-tqj69nh6.js → chunk-e7v9trve.js} +2 -2
- package/bundle/chunk-e8ws454m.js +2 -0
- package/bundle/{chunk-chpr8ekb.js → chunk-ebcdxmdd.js} +1 -1
- package/bundle/{chunk-zw815d68.js → chunk-ee23d2nz.js} +2 -2
- package/bundle/chunk-efndtzby.js +2 -0
- package/bundle/{chunk-gb00fh4z.js → chunk-egn55fa2.js} +3 -3
- package/bundle/chunk-eq2pepce.js +2 -0
- package/bundle/{chunk-rryytkmg.js → chunk-er38zew1.js} +2 -2
- package/bundle/{chunk-mpkvpn2y.js → chunk-eva3nqqb.js} +2 -2
- package/bundle/{chunk-s2x0rqj4.js → chunk-exmw8jfa.js} +1 -1
- package/bundle/{chunk-famryv52.js → chunk-f3bnn9rf.js} +2 -2
- package/bundle/chunk-f693s9vn.js +2 -0
- package/bundle/{chunk-0dt0bxz6.js → chunk-fg35hwa0.js} +2 -2
- package/bundle/{chunk-ktzq4ha1.js → chunk-fmq0m4k5.js} +1 -1
- package/bundle/chunk-ftepqwyq.js +2 -0
- package/bundle/chunk-g18ax6yp.js +2 -0
- package/bundle/{chunk-jh0bw59r.js → chunk-g4gjz7sq.js} +1 -1
- package/bundle/{chunk-g5rabwre.js → chunk-g6cyhxwg.js} +2 -2
- package/bundle/chunk-gadyp6mb.js +2 -0
- package/bundle/{chunk-q6pn67ps.js → chunk-gckgaqqr.js} +1 -1
- package/bundle/{chunk-fgzk49cr.js → chunk-ge8315te.js} +1 -1
- package/bundle/{chunk-a1wdeapb.js → chunk-ggydr1ze.js} +1 -1
- package/bundle/chunk-gk28ffhg.js +2 -0
- package/bundle/{chunk-c11d28qn.js → chunk-gmzrvxnv.js} +2 -2
- package/bundle/chunk-gpfc4z4v.js +2 -0
- package/bundle/chunk-gqvg02zp.js +2 -0
- package/bundle/chunk-gsyt2sv7.js +2 -0
- package/bundle/{chunk-3c6p8tm3.js → chunk-gws1rn1v.js} +1 -1
- package/bundle/{chunk-hnzegjgv.js → chunk-gy0wm7e1.js} +1 -1
- package/bundle/{chunk-pp2eqkse.js → chunk-h3k1dk9m.js} +1 -1
- package/bundle/chunk-h8c3dcqt.js +2 -0
- package/bundle/chunk-hfq11w4h.js +2 -0
- package/bundle/{chunk-01my2y0c.js → chunk-hj3ddt53.js} +1 -1
- package/bundle/{chunk-rzt0ge3t.js → chunk-hv6eccx1.js} +4 -4
- package/bundle/{chunk-ay8emwym.js → chunk-hw5qyht3.js} +1 -1
- package/bundle/chunk-hwf58w1k.js +2 -0
- package/bundle/{chunk-kq6b222y.js → chunk-jgjnz82k.js} +1 -1
- package/bundle/{chunk-wfb608qf.js → chunk-jkh6eg7d.js} +3 -3
- package/bundle/{chunk-5gmjtmc4.js → chunk-jyczz3yh.js} +2 -2
- package/bundle/{chunk-np50azpb.js → chunk-k8k8z6b7.js} +2 -2
- package/bundle/{chunk-6hpgb8h4.js → chunk-ke7n9t5p.js} +3 -3
- package/bundle/{chunk-vcw00k0n.js → chunk-keveg5gx.js} +2 -2
- package/bundle/{chunk-dxpj0cxh.js → chunk-kfmz2p27.js} +2 -2
- package/bundle/{chunk-xm7wascx.js → chunk-kjyw00jp.js} +1 -1
- package/bundle/chunk-kk3ve911.js +2 -0
- package/bundle/{chunk-gsar6xda.js → chunk-kmcsz8yv.js} +1 -1
- package/bundle/{chunk-4cnwn1rh.js → chunk-kv72hxkp.js} +2 -2
- package/bundle/{chunk-kj20f048.js → chunk-kwx9ewe0.js} +1 -1
- package/bundle/chunk-m4j7jyrd.js +3 -0
- package/bundle/{chunk-5hw6xa49.js → chunk-md8161zd.js} +1 -1
- package/bundle/{chunk-xzrb857v.js → chunk-mex0fe9s.js} +1 -1
- package/bundle/{chunk-ctaze2hn.js → chunk-mf3sm0pk.js} +1 -1
- package/bundle/chunk-mkng9ykt.js +2 -0
- package/bundle/{chunk-mzs2pjyc.js → chunk-mpygdb5a.js} +2 -2
- package/bundle/{chunk-81qwdg5s.js → chunk-mq6jn47r.js} +1 -1
- package/bundle/{chunk-yp8wyzzm.js → chunk-mr8j7rc6.js} +1 -1
- package/bundle/{chunk-48nm6v8b.js → chunk-mxvypy3s.js} +1 -1
- package/bundle/chunk-n5ypgxrn.js +28 -0
- package/bundle/{chunk-h4j5xzc8.js → chunk-n6gtdx5h.js} +1 -1
- package/bundle/{chunk-h2afsbm1.js → chunk-n6msxne8.js} +1 -1
- package/bundle/{chunk-jbx3s7nw.js → chunk-n96tvjgj.js} +2 -2
- package/bundle/{chunk-ftas05da.js → chunk-n9xw9kqc.js} +1 -1
- package/bundle/{chunk-v7w4nfn7.js → chunk-nc4wbc89.js} +1 -1
- package/bundle/{chunk-9f1z9xce.js → chunk-ngccf7ga.js} +1 -1
- package/bundle/{chunk-2bn2b29j.js → chunk-ngk67rt3.js} +1 -1
- package/bundle/{chunk-0t4324w5.js → chunk-nj2bbtmx.js} +1 -1
- package/bundle/chunk-nj4d554m.js +11 -0
- package/bundle/{chunk-dynv30gm.js → chunk-nj61v4n7.js} +1 -1
- package/bundle/{chunk-12vef2pr.js → chunk-nkk4fyqf.js} +1 -1
- package/bundle/{chunk-gbpvs0fx.js → chunk-nmehsm3w.js} +1 -1
- package/bundle/chunk-nr1g57b2.js +2 -0
- package/bundle/chunk-p0ahbpxv.js +2 -0
- package/bundle/{chunk-73e409hd.js → chunk-p3qkexpk.js} +1 -1
- package/bundle/chunk-p7y8z5rd.js +2 -0
- package/bundle/{chunk-yhbcbjfk.js → chunk-p825vsjy.js} +1 -1
- package/bundle/{chunk-rbk8seme.js → chunk-p9cnzxb8.js} +1 -1
- package/bundle/{chunk-15hw2z9t.js → chunk-pkc4ddw1.js} +1 -1
- package/bundle/{chunk-1gx18dm5.js → chunk-prh3c44x.js} +1 -1
- package/bundle/chunk-pt26gerr.js +2 -0
- package/bundle/{chunk-zscer8rc.js → chunk-pxmhe36r.js} +1 -1
- package/bundle/{chunk-g7ccdh7r.js → chunk-q8hd01j7.js} +1 -1
- package/bundle/{chunk-e10py6yr.js → chunk-qa2j0qmy.js} +1 -1
- package/bundle/{chunk-g10d6x57.js → chunk-qddt2gcs.js} +1 -1
- package/bundle/{chunk-y3b4k38p.js → chunk-qg2vk5fw.js} +1 -1
- package/bundle/{chunk-7z5jh4ra.js → chunk-qkjdr337.js} +1 -1
- package/bundle/chunk-qkk1as5n.js +2 -0
- package/bundle/{chunk-5q4harvc.js → chunk-qrtc3etn.js} +2 -2
- package/bundle/chunk-qsm9xw87.js +2 -0
- package/bundle/chunk-qw980y8h.js +2 -0
- package/bundle/{chunk-7avcnwv8.js → chunk-qzj6027k.js} +1 -1
- package/bundle/{chunk-70ck4v3t.js → chunk-r0k21apr.js} +1 -1
- package/bundle/chunk-r2w3gr8d.js +2 -0
- package/bundle/chunk-r5bqcpkz.js +2 -0
- package/bundle/chunk-r67c858b.js +2 -0
- package/bundle/chunk-r9fvfkee.js +2 -0
- package/bundle/chunk-rcn0dhbj.js +2 -0
- package/bundle/{chunk-69nzndk7.js → chunk-rkwrjphh.js} +1 -1
- package/bundle/{chunk-0mx2psfc.js → chunk-rmve21dh.js} +1 -1
- package/bundle/chunk-rq47pn3r.js +2 -0
- package/bundle/{chunk-b8gjz6bk.js → chunk-rq4w0by4.js} +1 -1
- package/bundle/{chunk-jrqb0jwy.js → chunk-rsszcqxd.js} +1 -1
- package/bundle/{chunk-xvwvd4kq.js → chunk-rv1stdvb.js} +1 -1
- package/bundle/chunk-rvt1tdy8.js +2 -0
- package/bundle/{chunk-3bxg5bta.js → chunk-ry7q8xn6.js} +1 -1
- package/bundle/{chunk-rjd8gbs5.js → chunk-ryfqwsft.js} +1 -1
- package/bundle/chunk-s27xvrft.js +2 -0
- package/bundle/{chunk-p9qfbr02.js → chunk-s4qtphwx.js} +1 -1
- package/bundle/{chunk-4fgzp2zd.js → chunk-s5nde2kd.js} +1 -1
- package/bundle/{chunk-qrsveve6.js → chunk-s8hq6trz.js} +1 -1
- package/bundle/chunk-scy39p6q.js +2 -0
- package/bundle/{chunk-71sjjjr8.js → chunk-seghf5fc.js} +1 -1
- package/bundle/{chunk-2zq4k837.js → chunk-sfes6pp1.js} +1 -1
- package/bundle/{chunk-qn6gdhns.js → chunk-sjw56r2n.js} +2 -2
- package/bundle/{chunk-htz93dsd.js → chunk-snr44en9.js} +2 -2
- package/bundle/{chunk-pfyhg0m7.js → chunk-srpe3v8e.js} +1 -1
- package/bundle/{chunk-cphrgyp6.js → chunk-ssk8tkwd.js} +1 -1
- package/bundle/{chunk-ccmbckek.js → chunk-st5jaszz.js} +1 -1
- package/bundle/{chunk-mrt1z4m8.js → chunk-t2vm08v6.js} +1 -1
- package/bundle/{chunk-vrc0h1q7.js → chunk-t3eymzg1.js} +1 -1
- package/bundle/{chunk-yv0xrnn9.js → chunk-t5qamf96.js} +1 -1
- package/bundle/{chunk-xn70ep9n.js → chunk-tbgczapt.js} +1 -1
- package/bundle/chunk-tns5x4w0.js +3 -0
- package/bundle/chunk-ttevj0pj.js +2 -0
- package/bundle/{chunk-rvfvk2ty.js → chunk-txbwmwxj.js} +1 -1
- package/bundle/chunk-v7c54cyj.js +2 -0
- package/bundle/chunk-vgefaens.js +2 -0
- package/bundle/{chunk-24jg9d61.js → chunk-vsr8mnj6.js} +1 -1
- package/bundle/{chunk-6d5rrre9.js → chunk-vszbqv24.js} +1 -1
- package/bundle/chunk-vv59b4re.js +2 -0
- package/bundle/chunk-vwqy7n3g.js +2 -0
- package/bundle/{chunk-n6wt9m2k.js → chunk-vysa9hp4.js} +1 -1
- package/bundle/{chunk-a1g7jr3r.js → chunk-w1n4rf6n.js} +1 -1
- package/bundle/{chunk-gagtmjmp.js → chunk-wfd5h6ax.js} +2 -2
- package/bundle/{chunk-ht5w06x7.js → chunk-wgk7ynt3.js} +2 -2
- package/bundle/chunk-wn076jwj.js +2 -0
- package/bundle/{chunk-35xk4g91.js → chunk-wvf5q2hz.js} +1 -1
- package/bundle/chunk-x0m1qye9.js +2 -0
- package/bundle/{chunk-p62gb4wj.js → chunk-x66ycpfs.js} +1 -1
- package/bundle/{chunk-48ge2ryx.js → chunk-xgr6jnd6.js} +1 -1
- package/bundle/{chunk-2hc5z7b5.js → chunk-xqdrr7xg.js} +1 -1
- package/bundle/{chunk-bnap670d.js → chunk-xvntsbb1.js} +1 -1
- package/bundle/{chunk-ss2ms1r3.js → chunk-y437vyza.js} +1 -1
- package/bundle/chunk-y70aachh.js +2 -0
- package/bundle/{chunk-db405hjg.js → chunk-y9zstzed.js} +1 -1
- package/bundle/{chunk-pp6vhqrr.js → chunk-yjk6zv2z.js} +1 -1
- package/bundle/{chunk-326p5b10.js → chunk-yk97q51d.js} +1 -1
- package/bundle/{chunk-kf167jw7.js → chunk-ynwkr3yh.js} +1 -1
- package/bundle/{chunk-9bzhxenb.js → chunk-yprmd5b7.js} +2 -2
- package/bundle/{chunk-y9q0hb7b.js → chunk-yqk58hf6.js} +2 -2
- package/bundle/chunk-ysgxt83y.js +2 -0
- package/bundle/{chunk-tt30dybd.js → chunk-yz6898wy.js} +1 -1
- package/bundle/{chunk-x562b0xk.js → chunk-z1ay3qd0.js} +1 -1
- package/bundle/{chunk-9emq67vc.js → chunk-z7430qxg.js} +1 -1
- package/bundle/{chunk-2maqde7w.js → chunk-z8gdmvgg.js} +2 -2
- package/bundle/{chunk-3bssxmtg.js → chunk-zddknkw7.js} +1 -1
- package/bundle/chunk-ze9e6nt3.js +3 -0
- package/bundle/{chunk-vxyy2dp3.js → chunk-zfcp509b.js} +1 -1
- package/bundle/{chunk-x7k5yeey.js → chunk-zfn0z4sh.js} +1 -1
- package/bundle/{chunk-ag8kz1e7.js → chunk-zh3fny3z.js} +2 -2
- package/bundle/{chunk-9k6hz80e.js → chunk-znzan00b.js} +1 -1
- package/bundle/chunk-zrp55k47.js +2 -0
- package/bundle/chunk-zwdnh860.js +2 -0
- package/bundle/{chunk-1vb79bw1.js → chunk-zwnhf4z1.js} +1 -1
- package/bundle/index.js +3 -3
- package/bundle/parser.worker.js +2 -2
- package/bundle/worker.js +1 -1
- package/package.json +1 -1
- package/bundle/chunk-0e1vkdze.js +0 -2
- package/bundle/chunk-0p27fvfr.js +0 -2
- package/bundle/chunk-0qs1vx97.js +0 -2
- package/bundle/chunk-18bj8z8m.js +0 -28
- package/bundle/chunk-19g6dhva.js +0 -2
- package/bundle/chunk-1ap7sh2c.js +0 -2
- package/bundle/chunk-1rhhhm88.js +0 -2
- package/bundle/chunk-1wbjh23g.js +0 -2
- package/bundle/chunk-3dadmgxa.js +0 -2
- package/bundle/chunk-42p59wm4.js +0 -2
- package/bundle/chunk-43xt69m8.js +0 -2
- package/bundle/chunk-4512pvca.js +0 -2
- package/bundle/chunk-456bmaww.js +0 -2
- package/bundle/chunk-48pajrnt.js +0 -2
- package/bundle/chunk-4fy9c54h.js +0 -2
- package/bundle/chunk-4m5yesw8.js +0 -2
- package/bundle/chunk-59y8q9m5.js +0 -2
- package/bundle/chunk-5tray1fw.js +0 -3
- package/bundle/chunk-5v6b8mr6.js +0 -2
- package/bundle/chunk-64ezpbwt.js +0 -2
- package/bundle/chunk-6r7z94e6.js +0 -3
- package/bundle/chunk-711dc303.js +0 -5
- package/bundle/chunk-7mke41x0.js +0 -2
- package/bundle/chunk-7ry9cvby.js +0 -2
- package/bundle/chunk-7wczs9mx.js +0 -2
- package/bundle/chunk-8v96pmqn.js +0 -2
- package/bundle/chunk-8y2scz6z.js +0 -2
- package/bundle/chunk-8zx7vnx6.js +0 -2
- package/bundle/chunk-94a76f8w.js +0 -2
- package/bundle/chunk-9ng7jjp7.js +0 -2
- package/bundle/chunk-9tpgnjy8.js +0 -2
- package/bundle/chunk-a7ym9f0v.js +0 -2
- package/bundle/chunk-a8f2xvy3.js +0 -2
- package/bundle/chunk-a99cvwta.js +0 -2
- package/bundle/chunk-aecc391x.js +0 -2
- package/bundle/chunk-avys5mnz.js +0 -2
- package/bundle/chunk-axvjd10y.js +0 -2
- package/bundle/chunk-b4pphqab.js +0 -2
- package/bundle/chunk-b6087ak4.js +0 -2
- package/bundle/chunk-bdd97g5y.js +0 -2
- package/bundle/chunk-bn0h9dny.js +0 -10
- package/bundle/chunk-bnmz683j.js +0 -2
- package/bundle/chunk-brkqxbjy.js +0 -2
- package/bundle/chunk-c26qxt5g.js +0 -2
- package/bundle/chunk-c6zscb38.js +0 -2
- package/bundle/chunk-cjww2jmv.js +0 -3
- package/bundle/chunk-d2ttw3wf.js +0 -2
- package/bundle/chunk-dafmkrhn.js +0 -2
- package/bundle/chunk-dgprdym0.js +0 -2
- package/bundle/chunk-dsamees2.js +0 -2
- package/bundle/chunk-dxje3azs.js +0 -2
- package/bundle/chunk-dyqpxx3b.js +0 -2
- package/bundle/chunk-etvs6a6y.js +0 -2
- package/bundle/chunk-ftn49yn1.js +0 -2
- package/bundle/chunk-gwzw92jt.js +0 -2
- package/bundle/chunk-hdrbyarv.js +0 -3
- package/bundle/chunk-hkqnqw3x.js +0 -2
- package/bundle/chunk-hp7tssgv.js +0 -2
- package/bundle/chunk-ht0hbdmx.js +0 -2
- package/bundle/chunk-m1s19p9n.js +0 -2
- package/bundle/chunk-ngm6pqyt.js +0 -2
- package/bundle/chunk-ngtavamt.js +0 -2
- package/bundle/chunk-nkhc32s3.js +0 -2
- package/bundle/chunk-npse2xrd.js +0 -2
- package/bundle/chunk-p3pemdns.js +0 -2
- package/bundle/chunk-p6e4vqy7.js +0 -2
- package/bundle/chunk-pqkjhn8h.js +0 -2
- package/bundle/chunk-qd8w2gkd.js +0 -2
- package/bundle/chunk-rbbw7bs0.js +0 -2
- package/bundle/chunk-rf12t4n5.js +0 -2
- package/bundle/chunk-rpgne7xh.js +0 -2
- package/bundle/chunk-rvgj1vky.js +0 -2
- package/bundle/chunk-ss2jvqrg.js +0 -2
- package/bundle/chunk-tt9smgmg.js +0 -2
- package/bundle/chunk-tvwwq4b3.js +0 -2
- package/bundle/chunk-v2n26eg4.js +0 -2
- package/bundle/chunk-v7ezt8k3.js +0 -2
- package/bundle/chunk-vqg5q96v.js +0 -2
- package/bundle/chunk-x24y7qyd.js +0 -2
- package/bundle/chunk-y2d0w09y.js +0 -2
- package/bundle/chunk-yb79f79m.js +0 -2
- package/bundle/chunk-yjnyzpmt.js +0 -2
- package/bundle/chunk-yqbcnsa1.js +0 -2
- package/bundle/chunk-z3mra3nm.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{id as a,jd as b,kd as c,ld as d,md as e,nd as f,od as g,pd as h,qd as i,rd as j,sd as k,td as l}from"./chunk-
|
|
2
|
+
import{id as a,jd as b,kd as c,ld as d,md as e,nd as f,od as g,pd as h,qd as i,rd as j,sd as k,td as l}from"./chunk-jkh6eg7d.js";import"./chunk-3k2b05fv.js";export{i as setRendererCapabilities,a as pasteBytes,f as createTestRenderer,h as createTerminalCapabilities,j as createSpy,e as createMockMouse,c as createMockKeys,l as TestRecorder,d as MouseButtons,g as MockTreeSitterClient,k as ManualClock,b as KeyCodes};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{ji as f,ki as q,li as w,mi as x}from"./chunk-7hm0c2yg.js";import"./chunk-
|
|
2
|
+
import{ji as f,ki as q,li as w,mi as x}from"./chunk-7hm0c2yg.js";import"./chunk-3k2b05fv.js";export{w as applyModuleEvalRuntimeOptions,q as applyBaseRuntimeOptions,x as QuickJSWASMModule,f as QuickJSModuleCallbacks};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var R;(function($){$.assertEqual=(W)=>{};function q(W){}$.assertIs=q;function _(W){throw Error()}$.assertNever=_,$.arrayToEnum=(W)=>{let H={};for(let J of W)H[J]=J;return H},$.getValidEnumValues=(W)=>{let H=$.objectKeys(W).filter((Y)=>typeof W[W[Y]]!=="number"),J={};for(let Y of H)J[Y]=W[Y];return $.objectValues(J)},$.objectValues=(W)=>{return $.objectKeys(W).map(function(H){return W[H]})},$.objectKeys=typeof Object.keys==="function"?(W)=>Object.keys(W):(W)=>{let H=[];for(let J in W)if(Object.prototype.hasOwnProperty.call(W,J))H.push(J);return H},$.find=(W,H)=>{for(let J of W)if(H(J))return J;return},$.isInteger=typeof Number.isInteger==="function"?(W)=>Number.isInteger(W):(W)=>typeof W==="number"&&Number.isFinite(W)&&Math.floor(W)===W;function G(W,H=" | "){return W.map((J)=>typeof J==="string"?`'${J}'`:J).join(H)}$.joinValues=G,$.jsonStringifyReplacer=(W,H)=>{if(typeof H==="bigint")return H.toString();return H}})(R||(R={}));var U$;(function($){$.mergeShapes=(q,_)=>{return{...q,..._}}})(U$||(U$={}));var Q=R.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),F=($)=>{switch(typeof $){case"undefined":return Q.undefined;case"string":return Q.string;case"number":return Number.isNaN($)?Q.nan:Q.number;case"boolean":return Q.boolean;case"function":return Q.function;case"bigint":return Q.bigint;case"symbol":return Q.symbol;case"object":if(Array.isArray($))return Q.array;if($===null)return Q.null;if($.then&&typeof $.then==="function"&&$.catch&&typeof $.catch==="function")return Q.promise;if(typeof Map<"u"&&$ instanceof Map)return Q.map;if(typeof Set<"u"&&$ instanceof Set)return Q.set;if(typeof Date<"u"&&$ instanceof Date)return Q.date;return Q.object;default:return Q.unknown}};var X=R.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class A extends Error{get errors(){return this.issues}constructor($){super();this.issues=[],this.addIssue=(_)=>{this.issues=[...this.issues,_]},this.addIssues=(_=[])=>{this.issues=[...this.issues,..._]};let q=new.target.prototype;if(Object.setPrototypeOf)Object.setPrototypeOf(this,q);else this.__proto__=q;this.name="ZodError",this.issues=$}format($){let q=$||function(W){return W.message},_={_errors:[]},G=(W)=>{for(let H of W.issues)if(H.code==="invalid_union")H.unionErrors.map(G);else if(H.code==="invalid_return_type")G(H.returnTypeError);else if(H.code==="invalid_arguments")G(H.argumentsError);else if(H.path.length===0)_._errors.push(q(H));else{let J=_,Y=0;while(Y<H.path.length){let M=H.path[Y];if(Y!==H.path.length-1)J[M]=J[M]||{_errors:[]};else J[M]=J[M]||{_errors:[]},J[M]._errors.push(q(H));J=J[M],Y++}}};return G(this),_}static assert($){if(!($ instanceof A))throw Error(`Not a ZodError: ${$}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,R.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten($=(q)=>q.message){let q={},_=[];for(let G of this.issues)if(G.path.length>0){let W=G.path[0];q[W]=q[W]||[],q[W].push($(G))}else _.push($(G));return{formErrors:_,fieldErrors:q}}get formErrors(){return this.flatten()}}A.create=($)=>{return new A($)};var D$=($,q)=>{let _;switch($.code){case X.invalid_type:if($.received===Q.undefined)_="Required";else _=`Expected ${$.expected}, received ${$.received}`;break;case X.invalid_literal:_=`Invalid literal value, expected ${JSON.stringify($.expected,R.jsonStringifyReplacer)}`;break;case X.unrecognized_keys:_=`Unrecognized key(s) in object: ${R.joinValues($.keys,", ")}`;break;case X.invalid_union:_="Invalid input";break;case X.invalid_union_discriminator:_=`Invalid discriminator value. Expected ${R.joinValues($.options)}`;break;case X.invalid_enum_value:_=`Invalid enum value. Expected ${R.joinValues($.options)}, received '${$.received}'`;break;case X.invalid_arguments:_="Invalid function arguments";break;case X.invalid_return_type:_="Invalid function return type";break;case X.invalid_date:_="Invalid date";break;case X.invalid_string:if(typeof $.validation==="object")if("includes"in $.validation){if(_=`Invalid input: must include "${$.validation.includes}"`,typeof $.validation.position==="number")_=`${_} at one or more positions greater than or equal to ${$.validation.position}`}else if("startsWith"in $.validation)_=`Invalid input: must start with "${$.validation.startsWith}"`;else if("endsWith"in $.validation)_=`Invalid input: must end with "${$.validation.endsWith}"`;else R.assertNever($.validation);else if($.validation!=="regex")_=`Invalid ${$.validation}`;else _="Invalid";break;case X.too_small:if($.type==="array")_=`Array must contain ${$.exact?"exactly":$.inclusive?"at least":"more than"} ${$.minimum} element(s)`;else if($.type==="string")_=`String must contain ${$.exact?"exactly":$.inclusive?"at least":"over"} ${$.minimum} character(s)`;else if($.type==="number")_=`Number must be ${$.exact?"exactly equal to ":$.inclusive?"greater than or equal to ":"greater than "}${$.minimum}`;else if($.type==="bigint")_=`Number must be ${$.exact?"exactly equal to ":$.inclusive?"greater than or equal to ":"greater than "}${$.minimum}`;else if($.type==="date")_=`Date must be ${$.exact?"exactly equal to ":$.inclusive?"greater than or equal to ":"greater than "}${new Date(Number($.minimum))}`;else _="Invalid input";break;case X.too_big:if($.type==="array")_=`Array must contain ${$.exact?"exactly":$.inclusive?"at most":"less than"} ${$.maximum} element(s)`;else if($.type==="string")_=`String must contain ${$.exact?"exactly":$.inclusive?"at most":"under"} ${$.maximum} character(s)`;else if($.type==="number")_=`Number must be ${$.exact?"exactly":$.inclusive?"less than or equal to":"less than"} ${$.maximum}`;else if($.type==="bigint")_=`BigInt must be ${$.exact?"exactly":$.inclusive?"less than or equal to":"less than"} ${$.maximum}`;else if($.type==="date")_=`Date must be ${$.exact?"exactly":$.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number($.maximum))}`;else _="Invalid input";break;case X.custom:_="Invalid input";break;case X.invalid_intersection_types:_="Intersection results could not be merged";break;case X.not_multiple_of:_=`Number must be a multiple of ${$.multipleOf}`;break;case X.not_finite:_="Number must be finite";break;default:_=q.defaultError,R.assertNever($)}return{message:_}},I=D$;var f$=I;function u(){return f$}var w;(function($){$.errToObj=(q)=>typeof q==="string"?{message:q}:q||{},$.toString=(q)=>typeof q==="string"?q:q?.message})(w||(w={}));var G$=($)=>{let{data:q,path:_,errorMaps:G,issueData:W}=$,H=[..._,...W.path||[]],J={...W,path:H};if(W.message!==void 0)return{...W,path:H,message:W.message};let Y="",M=G.filter((S)=>!!S).slice().reverse();for(let S of M)Y=S(J,{data:q,defaultError:Y}).message;return{...W,path:H,message:Y}};function B($,q){let _=u(),G=G$({issueData:q,data:$.data,path:$.path,errorMaps:[$.common.contextualErrorMap,$.schemaErrorMap,_,_===I?void 0:I].filter((W)=>!!W)});$.common.issues.push(G)}class V{constructor(){this.value="valid"}dirty(){if(this.value==="valid")this.value="dirty"}abort(){if(this.value!=="aborted")this.value="aborted"}static mergeArray($,q){let _=[];for(let G of q){if(G.status==="aborted")return z;if(G.status==="dirty")$.dirty();_.push(G.value)}return{status:$.value,value:_}}static async mergeObjectAsync($,q){let _=[];for(let G of q){let W=await G.key,H=await G.value;_.push({key:W,value:H})}return V.mergeObjectSync($,_)}static mergeObjectSync($,q){let _={};for(let G of q){let{key:W,value:H}=G;if(W.status==="aborted")return z;if(H.status==="aborted")return z;if(W.status==="dirty")$.dirty();if(H.status==="dirty")$.dirty();if(W.value!=="__proto__"&&(typeof H.value<"u"||G.alwaysSet))_[W.value]=H.value}return{status:$.value,value:_}}}var z=Object.freeze({status:"aborted"}),x=($)=>({status:"dirty",value:$}),U=($)=>({status:"valid",value:$}),j$=($)=>$.status==="aborted",b$=($)=>$.status==="dirty",h=($)=>$.status==="valid",p=($)=>typeof Promise<"u"&&$ instanceof Promise;class L{constructor($,q,_,G){this._cachedPath=[],this.parent=$,this.data=q,this._path=_,this._key=G}get path(){if(!this._cachedPath.length)if(Array.isArray(this._key))this._cachedPath.push(...this._path,...this._key);else this._cachedPath.push(...this._path,this._key);return this._cachedPath}}var A$=($,q)=>{if(h(q))return{success:!0,data:q.value};else{if(!$.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let _=new A($.common.issues);return this._error=_,this._error}}}};function b($){if(!$)return{};let{errorMap:q,invalid_type_error:_,required_error:G,description:W}=$;if(q&&(_||G))throw Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);if(q)return{errorMap:q,description:W};return{errorMap:(J,Y)=>{let{message:M}=$;if(J.code==="invalid_enum_value")return{message:M??Y.defaultError};if(typeof Y.data>"u")return{message:M??G??Y.defaultError};if(J.code!=="invalid_type")return{message:Y.defaultError};return{message:M??_??Y.defaultError}},description:W}}class O{get description(){return this._def.description}_getType($){return F($.data)}_getOrReturnCtx($,q){return q||{common:$.parent.common,data:$.data,parsedType:F($.data),schemaErrorMap:this._def.errorMap,path:$.path,parent:$.parent}}_processInputParams($){return{status:new V,ctx:{common:$.parent.common,data:$.data,parsedType:F($.data),schemaErrorMap:this._def.errorMap,path:$.path,parent:$.parent}}}_parseSync($){let q=this._parse($);if(p(q))throw Error("Synchronous parse encountered promise.");return q}_parseAsync($){let q=this._parse($);return Promise.resolve(q)}parse($,q){let _=this.safeParse($,q);if(_.success)return _.data;throw _.error}safeParse($,q){let _={common:{issues:[],async:q?.async??!1,contextualErrorMap:q?.errorMap},path:q?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:$,parsedType:F($)},G=this._parseSync({data:$,path:_.path,parent:_});return A$(_,G)}"~validate"($){let q={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:$,parsedType:F($)};if(!this["~standard"].async)try{let _=this._parseSync({data:$,path:[],parent:q});return h(_)?{value:_.value}:{issues:q.common.issues}}catch(_){if(_?.message?.toLowerCase()?.includes("encountered"))this["~standard"].async=!0;q.common={issues:[],async:!0}}return this._parseAsync({data:$,path:[],parent:q}).then((_)=>h(_)?{value:_.value}:{issues:q.common.issues})}async parseAsync($,q){let _=await this.safeParseAsync($,q);if(_.success)return _.data;throw _.error}async safeParseAsync($,q){let _={common:{issues:[],contextualErrorMap:q?.errorMap,async:!0},path:q?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:$,parsedType:F($)},G=this._parse({data:$,path:_.path,parent:_}),W=await(p(G)?G:Promise.resolve(G));return A$(_,W)}refine($,q){let _=(G)=>{if(typeof q==="string"||typeof q>"u")return{message:q};else if(typeof q==="function")return q(G);else return q};return this._refinement((G,W)=>{let H=$(G),J=()=>W.addIssue({code:X.custom,..._(G)});if(typeof Promise<"u"&&H instanceof Promise)return H.then((Y)=>{if(!Y)return J(),!1;else return!0});if(!H)return J(),!1;else return!0})}refinement($,q){return this._refinement((_,G)=>{if(!$(_))return G.addIssue(typeof q==="function"?q(_,G):q),!1;else return!0})}_refinement($){return new f({schema:this,typeName:j.ZodEffects,effect:{type:"refinement",refinement:$}})}superRefine($){return this._refinement($)}constructor($){this.spa=this.safeParseAsync,this._def=$,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:(q)=>this["~validate"](q)}}optional(){return D.create(this,this._def)}nullable(){return P.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return N.create(this)}promise(){return c.create(this,this._def)}or($){return a.create([this,$],this._def)}and($){return s.create(this,$,this._def)}transform($){return new f({...b(this._def),schema:this,typeName:j.ZodEffects,effect:{type:"transform",transform:$}})}default($){let q=typeof $==="function"?$:()=>$;return new q$({...b(this._def),innerType:this,defaultValue:q,typeName:j.ZodDefault})}brand(){return new E$({typeName:j.ZodBranded,type:this,...b(this._def)})}catch($){let q=typeof $==="function"?$:()=>$;return new _$({...b(this._def),innerType:this,catchValue:q,typeName:j.ZodCatch})}describe($){return new this.constructor({...this._def,description:$})}pipe($){return w$.create(this,$)}readonly(){return W$.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}var F$=/^c[^\s-]{8,}$/i,K$=/^[0-9a-z]+$/,k$=/^[0-9A-HJKMNP-TV-Z]{26}$/i,C$=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,g$=/^[a-z0-9_-]{21}$/i,I$=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,P$=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,h$=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,T$="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",S$,l$=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,x$=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,m$=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,y$=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Z$=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,n$=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,v$="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",c$=new RegExp(`^${v$}$`);function L$($){let q="[0-5]\\d";if($.precision)q=`${q}\\.\\d{${$.precision}}`;else if($.precision==null)q=`${q}(\\.\\d+)?`;let _=$.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${q})${_}`}function u$($){return new RegExp(`^${L$($)}$`)}function p$($){let q=`${v$}T${L$($)}`,_=[];if(_.push($.local?"Z?":"Z"),$.offset)_.push("([+-]\\d{2}:?\\d{2})");return q=`${q}(${_.join("|")})`,new RegExp(`^${q}$`)}function i$($,q){if((q==="v4"||!q)&&l$.test($))return!0;if((q==="v6"||!q)&&m$.test($))return!0;return!1}function r$($,q){if(!I$.test($))return!1;try{let[_]=$.split(".");if(!_)return!1;let G=_.replace(/-/g,"+").replace(/_/g,"/").padEnd(_.length+(4-_.length%4)%4,"="),W=JSON.parse(atob(G));if(typeof W!=="object"||W===null)return!1;if("typ"in W&&W?.typ!=="JWT")return!1;if(!W.alg)return!1;if(q&&W.alg!==q)return!1;return!0}catch{return!1}}function o$($,q){if((q==="v4"||!q)&&x$.test($))return!0;if((q==="v6"||!q)&&y$.test($))return!0;return!1}class k extends O{_parse($){if(this._def.coerce)$.data=String($.data);if(this._getType($)!==Q.string){let W=this._getOrReturnCtx($);return B(W,{code:X.invalid_type,expected:Q.string,received:W.parsedType}),z}let _=new V,G=void 0;for(let W of this._def.checks)if(W.kind==="min"){if($.data.length<W.value)G=this._getOrReturnCtx($,G),B(G,{code:X.too_small,minimum:W.value,type:"string",inclusive:!0,exact:!1,message:W.message}),_.dirty()}else if(W.kind==="max"){if($.data.length>W.value)G=this._getOrReturnCtx($,G),B(G,{code:X.too_big,maximum:W.value,type:"string",inclusive:!0,exact:!1,message:W.message}),_.dirty()}else if(W.kind==="length"){let H=$.data.length>W.value,J=$.data.length<W.value;if(H||J){if(G=this._getOrReturnCtx($,G),H)B(G,{code:X.too_big,maximum:W.value,type:"string",inclusive:!0,exact:!0,message:W.message});else if(J)B(G,{code:X.too_small,minimum:W.value,type:"string",inclusive:!0,exact:!0,message:W.message});_.dirty()}}else if(W.kind==="email"){if(!h$.test($.data))G=this._getOrReturnCtx($,G),B(G,{validation:"email",code:X.invalid_string,message:W.message}),_.dirty()}else if(W.kind==="emoji"){if(!S$)S$=new RegExp(T$,"u");if(!S$.test($.data))G=this._getOrReturnCtx($,G),B(G,{validation:"emoji",code:X.invalid_string,message:W.message}),_.dirty()}else if(W.kind==="uuid"){if(!C$.test($.data))G=this._getOrReturnCtx($,G),B(G,{validation:"uuid",code:X.invalid_string,message:W.message}),_.dirty()}else if(W.kind==="nanoid"){if(!g$.test($.data))G=this._getOrReturnCtx($,G),B(G,{validation:"nanoid",code:X.invalid_string,message:W.message}),_.dirty()}else if(W.kind==="cuid"){if(!F$.test($.data))G=this._getOrReturnCtx($,G),B(G,{validation:"cuid",code:X.invalid_string,message:W.message}),_.dirty()}else if(W.kind==="cuid2"){if(!K$.test($.data))G=this._getOrReturnCtx($,G),B(G,{validation:"cuid2",code:X.invalid_string,message:W.message}),_.dirty()}else if(W.kind==="ulid"){if(!k$.test($.data))G=this._getOrReturnCtx($,G),B(G,{validation:"ulid",code:X.invalid_string,message:W.message}),_.dirty()}else if(W.kind==="url")try{new URL($.data)}catch{G=this._getOrReturnCtx($,G),B(G,{validation:"url",code:X.invalid_string,message:W.message}),_.dirty()}else if(W.kind==="regex"){if(W.regex.lastIndex=0,!W.regex.test($.data))G=this._getOrReturnCtx($,G),B(G,{validation:"regex",code:X.invalid_string,message:W.message}),_.dirty()}else if(W.kind==="trim")$.data=$.data.trim();else if(W.kind==="includes"){if(!$.data.includes(W.value,W.position))G=this._getOrReturnCtx($,G),B(G,{code:X.invalid_string,validation:{includes:W.value,position:W.position},message:W.message}),_.dirty()}else if(W.kind==="toLowerCase")$.data=$.data.toLowerCase();else if(W.kind==="toUpperCase")$.data=$.data.toUpperCase();else if(W.kind==="startsWith"){if(!$.data.startsWith(W.value))G=this._getOrReturnCtx($,G),B(G,{code:X.invalid_string,validation:{startsWith:W.value},message:W.message}),_.dirty()}else if(W.kind==="endsWith"){if(!$.data.endsWith(W.value))G=this._getOrReturnCtx($,G),B(G,{code:X.invalid_string,validation:{endsWith:W.value},message:W.message}),_.dirty()}else if(W.kind==="datetime"){if(!p$(W).test($.data))G=this._getOrReturnCtx($,G),B(G,{code:X.invalid_string,validation:"datetime",message:W.message}),_.dirty()}else if(W.kind==="date"){if(!c$.test($.data))G=this._getOrReturnCtx($,G),B(G,{code:X.invalid_string,validation:"date",message:W.message}),_.dirty()}else if(W.kind==="time"){if(!u$(W).test($.data))G=this._getOrReturnCtx($,G),B(G,{code:X.invalid_string,validation:"time",message:W.message}),_.dirty()}else if(W.kind==="duration"){if(!P$.test($.data))G=this._getOrReturnCtx($,G),B(G,{validation:"duration",code:X.invalid_string,message:W.message}),_.dirty()}else if(W.kind==="ip"){if(!i$($.data,W.version))G=this._getOrReturnCtx($,G),B(G,{validation:"ip",code:X.invalid_string,message:W.message}),_.dirty()}else if(W.kind==="jwt"){if(!r$($.data,W.alg))G=this._getOrReturnCtx($,G),B(G,{validation:"jwt",code:X.invalid_string,message:W.message}),_.dirty()}else if(W.kind==="cidr"){if(!o$($.data,W.version))G=this._getOrReturnCtx($,G),B(G,{validation:"cidr",code:X.invalid_string,message:W.message}),_.dirty()}else if(W.kind==="base64"){if(!Z$.test($.data))G=this._getOrReturnCtx($,G),B(G,{validation:"base64",code:X.invalid_string,message:W.message}),_.dirty()}else if(W.kind==="base64url"){if(!n$.test($.data))G=this._getOrReturnCtx($,G),B(G,{validation:"base64url",code:X.invalid_string,message:W.message}),_.dirty()}else R.assertNever(W);return{status:_.value,value:$.data}}_regex($,q,_){return this.refinement((G)=>$.test(G),{validation:q,code:X.invalid_string,...w.errToObj(_)})}_addCheck($){return new k({...this._def,checks:[...this._def.checks,$]})}email($){return this._addCheck({kind:"email",...w.errToObj($)})}url($){return this._addCheck({kind:"url",...w.errToObj($)})}emoji($){return this._addCheck({kind:"emoji",...w.errToObj($)})}uuid($){return this._addCheck({kind:"uuid",...w.errToObj($)})}nanoid($){return this._addCheck({kind:"nanoid",...w.errToObj($)})}cuid($){return this._addCheck({kind:"cuid",...w.errToObj($)})}cuid2($){return this._addCheck({kind:"cuid2",...w.errToObj($)})}ulid($){return this._addCheck({kind:"ulid",...w.errToObj($)})}base64($){return this._addCheck({kind:"base64",...w.errToObj($)})}base64url($){return this._addCheck({kind:"base64url",...w.errToObj($)})}jwt($){return this._addCheck({kind:"jwt",...w.errToObj($)})}ip($){return this._addCheck({kind:"ip",...w.errToObj($)})}cidr($){return this._addCheck({kind:"cidr",...w.errToObj($)})}datetime($){if(typeof $==="string")return this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:$});return this._addCheck({kind:"datetime",precision:typeof $?.precision>"u"?null:$?.precision,offset:$?.offset??!1,local:$?.local??!1,...w.errToObj($?.message)})}date($){return this._addCheck({kind:"date",message:$})}time($){if(typeof $==="string")return this._addCheck({kind:"time",precision:null,message:$});return this._addCheck({kind:"time",precision:typeof $?.precision>"u"?null:$?.precision,...w.errToObj($?.message)})}duration($){return this._addCheck({kind:"duration",...w.errToObj($)})}regex($,q){return this._addCheck({kind:"regex",regex:$,...w.errToObj(q)})}includes($,q){return this._addCheck({kind:"includes",value:$,position:q?.position,...w.errToObj(q?.message)})}startsWith($,q){return this._addCheck({kind:"startsWith",value:$,...w.errToObj(q)})}endsWith($,q){return this._addCheck({kind:"endsWith",value:$,...w.errToObj(q)})}min($,q){return this._addCheck({kind:"min",value:$,...w.errToObj(q)})}max($,q){return this._addCheck({kind:"max",value:$,...w.errToObj(q)})}length($,q){return this._addCheck({kind:"length",value:$,...w.errToObj(q)})}nonempty($){return this.min(1,w.errToObj($))}trim(){return new k({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new k({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new k({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(($)=>$.kind==="datetime")}get isDate(){return!!this._def.checks.find(($)=>$.kind==="date")}get isTime(){return!!this._def.checks.find(($)=>$.kind==="time")}get isDuration(){return!!this._def.checks.find(($)=>$.kind==="duration")}get isEmail(){return!!this._def.checks.find(($)=>$.kind==="email")}get isURL(){return!!this._def.checks.find(($)=>$.kind==="url")}get isEmoji(){return!!this._def.checks.find(($)=>$.kind==="emoji")}get isUUID(){return!!this._def.checks.find(($)=>$.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(($)=>$.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(($)=>$.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(($)=>$.kind==="cuid2")}get isULID(){return!!this._def.checks.find(($)=>$.kind==="ulid")}get isIP(){return!!this._def.checks.find(($)=>$.kind==="ip")}get isCIDR(){return!!this._def.checks.find(($)=>$.kind==="cidr")}get isBase64(){return!!this._def.checks.find(($)=>$.kind==="base64")}get isBase64url(){return!!this._def.checks.find(($)=>$.kind==="base64url")}get minLength(){let $=null;for(let q of this._def.checks)if(q.kind==="min"){if($===null||q.value>$)$=q.value}return $}get maxLength(){let $=null;for(let q of this._def.checks)if(q.kind==="max"){if($===null||q.value<$)$=q.value}return $}}k.create=($)=>{return new k({checks:[],typeName:j.ZodString,coerce:$?.coerce??!1,...b($)})};function d$($,q){let _=($.toString().split(".")[1]||"").length,G=(q.toString().split(".")[1]||"").length,W=_>G?_:G,H=Number.parseInt($.toFixed(W).replace(".","")),J=Number.parseInt(q.toFixed(W).replace(".",""));return H%J/10**W}class y extends O{constructor(){super(...arguments);this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse($){if(this._def.coerce)$.data=Number($.data);if(this._getType($)!==Q.number){let W=this._getOrReturnCtx($);return B(W,{code:X.invalid_type,expected:Q.number,received:W.parsedType}),z}let _=void 0,G=new V;for(let W of this._def.checks)if(W.kind==="int"){if(!R.isInteger($.data))_=this._getOrReturnCtx($,_),B(_,{code:X.invalid_type,expected:"integer",received:"float",message:W.message}),G.dirty()}else if(W.kind==="min"){if(W.inclusive?$.data<W.value:$.data<=W.value)_=this._getOrReturnCtx($,_),B(_,{code:X.too_small,minimum:W.value,type:"number",inclusive:W.inclusive,exact:!1,message:W.message}),G.dirty()}else if(W.kind==="max"){if(W.inclusive?$.data>W.value:$.data>=W.value)_=this._getOrReturnCtx($,_),B(_,{code:X.too_big,maximum:W.value,type:"number",inclusive:W.inclusive,exact:!1,message:W.message}),G.dirty()}else if(W.kind==="multipleOf"){if(d$($.data,W.value)!==0)_=this._getOrReturnCtx($,_),B(_,{code:X.not_multiple_of,multipleOf:W.value,message:W.message}),G.dirty()}else if(W.kind==="finite"){if(!Number.isFinite($.data))_=this._getOrReturnCtx($,_),B(_,{code:X.not_finite,message:W.message}),G.dirty()}else R.assertNever(W);return{status:G.value,value:$.data}}gte($,q){return this.setLimit("min",$,!0,w.toString(q))}gt($,q){return this.setLimit("min",$,!1,w.toString(q))}lte($,q){return this.setLimit("max",$,!0,w.toString(q))}lt($,q){return this.setLimit("max",$,!1,w.toString(q))}setLimit($,q,_,G){return new y({...this._def,checks:[...this._def.checks,{kind:$,value:q,inclusive:_,message:w.toString(G)}]})}_addCheck($){return new y({...this._def,checks:[...this._def.checks,$]})}int($){return this._addCheck({kind:"int",message:w.toString($)})}positive($){return this._addCheck({kind:"min",value:0,inclusive:!1,message:w.toString($)})}negative($){return this._addCheck({kind:"max",value:0,inclusive:!1,message:w.toString($)})}nonpositive($){return this._addCheck({kind:"max",value:0,inclusive:!0,message:w.toString($)})}nonnegative($){return this._addCheck({kind:"min",value:0,inclusive:!0,message:w.toString($)})}multipleOf($,q){return this._addCheck({kind:"multipleOf",value:$,message:w.toString(q)})}finite($){return this._addCheck({kind:"finite",message:w.toString($)})}safe($){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:w.toString($)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:w.toString($)})}get minValue(){let $=null;for(let q of this._def.checks)if(q.kind==="min"){if($===null||q.value>$)$=q.value}return $}get maxValue(){let $=null;for(let q of this._def.checks)if(q.kind==="max"){if($===null||q.value<$)$=q.value}return $}get isInt(){return!!this._def.checks.find(($)=>$.kind==="int"||$.kind==="multipleOf"&&R.isInteger($.value))}get isFinite(){let $=null,q=null;for(let _ of this._def.checks)if(_.kind==="finite"||_.kind==="int"||_.kind==="multipleOf")return!0;else if(_.kind==="min"){if(q===null||_.value>q)q=_.value}else if(_.kind==="max"){if($===null||_.value<$)$=_.value}return Number.isFinite(q)&&Number.isFinite($)}}y.create=($)=>{return new y({checks:[],typeName:j.ZodNumber,coerce:$?.coerce||!1,...b($)})};class Z extends O{constructor(){super(...arguments);this.min=this.gte,this.max=this.lte}_parse($){if(this._def.coerce)try{$.data=BigInt($.data)}catch{return this._getInvalidInput($)}if(this._getType($)!==Q.bigint)return this._getInvalidInput($);let _=void 0,G=new V;for(let W of this._def.checks)if(W.kind==="min"){if(W.inclusive?$.data<W.value:$.data<=W.value)_=this._getOrReturnCtx($,_),B(_,{code:X.too_small,type:"bigint",minimum:W.value,inclusive:W.inclusive,message:W.message}),G.dirty()}else if(W.kind==="max"){if(W.inclusive?$.data>W.value:$.data>=W.value)_=this._getOrReturnCtx($,_),B(_,{code:X.too_big,type:"bigint",maximum:W.value,inclusive:W.inclusive,message:W.message}),G.dirty()}else if(W.kind==="multipleOf"){if($.data%W.value!==BigInt(0))_=this._getOrReturnCtx($,_),B(_,{code:X.not_multiple_of,multipleOf:W.value,message:W.message}),G.dirty()}else R.assertNever(W);return{status:G.value,value:$.data}}_getInvalidInput($){let q=this._getOrReturnCtx($);return B(q,{code:X.invalid_type,expected:Q.bigint,received:q.parsedType}),z}gte($,q){return this.setLimit("min",$,!0,w.toString(q))}gt($,q){return this.setLimit("min",$,!1,w.toString(q))}lte($,q){return this.setLimit("max",$,!0,w.toString(q))}lt($,q){return this.setLimit("max",$,!1,w.toString(q))}setLimit($,q,_,G){return new Z({...this._def,checks:[...this._def.checks,{kind:$,value:q,inclusive:_,message:w.toString(G)}]})}_addCheck($){return new Z({...this._def,checks:[...this._def.checks,$]})}positive($){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:w.toString($)})}negative($){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:w.toString($)})}nonpositive($){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:w.toString($)})}nonnegative($){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:w.toString($)})}multipleOf($,q){return this._addCheck({kind:"multipleOf",value:$,message:w.toString(q)})}get minValue(){let $=null;for(let q of this._def.checks)if(q.kind==="min"){if($===null||q.value>$)$=q.value}return $}get maxValue(){let $=null;for(let q of this._def.checks)if(q.kind==="max"){if($===null||q.value<$)$=q.value}return $}}Z.create=($)=>{return new Z({checks:[],typeName:j.ZodBigInt,coerce:$?.coerce??!1,...b($)})};class H$ extends O{_parse($){if(this._def.coerce)$.data=Boolean($.data);if(this._getType($)!==Q.boolean){let _=this._getOrReturnCtx($);return B(_,{code:X.invalid_type,expected:Q.boolean,received:_.parsedType}),z}return U($.data)}}H$.create=($)=>{return new H$({typeName:j.ZodBoolean,coerce:$?.coerce||!1,...b($)})};class r extends O{_parse($){if(this._def.coerce)$.data=new Date($.data);if(this._getType($)!==Q.date){let W=this._getOrReturnCtx($);return B(W,{code:X.invalid_type,expected:Q.date,received:W.parsedType}),z}if(Number.isNaN($.data.getTime())){let W=this._getOrReturnCtx($);return B(W,{code:X.invalid_date}),z}let _=new V,G=void 0;for(let W of this._def.checks)if(W.kind==="min"){if($.data.getTime()<W.value)G=this._getOrReturnCtx($,G),B(G,{code:X.too_small,message:W.message,inclusive:!0,exact:!1,minimum:W.value,type:"date"}),_.dirty()}else if(W.kind==="max"){if($.data.getTime()>W.value)G=this._getOrReturnCtx($,G),B(G,{code:X.too_big,message:W.message,inclusive:!0,exact:!1,maximum:W.value,type:"date"}),_.dirty()}else R.assertNever(W);return{status:_.value,value:new Date($.data.getTime())}}_addCheck($){return new r({...this._def,checks:[...this._def.checks,$]})}min($,q){return this._addCheck({kind:"min",value:$.getTime(),message:w.toString(q)})}max($,q){return this._addCheck({kind:"max",value:$.getTime(),message:w.toString(q)})}get minDate(){let $=null;for(let q of this._def.checks)if(q.kind==="min"){if($===null||q.value>$)$=q.value}return $!=null?new Date($):null}get maxDate(){let $=null;for(let q of this._def.checks)if(q.kind==="max"){if($===null||q.value<$)$=q.value}return $!=null?new Date($):null}}r.create=($)=>{return new r({checks:[],coerce:$?.coerce||!1,typeName:j.ZodDate,...b($)})};class J$ extends O{_parse($){if(this._getType($)!==Q.symbol){let _=this._getOrReturnCtx($);return B(_,{code:X.invalid_type,expected:Q.symbol,received:_.parsedType}),z}return U($.data)}}J$.create=($)=>{return new J$({typeName:j.ZodSymbol,...b($)})};class o extends O{_parse($){if(this._getType($)!==Q.undefined){let _=this._getOrReturnCtx($);return B(_,{code:X.invalid_type,expected:Q.undefined,received:_.parsedType}),z}return U($.data)}}o.create=($)=>{return new o({typeName:j.ZodUndefined,...b($)})};class d extends O{_parse($){if(this._getType($)!==Q.null){let _=this._getOrReturnCtx($);return B(_,{code:X.invalid_type,expected:Q.null,received:_.parsedType}),z}return U($.data)}}d.create=($)=>{return new d({typeName:j.ZodNull,...b($)})};class X$ extends O{constructor(){super(...arguments);this._any=!0}_parse($){return U($.data)}}X$.create=($)=>{return new X$({typeName:j.ZodAny,...b($)})};class T extends O{constructor(){super(...arguments);this._unknown=!0}_parse($){return U($.data)}}T.create=($)=>{return new T({typeName:j.ZodUnknown,...b($)})};class C extends O{_parse($){let q=this._getOrReturnCtx($);return B(q,{code:X.invalid_type,expected:Q.never,received:q.parsedType}),z}}C.create=($)=>{return new C({typeName:j.ZodNever,...b($)})};class Q$ extends O{_parse($){if(this._getType($)!==Q.undefined){let _=this._getOrReturnCtx($);return B(_,{code:X.invalid_type,expected:Q.void,received:_.parsedType}),z}return U($.data)}}Q$.create=($)=>{return new Q$({typeName:j.ZodVoid,...b($)})};class N extends O{_parse($){let{ctx:q,status:_}=this._processInputParams($),G=this._def;if(q.parsedType!==Q.array)return B(q,{code:X.invalid_type,expected:Q.array,received:q.parsedType}),z;if(G.exactLength!==null){let H=q.data.length>G.exactLength.value,J=q.data.length<G.exactLength.value;if(H||J)B(q,{code:H?X.too_big:X.too_small,minimum:J?G.exactLength.value:void 0,maximum:H?G.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:G.exactLength.message}),_.dirty()}if(G.minLength!==null){if(q.data.length<G.minLength.value)B(q,{code:X.too_small,minimum:G.minLength.value,type:"array",inclusive:!0,exact:!1,message:G.minLength.message}),_.dirty()}if(G.maxLength!==null){if(q.data.length>G.maxLength.value)B(q,{code:X.too_big,maximum:G.maxLength.value,type:"array",inclusive:!0,exact:!1,message:G.maxLength.message}),_.dirty()}if(q.common.async)return Promise.all([...q.data].map((H,J)=>{return G.type._parseAsync(new L(q,H,q.path,J))})).then((H)=>{return V.mergeArray(_,H)});let W=[...q.data].map((H,J)=>{return G.type._parseSync(new L(q,H,q.path,J))});return V.mergeArray(_,W)}get element(){return this._def.type}min($,q){return new N({...this._def,minLength:{value:$,message:w.toString(q)}})}max($,q){return new N({...this._def,maxLength:{value:$,message:w.toString(q)}})}length($,q){return new N({...this._def,exactLength:{value:$,message:w.toString(q)}})}nonempty($){return this.min(1,$)}}N.create=($,q)=>{return new N({type:$,minLength:null,maxLength:null,exactLength:null,typeName:j.ZodArray,...b(q)})};function m($){if($ instanceof E){let q={};for(let _ in $.shape){let G=$.shape[_];q[_]=D.create(m(G))}return new E({...$._def,shape:()=>q})}else if($ instanceof N)return new N({...$._def,type:m($.element)});else if($ instanceof D)return D.create(m($.unwrap()));else if($ instanceof P)return P.create(m($.unwrap()));else if($ instanceof g)return g.create($.items.map((q)=>m(q)));else return $}class E extends O{constructor(){super(...arguments);this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let $=this._def.shape(),q=R.objectKeys($);return this._cached={shape:$,keys:q},this._cached}_parse($){if(this._getType($)!==Q.object){let M=this._getOrReturnCtx($);return B(M,{code:X.invalid_type,expected:Q.object,received:M.parsedType}),z}let{status:_,ctx:G}=this._processInputParams($),{shape:W,keys:H}=this._getCached(),J=[];if(!(this._def.catchall instanceof C&&this._def.unknownKeys==="strip")){for(let M in G.data)if(!H.includes(M))J.push(M)}let Y=[];for(let M of H){let S=W[M],v=G.data[M];Y.push({key:{status:"valid",value:M},value:S._parse(new L(G,v,G.path,M)),alwaysSet:M in G.data})}if(this._def.catchall instanceof C){let M=this._def.unknownKeys;if(M==="passthrough")for(let S of J)Y.push({key:{status:"valid",value:S},value:{status:"valid",value:G.data[S]}});else if(M==="strict"){if(J.length>0)B(G,{code:X.unrecognized_keys,keys:J}),_.dirty()}else if(M==="strip");else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let M=this._def.catchall;for(let S of J){let v=G.data[S];Y.push({key:{status:"valid",value:S},value:M._parse(new L(G,v,G.path,S)),alwaysSet:S in G.data})}}if(G.common.async)return Promise.resolve().then(async()=>{let M=[];for(let S of Y){let v=await S.key,V$=await S.value;M.push({key:v,value:V$,alwaysSet:S.alwaysSet})}return M}).then((M)=>{return V.mergeObjectSync(_,M)});else return V.mergeObjectSync(_,Y)}get shape(){return this._def.shape()}strict($){return w.errToObj,new E({...this._def,unknownKeys:"strict",...$!==void 0?{errorMap:(q,_)=>{let G=this._def.errorMap?.(q,_).message??_.defaultError;if(q.code==="unrecognized_keys")return{message:w.errToObj($).message??G};return{message:G}}}:{}})}strip(){return new E({...this._def,unknownKeys:"strip"})}passthrough(){return new E({...this._def,unknownKeys:"passthrough"})}extend($){return new E({...this._def,shape:()=>({...this._def.shape(),...$})})}merge($){return new E({unknownKeys:$._def.unknownKeys,catchall:$._def.catchall,shape:()=>({...this._def.shape(),...$._def.shape()}),typeName:j.ZodObject})}setKey($,q){return this.augment({[$]:q})}catchall($){return new E({...this._def,catchall:$})}pick($){let q={};for(let _ of R.objectKeys($))if($[_]&&this.shape[_])q[_]=this.shape[_];return new E({...this._def,shape:()=>q})}omit($){let q={};for(let _ of R.objectKeys(this.shape))if(!$[_])q[_]=this.shape[_];return new E({...this._def,shape:()=>q})}deepPartial(){return m(this)}partial($){let q={};for(let _ of R.objectKeys(this.shape)){let G=this.shape[_];if($&&!$[_])q[_]=G;else q[_]=G.optional()}return new E({...this._def,shape:()=>q})}required($){let q={};for(let _ of R.objectKeys(this.shape))if($&&!$[_])q[_]=this.shape[_];else{let W=this.shape[_];while(W instanceof D)W=W._def.innerType;q[_]=W}return new E({...this._def,shape:()=>q})}keyof(){return N$(R.objectKeys(this.shape))}}E.create=($,q)=>{return new E({shape:()=>$,unknownKeys:"strip",catchall:C.create(),typeName:j.ZodObject,...b(q)})};E.strictCreate=($,q)=>{return new E({shape:()=>$,unknownKeys:"strict",catchall:C.create(),typeName:j.ZodObject,...b(q)})};E.lazycreate=($,q)=>{return new E({shape:$,unknownKeys:"strip",catchall:C.create(),typeName:j.ZodObject,...b(q)})};class a extends O{_parse($){let{ctx:q}=this._processInputParams($),_=this._def.options;function G(W){for(let J of W)if(J.result.status==="valid")return J.result;for(let J of W)if(J.result.status==="dirty")return q.common.issues.push(...J.ctx.common.issues),J.result;let H=W.map((J)=>new A(J.ctx.common.issues));return B(q,{code:X.invalid_union,unionErrors:H}),z}if(q.common.async)return Promise.all(_.map(async(W)=>{let H={...q,common:{...q.common,issues:[]},parent:null};return{result:await W._parseAsync({data:q.data,path:q.path,parent:H}),ctx:H}})).then(G);else{let W=void 0,H=[];for(let Y of _){let M={...q,common:{...q.common,issues:[]},parent:null},S=Y._parseSync({data:q.data,path:q.path,parent:M});if(S.status==="valid")return S;else if(S.status==="dirty"&&!W)W={result:S,ctx:M};if(M.common.issues.length)H.push(M.common.issues)}if(W)return q.common.issues.push(...W.ctx.common.issues),W.result;let J=H.map((Y)=>new A(Y));return B(q,{code:X.invalid_union,unionErrors:J}),z}}get options(){return this._def.options}}a.create=($,q)=>{return new a({options:$,typeName:j.ZodUnion,...b(q)})};var K=($)=>{if($ instanceof t)return K($.schema);else if($ instanceof f)return K($.innerType());else if($ instanceof e)return[$.value];else if($ instanceof l)return $.options;else if($ instanceof $$)return R.objectValues($.enum);else if($ instanceof q$)return K($._def.innerType);else if($ instanceof o)return[void 0];else if($ instanceof d)return[null];else if($ instanceof D)return[void 0,...K($.unwrap())];else if($ instanceof P)return[null,...K($.unwrap())];else if($ instanceof E$)return K($.unwrap());else if($ instanceof W$)return K($.unwrap());else if($ instanceof _$)return K($._def.innerType);else return[]};class R$ extends O{_parse($){let{ctx:q}=this._processInputParams($);if(q.parsedType!==Q.object)return B(q,{code:X.invalid_type,expected:Q.object,received:q.parsedType}),z;let _=this.discriminator,G=q.data[_],W=this.optionsMap.get(G);if(!W)return B(q,{code:X.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[_]}),z;if(q.common.async)return W._parseAsync({data:q.data,path:q.path,parent:q});else return W._parseSync({data:q.data,path:q.path,parent:q})}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create($,q,_){let G=new Map;for(let W of q){let H=K(W.shape[$]);if(!H.length)throw Error(`A discriminator value for key \`${$}\` could not be extracted from all schema options`);for(let J of H){if(G.has(J))throw Error(`Discriminator property ${String($)} has duplicate value ${String(J)}`);G.set(J,W)}}return new R$({typeName:j.ZodDiscriminatedUnion,discriminator:$,options:q,optionsMap:G,...b(_)})}}function O$($,q){let _=F($),G=F(q);if($===q)return{valid:!0,data:$};else if(_===Q.object&&G===Q.object){let W=R.objectKeys(q),H=R.objectKeys($).filter((Y)=>W.indexOf(Y)!==-1),J={...$,...q};for(let Y of H){let M=O$($[Y],q[Y]);if(!M.valid)return{valid:!1};J[Y]=M.data}return{valid:!0,data:J}}else if(_===Q.array&&G===Q.array){if($.length!==q.length)return{valid:!1};let W=[];for(let H=0;H<$.length;H++){let J=$[H],Y=q[H],M=O$(J,Y);if(!M.valid)return{valid:!1};W.push(M.data)}return{valid:!0,data:W}}else if(_===Q.date&&G===Q.date&&+$===+q)return{valid:!0,data:$};else return{valid:!1}}class s extends O{_parse($){let{status:q,ctx:_}=this._processInputParams($),G=(W,H)=>{if(j$(W)||j$(H))return z;let J=O$(W.value,H.value);if(!J.valid)return B(_,{code:X.invalid_intersection_types}),z;if(b$(W)||b$(H))q.dirty();return{status:q.value,value:J.data}};if(_.common.async)return Promise.all([this._def.left._parseAsync({data:_.data,path:_.path,parent:_}),this._def.right._parseAsync({data:_.data,path:_.path,parent:_})]).then(([W,H])=>G(W,H));else return G(this._def.left._parseSync({data:_.data,path:_.path,parent:_}),this._def.right._parseSync({data:_.data,path:_.path,parent:_}))}}s.create=($,q,_)=>{return new s({left:$,right:q,typeName:j.ZodIntersection,...b(_)})};class g extends O{_parse($){let{status:q,ctx:_}=this._processInputParams($);if(_.parsedType!==Q.array)return B(_,{code:X.invalid_type,expected:Q.array,received:_.parsedType}),z;if(_.data.length<this._def.items.length)return B(_,{code:X.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),z;if(!this._def.rest&&_.data.length>this._def.items.length)B(_,{code:X.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),q.dirty();let W=[..._.data].map((H,J)=>{let Y=this._def.items[J]||this._def.rest;if(!Y)return null;return Y._parse(new L(_,H,_.path,J))}).filter((H)=>!!H);if(_.common.async)return Promise.all(W).then((H)=>{return V.mergeArray(q,H)});else return V.mergeArray(q,W)}get items(){return this._def.items}rest($){return new g({...this._def,rest:$})}}g.create=($,q)=>{if(!Array.isArray($))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new g({items:$,typeName:j.ZodTuple,rest:null,...b(q)})};class Y$ extends O{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse($){let{status:q,ctx:_}=this._processInputParams($);if(_.parsedType!==Q.object)return B(_,{code:X.invalid_type,expected:Q.object,received:_.parsedType}),z;let G=[],W=this._def.keyType,H=this._def.valueType;for(let J in _.data)G.push({key:W._parse(new L(_,J,_.path,J)),value:H._parse(new L(_,_.data[J],_.path,J)),alwaysSet:J in _.data});if(_.common.async)return V.mergeObjectAsync(q,G);else return V.mergeObjectSync(q,G)}get element(){return this._def.valueType}static create($,q,_){if(q instanceof O)return new Y$({keyType:$,valueType:q,typeName:j.ZodRecord,...b(_)});return new Y$({keyType:k.create(),valueType:$,typeName:j.ZodRecord,...b(q)})}}class M$ extends O{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse($){let{status:q,ctx:_}=this._processInputParams($);if(_.parsedType!==Q.map)return B(_,{code:X.invalid_type,expected:Q.map,received:_.parsedType}),z;let G=this._def.keyType,W=this._def.valueType,H=[..._.data.entries()].map(([J,Y],M)=>{return{key:G._parse(new L(_,J,_.path,[M,"key"])),value:W._parse(new L(_,Y,_.path,[M,"value"]))}});if(_.common.async){let J=new Map;return Promise.resolve().then(async()=>{for(let Y of H){let M=await Y.key,S=await Y.value;if(M.status==="aborted"||S.status==="aborted")return z;if(M.status==="dirty"||S.status==="dirty")q.dirty();J.set(M.value,S.value)}return{status:q.value,value:J}})}else{let J=new Map;for(let Y of H){let{key:M,value:S}=Y;if(M.status==="aborted"||S.status==="aborted")return z;if(M.status==="dirty"||S.status==="dirty")q.dirty();J.set(M.value,S.value)}return{status:q.value,value:J}}}}M$.create=($,q,_)=>{return new M$({valueType:q,keyType:$,typeName:j.ZodMap,...b(_)})};class n extends O{_parse($){let{status:q,ctx:_}=this._processInputParams($);if(_.parsedType!==Q.set)return B(_,{code:X.invalid_type,expected:Q.set,received:_.parsedType}),z;let G=this._def;if(G.minSize!==null){if(_.data.size<G.minSize.value)B(_,{code:X.too_small,minimum:G.minSize.value,type:"set",inclusive:!0,exact:!1,message:G.minSize.message}),q.dirty()}if(G.maxSize!==null){if(_.data.size>G.maxSize.value)B(_,{code:X.too_big,maximum:G.maxSize.value,type:"set",inclusive:!0,exact:!1,message:G.maxSize.message}),q.dirty()}let W=this._def.valueType;function H(Y){let M=new Set;for(let S of Y){if(S.status==="aborted")return z;if(S.status==="dirty")q.dirty();M.add(S.value)}return{status:q.value,value:M}}let J=[..._.data.values()].map((Y,M)=>W._parse(new L(_,Y,_.path,M)));if(_.common.async)return Promise.all(J).then((Y)=>H(Y));else return H(J)}min($,q){return new n({...this._def,minSize:{value:$,message:w.toString(q)}})}max($,q){return new n({...this._def,maxSize:{value:$,message:w.toString(q)}})}size($,q){return this.min($,q).max($,q)}nonempty($){return this.min(1,$)}}n.create=($,q)=>{return new n({valueType:$,minSize:null,maxSize:null,typeName:j.ZodSet,...b(q)})};class i extends O{constructor(){super(...arguments);this.validate=this.implement}_parse($){let{ctx:q}=this._processInputParams($);if(q.parsedType!==Q.function)return B(q,{code:X.invalid_type,expected:Q.function,received:q.parsedType}),z;function _(J,Y){return G$({data:J,path:q.path,errorMaps:[q.common.contextualErrorMap,q.schemaErrorMap,u(),I].filter((M)=>!!M),issueData:{code:X.invalid_arguments,argumentsError:Y}})}function G(J,Y){return G$({data:J,path:q.path,errorMaps:[q.common.contextualErrorMap,q.schemaErrorMap,u(),I].filter((M)=>!!M),issueData:{code:X.invalid_return_type,returnTypeError:Y}})}let W={errorMap:q.common.contextualErrorMap},H=q.data;if(this._def.returns instanceof c){let J=this;return U(async function(...Y){let M=new A([]),S=await J._def.args.parseAsync(Y,W).catch((z$)=>{throw M.addIssue(_(Y,z$)),M}),v=await Reflect.apply(H,this,S);return await J._def.returns._def.type.parseAsync(v,W).catch((z$)=>{throw M.addIssue(G(v,z$)),M})})}else{let J=this;return U(function(...Y){let M=J._def.args.safeParse(Y,W);if(!M.success)throw new A([_(Y,M.error)]);let S=Reflect.apply(H,this,M.data),v=J._def.returns.safeParse(S,W);if(!v.success)throw new A([G(S,v.error)]);return v.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...$){return new i({...this._def,args:g.create($).rest(T.create())})}returns($){return new i({...this._def,returns:$})}implement($){return this.parse($)}strictImplement($){return this.parse($)}static create($,q,_){return new i({args:$?$:g.create([]).rest(T.create()),returns:q||T.create(),typeName:j.ZodFunction,...b(_)})}}class t extends O{get schema(){return this._def.getter()}_parse($){let{ctx:q}=this._processInputParams($);return this._def.getter()._parse({data:q.data,path:q.path,parent:q})}}t.create=($,q)=>{return new t({getter:$,typeName:j.ZodLazy,...b(q)})};class e extends O{_parse($){if($.data!==this._def.value){let q=this._getOrReturnCtx($);return B(q,{received:q.data,code:X.invalid_literal,expected:this._def.value}),z}return{status:"valid",value:$.data}}get value(){return this._def.value}}e.create=($,q)=>{return new e({value:$,typeName:j.ZodLiteral,...b(q)})};function N$($,q){return new l({values:$,typeName:j.ZodEnum,...b(q)})}class l extends O{_parse($){if(typeof $.data!=="string"){let q=this._getOrReturnCtx($),_=this._def.values;return B(q,{expected:R.joinValues(_),received:q.parsedType,code:X.invalid_type}),z}if(!this._cache)this._cache=new Set(this._def.values);if(!this._cache.has($.data)){let q=this._getOrReturnCtx($),_=this._def.values;return B(q,{received:q.data,code:X.invalid_enum_value,options:_}),z}return U($.data)}get options(){return this._def.values}get enum(){let $={};for(let q of this._def.values)$[q]=q;return $}get Values(){let $={};for(let q of this._def.values)$[q]=q;return $}get Enum(){let $={};for(let q of this._def.values)$[q]=q;return $}extract($,q=this._def){return l.create($,{...this._def,...q})}exclude($,q=this._def){return l.create(this.options.filter((_)=>!$.includes(_)),{...this._def,...q})}}l.create=N$;class $$ extends O{_parse($){let q=R.getValidEnumValues(this._def.values),_=this._getOrReturnCtx($);if(_.parsedType!==Q.string&&_.parsedType!==Q.number){let G=R.objectValues(q);return B(_,{expected:R.joinValues(G),received:_.parsedType,code:X.invalid_type}),z}if(!this._cache)this._cache=new Set(R.getValidEnumValues(this._def.values));if(!this._cache.has($.data)){let G=R.objectValues(q);return B(_,{received:_.data,code:X.invalid_enum_value,options:G}),z}return U($.data)}get enum(){return this._def.values}}$$.create=($,q)=>{return new $$({values:$,typeName:j.ZodNativeEnum,...b(q)})};class c extends O{unwrap(){return this._def.type}_parse($){let{ctx:q}=this._processInputParams($);if(q.parsedType!==Q.promise&&q.common.async===!1)return B(q,{code:X.invalid_type,expected:Q.promise,received:q.parsedType}),z;let _=q.parsedType===Q.promise?q.data:Promise.resolve(q.data);return U(_.then((G)=>{return this._def.type.parseAsync(G,{path:q.path,errorMap:q.common.contextualErrorMap})}))}}c.create=($,q)=>{return new c({type:$,typeName:j.ZodPromise,...b(q)})};class f extends O{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===j.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse($){let{status:q,ctx:_}=this._processInputParams($),G=this._def.effect||null,W={addIssue:(H)=>{if(B(_,H),H.fatal)q.abort();else q.dirty()},get path(){return _.path}};if(W.addIssue=W.addIssue.bind(W),G.type==="preprocess"){let H=G.transform(_.data,W);if(_.common.async)return Promise.resolve(H).then(async(J)=>{if(q.value==="aborted")return z;let Y=await this._def.schema._parseAsync({data:J,path:_.path,parent:_});if(Y.status==="aborted")return z;if(Y.status==="dirty")return x(Y.value);if(q.value==="dirty")return x(Y.value);return Y});else{if(q.value==="aborted")return z;let J=this._def.schema._parseSync({data:H,path:_.path,parent:_});if(J.status==="aborted")return z;if(J.status==="dirty")return x(J.value);if(q.value==="dirty")return x(J.value);return J}}if(G.type==="refinement"){let H=(J)=>{let Y=G.refinement(J,W);if(_.common.async)return Promise.resolve(Y);if(Y instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return J};if(_.common.async===!1){let J=this._def.schema._parseSync({data:_.data,path:_.path,parent:_});if(J.status==="aborted")return z;if(J.status==="dirty")q.dirty();return H(J.value),{status:q.value,value:J.value}}else return this._def.schema._parseAsync({data:_.data,path:_.path,parent:_}).then((J)=>{if(J.status==="aborted")return z;if(J.status==="dirty")q.dirty();return H(J.value).then(()=>{return{status:q.value,value:J.value}})})}if(G.type==="transform")if(_.common.async===!1){let H=this._def.schema._parseSync({data:_.data,path:_.path,parent:_});if(!h(H))return z;let J=G.transform(H.value,W);if(J instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:q.value,value:J}}else return this._def.schema._parseAsync({data:_.data,path:_.path,parent:_}).then((H)=>{if(!h(H))return z;return Promise.resolve(G.transform(H.value,W)).then((J)=>({status:q.value,value:J}))});R.assertNever(G)}}f.create=($,q,_)=>{return new f({schema:$,typeName:j.ZodEffects,effect:q,...b(_)})};f.createWithPreprocess=($,q,_)=>{return new f({schema:q,effect:{type:"preprocess",transform:$},typeName:j.ZodEffects,...b(_)})};class D extends O{_parse($){if(this._getType($)===Q.undefined)return U(void 0);return this._def.innerType._parse($)}unwrap(){return this._def.innerType}}D.create=($,q)=>{return new D({innerType:$,typeName:j.ZodOptional,...b(q)})};class P extends O{_parse($){if(this._getType($)===Q.null)return U(null);return this._def.innerType._parse($)}unwrap(){return this._def.innerType}}P.create=($,q)=>{return new P({innerType:$,typeName:j.ZodNullable,...b(q)})};class q$ extends O{_parse($){let{ctx:q}=this._processInputParams($),_=q.data;if(q.parsedType===Q.undefined)_=this._def.defaultValue();return this._def.innerType._parse({data:_,path:q.path,parent:q})}removeDefault(){return this._def.innerType}}q$.create=($,q)=>{return new q$({innerType:$,typeName:j.ZodDefault,defaultValue:typeof q.default==="function"?q.default:()=>q.default,...b(q)})};class _$ extends O{_parse($){let{ctx:q}=this._processInputParams($),_={...q,common:{...q.common,issues:[]}},G=this._def.innerType._parse({data:_.data,path:_.path,parent:{..._}});if(p(G))return G.then((W)=>{return{status:"valid",value:W.status==="valid"?W.value:this._def.catchValue({get error(){return new A(_.common.issues)},input:_.data})}});else return{status:"valid",value:G.status==="valid"?G.value:this._def.catchValue({get error(){return new A(_.common.issues)},input:_.data})}}removeCatch(){return this._def.innerType}}_$.create=($,q)=>{return new _$({innerType:$,typeName:j.ZodCatch,catchValue:typeof q.catch==="function"?q.catch:()=>q.catch,...b(q)})};class B$ extends O{_parse($){if(this._getType($)!==Q.nan){let _=this._getOrReturnCtx($);return B(_,{code:X.invalid_type,expected:Q.nan,received:_.parsedType}),z}return{status:"valid",value:$.data}}}B$.create=($)=>{return new B$({typeName:j.ZodNaN,...b($)})};var zq=Symbol("zod_brand");class E$ extends O{_parse($){let{ctx:q}=this._processInputParams($),_=q.data;return this._def.type._parse({data:_,path:q.path,parent:q})}unwrap(){return this._def.type}}class w$ extends O{_parse($){let{status:q,ctx:_}=this._processInputParams($);if(_.common.async)return(async()=>{let W=await this._def.in._parseAsync({data:_.data,path:_.path,parent:_});if(W.status==="aborted")return z;if(W.status==="dirty")return q.dirty(),x(W.value);else return this._def.out._parseAsync({data:W.value,path:_.path,parent:_})})();else{let G=this._def.in._parseSync({data:_.data,path:_.path,parent:_});if(G.status==="aborted")return z;if(G.status==="dirty")return q.dirty(),{status:"dirty",value:G.value};else return this._def.out._parseSync({data:G.value,path:_.path,parent:_})}}static create($,q){return new w$({in:$,out:q,typeName:j.ZodPipeline})}}class W$ extends O{_parse($){let q=this._def.innerType._parse($),_=(G)=>{if(h(G))G.value=Object.freeze(G.value);return G};return p(q)?q.then((G)=>_(G)):_(q)}unwrap(){return this._def.innerType}}W$.create=($,q)=>{return new W$({innerType:$,typeName:j.ZodReadonly,...b(q)})};var jq={object:E.lazycreate},j;(function($){$.ZodString="ZodString",$.ZodNumber="ZodNumber",$.ZodNaN="ZodNaN",$.ZodBigInt="ZodBigInt",$.ZodBoolean="ZodBoolean",$.ZodDate="ZodDate",$.ZodSymbol="ZodSymbol",$.ZodUndefined="ZodUndefined",$.ZodNull="ZodNull",$.ZodAny="ZodAny",$.ZodUnknown="ZodUnknown",$.ZodNever="ZodNever",$.ZodVoid="ZodVoid",$.ZodArray="ZodArray",$.ZodObject="ZodObject",$.ZodUnion="ZodUnion",$.ZodDiscriminatedUnion="ZodDiscriminatedUnion",$.ZodIntersection="ZodIntersection",$.ZodTuple="ZodTuple",$.ZodRecord="ZodRecord",$.ZodMap="ZodMap",$.ZodSet="ZodSet",$.ZodFunction="ZodFunction",$.ZodLazy="ZodLazy",$.ZodLiteral="ZodLiteral",$.ZodEnum="ZodEnum",$.ZodEffects="ZodEffects",$.ZodNativeEnum="ZodNativeEnum",$.ZodOptional="ZodOptional",$.ZodNullable="ZodNullable",$.ZodDefault="ZodDefault",$.ZodCatch="ZodCatch",$.ZodPromise="ZodPromise",$.ZodBranded="ZodBranded",$.ZodPipeline="ZodPipeline",$.ZodReadonly="ZodReadonly"})(j||(j={}));var bq=k.create,Sq=y.create,Oq=B$.create,Rq=Z.create,Eq=H$.create,Vq=r.create,Uq=J$.create,Aq=o.create,vq=d.create,Lq=X$.create,Nq=T.create,Dq=C.create,fq=Q$.create,Fq=N.create,Kq=E.create,kq=E.strictCreate,Cq=a.create,gq=R$.create,Iq=s.create,Pq=g.create,hq=Y$.create,Tq=M$.create,lq=n.create,xq=i.create,mq=t.create,yq=e.create,Zq=l.create,nq=$$.create,cq=c.create,uq=f.create,pq=D.create,iq=P.create,rq=f.createWithPreprocess,oq=w$.create;
|
|
3
|
-
export{j as
|
|
3
|
+
export{j as Hr};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{te as Qb}from"./chunk-yek0sk2q.js";import{xe as Sb}from"./chunk-01my2y0c.js";import{ye as Rb}from"./chunk-70ck4v3t.js";import{Ae as Ob,Be as Pb,ze as Nb}from"./chunk-ht5w06x7.js";import{Ce as Mb}from"./chunk-enpzvmtc.js";import{uf as Eb,vf as Hb,wf as Jb,xf as Kb,yf as Lb}from"./chunk-tq0239xp.js";import"./chunk-7xm75w1e.js";var x=Pb(),U=Ob(),u=Hb(),v=Jb(),L=Kb(),V=Mb(),P=Nb(),Z=Eb(),_=Qb(),M=Lb(),i=Rb(),Tb=Sb(),Ub=async(b,h,j)=>{return{operation:u.getSmithyContext(h).operation,region:await u.normalizeProvider(b.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};function Vb(b){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"cognito-identity",region:b.region},propertiesExtractor:(h,j)=>({signingProperties:{config:h,context:j}})}}function e(b){return{schemeId:"smithy.api#noAuth"}}var Wb=(b)=>{let h=[];switch(b.operation){case"GetCredentialsForIdentity":{h.push(e());break}case"GetId":{h.push(e());break}default:h.push(Vb(b))}return h},Xb=(b)=>{let h=_.resolveAwsSdkSigV4Config(b);return Object.assign(h,{authSchemePreference:u.normalizeProvider(b.authSchemePreference??[])})},Yb=(b)=>{return Object.assign(b,{useDualstackEndpoint:b.useDualstackEndpoint??!1,useFipsEndpoint:b.useFipsEndpoint??!1,defaultSigningName:"cognito-identity"})},n={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},Zb="3.997.14",_b={version:Zb},Q="ref",K=-1,S=!0,m="isSet",bb="PartitionResult",T="booleanEquals",X="getAttr",N="stringEquals",d={[Q]:"Endpoint"},Y={[Q]:bb},O={[Q]:"Region"},A={},o=[O],t={conditions:[[m,[d]],[m,o],["aws.partition",o,bb],[T,[{[Q]:"UseFIPS"},S]],[T,[{fn:X,argv:[Y,"supportsFIPS"]},S]],[T,[{[Q]:"UseDualStack"},S]],[T,[{fn:X,argv:[Y,"supportsDualStack"]},S]],[N,[{fn:X,argv:[Y,"name"]},"aws"]],[N,[O,"us-east-1"]],[N,[O,"us-east-2"]],[N,[O,"us-west-1"]],[N,[O,"us-west-2"]]],results:[[K],[K,"Invalid Configuration: FIPS and custom endpoint are not supported"],[K,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[d,A],["https://cognito-identity-fips.us-east-1.amazonaws.com",A],["https://cognito-identity-fips.us-east-2.amazonaws.com",A],["https://cognito-identity-fips.us-west-1.amazonaws.com",A],["https://cognito-identity-fips.us-west-2.amazonaws.com",A],["https://cognito-identity-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",A],[K,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://cognito-identity-fips.{Region}.{PartitionResult#dnsSuffix}",A],[K,"FIPS is enabled but this partition does not support FIPS"],["https://cognito-identity.{Region}.amazonaws.com",A],["https://cognito-identity.{Region}.{PartitionResult#dualStackDnsSuffix}",A],[K,"DualStack is enabled but this partition does not support DualStack"],["https://cognito-identity.{Region}.{PartitionResult#dnsSuffix}",A],[K,"Invalid Configuration: Missing Region"]]},$b=2,p=1e8,sb=new Int32Array([-1,1,-1,0,17,3,1,4,p+16,2,5,p+16,3,9,6,5,7,p+15,6,8,p+14,7,p+12,p+13,4,11,10,5,p+9,p+11,5,12,p+10,6,13,p+9,8,p+4,14,9,p+5,15,10,p+6,16,11,p+7,p+8,3,p+1,18,5,p+2,p+3]),Fb=L.BinaryDecisionDiagram.from(sb,$b,t.conditions,t.results),cb=new L.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),fb=(b,h={})=>{return cb.get(b,()=>L.decideEndpoint(Fb,{endpointParams:b,logger:h.logger}))};L.customEndpointFunctions.aws=x.awsEndpointFunctions;class z extends u.ServiceException{constructor(b){super(b);Object.setPrototypeOf(this,z.prototype)}}class $ extends z{name="ExternalServiceException";$fault="client";constructor(b){super({name:"ExternalServiceException",$fault:"client",...b});Object.setPrototypeOf(this,$.prototype)}}class s extends z{name="InternalErrorException";$fault="server";constructor(b){super({name:"InternalErrorException",$fault:"server",...b});Object.setPrototypeOf(this,s.prototype)}}class F extends z{name="InvalidIdentityPoolConfigurationException";$fault="client";constructor(b){super({name:"InvalidIdentityPoolConfigurationException",$fault:"client",...b});Object.setPrototypeOf(this,F.prototype)}}class c extends z{name="InvalidParameterException";$fault="client";constructor(b){super({name:"InvalidParameterException",$fault:"client",...b});Object.setPrototypeOf(this,c.prototype)}}class f extends z{name="NotAuthorizedException";$fault="client";constructor(b){super({name:"NotAuthorizedException",$fault:"client",...b});Object.setPrototypeOf(this,f.prototype)}}class l extends z{name="ResourceConflictException";$fault="client";constructor(b){super({name:"ResourceConflictException",$fault:"client",...b});Object.setPrototypeOf(this,l.prototype)}}class G extends z{name="ResourceNotFoundException";$fault="client";constructor(b){super({name:"ResourceNotFoundException",$fault:"client",...b});Object.setPrototypeOf(this,G.prototype)}}class r extends z{name="TooManyRequestsException";$fault="client";constructor(b){super({name:"TooManyRequestsException",$fault:"client",...b});Object.setPrototypeOf(this,r.prototype)}}class y extends z{name="LimitExceededException";$fault="client";constructor(b){super({name:"LimitExceededException",$fault:"client",...b});Object.setPrototypeOf(this,y.prototype)}}var lb="AccountId",Gb="AccessKeyId",hb="Credentials",rb="CustomRoleArn",yb="Expiration",gb="ExternalServiceException",Ib="GetCredentialsForIdentity",ab="GetCredentialsForIdentityInput",Cb="GetCredentialsForIdentityResponse",ib="GetId",eb="GetIdInput",mb="GetIdResponse",db="InternalErrorException",g="IdentityId",ob="InvalidIdentityPoolConfigurationException",tb="InvalidParameterException",nb="IdentityPoolId",bh="IdentityProviderToken",jb="Logins",hh="LimitExceededException",jh="LoginsMap",kh="NotAuthorizedException",ph="ResourceConflictException",qh="ResourceNotFoundException",uh="SecretKey",vh="SecretKeyString",wh="SessionToken",xh="TooManyRequestsException",H="client",D="error",J="httpError",E="message",kb="smithy.ts.sdk.synthetic.com.amazonaws.cognitoidentity",zh="server",k="com.amazonaws.cognitoidentity",pb=Z.TypeRegistry.for(kb),Ah=[-3,kb,"CognitoIdentityServiceException",0,[],[]];pb.registerError(Ah,z);var B=Z.TypeRegistry.for(k),Bh=[-3,k,gb,{[D]:H,[J]:400},[E],[0]];B.registerError(Bh,$);var Dh=[-3,k,db,{[D]:zh},[E],[0]];B.registerError(Dh,s);var Eh=[-3,k,ob,{[D]:H,[J]:400},[E],[0]];B.registerError(Eh,F);var Hh=[-3,k,tb,{[D]:H,[J]:400},[E],[0]];B.registerError(Hh,c);var Jh=[-3,k,hh,{[D]:H,[J]:400},[E],[0]];B.registerError(Jh,y);var Kh=[-3,k,kh,{[D]:H,[J]:403},[E],[0]];B.registerError(Kh,f);var Lh=[-3,k,ph,{[D]:H,[J]:409},[E],[0]];B.registerError(Lh,l);var Mh=[-3,k,qh,{[D]:H,[J]:404},[E],[0]];B.registerError(Mh,G);var Nh=[-3,k,xh,{[D]:H,[J]:429},[E],[0]];B.registerError(Nh,r);var Oh=[pb,B],Ph=[0,k,bh,8,0],Qh=[0,k,vh,8,0],Rh=[3,k,hb,0,[Gb,uh,wh,yb],[0,[()=>Qh,0],0,4]],Sh=[3,k,ab,0,[g,jb,rb],[0,[()=>qb,0],0],1],Th=[3,k,Cb,0,[g,hb],[0,[()=>Rh,0]]],Uh=[3,k,eb,0,[nb,lb,jb],[0,0,[()=>qb,0]],1],Vh=[3,k,mb,0,[g],[0]],qb=[2,k,jh,0,[0,0],[()=>Ph,0]],Wh=[9,k,Ib,0,()=>Sh,()=>Th],Xh=[9,k,ib,0,()=>Uh,()=>Vh],Yh=(b)=>{return{apiVersion:"2014-06-30",base64Decoder:b?.base64Decoder??M.fromBase64,base64Encoder:b?.base64Encoder??M.toBase64,disableHostPrefix:b?.disableHostPrefix??!1,endpointProvider:b?.endpointProvider??fb,extensions:b?.extensions??[],httpAuthSchemeProvider:b?.httpAuthSchemeProvider??Wb,httpAuthSchemes:b?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(h)=>h.getIdentityProvider("aws.auth#sigv4"),signer:new _.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(h)=>h.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new U.NoAuthSigner}],logger:b?.logger??new u.NoOpLogger,protocol:b?.protocol??Tb.AwsJson1_1Protocol,protocolSettings:b?.protocolSettings??{defaultNamespace:"com.amazonaws.cognitoidentity",errorTypeRegistries:Oh,xmlNamespace:"http://cognito-identity.amazonaws.com/doc/2014-06-30/",version:"2014-06-30",serviceTarget:"AWSCognitoIdentityService"},serviceId:b?.serviceId??"Cognito Identity",urlParser:b?.urlParser??V.parseUrl,utf8Decoder:b?.utf8Decoder??M.fromUtf8,utf8Encoder:b?.utf8Encoder??M.toUtf8}},Zh=(b)=>{u.emitWarningIfUnsupportedVersion(process.version);let h=v.resolveDefaultsModeConfig(b),j=()=>h().then(u.loadConfigsForDefaultMode),w=Yh(b);x.emitWarningIfUnsupportedVersion(process.version);let q={profile:b?.profile,logger:w.logger};return{...w,...b,runtime:"node",defaultsMode:h,authSchemePreference:b?.authSchemePreference??v.loadConfig(_.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,q),bodyLengthChecker:b?.bodyLengthChecker??M.calculateBodyLength,defaultUserAgentProvider:b?.defaultUserAgentProvider??x.createDefaultUserAgentProvider({serviceId:w.serviceId,clientVersion:_b.version}),maxAttempts:b?.maxAttempts??v.loadConfig(P.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,b),region:b?.region??v.loadConfig(v.NODE_REGION_CONFIG_OPTIONS,{...v.NODE_REGION_CONFIG_FILE_OPTIONS,...q}),requestHandler:i.NodeHttpHandler.create(b?.requestHandler??j),retryMode:b?.retryMode??v.loadConfig({...P.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await j()).retryMode||P.DEFAULT_RETRY_MODE},b),sha256:b?.sha256??M.Hash.bind(null,"sha256"),streamCollector:b?.streamCollector??i.streamCollector,useDualstackEndpoint:b?.useDualstackEndpoint??v.loadConfig(v.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,q),useFipsEndpoint:b?.useFipsEndpoint??v.loadConfig(v.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,q),userAgentAppId:b?.userAgentAppId??v.loadConfig(x.NODE_APP_ID_CONFIG_OPTIONS,q)}},_h=(b)=>{let{httpAuthSchemes:h,httpAuthSchemeProvider:j,credentials:w}=b;return{setHttpAuthScheme(q){let R=h.findIndex((W)=>W.schemeId===q.schemeId);if(R===-1)h.push(q);else h.splice(R,1,q)},httpAuthSchemes(){return h},setHttpAuthSchemeProvider(q){j=q},httpAuthSchemeProvider(){return j},setCredentials(q){w=q},credentials(){return w}}},$h=(b)=>{return{httpAuthSchemes:b.httpAuthSchemes(),httpAuthSchemeProvider:b.httpAuthSchemeProvider(),credentials:b.credentials()}},sh=(b,h)=>{let j=Object.assign(x.getAwsRegionExtensionConfiguration(b),u.getDefaultExtensionConfiguration(b),V.getHttpHandlerExtensionConfiguration(b),_h(b));return h.forEach((w)=>w.configure(j)),Object.assign(b,x.resolveAwsRegionExtensionConfiguration(j),u.resolveDefaultRuntimeConfig(j),V.resolveHttpHandlerRuntimeConfig(j),$h(j))};class I extends u.Client{config;constructor(...[b]){let h=Zh(b||{});super(h);this.initConfig=h;let j=Yb(h),w=x.resolveUserAgentConfig(j),q=P.resolveRetryConfig(w),R=v.resolveRegionConfig(q),W=x.resolveHostHeaderConfig(R),zb=L.resolveEndpointConfig(W),Ab=Xb(zb),Bb=sh(Ab,b?.extensions||[]);this.config=Bb,this.middlewareStack.use(Z.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(x.getUserAgentPlugin(this.config)),this.middlewareStack.use(P.getRetryPlugin(this.config)),this.middlewareStack.use(V.getContentLengthPlugin(this.config)),this.middlewareStack.use(x.getHostHeaderPlugin(this.config)),this.middlewareStack.use(x.getLoggerPlugin(this.config)),this.middlewareStack.use(x.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(U.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:Ub,identityProviderConfigProvider:async(Db)=>new U.DefaultIdentityProviderConfig({"aws.auth#sigv4":Db.credentials})})),this.middlewareStack.use(U.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class a extends u.Command.classBuilder().ep(n).m(function(b,h,j,w){return[L.getEndpointPlugin(j,b.getEndpointParameterInstructions())]}).s("AWSCognitoIdentityService","GetCredentialsForIdentity",{}).n("CognitoIdentityClient","GetCredentialsForIdentityCommand").sc(Wh).build(){}class C extends u.Command.classBuilder().ep(n).m(function(b,h,j,w){return[L.getEndpointPlugin(j,b.getEndpointParameterInstructions())]}).s("AWSCognitoIdentityService","GetId",{}).n("CognitoIdentityClient","GetIdCommand").sc(Xh).build(){}var Fh={GetCredentialsForIdentityCommand:a,GetIdCommand:C};class ub extends I{}u.createAggregatedClient(Fh,ub);var{Command:ch,Client:fh}=u;var vb=I;var wb=a;var xb=C;export{xb as GetIdCommand,wb as GetCredentialsForIdentityCommand,vb as CognitoIdentityClient};
|
|
2
|
+
import{te as Qb}from"./chunk-6a7c7wnf.js";import{xe as Sb}from"./chunk-hj3ddt53.js";import{ye as Rb}from"./chunk-r0k21apr.js";import{Ae as Ob,Be as Pb,ze as Nb}from"./chunk-wgk7ynt3.js";import{Ce as Mb}from"./chunk-41v0x1jk.js";import{uf as Eb,vf as Hb,wf as Jb,xf as Kb,yf as Lb}from"./chunk-a3a1trap.js";import"./chunk-3k2b05fv.js";var x=Pb(),U=Ob(),u=Hb(),v=Jb(),L=Kb(),V=Mb(),P=Nb(),Z=Eb(),_=Qb(),M=Lb(),i=Rb(),Tb=Sb(),Ub=async(b,h,j)=>{return{operation:u.getSmithyContext(h).operation,region:await u.normalizeProvider(b.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};function Vb(b){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"cognito-identity",region:b.region},propertiesExtractor:(h,j)=>({signingProperties:{config:h,context:j}})}}function e(b){return{schemeId:"smithy.api#noAuth"}}var Wb=(b)=>{let h=[];switch(b.operation){case"GetCredentialsForIdentity":{h.push(e());break}case"GetId":{h.push(e());break}default:h.push(Vb(b))}return h},Xb=(b)=>{let h=_.resolveAwsSdkSigV4Config(b);return Object.assign(h,{authSchemePreference:u.normalizeProvider(b.authSchemePreference??[])})},Yb=(b)=>{return Object.assign(b,{useDualstackEndpoint:b.useDualstackEndpoint??!1,useFipsEndpoint:b.useFipsEndpoint??!1,defaultSigningName:"cognito-identity"})},n={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},Zb="3.997.14",_b={version:Zb},Q="ref",K=-1,S=!0,m="isSet",bb="PartitionResult",T="booleanEquals",X="getAttr",N="stringEquals",d={[Q]:"Endpoint"},Y={[Q]:bb},O={[Q]:"Region"},A={},o=[O],t={conditions:[[m,[d]],[m,o],["aws.partition",o,bb],[T,[{[Q]:"UseFIPS"},S]],[T,[{fn:X,argv:[Y,"supportsFIPS"]},S]],[T,[{[Q]:"UseDualStack"},S]],[T,[{fn:X,argv:[Y,"supportsDualStack"]},S]],[N,[{fn:X,argv:[Y,"name"]},"aws"]],[N,[O,"us-east-1"]],[N,[O,"us-east-2"]],[N,[O,"us-west-1"]],[N,[O,"us-west-2"]]],results:[[K],[K,"Invalid Configuration: FIPS and custom endpoint are not supported"],[K,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[d,A],["https://cognito-identity-fips.us-east-1.amazonaws.com",A],["https://cognito-identity-fips.us-east-2.amazonaws.com",A],["https://cognito-identity-fips.us-west-1.amazonaws.com",A],["https://cognito-identity-fips.us-west-2.amazonaws.com",A],["https://cognito-identity-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",A],[K,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://cognito-identity-fips.{Region}.{PartitionResult#dnsSuffix}",A],[K,"FIPS is enabled but this partition does not support FIPS"],["https://cognito-identity.{Region}.amazonaws.com",A],["https://cognito-identity.{Region}.{PartitionResult#dualStackDnsSuffix}",A],[K,"DualStack is enabled but this partition does not support DualStack"],["https://cognito-identity.{Region}.{PartitionResult#dnsSuffix}",A],[K,"Invalid Configuration: Missing Region"]]},$b=2,p=1e8,sb=new Int32Array([-1,1,-1,0,17,3,1,4,p+16,2,5,p+16,3,9,6,5,7,p+15,6,8,p+14,7,p+12,p+13,4,11,10,5,p+9,p+11,5,12,p+10,6,13,p+9,8,p+4,14,9,p+5,15,10,p+6,16,11,p+7,p+8,3,p+1,18,5,p+2,p+3]),Fb=L.BinaryDecisionDiagram.from(sb,$b,t.conditions,t.results),cb=new L.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),fb=(b,h={})=>{return cb.get(b,()=>L.decideEndpoint(Fb,{endpointParams:b,logger:h.logger}))};L.customEndpointFunctions.aws=x.awsEndpointFunctions;class z extends u.ServiceException{constructor(b){super(b);Object.setPrototypeOf(this,z.prototype)}}class $ extends z{name="ExternalServiceException";$fault="client";constructor(b){super({name:"ExternalServiceException",$fault:"client",...b});Object.setPrototypeOf(this,$.prototype)}}class s extends z{name="InternalErrorException";$fault="server";constructor(b){super({name:"InternalErrorException",$fault:"server",...b});Object.setPrototypeOf(this,s.prototype)}}class F extends z{name="InvalidIdentityPoolConfigurationException";$fault="client";constructor(b){super({name:"InvalidIdentityPoolConfigurationException",$fault:"client",...b});Object.setPrototypeOf(this,F.prototype)}}class c extends z{name="InvalidParameterException";$fault="client";constructor(b){super({name:"InvalidParameterException",$fault:"client",...b});Object.setPrototypeOf(this,c.prototype)}}class f extends z{name="NotAuthorizedException";$fault="client";constructor(b){super({name:"NotAuthorizedException",$fault:"client",...b});Object.setPrototypeOf(this,f.prototype)}}class l extends z{name="ResourceConflictException";$fault="client";constructor(b){super({name:"ResourceConflictException",$fault:"client",...b});Object.setPrototypeOf(this,l.prototype)}}class G extends z{name="ResourceNotFoundException";$fault="client";constructor(b){super({name:"ResourceNotFoundException",$fault:"client",...b});Object.setPrototypeOf(this,G.prototype)}}class r extends z{name="TooManyRequestsException";$fault="client";constructor(b){super({name:"TooManyRequestsException",$fault:"client",...b});Object.setPrototypeOf(this,r.prototype)}}class y extends z{name="LimitExceededException";$fault="client";constructor(b){super({name:"LimitExceededException",$fault:"client",...b});Object.setPrototypeOf(this,y.prototype)}}var lb="AccountId",Gb="AccessKeyId",hb="Credentials",rb="CustomRoleArn",yb="Expiration",gb="ExternalServiceException",Ib="GetCredentialsForIdentity",ab="GetCredentialsForIdentityInput",Cb="GetCredentialsForIdentityResponse",ib="GetId",eb="GetIdInput",mb="GetIdResponse",db="InternalErrorException",g="IdentityId",ob="InvalidIdentityPoolConfigurationException",tb="InvalidParameterException",nb="IdentityPoolId",bh="IdentityProviderToken",jb="Logins",hh="LimitExceededException",jh="LoginsMap",kh="NotAuthorizedException",ph="ResourceConflictException",qh="ResourceNotFoundException",uh="SecretKey",vh="SecretKeyString",wh="SessionToken",xh="TooManyRequestsException",H="client",D="error",J="httpError",E="message",kb="smithy.ts.sdk.synthetic.com.amazonaws.cognitoidentity",zh="server",k="com.amazonaws.cognitoidentity",pb=Z.TypeRegistry.for(kb),Ah=[-3,kb,"CognitoIdentityServiceException",0,[],[]];pb.registerError(Ah,z);var B=Z.TypeRegistry.for(k),Bh=[-3,k,gb,{[D]:H,[J]:400},[E],[0]];B.registerError(Bh,$);var Dh=[-3,k,db,{[D]:zh},[E],[0]];B.registerError(Dh,s);var Eh=[-3,k,ob,{[D]:H,[J]:400},[E],[0]];B.registerError(Eh,F);var Hh=[-3,k,tb,{[D]:H,[J]:400},[E],[0]];B.registerError(Hh,c);var Jh=[-3,k,hh,{[D]:H,[J]:400},[E],[0]];B.registerError(Jh,y);var Kh=[-3,k,kh,{[D]:H,[J]:403},[E],[0]];B.registerError(Kh,f);var Lh=[-3,k,ph,{[D]:H,[J]:409},[E],[0]];B.registerError(Lh,l);var Mh=[-3,k,qh,{[D]:H,[J]:404},[E],[0]];B.registerError(Mh,G);var Nh=[-3,k,xh,{[D]:H,[J]:429},[E],[0]];B.registerError(Nh,r);var Oh=[pb,B],Ph=[0,k,bh,8,0],Qh=[0,k,vh,8,0],Rh=[3,k,hb,0,[Gb,uh,wh,yb],[0,[()=>Qh,0],0,4]],Sh=[3,k,ab,0,[g,jb,rb],[0,[()=>qb,0],0],1],Th=[3,k,Cb,0,[g,hb],[0,[()=>Rh,0]]],Uh=[3,k,eb,0,[nb,lb,jb],[0,0,[()=>qb,0]],1],Vh=[3,k,mb,0,[g],[0]],qb=[2,k,jh,0,[0,0],[()=>Ph,0]],Wh=[9,k,Ib,0,()=>Sh,()=>Th],Xh=[9,k,ib,0,()=>Uh,()=>Vh],Yh=(b)=>{return{apiVersion:"2014-06-30",base64Decoder:b?.base64Decoder??M.fromBase64,base64Encoder:b?.base64Encoder??M.toBase64,disableHostPrefix:b?.disableHostPrefix??!1,endpointProvider:b?.endpointProvider??fb,extensions:b?.extensions??[],httpAuthSchemeProvider:b?.httpAuthSchemeProvider??Wb,httpAuthSchemes:b?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(h)=>h.getIdentityProvider("aws.auth#sigv4"),signer:new _.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(h)=>h.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new U.NoAuthSigner}],logger:b?.logger??new u.NoOpLogger,protocol:b?.protocol??Tb.AwsJson1_1Protocol,protocolSettings:b?.protocolSettings??{defaultNamespace:"com.amazonaws.cognitoidentity",errorTypeRegistries:Oh,xmlNamespace:"http://cognito-identity.amazonaws.com/doc/2014-06-30/",version:"2014-06-30",serviceTarget:"AWSCognitoIdentityService"},serviceId:b?.serviceId??"Cognito Identity",urlParser:b?.urlParser??V.parseUrl,utf8Decoder:b?.utf8Decoder??M.fromUtf8,utf8Encoder:b?.utf8Encoder??M.toUtf8}},Zh=(b)=>{u.emitWarningIfUnsupportedVersion(process.version);let h=v.resolveDefaultsModeConfig(b),j=()=>h().then(u.loadConfigsForDefaultMode),w=Yh(b);x.emitWarningIfUnsupportedVersion(process.version);let q={profile:b?.profile,logger:w.logger};return{...w,...b,runtime:"node",defaultsMode:h,authSchemePreference:b?.authSchemePreference??v.loadConfig(_.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,q),bodyLengthChecker:b?.bodyLengthChecker??M.calculateBodyLength,defaultUserAgentProvider:b?.defaultUserAgentProvider??x.createDefaultUserAgentProvider({serviceId:w.serviceId,clientVersion:_b.version}),maxAttempts:b?.maxAttempts??v.loadConfig(P.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,b),region:b?.region??v.loadConfig(v.NODE_REGION_CONFIG_OPTIONS,{...v.NODE_REGION_CONFIG_FILE_OPTIONS,...q}),requestHandler:i.NodeHttpHandler.create(b?.requestHandler??j),retryMode:b?.retryMode??v.loadConfig({...P.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await j()).retryMode||P.DEFAULT_RETRY_MODE},b),sha256:b?.sha256??M.Hash.bind(null,"sha256"),streamCollector:b?.streamCollector??i.streamCollector,useDualstackEndpoint:b?.useDualstackEndpoint??v.loadConfig(v.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,q),useFipsEndpoint:b?.useFipsEndpoint??v.loadConfig(v.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,q),userAgentAppId:b?.userAgentAppId??v.loadConfig(x.NODE_APP_ID_CONFIG_OPTIONS,q)}},_h=(b)=>{let{httpAuthSchemes:h,httpAuthSchemeProvider:j,credentials:w}=b;return{setHttpAuthScheme(q){let R=h.findIndex((W)=>W.schemeId===q.schemeId);if(R===-1)h.push(q);else h.splice(R,1,q)},httpAuthSchemes(){return h},setHttpAuthSchemeProvider(q){j=q},httpAuthSchemeProvider(){return j},setCredentials(q){w=q},credentials(){return w}}},$h=(b)=>{return{httpAuthSchemes:b.httpAuthSchemes(),httpAuthSchemeProvider:b.httpAuthSchemeProvider(),credentials:b.credentials()}},sh=(b,h)=>{let j=Object.assign(x.getAwsRegionExtensionConfiguration(b),u.getDefaultExtensionConfiguration(b),V.getHttpHandlerExtensionConfiguration(b),_h(b));return h.forEach((w)=>w.configure(j)),Object.assign(b,x.resolveAwsRegionExtensionConfiguration(j),u.resolveDefaultRuntimeConfig(j),V.resolveHttpHandlerRuntimeConfig(j),$h(j))};class I extends u.Client{config;constructor(...[b]){let h=Zh(b||{});super(h);this.initConfig=h;let j=Yb(h),w=x.resolveUserAgentConfig(j),q=P.resolveRetryConfig(w),R=v.resolveRegionConfig(q),W=x.resolveHostHeaderConfig(R),zb=L.resolveEndpointConfig(W),Ab=Xb(zb),Bb=sh(Ab,b?.extensions||[]);this.config=Bb,this.middlewareStack.use(Z.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(x.getUserAgentPlugin(this.config)),this.middlewareStack.use(P.getRetryPlugin(this.config)),this.middlewareStack.use(V.getContentLengthPlugin(this.config)),this.middlewareStack.use(x.getHostHeaderPlugin(this.config)),this.middlewareStack.use(x.getLoggerPlugin(this.config)),this.middlewareStack.use(x.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(U.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:Ub,identityProviderConfigProvider:async(Db)=>new U.DefaultIdentityProviderConfig({"aws.auth#sigv4":Db.credentials})})),this.middlewareStack.use(U.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class a extends u.Command.classBuilder().ep(n).m(function(b,h,j,w){return[L.getEndpointPlugin(j,b.getEndpointParameterInstructions())]}).s("AWSCognitoIdentityService","GetCredentialsForIdentity",{}).n("CognitoIdentityClient","GetCredentialsForIdentityCommand").sc(Wh).build(){}class C extends u.Command.classBuilder().ep(n).m(function(b,h,j,w){return[L.getEndpointPlugin(j,b.getEndpointParameterInstructions())]}).s("AWSCognitoIdentityService","GetId",{}).n("CognitoIdentityClient","GetIdCommand").sc(Xh).build(){}var Fh={GetCredentialsForIdentityCommand:a,GetIdCommand:C};class ub extends I{}u.createAggregatedClient(Fh,ub);var{Command:ch,Client:fh}=u;var vb=I;var wb=a;var xb=C;export{xb as GetIdCommand,wb as GetCredentialsForIdentityCommand,vb as CognitoIdentityClient};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{i as P,j as g,k as b,l as h,m as O}from"./chunk-
|
|
2
|
+
import{i as P,j as g,k as b,l as h,m as O}from"./chunk-1pg6pv0m.js";import"./chunk-x66ycpfs.js";import"./chunk-03xppy47.js";import{Rd as u}from"./chunk-yajd975f.js";import{Vf as s}from"./chunk-p9cnzxb8.js";import{gh as f}from"./chunk-5e4fxy99.js";import"./chunk-8vg4fmg2.js";import{ai as E}from"./chunk-zfcp509b.js";import"./chunk-yp5bypsp.js";import"./chunk-7hm0c2yg.js";import"./chunk-gj0wt0cy.js";import"./chunk-md8161zd.js";import"./chunk-yk97q51d.js";import{$j as p,_j as S}from"./chunk-e74efvj2.js";import"./chunk-st5jaszz.js";import"./chunk-a1hzeejj.js";import"./chunk-sjw56r2n.js";import"./chunk-nj4d554m.js";import"./chunk-eva3nqqb.js";import"./chunk-yprmd5b7.js";import"./chunk-snr44en9.js";import"./chunk-keveg5gx.js";import"./chunk-f3bnn9rf.js";import"./chunk-xqdrr7xg.js";import"./chunk-axdzm75h.js";import"./chunk-94pcpztx.js";import"./chunk-hw5qyht3.js";import"./chunk-z8gdmvgg.js";import"./chunk-kwx9ewe0.js";import"./chunk-cqtkxwd8.js";import"./chunk-c5pb87yf.js";import"./chunk-g6cyhxwg.js";import"./chunk-n96tvjgj.js";import"./chunk-pkc4ddw1.js";import"./chunk-xgr6jnd6.js";import"./chunk-a48t0g95.js";import"./chunk-yqk58hf6.js";import"./chunk-er38zew1.js";import"./chunk-dk975etf.js";import"./chunk-6p94fpbn.js";import"./chunk-fg35hwa0.js";import"./chunk-79agp7v3.js";import"./chunk-kv72hxkp.js";import"./chunk-nj2bbtmx.js";import"./chunk-tns5x4w0.js";import"./chunk-e7v9trve.js";import"./chunk-zh3fny3z.js";import"./chunk-m4j7jyrd.js";import"./chunk-gmzrvxnv.js";import"./chunk-mpygdb5a.js";import{wA as I}from"./chunk-wfd5h6ax.js";import{OI as l,TC as d,iE as D}from"./chunk-a0rp7gh4.js";import"./chunk-kfmz2p27.js";import"./chunk-ee23d2nz.js";import"./chunk-3k2b05fv.js";var A=(o)=>l.promise(()=>E(o)),m=(o)=>l.sync(()=>s.println(o)),v=(o)=>s.Style.TEXT_DIM+o+s.Style.TEXT_NORMAL,L=(o)=>o?v(" (active)"):"",w=(o,e)=>`${o.email} ${v(o.url)}${L(e)}`,x=(o,e,t)=>`${e.name} (${o.email})${L(t)}`,C=(o,e,t)=>{let n=t?s.Style.TEXT_SUCCESS+"\u25CF"+s.Style.TEXT_NORMAL:" ",c=t?s.Style.TEXT_HIGHLIGHT_BOLD+e.name+s.Style.TEXT_NORMAL:e.name;return` ${n} ${c} ${v(o.email)} ${v(o.url)} ${v(e.id)}`},T=(o,e)=>d.isSome(o)&&o.value.id===e.accountID&&o.value.active_org_id===e.orgID,_=l.fn("login")(function*(o){let e=yield*p.Service;yield*P("Log in");let t=yield*e.login(o);yield*b.info("Go to: "+t.url),yield*b.info("Enter code: "+t.user),yield*A(t.url);let n=O();yield*n.start("Waiting for authorization...");let c=(r)=>l.gen(function*(){yield*l.sleep(r);let i=yield*e.poll(t);if(i._tag==="PollPending")return yield*c(r);if(i._tag==="PollSlow")return yield*c(D.sum(r,D.seconds(5)));return i}),a=yield*c(t.interval).pipe(l.timeout(t.expiry),l.catchTag("TimeoutError",()=>l.succeed(new S)));yield*I.valueTags(a,{PollSuccess:(r)=>l.gen(function*(){yield*n.stop("Logged in as "+r.email),yield*g("Done")}),PollExpired:()=>n.stop("Device code expired",1),PollDenied:()=>n.stop("Authorization denied",1),PollError:(r)=>n.stop("Error: "+String(r.cause),1),PollPending:()=>n.stop("Unexpected state",1),PollSlow:()=>n.stop("Unexpected state",1)})}),N=l.fn("logout")(function*(o){let e=yield*p.Service,t=yield*e.list();if(t.length===0)return yield*m("Not logged in");if(o){let i=t.find((y)=>y.email===o);if(!i)return yield*m("Account not found: "+o);yield*e.remove(i.id),yield*g("Logged out from "+o);return}let n=yield*e.active(),c=d.map(n,(i)=>i.id);yield*P("Log out");let a=t.map((i)=>{let y=d.isSome(c)&&c.value===i.id;return{value:i,label:w(i,y)}}),r=yield*h({message:"Select account to log out",options:a});if(d.isNone(r))return;yield*e.remove(r.value.id),yield*g("Logged out from "+r.value.email)}),$=l.fn("switch")(function*(){let o=yield*p.Service,e=yield*o.orgsByAccount();if(e.length===0)return yield*m("Not logged in");let t=yield*o.active(),n=e.flatMap((r)=>r.orgs.map((i)=>{let y=T(t,{accountID:r.account.id,orgID:i.id});return{value:{orgID:i.id,accountID:r.account.id,label:i.name},label:x(r.account,i,y)}}));if(n.length===0)return yield*m("No orgs found");yield*P("Switch org");let c=yield*h({message:"Select org",options:n});if(d.isNone(c))return;let a=c.value;yield*o.use(a.accountID,d.some(a.orgID)),yield*g("Switched to "+a.label)}),R=l.fn("orgs")(function*(){let o=yield*p.Service,e=yield*o.orgsByAccount();if(e.length===0)return yield*m("No accounts found");if(!e.some((n)=>n.orgs.length>0))return yield*m("No orgs found");let t=yield*o.active();for(let n of e)for(let c of n.orgs){let a=T(t,{accountID:n.account.id,orgID:c.id});yield*m(C(n.account,c,a))}}),M=l.fn("open")(function*(){let e=yield*(yield*p.Service).active();if(d.isNone(e))return yield*m("No active account");let t=e.value.url;yield*A(t),yield*g("Opened "+t)}),X=u({command:"login <url>",describe:!1,builder:(o)=>o.positional("url",{describe:"server URL",type:"string",demandOption:!0}),async handler(o){s.empty(),await f.runPromise(_(o.url))}}),B=u({command:"logout [email]",describe:!1,builder:(o)=>o.positional("email",{describe:"account email to log out from",type:"string"}),async handler(o){s.empty(),await f.runPromise(N(o.email))}}),U=u({command:"switch",describe:!1,async handler(){s.empty(),await f.runPromise($())}}),G=u({command:"orgs",describe:!1,async handler(){s.empty(),await f.runPromise(R())}}),H=u({command:"open",describe:!1,async handler(){s.empty(),await f.runPromise(M())}}),Y=u({command:"console",describe:!1,builder:(o)=>o.command({...X,describe:"log in to console"}).command({...B,describe:"log out from console"}).command({...U,describe:"switch active org"}).command({...G,describe:"list orgs"}).command({...H,describe:"open active console account"}).demandCommand(),async handler(){}});export{C as formatOrgLine,w as formatAccountLabel,U as SwitchCommand,G as OrgsCommand,H as OpenCommand,B as LogoutCommand,X as LoginCommand,Y as ConsoleCommand};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{O as o}from"./chunk-6p7yg5sr.js";import{P as i}from"./chunk-
|
|
2
|
+
import{O as o}from"./chunk-6p7yg5sr.js";import{P as i}from"./chunk-t3eymzg1.js";import{Ed as p}from"./chunk-aa8hymcv.js";import{Rd as n}from"./chunk-yajd975f.js";import{Vf as B}from"./chunk-p9cnzxb8.js";import{ag as l}from"./chunk-9yrypq1r.js";import"./chunk-tbgczapt.js";import"./chunk-gckgaqqr.js";import"./chunk-srpe3v8e.js";import"./chunk-6y423jax.js";import"./chunk-nfg7nt13.js";import"./chunk-rv1stdvb.js";import"./chunk-9ayxg9mq.js";import{gh as g}from"./chunk-5e4fxy99.js";import{Uh as d}from"./chunk-8vg4fmg2.js";import"./chunk-zfcp509b.js";import"./chunk-yp5bypsp.js";import"./chunk-7hm0c2yg.js";import"./chunk-gj0wt0cy.js";import"./chunk-md8161zd.js";import"./chunk-yk97q51d.js";import{rl as f}from"./chunk-e74efvj2.js";import"./chunk-st5jaszz.js";import"./chunk-a1hzeejj.js";import"./chunk-sjw56r2n.js";import"./chunk-nj4d554m.js";import"./chunk-eva3nqqb.js";import"./chunk-yprmd5b7.js";import"./chunk-snr44en9.js";import"./chunk-keveg5gx.js";import{Mp as D}from"./chunk-f3bnn9rf.js";import"./chunk-xqdrr7xg.js";import"./chunk-axdzm75h.js";import"./chunk-94pcpztx.js";import"./chunk-hw5qyht3.js";import"./chunk-z8gdmvgg.js";import"./chunk-kwx9ewe0.js";import"./chunk-cqtkxwd8.js";import"./chunk-c5pb87yf.js";import"./chunk-g6cyhxwg.js";import"./chunk-n96tvjgj.js";import"./chunk-pkc4ddw1.js";import"./chunk-xgr6jnd6.js";import"./chunk-a48t0g95.js";import"./chunk-yqk58hf6.js";import"./chunk-er38zew1.js";import"./chunk-dk975etf.js";import"./chunk-6p94fpbn.js";import"./chunk-fg35hwa0.js";import"./chunk-79agp7v3.js";import"./chunk-kv72hxkp.js";import"./chunk-nj2bbtmx.js";import{eu as u,ou as I,xu as x}from"./chunk-tns5x4w0.js";import{Ru as y}from"./chunk-e7v9trve.js";import"./chunk-zh3fny3z.js";import"./chunk-m4j7jyrd.js";import"./chunk-gmzrvxnv.js";import"./chunk-mpygdb5a.js";import"./chunk-wfd5h6ax.js";import"./chunk-a0rp7gh4.js";import"./chunk-kfmz2p27.js";import"./chunk-ee23d2nz.js";import"./chunk-3k2b05fv.js";import Q from"path";import{pathToFileURL as a}from"url";import{EOL as O}from"os";function $(j){let K=j.state;return{input:K.input,metadata:"metadata"in K?K.metadata:{},part:j}}function C(j){let K=j.description?B.Style.TEXT_DIM+` ${j.description}`+B.Style.TEXT_NORMAL:"";B.println(B.Style.TEXT_NORMAL+j.icon,B.Style.TEXT_NORMAL+j.title+K)}function b(j,K){if(B.empty(),C(j),!K?.trim())return;B.println(K),B.empty()}function c(j){let K=j.state,V="input"in K?K.input:void 0,Y=("title"in K&&K.title?K.title:void 0)||(V&&typeof V==="object"&&Object.keys(V).length>0?JSON.stringify(V):"Unknown");C({icon:"\u2699",title:`${j.tool} ${Y}`})}function t(j){let K=j.path??"",V=`${j.kind} "${j.pattern}"`,Y=K?`in ${T(K)}`:"",H=j.count===void 0?Y:`${Y}${Y?" \xB7 ":""}${j.count} ${j.count===1?"match":"matches"}`;C({icon:"\u2731",title:V,...H&&{description:H}})}function r(j){t({kind:"Glob",pattern:j.input.pattern,path:j.input.path,count:j.metadata.count})}function jj(j){t({kind:"Grep",pattern:j.input.pattern,path:j.input.path,count:j.metadata.matches})}function Bj(j){let K=T(j.input.filePath),V=Object.entries(j.input).filter(([H,S])=>{if(H==="filePath")return!1;return typeof S==="string"||typeof S==="number"||typeof S==="boolean"}),Y=V.length?`[${V.map(([H,S])=>`${H}=${S}`).join(", ")}]`:void 0;C({icon:"\u2192",title:`Read ${K}`,...Y&&{description:Y}})}function Gj(j){b({icon:"\u2190",title:`Write ${T(j.input.filePath)}`},j.part.state.status==="completed"?j.part.state.output:void 0)}function Jj(j){C({icon:"%",title:`WebFetch ${j.input.url}`})}function Kj(j){let K=T(j.input.filePath),V=j.metadata.diff;b({icon:"\u2190",title:`Edit ${K}`},V)}function Mj(j){C({icon:"\u25C7",title:`Exa Code Search "${j.input.query}"`})}function Nj(j){C({icon:"\u25C8",title:`Web Search "${j.input.query}"`})}function k(j){let K=j.part.state.input?.operation??j.part.state.input,V=j.part.state.status,Y=typeof K?.subagent_type==="string"&&K.subagent_type.trim().length>0?K.subagent_type:"unknown",H=u.titlecase(Y),S=typeof K?.description==="string"&&K.description.trim().length>0?K.description:void 0,w=V==="error"?"\u2717":V==="running"?"\u2022":"\u2713",L=S??`${H} Task`;C({icon:w,title:L,description:S?`${H} Agent`:void 0})}function Vj(j){C({icon:"\u2192",title:`Skill "${j.input.name}"`})}function Xj(j){let K=j.part.state.status==="completed"?j.part.state.output?.trim():void 0;b({icon:"$",title:`${j.input.command}`},K)}function T(j){if(!j)return"";if(Q.isAbsolute(j))return Q.relative(process.cwd(),j)||".";return j}var Tj=n({command:"run [message..]",describe:"run qitqode with a message",builder:(j)=>{return j.positional("message",{describe:"message to send",type:"string",array:!0,default:[]}).option("command",{describe:"the command to run, use message for args",type:"string"}).option("continue",{alias:["c"],describe:"continue the last session",type:"boolean"}).option("session",{alias:["s"],describe:"session id to continue",type:"string"}).option("fork",{describe:"fork the session before continuing (requires --continue or --session)",type:"boolean"}).option("share",{type:"boolean",describe:"share the session"}).option("model",{type:"string",alias:["m"],describe:"model to use in the format of provider/model"}).option("agent",{type:"string",describe:"agent to use"}).option("format",{type:"string",choices:["default","json"],default:"default",describe:"format: default (formatted) or json (raw JSON events)"}).option("file",{alias:["f"],type:"string",array:!0,describe:"file(s) to attach to message"}).option("title",{type:"string",describe:"title for the session (uses truncated prompt if no value provided)"}).option("attach",{type:"string",describe:"attach to a running qitqode server (e.g., http://localhost:4096)"}).option("password",{alias:["p"],type:"string",describe:"basic auth password (defaults to QITQODE_SERVER_PASSWORD)"}).option("dir",{type:"string",describe:"directory to run in, path on remote server if attaching"}).option("port",{type:"number",describe:"port for the local server (defaults to random port if no value provided)"}).option("variant",{type:"string",describe:"model variant (provider-specific reasoning effort, e.g., high, max, minimal)"}).option("thinking",{type:"boolean",describe:"show thinking blocks",default:!1}).option("dangerously-skip-permissions",{type:"boolean",describe:"auto-approve permissions that are not explicitly denied (dangerous!)",default:!1})},handler:async(j)=>{let K=[...j.message,...j["--"]||[]].join(" "),V=(()=>{if(!j.dir)return;if(j.attach)return j.dir;try{return process.chdir(j.dir),process.cwd()}catch{B.error("Failed to change directory to "+j.dir),process.exit(1)}})(),Y=[];if(j.file){let M=Array.isArray(j.file)?j.file:[j.file];for(let X of M){let N=Q.resolve(process.cwd(),X);if(!await y.exists(N))B.error(`File not found: ${X}`),process.exit(1);let W=await y.isDir(N)?"application/x-directory":"text/plain";Y.push({type:"file",url:a(N).href,filename:Q.basename(N),mime:W})}}if(!process.stdin.isTTY)K+=`
|
|
3
3
|
`+await Bun.stdin.text();if(K.trim().length===0&&!j.command)B.error("You must provide a message or a command"),process.exit(1);if(j.fork&&!j.continue&&!j.session)B.error("--fork requires --continue or --session"),process.exit(1);let H=[{permission:"question",action:"deny",pattern:"*"},{permission:"plan_enter",action:"deny",pattern:"*"},{permission:"plan_exit",action:"deny",pattern:"*"}];function S(){if(j.title===void 0)return;if(j.title!=="")return j.title;return K.slice(0,50)+(K.length>50?"...":"")}async function w(M){let X=j.continue?(await M.session.list()).data?.find((Z)=>!Z.parentID)?.id:j.session;if(X&&j.fork)return(await M.session.fork({sessionID:X})).data?.id;if(X)return X;let N=S();return(await M.session.create({title:N,permission:H})).data?.id}async function L(M,X){let N=await M.config.get();if(!N.data)return;if(N.data.share!=="auto"&&!I.QITQODE_AUTO_SHARE&&!j.share)return;let W=await M.session.share({sessionID:X}).catch((Z)=>{if(Z instanceof Error&&Z.message.includes("disabled"))B.println(B.Style.TEXT_DANGER_BOLD+"! "+Z.message);return{error:Z}});if(!W.error&&"data"in W&&W.data?.share?.url)B.println(B.Style.TEXT_INFO_BOLD+"~ "+W.data.share.url)}async function h(M){function X(G){try{if(G.tool==="bash")return Xj($(G));if(G.tool==="glob")return r($(G));if(G.tool==="grep")return jj($(G));if(G.tool==="read")return Bj($(G));if(G.tool==="write")return Gj($(G));if(G.tool==="webfetch")return Jj($(G));if(G.tool==="edit")return Kj($(G));if(G.tool==="codesearch")return Mj($(G));if(G.tool==="websearch")return Nj($(G));if(G.tool==="actor")return k($(G));if(G.tool==="skill")return Vj($(G));return c(G)}catch{return c(G)}}function N(G,q){if(j.format==="json")return process.stdout.write(JSON.stringify({type:G,timestamp:Date.now(),sessionID:A,...q})+O),!0;return!1}let W=await M.event.subscribe(),Z;async function e(G){let q=new Map,z=x.create({service:"cli.run"}),E=W.stream[Symbol.asyncIterator](),F=G.completion.then(()=>"DONE");try{while(!0){let P=await Promise.race([E.next(),F]);if(P==="DONE")break;if(P.done)break;let _=P.value;if(G.onEvent(_),z.debug("event received",{type:_.type}),_.type==="message.updated"&&_.properties.info.role==="assistant"&&j.format!=="json"&&q.get("start")!==!0)B.empty(),B.println(`> ${_.properties.info.agent} \xB7 ${_.properties.info.modelID}`),B.empty(),q.set("start",!0);if(_.type==="message.part.updated"){let J=_.properties.part;if(J.sessionID!==A)continue;if(J.type==="tool"&&(J.state.status==="completed"||J.state.status==="error")){if(N("tool_use",{part:J}))continue;if(J.state.status==="completed"){X(J);continue}C({icon:"\u2717",title:`${J.tool} failed`}),B.error(J.state.error)}if(J.type==="tool"&&J.tool==="actor"&&J.state.status==="running"&&j.format!=="json"){if(q.get(J.id)===!0)continue;k($(J)),q.set(J.id,!0)}if(J.type==="step-start"){if(N("step_start",{part:J}))continue}if(J.type==="step-finish"){if(N("step_finish",{part:J}))continue}if(J.type==="text"&&J.time?.end){if(N("text",{part:J}))continue;let R=J.text.trim();if(!R)continue;if(!process.stdout.isTTY){process.stdout.write(R+O);continue}B.empty(),B.println(R),B.empty()}if(J.type==="reasoning"&&J.time?.end&&j.thinking){if(N("reasoning",{part:J}))continue;let R=J.text.trim();if(!R)continue;let U=`Thinking: ${R}`;if(process.stdout.isTTY){B.empty(),B.println(`${B.Style.TEXT_DIM}\x1B[3m${U}\x1B[0m${B.Style.TEXT_NORMAL}`),B.empty();continue}process.stdout.write(U+O)}}if(_.type==="session.error"){let J=_.properties;if(J.sessionID!==A||!J.error)continue;let R=String(J.error.name);if("data"in J.error&&J.error.data&&"message"in J.error.data)R=String(J.error.data.message);if(Z=Z?Z+O+R:R,N("error",{error:J.error}))continue;B.error(R)}if(_.type==="permission.asked"){let J=_.properties;if(J.sessionID!==A)continue;if(j["dangerously-skip-permissions"])await M.permission.reply({requestID:J.id,reply:"once"});else B.println(B.Style.TEXT_WARNING_BOLD+"!",B.Style.TEXT_NORMAL+`permission requested: ${J.permission} (${J.patterns.join(", ")}); auto-rejecting`),await M.permission.reply({requestID:J.id,reply:"reject"})}}}finally{G.stop(),await E.return?.(void 0).catch(()=>{})}}let v=await(async()=>{if(!j.agent)return;let G=j.agent;if(j.attach){let z=await M.app.agents(void 0,{throwOnError:!0}).then((F)=>F.data??[]).catch(()=>{return});if(!z){B.println(B.Style.TEXT_WARNING_BOLD+"!",B.Style.TEXT_NORMAL,`failed to list agents from ${j.attach}. Falling back to default agent`);return}let E=z.find((F)=>F.name===G);if(!E){B.println(B.Style.TEXT_WARNING_BOLD+"!",B.Style.TEXT_NORMAL,`agent "${G}" not found. Falling back to default agent`);return}if(E.mode==="subagent"){B.println(B.Style.TEXT_WARNING_BOLD+"!",B.Style.TEXT_NORMAL,`agent "${G}" is a subagent, not a primary agent. Falling back to default agent`);return}return G}let q=await g.runPromise(d.Service.use((z)=>z.get(G)));if(!q){B.println(B.Style.TEXT_WARNING_BOLD+"!",B.Style.TEXT_NORMAL,`agent "${G}" not found. Falling back to default agent`);return}if(q.mode==="subagent"){B.println(B.Style.TEXT_WARNING_BOLD+"!",B.Style.TEXT_NORMAL,`agent "${G}" is a subagent, not a primary agent. Falling back to default agent`);return}return G})(),A=await w(M);if(!A)B.error("Session not found"),process.exit(1);await L(M,A);let s=x.create({service:"cli.run.poll"}),m=o({sessionID:A,query:async()=>{try{return(await M.session.status()).data?.[A]}catch(G){throw s.debug("session.status query failed",{error:G}),G}}});if(e(m).catch((G)=>{console.error(G),process.exit(1)}),j.command)await M.session.command({sessionID:A,agent:v,model:j.model,command:j.command,arguments:K,variant:j.variant});else{let G=j.model?f.parseModel(j.model):void 0;await M.session.prompt({sessionID:A,agent:v,model:G,variant:j.variant,parts:[...Y,{type:"text",text:K}]})}m.markStarted()}if(j.attach){let M=i({password:j.password}),X=D({baseUrl:j.attach,directory:V,headers:M});return await h(X)}await p(process.cwd(),async()=>{let X=D({baseUrl:"http://qitqode.internal",fetch:async(N,W)=>{let Z=new Request(N,W);return l.Default().app.fetch(Z)}});await h(X)})}});export{Tj as RunCommand};
|