@qitqode/qitqode-android-arm64 0.1.36 → 0.2.1
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-cx7p4ezk.js → chunk-03mbn7nj.js} +2 -2
- package/bundle/{chunk-1yv5h8k4.js → chunk-073ydjmk.js} +1 -1
- package/bundle/{chunk-rrd0jf5m.js → chunk-07s30fpb.js} +1 -1
- package/bundle/{chunk-yacccwf6.js → chunk-087tnr8a.js} +1 -1
- package/bundle/{chunk-kx2dp8ch.js → chunk-0f3ft9dh.js} +1 -1
- package/bundle/{chunk-rgxy4ngt.js → chunk-0gab4v98.js} +1 -1
- package/bundle/chunk-0xrr0k94.js +2 -0
- package/bundle/chunk-0yagj4ss.js +2 -0
- package/bundle/chunk-0ych0f5w.js +2 -0
- package/bundle/{chunk-xyjehgzm.js → chunk-0z1cxvk1.js} +2 -2
- package/bundle/{chunk-rph9zj24.js → chunk-0zxwjsvz.js} +1 -1
- package/bundle/{chunk-pqnbdygz.js → chunk-1p6jjrea.js} +2 -2
- package/bundle/{chunk-9cw4cnz0.js → chunk-1q1cddy4.js} +1 -1
- package/bundle/{chunk-w9pdvcf9.js → chunk-1sfcxdbw.js} +2 -2
- package/bundle/chunk-22hr3ndh.js +2 -0
- package/bundle/chunk-23tyxyyj.js +2 -0
- package/bundle/chunk-28g1ndpx.js +2 -0
- package/bundle/chunk-29v1v357.js +2 -0
- package/bundle/{chunk-txqc7543.js → chunk-29zm623f.js} +2 -2
- package/bundle/{chunk-wm77svwm.js → chunk-2a9rzgk6.js} +1 -1
- package/bundle/chunk-2avxtbv3.js +2 -0
- package/bundle/{chunk-eaqfnwdj.js → chunk-2bgqy6z7.js} +1 -1
- package/bundle/{chunk-9zre5e54.js → chunk-2hv2c8d5.js} +1 -1
- package/bundle/{chunk-swcgsrbj.js → chunk-2jpmxt4v.js} +1 -1
- package/bundle/chunk-2qk0k2eb.js +2 -0
- package/bundle/{chunk-nsjp44fp.js → chunk-2qwmrp16.js} +1 -1
- package/bundle/{chunk-dykqn0nj.js → chunk-2xqqkf86.js} +2 -2
- package/bundle/{chunk-mvsrzvc4.js → chunk-3aq70t26.js} +1 -1
- package/bundle/{chunk-zfcfyagt.js → chunk-3h49k2ck.js} +1 -1
- package/bundle/chunk-3kn57y8d.js +619 -0
- package/bundle/chunk-3ktj87g4.js +2 -0
- package/bundle/{chunk-52b1v7mn.js → chunk-3qfpw8f6.js} +1 -1
- package/bundle/{chunk-v3x5nrc4.js → chunk-3tmq81kq.js} +2 -2
- package/bundle/chunk-3wxvpvg4.js +3 -0
- package/bundle/{chunk-neqy8j4n.js → chunk-42r7z6sq.js} +1 -1
- package/bundle/chunk-42wdfks8.js +2 -0
- package/bundle/chunk-4f19vqxf.js +2 -0
- package/bundle/{chunk-d93z6hrn.js → chunk-4fk46ngj.js} +1 -1
- package/bundle/{chunk-njkserae.js → chunk-4hd3v58j.js} +1 -1
- package/bundle/chunk-4jq25vbc.js +2 -0
- package/bundle/chunk-4m3k1atq.js +2 -0
- package/bundle/{chunk-1wpjmwnh.js → chunk-4mvg7jt1.js} +1 -1
- package/bundle/chunk-4n2ytddp.js +2 -0
- package/bundle/{chunk-zesbm9k1.js → chunk-4sxg9cgr.js} +1 -1
- package/bundle/{chunk-8fgamz4y.js → chunk-4v61ysex.js} +1 -1
- package/bundle/chunk-4yg42p6y.js +2 -0
- package/bundle/chunk-4zx3ze68.js +2 -0
- package/bundle/chunk-57xbwzdn.js +3 -0
- package/bundle/{chunk-rexdr63q.js → chunk-5az84brc.js} +2 -2
- package/bundle/{chunk-y0ydzdfc.js → chunk-5t0w9ecw.js} +1 -1
- package/bundle/{chunk-nq495be3.js → chunk-5wwd40t3.js} +1 -1
- package/bundle/chunk-637sjdzq.js +2 -0
- package/bundle/{chunk-snt1kefv.js → chunk-64c8q9zg.js} +3 -3
- package/bundle/{chunk-g794ey6w.js → chunk-6avjq7my.js} +1 -1
- package/bundle/chunk-6bghztra.js +2 -0
- package/bundle/{chunk-n0trgp1c.js → chunk-6dfjtzqb.js} +2 -2
- package/bundle/chunk-6h8f89tt.js +2 -0
- package/bundle/{chunk-b0jh0rby.js → chunk-6j339s7a.js} +2 -2
- package/bundle/{chunk-8q6z6emx.js → chunk-6kf4vw2g.js} +1 -1
- package/bundle/{chunk-hgsykghj.js → chunk-6pcmv8vs.js} +2 -2
- package/bundle/chunk-6sjj203r.js +2 -0
- package/bundle/{chunk-pmv8yr8c.js → chunk-6y4mwmn4.js} +1 -1
- package/bundle/{chunk-kt0ej3nq.js → chunk-6ypafpg8.js} +1 -1
- package/bundle/{chunk-p8kpqyxb.js → chunk-732yr6qq.js} +2 -2
- package/bundle/{chunk-3sz6gw10.js → chunk-73fz0cf4.js} +2 -2
- package/bundle/chunk-79aka9xe.js +2 -0
- package/bundle/{chunk-8tp4whyw.js → chunk-7my2231h.js} +1 -1
- package/bundle/{chunk-e03tgfpb.js → chunk-7myg8076.js} +6 -6
- package/bundle/{chunk-hbh2034m.js → chunk-7njz51r4.js} +1 -1
- package/bundle/chunk-7nqdhe7x.js +2 -0
- package/bundle/{chunk-zaan8jk6.js → chunk-7ntw4rrn.js} +1 -1
- package/bundle/chunk-7rhry8nv.js +2 -0
- package/bundle/chunk-7x88b2n2.js +2 -0
- package/bundle/{chunk-983rqajz.js → chunk-7zvawpe1.js} +2 -2
- package/bundle/{chunk-jgz1a29w.js → chunk-86jsqc7d.js} +3 -3
- package/bundle/{chunk-zbqzm65q.js → chunk-86yk21g4.js} +1 -1
- package/bundle/{chunk-w3bmf3zz.js → chunk-8e6gx3gg.js} +1 -1
- package/bundle/chunk-8mthftwc.js +2 -0
- package/bundle/{chunk-73ckx171.js → chunk-8q5ns61h.js} +1 -1
- package/bundle/{chunk-549ptbaj.js → chunk-8rh0femq.js} +1 -1
- package/bundle/chunk-8wdara3b.js +2 -0
- package/bundle/chunk-8xhzpnph.js +2 -0
- package/bundle/{chunk-kqhh2pm9.js → chunk-94qhpkfx.js} +1 -1
- package/bundle/{chunk-gxmxx8jb.js → chunk-99148b1k.js} +1 -1
- package/bundle/chunk-9akz8w0d.js +2 -0
- package/bundle/{chunk-7gbytqkn.js → chunk-9b4aqcde.js} +2 -2
- package/bundle/{chunk-tdmn21z0.js → chunk-9ea1n338.js} +2 -2
- package/bundle/chunk-9eg2ytjd.js +17 -0
- package/bundle/chunk-9etpppyv.js +3 -0
- package/bundle/{chunk-vgaxv70x.js → chunk-9jrxrjzt.js} +2 -2
- package/bundle/{chunk-3bkdbqjj.js → chunk-9jsgs71h.js} +1 -1
- package/bundle/{chunk-xqwvx3qq.js → chunk-9nn4jpb7.js} +1 -1
- package/bundle/{chunk-pxx2hz0g.js → chunk-9rxyq6f9.js} +2 -2
- package/bundle/chunk-9tk4wsn4.js +2 -0
- package/bundle/{chunk-9fkmhmh6.js → chunk-9y15zjxa.js} +1 -1
- package/bundle/chunk-a0rjp24v.js +2 -0
- package/bundle/{chunk-mdzzcrf9.js → chunk-a2dz9nqh.js} +2 -2
- package/bundle/chunk-a7p0x4sw.js +2 -0
- package/bundle/{chunk-ev3a2sxv.js → chunk-a92hh67a.js} +2 -2
- package/bundle/chunk-ae0a496j.js +2 -0
- package/bundle/{chunk-3bnqw3xp.js → chunk-ahyqfbmq.js} +2 -2
- package/bundle/chunk-aq1j9y18.js +2 -0
- package/bundle/chunk-aq8nz9hp.js +2 -0
- package/bundle/{chunk-zxddasg8.js → chunk-as845ya4.js} +1 -1
- package/bundle/chunk-b4zy78be.js +2 -0
- package/bundle/{chunk-45mjcxqk.js → chunk-b50t4jc5.js} +1 -1
- package/bundle/chunk-basjzwqp.js +2 -0
- package/bundle/{chunk-d1rn44wz.js → chunk-bbbh69ys.js} +1 -1
- package/bundle/{chunk-mw2hr4pd.js → chunk-bcx2vkv4.js} +1 -1
- package/bundle/{chunk-72zxassf.js → chunk-bggybm9k.js} +1 -1
- package/bundle/{chunk-4gs87ghj.js → chunk-bgng3rdj.js} +2 -2
- package/bundle/chunk-bhetpmgq.js +3 -0
- package/bundle/{chunk-bnz0mxak.js → chunk-bk3z400e.js} +1 -1
- package/bundle/chunk-bm7xpjh6.js +2 -0
- package/bundle/{chunk-jw16f6t0.js → chunk-bzs2ep7s.js} +1 -1
- package/bundle/{chunk-7fawtcnn.js → chunk-c1g8n10t.js} +1 -1
- package/bundle/chunk-c2k556rk.js +2 -0
- package/bundle/{chunk-w03fdrxe.js → chunk-cbf1y12x.js} +1 -1
- package/bundle/{chunk-vc4e6xc4.js → chunk-cbmwhvxw.js} +2 -2
- package/bundle/{chunk-5bate758.js → chunk-cp39f96a.js} +1 -1
- package/bundle/{chunk-9nk0ts0s.js → chunk-d307vb2d.js} +1 -1
- package/bundle/chunk-d41mg7at.js +2 -0
- package/bundle/chunk-d50kpss6.js +2 -0
- package/bundle/chunk-day0rb5p.js +2 -0
- package/bundle/{chunk-3gw6r3hf.js → chunk-dj3525nn.js} +215 -215
- package/bundle/{chunk-b4ysd5b4.js → chunk-dknemkw2.js} +2 -2
- package/bundle/chunk-dp7cww4v.js +2 -0
- package/bundle/{chunk-yeq7b87a.js → chunk-drwqag0f.js} +1 -1
- package/bundle/{chunk-qdcf1ay5.js → chunk-e586sjb0.js} +2 -2
- package/bundle/{chunk-qs4wef8c.js → chunk-e6wp96vm.js} +1 -1
- package/bundle/{chunk-d0xs3j5h.js → chunk-e89zjjmj.js} +1 -1
- package/bundle/chunk-egae7vvg.js +2 -0
- package/bundle/chunk-erdjd9w3.js +2 -0
- package/bundle/chunk-ex93y6dw.js +2 -0
- package/bundle/chunk-eyr0vf92.js +2 -0
- package/bundle/{chunk-02xcb52z.js → chunk-ezfzb8qc.js} +2 -2
- package/bundle/{chunk-qpd0gab8.js → chunk-f1bcz9yz.js} +1 -1
- package/bundle/chunk-f4zfk5ye.js +2 -0
- package/bundle/{chunk-rd4x4tsv.js → chunk-f7rj6fck.js} +1 -1
- package/bundle/{chunk-4sazy0nq.js → chunk-f83wv08n.js} +1 -1
- package/bundle/{chunk-n7xgfm5x.js → chunk-faa0zxey.js} +2 -2
- package/bundle/{chunk-3dr4469n.js → chunk-fbm6qczy.js} +1 -1
- package/bundle/{chunk-0g25z230.js → chunk-fd7fmvyw.js} +1 -1
- package/bundle/chunk-fghqr4x8.js +8 -0
- package/bundle/{chunk-bjcb9kt0.js → chunk-fgn83bs7.js} +1 -1
- package/bundle/{chunk-dshnn54c.js → chunk-fpm2vgz6.js} +1 -1
- package/bundle/chunk-fvkwcx35.js +2 -0
- package/bundle/{chunk-w5940jxm.js → chunk-fvy24yhq.js} +1 -1
- package/bundle/{chunk-fjm9kstr.js → chunk-fymt1rym.js} +1 -1
- package/bundle/{chunk-dt899wbf.js → chunk-g3kd4957.js} +2 -2
- package/bundle/{chunk-f36ctnbp.js → chunk-g5cgpvef.js} +2 -2
- package/bundle/{chunk-fmxm4kaj.js → chunk-g9end129.js} +1 -1
- package/bundle/chunk-gbmmbhy4.js +2 -0
- package/bundle/chunk-gp877cq5.js +2 -0
- package/bundle/{chunk-tgd5ctnt.js → chunk-gr4bctqj.js} +2 -2
- package/bundle/{chunk-dvxk6mr6.js → chunk-grw4gg9j.js} +2 -2
- package/bundle/{chunk-mvnxwwe7.js → chunk-gtjn3yc4.js} +2 -2
- package/bundle/chunk-hk8vvc10.js +2 -0
- package/bundle/{chunk-7dep7g7c.js → chunk-hmznf0ax.js} +1 -1
- package/bundle/{chunk-yjp0btmq.js → chunk-hpa7e9va.js} +3 -3
- package/bundle/{chunk-hcy77w6t.js → chunk-hq9bgnqb.js} +1 -1
- package/bundle/{chunk-gkj4a27z.js → chunk-hrw5rmj1.js} +1 -1
- package/bundle/{chunk-n2ygpy76.js → chunk-hs3vfhar.js} +1 -1
- package/bundle/chunk-hwavzxdm.js +2 -0
- package/bundle/chunk-hwnc2sa5.js +2 -0
- package/bundle/chunk-j2gvpa15.js +2 -0
- package/bundle/{chunk-te5tfq79.js → chunk-j3jqk62r.js} +1 -1
- package/bundle/{chunk-jqn27885.js → chunk-j5ymkhry.js} +1 -1
- package/bundle/chunk-j7n8khk7.js +2 -0
- package/bundle/{chunk-mqtqcc10.js → chunk-jgtcfw96.js} +2 -2
- package/bundle/{chunk-364ccew0.js → chunk-jjjs8p0t.js} +2 -2
- package/bundle/chunk-jkh98wby.js +2 -0
- package/bundle/{chunk-h7w35n7w.js → chunk-jv4th87b.js} +1 -1
- package/bundle/{chunk-j63fkt6n.js → chunk-jvjq554f.js} +1 -1
- package/bundle/{chunk-00sr2gwz.js → chunk-jw114bbt.js} +2 -2
- package/bundle/{chunk-ax1y4699.js → chunk-jwph7tpc.js} +1 -1
- package/bundle/{chunk-xdacgfba.js → chunk-k1gddnkm.js} +1 -1
- package/bundle/chunk-k5a652s4.js +2 -0
- package/bundle/{chunk-1mcsf4yb.js → chunk-k6cbfrzc.js} +2 -2
- package/bundle/chunk-k6w32q2p.js +2 -0
- package/bundle/{chunk-sy3n0qhc.js → chunk-kc1xmcc9.js} +141 -135
- package/bundle/{chunk-5kmfnkzv.js → chunk-kdcnder5.js} +1 -1
- package/bundle/chunk-ke5rqv5b.js +2 -0
- package/bundle/chunk-kghwk0yh.js +2 -0
- package/bundle/{chunk-r6ndvzd0.js → chunk-km1n4ttr.js} +1 -1
- package/bundle/{chunk-htkwc2se.js → chunk-knh01n2r.js} +2 -2
- package/bundle/{chunk-ydc6ypjt.js → chunk-ks1cs80p.js} +2 -2
- package/bundle/{chunk-08q55ya0.js → chunk-kxjrrdj0.js} +1 -1
- package/bundle/{chunk-jts0dma5.js → chunk-kzvvvj79.js} +2 -2
- package/bundle/chunk-mgadsp7r.js +2 -0
- package/bundle/chunk-mk2s9py8.js +2 -0
- package/bundle/{chunk-hb9mc5f9.js → chunk-mpe8zxc0.js} +1 -1
- package/bundle/{chunk-yykjvt7f.js → chunk-mswx4k75.js} +2 -2
- package/bundle/{chunk-rqmvj7f4.js → chunk-mx3jd1p9.js} +1 -1
- package/bundle/{chunk-v8dd6tyn.js → chunk-mxf9p0p9.js} +1 -1
- package/bundle/{chunk-std2bgv7.js → chunk-mxhb5adq.js} +2 -2
- package/bundle/{chunk-gwfx7tx7.js → chunk-my3cswnp.js} +2 -2
- package/bundle/chunk-n0k0pp4k.js +2 -0
- package/bundle/chunk-n393nnh5.js +2 -0
- package/bundle/chunk-n5vyed7w.js +2 -0
- package/bundle/{chunk-jf6ry79j.js → chunk-n7kqdqkh.js} +4 -4
- package/bundle/{chunk-tdxbm1nd.js → chunk-n90eh3e7.js} +1 -1
- package/bundle/{chunk-ebkztnpf.js → chunk-nb86kh94.js} +217 -217
- package/bundle/{chunk-s8mghr5a.js → chunk-ngvp6zc2.js} +2 -2
- package/bundle/{chunk-e07dbha4.js → chunk-nh044sjn.js} +1 -1
- package/bundle/{chunk-a42q5mx4.js → chunk-nm6wnne9.js} +1 -1
- package/bundle/{chunk-mcc5ynma.js → chunk-p4ewy9xh.js} +3 -3
- package/bundle/{chunk-cx0j6mpq.js → chunk-p5mes2sh.js} +1 -1
- package/bundle/{chunk-vgnddhdj.js → chunk-p635phfw.js} +1 -1
- package/bundle/{chunk-dgx4rq86.js → chunk-p887g1xj.js} +1 -1
- package/bundle/{chunk-7jhrxzjx.js → chunk-p9mj4zyk.js} +2 -2
- package/bundle/chunk-pasm65wq.js +2 -0
- package/bundle/chunk-pfh34atn.js +2 -0
- package/bundle/{chunk-xdjwapwy.js → chunk-pfkm3j8g.js} +2 -2
- package/bundle/chunk-phpmxjf8.js +2 -0
- package/bundle/{chunk-9dh9bc9d.js → chunk-pp9neaaz.js} +1 -1
- package/bundle/{chunk-c72jajx9.js → chunk-pzefsndd.js} +1 -1
- package/bundle/{chunk-dh1h513y.js → chunk-q128vfc6.js} +1 -1
- package/bundle/{chunk-5pkg052s.js → chunk-q148vndn.js} +2 -2
- package/bundle/{chunk-4fa390yr.js → chunk-q4fn41ex.js} +2 -2
- package/bundle/{chunk-zrmx397j.js → chunk-q5abwn50.js} +1 -1
- package/bundle/{chunk-cjxcnhmq.js → chunk-q9ft590w.js} +2 -2
- package/bundle/{chunk-7vftsy04.js → chunk-qaz100ht.js} +1 -1
- package/bundle/{chunk-g5prcvq2.js → chunk-qeg0jnxq.js} +2 -2
- package/bundle/{chunk-tabcpx7t.js → chunk-qf1dqzra.js} +2 -2
- package/bundle/{chunk-vcrakhgy.js → chunk-qg9bt0kx.js} +2 -2
- package/bundle/{chunk-pnq1h5az.js → chunk-qhnpq5gb.js} +2 -2
- package/bundle/{chunk-brh35yt5.js → chunk-qkh8697x.js} +2 -2
- package/bundle/chunk-qvzvxsjw.js +2 -0
- package/bundle/chunk-qzszrd0s.js +2 -0
- package/bundle/{chunk-yzwgvjzd.js → chunk-r0s28gnb.js} +1 -1
- package/bundle/chunk-r2qns6yc.js +3 -0
- package/bundle/{chunk-yj6rbe9p.js → chunk-rcyzqa3g.js} +2 -2
- package/bundle/{chunk-70pb4kcm.js → chunk-rdwma0de.js} +2 -2
- package/bundle/{chunk-25bp7pcm.js → chunk-rk2bk4s7.js} +2 -2
- package/bundle/{chunk-x6rr6ss1.js → chunk-rm5ntsvn.js} +1 -1
- package/bundle/chunk-rnq5ezrt.js +2 -0
- package/bundle/{chunk-xhbb8b5g.js → chunk-rp8asmq7.js} +1 -1
- package/bundle/{chunk-z1rshv6g.js → chunk-rpfhgncs.js} +1 -1
- package/bundle/{chunk-cagk1sjd.js → chunk-s0ptrw0z.js} +1 -1
- package/bundle/{chunk-yw9pfqxt.js → chunk-s0ty36qg.js} +1 -1
- package/bundle/{chunk-5yfzzmv0.js → chunk-s7yza695.js} +1 -1
- package/bundle/chunk-s99cvvc9.js +2 -0
- package/bundle/chunk-sh76e256.js +3 -0
- package/bundle/chunk-skpkjnyy.js +2 -0
- package/bundle/{chunk-8r3410c2.js → chunk-skv9ww0s.js} +1 -1
- package/bundle/chunk-snt4kwab.js +2 -0
- package/bundle/chunk-sq47t8f1.js +2 -0
- package/bundle/chunk-sqhgnvvs.js +2 -0
- package/bundle/chunk-t114r59h.js +2 -0
- package/bundle/chunk-t1f56k0j.js +2 -0
- package/bundle/{chunk-9s4whpg1.js → chunk-t1jgx17a.js} +2 -2
- package/bundle/chunk-t69jx6fz.js +2 -0
- package/bundle/{chunk-srxx88nb.js → chunk-t9zbp2qw.js} +1 -1
- package/bundle/{chunk-jcjaw7tk.js → chunk-ta7mfkms.js} +2 -2
- package/bundle/{chunk-w1ypf53m.js → chunk-tce12v85.js} +1 -1
- package/bundle/{chunk-6sfhbckv.js → chunk-tczbhj0e.js} +2 -2
- package/bundle/{chunk-h1kg35mn.js → chunk-tge53d52.js} +1 -1
- package/bundle/chunk-tq1dqhes.js +2 -0
- package/bundle/chunk-tsb3jsx4.js +2 -0
- package/bundle/chunk-ttpbpzbh.js +2 -0
- package/bundle/{chunk-2dkrfc1s.js → chunk-v5z6sx6j.js} +1 -1
- package/bundle/chunk-v667egp5.js +2 -0
- package/bundle/{chunk-37dvnent.js → chunk-v7mg632n.js} +2 -2
- package/bundle/{chunk-60qyqqxx.js → chunk-v9rg0a8g.js} +1 -1
- package/bundle/{chunk-jngchw38.js → chunk-ve3np791.js} +1 -1
- package/bundle/{chunk-wev34grp.js → chunk-vhe92p7a.js} +2 -2
- package/bundle/{chunk-132tcp2j.js → chunk-vjx0064q.js} +2 -2
- package/bundle/{chunk-atpzz901.js → chunk-vm1ek7yf.js} +1 -1
- package/bundle/{chunk-3mepk08v.js → chunk-vqpfpmha.js} +2 -2
- package/bundle/{chunk-cdh26622.js → chunk-vqss3e48.js} +2 -2
- package/bundle/{chunk-ewpzqnj4.js → chunk-w79jzf8w.js} +1 -1
- package/bundle/{chunk-yha554nm.js → chunk-w7em72p8.js} +2 -2
- package/bundle/chunk-wcqfr8vr.js +3 -0
- package/bundle/{chunk-r58gzg6m.js → chunk-wdaf713t.js} +1 -1
- package/bundle/{chunk-ymtcm4xd.js → chunk-wf4x5cjc.js} +1 -1
- package/bundle/{chunk-vsys768k.js → chunk-wfggztm4.js} +1 -1
- package/bundle/{chunk-p8k48st6.js → chunk-wp3dpt6d.js} +2 -2
- package/bundle/{chunk-acyj91wq.js → chunk-x2cavpa9.js} +1 -1
- package/bundle/chunk-x3afqfww.js +4 -0
- package/bundle/{chunk-qb35hqm4.js → chunk-x4pdpka8.js} +1 -1
- package/bundle/{chunk-vm58fkrv.js → chunk-xd3xc1vv.js} +1 -1
- package/bundle/{chunk-f77nxt23.js → chunk-xjpvv3vp.js} +2 -2
- package/bundle/chunk-xnhvt98g.js +5 -0
- package/bundle/{chunk-64s7vfj7.js → chunk-xny5ecn0.js} +2 -2
- package/bundle/chunk-xwgc2pw7.js +28 -0
- package/bundle/chunk-xxrtr6sd.js +2 -0
- package/bundle/chunk-y287zwkr.js +10 -0
- package/bundle/{chunk-ezrskm25.js → chunk-y3dfk6n5.js} +1 -1
- package/bundle/{chunk-t01bhw5h.js → chunk-y4e7e42x.js} +3 -3
- package/bundle/chunk-y8eggnrr.js +2 -0
- package/bundle/{chunk-9xvctnjr.js → chunk-yajd975f.js} +1 -1
- package/bundle/chunk-yck5h49c.js +2 -0
- package/bundle/{chunk-8yr682pv.js → chunk-yd2emszh.js} +2 -2
- package/bundle/{chunk-p9zrk16q.js → chunk-yd8bzhv6.js} +1 -1
- package/bundle/{chunk-24rw1br0.js → chunk-yerfyz4w.js} +1 -1
- package/bundle/{chunk-jxg15t11.js → chunk-yg0pfngv.js} +1 -1
- package/bundle/{chunk-y1b2h15z.js → chunk-ypcc3cnb.js} +1 -1
- package/bundle/{chunk-w24660y4.js → chunk-yqb6cfed.js} +2 -2
- package/bundle/{chunk-shwjjrj8.js → chunk-yr35q7q1.js} +1 -1
- package/bundle/{chunk-rcyhqkv5.js → chunk-yrfq22a5.js} +1 -1
- package/bundle/{chunk-gg7bg3ek.js → chunk-yvjke593.js} +1 -1
- package/bundle/{chunk-zfnbk5gy.js → chunk-ywkvq7zb.js} +1 -1
- package/bundle/{chunk-p3rp99na.js → chunk-yx1h0b5v.js} +1 -1
- package/bundle/chunk-yxeja9kg.js +2 -0
- package/bundle/{chunk-mzbr0m2v.js → chunk-yz0pwv2m.js} +1 -1
- package/bundle/{chunk-q81m4m9z.js → chunk-z2h1gxyx.js} +1 -1
- package/bundle/{chunk-qqne79vp.js → chunk-zdzxsyxs.js} +2 -2
- package/bundle/{chunk-yzh4rmrt.js → chunk-zek5c15t.js} +1 -1
- package/bundle/{chunk-8dxdeksr.js → chunk-zfd70p01.js} +1 -1
- package/bundle/{chunk-41x11r2s.js → chunk-zqkv8796.js} +1 -1
- package/bundle/chunk-ztn2jv26.js +11 -0
- 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-092bx2yw.js +0 -2
- package/bundle/chunk-0j6dhrew.js +0 -2
- package/bundle/chunk-0jrgk6vk.js +0 -2
- package/bundle/chunk-0qn52zsd.js +0 -2
- package/bundle/chunk-10accb7b.js +0 -2
- package/bundle/chunk-13kpdfr7.js +0 -2
- package/bundle/chunk-15s8zwgf.js +0 -2
- package/bundle/chunk-1bx2sjn6.js +0 -11
- package/bundle/chunk-1kgyfja6.js +0 -2
- package/bundle/chunk-4kqdzdv5.js +0 -3
- package/bundle/chunk-4tbqsrsn.js +0 -2
- package/bundle/chunk-53kns5wy.js +0 -2
- package/bundle/chunk-559ek1ym.js +0 -2
- package/bundle/chunk-7cbj28fp.js +0 -2
- package/bundle/chunk-8yn64y27.js +0 -2
- package/bundle/chunk-8ywa7az5.js +0 -2
- package/bundle/chunk-8ywdddts.js +0 -2
- package/bundle/chunk-8zmreqxx.js +0 -2
- package/bundle/chunk-92zjark4.js +0 -2
- package/bundle/chunk-9yakc5yv.js +0 -28
- package/bundle/chunk-aq28ejhv.js +0 -2
- package/bundle/chunk-b0x888w9.js +0 -2
- package/bundle/chunk-b10px5g4.js +0 -2
- package/bundle/chunk-b1qhpxee.js +0 -2
- package/bundle/chunk-bcs2gvmp.js +0 -2
- package/bundle/chunk-bs020a3x.js +0 -2
- package/bundle/chunk-d72rty3t.js +0 -2
- package/bundle/chunk-dj951pms.js +0 -2
- package/bundle/chunk-dp6zktka.js +0 -2
- package/bundle/chunk-dvqdtdza.js +0 -2
- package/bundle/chunk-dx7h5r8j.js +0 -2
- package/bundle/chunk-e88wd9ex.js +0 -2
- package/bundle/chunk-ebabnv33.js +0 -3
- package/bundle/chunk-ebdpg3cn.js +0 -2
- package/bundle/chunk-ec7pznsp.js +0 -2
- package/bundle/chunk-et7kz7kx.js +0 -2
- package/bundle/chunk-eyc6tb5h.js +0 -2
- package/bundle/chunk-eywryd3k.js +0 -2
- package/bundle/chunk-eze57bty.js +0 -2
- package/bundle/chunk-fa47vzfc.js +0 -2
- package/bundle/chunk-fe397ph0.js +0 -2
- package/bundle/chunk-fr75ytdr.js +0 -2
- package/bundle/chunk-fw2tnbt6.js +0 -2
- package/bundle/chunk-fwr2qgqb.js +0 -2
- package/bundle/chunk-g204pt98.js +0 -2
- package/bundle/chunk-gcgmwqhh.js +0 -2
- package/bundle/chunk-gvtjxg0d.js +0 -2
- package/bundle/chunk-gw36mrg4.js +0 -2
- package/bundle/chunk-h36qec67.js +0 -2
- package/bundle/chunk-h9gtymfm.js +0 -2
- package/bundle/chunk-h9qn35pn.js +0 -2
- package/bundle/chunk-hhjkezfz.js +0 -2
- package/bundle/chunk-hnz570f9.js +0 -3
- package/bundle/chunk-j21dnncc.js +0 -4
- package/bundle/chunk-ja18tvc7.js +0 -2
- package/bundle/chunk-jr2q5295.js +0 -3
- package/bundle/chunk-kwzawx7r.js +0 -2
- package/bundle/chunk-m0mek3es.js +0 -2
- package/bundle/chunk-m31d2n6h.js +0 -2
- package/bundle/chunk-n14qktbg.js +0 -2
- package/bundle/chunk-nr4q9fv7.js +0 -2
- package/bundle/chunk-nzzsj54n.js +0 -2
- package/bundle/chunk-p19qfw59.js +0 -2
- package/bundle/chunk-p2yxj9s4.js +0 -2
- package/bundle/chunk-p8czsxp0.js +0 -3
- package/bundle/chunk-pq3qwxa8.js +0 -2
- package/bundle/chunk-ps9p14y6.js +0 -2
- package/bundle/chunk-q7rt76qw.js +0 -10
- package/bundle/chunk-qagc6v17.js +0 -2
- package/bundle/chunk-qc0zhbhm.js +0 -2
- package/bundle/chunk-qp9y0g73.js +0 -3
- package/bundle/chunk-r0ewmh6f.js +0 -2
- package/bundle/chunk-r3df289z.js +0 -2
- package/bundle/chunk-r78kfhvz.js +0 -2
- package/bundle/chunk-rebsz3bj.js +0 -2
- package/bundle/chunk-rph5xswc.js +0 -2
- package/bundle/chunk-schtpyjs.js +0 -2
- package/bundle/chunk-t0jjes17.js +0 -2
- package/bundle/chunk-t5tfppwv.js +0 -17
- package/bundle/chunk-t8rke5fr.js +0 -8
- package/bundle/chunk-tf4xwqz7.js +0 -2
- package/bundle/chunk-tqazneg6.js +0 -2
- package/bundle/chunk-tzg4z74d.js +0 -2
- package/bundle/chunk-v8ksjgc3.js +0 -2
- package/bundle/chunk-v8vcwx23.js +0 -2
- package/bundle/chunk-vdpd4akk.js +0 -5
- package/bundle/chunk-vftqwdpg.js +0 -3
- package/bundle/chunk-vg41rtdy.js +0 -2
- package/bundle/chunk-w57j3pgz.js +0 -616
- package/bundle/chunk-w6rf2knb.js +0 -2
- package/bundle/chunk-wh7r96t3.js +0 -2
- package/bundle/chunk-wnjqaxze.js +0 -2
- package/bundle/chunk-xfz698bh.js +0 -2
- package/bundle/chunk-xxj3sgd5.js +0 -2
- package/bundle/chunk-yfp9y71y.js +0 -2
- package/bundle/chunk-yg9c1v8v.js +0 -2
- package/bundle/chunk-yjjh339w.js +0 -2
- package/bundle/chunk-yt6vd7a5.js +0 -2
- package/bundle/chunk-yzq3c3dq.js +0 -2
- package/bundle/chunk-z1j25911.js +0 -2
- package/bundle/chunk-z29ahthm.js +0 -2
- package/bundle/chunk-zgre4gc2.js +0 -2
- package/bundle/chunk-zthkjx33.js +0 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Id as q,Jd as K,Kd as D,Nd as L,Od as N}from"./chunk-p9mj4zyk.js";import"./chunk-ta7mfkms.js";import{Uf as B}from"./chunk-t1jgx17a.js";import{Zg as G}from"./chunk-3kn57y8d.js";import"./chunk-nb86kh94.js";import"./chunk-9rxyq6f9.js";import"./chunk-5az84brc.js";import"./chunk-94qhpkfx.js";import"./chunk-c1g8n10t.js";import"./chunk-a2dz9nqh.js";import"./chunk-vhe92p7a.js";import"./chunk-kc1xmcc9.js";import{wl as C}from"./chunk-jjjs8p0t.js";import"./chunk-xnhvt98g.js";import"./chunk-hpa7e9va.js";import"./chunk-y287zwkr.js";import"./chunk-qeg0jnxq.js";import"./chunk-9eg2ytjd.js";import"./chunk-rk2bk4s7.js";import"./chunk-e586sjb0.js";import"./chunk-b50t4jc5.js";import"./chunk-zdzxsyxs.js";import"./chunk-xny5ecn0.js";import"./chunk-7myg8076.js";import"./chunk-my3cswnp.js";import"./chunk-4mvg7jt1.js";import"./chunk-cqtkxwd8.js";import"./chunk-wf4x5cjc.js";import"./chunk-mswx4k75.js";import"./chunk-vqpfpmha.js";import"./chunk-vm1ek7yf.js";import"./chunk-fd7fmvyw.js";import"./chunk-1sfcxdbw.js";import"./chunk-bgng3rdj.js";import"./chunk-qkh8697x.js";import"./chunk-qg9bt0kx.js";import"./chunk-pfkm3j8g.js";import"./chunk-hmznf0ax.js";import"./chunk-qf1dqzra.js";import"./chunk-03mbn7nj.js";import"./chunk-gr4bctqj.js";import"./chunk-732yr6qq.js";import"./chunk-73fz0cf4.js";import"./chunk-9nn4jpb7.js";import{us as J}from"./chunk-sh76e256.js";import"./chunk-0z1cxvk1.js";import"./chunk-x3afqfww.js";import"./chunk-cbmwhvxw.js";import"./chunk-9etpppyv.js";import"./chunk-9ea1n338.js";import"./chunk-ngvp6zc2.js";import"./chunk-1p6jjrea.js";import"./chunk-ks1cs80p.js";import"./chunk-a92hh67a.js";import"./chunk-qhnpq5gb.js";import"./chunk-f83wv08n.js";var X={command:"upgrade [target]",describe:"upgrade qitqode to the latest or a specific version",builder:(z)=>{return z.positional("target",{describe:"version to upgrade to, for ex '0.1.48' or 'v0.1.48'",type:"string"}).option("method",{alias:"m",describe:"installation method to use",type:"string",choices:["curl","npm","pnpm","bun","brew","choco","scoop"]})},handler:async(z)=>{B.empty(),B.println(B.logo(" ")),B.empty(),K("Upgrade");let O=await G.runPromise(C.Service.use((j)=>j.method())),E=z.method??O;if(E==="unknown"){if(q.error(`qitqode is installed to ${process.execPath} and may be managed by a package manager`),!await N({message:"Install anyways?",options:[{label:"Yes",value:!0},{label:"No",value:!1}],initialValue:!1})){D("Done");return}}q.info("Using method: "+E);let F=z.target?z.target.replace(/^v/,""):await G.runPromise(C.Service.use((j)=>j.latest()));if(J===F){q.warn(`qitqode upgrade skipped: ${F} is already installed`),D("Done");return}q.info(`From ${J} \u2192 ${F}`);let H=L();H.start("Upgrading...");let x=await G.runPromise(C.Service.use((j)=>j.upgrade(E,F))).catch((j)=>j);if(x){if(H.stop("Upgrade failed",1),x instanceof C.UpgradeFailedError)if(E==="choco"&&x.stderr.includes("not running from an elevated command shell"))q.error("Please run the terminal as Administrator and try again");else q.error(x.stderr);else if(x instanceof Error)q.error(x.message);D("Done");return}H.stop("Upgrade complete"),D("Done")}};export{X as UpgradeCommand};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-f83wv08n.js";var D=Object.defineProperty,x=(J,Q,W)=>(Q in J)?D(J,Q,{enumerable:!0,configurable:!0,writable:!0,value:W}):J[Q]=W,B=(J,Q,W)=>x(J,typeof Q!=="symbol"?Q+"":Q,W),I="CF_TEMP_TOKEN",L=[{name:"openai",regex:/^https:\/\/api\.openai\.com\//,transformEndpoint:(J)=>J.replace(/^https:\/\/api\.openai\.com\//,"")},{name:"deepseek",regex:/^https:\/\/api\.deepseek\.com\//,transformEndpoint:(J)=>J.replace(/^https:\/\/api\.deepseek\.com\//,"")},{name:"anthropic",regex:/^https:\/\/api\.anthropic\.com\//,transformEndpoint:(J)=>J.replace(/^https:\/\/api\.anthropic\.com\//,""),headerKey:"x-api-key"},{name:"google-ai-studio",regex:/^https:\/\/generativelanguage\.googleapis\.com\//,headerKey:"x-goog-api-key",transformEndpoint:(J)=>J.replace(/^https:\/\/generativelanguage\.googleapis\.com\//,"")},{name:"google-vertex-ai",regex:/aiplatform\.googleapis\.com/,transformEndpoint:(J)=>J.replace(/https:\/\/(.*)[-]?aiplatform\.googleapis\.com\//,"")},{name:"grok",regex:/^https:\/\/api\.x\.ai\//,transformEndpoint:(J)=>J.replace(/^https:\/\/api\.x\.ai\//,"")},{name:"mistral",regex:/^https:\/\/api\.mistral\.ai\//,transformEndpoint:(J)=>J.replace(/^https:\/\/api\.mistral\.ai\//,"")},{name:"perplexity-ai",regex:/^https:\/\/api\.perplexity\.ai\//,transformEndpoint:(J)=>J.replace(/^https:\/\/api\.perplexity\.ai\//,"")},{name:"replicate",regex:/^https:\/\/api\.replicate\.com\//,transformEndpoint:(J)=>J.replace(/^https:\/\/api\.replicate\.com\//,"")},{name:"groq",regex:/^https:\/\/api\.groq\.com\/openai\/v1\//,transformEndpoint:(J)=>J.replace(/^https:\/\/api\.groq\.com\/openai\/v1\//,"")},{name:"google-vertex-ai",regex:/^https:\/\/(?:[a-z0-9]+-)*aiplatform\.googleapis\.com\//,transformEndpoint:(J)=>J.replace(/^https:\/\/(?:[a-z0-9]+-)*aiplatform\.googleapis\.com\//,""),headerKey:"authorization"},{name:"azure-openai",regex:/^https:\/\/(?<resource>[^.]+)\.openai\.azure\.com\/openai\/deployments\/(?<deployment>[^/]+)\/(?<rest>.*)$/,transformEndpoint:(J)=>{let Q=J.match(/^https:\/\/(?<resource>[^.]+)\.openai\.azure\.com\/openai\/deployments\/(?<deployment>[^/]+)\/(?<rest>.*)$/);if(!Q||!Q.groups)return J;let{resource:W,deployment:X,rest:Z}=Q.groups;if(!W||!X||!Z)throw Error("Failed to parse Azure OpenAI endpoint URL.");return`${W}/${X}/${Z}`},headerKey:"api-key"},{name:"openrouter",regex:/^https:\/\/openrouter\.ai\/api\//,transformEndpoint:(J)=>J.replace(/^https:\/\/openrouter\.ai\/api\//,"")},{name:"compat",regex:/^https:\/\/gateway\.ai\.cloudflare\.com\/v1\/compat\//,transformEndpoint:(J)=>J.replace(/^https:\/\/gateway\.ai\.cloudflare\.com\/v1\/compat\//,"")}],z=class extends Error{},P=class extends Error{},T=class extends Error{};async function U(J){return await new Response(J).json()}var H=class{constructor(J,Q){B(this,"specificationVersion","v3"),B(this,"defaultObjectGenerationMode","json"),B(this,"supportedUrls",{}),B(this,"models"),B(this,"config"),this.models=J,this.config=Q}get modelId(){if(!this.models[0])throw Error("models cannot be empty array");return this.models[0].modelId}get provider(){if(!this.models[0])throw Error("models cannot be empty array");return this.models[0].provider}async processModelRequest(J,Q){let W=[];for(let S of this.models){if(!S.config||!Object.keys(S.config).includes("fetch"))throw Error(`Sorry, but provider "${S.provider}" is currently not supported, please open a issue in the github repo!`);S.config.fetch=(V,$)=>{throw W.push({modelProvider:S.provider,request:$,url:V}),new z("Stopping provider execution...")};try{await S[Q](J)}catch(V){if(!(V instanceof z))throw V}}let X=await Promise.all(W.map(async(S)=>{let V=null;for(let R of L)if(R.regex.test(S.url))V=R;if(!V)throw Error(`Sorry, but provider "${S.modelProvider}" is currently not supported, please open a issue in the github repo!`);if(!S.request.body)throw Error("Ai Gateway provider received an unexpected empty body");let $=V.headerKey??"authorization";if(("get"in S.request.headers?S.request.headers.get($):S.request.headers[$])?.indexOf(I)!==-1)if("delete"in S.request.headers)S.request.headers.delete($);else delete S.request.headers[$];return{endpoint:V.transformEndpoint(S.url),headers:S.request.headers,provider:V.name,query:await U(S.request.body)}})),Z=N(this.config.options??{}),Y;if("binding"in this.config){let S=X.map((V)=>({...V,headers:{...V.headers??{},...Object.fromEntries(Z.entries())}}));Y=await this.config.binding.run(S,{signal:J.abortSignal})}else Z.set("Content-Type","application/json"),Z.set("cf-aig-authorization",`Bearer ${this.config.apiKey}`),Y=await fetch(`https://gateway.ai.cloudflare.com/v1/${this.config.accountId}/${this.config.gateway}`,{body:JSON.stringify(X),headers:Z,method:"POST",signal:J.abortSignal});if(Y.status===400){let V=await Y.clone().json();if(V.success===!1&&V.error&&V.error.length>0&&V.error[0]?.code===2001)throw new P("This AI gateway does not exist")}else if(Y.status===401){let V=await Y.clone().json();if(V.success===!1&&V.error&&V.error.length>0&&V.error[0]?.code===2009)throw new T("Your AI Gateway has authentication active, but you didn't provide a valid apiKey")}let K=Number.parseInt(Y.headers.get("cf-aig-step")??"0",10);if(!this.models[K])throw Error("Unexpected AI Gateway Error");return this.models[K].config={...this.models[K].config,fetch:(S,V)=>Y},this.models[K][Q](J)}async doStream(J){return this.processModelRequest(J,"doStream")}async doGenerate(J){return this.processModelRequest(J,"doGenerate")}};function f(J){let Q=(X)=>{return new H(Array.isArray(X)?X:[X],J)},W=(X)=>Q(X);return W.chat=Q,W}function N(J){let Q=new Headers;if(J.skipCache===!0)Q.set("cf-skip-cache","true");if(J.cacheTtl)Q.set("cf-cache-ttl",J.cacheTtl.toString());if(J.metadata)Q.set("cf-aig-metadata",JSON.stringify(J.metadata));if(J.cacheKey)Q.set("cf-aig-cache-key",J.cacheKey);if(J.collectLog!==void 0)Q.set("cf-aig-collect-log",J.collectLog===!0?"true":"false");if(J.eventId!==void 0)Q.set("cf-aig-event-id",J.eventId);if(J.requestTimeoutMs!==void 0)Q.set("cf-aig-request-timeout",J.requestTimeoutMs.toString());if(J.retries!==void 0){if(J.retries.maxAttempts!==void 0)Q.set("cf-aig-max-attempts",J.retries.maxAttempts.toString());if(J.retries.retryDelayMs!==void 0)Q.set("cf-aig-retry-delay",J.retries.retryDelayMs.toString());if(J.retries.backoff!==void 0)Q.set("cf-aig-backoff",J.retries.backoff)}return Q}export{N as parseAiGatewayOptions,f as createAiGateway,T as AiGatewayUnauthorizedError,z as AiGatewayInternalFetchError,P as AiGatewayDoesNotExist,H as AiGatewayChatLanguageModel};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{MO as y,PO as C}from"./chunk-f83wv08n.js";var h0=y((c$)=>{c$.HttpAuthLocation=void 0;(function(h){h.HEADER="header",h.QUERY="query"})(c$.HttpAuthLocation||(c$.HttpAuthLocation={}));c$.HttpApiKeyAuthLocation=void 0;(function(h){h.HEADER="header",h.QUERY="query"})(c$.HttpApiKeyAuthLocation||(c$.HttpApiKeyAuthLocation={}));c$.EndpointURLScheme=void 0;(function(h){h.HTTP="http",h.HTTPS="https"})(c$.EndpointURLScheme||(c$.EndpointURLScheme={}));c$.AlgorithmId=void 0;(function(h){h.MD5="md5",h.CRC32="crc32",h.CRC32C="crc32c",h.SHA1="sha1",h.SHA256="sha256"})(c$.AlgorithmId||(c$.AlgorithmId={}));var F$=(h)=>{let $=[];if(h.sha256!==void 0)$.push({algorithmId:()=>c$.AlgorithmId.SHA256,checksumConstructor:()=>h.sha256});if(h.md5!=null)$.push({algorithmId:()=>c$.AlgorithmId.MD5,checksumConstructor:()=>h.md5});return{addChecksumAlgorithm(T){$.push(T)},checksumAlgorithms(){return $}}},s$=(h)=>{let $={};return h.checksumAlgorithms().forEach((T)=>{$[T.algorithmId()]=T.checksumConstructor()}),$},S$=(h)=>{return F$(h)},j$=(h)=>{return s$(h)};c$.FieldPosition=void 0;(function(h){h[h.HEADER=0]="HEADER",h[h.TRAILER=1]="TRAILER"})(c$.FieldPosition||(c$.FieldPosition={}));var C$="__smithy_context";c$.IniSectionType=void 0;(function(h){h.PROFILE="profile",h.SSO_SESSION="sso-session",h.SERVICES="services"})(c$.IniSectionType||(c$.IniSectionType={}));c$.RequestHandlerProtocol=void 0;(function(h){h.HTTP_0_9="http/0.9",h.HTTP_1_0="http/1.0",h.TDS_8_0="tds/8.0"})(c$.RequestHandlerProtocol||(c$.RequestHandlerProtocol={}));c$.SMITHY_CONTEXT_KEY=C$;c$.getDefaultClientConfiguration=S$;c$.resolveDefaultRuntimeConfig=j$});var m=y((r$)=>{var c1=h0(),p$=(h)=>h[c1.SMITHY_CONTEXT_KEY]||(h[c1.SMITHY_CONTEXT_KEY]={});class Z0{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(h){this.method=h.method||"GET",this.hostname=h.hostname||"localhost",this.port=h.port,this.query=h.query||{},this.headers=h.headers||{},this.body=h.body,this.protocol=h.protocol?h.protocol.slice(-1)!==":"?`${h.protocol}:`:h.protocol:"https:",this.path=h.path?h.path.charAt(0)!=="/"?`/${h.path}`:h.path:"/",this.username=h.username,this.password=h.password,this.fragment=h.fragment}static clone(h){let $=new Z0({...h,headers:{...h.headers}});if($.query)$.query=g$($.query);return $}static isInstance(h){if(!h)return!1;let $=h;return"method"in $&&"protocol"in $&&"hostname"in $&&"path"in $&&typeof $.query==="object"&&typeof $.headers==="object"}clone(){return Z0.clone(this)}}function g$(h){return Object.keys(h).reduce(($,T)=>{let P=h[T];return{...$,[T]:Array.isArray(P)?[...P]:P}},{})}class b1{statusCode;reason;headers;body;constructor(h){this.statusCode=h.statusCode,this.reason=h.reason,this.headers=h.headers||{},this.body=h.body}static isInstance(h){if(!h)return!1;let $=h;return typeof $.statusCode==="number"&&typeof $.headers==="object"}}var m$=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),y1=(h,$=!1)=>{if(!$)return m$.test(h);let T=h.split(".");for(let P of T)if(!y1(P))return!1;return!0};function d$(h){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(h)}var v$=(h)=>{if(typeof h==="function")return h;let $=Promise.resolve(h);return()=>$};function k1(h){let $={};if(h=h.replace(/^\?/,""),h)for(let T of h.split("&")){let[P,w=null]=T.split("=");if(P=decodeURIComponent(P),w)w=decodeURIComponent(w);if(!(P in $))$[P]=w;else if(Array.isArray($[P]))$[P].push(w);else $[P]=[$[P],w]}return $}var R0=(h)=>{if(typeof h==="string")return R0(new URL(h));let{hostname:$,pathname:T,port:P,protocol:w,search:I}=h,A;if(I)A=k1(I);return{hostname:$,port:P?parseInt(P):void 0,protocol:w,path:T,query:A}},t$=(h)=>{if(typeof h==="object"){if("url"in h){let $=R0(h.url);if(h.headers){$.headers={};for(let T in h.headers)$.headers[T.toLowerCase()]=h.headers[T].join(", ")}return $}return h}return R0(h)};r$.HttpRequest=Z0;r$.HttpResponse=b1;r$.getSmithyContext=p$;r$.isValidHostLabel=y1;r$.isValidHostname=d$;r$.normalizeProvider=v$;r$.parseQueryString=k1;r$.parseUrl=R0;r$.toEndpointV1=t$});var d1=y((GT)=>{var H0=m(),q0=(h)=>{if(typeof h==="function")return h();return h},o0=(h,$,T,P,w)=>({name:$,namespace:h,traits:T,input:P,output:w}),TT=(h)=>($,T)=>async(P)=>{let{response:w}=await $(P),{operationSchema:I}=H0.getSmithyContext(T),[,A,U,_,f,Y]=I??[];try{let M=await h.protocol.deserializeResponse(o0(A,U,_,f,Y),{...h,...T},w);return{response:w,output:M}}catch(M){if(Object.defineProperty(M,"$response",{value:w,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in M)){try{M.message+=`
|
|
3
3
|
Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`}catch(G){if(!T.logger||T.logger?.constructor?.name==="NoOpLogger")console.warn("Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.");else T.logger?.warn?.("Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.")}if(typeof M.$responseBodyText<"u"){if(M.$response)M.$response.body=M.$responseBodyText}try{if(H0.HttpResponse.isInstance(w)){let{headers:G={},statusCode:V}=w,Z=Object.entries(G);M.$metadata={httpStatusCode:V,requestId:i0(/^x-[\w-]+-request-?id$/,Z),extendedRequestId:i0(/^x-[\w-]+-id-2$/,Z),cfId:i0(/^x-[\w-]+-cf-id$/,Z)}}}catch(G){}}throw M}},i0=(h,$)=>{return($.find(([T])=>{return T.match(h)})||[void 0,void 0])[1]},PT=(h)=>($,T)=>async(P)=>{let{operationSchema:w}=H0.getSmithyContext(T),[,I,A,U,_,f]=w??[],Y=T.endpointV2?async()=>H0.toEndpointV1(T.endpointV2):h.endpoint,M=await h.protocol.serializeRequest(o0(I,A,U,_,f),P.input,{...h,...T,endpoint:Y});return $({...P,request:M})},p1={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},g1={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function wT(h){return{applyToStack:($)=>{$.add(PT(h),g1),$.add(TT(h),p1),h.protocol.setSerdeContext(h)}}}class E{name;namespace;traits;static assign(h,$){return Object.assign(h,$)}static[Symbol.hasInstance](h){let $=this.prototype.isPrototypeOf(h);if(!$&&typeof h==="object"&&h!==null)return h.symbol===this.symbol;return $}getName(){return this.namespace+"#"+this.name}}class x0 extends E{static symbol=Symbol.for("@smithy/lis");name;traits;valueSchema;symbol=x0.symbol}var IT=(h,$,T,P)=>E.assign(new x0,{name:$,namespace:h,traits:T,valueSchema:P});class W0 extends E{static symbol=Symbol.for("@smithy/map");name;traits;keySchema;valueSchema;symbol=W0.symbol}var AT=(h,$,T,P,w)=>E.assign(new W0,{name:$,namespace:h,traits:T,keySchema:P,valueSchema:w});class D0 extends E{static symbol=Symbol.for("@smithy/ope");name;traits;input;output;symbol=D0.symbol}var UT=(h,$,T,P,w)=>E.assign(new D0,{name:$,namespace:h,traits:T,input:P,output:w});class w0 extends E{static symbol=Symbol.for("@smithy/str");name;traits;memberNames;memberList;symbol=w0.symbol}var _T=(h,$,T,P,w)=>E.assign(new w0,{name:$,namespace:h,traits:T,memberNames:P,memberList:w});class L0 extends w0{static symbol=Symbol.for("@smithy/err");ctor;symbol=L0.symbol}var fT=(h,$,T,P,w,I)=>E.assign(new L0,{name:$,namespace:h,traits:T,memberNames:P,memberList:w,ctor:null}),O0=[];function P0(h){if(typeof h==="object")return h;if(h=h|0,O0[h])return O0[h];let $={},T=0;for(let P of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])if((h>>T++&1)===1)$[P]=1;return O0[h]=$}var $0={it:Symbol.for("@smithy/nor-struct-it"),ns:Symbol.for("@smithy/ns")},E0=[],N0={};class B{ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=B.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(h,$){this.ref=h,this.memberName=$;let T=[],P=h,w=h;this._isMemberSchema=!1;while(l0(P))T.push(P[1]),P=P[0],w=q0(P),this._isMemberSchema=!0;if(T.length>0){this.memberTraits={};for(let I=T.length-1;I>=0;--I){let A=T[I];Object.assign(this.memberTraits,P0(A))}}else this.memberTraits=0;if(w instanceof B){let I=this.memberTraits;Object.assign(this,w),this.memberTraits=Object.assign({},I,w.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=$??w.memberName;return}if(this.schema=q0(w),m1(this.schema))this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3];else this.name=this.memberName??String(w),this.traits=0;if(this._isMemberSchema&&!$)throw Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](h){let $=this.prototype.isPrototypeOf(h);if(!$&&typeof h==="object"&&h!==null)return h.symbol===this.symbol;return $}static of(h){let $=typeof h==="function"||typeof h==="object"&&h!==null;if(typeof h==="number"){if(E0[h])return E0[h]}else if(typeof h==="string"){if(N0[h])return N0[h]}else if($){if(h[$0.ns])return h[$0.ns]}let T=q0(h);if(T instanceof B)return T;if(l0(T)){let[w,I]=T;if(w instanceof B)return Object.assign(w.getMergedTraits(),P0(I)),w;throw Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(h,null,2)}.`)}let P=new B(T);if($)return h[$0.ns]=P;if(typeof T==="string")return N0[T]=P;if(typeof T==="number")return E0[T]=P;return P}getSchema(){let h=this.schema;if(Array.isArray(h)&&h[0]===0)return h[4];return h}getName(h=!1){let{name:$}=this;return!h&&$&&$.includes("#")?$.split("#")[1]:$||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){let h=this.getSchema();return typeof h==="number"?h>=64&&h<128:h[0]===1}isMapSchema(){let h=this.getSchema();return typeof h==="number"?h>=128&&h<=255:h[0]===2}isStructSchema(){let h=this.getSchema();if(typeof h!=="object")return!1;let $=h[0];return $===3||$===-3||$===4}isUnionSchema(){let h=this.getSchema();if(typeof h!=="object")return!1;return h[0]===4}isBlobSchema(){let h=this.getSchema();return h===21||h===42}isTimestampSchema(){let h=this.getSchema();return typeof h==="number"&&h>=4&&h<=7}isUnitSchema(){return this.getSchema()==="unit"}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){let{streaming:h}=this.getMergedTraits();return!!h||this.getSchema()===42}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return P0(this.memberTraits)}getOwnTraits(){return P0(this.traits)}getKeySchema(){let[h,$]=[this.isDocumentSchema(),this.isMapSchema()];if(!h&&!$)throw Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);let T=this.getSchema(),P=h?15:T[4]??0;return T0([P,0],"key")}getValueSchema(){let h=this.getSchema(),[$,T,P]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],w=typeof h==="number"?63&h:h&&typeof h==="object"&&(T||P)?h[3+h[0]]:$?15:void 0;if(w!=null)return T0([w,0],T?"value":"member");throw Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(h){let $=this.getSchema();if(this.isStructSchema()&&$[4].includes(h)){let T=$[4].indexOf(h),P=$[5][T];return T0(l0(P)?P:[P,0],h)}if(this.isDocumentSchema())return T0([15,0],h);throw Error(`@smithy/core/schema - ${this.getName(!0)} has no member=${h}.`)}getMemberSchemas(){let h={};try{for(let[$,T]of this.structIterator())h[$]=T}catch($){}return h}getEventStreamMember(){if(this.isStructSchema()){for(let[h,$]of this.structIterator())if($.isStreaming()&&$.isStructSchema())return h}return""}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw Error("@smithy/core/schema - cannot iterate non-struct schema.");let h=this.getSchema(),$=h[4].length,T=h[$0.it];if(T&&$===T.length){yield*T;return}T=Array($);for(let P=0;P<$;++P){let w=h[4][P],I=T0([h[5][P],0],w);yield T[P]=[w,I]}h[$0.it]=T}}function T0(h,$){if(h instanceof B)return Object.assign(h,{memberName:$,_isMemberSchema:!0});return new B(h,$)}var l0=(h)=>Array.isArray(h)&&h.length===2,m1=(h)=>Array.isArray(h)&&h.length>=5;class I0 extends E{static symbol=Symbol.for("@smithy/sim");name;schemaRef;traits;symbol=I0.symbol}var MT=(h,$,T,P)=>E.assign(new I0,{name:$,namespace:h,traits:P,schemaRef:T}),YT=(h,$,T,P)=>E.assign(new I0,{name:$,namespace:h,traits:T,schemaRef:P}),XT={BLOB:21,STREAMING_BLOB:42,BOOLEAN:2,STRING:0,NUMERIC:1,BIG_INTEGER:17,BIG_DECIMAL:19,DOCUMENT:15,TIMESTAMP_DEFAULT:4,TIMESTAMP_DATE_TIME:5,TIMESTAMP_HTTP_DATE:6,TIMESTAMP_EPOCH_SECONDS:7,LIST_MODIFIER:64,MAP_MODIFIER:128};class K{namespace;schemas;exceptions;static registries=new Map;constructor(h,$=new Map,T=new Map){this.namespace=h,this.schemas=$,this.exceptions=T}static for(h){if(!K.registries.has(h))K.registries.set(h,new K(h));return K.registries.get(h)}copyFrom(h){let{schemas:$,exceptions:T}=this;for(let[P,w]of h.schemas)if(!$.has(P))$.set(P,w);for(let[P,w]of h.exceptions)if(!T.has(P))T.set(P,w)}register(h,$){let T=this.normalizeShapeId(h);for(let P of[this,K.for(T.split("#")[0])])P.schemas.set(T,$)}getSchema(h){let $=this.normalizeShapeId(h);if(!this.schemas.has($)){if(!h.includes("#")){let T="#"+h,P=[];for(let[w,I]of this.schemas.entries())if(w.endsWith(T))P.push(I);if(P.length===1)return P[0]}throw Error(`@smithy/core/schema - schema not found for ${$}`)}return this.schemas.get($)}registerError(h,$){let T=h,P=T[1];for(let w of[this,K.for(P)])w.schemas.set(P+"#"+T[2],T),w.exceptions.set(T,$)}getErrorCtor(h){let $=h;if(this.exceptions.has($))return this.exceptions.get($);return K.for($[1]).exceptions.get($)}getBaseException(){for(let h of this.exceptions.keys())if(Array.isArray(h)){let[,$,T]=h,P=$+"#"+T;if(P.startsWith("smithy.ts.sdk.synthetic.")&&P.endsWith("ServiceException"))return h}return}find(h){for(let $ of this.schemas.values())if(h($))return $;return}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(h){if(h.includes("#"))return h;return this.namespace+"#"+h}}GT.ErrorSchema=L0;GT.ListSchema=x0;GT.MapSchema=W0;GT.NormalizedSchema=B;GT.OperationSchema=D0;GT.SCHEMA=XT;GT.Schema=E;GT.SimpleSchema=I0;GT.StructureSchema=w0;GT.TypeRegistry=K;GT.deref=q0;GT.deserializerMiddlewareOption=p1;GT.error=fT;GT.getSchemaSerdePlugin=wT;GT.isStaticSchema=m1;GT.list=IT;GT.map=AT;GT.op=UT;GT.operation=o0;GT.serializerMiddlewareOption=g1;GT.sim=MT;GT.simAdapter=YT;GT.simpleSchemaCacheN=E0;GT.simpleSchemaCacheS=N0;GT.struct=_T;GT.traitsCache=O0;GT.translateTraits=P0});var $1=y((QP)=>{var u1=m(),A0=h0(),gT=d1(),k=(h,$)=>{let T=[];if(h)T.push(h);if($)for(let P of $)T.push(P);return T},j=(h,$)=>{return`${h||"anonymous"}${$&&$.length>0?` (a.k.a. ${$.join(",")})`:""}`},U0=()=>{let h=[],$=[],T=!1,P=new Set,w=(M)=>M.sort((X,G)=>v1[G.step]-v1[X.step]||t1[G.priority||"normal"]-t1[X.priority||"normal"]),I=(M)=>{let X=!1,G=(V)=>{let Z=k(V.name,V.aliases);if(Z.includes(M)){X=!0;for(let J of Z)P.delete(J);return!1}return!0};return h=h.filter(G),$=$.filter(G),X},A=(M)=>{let X=!1,G=(V)=>{if(V.middleware===M){X=!0;for(let Z of k(V.name,V.aliases))P.delete(Z);return!1}return!0};return h=h.filter(G),$=$.filter(G),X},U=(M)=>{return h.forEach((X)=>{M.add(X.middleware,{...X})}),$.forEach((X)=>{M.addRelativeTo(X.middleware,{...X})}),M.identifyOnResolve?.(Y.identifyOnResolve()),M},_=(M)=>{let X=[];return M.before.forEach((G)=>{if(G.before.length===0&&G.after.length===0)X.push(G);else X.push(..._(G))}),X.push(M),M.after.reverse().forEach((G)=>{if(G.before.length===0&&G.after.length===0)X.push(G);else X.push(..._(G))}),X},f=(M=!1)=>{let X=[],G=[],V={};return h.forEach((J)=>{let Q={...J,before:[],after:[]};for(let R of k(Q.name,Q.aliases))V[R]=Q;X.push(Q)}),$.forEach((J)=>{let Q={...J,before:[],after:[]};for(let R of k(Q.name,Q.aliases))V[R]=Q;G.push(Q)}),G.forEach((J)=>{if(J.toMiddleware){let Q=V[J.toMiddleware];if(Q===void 0){if(M)return;throw Error(`${J.toMiddleware} is not found when adding ${j(J.name,J.aliases)} middleware ${J.relation} ${J.toMiddleware}`)}if(J.relation==="after")Q.after.push(J);if(J.relation==="before")Q.before.push(J)}}),w(X).map(_).reduce((J,Q)=>{return J.push(...Q),J},[])},Y={add:(M,X={})=>{let{name:G,override:V,aliases:Z}=X,J={step:"initialize",priority:"normal",middleware:M,...X},Q=k(G,Z);if(Q.length>0){if(Q.some((R)=>P.has(R))){if(!V)throw Error(`Duplicate middleware name '${j(G,Z)}'`);for(let R of Q){let H=h.findIndex((a)=>a.name===R||a.aliases?.some((m0)=>m0===R));if(H===-1)continue;let N=h[H];if(N.step!==J.step||J.priority!==N.priority)throw Error(`"${j(N.name,N.aliases)}" middleware with ${N.priority} priority in ${N.step} step cannot be overridden by "${j(G,Z)}" middleware with ${J.priority} priority in ${J.step} step.`);h.splice(H,1)}}for(let R of Q)P.add(R)}h.push(J)},addRelativeTo:(M,X)=>{let{name:G,override:V,aliases:Z}=X,J={middleware:M,...X},Q=k(G,Z);if(Q.length>0){if(Q.some((R)=>P.has(R))){if(!V)throw Error(`Duplicate middleware name '${j(G,Z)}'`);for(let R of Q){let H=$.findIndex((a)=>a.name===R||a.aliases?.some((m0)=>m0===R));if(H===-1)continue;let N=$[H];if(N.toMiddleware!==J.toMiddleware||N.relation!==J.relation)throw Error(`"${j(N.name,N.aliases)}" middleware ${N.relation} "${N.toMiddleware}" middleware cannot be overridden by "${j(G,Z)}" middleware ${J.relation} "${J.toMiddleware}" middleware.`);$.splice(H,1)}}for(let R of Q)P.add(R)}$.push(J)},clone:()=>U(U0()),use:(M)=>{M.applyToStack(Y)},remove:(M)=>{if(typeof M==="string")return I(M);else return A(M)},removeByTag:(M)=>{let X=!1,G=(V)=>{let{tags:Z,name:J,aliases:Q}=V;if(Z&&Z.includes(M)){let R=k(J,Q);for(let H of R)P.delete(H);return X=!0,!1}return!0};return h=h.filter(G),$=$.filter(G),X},concat:(M)=>{let X=U(U0());return X.use(M),X.identifyOnResolve(T||X.identifyOnResolve()||(M.identifyOnResolve?.()??!1)),X},applyToStack:U,identify:()=>{return f(!0).map((M)=>{let X=M.step??M.relation+" "+M.toMiddleware;return j(M.name,M.aliases)+" - "+X})},identifyOnResolve(M){if(typeof M==="boolean")T=M;return T},resolve:(M,X)=>{for(let G of f().map((V)=>V.middleware).reverse())M=G(M,X);if(T)console.log(Y.identify());return M}};return Y},v1={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},t1={high:3,normal:2,low:1},mT=(h)=>()=>{throw Error(h)},dT=(h)=>()=>Promise.reject(h),K0=()=>{let h=new WeakSet;return($,T)=>{if(typeof T==="object"&&T!==null){if(h.has(T))return"[Circular]";h.add(T)}return T}},vT=(h)=>{return new Promise(($)=>setTimeout($,h*1000))},i1={minDelay:2,maxDelay:120};QP.WaiterState=void 0;(function(h){h.ABORTED="ABORTED",h.FAILURE="FAILURE",h.SUCCESS="SUCCESS",h.RETRY="RETRY",h.TIMEOUT="TIMEOUT"})(QP.WaiterState||(QP.WaiterState={}));var tT=(h)=>{if(h.state===QP.WaiterState.ABORTED){let $=Error(`${JSON.stringify({...h,reason:"Request was aborted"},K0())}`);throw $.name="AbortError",$}else if(h.state===QP.WaiterState.TIMEOUT){let $=Error(`${JSON.stringify({...h,reason:"Waiter has timed out"},K0())}`);throw $.name="TimeoutError",$}else if(h.state!==QP.WaiterState.SUCCESS)throw Error(`${JSON.stringify(h,K0())}`);return h},rT=async({minDelay:h,maxDelay:$,maxWaitTime:T,abortController:P,client:w,abortSignal:I},A,U)=>{let _={},[f,Y]=[h*1000,$*1000],M=0,X=Date.now()+T*1000,G=Date.now()+60000,V=!1;while(!0){if(M>0){let Q=iT(f,Y,M,X);if(P?.signal?.aborted||I?.aborted)return _["AbortController signal aborted."]|=0,_["AbortController signal aborted."]+=1,{state:QP.WaiterState.ABORTED,observedResponses:_};if(Date.now()+Q>X)return{state:QP.WaiterState.TIMEOUT,observedResponses:_};await vT(Q/1000)}let{state:Z,reason:J}=await U(w,A);if(J){let Q=uT(J);_[Q]|=0,_[Q]+=1}if(Z!==QP.WaiterState.RETRY)return{state:Z,reason:J,final:J,observedResponses:_};if(M+=1,!V&&Date.now()>=G)nT(_,w),V=!0}},nT=(h={},$)=>{let T=Object.keys(h),P=0;for(let A of T){let U=h[A]|0;if(A.startsWith("403:"))P+=U}let w=$?.config?.logger,I=typeof w?.warn==="function"&&!w.constructor?.name?.includes?.("NoOpLogger")?w:console;if(P>=3||T[T.length-1]?.startsWith("403:"))I.warn("@smithy/util-waiter WARN - 403 status code encountered during waiter polling.")},uT=(h)=>{let $=h?.$response?.statusCode??h?.$metadata?.httpStatusCode;if(h?.$responseBodyText)return`${$?$+": ":""}Deserialization error for body: ${h.$responseBodyText}`;if($){if(h?.$response||h?.message)return`${$??"Unknown"}: ${h?.message}`;return`${$}: OK`}return String(h?.message??JSON.stringify(h,K0())??"Unknown")},iT=(h,$,T,P)=>{let w=Math.log($/h)/Math.log(2)+1;if(T>w)return $;let I=h*2**(T-1),A=Math.min(I,$),U=lT(h,A);if(Date.now()+U>P){let _=P-Date.now();return Math.max(0,_-500)}return U},lT=(h,$)=>h+Math.random()*($-h),oT=(h)=>{if(h.maxWaitTime<=0)throw Error("WaiterConfiguration.maxWaitTime must be greater than 0");else if(h.minDelay<=0)throw Error("WaiterConfiguration.minDelay must be greater than 0");else if(h.maxDelay<=0)throw Error("WaiterConfiguration.maxDelay must be greater than 0");else if(h.maxWaitTime<=h.minDelay)throw Error(`WaiterConfiguration.maxWaitTime [${h.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${h.minDelay}] for this waiter`);else if(h.maxDelay<h.minDelay)throw Error(`WaiterConfiguration.maxDelay [${h.maxDelay}] must be greater than WaiterConfiguration.minDelay [${h.minDelay}] for this waiter`)},r1=(h)=>{let $,T=new Promise((P)=>{if($=()=>P({state:QP.WaiterState.ABORTED}),typeof h.addEventListener==="function")h.addEventListener("abort",$);else h.onabort=$});return{clearListener(){if(typeof h.removeEventListener==="function")h.removeEventListener("abort",$)},aborted:T}},aT=async(h,$,T)=>{let P={...i1,...h};oT(P);let w=[rT(P,$,T)],I=[];if(h.abortSignal){let{aborted:A,clearListener:U}=r1(h.abortSignal);I.push(U),w.push(A)}if(h.abortController?.signal){let{aborted:A,clearListener:U}=r1(h.abortController.signal);I.push(U),w.push(A)}return Promise.race(w).then((A)=>{for(let U of I)U();return A})};class l1{config;middlewareStack=U0();initConfig;handlers;constructor(h){this.config=h;let{protocol:$,protocolSettings:T}=h;if(T){if(typeof $==="function")h.protocol=new $(T)}}send(h,$,T){let P=typeof $!=="function"?$:void 0,w=typeof $==="function"?$:T,I=P===void 0&&this.config.cacheMiddleware===!0,A;if(I){if(!this.handlers)this.handlers=new WeakMap;let U=this.handlers;if(U.has(h.constructor))A=U.get(h.constructor);else A=h.resolveMiddleware(this.middlewareStack,this.config,P),U.set(h.constructor,A)}else delete this.handlers,A=h.resolveMiddleware(this.middlewareStack,this.config,P);if(w)A(h).then((U)=>w(null,U.output),(U)=>w(U)).catch(()=>{});else return A(h).then((U)=>U.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}var a0="***SensitiveInformation***";function B0(h,$){if($==null)return $;let T=gT.NormalizedSchema.of(h);if(T.getMergedTraits().sensitive)return a0;if(T.isListSchema()){if(!!T.getValueSchema().getMergedTraits().sensitive)return a0}else if(T.isMapSchema()){if(!!T.getKeySchema().getMergedTraits().sensitive||!!T.getValueSchema().getMergedTraits().sensitive)return a0}else if(T.isStructSchema()&&typeof $==="object"){let P=$,w={};for(let[I,A]of T.structIterator())if(P[I]!=null)w[I]=B0(A,P[I]);return w}return $}class h1{middlewareStack=U0();schema;static classBuilder(){return new o1}resolveMiddlewareWithContext(h,$,T,{middlewareFn:P,clientName:w,commandName:I,inputFilterSensitiveLog:A,outputFilterSensitiveLog:U,smithyContext:_,additionalContext:f,CommandCtor:Y}){for(let J of P.bind(this)(Y,h,$,T))this.middlewareStack.use(J);let M=h.concat(this.middlewareStack),{logger:X}=$,G={logger:X,clientName:w,commandName:I,inputFilterSensitiveLog:A,outputFilterSensitiveLog:U,[A0.SMITHY_CONTEXT_KEY]:{commandInstance:this,..._},...f},{requestHandler:V}=$,Z=T??{};if(_.eventStream)Z={isEventStream:!0,...Z};return M.resolve((J)=>V.handle(J.request,Z),G)}}class o1{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(h){this._init=h}ep(h){return this._ep=h,this}m(h){return this._middlewareFn=h,this}s(h,$,T={}){return this._smithyContext={service:h,operation:$,...T},this}c(h={}){return this._additionalContext=h,this}n(h,$){return this._clientName=h,this._commandName=$,this}f(h=(T)=>T,$=(T)=>T){return this._inputFilterSensitiveLog=h,this._outputFilterSensitiveLog=$,this}ser(h){return this._serializer=h,this}de(h){return this._deserializer=h,this}sc(h){return this._operationSchema=h,this._smithyContext.operationSchema=h,this}build(){let h=this,$;return $=class extends h1{input;static getEndpointParameterInstructions(){return h._ep}constructor(...[T]){super();this.input=T??{},h._init(this),this.schema=h._operationSchema}resolveMiddleware(T,P,w){let I=h._operationSchema,A=I?.[4]??I?.input,U=I?.[5]??I?.output;return this.resolveMiddlewareWithContext(T,P,w,{CommandCtor:$,middlewareFn:h._middlewareFn,clientName:h._clientName,commandName:h._commandName,inputFilterSensitiveLog:h._inputFilterSensitiveLog??(I?B0.bind(null,A):(_)=>_),outputFilterSensitiveLog:h._outputFilterSensitiveLog??(I?B0.bind(null,U):(_)=>_),smithyContext:h._smithyContext,additionalContext:h._additionalContext})}serialize=h._serializer;deserialize=h._deserializer}}}var eT="***SensitiveInformation***",hP=(h,$,T)=>{for(let[I,A]of Object.entries(h)){let U=async function(f,Y,M){let X=new A(f);if(typeof Y==="function")this.send(X,Y);else if(typeof M==="function"){if(typeof Y!=="object")throw Error(`Expected http options but got ${typeof Y}`);this.send(X,Y||{},M)}else return this.send(X,Y)},_=(I[0].toLowerCase()+I.slice(1)).replace(/Command$/,"");$.prototype[_]=U}let{paginators:P={},waiters:w={}}=T??{};for(let[I,A]of Object.entries(P))if($.prototype[I]===void 0)$.prototype[I]=function(U={},_,...f){return A({..._,client:this},U,...f)};for(let[I,A]of Object.entries(w))if($.prototype[I]===void 0)$.prototype[I]=async function(U={},_,...f){let Y=_;if(typeof _==="number")Y={maxWaitTime:_};return A({...Y,client:this},U,...f)}};class d extends Error{$fault;$response;$retryable;$metadata;constructor(h){super(h.message);Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=h.name,this.$fault=h.$fault,this.$metadata=h.$metadata}static isInstance(h){if(!h)return!1;let $=h;return d.prototype.isPrototypeOf($)||Boolean($.$fault)&&Boolean($.$metadata)&&($.$fault==="client"||$.$fault==="server")}static[Symbol.hasInstance](h){if(!h)return!1;let $=h;if(this===d)return d.isInstance(h);if(d.isInstance(h)){if($.name&&this.name)return this.prototype.isPrototypeOf(h)||$.name===this.name;return this.prototype.isPrototypeOf(h)}return!1}}var a1=(h,$={})=>{Object.entries($).filter(([,P])=>P!==void 0).forEach(([P,w])=>{if(h[P]==null||h[P]==="")h[P]=w});let T=h.message||h.Message||"UnknownError";return h.message=T,delete h.Message,h},e1=({output:h,parsedBody:$,exceptionCtor:T,errorCode:P})=>{let w=TP(h),I=w.httpStatusCode?w.httpStatusCode+"":void 0,A=new T({name:$?.code||$?.Code||P||I||"UnknownError",$fault:"client",$metadata:w});throw a1(A,$)},$P=(h)=>{return({output:$,parsedBody:T,errorCode:P})=>{e1({output:$,parsedBody:T,exceptionCtor:h,errorCode:P})}},TP=(h)=>({httpStatusCode:h.statusCode,requestId:h.headers["x-amzn-requestid"]??h.headers["x-amzn-request-id"]??h.headers["x-amz-request-id"],extendedRequestId:h.headers["x-amz-id-2"],cfId:h.headers["x-amz-cf-id"]}),PP=(h)=>{switch(h){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:30000};default:return{}}},n1=!1,wP=(h)=>{if(h&&!n1&&parseInt(h.substring(1,h.indexOf(".")))<16)n1=!0},hh=Object.values(A0.AlgorithmId),$h=(h)=>{let $=[];for(let T in A0.AlgorithmId){let P=A0.AlgorithmId[T];if(h[P]===void 0)continue;$.push({algorithmId:()=>P,checksumConstructor:()=>h[P]})}for(let[T,P]of Object.entries(h.checksumAlgorithms??{}))$.push({algorithmId:()=>T,checksumConstructor:()=>P});return{addChecksumAlgorithm(T){h.checksumAlgorithms=h.checksumAlgorithms??{};let P=T.algorithmId(),w=T.checksumConstructor();if(hh.includes(P))h.checksumAlgorithms[P.toUpperCase()]=w;else h.checksumAlgorithms[P]=w;$.push(T)},checksumAlgorithms(){return $}}},Th=(h)=>{let $={};return h.checksumAlgorithms().forEach((T)=>{let P=T.algorithmId();if(hh.includes(P))$[P]=T.checksumConstructor()}),$},Ph=(h)=>{return{setRetryStrategy($){h.retryStrategy=$},retryStrategy(){return h.retryStrategy}}},wh=(h)=>{let $={};return $.retryStrategy=h.retryStrategy(),$},Ih=(h)=>{return Object.assign($h(h),Ph(h))},IP=Ih,AP=(h)=>{return Object.assign(Th(h),wh(h))},UP=(h)=>Array.isArray(h)?h:[h],Ah=(h)=>{for(let T in h)if(h.hasOwnProperty(T)&&h[T]["#text"]!==void 0)h[T]=h[T]["#text"];else if(typeof h[T]==="object"&&h[T]!==null)h[T]=Ah(h[T]);return h},_P=(h)=>{return h!=null};class Uh{trace(){}debug(){}info(){}warn(){}error(){}}function _h(h,$,T){let P,w,I;if(typeof $>"u"&&typeof T>"u")P={},I=h;else if(P=h,typeof $==="function")return w=$,I=T,YP(P,w,I);else I=$;for(let A of Object.keys(I)){if(!Array.isArray(I[A])){P[A]=I[A];continue}fh(P,null,I,A)}return P}var fP=(h)=>{let $={};for(let[T,P]of Object.entries(h||{}))$[T]=[,P];return $},MP=(h,$)=>{let T={};for(let P in $)fh(T,h,$,P);return T},YP=(h,$,T)=>{return _h(h,Object.entries(T).reduce((P,[w,I])=>{if(Array.isArray(I))P[w]=I;else if(typeof I==="function")P[w]=[$,I()];else P[w]=[$,I];return P},{}))},fh=(h,$,T,P)=>{if($!==null){let A=T[P];if(typeof A==="function")A=[,A];let[U=XP,_=GP,f=P]=A;if(typeof U==="function"&&U($[f])||typeof U!=="function"&&!!U)h[P]=_($[f]);return}let[w,I]=T[P];if(typeof I==="function"){let A,U=w===void 0&&(A=I())!=null,_=typeof w==="function"&&!!w(void 0)||typeof w!=="function"&&!!w;if(U)h[P]=A;else if(_)h[P]=I()}else{let A=w===void 0&&I!=null,U=typeof w==="function"&&!!w(I)||typeof w!=="function"&&!!w;if(A||U)h[P]=I}},XP=(h)=>h!=null,GP=(h)=>h,JP=(h)=>{if(h!==h)return"NaN";switch(h){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return h}},VP=(h)=>h.toISOString().replace(".000Z","Z"),e0=(h)=>{if(h==null)return{};if(Array.isArray(h))return h.filter(($)=>$!=null).map(e0);if(typeof h==="object"){let $={};for(let T of Object.keys(h)){if(h[T]==null)continue;$[T]=e0(h[T])}return $}return h};QP.getSmithyContext=u1.getSmithyContext;QP.normalizeProvider=u1.normalizeProvider;QP.AlgorithmId=A0.AlgorithmId;QP.Client=l1;QP.Command=h1;QP.NoOpLogger=Uh;QP.SENSITIVE_STRING=eT;QP.ServiceException=d;QP._json=e0;QP.checkExceptions=tT;QP.constructStack=U0;QP.convertMap=fP;QP.createAggregatedClient=hP;QP.createWaiter=aT;QP.decorateServiceException=a1;QP.emitWarningIfUnsupportedVersion=wP;QP.getArrayIfSingleItem=UP;QP.getChecksumConfiguration=$h;QP.getDefaultClientConfiguration=IP;QP.getDefaultExtensionConfiguration=Ih;QP.getRetryConfiguration=Ph;QP.getValueFromTextNode=Ah;QP.invalidFunction=mT;QP.invalidProvider=dT;QP.isSerializableHeaderValue=_P;QP.loadConfigsForDefaultMode=PP;QP.map=_h;QP.resolveChecksumRuntimeConfig=Th;QP.resolveDefaultRuntimeConfig=AP;QP.resolveRetryRuntimeConfig=wh;QP.schemaLogFilter=B0;QP.serializeDateTime=VP;QP.serializeFloat=JP;QP.take=MP;QP.throwDefaultError=e1;QP.waiterServiceDefaults=i1;QP.withBaseException=$P});var Bh=y((lw)=>{var hw=C("os"),v=C("path"),$w=C("crypto"),Vh=C("fs/promises"),z0=h0(),F0=$1(),Tw=m();class t extends Error{name="ProviderError";tryNextLink;constructor(h,$=!0){let T,P=!0;if(typeof $==="boolean")T=void 0,P=$;else if($!=null&&typeof $==="object")T=$.logger,P=$.tryNextLink??!0;super(h);this.tryNextLink=P,Object.setPrototypeOf(this,t.prototype),T?.debug?.(`@smithy/property-provider ${P?"->":"(!)"} ${h}`)}static from(h,$=!0){return Object.assign(new this(h.message,$),h)}}class _0 extends t{name="CredentialsProviderError";constructor(h,$=!0){super(h,$);Object.setPrototypeOf(this,_0.prototype)}}class A1 extends t{name="TokenProviderError";constructor(h,$=!0){super(h,$);Object.setPrototypeOf(this,A1.prototype)}}var Qh=(...h)=>async()=>{if(h.length===0)throw new t("No providers in chain");let $;for(let T of h)try{return await T()}catch(P){if($=P,P?.tryNextLink)continue;throw P}throw $},Zh=(h)=>()=>Promise.resolve(h),U1=(h,$,T)=>{let P,w,I,A=!1,U=async()=>{if(!w)w=h();try{P=await w,I=!0,A=!1}finally{w=void 0}return P};if($===void 0)return async(_)=>{if(!I||_?.forceRefresh)P=await U();return P};return async(_)=>{if(!I||_?.forceRefresh)P=await U();if(A)return P;if(T&&!T(P))return A=!0,P;if($(P))return await U(),P;return P}},z=(h,$,T)=>{if(!($ in h))return;if(h[$]==="true")return!0;if(h[$]==="false")return!1;throw Error(`Cannot load ${T} "${$}". Expected "true" or "false", got ${h[$]}.`)},Pw=(h,$,T)=>{if(!($ in h))return;let P=parseInt(h[$],10);if(Number.isNaN(P))throw TypeError(`Cannot load ${T} '${$}'. Expected number, got '${h[$]}'.`);return P};lw.SelectorType=void 0;(function(h){h.ENV="env",h.CONFIG="shared config entry"})(lw.SelectorType||(lw.SelectorType={}));var T1={},ww=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},f0=()=>{let{HOME:h,USERPROFILE:$,HOMEPATH:T,HOMEDRIVE:P=`C:${v.sep}`}=process.env;if(h)return h;if($)return $;if(T)return`${P}${T}`;let w=ww();if(!T1[w])T1[w]=hw.homedir();return T1[w]},Rh="AWS_PROFILE",qh="default",Oh=(h)=>h.profile||process.env[Rh]||qh,Eh=(h)=>{let T=$w.createHash("sha1").update(h).digest("hex");return v.join(f0(),".aws","sso","cache",`${T}.json`)},s0={},Iw=async(h)=>{if(s0[h])return s0[h];let $=Eh(h),T=await Vh.readFile($,"utf8");return JSON.parse(T)},p=".",Aw=(h)=>Object.entries(h).filter(([$])=>{let T=$.indexOf(p);if(T===-1)return!1;return Object.values(z0.IniSectionType).includes($.substring(0,T))}).reduce(($,[T,P])=>{let w=T.indexOf(p),I=T.substring(0,w)===z0.IniSectionType.PROFILE?T.substring(w+1):T;return $[I]=P,$},{...h.default&&{default:h.default}}),Uw="AWS_CONFIG_FILE",Nh=()=>process.env[Uw]||v.join(f0(),".aws","config"),_w="AWS_SHARED_CREDENTIALS_FILE",fw=()=>process.env[_w]||v.join(f0(),".aws","credentials"),Mw=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,Yw=["__proto__","profile __proto__"],w1=(h)=>{let $={},T,P;for(let w of h.split(/\r?\n/)){let I=w.split(/(^|\s)[;#]/)[0].trim();if(I[0]==="["&&I[I.length-1]==="]"){T=void 0,P=void 0;let U=I.substring(1,I.length-1),_=Mw.exec(U);if(_){let[,f,,Y]=_;if(Object.values(z0.IniSectionType).includes(f))T=[f,Y].join(p)}else T=U;if(Yw.includes(U))throw Error(`Found invalid profile name "${U}"`)}else if(T){let U=I.indexOf("=");if(![0,-1].includes(U)){let[_,f]=[I.substring(0,U).trim(),I.substring(U+1).trim()];if(f==="")P=_;else{if(P&&w.trimStart()===w)P=void 0;$[T]=$[T]||{};let Y=P?[P,_].join(p):_;$[T][Y]=f}}}}return $},P1={},S0={},j0=(h,$)=>{if(S0[h]!==void 0)return S0[h];if(!P1[h]||$?.ignoreCache)P1[h]=Vh.readFile(h,"utf8");return P1[h]},Mh=()=>({}),_1=async(h={})=>{let{filepath:$=fw(),configFilepath:T=Nh()}=h,P=f0(),w="~/",I=$;if($.startsWith("~/"))I=v.join(P,$.slice(2));let A=T;if(T.startsWith("~/"))A=v.join(P,T.slice(2));let U=await Promise.all([j0(A,{ignoreCache:h.ignoreCache}).then(w1).then(Aw).catch(Mh),j0(I,{ignoreCache:h.ignoreCache}).then(w1).catch(Mh)]);return{configFile:U[0],credentialsFile:U[1]}},Xw=(h)=>Object.entries(h).filter(([$])=>$.startsWith(z0.IniSectionType.SSO_SESSION+p)).reduce(($,[T,P])=>({...$,[T.substring(T.indexOf(p)+1)]:P}),{}),Gw=()=>({}),Jw=async(h={})=>j0(h.configFilepath??Nh()).then(w1).then(Xw).catch(Gw),Vw=(...h)=>{let $={};for(let T of h)for(let[P,w]of Object.entries(T))if($[P]!==void 0)Object.assign($[P],w);else $[P]=w;return $},Qw=async(h)=>{let $=await _1(h);return Vw($.configFile,$.credentialsFile)},Zw={getFileRecord(){return S0},interceptFile(h,$){S0[h]=Promise.resolve($)},getTokenRecord(){return s0},interceptToken(h,$){s0[h]=$}};function Hh(h){try{let $=new Set(Array.from(h.match(/([A-Z_]){3,}/g)??[]));return $.delete("CONFIG"),$.delete("CONFIG_PREFIX_SEPARATOR"),$.delete("ENV"),[...$].join(", ")}catch($){return h}}var Rw=(h,$)=>async()=>{try{let T=h(process.env,$);if(T===void 0)throw Error();return T}catch(T){throw new _0(T.message||`Not found in ENV: ${Hh(h.toString())}`,{logger:$?.logger})}},qw=(h,{preferredFile:$="config",...T}={})=>async()=>{let P=Oh(T),{configFile:w,credentialsFile:I}=await _1(T),A=I[P]||{},U=w[P]||{},_=$==="config"?{...A,...U}:{...U,...A};try{let Y=h(_,$==="config"?w:I);if(Y===void 0)throw Error();return Y}catch(f){throw new _0(f.message||`Not found in config files w/ profile [${P}]: ${Hh(h.toString())}`,{logger:T.logger})}},Ow=(h)=>typeof h==="function",xh=(h)=>Ow(h)?async()=>await h():Zh(h),I1=({environmentVariableSelector:h,configFileSelector:$,default:T},P={})=>{let{signingName:w,logger:I}=P;return U1(Qh(Rw(h,{signingName:w,logger:I}),qw($,P),xh(T)))},f1="AWS_USE_DUALSTACK_ENDPOINT",M1="use_dualstack_endpoint",Ew=!1,Nw={environmentVariableSelector:(h)=>z(h,f1,lw.SelectorType.ENV),configFileSelector:(h)=>z(h,M1,lw.SelectorType.CONFIG),default:!1},Hw={environmentVariableSelector:(h)=>z(h,f1,lw.SelectorType.ENV),configFileSelector:(h)=>z(h,M1,lw.SelectorType.CONFIG),default:void 0},Y1="AWS_USE_FIPS_ENDPOINT",X1="use_fips_endpoint",xw=!1,Ww={environmentVariableSelector:(h)=>z(h,Y1,lw.SelectorType.ENV),configFileSelector:(h)=>z(h,X1,lw.SelectorType.CONFIG),default:!1},Dw={environmentVariableSelector:(h)=>z(h,Y1,lw.SelectorType.ENV),configFileSelector:(h)=>z(h,X1,lw.SelectorType.CONFIG),default:void 0},Lw=(h)=>{let{tls:$,endpoint:T,urlParser:P,useDualstackEndpoint:w}=h;return Object.assign(h,{tls:$??!0,endpoint:F0.normalizeProvider(typeof T==="string"?P(T):T),isCustomEndpoint:!0,useDualstackEndpoint:F0.normalizeProvider(w??!1)})},Kw=async(h)=>{let{tls:$=!0}=h,T=await h.region();if(!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(T))throw Error("Invalid region in client config");let w=await h.useDualstackEndpoint(),I=await h.useFipsEndpoint(),{hostname:A}=await h.regionInfoProvider(T,{useDualstackEndpoint:w,useFipsEndpoint:I})??{};if(!A)throw Error("Cannot resolve hostname from client config");return h.urlParser(`${$?"https:":"http:"}//${A}`)},Bw=(h)=>{let $=F0.normalizeProvider(h.useDualstackEndpoint??!1),{endpoint:T,useFipsEndpoint:P,urlParser:w,tls:I}=h;return Object.assign(h,{tls:I??!0,endpoint:T?F0.normalizeProvider(typeof T==="string"?w(T):T):()=>Kw({...h,useDualstackEndpoint:$,useFipsEndpoint:P}),isCustomEndpoint:!!T,useDualstackEndpoint:$})},Wh="AWS_REGION",Dh="region",Lh={environmentVariableSelector:(h)=>h[Wh],configFileSelector:(h)=>h[Dh],default:()=>{throw Error("Region is missing")}},zw={preferredFile:"credentials"},Yh=new Set,Fw=(h,$=Tw.isValidHostLabel)=>{if(!Yh.has(h)&&!$(h))if(h==="*")console.warn('@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.');else throw Error(`Region not accepted: region="${h}" is not a valid hostname component.`);else Yh.add(h)},Kh=(h)=>typeof h==="string"&&(h.startsWith("fips-")||h.endsWith("-fips")),sw=(h)=>Kh(h)?["fips-aws-global","aws-fips"].includes(h)?"us-east-1":h.replace(/fips-(dkr-|prod-)?|-fips/,""):h,Sw=(h)=>{let{region:$,useFipsEndpoint:T}=h;if(!$)throw Error("Region is missing");return Object.assign(h,{region:async()=>{let P=typeof $==="function"?await $():$,w=sw(P);return Fw(w),w},useFipsEndpoint:async()=>{let P=typeof $==="string"?$:await $();if(Kh(P))return!0;return typeof T!=="function"?Promise.resolve(!!T):T()}})},Xh=(h=[],{useFipsEndpoint:$,useDualstackEndpoint:T})=>h.find(({tags:P})=>$===P.includes("fips")&&T===P.includes("dualstack"))?.hostname,jw=(h,{regionHostname:$,partitionHostname:T})=>$?$:T?T.replace("{region}",h):void 0,Cw=(h,{partitionHash:$})=>Object.keys($||{}).find((T)=>$[T].regions.includes(h))??"aws",cw=(h,{signingRegion:$,regionRegex:T,useFipsEndpoint:P})=>{if($)return $;else if(P){let w=T.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\."),I=h.match(w);if(I)return I[0].slice(1,-1)}},bw=(h,{useFipsEndpoint:$=!1,useDualstackEndpoint:T=!1,signingService:P,regionHash:w,partitionHash:I})=>{let A=Cw(h,{partitionHash:I}),U=h in w?h:I[A]?.endpoint??h,_={useFipsEndpoint:$,useDualstackEndpoint:T},f=Xh(w[U]?.variants,_),Y=Xh(I[A]?.variants,_),M=jw(U,{regionHostname:f,partitionHostname:Y});if(M===void 0)throw Error(`Endpoint resolution failed for: ${{resolvedRegion:U,useFipsEndpoint:$,useDualstackEndpoint:T}}`);let X=cw(M,{signingRegion:w[U]?.signingRegion,regionRegex:I[A].regionRegex,useFipsEndpoint:$});return{partition:A,signingService:P,hostname:M,...X&&{signingRegion:X},...w[U]?.signingService&&{signingService:w[U].signingService}}},yw="AWS_EXECUTION_ENV",Gh="AWS_REGION",Jh="AWS_DEFAULT_REGION",kw="AWS_EC2_METADATA_DISABLED",pw=["in-region","cross-region","mobile","standard","legacy"],gw="/latest/meta-data/placement/region",mw="AWS_DEFAULTS_MODE",dw="defaults_mode",vw={environmentVariableSelector:(h)=>{return h[mw]},configFileSelector:(h)=>{return h[dw]},default:"legacy"},tw=({region:h=I1(Lh),defaultsMode:$=I1(vw)}={})=>U1(async()=>{let T=typeof $==="function"?await $():$;switch(T?.toLowerCase()){case"auto":return rw(h);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(T?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw Error(`Invalid parameter for "defaultsMode", expect ${pw.join(", ")}, got ${T}`)}}),rw=async(h)=>{if(h){let $=typeof h==="function"?await h():h,T=await nw();if(!T)return"standard";if($===T)return"in-region";else return"cross-region"}return"standard"},nw=async()=>{if(process.env[yw]&&(process.env[Gh]||process.env[Jh]))return process.env[Gh]??process.env[Jh];if(!process.env[kw])try{let h=await uw();return(await iw({hostname:h.hostname,path:gw})).toString()}catch(h){}},uw=async()=>{let h=process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT;if(h){let T=new URL(h);return{hostname:T.hostname,path:T.pathname}}if(process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE==="IPv6")return{hostname:"fd00:ec2::254",path:"/"};return{hostname:"169.254.169.254",path:"/"}},iw=async({hostname:h,path:$})=>{let{request:T}=await import("http");return new Promise((P,w)=>{let I=T({method:"GET",hostname:h.replace(/^\[(.+)]$/,"$1"),path:$,timeout:1000,signal:AbortSignal.timeout(1000)});I.on("error",(A)=>{w(A),I.destroy()}),I.on("timeout",()=>{w(Error("TimeoutError from instance metadata service")),I.destroy()}),I.on("response",(A)=>{let{statusCode:U=400}=A;if(U<200||300<=U){w(Object.assign(Error("Error response received from instance metadata service"),{statusCode:U})),I.destroy();return}let _=[];A.on("data",(f)=>_.push(f)),A.on("end",()=>{P(Buffer.concat(_)),I.destroy()})}),I.end()})};lw.CONFIG_PREFIX_SEPARATOR=p;lw.CONFIG_USE_DUALSTACK_ENDPOINT=M1;lw.CONFIG_USE_FIPS_ENDPOINT=X1;lw.CredentialsProviderError=_0;lw.DEFAULT_PROFILE=qh;lw.DEFAULT_USE_DUALSTACK_ENDPOINT=Ew;lw.DEFAULT_USE_FIPS_ENDPOINT=xw;lw.ENV_PROFILE=Rh;lw.ENV_USE_DUALSTACK_ENDPOINT=f1;lw.ENV_USE_FIPS_ENDPOINT=Y1;lw.NODE_REGION_CONFIG_FILE_OPTIONS=zw;lw.NODE_REGION_CONFIG_OPTIONS=Lh;lw.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS=Nw;lw.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS=Ww;lw.ProviderError=t;lw.REGION_ENV_NAME=Wh;lw.REGION_INI_NAME=Dh;lw.TokenProviderError=A1;lw.booleanSelector=z;lw.chain=Qh;lw.externalDataInterceptor=Zw;lw.fromStatic=xh;lw.fromValue=Zh;lw.getHomeDir=f0;lw.getProfileName=Oh;lw.getRegionInfo=bw;lw.getSSOTokenFilepath=Eh;lw.getSSOTokenFromFile=Iw;lw.loadConfig=I1;lw.loadSharedConfigFiles=_1;lw.loadSsoSessionData=Jw;lw.memoize=U1;lw.nodeDualstackConfigSelectors=Hw;lw.nodeFipsConfigSelectors=Dw;lw.numberSelector=Pw;lw.parseKnownFiles=Qw;lw.readFile=j0;lw.resolveCustomEndpointsConfig=Lw;lw.resolveDefaultsModeConfig=tw;lw.resolveEndpointsConfig=Bw;lw.resolveRegionConfig=Sw});var lh=y((EA)=>{var V1=Bh(),F=m(),yI=$1(),Q1=h0(),zh="AWS_ENDPOINT_URL",Fh="endpoint_url",kI=(h)=>({environmentVariableSelector:($)=>{let T=h.split(" ").map((I)=>I.toUpperCase()),P=$[[zh,...T].join("_")];if(P)return P;let w=$[zh];if(w)return w;return},configFileSelector:($,T)=>{if(T&&$.services){let w=T[["services",$.services].join(V1.CONFIG_PREFIX_SEPARATOR)];if(w){let I=h.split(" ").map((U)=>U.toLowerCase()),A=w[[I.join("_"),Fh].join(V1.CONFIG_PREFIX_SEPARATOR)];if(A)return A}}let P=$[Fh];if(P)return P;return},default:void 0}),C0=async(h)=>V1.loadConfig(kI(h??""))(),pI=async(h)=>{let $=h?.Bucket||"";if(typeof h.Bucket==="string")h.Bucket=$.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(tI($)){if(h.ForcePathStyle===!0)throw Error("Path-style addressing cannot be used with ARN buckets")}else if(!vI($)||$.indexOf(".")!==-1&&!String(h.Endpoint).startsWith("http:")||$.toLowerCase()!==$||$.length<3)h.ForcePathStyle=!0;if(h.DisableMultiRegionAccessPoints)h.disableMultiRegionAccessPoints=!0,h.DisableMRAP=!0;return h},gI=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,mI=/(\d+\.){3}\d+/,dI=/\.\./,vI=(h)=>gI.test(h)&&!mI.test(h)&&!dI.test(h),tI=(h)=>{let[$,T,P,,,w]=h.split(":"),I=$==="arn"&&h.split(":").length>=6,A=Boolean(I&&T&&P&&w);if(I&&!A)throw Error(`Invalid ARN: ${h} was an invalid ARN.`);return A},rI=(h,$,T,P=!1)=>{let w=async()=>{let I;if(P)I=T.clientContextParams?.[h]??T[h]??T[$];else I=T[h]??T[$];if(typeof I==="function")return I();return I};if(h==="credentialScope"||$==="CredentialScope")return async()=>{let I=typeof T.credentials==="function"?await T.credentials():T.credentials;return I?.credentialScope??I?.CredentialScope};if(h==="accountId"||$==="AccountId")return async()=>{let I=typeof T.credentials==="function"?await T.credentials():T.credentials;return I?.accountId??I?.AccountId};if(h==="endpoint"||$==="endpoint")return async()=>{if(T.isCustomEndpoint===!1)return;let I=await w();if(I&&typeof I==="object"){if("url"in I)return I.url.href;if("hostname"in I){let{protocol:A,hostname:U,port:_,path:f}=I;return`${A}//${U}${_?":"+_:""}${f}`}}return I};return w};function sh(h){return async($,T,P,w)=>{if(!P.isCustomEndpoint){let U;if(P.serviceConfiguredEndpoint)U=await P.serviceConfiguredEndpoint();else U=await h(P.serviceId);if(U)P.endpoint=()=>Promise.resolve(F.toEndpointV1(U)),P.isCustomEndpoint=!0}let I=await Sh($,T,P);if(typeof P.endpointProvider!=="function")throw Error("config.endpointProvider is not set.");let A=P.endpointProvider(I,w);if(P.isCustomEndpoint&&P.endpoint){let U=await P.endpoint();if(U?.headers){A.headers??={};for(let[_,f]of Object.entries(U.headers))A.headers[_]=Array.isArray(f)?f:[f]}}return A}}var Sh=async(h,$,T)=>{let P={},w=$?.getEndpointParameterInstructions?.()||{};for(let[I,A]of Object.entries(w))switch(A.type){case"staticContextParams":P[I]=A.value;break;case"contextParams":P[I]=h[A.name];break;case"clientContextParams":case"builtInParams":P[I]=await rI(A.name,I,T,A.type!=="builtInParams")();break;case"operationContextParams":P[I]=A.get(h);break;default:throw Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(A))}if(Object.keys(w).length===0)Object.assign(P,T);if(String(T.serviceId).toLowerCase()==="s3")await pI(P);return P};function nI(h,$,T){if(!h.__smithy_context)h.__smithy_context={features:{}};else if(!h.__smithy_context.features)h.__smithy_context.features={};h.__smithy_context.features[$]=T}function jh(h){let $=sh(h);return({config:T,instructions:P})=>{return(w,I)=>async(A)=>{if(T.isCustomEndpoint)nI(I,"ENDPOINT_OVERRIDE","N");let U=await $(A.input,{getEndpointParameterInstructions(){return P}},{...T},I);I.endpointV2=U,I.authSchemes=U.properties?.authSchemes;let _=I.authSchemes?.[0];if(_){I.signing_region=_.signingRegion,I.signing_service=_.signingName;let Y=yI.getSmithyContext(I)?.selectedHttpAuthScheme?.httpAuthOption;if(Y)Y.signingProperties=Object.assign(Y.signingProperties||{},{signing_region:_.signingRegion,signingRegion:_.signingRegion,signing_service:_.signingName,signingName:_.signingName,signingRegionSet:_.signingRegionSet},_.properties)}return w({...A})}}}var uI={name:"serializerMiddleware"},Ch={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:uI.name};function iI(h){let $=jh(h);return(T,P)=>({applyToStack:(w)=>{w.addRelativeTo($({config:T,instructions:P}),Ch)}})}function lI(h){return($)=>{let T=$.tls??!0,{endpoint:P,useDualstackEndpoint:w,useFipsEndpoint:I}=$,A=P!=null?async()=>F.toEndpointV1(await F.normalizeProvider(P)()):void 0,_=Object.assign($,{endpoint:A,tls:T,isCustomEndpoint:!!P,useDualstackEndpoint:F.normalizeProvider(w??!1),useFipsEndpoint:F.normalizeProvider(I??!1)}),f=void 0;return _.serviceConfiguredEndpoint=async()=>{if($.serviceId&&!f)f=h($.serviceId);return f},_}}class Z1{nodes;root;conditions;results;constructor(h,$,T,P){this.nodes=h,this.root=$,this.conditions=T,this.results=P}static from(h,$,T,P){return new Z1(h,$,T,P)}}class ch{capacity;data=new Map;parameters=[];constructor({size:h,params:$}){if(this.capacity=h??50,$)this.parameters=$}get(h,$){let T=this.hash(h);if(T===!1)return $();if(!this.data.has(T)){if(this.data.size>this.capacity+10){let P=this.data.keys(),w=0;while(!0){let{value:I,done:A}=P.next();if(this.data.delete(I),A||++w>10)break}}this.data.set(T,$())}return this.data.get(T)}size(){return this.data.size}hash(h){let $="",{parameters:T}=this;if(T.length===0)return!1;for(let P of T){let w=String(h[P]??"");if(w.includes("|;"))return!1;$+=w+"|;"}return $}}class q extends Error{constructor(h){super(h);this.name="EndpointError"}}var M0="endpoints";function c(h){if(typeof h!=="object"||h==null)return h;if("ref"in h)return`$${c(h.ref)}`;if("fn"in h)return`${h.fn}(${(h.argv||[]).map(c).join(", ")})`;return JSON.stringify(h,null,2)}var bh={},oI=(h,$)=>h===$;function aI(...h){for(let $ of h)if($!=null)return $;return}var eI=(h)=>{let $=h.split("."),T=[];for(let P of $){let w=P.indexOf("[");if(w!==-1){if(P.indexOf("]")!==P.length-1)throw new q(`Path: '${h}' does not end with ']'`);let I=P.slice(w+1,-1);if(Number.isNaN(parseInt(I)))throw new q(`Invalid array index: '${I}' in path: '${h}'`);if(w!==0)T.push(P.slice(0,w));T.push(I)}else T.push(P)}return T},yh=(h,$)=>eI($).reduce((T,P)=>{if(typeof T!=="object")throw new q(`Index '${P}' in '${$}' not found in '${JSON.stringify(h)}'`);else if(Array.isArray(T)){let w=parseInt(P);return T[w<0?T.length+w:w]}return T[P]},h),hA=(h)=>h!=null;function $A(h,$,T){return h?$:T}var TA=(h)=>!h,PA=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),kh=(h)=>PA.test(h)||h.startsWith("[")&&h.endsWith("]"),G1={[Q1.EndpointURLScheme.HTTP]:80,[Q1.EndpointURLScheme.HTTPS]:443},wA=(h)=>{let $=(()=>{try{if(h instanceof URL)return h;if(typeof h==="object"&&"hostname"in h){let{hostname:X,port:G,protocol:V="",path:Z="",query:J={}}=h,Q=new URL(`${V}//${X}${G?`:${G}`:""}${Z}`);return Q.search=Object.entries(J).map(([R,H])=>`${R}=${H}`).join("&"),Q}return new URL(h)}catch(X){return null}})();if(!$)return console.error(`Unable to parse ${JSON.stringify(h)} as a whatwg URL.`),null;let T=$.href,{host:P,hostname:w,pathname:I,protocol:A,search:U}=$;if(U)return null;let _=A.slice(0,-1);if(!Object.values(Q1.EndpointURLScheme).includes(_))return null;let f=kh(w),Y=T.includes(`${P}:${G1[_]}`)||typeof h==="string"&&h.includes(`${P}:${G1[_]}`),M=`${P}${Y?`:${G1[_]}`:""}`;return{scheme:_,authority:M,path:I,normalizedPath:I.endsWith("/")?I:`${I}/`,isIp:f}};function IA(h,$,T){if(T===1)return[h];if(h==="")return[""];let P=h.split($);if(T===0)return P;return P.slice(0,T-1).concat(P.slice(1).join($))}var AA=(h,$)=>h===$,UA=(h,$,T,P)=>{if(h==null||$>=T||h.length<T||/[^\u0000-\u007f]/.test(h))return null;if(!P)return h.substring($,T);return h.substring(h.length-T,h.length-$)},_A=(h)=>encodeURIComponent(h).replace(/[!*'()]/g,($)=>`%${$.charCodeAt(0).toString(16).toUpperCase()}`),fA={booleanEquals:oI,coalesce:aI,getAttr:yh,isSet:hA,isValidHostLabel:F.isValidHostLabel,ite:$A,not:TA,parseURL:wA,split:IA,stringEquals:AA,substring:UA,uriEncode:_A},ph=(h,$)=>{let T=[],{referenceRecord:P,endpointParams:w}=$,I=0;while(I<h.length){let A=h.indexOf("{",I);if(A===-1){T.push(h.slice(I));break}T.push(h.slice(I,A));let U=h.indexOf("}",A);if(U===-1){T.push(h.slice(A));break}if(h[A+1]==="{"&&h[U+1]==="}")T.push(h.slice(A+1,U)),I=U+2;let _=h.substring(A+1,U);if(_.includes("#")){let[f,Y]=_.split("#");T.push(yh(P[f]??w[f],Y))}else T.push(P[_]??w[_]);I=U+1}return T.join("")},MA=({ref:h},$)=>{return $.referenceRecord[h]??$.endpointParams[h]},Y0=(h,$,T)=>{if(typeof h==="string")return ph(h,T);else if(h.fn)return mh.callFunction(h,T);else if(h.ref)return MA(h,T);throw new q(`'${$}': ${String(h)} is not a string, function or reference.`)},gh=({fn:h,argv:$},T)=>{let P=Array($.length);for(let A=0;A<P.length;++A){let U=$[A];if(typeof U==="boolean"||typeof U==="number")P[A]=U;else P[A]=mh.evaluateExpression(U,"arg",T)}let w=h.indexOf(".");if(w!==-1){let U=bh[h.slice(0,w)]?.[h.slice(w+1)];if(typeof U==="function")return U(...P)}let I=fA[h];if(typeof I==="function")return I(...P);throw Error(`function ${h} not loaded in endpointFunctions.`)},mh={evaluateExpression:Y0,callFunction:gh},dh=(h,$)=>{let{assign:T}=h;if(T&&T in $.referenceRecord)throw new q(`'${T}' is already defined in Reference Record.`);let P=gh(h,$);$.logger?.debug?.(`${M0} evaluateCondition: ${c(h)} = ${c(P)}`);let w=P===""?!0:!!P;if(T!=null)return{result:w,toAssign:{name:T,value:P}};return{result:w}},vh=(h,$)=>Object.entries(h??{}).reduce((T,[P,w])=>{return T[P]=w.map((I)=>{let A=Y0(I,"Header value entry",$);if(typeof A!=="string")throw new q(`Header '${P}' value '${A}' is not a string`);return A}),T},{}),R1=(h,$)=>Object.entries(h).reduce((T,[P,w])=>{return T[P]=rh.getEndpointProperty(w,$),T},{}),th=(h,$)=>{if(Array.isArray(h))return h.map((T)=>th(T,$));switch(typeof h){case"string":return ph(h,$);case"object":if(h===null)throw new q(`Unexpected endpoint property: ${h}`);return rh.getEndpointProperties(h,$);case"boolean":return h;default:throw new q(`Unexpected endpoint property type: ${typeof h}`)}},rh={getEndpointProperty:th,getEndpointProperties:R1},nh=(h,$)=>{let T=Y0(h,"Endpoint URL",$);if(typeof T==="string")try{return new URL(T)}catch(P){throw console.error(`Failed to construct URL with ${T}`,P),P}throw new q(`Endpoint URL must be a string, got ${typeof T}`)},J1=1e8,YA=(h,$)=>{let{nodes:T,root:P,results:w,conditions:I}=h,A=P,U={},_={referenceRecord:U,endpointParams:$.endpointParams,logger:$.logger};while(A!==1&&A!==-1&&A<J1){let f=3*(Math.abs(A)-1),[Y,M,X]=[T[f],T[f+1],T[f+2]],[G,V,Z]=I[Y],J=dh({fn:G,assign:Z,argv:V},_);if(J.toAssign){let{name:Q,value:R}=J.toAssign;U[Q]=R}A=A>=0===J.result?M:X}if(A>=J1){let f=w[A-J1];if(f[0]===-1){let[,G]=f;throw new q(Y0(G,"Error",_))}let[Y,M,X]=f;return{url:nh(Y,_),properties:R1(M,_),headers:vh(X??{},_)}}throw new q("No matching endpoint.")},q1=(h=[],$)=>{let T={},P={...$,referenceRecord:{...$.referenceRecord}},w=!1;for(let I of h){let{result:A,toAssign:U}=dh(I,P);if(!A)return{result:A};if(U)w=!0,T[U.name]=U.value,P.referenceRecord[U.name]=U.value,$.logger?.debug?.(`${M0} assign: ${U.name} := ${c(U.value)}`)}if(w)return{result:!0,referenceRecord:T};return{result:!0}},XA=(h,$)=>{let{conditions:T,endpoint:P}=h,{result:w,referenceRecord:I}=q1(T,$);if(!w)return;let A=I?{...$,referenceRecord:{...$.referenceRecord,...I}}:$,{url:U,properties:_,headers:f}=P;$.logger?.debug?.(`${M0} Resolving endpoint from template: ${c(P)}`);let Y={url:nh(U,A)};if(f!=null)Y.headers=vh(f,A);if(_!=null)Y.properties=R1(_,A);return Y},GA=(h,$)=>{let{conditions:T,error:P}=h,{result:w,referenceRecord:I}=q1(T,$);if(!w)return;let A=I?{...$,referenceRecord:{...$.referenceRecord,...I}}:$;throw new q(Y0(P,"Error",A))},uh=(h,$)=>{for(let T of h)if(T.type==="endpoint"){let P=XA(T,$);if(P)return P}else if(T.type==="error")GA(T,$);else if(T.type==="tree"){let P=ih.evaluateTreeRule(T,$);if(P)return P}else throw new q(`Unknown endpoint rule: ${T}`);throw new q("Rules evaluation failed")},JA=(h,$)=>{let{conditions:T,rules:P}=h,{result:w,referenceRecord:I}=q1(T,$);if(!w)return;let A=I?{...$,referenceRecord:{...$.referenceRecord,...I}}:$;return ih.evaluateRules(P,A)},ih={evaluateRules:uh,evaluateTreeRule:JA},VA=(h,$)=>{let{endpointParams:T,logger:P}=$,{parameters:w,rules:I}=h;$.logger?.debug?.(`${M0} Initial EndpointParams: ${c(T)}`);for(let U in w){let _=w[U],f=T[U];if(f==null&&_.default!=null){T[U]=_.default;continue}if(_.required&&f==null)throw new q(`Missing required parameter: '${U}'`)}let A=uh(I,{endpointParams:T,logger:P,referenceRecord:{}});return $.logger?.debug?.(`${M0} Resolved endpoint: ${c(A)}`),A},QA=(h)=>{let{endpoint:$}=h;if($===void 0)h.endpoint=async()=>{throw Error("@smithy/middleware-endpoint: (default endpointRuleSet) endpoint is not set - you must configure an endpoint.")};return h},ZA=sh(C0),RA=lI(C0),qA=jh(C0),OA=iI(C0);EA.isValidHostLabel=F.isValidHostLabel;EA.middlewareEndpointToEndpointV1=F.toEndpointV1;EA.toEndpointV1=F.toEndpointV1;EA.BinaryDecisionDiagram=Z1;EA.EndpointCache=ch;EA.EndpointError=q;EA.customEndpointFunctions=bh;EA.decideEndpoint=YA;EA.endpointMiddleware=qA;EA.endpointMiddlewareOptions=Ch;EA.getEndpointFromInstructions=ZA;EA.getEndpointPlugin=OA;EA.isIpAddress=kh;EA.resolveEndpoint=VA;EA.resolveEndpointConfig=RA;EA.resolveEndpointRequiredConfig=QA;EA.resolveParams=Sh});var Ff=y((J_)=>{var H1=C("crypto"),O1=C("fs"),kA=m(),pA=lh(),D=C("stream"),P$=(h)=>typeof ArrayBuffer==="function"&&h instanceof ArrayBuffer||Object.prototype.toString.call(h)==="[object ArrayBuffer]",u=(h,$=0,T=h.byteLength-$)=>{if(!P$(h))throw TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof h} (${h})`);return Buffer.from(h,$,T)},k0=(h,$)=>{if(typeof h!=="string")throw TypeError(`The "input" argument must be of type string. Received type ${typeof h} (${h})`);return $?Buffer.from(h,$):Buffer.from(h)},gA=/^[A-Za-z0-9+/]*={0,2}$/,w$=(h)=>{if(h.length*3%4!==0)throw TypeError("Incorrect padding on base64 string.");if(!gA.exec(h))throw TypeError("Invalid base64 string.");let $=k0(h,"base64");return new Uint8Array($.buffer,$.byteOffset,$.byteLength)},p0=(h)=>{let $=k0(h,"utf8");return new Uint8Array($.buffer,$.byteOffset,$.byteLength/Uint8Array.BYTES_PER_ELEMENT)},K1=(h)=>{let $;if(typeof h==="string")$=p0(h);else $=h;if(typeof $!=="object"||typeof $.byteOffset!=="number"||typeof $.byteLength!=="number")throw Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return u($.buffer,$.byteOffset,$.byteLength).toString("base64")};function mA(h,$,T,P){return class w extends Uint8Array{static fromString(I,A="utf-8"){if(typeof I==="string"){if(A==="base64")return w.mutate(P(I));return w.mutate($(I))}throw Error(`Unsupported conversion from ${typeof I} to Uint8ArrayBlobAdapter.`)}static mutate(I){return Object.setPrototypeOf(I,w.prototype),I}transformToString(I="utf-8"){if(I==="base64")return T(this);return h(this)}}}var I$=(h)=>{if(typeof h==="string")return h;if(typeof h!=="object"||typeof h.byteOffset!=="number"||typeof h.byteLength!=="number")throw Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return u(h.buffer,h.byteOffset,h.byteLength).toString("utf8")},O=Array.from({length:256},(h,$)=>$.toString(16).padStart(2,"0"));function dA(h){if(typeof crypto<"u"&&typeof crypto.randomUUID==="function")return()=>crypto.randomUUID();return()=>{let $=new Uint8Array(16);return h($),$[6]=$[6]&15|64,$[8]=$[8]&63|128,O[$[0]]+O[$[1]]+O[$[2]]+O[$[3]]+"-"+O[$[4]]+O[$[5]]+"-"+O[$[6]]+O[$[7]]+"-"+O[$[8]]+O[$[9]]+"-"+O[$[10]]+O[$[11]]+O[$[12]]+O[$[13]]+O[$[14]]+O[$[15]]}}var vA=(h,$,T=(P)=>P)=>h,tA=(h)=>{switch(h){case"true":return!0;case"false":return!1;default:throw Error(`Unable to parse boolean value "${h}"`)}},rA=(h)=>{if(h===null||h===void 0)return;if(typeof h==="number"){if(h===0||h===1)Q0.warn(b0(`Expected boolean, got ${typeof h}: ${h}`));if(h===0)return!1;if(h===1)return!0}if(typeof h==="string"){let $=h.toLowerCase();if($==="false"||$==="true")Q0.warn(b0(`Expected boolean, got ${typeof h}: ${h}`));if($==="false")return!1;if($==="true")return!0}if(typeof h==="boolean")return h;throw TypeError(`Expected boolean, got ${typeof h}: ${h}`)},J0=(h)=>{if(h===null||h===void 0)return;if(typeof h==="string"){let $=parseFloat(h);if(!Number.isNaN($)){if(String($)!==String(h))Q0.warn(b0(`Expected number but observed string: ${h}`));return $}}if(typeof h==="number")return h;throw TypeError(`Expected number, got ${typeof h}: ${h}`)},nA=Math.ceil(340282346638528860000000000000000000000),c0=(h)=>{let $=J0(h);if($!==void 0&&!Number.isNaN($)&&$!==1/0&&$!==-1/0){if(Math.abs($)>nA)throw TypeError(`Expected 32-bit float, got ${h}`)}return $},V0=(h)=>{if(h===null||h===void 0)return;if(Number.isInteger(h)&&!Number.isNaN(h))return h;throw TypeError(`Expected integer, got ${typeof h}: ${h}`)},uA=V0,x1=(h)=>B1(h,32),W1=(h)=>B1(h,16),D1=(h)=>B1(h,8),B1=(h,$)=>{let T=V0(h);if(T!==void 0&&iA(T,$)!==T)throw TypeError(`Expected ${$}-bit integer, got ${h}`);return T},iA=(h,$)=>{switch($){case 32:return Int32Array.of(h)[0];case 16:return Int16Array.of(h)[0];case 8:return Int8Array.of(h)[0]}},lA=(h,$)=>{if(h===null||h===void 0){if($)throw TypeError(`Expected a non-null value for ${$}`);throw TypeError("Expected a non-null value")}return h},A$=(h)=>{if(h===null||h===void 0)return;if(typeof h==="object"&&!Array.isArray(h))return h;let $=Array.isArray(h)?"array":typeof h;throw TypeError(`Expected object, got ${$}: ${h}`)},oA=(h)=>{if(h===null||h===void 0)return;if(typeof h==="string")return h;if(["boolean","number","bigint"].includes(typeof h))return Q0.warn(b0(`Expected string, got ${typeof h}: ${h}`)),String(h);throw TypeError(`Expected string, got ${typeof h}: ${h}`)},aA=(h)=>{if(h===null||h===void 0)return;let $=A$(h),T=[];for(let P in $)if($[P]!=null)T.push(P);if(T.length===0)throw TypeError("Unions must have exactly one non-null member. None were found.");if(T.length>1)throw TypeError(`Unions must have exactly one non-null member. Keys ${T} were not null.`);return $},z1=(h)=>{if(typeof h=="string")return J0(o(h));return J0(h)},eA=z1,U$=(h)=>{if(typeof h=="string")return c0(o(h));return c0(h)},hU=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,o=(h)=>{let $=h.match(hU);if($===null||$[0].length!==h.length)throw TypeError("Expected real number, got implicit NaN");return parseFloat(h)},F1=(h)=>{if(typeof h=="string")return _$(h);return J0(h)},$U=F1,TU=F1,PU=(h)=>{if(typeof h=="string")return _$(h);return c0(h)},_$=(h)=>{switch(h){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw Error(`Unable to parse float value: ${h}`)}},f$=(h)=>{if(typeof h==="string")return V0(o(h));return V0(h)},wU=f$,IU=(h)=>{if(typeof h==="string")return x1(o(h));return x1(h)},i=(h)=>{if(typeof h==="string")return W1(o(h));return W1(h)},M$=(h)=>{if(typeof h==="string")return D1(o(h));return D1(h)},b0=(h)=>{return String(TypeError(h).stack||h).split(`
|
|
4
4
|
`).slice(0,5).filter(($)=>!$.includes("stackTraceWarning")).join(`
|
|
5
5
|
`)},Q0={warn:console.warn},AU=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],s1=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function UU(h){let $=h.getUTCFullYear(),T=h.getUTCMonth(),P=h.getUTCDay(),w=h.getUTCDate(),I=h.getUTCHours(),A=h.getUTCMinutes(),U=h.getUTCSeconds(),_=w<10?`0${w}`:`${w}`,f=I<10?`0${I}`:`${I}`,Y=A<10?`0${A}`:`${A}`,M=U<10?`0${U}`:`${U}`;return`${AU[P]}, ${_} ${s1[T]} ${$} ${f}:${Y}:${M} GMT`}var _U=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),fU=(h)=>{if(h===null||h===void 0)return;if(typeof h!=="string")throw TypeError("RFC-3339 date-times must be expressed as strings");let $=_U.exec(h);if(!$)throw TypeError("Invalid RFC-3339 date-time value");let[T,P,w,I,A,U,_,f]=$,Y=i(l(P)),M=L(w,"month",1,12),X=L(I,"day",1,31);return X0(Y,M,X,{hours:A,minutes:U,seconds:_,fractionalMilliseconds:f})},MU=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),YU=(h)=>{if(h===null||h===void 0)return;if(typeof h!=="string")throw TypeError("RFC-3339 date-times must be expressed as strings");let $=MU.exec(h);if(!$)throw TypeError("Invalid RFC-3339 date-time value");let[T,P,w,I,A,U,_,f,Y]=$,M=i(l(P)),X=L(w,"month",1,12),G=L(I,"day",1,31),V=X0(M,X,G,{hours:A,minutes:U,seconds:_,fractionalMilliseconds:f});if(Y.toUpperCase()!="Z")V.setTime(V.getTime()-xU(Y));return V},XU=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),GU=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),JU=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),VU=(h)=>{if(h===null||h===void 0)return;if(typeof h!=="string")throw TypeError("RFC-7231 date-times must be expressed as strings");let $=XU.exec(h);if($){let[T,P,w,I,A,U,_,f]=$;return X0(i(l(I)),E1(w),L(P,"day",1,31),{hours:A,minutes:U,seconds:_,fractionalMilliseconds:f})}if($=GU.exec(h),$){let[T,P,w,I,A,U,_,f]=$;return qU(X0(ZU(I),E1(w),L(P,"day",1,31),{hours:A,minutes:U,seconds:_,fractionalMilliseconds:f}))}if($=JU.exec(h),$){let[T,P,w,I,A,U,_,f]=$;return X0(i(l(f)),E1(P),L(w.trimLeft(),"day",1,31),{hours:I,minutes:A,seconds:U,fractionalMilliseconds:_})}throw TypeError("Invalid RFC-7231 date-time value")},QU=(h)=>{if(h===null||h===void 0)return;let $;if(typeof h==="number")$=h;else if(typeof h==="string")$=z1(h);else if(typeof h==="object"&&h.tag===1)$=h.value;else throw TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN($)||$===1/0||$===-1/0)throw TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round($*1000))},X0=(h,$,T,P)=>{let w=$-1;return EU(h,w,T),new Date(Date.UTC(h,w,T,L(P.hours,"hour",0,23),L(P.minutes,"minute",0,59),L(P.seconds,"seconds",0,60),HU(P.fractionalMilliseconds)))},ZU=(h)=>{let $=new Date().getUTCFullYear(),T=Math.floor($/100)*100+i(l(h));if(T<$)return T+100;return T},RU=1576800000000,qU=(h)=>{if(h.getTime()-new Date().getTime()>RU)return new Date(Date.UTC(h.getUTCFullYear()-100,h.getUTCMonth(),h.getUTCDate(),h.getUTCHours(),h.getUTCMinutes(),h.getUTCSeconds(),h.getUTCMilliseconds()));return h},E1=(h)=>{let $=s1.indexOf(h);if($<0)throw TypeError(`Invalid month: ${h}`);return $+1},OU=[31,28,31,30,31,30,31,31,30,31,30,31],EU=(h,$,T)=>{let P=OU[$];if($===1&&NU(h))P=29;if(T>P)throw TypeError(`Invalid day for ${s1[$]} in ${h}: ${T}`)},NU=(h)=>{return h%4===0&&(h%100!==0||h%400===0)},L=(h,$,T,P)=>{let w=M$(l(h));if(w<T||w>P)throw TypeError(`${$} must be between ${T} and ${P}, inclusive`);return w},HU=(h)=>{if(h===null||h===void 0)return 0;return U$("0."+h)*1000},xU=(h)=>{let $=h[0],T=1;if($=="+")T=1;else if($=="-")T=-1;else throw TypeError(`Offset direction, ${$}, must be "+" or "-"`);let P=Number(h.substring(1,3)),w=Number(h.substring(4,6));return T*(P*60+w)*60*1000},l=(h)=>{let $=0;while($<h.length-1&&h.charAt($)==="0")$++;if($===0)return h;return h.slice($)},g=function($){return Object.assign(new String($),{deserializeJSON(){return JSON.parse(String($))},toString(){return String($)},toJSON(){return String($)}})};g.from=(h)=>{if(h&&typeof h==="object"&&(h instanceof g||("deserializeJSON"in h)))return h;else if(typeof h==="string"||Object.getPrototypeOf(h)===String.prototype)return g(String(h));return g(JSON.stringify(h))};g.fromObject=g.from;function WU(h){if(h.includes(",")||h.includes('"'))h=`"${h.replace(/"/g,"\\\"")}"`;return h}var S1="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",j1="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",C1="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",Y$="(\\d?\\d)",X$="(\\d{4})",DU=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),LU=new RegExp(`^${S1}, ${Y$} ${j1} ${X$} ${C1} GMT$`),KU=new RegExp(`^${S1}, ${Y$}-${j1}-(\\d\\d) ${C1} GMT$`),BU=new RegExp(`^${S1} ${j1} ( [1-9]|\\d\\d) ${C1} ${X$}$`),zU=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],FU=(h)=>{if(h==null)return;let $=NaN;if(typeof h==="number")$=h;else if(typeof h==="string"){if(!/^-?\d*\.?\d+$/.test(h))throw TypeError("parseEpochTimestamp - numeric string invalid.");$=Number.parseFloat(h)}else if(typeof h==="object"&&h.tag===1)$=h.value;if(isNaN($)||Math.abs($)===1/0)throw TypeError("Epoch timestamps must be valid finite numbers.");return new Date(Math.round($*1000))},sU=(h)=>{if(h==null)return;if(typeof h!=="string")throw TypeError("RFC3339 timestamps must be strings");let $=DU.exec(h);if(!$)throw TypeError(`Invalid RFC3339 timestamp format ${h}`);let[,T,P,w,I,A,U,,_,f]=$;s(P,1,12),s(w,1,31),s(I,0,23),s(A,0,59),s(U,0,60);let Y=new Date(Date.UTC(Number(T),Number(P)-1,Number(w),Number(I),Number(A),Number(U),Number(_)?Math.round(parseFloat(`0.${_}`)*1000):0));if(Y.setUTCFullYear(Number(T)),f.toUpperCase()!="Z"){let[,M,X,G]=/([+-])(\d\d):(\d\d)/.exec(f)||[void 0,"+",0,0],V=M==="-"?1:-1;Y.setTime(Y.getTime()+V*(Number(X)*60*60*1000+Number(G)*60*1000))}return Y},SU=(h)=>{if(h==null)return;if(typeof h!=="string")throw TypeError("RFC7231 timestamps must be strings.");let $,T,P,w,I,A,U,_;if(_=LU.exec(h))[,$,T,P,w,I,A,U]=_;else if(_=KU.exec(h))[,$,T,P,w,I,A,U]=_,P=(Number(P)+1900).toString();else if(_=BU.exec(h))[,T,$,w,I,A,U,P]=_;if(P&&A){let f=Date.UTC(Number(P),zU.indexOf(T),Number($),Number(w),Number(I),Number(A),U?Math.round(parseFloat(`0.${U}`)*1000):0);s($,1,31),s(w,0,23),s(I,0,59),s(A,0,60);let Y=new Date(f);return Y.setUTCFullYear(Number(P)),Y}throw TypeError(`Invalid RFC7231 date-time value ${h}.`)};function s(h,$,T){let P=Number(h);if(P<$||P>T)throw Error(`Value ${P} out of range [${$}, ${T}]`)}function jU(h,$,T){if(T<=0||!Number.isInteger(T))throw Error("Invalid number of delimiters ("+T+") for splitEvery.");let P=h.split($);if(T===1)return P;let w=[],I="";for(let A=0;A<P.length;A++){if(I==="")I=P[A];else I+=$+P[A];if((A+1)%T===0)w.push(I),I=""}if(I!=="")w.push(I);return w}var CU=(h)=>{let $=h.length,T=[],P=!1,w=void 0,I=0;for(let A=0;A<$;++A){let U=h[A];switch(U){case'"':if(w!=="\\")P=!P;break;case",":if(!P)T.push(h.slice(I,A)),I=A+1;break}w=U}return T.push(h.slice(I)),T.map((A)=>{A=A.trim();let U=A.length;if(U<2)return A;if(A[0]==='"'&&A[U-1]==='"')A=A.slice(1,U-1);return A.replace(/\\"/g,'"')})},oh=/^-?\d*(\.\d+)?$/;class g0{string;type;constructor(h,$){if(this.string=h,this.type=$,!oh.test(h))throw Error('@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".')}toString(){return this.string}static[Symbol.hasInstance](h){if(!h||typeof h!=="object")return!1;let $=h;return g0.prototype.isPrototypeOf(h)||$.type==="bigDecimal"&&oh.test($.string)}}function cU(h){return new g0(String(h),"bigDecimal")}var G$={},L1={};for(let h=0;h<256;h++){let $=h.toString(16).toLowerCase();if($.length===1)$=`0${$}`;G$[h]=$,L1[$]=h}function bU(h){if(h.length%2!==0)throw Error("Hex encoded strings must have an even number length");let $=new Uint8Array(h.length/2);for(let T=0;T<h.length;T+=2){let P=h.slice(T,T+2).toLowerCase();if(P in L1)$[T/2]=L1[P];else throw Error(`Cannot decode unrecognized sequence ${P} as hexadecimal`)}return $}function J$(h){let $="";for(let T=0;T<h.byteLength;T++)$+=G$[h[T]];return $}var yU=(h)=>{if(!h)return 0;if(typeof h==="string")return Buffer.byteLength(h);else if(typeof h.byteLength==="number")return h.byteLength;else if(typeof h.size==="number")return h.size;else if(typeof h.start==="number"&&typeof h.end==="number")return h.end+1-h.start;else if(h instanceof O1.ReadStream){if(h.path!=null)return O1.lstatSync(h.path).size;else if(typeof h.fd==="number")return O1.fstatSync(h.fd).size}throw Error(`Body Length computation failed for ${h}`)},V$=(h)=>{if(typeof h==="string")return p0(h);if(ArrayBuffer.isView(h))return new Uint8Array(h.buffer,h.byteOffset,h.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(h)},Q$=(h,$)=>(T,P)=>async(w)=>{let{response:I}=await T(w);try{let A=await $(I,h);return{response:I,output:A}}catch(A){if(Object.defineProperty(A,"$response",{value:I,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in A)){try{A.message+=`
|
|
@@ -15,4 +15,4 @@ ${M}\r
|
|
|
15
15
|
`),M.push(`\r
|
|
16
16
|
`)}M.push(null)}),M}async function lU(h,$){let T=0,P=[],w=h.getReader(),I=!1;while(!I){let{done:_,value:f}=await w.read();if(f)P.push(f),T+=f?.byteLength??0;if(T>=$)break;I=_}w.releaseLock();let A=new Uint8Array(Math.min($,T)),U=0;for(let _ of P){if(_.byteLength>A.byteLength-U){A.set(_.subarray(0,A.byteLength-U),U);break}else A.set(_,U);U+=_.length}return A}var oU=(h,$)=>{if(S(h))return lU(h,$);return new Promise((T,P)=>{let w=new aU;w.limit=$,h.pipe(w),h.on("error",(I)=>{w.end(),P(I)}),w.on("error",P),w.on("finish",function(){let I=new Uint8Array(Buffer.concat(this.buffers));T(I)})})},aU=class extends D.Writable{buffers=[];limit=1/0;bytesBuffered=0;_write($,T,P){if(this.buffers.push($),this.bytesBuffered+=$.byteLength??0,this.bytesBuffered>=this.limit){let w=this.bytesBuffered-this.limit,I=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=I.subarray(0,I.byteLength-w),this.emit("finish")}P()}},eU=(h)=>{if(typeof h==="string")return h;if(typeof h!=="object"||typeof h.byteOffset!=="number"||typeof h.byteLength!=="number")throw Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return new TextDecoder("utf-8").decode(h)},h_=(h)=>{let $=h.length/4*3;if(h.slice(-2)==="==")$-=2;else if(h.slice(-1)==="=")$--;let T=new ArrayBuffer($),P=new DataView(T);for(let w=0;w<h.length;w+=4){let I=0,A=0;for(let f=w,Y=w+3;f<=Y;f++)if(h[f]!=="="){if(!(h[f]in eh))throw TypeError(`Invalid character ${h[f]} in base64 string.`);I|=eh[h[f]]<<(Y-f)*r,A+=r}else I>>=r;let U=w/4*3;I>>=A%G0;let _=Math.floor(A/G0);for(let f=0;f<_;f++){let Y=(_-f-1)*G0;P.setUint8(U+f,(I&255<<Y)>>Y)}}return new Uint8Array(T)},$_=async(h)=>{if(typeof Blob==="function"&&h instanceof Blob||h.constructor?.name==="Blob"){if(Blob.prototype.arrayBuffer!==void 0)return new Uint8Array(await h.arrayBuffer());return T_(h)}return P_(h)};async function T_(h){let $=await w_(h),T=h_($);return new Uint8Array(T)}async function P_(h){let $=[],T=h.getReader(),P=!1,w=0;while(!P){let{done:U,value:_}=await T.read();if(_)$.push(_),w+=_.length;P=U}let I=new Uint8Array(w),A=0;for(let U of $)I.set(U,A),A+=U.length;return I}function w_(h){return new Promise(($,T)=>{let P=new FileReader;P.onloadend=()=>{if(P.readyState!==2)return T(Error("Reader aborted too early"));let w=P.result??"",I=w.indexOf(","),A=I>-1?I+1:w.length;$(w.substring(A))},P.onabort=()=>T(Error("Read aborted")),P.onerror=()=>T(P.error),P.readAsDataURL(h)})}var h$="The stream has already been transformed.",I_=(h)=>{if(!$$(h)&&!S(h)){let w=h?.__proto__?.constructor?.name||h;throw Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${w}`)}let $=!1,T=async()=>{if($)throw Error(h$);return $=!0,await $_(h)},P=(w)=>{if(typeof w.stream!=="function")throw Error(`Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.
|
|
17
17
|
If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body`);return w.stream()};return Object.assign(h,{transformToByteArray:T,transformToString:async(w)=>{let I=await T();if(w==="base64")return x$(I);else if(w==="hex")return J$(I);else if(w===void 0||w==="utf8"||w==="utf-8")return eU(I);else if(typeof TextDecoder==="function")return new TextDecoder(w).decode(I);else throw Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if($)throw Error(h$);if($=!0,$$(h))return P(h);else if(S(h))return h;else throw Error(`Cannot transform payload to web stream, got ${h}`)}})},$$=(h)=>typeof Blob==="function"&&h instanceof Blob;class K$ extends D.Writable{bufferedBytes=[];_write(h,$,T){this.bufferedBytes.push(h),T()}}var A_=(h)=>typeof ReadableStream==="function"&&h instanceof ReadableStream;async function U_(h){let $=[],T=h.getReader(),P=!1,w=0;while(!P){let{done:U,value:_}=await T.read();if(_)$.push(_),w+=_.length;P=U}let I=new Uint8Array(w),A=0;for(let U of $)I.set(U,A),A+=U.length;return I}var __=(h)=>{if(A_(h))return U_(h);return new Promise(($,T)=>{let P=new K$;h.pipe(P),h.on("error",(w)=>{P.end(),T(w)}),P.on("error",T),P.on("finish",function(){let w=new Uint8Array(Buffer.concat(this.bufferedBytes));$(w)})})},T$="The stream has already been transformed.",f_=(h)=>{if(!(h instanceof D.Readable))try{return I_(h)}catch(P){let w=h?.__proto__?.constructor?.name||h;throw Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${w}`)}let $=!1,T=async()=>{if($)throw Error(T$);return $=!0,await __(h)};return Object.assign(h,{transformToByteArray:T,transformToString:async(P)=>{let w=await T();if(P===void 0||Buffer.isEncoding(P))return u(w.buffer,w.byteOffset,w.byteLength).toString(P);else return new TextDecoder(P).decode(w)},transformToWebStream:()=>{if($)throw Error(T$);if(h.readableFlowing!==null)throw Error("The stream has been consumed by other callbacks.");if(typeof D.Readable.toWeb!=="function")throw Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.");return $=!0,D.Readable.toWeb(h)}})};async function M_(h){if(typeof h.stream==="function")h=h.stream();return h.tee()}async function Y_(h){if(S(h)||N$(h))return M_(h);let $=new D.PassThrough,T=new D.PassThrough;return h.pipe($),h.pipe(T),[$,T]}class B$ extends mA(I$,p0,K1,w$){}var X_=H1.getRandomValues,z$=dA(X_),G_=z$;J_.ChecksumStream=E$;J_.Hash=O$;J_.LazyJsonString=g;J_.NumericValue=g0;J_.Uint8ArrayBlobAdapter=B$;J_._parseEpochTimestamp=FU;J_._parseRfc3339DateTimeWithOffset=sU;J_._parseRfc7231DateTime=SU;J_.calculateBodyLength=yU;J_.copyDocumentWithTransform=vA;J_.createBufferedReadable=nU;J_.createChecksumStream=tU;J_.dateToUtcString=UU;J_.deserializerMiddleware=Q$;J_.deserializerMiddlewareOption=R$;J_.expectBoolean=rA;J_.expectByte=D1;J_.expectFloat32=c0;J_.expectInt=uA;J_.expectInt32=x1;J_.expectLong=V0;J_.expectNonNull=lA;J_.expectNumber=J0;J_.expectObject=A$;J_.expectShort=W1;J_.expectString=oA;J_.expectUnion=aA;J_.fromArrayBuffer=u;J_.fromBase64=w$;J_.fromHex=bU;J_.fromString=k0;J_.fromUtf8=p0;J_.generateIdempotencyToken=G_;J_.getAwsChunkedEncodingStream=iU;J_.getSerdePlugin=kU;J_.handleFloat=$U;J_.headStream=oU;J_.isArrayBuffer=P$;J_.isBlob=N$;J_.isReadableStream=S;J_.limitedParseDouble=F1;J_.limitedParseFloat=TU;J_.limitedParseFloat32=PU;J_.logger=Q0;J_.nv=cU;J_.parseBoolean=tA;J_.parseEpochTimestamp=QU;J_.parseRfc3339DateTime=fU;J_.parseRfc3339DateTimeWithOffset=YU;J_.parseRfc7231DateTime=VU;J_.quoteHeader=WU;J_.sdkStreamMixin=f_;J_.serializerMiddleware=Z$;J_.serializerMiddlewareOption=q$;J_.splitEvery=jU;J_.splitHeader=CU;J_.splitStream=Y_;J_.strictParseByte=M$;J_.strictParseDouble=z1;J_.strictParseFloat=eA;J_.strictParseFloat32=U$;J_.strictParseInt=wU;J_.strictParseInt32=IU;J_.strictParseLong=f$;J_.strictParseShort=i;J_.toBase64=K1;J_.toHex=J$;J_.toUint8Array=V$;J_.toUtf8=I$;J_.v4=z$});
|
|
18
|
-
export{h0 as
|
|
18
|
+
export{h0 as sf,m as tf,d1 as uf,$1 as vf,Bh as wf,lh as xf,Ff as yf};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{M as o,O as s}from"./chunk-wcqfr8vr.js";import{P as i}from"./chunk-vjx0064q.js";import{Ed as p}from"./chunk-v7mg632n.js";import{Rd as n}from"./chunk-yajd975f.js";import{Uf as B}from"./chunk-t1jgx17a.js";import{$f as l}from"./chunk-q9ft590w.js";import"./chunk-knh01n2r.js";import"./chunk-jgtcfw96.js";import"./chunk-dknemkw2.js";import"./chunk-bhetpmgq.js";import"./chunk-nfg7nt13.js";import"./chunk-rcyzqa3g.js";import"./chunk-xjpvv3vp.js";import{Zg as g}from"./chunk-3kn57y8d.js";import{Lh as d}from"./chunk-nb86kh94.js";import"./chunk-9rxyq6f9.js";import"./chunk-5az84brc.js";import"./chunk-94qhpkfx.js";import"./chunk-c1g8n10t.js";import"./chunk-a2dz9nqh.js";import"./chunk-vhe92p7a.js";import{il as f}from"./chunk-kc1xmcc9.js";import"./chunk-jjjs8p0t.js";import"./chunk-xnhvt98g.js";import"./chunk-hpa7e9va.js";import"./chunk-y287zwkr.js";import"./chunk-qeg0jnxq.js";import"./chunk-9eg2ytjd.js";import"./chunk-rk2bk4s7.js";import"./chunk-e586sjb0.js";import"./chunk-b50t4jc5.js";import"./chunk-zdzxsyxs.js";import"./chunk-xny5ecn0.js";import{ro as D}from"./chunk-7myg8076.js";import"./chunk-my3cswnp.js";import"./chunk-4mvg7jt1.js";import"./chunk-cqtkxwd8.js";import"./chunk-wf4x5cjc.js";import"./chunk-mswx4k75.js";import"./chunk-vqpfpmha.js";import"./chunk-vm1ek7yf.js";import"./chunk-fd7fmvyw.js";import"./chunk-1sfcxdbw.js";import"./chunk-bgng3rdj.js";import"./chunk-qkh8697x.js";import"./chunk-qg9bt0kx.js";import"./chunk-pfkm3j8g.js";import{Vr as I}from"./chunk-hmznf0ax.js";import"./chunk-qf1dqzra.js";import"./chunk-03mbn7nj.js";import"./chunk-gr4bctqj.js";import"./chunk-732yr6qq.js";import"./chunk-73fz0cf4.js";import"./chunk-9nn4jpb7.js";import"./chunk-sh76e256.js";import"./chunk-0z1cxvk1.js";import{et as u,nt as x}from"./chunk-x3afqfww.js";import{yt as y}from"./chunk-cbmwhvxw.js";import"./chunk-9etpppyv.js";import"./chunk-9ea1n338.js";import"./chunk-ngvp6zc2.js";import"./chunk-1p6jjrea.js";import"./chunk-ks1cs80p.js";import"./chunk-a92hh67a.js";import"./chunk-qhnpq5gb.js";import"./chunk-f83wv08n.js";import T from"path";import{pathToFileURL as jj}from"url";import{EOL as Q}from"os";function $(j){let K=j.state;return{input:K.input,metadata:"metadata"in K?K.metadata:{},part:j}}function z(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(),z(j),!K?.trim())return;B.println(K),B.empty()}function U(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");z({icon:"\u2699",title:`${j.tool} ${Y}`})}function t(j){let K=j.path??"",V=`${j.kind} "${j.pattern}"`,Y=K?`in ${q(K)}`:"",H=j.count===void 0?Y:`${Y}${Y?" \xB7 ":""}${j.count} ${j.count===1?"match":"matches"}`;z({icon:"\u2731",title:V,...H&&{description:H}})}function Bj(j){t({kind:"Glob",pattern:j.input.pattern,path:j.input.path,count:j.metadata.count})}function Gj(j){t({kind:"Grep",pattern:j.input.pattern,path:j.input.path,count:j.metadata.matches})}function Jj(j){let K=q(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;z({icon:"\u2192",title:`Read ${K}`,...Y&&{description:Y}})}function Kj(j){b({icon:"\u2190",title:`Write ${q(j.input.filePath)}`},j.part.state.status==="completed"?j.part.state.output:void 0)}function Mj(j){z({icon:"%",title:`WebFetch ${j.input.url}`})}function Nj(j){let K=q(j.input.filePath),V=j.metadata.diff;b({icon:"\u2190",title:`Edit ${K}`},V)}function Vj(j){z({icon:"\u25C7",title:`Exa Code Search "${j.input.query}"`})}function Xj(j){z({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=I.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`;z({icon:w,title:L,description:S?`${H} Agent`:void 0})}function Yj(j){z({icon:"\u2192",title:`Skill "${j.input.name}"`})}function Zj(j){let K=j.part.state.status==="completed"?j.part.state.output?.trim():void 0;b({icon:"$",title:`${j.input.command}`},K)}function q(j){if(!j)return"";if(T.isAbsolute(j))return T.relative(process.cwd(),j)||".";return j}var Pj=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=T.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:jj(N).href,filename:T.basename(N),mime:W})}}if(!process.stdin.isTTY)K+=`
|
|
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"&&!u.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 Zj($(G));if(G.tool==="glob")return Bj($(G));if(G.tool==="grep")return Gj($(G));if(G.tool==="read")return Jj($(G));if(G.tool==="write")return Kj($(G));if(G.tool==="webfetch")return Mj($(G));if(G.tool==="edit")return Nj($(G));if(G.tool==="codesearch")return Vj($(G));if(G.tool==="websearch")return Xj($(G));if(G.tool==="actor")return k($(G));if(G.tool==="skill")return Yj($(G));return U(G)}catch{return U(G)}}function N(G,A){if(j.format==="json")return process.stdout.write(JSON.stringify({type:G,timestamp:Date.now(),sessionID:C,...A})+Q),!0;return!1}let W=await M.event.subscribe(),Z;async function e(G){let A=new Map,E=x.create({service:"cli.run"}),F=W.stream[Symbol.asyncIterator](),O=G.completion.then(()=>"DONE");try{while(!0){let P=await Promise.race([F.next(),O]);if(P==="DONE")break;if(P.done)break;let _=P.value;if(G.onEvent(_),E.debug("event received",{type:_.type}),_.type==="message.updated"&&_.properties.info.role==="assistant"&&j.format!=="json"&&A.get("start")!==!0)B.empty(),B.println(`> ${_.properties.info.agent} \xB7 ${_.properties.info.modelID}`),B.empty(),A.set("start",!0);if(_.type==="message.part.updated"){let J=_.properties.part;if(J.sessionID!==C)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}z({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(A.get(J.id)===!0)continue;k($(J)),A.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+Q);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 c=`Thinking: ${R}`;if(process.stdout.isTTY){B.empty(),B.println(`${B.Style.TEXT_DIM}\x1B[3m${c}\x1B[0m${B.Style.TEXT_NORMAL}`),B.empty();continue}process.stdout.write(c+Q)}}if(_.type==="session.error"){let J=_.properties;if(J.sessionID!==C||!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+Q+R:R,N("error",{error:J.error}))continue;B.error(R)}if(_.type==="permission.asked"){let J=_.properties;if(J.sessionID!==C)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 F.return?.(void 0).catch(()=>{})}}let a=await(async()=>{if(!j.agent)return;let G=j.agent;if(j.attach){let E=await M.app.agents(void 0,{throwOnError:!0}).then((O)=>O.data??[]).catch(()=>{return});if(!E){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 F=E.find((O)=>O.name===G);if(!F){B.println(B.Style.TEXT_WARNING_BOLD+"!",B.Style.TEXT_NORMAL,`agent "${G}" not found. Falling back to default agent`);return}if(F.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 A=await g.runPromise(d.Service.use((E)=>E.get(G)));if(!A){B.println(B.Style.TEXT_WARNING_BOLD+"!",B.Style.TEXT_NORMAL,`agent "${G}" not found. Falling back to default agent`);return}if(A.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})(),v=s(a),C=await w(M);if(!C)B.error("Session not found"),process.exit(1);await L(M,C);let r=x.create({service:"cli.run.poll"}),m=o({sessionID:C,query:async()=>{try{return(await M.session.status()).data?.[C]}catch(G){throw r.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:C,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:C,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{Pj as RunCommand};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{if as n6,jf as L0,kf as t6}from"./chunk-std2bgv7.js";import{Aq as PY,Jq as CQ,Oq as l6,Sq as p6,cr as A0,er as JY,fr as M0,mr as o6,nr as d6,or as r6,sr as u6,tq as F0}from"./chunk-gwfx7tx7.js";import{Ar as w0,Hr as qQ}from"./chunk-1wpjmwnh.js";import"./chunk-cqtkxwd8.js";import"./chunk-ymtcm4xd.js";import"./chunk-tdmn21z0.js";import"./chunk-s8mghr5a.js";import"./chunk-4sazy0nq.js";var y9=Object.defineProperty,s=(Q,q)=>{for(var G in q)y9(Q,G,{get:q[G],enumerable:!0})},f9="2.0.1";function m9({tools:Q,toolChoice:q}){Q=Q?.length?Q:void 0;let G=[];if(Q==null)return{tools:void 0,toolChoice:void 0,toolWarnings:G};let H=[];for(let X of Q)if(X.type==="provider")G.push({type:"unsupported",feature:`provider-defined tool ${X.id}`});else H.push({type:"function",function:{name:X.name,description:X.description,parameters:X.inputSchema,...X.strict!=null?{strict:X.strict}:{}}});if(q==null)return{tools:H,toolChoice:void 0,toolWarnings:G};let Y=q.type;switch(Y){case"auto":case"none":case"required":return{tools:H,toolChoice:Y,toolWarnings:G};case"tool":return{tools:H,toolChoice:{type:"function",function:{name:q.toolName}},toolWarnings:G};default:throw new qQ({functionality:`tool choice type: ${Y}`})}}function $6(Q){if(Q==null)return{inputTokens:{total:void 0,noCache:void 0,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:void 0,text:void 0,reasoning:void 0},raw:void 0};return{inputTokens:{total:Q.total_tokens??void 0,noCache:Q.prompt_tokens??void 0,cacheRead:Q.prompt_tokens_details?.cached_tokens??void 0,cacheWrite:Q.prompt_tokens_details?.cache_creation_input_tokens??void 0},outputTokens:{total:Q.completion_tokens??void 0,text:void 0,reasoning:void 0},raw:Q}}var F={};s(F,{$brand:()=>e6,$input:()=>SG,$output:()=>TG,NEVER:()=>i6,TimePrecision:()=>xG,ZodAny:()=>_1,ZodArray:()=>y1,ZodBase64:()=>tY,ZodBase64URL:()=>aY,ZodBigInt:()=>iQ,ZodBigIntFormat:()=>sY,ZodBoolean:()=>aQ,ZodCIDRv4:()=>uY,ZodCIDRv6:()=>nY,ZodCUID:()=>mY,ZodCUID2:()=>cY,ZodCatch:()=>W6,ZodCodec:()=>K0,ZodCustom:()=>qY,ZodCustomStringFormat:()=>ZQ,ZodDate:()=>Y0,ZodDefault:()=>Q6,ZodDiscriminatedUnion:()=>m1,ZodE164:()=>iY,ZodEmail:()=>gY,ZodEmoji:()=>yY,ZodEnum:()=>VQ,ZodError:()=>HK,ZodExactOptional:()=>i1,ZodFile:()=>t1,ZodFirstPartyTypeKind:()=>V0,ZodFunction:()=>M6,ZodGUID:()=>SQ,ZodIPv4:()=>dY,ZodIPv6:()=>rY,ZodISODate:()=>Z1,ZodISODateTime:()=>R1,ZodISODuration:()=>b1,ZodISOTime:()=>D1,ZodIntersection:()=>c1,ZodIssueCode:()=>WK,ZodJWT:()=>eY,ZodKSUID:()=>oY,ZodLazy:()=>w6,ZodLiteral:()=>n1,ZodMAC:()=>C1,ZodMap:()=>r1,ZodNaN:()=>K6,ZodNanoID:()=>fY,ZodNever:()=>h1,ZodNonOptional:()=>W0,ZodNull:()=>j1,ZodNullable:()=>s1,ZodNumber:()=>tQ,ZodNumberFormat:()=>AQ,ZodObject:()=>sQ,ZodOptional:()=>H0,ZodPipe:()=>J0,ZodPrefault:()=>q6,ZodPromise:()=>A6,ZodReadonly:()=>B6,ZodRealError:()=>p,ZodRecord:()=>YY,ZodSet:()=>u1,ZodString:()=>uQ,ZodStringFormat:()=>S,ZodSuccess:()=>H6,ZodSymbol:()=>S1,ZodTemplateLiteral:()=>U6,ZodTransform:()=>a1,ZodTuple:()=>p1,ZodType:()=>D,ZodULID:()=>lY,ZodURL:()=>nQ,ZodUUID:()=>i,ZodUndefined:()=>z1,ZodUnion:()=>QY,ZodUnknown:()=>x1,ZodVoid:()=>g1,ZodXID:()=>pY,ZodXor:()=>f1,_ZodString:()=>hY,_default:()=>Y6,_function:()=>LY,any:()=>H9,array:()=>eQ,base64:()=>l2,base64url:()=>p2,bigint:()=>Q9,boolean:()=>T1,catch:()=>J6,check:()=>C9,cidrv4:()=>m2,cidrv6:()=>c2,clone:()=>u,codec:()=>Z9,coerce:()=>h9,config:()=>h,core:()=>a6,cuid:()=>j2,cuid2:()=>v2,custom:()=>k9,date:()=>J9,decode:()=>M2,decodeAsync:()=>P2,describe:()=>T9,discriminatedUnion:()=>F9,e164:()=>o2,email:()=>V2,emoji:()=>S2,encode:()=>A2,encodeAsync:()=>L2,endsWith:()=>TY,enum:()=>X0,exactOptional:()=>e1,file:()=>O9,flattenError:()=>b0,float32:()=>a2,float64:()=>i2,formatError:()=>C0,fromJSONSchema:()=>wK,function:()=>LY,getErrorMap:()=>KK,globalRegistry:()=>o,gt:()=>GQ,gte:()=>m,guid:()=>R2,hash:()=>t2,hex:()=>n2,hostname:()=>u2,httpUrl:()=>T2,includes:()=>CY,instanceof:()=>z9,int:()=>MY,int32:()=>e2,int64:()=>Y9,intersection:()=>l1,ipv4:()=>g2,ipv6:()=>f2,iso:()=>V1,json:()=>v9,jwt:()=>d2,keyof:()=>K9,ksuid:()=>h2,lazy:()=>F6,length:()=>dQ,literal:()=>E9,locales:()=>u0,looseObject:()=>U9,looseRecord:()=>M9,lowercase:()=>DY,lt:()=>XQ,lte:()=>d,mac:()=>y2,map:()=>L9,maxLength:()=>oQ,maxSize:()=>RQ,meta:()=>S9,mime:()=>SY,minLength:()=>NQ,minSize:()=>HQ,multipleOf:()=>$Q,nan:()=>R9,nanoid:()=>z2,nativeEnum:()=>$9,negative:()=>L1,never:()=>Q0,nonnegative:()=>$1,nonoptional:()=>G6,nonpositive:()=>P1,normalize:()=>zY,null:()=>v1,nullable:()=>jQ,nullish:()=>I9,number:()=>k1,object:()=>B9,optional:()=>zQ,overwrite:()=>YQ,parse:()=>N2,parseAsync:()=>U2,partialRecord:()=>A9,pipe:()=>vQ,positive:()=>M1,prefault:()=>X6,preprocess:()=>_9,prettifyError:()=>wq,promise:()=>b9,property:()=>E1,readonly:()=>N6,record:()=>d1,refine:()=>L6,regex:()=>ZY,regexes:()=>FQ,registry:()=>n0,safeDecode:()=>E2,safeDecodeAsync:()=>I2,safeEncode:()=>$2,safeEncodeAsync:()=>O2,safeParse:()=>w2,safeParseAsync:()=>F2,set:()=>P9,setErrorMap:()=>JK,size:()=>pQ,slugify:()=>xY,startsWith:()=>kY,strictObject:()=>N9,string:()=>AY,stringFormat:()=>r2,stringbool:()=>j9,success:()=>V9,superRefine:()=>P6,symbol:()=>X9,templateLiteral:()=>D9,toJSONSchema:()=>q2,toLowerCase:()=>vY,toUpperCase:()=>_Y,transform:()=>G0,treeifyError:()=>Nq,trim:()=>jY,tuple:()=>o1,uint32:()=>s2,uint64:()=>q9,ulid:()=>_2,undefined:()=>G9,union:()=>q0,unknown:()=>UQ,uppercase:()=>bY,url:()=>k2,util:()=>C,uuid:()=>Z2,uuidv4:()=>D2,uuidv6:()=>b2,uuidv7:()=>C2,void:()=>W9,xid:()=>x2,xor:()=>w9});var a6={};s(a6,{$ZodAny:()=>dX,$ZodArray:()=>aX,$ZodAsyncError:()=>KQ,$ZodBase64:()=>vX,$ZodBase64URL:()=>xX,$ZodBigInt:()=>p0,$ZodBigIntFormat:()=>cX,$ZodBoolean:()=>l0,$ZodCIDRv4:()=>zX,$ZodCIDRv6:()=>jX,$ZodCUID:()=>EX,$ZodCUID2:()=>OX,$ZodCatch:()=>PG,$ZodCheck:()=>j,$ZodCheckBigIntFormat:()=>tq,$ZodCheckEndsWith:()=>JX,$ZodCheckGreaterThan:()=>f0,$ZodCheckIncludes:()=>HX,$ZodCheckLengthEquals:()=>YX,$ZodCheckLessThan:()=>y0,$ZodCheckLowerCase:()=>XX,$ZodCheckMaxLength:()=>sq,$ZodCheckMaxSize:()=>aq,$ZodCheckMimeType:()=>BX,$ZodCheckMinLength:()=>QX,$ZodCheckMinSize:()=>iq,$ZodCheckMultipleOf:()=>uq,$ZodCheckNumberFormat:()=>nq,$ZodCheckOverwrite:()=>NX,$ZodCheckProperty:()=>KX,$ZodCheckRegex:()=>qX,$ZodCheckSizeEquals:()=>eq,$ZodCheckStartsWith:()=>WX,$ZodCheckStringFormat:()=>cQ,$ZodCheckUpperCase:()=>GX,$ZodCodec:()=>r0,$ZodCustom:()=>DG,$ZodCustomStringFormat:()=>fX,$ZodDate:()=>tX,$ZodDefault:()=>FG,$ZodDiscriminatedUnion:()=>qG,$ZodE164:()=>hX,$ZodEmail:()=>MX,$ZodEmoji:()=>PX,$ZodEncodeError:()=>$Y,$ZodEnum:()=>JG,$ZodError:()=>D0,$ZodExactOptional:()=>UG,$ZodFile:()=>BG,$ZodFunction:()=>VG,$ZodGUID:()=>FX,$ZodIPv4:()=>kX,$ZodIPv6:()=>TX,$ZodISODate:()=>DX,$ZodISODateTime:()=>ZX,$ZodISODuration:()=>CX,$ZodISOTime:()=>bX,$ZodIntersection:()=>XG,$ZodJWT:()=>yX,$ZodKSUID:()=>RX,$ZodLazy:()=>ZG,$ZodLiteral:()=>KG,$ZodMAC:()=>SX,$ZodMap:()=>HG,$ZodNaN:()=>$G,$ZodNanoID:()=>$X,$ZodNever:()=>uX,$ZodNonOptional:()=>MG,$ZodNull:()=>oX,$ZodNullable:()=>wG,$ZodNumber:()=>c0,$ZodNumberFormat:()=>mX,$ZodObject:()=>sX,$ZodObjectJIT:()=>QG,$ZodOptional:()=>d0,$ZodPipe:()=>EG,$ZodPrefault:()=>AG,$ZodPromise:()=>RG,$ZodReadonly:()=>OG,$ZodRealError:()=>l,$ZodRecord:()=>GG,$ZodRegistry:()=>zG,$ZodSet:()=>WG,$ZodString:()=>lQ,$ZodStringFormat:()=>T,$ZodSuccess:()=>LG,$ZodSymbol:()=>lX,$ZodTemplateLiteral:()=>IG,$ZodTransform:()=>NG,$ZodTuple:()=>o0,$ZodType:()=>Z,$ZodULID:()=>IX,$ZodURL:()=>LX,$ZodUUID:()=>AX,$ZodUndefined:()=>pX,$ZodUnion:()=>VY,$ZodUnknown:()=>rX,$ZodVoid:()=>nX,$ZodXID:()=>VX,$ZodXor:()=>YG,$brand:()=>e6,$constructor:()=>U,$input:()=>SG,$output:()=>TG,Doc:()=>UX,JSONSchema:()=>GK,JSONSchemaGenerator:()=>XK,NEVER:()=>i6,TimePrecision:()=>xG,_any:()=>q8,_array:()=>B8,_base64:()=>U1,_base64url:()=>w1,_bigint:()=>tG,_boolean:()=>uG,_catch:()=>aJ,_check:()=>A8,_cidrv4:()=>B1,_cidrv6:()=>N1,_coercedBigint:()=>aG,_coercedBoolean:()=>nG,_coercedDate:()=>J8,_coercedNumber:()=>cG,_coercedString:()=>vG,_cuid:()=>q1,_cuid2:()=>X1,_custom:()=>U8,_date:()=>W8,_decode:()=>T0,_decodeAsync:()=>z0,_default:()=>uJ,_discriminatedUnion:()=>xJ,_e164:()=>F1,_email:()=>t0,_emoji:()=>Q1,_encode:()=>k0,_encodeAsync:()=>S0,_endsWith:()=>TY,_enum:()=>cJ,_file:()=>N8,_float32:()=>pG,_float64:()=>oG,_gt:()=>GQ,_gte:()=>m,_guid:()=>FY,_includes:()=>CY,_int:()=>lG,_int32:()=>dG,_int64:()=>iG,_intersection:()=>hJ,_ipv4:()=>J1,_ipv6:()=>K1,_isoDate:()=>gG,_isoDateTime:()=>hG,_isoDuration:()=>fG,_isoTime:()=>yG,_jwt:()=>A1,_ksuid:()=>W1,_lazy:()=>QK,_length:()=>dQ,_literal:()=>pJ,_lowercase:()=>DY,_lt:()=>XQ,_lte:()=>d,_mac:()=>_G,_map:()=>fJ,_max:()=>d,_maxLength:()=>oQ,_maxSize:()=>RQ,_mime:()=>SY,_min:()=>m,_minLength:()=>NQ,_minSize:()=>HQ,_multipleOf:()=>$Q,_nan:()=>K8,_nanoid:()=>Y1,_nativeEnum:()=>lJ,_negative:()=>L1,_never:()=>G8,_nonnegative:()=>$1,_nonoptional:()=>nJ,_nonpositive:()=>P1,_normalize:()=>zY,_null:()=>Y8,_nullable:()=>rJ,_number:()=>mG,_optional:()=>dJ,_overwrite:()=>YQ,_parse:()=>xQ,_parseAsync:()=>hQ,_pipe:()=>iJ,_positive:()=>M1,_promise:()=>YK,_property:()=>E1,_readonly:()=>eJ,_record:()=>yJ,_refine:()=>w8,_regex:()=>ZY,_safeDecode:()=>v0,_safeDecodeAsync:()=>x0,_safeEncode:()=>j0,_safeEncodeAsync:()=>_0,_safeParse:()=>gQ,_safeParseAsync:()=>yQ,_set:()=>mJ,_size:()=>pQ,_slugify:()=>xY,_startsWith:()=>kY,_string:()=>jG,_stringFormat:()=>rQ,_stringbool:()=>P8,_success:()=>tJ,_superRefine:()=>F8,_symbol:()=>sG,_templateLiteral:()=>sJ,_toLowerCase:()=>vY,_toUpperCase:()=>_Y,_transform:()=>oJ,_trim:()=>jY,_tuple:()=>gJ,_uint32:()=>rG,_uint64:()=>eG,_ulid:()=>G1,_undefined:()=>Q8,_union:()=>vJ,_unknown:()=>X8,_uppercase:()=>bY,_url:()=>RY,_uuid:()=>a0,_uuidv4:()=>i0,_uuidv6:()=>e0,_uuidv7:()=>s0,_void:()=>H8,_xid:()=>H1,_xor:()=>_J,clone:()=>u,config:()=>h,createStandardJSONSchemaMethod:()=>TQ,createToJSONSchemaMethod:()=>$8,decode:()=>AH,decodeAsync:()=>LH,describe:()=>M8,encode:()=>FH,encodeAsync:()=>MH,extractDefs:()=>OQ,finalize:()=>IQ,flattenError:()=>b0,formatError:()=>C0,globalConfig:()=>KY,globalRegistry:()=>o,initializeContext:()=>EQ,isValidBase64:()=>m0,isValidBase64URL:()=>_X,isValidJWT:()=>gX,locales:()=>u0,meta:()=>L8,parse:()=>$0,parseAsync:()=>E0,prettifyError:()=>wq,process:()=>k,regexes:()=>FQ,registry:()=>n0,safeDecode:()=>$H,safeDecodeAsync:()=>OH,safeEncode:()=>PH,safeEncodeAsync:()=>EH,safeParse:()=>Fq,safeParseAsync:()=>Aq,toDotPath:()=>Uq,toJSONSchema:()=>q2,treeifyError:()=>Nq,util:()=>C,version:()=>wX});var i6=Object.freeze({status:"aborted"});function U(Q,q,G){function H(J,K){if(!J._zod)Object.defineProperty(J,"_zod",{value:{def:K,constr:W,traits:new Set},enumerable:!1});if(J._zod.traits.has(Q))return;J._zod.traits.add(Q),q(J,K);let B=W.prototype,N=Object.keys(B);for(let w=0;w<N.length;w++){let L=N[w];if(!(L in J))J[L]=B[L].bind(J)}}let Y=G?.Parent??Object;class X extends Y{}Object.defineProperty(X,"name",{value:Q});function W(J){var K;let B=G?.Parent?new X:this;H(B,J),(K=B._zod).deferred??(K.deferred=[]);for(let N of B._zod.deferred)N();return B}return Object.defineProperty(W,"init",{value:H}),Object.defineProperty(W,Symbol.hasInstance,{value:(J)=>{if(G?.Parent&&J instanceof G.Parent)return!0;return J?._zod?.traits?.has(Q)}}),Object.defineProperty(W,"name",{value:Q}),W}var e6=Symbol("zod_brand"),KQ=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},$Y=class extends Error{constructor(Q){super(`Encountered unidirectional transform during encode: ${Q}`);this.name="ZodEncodeError"}},KY={};function h(Q){if(Q)Object.assign(KY,Q);return KY}var C={};s(C,{BIGINT_FORMAT_RANGES:()=>Wq,Class:()=>wH,NUMBER_FORMAT_RANGES:()=>Hq,aborted:()=>JQ,allowsEval:()=>Yq,assert:()=>d9,assertEqual:()=>c9,assertIs:()=>p9,assertNever:()=>o9,assertNotEqual:()=>l9,assignProp:()=>WQ,base64ToUint8Array:()=>Jq,base64urlToUint8Array:()=>KH,cached:()=>_Q,captureStackTrace:()=>Z0,cleanEnum:()=>JH,cleanRegex:()=>EY,clone:()=>u,cloneDef:()=>u9,createTransparentProxy:()=>s9,defineLazy:()=>b,esc:()=>P0,escapeRegex:()=>e,extend:()=>qH,finalizeIssue:()=>r,floatSafeRemainder:()=>s6,getElementAtPath:()=>n9,getEnumValues:()=>R0,getLengthableOrigin:()=>IY,getParsedType:()=>e9,getSizableOrigin:()=>OY,hexToUint8Array:()=>NH,isObject:()=>LQ,isPlainObject:()=>BQ,issue:()=>UY,joinValues:()=>M,jsonStringifyReplacer:()=>BY,merge:()=>GH,mergeDefs:()=>QQ,normalizeParams:()=>P,nullish:()=>wQ,numKeys:()=>i9,objectClone:()=>r9,omit:()=>YH,optionalKeys:()=>Gq,parsedType:()=>V,partial:()=>HH,pick:()=>QH,prefixIssues:()=>a,primitiveTypes:()=>Xq,promiseAllObject:()=>t9,propertyKeyTypes:()=>NY,randomString:()=>a9,required:()=>WH,safeExtend:()=>XH,shallowClone:()=>qq,slugify:()=>Qq,stringifyPrimitive:()=>I,uint8ArrayToBase64:()=>Kq,uint8ArrayToBase64url:()=>BH,uint8ArrayToHex:()=>UH,unwrapMessage:()=>kQ});function c9(Q){return Q}function l9(Q){return Q}function p9(Q){}function o9(Q){throw Error("Unexpected value in exhaustive check")}function d9(Q){}function R0(Q){let q=Object.values(Q).filter((H)=>typeof H==="number");return Object.entries(Q).filter(([H,Y])=>q.indexOf(+H)===-1).map(([H,Y])=>Y)}function M(Q,q="|"){return Q.map((G)=>I(G)).join(q)}function BY(Q,q){if(typeof q==="bigint")return q.toString();return q}function _Q(Q){return{get value(){{let G=Q();return Object.defineProperty(this,"value",{value:G}),G}throw Error("cached value already set")}}}function wQ(Q){return Q===null||Q===void 0}function EY(Q){let q=Q.startsWith("^")?1:0,G=Q.endsWith("$")?Q.length-1:Q.length;return Q.slice(q,G)}function s6(Q,q){let G=(Q.toString().split(".")[1]||"").length,H=q.toString(),Y=(H.split(".")[1]||"").length;if(Y===0&&/\d?e-\d?/.test(H)){let K=H.match(/\d?e-(\d?)/);if(K?.[1])Y=Number.parseInt(K[1])}let X=G>Y?G:Y,W=Number.parseInt(Q.toFixed(X).replace(".","")),J=Number.parseInt(q.toFixed(X).replace(".",""));return W%J/10**X}var E6=Symbol("evaluating");function b(Q,q,G){let H=void 0;Object.defineProperty(Q,q,{get(){if(H===E6)return;if(H===void 0)H=E6,H=G();return H},set(Y){Object.defineProperty(Q,q,{value:Y})},configurable:!0})}function r9(Q){return Object.create(Object.getPrototypeOf(Q),Object.getOwnPropertyDescriptors(Q))}function WQ(Q,q,G){Object.defineProperty(Q,q,{value:G,writable:!0,enumerable:!0,configurable:!0})}function QQ(...Q){let q={};for(let G of Q){let H=Object.getOwnPropertyDescriptors(G);Object.assign(q,H)}return Object.defineProperties({},q)}function u9(Q){return QQ(Q._zod.def)}function n9(Q,q){if(!q)return Q;return q.reduce((G,H)=>G?.[H],Q)}function t9(Q){let q=Object.keys(Q),G=q.map((H)=>Q[H]);return Promise.all(G).then((H)=>{let Y={};for(let X=0;X<q.length;X++)Y[q[X]]=H[X];return Y})}function a9(Q=10){let G="";for(let H=0;H<Q;H++)G+="abcdefghijklmnopqrstuvwxyz"[Math.floor(Math.random()*26)];return G}function P0(Q){return JSON.stringify(Q)}function Qq(Q){return Q.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Z0="captureStackTrace"in Error?Error.captureStackTrace:(...Q)=>{};function LQ(Q){return typeof Q==="object"&&Q!==null&&!Array.isArray(Q)}var Yq=_Q(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch(Q){return!1}});function BQ(Q){if(LQ(Q)===!1)return!1;let q=Q.constructor;if(q===void 0)return!0;if(typeof q!=="function")return!0;let G=q.prototype;if(LQ(G)===!1)return!1;if(Object.prototype.hasOwnProperty.call(G,"isPrototypeOf")===!1)return!1;return!0}function qq(Q){if(BQ(Q))return{...Q};if(Array.isArray(Q))return[...Q];return Q}function i9(Q){let q=0;for(let G in Q)if(Object.prototype.hasOwnProperty.call(Q,G))q++;return q}var e9=(Q)=>{let q=typeof Q;switch(q){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(Q)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":if(Array.isArray(Q))return"array";if(Q===null)return"null";if(Q.then&&typeof Q.then==="function"&&Q.catch&&typeof Q.catch==="function")return"promise";if(typeof Map<"u"&&Q instanceof Map)return"map";if(typeof Set<"u"&&Q instanceof Set)return"set";if(typeof Date<"u"&&Q instanceof Date)return"date";if(typeof File<"u"&&Q instanceof File)return"file";return"object";default:throw Error(`Unknown data type: ${q}`)}},NY=new Set(["string","number","symbol"]),Xq=new Set(["string","number","bigint","boolean","symbol","undefined"]);function e(Q){return Q.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function u(Q,q,G){let H=new Q._zod.constr(q??Q._zod.def);if(!q||G?.parent)H._zod.parent=Q;return H}function P(Q){let q=Q;if(!q)return{};if(typeof q==="string")return{error:()=>q};if(q?.message!==void 0){if(q?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");q.error=q.message}if(delete q.message,typeof q.error==="string")return{...q,error:()=>q.error};return q}function s9(Q){let q;return new Proxy({},{get(G,H,Y){return q??(q=Q()),Reflect.get(q,H,Y)},set(G,H,Y,X){return q??(q=Q()),Reflect.set(q,H,Y,X)},has(G,H){return q??(q=Q()),Reflect.has(q,H)},deleteProperty(G,H){return q??(q=Q()),Reflect.deleteProperty(q,H)},ownKeys(G){return q??(q=Q()),Reflect.ownKeys(q)},getOwnPropertyDescriptor(G,H){return q??(q=Q()),Reflect.getOwnPropertyDescriptor(q,H)},defineProperty(G,H,Y){return q??(q=Q()),Reflect.defineProperty(q,H,Y)}})}function I(Q){if(typeof Q==="bigint")return Q.toString()+"n";if(typeof Q==="string")return`"${Q}"`;return`${Q}`}function Gq(Q){return Object.keys(Q).filter((q)=>{return Q[q]._zod.optin==="optional"&&Q[q]._zod.optout==="optional"})}var Hq={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-340282346638528860000000000000000000000,340282346638528860000000000000000000000],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Wq={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function QH(Q,q){let G=Q._zod.def,H=G.checks;if(H&&H.length>0)throw Error(".pick() cannot be used on object schemas containing refinements");let X=QQ(Q._zod.def,{get shape(){let W={};for(let J in q){if(!(J in G.shape))throw Error(`Unrecognized key: "${J}"`);if(!q[J])continue;W[J]=G.shape[J]}return WQ(this,"shape",W),W},checks:[]});return u(Q,X)}function YH(Q,q){let G=Q._zod.def,H=G.checks;if(H&&H.length>0)throw Error(".omit() cannot be used on object schemas containing refinements");let X=QQ(Q._zod.def,{get shape(){let W={...Q._zod.def.shape};for(let J in q){if(!(J in G.shape))throw Error(`Unrecognized key: "${J}"`);if(!q[J])continue;delete W[J]}return WQ(this,"shape",W),W},checks:[]});return u(Q,X)}function qH(Q,q){if(!BQ(q))throw Error("Invalid input to extend: expected a plain object");let G=Q._zod.def.checks;if(G&&G.length>0){let X=Q._zod.def.shape;for(let W in q)if(Object.getOwnPropertyDescriptor(X,W)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let Y=QQ(Q._zod.def,{get shape(){let X={...Q._zod.def.shape,...q};return WQ(this,"shape",X),X}});return u(Q,Y)}function XH(Q,q){if(!BQ(q))throw Error("Invalid input to safeExtend: expected a plain object");let G=QQ(Q._zod.def,{get shape(){let H={...Q._zod.def.shape,...q};return WQ(this,"shape",H),H}});return u(Q,G)}function GH(Q,q){let G=QQ(Q._zod.def,{get shape(){let H={...Q._zod.def.shape,...q._zod.def.shape};return WQ(this,"shape",H),H},get catchall(){return q._zod.def.catchall},checks:[]});return u(Q,G)}function HH(Q,q,G){let Y=q._zod.def.checks;if(Y&&Y.length>0)throw Error(".partial() cannot be used on object schemas containing refinements");let W=QQ(q._zod.def,{get shape(){let J=q._zod.def.shape,K={...J};if(G)for(let B in G){if(!(B in J))throw Error(`Unrecognized key: "${B}"`);if(!G[B])continue;K[B]=Q?new Q({type:"optional",innerType:J[B]}):J[B]}else for(let B in J)K[B]=Q?new Q({type:"optional",innerType:J[B]}):J[B];return WQ(this,"shape",K),K},checks:[]});return u(q,W)}function WH(Q,q,G){let H=QQ(q._zod.def,{get shape(){let Y=q._zod.def.shape,X={...Y};if(G)for(let W in G){if(!(W in X))throw Error(`Unrecognized key: "${W}"`);if(!G[W])continue;X[W]=new Q({type:"nonoptional",innerType:Y[W]})}else for(let W in Y)X[W]=new Q({type:"nonoptional",innerType:Y[W]});return WQ(this,"shape",X),X}});return u(q,H)}function JQ(Q,q=0){if(Q.aborted===!0)return!0;for(let G=q;G<Q.issues.length;G++)if(Q.issues[G]?.continue!==!0)return!0;return!1}function a(Q,q){return q.map((G)=>{var H;return(H=G).path??(H.path=[]),G.path.unshift(Q),G})}function kQ(Q){return typeof Q==="string"?Q:Q?.message}function r(Q,q,G){let H={...Q,path:Q.path??[]};if(!Q.message){let Y=kQ(Q.inst?._zod.def?.error?.(Q))??kQ(q?.error?.(Q))??kQ(G.customError?.(Q))??kQ(G.localeError?.(Q))??"Invalid input";H.message=Y}if(delete H.inst,delete H.continue,!q?.reportInput)delete H.input;return H}function OY(Q){if(Q instanceof Set)return"set";if(Q instanceof Map)return"map";if(Q instanceof File)return"file";return"unknown"}function IY(Q){if(Array.isArray(Q))return"array";if(typeof Q==="string")return"string";return"unknown"}function V(Q){let q=typeof Q;switch(q){case"number":return Number.isNaN(Q)?"nan":"number";case"object":{if(Q===null)return"null";if(Array.isArray(Q))return"array";let G=Q;if(G&&Object.getPrototypeOf(G)!==Object.prototype&&"constructor"in G&&G.constructor)return G.constructor.name}}return q}function UY(...Q){let[q,G,H]=Q;if(typeof q==="string")return{message:q,code:"custom",input:G,inst:H};return{...q}}function JH(Q){return Object.entries(Q).filter(([q,G])=>{return Number.isNaN(Number.parseInt(q,10))}).map((q)=>q[1])}function Jq(Q){let q=atob(Q),G=new Uint8Array(q.length);for(let H=0;H<q.length;H++)G[H]=q.charCodeAt(H);return G}function Kq(Q){let q="";for(let G=0;G<Q.length;G++)q+=String.fromCharCode(Q[G]);return btoa(q)}function KH(Q){let q=Q.replace(/-/g,"+").replace(/_/g,"/"),G="=".repeat((4-q.length%4)%4);return Jq(q+G)}function BH(Q){return Kq(Q).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function NH(Q){let q=Q.replace(/^0x/,"");if(q.length%2!==0)throw Error("Invalid hex string length");let G=new Uint8Array(q.length/2);for(let H=0;H<q.length;H+=2)G[H/2]=Number.parseInt(q.slice(H,H+2),16);return G}function UH(Q){return Array.from(Q).map((q)=>q.toString(16).padStart(2,"0")).join("")}var wH=class{constructor(...Q){}},Bq=(Q,q)=>{Q.name="$ZodError",Object.defineProperty(Q,"_zod",{value:Q._zod,enumerable:!1}),Object.defineProperty(Q,"issues",{value:q,enumerable:!1}),Q.message=JSON.stringify(q,BY,2),Object.defineProperty(Q,"toString",{value:()=>Q.message,enumerable:!1})},D0=U("$ZodError",Bq),l=U("$ZodError",Bq,{Parent:Error});function b0(Q,q=(G)=>G.message){let G={},H=[];for(let Y of Q.issues)if(Y.path.length>0)G[Y.path[0]]=G[Y.path[0]]||[],G[Y.path[0]].push(q(Y));else H.push(q(Y));return{formErrors:H,fieldErrors:G}}function C0(Q,q=(G)=>G.message){let G={_errors:[]},H=(Y)=>{for(let X of Y.issues)if(X.code==="invalid_union"&&X.errors.length)X.errors.map((W)=>H({issues:W}));else if(X.code==="invalid_key")H({issues:X.issues});else if(X.code==="invalid_element")H({issues:X.issues});else if(X.path.length===0)G._errors.push(q(X));else{let W=G,J=0;while(J<X.path.length){let K=X.path[J];if(J!==X.path.length-1)W[K]=W[K]||{_errors:[]};else W[K]=W[K]||{_errors:[]},W[K]._errors.push(q(X));W=W[K],J++}}};return H(Q),G}function Nq(Q,q=(G)=>G.message){let G={errors:[]},H=(Y,X=[])=>{var W,J;for(let K of Y.issues)if(K.code==="invalid_union"&&K.errors.length)K.errors.map((B)=>H({issues:B},K.path));else if(K.code==="invalid_key")H({issues:K.issues},K.path);else if(K.code==="invalid_element")H({issues:K.issues},K.path);else{let B=[...X,...K.path];if(B.length===0){G.errors.push(q(K));continue}let N=G,w=0;while(w<B.length){let L=B[w],A=w===B.length-1;if(typeof L==="string")N.properties??(N.properties={}),(W=N.properties)[L]??(W[L]={errors:[]}),N=N.properties[L];else N.items??(N.items=[]),(J=N.items)[L]??(J[L]={errors:[]}),N=N.items[L];if(A)N.errors.push(q(K));w++}}};return H(Q),G}function Uq(Q){let q=[],G=Q.map((H)=>typeof H==="object"?H.key:H);for(let H of G)if(typeof H==="number")q.push(`[${H}]`);else if(typeof H==="symbol")q.push(`[${JSON.stringify(String(H))}]`);else if(/[^\w$]/.test(H))q.push(`[${JSON.stringify(H)}]`);else{if(q.length)q.push(".");q.push(H)}return q.join("")}function wq(Q){let q=[],G=[...Q.issues].sort((H,Y)=>(H.path??[]).length-(Y.path??[]).length);for(let H of G)if(q.push(`\u2716 ${H.message}`),H.path?.length)q.push(` \u2192 at ${Uq(H.path)}`);return q.join(`
|
|
2
|
+
import{kf as n6,lf as L0,mf as t6}from"./chunk-mxhb5adq.js";import{Hp as A0,Jp as JY,Kp as M0,Rp as o6,Sp as d6,Tp as r6,Xp as u6,Yo as F0,dp as PY,mp as CQ,rp as l6,vp as p6}from"./chunk-my3cswnp.js";import{dq as w0,kq as qQ}from"./chunk-4mvg7jt1.js";import"./chunk-cqtkxwd8.js";import"./chunk-wf4x5cjc.js";import"./chunk-9ea1n338.js";import"./chunk-ngvp6zc2.js";import"./chunk-f83wv08n.js";var y9=Object.defineProperty,s=(Q,q)=>{for(var G in q)y9(Q,G,{get:q[G],enumerable:!0})},f9="2.0.1";function m9({tools:Q,toolChoice:q}){Q=Q?.length?Q:void 0;let G=[];if(Q==null)return{tools:void 0,toolChoice:void 0,toolWarnings:G};let H=[];for(let X of Q)if(X.type==="provider")G.push({type:"unsupported",feature:`provider-defined tool ${X.id}`});else H.push({type:"function",function:{name:X.name,description:X.description,parameters:X.inputSchema,...X.strict!=null?{strict:X.strict}:{}}});if(q==null)return{tools:H,toolChoice:void 0,toolWarnings:G};let Y=q.type;switch(Y){case"auto":case"none":case"required":return{tools:H,toolChoice:Y,toolWarnings:G};case"tool":return{tools:H,toolChoice:{type:"function",function:{name:q.toolName}},toolWarnings:G};default:throw new qQ({functionality:`tool choice type: ${Y}`})}}function $6(Q){if(Q==null)return{inputTokens:{total:void 0,noCache:void 0,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:void 0,text:void 0,reasoning:void 0},raw:void 0};return{inputTokens:{total:Q.total_tokens??void 0,noCache:Q.prompt_tokens??void 0,cacheRead:Q.prompt_tokens_details?.cached_tokens??void 0,cacheWrite:Q.prompt_tokens_details?.cache_creation_input_tokens??void 0},outputTokens:{total:Q.completion_tokens??void 0,text:void 0,reasoning:void 0},raw:Q}}var F={};s(F,{$brand:()=>e6,$input:()=>SG,$output:()=>TG,NEVER:()=>i6,TimePrecision:()=>xG,ZodAny:()=>_1,ZodArray:()=>y1,ZodBase64:()=>tY,ZodBase64URL:()=>aY,ZodBigInt:()=>iQ,ZodBigIntFormat:()=>sY,ZodBoolean:()=>aQ,ZodCIDRv4:()=>uY,ZodCIDRv6:()=>nY,ZodCUID:()=>mY,ZodCUID2:()=>cY,ZodCatch:()=>W6,ZodCodec:()=>K0,ZodCustom:()=>qY,ZodCustomStringFormat:()=>ZQ,ZodDate:()=>Y0,ZodDefault:()=>Q6,ZodDiscriminatedUnion:()=>m1,ZodE164:()=>iY,ZodEmail:()=>gY,ZodEmoji:()=>yY,ZodEnum:()=>VQ,ZodError:()=>HK,ZodExactOptional:()=>i1,ZodFile:()=>t1,ZodFirstPartyTypeKind:()=>V0,ZodFunction:()=>M6,ZodGUID:()=>SQ,ZodIPv4:()=>dY,ZodIPv6:()=>rY,ZodISODate:()=>Z1,ZodISODateTime:()=>R1,ZodISODuration:()=>b1,ZodISOTime:()=>D1,ZodIntersection:()=>c1,ZodIssueCode:()=>WK,ZodJWT:()=>eY,ZodKSUID:()=>oY,ZodLazy:()=>w6,ZodLiteral:()=>n1,ZodMAC:()=>C1,ZodMap:()=>r1,ZodNaN:()=>K6,ZodNanoID:()=>fY,ZodNever:()=>h1,ZodNonOptional:()=>W0,ZodNull:()=>j1,ZodNullable:()=>s1,ZodNumber:()=>tQ,ZodNumberFormat:()=>AQ,ZodObject:()=>sQ,ZodOptional:()=>H0,ZodPipe:()=>J0,ZodPrefault:()=>q6,ZodPromise:()=>A6,ZodReadonly:()=>B6,ZodRealError:()=>p,ZodRecord:()=>YY,ZodSet:()=>u1,ZodString:()=>uQ,ZodStringFormat:()=>S,ZodSuccess:()=>H6,ZodSymbol:()=>S1,ZodTemplateLiteral:()=>U6,ZodTransform:()=>a1,ZodTuple:()=>p1,ZodType:()=>D,ZodULID:()=>lY,ZodURL:()=>nQ,ZodUUID:()=>i,ZodUndefined:()=>z1,ZodUnion:()=>QY,ZodUnknown:()=>x1,ZodVoid:()=>g1,ZodXID:()=>pY,ZodXor:()=>f1,_ZodString:()=>hY,_default:()=>Y6,_function:()=>LY,any:()=>H9,array:()=>eQ,base64:()=>l2,base64url:()=>p2,bigint:()=>Q9,boolean:()=>T1,catch:()=>J6,check:()=>C9,cidrv4:()=>m2,cidrv6:()=>c2,clone:()=>u,codec:()=>Z9,coerce:()=>h9,config:()=>h,core:()=>a6,cuid:()=>j2,cuid2:()=>v2,custom:()=>k9,date:()=>J9,decode:()=>M2,decodeAsync:()=>P2,describe:()=>T9,discriminatedUnion:()=>F9,e164:()=>o2,email:()=>V2,emoji:()=>S2,encode:()=>A2,encodeAsync:()=>L2,endsWith:()=>TY,enum:()=>X0,exactOptional:()=>e1,file:()=>O9,flattenError:()=>b0,float32:()=>a2,float64:()=>i2,formatError:()=>C0,fromJSONSchema:()=>wK,function:()=>LY,getErrorMap:()=>KK,globalRegistry:()=>o,gt:()=>GQ,gte:()=>m,guid:()=>R2,hash:()=>t2,hex:()=>n2,hostname:()=>u2,httpUrl:()=>T2,includes:()=>CY,instanceof:()=>z9,int:()=>MY,int32:()=>e2,int64:()=>Y9,intersection:()=>l1,ipv4:()=>g2,ipv6:()=>f2,iso:()=>V1,json:()=>v9,jwt:()=>d2,keyof:()=>K9,ksuid:()=>h2,lazy:()=>F6,length:()=>dQ,literal:()=>E9,locales:()=>u0,looseObject:()=>U9,looseRecord:()=>M9,lowercase:()=>DY,lt:()=>XQ,lte:()=>d,mac:()=>y2,map:()=>L9,maxLength:()=>oQ,maxSize:()=>RQ,meta:()=>S9,mime:()=>SY,minLength:()=>NQ,minSize:()=>HQ,multipleOf:()=>$Q,nan:()=>R9,nanoid:()=>z2,nativeEnum:()=>$9,negative:()=>L1,never:()=>Q0,nonnegative:()=>$1,nonoptional:()=>G6,nonpositive:()=>P1,normalize:()=>zY,null:()=>v1,nullable:()=>jQ,nullish:()=>I9,number:()=>k1,object:()=>B9,optional:()=>zQ,overwrite:()=>YQ,parse:()=>N2,parseAsync:()=>U2,partialRecord:()=>A9,pipe:()=>vQ,positive:()=>M1,prefault:()=>X6,preprocess:()=>_9,prettifyError:()=>wq,promise:()=>b9,property:()=>E1,readonly:()=>N6,record:()=>d1,refine:()=>L6,regex:()=>ZY,regexes:()=>FQ,registry:()=>n0,safeDecode:()=>E2,safeDecodeAsync:()=>I2,safeEncode:()=>$2,safeEncodeAsync:()=>O2,safeParse:()=>w2,safeParseAsync:()=>F2,set:()=>P9,setErrorMap:()=>JK,size:()=>pQ,slugify:()=>xY,startsWith:()=>kY,strictObject:()=>N9,string:()=>AY,stringFormat:()=>r2,stringbool:()=>j9,success:()=>V9,superRefine:()=>P6,symbol:()=>X9,templateLiteral:()=>D9,toJSONSchema:()=>q2,toLowerCase:()=>vY,toUpperCase:()=>_Y,transform:()=>G0,treeifyError:()=>Nq,trim:()=>jY,tuple:()=>o1,uint32:()=>s2,uint64:()=>q9,ulid:()=>_2,undefined:()=>G9,union:()=>q0,unknown:()=>UQ,uppercase:()=>bY,url:()=>k2,util:()=>C,uuid:()=>Z2,uuidv4:()=>D2,uuidv6:()=>b2,uuidv7:()=>C2,void:()=>W9,xid:()=>x2,xor:()=>w9});var a6={};s(a6,{$ZodAny:()=>dX,$ZodArray:()=>aX,$ZodAsyncError:()=>KQ,$ZodBase64:()=>vX,$ZodBase64URL:()=>xX,$ZodBigInt:()=>p0,$ZodBigIntFormat:()=>cX,$ZodBoolean:()=>l0,$ZodCIDRv4:()=>zX,$ZodCIDRv6:()=>jX,$ZodCUID:()=>EX,$ZodCUID2:()=>OX,$ZodCatch:()=>PG,$ZodCheck:()=>j,$ZodCheckBigIntFormat:()=>tq,$ZodCheckEndsWith:()=>JX,$ZodCheckGreaterThan:()=>f0,$ZodCheckIncludes:()=>HX,$ZodCheckLengthEquals:()=>YX,$ZodCheckLessThan:()=>y0,$ZodCheckLowerCase:()=>XX,$ZodCheckMaxLength:()=>sq,$ZodCheckMaxSize:()=>aq,$ZodCheckMimeType:()=>BX,$ZodCheckMinLength:()=>QX,$ZodCheckMinSize:()=>iq,$ZodCheckMultipleOf:()=>uq,$ZodCheckNumberFormat:()=>nq,$ZodCheckOverwrite:()=>NX,$ZodCheckProperty:()=>KX,$ZodCheckRegex:()=>qX,$ZodCheckSizeEquals:()=>eq,$ZodCheckStartsWith:()=>WX,$ZodCheckStringFormat:()=>cQ,$ZodCheckUpperCase:()=>GX,$ZodCodec:()=>r0,$ZodCustom:()=>DG,$ZodCustomStringFormat:()=>fX,$ZodDate:()=>tX,$ZodDefault:()=>FG,$ZodDiscriminatedUnion:()=>qG,$ZodE164:()=>hX,$ZodEmail:()=>MX,$ZodEmoji:()=>PX,$ZodEncodeError:()=>$Y,$ZodEnum:()=>JG,$ZodError:()=>D0,$ZodExactOptional:()=>UG,$ZodFile:()=>BG,$ZodFunction:()=>VG,$ZodGUID:()=>FX,$ZodIPv4:()=>kX,$ZodIPv6:()=>TX,$ZodISODate:()=>DX,$ZodISODateTime:()=>ZX,$ZodISODuration:()=>CX,$ZodISOTime:()=>bX,$ZodIntersection:()=>XG,$ZodJWT:()=>yX,$ZodKSUID:()=>RX,$ZodLazy:()=>ZG,$ZodLiteral:()=>KG,$ZodMAC:()=>SX,$ZodMap:()=>HG,$ZodNaN:()=>$G,$ZodNanoID:()=>$X,$ZodNever:()=>uX,$ZodNonOptional:()=>MG,$ZodNull:()=>oX,$ZodNullable:()=>wG,$ZodNumber:()=>c0,$ZodNumberFormat:()=>mX,$ZodObject:()=>sX,$ZodObjectJIT:()=>QG,$ZodOptional:()=>d0,$ZodPipe:()=>EG,$ZodPrefault:()=>AG,$ZodPromise:()=>RG,$ZodReadonly:()=>OG,$ZodRealError:()=>l,$ZodRecord:()=>GG,$ZodRegistry:()=>zG,$ZodSet:()=>WG,$ZodString:()=>lQ,$ZodStringFormat:()=>T,$ZodSuccess:()=>LG,$ZodSymbol:()=>lX,$ZodTemplateLiteral:()=>IG,$ZodTransform:()=>NG,$ZodTuple:()=>o0,$ZodType:()=>Z,$ZodULID:()=>IX,$ZodURL:()=>LX,$ZodUUID:()=>AX,$ZodUndefined:()=>pX,$ZodUnion:()=>VY,$ZodUnknown:()=>rX,$ZodVoid:()=>nX,$ZodXID:()=>VX,$ZodXor:()=>YG,$brand:()=>e6,$constructor:()=>U,$input:()=>SG,$output:()=>TG,Doc:()=>UX,JSONSchema:()=>GK,JSONSchemaGenerator:()=>XK,NEVER:()=>i6,TimePrecision:()=>xG,_any:()=>q8,_array:()=>B8,_base64:()=>U1,_base64url:()=>w1,_bigint:()=>tG,_boolean:()=>uG,_catch:()=>aJ,_check:()=>A8,_cidrv4:()=>B1,_cidrv6:()=>N1,_coercedBigint:()=>aG,_coercedBoolean:()=>nG,_coercedDate:()=>J8,_coercedNumber:()=>cG,_coercedString:()=>vG,_cuid:()=>q1,_cuid2:()=>X1,_custom:()=>U8,_date:()=>W8,_decode:()=>T0,_decodeAsync:()=>z0,_default:()=>uJ,_discriminatedUnion:()=>xJ,_e164:()=>F1,_email:()=>t0,_emoji:()=>Q1,_encode:()=>k0,_encodeAsync:()=>S0,_endsWith:()=>TY,_enum:()=>cJ,_file:()=>N8,_float32:()=>pG,_float64:()=>oG,_gt:()=>GQ,_gte:()=>m,_guid:()=>FY,_includes:()=>CY,_int:()=>lG,_int32:()=>dG,_int64:()=>iG,_intersection:()=>hJ,_ipv4:()=>J1,_ipv6:()=>K1,_isoDate:()=>gG,_isoDateTime:()=>hG,_isoDuration:()=>fG,_isoTime:()=>yG,_jwt:()=>A1,_ksuid:()=>W1,_lazy:()=>QK,_length:()=>dQ,_literal:()=>pJ,_lowercase:()=>DY,_lt:()=>XQ,_lte:()=>d,_mac:()=>_G,_map:()=>fJ,_max:()=>d,_maxLength:()=>oQ,_maxSize:()=>RQ,_mime:()=>SY,_min:()=>m,_minLength:()=>NQ,_minSize:()=>HQ,_multipleOf:()=>$Q,_nan:()=>K8,_nanoid:()=>Y1,_nativeEnum:()=>lJ,_negative:()=>L1,_never:()=>G8,_nonnegative:()=>$1,_nonoptional:()=>nJ,_nonpositive:()=>P1,_normalize:()=>zY,_null:()=>Y8,_nullable:()=>rJ,_number:()=>mG,_optional:()=>dJ,_overwrite:()=>YQ,_parse:()=>xQ,_parseAsync:()=>hQ,_pipe:()=>iJ,_positive:()=>M1,_promise:()=>YK,_property:()=>E1,_readonly:()=>eJ,_record:()=>yJ,_refine:()=>w8,_regex:()=>ZY,_safeDecode:()=>v0,_safeDecodeAsync:()=>x0,_safeEncode:()=>j0,_safeEncodeAsync:()=>_0,_safeParse:()=>gQ,_safeParseAsync:()=>yQ,_set:()=>mJ,_size:()=>pQ,_slugify:()=>xY,_startsWith:()=>kY,_string:()=>jG,_stringFormat:()=>rQ,_stringbool:()=>P8,_success:()=>tJ,_superRefine:()=>F8,_symbol:()=>sG,_templateLiteral:()=>sJ,_toLowerCase:()=>vY,_toUpperCase:()=>_Y,_transform:()=>oJ,_trim:()=>jY,_tuple:()=>gJ,_uint32:()=>rG,_uint64:()=>eG,_ulid:()=>G1,_undefined:()=>Q8,_union:()=>vJ,_unknown:()=>X8,_uppercase:()=>bY,_url:()=>RY,_uuid:()=>a0,_uuidv4:()=>i0,_uuidv6:()=>e0,_uuidv7:()=>s0,_void:()=>H8,_xid:()=>H1,_xor:()=>_J,clone:()=>u,config:()=>h,createStandardJSONSchemaMethod:()=>TQ,createToJSONSchemaMethod:()=>$8,decode:()=>AH,decodeAsync:()=>LH,describe:()=>M8,encode:()=>FH,encodeAsync:()=>MH,extractDefs:()=>OQ,finalize:()=>IQ,flattenError:()=>b0,formatError:()=>C0,globalConfig:()=>KY,globalRegistry:()=>o,initializeContext:()=>EQ,isValidBase64:()=>m0,isValidBase64URL:()=>_X,isValidJWT:()=>gX,locales:()=>u0,meta:()=>L8,parse:()=>$0,parseAsync:()=>E0,prettifyError:()=>wq,process:()=>k,regexes:()=>FQ,registry:()=>n0,safeDecode:()=>$H,safeDecodeAsync:()=>OH,safeEncode:()=>PH,safeEncodeAsync:()=>EH,safeParse:()=>Fq,safeParseAsync:()=>Aq,toDotPath:()=>Uq,toJSONSchema:()=>q2,treeifyError:()=>Nq,util:()=>C,version:()=>wX});var i6=Object.freeze({status:"aborted"});function U(Q,q,G){function H(J,K){if(!J._zod)Object.defineProperty(J,"_zod",{value:{def:K,constr:W,traits:new Set},enumerable:!1});if(J._zod.traits.has(Q))return;J._zod.traits.add(Q),q(J,K);let B=W.prototype,N=Object.keys(B);for(let w=0;w<N.length;w++){let L=N[w];if(!(L in J))J[L]=B[L].bind(J)}}let Y=G?.Parent??Object;class X extends Y{}Object.defineProperty(X,"name",{value:Q});function W(J){var K;let B=G?.Parent?new X:this;H(B,J),(K=B._zod).deferred??(K.deferred=[]);for(let N of B._zod.deferred)N();return B}return Object.defineProperty(W,"init",{value:H}),Object.defineProperty(W,Symbol.hasInstance,{value:(J)=>{if(G?.Parent&&J instanceof G.Parent)return!0;return J?._zod?.traits?.has(Q)}}),Object.defineProperty(W,"name",{value:Q}),W}var e6=Symbol("zod_brand"),KQ=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},$Y=class extends Error{constructor(Q){super(`Encountered unidirectional transform during encode: ${Q}`);this.name="ZodEncodeError"}},KY={};function h(Q){if(Q)Object.assign(KY,Q);return KY}var C={};s(C,{BIGINT_FORMAT_RANGES:()=>Wq,Class:()=>wH,NUMBER_FORMAT_RANGES:()=>Hq,aborted:()=>JQ,allowsEval:()=>Yq,assert:()=>d9,assertEqual:()=>c9,assertIs:()=>p9,assertNever:()=>o9,assertNotEqual:()=>l9,assignProp:()=>WQ,base64ToUint8Array:()=>Jq,base64urlToUint8Array:()=>KH,cached:()=>_Q,captureStackTrace:()=>Z0,cleanEnum:()=>JH,cleanRegex:()=>EY,clone:()=>u,cloneDef:()=>u9,createTransparentProxy:()=>s9,defineLazy:()=>b,esc:()=>P0,escapeRegex:()=>e,extend:()=>qH,finalizeIssue:()=>r,floatSafeRemainder:()=>s6,getElementAtPath:()=>n9,getEnumValues:()=>R0,getLengthableOrigin:()=>IY,getParsedType:()=>e9,getSizableOrigin:()=>OY,hexToUint8Array:()=>NH,isObject:()=>LQ,isPlainObject:()=>BQ,issue:()=>UY,joinValues:()=>M,jsonStringifyReplacer:()=>BY,merge:()=>GH,mergeDefs:()=>QQ,normalizeParams:()=>P,nullish:()=>wQ,numKeys:()=>i9,objectClone:()=>r9,omit:()=>YH,optionalKeys:()=>Gq,parsedType:()=>V,partial:()=>HH,pick:()=>QH,prefixIssues:()=>a,primitiveTypes:()=>Xq,promiseAllObject:()=>t9,propertyKeyTypes:()=>NY,randomString:()=>a9,required:()=>WH,safeExtend:()=>XH,shallowClone:()=>qq,slugify:()=>Qq,stringifyPrimitive:()=>I,uint8ArrayToBase64:()=>Kq,uint8ArrayToBase64url:()=>BH,uint8ArrayToHex:()=>UH,unwrapMessage:()=>kQ});function c9(Q){return Q}function l9(Q){return Q}function p9(Q){}function o9(Q){throw Error("Unexpected value in exhaustive check")}function d9(Q){}function R0(Q){let q=Object.values(Q).filter((H)=>typeof H==="number");return Object.entries(Q).filter(([H,Y])=>q.indexOf(+H)===-1).map(([H,Y])=>Y)}function M(Q,q="|"){return Q.map((G)=>I(G)).join(q)}function BY(Q,q){if(typeof q==="bigint")return q.toString();return q}function _Q(Q){return{get value(){{let G=Q();return Object.defineProperty(this,"value",{value:G}),G}throw Error("cached value already set")}}}function wQ(Q){return Q===null||Q===void 0}function EY(Q){let q=Q.startsWith("^")?1:0,G=Q.endsWith("$")?Q.length-1:Q.length;return Q.slice(q,G)}function s6(Q,q){let G=(Q.toString().split(".")[1]||"").length,H=q.toString(),Y=(H.split(".")[1]||"").length;if(Y===0&&/\d?e-\d?/.test(H)){let K=H.match(/\d?e-(\d?)/);if(K?.[1])Y=Number.parseInt(K[1])}let X=G>Y?G:Y,W=Number.parseInt(Q.toFixed(X).replace(".","")),J=Number.parseInt(q.toFixed(X).replace(".",""));return W%J/10**X}var E6=Symbol("evaluating");function b(Q,q,G){let H=void 0;Object.defineProperty(Q,q,{get(){if(H===E6)return;if(H===void 0)H=E6,H=G();return H},set(Y){Object.defineProperty(Q,q,{value:Y})},configurable:!0})}function r9(Q){return Object.create(Object.getPrototypeOf(Q),Object.getOwnPropertyDescriptors(Q))}function WQ(Q,q,G){Object.defineProperty(Q,q,{value:G,writable:!0,enumerable:!0,configurable:!0})}function QQ(...Q){let q={};for(let G of Q){let H=Object.getOwnPropertyDescriptors(G);Object.assign(q,H)}return Object.defineProperties({},q)}function u9(Q){return QQ(Q._zod.def)}function n9(Q,q){if(!q)return Q;return q.reduce((G,H)=>G?.[H],Q)}function t9(Q){let q=Object.keys(Q),G=q.map((H)=>Q[H]);return Promise.all(G).then((H)=>{let Y={};for(let X=0;X<q.length;X++)Y[q[X]]=H[X];return Y})}function a9(Q=10){let G="";for(let H=0;H<Q;H++)G+="abcdefghijklmnopqrstuvwxyz"[Math.floor(Math.random()*26)];return G}function P0(Q){return JSON.stringify(Q)}function Qq(Q){return Q.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Z0="captureStackTrace"in Error?Error.captureStackTrace:(...Q)=>{};function LQ(Q){return typeof Q==="object"&&Q!==null&&!Array.isArray(Q)}var Yq=_Q(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch(Q){return!1}});function BQ(Q){if(LQ(Q)===!1)return!1;let q=Q.constructor;if(q===void 0)return!0;if(typeof q!=="function")return!0;let G=q.prototype;if(LQ(G)===!1)return!1;if(Object.prototype.hasOwnProperty.call(G,"isPrototypeOf")===!1)return!1;return!0}function qq(Q){if(BQ(Q))return{...Q};if(Array.isArray(Q))return[...Q];return Q}function i9(Q){let q=0;for(let G in Q)if(Object.prototype.hasOwnProperty.call(Q,G))q++;return q}var e9=(Q)=>{let q=typeof Q;switch(q){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(Q)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":if(Array.isArray(Q))return"array";if(Q===null)return"null";if(Q.then&&typeof Q.then==="function"&&Q.catch&&typeof Q.catch==="function")return"promise";if(typeof Map<"u"&&Q instanceof Map)return"map";if(typeof Set<"u"&&Q instanceof Set)return"set";if(typeof Date<"u"&&Q instanceof Date)return"date";if(typeof File<"u"&&Q instanceof File)return"file";return"object";default:throw Error(`Unknown data type: ${q}`)}},NY=new Set(["string","number","symbol"]),Xq=new Set(["string","number","bigint","boolean","symbol","undefined"]);function e(Q){return Q.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function u(Q,q,G){let H=new Q._zod.constr(q??Q._zod.def);if(!q||G?.parent)H._zod.parent=Q;return H}function P(Q){let q=Q;if(!q)return{};if(typeof q==="string")return{error:()=>q};if(q?.message!==void 0){if(q?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");q.error=q.message}if(delete q.message,typeof q.error==="string")return{...q,error:()=>q.error};return q}function s9(Q){let q;return new Proxy({},{get(G,H,Y){return q??(q=Q()),Reflect.get(q,H,Y)},set(G,H,Y,X){return q??(q=Q()),Reflect.set(q,H,Y,X)},has(G,H){return q??(q=Q()),Reflect.has(q,H)},deleteProperty(G,H){return q??(q=Q()),Reflect.deleteProperty(q,H)},ownKeys(G){return q??(q=Q()),Reflect.ownKeys(q)},getOwnPropertyDescriptor(G,H){return q??(q=Q()),Reflect.getOwnPropertyDescriptor(q,H)},defineProperty(G,H,Y){return q??(q=Q()),Reflect.defineProperty(q,H,Y)}})}function I(Q){if(typeof Q==="bigint")return Q.toString()+"n";if(typeof Q==="string")return`"${Q}"`;return`${Q}`}function Gq(Q){return Object.keys(Q).filter((q)=>{return Q[q]._zod.optin==="optional"&&Q[q]._zod.optout==="optional"})}var Hq={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-340282346638528860000000000000000000000,340282346638528860000000000000000000000],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Wq={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function QH(Q,q){let G=Q._zod.def,H=G.checks;if(H&&H.length>0)throw Error(".pick() cannot be used on object schemas containing refinements");let X=QQ(Q._zod.def,{get shape(){let W={};for(let J in q){if(!(J in G.shape))throw Error(`Unrecognized key: "${J}"`);if(!q[J])continue;W[J]=G.shape[J]}return WQ(this,"shape",W),W},checks:[]});return u(Q,X)}function YH(Q,q){let G=Q._zod.def,H=G.checks;if(H&&H.length>0)throw Error(".omit() cannot be used on object schemas containing refinements");let X=QQ(Q._zod.def,{get shape(){let W={...Q._zod.def.shape};for(let J in q){if(!(J in G.shape))throw Error(`Unrecognized key: "${J}"`);if(!q[J])continue;delete W[J]}return WQ(this,"shape",W),W},checks:[]});return u(Q,X)}function qH(Q,q){if(!BQ(q))throw Error("Invalid input to extend: expected a plain object");let G=Q._zod.def.checks;if(G&&G.length>0){let X=Q._zod.def.shape;for(let W in q)if(Object.getOwnPropertyDescriptor(X,W)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let Y=QQ(Q._zod.def,{get shape(){let X={...Q._zod.def.shape,...q};return WQ(this,"shape",X),X}});return u(Q,Y)}function XH(Q,q){if(!BQ(q))throw Error("Invalid input to safeExtend: expected a plain object");let G=QQ(Q._zod.def,{get shape(){let H={...Q._zod.def.shape,...q};return WQ(this,"shape",H),H}});return u(Q,G)}function GH(Q,q){let G=QQ(Q._zod.def,{get shape(){let H={...Q._zod.def.shape,...q._zod.def.shape};return WQ(this,"shape",H),H},get catchall(){return q._zod.def.catchall},checks:[]});return u(Q,G)}function HH(Q,q,G){let Y=q._zod.def.checks;if(Y&&Y.length>0)throw Error(".partial() cannot be used on object schemas containing refinements");let W=QQ(q._zod.def,{get shape(){let J=q._zod.def.shape,K={...J};if(G)for(let B in G){if(!(B in J))throw Error(`Unrecognized key: "${B}"`);if(!G[B])continue;K[B]=Q?new Q({type:"optional",innerType:J[B]}):J[B]}else for(let B in J)K[B]=Q?new Q({type:"optional",innerType:J[B]}):J[B];return WQ(this,"shape",K),K},checks:[]});return u(q,W)}function WH(Q,q,G){let H=QQ(q._zod.def,{get shape(){let Y=q._zod.def.shape,X={...Y};if(G)for(let W in G){if(!(W in X))throw Error(`Unrecognized key: "${W}"`);if(!G[W])continue;X[W]=new Q({type:"nonoptional",innerType:Y[W]})}else for(let W in Y)X[W]=new Q({type:"nonoptional",innerType:Y[W]});return WQ(this,"shape",X),X}});return u(q,H)}function JQ(Q,q=0){if(Q.aborted===!0)return!0;for(let G=q;G<Q.issues.length;G++)if(Q.issues[G]?.continue!==!0)return!0;return!1}function a(Q,q){return q.map((G)=>{var H;return(H=G).path??(H.path=[]),G.path.unshift(Q),G})}function kQ(Q){return typeof Q==="string"?Q:Q?.message}function r(Q,q,G){let H={...Q,path:Q.path??[]};if(!Q.message){let Y=kQ(Q.inst?._zod.def?.error?.(Q))??kQ(q?.error?.(Q))??kQ(G.customError?.(Q))??kQ(G.localeError?.(Q))??"Invalid input";H.message=Y}if(delete H.inst,delete H.continue,!q?.reportInput)delete H.input;return H}function OY(Q){if(Q instanceof Set)return"set";if(Q instanceof Map)return"map";if(Q instanceof File)return"file";return"unknown"}function IY(Q){if(Array.isArray(Q))return"array";if(typeof Q==="string")return"string";return"unknown"}function V(Q){let q=typeof Q;switch(q){case"number":return Number.isNaN(Q)?"nan":"number";case"object":{if(Q===null)return"null";if(Array.isArray(Q))return"array";let G=Q;if(G&&Object.getPrototypeOf(G)!==Object.prototype&&"constructor"in G&&G.constructor)return G.constructor.name}}return q}function UY(...Q){let[q,G,H]=Q;if(typeof q==="string")return{message:q,code:"custom",input:G,inst:H};return{...q}}function JH(Q){return Object.entries(Q).filter(([q,G])=>{return Number.isNaN(Number.parseInt(q,10))}).map((q)=>q[1])}function Jq(Q){let q=atob(Q),G=new Uint8Array(q.length);for(let H=0;H<q.length;H++)G[H]=q.charCodeAt(H);return G}function Kq(Q){let q="";for(let G=0;G<Q.length;G++)q+=String.fromCharCode(Q[G]);return btoa(q)}function KH(Q){let q=Q.replace(/-/g,"+").replace(/_/g,"/"),G="=".repeat((4-q.length%4)%4);return Jq(q+G)}function BH(Q){return Kq(Q).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function NH(Q){let q=Q.replace(/^0x/,"");if(q.length%2!==0)throw Error("Invalid hex string length");let G=new Uint8Array(q.length/2);for(let H=0;H<q.length;H+=2)G[H/2]=Number.parseInt(q.slice(H,H+2),16);return G}function UH(Q){return Array.from(Q).map((q)=>q.toString(16).padStart(2,"0")).join("")}var wH=class{constructor(...Q){}},Bq=(Q,q)=>{Q.name="$ZodError",Object.defineProperty(Q,"_zod",{value:Q._zod,enumerable:!1}),Object.defineProperty(Q,"issues",{value:q,enumerable:!1}),Q.message=JSON.stringify(q,BY,2),Object.defineProperty(Q,"toString",{value:()=>Q.message,enumerable:!1})},D0=U("$ZodError",Bq),l=U("$ZodError",Bq,{Parent:Error});function b0(Q,q=(G)=>G.message){let G={},H=[];for(let Y of Q.issues)if(Y.path.length>0)G[Y.path[0]]=G[Y.path[0]]||[],G[Y.path[0]].push(q(Y));else H.push(q(Y));return{formErrors:H,fieldErrors:G}}function C0(Q,q=(G)=>G.message){let G={_errors:[]},H=(Y)=>{for(let X of Y.issues)if(X.code==="invalid_union"&&X.errors.length)X.errors.map((W)=>H({issues:W}));else if(X.code==="invalid_key")H({issues:X.issues});else if(X.code==="invalid_element")H({issues:X.issues});else if(X.path.length===0)G._errors.push(q(X));else{let W=G,J=0;while(J<X.path.length){let K=X.path[J];if(J!==X.path.length-1)W[K]=W[K]||{_errors:[]};else W[K]=W[K]||{_errors:[]},W[K]._errors.push(q(X));W=W[K],J++}}};return H(Q),G}function Nq(Q,q=(G)=>G.message){let G={errors:[]},H=(Y,X=[])=>{var W,J;for(let K of Y.issues)if(K.code==="invalid_union"&&K.errors.length)K.errors.map((B)=>H({issues:B},K.path));else if(K.code==="invalid_key")H({issues:K.issues},K.path);else if(K.code==="invalid_element")H({issues:K.issues},K.path);else{let B=[...X,...K.path];if(B.length===0){G.errors.push(q(K));continue}let N=G,w=0;while(w<B.length){let L=B[w],A=w===B.length-1;if(typeof L==="string")N.properties??(N.properties={}),(W=N.properties)[L]??(W[L]={errors:[]}),N=N.properties[L];else N.items??(N.items=[]),(J=N.items)[L]??(J[L]={errors:[]}),N=N.items[L];if(A)N.errors.push(q(K));w++}}};return H(Q),G}function Uq(Q){let q=[],G=Q.map((H)=>typeof H==="object"?H.key:H);for(let H of G)if(typeof H==="number")q.push(`[${H}]`);else if(typeof H==="symbol")q.push(`[${JSON.stringify(String(H))}]`);else if(/[^\w$]/.test(H))q.push(`[${JSON.stringify(H)}]`);else{if(q.length)q.push(".");q.push(H)}return q.join("")}function wq(Q){let q=[],G=[...Q.issues].sort((H,Y)=>(H.path??[]).length-(Y.path??[]).length);for(let H of G)if(q.push(`\u2716 ${H.message}`),H.path?.length)q.push(` \u2192 at ${Uq(H.path)}`);return q.join(`
|
|
3
3
|
`)}var xQ=(Q)=>(q,G,H,Y)=>{let X=H?Object.assign(H,{async:!1}):{async:!1},W=q._zod.run({value:G,issues:[]},X);if(W instanceof Promise)throw new KQ;if(W.issues.length){let J=new(Y?.Err??Q)(W.issues.map((K)=>r(K,X,h())));throw Z0(J,Y?.callee),J}return W.value},$0=xQ(l),hQ=(Q)=>async(q,G,H,Y)=>{let X=H?Object.assign(H,{async:!0}):{async:!0},W=q._zod.run({value:G,issues:[]},X);if(W instanceof Promise)W=await W;if(W.issues.length){let J=new(Y?.Err??Q)(W.issues.map((K)=>r(K,X,h())));throw Z0(J,Y?.callee),J}return W.value},E0=hQ(l),gQ=(Q)=>(q,G,H)=>{let Y=H?{...H,async:!1}:{async:!1},X=q._zod.run({value:G,issues:[]},Y);if(X instanceof Promise)throw new KQ;return X.issues.length?{success:!1,error:new(Q??D0)(X.issues.map((W)=>r(W,Y,h())))}:{success:!0,data:X.value}},Fq=gQ(l),yQ=(Q)=>async(q,G,H)=>{let Y=H?Object.assign(H,{async:!0}):{async:!0},X=q._zod.run({value:G,issues:[]},Y);if(X instanceof Promise)X=await X;return X.issues.length?{success:!1,error:new Q(X.issues.map((W)=>r(W,Y,h())))}:{success:!0,data:X.value}},Aq=yQ(l),k0=(Q)=>(q,G,H)=>{let Y=H?Object.assign(H,{direction:"backward"}):{direction:"backward"};return xQ(Q)(q,G,Y)},FH=k0(l),T0=(Q)=>(q,G,H)=>{return xQ(Q)(q,G,H)},AH=T0(l),S0=(Q)=>async(q,G,H)=>{let Y=H?Object.assign(H,{direction:"backward"}):{direction:"backward"};return hQ(Q)(q,G,Y)},MH=S0(l),z0=(Q)=>async(q,G,H)=>{return hQ(Q)(q,G,H)},LH=z0(l),j0=(Q)=>(q,G,H)=>{let Y=H?Object.assign(H,{direction:"backward"}):{direction:"backward"};return gQ(Q)(q,G,Y)},PH=j0(l),v0=(Q)=>(q,G,H)=>{return gQ(Q)(q,G,H)},$H=v0(l),_0=(Q)=>async(q,G,H)=>{let Y=H?Object.assign(H,{direction:"backward"}):{direction:"backward"};return yQ(Q)(q,G,Y)},EH=_0(l),x0=(Q)=>async(q,G,H)=>{return yQ(Q)(q,G,H)},OH=x0(l),FQ={};s(FQ,{base64:()=>zq,base64url:()=>h0,bigint:()=>fq,boolean:()=>cq,browserEmail:()=>kH,cidrv4:()=>Tq,cidrv6:()=>Sq,cuid:()=>Mq,cuid2:()=>Lq,date:()=>_q,datetime:()=>gq,domain:()=>zH,duration:()=>Iq,e164:()=>jq,email:()=>Rq,emoji:()=>Dq,extendedDuration:()=>IH,guid:()=>Vq,hex:()=>jH,hostname:()=>SH,html5Email:()=>DH,idnEmail:()=>CH,integer:()=>mq,ipv4:()=>bq,ipv6:()=>Cq,ksuid:()=>Eq,lowercase:()=>oq,mac:()=>kq,md5_base64:()=>_H,md5_base64url:()=>xH,md5_hex:()=>vH,nanoid:()=>Oq,null:()=>lq,number:()=>g0,rfc5322Email:()=>bH,sha1_base64:()=>gH,sha1_base64url:()=>yH,sha1_hex:()=>hH,sha256_base64:()=>mH,sha256_base64url:()=>cH,sha256_hex:()=>fH,sha384_base64:()=>pH,sha384_base64url:()=>oH,sha384_hex:()=>lH,sha512_base64:()=>rH,sha512_base64url:()=>uH,sha512_hex:()=>dH,string:()=>yq,time:()=>hq,ulid:()=>Pq,undefined:()=>pq,unicodeEmail:()=>Zq,uppercase:()=>dq,uuid:()=>PQ,uuid4:()=>VH,uuid6:()=>RH,uuid7:()=>ZH,xid:()=>$q});var Mq=/^[cC][^\s-]{8,}$/,Lq=/^[0-9a-z]+$/,Pq=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,$q=/^[0-9a-vA-V]{20}$/,Eq=/^[A-Za-z0-9]{27}$/,Oq=/^[a-zA-Z0-9_-]{21}$/,Iq=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,IH=/^[-+]?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)?)??$/,Vq=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,PQ=(Q)=>{if(!Q)return/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/;return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${Q}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`)},VH=PQ(4),RH=PQ(6),ZH=PQ(7),Rq=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,DH=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,bH=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Zq=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,CH=Zq,kH=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,TH="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Dq(){return new RegExp(TH,"u")}var bq=/^(?:(?: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])$/,Cq=/^(([0-9a-fA-F]{1,4}:){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}|:))$/,kq=(Q)=>{let q=e(Q??":");return new RegExp(`^(?:[0-9A-F]{2}${q}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${q}){5}[0-9a-f]{2}$`)},Tq=/^((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])\/([0-9]|[1-2][0-9]|3[0-2])$/,Sq=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,zq=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,h0=/^[A-Za-z0-9_-]*$/,SH=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,zH=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,jq=/^\+[1-9]\d{6,14}$/,vq="(?:(?:\\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])))",_q=new RegExp(`^${vq}$`);function xq(Q){return typeof Q.precision==="number"?Q.precision===-1?"(?:[01]\\d|2[0-3]):[0-5]\\d":Q.precision===0?"(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d":`(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{${Q.precision}}`:"(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?"}function hq(Q){return new RegExp(`^${xq(Q)}$`)}function gq(Q){let q=xq({precision:Q.precision}),G=["Z"];if(Q.local)G.push("");if(Q.offset)G.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let H=`${q}(?:${G.join("|")})`;return new RegExp(`^${vq}T(?:${H})$`)}var yq=(Q)=>{let q=Q?`[\\s\\S]{${Q?.minimum??0},${Q?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${q}$`)},fq=/^-?\d+n?$/,mq=/^-?\d+$/,g0=/^-?\d+(?:\.\d+)?$/,cq=/^(?:true|false)$/i,lq=/^null$/i,pq=/^undefined$/i,oq=/^[^A-Z]*$/,dq=/^[^a-z]*$/,jH=/^[0-9a-fA-F]*$/;function fQ(Q,q){return new RegExp(`^[A-Za-z0-9+/]{${Q}}${q}$`)}function mQ(Q){return new RegExp(`^[A-Za-z0-9_-]{${Q}}$`)}var vH=/^[0-9a-fA-F]{32}$/,_H=fQ(22,"=="),xH=mQ(22),hH=/^[0-9a-fA-F]{40}$/,gH=fQ(27,"="),yH=mQ(27),fH=/^[0-9a-fA-F]{64}$/,mH=fQ(43,"="),cH=mQ(43),lH=/^[0-9a-fA-F]{96}$/,pH=fQ(64,""),oH=mQ(64),dH=/^[0-9a-fA-F]{128}$/,rH=fQ(86,"=="),uH=mQ(86),j=U("$ZodCheck",(Q,q)=>{var G;Q._zod??(Q._zod={}),Q._zod.def=q,(G=Q._zod).onattach??(G.onattach=[])}),rq={number:"number",bigint:"bigint",object:"date"},y0=U("$ZodCheckLessThan",(Q,q)=>{j.init(Q,q);let G=rq[typeof q.value];Q._zod.onattach.push((H)=>{let Y=H._zod.bag,X=(q.inclusive?Y.maximum:Y.exclusiveMaximum)??Number.POSITIVE_INFINITY;if(q.value<X)if(q.inclusive)Y.maximum=q.value;else Y.exclusiveMaximum=q.value}),Q._zod.check=(H)=>{if(q.inclusive?H.value<=q.value:H.value<q.value)return;H.issues.push({origin:G,code:"too_big",maximum:typeof q.value==="object"?q.value.getTime():q.value,input:H.value,inclusive:q.inclusive,inst:Q,continue:!q.abort})}}),f0=U("$ZodCheckGreaterThan",(Q,q)=>{j.init(Q,q);let G=rq[typeof q.value];Q._zod.onattach.push((H)=>{let Y=H._zod.bag,X=(q.inclusive?Y.minimum:Y.exclusiveMinimum)??Number.NEGATIVE_INFINITY;if(q.value>X)if(q.inclusive)Y.minimum=q.value;else Y.exclusiveMinimum=q.value}),Q._zod.check=(H)=>{if(q.inclusive?H.value>=q.value:H.value>q.value)return;H.issues.push({origin:G,code:"too_small",minimum:typeof q.value==="object"?q.value.getTime():q.value,input:H.value,inclusive:q.inclusive,inst:Q,continue:!q.abort})}}),uq=U("$ZodCheckMultipleOf",(Q,q)=>{j.init(Q,q),Q._zod.onattach.push((G)=>{var H;(H=G._zod.bag).multipleOf??(H.multipleOf=q.value)}),Q._zod.check=(G)=>{if(typeof G.value!==typeof q.value)throw Error("Cannot mix number and bigint in multiple_of check.");if(typeof G.value==="bigint"?G.value%q.value===BigInt(0):s6(G.value,q.value)===0)return;G.issues.push({origin:typeof G.value,code:"not_multiple_of",divisor:q.value,input:G.value,inst:Q,continue:!q.abort})}}),nq=U("$ZodCheckNumberFormat",(Q,q)=>{j.init(Q,q),q.format=q.format||"float64";let G=q.format?.includes("int"),H=G?"int":"number",[Y,X]=Hq[q.format];Q._zod.onattach.push((W)=>{let J=W._zod.bag;if(J.format=q.format,J.minimum=Y,J.maximum=X,G)J.pattern=mq}),Q._zod.check=(W)=>{let J=W.value;if(G){if(!Number.isInteger(J)){W.issues.push({expected:H,format:q.format,code:"invalid_type",continue:!1,input:J,inst:Q});return}if(!Number.isSafeInteger(J)){if(J>0)W.issues.push({input:J,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:Q,origin:H,inclusive:!0,continue:!q.abort});else W.issues.push({input:J,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:Q,origin:H,inclusive:!0,continue:!q.abort});return}}if(J<Y)W.issues.push({origin:"number",input:J,code:"too_small",minimum:Y,inclusive:!0,inst:Q,continue:!q.abort});if(J>X)W.issues.push({origin:"number",input:J,code:"too_big",maximum:X,inclusive:!0,inst:Q,continue:!q.abort})}}),tq=U("$ZodCheckBigIntFormat",(Q,q)=>{j.init(Q,q);let[G,H]=Wq[q.format];Q._zod.onattach.push((Y)=>{let X=Y._zod.bag;X.format=q.format,X.minimum=G,X.maximum=H}),Q._zod.check=(Y)=>{let X=Y.value;if(X<G)Y.issues.push({origin:"bigint",input:X,code:"too_small",minimum:G,inclusive:!0,inst:Q,continue:!q.abort});if(X>H)Y.issues.push({origin:"bigint",input:X,code:"too_big",maximum:H,inclusive:!0,inst:Q,continue:!q.abort})}}),aq=U("$ZodCheckMaxSize",(Q,q)=>{var G;j.init(Q,q),(G=Q._zod.def).when??(G.when=(H)=>{let Y=H.value;return!wQ(Y)&&Y.size!==void 0}),Q._zod.onattach.push((H)=>{let Y=H._zod.bag.maximum??Number.POSITIVE_INFINITY;if(q.maximum<Y)H._zod.bag.maximum=q.maximum}),Q._zod.check=(H)=>{let Y=H.value;if(Y.size<=q.maximum)return;H.issues.push({origin:OY(Y),code:"too_big",maximum:q.maximum,inclusive:!0,input:Y,inst:Q,continue:!q.abort})}}),iq=U("$ZodCheckMinSize",(Q,q)=>{var G;j.init(Q,q),(G=Q._zod.def).when??(G.when=(H)=>{let Y=H.value;return!wQ(Y)&&Y.size!==void 0}),Q._zod.onattach.push((H)=>{let Y=H._zod.bag.minimum??Number.NEGATIVE_INFINITY;if(q.minimum>Y)H._zod.bag.minimum=q.minimum}),Q._zod.check=(H)=>{let Y=H.value;if(Y.size>=q.minimum)return;H.issues.push({origin:OY(Y),code:"too_small",minimum:q.minimum,inclusive:!0,input:Y,inst:Q,continue:!q.abort})}}),eq=U("$ZodCheckSizeEquals",(Q,q)=>{var G;j.init(Q,q),(G=Q._zod.def).when??(G.when=(H)=>{let Y=H.value;return!wQ(Y)&&Y.size!==void 0}),Q._zod.onattach.push((H)=>{let Y=H._zod.bag;Y.minimum=q.size,Y.maximum=q.size,Y.size=q.size}),Q._zod.check=(H)=>{let Y=H.value,X=Y.size;if(X===q.size)return;let W=X>q.size;H.issues.push({origin:OY(Y),...W?{code:"too_big",maximum:q.size}:{code:"too_small",minimum:q.size},inclusive:!0,exact:!0,input:H.value,inst:Q,continue:!q.abort})}}),sq=U("$ZodCheckMaxLength",(Q,q)=>{var G;j.init(Q,q),(G=Q._zod.def).when??(G.when=(H)=>{let Y=H.value;return!wQ(Y)&&Y.length!==void 0}),Q._zod.onattach.push((H)=>{let Y=H._zod.bag.maximum??Number.POSITIVE_INFINITY;if(q.maximum<Y)H._zod.bag.maximum=q.maximum}),Q._zod.check=(H)=>{let Y=H.value;if(Y.length<=q.maximum)return;let W=IY(Y);H.issues.push({origin:W,code:"too_big",maximum:q.maximum,inclusive:!0,input:Y,inst:Q,continue:!q.abort})}}),QX=U("$ZodCheckMinLength",(Q,q)=>{var G;j.init(Q,q),(G=Q._zod.def).when??(G.when=(H)=>{let Y=H.value;return!wQ(Y)&&Y.length!==void 0}),Q._zod.onattach.push((H)=>{let Y=H._zod.bag.minimum??Number.NEGATIVE_INFINITY;if(q.minimum>Y)H._zod.bag.minimum=q.minimum}),Q._zod.check=(H)=>{let Y=H.value;if(Y.length>=q.minimum)return;let W=IY(Y);H.issues.push({origin:W,code:"too_small",minimum:q.minimum,inclusive:!0,input:Y,inst:Q,continue:!q.abort})}}),YX=U("$ZodCheckLengthEquals",(Q,q)=>{var G;j.init(Q,q),(G=Q._zod.def).when??(G.when=(H)=>{let Y=H.value;return!wQ(Y)&&Y.length!==void 0}),Q._zod.onattach.push((H)=>{let Y=H._zod.bag;Y.minimum=q.length,Y.maximum=q.length,Y.length=q.length}),Q._zod.check=(H)=>{let Y=H.value,X=Y.length;if(X===q.length)return;let W=IY(Y),J=X>q.length;H.issues.push({origin:W,...J?{code:"too_big",maximum:q.length}:{code:"too_small",minimum:q.length},inclusive:!0,exact:!0,input:H.value,inst:Q,continue:!q.abort})}}),cQ=U("$ZodCheckStringFormat",(Q,q)=>{var G,H;if(j.init(Q,q),Q._zod.onattach.push((Y)=>{let X=Y._zod.bag;if(X.format=q.format,q.pattern)X.patterns??(X.patterns=new Set),X.patterns.add(q.pattern)}),q.pattern)(G=Q._zod).check??(G.check=(Y)=>{if(q.pattern.lastIndex=0,q.pattern.test(Y.value))return;Y.issues.push({origin:"string",code:"invalid_format",format:q.format,input:Y.value,...q.pattern?{pattern:q.pattern.toString()}:{},inst:Q,continue:!q.abort})});else(H=Q._zod).check??(H.check=()=>{})}),qX=U("$ZodCheckRegex",(Q,q)=>{cQ.init(Q,q),Q._zod.check=(G)=>{if(q.pattern.lastIndex=0,q.pattern.test(G.value))return;G.issues.push({origin:"string",code:"invalid_format",format:"regex",input:G.value,pattern:q.pattern.toString(),inst:Q,continue:!q.abort})}}),XX=U("$ZodCheckLowerCase",(Q,q)=>{q.pattern??(q.pattern=oq),cQ.init(Q,q)}),GX=U("$ZodCheckUpperCase",(Q,q)=>{q.pattern??(q.pattern=dq),cQ.init(Q,q)}),HX=U("$ZodCheckIncludes",(Q,q)=>{j.init(Q,q);let G=e(q.includes),H=new RegExp(typeof q.position==="number"?`^.{${q.position}}${G}`:G);q.pattern=H,Q._zod.onattach.push((Y)=>{let X=Y._zod.bag;X.patterns??(X.patterns=new Set),X.patterns.add(H)}),Q._zod.check=(Y)=>{if(Y.value.includes(q.includes,q.position))return;Y.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:q.includes,input:Y.value,inst:Q,continue:!q.abort})}}),WX=U("$ZodCheckStartsWith",(Q,q)=>{j.init(Q,q);let G=new RegExp(`^${e(q.prefix)}.*`);q.pattern??(q.pattern=G),Q._zod.onattach.push((H)=>{let Y=H._zod.bag;Y.patterns??(Y.patterns=new Set),Y.patterns.add(G)}),Q._zod.check=(H)=>{if(H.value.startsWith(q.prefix))return;H.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:q.prefix,input:H.value,inst:Q,continue:!q.abort})}}),JX=U("$ZodCheckEndsWith",(Q,q)=>{j.init(Q,q);let G=new RegExp(`.*${e(q.suffix)}$`);q.pattern??(q.pattern=G),Q._zod.onattach.push((H)=>{let Y=H._zod.bag;Y.patterns??(Y.patterns=new Set),Y.patterns.add(G)}),Q._zod.check=(H)=>{if(H.value.endsWith(q.suffix))return;H.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:q.suffix,input:H.value,inst:Q,continue:!q.abort})}});function O6(Q,q,G){if(Q.issues.length)q.issues.push(...a(G,Q.issues))}var KX=U("$ZodCheckProperty",(Q,q)=>{j.init(Q,q),Q._zod.check=(G)=>{let H=q.schema._zod.run({value:G.value[q.property],issues:[]},{});if(H instanceof Promise)return H.then((Y)=>O6(Y,G,q.property));O6(H,G,q.property);return}}),BX=U("$ZodCheckMimeType",(Q,q)=>{j.init(Q,q);let G=new Set(q.mime);Q._zod.onattach.push((H)=>{H._zod.bag.mime=q.mime}),Q._zod.check=(H)=>{if(G.has(H.value.type))return;H.issues.push({code:"invalid_value",values:q.mime,input:H.value.type,inst:Q,continue:!q.abort})}}),NX=U("$ZodCheckOverwrite",(Q,q)=>{j.init(Q,q),Q._zod.check=(G)=>{G.value=q.tx(G.value)}}),UX=class{constructor(Q=[]){if(this.content=[],this.indent=0,this)this.args=Q}indented(Q){this.indent+=1,Q(this),this.indent-=1}write(Q){if(typeof Q==="function"){Q(this,{execution:"sync"}),Q(this,{execution:"async"});return}let G=Q.split(`
|
|
4
4
|
`).filter((X)=>X),H=Math.min(...G.map((X)=>X.length-X.trimStart().length)),Y=G.map((X)=>X.slice(H)).map((X)=>" ".repeat(this.indent*2)+X);for(let X of Y)this.content.push(X)}compile(){let Q=Function,q=this?.args,H=[...(this?.content??[""]).map((Y)=>` ${Y}`)];return new Q(...q,H.join(`
|
|
5
5
|
`))}},wX={major:4,minor:3,patch:6},Z=U("$ZodType",(Q,q)=>{var G;Q??(Q={}),Q._zod.def=q,Q._zod.bag=Q._zod.bag||{},Q._zod.version=wX;let H=[...Q._zod.def.checks??[]];if(Q._zod.traits.has("$ZodCheck"))H.unshift(Q);for(let Y of H)for(let X of Y._zod.onattach)X(Q);if(H.length===0)(G=Q._zod).deferred??(G.deferred=[]),Q._zod.deferred?.push(()=>{Q._zod.run=Q._zod.parse});else{let Y=(W,J,K)=>{let B=JQ(W),N;for(let w of J){if(w._zod.def.when){if(!w._zod.def.when(W))continue}else if(B)continue;let L=W.issues.length,A=w._zod.check(W);if(A instanceof Promise&&K?.async===!1)throw new KQ;if(N||A instanceof Promise)N=(N??Promise.resolve()).then(async()=>{if(await A,W.issues.length===L)return;if(!B)B=JQ(W,L)});else{if(W.issues.length===L)continue;if(!B)B=JQ(W,L)}}if(N)return N.then(()=>{return W});return W},X=(W,J,K)=>{if(JQ(W))return W.aborted=!0,W;let B=Y(J,H,K);if(B instanceof Promise){if(K.async===!1)throw new KQ;return B.then((N)=>Q._zod.parse(N,K))}return Q._zod.parse(B,K)};Q._zod.run=(W,J)=>{if(J.skipChecks)return Q._zod.parse(W,J);if(J.direction==="backward"){let B=Q._zod.parse({value:W.value,issues:[]},{...J,skipChecks:!0});if(B instanceof Promise)return B.then((N)=>{return X(N,W,J)});return X(B,W,J)}let K=Q._zod.parse(W,J);if(K instanceof Promise){if(J.async===!1)throw new KQ;return K.then((B)=>Y(B,H,J))}return Y(K,H,J)}}b(Q,"~standard",()=>({validate:(Y)=>{try{let X=Fq(Q,Y);return X.success?{value:X.data}:{issues:X.error?.issues}}catch(X){return Aq(Q,Y).then((W)=>W.success?{value:W.data}:{issues:W.error?.issues})}},vendor:"zod",version:1}))}),lQ=U("$ZodString",(Q,q)=>{Z.init(Q,q),Q._zod.pattern=[...Q?._zod.bag?.patterns??[]].pop()??yq(Q._zod.bag),Q._zod.parse=(G,H)=>{if(q.coerce)try{G.value=String(G.value)}catch(Y){}if(typeof G.value==="string")return G;return G.issues.push({expected:"string",code:"invalid_type",input:G.value,inst:Q}),G}}),T=U("$ZodStringFormat",(Q,q)=>{cQ.init(Q,q),lQ.init(Q,q)}),FX=U("$ZodGUID",(Q,q)=>{q.pattern??(q.pattern=Vq),T.init(Q,q)}),AX=U("$ZodUUID",(Q,q)=>{if(q.version){let H={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[q.version];if(H===void 0)throw Error(`Invalid UUID version: "${q.version}"`);q.pattern??(q.pattern=PQ(H))}else q.pattern??(q.pattern=PQ());T.init(Q,q)}),MX=U("$ZodEmail",(Q,q)=>{q.pattern??(q.pattern=Rq),T.init(Q,q)}),LX=U("$ZodURL",(Q,q)=>{T.init(Q,q),Q._zod.check=(G)=>{try{let H=G.value.trim(),Y=new URL(H);if(q.hostname){if(q.hostname.lastIndex=0,!q.hostname.test(Y.hostname))G.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:q.hostname.source,input:G.value,inst:Q,continue:!q.abort})}if(q.protocol){if(q.protocol.lastIndex=0,!q.protocol.test(Y.protocol.endsWith(":")?Y.protocol.slice(0,-1):Y.protocol))G.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:q.protocol.source,input:G.value,inst:Q,continue:!q.abort})}if(q.normalize)G.value=Y.href;else G.value=H;return}catch(H){G.issues.push({code:"invalid_format",format:"url",input:G.value,inst:Q,continue:!q.abort})}}}),PX=U("$ZodEmoji",(Q,q)=>{q.pattern??(q.pattern=Dq()),T.init(Q,q)}),$X=U("$ZodNanoID",(Q,q)=>{q.pattern??(q.pattern=Oq),T.init(Q,q)}),EX=U("$ZodCUID",(Q,q)=>{q.pattern??(q.pattern=Mq),T.init(Q,q)}),OX=U("$ZodCUID2",(Q,q)=>{q.pattern??(q.pattern=Lq),T.init(Q,q)}),IX=U("$ZodULID",(Q,q)=>{q.pattern??(q.pattern=Pq),T.init(Q,q)}),VX=U("$ZodXID",(Q,q)=>{q.pattern??(q.pattern=$q),T.init(Q,q)}),RX=U("$ZodKSUID",(Q,q)=>{q.pattern??(q.pattern=Eq),T.init(Q,q)}),ZX=U("$ZodISODateTime",(Q,q)=>{q.pattern??(q.pattern=gq(q)),T.init(Q,q)}),DX=U("$ZodISODate",(Q,q)=>{q.pattern??(q.pattern=_q),T.init(Q,q)}),bX=U("$ZodISOTime",(Q,q)=>{q.pattern??(q.pattern=hq(q)),T.init(Q,q)}),CX=U("$ZodISODuration",(Q,q)=>{q.pattern??(q.pattern=Iq),T.init(Q,q)}),kX=U("$ZodIPv4",(Q,q)=>{q.pattern??(q.pattern=bq),T.init(Q,q),Q._zod.bag.format="ipv4"}),TX=U("$ZodIPv6",(Q,q)=>{q.pattern??(q.pattern=Cq),T.init(Q,q),Q._zod.bag.format="ipv6",Q._zod.check=(G)=>{try{new URL(`http://[${G.value}]`)}catch{G.issues.push({code:"invalid_format",format:"ipv6",input:G.value,inst:Q,continue:!q.abort})}}}),SX=U("$ZodMAC",(Q,q)=>{q.pattern??(q.pattern=kq(q.delimiter)),T.init(Q,q),Q._zod.bag.format="mac"}),zX=U("$ZodCIDRv4",(Q,q)=>{q.pattern??(q.pattern=Tq),T.init(Q,q)}),jX=U("$ZodCIDRv6",(Q,q)=>{q.pattern??(q.pattern=Sq),T.init(Q,q),Q._zod.check=(G)=>{let H=G.value.split("/");try{if(H.length!==2)throw Error();let[Y,X]=H;if(!X)throw Error();let W=Number(X);if(`${W}`!==X)throw Error();if(W<0||W>128)throw Error();new URL(`http://[${Y}]`)}catch{G.issues.push({code:"invalid_format",format:"cidrv6",input:G.value,inst:Q,continue:!q.abort})}}});function m0(Q){if(Q==="")return!0;if(Q.length%4!==0)return!1;try{return atob(Q),!0}catch{return!1}}var vX=U("$ZodBase64",(Q,q)=>{q.pattern??(q.pattern=zq),T.init(Q,q),Q._zod.bag.contentEncoding="base64",Q._zod.check=(G)=>{if(m0(G.value))return;G.issues.push({code:"invalid_format",format:"base64",input:G.value,inst:Q,continue:!q.abort})}});function _X(Q){if(!h0.test(Q))return!1;let q=Q.replace(/[-_]/g,(H)=>H==="-"?"+":"/"),G=q.padEnd(Math.ceil(q.length/4)*4,"=");return m0(G)}var xX=U("$ZodBase64URL",(Q,q)=>{q.pattern??(q.pattern=h0),T.init(Q,q),Q._zod.bag.contentEncoding="base64url",Q._zod.check=(G)=>{if(_X(G.value))return;G.issues.push({code:"invalid_format",format:"base64url",input:G.value,inst:Q,continue:!q.abort})}}),hX=U("$ZodE164",(Q,q)=>{q.pattern??(q.pattern=jq),T.init(Q,q)});function gX(Q,q=null){try{let G=Q.split(".");if(G.length!==3)return!1;let[H]=G;if(!H)return!1;let Y=JSON.parse(atob(H));if("typ"in Y&&Y?.typ!=="JWT")return!1;if(!Y.alg)return!1;if(q&&(!("alg"in Y)||Y.alg!==q))return!1;return!0}catch{return!1}}var yX=U("$ZodJWT",(Q,q)=>{T.init(Q,q),Q._zod.check=(G)=>{if(gX(G.value,q.alg))return;G.issues.push({code:"invalid_format",format:"jwt",input:G.value,inst:Q,continue:!q.abort})}}),fX=U("$ZodCustomStringFormat",(Q,q)=>{T.init(Q,q),Q._zod.check=(G)=>{if(q.fn(G.value))return;G.issues.push({code:"invalid_format",format:q.format,input:G.value,inst:Q,continue:!q.abort})}}),c0=U("$ZodNumber",(Q,q)=>{Z.init(Q,q),Q._zod.pattern=Q._zod.bag.pattern??g0,Q._zod.parse=(G,H)=>{if(q.coerce)try{G.value=Number(G.value)}catch(W){}let Y=G.value;if(typeof Y==="number"&&!Number.isNaN(Y)&&Number.isFinite(Y))return G;let X=typeof Y==="number"?Number.isNaN(Y)?"NaN":!Number.isFinite(Y)?"Infinity":void 0:void 0;return G.issues.push({expected:"number",code:"invalid_type",input:Y,inst:Q,...X?{received:X}:{}}),G}}),mX=U("$ZodNumberFormat",(Q,q)=>{nq.init(Q,q),c0.init(Q,q)}),l0=U("$ZodBoolean",(Q,q)=>{Z.init(Q,q),Q._zod.pattern=cq,Q._zod.parse=(G,H)=>{if(q.coerce)try{G.value=Boolean(G.value)}catch(X){}let Y=G.value;if(typeof Y==="boolean")return G;return G.issues.push({expected:"boolean",code:"invalid_type",input:Y,inst:Q}),G}}),p0=U("$ZodBigInt",(Q,q)=>{Z.init(Q,q),Q._zod.pattern=fq,Q._zod.parse=(G,H)=>{if(q.coerce)try{G.value=BigInt(G.value)}catch(Y){}if(typeof G.value==="bigint")return G;return G.issues.push({expected:"bigint",code:"invalid_type",input:G.value,inst:Q}),G}}),cX=U("$ZodBigIntFormat",(Q,q)=>{tq.init(Q,q),p0.init(Q,q)}),lX=U("$ZodSymbol",(Q,q)=>{Z.init(Q,q),Q._zod.parse=(G,H)=>{let Y=G.value;if(typeof Y==="symbol")return G;return G.issues.push({expected:"symbol",code:"invalid_type",input:Y,inst:Q}),G}}),pX=U("$ZodUndefined",(Q,q)=>{Z.init(Q,q),Q._zod.pattern=pq,Q._zod.values=new Set([void 0]),Q._zod.optin="optional",Q._zod.optout="optional",Q._zod.parse=(G,H)=>{let Y=G.value;if(typeof Y>"u")return G;return G.issues.push({expected:"undefined",code:"invalid_type",input:Y,inst:Q}),G}}),oX=U("$ZodNull",(Q,q)=>{Z.init(Q,q),Q._zod.pattern=lq,Q._zod.values=new Set([null]),Q._zod.parse=(G,H)=>{let Y=G.value;if(Y===null)return G;return G.issues.push({expected:"null",code:"invalid_type",input:Y,inst:Q}),G}}),dX=U("$ZodAny",(Q,q)=>{Z.init(Q,q),Q._zod.parse=(G)=>G}),rX=U("$ZodUnknown",(Q,q)=>{Z.init(Q,q),Q._zod.parse=(G)=>G}),uX=U("$ZodNever",(Q,q)=>{Z.init(Q,q),Q._zod.parse=(G,H)=>{return G.issues.push({expected:"never",code:"invalid_type",input:G.value,inst:Q}),G}}),nX=U("$ZodVoid",(Q,q)=>{Z.init(Q,q),Q._zod.parse=(G,H)=>{let Y=G.value;if(typeof Y>"u")return G;return G.issues.push({expected:"void",code:"invalid_type",input:Y,inst:Q}),G}}),tX=U("$ZodDate",(Q,q)=>{Z.init(Q,q),Q._zod.parse=(G,H)=>{if(q.coerce)try{G.value=new Date(G.value)}catch(J){}let Y=G.value,X=Y instanceof Date;if(X&&!Number.isNaN(Y.getTime()))return G;return G.issues.push({expected:"date",code:"invalid_type",input:Y,...X?{received:"Invalid Date"}:{},inst:Q}),G}});function I6(Q,q,G){if(Q.issues.length)q.issues.push(...a(G,Q.issues));q.value[G]=Q.value}var aX=U("$ZodArray",(Q,q)=>{Z.init(Q,q),Q._zod.parse=(G,H)=>{let Y=G.value;if(!Array.isArray(Y))return G.issues.push({expected:"array",code:"invalid_type",input:Y,inst:Q}),G;G.value=Array(Y.length);let X=[];for(let W=0;W<Y.length;W++){let J=Y[W],K=q.element._zod.run({value:J,issues:[]},H);if(K instanceof Promise)X.push(K.then((B)=>I6(B,G,W)));else I6(K,G,W)}if(X.length)return Promise.all(X).then(()=>G);return G}});function wY(Q,q,G,H,Y){if(Q.issues.length){if(Y&&!(G in H))return;q.issues.push(...a(G,Q.issues))}if(Q.value===void 0){if(G in H)q.value[G]=void 0}else q.value[G]=Q.value}function iX(Q){let q=Object.keys(Q.shape);for(let H of q)if(!Q.shape?.[H]?._zod?.traits?.has("$ZodType"))throw Error(`Invalid element at key "${H}": expected a Zod schema`);let G=Gq(Q.shape);return{...Q,keys:q,keySet:new Set(q),numKeys:q.length,optionalKeys:new Set(G)}}function eX(Q,q,G,H,Y,X){let W=[],J=Y.keySet,K=Y.catchall._zod,B=K.def.type,N=K.optout==="optional";for(let w in q){if(J.has(w))continue;if(B==="never"){W.push(w);continue}let L=K.run({value:q[w],issues:[]},H);if(L instanceof Promise)Q.push(L.then((A)=>wY(A,G,w,q,N)));else wY(L,G,w,q,N)}if(W.length)G.issues.push({code:"unrecognized_keys",keys:W,input:q,inst:X});if(!Q.length)return G;return Promise.all(Q).then(()=>{return G})}var sX=U("$ZodObject",(Q,q)=>{if(Z.init(Q,q),!Object.getOwnPropertyDescriptor(q,"shape")?.get){let J=q.shape;Object.defineProperty(q,"shape",{get:()=>{let K={...J};return Object.defineProperty(q,"shape",{value:K}),K}})}let H=_Q(()=>iX(q));b(Q._zod,"propValues",()=>{let J=q.shape,K={};for(let B in J){let N=J[B]._zod;if(N.values){K[B]??(K[B]=new Set);for(let w of N.values)K[B].add(w)}}return K});let Y=LQ,X=q.catchall,W;Q._zod.parse=(J,K)=>{W??(W=H.value);let B=J.value;if(!Y(B))return J.issues.push({expected:"object",code:"invalid_type",input:B,inst:Q}),J;J.value={};let N=[],w=W.shape;for(let L of W.keys){let A=w[L],R=A._zod.optout==="optional",E=A._zod.run({value:B[L],issues:[]},K);if(E instanceof Promise)N.push(E.then((O)=>wY(O,J,L,B,R)));else wY(E,J,L,B,R)}if(!X)return N.length?Promise.all(N).then(()=>J):J;return eX(N,B,J,K,H.value,Q)}}),QG=U("$ZodObjectJIT",(Q,q)=>{sX.init(Q,q);let G=Q._zod.parse,H=_Q(()=>iX(q)),Y=(L)=>{let A=new UX(["shape","payload","ctx"]),R=H.value,E=(v)=>{let _=P0(v);return`shape[${_}]._zod.run({ value: input[${_}], issues: [] }, ctx)`};A.write("const input = payload.value;");let O=Object.create(null),n=0;for(let v of R.keys)O[v]=`key_${n++}`;A.write("const newResult = {};");for(let v of R.keys){let _=O[v],z=P0(v),g=L[v]?._zod?.optout==="optional";if(A.write(`const ${_} = ${E(v)};`),g)A.write(`
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{zg as r}from"./chunk-rcyzqa3g.js";import{PO as o}from"./chunk-f83wv08n.js";var c=new r("zod v4");async function m(){return async(n,e)=>{let t;if("_zod"in n)try{t=(await import("./chunk-1q1cddy4.js")).toJSONSchema}catch{throw c}else try{t=(await import("./chunk-x4pdpka8.js")).zodToJsonSchema}catch{throw new r("zod-to-json-schema")}return t(n,e)}}export{m as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-kdcnder5.js";import"./chunk-f83wv08n.js";var e={"ui.sessionReview.title":"Promjene sesije","ui.sessionReview.title.lastTurn":"Promjene u posljednjem potezu","ui.sessionReview.diffStyle.unified":"Ujedinjeno","ui.sessionReview.diffStyle.split":"Podijeljeno","ui.sessionReview.openFile":"Otvori fajl","ui.sessionReview.selection.line":"linija {{line}}","ui.sessionReview.selection.lines":"linije {{start}}-{{end}}","ui.sessionReview.expandAll":"Pro\u0161iri sve","ui.sessionReview.collapseAll":"Sa\u017Emi sve","ui.sessionReview.change.added":"Dodano","ui.sessionReview.change.removed":"Uklonjeno","ui.sessionReview.change.modified":"Izmijenjeno","ui.sessionReview.image.loading":"U\u010Ditavanje...","ui.sessionReview.image.placeholder":"Slika","ui.sessionReview.largeDiff.title":"Diff je prevelik za prikaz","ui.sessionReview.largeDiff.meta":"Limit: {{limit}} izmijenjenih linija. Trenutno: {{current}} izmijenjenih linija.","ui.sessionReview.largeDiff.renderAnyway":"Prika\u017Ei svejedno","ui.fileMedia.kind.image":"slika","ui.fileMedia.kind.audio":"audio","ui.fileMedia.state.removed":"Uklonjeno: {{kind}}","ui.fileMedia.state.loading":"U\u010Ditavanje: {{kind}}...","ui.fileMedia.state.error":"Gre\u0161ka pri u\u010Ditavanju: {{kind}}","ui.fileMedia.state.unavailable":"Nedostupno: {{kind}}","ui.fileMedia.binary.title":"Binarni fajl","ui.fileMedia.binary.description.path":"{{path}} se ne mo\u017Ee prikazati jer je binarni fajl.","ui.fileMedia.binary.description.default":"Ovaj fajl se ne mo\u017Ee prikazati jer je binarni.","ui.lineComment.label.prefix":"Komentar na ","ui.lineComment.label.suffix":"","ui.lineComment.editorLabel.prefix":"Komentari\u0161e\u0161 ","ui.lineComment.editorLabel.suffix":"","ui.lineComment.placeholder":"Dodaj komentar","ui.lineComment.submit":"Komentari\u0161i","ui.sessionTurn.steps.show":"Prika\u017Ei korake","ui.sessionTurn.steps.hide":"Sakrij korake","ui.sessionTurn.summary.response":"Odgovor","ui.sessionTurn.diff.showMore":"Prika\u017Ei jo\u0161 izmjena ({{count}})","ui.sessionTurn.retry.retrying":"ponovni poku\u0161aj","ui.sessionTurn.retry.inSeconds":"za {{seconds}}s","ui.sessionTurn.retry.attempt":"poku\u0161aj #{{attempt}}","ui.sessionTurn.retry.attemptLine":"{{line}} - poku\u0161aj #{{attempt}}","ui.sessionTurn.retry.geminiHot":"gemini je trenutno preoptere\u0107en","ui.sessionTurn.error.freeUsageExceeded":"Besplatna upotreba prema\u0161ena","ui.sessionTurn.error.addQredits":"Dodaj kredite","ui.sessionTurn.status.delegating":"Delegiranje posla","ui.sessionTurn.status.planning":"Planiranje sljede\u0107ih koraka","ui.sessionTurn.status.gatheringContext":"Istra\u017Eivanje","ui.sessionTurn.status.gatheredContext":"Istra\u017Eeno","ui.sessionTurn.status.searchingCodebase":"Pretra\u017Eivanje baze koda","ui.sessionTurn.status.searchingWeb":"Pretra\u017Eivanje weba","ui.sessionTurn.status.makingEdits":"Pravljenje izmjena","ui.sessionTurn.status.runningCommands":"Pokretanje komandi","ui.sessionTurn.status.thinking":"Razmi\u0161ljanje","ui.sessionTurn.status.thinkingWithTopic":"Razmi\u0161ljanje - {{topic}}","ui.sessionTurn.status.gatheringThoughts":"Sre\u0111ivanje misli","ui.sessionTurn.status.consideringNextSteps":"Razmatranje sljede\u0107ih koraka","ui.messagePart.questions.dismissed":"Pitanja odba\u010Dena","ui.messagePart.compaction":"Sesija sa\u017Eeta","ui.messagePart.context.read.one":"{{count}} \u010Ditanje","ui.messagePart.context.read.other":"{{count}} \u010Ditanja","ui.messagePart.context.search.one":"{{count}} pretraga","ui.messagePart.context.search.other":"{{count}} pretrage","ui.messagePart.context.list.one":"{{count}} lista","ui.messagePart.context.list.other":"{{count}} liste","ui.messagePart.diagnostic.error":"Gre\u0161ka","ui.messagePart.title.edit":"Uredi","ui.messagePart.title.write":"Napi\u0161i","ui.messagePart.option.typeOwnAnswer":"Unesi svoj odgovor","ui.messagePart.review.title":"Pregledaj svoje odgovore","ui.list.loading":"U\u010Ditavanje","ui.list.empty":"Nema rezultata","ui.list.clearFilter":"O\u010Disti filter","ui.list.emptyWithFilter.prefix":"Nema rezultata za","ui.list.emptyWithFilter.suffix":"","ui.messageNav.newMessage":"Nova poruka","ui.textField.copyToClipboard":"Kopiraj u me\u0111uspremnik","ui.textField.copyLink":"Kopiraj link","ui.textField.copied":"Kopirano","ui.imagePreview.alt":"Pregled slike","ui.scrollView.ariaLabel":"sadr\u017Eaj za pomjeranje","ui.tool.read":"\u010Citanje","ui.tool.loaded":"U\u010Ditano","ui.tool.list":"Listanje","ui.tool.glob":"Glob","ui.tool.grep":"Grep","ui.tool.webfetch":"Web preuzimanje","ui.tool.websearch":"Pretraga weba","ui.tool.codesearch":"Pretraga koda","ui.tool.shell":"Shell","ui.tool.patch":"Patch","ui.tool.todos":"Lista zadataka","ui.tool.todos.read":"\u010Citanje liste zadataka","ui.tool.questions":"Pitanja","ui.tool.agent":"{{type}} agent","ui.tool.agent.default":"agent","ui.common.file.one":"datoteka","ui.common.file.other":"datoteke","ui.common.question.one":"pitanje","ui.common.question.other":"pitanja","ui.common.add":"Dodaj","ui.common.back":"Nazad","ui.common.cancel":"Otka\u017Ei","ui.common.confirm":"Potvrdi","ui.common.dismiss":"Odbaci","ui.common.close":"Zatvori","ui.common.next":"Dalje","ui.common.submit":"Po\u0161alji","ui.permission.deny":"Zabrani","ui.permission.allowAlways":"Uvijek dozvoli","ui.permission.allowOnce":"Dozvoli jednom","ui.message.expand":"Pro\u0161iri poruku","ui.message.collapse":"Sa\u017Emi poruku","ui.message.copy":"Kopiraj","ui.message.copyMessage":"Kopiraj poruku","ui.message.forkMessage":"Forkaj u novu sesiju","ui.message.revertMessage":"Resetuj na ovu ta\u010Dku","ui.message.copyResponse":"Kopiraj odgovor","ui.message.copied":"Kopirano!","ui.message.interrupted":"Prekinuto","ui.message.queued":"U redu","ui.message.attachment.alt":"prilog","ui.patch.action.deleted":"Obrisano","ui.patch.action.created":"Kreirano","ui.patch.action.moved":"Premje\u0161teno","ui.patch.action.patched":"Primijenjeno","ui.question.subtitle.answered":"{{count}} odgovoreno","ui.question.answer.none":"(nema odgovora)","ui.question.review.notAnswered":"(nije odgovoreno)","ui.question.multiHint":"Odaberi sve \u0161to va\u017Ei","ui.question.singleHint":"Odaberi jedan odgovor","ui.question.custom.placeholder":"Unesi svoj odgovor...","ui.fileSearch.placeholder":"Prona\u0111i","ui.fileSearch.previousMatch":"Prethodno","ui.fileSearch.nextMatch":"Sljede\u0107e","ui.fileSearch.close":"Zatvori pretragu","ui.tool.task":"Zadatak","ui.tool.skill":"Vje\u0161tina","ui.basicTool.called":"Pozvan `{{tool}}`","ui.toolErrorCard.failed":"Neuspje\u0161no","ui.toolErrorCard.copyError":"Kopiraj gre\u0161ku","ui.message.duration.seconds":"{{count}}s","ui.message.duration.minutesSeconds":"{{minutes}}m {{seconds}}s"};export{e as dict};
|