@authup/server-core 1.0.0-beta.40 → 1.0.0-beta.41
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/adapters/http/adapters/oauth2/authorization/module.d.ts +5 -8
- package/dist/adapters/http/adapters/oauth2/authorization/module.d.ts.map +1 -1
- package/dist/adapters/http/adapters/oauth2/authorization/module.mjs +8 -10
- package/dist/adapters/http/adapters/oauth2/authorization/module.mjs.map +1 -1
- package/dist/adapters/http/adapters/oauth2/grant-types/authorize.d.ts +3 -3
- package/dist/adapters/http/adapters/oauth2/grant-types/authorize.d.ts.map +1 -1
- package/dist/adapters/http/adapters/oauth2/grant-types/authorize.mjs +13 -12
- package/dist/adapters/http/adapters/oauth2/grant-types/authorize.mjs.map +1 -1
- package/dist/adapters/http/adapters/oauth2/grant-types/client-credentials.d.ts +2 -2
- package/dist/adapters/http/adapters/oauth2/grant-types/client-credentials.d.ts.map +1 -1
- package/dist/adapters/http/adapters/oauth2/grant-types/client-credentials.mjs +6 -6
- package/dist/adapters/http/adapters/oauth2/grant-types/client-credentials.mjs.map +1 -1
- package/dist/adapters/http/adapters/oauth2/grant-types/identity.d.ts +2 -2
- package/dist/adapters/http/adapters/oauth2/grant-types/identity.d.ts.map +1 -1
- package/dist/adapters/http/adapters/oauth2/grant-types/identity.mjs +4 -4
- package/dist/adapters/http/adapters/oauth2/grant-types/identity.mjs.map +1 -1
- package/dist/adapters/http/adapters/oauth2/grant-types/password.d.ts +2 -2
- package/dist/adapters/http/adapters/oauth2/grant-types/password.d.ts.map +1 -1
- package/dist/adapters/http/adapters/oauth2/grant-types/password.mjs +6 -6
- package/dist/adapters/http/adapters/oauth2/grant-types/password.mjs.map +1 -1
- package/dist/adapters/http/adapters/oauth2/grant-types/refresh_token.d.ts +2 -2
- package/dist/adapters/http/adapters/oauth2/grant-types/refresh_token.d.ts.map +1 -1
- package/dist/adapters/http/adapters/oauth2/grant-types/refresh_token.mjs +8 -7
- package/dist/adapters/http/adapters/oauth2/grant-types/refresh_token.mjs.map +1 -1
- package/dist/adapters/http/adapters/oauth2/grant-types/robot-credentials.d.ts +2 -2
- package/dist/adapters/http/adapters/oauth2/grant-types/robot-credentials.d.ts.map +1 -1
- package/dist/adapters/http/adapters/oauth2/grant-types/robot-credentials.mjs +5 -5
- package/dist/adapters/http/adapters/oauth2/grant-types/robot-credentials.mjs.map +1 -1
- package/dist/adapters/http/adapters/oauth2/grant-types/types.d.ts +2 -2
- package/dist/adapters/http/adapters/oauth2/grant-types/types.d.ts.map +1 -1
- package/dist/adapters/http/adapters/oauth2/grant-types/utils/credentials.d.ts +2 -2
- package/dist/adapters/http/adapters/oauth2/grant-types/utils/credentials.d.ts.map +1 -1
- package/dist/adapters/http/adapters/oauth2/grant-types/utils/credentials.mjs +11 -10
- package/dist/adapters/http/adapters/oauth2/grant-types/utils/credentials.mjs.map +1 -1
- package/dist/adapters/http/adapters/oauth2/grant-types/utils/guess.d.ts +2 -2
- package/dist/adapters/http/adapters/oauth2/grant-types/utils/guess.d.ts.map +1 -1
- package/dist/adapters/http/adapters/oauth2/grant-types/utils/guess.mjs +16 -13
- package/dist/adapters/http/adapters/oauth2/grant-types/utils/guess.mjs.map +1 -1
- package/dist/adapters/http/controllers/entities/client/module.d.ts +9 -6
- package/dist/adapters/http/controllers/entities/client/module.d.ts.map +1 -1
- package/dist/adapters/http/controllers/entities/client/module.mjs +46 -61
- package/dist/adapters/http/controllers/entities/client/module.mjs.map +1 -1
- package/dist/adapters/http/controllers/entities/client-permission/module.d.ts +8 -5
- package/dist/adapters/http/controllers/entities/client-permission/module.d.ts.map +1 -1
- package/dist/adapters/http/controllers/entities/client-permission/module.mjs +35 -48
- package/dist/adapters/http/controllers/entities/client-permission/module.mjs.map +1 -1
- package/dist/adapters/http/controllers/entities/client-role/module.d.ts +7 -4
- package/dist/adapters/http/controllers/entities/client-role/module.d.ts.map +1 -1
- package/dist/adapters/http/controllers/entities/client-role/module.mjs +27 -40
- package/dist/adapters/http/controllers/entities/client-role/module.mjs.map +1 -1
- package/dist/adapters/http/controllers/entities/client-scope/module.d.ts +7 -4
- package/dist/adapters/http/controllers/entities/client-scope/module.d.ts.map +1 -1
- package/dist/adapters/http/controllers/entities/client-scope/module.mjs +27 -40
- package/dist/adapters/http/controllers/entities/client-scope/module.mjs.map +1 -1
- package/dist/adapters/http/controllers/entities/identity-provide-role/module.d.ts +8 -6
- package/dist/adapters/http/controllers/entities/identity-provide-role/module.d.ts.map +1 -1
- package/dist/adapters/http/controllers/entities/identity-provide-role/module.mjs +35 -48
- package/dist/adapters/http/controllers/entities/identity-provide-role/module.mjs.map +1 -1
- package/dist/adapters/http/controllers/entities/identity-provider/module.d.ts +10 -9
- package/dist/adapters/http/controllers/entities/identity-provider/module.d.ts.map +1 -1
- package/dist/adapters/http/controllers/entities/identity-provider/module.mjs +76 -100
- package/dist/adapters/http/controllers/entities/identity-provider/module.mjs.map +1 -1
- package/dist/adapters/http/controllers/entities/permission/module.d.ts +10 -7
- package/dist/adapters/http/controllers/entities/permission/module.d.ts.map +1 -1
- package/dist/adapters/http/controllers/entities/permission/module.mjs +50 -69
- package/dist/adapters/http/controllers/entities/permission/module.mjs.map +1 -1
- package/dist/adapters/http/controllers/entities/permission-policy/module.d.ts +7 -4
- package/dist/adapters/http/controllers/entities/permission-policy/module.d.ts.map +1 -1
- package/dist/adapters/http/controllers/entities/permission-policy/module.mjs +27 -40
- package/dist/adapters/http/controllers/entities/permission-policy/module.mjs.map +1 -1
- package/dist/adapters/http/controllers/entities/policy/module.d.ts +11 -9
- package/dist/adapters/http/controllers/entities/policy/module.d.ts.map +1 -1
- package/dist/adapters/http/controllers/entities/policy/module.mjs +54 -72
- package/dist/adapters/http/controllers/entities/policy/module.mjs.map +1 -1
- package/dist/adapters/http/controllers/entities/realm/module.d.ts +13 -8
- package/dist/adapters/http/controllers/entities/realm/module.d.ts.map +1 -1
- package/dist/adapters/http/controllers/entities/realm/module.mjs +55 -74
- package/dist/adapters/http/controllers/entities/realm/module.mjs.map +1 -1
- package/dist/adapters/http/controllers/entities/robot/module.d.ts +9 -6
- package/dist/adapters/http/controllers/entities/robot/module.d.ts.map +1 -1
- package/dist/adapters/http/controllers/entities/robot/module.mjs +46 -63
- package/dist/adapters/http/controllers/entities/robot/module.mjs.map +1 -1
- package/dist/adapters/http/controllers/entities/robot-permission/module.d.ts +8 -5
- package/dist/adapters/http/controllers/entities/robot-permission/module.d.ts.map +1 -1
- package/dist/adapters/http/controllers/entities/robot-permission/module.mjs +35 -48
- package/dist/adapters/http/controllers/entities/robot-permission/module.mjs.map +1 -1
- package/dist/adapters/http/controllers/entities/robot-role/module.d.ts +7 -4
- package/dist/adapters/http/controllers/entities/robot-role/module.d.ts.map +1 -1
- package/dist/adapters/http/controllers/entities/robot-role/module.mjs +27 -40
- package/dist/adapters/http/controllers/entities/robot-role/module.mjs.map +1 -1
- package/dist/adapters/http/controllers/entities/role/module.d.ts +9 -6
- package/dist/adapters/http/controllers/entities/role/module.d.ts.map +1 -1
- package/dist/adapters/http/controllers/entities/role/module.mjs +42 -57
- package/dist/adapters/http/controllers/entities/role/module.mjs.map +1 -1
- package/dist/adapters/http/controllers/entities/role-attribute/module.d.ts +8 -5
- package/dist/adapters/http/controllers/entities/role-attribute/module.d.ts.map +1 -1
- package/dist/adapters/http/controllers/entities/role-attribute/module.mjs +35 -48
- package/dist/adapters/http/controllers/entities/role-attribute/module.mjs.map +1 -1
- package/dist/adapters/http/controllers/entities/role-permission/module.d.ts +8 -5
- package/dist/adapters/http/controllers/entities/role-permission/module.d.ts.map +1 -1
- package/dist/adapters/http/controllers/entities/role-permission/module.mjs +35 -48
- package/dist/adapters/http/controllers/entities/role-permission/module.mjs.map +1 -1
- package/dist/adapters/http/controllers/entities/scope/module.d.ts +9 -6
- package/dist/adapters/http/controllers/entities/scope/module.d.ts.map +1 -1
- package/dist/adapters/http/controllers/entities/scope/module.mjs +42 -57
- package/dist/adapters/http/controllers/entities/scope/module.mjs.map +1 -1
- package/dist/adapters/http/controllers/entities/user/module.d.ts +9 -6
- package/dist/adapters/http/controllers/entities/user/module.d.ts.map +1 -1
- package/dist/adapters/http/controllers/entities/user/module.mjs +42 -57
- package/dist/adapters/http/controllers/entities/user/module.mjs.map +1 -1
- package/dist/adapters/http/controllers/entities/user-attribute/module.d.ts +8 -5
- package/dist/adapters/http/controllers/entities/user-attribute/module.d.ts.map +1 -1
- package/dist/adapters/http/controllers/entities/user-attribute/module.mjs +35 -48
- package/dist/adapters/http/controllers/entities/user-attribute/module.mjs.map +1 -1
- package/dist/adapters/http/controllers/entities/user-permission/module.d.ts +8 -5
- package/dist/adapters/http/controllers/entities/user-permission/module.d.ts.map +1 -1
- package/dist/adapters/http/controllers/entities/user-permission/module.mjs +35 -48
- package/dist/adapters/http/controllers/entities/user-permission/module.mjs.map +1 -1
- package/dist/adapters/http/controllers/entities/user-role/module.d.ts +7 -4
- package/dist/adapters/http/controllers/entities/user-role/module.d.ts.map +1 -1
- package/dist/adapters/http/controllers/entities/user-role/module.mjs +27 -40
- package/dist/adapters/http/controllers/entities/user-role/module.mjs.map +1 -1
- package/dist/adapters/http/controllers/workflows/activate/module.d.ts +3 -2
- package/dist/adapters/http/controllers/workflows/activate/module.d.ts.map +1 -1
- package/dist/adapters/http/controllers/workflows/activate/module.mjs +6 -11
- package/dist/adapters/http/controllers/workflows/activate/module.mjs.map +1 -1
- package/dist/adapters/http/controllers/workflows/authorize/module.d.ts +7 -5
- package/dist/adapters/http/controllers/workflows/authorize/module.d.ts.map +1 -1
- package/dist/adapters/http/controllers/workflows/authorize/module.mjs +19 -20
- package/dist/adapters/http/controllers/workflows/authorize/module.mjs.map +1 -1
- package/dist/adapters/http/controllers/workflows/jwks/handlers/read.d.ts +5 -3
- package/dist/adapters/http/controllers/workflows/jwks/handlers/read.d.ts.map +1 -1
- package/dist/adapters/http/controllers/workflows/jwks/handlers/read.mjs +12 -14
- package/dist/adapters/http/controllers/workflows/jwks/handlers/read.mjs.map +1 -1
- package/dist/adapters/http/controllers/workflows/jwks/module.d.ts +6 -3
- package/dist/adapters/http/controllers/workflows/jwks/module.d.ts.map +1 -1
- package/dist/adapters/http/controllers/workflows/jwks/module.mjs +17 -26
- package/dist/adapters/http/controllers/workflows/jwks/module.mjs.map +1 -1
- package/dist/adapters/http/controllers/workflows/openid/module.d.ts.map +1 -1
- package/dist/adapters/http/controllers/workflows/openid/module.mjs +10 -7
- package/dist/adapters/http/controllers/workflows/openid/module.mjs.map +1 -1
- package/dist/adapters/http/controllers/workflows/password-forgot/module.d.ts +3 -3
- package/dist/adapters/http/controllers/workflows/password-forgot/module.d.ts.map +1 -1
- package/dist/adapters/http/controllers/workflows/password-forgot/module.mjs +7 -11
- package/dist/adapters/http/controllers/workflows/password-forgot/module.mjs.map +1 -1
- package/dist/adapters/http/controllers/workflows/password-reset/module.d.ts +3 -3
- package/dist/adapters/http/controllers/workflows/password-reset/module.d.ts.map +1 -1
- package/dist/adapters/http/controllers/workflows/password-reset/module.mjs +7 -11
- package/dist/adapters/http/controllers/workflows/password-reset/module.mjs.map +1 -1
- package/dist/adapters/http/controllers/workflows/register/module.d.ts +3 -3
- package/dist/adapters/http/controllers/workflows/register/module.d.ts.map +1 -1
- package/dist/adapters/http/controllers/workflows/register/module.mjs +7 -11
- package/dist/adapters/http/controllers/workflows/register/module.mjs.map +1 -1
- package/dist/adapters/http/controllers/workflows/status/module.d.ts.map +1 -1
- package/dist/adapters/http/controllers/workflows/status/module.mjs.map +1 -1
- package/dist/adapters/http/controllers/workflows/token/module.d.ts +5 -5
- package/dist/adapters/http/controllers/workflows/token/module.d.ts.map +1 -1
- package/dist/adapters/http/controllers/workflows/token/module.mjs +20 -21
- package/dist/adapters/http/controllers/workflows/token/module.mjs.map +1 -1
- package/dist/adapters/http/controllers/workflows/token/utils/extract.d.ts +2 -2
- package/dist/adapters/http/controllers/workflows/token/utils/extract.d.ts.map +1 -1
- package/dist/adapters/http/controllers/workflows/token/utils/extract.mjs +8 -7
- package/dist/adapters/http/controllers/workflows/token/utils/extract.mjs.map +1 -1
- package/dist/adapters/http/index.d.ts +0 -2
- package/dist/adapters/http/index.d.ts.map +1 -1
- package/dist/adapters/http/index.mjs +4 -7
- package/dist/adapters/http/middleware/built-in/assets.d.ts +1 -0
- package/dist/adapters/http/middleware/built-in/assets.d.ts.map +1 -1
- package/dist/adapters/http/middleware/built-in/assets.mjs +9 -9
- package/dist/adapters/http/middleware/built-in/assets.mjs.map +1 -1
- package/dist/adapters/http/middleware/built-in/authorization/factory.d.ts.map +1 -1
- package/dist/adapters/http/middleware/built-in/authorization/factory.mjs +5 -2
- package/dist/adapters/http/middleware/built-in/authorization/factory.mjs.map +1 -1
- package/dist/adapters/http/middleware/built-in/authorization/module.d.ts +4 -10
- package/dist/adapters/http/middleware/built-in/authorization/module.d.ts.map +1 -1
- package/dist/adapters/http/middleware/built-in/authorization/module.mjs +24 -39
- package/dist/adapters/http/middleware/built-in/authorization/module.mjs.map +1 -1
- package/dist/adapters/http/middleware/built-in/cors.d.ts +1 -1
- package/dist/adapters/http/middleware/built-in/cors.d.ts.map +1 -1
- package/dist/adapters/http/middleware/built-in/cors.mjs +18 -10
- package/dist/adapters/http/middleware/built-in/cors.mjs.map +1 -1
- package/dist/adapters/http/middleware/built-in/error.d.ts.map +1 -1
- package/dist/adapters/http/middleware/built-in/error.mjs +7 -18
- package/dist/adapters/http/middleware/built-in/error.mjs.map +1 -1
- package/dist/adapters/http/middleware/built-in/index.mjs +2 -2
- package/dist/adapters/http/middleware/built-in/loggedin/module.d.ts +2 -2
- package/dist/adapters/http/middleware/built-in/loggedin/module.d.ts.map +1 -1
- package/dist/adapters/http/middleware/built-in/loggedin/module.mjs +3 -3
- package/dist/adapters/http/middleware/built-in/loggedin/module.mjs.map +1 -1
- package/dist/adapters/http/middleware/built-in/loggedin/user.d.ts +2 -2
- package/dist/adapters/http/middleware/built-in/loggedin/user.d.ts.map +1 -1
- package/dist/adapters/http/middleware/built-in/loggedin/user.mjs +3 -3
- package/dist/adapters/http/middleware/built-in/loggedin/user.mjs.map +1 -1
- package/dist/adapters/http/middleware/built-in/logger.d.ts.map +1 -1
- package/dist/adapters/http/middleware/built-in/logger.mjs +21 -29
- package/dist/adapters/http/middleware/built-in/logger.mjs.map +1 -1
- package/dist/adapters/http/middleware/built-in/prometheus.d.ts.map +1 -1
- package/dist/adapters/http/middleware/built-in/prometheus.mjs +2 -3
- package/dist/adapters/http/middleware/built-in/prometheus.mjs.map +1 -1
- package/dist/adapters/http/middleware/built-in/rate-limit.d.ts.map +1 -1
- package/dist/adapters/http/middleware/built-in/rate-limit.mjs +2 -2
- package/dist/adapters/http/middleware/built-in/rate-limit.mjs.map +1 -1
- package/dist/adapters/http/middleware/built-in/swagger.d.ts +3 -4
- package/dist/adapters/http/middleware/built-in/swagger.d.ts.map +1 -1
- package/dist/adapters/http/middleware/built-in/swagger.mjs +4 -16
- package/dist/adapters/http/middleware/built-in/swagger.mjs.map +1 -1
- package/dist/adapters/http/middleware/index.mjs +2 -2
- package/dist/adapters/http/request/helpers/actor.d.ts +2 -2
- package/dist/adapters/http/request/helpers/actor.d.ts.map +1 -1
- package/dist/adapters/http/request/helpers/actor.mjs +3 -3
- package/dist/adapters/http/request/helpers/actor.mjs.map +1 -1
- package/dist/adapters/http/request/helpers/body-realm-id.d.ts +1 -2
- package/dist/adapters/http/request/helpers/body-realm-id.d.ts.map +1 -1
- package/dist/adapters/http/request/helpers/body-realm-id.mjs +3 -4
- package/dist/adapters/http/request/helpers/body-realm-id.mjs.map +1 -1
- package/dist/adapters/http/request/helpers/identity.d.ts +4 -4
- package/dist/adapters/http/request/helpers/identity.d.ts.map +1 -1
- package/dist/adapters/http/request/helpers/identity.mjs +6 -7
- package/dist/adapters/http/request/helpers/identity.mjs.map +1 -1
- package/dist/adapters/http/request/helpers/index.d.ts +1 -0
- package/dist/adapters/http/request/helpers/index.d.ts.map +1 -1
- package/dist/adapters/http/request/helpers/index.mjs +3 -2
- package/dist/adapters/http/request/helpers/locations.d.ts +4 -0
- package/dist/adapters/http/request/helpers/locations.d.ts.map +1 -0
- package/dist/adapters/http/request/helpers/locations.mjs +28 -0
- package/dist/adapters/http/request/helpers/locations.mjs.map +1 -0
- package/dist/adapters/http/request/helpers/param-id.d.ts +5 -5
- package/dist/adapters/http/request/helpers/param-id.d.ts.map +1 -1
- package/dist/adapters/http/request/helpers/param-id.mjs +8 -9
- package/dist/adapters/http/request/helpers/param-id.mjs.map +1 -1
- package/dist/adapters/http/request/helpers/scopes.d.ts +3 -3
- package/dist/adapters/http/request/helpers/scopes.d.ts.map +1 -1
- package/dist/adapters/http/request/helpers/scopes.mjs +4 -5
- package/dist/adapters/http/request/helpers/scopes.mjs.map +1 -1
- package/dist/adapters/http/request/helpers/token.d.ts +3 -3
- package/dist/adapters/http/request/helpers/token.d.ts.map +1 -1
- package/dist/adapters/http/request/helpers/token.mjs +4 -5
- package/dist/adapters/http/request/helpers/token.mjs.map +1 -1
- package/dist/adapters/http/request/index.mjs +3 -2
- package/dist/adapters/http/request/permission/helper.d.ts +3 -3
- package/dist/adapters/http/request/permission/helper.d.ts.map +1 -1
- package/dist/adapters/http/request/permission/helper.mjs +4 -5
- package/dist/adapters/http/request/permission/helper.mjs.map +1 -1
- package/dist/adapters/http/request/permission/module.d.ts +3 -3
- package/dist/adapters/http/request/permission/module.d.ts.map +1 -1
- package/dist/adapters/http/request/permission/module.mjs +5 -5
- package/dist/adapters/http/request/permission/module.mjs.map +1 -1
- package/dist/app/builder.d.ts +1 -2
- package/dist/app/builder.d.ts.map +1 -1
- package/dist/app/builder.mjs +0 -5
- package/dist/app/builder.mjs.map +1 -1
- package/dist/app/factory.d.ts.map +1 -1
- package/dist/app/factory.mjs +1 -1
- package/dist/app/factory.mjs.map +1 -1
- package/dist/app/index.mjs +1 -2
- package/dist/app/modules/config/types.d.ts +2 -2
- package/dist/app/modules/config/types.d.ts.map +1 -1
- package/dist/app/modules/constants.d.ts +0 -1
- package/dist/app/modules/constants.d.ts.map +1 -1
- package/dist/app/modules/constants.mjs +0 -1
- package/dist/app/modules/constants.mjs.map +1 -1
- package/dist/app/modules/http/constants.d.ts +3 -2
- package/dist/app/modules/http/constants.d.ts.map +1 -1
- package/dist/app/modules/http/constants.mjs.map +1 -1
- package/dist/app/modules/http/module.d.ts +2 -2
- package/dist/app/modules/http/module.d.ts.map +1 -1
- package/dist/app/modules/http/module.mjs +10 -17
- package/dist/app/modules/http/module.mjs.map +1 -1
- package/dist/app/modules/http/modules/controller.d.ts.map +1 -1
- package/dist/app/modules/http/modules/controller.mjs +32 -51
- package/dist/app/modules/http/modules/controller.mjs.map +1 -1
- package/dist/app/modules/http/modules/middleware.d.ts.map +1 -1
- package/dist/app/modules/http/modules/middleware.mjs +3 -6
- package/dist/app/modules/http/modules/middleware.mjs.map +1 -1
- package/dist/app/modules/index.d.ts +0 -1
- package/dist/app/modules/index.d.ts.map +1 -1
- package/dist/app/modules/index.mjs +1 -3
- package/dist/app/modules/runtime/module.d.ts.map +1 -1
- package/dist/app/modules/runtime/module.mjs +3 -1
- package/dist/app/modules/runtime/module.mjs.map +1 -1
- package/dist/cli/commands/healthcheck.mjs +1 -1
- package/dist/cli/commands/index.d.ts +0 -1
- package/dist/cli/commands/index.d.ts.map +1 -1
- package/dist/cli/commands/index.mjs +1 -2
- package/dist/cli/commands/start.d.ts.map +1 -1
- package/dist/cli/commands/start.mjs +22 -1
- package/dist/cli/commands/start.mjs.map +1 -1
- package/dist/cli/module.d.ts.map +1 -1
- package/dist/cli/module.mjs +1 -3
- package/dist/cli/module.mjs.map +1 -1
- package/dist/core/oauth2/helpers/erorr.d.ts +1 -2
- package/dist/core/oauth2/helpers/erorr.d.ts.map +1 -1
- package/dist/core/oauth2/helpers/erorr.mjs +11 -10
- package/dist/core/oauth2/helpers/erorr.mjs.map +1 -1
- package/dist/index.mjs +4 -7
- package/dist/swagger.json +7139 -2355
- package/dist/ui/client/.vite/ssr-manifest.json +15 -90
- package/dist/ui/client/assets/index-DJBdH-x_.js +64 -0
- package/dist/ui/client/index.html +1 -1
- package/dist/ui/server/server.js +1120 -23992
- package/dist/utils/error.d.ts.map +1 -1
- package/dist/utils/error.mjs +7 -8
- package/dist/utils/error.mjs.map +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.mjs +2 -1
- package/dist/utils/url.d.ts +10 -0
- package/dist/utils/url.d.ts.map +1 -0
- package/dist/utils/url.mjs +17 -0
- package/dist/utils/url.mjs.map +1 -0
- package/package.json +28 -28
- package/dist/adapters/http/server/index.d.ts +0 -3
- package/dist/adapters/http/server/index.d.ts.map +0 -1
- package/dist/adapters/http/server/index.mjs +0 -2
- package/dist/adapters/http/server/module.d.ts +0 -3
- package/dist/adapters/http/server/module.d.ts.map +0 -1
- package/dist/adapters/http/server/module.mjs +0 -10
- package/dist/adapters/http/server/module.mjs.map +0 -1
- package/dist/adapters/http/server/type.d.ts +0 -8
- package/dist/adapters/http/server/type.d.ts.map +0 -1
- package/dist/adapters/http/server/type.mjs +0 -1
- package/dist/adapters/http/swagger/index.d.ts +0 -3
- package/dist/adapters/http/swagger/index.d.ts.map +0 -1
- package/dist/adapters/http/swagger/index.mjs +0 -2
- package/dist/adapters/http/swagger/module.d.ts +0 -12
- package/dist/adapters/http/swagger/module.d.ts.map +0 -1
- package/dist/adapters/http/swagger/module.mjs +0 -75
- package/dist/adapters/http/swagger/module.mjs.map +0 -1
- package/dist/adapters/http/swagger/type.d.ts +0 -4
- package/dist/adapters/http/swagger/type.d.ts.map +0 -1
- package/dist/adapters/http/swagger/type.mjs +0 -1
- package/dist/app/modules/swagger/index.d.ts +0 -2
- package/dist/app/modules/swagger/index.d.ts.map +0 -1
- package/dist/app/modules/swagger/index.mjs +0 -2
- package/dist/app/modules/swagger/module.d.ts +0 -9
- package/dist/app/modules/swagger/module.d.ts.map +0 -1
- package/dist/app/modules/swagger/module.mjs +0 -32
- package/dist/app/modules/swagger/module.mjs.map +0 -1
- package/dist/cli/commands/swagger.d.ts +0 -8
- package/dist/cli/commands/swagger.d.ts.map +0 -1
- package/dist/cli/commands/swagger.mjs +0 -29
- package/dist/cli/commands/swagger.mjs.map +0 -1
- package/dist/ui/client/assets/index-Noe7uiOY.js +0 -41
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var e;(function(e){e.WILDCARD=`*`,e.GLOBSTAR=`**`})(e||={});var t=function(e){return e.LEFT=`left`,e.RIGHT=`right`,e}({});function n(e){return!!e&&typeof e==`object`&&!Array.isArray(e)}function r(e){return e!==`__proto__`&&e!==`prototype`&&e!==`constructor`}function i(e,t){if(Object.is(e,t))return!0;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(e instanceof RegExp&&t instanceof RegExp)return e.toString()===t.toString();if(n(e)&&n(t)){let n=Reflect.ownKeys(e),r=Reflect.ownKeys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++){let a=n[r];if(!Reflect.has(t,a)||!i(e[a],t[a]))return!1}return!0}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!i(e[n],t[n]))return!1;return!0}return!1}function a(e){for(let t=0;t<e.length;t++)for(let n=e.length-1;n>t;n--)i(e[t],e[n])&&e.splice(n,1);return e}var o=(()=>{if(typeof globalThis<`u`)return globalThis;if(typeof self<`u`)return self;if(typeof window<`u`)return window;if(typeof global<`u`)return global;throw Error(`unable to locate global object`)})();function s(e){let t=new WeakMap,r=e=>{if(Array.isArray(e)){if(t.has(e))return t.get(e);let n=[];return t.set(e,n),e.map(e=>n.push(r(e))),n}if(n(e)){if(t.has(e))return t.get(e);let n={},i=Object.keys(e);t.set(e,n);for(let t=0;t<i.length;t++)n[i[t]]=r(e[i[t]]);return n}return e};return r(e)}function c(e){return o.structuredClone?o.structuredClone(e):s(e)}function l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function u(e={}){return e.array=e.array??!0,e.arrayDistinct=e.arrayDistinct??!1,e.clone=e.clone??!1,e.inPlace=e.inPlace??!1,e.priority=e.priority||t.LEFT,e.arrayPriority=e.arrayPriority||e.priority,e}function d(e){return e===t.LEFT?`${t.RIGHT}`:`${t.LEFT}`}function f(e,...i){let o,s,{priority:c}=e.options;if(i.length>=2&&Array.isArray(i.at(0))&&Array.isArray(i.at(-1))&&(c=e.options.arrayPriority),c===t.RIGHT?(o=i.pop(),s=i.pop()):(o=i.shift(),s=i.shift()),!s)return Array.isArray(o)&&e.options.arrayDistinct?a(o):o;if(Array.isArray(o)&&Array.isArray(s))return o.push(...s),e.options.arrayPriority===t.RIGHT?f(e,...i,o):f(e,o,...i);if(e.map.set(s,!0),n(o)&&n(s)){let i=Object.keys(s);for(let a=0;a<i.length;a++){let c=i[a];if(l(o,c)){if(!r(c)||e.options.strategy&&e.options.strategy(o,c,s[c])!==void 0)continue;if(n(o[c])&&n(s[c])){if(e.map.has(s[c])){let e=Object.keys(s[c]);for(let t=0;t<e.length;t++)r(e[t])&&!l(o[c],e[t])&&(o[c][e[t]]=s[c][e[t]]);continue}e.options.priority===t.RIGHT?o[c]=f(e,s[c],o[c]):o[c]=f(e,o[c],s[c]);continue}if(e.options.array&&Array.isArray(o[c])&&Array.isArray(s[c]))switch(e.options.priority===e.options.arrayPriority?e.options.arrayPriority:d(e.options.arrayPriority)){case t.LEFT:Object.assign(o,{[c]:f(e,o[c],s[c])});break;case t.RIGHT:Object.assign(o,{[c]:f(e,s[c],o[c])});break}}else Object.assign(o,{[c]:s[c]})}}return e.map=new WeakMap,e.options.priority===t.RIGHT?f(e,...i,o):f(e,o,...i)}function p(e){let n=u(e);return(...e)=>{if(!e.length)throw SyntaxError(`At least one input element is required.`);let r={options:n,map:new WeakMap};if(n.clone)return f(r,...c(e));if(!n.inPlace){if(Array.isArray(e.at(0))&&n.arrayPriority===t.LEFT)return e.unshift([]),f(r,...e);if(Array.isArray(e.at(-1))&&n.arrayPriority===t.RIGHT)return e.push([]),f(r,...e);n.priority===t.LEFT?e.unshift({}):e.push({})}return f(r,...e)}}var m=p();function h(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var g={},_=[],ee=()=>{},te=()=>!1,v=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ne=e=>e.startsWith(`onUpdate:`),y=Object.assign,re=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},ie=Object.prototype.hasOwnProperty,ae=(e,t)=>ie.call(e,t),b=Array.isArray,oe=e=>de(e)===`[object Map]`,se=e=>de(e)===`[object Set]`,ce=e=>de(e)===`[object Date]`,x=e=>typeof e==`function`,S=e=>typeof e==`string`,C=e=>typeof e==`symbol`,w=e=>typeof e==`object`&&!!e,le=e=>(w(e)||x(e))&&x(e.then)&&x(e.catch),ue=Object.prototype.toString,de=e=>ue.call(e),fe=e=>de(e).slice(8,-1),pe=e=>de(e)===`[object Object]`,me=e=>S(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,he=h(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),ge=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},_e=/-\w/g,ve=ge(e=>e.replace(_e,e=>e.slice(1).toUpperCase())),ye=/\B([A-Z])/g,be=ge(e=>e.replace(ye,`-$1`).toLowerCase()),xe=ge(e=>e.charAt(0).toUpperCase()+e.slice(1)),T=(e,t)=>!Object.is(e,t),Se=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Ce,we=()=>Ce||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{};function Te(e){if(b(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=S(r)?ke(r):Te(r);if(i)for(let e in i)t[e]=i[e]}return t}else if(S(e)||w(e))return e}var Ee=/;(?![^(]*\))/g,De=/:([^]+)/,Oe=/\/\*[^]*?\*\//g;function ke(e){let t={};return e.replace(Oe,``).split(Ee).forEach(e=>{if(e){let n=e.split(De);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Ae(e){let t=``;if(S(e))t=e;else if(b(e))for(let n=0;n<e.length;n++){let r=Ae(e[n]);r&&(t+=r+` `)}else if(w(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}function je(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Me(e[r],t[r]);return n}function Me(e,t){if(e===t)return!0;let n=ce(e),r=ce(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=C(e),r=C(t),n||r)return e===t;if(n=b(e),r=b(t),n||r)return n&&r?je(e,t):!1;if(n=w(e),r=w(t),n||r){if(!n||!r||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e){let r=e.hasOwnProperty(n),i=t.hasOwnProperty(n);if(r&&!i||!r&&i||!Me(e[n],t[n]))return!1}}return String(e)===String(t)}var Ne=e=>!!(e&&e.__v_isRef===!0),Pe=e=>S(e)?e:e==null?``:b(e)||w(e)&&(e.toString===ue||!x(e.toString))?Ne(e)?Pe(e.value):JSON.stringify(e,Fe,2):String(e),Fe=(e,t)=>Ne(t)?Fe(e,t.value):oe(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[Ie(t,r)+` =>`]=n,e),{})}:se(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Ie(e))}:C(t)?Ie(t):w(t)&&!b(t)&&!pe(t)?String(t):t,Ie=(e,t=``)=>C(e)?`Symbol(${e.description??t})`:e,Le;function Re(){return Le}var E,ze=new WeakSet,Be=class{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Le&&Le.active&&Le.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,ze.has(this)&&(ze.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||We(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,nt(this),qe(this);let e=E,t=D;E=this,D=!0;try{return this.fn()}finally{Je(this),E=e,D=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)Ze(e);this.deps=this.depsTail=void 0,nt(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?ze.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ye(this)&&this.run()}get dirty(){return Ye(this)}},Ve=0,He,Ue;function We(e,t=!1){if(e.flags|=8,t){e.next=Ue,Ue=e;return}e.next=He,He=e}function Ge(){Ve++}function Ke(){if(--Ve>0)return;if(Ue){let e=Ue;for(Ue=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;He;){let t=He;for(He=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||=t}t=n}}if(e)throw e}function qe(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Je(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),Ze(r),Qe(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function Ye(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Xe(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Xe(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===rt)||(e.globalVersion=rt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ye(e))))return;e.flags|=2;let t=e.dep,n=E,r=D;E=e,D=!0;try{qe(e);let n=e.fn(e._value);(t.version===0||T(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{E=n,D=r,Je(e),e.flags&=-3}}function Ze(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)Ze(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Qe(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}var D=!0,$e=[];function et(){$e.push(D),D=!1}function tt(){let e=$e.pop();D=e===void 0?!0:e}function nt(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=E;E=void 0;try{t()}finally{E=e}}}var rt=0,it=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},at=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!E||!D||E===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==E)t=this.activeLink=new it(E,this),E.deps?(t.prevDep=E.depsTail,E.depsTail.nextDep=t,E.depsTail=t):E.deps=E.depsTail=t,ot(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=E.depsTail,t.nextDep=void 0,E.depsTail.nextDep=t,E.depsTail=t,E.deps===t&&(E.deps=e)}return t}trigger(e){this.version++,rt++,this.notify(e)}notify(e){Ge();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{Ke()}}};function ot(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)ot(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var st=new WeakMap,ct=Symbol(``),lt=Symbol(``),ut=Symbol(``);function O(e,t,n){if(D&&E){let t=st.get(e);t||st.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new at),r.map=t,r.key=n),r.track()}}function dt(e,t,n,r,i,a){let o=st.get(e);if(!o){rt++;return}let s=e=>{e&&e.trigger()};if(Ge(),t===`clear`)o.forEach(s);else{let i=b(e),a=i&&me(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===ut||!C(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(ut)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(ct)),oe(e)&&s(o.get(lt)));break;case`delete`:i||(s(o.get(ct)),oe(e)&&s(o.get(lt)));break;case`set`:oe(e)&&s(o.get(ct));break}}Ke()}function ft(e){let t=j(e);return t===e?t:(O(t,`iterate`,ut),A(e)?t:t.map(Xt))}function pt(e){return O(e=j(e),`iterate`,ut),e}function k(e,t){return qt(e)?Zt(Kt(e)?Xt(t):t):Xt(t)}var mt={__proto__:null,[Symbol.iterator](){return ht(this,Symbol.iterator,e=>k(this,e))},concat(...e){return ft(this).concat(...e.map(e=>b(e)?ft(e):e))},entries(){return ht(this,`entries`,e=>(e[1]=k(this,e[1]),e))},every(e,t){return _t(this,`every`,e,t,void 0,arguments)},filter(e,t){return _t(this,`filter`,e,t,e=>e.map(e=>k(this,e)),arguments)},find(e,t){return _t(this,`find`,e,t,e=>k(this,e),arguments)},findIndex(e,t){return _t(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return _t(this,`findLast`,e,t,e=>k(this,e),arguments)},findLastIndex(e,t){return _t(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return _t(this,`forEach`,e,t,void 0,arguments)},includes(...e){return yt(this,`includes`,e)},indexOf(...e){return yt(this,`indexOf`,e)},join(e){return ft(this).join(e)},lastIndexOf(...e){return yt(this,`lastIndexOf`,e)},map(e,t){return _t(this,`map`,e,t,void 0,arguments)},pop(){return bt(this,`pop`)},push(...e){return bt(this,`push`,e)},reduce(e,...t){return vt(this,`reduce`,e,t)},reduceRight(e,...t){return vt(this,`reduceRight`,e,t)},shift(){return bt(this,`shift`)},some(e,t){return _t(this,`some`,e,t,void 0,arguments)},splice(...e){return bt(this,`splice`,e)},toReversed(){return ft(this).toReversed()},toSorted(e){return ft(this).toSorted(e)},toSpliced(...e){return ft(this).toSpliced(...e)},unshift(...e){return bt(this,`unshift`,e)},values(){return ht(this,`values`,e=>k(this,e))}};function ht(e,t,n){let r=pt(e),i=r[t]();return r!==e&&!A(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}var gt=Array.prototype;function _t(e,t,n,r,i,a){let o=pt(e),s=o!==e&&!A(e),c=o[t];if(c!==gt[t]){let t=c.apply(e,a);return s?Xt(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,k(e,t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));let u=c.call(o,l,r);return s&&i?i(u):u}function vt(e,t,n,r){let i=pt(e),a=i!==e&&!A(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=k(e,t)),n.call(this,t,k(e,r),i,e)}):n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)}));let c=i[t](o,...r);return s?k(e,c):c}function yt(e,t,n){let r=j(e);O(r,`iterate`,ut);let i=r[t](...n);return(i===-1||i===!1)&&Jt(n[0])?(n[0]=j(n[0]),r[t](...n)):i}function bt(e,t,n=[]){et(),Ge();let r=j(e)[t].apply(e,n);return Ke(),tt(),r}var xt=h(`__proto__,__v_isRef,__isVue`),St=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(C));function Ct(e){C(e)||(e=String(e));let t=j(this);return O(t,`has`,e),t.hasOwnProperty(e)}var wt=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t===`__v_skip`)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?Bt:zt:i?Rt:Lt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=b(e);if(!r){let e;if(a&&(e=mt[t]))return e;if(t===`hasOwnProperty`)return Ct}let o=Reflect.get(e,t,M(e)?e:n);if((C(t)?St.has(t):xt(t))||(r||O(e,`get`,t),i))return o;if(M(o)){let e=a&&me(t)?o:o.value;return r&&w(e)?Wt(e):e}return w(o)?r?Wt(o):Ut(o):o}},Tt=class extends wt{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=b(e)&&me(t);if(!this._isShallow){let e=qt(i);if(!A(n)&&!qt(n)&&(i=j(i),n=j(n)),!a&&M(i)&&!M(n))return e||(i.value=n),!0}let o=a?Number(t)<e.length:ae(e,t),s=Reflect.set(e,t,n,M(e)?e:r);return e===j(r)&&(o?T(n,i)&&dt(e,`set`,t,n,i):dt(e,`add`,t,n)),s}deleteProperty(e,t){let n=ae(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&dt(e,`delete`,t,void 0,r),i}has(e,t){let n=Reflect.has(e,t);return(!C(t)||!St.has(t))&&O(e,`has`,t),n}ownKeys(e){return O(e,`iterate`,b(e)?`length`:ct),Reflect.ownKeys(e)}},Et=class extends wt{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},Dt=new Tt,Ot=new Et,kt=e=>e,At=e=>Reflect.getPrototypeOf(e);function jt(e,t,n){return function(...r){let i=this.__v_raw,a=j(i),o=oe(a),s=e===`entries`||e===Symbol.iterator&&o,c=e===`keys`&&o,l=i[e](...r),u=n?kt:t?Zt:Xt;return!t&&O(a,`iterate`,c?lt:ct),y(Object.create(l),{next(){let{value:e,done:t}=l.next();return t?{value:e,done:t}:{value:s?[u(e[0]),u(e[1])]:u(e),done:t}}})}}function Mt(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function Nt(e,t){let n={get(n){let r=this.__v_raw,i=j(r),a=j(n);e||(T(n,a)&&O(i,`get`,n),O(i,`get`,a));let{has:o}=At(i),s=t?kt:e?Zt:Xt;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&O(j(t),`iterate`,ct),t.size},has(t){let n=this.__v_raw,r=j(n),i=j(t);return e||(T(t,i)&&O(r,`has`,t),O(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=j(a),s=t?kt:e?Zt:Xt;return!e&&O(o,`iterate`,ct),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return y(n,e?{add:Mt(`add`),set:Mt(`set`),delete:Mt(`delete`),clear:Mt(`clear`)}:{add(e){let n=j(this),r=At(n),i=j(e),a=!t&&!A(e)&&!qt(e)?i:e;return r.has.call(n,a)||T(e,a)&&r.has.call(n,e)||T(i,a)&&r.has.call(n,i)||(n.add(a),dt(n,`add`,a,a)),this},set(e,n){!t&&!A(n)&&!qt(n)&&(n=j(n));let r=j(this),{has:i,get:a}=At(r),o=i.call(r,e);o||=(e=j(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?T(n,s)&&dt(r,`set`,e,n,s):dt(r,`add`,e,n),this},delete(e){let t=j(this),{has:n,get:r}=At(t),i=n.call(t,e);i||=(e=j(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&dt(t,`delete`,e,void 0,a),o},clear(){let e=j(this),t=e.size!==0,n=e.clear();return t&&dt(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=jt(r,e,t)}),n}function Pt(e,t){let n=Nt(e,t);return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(ae(n,r)&&r in t?n:t,r,i)}var Ft={get:Pt(!1,!1)},It={get:Pt(!0,!1)},Lt=new WeakMap,Rt=new WeakMap,zt=new WeakMap,Bt=new WeakMap;function Vt(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function Ht(e){return e.__v_skip||!Object.isExtensible(e)?0:Vt(fe(e))}function Ut(e){return qt(e)?e:Gt(e,!1,Dt,Ft,Lt)}function Wt(e){return Gt(e,!0,Ot,It,zt)}function Gt(e,t,n,r,i){if(!w(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;let a=Ht(e);if(a===0)return e;let o=i.get(e);if(o)return o;let s=new Proxy(e,a===2?r:n);return i.set(e,s),s}function Kt(e){return qt(e)?Kt(e.__v_raw):!!(e&&e.__v_isReactive)}function qt(e){return!!(e&&e.__v_isReadonly)}function A(e){return!!(e&&e.__v_isShallow)}function Jt(e){return e?!!e.__v_raw:!1}function j(e){let t=e&&e.__v_raw;return t?j(t):e}function Yt(e){return!ae(e,`__v_skip`)&&Object.isExtensible(e)&&Se(e,`__v_skip`,!0),e}var Xt=e=>w(e)?Ut(e):e,Zt=e=>w(e)?Wt(e):e;function M(e){return e?e.__v_isRef===!0:!1}function Qt(e){return en(e,!1)}function $t(e){return en(e,!0)}function en(e,t){return M(e)?e:new tn(e,t)}var tn=class{constructor(e,t){this.dep=new at,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:j(e),this._value=t?e:Xt(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||A(e)||qt(e);e=n?e:j(e),T(e,t)&&(this._rawValue=e,this._value=n?e:Xt(e),this.dep.trigger())}};function N(e){return M(e)?e.value:e}var nn={get:(e,t,n)=>t===`__v_raw`?e:N(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return M(i)&&!M(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function rn(e){return Kt(e)?e:new Proxy(e,nn)}var an=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new at(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=rt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&E!==this)return We(this,!0),!0}get value(){let e=this.dep.track();return Xe(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function on(e,t,n=!1){let r,i;return x(e)?r=e:(r=e.get,i=e.set),new an(r,i,n)}var sn={},cn=new WeakMap,ln=void 0;function un(e,t=!1,n=ln){if(n){let t=cn.get(n);t||cn.set(n,t=[]),t.push(e)}}function dn(e,t,n=g){let{immediate:r,deep:i,once:a,scheduler:o,augmentJob:s,call:c}=n,l=e=>i?e:A(e)||i===!1||i===0?fn(e,1):fn(e),u,d,f,p,m=!1,h=!1;if(M(e)?(d=()=>e.value,m=A(e)):Kt(e)?(d=()=>l(e),m=!0):b(e)?(h=!0,m=e.some(e=>Kt(e)||A(e)),d=()=>e.map(e=>{if(M(e))return e.value;if(Kt(e))return l(e);if(x(e))return c?c(e,2):e()})):d=x(e)?t?c?()=>c(e,2):e:()=>{if(f){et();try{f()}finally{tt()}}let t=ln;ln=u;try{return c?c(e,3,[p]):e(p)}finally{ln=t}}:ee,t&&i){let e=d,t=i===!0?1/0:i;d=()=>fn(e(),t)}let _=Re(),te=()=>{u.stop(),_&&_.active&&re(_.effects,u)};if(a&&t){let e=t;t=(...t)=>{e(...t),te()}}let v=h?Array(e.length).fill(sn):sn,ne=e=>{if(!(!(u.flags&1)||!u.dirty&&!e))if(t){let e=u.run();if(i||m||(h?e.some((e,t)=>T(e,v[t])):T(e,v))){f&&f();let n=ln;ln=u;try{let n=[e,v===sn?void 0:h&&v[0]===sn?[]:v,p];v=e,c?c(t,3,n):t(...n)}finally{ln=n}}}else u.run()};return s&&s(ne),u=new Be(d),u.scheduler=o?()=>o(ne,!1):ne,p=e=>un(e,!1,u),f=u.onStop=()=>{let e=cn.get(u);if(e){if(c)c(e,4);else for(let t of e)t();cn.delete(u)}},t?r?ne(!0):v=u.run():o?o(ne.bind(null,!0),!0):u.run(),te.pause=u.pause.bind(u),te.resume=u.resume.bind(u),te.stop=te,te}function fn(e,t=1/0,n){if(t<=0||!w(e)||e.__v_skip||(n||=new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,M(e))fn(e.value,t,n);else if(b(e))for(let r=0;r<e.length;r++)fn(e[r],t,n);else if(se(e)||oe(e))e.forEach(e=>{fn(e,t,n)});else if(pe(e)){for(let r in e)fn(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&fn(e[r],t,n)}return e}function pn(e,t,n,r){try{return r?e(...r):e()}catch(e){hn(e,t,n)}}function mn(e,t,n,r){if(x(e)){let i=pn(e,t,n,r);return i&&le(i)&&i.catch(e=>{hn(e,t,n)}),i}if(b(e)){let i=[];for(let a=0;a<e.length;a++)i.push(mn(e[a],t,n,r));return i}}function hn(e,t,n,r=!0){let i=t?t.vnode:null,{errorHandler:a,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||g;if(t){let r=t.parent,i=t.proxy,o=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){let t=r.ec;if(t){for(let n=0;n<t.length;n++)if(t[n](e,i,o)===!1)return}r=r.parent}if(a){et(),pn(a,null,10,[e,i,o]),tt();return}}gn(e,n,i,r,o)}function gn(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}var P=[],_n=-1,vn=[],yn=null,bn=0,xn=Promise.resolve(),Sn=null;function Cn(e){let t=Sn||xn;return e?t.then(this?e.bind(this):e):t}function wn(e){let t=_n+1,n=P.length;for(;t<n;){let r=t+n>>>1,i=P[r],a=kn(i);a<e||a===e&&i.flags&2?t=r+1:n=r}return t}function Tn(e){if(!(e.flags&1)){let t=kn(e),n=P[P.length-1];!n||!(e.flags&2)&&t>=kn(n)?P.push(e):P.splice(wn(t),0,e),e.flags|=1,En()}}function En(){Sn||=xn.then(An)}function Dn(e){b(e)?vn.push(...e):yn&&e.id===-1?yn.splice(bn+1,0,e):e.flags&1||(vn.push(e),e.flags|=1),En()}function On(e){if(vn.length){let e=[...new Set(vn)].sort((e,t)=>kn(e)-kn(t));if(vn.length=0,yn){yn.push(...e);return}for(yn=e,bn=0;bn<yn.length;bn++){let e=yn[bn];e.flags&4&&(e.flags&=-2),e.flags&8||e(),e.flags&=-2}yn=null,bn=0}}var kn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function An(e){try{for(_n=0;_n<P.length;_n++){let e=P[_n];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),pn(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;_n<P.length;_n++){let e=P[_n];e&&(e.flags&=-2)}_n=-1,P.length=0,On(e),Sn=null,(P.length||vn.length)&&An(e)}}var jn=null,Mn=null;function Nn(e,t,n=!1){let r=Yr();if(r||gr){let i=gr?gr._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&x(t)?t.call(r&&r.proxy):t}}function Pn(){return!!(Yr()||gr)}var Fn=Symbol.for(`v-scx`),In=()=>Nn(Fn);function Ln(e,t,n){return Rn(e,t,n)}function Rn(e,t,n=g){let{immediate:r,deep:i,flush:a,once:o}=n,s=y({},n),c=t&&r||!t&&a!==`post`,l;if($r){if(a===`sync`){let e=In();l=e.__watcherHandles||=[]}else if(!c){let e=()=>{};return e.stop=ee,e.resume=ee,e.pause=ee,e}}let u=Jr;s.call=(e,t,n)=>mn(e,u,t,n);let d=!1;a===`post`?s.scheduler=e=>{wr(e,u&&u.suspense)}:a!==`sync`&&(d=!0,s.scheduler=(e,t)=>{t?e():Tn(e)}),s.augmentJob=e=>{t&&(e.flags|=4),d&&(e.flags|=2,u&&(e.id=u.uid,e.i=u))};let f=dn(e,t,s);return $r&&(l?l.push(f):c&&f()),f}function zn(e,t,n){let r=this.proxy,i=S(e)?e.includes(`.`)?Bn(r,e):()=>r[e]:e.bind(r,r),a;x(t)?a=t:(a=t.handler,n=t);let o=Zr(this),s=Rn(i,a.bind(r),n);return o(),s}function Bn(e,t){let n=t.split(`.`);return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}var Vn=e=>e.__isTeleport;function Hn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Hn(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Un(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}var Wn=new WeakMap;function Gn(e,t,n,r,i=!1){if(b(e)){e.forEach((e,a)=>Gn(e,t&&(b(t)?t[a]:t),n,r,i));return}if(qn(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Gn(e,t,n,r.component.subTree);return}let a=r.shapeFlag&4?ei(r.component):r.el,o=i?null:a,{i:s,r:c}=e,l=t&&t.r,u=s.refs===g?s.refs={}:s.refs,d=s.setupState,f=j(d),p=d===g?te:e=>Un(u,e)?!1:ae(f,e),m=(e,t)=>!(t&&Un(u,t));if(l!=null&&l!==c){if(Kn(t),S(l))u[l]=null,p(l)&&(d[l]=null);else if(M(l)){let e=t;m(l,e.k)&&(l.value=null),e.k&&(u[e.k]=null)}}if(x(c))pn(c,s,12,[o,u]);else{let t=S(c),r=M(c);if(t||r){let s=()=>{if(e.f){let n=t?p(c)?d[c]:u[c]:m(c)||!e.k?c.value:u[e.k];if(i)b(n)&&re(n,a);else if(b(n))n.includes(a)||n.push(a);else if(t)u[c]=[a],p(c)&&(d[c]=u[c]);else{let t=[a];m(c,e.k)&&(c.value=t),e.k&&(u[e.k]=t)}}else t?(u[c]=o,p(c)&&(d[c]=o)):r&&(m(c,e.k)&&(c.value=o),e.k&&(u[e.k]=o))};if(o){let t=()=>{s(),Wn.delete(e)};t.id=-1,Wn.set(e,t),wr(t,n)}else Kn(e),s()}}}function Kn(e){let t=Wn.get(e);t&&(t.flags|=8,Wn.delete(e))}we().requestIdleCallback,we().cancelIdleCallback;var qn=e=>!!e.type.__asyncLoader,Jn=e=>e.type.__isKeepAlive;function Yn(e,t,n=Jr){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(Zn(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Jn(e.parent.vnode)&&Xn(r,t,n,e),e=e.parent}}function Xn(e,t,n,r){let i=Zn(t,e,r,!0);er(()=>{re(r[t],i)},n)}function Zn(e,t,n=Jr,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{et();let i=Zr(n),a=mn(t,n,e,r);return i(),tt(),a};return r?i.unshift(a):i.push(a),a}}var Qn=e=>(t,n=Jr)=>{(!$r||e===`sp`)&&Zn(e,(...e)=>t(...e),n)};Qn(`bm`);var $n=Qn(`m`);Qn(`bu`);Qn(`u`);Qn(`bum`);var er=Qn(`um`);Qn(`sp`);Qn(`rtg`);Qn(`rtc`);var tr=Symbol.for(`v-ndc`);function nr(e){return e.some(e=>Ir(e)?!(e.type===Mr||e.type===Ar&&!nr(e.children)):!0)?e:null}var rr=e=>e?Qr(e)?ei(e):rr(e.parent):null,ir=y(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>rr(e.parent),$root:e=>rr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>sr(e),$forceUpdate:e=>e.f||=()=>{Tn(e.update)},$nextTick:e=>e.n||=Cn.bind(e.proxy),$watch:e=>zn.bind(e)});function ar(e){return b(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function or(e,t,n,r){let i=r.includes(`.`)?Bn(n,r):()=>n[r];if(S(e)){let n=t[e];x(n)&&Ln(i,n)}else if(x(e))Ln(i,e.bind(n));else if(w(e))if(b(e))e.forEach(e=>or(e,t,n,r));else{let r=x(e.handler)?e.handler.bind(n):t[e.handler];x(r)&&Ln(i,r,e)}}function sr(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t),c;return s?c=s:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(e=>cr(c,e,o,!0)),cr(c,t,o)),w(t)&&a.set(t,c),c}function cr(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&cr(e,a,n,!0),i&&i.forEach(t=>cr(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=lr[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}var lr={data:ur,props:mr,emits:mr,methods:pr,computed:pr,beforeCreate:F,created:F,beforeMount:F,mounted:F,beforeUpdate:F,updated:F,beforeDestroy:F,beforeUnmount:F,destroyed:F,unmounted:F,activated:F,deactivated:F,errorCaptured:F,serverPrefetch:F,components:pr,directives:pr,watch:hr,provide:ur,inject:dr};function ur(e,t){return t?e?function(){return y(x(e)?e.call(this,this):e,x(t)?t.call(this,this):t)}:t:e}function dr(e,t){return pr(fr(e),fr(t))}function fr(e){if(b(e)){let t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function F(e,t){return e?[...new Set([].concat(e,t))]:t}function pr(e,t){return e?y(Object.create(null),e,t):t}function mr(e,t){return e?b(e)&&b(t)?[...new Set([...e,...t])]:y(Object.create(null),ar(e),ar(t??{})):t}function hr(e,t){if(!e)return t;if(!t)return e;let n=y(Object.create(null),e);for(let r in t)n[r]=F(e[r],t[r]);return n}var gr=null,_r=new WeakMap;function vr(e,t,n=!1){let r=n?_r:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},s=!1;if(!x(e)){let r=e=>{let n=vr(e,t,!0);n&&(s=!0,y(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!s?(w(e)&&r.set(e,null),null):(b(a)?a.forEach(e=>o[e]=null):y(o,a),w(e)&&r.set(e,o),o)}var yr={},br=e=>Object.getPrototypeOf(e)===yr,xr=new WeakMap;function Sr(e,t,n=!1){let r=n?xr:t.propsCache,i=r.get(e);if(i)return i;let a=e.props,o={},s=[],c=!1;if(!x(e)){let r=e=>{c=!0;let[n,r]=Sr(e,t,!0);y(o,n),r&&s.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!a&&!c)return w(e)&&r.set(e,_),_;if(b(a))for(let e=0;e<a.length;e++){let t=ve(a[e]);Cr(t)&&(o[t]=g)}else if(a)for(let e in a){let t=ve(e);if(Cr(t)){let n=a[e],r=o[t]=b(n)||x(n)?{type:n}:y({},n),i=r.type,c=!1,l=!0;if(b(i))for(let e=0;e<i.length;++e){let t=i[e],n=x(t)&&t.name;if(n===`Boolean`){c=!0;break}else n===`String`&&(l=!1)}else c=x(i)&&i.name===`Boolean`;r[0]=c,r[1]=l,(c||ae(r,`default`))&&s.push(t)}}let l=[o,s];return w(e)&&r.set(e,l),l}function Cr(e){return e[0]!==`$`&&!he(e)}var wr=kr;function Tr(e,t,n=!1){let r=e.children,i=t.children;if(b(r)&&b(i))for(let e=0;e<r.length;e++){let t=r[e],a=i[e];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[e]=Gr(i[e]),a.el=t.el),!n&&a.patchFlag!==-2&&Tr(t,a)),a.type===jr&&(a.patchFlag===-1&&(a=i[e]=Gr(a)),a.el=t.el),a.type===Mr&&!a.el&&(a.el=t.el)}}function Er(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Er(t)}function Dr(e){if(e.placeholder)return e.placeholder;let t=e.component;return t?Dr(t.subTree):null}var Or=e=>e.__isSuspense;function kr(e,t){t&&t.pendingBranch?b(e)?t.effects.push(...e):t.effects.push(e):Dn(e)}var Ar=Symbol.for(`v-fgt`),jr=Symbol.for(`v-txt`),Mr=Symbol.for(`v-cmt`),Nr=[],Pr=null,Fr=1;function Ir(e){return e?e.__v_isVNode===!0:!1}var Lr=({key:e})=>e??null,Rr=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:S(e)||M(e)||x(e)?{i:jn,r:e,k:t,f:!!n}:e);function zr(e,t=null,n=null,r=0,i=null,a=e===Ar?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Lr(t),ref:t&&Rr(t),scopeId:Mn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:jn};return s?(Kr(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=S(n)?8:16),Fr>0&&!o&&Pr&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&Pr.push(c),c}var Br=Vr;function Vr(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===tr)&&(e=Mr),Ir(e)){let r=Ur(e,t,!0);return n&&Kr(r,n),Fr>0&&!a&&Pr&&(r.shapeFlag&6?Pr[Pr.indexOf(e)]=r:Pr.push(r)),r.patchFlag=-2,r}if(ti(e)&&(e=e.__vccOpts),t){t=Hr(t);let{class:e,style:n}=t;e&&!S(e)&&(t.class=Ae(e)),w(n)&&(Jt(n)&&!b(n)&&(n=y({},n)),t.style=Te(n))}let o=S(e)?1:Or(e)?128:Vn(e)?64:w(e)?4:x(e)?2:0;return zr(e,t,n,r,i,o,a,!0)}function Hr(e){return e?Jt(e)||br(e)?y({},e):e:null}function Ur(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?qr(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Lr(l),ref:t&&t.ref?n&&a?b(a)?a.concat(Rr(t)):[a,Rr(t)]:Rr(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ar?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ur(e.ssContent),ssFallback:e.ssFallback&&Ur(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&Hn(u,c.clone(u)),u}function Wr(e=` `,t=0){return Br(jr,null,e,t)}function Gr(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ur(e)}function Kr(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(b(t))n=16;else if(typeof t==`object`)if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),Kr(e,n()),n._c&&(n._d=!0));return}else{n=32;let r=t._;!r&&!br(t)?t._ctx=jn:r===3&&jn&&(jn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else x(t)?(t={default:t,_ctx:jn},n=32):(t=String(t),r&64?(n=16,t=[Wr(t)]):n=8);e.children=t,e.shapeFlag|=n}function qr(...e){let t={};for(let n=0;n<e.length;n++){let r=e[n];for(let e in r)if(e===`class`)t.class!==r.class&&(t.class=Ae([t.class,r.class]));else if(e===`style`)t.style=Te([t.style,r.style]);else if(v(e)){let n=t[e],i=r[e];i&&n!==i&&!(b(n)&&n.includes(i))?t[e]=n?[].concat(n,i):i:i==null&&n==null&&!ne(e)&&(t[e]=i)}else e!==``&&(t[e]=r[e])}return t}var Jr=null,Yr=()=>Jr||jn,Xr;{let e=we(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};Xr=t(`__VUE_INSTANCE_SETTERS__`,e=>Jr=e),t(`__VUE_SSR_SETTERS__`,e=>$r=e)}var Zr=e=>{let t=Jr;return Xr(e),e.scope.on(),()=>{e.scope.off(),Xr(t)}};function Qr(e){return e.vnode.shapeFlag&4}var $r=!1;function ei(e){return e.exposed?e.exposeProxy||=new Proxy(rn(Yt(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ir)return ir[n](e)},has(e,t){return t in e||t in ir}}):e.proxy}function ti(e){return x(e)&&`__vccOpts`in e}var I=(e,t)=>on(e,t,$r);typeof window<`u`&&window.trustedTypes;var ni=/\s*!important$/;function ri(e,t,n){if(b(n))n.forEach(n=>ri(e,t,n));else if(n??=``,t.startsWith(`--`))e.setProperty(t,n);else{let r=oi(e,t);ni.test(n)?e.setProperty(be(r),n.replace(ni,``),`important`):e[r]=n}}var ii=[`Webkit`,`Moz`,`ms`],ai={};function oi(e,t){let n=ai[t];if(n)return n;let r=ve(t);if(r!==`filter`&&r in e)return ai[t]=r;r=xe(r);for(let n=0;n<ii.length;n++){let i=ii[n]+r;if(i in e)return ai[t]=i}return t}function si(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ci(e,t){if(t&&t._context&&t._context.provides&&t._context.provides[e])return t._context.provides[e];if(Pn())return Nn(e,void 0)}function li(e){return typeof e==`string`?Symbol.for(`VCStoreManager#${e}`):Symbol.for(`VCStoreManager`)}function ui(e){return e.toLowerCase().indexOf(`class`)!==-1}function di(e){return e.toLowerCase().indexOf(`style`)!==-1}function fi(e){return e.startsWith(`on`)}function pi(e){return e.toLowerCase().indexOf(`props`)!==-1}function mi(e){return ui(e)||di(e)||fi(e)||pi(e)}function hi(e,t,n){if(t===void 0)return n;if(n===void 0)return t;if(ui(e)){let{class:e}=qr({class:t},{class:n});return e}if(di(e)){let{style:e}=qr({style:t},{style:n});return e}if(fi(e)){let{[e]:r}=qr({[e]:t},{[e]:n});return r}return pi(e)?qr(t,n):t??n}function gi(e){if(!n(e))return!1;let{presets:t}=e;if(!n(t))return!1;let r=Object.keys(t);for(let e=0;e<r.length;e++)if(!si(t,r[e])||typeof t[r[e]]!=`boolean`)return!1;return!0}function _i(e){if(!n(e))return!1;let{defaults:t}=e;return typeof t==`boolean`}var vi=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope,vi&&window.document,vi&&window.navigator,vi&&window.location;function yi(e={}){return typeof e==`string`?{message:e}:e}function bi(e){return!!e&&typeof e==`object`&&!Array.isArray(e)}function xi(e){return bi(e)&&typeof e.message==`string`&&(typeof e.name==`string`||typeof e.stack==`string`)}function Si(e,t,n=/\{(\w+)\}/g){return Array.from(e.matchAll(n)).reduce((e,n)=>{let r=n[1];return r&&t[r]!==void 0?e.replace(n[0],String(t[r])):e},e)}function Ci(e){return e.replace(/([a-z])([A-Z])/g,`$1_$2`).replace(/([A-Z]+)([A-Z][a-z])/g,`$1_$2`).toUpperCase()}function wi(e){return bi(e)&&typeof e.toJSON==`function`?e.toJSON():xi(e)?{message:e.message}:e}var Ti=class extends Error{code;cause;errors;constructor(e={}){let t=yi(e),n=t.message||`An error occurred`;t.messageData&&(n=Si(n,t.messageData)),super(n),t.cause!==void 0&&(this.cause=t.cause),(this.name===void 0||this.name===`Error`)&&Object.defineProperty(this,`name`,{configurable:!0,enumerable:!1,value:this.constructor.name,writable:!0}),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),t.stack&&(this.stack=t.stack),this.code=t.code||Ci(this.constructor.name),t.errors!==void 0&&(this.errors=[...t.errors])}toJSON(){return{name:this.name,message:this.message,code:this.code,...this.cause!==void 0&&{cause:wi(this.cause)},...this.errors!==void 0&&{errors:this.errors.map(e=>wi(e))}}}},Ei={400:`Bad Request`,401:`Unauthorized`,403:`Forbidden`,404:`Not Found`,405:`Method Not Allowed`,406:`Not Acceptable`,407:`Proxy Authentication Required`,408:`Request Timeout`,409:`Conflict`,410:`Gone`,411:`Length Required`,412:`Precondition Failed`,413:`Request Entity Too Large`,414:`Request-URI Too Long`,415:`Unsupported Media Type`,416:`Requested Range Not Satisfiable`,417:`Expectation Failed`,418:`I'm a Teapot`,420:`Enhance Your Calm`,422:`Unprocessable Entity`,423:`Locked`,424:`Failed Dependency`,425:`Unordered Collection`,426:`Upgrade Required`,428:`Precondition Required`,429:`Too Many Requests`,431:`Request Header Fields Too Large`,444:`No Response`,449:`Retry With`,450:`Blocked By Windows Parental Controls`,499:`Client Closed Request`,500:`Internal Server Error`,501:`Not Implemented`,502:`Bad Gateway`,503:`Service Unavailable`,504:`Gateway Timeout`,505:`HTTP Version Not Supported`,506:`Variant Also Negotiates`,507:`Insufficient Storage`,508:`Loop Detected`,509:`Bandwidth Limit Exceeded`,510:`Not Extended`,511:`Network Authentication Required`};function Di(e){if(e==null)return 500;let t=Number.parseInt(`${e}`,10);return!Number.isInteger(t)||t<400||t>599?500:t}function Oi(e){if(e in Ei)return Ei[e]}var ki=class extends Ti{status;redirectURL;constructor(e={}){let t=typeof e==`string`?{message:e}:e,n=Di(t.status??t.statusCode);super({...t,message:t.message||Oi(n)}),this.status=n,this.redirectURL=t.redirectURL}get statusCode(){return this.status}toJSON(){return{...super.toJSON(),status:this.status}}},Ai=class extends ki{constructor(e={}){super(e)}},ji={code:`BAD_REQUEST`,status:400},Mi=class extends Ai{constructor(e={}){let t=typeof e==`string`?{message:e}:e;super({...t,code:t.code??ji.code,status:t.status??t.statusCode??ji.status})}},Ni=function(e){return e.HTTP_HEADER_AUTH_TYPE_UNSUPPORTED=`unsupported_auth_header_type`,e.HTTP_BEARER_TOKEN_MALFORMED=`bearer_token_malformed`,e.ENTITY_CREDENTIALS_INVALID=`invalid_credentials`,e.ENTITY_INACTIVE=`entity_inactive`,e.ENTITY_NOT_FOUND=`entity_not_found`,e.JWK_INVALID=`jwk_invalid`,e.JWK_NOT_FOUND=`jwk_not_found`,e.JWT_INVALID=`invalid_token`,e.JWT_INACTIVE=`inactive_token`,e.JWT_EXPIRED=`expired_token`,e.OAUTH_REDIRECT_URI_MISMATCH=`redirect_uri_mismatch`,e.OAUTH_CLIENT_INVALID=`invalid_client`,e.OAUTH_GRANT_INVALID=`invalid_grant`,e.OAUTH_GRANT_TYPE_UNSUPPORTED=`unsupported_token_grant_type`,e.OAUTH_REQUEST_INVALID=`invalid_request`,e.OAUTH_RESPONSE_TYPE_UNSUPPORTED=`unsupported_response_type`,e.OAUTH_SCOPE_INVALID=`invalid_scope`,e.OAUTH_SCOPE_INSUFFICIENT=`insufficient_scope`,e.PERMISSION_NOT_FOUND=`permission_not_found`,e.PERMISSION_DENIED=`permission_denied`,e.PERMISSION_EVALUATION_FAILED=`permission_evaluation_failed`,e.POLICY_EVALUATOR_NOT_FOUND=`policy_evaluator_not_found`,e.POLICY_EVALUATOR_NOT_PROCESSABLE=`policy_evaluator_not_processable`,e.POLICY_EVALUATOR_CONTEXT_INVALID=`policy_evaluator_context_invalid`,e}({});function Pi(e){return!!e&&typeof e==`object`&&!Array.isArray(e)}var Fi=class extends Mi{issues;data;constructor(e){super(e),this.issues=[],Pi(e)&&e.data&&(this.data=e.data)}toJSON(){return{...super.toJSON(),issues:this.issues,...this.data??{}}}};function Ii(e){let t=``;for(let n of e){let e=``;typeof n==`string`?(n=n.replace(/^\[(\d+)]$/g,`\\[$1]`),n=n.replace(/\./g,`\\.`),e=/^\d+$/.test(n)?`[${n}]`:t?`.${n}`:n):typeof n==`number`&&(e=`[${n}]`),t+=e}return t}function Li(e){return!!e&&typeof e==`object`&&!Array.isArray(e)}var Ri=new Set([`__proto__`,`constructor`,`prototype`]);function zi(e){return Ri.has(e)}var Bi=/(?<!\\)\[(\d+)]$/;function Vi(e){if(typeof e==`number`)return[e];if(typeof e==`symbol`)return[];let t=e.replace(/([^\\])\[/g,`$1.[`).match(/(\\\.|[^.]+?)+/g);if(!t)return[];let n=[];for(let e of t){if(zi(e))continue;let t=Bi.exec(e);t?n.push(Number(t[1])):n.push(e.replace(/\\([.[\]])/g,`$1`))}return n}var Hi=function(e){return e.WILDCARD=`*`,e.GLOBSTAR=`**`,e}({});function Ui(e,t,n=[],r=[]){let i=Array.isArray(t)?t:Vi(t);if(!i.length)return[{value:Ii(n),matches:r}];let a=i[0];if(typeof a==`symbol`)return[];let o=i.slice(1);return e!=null&&!Li(e)&&!Array.isArray(e)?a===Hi.GLOBSTAR?o.length?[]:[{value:Ii(n),matches:r}]:a===Hi.WILDCARD?[]:[{value:Ii([...n,...i]),matches:r}]:(e||={},a===Hi.WILDCARD?Object.keys(e).flatMap(t=>Ui(e[t],Ii(o),n.concat(t),r.concat(t))):a===Hi.GLOBSTAR?Object.keys(e).flatMap(t=>{let a=n.concat(t),s=e[t],c=Ui(s,Ii(i),a,[t]).concat(o[0]===t?Ui(s,Ii(o.slice(1)),a,[]):[]),l=[],u=[];for(let e of c)l.includes(e.value)||(l.push(e.value),u.push({value:e.value,matches:e.matches.length>0?[...r,e.matches.flat()]:r}));return u}):Ui(e[a],o,n.concat(a),r))}function Wi(e,t){return Ui(e,t)}function Gi(e,t){return Wi(e,t).map(e=>e.value)}function Ki(e,t){let n=Array.isArray(t)?t:Vi(t),r,i=e,a=0;for(;a<n.length&&!(i==null||zi(n[a]))&&n[a]in Object(i);)i=i[n[a]],a===n.length-1&&(r=i),a++;return r}var qi=/^\d+$/;function Ji(e,t,n){let r=Array.isArray(t)?t:Vi(t),i=e,a=0;for(;a<r.length&&!(!Array.isArray(i)&&!Li(i));){let e=r[a];if(zi(e))break;if(i[e]===void 0&&(qi.test(e)?i[e]=[]:i[e]={}),a===r.length-1){i[e]=n;break}a++,i=i[e]}return e}function Yi(e){return`Property ${String(e)} is invalid`}function Xi(e){let t;return t=Array.isArray(e)?a(e):Object.keys(e),t.length===0?`Properties are invalid`:t.length>1?`Properties ${t.join(`, `)} are invalid.`:Yi(t[0])}var Zi=function(e){return e.WILDCARD=`*`,e}({}),Qi=function(e){return e.UNDEFINED=`undefined`,e.NULL=`null`,e.FALSY=`falsy`,e}({});function $i(e,t){let n=t||Qi.UNDEFINED;return n===Qi.NULL?e==null:n===Qi.UNDEFINED?e===void 0:!e}function ea(e){return Ii(e)}var ta=class extends Error{constructor(e=[]){let t=e.map(e=>ea(e.path));super(Xi(t)),this.issues=e}};function na(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ra(e){return!!e&&typeof e==`object`&&!Array.isArray(e)}function ia(e){return Array.isArray(e)?e.every(e=>typeof e==`string`||typeof e==`number`||typeof e==`symbol`):!1}function aa(e){return!ra(e)||typeof e.message!=`string`||!ia(e.path)?!1:e.meta===void 0||ra(e.meta)}function oa(e){return!aa(e)||e.type!==`item`?!1:typeof e.code==`string`}function sa(e){return!aa(e)||e.type!==`group`?!1:Array.isArray(e.issues)&&e.issues.every(e=>oa(e)||sa(e))}function ca(e){return sa(e)||oa(e)}var la=function(e){return e.VALUE_INVALID=`value_invalid`,e.ONE_OF_FAILED=`one_of_failed`,e}({});function ua(e){return{type:`item`,...e,code:la.VALUE_INVALID||e.code}}function da(e){return{type:`group`,...e}}function fa(e){return ra(e)?typeof e.message==`string`:!1}function pa(e){return fa(e)?e instanceof ta?!0:na(e,`issues`)?Array.isArray(e.issues)&&e.issues.every(e=>ca(e)):!1:!1}function ma(e){return ra(e)&&typeof e.run==`function`&&typeof e.safeRun==`function`}var ha=class{mount(...e){if(e.length<1)throw SyntaxError(`The mount method requires at least one argument`);let t,n,r=!1,i={};for(let a=0;a<e.length;a++){let o=e[a];if(typeof o==`string`){t=o;continue}if(typeof o==`function`){n=o;continue}if(ma(o)){n=o,r=!0;continue}ra(o)&&(i=e[a])}if(!r&&(t===void 0||t.length===0))throw SyntaxError(`Only a container can be mounted without a key.`);if(n===void 0)throw SyntaxError(`No container/validator could be extracted from the fn arguments.`);if(ma(n)){this.items.push({options:i,data:n,path:t,type:`container`});return}this.items.push({options:i,data:n,path:t,type:`validator`})}async run(e={},t={}){let n;t.pathsToInclude?n=t.pathsToInclude:this.options.pathsToInclude&&(n=this.options.pathsToInclude);let r;t.pathsToExclude?r=t.pathsToExclude:this.options.pathsToInclude&&(r=this.options.pathsToExclude);let i={},a=[],o=0,s=0;for(let c=0;c<this.items.length;c++){let l=this.items[c];if(!this.isItemGroupIncluded(l,t.group))continue;let u=0,d=!1,f;f=l.path?Gi(e,l.path):[``];for(let o=0;o<f.length;o++){let s=f[o],c=s?Vi(s):[],p=c.at(-1),m=[...t.path?t.path:[],...c],h;if(h=s.length>0?na(i,s)?i[s]:Ki(e,s):e,!(n!==void 0&&n.indexOf(s)===-1)&&!(r!==void 0&&r.indexOf(s)!==-1)){try{if(l.options.optional&&$i(h,l.options.optionalValue))l.options.optionalInclude&&(i[s]=h);else if(l.type===`container`){let e=await l.data.run(ra(h)?h:{},{group:t.group,flat:!0,path:m,pathsToInclude:t.pathsToInclude}),n=Object.keys(e);for(let t=0;t<n.length;t++)i[this.mergePaths(s,n[t])]=e[n[t]]}else l.type===`validator`&&(i[s]=await l.data({key:s,path:m,value:h,data:e,group:t.group}))}catch(e){let t=[];if(pa(e))for(let n=0;n<e.issues.length;n++){let r=e.issues[n];t.push({...r,path:[...c,...r.path||[]]})}else fa(e)&&t.push(ua({path:c,message:e.message}));if(p)if(l.type===`container`||t.length>1){let e=da({message:Yi(p),path:c,issues:t});a.push(e)}else a.push(...t);else a.push(...t);d=!0}u++}}u>0&&(o++,d&&s++)}if(this.options.oneOf){if(s===o)throw new ta([da({code:la.ONE_OF_FAILED,message:`None of the branches succeeded`,issues:a,path:t.path?t.path:[]})])}else if(s>0)throw new ta(a);if(t.defaults){let e=Object.keys(t.defaults);for(let n=0;n<e.length;n++)(!na(i,e[n])||i[e[n]]===void 0)&&(i[e[n]]=t.defaults[e[n]])}if(t.flat)return i;let c={},l=Object.keys(i);for(let e=0;e<l.length;e++)Ji(c,l[e],i[l[e]]);return c}async safeRun(e={},t={}){try{return{success:!0,data:await this.run(e,t)}}catch(e){return pa(e)?{success:!1,error:e}:fa(e)?{success:!1,error:new ta([ua({path:[],message:e.message})])}:{success:!1,error:new ta}}}isItemGroupIncluded(e,t){if(t===Zi.WILDCARD)return!0;if(e.options.group){if(Array.isArray(e.options.group)){if(e.options.group.indexOf(Zi.WILDCARD)!==-1||t&&e.options.group.indexOf(t)!==-1)return!0}else if(e.options.group===Zi.WILDCARD||e.options.group===t)return!0;return!1}return!0}mergePaths(...e){let t=``;for(let n=0;n<e.length;n++){let r=e[n];!r||r.length===0||(r.at(0)===`.`?t+=r:t+=t.length>0?`.${r}`:r)}return t}initialize(){}constructor(e={}){this.options=e,this.items=[],this.initialize()}};function ga(e){let t=[];for(let n=0;n<e.issues.length;n++){let r=e.issues[n],i;na(r,`expected`)&&(i=r.expected);let a;na(r,`received`)&&(a=r.received),t.push(ua({path:r.path||[],message:r.message,expected:i,received:a}))}return t}function L(e){return async t=>{let n;n=typeof e==`function`?e(t):e;let r=await n.safeParseAsync(t.value);if(r.success)return r.data;throw new ta(ga(r.error))}}var _a;function R(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,`_zod`,{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;e<a.length;e++){let t=a[e];t in n||(n[t]=i[t].bind(n))}}let i=n?.Parent??Object;class a extends i{}Object.defineProperty(a,`name`,{value:e});function o(e){var t;let i=n?.Parent?new a:this;r(i,e),(t=i._zod).deferred??(t.deferred=[]);for(let e of i._zod.deferred)e();return i}return Object.defineProperty(o,`init`,{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>n?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,`name`,{value:e}),o}var va=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},ya=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}};(_a=globalThis).__zod_globalConfig??(_a.__zod_globalConfig={});var ba=globalThis.__zod_globalConfig;function xa(e){return e&&Object.assign(ba,e),ba}function Sa(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function Ca(e,t){return typeof t==`bigint`?t.toString():t}function wa(e){return{get value(){{let t=e();return Object.defineProperty(this,`value`,{value:t}),t}throw Error(`cached value already set`)}}}function Ta(e){return e==null}function Ea(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function Da(e,t){let n=e/t,r=Math.round(n),i=2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r)<i?0:n-r}var Oa=Symbol(`evaluating`);function z(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==Oa)return r===void 0&&(r=Oa,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function ka(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Aa(...e){let t={};for(let n of e)Object.assign(t,Object.getOwnPropertyDescriptors(n));return Object.defineProperties({},t)}function ja(e){return JSON.stringify(e)}function Ma(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}var Na=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function Pa(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var Fa=wa(()=>{if(ba.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function Ia(e){if(Pa(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return!(Pa(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}function La(e){return Ia(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}var Ra=new Set([`string`,`number`,`symbol`]);function za(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function Ba(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function B(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function Va(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}var Ha={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function Ua(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return Ba(e,Aa(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return ka(this,`shape`,e),e},checks:[]}))}function Wa(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return Ba(e,Aa(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return ka(this,`shape`,r),r},checks:[]}))}function Ga(e,t){if(!Ia(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return Ba(e,Aa(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return ka(this,`shape`,n),n}}))}function Ka(e,t){if(!Ia(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return Ba(e,Aa(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return ka(this,`shape`,n),n}}))}function qa(e,t){if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);return Ba(e,Aa(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return ka(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function Ja(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return Ba(t,Aa(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return ka(this,`shape`,i),i},checks:[]}))}function Ya(e,t,n){return Ba(t,Aa(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return ka(this,`shape`,i),i}}))}function Xa(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Za(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function Qa(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function $a(e){return typeof e==`string`?e:e?.message}function eo(e,t,n){let r=e.message?e.message:$a(e.inst?._zod.def?.error?.(e))??$a(t?.error?.(e))??$a(n.customError?.(e))??$a(n.localeError?.(e))??`Invalid input`,{inst:i,continue:a,input:o,...s}=e;return s.path??=[],s.message=r,t?.reportInput&&(s.input=o),s}function to(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function no(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}var ro=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,`_zod`,{value:e._zod,enumerable:!1}),Object.defineProperty(e,`issues`,{value:t,enumerable:!1}),e.message=JSON.stringify(t,Ca,2),Object.defineProperty(e,`toString`,{value:()=>e.message,enumerable:!1})},io=R(`$ZodError`,ro),ao=R(`$ZodError`,ro,{Parent:Error});function oo(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function so(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;i<e.length;){let n=e[i];i===e.length-1?(r[n]=r[n]||{_errors:[]},r[n]._errors.push(t(a))):r[n]=r[n]||{_errors:[]},r=r[n],i++}}}};return r(e),n}var co=e=>(t,n,r,i)=>{let a=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new va;if(o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>eo(e,a,xa())));throw Na(t,i?.callee),t}return o.value},lo=e=>async(t,n,r,i)=>{let a=r?{...r,async:!0}:{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>eo(e,a,xa())));throw Na(t,i?.callee),t}return o.value},uo=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new va;return a.issues.length?{success:!1,error:new(e??io)(a.issues.map(e=>eo(e,i,xa())))}:{success:!0,data:a.value}},fo=uo(ao),po=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>eo(e,i,xa())))}:{success:!0,data:a.value}},mo=po(ao),ho=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return co(e)(t,n,i)},go=e=>(t,n,r)=>co(e)(t,n,r),_o=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return lo(e)(t,n,i)},vo=e=>async(t,n,r)=>lo(e)(t,n,r),yo=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return uo(e)(t,n,i)},bo=e=>(t,n,r)=>uo(e)(t,n,r),xo=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return po(e)(t,n,i)},So=e=>async(t,n,r)=>po(e)(t,n,r),Co=/^[cC][0-9a-z]{6,}$/,wo=/^[0-9a-z]+$/,To=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Eo=/^[0-9a-vA-V]{20}$/,Do=/^[A-Za-z0-9]{27}$/,Oo=/^[a-zA-Z0-9_-]{21}$/,ko=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Ao=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,jo=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Mo=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,No=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;function Po(){return new RegExp(No,`u`)}var Fo=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Io=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Lo=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Ro=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,zo=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Bo=/^[A-Za-z0-9_-]*$/,Vo=/^https?$/,Ho=/^\+[1-9]\d{6,14}$/,Uo=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`,Wo=RegExp(`^${Uo}$`);function Go(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Ko(e){return RegExp(`^${Go(e)}$`)}function qo(e){let t=Go({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${Uo}T(?:${r})$`)}var Jo=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},Yo=/^-?\d+$/,Xo=/^-?\d+(?:\.\d+)?$/,Zo=/^(?:true|false)$/i,Qo=/^null$/i,$o=/^undefined$/i,es=/^[^A-Z]*$/,ts=/^[^a-z]*$/,V=R(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),ns={number:`number`,bigint:`bigint`,object:`date`},rs=R(`$ZodCheckLessThan`,(e,t)=>{V.init(e,t);let n=ns[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value<r&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:`too_big`,maximum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),is=R(`$ZodCheckGreaterThan`,(e,t)=>{V.init(e,t);let n=ns[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),as=R(`$ZodCheckMultipleOf`,(e,t)=>{V.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):Da(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),os=R(`$ZodCheckNumberFormat`,(e,t)=>{V.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=Ha[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=Yo)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}s<i&&o.issues.push({origin:`number`,input:s,code:`too_small`,minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),ss=R(`$ZodCheckMaxLength`,(e,t)=>{var n;V.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!Ta(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;if(r.length<=t.maximum)return;let i=to(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),cs=R(`$ZodCheckMinLength`,(e,t)=>{var n;V.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!Ta(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=to(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),ls=R(`$ZodCheckLengthEquals`,(e,t)=>{var n;V.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!Ta(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=to(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),us=R(`$ZodCheckStringFormat`,(e,t)=>{var n,r;V.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),ds=R(`$ZodCheckRegex`,(e,t)=>{us.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),fs=R(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=es,us.init(e,t)}),ps=R(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=ts,us.init(e,t)}),ms=R(`$ZodCheckIncludes`,(e,t)=>{V.init(e,t);let n=za(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),hs=R(`$ZodCheckStartsWith`,(e,t)=>{V.init(e,t);let n=RegExp(`^${za(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),gs=R(`$ZodCheckEndsWith`,(e,t)=>{V.init(e,t);let n=RegExp(`.*${za(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),_s=R(`$ZodCheckOverwrite`,(e,t)=>{V.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),vs=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(`
|
|
2
|
+
`).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.args,n=[...(this?.content??[``]).map(e=>` ${e}`)];return new e(...t,n.join(`
|
|
3
|
+
`))}},ys={major:4,minor:4,patch:3},H=R(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=ys;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=Xa(e),i;for(let a of t){if(a._zod.def.when){if(Za(e)||!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new va;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=Xa(e,t))});else{if(e.issues.length===t)continue;r||=Xa(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(Xa(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new va;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new va;return o.then(e=>t(e,r,a))}return t(o,r,a)}}z(e,`~standard`,()=>({validate:t=>{try{let n=fo(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return mo(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),bs=R(`$ZodString`,(e,t)=>{H.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Jo(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),U=R(`$ZodStringFormat`,(e,t)=>{us.init(e,t),bs.init(e,t)}),xs=R(`$ZodGUID`,(e,t)=>{t.pattern??=Ao,U.init(e,t)}),Ss=R(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=jo(e)}else t.pattern??=jo();U.init(e,t)}),Cs=R(`$ZodEmail`,(e,t)=>{t.pattern??=Mo,U.init(e,t)}),ws=R(`$ZodURL`,(e,t)=>{U.init(e,t),e._zod.check=n=>{try{let r=n.value.trim();if(!t.normalize&&t.protocol?.source===Vo.source&&!/^https?:\/\//i.test(r)){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}let i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),Ts=R(`$ZodEmoji`,(e,t)=>{t.pattern??=Po(),U.init(e,t)}),Es=R(`$ZodNanoID`,(e,t)=>{t.pattern??=Oo,U.init(e,t)}),Ds=R(`$ZodCUID`,(e,t)=>{t.pattern??=Co,U.init(e,t)}),Os=R(`$ZodCUID2`,(e,t)=>{t.pattern??=wo,U.init(e,t)}),ks=R(`$ZodULID`,(e,t)=>{t.pattern??=To,U.init(e,t)}),As=R(`$ZodXID`,(e,t)=>{t.pattern??=Eo,U.init(e,t)}),js=R(`$ZodKSUID`,(e,t)=>{t.pattern??=Do,U.init(e,t)}),Ms=R(`$ZodISODateTime`,(e,t)=>{t.pattern??=qo(t),U.init(e,t)}),Ns=R(`$ZodISODate`,(e,t)=>{t.pattern??=Wo,U.init(e,t)}),Ps=R(`$ZodISOTime`,(e,t)=>{t.pattern??=Ko(t),U.init(e,t)}),Fs=R(`$ZodISODuration`,(e,t)=>{t.pattern??=ko,U.init(e,t)}),Is=R(`$ZodIPv4`,(e,t)=>{t.pattern??=Fo,U.init(e,t),e._zod.bag.format=`ipv4`}),Ls=R(`$ZodIPv6`,(e,t)=>{t.pattern??=Io,U.init(e,t),e._zod.bag.format=`ipv6`,e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),Rs=R(`$ZodCIDRv4`,(e,t)=>{t.pattern??=Lo,U.init(e,t)}),zs=R(`$ZodCIDRv6`,(e,t)=>{t.pattern??=Ro,U.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}});function Bs(e){if(e===``)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}var Vs=R(`$ZodBase64`,(e,t)=>{t.pattern??=zo,U.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{Bs(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}});function Hs(e){if(!Bo.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return Bs(t.padEnd(Math.ceil(t.length/4)*4,`=`))}var Us=R(`$ZodBase64URL`,(e,t)=>{t.pattern??=Bo,U.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{Hs(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),Ws=R(`$ZodE164`,(e,t)=>{t.pattern??=Ho,U.init(e,t)});function Gs(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}var Ks=R(`$ZodJWT`,(e,t)=>{U.init(e,t),e._zod.check=n=>{Gs(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),qs=R(`$ZodNumber`,(e,t)=>{H.init(e,t),e._zod.pattern=e._zod.bag.pattern??Xo,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:`Infinity`:void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),Js=R(`$ZodNumberFormat`,(e,t)=>{os.init(e,t),qs.init(e,t)}),Ys=R(`$ZodBoolean`,(e,t)=>{H.init(e,t),e._zod.pattern=Zo,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),Xs=R(`$ZodUndefined`,(e,t)=>{H.init(e,t),e._zod.pattern=$o,e._zod.values=new Set([void 0]),e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`undefined`,code:`invalid_type`,input:r,inst:e}),t}}),Zs=R(`$ZodNull`,(e,t)=>{H.init(e,t),e._zod.pattern=Qo,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{let r=t.value;return r===null||t.issues.push({expected:`null`,code:`invalid_type`,input:r,inst:e}),t}}),Qs=R(`$ZodUnknown`,(e,t)=>{H.init(e,t),e._zod.parse=e=>e}),$s=R(`$ZodNever`,(e,t)=>{H.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)}),ec=R(`$ZodDate`,(e,t)=>{H.init(e,t),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}let i=n.value,a=i instanceof Date;return a&&!Number.isNaN(i.getTime())||n.issues.push({expected:`date`,code:`invalid_type`,input:i,...a?{received:`Invalid Date`}:{},inst:e}),n}});function tc(e,t,n){e.issues.length&&t.issues.push(...Qa(n,e.issues)),t.value[n]=e.value}var nc=R(`$ZodArray`,(e,t)=>{H.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;e<i.length;e++){let o=i[e],s=t.element._zod.run({value:o,issues:[]},r);s instanceof Promise?a.push(s.then(t=>tc(t,n,e))):tc(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}});function rc(e,t,n,r,i,a){let o=n in r;if(e.issues.length){if(i&&a&&!o)return;t.issues.push(...Qa(n,e.issues))}if(!o&&!i){e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]});return}e.value===void 0?o&&(t.value[n]=void 0):t.value[n]=e.value}function ic(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=Va(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function ac(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optin===`optional`,d=c.optout===`optional`;for(let i in t){if(i===`__proto__`||s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>rc(e,n,i,t,u,d))):rc(a,n,i,t,u,d)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}var oc=R(`$ZodObject`,(e,t)=>{if(H.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,`shape`,{get:()=>{let n={...e};return Object.defineProperty(t,`shape`,{value:n}),n}})}let n=wa(()=>ic(t));z(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=Pa,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optin===`optional`,i=n._zod.optout===`optional`,a=n._zod.run({value:s[e],issues:[]},o);a instanceof Promise?c.push(a.then(n=>rc(n,t,e,s,r,i))):rc(a,t,e,s,r,i)}return i?ac(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),sc=R(`$ZodObjectJIT`,(e,t)=>{oc.init(e,t);let n=e._zod.parse,r=wa(()=>ic(t)),i=e=>{let t=new vs([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=ja(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let r of n.keys){let n=a[r],o=ja(r),s=e[r],c=s?._zod?.optin===`optional`,l=s?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),c&&l?t.write(`
|
|
4
|
+
if (${n}.issues.length) {
|
|
5
|
+
if (${o} in input) {
|
|
6
|
+
payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
|
|
7
|
+
...iss,
|
|
8
|
+
path: iss.path ? [${o}, ...iss.path] : [${o}]
|
|
9
|
+
})));
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
if (${n}.value === undefined) {
|
|
14
|
+
if (${o} in input) {
|
|
15
|
+
newResult[${o}] = undefined;
|
|
16
|
+
}
|
|
17
|
+
} else {
|
|
18
|
+
newResult[${o}] = ${n}.value;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
`):c?t.write(`
|
|
22
|
+
if (${n}.issues.length) {
|
|
23
|
+
payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
|
|
24
|
+
...iss,
|
|
25
|
+
path: iss.path ? [${o}, ...iss.path] : [${o}]
|
|
26
|
+
})));
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
if (${n}.value === undefined) {
|
|
30
|
+
if (${o} in input) {
|
|
31
|
+
newResult[${o}] = undefined;
|
|
32
|
+
}
|
|
33
|
+
} else {
|
|
34
|
+
newResult[${o}] = ${n}.value;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
`):t.write(`
|
|
38
|
+
const ${n}_present = ${o} in input;
|
|
39
|
+
if (${n}.issues.length) {
|
|
40
|
+
payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
|
|
41
|
+
...iss,
|
|
42
|
+
path: iss.path ? [${o}, ...iss.path] : [${o}]
|
|
43
|
+
})));
|
|
44
|
+
}
|
|
45
|
+
if (!${n}_present && !${n}.issues.length) {
|
|
46
|
+
payload.issues.push({
|
|
47
|
+
code: "invalid_type",
|
|
48
|
+
expected: "nonoptional",
|
|
49
|
+
input: undefined,
|
|
50
|
+
path: [${o}]
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
if (${n}_present) {
|
|
55
|
+
if (${n}.value === undefined) {
|
|
56
|
+
newResult[${o}] = undefined;
|
|
57
|
+
} else {
|
|
58
|
+
newResult[${o}] = ${n}.value;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
`)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=Pa,s=!ba.jitless,c=s&&Fa.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?ac([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}});function cc(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!Xa(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>eo(e,r,xa())))}),t)}var lc=R(`$ZodUnion`,(e,t)=>{H.init(e,t),z(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),z(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),z(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),z(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>Ea(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>cc(t,r,e,i)):cc(o,r,e,i)}}),uc=R(`$ZodIntersection`,(e,t)=>{H.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>fc(e,t,n)):fc(e,i,a)}});function dc(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Ia(e)&&Ia(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=dc(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=dc(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function fc(e,t,n){let r=new Map,i;for(let n of t.issues)if(n.code===`unrecognized_keys`){i??=n;for(let e of n.keys)r.has(e)||r.set(e,{}),r.get(e).l=!0}else e.issues.push(n);for(let t of n.issues)if(t.code===`unrecognized_keys`)for(let e of t.keys)r.has(e)||r.set(e,{}),r.get(e).r=!0;else e.issues.push(t);let a=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),Xa(e))return e;let o=dc(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}var pc=R(`$ZodEnum`,(e,t)=>{H.init(e,t);let n=Sa(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>Ra.has(typeof e)).map(e=>typeof e==`string`?za(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),mc=R(`$ZodTransform`,(e,t)=>{H.init(e,t),e._zod.optin=`optional`,e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new ya(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n.fallback=!0,n));if(i instanceof Promise)throw new va;return n.value=i,n.fallback=!0,n}});function hc(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var gc=R(`$ZodOptional`,(e,t)=>{H.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,z(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),z(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${Ea(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=e.value,i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(e=>hc(e,r)):hc(i,r)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),_c=R(`$ZodExactOptional`,(e,t)=>{gc.init(e,t),z(e._zod,`values`,()=>t.innerType._zod.values),z(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),vc=R(`$ZodNullable`,(e,t)=>{H.init(e,t),z(e._zod,`optin`,()=>t.innerType._zod.optin),z(e._zod,`optout`,()=>t.innerType._zod.optout),z(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${Ea(e.source)}|null)$`):void 0}),z(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),yc=R(`$ZodDefault`,(e,t)=>{H.init(e,t),e._zod.optin=`optional`,z(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>bc(e,t)):bc(r,t)}});function bc(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var xc=R(`$ZodPrefault`,(e,t)=>{H.init(e,t),e._zod.optin=`optional`,z(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),Sc=R(`$ZodNonOptional`,(e,t)=>{H.init(e,t),z(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>Cc(t,e)):Cc(i,e)}});function Cc(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}var wc=R(`$ZodCatch`,(e,t)=>{H.init(e,t),e._zod.optin=`optional`,z(e._zod,`optout`,()=>t.innerType._zod.optout),z(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>eo(e,n,xa()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>eo(e,n,xa()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),Tc=R(`$ZodPipe`,(e,t)=>{H.init(e,t),z(e._zod,`values`,()=>t.in._zod.values),z(e._zod,`optin`,()=>t.in._zod.optin),z(e._zod,`optout`,()=>t.out._zod.optout),z(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>Ec(e,t.in,n)):Ec(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>Ec(e,t.out,n)):Ec(r,t.out,n)}});function Ec(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}var Dc=R(`$ZodReadonly`,(e,t)=>{H.init(e,t),z(e._zod,`propValues`,()=>t.innerType._zod.propValues),z(e._zod,`values`,()=>t.innerType._zod.values),z(e._zod,`optin`,()=>t.innerType?._zod?.optin),z(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(Oc):Oc(r)}});function Oc(e){return e.value=Object.freeze(e.value),e}var kc=R(`$ZodCustom`,(e,t)=>{V.init(e,t),H.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>Ac(t,n,r,e));Ac(i,n,r,e)}});function Ac(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(no(e))}}var jc,Mc=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function Nc(){return new Mc}(jc=globalThis).__zod_globalRegistry??(jc.__zod_globalRegistry=Nc());var Pc=globalThis.__zod_globalRegistry;function Fc(e,t){return new e({type:`string`,...B(t)})}function Ic(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...B(t)})}function Lc(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...B(t)})}function Rc(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...B(t)})}function zc(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...B(t)})}function Bc(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...B(t)})}function Vc(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...B(t)})}function Hc(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...B(t)})}function Uc(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...B(t)})}function Wc(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...B(t)})}function Gc(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...B(t)})}function Kc(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...B(t)})}function qc(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...B(t)})}function Jc(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...B(t)})}function Yc(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...B(t)})}function Xc(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...B(t)})}function Zc(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...B(t)})}function Qc(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...B(t)})}function $c(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...B(t)})}function el(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...B(t)})}function tl(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...B(t)})}function nl(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...B(t)})}function rl(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...B(t)})}function il(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...B(t)})}function al(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...B(t)})}function ol(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...B(t)})}function sl(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...B(t)})}function cl(e,t){return new e({type:`number`,checks:[],...B(t)})}function ll(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...B(t)})}function ul(e,t){return new e({type:`boolean`,...B(t)})}function dl(e,t){return new e({type:`undefined`,...B(t)})}function fl(e,t){return new e({type:`null`,...B(t)})}function pl(e){return new e({type:`unknown`})}function ml(e,t){return new e({type:`never`,...B(t)})}function hl(e,t){return new e({type:`date`,...B(t)})}function gl(e,t){return new rs({check:`less_than`,...B(t),value:e,inclusive:!1})}function _l(e,t){return new rs({check:`less_than`,...B(t),value:e,inclusive:!0})}function vl(e,t){return new is({check:`greater_than`,...B(t),value:e,inclusive:!1})}function yl(e,t){return new is({check:`greater_than`,...B(t),value:e,inclusive:!0})}function bl(e,t){return new as({check:`multiple_of`,...B(t),value:e})}function xl(e,t){return new ss({check:`max_length`,...B(t),maximum:e})}function Sl(e,t){return new cs({check:`min_length`,...B(t),minimum:e})}function Cl(e,t){return new ls({check:`length_equals`,...B(t),length:e})}function wl(e,t){return new ds({check:`string_format`,format:`regex`,...B(t),pattern:e})}function Tl(e){return new fs({check:`string_format`,format:`lowercase`,...B(e)})}function El(e){return new ps({check:`string_format`,format:`uppercase`,...B(e)})}function Dl(e,t){return new ms({check:`string_format`,format:`includes`,...B(t),includes:e})}function Ol(e,t){return new hs({check:`string_format`,format:`starts_with`,...B(t),prefix:e})}function kl(e,t){return new gs({check:`string_format`,format:`ends_with`,...B(t),suffix:e})}function Al(e){return new _s({check:`overwrite`,tx:e})}function jl(e){return Al(t=>t.normalize(e))}function Ml(){return Al(e=>e.trim())}function Nl(){return Al(e=>e.toLowerCase())}function Pl(){return Al(e=>e.toUpperCase())}function Fl(){return Al(e=>Ma(e))}function Il(e,t,n){return new e({type:`array`,element:t,...B(n)})}function Ll(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...B(n)})}function Rl(e,t){let n=zl(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(no(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=t.value,r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(no(r))}},e(t.value,t)),t);return n}function zl(e,t){let n=new V({check:`custom`,...B(t)});return n._zod.check=e,n}function Bl(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??Pc,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function W(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,W(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&G(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function Vl(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>
|
|
63
|
+
|
|
64
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function Hl(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(s.$ref&&n.def)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e===`$ref`||e===`allOf`||e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,`~standard`,{value:{...t[`~standard`],jsonSchema:{input:Wl(t,`input`,e.processors),output:Wl(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function G(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return G(r.element,n);if(r.type===`set`)return G(r.valueType,n);if(r.type===`lazy`)return G(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type===`default`||r.type===`prefault`)return G(r.innerType,n);if(r.type===`intersection`)return G(r.left,n)||G(r.right,n);if(r.type===`record`||r.type===`map`)return G(r.keyType,n)||G(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:G(r.in,n)||G(r.out,n);if(r.type===`object`){for(let e in r.shape)if(G(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(G(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(G(e,n))return!0;return!!(r.rest&&G(r.rest,n))}return!1}var Ul=(e,t={})=>n=>{let r=Bl({...n,processors:t});return W(e,r),Vl(r,e),Hl(r,e)},Wl=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=Bl({...i??{},target:a,io:t,processors:n});return W(e,o),Vl(o,e),Hl(o,e)},Gl={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},Kl=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=Gl[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},ql=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;typeof s==`string`&&s.includes(`int`)?i.type=`integer`:i.type=`number`;let d=typeof u==`number`&&u>=(a??-1/0),f=typeof l==`number`&&l<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;d?p?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l:typeof o==`number`&&(i.maximum=o),typeof c==`number`&&(i.multipleOf=c)},Jl=(e,t,n,r)=>{n.type=`boolean`},Yl=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},Xl=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Undefined cannot be represented in JSON Schema`)},Zl=(e,t,n,r)=>{n.not={}},Ql=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Date cannot be represented in JSON Schema`)},$l=(e,t,n,r)=>{let i=e._zod.def,a=Sa(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},eu=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},tu=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},nu=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=W(a.element,t,{...r,path:[...r.path,`items`]})},ru=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=W(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=W(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},iu=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>W(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},au=(e,t,n,r)=>{let i=e._zod.def,a=W(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=W(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},ou=(e,t,n,r)=>{let i=e._zod.def,a=W(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},su=(e,t,n,r)=>{let i=e._zod.def;W(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},cu=(e,t,n,r)=>{let i=e._zod.def;W(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},lu=(e,t,n,r)=>{let i=e._zod.def;W(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},uu=(e,t,n,r)=>{let i=e._zod.def;W(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},du=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;W(o,t,r);let s=t.seen.get(e);s.ref=o},fu=(e,t,n,r)=>{let i=e._zod.def;W(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},pu=(e,t,n,r)=>{let i=e._zod.def;W(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},mu=R(`ZodISODateTime`,(e,t)=>{Ms.init(e,t),J.init(e,t)});function hu(e){return il(mu,e)}var gu=R(`ZodISODate`,(e,t)=>{Ns.init(e,t),J.init(e,t)});function _u(e){return al(gu,e)}var vu=R(`ZodISOTime`,(e,t)=>{Ps.init(e,t),J.init(e,t)});function yu(e){return ol(vu,e)}var bu=R(`ZodISODuration`,(e,t)=>{Fs.init(e,t),J.init(e,t)});function xu(e){return sl(bu,e)}var K=R(`ZodError`,(e,t)=>{io.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>so(e,t)},flatten:{value:t=>oo(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,Ca,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,Ca,2)}},isEmpty:{get(){return e.issues.length===0}}})},{Parent:Error}),Su=co(K),Cu=lo(K),wu=uo(K),Tu=po(K),Eu=ho(K),Du=go(K),Ou=_o(K),ku=vo(K),Au=yo(K),ju=bo(K),Mu=xo(K),Nu=So(K),Pu=new WeakMap;function Fu(e,t,n){let r=Object.getPrototypeOf(e),i=Pu.get(r);if(i||(i=new Set,Pu.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}}var q=R(`ZodType`,(e,t)=>(H.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:Wl(e,`input`),output:Wl(e,`output`)}}),e.toJSONSchema=Ul(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,`_def`,{value:t}),e.parse=(t,n)=>Su(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>wu(e,t,n),e.parseAsync=async(t,n)=>Cu(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>Tu(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>Eu(e,t,n),e.decode=(t,n)=>Du(e,t,n),e.encodeAsync=async(t,n)=>Ou(e,t,n),e.decodeAsync=async(t,n)=>ku(e,t,n),e.safeEncode=(t,n)=>Au(e,t,n),e.safeDecode=(t,n)=>ju(e,t,n),e.safeEncodeAsync=async(t,n)=>Mu(e,t,n),e.safeDecodeAsync=async(t,n)=>Nu(e,t,n),Fu(e,`ZodType`,{check(...e){let t=this.def;return this.clone(Aa(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return Ba(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(Yd(e,t))},superRefine(e,t){return this.check(Xd(e,t))},overwrite(e){return this.check(Al(e))},optional(){return jd(this)},exactOptional(){return Nd(this)},nullable(){return Fd(this)},nullish(){return jd(Fd(this))},nonoptional(e){return Vd(this,e)},array(){return yd(this)},or(e){return Cd([this,e])},and(e){return Td(this,e)},transform(e){return Gd(this,kd(e))},default(e){return Ld(this,e)},prefault(e){return zd(this,e)},catch(e){return Ud(this,e)},pipe(e){return Gd(this,e)},readonly(){return qd(this)},describe(e){let t=this.clone();return Pc.add(t,{description:e}),t},meta(...e){if(e.length===0)return Pc.get(this);let t=this.clone();return Pc.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,`description`,{get(){return Pc.get(e)?.description},configurable:!0}),e)),Iu=R(`_ZodString`,(e,t)=>{bs.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Kl(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,Fu(e,`_ZodString`,{regex(...e){return this.check(wl(...e))},includes(...e){return this.check(Dl(...e))},startsWith(...e){return this.check(Ol(...e))},endsWith(...e){return this.check(kl(...e))},min(...e){return this.check(Sl(...e))},max(...e){return this.check(xl(...e))},length(...e){return this.check(Cl(...e))},nonempty(...e){return this.check(Sl(1,...e))},lowercase(e){return this.check(Tl(e))},uppercase(e){return this.check(El(e))},trim(){return this.check(Ml())},normalize(...e){return this.check(jl(...e))},toLowerCase(){return this.check(Nl())},toUpperCase(){return this.check(Pl())},slugify(){return this.check(Fl())}})}),Lu=R(`ZodString`,(e,t)=>{bs.init(e,t),Iu.init(e,t),e.email=t=>e.check(Ic(zu,t)),e.url=t=>e.check(Hc(Uu,t)),e.jwt=t=>e.check(rl(id,t)),e.emoji=t=>e.check(Uc(Wu,t)),e.guid=t=>e.check(Lc(Bu,t)),e.uuid=t=>e.check(Rc(Vu,t)),e.uuidv4=t=>e.check(zc(Vu,t)),e.uuidv6=t=>e.check(Bc(Vu,t)),e.uuidv7=t=>e.check(Vc(Vu,t)),e.nanoid=t=>e.check(Wc(Gu,t)),e.guid=t=>e.check(Lc(Bu,t)),e.cuid=t=>e.check(Gc(Ku,t)),e.cuid2=t=>e.check(Kc(qu,t)),e.ulid=t=>e.check(qc(Ju,t)),e.base64=t=>e.check(el(td,t)),e.base64url=t=>e.check(tl(nd,t)),e.xid=t=>e.check(Jc(Yu,t)),e.ksuid=t=>e.check(Yc(Xu,t)),e.ipv4=t=>e.check(Xc(Zu,t)),e.ipv6=t=>e.check(Zc(Qu,t)),e.cidrv4=t=>e.check(Qc($u,t)),e.cidrv6=t=>e.check($c(ed,t)),e.e164=t=>e.check(nl(rd,t)),e.datetime=t=>e.check(hu(t)),e.date=t=>e.check(_u(t)),e.time=t=>e.check(yu(t)),e.duration=t=>e.check(xu(t))});function Ru(e){return Fc(Lu,e)}var J=R(`ZodStringFormat`,(e,t)=>{U.init(e,t),Iu.init(e,t)}),zu=R(`ZodEmail`,(e,t)=>{Cs.init(e,t),J.init(e,t)}),Bu=R(`ZodGUID`,(e,t)=>{xs.init(e,t),J.init(e,t)}),Vu=R(`ZodUUID`,(e,t)=>{Ss.init(e,t),J.init(e,t)});function Hu(e){return Rc(Vu,e)}var Uu=R(`ZodURL`,(e,t)=>{ws.init(e,t),J.init(e,t)}),Wu=R(`ZodEmoji`,(e,t)=>{Ts.init(e,t),J.init(e,t)}),Gu=R(`ZodNanoID`,(e,t)=>{Es.init(e,t),J.init(e,t)}),Ku=R(`ZodCUID`,(e,t)=>{Ds.init(e,t),J.init(e,t)}),qu=R(`ZodCUID2`,(e,t)=>{Os.init(e,t),J.init(e,t)}),Ju=R(`ZodULID`,(e,t)=>{ks.init(e,t),J.init(e,t)}),Yu=R(`ZodXID`,(e,t)=>{As.init(e,t),J.init(e,t)}),Xu=R(`ZodKSUID`,(e,t)=>{js.init(e,t),J.init(e,t)}),Zu=R(`ZodIPv4`,(e,t)=>{Is.init(e,t),J.init(e,t)}),Qu=R(`ZodIPv6`,(e,t)=>{Ls.init(e,t),J.init(e,t)}),$u=R(`ZodCIDRv4`,(e,t)=>{Rs.init(e,t),J.init(e,t)}),ed=R(`ZodCIDRv6`,(e,t)=>{zs.init(e,t),J.init(e,t)}),td=R(`ZodBase64`,(e,t)=>{Vs.init(e,t),J.init(e,t)}),nd=R(`ZodBase64URL`,(e,t)=>{Us.init(e,t),J.init(e,t)}),rd=R(`ZodE164`,(e,t)=>{Ws.init(e,t),J.init(e,t)}),id=R(`ZodJWT`,(e,t)=>{Ks.init(e,t),J.init(e,t)}),ad=R(`ZodNumber`,(e,t)=>{qs.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ql(e,t,n,r),Fu(e,`ZodNumber`,{gt(e,t){return this.check(vl(e,t))},gte(e,t){return this.check(yl(e,t))},min(e,t){return this.check(yl(e,t))},lt(e,t){return this.check(gl(e,t))},lte(e,t){return this.check(_l(e,t))},max(e,t){return this.check(_l(e,t))},int(e){return this.check(cd(e))},safe(e){return this.check(cd(e))},positive(e){return this.check(vl(0,e))},nonnegative(e){return this.check(yl(0,e))},negative(e){return this.check(gl(0,e))},nonpositive(e){return this.check(_l(0,e))},multipleOf(e,t){return this.check(bl(e,t))},step(e,t){return this.check(bl(e,t))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function od(e){return cl(ad,e)}var sd=R(`ZodNumberFormat`,(e,t)=>{Js.init(e,t),ad.init(e,t)});function cd(e){return ll(sd,e)}var ld=R(`ZodBoolean`,(e,t)=>{Ys.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Jl(e,t,n,r)});function Y(e){return ul(ld,e)}var ud=R(`ZodUndefined`,(e,t)=>{Xs.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Xl(e,t,n,r)});function X(e){return dl(ud,e)}var dd=R(`ZodNull`,(e,t)=>{Zs.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Yl(e,t,n,r)});function Z(e){return fl(dd,e)}var fd=R(`ZodUnknown`,(e,t)=>{Qs.init(e,t),q.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function pd(){return pl(fd)}var md=R(`ZodNever`,(e,t)=>{$s.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Zl(e,t,n,r)});function hd(e){return ml(md,e)}var gd=R(`ZodDate`,(e,t)=>{ec.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ql(e,t,n,r),e.min=(t,n)=>e.check(yl(t,n)),e.max=(t,n)=>e.check(_l(t,n));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function _d(e){return hl(gd,e)}var vd=R(`ZodArray`,(e,t)=>{nc.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nu(e,t,n,r),e.element=t.element,Fu(e,`ZodArray`,{min(e,t){return this.check(Sl(e,t))},nonempty(e){return this.check(Sl(1,e))},max(e,t){return this.check(xl(e,t))},length(e,t){return this.check(Cl(e,t))},unwrap(){return this.element}})});function yd(e,t){return Il(vd,e,t)}var bd=R(`ZodObject`,(e,t)=>{sc.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ru(e,t,n,r),z(e,`shape`,()=>t.shape),Fu(e,`ZodObject`,{keyof(){return Dd(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:pd()})},loose(){return this.clone({...this._zod.def,catchall:pd()})},strict(){return this.clone({...this._zod.def,catchall:hd()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return Ga(this,e)},safeExtend(e){return Ka(this,e)},merge(e){return qa(this,e)},pick(e){return Ua(this,e)},omit(e){return Wa(this,e)},partial(...e){return Ja(Ad,this,e[0])},required(...e){return Ya(Bd,this,e[0])}})});function xd(e,t){return new bd({type:`object`,shape:e,catchall:pd(),...B(t)})}var Sd=R(`ZodUnion`,(e,t)=>{lc.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>iu(e,t,n,r),e.options=t.options});function Cd(e,t){return new Sd({type:`union`,options:e,...B(t)})}var wd=R(`ZodIntersection`,(e,t)=>{uc.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>au(e,t,n,r)});function Td(e,t){return new wd({type:`intersection`,left:e,right:t})}var Ed=R(`ZodEnum`,(e,t)=>{pc.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$l(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new Ed({...t,checks:[],...B(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new Ed({...t,checks:[],...B(r),entries:i})}});function Dd(e,t){return new Ed({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...B(t)})}var Od=R(`ZodTransform`,(e,t)=>{mc.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>tu(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new ya(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(no(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(no(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}});function kd(e){return new Od({type:`transform`,transform:e})}var Ad=R(`ZodOptional`,(e,t)=>{gc.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>pu(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function jd(e){return new Ad({type:`optional`,innerType:e})}var Md=R(`ZodExactOptional`,(e,t)=>{_c.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>pu(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Nd(e){return new Md({type:`optional`,innerType:e})}var Pd=R(`ZodNullable`,(e,t)=>{vc.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ou(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Fd(e){return new Pd({type:`nullable`,innerType:e})}var Id=R(`ZodDefault`,(e,t)=>{yc.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>cu(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Ld(e,t){return new Id({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():La(t)}})}var Rd=R(`ZodPrefault`,(e,t)=>{xc.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>lu(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function zd(e,t){return new Rd({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():La(t)}})}var Bd=R(`ZodNonOptional`,(e,t)=>{Sc.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>su(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Vd(e,t){return new Bd({type:`nonoptional`,innerType:e,...B(t)})}var Hd=R(`ZodCatch`,(e,t)=>{wc.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>uu(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Ud(e,t){return new Hd({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}var Wd=R(`ZodPipe`,(e,t)=>{Tc.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>du(e,t,n,r),e.in=t.in,e.out=t.out});function Gd(e,t){return new Wd({type:`pipe`,in:e,out:t})}var Kd=R(`ZodReadonly`,(e,t)=>{Dc.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>fu(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function qd(e){return new Kd({type:`readonly`,innerType:e})}var Jd=R(`ZodCustom`,(e,t)=>{kc.init(e,t),q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>eu(e,t,n,r)});function Yd(e,t={}){return Ll(Jd,e,t)}function Xd(e,t){return Rl(e,t)}var Zd=function(e){return e.AFFIRMATIVE=`affirmative`,e.UNANIMOUS=`unanimous`,e.CONSENSUS=`consensus`,e}({});function Qd(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function $d(e){return!!e&&typeof e==`object`&&!Array.isArray(e)}function ef(e){let t={},n=Object.keys(e);for(let r of n){let n=e[r];if($d(n)){let e=ef(n),i=Object.keys(e);for(let n of i)t[`${r}.${n}`]=e[n];continue}t[r]=e[r]}return t}function tf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?tf(Object(n),!0).forEach(function(t){rf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function af(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return Object.keys(e).reduce((n,r)=>(t.includes(r)||(n[r]=N(e[r])),n),{})}function of(e){return typeof e==`function`}function sf(e,t,n){let r=e,i=t.split(`.`);for(let e=0;e<i.length;e++){if(!r[i[e]])return n;r=r[i[e]]}return r}function cf(e,t,n){return I(()=>e.some(e=>sf(t,e,{[n]:!1})[n]))}function lf(e,t,n){return I(()=>e.reduce((e,r)=>{let i=sf(t,r,{[n]:!1})[n]||[];return e.concat(i)},[]))}function uf(e,t,n,r){return e.call(r,N(t),N(n),r)}function df(e){return e.$valid===void 0?!e:!e.$valid}function ff(e,t,n,r,i,a,o){let{$lazy:s,$rewardEarly:c}=i,l=arguments.length>7&&arguments[7]!==void 0?arguments[7]:[],u=arguments.length>8?arguments[8]:void 0,d=arguments.length>9?arguments[9]:void 0,f=arguments.length>10?arguments[10]:void 0,p=Qt(!!r.value),m=Qt(0);return n.value=!1,{$invalid:p,$unwatch:Ln([t,r].concat(l,f),()=>{if(s&&!r.value||c&&!d.value&&!n.value)return;let i;try{i=uf(e,t,u,o)}catch(e){i=Promise.reject(e)}m.value++,n.value=!!m.value,p.value=!1,Promise.resolve(i).then(e=>{m.value--,n.value=!!m.value,a.value=e,p.value=df(e)}).catch(e=>{m.value--,n.value=!!m.value,a.value=e,p.value=!0})},{immediate:!0,deep:typeof t==`object`})}}function pf(e,t,n,r,i,a,o,s){let{$lazy:c,$rewardEarly:l}=r;return{$unwatch:()=>({}),$invalid:I(()=>{if(c&&!n.value||l&&!s.value)return!1;let r=!0;try{let n=uf(e,t,o,a);i.value=n,r=df(n)}catch(e){i.value=e}return r})}}function mf(e,t,n,r,i,a,o,s,c,l,u){let d=Qt(!1),f=e.$params||{},p=Qt(null),m,h;e.$async?{$invalid:m,$unwatch:h}=ff(e.$validator,t,d,n,r,p,i,e.$watchTargets,c,l,u):{$invalid:m,$unwatch:h}=pf(e.$validator,t,n,r,p,i,c,l);let g=e.$message;return{$message:of(g)?I(()=>g(af({$pending:d,$invalid:m,$params:af(f),$model:t,$response:p,$validator:a,$propertyPath:s,$property:o}))):g||``,$params:f,$pending:d,$invalid:m,$response:p,$unwatch:h}}function hf(){let e=N(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}),t=Object.keys(e),n={},r={},i={},a=null;return t.forEach(t=>{let o=e[t];switch(!0){case of(o.$validator):n[t]=o;break;case of(o):n[t]={$validator:o};break;case t===`$validationGroups`:a=o;break;case t.startsWith(`$`):i[t]=o;break;default:r[t]=o}}),{rules:n,nestedValidators:r,config:i,validationGroups:a}}var gf=`__root`;function _f(e,t,n,r,i,a,o,s,c){let l=Object.keys(e),u=r.get(i,e),d=Qt(!1),f=Qt(!1),p=Qt(0);if(u){if(!u.$partial)return u;u.$unwatch(),d.value=u.$dirty.value}let m={$dirty:d,$path:i,$touch:()=>{d.value||=!0},$reset:()=>{d.value&&=!1},$commit:()=>{}};return l.length?(l.forEach(r=>{m[r]=mf(e[r],t,m.$dirty,a,o,r,n,i,c,f,p)}),m.$externalResults=I(()=>s.value?[].concat(s.value).map((e,t)=>({$propertyPath:i,$property:n,$validator:`$externalResults`,$uid:`${i}-externalResult-${t}`,$message:e,$params:{},$response:null,$pending:!1})):[]),m.$invalid=I(()=>{let e=l.some(e=>N(m[e].$invalid));return f.value=e,!!m.$externalResults.value.length||e}),m.$pending=I(()=>l.some(e=>N(m[e].$pending))),m.$error=I(()=>m.$dirty.value?m.$pending.value||m.$invalid.value:!1),m.$silentErrors=I(()=>l.filter(e=>N(m[e].$invalid)).map(e=>{let t=m[e];return Ut({$propertyPath:i,$property:n,$validator:e,$uid:`${i}-${e}`,$message:t.$message,$params:t.$params,$response:t.$response,$pending:t.$pending})}).concat(m.$externalResults.value)),m.$errors=I(()=>m.$dirty.value?m.$silentErrors.value:[]),m.$unwatch=()=>l.forEach(e=>{m[e].$unwatch()}),m.$commit=()=>{f.value=!0,p.value=Date.now()},r.set(i,e,m),m):(u&&r.set(i,e,m),m)}function vf(e,t,n,r,i,a,o){let s=Object.keys(e);return s.length?s.reduce((s,c)=>(s[c]=bf({validations:e[c],state:t,key:c,parentKey:n,resultsCache:r,globalConfig:i,instance:a,externalResults:o}),s),{}):{}}function yf(e,t,n){let r=I(()=>[t,n].filter(e=>e).reduce((e,t)=>e.concat(Object.values(N(t))),[])),i=I({get(){return e.$dirty.value||(r.value.length?r.value.every(e=>e.$dirty):!1)},set(t){e.$dirty.value=t}}),a=I(()=>{let t=N(e.$silentErrors)||[],n=r.value.filter(e=>(N(e).$silentErrors||[]).length).reduce((e,t)=>e.concat(...t.$silentErrors),[]);return t.concat(n)}),o=I(()=>{let t=N(e.$errors)||[],n=r.value.filter(e=>(N(e).$errors||[]).length).reduce((e,t)=>e.concat(...t.$errors),[]);return t.concat(n)}),s=I(()=>r.value.some(e=>e.$invalid)||N(e.$invalid)||!1),c=I(()=>r.value.some(e=>N(e.$pending))||N(e.$pending)||!1),l=I(()=>r.value.some(e=>e.$dirty)||r.value.some(e=>e.$anyDirty)||i.value),u=I(()=>i.value?c.value||s.value:!1),d=()=>{e.$touch(),r.value.forEach(e=>{e.$touch()})};return r.value.length&&r.value.every(e=>e.$dirty)&&d(),{$dirty:i,$errors:o,$invalid:s,$anyDirty:l,$error:u,$pending:c,$touch:d,$reset:()=>{e.$reset(),r.value.forEach(e=>{e.$reset()})},$silentErrors:a,$commit:()=>{e.$commit(),r.value.forEach(e=>{e.$commit()})}}}function bf(e){let{validations:t,state:n,key:r,parentKey:i,childResults:a,resultsCache:o,globalConfig:s={},instance:c,externalResults:l}=e,u=i?`${i}.${r}`:r,{rules:d,nestedValidators:f,config:p,validationGroups:m}=hf(t),h=nf(nf({},s),p),g=r?I(()=>{let e=N(n);return e?N(e[r]):void 0}):n,_=nf({},N(l)||{}),ee=I(()=>{let e=N(l);return r?e?N(e[r]):void 0:e}),te=_f(d,g,r,o,u,h,c,ee,n),v=vf(f,g,u,o,h,c,ee),ne={};m&&Object.entries(m).forEach(e=>{let[t,n]=e;ne[t]={$invalid:cf(n,v,`$invalid`),$error:cf(n,v,`$error`),$pending:cf(n,v,`$pending`),$errors:lf(n,v,`$errors`),$silentErrors:lf(n,v,`$silentErrors`)}});let{$dirty:y,$errors:re,$invalid:ie,$anyDirty:ae,$error:b,$pending:oe,$touch:se,$reset:ce,$silentErrors:x,$commit:S}=yf(te,v,a),C=r?I({get:()=>N(g),set:e=>{y.value=!0;let t=N(n),i=N(l);i&&(i[r]=_[r]),M(t[r])?t[r].value=e:t[r]=e}}):null;r&&h.$autoDirty&&Ln(g,()=>{y.value||se();let e=N(l);e&&(e[r]=_[r])},{flush:`sync`});async function w(){return se(),h.$rewardEarly&&(S(),await Cn()),await Cn(),new Promise(e=>{if(!oe.value)return e(!ie.value);let t=Ln(oe,()=>{e(!ie.value),t()})})}function le(e){return(a.value||{})[e]}function ue(){M(l)?l.value=_:Object.keys(_).length===0?Object.keys(l).forEach(e=>{delete l[e]}):Object.assign(l,_)}return Ut(nf(nf(nf({},te),{},{$model:C,$dirty:y,$error:b,$errors:re,$invalid:ie,$anyDirty:ae,$pending:oe,$touch:se,$reset:ce,$path:u||gf,$silentErrors:x,$validate:w,$commit:S},a&&{$getResultsForChild:le,$clearExternalResults:ue,$validationGroups:ne}),v))}function xf(e){return new Proxy(e,{get(e,t){return typeof e[t]==`object`?xf(e[t]):I(()=>e[t])}})}String.fromCharCode;var Sf=/#/g,Cf=/&/g,wf=/\//g,Tf=/=/g,Ef=/\+/g,Df=/%5e/gi,Of=/%60/gi,kf=/%7c/gi,Af=/%20/gi;function jf(e){return encodeURI(``+e).replace(kf,`|`)}function Mf(e){return jf(typeof e==`string`?e:JSON.stringify(e)).replace(Ef,`%2B`).replace(Af,`+`).replace(Sf,`%23`).replace(Cf,`%26`).replace(Of,"`").replace(Df,`^`).replace(wf,`%2F`)}function Nf(e){return Mf(e).replace(Tf,`%3D`)}function Pf(e=``){try{return decodeURIComponent(``+e)}catch{return``+e}}function Ff(e){return Pf(e.replace(Ef,` `))}function If(e){return Pf(e.replace(Ef,` `))}function Lf(e=``){let t=Object.create(null);e[0]===`?`&&(e=e.slice(1));for(let n of e.split(`&`)){let e=n.match(/([^=]+)=?(.*)/)||[];if(e.length<2)continue;let r=Ff(e[1]);if(r===`__proto__`||r===`constructor`)continue;let i=If(e[2]||``);t[r]===void 0?t[r]=i:Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]}return t}function Rf(e,t){return(typeof t==`number`||typeof t==`boolean`)&&(t=String(t)),t?Array.isArray(t)?t.map(t=>`${Nf(e)}=${Mf(t)}`).join(`&`):`${Nf(e)}=${Mf(t)}`:Nf(e)}function zf(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>Rf(t,e[t])).filter(Boolean).join(`&`)}var Bf=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,Vf=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,Hf=/^([/\\]\s*){2,}[^/\\]/,Uf=/\/$|\/\?|\/#/,Wf=/^\.?\//;function Gf(e,t={}){return typeof t==`boolean`&&(t={acceptRelative:t}),t.strict?Bf.test(e):Vf.test(e)||(t.acceptRelative?Hf.test(e):!1)}function Kf(e=``,t){return t?Uf.test(e):e.endsWith(`/`)}function qf(e=``,t){if(!t)return(Kf(e)?e.slice(0,-1):e)||`/`;if(!Kf(e,!0))return e||`/`;let n=e,r=``,i=e.indexOf(`#`);i!==-1&&(n=e.slice(0,i),r=e.slice(i));let[a,...o]=n.split(`?`);return((a.endsWith(`/`)?a.slice(0,-1):a)||`/`)+(o.length>0?`?${o.join(`?`)}`:``)+r}function Jf(e=``,t){if(!t)return e.endsWith(`/`)?e:e+`/`;if(Kf(e,!0))return e||`/`;let n=e,r=``,i=e.indexOf(`#`);if(i!==-1&&(n=e.slice(0,i),r=e.slice(i),!n))return r;let[a,...o]=n.split(`?`);return a+`/`+(o.length>0?`?${o.join(`?`)}`:``)+r}function Yf(e,t){if(Zf(t)||Gf(e))return e;let n=qf(t);if(e.startsWith(n)){let t=e[n.length];if(!t||t===`/`||t===`?`)return e}return $f(n,e)}function Xf(e,t){let n=tp(e);return n.search=zf({...Lf(n.search),...t}),rp(n)}function Zf(e){return!e||e===`/`}function Qf(e){return e&&e!==`/`}function $f(e,...t){let n=e||``;for(let e of t.filter(e=>Qf(e)))if(n){let t=e.replace(Wf,``);n=Jf(n)+t}else n=e;return n}var ep=Symbol.for(`ufo:protocolRelative`);function tp(e=``,t){let n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){let[,e,t=``]=n;return{protocol:e.toLowerCase(),pathname:t,href:e+t,auth:``,host:``,search:``,hash:``}}if(!Gf(e,{acceptRelative:!0}))return t?tp(t+e):np(e);let[,r=``,i,a=``]=e.replace(/\\/g,`/`).match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,o=``,s=``]=a.match(/([^#/?]*)(.*)?/)||[];r===`file:`&&(s=s.replace(/\/(?=[A-Za-z]:)/,``));let{pathname:c,search:l,hash:u}=np(s);return{protocol:r.toLowerCase(),auth:i?i.slice(0,Math.max(0,i.length-1)):``,host:o,pathname:c,search:l,hash:u,[ep]:!r}}function np(e=``){let[t=``,n=``,r=``]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function rp(e){let t=e.pathname||``,n=e.search?(e.search.startsWith(`?`)?``:`?`)+e.search:``,r=e.hash||``,i=e.auth?e.auth+`@`:``,a=e.host||``;return(e.protocol||e[ep]?(e.protocol||``)+`//`:``)+i+a+t+n+r}var ip=globalThis.Blob,ap=globalThis.File,op=globalThis.FormData,sp=globalThis.Headers;globalThis.Request,globalThis.Response,globalThis.AbortController;var cp=globalThis.fetch||(()=>{throw Error("[node-fetch-native] Failed to fetch: `globalThis.fetch` is not available!")});function lp(e){return!!e&&typeof e==`object`&&!Array.isArray(e)}function up(e){return(...t)=>{let n={};for(let r=0;r<t.length;r++){let i=t[r];if(typeof i==`string`){n.message=i;continue}if(i instanceof Error&&(n.message=i.message,n.stack=i.stack,n.cause=i),e(i)){let e=Object.keys(i);for(let t=0;t<e.length;t++)n[e[t]]=i[e[t]]}}return n}}function dp(e){return!lp(e)||e.message!==void 0&&typeof e.message!=`string`||e.stack!==void 0&&typeof e.stack!=`string`||e.code!==void 0&&typeof e.code!=`number`&&typeof e.code!=`string`&&e.code!==null||e.expose!==void 0&&typeof e.expose!=`boolean`||e.logMessage!==void 0&&typeof e.logMessage!=`boolean`?!1:e.logLevel===void 0||typeof e.logLevel==`number`||typeof e.logLevel==`string`}var fp=up(dp);function pp(...e){return fp(...e)}var mp=class extends Error{constructor(...e){let t=pp(...e);super(t.message,{cause:t.cause}),(this.name===void 0||this.name===`Error`)&&Object.defineProperty(this,`name`,{configurable:!0,enumerable:!1,value:this.constructor.name,writable:!0}),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),t.stack&&(this.stack=t.stack),this.code=t.code,this.expose=t.expose,this.logMessage=t.logMessage,this.logLevel=t.logLevel,this.data=t.data}},hp=Object.defineProperty,gp=(e,t)=>hp(e,`name`,{value:t,configurable:!0}),_p=Object.defineProperty,vp=gp((e,t)=>_p(e,`name`,{value:t,configurable:!0}),`e`);function yp(){return{agent:void 0,dispatcher:void 0}}gp(yp,`createProxy`),vp(yp,`createProxy`);function bp(){return globalThis.fetch}gp(bp,`createFetch`),vp(bp,`createFetch`);var xp=(()=>{if(typeof globalThis<`u`)return globalThis;if(typeof self<`u`)return self;if(typeof window<`u`)return window;if(typeof global<`u`)return global;throw Error(`unable to locate global object`)})(),Sp=xp.File||ap,Cp=xp.FormData||op;xp.AbortController;var wp=xp.fetch||cp,Tp=xp.Headers||sp,Ep=xp.Blob||ip;function Dp(e){return yp()}var Op=function(e){return e.BLOB=`blob`,e.STREAM=`stream`,e.TEXT=`text`,e.ARRAY_BUFFER=`arrayBuffer`,e.JSON=`json`,e}({}),kp=function(e){return e.DELETE=`DELETE`,e.GET=`GET`,e.HEAD=`HEAD`,e.PATCH=`PATCH`,e.POST=`POST`,e.PUT=`PUT`,e}({}),Ap=function(e){return e.REQUEST=`request`,e.REQUEST_ERROR=`requestError`,e.RESPONSE=`response`,e.RESPONSE_ERROR=`responseError`,e}({});function jp(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function Mp(e,t){return e=e.toLowerCase(),jp(t)===e}function Np(e){return typeof e==`object`&&!!e&&!!e&&!Array.isArray(e)}function Pp(e){return Np(e)&&typeof e.pipe==`function`}function Fp(e){if(Cp!==void 0&&e instanceof Cp)return!0;let t=`[object FormData]`;return Object.prototype.toString.call(e)===t?!0:!!e&&typeof e.toString==`function`&&e.toString()===t}function Ip(e){return typeof ArrayBuffer<`u`&&e instanceof ArrayBuffer?!0:Mp(`ArrayBuffer`,e)}function Lp(e){return Sp!==void 0&&e instanceof Sp?!0:Mp(`File`,e)}function Rp(e){return Ep!==void 0&&e instanceof Ep?!0:Mp(`Blob`,e)}function zp(e){return typeof URLSearchParams<`u`&&e instanceof URLSearchParams?!0:Mp(`URLSearchParams`,e)}function Bp(e,t){return!Np(e)&&typeof e!=`function`?!1:e[`@instanceof`]===Symbol.for(t)}function Vp(e){if(e===void 0)return!1;let t=typeof e;return t===`string`||t===`number`||t===`boolean`||t===null||t===`bigint`?!0:t===`object`?Array.isArray(e)?!0:Np(e)||typeof e==`function`&&e.toJSON===`function`:!1}function Hp(e){return JSON.stringify(e,(e,t)=>typeof t==`bigint`?t.toString():t)}function Up(e){return typeof e==`object`&&!!e&&(typeof Promise<`u`&&e instanceof Promise||typeof e.then==`function`)}function Wp(e,t){if(Array.isArray(e)){for(let n=0;n<e.length;n++){if(Np(e[n])||Array.isArray(e[n])){e[n]=t(Wp(e[n],t),`${n}`);continue}e[n]=t(e[n],`${n}`)}return e}let n=Object.keys(e);for(let r=0;r<n.length;r++){let i=e[n[r]];if(Np(i)||Array.isArray(i)){e[n[r]]=t(Wp(i,t),n[r]);continue}e[n[r]]=t(i,n[r])}return e}var Gp=function(e){return e.BEARER=`Bearer`,e.BASIC=`Basic`,e.X_API_KEY=`X-API-Key`,e.API_KEY=`API-Key`,e}({}),Kp=function(e){return e.AUTHORIZATION_HEADER_INVALID=`auth_header_invalid`,e.AUTHORIZATION_HEADER_PARSE=`auth_header_parse`,e.AUTHORIZATION_HEADER_TYPE_PARSE=`auth_header_type_parse`,e.CONNECTION_ABORTED=`ECONNABORTED`,e.CONNECTION_CLOSED=`ECONNRESET`,e}({}),qp=class e extends mp{constructor(t){super({cause:t.error}),this[`@instanceof`]=Symbol.for(`ClientError`),this.request=t.request,this.response=t.response,this.code=t.code,this.status=t.response&&t.response.status,this.statusCode=t.response&&t.response.status,this.statusMessage=t.response&&t.response.statusText,this.statusText=t.response&&t.response.statusText,this.message=t.message,Error.captureStackTrace&&Error.captureStackTrace(this,e)}};function Jp(e){if(e.url){let t=[];return e.method&&t.push(e.method),t.push(e.url),t.join(` `)}return e.toString()}function Yp(e){let t;e.request&&e.response?t=`${e.response.status} ${e.response.statusText} (${Jp(e.request)})`:e.request&&(t=`${Jp(e.request)}`),e.error&&e.error.message&&(t=`${e.error.message} (${t})`),t||=`An unknown error occurred.`;let n=!!e.error&&e.error.name===`AbortError`,r;e.response||(r=n?Kp.CONNECTION_ABORTED:Kp.CONNECTION_CLOSED);let i=new qp({...e,code:r,message:t});return Error.captureStackTrace&&Error.captureStackTrace(i,Yp),i}function Xp(e){if(e instanceof Error)return e;if(Np(e))return e.constructor.name===`TypeError`?(Object.setPrototypeOf(e,TypeError.prototype),e):(Zp(Error(e.message),e),e)}function Zp(e,t){let n=Object.getOwnPropertyNames(t);for(let r=0;r<n.length;r++)e[n[r]]=t[n[r]]}function Qp(e){switch(e.type){case Gp.BASIC:return`Basic ${Buffer.from(`${e.username}:${e.password}`).toString(`base64`)}`;case Gp.BEARER:return`Bearer ${e.token}`;case Gp.X_API_KEY:case Gp.API_KEY:return`${e.type} ${e.key}`}return``}var Q=function(e){return e.ACCEPT=`accept`,e.AUTHORIZATION=`authorization`,e.CONTENT_TYPE=`content-type`,e}({});function $p(){return(e,t)=>{if(Fp(e)&&t.delete(Q.CONTENT_TYPE),Ip(e)||Lp(e)||Rp(e)||Fp(e)||Pp(e))return e;if(zp(e))return t.set(Q.CONTENT_TYPE,`application/x-www-form-urlencoded;charset=utf-8`),e;let n=(t.get(Q.CONTENT_TYPE)||``).indexOf(`application/json`)!==-1;return(Vp(e)||n)&&(e=typeof e==`string`?e:Hp(e),t.has(Q.CONTENT_TYPE)||t.set(Q.CONTENT_TYPE,`application/json`),t.has(Q.ACCEPT)||t.set(Q.ACCEPT,`application/json`)),e}}function em(e){return e.transform||=[$p()],e.proxy===void 0&&(e.proxy=!0),e}function tm(e=`GET`){return e=e.toUpperCase(),e===kp.PATCH||e===kp.POST||e===kp.PUT}function nm(e){return Np(e)?e.url===`string`:!1}function rm(e){return Np(e)?e.headers!==void 0&&typeof e.ok==`boolean`:!1}var im=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function am(e){if(typeof e!=`string`||e.length===0)return Op.STREAM;let t=e.split(`;`).shift()||``;return im.test(t)?Op.JSON:[`image/svg`,`application/xml`,`application/xhtml`,`application/html`].indexOf(t)!==-1||t.startsWith(`text/`)?Op.TEXT:Op.JSON}var om=class{addListener(e,t){return this.items[e]=this.items[e]||[],this.items[e].push(t),this.items[e].length-1}removeListener(e,t){if(!this.items[e])return;if(typeof t==`number`){this.items[e][t]=void 0;return}let n=this.items[e].indexOf(t);n!==-1&&(this.items[e][n]=void 0)}removeListeners(e){delete this.items[e]}async triggerReqHook(e){let t=this.items[Ap.REQUEST]||[],n=e;for(let e=0;e<t.length;e++){let r=t[e];if(!r)continue;let i=r(n);Up(i)&&(i=await i),nm(i)&&(n=i)}return n}async triggerResHook(e){let t=this.items[Ap.RESPONSE]||[],n=e;for(let e=0;e<t.length;e++){let r=t[e];if(!r)continue;let i=r(n);Up(i)&&(i=await i),rm(i)&&(n=i)}return n}async triggerErrorHook(e,t){let n=this.items[e]||[],r=t;for(let e=0;e<n.length;e++){let t=n[e];if(t)try{let e=t(r);if(Up(e)&&(e=await e),rm(e)||nm(e))return e}catch(e){r=e}}throw r}constructor(){this.items={}}},sm=class{getBaseURL(){return this.defaults.baseURL}setBaseURL(e){return this.defaults.baseURL=e,this}setHeader(e,t){return this.headers.set(e,t),this}getHeader(e){return this.headers.get(e)}unsetHeader(e){return this.headers.has(e)&&this.headers.delete(e),this}unsetHeaders(){return this.headers.forEach((e,t)=>{this.headers.delete(t)}),this}setAuthorizationHeader(e){return this.setHeader(Q.AUTHORIZATION,Qp(e)),this}getAuthorizationHeader(){let e=this.getHeader(Q.AUTHORIZATION);if(e!==null)return e}unsetAuthorizationHeader(){return this.unsetHeader(Q.AUTHORIZATION),this}async request(e){let t=new Tp(e.headers);this.headers.forEach((e,n)=>{t.has(n)||t.set(n,e)});let n=e.baseURL||this.defaults.baseURL,r={...this.defaults,...e,headers:t,url:n?Yf(e.url,n):e.url};if((r.query||r.params)&&(r.url=Xf(r.url,Wp({...r.params,...r.query},e=>typeof e==`bigint`?e.toString():e))),r=await this.hookManager.triggerReqHook(r),r.transform){let e=Array.isArray(r.transform)?r.transform:[r.transform];for(let t=0;t<e.length;t++){let n=e[t];r.body=n(r.body,r.headers)}}let i=async(e,t)=>{let n=Yp(t);Error.captureStackTrace&&Error.captureStackTrace(n,this.request);let r;if(r=e===`request`?await this.hookManager.triggerErrorHook(Ap.REQUEST_ERROR,n):await this.hookManager.triggerErrorHook(Ap.RESPONSE_ERROR,n),r)return rm(r)?r:this.request(r);throw n},a;try{tm(r.method)||delete r.body;let{url:e,proxy:t,...n}=r;if(t===!1)a=await wp(e,n);else{let r;typeof t!=`boolean`&&t!==void 0&&(r=t),a=await wp(e,{...n,...Dp(r)})}}catch(e){return i(`request`,{request:r,error:Xp(e)})}let o=r.responseType||am(a.headers.get(Q.CONTENT_TYPE)),s;switch(o){case Op.STREAM:s=a.body;break;case Op.BLOB:s=await a.blob();break;case Op.ARRAY_BUFFER:s=await a.arrayBuffer();break;case Op.TEXT:s=await a.text();break;default:{let e=await a.text();try{s=JSON.parse(e)}catch{s=e}}}return Object.defineProperty(a,`data`,{get(){return s},set(e){s=e}}),a.status>=400&&a.status<600?i(`response`,{response:a,request:r}):await this.hookManager.triggerResHook(a)}get(e,t){return this.request({...t||{},method:kp.GET,url:e})}delete(e,t){return this.request({...t||{},method:kp.DELETE,url:e})}head(e,t){return this.request({...t||{},method:kp.HEAD,url:e})}post(e,t,n){return this.request({...n||{},method:kp.POST,url:e,body:t})}put(e,t,n){return this.request({...n||{},method:kp.PUT,url:e,body:t})}patch(e,t,n){return this.request({...n||{},method:kp.PATCH,url:e,body:t})}on(e,t){return this.hookManager.addListener(e,t)}off(e,t){return t===void 0?(this.hookManager.removeListeners(e),this):(this.hookManager.removeListener(e,t),this)}constructor(e={}){this[`@instanceof`]=Symbol.for(`BaseClient`),this.defaults=em(e||{}),this.headers=new Tp(this.defaults.headers),this.hookManager=new om}};function cm(e){return new sm(e)}function lm(e){return e instanceof sm?!0:Bp(e,`Client`)}cm();var um;(function(e){e.FILTERS=`filters`,e.FIELDS=`fields`,e.PAGINATION=`pagination`,e.RELATIONS=`relations`,e.SORT=`sort`})(um||={});var dm;(function(e){e.FILTERS=`filter`,e.FIELDS=`fields`,e.PAGINATION=`page`,e.RELATIONS=`include`,e.SORT=`sort`})(dm||={});function fm(e,t){return typeof t==`string`?`${t}.${e}`:e}function pm(e,t,n){t||={};let r=[];if(t.transformer){let i=t.transformer(e,r,n);if(i!==void 0&&i)return r}if(Array.isArray(e)){for(let i=0;i<e.length;i++){if(t.transformer){let a=t.transformer(e[i],r,n);if(a!==void 0&&a)return r}if(Array.isArray(e[i])){for(let t=0;t<e[i].length;t++){let a=fm(e[i][t],n);r.push(a)}continue}if(typeof e[i]==`string`){r.push(fm(e[i],n));continue}if(typeof e[i]==`object`){let a=Object.keys(e[i]);for(let o=0;o<a.length;o++){let s=fm(a[o],n),c=pm(e[i][a[o]],t,s);c.length===0?r.push(s):r.push(...c)}}}return r}if(typeof e==`object`&&e){let i=Object.keys(e);for(let a=0;a<i.length;a++){let o=fm(i[a],n),s=pm(e[i[a]],t,o);s.length===0?r.push(o):r.push(...s)}return r}if(typeof e==`string`){let t=fm(e,n);return r.push(t),r}return r}function mm(e,t,n){t||={},n||=[];let r={};if(t.transformer){let i=t.transformer(e,r,n.join(`.`));if(i!==void 0&&i)return r}let i=Object.keys(e);for(let a=0;a<i.length;a++){let o=i[a];if(t.transformer){let i=t.transformer(e[o],r,[...n,o].join(`.`));if(i!==void 0&&i)continue}if(typeof e[o]==`object`&&e[o]){r={...r,...mm(e[o],t,[...n,o])};continue}let s=[...n,o].join(`.`);(typeof e[o]==`boolean`||typeof e[o]==`string`||typeof e[o]==`number`||e[o]===void 0||e[o]===null||Array.isArray(e[o]))&&(r[s]=e[o])}return r}p({clone:!0,inPlace:!1,array:!0,arrayDistinct:!0});var hm;(function(e){e.INCLUDE=`+`,e.EXCLUDE=`-`})(hm||={});var gm;(function(e){e.NONE=`none`,e.INPUT_INVALID=`inputInvalid`,e.KEY_INVALID=`keyInvalid`,e.KEY_PATH_INVALID=`keyPathInvalid`,e.KEY_NOT_ALLOWED=`keyNotAllowed`,e.KEY_VALUE_INVALID=`keyValueInvalid`})(gm||={});var _m;(function(e){e.EQUAL=`$eq`,e.NOT_EQUAL=`$ne`,e.LIKE=`$l`,e.NOT_LIKE=`$nl`,e.LESS_THAN_EQUAL=`$lte`,e.LESS_THAN=`$lt`,e.GREATER_THAN_EQUAL=`$gte`,e.GREATER_THAN=`$gt`,e.IN=`$in`,e.NOT_IN=`$nin`})(_m||={});var vm;(function(e){e.NEGATION=`!`,e.LIKE=`~`,e.LESS_THAN_EQUAL=`<=`,e.LESS_THAN=`<`,e.MORE_THAN_EQUAL=`>=`,e.MORE_THAN=`>`,e.IN=`,`})(vm||={});var ym;(function(e){e.ASC=`ASC`,e.DESC=`DESC`})(ym||={});function bm(e){return e.includes(`://`)?e.split(`://`).map(e=>bm(e)).join(`://`):e.replace(/\/+/g,`/`)}function xm(e){return typeof e==`string`?e:[...new Set(e)].join(` `)}function Sm(e,t){let n=new URL(e);if(t.response_type?n.searchParams.set(`response_type`,Array.isArray(t.response_type)?xm(t.response_type):t.response_type):n.searchParams.set(`response_type`,`code`),t.client_id&&n.searchParams.set(`client_id`,t.client_id),t.redirect_uri&&n.searchParams.set(`redirect_uri`,t.redirect_uri),t.response_mode&&n.searchParams.set(`response_mode`,t.response_mode),t.scope){let e=Array.isArray(t.scope)?xm(t.scope):t.scope;n.searchParams.set(`scope`,e)}return t.state&&n.searchParams.set(`state`,t.state),t.code_challenge&&n.searchParams.set(`code_challenge`,t.code_challenge),t.code_challenge_method&&n.searchParams.set(`code_challenge_method`,t.code_challenge_method),n.href}var Cm=class{setClient(e){this.client=lm(e)?e:cm(e)}setOptions(e){this.options=e||{}}setOption(e,t){this.options[e]=t}constructor(e={}){this.setClient(e.client),this.setOptions(e.options)}},wm=class extends Cm{buildURL(e={}){let t;if(this.options.authorizationEndpoint)t=this.options.authorizationEndpoint;else{let e=this.client.defaults.baseURL;t=new URL(`authorize`,e).href}return Sm(t,{...e,redirect_uri:e.redirect_uri||this.options.redirectUri,client_id:e.client_id||this.options.clientId,scope:e.scope||this.options.scope,response_type:e.response_type||`code`})}};function Tm(e,t={}){if(e.set(`Content-Type`,`application/x-www-form-urlencoded`),!(t.authorizationHeaderInherit&&e.has(`Authorization`))){if(e.delete(`Authorization`),t.authorizationHeader){let n=typeof t.authorizationHeader==`string`?t.authorizationHeader:Qp(t.authorizationHeader);e.set(`Authorization`,n);return}t.clientCredentialsAsHeader&&t.clientId&&t.clientSecret&&e.set(`Authorization`,Qp({type:`Basic`,username:t.clientId,password:t.clientSecret}))}}function Em(e,t={}){return(n,r)=>{if(t.clientId||(t.clientId=e.client_id,t.clientSecret=e.client_secret),t.realmId||=e.realm_id,Tm(r,t),t.clientCredentialsAsHeader){if(n instanceof URLSearchParams)return n.delete(`client_id`),n.delete(`client_secret`),n;Np(n)&&(n.client_id!==void 0&&delete n.client_id,n.client_secret!==void 0&&delete n.client_secret)}return n}}var Dm=class extends Cm{async createWithRefreshToken(e,t){return this.create({grant_type:`refresh_token`,...e},t)}async createWithClientCredentials(e={},t={}){return this.create({grant_type:`client_credentials`,...e},t)}async createWithPassword(e,t={}){return this.create({grant_type:`password`,...e},t)}async createWithAuthorizationCode(e,t={}){return this.create({grant_type:`authorization_code`,...e},t)}async createWithRobotCredentials(e,t={}){return this.create({grant_type:`robot_credentials`,...e},t)}async create(e,t={}){this.extendCreateParameters(e);let n=this.buildURLSearchParams(e),{data:r}=await this.client.post(this.options.tokenEndpoint||`/token`,n,{transform:this.buildRequestTransformers(e,t),headers:{[Q.ACCEPT]:`application/json`}}),i={access_token:r.access_token,expires_in:r.expires_in,token_type:r.token_type||`Bearer`};return r.refresh_token&&(i.refresh_token=r.refresh_token),typeof r.id_token==`string`&&(i.id_token=r.id_token),typeof r.mac_key==`string`&&(i.mac_key=r.mac_key),typeof r.mac_algorithm==`string`&&(i.mac_algorithm=r.mac_algorithm),i}async revoke(e={},t={}){let n=this.buildURLSearchParams(e);return this.client.post(this.options.revocationEndpoint||`/token/revoke`,n,{transform:this.buildRequestTransformers(e,t),headers:{[Q.ACCEPT]:`application/json`}})}async introspect(e={},t={}){let n=this.buildURLSearchParams(e),{data:r}=await this.client.post(this.options.introspectionEndpoint||`/token/introspect`,n,{transform:this.buildRequestTransformers(e,t),headers:{[Q.ACCEPT]:`application/json`}});return r}buildRequestTransformers(e,t={}){let n=[];return t.clientId||(this.options.clientId&&(t.clientId=this.options.clientId),this.options.clientSecret&&(t.clientSecret=this.options.clientSecret)),!t.realmId&&this.options.realmId&&(t.realmId=this.options.realmId),n.push(Em(e,t)),this.client.defaults.transform&&(Array.isArray(this.client.defaults.transform)?n.push(...this.client.defaults.transform):n.push(this.client.defaults.transform)),n}extendCreateParameters(e){return e.grant_type!==`authorization_code`&&e.grant_type!==`robot_credentials`&&!e.scope&&this.options.scope&&(e.scope=this.options.scope),e.grant_type===`authorization_code`&&!e.redirect_uri&&this.options.redirectUri&&(e.redirect_uri=this.options.redirectUri),e.client_id||(e.client_secret&&delete e.client_secret,this.options.clientId&&(e.client_id=this.options.clientId),this.options.clientSecret&&(e.client_secret=this.options.clientSecret)),!e.realm_id&&this.options.realmId&&(e.realm_id=this.options.realmId),e}buildURLSearchParams(e){let t=new URLSearchParams,n=Object.keys(e);for(let r=0;r<n.length;r++){let i=e[n[r]];if(typeof i==`string`&&i)t.append(n[r],i);else if(Array.isArray(i)){let e=i.filter(e=>e).join(` `);e&&t.append(n[r],e)}}return t}},Om=class extends Cm{async get(e){let t={[Q.ACCEPT]:`application/json`};e&&(typeof e==`string`?e.indexOf(` `)===-1?t.Authorization=`Bearer ${e}`:t.Authorization=e:t.Authorization=Qp(e));let{data:n}=await this.client.get(this.options.userinfoEndpoint||`/userinfo`,{headers:t});return n}constructor(e){super(e)}},km=class extends sm{constructor(e){e||={},super(e.request),this[`@instanceof`]=Symbol.for(`OAuth2Client`);let t=e.options||{};this.options=t,this.token=new Dm({client:this,options:t}),this.authorize=new wm({client:this,options:t}),this.userInfo=new Om({client:this,options:t})}};function Am(e){return new km(e)}Am();var jm=typeof window<`u`;function Mm(e){return e&&typeof e==`object`&&Object.prototype.toString.call(e)===`[object Object]`&&typeof e.toJSON!=`function`}var Nm;(function(e){e.direct=`direct`,e.patchObject=`patch object`,e.patchFunction=`patch function`})(Nm||={});var Pm=typeof window==`object`&&window.window===window?window:typeof self==`object`&&self.self===self?self:typeof global==`object`&&global.global===global?global:typeof globalThis==`object`?globalThis:{HTMLElement:null};function Fm(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([``,e],{type:e.type}):e}function Im(e,t,n){let r=new XMLHttpRequest;r.open(`GET`,e),r.responseType=`blob`,r.onload=function(){Vm(r.response,t,n)},r.onerror=function(){console.error(`could not download file`)},r.send()}function Lm(e){let t=new XMLHttpRequest;t.open(`HEAD`,e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function Rm(e){try{e.dispatchEvent(new MouseEvent(`click`))}catch{let t=new MouseEvent(`click`,{bubbles:!0,cancelable:!0,view:window,detail:0,screenX:80,screenY:20,clientX:80,clientY:20,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null});e.dispatchEvent(t)}}var zm=typeof navigator==`object`?navigator:{userAgent:``},Bm=/Macintosh/.test(zm.userAgent)&&/AppleWebKit/.test(zm.userAgent)&&!/Safari/.test(zm.userAgent),Vm=jm?typeof HTMLAnchorElement<`u`&&`download`in HTMLAnchorElement.prototype&&!Bm?Hm:`msSaveOrOpenBlob`in zm?Um:Wm:()=>{};function Hm(e,t=`download`,n){let r=document.createElement(`a`);r.download=t,r.rel=`noopener`,typeof e==`string`?(r.href=e,r.origin===location.origin?Rm(r):Lm(r.href)?Im(e,t,n):(r.target=`_blank`,Rm(r))):(r.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){Rm(r)},0))}function Um(e,t=`download`,n){if(typeof e==`string`)if(Lm(e))Im(e,t,n);else{let t=document.createElement(`a`);t.href=e,t.target=`_blank`,setTimeout(function(){Rm(t)})}else navigator.msSaveOrOpenBlob(Fm(e,n),t)}function Wm(e,t,n,r){if(r||=open(``,`_blank`),r&&(r.document.title=r.document.body.innerText=`downloading...`),typeof e==`string`)return Im(e,t,n);let i=e.type===`application/octet-stream`,a=/constructor/i.test(String(Pm.HTMLElement))||`safari`in Pm,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&a||Bm)&&typeof FileReader<`u`){let t=new FileReader;t.onloadend=function(){let e=t.result;if(typeof e!=`string`)throw r=null,Error(`Wrong reader.result type`);e=o?e:e.replace(/^data:[^;]*;/,`data:attachment/file;`),r?r.location.href=e:location.assign(e),r=null},t.readAsDataURL(e)}else{let t=URL.createObjectURL(e);r?r.location.assign(t):location.href=t,r=null,setTimeout(function(){URL.revokeObjectURL(t)},4e4)}}var{assign:Gm}=Object;function Km(e,t){e instanceof Map&&t instanceof Map?t.forEach((t,n)=>e.set(n,t)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(let n in t){if(!t.hasOwnProperty(n))continue;let r=t[n],i=e[n];Mm(i)&&Mm(r)&&e.hasOwnProperty(n)&&!M(r)&&!Kt(r)?e[n]=Km(i,r):e[n]=r}return e}var{assign:qm}=Object,Jm=class{constructor(e,t){this.operator=e,this.value=t,Object.defineProperty(this,`t`,{writable:!0})}get notes(){return this.t}addNote(e){this.t=this.t||[],this.t.push(e)}},Ym=class extends Jm{},Xm=class extends Ym{constructor(e,t){if(!Array.isArray(t))throw Error(`"${e}" operator expects to receive an array of conditions`);super(e,t)}},Zm=`__itself__`,Qm=class extends Jm{constructor(e,t,n){super(e,n),this.field=t}},$m=new Ym(`__null__`,null),eh=Object.prototype.hasOwnProperty.call.bind(Object.prototype.hasOwnProperty);function th(e,t){return t instanceof Xm&&t.operator===e}function nh(e,t){return t.length===1?t[0]:new Xm(e,function e(t,n,r){let i=r||[];for(let r=0,a=n.length;r<a;r++){let a=n[r];th(t,a)?e(t,a.value,i):i.push(a)}return i}(e,t))}var rh=e=>e,ih=()=>Object.create(null),ah=Object.defineProperty(ih(),`__@type@__`,{value:`ignore value`});function oh(e,t,n=!1){if(!e||e&&e.constructor!==Object)return!1;for(let r in e)if(eh(e,r)&&eh(t,r)&&(!n||e[r]!==ah))return!0;return!1}function sh(e){let t=[];for(let n in e)eh(e,n)&&e[n]!==ah&&t.push(n);return t}function ch(e,t){t!==$m&&e.push(t)}var lh=e=>nh(`and`,e),uh={compound(e,t,n){let r=(Array.isArray(t)?t:[t]).map(e=>n.parse(e));return new Xm(e.name,r)},field:(e,t,n)=>new Qm(e.name,n.field,t),document:(e,t)=>new Ym(e.name,t)},dh=class{constructor(e,t=ih()){this.o=void 0,this.s=void 0,this.i=void 0,this.u=void 0,this.h=void 0,this.parse=this.parse.bind(this),this.u={operatorToConditionName:t.operatorToConditionName||rh,defaultOperatorName:t.defaultOperatorName||`eq`,mergeFinalConditions:t.mergeFinalConditions||lh},this.o=Object.keys(e).reduce((t,n)=>(t[n]=Object.assign({name:this.u.operatorToConditionName(n)},e[n]),t),{}),this.s=Object.assign({},t.fieldContext,{field:``,query:{},parse:this.parse,hasOperators:e=>oh(e,this.o,t.useIgnoreValue)}),this.i=Object.assign({},t.documentContext,{parse:this.parse,query:{}}),this.h=t.useIgnoreValue?sh:Object.keys}setParse(e){this.parse=e,this.s.parse=e,this.i.parse=e}parseField(e,t,n,r){let i=this.o[t];if(!i)throw Error(`Unsupported operator "${t}"`);if(i.type!==`field`)throw Error(`Unexpected ${i.type} operator "${t}" at field level`);return this.s.field=e,this.s.query=r,this.parseInstruction(i,n,this.s)}parseInstruction(e,t,n){return typeof e.validate==`function`&&e.validate(e,t),(e.parse||uh[e.type])(e,t,n)}parseFieldOperators(e,t){let n=[],r=this.h(t);for(let i=0,a=r.length;i<a;i++){let a=r[i];if(!this.o[a])throw Error(`Field query for "${e}" may contain only operators or a plain object as a value`);ch(n,this.parseField(e,a,t[a],t))}return n}parse(e){let t=[],n=this.h(e);this.i.query=e;for(let r=0,i=n.length;r<i;r++){let i=n[r],a=e[i],o=this.o[i];if(o){if(o.type!==`document`&&o.type!==`compound`)throw Error(`Cannot use parsing instruction for operator "${i}" in "document" context as it is supposed to be used in "${o.type}" context`);ch(t,this.parseInstruction(o,a,this.i))}else this.s.hasOperators(a)?t.push(...this.parseFieldOperators(i,a)):ch(t,this.parseField(i,this.u.defaultOperatorName,a,e))}return this.u.mergeFinalConditions(t)}};function fh(e,t){let n=e[t];if(typeof n!=`function`)throw Error(`Unable to interpret "${t}" condition. Did you forget to register interpreter for it?`);return n}function ph(e){return e.operator}function mh(e,t){let n=t,r=n&&n.getInterpreterName||ph,i;switch(n?n.numberOfArguments:0){case 1:i=t=>fh(e,r(t,n))(t,a);break;case 3:i=(t,i,o)=>fh(e,r(t,n))(t,i,o,a);break;default:i=(t,i)=>fh(e,r(t,n))(t,i,a)}let a=Object.assign({},n,{interpret:i});return a.interpret}function hh(e,t){return(n,...r)=>{let i=e(n,...r),a=t.bind(null,i);return a.ast=i,a}}dh.prototype.parseInstruction;function gh(e,t){if(!Array.isArray(t))throw Error(`"${e.name}" expects value to be an array`)}function _h(e,t){if(gh(e,t),!t.length)throw Error(`"${e.name}" expects to have at least one element in array`)}var vh=e=>(t,n)=>{if(typeof n!==e)throw Error(`"${t.name}" expects value to be a "${e}"`)},yh={type:`compound`,validate:_h,parse(e,t,{parse:n}){let r=t.map(e=>n(e));return nh(e.name,r)}},bh=yh,xh={type:`compound`,validate:_h},Sh={type:`field`,validate(e,t){if(!(t&&(t instanceof RegExp||t.constructor===Object)))throw Error(`"${e.name}" expects to receive either regular expression or object of field operators`)},parse(e,t,n){let r=t instanceof RegExp?new Qm(`regex`,n.field,t):n.parse(t,n);return new Xm(e.name,[r])}},Ch={type:`field`,validate(e,t){if(!t||t.constructor!==Object)throw Error(`"${e.name}" expects to receive an object with nested query or field level operators`)},parse(e,t,{parse:n,field:r,hasOperators:i}){let a=i(t)?n(t,{field:Zm}):n(t);return new Qm(e.name,r,a)}},wh={type:`field`,validate:vh(`number`)},Th={type:`field`,validate:gh},Eh=Th,Dh=Th,Oh={type:`field`,validate(e,t){if(!Array.isArray(t)||t.length!==2)throw Error(`"${e.name}" expects an array with 2 numeric elements`)}},kh={type:`field`,validate:vh(`boolean`)},Ah={type:`field`,validate:function(e,t){if(!(typeof t==`string`||typeof t==`number`||t instanceof Date))throw Error(`"${e.name}" expects value to be comparable (i.e., string, number or date)`)}},jh=Ah,Mh=jh,Nh=jh,Ph={type:`field`},Fh=Ph,Ih={type:`field`,validate(e,t){if(!(t instanceof RegExp)&&typeof t!=`string`)throw Error(`"${e.name}" expects value to be a regular expression or a string that represents regular expression`)},parse(e,t,n){let r=typeof t==`string`?new RegExp(t,n.query.$options||``):t;return new Qm(e.name,n.field,r)}},Lh={type:`field`,parse:()=>$m},Rh={type:`document`,validate:vh(`function`)},zh=Object.freeze({__proto__:null,$and:yh,$or:bh,$nor:xh,$not:Sh,$elemMatch:Ch,$size:wh,$in:Th,$nin:Eh,$all:Dh,$mod:Oh,$exists:kh,$gte:Ah,$gt:jh,$lt:Mh,$lte:Nh,$eq:Ph,$ne:Fh,$regex:Ih,$options:Lh,$where:Rh}),Bh=class extends dh{constructor(e){super(e,{defaultOperatorName:`$eq`,operatorToConditionName:e=>e.slice(1)})}parse(e,t){return t&&t.field?lh(this.parseFieldOperators(t.field,e)):super.parse(e)}},Vh=zh;function Hh(e,t,n){for(let r=0,i=e.length;r<i;r++)if(n(e[r],t)===0)return!0;return!1}function Uh(e,t){return Array.isArray(e)&&Number.isNaN(Number(t))}function Wh(e,t,n){if(!Uh(e,t))return n(e,t);let r=[];for(let i=0;i<e.length;i++){let a=n(e[i],t);a!==void 0&&(r=r.concat(a))}return r}function Gh(e){return(t,n,r)=>{let i=r.get(n,t.field);return Array.isArray(i)?i.some(n=>e(t,n,r)):e(t,i,r)}}var Kh=Object.hasOwn||Object.prototype.hasOwnProperty.call.bind(Object.prototype.hasOwnProperty),qh=(e,t)=>e[t];function Jh(e,t,n){let r=t.lastIndexOf(`.`);return r===-1?[e,t]:[n(e,t.slice(0,r)),t.slice(r+1)]}function Yh(e,t,n=qh){if(t===`__itself__`)return e;if(!e)throw Error(`Unable to get field "${t}" out of ${String(e)}.`);return function(e,t,n){if(t.indexOf(`.`)===-1)return Wh(e,t,n);let r=t.split(`.`),i=e;for(let e=0,t=r.length;e<t;e++)if(i=Wh(i,r[e],n),!i||typeof i!=`object`)return e<t-1?void 0:i;return i}(e,t,n)}function Xh(e,t){return e===t?0:e>t?1:-1}function Zh(e,t={}){return mh(e,Object.assign({get:Yh,compare:Xh},t))}var Qh=(e,t,{interpret:n})=>e.value.some(e=>n(e,t)),$h=(e,t,n)=>!Qh(e,t,n),eg=(e,t,{interpret:n})=>e.value.every(e=>n(e,t)),tg=(e,t,{interpret:n})=>!n(e.value[0],t),ng=(e,t,{compare:n,get:r})=>{let i=r(t,e.field);return Array.isArray(i)&&!Array.isArray(e.value)?Hh(i,e.value,n):n(i,e.value)===0},rg=(e,t,n)=>!ng(e,t,n),ig=Gh((e,t,n)=>{let r=n.compare(t,e.value);return r===0||r===-1}),ag=Gh((e,t,n)=>n.compare(t,e.value)===-1),og=Gh((e,t,n)=>n.compare(t,e.value)===1),sg=Gh((e,t,n)=>{let r=n.compare(t,e.value);return r===0||r===1}),cg=(e,t,{get:n})=>{if(e.field===`__itself__`)return t!==void 0;let[r,i]=Jh(t,e.field,n),a=t=>t==null?!!t===e.value:Kh(t,i)===e.value;return Uh(r,i)?r.some(a):a(r)},lg=Gh((e,t)=>typeof t==`number`&&t%e.value[0]===e.value[1]),ug=(e,t,{get:n})=>{let[r,i]=Jh(t,e.field,n),a=t=>{let r=n(t,i);return Array.isArray(r)&&r.length===e.value};return e.field!==`__itself__`&&Uh(r,i)?r.some(a):a(r)},dg=Gh((e,t)=>typeof t==`string`&&e.value.test(t)),fg=Gh((e,t,{compare:n})=>Hh(e.value,t,n)),pg=Object.freeze({__proto__:null,or:Qh,nor:$h,and:eg,not:tg,eq:ng,ne:rg,lte:ig,lt:ag,gt:og,gte:sg,exists:cg,mod:lg,size:ug,regex:dg,within:fg,nin:(e,t,n)=>!fg(e,t,n),all:(e,t,{compare:n,get:r})=>{let i=r(t,e.field);return Array.isArray(i)&&e.value.every(e=>Hh(i,e,n))},elemMatch:(e,t,{interpret:n,get:r})=>{let i=r(t,e.field);return Array.isArray(i)&&i.some(t=>n(e.value,t))},where:(e,t)=>e.value.call(t)}),mg=Object.assign({},pg,{in:fg});Zh(mg);function hg(e){return typeof e!=`object`||!e?e:e instanceof Date?e.getTime():e&&typeof e.toJSON==`function`?e.toJSON():e}var gg=(e,t)=>Xh(hg(e),hg(t));function _g(e,t,n){let r=new Bh(e),i=Zh(t,Object.assign({compare:gg},n));if(n&&n.forPrimitives){let e={field:Zm},t=r.parse;r.setParse(n=>t(n,e))}return hh(r.parse,i)}var vg=_g(Vh,mg);_g([`$and`,`$or`].reduce((e,t)=>(e[t]=Object.assign({},e[t],{type:`field`}),e),Object.assign({},Vh,{$nor:Object.assign({},Vh.$nor,{type:`field`,parse:uh.compound})})),mg,{forPrimitives:!0});var yg=Symbol.for(`@authup/access/PolicyError`);function bg(e){return typeof e==`object`&&!!e&&e[`@instanceof`]===yg}var xg=class e extends Fi{"@instanceof"=yg;constructor(e,t){super({message:e,code:t??void 0})}addIssue(e){this.issues.push(e)}addIssues(e){this.issues.push(...e)}static evaluatorNotFound(t){return new e(`No evaluator is registered to handle the policy: ${t}`,Ni.POLICY_EVALUATOR_NOT_FOUND)}static evaluatorNotProcessable(){return new e(`The evaluator can not process the policy.`,Ni.POLICY_EVALUATOR_NOT_PROCESSABLE)}static evaluatorContextInvalid(){return new e(`The evaluator context is not valid.`,Ni.POLICY_EVALUATOR_CONTEXT_INVALID)}};function Sg(e){return typeof e==`object`&&e&&`message`in e&&typeof e.message==`string`?e.message:String(e)}var Cg=class{evaluators;constructor(e={}){this.evaluators=e}registerEvaluator(e,t){this.evaluators[e]=t}registerEvaluators(e){let t=Object.keys(e);for(let n of t)this.registerEvaluator(n,e[n])}async evaluate(e,t){if(!e.type)return{success:!1,issues:[ua({path:[],message:`The policy can not be handled by any evaluator.`,code:Ni.POLICY_EVALUATOR_NOT_FOUND})]};if(t.exclude&&t.exclude.length>0&&t.exclude.includes(e.type)||t.include&&t.include.length>0&&!t.include.includes(e.type))return{success:!0};let n=[],r=this.evaluators[e.type];if(!r)return n.push(ua({path:[e.type],message:`The policy ${e.type} can not be handled by any evaluator.`,code:Ni.POLICY_EVALUATOR_NOT_FOUND})),{success:!1,issues:n};try{return await r.evaluate(e,{...t,evaluators:{...this.evaluators,...t.evaluators||{}}})}catch(t){return n.push(ua({path:[e.type],message:`The ${e.type} evaluator threw: ${Sg(t)}`,code:Ni.POLICY_EVALUATOR_NOT_PROCESSABLE})),{success:!1,issues:n}}}async evaluateOrFail(e,t){let n=[];try{let r=await this.evaluate(e,t);if(r.success)return;r.issues&&n.push(...r.issues)}catch(t){if(bg(t))throw t;n.push(ua({path:e.type?[e.type]:[],message:Sg(t),code:Ni.POLICY_EVALUATOR_NOT_PROCESSABLE}))}let r=new xg(`The policy ${e.type} evaluation failed.`);throw r.addIssues(n),r}};function wg(e){return ua(e)}function $(e,t){return t===void 0?e:typeof t==`function`?t(e):t?!e:e}var Tg=class extends ha{initialize(){super.initialize(),this.mount(`names`,L(yd(Ru().min(3).max(128)))),this.mount(`invert`,L(Y().or(Z()).or(X()).optional()))}},Eg=class extends ha{initialize(){super.initialize(),this.mount(`query`,L(xd({}))),this.mount(`invert`,L(Y().or(Z()).or(X()).optional()))}},Dg=class{validator;constructor(){this.validator=new Eg}async accessData(e){if(!e.data.has(`attributes`))return null;if(e.data.isValidated(`attributes`))return e.data.get(`attributes`);let t=e.data.get(`attributes`);return e.data.set(`attributes`,t),e.data.setValidated(`attributes`),t}async evaluate(e,t){let n=await this.validator.run(e),r=await this.accessData(t);return r?(this.fixQuery(n.query),{success:$(vg(n.query)(r),n.invert)}):{success:!1,issues:[wg({code:`DATA_MISSING`,message:`The data property attributes is missing`,path:t.path})]}}fixQuery(e){if(Array.isArray(e)){for(let t of e)this.fixQuery(t);return}if($d(e)){let t=Object.keys(e);for(let n of t){let t=e[n];if($d(t)||Array.isArray(t)){this.fixQuery(t);continue}if(n===`$regex`&&typeof t==`string`){let r=t.match(/\/(.*?)\/([a-z]*)?$/i);r&&r[1]!==void 0&&(e[n]=new RegExp(r[1],r[2]||``))}}}}},Og=class{validator;attributesEvaluator;constructor(){this.validator=new Tg,this.attributesEvaluator=new Dg}async evaluate(e,t){let n=await this.validator.run(e),r=await this.attributesEvaluator.accessData(t);if(!r)return{success:!1,issues:[wg({code:`DATA_MISSING`,message:`The data property attributes is missing`,path:t.path})]};let i=ef(r),a=Object.keys(i),o=[];for(let e of a){let r=n.names.includes(e);(n.invert?r:!r)&&o.push(wg({code:`EVALUATION_DENIED`,message:n.invert?`The attribute ${e} is denied`:`The attribute ${e} is not included`,path:[...t.path,e]}))}return{success:o.length===0,issues:o}}},kg=class extends ha{initialize(){super.initialize(),this.mount(`decision_strategy`,L(Dd(Zd).or(Z()).or(X()).optional())),this.mount(`children`,L(yd(xd({type:Ru().min(3)})))),this.mount(`invert`,L(Y().or(Z()).or(X()).optional()))}},Ag=class{validator;constructor(){this.validator=new kg}async evaluate(e,t){let n=await this.validator.run(e),r=0,i=n.decision_strategy??Zd.UNANIMOUS,a=new Cg(t.evaluators),o=[];for(let e of n.children){let s=[...t.path||[],...e.type?[e.type]:[]],c=await a.evaluate(e,{...t,path:s});if(c.success){if(i===Zd.AFFIRMATIVE)return{success:$(!0,n.invert),issues:[]};r++}else{if(c.issues&&o.push(da({message:`The evaluation of child policy ${e.type} failed`,issues:c.issues||[],path:s})),i===Zd.UNANIMOUS){let e=$(!1,n.invert);return{success:e,issues:e?[]:[da({message:`The evaluation of composite policy failed (${Zd.UNANIMOUS})`,issues:o,path:t.path})]}}r--}}if(r>0)return{success:$(!0,n.invert)};let s=$(!1,n.invert);return{success:s,issues:s?[]:[da({message:`The evaluation of composite policy failed (${Zd.CONSENSUS})`,issues:o||[],path:t.path})]}}},jg=class extends ha{initialize(){super.initialize(),this.mount(`start`,L(_d().or(_u()).or(od()).or(Z()).or(X()).optional())),this.mount(`end`,L(_d().or(_u()).or(od()).or(Z()).or(X()).optional())),this.mount(`invert`,L(Y().or(X()).or(Z()).optional()))}};function Mg(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())}function Ng(e){return typeof e==`string`||typeof e==`number`?new Date(e):e}var Pg=class{validator;constructor(){this.validator=new jg}async evaluate(e,t){let n=await this.validator.run(e),r;if(t.data.has(`date`)?t.data.isValidated(`date`)?r=t.data.get(`date`):(r=Mg(Ng(t.data.get(`date`))),t.data.set(`date`,r),t.data.setValidated(`date`)):r=Mg(new Date),n.start){let e=Mg(Ng(n.start));if(r<e)return{success:$(!1,n.invert)}}if(n.end){let e=Mg(Ng(n.end));if(r>e)return{success:$(!1,n.invert)}}return{success:$(!0,n.invert)}}},Fg=class extends ha{initialize(){super.initialize(),this.mount(`type`,L(Ru().min(3).max(128))),this.mount(`id`,L(Hu())),this.mount(`clientId`,L(Hu().or(Z()).or(X()).optional())),this.mount(`realmId`,L(Hu().or(Z()).or(X()).optional())),this.mount(`realmName`,L(Ru().min(3).max(128).or(Z()).or(X()).optional()))}},Ig=class extends ha{initialize(){this.mount(`types`,L(yd(Ru()).or(Z()).or(X()).optional())),this.mount(`invert`,L(Y().or(Z()).or(X()).optional()))}},Lg=class{validator;dataValidator;constructor(){this.validator=new Ig,this.dataValidator=new Fg}async accessData(e){if(!e.data.has(`identity`))return null;if(e.data.isValidated(`identity`))return e.data.get(`identity`);let t=await this.dataValidator.run(e.data.get(`identity`));return e.data.set(`identity`,t),e.data.setValidated(`identity`),t}async evaluate(e,t){let n=await this.validator.run(e),r=await this.accessData(t);if(!r)return{success:!1,issues:[wg({code:`DATA_MISSING`,message:`The data property identity is missing`,path:t.path})]};if(!n.types||n.types.length===0)return{success:!0};let i=n.types.includes(r.type);return i?{success:$(i,n.invert)}:{success:$(i,n.invert),issues:[wg({code:`EVALUATION_DENIED`,message:`The type ${r.type} is not covered by the policy configuration`,path:t.path})]}}},Rg=class extends ha{initialize(){}},zg=class{validator;constructor(){this.validator=new Rg}async evaluate(e){return{success:$(!0,(await this.validator.run(e)).invert)}}},Bg=class extends ha{initialize(){super.initialize(),this.mount(`decision_strategy`,L(Dd(Zd).or(Z()).or(X()).optional())),this.mount(`attribute_name`,L(Ru().min(3).or(yd(Ru().min(3))).or(Z()).or(X()).optional())),this.mount(`attribute_name_strict`,L(Y().or(Z()).or(X()).optional())),this.mount(`attribute_null_match_all`,L(Y().or(Z()).or(X()).optional())),this.mount(`identity_master_match_all`,L(Y().or(Z()).or(X()).optional())),this.mount(`invert`,L(Y().or(Z()).or(X()).optional()))}},Vg=class{validator;identityEvaluator;attributesEvaluator;constructor(){this.validator=new Bg,this.identityEvaluator=new Lg,this.attributesEvaluator=new Dg}async evaluate(e,t){let n=await this.validator.run(e),r=await this.identityEvaluator.accessData(t);if(!r)return{success:!1,issues:[wg({code:`DATA_MISSING`,message:`The data property identity is missing`,path:t.path})]};let i=await this.attributesEvaluator.accessData(t);if(!i)return{success:!1,issues:[wg({code:`DATA_MISSING`,message:`The data property attributes is missing`,path:t.path})]};if((n.identity_master_match_all??!0)&&r.realmName&&r.realmName===`master`)return{success:!0};let a;if(n.attribute_name?a=Array.isArray(n.attribute_name)?n.attribute_name:[n.attribute_name]:(a=[`realm_id`,`realm_name`,`realmId`,`realmName`],n.decision_strategy=Zd.CONSENSUS),!(n.attribute_name_strict??!0)){let e=Object.keys(i),t=[];for(let n of e){let e=!1;for(let t of a)if(n!==t&&n.includes(t)){e=!0;break}e&&t.push(n)}t.length>0&&a.push(...t)}let o=0,s=!1;for(let e of a){if(!Qd(i,e))continue;s=!0;let t=!1,a=i[e];if((a===null&&n.attribute_null_match_all||a===r.realmId||a===r.realmName)&&(t=!0),t){if(n.decision_strategy===Zd.AFFIRMATIVE)return{success:$(!0,n.invert)};o++}else{if(n.decision_strategy===Zd.UNANIMOUS)return{success:$(!1,n.invert)};o--}}return s?{success:$(o>0,n.invert)}:{success:!0}}},Hg=function(e){return e.DAILY=`daily`,e.WEEKLY=`weekly`,e.MONTHLY=`monthly`,e.YEARLY=`yearly`,e}({});function Ug(e){return e===`weekly`||e===`monthly`||e===`yearly`}function Wg(e){return e===`monthly`||e===`yearly`}function Gg(e){return e===`yearly`}var Kg=class extends ha{initialize(){super.initialize(),this.mount(`day_of_week`,L(od().min(0).max(6).or(Z()).or(X()).optional())),this.mount(`day_of_month`,L(od().min(1).max(31).or(Z()).or(X()).optional())),this.mount(`day_of_year`,L(od().min(1).max(365).or(Z()).or(X()).optional())),this.mount(`start`,L(_d().or(hu()).or(yu()).or(od()).or(Z()).or(X()).optional())),this.mount(`end`,L(_d().or(hu()).or(yu()).or(od()).or(Z()).or(X()).optional())),this.mount(`interval`,L(Dd(Hg).or(Z()).or(X()).optional())),this.mount(`invert`,L(Y().or(X()).or(Z()).optional()))}},qg=/^(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d)?$/;function Jg(e,t){let n=t?new Date(t):new Date;return n.setHours(e.getHours(),e.getMinutes()),n}function Yg(e,t){if(typeof e==`string`){if(qg.test(e)){let n=e.split(`:`),r=Number(n[0]),i=Number(n[1]),a=n[2]===void 0?0:Number(n[2]);if(Number.isFinite(r)&&Number.isFinite(i)&&Number.isFinite(a)){let e=t?new Date(t):new Date;return e.setHours(r,i,a,0),e}}return new Date(e)}return typeof e==`number`?new Date(e):e}var Xg=class{validator;constructor(){this.validator=new Kg}async evaluate(e,t){let n=await this.validator.run(e),r;if(t.data.has(`time`)?t.data.isValidated(`time`)?r=t.data.get(`time`):(r=Yg(t.data.get(`time`)),t.data.set(`time`,r),t.data.setValidated(`time`)):r=new Date,n.start){let e=Jg(Yg(n.start,r),r);if(r<e)return{success:$(!1,n.invert)}}if(n.end){let e=Jg(Yg(n.end,r),r);if(r>e)return{success:$(!1,n.invert)}}if(n.interval){if(Ug(n.interval)&&n.day_of_week&&r.getDay()!==n.day_of_week||Wg(n.interval)&&n.day_of_month&&r.getDate()!==n.day_of_month)return{success:$(!1,n.invert)};if(Gg(n.interval)&&n.day_of_year){let e=new Date(r.getFullYear(),0,0),t=r.getTime()-e.getTime()+(e.getTimezoneOffset()-r.getTimezoneOffset())*60*1e3;if(Math.floor(t/(1e3*60*60*24))!==n.day_of_year)return{success:$(!1,n.invert)}}}return{success:$(!0,n.invert)}}};throw new Ag,new Dg,new Og,new Pg,new Lg,new zg,new Vg,new Xg,Error(`Could not resolve "universal-cookie" imported by "@vueuse/integrations". Is it installed?`);function Zg(e){return Array.isArray(e)?e.some(e=>Zg(e)):n(e)?e.created_at===ym.DESC||e.updated_at===ym.DESC:typeof e==`string`&&(e===`-created_at`||e===`-updated_at`)}function Qg(e){if(e)return $g(e)}function $g(e){for(var t in Qg.prototype)e[t]=Qg.prototype[t];return e}function e_(e){return a_&&(e instanceof ArrayBuffer||o_(e))||s_&&e instanceof Blob||c_&&e instanceof File}function t_(e,t){if(!e||typeof e!=`object`)return!1;if(Array.isArray(e)){for(let t=0,n=e.length;t<n;t++)if(t_(e[t]))return!0;return!1}if(e_(e))return!0;if(e.toJSON&&typeof e.toJSON==`function`&&arguments.length===1)return t_(e.toJSON(),!0);for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t_(e[t]))return!0;return!1}function n_(e,t){if(!e)return e;if(e_(e)){let n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){let n=Array(e.length);for(let r=0;r<e.length;r++)n[r]=n_(e[r],t);return n}else if(typeof e==`object`&&!(e instanceof Date)){let n={};for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=n_(e[r],t));return n}return e}function r_(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num==`number`&&e.num>=0&&e.num<t.length)return t[e.num];throw Error(`illegal attachments`)}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=r_(e[n],t);else if(typeof e==`object`)for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=r_(e[n],t));return e}function i_(e=``){return e.includes(`://`)?e.split(`://`).map(e=>i_(e)).join(`://`):e.replace(/\/+/g,`/`)}var a_,o_,s_,c_;
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
13
13
|
<title>Authup</title>
|
|
14
14
|
<!--preload-links-->
|
|
15
|
-
<script type="module" crossorigin src="/public/assets/index-
|
|
15
|
+
<script type="module" crossorigin src="/public/assets/index-DJBdH-x_.js"></script>
|
|
16
16
|
<link rel="stylesheet" crossorigin href="/public/assets/index-BVfayRKv.css">
|
|
17
17
|
</head>
|
|
18
18
|
<body>
|