gemi 0.202.0 → 0.204.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai/Agent.d.ts +30 -2
- package/dist/ai/Agent.d.ts.map +1 -1
- package/dist/ai/AgentProvider.d.ts +5 -0
- package/dist/ai/AgentProvider.d.ts.map +1 -1
- package/dist/ai/Prompt.d.ts +11 -2
- package/dist/ai/Prompt.d.ts.map +1 -1
- package/dist/ai/index.d.ts +3 -3
- package/dist/ai/index.d.ts.map +1 -1
- package/dist/ai/index.js +90 -55
- package/dist/ai/index.js.map +7 -17
- package/dist/ai/jobs/AgentJob.d.ts +180 -1
- package/dist/ai/jobs/AgentJob.d.ts.map +1 -1
- package/dist/ai/jobs/AgentJobStore.d.ts +69 -5
- package/dist/ai/jobs/AgentJobStore.d.ts.map +1 -1
- package/dist/ai/jobs/DatabaseAgentJobStore.d.ts +21 -1
- package/dist/ai/jobs/DatabaseAgentJobStore.d.ts.map +1 -1
- package/dist/ai/jobs/contextBlock.d.ts +1 -1
- package/dist/ai/jobs/contextBlock.d.ts.map +1 -1
- package/dist/ai/jobs/index.d.ts +2 -2
- package/dist/ai/jobs/index.d.ts.map +1 -1
- package/dist/ai/jobs/overlay.d.ts +1 -1
- package/dist/ai/jobs/overlay.d.ts.map +1 -1
- package/dist/ai/providers/request.d.ts +1 -0
- package/dist/ai/providers/request.d.ts.map +1 -1
- package/dist/ai/testing/Fingerprints.d.ts +106 -0
- package/dist/ai/testing/Fingerprints.d.ts.map +1 -0
- package/dist/ai/testing/RecordingProvider.d.ts +258 -0
- package/dist/ai/testing/RecordingProvider.d.ts.map +1 -0
- package/dist/ai/testing/index.d.ts +4 -0
- package/dist/ai/testing/index.d.ts.map +1 -0
- package/dist/ai/testing/index.js +6 -0
- package/dist/ai/testing/index.js.map +12 -0
- package/dist/ai/testing/pinClock.d.ts +19 -0
- package/dist/ai/testing/pinClock.d.ts.map +1 -0
- package/dist/ai/types.d.ts +6 -1
- package/dist/ai/types.d.ts.map +1 -1
- package/dist/app/index.js +2 -2
- package/dist/app/index.js.map +1 -1
- package/dist/bin/gemi.js.map +2 -2
- package/dist/bun/plugin.js +2 -2
- package/dist/bun/plugin.js.map +1 -1
- package/dist/bun/preload.js +2 -2
- package/dist/bun/preload.js.map +1 -1
- package/dist/{chunk-81m95se9.js → chunk-0hfzzb3k.js} +3 -3
- package/dist/{chunk-81m95se9.js.map → chunk-0hfzzb3k.js.map} +1 -1
- package/dist/chunk-0pgk811s.js +4 -0
- package/dist/{chunk-9kmh038f.js.map → chunk-0pgk811s.js.map} +2 -2
- package/dist/{chunk-fdcay8np.js → chunk-0shq2d31.js} +2 -2
- package/dist/{chunk-fdcay8np.js.map → chunk-0shq2d31.js.map} +1 -1
- package/dist/{chunk-mzqhn72h.js → chunk-0t1d9s34.js} +3 -3
- package/dist/{chunk-mzqhn72h.js.map → chunk-0t1d9s34.js.map} +1 -1
- package/dist/{chunk-zmj4fj4n.js → chunk-1e82gfk9.js} +3 -3
- package/dist/{chunk-zmj4fj4n.js.map → chunk-1e82gfk9.js.map} +1 -1
- package/dist/{chunk-781k79x8.js → chunk-1kehwa3s.js} +1 -1
- package/dist/chunk-1x60thpm.js +8 -0
- package/dist/chunk-1x60thpm.js.map +19 -0
- package/dist/{chunk-by0afyps.js → chunk-2ngdhbz7.js} +2 -2
- package/dist/{chunk-by0afyps.js.map → chunk-2ngdhbz7.js.map} +1 -1
- package/dist/{chunk-mddazdpt.js → chunk-2t1eyzvq.js} +2 -2
- package/dist/{chunk-mddazdpt.js.map → chunk-2t1eyzvq.js.map} +1 -1
- package/dist/{chunk-ewknbs3b.js → chunk-39hed4yr.js} +3 -3
- package/dist/{chunk-ewknbs3b.js.map → chunk-39hed4yr.js.map} +1 -1
- package/dist/{chunk-87f4gan9.js → chunk-3gkxnfef.js} +3 -3
- package/dist/{chunk-87f4gan9.js.map → chunk-3gkxnfef.js.map} +1 -1
- package/dist/{chunk-9k3axdsb.js → chunk-3xzhbkya.js} +3 -3
- package/dist/{chunk-9k3axdsb.js.map → chunk-3xzhbkya.js.map} +1 -1
- package/dist/{chunk-bz3527wx.js → chunk-4c0rb2ng.js} +2 -2
- package/dist/{chunk-bz3527wx.js.map → chunk-4c0rb2ng.js.map} +1 -1
- package/dist/chunk-4ex4s616.js +4 -0
- package/dist/{chunk-qz7v6271.js.map → chunk-4ex4s616.js.map} +2 -2
- package/dist/{chunk-t4z6rkvw.js → chunk-4m8t67px.js} +2 -2
- package/dist/{chunk-t4z6rkvw.js.map → chunk-4m8t67px.js.map} +1 -1
- package/dist/{chunk-65r1ne8r.js → chunk-4v5c4mes.js} +2 -2
- package/dist/{chunk-65r1ne8r.js.map → chunk-4v5c4mes.js.map} +1 -1
- package/dist/{chunk-3cd30c7k.js → chunk-5gvc03cv.js} +3 -3
- package/dist/{chunk-3cd30c7k.js.map → chunk-5gvc03cv.js.map} +1 -1
- package/dist/{chunk-6eywgbfz.js → chunk-5km0np8s.js} +2 -2
- package/dist/{chunk-6eywgbfz.js.map → chunk-5km0np8s.js.map} +1 -1
- package/dist/{chunk-bs6nxaqa.js → chunk-6bfj0mbp.js} +3 -3
- package/dist/{chunk-bs6nxaqa.js.map → chunk-6bfj0mbp.js.map} +1 -1
- package/dist/chunk-6g1xac70.js +7 -0
- package/dist/chunk-6g1xac70.js.map +10 -0
- package/dist/{chunk-evaeb75q.js → chunk-6w6q9mxe.js} +3 -3
- package/dist/{chunk-evaeb75q.js.map → chunk-6w6q9mxe.js.map} +2 -2
- package/dist/chunk-733e6v7b.js +6 -0
- package/dist/{chunk-hd8gymeg.js.map → chunk-733e6v7b.js.map} +2 -2
- package/dist/{chunk-7xwr52d8.js → chunk-77x9vxht.js} +3 -3
- package/dist/{chunk-7xwr52d8.js.map → chunk-77x9vxht.js.map} +1 -1
- package/dist/{chunk-7gmkcgq0.js → chunk-7gxmf9rg.js} +2 -2
- package/dist/{chunk-7gmkcgq0.js.map → chunk-7gxmf9rg.js.map} +1 -1
- package/dist/{chunk-ha4er085.js → chunk-8jfnn7v6.js} +2 -2
- package/dist/{chunk-ha4er085.js.map → chunk-8jfnn7v6.js.map} +1 -1
- package/dist/{chunk-zhmc2jm4.js → chunk-8pw4zjnx.js} +1 -1
- package/dist/{chunk-sg78cmd1.js → chunk-9bjggtdt.js} +2 -2
- package/dist/{chunk-sg78cmd1.js.map → chunk-9bjggtdt.js.map} +1 -1
- package/dist/{chunk-xhky6kyf.js → chunk-9hqnecjt.js} +2 -2
- package/dist/{chunk-xhky6kyf.js.map → chunk-9hqnecjt.js.map} +1 -1
- package/dist/{chunk-s0z61m9j.js → chunk-9m7c4mws.js} +2 -2
- package/dist/{chunk-s0z61m9j.js.map → chunk-9m7c4mws.js.map} +1 -1
- package/dist/{chunk-agc5bqdt.js → chunk-b1mdan5a.js} +2 -2
- package/dist/{chunk-agc5bqdt.js.map → chunk-b1mdan5a.js.map} +1 -1
- package/dist/chunk-b9czfrxm.js +24 -0
- package/dist/{chunk-dh8jqx0k.js.map → chunk-b9czfrxm.js.map} +2 -2
- package/dist/{chunk-7txst143.js → chunk-bq4pgzcd.js} +2 -2
- package/dist/{chunk-7txst143.js.map → chunk-bq4pgzcd.js.map} +1 -1
- package/dist/chunk-c7nbzryd.js +9 -0
- package/dist/chunk-c7nbzryd.js.map +10 -0
- package/dist/{chunk-y0gaw9ez.js → chunk-cdgnwzwf.js} +2 -2
- package/dist/{chunk-y0gaw9ez.js.map → chunk-cdgnwzwf.js.map} +1 -1
- package/dist/chunk-cf7xc02m.js +5 -0
- package/dist/{chunk-ccpp45dm.js.map → chunk-cf7xc02m.js.map} +1 -1
- package/dist/{chunk-cwxjqfkx.js → chunk-cq7hk8v9.js} +2 -2
- package/dist/{chunk-cwxjqfkx.js.map → chunk-cq7hk8v9.js.map} +1 -1
- package/dist/{chunk-8m9kgynj.js → chunk-crqbzfd5.js} +2 -2
- package/dist/{chunk-8m9kgynj.js.map → chunk-crqbzfd5.js.map} +1 -1
- package/dist/{chunk-4jbrazr4.js → chunk-d3k38gk1.js} +3 -3
- package/dist/{chunk-4jbrazr4.js.map → chunk-d3k38gk1.js.map} +1 -1
- package/dist/{chunk-wn9e8bjn.js → chunk-d5d3a8bm.js} +3 -3
- package/dist/{chunk-wn9e8bjn.js.map → chunk-d5d3a8bm.js.map} +1 -1
- package/dist/chunk-d7kknkmq.js +13 -0
- package/dist/{chunk-j43hftgw.js.map → chunk-d7kknkmq.js.map} +3 -4
- package/dist/{chunk-bcfcwbp4.js → chunk-dk1xxtgk.js} +2 -2
- package/dist/{chunk-bcfcwbp4.js.map → chunk-dk1xxtgk.js.map} +1 -1
- package/dist/{chunk-n7bz2283.js → chunk-e3ehv27z.js} +3 -3
- package/dist/{chunk-n7bz2283.js.map → chunk-e3ehv27z.js.map} +1 -1
- package/dist/{chunk-phszs9ea.js → chunk-e5mqjren.js} +4 -4
- package/dist/{chunk-phszs9ea.js.map → chunk-e5mqjren.js.map} +2 -2
- package/dist/{chunk-yxge0cem.js → chunk-efnerp0c.js} +2 -2
- package/dist/{chunk-yxge0cem.js.map → chunk-efnerp0c.js.map} +1 -1
- package/dist/{chunk-5zjw41cv.js → chunk-ek0dvbck.js} +3 -3
- package/dist/{chunk-5zjw41cv.js.map → chunk-ek0dvbck.js.map} +1 -1
- package/dist/{chunk-b2n74m40.js → chunk-ezvtkbp9.js} +2 -2
- package/dist/{chunk-b2n74m40.js.map → chunk-ezvtkbp9.js.map} +1 -1
- package/dist/{chunk-vqq0z746.js → chunk-f52maa9b.js} +2 -2
- package/dist/{chunk-vqq0z746.js.map → chunk-f52maa9b.js.map} +1 -1
- package/dist/{chunk-a9cztxee.js → chunk-f9c8bnzx.js} +3 -3
- package/dist/{chunk-a9cztxee.js.map → chunk-f9c8bnzx.js.map} +2 -2
- package/dist/{chunk-bwg7genv.js → chunk-fq5b1k4n.js} +2 -2
- package/dist/{chunk-bwg7genv.js.map → chunk-fq5b1k4n.js.map} +1 -1
- package/dist/{chunk-tbt2j0rf.js → chunk-gc9g7c4p.js} +3 -3
- package/dist/{chunk-tbt2j0rf.js.map → chunk-gc9g7c4p.js.map} +1 -1
- package/dist/{chunk-x41vw44z.js → chunk-jeq8wvj6.js} +2 -2
- package/dist/{chunk-x41vw44z.js.map → chunk-jeq8wvj6.js.map} +1 -1
- package/dist/{chunk-bxxd1awv.js → chunk-jma5d7zd.js} +3 -3
- package/dist/{chunk-bxxd1awv.js.map → chunk-jma5d7zd.js.map} +1 -1
- package/dist/{chunk-zgg2xsxp.js → chunk-jmsfkzav.js} +2 -2
- package/dist/{chunk-zgg2xsxp.js.map → chunk-jmsfkzav.js.map} +1 -1
- package/dist/chunk-js9rm7g0.js +4 -0
- package/dist/{chunk-2n98hczh.js.map → chunk-js9rm7g0.js.map} +2 -2
- package/dist/{chunk-y9ktwyrx.js → chunk-k1gt7fgy.js} +3 -3
- package/dist/{chunk-y9ktwyrx.js.map → chunk-k1gt7fgy.js.map} +1 -1
- package/dist/{chunk-t0qs2q9j.js → chunk-k62338g2.js} +2 -2
- package/dist/{chunk-t0qs2q9j.js.map → chunk-k62338g2.js.map} +1 -1
- package/dist/{chunk-0a5png2z.js → chunk-k9882kqg.js} +2 -2
- package/dist/{chunk-0a5png2z.js.map → chunk-k9882kqg.js.map} +1 -1
- package/dist/{chunk-drqv10sv.js → chunk-n26atakz.js} +3 -3
- package/dist/{chunk-drqv10sv.js.map → chunk-n26atakz.js.map} +1 -1
- package/dist/{chunk-wxcbfqkd.js → chunk-n3kg99yw.js} +3 -3
- package/dist/{chunk-wxcbfqkd.js.map → chunk-n3kg99yw.js.map} +1 -1
- package/dist/{chunk-a2ybf4jf.js → chunk-n5k42dh7.js} +3 -3
- package/dist/{chunk-a2ybf4jf.js.map → chunk-n5k42dh7.js.map} +1 -1
- package/dist/chunk-p2nqksdq.js +10 -0
- package/dist/{chunk-e9w2yzd2.js.map → chunk-p2nqksdq.js.map} +2 -2
- package/dist/{chunk-mvd4mc8p.js → chunk-p9pwskv6.js} +2 -2
- package/dist/{chunk-mvd4mc8p.js.map → chunk-p9pwskv6.js.map} +1 -1
- package/dist/{chunk-h1fqgz82.js → chunk-phvvxv1a.js} +3 -3
- package/dist/{chunk-h1fqgz82.js.map → chunk-phvvxv1a.js.map} +1 -1
- package/dist/chunk-pq15dt8j.js +46 -0
- package/dist/chunk-pq15dt8j.js.map +27 -0
- package/dist/{chunk-a5fvqc4k.js → chunk-ptpzh61m.js} +3 -3
- package/dist/{chunk-a5fvqc4k.js.map → chunk-ptpzh61m.js.map} +1 -1
- package/dist/{chunk-mq82r0qp.js → chunk-qcrj4t72.js} +3 -3
- package/dist/{chunk-mq82r0qp.js.map → chunk-qcrj4t72.js.map} +1 -1
- package/dist/{chunk-e3bwytc2.js → chunk-re9ac4tc.js} +27 -27
- package/dist/{chunk-e3bwytc2.js.map → chunk-re9ac4tc.js.map} +7 -6
- package/dist/{chunk-7881fdej.js → chunk-rr8bzm6k.js} +2 -2
- package/dist/{chunk-7881fdej.js.map → chunk-rr8bzm6k.js.map} +1 -1
- package/dist/{chunk-h7h8ra65.js → chunk-s5hdrpam.js} +3 -3
- package/dist/{chunk-h7h8ra65.js.map → chunk-s5hdrpam.js.map} +1 -1
- package/dist/{chunk-ptbrbp80.js → chunk-s6bq91cm.js} +2 -2
- package/dist/{chunk-ptbrbp80.js.map → chunk-s6bq91cm.js.map} +1 -1
- package/dist/{chunk-5msb5ev6.js → chunk-s6wj8e56.js} +2 -2
- package/dist/{chunk-5msb5ev6.js.map → chunk-s6wj8e56.js.map} +2 -2
- package/dist/{chunk-sw7c95nh.js → chunk-vsd5h2d9.js} +3 -3
- package/dist/{chunk-sw7c95nh.js.map → chunk-vsd5h2d9.js.map} +1 -1
- package/dist/{chunk-c8041bgj.js → chunk-w3mc696j.js} +2 -2
- package/dist/{chunk-c8041bgj.js.map → chunk-w3mc696j.js.map} +1 -1
- package/dist/{chunk-2816nz5e.js → chunk-wn4j741t.js} +2 -2
- package/dist/{chunk-2816nz5e.js.map → chunk-wn4j741t.js.map} +1 -1
- package/dist/{chunk-hra8evrw.js → chunk-wxyxnbh6.js} +4 -4
- package/dist/{chunk-hra8evrw.js.map → chunk-wxyxnbh6.js.map} +1 -1
- package/dist/{chunk-m3nhdg9v.js → chunk-x244kqcc.js} +2 -2
- package/dist/{chunk-m3nhdg9v.js.map → chunk-x244kqcc.js.map} +1 -1
- package/dist/chunk-x26jb60f.js +4 -0
- package/dist/{chunk-p96z3yb6.js.map → chunk-x26jb60f.js.map} +2 -2
- package/dist/{chunk-xzt117g6.js → chunk-xvk6aqd7.js} +3 -3
- package/dist/{chunk-xzt117g6.js.map → chunk-xvk6aqd7.js.map} +1 -1
- package/dist/chunk-xwqdh388.js +5 -0
- package/dist/chunk-xwqdh388.js.map +13 -0
- package/dist/{chunk-mndcq5z1.js → chunk-y45whafz.js} +2 -2
- package/dist/{chunk-mndcq5z1.js.map → chunk-y45whafz.js.map} +1 -1
- package/dist/{chunk-vpqzzrkn.js → chunk-y5kfqq4f.js} +2 -2
- package/dist/{chunk-vpqzzrkn.js.map → chunk-y5kfqq4f.js.map} +1 -1
- package/dist/chunk-ybcdxrqx.js +4 -0
- package/dist/{chunk-07qjfj2c.js.map → chunk-ybcdxrqx.js.map} +2 -2
- package/dist/{chunk-a6hac7pd.js → chunk-yrbvfda9.js} +1 -1
- package/dist/{chunk-h2ysbsax.js → chunk-yykrvrpt.js} +1 -1
- package/dist/{chunk-6a7kp98d.js → chunk-zk1vwwv6.js} +2 -2
- package/dist/{chunk-6a7kp98d.js.map → chunk-zk1vwwv6.js.map} +1 -1
- package/dist/chunks/{RealtimeClient-BnNSz8AK.js → RealtimeClient-CLXePUcE.js} +2 -2
- package/dist/chunks/{RealtimeClient-BnNSz8AK.js.map → RealtimeClient-CLXePUcE.js.map} +1 -1
- package/dist/chunks/{ThemeProvider-CoQ-vnvy.js → ThemeProvider-COjYIalw.js} +74 -1273
- package/dist/chunks/ThemeProvider-COjYIalw.js.map +1 -0
- package/dist/chunks/{fetchFileRequest-Bhp0oJ0T.js → fetchFileRequest-BaufNZpI.js} +2 -2
- package/dist/chunks/{fetchFileRequest-Bhp0oJ0T.js.map → fetchFileRequest-BaufNZpI.js.map} +1 -1
- package/dist/chunks/{live-Dt8sq9W4.js → live-Dz_rk7fm.js} +4 -15
- package/dist/chunks/{live-Dt8sq9W4.js.map → live-Dz_rk7fm.js.map} +1 -1
- package/dist/chunks/{mutationExtras-ChOGPZlY.js → mutationExtras-DtSw6BcX.js} +2 -2
- package/dist/chunks/{mutationExtras-ChOGPZlY.js.map → mutationExtras-DtSw6BcX.js.map} +1 -1
- package/dist/chunks/rolldown-runtime-D7D4PA-g.js +13 -0
- package/dist/chunks/{subscriptionStream-DDl_H-QM.js → subscriptionStream-CqhJOfPn.js} +2 -2
- package/dist/chunks/{subscriptionStream-DDl_H-QM.js.map → subscriptionStream-CqhJOfPn.js.map} +1 -1
- package/dist/chunks/urlpattern-polyfill-Cc7YrzJf.js +913 -0
- package/dist/chunks/urlpattern-polyfill-Cc7YrzJf.js.map +1 -0
- package/dist/client/ClientRouter.d.ts +1 -1
- package/dist/client/ClientRouter.d.ts.map +1 -1
- package/dist/client/ClientRouterContext.d.ts +1 -1
- package/dist/client/ClientRouterContext.d.ts.map +1 -1
- package/dist/client/browserHistory.d.ts +13 -0
- package/dist/client/browserHistory.d.ts.map +1 -0
- package/dist/client/index.js +9 -6
- package/dist/client/index.js.map +1 -1
- package/dist/client/init.d.ts.map +1 -1
- package/dist/client/scrollRestoration.d.ts +1 -1
- package/dist/client/scrollRestoration.d.ts.map +1 -1
- package/dist/client/urlPattern.d.ts +30 -0
- package/dist/client/urlPattern.d.ts.map +1 -0
- package/dist/config/index.js +1 -1
- package/dist/console/run.js +2 -2
- package/dist/console/run.js.map +1 -1
- package/dist/container/index.js +2 -2
- package/dist/container/index.js.map +1 -1
- package/dist/database/index.js +2 -2
- package/dist/database/index.js.map +1 -1
- package/dist/email/index.js +2 -2
- package/dist/email/index.js.map +1 -1
- package/dist/facades/DB.d.ts +10 -0
- package/dist/facades/DB.d.ts.map +1 -1
- package/dist/facades/index.js +2 -2
- package/dist/facades/index.js.map +1 -1
- package/dist/foundation/index.js +2 -2
- package/dist/foundation/index.js.map +1 -1
- package/dist/http/index.js +2 -2
- package/dist/http/index.js.map +1 -1
- package/dist/i18n/dictionaryRuntime.js +2 -2
- package/dist/i18n/dictionaryRuntime.js.map +1 -1
- package/dist/i18n/index.js +2 -2
- package/dist/i18n/index.js.map +2 -2
- package/dist/kernel/index.js +2 -2
- package/dist/kernel/index.js.map +2 -2
- package/dist/orm/Model.d.ts.map +1 -1
- package/dist/orm/context.d.ts +54 -0
- package/dist/orm/context.d.ts.map +1 -1
- package/dist/orm/index.d.ts +1 -1
- package/dist/orm/index.d.ts.map +1 -1
- package/dist/orm/index.js +4 -4
- package/dist/orm/index.js.map +3 -3
- package/dist/probe/index.js +2 -2
- package/dist/probe/index.js.map +1 -1
- package/dist/server/index.js +2 -2
- package/dist/server/index.js.map +1 -1
- package/dist/services/index.js +2 -2
- package/dist/services/index.js.map +2 -2
- package/dist/services/queue/work.js +2 -2
- package/dist/services/queue/work.js.map +1 -1
- package/dist/services/router/ViewRouteDispatcher.d.ts +1 -0
- package/dist/services/router/ViewRouteDispatcher.d.ts.map +1 -1
- package/dist/stats/route-table.js +1 -1
- package/dist/support/index.js +2 -2
- package/dist/support/index.js.map +1 -1
- package/dist/testing/index.d.ts +1 -0
- package/dist/testing/index.d.ts.map +1 -1
- package/dist/testing/index.js +234 -2
- package/dist/testing/index.js.map +1 -1
- package/dist/vitest/index.js +2 -2
- package/dist/vitest/index.js.map +1 -1
- package/package.json +2 -1
- package/dist/chunk-07qjfj2c.js +0 -4
- package/dist/chunk-2n98hczh.js +0 -4
- package/dist/chunk-64hxqsqx.js +0 -9
- package/dist/chunk-64hxqsqx.js.map +0 -10
- package/dist/chunk-9kmh038f.js +0 -4
- package/dist/chunk-ccpp45dm.js +0 -5
- package/dist/chunk-dh8jqx0k.js +0 -24
- package/dist/chunk-e9w2yzd2.js +0 -10
- package/dist/chunk-hd8gymeg.js +0 -6
- package/dist/chunk-j43hftgw.js +0 -15
- package/dist/chunk-p96z3yb6.js +0 -4
- package/dist/chunk-qz7v6271.js +0 -4
- package/dist/chunk-x2zw82xg.js +0 -46
- package/dist/chunk-x2zw82xg.js.map +0 -31
- package/dist/chunks/ThemeProvider-CoQ-vnvy.js.map +0 -1
- /package/dist/{chunk-781k79x8.js.map → chunk-1kehwa3s.js.map} +0 -0
- /package/dist/{chunk-zhmc2jm4.js.map → chunk-8pw4zjnx.js.map} +0 -0
- /package/dist/{chunk-a6hac7pd.js.map → chunk-yrbvfda9.js.map} +0 -0
- /package/dist/{chunk-h2ysbsax.js.map → chunk-yykrvrpt.js.map} +0 -0
|
@@ -1053,7 +1053,7 @@ function loadedRealtimeClient() {
|
|
|
1053
1053
|
}
|
|
1054
1054
|
var loading = null;
|
|
1055
1055
|
/** The lazily loaded client. Replaceable in tests, to simulate a failed load. */
|
|
1056
|
-
var lazyModules = { client: () => import("./RealtimeClient-
|
|
1056
|
+
var lazyModules = { client: () => import("./RealtimeClient-CLXePUcE.js") };
|
|
1057
1057
|
/**
|
|
1058
1058
|
* `./live`, loaded by the first live query. `<Page>` in `gemi/testing` sets
|
|
1059
1059
|
* `current` up front, so a live query on a provided socket subscribes during
|
|
@@ -1061,7 +1061,7 @@ var lazyModules = { client: () => import("./RealtimeClient-BnNSz8AK.js") };
|
|
|
1061
1061
|
*/
|
|
1062
1062
|
var liveModule = {
|
|
1063
1063
|
current: null,
|
|
1064
|
-
load: () => import("./live-
|
|
1064
|
+
load: () => import("./live-Dz_rk7fm.js").then((n) => n.n)
|
|
1065
1065
|
};
|
|
1066
1066
|
/**
|
|
1067
1067
|
* The tab's client, loading its module and creating it on first use. `null`
|
|
@@ -1160,309 +1160,60 @@ function useCspNonce() {
|
|
|
1160
1160
|
return useContext(CspNonceContext) ?? readDocumentNonce();
|
|
1161
1161
|
}
|
|
1162
1162
|
//#endregion
|
|
1163
|
-
//#region
|
|
1164
|
-
function _extends() {
|
|
1165
|
-
return _extends = Object.assign ? Object.assign.bind() : function(n) {
|
|
1166
|
-
for (var e = 1; e < arguments.length; e++) {
|
|
1167
|
-
var t = arguments[e];
|
|
1168
|
-
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
1169
|
-
}
|
|
1170
|
-
return n;
|
|
1171
|
-
}, _extends.apply(null, arguments);
|
|
1172
|
-
}
|
|
1173
|
-
//#endregion
|
|
1174
|
-
//#region ../../node_modules/.bun/history@5.3.0/node_modules/history/index.js
|
|
1175
|
-
/**
|
|
1176
|
-
* Actions represent the type of change to a location value.
|
|
1177
|
-
*
|
|
1178
|
-
* @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#action
|
|
1179
|
-
*/
|
|
1180
|
-
var Action;
|
|
1181
|
-
(function(Action) {
|
|
1182
|
-
/**
|
|
1183
|
-
* A POP indicates a change to an arbitrary index in the history stack, such
|
|
1184
|
-
* as a back or forward navigation. It does not describe the direction of the
|
|
1185
|
-
* navigation, only that the current index changed.
|
|
1186
|
-
*
|
|
1187
|
-
* Note: This is the default action for newly created history objects.
|
|
1188
|
-
*/
|
|
1189
|
-
Action["Pop"] = "POP";
|
|
1190
|
-
/**
|
|
1191
|
-
* A PUSH indicates a new entry being added to the history stack, such as when
|
|
1192
|
-
* a link is clicked and a new page loads. When this happens, all subsequent
|
|
1193
|
-
* entries in the stack are lost.
|
|
1194
|
-
*/
|
|
1195
|
-
Action["Push"] = "PUSH";
|
|
1196
|
-
/**
|
|
1197
|
-
* A REPLACE indicates the entry at the current index in the history stack
|
|
1198
|
-
* being replaced by a new one.
|
|
1199
|
-
*/
|
|
1200
|
-
Action["Replace"] = "REPLACE";
|
|
1201
|
-
})(Action || (Action = {}));
|
|
1202
|
-
var readOnly = process.env.NODE_ENV !== "production" ? function(obj) {
|
|
1203
|
-
return Object.freeze(obj);
|
|
1204
|
-
} : function(obj) {
|
|
1205
|
-
return obj;
|
|
1206
|
-
};
|
|
1207
|
-
function warning(cond, message) {
|
|
1208
|
-
if (!cond) {
|
|
1209
|
-
if (typeof console !== "undefined") console.warn(message);
|
|
1210
|
-
try {
|
|
1211
|
-
throw new Error(message);
|
|
1212
|
-
} catch (e) {}
|
|
1213
|
-
}
|
|
1214
|
-
}
|
|
1215
|
-
var BeforeUnloadEventType = "beforeunload";
|
|
1216
|
-
var PopStateEventType = "popstate";
|
|
1163
|
+
//#region client/browserHistory.ts
|
|
1217
1164
|
/**
|
|
1218
|
-
*
|
|
1219
|
-
*
|
|
1220
|
-
*
|
|
1165
|
+
* The part of `history`'s `createBrowserHistory` (v5) the client router uses,
|
|
1166
|
+
* without the package (#1162): `push`, `replace`, `listen`, `go`, and the
|
|
1167
|
+
* current `location` and `action`.
|
|
1221
1168
|
*
|
|
1222
|
-
*
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1169
|
+
* It keeps the package's `window.history.state` shape, `{ usr, key, idx }`,
|
|
1170
|
+
* because scroll restoration keys positions by `key`, and an entry pushed by
|
|
1171
|
+
* a page from before this change must still be read the same way. Blocking
|
|
1172
|
+
* (`block`) is not used by gemi and not supported.
|
|
1173
|
+
*/
|
|
1174
|
+
function createBrowserHistory() {
|
|
1175
|
+
const globalHistory = window.history;
|
|
1176
|
+
const listeners = /* @__PURE__ */ new Set();
|
|
1177
|
+
const read = () => {
|
|
1178
|
+
const { pathname, search, hash } = window.location;
|
|
1179
|
+
const state = globalHistory.state || {};
|
|
1180
|
+
return [state.idx, {
|
|
1232
1181
|
pathname,
|
|
1233
1182
|
search,
|
|
1234
1183
|
hash,
|
|
1235
|
-
state: state.usr
|
|
1184
|
+
state: state.usr ?? null,
|
|
1236
1185
|
key: state.key || "default"
|
|
1237
|
-
}
|
|
1238
|
-
}
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
if (blockedPopTx) {
|
|
1242
|
-
blockers.call(blockedPopTx);
|
|
1243
|
-
blockedPopTx = null;
|
|
1244
|
-
} else {
|
|
1245
|
-
var nextAction = Action.Pop;
|
|
1246
|
-
var _getIndexAndLocation = getIndexAndLocation(), nextIndex = _getIndexAndLocation[0], nextLocation = _getIndexAndLocation[1];
|
|
1247
|
-
if (blockers.length) if (nextIndex != null) {
|
|
1248
|
-
var delta = index - nextIndex;
|
|
1249
|
-
if (delta) {
|
|
1250
|
-
blockedPopTx = {
|
|
1251
|
-
action: nextAction,
|
|
1252
|
-
location: nextLocation,
|
|
1253
|
-
retry: function retry() {
|
|
1254
|
-
go(delta * -1);
|
|
1255
|
-
}
|
|
1256
|
-
};
|
|
1257
|
-
go(delta);
|
|
1258
|
-
}
|
|
1259
|
-
} else process.env.NODE_ENV !== "production" && warning(false, "You are trying to block a POP navigation to a location that was not created by the history library. The block will fail silently in production, but in general you should do all navigation with the history library (instead of using window.history.pushState directly) to avoid this situation.");
|
|
1260
|
-
else applyTx(nextAction);
|
|
1261
|
-
}
|
|
1262
|
-
}
|
|
1263
|
-
window.addEventListener(PopStateEventType, handlePop);
|
|
1264
|
-
var action = Action.Pop;
|
|
1265
|
-
var _getIndexAndLocation2 = getIndexAndLocation(), index = _getIndexAndLocation2[0], location = _getIndexAndLocation2[1];
|
|
1266
|
-
var listeners = createEvents();
|
|
1267
|
-
var blockers = createEvents();
|
|
1186
|
+
}];
|
|
1187
|
+
};
|
|
1188
|
+
let action = "POP";
|
|
1189
|
+
let [index, location] = read();
|
|
1268
1190
|
if (index == null) {
|
|
1269
1191
|
index = 0;
|
|
1270
|
-
globalHistory.replaceState(
|
|
1271
|
-
|
|
1272
|
-
function createHref(to) {
|
|
1273
|
-
return typeof to === "string" ? to : createPath(to);
|
|
1274
|
-
}
|
|
1275
|
-
function getNextLocation(to, state) {
|
|
1276
|
-
if (state === void 0) state = null;
|
|
1277
|
-
return readOnly(_extends({
|
|
1278
|
-
pathname: location.pathname,
|
|
1279
|
-
hash: "",
|
|
1280
|
-
search: ""
|
|
1281
|
-
}, typeof to === "string" ? parsePath(to) : to, {
|
|
1282
|
-
state,
|
|
1283
|
-
key: createKey()
|
|
1284
|
-
}));
|
|
1285
|
-
}
|
|
1286
|
-
function getHistoryStateAndUrl(nextLocation, index) {
|
|
1287
|
-
return [{
|
|
1288
|
-
usr: nextLocation.state,
|
|
1289
|
-
key: nextLocation.key,
|
|
1192
|
+
globalHistory.replaceState({
|
|
1193
|
+
...globalHistory.state,
|
|
1290
1194
|
idx: index
|
|
1291
|
-
},
|
|
1292
|
-
}
|
|
1293
|
-
function allowTx(action, location, retry) {
|
|
1294
|
-
return !blockers.length || (blockers.call({
|
|
1295
|
-
action,
|
|
1296
|
-
location,
|
|
1297
|
-
retry
|
|
1298
|
-
}), false);
|
|
1195
|
+
}, "");
|
|
1299
1196
|
}
|
|
1300
|
-
|
|
1301
|
-
action =
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
location = _getIndexAndLocation3[1];
|
|
1305
|
-
listeners.call({
|
|
1197
|
+
const apply = (next) => {
|
|
1198
|
+
action = next;
|
|
1199
|
+
[index, location] = read();
|
|
1200
|
+
for (const listener of [...listeners]) listener({
|
|
1306
1201
|
action,
|
|
1307
1202
|
location
|
|
1308
1203
|
});
|
|
1309
|
-
}
|
|
1310
|
-
function push(to, state) {
|
|
1311
|
-
var nextAction = Action.Push;
|
|
1312
|
-
var nextLocation = getNextLocation(to, state);
|
|
1313
|
-
function retry() {
|
|
1314
|
-
push(to, state);
|
|
1315
|
-
}
|
|
1316
|
-
if (allowTx(nextAction, nextLocation, retry)) {
|
|
1317
|
-
var _getHistoryStateAndUr = getHistoryStateAndUrl(nextLocation, index + 1), historyState = _getHistoryStateAndUr[0], url = _getHistoryStateAndUr[1];
|
|
1318
|
-
try {
|
|
1319
|
-
globalHistory.pushState(historyState, "", url);
|
|
1320
|
-
} catch (error) {
|
|
1321
|
-
window.location.assign(url);
|
|
1322
|
-
}
|
|
1323
|
-
applyTx(nextAction);
|
|
1324
|
-
}
|
|
1325
|
-
}
|
|
1326
|
-
function replace(to, state) {
|
|
1327
|
-
var nextAction = Action.Replace;
|
|
1328
|
-
var nextLocation = getNextLocation(to, state);
|
|
1329
|
-
function retry() {
|
|
1330
|
-
replace(to, state);
|
|
1331
|
-
}
|
|
1332
|
-
if (allowTx(nextAction, nextLocation, retry)) {
|
|
1333
|
-
var _getHistoryStateAndUr2 = getHistoryStateAndUrl(nextLocation, index), historyState = _getHistoryStateAndUr2[0], url = _getHistoryStateAndUr2[1];
|
|
1334
|
-
globalHistory.replaceState(historyState, "", url);
|
|
1335
|
-
applyTx(nextAction);
|
|
1336
|
-
}
|
|
1337
|
-
}
|
|
1338
|
-
function go(delta) {
|
|
1339
|
-
globalHistory.go(delta);
|
|
1340
|
-
}
|
|
1341
|
-
return {
|
|
1342
|
-
get action() {
|
|
1343
|
-
return action;
|
|
1344
|
-
},
|
|
1345
|
-
get location() {
|
|
1346
|
-
return location;
|
|
1347
|
-
},
|
|
1348
|
-
createHref,
|
|
1349
|
-
push,
|
|
1350
|
-
replace,
|
|
1351
|
-
go,
|
|
1352
|
-
back: function back() {
|
|
1353
|
-
go(-1);
|
|
1354
|
-
},
|
|
1355
|
-
forward: function forward() {
|
|
1356
|
-
go(1);
|
|
1357
|
-
},
|
|
1358
|
-
listen: function listen(listener) {
|
|
1359
|
-
return listeners.push(listener);
|
|
1360
|
-
},
|
|
1361
|
-
block: function block(blocker) {
|
|
1362
|
-
var unblock = blockers.push(blocker);
|
|
1363
|
-
if (blockers.length === 1) window.addEventListener(BeforeUnloadEventType, promptBeforeUnload);
|
|
1364
|
-
return function() {
|
|
1365
|
-
unblock();
|
|
1366
|
-
if (!blockers.length) window.removeEventListener(BeforeUnloadEventType, promptBeforeUnload);
|
|
1367
|
-
};
|
|
1368
|
-
}
|
|
1369
1204
|
};
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
var entries = initialEntries.map(function(entry) {
|
|
1381
|
-
var location = readOnly(_extends({
|
|
1382
|
-
pathname: "/",
|
|
1383
|
-
search: "",
|
|
1384
|
-
hash: "",
|
|
1385
|
-
state: null,
|
|
1386
|
-
key: createKey()
|
|
1387
|
-
}, typeof entry === "string" ? parsePath(entry) : entry));
|
|
1388
|
-
process.env.NODE_ENV !== "production" && warning(location.pathname.charAt(0) === "/", "Relative pathnames are not supported in createMemoryHistory({ initialEntries }) (invalid entry: " + JSON.stringify(entry) + ")");
|
|
1389
|
-
return location;
|
|
1205
|
+
window.addEventListener("popstate", () => apply("POP"));
|
|
1206
|
+
const createHref = (to) => typeof to === "string" ? to : `${to.pathname ?? ""}${to.search ?? ""}${to.hash ?? ""}`;
|
|
1207
|
+
const target = (to) => typeof to === "string" ? to : createHref({
|
|
1208
|
+
pathname: location.pathname,
|
|
1209
|
+
...to
|
|
1210
|
+
});
|
|
1211
|
+
const entry = (state, idx) => ({
|
|
1212
|
+
usr: state ?? null,
|
|
1213
|
+
key: Math.random().toString(36).slice(2, 10),
|
|
1214
|
+
idx
|
|
1390
1215
|
});
|
|
1391
|
-
var index = clamp(initialIndex == null ? entries.length - 1 : initialIndex, 0, entries.length - 1);
|
|
1392
|
-
var action = Action.Pop;
|
|
1393
|
-
var location = entries[index];
|
|
1394
|
-
var listeners = createEvents();
|
|
1395
|
-
var blockers = createEvents();
|
|
1396
|
-
function createHref(to) {
|
|
1397
|
-
return typeof to === "string" ? to : createPath(to);
|
|
1398
|
-
}
|
|
1399
|
-
function getNextLocation(to, state) {
|
|
1400
|
-
if (state === void 0) state = null;
|
|
1401
|
-
return readOnly(_extends({
|
|
1402
|
-
pathname: location.pathname,
|
|
1403
|
-
search: "",
|
|
1404
|
-
hash: ""
|
|
1405
|
-
}, typeof to === "string" ? parsePath(to) : to, {
|
|
1406
|
-
state,
|
|
1407
|
-
key: createKey()
|
|
1408
|
-
}));
|
|
1409
|
-
}
|
|
1410
|
-
function allowTx(action, location, retry) {
|
|
1411
|
-
return !blockers.length || (blockers.call({
|
|
1412
|
-
action,
|
|
1413
|
-
location,
|
|
1414
|
-
retry
|
|
1415
|
-
}), false);
|
|
1416
|
-
}
|
|
1417
|
-
function applyTx(nextAction, nextLocation) {
|
|
1418
|
-
action = nextAction;
|
|
1419
|
-
location = nextLocation;
|
|
1420
|
-
listeners.call({
|
|
1421
|
-
action,
|
|
1422
|
-
location
|
|
1423
|
-
});
|
|
1424
|
-
}
|
|
1425
|
-
function push(to, state) {
|
|
1426
|
-
var nextAction = Action.Push;
|
|
1427
|
-
var nextLocation = getNextLocation(to, state);
|
|
1428
|
-
function retry() {
|
|
1429
|
-
push(to, state);
|
|
1430
|
-
}
|
|
1431
|
-
process.env.NODE_ENV !== "production" && warning(location.pathname.charAt(0) === "/", "Relative pathnames are not supported in memory history.push(" + JSON.stringify(to) + ")");
|
|
1432
|
-
if (allowTx(nextAction, nextLocation, retry)) {
|
|
1433
|
-
index += 1;
|
|
1434
|
-
entries.splice(index, entries.length, nextLocation);
|
|
1435
|
-
applyTx(nextAction, nextLocation);
|
|
1436
|
-
}
|
|
1437
|
-
}
|
|
1438
|
-
function replace(to, state) {
|
|
1439
|
-
var nextAction = Action.Replace;
|
|
1440
|
-
var nextLocation = getNextLocation(to, state);
|
|
1441
|
-
function retry() {
|
|
1442
|
-
replace(to, state);
|
|
1443
|
-
}
|
|
1444
|
-
process.env.NODE_ENV !== "production" && warning(location.pathname.charAt(0) === "/", "Relative pathnames are not supported in memory history.replace(" + JSON.stringify(to) + ")");
|
|
1445
|
-
if (allowTx(nextAction, nextLocation, retry)) {
|
|
1446
|
-
entries[index] = nextLocation;
|
|
1447
|
-
applyTx(nextAction, nextLocation);
|
|
1448
|
-
}
|
|
1449
|
-
}
|
|
1450
|
-
function go(delta) {
|
|
1451
|
-
var nextIndex = clamp(index + delta, 0, entries.length - 1);
|
|
1452
|
-
var nextAction = Action.Pop;
|
|
1453
|
-
var nextLocation = entries[nextIndex];
|
|
1454
|
-
function retry() {
|
|
1455
|
-
go(delta);
|
|
1456
|
-
}
|
|
1457
|
-
if (allowTx(nextAction, nextLocation, retry)) {
|
|
1458
|
-
index = nextIndex;
|
|
1459
|
-
applyTx(nextAction, nextLocation);
|
|
1460
|
-
}
|
|
1461
|
-
}
|
|
1462
1216
|
return {
|
|
1463
|
-
get index() {
|
|
1464
|
-
return index;
|
|
1465
|
-
},
|
|
1466
1217
|
get action() {
|
|
1467
1218
|
return action;
|
|
1468
1219
|
},
|
|
@@ -1470,995 +1221,45 @@ function createMemoryHistory(options) {
|
|
|
1470
1221
|
return location;
|
|
1471
1222
|
},
|
|
1472
1223
|
createHref,
|
|
1473
|
-
push,
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
},
|
|
1482
|
-
listen: function listen(listener) {
|
|
1483
|
-
return listeners.push(listener);
|
|
1224
|
+
push(to, state) {
|
|
1225
|
+
const url = target(to);
|
|
1226
|
+
try {
|
|
1227
|
+
globalHistory.pushState(entry(state, (index ?? 0) + 1), "", url);
|
|
1228
|
+
} catch {
|
|
1229
|
+
window.location.assign(url);
|
|
1230
|
+
}
|
|
1231
|
+
apply("PUSH");
|
|
1484
1232
|
},
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
};
|
|
1489
|
-
}
|
|
1490
|
-
function clamp(n, lowerBound, upperBound) {
|
|
1491
|
-
return Math.min(Math.max(n, lowerBound), upperBound);
|
|
1492
|
-
}
|
|
1493
|
-
function promptBeforeUnload(event) {
|
|
1494
|
-
event.preventDefault();
|
|
1495
|
-
event.returnValue = "";
|
|
1496
|
-
}
|
|
1497
|
-
function createEvents() {
|
|
1498
|
-
var handlers = [];
|
|
1499
|
-
return {
|
|
1500
|
-
get length() {
|
|
1501
|
-
return handlers.length;
|
|
1233
|
+
replace(to, state) {
|
|
1234
|
+
globalHistory.replaceState(entry(state, index ?? 0), "", target(to));
|
|
1235
|
+
apply("REPLACE");
|
|
1502
1236
|
},
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1237
|
+
go: (delta) => globalHistory.go(delta),
|
|
1238
|
+
back: () => globalHistory.go(-1),
|
|
1239
|
+
forward: () => globalHistory.go(1),
|
|
1240
|
+
listen(listener) {
|
|
1241
|
+
listeners.add(listener);
|
|
1242
|
+
return () => {
|
|
1243
|
+
listeners.delete(listener);
|
|
1509
1244
|
};
|
|
1510
1245
|
},
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
return fn && fn(arg);
|
|
1514
|
-
});
|
|
1246
|
+
block() {
|
|
1247
|
+
throw new Error("gemi: history.block() is not supported.");
|
|
1515
1248
|
}
|
|
1516
1249
|
};
|
|
1517
1250
|
}
|
|
1518
|
-
function createKey() {
|
|
1519
|
-
return Math.random().toString(36).substr(2, 8);
|
|
1520
|
-
}
|
|
1521
|
-
/**
|
|
1522
|
-
* Creates a string URL path from the given pathname, search, and hash components.
|
|
1523
|
-
*
|
|
1524
|
-
* @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#createpath
|
|
1525
|
-
*/
|
|
1526
|
-
function createPath(_ref) {
|
|
1527
|
-
var _ref$pathname = _ref.pathname, pathname = _ref$pathname === void 0 ? "/" : _ref$pathname, _ref$search = _ref.search, search = _ref$search === void 0 ? "" : _ref$search, _ref$hash = _ref.hash, hash = _ref$hash === void 0 ? "" : _ref$hash;
|
|
1528
|
-
if (search && search !== "?") pathname += search.charAt(0) === "?" ? search : "?" + search;
|
|
1529
|
-
if (hash && hash !== "#") pathname += hash.charAt(0) === "#" ? hash : "#" + hash;
|
|
1530
|
-
return pathname;
|
|
1531
|
-
}
|
|
1532
|
-
/**
|
|
1533
|
-
* Parses a string URL path into its separate pathname, search, and hash components.
|
|
1534
|
-
*
|
|
1535
|
-
* @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#parsepath
|
|
1536
|
-
*/
|
|
1537
|
-
function parsePath(path) {
|
|
1538
|
-
var parsedPath = {};
|
|
1539
|
-
if (path) {
|
|
1540
|
-
var hashIndex = path.indexOf("#");
|
|
1541
|
-
if (hashIndex >= 0) {
|
|
1542
|
-
parsedPath.hash = path.substr(hashIndex);
|
|
1543
|
-
path = path.substr(0, hashIndex);
|
|
1544
|
-
}
|
|
1545
|
-
var searchIndex = path.indexOf("?");
|
|
1546
|
-
if (searchIndex >= 0) {
|
|
1547
|
-
parsedPath.search = path.substr(searchIndex);
|
|
1548
|
-
path = path.substr(0, searchIndex);
|
|
1549
|
-
}
|
|
1550
|
-
if (path) parsedPath.pathname = path;
|
|
1551
|
-
}
|
|
1552
|
-
return parsedPath;
|
|
1553
|
-
}
|
|
1554
1251
|
//#endregion
|
|
1555
|
-
//#region
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
});
|
|
1561
|
-
var P = class {
|
|
1562
|
-
type = 3;
|
|
1563
|
-
name = "";
|
|
1564
|
-
prefix = "";
|
|
1565
|
-
value = "";
|
|
1566
|
-
suffix = "";
|
|
1567
|
-
modifier = 3;
|
|
1568
|
-
constructor(t, r, n, c, l, f) {
|
|
1569
|
-
this.type = t, this.name = r, this.prefix = n, this.value = c, this.suffix = l, this.modifier = f;
|
|
1570
|
-
}
|
|
1571
|
-
hasCustomName() {
|
|
1572
|
-
return this.name !== "" && typeof this.name != "number";
|
|
1573
|
-
}
|
|
1574
|
-
};
|
|
1575
|
-
a(P, "Part");
|
|
1576
|
-
var Re = /[$_\p{ID_Start}]/u;
|
|
1577
|
-
var Ee = /[$_\u200C\u200D\p{ID_Continue}]/u;
|
|
1578
|
-
var v = ".*";
|
|
1579
|
-
function Oe(e, t) {
|
|
1580
|
-
return (t ? /^[\x00-\xFF]*$/ : /^[\x00-\x7F]*$/).test(e);
|
|
1252
|
+
//#region client/urlPattern.ts
|
|
1253
|
+
/** Resolves once `globalThis.URLPattern` exists; `undefined` when it already does. */
|
|
1254
|
+
function loadURLPattern() {
|
|
1255
|
+
if (typeof globalThis.URLPattern === "function") return void 0;
|
|
1256
|
+
return import("./urlpattern-polyfill-Cc7YrzJf.js").then((n) => n.t).then(() => void 0);
|
|
1581
1257
|
}
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
let c = e[n], l = a(function(f) {
|
|
1587
|
-
if (!t) throw new TypeError(f);
|
|
1588
|
-
r.push({
|
|
1589
|
-
type: "INVALID_CHAR",
|
|
1590
|
-
index: n,
|
|
1591
|
-
value: e[n++]
|
|
1592
|
-
});
|
|
1593
|
-
}, "ErrorOrInvalid");
|
|
1594
|
-
if (c === "*") {
|
|
1595
|
-
r.push({
|
|
1596
|
-
type: "ASTERISK",
|
|
1597
|
-
index: n,
|
|
1598
|
-
value: e[n++]
|
|
1599
|
-
});
|
|
1600
|
-
continue;
|
|
1601
|
-
}
|
|
1602
|
-
if (c === "+" || c === "?") {
|
|
1603
|
-
r.push({
|
|
1604
|
-
type: "OTHER_MODIFIER",
|
|
1605
|
-
index: n,
|
|
1606
|
-
value: e[n++]
|
|
1607
|
-
});
|
|
1608
|
-
continue;
|
|
1609
|
-
}
|
|
1610
|
-
if (c === "\\") {
|
|
1611
|
-
r.push({
|
|
1612
|
-
type: "ESCAPED_CHAR",
|
|
1613
|
-
index: n++,
|
|
1614
|
-
value: e[n++]
|
|
1615
|
-
});
|
|
1616
|
-
continue;
|
|
1617
|
-
}
|
|
1618
|
-
if (c === "{") {
|
|
1619
|
-
r.push({
|
|
1620
|
-
type: "OPEN",
|
|
1621
|
-
index: n,
|
|
1622
|
-
value: e[n++]
|
|
1623
|
-
});
|
|
1624
|
-
continue;
|
|
1625
|
-
}
|
|
1626
|
-
if (c === "}") {
|
|
1627
|
-
r.push({
|
|
1628
|
-
type: "CLOSE",
|
|
1629
|
-
index: n,
|
|
1630
|
-
value: e[n++]
|
|
1631
|
-
});
|
|
1632
|
-
continue;
|
|
1633
|
-
}
|
|
1634
|
-
if (c === ":") {
|
|
1635
|
-
let f = "", s = n + 1;
|
|
1636
|
-
for (; s < e.length;) {
|
|
1637
|
-
let i = e.substr(s, 1);
|
|
1638
|
-
if (s === n + 1 && Re.test(i) || s !== n + 1 && Ee.test(i)) {
|
|
1639
|
-
f += e[s++];
|
|
1640
|
-
continue;
|
|
1641
|
-
}
|
|
1642
|
-
break;
|
|
1643
|
-
}
|
|
1644
|
-
if (!f) {
|
|
1645
|
-
l(`Missing parameter name at ${n}`);
|
|
1646
|
-
continue;
|
|
1647
|
-
}
|
|
1648
|
-
r.push({
|
|
1649
|
-
type: "NAME",
|
|
1650
|
-
index: n,
|
|
1651
|
-
value: f
|
|
1652
|
-
}), n = s;
|
|
1653
|
-
continue;
|
|
1654
|
-
}
|
|
1655
|
-
if (c === "(") {
|
|
1656
|
-
let f = 1, s = "", i = n + 1, o = !1;
|
|
1657
|
-
if (e[i] === "?") {
|
|
1658
|
-
l(`Pattern cannot start with "?" at ${i}`);
|
|
1659
|
-
continue;
|
|
1660
|
-
}
|
|
1661
|
-
for (; i < e.length;) {
|
|
1662
|
-
if (!Oe(e[i], !1)) {
|
|
1663
|
-
l(`Invalid character '${e[i]}' at ${i}.`), o = !0;
|
|
1664
|
-
break;
|
|
1665
|
-
}
|
|
1666
|
-
if (e[i] === "\\") {
|
|
1667
|
-
s += e[i++] + e[i++];
|
|
1668
|
-
continue;
|
|
1669
|
-
}
|
|
1670
|
-
if (e[i] === ")") {
|
|
1671
|
-
if (f--, f === 0) {
|
|
1672
|
-
i++;
|
|
1673
|
-
break;
|
|
1674
|
-
}
|
|
1675
|
-
} else if (e[i] === "(" && (f++, e[i + 1] !== "?")) {
|
|
1676
|
-
l(`Capturing groups are not allowed at ${i}`), o = !0;
|
|
1677
|
-
break;
|
|
1678
|
-
}
|
|
1679
|
-
s += e[i++];
|
|
1680
|
-
}
|
|
1681
|
-
if (o) continue;
|
|
1682
|
-
if (f) {
|
|
1683
|
-
l(`Unbalanced pattern at ${n}`);
|
|
1684
|
-
continue;
|
|
1685
|
-
}
|
|
1686
|
-
if (!s) {
|
|
1687
|
-
l(`Missing pattern at ${n}`);
|
|
1688
|
-
continue;
|
|
1689
|
-
}
|
|
1690
|
-
r.push({
|
|
1691
|
-
type: "REGEX",
|
|
1692
|
-
index: n,
|
|
1693
|
-
value: s
|
|
1694
|
-
}), n = i;
|
|
1695
|
-
continue;
|
|
1696
|
-
}
|
|
1697
|
-
r.push({
|
|
1698
|
-
type: "CHAR",
|
|
1699
|
-
index: n,
|
|
1700
|
-
value: e[n++]
|
|
1701
|
-
});
|
|
1702
|
-
}
|
|
1703
|
-
return r.push({
|
|
1704
|
-
type: "END",
|
|
1705
|
-
index: n,
|
|
1706
|
-
value: ""
|
|
1707
|
-
}), r;
|
|
1708
|
-
}
|
|
1709
|
-
a(D, "lexer");
|
|
1710
|
-
function F(e, t = {}) {
|
|
1711
|
-
let r = D(e);
|
|
1712
|
-
t.delimiter ??= "/#?", t.prefixes ??= "./";
|
|
1713
|
-
let n = `[^${x(t.delimiter)}]+?`, c = [], l = 0, f = 0, i = /* @__PURE__ */ new Set(), o = a((u) => {
|
|
1714
|
-
if (f < r.length && r[f].type === u) return r[f++].value;
|
|
1715
|
-
}, "tryConsume"), h = a(() => o("OTHER_MODIFIER") ?? o("ASTERISK"), "tryConsumeModifier"), p = a((u) => {
|
|
1716
|
-
let d = o(u);
|
|
1717
|
-
if (d !== void 0) return d;
|
|
1718
|
-
let { type: g, index: y } = r[f];
|
|
1719
|
-
throw new TypeError(`Unexpected ${g} at ${y}, expected ${u}`);
|
|
1720
|
-
}, "mustConsume"), A = a(() => {
|
|
1721
|
-
let u = "", d;
|
|
1722
|
-
for (; d = o("CHAR") ?? o("ESCAPED_CHAR");) u += d;
|
|
1723
|
-
return u;
|
|
1724
|
-
}, "consumeText"), xe = a((u) => u, "DefaultEncodePart"), N = t.encodePart || xe, H = "", $ = a((u) => {
|
|
1725
|
-
H += u;
|
|
1726
|
-
}, "appendToPendingFixedValue"), M = a(() => {
|
|
1727
|
-
H.length && (c.push(new P(3, "", "", N(H), "", 3)), H = "");
|
|
1728
|
-
}, "maybeAddPartFromPendingFixedValue"), X = a((u, d, g, y, Z) => {
|
|
1729
|
-
let m = 3;
|
|
1730
|
-
switch (Z) {
|
|
1731
|
-
case "?":
|
|
1732
|
-
m = 1;
|
|
1733
|
-
break;
|
|
1734
|
-
case "*":
|
|
1735
|
-
m = 0;
|
|
1736
|
-
break;
|
|
1737
|
-
case "+":
|
|
1738
|
-
m = 2;
|
|
1739
|
-
break;
|
|
1740
|
-
}
|
|
1741
|
-
if (!d && !g && m === 3) {
|
|
1742
|
-
$(u);
|
|
1743
|
-
return;
|
|
1744
|
-
}
|
|
1745
|
-
if (M(), !d && !g) {
|
|
1746
|
-
if (!u) return;
|
|
1747
|
-
c.push(new P(3, "", "", N(u), "", m));
|
|
1748
|
-
return;
|
|
1749
|
-
}
|
|
1750
|
-
let S;
|
|
1751
|
-
g ? g === "*" ? S = v : S = g : S = n;
|
|
1752
|
-
let k = 2;
|
|
1753
|
-
S === n ? (k = 1, S = "") : S === v && (k = 0, S = "");
|
|
1754
|
-
let E;
|
|
1755
|
-
if (d ? E = d : g && (E = l++), i.has(E)) throw new TypeError(`Duplicate name '${E}'.`);
|
|
1756
|
-
i.add(E), c.push(new P(k, E, N(u), S, N(y), m));
|
|
1757
|
-
}, "addPart");
|
|
1758
|
-
for (; f < r.length;) {
|
|
1759
|
-
let u = o("CHAR"), d = o("NAME"), g = o("REGEX");
|
|
1760
|
-
if (!d && !g && (g = o("ASTERISK")), d || g) {
|
|
1761
|
-
let m = u ?? "";
|
|
1762
|
-
t.prefixes.indexOf(m) === -1 && ($(m), m = ""), M();
|
|
1763
|
-
let S = h();
|
|
1764
|
-
X(m, d, g, "", S);
|
|
1765
|
-
continue;
|
|
1766
|
-
}
|
|
1767
|
-
let y = u ?? o("ESCAPED_CHAR");
|
|
1768
|
-
if (y) {
|
|
1769
|
-
$(y);
|
|
1770
|
-
continue;
|
|
1771
|
-
}
|
|
1772
|
-
if (o("OPEN")) {
|
|
1773
|
-
let m = A(), S = o("NAME"), k = o("REGEX");
|
|
1774
|
-
!S && !k && (k = o("ASTERISK"));
|
|
1775
|
-
let E = A();
|
|
1776
|
-
p("CLOSE");
|
|
1777
|
-
let be = h();
|
|
1778
|
-
X(m, S, k, E, be);
|
|
1779
|
-
continue;
|
|
1780
|
-
}
|
|
1781
|
-
M(), p("END");
|
|
1782
|
-
}
|
|
1783
|
-
return c;
|
|
1784
|
-
}
|
|
1785
|
-
a(F, "parse");
|
|
1786
|
-
function x(e) {
|
|
1787
|
-
return e.replace(/([.+*?^${}()[\]|/\\])/g, "\\$1");
|
|
1788
|
-
}
|
|
1789
|
-
a(x, "escapeString");
|
|
1790
|
-
function B(e) {
|
|
1791
|
-
return e && e.ignoreCase ? "ui" : "u";
|
|
1792
|
-
}
|
|
1793
|
-
a(B, "flags");
|
|
1794
|
-
function q(e, t, r) {
|
|
1795
|
-
return W(F(e, r), t, r);
|
|
1796
|
-
}
|
|
1797
|
-
a(q, "stringToRegexp");
|
|
1798
|
-
function T(e) {
|
|
1799
|
-
switch (e) {
|
|
1800
|
-
case 0: return "*";
|
|
1801
|
-
case 1: return "?";
|
|
1802
|
-
case 2: return "+";
|
|
1803
|
-
case 3: return "";
|
|
1804
|
-
}
|
|
1805
|
-
}
|
|
1806
|
-
a(T, "modifierToString");
|
|
1807
|
-
function W(e, t, r = {}) {
|
|
1808
|
-
r.delimiter ??= "/#?", r.prefixes ??= "./", r.sensitive ??= !1, r.strict ??= !1, r.end ??= !0, r.start ??= !0, r.endsWith = "";
|
|
1809
|
-
let n = r.start ? "^" : "";
|
|
1810
|
-
for (let s of e) {
|
|
1811
|
-
if (s.type === 3) {
|
|
1812
|
-
s.modifier === 3 ? n += x(s.value) : n += `(?:${x(s.value)})${T(s.modifier)}`;
|
|
1813
|
-
continue;
|
|
1814
|
-
}
|
|
1815
|
-
t && t.push(s.name);
|
|
1816
|
-
let i = `[^${x(r.delimiter)}]+?`, o = s.value;
|
|
1817
|
-
if (s.type === 1 ? o = i : s.type === 0 && (o = v), !s.prefix.length && !s.suffix.length) {
|
|
1818
|
-
s.modifier === 3 || s.modifier === 1 ? n += `(${o})${T(s.modifier)}` : n += `((?:${o})${T(s.modifier)})`;
|
|
1819
|
-
continue;
|
|
1820
|
-
}
|
|
1821
|
-
if (s.modifier === 3 || s.modifier === 1) {
|
|
1822
|
-
n += `(?:${x(s.prefix)}(${o})${x(s.suffix)})`, n += T(s.modifier);
|
|
1823
|
-
continue;
|
|
1824
|
-
}
|
|
1825
|
-
n += `(?:${x(s.prefix)}`, n += `((?:${o})(?:`, n += x(s.suffix), n += x(s.prefix), n += `(?:${o}))*)${x(s.suffix)})`, s.modifier === 0 && (n += "?");
|
|
1826
|
-
}
|
|
1827
|
-
let c = `[${x(r.endsWith)}]|$`, l = `[${x(r.delimiter)}]`;
|
|
1828
|
-
if (r.end) return r.strict || (n += `${l}?`), r.endsWith.length ? n += `(?=${c})` : n += "$", new RegExp(n, B(r));
|
|
1829
|
-
r.strict || (n += `(?:${l}(?=${c}))?`);
|
|
1830
|
-
let f = !1;
|
|
1831
|
-
if (e.length) {
|
|
1832
|
-
let s = e[e.length - 1];
|
|
1833
|
-
s.type === 3 && s.modifier === 3 && (f = r.delimiter.indexOf(s) > -1);
|
|
1834
|
-
}
|
|
1835
|
-
return f || (n += `(?=${l}|${c})`), new RegExp(n, B(r));
|
|
1836
|
-
}
|
|
1837
|
-
a(W, "partsToRegexp");
|
|
1838
|
-
var b = {
|
|
1839
|
-
delimiter: "",
|
|
1840
|
-
prefixes: "",
|
|
1841
|
-
sensitive: !0,
|
|
1842
|
-
strict: !0
|
|
1843
|
-
};
|
|
1844
|
-
var J = {
|
|
1845
|
-
delimiter: ".",
|
|
1846
|
-
prefixes: "",
|
|
1847
|
-
sensitive: !0,
|
|
1848
|
-
strict: !0
|
|
1849
|
-
};
|
|
1850
|
-
var Q = {
|
|
1851
|
-
delimiter: "/",
|
|
1852
|
-
prefixes: "/",
|
|
1853
|
-
sensitive: !0,
|
|
1854
|
-
strict: !0
|
|
1855
|
-
};
|
|
1856
|
-
function ee(e, t) {
|
|
1857
|
-
return e.length ? e[0] === "/" ? !0 : !t || e.length < 2 ? !1 : (e[0] == "\\" || e[0] == "{") && e[1] == "/" : !1;
|
|
1858
|
-
}
|
|
1859
|
-
a(ee, "isAbsolutePathname");
|
|
1860
|
-
function te(e, t) {
|
|
1861
|
-
return e.startsWith(t) ? e.substring(t.length, e.length) : e;
|
|
1862
|
-
}
|
|
1863
|
-
a(te, "maybeStripPrefix");
|
|
1864
|
-
function ke(e, t) {
|
|
1865
|
-
return e.endsWith(t) ? e.substr(0, e.length - t.length) : e;
|
|
1866
|
-
}
|
|
1867
|
-
a(ke, "maybeStripSuffix");
|
|
1868
|
-
function _(e) {
|
|
1869
|
-
return !e || e.length < 2 ? !1 : e[0] === "[" || (e[0] === "\\" || e[0] === "{") && e[1] === "[";
|
|
1870
|
-
}
|
|
1871
|
-
a(_, "treatAsIPv6Hostname");
|
|
1872
|
-
var re = [
|
|
1873
|
-
"ftp",
|
|
1874
|
-
"file",
|
|
1875
|
-
"http",
|
|
1876
|
-
"https",
|
|
1877
|
-
"ws",
|
|
1878
|
-
"wss"
|
|
1879
|
-
];
|
|
1880
|
-
function U(e) {
|
|
1881
|
-
if (!e) return !0;
|
|
1882
|
-
for (let t of re) if (e.test(t)) return !0;
|
|
1883
|
-
return !1;
|
|
1884
|
-
}
|
|
1885
|
-
a(U, "isSpecialScheme");
|
|
1886
|
-
function ne(e, t) {
|
|
1887
|
-
if (e = te(e, "#"), t || e === "") return e;
|
|
1888
|
-
let r = new URL("https://example.com");
|
|
1889
|
-
return r.hash = e, r.hash ? r.hash.substring(1, r.hash.length) : "";
|
|
1890
|
-
}
|
|
1891
|
-
a(ne, "canonicalizeHash");
|
|
1892
|
-
function se(e, t) {
|
|
1893
|
-
if (e = te(e, "?"), t || e === "") return e;
|
|
1894
|
-
let r = new URL("https://example.com");
|
|
1895
|
-
return r.search = e, r.search ? r.search.substring(1, r.search.length) : "";
|
|
1896
|
-
}
|
|
1897
|
-
a(se, "canonicalizeSearch");
|
|
1898
|
-
function ie(e, t) {
|
|
1899
|
-
return t || e === "" ? e : _(e) ? K(e) : j(e);
|
|
1900
|
-
}
|
|
1901
|
-
a(ie, "canonicalizeHostname");
|
|
1902
|
-
function ae(e, t) {
|
|
1903
|
-
if (t || e === "") return e;
|
|
1904
|
-
let r = new URL("https://example.com");
|
|
1905
|
-
return r.password = e, r.password;
|
|
1906
|
-
}
|
|
1907
|
-
a(ae, "canonicalizePassword");
|
|
1908
|
-
function oe(e, t) {
|
|
1909
|
-
if (t || e === "") return e;
|
|
1910
|
-
let r = new URL("https://example.com");
|
|
1911
|
-
return r.username = e, r.username;
|
|
1912
|
-
}
|
|
1913
|
-
a(oe, "canonicalizeUsername");
|
|
1914
|
-
function ce(e, t, r) {
|
|
1915
|
-
if (r || e === "") return e;
|
|
1916
|
-
if (t && !re.includes(t)) return new URL(`${t}:${e}`).pathname;
|
|
1917
|
-
let n = e[0] == "/";
|
|
1918
|
-
return e = new URL(n ? e : "/-" + e, "https://example.com").pathname, n || (e = e.substring(2, e.length)), e;
|
|
1919
|
-
}
|
|
1920
|
-
a(ce, "canonicalizePathname");
|
|
1921
|
-
function le(e, t, r) {
|
|
1922
|
-
return z(t) === e && (e = ""), r || e === "" ? e : G(e);
|
|
1923
|
-
}
|
|
1924
|
-
a(le, "canonicalizePort");
|
|
1925
|
-
function fe(e, t) {
|
|
1926
|
-
return e = ke(e, ":"), t || e === "" ? e : w(e);
|
|
1927
|
-
}
|
|
1928
|
-
a(fe, "canonicalizeProtocol");
|
|
1929
|
-
function z(e) {
|
|
1930
|
-
switch (e) {
|
|
1931
|
-
case "ws":
|
|
1932
|
-
case "http": return "80";
|
|
1933
|
-
case "wws":
|
|
1934
|
-
case "https": return "443";
|
|
1935
|
-
case "ftp": return "21";
|
|
1936
|
-
default: return "";
|
|
1937
|
-
}
|
|
1938
|
-
}
|
|
1939
|
-
a(z, "defaultPortForProtocol");
|
|
1940
|
-
function w(e) {
|
|
1941
|
-
if (e === "") return e;
|
|
1942
|
-
if (/^[-+.A-Za-z0-9]*$/.test(e)) return e.toLowerCase();
|
|
1943
|
-
throw new TypeError(`Invalid protocol '${e}'.`);
|
|
1944
|
-
}
|
|
1945
|
-
a(w, "protocolEncodeCallback");
|
|
1946
|
-
function he(e) {
|
|
1947
|
-
if (e === "") return e;
|
|
1948
|
-
let t = new URL("https://example.com");
|
|
1949
|
-
return t.username = e, t.username;
|
|
1950
|
-
}
|
|
1951
|
-
a(he, "usernameEncodeCallback");
|
|
1952
|
-
function ue(e) {
|
|
1953
|
-
if (e === "") return e;
|
|
1954
|
-
let t = new URL("https://example.com");
|
|
1955
|
-
return t.password = e, t.password;
|
|
1956
|
-
}
|
|
1957
|
-
a(ue, "passwordEncodeCallback");
|
|
1958
|
-
function j(e) {
|
|
1959
|
-
if (e === "") return e;
|
|
1960
|
-
if (/[\t\n\r #%/:<>?@[\]^\\|]/g.test(e)) throw new TypeError(`Invalid hostname '${e}'`);
|
|
1961
|
-
let t = new URL("https://example.com");
|
|
1962
|
-
return t.hostname = e, t.hostname;
|
|
1963
|
-
}
|
|
1964
|
-
a(j, "hostnameEncodeCallback");
|
|
1965
|
-
function K(e) {
|
|
1966
|
-
if (e === "") return e;
|
|
1967
|
-
if (/[^0-9a-fA-F[\]:]/g.test(e)) throw new TypeError(`Invalid IPv6 hostname '${e}'`);
|
|
1968
|
-
return e.toLowerCase();
|
|
1969
|
-
}
|
|
1970
|
-
a(K, "ipv6HostnameEncodeCallback");
|
|
1971
|
-
function G(e) {
|
|
1972
|
-
if (e === "" || /^[0-9]*$/.test(e) && parseInt(e) <= 65535) return e;
|
|
1973
|
-
throw new TypeError(`Invalid port '${e}'.`);
|
|
1974
|
-
}
|
|
1975
|
-
a(G, "portEncodeCallback");
|
|
1976
|
-
function de(e) {
|
|
1977
|
-
if (e === "") return e;
|
|
1978
|
-
let t = new URL("https://example.com");
|
|
1979
|
-
return t.pathname = e[0] !== "/" ? "/-" + e : e, e[0] !== "/" ? t.pathname.substring(2, t.pathname.length) : t.pathname;
|
|
1258
|
+
function urlPattern(pathname) {
|
|
1259
|
+
const URLPattern = globalThis.URLPattern;
|
|
1260
|
+
if (!URLPattern) throw new Error("gemi: URLPattern is not available. The client router loads the polyfill in init() before it hydrates; code that renders the router some other way has to `await loadURLPattern()` first.");
|
|
1261
|
+
return new URLPattern({ pathname });
|
|
1980
1262
|
}
|
|
1981
|
-
a(de, "standardURLPathnameEncodeCallback");
|
|
1982
|
-
function pe(e) {
|
|
1983
|
-
return e === "" ? e : new URL(`data:${e}`).pathname;
|
|
1984
|
-
}
|
|
1985
|
-
a(pe, "pathURLPathnameEncodeCallback");
|
|
1986
|
-
function ge(e) {
|
|
1987
|
-
if (e === "") return e;
|
|
1988
|
-
let t = new URL("https://example.com");
|
|
1989
|
-
return t.search = e, t.search.substring(1, t.search.length);
|
|
1990
|
-
}
|
|
1991
|
-
a(ge, "searchEncodeCallback");
|
|
1992
|
-
function me(e) {
|
|
1993
|
-
if (e === "") return e;
|
|
1994
|
-
let t = new URL("https://example.com");
|
|
1995
|
-
return t.hash = e, t.hash.substring(1, t.hash.length);
|
|
1996
|
-
}
|
|
1997
|
-
a(me, "hashEncodeCallback");
|
|
1998
|
-
var C$1 = class {
|
|
1999
|
-
#i;
|
|
2000
|
-
#n = [];
|
|
2001
|
-
#t = {};
|
|
2002
|
-
#e = 0;
|
|
2003
|
-
#s = 1;
|
|
2004
|
-
#l = 0;
|
|
2005
|
-
#o = 0;
|
|
2006
|
-
#d = 0;
|
|
2007
|
-
#p = 0;
|
|
2008
|
-
#g = !1;
|
|
2009
|
-
constructor(t) {
|
|
2010
|
-
this.#i = t;
|
|
2011
|
-
}
|
|
2012
|
-
get result() {
|
|
2013
|
-
return this.#t;
|
|
2014
|
-
}
|
|
2015
|
-
parse() {
|
|
2016
|
-
for (this.#n = D(this.#i, !0); this.#e < this.#n.length; this.#e += this.#s) {
|
|
2017
|
-
if (this.#s = 1, this.#n[this.#e].type === "END") {
|
|
2018
|
-
if (this.#o === 0) {
|
|
2019
|
-
this.#b(), this.#f() ? this.#r(9, 1) : this.#h() ? this.#r(8, 1) : this.#r(7, 0);
|
|
2020
|
-
continue;
|
|
2021
|
-
} else if (this.#o === 2) {
|
|
2022
|
-
this.#u(5);
|
|
2023
|
-
continue;
|
|
2024
|
-
}
|
|
2025
|
-
this.#r(10, 0);
|
|
2026
|
-
break;
|
|
2027
|
-
}
|
|
2028
|
-
if (this.#d > 0) if (this.#A()) this.#d -= 1;
|
|
2029
|
-
else continue;
|
|
2030
|
-
if (this.#T()) {
|
|
2031
|
-
this.#d += 1;
|
|
2032
|
-
continue;
|
|
2033
|
-
}
|
|
2034
|
-
switch (this.#o) {
|
|
2035
|
-
case 0:
|
|
2036
|
-
this.#P() && this.#u(1);
|
|
2037
|
-
break;
|
|
2038
|
-
case 1:
|
|
2039
|
-
if (this.#P()) {
|
|
2040
|
-
this.#C();
|
|
2041
|
-
let t = 7, r = 1;
|
|
2042
|
-
this.#E() ? (t = 2, r = 3) : this.#g && (t = 2), this.#r(t, r);
|
|
2043
|
-
}
|
|
2044
|
-
break;
|
|
2045
|
-
case 2:
|
|
2046
|
-
this.#S() ? this.#u(3) : (this.#x() || this.#h() || this.#f()) && this.#u(5);
|
|
2047
|
-
break;
|
|
2048
|
-
case 3:
|
|
2049
|
-
this.#O() ? this.#r(4, 1) : this.#S() && this.#r(5, 1);
|
|
2050
|
-
break;
|
|
2051
|
-
case 4:
|
|
2052
|
-
this.#S() && this.#r(5, 1);
|
|
2053
|
-
break;
|
|
2054
|
-
case 5:
|
|
2055
|
-
this.#y() ? this.#p += 1 : this.#w() && (this.#p -= 1), this.#k() && !this.#p ? this.#r(6, 1) : this.#x() ? this.#r(7, 0) : this.#h() ? this.#r(8, 1) : this.#f() && this.#r(9, 1);
|
|
2056
|
-
break;
|
|
2057
|
-
case 6:
|
|
2058
|
-
this.#x() ? this.#r(7, 0) : this.#h() ? this.#r(8, 1) : this.#f() && this.#r(9, 1);
|
|
2059
|
-
break;
|
|
2060
|
-
case 7:
|
|
2061
|
-
this.#h() ? this.#r(8, 1) : this.#f() && this.#r(9, 1);
|
|
2062
|
-
break;
|
|
2063
|
-
case 8:
|
|
2064
|
-
this.#f() && this.#r(9, 1);
|
|
2065
|
-
break;
|
|
2066
|
-
case 9: break;
|
|
2067
|
-
case 10: break;
|
|
2068
|
-
}
|
|
2069
|
-
}
|
|
2070
|
-
this.#t.hostname !== void 0 && this.#t.port === void 0 && (this.#t.port = "");
|
|
2071
|
-
}
|
|
2072
|
-
#r(t, r) {
|
|
2073
|
-
switch (this.#o) {
|
|
2074
|
-
case 0: break;
|
|
2075
|
-
case 1:
|
|
2076
|
-
this.#t.protocol = this.#c();
|
|
2077
|
-
break;
|
|
2078
|
-
case 2: break;
|
|
2079
|
-
case 3:
|
|
2080
|
-
this.#t.username = this.#c();
|
|
2081
|
-
break;
|
|
2082
|
-
case 4:
|
|
2083
|
-
this.#t.password = this.#c();
|
|
2084
|
-
break;
|
|
2085
|
-
case 5:
|
|
2086
|
-
this.#t.hostname = this.#c();
|
|
2087
|
-
break;
|
|
2088
|
-
case 6:
|
|
2089
|
-
this.#t.port = this.#c();
|
|
2090
|
-
break;
|
|
2091
|
-
case 7:
|
|
2092
|
-
this.#t.pathname = this.#c();
|
|
2093
|
-
break;
|
|
2094
|
-
case 8:
|
|
2095
|
-
this.#t.search = this.#c();
|
|
2096
|
-
break;
|
|
2097
|
-
case 9:
|
|
2098
|
-
this.#t.hash = this.#c();
|
|
2099
|
-
break;
|
|
2100
|
-
case 10: break;
|
|
2101
|
-
}
|
|
2102
|
-
this.#o !== 0 && t !== 10 && ([
|
|
2103
|
-
1,
|
|
2104
|
-
2,
|
|
2105
|
-
3,
|
|
2106
|
-
4
|
|
2107
|
-
].includes(this.#o) && [
|
|
2108
|
-
6,
|
|
2109
|
-
7,
|
|
2110
|
-
8,
|
|
2111
|
-
9
|
|
2112
|
-
].includes(t) && (this.#t.hostname ??= ""), [
|
|
2113
|
-
1,
|
|
2114
|
-
2,
|
|
2115
|
-
3,
|
|
2116
|
-
4,
|
|
2117
|
-
5,
|
|
2118
|
-
6
|
|
2119
|
-
].includes(this.#o) && [8, 9].includes(t) && (this.#t.pathname ??= this.#g ? "/" : ""), [
|
|
2120
|
-
1,
|
|
2121
|
-
2,
|
|
2122
|
-
3,
|
|
2123
|
-
4,
|
|
2124
|
-
5,
|
|
2125
|
-
6,
|
|
2126
|
-
7
|
|
2127
|
-
].includes(this.#o) && t === 9 && (this.#t.search ??= "")), this.#R(t, r);
|
|
2128
|
-
}
|
|
2129
|
-
#R(t, r) {
|
|
2130
|
-
this.#o = t, this.#l = this.#e + r, this.#e += r, this.#s = 0;
|
|
2131
|
-
}
|
|
2132
|
-
#b() {
|
|
2133
|
-
this.#e = this.#l, this.#s = 0;
|
|
2134
|
-
}
|
|
2135
|
-
#u(t) {
|
|
2136
|
-
this.#b(), this.#o = t;
|
|
2137
|
-
}
|
|
2138
|
-
#m(t) {
|
|
2139
|
-
return t < 0 && (t = this.#n.length - t), t < this.#n.length ? this.#n[t] : this.#n[this.#n.length - 1];
|
|
2140
|
-
}
|
|
2141
|
-
#a(t, r) {
|
|
2142
|
-
let n = this.#m(t);
|
|
2143
|
-
return n.value === r && (n.type === "CHAR" || n.type === "ESCAPED_CHAR" || n.type === "INVALID_CHAR");
|
|
2144
|
-
}
|
|
2145
|
-
#P() {
|
|
2146
|
-
return this.#a(this.#e, ":");
|
|
2147
|
-
}
|
|
2148
|
-
#E() {
|
|
2149
|
-
return this.#a(this.#e + 1, "/") && this.#a(this.#e + 2, "/");
|
|
2150
|
-
}
|
|
2151
|
-
#S() {
|
|
2152
|
-
return this.#a(this.#e, "@");
|
|
2153
|
-
}
|
|
2154
|
-
#O() {
|
|
2155
|
-
return this.#a(this.#e, ":");
|
|
2156
|
-
}
|
|
2157
|
-
#k() {
|
|
2158
|
-
return this.#a(this.#e, ":");
|
|
2159
|
-
}
|
|
2160
|
-
#x() {
|
|
2161
|
-
return this.#a(this.#e, "/");
|
|
2162
|
-
}
|
|
2163
|
-
#h() {
|
|
2164
|
-
if (this.#a(this.#e, "?")) return !0;
|
|
2165
|
-
if (this.#n[this.#e].value !== "?") return !1;
|
|
2166
|
-
let t = this.#m(this.#e - 1);
|
|
2167
|
-
return t.type !== "NAME" && t.type !== "REGEX" && t.type !== "CLOSE" && t.type !== "ASTERISK";
|
|
2168
|
-
}
|
|
2169
|
-
#f() {
|
|
2170
|
-
return this.#a(this.#e, "#");
|
|
2171
|
-
}
|
|
2172
|
-
#T() {
|
|
2173
|
-
return this.#n[this.#e].type == "OPEN";
|
|
2174
|
-
}
|
|
2175
|
-
#A() {
|
|
2176
|
-
return this.#n[this.#e].type == "CLOSE";
|
|
2177
|
-
}
|
|
2178
|
-
#y() {
|
|
2179
|
-
return this.#a(this.#e, "[");
|
|
2180
|
-
}
|
|
2181
|
-
#w() {
|
|
2182
|
-
return this.#a(this.#e, "]");
|
|
2183
|
-
}
|
|
2184
|
-
#c() {
|
|
2185
|
-
let t = this.#n[this.#e], r = this.#m(this.#l).index;
|
|
2186
|
-
return this.#i.substring(r, t.index);
|
|
2187
|
-
}
|
|
2188
|
-
#C() {
|
|
2189
|
-
let t = {};
|
|
2190
|
-
Object.assign(t, b), t.encodePart = w;
|
|
2191
|
-
let r = q(this.#c(), void 0, t);
|
|
2192
|
-
this.#g = U(r);
|
|
2193
|
-
}
|
|
2194
|
-
};
|
|
2195
|
-
a(C$1, "Parser");
|
|
2196
|
-
var V = [
|
|
2197
|
-
"protocol",
|
|
2198
|
-
"username",
|
|
2199
|
-
"password",
|
|
2200
|
-
"hostname",
|
|
2201
|
-
"port",
|
|
2202
|
-
"pathname",
|
|
2203
|
-
"search",
|
|
2204
|
-
"hash"
|
|
2205
|
-
];
|
|
2206
|
-
var O = "*";
|
|
2207
|
-
function Se(e, t) {
|
|
2208
|
-
if (typeof e != "string") throw new TypeError("parameter 1 is not of type 'string'.");
|
|
2209
|
-
let r = new URL(e, t);
|
|
2210
|
-
return {
|
|
2211
|
-
protocol: r.protocol.substring(0, r.protocol.length - 1),
|
|
2212
|
-
username: r.username,
|
|
2213
|
-
password: r.password,
|
|
2214
|
-
hostname: r.hostname,
|
|
2215
|
-
port: r.port,
|
|
2216
|
-
pathname: r.pathname,
|
|
2217
|
-
search: r.search !== "" ? r.search.substring(1, r.search.length) : void 0,
|
|
2218
|
-
hash: r.hash !== "" ? r.hash.substring(1, r.hash.length) : void 0
|
|
2219
|
-
};
|
|
2220
|
-
}
|
|
2221
|
-
a(Se, "extractValues");
|
|
2222
|
-
function R(e, t) {
|
|
2223
|
-
return t ? I(e) : e;
|
|
2224
|
-
}
|
|
2225
|
-
a(R, "processBaseURLString");
|
|
2226
|
-
function L(e, t, r) {
|
|
2227
|
-
let n;
|
|
2228
|
-
if (typeof t.baseURL == "string") try {
|
|
2229
|
-
n = new URL(t.baseURL), t.protocol === void 0 && (e.protocol = R(n.protocol.substring(0, n.protocol.length - 1), r)), !r && t.protocol === void 0 && t.hostname === void 0 && t.port === void 0 && t.username === void 0 && (e.username = R(n.username, r)), !r && t.protocol === void 0 && t.hostname === void 0 && t.port === void 0 && t.username === void 0 && t.password === void 0 && (e.password = R(n.password, r)), t.protocol === void 0 && t.hostname === void 0 && (e.hostname = R(n.hostname, r)), t.protocol === void 0 && t.hostname === void 0 && t.port === void 0 && (e.port = R(n.port, r)), t.protocol === void 0 && t.hostname === void 0 && t.port === void 0 && t.pathname === void 0 && (e.pathname = R(n.pathname, r)), t.protocol === void 0 && t.hostname === void 0 && t.port === void 0 && t.pathname === void 0 && t.search === void 0 && (e.search = R(n.search.substring(1, n.search.length), r)), t.protocol === void 0 && t.hostname === void 0 && t.port === void 0 && t.pathname === void 0 && t.search === void 0 && t.hash === void 0 && (e.hash = R(n.hash.substring(1, n.hash.length), r));
|
|
2230
|
-
} catch {
|
|
2231
|
-
throw new TypeError(`invalid baseURL '${t.baseURL}'.`);
|
|
2232
|
-
}
|
|
2233
|
-
if (typeof t.protocol == "string" && (e.protocol = fe(t.protocol, r)), typeof t.username == "string" && (e.username = oe(t.username, r)), typeof t.password == "string" && (e.password = ae(t.password, r)), typeof t.hostname == "string" && (e.hostname = ie(t.hostname, r)), typeof t.port == "string" && (e.port = le(t.port, e.protocol, r)), typeof t.pathname == "string") {
|
|
2234
|
-
if (e.pathname = t.pathname, n && !ee(e.pathname, r)) {
|
|
2235
|
-
let c = n.pathname.lastIndexOf("/");
|
|
2236
|
-
c >= 0 && (e.pathname = R(n.pathname.substring(0, c + 1), r) + e.pathname);
|
|
2237
|
-
}
|
|
2238
|
-
e.pathname = ce(e.pathname, e.protocol, r);
|
|
2239
|
-
}
|
|
2240
|
-
return typeof t.search == "string" && (e.search = se(t.search, r)), typeof t.hash == "string" && (e.hash = ne(t.hash, r)), e;
|
|
2241
|
-
}
|
|
2242
|
-
a(L, "applyInit");
|
|
2243
|
-
function I(e) {
|
|
2244
|
-
return e.replace(/([+*?:{}()\\])/g, "\\$1");
|
|
2245
|
-
}
|
|
2246
|
-
a(I, "escapePatternString");
|
|
2247
|
-
function Te(e) {
|
|
2248
|
-
return e.replace(/([.+*?^${}()[\]|/\\])/g, "\\$1");
|
|
2249
|
-
}
|
|
2250
|
-
a(Te, "escapeRegexpString");
|
|
2251
|
-
function Ae(e, t) {
|
|
2252
|
-
t.delimiter ??= "/#?", t.prefixes ??= "./", t.sensitive ??= !1, t.strict ??= !1, t.end ??= !0, t.start ??= !0, t.endsWith = "";
|
|
2253
|
-
let r = ".*", n = `[^${Te(t.delimiter)}]+?`, c = /[$_\u200C\u200D\p{ID_Continue}]/u, l = "";
|
|
2254
|
-
for (let f = 0; f < e.length; ++f) {
|
|
2255
|
-
let s = e[f];
|
|
2256
|
-
if (s.type === 3) {
|
|
2257
|
-
if (s.modifier === 3) {
|
|
2258
|
-
l += I(s.value);
|
|
2259
|
-
continue;
|
|
2260
|
-
}
|
|
2261
|
-
l += `{${I(s.value)}}${T(s.modifier)}`;
|
|
2262
|
-
continue;
|
|
2263
|
-
}
|
|
2264
|
-
let i = s.hasCustomName(), o = !!s.suffix.length || !!s.prefix.length && (s.prefix.length !== 1 || !t.prefixes.includes(s.prefix)), h = f > 0 ? e[f - 1] : null, p = f < e.length - 1 ? e[f + 1] : null;
|
|
2265
|
-
if (!o && i && s.type === 1 && s.modifier === 3 && p && !p.prefix.length && !p.suffix.length) if (p.type === 3) {
|
|
2266
|
-
let A = p.value.length > 0 ? p.value[0] : "";
|
|
2267
|
-
o = c.test(A);
|
|
2268
|
-
} else o = !p.hasCustomName();
|
|
2269
|
-
if (!o && !s.prefix.length && h && h.type === 3) {
|
|
2270
|
-
let A = h.value[h.value.length - 1];
|
|
2271
|
-
o = t.prefixes.includes(A);
|
|
2272
|
-
}
|
|
2273
|
-
o && (l += "{"), l += I(s.prefix), i && (l += `:${s.name}`), s.type === 2 ? l += `(${s.value})` : s.type === 1 ? i || (l += `(${n})`) : s.type === 0 && (!i && (!h || h.type === 3 || h.modifier !== 3 || o || s.prefix !== "") ? l += "*" : l += `(${r})`), s.type === 1 && i && s.suffix.length && c.test(s.suffix[0]) && (l += "\\"), l += I(s.suffix), o && (l += "}"), s.modifier !== 3 && (l += T(s.modifier));
|
|
2274
|
-
}
|
|
2275
|
-
return l;
|
|
2276
|
-
}
|
|
2277
|
-
a(Ae, "partsToPattern");
|
|
2278
|
-
var Y = class {
|
|
2279
|
-
#i;
|
|
2280
|
-
#n = {};
|
|
2281
|
-
#t = {};
|
|
2282
|
-
#e = {};
|
|
2283
|
-
#s = {};
|
|
2284
|
-
#l = !1;
|
|
2285
|
-
constructor(t = {}, r, n) {
|
|
2286
|
-
try {
|
|
2287
|
-
let c;
|
|
2288
|
-
if (typeof r == "string" ? c = r : n = r, typeof t == "string") {
|
|
2289
|
-
let i = new C$1(t);
|
|
2290
|
-
if (i.parse(), t = i.result, c === void 0 && typeof t.protocol != "string") throw new TypeError("A base URL must be provided for a relative constructor string.");
|
|
2291
|
-
t.baseURL = c;
|
|
2292
|
-
} else {
|
|
2293
|
-
if (!t || typeof t != "object") throw new TypeError("parameter 1 is not of type 'string' and cannot convert to dictionary.");
|
|
2294
|
-
if (c) throw new TypeError("parameter 1 is not of type 'string'.");
|
|
2295
|
-
}
|
|
2296
|
-
typeof n > "u" && (n = { ignoreCase: !1 });
|
|
2297
|
-
let l = { ignoreCase: n.ignoreCase === !0 }, f = {
|
|
2298
|
-
pathname: O,
|
|
2299
|
-
protocol: O,
|
|
2300
|
-
username: O,
|
|
2301
|
-
password: O,
|
|
2302
|
-
hostname: O,
|
|
2303
|
-
port: O,
|
|
2304
|
-
search: O,
|
|
2305
|
-
hash: O
|
|
2306
|
-
};
|
|
2307
|
-
this.#i = L(f, t, !0), z(this.#i.protocol) === this.#i.port && (this.#i.port = "");
|
|
2308
|
-
let s;
|
|
2309
|
-
for (s of V) {
|
|
2310
|
-
if (!(s in this.#i)) continue;
|
|
2311
|
-
let i = {}, o = this.#i[s];
|
|
2312
|
-
switch (this.#t[s] = [], s) {
|
|
2313
|
-
case "protocol":
|
|
2314
|
-
Object.assign(i, b), i.encodePart = w;
|
|
2315
|
-
break;
|
|
2316
|
-
case "username":
|
|
2317
|
-
Object.assign(i, b), i.encodePart = he;
|
|
2318
|
-
break;
|
|
2319
|
-
case "password":
|
|
2320
|
-
Object.assign(i, b), i.encodePart = ue;
|
|
2321
|
-
break;
|
|
2322
|
-
case "hostname":
|
|
2323
|
-
Object.assign(i, J), _(o) ? i.encodePart = K : i.encodePart = j;
|
|
2324
|
-
break;
|
|
2325
|
-
case "port":
|
|
2326
|
-
Object.assign(i, b), i.encodePart = G;
|
|
2327
|
-
break;
|
|
2328
|
-
case "pathname":
|
|
2329
|
-
U(this.#n.protocol) ? (Object.assign(i, Q, l), i.encodePart = de) : (Object.assign(i, b, l), i.encodePart = pe);
|
|
2330
|
-
break;
|
|
2331
|
-
case "search":
|
|
2332
|
-
Object.assign(i, b, l), i.encodePart = ge;
|
|
2333
|
-
break;
|
|
2334
|
-
case "hash":
|
|
2335
|
-
Object.assign(i, b, l), i.encodePart = me;
|
|
2336
|
-
break;
|
|
2337
|
-
}
|
|
2338
|
-
try {
|
|
2339
|
-
this.#s[s] = F(o, i), this.#n[s] = W(this.#s[s], this.#t[s], i), this.#e[s] = Ae(this.#s[s], i), this.#l = this.#l || this.#s[s].some((h) => h.type === 2);
|
|
2340
|
-
} catch {
|
|
2341
|
-
throw new TypeError(`invalid ${s} pattern '${this.#i[s]}'.`);
|
|
2342
|
-
}
|
|
2343
|
-
}
|
|
2344
|
-
} catch (c) {
|
|
2345
|
-
throw new TypeError(`Failed to construct 'URLPattern': ${c.message}`);
|
|
2346
|
-
}
|
|
2347
|
-
}
|
|
2348
|
-
get [Symbol.toStringTag]() {
|
|
2349
|
-
return "URLPattern";
|
|
2350
|
-
}
|
|
2351
|
-
test(t = {}, r) {
|
|
2352
|
-
let n = {
|
|
2353
|
-
pathname: "",
|
|
2354
|
-
protocol: "",
|
|
2355
|
-
username: "",
|
|
2356
|
-
password: "",
|
|
2357
|
-
hostname: "",
|
|
2358
|
-
port: "",
|
|
2359
|
-
search: "",
|
|
2360
|
-
hash: ""
|
|
2361
|
-
};
|
|
2362
|
-
if (typeof t != "string" && r) throw new TypeError("parameter 1 is not of type 'string'.");
|
|
2363
|
-
if (typeof t > "u") return !1;
|
|
2364
|
-
try {
|
|
2365
|
-
typeof t == "object" ? n = L(n, t, !1) : n = L(n, Se(t, r), !1);
|
|
2366
|
-
} catch {
|
|
2367
|
-
return !1;
|
|
2368
|
-
}
|
|
2369
|
-
let c;
|
|
2370
|
-
for (c of V) if (!this.#n[c].exec(n[c])) return !1;
|
|
2371
|
-
return !0;
|
|
2372
|
-
}
|
|
2373
|
-
exec(t = {}, r) {
|
|
2374
|
-
let n = {
|
|
2375
|
-
pathname: "",
|
|
2376
|
-
protocol: "",
|
|
2377
|
-
username: "",
|
|
2378
|
-
password: "",
|
|
2379
|
-
hostname: "",
|
|
2380
|
-
port: "",
|
|
2381
|
-
search: "",
|
|
2382
|
-
hash: ""
|
|
2383
|
-
};
|
|
2384
|
-
if (typeof t != "string" && r) throw new TypeError("parameter 1 is not of type 'string'.");
|
|
2385
|
-
if (typeof t > "u") return;
|
|
2386
|
-
try {
|
|
2387
|
-
typeof t == "object" ? n = L(n, t, !1) : n = L(n, Se(t, r), !1);
|
|
2388
|
-
} catch {
|
|
2389
|
-
return null;
|
|
2390
|
-
}
|
|
2391
|
-
let c = {};
|
|
2392
|
-
r ? c.inputs = [t, r] : c.inputs = [t];
|
|
2393
|
-
let l;
|
|
2394
|
-
for (l of V) {
|
|
2395
|
-
let f = this.#n[l].exec(n[l]);
|
|
2396
|
-
if (!f) return null;
|
|
2397
|
-
let s = {};
|
|
2398
|
-
for (let [i, o] of this.#t[l].entries()) if (typeof o == "string" || typeof o == "number") s[o] = f[i + 1];
|
|
2399
|
-
c[l] = {
|
|
2400
|
-
input: n[l] ?? "",
|
|
2401
|
-
groups: s
|
|
2402
|
-
};
|
|
2403
|
-
}
|
|
2404
|
-
return c;
|
|
2405
|
-
}
|
|
2406
|
-
static compareComponent(t, r, n) {
|
|
2407
|
-
let c = a((i, o) => {
|
|
2408
|
-
for (let h of [
|
|
2409
|
-
"type",
|
|
2410
|
-
"modifier",
|
|
2411
|
-
"prefix",
|
|
2412
|
-
"value",
|
|
2413
|
-
"suffix"
|
|
2414
|
-
]) {
|
|
2415
|
-
if (i[h] < o[h]) return -1;
|
|
2416
|
-
if (i[h] === o[h]) continue;
|
|
2417
|
-
return 1;
|
|
2418
|
-
}
|
|
2419
|
-
return 0;
|
|
2420
|
-
}, "comparePart"), l = new P(3, "", "", "", "", 3), f = new P(0, "", "", "", "", 3), s = a((i, o) => {
|
|
2421
|
-
let h = 0;
|
|
2422
|
-
for (; h < Math.min(i.length, o.length); ++h) {
|
|
2423
|
-
let p = c(i[h], o[h]);
|
|
2424
|
-
if (p) return p;
|
|
2425
|
-
}
|
|
2426
|
-
return i.length === o.length ? 0 : c(i[h] ?? l, o[h] ?? l);
|
|
2427
|
-
}, "comparePartList");
|
|
2428
|
-
return !r.#e[t] && !n.#e[t] ? 0 : r.#e[t] && !n.#e[t] ? s(r.#s[t], [f]) : !r.#e[t] && n.#e[t] ? s([f], n.#s[t]) : s(r.#s[t], n.#s[t]);
|
|
2429
|
-
}
|
|
2430
|
-
get protocol() {
|
|
2431
|
-
return this.#e.protocol;
|
|
2432
|
-
}
|
|
2433
|
-
get username() {
|
|
2434
|
-
return this.#e.username;
|
|
2435
|
-
}
|
|
2436
|
-
get password() {
|
|
2437
|
-
return this.#e.password;
|
|
2438
|
-
}
|
|
2439
|
-
get hostname() {
|
|
2440
|
-
return this.#e.hostname;
|
|
2441
|
-
}
|
|
2442
|
-
get port() {
|
|
2443
|
-
return this.#e.port;
|
|
2444
|
-
}
|
|
2445
|
-
get pathname() {
|
|
2446
|
-
return this.#e.pathname;
|
|
2447
|
-
}
|
|
2448
|
-
get search() {
|
|
2449
|
-
return this.#e.search;
|
|
2450
|
-
}
|
|
2451
|
-
get hash() {
|
|
2452
|
-
return this.#e.hash;
|
|
2453
|
-
}
|
|
2454
|
-
get hasRegExpGroups() {
|
|
2455
|
-
return this.#l;
|
|
2456
|
-
}
|
|
2457
|
-
};
|
|
2458
|
-
a(Y, "URLPattern");
|
|
2459
|
-
//#endregion
|
|
2460
|
-
//#region ../../node_modules/.bun/urlpattern-polyfill@10.1.0/node_modules/urlpattern-polyfill/index.js
|
|
2461
|
-
if (!globalThis.URLPattern) globalThis.URLPattern = Y;
|
|
2462
1263
|
//#endregion
|
|
2463
1264
|
//#region utils/sleep.ts
|
|
2464
1265
|
function sleep(time) {
|
|
@@ -3807,7 +2608,7 @@ function restoreScroll(navigation) {
|
|
|
3807
2608
|
if (saved !== void 0 && (type === "reload" || type === "back_forward")) window.scrollTo(0, saved);
|
|
3808
2609
|
return;
|
|
3809
2610
|
}
|
|
3810
|
-
if (navigation.action ===
|
|
2611
|
+
if (navigation.action === "POP" && saved !== void 0) {
|
|
3811
2612
|
window.scrollTo(0, saved);
|
|
3812
2613
|
return;
|
|
3813
2614
|
}
|
|
@@ -3874,7 +2675,7 @@ var ClientRouterProvider = (props) => {
|
|
|
3874
2675
|
let routePath = pathname.replace("/en-US", "").replace("/tr-TR", "");
|
|
3875
2676
|
routePath = routePath === "" ? "/" : routePath;
|
|
3876
2677
|
const candidates = [];
|
|
3877
|
-
for (const route of Object.keys(routeManifest)) if (
|
|
2678
|
+
for (const route of Object.keys(routeManifest)) if (urlPattern(route).test({ pathname: routePath })) candidates.push(route);
|
|
3878
2679
|
return (candidates.sort((a, b) => {
|
|
3879
2680
|
return a.split("/").length + a.split(":").length - (b.split("/").length + b.split(":").length);
|
|
3880
2681
|
}) ?? [])[0];
|
|
@@ -3887,7 +2688,7 @@ var ClientRouterProvider = (props) => {
|
|
|
3887
2688
|
return findMatchingRouteFromParams(href);
|
|
3888
2689
|
}, [findMatchingRouteFromParams]);
|
|
3889
2690
|
const getParams = useMemo(() => (pathname) => {
|
|
3890
|
-
return
|
|
2691
|
+
return urlPattern(findMatchingRouteFromParams(pathname)).exec({ pathname })?.pathname.groups ?? {};
|
|
3891
2692
|
}, [findMatchingRouteFromParams]);
|
|
3892
2693
|
useEffect(() => manageScroll(), []);
|
|
3893
2694
|
useEffect(() => {
|
|
@@ -4320,6 +3121,6 @@ function useTheme() {
|
|
|
4320
3121
|
return useContext(ThemeContext);
|
|
4321
3122
|
}
|
|
4322
3123
|
//#endregion
|
|
4323
|
-
export {
|
|
3124
|
+
export { applyParams as $, useSearchParams as A, loadURLPattern as B, loadDictionary as C, readRoutePayload as D, setActiveLocale as E, ServerDataProvider as F, configureRealtime as G, applyDocumentNonce as H, useLocation as I, realtime as J, followLive as K, domainUrl as L, I18nContext as M, I18nProvider as N, routeDataUrl as O, ServerDataContext as P, toVariantKey as Q, isAbsoluteUrl as R, recoverFromChunkLoadError as S, registerDictionary as T, useCspNonce as U, CspNonceContext as V, RealtimeContext as W, loadLazy as X, reconnectRealtime as Y, loadedModule as Z, configureChunkLoadRecovery as _, retryDelayFor as _t, useRouteTransition as a, DEFAULT_STALE_TIME as at, otherBuild as b, Subject as bt, ClientRouterContext as c, resetAuthenticationIncident as ct, ComponentsContext as d, isExternalRedirect as dt, QueryConfigContext as et, ComponentsProvider as f, safeRedirectPath as ft, CHUNK_RELOAD_MARKER as g, parseRetryAfter as gt, subscribeViewModules as h, isRetryableQueryError as ht, RouteTransitionProvider as i, pickDefined as it, useNavigate as j, useRoute as k, ClientRouterProvider as l, setAuthenticationNavigator as lt, loadViewModule as m, equalJitter as mt, useTheme as n, QueryManagerProvider as nt, useChannelSubscription as o, configureAuthenticationErrors as ot, initialViewModulesReady as p, readResponseBody as pt, liveModule as q, m as r, USER_QUERY_CONFIG_KEYS as rt, useCoalesced as s, reportAuthenticationRefusal as st, ThemeProvider as t, QueryManagerContext as tt, restoreScroll as u, INTENDED_URL_PARAM as ut, isChunkLoadError as v, shouldRetryQuery as vt, loadDictionaryForRender as w, recoverFromBuildMismatch as x, navigationStarted as y, QueryError as yt, ProgressManager as z };
|
|
4324
3125
|
|
|
4325
|
-
//# sourceMappingURL=ThemeProvider-
|
|
3126
|
+
//# sourceMappingURL=ThemeProvider-COjYIalw.js.map
|