gemi 0.45.0 → 0.50.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/App.d.ts +1 -1
- package/dist/app/App.d.ts.map +1 -1
- package/dist/app/index.js +2 -2
- package/dist/app/index.js.map +1 -1
- package/dist/auth/AuthController.d.ts +107 -0
- package/dist/auth/AuthController.d.ts.map +1 -0
- package/dist/auth/{AuthenticationServiceContainer.d.ts → AuthManager.d.ts} +12 -7
- package/dist/auth/AuthManager.d.ts.map +1 -0
- package/dist/auth/AuthServiceProvider.d.ts +5 -0
- package/dist/auth/AuthServiceProvider.d.ts.map +1 -0
- package/dist/auth/config.d.ts +32 -0
- package/dist/auth/config.d.ts.map +1 -0
- package/dist/auth/requests.d.ts +24 -0
- package/dist/auth/requests.d.ts.map +1 -0
- package/dist/auth/{AuthenticationServiceProvider.d.ts → routes.d.ts} +3 -33
- package/dist/auth/routes.d.ts.map +1 -0
- package/dist/bin/gemi.js +19631 -51226
- package/dist/bin/gemi.js.map +10 -74
- package/dist/bin/migrate/classBody.d.ts +31 -0
- package/dist/bin/migrate/classBody.d.ts.map +1 -0
- package/dist/bin/migrate/imports.d.ts +37 -0
- package/dist/bin/migrate/imports.d.ts.map +1 -0
- package/dist/bin/migrate/index.d.ts +6 -0
- package/dist/bin/migrate/index.d.ts.map +1 -0
- package/dist/bin/migrate/lex.d.ts +23 -0
- package/dist/bin/migrate/lex.d.ts.map +1 -0
- package/dist/bin/migrate/tables.d.ts +38 -0
- package/dist/bin/migrate/tables.d.ts.map +1 -0
- package/dist/broadcasting/index.js +1 -1
- 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-01gbjyc5.js +4 -0
- package/dist/{chunk-tyjhatbq.js.map → chunk-01gbjyc5.js.map} +2 -2
- package/dist/chunk-0e8313cy.js +5 -0
- package/dist/{chunk-b0ca3dzf.js.map → chunk-0e8313cy.js.map} +2 -2
- package/dist/chunk-0g7fds80.js +4 -0
- package/dist/{chunk-8jns0zmx.js.map → chunk-0g7fds80.js.map} +2 -2
- package/dist/{chunk-snp18f2m.js → chunk-0j1vfxj7.js} +3 -3
- package/dist/{chunk-snp18f2m.js.map → chunk-0j1vfxj7.js.map} +1 -1
- package/dist/chunk-0j8rgg32.js +4 -0
- package/dist/{chunk-atv6nybp.js.map → chunk-0j8rgg32.js.map} +16 -8
- package/dist/chunk-1jzj2t3t.js +5 -0
- package/dist/chunk-1jzj2t3t.js.map +10 -0
- package/dist/{chunk-4k7p344e.js → chunk-2mza564z.js} +2 -2
- package/dist/{chunk-4k7p344e.js.map → chunk-2mza564z.js.map} +1 -1
- package/dist/{chunk-n4wrg0sn.js → chunk-4a47a3tt.js} +3 -3
- package/dist/{chunk-f18weffa.js.map → chunk-4a47a3tt.js.map} +1 -1
- package/dist/chunk-4b8kjq68.js +5 -0
- package/dist/chunk-4b8kjq68.js.map +10 -0
- package/dist/chunk-4y8vkbtw.js +34 -0
- package/dist/chunk-4y8vkbtw.js.map +242 -0
- package/dist/chunk-563jg281.js +5 -0
- package/dist/chunk-563jg281.js.map +11 -0
- package/dist/chunk-5em8db18.js +5 -0
- package/dist/chunk-5em8db18.js.map +10 -0
- package/dist/{chunk-1nkxmecw.js → chunk-5f88sbt2.js} +3 -3
- package/dist/{chunk-1nkxmecw.js.map → chunk-5f88sbt2.js.map} +1 -1
- package/dist/{chunk-6av6dnxx.js → chunk-64smn3fn.js} +2 -2
- package/dist/{chunk-6av6dnxx.js.map → chunk-64smn3fn.js.map} +2 -2
- package/dist/{chunk-w54fj10r.js → chunk-6q2xys8x.js} +1 -1
- package/dist/chunk-7hh953xm.js +5 -0
- package/dist/chunk-7hh953xm.js.map +10 -0
- package/dist/chunk-7w6qsfm3.js +5 -0
- package/dist/chunk-7w6qsfm3.js.map +10 -0
- package/dist/{chunk-a3bmbfn3.js → chunk-9eg4q6hm.js} +2 -2
- package/dist/{chunk-a3bmbfn3.js.map → chunk-9eg4q6hm.js.map} +1 -1
- package/dist/{chunk-2a4ze3n3.js → chunk-a0hk8r8n.js} +3 -3
- package/dist/{chunk-2a4ze3n3.js.map → chunk-a0hk8r8n.js.map} +1 -1
- package/dist/{chunk-jrnbyhgq.js → chunk-ctffrrx4.js} +4 -4
- package/dist/{chunk-jrnbyhgq.js.map → chunk-ctffrrx4.js.map} +1 -1
- package/dist/{chunk-vpqq7v9e.js → chunk-eq02jfj2.js} +2 -2
- package/dist/{chunk-vpqq7v9e.js.map → chunk-eq02jfj2.js.map} +1 -1
- package/dist/chunk-g250akbq.js +4 -0
- package/dist/chunk-g250akbq.js.map +13 -0
- package/dist/{chunk-wtydwxgg.js → chunk-g7tytfm9.js} +3 -3
- package/dist/{chunk-wtydwxgg.js.map → chunk-g7tytfm9.js.map} +1 -1
- package/dist/chunk-h3b5b2rm.js +4 -0
- package/dist/{chunk-wed042aw.js.map → chunk-h3b5b2rm.js.map} +2 -2
- package/dist/{chunk-2cew23ww.js → chunk-jek07yr8.js} +3 -3
- package/dist/{chunk-2cew23ww.js.map → chunk-jek07yr8.js.map} +1 -1
- package/dist/chunk-jzqeb93s.js +4 -0
- package/dist/{chunk-2pazt3hc.js.map → chunk-jzqeb93s.js.map} +2 -2
- package/dist/chunk-k0rg0bh0.js +5 -0
- package/dist/chunk-k0rg0bh0.js.map +10 -0
- package/dist/chunk-k1xs9cjj.js +5 -0
- package/dist/chunk-k1xs9cjj.js.map +12 -0
- package/dist/{chunk-396qq8ge.js → chunk-kpzrdjqs.js} +2 -2
- package/dist/{chunk-396qq8ge.js.map → chunk-kpzrdjqs.js.map} +3 -3
- package/dist/{chunk-sv4v623e.js → chunk-ktdrrvqm.js} +3 -3
- package/dist/{chunk-sv4v623e.js.map → chunk-ktdrrvqm.js.map} +1 -1
- package/dist/chunk-m4nm4zy6.js +5 -0
- package/dist/{chunk-7bggj8g7.js.map → chunk-m4nm4zy6.js.map} +2 -2
- package/dist/{chunk-f18weffa.js → chunk-n5q0gwd9.js} +2 -2
- package/dist/{chunk-n4wrg0sn.js.map → chunk-n5q0gwd9.js.map} +1 -1
- package/dist/chunk-pda081kg.js +4 -0
- package/dist/{chunk-y4q11zr2.js.map → chunk-pda081kg.js.map} +2 -2
- package/dist/chunk-qb70bkja.js +4 -0
- package/dist/{chunk-vh6dnbty.js.map → chunk-qb70bkja.js.map} +2 -2
- package/dist/chunk-qwy7b1v6.js +5 -0
- package/dist/{chunk-tjzbw6eg.js.map → chunk-qwy7b1v6.js.map} +2 -2
- package/dist/chunk-sqafdycr.js +23 -0
- package/dist/chunk-sqafdycr.js.map +33 -0
- package/dist/{chunk-0r110r6m.js → chunk-t9ydh7x3.js} +3 -3
- package/dist/{chunk-0r110r6m.js.map → chunk-t9ydh7x3.js.map} +1 -1
- package/dist/chunk-vvp2dr94.js +5 -0
- package/dist/chunk-vvp2dr94.js.map +12 -0
- package/dist/{chunk-mped4eh6.js → chunk-w7kvrp0q.js} +4 -4
- package/dist/{chunk-mped4eh6.js.map → chunk-w7kvrp0q.js.map} +1 -1
- package/dist/{chunk-wjhh4pf0.js → chunk-wqzg9229.js} +3 -3
- package/dist/{chunk-wjhh4pf0.js.map → chunk-wqzg9229.js.map} +1 -1
- package/dist/{chunk-27tkdqp6.js → chunk-xdsjdz4a.js} +4 -4
- package/dist/{chunk-27tkdqp6.js.map → chunk-xdsjdz4a.js.map} +2 -2
- package/dist/chunk-xvfy2e73.js +4 -0
- package/dist/{chunk-ww5vyb4s.js.map → chunk-xvfy2e73.js.map} +2 -2
- package/dist/chunk-xvr6bezx.js +6 -0
- package/dist/{chunk-tvp3xgfq.js.map → chunk-xvr6bezx.js.map} +2 -2
- package/dist/{chunk-cmnhs4mh.js → chunk-y1h1tf4f.js} +3 -3
- package/dist/{chunk-cmnhs4mh.js.map → chunk-y1h1tf4f.js.map} +1 -1
- package/dist/chunk-ya4rt5nk.js +79 -0
- package/dist/{chunk-jxpwexpz.js.map → chunk-ya4rt5nk.js.map} +33 -24
- package/dist/chunk-ye31dsgf.js +5 -0
- package/dist/chunk-ye31dsgf.js.map +11 -0
- package/dist/chunk-z78ksnx2.js +5 -0
- package/dist/chunk-z78ksnx2.js.map +10 -0
- package/dist/chunk-zx3ypgvw.js +4 -0
- package/dist/{chunk-yyn0qk1w.js.map → chunk-zx3ypgvw.js.map} +1 -1
- package/dist/client/rpc.d.ts +1 -1
- package/dist/client/rpc.d.ts.map +1 -1
- package/dist/config/index.js +1 -1
- package/dist/container/Container.d.ts +33 -0
- package/dist/container/Container.d.ts.map +1 -0
- package/dist/container/index.d.ts +2 -0
- package/dist/container/index.d.ts.map +1 -0
- package/dist/container/index.js +4 -0
- package/dist/container/index.js.map +9 -0
- package/dist/database/DatabaseManager.d.ts +14 -0
- package/dist/database/DatabaseManager.d.ts.map +1 -0
- package/dist/database/DatabaseServiceProvider.d.ts +5 -0
- package/dist/database/DatabaseServiceProvider.d.ts.map +1 -0
- package/dist/database/config.d.ts +11 -0
- package/dist/database/config.d.ts.map +1 -0
- package/dist/database/dialect.d.ts +11 -0
- package/dist/database/dialect.d.ts.map +1 -0
- package/dist/database/index.d.ts +5 -0
- package/dist/database/index.d.ts.map +1 -0
- package/dist/database/index.js +4 -0
- package/dist/database/index.js.map +9 -0
- package/dist/email/Email.d.ts.map +1 -1
- package/dist/email/index.js +3 -3
- package/dist/email/index.js.map +3 -3
- package/dist/facades/Auth.d.ts +4 -1
- package/dist/facades/Auth.d.ts.map +1 -1
- package/dist/facades/Broadcast.d.ts +4 -1
- package/dist/facades/Broadcast.d.ts.map +1 -1
- package/dist/facades/DB.d.ts +12 -0
- package/dist/facades/DB.d.ts.map +1 -0
- package/dist/facades/Facade.d.ts +29 -0
- package/dist/facades/Facade.d.ts.map +1 -0
- package/dist/facades/Lang.d.ts +10 -0
- package/dist/facades/Lang.d.ts.map +1 -0
- package/dist/facades/Log.d.ts +4 -1
- package/dist/facades/Log.d.ts.map +1 -1
- package/dist/facades/Prefetch.d.ts +4 -1
- package/dist/facades/Prefetch.d.ts.map +1 -1
- package/dist/facades/RateLimiter.d.ts +4 -2
- package/dist/facades/RateLimiter.d.ts.map +1 -1
- package/dist/facades/Redis.d.ts +4 -1
- package/dist/facades/Redis.d.ts.map +1 -1
- package/dist/facades/{FileStorage.d.ts → Storage.d.ts} +5 -2
- package/dist/facades/Storage.d.ts.map +1 -0
- package/dist/facades/index.d.ts +4 -2
- package/dist/facades/index.d.ts.map +1 -1
- package/dist/facades/index.js +2 -2
- package/dist/facades/index.js.map +1 -1
- package/dist/foundation/Application.d.ts +44 -0
- package/dist/foundation/Application.d.ts.map +1 -0
- package/dist/foundation/app.d.ts +15 -0
- package/dist/foundation/app.d.ts.map +1 -0
- package/dist/foundation/index.d.ts +3 -0
- package/dist/foundation/index.d.ts.map +1 -0
- package/dist/foundation/index.js +4 -0
- package/dist/foundation/index.js.map +9 -0
- package/dist/http/AuthenticationMiddlware.d.ts.map +1 -1
- package/dist/http/RateLimitMiddleware.d.ts.map +1 -1
- package/dist/http/index.d.ts +1 -1
- package/dist/http/index.d.ts.map +1 -1
- package/dist/http/index.js +2 -2
- package/dist/http/index.js.map +1 -1
- package/dist/http/middleware-config.d.ts +8 -0
- package/dist/http/middleware-config.d.ts.map +1 -0
- package/dist/i18n/I18nRouter.d.ts.map +1 -1
- package/dist/i18n/TranslationServiceProvider.d.ts +5 -0
- package/dist/i18n/TranslationServiceProvider.d.ts.map +1 -0
- package/dist/i18n/Translator.d.ts +17 -0
- package/dist/i18n/Translator.d.ts.map +1 -0
- package/dist/i18n/config.d.ts +13 -0
- package/dist/i18n/config.d.ts.map +1 -0
- package/dist/i18n/index.d.ts +3 -1
- package/dist/i18n/index.d.ts.map +1 -1
- package/dist/i18n/index.js +2 -2
- package/dist/i18n/index.js.map +3 -3
- package/dist/kernel/Kernel.d.ts +46 -33
- package/dist/kernel/Kernel.d.ts.map +1 -1
- package/dist/kernel/KernelContext.d.ts.map +1 -1
- package/dist/kernel/index.d.ts +1 -1
- package/dist/kernel/index.d.ts.map +1 -1
- package/dist/kernel/index.js +2 -2
- package/dist/kernel/index.js.map +5 -7
- package/dist/kernel/providers.d.ts +11 -0
- package/dist/kernel/providers.d.ts.map +1 -0
- package/dist/server/Server.d.ts.map +1 -1
- package/dist/server/index.js +2 -2
- package/dist/server/index.js.map +3 -3
- package/dist/services/cron/ScheduleServiceProvider.d.ts +12 -0
- package/dist/services/cron/ScheduleServiceProvider.d.ts.map +1 -0
- package/dist/services/cron/Scheduler.d.ts +22 -0
- package/dist/services/cron/Scheduler.d.ts.map +1 -0
- package/dist/services/cron/config.d.ts +7 -0
- package/dist/services/cron/config.d.ts.map +1 -0
- package/dist/services/email/MailManager.d.ts +13 -0
- package/dist/services/email/MailManager.d.ts.map +1 -0
- package/dist/services/email/MailServiceProvider.d.ts +5 -0
- package/dist/services/email/MailServiceProvider.d.ts.map +1 -0
- package/dist/services/email/config.d.ts +9 -0
- package/dist/services/email/config.d.ts.map +1 -0
- package/dist/services/file-storage/FilesystemManager.d.ts +8 -0
- package/dist/services/file-storage/FilesystemManager.d.ts.map +1 -0
- package/dist/services/file-storage/FilesystemServiceProvider.d.ts +5 -0
- package/dist/services/file-storage/FilesystemServiceProvider.d.ts.map +1 -0
- package/dist/services/file-storage/config.d.ts +7 -0
- package/dist/services/file-storage/config.d.ts.map +1 -0
- package/dist/services/image-optimization/ImageManager.d.ts +16 -0
- package/dist/services/image-optimization/ImageManager.d.ts.map +1 -0
- package/dist/services/image-optimization/ImageServiceProvider.d.ts +5 -0
- package/dist/services/image-optimization/ImageServiceProvider.d.ts.map +1 -0
- package/dist/services/image-optimization/config.d.ts +7 -0
- package/dist/services/image-optimization/config.d.ts.map +1 -0
- package/dist/services/index.d.ts +37 -10
- package/dist/services/index.d.ts.map +1 -1
- package/dist/services/index.js +44 -2
- package/dist/services/index.js.map +159 -3
- package/dist/services/kernel-id/KernelId.d.ts +11 -0
- package/dist/services/kernel-id/KernelId.d.ts.map +1 -0
- package/dist/services/kernel-id/KernelIdServiceProvider.d.ts +2 -3
- package/dist/services/kernel-id/KernelIdServiceProvider.d.ts.map +1 -1
- package/dist/services/logging/LogManager.d.ts +28 -0
- package/dist/services/logging/LogManager.d.ts.map +1 -0
- package/dist/services/logging/LogServiceProvider.d.ts +13 -0
- package/dist/services/logging/LogServiceProvider.d.ts.map +1 -0
- package/dist/services/logging/LoggingRouter.d.ts.map +1 -1
- package/dist/services/logging/config.d.ts +9 -0
- package/dist/services/logging/config.d.ts.map +1 -0
- package/dist/services/middleware/MiddlewareRegistry.d.ts +11 -0
- package/dist/services/middleware/MiddlewareRegistry.d.ts.map +1 -0
- package/dist/services/middleware/MiddlewareServiceProvider.d.ts +5 -0
- package/dist/services/middleware/MiddlewareServiceProvider.d.ts.map +1 -0
- package/dist/services/pubsub/{BroadcastingServiceContainer.d.ts → BroadcastManager.d.ts} +7 -7
- package/dist/services/pubsub/BroadcastManager.d.ts.map +1 -0
- package/dist/services/pubsub/BroadcastServiceProvider.d.ts +5 -0
- package/dist/services/pubsub/BroadcastServiceProvider.d.ts.map +1 -0
- package/dist/services/pubsub/config.d.ts +7 -0
- package/dist/services/pubsub/config.d.ts.map +1 -0
- package/dist/services/queue/Job.d.ts.map +1 -1
- package/dist/services/queue/{QueueServiceContainer.d.ts → QueueManager.d.ts} +6 -7
- package/dist/services/queue/QueueManager.d.ts.map +1 -0
- package/dist/services/queue/QueueServiceProvider.d.ts +2 -5
- package/dist/services/queue/QueueServiceProvider.d.ts.map +1 -1
- package/dist/services/queue/config.d.ts +8 -0
- package/dist/services/queue/config.d.ts.map +1 -0
- package/dist/services/rate-limiter/{RateLimiterServiceContainer.d.ts → RateLimiter.d.ts} +10 -9
- package/dist/services/rate-limiter/RateLimiter.d.ts.map +1 -0
- package/dist/services/rate-limiter/RateLimiterServiceProvider.d.ts +2 -12
- package/dist/services/rate-limiter/RateLimiterServiceProvider.d.ts.map +1 -1
- package/dist/services/rate-limiter/config.d.ts +15 -0
- package/dist/services/rate-limiter/config.d.ts.map +1 -0
- package/dist/services/rate-limiter/drivers/RedisRateLimiterDriver.d.ts +6 -4
- package/dist/services/rate-limiter/drivers/RedisRateLimiterDriver.d.ts.map +1 -1
- package/dist/services/redis/RedisManager.d.ts +9 -0
- package/dist/services/redis/RedisManager.d.ts.map +1 -0
- package/dist/services/redis/RedisServiceProvider.d.ts +2 -5
- package/dist/services/redis/RedisServiceProvider.d.ts.map +1 -1
- package/dist/services/redis/config.d.ts +8 -0
- package/dist/services/redis/config.d.ts.map +1 -0
- package/dist/services/router/{ApiRouterServiceContainer.d.ts → ApiRouteDispatcher.d.ts} +8 -7
- package/dist/services/router/ApiRouteDispatcher.d.ts.map +1 -0
- package/dist/services/router/RouteServiceProvider.d.ts +18 -0
- package/dist/services/router/RouteServiceProvider.d.ts.map +1 -0
- package/dist/services/router/{ViewRouterServiceContainer.d.ts → ViewRouteDispatcher.d.ts} +6 -8
- package/dist/services/router/ViewRouteDispatcher.d.ts.map +1 -0
- package/dist/services/router/config.d.ts +25 -0
- package/dist/services/router/config.d.ts.map +1 -0
- package/dist/support/Repository.d.ts +15 -0
- package/dist/support/Repository.d.ts.map +1 -0
- package/dist/support/ServiceProvider.d.ts +13 -0
- package/dist/support/ServiceProvider.d.ts.map +1 -0
- package/dist/support/index.d.ts +5 -0
- package/dist/support/index.d.ts.map +1 -0
- package/dist/support/index.js +4 -0
- package/dist/support/index.js.map +10 -0
- package/dist/support/loadConfig.d.ts +4 -0
- package/dist/support/loadConfig.d.ts.map +1 -0
- package/dist/support/withDefaults.d.ts +13 -0
- package/dist/support/withDefaults.d.ts.map +1 -0
- package/package.json +5 -1
- package/dist/auth/AuthenticationServiceContainer.d.ts.map +0 -1
- package/dist/auth/AuthenticationServiceProvider.d.ts.map +0 -1
- package/dist/chunk-2pazt3hc.js +0 -4
- package/dist/chunk-4z53shav.js +0 -5
- package/dist/chunk-4z53shav.js.map +0 -15
- package/dist/chunk-63gmzy5r.js +0 -5
- package/dist/chunk-63gmzy5r.js.map +0 -12
- package/dist/chunk-7bggj8g7.js +0 -5
- package/dist/chunk-8jns0zmx.js +0 -4
- package/dist/chunk-atv6nybp.js +0 -4
- package/dist/chunk-b0ca3dzf.js +0 -5
- package/dist/chunk-jxpwexpz.js +0 -79
- package/dist/chunk-m0earq80.js +0 -5
- package/dist/chunk-m0earq80.js.map +0 -11
- package/dist/chunk-p5r0t9jh.js +0 -5
- package/dist/chunk-p5r0t9jh.js.map +0 -10
- package/dist/chunk-pf4r36w2.js +0 -5
- package/dist/chunk-pf4r36w2.js.map +0 -10
- package/dist/chunk-ppn0j67g.js +0 -4
- package/dist/chunk-ppn0j67g.js.map +0 -13
- package/dist/chunk-tjzbw6eg.js +0 -5
- package/dist/chunk-tvp3xgfq.js +0 -6
- package/dist/chunk-tyjhatbq.js +0 -4
- package/dist/chunk-v0qh5dqv.js +0 -75
- package/dist/chunk-v0qh5dqv.js.map +0 -416
- package/dist/chunk-vh6dnbty.js +0 -4
- package/dist/chunk-wed042aw.js +0 -4
- package/dist/chunk-ww5vyb4s.js +0 -4
- package/dist/chunk-xdk6y558.js +0 -5
- package/dist/chunk-xdk6y558.js.map +0 -10
- package/dist/chunk-xkrthw08.js +0 -23
- package/dist/chunk-xkrthw08.js.map +0 -10
- package/dist/chunk-y4q11zr2.js +0 -4
- package/dist/chunk-yyn0qk1w.js +0 -4
- package/dist/facades/FileStorage.d.ts.map +0 -1
- package/dist/facades/I18n.d.ts +0 -7
- package/dist/facades/I18n.d.ts.map +0 -1
- package/dist/http/MiddlewareServiceProvider.d.ts +0 -8
- package/dist/http/MiddlewareServiceProvider.d.ts.map +0 -1
- package/dist/i18n/I18nServiceContainer.d.ts +0 -13
- package/dist/i18n/I18nServiceContainer.d.ts.map +0 -1
- package/dist/i18n/I18nServiceProvider.d.ts +0 -13
- package/dist/i18n/I18nServiceProvider.d.ts.map +0 -1
- package/dist/services/ServiceContainer.d.ts +0 -7
- package/dist/services/ServiceContainer.d.ts.map +0 -1
- package/dist/services/ServiceProvider.d.ts +0 -4
- package/dist/services/ServiceProvider.d.ts.map +0 -1
- package/dist/services/Singleton.d.ts +0 -4
- package/dist/services/Singleton.d.ts.map +0 -1
- package/dist/services/cron/CronServiceContainer.d.ts +0 -13
- package/dist/services/cron/CronServiceContainer.d.ts.map +0 -1
- package/dist/services/cron/CronServiceProvider.d.ts +0 -10
- package/dist/services/cron/CronServiceProvider.d.ts.map +0 -1
- package/dist/services/email/EmailServiceContainer.d.ts +0 -8
- package/dist/services/email/EmailServiceContainer.d.ts.map +0 -1
- package/dist/services/email/EmailServiceProvider.d.ts +0 -9
- package/dist/services/email/EmailServiceProvider.d.ts.map +0 -1
- package/dist/services/file-storage/FileStorageServiceContainer.d.ts +0 -8
- package/dist/services/file-storage/FileStorageServiceContainer.d.ts.map +0 -1
- package/dist/services/file-storage/FileStorageServiceProvider.d.ts +0 -7
- package/dist/services/file-storage/FileStorageServiceProvider.d.ts.map +0 -1
- package/dist/services/image-optimization/ImageOptimizationServiceContainer.d.ts +0 -14
- package/dist/services/image-optimization/ImageOptimizationServiceContainer.d.ts.map +0 -1
- package/dist/services/image-optimization/ImageOptimizationServiceProvider.d.ts +0 -7
- package/dist/services/image-optimization/ImageOptimizationServiceProvider.d.ts.map +0 -1
- package/dist/services/kernel-id/KernelIdServiceContainer.d.ts +0 -8
- package/dist/services/kernel-id/KernelIdServiceContainer.d.ts.map +0 -1
- package/dist/services/logging/LoggingServiceContainer.d.ts +0 -22
- package/dist/services/logging/LoggingServiceContainer.d.ts.map +0 -1
- package/dist/services/logging/LoggingServiceProvider.d.ts +0 -9
- package/dist/services/logging/LoggingServiceProvider.d.ts.map +0 -1
- package/dist/services/middleware/MiddlewareServiceContainer.d.ts +0 -10
- package/dist/services/middleware/MiddlewareServiceContainer.d.ts.map +0 -1
- package/dist/services/pubsub/BroadcastingServiceContainer.d.ts.map +0 -1
- package/dist/services/pubsub/BroadcastingServiceProvider.d.ts +0 -7
- package/dist/services/pubsub/BroadcastingServiceProvider.d.ts.map +0 -1
- package/dist/services/queue/QueueServiceContainer.d.ts.map +0 -1
- package/dist/services/rate-limiter/RateLimiterServiceContainer.d.ts.map +0 -1
- package/dist/services/redis/RedisServiceContainer.d.ts +0 -10
- package/dist/services/redis/RedisServiceContainer.d.ts.map +0 -1
- package/dist/services/router/ApiRouterServiceContainer.d.ts.map +0 -1
- package/dist/services/router/ApiRouterServiceProvider.d.ts +0 -11
- package/dist/services/router/ApiRouterServiceProvider.d.ts.map +0 -1
- package/dist/services/router/ViewRouterServiceContainer.d.ts.map +0 -1
- package/dist/services/router/ViewRouterServiceProvider.d.ts +0 -13
- package/dist/services/router/ViewRouterServiceProvider.d.ts.map +0 -1
- package/dist/services/singleton/SingletonServiceContainer.d.ts +0 -8
- package/dist/services/singleton/SingletonServiceContainer.d.ts.map +0 -1
- package/dist/services/singleton/SingletonServiceProvider.d.ts +0 -7
- package/dist/services/singleton/SingletonServiceProvider.d.ts.map +0 -1
- /package/dist/{chunk-w54fj10r.js.map → chunk-6q2xys8x.js.map} +0 -0
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Lb as KY}from"./chunk-563jg281.js";import{Mb as T4,Ob as g4,Qb as _4,Vb as L0,Wb as X8,Yb as J1,Zb as A0,ac as P4,bc as z8,cc as I4,dc as B5,ec as F4,fc as O1,gc as b1,ic as oK,jc as B6,oc as D5,rc as y0,vc as eK}from"./chunk-0j8rgg32.js";import{Ic as u0}from"./chunk-k0rg0bh0.js";import{Lc as Q0}from"./chunk-vvp2dr94.js";import{Pc as $1,Qc as g0,Sc as Vz}from"./chunk-n5q0gwd9.js";var o4=g0((BB,n4)=>{var D6=0,l4=-3;function P5(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function qY(J,K){this.source=J,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=K,this.destLen=0,this.ltree=new P5,this.dtree=new P5}var d4=new P5,u4=new P5,C6=new Uint8Array(30),T6=new Uint16Array(30),p4=new Uint8Array(30),i4=new Uint16Array(30),OY=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),f4=new P5,M1=new Uint8Array(320);function r4(J,K,Y,X){var Z,Q;for(Z=0;Z<Y;++Z)J[Z]=0;for(Z=0;Z<30-Y;++Z)J[Z+Y]=Z/Y|0;for(Q=X,Z=0;Z<30;++Z)K[Z]=Q,Q+=1<<J[Z]}function MY(J,K){var Y;for(Y=0;Y<7;++Y)J.table[Y]=0;J.table[7]=24,J.table[8]=152,J.table[9]=112;for(Y=0;Y<24;++Y)J.trans[Y]=256+Y;for(Y=0;Y<144;++Y)J.trans[24+Y]=Y;for(Y=0;Y<8;++Y)J.trans[168+Y]=280+Y;for(Y=0;Y<112;++Y)J.trans[176+Y]=144+Y;for(Y=0;Y<5;++Y)K.table[Y]=0;K.table[5]=32;for(Y=0;Y<32;++Y)K.trans[Y]=Y}var m4=new Uint16Array(16);function I6(J,K,Y,X){var Z,Q;for(Z=0;Z<16;++Z)J.table[Z]=0;for(Z=0;Z<X;++Z)J.table[K[Y+Z]]++;J.table[0]=0;for(Q=0,Z=0;Z<16;++Z)m4[Z]=Q,Q+=J.table[Z];for(Z=0;Z<X;++Z)if(K[Y+Z])J.trans[m4[K[Y+Z]]++]=Z}function NY(J){if(!J.bitcount--)J.tag=J.source[J.sourceIndex++],J.bitcount=7;var K=J.tag&1;return J.tag>>>=1,K}function N1(J,K,Y){if(!K)return Y;while(J.bitcount<24)J.tag|=J.source[J.sourceIndex++]<<J.bitcount,J.bitcount+=8;var X=J.tag&65535>>>16-K;return J.tag>>>=K,J.bitcount-=K,X+Y}function R6(J,K){while(J.bitcount<24)J.tag|=J.source[J.sourceIndex++]<<J.bitcount,J.bitcount+=8;var Y=0,X=0,Z=0,Q=J.tag;do X=2*X+(Q&1),Q>>>=1,++Z,Y+=K.table[Z],X-=K.table[Z];while(X>=0);return J.tag=Q,J.bitcount-=Z,K.trans[Y+X]}function jY(J,K,Y){var X,Z,Q,w,$,W;X=N1(J,5,257),Z=N1(J,5,1),Q=N1(J,4,4);for(w=0;w<19;++w)M1[w]=0;for(w=0;w<Q;++w){var z=N1(J,3,0);M1[OY[w]]=z}I6(f4,M1,0,19);for($=0;$<X+Z;){var H=R6(J,f4);switch(H){case 16:var U=M1[$-1];for(W=N1(J,2,3);W;--W)M1[$++]=U;break;case 17:for(W=N1(J,3,3);W;--W)M1[$++]=0;break;case 18:for(W=N1(J,7,11);W;--W)M1[$++]=0;break;default:M1[$++]=H;break}}I6(K,M1,0,X),I6(Y,M1,X,Z)}function c4(J,K,Y){while(!0){var X=R6(J,K);if(X===256)return D6;if(X<256)J.dest[J.destLen++]=X;else{var Z,Q,w,$;X-=257,Z=N1(J,C6[X],T6[X]),Q=R6(J,Y),w=J.destLen-N1(J,p4[Q],i4[Q]);for($=w;$<w+Z;++$)J.dest[J.destLen++]=J.dest[$]}}}function EY(J){var K,Y,X;while(J.bitcount>8)J.sourceIndex--,J.bitcount-=8;if(K=J.source[J.sourceIndex+1],K=256*K+J.source[J.sourceIndex],Y=J.source[J.sourceIndex+3],Y=256*Y+J.source[J.sourceIndex+2],K!==(~Y&65535))return l4;J.sourceIndex+=4;for(X=K;X;--X)J.dest[J.destLen++]=J.source[J.sourceIndex++];return J.bitcount=0,D6}function FY(J,K){var Y=new qY(J,K),X,Z,Q;do{switch(X=NY(Y),Z=N1(Y,2,0),Z){case 0:Q=EY(Y);break;case 1:Q=c4(Y,d4,u4);break;case 2:jY(Y,Y.ltree,Y.dtree),Q=c4(Y,Y.ltree,Y.dtree);break;default:Q=l4}if(Q!==D6)throw Error("Data error")}while(!X);if(Y.destLen<Y.dest.length)if(typeof Y.dest.slice==="function")return Y.dest.slice(0,Y.destLen);else return Y.dest.subarray(0,Y.destLen);return Y.dest}MY(d4,u4);r4(C6,T6,4,3);r4(p4,i4,2,1);C6[28]=0;T6[28]=258;n4.exports=FY});var t4=g0((GB,a4)=>{var _Y=new Uint8Array(new Uint32Array([305419896]).buffer)[0]===18,s4=(J,K,Y)=>{let X=J[K];J[K]=J[Y],J[Y]=X},IY=(J)=>{let K=J.length;for(let Y=0;Y<K;Y+=4)s4(J,Y,Y+3),s4(J,Y+1,Y+2)},RY=(J)=>{if(_Y)IY(J)};a4.exports={swap32LE:RY}});var Y7=g0((LB,K7)=>{var e4=o4(),{swap32LE:DY}=t4();class J7{constructor(J){let K=typeof J.readUInt32BE==="function"&&typeof J.slice==="function";if(K||J instanceof Uint8Array){let Y;if(K)this.highStart=J.readUInt32LE(0),this.errorValue=J.readUInt32LE(4),Y=J.readUInt32LE(8),J=J.slice(12);else{let X=new DataView(J.buffer);this.highStart=X.getUint32(0,!0),this.errorValue=X.getUint32(4,!0),Y=X.getUint32(8,!0),J=J.subarray(12)}J=e4(J,new Uint8Array(Y)),J=e4(J,new Uint8Array(Y)),DY(J),this.data=new Uint32Array(J.buffer)}else({data:this.data,highStart:this.highStart,errorValue:this.errorValue}=J)}get(J){let K;if(J<0||J>1114111)return this.errorValue;if(J<55296||J>56319&&J<=65535)return K=(this.data[J>>5]<<2)+(J&31),this.data[K];if(J<=65535)return K=(this.data[2048+(J-55296>>5)]<<2)+(J&31),this.data[K];if(J<this.highStart)return K=this.data[2080+(J>>11)],K=this.data[K+(J>>5&63)],K=(K<<2)+(J&31),this.data[K];return this.data[this.data.length-4]}}K7.exports=J7});var X7=g0((H8)=>{var CY="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";(function(J){var K=typeof Uint8Array<"u"?Uint8Array:Array,Y=43,X=47,Z=48,Q=97,w=65,$=45,W=95;function z(A){var V=A.charCodeAt(0);if(V===Y||V===$)return 62;if(V===X||V===W)return 63;if(V<Z)return-1;if(V<Z+10)return V-Z+26+26;if(V<w+26)return V-w;if(V<Q+26)return V-Q+26}function H(A){var V,L,B,q,M,N;if(A.length%4>0)throw Error("Invalid string. Length must be a multiple of 4");var E=A.length;M=A.charAt(E-2)==="="?2:A.charAt(E-1)==="="?1:0,N=new K(A.length*3/4-M),B=M>0?A.length-4:A.length;var I=0;function F(j){N[I++]=j}for(V=0,L=0;V<B;V+=4,L+=3)q=z(A.charAt(V))<<18|z(A.charAt(V+1))<<12|z(A.charAt(V+2))<<6|z(A.charAt(V+3)),F((q&16711680)>>16),F((q&65280)>>8),F(q&255);if(M===2)q=z(A.charAt(V))<<2|z(A.charAt(V+1))>>4,F(q&255);else if(M===1)q=z(A.charAt(V))<<10|z(A.charAt(V+1))<<4|z(A.charAt(V+2))>>2,F(q>>8&255),F(q&255);return N}function U(A){var V,L=A.length%3,B="",q,M;function N(I){return CY.charAt(I)}function E(I){return N(I>>18&63)+N(I>>12&63)+N(I>>6&63)+N(I&63)}for(V=0,M=A.length-L;V<M;V+=3)q=(A[V]<<16)+(A[V+1]<<8)+A[V+2],B+=E(q);switch(L){case 1:q=A[A.length-1],B+=N(q>>2),B+=N(q<<4&63),B+="==";break;case 2:q=(A[A.length-2]<<8)+A[A.length-1],B+=N(q>>10),B+=N(q>>4&63),B+=N(q<<2&63),B+="=";break}return B}J.toByteArray=H,J.fromByteArray=U})(typeof H8>"u"?H8.base64js={}:H8)});var G7=g0((MB,B7)=>{var h6=40,y6=41,V8=39,k6=34,g6=92,G5=47,x6=44,b6=58,B8=42,lY=117,dY=85,uY=43,pY=/^[a-f0-9?-]+$/i;B7.exports=function(J){var K=[],Y=J,X,Z,Q,w,$,W,z,H,U=0,A=Y.charCodeAt(U),V=Y.length,L=[{nodes:K}],B=0,q,M="",N="",E="";while(U<V)if(A<=32){X=U;do X+=1,A=Y.charCodeAt(X);while(A<=32);if(w=Y.slice(U,X),Q=K[K.length-1],A===y6&&B)E=w;else if(Q&&Q.type==="div")Q.after=w,Q.sourceEndIndex+=w.length;else if(A===x6||A===b6||A===G5&&Y.charCodeAt(X+1)!==B8&&(!q||q&&q.type==="function"&&q.value!=="calc"))N=w;else K.push({type:"space",sourceIndex:U,sourceEndIndex:X,value:w});U=X}else if(A===V8||A===k6){X=U,Z=A===V8?"'":'"',w={type:"string",sourceIndex:U,quote:Z};do if($=!1,X=Y.indexOf(Z,X+1),~X){W=X;while(Y.charCodeAt(W-1)===g6)W-=1,$=!$}else Y+=Z,X=Y.length-1,w.unclosed=!0;while($);w.value=Y.slice(U+1,X),w.sourceEndIndex=w.unclosed?X:X+1,K.push(w),U=X+1,A=Y.charCodeAt(U)}else if(A===G5&&Y.charCodeAt(U+1)===B8){if(X=Y.indexOf("*/",U),w={type:"comment",sourceIndex:U,sourceEndIndex:X+2},X===-1)w.unclosed=!0,X=Y.length,w.sourceEndIndex=X;w.value=Y.slice(U+2,X),K.push(w),U=X+2,A=Y.charCodeAt(U)}else if((A===G5||A===B8)&&q&&q.type==="function"&&q.value==="calc")w=Y[U],K.push({type:"word",sourceIndex:U-N.length,sourceEndIndex:U+w.length,value:w}),U+=1,A=Y.charCodeAt(U);else if(A===G5||A===x6||A===b6)w=Y[U],K.push({type:"div",sourceIndex:U-N.length,sourceEndIndex:U+w.length,value:w,before:N,after:""}),N="",U+=1,A=Y.charCodeAt(U);else if(h6===A){X=U;do X+=1,A=Y.charCodeAt(X);while(A<=32);if(H=U,w={type:"function",sourceIndex:U-M.length,value:M,before:Y.slice(H+1,X)},U=X,M==="url"&&A!==V8&&A!==k6){X-=1;do if($=!1,X=Y.indexOf(")",X+1),~X){W=X;while(Y.charCodeAt(W-1)===g6)W-=1,$=!$}else Y+=")",X=Y.length-1,w.unclosed=!0;while($);z=X;do z-=1,A=Y.charCodeAt(z);while(A<=32);if(H<z){if(U!==z+1)w.nodes=[{type:"word",sourceIndex:U,sourceEndIndex:z+1,value:Y.slice(U,z+1)}];else w.nodes=[];if(w.unclosed&&z+1!==X)w.after="",w.nodes.push({type:"space",sourceIndex:z+1,sourceEndIndex:X,value:Y.slice(z+1,X)});else w.after=Y.slice(z+1,X),w.sourceEndIndex=X}else w.after="",w.nodes=[];U=X+1,w.sourceEndIndex=w.unclosed?X:U,A=Y.charCodeAt(U),K.push(w)}else B+=1,w.after="",w.sourceEndIndex=U+1,K.push(w),L.push(w),K=w.nodes=[],q=w;M=""}else if(y6===A&&B)U+=1,A=Y.charCodeAt(U),q.after=E,q.sourceEndIndex+=E.length,E="",B-=1,L[L.length-1].sourceEndIndex=U,L.pop(),q=L[B],K=q.nodes;else{X=U;do{if(A===g6)X+=1;X+=1,A=Y.charCodeAt(X)}while(X<V&&!(A<=32||A===V8||A===k6||A===x6||A===b6||A===G5||A===h6||A===B8&&q&&q.type==="function"&&q.value==="calc"||A===G5&&q.type==="function"&&q.value==="calc"||A===y6&&B));if(w=Y.slice(U,X),h6===A)M=w;else if((lY===w.charCodeAt(0)||dY===w.charCodeAt(0))&&uY===w.charCodeAt(1)&&pY.test(w.slice(2)))K.push({type:"unicode-range",sourceIndex:U,sourceEndIndex:X,value:w});else K.push({type:"word",sourceIndex:U,sourceEndIndex:X,value:w});U=X}for(U=L.length-1;U;U-=1)L[U].unclosed=!0,L[U].sourceEndIndex=Y.length;return L[0].nodes}});var q7=g0((NB,L7)=>{L7.exports=function J(K,Y,X){var Z,Q,w,$;for(Z=0,Q=K.length;Z<Q;Z+=1){if(w=K[Z],!X)$=Y(w,Z,K);if($!==!1&&w.type==="function"&&Array.isArray(w.nodes))J(w.nodes,Y,X);if(X)Y(w,Z,K)}}});var j7=g0((jB,N7)=>{function O7(J,K){var{type:Y,value:X}=J,Z,Q;if(K&&(Q=K(J))!==void 0)return Q;else if(Y==="word"||Y==="space")return X;else if(Y==="string")return Z=J.quote||"",Z+X+(J.unclosed?"":Z);else if(Y==="comment")return"/*"+X+(J.unclosed?"":"*/");else if(Y==="div")return(J.before||"")+X+(J.after||"");else if(Array.isArray(J.nodes)){if(Z=M7(J.nodes,K),Y!=="function")return Z;return X+"("+(J.before||"")+Z+(J.after||"")+(J.unclosed?"":")")}return X}function M7(J,K){var Y,X;if(Array.isArray(J)){Y="";for(X=J.length-1;~X;X-=1)Y=O7(J[X],K)+Y;return Y}return O7(J,K)}N7.exports=M7});var F7=g0((EB,E7)=>{var G8=45,L8=43,f6=46,iY=101,rY=69;function nY(J){var K=J.charCodeAt(0),Y;if(K===L8||K===G8){if(Y=J.charCodeAt(1),Y>=48&&Y<=57)return!0;var X=J.charCodeAt(2);if(Y===f6&&X>=48&&X<=57)return!0;return!1}if(K===f6){if(Y=J.charCodeAt(1),Y>=48&&Y<=57)return!0;return!1}if(K>=48&&K<=57)return!0;return!1}E7.exports=function(J){var K=0,Y=J.length,X,Z,Q;if(Y===0||!nY(J))return!1;if(X=J.charCodeAt(K),X===L8||X===G8)K++;while(K<Y){if(X=J.charCodeAt(K),X<48||X>57)break;K+=1}if(X=J.charCodeAt(K),Z=J.charCodeAt(K+1),X===f6&&Z>=48&&Z<=57){K+=2;while(K<Y){if(X=J.charCodeAt(K),X<48||X>57)break;K+=1}}if(X=J.charCodeAt(K),Z=J.charCodeAt(K+1),Q=J.charCodeAt(K+2),(X===iY||X===rY)&&(Z>=48&&Z<=57||(Z===L8||Z===G8)&&Q>=48&&Q<=57)){K+=Z===L8||Z===G8?3:2;while(K<Y){if(X=J.charCodeAt(K),X<48||X>57)break;K+=1}}return{number:J.slice(0,K),unit:J.slice(K)}}});var m6=g0((FB,R7)=>{var oY=G7(),_7=q7(),I7=j7();function m1(J){if(this instanceof m1)return this.nodes=oY(J),this;return new m1(J)}m1.prototype.toString=function(){return Array.isArray(this.nodes)?I7(this.nodes):""};m1.prototype.walk=function(J,K){return _7(this.nodes,J,K),this};m1.unit=F7();m1.walk=_7;m1.stringify=I7;R7.exports=m1});var T7=g0((_B,C7)=>{C7.exports=function(J){if(typeof J==="string")return D7(J);return c6(J)};function c6(J){if(!J||typeof J!=="object")return J;if(aY(J)||tY(J))return J;if(sY(J))return KX(J,c6);return YX(JX(J),function(K,Y){var X=D7(Y);return K[X]=c6(J[Y]),K},{})}function D7(J){return J.replace(/[_.-](\w|$)/g,function(K,Y){return Y.toUpperCase()})}var sY=Array.isArray||function(J){return Object.prototype.toString.call(J)==="[object Array]"},aY=function(J){return Object.prototype.toString.call(J)==="[object Date]"},tY=function(J){return Object.prototype.toString.call(J)==="[object RegExp]"},eY=Object.prototype.hasOwnProperty,JX=Object.keys||function(J){var K=[];for(var Y in J)if(eY.call(J,Y))K.push(Y);return K};function KX(J,K){if(J.map)return J.map(K);var Y=[];for(var X=0;X<J.length;X++)Y.push(K(J[X],X));return Y}function YX(J,K,Y){if(J.reduce)return J.reduce(K,Y);for(var X=0;X<J.length;X++)Y=K(Y,J[X],X);return Y}});var P7=g0((IB,XX)=>{XX.exports={black:"#000000",silver:"#c0c0c0",gray:"#808080",white:"#ffffff",maroon:"#800000",red:"#ff0000",purple:"#800080",fuchsia:"#ff00ff",green:"#008000",lime:"#00ff00",olive:"#808000",yellow:"#ffff00",navy:"#000080",blue:"#0000ff",teal:"#008080",aqua:"#00ffff",orange:"#ffa500",aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",blanchedalmond:"#ffebcd",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",limegreen:"#32cd32",linen:"#faf0e6",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",oldlace:"#fdf5e6",olivedrab:"#6b8e23",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",whitesmoke:"#f5f5f5",yellowgreen:"#9acd32",rebeccapurple:"#663399"}});var O8=g0((d7)=>{Object.defineProperty(d7,"__esModule",{value:!0});function r6(J){return J&&typeof J==="object"&&"default"in J?J.default:J}var h7=m6(),ZX=r6(h7),QX=r6(T7()),wX=r6(P7()),WX=function(K){if(K.type!=="string")return null;return K.value.replace(/\\([0-9a-f]{1,6})(?:\s|$)/gi,function(Y,X){return String.fromCharCode(parseInt(X,16))}).replace(/\\/g,"")},$X=/^(#(?:[0-9a-f]{3,4}){1,2})$/i,zX=/^(rgba?|hsla?|hwb|lab|lch|gray|color)$/,HX=function(K){if(K.type==="word"&&($X.test(K.value)||(K.value in wX)||K.value==="transparent"))return K.value;else if(K.type==="function"&&zX.test(K.value))return h7.stringify(K);return null},UX=/^(none)$/i,AX=/^(auto)$/i,VX=/(^-?[_a-z][_a-z0-9-]*$)/i,BX=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)$/i,GX=/^(0$|(?:[+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)(?=px$))/i,LX=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?(ch|em|ex|rem|vh|vw|vmin|vmax|cm|mm|in|pc|pt))$/i,qX=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?(?:deg|rad))$/i,OX=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?%)$/i,n6=function(K){return function(Y){return K(Y)?"<token>":null}},MX=function(K){return function(Y){return Y.type===K?Y.value:null}},S0=function(K,Y){if(Y===void 0)Y=String;return function(X){if(X.type!=="word")return null;var Z=X.value.match(K);if(Z===null)return null;var Q=Y(Z[1]);return Q}},h0=n6(function(J){return J.type==="space"}),y7=n6(function(J){return J.type==="div"&&J.value==="/"}),NX=n6(function(J){return J.type==="div"&&J.value===","}),jX=MX("word"),o6=S0(UX),u6=S0(AX),q5=S0(BX,Number),n0=S0(GX,Number),C1=S0(LX),k7=S0(qX,function(J){return J.toLowerCase()}),s6=S0(OX),q8=S0(VX),EX=WX,v5=HX,p6=S0(/^(none|underline|line-through)$/i),FX=function(K){var Y=K.expect(q5);if(K.hasTokens())K.expect(y7),Y/=K.expect(q5);return{aspectRatio:Y}},_X=S0(/^(solid|dashed|dotted)$/),IX=1,RX="black",DX="solid",CX=function(K){var Y,X,Z;if(K.matches(o6))return K.expectEmpty(),{borderWidth:0,borderColor:"black",borderStyle:"solid"};var Q=0;while(Q<3&&K.hasTokens()){if(Q!==0)K.expect(h0);if(Y===void 0&&K.matches(n0,C1))Y=K.lastValue;else if(X===void 0&&K.matches(v5))X=K.lastValue;else if(Z===void 0&&K.matches(_X))Z=K.lastValue;else K.throw();Q+=1}if(K.expectEmpty(),Y===void 0)Y=IX;if(X===void 0)X=RX;if(Z===void 0)Z=DX;return{borderWidth:Y,borderColor:X,borderStyle:Z}},h5=function(K){var Y=K.types,X=Y===void 0?[n0,C1,s6]:Y,Z=K.directions,Q=Z===void 0?["Top","Right","Bottom","Left"]:Z,w=K.prefix,$=w===void 0?"":w,W=K.suffix,z=W===void 0?"":W;return function(H){var U,A=[];A.push(H.expect.apply(H,X));while(A.length<4&&H.hasTokens())H.expect(h0),A.push(H.expect.apply(H,X));H.expectEmpty();var V=A[0],L=A[1],B=L===void 0?V:L,q=A[2],M=q===void 0?V:q,N=A[3],E=N===void 0?B:N,I=function(j){return""+$+Q[j]+z};return U={},U[I(0)]=V,U[I(1)]=B,U[I(2)]=M,U[I(3)]=E,U}},g7=function(K){var Y=K.expect(n0),X=K.matches(h0)?K.expect(n0):Y;return K.expectEmpty(),{width:Y,height:X}},x7=function(K){var Y,X,Z,Q;if(K.matches(o6))return K.expectEmpty(),{offset:{width:0,height:0},radius:0,color:"black"};var w=!1;while(K.hasTokens()){if(w)K.expect(h0);if(Y===void 0&&K.matches(n0,C1))if(Y=K.lastValue,K.expect(h0),X=K.expect(n0,C1),K.saveRewindPoint(),K.matches(h0)&&K.matches(n0,C1))Z=K.lastValue;else K.rewind();else if(Q===void 0&&K.matches(v5))Q=K.lastValue;else K.throw();w=!0}if(Y===void 0)K.throw();return{offset:{width:Y,height:X},radius:Z!==void 0?Z:0,color:Q!==void 0?Q:"black"}},TX=function(K){var Y=x7(K),X=Y.offset,Z=Y.radius,Q=Y.color;return{shadowOffset:X,shadowRadius:Z,shadowColor:Q,shadowOpacity:1}},PX=1,SX=1,vX=0,hX=function(K){var Y,X,Z;if(K.matches(o6))return K.expectEmpty(),{flexGrow:0,flexShrink:0,flexBasis:"auto"};if(K.saveRewindPoint(),K.matches(u6)&&!K.hasTokens())return{flexGrow:1,flexShrink:1,flexBasis:"auto"};K.rewind();var Q=0;while(Q<2&&K.hasTokens()){if(Q!==0)K.expect(h0);if(Y===void 0&&K.matches(q5))if(Y=K.lastValue,K.saveRewindPoint(),K.matches(h0)&&K.matches(q5))X=K.lastValue;else K.rewind();else if(Z===void 0&&K.matches(n0,C1,s6))Z=K.lastValue;else if(Z===void 0&&K.matches(u6))Z="auto";else K.throw();Q+=1}if(K.expectEmpty(),Y===void 0)Y=PX;if(X===void 0)X=SX;if(Z===void 0)Z=vX;return{flexGrow:Y,flexShrink:X,flexBasis:Z}},yX=S0(/(nowrap|wrap|wrap-reverse)/),kX=S0(/(row|row-reverse|column|column-reverse)/),gX="nowrap",xX="row",bX=function(K){var Y,X,Z=0;while(Z<2&&K.hasTokens()){if(Z!==0)K.expect(h0);if(Y===void 0&&K.matches(yX))Y=K.lastValue;else if(X===void 0&&K.matches(kX))X=K.lastValue;else K.throw();Z+=1}if(K.expectEmpty(),Y===void 0)Y=gX;if(X===void 0)X=xX;return{flexWrap:Y,flexDirection:X}},b7=function(K){var Y;if(K.matches(EX))Y=K.lastValue;else{Y=K.expect(q8);while(K.hasTokens()){K.expect(h0);var X=K.expect(q8);Y+=" "+X}}return K.expectEmpty(),{fontFamily:Y}},fX=S0(/^(normal)$/),mX=S0(/^(italic)$/),cX=S0(/^([1-9]00|bold)$/),lX=S0(/^(small-caps)$/),dX="normal",uX="normal",pX=[],iX=function(K){var Y,X,Z,Q,w=0;while(w<3&&K.hasTokens()){if(K.matches(fX));else if(Y===void 0&&K.matches(mX))Y=K.lastValue;else if(X===void 0&&K.matches(cX))X=K.lastValue;else if(Z===void 0&&K.matches(lX))Z=[K.lastValue];else break;K.expect(h0),w+=1}var $=K.expect(n0,C1);if(K.matches(y7))Q=K.expect(n0,C1);K.expect(h0);var W=b7(K),z=W.fontFamily;if(Y===void 0)Y=dX;if(X===void 0)X=uX;if(Z===void 0)Z=pX;var H={fontStyle:Y,fontWeight:X,fontVariant:Z,fontSize:$,fontFamily:z};if(Q!==void 0)H.lineHeight=Q;return H},rX=function(K){var Y=[K.expect(q8)];while(K.hasTokens())K.expect(h0),Y.push(K.expect(q8));return{fontVariant:Y}},nX=S0(/(flex-(?:start|end)|center|stretch|space-(?:between|around))/),oX=S0(/(flex-(?:start|end)|center|space-(?:between|around|evenly))/),sX=function(K){var Y=K.expect(nX),X;if(K.hasTokens())K.expect(h0),X=K.expect(oX);else X="stretch";return K.expectEmpty(),{alignContent:Y,justifyContent:X}},aX=S0(/^(solid|double|dotted|dashed)$/),tX="none",eX="solid",JZ="black",KZ=function(K){var Y,X,Z,Q=!1;while(K.hasTokens()){if(Q)K.expect(h0);if(Y===void 0&&K.matches(p6)){var w=[K.lastValue.toLowerCase()];if(K.saveRewindPoint(),w[0]!=="none"&&K.matches(h0)&&K.matches(p6))w.push(K.lastValue.toLowerCase()),w.sort().reverse();else K.rewind();Y=w.join(" ")}else if(X===void 0&&K.matches(aX))X=K.lastValue;else if(Z===void 0&&K.matches(v5))Z=K.lastValue;else K.throw();Q=!0}return{textDecorationLine:Y!==void 0?Y:tX,textDecorationColor:Z!==void 0?Z:JZ,textDecorationStyle:X!==void 0?X:eX}},YZ=function(K){var Y=[],X=!1;while(K.hasTokens()){if(X)K.expect(h0);Y.push(K.expect(p6).toLowerCase()),X=!0}return Y.sort().reverse(),{textDecorationLine:Y.join(" ")}},XZ=function(K){var Y=x7(K),X=Y.offset,Z=Y.radius,Q=Y.color;return{textShadowOffset:X,textShadowRadius:Z,textShadowColor:Q}},a6=function(K){return function(Y){var X=Y.expect(K);return Y.expectEmpty(),X}},l6=a6(q5),S7=a6(n0),L5=a6(k7),t6=function(K){return function(Y,X){return function(Z){var Q,w,$=Z.expect(K),W;if(Z.hasTokens())Z.expect(NX),W=Z.expect(K);else if(X!==void 0)W=X;else return $;return Z.expectEmpty(),[(Q={},Q[Y+"Y"]=W,Q),(w={},w[Y+"X"]=$,w)]}}},ZZ=t6(q5),QZ=t6(n0),wZ=t6(k7),WZ={perspective:l6,scale:ZZ("scale"),scaleX:l6,scaleY:l6,translate:QZ("translate",0),translateX:S7,translateY:S7,rotate:L5,rotateX:L5,rotateY:L5,rotateZ:L5,skewX:L5,skewY:L5,skew:wZ("skew","0deg")},$Z=function(K){var Y=[],X=!1;while(K.hasTokens()){if(X)K.expect(h0);var Z=K.expectFunction(),Q=Z.functionName,w=WZ[Q](Z);if(!Array.isArray(w)){var $;w=[($={},$[Q]=w,$)]}Y=w.concat(Y),X=!0}return{transform:Y}},zZ=function(K){return{backgroundColor:K.expect(v5)}},HZ=h5({types:[v5],prefix:"border",suffix:"Color"}),UZ=h5({directions:["TopLeft","TopRight","BottomRight","BottomLeft"],prefix:"border",suffix:"Radius"}),AZ=h5({prefix:"border",suffix:"Width"}),VZ=h5({types:[n0,C1,s6,u6],prefix:"margin"}),BZ=h5({prefix:"padding"}),GZ=function(K){return{fontWeight:K.expect(jX)}},LZ=function(K){return{shadowOffset:g7(K)}},qZ=function(K){return{textShadowOffset:g7(K)}},f7={aspectRatio:FX,background:zZ,border:CX,borderColor:HZ,borderRadius:UZ,borderWidth:AZ,boxShadow:TX,flex:hX,flexFlow:bX,font:iX,fontFamily:b7,fontVariant:rX,fontWeight:GZ,margin:VZ,padding:BZ,placeContent:sX,shadowOffset:LZ,textShadow:XZ,textShadowOffset:qZ,textDecoration:KZ,textDecorationLine:YZ,transform:$Z},i6;if(Bun.env.NODE_ENV!=="production")i6=["aspectRatio","elevation","flexGrow","flexShrink","opacity","shadowOpacity","zIndex"];var OZ=i6!=null?new RegExp(i6.join("|")):null,d6="SYMBOL_MATCH",MZ=function(){function J(Y,X){this.index=0,this.nodes=Y,this.functionName=X!=null?X.value:null,this.lastValue=null,this.rewindIndex=-1}var K=J.prototype;return K.hasTokens=function(){return this.index<=this.nodes.length-1},K[d6]=function(){if(!this.hasTokens())return null;var Y=this.nodes[this.index];for(var X=0;X<arguments.length;X+=1){var Z=X<0||arguments.length<=X?void 0:arguments[X],Q=Z(Y);if(Q!==null)return this.index+=1,this.lastValue=Q,Q}return null},K.matches=function(){return this[d6].apply(this,arguments)!==null},K.expect=function(){var X=this[d6].apply(this,arguments);return X!==null?X:this.throw()},K.matchesFunction=function(){var X=this.nodes[this.index];if(X.type!=="function")return null;var Z=new J(X.nodes,X);return this.index+=1,this.lastValue=null,Z},K.expectFunction=function(){var X=this.matchesFunction();return X!==null?X:this.throw()},K.expectEmpty=function(){if(this.hasTokens())this.throw()},K.throw=function(){throw Error("Unexpected token type: "+this.nodes[this.index].type)},K.saveRewindPoint=function(){this.rewindIndex=this.index},K.rewind=function(){if(this.rewindIndex===-1)throw Error("Internal error");this.index=this.rewindIndex,this.lastValue=null},J}(),NZ=/^([+-]?(?:\d*\.)?\d+(?:e[+-]?\d+)?)(?:px)?$/i,jZ=/^[+-]?(?:\d*\.\d*|[1-9]\d*)(?:e[+-]?\d+)?$/i,EZ=/^true|false$/i,FZ=/^null$/i,_Z=/^undefined$/i,m7=function(K,Y){if(Bun.env.NODE_ENV!=="production"){var X=!OZ.test(K),Z=jZ.test(Y);if(X&&Z)console.warn('Expected style "'+K+": "+Y+'" to contain units');if(!X&&Y!=="0"&&!Z)console.warn('Expected style "'+K+": "+Y+'" to be unitless')}var Q=Y.match(NZ);if(Q!==null)return Number(Q[1]);var w=Y.match(EZ);if(w!==null)return w[0].toLowerCase()==="true";var $=Y.match(FZ);if($!==null)return null;var W=Y.match(_Z);if(W!==null)return;return Y},v7=function(K,Y){var X=ZX(Y),Z=new MZ(X.nodes);return f7[K](Z)},IZ=Bun.env.NODE_ENV==="production"?v7:function(J,K){try{return v7(J,K)}catch(Y){throw Error('Failed to parse declaration "'+J+": "+K+'"')}},c7=function(K,Y,X){var Z,Q=X===!1||!(K in f7),w=Y.trim(),$=Q?(Z={},Z[K]=m7(K,w),Z):IZ(K,w);return $},l7=function(K){var Y=/^--\w+/.test(K);if(Y)return K;return QX(K)},RZ=function(K,Y){if(Y===void 0)Y=[];return K.reduce(function(X,Z){var Q=l7(Z[0]),w=Z[1],$=Y.indexOf(Q)===-1;return Object.assign(X,c7(Q,w,$))},{})};d7.default=RZ;d7.getPropertyName=l7;d7.getStylesForProperty=c7;d7.transformRawValue=m7});var p7=g0((u7,M8)=>{/*!
|
|
3
|
+
* https://github.com/gilmoreorless/css-background-parser
|
|
4
|
+
* Copyright © 2015 Gilmore Davidson under the MIT license: http://gilmoreorless.mit-license.org/
|
|
5
|
+
*/(function(J){function K(w){if(!(this instanceof K))return new K;this.backgrounds=w||[]}K.prototype.toString=function(){return this.backgrounds.join(", ")};function Y(w){if(!(this instanceof Y))return new Y(w);w=w||{};var $=this;function W(z,H){$[z]=z in w?w[z]:H}W("color",""),W("image","none"),W("attachment","scroll"),W("clip","border-box"),W("origin","padding-box"),W("position","0% 0%"),W("repeat","repeat"),W("size","auto")}Y.prototype.toString=function(){var w=[this.image,this.repeat,this.attachment,this.position+" / "+this.size,this.origin,this.clip];if(this.color)w.unshift(this.color);return w.join(" ")},J.BackgroundList=K,J.Background=Y;function X(w){var $=[],W=/[,\(\)]/,z=0,H="";if(w==null)return $;while(w.length){var U=W.exec(w);if(!U)break;var A=U[0],V=!1;switch(A){case",":if(!z)$.push(H.trim()),H="",V=!0;break;case"(":z++;break;case")":z--;break}var L=U.index+1;H+=w.slice(0,V?L-1:L),w=w.slice(L)}if(H.length||w.length)$.push((H+w).trim());return $}function Z(w){return w.trim()}function Q(w){return(w||"").split(",").map(Z)}J.parseElementStyle=function(w){var $=new K;if(w==null)return $;var W=X(w.backgroundImage),z=w.backgroundColor,H=Q(w.backgroundAttachment),U=Q(w.backgroundClip),A=Q(w.backgroundOrigin),V=Q(w.backgroundPosition),L=Q(w.backgroundRepeat),B=Q(w.backgroundSize),q;for(var M=0,N=W.length;M<N;M++){if(q=new Y({image:W[M],attachment:H[M%H.length],clip:U[M%U.length],origin:A[M%A.length],position:V[M%V.length],repeat:L[M%L.length],size:B[M%B.length]}),M===N-1)q.color=z;$.backgrounds.push(q)}return $}})(function(J){if(typeof M8<"u"&&u7!==void 0)return u7;return J.cssBgParser={}}(u7))});var r7=g0((DB,i7)=>{var SZ=/,(?![^\(]*\))/,vZ=/\s(?![^(]*\))/,hZ=/^[0-9]+[a-zA-Z%]+?$/,yZ=(J)=>{let K=J.split(vZ),Y=K.includes("inset"),X=K.slice(-1)[0],Z=!gZ(X)?X:void 0,Q=K.filter((H)=>H!=="inset").filter((H)=>H!==Z).map(xZ),[w,$,W,z]=Q;return{inset:Y,offsetX:w,offsetY:$,blurRadius:W,spreadRadius:z,color:Z}},kZ=(J)=>{let{inset:K,offsetX:Y=0,offsetY:X=0,blurRadius:Z=0,spreadRadius:Q,color:w}=J||{};return[K?"inset":null,Y,X,Z,Q,w].filter(($)=>$!==null&&$!==void 0).map(bZ).map(($)=>(""+$).trim()).join(" ")},gZ=(J)=>J==="0"||hZ.test(J),xZ=(J)=>{if(!/px$/.test(J)&&J!=="0")return J;let K=parseFloat(J);return!isNaN(K)?K:J},bZ=(J)=>typeof J==="number"&&J!==0?J+"px":J,fZ=(J)=>J.split(SZ).map((K)=>K.trim()).map(yZ),mZ=(J)=>J.map(kZ).join(", ");i7.exports={parse:fZ,stringify:mZ}});var o7=g0((CB,n7)=>{n7.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var a7=g0((TB,s7)=>{var cZ=new RegExp("[^#a-f\\d]","gi"),lZ=new RegExp("^#?[a-f\\d]{3}[a-f\\d]?$|^#?[a-f\\d]{6}([a-f\\d]{2})?$","i");s7.exports=(J,K={})=>{if(typeof J!=="string"||cZ.test(J)||!lZ.test(J))throw TypeError("Expected a valid hex string");J=J.replace(/^#/,"");let Y=1;if(J.length===8)Y=Number.parseInt(J.slice(6,8),16)/255,J=J.slice(0,6);if(J.length===4)Y=Number.parseInt(J.slice(3,4).repeat(2),16)/255,J=J.slice(0,3);if(J.length===3)J=J[0]+J[0]+J[1]+J[1]+J[2]+J[2];let X=Number.parseInt(J,16),Z=X>>16,Q=X>>8&255,w=X&255,$=typeof K.alpha==="number"?K.alpha:Y;if(K.format==="array")return[Z,Q,w,$];if(K.format==="css"){let W=$===1?"":` / ${Number(($*100).toFixed(2))}%`;return`rgb(${Z} ${Q} ${w}${W})`}return{red:Z,green:Q,blue:w,alpha:$}}});var X2=g0((SB,Y2)=>{/*!
|
|
6
|
+
* escape-html
|
|
7
|
+
* Copyright(c) 2012-2013 TJ Holowaychuk
|
|
8
|
+
* Copyright(c) 2015 Andreas Lubbe
|
|
9
|
+
* Copyright(c) 2015 Tiancheng "Timothy" Gu
|
|
10
|
+
* MIT Licensed
|
|
11
|
+
*/var zQ=/["'&<>]/;Y2.exports=HQ;function HQ(J){var K=""+J,Y=zQ.exec(K);if(!Y)return K;var X,Z="",Q=0,w=0;for(Q=Y.index;Q<K.length;Q++){switch(K.charCodeAt(Q)){case 34:X=""";break;case 38:X="&";break;case 39:X="'";break;case 60:X="<";break;case 62:X=">";break;default:continue}if(w!==Q)Z+=K.substring(w,Q);w=Q+1,Z+=X}return w!==Q?Z+K.substring(w,Q):Z}});class D0{static getFacadeAccessor(){throw Error(`Facade [${this.name}] does not implement getFacadeAccessor().`)}static getFacadeRoot(){return Q0(this.getFacadeAccessor())}}import{AsyncLocalStorage as XY}from"async_hooks";class z6{config;static token="broadcast";publishCb;context=new XY;constructor(J){this.config=J}get channels(){return this.config.channels}onPublish(J){this.publishCb=J}publish(...J){let[K,Y,X]=J;this.publishCb(K,Y,X)}async handleMessage(J,K){let Y=JSON.parse(K);if(Y.type==="subscribe"){let X=Object.entries(this.channels).sort(([Z],[Q])=>Z.length-Q.length);for(let[Z,Q]of X){let w=new URLPattern({pathname:Z});if(w.test({pathname:Y.topic})){let $=w.exec({pathname:Y.topic})?.pathname.groups,W=new Q;if(await W.subscribe.call(W,$))J.subscribe(Y.topic);break}}}if(Y.type==="broadcast")J.publish(Y.topic,JSON.stringify({topic:Y.topic,data:Y.payload}));if(Y.type==="unsubscribe")J.unsubscribe(Y.topic)}run(J,K){let Y=J.get("Cookie"),X=new Map;if(Y){let Z=Y.split(";");for(let Q of Z){let[w,$]=Q.split("=");X.set(w.trim(),$.trim())}}this.context.run({headers:J,cookies:X},K)}}class $8 extends D0{static getFacadeAccessor(){return z6}static channel(J,K){let Y=this.getFacadeRoot(),X=Y.channels[J];if(!X)return console.error(`Channel ${J} not found`),{publish:()=>{}};let Z=new X;return{publish:(Q,w=!1)=>{let $=b1(J,K);Y.publish($,JSON.stringify({topic:$,data:Z.publish(Q)}),w)}}}}class f1 extends D0{static getFacadeAccessor(){return y0}static async user(){let J=L0.getStore(),K=$8.getFacadeRoot().context.getStore(),Y="",X="";if(J?.req)Y=J.req.cookies.get("access_token"),X=J.req.headers.get("User-Agent");if(K?.cookies)X=K.headers.get("User-Agent"),Y=K.cookies.get("access_token");let Z=J?.user;if(!Z)Z=(await this.getFacadeRoot().getSession(Y,X))?.user,J?.setUser(Z);if(Z)return Z;throw new F4}static async guard(J){let K=await f1.user();if(!K)throw new z8;try{if(!await J(K))throw new z8}catch(Y){throw new z8}}static async guardSafe(J){let K=await f1.user();if(!K)return!1;try{return await J(K)}catch(Y){return!1}}static async authenticate(J){return await this.getFacadeRoot().authenticate(J)}static async createMagicLink(J){return await this.getFacadeRoot().createMagicLinkToken(J)}}class V5 extends D0{static getFacadeAccessor(){return u0}static getSupportedLocales(){return this.getFacadeRoot().supportedLocales}static getDefaultLocale(){return this.getFacadeRoot().defaultLocale}static locale(){let J=this.getFacadeRoot(),K=L0.getStore();if(K)return J.detectLocale(K.req);return J.defaultLocale}static setLocale(J=V5.locale()){let K=this.getFacadeRoot(),Y=J;if(!K.supportedLocales.includes(J))Y=K.defaultLocale;return L0.getStore().setCookie("i18n-locale",Y,{expires:new Date(Date.now()+31536000000),secure:!1,httpOnly:!1}),Y}}import QY from"sharp";import{Buffer as wY}from"buffer";class H6{async read(J){let K=typeof J==="string"?{name:J}:J,Y=await this.fetch({name:K.name,bucket:K.bucket});if(!Y.ok)throw new B5(K.name);let X=Y.headers.get("Content-Type")??"application/octet-stream",Z=Y.headers.get("ETag")??void 0,Q=Y.headers.get("Last-Modified"),w=Q?new Date(Q):void 0;if(K.range){let z=await Y.blob();return{body:z,start:0,end:z.size-1,total:z.size,partial:!1,type:X,etag:Z,lastModified:w,name:K.name}}let $=Number(Y.headers.get("Content-Length")),W=Number.isFinite($)?$:0;return{body:Y.body,start:0,end:W-1,total:W,partial:!1,type:X,etag:Z,lastModified:w,name:K.name}}async size(J){let K=typeof J==="string"?J:J.name,Y=typeof J==="string"?void 0:J.bucket,X=await this.fetch({name:K,bucket:Y});if(!X.ok)throw new B5(K);let Z=Number(X.headers.get("Content-Length"));if(Number.isFinite(Z))return await X.body?.cancel(),Z;return(await X.blob()).size}}import{readdir as ZY}from"fs/promises";class U6 extends H6{folderPath;constructor(J=`${process.env.ROOT_DIR}/storage`){super();this.folderPath=J}async put(J){let K,Y;if(J instanceof Blob)K=J,Y=`${Bun.randomUUIDv7()}.${J.type.split("/")[1].split(";")[0]}`;else K=J.body,Y=J.name;let X=K instanceof Buffer?K:K instanceof Blob||K instanceof File?Buffer.from(await K.arrayBuffer()):"",Z=`${this.folderPath}/${Y}`;return await Bun.write(Z,X),Y}async fetch(J){let K=process.env.BUCKET_NAME,Y;if(typeof J==="string")Y=J;else K=J.bucket??K,Y=J.name;if(!Y)throw Error("Object name has to be specified");let X=`${this.folderPath}/${Y}`,Z=Bun.file(X),Q=Bun.file(X).stream(),w=new Date(Z.lastModified).toUTCString();return new Response(Q,{headers:{"Content-Type":Z.type,"Content-Length":String(Z.size),"Cache-Control":"private, max-age=12000, must-revalidate","Last-Modified":w}})}async read(J){let K=typeof J==="string"?{name:J}:J,{name:Y,range:X=null}=K;if(!Y)throw Error("Object name has to be specified");let Z=Bun.file(`${this.folderPath}/${Y}`);if(!await Z.exists())throw new B5(Y);let Q=Z.size,w=X?_4(X,Q):null;if(X&&!w)throw new I4(Q);let $=w?.start??0,W=w?w.end:Q-1;return{body:w?Z.slice($,W+1):Z,start:$,end:W,total:Q,partial:Boolean(w),type:Z.type||"application/octet-stream",lastModified:new Date(Z.lastModified),name:Y}}async size(J){let K=typeof J==="string"?J:J.name,Y=Bun.file(`${this.folderPath}/${K}`);if(!await Y.exists())throw new B5(K);return Y.size}async list(){return await ZY(this.folderPath)}}function VV(J){return J}function R4(){return{driver:new U6}}class A6{static token="filesystem";driver;constructor(J={}){this.driver=J.driver??R4().driver}}class D4 extends D0{static getFacadeAccessor(){return A6}static async put(J){return this.getFacadeRoot().driver.put(J)}static async metadata(J){let K=wY.from(await J.arrayBuffer());try{return await QY(K).metadata()}catch{return{}}}static async fetch(J){return this.getFacadeRoot().driver.fetch(J)}static async read(J,K={}){let Y=typeof J==="string"?{name:J}:{...J},X="range"in K?K.range??null:Y.range!==void 0?Y.range:L0.getStore()?.rangeRequest??null;return this.getFacadeRoot().driver.read({...Y,range:X})}static list(J){return this.getFacadeRoot().driver.list(J)}static delete(){}}function C4(J){return Object.fromEntries(Object.entries(J).filter(([,K])=>{return K!==null&&K!==void 0}))}class V6 extends A0{schema={email:{required:"Email is required",string:"Invalid email",email:"Invalid email"},password:{required:"Password is required"}}}class S4 extends A0{schema={email:{required:"Email is required",email:"Invalid email"}}}class v4 extends A0{schema={password:{required:"Password is required",password:"Invalid password"}}}class k0 extends T4{async me(){let J=await f1.user();if(!J)throw new P4;return J}async verifyEmail(J=new A0){let K=await J.input(),{userProvider:Y}=Q0(y0),X=await Y.findUserByVerificationToken(K.get("token"));if(!X)return{email:null};return await Y.verifyUser(X.email),{email:X.email}}async signInWithMagicLink(J=new A0){let K=Q0(y0),{userProvider:Y}=K,X=J.search.get("token"),Z=decodeURIComponent(J.search.get("email")).toLowerCase().trim(),Q=null;try{Q=await Y.findUserMagicLinkToken({email:Z,token:X})}catch(W){return console.log(W),{error:JSON.stringify(W)}}if(!Q)return{error:"Invalid token"};await Y.verifyUser(Z),await Y.deleteMagicLinkToken(Z);let w=await K.createOrUpdateSession({email:Z}),$=new URL(J.rawRequest.url);return J.ctx().setCookie("access_token",w.token,{expires:w.expiresAt,secure:!$.origin.includes("localhost"),httpOnly:!0}),await K.config.onSignIn(w,J.search.toJSON()),{session:w}}async signInWithPinV2(J=new A0){let K=Q0(y0),{userProvider:Y}=K,X=await J.input(),{email:Z,pin:Q}=X.toJSON(),w=Z.toLowerCase().trim();if(!await Y.findUserMagicLinkToken({email:w,pin:Q}))throw new J1({pin:["Invalid pin"]});await Y.deleteMagicLinkToken(w),await Y.verifyUser(w);let W=await K.createOrUpdateSessionV2({email:w}),z=new URL(J.rawRequest.url);return J.ctx().setCookie("access_token",W.token,{expires:W.expiresAt,secure:!z.origin.includes("localhost"),httpOnly:!0}),await K.config.onSignIn(W,J.search.toJSON()),W}async signInWithPin(J=new A0){let K=Q0(y0),{userProvider:Y}=K,X=await J.input(),{email:Z,pin:Q}=X.toJSON(),w=Z.toLowerCase().trim();if(!await Y.findUserMagicLinkToken({email:w,pin:Q}))throw new J1({pin:["Invalid pin"]});await Y.deleteMagicLinkToken(w),await Y.verifyUser(w);let W=await K.createOrUpdateSession({email:w}),z=new URL(J.rawRequest.url);return J.ctx().setCookie("access_token",W.token,{expires:W.expiresAt,secure:!z.origin.includes("localhost"),httpOnly:!0}),await K.config.onSignIn(W,J.search.toJSON()),{session:W}}async signInV2(J=new V6){let K=new URL(J.rawRequest.url),Y=await J.input(),{email:X,password:Z}=Y.toJSON(),Q=X.toLowerCase().trim(),w=Q0(y0),$=await w.userProvider.findUserByEmailAddress(Q,w.config.verifyEmail);if(!$)throw new J1({invalid_credentials:["Invalid credentials"]});if(!await w.config.verifyPassword(Z,$.password))throw new J1({invalid_credentials:["Invalid credentials"]});let z=await w.createOrUpdateSessionV2({email:$.email,id:$.id});J.ctx().setCookie("access_token",z.token,{expires:z.expiresAt,secure:!K.origin.includes("localhost"),httpOnly:!0}),await w.config.onSignIn($,J.search.toJSON());let{password:H,...U}=$;return U}async signIn(J=new V6){let K=await J.input(),{email:Y,password:X}=K.toJSON(),Z=Y.toLowerCase().trim(),Q=Q0(y0),w=await Q.userProvider.findUserByEmailAddress(Z,Q.config.verifyEmail);if(!w)throw new J1({invalid_credentials:["Invalid credentials"]});if(!await Q.config.verifyPassword(X,w.password))throw new J1({invalid_credentials:["Invalid credentials"]});let W=await Q.createOrUpdateSession({email:w.email,id:w.id}),z=new URL(J.rawRequest.url);J.ctx().setCookie("access_token",W.token,{expires:W.expiresAt,secure:!z.origin.includes("localhost"),httpOnly:!0}),await Q.config.onSignIn(w,J.search.toJSON());let{password:H,...U}=w;return U}async signUp(){let J=Q0(y0),{userProvider:K,config:Y}=J,X=new Y.signUpRequest,Z=await X.input(),{email:Q,password:w,name:$,invitationId:W}=Z.toJSON(),z=Q.toLowerCase().trim();if(await K.findUserByEmailAddress(z,!1))throw new J1({email:["Email address already exists"]});let U=await Y.hashPassword(w),A=Q0(u0).detectLocale(X),V;if(W){if(V=await K.findInvitation(W,z),V)await K.deleteInvitationById(W)}let L,B;if(V)L=await K.createUser({email:z,name:$,password:U,emailVerifiedAt:new Date,locale:A}),await K.createAccount({organizationId:V.organizationId,userId:L.id,organizationRole:V.role});else B=await Y.generateEmailVerificationToken(z),L=await K.createUser({email:z,name:$,password:U,verificationToken:B,locale:A});return await Y.onSignUp(L,B,X.search.toJSON()),L}async signOut(J=new A0){let K=J.cookies.get("access_token"),Y=await f1.user(),{userProvider:X,config:Z}=Q0(y0);await X.deleteSession({token:K});let Q=new URL(J.rawRequest.url);return J.ctx().setCookie("access_token","",{expires:new Date(0),secure:!Q.origin.includes("localhost"),httpOnly:!0}),await Z.onSignOut(Y),{}}async forgotPassword(J=new S4){let Y=(await J.input()).get("email").toLowerCase().trim(),{userProvider:X,config:Z}=Q0(y0),Q=await X.findUserByEmailAddress(Y,Z.verifyEmail);if(!Q)return{};let w=await Z.generateForgotPasswordToken(Q);return await X.createPasswordResetToken({user:Q,token:w}),await Z.onForgotPassword(Q,w),{}}async resetPassword(J=new v4){let{userProvider:K,config:Y}=Q0(y0),X=await J.input(),{password:Z,token:Q}=X.toJSON(),w=await K.findPasswordResetToken({token:Q});if(!w)throw new J1({token:["Invalid token"]});if(D5.Instant.from(w.createdAt.toISOString()).add({hours:24}).until(D5.Now.instant()).sign>=0)throw new J1({token:["Token expired"]});await K.deletePasswordResetToken({token:Q});let W=await K.findUserByEmailAddress(w.user.email,Y.verifyEmail);if(!W)throw new J1({email:["User not found"]});let z=await Y.hashPassword(Z);return await K.updateUserPassword({id:W.id,password:z}),await K.deleteAllUserSessions(W.id),await Y.onResetPassword(W),{}}async changePassword(J=new A0){let{userProvider:K,config:Y}=Q0(y0),X=await f1.user(),Z=await J.input(),{oldPassword:Q,newPassword:w}=Z.toJSON(),{password:$}=await K.findUserByEmailAddress(X.email,Y.verifyEmail);if(!await Y.verifyPassword(Q,$))throw new J1({oldPassword:["Incorrect password"]});let z=await Y.hashPassword(w);return await K.updateUserPassword({id:X.id,password:z}),await K.deleteAllUserSessions(X.id),{}}async oauthRedirect(J=new A0){let{provider:K}=J.params,Y=Q0(y0).config.oauthProviders[K];if(!Y)throw Error(`Invalid provider: ${K}`);return{destination:await Y.getRedirectUrl(J)}}async oauthCallback(J=new A0){let{provider:K}=J.params,Y=Q0(y0),{userProvider:X,config:Z}=Y,Q=Z.oauthProviders[K],{email:w,name:$}=await Q.onCallback(J);if(!w)return console.error("Authentication error: No email returned from OAuth provider callback"),{session:null};let W=await X.findUserByEmailAddress(w,!1),z=Q0(u0).detectLocale(J),H="signin";if(!W)H="signup",W=await X.createUser({email:w,name:$,locale:z,emailVerifiedAt:new Date}),await X.createSocialAccount({provider:K,userId:W.id,email:w,username:$,providerId:"",expiresAt:new Date,accessToken:"",refreshToken:""});let U=await Y.createOrUpdateSessionV2({email:W.email,id:W.id}),A=new URL(J.rawRequest.url);if(J.ctx().setCookie("access_token",U.token,{secure:!A.origin.includes("localhost"),httpOnly:!0,expires:U.expiresAt}),H==="signup"){let V=await Z.generateMagicLinkToken(w);await Z.onSignUp(W,V,J.search.toJSON())}else await Z.onSignIn(W,J.search.toJSON());return{session:U}}async createMagicLinkToken(J=new A0){let Y=(await J.input()).get("email").toLowerCase().trim(),X=Q0(y0),{user:Z,pin:Q,token:w}=await X.createMagicLinkToken(Y);if(Z)return await X.config.onMagicLinkCreated(Z,{email:Y,pin:Q,token:w}),{email:Y};return{email:null}}}class h4 extends B6{middlewares=["cache:private"];routes={"/:provider":this.view("_Redirect",[k0,"oauthRedirect"]),"/:provider/callback":this.view("auth/OauthCallback",[k0,"oauthCallback"])}}class G6 extends B6{middlewares=["cache:private"];routes={"/sign-in/magic-link":this.view("auth/MagicLinkSignIn",[k0,"signInWithMagicLink"]),"/oauth":h4}}class L6 extends O1{middlewares=["cache:private"];routes={"/sign-in":this.post(k0,"signIn"),"/sign-in-v2":this.post(k0,"signInV2"),"/sign-up":this.post(k0,"signUp"),"/sign-out":this.post(k0,"signOut"),"/forgot-password":this.post(k0,"forgotPassword"),"/reset-password":this.post(k0,"resetPassword"),"/change-password":this.post(k0,"changePassword"),"/verify-email":this.post(k0,"verifyEmail"),"/me":this.get(k0,"me").middleware(["auth"]),"/magic-link":this.post(k0,"createMagicLinkToken"),"/sign-in-with-pin":this.post(k0,"signInWithPin"),"/sign-in-with-pin-v2":this.post(k0,"signInWithPinV2")}}class q6 extends O1{middlewares=["cache:private,0,no-store"];routes={"/set-locale/:locale":this.get(async()=>{let J=new A0,K=J.params.locale;return console.log(`Setting locale to ${K}`),J.ctx().setCookie("i18n-locale",K),await Q0(u0).onLocaleChange(K),{locale:K}}),"/translations/:locale/:scope*":this.get(async()=>{let J=new A0,K=`/${J.params.scope??""}`,Y=J.params.locale,X=Q0(u0),Z=Y??X.detectLocale(J),Q=X.getPageTranslations(Z,K);return J.ctx().setCookie("i18n-locale",Z,{expires:new Date(Date.now()+31536000000)}),{[Z]:Q}})}}import WY from"sharp";class O6{}class M6 extends O6{async resize(J,K){let{height:Y,width:X,quality:Z,fit:Q}=K;return await WY(J).resize(X>0?X:void 0,Y>0?Y:void 0,{fit:Q}).webp({quality:Z>0?Z:80,force:!0}).toBuffer()}}function rV(J){return J}function y4(){return{driver:new M6}}class N6 extends O1{routes={"/resize":this.file(async()=>{let J=new A0,K=new URL(J.rawRequest.url),Y=K.searchParams.get("url"),X=Number(K.searchParams.get("w")),Z=Number(K.searchParams.get("h")),Q=K.searchParams.get("fit")??"cover",w=Number(K.searchParams.get("q"));if(!Y)return new Response(JSON.stringify({error:"url query parameter is required"}),{headers:{"Content-Type":"application/json"},status:404});let W=`${Y.startsWith("http")?"":`http://localhost:${process.env.PORT||5173}`}${Y}`,z=await fetch(W);if(!z.ok)return new Response(JSON.stringify({error:"Image not found",info:W}),{headers:{"Content-Type":"application/json"},status:404});let H=Buffer.from(await z.arrayBuffer()),U=await Q0(k4).resize(H,{height:Z,width:X,fit:Q,quality:w});z.headers.delete("Content-Type"),z.headers.delete("Content-Length");let A=new Headers(z.headers);return A.set("Content-Type","image/webp"),A.set("Content-Length",`${U.byteLength}`),new Response(new Uint8Array(U),{headers:A})})}}class k4{static token="image";driver;constructor(J={}){this.driver=J.driver??y4().driver}resize(J,K){return this.driver.resize(J,K)}}import{mkdir as j6,readdir as $Y,access as zY}from"fs/promises";async function E6(J){try{return await zY(J),!0}catch{return!1}}class C5{config;static token="log";writer;isReady=!1;logsDirPath=`${process.env.ROOT_DIR}/storage/logs`;flushTimeout;fileSize=0;writerSize=0;isCreatingFile=!1;bootPromise=null;currentLogFilePath;constructor(J){this.config=J}boot(){if(!this.bootPromise)this.bootPromise=this.createStorage().then(()=>{this.isReady=!0});return this.bootPromise}async createStorage(){if(!process.env.ROOT_DIR)return;if(!await E6(`${process.env.ROOT_DIR}/storage`))await j6(`${process.env.ROOT_DIR}/storage`);if(!await E6(this.logsDirPath))await j6(this.logsDirPath);await this.newLogFile()}async newLogFile(){if(!await E6(this.logsDirPath))await j6(this.logsDirPath);if(this.isCreatingFile=!0,this.currentLogFilePath){this.writer.flush(),this.writer.end(),this.writer=null;let Y=new File([await Bun.file(this.currentLogFilePath).arrayBuffer()],this.currentLogFilePath.split("/").pop(),{type:"text/plain"});this.config.onLogFileClosed(Y),this.fileSize=0,this.writerSize=0}let K=(await $Y(this.logsDirPath)).sort().reverse()[0];if(K){let Y=Bun.file(`${this.logsDirPath}/${K}`);if(Y.size<this.config.maxFileSize)this.currentLogFilePath=`${this.logsDirPath}/${K}`,this.writer=Y.writer(),this.writer.write(await Y.text()),this.writer.write(`
|
|
12
|
+
`),this.writer.flush(),this.fileSize=Y.size}if(!this.writer){let Y=`${new Date(Date.now()).toISOString()}.log`.replaceAll(":","-");this.currentLogFilePath=`${this.logsDirPath}/${Y}`;let X=Bun.file(`${this.logsDirPath}/${Y}`);this.writer=X.writer(),this.fileSize=0,this.writerSize=0}this.isCreatingFile=!1}async log(J,K,Y={}){if(!this.isReady)await this.boot();let X=L0.getStore(),Z={};if(X)Z={url:X.req.rawRequest.url,method:X.req.rawRequest.method,headers:X.req.rawRequest.headers,body:X.req.rawRequest.body};let Q={timestamp:new Date(Date.now()).toISOString(),env:Bun.env.NODE_ENV,level:J,message:K,metadata:{...Z,...Y}},w="";try{w=JSON.stringify(Q)}catch($){console.log("Error parsing log object",$)}this.writerSize+=w.length,this.fileSize+=w.length;try{this.writer.write(w),this.writer.write(`
|
|
13
|
+
`),this.config.onLogCreated(Q),this.tryFlush()}catch($){console.error("Error writing log",$)}}async tryFlush(){if(this.fileSize>this.config.maxFileSize){if(!this.isCreatingFile)await this.newLogFile()}if(this.writerSize>this.config.maxFileSize/2)await this.writer.flush(),this.writerSize=0,await this.newLogFile();else clearTimeout(this.flushTimeout),this.flushTimeout=setTimeout(async()=>{await this.writer.flush(),this.writerSize=0},100)}}class F6 extends O1{middlewares=["cache:private,0"];routes={"/live":this.get(async()=>{let J=Bun.file(Q0(C5).currentLogFilePath);return new Response(await J.text(),{headers:{"Content-Type":"text/plain"}})})}}function HY(J){let K=new Map;for(let Y of J)if(typeof Y==="string"){let[X,Z=""]=Y.split(":");if(X.startsWith("-")){if(K.has(X.replace("-","")))K.delete(X.replace("-",""))}else K.set(X,Z.split(",").filter(Boolean))}else K.set(Y,[]);return K}class T5{config;static token="middleware";constructor(J){this.config=J}get aliases(){return this.config.aliases}runMiddleware(J){let K=new A0;return Array.from(HY(J).entries()).map(([Y,X])=>{if(typeof Y==="string"){let Z=this.aliases[Y];if(Z){let Q=new Z(K);return()=>Q.run.call(Q,...X)}}else{if(g4(Y)){let Z=new Y(K);return Z.run.bind(Z)}return Y}}).filter(Boolean).reduce((Y,X)=>{return async()=>{return{...await Y(),...await X()}}},()=>Promise.resolve({}))()}}function HB(J){return J}function x4(){return{onRequestStart:()=>{},onRequestEnd:()=>{},onRequestFail:()=>{}}}function b4(){return{onRequestStart:()=>{},onRequestEnd:()=>{},onRequestFail:()=>{}}}function UY(J){return"run"in J}function AY(J){return Object.hasOwn(J,"get")||Object.hasOwn(J,"post")||Object.hasOwn(J,"put")||Object.hasOwn(J,"delete")}function VY(J){return Object.hasOwn(J,"first")&&Object.hasOwn(J,"second")}function BY(J){if("__brand"in J)return J.__brand==="ApiRouter";return!1}function GY(J){if("__internal_brand"in J)return J.__internal_brand==="ProxyHandler";return!1}function LY(J){if("__internal_brand"in J)return J.__internal_brand==="StreamHandler";return!1}function _6(J,K="",Y=[]){let X={};function Z(Q,w,$,W){let z=Q==="/"?"":Q,H=K==="/"?"":K,U=(`${H}${z}`===""?"/":`${H}${z}`).replaceAll("//","/");if(!X[U])X[U]={};X[U][w.toUpperCase()]={exec:$,middleware:[...Y,...W]},X[U].OPTIONS={exec:()=>{let V=new A0().ctx().headers;return new Response(null,{headers:V,status:204})},middleware:[]}}for(let[Q,w]of Object.entries(J)){if(GY(w)){let $=w;for(let W of["GET","POST","PUT","DELETE"])Z(Q,W,$.run.bind($),[]);continue}if(UY(w)){let $=w,W=$.method,z=$.middlewares,H=$.run.bind($);if(Z(Q,W,H,z),LY(w))Z(Q,"HEAD",H,z)}if(AY(w))for(let[$,W]of Object.entries(w)){let z=W.middlewares,H=W.run.bind(W);Z(Q,$,H,z)}if(BY(w)){let $=new w,W=_6($.routes,`${K}${Q}`,$.middlewares);for(let[z,H]of Object.entries(W))X[z.replaceAll("//","/")]=H}if(VY(w)){let{first:$,second:W}=w;for(let[z,H]of Object.entries($)){let U=H.middlewares,A=H.run.bind(H),[V,...L]=Q.split("/").reverse();if(!V.startsWith(":"))throw Error("Resource route must end with a dynamic segment");Z(L.reverse().join("/"),z,A,U)}for(let[z,H]of Object.entries(W)){let U=H.middlewares,A=H.run.bind(H);Z(Q,z,A,U)}}}return Object.fromEntries(Object.entries(X).sort(([Q],[w])=>{let $=Q.split("/").length+Q.split(":").length,W=w.split("/").length+w.split(":").length;return $-W}))}var z7=$1(Y7(),1),H7=$1(X7(),1),v6={};var TY=5;var Z7=12,PY=13;var SY=16,vY=17;var hY=22;var Q7=28;var w7=31;var yY=33,U8=34,kY=35,P6=36,S6=37,U7=38,gY=39,xY=40,S5=41,bY=42,G=0,O=1,$0=2,A7=3,_=4,fY=[[_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,A7,_,_,_,_,_,_,_,_,_,_,_],[G,_,_,O,O,_,_,_,_,O,O,G,G,G,G,O,O,O,G,G,_,$0,_,G,G,G,G,G,G,G,G,O,G],[G,_,_,O,O,_,_,_,_,O,O,O,O,O,G,O,O,O,G,G,_,$0,_,G,G,G,G,G,G,G,G,O,G],[_,_,_,O,O,O,_,_,_,O,O,O,O,O,O,O,O,O,O,O,_,$0,_,O,O,O,O,O,O,O,O,O,O],[O,_,_,O,O,O,_,_,_,O,O,O,O,O,O,O,O,O,O,O,_,$0,_,O,O,O,O,O,O,O,O,O,O],[G,_,_,O,O,O,_,_,_,G,G,G,G,G,G,O,O,O,G,G,_,$0,_,G,G,G,G,G,G,G,G,O,G],[G,_,_,O,O,O,_,_,_,G,G,G,G,G,G,O,O,O,G,G,_,$0,_,G,G,G,G,G,G,G,G,O,G],[G,_,_,O,O,O,_,_,_,G,G,O,G,O,G,O,O,O,G,G,_,$0,_,G,G,G,G,G,G,G,G,O,G],[G,_,_,O,O,O,_,_,_,G,G,O,O,O,G,O,O,O,G,G,_,$0,_,G,G,G,G,G,G,G,G,O,G],[O,_,_,O,O,O,_,_,_,G,G,O,O,O,O,O,O,O,G,G,_,$0,_,O,O,O,O,O,G,O,O,O,G],[O,_,_,O,O,O,_,_,_,G,G,O,O,O,G,O,O,O,G,G,_,$0,_,G,G,G,G,G,G,G,G,O,G],[O,_,_,O,O,O,_,_,_,O,O,O,O,O,G,O,O,O,G,G,_,$0,_,G,G,G,G,G,G,G,G,O,G],[O,_,_,O,O,O,_,_,_,O,O,O,O,O,G,O,O,O,G,G,_,$0,_,G,G,G,G,G,G,G,G,O,G],[O,_,_,O,O,O,_,_,_,O,O,O,O,O,G,O,O,O,G,G,_,$0,_,G,G,G,G,G,G,G,G,O,G],[G,_,_,O,O,O,_,_,_,G,O,G,G,G,G,O,O,O,G,G,_,$0,_,G,G,G,G,G,G,G,G,O,G],[G,_,_,O,O,O,_,_,_,G,G,G,G,G,G,O,O,O,G,G,_,$0,_,G,G,G,G,G,G,G,G,O,G],[G,_,_,O,G,O,_,_,_,G,G,O,G,G,G,O,O,O,G,G,_,$0,_,G,G,G,G,G,G,G,G,O,G],[G,_,_,O,G,O,_,_,_,G,G,G,G,G,G,O,O,O,G,G,_,$0,_,G,G,G,G,G,G,G,G,O,G],[O,_,_,O,O,O,_,_,_,O,O,O,O,O,O,O,O,O,O,O,_,$0,_,O,O,O,O,O,O,O,O,O,G],[G,_,_,O,O,O,_,_,_,G,G,G,G,G,G,O,O,O,G,_,_,$0,_,G,G,G,G,G,G,G,G,O,G],[G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,G,_,G,G,G,G,G,G,G,G,G,G,G,G],[O,_,_,O,O,O,_,_,_,O,O,O,O,O,G,O,O,O,G,G,_,$0,_,G,G,G,G,G,G,G,G,O,G],[O,_,_,O,O,O,_,_,_,O,O,O,O,O,O,O,O,O,O,O,_,$0,_,O,O,O,O,O,O,O,O,O,O],[G,_,_,O,O,O,_,_,_,G,O,G,G,G,G,O,O,O,G,G,_,$0,_,G,G,G,O,O,G,G,G,O,G],[G,_,_,O,O,O,_,_,_,G,O,G,G,G,G,O,O,O,G,G,_,$0,_,G,G,G,G,O,G,G,G,O,G],[G,_,_,O,O,O,_,_,_,G,O,G,G,G,G,O,O,O,G,G,_,$0,_,O,O,O,O,G,G,G,G,O,G],[G,_,_,O,O,O,_,_,_,G,O,G,G,G,G,O,O,O,G,G,_,$0,_,G,G,G,O,O,G,G,G,O,G],[G,_,_,O,O,O,_,_,_,G,O,G,G,G,G,O,O,O,G,G,_,$0,_,G,G,G,G,O,G,G,G,O,G],[G,_,_,O,O,O,_,_,_,G,G,G,G,G,G,O,O,O,G,G,_,$0,_,G,G,G,G,G,O,G,G,O,G],[G,_,_,O,O,O,_,_,_,G,O,G,G,G,G,O,O,O,G,G,_,$0,_,G,G,G,G,G,G,G,O,O,G],[G,_,_,O,O,O,_,_,_,G,O,G,G,G,G,O,O,O,G,G,_,$0,_,G,G,G,G,G,G,G,G,O,G],[O,_,_,O,O,O,_,_,_,O,O,O,O,O,G,O,O,O,G,G,_,$0,_,G,G,G,G,G,G,G,G,O,G],[G,_,_,O,O,G,_,_,_,G,G,G,G,G,G,G,G,G,G,G,_,$0,_,G,G,G,G,G,G,G,G,O,G]],mY=H7.default.toByteArray("AAgOAAAAAAAQ4QAAAQ0P8vDtnQuMXUUZx+eyu7d7797d9m5bHoWltKVUlsjLWE0VJNigQoMVqkStEoNQQUl5GIo1KKmogEgqkKbBRki72lYabZMGKoGAjQRtJJDaCCIRiiigREBQS3z+xzOTnZ3O+3HOhd5NfpkzZx7fN9988zivu2M9hGwB28F94DnwEngd/Asc1EtIs9c/bIPDwCxwLDgezHcodyo4w5C+CCwBS8FnwSXgCnA1uFbI93XwbXAbWAfWgx+CzWAb+An4KfgFeAzsYWWfYuFz4CXwGvgb+Dfo6yNkEEwGh4CZYB44FpwI3g1OY+kfBItZOo2fB84Hy8DF4HJwNbiWpV8PVoO1LH4n2NRXyN+KcAd4kNVP9XsY4aPgcfAbsBfs6SniL4K/sPjfEf6HlanXCRkCw2BGvUh/keWfXS/CY+pFXs7x9XHmM94LTmWIeU2cgbxnS/k/B3kf86jDhU8L9V2E40vAFWAlWFUfb++NOL4F3C7JX4/4GiE+hvgWsF0oS7mXldspnN+F493gyXrh9xTav0cg3EvzgVfBG6wsmVSEkxBOBgdPGpd7JI6PnqRvJ68/xlbHof53gPeA94OzwLngk+ACsAwsByvASrAK3MB0Ws3CtQjvBJvAVrADPMDSHkb4CNijaccTwvnf4fiPEs8Lxy+D18A/QU8/xjgYBjPAbDAKTgYLwOngTHAO+EQ/8wuEF4EvsPiVCFf2+9tsFStzA8LVHuXXBsi6QyqzUYiPMR/7Mc7dAx7oL8bzw/3u/Bw8Bp4Az4AXwCtgHzsmDXP5fiF9iiVvly5d0sHngar16NKlS5cuXbp06fLmYlqHXrcd3ph4P0THUY3iXh49novju4S0tzfs5d+JPKewfAsRntZb3K9ZhOMlrO6lCC8An28U9+OuovcPcPxlVu5rCL/VmHh/iHIrzn3fIPu7SN8Axmg+8AOwEWwCm7tp3bRuWjetm5Y8bSu4B9zbKO6ZVsnORrVU3f4uXTqZ2H3sLoyx3eDXjfDndE9qyj6L838CfwVvgFpzYnof4oNgOhgBc8Fos9DrZIQLmtXPP1MmF6wGj4H+KXoWguvADkXaPil+YpuQy8Am8Ey7ODdtmJDF4HowBp4De6HDTNjhfHAHeBr0DBBy0kDxfPbcgSIusgrcWhtnJ8vL+TPix7UIOQtcBq4C28Cr4KRBnANbwSuDE+s50JgyNNFuXbp06XIgsXjIvPafjvXozKY+fVFz/z0LT1uCtKVSWbrOLWPnztG8e0Xfy7ol8XtZJi7WtG+5od2UFXQ/A12vUeS7jp27yVKHjdsU9lXB869TyNvAzt0lpP2oWbwLdjiO78bx/Sz+EMJHwK9Y/LcIfw+eZ3F67/Hl5vh9xX80J+rwX8SvRDhpgL17iPAQMHNArfPrqHPewLheI+AERV6efwV418B4nOZ/H+IfYHV8GOF5LJ3eAz0fx8sM9S0fUNud39O9CulfGZhY5huI3wzWgNvBelbHZoTbNPVpfYjKQpkHwUNgl0LWblbnk0LbbDxr0OMFpL3iqWdu9nWYPlVAWkXY39LnGdCkDbeqv1YNbfcMQ3t9oe8lzm6NH9N1ZB6Ln4BwfkJZJk7RyFnYKt6b/JDQXx9p5X+eFdqOjzM9P9MB/lUlFzr20aXIdzlY4dmn9F3YqtvoO76/2hp/D/xA5Zue88nNyL8GbFbs075X0tyUig3Qd2MCnf//HjnzpbsR3g9+1kHzzVjdnE71/qVBX9rGPUh/ysNWe1neFzvIDi5zAufV1sT0N0poR22wkFUfTOPfA4N2mbZ5fSrqOHSw+IbkSBbOGSzSRgf91/GTUWYBOB2cIZQ/G8cfBZ8CFwrnL8XxF8FKcA24jqXdiPA7Qr61OF7H4mMItwzuv2/YLth1ISt3Hzu3k4W7EH5JqPdRHD/O4k+z8A8IX5Lq3y7Z4nXE9xn6kX6vQ4bKfy+ok+hH+xf3hq9dnTTHhjKd2GmDuWA242iHMq4cC7A8kJ7i8o1+skSa7Jieo38HCWnoNjKFhdSFBxzpZ7QE6lI8N4S14aASZcryaV/WWHw66f6NHuCoxuQxmvM56GX9QMd8Q4D65ywGP+ZzRJuM+zQvx/MOS2VFeqQ4IXnH26zM9Xe6/E6D+4foAzzuajPZp8Qyw5ayZVDWuH0z0BtYRkeIDqH9KO9VbH1btd/lhNqCzvl8zeLnG0S/hnU6baHfpiuO6yy0rd+DHURo/zYF5H26j03rQsip2ndzz82u1z9N4VjWKWeb68Tedpt95HRVXp7H1R6p+/Wt4FPy/PpWwscOLRJ+PVWF/+W0iVyGzs18TIvXkOJ1Wxm66vSXz+vylenrZcj1ub439W+K8RNCGTJi2p/TJ1K23VaXr35tRpnzmjxequgfcfyk6B/TGBVlyedsNgpdd/h+W1U3P99QyFPNo1X3TwpM/WLTIWYfoBqXrv6iskHZ/RFr79R6hIyHBrH3f1nrUVnjP8SnZZ+rYtzr9Exld5MNbPNErusAPg+77u/eDOPftU9yj39TH7rezxd1LvsZQJlzkWlOirG/79zjMj/mtHUKu7vKy+3/LnXr9okyKedjX5/0He9iP/j63LwOQdarEVlfy8OO/Lqw023j6xcqmwxLiOd6heM2i9cV9LJy8jMJ23yQ+rpbfu7EQ/pXE8KYvUSqvVnb4XzZa6LrHMXHR+zcLvqWbm/Bn0/HzIs6fWPHoat8XfnDKmZGxRxeMbn2UqZ5Q94nmcZRbqqUXbZ8+lcjE+cPX11t814orvvAXNcG8vqj2vvk1MGn3anlj0bIT72v47bvE+Lc98T9b6r7AKn6j+8Duf7D0nnZx/j7Zjn0j9nbpSTndaLr9WNLivP+iN23xF7L+fqv6ZouFyb78jxVXvv5jJ9YUs9/sddO8h7KNg5jrhfaJGztT6G7KF+1d6yCmD5Kdb2fan60rSc552fZr3zeQ9DpnPp+Si5cx5Ktv2QfSzF/mMbWdOm46rFI4XstnU9xeqX4NKb7TKEdcr6pZOK3ID1k/LvFHkVczEuZLEDr499YqvqBym1aEHWgcvoYOtv0M91qQl5TfpO/in6rWx8OVpT1Wedkv3f5xom3T/xeR/6Gx6V86PWAOB4bBpqWdN+yTcVxjIyGRz/FrDGu6w/3d7kPm8StX8RyPu+uuvpNju/vTLJV37GpvoM0oZPnW87VLnL/5pDno1NoW1R6yedU6TyUv3u19a3KFnIbTLYz+ZCLP4T0tU1uivFgso0pnsJ/UtXvarNY28Xq5cvkBDrQP/E5ZaiuQwwfmTlsOiQRU1fMuqrDd/3ISSuwjOwXOfTyGUMpZIXq4GpLn3pUcdfzch2x7XO1u2uZHOPb1G6b3Xg9PH1IIWeEpJlPQtqos2EKW8b0u8rnuP1UeVLoXJb9be0uG9nnbchjU+XTszT5VeNBThPHnc5OKj1U9aj0GTHIVaGy1YhEWT4ixns00DT+XEzWn/7VAsIc63Cov3OdyhwjrnaqQqZvWKXdypRdlq+k8msZ031U+Rm4fA+3TtyeR9hwfW9G9yxDN0fZMN33F+9TE6md4hwoxumfaUzI9fN3PFT3xVV2msrQ3UsnChm6Nulk8TndpS28D3zX9tTIPsF/z7Am5OkTjm1tI1JZW74+4VgsZ0N3L1yXV3WeP5uR7TGHHdvC3JQlxybfpd22tDlk/2eofRK8TzrN/qnar/K/OUTth6I/+jAnEptNbPvFHP2gs40N3+dfMWtwqvVct7/wfd8gtQ7imifial9ZJ9/3IHLYU6eDj3+4PhsNhX+vwvcWLnu6kGfEMe8DuciPfUfGZB8X/7HJy/Gefe5n+VRGFd/wyP2ta7/LO4yh/sbLV/k9lev6kfO9Dt/5U67b1/6u/epqB1U9Me23jfHY9sscAg4tkbLl+e4/U36rJ9ddxfd6sg5vq5ice42Wpk/pb9FOJ36/W9tpv4kbC79nUbZceX8Zu6/qJ+P3WvhvA8v3reh7Jbn2d6rrNC7XNZTLma4Ba0JI9efX2uLzF5scG/w9UNU1ZxW+ymUfzELeTllXlQ1rUuhzjS5fp9c964iFBOqeSz63bU065nZKdU+mDEz3qHIjjifquw0pnb/raRtvrnsYcb46ihT3taoYz6brdNW9l6rWRnE/navdPn1XlR1km7hcz1WlH/elKuSOSvLLuE8U6m8uzwRdfcGl73VyTHuyMvzJ1Sa2cWDTP/Z63Kc94n2B1PYr24dz1JlyHLlcP+S4B6vD1c9EW4q2LWstCvUjeVy63k/LMYdUNd5D1xQfvVTzX1VjkMsUv88N8VH5fReVn/Fjn++/h6X6Q8a6b1/q3g/i/ewi0/Scs8zxXeV6mWIOUPlPzBgdFerW+bZrm2P18dnjuK6HunEp+rHvPMXbr+sHVb/lnL+pTP57jPw9Cvk3PW178JD9qChfzuvTf7Htl38L1QUf/VKu9SFjwWbTWPvFEvu7Uq76y7+31g6QlYPc669pbsm9Xur2LWI9Pu8ypfDXqm3A2z8s1FWGn4ntL9NfQu2oSlftX9uetvTtv7J8Ql4zxfXGZ3zk8PeQ9w59x2uMfqI8/q5eKh/l9cb2rwsu9rSNl06ZP2Pmxtz+rNMx93yno0n2/82rVH7rQ+y9P15H6FyRun9ViH81ATmffI7nJ5r8uXXW6enbP6b/B8/l5OifVHYLnb9S39s2zcc+Ph+rh8+eQgVPS72elzGWY/tUtbbabBpDiI7yN1q6/4th2y+ErAc5+9BVvu/7KamJbWNZeuqI/R4tRf+YyD1HmOZM1bMV3/14Sn10c0Xu+Sj1nOXb5jL73ncdy02uvlXZNde65dOHYl7Vs4KYuS6FzWLn2zJlpZqPXPVPOa5yzKOyn1VhT9lmMfdbfH7D11Wf2PXN5h9y+dD287+qxgSnaYmnIrRtIb8pJe6/Uv9OVer6Whn0zfGO/BEloZI9ojmfAlUflClDd178bTmVHVTpZXOkAlk/lb42UujmI89HH5V+cl7XtowY6vTxLVWok6UrGzoGTHN+bB+6ri05687VNpvfuvRfaP2uMlNQth1D5JjGelm/8yn+9p3p/7qk9gnfeddXZmq/Sm333PJT659Kv1zjNbZ9uv2Oi//67CV8/N1nj1DmviyXDNVeJkaeaX8UsyesYg8cu2+NvdaPfb+lLDu5tvt/"),cY=new z7.default(mY),W7=function(J){switch(J){case yY:return Z7;case gY:case xY:case bY:return Z7;case kY:return TY;default:return J}},$7=function(J){switch(J){case S6:case U7:return U8;case S5:return hY;default:return J}};class A8{constructor(J,K=!1){this.position=J,this.required=K}}class V7{nextCodePoint(){let J=this.string.charCodeAt(this.pos++),K=this.string.charCodeAt(this.pos);if(55296<=J&&J<=56319&&56320<=K&&K<=57343)return this.pos++,(J-55296)*1024+(K-56320)+65536;return J}nextCharClass(){return W7(cY.get(this.nextCodePoint()))}getSimpleBreak(){switch(this.nextClass){case S5:return!1;case U8:case S6:case U7:return this.curClass=U8,!1;case P6:return this.curClass=P6,!1}return null}getPairTableBreak(J){let K=!1;switch(fY[this.curClass][this.nextClass]){case G:K=!0;break;case O:K=J===S5;break;case $0:if(K=J===S5,!K)return K=!1,K;break;case A7:if(J!==S5)return K;break;case _:break}if(this.LB8a)K=!1;if(this.LB21a&&(this.curClass===SY||this.curClass===vY))K=!1,this.LB21a=!1;else this.LB21a=this.curClass===PY;if(this.curClass===Q7){if(this.LB30a++,this.LB30a==2&&this.nextClass===Q7)K=!0,this.LB30a=0}else this.LB30a=0;return this.curClass=this.nextClass,K}nextBreak(){if(this.curClass==null){let J=this.nextCharClass();this.curClass=$7(J),this.nextClass=J,this.LB8a=J===w7,this.LB30a=0}while(this.pos<this.string.length){this.lastPos=this.pos;let J=this.nextClass;if(this.nextClass=this.nextCharClass(),this.curClass===U8||this.curClass===P6&&this.nextClass!==S6)return this.curClass=$7(W7(this.nextClass)),new A8(this.lastPos,!0);let K=this.getSimpleBreak();if(K===null)K=this.getPairTableBreak(J);if(this.LB8a=this.nextClass===w7,K)return new A8(this.lastPos)}if(this.lastPos<this.string.length)return this.lastPos=this.string.length,new A8(this.string.length);return null}constructor(J){this.string=J,this.pos=0,this.lastPos=0,this.curClass=null,this.nextClass=null,this.LB8a=!1,this.LB21a=!1,this.LB30a=0}}v6=V7;var G1=$1(O8(),1),UK=$1(p7(),1),AK=$1(r7(),1);var e7=$1(o7(),1),J2=$1(a7(),1),dZ=/^#([a-f0-9]{3,4}|[a-f0-9]{4}(?:[a-f0-9]{2}){1,2})\b$/,uZ=new RegExp(dZ,"i"),e6="-?\\d*(?:\\.\\d+)",O5=`(${e6}?)`,j1=`(${e6}?%)`,M5=`(${e6}?%?)`,pZ=`^
|
|
14
|
+
hsla?\\(
|
|
15
|
+
\\s*(-?\\d*(?:\\.\\d+)?(?:deg|rad|turn)?)\\s*,
|
|
16
|
+
\\s*${j1}\\s*,
|
|
17
|
+
\\s*${j1}\\s*
|
|
18
|
+
(?:,\\s*${M5}\\s*)?
|
|
19
|
+
\\)
|
|
20
|
+
$
|
|
21
|
+
`.replace(/\n|\s/g,""),iZ=new RegExp(pZ),rZ=`^
|
|
22
|
+
hsla?\\(
|
|
23
|
+
\\s*(-?\\d*(?:\\.\\d+)?(?:deg|rad|turn)?)\\s*
|
|
24
|
+
\\s+${j1}
|
|
25
|
+
\\s+${j1}
|
|
26
|
+
\\s*(?:\\s*\\/\\s*${M5}\\s*)?
|
|
27
|
+
\\)
|
|
28
|
+
$
|
|
29
|
+
`.replace(/\n|\s/g,""),nZ=new RegExp(rZ),oZ=`^
|
|
30
|
+
rgba?\\(
|
|
31
|
+
\\s*${O5}\\s*,
|
|
32
|
+
\\s*${O5}\\s*,
|
|
33
|
+
\\s*${O5}\\s*
|
|
34
|
+
(?:,\\s*${M5}\\s*)?
|
|
35
|
+
\\)
|
|
36
|
+
$
|
|
37
|
+
`.replace(/\n|\s/g,""),sZ=new RegExp(oZ),aZ=`^
|
|
38
|
+
rgba?\\(
|
|
39
|
+
\\s*${j1}\\s*,
|
|
40
|
+
\\s*${j1}\\s*,
|
|
41
|
+
\\s*${j1}\\s*
|
|
42
|
+
(?:,\\s*${M5}\\s*)?
|
|
43
|
+
\\)
|
|
44
|
+
$
|
|
45
|
+
`.replace(/\n|\s/g,""),tZ=new RegExp(aZ),eZ=`^
|
|
46
|
+
rgba?\\(
|
|
47
|
+
\\s*${O5}
|
|
48
|
+
\\s+${O5}
|
|
49
|
+
\\s+${O5}
|
|
50
|
+
\\s*(?:\\s*\\/\\s*${M5}\\s*)?
|
|
51
|
+
\\)
|
|
52
|
+
$
|
|
53
|
+
`.replace(/\n|\s/g,""),JQ=new RegExp(eZ),KQ=`^
|
|
54
|
+
rgba?\\(
|
|
55
|
+
\\s*${j1}
|
|
56
|
+
\\s+${j1}
|
|
57
|
+
\\s+${j1}
|
|
58
|
+
\\s*(?:\\s*\\/\\s*${M5}\\s*)?
|
|
59
|
+
\\)
|
|
60
|
+
$
|
|
61
|
+
`.replace(/\n|\s/g,""),YQ=new RegExp(KQ),XQ=/^transparent$/,ZQ=new RegExp(XQ,"i"),J9=(J,K,Y)=>Math.min(Math.max(K,J),Y),QQ=(J)=>{let K=J;if(typeof K!=="number")K=K.endsWith("%")?parseFloat(K)*255/100:parseFloat(K);return J9(Math.round(K),0,255)},t7=(J)=>J9(parseFloat(J),0,100);function K2(J){let K=J;if(typeof K!=="number")K=K.endsWith("%")?parseFloat(K)/100:parseFloat(K);return J9(K,0,1)}function wQ(J){let[K,Y,X,Z]=J2.default(J,{format:"array"});return N8([null,K,Y,X,Z])}function WQ([,J,K,Y,X=1]){let Z=J;if(Z.endsWith("turn"))Z=parseFloat(Z)*360/1;else if(Z.endsWith("rad"))Z=Math.round(parseFloat(Z)*180/Math.PI);else Z=parseFloat(Z);return{type:"hsl",values:[Z,t7(K),t7(Y)],alpha:K2(X===null?1:X)}}function N8([,J,K,Y,X=1]){return{type:"rgb",values:[J,K,Y].map(QQ),alpha:K2(X===null?1:X)}}var $Q=(J)=>{if(typeof J!=="string")return null;let K=uZ.exec(J);if(K)return wQ(K[0]);let Y=nZ.exec(J)||iZ.exec(J);if(Y)return WQ(Y);let X=JQ.exec(J)||YQ.exec(J)||sZ.exec(J)||tZ.exec(J);if(X)return N8(X);if(ZQ.exec(J))return N8([null,0,0,0,0]);let Z=e7.default[J.toLowerCase()];if(Z)return N8([null,Z[0],Z[1],Z[2],1]);return null},j8=$Q;var VK=$1(m6(),1),BK=$1(O8(),1),y9=$1(X2(),1);function Y9(J,K=","){let Y=[],X=0,Z=0;K=new RegExp(K);for(let Q=0;Q<J.length;Q++)J[Q]==="("?Z++:J[Q]===")"&&Z--,Z===0&&K.test(J[Q])&&(Y.push(J.slice(X,Q).trim()),X=Q+1);return Y.push(J.slice(X).trim()),Y}function K9(J){let K=[];for(let Y=0,X=J.length;Y<X;){let[Z,Q]=Y9(J[Y],/\s+/);UQ(J[Y+1])?(K.push({color:Z,offset:K5(Q),hint:K5(J[Y+1])}),Y+=2):(K.push({color:Z,offset:K5(Q)}),Y++)}return K}var w2=/^(-?\d+\.?\d*)(%|vw|vh|px|em|rem|deg|rad|grad|turn)$/;function UQ(J){return w2.test(J)}function K5(J){if(!J)return;let[,K,Y]=J.trim().match(w2)||[];return{value:K,unit:Y}}function W2(J){if(!/^(repeating-)?linear-gradient/.test(J))throw SyntaxError(`could not find syntax for this item: ${J}`);let[,K,Y]=J.match(/(repeating-)?linear-gradient\((.+)\)/),X={orientation:{type:"directional",value:"bottom"},repeating:!!K,stops:[]},Z=Y9(Y),Q=AQ(Z[0]);return Q&&(X.orientation=Q,Z.shift()),{...X,stops:K9(Z)}}function AQ(J){return J.startsWith("to ")?{type:"directional",value:J.replace("to ","")}:["turn","deg","grad","rad"].some((K)=>J.endsWith(K))?{type:"angular",value:K5(J)}:null}var VQ=new Set(["closest-corner","closest-side","farthest-corner","farthest-side"]),BQ=new Set(["center","left","top","right","bottom"]);function Z2(J){return VQ.has(J)}function Q2(J){return BQ.has(J)}function GQ(J){let K=Array(2).fill("");for(let Y=0;Y<2;Y++)J[Y]?K[Y]=J[Y]:K[Y]="center";return K}function $2(J){if(!/(repeating-)?radial-gradient/.test(J))throw SyntaxError(`could not find syntax for this item: ${J}`);let[,K,Y]=J.match(/(repeating-)?radial-gradient\((.+)\)/),X={shape:"ellipse",repeating:!!K,size:[{type:"keyword",value:"farthest-corner"}],position:{x:{type:"keyword",value:"center"},y:{type:"keyword",value:"center"}},stops:[]},Z=Y9(Y);if(LQ(Z[0]))return{...X,stops:K9(Z)};let Q=Z[0].split("at").map((z)=>z.trim()),w=((Q[0]||"").match(/(circle|ellipse)/)||[])[1],$=(Q[0]||"").match(/(-?\d+\.?\d*(vw|vh|px|em|rem|%|rad|grad|turn|deg)?|closest-corner|closest-side|farthest-corner|farthest-side)/g)||[],W=GQ((Q[1]||"").split(" "));return w?X.shape=w:$.length===1&&!Z2($[0])?X.shape="circle":X.shape="ellipse",$.length===0&&$.push("farthest-corner"),X.size=$.map((z)=>Z2(z)?{type:"keyword",value:z}:{type:"length",value:K5(z)}),X.position.x=Q2(W[0])?{type:"keyword",value:W[0]}:{type:"length",value:K5(W[0])},X.position.y=Q2(W[1])?{type:"keyword",value:W[1]}:{type:"length",value:K5(W[1])},(w||$.length>0||Q[1])&&Z.shift(),{...X,stops:K9(Z)}}function LQ(J){return/(circle|ellipse|at)/.test(J)?!1:/^(rgba?|hwb|hsl|lab|lch|oklab|color|#|[a-zA-Z]+)/.test(J)}var k9=$1(O8(),1);var K1=Uint8Array,X5=Uint16Array,g2=Uint32Array,x2=new K1([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),b2=new K1([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),qQ=new K1([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),f2=function(J,K){var Y=new X5(31);for(var X=0;X<31;++X)Y[X]=K+=1<<J[X-1];var Z=new g2(Y[30]);for(var X=1;X<30;++X)for(var Q=Y[X];Q<Y[X+1];++Q)Z[Q]=Q-Y[X]<<5|X;return[Y,Z]},m2=f2(x2,2),c2=m2[0],OQ=m2[1];c2[28]=258,OQ[258]=28;var MQ=f2(b2,0),NQ=MQ[0],A9=new X5(32768);for(w0=0;w0<32768;++w0)E1=(w0&43690)>>>1|(w0&21845)<<1,E1=(E1&52428)>>>2|(E1&13107)<<2,E1=(E1&61680)>>>4|(E1&3855)<<4,A9[w0]=((E1&65280)>>>8|(E1&255)<<8)>>>1;var E1,w0,k5=function(J,K,Y){var X=J.length,Z=0,Q=new X5(K);for(;Z<X;++Z)if(J[Z])++Q[J[Z]-1];var w=new X5(K);for(Z=0;Z<K;++Z)w[Z]=w[Z-1]+Q[Z-1]<<1;var $;if(Y){$=new X5(1<<K);var W=15-K;for(Z=0;Z<X;++Z)if(J[Z]){var z=Z<<4|J[Z],H=K-J[Z],U=w[J[Z]-1]++<<H;for(var A=U|(1<<H)-1;U<=A;++U)$[A9[U]>>>W]=z}}else{$=new X5(X);for(Z=0;Z<X;++Z)if(J[Z])$[Z]=A9[w[J[Z]-1]++]>>>15-J[Z]}return $},b5=new K1(288);for(w0=0;w0<144;++w0)b5[w0]=8;var w0;for(w0=144;w0<256;++w0)b5[w0]=9;var w0;for(w0=256;w0<280;++w0)b5[w0]=7;var w0;for(w0=280;w0<288;++w0)b5[w0]=8;var w0,l2=new K1(32);for(w0=0;w0<32;++w0)l2[w0]=5;var w0,jQ=k5(b5,9,1),EQ=k5(l2,5,1),X9=function(J){var K=J[0];for(var Y=1;Y<J.length;++Y)if(J[Y]>K)K=J[Y];return K},z1=function(J,K,Y){var X=K/8|0;return(J[X]|J[X+1]<<8)>>(K&7)&Y},Z9=function(J,K){var Y=K/8|0;return(J[Y]|J[Y+1]<<8|J[Y+2]<<16)>>(K&7)},FQ=function(J){return(J+7)/8|0},_Q=function(J,K,Y){if(K==null||K<0)K=0;if(Y==null||Y>J.length)Y=J.length;var X=new(J.BYTES_PER_ELEMENT==2?X5:J.BYTES_PER_ELEMENT==4?g2:K1)(Y-K);return X.set(J.subarray(K,Y)),X},IQ=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],d1=function(J,K,Y){var X=Error(K||IQ[J]);if(X.code=J,Error.captureStackTrace)Error.captureStackTrace(X,d1);if(!Y)throw X;return X},RQ=function(J,K,Y){var X=J.length;if(!X||Y&&Y.f&&!Y.l)return K||new K1(0);var Z=!K||Y,Q=!Y||Y.i;if(!Y)Y={};if(!K)K=new K1(X*3);var w=function(g){var J0=K.length;if(g>J0){var X0=new K1(Math.max(J0*2,g));X0.set(K),K=X0}},$=Y.f||0,W=Y.p||0,z=Y.b||0,H=Y.l,U=Y.d,A=Y.m,V=Y.n,L=X*8;do{if(!H){$=z1(J,W,1);var B=z1(J,W+1,3);if(W+=3,!B){var q=FQ(W)+4,M=J[q-4]|J[q-3]<<8,N=q+M;if(N>X){if(Q)d1(0);break}if(Z)w(z+M);K.set(J.subarray(q,N),z),Y.b=z+=M,Y.p=W=N*8,Y.f=$;continue}else if(B==1)H=jQ,U=EQ,A=9,V=5;else if(B==2){var E=z1(J,W,31)+257,I=z1(J,W+10,15)+4,F=E+z1(J,W+5,31)+1;W+=14;var j=new K1(F),C=new K1(19);for(var R=0;R<I;++R)C[qQ[R]]=z1(J,W+R*3,7);W+=I*3;var T=X9(C),k=(1<<T)-1,d=k5(C,T,1);for(var R=0;R<F;){var u=d[z1(J,W,k)];W+=u&15;var q=u>>>4;if(q<16)j[R++]=q;else{var p=0,P=0;if(q==16)P=3+z1(J,W,3),W+=2,p=j[R-1];else if(q==17)P=3+z1(J,W,7),W+=3;else if(q==18)P=11+z1(J,W,127),W+=7;while(P--)j[R++]=p}}var S=j.subarray(0,E),D=j.subarray(E);A=X9(S),V=X9(D),H=k5(S,A,1),U=k5(D,V,1)}else d1(1);if(W>L){if(Q)d1(0);break}}if(Z)w(z+131072);var l=(1<<A)-1,f=(1<<V)-1,o=W;for(;;o=W){var p=H[Z9(J,W)&l],i=p>>>4;if(W+=p&15,W>L){if(Q)d1(0);break}if(!p)d1(2);if(i<256)K[z++]=i;else if(i==256){o=W,H=null;break}else{var m=i-254;if(i>264){var R=i-257,c=x2[R];m=z1(J,W,(1<<c)-1)+c2[R],W+=c}var h=U[Z9(J,W)&f],y=h>>>4;if(!h)d1(3);W+=h&15;var D=NQ[y];if(y>3){var c=b2[y];D+=Z9(J,W)&(1<<c)-1,W+=c}if(W>L){if(Q)d1(0);break}if(Z)w(z+131072);var s=z+m;for(;z<s;z+=4)K[z]=K[z-D],K[z+1]=K[z+1-D],K[z+2]=K[z+2-D],K[z+3]=K[z+3-D];z=s}}if(Y.l=H,Y.p=o,Y.b=z,Y.f=$,H)$=1,Y.m=A,Y.d=U,Y.n=V}while(!$);return z==K.length?K:_Q(K,0,z)},DQ=new K1(0);function CQ(J,K){return RQ(J,K)}var TQ=typeof TextDecoder<"u"&&new TextDecoder,PQ=0;try{TQ.decode(DQ,{stream:!0}),PQ=1}catch(J){}function f0(){this.commands=[],this.fill="black",this.stroke=null,this.strokeWidth=1}f0.prototype.moveTo=function(J,K){this.commands.push({type:"M",x:J,y:K})};f0.prototype.lineTo=function(J,K){this.commands.push({type:"L",x:J,y:K})};f0.prototype.curveTo=f0.prototype.bezierCurveTo=function(J,K,Y,X,Z,Q){this.commands.push({type:"C",x1:J,y1:K,x2:Y,y2:X,x:Z,y:Q})};f0.prototype.quadTo=f0.prototype.quadraticCurveTo=function(J,K,Y,X){this.commands.push({type:"Q",x1:J,y1:K,x:Y,y:X})};f0.prototype.close=f0.prototype.closePath=function(){this.commands.push({type:"Z"})};f0.prototype.extend=function(J){if(J.commands)J=J.commands;Array.prototype.push.apply(this.commands,J)};f0.prototype.toPathData=function(J){J=J!==void 0?J:2;function K(w){if(Math.round(w)===w)return""+Math.round(w);else return w.toFixed(J)}function Y(){var w=arguments,$="";for(var W=0;W<arguments.length;W+=1){var z=w[W];if(z>=0&&W>0)$+=" ";$+=K(z)}return $}var X="";for(var Z=0;Z<this.commands.length;Z+=1){var Q=this.commands[Z];if(Q.type==="M")X+="M"+Y(Q.x,Q.y);else if(Q.type==="L")X+="L"+Y(Q.x,Q.y);else if(Q.type==="C")X+="C"+Y(Q.x1,Q.y1,Q.x2,Q.y2,Q.x,Q.y);else if(Q.type==="Q")X+="Q"+Y(Q.x1,Q.y1,Q.x,Q.y);else if(Q.type==="Z")X+="Z"}return X};var SQ=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","266 ff","onedotenleader","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall","001.000","001.001","001.002","001.003","Black","Bold","Book","Light","Medium","Regular","Roman","Semibold"],vQ=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","","endash","dagger","daggerdbl","periodcentered","","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","","questiondown","","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","","ring","cedilla","","hungarumlaut","ogonek","caron","emdash","","","","","","","","","","","","","","","","","AE","","ordfeminine","","","","","Lslash","Oslash","OE","ordmasculine","","","","","","ae","","","","dotlessi","","","lslash","oslash","oe","germandbls"],hQ=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","","asuperior","bsuperior","centsuperior","dsuperior","esuperior","","","isuperior","","","lsuperior","msuperior","nsuperior","osuperior","","","rsuperior","ssuperior","tsuperior","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdownsmall","centoldstyle","Lslashsmall","","","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","","Dotaccentsmall","","","Macronsmall","","","figuredash","hypheninferior","","","Ogoneksmall","Ringsmall","Cedillasmall","","","","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"];function d2(J){this.font=J}d2.prototype.charToGlyphIndex=function(J){var K=J.codePointAt(0),Y=this.font.glyphs;if(Y)for(var X=0;X<Y.length;X+=1){var Z=Y.get(X);for(var Q=0;Q<Z.unicodes.length;Q+=1)if(Z.unicodes[Q]===K)return X}return null};function u2(J){this.cmap=J}u2.prototype.charToGlyphIndex=function(J){return this.cmap.glyphIndexMap[J.codePointAt(0)]||0};function I8(J,K){this.encoding=J,this.charset=K}I8.prototype.charToGlyphIndex=function(J){var K=J.codePointAt(0),Y=this.encoding[K];return this.charset.indexOf(Y)};function yQ(J){var K,Y=J.tables.cmap.glyphIndexMap,X=Object.keys(Y);for(var Z=0;Z<X.length;Z+=1){var Q=X[Z],w=Y[Q];K=J.glyphs.get(w),K.addUnicode(parseInt(Q))}}function kQ(J){J._IndexToUnicodeMap={};var K=J.tables.cmap.glyphIndexMap,Y=Object.keys(K);for(var X=0;X<Y.length;X+=1){var Z=Y[X],Q=K[Z];if(J._IndexToUnicodeMap[Q]===void 0)J._IndexToUnicodeMap[Q]={unicodes:[parseInt(Z)]};else J._IndexToUnicodeMap[Q].unicodes.push(parseInt(Z))}}function gQ(J,K){if(K.lowMemory)kQ(J);else yQ(J)}function p2(J){throw Error(J)}function z2(J,K){if(!J)p2(K)}var H0={fail:p2,argument:z2,assert:z2};function xQ(J,K){var Y=K||new f0;return{configurable:!0,get:function(){if(typeof Y==="function")Y=Y();return Y},set:function(X){Y=X}}}function S1(J){this.bindConstructorValues(J)}S1.prototype.bindConstructorValues=function(J){if(this.index=J.index||0,this.name=J.name||null,this.unicode=J.unicode||void 0,this.unicodes=J.unicodes||J.unicode!==void 0?[J.unicode]:[],"xMin"in J)this.xMin=J.xMin;if("yMin"in J)this.yMin=J.yMin;if("xMax"in J)this.xMax=J.xMax;if("yMax"in J)this.yMax=J.yMax;if("advanceWidth"in J)this.advanceWidth=J.advanceWidth;Object.defineProperty(this,"path",xQ(this,J.path))};S1.prototype.addUnicode=function(J){if(this.unicodes.length===0)this.unicode=J;this.unicodes.push(J)};S1.prototype.getPath=function(J,K,Y,X,Z){J=J!==void 0?J:0,K=K!==void 0?K:0,Y=Y!==void 0?Y:72;var Q,w;if(!X)X={};var{xScale:$,yScale:W}=X;if(X.hinting&&Z&&Z.hinting)w=this.path&&Z.hinting.exec(this,Y);if(w)Q=Z.hinting.getCommands(w),J=Math.round(J),K=Math.round(K),$=W=1;else{Q=this.path.commands;var z=1/(this.path.unitsPerEm||1000)*Y;if($===void 0)$=z;if(W===void 0)W=z}var H=new f0;for(var U=0;U<Q.length;U+=1){var A=Q[U];if(A.type==="M")H.moveTo(J+A.x*$,K+-A.y*W);else if(A.type==="L")H.lineTo(J+A.x*$,K+-A.y*W);else if(A.type==="Q")H.quadraticCurveTo(J+A.x1*$,K+-A.y1*W,J+A.x*$,K+-A.y*W);else if(A.type==="C")H.curveTo(J+A.x1*$,K+-A.y1*W,J+A.x2*$,K+-A.y2*W,J+A.x*$,K+-A.y*W);else if(A.type==="Z")H.closePath()}return H};S1.prototype.getContours=function(){if(this.points===void 0)return[];var J=[],K=[];for(var Y=0;Y<this.points.length;Y+=1){var X=this.points[Y];if(K.push(X),X.lastPointOfContour)J.push(K),K=[]}return H0.argument(K.length===0,"There are still points left in the current contour."),J};S1.prototype.getMetrics=function(){var J=this.path.commands,K=[],Y=[];for(var X=0;X<J.length;X+=1){var Z=J[X];if(Z.type!=="Z")K.push(Z.x),Y.push(Z.y);if(Z.type==="Q"||Z.type==="C")K.push(Z.x1),Y.push(Z.y1);if(Z.type==="C")K.push(Z.x2),Y.push(Z.y2)}var Q={xMin:Math.min.apply(null,K),yMin:Math.min.apply(null,Y),xMax:Math.max.apply(null,K),yMax:Math.max.apply(null,Y),leftSideBearing:this.leftSideBearing};if(!isFinite(Q.xMin))Q.xMin=0;if(!isFinite(Q.xMax))Q.xMax=this.advanceWidth;if(!isFinite(Q.yMin))Q.yMin=0;if(!isFinite(Q.yMax))Q.yMax=0;return Q.rightSideBearing=this.advanceWidth-Q.leftSideBearing-(Q.xMax-Q.xMin),Q};function E8(J,K,Y){Object.defineProperty(J,K,{get:function(){return J.path,J[Y]},set:function(X){J[Y]=X},enumerable:!0,configurable:!0})}function G9(J,K){if(this.font=J,this.glyphs={},Array.isArray(K))for(var Y=0;Y<K.length;Y++){var X=K[Y];X.path.unitsPerEm=J.unitsPerEm,this.glyphs[Y]=X}this.length=K&&K.length||0}G9.prototype.get=function(J){if(this.glyphs[J]===void 0){if(this.font._push(J),typeof this.glyphs[J]==="function")this.glyphs[J]=this.glyphs[J]();var K=this.glyphs[J],Y=this.font._IndexToUnicodeMap[J];if(Y)for(var X=0;X<Y.unicodes.length;X++)K.addUnicode(Y.unicodes[X]);this.glyphs[J].advanceWidth=this.font._hmtxTableData[J].advanceWidth,this.glyphs[J].leftSideBearing=this.font._hmtxTableData[J].leftSideBearing}else if(typeof this.glyphs[J]==="function")this.glyphs[J]=this.glyphs[J]();return this.glyphs[J]};G9.prototype.push=function(J,K){this.glyphs[J]=K,this.length++};function bQ(J,K){return new S1({index:K,font:J})}function fQ(J,K,Y,X,Z,Q){return function(){var w=new S1({index:K,font:J});return w.path=function(){Y(w,X,Z);var $=Q(J.glyphs,w);return $.unitsPerEm=J.unitsPerEm,$},E8(w,"xMin","_xMin"),E8(w,"xMax","_xMax"),E8(w,"yMin","_yMin"),E8(w,"yMax","_yMax"),w}}function mQ(J,K,Y,X){return function(){var Z=new S1({index:K,font:J});return Z.path=function(){var Q=Y(J,Z,X);return Q.unitsPerEm=J.unitsPerEm,Q},Z}}var _1={GlyphSet:G9,glyphLoader:bQ,ttfGlyphLoader:fQ,cffGlyphLoader:mQ};function Q9(J,K){var Y=0,X=J.length-1;while(Y<=X){var Z=Y+X>>>1,Q=J[Z].tag;if(Q===K)return Z;else if(Q<K)Y=Z+1;else X=Z-1}return-Y-1}function H2(J,K){var Y=0,X=J.length-1;while(Y<=X){var Z=Y+X>>>1,Q=J[Z];if(Q===K)return Z;else if(Q<K)Y=Z+1;else X=Z-1}return-Y-1}function U2(J,K){var Y,X=0,Z=J.length-1;while(X<=Z){var Q=X+Z>>>1;Y=J[Q];var w=Y.start;if(w===K)return Y;else if(w<K)X=Q+1;else Z=Q-1}if(X>0){if(Y=J[X-1],K>Y.end)return 0;return Y}}function f5(J,K){this.font=J,this.tableName=K}f5.prototype={searchTag:Q9,binSearch:H2,getTable:function(J){var K=this.font.tables[this.tableName];if(!K&&J)K=this.font.tables[this.tableName]=this.createDefaultTable();return K},getDefaultScriptName:function(){var J=this.getTable();if(!J)return;var K=!1;for(var Y=0;Y<J.scripts.length;Y++){var X=J.scripts[Y].tag;if(X==="DFLT")return X;if(X==="latn")K=!0}if(K)return"latn"},getScriptTable:function(J,K){var Y=this.getTable(K);if(Y){J=J||"DFLT";var X=Y.scripts,Z=Q9(Y.scripts,J);if(Z>=0)return X[Z].script;else if(K){var Q={tag:J,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return X.splice(-1-Z,0,Q),Q.script}}},getLangSysTable:function(J,K,Y){var X=this.getScriptTable(J,Y);if(X){if(!K||K==="dflt"||K==="DFLT")return X.defaultLangSys;var Z=Q9(X.langSysRecords,K);if(Z>=0)return X.langSysRecords[Z].langSys;else if(Y){var Q={tag:K,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return X.langSysRecords.splice(-1-Z,0,Q),Q.langSys}}},getFeatureTable:function(J,K,Y,X){var Z=this.getLangSysTable(J,K,X);if(Z){var Q,w=Z.featureIndexes,$=this.font.tables[this.tableName].features;for(var W=0;W<w.length;W++)if(Q=$[w[W]],Q.tag===Y)return Q.feature;if(X){var z=$.length;return H0.assert(z===0||Y>=$[z-1].tag,"Features must be added in alphabetical order."),Q={tag:Y,feature:{params:0,lookupListIndexes:[]}},$.push(Q),w.push(z),Q.feature}}},getLookupTables:function(J,K,Y,X,Z){var Q=this.getFeatureTable(J,K,Y,Z),w=[];if(Q){var $,W=Q.lookupListIndexes,z=this.font.tables[this.tableName].lookups;for(var H=0;H<W.length;H++)if($=z[W[H]],$.lookupType===X)w.push($);if(w.length===0&&Z){$={lookupType:X,lookupFlag:0,subtables:[],markFilteringSet:void 0};var U=z.length;return z.push($),W.push(U),[$]}}return w},getGlyphClass:function(J,K){switch(J.format){case 1:if(J.startGlyph<=K&&K<J.startGlyph+J.classes.length)return J.classes[K-J.startGlyph];return 0;case 2:var Y=U2(J.ranges,K);return Y?Y.classId:0}},getCoverageIndex:function(J,K){switch(J.format){case 1:var Y=H2(J.glyphs,K);return Y>=0?Y:-1;case 2:var X=U2(J.ranges,K);return X?X.index+K-X.start:-1}},expandCoverage:function(J){if(J.format===1)return J.glyphs;else{var K=[],Y=J.ranges;for(var X=0;X<Y.length;X++){var Z=Y[X],Q=Z.start,w=Z.end;for(var $=Q;$<=w;$++)K.push($)}return K}}};function m5(J){f5.call(this,J,"gpos")}m5.prototype=f5.prototype;m5.prototype.init=function(){var J=this.getDefaultScriptName();this.defaultKerningTables=this.getKerningTables(J)};m5.prototype.getKerningValue=function(J,K,Y){for(var X=0;X<J.length;X++){var Z=J[X].subtables;for(var Q=0;Q<Z.length;Q++){var w=Z[Q],$=this.getCoverageIndex(w.coverage,K);if($<0)continue;switch(w.posFormat){case 1:var W=w.pairSets[$];for(var z=0;z<W.length;z++){var H=W[z];if(H.secondGlyph===Y)return H.value1&&H.value1.xAdvance||0}break;case 2:var U=this.getGlyphClass(w.classDef1,K),A=this.getGlyphClass(w.classDef2,Y),V=w.classRecords[U][A];return V.value1&&V.value1.xAdvance||0}}}return 0};m5.prototype.getKerningTables=function(J,K){if(this.font.tables.gpos)return this.getLookupTables(J,K,"kern",2)};function o0(J){f5.call(this,J,"gsub")}function cQ(J,K){var Y=J.length;if(Y!==K.length)return!1;for(var X=0;X<Y;X++)if(J[X]!==K[X])return!1;return!0}function L9(J,K,Y){var X=J.subtables;for(var Z=0;Z<X.length;Z++){var Q=X[Z];if(Q.substFormat===K)return Q}if(Y)return X.push(Y),Y;return}o0.prototype=f5.prototype;o0.prototype.createDefaultTable=function(){return{version:1,scripts:[{tag:"DFLT",script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}}],features:[],lookups:[]}};o0.prototype.getSingle=function(J,K,Y){var X=[],Z=this.getLookupTables(K,Y,J,1);for(var Q=0;Q<Z.length;Q++){var w=Z[Q].subtables;for(var $=0;$<w.length;$++){var W=w[$],z=this.expandCoverage(W.coverage),H=void 0;if(W.substFormat===1){var U=W.deltaGlyphId;for(H=0;H<z.length;H++){var A=z[H];X.push({sub:A,by:A+U})}}else{var V=W.substitute;for(H=0;H<z.length;H++)X.push({sub:z[H],by:V[H]})}}}return X};o0.prototype.getMultiple=function(J,K,Y){var X=[],Z=this.getLookupTables(K,Y,J,2);for(var Q=0;Q<Z.length;Q++){var w=Z[Q].subtables;for(var $=0;$<w.length;$++){var W=w[$],z=this.expandCoverage(W.coverage),H=void 0;for(H=0;H<z.length;H++){var U=z[H],A=W.sequences[H];X.push({sub:U,by:A})}}}return X};o0.prototype.getAlternates=function(J,K,Y){var X=[],Z=this.getLookupTables(K,Y,J,3);for(var Q=0;Q<Z.length;Q++){var w=Z[Q].subtables;for(var $=0;$<w.length;$++){var W=w[$],z=this.expandCoverage(W.coverage),H=W.alternateSets;for(var U=0;U<z.length;U++)X.push({sub:z[U],by:H[U]})}}return X};o0.prototype.getLigatures=function(J,K,Y){var X=[],Z=this.getLookupTables(K,Y,J,4);for(var Q=0;Q<Z.length;Q++){var w=Z[Q].subtables;for(var $=0;$<w.length;$++){var W=w[$],z=this.expandCoverage(W.coverage),H=W.ligatureSets;for(var U=0;U<z.length;U++){var A=z[U],V=H[U];for(var L=0;L<V.length;L++){var B=V[L];X.push({sub:[A].concat(B.components),by:B.ligGlyph})}}}}return X};o0.prototype.addSingle=function(J,K,Y,X){var Z=this.getLookupTables(Y,X,J,1,!0)[0],Q=L9(Z,2,{substFormat:2,coverage:{format:1,glyphs:[]},substitute:[]});H0.assert(Q.coverage.format===1,"Single: unable to modify coverage table format "+Q.coverage.format);var w=K.sub,$=this.binSearch(Q.coverage.glyphs,w);if($<0)$=-1-$,Q.coverage.glyphs.splice($,0,w),Q.substitute.splice($,0,0);Q.substitute[$]=K.by};o0.prototype.addMultiple=function(J,K,Y,X){H0.assert(K.by instanceof Array&&K.by.length>1,'Multiple: "by" must be an array of two or more ids');var Z=this.getLookupTables(Y,X,J,2,!0)[0],Q=L9(Z,1,{substFormat:1,coverage:{format:1,glyphs:[]},sequences:[]});H0.assert(Q.coverage.format===1,"Multiple: unable to modify coverage table format "+Q.coverage.format);var w=K.sub,$=this.binSearch(Q.coverage.glyphs,w);if($<0)$=-1-$,Q.coverage.glyphs.splice($,0,w),Q.sequences.splice($,0,0);Q.sequences[$]=K.by};o0.prototype.addAlternate=function(J,K,Y,X){var Z=this.getLookupTables(Y,X,J,3,!0)[0],Q=L9(Z,1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});H0.assert(Q.coverage.format===1,"Alternate: unable to modify coverage table format "+Q.coverage.format);var w=K.sub,$=this.binSearch(Q.coverage.glyphs,w);if($<0)$=-1-$,Q.coverage.glyphs.splice($,0,w),Q.alternateSets.splice($,0,0);Q.alternateSets[$]=K.by};o0.prototype.addLigature=function(J,K,Y,X){var Z=this.getLookupTables(Y,X,J,4,!0)[0],Q=Z.subtables[0];if(!Q)Q={substFormat:1,coverage:{format:1,glyphs:[]},ligatureSets:[]},Z.subtables[0]=Q;H0.assert(Q.coverage.format===1,"Ligature: unable to modify coverage table format "+Q.coverage.format);var w=K.sub[0],$=K.sub.slice(1),W={ligGlyph:K.by,components:$},z=this.binSearch(Q.coverage.glyphs,w);if(z>=0){var H=Q.ligatureSets[z];for(var U=0;U<H.length;U++)if(cQ(H[U].components,$))return;H.push(W)}else z=-1-z,Q.coverage.glyphs.splice(z,0,w),Q.ligatureSets.splice(z,0,[W])};o0.prototype.getFeature=function(J,K,Y){if(/ss\d\d/.test(J))return this.getSingle(J,K,Y);switch(J){case"aalt":case"salt":return this.getSingle(J,K,Y).concat(this.getAlternates(J,K,Y));case"dlig":case"liga":case"rlig":return this.getLigatures(J,K,Y);case"ccmp":return this.getMultiple(J,K,Y).concat(this.getLigatures(J,K,Y));case"stch":return this.getMultiple(J,K,Y)}return};o0.prototype.add=function(J,K,Y,X){if(/ss\d\d/.test(J))return this.addSingle(J,K,Y,X);switch(J){case"aalt":case"salt":if(typeof K.by==="number")return this.addSingle(J,K,Y,X);return this.addAlternate(J,K,Y,X);case"dlig":case"liga":case"rlig":return this.addLigature(J,K,Y,X);case"ccmp":if(K.by instanceof Array)return this.addMultiple(J,K,Y,X);return this.addLigature(J,K,Y,X)}return};function y5(J,K){if(!J)throw K}function A2(J,K){return J.getUint8(K)}function R8(J,K){return J.getUint16(K,!1)}function lQ(J,K){return J.getInt16(K,!1)}function q9(J,K){return J.getUint32(K,!1)}function i2(J,K){var Y=J.getInt16(K,!1),X=J.getUint16(K+2,!1);return Y+X/65535}function dQ(J,K){var Y="";for(var X=K;X<K+4;X+=1)Y+=String.fromCharCode(J.getInt8(X));return Y}function uQ(J,K,Y){var X=0;for(var Z=0;Z<Y;Z+=1)X<<=8,X+=J.getUint8(K+Z);return X}function pQ(J,K,Y){var X=[];for(var Z=K;Z<Y;Z+=1)X.push(J.getUint8(Z));return X}function iQ(J){var K="";for(var Y=0;Y<J.length;Y+=1)K+=String.fromCharCode(J[Y]);return K}var rQ={byte:1,uShort:2,short:2,uLong:4,fixed:4,longDateTime:8,tag:4};function v(J,K){this.data=J,this.offset=K,this.relativeOffset=0}v.prototype.parseByte=function(){var J=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,J};v.prototype.parseChar=function(){var J=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,J};v.prototype.parseCard8=v.prototype.parseByte;v.prototype.parseUShort=function(){var J=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,J};v.prototype.parseCard16=v.prototype.parseUShort;v.prototype.parseSID=v.prototype.parseUShort;v.prototype.parseOffset16=v.prototype.parseUShort;v.prototype.parseShort=function(){var J=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,J};v.prototype.parseF2Dot14=function(){var J=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,J};v.prototype.parseULong=function(){var J=q9(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,J};v.prototype.parseOffset32=v.prototype.parseULong;v.prototype.parseFixed=function(){var J=i2(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,J};v.prototype.parseString=function(J){var K=this.data,Y=this.offset+this.relativeOffset,X="";this.relativeOffset+=J;for(var Z=0;Z<J;Z++)X+=String.fromCharCode(K.getUint8(Y+Z));return X};v.prototype.parseTag=function(){return this.parseString(4)};v.prototype.parseLongDateTime=function(){var J=q9(this.data,this.offset+this.relativeOffset+4);return J-=2082844800,this.relativeOffset+=8,J};v.prototype.parseVersion=function(J){var K=R8(this.data,this.offset+this.relativeOffset),Y=R8(this.data,this.offset+this.relativeOffset+2);if(this.relativeOffset+=4,J===void 0)J=4096;return K+Y/J/10};v.prototype.skip=function(J,K){if(K===void 0)K=1;this.relativeOffset+=rQ[J]*K};v.prototype.parseULongList=function(J){if(J===void 0)J=this.parseULong();var K=Array(J),Y=this.data,X=this.offset+this.relativeOffset;for(var Z=0;Z<J;Z++)K[Z]=Y.getUint32(X),X+=4;return this.relativeOffset+=J*4,K};v.prototype.parseOffset16List=v.prototype.parseUShortList=function(J){if(J===void 0)J=this.parseUShort();var K=Array(J),Y=this.data,X=this.offset+this.relativeOffset;for(var Z=0;Z<J;Z++)K[Z]=Y.getUint16(X),X+=2;return this.relativeOffset+=J*2,K};v.prototype.parseShortList=function(J){var K=Array(J),Y=this.data,X=this.offset+this.relativeOffset;for(var Z=0;Z<J;Z++)K[Z]=Y.getInt16(X),X+=2;return this.relativeOffset+=J*2,K};v.prototype.parseByteList=function(J){var K=Array(J),Y=this.data,X=this.offset+this.relativeOffset;for(var Z=0;Z<J;Z++)K[Z]=Y.getUint8(X++);return this.relativeOffset+=J,K};v.prototype.parseList=function(J,K){if(!K)K=J,J=this.parseUShort();var Y=Array(J);for(var X=0;X<J;X++)Y[X]=K.call(this);return Y};v.prototype.parseList32=function(J,K){if(!K)K=J,J=this.parseULong();var Y=Array(J);for(var X=0;X<J;X++)Y[X]=K.call(this);return Y};v.prototype.parseRecordList=function(J,K){if(!K)K=J,J=this.parseUShort();var Y=Array(J),X=Object.keys(K);for(var Z=0;Z<J;Z++){var Q={};for(var w=0;w<X.length;w++){var $=X[w],W=K[$];Q[$]=W.call(this)}Y[Z]=Q}return Y};v.prototype.parseRecordList32=function(J,K){if(!K)K=J,J=this.parseULong();var Y=Array(J),X=Object.keys(K);for(var Z=0;Z<J;Z++){var Q={};for(var w=0;w<X.length;w++){var $=X[w],W=K[$];Q[$]=W.call(this)}Y[Z]=Q}return Y};v.prototype.parseStruct=function(J){if(typeof J==="function")return J.call(this);else{var K=Object.keys(J),Y={};for(var X=0;X<K.length;X++){var Z=K[X],Q=J[Z];Y[Z]=Q.call(this)}return Y}};v.prototype.parseValueRecord=function(J){if(J===void 0)J=this.parseUShort();if(J===0)return;var K={};if(J&1)K.xPlacement=this.parseShort();if(J&2)K.yPlacement=this.parseShort();if(J&4)K.xAdvance=this.parseShort();if(J&8)K.yAdvance=this.parseShort();if(J&16)K.xPlaDevice=void 0,this.parseShort();if(J&32)K.yPlaDevice=void 0,this.parseShort();if(J&64)K.xAdvDevice=void 0,this.parseShort();if(J&128)K.yAdvDevice=void 0,this.parseShort();return K};v.prototype.parseValueRecordList=function(){var J=this.parseUShort(),K=this.parseUShort(),Y=Array(K);for(var X=0;X<K;X++)Y[X]=this.parseValueRecord(J);return Y};v.prototype.parsePointer=function(J){var K=this.parseOffset16();if(K>0)return new v(this.data,this.offset+K).parseStruct(J);return};v.prototype.parsePointer32=function(J){var K=this.parseOffset32();if(K>0)return new v(this.data,this.offset+K).parseStruct(J);return};v.prototype.parseListOfLists=function(J){var K=this.parseOffset16List(),Y=K.length,X=this.relativeOffset,Z=Array(Y);for(var Q=0;Q<Y;Q++){var w=K[Q];if(w===0){Z[Q]=void 0;continue}if(this.relativeOffset=w,J){var $=this.parseOffset16List(),W=Array($.length);for(var z=0;z<$.length;z++)this.relativeOffset=w+$[z],W[z]=J.call(this);Z[Q]=W}else Z[Q]=this.parseUShortList()}return this.relativeOffset=X,Z};v.prototype.parseCoverage=function(){var J=this.offset+this.relativeOffset,K=this.parseUShort(),Y=this.parseUShort();if(K===1)return{format:1,glyphs:this.parseUShortList(Y)};else if(K===2){var X=Array(Y);for(var Z=0;Z<Y;Z++)X[Z]={start:this.parseUShort(),end:this.parseUShort(),index:this.parseUShort()};return{format:2,ranges:X}}throw Error("0x"+J.toString(16)+": Coverage format must be 1 or 2.")};v.prototype.parseClassDef=function(){var J=this.offset+this.relativeOffset,K=this.parseUShort();if(K===1)return{format:1,startGlyph:this.parseUShort(),classes:this.parseUShortList()};else if(K===2)return{format:2,ranges:this.parseRecordList({start:v.uShort,end:v.uShort,classId:v.uShort})};throw Error("0x"+J.toString(16)+": ClassDef format must be 1 or 2.")};v.list=function(J,K){return function(){return this.parseList(J,K)}};v.list32=function(J,K){return function(){return this.parseList32(J,K)}};v.recordList=function(J,K){return function(){return this.parseRecordList(J,K)}};v.recordList32=function(J,K){return function(){return this.parseRecordList32(J,K)}};v.pointer=function(J){return function(){return this.parsePointer(J)}};v.pointer32=function(J){return function(){return this.parsePointer32(J)}};v.tag=v.prototype.parseTag;v.byte=v.prototype.parseByte;v.uShort=v.offset16=v.prototype.parseUShort;v.uShortList=v.prototype.parseUShortList;v.uLong=v.offset32=v.prototype.parseULong;v.uLongList=v.prototype.parseULongList;v.struct=v.prototype.parseStruct;v.coverage=v.prototype.parseCoverage;v.classDef=v.prototype.parseClassDef;var V2={reserved:v.uShort,reqFeatureIndex:v.uShort,featureIndexes:v.uShortList};v.prototype.parseScriptList=function(){return this.parsePointer(v.recordList({tag:v.tag,script:v.pointer({defaultLangSys:v.pointer(V2),langSysRecords:v.recordList({tag:v.tag,langSys:v.pointer(V2)})})}))||[]};v.prototype.parseFeatureList=function(){return this.parsePointer(v.recordList({tag:v.tag,feature:v.pointer({featureParams:v.offset16,lookupListIndexes:v.uShortList})}))||[]};v.prototype.parseLookupList=function(J){return this.parsePointer(v.list(v.pointer(function(){var K=this.parseUShort();H0.argument(1<=K&&K<=9,"GPOS/GSUB lookup type "+K+" unknown.");var Y=this.parseUShort(),X=Y&16;return{lookupType:K,lookupFlag:Y,subtables:this.parseList(v.pointer(J[K])),markFilteringSet:X?this.parseUShort():void 0}})))||[]};v.prototype.parseFeatureVariationsList=function(){return this.parsePointer32(function(){var J=this.parseUShort(),K=this.parseUShort();H0.argument(J===1&&K<1,"GPOS/GSUB feature variations table unknown.");var Y=this.parseRecordList32({conditionSetOffset:v.offset32,featureTableSubstitutionOffset:v.offset32});return Y})||[]};var n={getByte:A2,getCard8:A2,getUShort:R8,getCard16:R8,getShort:lQ,getULong:q9,getFixed:i2,getTag:dQ,getOffset:uQ,getBytes:pQ,bytesToString:iQ,Parser:v};function B2(J,K,Y,X,Z){var Q;if((K&X)>0){if(Q=J.parseByte(),(K&Z)===0)Q=-Q;Q=Y+Q}else if((K&Z)>0)Q=Y;else Q=Y+J.parseShort();return Q}function r2(J,K,Y){var X=new n.Parser(K,Y);J.numberOfContours=X.parseShort(),J._xMin=X.parseShort(),J._yMin=X.parseShort(),J._xMax=X.parseShort(),J._yMax=X.parseShort();var Z,Q;if(J.numberOfContours>0){var w=J.endPointIndices=[];for(var $=0;$<J.numberOfContours;$+=1)w.push(X.parseUShort());J.instructionLength=X.parseUShort(),J.instructions=[];for(var W=0;W<J.instructionLength;W+=1)J.instructions.push(X.parseByte());var z=w[w.length-1]+1;Z=[];for(var H=0;H<z;H+=1)if(Q=X.parseByte(),Z.push(Q),(Q&8)>0){var U=X.parseByte();for(var A=0;A<U;A+=1)Z.push(Q),H+=1}if(H0.argument(Z.length===z,"Bad flags."),w.length>0){var V=[],L;if(z>0){for(var B=0;B<z;B+=1)Q=Z[B],L={},L.onCurve=!!(Q&1),L.lastPointOfContour=w.indexOf(B)>=0,V.push(L);var q=0;for(var M=0;M<z;M+=1)Q=Z[M],L=V[M],L.x=B2(X,Q,q,2,16),q=L.x;var N=0;for(var E=0;E<z;E+=1)Q=Z[E],L=V[E],L.y=B2(X,Q,N,4,32),N=L.y}J.points=V}else J.points=[]}else if(J.numberOfContours===0)J.points=[];else{J.isComposite=!0,J.points=[],J.components=[];var I=!0;while(I){Z=X.parseUShort();var F={glyphIndex:X.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};if((Z&1)>0)if((Z&2)>0)F.dx=X.parseShort(),F.dy=X.parseShort();else F.matchedPoints=[X.parseUShort(),X.parseUShort()];else if((Z&2)>0)F.dx=X.parseChar(),F.dy=X.parseChar();else F.matchedPoints=[X.parseByte(),X.parseByte()];if((Z&8)>0)F.xScale=F.yScale=X.parseF2Dot14();else if((Z&64)>0)F.xScale=X.parseF2Dot14(),F.yScale=X.parseF2Dot14();else if((Z&128)>0)F.xScale=X.parseF2Dot14(),F.scale01=X.parseF2Dot14(),F.scale10=X.parseF2Dot14(),F.yScale=X.parseF2Dot14();J.components.push(F),I=!!(Z&32)}if(Z&256){J.instructionLength=X.parseUShort(),J.instructions=[];for(var j=0;j<J.instructionLength;j+=1)J.instructions.push(X.parseByte())}}}function w9(J,K){var Y=[];for(var X=0;X<J.length;X+=1){var Z=J[X],Q={x:K.xScale*Z.x+K.scale01*Z.y+K.dx,y:K.scale10*Z.x+K.yScale*Z.y+K.dy,onCurve:Z.onCurve,lastPointOfContour:Z.lastPointOfContour};Y.push(Q)}return Y}function nQ(J){var K=[],Y=[];for(var X=0;X<J.length;X+=1){var Z=J[X];if(Y.push(Z),Z.lastPointOfContour)K.push(Y),Y=[]}return H0.argument(Y.length===0,"There are still points left in the current contour."),K}function n2(J){var K=new f0;if(!J)return K;var Y=nQ(J);for(var X=0;X<Y.length;++X){var Z=Y[X],Q=null,w=Z[Z.length-1],$=Z[0];if(w.onCurve)K.moveTo(w.x,w.y);else if($.onCurve)K.moveTo($.x,$.y);else{var W={x:(w.x+$.x)*0.5,y:(w.y+$.y)*0.5};K.moveTo(W.x,W.y)}for(var z=0;z<Z.length;++z)if(Q=w,w=$,$=Z[(z+1)%Z.length],w.onCurve)K.lineTo(w.x,w.y);else{var H=Q,U=$;if(!Q.onCurve)H={x:(w.x+Q.x)*0.5,y:(w.y+Q.y)*0.5};if(!$.onCurve)U={x:(w.x+$.x)*0.5,y:(w.y+$.y)*0.5};K.quadraticCurveTo(w.x,w.y,U.x,U.y)}K.closePath()}return K}function o2(J,K){if(K.isComposite)for(var Y=0;Y<K.components.length;Y+=1){var X=K.components[Y],Z=J.get(X.glyphIndex);if(Z.getPath(),Z.points){var Q=void 0;if(X.matchedPoints===void 0)Q=w9(Z.points,X);else{if(X.matchedPoints[0]>K.points.length-1||X.matchedPoints[1]>Z.points.length-1)throw Error("Matched points out of range in "+K.name);var w=K.points[X.matchedPoints[0]],$=Z.points[X.matchedPoints[1]],W={xScale:X.xScale,scale01:X.scale01,scale10:X.scale10,yScale:X.yScale,dx:0,dy:0};$=w9([$],W)[0],W.dx=w.x-$.x,W.dy=w.y-$.y,Q=w9(Z.points,W)}K.points=K.points.concat(Q)}}return n2(K.points)}function oQ(J,K,Y,X){var Z=new _1.GlyphSet(X);for(var Q=0;Q<Y.length-1;Q+=1){var w=Y[Q],$=Y[Q+1];if(w!==$)Z.push(Q,_1.ttfGlyphLoader(X,Q,r2,J,K+w,o2));else Z.push(Q,_1.glyphLoader(X,Q))}return Z}function sQ(J,K,Y,X){var Z=new _1.GlyphSet(X);return X._push=function(Q){var w=Y[Q],$=Y[Q+1];if(w!==$)Z.push(Q,_1.ttfGlyphLoader(X,Q,r2,J,K+w,o2));else Z.push(Q,_1.glyphLoader(X,Q))},Z}function aQ(J,K,Y,X,Z){if(Z.lowMemory)return sQ(J,K,Y,X);else return oQ(J,K,Y,X)}var s2={getPath:n2,parse:aQ},a2,Z5,t2,V9;function e2(J){this.font=J,this.getCommands=function(K){return s2.getPath(K).commands},this._fpgmState=this._prepState=void 0,this._errorState=0}function tQ(J){return J}function JJ(J){return Math.sign(J)*Math.round(Math.abs(J))}function eQ(J){return Math.sign(J)*Math.round(Math.abs(J*2))/2}function Jw(J){return Math.sign(J)*(Math.round(Math.abs(J)+0.5)-0.5)}function Kw(J){return Math.sign(J)*Math.ceil(Math.abs(J))}function Yw(J){return Math.sign(J)*Math.floor(Math.abs(J))}var KJ=function(J){var K=this.srPeriod,Y=this.srPhase,X=this.srThreshold,Z=1;if(J<0)J=-J,Z=-1;if(J+=X-Y,J=Math.trunc(J/K)*K,J+=Y,J<0)return Y*Z;return J*Z},F1={x:1,y:0,axis:"x",distance:function(J,K,Y,X){return(Y?J.xo:J.x)-(X?K.xo:K.x)},interpolate:function(J,K,Y,X){var Z,Q,w,$,W,z,H;if(!X||X===this){if(Z=J.xo-K.xo,Q=J.xo-Y.xo,W=K.x-K.xo,z=Y.x-Y.xo,w=Math.abs(Z),$=Math.abs(Q),H=w+$,H===0){J.x=J.xo+(W+z)/2;return}J.x=J.xo+(W*$+z*w)/H;return}if(Z=X.distance(J,K,!0,!0),Q=X.distance(J,Y,!0,!0),W=X.distance(K,K,!1,!0),z=X.distance(Y,Y,!1,!0),w=Math.abs(Z),$=Math.abs(Q),H=w+$,H===0){F1.setRelative(J,J,(W+z)/2,X,!0);return}F1.setRelative(J,J,(W*$+z*w)/H,X,!0)},normalSlope:Number.NEGATIVE_INFINITY,setRelative:function(J,K,Y,X,Z){if(!X||X===this){J.x=(Z?K.xo:K.x)+Y;return}var Q=Z?K.xo:K.x,w=Z?K.yo:K.y,$=Q+Y*X.x,W=w+Y*X.y;J.x=$+(J.y-W)/X.normalSlope},slope:0,touch:function(J){J.xTouched=!0},touched:function(J){return J.xTouched},untouch:function(J){J.xTouched=!1}},T1={x:0,y:1,axis:"y",distance:function(J,K,Y,X){return(Y?J.yo:J.y)-(X?K.yo:K.y)},interpolate:function(J,K,Y,X){var Z,Q,w,$,W,z,H;if(!X||X===this){if(Z=J.yo-K.yo,Q=J.yo-Y.yo,W=K.y-K.yo,z=Y.y-Y.yo,w=Math.abs(Z),$=Math.abs(Q),H=w+$,H===0){J.y=J.yo+(W+z)/2;return}J.y=J.yo+(W*$+z*w)/H;return}if(Z=X.distance(J,K,!0,!0),Q=X.distance(J,Y,!0,!0),W=X.distance(K,K,!1,!0),z=X.distance(Y,Y,!1,!0),w=Math.abs(Z),$=Math.abs(Q),H=w+$,H===0){T1.setRelative(J,J,(W+z)/2,X,!0);return}T1.setRelative(J,J,(W*$+z*w)/H,X,!0)},normalSlope:0,setRelative:function(J,K,Y,X,Z){if(!X||X===this){J.y=(Z?K.yo:K.y)+Y;return}var Q=Z?K.xo:K.x,w=Z?K.yo:K.y,$=Q+Y*X.x,W=w+Y*X.y;J.y=W+X.normalSlope*(J.x-$)},slope:Number.POSITIVE_INFINITY,touch:function(J){J.yTouched=!0},touched:function(J){return J.yTouched},untouch:function(J){J.yTouched=!1}};Object.freeze(F1);Object.freeze(T1);function c5(J,K){this.x=J,this.y=K,this.axis=void 0,this.slope=K/J,this.normalSlope=-J/K,Object.freeze(this)}c5.prototype.distance=function(J,K,Y,X){return this.x*F1.distance(J,K,Y,X)+this.y*T1.distance(J,K,Y,X)};c5.prototype.interpolate=function(J,K,Y,X){var Z,Q,w,$,W,z,H;if(w=X.distance(J,K,!0,!0),$=X.distance(J,Y,!0,!0),Z=X.distance(K,K,!1,!0),Q=X.distance(Y,Y,!1,!0),W=Math.abs(w),z=Math.abs($),H=W+z,H===0){this.setRelative(J,J,(Z+Q)/2,X,!0);return}this.setRelative(J,J,(Z*z+Q*W)/H,X,!0)};c5.prototype.setRelative=function(J,K,Y,X,Z){X=X||this;var Q=Z?K.xo:K.x,w=Z?K.yo:K.y,$=Q+Y*X.x,W=w+Y*X.y,z=X.normalSlope,H=this.slope,U=J.x,A=J.y;J.x=(H*U-z*$+W-A)/(H-z),J.y=H*(J.x-U)+A};c5.prototype.touch=function(J){J.xTouched=!0,J.yTouched=!0};function l5(J,K){var Y=Math.sqrt(J*J+K*K);if(J/=Y,K/=Y,J===1&&K===0)return F1;else if(J===0&&K===1)return T1;else return new c5(J,K)}function P1(J,K,Y,X){this.x=this.xo=Math.round(J*64)/64,this.y=this.yo=Math.round(K*64)/64,this.lastPointOfContour=Y,this.onCurve=X,this.prevPointOnContour=void 0,this.nextPointOnContour=void 0,this.xTouched=!1,this.yTouched=!1,Object.preventExtensions(this)}P1.prototype.nextTouched=function(J){var K=this.nextPointOnContour;while(!J.touched(K)&&K!==this)K=K.nextPointOnContour;return K};P1.prototype.prevTouched=function(J){var K=this.prevPointOnContour;while(!J.touched(K)&&K!==this)K=K.prevPointOnContour;return K};var x5=Object.freeze(new P1(0,0)),Xw={cvCutIn:1.0625,deltaBase:9,deltaShift:0.125,loop:1,minDis:1,autoFlip:!0};function p1(J,K){switch(this.env=J,this.stack=[],this.prog=K,J){case"glyf":this.zp0=this.zp1=this.zp2=1,this.rp0=this.rp1=this.rp2=0;case"prep":this.fv=this.pv=this.dpv=F1,this.round=JJ}}e2.prototype.exec=function(J,K){if(typeof K!=="number")throw Error("Point size is not a number!");if(this._errorState>2)return;var Y=this.font,X=this._prepState;if(!X||X.ppem!==K){var Z=this._fpgmState;if(!Z){if(p1.prototype=Xw,Z=this._fpgmState=new p1("fpgm",Y.tables.fpgm),Z.funcs=[],Z.font=Y,hB.DEBUG)console.log("---EXEC FPGM---"),Z.step=-1;try{Z5(Z)}catch(z){console.log("Hinting error in FPGM:"+z),this._errorState=3;return}}p1.prototype=Z,X=this._prepState=new p1("prep",Y.tables.prep),X.ppem=K;var Q=Y.tables.cvt;if(Q){var w=X.cvt=Array(Q.length),$=K/Y.unitsPerEm;for(var W=0;W<Q.length;W++)w[W]=Q[W]*$}else X.cvt=[];if(hB.DEBUG)console.log("---EXEC PREP---"),X.step=-1;try{Z5(X)}catch(z){if(this._errorState<2)console.log("Hinting error in PREP:"+z);this._errorState=2}}if(this._errorState>1)return;try{return t2(J,X)}catch(z){if(this._errorState<1)console.log("Hinting error:"+z),console.log("Note: further hinting errors are silenced");this._errorState=1;return}};t2=function(J,K){var Y=K.ppem/K.font.unitsPerEm,X=Y,Z=J.components,Q,w,$;if(p1.prototype=K,!Z){if($=new p1("glyf",J.instructions),hB.DEBUG)console.log("---EXEC GLYPH---"),$.step=-1;V9(J,$,Y,X),w=$.gZone}else{var W=K.font;w=[],Q=[];for(var z=0;z<Z.length;z++){var H=Z[z],U=W.glyphs.get(H.glyphIndex);if($=new p1("glyf",U.instructions),hB.DEBUG)console.log("---EXEC COMP "+z+"---"),$.step=-1;V9(U,$,Y,X);var A=Math.round(H.dx*Y),V=Math.round(H.dy*X),L=$.gZone,B=$.contours;for(var q=0;q<L.length;q++){var M=L[q];M.xTouched=M.yTouched=!1,M.xo=M.x=M.x+A,M.yo=M.y=M.y+V}var N=w.length;w.push.apply(w,L);for(var E=0;E<B.length;E++)Q.push(B[E]+N)}if(J.instructions&&!$.inhibitGridFit){if($=new p1("glyf",J.instructions),$.gZone=$.z0=$.z1=$.z2=w,$.contours=Q,w.push(new P1(0,0),new P1(Math.round(J.advanceWidth*Y),0)),hB.DEBUG)console.log("---EXEC COMPOSITE---"),$.step=-1;Z5($),w.length-=2}}return w};V9=function(J,K,Y,X){var Z=J.points||[],Q=Z.length,w=K.gZone=K.z0=K.z1=K.z2=[],$=K.contours=[],W;for(var z=0;z<Q;z++)W=Z[z],w[z]=new P1(W.x*Y,W.y*X,W.lastPointOfContour,W.onCurve);var H,U;for(var A=0;A<Q;A++){if(W=w[A],!H)H=W,$.push(A);if(W.lastPointOfContour)W.nextPointOnContour=H,H.prevPointOnContour=W,H=void 0;else U=w[A+1],W.nextPointOnContour=U,U.prevPointOnContour=W}if(K.inhibitGridFit)return;if(hB.DEBUG){console.log("PROCESSING GLYPH",K.stack);for(var V=0;V<Q;V++)console.log(V,w[V].x,w[V].y)}if(w.push(new P1(0,0),new P1(Math.round(J.advanceWidth*Y),0)),Z5(K),w.length-=2,hB.DEBUG){console.log("FINISHED GLYPH",K.stack);for(var L=0;L<Q;L++)console.log(L,w[L].x,w[L].y)}};Z5=function(J){var K=J.prog;if(!K)return;var Y=K.length,X;for(J.ip=0;J.ip<Y;J.ip++){if(hB.DEBUG)J.step++;if(X=a2[K[J.ip]],!X)throw Error("unknown instruction: 0x"+Number(K[J.ip]).toString(16));X(J)}};function D8(J){var K=J.tZone=Array(J.gZone.length);for(var Y=0;Y<K.length;Y++)K[Y]=new P1(0,0)}function YJ(J,K){var{prog:Y,ip:X}=J,Z=1,Q;do if(Q=Y[++X],Q===88)Z++;else if(Q===89)Z--;else if(Q===64)X+=Y[X+1]+1;else if(Q===65)X+=2*Y[X+1]+1;else if(Q>=176&&Q<=183)X+=Q-176+1;else if(Q>=184&&Q<=191)X+=(Q-184+1)*2;else if(K&&Z===1&&Q===27)break;while(Z>0);J.ip=X}function G2(J,K){if(hB.DEBUG)console.log(K.step,"SVTCA["+J.axis+"]");K.fv=K.pv=K.dpv=J}function L2(J,K){if(hB.DEBUG)console.log(K.step,"SPVTCA["+J.axis+"]");K.pv=K.dpv=J}function q2(J,K){if(hB.DEBUG)console.log(K.step,"SFVTCA["+J.axis+"]");K.fv=J}function O2(J,K){var Y=K.stack,X=Y.pop(),Z=Y.pop(),Q=K.z2[X],w=K.z1[Z];if(hB.DEBUG)console.log("SPVTL["+J+"]",X,Z);var $,W;if(!J)$=w.x-Q.x,W=w.y-Q.y;else $=Q.y-w.y,W=w.x-Q.x;K.pv=K.dpv=l5($,W)}function M2(J,K){var Y=K.stack,X=Y.pop(),Z=Y.pop(),Q=K.z2[X],w=K.z1[Z];if(hB.DEBUG)console.log("SFVTL["+J+"]",X,Z);var $,W;if(!J)$=w.x-Q.x,W=w.y-Q.y;else $=Q.y-w.y,W=w.x-Q.x;K.fv=l5($,W)}function Zw(J){var K=J.stack,Y=K.pop(),X=K.pop();if(hB.DEBUG)console.log(J.step,"SPVFS[]",Y,X);J.pv=J.dpv=l5(X,Y)}function Qw(J){var K=J.stack,Y=K.pop(),X=K.pop();if(hB.DEBUG)console.log(J.step,"SPVFS[]",Y,X);J.fv=l5(X,Y)}function ww(J){var{stack:K,pv:Y}=J;if(hB.DEBUG)console.log(J.step,"GPV[]");K.push(Y.x*16384),K.push(Y.y*16384)}function Ww(J){var{stack:K,fv:Y}=J;if(hB.DEBUG)console.log(J.step,"GFV[]");K.push(Y.x*16384),K.push(Y.y*16384)}function $w(J){if(J.fv=J.pv,hB.DEBUG)console.log(J.step,"SFVTPV[]")}function zw(J){var K=J.stack,Y=K.pop(),X=K.pop(),Z=K.pop(),Q=K.pop(),w=K.pop(),$=J.z0,W=J.z1,z=$[Y],H=$[X],U=W[Z],A=W[Q],V=J.z2[w];if(hB.DEBUG)console.log("ISECT[], ",Y,X,Z,Q,w);var{x:L,y:B}=z,q=H.x,M=H.y,N=U.x,E=U.y,I=A.x,F=A.y,j=(L-q)*(E-F)-(B-M)*(N-I),C=L*M-B*q,R=N*F-E*I;V.x=(C*(N-I)-R*(L-q))/j,V.y=(C*(E-F)-R*(B-M))/j}function Hw(J){if(J.rp0=J.stack.pop(),hB.DEBUG)console.log(J.step,"SRP0[]",J.rp0)}function Uw(J){if(J.rp1=J.stack.pop(),hB.DEBUG)console.log(J.step,"SRP1[]",J.rp1)}function Aw(J){if(J.rp2=J.stack.pop(),hB.DEBUG)console.log(J.step,"SRP2[]",J.rp2)}function Vw(J){var K=J.stack.pop();if(hB.DEBUG)console.log(J.step,"SZP0[]",K);switch(J.zp0=K,K){case 0:if(!J.tZone)D8(J);J.z0=J.tZone;break;case 1:J.z0=J.gZone;break;default:throw Error("Invalid zone pointer")}}function Bw(J){var K=J.stack.pop();if(hB.DEBUG)console.log(J.step,"SZP1[]",K);switch(J.zp1=K,K){case 0:if(!J.tZone)D8(J);J.z1=J.tZone;break;case 1:J.z1=J.gZone;break;default:throw Error("Invalid zone pointer")}}function Gw(J){var K=J.stack.pop();if(hB.DEBUG)console.log(J.step,"SZP2[]",K);switch(J.zp2=K,K){case 0:if(!J.tZone)D8(J);J.z2=J.tZone;break;case 1:J.z2=J.gZone;break;default:throw Error("Invalid zone pointer")}}function Lw(J){var K=J.stack.pop();if(hB.DEBUG)console.log(J.step,"SZPS[]",K);switch(J.zp0=J.zp1=J.zp2=K,K){case 0:if(!J.tZone)D8(J);J.z0=J.z1=J.z2=J.tZone;break;case 1:J.z0=J.z1=J.z2=J.gZone;break;default:throw Error("Invalid zone pointer")}}function qw(J){if(J.loop=J.stack.pop(),hB.DEBUG)console.log(J.step,"SLOOP[]",J.loop)}function Ow(J){if(hB.DEBUG)console.log(J.step,"RTG[]");J.round=JJ}function Mw(J){if(hB.DEBUG)console.log(J.step,"RTHG[]");J.round=Jw}function Nw(J){var K=J.stack.pop();if(hB.DEBUG)console.log(J.step,"SMD[]",K);J.minDis=K/64}function jw(J){if(hB.DEBUG)console.log(J.step,"ELSE[]");YJ(J,!1)}function Ew(J){var K=J.stack.pop();if(hB.DEBUG)console.log(J.step,"JMPR[]",K);J.ip+=K-1}function Fw(J){var K=J.stack.pop();if(hB.DEBUG)console.log(J.step,"SCVTCI[]",K);J.cvCutIn=K/64}function _w(J){var K=J.stack;if(hB.DEBUG)console.log(J.step,"DUP[]");K.push(K[K.length-1])}function W9(J){if(hB.DEBUG)console.log(J.step,"POP[]");J.stack.pop()}function Iw(J){if(hB.DEBUG)console.log(J.step,"CLEAR[]");J.stack.length=0}function Rw(J){var K=J.stack,Y=K.pop(),X=K.pop();if(hB.DEBUG)console.log(J.step,"SWAP[]");K.push(Y),K.push(X)}function Dw(J){var K=J.stack;if(hB.DEBUG)console.log(J.step,"DEPTH[]");K.push(K.length)}function Cw(J){var K=J.stack,Y=K.pop(),X=K.pop();if(hB.DEBUG)console.log(J.step,"LOOPCALL[]",Y,X);var{ip:Z,prog:Q}=J;J.prog=J.funcs[Y];for(var w=0;w<X;w++)if(Z5(J),hB.DEBUG)console.log(++J.step,w+1<X?"next loopcall":"done loopcall",w);J.ip=Z,J.prog=Q}function Tw(J){var K=J.stack.pop();if(hB.DEBUG)console.log(J.step,"CALL[]",K);var{ip:Y,prog:X}=J;if(J.prog=J.funcs[K],Z5(J),J.ip=Y,J.prog=X,hB.DEBUG)console.log(++J.step,"returning from",K)}function Pw(J){var K=J.stack,Y=K.pop();if(hB.DEBUG)console.log(J.step,"CINDEX[]",Y);K.push(K[K.length-Y])}function Sw(J){var K=J.stack,Y=K.pop();if(hB.DEBUG)console.log(J.step,"MINDEX[]",Y);K.push(K.splice(K.length-Y,1)[0])}function vw(J){if(J.env!=="fpgm")throw Error("FDEF not allowed here");var{stack:K,prog:Y,ip:X}=J,Z=K.pop(),Q=X;if(hB.DEBUG)console.log(J.step,"FDEF[]",Z);while(Y[++X]!==45);J.ip=X,J.funcs[Z]=Y.slice(Q+1,X)}function N2(J,K){var Y=K.stack.pop(),X=K.z0[Y],Z=K.fv,Q=K.pv;if(hB.DEBUG)console.log(K.step,"MDAP["+J+"]",Y);var w=Q.distance(X,x5);if(J)w=K.round(w);Z.setRelative(X,x5,w,Q),Z.touch(X),K.rp0=K.rp1=Y}function j2(J,K){var Y=K.z2,X=Y.length-2,Z,Q,w;if(hB.DEBUG)console.log(K.step,"IUP["+J.axis+"]");for(var $=0;$<X;$++){if(Z=Y[$],J.touched(Z))continue;if(Q=Z.prevTouched(J),Q===Z)continue;if(w=Z.nextTouched(J),Q===w)J.setRelative(Z,Z,J.distance(Q,Q,!1,!0),J,!0);J.interpolate(Z,Q,w,J)}}function E2(J,K){var Y=K.stack,X=J?K.rp1:K.rp2,Z=(J?K.z0:K.z1)[X],Q=K.fv,w=K.pv,$=K.loop,W=K.z2;while($--){var z=Y.pop(),H=W[z],U=w.distance(Z,Z,!1,!0);if(Q.setRelative(H,H,U,w),Q.touch(H),hB.DEBUG)console.log(K.step,(K.loop>1?"loop "+(K.loop-$)+": ":"")+"SHP["+(J?"rp1":"rp2")+"]",z)}K.loop=1}function F2(J,K){var Y=K.stack,X=J?K.rp1:K.rp2,Z=(J?K.z0:K.z1)[X],Q=K.fv,w=K.pv,$=Y.pop(),W=K.z2[K.contours[$]],z=W;if(hB.DEBUG)console.log(K.step,"SHC["+J+"]",$);var H=w.distance(Z,Z,!1,!0);do{if(z!==Z)Q.setRelative(z,z,H,w);z=z.nextPointOnContour}while(z!==W)}function _2(J,K){var Y=K.stack,X=J?K.rp1:K.rp2,Z=(J?K.z0:K.z1)[X],Q=K.fv,w=K.pv,$=Y.pop();if(hB.DEBUG)console.log(K.step,"SHZ["+J+"]",$);var W;switch($){case 0:W=K.tZone;break;case 1:W=K.gZone;break;default:throw Error("Invalid zone")}var z,H=w.distance(Z,Z,!1,!0),U=W.length-2;for(var A=0;A<U;A++)z=W[A],Q.setRelative(z,z,H,w)}function hw(J){var{stack:K,loop:Y,fv:X}=J,Z=K.pop()/64,Q=J.z2;while(Y--){var w=K.pop(),$=Q[w];if(hB.DEBUG)console.log(J.step,(J.loop>1?"loop "+(J.loop-Y)+": ":"")+"SHPIX[]",w,Z);X.setRelative($,$,Z),X.touch($)}J.loop=1}function yw(J){var{stack:K,rp1:Y,rp2:X,loop:Z}=J,Q=J.z0[Y],w=J.z1[X],$=J.fv,W=J.dpv,z=J.z2;while(Z--){var H=K.pop(),U=z[H];if(hB.DEBUG)console.log(J.step,(J.loop>1?"loop "+(J.loop-Z)+": ":"")+"IP[]",H,Y,"<->",X);$.interpolate(U,Q,w,W),$.touch(U)}J.loop=1}function I2(J,K){var Y=K.stack,X=Y.pop()/64,Z=Y.pop(),Q=K.z1[Z],w=K.z0[K.rp0],$=K.fv,W=K.pv;if($.setRelative(Q,w,X,W),$.touch(Q),hB.DEBUG)console.log(K.step,"MSIRP["+J+"]",X,Z);if(K.rp1=K.rp0,K.rp2=Z,J)K.rp0=Z}function kw(J){var{stack:K,rp0:Y}=J,X=J.z0[Y],Z=J.loop,Q=J.fv,w=J.pv,$=J.z1;while(Z--){var W=K.pop(),z=$[W];if(hB.DEBUG)console.log(J.step,(J.loop>1?"loop "+(J.loop-Z)+": ":"")+"ALIGNRP[]",W);Q.setRelative(z,X,0,w),Q.touch(z)}J.loop=1}function gw(J){if(hB.DEBUG)console.log(J.step,"RTDG[]");J.round=eQ}function R2(J,K){var Y=K.stack,X=Y.pop(),Z=Y.pop(),Q=K.z0[Z],w=K.fv,$=K.pv,W=K.cvt[X];if(hB.DEBUG)console.log(K.step,"MIAP["+J+"]",X,"(",W,")",Z);var z=$.distance(Q,x5);if(J){if(Math.abs(z-W)<K.cvCutIn)z=W;z=K.round(z)}if(w.setRelative(Q,x5,z,$),K.zp0===0)Q.xo=Q.x,Q.yo=Q.y;w.touch(Q),K.rp0=K.rp1=Z}function xw(J){var{prog:K,ip:Y,stack:X}=J,Z=K[++Y];if(hB.DEBUG)console.log(J.step,"NPUSHB[]",Z);for(var Q=0;Q<Z;Q++)X.push(K[++Y]);J.ip=Y}function bw(J){var{ip:K,prog:Y,stack:X}=J,Z=Y[++K];if(hB.DEBUG)console.log(J.step,"NPUSHW[]",Z);for(var Q=0;Q<Z;Q++){var w=Y[++K]<<8|Y[++K];if(w&32768)w=-((w^65535)+1);X.push(w)}J.ip=K}function fw(J){var{stack:K,store:Y}=J;if(!Y)Y=J.store=[];var X=K.pop(),Z=K.pop();if(hB.DEBUG)console.log(J.step,"WS",X,Z);Y[Z]=X}function mw(J){var{stack:K,store:Y}=J,X=K.pop();if(hB.DEBUG)console.log(J.step,"RS",X);var Z=Y&&Y[X]||0;K.push(Z)}function cw(J){var K=J.stack,Y=K.pop(),X=K.pop();if(hB.DEBUG)console.log(J.step,"WCVTP",Y,X);J.cvt[X]=Y/64}function lw(J){var K=J.stack,Y=K.pop();if(hB.DEBUG)console.log(J.step,"RCVT",Y);K.push(J.cvt[Y]*64)}function D2(J,K){var Y=K.stack,X=Y.pop(),Z=K.z2[X];if(hB.DEBUG)console.log(K.step,"GC["+J+"]",X);Y.push(K.dpv.distance(Z,x5,J,!1)*64)}function C2(J,K){var Y=K.stack,X=Y.pop(),Z=Y.pop(),Q=K.z1[X],w=K.z0[Z],$=K.dpv.distance(w,Q,J,J);if(hB.DEBUG)console.log(K.step,"MD["+J+"]",X,Z,"->",$);K.stack.push(Math.round($*64))}function dw(J){if(hB.DEBUG)console.log(J.step,"MPPEM[]");J.stack.push(J.ppem)}function uw(J){if(hB.DEBUG)console.log(J.step,"FLIPON[]");J.autoFlip=!0}function pw(J){var K=J.stack,Y=K.pop(),X=K.pop();if(hB.DEBUG)console.log(J.step,"LT[]",Y,X);K.push(X<Y?1:0)}function iw(J){var K=J.stack,Y=K.pop(),X=K.pop();if(hB.DEBUG)console.log(J.step,"LTEQ[]",Y,X);K.push(X<=Y?1:0)}function rw(J){var K=J.stack,Y=K.pop(),X=K.pop();if(hB.DEBUG)console.log(J.step,"GT[]",Y,X);K.push(X>Y?1:0)}function nw(J){var K=J.stack,Y=K.pop(),X=K.pop();if(hB.DEBUG)console.log(J.step,"GTEQ[]",Y,X);K.push(X>=Y?1:0)}function ow(J){var K=J.stack,Y=K.pop(),X=K.pop();if(hB.DEBUG)console.log(J.step,"EQ[]",Y,X);K.push(Y===X?1:0)}function sw(J){var K=J.stack,Y=K.pop(),X=K.pop();if(hB.DEBUG)console.log(J.step,"NEQ[]",Y,X);K.push(Y!==X?1:0)}function aw(J){var K=J.stack,Y=K.pop();if(hB.DEBUG)console.log(J.step,"ODD[]",Y);K.push(Math.trunc(Y)%2?1:0)}function tw(J){var K=J.stack,Y=K.pop();if(hB.DEBUG)console.log(J.step,"EVEN[]",Y);K.push(Math.trunc(Y)%2?0:1)}function ew(J){var K=J.stack.pop();if(hB.DEBUG)console.log(J.step,"IF[]",K);if(!K){if(YJ(J,!0),hB.DEBUG)console.log(J.step,"EIF[]")}}function JW(J){if(hB.DEBUG)console.log(J.step,"EIF[]")}function KW(J){var K=J.stack,Y=K.pop(),X=K.pop();if(hB.DEBUG)console.log(J.step,"AND[]",Y,X);K.push(Y&&X?1:0)}function YW(J){var K=J.stack,Y=K.pop(),X=K.pop();if(hB.DEBUG)console.log(J.step,"OR[]",Y,X);K.push(Y||X?1:0)}function XW(J){var K=J.stack,Y=K.pop();if(hB.DEBUG)console.log(J.step,"NOT[]",Y);K.push(Y?0:1)}function $9(J,K){var Y=K.stack,X=Y.pop(),Z=K.fv,Q=K.pv,w=K.ppem,$=K.deltaBase+(J-1)*16,W=K.deltaShift,z=K.z0;if(hB.DEBUG)console.log(K.step,"DELTAP["+J+"]",X,Y);for(var H=0;H<X;H++){var U=Y.pop(),A=Y.pop(),V=$+((A&240)>>4);if(V!==w)continue;var L=(A&15)-8;if(L>=0)L++;if(hB.DEBUG)console.log(K.step,"DELTAPFIX",U,"by",L*W);var B=z[U];Z.setRelative(B,B,L*W,Q)}}function ZW(J){var K=J.stack,Y=K.pop();if(hB.DEBUG)console.log(J.step,"SDB[]",Y);J.deltaBase=Y}function QW(J){var K=J.stack,Y=K.pop();if(hB.DEBUG)console.log(J.step,"SDS[]",Y);J.deltaShift=Math.pow(0.5,Y)}function wW(J){var K=J.stack,Y=K.pop(),X=K.pop();if(hB.DEBUG)console.log(J.step,"ADD[]",Y,X);K.push(X+Y)}function WW(J){var K=J.stack,Y=K.pop(),X=K.pop();if(hB.DEBUG)console.log(J.step,"SUB[]",Y,X);K.push(X-Y)}function $W(J){var K=J.stack,Y=K.pop(),X=K.pop();if(hB.DEBUG)console.log(J.step,"DIV[]",Y,X);K.push(X*64/Y)}function zW(J){var K=J.stack,Y=K.pop(),X=K.pop();if(hB.DEBUG)console.log(J.step,"MUL[]",Y,X);K.push(X*Y/64)}function HW(J){var K=J.stack,Y=K.pop();if(hB.DEBUG)console.log(J.step,"ABS[]",Y);K.push(Math.abs(Y))}function UW(J){var K=J.stack,Y=K.pop();if(hB.DEBUG)console.log(J.step,"NEG[]",Y);K.push(-Y)}function AW(J){var K=J.stack,Y=K.pop();if(hB.DEBUG)console.log(J.step,"FLOOR[]",Y);K.push(Math.floor(Y/64)*64)}function VW(J){var K=J.stack,Y=K.pop();if(hB.DEBUG)console.log(J.step,"CEILING[]",Y);K.push(Math.ceil(Y/64)*64)}function F8(J,K){var Y=K.stack,X=Y.pop();if(hB.DEBUG)console.log(K.step,"ROUND[]");Y.push(K.round(X/64)*64)}function BW(J){var K=J.stack,Y=K.pop(),X=K.pop();if(hB.DEBUG)console.log(J.step,"WCVTF[]",Y,X);J.cvt[X]=Y*J.ppem/J.font.unitsPerEm}function z9(J,K){var Y=K.stack,X=Y.pop(),Z=K.ppem,Q=K.deltaBase+(J-1)*16,w=K.deltaShift;if(hB.DEBUG)console.log(K.step,"DELTAC["+J+"]",X,Y);for(var $=0;$<X;$++){var W=Y.pop(),z=Y.pop(),H=Q+((z&240)>>4);if(H!==Z)continue;var U=(z&15)-8;if(U>=0)U++;var A=U*w;if(hB.DEBUG)console.log(K.step,"DELTACFIX",W,"by",A);K.cvt[W]+=A}}function GW(J){var K=J.stack.pop();if(hB.DEBUG)console.log(J.step,"SROUND[]",K);J.round=KJ;var Y;switch(K&192){case 0:Y=0.5;break;case 64:Y=1;break;case 128:Y=2;break;default:throw Error("invalid SROUND value")}switch(J.srPeriod=Y,K&48){case 0:J.srPhase=0;break;case 16:J.srPhase=0.25*Y;break;case 32:J.srPhase=0.5*Y;break;case 48:J.srPhase=0.75*Y;break;default:throw Error("invalid SROUND value")}if(K&=15,K===0)J.srThreshold=0;else J.srThreshold=(K/8-0.5)*Y}function LW(J){var K=J.stack.pop();if(hB.DEBUG)console.log(J.step,"S45ROUND[]",K);J.round=KJ;var Y;switch(K&192){case 0:Y=Math.sqrt(2)/2;break;case 64:Y=Math.sqrt(2);break;case 128:Y=2*Math.sqrt(2);break;default:throw Error("invalid S45ROUND value")}switch(J.srPeriod=Y,K&48){case 0:J.srPhase=0;break;case 16:J.srPhase=0.25*Y;break;case 32:J.srPhase=0.5*Y;break;case 48:J.srPhase=0.75*Y;break;default:throw Error("invalid S45ROUND value")}if(K&=15,K===0)J.srThreshold=0;else J.srThreshold=(K/8-0.5)*Y}function qW(J){if(hB.DEBUG)console.log(J.step,"ROFF[]");J.round=tQ}function OW(J){if(hB.DEBUG)console.log(J.step,"RUTG[]");J.round=Kw}function MW(J){if(hB.DEBUG)console.log(J.step,"RDTG[]");J.round=Yw}function NW(J){var K=J.stack.pop();if(hB.DEBUG)console.log(J.step,"SCANCTRL[]",K)}function T2(J,K){var Y=K.stack,X=Y.pop(),Z=Y.pop(),Q=K.z2[X],w=K.z1[Z];if(hB.DEBUG)console.log(K.step,"SDPVTL["+J+"]",X,Z);var $,W;if(!J)$=w.x-Q.x,W=w.y-Q.y;else $=Q.y-w.y,W=w.x-Q.x;K.dpv=l5($,W)}function jW(J){var K=J.stack,Y=K.pop(),X=0;if(hB.DEBUG)console.log(J.step,"GETINFO[]",Y);if(Y&1)X=35;if(Y&32)X|=4096;K.push(X)}function EW(J){var K=J.stack,Y=K.pop(),X=K.pop(),Z=K.pop();if(hB.DEBUG)console.log(J.step,"ROLL[]");K.push(X),K.push(Y),K.push(Z)}function FW(J){var K=J.stack,Y=K.pop(),X=K.pop();if(hB.DEBUG)console.log(J.step,"MAX[]",Y,X);K.push(Math.max(X,Y))}function _W(J){var K=J.stack,Y=K.pop(),X=K.pop();if(hB.DEBUG)console.log(J.step,"MIN[]",Y,X);K.push(Math.min(X,Y))}function IW(J){var K=J.stack.pop();if(hB.DEBUG)console.log(J.step,"SCANTYPE[]",K)}function RW(J){var K=J.stack.pop(),Y=J.stack.pop();if(hB.DEBUG)console.log(J.step,"INSTCTRL[]",K,Y);switch(K){case 1:J.inhibitGridFit=!!Y;return;case 2:J.ignoreCvt=!!Y;return;default:throw Error("invalid INSTCTRL[] selector")}}function c1(J,K){var{stack:Y,prog:X,ip:Z}=K;if(hB.DEBUG)console.log(K.step,"PUSHB["+J+"]");for(var Q=0;Q<J;Q++)Y.push(X[++Z]);K.ip=Z}function l1(J,K){var{ip:Y,prog:X,stack:Z}=K;if(hB.DEBUG)console.log(K.ip,"PUSHW["+J+"]");for(var Q=0;Q<J;Q++){var w=X[++Y]<<8|X[++Y];if(w&32768)w=-((w^65535)+1);Z.push(w)}K.ip=Y}function r(J,K,Y,X,Z,Q){var w=Q.stack,$=J&&w.pop(),W=w.pop(),z=Q.rp0,H=Q.z0[z],U=Q.z1[W],A=Q.minDis,V=Q.fv,L=Q.dpv,B,q,M,N;if(q=B=L.distance(U,H,!0,!0),M=q>=0?1:-1,q=Math.abs(q),J){if(N=Q.cvt[$],X&&Math.abs(q-N)<Q.cvCutIn)q=N}if(Y&&q<A)q=A;if(X)q=Q.round(q);if(V.setRelative(U,H,M*q,L),V.touch(U),hB.DEBUG)console.log(Q.step,(J?"MIRP[":"MDRP[")+(K?"M":"m")+(Y?">":"_")+(X?"R":"_")+(Z===0?"Gr":Z===1?"Bl":Z===2?"Wh":"")+"]",J?$+"("+Q.cvt[$]+","+N+")":"",W,"(d =",B,"->",M*q,")");if(Q.rp1=Q.rp0,Q.rp2=W,K)Q.rp0=W}a2=[G2.bind(void 0,T1),G2.bind(void 0,F1),L2.bind(void 0,T1),L2.bind(void 0,F1),q2.bind(void 0,T1),q2.bind(void 0,F1),O2.bind(void 0,0),O2.bind(void 0,1),M2.bind(void 0,0),M2.bind(void 0,1),Zw,Qw,ww,Ww,$w,zw,Hw,Uw,Aw,Vw,Bw,Gw,Lw,qw,Ow,Mw,Nw,jw,Ew,Fw,void 0,void 0,_w,W9,Iw,Rw,Dw,Pw,Sw,void 0,void 0,void 0,Cw,Tw,vw,void 0,N2.bind(void 0,0),N2.bind(void 0,1),j2.bind(void 0,T1),j2.bind(void 0,F1),E2.bind(void 0,0),E2.bind(void 0,1),F2.bind(void 0,0),F2.bind(void 0,1),_2.bind(void 0,0),_2.bind(void 0,1),hw,yw,I2.bind(void 0,0),I2.bind(void 0,1),kw,gw,R2.bind(void 0,0),R2.bind(void 0,1),xw,bw,fw,mw,cw,lw,D2.bind(void 0,0),D2.bind(void 0,1),void 0,C2.bind(void 0,0),C2.bind(void 0,1),dw,void 0,uw,void 0,void 0,pw,iw,rw,nw,ow,sw,aw,tw,ew,JW,KW,YW,XW,$9.bind(void 0,1),ZW,QW,wW,WW,$W,zW,HW,UW,AW,VW,F8.bind(void 0,0),F8.bind(void 0,1),F8.bind(void 0,2),F8.bind(void 0,3),void 0,void 0,void 0,void 0,BW,$9.bind(void 0,2),$9.bind(void 0,3),z9.bind(void 0,1),z9.bind(void 0,2),z9.bind(void 0,3),GW,LW,void 0,void 0,qW,void 0,OW,MW,W9,W9,void 0,void 0,void 0,void 0,void 0,NW,T2.bind(void 0,0),T2.bind(void 0,1),jW,void 0,EW,FW,_W,IW,RW,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,c1.bind(void 0,1),c1.bind(void 0,2),c1.bind(void 0,3),c1.bind(void 0,4),c1.bind(void 0,5),c1.bind(void 0,6),c1.bind(void 0,7),c1.bind(void 0,8),l1.bind(void 0,1),l1.bind(void 0,2),l1.bind(void 0,3),l1.bind(void 0,4),l1.bind(void 0,5),l1.bind(void 0,6),l1.bind(void 0,7),l1.bind(void 0,8),r.bind(void 0,0,0,0,0,0),r.bind(void 0,0,0,0,0,1),r.bind(void 0,0,0,0,0,2),r.bind(void 0,0,0,0,0,3),r.bind(void 0,0,0,0,1,0),r.bind(void 0,0,0,0,1,1),r.bind(void 0,0,0,0,1,2),r.bind(void 0,0,0,0,1,3),r.bind(void 0,0,0,1,0,0),r.bind(void 0,0,0,1,0,1),r.bind(void 0,0,0,1,0,2),r.bind(void 0,0,0,1,0,3),r.bind(void 0,0,0,1,1,0),r.bind(void 0,0,0,1,1,1),r.bind(void 0,0,0,1,1,2),r.bind(void 0,0,0,1,1,3),r.bind(void 0,0,1,0,0,0),r.bind(void 0,0,1,0,0,1),r.bind(void 0,0,1,0,0,2),r.bind(void 0,0,1,0,0,3),r.bind(void 0,0,1,0,1,0),r.bind(void 0,0,1,0,1,1),r.bind(void 0,0,1,0,1,2),r.bind(void 0,0,1,0,1,3),r.bind(void 0,0,1,1,0,0),r.bind(void 0,0,1,1,0,1),r.bind(void 0,0,1,1,0,2),r.bind(void 0,0,1,1,0,3),r.bind(void 0,0,1,1,1,0),r.bind(void 0,0,1,1,1,1),r.bind(void 0,0,1,1,1,2),r.bind(void 0,0,1,1,1,3),r.bind(void 0,1,0,0,0,0),r.bind(void 0,1,0,0,0,1),r.bind(void 0,1,0,0,0,2),r.bind(void 0,1,0,0,0,3),r.bind(void 0,1,0,0,1,0),r.bind(void 0,1,0,0,1,1),r.bind(void 0,1,0,0,1,2),r.bind(void 0,1,0,0,1,3),r.bind(void 0,1,0,1,0,0),r.bind(void 0,1,0,1,0,1),r.bind(void 0,1,0,1,0,2),r.bind(void 0,1,0,1,0,3),r.bind(void 0,1,0,1,1,0),r.bind(void 0,1,0,1,1,1),r.bind(void 0,1,0,1,1,2),r.bind(void 0,1,0,1,1,3),r.bind(void 0,1,1,0,0,0),r.bind(void 0,1,1,0,0,1),r.bind(void 0,1,1,0,0,2),r.bind(void 0,1,1,0,0,3),r.bind(void 0,1,1,0,1,0),r.bind(void 0,1,1,0,1,1),r.bind(void 0,1,1,0,1,2),r.bind(void 0,1,1,0,1,3),r.bind(void 0,1,1,1,0,0),r.bind(void 0,1,1,1,0,1),r.bind(void 0,1,1,1,0,2),r.bind(void 0,1,1,1,0,3),r.bind(void 0,1,1,1,1,0),r.bind(void 0,1,1,1,1,1),r.bind(void 0,1,1,1,1,2),r.bind(void 0,1,1,1,1,3)];function j5(J){this.char=J,this.state={},this.activeState=null}function O9(J,K,Y){this.contextName=Y,this.startIndex=J,this.endOffset=K}function DW(J,K,Y){this.contextName=J,this.openRange=null,this.ranges=[],this.checkStart=K,this.checkEnd=Y}function H1(J,K){this.context=J,this.index=K,this.length=J.length,this.current=J[K],this.backtrack=J.slice(0,K),this.lookahead=J.slice(K+1)}function C8(J){this.eventId=J,this.subscribers=[]}function CW(J){var K=this,Y=["start","end","next","newToken","contextStart","contextEnd","insertToken","removeToken","removeRange","replaceToken","replaceRange","composeRUD","updateContextsRanges"];if(Y.forEach(function(Z){Object.defineProperty(K.events,Z,{value:new C8(Z)})}),J)Y.forEach(function(Z){var Q=J[Z];if(typeof Q==="function")K.events[Z].subscribe(Q)});var X=["insertToken","removeToken","removeRange","replaceToken","replaceRange","composeRUD"];X.forEach(function(Z){K.events[Z].subscribe(K.updateContextsRanges)})}function F0(J){this.tokens=[],this.registeredContexts={},this.contextCheckers=[],this.events={},this.registeredModifiers=[],CW.call(this,J)}j5.prototype.setState=function(J,K){return this.state[J]=K,this.activeState={key:J,value:this.state[J]},this.activeState};j5.prototype.getState=function(J){return this.state[J]||null};F0.prototype.inboundIndex=function(J){return J>=0&&J<this.tokens.length};F0.prototype.composeRUD=function(J){var K=this,Y=!0,X=J.map(function(Q){return K[Q[0]].apply(K,Q.slice(1).concat(Y))}),Z=function(Q){return typeof Q==="object"&&Q.hasOwnProperty("FAIL")};if(X.every(Z))return{FAIL:"composeRUD: one or more operations hasn't completed successfully",report:X.filter(Z)};this.dispatch("composeRUD",[X.filter(function(Q){return!Z(Q)})])};F0.prototype.replaceRange=function(J,K,Y,X){K=K!==null?K:this.tokens.length;var Z=Y.every(function(w){return w instanceof j5});if(!isNaN(J)&&this.inboundIndex(J)&&Z){var Q=this.tokens.splice.apply(this.tokens,[J,K].concat(Y));if(!X)this.dispatch("replaceToken",[J,K,Y]);return[Q,Y]}else return{FAIL:"replaceRange: invalid tokens or startIndex."}};F0.prototype.replaceToken=function(J,K,Y){if(!isNaN(J)&&this.inboundIndex(J)&&K instanceof j5){var X=this.tokens.splice(J,1,K);if(!Y)this.dispatch("replaceToken",[J,K]);return[X[0],K]}else return{FAIL:"replaceToken: invalid token or index."}};F0.prototype.removeRange=function(J,K,Y){K=!isNaN(K)?K:this.tokens.length;var X=this.tokens.splice(J,K);if(!Y)this.dispatch("removeRange",[X,J,K]);return X};F0.prototype.removeToken=function(J,K){if(!isNaN(J)&&this.inboundIndex(J)){var Y=this.tokens.splice(J,1);if(!K)this.dispatch("removeToken",[Y,J]);return Y}else return{FAIL:"removeToken: invalid token index."}};F0.prototype.insertToken=function(J,K,Y){var X=J.every(function(Z){return Z instanceof j5});if(X){if(this.tokens.splice.apply(this.tokens,[K,0].concat(J)),!Y)this.dispatch("insertToken",[J,K]);return J}else return{FAIL:"insertToken: invalid token(s)."}};F0.prototype.registerModifier=function(J,K,Y){this.events.newToken.subscribe(function(X,Z){var Q=[X,Z],w=K===null||K.apply(this,Q)===!0,$=[X,Z];if(w){var W=Y.apply(this,$);X.setState(J,W)}}),this.registeredModifiers.push(J)};C8.prototype.subscribe=function(J){if(typeof J==="function")return this.subscribers.push(J)-1;else return{FAIL:"invalid '"+this.eventId+"' event handler"}};C8.prototype.unsubscribe=function(J){this.subscribers.splice(J,1)};H1.prototype.setCurrentIndex=function(J){this.index=J,this.current=this.context[J],this.backtrack=this.context.slice(0,J),this.lookahead=this.context.slice(J+1)};H1.prototype.get=function(J){switch(!0){case J===0:return this.current;case(J<0&&Math.abs(J)<=this.backtrack.length):return this.backtrack.slice(J)[0];case(J>0&&J<=this.lookahead.length):return this.lookahead[J-1];default:return null}};F0.prototype.rangeToText=function(J){if(J instanceof O9)return this.getRangeTokens(J).map(function(K){return K.char}).join("")};F0.prototype.getText=function(){return this.tokens.map(function(J){return J.char}).join("")};F0.prototype.getContext=function(J){var K=this.registeredContexts[J];return K?K:null};F0.prototype.on=function(J,K){var Y=this.events[J];if(Y)return Y.subscribe(K);else return null};F0.prototype.dispatch=function(J,K){var Y=this,X=this.events[J];if(X instanceof C8)X.subscribers.forEach(function(Z){Z.apply(Y,K||[])})};F0.prototype.registerContextChecker=function(J,K,Y){if(this.getContext(J))return{FAIL:"context name '"+J+"' is already registered."};if(typeof K!=="function")return{FAIL:"missing context start check."};if(typeof Y!=="function")return{FAIL:"missing context end check."};var X=new DW(J,K,Y);return this.registeredContexts[J]=X,this.contextCheckers.push(X),X};F0.prototype.getRangeTokens=function(J){var K=J.startIndex+J.endOffset;return[].concat(this.tokens.slice(J.startIndex,K))};F0.prototype.getContextRanges=function(J){var K=this.getContext(J);if(K)return K.ranges;else return{FAIL:"context checker '"+J+"' is not registered."}};F0.prototype.resetContextsRanges=function(){var J=this.registeredContexts;for(var K in J)if(J.hasOwnProperty(K)){var Y=J[K];Y.ranges=[]}};F0.prototype.updateContextsRanges=function(){this.resetContextsRanges();var J=this.tokens.map(function(X){return X.char});for(var K=0;K<J.length;K++){var Y=new H1(J,K);this.runContextCheck(Y)}this.dispatch("updateContextsRanges",[this.registeredContexts])};F0.prototype.setEndOffset=function(J,K){var Y=this.getContext(K).openRange.startIndex,X=new O9(Y,J,K),Z=this.getContext(K).ranges;return X.rangeId=K+"."+Z.length,Z.push(X),this.getContext(K).openRange=null,X};F0.prototype.runContextCheck=function(J){var K=this,Y=J.index;this.contextCheckers.forEach(function(X){var Z=X.contextName,Q=K.getContext(Z).openRange;if(!Q&&X.checkStart(J))Q=new O9(Y,null,Z),K.getContext(Z).openRange=Q,K.dispatch("contextStart",[Z,Y]);if(!!Q&&X.checkEnd(J)){var w=Y-Q.startIndex+1,$=K.setEndOffset(w,Z);K.dispatch("contextEnd",[Z,$])}})};F0.prototype.tokenize=function(J){this.tokens=[],this.resetContextsRanges();var K=Array.from(J);this.dispatch("start");for(var Y=0;Y<K.length;Y++){var X=K[Y],Z=new H1(K,Y);this.dispatch("next",[Z]),this.runContextCheck(Z);var Q=new j5(X);this.tokens.push(Q),this.dispatch("newToken",[Q,Z])}return this.dispatch("end",[this.tokens]),this.tokens};function i1(J){return/[\u0600-\u065F\u066A-\u06D2\u06FA-\u06FF]/.test(J)}function XJ(J){return/[\u0630\u0690\u0621\u0631\u0661\u0671\u0622\u0632\u0672\u0692\u06C2\u0623\u0673\u0693\u06C3\u0624\u0694\u06C4\u0625\u0675\u0695\u06C5\u06E5\u0676\u0696\u06C6\u0627\u0677\u0697\u06C7\u0648\u0688\u0698\u06C8\u0689\u0699\u06C9\u068A\u06CA\u066B\u068B\u06CB\u068C\u068D\u06CD\u06FD\u068E\u06EE\u06FE\u062F\u068F\u06CF\u06EF]/.test(J)}function r1(J){return/[\u0600-\u0605\u060C-\u060E\u0610-\u061B\u061E\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED]/.test(J)}function _8(J){return/[A-z]/.test(J)}function TW(J){return/\s/.test(J)}function s0(J){this.font=J,this.features={}}function Y5(J){this.id=J.id,this.tag=J.tag,this.substitution=J.substitution}function d5(J,K){if(!J)return-1;switch(K.format){case 1:return K.glyphs.indexOf(J);case 2:var Y=K.ranges;for(var X=0;X<Y.length;X++){var Z=Y[X];if(J>=Z.start&&J<=Z.end){var Q=J-Z.start;return Z.index+Q}}break;default:return-1}return-1}function PW(J,K){var Y=d5(J,K.coverage);if(Y===-1)return null;return J+K.deltaGlyphId}function SW(J,K){var Y=d5(J,K.coverage);if(Y===-1)return null;return K.substitute[Y]}function H9(J,K){var Y=[];for(var X=0;X<J.length;X++){var Z=J[X],Q=K.current;Q=Array.isArray(Q)?Q[0]:Q;var w=d5(Q,Z);if(w!==-1)Y.push(w)}if(Y.length!==J.length)return-1;return Y}function vW(J,K){var Y=K.inputCoverage.length+K.lookaheadCoverage.length+K.backtrackCoverage.length;if(J.context.length<Y)return[];var X=H9(K.inputCoverage,J);if(X===-1)return[];var Z=K.inputCoverage.length-1;if(J.lookahead.length<K.lookaheadCoverage.length)return[];var Q=J.lookahead.slice(Z);while(Q.length&&r1(Q[0].char))Q.shift();var w=new H1(Q,0),$=H9(K.lookaheadCoverage,w),W=[].concat(J.backtrack);W.reverse();while(W.length&&r1(W[0].char))W.shift();if(W.length<K.backtrackCoverage.length)return[];var z=new H1(W,0),H=H9(K.backtrackCoverage,z),U=X.length===K.inputCoverage.length&&$.length===K.lookaheadCoverage.length&&H.length===K.backtrackCoverage.length,A=[];if(U)for(var V=0;V<K.lookupRecords.length;V++){var L=K.lookupRecords[V],B=L.lookupListIndex,q=this.getLookupByIndex(B);for(var M=0;M<q.subtables.length;M++){var N=q.subtables[M],E=this.getLookupMethod(q,N),I=this.getSubstitutionType(q,N);if(I==="12")for(var F=0;F<X.length;F++){var j=J.get(F),C=E(j);if(C)A.push(C)}}}return A}function hW(J,K){var Y=J.current,X=d5(Y,K.coverage);if(X===-1)return null;var Z,Q=K.ligatureSets[X];for(var w=0;w<Q.length;w++){Z=Q[w];for(var $=0;$<Z.components.length;$++){var W=J.lookahead[$],z=Z.components[$];if(W!==z)break;if($===Z.components.length-1)return Z}}return null}function yW(J,K){var Y=d5(J,K.coverage);if(Y===-1)return null;return K.sequences[Y]}s0.prototype.getDefaultScriptFeaturesIndexes=function(){var J=this.font.tables.gsub.scripts;for(var K=0;K<J.length;K++){var Y=J[K];if(Y.tag==="DFLT")return Y.script.defaultLangSys.featureIndexes}return[]};s0.prototype.getScriptFeaturesIndexes=function(J){var K=this.font.tables;if(!K.gsub)return[];if(!J)return this.getDefaultScriptFeaturesIndexes();var Y=this.font.tables.gsub.scripts;for(var X=0;X<Y.length;X++){var Z=Y[X];if(Z.tag===J&&Z.script.defaultLangSys)return Z.script.defaultLangSys.featureIndexes;else{var Q=Z.langSysRecords;if(Q)for(var w=0;w<Q.length;w++){var $=Q[w];if($.tag===J){var W=$.langSys;return W.featureIndexes}}}}return this.getDefaultScriptFeaturesIndexes()};s0.prototype.mapTagsToFeatures=function(J,K){var Y={};for(var X=0;X<J.length;X++){var Z=J[X].tag,Q=J[X].feature;Y[Z]=Q}this.features[K].tags=Y};s0.prototype.getScriptFeatures=function(J){var K=this.features[J];if(this.features.hasOwnProperty(J))return K;var Y=this.getScriptFeaturesIndexes(J);if(!Y)return null;var X=this.font.tables.gsub;return K=Y.map(function(Z){return X.features[Z]}),this.features[J]=K,this.mapTagsToFeatures(K,J),K};s0.prototype.getSubstitutionType=function(J,K){var Y=J.lookupType.toString(),X=K.substFormat.toString();return Y+X};s0.prototype.getLookupMethod=function(J,K){var Y=this,X=this.getSubstitutionType(J,K);switch(X){case"11":return function(Z){return PW.apply(Y,[Z,K])};case"12":return function(Z){return SW.apply(Y,[Z,K])};case"63":return function(Z){return vW.apply(Y,[Z,K])};case"41":return function(Z){return hW.apply(Y,[Z,K])};case"21":return function(Z){return yW.apply(Y,[Z,K])};default:throw Error("lookupType: "+J.lookupType+" - substFormat: "+K.substFormat+" is not yet supported")}};s0.prototype.lookupFeature=function(J){var K=J.contextParams,Y=K.index,X=this.getFeature({tag:J.tag,script:J.script});if(!X)return Error("font '"+this.font.names.fullName.en+"' doesn't support feature '"+J.tag+"' for script '"+J.script+"'.");var Z=this.getFeatureLookups(X),Q=[].concat(K.context);for(var w=0;w<Z.length;w++){var $=Z[w],W=this.getLookupSubtables($);for(var z=0;z<W.length;z++){var H=W[z],U=this.getSubstitutionType($,H),A=this.getLookupMethod($,H),V=void 0;switch(U){case"11":if(V=A(K.current),V)Q.splice(Y,1,new Y5({id:11,tag:J.tag,substitution:V}));break;case"12":if(V=A(K.current),V)Q.splice(Y,1,new Y5({id:12,tag:J.tag,substitution:V}));break;case"63":if(V=A(K),Array.isArray(V)&&V.length)Q.splice(Y,1,new Y5({id:63,tag:J.tag,substitution:V}));break;case"41":if(V=A(K),V)Q.splice(Y,1,new Y5({id:41,tag:J.tag,substitution:V}));break;case"21":if(V=A(K.current),V)Q.splice(Y,1,new Y5({id:21,tag:J.tag,substitution:V}));break}if(K=new H1(Q,Y),Array.isArray(V)&&!V.length)continue;V=null}}return Q.length?Q:null};s0.prototype.supports=function(J){if(!J.script)return!1;this.getScriptFeatures(J.script);var K=this.features.hasOwnProperty(J.script);if(!J.tag)return K;var Y=this.features[J.script].some(function(X){return X.tag===J.tag});return K&&Y};s0.prototype.getLookupSubtables=function(J){return J.subtables||null};s0.prototype.getLookupByIndex=function(J){var K=this.font.tables.gsub.lookups;return K[J]||null};s0.prototype.getFeatureLookups=function(J){return J.lookupListIndexes.map(this.getLookupByIndex.bind(this))};s0.prototype.getFeature=function(K){if(!this.font)return{FAIL:"No font was found"};if(!this.features.hasOwnProperty(K.script))this.getScriptFeatures(K.script);var Y=this.features[K.script];if(!Y)return{FAIL:"No feature for script "+K.script};if(!Y.tags[K.tag])return null;return this.features[K.script].tags[K.tag]};function kW(J){var K=J.current,Y=J.get(-1);return Y===null&&i1(K)||!i1(Y)&&i1(K)}function gW(J){var K=J.get(1);return K===null||!i1(K)}var xW={startCheck:kW,endCheck:gW};function bW(J){var K=J.current,Y=J.get(-1);return(i1(K)||r1(K))&&!i1(Y)}function fW(J){var K=J.get(1);switch(!0){case K===null:return!0;case(!i1(K)&&!r1(K)):var Y=TW(K);if(!Y)return!0;if(Y){var X=!1;if(X=J.lookahead.some(function(Z){return i1(Z)||r1(Z)}),!X)return!0}break;default:return!1}}var mW={startCheck:bW,endCheck:fW};function cW(J,K,Y){K[Y].setState(J.tag,J.substitution)}function lW(J,K,Y){K[Y].setState(J.tag,J.substitution)}function dW(J,K,Y){J.substitution.forEach(function(X,Z){var Q=K[Y+Z];Q.setState(J.tag,X)})}function uW(J,K,Y){var X=K[Y];X.setState(J.tag,J.substitution.ligGlyph);var Z=J.substitution.components.length;for(var Q=0;Q<Z;Q++)X=K[Y+Q+1],X.setState("deleted",!0)}var P2={11:cW,12:lW,63:dW,41:uW};function M9(J,K,Y){if(J instanceof Y5&&P2[J.id])P2[J.id](J,K,Y)}function pW(J){var K=[].concat(J.backtrack);for(var Y=K.length-1;Y>=0;Y--){var X=K[Y],Z=XJ(X),Q=r1(X);if(!Z&&!Q)return!0;if(Z)return!1}return!1}function iW(J){if(XJ(J.current))return!1;for(var K=0;K<J.lookahead.length;K++){var Y=J.lookahead[K],X=r1(Y);if(!X)return!0}return!1}function rW(J){var K=this,Y="arab",X=this.featuresTags[Y],Z=this.tokenizer.getRangeTokens(J);if(Z.length===1)return;var Q=new H1(Z.map(function($){return $.getState("glyphIndex")}),0),w=new H1(Z.map(function($){return $.char}),0);Z.forEach(function($,W){if(r1($.char))return;Q.setCurrentIndex(W),w.setCurrentIndex(W);var z=0;if(pW(w))z|=1;if(iW(w))z|=2;var H;switch(z){case 1:H="fina";break;case 2:H="init";break;case 3:H="medi";break}if(X.indexOf(H)===-1)return;var U=K.query.lookupFeature({tag:H,script:Y,contextParams:Q});if(U instanceof Error)return console.info(U.message);U.forEach(function(A,V){if(A instanceof Y5)M9(A,Z,V),Q.context[V]=A.substitution})})}function S2(J,K){var Y=J.map(function(X){return X.activeState.value});return new H1(Y,K||0)}function nW(J){var K=this,Y="arab",X=this.tokenizer.getRangeTokens(J),Z=S2(X);Z.context.forEach(function(Q,w){Z.setCurrentIndex(w);var $=K.query.lookupFeature({tag:"rlig",script:Y,contextParams:Z});if($.length)$.forEach(function(W){return M9(W,X,w)}),Z=S2(X)})}function oW(J){var K=J.current,Y=J.get(-1);return Y===null&&_8(K)||!_8(Y)&&_8(K)}function sW(J){var K=J.get(1);return K===null||!_8(K)}var aW={startCheck:oW,endCheck:sW};function v2(J,K){var Y=J.map(function(X){return X.activeState.value});return new H1(Y,K||0)}function tW(J){var K=this,Y="latn",X=this.tokenizer.getRangeTokens(J),Z=v2(X);Z.context.forEach(function(Q,w){Z.setCurrentIndex(w);var $=K.query.lookupFeature({tag:"liga",script:Y,contextParams:Z});if($.length)$.forEach(function(W){return M9(W,X,w)}),Z=v2(X)})}function V1(J){this.baseDir=J||"ltr",this.tokenizer=new F0,this.featuresTags={}}V1.prototype.setText=function(J){this.text=J};V1.prototype.contextChecks={latinWordCheck:aW,arabicWordCheck:xW,arabicSentenceCheck:mW};function U9(J){var K=this.contextChecks[J+"Check"];return this.tokenizer.registerContextChecker(J,K.startCheck,K.endCheck)}function eW(){return U9.call(this,"latinWord"),U9.call(this,"arabicWord"),U9.call(this,"arabicSentence"),this.tokenizer.tokenize(this.text)}function J$(){var J=this,K=this.tokenizer.getContextRanges("arabicSentence");K.forEach(function(Y){var X=J.tokenizer.getRangeTokens(Y);J.tokenizer.replaceRange(Y.startIndex,Y.endOffset,X.reverse())})}V1.prototype.registerFeatures=function(J,K){var Y=this,X=K.filter(function(Z){return Y.query.supports({script:J,tag:Z})});if(!this.featuresTags.hasOwnProperty(J))this.featuresTags[J]=X;else this.featuresTags[J]=this.featuresTags[J].concat(X)};V1.prototype.applyFeatures=function(J,K){if(!J)throw Error("No valid font was provided to apply features");if(!this.query)this.query=new s0(J);for(var Y=0;Y<K.length;Y++){var X=K[Y];if(!this.query.supports({script:X.script}))continue;this.registerFeatures(X.script,X.tags)}};V1.prototype.registerModifier=function(J,K,Y){this.tokenizer.registerModifier(J,K,Y)};function N9(){if(this.tokenizer.registeredModifiers.indexOf("glyphIndex")===-1)throw Error("glyphIndex modifier is required to apply arabic presentation features.")}function K$(){var J=this,K="arab";if(!this.featuresTags.hasOwnProperty(K))return;N9.call(this);var Y=this.tokenizer.getContextRanges("arabicWord");Y.forEach(function(X){rW.call(J,X)})}function Y$(){var J=this,K="arab";if(!this.featuresTags.hasOwnProperty(K))return;var Y=this.featuresTags[K];if(Y.indexOf("rlig")===-1)return;N9.call(this);var X=this.tokenizer.getContextRanges("arabicWord");X.forEach(function(Z){nW.call(J,Z)})}function X$(){var J=this,K="latn";if(!this.featuresTags.hasOwnProperty(K))return;var Y=this.featuresTags[K];if(Y.indexOf("liga")===-1)return;N9.call(this);var X=this.tokenizer.getContextRanges("latinWord");X.forEach(function(Z){tW.call(J,Z)})}V1.prototype.checkContextReady=function(J){return!!this.tokenizer.getContext(J)};V1.prototype.applyFeaturesToContexts=function(){if(this.checkContextReady("arabicWord"))K$.call(this),Y$.call(this);if(this.checkContextReady("latinWord"))X$.call(this);if(this.checkContextReady("arabicSentence"))J$.call(this)};V1.prototype.processText=function(J){if(!this.text||this.text!==J)this.setText(J),eW.call(this),this.applyFeaturesToContexts()};V1.prototype.getBidiText=function(J){return this.processText(J),this.tokenizer.getText()};V1.prototype.getTextGlyphs=function(J){this.processText(J);var K=[];for(var Y=0;Y<this.tokenizer.tokens.length;Y++){var X=this.tokenizer.tokens[Y];if(X.state.deleted)continue;var Z=X.activeState.value;K.push(Array.isArray(Z)?Z[0]:Z)}return K};function m0(J){if(J=J||{},J.tables=J.tables||{},!J.empty)y5(J.familyName,"When creating a new Font object, familyName is required."),y5(J.styleName,"When creating a new Font object, styleName is required."),y5(J.unitsPerEm,"When creating a new Font object, unitsPerEm is required."),y5(J.ascender,"When creating a new Font object, ascender is required."),y5(J.descender<=0,"When creating a new Font object, negative descender value is required."),this.unitsPerEm=J.unitsPerEm||1000,this.ascender=J.ascender,this.descender=J.descender,this.createdTimestamp=J.createdTimestamp,this.tables=Object.assign(J.tables,{os2:Object.assign({usWeightClass:J.weightClass||this.usWeightClasses.MEDIUM,usWidthClass:J.widthClass||this.usWidthClasses.MEDIUM,fsSelection:J.fsSelection||this.fsSelectionValues.REGULAR},J.tables.os2)});this.supported=!0,this.glyphs=new _1.GlyphSet(this,J.glyphs||[]),this.encoding=new d2(this),this.position=new m5(this),this.substitution=new o0(this),this.tables=this.tables||{},this._push=null,this._hmtxTableData={},Object.defineProperty(this,"hinting",{get:function(){if(this._hinting)return this._hinting;if(this.outlinesFormat==="truetype")return this._hinting=new e2(this)}})}m0.prototype.hasChar=function(J){return this.encoding.charToGlyphIndex(J)!==null};m0.prototype.charToGlyphIndex=function(J){return this.encoding.charToGlyphIndex(J)};m0.prototype.charToGlyph=function(J){var K=this.charToGlyphIndex(J),Y=this.glyphs.get(K);if(!Y)Y=this.glyphs.get(0);return Y};m0.prototype.updateFeatures=function(J){return this.defaultRenderOptions.features.map(function(K){if(K.script==="latn")return{script:"latn",tags:K.tags.filter(function(Y){return J[Y]})};else return K})};m0.prototype.stringToGlyphs=function(J,K){var Y=this,X=new V1,Z=function(U){return Y.charToGlyphIndex(U.char)};X.registerModifier("glyphIndex",null,Z);var Q=K?this.updateFeatures(K.features):this.defaultRenderOptions.features;X.applyFeatures(this,Q);var w=X.getTextGlyphs(J),$=w.length,W=Array($),z=this.glyphs.get(0);for(var H=0;H<$;H+=1)W[H]=this.glyphs.get(w[H])||z;return W};m0.prototype.getKerningValue=function(J,K){J=J.index||J,K=K.index||K;var Y=this.position.defaultKerningTables;if(Y)return this.position.getKerningValue(Y,J,K);return this.kerningPairs[J+","+K]||0};m0.prototype.defaultRenderOptions={kerning:!0,features:[{script:"arab",tags:["init","medi","fina","rlig"]},{script:"latn",tags:["liga","rlig"]}]};m0.prototype.forEachGlyph=function(J,K,Y,X,Z,Q){K=K!==void 0?K:0,Y=Y!==void 0?Y:0,X=X!==void 0?X:72,Z=Object.assign({},this.defaultRenderOptions,Z);var w=1/this.unitsPerEm*X,$=this.stringToGlyphs(J,Z),W;if(Z.kerning){var z=Z.script||this.position.getDefaultScriptName();W=this.position.getKerningTables(z,Z.language)}for(var H=0;H<$.length;H+=1){var U=$[H];if(Q.call(this,U,K,Y,X,Z),U.advanceWidth)K+=U.advanceWidth*w;if(Z.kerning&&H<$.length-1){var A=W?this.position.getKerningValue(W,U.index,$[H+1].index):this.getKerningValue(U,$[H+1]);K+=A*w}if(Z.letterSpacing)K+=Z.letterSpacing*X;else if(Z.tracking)K+=Z.tracking/1000*X}return K};m0.prototype.getPath=function(J,K,Y,X,Z){var Q=new f0;return this.forEachGlyph(J,K,Y,X,Z,function(w,$,W,z){var H=w.getPath($,W,z,Z,this);Q.extend(H)}),Q};m0.prototype.getPaths=function(J,K,Y,X,Z){var Q=[];return this.forEachGlyph(J,K,Y,X,Z,function(w,$,W,z){var H=w.getPath($,W,z,Z,this);Q.push(H)}),Q};m0.prototype.getAdvanceWidth=function(J,K,Y){return this.forEachGlyph(J,0,0,K,Y,function(){})};m0.prototype.fsSelectionValues={ITALIC:1,UNDERSCORE:2,NEGATIVE:4,OUTLINED:8,STRIKEOUT:16,BOLD:32,REGULAR:64,USER_TYPO_METRICS:128,WWS:256,OBLIQUE:512};m0.prototype.usWidthClasses={ULTRA_CONDENSED:1,EXTRA_CONDENSED:2,CONDENSED:3,SEMI_CONDENSED:4,MEDIUM:5,SEMI_EXPANDED:6,EXPANDED:7,EXTRA_EXPANDED:8,ULTRA_EXPANDED:9};m0.prototype.usWeightClasses={THIN:100,EXTRA_LIGHT:200,LIGHT:300,NORMAL:400,MEDIUM:500,SEMI_BOLD:600,BOLD:700,EXTRA_BOLD:800,BLACK:900};function Z$(J,K){K.parseUShort(),J.length=K.parseULong(),J.language=K.parseULong();var Y;J.groupCount=Y=K.parseULong(),J.glyphIndexMap={};for(var X=0;X<Y;X+=1){var Z=K.parseULong(),Q=K.parseULong(),w=K.parseULong();for(var $=Z;$<=Q;$+=1)J.glyphIndexMap[$]=w,w++}}function Q$(J,K,Y,X,Z){J.length=K.parseUShort(),J.language=K.parseUShort();var Q;J.segCount=Q=K.parseUShort()>>1,K.skip("uShort",3),J.glyphIndexMap={};var w=new n.Parser(Y,X+Z+14),$=new n.Parser(Y,X+Z+16+Q*2),W=new n.Parser(Y,X+Z+16+Q*4),z=new n.Parser(Y,X+Z+16+Q*6),H=X+Z+16+Q*8;for(var U=0;U<Q-1;U+=1){var A=void 0,V=w.parseUShort(),L=$.parseUShort(),B=W.parseShort(),q=z.parseUShort();for(var M=L;M<=V;M+=1){if(q!==0){if(H=z.offset+z.relativeOffset-2,H+=q,H+=(M-L)*2,A=n.getUShort(Y,H),A!==0)A=A+B&65535}else A=M+B&65535;J.glyphIndexMap[M]=A}}}function w$(J,K){var Y={};Y.version=n.getUShort(J,K),H0.argument(Y.version===0,"cmap table version should be 0."),Y.numTables=n.getUShort(J,K+2);var X=-1;for(var Z=Y.numTables-1;Z>=0;Z-=1){var Q=n.getUShort(J,K+4+Z*8),w=n.getUShort(J,K+4+Z*8+2);if(Q===3&&(w===0||w===1||w===10)||Q===0&&(w===0||w===1||w===2||w===3||w===4)){X=n.getULong(J,K+4+Z*8+4);break}}if(X===-1)throw Error("No valid cmap sub-tables found.");var $=new n.Parser(J,K+X);if(Y.format=$.parseUShort(),Y.format===12)Z$(Y,$);else if(Y.format===4)Q$(Y,$,J,K,X);else throw Error("Only format 4 and 12 cmap tables are supported (found format "+Y.format+").");return Y}var W$={parse:w$};function B9(J){var K;if(J.length<1240)K=107;else if(J.length<33900)K=1131;else K=32768;return K}function u1(J,K,Y){var X=[],Z=[],Q=n.getCard16(J,K),w,$;if(Q!==0){var W=n.getByte(J,K+2);w=K+(Q+1)*W+2;var z=K+3;for(var H=0;H<Q+1;H+=1)X.push(n.getOffset(J,z,W)),z+=W;$=w+X[Q]}else $=K+2;for(var U=0;U<X.length-1;U+=1){var A=n.getBytes(J,w+X[U],w+X[U+1]);if(Y)A=Y(A);Z.push(A)}return{objects:Z,startOffset:K,endOffset:$}}function $$(J,K){var Y=[],X=n.getCard16(J,K),Z,Q;if(X!==0){var w=n.getByte(J,K+2);Z=K+(X+1)*w+2;var $=K+3;for(var W=0;W<X+1;W+=1)Y.push(n.getOffset(J,$,w)),$+=w;Q=Z+Y[X]}else Q=K+2;return{offsets:Y,startOffset:K,endOffset:Q}}function z$(J,K,Y,X,Z){var Q=n.getCard16(Y,X),w=0;if(Q!==0){var $=n.getByte(Y,X+2);w=X+(Q+1)*$+2}var W=n.getBytes(Y,w+K[J],w+K[J+1]);if(Z)W=Z(W);return W}function H$(J){var K="",Y=15,X=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"];while(!0){var Z=J.parseByte(),Q=Z>>4,w=Z&15;if(Q===Y)break;if(K+=X[Q],w===Y)break;K+=X[w]}return parseFloat(K)}function U$(J,K){var Y,X,Z,Q;if(K===28)return Y=J.parseByte(),X=J.parseByte(),Y<<8|X;if(K===29)return Y=J.parseByte(),X=J.parseByte(),Z=J.parseByte(),Q=J.parseByte(),Y<<24|X<<16|Z<<8|Q;if(K===30)return H$(J);if(K>=32&&K<=246)return K-139;if(K>=247&&K<=250)return Y=J.parseByte(),(K-247)*256+Y+108;if(K>=251&&K<=254)return Y=J.parseByte(),-(K-251)*256-Y-108;throw Error("Invalid b0 "+K)}function A$(J){var K={};for(var Y=0;Y<J.length;Y+=1){var X=J[Y][0],Z=J[Y][1],Q=void 0;if(Z.length===1)Q=Z[0];else Q=Z;if(K.hasOwnProperty(X)&&!isNaN(K[X]))throw Error("Object "+K+" already has key "+X);K[X]=Q}return K}function ZJ(J,K,Y){K=K!==void 0?K:0;var X=new n.Parser(J,K),Z=[],Q=[];Y=Y!==void 0?Y:J.length;while(X.relativeOffset<Y){var w=X.parseByte();if(w<=21){if(w===12)w=1200+X.parseByte();Z.push([w,Q]),Q=[]}else Q.push(U$(X,w))}return A$(Z)}function g5(J,K){if(K<=390)K=SQ[K];else K=J[K-391];return K}function QJ(J,K,Y){var X={},Z;for(var Q=0;Q<K.length;Q+=1){var w=K[Q];if(Array.isArray(w.type)){var $=[];$.length=w.type.length;for(var W=0;W<w.type.length;W++){if(Z=J[w.op]!==void 0?J[w.op][W]:void 0,Z===void 0)Z=w.value!==void 0&&w.value[W]!==void 0?w.value[W]:null;if(w.type[W]==="SID")Z=g5(Y,Z);$[W]=Z}X[w.name]=$}else{if(Z=J[w.op],Z===void 0)Z=w.value!==void 0?w.value:null;if(w.type==="SID")Z=g5(Y,Z);X[w.name]=Z}}return X}function V$(J,K){var Y={};return Y.formatMajor=n.getCard8(J,K),Y.formatMinor=n.getCard8(J,K+1),Y.size=n.getCard8(J,K+2),Y.offsetSize=n.getCard8(J,K+3),Y.startOffset=K,Y.endOffset=K+4,Y}var B$=[{name:"version",op:0,type:"SID"},{name:"notice",op:1,type:"SID"},{name:"copyright",op:1200,type:"SID"},{name:"fullName",op:2,type:"SID"},{name:"familyName",op:3,type:"SID"},{name:"weight",op:4,type:"SID"},{name:"isFixedPitch",op:1201,type:"number",value:0},{name:"italicAngle",op:1202,type:"number",value:0},{name:"underlinePosition",op:1203,type:"number",value:-100},{name:"underlineThickness",op:1204,type:"number",value:50},{name:"paintType",op:1205,type:"number",value:0},{name:"charstringType",op:1206,type:"number",value:2},{name:"fontMatrix",op:1207,type:["real","real","real","real","real","real"],value:[0.001,0,0,0.001,0,0]},{name:"uniqueId",op:13,type:"number"},{name:"fontBBox",op:5,type:["number","number","number","number"],value:[0,0,0,0]},{name:"strokeWidth",op:1208,type:"number",value:0},{name:"xuid",op:14,type:[],value:null},{name:"charset",op:15,type:"offset",value:0},{name:"encoding",op:16,type:"offset",value:0},{name:"charStrings",op:17,type:"offset",value:0},{name:"private",op:18,type:["number","offset"],value:[0,0]},{name:"ros",op:1230,type:["SID","SID","number"]},{name:"cidFontVersion",op:1231,type:"number",value:0},{name:"cidFontRevision",op:1232,type:"number",value:0},{name:"cidFontType",op:1233,type:"number",value:0},{name:"cidCount",op:1234,type:"number",value:8720},{name:"uidBase",op:1235,type:"number"},{name:"fdArray",op:1236,type:"offset"},{name:"fdSelect",op:1237,type:"offset"},{name:"fontName",op:1238,type:"SID"}],G$=[{name:"subrs",op:19,type:"offset",value:0},{name:"defaultWidthX",op:20,type:"number",value:0},{name:"nominalWidthX",op:21,type:"number",value:0}];function L$(J,K){var Y=ZJ(J,0,J.byteLength);return QJ(Y,B$,K)}function wJ(J,K,Y,X){var Z=ZJ(J,K,Y);return QJ(Z,G$,X)}function h2(J,K,Y,X){var Z=[];for(var Q=0;Q<Y.length;Q+=1){var w=new DataView(new Uint8Array(Y[Q]).buffer),$=L$(w,X);$._subrs=[],$._subrsBias=0,$._defaultWidthX=0,$._nominalWidthX=0;var W=$.private[0],z=$.private[1];if(W!==0&&z!==0){var H=wJ(J,z+K,W,X);if($._defaultWidthX=H.defaultWidthX,$._nominalWidthX=H.nominalWidthX,H.subrs!==0){var U=z+H.subrs,A=u1(J,U+K);$._subrs=A.objects,$._subrsBias=B9($._subrs)}$._privateDict=H}Z.push($)}return Z}function q$(J,K,Y,X){var Z,Q,w=new n.Parser(J,K);Y-=1;var $=[".notdef"],W=w.parseCard8();if(W===0)for(var z=0;z<Y;z+=1)Z=w.parseSID(),$.push(g5(X,Z));else if(W===1)while($.length<=Y){Z=w.parseSID(),Q=w.parseCard8();for(var H=0;H<=Q;H+=1)$.push(g5(X,Z)),Z+=1}else if(W===2)while($.length<=Y){Z=w.parseSID(),Q=w.parseCard16();for(var U=0;U<=Q;U+=1)$.push(g5(X,Z)),Z+=1}else throw Error("Unknown charset format "+W);return $}function O$(J,K,Y){var X,Z={},Q=new n.Parser(J,K),w=Q.parseCard8();if(w===0){var $=Q.parseCard8();for(var W=0;W<$;W+=1)X=Q.parseCard8(),Z[X]=W}else if(w===1){var z=Q.parseCard8();X=1;for(var H=0;H<z;H+=1){var U=Q.parseCard8(),A=Q.parseCard8();for(var V=U;V<=U+A;V+=1)Z[V]=X,X+=1}}else throw Error("Unknown encoding format "+w);return new I8(Z,Y)}function y2(J,K,Y){var X,Z,Q,w,$=new f0,W=[],z=0,H=!1,U=!1,A=0,V=0,L,B,q,M;if(J.isCIDFont){var N=J.tables.cff.topDict._fdSelect[K.index],E=J.tables.cff.topDict._fdArray[N];L=E._subrs,B=E._subrsBias,q=E._defaultWidthX,M=E._nominalWidthX}else L=J.tables.cff.topDict._subrs,B=J.tables.cff.topDict._subrsBias,q=J.tables.cff.topDict._defaultWidthX,M=J.tables.cff.topDict._nominalWidthX;var I=q;function F(R,T){if(U)$.closePath();$.moveTo(R,T),U=!0}function j(){var R=W.length%2!==0;if(R&&!H)I=W.shift()+M;z+=W.length>>1,W.length=0,H=!0}function C(R){var T,k,d,u,p,P,S,D,l,f,o,i,m=0;while(m<R.length){var c=R[m];switch(m+=1,c){case 1:j();break;case 3:j();break;case 4:if(W.length>1&&!H)I=W.shift()+M,H=!0;V+=W.pop(),F(A,V);break;case 5:while(W.length>0)A+=W.shift(),V+=W.shift(),$.lineTo(A,V);break;case 6:while(W.length>0){if(A+=W.shift(),$.lineTo(A,V),W.length===0)break;V+=W.shift(),$.lineTo(A,V)}break;case 7:while(W.length>0){if(V+=W.shift(),$.lineTo(A,V),W.length===0)break;A+=W.shift(),$.lineTo(A,V)}break;case 8:while(W.length>0)X=A+W.shift(),Z=V+W.shift(),Q=X+W.shift(),w=Z+W.shift(),A=Q+W.shift(),V=w+W.shift(),$.curveTo(X,Z,Q,w,A,V);break;case 10:if(p=W.pop()+B,P=L[p],P)C(P);break;case 11:return;case 12:switch(c=R[m],m+=1,c){case 35:X=A+W.shift(),Z=V+W.shift(),Q=X+W.shift(),w=Z+W.shift(),S=Q+W.shift(),D=w+W.shift(),l=S+W.shift(),f=D+W.shift(),o=l+W.shift(),i=f+W.shift(),A=o+W.shift(),V=i+W.shift(),W.shift(),$.curveTo(X,Z,Q,w,S,D),$.curveTo(l,f,o,i,A,V);break;case 34:X=A+W.shift(),Z=V,Q=X+W.shift(),w=Z+W.shift(),S=Q+W.shift(),D=w,l=S+W.shift(),f=w,o=l+W.shift(),i=V,A=o+W.shift(),$.curveTo(X,Z,Q,w,S,D),$.curveTo(l,f,o,i,A,V);break;case 36:X=A+W.shift(),Z=V+W.shift(),Q=X+W.shift(),w=Z+W.shift(),S=Q+W.shift(),D=w,l=S+W.shift(),f=w,o=l+W.shift(),i=f+W.shift(),A=o+W.shift(),$.curveTo(X,Z,Q,w,S,D),$.curveTo(l,f,o,i,A,V);break;case 37:if(X=A+W.shift(),Z=V+W.shift(),Q=X+W.shift(),w=Z+W.shift(),S=Q+W.shift(),D=w+W.shift(),l=S+W.shift(),f=D+W.shift(),o=l+W.shift(),i=f+W.shift(),Math.abs(o-A)>Math.abs(i-V))A=o+W.shift();else V=i+W.shift();$.curveTo(X,Z,Q,w,S,D),$.curveTo(l,f,o,i,A,V);break;default:console.log("Glyph "+K.index+": unknown operator 1200"+c),W.length=0}break;case 14:if(W.length>0&&!H)I=W.shift()+M,H=!0;if(U)$.closePath(),U=!1;break;case 18:j();break;case 19:case 20:j(),m+=z+7>>3;break;case 21:if(W.length>2&&!H)I=W.shift()+M,H=!0;V+=W.pop(),A+=W.pop(),F(A,V);break;case 22:if(W.length>1&&!H)I=W.shift()+M,H=!0;A+=W.pop(),F(A,V);break;case 23:j();break;case 24:while(W.length>2)X=A+W.shift(),Z=V+W.shift(),Q=X+W.shift(),w=Z+W.shift(),A=Q+W.shift(),V=w+W.shift(),$.curveTo(X,Z,Q,w,A,V);A+=W.shift(),V+=W.shift(),$.lineTo(A,V);break;case 25:while(W.length>6)A+=W.shift(),V+=W.shift(),$.lineTo(A,V);X=A+W.shift(),Z=V+W.shift(),Q=X+W.shift(),w=Z+W.shift(),A=Q+W.shift(),V=w+W.shift(),$.curveTo(X,Z,Q,w,A,V);break;case 26:if(W.length%2)A+=W.shift();while(W.length>0)X=A,Z=V+W.shift(),Q=X+W.shift(),w=Z+W.shift(),A=Q,V=w+W.shift(),$.curveTo(X,Z,Q,w,A,V);break;case 27:if(W.length%2)V+=W.shift();while(W.length>0)X=A+W.shift(),Z=V,Q=X+W.shift(),w=Z+W.shift(),A=Q+W.shift(),V=w,$.curveTo(X,Z,Q,w,A,V);break;case 28:T=R[m],k=R[m+1],W.push((T<<24|k<<16)>>16),m+=2;break;case 29:if(p=W.pop()+J.gsubrsBias,P=J.gsubrs[p],P)C(P);break;case 30:while(W.length>0){if(X=A,Z=V+W.shift(),Q=X+W.shift(),w=Z+W.shift(),A=Q+W.shift(),V=w+(W.length===1?W.shift():0),$.curveTo(X,Z,Q,w,A,V),W.length===0)break;X=A+W.shift(),Z=V,Q=X+W.shift(),w=Z+W.shift(),V=w+W.shift(),A=Q+(W.length===1?W.shift():0),$.curveTo(X,Z,Q,w,A,V)}break;case 31:while(W.length>0){if(X=A+W.shift(),Z=V,Q=X+W.shift(),w=Z+W.shift(),V=w+W.shift(),A=Q+(W.length===1?W.shift():0),$.curveTo(X,Z,Q,w,A,V),W.length===0)break;X=A,Z=V+W.shift(),Q=X+W.shift(),w=Z+W.shift(),A=Q+W.shift(),V=w+(W.length===1?W.shift():0),$.curveTo(X,Z,Q,w,A,V)}break;default:if(c<32)console.log("Glyph "+K.index+": unknown operator "+c);else if(c<247)W.push(c-139);else if(c<251)T=R[m],m+=1,W.push((c-247)*256+T+108);else if(c<255)T=R[m],m+=1,W.push(-(c-251)*256-T-108);else T=R[m],k=R[m+1],d=R[m+2],u=R[m+3],m+=4,W.push((T<<24|k<<16|d<<8|u)/65536)}}}return C(Y),K.advanceWidth=I,$}function M$(J,K,Y,X){var Z=[],Q,w=new n.Parser(J,K),$=w.parseCard8();if($===0)for(var W=0;W<Y;W++){if(Q=w.parseCard8(),Q>=X)throw Error("CFF table CID Font FDSelect has bad FD index value "+Q+" (FD count "+X+")");Z.push(Q)}else if($===3){var z=w.parseCard16(),H=w.parseCard16();if(H!==0)throw Error("CFF Table CID Font FDSelect format 3 range has bad initial GID "+H);var U;for(var A=0;A<z;A++){if(Q=w.parseCard8(),U=w.parseCard16(),Q>=X)throw Error("CFF table CID Font FDSelect has bad FD index value "+Q+" (FD count "+X+")");if(U>Y)throw Error("CFF Table CID Font FDSelect format 3 range has bad GID "+U);for(;H<U;H++)Z.push(Q);H=U}if(U!==Y)throw Error("CFF Table CID Font FDSelect format 3 range has bad final GID "+U)}else throw Error("CFF Table CID Font FDSelect table has unsupported format "+$);return Z}function N$(J,K,Y,X){Y.tables.cff={};var Z=V$(J,K),Q=u1(J,Z.endOffset,n.bytesToString),w=u1(J,Q.endOffset),$=u1(J,w.endOffset,n.bytesToString),W=u1(J,$.endOffset);Y.gsubrs=W.objects,Y.gsubrsBias=B9(Y.gsubrs);var z=h2(J,K,w.objects,$.objects);if(z.length!==1)throw Error("CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = "+z.length);var H=z[0];if(Y.tables.cff.topDict=H,H._privateDict)Y.defaultWidthX=H._privateDict.defaultWidthX,Y.nominalWidthX=H._privateDict.nominalWidthX;if(H.ros[0]!==void 0&&H.ros[1]!==void 0)Y.isCIDFont=!0;if(Y.isCIDFont){var{fdArray:U,fdSelect:A}=H;if(U===0||A===0)throw Error("Font is marked as a CID font, but FDArray and/or FDSelect information is missing");U+=K;var V=u1(J,U),L=h2(J,K,V.objects,$.objects);H._fdArray=L,A+=K,H._fdSelect=M$(J,A,Y.numGlyphs,L.length)}var B=K+H.private[1],q=wJ(J,B,H.private[0],$.objects);if(Y.defaultWidthX=q.defaultWidthX,Y.nominalWidthX=q.nominalWidthX,q.subrs!==0){var M=B+q.subrs,N=u1(J,M);Y.subrs=N.objects,Y.subrsBias=B9(Y.subrs)}else Y.subrs=[],Y.subrsBias=0;var E;if(X.lowMemory)E=$$(J,K+H.charStrings),Y.nGlyphs=E.offsets.length;else E=u1(J,K+H.charStrings),Y.nGlyphs=E.objects.length;var I=q$(J,K+H.charset,Y.nGlyphs,$.objects);if(H.encoding===0)Y.cffEncoding=new I8(vQ,I);else if(H.encoding===1)Y.cffEncoding=new I8(hQ,I);else Y.cffEncoding=O$(J,K+H.encoding,I);if(Y.encoding=Y.encoding||Y.cffEncoding,Y.glyphs=new _1.GlyphSet(Y),X.lowMemory)Y._push=function(C){var R=z$(C,E.offsets,J,K+H.charStrings);Y.glyphs.push(C,_1.cffGlyphLoader(Y,C,y2,R))};else for(var F=0;F<Y.nGlyphs;F+=1){var j=E.objects[F];Y.glyphs.push(F,_1.cffGlyphLoader(Y,F,y2,j))}}var j$={parse:N$};function E$(J,K,Y){var X={},Z=new n.Parser(J,K);return X.tag=Z.parseTag(),X.minValue=Z.parseFixed(),X.defaultValue=Z.parseFixed(),X.maxValue=Z.parseFixed(),Z.skip("uShort",1),X.name=Y[Z.parseUShort()]||{},X}function F$(J,K,Y,X){var Z={},Q=new n.Parser(J,K);Z.name=X[Q.parseUShort()]||{},Q.skip("uShort",1),Z.coordinates={};for(var w=0;w<Y.length;++w)Z.coordinates[Y[w].tag]=Q.parseFixed();return Z}function _$(J,K,Y){var X=new n.Parser(J,K),Z=X.parseULong();H0.argument(Z===65536,"Unsupported fvar table version.");var Q=X.parseOffset16();X.skip("uShort",1);var w=X.parseUShort(),$=X.parseUShort(),W=X.parseUShort(),z=X.parseUShort(),H=[];for(var U=0;U<w;U++)H.push(E$(J,K+Q+U*$,Y));var A=[],V=K+Q+w*$;for(var L=0;L<W;L++)A.push(F$(J,V+L*z,H,Y));return{axes:H,instances:A}}var I$={parse:_$},R$=function(){return{coverage:this.parsePointer(v.coverage),attachPoints:this.parseList(v.pointer(v.uShortList))}},D$=function(){var J=this.parseUShort();if(H0.argument(J===1||J===2||J===3,"Unsupported CaretValue table version."),J===1)return{coordinate:this.parseShort()};else if(J===2)return{pointindex:this.parseShort()};else if(J===3)return{coordinate:this.parseShort()}},C$=function(){return this.parseList(v.pointer(D$))},T$=function(){return{coverage:this.parsePointer(v.coverage),ligGlyphs:this.parseList(v.pointer(C$))}},P$=function(){return this.parseUShort(),this.parseList(v.pointer(v.coverage))};function S$(J,K){K=K||0;var Y=new v(J,K),X=Y.parseVersion(1);H0.argument(X===1||X===1.2||X===1.3,"Unsupported GDEF table version.");var Z={version:X,classDef:Y.parsePointer(v.classDef),attachList:Y.parsePointer(R$),ligCaretList:Y.parsePointer(T$),markAttachClassDef:Y.parsePointer(v.classDef)};if(X>=1.2)Z.markGlyphSets=Y.parsePointer(P$);return Z}var v$={parse:S$},U1=[,,,,,,,,,,];U1[1]=function(){var K=this.offset+this.relativeOffset,Y=this.parseUShort();if(Y===1)return{posFormat:1,coverage:this.parsePointer(v.coverage),value:this.parseValueRecord()};else if(Y===2)return{posFormat:2,coverage:this.parsePointer(v.coverage),values:this.parseValueRecordList()};H0.assert(!1,"0x"+K.toString(16)+": GPOS lookup type 1 format must be 1 or 2.")};U1[2]=function(){var K=this.offset+this.relativeOffset,Y=this.parseUShort();H0.assert(Y===1||Y===2,"0x"+K.toString(16)+": GPOS lookup type 2 format must be 1 or 2.");var X=this.parsePointer(v.coverage),Z=this.parseUShort(),Q=this.parseUShort();if(Y===1)return{posFormat:Y,coverage:X,valueFormat1:Z,valueFormat2:Q,pairSets:this.parseList(v.pointer(v.list(function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(Z),value2:this.parseValueRecord(Q)}})))};else if(Y===2){var w=this.parsePointer(v.classDef),$=this.parsePointer(v.classDef),W=this.parseUShort(),z=this.parseUShort();return{posFormat:Y,coverage:X,valueFormat1:Z,valueFormat2:Q,classDef1:w,classDef2:$,class1Count:W,class2Count:z,classRecords:this.parseList(W,v.list(z,function(){return{value1:this.parseValueRecord(Z),value2:this.parseValueRecord(Q)}}))}}};U1[3]=function(){return{error:"GPOS Lookup 3 not supported"}};U1[4]=function(){return{error:"GPOS Lookup 4 not supported"}};U1[5]=function(){return{error:"GPOS Lookup 5 not supported"}};U1[6]=function(){return{error:"GPOS Lookup 6 not supported"}};U1[7]=function(){return{error:"GPOS Lookup 7 not supported"}};U1[8]=function(){return{error:"GPOS Lookup 8 not supported"}};U1[9]=function(){return{error:"GPOS Lookup 9 not supported"}};function h$(J,K){K=K||0;var Y=new v(J,K),X=Y.parseVersion(1);if(H0.argument(X===1||X===1.1,"Unsupported GPOS table version "+X),X===1)return{version:X,scripts:Y.parseScriptList(),features:Y.parseFeatureList(),lookups:Y.parseLookupList(U1)};else return{version:X,scripts:Y.parseScriptList(),features:Y.parseFeatureList(),lookups:Y.parseLookupList(U1),variations:Y.parseFeatureVariationsList()}}var y$={parse:h$},A1=[,,,,,,,,,];A1[1]=function(){var K=this.offset+this.relativeOffset,Y=this.parseUShort();if(Y===1)return{substFormat:1,coverage:this.parsePointer(v.coverage),deltaGlyphId:this.parseUShort()};else if(Y===2)return{substFormat:2,coverage:this.parsePointer(v.coverage),substitute:this.parseOffset16List()};H0.assert(!1,"0x"+K.toString(16)+": lookup type 1 format must be 1 or 2.")};A1[2]=function(){var K=this.parseUShort();return H0.argument(K===1,"GSUB Multiple Substitution Subtable identifier-format must be 1"),{substFormat:K,coverage:this.parsePointer(v.coverage),sequences:this.parseListOfLists()}};A1[3]=function(){var K=this.parseUShort();return H0.argument(K===1,"GSUB Alternate Substitution Subtable identifier-format must be 1"),{substFormat:K,coverage:this.parsePointer(v.coverage),alternateSets:this.parseListOfLists()}};A1[4]=function(){var K=this.parseUShort();return H0.argument(K===1,"GSUB ligature table identifier-format must be 1"),{substFormat:K,coverage:this.parsePointer(v.coverage),ligatureSets:this.parseListOfLists(function(){return{ligGlyph:this.parseUShort(),components:this.parseUShortList(this.parseUShort()-1)}})}};var N5={sequenceIndex:v.uShort,lookupListIndex:v.uShort};A1[5]=function(){var K=this.offset+this.relativeOffset,Y=this.parseUShort();if(Y===1)return{substFormat:Y,coverage:this.parsePointer(v.coverage),ruleSets:this.parseListOfLists(function(){var Q=this.parseUShort(),w=this.parseUShort();return{input:this.parseUShortList(Q-1),lookupRecords:this.parseRecordList(w,N5)}})};else if(Y===2)return{substFormat:Y,coverage:this.parsePointer(v.coverage),classDef:this.parsePointer(v.classDef),classSets:this.parseListOfLists(function(){var Q=this.parseUShort(),w=this.parseUShort();return{classes:this.parseUShortList(Q-1),lookupRecords:this.parseRecordList(w,N5)}})};else if(Y===3){var X=this.parseUShort(),Z=this.parseUShort();return{substFormat:Y,coverages:this.parseList(X,v.pointer(v.coverage)),lookupRecords:this.parseRecordList(Z,N5)}}H0.assert(!1,"0x"+K.toString(16)+": lookup type 5 format must be 1, 2 or 3.")};A1[6]=function(){var K=this.offset+this.relativeOffset,Y=this.parseUShort();if(Y===1)return{substFormat:1,coverage:this.parsePointer(v.coverage),chainRuleSets:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(N5)}})};else if(Y===2)return{substFormat:2,coverage:this.parsePointer(v.coverage),backtrackClassDef:this.parsePointer(v.classDef),inputClassDef:this.parsePointer(v.classDef),lookaheadClassDef:this.parsePointer(v.classDef),chainClassSet:this.parseListOfLists(function(){return{backtrack:this.parseUShortList(),input:this.parseUShortList(this.parseShort()-1),lookahead:this.parseUShortList(),lookupRecords:this.parseRecordList(N5)}})};else if(Y===3)return{substFormat:3,backtrackCoverage:this.parseList(v.pointer(v.coverage)),inputCoverage:this.parseList(v.pointer(v.coverage)),lookaheadCoverage:this.parseList(v.pointer(v.coverage)),lookupRecords:this.parseRecordList(N5)};H0.assert(!1,"0x"+K.toString(16)+": lookup type 6 format must be 1, 2 or 3.")};A1[7]=function(){var K=this.parseUShort();H0.argument(K===1,"GSUB Extension Substitution subtable identifier-format must be 1");var Y=this.parseUShort(),X=new v(this.data,this.offset+this.parseULong());return{substFormat:1,lookupType:Y,extension:A1[Y].call(X)}};A1[8]=function(){var K=this.parseUShort();return H0.argument(K===1,"GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1"),{substFormat:K,coverage:this.parsePointer(v.coverage),backtrackCoverage:this.parseList(v.pointer(v.coverage)),lookaheadCoverage:this.parseList(v.pointer(v.coverage)),substitutes:this.parseUShortList()}};function k$(J,K){K=K||0;var Y=new v(J,K),X=Y.parseVersion(1);if(H0.argument(X===1||X===1.1,"Unsupported GSUB table version."),X===1)return{version:X,scripts:Y.parseScriptList(),features:Y.parseFeatureList(),lookups:Y.parseLookupList(A1)};else return{version:X,scripts:Y.parseScriptList(),features:Y.parseFeatureList(),lookups:Y.parseLookupList(A1),variations:Y.parseFeatureVariationsList()}}var g$={parse:k$};function x$(J,K){var Y={},X=new n.Parser(J,K);return Y.version=X.parseVersion(),Y.fontRevision=Math.round(X.parseFixed()*1000)/1000,Y.checkSumAdjustment=X.parseULong(),Y.magicNumber=X.parseULong(),H0.argument(Y.magicNumber===1594834165,"Font header has wrong magic number."),Y.flags=X.parseUShort(),Y.unitsPerEm=X.parseUShort(),Y.created=X.parseLongDateTime(),Y.modified=X.parseLongDateTime(),Y.xMin=X.parseShort(),Y.yMin=X.parseShort(),Y.xMax=X.parseShort(),Y.yMax=X.parseShort(),Y.macStyle=X.parseUShort(),Y.lowestRecPPEM=X.parseUShort(),Y.fontDirectionHint=X.parseShort(),Y.indexToLocFormat=X.parseShort(),Y.glyphDataFormat=X.parseShort(),Y}var b$={parse:x$};function f$(J,K){var Y={},X=new n.Parser(J,K);return Y.version=X.parseVersion(),Y.ascender=X.parseShort(),Y.descender=X.parseShort(),Y.lineGap=X.parseShort(),Y.advanceWidthMax=X.parseUShort(),Y.minLeftSideBearing=X.parseShort(),Y.minRightSideBearing=X.parseShort(),Y.xMaxExtent=X.parseShort(),Y.caretSlopeRise=X.parseShort(),Y.caretSlopeRun=X.parseShort(),Y.caretOffset=X.parseShort(),X.relativeOffset+=8,Y.metricDataFormat=X.parseShort(),Y.numberOfHMetrics=X.parseUShort(),Y}var m$={parse:f$};function c$(J,K,Y,X,Z){var Q,w,$=new n.Parser(J,K);for(var W=0;W<X;W+=1){if(W<Y)Q=$.parseUShort(),w=$.parseShort();var z=Z.get(W);z.advanceWidth=Q,z.leftSideBearing=w}}function l$(J,K,Y,X,Z){J._hmtxTableData={};var Q,w,$=new n.Parser(K,Y);for(var W=0;W<Z;W+=1){if(W<X)Q=$.parseUShort(),w=$.parseShort();J._hmtxTableData[W]={advanceWidth:Q,leftSideBearing:w}}}function d$(J,K,Y,X,Z,Q,w){if(w.lowMemory)l$(J,K,Y,X,Z);else c$(K,Y,X,Z,Q)}var u$={parse:d$};function p$(J){var K={};J.skip("uShort");var Y=J.parseUShort();H0.argument(Y===0,"Unsupported kern sub-table version."),J.skip("uShort",2);var X=J.parseUShort();J.skip("uShort",3);for(var Z=0;Z<X;Z+=1){var Q=J.parseUShort(),w=J.parseUShort(),$=J.parseShort();K[Q+","+w]=$}return K}function i$(J){var K={};J.skip("uShort");var Y=J.parseULong();if(Y>1)console.warn("Only the first kern subtable is supported.");J.skip("uLong");var X=J.parseUShort(),Z=X&255;if(J.skip("uShort"),Z===0){var Q=J.parseUShort();J.skip("uShort",3);for(var w=0;w<Q;w+=1){var $=J.parseUShort(),W=J.parseUShort(),z=J.parseShort();K[$+","+W]=z}}return K}function r$(J,K){var Y=new n.Parser(J,K),X=Y.parseUShort();if(X===0)return p$(Y);else if(X===1)return i$(Y);else throw Error("Unsupported kern table version ("+X+").")}var n$={parse:r$};function o$(J,K){var Y=new n.Parser(J,K),X=Y.parseULong();H0.argument(X===1,"Unsupported ltag table version."),Y.skip("uLong",1);var Z=Y.parseULong(),Q=[];for(var w=0;w<Z;w++){var $="",W=K+Y.parseUShort(),z=Y.parseUShort();for(var H=W;H<W+z;++H)$+=String.fromCharCode(J.getInt8(H));Q.push($)}return Q}var s$={parse:o$};function a$(J,K,Y,X){var Z=new n.Parser(J,K),Q=X?Z.parseUShort:Z.parseULong,w=[];for(var $=0;$<Y+1;$+=1){var W=Q.call(Z);if(X)W*=2;w.push(W)}return w}var t$={parse:a$};function e$(J,K){var Y={},X=new n.Parser(J,K);if(Y.version=X.parseVersion(),Y.numGlyphs=X.parseUShort(),Y.version===1)Y.maxPoints=X.parseUShort(),Y.maxContours=X.parseUShort(),Y.maxCompositePoints=X.parseUShort(),Y.maxCompositeContours=X.parseUShort(),Y.maxZones=X.parseUShort(),Y.maxTwilightPoints=X.parseUShort(),Y.maxStorage=X.parseUShort(),Y.maxFunctionDefs=X.parseUShort(),Y.maxInstructionDefs=X.parseUShort(),Y.maxStackElements=X.parseUShort(),Y.maxSizeOfInstructions=X.parseUShort(),Y.maxComponentElements=X.parseUShort(),Y.maxComponentDepth=X.parseUShort();return Y}var Jz={parse:e$};function Kz(J,K){var Y={},X=new n.Parser(J,K);Y.version=X.parseUShort(),Y.xAvgCharWidth=X.parseShort(),Y.usWeightClass=X.parseUShort(),Y.usWidthClass=X.parseUShort(),Y.fsType=X.parseUShort(),Y.ySubscriptXSize=X.parseShort(),Y.ySubscriptYSize=X.parseShort(),Y.ySubscriptXOffset=X.parseShort(),Y.ySubscriptYOffset=X.parseShort(),Y.ySuperscriptXSize=X.parseShort(),Y.ySuperscriptYSize=X.parseShort(),Y.ySuperscriptXOffset=X.parseShort(),Y.ySuperscriptYOffset=X.parseShort(),Y.yStrikeoutSize=X.parseShort(),Y.yStrikeoutPosition=X.parseShort(),Y.sFamilyClass=X.parseShort(),Y.panose=[];for(var Z=0;Z<10;Z++)Y.panose[Z]=X.parseByte();if(Y.ulUnicodeRange1=X.parseULong(),Y.ulUnicodeRange2=X.parseULong(),Y.ulUnicodeRange3=X.parseULong(),Y.ulUnicodeRange4=X.parseULong(),Y.achVendID=String.fromCharCode(X.parseByte(),X.parseByte(),X.parseByte(),X.parseByte()),Y.fsSelection=X.parseUShort(),Y.usFirstCharIndex=X.parseUShort(),Y.usLastCharIndex=X.parseUShort(),Y.sTypoAscender=X.parseShort(),Y.sTypoDescender=X.parseShort(),Y.sTypoLineGap=X.parseShort(),Y.usWinAscent=X.parseUShort(),Y.usWinDescent=X.parseUShort(),Y.version>=1)Y.ulCodePageRange1=X.parseULong(),Y.ulCodePageRange2=X.parseULong();if(Y.version>=2)Y.sxHeight=X.parseShort(),Y.sCapHeight=X.parseShort(),Y.usDefaultChar=X.parseUShort(),Y.usBreakChar=X.parseUShort(),Y.usMaxContent=X.parseUShort();return Y}var Yz={parse:Kz};function Xz(J,K){var Y={},X=new n.Parser(J,K);switch(Y.version=X.parseVersion(),Y.italicAngle=X.parseFixed(),Y.underlinePosition=X.parseShort(),Y.underlineThickness=X.parseShort(),Y.isFixedPitch=X.parseULong(),Y.minMemType42=X.parseULong(),Y.maxMemType42=X.parseULong(),Y.minMemType1=X.parseULong(),Y.maxMemType1=X.parseULong(),Y.names=[],Y.version){case 1:break;case 2:Y.numberOfGlyphs=X.parseUShort(),Y.glyphNameIndex=Array(Y.numberOfGlyphs);for(var Z=0;Z<Y.numberOfGlyphs;Z++)Y.glyphNameIndex[Z]=X.parseUShort();break;case 2.5:Y.numberOfGlyphs=X.parseUShort(),Y.offset=Array(Y.numberOfGlyphs);for(var Q=0;Q<Y.numberOfGlyphs;Q++)Y.offset[Q]=X.parseChar();break}return Y}var Zz={parse:Xz},T8={};T8.UTF8=function(J,K,Y){var X=[],Z=Y;for(var Q=0;Q<Z;Q++,K+=1)X[Q]=J.getUint8(K);return String.fromCharCode.apply(null,X)};T8.UTF16=function(J,K,Y){var X=[],Z=Y/2;for(var Q=0;Q<Z;Q++,K+=2)X[Q]=J.getUint16(K);return String.fromCharCode.apply(null,X)};var Qz={"x-mac-croatian":"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\u0160\u2122\xB4\xA8\u2260\u017D\xD8\u221E\xB1\u2264\u2265\u2206\xB5\u2202\u2211\u220F\u0161\u222B\xAA\xBA\u03A9\u017E\xF8"+"\xBF\xA1\xAC\u221A\u0192\u2248\u0106\xAB\u010C\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u0110\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\uF8FF\xA9\u2044\u20AC\u2039\u203A\xC6\xBB\u2013\xB7\u201A\u201E\u2030\xC2\u0107\xC1\u010D\xC8\xCD\xCE\xCF\xCC\xD3\xD4\u0111\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u03C0\xCB\u02DA\xB8\xCA\xE6\u02C7","x-mac-cyrillic":"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u2020\xB0\u0490\xA3\xA7\u2022\xB6\u0406\xAE\xA9\u2122\u0402\u0452\u2260\u0403\u0453\u221E\xB1\u2264\u2265\u0456\xB5\u0491\u0408\u0404\u0454\u0407\u0457\u0409\u0459\u040A\u045A"+"\u0458\u0405\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\u040B\u045B\u040C\u045C\u0455\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u201E\u040E\u045E\u040F\u045F\u2116\u0401\u0451\u044F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E","x-mac-gaelic":"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u1E02\xB1\u2264\u2265\u1E03\u010A\u010B\u1E0A\u1E0B\u1E1E\u1E1F\u0120\u0121\u1E40\xE6\xF8"+"\u1E41\u1E56\u1E57\u027C\u0192\u017F\u1E60\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\u1E61\u1E9B\xFF\u0178\u1E6A\u20AC\u2039\u203A\u0176\u0177\u1E6B\xB7\u1EF2\u1EF3\u204A\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\u2663\xD2\xDA\xDB\xD9\u0131\xDD\xFD\u0174\u0175\u1E84\u1E85\u1E80\u1E81\u1E82\u1E83","x-mac-greek":"\xC4\xB9\xB2\xC9\xB3\xD6\xDC\u0385\xE0\xE2\xE4\u0384\xA8\xE7\xE9\xE8\xEA\xEB\xA3\u2122\xEE\xEF\u2022\xBD\u2030\xF4\xF6\xA6\u20AC\xF9\xFB\xFC\u2020\u0393\u0394\u0398\u039B\u039E\u03A0\xDF\xAE\xA9\u03A3\u03AA\xA7\u2260\xB0\xB7\u0391\xB1\u2264\u2265\xA5\u0392\u0395\u0396\u0397\u0399\u039A\u039C\u03A6\u03AB\u03A8\u03A9"+"\u03AC\u039D\xAC\u039F\u03A1\u2248\u03A4\xAB\xBB\u2026\xA0\u03A5\u03A7\u0386\u0388\u0153\u2013\u2015\u201C\u201D\u2018\u2019\xF7\u0389\u038A\u038C\u038E\u03AD\u03AE\u03AF\u03CC\u038F\u03CD\u03B1\u03B2\u03C8\u03B4\u03B5\u03C6\u03B3\u03B7\u03B9\u03BE\u03BA\u03BB\u03BC\u03BD\u03BF\u03C0\u03CE\u03C1\u03C3\u03C4\u03B8\u03C9\u03C2\u03C7\u03C5\u03B6\u03CA\u03CB\u0390\u03B0\xAD","x-mac-icelandic":"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\xDD\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u03A9\xE6\xF8"+"\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\u20AC\xD0\xF0\xDE\xFE\xFD\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uF8FF\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7","x-mac-inuit":"\u1403\u1404\u1405\u1406\u140A\u140B\u1431\u1432\u1433\u1434\u1438\u1439\u1449\u144E\u144F\u1450\u1451\u1455\u1456\u1466\u146D\u146E\u146F\u1470\u1472\u1473\u1483\u148B\u148C\u148D\u148E\u1490\u1491\xB0\u14A1\u14A5\u14A6\u2022\xB6\u14A7\xAE\xA9\u2122\u14A8\u14AA\u14AB\u14BB\u14C2\u14C3\u14C4\u14C5\u14C7\u14C8\u14D0\u14EF\u14F0\u14F1\u14F2\u14F4\u14F5\u1505\u14D5\u14D6\u14D7"+"\u14D8\u14DA\u14DB\u14EA\u1528\u1529\u152A\u152B\u152D\u2026\xA0\u152E\u153E\u1555\u1556\u1557\u2013\u2014\u201C\u201D\u2018\u2019\u1558\u1559\u155A\u155D\u1546\u1547\u1548\u1549\u154B\u154C\u1550\u157F\u1580\u1581\u1582\u1583\u1584\u1585\u158F\u1590\u1591\u1592\u1593\u1594\u1595\u1671\u1672\u1673\u1674\u1675\u1676\u1596\u15A0\u15A1\u15A2\u15A3\u15A4\u15A5\u15A6\u157C\u0141\u0142","x-mac-ce":"\xC4\u0100\u0101\xC9\u0104\xD6\xDC\xE1\u0105\u010C\xE4\u010D\u0106\u0107\xE9\u0179\u017A\u010E\xED\u010F\u0112\u0113\u0116\xF3\u0117\xF4\xF6\xF5\xFA\u011A\u011B\xFC\u2020\xB0\u0118\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\u0119\xA8\u2260\u0123\u012E\u012F\u012A\u2264\u2265\u012B\u0136\u2202\u2211\u0142\u013B\u013C\u013D\u013E\u0139\u013A\u0145"+"\u0146\u0143\xAC\u221A\u0144\u0147\u2206\xAB\xBB\u2026\xA0\u0148\u0150\xD5\u0151\u014C\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\u014D\u0154\u0155\u0158\u2039\u203A\u0159\u0156\u0157\u0160\u201A\u201E\u0161\u015A\u015B\xC1\u0164\u0165\xCD\u017D\u017E\u016A\xD3\xD4\u016B\u016E\xDA\u016F\u0170\u0171\u0172\u0173\xDD\xFD\u0137\u017B\u0141\u017C\u0122\u02C7",macintosh:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u03A9\xE6\xF8"+"\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\u20AC\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uF8FF\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7","x-mac-romanian":"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\u0102\u0218\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u03A9\u0103\u0219"+"\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\u20AC\u2039\u203A\u021A\u021B\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uF8FF\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7","x-mac-turkish":"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u03A9\xE6\xF8"+"\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u011E\u011F\u0130\u0131\u015E\u015F\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uF8FF\xD2\xDA\xDB\xD9\uF8A0\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"};T8.MACSTRING=function(J,K,Y,X){var Z=Qz[X];if(Z===void 0)return;var Q="";for(var w=0;w<Y;w++){var $=J.getUint8(K+w);if($<=127)Q+=String.fromCharCode($);else Q+=Z[$&127]}return Q};function wz(J,K){var Y=new n.Parser(J,K),X=Y.parseULong();H0.argument(X===1,"Unsupported META table version."),Y.parseULong(),Y.parseULong();var Z=Y.parseULong(),Q={};for(var w=0;w<Z;w++){var $=Y.parseTag(),W=Y.parseULong(),z=Y.parseULong(),H=T8.UTF8(J,K+W,z);Q[$]=H}return Q}var Wz={parse:wz};function k2(J,K){var Y=[],X=12;for(var Z=0;Z<K;Z+=1){var Q=n.getTag(J,X),w=n.getULong(J,X+4),$=n.getULong(J,X+8),W=n.getULong(J,X+12);Y.push({tag:Q,checksum:w,offset:$,length:W,compression:!1}),X+=16}return Y}function $z(J,K){var Y=[],X=44;for(var Z=0;Z<K;Z+=1){var Q=n.getTag(J,X),w=n.getULong(J,X+4),$=n.getULong(J,X+8),W=n.getULong(J,X+12),z=void 0;if($<W)z="WOFF";else z=!1;Y.push({tag:Q,offset:w,compression:z,compressedLength:$,length:W}),X+=20}return Y}function C0(J,K){if(K.compression==="WOFF"){var Y=new Uint8Array(J.buffer,K.offset+2,K.compressedLength-2),X=new Uint8Array(K.length);if(CQ(Y,X),X.byteLength!==K.length)throw Error("Decompression error: "+K.tag+" decompressed length doesn't match recorded length");var Z=new DataView(X.buffer,0);return{data:Z,offset:0}}else return{data:J,offset:K.offset}}function zz(J,K){K=K===void 0||K===null?{}:K;var Y,X=new m0({empty:!0}),Z=new DataView(J,0),Q,w=[],$=n.getTag(Z,0);if($===String.fromCharCode(0,1,0,0)||$==="true"||$==="typ1")X.outlinesFormat="truetype",Q=n.getUShort(Z,4),w=k2(Z,Q);else if($==="OTTO")X.outlinesFormat="cff",Q=n.getUShort(Z,4),w=k2(Z,Q);else if($==="wOFF"){var W=n.getTag(Z,4);if(W===String.fromCharCode(0,1,0,0))X.outlinesFormat="truetype";else if(W==="OTTO")X.outlinesFormat="cff";else throw Error("Unsupported OpenType flavor "+$);Q=n.getUShort(Z,12),w=$z(Z,Q)}else throw Error("Unsupported OpenType signature "+$);var z,H,U,A,V,L,B,q,M,N,E;for(var I=0;I<Q;I+=1){var F=w[I],j=void 0;switch(F.tag){case"cmap":j=C0(Z,F),X.tables.cmap=W$.parse(j.data,j.offset),X.encoding=new u2(X.tables.cmap);break;case"cvt ":j=C0(Z,F),E=new n.Parser(j.data,j.offset),X.tables.cvt=E.parseShortList(F.length/2);break;case"fvar":H=F;break;case"fpgm":j=C0(Z,F),E=new n.Parser(j.data,j.offset),X.tables.fpgm=E.parseByteList(F.length);break;case"head":j=C0(Z,F),X.tables.head=b$.parse(j.data,j.offset),X.unitsPerEm=X.tables.head.unitsPerEm,Y=X.tables.head.indexToLocFormat;break;case"hhea":j=C0(Z,F),X.tables.hhea=m$.parse(j.data,j.offset),X.ascender=X.tables.hhea.ascender,X.descender=X.tables.hhea.descender,X.numberOfHMetrics=X.tables.hhea.numberOfHMetrics;break;case"hmtx":B=F;break;case"ltag":j=C0(Z,F),ltagTable=s$.parse(j.data,j.offset);break;case"maxp":j=C0(Z,F),X.tables.maxp=Jz.parse(j.data,j.offset),X.numGlyphs=X.tables.maxp.numGlyphs;break;case"OS/2":j=C0(Z,F),X.tables.os2=Yz.parse(j.data,j.offset);break;case"post":j=C0(Z,F),X.tables.post=Zz.parse(j.data,j.offset);break;case"prep":j=C0(Z,F),E=new n.Parser(j.data,j.offset),X.tables.prep=E.parseByteList(F.length);break;case"glyf":U=F;break;case"loca":M=F;break;case"CFF ":z=F;break;case"kern":q=F;break;case"GDEF":A=F;break;case"GPOS":V=F;break;case"GSUB":L=F;break;case"meta":N=F;break}}if(U&&M){var C=Y===0,R=C0(Z,M),T=t$.parse(R.data,R.offset,X.numGlyphs,C),k=C0(Z,U);X.glyphs=s2.parse(k.data,k.offset,T,X,K)}else if(z){var d=C0(Z,z);j$.parse(d.data,d.offset,X,K)}else throw Error("Font doesn't contain TrueType or CFF outlines.");var u=C0(Z,B);if(u$.parse(X,u.data,u.offset,X.numberOfHMetrics,X.numGlyphs,X.glyphs,K),gQ(X,K),q){var p=C0(Z,q);X.kerningPairs=n$.parse(p.data,p.offset)}else X.kerningPairs={};if(A){var P=C0(Z,A);X.tables.gdef=v$.parse(P.data,P.offset)}if(V){var S=C0(Z,V);X.tables.gpos=y$.parse(S.data,S.offset),X.position.init()}if(L){var D=C0(Z,L);X.tables.gsub=g$.parse(D.data,D.offset)}if(H){var l=C0(Z,H);X.tables.fvar=I$.parse(l.data,l.offset,X.names)}if(N){var f=C0(Z,N);X.tables.meta=Wz.parse(f.data,f.offset),X.metas=X.tables.meta}return X}function Hz(){}function Uz(){}var Az=Object.freeze({__proto__:null,Font:m0,Glyph:S1,Path:f0,_parse:n,parse:zz,load:Hz,loadSync:Uz}),P8=Az;var{create:Bz,defineProperty:o8,getOwnPropertyDescriptor:Gz,getOwnPropertyNames:Lz,getPrototypeOf:qz}=Object,Oz=Object.prototype.hasOwnProperty,f9=(J,K)=>()=>(J&&(K=J(J=0)),K),t=(J,K)=>()=>(K||J((K={exports:{}}).exports,K),K.exports),m9=(J,K)=>{for(var Y in K)o8(J,Y,{get:K[Y],enumerable:!0})},vJ=(J,K,Y,X)=>{if(K&&typeof K=="object"||typeof K=="function")for(let Z of Lz(K))!Oz.call(J,Z)&&Z!==Y&&o8(J,Z,{get:()=>K[Z],enumerable:!(X=Gz(K,Z))||X.enumerable});return J},Mz=(J,K,Y)=>(Y=J!=null?Bz(qz(J)):{},vJ(K||!J||!J.__esModule?o8(Y,"default",{value:J,enumerable:!0}):Y,J)),r8=(J)=>vJ(o8({},"__esModule",{value:!0}),J),hJ={};m9(hJ,{getYogaModule:()=>Nz});async function Nz(){let{default:J}=await import("./chunk-6q2xys8x.js");return J()}var jz=f9(()=>{}),yJ=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>K});function K(Y){if(Y=`${Y}`,Y==="0")return"0";if(/^[+-]?(\d+|\d*\.\d+)(e[+-]?\d+)?(%|\w+)?$/.test(Y))return Y.replace(/^[+-]?/,(X)=>X==="-"?"":"-");if(Y.includes("var(")||Y.includes("calc("))return`calc(${Y} * -1)`}}),Ez=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>K});var K=["preflight","container","accessibility","pointerEvents","visibility","position","inset","isolation","zIndex","order","gridColumn","gridColumnStart","gridColumnEnd","gridRow","gridRowStart","gridRowEnd","float","clear","margin","boxSizing","display","aspectRatio","height","maxHeight","minHeight","width","minWidth","maxWidth","flex","flexShrink","flexGrow","flexBasis","tableLayout","borderCollapse","borderSpacing","transformOrigin","translate","rotate","skew","scale","transform","animation","cursor","touchAction","userSelect","resize","scrollSnapType","scrollSnapAlign","scrollSnapStop","scrollMargin","scrollPadding","listStylePosition","listStyleType","appearance","columns","breakBefore","breakInside","breakAfter","gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateColumns","gridTemplateRows","flexDirection","flexWrap","placeContent","placeItems","alignContent","alignItems","justifyContent","justifyItems","gap","space","divideWidth","divideStyle","divideColor","divideOpacity","placeSelf","alignSelf","justifySelf","overflow","overscrollBehavior","scrollBehavior","textOverflow","whitespace","wordBreak","borderRadius","borderWidth","borderStyle","borderColor","borderOpacity","backgroundColor","backgroundOpacity","backgroundImage","gradientColorStops","boxDecorationBreak","backgroundSize","backgroundAttachment","backgroundClip","backgroundPosition","backgroundRepeat","backgroundOrigin","fill","stroke","strokeWidth","objectFit","objectPosition","padding","textAlign","textIndent","verticalAlign","fontFamily","fontSize","fontWeight","textTransform","fontStyle","fontVariantNumeric","lineHeight","letterSpacing","textColor","textOpacity","textDecoration","textDecorationColor","textDecorationStyle","textDecorationThickness","textUnderlineOffset","fontSmoothing","placeholderColor","placeholderOpacity","caretColor","accentColor","opacity","backgroundBlendMode","mixBlendMode","boxShadow","boxShadowColor","outlineStyle","outlineWidth","outlineOffset","outlineColor","ringWidth","ringColor","ringOpacity","ringOffsetWidth","ringOffsetColor","blur","brightness","contrast","dropShadow","grayscale","hueRotate","invert","saturate","sepia","filter","backdropBlur","backdropBrightness","backdropContrast","backdropGrayscale","backdropHueRotate","backdropInvert","backdropOpacity","backdropSaturate","backdropSepia","backdropFilter","transitionProperty","transitionDelay","transitionDuration","transitionTimingFunction","willChange","content"]}),Fz=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>K});function K(Y,X){return Y===void 0?X:Array.isArray(Y)?Y:[...new Set(X.filter((Z)=>Y!==!1&&Y[Z]!==!1).concat(Object.keys(Y).filter((Z)=>Y[Z]!==!1)))]}}),kJ=t((J,K)=>{K.exports={content:[],presets:[],darkMode:"media",theme:{screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},colors:({colors:Y})=>({inherit:Y.inherit,current:Y.current,transparent:Y.transparent,black:Y.black,white:Y.white,slate:Y.slate,gray:Y.gray,zinc:Y.zinc,neutral:Y.neutral,stone:Y.stone,red:Y.red,orange:Y.orange,amber:Y.amber,yellow:Y.yellow,lime:Y.lime,green:Y.green,emerald:Y.emerald,teal:Y.teal,cyan:Y.cyan,sky:Y.sky,blue:Y.blue,indigo:Y.indigo,violet:Y.violet,purple:Y.purple,fuchsia:Y.fuchsia,pink:Y.pink,rose:Y.rose}),columns:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",0.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",pulse:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1 / 1",video:"16 / 9"},backdropBlur:({theme:Y})=>Y("blur"),backdropBrightness:({theme:Y})=>Y("brightness"),backdropContrast:({theme:Y})=>Y("contrast"),backdropGrayscale:({theme:Y})=>Y("grayscale"),backdropHueRotate:({theme:Y})=>Y("hueRotate"),backdropInvert:({theme:Y})=>Y("invert"),backdropOpacity:({theme:Y})=>Y("opacity"),backdropSaturate:({theme:Y})=>Y("saturate"),backdropSepia:({theme:Y})=>Y("sepia"),backgroundColor:({theme:Y})=>Y("colors"),backgroundImage:{none:"none","gradient-to-t":"linear-gradient(to top, var(--tw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--tw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--tw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--tw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--tw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--tw-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--tw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--tw-gradient-stops))"},backgroundOpacity:({theme:Y})=>Y("opacity"),backgroundPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",none:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",200:"2"},borderColor:({theme:Y})=>({...Y("colors"),DEFAULT:Y("colors.gray.200","currentColor")}),borderOpacity:({theme:Y})=>Y("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderSpacing:({theme:Y})=>({...Y("spacing")}),borderWidth:{DEFAULT:"1px",0:"0px",2:"2px",4:"4px",8:"8px"},boxShadow:{sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",DEFAULT:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},boxShadowColor:({theme:Y})=>Y("colors"),caretColor:({theme:Y})=>Y("colors"),accentColor:({theme:Y})=>({...Y("colors"),auto:"auto"}),contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2"},container:{},content:{none:"none"},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move",help:"help","not-allowed":"not-allowed",none:"none","context-menu":"context-menu",progress:"progress",cell:"cell",crosshair:"crosshair","vertical-text":"vertical-text",alias:"alias",copy:"copy","no-drop":"no-drop",grab:"grab",grabbing:"grabbing","all-scroll":"all-scroll","col-resize":"col-resize","row-resize":"row-resize","n-resize":"n-resize","e-resize":"e-resize","s-resize":"s-resize","w-resize":"w-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","se-resize":"se-resize","sw-resize":"sw-resize","ew-resize":"ew-resize","ns-resize":"ns-resize","nesw-resize":"nesw-resize","nwse-resize":"nwse-resize","zoom-in":"zoom-in","zoom-out":"zoom-out"},divideColor:({theme:Y})=>Y("borderColor"),divideOpacity:({theme:Y})=>Y("borderOpacity"),divideWidth:({theme:Y})=>Y("borderWidth"),dropShadow:{sm:"0 1px 1px rgb(0 0 0 / 0.05)",DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 #0000"},fill:({theme:Y})=>Y("colors"),grayscale:{0:"0",DEFAULT:"100%"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{0:"0",DEFAULT:"100%"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:Y})=>({auto:"auto",...Y("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%"}),flexGrow:{0:"0",DEFAULT:"1"},flexShrink:{0:"0",DEFAULT:"1"},fontFamily:{sans:["ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial",'"Noto Sans"',"sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:({theme:Y})=>Y("spacing"),gradientColorStops:({theme:Y})=>Y("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridColumn:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridColumnEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridColumnStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridRow:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-full":"1 / -1"},gridRowStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7"},gridRowEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7"},gridTemplateColumns:{none:"none",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))"},gridTemplateRows:{none:"none",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))"},height:({theme:Y})=>({auto:"auto",...Y("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"}),inset:({theme:Y})=>({auto:"auto",...Y("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},margin:({theme:Y})=>({auto:"auto",...Y("spacing")}),maxHeight:({theme:Y})=>({...Y("spacing"),full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"}),maxWidth:({theme:Y,breakpoints:X})=>({none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch",...X(Y("screens"))}),minHeight:{0:"0px",full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},objectPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},opacity:{0:"0",5:"0.05",10:"0.1",20:"0.2",25:"0.25",30:"0.3",40:"0.4",50:"0.5",60:"0.6",70:"0.7",75:"0.75",80:"0.8",90:"0.9",95:"0.95",100:"1"},order:{first:"-9999",last:"9999",none:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},padding:({theme:Y})=>Y("spacing"),placeholderColor:({theme:Y})=>Y("colors"),placeholderOpacity:({theme:Y})=>Y("opacity"),outlineColor:({theme:Y})=>Y("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},ringColor:({theme:Y})=>({DEFAULT:Y("colors.blue.500","#3b82f6"),...Y("colors")}),ringOffsetColor:({theme:Y})=>Y("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},ringOpacity:({theme:Y})=>({DEFAULT:"0.5",...Y("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg"},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2"},scale:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5"},scrollMargin:({theme:Y})=>({...Y("spacing")}),scrollPadding:({theme:Y})=>Y("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg"},space:({theme:Y})=>({...Y("spacing")}),stroke:({theme:Y})=>Y("colors"),strokeWidth:{0:"0",1:"1",2:"2"},textColor:({theme:Y})=>Y("colors"),textDecorationColor:({theme:Y})=>Y("colors"),textDecorationThickness:{auto:"auto","from-font":"from-font",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},textIndent:({theme:Y})=>({...Y("spacing")}),textOpacity:({theme:Y})=>Y("opacity"),transformOrigin:{center:"center",top:"top","top-right":"top right",right:"right","bottom-right":"bottom right",bottom:"bottom","bottom-left":"bottom left",left:"left","top-left":"top left"},transitionDelay:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1000:"1000ms"},transitionDuration:{DEFAULT:"150ms",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1000:"1000ms"},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, text-decoration-color, fill, stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},translate:({theme:Y})=>({...Y("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),width:({theme:Y})=>({auto:"auto",...Y("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",screen:"100vw",min:"min-content",max:"max-content",fit:"fit-content"}),willChange:{auto:"auto",scroll:"scroll-position",contents:"contents",transform:"transform"},zIndex:{auto:"auto",0:"0",10:"10",20:"20",30:"30",40:"40",50:"50"}},variantOrder:["first","last","odd","even","visited","checked","empty","read-only","group-hover","group-focus","focus-within","hover","focus","focus-visible","active","disabled"],plugins:[]}}),s8={};m9(s8,{default:()=>gJ});var gJ,c9=f9(()=>{gJ={info(J,K){console.info(...Array.isArray(J)?[J]:[K,J])},warn(J,K){console.warn(...Array.isArray(J)?[J]:[K,J])},risk(J,K){console.error(...Array.isArray(J)?[J]:[K,J])}}}),_z=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>Z});var K=Y((c9(),r8(s8)));function Y(Q){return Q&&Q.__esModule?Q:{default:Q}}function X({version:Q,from:w,to:$}){K.default.warn(`${w}-color-renamed`,[`As of Tailwind CSS ${Q}, \`${w}\` has been renamed to \`${$}\`.`,"Update your configuration file to silence this warning."])}var Z={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},get lightBlue(){return X({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return X({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return X({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return X({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return X({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}}),Iz=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"defaults",{enumerable:!0,get:()=>K});function K(Y,...X){for(let w of X){for(let $ in w){var Z;!(Y==null||(Z=Y.hasOwnProperty)===null||Z===void 0)&&Z.call(Y,$)||(Y[$]=w[$])}for(let $ of Object.getOwnPropertySymbols(w)){var Q;!(Y==null||(Q=Y.hasOwnProperty)===null||Q===void 0)&&Q.call(Y,$)||(Y[$]=w[$])}}return Y}}),Rz=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"toPath",{enumerable:!0,get:()=>K});function K(Y){if(Array.isArray(Y))return Y;let X=Y.split("[").length-1,Z=Y.split("]").length-1;if(X!==Z)throw Error(`Path is invalid. Has unbalanced brackets: ${Y}`);return Y.split(/\.(?![^\[]*\])|[\[\]]/g).filter(Boolean)}}),Dz=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"normalizeConfig",{enumerable:!0,get:()=>Z});var K=X((c9(),r8(s8)));function Y(Q){if(typeof WeakMap!="function")return null;var w=new WeakMap,$=new WeakMap;return(Y=function(W){return W?$:w})(Q)}function X(Q,w){if(!w&&Q&&Q.__esModule)return Q;if(Q===null||typeof Q!="object"&&typeof Q!="function")return{default:Q};var $=Y(w);if($&&$.has(Q))return $.get(Q);var W={},z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var H in Q)if(H!=="default"&&Object.prototype.hasOwnProperty.call(Q,H)){var U=z?Object.getOwnPropertyDescriptor(Q,H):null;U&&(U.get||U.set)?Object.defineProperty(W,H,U):W[H]=Q[H]}return W.default=Q,$&&$.set(Q,W),W}function Z(Q){if((()=>{if(Q.purge||!Q.content||!Array.isArray(Q.content)&&!(typeof Q.content=="object"&&Q.content!==null))return!1;if(Array.isArray(Q.content))return Q.content.every(($)=>typeof $=="string"?!0:!(typeof($==null?void 0:$.raw)!="string"||$!=null&&$.extension&&typeof($==null?void 0:$.extension)!="string"));if(typeof Q.content=="object"&&Q.content!==null){if(Object.keys(Q.content).some(($)=>!["files","extract","transform"].includes($)))return!1;if(Array.isArray(Q.content.files)){if(!Q.content.files.every(($)=>typeof $=="string"?!0:!(typeof($==null?void 0:$.raw)!="string"||$!=null&&$.extension&&typeof($==null?void 0:$.extension)!="string")))return!1;if(typeof Q.content.extract=="object"){for(let $ of Object.values(Q.content.extract))if(typeof $!="function")return!1}else if(!(Q.content.extract===void 0||typeof Q.content.extract=="function"))return!1;if(typeof Q.content.transform=="object"){for(let $ of Object.values(Q.content.transform))if(typeof $!="function")return!1}else if(!(Q.content.transform===void 0||typeof Q.content.transform=="function"))return!1}return!0}return!1})()||K.default.warn("purge-deprecation",["The `purge`/`content` options have changed in Tailwind CSS v3.0.","Update your configuration file to eliminate this warning.","https://tailwindcss.com/docs/upgrade-guide#configure-content-sources"]),Q.safelist=(()=>{var $;let{content:W,purge:z,safelist:H}=Q;return Array.isArray(H)?H:Array.isArray(W==null?void 0:W.safelist)?W.safelist:Array.isArray(z==null?void 0:z.safelist)?z.safelist:Array.isArray(z==null||($=z.options)===null||$===void 0?void 0:$.safelist)?z.options.safelist:[]})(),typeof Q.prefix=="function")K.default.warn("prefix-function",["As of Tailwind CSS v3.0, `prefix` cannot be a function.","Update `prefix` in your configuration to be a string to eliminate this warning.","https://tailwindcss.com/docs/upgrade-guide#prefix-cannot-be-a-function"]),Q.prefix="";else{var w;Q.prefix=(w=Q.prefix)!==null&&w!==void 0?w:""}Q.content={files:(()=>{let{content:$,purge:W}=Q;return Array.isArray(W)?W:Array.isArray(W==null?void 0:W.content)?W.content:Array.isArray($)?$:Array.isArray($==null?void 0:$.content)?$.content:Array.isArray($==null?void 0:$.files)?$.files:[]})(),extract:(()=>{let $=(()=>{var H,U,A,V,L,B,q,M,N,E;return!((H=Q.purge)===null||H===void 0)&&H.extract?Q.purge.extract:!((U=Q.content)===null||U===void 0)&&U.extract?Q.content.extract:!((A=Q.purge)===null||A===void 0||(V=A.extract)===null||V===void 0)&&V.DEFAULT?Q.purge.extract.DEFAULT:!((L=Q.content)===null||L===void 0||(B=L.extract)===null||B===void 0)&&B.DEFAULT?Q.content.extract.DEFAULT:!((q=Q.purge)===null||q===void 0||(M=q.options)===null||M===void 0)&&M.extractors?Q.purge.options.extractors:!((N=Q.content)===null||N===void 0||(E=N.options)===null||E===void 0)&&E.extractors?Q.content.options.extractors:{}})(),W={},z=(()=>{var H,U,A,V;if(!((H=Q.purge)===null||H===void 0||(U=H.options)===null||U===void 0)&&U.defaultExtractor)return Q.purge.options.defaultExtractor;if(!((A=Q.content)===null||A===void 0||(V=A.options)===null||V===void 0)&&V.defaultExtractor)return Q.content.options.defaultExtractor})();if(z!==void 0&&(W.DEFAULT=z),typeof $=="function")W.DEFAULT=$;else if(Array.isArray($))for(let{extensions:H,extractor:U}of $??[])for(let A of H)W[A]=U;else typeof $=="object"&&$!==null&&Object.assign(W,$);return W})(),transform:(()=>{let $=(()=>{var z,H,U,A,V,L;return!((z=Q.purge)===null||z===void 0)&&z.transform?Q.purge.transform:!((H=Q.content)===null||H===void 0)&&H.transform?Q.content.transform:!((U=Q.purge)===null||U===void 0||(A=U.transform)===null||A===void 0)&&A.DEFAULT?Q.purge.transform.DEFAULT:!((V=Q.content)===null||V===void 0||(L=V.transform)===null||L===void 0)&&L.DEFAULT?Q.content.transform.DEFAULT:{}})(),W={};return typeof $=="function"&&(W.DEFAULT=$),typeof $=="object"&&$!==null&&Object.assign(W,$),W})()};for(let $ of Q.content.files)if(typeof $=="string"&&/{([^,]*?)}/g.test($)){K.default.warn("invalid-glob-braces",[`The glob pattern ${(0,K.dim)($)} in your Tailwind CSS configuration is invalid.`,`Update it to ${(0,K.dim)($.replace(/{([^,]*?)}/g,"$1"))} to silence this warning.`]);break}return Q}}),Cz=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>K});function K(Y){if(Object.prototype.toString.call(Y)!=="[object Object]")return!1;let X=Object.getPrototypeOf(Y);return X===null||X===Object.prototype}}),Tz=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"cloneDeep",{enumerable:!0,get:()=>K});function K(Y){return Array.isArray(Y)?Y.map((X)=>K(X)):typeof Y=="object"&&Y!==null?Object.fromEntries(Object.entries(Y).map(([X,Z])=>[X,K(Z)])):Y}}),xJ=t((J,K)=>{J.__esModule=!0,J.default=Z;function Y(Q){for(var w=Q.toLowerCase(),$="",W=!1,z=0;z<6&&w[z]!==void 0;z++){var H=w.charCodeAt(z),U=H>=97&&H<=102||H>=48&&H<=57;if(W=H===32,!U)break;$+=w[z]}if($.length!==0){var A=parseInt($,16),V=A>=55296&&A<=57343;return V||A===0||A>1114111?["\uFFFD",$.length+(W?1:0)]:[String.fromCodePoint(A),$.length+(W?1:0)]}}var X=/\\/;function Z(Q){var w=X.test(Q);if(!w)return Q;for(var $="",W=0;W<Q.length;W++){if(Q[W]==="\\"){var z=Y(Q.slice(W+1,W+7));if(z!==void 0){$+=z[0],W+=z[1];continue}if(Q[W+1]==="\\"){$+="\\",W++;continue}Q.length===W+1&&($+=Q[W]);continue}$+=Q[W]}return $}K.exports=J.default}),Pz=t((J,K)=>{J.__esModule=!0,J.default=Y;function Y(X){for(var Z=arguments.length,Q=Array(Z>1?Z-1:0),w=1;w<Z;w++)Q[w-1]=arguments[w];for(;Q.length>0;){var $=Q.shift();if(!X[$])return;X=X[$]}return X}K.exports=J.default}),Sz=t((J,K)=>{J.__esModule=!0,J.default=Y;function Y(X){for(var Z=arguments.length,Q=Array(Z>1?Z-1:0),w=1;w<Z;w++)Q[w-1]=arguments[w];for(;Q.length>0;){var $=Q.shift();X[$]||(X[$]={}),X=X[$]}}K.exports=J.default}),vz=t((J,K)=>{J.__esModule=!0,J.default=Y;function Y(X){for(var Z="",Q=X.indexOf("/*"),w=0;Q>=0;){Z=Z+X.slice(w,Q);var $=X.indexOf("*/",Q+2);if($<0)return Z;w=$+2,Q=X.indexOf("/*",w)}return Z=Z+X.slice(w),Z}K.exports=J.default}),a8=t((J)=>{J.__esModule=!0,J.stripComments=J.ensureObject=J.getProp=J.unesc=void 0;var K=Q(xJ());J.unesc=K.default;var Y=Q(Pz());J.getProp=Y.default;var X=Q(Sz());J.ensureObject=X.default;var Z=Q(vz());J.stripComments=Z.default;function Q(w){return w&&w.__esModule?w:{default:w}}}),o1=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=a8();function X($,W){for(var z=0;z<W.length;z++){var H=W[z];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty($,H.key,H)}}function Z($,W,z){return W&&X($.prototype,W),z&&X($,z),$}var Q=function $(W,z){if(typeof W!="object"||W===null)return W;var H=new W.constructor;for(var U in W)if(W.hasOwnProperty(U)){var A=W[U],V=typeof A;U==="parent"&&V==="object"?z&&(H[U]=z):A instanceof Array?H[U]=A.map(function(L){return $(L,H)}):H[U]=$(A,H)}return H},w=function(){function $(z){z===void 0&&(z={}),Object.assign(this,z),this.spaces=this.spaces||{},this.spaces.before=this.spaces.before||"",this.spaces.after=this.spaces.after||""}var W=$.prototype;return W.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},W.replaceWith=function(){if(this.parent){for(var z in arguments)this.parent.insertBefore(this,arguments[z]);this.remove()}return this},W.next=function(){return this.parent.at(this.parent.index(this)+1)},W.prev=function(){return this.parent.at(this.parent.index(this)-1)},W.clone=function(z){z===void 0&&(z={});var H=Q(this);for(var U in z)H[U]=z[U];return H},W.appendToPropertyAndEscape=function(z,H,U){this.raws||(this.raws={});var A=this[z],V=this.raws[z];this[z]=A+H,V||U!==H?this.raws[z]=(V||A)+U:delete this.raws[z]},W.setPropertyAndEscape=function(z,H,U){this.raws||(this.raws={}),this[z]=H,this.raws[z]=U},W.setPropertyWithoutEscape=function(z,H){this[z]=H,this.raws&&delete this.raws[z]},W.isAtPosition=function(z,H){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>z||this.source.end.line<z||this.source.start.line===z&&this.source.start.column>H||this.source.end.line===z&&this.source.end.column<H)},W.stringifyProperty=function(z){return this.raws&&this.raws[z]||this[z]},W.valueToString=function(){return String(this.stringifyProperty("value"))},W.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join("")},Z($,[{key:"rawSpaceBefore",get:function(){var z=this.raws&&this.raws.spaces&&this.raws.spaces.before;return z===void 0&&(z=this.spaces&&this.spaces.before),z||""},set:function(z){(0,Y.ensureObject)(this,"raws","spaces"),this.raws.spaces.before=z}},{key:"rawSpaceAfter",get:function(){var z=this.raws&&this.raws.spaces&&this.raws.spaces.after;return z===void 0&&(z=this.spaces.after),z||""},set:function(z){(0,Y.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=z}}]),$}();J.default=w,K.exports=J.default}),c0=t((J)=>{J.__esModule=!0,J.UNIVERSAL=J.ATTRIBUTE=J.CLASS=J.COMBINATOR=J.COMMENT=J.ID=J.NESTING=J.PSEUDO=J.ROOT=J.SELECTOR=J.STRING=J.TAG=void 0;var K="tag";J.TAG=K;var Y="string";J.STRING=Y;var X="selector";J.SELECTOR=X;var Z="root";J.ROOT=Z;var Q="pseudo";J.PSEUDO=Q;var w="nesting";J.NESTING=w;var $="id";J.ID=$;var W="comment";J.COMMENT=W;var z="combinator";J.COMBINATOR=z;var H="class";J.CLASS=H;var U="attribute";J.ATTRIBUTE=U;var A="universal";J.UNIVERSAL=A}),l9=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=w(o1()),X=Q(c0());function Z(){if(typeof WeakMap!="function")return null;var B=new WeakMap;return Z=function(){return B},B}function Q(B){if(B&&B.__esModule)return B;if(B===null||typeof B!="object"&&typeof B!="function")return{default:B};var q=Z();if(q&&q.has(B))return q.get(B);var M={},N=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in B)if(Object.prototype.hasOwnProperty.call(B,E)){var I=N?Object.getOwnPropertyDescriptor(B,E):null;I&&(I.get||I.set)?Object.defineProperty(M,E,I):M[E]=B[E]}return M.default=B,q&&q.set(B,M),M}function w(B){return B&&B.__esModule?B:{default:B}}function $(B,q){var M;if(typeof Symbol>"u"||B[Symbol.iterator]==null){if(Array.isArray(B)||(M=W(B))||q&&B&&typeof B.length=="number"){M&&(B=M);var N=0;return function(){return N>=B.length?{done:!0}:{done:!1,value:B[N++]}}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
62
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return M=B[Symbol.iterator](),M.next.bind(M)}function W(B,q){if(B){if(typeof B=="string")return z(B,q);var M=Object.prototype.toString.call(B).slice(8,-1);if(M==="Object"&&B.constructor&&(M=B.constructor.name),M==="Map"||M==="Set")return Array.from(B);if(M==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(M))return z(B,q)}}function z(B,q){(q==null||q>B.length)&&(q=B.length);for(var M=0,N=Array(q);M<q;M++)N[M]=B[M];return N}function H(B,q){for(var M=0;M<q.length;M++){var N=q[M];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(B,N.key,N)}}function U(B,q,M){return q&&H(B.prototype,q),M&&H(B,M),B}function A(B,q){B.prototype=Object.create(q.prototype),B.prototype.constructor=B,V(B,q)}function V(B,q){return V=Object.setPrototypeOf||function(M,N){return M.__proto__=N,M},V(B,q)}var L=function(B){A(q,B);function q(N){var E;return E=B.call(this,N)||this,E.nodes||(E.nodes=[]),E}var M=q.prototype;return M.append=function(N){return N.parent=this,this.nodes.push(N),this},M.prepend=function(N){return N.parent=this,this.nodes.unshift(N),this},M.at=function(N){return this.nodes[N]},M.index=function(N){return typeof N=="number"?N:this.nodes.indexOf(N)},M.removeChild=function(N){N=this.index(N),this.at(N).parent=void 0,this.nodes.splice(N,1);var E;for(var I in this.indexes)E=this.indexes[I],E>=N&&(this.indexes[I]=E-1);return this},M.removeAll=function(){for(var N=$(this.nodes),E;!(E=N()).done;){var I=E.value;I.parent=void 0}return this.nodes=[],this},M.empty=function(){return this.removeAll()},M.insertAfter=function(N,E){E.parent=this;var I=this.index(N);this.nodes.splice(I+1,0,E),E.parent=this;var F;for(var j in this.indexes)F=this.indexes[j],I<=F&&(this.indexes[j]=F+1);return this},M.insertBefore=function(N,E){E.parent=this;var I=this.index(N);this.nodes.splice(I,0,E),E.parent=this;var F;for(var j in this.indexes)F=this.indexes[j],F<=I&&(this.indexes[j]=F+1);return this},M._findChildAtPosition=function(N,E){var I=void 0;return this.each(function(F){if(F.atPosition){var j=F.atPosition(N,E);if(j)return I=j,!1}else if(F.isAtPosition(N,E))return I=F,!1}),I},M.atPosition=function(N,E){if(this.isAtPosition(N,E))return this._findChildAtPosition(N,E)||this},M._inferEndPosition=function(){this.last&&this.last.source&&this.last.source.end&&(this.source=this.source||{},this.source.end=this.source.end||{},Object.assign(this.source.end,this.last.source.end))},M.each=function(N){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var E=this.lastEach;if(this.indexes[E]=0,!!this.length){for(var I,F;this.indexes[E]<this.length&&(I=this.indexes[E],F=N(this.at(I),I),F!==!1);)this.indexes[E]+=1;if(delete this.indexes[E],F===!1)return!1}},M.walk=function(N){return this.each(function(E,I){var F=N(E,I);if(F!==!1&&E.length&&(F=E.walk(N)),F===!1)return!1})},M.walkAttributes=function(N){var E=this;return this.walk(function(I){if(I.type===X.ATTRIBUTE)return N.call(E,I)})},M.walkClasses=function(N){var E=this;return this.walk(function(I){if(I.type===X.CLASS)return N.call(E,I)})},M.walkCombinators=function(N){var E=this;return this.walk(function(I){if(I.type===X.COMBINATOR)return N.call(E,I)})},M.walkComments=function(N){var E=this;return this.walk(function(I){if(I.type===X.COMMENT)return N.call(E,I)})},M.walkIds=function(N){var E=this;return this.walk(function(I){if(I.type===X.ID)return N.call(E,I)})},M.walkNesting=function(N){var E=this;return this.walk(function(I){if(I.type===X.NESTING)return N.call(E,I)})},M.walkPseudos=function(N){var E=this;return this.walk(function(I){if(I.type===X.PSEUDO)return N.call(E,I)})},M.walkTags=function(N){var E=this;return this.walk(function(I){if(I.type===X.TAG)return N.call(E,I)})},M.walkUniversals=function(N){var E=this;return this.walk(function(I){if(I.type===X.UNIVERSAL)return N.call(E,I)})},M.split=function(N){var E=this,I=[];return this.reduce(function(F,j,C){var R=N.call(E,j);return I.push(j),R?(F.push(I),I=[]):C===E.length-1&&F.push(I),F},[])},M.map=function(N){return this.nodes.map(N)},M.reduce=function(N,E){return this.nodes.reduce(N,E)},M.every=function(N){return this.nodes.every(N)},M.some=function(N){return this.nodes.some(N)},M.filter=function(N){return this.nodes.filter(N)},M.sort=function(N){return this.nodes.sort(N)},M.toString=function(){return this.map(String).join("")},U(q,[{key:"first",get:function(){return this.at(0)}},{key:"last",get:function(){return this.at(this.length-1)}},{key:"length",get:function(){return this.nodes.length}}]),q}(Y.default);J.default=L,K.exports=J.default}),bJ=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(l9()),X=c0();function Z(H){return H&&H.__esModule?H:{default:H}}function Q(H,U){for(var A=0;A<U.length;A++){var V=U[A];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(H,V.key,V)}}function w(H,U,A){return U&&Q(H.prototype,U),A&&Q(H,A),H}function $(H,U){H.prototype=Object.create(U.prototype),H.prototype.constructor=H,W(H,U)}function W(H,U){return W=Object.setPrototypeOf||function(A,V){return A.__proto__=V,A},W(H,U)}var z=function(H){$(U,H);function U(V){var L;return L=H.call(this,V)||this,L.type=X.ROOT,L}var A=U.prototype;return A.toString=function(){var V=this.reduce(function(L,B){return L.push(String(B)),L},[]).join(",");return this.trailingComma?V+",":V},A.error=function(V,L){return this._error?this._error(V,L):Error(V)},w(U,[{key:"errorGenerator",set:function(V){this._error=V}}]),U}(Y.default);J.default=z,K.exports=J.default}),fJ=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(l9()),X=c0();function Z(W){return W&&W.__esModule?W:{default:W}}function Q(W,z){W.prototype=Object.create(z.prototype),W.prototype.constructor=W,w(W,z)}function w(W,z){return w=Object.setPrototypeOf||function(H,U){return H.__proto__=U,H},w(W,z)}var $=function(W){Q(z,W);function z(H){var U;return U=W.call(this,H)||this,U.type=X.SELECTOR,U}return z}(Y.default);J.default=$,K.exports=J.default}),d9=t((J,K)=>{var Y={},X=Y.hasOwnProperty,Z=function(z,H){if(!z)return H;var U={};for(var A in H)U[A]=X.call(z,A)?z[A]:H[A];return U},Q=/[ -,\.\/:-@\[-\^`\{-~]/,w=/[ -,\.\/:-@\[\]\^`\{-~]/,$=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,W=function z(H,U){U=Z(U,z.options),U.quotes!="single"&&U.quotes!="double"&&(U.quotes="single");for(var A=U.quotes=="double"?'"':"'",V=U.isIdentifier,L=H.charAt(0),B="",q=0,M=H.length;q<M;){var N=H.charAt(q++),E=N.charCodeAt(),I=void 0;if(E<32||E>126){if(E>=55296&&E<=56319&&q<M){var F=H.charCodeAt(q++);(F&64512)==56320?E=((E&1023)<<10)+(F&1023)+65536:q--}I="\\"+E.toString(16).toUpperCase()+" "}else U.escapeEverything?Q.test(N)?I="\\"+N:I="\\"+E.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(N)?I="\\"+E.toString(16).toUpperCase()+" ":N=="\\"||!V&&(N=='"'&&A==N||N=="'"&&A==N)||V&&w.test(N)?I="\\"+N:I=N;B+=I}return V&&(/^-[-\d]/.test(B)?B="\\-"+B.slice(1):/\d/.test(L)&&(B="\\3"+L+" "+B.slice(1))),B=B.replace($,function(j,C,R){return C&&C.length%2?j:(C||"")+R}),!V&&U.wrap?A+B+A:B};W.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1},W.version="3.0.0",K.exports=W}),mJ=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=w(d9()),X=a8(),Z=w(o1()),Q=c0();function w(A){return A&&A.__esModule?A:{default:A}}function $(A,V){for(var L=0;L<V.length;L++){var B=V[L];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(A,B.key,B)}}function W(A,V,L){return V&&$(A.prototype,V),L&&$(A,L),A}function z(A,V){A.prototype=Object.create(V.prototype),A.prototype.constructor=A,H(A,V)}function H(A,V){return H=Object.setPrototypeOf||function(L,B){return L.__proto__=B,L},H(A,V)}var U=function(A){z(V,A);function V(B){var q;return q=A.call(this,B)||this,q.type=Q.CLASS,q._constructed=!0,q}var L=V.prototype;return L.valueToString=function(){return"."+A.prototype.valueToString.call(this)},W(V,[{key:"value",get:function(){return this._value},set:function(B){if(this._constructed){var q=(0,Y.default)(B,{isIdentifier:!0});q!==B?((0,X.ensureObject)(this,"raws"),this.raws.value=q):this.raws&&delete this.raws.value}this._value=B}}]),V}(Z.default);J.default=U,K.exports=J.default}),cJ=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(o1()),X=c0();function Z(W){return W&&W.__esModule?W:{default:W}}function Q(W,z){W.prototype=Object.create(z.prototype),W.prototype.constructor=W,w(W,z)}function w(W,z){return w=Object.setPrototypeOf||function(H,U){return H.__proto__=U,H},w(W,z)}var $=function(W){Q(z,W);function z(H){var U;return U=W.call(this,H)||this,U.type=X.COMMENT,U}return z}(Y.default);J.default=$,K.exports=J.default}),lJ=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(o1()),X=c0();function Z(W){return W&&W.__esModule?W:{default:W}}function Q(W,z){W.prototype=Object.create(z.prototype),W.prototype.constructor=W,w(W,z)}function w(W,z){return w=Object.setPrototypeOf||function(H,U){return H.__proto__=U,H},w(W,z)}var $=function(W){Q(z,W);function z(U){var A;return A=W.call(this,U)||this,A.type=X.ID,A}var H=z.prototype;return H.valueToString=function(){return"#"+W.prototype.valueToString.call(this)},z}(Y.default);J.default=$,K.exports=J.default}),u9=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Q(d9()),X=a8(),Z=Q(o1());function Q(U){return U&&U.__esModule?U:{default:U}}function w(U,A){for(var V=0;V<A.length;V++){var L=A[V];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(U,L.key,L)}}function $(U,A,V){return A&&w(U.prototype,A),V&&w(U,V),U}function W(U,A){U.prototype=Object.create(A.prototype),U.prototype.constructor=U,z(U,A)}function z(U,A){return z=Object.setPrototypeOf||function(V,L){return V.__proto__=L,V},z(U,A)}var H=function(U){W(A,U);function A(){return U.apply(this,arguments)||this}var V=A.prototype;return V.qualifiedName=function(L){return this.namespace?this.namespaceString+"|"+L:L},V.valueToString=function(){return this.qualifiedName(U.prototype.valueToString.call(this))},$(A,[{key:"namespace",get:function(){return this._namespace},set:function(L){if(L===!0||L==="*"||L==="&"){this._namespace=L,this.raws&&delete this.raws.namespace;return}var B=(0,Y.default)(L,{isIdentifier:!0});this._namespace=L,B!==L?((0,X.ensureObject)(this,"raws"),this.raws.namespace=B):this.raws&&delete this.raws.namespace}},{key:"ns",get:function(){return this._namespace},set:function(L){this.namespace=L}},{key:"namespaceString",get:function(){if(this.namespace){var L=this.stringifyProperty("namespace");return L===!0?"":L}else return""}}]),A}(Z.default);J.default=H,K.exports=J.default}),dJ=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(u9()),X=c0();function Z(W){return W&&W.__esModule?W:{default:W}}function Q(W,z){W.prototype=Object.create(z.prototype),W.prototype.constructor=W,w(W,z)}function w(W,z){return w=Object.setPrototypeOf||function(H,U){return H.__proto__=U,H},w(W,z)}var $=function(W){Q(z,W);function z(H){var U;return U=W.call(this,H)||this,U.type=X.TAG,U}return z}(Y.default);J.default=$,K.exports=J.default}),uJ=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(o1()),X=c0();function Z(W){return W&&W.__esModule?W:{default:W}}function Q(W,z){W.prototype=Object.create(z.prototype),W.prototype.constructor=W,w(W,z)}function w(W,z){return w=Object.setPrototypeOf||function(H,U){return H.__proto__=U,H},w(W,z)}var $=function(W){Q(z,W);function z(H){var U;return U=W.call(this,H)||this,U.type=X.STRING,U}return z}(Y.default);J.default=$,K.exports=J.default}),pJ=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(l9()),X=c0();function Z(W){return W&&W.__esModule?W:{default:W}}function Q(W,z){W.prototype=Object.create(z.prototype),W.prototype.constructor=W,w(W,z)}function w(W,z){return w=Object.setPrototypeOf||function(H,U){return H.__proto__=U,H},w(W,z)}var $=function(W){Q(z,W);function z(U){var A;return A=W.call(this,U)||this,A.type=X.PSEUDO,A}var H=z.prototype;return H.toString=function(){var U=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),U,this.rawSpaceAfter].join("")},z}(Y.default);J.default=$,K.exports=J.default}),hz=t((J,K)=>{K.exports=function(Y,X){return function(...Z){return console.warn(X),Y(...Z)}}}),iJ=t((J)=>{J.__esModule=!0,J.unescapeValue=q,J.default=void 0;var K=w(d9()),Y=w(xJ()),X=w(u9()),Z=c0(),Q;function w(F){return F&&F.__esModule?F:{default:F}}function $(F,j){for(var C=0;C<j.length;C++){var R=j[C];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(F,R.key,R)}}function W(F,j,C){return j&&$(F.prototype,j),C&&$(F,C),F}function z(F,j){F.prototype=Object.create(j.prototype),F.prototype.constructor=F,H(F,j)}function H(F,j){return H=Object.setPrototypeOf||function(C,R){return C.__proto__=R,C},H(F,j)}var U=hz(),A=/^('|")([^]*)\1$/,V=U(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),L=U(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),B=U(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function q(F){var j=!1,C=null,R=F,T=R.match(A);return T&&(C=T[1],R=T[2]),R=(0,Y.default)(R),R!==F&&(j=!0),{deprecatedUsage:j,unescaped:R,quoteMark:C}}function M(F){if(F.quoteMark!==void 0||F.value===void 0)return F;B();var j=q(F.value),C=j.quoteMark,R=j.unescaped;return F.raws||(F.raws={}),F.raws.value===void 0&&(F.raws.value=F.value),F.value=R,F.quoteMark=C,F}var N=function(F){z(j,F);function j(R){var T;return R===void 0&&(R={}),T=F.call(this,M(R))||this,T.type=Z.ATTRIBUTE,T.raws=T.raws||{},Object.defineProperty(T.raws,"unquoted",{get:U(function(){return T.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:U(function(){return T.value},"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.")}),T._constructed=!0,T}var C=j.prototype;return C.getQuotedValue=function(R){R===void 0&&(R={});var T=this._determineQuoteMark(R),k=E[T],d=(0,K.default)(this._value,k);return d},C._determineQuoteMark=function(R){return R.smart?this.smartQuoteMark(R):this.preferredQuoteMark(R)},C.setValue=function(R,T){T===void 0&&(T={}),this._value=R,this._quoteMark=this._determineQuoteMark(T),this._syncRawValue()},C.smartQuoteMark=function(R){var T=this.value,k=T.replace(/[^']/g,"").length,d=T.replace(/[^"]/g,"").length;if(k+d===0){var u=(0,K.default)(T,{isIdentifier:!0});if(u===T)return j.NO_QUOTE;var p=this.preferredQuoteMark(R);if(p===j.NO_QUOTE){var P=this.quoteMark||R.quoteMark||j.DOUBLE_QUOTE,S=E[P],D=(0,K.default)(T,S);if(D.length<u.length)return P}return p}else return d===k?this.preferredQuoteMark(R):d<k?j.DOUBLE_QUOTE:j.SINGLE_QUOTE},C.preferredQuoteMark=function(R){var T=R.preferCurrentQuoteMark?this.quoteMark:R.quoteMark;return T===void 0&&(T=R.preferCurrentQuoteMark?R.quoteMark:this.quoteMark),T===void 0&&(T=j.DOUBLE_QUOTE),T},C._syncRawValue=function(){var R=(0,K.default)(this._value,E[this.quoteMark]);R===this._value?this.raws&&delete this.raws.value:this.raws.value=R},C._handleEscapes=function(R,T){if(this._constructed){var k=(0,K.default)(T,{isIdentifier:!0});k!==T?this.raws[R]=k:delete this.raws[R]}},C._spacesFor=function(R){var T={before:"",after:""},k=this.spaces[R]||{},d=this.raws.spaces&&this.raws.spaces[R]||{};return Object.assign(T,k,d)},C._stringFor=function(R,T,k){T===void 0&&(T=R),k===void 0&&(k=I);var d=this._spacesFor(T);return k(this.stringifyProperty(R),d)},C.offsetOf=function(R){var T=1,k=this._spacesFor("attribute");if(T+=k.before.length,R==="namespace"||R==="ns")return this.namespace?T:-1;if(R==="attributeNS"||(T+=this.namespaceString.length,this.namespace&&(T+=1),R==="attribute"))return T;T+=this.stringifyProperty("attribute").length,T+=k.after.length;var d=this._spacesFor("operator");T+=d.before.length;var u=this.stringifyProperty("operator");if(R==="operator")return u?T:-1;T+=u.length,T+=d.after.length;var p=this._spacesFor("value");T+=p.before.length;var P=this.stringifyProperty("value");if(R==="value")return P?T:-1;T+=P.length,T+=p.after.length;var S=this._spacesFor("insensitive");return T+=S.before.length,R==="insensitive"&&this.insensitive?T:-1},C.toString=function(){var R=this,T=[this.rawSpaceBefore,"["];return T.push(this._stringFor("qualifiedAttribute","attribute")),this.operator&&(this.value||this.value==="")&&(T.push(this._stringFor("operator")),T.push(this._stringFor("value")),T.push(this._stringFor("insensitiveFlag","insensitive",function(k,d){return k.length>0&&!R.quoted&&d.before.length===0&&!(R.spaces.value&&R.spaces.value.after)&&(d.before=" "),I(k,d)}))),T.push("]"),T.push(this.rawSpaceAfter),T.join("")},W(j,[{key:"quoted",get:function(){var R=this.quoteMark;return R==="'"||R==='"'},set:function(R){L()}},{key:"quoteMark",get:function(){return this._quoteMark},set:function(R){if(!this._constructed){this._quoteMark=R;return}this._quoteMark!==R&&(this._quoteMark=R,this._syncRawValue())}},{key:"qualifiedAttribute",get:function(){return this.qualifiedName(this.raws.attribute||this.attribute)}},{key:"insensitiveFlag",get:function(){return this.insensitive?"i":""}},{key:"value",get:function(){return this._value},set:function(R){if(this._constructed){var T=q(R),k=T.deprecatedUsage,d=T.unescaped,u=T.quoteMark;if(k&&V(),d===this._value&&u===this._quoteMark)return;this._value=d,this._quoteMark=u,this._syncRawValue()}else this._value=R}},{key:"attribute",get:function(){return this._attribute},set:function(R){this._handleEscapes("attribute",R),this._attribute=R}}]),j}(X.default);J.default=N,N.NO_QUOTE=null,N.SINGLE_QUOTE="'",N.DOUBLE_QUOTE='"';var E=(Q={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},Q[null]={isIdentifier:!0},Q);function I(F,j){return""+j.before+F+j.after}}),rJ=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(u9()),X=c0();function Z(W){return W&&W.__esModule?W:{default:W}}function Q(W,z){W.prototype=Object.create(z.prototype),W.prototype.constructor=W,w(W,z)}function w(W,z){return w=Object.setPrototypeOf||function(H,U){return H.__proto__=U,H},w(W,z)}var $=function(W){Q(z,W);function z(H){var U;return U=W.call(this,H)||this,U.type=X.UNIVERSAL,U.value="*",U}return z}(Y.default);J.default=$,K.exports=J.default}),nJ=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(o1()),X=c0();function Z(W){return W&&W.__esModule?W:{default:W}}function Q(W,z){W.prototype=Object.create(z.prototype),W.prototype.constructor=W,w(W,z)}function w(W,z){return w=Object.setPrototypeOf||function(H,U){return H.__proto__=U,H},w(W,z)}var $=function(W){Q(z,W);function z(H){var U;return U=W.call(this,H)||this,U.type=X.COMBINATOR,U}return z}(Y.default);J.default=$,K.exports=J.default}),oJ=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=Z(o1()),X=c0();function Z(W){return W&&W.__esModule?W:{default:W}}function Q(W,z){W.prototype=Object.create(z.prototype),W.prototype.constructor=W,w(W,z)}function w(W,z){return w=Object.setPrototypeOf||function(H,U){return H.__proto__=U,H},w(W,z)}var $=function(W){Q(z,W);function z(H){var U;return U=W.call(this,H)||this,U.type=X.NESTING,U.value="&",U}return z}(Y.default);J.default=$,K.exports=J.default}),yz=t((J,K)=>{J.__esModule=!0,J.default=Y;function Y(X){return X.sort(function(Z,Q){return Z-Q})}K.exports=J.default}),sJ=t((J)=>{J.__esModule=!0,J.combinator=J.word=J.comment=J.str=J.tab=J.newline=J.feed=J.cr=J.backslash=J.bang=J.slash=J.doubleQuote=J.singleQuote=J.space=J.greaterThan=J.pipe=J.equals=J.plus=J.caret=J.tilde=J.dollar=J.closeSquare=J.openSquare=J.closeParenthesis=J.openParenthesis=J.semicolon=J.colon=J.comma=J.at=J.asterisk=J.ampersand=void 0;var K=38;J.ampersand=K;var Y=42;J.asterisk=Y;var X=64;J.at=X;var Z=44;J.comma=Z;var Q=58;J.colon=Q;var w=59;J.semicolon=w;var $=40;J.openParenthesis=$;var W=41;J.closeParenthesis=W;var z=91;J.openSquare=z;var H=93;J.closeSquare=H;var U=36;J.dollar=U;var A=126;J.tilde=A;var V=94;J.caret=V;var L=43;J.plus=L;var B=61;J.equals=B;var q=124;J.pipe=q;var M=62;J.greaterThan=M;var N=32;J.space=N;var E=39;J.singleQuote=E;var I=34;J.doubleQuote=I;var F=47;J.slash=F;var j=33;J.bang=j;var C=92;J.backslash=C;var R=13;J.cr=R;var T=12;J.feed=T;var k=10;J.newline=k;var d=9;J.tab=d;var u=E;J.str=u;var p=-1;J.comment=p;var P=-2;J.word=P;var S=-3;J.combinator=S}),kz=t((J)=>{J.__esModule=!0,J.default=L,J.FIELDS=void 0;var K=Q(sJ()),Y,X;function Z(){if(typeof WeakMap!="function")return null;var B=new WeakMap;return Z=function(){return B},B}function Q(B){if(B&&B.__esModule)return B;if(B===null||typeof B!="object"&&typeof B!="function")return{default:B};var q=Z();if(q&&q.has(B))return q.get(B);var M={},N=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in B)if(Object.prototype.hasOwnProperty.call(B,E)){var I=N?Object.getOwnPropertyDescriptor(B,E):null;I&&(I.get||I.set)?Object.defineProperty(M,E,I):M[E]=B[E]}return M.default=B,q&&q.set(B,M),M}var w=(Y={},Y[K.tab]=!0,Y[K.newline]=!0,Y[K.cr]=!0,Y[K.feed]=!0,Y),$=(X={},X[K.space]=!0,X[K.tab]=!0,X[K.newline]=!0,X[K.cr]=!0,X[K.feed]=!0,X[K.ampersand]=!0,X[K.asterisk]=!0,X[K.bang]=!0,X[K.comma]=!0,X[K.colon]=!0,X[K.semicolon]=!0,X[K.openParenthesis]=!0,X[K.closeParenthesis]=!0,X[K.openSquare]=!0,X[K.closeSquare]=!0,X[K.singleQuote]=!0,X[K.doubleQuote]=!0,X[K.plus]=!0,X[K.pipe]=!0,X[K.tilde]=!0,X[K.greaterThan]=!0,X[K.equals]=!0,X[K.dollar]=!0,X[K.caret]=!0,X[K.slash]=!0,X),W={},z="0123456789abcdefABCDEF";for(H=0;H<z.length;H++)W[z.charCodeAt(H)]=!0;var H;function U(B,q){var M=q,N;do{if(N=B.charCodeAt(M),$[N])return M-1;N===K.backslash?M=A(B,M)+1:M++}while(M<B.length);return M-1}function A(B,q){var M=q,N=B.charCodeAt(M+1);if(!w[N])if(W[N]){var E=0;do M++,E++,N=B.charCodeAt(M+1);while(W[N]&&E<6);E<6&&N===K.space&&M++}else M++;return M}var V={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};J.FIELDS=V;function L(B){var q=[],M=B.css.valueOf(),N=M,E=N.length,I=-1,F=1,j=0,C=0,R,T,k,d,u,p,P,S,D,l,f,o,i;function m(c,h){if(B.safe)M+=h,D=M.length-1;else throw B.error("Unclosed "+c,F,j-I,j)}for(;j<E;){switch(R=M.charCodeAt(j),R===K.newline&&(I=j,F+=1),R){case K.space:case K.tab:case K.newline:case K.cr:case K.feed:D=j;do D+=1,R=M.charCodeAt(D),R===K.newline&&(I=D,F+=1);while(R===K.space||R===K.newline||R===K.tab||R===K.cr||R===K.feed);i=K.space,d=F,k=D-I-1,C=D;break;case K.plus:case K.greaterThan:case K.tilde:case K.pipe:D=j;do D+=1,R=M.charCodeAt(D);while(R===K.plus||R===K.greaterThan||R===K.tilde||R===K.pipe);i=K.combinator,d=F,k=j-I,C=D;break;case K.asterisk:case K.ampersand:case K.bang:case K.comma:case K.equals:case K.dollar:case K.caret:case K.openSquare:case K.closeSquare:case K.colon:case K.semicolon:case K.openParenthesis:case K.closeParenthesis:D=j,i=R,d=F,k=j-I,C=D+1;break;case K.singleQuote:case K.doubleQuote:o=R===K.singleQuote?"'":'"',D=j;do for(u=!1,D=M.indexOf(o,D+1),D===-1&&m("quote",o),p=D;M.charCodeAt(p-1)===K.backslash;)p-=1,u=!u;while(u);i=K.str,d=F,k=j-I,C=D+1;break;default:R===K.slash&&M.charCodeAt(j+1)===K.asterisk?(D=M.indexOf("*/",j+2)+1,D===0&&m("comment","*/"),T=M.slice(j,D+1),S=T.split(`
|
|
63
|
+
`),P=S.length-1,P>0?(l=F+P,f=D-S[P].length):(l=F,f=I),i=K.comment,F=l,d=l,k=D-f):R===K.slash?(D=j,i=R,d=F,k=j-I,C=D+1):(D=U(M,j),i=K.word,d=F,k=D-I),C=D+1;break}q.push([i,F,j-I,d,k,j,C]),f&&(I=f,f=null),j=C}return q}}),gz=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=C(bJ()),X=C(fJ()),Z=C(mJ()),Q=C(cJ()),w=C(lJ()),$=C(dJ()),W=C(uJ()),z=C(pJ()),H=j(iJ()),U=C(rJ()),A=C(nJ()),V=C(oJ()),L=C(yz()),B=j(kz()),q=j(sJ()),M=j(c0()),N=a8(),E,I;function F(){if(typeof WeakMap!="function")return null;var m=new WeakMap;return F=function(){return m},m}function j(m){if(m&&m.__esModule)return m;if(m===null||typeof m!="object"&&typeof m!="function")return{default:m};var c=F();if(c&&c.has(m))return c.get(m);var h={},y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in m)if(Object.prototype.hasOwnProperty.call(m,s)){var g=y?Object.getOwnPropertyDescriptor(m,s):null;g&&(g.get||g.set)?Object.defineProperty(h,s,g):h[s]=m[s]}return h.default=m,c&&c.set(m,h),h}function C(m){return m&&m.__esModule?m:{default:m}}function R(m,c){for(var h=0;h<c.length;h++){var y=c[h];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(m,y.key,y)}}function T(m,c,h){return c&&R(m.prototype,c),h&&R(m,h),m}var k=(E={},E[q.space]=!0,E[q.cr]=!0,E[q.feed]=!0,E[q.newline]=!0,E[q.tab]=!0,E),d=Object.assign({},k,(I={},I[q.comment]=!0,I));function u(m){return{line:m[B.FIELDS.START_LINE],column:m[B.FIELDS.START_COL]}}function p(m){return{line:m[B.FIELDS.END_LINE],column:m[B.FIELDS.END_COL]}}function P(m,c,h,y){return{start:{line:m,column:c},end:{line:h,column:y}}}function S(m){return P(m[B.FIELDS.START_LINE],m[B.FIELDS.START_COL],m[B.FIELDS.END_LINE],m[B.FIELDS.END_COL])}function D(m,c){if(m)return P(m[B.FIELDS.START_LINE],m[B.FIELDS.START_COL],c[B.FIELDS.END_LINE],c[B.FIELDS.END_COL])}function l(m,c){var h=m[c];if(typeof h=="string")return h.indexOf("\\")!==-1&&((0,N.ensureObject)(m,"raws"),m[c]=(0,N.unesc)(h),m.raws[c]===void 0&&(m.raws[c]=h)),m}function f(m,c){for(var h=-1,y=[];(h=m.indexOf(c,h+1))!==-1;)y.push(h);return y}function o(){var m=Array.prototype.concat.apply([],arguments);return m.filter(function(c,h){return h===m.indexOf(c)})}var i=function(){function m(h,y){y===void 0&&(y={}),this.rule=h,this.options=Object.assign({lossy:!1,safe:!1},y),this.position=0,this.css=typeof this.rule=="string"?this.rule:this.rule.selector,this.tokens=(0,B.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var s=D(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new Y.default({source:s}),this.root.errorGenerator=this._errorGenerator();var g=new X.default({source:{start:{line:1,column:1}}});this.root.append(g),this.current=g,this.loop()}var c=m.prototype;return c._errorGenerator=function(){var h=this;return function(y,s){return typeof h.rule=="string"?Error(y):h.rule.error(y,s)}},c.attribute=function(){var h=[],y=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[B.FIELDS.TYPE]!==q.closeSquare;)h.push(this.currToken),this.position++;if(this.currToken[B.FIELDS.TYPE]!==q.closeSquare)return this.expected("closing square bracket",this.currToken[B.FIELDS.START_POS]);var s=h.length,g={source:P(y[1],y[2],this.currToken[3],this.currToken[4]),sourceIndex:y[B.FIELDS.START_POS]};if(s===1&&!~[q.word].indexOf(h[0][B.FIELDS.TYPE]))return this.expected("attribute",h[0][B.FIELDS.START_POS]);for(var J0=0,X0="",Z0="",K0=null,B0=!1;J0<s;){var I0=h[J0],Y0=this.content(I0),q0=h[J0+1];switch(I0[B.FIELDS.TYPE]){case q.space:if(B0=!0,this.options.lossy)break;if(K0){(0,N.ensureObject)(g,"spaces",K0);var v0=g.spaces[K0].after||"";g.spaces[K0].after=v0+Y0;var p0=(0,N.getProp)(g,"raws","spaces",K0,"after")||null;p0&&(g.raws.spaces[K0].after=p0+Y0)}else X0=X0+Y0,Z0=Z0+Y0;break;case q.asterisk:if(q0[B.FIELDS.TYPE]===q.equals)g.operator=Y0,K0="operator";else if((!g.namespace||K0==="namespace"&&!B0)&&q0){X0&&((0,N.ensureObject)(g,"spaces","attribute"),g.spaces.attribute.before=X0,X0=""),Z0&&((0,N.ensureObject)(g,"raws","spaces","attribute"),g.raws.spaces.attribute.before=X0,Z0=""),g.namespace=(g.namespace||"")+Y0;var x0=(0,N.getProp)(g,"raws","namespace")||null;x0&&(g.raws.namespace+=Y0),K0="namespace"}B0=!1;break;case q.dollar:if(K0==="value"){var T0=(0,N.getProp)(g,"raws","value");g.value+="$",T0&&(g.raws.value=T0+"$");break}case q.caret:q0[B.FIELDS.TYPE]===q.equals&&(g.operator=Y0,K0="operator"),B0=!1;break;case q.combinator:if(Y0==="~"&&q0[B.FIELDS.TYPE]===q.equals&&(g.operator=Y0,K0="operator"),Y0!=="|"){B0=!1;break}q0[B.FIELDS.TYPE]===q.equals?(g.operator=Y0,K0="operator"):!g.namespace&&!g.attribute&&(g.namespace=!0),B0=!1;break;case q.word:if(q0&&this.content(q0)==="|"&&h[J0+2]&&h[J0+2][B.FIELDS.TYPE]!==q.equals&&!g.operator&&!g.namespace)g.namespace=Y0,K0="namespace";else if(!g.attribute||K0==="attribute"&&!B0){X0&&((0,N.ensureObject)(g,"spaces","attribute"),g.spaces.attribute.before=X0,X0=""),Z0&&((0,N.ensureObject)(g,"raws","spaces","attribute"),g.raws.spaces.attribute.before=Z0,Z0=""),g.attribute=(g.attribute||"")+Y0;var l0=(0,N.getProp)(g,"raws","attribute")||null;l0&&(g.raws.attribute+=Y0),K0="attribute"}else if(!g.value&&g.value!==""||K0==="value"&&!B0){var i0=(0,N.unesc)(Y0),r0=(0,N.getProp)(g,"raws","value")||"",Z1=g.value||"";g.value=Z1+i0,g.quoteMark=null,(i0!==Y0||r0)&&((0,N.ensureObject)(g,"raws"),g.raws.value=(r0||Z1)+Y0),K0="value"}else{var Q1=Y0==="i"||Y0==="I";(g.value||g.value==="")&&(g.quoteMark||B0)?(g.insensitive=Q1,(!Q1||Y0==="I")&&((0,N.ensureObject)(g,"raws"),g.raws.insensitiveFlag=Y0),K0="insensitive",X0&&((0,N.ensureObject)(g,"spaces","insensitive"),g.spaces.insensitive.before=X0,X0=""),Z0&&((0,N.ensureObject)(g,"raws","spaces","insensitive"),g.raws.spaces.insensitive.before=Z0,Z0="")):(g.value||g.value==="")&&(K0="value",g.value+=Y0,g.raws.value&&(g.raws.value+=Y0))}B0=!1;break;case q.str:if(!g.attribute||!g.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:I0[B.FIELDS.START_POS]});var t0=(0,H.unescapeValue)(Y0),z5=t0.unescaped,y1=t0.quoteMark;g.value=z5,g.quoteMark=y1,K0="value",(0,N.ensureObject)(g,"raws"),g.raws.value=Y0,B0=!1;break;case q.equals:if(!g.attribute)return this.expected("attribute",I0[B.FIELDS.START_POS],Y0);if(g.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:I0[B.FIELDS.START_POS]});g.operator=g.operator?g.operator+Y0:Y0,K0="operator",B0=!1;break;case q.comment:if(K0)if(B0||q0&&q0[B.FIELDS.TYPE]===q.space||K0==="insensitive"){var t1=(0,N.getProp)(g,"spaces",K0,"after")||"",H5=(0,N.getProp)(g,"raws","spaces",K0,"after")||t1;(0,N.ensureObject)(g,"raws","spaces",K0),g.raws.spaces[K0].after=H5+Y0}else{var Q8=g[K0]||"",U5=(0,N.getProp)(g,"raws",K0)||Q8;(0,N.ensureObject)(g,"raws"),g.raws[K0]=U5+Y0}else Z0=Z0+Y0;break;default:return this.error('Unexpected "'+Y0+'" found.',{index:I0[B.FIELDS.START_POS]})}J0++}l(g,"attribute"),l(g,"namespace"),this.newNode(new H.default(g)),this.position++},c.parseWhitespaceEquivalentTokens=function(h){h<0&&(h=this.tokens.length);var y=this.position,s=[],g="",J0=void 0;do if(k[this.currToken[B.FIELDS.TYPE]])this.options.lossy||(g+=this.content());else if(this.currToken[B.FIELDS.TYPE]===q.comment){var X0={};g&&(X0.before=g,g=""),J0=new Q.default({value:this.content(),source:S(this.currToken),sourceIndex:this.currToken[B.FIELDS.START_POS],spaces:X0}),s.push(J0)}while(++this.position<h);if(g){if(J0)J0.spaces.after=g;else if(!this.options.lossy){var Z0=this.tokens[y],K0=this.tokens[this.position-1];s.push(new W.default({value:"",source:P(Z0[B.FIELDS.START_LINE],Z0[B.FIELDS.START_COL],K0[B.FIELDS.END_LINE],K0[B.FIELDS.END_COL]),sourceIndex:Z0[B.FIELDS.START_POS],spaces:{before:g,after:""}}))}}return s},c.convertWhitespaceNodesToSpace=function(h,y){var s=this;y===void 0&&(y=!1);var g="",J0="";h.forEach(function(Z0){var K0=s.lossySpace(Z0.spaces.before,y),B0=s.lossySpace(Z0.rawSpaceBefore,y);g+=K0+s.lossySpace(Z0.spaces.after,y&&K0.length===0),J0+=K0+Z0.value+s.lossySpace(Z0.rawSpaceAfter,y&&B0.length===0)}),J0===g&&(J0=void 0);var X0={space:g,rawSpace:J0};return X0},c.isNamedCombinator=function(h){return h===void 0&&(h=this.position),this.tokens[h+0]&&this.tokens[h+0][B.FIELDS.TYPE]===q.slash&&this.tokens[h+1]&&this.tokens[h+1][B.FIELDS.TYPE]===q.word&&this.tokens[h+2]&&this.tokens[h+2][B.FIELDS.TYPE]===q.slash},c.namedCombinator=function(){if(this.isNamedCombinator()){var h=this.content(this.tokens[this.position+1]),y=(0,N.unesc)(h).toLowerCase(),s={};y!==h&&(s.value="/"+h+"/");var g=new A.default({value:"/"+y+"/",source:P(this.currToken[B.FIELDS.START_LINE],this.currToken[B.FIELDS.START_COL],this.tokens[this.position+2][B.FIELDS.END_LINE],this.tokens[this.position+2][B.FIELDS.END_COL]),sourceIndex:this.currToken[B.FIELDS.START_POS],raws:s});return this.position=this.position+3,g}else this.unexpected()},c.combinator=function(){var h=this;if(this.content()==="|")return this.namespace();var y=this.locateNextMeaningfulToken(this.position);if(y<0||this.tokens[y][B.FIELDS.TYPE]===q.comma){var s=this.parseWhitespaceEquivalentTokens(y);if(s.length>0){var g=this.current.last;if(g){var J0=this.convertWhitespaceNodesToSpace(s),X0=J0.space,Z0=J0.rawSpace;Z0!==void 0&&(g.rawSpaceAfter+=Z0),g.spaces.after+=X0}else s.forEach(function(r0){return h.newNode(r0)})}return}var K0=this.currToken,B0=void 0;y>this.position&&(B0=this.parseWhitespaceEquivalentTokens(y));var I0;if(this.isNamedCombinator()?I0=this.namedCombinator():this.currToken[B.FIELDS.TYPE]===q.combinator?(I0=new A.default({value:this.content(),source:S(this.currToken),sourceIndex:this.currToken[B.FIELDS.START_POS]}),this.position++):k[this.currToken[B.FIELDS.TYPE]]||B0||this.unexpected(),I0){if(B0){var Y0=this.convertWhitespaceNodesToSpace(B0),q0=Y0.space,v0=Y0.rawSpace;I0.spaces.before=q0,I0.rawSpaceBefore=v0}}else{var p0=this.convertWhitespaceNodesToSpace(B0,!0),x0=p0.space,T0=p0.rawSpace;T0||(T0=x0);var l0={},i0={spaces:{}};x0.endsWith(" ")&&T0.endsWith(" ")?(l0.before=x0.slice(0,x0.length-1),i0.spaces.before=T0.slice(0,T0.length-1)):x0.startsWith(" ")&&T0.startsWith(" ")?(l0.after=x0.slice(1),i0.spaces.after=T0.slice(1)):i0.value=T0,I0=new A.default({value:" ",source:D(K0,this.tokens[this.position-1]),sourceIndex:K0[B.FIELDS.START_POS],spaces:l0,raws:i0})}return this.currToken&&this.currToken[B.FIELDS.TYPE]===q.space&&(I0.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(I0)},c.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var h=new X.default({source:{start:u(this.tokens[this.position+1])}});this.current.parent.append(h),this.current=h,this.position++},c.comment=function(){var h=this.currToken;this.newNode(new Q.default({value:this.content(),source:S(h),sourceIndex:h[B.FIELDS.START_POS]})),this.position++},c.error=function(h,y){throw this.root.error(h,y)},c.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[B.FIELDS.START_POS]})},c.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[B.FIELDS.START_POS])},c.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[B.FIELDS.START_POS])},c.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[B.FIELDS.START_POS])},c.namespace=function(){var h=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[B.FIELDS.TYPE]===q.word)return this.position++,this.word(h);if(this.nextToken[B.FIELDS.TYPE]===q.asterisk)return this.position++,this.universal(h)},c.nesting=function(){if(this.nextToken){var h=this.content(this.nextToken);if(h==="|"){this.position++;return}}var y=this.currToken;this.newNode(new V.default({value:this.content(),source:S(y),sourceIndex:y[B.FIELDS.START_POS]})),this.position++},c.parentheses=function(){var h=this.current.last,y=1;if(this.position++,h&&h.type===M.PSEUDO){var s=new X.default({source:{start:u(this.tokens[this.position-1])}}),g=this.current;for(h.append(s),this.current=s;this.position<this.tokens.length&&y;)this.currToken[B.FIELDS.TYPE]===q.openParenthesis&&y++,this.currToken[B.FIELDS.TYPE]===q.closeParenthesis&&y--,y?this.parse():(this.current.source.end=p(this.currToken),this.current.parent.source.end=p(this.currToken),this.position++);this.current=g}else{for(var J0=this.currToken,X0="(",Z0;this.position<this.tokens.length&&y;)this.currToken[B.FIELDS.TYPE]===q.openParenthesis&&y++,this.currToken[B.FIELDS.TYPE]===q.closeParenthesis&&y--,Z0=this.currToken,X0+=this.parseParenthesisToken(this.currToken),this.position++;h?h.appendToPropertyAndEscape("value",X0,X0):this.newNode(new W.default({value:X0,source:P(J0[B.FIELDS.START_LINE],J0[B.FIELDS.START_COL],Z0[B.FIELDS.END_LINE],Z0[B.FIELDS.END_COL]),sourceIndex:J0[B.FIELDS.START_POS]}))}if(y)return this.expected("closing parenthesis",this.currToken[B.FIELDS.START_POS])},c.pseudo=function(){for(var h=this,y="",s=this.currToken;this.currToken&&this.currToken[B.FIELDS.TYPE]===q.colon;)y+=this.content(),this.position++;if(!this.currToken)return this.expected(["pseudo-class","pseudo-element"],this.position-1);if(this.currToken[B.FIELDS.TYPE]===q.word)this.splitWord(!1,function(g,J0){y+=g,h.newNode(new z.default({value:y,source:D(s,h.currToken),sourceIndex:s[B.FIELDS.START_POS]})),J0>1&&h.nextToken&&h.nextToken[B.FIELDS.TYPE]===q.openParenthesis&&h.error("Misplaced parenthesis.",{index:h.nextToken[B.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[B.FIELDS.START_POS])},c.space=function(){var h=this.content();this.position===0||this.prevToken[B.FIELDS.TYPE]===q.comma||this.prevToken[B.FIELDS.TYPE]===q.openParenthesis||this.current.nodes.every(function(y){return y.type==="comment"})?(this.spaces=this.optionalSpace(h),this.position++):this.position===this.tokens.length-1||this.nextToken[B.FIELDS.TYPE]===q.comma||this.nextToken[B.FIELDS.TYPE]===q.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(h),this.position++):this.combinator()},c.string=function(){var h=this.currToken;this.newNode(new W.default({value:this.content(),source:S(h),sourceIndex:h[B.FIELDS.START_POS]})),this.position++},c.universal=function(h){var y=this.nextToken;if(y&&this.content(y)==="|")return this.position++,this.namespace();var s=this.currToken;this.newNode(new U.default({value:this.content(),source:S(s),sourceIndex:s[B.FIELDS.START_POS]}),h),this.position++},c.splitWord=function(h,y){for(var s=this,g=this.nextToken,J0=this.content();g&&~[q.dollar,q.caret,q.equals,q.word].indexOf(g[B.FIELDS.TYPE]);){this.position++;var X0=this.content();if(J0+=X0,X0.lastIndexOf("\\")===X0.length-1){var Z0=this.nextToken;Z0&&Z0[B.FIELDS.TYPE]===q.space&&(J0+=this.requiredSpace(this.content(Z0)),this.position++)}g=this.nextToken}var K0=f(J0,".").filter(function(q0){var v0=J0[q0-1]==="\\",p0=/^\d+\.\d+%$/.test(J0);return!v0&&!p0}),B0=f(J0,"#").filter(function(q0){return J0[q0-1]!=="\\"}),I0=f(J0,"#{");I0.length&&(B0=B0.filter(function(q0){return!~I0.indexOf(q0)}));var Y0=(0,L.default)(o([0].concat(K0,B0)));Y0.forEach(function(q0,v0){var p0=Y0[v0+1]||J0.length,x0=J0.slice(q0,p0);if(v0===0&&y)return y.call(s,x0,Y0.length);var T0,l0=s.currToken,i0=l0[B.FIELDS.START_POS]+Y0[v0],r0=P(l0[1],l0[2]+q0,l0[3],l0[2]+(p0-1));if(~K0.indexOf(q0)){var Z1={value:x0.slice(1),source:r0,sourceIndex:i0};T0=new Z.default(l(Z1,"value"))}else if(~B0.indexOf(q0)){var Q1={value:x0.slice(1),source:r0,sourceIndex:i0};T0=new w.default(l(Q1,"value"))}else{var t0={value:x0,source:r0,sourceIndex:i0};l(t0,"value"),T0=new $.default(t0)}s.newNode(T0,h),h=null}),this.position++},c.word=function(h){var y=this.nextToken;return y&&this.content(y)==="|"?(this.position++,this.namespace()):this.splitWord(h)},c.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},c.parse=function(h){switch(this.currToken[B.FIELDS.TYPE]){case q.space:this.space();break;case q.comment:this.comment();break;case q.openParenthesis:this.parentheses();break;case q.closeParenthesis:h&&this.missingParenthesis();break;case q.openSquare:this.attribute();break;case q.dollar:case q.caret:case q.equals:case q.word:this.word();break;case q.colon:this.pseudo();break;case q.comma:this.comma();break;case q.asterisk:this.universal();break;case q.ampersand:this.nesting();break;case q.slash:case q.combinator:this.combinator();break;case q.str:this.string();break;case q.closeSquare:this.missingSquareBracket();case q.semicolon:this.missingBackslash();default:this.unexpected()}},c.expected=function(h,y,s){if(Array.isArray(h)){var g=h.pop();h=h.join(", ")+" or "+g}var J0=/^[aeiou]/.test(h[0])?"an":"a";return s?this.error("Expected "+J0+" "+h+', found "'+s+'" instead.',{index:y}):this.error("Expected "+J0+" "+h+".",{index:y})},c.requiredSpace=function(h){return this.options.lossy?" ":h},c.optionalSpace=function(h){return this.options.lossy?"":h},c.lossySpace=function(h,y){return this.options.lossy?y?" ":"":h},c.parseParenthesisToken=function(h){var y=this.content(h);return h[B.FIELDS.TYPE]===q.space?this.requiredSpace(y):y},c.newNode=function(h,y){return y&&(/^ +$/.test(y)&&(this.options.lossy||(this.spaces=(this.spaces||"")+y),y=!0),h.namespace=y,l(h,"namespace")),this.spaces&&(h.spaces.before=this.spaces,this.spaces=""),this.current.append(h)},c.content=function(h){return h===void 0&&(h=this.currToken),this.css.slice(h[B.FIELDS.START_POS],h[B.FIELDS.END_POS])},c.locateNextMeaningfulToken=function(h){h===void 0&&(h=this.position+1);for(var y=h;y<this.tokens.length;)if(d[this.tokens[y][B.FIELDS.TYPE]]){y++;continue}else return y;return-1},T(m,[{key:"currToken",get:function(){return this.tokens[this.position]}},{key:"nextToken",get:function(){return this.tokens[this.position+1]}},{key:"prevToken",get:function(){return this.tokens[this.position-1]}}]),m}();J.default=i,K.exports=J.default}),xz=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=X(gz());function X(Q){return Q&&Q.__esModule?Q:{default:Q}}var Z=function(){function Q($,W){this.func=$||function(){},this.funcRes=null,this.options=W}var w=Q.prototype;return w._shouldUpdateSelector=function($,W){W===void 0&&(W={});var z=Object.assign({},this.options,W);return z.updateSelector===!1?!1:typeof $!="string"},w._isLossy=function($){$===void 0&&($={});var W=Object.assign({},this.options,$);return W.lossless===!1},w._root=function($,W){W===void 0&&(W={});var z=new Y.default($,this._parseOptions(W));return z.root},w._parseOptions=function($){return{lossy:this._isLossy($)}},w._run=function($,W){var z=this;return W===void 0&&(W={}),new Promise(function(H,U){try{var A=z._root($,W);Promise.resolve(z.func(A)).then(function(V){var L=void 0;return z._shouldUpdateSelector($,W)&&(L=A.toString(),$.selector=L),{transform:V,root:A,string:L}}).then(H,U)}catch(V){U(V);return}})},w._runSync=function($,W){W===void 0&&(W={});var z=this._root($,W),H=this.func(z);if(H&&typeof H.then=="function")throw Error("Selector processor returned a promise to a synchronous call.");var U=void 0;return W.updateSelector&&typeof $!="string"&&(U=z.toString(),$.selector=U),{transform:H,root:z,string:U}},w.ast=function($,W){return this._run($,W).then(function(z){return z.root})},w.astSync=function($,W){return this._runSync($,W).root},w.transform=function($,W){return this._run($,W).then(function(z){return z.transform})},w.transformSync=function($,W){return this._runSync($,W).transform},w.process=function($,W){return this._run($,W).then(function(z){return z.string||z.root.toString()})},w.processSync=function($,W){var z=this._runSync($,W);return z.string||z.root.toString()},Q}();J.default=Z,K.exports=J.default}),bz=t((J)=>{J.__esModule=!0,J.universal=J.tag=J.string=J.selector=J.root=J.pseudo=J.nesting=J.id=J.comment=J.combinator=J.className=J.attribute=void 0;var K=V(iJ()),Y=V(mJ()),X=V(nJ()),Z=V(cJ()),Q=V(lJ()),w=V(oJ()),$=V(pJ()),W=V(bJ()),z=V(fJ()),H=V(uJ()),U=V(dJ()),A=V(rJ());function V(k){return k&&k.__esModule?k:{default:k}}var L=function(k){return new K.default(k)};J.attribute=L;var B=function(k){return new Y.default(k)};J.className=B;var q=function(k){return new X.default(k)};J.combinator=q;var M=function(k){return new Z.default(k)};J.comment=M;var N=function(k){return new Q.default(k)};J.id=N;var E=function(k){return new w.default(k)};J.nesting=E;var I=function(k){return new $.default(k)};J.pseudo=I;var F=function(k){return new W.default(k)};J.root=F;var j=function(k){return new z.default(k)};J.selector=j;var C=function(k){return new H.default(k)};J.string=C;var R=function(k){return new U.default(k)};J.tag=R;var T=function(k){return new A.default(k)};J.universal=T}),fz=t((J)=>{J.__esModule=!0,J.isNode=Z,J.isPseudoElement=N,J.isPseudoClass=E,J.isContainer=I,J.isNamespace=F,J.isUniversal=J.isTag=J.isString=J.isSelector=J.isRoot=J.isPseudo=J.isNesting=J.isIdentifier=J.isComment=J.isCombinator=J.isClassName=J.isAttribute=void 0;var K=c0(),Y,X=(Y={},Y[K.ATTRIBUTE]=!0,Y[K.CLASS]=!0,Y[K.COMBINATOR]=!0,Y[K.COMMENT]=!0,Y[K.ID]=!0,Y[K.NESTING]=!0,Y[K.PSEUDO]=!0,Y[K.ROOT]=!0,Y[K.SELECTOR]=!0,Y[K.STRING]=!0,Y[K.TAG]=!0,Y[K.UNIVERSAL]=!0,Y);function Z(j){return typeof j=="object"&&X[j.type]}function Q(j,C){return Z(C)&&C.type===j}var w=Q.bind(null,K.ATTRIBUTE);J.isAttribute=w;var $=Q.bind(null,K.CLASS);J.isClassName=$;var W=Q.bind(null,K.COMBINATOR);J.isCombinator=W;var z=Q.bind(null,K.COMMENT);J.isComment=z;var H=Q.bind(null,K.ID);J.isIdentifier=H;var U=Q.bind(null,K.NESTING);J.isNesting=U;var A=Q.bind(null,K.PSEUDO);J.isPseudo=A;var V=Q.bind(null,K.ROOT);J.isRoot=V;var L=Q.bind(null,K.SELECTOR);J.isSelector=L;var B=Q.bind(null,K.STRING);J.isString=B;var q=Q.bind(null,K.TAG);J.isTag=q;var M=Q.bind(null,K.UNIVERSAL);J.isUniversal=M;function N(j){return A(j)&&j.value&&(j.value.startsWith("::")||j.value.toLowerCase()===":before"||j.value.toLowerCase()===":after"||j.value.toLowerCase()===":first-letter"||j.value.toLowerCase()===":first-line")}function E(j){return A(j)&&!N(j)}function I(j){return!!(Z(j)&&j.walk)}function F(j){return w(j)||q(j)}}),mz=t((J)=>{J.__esModule=!0;var K=c0();Object.keys(K).forEach(function(Z){Z==="default"||Z==="__esModule"||Z in J&&J[Z]===K[Z]||(J[Z]=K[Z])});var Y=bz();Object.keys(Y).forEach(function(Z){Z==="default"||Z==="__esModule"||Z in J&&J[Z]===Y[Z]||(J[Z]=Y[Z])});var X=fz();Object.keys(X).forEach(function(Z){Z==="default"||Z==="__esModule"||Z in J&&J[Z]===X[Z]||(J[Z]=X[Z])})}),cz=t((J,K)=>{J.__esModule=!0,J.default=void 0;var Y=w(xz()),X=Q(mz());function Z(){if(typeof WeakMap!="function")return null;var z=new WeakMap;return Z=function(){return z},z}function Q(z){if(z&&z.__esModule)return z;if(z===null||typeof z!="object"&&typeof z!="function")return{default:z};var H=Z();if(H&&H.has(z))return H.get(z);var U={},A=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var V in z)if(Object.prototype.hasOwnProperty.call(z,V)){var L=A?Object.getOwnPropertyDescriptor(z,V):null;L&&(L.get||L.set)?Object.defineProperty(U,V,L):U[V]=z[V]}return U.default=z,H&&H.set(z,U),U}function w(z){return z&&z.__esModule?z:{default:z}}var $=function(z){return new Y.default(z)};Object.assign($,X),delete $.__esModule;var W=$;J.default=W,K.exports=J.default}),lz=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>K});function K(Y){return Y.replace(/\\,/g,"\\2c ")}}),dz=t((J,K)=>{K.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}),aJ=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function K(L,B){for(var q in B)Object.defineProperty(L,q,{enumerable:!0,get:B[q]})}K(J,{parseColor:()=>A,formatColor:()=>V});var Y=X(dz());function X(L){return L&&L.__esModule?L:{default:L}}var Z=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,Q=/^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,w=/(?:\d+|\d*\.\d+)%?/,$=/(?:\s*,\s*|\s+)/,W=/\s*[,/]\s*/,z=/var\(--(?:[^ )]*?)\)/,H=new RegExp(`^(rgb)a?\\(\\s*(${w.source}|${z.source})(?:${$.source}(${w.source}|${z.source}))?(?:${$.source}(${w.source}|${z.source}))?(?:${W.source}(${w.source}|${z.source}))?\\s*\\)$`),U=new RegExp(`^(hsl)a?\\(\\s*((?:${w.source})(?:deg|rad|grad|turn)?|${z.source})(?:${$.source}(${w.source}|${z.source}))?(?:${$.source}(${w.source}|${z.source}))?(?:${W.source}(${w.source}|${z.source}))?\\s*\\)$`);function A(L,{loose:B=!1}={}){var q,M;if(typeof L!="string")return null;if(L=L.trim(),L==="transparent")return{mode:"rgb",color:["0","0","0"],alpha:"0"};if(L in Y.default)return{mode:"rgb",color:Y.default[L].map((j)=>j.toString())};let N=L.replace(Q,(j,C,R,T,k)=>["#",C,C,R,R,T,T,k?k+k:""].join("")).match(Z);if(N!==null)return{mode:"rgb",color:[parseInt(N[1],16),parseInt(N[2],16),parseInt(N[3],16)].map((j)=>j.toString()),alpha:N[4]?(parseInt(N[4],16)/255).toString():void 0};var E;let I=(E=L.match(H))!==null&&E!==void 0?E:L.match(U);if(I===null)return null;let F=[I[2],I[3],I[4]].filter(Boolean).map((j)=>j.toString());return!B&&F.length!==3||F.length<3&&!F.some((j)=>/^var\(.*?\)$/.test(j))?null:{mode:I[1],color:F,alpha:(q=I[5])===null||q===void 0||(M=q.toString)===null||M===void 0?void 0:M.call(q)}}function V({mode:L,color:B,alpha:q}){let M=q!==void 0;return`${L}(${B.join(" ")}${M?` / ${q}`:""})`}}),tJ=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function K(Q,w){for(var $ in w)Object.defineProperty(Q,$,{enumerable:!0,get:w[$]})}K(J,{withAlphaValue:()=>X,default:()=>Z});var Y=aJ();function X(Q,w,$){if(typeof Q=="function")return Q({opacityValue:w});let W=(0,Y.parseColor)(Q,{loose:!0});return W===null?$:(0,Y.formatColor)({...W,alpha:w})}function Z({color:Q,property:w,variable:$}){let W=[].concat(w);if(typeof Q=="function")return{[$]:"1",...Object.fromEntries(W.map((H)=>[H,Q({opacityVariable:$,opacityValue:`var(${$})`})]))};let z=(0,Y.parseColor)(Q);return z===null?Object.fromEntries(W.map((H)=>[H,Q])):z.alpha!==void 0?Object.fromEntries(W.map((H)=>[H,Q])):{[$]:"1",...Object.fromEntries(W.map((H)=>[H,(0,Y.formatColor)({...z,alpha:`var(${$})`})]))}}}),uz=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function K(A,V){for(var L in V)Object.defineProperty(A,L,{enumerable:!0,get:V[L]})}K(J,{pattern:()=>Q,withoutCapturing:()=>w,any:()=>$,optional:()=>W,zeroOrMore:()=>z,nestedBrackets:()=>H,escape:()=>U});var Y=/[\\^$.*+?()[\]{}|]/g,X=RegExp(Y.source);function Z(A){return A=Array.isArray(A)?A:[A],A=A.map((V)=>V instanceof RegExp?V.source:V),A.join("")}function Q(A){return new RegExp(Z(A),"g")}function w(A){return new RegExp(`(?:${Z(A)})`,"g")}function $(A){return`(?:${A.map(Z).join("|")})`}function W(A){return`(?:${Z(A)})?`}function z(A){return`(?:${Z(A)})*`}function H(A,V,L=1){return w([U(A),/[^\s]*/,L===1?`[^${U(A)}${U(V)}s]*`:$([`[^${U(A)}${U(V)}s]*`,H(A,V,L-1)]),/[^\s]*/,U(V)])}function U(A){return A&&X.test(A)?A.replace(Y,"\\$&"):A||""}}),pz=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"splitAtTopLevelOnly",{enumerable:!0,get:()=>Z});var K=X(uz());function Y(Q){if(typeof WeakMap!="function")return null;var w=new WeakMap,$=new WeakMap;return(Y=function(W){return W?$:w})(Q)}function X(Q,w){if(!w&&Q&&Q.__esModule)return Q;if(Q===null||typeof Q!="object"&&typeof Q!="function")return{default:Q};var $=Y(w);if($&&$.has(Q))return $.get(Q);var W={},z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var H in Q)if(H!=="default"&&Object.prototype.hasOwnProperty.call(Q,H)){var U=z?Object.getOwnPropertyDescriptor(Q,H):null;U&&(U.get||U.set)?Object.defineProperty(W,H,U):W[H]=Q[H]}return W.default=Q,$&&$.set(Q,W),W}function*Z(Q,w){let $=new RegExp(`[(){}\\[\\]${K.escape(w)}]`,"g"),W=0,z=0,H=!1,U=0,A=0,V=w.length;for(let L of Q.matchAll($)){let B=L[0]===w[U],q=U===V-1,M=B&&q;L[0]==="("&&W++,L[0]===")"&&W--,L[0]==="["&&W++,L[0]==="]"&&W--,L[0]==="{"&&W++,L[0]==="}"&&W--,B&&W===0&&(A===0&&(A=L.index),U++),M&&W===0&&(H=!0,yield Q.substring(z,A),z=A+V),U===V&&(U=0,A=0)}H?yield Q.substring(z):yield Q}}),iz=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function K(W,z){for(var H in z)Object.defineProperty(W,H,{enumerable:!0,get:z[H]})}K(J,{parseBoxShadowValue:()=>w,formatBoxShadowValue:()=>$});var Y=pz(),X=new Set(["inset","inherit","initial","revert","unset"]),Z=/\ +(?![^(]*\))/g,Q=/^-?(\d+|\.\d+)(.*?)$/g;function w(W){return Array.from((0,Y.splitAtTopLevelOnly)(W,",")).map((z)=>{let H=z.trim(),U={raw:H},A=H.split(Z),V=new Set;for(let L of A)Q.lastIndex=0,!V.has("KEYWORD")&&X.has(L)?(U.keyword=L,V.add("KEYWORD")):Q.test(L)?V.has("X")?V.has("Y")?V.has("BLUR")?V.has("SPREAD")||(U.spread=L,V.add("SPREAD")):(U.blur=L,V.add("BLUR")):(U.y=L,V.add("Y")):(U.x=L,V.add("X")):U.color?(U.unknown||(U.unknown=[]),U.unknown.push(L)):U.color=L;return U.valid=U.x!==void 0&&U.y!==void 0,U})}function $(W){return W.map((z)=>z.valid?[z.keyword,z.x,z.y,z.blur,z.spread,z.color].filter(Boolean).join(" "):z.raw).join(", ")}}),rz=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function K(P,S){for(var D in S)Object.defineProperty(P,D,{enumerable:!0,get:S[D]})}K(J,{normalize:()=>$,url:()=>W,number:()=>z,percentage:()=>H,length:()=>V,lineWidth:()=>B,shadow:()=>q,color:()=>M,image:()=>N,gradient:()=>I,position:()=>j,familyName:()=>C,genericName:()=>T,absoluteSize:()=>d,relativeSize:()=>p});var Y=aJ(),X=iz(),Z=["min","max","clamp","calc"],Q=/,(?![^(]*\))/g,w=/_(?![^(]*\))/g;function $(P,S=!0){return P.includes("url(")?P.split(/(url\(.*?\))/g).filter(Boolean).map((D)=>/^url\(.*?\)$/.test(D)?D:$(D,!1)).join(""):(P=P.replace(/([^\\])_+/g,(D,l)=>l+" ".repeat(D.length-1)).replace(/^_/g," ").replace(/\\_/g,"_"),S&&(P=P.trim()),P=P.replace(/(calc|min|max|clamp)\(.+\)/g,(D)=>D.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 ")),P)}function W(P){return P.startsWith("url(")}function z(P){return!isNaN(Number(P))||Z.some((S)=>new RegExp(`^${S}\\(.+?`).test(P))}function H(P){return P.split(w).every((S)=>/%$/g.test(S)||Z.some((D)=>new RegExp(`^${D}\\(.+?%`).test(S)))}var U=["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","vw","vh","vmin","vmax"],A=`(?:${U.join("|")})`;function V(P){return P.split(w).every((S)=>S==="0"||new RegExp(`${A}$`).test(S)||Z.some((D)=>new RegExp(`^${D}\\(.+?${A}`).test(S)))}var L=new Set(["thin","medium","thick"]);function B(P){return L.has(P)}function q(P){let S=(0,X.parseBoxShadowValue)($(P));for(let D of S)if(!D.valid)return!1;return!0}function M(P){let S=0;return P.split(w).every((D)=>(D=$(D),D.startsWith("var(")?!0:(0,Y.parseColor)(D,{loose:!0})!==null?(S++,!0):!1))?S>0:!1}function N(P){let S=0;return P.split(Q).every((D)=>(D=$(D),D.startsWith("var(")?!0:W(D)||I(D)||["element(","image(","cross-fade(","image-set("].some((l)=>D.startsWith(l))?(S++,!0):!1))?S>0:!1}var E=new Set(["linear-gradient","radial-gradient","repeating-linear-gradient","repeating-radial-gradient","conic-gradient"]);function I(P){P=$(P);for(let S of E)if(P.startsWith(`${S}(`))return!0;return!1}var F=new Set(["center","top","right","bottom","left"]);function j(P){let S=0;return P.split(w).every((D)=>(D=$(D),D.startsWith("var(")?!0:F.has(D)||V(D)||H(D)?(S++,!0):!1))?S>0:!1}function C(P){let S=0;return P.split(Q).every((D)=>(D=$(D),D.startsWith("var(")?!0:D.includes(" ")&&!/(['"])([^"']+)\1/g.test(D)||/^\d/g.test(D)?!1:(S++,!0)))?S>0:!1}var R=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","math","emoji","fangsong"]);function T(P){return R.has(P)}var k=new Set(["xx-small","x-small","small","medium","large","x-large","x-large","xxx-large"]);function d(P){return k.has(P)}var u=new Set(["larger","smaller"]);function p(P){return u.has(P)}}),nz=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function K(j,C){for(var R in C)Object.defineProperty(j,R,{enumerable:!0,get:C[R]})}K(J,{updateAllClasses:()=>W,asValue:()=>U,parseColorFormat:()=>L,asColor:()=>B,asLookupValue:()=>q,coerceValue:()=>F});var Y=$(cz()),X=$(lz()),Z=tJ(),Q=rz(),w=$(yJ());function $(j){return j&&j.__esModule?j:{default:j}}function W(j,C){return(0,Y.default)((R)=>{R.walkClasses((T)=>{let k=C(T.value);T.value=k,T.raws&&T.raws.value&&(T.raws.value=(0,X.default)(T.raws.value))})}).processSync(j)}function z(j,C){if(!A(j))return;let R=j.slice(1,-1);if(C(R))return(0,Q.normalize)(R)}function H(j,C={},R){let T=C[j];if(T!==void 0)return(0,w.default)(T);if(A(j)){let k=z(j,R);return k===void 0?void 0:(0,w.default)(k)}}function U(j,C={},{validate:R=()=>!0}={}){var T;let k=(T=C.values)===null||T===void 0?void 0:T[j];return k!==void 0?k:C.supportsNegativeValues&&j.startsWith("-")?H(j.slice(1),C.values,R):z(j,R)}function A(j){return j.startsWith("[")&&j.endsWith("]")}function V(j){let C=j.lastIndexOf("/");return C===-1||C===j.length-1?[j]:[j.slice(0,C),j.slice(C+1)]}function L(j){if(typeof j=="string"&&j.includes("<alpha-value>")){let C=j;return({opacityValue:R=1})=>C.replace("<alpha-value>",R)}return j}function B(j,C={},{tailwindConfig:R={}}={}){var T;if(((T=C.values)===null||T===void 0?void 0:T[j])!==void 0){var k;return L((k=C.values)===null||k===void 0?void 0:k[j])}let[d,u]=V(j);if(u!==void 0){var p,P,S,D;let l=(D=(p=C.values)===null||p===void 0?void 0:p[d])!==null&&D!==void 0?D:A(d)?d.slice(1,-1):void 0;return l===void 0?void 0:(l=L(l),A(u)?(0,Z.withAlphaValue)(l,u.slice(1,-1)):((P=R.theme)===null||P===void 0||(S=P.opacity)===null||S===void 0?void 0:S[u])===void 0?void 0:(0,Z.withAlphaValue)(l,R.theme.opacity[u]))}return U(j,C,{validate:Q.color})}function q(j,C={}){var R;return(R=C.values)===null||R===void 0?void 0:R[j]}function M(j){return(C,R)=>U(C,R,{validate:j})}var N={any:U,color:B,url:M(Q.url),image:M(Q.image),length:M(Q.length),percentage:M(Q.percentage),position:M(Q.position),lookup:q,"generic-name":M(Q.genericName),"family-name":M(Q.familyName),number:M(Q.number),"line-width":M(Q.lineWidth),"absolute-size":M(Q.absoluteSize),"relative-size":M(Q.relativeSize),shadow:M(Q.shadow)},E=Object.keys(N);function I(j,C){let R=j.indexOf(C);return R===-1?[void 0,j]:[j.slice(0,R),j.slice(R+1)]}function F(j,C,R,T){if(A(C)){let k=C.slice(1,-1),[d,u]=I(k,":");if(!/^[\w-_]+$/g.test(d))u=k;else if(d!==void 0&&!E.includes(d))return[];if(u.length>0&&E.includes(d))return[U(`[${u}]`,R),d]}for(let k of[].concat(j)){let d=N[k](C,R,{tailwindConfig:T});if(d!==void 0)return[d,k]}return[]}}),oz=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>K});function K(Y){return typeof Y=="function"?Y({}):Y}}),sz=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>p});var K=L(yJ()),Y=L(Ez()),X=L(Fz()),Z=L(kJ()),Q=L(_z()),w=Iz(),$=Rz(),W=Dz(),z=L(Cz()),H=Tz(),U=nz(),A=tJ(),V=L(oz());function L(P){return P&&P.__esModule?P:{default:P}}function B(P){return typeof P=="function"}function q(P){return typeof P=="object"&&P!==null}function M(P,...S){let D=S.pop();for(let l of S)for(let f in l){let o=D(P[f],l[f]);o===void 0?q(P[f])&&q(l[f])?P[f]=M(P[f],l[f],D):P[f]=l[f]:P[f]=o}return P}var N={colors:Q.default,negative(P){return Object.keys(P).filter((S)=>P[S]!=="0").reduce((S,D)=>{let l=(0,K.default)(P[D]);return l!==void 0&&(S[`-${D}`]=l),S},{})},breakpoints(P){return Object.keys(P).filter((S)=>typeof P[S]=="string").reduce((S,D)=>({...S,[`screen-${D}`]:P[D]}),{})}};function E(P,...S){return B(P)?P(...S):P}function I(P){return P.reduce((S,{extend:D})=>M(S,D,(l,f)=>l===void 0?[f]:Array.isArray(l)?[f,...l]:[f,l]),{})}function F(P){return{...P.reduce((S,D)=>(0,w.defaults)(S,D),{}),extend:I(P)}}function j(P,S){if(Array.isArray(P)&&q(P[0]))return P.concat(S);if(Array.isArray(S)&&q(S[0])&&q(P))return[P,...S];if(Array.isArray(S))return S}function C({extend:P,...S}){return M(S,P,(D,l)=>!B(D)&&!l.some(B)?M({},D,...l,j):(f,o)=>M({},...[D,...l].map((i)=>E(i,f,o)),j))}function*R(P){let S=(0,$.toPath)(P);if(S.length===0||(yield S,Array.isArray(P)))return;let D=/^(.*?)\s*\/\s*([^/]+)$/,l=P.match(D);if(l!==null){let[,f,o]=l,i=(0,$.toPath)(f);i.alpha=o,yield i}}function T(P){let S=(D,l)=>{for(let f of R(D)){let o=0,i=P;for(;i!=null&&o<f.length;)i=i[f[o++]],i=B(i)&&(f.alpha===void 0||o<=f.length-1)?i(S,N):i;if(i!==void 0){if(f.alpha!==void 0){let m=(0,U.parseColorFormat)(i);return(0,A.withAlphaValue)(m,f.alpha,(0,V.default)(m))}return(0,z.default)(i)?(0,H.cloneDeep)(i):i}}return l};return Object.assign(S,{theme:S,...N}),Object.keys(P).reduce((D,l)=>(D[l]=B(P[l])?P[l](S,N):P[l],D),{})}function k(P){let S=[];return P.forEach((D)=>{S=[...S,D];var l;let f=(l=D==null?void 0:D.plugins)!==null&&l!==void 0?l:[];f.length!==0&&f.forEach((o)=>{o.__isOptionsFunction&&(o=o());var i;S=[...S,...k([(i=o==null?void 0:o.config)!==null&&i!==void 0?i:{}])]})}),S}function d(P){return[...P].reduceRight((S,D)=>B(D)?D({corePlugins:S}):(0,X.default)(D,S),Y.default)}function u(P){return[...P].reduceRight((S,D)=>[...S,...D],[])}function p(P){let S=[...k(P),{prefix:"",important:!1,separator:":",variantOrder:Z.default.variantOrder}];var D,l;return(0,W.normalizeConfig)((0,w.defaults)({theme:T(C(F(S.map((f)=>(D=f==null?void 0:f.theme)!==null&&D!==void 0?D:{})))),corePlugins:d(S.map((f)=>f.corePlugins)),plugins:u(P.map((f)=>(l=f==null?void 0:f.plugins)!==null&&l!==void 0?l:[]))},...S))}}),eJ={};m9(eJ,{default:()=>JK});var JK,az=f9(()=>{JK={yellow:(J)=>J}}),tz=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0});function K(U,A){for(var V in A)Object.defineProperty(U,V,{enumerable:!0,get:A[V]})}K(J,{flagEnabled:()=>$,issueFlagNotices:()=>z,default:()=>H});var Y=Z((az(),r8(eJ))),X=Z((c9(),r8(s8)));function Z(U){return U&&U.__esModule?U:{default:U}}var Q={optimizeUniversalDefaults:!1},w={future:["hoverOnlyWhenSupported","respectDefaultRingColorOpacity"],experimental:["optimizeUniversalDefaults","matchVariant"]};function $(U,A){if(w.future.includes(A)){var V,L,B;return U.future==="all"||((B=(L=U==null||(V=U.future)===null||V===void 0?void 0:V[A])!==null&&L!==void 0?L:Q[A])!==null&&B!==void 0?B:!1)}if(w.experimental.includes(A)){var q,M,N;return U.experimental==="all"||((N=(M=U==null||(q=U.experimental)===null||q===void 0?void 0:q[A])!==null&&M!==void 0?M:Q[A])!==null&&N!==void 0?N:!1)}return!1}function W(U){if(U.experimental==="all")return w.experimental;var A;return Object.keys((A=U==null?void 0:U.experimental)!==null&&A!==void 0?A:{}).filter((V)=>w.experimental.includes(V)&&U.experimental[V])}function z(U){if(process.env.JEST_WORKER_ID===void 0&&W(U).length>0){let A=W(U).map((V)=>Y.default.yellow(V)).join(", ");X.default.warn("experimental-flags-enabled",[`You have enabled experimental features: ${A}`,"Experimental features in Tailwind CSS are not covered by semver, may introduce breaking changes, and can change at any time."])}}var H=w}),ez=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>Z});var K=X(kJ()),Y=tz();function X(Q){return Q&&Q.__esModule?Q:{default:Q}}function Z(Q){var w;let $=((w=Q==null?void 0:Q.presets)!==null&&w!==void 0?w:[K.default]).slice().reverse().flatMap((H)=>Z(typeof H=="function"?H():H)),W={respectDefaultRingColorOpacity:{theme:{ringColor:{DEFAULT:"#3b82f67f"}}}},z=Object.keys(W).filter((H)=>(0,Y.flagEnabled)(Q,H)).map((H)=>W[H]);return[Q,...z,...$]}}),JH=t((J)=>{Object.defineProperty(J,"__esModule",{value:!0}),Object.defineProperty(J,"default",{enumerable:!0,get:()=>Z});var K=X(sz()),Y=X(ez());function X(Q){return Q&&Q.__esModule?Q:{default:Q}}function Z(...Q){let[,...w]=(0,Y.default)(Q[0]);return(0,K.default)([...Q,...w])}}),KH=t((J,K)=>{var Y=JH();K.exports=(Y.__esModule?Y:{default:Y}).default}),S8;var u5=null;async function t8(){return S8||(u5?(await u5,S8):(u5=Promise.resolve().then(()=>(jz(),hJ)).then((J)=>J.getYogaModule()).then((J)=>S8=J),await u5,u5=null,S8))}var a5=(J,K)=>()=>(K||J((K={exports:{}}).exports,K),K.exports),YH=a5((J,K)=>{K.exports=["em","ex","ch","rem","vh","vw","vmin","vmax","px","mm","cm","in","pt","pc","mozmm"]}),XH=a5((J,K)=>{K.exports=["deg","grad","rad","turn"]}),ZH=a5((J,K)=>{K.exports=["dpi","dpcm","dppx"]}),QH=a5((J,K)=>{K.exports=["Hz","kHz"]}),wH=a5((J,K)=>{K.exports=["s","ms"]}),WH=YH(),KK=XH(),YK=ZH(),XK=QH(),ZK=wH();function p9(J){if(/\.\D?$/.test(J))throw Error("The dot should be followed by a number");if(/^[+-]{2}/.test(J))throw Error("Only one leading +/- is allowed");if($H(J)>1)throw Error("Only one dot is allowed");if(/%$/.test(J)){this.type="percentage",this.value=j9(J),this.unit="%";return}var K=HH(J);if(!K){this.type="number",this.value=j9(J);return}this.type=AH(K),this.value=j9(J.substr(0,J.length-K.length)),this.unit=K}p9.prototype.valueOf=function(){return this.value};p9.prototype.toString=function(){return this.value+(this.unit||"")};function t5(J){return new p9(J)}function $H(J){var K=J.match(/\./g);return K?K.length:0}function j9(J){var K=parseFloat(J);if(isNaN(K))throw Error("Invalid number: "+J);return K}var zH=[].concat(KK,XK,WH,YK,ZK);function HH(J){var K=J.match(/\D+$/),Y=K&&K[0];if(Y&&zH.indexOf(Y)===-1)throw Error("Invalid unit: "+Y);return Y}var UH=Object.assign(v8(KK,"angle"),v8(XK,"frequency"),v8(YK,"resolution"),v8(ZK,"time"));function v8(J,K){return Object.fromEntries(J.map((Y)=>[Y,K]))}function AH(J){return UH[J]||"length"}function l8(J){let K=typeof J;return!(K==="number"||K==="bigint"||K==="string"||K==="boolean")}function VH(J){return/^class\s/.test(J.toString())}function BH(J){return"dangerouslySetInnerHTML"in J}function GH(J){let K=typeof J>"u"?[]:[].concat(J).flat(1/0),Y=[];for(let X=0;X<K.length;X++){let Z=K[X];typeof Z>"u"||typeof Z=="boolean"||Z===null||(typeof Z=="number"&&(Z=String(Z)),typeof Z=="string"&&Y.length&&typeof Y[Y.length-1]=="string"?Y[Y.length-1]+=Z:Y.push(Z))}return Y}function U0(J,K,Y,X,Z=!1){if(typeof J=="number")return J;try{if(J=J.trim(),/[ /\(,]/.test(J))return;if(J===String(+J))return+J;let Q=new t5(J);if(Q.type==="length")switch(Q.unit){case"em":return Q.value*K;case"rem":return Q.value*16;case"vw":return~~(Q.value*X._viewportWidth/100);case"vh":return~~(Q.value*X._viewportHeight/100);default:return Q.value}else{if(Q.type==="angle")return QK(J);if(Q.type==="percentage"&&Z)return Q.value/100*Y}}catch{}}function QK(J){let K=new t5(J);switch(K.unit){case"deg":return K.value;case"rad":return K.value*180/Math.PI;case"turn":return K.value*360;case"grad":return 0.9*K.value}}function d8(J,K){return[J[0]*K[0]+J[2]*K[1],J[1]*K[0]+J[3]*K[1],J[0]*K[2]+J[2]*K[3],J[1]*K[2]+J[3]*K[3],J[0]*K[4]+J[2]*K[5]+J[4],J[1]*K[4]+J[3]*K[5]+J[5]]}function B1(J,K,Y,X){let Z=K[J];if(typeof Z>"u"){if(X&&typeof J<"u")throw Error(`Invalid value for CSS property "${X}". Allowed values: ${Object.keys(K).map((Q)=>`"${Q}"`).join(" | ")}. Received: "${J}".`);Z=Y}return Z}var E9,F9,LH=[32,160,4961,65792,65793,4153,4241,10].map((J)=>String.fromCodePoint(J));function L1(J,K,Y){if(!E9||!F9){if(!(typeof Intl<"u"&&("Segmenter"in Intl)))throw Error("Intl.Segmenter does not exist, please use import a polyfill.");E9=new Intl.Segmenter(Y,{granularity:"word"}),F9=new Intl.Segmenter(Y,{granularity:"grapheme"})}if(K==="grapheme")return[...F9.segment(J)].map((X)=>X.segment);{let X=[...E9.segment(J)].map((w)=>w.segment),Z=[],Q=0;for(;Q<X.length;){let w=X[Q];if(w=="\xA0"){let $=Q===0?"":Z.pop(),W=Q===X.length-1?"":X[Q+1];Z.push($+"\xA0"+W),Q+=2}else Z.push(w),Q++}return Z}}function a(J,K,Y){let X="";for(let[Z,Q]of Object.entries(K))typeof Q<"u"&&(X+=` ${Z}="${Q}"`);return Y?`<${J}${X}>${Y}</${J}>`:`<${J}${X}/>`}function qH(J=20){let K=new Map;function Y(Q,w){if(K.size>=J){let $=K.keys().next().value;K.delete($)}K.set(Q,w)}function X(Q){if(!K.has(Q))return;let w=K.get(Q);return K.delete(Q),K.set(Q,w),w}function Z(){K.clear()}return{set:Y,get:X,clear:Z}}function i9(J){return J?J.split(/[, ]/).filter(Boolean).map(Number):null}function OH(J){return Object.prototype.toString.call(J)}function wK(J){return typeof J=="string"}function MH(J){return typeof J=="number"}function NH(J){return OH(J)==="[object Undefined]"}function jH(J,K){if(K==="break-all")return{words:L1(J,"grapheme"),requiredBreaks:[]};if(K==="keep-all")return{words:L1(J,"word"),requiredBreaks:[]};let Y=new v6(J),X=0,Z=Y.nextBreak(),Q=[],w=[!1];for(;Z;){let $=J.slice(X,Z.position);Q.push($),Z.required?w.push(!0):w.push(!1),X=Z.position,Z=Y.nextBreak()}return{words:Q,requiredBreaks:w}}var EH=(J)=>J.replaceAll(/([A-Z])/g,(K,Y)=>`-${Y.toLowerCase()}`);function WK(J,K=","){let Y=[],X=0,Z=0;K=new RegExp(K);for(let Q=0;Q<J.length;Q++)J[Q]==="("?Z++:J[Q]===")"&&Z--,Z===0&&K.test(J[Q])&&(Y.push(J.slice(X,Q).trim()),X=Q+1);return Y.push(J.slice(X).trim()),Y}var FH="image/avif",_H="image/webp",e8="image/apng",J6="image/png",K6="image/jpeg",Y6="image/gif",r9="image/svg+xml";function $K(J){let K=new DataView(J),Y=4,X=K.byteLength;for(;Y<X;){let Z=K.getUint16(Y,!1);if(Z>X)throw TypeError("Invalid JPEG");let Q=K.getUint8(Z+1+Y);if(Q===192||Q===193||Q===194)return[K.getUint16(Z+7+Y,!1),K.getUint16(Z+5+Y,!1)];Y+=Z+2}throw TypeError("Invalid JPEG")}function zK(J){let K=new Uint8Array(J.slice(6,10));return[K[0]|K[1]<<8,K[2]|K[3]<<8]}function HK(J){let K=new DataView(J);return[K.getUint16(18,!1),K.getUint16(22,!1)]}var n1=qH(100),u8=new Map,IH=[J6,e8,K6,Y6,r9];function RH(J){let K="",Y=new Uint8Array(J);for(let X=0;X<Y.byteLength;X++)K+=String.fromCharCode(Y[X]);return btoa(K)}function DH(J){let K=atob(J),Y=K.length,X=new Uint8Array(Y);for(let Z=0;Z<Y;Z++)X[Z]=K.charCodeAt(Z);return X.buffer}function WJ(J,K){let Y=K.match(/<svg[^>]*>/)[0],X=Y.match(/viewBox=['"](.+)['"]/),Z=X?i9(X[1]):null,Q=Y.match(/width=['"](\d*\.\d+|\d+)['"]/),w=Y.match(/height=['"](\d*\.\d+|\d+)['"]/);if(!Z&&(!Q||!w))throw Error(`Failed to parse SVG from ${J}: missing "viewBox"`);let $=Z?[Z[2],Z[3]]:[+Q[1],+w[1]],W=$[0]/$[1];return Q&&w?[+Q[1],+w[1]]:Q?[+Q[1],+Q[1]/W]:w?[+w[1]*W,+w[1]]:[$[0],$[1]]}function $J(J){let K,Y=CH(new Uint8Array(J));switch(Y){case J6:case e8:K=HK(J);break;case Y6:K=zK(J);break;case K6:K=$K(J);break}if(!IH.includes(Y))throw Error(`Unsupported image type: ${Y||"unknown"}`);return[`data:${Y};base64,${RH(J)}`,K]}async function n9(J){if(!J)throw Error("Image source is not provided.");if(typeof J=="object"){let[Z,Q]=$J(J);return[Z,...Q]}if((J.startsWith('"')&&J.endsWith('"')||J.startsWith("'")&&J.endsWith("'"))&&(J=J.slice(1,-1)),typeof window>"u"&&!J.startsWith("http")&&!J.startsWith("data:"))throw Error(`Image source must be an absolute URL: ${J}`);if(J.startsWith("data:")){let Z;try{Z=/data:(?<imageType>[a-z/+]+)(;[^;=]+=[^;=]+)*?(;(?<encodingType>[^;,]+))?,(?<dataString>.*)/g.exec(J).groups}catch{return console.warn("Image data URI resolved without size:"+J),[J]}let{imageType:Q,encodingType:w,dataString:$}=Z;if(Q===r9){let W=w==="base64"?atob($):decodeURIComponent($.replace(/ /g,"%20")),z=w==="base64"?J:`data:image/svg+xml;base64,${btoa(W)}`,H=WJ(J,W);return n1.set(J,[z,...H]),[z,...H]}else if(w==="base64"){let W,z=DH($);switch(Q){case J6:case e8:W=HK(z);break;case Y6:W=zK(z);break;case K6:W=$K(z);break}return n1.set(J,[J,...W]),[J,...W]}else return console.warn("Image data URI resolved without size:"+J),n1.set(J,[J]),[J]}if(!globalThis.fetch)throw Error("`fetch` is required to be polyfilled to load images.");if(u8.has(J))return u8.get(J);let K=n1.get(J);if(K)return K;let Y=J,X=fetch(Y).then((Z)=>{let Q=Z.headers.get("content-type");return Q==="image/svg+xml"||Q==="application/svg+xml"?Z.text():Z.arrayBuffer()}).then((Z)=>{if(typeof Z=="string")try{let $=`data:image/svg+xml;base64,${btoa(Z)}`,W=WJ(Y,Z);return[$,...W]}catch($){throw Error(`Failed to parse SVG image: ${$.message}`)}let[Q,w]=$J(Z);return[Q,...w]}).then((Z)=>(n1.set(Y,Z),Z)).catch((Z)=>(console.error(`Can't load image ${Y}: `+Z.message),n1.set(Y,[]),[]));return u8.set(Y,X),X}function CH(J){return[255,216,255].every((K,Y)=>J[Y]===K)?K6:[137,80,78,71,13,10,26,10].every((K,Y)=>J[Y]===K)?TH(J)?e8:J6:[71,73,70,56].every((K,Y)=>J[Y]===K)?Y6:[82,73,70,70,0,0,0,0,87,69,66,80].every((K,Y)=>!K||J[Y]===K)?_H:[60,63,120,109,108].every((K,Y)=>J[Y]===K)?r9:[0,0,0,0,102,116,121,112,97,118,105,102].every((K,Y)=>!K||J[Y]===K)?FH:null}function TH(J){let K=new DataView(J.buffer),Y,X,Z=8,Q=!1;for(;!Q&&Y!=="IEND"&&Z<J.length;){X=K.getUint32(Z);let w=J.subarray(Z+4,Z+8);Y=String.fromCharCode(...w),Q=Y==="acTL",Z+=12+X}return Q}var v9={accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",href:"href",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDasharray:"stroke-dasharray",strokeDashoffset:"stroke-dashoffset",strokeLinecap:"stroke-linecap",strokeLinejoin:"stroke-linejoin",strokeMiterlimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlLang:"xml:lang",xmlSpace:"xml:space",xmlnsXlink:"xmlns:xlink"},PH=/[\r\n%#()<>?[\\\]^`{|}"']/g;function h9(J,K){if(!J)return"";if(Array.isArray(J))return J.map((z)=>h9(z,K)).join("");if(typeof J!="object")return String(J);let Y=J.type;if(Y==="text")throw Error("<text> nodes are not currently supported, please convert them to <path>");let{children:X,style:Z,...Q}=J.props||{},w=(Z==null?void 0:Z.color)||K,$=`${Object.entries(Q).map(([z,H])=>(typeof H=="string"&&H.toLowerCase()==="currentcolor"&&(H=w),z==="href"&&Y==="image"?` ${v9[z]||z}="${n1.get(H)[0]}"`:` ${v9[z]||z}="${H}"`)).join("")}`,W=Z?` style="${Object.entries(Z).map(([z,H])=>`${EH(z)}:${H}`).join(";")}"`:"";return`<${Y}${$}${W}>${h9(X,w)}</${Y}>`}async function SH(J){let K=new Set,Y=(X)=>{if(X&&l8(X)){if(Array.isArray(X)){X.forEach((Z)=>Y(Z));return}else typeof X=="object"&&(X.type==="image"?K.has(X.props.href)||K.add(X.props.href):X.type==="img"&&(K.has(X.props.src)||K.add(X.props.src)));Array.isArray(X.props.children)?X.props.children.map((Z)=>Y(Z)):Y(X.props.children)}};return Y(J),Promise.all(Array.from(K).map((X)=>n9(X)))}async function vH(J,K){let{viewBox:Y,viewbox:X,width:Z,height:Q,className:w,style:$,children:W,...z}=J.props||{};Y||=X,z.xmlns="http://www.w3.org/2000/svg";let H=($==null?void 0:$.color)||K,U=i9(Y),A=U?U[3]/U[2]:null;return Z=Z||A&&Q?Q/A:null,Q=Q||A&&Z?Z*A:null,z.width=Z,z.height=Q,Y&&(z.viewBox=Y),`data:image/svg+xml;utf8,${`<svg ${Object.entries(z).map(([V,L])=>(typeof L=="string"&&L.toLowerCase()==="currentcolor"&&(L=H),` ${v9[V]||V}="${L}"`)).join("")}>${h9(W,H)}</svg>`.replace(PH,encodeURIComponent)}`}var Y1="flex",hH={p:{display:Y1,marginTop:"1em",marginBottom:"1em"},div:{display:Y1},blockquote:{display:Y1,marginTop:"1em",marginBottom:"1em",marginLeft:40,marginRight:40},center:{display:Y1,textAlign:"center"},hr:{display:Y1,marginTop:"0.5em",marginBottom:"0.5em",marginLeft:"auto",marginRight:"auto",borderWidth:1,borderStyle:"solid"},h1:{display:Y1,fontSize:"2em",marginTop:"0.67em",marginBottom:"0.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h2:{display:Y1,fontSize:"1.5em",marginTop:"0.83em",marginBottom:"0.83em",marginLeft:0,marginRight:0,fontWeight:"bold"},h3:{display:Y1,fontSize:"1.17em",marginTop:"1em",marginBottom:"1em",marginLeft:0,marginRight:0,fontWeight:"bold"},h4:{display:Y1,marginTop:"1.33em",marginBottom:"1.33em",marginLeft:0,marginRight:0,fontWeight:"bold"},h5:{display:Y1,fontSize:"0.83em",marginTop:"1.67em",marginBottom:"1.67em",marginLeft:0,marginRight:0,fontWeight:"bold"},h6:{display:Y1,fontSize:"0.67em",marginTop:"2.33em",marginBottom:"2.33em",marginLeft:0,marginRight:0,fontWeight:"bold"},u:{textDecoration:"underline"},strong:{fontWeight:"bold"},b:{fontWeight:"bold"},i:{fontStyle:"italic"},em:{fontStyle:"italic"},code:{fontFamily:"monospace"},kbd:{fontFamily:"monospace"},pre:{display:Y1,fontFamily:"monospace",whiteSpace:"pre",marginTop:"1em",marginBottom:"1em"},mark:{backgroundColor:"yellow",color:"black"},big:{fontSize:"larger"},small:{fontSize:"smaller"},s:{textDecoration:"line-through"}},yH=new Set(["color","font","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","textAlign","textTransform","textShadowOffset","textShadowColor","textShadowRadius","WebkitTextStrokeWidth","WebkitTextStrokeColor","textDecorationLine","textDecorationStyle","textDecorationColor","whiteSpace","transform","wordBreak","tabSize","opacity","filter","_viewportWidth","_viewportHeight","_inheritedClipPathId","_inheritedMaskId","_inheritedBackgroundClipTextPath"]);function kH(J){let K={};for(let Y in J)yH.has(Y)&&(K[Y]=J[Y]);return K}function gH(J,K){try{let Y=new t5(J);switch(Y.unit){case"px":return{absolute:Y.value};case"em":return{absolute:Y.value*K};case"rem":return{absolute:Y.value*16};case"%":return{relative:Y.value};default:return{}}}catch{return{}}}function _9(J,K,Y){switch(J){case"top":return{yRelative:0};case"left":return{xRelative:0};case"right":return{xRelative:100};case"bottom":return{yRelative:100};case"center":return{};default:{let X=gH(J,K);return X.absolute?{[Y?"xAbsolute":"yAbsolute"]:X.absolute}:X.relative?{[Y?"xRelative":"yRelative"]:X.relative}:{}}}}function xH(J,K){if(typeof J=="number")return{xAbsolute:J};let Y;try{Y=VK.default(J).nodes.filter((X)=>X.type==="word").map((X)=>X.value)}catch{return{}}return Y.length===1?_9(Y[0],K,!0):Y.length===2?((Y[0]==="top"||Y[0]==="bottom"||Y[1]==="left"||Y[1]==="right")&&Y.reverse(),{..._9(Y[0],K,!0),..._9(Y[1],K,!1)}):{}}function p5(J,K){let Y=BK.getPropertyName(`mask-${K}`);return J[Y]||J[`WebkitM${Y.substring(1)}`]}function bH(J){let K=J.maskImage||J.WebkitMaskImage,Y={position:p5(J,"position")||"0% 0%",size:p5(J,"size")||"100% 100%",repeat:p5(J,"repeat")||"repeat",origin:p5(J,"origin")||"border-box",clip:p5(J,"origin")||"border-box"};return WK(K).filter((X)=>X&&X!=="none").reverse().map((X)=>({image:X,...Y}))}var fH=new Set(["flex","flexGrow","flexShrink","flexBasis","fontWeight","lineHeight","opacity","scale","scaleX","scaleY"]),mH=new Set(["lineHeight"]);function cH(J,K,Y,X){return J==="textDecoration"&&!Y.includes(K.textDecorationColor)&&(K.textDecorationColor=X),K}function Q5(J,K){let Y=Number(K);return isNaN(Y)?K:fH.has(J)?mH.has(J)?Y:String(K):Y+"px"}function lH(J,K,Y){if(J==="lineHeight")return{lineHeight:Q5(J,K)};if(J==="fontFamily")return{fontFamily:K.split(",").map((X)=>X.trim().replace(/(^['"])|(['"]$)/g,"").toLocaleLowerCase())};if(J==="borderRadius"){if(typeof K!="string"||!K.includes("/"))return;let[X,Z]=K.split("/"),Q=G1.getStylesForProperty(J,X,!0),w=G1.getStylesForProperty(J,Z,!0);for(let $ in Q)w[$]=Q5(J,Q[$])+" "+Q5(J,w[$]);return w}if(/^border(Top|Right|Bottom|Left)?$/.test(J)){let X=G1.getStylesForProperty("border",K,!0);X.borderWidth===1&&!String(K).includes("1px")&&(X.borderWidth=3),X.borderColor==="black"&&!String(K).includes("black")&&(X.borderColor=Y);let Z={Width:Q5(J+"Width",X.borderWidth),Style:B1(X.borderStyle,{solid:"solid",dashed:"dashed"},"solid",J+"Style"),Color:X.borderColor},Q={};for(let w of J==="border"?["Top","Right","Bottom","Left"]:[J.slice(6)])for(let $ in Z)Q["border"+w+$]=Z[$];return Q}if(J==="boxShadow"){if(!K)throw Error('Invalid `boxShadow` value: "'+K+'".');return{[J]:typeof K=="string"?AK.parse(K):K}}if(J==="transform"){if(typeof K!="string")throw Error("Invalid `transform` value.");let X={},Z=K.replace(/(-?[\d.]+%)/g,(w,$)=>{let W=~~(Math.random()*1e9);return X[W]=$,W+"px"}),Q=G1.getStylesForProperty("transform",Z,!0);for(let w of Q.transform)for(let $ in w)X[w[$]]&&(w[$]=X[w[$]]);return Q}if(J==="background")return K=K.toString().trim(),/^(linear-gradient|radial-gradient|url|repeating-linear-gradient)\(/.test(K)?G1.getStylesForProperty("backgroundImage",K,!0):G1.getStylesForProperty("background",K,!0);if(J==="textShadow"){K=K.toString().trim();let X={},Z=WK(K);for(let Q of Z){let w=G1.getStylesForProperty("textShadow",Q,!0);for(let $ in w)X[$]?X[$].push(w[$]):X[$]=[w[$]]}return X}if(J==="WebkitTextStroke"){K=K.toString().trim();let X=K.split(" ");if(X.length!==2)throw Error("Invalid `WebkitTextStroke` value.");return{WebkitTextStrokeWidth:Q5(J,X[0]),WebkitTextStrokeColor:Q5(J,X[1])}}}function zJ(J){return J==="transform"?" Only absolute lengths such as `10px` are supported.":""}var HJ=/rgb\((\d+)\s+(\d+)\s+(\d+)\s*\/\s*([\.\d]+)\)/;function GK(J){if(typeof J=="string"&&HJ.test(J.trim()))return J.trim().replace(HJ,(K,Y,X,Z,Q)=>`rgba(${Y}, ${X}, ${Z}, ${Q})`);if(typeof J=="object"&&J!==null){for(let K in J)J[K]=GK(J[K]);return J}return J}function UJ(J,K){let Y={};if(J){let Z=uH(J.color,K.color);Y.color=Z;for(let Q in J){if(Q.startsWith("_")){Y[Q]=J[Q];continue}if(Q==="color")continue;let w=G1.getPropertyName(Q),$=iH(J[Q],Z);try{let W=lH(w,$,Z)||cH(w,G1.getStylesForProperty(w,Q5(w,$),!0),$,Z);Object.assign(Y,W)}catch(W){throw Error(W.message+(W.message.includes($)?`
|
|
64
|
+
`+zJ(w):`
|
|
65
|
+
in CSS rule \`${w}: ${$}\`.${zJ(w)}`))}}}if(Y.backgroundImage){let{backgrounds:Z}=UK.parseElementStyle(Y);Y.backgroundImage=Z}(Y.maskImage||Y.WebkitMaskImage)&&(Y.maskImage=bH(Y));let X=dH(Y.fontSize,K.fontSize);typeof Y.fontSize<"u"&&(Y.fontSize=X),Y.transformOrigin&&(Y.transformOrigin=xH(Y.transformOrigin,X));for(let Z in Y){let Q=Y[Z];if(Z==="lineHeight")typeof Q=="string"&&Q!=="normal"&&(Q=Y[Z]=U0(Q,X,X,K,!0)/X);else{if(typeof Q=="string"){let w=U0(Q,X,X,K);typeof w<"u"&&(Y[Z]=w),Q=Y[Z]}if(typeof Q=="string"||typeof Q=="object"){let w=GK(Q);w&&(Y[Z]=w),Q=Y[Z]}}if(Z==="opacity"&&typeof Q=="number"&&(Y.opacity=Q*K.opacity),Z==="transform"){let w=Q;for(let $ of w){let W=Object.keys($)[0],z=$[W],H=typeof z=="string"?U0(z,X,X,K)??z:z;$[W]=H}}if(Z==="textShadowRadius"){let w=Q;Y.textShadowRadius=w.map(($)=>U0($,X,0,K,!1))}if(Z==="textShadowOffset"){let w=Q;Y.textShadowOffset=w.map(({height:$,width:W})=>({height:U0($,X,0,K,!1),width:U0(W,X,0,K,!1)}))}}return Y}function dH(J,K){if(typeof J=="number")return J;try{let Y=new t5(J);switch(Y.unit){case"em":return Y.value*K;case"rem":return Y.value*16}}catch{return K}}function AJ(J){if(J.startsWith("hsl")){let K=j8(J),[Y,X,Z]=K.values;return`hsl(${[Y,`${X}%`,`${Z}%`].concat(K.alpha===1?[]:[K.alpha]).join(",")})`}return J}function uH(J,K){return J&&J.toLowerCase()!=="currentcolor"?AJ(J):AJ(K)}function pH(J,K){return J.replace(/currentcolor/gi,K)}function iH(J,K){return wK(J)&&(J=pH(J,K)),J}async function rH(J,K,Y,X,Z){let Q=await t8(),w={...Y,...UJ(hH[K],Y),...UJ(X,Y)};if(K==="img"){let[$,W,z]=await n9(Z.src);if(W===void 0&&z===void 0){if(Z.width===void 0||Z.height===void 0)throw Error("Image size cannot be determined. Please provide the width and height of the image.");W=parseInt(Z.width),z=parseInt(Z.height)}let H=z/W,U=(w.borderLeftWidth||0)+(w.borderRightWidth||0)+(w.paddingLeft||0)+(w.paddingRight||0),A=(w.borderTopWidth||0)+(w.borderBottomWidth||0)+(w.paddingTop||0)+(w.paddingBottom||0),V=w.width||Z.width,L=w.height||Z.height,B=typeof V=="number"&&typeof L=="number";B&&(V-=U,L-=A),V===void 0&&L===void 0?(V="100%",J.setAspectRatio(1/H)):V===void 0?typeof L=="number"?V=L/H:J.setAspectRatio(1/H):L===void 0&&(typeof V=="number"?L=V*H:J.setAspectRatio(1/H)),w.width=B?V+U:V,w.height=B?L+A:L,w.__src=$}if(K==="svg"){let $=Z.viewBox||Z.viewbox,W=i9($),z=W?W[3]/W[2]:null,{width:H,height:U}=Z;typeof H>"u"&&U?z==null?H=0:typeof U=="string"&&U.endsWith("%")?H=parseInt(U)/z+"%":(U=U0(U,Y.fontSize,1,Y),H=U/z):typeof U>"u"&&H?z==null?H=0:typeof H=="string"&&H.endsWith("%")?U=parseInt(H)*z+"%":(H=U0(H,Y.fontSize,1,Y),U=H*z):(typeof H<"u"&&(H=U0(H,Y.fontSize,1,Y)||H),typeof U<"u"&&(U=U0(U,Y.fontSize,1,Y)||U),H||=W==null?void 0:W[2],U||=W==null?void 0:W[3]),!w.width&&H&&(w.width=H),!w.height&&U&&(w.height=U)}return J.setDisplay(B1(w.display,{flex:Q.DISPLAY_FLEX,block:Q.DISPLAY_FLEX,none:Q.DISPLAY_NONE,"-webkit-box":Q.DISPLAY_FLEX},Q.DISPLAY_FLEX,"display")),J.setAlignContent(B1(w.alignContent,{stretch:Q.ALIGN_STRETCH,center:Q.ALIGN_CENTER,"flex-start":Q.ALIGN_FLEX_START,"flex-end":Q.ALIGN_FLEX_END,"space-between":Q.ALIGN_SPACE_BETWEEN,"space-around":Q.ALIGN_SPACE_AROUND,baseline:Q.ALIGN_BASELINE,normal:Q.ALIGN_AUTO},Q.ALIGN_AUTO,"alignContent")),J.setAlignItems(B1(w.alignItems,{stretch:Q.ALIGN_STRETCH,center:Q.ALIGN_CENTER,"flex-start":Q.ALIGN_FLEX_START,"flex-end":Q.ALIGN_FLEX_END,baseline:Q.ALIGN_BASELINE,normal:Q.ALIGN_AUTO},Q.ALIGN_STRETCH,"alignItems")),J.setAlignSelf(B1(w.alignSelf,{stretch:Q.ALIGN_STRETCH,center:Q.ALIGN_CENTER,"flex-start":Q.ALIGN_FLEX_START,"flex-end":Q.ALIGN_FLEX_END,baseline:Q.ALIGN_BASELINE,normal:Q.ALIGN_AUTO},Q.ALIGN_AUTO,"alignSelf")),J.setJustifyContent(B1(w.justifyContent,{center:Q.JUSTIFY_CENTER,"flex-start":Q.JUSTIFY_FLEX_START,"flex-end":Q.JUSTIFY_FLEX_END,"space-between":Q.JUSTIFY_SPACE_BETWEEN,"space-around":Q.JUSTIFY_SPACE_AROUND},Q.JUSTIFY_FLEX_START,"justifyContent")),J.setFlexDirection(B1(w.flexDirection,{row:Q.FLEX_DIRECTION_ROW,column:Q.FLEX_DIRECTION_COLUMN,"row-reverse":Q.FLEX_DIRECTION_ROW_REVERSE,"column-reverse":Q.FLEX_DIRECTION_COLUMN_REVERSE},Q.FLEX_DIRECTION_ROW,"flexDirection")),J.setFlexWrap(B1(w.flexWrap,{wrap:Q.WRAP_WRAP,nowrap:Q.WRAP_NO_WRAP,"wrap-reverse":Q.WRAP_WRAP_REVERSE},Q.WRAP_NO_WRAP,"flexWrap")),typeof w.gap<"u"&&J.setGap(Q.GUTTER_ALL,w.gap),typeof w.rowGap<"u"&&J.setGap(Q.GUTTER_ROW,w.rowGap),typeof w.columnGap<"u"&&J.setGap(Q.GUTTER_COLUMN,w.columnGap),typeof w.flexBasis<"u"&&J.setFlexBasis(w.flexBasis),J.setFlexGrow(typeof w.flexGrow>"u"?0:w.flexGrow),J.setFlexShrink(typeof w.flexShrink>"u"?0:w.flexShrink),typeof w.maxHeight<"u"&&J.setMaxHeight(w.maxHeight),typeof w.maxWidth<"u"&&J.setMaxWidth(w.maxWidth),typeof w.minHeight<"u"&&J.setMinHeight(w.minHeight),typeof w.minWidth<"u"&&J.setMinWidth(w.minWidth),J.setOverflow(B1(w.overflow,{visible:Q.OVERFLOW_VISIBLE,hidden:Q.OVERFLOW_HIDDEN},Q.OVERFLOW_VISIBLE,"overflow")),J.setMargin(Q.EDGE_TOP,w.marginTop||0),J.setMargin(Q.EDGE_BOTTOM,w.marginBottom||0),J.setMargin(Q.EDGE_LEFT,w.marginLeft||0),J.setMargin(Q.EDGE_RIGHT,w.marginRight||0),J.setBorder(Q.EDGE_TOP,w.borderTopWidth||0),J.setBorder(Q.EDGE_BOTTOM,w.borderBottomWidth||0),J.setBorder(Q.EDGE_LEFT,w.borderLeftWidth||0),J.setBorder(Q.EDGE_RIGHT,w.borderRightWidth||0),J.setPadding(Q.EDGE_TOP,w.paddingTop||0),J.setPadding(Q.EDGE_BOTTOM,w.paddingBottom||0),J.setPadding(Q.EDGE_LEFT,w.paddingLeft||0),J.setPadding(Q.EDGE_RIGHT,w.paddingRight||0),J.setPositionType(B1(w.position,{absolute:Q.POSITION_TYPE_ABSOLUTE,relative:Q.POSITION_TYPE_RELATIVE},Q.POSITION_TYPE_RELATIVE,"position")),typeof w.top<"u"&&J.setPosition(Q.EDGE_TOP,w.top),typeof w.bottom<"u"&&J.setPosition(Q.EDGE_BOTTOM,w.bottom),typeof w.left<"u"&&J.setPosition(Q.EDGE_LEFT,w.left),typeof w.right<"u"&&J.setPosition(Q.EDGE_RIGHT,w.right),typeof w.height<"u"?J.setHeight(w.height):J.setHeightAuto(),typeof w.width<"u"?J.setWidth(w.width):J.setWidthAuto(),[w,kH(w)]}var VJ=[1,0,0,1,0,0];function nH(J,K,Y){let X=[...VJ];for(let Z of J){let Q=Object.keys(Z)[0],w=Z[Q];if(typeof w=="string")if(Q==="translateX")w=parseFloat(w)/100*K,Z[Q]=w;else if(Q==="translateY")w=parseFloat(w)/100*Y,Z[Q]=w;else throw Error(`Invalid transform: "${Q}: ${w}".`);let $=w,W=[...VJ];switch(Q){case"translateX":W[4]=$;break;case"translateY":W[5]=$;break;case"scale":W[0]=$,W[3]=$;break;case"scaleX":W[0]=$;break;case"scaleY":W[3]=$;break;case"rotate":{let z=$*Math.PI/180,H=Math.cos(z),U=Math.sin(z);W[0]=H,W[1]=U,W[2]=-U,W[3]=H;break}case"skewX":W[2]=Math.tan($*Math.PI/180);break;case"skewY":W[1]=Math.tan($*Math.PI/180);break}X=d8(W,X)}J.splice(0,J.length),J.push(...X),J.__resolved=!0}function LK({left:J,top:K,width:Y,height:X},Z,Q,w){let $;Z.__resolved||nH(Z,Y,X);let W=Z;if(Q)$=W;else{let z=(w==null?void 0:w.xAbsolute)??((w==null?void 0:w.xRelative)??50)*Y/100,H=(w==null?void 0:w.yAbsolute)??((w==null?void 0:w.yRelative)??50)*X/100,U=J+z,A=K+H;$=d8([1,0,0,1,U,A],d8(W,[1,0,0,1,-U,-A])),W.__parent&&($=d8(W.__parent,$)),W.splice(0,6,...$)}return`matrix(${$.map((z)=>z.toFixed(2)).join(",")})`}function oH({left:J,top:K,width:Y,height:X,isInheritingTransform:Z},Q){let w="",$=1;return Q.transform&&(w=LK({left:J,top:K,width:Y,height:X},Q.transform,Z,Q.transformOrigin)),Q.opacity!==void 0&&($=+Q.opacity),{matrix:w,opacity:$}}function sH({id:J,content:K,filter:Y,left:X,top:Z,width:Q,height:w,matrix:$,opacity:W,image:z,clipPathId:H,debug:U,shape:A,decorationShape:V},L){let B="";if(U&&(B=a("rect",{x:X,y:Z-w,width:Q,height:w,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:$||void 0,"clip-path":H?`url(#${H})`:void 0})),z){let M={href:z,x:X,y:Z,width:Q,height:w,transform:$||void 0,"clip-path":H?`url(#${H})`:void 0,style:L.filter?`filter:${L.filter}`:void 0};return[(Y?`${Y}<g filter="url(#satori_s-${J})">`:"")+a("image",{...M,opacity:W!==1?W:void 0})+(V||"")+(Y?"</g>":"")+B,""]}let q={x:X,y:Z,width:Q,height:w,"font-weight":L.fontWeight,"font-style":L.fontStyle,"font-size":L.fontSize,"font-family":L.fontFamily,"letter-spacing":L.letterSpacing||void 0,transform:$||void 0,"clip-path":H?`url(#${H})`:void 0,style:L.filter?`filter:${L.filter}`:void 0,"stroke-width":L.WebkitTextStrokeWidth?`${L.WebkitTextStrokeWidth}px`:void 0,stroke:L.WebkitTextStrokeWidth?L.WebkitTextStrokeColor:void 0,"stroke-linejoin":L.WebkitTextStrokeWidth?"round":void 0,"paint-order":L.WebkitTextStrokeWidth?"stroke":void 0};return[(Y?`${Y}<g filter="url(#satori_s-${J})">`:"")+a("text",{...q,fill:L.color,opacity:W!==1?W:void 0},y9.default(K))+(V||"")+(Y?"</g>":"")+B,A?a("text",q,y9.default(K)):""]}function aH(J,K,Y){return J.replace(/([MA])([0-9.-]+),([0-9.-]+)/g,function(X,Z,Q,w){return Z+(parseFloat(Q)+K)+","+(parseFloat(w)+Y)})}var h8=1.1;function tH({id:J,width:K,height:Y},X){if(!X.shadowColor||!X.shadowOffset||typeof X.shadowRadius>"u")return"";let Z=X.shadowColor.length,Q="",w="",$=0,W=K,z=0,H=Y;for(let U=0;U<Z;U++){let A=X.shadowRadius[U]*X.shadowRadius[U]/4;$=Math.min(X.shadowOffset[U].width-A,$),W=Math.max(X.shadowOffset[U].width+A+K,W),z=Math.min(X.shadowOffset[U].height-A,z),H=Math.max(X.shadowOffset[U].height+A+Y,H),Q+=a("feDropShadow",{dx:X.shadowOffset[U].width,dy:X.shadowOffset[U].height,stdDeviation:X.shadowRadius[U]/2,"flood-color":X.shadowColor[U],"flood-opacity":1,...Z>1?{in:"SourceGraphic",result:`satori_s-${J}-result-${U}`}:{}}),Z>1&&(w=a("feMergeNode",{in:`satori_s-${J}-result-${U}`})+w)}return a("filter",{id:`satori_s-${J}`,x:($/K*100*h8).toFixed(2)+"%",y:(z/Y*100*h8).toFixed(2)+"%",width:((W-$)/K*100*h8).toFixed(2)+"%",height:((H-z)/Y*100*h8).toFixed(2)+"%"},Q+(w?a("feMerge",{},w):""))}function eH({width:J,height:K,shape:Y,opacity:X,id:Z},Q){if(!Q.boxShadow)return null;let w="",$="";for(let W=Q.boxShadow.length-1;W>=0;W--){let z="",H=Q.boxShadow[W];H.spreadRadius&&H.inset&&(H.spreadRadius=-H.spreadRadius);let U=H.blurRadius*H.blurRadius/4+(H.spreadRadius||0),A=Math.min(-U-(H.inset?H.offsetX:0),0),V=Math.max(U+J-(H.inset?H.offsetX:0),J),L=Math.min(-U-(H.inset?H.offsetY:0),0),B=Math.max(U+K-(H.inset?H.offsetY:0),K),q=`satori_s-${Z}-${W}`,M=`satori_ms-${Z}-${W}`,N=H.spreadRadius?Y.replace('stroke-width="0"',`stroke-width="${H.spreadRadius*2}"`):Y;z+=a("mask",{id:M,maskUnits:"userSpaceOnUse"},a("rect",{x:0,y:0,width:Q._viewportWidth||"100%",height:Q._viewportHeight||"100%",fill:H.inset?"#000":"#fff"})+N.replace('fill="#fff"',H.inset?'fill="#fff"':'fill="#000"').replace('stroke="#fff"',""));let E=N.replace(/d="([^"]+)"/,(I,F)=>'d="'+aH(F,H.offsetX,H.offsetY)+'"').replace(/x="([^"]+)"/,(I,F)=>'x="'+(parseFloat(F)+H.offsetX)+'"').replace(/y="([^"]+)"/,(I,F)=>'y="'+(parseFloat(F)+H.offsetY)+'"');H.spreadRadius&&H.spreadRadius<0&&(z+=a("mask",{id:M+"-neg",maskUnits:"userSpaceOnUse"},E.replace('stroke="#fff"','stroke="#000"').replace(/stroke-width="[^"]+"/,`stroke-width="${-H.spreadRadius*2}"`))),H.spreadRadius&&H.spreadRadius<0&&(E=a("g",{mask:`url(#${M}-neg)`},E)),z+=a("defs",{},a("filter",{id:q,x:`${A/J*100}%`,y:`${L/K*100}%`,width:`${(V-A)/J*100}%`,height:`${(B-L)/K*100}%`},a("feGaussianBlur",{stdDeviation:H.blurRadius/2,result:"b"})+a("feFlood",{"flood-color":H.color,in:"SourceGraphic",result:"f"})+a("feComposite",{in:"f",in2:"b",operator:H.inset?"out":"in"})))+a("g",{mask:`url(#${M})`,filter:`url(#${q})`,opacity:X},E),H.inset?$+=z:w+=z}return[w,$]}function JU({width:J,left:K,top:Y,ascender:X,clipPathId:Z,matrix:Q},w){let{textDecorationColor:$,textDecorationStyle:W,textDecorationLine:z,fontSize:H,color:U}=w;if(!z||z==="none")return"";let A=Math.max(1,H*0.1),V=z==="line-through"?Y+X*0.7:z==="underline"?Y+X*1.1:Y,L=W==="dashed"?`${A*1.2} ${A*2}`:W==="dotted"?`0 ${A*2}`:void 0;return(Z?`<g clip-path="url(#${Z})">`:"")+a("line",{x1:K,y1:V,x2:K+J,y2:V,stroke:$||U,"stroke-width":A,"stroke-dasharray":L,"stroke-linecap":W==="dotted"?"round":"square",transform:Q})+(Z?"</g>":"")}function o9(J){return J=J.replace("U+","0x"),String.fromCodePoint(Number(J))}var s5=o9("U+0020"),qK=o9("U+0009"),p8=o9("U+2026");function KU(J,K,Y){let{fontSize:X,letterSpacing:Z}=Y,Q=new Map;function w(z){if(Q.has(z))return Q.get(z);let H=J.measure(z,{fontSize:X,letterSpacing:Z});return Q.set(z,H),H}function $(z){let H=0;for(let U of z)K(U)?H+=X:H+=w(U);return H}function W(z){return $(L1(z,"grapheme"))}return{measureGrapheme:w,measureGraphemeArray:$,measureText:W}}function YU(J,K,Y){let{textTransform:X,whiteSpace:Z,wordBreak:Q}=K;J=XU(J,X,Y);let{content:w,shouldCollapseTabsAndSpaces:$,allowSoftWrap:W}=wU(J,Z),{words:z,requiredBreaks:H,allowBreakWord:U}=QU(w,Q),[A,V]=ZU(K,W);return{words:z,requiredBreaks:H,allowSoftWrap:W,allowBreakWord:U,processedContent:w,shouldCollapseTabsAndSpaces:$,lineLimit:A,blockEllipsis:V}}function XU(J,K,Y){return K==="uppercase"?J=J.toLocaleUpperCase(Y):K==="lowercase"?J=J.toLocaleLowerCase(Y):K==="capitalize"&&(J=L1(J,"word",Y).map((X)=>L1(X,"grapheme",Y).map((Z,Q)=>Q===0?Z.toLocaleUpperCase(Y):Z).join("")).join("")),J}function ZU(J,K){let{textOverflow:Y,lineClamp:X,WebkitLineClamp:Z,WebkitBoxOrient:Q,overflow:w,display:$}=J;if($==="block"&&X){let[W,z=p8]=WU(X);if(W)return[W,z]}return Y==="ellipsis"&&$==="-webkit-box"&&Q==="vertical"&&MH(Z)&&Z>0?[Z,p8]:Y==="ellipsis"&&w==="hidden"&&!K?[1,p8]:[1/0]}function QU(J,K){let Y=["break-all","break-word"].includes(K),{words:X,requiredBreaks:Z}=jH(J,K);return{words:X,requiredBreaks:Z,allowBreakWord:Y}}function wU(J,K){let Y=["pre","pre-wrap","pre-line"].includes(K),X=["normal","nowrap","pre-line"].includes(K),Z=!["pre","nowrap"].includes(K);return Y||(J=J.replace(/\n/g,s5)),X&&(J=J.replace(/([ ]|\t)+/g,s5).replace(/^[ ]|[ ]$/g,"")),{content:J,shouldCollapseTabsAndSpaces:X,allowSoftWrap:Z}}function WU(J){if(typeof J=="number")return[J];let K=/^(\d+)\s*"(.*)"$/,Y=/^(\d+)\s*'(.*)'$/,X=K.exec(J),Z=Y.exec(J);if(X){let Q=+X[1],w=X[2];return[Q,w]}else if(Z){let Q=+Z[1],w=Z[2];return[Q,w]}return[]}var $U=new Set([qK]);function zU(J){return $U.has(J)}async function*HU(J,K){let Y=await t8(),{parentStyle:X,inheritedStyle:Z,parent:Q,font:w,id:$,isInheritingTransform:W,debug:z,embedFont:H,graphemeImages:U,locale:A,canLoadAdditionalAssets:V}=K,{textAlign:L,lineHeight:B,textWrap:q,fontSize:M,filter:N,tabSize:E=8,letterSpacing:I,_inheritedBackgroundClipTextPath:F,flexShrink:j}=X,{words:C,requiredBreaks:R,allowSoftWrap:T,allowBreakWord:k,processedContent:d,shouldCollapseTabsAndSpaces:u,lineLimit:p,blockEllipsis:P}=YU(J,X,A),S=UU(Y,L);Q.insertChild(S,Q.getChildCount()),NH(j)&&Q.setFlexShrink(1);let D=w.getEngine(M,B,X,A),l=V?L1(d,"grapheme").filter((W0)=>!zU(W0)&&!D.has(W0)):[];yield l.map((W0)=>({word:W0,locale:A})),l.length&&(D=w.getEngine(M,B,X,A));function f(W0){return!!(U&&U[W0])}let{measureGrapheme:o,measureGraphemeArray:i,measureText:m}=KU(D,f,{fontSize:M,letterSpacing:I}),c=wK(E)?U0(E,M,1,X):o(s5)*E,h=(W0,N0)=>{if(W0.length===0)return{originWidth:0,endingSpacesWidth:0,text:W0};let{index:E0,tabCount:V0}=AU(W0),R0=0;if(V0>0){let P0=W0.slice(0,E0),_0=W0.slice(E0+V0),O0=m(P0),q1=O0+N0;R0=(c===0?O0:(Math.floor(q1/c)+V0)*c)+m(_0)}else R0=m(W0);let G0=W0.trimEnd()===W0?R0:m(W0.trimEnd());return{originWidth:R0,endingSpacesWidth:R0-G0,text:W0}},y=[],s=[],g=[],J0=[],X0=[];function Z0(W0){let N0=0,E0=0,V0=-1,R0=0,G0=0,P0=0,_0=0;y=[],g=[0],J0=[],X0=[];let O0=0,q1=0;for(;O0<C.length&&N0<p;){let z0=C[O0],e1=R[O0],e0=0,{originWidth:g1,endingSpacesWidth:w8,text:x1}=h(z0,G0);z0=x1,e0=g1;let j0=w8;e1&&P0===0&&(P0=D.height(z0));let b0=",.!?:-@)>]}%#".indexOf(z0[0])<0,w1=!G0,W8=O0&&b0&&G0+e0>W0+j0&&T;if(k&&e0>W0&&(!G0||W8||e1)){let d0=L1(z0,"grapheme");C.splice(O0,1,...d0),G0>0&&(y.push(G0-q1),s.push(_0),N0++,R0+=P0,G0=0,P0=0,_0=0,g.push(1),V0=-1),q1=j0;continue}if(e1||W8)u&&z0===s5&&(e0=0),y.push(G0-q1),s.push(_0),N0++,R0+=P0,G0=e0,P0=e0?D.height(z0):0,_0=e0?D.baseline(z0):0,g.push(1),V0=-1,e1||(E0=Math.max(E0,W0));else{G0+=e0;let d0=D.height(z0);d0>P0&&(P0=d0,_0=D.baseline(z0)),w1&&g[g.length-1]++}w1&&V0++,E0=Math.max(E0,G0);let I5=G0-e0;if(e0===0)X0.push({y:R0,x:I5,width:0,line:N0,lineIndex:V0,isImage:!1});else{let d0=L1(z0,"word");for(let W1=0;W1<d0.length;W1++){let J5=d0[W1],D1=0,R5=!1;f(J5)?(D1=M,R5=!0):D1=o(J5),J0.push(J5),X0.push({y:R0,x:I5,width:D1,line:N0,lineIndex:V0,isImage:R5}),I5+=D1}}O0++,q1=j0}return G0&&(N0<p&&(R0+=P0),N0++,y.push(G0),s.push(_0)),{width:E0,height:R0}}let K0={width:0,height:0};S.setMeasureFunc((W0)=>{let{width:N0,height:E0}=Z0(W0);if(q==="balance"){let R0=N0/2,G0=N0,P0=N0;for(;R0+1<G0;){P0=(R0+G0)/2;let{height:O0}=Z0(P0);O0>E0?R0=P0:G0=P0}Z0(G0);let _0=Math.ceil(G0);return K0={width:_0,height:E0},{width:_0,height:E0}}let V0=Math.ceil(N0);return K0={width:V0,height:E0},{width:V0,height:E0}});let[B0,I0]=yield,Y0="",q0="",v0=Z._inheritedClipPathId,p0=Z._inheritedMaskId,{left:x0,top:T0,width:l0,height:i0}=S.getComputedLayout(),r0=Q.getComputedWidth()-Q.getComputedPadding(Y.EDGE_LEFT)-Q.getComputedPadding(Y.EDGE_RIGHT)-Q.getComputedBorder(Y.EDGE_LEFT)-Q.getComputedBorder(Y.EDGE_RIGHT),Z1=B0+x0,Q1=I0+T0,{matrix:t0,opacity:z5}=oH({left:x0,top:T0,width:l0,height:i0,isInheritingTransform:W},X),y1="";if(X.textShadowOffset){let{textShadowColor:W0,textShadowOffset:N0,textShadowRadius:E0}=X;y1=tH({width:K0.width,height:K0.height,id:$},{shadowColor:W0,shadowOffset:N0,shadowRadius:E0}),y1=a("defs",{},y1)}let t1="",H5="",Q8="",U5=-1,A5={},k1=null,N4=0;for(let W0=0;W0<J0.length;W0++){let N0=X0[W0],E0=X0[W0+1];if(!N0)continue;let V0=J0[W0],R0=null,G0=!1,P0=U?U[V0]:null,_0=N0.y,O0=N0.x,q1=N0.width,z0=N0.line;if(z0===U5)continue;let e1=!1;if(y.length>1){let j0=l0-y[z0];if(L==="right"||L==="end")O0+=j0;else if(L==="center")O0+=j0/2;else if(L==="justify"&&z0<y.length-1){let b0=g[z0],w1=b0>1?j0/(b0-1):0;O0+=w1*N0.lineIndex,e1=!0}}let e0=s[z0],g1=D.baseline(V0),w8=D.height(V0),x1=e0-g1;if(A5[z0]||(A5[z0]=[O0,Q1+_0+x1,g1,e1?l0:y[z0]]),p!==1/0){let j0=function(d0,W1){let J5=L1(W1,"grapheme",A),D1="",R5=0;for(let j4 of J5){let E4=d0+i([D1+j4]);if(D1&&E4+w1>r0)break;D1+=j4,R5=E4}return{subset:D1,resolvedWidth:R5}},b0=P,w1=o(P);w1>r0&&(b0=p8,w1=o(b0));let W8=o(s5),I5=z0<y.length-1;if(z0+1===p&&(I5||y[z0]>r0)){if(O0+q1+w1+W8>r0){let{subset:d0,resolvedWidth:W1}=j0(O0,V0);V0=d0+b0,U5=z0,A5[z0][2]=W1,G0=!0}else if(E0&&E0.line!==z0)if(L==="center"){let{subset:d0,resolvedWidth:W1}=j0(O0,V0);V0=d0+b0,U5=z0,A5[z0][2]=W1,G0=!0}else{let d0=J0[W0+1],{subset:W1,resolvedWidth:J5}=j0(q1+O0,d0);V0=V0+W1+b0,U5=z0,A5[z0][2]=J5,G0=!0}}}if(P0)_0+=0;else if(H){if(!V0.includes(qK)&&!LH.includes(V0)&&J0[W0+1]&&E0&&!E0.isImage&&_0===E0.y&&!G0){k1===null&&(N4=O0),k1=k1===null?V0:k1+V0;continue}let j0=k1===null?V0:k1+V0,b0=k1===null?O0:N4,w1=N0.width+O0-b0;R0=D.getSVG(j0.replace(/(\t)+/g,""),{fontSize:M,left:Z1+b0,top:Q1+_0+g1+x1,letterSpacing:I}),k1=null,z&&(Q8+=a("rect",{x:Z1+b0,y:Q1+_0+x1,width:w1,height:w8,fill:"transparent",stroke:"#575eff","stroke-width":1,transform:t0||void 0,"clip-path":v0?`url(#${v0})`:void 0})+a("line",{x1:Z1+O0,x2:Z1+O0+N0.width,y1:Q1+_0+x1+g1,y2:Q1+_0+x1+g1,stroke:"#14c000","stroke-width":1,transform:t0||void 0,"clip-path":v0?`url(#${v0})`:void 0}))}else _0+=g1+x1;if(X.textDecorationLine){let j0=A5[z0];j0&&!j0[4]&&(t1+=JU({left:Z1+j0[0],top:j0[1],width:j0[3],ascender:j0[2],clipPathId:v0,matrix:t0},X),j0[4]=1)}if(R0!==null)H5+=R0+" ";else{let[j0,b0]=sH({content:V0,filter:y1,id:$,left:Z1+O0,top:Q1+_0,width:q1,height:w8,matrix:t0,opacity:z5,image:P0,clipPathId:v0,debug:z,shape:!!F,decorationShape:t1},X);Y0+=j0,q0+=b0,t1=""}if(G0)break}if(H5){let W0=X.color!=="transparent"&&z5!==0?a("path",{fill:X.color,d:H5,transform:t0||void 0,opacity:z5!==1?z5:void 0,"clip-path":v0?`url(#${v0})`:void 0,mask:p0?`url(#${p0})`:void 0,style:N?`filter:${N}`:void 0,"stroke-width":Z.WebkitTextStrokeWidth?`${Z.WebkitTextStrokeWidth}px`:void 0,stroke:Z.WebkitTextStrokeWidth?Z.WebkitTextStrokeColor:void 0,"stroke-linejoin":Z.WebkitTextStrokeWidth?"round":void 0,"paint-order":Z.WebkitTextStrokeWidth?"stroke":void 0}):"";F&&(q0=a("path",{d:H5,transform:t0||void 0})),Y0+=(y1?y1+a("g",{filter:`url(#satori_s-${$})`},W0+t1):W0+t1)+Q8}return q0&&(X._inheritedBackgroundClipTextPath.value+=q0),Y0}function UU(J,K){let Y=J.Node.create();return Y.setAlignItems(J.ALIGN_BASELINE),Y.setJustifyContent(B1(K,{left:J.JUSTIFY_FLEX_START,right:J.JUSTIFY_FLEX_END,center:J.JUSTIFY_CENTER,justify:J.JUSTIFY_SPACE_BETWEEN,start:J.JUSTIFY_FLEX_START,end:J.JUSTIFY_FLEX_END},J.JUSTIFY_FLEX_START,"textAlign")),Y}function AU(J){let K=/(\t)+/.exec(J);return K?{index:K.index,tabCount:K[0].length}:{index:null,tabCount:0}}function OK(J,K,Y,X,Z){let Q=[];for(let z of K){let{color:H}=z;if(!Q.length&&(Q.push({offset:0,color:H}),!z.offset||z.offset.value==="0"))continue;let U=typeof z.offset>"u"?void 0:z.offset.unit==="%"?+z.offset.value/100:Number(U0(`${z.offset.value}${z.offset.unit}`,Y.fontSize,J,Y,!0))/J;Q.push({offset:U,color:H})}Q.length||Q.push({offset:0,color:"transparent"});let w=Q[Q.length-1];w.offset!==1&&(typeof w.offset>"u"?w.offset=1:X?Q[Q.length-1]={offset:1,color:w.color}:Q.push({offset:1,color:w.color}));let $=0,W=1;for(let z=0;z<Q.length;z++)if(typeof Q[z].offset>"u"){for(W<z&&(W=z);typeof Q[W].offset>"u";)W++;Q[z].offset=(Q[W].offset-Q[$].offset)/(W-$)*(z-$)+Q[$].offset}else $=z;return Z==="mask"?Q.map((z)=>{let H=j8(z.color);return H?H.alpha===0?{...z,color:"rgba(0, 0, 0, 1)"}:{...z,color:`rgba(255, 255, 255, ${H.alpha})`}:z}):Q}function VU({id:J,width:K,height:Y,repeatX:X,repeatY:Z},Q,w,$,W,z){let H=W2(Q),[U,A]=w,V=Q.startsWith("repeating"),L,B,q;if(H.orientation.type==="directional")L=GU(H.orientation.value),B=Math.sqrt(Math.pow((L.x2-L.x1)*U,2)+Math.pow((L.y2-L.y1)*A,2));else if(H.orientation.type==="angular"){let{length:F,...j}=LU(QK(`${H.orientation.value.value}${H.orientation.value.unit}`)/180*Math.PI,U,A);B=F,L=j}q=V?qU(H.stops,B,L,W):L;let M=OK(V?BU(H.stops,B):B,H.stops,W,V,z),N=`satori_bi${J}`,E=`satori_pattern_${J}`,I=a("pattern",{id:E,x:$[0]/K,y:$[1]/Y,width:X?U/K:"1",height:Z?A/Y:"1",patternUnits:"objectBoundingBox"},a("linearGradient",{id:N,...q,spreadMethod:V?"repeat":"pad"},M.map((F)=>a("stop",{offset:(F.offset??0)*100+"%","stop-color":F.color})).join(""))+a("rect",{x:0,y:0,width:U,height:A,fill:`url(#${N})`}));return[E,I]}function BU(J,K){let Y=J[J.length-1],{offset:X}=Y;return X?X.unit==="%"?Number(X.value)/100*K:Number(X.value):K}function GU(J){let K=0,Y=0,X=0,Z=0;return J.includes("top")?Y=1:J.includes("bottom")&&(Z=1),J.includes("left")?K=1:J.includes("right")&&(X=1),!K&&!X&&!Y&&!Z&&(Y=1),{x1:K,y1:Y,x2:X,y2:Z}}function LU(J,K,Y){let X=Math.pow(Y/K,2);J=(J%(Math.PI*2)+Math.PI*2)%(Math.PI*2);let Z,Q,w,$,W,z,H,U,A=(V)=>{if(V===0){Z=0,Q=Y,w=0,$=0,W=Y;return}else if(V===Math.PI/2){Z=0,Q=0,w=K,$=0,W=K;return}if(V>0&&V<Math.PI/2){Z=(X*K/2/Math.tan(V)-Y/2)/(Math.tan(V)+X/Math.tan(V)),Q=Math.tan(V)*Z+Y,w=Math.abs(K/2-Z)+K/2,$=Y/2-Math.abs(Q-Y/2),W=Math.sqrt(Math.pow(w-Z,2)+Math.pow($-Q,2)),H=(K/2/Math.tan(V)-Y/2)/(Math.tan(V)+1/Math.tan(V)),U=Math.tan(V)*H+Y,W=2*Math.sqrt(Math.pow(K/2-H,2)+Math.pow(Y/2-U,2));return}else if(V>Math.PI/2&&V<Math.PI){Z=(Y/2+X*K/2/Math.tan(V))/(Math.tan(V)+X/Math.tan(V)),Q=Math.tan(V)*Z,w=Math.abs(K/2-Z)+K/2,$=Y/2+Math.abs(Q-Y/2),H=(K/2/Math.tan(V)+Y/2)/(Math.tan(V)+1/Math.tan(V)),U=Math.tan(V)*H,W=2*Math.sqrt(Math.pow(K/2-H,2)+Math.pow(Y/2-U,2));return}else V>=Math.PI&&(A(V-Math.PI),z=Z,Z=w,w=z,z=Q,Q=$,$=z)};return A(J),{x1:Z/K,y1:Q/Y,x2:w/K,y2:$/Y,length:W}}function qU(J,K,Y,X){let{x1:Z,x2:Q,y1:w,y2:$}=Y,W=J[0].offset?J[0].offset.unit==="%"?Number(J[0].offset.value)/100:U0(`${J[0].offset.value}${J[0].offset.unit}`,X.fontSize,K,X,!0)/K:0,z=J.at(-1).offset?J.at(-1).offset.unit==="%"?Number(J.at(-1).offset.value)/100:U0(`${J.at(-1).offset.value}${J.at(-1).offset.unit}`,X.fontSize,K,X,!0)/K:1,H=(Q-Z)*W+Z,U=($-w)*W+w,A=(Q-Z)*z+Z,V=($-w)*z+w;return{x1:H,y1:U,x2:A,y2:V}}function OU({id:J,width:K,height:Y,repeatX:X,repeatY:Z},Q,w,$,W,z){var H;let{shape:U,stops:A,position:V,size:L}=$2(Q),[B,q]=w,M=B/2,N=q/2,E=MU(V.x,V.y,B,q,W.fontSize,W);M=E.x,N=E.y;let I=OK(K,A,W,!1,z),F=`satori_radial_${J}`,j=`satori_pattern_${J}`,C=`satori_mask_${J}`,R=NU(U,L,W.fontSize,{x:M,y:N},[B,q],W),T=a("pattern",{id:j,x:$[0]/K,y:$[1]/Y,width:X?B/K:"1",height:Z?q/Y:"1",patternUnits:"objectBoundingBox"},a("radialGradient",{id:F},I.map((k)=>a("stop",{offset:k.offset||0,"stop-color":k.color})).join(""))+a("mask",{id:C},a("rect",{x:0,y:0,width:B,height:q,fill:"#fff"}))+a("rect",{x:0,y:0,width:B,height:q,fill:((H=I.at(-1))==null?void 0:H.color)||"transparent"})+a(U,{cx:M,cy:N,width:B,height:q,...R,fill:`url(#${F})`,mask:`url(#${C})`}));return[j,T]}function MU(J,K,Y,X,Z,Q){let w={x:Y/2,y:X/2};return J.type==="keyword"?Object.assign(w,BJ(J.value,Y,X,"x")):w.x=U0(`${J.value.value}${J.value.unit}`,Z,Y,Q,!0)||Y/2,K.type==="keyword"?Object.assign(w,BJ(K.value,Y,X,"y")):w.y=U0(`${K.value.value}${K.value.unit}`,Z,X,Q,!0)||X/2,w}function BJ(J,K,Y,X){switch(J){case"center":return{[X]:X==="x"?K/2:Y/2};case"left":return{x:0};case"top":return{y:0};case"right":return{x:K};case"bottom":return{y:Y}}}function NU(J,K,Y,X,Z,Q){let[w,$]=Z,{x:W,y:z}=X,H={},U=0,A=0;if(jU(K)){if(K.some((V)=>V.value.value.startsWith("-")))throw Error("disallow setting negative values to the size of the shape. Check https://w3c.github.io/csswg-drafts/css-images/#valdef-rg-size-length-0");return J==="circle"?{r:Number(U0(`${K[0].value.value}${K[0].value.unit}`,Y,w,Q,!0))}:{rx:Number(U0(`${K[0].value.value}${K[0].value.unit}`,Y,w,Q,!0)),ry:Number(U0(`${K[1].value.value}${K[1].value.unit}`,Y,$,Q,!0))}}switch(K[0].value){case"farthest-corner":U=Math.max(Math.abs(w-W),Math.abs(W)),A=Math.max(Math.abs($-z),Math.abs(z));break;case"closest-corner":U=Math.min(Math.abs(w-W),Math.abs(W)),A=Math.min(Math.abs($-z),Math.abs(z));break;case"farthest-side":return J==="circle"?H.r=Math.max(Math.abs(w-W),Math.abs(W),Math.abs($-z),Math.abs(z)):(H.rx=Math.max(Math.abs(w-W),Math.abs(W)),H.ry=Math.max(Math.abs($-z),Math.abs(z))),H;case"closest-side":return J==="circle"?H.r=Math.min(Math.abs(w-W),Math.abs(W),Math.abs($-z),Math.abs(z)):(H.rx=Math.min(Math.abs(w-W),Math.abs(W)),H.ry=Math.min(Math.abs($-z),Math.abs(z))),H}if(J==="circle")H.r=Math.sqrt(U*U+A*A);else{let V=A!==0?U/A:1;U===0?(H.rx=0,H.ry=0):(H.ry=Math.sqrt(U*U+A*A*V*V)/V,H.rx=H.ry*V)}return H}function jU(J){return!J.some((K)=>K.type==="keyword")}function EU(J,K){return typeof J=="string"&&J.endsWith("%")?K*parseFloat(J)/100:+J}function I9(J,{x:K,y:Y,defaultX:X,defaultY:Z}){return(J?J.split(" ").map((Q)=>{try{let w=new t5(Q);return w.type==="length"||w.type==="number"?w.value:w.value+w.unit}catch{return null}}).filter((Q)=>Q!==null):[X,Z]).map((Q,w)=>EU(Q,[K,Y][w]))}async function MK({id:J,width:K,height:Y,left:X,top:Z},{image:Q,size:w,position:$,repeat:W},z,H){W=W||"repeat",H=H||"background";let U=W==="repeat-x"||W==="repeat",A=W==="repeat-y"||W==="repeat",V=I9(w,{x:K,y:Y,defaultX:K,defaultY:Y}),L=I9($,{x:K,y:Y,defaultX:0,defaultY:0});if(Q.startsWith("linear-gradient(")||Q.startsWith("repeating-linear-gradient("))return VU({id:J,width:K,height:Y,repeatX:U,repeatY:A},Q,V,L,z,H);if(Q.startsWith("radial-gradient("))return OU({id:J,width:K,height:Y,repeatX:U,repeatY:A},Q,V,L,z,H);if(Q.startsWith("url(")){let B=I9(w,{x:K,y:Y,defaultX:0,defaultY:0}),[q,M,N]=await n9(Q.slice(4,-1)),E=H==="mask"?M||B[0]:B[0]||M,I=H==="mask"?N||B[1]:B[1]||N;return[`satori_bi${J}`,a("pattern",{id:`satori_bi${J}`,patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",x:L[0]+X,y:L[1]+Z,width:U?E:"100%",height:A?I:"100%"},a("image",{x:0,y:0,width:E,height:I,preserveAspectRatio:"none",href:q}))]}throw Error(`Invalid background image: "${Q}"`)}function FU([J,K]){return Math.round(J*1000)===0&&Math.round(K*1000)===0?0:Math.round(J*K/Math.sqrt(J*J+K*K)*1000)/1000}function y8(J,K,Y){return Y<J+K&&(Y/2<J&&Y/2<K?J=K=Y/2:Y/2<J?J=Y-K:Y/2<K&&(K=Y-J)),[J,K]}function k8(J){J[0]=J[1]=Math.min(J[0],J[1])}function g8(J,K,Y,X,Z){if(typeof J=="string"){let Q=J.split(" ").map(($)=>$.trim()),w=!Q[1]&&!Q[0].endsWith("%");return Q[1]=Q[1]||Q[0],[w,[Math.min(U0(Q[0],X,K,Z,!0),K),Math.min(U0(Q[1],X,Y,Z,!0),Y)]]}return typeof J=="number"?[!0,[Math.min(J,K),Math.min(J,Y)]]:[!0,void 0]}var x8=(J)=>J&&J[0]!==0&&J[1]!==0;function _U({id:J,borderRadiusPath:K,borderType:Y,left:X,top:Z,width:Q,height:w},$){let W=`satori_brc-${J}`;return[a("clipPath",{id:W},a(Y,{x:X,y:Z,width:Q,height:w,d:K||void 0})),W]}function n8({left:J,top:K,width:Y,height:X},Z,Q){let{borderTopLeftRadius:w,borderTopRightRadius:$,borderBottomLeftRadius:W,borderBottomRightRadius:z,fontSize:H}=Z,U,A,V,L;if([U,w]=g8(w,Y,X,H,Z),[A,$]=g8($,Y,X,H,Z),[V,W]=g8(W,Y,X,H,Z),[L,z]=g8(z,Y,X,H,Z),!Q&&!x8(w)&&!x8($)&&!x8(W)&&!x8(z))return"";w||=[0,0],$||=[0,0],W||=[0,0],z||=[0,0],[w[0],$[0]]=y8(w[0],$[0],Y),[W[0],z[0]]=y8(W[0],z[0],Y),[w[1],W[1]]=y8(w[1],W[1],X),[$[1],z[1]]=y8($[1],z[1],X),U&&k8(w),A&&k8($),V&&k8(W),L&&k8(z);let B=[];B[0]=[$,$],B[1]=[z,[-z[0],z[1]]],B[2]=[W,[-W[0],-W[1]]],B[3]=[w,[w[0],-w[1]]];let q=`h${Y-w[0]-$[0]} a${B[0][0]} 0 0 1 ${B[0][1]}`,M=`v${X-$[1]-z[1]} a${B[1][0]} 0 0 1 ${B[1][1]}`,N=`h${z[0]+W[0]-Y} a${B[2][0]} 0 0 1 ${B[2][1]}`,E=`v${W[1]+w[1]-X} a${B[3][0]} 0 0 1 ${B[3][1]}`;if(Q){let I=function(u){let p=FU([w,$,z,W][u]);return u===0?[[J+w[0]-p,K+w[1]-p],[J+w[0],K]]:u===1?[[J+Y-$[0]+p,K+$[1]-p],[J+Y,K+$[1]]]:u===2?[[J+Y-z[0]+p,K+X-z[1]+p],[J+Y-z[0],K+X]]:[[J+W[0]-p,K+X-W[1]+p],[J,K+X-W[1]]]},F=Q.indexOf(!1);if(!Q.includes(!0))throw Error("Invalid `partialSides`.");if(F===-1)F=0;else for(;!Q[F];)F=(F+1)%4;let j="",C=I(F),R=`M${C[0]} A${B[(F+3)%4][0]} 0 0 1 ${C[1]}`,T=0;for(;T<4&&Q[(F+T)%4];T++)j+=R+" ",R=[q,M,N,E][(F+T)%4];let k=(F+T)%4;j+=R.split(" ")[0];let d=I(k);return j+=` A${B[(k+3)%4][0]} 0 0 1 ${d[0]}`,j}return`M${J+w[0]},${K} ${q} ${M} ${N} ${E}`}function GJ(J,K,Y){return Y[J+"Width"]===Y[K+"Width"]&&Y[J+"Style"]===Y[K+"Style"]&&Y[J+"Color"]===Y[K+"Color"]}function IU({id:J,currentClipPathId:K,borderPath:Y,borderType:X,left:Z,top:Q,width:w,height:$},W){if(!(W.borderTopWidth||W.borderRightWidth||W.borderBottomWidth||W.borderLeftWidth))return null;let z=`satori_bc-${J}`;return[a("clipPath",{id:z,"clip-path":K?`url(#${K})`:void 0},a(X,{x:Z,y:Q,width:w,height:$,d:Y||void 0})),z]}function NK({left:J,top:K,width:Y,height:X,props:Z,asContentMask:Q,maskBorderOnly:w},$){let W=["borderTop","borderRight","borderBottom","borderLeft"];if(!Q&&!W.some((V)=>$[V+"Width"]))return"";let z="",H=0;for(;H>0&&GJ(W[H],W[(H+3)%4],$);)H=(H+3)%4;let U=[!1,!1,!1,!1],A=[];for(let V=0;V<4;V++){let L=(H+V)%4,B=(H+V+1)%4,q=W[L],M=W[B];if(U[L]=!0,A=[$[q+"Width"],$[q+"Style"],$[q+"Color"],q],!GJ(q,M,$)){let N=(A[0]||0)+(Q&&!w&&$[q.replace("border","padding")]||0);N&&(z+=a("path",{width:Y,height:X,...Z,fill:"none",stroke:Q?"#000":A[2],"stroke-width":N*2,"stroke-dasharray":!Q&&A[1]==="dashed"?N*2+" "+N:void 0,d:n8({left:J,top:K,width:Y,height:X},$,U)})),U=[!1,!1,!1,!1]}}if(U.some(Boolean)){let V=(A[0]||0)+(Q&&!w&&$[A[3].replace("border","padding")]||0);V&&(z+=a("path",{width:Y,height:X,...Z,fill:"none",stroke:Q?"#000":A[2],"stroke-width":V*2,"stroke-dasharray":!Q&&A[1]==="dashed"?V*2+" "+V:void 0,d:n8({left:J,top:K,width:Y,height:X},$,U)}))}return z}function RU({id:J,left:K,top:Y,width:X,height:Z,matrix:Q,borderOnly:w},$){let W=($.borderLeftWidth||0)+(w?0:$.paddingLeft||0),z=($.borderTopWidth||0)+(w?0:$.paddingTop||0),H=($.borderRightWidth||0)+(w?0:$.paddingRight||0),U=($.borderBottomWidth||0)+(w?0:$.paddingBottom||0),A={x:K+W,y:Y+z,width:X-W-H,height:Z-z-U};return a("mask",{id:J},a("rect",{...A,fill:"#fff",transform:$.overflow==="hidden"&&$.transform&&Q?Q:void 0,mask:$._inheritedMaskId?`url(#${$._inheritedMaskId})`:void 0})+NK({left:K,top:Y,width:X,height:Z,props:{transform:Q||void 0},asContentMask:!0,maskBorderOnly:w},$))}var i5={circle:/circle\((.+)\)/,ellipse:/ellipse\((.+)\)/,path:/path\((.+)\)/,polygon:/polygon\((.+)\)/,inset:/inset\((.+)\)/};function DU({width:J,height:K},Y,X){function Z(z){let H=z.match(i5.circle);if(!H)return null;let[,U]=H,[A,V=""]=U.split("at").map((q)=>q.trim()),{x:L,y:B}=qJ(V,J,K);return{type:"circle",r:U0(A,X.fontSize,Math.sqrt(Math.pow(J,2)+Math.pow(K,2))/Math.sqrt(2),X,!0),cx:U0(L,X.fontSize,J,X,!0),cy:U0(B,X.fontSize,K,X,!0)}}function Q(z){let H=z.match(i5.ellipse);if(!H)return null;let[,U]=H,[A,V=""]=U.split("at").map((N)=>N.trim()),[L,B]=A.split(" "),{x:q,y:M}=qJ(V,J,K);return{type:"ellipse",rx:U0(L||"50%",X.fontSize,J,X,!0),ry:U0(B||"50%",X.fontSize,K,X,!0),cx:U0(q,X.fontSize,J,X,!0),cy:U0(M,X.fontSize,K,X,!0)}}function w(z){let H=z.match(i5.path);if(!H)return null;let[U,A]=LJ(H[1]);return{type:"path",d:A,"fill-rule":U}}function $(z){let H=z.match(i5.polygon);if(!H)return null;let[U,A]=LJ(H[1]);return{type:"polygon","fill-rule":U,points:A.split(",").map((V)=>V.split(" ").map((L,B)=>U0(L,X.fontSize,B===0?J:K,X,!0)).join(" ")).join(",")}}function W(z){let H=z.match(i5.inset);if(!H)return null;let[U,A]=(H[1].includes("round")?H[1]:`${H[1].trim()} round 0`).split("round"),V=k9.getStylesForProperty("borderRadius",A,!0),L=Object.values(V).map((I)=>String(I)).map((I,F)=>U0(I,X.fontSize,F===0||F===2?K:J,X,!0)||0),B=Object.values(k9.getStylesForProperty("margin",U,!0)).map((I)=>String(I)).map((I,F)=>U0(I,X.fontSize,F===0||F===2?K:J,X,!0)||0),q=B[3],M=B[0],N=J-(B[1]+B[3]),E=K-(B[0]+B[2]);return L.some((I)=>I>0)?{type:"path",d:n8({left:q,top:M,width:N,height:E},{...Y,...V})}:{type:"rect",x:q,y:M,width:N,height:E}}return{parseCircle:Z,parseEllipse:Q,parsePath:w,parsePolygon:$,parseInset:W}}function LJ(J){let[,K="nonzero",Y]=J.replace(/('|")/g,"").match(/^(nonzero|evenodd)?,?(.+)/)||[];return[K,Y]}function qJ(J,K,Y){let X=J.split(" "),Z={x:X[0]||"50%",y:X[1]||"50%"};return X.forEach((Q)=>{Q==="top"?Z.y=0:Q==="bottom"?Z.y=Y:Q==="left"?Z.x=0:Q==="right"?Z.x=K:Q==="center"&&(Z.x=K/2,Z.y=Y/2)}),Z}function s9(J){return`satori_cp-${J}`}function CU(J){return`url(#${s9(J)})`}function TU(J,K,Y){if(K.clipPath==="none")return"";let X=DU(J,K,Y),Z=K.clipPath,Q={type:""};for(let w of Object.keys(X))if(Q=X[w](Z),Q)break;if(Q){let{type:w,...$}=Q;return a("clipPath",{id:s9(J.id),"clip-path":J.currentClipPath,transform:`translate(${J.left}, ${J.top})`},a(w,$))}return""}function PU({left:J,top:K,width:Y,height:X,path:Z,matrix:Q,id:w,currentClipPath:$,src:W},z,H){let U="",A=z.clipPath&&z.clipPath!=="none"?TU({left:J,top:K,width:Y,height:X,path:Z,id:w,matrix:Q,currentClipPath:$,src:W},z,H):"";if(z.overflow!=="hidden"&&!W)U="";else{let L=A?`satori_ocp-${w}`:s9(w);U=a("clipPath",{id:L,"clip-path":$},a(Z?"path":"rect",{x:J,y:K,width:Y,height:X,d:Z||void 0,transform:z.overflow==="hidden"&&z.transform&&Q?Q:void 0}))}let V=RU({id:`satori_om-${w}`,left:J,top:K,width:Y,height:X,matrix:Q,borderOnly:!W},z);return A+U+V}var SU=(J)=>`satori_mi-${J}`;async function vU(J,K,Y){if(!K.maskImage)return["",""];let{left:X,top:Z,width:Q,height:w,id:$}=J,W=K.maskImage,z=W.length;if(!z)return["",""];let H=SU($),U="";for(let A=0;A<z;A++){let V=W[A],[L,B]=await MK({id:`${H}-${A}`,left:X,top:Z,width:Q,height:w},V,Y,"mask");U+=B+a("rect",{x:X,y:Z,width:Q,height:w,fill:`url(#${L})`})}return U=a("mask",{id:H},U),[H,U]}async function R9({id:J,left:K,top:Y,width:X,height:Z,isInheritingTransform:Q,src:w,debug:$},W,z){if(W.display==="none")return"";let H=!!w,U="rect",A="",V="",L=[],B=1,q="";W.backgroundColor&&L.push(W.backgroundColor),W.opacity!==void 0&&(B=+W.opacity),W.transform&&(A=LK({left:K,top:Y,width:X,height:Z},W.transform,Q,W.transformOrigin));let M="";if(W.backgroundImage){let S=[];for(let D=0;D<W.backgroundImage.length;D++){let l=W.backgroundImage[D],f=await MK({id:J+"_"+D,width:X,height:Z,left:K,top:Y},l,z);f&&S.unshift(f)}for(let D of S)L.push(`url(#${D[0]})`),V+=D[1],D[2]&&(M+=D[2])}let[N,E]=await vU({id:J,left:K,top:Y,width:X,height:Z},W,z);V+=E;let I=N?`url(#${N})`:W._inheritedMaskId?`url(#${W._inheritedMaskId})`:void 0,F=n8({left:K,top:Y,width:X,height:Z},W);F&&(U="path");let j=W._inheritedClipPathId;$&&(q=a("rect",{x:K,y:Y,width:X,height:Z,fill:"transparent",stroke:"#ff5757","stroke-width":1,transform:A||void 0,"clip-path":j?`url(#${j})`:void 0}));let{backgroundClip:C,filter:R}=W,T=C==="text"?`url(#satori_bct-${J})`:j?`url(#${j})`:W.clipPath?CU(J):void 0,k=PU({left:K,top:Y,width:X,height:Z,path:F,id:J,matrix:A,currentClipPath:T,src:w},W,z),d=L.map((S)=>a(U,{x:K,y:Y,width:X,height:Z,fill:S,d:F||void 0,transform:A||void 0,"clip-path":W.transform?void 0:T,style:R?`filter:${R}`:void 0,mask:W.transform?void 0:I})).join(""),u=IU({id:J,left:K,top:Y,width:X,height:Z,currentClipPathId:j,borderPath:F,borderType:U},W),p;if(H){let S=(W.borderLeftWidth||0)+(W.paddingLeft||0),D=(W.borderTopWidth||0)+(W.paddingTop||0),l=(W.borderRightWidth||0)+(W.paddingRight||0),f=(W.borderBottomWidth||0)+(W.paddingBottom||0),o=W.objectFit==="contain"?"xMidYMid":W.objectFit==="cover"?"xMidYMid slice":"none";W.transform&&(p=_U({id:J,borderRadiusPath:F,borderType:U,left:K,top:Y,width:X,height:Z},W)),d+=a("image",{x:K+S,y:Y+D,width:X-S-l,height:Z-D-f,href:w,preserveAspectRatio:o,transform:A||void 0,style:R?`filter:${R}`:void 0,"clip-path":W.transform?p?`url(#${p[1]})`:void 0:`url(#satori_cp-${J})`,mask:W.transform?void 0:N?`url(#${N})`:`url(#satori_om-${J})`})}if(u){V+=u[0];let S=u[1];d+=NK({left:K,top:Y,width:X,height:Z,props:{transform:A||void 0,"clip-path":`url(#${S})`}},W)}let P=eH({width:X,height:Z,id:J,opacity:B,shape:a(U,{x:K,y:Y,width:X,height:Z,fill:"#fff",stroke:"#fff","stroke-width":0,d:F||void 0,transform:A||void 0,"clip-path":T,mask:I})},W);return(V?a("defs",{},V):"")+(P?P[0]:"")+(p?p[0]:"")+k+(B!==1?`<g opacity="${B}">`:"")+(W.transform&&(T||I)?`<g${T?` clip-path="${T}"`:""}${I?` mask="${I}"`:""}>`:"")+(M||d)+(W.transform&&(T||I)?"</g>":"")+(B!==1?"</g>":"")+(P?P[1]:"")+q}var hU=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC08\uDC26](?:\u200D\u2B1B)?|[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g,yU=new RegExp(hU(),""),g9={emoji:yU,symbol:/\p{Symbol}/u,math:/\p{Math}/u},x9={"ja-JP":/\p{scx=Hira}|\p{scx=Kana}|\p{scx=Han}|[\u3000]|[\uFF00-\uFFEF]/u,"ko-KR":/\p{scx=Hangul}/u,"zh-CN":/\p{scx=Han}/u,"zh-TW":/\p{scx=Han}/u,"zh-HK":/\p{scx=Han}/u,"th-TH":/\p{scx=Thai}/u,"bn-IN":/\p{scx=Bengali}/u,"ar-AR":/\p{scx=Arabic}/u,"ta-IN":/\p{scx=Tamil}/u,"ml-IN":/\p{scx=Malayalam}/u,"he-IL":/\p{scx=Hebrew}/u,"te-IN":/\p{scx=Telugu}/u,devanagari:/\p{scx=Devanagari}/u,kannada:/\p{scx=Kannada}/u},a9=Object.keys({...x9,...g9});function kU(J){return a9.includes(J)}function gU(J,K){for(let X of Object.keys(g9))if(g9[X].test(J))return[X];let Y=Object.keys(x9).filter((X)=>x9[X].test(J));if(Y.length===0)return["unknown"];if(K){let X=Y.findIndex((Z)=>Z===K);X!==-1&&(Y.splice(X,1),Y.unshift(K))}return Y}function xU(J){if(J)return a9.find((K)=>K.toLowerCase().startsWith(J.toLowerCase()))}async function*b9(J,K){var Y;let X=await t8(),{id:Z,inheritedStyle:Q,parent:w,font:$,debug:W,locale:z,embedFont:H=!0,graphemeImages:U,canLoadAdditionalAssets:A,getTwStyles:V}=K;if(J===null||typeof J>"u")return yield,yield,"";if(!l8(J)||typeof J.type=="function"){let y;if(!l8(J))y=HU(String(J),K),yield(await y.next()).value;else{if(VH(J.type))throw Error("Class component is not supported.");y=b9(J.type(J.props),K),yield(await y.next()).value}await y.next();let s=yield;return(await y.next(s)).value}let{type:L,props:B}=J;if(B&&BH(B))throw Error("dangerouslySetInnerHTML property is not supported. See documentation for more information https://github.com/vercel/satori#jsx.");let{style:q,children:M,tw:N,lang:E=z}=B||{},I=xU(E);if(N){let y=V(N,q);q=Object.assign(y,q)}let F=X.Node.create();w.insertChild(F,w.getChildCount());let[j,C]=await rH(F,L,Q,q,B),R=j.transform===Q.transform;if(R||(j.transform.__parent=Q.transform),(j.overflow==="hidden"||j.clipPath&&j.clipPath!=="none")&&(C._inheritedClipPathId=`satori_cp-${Z}`,C._inheritedMaskId=`satori_om-${Z}`),j.maskImage&&(C._inheritedMaskId=`satori_mi-${Z}`),j.backgroundClip==="text"){let y={value:""};C._inheritedBackgroundClipTextPath=y,j._inheritedBackgroundClipTextPath=y}let T=GH(M),k=[],d=0,u=[];for(let y of T){let s=b9(y,{id:Z+"-"+d++,parentStyle:j,inheritedStyle:C,isInheritingTransform:!0,parent:F,font:$,embedFont:H,debug:W,graphemeImages:U,canLoadAdditionalAssets:A,locale:I,getTwStyles:V,onNodeDetected:K.onNodeDetected});A?u.push(...(await s.next()).value||[]):await s.next(),k.push(s)}yield u;for(let y of k)await y.next();let[p,P]=yield,{left:S,top:D,width:l,height:f}=F.getComputedLayout();S+=p,D+=P;let o="",i="",m="",{children:c,...h}=B;if((Y=K.onNodeDetected)==null||Y.call(K,{left:S,top:D,width:l,height:f,type:L,props:h,key:J.key,textContent:l8(c)?void 0:c}),L==="img"){let y=j.__src;i=await R9({id:Z,left:S,top:D,width:l,height:f,src:y,isInheritingTransform:R,debug:W},j,C)}else if(L==="svg"){let y=j.color,s=await vH(J,y);i=await R9({id:Z,left:S,top:D,width:l,height:f,src:s,isInheritingTransform:R,debug:W},j,C)}else{let y=q==null?void 0:q.display;if(L==="div"&&M&&typeof M!="string"&&y!=="flex"&&y!=="none")throw Error('Expected <div> to have explicit "display: flex" or "display: none" if it has more than one child node.');i=await R9({id:Z,left:S,top:D,width:l,height:f,isInheritingTransform:R,debug:W},j,C)}for(let y of k)o+=(await y.next([S,D])).value;return j._inheritedBackgroundClipTextPath&&(m+=a("clipPath",{id:`satori_bct-${Z}`,"clip-path":j._inheritedClipPathId?`url(#${j._inheritedClipPathId})`:void 0},j._inheritedBackgroundClipTextPath.value)),m+i+o}var jK="unknown";function bU(J,K,[Y,X],[Z,Q]){if(Y!==Z)return Y?!Z||Y===J?-1:Z===J?1:J===400&&Y===500||J===500&&Y===400?-1:J===400&&Z===500||J===500&&Z===400?1:J<400?Y<J&&Z<J?Z-Y:Y<J?-1:Z<J?1:Y-Z:J<Y&&J<Z?Y-Z:J<Y?-1:J<Z?1:Z-Y:1;if(X!==Q){if(X===K)return-1;if(Q===K)return 1}return-1}var fU=class{constructor(J){this.fonts=new Map,this.addFonts(J)}get({name:J,weight:K,style:Y}){if(!this.fonts.has(J))return null;K==="normal"&&(K=400),K==="bold"&&(K=700),typeof K=="string"&&(K=Number.parseInt(K,10));let X=[...this.fonts.get(J)],Z=X[0];for(let Q=1;Q<X.length;Q++){let[,w,$]=Z,[,W,z]=X[Q];bU(K,Y,[w,$],[W,z])>0&&(Z=X[Q])}return Z[0]}addFonts(J){for(let K of J){let{name:Y,data:X,lang:Z}=K;if(Z&&!kU(Z))throw Error(`Invalid value for props \`lang\`: "${Z}". The value must be one of the following: ${a9.join(", ")}.`);let Q=Z??jK,w=P8.parse("buffer"in X?X.buffer.slice(X.byteOffset,X.byteOffset+X.byteLength):X,{lowMemory:!0}),$=w.charToGlyphIndex;w.charToGlyphIndex=(z)=>{let H=$.call(w,z);return H===0&&w._trackBrokenChars&&w._trackBrokenChars.push(z),H},this.defaultFont||(this.defaultFont=w);let W=`${Y.toLowerCase()}_${Q}`;this.fonts.has(W)||this.fonts.set(W,[]),this.fonts.get(W).push([w,K.weight,K.style])}}getEngine(J=16,K="normal",{fontFamily:Y="sans-serif",fontWeight:X=400,fontStyle:Z="normal"},Q){if(!this.fonts.size)throw Error("No fonts are loaded. At least one font is required to calculate the layout.");Y=(Array.isArray(Y)?Y:[Y]).map((M)=>M.toLowerCase());let w=[];Y.forEach((M)=>{let N=this.get({name:M,weight:X,style:Z});if(N){w.push(N);return}let E=this.get({name:M+"_unknown",weight:X,style:Z});if(E){w.push(E);return}});let $=Array.from(this.fonts.keys()),W=[],z=[],H=[];for(let M of $)if(!Y.includes(M))if(Q){let N=mU(M);N?N===Q?W.push(this.get({name:M,weight:X,style:Z})):z.push(this.get({name:M,weight:X,style:Z})):H.push(this.get({name:M,weight:X,style:Z}))}else H.push(this.get({name:M,weight:X,style:Z}));let U=new Map,A=(M,N=!0)=>{let E=[...w,...H,...W,...N?z:[]];if(typeof M>"u")return N?E[E.length-1]:void 0;let I=M.charCodeAt(0);if(U.has(I))return U.get(I);let F=E.find((j,C)=>!!j.charToGlyphIndex(M)||N&&C===E.length-1);return F&&U.set(I,F),F},V=(M,N=!1)=>{var E,I;return((N?(I=(E=M.tables)==null?void 0:E.os2)==null?void 0:I.sTypoAscender:0)||M.ascender)/M.unitsPerEm*J},L=(M,N=!1)=>{var E,I;return((N?(I=(E=M.tables)==null?void 0:E.os2)==null?void 0:I.sTypoDescender:0)||M.descender)/M.unitsPerEm*J},B=(M,N=!1)=>{var E,I;if(typeof K=="string"&&K==="normal"){let F=(N?(I=(E=M.tables)==null?void 0:E.os2)==null?void 0:I.sTypoLineGap:0)||0;return V(M,N)-L(M,N)+F/M.unitsPerEm*J}else if(typeof K=="number")return J*K},q=(M)=>A(M,!1);return{has:(M)=>{if(M===`
|
|
66
|
+
`)return!0;let N=q(M);return N?(N._trackBrokenChars=[],N.stringToGlyphs(M),N._trackBrokenChars.length?(N._trackBrokenChars=void 0,!1):!0):!1},baseline:(M,N=typeof M>"u"?w[0]:A(M))=>{let E=V(N),I=L(N),F=E-I;return E+(B(N)-F)/2},height:(M,N=typeof M>"u"?w[0]:A(M))=>B(N),measure:(M,N)=>this.measure(A,M,N),getSVG:(M,N)=>this.getSVG(A,M,N)}}patchFontFallbackResolver(J,K){let Y=[];J._trackBrokenChars=Y;let X=J.stringToGlyphs;return J.stringToGlyphs=(Z,...Q)=>{let w=X.call(J,Z,...Q);for(let $=0;$<w.length;$++)if(w[$].unicode===void 0){let W=Y.shift(),z=K(W);if(z!==J){let H=z.charToGlyph(W),U=J.unitsPerEm/z.unitsPerEm,A=new P8.Path;A.unitsPerEm=J.unitsPerEm,A.commands=H.path.commands.map((L)=>{let B={...L};for(let q in B)typeof B[q]=="number"&&(B[q]*=U);return B});let V=new P8.Glyph({...H,advanceWidth:H.advanceWidth*U,xMin:H.xMin*U,xMax:H.xMax*U,yMin:H.yMin*U,yMax:H.yMax*U,path:A});w[$]=V}}return w},()=>{J.stringToGlyphs=X,J._trackBrokenChars=void 0}}measure(J,K,{fontSize:Y,letterSpacing:X=0}){let Z=J(K),Q=this.patchFontFallbackResolver(Z,J);try{return Z.getAdvanceWidth(K,Y,{letterSpacing:X/Y})}finally{Q()}}getSVG(J,K,{fontSize:Y,top:X,left:Z,letterSpacing:Q=0}){let w=J(K),$=this.patchFontFallbackResolver(w,J);try{return Y===0?"":w.getPath(K.replace(/\n/g,""),Z,X,Y,{letterSpacing:Q/Y}).toPathData(1)}finally{$()}}};function mU(J){let K=J.split("_"),Y=K[K.length-1];return Y===jK?void 0:Y}function cU({width:J,height:K,content:Y}){return a("svg",{width:J,height:K,viewBox:`0 0 ${J} ${K}`,xmlns:"http://www.w3.org/2000/svg"},Y)}var lU=Mz(KH()),dU=["ios","android","windows","macos","web"];function uU(J){return dU.includes(J)}var pU=["portrait","landscape"];function iU(J){return pU.includes(J)}var OJ;(function(J){J.fontSize="fontSize",J.lineHeight="lineHeight"})(OJ||(OJ={}));var M0;(function(J){J.rem="rem",J.em="em",J.px="px",J.percent="%",J.vw="vw",J.vh="vh",J.none="<no-css-unit>"})(M0||(M0={}));function MJ(J){return typeof J=="string"}function NJ(J){return typeof J=="object"}var D9;function x(J){return{kind:"complete",style:J}}function X1(J,K={}){let{fractions:Y}=K;if(Y&&J.includes("/")){let[Q="",w=""]=J.split("/",2),$=X1(Q),W=X1(w);return!$||!W?null:[$[0]/W[0],W[1]]}let X=parseFloat(J);if(Number.isNaN(X))return null;let Z=J.match(/(([a-z]{2,}|%))$/);if(!Z)return[X,M0.none];switch(Z==null?void 0:Z[1]){case"rem":return[X,M0.rem];case"px":return[X,M0.px];case"em":return[X,M0.em];case"%":return[X,M0.percent];case"vw":return[X,M0.vw];case"vh":return[X,M0.vh];default:return null}}function e5(J,K,Y={}){let X=w5(K,Y);return X===null?null:x({[J]:X})}function C9(J,K,Y){let X=w5(K);return X!==null&&(Y[J]=X),Y}function rU(J,K){let Y=w5(K);return Y===null?null:{[J]:Y}}function w5(J,K={}){if(J===void 0)return null;let Y=X1(String(J),K);return Y?J8(...Y,K):null}function J8(J,K,Y={}){let{isNegative:X,device:Z}=Y;switch(K){case M0.rem:return J*16*(X?-1:1);case M0.px:return J*(X?-1:1);case M0.percent:return`${X?"-":""}${J}%`;case M0.none:return J*(X?-1:1);case M0.vw:return Z!=null&&Z.windowDimensions?Z.windowDimensions.width*(J/100):(v1("`vw` CSS unit requires configuration with `useDeviceContext()`"),null);case M0.vh:return Z!=null&&Z.windowDimensions?Z.windowDimensions.height*(J/100):(v1("`vh` CSS unit requires configuration with `useDeviceContext()`"),null);default:return null}}function jJ(J){let K=X1(J);if(!K)return null;let[Y,X]=K;switch(X){case M0.rem:return Y*16;case M0.px:return Y;default:return null}}var nU={t:"Top",tr:"TopRight",tl:"TopLeft",b:"Bottom",br:"BottomRight",bl:"BottomLeft",l:"Left",r:"Right",x:"Horizontal",y:"Vertical"};function EK(J){return nU[J??""]||"All"}function FK(J){let K="All";return[J.replace(/^-(t|b|r|l|tr|tl|br|bl)(-|$)/,(Y,X)=>(K=EK(X),"")),K]}function X6(J,K={}){if(J.includes("/")){let Y=EJ(J,{...K,fractions:!0});if(Y)return Y}return J[0]==="["&&(J=J.slice(1,-1)),EJ(J,K)}function W5(J,K,Y={}){let X=X6(K,Y);return X===null?null:x({[J]:X})}function EJ(J,K={}){if(J==="px")return 1;let Y=X1(J,K);if(!Y)return null;let[X,Z]=Y;return K.fractions&&(Z=M0.percent,X*=100),Z===M0.none&&(X=X/4,Z=M0.rem),J8(X,Z,K)}function oU(...J){console.warn(...J)}function sU(...J){}var v1=typeof process>"u"||((D9=process==null?void 0:process.env)===null||D9===void 0?void 0:D9.JEST_WORKER_ID)===void 0?oU:sU,aU=[["aspect-square",x({aspectRatio:1})],["aspect-video",x({aspectRatio:1.7777777777777777})],["items-center",x({alignItems:"center"})],["items-start",x({alignItems:"flex-start"})],["items-end",x({alignItems:"flex-end"})],["items-baseline",x({alignItems:"baseline"})],["items-stretch",x({alignItems:"stretch"})],["justify-start",x({justifyContent:"flex-start"})],["justify-end",x({justifyContent:"flex-end"})],["justify-center",x({justifyContent:"center"})],["justify-between",x({justifyContent:"space-between"})],["justify-around",x({justifyContent:"space-around"})],["justify-evenly",x({justifyContent:"space-evenly"})],["content-start",x({alignContent:"flex-start"})],["content-end",x({alignContent:"flex-end"})],["content-between",x({alignContent:"space-between"})],["content-around",x({alignContent:"space-around"})],["content-stretch",x({alignContent:"stretch"})],["content-center",x({alignContent:"center"})],["self-auto",x({alignSelf:"auto"})],["self-start",x({alignSelf:"flex-start"})],["self-end",x({alignSelf:"flex-end"})],["self-center",x({alignSelf:"center"})],["self-stretch",x({alignSelf:"stretch"})],["self-baseline",x({alignSelf:"baseline"})],["direction-inherit",x({direction:"inherit"})],["direction-ltr",x({direction:"ltr"})],["direction-rtl",x({direction:"rtl"})],["hidden",x({display:"none"})],["flex",x({display:"flex"})],["flex-row",x({flexDirection:"row"})],["flex-row-reverse",x({flexDirection:"row-reverse"})],["flex-col",x({flexDirection:"column"})],["flex-col-reverse",x({flexDirection:"column-reverse"})],["flex-wrap",x({flexWrap:"wrap"})],["flex-wrap-reverse",x({flexWrap:"wrap-reverse"})],["flex-nowrap",x({flexWrap:"nowrap"})],["flex-auto",x({flexGrow:1,flexShrink:1,flexBasis:"auto"})],["flex-initial",x({flexGrow:0,flexShrink:1,flexBasis:"auto"})],["flex-none",x({flexGrow:0,flexShrink:0,flexBasis:"auto"})],["overflow-hidden",x({overflow:"hidden"})],["overflow-visible",x({overflow:"visible"})],["overflow-scroll",x({overflow:"scroll"})],["absolute",x({position:"absolute"})],["relative",x({position:"relative"})],["italic",x({fontStyle:"italic"})],["not-italic",x({fontStyle:"normal"})],["oldstyle-nums",r5("oldstyle-nums")],["small-caps",r5("small-caps")],["lining-nums",r5("lining-nums")],["tabular-nums",r5("tabular-nums")],["proportional-nums",r5("proportional-nums")],["font-thin",x({fontWeight:"100"})],["font-100",x({fontWeight:"100"})],["font-extralight",x({fontWeight:"200"})],["font-200",x({fontWeight:"200"})],["font-light",x({fontWeight:"300"})],["font-300",x({fontWeight:"300"})],["font-normal",x({fontWeight:"normal"})],["font-400",x({fontWeight:"400"})],["font-medium",x({fontWeight:"500"})],["font-500",x({fontWeight:"500"})],["font-semibold",x({fontWeight:"600"})],["font-600",x({fontWeight:"600"})],["font-bold",x({fontWeight:"bold"})],["font-700",x({fontWeight:"700"})],["font-extrabold",x({fontWeight:"800"})],["font-800",x({fontWeight:"800"})],["font-black",x({fontWeight:"900"})],["font-900",x({fontWeight:"900"})],["include-font-padding",x({includeFontPadding:!0})],["remove-font-padding",x({includeFontPadding:!1})],["max-w-none",x({maxWidth:"99999%"})],["text-left",x({textAlign:"left"})],["text-center",x({textAlign:"center"})],["text-right",x({textAlign:"right"})],["text-justify",x({textAlign:"justify"})],["text-auto",x({textAlign:"auto"})],["underline",x({textDecorationLine:"underline"})],["line-through",x({textDecorationLine:"line-through"})],["no-underline",x({textDecorationLine:"none"})],["uppercase",x({textTransform:"uppercase"})],["lowercase",x({textTransform:"lowercase"})],["capitalize",x({textTransform:"capitalize"})],["normal-case",x({textTransform:"none"})],["w-auto",x({width:"auto"})],["h-auto",x({height:"auto"})],["shadow-sm",x({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:0.025,elevation:1})],["shadow",x({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:1,shadowOpacity:0.075,elevation:2})],["shadow-md",x({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowRadius:3,shadowOpacity:0.125,elevation:3})],["shadow-lg",x({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:0.15,shadowRadius:8,elevation:8})],["shadow-xl",x({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:0.19,shadowRadius:20,elevation:12})],["shadow-2xl",x({shadowOffset:{width:1,height:1},shadowColor:"#000",shadowOpacity:0.25,shadowRadius:30,elevation:16})],["shadow-none",x({shadowOffset:{width:0,height:0},shadowColor:"#000",shadowRadius:0,shadowOpacity:0,elevation:0})]],FJ=aU;function r5(J){return{kind:"dependent",complete(K){(!K.fontVariant||!Array.isArray(K.fontVariant))&&(K.fontVariant=[]),K.fontVariant.push(J)}}}var tU=class{constructor(J){this.ir=new Map(FJ),this.styles=new Map,this.prefixes=new Map,this.ir=new Map([...FJ,...J??[]])}getStyle(J){return this.styles.get(J)}setStyle(J,K){this.styles.set(J,K)}getIr(J){return this.ir.get(J)}setIr(J,K){this.ir.set(J,K)}getPrefixMatch(J){return this.prefixes.get(J)}setPrefixMatch(J,K){this.prefixes.set(J,K)}};function eU(J,K,Y={}){let X=K==null?void 0:K[J];if(!X)return W5("fontSize",J,Y);if(typeof X=="string")return e5("fontSize",X);let Z={},[Q,w]=X,$=rU("fontSize",Q);if($&&(Z=$),typeof w=="string")return x(C9("lineHeight",_J(w,Z),Z));let{lineHeight:W,letterSpacing:z}=w;return W&&C9("lineHeight",_J(W,Z),Z),z&&C9("letterSpacing",z,Z),x(Z)}function _J(J,K){let Y=X1(J);if(Y){let[X,Z]=Y;if((Z===M0.none||Z===M0.em)&&typeof K.fontSize=="number")return K.fontSize*X}return J}function JA(J,K){var Y;let X=(Y=K==null?void 0:K[J])!==null&&Y!==void 0?Y:J.startsWith("[")?J.slice(1,-1):J,Z=X1(X);if(!Z)return null;let[Q,w]=Z;if(w===M0.none)return{kind:"dependent",complete(W){if(typeof W.fontSize!="number")return"relative line-height utilities require that font-size be set";W.lineHeight=W.fontSize*Q}};let $=J8(Q,w);return $!==null?x({lineHeight:$}):null}function KA(J,K,Y,X,Z){let Q="";if(X[0]==="[")Q=X.slice(1,-1);else{let z=Z==null?void 0:Z[X];if(z)Q=z;else{let H=X6(X);return H&&typeof H=="number"?IJ(H,M0.px,K,J):null}}if(Q==="auto")return _K(K,J,"auto");let w=X1(Q);if(!w)return null;let[$,W]=w;return Y&&($=-$),IJ($,W,K,J)}function IJ(J,K,Y,X){let Z=J8(J,K);return Z===null?null:_K(Y,X,Z)}function _K(J,K,Y){switch(J){case"All":return{kind:"complete",style:{[`${K}Top`]:Y,[`${K}Right`]:Y,[`${K}Bottom`]:Y,[`${K}Left`]:Y}};case"Bottom":case"Top":case"Left":case"Right":return{kind:"complete",style:{[`${K}${J}`]:Y}};case"Vertical":return{kind:"complete",style:{[`${K}Top`]:Y,[`${K}Bottom`]:Y}};case"Horizontal":return{kind:"complete",style:{[`${K}Left`]:Y,[`${K}Right`]:Y}};default:return null}}function YA(J){if(!J)return{};let K=Object.entries(J).reduce((Z,[Q,w])=>{let $=[0,1/0,0],W=typeof w=="string"?{min:w}:w,z=W.min?jJ(W.min):0;z===null?v1(`invalid screen config value: ${Q}->min: ${W.min}`):$[0]=z;let H=W.max?jJ(W.max):1/0;return H===null?v1(`invalid screen config value: ${Q}->max: ${W.max}`):$[1]=H,Z[Q]=$,Z},{}),Y=Object.values(K);Y.sort((Z,Q)=>{let[w,$]=Z,[W,z]=Q;return $===1/0||z===1/0?w-W:$-z});let X=0;return Y.forEach((Z)=>Z[2]=X++),K}function XA(J,K){let Y=K==null?void 0:K[J];if(!Y)return null;if(typeof Y=="string")return x({fontFamily:Y});let X=Y[0];return X?x({fontFamily:X}):null}function o5(J,K,Y){if(!Y)return null;let X;K.includes("/")&&([K="",X]=K.split("/",2));let Z="";if(K.startsWith("[#")||K.startsWith("[rgb")?Z=K.slice(1,-1):Z=IK(K,Y),!Z)return null;if(X){let Q=Number(X);if(!Number.isNaN(Q))return Z=RJ(Z,Q/100),x({[i8[J].color]:Z})}return{kind:"dependent",complete(Q){let w=i8[J].opacity,$=Q[w];typeof $=="number"&&(Z=RJ(Z,$)),Q[i8[J].color]=Z}}}function b8(J,K){let Y=parseInt(K,10);if(Number.isNaN(Y))return null;let X=Y/100;return{kind:"complete",style:{[i8[J].opacity]:X}}}function RJ(J,K){return J.startsWith("#")?J=QA(J):J.startsWith("rgb(")&&(J=J.replace(/^rgb\(/,"rgba(").replace(/\)$/,", 1)")),J.replace(/, ?\d*\.?(\d+)\)$/,`, ${K})`)}function ZA(J){for(let K in J)K.startsWith("__opacity_")&&delete J[K]}var i8={bg:{opacity:"__opacity_bg",color:"backgroundColor"},text:{opacity:"__opacity_text",color:"color"},border:{opacity:"__opacity_border",color:"borderColor"},borderTop:{opacity:"__opacity_border",color:"borderTopColor"},borderBottom:{opacity:"__opacity_border",color:"borderBottomColor"},borderLeft:{opacity:"__opacity_border",color:"borderLeftColor"},borderRight:{opacity:"__opacity_border",color:"borderRightColor"},shadow:{opacity:"__opacity_shadow",color:"shadowColor"},tint:{opacity:"__opacity_tint",color:"tintColor"}};function QA(J){let K=J;J=J.replace(wA,(w,$,W,z)=>$+$+W+W+z+z);let Y=WA.exec(J);if(!Y)return v1(`invalid config hex color value: ${K}`),"rgba(0, 0, 0, 1)";let X=parseInt(Y[1],16),Z=parseInt(Y[2],16),Q=parseInt(Y[3],16);return`rgba(${X}, ${Z}, ${Q}, 1)`}function IK(J,K){let Y=K[J];if(MJ(Y))return Y;if(NJ(Y)&&MJ(Y.DEFAULT))return Y.DEFAULT;let[X="",...Z]=J.split("-");for(;X!==J;){let Q=K[X];if(NJ(Q))return IK(Z.join("-"),Q);if(Z.length===0)return"";X=`${X}-${Z.shift()}`}return""}var wA=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,WA=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;function $A(J,K){let[Y,X]=FK(J);if(Y.match(/^(-?(\d)+)?$/))return zA(Y,X,K==null?void 0:K.borderWidth);if(Y=Y.replace(/^-/,""),["dashed","solid","dotted"].includes(Y))return x({borderStyle:Y});let Z="border";switch(X){case"Bottom":Z="borderBottom";break;case"Top":Z="borderTop";break;case"Left":Z="borderLeft";break;case"Right":Z="borderRight";break}let Q=o5(Z,Y,K==null?void 0:K.borderColor);if(Q)return Q;let w=`border${X==="All"?"":X}Width`;Y=Y.replace(/^-/,"");let $=Y.slice(1,-1),W=W5(w,$);return typeof(W==null?void 0:W.style[w])!="number"?null:W}function zA(J,K,Y){if(!Y)return null;J=J.replace(/^-/,"");let X=Y[J===""?"DEFAULT":J];if(X===void 0)return null;let Z=`border${K==="All"?"":K}Width`;return e5(Z,X)}function HA(J,K){if(!K)return null;let[Y,X]=FK(J);Y=Y.replace(/^-/,""),Y===""&&(Y="DEFAULT");let Z=`border${X==="All"?"":X}Radius`,Q=K[Y];if(Q)return DJ(e5(Z,Q));let w=W5(Z,Y);return typeof(w==null?void 0:w.style[Z])!="number"?null:DJ(w)}function DJ(J){if((J==null?void 0:J.kind)!=="complete")return J;let K=J.style.borderTopRadius;K!==void 0&&(J.style.borderTopLeftRadius=K,J.style.borderTopRightRadius=K,delete J.style.borderTopRadius);let Y=J.style.borderBottomRadius;Y!==void 0&&(J.style.borderBottomLeftRadius=Y,J.style.borderBottomRightRadius=Y,delete J.style.borderBottomRadius);let X=J.style.borderLeftRadius;X!==void 0&&(J.style.borderBottomLeftRadius=X,J.style.borderTopLeftRadius=X,delete J.style.borderLeftRadius);let Z=J.style.borderRightRadius;return Z!==void 0&&(J.style.borderBottomRightRadius=Z,J.style.borderTopRightRadius=Z,delete J.style.borderRightRadius),J}function n5(J,K,Y,X){let Z=null;J==="inset"&&(K=K.replace(/^(x|y)-/,($,W)=>(Z=W==="x"?"x":"y","")));let Q=X==null?void 0:X[K];if(Q){let $=w5(Q,{isNegative:Y});if($!==null)return CJ(J,Z,$)}let w=X6(K,{isNegative:Y});return w!==null?CJ(J,Z,w):null}function CJ(J,K,Y){if(J!=="inset")return x({[J]:Y});switch(K){case null:return x({top:Y,left:Y,right:Y,bottom:Y});case"y":return x({top:Y,bottom:Y});case"x":return x({left:Y,right:Y})}}function f8(J,K,Y){var X;K=K.replace(/^-/,"");let Z=K===""?"DEFAULT":K,Q=Number((X=Y==null?void 0:Y[Z])!==null&&X!==void 0?X:K);return Number.isNaN(Q)?null:x({[`flex${J}`]:Q})}function UA(J,K){var Y,X;if(J=(K==null?void 0:K[J])||J,["min-content","revert","unset"].includes(J))return null;if(J.match(/^\d+(\.\d+)?$/))return x({flexGrow:Number(J),flexBasis:"0%"});let Z=J.match(/^(\d+)\s+(\d+)$/);if(Z)return x({flexGrow:Number(Z[1]),flexShrink:Number(Z[2])});if(Z=J.match(/^(\d+)\s+([^ ]+)$/),Z){let Q=w5((Y=Z[2])!==null&&Y!==void 0?Y:"");return Q?x({flexGrow:Number(Z[1]),flexBasis:Q}):null}if(Z=J.match(/^(\d+)\s+(\d+)\s+(.+)$/),Z){let Q=w5((X=Z[3])!==null&&X!==void 0?X:"");return Q?x({flexGrow:Number(Z[1]),flexShrink:Number(Z[2]),flexBasis:Q}):null}return null}function TJ(J,K,Y={},X){let Z=X==null?void 0:X[K];return Z!==void 0?e5(J,Z,Y):W5(J,K,Y)}function m8(J,K,Y={},X){let Z=w5(X==null?void 0:X[K],Y);return Z?x({[J]:Z}):(K==="screen"&&(K=J.includes("Width")?"100vw":"100vh"),W5(J,K,Y))}function AA(J,K,Y){let X=Y==null?void 0:Y[J];if(X){let Z=X1(X,{isNegative:K});if(!Z)return null;let[Q,w]=Z;if(w===M0.em)return VA(Q);if(w===M0.percent)return v1("percentage-based letter-spacing configuration currently unsupported, switch to `em`s, or open an issue if you'd like to see support added."),null;let $=J8(Q,w,{isNegative:K});return $!==null?x({letterSpacing:$}):null}return W5("letterSpacing",J,{isNegative:K})}function VA(J){return{kind:"dependent",complete(K){let Y=K.fontSize;if(typeof Y!="number"||Number.isNaN(Y))return"tracking-X relative letter spacing classes require font-size to be set";K.letterSpacing=Math.round((J*Y+Number.EPSILON)*100)/100}}}function BA(J,K){let Y=K==null?void 0:K[J];if(Y){let Z=X1(String(Y));if(Z)return x({opacity:Z[0]})}let X=X1(J);return X?x({opacity:X[0]/100}):null}function GA(J){let K=parseInt(J,10);return Number.isNaN(K)?null:{kind:"complete",style:{shadowOpacity:K/100}}}function LA(J){if(J.includes("/")){let[Y="",X=""]=J.split("/",2),Z=T9(Y),Q=T9(X);return Z===null||Q===null?null:{kind:"complete",style:{shadowOffset:{width:Z,height:Q}}}}let K=T9(J);return K===null?null:{kind:"complete",style:{shadowOffset:{width:K,height:K}}}}function T9(J){let K=X6(J);return typeof K=="number"?K:null}var PJ=class{constructor(J,K={},Y,X,Z){var Q,w,$,W,z,H;this.config=K,this.cache=Y,this.position=0,this.isNull=!1,this.isNegative=!1,this.context={},this.context.device=X;let U=J.trim().split(":"),A=[];U.length===1?this.string=J:(this.string=(Q=U.pop())!==null&&Q!==void 0?Q:"",A=U),this.char=this.string[0];let V=YA((w=this.config.theme)===null||w===void 0?void 0:w.screens);for(let L of A)if(V[L]){let B=($=V[L])===null||$===void 0?void 0:$[2];B!==void 0&&(this.order=((W=this.order)!==null&&W!==void 0?W:0)+B);let q=(z=X.windowDimensions)===null||z===void 0?void 0:z.width;if(q){let[M,N]=(H=V[L])!==null&&H!==void 0?H:[0,0];(q<=M||q>N)&&(this.isNull=!0)}else this.isNull=!0}else uU(L)?this.isNull=L!==Z:iU(L)?X.windowDimensions?(X.windowDimensions.width>X.windowDimensions.height?"landscape":"portrait")!==L?this.isNull=!0:this.incrementOrder():this.isNull=!0:L==="retina"?X.pixelDensity===2?this.incrementOrder():this.isNull=!0:L==="dark"?X.colorScheme!=="dark"?this.isNull=!0:this.incrementOrder():this.handlePossibleArbitraryBreakpointPrefix(L)||(this.isNull=!0)}parse(){if(this.isNull)return{kind:"null"};let J=this.cache.getIr(this.rest);if(J)return J;this.parseIsNegative();let K=this.parseUtility();return K?this.order!==void 0?{kind:"ordered",order:this.order,styleIr:K}:K:{kind:"null"}}parseUtility(){var J,K,Y,X,Z;let Q=this.config.theme,w=null;switch(this.char){case"m":case"p":{let $=this.peekSlice(1,3).match(/^(t|b|r|l|x|y)?-/);if($){let W=this.char==="m"?"margin":"padding";this.advance(((K=(J=$[0])===null||J===void 0?void 0:J.length)!==null&&K!==void 0?K:0)+1);let z=EK($[1]),H=KA(W,z,this.isNegative,this.rest,(Y=this.config.theme)===null||Y===void 0?void 0:Y[W]);if(H)return H}}}if(this.consumePeeked("h-")&&(w=TJ("height",this.rest,this.context,Q==null?void 0:Q.height),w)||this.consumePeeked("w-")&&(w=TJ("width",this.rest,this.context,Q==null?void 0:Q.width),w)||this.consumePeeked("min-w-")&&(w=m8("minWidth",this.rest,this.context,Q==null?void 0:Q.minWidth),w)||this.consumePeeked("min-h-")&&(w=m8("minHeight",this.rest,this.context,Q==null?void 0:Q.minHeight),w)||this.consumePeeked("max-w-")&&(w=m8("maxWidth",this.rest,this.context,Q==null?void 0:Q.maxWidth),w)||this.consumePeeked("max-h-")&&(w=m8("maxHeight",this.rest,this.context,Q==null?void 0:Q.maxHeight),w)||this.consumePeeked("leading-")&&(w=JA(this.rest,Q==null?void 0:Q.lineHeight),w)||this.consumePeeked("text-")&&(w=eU(this.rest,Q==null?void 0:Q.fontSize,this.context),w||(w=o5("text",this.rest,Q==null?void 0:Q.textColor),w)||this.consumePeeked("opacity-")&&(w=b8("text",this.rest),w))||this.consumePeeked("font-")&&(w=XA(this.rest,Q==null?void 0:Q.fontFamily),w)||this.consumePeeked("aspect-")&&(this.consumePeeked("ratio-")&&v1("`aspect-ratio-{ratio}` is deprecated, use `aspect-{ratio}` instead"),w=e5("aspectRatio",this.rest,{fractions:!0}),w)||this.consumePeeked("tint-")&&(w=o5("tint",this.rest,Q==null?void 0:Q.colors),w)||this.consumePeeked("bg-")&&(w=o5("bg",this.rest,Q==null?void 0:Q.backgroundColor),w||this.consumePeeked("opacity-")&&(w=b8("bg",this.rest),w))||this.consumePeeked("border")&&(w=$A(this.rest,Q),w||this.consumePeeked("-opacity-")&&(w=b8("border",this.rest),w))||this.consumePeeked("rounded")&&(w=HA(this.rest,Q==null?void 0:Q.borderRadius),w)||this.consumePeeked("bottom-")&&(w=n5("bottom",this.rest,this.isNegative,Q==null?void 0:Q.inset),w)||this.consumePeeked("top-")&&(w=n5("top",this.rest,this.isNegative,Q==null?void 0:Q.inset),w)||this.consumePeeked("left-")&&(w=n5("left",this.rest,this.isNegative,Q==null?void 0:Q.inset),w)||this.consumePeeked("right-")&&(w=n5("right",this.rest,this.isNegative,Q==null?void 0:Q.inset),w)||this.consumePeeked("inset-")&&(w=n5("inset",this.rest,this.isNegative,Q==null?void 0:Q.inset),w)||this.consumePeeked("flex-")&&(this.consumePeeked("grow")?w=f8("Grow",this.rest,Q==null?void 0:Q.flexGrow):this.consumePeeked("shrink")?w=f8("Shrink",this.rest,Q==null?void 0:Q.flexShrink):w=UA(this.rest,Q==null?void 0:Q.flex),w)||this.consumePeeked("grow")&&(w=f8("Grow",this.rest,Q==null?void 0:Q.flexGrow),w)||this.consumePeeked("shrink")&&(w=f8("Shrink",this.rest,Q==null?void 0:Q.flexShrink),w)||this.consumePeeked("shadow-color-opacity-")&&(w=b8("shadow",this.rest),w)||this.consumePeeked("shadow-opacity-")&&(w=GA(this.rest),w)||this.consumePeeked("shadow-offset-")&&(w=LA(this.rest),w)||this.consumePeeked("shadow-radius-")&&(w=W5("shadowRadius",this.rest),w)||this.consumePeeked("shadow-")&&(w=o5("shadow",this.rest,Q==null?void 0:Q.colors),w))return w;if(this.consumePeeked("elevation-")){let $=parseInt(this.rest,10);if(!Number.isNaN($))return x({elevation:$})}if(this.consumePeeked("opacity-")&&(w=BA(this.rest,Q==null?void 0:Q.opacity),w)||this.consumePeeked("tracking-")&&(w=AA(this.rest,this.isNegative,Q==null?void 0:Q.letterSpacing),w))return w;if(this.consumePeeked("z-")){let $=Number((Z=(X=Q==null?void 0:Q.zIndex)===null||X===void 0?void 0:X[this.rest])!==null&&Z!==void 0?Z:this.rest);if(!Number.isNaN($))return x({zIndex:$})}return v1(`\`${this.rest}\` unknown or invalid utility`),null}handlePossibleArbitraryBreakpointPrefix(J){var K;if(J[0]!=="m")return!1;let Y=J.match(/^(min|max)-(w|h)-\[([^\]]+)\]$/);if(!Y)return!1;if(!(!((K=this.context.device)===null||K===void 0)&&K.windowDimensions))return this.isNull=!0,!0;let X=this.context.device.windowDimensions,[,Z="",Q="",w=""]=Y,$=Q==="w"?X.width:X.height,W=X1(w,this.context);if(W===null)return this.isNull=!0,!0;let[z,H]=W;return H!=="px"&&(this.isNull=!0),(Z==="min"?$>=z:$<=z)?this.incrementOrder():this.isNull=!0,!0}advance(J=1){this.position+=J,this.char=this.string[this.position]}get rest(){return this.peekSlice(0,this.string.length)}peekSlice(J,K){return this.string.slice(this.position+J,this.position+K)}consumePeeked(J){return this.peekSlice(0,J.length)===J?(this.advance(J.length),!0):!1}parseIsNegative(){this.char==="-"&&(this.advance(),this.isNegative=!0,this.context.isNegative=!0)}incrementOrder(){var J;this.order=((J=this.order)!==null&&J!==void 0?J:0)+1}};function qA(J){let K=[],Y=null;return J.forEach((X)=>{if(typeof X=="string")K=[...K,...P9(X)];else if(Array.isArray(X))K=[...K,...X.flatMap(P9)];else if(typeof X=="object"&&X!==null)for(let[Z,Q]of Object.entries(X))typeof Q=="boolean"?K=[...K,...Q?P9(Z):[]]:Y?Y[Z]=Q:Y={[Z]:Q}}),[K.filter(Boolean).filter(OA),Y]}function P9(J){return J.trim().split(/\s+/)}function OA(J,K,Y){return Y.indexOf(J)===K}function MA(J){var K;return(K=J==null?void 0:J.reduce((Y,X)=>({...Y,...NA(X.handler)}),{}))!==null&&K!==void 0?K:{}}function NA(J){let K={};return J({addUtilities:(Y)=>{K=Y},...jA}),K}function I1(J){throw Error(`tailwindcss plugin function argument object prop "${J}" not implemented`)}var jA={addComponents:I1,addBase:I1,addVariant:I1,e:I1,prefix:I1,theme:I1,variants:I1,config:I1,corePlugins:I1,matchUtilities:I1,postcss:null};function EA(J,K){let Y=(0,lU.default)(FA(J)),X={},Z=MA(Y.plugins),Q={},w=Object.entries(Z).map(([L,B])=>typeof B=="string"?(Q[L]=B,[L,{kind:"null"}]):[L,x(B)]).filter(([,L])=>L.kind!=="null");function $(){return[X.windowDimensions?`w${X.windowDimensions.width}`:!1,X.windowDimensions?`h${X.windowDimensions.height}`:!1,X.fontScale?`fs${X.fontScale}`:!1,X.colorScheme==="dark"?"dark":!1,X.pixelDensity===2?"retina":!1].filter(Boolean).join("--")||"default"}let W=$(),z={};function H(){let L=z[W];if(L)return L;let B=new tU(w);return z[W]=B,B}function U(...L){let B=H(),q={},M=[],N=[],[E,I]=qA(L),F=E.join(" "),j=B.getStyle(F);if(j)return{...j,...I||{}};for(let C of E){let R=B.getIr(C);if(!R&&C in Q){let T=U(Q[C]);B.setIr(C,x(T)),q={...q,...T};continue}switch(R=new PJ(C,Y,B,X,K).parse(),R.kind){case"complete":q={...q,...R.style},B.setIr(C,R);break;case"dependent":M.push(R);break;case"ordered":N.push(R);break;case"null":B.setIr(C,R);break}}if(N.length>0){N.sort((C,R)=>C.order-R.order);for(let C of N)switch(C.styleIr.kind){case"complete":q={...q,...C.styleIr.style};break;case"dependent":M.push(C.styleIr);break}}if(M.length>0){for(let C of M){let R=C.complete(q);R&&v1(R)}ZA(q)}return F!==""&&B.setStyle(F,q),I&&(q={...q,...I}),q}function A(L){let B=U(L.split(/\s+/g).map((q)=>q.replace(/^(bg|text|border)-/,"")).map((q)=>`bg-${q}`).join(" "));return typeof B.backgroundColor=="string"?B.backgroundColor:void 0}let V=(L,...B)=>{let q="";return L.forEach((M,N)=>{var E;q+=M+((E=B[N])!==null&&E!==void 0?E:"")}),U(q)};return V.style=U,V.color=A,V.prefixMatch=(...L)=>{let B=L.sort().join(":"),q=H(),M=q.getPrefixMatch(B);if(M!==void 0)return M;let N=new PJ(`${B}:flex`,Y,q,X,K).parse().kind!=="null";return q.setPrefixMatch(B,N),N},V.setWindowDimensions=(L)=>{X.windowDimensions=L,W=$()},V.setFontScale=(L)=>{X.fontScale=L,W=$()},V.setPixelDensity=(L)=>{X.pixelDensity=L,W=$()},V.setColorScheme=(L)=>{X.colorScheme=L,W=$()},V}function FA(J){return{...J,content:["_no_warnings_please"]}}var _A={handler:({addUtilities:J})=>{J({"shadow-sm":{boxShadow:"0 1px 2px 0 rgb(0 0 0 / 0.05)"},shadow:{boxShadow:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)"},"shadow-md":{boxShadow:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)"},"shadow-lg":{boxShadow:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)"},"shadow-xl":{boxShadow:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)"},"shadow-2xl":{boxShadow:"0 25px 50px -12px rgb(0 0 0 / 0.25)"},"shadow-inner":{boxShadow:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)"},"shadow-none":{boxShadow:"0 0 #0000"}})}};function IA(J){return EA({...J,plugins:[...(J==null?void 0:J.plugins)??[],_A]},"web")}var c8;function RA({width:J,height:K,config:Y}){return c8||(c8=IA(Y)),c8.setWindowDimensions({width:+J,height:+K}),c8}var S9=new WeakMap;async function RK(J,K){let Y=await t8();if(!Y||!Y.Node)throw Error("Satori is not initialized: expect `yoga` to be loaded, got "+Y);K.fonts=K.fonts||[];let X;S9.has(K.fonts)?X=S9.get(K.fonts):S9.set(K.fonts,X=new fU(K.fonts));let Z="width"in K?K.width:void 0,Q="height"in K?K.height:void 0,w=Y.Node.create();Z&&w.setWidth(Z),Q&&w.setHeight(Q),w.setFlexDirection(Y.FLEX_DIRECTION_ROW),w.setFlexWrap(Y.WRAP_WRAP),w.setAlignContent(Y.ALIGN_AUTO),w.setAlignItems(Y.ALIGN_FLEX_START),w.setJustifyContent(Y.JUSTIFY_FLEX_START),w.setOverflow(Y.OVERFLOW_HIDDEN);let $={...K.graphemeImages},W=new Set;n1.clear(),u8.clear(),await SH(J);let z=b9(J,{id:"id",parentStyle:{},inheritedStyle:{fontSize:16,fontWeight:"normal",fontFamily:"serif",fontStyle:"normal",lineHeight:"normal",color:"black",opacity:1,whiteSpace:"normal",_viewportWidth:Z,_viewportHeight:Q},parent:w,font:X,embedFont:K.embedFont,debug:K.debug,graphemeImages:$,canLoadAdditionalAssets:!!K.loadAdditionalAsset,onNodeDetected:K.onNodeDetected,getTwStyles:(L,B)=>{let q={...RA({width:Z,height:Q,config:K.tailwindConfig})([L])};return typeof q.lineHeight=="number"&&(q.lineHeight=q.lineHeight/(+q.fontSize||B.fontSize||16)),q.shadowColor&&q.boxShadow&&(q.boxShadow=q.boxShadow.replace(/rgba?\([^)]+\)/,q.shadowColor)),q}}),H=(await z.next()).value;if(K.loadAdditionalAsset&&H.length){let L=DA(H),B=[],q={};await Promise.all(Object.entries(L).flatMap(([M,N])=>N.map((E)=>{let I=`${M}_${E}`;return W.has(I)?null:(W.add(I),K.loadAdditionalAsset(M,E).then((F)=>{typeof F=="string"?q[E]=F:F&&(Array.isArray(F)?B.push(...F):B.push(F))}))}))),X.addFonts(B),Object.assign($,q)}await z.next(),w.calculateLayout(Z,Q,Y.DIRECTION_LTR);let U=(await z.next([0,0])).value,A=w.getComputedWidth(),V=w.getComputedHeight();return w.freeRecursive(),cU({width:A,height:V,content:U})}function DA(J){let K={},Y={};for(let{word:X,locale:Z}of J){let Q=gU(X,Z).join("|");Y[Q]=Y[Q]||"",Y[Q]+=X}return Object.keys(Y).forEach((X)=>{K[X]=K[X]||[],X==="emoji"?K[X].push(...SJ(L1(Y[X],"grapheme"))):(K[X][0]=K[X][0]||"",K[X][0]+=SJ(L1(Y[X],"grapheme",X==="unknown"?void 0:X)).join(""))}),K}function SJ(J){return Array.from(new Set(J))}import yA from"sharp";function t9(J){return J.replace(/\([^)]*\)/g,"").replace(/\/\//g,"/")}function Z6(J){let K={};for(let[Y,X]of Object.entries(J))if("run"in X){let Z=X;if("children"in Z){let Q=new Z.children,w=Z6(Q.routes);for(let[$,{exec:W,middleware:z}]of Object.entries(w)){let H=Y==="/"?$:`${Y}${$}`,U=$==="/"&&Y!=="/"?Y:H,A=(V)=>Z.run.call(Z,V,Y);K[t9(U)]={exec:[A,...W],middleware:[...Z.middlewares,...z],viewPath:Z.viewPath}}}else{let Q=(w)=>Z.run.call(Z,w,Y);K[t9(Y)]={exec:[Q],middleware:Z.middlewares,viewPath:Z.viewPath}}}else{let Z=new X,Q=Z6(Z.routes);for(let[w,{exec:$,middleware:W,viewPath:z}]of Object.entries(Q)){let H=Y==="/"?w:`${Y}${w}`,U=w==="/"&&Y!=="/"?Y:H;K[t9(U)]={exec:$,middleware:[...Z.middlewares,...W],viewPath:z}}}return Object.fromEntries(Object.entries(K).sort(([Y],[X])=>{let Z=Y.split("/").length+Y.split(":").length,Q=X.split("/").length+X.split(":").length;return Z-Q}))}import{renderToReadableStream as L4}from"react-dom/server.browser";import{createElement as Y8,Fragment as kA}from"react";var CA=Object.defineProperty,e=(J,K)=>CA(J,"name",{value:K,configurable:!0}),_5=class{type=3;name="";prefix="";value="";suffix="";modifier=3;constructor(J,K,Y,X,Z,Q){this.type=J,this.name=K,this.prefix=Y,this.value=X,this.suffix=Z,this.modifier=Q}hasCustomName(){return this.name!==""&&typeof this.name!="number"}};e(_5,"Part");var TA=/[$_\p{ID_Start}]/u,PA=/[$_\u200C\u200D\p{ID_Continue}]/u,J4=".*";function DK(J,K){return(K?/^[\x00-\xFF]*$/:/^[\x00-\x7F]*$/).test(J)}e(DK,"isASCII");function X4(J,K=!1){let Y=[],X=0;for(;X<J.length;){let Z=J[X],Q=e(function(w){if(!K)throw TypeError(w);Y.push({type:"INVALID_CHAR",index:X,value:J[X++]})},"ErrorOrInvalid");if(Z==="*"){Y.push({type:"ASTERISK",index:X,value:J[X++]});continue}if(Z==="+"||Z==="?"){Y.push({type:"OTHER_MODIFIER",index:X,value:J[X++]});continue}if(Z==="\\"){Y.push({type:"ESCAPED_CHAR",index:X++,value:J[X++]});continue}if(Z==="{"){Y.push({type:"OPEN",index:X,value:J[X++]});continue}if(Z==="}"){Y.push({type:"CLOSE",index:X,value:J[X++]});continue}if(Z===":"){let w="",$=X+1;for(;$<J.length;){let W=J.substr($,1);if($===X+1&&TA.test(W)||$!==X+1&&PA.test(W)){w+=J[$++];continue}break}if(!w){Q(`Missing parameter name at ${X}`);continue}Y.push({type:"NAME",index:X,value:w}),X=$;continue}if(Z==="("){let w=1,$="",W=X+1,z=!1;if(J[W]==="?"){Q(`Pattern cannot start with "?" at ${W}`);continue}for(;W<J.length;){if(!DK(J[W],!1)){Q(`Invalid character '${J[W]}' at ${W}.`),z=!0;break}if(J[W]==="\\"){$+=J[W++]+J[W++];continue}if(J[W]===")"){if(w--,w===0){W++;break}}else if(J[W]==="("&&(w++,J[W+1]!=="?")){Q(`Capturing groups are not allowed at ${W}`),z=!0;break}$+=J[W++]}if(z)continue;if(w){Q(`Unbalanced pattern at ${X}`);continue}if(!$){Q(`Missing pattern at ${X}`);continue}Y.push({type:"REGEX",index:X,value:$}),X=W;continue}Y.push({type:"CHAR",index:X,value:J[X++]})}return Y.push({type:"END",index:X,value:""}),Y}e(X4,"lexer");function Z4(J,K={}){let Y=X4(J);K.delimiter??="/#?",K.prefixes??="./";let X=`[^${a0(K.delimiter)}]+?`,Z=[],Q=0,w=0,$="",W=new Set,z=e((E)=>{if(w<Y.length&&Y[w].type===E)return Y[w++].value},"tryConsume"),H=e(()=>z("OTHER_MODIFIER")??z("ASTERISK"),"tryConsumeModifier"),U=e((E)=>{let I=z(E);if(I!==void 0)return I;let{type:F,index:j}=Y[w];throw TypeError(`Unexpected ${F} at ${j}, expected ${E}`)},"mustConsume"),A=e(()=>{let E="",I;for(;I=z("CHAR")??z("ESCAPED_CHAR");)E+=I;return E},"consumeText"),V=e((E)=>E,"DefaultEncodePart"),L=K.encodePart||V,B="",q=e((E)=>{B+=E},"appendToPendingFixedValue"),M=e(()=>{B.length&&(Z.push(new _5(3,"","",L(B),"",3)),B="")},"maybeAddPartFromPendingFixedValue"),N=e((E,I,F,j,C)=>{let R=3;switch(C){case"?":R=1;break;case"*":R=0;break;case"+":R=2;break}if(!I&&!F&&R===3){q(E);return}if(M(),!I&&!F){if(!E)return;Z.push(new _5(3,"","",L(E),"",R));return}let T;F?F==="*"?T=J4:T=F:T=X;let k=2;T===X?(k=1,T=""):T===J4&&(k=0,T="");let d;if(I?d=I:F&&(d=Q++),W.has(d))throw TypeError(`Duplicate name '${d}'.`);W.add(d),Z.push(new _5(k,d,L(E),T,L(j),R))},"addPart");for(;w<Y.length;){let E=z("CHAR"),I=z("NAME"),F=z("REGEX");if(!I&&!F&&(F=z("ASTERISK")),I||F){let C=E??"";K.prefixes.indexOf(C)===-1&&(q(C),C=""),M();let R=H();N(C,I,F,"",R);continue}let j=E??z("ESCAPED_CHAR");if(j){q(j);continue}if(z("OPEN")){let C=A(),R=z("NAME"),T=z("REGEX");!R&&!T&&(T=z("ASTERISK"));let k=A();U("CLOSE");let d=H();N(C,R,T,k,d);continue}M(),U("END")}return Z}e(Z4,"parse");function a0(J){return J.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}e(a0,"escapeString");function K4(J){return J&&J.ignoreCase?"ui":"u"}e(K4,"flags");function CK(J,K,Y){return Q4(Z4(J,Y),K,Y)}e(CK,"stringToRegexp");function $5(J){switch(J){case 0:return"*";case 1:return"?";case 2:return"+";case 3:return""}}e($5,"modifierToString");function Q4(J,K,Y={}){Y.delimiter??="/#?",Y.prefixes??="./",Y.sensitive??=!1,Y.strict??=!1,Y.end??=!0,Y.start??=!0,Y.endsWith="";let X=Y.start?"^":"";for(let $ of J){if($.type===3){$.modifier===3?X+=a0($.value):X+=`(?:${a0($.value)})${$5($.modifier)}`;continue}K&&K.push($.name);let W=`[^${a0(Y.delimiter)}]+?`,z=$.value;if($.type===1?z=W:$.type===0&&(z=J4),!$.prefix.length&&!$.suffix.length){$.modifier===3||$.modifier===1?X+=`(${z})${$5($.modifier)}`:X+=`((?:${z})${$5($.modifier)})`;continue}if($.modifier===3||$.modifier===1){X+=`(?:${a0($.prefix)}(${z})${a0($.suffix)})`,X+=$5($.modifier);continue}X+=`(?:${a0($.prefix)}`,X+=`((?:${z})(?:`,X+=a0($.suffix),X+=a0($.prefix),X+=`(?:${z}))*)${a0($.suffix)})`,$.modifier===0&&(X+="?")}let Z=`[${a0(Y.endsWith)}]|$`,Q=`[${a0(Y.delimiter)}]`;if(Y.end)return Y.strict||(X+=`${Q}?`),Y.endsWith.length?X+=`(?=${Z})`:X+="$",new RegExp(X,K4(Y));Y.strict||(X+=`(?:${Q}(?=${Z}))?`);let w=!1;if(J.length){let $=J[J.length-1];$.type===3&&$.modifier===3&&(w=Y.delimiter.indexOf($)>-1)}return w||(X+=`(?=${Q}|${Z})`),new RegExp(X,K4(Y))}e(Q4,"partsToRegexp");var a1={delimiter:"",prefixes:"",sensitive:!0,strict:!0},SA={delimiter:".",prefixes:"",sensitive:!0,strict:!0},vA={delimiter:"/",prefixes:"/",sensitive:!0,strict:!0};function TK(J,K){return J.length?J[0]==="/"?!0:!K||J.length<2?!1:(J[0]=="\\"||J[0]=="{")&&J[1]=="/":!1}e(TK,"isAbsolutePathname");function w4(J,K){return J.startsWith(K)?J.substring(K.length,J.length):J}e(w4,"maybeStripPrefix");function PK(J,K){return J.endsWith(K)?J.substr(0,J.length-K.length):J}e(PK,"maybeStripSuffix");function W4(J){return!J||J.length<2?!1:J[0]==="["||(J[0]==="\\"||J[0]==="{")&&J[1]==="["}e(W4,"treatAsIPv6Hostname");var SK=["ftp","file","http","https","ws","wss"];function $4(J){if(!J)return!0;for(let K of SK)if(J.test(K))return!0;return!1}e($4,"isSpecialScheme");function vK(J,K){if(J=w4(J,"#"),K||J==="")return J;let Y=new URL("https://example.com");return Y.hash=J,Y.hash?Y.hash.substring(1,Y.hash.length):""}e(vK,"canonicalizeHash");function hK(J,K){if(J=w4(J,"?"),K||J==="")return J;let Y=new URL("https://example.com");return Y.search=J,Y.search?Y.search.substring(1,Y.search.length):""}e(hK,"canonicalizeSearch");function yK(J,K){return K||J===""?J:W4(J)?U4(J):H4(J)}e(yK,"canonicalizeHostname");function kK(J,K){if(K||J==="")return J;let Y=new URL("https://example.com");return Y.password=J,Y.password}e(kK,"canonicalizePassword");function gK(J,K){if(K||J==="")return J;let Y=new URL("https://example.com");return Y.username=J,Y.username}e(gK,"canonicalizeUsername");function xK(J,K,Y){if(Y||J==="")return J;if(K&&!SK.includes(K))return new URL(`${K}:${J}`).pathname;let X=J[0]=="/";return J=new URL(X?J:"/-"+J,"https://example.com").pathname,X||(J=J.substring(2,J.length)),J}e(xK,"canonicalizePathname");function bK(J,K,Y){return z4(K)===J&&(J=""),Y||J===""?J:A4(J)}e(bK,"canonicalizePort");function fK(J,K){return J=PK(J,":"),K||J===""?J:Q6(J)}e(fK,"canonicalizeProtocol");function z4(J){switch(J){case"ws":case"http":return"80";case"wws":case"https":return"443";case"ftp":return"21";default:return""}}e(z4,"defaultPortForProtocol");function Q6(J){if(J==="")return J;if(/^[-+.A-Za-z0-9]*$/.test(J))return J.toLowerCase();throw TypeError(`Invalid protocol '${J}'.`)}e(Q6,"protocolEncodeCallback");function mK(J){if(J==="")return J;let K=new URL("https://example.com");return K.username=J,K.username}e(mK,"usernameEncodeCallback");function cK(J){if(J==="")return J;let K=new URL("https://example.com");return K.password=J,K.password}e(cK,"passwordEncodeCallback");function H4(J){if(J==="")return J;if(/[\t\n\r #%/:<>?@[\]^\\|]/g.test(J))throw TypeError(`Invalid hostname '${J}'`);let K=new URL("https://example.com");return K.hostname=J,K.hostname}e(H4,"hostnameEncodeCallback");function U4(J){if(J==="")return J;if(/[^0-9a-fA-F[\]:]/g.test(J))throw TypeError(`Invalid IPv6 hostname '${J}'`);return J.toLowerCase()}e(U4,"ipv6HostnameEncodeCallback");function A4(J){if(J===""||/^[0-9]*$/.test(J)&&parseInt(J)<=65535)return J;throw TypeError(`Invalid port '${J}'.`)}e(A4,"portEncodeCallback");function lK(J){if(J==="")return J;let K=new URL("https://example.com");return K.pathname=J[0]!=="/"?"/-"+J:J,J[0]!=="/"?K.pathname.substring(2,K.pathname.length):K.pathname}e(lK,"standardURLPathnameEncodeCallback");function dK(J){return J===""?J:new URL(`data:${J}`).pathname}e(dK,"pathURLPathnameEncodeCallback");function uK(J){if(J==="")return J;let K=new URL("https://example.com");return K.search=J,K.search.substring(1,K.search.length)}e(uK,"searchEncodeCallback");function pK(J){if(J==="")return J;let K=new URL("https://example.com");return K.hash=J,K.hash.substring(1,K.hash.length)}e(pK,"hashEncodeCallback");var iK=class{#Q;#X=[];#K={};#J=0;#Z=1;#z=0;#W=0;#V=0;#B=0;#G=!1;constructor(J){this.#Q=J}get result(){return this.#K}parse(){for(this.#X=X4(this.#Q,!0);this.#J<this.#X.length;this.#J+=this.#Z){if(this.#Z=1,this.#X[this.#J].type==="END"){if(this.#W===0){this.#M(),this.#H()?this.#Y(9,1):this.#U()?this.#Y(8,1):this.#Y(7,0);continue}else if(this.#W===2){this.#A(5);continue}this.#Y(10,0);break}if(this.#V>0)if(this.#R())this.#V-=1;else continue;if(this.#I()){this.#V+=1;continue}switch(this.#W){case 0:this.#N()&&this.#A(1);break;case 1:if(this.#N()){this.#T();let J=7,K=1;this.#E()?(J=2,K=3):this.#G&&(J=2),this.#Y(J,K)}break;case 2:this.#q()?this.#A(3):(this.#O()||this.#U()||this.#H())&&this.#A(5);break;case 3:this.#F()?this.#Y(4,1):this.#q()&&this.#Y(5,1);break;case 4:this.#q()&&this.#Y(5,1);break;case 5:this.#D()?this.#B+=1:this.#C()&&(this.#B-=1),this.#_()&&!this.#B?this.#Y(6,1):this.#O()?this.#Y(7,0):this.#U()?this.#Y(8,1):this.#H()&&this.#Y(9,1);break;case 6:this.#O()?this.#Y(7,0):this.#U()?this.#Y(8,1):this.#H()&&this.#Y(9,1);break;case 7:this.#U()?this.#Y(8,1):this.#H()&&this.#Y(9,1);break;case 8:this.#H()&&this.#Y(9,1);break;case 9:break;case 10:break}}this.#K.hostname!==void 0&&this.#K.port===void 0&&(this.#K.port="")}#Y(J,K){switch(this.#W){case 0:break;case 1:this.#K.protocol=this.#$();break;case 2:break;case 3:this.#K.username=this.#$();break;case 4:this.#K.password=this.#$();break;case 5:this.#K.hostname=this.#$();break;case 6:this.#K.port=this.#$();break;case 7:this.#K.pathname=this.#$();break;case 8:this.#K.search=this.#$();break;case 9:this.#K.hash=this.#$();break;case 10:break}this.#W!==0&&J!==10&&([1,2,3,4].includes(this.#W)&&[6,7,8,9].includes(J)&&(this.#K.hostname??=""),[1,2,3,4,5,6].includes(this.#W)&&[8,9].includes(J)&&(this.#K.pathname??=this.#G?"/":""),[1,2,3,4,5,6,7].includes(this.#W)&&J===9&&(this.#K.search??="")),this.#j(J,K)}#j(J,K){this.#W=J,this.#z=this.#J+K,this.#J+=K,this.#Z=0}#M(){this.#J=this.#z,this.#Z=0}#A(J){this.#M(),this.#W=J}#L(J){return J<0&&(J=this.#X.length-J),J<this.#X.length?this.#X[J]:this.#X[this.#X.length-1]}#w(J,K){let Y=this.#L(J);return Y.value===K&&(Y.type==="CHAR"||Y.type==="ESCAPED_CHAR"||Y.type==="INVALID_CHAR")}#N(){return this.#w(this.#J,":")}#E(){return this.#w(this.#J+1,"/")&&this.#w(this.#J+2,"/")}#q(){return this.#w(this.#J,"@")}#F(){return this.#w(this.#J,":")}#_(){return this.#w(this.#J,":")}#O(){return this.#w(this.#J,"/")}#U(){if(this.#w(this.#J,"?"))return!0;if(this.#X[this.#J].value!=="?")return!1;let J=this.#L(this.#J-1);return J.type!=="NAME"&&J.type!=="REGEX"&&J.type!=="CLOSE"&&J.type!=="ASTERISK"}#H(){return this.#w(this.#J,"#")}#I(){return this.#X[this.#J].type=="OPEN"}#R(){return this.#X[this.#J].type=="CLOSE"}#D(){return this.#w(this.#J,"[")}#C(){return this.#w(this.#J,"]")}#$(){let J=this.#X[this.#J],K=this.#L(this.#z).index;return this.#Q.substring(K,J.index)}#T(){let J={};Object.assign(J,a1),J.encodePart=Q6;let K=CK(this.#$(),void 0,J);this.#G=$4(K)}};e(iK,"Parser");var e9=["protocol","username","password","hostname","port","pathname","search","hash"],s1="*";function Y4(J,K){if(typeof J!="string")throw TypeError("parameter 1 is not of type 'string'.");let Y=new URL(J,K);return{protocol:Y.protocol.substring(0,Y.protocol.length-1),username:Y.username,password:Y.password,hostname:Y.hostname,port:Y.port,pathname:Y.pathname,search:Y.search!==""?Y.search.substring(1,Y.search.length):void 0,hash:Y.hash!==""?Y.hash.substring(1,Y.hash.length):void 0}}e(Y4,"extractValues");function R1(J,K){return K?F5(J):J}e(R1,"processBaseURLString");function E5(J,K,Y){let X;if(typeof K.baseURL=="string")try{X=new URL(K.baseURL),K.protocol===void 0&&(J.protocol=R1(X.protocol.substring(0,X.protocol.length-1),Y)),!Y&&K.protocol===void 0&&K.hostname===void 0&&K.port===void 0&&K.username===void 0&&(J.username=R1(X.username,Y)),!Y&&K.protocol===void 0&&K.hostname===void 0&&K.port===void 0&&K.username===void 0&&K.password===void 0&&(J.password=R1(X.password,Y)),K.protocol===void 0&&K.hostname===void 0&&(J.hostname=R1(X.hostname,Y)),K.protocol===void 0&&K.hostname===void 0&&K.port===void 0&&(J.port=R1(X.port,Y)),K.protocol===void 0&&K.hostname===void 0&&K.port===void 0&&K.pathname===void 0&&(J.pathname=R1(X.pathname,Y)),K.protocol===void 0&&K.hostname===void 0&&K.port===void 0&&K.pathname===void 0&&K.search===void 0&&(J.search=R1(X.search.substring(1,X.search.length),Y)),K.protocol===void 0&&K.hostname===void 0&&K.port===void 0&&K.pathname===void 0&&K.search===void 0&&K.hash===void 0&&(J.hash=R1(X.hash.substring(1,X.hash.length),Y))}catch{throw TypeError(`invalid baseURL '${K.baseURL}'.`)}if(typeof K.protocol=="string"&&(J.protocol=fK(K.protocol,Y)),typeof K.username=="string"&&(J.username=gK(K.username,Y)),typeof K.password=="string"&&(J.password=kK(K.password,Y)),typeof K.hostname=="string"&&(J.hostname=yK(K.hostname,Y)),typeof K.port=="string"&&(J.port=bK(K.port,J.protocol,Y)),typeof K.pathname=="string"){if(J.pathname=K.pathname,X&&!TK(J.pathname,Y)){let Z=X.pathname.lastIndexOf("/");Z>=0&&(J.pathname=R1(X.pathname.substring(0,Z+1),Y)+J.pathname)}J.pathname=xK(J.pathname,J.protocol,Y)}return typeof K.search=="string"&&(J.search=hK(K.search,Y)),typeof K.hash=="string"&&(J.hash=vK(K.hash,Y)),J}e(E5,"applyInit");function F5(J){return J.replace(/([+*?:{}()\\])/g,"\\$1")}e(F5,"escapePatternString");function rK(J){return J.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}e(rK,"escapeRegexpString");function nK(J,K){K.delimiter??="/#?",K.prefixes??="./",K.sensitive??=!1,K.strict??=!1,K.end??=!0,K.start??=!0,K.endsWith="";let Y=".*",X=`[^${rK(K.delimiter)}]+?`,Z=/[$_\u200C\u200D\p{ID_Continue}]/u,Q="";for(let w=0;w<J.length;++w){let $=J[w];if($.type===3){if($.modifier===3){Q+=F5($.value);continue}Q+=`{${F5($.value)}}${$5($.modifier)}`;continue}let W=$.hasCustomName(),z=!!$.suffix.length||!!$.prefix.length&&($.prefix.length!==1||!K.prefixes.includes($.prefix)),H=w>0?J[w-1]:null,U=w<J.length-1?J[w+1]:null;if(!z&&W&&$.type===1&&$.modifier===3&&U&&!U.prefix.length&&!U.suffix.length)if(U.type===3){let A=U.value.length>0?U.value[0]:"";z=Z.test(A)}else z=!U.hasCustomName();if(!z&&!$.prefix.length&&H&&H.type===3){let A=H.value[H.value.length-1];z=K.prefixes.includes(A)}z&&(Q+="{"),Q+=F5($.prefix),W&&(Q+=`:${$.name}`),$.type===2?Q+=`(${$.value})`:$.type===1?W||(Q+=`(${X})`):$.type===0&&(!W&&(!H||H.type===3||H.modifier!==3||z||$.prefix!=="")?Q+="*":Q+=`(${Y})`),$.type===1&&W&&$.suffix.length&&Z.test($.suffix[0])&&(Q+="\\"),Q+=F5($.suffix),z&&(Q+="}"),$.modifier!==3&&(Q+=$5($.modifier))}return Q}e(nK,"partsToPattern");var V4=class{#Q;#X={};#K={};#J={};#Z={};#z=!1;constructor(J={},K,Y){try{let X;if(typeof K=="string"?X=K:Y=K,typeof J=="string"){let $=new iK(J);if($.parse(),J=$.result,X===void 0&&typeof J.protocol!="string")throw TypeError("A base URL must be provided for a relative constructor string.");J.baseURL=X}else{if(!J||typeof J!="object")throw TypeError("parameter 1 is not of type 'string' and cannot convert to dictionary.");if(X)throw TypeError("parameter 1 is not of type 'string'.")}typeof Y>"u"&&(Y={ignoreCase:!1});let Z={ignoreCase:Y.ignoreCase===!0},Q={pathname:s1,protocol:s1,username:s1,password:s1,hostname:s1,port:s1,search:s1,hash:s1};this.#Q=E5(Q,J,!0),z4(this.#Q.protocol)===this.#Q.port&&(this.#Q.port="");let w;for(w of e9){if(!(w in this.#Q))continue;let $={},W=this.#Q[w];switch(this.#K[w]=[],w){case"protocol":Object.assign($,a1),$.encodePart=Q6;break;case"username":Object.assign($,a1),$.encodePart=mK;break;case"password":Object.assign($,a1),$.encodePart=cK;break;case"hostname":Object.assign($,SA),W4(W)?$.encodePart=U4:$.encodePart=H4;break;case"port":Object.assign($,a1),$.encodePart=A4;break;case"pathname":$4(this.#X.protocol)?(Object.assign($,vA,Z),$.encodePart=lK):(Object.assign($,a1,Z),$.encodePart=dK);break;case"search":Object.assign($,a1,Z),$.encodePart=uK;break;case"hash":Object.assign($,a1,Z),$.encodePart=pK;break}try{this.#Z[w]=Z4(W,$),this.#X[w]=Q4(this.#Z[w],this.#K[w],$),this.#J[w]=nK(this.#Z[w],$),this.#z=this.#z||this.#Z[w].some((z)=>z.type===2)}catch{throw TypeError(`invalid ${w} pattern '${this.#Q[w]}'.`)}}}catch(X){throw TypeError(`Failed to construct 'URLPattern': ${X.message}`)}}get[Symbol.toStringTag](){return"URLPattern"}test(J={},K){let Y={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof J!="string"&&K)throw TypeError("parameter 1 is not of type 'string'.");if(typeof J>"u")return!1;try{typeof J=="object"?Y=E5(Y,J,!1):Y=E5(Y,Y4(J,K),!1)}catch{return!1}let X;for(X of e9)if(!this.#X[X].exec(Y[X]))return!1;return!0}exec(J={},K){let Y={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof J!="string"&&K)throw TypeError("parameter 1 is not of type 'string'.");if(typeof J>"u")return;try{typeof J=="object"?Y=E5(Y,J,!1):Y=E5(Y,Y4(J,K),!1)}catch{return null}let X={};K?X.inputs=[J,K]:X.inputs=[J];let Z;for(Z of e9){let Q=this.#X[Z].exec(Y[Z]);if(!Q)return null;let w={};for(let[$,W]of this.#K[Z].entries())if(typeof W=="string"||typeof W=="number"){let z=Q[$+1];w[W]=z}X[Z]={input:Y[Z]??"",groups:w}}return X}static compareComponent(J,K,Y){let X=e(($,W)=>{for(let z of["type","modifier","prefix","value","suffix"]){if($[z]<W[z])return-1;if($[z]===W[z])continue;return 1}return 0},"comparePart"),Z=new _5(3,"","","","",3),Q=new _5(0,"","","","",3),w=e(($,W)=>{let z=0;for(;z<Math.min($.length,W.length);++z){let H=X($[z],W[z]);if(H)return H}return $.length===W.length?0:X($[z]??Z,W[z]??Z)},"comparePartList");return!K.#J[J]&&!Y.#J[J]?0:K.#J[J]&&!Y.#J[J]?w(K.#Z[J],[Q]):!K.#J[J]&&Y.#J[J]?w([Q],Y.#Z[J]):w(K.#Z[J],Y.#Z[J])}get protocol(){return this.#J.protocol}get username(){return this.#J.username}get password(){return this.#J.password}get hostname(){return this.#J.hostname}get port(){return this.#J.port}get pathname(){return this.#J.pathname}get search(){return this.#J.search}get hash(){return this.#J.hash}get hasRegExpGroups(){return this.#z}};e(V4,"URLPattern");function hA(J){return J.replace(/\([^)]*\)/g,"").replace(/\/\//g,"/")}function w6(J){let K={};for(let[Y,X]of Object.entries(J))if("run"in X){let Z=X.viewPath;if("children"in X){K[Y]=[Z];let Q=new X.children,w=w6(Q.routes);for(let[$,W]of Object.entries(w)){let z=Y==="/"?$:`${Y}${$}`,H=$==="/"&&Y!=="/"?Y:z;K[H]=[Z,...W]}if(K[Y].length===1)delete K[Y]}else K[Y]=[Z]}else{let Z=new X,Q=w6(Z.routes);for(let[w,$]of Object.entries(Q)){let W=Y==="/"?w:`${Y}${w}`,z=w==="/"&&Y!=="/"?Y:W;K[z]=$}}return Object.fromEntries(Object.entries(K).map(([Y,X])=>[hA(Y),X]))}function W6(J){let K=[];for(let[Y,X]of Object.entries(J))if("run"in X){let Z=X.viewPath;if(Z==="__")continue;if(Z==="REDIRECT")continue;if(Z==="FILE")continue;if("children"in X){let Q=new X.children,w=W6(Q.routes);K.push([Z,w])}else K.push([Z,[]])}else{let Z=new X,Q=W6(Z.routes);K.push(...Q)}return K}function B4(J){let K=[];for(let[Y,X]of J)K.push(Y,...B4(X).flat());return Array.from(new Set(K))}class K8 extends D0{static getFacadeAccessor(){return C5}static debug(J,K){this.getFacadeRoot().log("debug",J,K)}static info(J,K){this.getFacadeRoot().log("info",J,K)}static notice(J,K){this.getFacadeRoot().log("notice",J,K)}static warning(J,K){this.getFacadeRoot().log("warning",J,K)}static error(J,K){this.getFacadeRoot().log("error",J,K)}static critical(J,K){this.getFacadeRoot().log("critical",J,K)}static alert(J,K){this.getFacadeRoot().log("alert",J,K)}static emergency(J,K){this.getFacadeRoot().log("emergency",J,K)}}class G4{id;static token="kernel.id";constructor(J=crypto.randomUUID()){this.id=J}}var gA=`
|
|
67
|
+
!function(){try{var d=document.documentElement,c=d.classList;
|
|
68
|
+
c.remove('light','dark');
|
|
69
|
+
var e=localStorage.getItem('theme');
|
|
70
|
+
if('system'===e||(!e&&'system'===defaultTheme)){
|
|
71
|
+
var t='(prefers-color-scheme: dark)',m=window.matchMedia(t);
|
|
72
|
+
if(m.media!==t||m.matches){d.style.colorScheme='dark';c.add('dark')}
|
|
73
|
+
else{d.style.colorScheme='light';c.add('light')}
|
|
74
|
+
}else if(e){
|
|
75
|
+
c.add(e||'')
|
|
76
|
+
}}catch(e){}}()
|
|
77
|
+
`;async function xA(J,K,Y){let X=`${Y==="italic"?"italic,":""}wght@${Y==="italic"?"1,":""}${K}`,w=(await(await fetch(`https://fonts.googleapis.com/css2?family=${J}:${X}&display=swap`,{headers:{"User-Agent":"Mozilla/5.0 Firefox/1.0"}})).text()).match(/url\(([^)]+)\)/)?.[1];return await fetch(w).then(($)=>$.arrayBuffer())}var q4="/assets";function bA(J){let K=J.filter((Y)=>Y===q4||Y.startsWith(`${q4}/`));if(K.length>0){let Y=K.length>1;throw Error(`View route path${Y?"s":""} ${K.map((X)=>`"${X}"`).join(", ")} use${Y?"":"s"} the reserved "${q4}" prefix. The client build output is served from there before the router runs, so the route would never match. Mount it somewhere else.`)}}class O4{static token="router.view";flatViewRoutes={};routeManifest={};clientRouteManifest={};componentTree=[];flatComponentTree=[];root=null;hooks;constructor(J){let K=b4();this.hooks={onRequestStart:J.onRequestStart??K.onRequestStart,onRequestEnd:J.onRequestEnd??K.onRequestEnd,onRequestFail:J.onRequestFail??K.onRequestFail};let Y={"/":J.rootRouter,"/auth":G6};this.flatViewRoutes=Z6(Y),bA(Object.keys(this.flatViewRoutes)),this.routeManifest=w6(Y),this.clientRouteManifest=Object.fromEntries(Object.entries(this.routeManifest).filter(([,X])=>X.at(-1)!=="FILE")),this.componentTree=W6(Y),this.flatComponentTree=B4(this.componentTree),this.root=J.root}async onRequestEnd(J){if(!J.cookies.has("session_id"))J.ctx().setCookie("session_id",Bun.randomUUIDv7(),{httpOnly:!0,secure:Bun.env.NODE_ENV==="production",sameSite:"Strict",expires:new Date(Date.now()+31536000000)});return await this.hooks.onRequestEnd(J)}async render(J){let{csrfTokenHMAC:K,currentPathName:Y,headers:X,i18n:Z,params:Q,pathname:w,prefetchedData:$,url:W,user:z,viewData:H,breadcrumbs:U,urlLocaleSegment:A,meta:V,isOgRequest:L,appId:B}=J,q=w.replace(`/${A}`,""),M={kind:"view",data:{meta:V,pageData:{[q]:H},__csrf:K.toString("base64"),prefetchedData:$,i18n:Z,auth:{user:z},routeManifest:this.clientRouteManifest,breadcrumbs:U,router:{urlLocaleSegment:A,pathname:Y,params:Q,currentPath:w,searchParams:W.search,is404:!Y?!0:!1},appId:B,componentTree:[["404",[]],...this.componentTree]},head:{}},N=this.root,E=this.routeManifest[Y];return async(I)=>{let{bootstrapModules:F,loaders:j,getStyles:C,viewImportMap:R,cssManifest:T,ogMap:k}=I;if(L){let u=null,p=null;for(let S of E)if(typeof k[S]==="function")p=S,u=k[S];if(!u)return new Response("Not found",{status:404});let P=Object.values(M.data.pageData)[0];try{await L4(Y8(u,P[p]),{onError:()=>{}})}catch(S){let{fonts:D,...l}=S.satoriOptions,f=await Promise.all(D.map((c)=>{return xA(c.name,c.weight,c.style).then((h)=>({...c,data:h}))})),o=new Headers(X);o.set("Content-Type","image/png");let i=await RK(S.jsx,{...l,fonts:f}),m=await yA(Buffer.from(i)).png({compressionLevel:0,effort:10}).toBuffer();return new Response(new Uint8Array(m),{headers:o})}return new Response("data")}M.data.cssManifest=T;let d=await C(E);try{let u=await L4(Y8(kA,{children:[...d,Y8("script",{key:"theme-script",dangerouslySetInnerHTML:{__html:gA}}),Y8(N,{data:M.data,viewImportMap:R,key:"root"})]}),{bootstrapScriptContent:`window.__GEMI_DATA__ = ${JSON.stringify(M.data)}; window.loaders=${j}`,bootstrapModules:F});return new Response(u,{status:!Y?404:200,headers:X})}catch(u){let p=await L4(Y8("div"),{bootstrapScriptContent:`window.error= ${JSON.stringify(u.message)}; window.stack_trace=${JSON.stringify(u.stack)};window.__GEMI_DATA__ = ${JSON.stringify(M.data)}; window.loaders=${j}`,bootstrapModules:Bun.env.NODE_ENV==="development"?["/render-error.js",...F]:F});return new Response(p,{status:!Y?404:200,headers:X})}}}async handleViewRequest(J){let K=new URL(J.url),Y=K.pathname.endsWith(".json"),X=K.pathname.endsWith(".og"),Z=K.pathname.replace(".json","").replace(".og",""),[,Q,...w]=Z.split("/"),$=`/${w.join("/")}`,W=null,z=null,H=Q0(u0);if(!H.supportedLocales.includes(Q))$=Z;else W=Q,z=Q;if(H.isEnabled&&!X){let M=Q0(u0).detectLocale(new A0(J,{},"view",$));if(z===null&&M!==H.defaultLocale){let N=K.pathname==="/"?"":K.pathname;return new Response("",{status:302,headers:{"Cache-Control":"private, no-cache, no-store, max-age=0, must-revalidate",Location:`/${M}${N}${K.search}`}})}}$=$.replace("//","/");let A=[],V=[],L=null,B={};try{for(let[M,N]of Object.entries(this.flatViewRoutes)){let E=new V4({pathname:M});if(E.test({pathname:$})){L=M,B=E.exec({pathname:$})?.pathname.groups,A=N.exec,V=N.middleware;break}}}catch(M){throw M}let q=new A0(J,B,"view",L);return this.hooks.onRequestStart(q),await L0.run(q,async()=>{let M=null,N=L0.getStore();if(z){let I=z.replaceAll("/","");V5.setLocale(I)}else V5.setLocale();let E=N.req;try{await Q0(T5).runMiddleware(V);let I=Q0(u0),F=I.isEnabled,j={};if(F){let f=null;if(z)f=z.replaceAll("/",""),N.setLocale(f);else f=I.detectLocale(new A0(J,E.params)),N.setLocale(f);let o=I.getPageTranslations(f,E.routePath);j={supportedLocales:I.supportedLocales,currentLocale:f,dictionary:{[f]:o},defaultLocale:I.defaultLocale}}let C=await Promise.all([...A.map((f)=>f(E)),...Array.from(N.prefetchPromiseQueue).map((f)=>f())]),R=N.cookies,T=N.headers,k=N.prefetchedResources;M={data:C,cookies:R,headers:T,user:N.user,prefetchedData:Object.fromEntries(k.entries()),currentPathName:E.routePath,params:E.params,urlLocaleSegment:W,meta:N.renderMeta(),appId:Q0(G4).id};let{params:d,currentPathName:u,user:p}=M,P={},S={};for(let f of C??[]){let[o,i]=Object.entries(f)?.[0]??[];if(!o||!i)continue;S[`${o}:${u}`]=i.breadcrumb,P[o]=i}let D=P.FILE;if(D){for(let f of R)T.append("Set-Cookie",f.toString());try{await this.onRequestEnd(E)}catch(f){K8.error(f?.message??'Error in "onRequestEnd" event handler',{err:JSON.stringify(f)})}return await oK(D,T)}if(Y)return T.set("Content-Type","application/json; charset=utf-8"),R.forEach((f)=>T.append("Set-Cookie",f.toString())),await this.hooks.onRequestEnd(E),new Response(JSON.stringify({meta:M.meta,data:{[$]:P},breadcrumbs:S,prefetchedData:M.prefetchedData,i18n:j,is404:!u,appId:M.appId}),{headers:T});T.set("Content-Type","text/html; charset=utf-8");for(let f of R)T.append("Set-Cookie",f.toString());let l=Bun.CSRF.generate(process.env.SECRET);T.append("Set-Cookie",`csrf_token=${l}; HttpOnly; Secure; SameSite=Strict; Expires=${new Date(Date.now()+86400000).toUTCString()}`);try{await this.onRequestEnd(E)}catch(f){K8.error(f?.message??'Error in "onRequestEnd" event handler',{err:JSON.stringify(f)})}return await this.render({csrfTokenHMAC:Buffer.from(""),currentPathName:u,headers:T,i18n:j,params:d,pathname:K.pathname,prefetchedData:M.prefetchedData,url:K,user:p,viewData:P,breadcrumbs:S,urlLocaleSegment:W,meta:M.meta,appId:M.appId,isOgRequest:X})}catch(I){if(I.kind===X8)if(Y){let{status:F=400,data:j,directive:C,headers:R}=I.payload.api;return new Response(JSON.stringify({data:j,directive:C}),{headers:R,status:F})}else{let{status:F=400,error:j}=I.payload.view;return new Response(j?.message,{...I.payload.view,status:F})}throw this.hooks.onRequestFail(E,I),I}})}}class sK extends O1{routes={"/api-routes":this.get(()=>{let J=Q0($6).flatRoutes,K=[];for(let[Y,X]of Object.entries(J))for(let[Z,Q]of Object.entries(X)){let{exec:w,middleware:$}=Q;K.push({path:Y,method:Z,middleware:$})}return K}),"/view-routes":this.get(()=>{let J=Q0(O4).flatViewRoutes,K=[];for(let[Y,{middleware:X,viewPath:Z}]of Object.entries(J))K.push({path:Y,method:"GET",viewPath:Z,middleware:X});return K})}}class $6{static token="router.api";flatRoutes={};onRequestStart;onRequestEnd;onRequestFail;constructor(J){let K=x4();this.onRequestStart=J.onRequestStart??K.onRequestStart,this.onRequestEnd=J.onRequestEnd??K.onRequestEnd,this.onRequestFail=J.onRequestFail??K.onRequestFail,this.flatRoutes=_6({"/":J.rootRouter,"/auth":L6,"/__gemi__/services/i18n":q6,"/__gemi__/services/logs":F6,"/__gemi__/services/image":N6,"/__gemi__/debug":sK})}getRouteHandlerAndParams(J){let Y=new URL(J.url).pathname.replace("/api",""),X={},Z;for(let[Q]of Object.entries(this.flatRoutes))try{let w=new URLPattern({pathname:Q});if(w.test({pathname:Y})){Z=Q,X=w.exec({pathname:Y})?.pathname.groups;break}}catch(w){console.error(w)}return{params:X,path:Z}}async runRouteMiddleware(J,K){let X=this.flatRoutes[J][K.rawRequest.method].middleware;try{await Q0(T5).runMiddleware(X)}catch(Z){if(Z.kind===X8){if(K.rawRequest.url.includes("/api")){let{status:Q=400,data:w,headers:$}=Z.payload.api;return new Response(JSON.stringify(w),{status:Q,headers:{"Content-Type":"application/json",...$}})}}else throw this.onRequestFail(K,Z),console.error(Z),Z}}async getRouteData(J){let K=this.flatRoutes[J],Y=L0.getStore(),X=K[Y.req.rawRequest.method].exec??(()=>Promise.resolve({})),Z={};try{Z=await X()}catch(Q){if(Q.kind===X8){let{status:w=400,data:$,headers:W}=Q.payload.api;return new Response(JSON.stringify($),{status:w,headers:{"Content-Type":"application/json",...W}})}throw this.onRequestFail(Y.req,Q),console.error(Q),Q}return Z}mergeContextIntoResponse(J,K,Y){let X=[];K?.forEach((w,$)=>X.push([$,w]));let Z=[...typeof K?.getSetCookie==="function"?K.getSetCookie():[],...Array.from(Y??[])];if(X.length===0&&Z.length===0)return J;let Q=(w)=>{for(let[$,W]of X){if($.toLowerCase()==="set-cookie")continue;if(!w.has($))w.set($,W)}for(let $ of Z)w.append("Set-Cookie",$)};try{return Q(J.headers),J}catch{let w=new Headers(J.headers);return Q(w),new Response(J.body,{status:J.status,statusText:J.statusText,headers:w})}}async handleApiRequest(J){let{params:K,path:Y}=this.getRouteHandlerAndParams(J),X=this.flatRoutes[Y];if(!X||!X[J.method])return new Response(JSON.stringify({error:{message:"Not found"}}),{status:404});let Z=new A0(J,K,"api",Y);if(!J.url.includes("/__gemi__"))this.onRequestStart(Z);return await L0.run(Z,async()=>{let Q=L0.getStore(),w=Q0(u0);if(w.isEnabled){let U=w.detectLocale(Z);Q.setLocale(U)}Q.setRequest(Z);let $=await this.runRouteMiddleware(Y,Z);if($ instanceof Response)return $;let W=await this.getRouteData(Y),z=Q.headers,H=Q.cookies;if(W instanceof Response){let U=this.mergeContextIntoResponse(W,z,H);if(!J.url.includes("/__gemi__"))this.onRequestEnd(Z);return Q.destroy(),U}if(z.set("Content-Type","application/json"),H.forEach((U)=>z.append("Set-Cookie",U.toString())),!J.url.includes("/__gemi__"))this.onRequestEnd(Z);return Q.destroy(),new Response(JSON.stringify(W),{headers:z})})}}class Z8 extends D0{static getFacadeAccessor(){return $6}static prepare(J,...K){let Y={params:{},search:{}},[X={}]=K,{search:Z,params:Q}={...Y,...X},w=L0.getStore();if(w.req.kind==="api")throw Error("Query.prefetch() cannot be called from an API request");let $=w.req.rawRequest,W=new URL($.url),z=new URLSearchParams(C4(Z));z.delete("json"),z.sort();let H=[`${b1(J,Q)}`,z.toString()].filter((q)=>q.length>0).join("?"),U=`${W.origin}/${H}`,A=new Request(U,{headers:$.headers}),V=new A0(A,Q),L=(q)=>{w.prefetchedResources.set(b1(J,Q),{[z.toString()]:q})},B=()=>{return L0.run(V,async()=>{let q=await Z8.getFacadeRoot().getRouteData(J);return L(q),q})};return{instant:B,prefetch:()=>{w.prefetchPromiseQueue.add(B)}}}static instant(J,...K){return Z8.prepare(J,...K).instant()}static prefetch(J,...K){return Z8.prepare(J,...K).prefetch()}}class aK{static absolute(J,...K){return`${process.env.HOST_NAME}${b1(String(J),K[0]??{})}`}static relative(J,...K){return b1(String(J),K[0]??{})}}class tK{name="Meta";static description(J){L0.getStore().metadata.description(J)}static title(J){L0.getStore().metadata.title(J)}static openGraph(J){L0.getStore().metadata.openGraph(J)}}var fA={set(J,K,Y){L0.getStore().setCookie(J,K,Y)},setIfAbsent(J,K,Y){if(L0.getStore().req.cookies.has(J))return!1;return L0.getStore().setCookie(J,K,Y),!0},delete(J){L0.getStore().deleteCookie(J)}};var{RedisClient:mA}=globalThis.Bun;class M4{config;static token="redis";client;constructor(J={}){this.config=J;this.client=new mA(J.url,J.options)}}class h1 extends D0{static getFacadeAccessor(){return M4}static get client(){return this.getFacadeRoot().client}static get(J){return h1.client.get(J)}static set(J,K){return h1.client.set(J,K)}static del(...J){return h1.client.del(...J)}static exists(J){return h1.client.exists(J)}static incr(J){return h1.client.incr(J)}static expire(J,K){return h1.client.expire(J,K)}static ttl(J){return h1.client.ttl(J)}}class JY extends D0{static getFacadeAccessor(){return eK}static consume(J,K={}){return this.getFacadeRoot().consume(J,K)}}class YY extends D0{static getFacadeAccessor(){return KY}static get sql(){return this.getFacadeRoot().sql}static get dialect(){return this.getFacadeRoot().dialect}static transaction(J){return this.sql.begin(J)}static close(){return this.getFacadeRoot().close()}}export{D0 as Za,z6 as _a,$8 as $a,f1 as ab,V5 as bb,H6 as cb,U6 as db,VV as eb,R4 as fb,A6 as gb,D4 as hb,O6 as ib,M6 as jb,rV as kb,y4 as lb,k4 as mb,C5 as nb,T5 as ob,HB as pb,x4 as qb,b4 as rb,V4 as sb,K8 as tb,G4 as ub,q4 as vb,O4 as wb,$6 as xb,Z8 as yb,aK as zb,tK as Ab,fA as Bb,M4 as Cb,h1 as Db,JY as Eb,YY as Fb};
|
|
78
|
+
|
|
79
|
+
//# debugId=572E5219EFD6638D64756E2164756E21
|