@bkm016/basalt 0.1.12 → 0.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -2
- package/chunk-03wzwnn6.js +2 -0
- package/{chunk-7jezts2n.js → chunk-06s9pr82.js} +2 -2
- package/{chunk-eyrtbbdd.js → chunk-0crbhhna.js} +1 -1
- package/{chunk-kpe7pnhy.js → chunk-0rasqm8y.js} +4 -4
- package/chunk-1w4nh5t6.js +5 -0
- package/{chunk-02d3x4mj.js → chunk-2eaehpp6.js} +3 -3
- package/{chunk-jj4hqbrx.js → chunk-30dxcr91.js} +3 -3
- package/{chunk-nw1xpt3s.js → chunk-343jsm46.js} +2 -2
- package/{chunk-bk4rpnm8.js → chunk-37ndxehw.js} +2 -2
- package/chunk-38g4jd6v.js +5 -0
- package/{chunk-0fc9apfn.js → chunk-39mh7h58.js} +23 -23
- package/{chunk-6mges89p.js → chunk-44a7f5ta.js} +5 -5
- package/chunk-44b9yx79.js +2 -0
- package/{chunk-jn5pqy5v.js → chunk-46vy2m29.js} +1 -1
- package/{chunk-2kxnw7vs.js → chunk-4f6p4n7k.js} +2 -2
- package/chunk-4w8j6n7z.js +2 -0
- package/{chunk-qs8zzg50.js → chunk-4yxd2kg1.js} +2 -2
- package/{chunk-ksk49hv0.js → chunk-59hg9a84.js} +1 -1
- package/chunk-62ebm0bn.js +2 -0
- package/chunk-6ef085c1.js +20 -0
- package/chunk-6hx9y86d.js +3 -0
- package/chunk-73t051r6.js +2 -0
- package/{chunk-1h34mzh7.js → chunk-7mgkpn94.js} +7 -7
- package/{chunk-w0rr66z7.js → chunk-81x8r8w4.js} +1 -1
- package/chunk-86yr2c0r.js +3 -0
- package/{chunk-ypqjfv3a.js → chunk-8np9b2y8.js} +2 -2
- package/{chunk-hbnmymaq.js → chunk-9ew8cap5.js} +2 -2
- package/chunk-9v3b7jjv.js +2 -0
- package/{chunk-01nve4qy.js → chunk-9vam83py.js} +1 -1
- package/chunk-9xjecw6c.js +2 -0
- package/{chunk-6sz5q3df.js → chunk-b2wpj81x.js} +2 -2
- package/chunk-b516bp7n.js +3 -0
- package/chunk-bjvv3403.js +2 -0
- package/{chunk-hc300148.js → chunk-c8g9jjqs.js} +2 -2
- package/chunk-cs91rmbf.js +18 -0
- package/chunk-drett6hb.js +2 -0
- package/{chunk-fy82qxa1.js → chunk-edcf97ka.js} +1 -1
- package/chunk-en7z6ne5.js +3 -0
- package/{chunk-p2pmdbt2.js → chunk-evnqkyt7.js} +12 -12
- package/{chunk-8mezk0cb.js → chunk-g2etemv5.js} +2 -2
- package/{chunk-n0ybj4h9.js → chunk-g5p9mj1r.js} +2 -2
- package/{chunk-eq4wqxzt.js → chunk-ge38dhv9.js} +2 -2
- package/chunk-hggam3je.js +2 -0
- package/chunk-k38jaz6c.js +7 -0
- package/{chunk-qfcr5g35.js → chunk-kcn05erf.js} +3 -3
- package/{chunk-rwks9zaw.js → chunk-m5km74eq.js} +2 -2
- package/{chunk-jpnf71q7.js → chunk-mfb3dgs8.js} +2 -2
- package/{chunk-vjne04dp.js → chunk-mh4bjtfs.js} +4 -4
- package/chunk-nysatg77.js +4161 -0
- package/chunk-p886jr17.js +25 -0
- package/{chunk-82v8jh1h.js → chunk-pdt65s31.js} +2 -2
- package/chunk-pjgt1bdx.js +3 -0
- package/{chunk-tvm4zmgj.js → chunk-pyj6avd5.js} +2 -2
- package/chunk-qd2enpr2.js +3 -0
- package/{chunk-cbgpymt4.js → chunk-qe76naq9.js} +1 -1
- package/{chunk-ntks40jd.js → chunk-qjnx4fsn.js} +5 -5
- package/{chunk-fhxy6y34.js → chunk-qs161f2q.js} +2 -2
- package/{chunk-v7wcchy2.js → chunk-rghqprav.js} +1 -1
- package/chunk-t33bm5aa.js +2 -0
- package/{chunk-nrsd810j.js → chunk-tfhp09nj.js} +2 -2
- package/chunk-vd5332ps.js +2 -0
- package/{chunk-3pf1d62g.js → chunk-vqm94hz2.js} +2 -2
- package/{chunk-85v69h91.js → chunk-w55cnj0f.js} +2 -2
- package/{chunk-1zj3zvw5.js → chunk-wnd3y4c0.js} +4 -4
- package/{chunk-stj493dn.js → chunk-xafx1p7z.js} +2 -2
- package/{chunk-9as0p561.js → chunk-xf7zw32f.js} +14 -14
- package/chunk-xk3t5ves.js +482 -0
- package/{chunk-5wnmbc1b.js → chunk-xq74x4gc.js} +2 -2
- package/chunk-y0274xr2.js +7 -0
- package/{chunk-ejjem0tc.js → chunk-z9p6s986.js} +6 -6
- package/chunk-zcwz44db.js +2 -0
- package/{chunk-w6f2r052.js → chunk-zhyzhekt.js} +1 -1
- package/compiled.js +85 -12
- package/package.json +1 -1
- package/ui-test-worker.js +65 -65
- package/web/chunk-15g9pnzy.js +1 -0
- package/web/{chunk-4f6a8dsk.js → chunk-17wwzrp4.js} +1 -1
- package/web/chunk-19tkjg9w.js +1 -0
- package/web/chunk-1y387f45.js +1 -0
- package/web/{chunk-30aeb767.js → chunk-25sn840r.js} +2 -2
- package/web/chunk-26sp6jre.js +1 -0
- package/web/{chunk-81s15c2e.js → chunk-2c7kxr4v.js} +2 -2
- package/web/{chunk-wvrs986a.js → chunk-2gsf89vs.js} +3 -3
- package/web/{chunk-3qxxrwsp.js → chunk-2gvz70wr.js} +10 -10
- package/web/chunk-2s3my1jn.js +1 -0
- package/web/{chunk-ar6jnhm5.js → chunk-32dh0hft.js} +1 -1
- package/web/{chunk-3rkkp6ed.js → chunk-3haw3wcw.js} +5 -5
- package/web/{chunk-hn8m1vsg.js → chunk-3rxhs9qm.js} +7 -7
- package/web/chunk-410qdvmv.js +1 -0
- package/web/chunk-4qehf2xx.js +2 -0
- package/web/{chunk-qdd3bx8q.js → chunk-51b8n5e1.js} +1 -1
- package/web/chunk-54mgncq3.js +1 -0
- package/web/{chunk-r6kk4vp1.js → chunk-59g6rrew.js} +4 -4
- package/web/{chunk-7tkgbbf9.js → chunk-5d9veaef.js} +2 -2
- package/web/chunk-6481wt3t.js +1 -0
- package/web/chunk-6ehecat3.js +1 -0
- package/web/chunk-6m8hq6ph.js +1 -0
- package/web/chunk-73941p08.js +1 -0
- package/web/{chunk-aeymdtm1.js → chunk-783s8jds.js} +3 -3
- package/web/{chunk-g4zm0crw.js → chunk-78m018ya.js} +1 -1
- package/web/chunk-797bh7z6.js +39 -0
- package/web/{chunk-hva7xyne.js → chunk-7hpqrfgg.js} +2 -2
- package/web/{chunk-enwfd8d5.js → chunk-7kywe73f.js} +2 -2
- package/web/chunk-7qq1ypvj.js +1 -0
- package/web/{chunk-xbyrgyy0.js → chunk-7wzszsf5.js} +2 -2
- package/web/{chunk-aa46mrgh.js → chunk-7zfqppsx.js} +2 -2
- package/web/{chunk-d73zkc4q.js → chunk-8sr9w61v.js} +3 -3
- package/web/{chunk-v34mr9ky.js → chunk-8ttp8fh3.js} +6 -6
- package/web/chunk-8zg89764.js +1 -0
- package/web/{chunk-2cyzaqjy.js → chunk-988e9wx6.js} +3 -3
- package/web/{chunk-k4dnjf8n.js → chunk-9h0f3gar.js} +3 -3
- package/web/chunk-9vr6hpmk.js +34 -0
- package/web/chunk-9vrp249f.js +2 -0
- package/web/{chunk-td83xf12.js → chunk-a205cj09.js} +2 -2
- package/web/{chunk-gkmaryr4.js → chunk-ahn2frbt.js} +1 -1
- package/web/{chunk-5g8md2wg.js → chunk-aknsydan.js} +5 -5
- package/web/chunk-at0xtfhy.js +1 -0
- package/web/chunk-bahccwb9.js +1 -0
- package/web/{chunk-rdr6wt22.js → chunk-c7fqrs8j.js} +4 -4
- package/web/chunk-d3hyf9yd.js +1 -0
- package/web/chunk-dcegr80c.js +1 -0
- package/web/{chunk-act3rr85.js → chunk-dwtatme7.js} +1 -1
- package/web/{chunk-5np514v5.js → chunk-ex8rmqn1.js} +12 -12
- package/web/{chunk-g488hxx0.js → chunk-faskbfjf.js} +3 -3
- package/web/chunk-feanedhx.js +1 -0
- package/web/{chunk-e94pd9rr.js → chunk-ffywf5w5.js} +10 -10
- package/web/chunk-fx3d48e6.js +1 -0
- package/web/{chunk-ncfzmf2g.js → chunk-g3szt4c4.js} +1 -1
- package/web/chunk-g7bcntpm.js +1 -0
- package/web/chunk-gr1tjqbd.js +1 -0
- package/web/{chunk-bygwbpvq.js → chunk-hbwxtbq3.js} +2 -2
- package/web/{chunk-gten0rpx.js → chunk-hdtvrh0f.js} +2 -2
- package/web/chunk-j031r08w.js +1 -0
- package/web/{chunk-d57fm7k0.js → chunk-j6wcszxq.js} +2 -2
- package/web/{chunk-885kpj14.js → chunk-jdx7qp2w.js} +2 -2
- package/web/chunk-jge7nn3s.js +1 -0
- package/web/chunk-jy8zat04.js +1 -0
- package/web/{chunk-7vgh17es.js → chunk-jzge034r.js} +1 -1
- package/web/{chunk-fj753yzt.js → chunk-k4qrqmdk.js} +2 -2
- package/web/chunk-k8s7kye3.js +1 -0
- package/web/{chunk-2jfesv7m.js → chunk-k9fyqrhp.js} +2 -2
- package/web/chunk-k9zn1n6d.js +1 -0
- package/web/chunk-kg3tksv7.js +1 -0
- package/web/chunk-kk5rw81s.js +2 -0
- package/web/{chunk-xpecre7w.js → chunk-kpmd893m.js} +4 -4
- package/web/chunk-md9j949p.js +1 -0
- package/web/{chunk-jeafmjsm.js → chunk-mn2wv9ye.js} +6 -6
- package/web/{chunk-dndd757x.js → chunk-mv7jgmnb.js} +3 -3
- package/web/{chunk-c3fty2c2.js → chunk-mvm68qtt.js} +7 -7
- package/web/chunk-nbcpbqq4.js +1 -0
- package/web/{chunk-b99k8q22.js → chunk-nfpff7yf.js} +8 -8
- package/web/chunk-nk7jkpam.js +1 -0
- package/web/chunk-nmvt1rn3.js +1 -0
- package/web/chunk-npw1s1h2.js +1 -0
- package/web/chunk-npyrdsf8.css +1 -0
- package/web/chunk-nzzxv84v.js +8 -0
- package/web/{chunk-n9v14vyd.js → chunk-p4pqtybm.js} +22 -22
- package/web/{chunk-jyf7a7yp.js → chunk-p79c7aak.js} +1 -1
- package/web/{chunk-6jb2zyp6.js → chunk-pafw34vg.js} +2 -2
- package/web/{chunk-y2rzeb4v.js → chunk-pf65cank.js} +2 -2
- package/web/{chunk-d1btrqmw.js → chunk-ppa21760.js} +1 -1
- package/web/{chunk-60mym60n.js → chunk-ptpkv0te.js} +1 -1
- package/web/{chunk-yjs6jmdb.js → chunk-qcdej581.js} +3 -3
- package/web/{chunk-q1zxvjhs.js → chunk-qftcdcps.js} +2 -2
- package/web/{chunk-4wwd3pfz.js → chunk-qv1w36ja.js} +2 -2
- package/web/chunk-r8p741qj.js +2 -0
- package/web/chunk-rcexbkjj.js +1 -0
- package/web/{chunk-kerfb21g.js → chunk-rjakb64x.js} +1 -1
- package/web/{chunk-k0cg4n2k.js → chunk-s0xy00v5.js} +2 -2
- package/web/{chunk-ym7kv2hs.js → chunk-s2ps0ct5.js} +1 -1
- package/web/{chunk-h24ybwp6.js → chunk-s45g7fp6.js} +1 -1
- package/web/{chunk-pjpre6de.js → chunk-s70aj1v5.js} +6 -6
- package/web/chunk-say8bvkc.js +1 -0
- package/web/{chunk-qh62nkem.js → chunk-sd3cdqcm.js} +2 -2
- package/web/{chunk-6f2sz84q.js → chunk-sgkevxdf.js} +2 -2
- package/web/chunk-sjffrcq9.js +1 -0
- package/web/{chunk-19zd0tye.js → chunk-snaepr87.js} +8 -8
- package/web/{chunk-3n9ypydh.js → chunk-tdzh6nsz.js} +2 -2
- package/web/{chunk-wqzbxzk3.js → chunk-tjd8qp87.js} +1 -1
- package/web/chunk-tncc9e57.js +1 -0
- package/web/chunk-ty2rmwda.js +1142 -0
- package/web/chunk-v22hp18w.js +1 -0
- package/web/chunk-ve9dz857.js +2 -0
- package/web/{chunk-80z8s8zb.js → chunk-vg346gxc.js} +2 -2
- package/web/{chunk-hqxc9m07.js → chunk-vpegzgzb.js} +10 -10
- package/web/{chunk-pzg25qqe.js → chunk-vvvd3grf.js} +2 -2
- package/web/{chunk-qp3tjhaq.js → chunk-vwv6pqy7.js} +1 -1
- package/web/{chunk-3psgr0q8.js → chunk-vxm7n7w6.js} +20 -20
- package/web/{chunk-h754ntg7.js → chunk-w5q7978e.js} +1 -1
- package/web/{chunk-xvfeq8v2.js → chunk-we4mhfmq.js} +12 -12
- package/web/{chunk-8539865x.js → chunk-wfgrdabk.js} +1 -1
- package/web/{chunk-sdr5wa4z.js → chunk-wkhj4hsw.js} +4 -4
- package/web/{chunk-7ksg3ccg.js → chunk-wspk8qbg.js} +2 -2
- package/web/{chunk-hxbfkdjd.js → chunk-xf1hnpme.js} +1 -1
- package/web/{chunk-v1hfbjz9.js → chunk-xhqvzmfj.js} +5 -5
- package/web/chunk-xq70hgre.js +1 -0
- package/web/chunk-xtss82z2.js +1 -0
- package/web/{chunk-yf8ykk4v.js → chunk-y3tb6410.js} +3 -3
- package/web/{chunk-7v85yvb2.js → chunk-y6mcxfm0.js} +1 -1
- package/web/{chunk-7adsmqv6.js → chunk-ya696bfe.js} +2 -2
- package/web/{chunk-w9gnqkez.js → chunk-ysw5fs45.js} +3 -3
- package/web/chunk-zkq1xknc.js +1 -0
- package/web/chunk-zkv025s5.js +1 -0
- package/web/{chunk-8cnjd0f2.js → chunk-zpzvz973.js} +28 -28
- package/web/{chunk-b5zf1hs3.js → chunk-zsat72qd.js} +120 -120
- package/web/chunk-zx3h7v72.js +1 -0
- package/web/index.html +1 -1
- package/worker.js +1 -1
- package/chunk-1xfv4bd7.js +0 -2
- package/chunk-2fyjph3f.js +0 -2
- package/chunk-37zystxb.js +0 -25
- package/chunk-3k627vf2.js +0 -3
- package/chunk-4gtgqcct.js +0 -5
- package/chunk-7er5pz7s.js +0 -479
- package/chunk-7g5smgjj.js +0 -2
- package/chunk-7m3jagqn.js +0 -2
- package/chunk-9c4gdg1q.js +0 -3
- package/chunk-b2bxqeb4.js +0 -2
- package/chunk-bpw6q7g0.js +0 -3
- package/chunk-bwawt15q.js +0 -3
- package/chunk-cdw03j4t.js +0 -20
- package/chunk-ch1r3ted.js +0 -2
- package/chunk-cmwdjes8.js +0 -18
- package/chunk-db7ws33a.js +0 -7
- package/chunk-e1x629v0.js +0 -5
- package/chunk-j64dc767.js +0 -3
- package/chunk-m4bg1apa.js +0 -7
- package/chunk-nhm9z3d8.js +0 -2
- package/chunk-pnspvnyd.js +0 -2
- package/chunk-qnkrrwmg.js +0 -2
- package/chunk-r4gm8ngh.js +0 -2
- package/chunk-rks90mh1.js +0 -2
- package/chunk-t7te60m7.js +0 -2
- package/chunk-tv52xajf.js +0 -2
- package/chunk-wqqjzsjt.js +0 -3983
- package/chunk-xef4642x.js +0 -3
- package/web/chunk-04drx71p.js +0 -1
- package/web/chunk-0mdf1qja.js +0 -1
- package/web/chunk-0rdgt4jb.css +0 -1
- package/web/chunk-1m0kp0g3.js +0 -8
- package/web/chunk-3j2tcphs.js +0 -1
- package/web/chunk-3k9h7a73.js +0 -1142
- package/web/chunk-3m1bb2fw.js +0 -1
- package/web/chunk-55nvm2mj.js +0 -1
- package/web/chunk-5dkqfnh7.js +0 -2
- package/web/chunk-7ky5nrrr.js +0 -1
- package/web/chunk-8sdjgv3k.js +0 -1
- package/web/chunk-9bxtzwtc.js +0 -1
- package/web/chunk-9jy8nc4r.js +0 -1
- package/web/chunk-aebrw6cv.js +0 -39
- package/web/chunk-bcjgzwef.js +0 -1
- package/web/chunk-bra33pt0.js +0 -2
- package/web/chunk-cxpnj495.js +0 -2
- package/web/chunk-d94t9z70.js +0 -1
- package/web/chunk-de29pe57.js +0 -1
- package/web/chunk-e68jw0bg.js +0 -1
- package/web/chunk-fr4fft89.js +0 -1
- package/web/chunk-gckmcef6.js +0 -1
- package/web/chunk-gnb09wmx.js +0 -1
- package/web/chunk-gx340asc.js +0 -1
- package/web/chunk-hrgqc1vr.js +0 -1
- package/web/chunk-j9c8fa82.js +0 -1
- package/web/chunk-jz5mmp64.js +0 -1
- package/web/chunk-kxeaj44h.js +0 -1
- package/web/chunk-m0136xav.js +0 -1
- package/web/chunk-m1rdyvb5.js +0 -1
- package/web/chunk-m6vyvgm5.js +0 -1
- package/web/chunk-mxkbmgcv.js +0 -2
- package/web/chunk-my0ec787.js +0 -1
- package/web/chunk-mzzaet63.js +0 -1
- package/web/chunk-nkpdd9hw.js +0 -1
- package/web/chunk-ny436sqg.js +0 -1
- package/web/chunk-pbp1p5ex.js +0 -1
- package/web/chunk-ph75hddv.js +0 -1
- package/web/chunk-phdfyqaa.js +0 -1
- package/web/chunk-phxa5krt.js +0 -1
- package/web/chunk-r4zbw4zj.js +0 -2
- package/web/chunk-ry4ycah9.js +0 -1
- package/web/chunk-sqm16fat.js +0 -1
- package/web/chunk-tj1fn8v2.js +0 -1
- package/web/chunk-v0wtk059.js +0 -34
- package/web/chunk-v1qt3gq4.js +0 -1
- package/web/chunk-v854w9yn.js +0 -1
- package/web/chunk-ve56gxq0.js +0 -1
- package/web/chunk-w573ym17.js +0 -1
- package/web/chunk-x0mjydtp.js +0 -1
- package/web/chunk-zhybh04p.js +0 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Gt}from"./chunk-bwawt15q.js";var ur={};Gt(ur,{Activity:()=>Y,Children:()=>U,Component:()=>k,Fragment:()=>b,Profiler:()=>q,PureComponent:()=>G,StrictMode:()=>z,Suspense:()=>K,ViewTransition:()=>B,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:()=>pr,__COMPILER_RUNTIME:()=>V,addTransitionType:()=>W,cache:()=>X,cacheSignal:()=>Q,cloneElement:()=>Z,createContext:()=>Un,createElement:()=>C,createRef:()=>J,forwardRef:()=>F,isValidElement:()=>ee,lazy:()=>te,memo:()=>re,startTransition:()=>ne,unstable_useCacheRefresh:()=>oe,use:()=>ue,useActionState:()=>se,useCallback:()=>ie,useContext:()=>Bn,useDebugValue:()=>fe,useDeferredValue:()=>ce,useEffect:()=>Fn,useEffectEvent:()=>pe,useId:()=>ae,useImperativeHandle:()=>le,useInsertionEffect:()=>ye,useLayoutEffect:()=>_e,useMemo:()=>Ee,useOptimistic:()=>ve,useReducer:()=>de,useRef:()=>Wn,useState:()=>jr,useSyncExternalStore:()=>$n,useTransition:()=>ge,version:()=>Hn},{Activity:(rt)=>Y=rt,Children:(rt)=>U=rt,Component:(rt)=>k=rt,Fragment:(rt)=>b=rt,Profiler:(rt)=>q=rt,PureComponent:(rt)=>G=rt,StrictMode:(rt)=>z=rt,Suspense:(rt)=>K=rt,ViewTransition:(rt)=>B=rt,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:(rt)=>pr=rt,__COMPILER_RUNTIME:(rt)=>V=rt,addTransitionType:(rt)=>W=rt,cache:(rt)=>X=rt,cacheSignal:(rt)=>Q=rt,cloneElement:(rt)=>Z=rt,createContext:(rt)=>Un=rt,createElement:(rt)=>C=rt,createRef:(rt)=>J=rt,forwardRef:(rt)=>F=rt,isValidElement:(rt)=>ee=rt,lazy:(rt)=>te=rt,memo:(rt)=>re=rt,startTransition:(rt)=>ne=rt,unstable_useCacheRefresh:(rt)=>oe=rt,use:(rt)=>ue=rt,useActionState:(rt)=>se=rt,useCallback:(rt)=>ie=rt,useContext:(rt)=>Bn=rt,useDebugValue:(rt)=>fe=rt,useDeferredValue:(rt)=>ce=rt,useEffect:(rt)=>Fn=rt,useEffectEvent:(rt)=>pe=rt,useId:(rt)=>ae=rt,useImperativeHandle:(rt)=>le=rt,useInsertionEffect:(rt)=>ye=rt,useLayoutEffect:(rt)=>_e=rt,useMemo:(rt)=>Ee=rt,useOptimistic:(rt)=>ve=rt,useReducer:(rt)=>de=rt,useRef:(rt)=>Wn=rt,useState:(rt)=>jr=rt,useSyncExternalStore:(rt)=>$n=rt,useTransition:(rt)=>ge=rt,version:(rt)=>Hn=rt});var Vr={};Gt(Vr,{__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:()=>qn,browser:()=>Re,createPortal:()=>xe,flushSync:()=>mt,preconnect:()=>Se,prefetchDNS:()=>Oe,preinit:()=>Ce,preinitModule:()=>Ae,preload:()=>Pe,preloadModule:()=>he,requestFormReset:()=>Ne,unstable_batchedUpdates:()=>we,useFormState:()=>He,useFormStatus:()=>Ie,version:()=>Le},{});var T=Symbol.for("react.transitional.element"),Me=Symbol.for("react.portal"),$e=Symbol.for("react.fragment"),Ye=Symbol.for("react.strict_mode"),Ue=Symbol.for("react.profiler"),ke=Symbol.for("react.consumer"),be=Symbol.for("react.context"),qe=Symbol.for("react.forward_ref"),Ge=Symbol.for("react.suspense"),ze=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),Ke=Symbol.for("react.activity"),Be=Symbol.for("react.view_transition"),O=Symbol.iterator;function Ve(e){if(e===null||typeof e!=="object")return null;return e=O&&e[O]||e["@@iterator"],typeof e==="function"?e:null}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},H=Object.assign,I={};function y(e,t,r){this.props=e,this.context=t,this.refs=I,this.updater=r||w}y.prototype.isReactComponent={};y.prototype.setState=function(e,t){if(typeof e!=="object"&&typeof e!=="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function L(){}L.prototype=y.prototype;function m(e,t,r){this.props=e,this.context=t,this.refs=I,this.updater=r||w}var R=m.prototype=new L;R.constructor=m;H(R,y.prototype);R.isPureReactComponent=!0;var A=Array.isArray;function g(){}var s={H:null,A:null,T:null,S:null},j=Object.prototype.hasOwnProperty;function x(e,t,r){var n=r.ref;return{$$typeof:T,type:e,key:t,ref:n!==void 0?n:null,props:r}}function We(e,t){return x(e.type,t,e.props)}function S(e){return typeof e==="object"&&e!==null&&e.$$typeof===T}function Xe(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var P=/\/+/g;function d(e,t){return typeof e==="object"&&e!==null&&e.key!=null?Xe(""+e.key):t.toString(36)}function Qe(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status==="string"?e.then(g,g):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function l(e,t,r,n,o){var u=typeof e;if(u==="undefined"||u==="boolean")e=null;var i=!1;if(e===null)i=!0;else switch(u){case"bigint":case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case T:case Me:i=!0;break;case N:return i=e._init,l(i(e._payload),t,r,n,o)}}if(i)return o=o(e),i=n===""?"."+d(e,0):n,A(o)?(r="",i!=null&&(r=i.replace(P,"$&/")+"/"),l(o,t,r,"",function(De){return De})):o!=null&&(S(o)&&(o=We(o,r+(o.key==null||e&&e.key===o.key?"":(""+o.key).replace(P,"$&/")+"/")+i)),t.push(o)),1;i=0;var p=n===""?".":n+":";if(A(e))for(var c=0;c<e.length;c++)n=e[c],u=p+d(n,c),i+=l(n,t,r,u,o);else if(c=Ve(e),typeof c==="function")for(e=c.call(e),c=0;!(n=e.next()).done;)n=n.value,u=p+d(n,c++),i+=l(n,t,r,u,o);else if(u==="object"){if(typeof e.then==="function")return l(Qe(e),t,r,n,o);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return i}function E(e,t,r){if(e==null)return e;var n=[],o=0;return l(e,n,"","",function(u){return t.call(r,u,o++)}),n}function Ze(e){if(e._status===-1){var t=e._result,r=t();r.then(function(n){if(e._status===0||e._status===-1)e._status=1,e._result=n,r.status===void 0&&(r.status="fulfilled",r.value=n)},function(n){if(e._status===0||e._status===-1)e._status=2,e._result=n,r.status===void 0&&(r.status="rejected",r.reason=n)}),e._status===-1&&(e._status=0,e._result=r)}if(e._status===1)return e._result.default;throw e._result}var h=typeof reportError==="function"?reportError:function(e){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e==="object"&&e!==null&&typeof e.message==="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",e);return}console.error(e)};function D(e){var t=s.T,r={};r.types=t!==null?t.types:null,s.T=r;try{var n=e(),o=s.S;o!==null&&o(r,n),typeof n==="object"&&n!==null&&typeof n.then==="function"&&n.then(g,h)}catch(u){h(u)}finally{t!==null&&r.types!==null&&(t.types=r.types),s.T=t}}function M(e){var t=s.T;if(t!==null){var r=t.types;r===null?t.types=[e]:r.indexOf(e)===-1&&r.push(e)}else D(M.bind(null,e))}var Je={map:E,forEach:function(e,t,r){E(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return E(e,function(){t++}),t},toArray:function(e){return E(e,function(t){return t})||[]},only:function(e){if(!S(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};var Y=Ke,U=Je,k=y,b=$e,q=Ue,G=m,z=Ye,K=Ge,B=Be,pr=s,V={__proto__:null,c:function(e){return s.H.useMemoCache(e)}},W=M,X=function(e){return function(){return e.apply(null,arguments)}},Q=function(){return null},Z=function(e,t,r){if(e===null||e===void 0)throw Error("The argument must be a React element, but you passed "+e+".");var n=H({},e.props),o=e.key;if(t!=null)for(u in t.key!==void 0&&(o=""+t.key),t)!j.call(t,u)||u==="key"||u==="__self"||u==="__source"||u==="ref"&&t.ref===void 0||(n[u]=t[u]);var u=arguments.length-2;if(u===1)n.children=r;else if(1<u){for(var i=Array(u),p=0;p<u;p++)i[p]=arguments[p+2];n.children=i}return x(e.type,o,n)},Un=function(e){return e={$$typeof:be,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:ke,_context:e},e},C=function(e,t,r){var n,o={},u=null;if(t!=null)for(n in t.key!==void 0&&(u=""+t.key),t)j.call(t,n)&&n!=="key"&&n!=="__self"&&n!=="__source"&&(o[n]=t[n]);var i=arguments.length-2;if(i===1)o.children=r;else if(1<i){for(var p=Array(i),c=0;c<i;c++)p[c]=arguments[c+2];o.children=p}if(e&&e.defaultProps)for(n in i=e.defaultProps,i)o[n]===void 0&&(o[n]=i[n]);return x(e,u,o)},J=function(){return{current:null}},F=function(e){return{$$typeof:qe,render:e}},ee=S,te=function(e){return{$$typeof:N,_payload:{_status:-1,_result:e},_init:Ze}},re=function(e,t){return{$$typeof:ze,type:e,compare:t===void 0?null:t}},ne=D,oe=function(){return s.H.useCacheRefresh()},ue=function(e){return s.H.use(e)},se=function(e,t,r){return s.H.useActionState(e,t,r)},ie=function(e,t){return s.H.useCallback(e,t)},Bn=function(e){return s.H.useContext(e)},fe=function(){},ce=function(e,t){return s.H.useDeferredValue(e,t)},Fn=function(e,t){return s.H.useEffect(e,t)},pe=function(e){return s.H.useEffectEvent(e)},ae=function(){return s.H.useId()},le=function(e,t,r){return s.H.useImperativeHandle(e,t,r)},ye=function(e,t){return s.H.useInsertionEffect(e,t)},_e=function(e,t){return s.H.useLayoutEffect(e,t)},Ee=function(e,t){return s.H.useMemo(e,t)},ve=function(e,t){return s.H.useOptimistic(e,t)},de=function(e,t,r){return s.H.useReducer(e,t,r)},Wn=function(e){return s.H.useRef(e)},jr=function(e){return s.H.useState(e)},$n=function(e,t,r){return s.H.useSyncExternalStore(e,t,r)},ge=function(){return s.H.useTransition()},Hn="19.3.1";function je(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=="function")return;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(je)}catch(e){console.error(e)}}function me(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var f={d:{f:a,r:function(){throw Error(me(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},Fe=Symbol.for("react.portal"),et=Symbol.for("react.recoverable"),Te=Symbol.for("react.optimistic_key");function tt(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Fe,key:n==null?null:n===Te?Te:""+n,children:e,containerInfo:t,implementation:r}}var _=pr;function v(e,t){if(e==="font")return"";if(typeof t==="string")return t==="use-credentials"?t:""}var qn=f,Re=function(e){return{$$typeof:et,_reason:e}},xe=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(me(299));return tt(e,t,null,r)},mt=function(e){var t=_.T,r=f.p;try{if(_.T=null,f.p=2,e)return e()}finally{_.T=t,f.p=r,f.d.f()}},Se=function(e,t){typeof e==="string"&&(t?(t=t.crossOrigin,t=typeof t==="string"?t==="use-credentials"?t:"":void 0):t=null,f.d.C(e,t))},Oe=function(e){typeof e==="string"&&f.d.D(e)},Ce=function(e,t){if(typeof e==="string"&&t&&typeof t.as==="string"){var r=t.as,n=v(r,t.crossOrigin),o=typeof t.integrity==="string"?t.integrity:void 0,u=typeof t.fetchPriority==="string"?t.fetchPriority:void 0;r==="style"?f.d.S(e,typeof t.precedence==="string"?t.precedence:void 0,{crossOrigin:n,integrity:o,fetchPriority:u}):r==="script"&&f.d.X(e,{crossOrigin:n,integrity:o,fetchPriority:u,nonce:typeof t.nonce==="string"?t.nonce:void 0})}},Ae=function(e,t){if(typeof e==="string")if(typeof t==="object"&&t!==null){if(t.as==null||t.as==="script"){var r=v(t.as,t.crossOrigin);f.d.M(e,{crossOrigin:r,integrity:typeof t.integrity==="string"?t.integrity:void 0,nonce:typeof t.nonce==="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==="string"?t.fetchPriority:void 0})}}else t==null&&f.d.M(e)},Pe=function(e,t){if(typeof e==="string"&&typeof t==="object"&&t!==null&&typeof t.as==="string"){var r=t.as,n=v(r,t.crossOrigin);f.d.L(e,r,{crossOrigin:n,integrity:typeof t.integrity==="string"?t.integrity:void 0,nonce:typeof t.nonce==="string"?t.nonce:void 0,type:typeof t.type==="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority==="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==="string"?t.imageSizes:void 0,media:typeof t.media==="string"?t.media:void 0})}},he=function(e,t){if(typeof e==="string")if(t){var r=v(t.as,t.crossOrigin);f.d.m(e,{as:typeof t.as==="string"&&t.as!=="script"?t.as:void 0,crossOrigin:r,integrity:typeof t.integrity==="string"?t.integrity:void 0,nonce:typeof t.nonce==="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==="string"?t.fetchPriority:void 0})}else f.d.m(e)},Ne=function(e){f.d.r(e)},we=function(e,t){return e(t)},He=function(e,t,r){return _.H.useFormState(e,t,r)},Ie=function(){return _.H.useHostTransitionStatus()},Le="19.3.1";je();
|
|
3
|
-
export{
|
|
2
|
+
import{Kt}from"./chunk-qd2enpr2.js";var yr={};Kt(yr,{Activity:()=>Y,Children:()=>U,Component:()=>k,Fragment:()=>b,Profiler:()=>q,PureComponent:()=>G,StrictMode:()=>z,Suspense:()=>K,ViewTransition:()=>B,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:()=>br,__COMPILER_RUNTIME:()=>V,addTransitionType:()=>W,cache:()=>X,cacheSignal:()=>Q,cloneElement:()=>Z,createContext:()=>Vn,createElement:()=>M,createRef:()=>J,forwardRef:()=>F,isValidElement:()=>ee,lazy:()=>te,memo:()=>re,startTransition:()=>ne,unstable_useCacheRefresh:()=>oe,use:()=>ue,useActionState:()=>se,useCallback:()=>ie,useContext:()=>Kn,useDebugValue:()=>fe,useDeferredValue:()=>ce,useEffect:()=>Qn,useEffectEvent:()=>pe,useId:()=>ae,useImperativeHandle:()=>le,useInsertionEffect:()=>ye,useLayoutEffect:()=>_e,useMemo:()=>Ee,useOptimistic:()=>ve,useReducer:()=>de,useRef:()=>Xn,useState:()=>en,useSyncExternalStore:()=>Jn,useTransition:()=>ge,version:()=>Yn},{Activity:(rt)=>Y=rt,Children:(rt)=>U=rt,Component:(rt)=>k=rt,Fragment:(rt)=>b=rt,Profiler:(rt)=>q=rt,PureComponent:(rt)=>G=rt,StrictMode:(rt)=>z=rt,Suspense:(rt)=>K=rt,ViewTransition:(rt)=>B=rt,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:(rt)=>br=rt,__COMPILER_RUNTIME:(rt)=>V=rt,addTransitionType:(rt)=>W=rt,cache:(rt)=>X=rt,cacheSignal:(rt)=>Q=rt,cloneElement:(rt)=>Z=rt,createContext:(rt)=>Vn=rt,createElement:(rt)=>M=rt,createRef:(rt)=>J=rt,forwardRef:(rt)=>F=rt,isValidElement:(rt)=>ee=rt,lazy:(rt)=>te=rt,memo:(rt)=>re=rt,startTransition:(rt)=>ne=rt,unstable_useCacheRefresh:(rt)=>oe=rt,use:(rt)=>ue=rt,useActionState:(rt)=>se=rt,useCallback:(rt)=>ie=rt,useContext:(rt)=>Kn=rt,useDebugValue:(rt)=>fe=rt,useDeferredValue:(rt)=>ce=rt,useEffect:(rt)=>Qn=rt,useEffectEvent:(rt)=>pe=rt,useId:(rt)=>ae=rt,useImperativeHandle:(rt)=>le=rt,useInsertionEffect:(rt)=>ye=rt,useLayoutEffect:(rt)=>_e=rt,useMemo:(rt)=>Ee=rt,useOptimistic:(rt)=>ve=rt,useReducer:(rt)=>de=rt,useRef:(rt)=>Xn=rt,useState:(rt)=>en=rt,useSyncExternalStore:(rt)=>Jn=rt,useTransition:(rt)=>ge=rt,version:(rt)=>Yn=rt});var tn={};Kt(tn,{__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:()=>Zn,browser:()=>Re,createPortal:()=>xe,flushSync:()=>gt,preconnect:()=>Se,prefetchDNS:()=>Oe,preinit:()=>Ce,preinitModule:()=>Ae,preload:()=>Pe,preloadModule:()=>he,requestFormReset:()=>Ne,unstable_batchedUpdates:()=>we,useFormState:()=>He,useFormStatus:()=>Ie,version:()=>Le},{});var T=Symbol.for("react.transitional.element"),Me=Symbol.for("react.portal"),$e=Symbol.for("react.fragment"),Ye=Symbol.for("react.strict_mode"),Ue=Symbol.for("react.profiler"),ke=Symbol.for("react.consumer"),be=Symbol.for("react.context"),qe=Symbol.for("react.forward_ref"),Ge=Symbol.for("react.suspense"),ze=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),Ke=Symbol.for("react.activity"),Be=Symbol.for("react.view_transition"),O=Symbol.iterator;function Ve(e){if(e===null||typeof e!=="object")return null;return e=O&&e[O]||e["@@iterator"],typeof e==="function"?e:null}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,H={};function y(e,t,r){this.props=e,this.context=t,this.refs=H,this.updater=r||N}y.prototype.isReactComponent={};y.prototype.setState=function(e,t){if(typeof e!=="object"&&typeof e!=="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function I(){}I.prototype=y.prototype;function m(e,t,r){this.props=e,this.context=t,this.refs=H,this.updater=r||N}var R=m.prototype=new I;R.constructor=m;w(R,y.prototype);R.isPureReactComponent=!0;var C=Array.isArray;function g(){}var s={H:null,A:null,T:null,S:null},L=Object.prototype.hasOwnProperty;function x(e,t,r){var n=r.ref;return{$$typeof:T,type:e,key:t,ref:n!==void 0?n:null,props:r}}function We(e,t){return x(e.type,t,e.props)}function S(e){return typeof e==="object"&&e!==null&&e.$$typeof===T}function Xe(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var A=/\/+/g;function d(e,t){return typeof e==="object"&&e!==null&&e.key!=null?Xe(""+e.key):t.toString(36)}function Qe(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status==="string"?e.then(g,g):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function l(e,t,r,n,o){var u=typeof e;if(u==="undefined"||u==="boolean")e=null;var i=!1;if(e===null)i=!0;else switch(u){case"bigint":case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case T:case Me:i=!0;break;case h:return i=e._init,l(i(e._payload),t,r,n,o)}}if(i)return o=o(e),i=n===""?"."+d(e,0):n,C(o)?(r="",i!=null&&(r=i.replace(A,"$&/")+"/"),l(o,t,r,"",function(De){return De})):o!=null&&(S(o)&&(o=We(o,r+(o.key==null||e&&e.key===o.key?"":(""+o.key).replace(A,"$&/")+"/")+i)),t.push(o)),1;i=0;var p=n===""?".":n+":";if(C(e))for(var c=0;c<e.length;c++)n=e[c],u=p+d(n,c),i+=l(n,t,r,u,o);else if(c=Ve(e),typeof c==="function")for(e=c.call(e),c=0;!(n=e.next()).done;)n=n.value,u=p+d(n,c++),i+=l(n,t,r,u,o);else if(u==="object"){if(typeof e.then==="function")return l(Qe(e),t,r,n,o);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return i}function E(e,t,r){if(e==null)return e;var n=[],o=0;return l(e,n,"","",function(u){return t.call(r,u,o++)}),n}function Ze(e){if(e._status===-1){var t=e._result,r=t();r.then(function(n){if(e._status===0||e._status===-1)e._status=1,e._result=n,r.status===void 0&&(r.status="fulfilled",r.value=n)},function(n){if(e._status===0||e._status===-1)e._status=2,e._result=n,r.status===void 0&&(r.status="rejected",r.reason=n)}),e._status===-1&&(e._status=0,e._result=r)}if(e._status===1)return e._result.default;throw e._result}var P=typeof reportError==="function"?reportError:function(e){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e==="object"&&e!==null&&typeof e.message==="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",e);return}console.error(e)};function j(e){var t=s.T,r={};r.types=t!==null?t.types:null,s.T=r;try{var n=e(),o=s.S;o!==null&&o(r,n),typeof n==="object"&&n!==null&&typeof n.then==="function"&&n.then(g,P)}catch(u){P(u)}finally{t!==null&&r.types!==null&&(t.types=r.types),s.T=t}}function D(e){var t=s.T;if(t!==null){var r=t.types;r===null?t.types=[e]:r.indexOf(e)===-1&&r.push(e)}else j(D.bind(null,e))}var Je={map:E,forEach:function(e,t,r){E(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return E(e,function(){t++}),t},toArray:function(e){return E(e,function(t){return t})||[]},only:function(e){if(!S(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};var Y=Ke,U=Je,k=y,b=$e,q=Ue,G=m,z=Ye,K=Ge,B=Be,br=s,V={__proto__:null,c:function(e){return s.H.useMemoCache(e)}},W=D,X=function(e){return function(){return e.apply(null,arguments)}},Q=function(){return null},Z=function(e,t,r){if(e===null||e===void 0)throw Error("The argument must be a React element, but you passed "+e+".");var n=w({},e.props),o=e.key;if(t!=null)for(u in t.key!==void 0&&(o=""+t.key),t)!L.call(t,u)||u==="key"||u==="__self"||u==="__source"||u==="ref"&&t.ref===void 0||(n[u]=t[u]);var u=arguments.length-2;if(u===1)n.children=r;else if(1<u){for(var i=Array(u),p=0;p<u;p++)i[p]=arguments[p+2];n.children=i}return x(e.type,o,n)},Vn=function(e){return e={$$typeof:be,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:ke,_context:e},e},M=function(e,t,r){var n,o={},u=null;if(t!=null)for(n in t.key!==void 0&&(u=""+t.key),t)L.call(t,n)&&n!=="key"&&n!=="__self"&&n!=="__source"&&(o[n]=t[n]);var i=arguments.length-2;if(i===1)o.children=r;else if(1<i){for(var p=Array(i),c=0;c<i;c++)p[c]=arguments[c+2];o.children=p}if(e&&e.defaultProps)for(n in i=e.defaultProps,i)o[n]===void 0&&(o[n]=i[n]);return x(e,u,o)},J=function(){return{current:null}},F=function(e){return{$$typeof:qe,render:e}},ee=S,te=function(e){return{$$typeof:h,_payload:{_status:-1,_result:e},_init:Ze}},re=function(e,t){return{$$typeof:ze,type:e,compare:t===void 0?null:t}},ne=j,oe=function(){return s.H.useCacheRefresh()},ue=function(e){return s.H.use(e)},se=function(e,t,r){return s.H.useActionState(e,t,r)},ie=function(e,t){return s.H.useCallback(e,t)},Kn=function(e){return s.H.useContext(e)},fe=function(){},ce=function(e,t){return s.H.useDeferredValue(e,t)},Qn=function(e,t){return s.H.useEffect(e,t)},pe=function(e){return s.H.useEffectEvent(e)},ae=function(){return s.H.useId()},le=function(e,t,r){return s.H.useImperativeHandle(e,t,r)},ye=function(e,t){return s.H.useInsertionEffect(e,t)},_e=function(e,t){return s.H.useLayoutEffect(e,t)},Ee=function(e,t){return s.H.useMemo(e,t)},ve=function(e,t){return s.H.useOptimistic(e,t)},de=function(e,t,r){return s.H.useReducer(e,t,r)},Xn=function(e){return s.H.useRef(e)},en=function(e){return s.H.useState(e)},Jn=function(e,t,r){return s.H.useSyncExternalStore(e,t,r)},ge=function(){return s.H.useTransition()},Yn="19.3.1";function je(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=="function")return;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(je)}catch(e){console.error(e)}}function me(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var f={d:{f:a,r:function(){throw Error(me(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},Fe=Symbol.for("react.portal"),et=Symbol.for("react.recoverable"),Te=Symbol.for("react.optimistic_key");function tt(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Fe,key:n==null?null:n===Te?Te:""+n,children:e,containerInfo:t,implementation:r}}var _=br;function v(e,t){if(e==="font")return"";if(typeof t==="string")return t==="use-credentials"?t:""}var Zn=f,Re=function(e){return{$$typeof:et,_reason:e}},xe=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(me(299));return tt(e,t,null,r)},gt=function(e){var t=_.T,r=f.p;try{if(_.T=null,f.p=2,e)return e()}finally{_.T=t,f.p=r,f.d.f()}},Se=function(e,t){typeof e==="string"&&(t?(t=t.crossOrigin,t=typeof t==="string"?t==="use-credentials"?t:"":void 0):t=null,f.d.C(e,t))},Oe=function(e){typeof e==="string"&&f.d.D(e)},Ce=function(e,t){if(typeof e==="string"&&t&&typeof t.as==="string"){var r=t.as,n=v(r,t.crossOrigin),o=typeof t.integrity==="string"?t.integrity:void 0,u=typeof t.fetchPriority==="string"?t.fetchPriority:void 0;r==="style"?f.d.S(e,typeof t.precedence==="string"?t.precedence:void 0,{crossOrigin:n,integrity:o,fetchPriority:u}):r==="script"&&f.d.X(e,{crossOrigin:n,integrity:o,fetchPriority:u,nonce:typeof t.nonce==="string"?t.nonce:void 0})}},Ae=function(e,t){if(typeof e==="string")if(typeof t==="object"&&t!==null){if(t.as==null||t.as==="script"){var r=v(t.as,t.crossOrigin);f.d.M(e,{crossOrigin:r,integrity:typeof t.integrity==="string"?t.integrity:void 0,nonce:typeof t.nonce==="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==="string"?t.fetchPriority:void 0})}}else t==null&&f.d.M(e)},Pe=function(e,t){if(typeof e==="string"&&typeof t==="object"&&t!==null&&typeof t.as==="string"){var r=t.as,n=v(r,t.crossOrigin);f.d.L(e,r,{crossOrigin:n,integrity:typeof t.integrity==="string"?t.integrity:void 0,nonce:typeof t.nonce==="string"?t.nonce:void 0,type:typeof t.type==="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority==="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==="string"?t.imageSizes:void 0,media:typeof t.media==="string"?t.media:void 0})}},he=function(e,t){if(typeof e==="string")if(t){var r=v(t.as,t.crossOrigin);f.d.m(e,{as:typeof t.as==="string"&&t.as!=="script"?t.as:void 0,crossOrigin:r,integrity:typeof t.integrity==="string"?t.integrity:void 0,nonce:typeof t.nonce==="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==="string"?t.fetchPriority:void 0})}else f.d.m(e)},Ne=function(e){f.d.r(e)},we=function(e,t){return e(t)},He=function(e,t,r){return _.H.useFormState(e,t,r)},Ie=function(){return _.H.useHostTransitionStatus()},Le="19.3.1";je();
|
|
3
|
+
export{yr,br,Vn,M,Kn,Qn,Xn,en,Jn,Yn,Zn,gt,tn};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
function o(t,r,n,i,s){if(i==="m")throw TypeError("Private method is not writable");if(i==="a"&&!s)throw TypeError("Private accessor was defined without a setter");if(typeof r==="function"?t!==r||!s:!r.has(t))throw TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?s.call(t,n):s?s.value=n:r.set(t,n),n}function e(t,r,n,i){if(n==="a"&&!i)throw TypeError("Private accessor was defined without a getter");if(typeof r==="function"?t!==r||!i:!r.has(t))throw TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?i:n==="a"?i.call(t):i?i.value:r.get(t)}function Ve(t){return typeof t==="object"&&t!==null&&(("name"in t)&&t.name==="AbortError"||("message"in t)&&String(t.message).includes("FetchRequestCanceledException"))}var Ut=(t)=>{if(t instanceof Error)return t;if(typeof t==="object"&&t!==null){try{let r=Object.prototype.toString.call(t);if(r==="[object Error]"||r==="[object DOMException]"){let n=Error(t.message,t.cause?{cause:t.cause}:{});if(t.stack)n.stack=t.stack;if(t.cause&&!n.cause)n.cause=t.cause;if(t.name)n.name=t.name;return n}}catch{}try{return Error(JSON.stringify(t))}catch{}}return Error(t)};var u=(()=>{class t extends Error{}return t})();class ne extends u{constructor(t,r,n,i,s){super(`${ne.makeMessage(t,r,n)}`);this.status=t,this.headers=i,this.requestID=i?.get("request-id"),this.workspaceID=i?.get("anthropic-workspace-id"),this.error=r,this.type=s??null}static makeMessage(t,r,n){let i=r?.message?typeof r.message==="string"?r.message:JSON.stringify(r.message):r?JSON.stringify(r):n;if(t&&i)return`${t} ${i}`;if(t)return`${t} status code (no body)`;if(i)return i;return"(no status code or body)"}static generate(t,r,n,i){if(!t||!i)return new vt({message:n,cause:Ut(r)});let s=r,c=s?.error?.type;if(t===400)return new An(t,s,n,i,c);if(t===401)return new En(t,s,n,i,c);if(t===403)return new Tn(t,s,n,i,c);if(t===404)return new Pn(t,s,n,i,c);if(t===409)return new kn(t,s,n,i,c);if(t===422)return new Rn(t,s,n,i,c);if(t===429)return new Cn(t,s,n,i,c);if(t>=500)return new In(t,s,n,i,c);return new ne(t,s,n,i,c)}}class ke extends ne{constructor({message:t}={}){super(void 0,void 0,t||"Request was aborted.",void 0)}}class vt extends ne{constructor({message:t,cause:r}){super(void 0,void 0,t||"Connection error.",void 0);if(r)this.cause=r}}class _n extends vt{constructor({message:t}={}){super({message:t??"Request timed out."})}}class Io extends u{constructor(t,{cause:r}={}){super(t??"Retryable error.");if(r!==void 0)this.cause=r}}class An extends ne{}class En extends ne{}class Tn extends ne{}class Pn extends ne{}class kn extends ne{}class Rn extends ne{}class Cn extends ne{}class In extends ne{}var b=/^[a-z][a-z0-9+.-]*:/i,fi=(t)=>b.test(t),Ee=(t)=>(Ee=Array.isArray,Ee(t)),Mo=Ee;function Nr(t){if(typeof t!=="object")return{};return t??{}}function Lo(t){if(!t)return!0;for(let r in t)return!1;return!0}function l(t,r){return Object.prototype.hasOwnProperty.call(t,r)}function Oo(t){return t!=null&&typeof t==="object"&&!Array.isArray(t)}var Mn=(t,r)=>{if(typeof r!=="number"||!Number.isInteger(r))throw new u(`${t} must be an integer`);if(r<0)throw new u(`${t} must be a positive integer`);return r};var Ln=(t)=>{try{return JSON.parse(t)}catch(r){return}};function _t(t){}var L=(t)=>{if(typeof globalThis.process<"u")return globalThis.process.env?.[t]?.trim()||void 0;if(typeof globalThis.Deno<"u")return globalThis.Deno.env?.get?.(t)?.trim()||void 0;return};function gi(t){let r=0;for(let s of t)r+=s.length;let n=new Uint8Array(r),i=0;for(let s of t)n.set(s,i),i+=s.length;return n}var y;function Bt(t){let r;return(y??(r=new globalThis.TextEncoder,y=r.encode.bind(r)))(t)}var w;function At(t){let r;return(w??(r=new globalThis.TextDecoder,w=r.decode.bind(r)))(t)}var Dr="warn",a={off:0,error:200,warn:300,info:400,debug:500},On=(t,r,n)=>{if(!t)return;if(l(a,t))return t;n.warn(`${r} was set to ${JSON.stringify(t)}, expected one of ${JSON.stringify(Object.keys(a))}`);return};function f(){}function p(t,r,n){if(!r||a[t]>a[n])return f;else return r[t].bind(r)}var O={error:f,warn:f,info:f,debug:f},h=new WeakMap;function x(t,r){let n=h.get(t);if(n&&n[0]===r)return n[1];let i={error:p("error",t,r),warn:p("warn",t,r),info:p("info",t,r),debug:p("debug",t,r)};return h.set(t,[r,i]),i}function I(t){let r=t.logger,n=t.logLevel??"off";if(!r)return O;return x(r,n)}var m,d;function yi(){let t=L("ANTHROPIC_LOG");if(!d||t!==m)m=t,d=x(console,On(t,"process.env['ANTHROPIC_LOG']",x(console,Dr))??Dr);return d}function et(t,r,n){if(t.debug===f)return;t.debug(r,E(n))}var E=(t)=>{if(t.options)t.options={...t.options},delete t.options.headers;if(t.headers)t.headers=Object.fromEntries((t.headers instanceof Headers?[...t.headers]:Object.entries(t.headers)).map(([r,n])=>[r,r.toLowerCase()==="authorization"||r.toLowerCase()==="api-key"||r.toLowerCase()==="x-api-key"||r.toLowerCase()==="cookie"||r.toLowerCase()==="set-cookie"?"***":n]));if("retryOfRequestLogID"in t){if(t.retryOfRequestLogID)t.retryOf=t.retryOfRequestLogID;delete t.retryOfRequestLogID}return t};function he(t,r){return t instanceof ne&&t.status===r}function T(t){return t instanceof ne&&typeof t.status==="number"&&t.status>=400&&t.status<500}function Ft(t){return T(t)&&!he(t,408)&&!he(t,409)&&!he(t,429)}function Nn(t,r,n){return Math.min(r*2**t,n)}function bi(t,r){return t+Math.random()*(r-t)}function Dn(t){return t*(1-Math.random()*0.25)}var R=(()=>{class t extends Error{constructor(r){let n=typeof r==="string"?r:r.map((i)=>{if(i.type==="text")return i.text;return`[${i.type}]`}).join(" ");super(n);this.name="ToolError",this.content=r}}return t})();var No=15000,g=5000;function Ur(t,r){if(!(t>=g))throw new u(`${r} must be at least ${g}ms (got ${t}); to run without memory sync, pass \`memorySyncIntervalMs: null\` to the worker instead`)}function $t(){let t,r;return{promise:new Promise((i,s)=>{t=i,r=s}),resolve:t,reject:r}}
|
|
3
|
+
export{o,e,Ve,Ut,u,ne,ke,vt,_n,Io,An,En,Tn,Pn,kn,Rn,Cn,In,fi,Ee,Mo,Nr,Lo,Oo,Mn,Ln,_t,L,gi,Bt,At,Dr,On,I,yi,et,he,Ft,Nn,bi,Dn,R,No,Ur,$t};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
function n(){if(typeof process>"u"||!(process.versions?.node||process.versions?.bun))return null;return process.getBuiltinModule?.("node:os")??null}var e=n();function
|
|
3
|
-
export{
|
|
2
|
+
function n(){if(typeof process>"u"||!(process.versions?.node||process.versions?.bun))return null;return process.getBuiltinModule?.("node:os")??null}var e=n();function oe(){return e?`pi (${e.platform()} ${e.release()}; ${e.arch()})`:"pi (browser)"}
|
|
3
|
+
export{oe};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
var l=Object.create;var{getPrototypeOf:m,defineProperty:g,getOwnPropertyNames:n}=Object;var k=Object.prototype.hasOwnProperty;function o(b){return this[b]}var q,s,a=(b,c,d)=>{var e=b!=null&&typeof b==="object";if(e){var i=c?q??=new WeakMap:s??=new WeakMap,j=i.get(b);if(j)return j}d=b!=null?l(m(b)):{};let f=c||!b||!b.__esModule||!k.call(b,"default")?g(d,"default",{value:b,enumerable:!0}):d;if(b&&typeof b==="object"||typeof b==="function"){for(let h of n(b))if(!k.call(f,h))g(f,h,{get:o.bind(b,h),enumerable:!0})}if(e)i.set(b,f);return f};var r=(b,c)=>()=>(c||b((c={exports:{}}).exports,c),c.exports);var t=(b)=>b;function u(b,c){this[b]=t.bind(null,c)}var Ze=(b,c)=>{for(var d in c)g(b,d,{get:c[d],enumerable:!0,configurable:!0,set:u.bind(c,d)})};var Kt=(b,c,d)=>{for(var e in c)g(b,e,{get:c[e],set:d[e],enumerable:!0,configurable:!0})},p=import.meta.require;
|
|
3
|
+
export{a,r,Ze,Kt,p};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{xr}from"./chunk-343jsm46.js";import{pe}from"./chunk-xq74x4gc.js";var s="Cloudflare Workers AI";function n(r){if(Array.isArray(r)){let e=r.map((t)=>pe(t)&&typeof t.message==="string"?t.message:void 0).filter((t)=>t!==void 0);if(e.length>0)return`${s} error: ${e.join("; ")}`}return`${s} request failed`}var o={api:"cloudflare-workers-ai-system-one",label:s,url:(r)=>new URL("run",`${r.baseUrl.replace(/\/+$/u,"")}/`),payload:(r,e)=>({model:r.id,input:e}),output:(r)=>{if(!pe(r))throw Error(`${s} returned an unexpected response`);if(r.success===!1)throw Error(n(r.errors));let e=r.result;if(!pe(e))throw Error(`${s} returned an unexpected response`);if("answers"in e)return e;if(e.state!=="Completed")throw Error(`${s} run did not complete (state: ${String(e.state)})`);if(!pe(e.result))throw Error(`${s} returned an unexpected response`);return e.result}},i=(r,e,t)=>xr(o,r,e,t);export{i as classify};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
`),d=o.filter((c)=>c.type==="image"),u=l.length>0;if(d.length===0||!a.input.includes("image"))return
|
|
2
|
+
import{G}from"./chunk-38g4jd6v.js";import{rt}from"./chunk-06s9pr82.js";import{be,Hr,qr,fe,nr,Se}from"./chunk-qs161f2q.js";import{w}from"./chunk-b516bp7n.js";import{W,De,se,ve,Y}from"./chunk-z9p6s986.js";function j(a,o){let l={v:1,id:a};if(o)l.phase=o;return JSON.stringify(l)}function E(a){if(!a)return;if(a.startsWith("{"))try{let o=JSON.parse(a);if(o.v===1&&typeof o.id==="string"){if(o.phase==="commentary"||o.phase==="final_answer")return{id:o.id,phase:o.phase};return{id:o.id}}}catch{}return{id:a}}function N(a,o){let l=o.filter((c)=>c.type==="text").map((c)=>c.text).join(`
|
|
3
|
+
`),d=o.filter((c)=>c.type==="image"),u=l.length>0;if(d.length===0||!a.input.includes("image"))return w(u?l:d.length>0?"(see attached image)":"(no tool output)");let p=[];if(u)p.push({type:"input_text",text:w(l)});for(let c of d)p.push({type:"input_image",detail:"auto",image_url:`data:${c.mimeType};base64,${c.data}`});return p}function ut(a,o,l,d){let u=se(o,d?.supportsMidConvoSystemMessages),p=[],c=(n)=>{let s=n.replace(/[^a-zA-Z0-9_-]/g,"_");return(s.length>64?s.slice(0,64):s).replace(/_+$/,"")},S=(n)=>{let s=`fc_${rt(n)}`;return s.length>64?s.slice(0,64):s},x=(n,s,i)=>{if(!l.has(a.provider))return c(n);if(!n.includes("|"))return c(n);let[r,g]=n.split("|"),h=c(r),y=i.provider!==a.provider||i.api!==a.api?S(g):c(g);if(!y.startsWith("fc_"))y=c(`fc_${y}`);return`${h}|${y}`},m=Se(u.messages,a,x),k=ve(u.messages,(d?.supportsAdditionalTools??!1)||(d?.supportsToolSearch??!1)),T=(n,s)=>{let i=k.anchorsAdditions?n.toolsAdded??[]:[];if(i.length===0)return;if(d?.supportsAdditionalTools){p.push({type:"additional_tools",role:"developer",tools:tt(i,d.toolOptions)});return}if(!d?.supportsToolSearch)return;let r=i.map((h)=>h.name),g=`pi_tool_load_${rt(`${s}:${r.join(",")}`)}`;p.push({type:"tool_search_call",call_id:g,execution:"client",status:"completed",arguments:{query:r.join(" "),limit:r.length}}),p.push({type:"tool_search_output",call_id:g,execution:"client",status:"completed",tools:tt(i,{...d.toolOptions,toolSearchResult:!0})})},R=d?.includeSystemPrompt??!0,C=a.compat,M=a.reasoning&&C?.supportsDeveloperRole!==!1?"developer":"system",t=0,e=0;for(let n of m){let s=e++===0&&n.role==="system";if(n.role==="system"){if(!s)T(n,`system:${t}`);if(!s||R){let i=s?W(n):De(n);if(i.length>0)p.push({role:M,content:w(i)})}}else if(n.role==="user")if(typeof n.content==="string")p.push({role:"user",content:[{type:"input_text",text:w(n.content)}]});else{let i=n.content.map((r)=>{if(r.type==="text")return{type:"input_text",text:w(r.text)};return{type:"input_image",detail:"auto",image_url:`data:${r.mimeType};base64,${r.data}`}});if(i.length===0)continue;p.push({role:"user",content:i})}else if(n.role==="assistant"){let i=[],r=n,g=r.provider===a.provider&&r.api===a.api,h=g&&r.model===a.id,P=g&&r.model!==a.id,y=0;for(let I of n.content)if(I.type==="thinking"){if(I.thinkingSignature){let f=JSON.parse(I.thinkingSignature);i.push(f)}}else if(I.type==="text"){let f=I,b=E(f.textSignature),J=y===0?`msg_pi_${t}`:`msg_pi_${t}_${y}`;y++;let _=b?.id;if(!_)_=J;else if(_.length>64)_=`msg_${rt(_)}`;i.push({type:"message",role:"assistant",content:[{type:"output_text",text:w(f.text),annotations:[]}],status:"completed",id:_,phase:b?.phase})}else if(I.type==="toolCall"){let f=I,[b,J]=f.id.split("|"),_=d?.grammarToolInputProperties?.get(f.name),v=J,A=_===void 0?"fc_":"ctc_";if(P||!v?.startsWith(A))v=void 0;if(_!==void 0)i.push({type:"custom_tool_call",id:v,call_id:b,name:f.name,input:w(Hr(f.name,f.arguments,_)),...h&&f.namespace!==void 0?{namespace:f.namespace}:{}});else i.push({type:"function_call",id:v,call_id:b,name:f.name,arguments:JSON.stringify(f.arguments),...h&&f.namespace!==void 0?{namespace:f.namespace}:{}})}if(i.length===0)continue;p.push(...i)}else if(n.role==="toolResult"){let[i]=n.toolCallId.split("|"),r=N(a,n.content);if(d?.grammarToolInputProperties?.has(n.toolName))p.push({type:"custom_tool_call_output",call_id:i,output:r});else p.push({type:"function_call_output",call_id:i,output:r})}if(!s)t++}return p}function tt(a,o){let l=o?.strict===void 0?!1:o.strict,d=o?.supportsStrictMode??!0,u=o?.supportsOpenAIGrammarTools??!1;return a.map((p)=>{let c=nr(p,u);if(c)return{type:"custom",name:p.name,description:p.description,format:{type:"grammar",syntax:c.format,definition:c.definition},...o?.toolSearchResult?{defer_loading:!0}:{}};let x=fe(p,d)??l,m={type:"function",name:p.name,description:p.description,parameters:be(p,x===!0),...o?.toolSearchResult?{defer_loading:!0}:{}};if(d)m.strict=x;return m})}function z(a){let o=a.customInput?.property;if(o===void 0)return"";let l=a.arguments[o];return typeof l==="string"?l:""}function O(a,o,l){let d=a.customInput;if(!d)return;let u=qr(d.jsonBuffer,d.property,o,l);return a.arguments={[d.property]:o},u}async function pt(a,o,l,d,u){let p=!1,c=new Map,S=new Map,x=(t)=>{if(t.type==="message"&&t.phase==="final_answer")o.stopReason="stop"},m=(t,e)=>{let n=c.get(t);return n?.type===e?n:void 0},k=(t,e)=>{if(e===void 0)return;l.push({type:"toolcall_delta",contentIndex:t.contentIndex,delta:e,partial:o})},T=(t,e)=>{if(e.type==="reasoning"){let n={type:"thinking",thinking:""};o.content.push(n);let s={type:"thinking",block:n,contentIndex:o.content.length-1};return c.set(t,s),l.push({type:"thinking_start",contentIndex:s.contentIndex,partial:o}),s}if(e.type==="message"){x(e);let n={type:"text",text:""};o.content.push(n);let s={type:"text",block:n,contentIndex:o.content.length-1};return c.set(t,s),l.push({type:"text_start",contentIndex:s.contentIndex,partial:o}),s}if(e.type==="function_call"){let n={type:"toolCall",id:`${e.call_id}|${e.id}`,name:e.name,arguments:{},...e.namespace!==void 0?{namespace:e.namespace}:{},partialJson:e.arguments||""};o.content.push(n);let s={type:"toolCall",block:n,contentIndex:o.content.length-1};return c.set(t,s),l.push({type:"toolcall_start",contentIndex:s.contentIndex,partial:o}),s}if(e.type==="custom_tool_call"){let n=u?.grammarToolInputProperties?.get(e.name)??"input",s=e.input||"",i={type:"toolCall",id:`${e.call_id}|${e.id}`,name:e.name,arguments:{[n]:s},...e.namespace!==void 0?{namespace:e.namespace}:{},customInput:{property:n,jsonBuffer:{input:"",started:!1,closed:!1}}};o.content.push(i);let r={type:"toolCall",block:i,contentIndex:o.content.length-1};return c.set(t,r),l.push({type:"toolcall_start",contentIndex:r.contentIndex,partial:o}),r}return},R=(t,e)=>c.get(t)??T(t,e),C=(t)=>{for(let e of t){if(e.type!=="reasoning"||!e.encrypted_content)continue;let n=S.get(e.id);if(!n?.thinkingSignature)continue;let s=JSON.parse(n.thinkingSignature);if(s.encrypted_content)continue;n.thinkingSignature=JSON.stringify({...s,encrypted_content:e.encrypted_content})}},M=(t)=>{if(p=!0,C(t.output??[]),t?.id)o.responseId=t.id;if(t?.usage){let r=t.usage.input_tokens_details,g=r?.cached_tokens||0,h=r?.cache_write_tokens||0;o.usage={input:Math.max(0,(t.usage.input_tokens||0)-g-h),output:t.usage.output_tokens||0,cacheRead:g,cacheWrite:h,reasoning:t.usage.output_tokens_details?.reasoning_tokens||0,totalTokens:t.usage.total_tokens||0,cost:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0}}}if(Y(d,o.usage),u?.applyServiceTierPricing){let r=u.resolveServiceTier?u.resolveServiceTier(t?.service_tier,u.serviceTier):t?.service_tier??u.serviceTier;u.applyServiceTierPricing(o.usage,r)}let e=t?.status,n=t?.incomplete_details,s=typeof n?.reason==="string"?n.reason:void 0;o.rawStopReason=s?`${e}.${s}`:e;let i=B(e,s);if(o.stopReason=i.stopReason,i.errorMessage===void 0)delete o.errorMessage;else o.errorMessage=i.errorMessage;if(o.content.some((r)=>r.type==="toolCall")&&o.stopReason==="stop")o.stopReason="toolUse"};for await(let t of a)if(await u?.onProviderStreamEvent?.(t,d),t.type==="response.created")o.responseId=t.response.id;else if(t.type==="response.output_item.added")T(t.output_index,t.item);else if(t.type==="response.reasoning_summary_text.delta"){let e=m(t.output_index,"thinking");if(!e)continue;e.block.thinking+=t.delta,l.push({type:"thinking_delta",contentIndex:e.contentIndex,delta:t.delta,partial:o})}else if(t.type==="response.reasoning_summary_part.done"){let e=m(t.output_index,"thinking");if(!e)continue;e.block.thinking+=`
|
|
4
4
|
|
|
5
5
|
`,l.push({type:"thinking_delta",contentIndex:e.contentIndex,delta:`
|
|
6
6
|
|
|
7
|
-
`,partial:o})}else if(t.type==="response.reasoning_text.delta"){let e=m(t.output_index,"thinking");if(!e)continue;e.block.thinking+=t.delta,l.push({type:"thinking_delta",contentIndex:e.contentIndex,delta:t.delta,partial:o})}else if(t.type==="response.output_text.delta"){let e=m(t.output_index,"text");if(!e)continue;e.block.text+=t.delta,l.push({type:"text_delta",contentIndex:e.contentIndex,delta:t.delta,partial:o})}else if(t.type==="response.refusal.delta"){let e=m(t.output_index,"text");if(!e)continue;e.block.text+=t.delta,l.push({type:"text_delta",contentIndex:e.contentIndex,delta:t.delta,partial:o})}else if(t.type==="response.function_call_arguments.delta"){let e=m(t.output_index,"toolCall");if(!e||e.block.partialJson===void 0)continue;e.block.partialJson+=t.delta,e.block.arguments=
|
|
7
|
+
`,partial:o})}else if(t.type==="response.reasoning_text.delta"){let e=m(t.output_index,"thinking");if(!e)continue;e.block.thinking+=t.delta,l.push({type:"thinking_delta",contentIndex:e.contentIndex,delta:t.delta,partial:o})}else if(t.type==="response.output_text.delta"){let e=m(t.output_index,"text");if(!e)continue;e.block.text+=t.delta,l.push({type:"text_delta",contentIndex:e.contentIndex,delta:t.delta,partial:o})}else if(t.type==="response.refusal.delta"){let e=m(t.output_index,"text");if(!e)continue;e.block.text+=t.delta,l.push({type:"text_delta",contentIndex:e.contentIndex,delta:t.delta,partial:o})}else if(t.type==="response.function_call_arguments.delta"){let e=m(t.output_index,"toolCall");if(!e||e.block.partialJson===void 0)continue;e.block.partialJson+=t.delta,e.block.arguments=G(e.block.partialJson),k(e,t.delta)}else if(t.type==="response.function_call_arguments.done"){let e=m(t.output_index,"toolCall");if(!e||e.block.partialJson===void 0)continue;let n=e.block.partialJson;if(e.block.partialJson=t.arguments,e.block.arguments=G(e.block.partialJson),t.arguments.startsWith(n)){let s=t.arguments.slice(n.length);if(s.length>0)k(e,s)}}else if(t.type==="response.custom_tool_call_input.delta"){let e=m(t.output_index,"toolCall");if(!e||!e.block.customInput)continue;k(e,O(e.block,z(e.block)+t.delta,!1))}else if(t.type==="response.custom_tool_call_input.done"){let e=m(t.output_index,"toolCall");if(!e||!e.block.customInput)continue;k(e,O(e.block,t.input,!0))}else if(t.type==="response.output_item.done"){let e=t.item;x(e);let n=R(t.output_index,e);if(e.type==="reasoning"&&n?.type==="thinking"){let s=e.summary?.map((r)=>r.text).join(`
|
|
8
8
|
|
|
9
9
|
`)||"",i=e.content?.map((r)=>r.text).join(`
|
|
10
10
|
|
|
11
|
-
`)||"";n.block.thinking=s||i||n.block.thinking,n.block.thinkingSignature=JSON.stringify(e),
|
|
12
|
-
export{
|
|
11
|
+
`)||"";n.block.thinking=s||i||n.block.thinking,n.block.thinkingSignature=JSON.stringify(e),S.set(e.id,n.block),l.push({type:"thinking_end",contentIndex:n.contentIndex,content:n.block.thinking,partial:o}),c.delete(t.output_index)}else if(e.type==="message"&&n?.type==="text")n.block.text=e.content?.map((s)=>s.type==="output_text"?s.text:s.refusal).join("")||"",n.block.textSignature=j(e.id,e.phase??void 0),l.push({type:"text_end",contentIndex:n.contentIndex,content:n.block.text,partial:o}),c.delete(t.output_index);else if(e.type==="function_call"&&n?.type==="toolCall"&&n.block.partialJson!==void 0){if(n.block.arguments=G(e.arguments||n.block.partialJson||"{}"),e.namespace!==void 0)n.block.namespace=e.namespace;delete n.block.partialJson,l.push({type:"toolcall_end",contentIndex:n.contentIndex,toolCall:n.block,partial:o}),c.delete(t.output_index)}else if(e.type==="custom_tool_call"&&n?.type==="toolCall"&&n.block.customInput){if(k(n,O(n.block,e.input??z(n.block),!0)),e.namespace!==void 0)n.block.namespace=e.namespace;delete n.block.customInput,l.push({type:"toolcall_end",contentIndex:n.contentIndex,toolCall:n.block,partial:o}),c.delete(t.output_index)}}else if(t.type==="response.completed"||t.type==="response.incomplete")M(t.response);else if(t.type==="error")throw Error(`Error Code ${t.code}: ${t.message}`||"Unknown error");else if(t.type==="response.failed"){p=!0,o.rawStopReason=t.response?.status;let e=t.response?.error,n=t.response?.incomplete_details,s=e?`${e.code||"unknown"}: ${e.message||"no message"}`:n?.reason?`incomplete: ${n.reason}`:"Unknown error (no error details in response)";throw Error(s)}if(!p)throw Error("OpenAI Responses stream ended before a terminal response event");if(o.stopReason==="toolUse")for(let t of o.content){if(t.type!=="toolCall")continue;let e=t;if(e.partialJson!==void 0||e.customInput!==void 0)throw Error(`OpenAI Responses stream completed with an unfinished tool call: ${e.name} (${e.id})`)}}function B(a,o){if(!a)return{stopReason:"stop"};switch(a){case"completed":return{stopReason:"stop"};case"incomplete":if(o==="max_output_tokens")return{stopReason:"length"};return{stopReason:"error",errorMessage:o?`Response incomplete: ${o}`:"Response incomplete without a provider reason"};case"failed":case"cancelled":return{stopReason:"error"};case"in_progress":case"queued":return{stopReason:"stop"};default:throw Error(`Unhandled stop reason: ${a}`)}}
|
|
12
|
+
export{ut,tt,pt};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{
|
|
2
|
+
import{W,K}from"./chunk-z9p6s986.js";class p extends Error{}var j=["$ref","$defs","definitions","allOf","oneOf","patternProperties","dependentSchemas","dependencies","unevaluatedProperties","propertyNames","contains","prefixItems","not","if","then","else"];function y(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)}function L(e){if(!y(e))return!1;let n=typeof e.type==="string"?[e.type]:Array.isArray(e.type)?e.type:[];return n.includes("object")||n.includes("array")||e.properties!==void 0||e.items!==void 0}function M(e){if(!y(e))return!1;if(e.type==="null"||Array.isArray(e.type)&&e.type.includes("null"))return!0;if(e.const===null||Array.isArray(e.enum)&&e.enum.includes(null))return!0;return Array.isArray(e.anyOf)&&e.anyOf.some((n)=>M(n))}function w(e,n){if(!y(e))throw new p("boolean schemas are unsupported");for(let a of j)if(e[a]!==void 0)throw new p(`${a} schemas are unsupported`);if(n){for(let[a,l]of Object.entries(e))if(n(a,l))throw new p(`${a}: ${JSON.stringify(l)} is unsupported`)}if(e.anyOf!==void 0){if(!Array.isArray(e.anyOf)||e.anyOf.length===0)throw new p("anyOf must contain at least one schema");for(let a of e.anyOf){if(L(a))throw new p("object and array unions are unsupported");w(a,n)}}if(e.items!==void 0){if(Array.isArray(e.items))throw new p("tuple schemas are unsupported");w(e.items,n)}let t=e.type==="object";if(e.properties!==void 0&&!t)throw new p("properties require type object");if(!t)return;if(e.additionalProperties!==void 0&&e.additionalProperties!==!1)throw new p("schema-valued or true additionalProperties is unsupported");if(e.properties!==void 0&&!y(e.properties))throw new p("object properties must be a schema map");if(e.required!==void 0&&(!Array.isArray(e.required)||e.required.some((a)=>typeof a!=="string")))throw new p("object required must be a string array");let r=e.properties??{},i=Object.keys(r),o=new Set(Array.isArray(e.required)?e.required:[]);if([...o].some((a)=>!i.includes(a)))throw new p("required contains an unknown property");for(let[a,l]of Object.entries(r))if(w(l,n),!o.has(a)&&!M(l))r[a]={anyOf:[l,{type:"null"}]};e.required=i,e.additionalProperties=!1}function N(e,n){let t=structuredClone(e);if(!y(t))throw new p("root schema must have type object");if(w(t,n),t.type!=="object")throw new p("root schema must have type object");return t}function be(e,n){return n===!0?N(e.parameters):e.parameters}function Hr(e,n,t){let r=n[t];if(typeof r!=="string")throw Error(`Grammar tool call "${e}" requires argument "${t}" to be a string.`);return r}function qr(e,n,t,r){if(e.closed){if(r&&t===e.input)return;throw Error(`grammar tool input for property "${n}" changed after it was closed`)}if(!t.startsWith(e.input))throw Error(`grammar tool input for property "${n}" changed non-monotonically`);let i=t.slice(e.input.length);if(!r&&i.length===0)return;let o="";if(!e.started)o+=`{${JSON.stringify(n)}:"`,e.started=!0;if(o+=JSON.stringify(i).slice(1,-1),e.input=t,r)o+='"}',e.closed=!0;return o}function D(e){let n=e.parameters;if(n.type!=="object")throw Error("grammar constrained sampling requires an object parameter schema");if(!Array.isArray(n.required)||n.required.length!==1||typeof n.required[0]!=="string")throw Error("grammar constrained sampling requires exactly one required string property");let t=n.required[0];if(!n.properties?.[t])throw Error(`grammar constrained sampling requires a properties entry for ${t}`);if(n.properties[t]?.type!=="string")throw Error(`grammar constrained sampling property ${t} must have type string`);return t}function fe(e,n,t){let r=e.constrainedSampling;if(!r||r.type!=="json_schema")return;if(n)try{return N(e.parameters,t),!0}catch(i){if(!(i instanceof p))throw i;if(r.strict!=="require")return;throw Error(`Tool "${e.name}" requires JSON-schema constrained sampling, but ${i.message}.`)}if(r.strict==="require")throw Error(`Tool "${e.name}" requires JSON-schema constrained sampling, but strict tools are unsupported.`);return}function nr(e,n){let t=e.constrainedSampling;if(!t||t.type!=="grammar")return;if(!n)return;let r=t.variants.openai_lark,i=t.variants.openai_regex,o=typeof r==="string"&&r.trim().length>0,a=typeof i==="string"&&i.trim().length>0;if(!o&&!a)throw Error(`Tool "${e.name}" cannot use grammar constrained sampling: no supported grammar variant was provided.`);try{return{format:o?"lark":"regex",definition:o?r:i,inputProperty:D(e)}}catch(l){let d=l instanceof Error?l.message:String(l);throw Error(`Tool "${e.name}" cannot use grammar constrained sampling: ${d}.`)}}function Re(e,n){let t=new Map;for(let r of e??[]){let i=nr(r,n);if(i)t.set(r.name,i.inputProperty)}return t}var O=3.5,G=4800;function R(e){return e.totalTokens||e.input+e.output+e.cacheRead+e.cacheWrite}function _(e){try{return JSON.stringify(e)??"undefined"}catch{return"[unserializable]"}}function b(e){if(typeof e==="string")return e.length;let n=0;for(let t of e)n+=t.type==="text"?t.text.length:G;return n}function P(e){return Math.ceil(e.length/O)}function k(e){return Math.ceil(b(e)/O)}function C(e){let n=0;if(e.role==="system")return P(W(e))+E(e.toolsAdded)+E(e.toolsRemoved);if(e.role==="user")return k(e.content);if(e.role==="toolResult")return k(e.content);for(let t of e.content)if(t.type==="text")n+=t.text.length;else if(t.type==="thinking")n+=t.thinking.length;else n+=t.name.length+_(t.arguments).length;return Math.ceil(n/O)}function H(e){let n=Number.NEGATIVE_INFINITY,t;for(let r=0;r<e.length;r++){let i=e[r];if(i.role==="assistant"){let o=i;if(o.timestamp>=n&&o.stopReason!=="aborted"&&o.stopReason!=="error"&&R(o.usage)>0)t={usage:o.usage,index:r}}n=Math.max(n,i.timestamp)}return t}function v(e){let n="messages"in e?e.messages:e,t=H(n);if(t){let i=R(t.usage),o=0;for(let a=t.index+1;a<n.length;a++)o+=C(n[a]);return{tokens:i+o,usageTokens:i,trailingTokens:o,lastUsageIndex:t.index}}let r=0;for(let i of n)r+=C(i);return{tokens:r,usageTokens:0,trailingTokens:r,lastUsageIndex:null}}function E(e){if(!e||e.length===0)return 0;return P(_(e))}var B=4096,S=1;function or(e,n,t){if(e.contextWindow<=0)return Math.max(S,t);let r=e.contextWindow-v(n).tokens-B;return Math.min(t,Math.max(S,r))}function dt(e,n,t){let r=K(e,n),i=e.samplingParamsByThinkingLevel?.[r];return e.samplingParams||i||t?{...e.samplingParams,...i,...t}:void 0}function X(e,n,t,r){let i=dt(e,t?.reasoning??"off",t?.samplingParams);return{temperature:t?.temperature,samplingParams:i,maxTokens:or(e,n,t?.maxTokens??e.maxTokens),signal:t?.signal,telemetryContext:t?.telemetryContext,apiKey:r||t?.apiKey,fetch:t?.fetch,transport:t?.transport,cacheRetention:t?.cacheRetention,sessionId:t?.sessionId,headers:t?.headers,onPayload:t?.onPayload,onResponse:t?.onResponse,onProviderStreamEvent:t?.onProviderStreamEvent,timeoutMs:t?.timeoutMs,websocketConnectTimeoutMs:t?.websocketConnectTimeoutMs,maxRetries:t?.maxRetries,maxRetryDelayMs:t?.maxRetryDelayMs,metadata:t?.metadata,env:t?.env}}var F=1024,V={minimal:1024,low:2048,medium:8192,high:16384};function $o(e){return e==="xhigh"||e==="max"?"high":e}function Wo(e,n){let t={...V,...n},r=$o(e);return t[r]}function Ho(e,n){return Math.min(e,Math.max(0,n-F))}function Gr(e,n,t,r){let i=Wo(t,r),o=e===void 0?n:Math.min(e+i,n);if(o<=i)i=Ho(i,o);return{maxTokens:o,thinkingBudget:i}}function q(e,n){let t=[],r=!1;for(let i of e){if(i.type==="image"){if(!r)t.push({type:"text",text:n});r=!0;continue}t.push(i),r=i.text===n}return t}function z(e,n){if(n.input.includes("image"))return e;return e.map((t)=>{if(t.role==="user"&&Array.isArray(t.content))return{...t,content:q(t.content,"(image omitted: model does not support images)")};if(t.role==="toolResult")return{...t,content:q(t.content,"(tool image omitted: model does not support images)")};return t})}function Se(e,n,t){let r=new Map,i=e.map((s)=>s.content==null?{...s,content:[]}:s),a=z(i,n).map((s)=>{if(s.role==="system"||s.role==="user")return s;if(s.role==="toolResult"){let u=r.get(s.toolCallId);if(u&&u!==s.toolCallId)return{...s,toolCallId:u};return s}if(s.role==="assistant"){let u=s,c=u.provider===n.provider&&u.api===n.api&&u.model===n.id,x=u.content.flatMap((f)=>{if(f.type==="thinking"){if(f.redacted)return c?f:[];if(c&&f.thinkingSignature)return f;if(!f.thinking||f.thinking.trim()==="")return[];if(c)return f;return{type:"text",text:f.thinking}}if(f.type==="text"){if(c)return f;return{type:"text",text:f.text}}if(f.type==="toolCall"){let m=f,g=m;if(!c&&m.thoughtSignature)g={...m},delete g.thoughtSignature;if(!c&&t){let I=t(m.id,n,u);if(I!==m.id)r.set(m.id,I),g={...g,id:I}}return g}return f});return{...u,content:x}}return s}),l=[],d=[],h=new Set,T=[],A=()=>{if(d.length>0){for(let s of d)if(!h.has(s.id))l.push({role:"toolResult",toolCallId:s.id,toolName:s.name,content:[{type:"text",text:"No result provided"}],isError:!0,timestamp:Date.now()});d=[],h=new Set}l.push(...T),T.length=0};for(let s=0;s<a.length;s++){let u=a[s];if(u.role==="assistant"){A();let c=u;if(c.stopReason==="error"||c.stopReason==="aborted")continue;let x=c.content.filter((f)=>f.type==="toolCall");if(x.length>0)d=x,h=new Set;l.push(u)}else if(u.role==="toolResult")h.add(u.toolCallId),l.push(u);else if(u.role==="system")if(d.length>0)T.push(u);else l.push(u);else if(u.role==="user")A(),l.push(u);else l.push(u)}return A(),l}
|
|
3
|
+
export{be,Hr,qr,fe,nr,Re,or,dt,X,$o,Wo,Ho,Gr,Se};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{B}from"./chunk-mh4bjtfs.js";import{v}from"./chunk-cs91rmbf.js";import{a}from"./chunk-qd2enpr2.js";var i=a(v());var t=a(v());import{exec as w}from"child_process";import{promisify as P}from"util";var p=a(B()),f=(r,e,o)=>{if(e.Version!==1)throw Error(`Profile ${r} credential_process did not return Version 1.`);if(e.AccessKeyId===void 0||e.SecretAccessKey===void 0)throw Error(`Profile ${r} credential_process returned invalid credentials.`);if(e.Expiration){let d=new Date;if(new Date(e.Expiration)<d)throw Error(`Profile ${r} credential_process returned expired credentials.`)}let s=e.AccountId;if(!s&&o?.[r]?.aws_account_id)s=o[r].aws_account_id;let n={accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,...e.SessionToken&&{sessionToken:e.SessionToken},...e.Expiration&&{expiration:new Date(e.Expiration)},...e.CredentialScope&&{credentialScope:e.CredentialScope},...s&&{accountId:s}};return p.setCredentialFeature(n,"CREDENTIALS_PROCESS","w"),n};var u=async(r,e,o)=>{let s=e[r];if(e[r]){let n=s.credential_process;if(n!==void 0){let d=P(t.externalDataInterceptor?.getTokenRecord?.().exec??w);try{let{stdout:c}=await d(n),l;try{l=JSON.parse(c.trim())}catch{throw Error(`Profile ${r} credential_process returned invalid JSON.`)}return f(r,l,e)}catch(c){throw new t.CredentialsProviderError(c.message,{logger:o})}}else throw new t.CredentialsProviderError(`Profile ${r} did not contain credential_process.`,{logger:o})}else throw new t.CredentialsProviderError(`Profile ${r} could not be found in shared credentials file.`,{logger:o})};var m=(r={})=>async({callerClientConfig:e}={})=>{r.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");let o=await i.parseKnownFiles(r);return u(i.getProfileName({profile:r.profile??e?.profile}),o,r.logger)};export{m as fromProcess};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
function
|
|
3
|
-
export{
|
|
2
|
+
function Q(r){let e={};for(let[n,o]of r.entries())e[n]=o;return e}function we(...r){let e=new Map;for(let n of r)for(let[o,t]of Object.entries(n??{})){let s=o.toLowerCase();if(e.delete(s),t!==null)e.set(s,[o,t])}return e.size>0?Object.fromEntries(e.values()):void 0}
|
|
3
|
+
export{Q,we};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
function c(e){if(!(e instanceof Error)||!("status"in e)||!("headers"in e))return!1;return(e.status===void 0||typeof e.status==="number")&&(e.headers===void 0||e.headers instanceof Headers)}function d(e){let t=e.headers?.get("x-should-retry");if(t==="true")return!0;if(t==="false")return!1;if(e.status===void 0)return!0;return e.status===408||e.status===409||e.status===429||typeof e.status==="number"&&e.status>=500}function f(e,t,s){let n=t??60000;if(n>0&&e>n)throw Error(`Server requested ${Math.ceil(e/1000)}s retry delay (max: ${Math.ceil(n/1000)}s). ${s}`);return e}function l(e,t,s){let n=e.headers?.get("retry-after-ms");if(n){let a=Number.parseFloat(n);if(Number.isFinite(a))return f(a,s,e.message)}let r=e.headers?.get("retry-after");if(r){let a=Number.parseFloat(r),o=Number.isNaN(a)?Date.parse(r)-Date.now():a*1000;if(Number.isFinite(o))return f(o,s,e.message)}return Math.min(0.5*2**t,8)*1000*(1-Math.random()*0.25)}function i(){let e=Error("Request aborted");return e.name="AbortError",e}function m(e,t){return new Promise((s,n)=>{if(t?.aborted){n(i());return}let r=()=>{clearTimeout(u),n(i())},u=setTimeout(()=>{t?.removeEventListener("abort",r),s()},Math.max(0,e));t?.addEventListener("abort",r,{once:!0})})}async function
|
|
3
|
-
export{
|
|
2
|
+
function c(e){if(!(e instanceof Error)||!("status"in e)||!("headers"in e))return!1;return(e.status===void 0||typeof e.status==="number")&&(e.headers===void 0||e.headers instanceof Headers)}function d(e){let t=e.headers?.get("x-should-retry");if(t==="true")return!0;if(t==="false")return!1;if(e.status===void 0)return!0;return e.status===408||e.status===409||e.status===429||typeof e.status==="number"&&e.status>=500}function f(e,t,s){let n=t??60000;if(n>0&&e>n)throw Error(`Server requested ${Math.ceil(e/1000)}s retry delay (max: ${Math.ceil(n/1000)}s). ${s}`);return e}function l(e,t,s){let n=e.headers?.get("retry-after-ms");if(n){let a=Number.parseFloat(n);if(Number.isFinite(a))return f(a,s,e.message)}let r=e.headers?.get("retry-after");if(r){let a=Number.parseFloat(r),o=Number.isNaN(a)?Date.parse(r)-Date.now():a*1000;if(Number.isFinite(o))return f(o,s,e.message)}return Math.min(0.5*2**t,8)*1000*(1-Math.random()*0.25)}function i(){let e=Error("Request aborted");return e.name="AbortError",e}function m(e,t){return new Promise((s,n)=>{if(t?.aborted){n(i());return}let r=()=>{clearTimeout(u),n(i())},u=setTimeout(()=>{t?.removeEventListener("abort",r),s()},Math.max(0,e));t?.addEventListener("abort",r,{once:!0})})}async function ue(e,t={}){let s=t.maxRetries??0,n=s;for(;;)try{return await e()}catch(r){if(t.signal?.aborted)throw i();if(n<=0||!c(r)||!d(r))throw r;if(r.status!==void 0&&t.noRetryStatuses?.includes(r.status))throw r;let u=s-n;n--,await m(l(r,u,t.maxRetryDelayMs),t.signal)}}
|
|
3
|
+
export{ue};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
function
|
|
3
|
-
export{
|
|
2
|
+
function Ir(i){let e=i.filter((n)=>n!==void 0);if(e.length===0)return{cleanup:()=>{}};if(e.length===1)return{signal:e[0],cleanup:()=>{}};let r=new AbortController,o=[],s=(n)=>{if(!r.signal.aborted)r.abort(n.reason)};for(let n of e){if(n.aborted){s(n);break}let t=()=>s(n);n.addEventListener("abort",t,{once:!0}),o.push({signal:n,listener:t})}return{signal:r.signal,cleanup:()=>{for(let{signal:n,listener:t}of o)n.removeEventListener("abort",t)}}}
|
|
3
|
+
export{Ir};
|