@amoa/casting 0.1.4 → 0.1.6
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/export/index.js +9 -9
- package/dist/form/buttons/index.js +2 -2
- package/dist/form/buttons/index.module.css.js +0 -4
- package/dist/form/caption/index.js +2 -2
- package/dist/form/caption/index.module.css.js +0 -4
- package/dist/form/description/index.js +2 -2
- package/dist/form/description/index.module.css.js +0 -4
- package/dist/form/email/index.js +3 -3
- package/dist/form/index.js +4 -4
- package/dist/form/index.module.css.js +0 -4
- package/dist/form/inputs/index.js +2 -2
- package/dist/form/inputs/index.module.css.js +0 -4
- package/dist/form/password/index.js +3 -3
- package/dist/index.css +94 -0
- package/dist/waiter/index.js +11 -13
- package/dist/waiter/index.module.css.js +0 -4
- package/package.json +5 -4
- package/dist/_virtual/_commonjsHelpers.js +0 -5
- package/dist/_virtual/_interop_require_default.js +0 -3
- package/dist/_virtual/_interop_require_wildcard.js +0 -3
- package/dist/_virtual/action-async-storage-instance.js +0 -3
- package/dist/_virtual/action-async-storage.external.js +0 -3
- package/dist/_virtual/add-base-path.js +0 -3
- package/dist/_virtual/add-locale.js +0 -3
- package/dist/_virtual/add-locale2.js +0 -3
- package/dist/_virtual/add-path-prefix.js +0 -3
- package/dist/_virtual/app-paths.js +0 -3
- package/dist/_virtual/app-router-context.shared-runtime.js +0 -3
- package/dist/_virtual/app-router-headers.js +0 -3
- package/dist/_virtual/app.js +0 -3
- package/dist/_virtual/async-local-storage.js +0 -3
- package/dist/_virtual/bailout-to-csr.js +0 -3
- package/dist/_virtual/boundary-constants.js +0 -3
- package/dist/_virtual/constants.js +0 -3
- package/dist/_virtual/deployment-id.js +0 -3
- package/dist/_virtual/detect-domain-locale.js +0 -3
- package/dist/_virtual/detect-domain-locale2.js +0 -3
- package/dist/_virtual/dynamic-rendering-utils.js +0 -3
- package/dist/_virtual/dynamic-rendering.js +0 -3
- package/dist/_virtual/ensure-leading-slash.js +0 -3
- package/dist/_virtual/error-once.js +0 -3
- package/dist/_virtual/escape-regexp.js +0 -3
- package/dist/_virtual/find-closest-quality.js +0 -3
- package/dist/_virtual/forbidden.js +0 -3
- package/dist/_virtual/format-url.js +0 -3
- package/dist/_virtual/get-domain-locale.js +0 -3
- package/dist/_virtual/get-dynamic-param.js +0 -3
- package/dist/_virtual/get-img-props.js +0 -3
- package/dist/_virtual/get-segment-param.js +0 -3
- package/dist/_virtual/has-base-path.js +0 -3
- package/dist/_virtual/head-manager-context.shared-runtime.js +0 -3
- package/dist/_virtual/head.js +0 -3
- package/dist/_virtual/hooks-client-context.shared-runtime.js +0 -3
- package/dist/_virtual/hooks-server-context.js +0 -3
- package/dist/_virtual/http-access-fallback.js +0 -3
- package/dist/_virtual/image-blur-svg.js +0 -3
- package/dist/_virtual/image-component.js +0 -3
- package/dist/_virtual/image-config-context.shared-runtime.js +0 -3
- package/dist/_virtual/image-config.js +0 -3
- package/dist/_virtual/image-external.js +0 -3
- package/dist/_virtual/image-loader.js +0 -3
- package/dist/_virtual/image.js +0 -7
- package/dist/_virtual/index.js +0 -3
- package/dist/_virtual/index2.js +0 -3
- package/dist/_virtual/index3.js +0 -3
- package/dist/_virtual/interception-prefix-from-param-type.js +0 -3
- package/dist/_virtual/interception-routes.js +0 -3
- package/dist/_virtual/interpolate-as.js +0 -3
- package/dist/_virtual/invariant-error.js +0 -3
- package/dist/_virtual/is-dynamic.js +0 -3
- package/dist/_virtual/is-local-url.js +0 -3
- package/dist/_virtual/is-next-router-error.js +0 -3
- package/dist/_virtual/is-postpone.js +0 -3
- package/dist/_virtual/jsx-runtime.js +0 -5
- package/dist/_virtual/jsx-runtime2.js +0 -3
- package/dist/_virtual/link.js +0 -7
- package/dist/_virtual/link2.js +0 -3
- package/dist/_virtual/match-local-pattern.js +0 -3
- package/dist/_virtual/match-remote-pattern.js +0 -3
- package/dist/_virtual/navigation.js +0 -3
- package/dist/_virtual/navigation.react-server.js +0 -3
- package/dist/_virtual/navigation2.js +0 -3
- package/dist/_virtual/normalize-locale-path.js +0 -3
- package/dist/_virtual/normalize-locale-path2.js +0 -3
- package/dist/_virtual/normalize-trailing-slash.js +0 -3
- package/dist/_virtual/not-found.js +0 -3
- package/dist/_virtual/omit.js +0 -3
- package/dist/_virtual/parse-loader-tree.js +0 -3
- package/dist/_virtual/parse-path.js +0 -3
- package/dist/_virtual/path-has-prefix.js +0 -3
- package/dist/_virtual/querystring.js +0 -3
- package/dist/_virtual/react-jsx-runtime.development.js +0 -3
- package/dist/_virtual/react-jsx-runtime.production.js +0 -3
- package/dist/_virtual/readonly-url-search-params.js +0 -3
- package/dist/_virtual/redirect-error.js +0 -3
- package/dist/_virtual/redirect-status-code.js +0 -3
- package/dist/_virtual/redirect.js +0 -3
- package/dist/_virtual/remove-trailing-slash.js +0 -3
- package/dist/_virtual/request-idle-callback.js +0 -3
- package/dist/_virtual/resolve-href.js +0 -3
- package/dist/_virtual/resolve-param-value.js +0 -3
- package/dist/_virtual/route-match-utils.js +0 -3
- package/dist/_virtual/route-matcher.js +0 -3
- package/dist/_virtual/route-pattern-normalizer.js +0 -3
- package/dist/_virtual/route-regex.js +0 -3
- package/dist/_virtual/router-context.shared-runtime.js +0 -3
- package/dist/_virtual/scheduler.js +0 -3
- package/dist/_virtual/segment.js +0 -3
- package/dist/_virtual/server-inserted-html.shared-runtime.js +0 -3
- package/dist/_virtual/side-effect.js +0 -3
- package/dist/_virtual/sorted-routes.js +0 -3
- package/dist/_virtual/static-generation-bailout.js +0 -3
- package/dist/_virtual/unauthorized.js +0 -3
- package/dist/_virtual/unrecognized-action-error.js +0 -3
- package/dist/_virtual/unstable-rethrow.browser.js +0 -3
- package/dist/_virtual/unstable-rethrow.js +0 -3
- package/dist/_virtual/unstable-rethrow.server.js +0 -3
- package/dist/_virtual/use-intersection.js +0 -3
- package/dist/_virtual/use-merged-ref.js +0 -3
- package/dist/_virtual/utils.js +0 -3
- package/dist/_virtual/warn-once.js +0 -3
- package/dist/_virtual/work-async-storage-instance.js +0 -3
- package/dist/_virtual/work-async-storage.external.js +0 -3
- package/dist/_virtual/work-unit-async-storage-instance.js +0 -3
- package/dist/_virtual/work-unit-async-storage.external.js +0 -3
- package/dist/config/config.json.js +0 -37
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_default.js +0 -16
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_wildcard.js +0 -48
- package/dist/node_modules/next/dist/client/add-base-path.js +0 -38
- package/dist/node_modules/next/dist/client/add-locale.js +0 -39
- package/dist/node_modules/next/dist/client/components/app-router-headers.js +0 -112
- package/dist/node_modules/next/dist/client/components/forbidden.js +0 -62
- package/dist/node_modules/next/dist/client/components/hooks-server-context.js +0 -50
- package/dist/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.js +0 -77
- package/dist/node_modules/next/dist/client/components/is-next-router-error.js +0 -37
- package/dist/node_modules/next/dist/client/components/navigation.js +0 -198
- package/dist/node_modules/next/dist/client/components/navigation.react-server.js +0 -80
- package/dist/node_modules/next/dist/client/components/not-found.js +0 -56
- package/dist/node_modules/next/dist/client/components/readonly-url-search-params.js +0 -58
- package/dist/node_modules/next/dist/client/components/redirect-error.js +0 -60
- package/dist/node_modules/next/dist/client/components/redirect-status-code.js +0 -36
- package/dist/node_modules/next/dist/client/components/redirect.js +0 -98
- package/dist/node_modules/next/dist/client/components/static-generation-bailout.js +0 -50
- package/dist/node_modules/next/dist/client/components/unauthorized.js +0 -63
- package/dist/node_modules/next/dist/client/components/unrecognized-action-error.js +0 -47
- package/dist/node_modules/next/dist/client/components/unstable-rethrow.browser.js +0 -42
- package/dist/node_modules/next/dist/client/components/unstable-rethrow.js +0 -41
- package/dist/node_modules/next/dist/client/components/unstable-rethrow.server.js +0 -50
- package/dist/node_modules/next/dist/client/detect-domain-locale.js +0 -36
- package/dist/node_modules/next/dist/client/get-domain-locale.js +0 -51
- package/dist/node_modules/next/dist/client/has-base-path.js +0 -36
- package/dist/node_modules/next/dist/client/image-component.js +0 -343
- package/dist/node_modules/next/dist/client/link.js +0 -466
- package/dist/node_modules/next/dist/client/normalize-locale-path.js +0 -40
- package/dist/node_modules/next/dist/client/normalize-trailing-slash.js +0 -54
- package/dist/node_modules/next/dist/client/request-idle-callback.js +0 -52
- package/dist/node_modules/next/dist/client/resolve-href.js +0 -124
- package/dist/node_modules/next/dist/client/use-intersection.js +0 -126
- package/dist/node_modules/next/dist/client/use-merged-ref.js +0 -79
- package/dist/node_modules/next/dist/compiled/path-to-regexp/index.js +0 -439
- package/dist/node_modules/next/dist/compiled/picomatch/index.js +0 -1662
- package/dist/node_modules/next/dist/lib/constants.js +0 -339
- package/dist/node_modules/next/dist/lib/framework/boundary-constants.js +0 -41
- package/dist/node_modules/next/dist/lib/route-pattern-normalizer.js +0 -114
- package/dist/node_modules/next/dist/lib/scheduler.js +0 -69
- package/dist/node_modules/next/dist/server/app-render/action-async-storage-instance.js +0 -26
- package/dist/node_modules/next/dist/server/app-render/action-async-storage.external.js +0 -25
- package/dist/node_modules/next/dist/server/app-render/async-local-storage.js +0 -83
- package/dist/node_modules/next/dist/server/app-render/dynamic-rendering.js +0 -804
- package/dist/node_modules/next/dist/server/app-render/work-async-storage-instance.js +0 -26
- package/dist/node_modules/next/dist/server/app-render/work-async-storage.external.js +0 -25
- package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js +0 -26
- package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js +0 -221
- package/dist/node_modules/next/dist/server/dynamic-rendering-utils.js +0 -90
- package/dist/node_modules/next/dist/server/lib/router-utils/is-postpone.js +0 -27
- package/dist/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js +0 -56
- package/dist/node_modules/next/dist/shared/lib/deployment-id.js +0 -41
- package/dist/node_modules/next/dist/shared/lib/escape-regexp.js +0 -32
- package/dist/node_modules/next/dist/shared/lib/find-closest-quality.js +0 -30
- package/dist/node_modules/next/dist/shared/lib/get-img-props.js +0 -617
- package/dist/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js +0 -31
- package/dist/node_modules/next/dist/shared/lib/head.js +0 -177
- package/dist/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js +0 -65
- package/dist/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js +0 -36
- package/dist/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js +0 -66
- package/dist/node_modules/next/dist/shared/lib/image-blur-svg.js +0 -42
- package/dist/node_modules/next/dist/shared/lib/image-config-context.shared-runtime.js +0 -33
- package/dist/node_modules/next/dist/shared/lib/image-config.js +0 -56
- package/dist/node_modules/next/dist/shared/lib/image-external.js +0 -60
- package/dist/node_modules/next/dist/shared/lib/image-loader.js +0 -119
- package/dist/node_modules/next/dist/shared/lib/invariant-error.js +0 -29
- package/dist/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js +0 -43
- package/dist/node_modules/next/dist/shared/lib/match-local-pattern.js +0 -54
- package/dist/node_modules/next/dist/shared/lib/match-remote-pattern.js +0 -71
- package/dist/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js +0 -31
- package/dist/node_modules/next/dist/shared/lib/router/routes/app.js +0 -130
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-locale.js +0 -41
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js +0 -36
- package/dist/node_modules/next/dist/shared/lib/router/utils/app-paths.js +0 -61
- package/dist/node_modules/next/dist/shared/lib/router/utils/format-url.js +0 -88
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js +0 -176
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-segment-param.js +0 -89
- package/dist/node_modules/next/dist/shared/lib/router/utils/index.js +0 -38
- package/dist/node_modules/next/dist/shared/lib/router/utils/interception-prefix-from-param-type.js +0 -44
- package/dist/node_modules/next/dist/shared/lib/router/utils/interception-routes.js +0 -109
- package/dist/node_modules/next/dist/shared/lib/router/utils/interpolate-as.js +0 -71
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js +0 -38
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-local-url.js +0 -39
- package/dist/node_modules/next/dist/shared/lib/router/utils/omit.js +0 -32
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js +0 -46
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-path.js +0 -46
- package/dist/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js +0 -34
- package/dist/node_modules/next/dist/shared/lib/router/utils/querystring.js +0 -82
- package/dist/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js +0 -34
- package/dist/node_modules/next/dist/shared/lib/router/utils/resolve-param-value.js +0 -128
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-match-utils.js +0 -122
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-matcher.js +0 -61
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-regex.js +0 -312
- package/dist/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js +0 -246
- package/dist/node_modules/next/dist/shared/lib/router-context.shared-runtime.js +0 -31
- package/dist/node_modules/next/dist/shared/lib/segment.js +0 -102
- package/dist/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.js +0 -44
- package/dist/node_modules/next/dist/shared/lib/side-effect.js +0 -78
- package/dist/node_modules/next/dist/shared/lib/utils/error-once.js +0 -33
- package/dist/node_modules/next/dist/shared/lib/utils/warn-once.js +0 -33
- package/dist/node_modules/next/dist/shared/lib/utils.js +0 -192
- package/dist/node_modules/next/image.js +0 -13
- package/dist/node_modules/next/link.js +0 -13
- package/dist/node_modules/next/navigation.js +0 -13
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +0 -240
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.js +0 -44
- package/dist/node_modules/react/jsx-runtime.js +0 -19
- package/dist/node_modules/style-inject/dist/style-inject.es.js +0 -26
- package/dist/packages/carving/src/carving.js +0 -34
- package/dist/packages/carving/src/condo.js +0 -17
- package/dist/packages/carving/src/logos/amoa.js +0 -17
- package/dist/packages/forge/src/classes.js +0 -17
- package/dist/packages/forge/src/dates/date.js +0 -8
- package/dist/packages/forge/src/dates/day.js +0 -7
- package/dist/packages/forge/src/dates/index.js +0 -31
- package/dist/packages/forge/src/dates/month.js +0 -35
- package/dist/packages/forge/src/dates/year.js +0 -16
- package/dist/packages/forge/src/fetcher/index.js +0 -37
- package/dist/packages/forge/src/fetcher/querystring.js +0 -9
- package/dist/packages/forge/src/files.js +0 -17
- package/dist/packages/forge/src/numbers/index.js +0 -5
- package/dist/packages/forge/src/strings/characters.js +0 -3
- package/dist/packages/forge/src/strings/diacritics.js +0 -261
- package/dist/packages/forge/src/strings/index.js +0 -24
- package/dist/packages/hooks/src/use-debounce.js +0 -19
- package/dist/packages/hooks/src/use-tooltip.js +0 -27
- package/dist/packages/ingots/src/address/api/form.js +0 -12
- package/dist/packages/ingots/src/address/config.json.js +0 -16
- package/dist/packages/ingots/src/address/index.js +0 -117
- package/dist/packages/ingots/src/address/index.module.css.js +0 -7
- package/dist/packages/ingots/src/address/service.js +0 -41
- package/dist/packages/ingots/src/backdrop/index.js +0 -18
- package/dist/packages/ingots/src/backdrop/index.module.css.js +0 -7
- package/dist/packages/ingots/src/button/index.js +0 -56
- package/dist/packages/ingots/src/button/index.module.css.js +0 -7
- package/dist/packages/ingots/src/checkbox/index.js +0 -47
- package/dist/packages/ingots/src/checkbox/index.module.css.js +0 -7
- package/dist/packages/ingots/src/date/erase/index.js +0 -22
- package/dist/packages/ingots/src/date/erase/index.module.css.js +0 -7
- package/dist/packages/ingots/src/date/input/index.js +0 -113
- package/dist/packages/ingots/src/date/input/index.module.css.js +0 -7
- package/dist/packages/ingots/src/date/picker/day/index.js +0 -35
- package/dist/packages/ingots/src/date/picker/day/index.module.css.js +0 -7
- package/dist/packages/ingots/src/date/picker/days/index.js +0 -59
- package/dist/packages/ingots/src/date/picker/days/index.module.css.js +0 -7
- package/dist/packages/ingots/src/date/picker/handle/index.js +0 -40
- package/dist/packages/ingots/src/date/picker/handle/index.module.css.js +0 -7
- package/dist/packages/ingots/src/date/picker/index.js +0 -154
- package/dist/packages/ingots/src/date/picker/index.module.css.js +0 -7
- package/dist/packages/ingots/src/date/picker/menu/index.js +0 -32
- package/dist/packages/ingots/src/date/picker/menu/index.module.css.js +0 -7
- package/dist/packages/ingots/src/date/picker/menu/item.js +0 -30
- package/dist/packages/ingots/src/date/picker/menu/item.module.css.js +0 -7
- package/dist/packages/ingots/src/file/api/index.js +0 -14
- package/dist/packages/ingots/src/file/card/index.js +0 -65
- package/dist/packages/ingots/src/file/card/index.module.css.js +0 -7
- package/dist/packages/ingots/src/file/index.js +0 -34
- package/dist/packages/ingots/src/file/index.module.css.js +0 -7
- package/dist/packages/ingots/src/file/input/index.js +0 -261
- package/dist/packages/ingots/src/file/input/index.module.css.js +0 -7
- package/dist/packages/ingots/src/input/index.js +0 -75
- package/dist/packages/ingots/src/input/src/validation/index.js +0 -3
- package/dist/packages/ingots/src/loader/index.js +0 -23
- package/dist/packages/ingots/src/loader/index.module.css.js +0 -7
- package/dist/packages/ingots/src/loader/variants/spinner/index.js +0 -31
- package/dist/packages/ingots/src/loader/variants/spinner/index.module.css.js +0 -7
- package/dist/packages/ingots/src/select/card/index.js +0 -33
- package/dist/packages/ingots/src/select/card/index.module.css.js +0 -7
- package/dist/packages/ingots/src/select/category/index.js +0 -13
- package/dist/packages/ingots/src/select/category/index.module.css.js +0 -7
- package/dist/packages/ingots/src/select/content/index.js +0 -46
- package/dist/packages/ingots/src/select/index.js +0 -155
- package/dist/packages/ingots/src/select/index.module.css.js +0 -7
- package/dist/packages/ingots/src/select/option/index.js +0 -35
- package/dist/packages/ingots/src/select/option/index.module.css.js +0 -7
- package/dist/packages/ingots/src/select/options/index.js +0 -59
- package/dist/packages/ingots/src/select/options/index.module.css.js +0 -7
- package/dist/packages/ingots/src/snackbar/context.js +0 -9
- package/dist/packages/ingots/src/tag/index.js +0 -16
- package/dist/packages/ingots/src/tag/index.module.css.js +0 -7
- package/dist/packages/ingots/src/text/index.js +0 -92
- package/dist/packages/ingots/src/text/index.module.css.js +0 -7
- package/dist/packages/ingots/src/textarea/index.js +0 -62
- package/dist/packages/ingots/src/textarea/index.module.css.js +0 -7
- package/dist/packages/ingots/src/toggle/index.js +0 -43
- package/dist/packages/ingots/src/toggle/index.module.css.js +0 -7
- package/dist/packages/runes/src/icon.js +0 -16
- package/dist/packages/runes/src/paths/alert.js +0 -18
- package/dist/packages/runes/src/paths/arrow/path.js +0 -18
- package/dist/packages/runes/src/paths/calendar.js +0 -18
- package/dist/packages/runes/src/paths/check/fill.js +0 -18
- package/dist/packages/runes/src/paths/check/regular.js +0 -18
- package/dist/packages/runes/src/paths/chevron/down.js +0 -18
- package/dist/packages/runes/src/paths/chevron/left.js +0 -18
- package/dist/packages/runes/src/paths/chevron/right.js +0 -18
- package/dist/packages/runes/src/paths/click.js +0 -18
- package/dist/packages/runes/src/paths/cross/regular.js +0 -16
- package/dist/packages/runes/src/paths/download.js +0 -18
- package/dist/packages/runes/src/paths/file.js +0 -18
- package/dist/packages/runes/src/paths/link.js +0 -23
- package/dist/packages/wares/src/authentication/index.js +0 -11
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { __exports as invariantError } from '../../../../../_virtual/invariant-error.js';
|
|
2
|
-
|
|
3
|
-
var hasRequiredInvariantError;
|
|
4
|
-
|
|
5
|
-
function requireInvariantError () {
|
|
6
|
-
if (hasRequiredInvariantError) return invariantError;
|
|
7
|
-
hasRequiredInvariantError = 1;
|
|
8
|
-
(function (exports$1) {
|
|
9
|
-
|
|
10
|
-
Object.defineProperty(exports$1, "__esModule", {
|
|
11
|
-
value: true
|
|
12
|
-
});
|
|
13
|
-
Object.defineProperty(exports$1, "InvariantError", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function () {
|
|
16
|
-
return InvariantError;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
class InvariantError extends Error {
|
|
20
|
-
constructor(message, options) {
|
|
21
|
-
super(`Invariant: ${message.endsWith('.') ? message : message + '.'} This is a bug in Next.js.`, options);
|
|
22
|
-
this.name = 'InvariantError';
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
} (invariantError));
|
|
26
|
-
return invariantError;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export { requireInvariantError as __require };
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { __exports as bailoutToCsr } from '../../../../../../_virtual/bailout-to-csr.js';
|
|
2
|
-
|
|
3
|
-
var hasRequiredBailoutToCsr;
|
|
4
|
-
|
|
5
|
-
function requireBailoutToCsr () {
|
|
6
|
-
if (hasRequiredBailoutToCsr) return bailoutToCsr;
|
|
7
|
-
hasRequiredBailoutToCsr = 1;
|
|
8
|
-
(function (exports$1) {
|
|
9
|
-
|
|
10
|
-
Object.defineProperty(exports$1, "__esModule", {
|
|
11
|
-
value: true
|
|
12
|
-
});
|
|
13
|
-
function _export(target, all) {
|
|
14
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: all[name]
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
_export(exports$1, {
|
|
20
|
-
BailoutToCSRError: function () {
|
|
21
|
-
return BailoutToCSRError;
|
|
22
|
-
},
|
|
23
|
-
isBailoutToCSRError: function () {
|
|
24
|
-
return isBailoutToCSRError;
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
const BAILOUT_TO_CSR = 'BAILOUT_TO_CLIENT_SIDE_RENDERING';
|
|
28
|
-
class BailoutToCSRError extends Error {
|
|
29
|
-
constructor(reason) {
|
|
30
|
-
super(`Bail out to client-side rendering: ${reason}`), this.reason = reason, this.digest = BAILOUT_TO_CSR;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
function isBailoutToCSRError(err) {
|
|
34
|
-
if (typeof err !== 'object' || err === null || !('digest' in err)) {
|
|
35
|
-
return false;
|
|
36
|
-
}
|
|
37
|
-
return err.digest === BAILOUT_TO_CSR;
|
|
38
|
-
}
|
|
39
|
-
} (bailoutToCsr));
|
|
40
|
-
return bailoutToCsr;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export { requireBailoutToCsr as __require };
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { __exports as matchLocalPattern } from '../../../../../_virtual/match-local-pattern.js';
|
|
2
|
-
import { __require as requirePicomatch } from '../../compiled/picomatch/index.js';
|
|
3
|
-
|
|
4
|
-
var hasRequiredMatchLocalPattern;
|
|
5
|
-
|
|
6
|
-
function requireMatchLocalPattern () {
|
|
7
|
-
if (hasRequiredMatchLocalPattern) return matchLocalPattern;
|
|
8
|
-
hasRequiredMatchLocalPattern = 1;
|
|
9
|
-
(function (exports$1) {
|
|
10
|
-
|
|
11
|
-
Object.defineProperty(exports$1, "__esModule", {
|
|
12
|
-
value: true
|
|
13
|
-
});
|
|
14
|
-
function _export(target, all) {
|
|
15
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
16
|
-
enumerable: true,
|
|
17
|
-
get: all[name]
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
_export(exports$1, {
|
|
21
|
-
hasLocalMatch: function () {
|
|
22
|
-
return hasLocalMatch;
|
|
23
|
-
},
|
|
24
|
-
matchLocalPattern: function () {
|
|
25
|
-
return matchLocalPattern;
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
const _picomatch = requirePicomatch();
|
|
29
|
-
function matchLocalPattern(pattern, url) {
|
|
30
|
-
if (pattern.search !== undefined) {
|
|
31
|
-
if (pattern.search !== url.search) {
|
|
32
|
-
return false;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
if (!(0, _picomatch.makeRe)(pattern.pathname ?? '**', {
|
|
36
|
-
dot: true
|
|
37
|
-
}).test(url.pathname)) {
|
|
38
|
-
return false;
|
|
39
|
-
}
|
|
40
|
-
return true;
|
|
41
|
-
}
|
|
42
|
-
function hasLocalMatch(localPatterns, urlPathAndQuery) {
|
|
43
|
-
if (!localPatterns) {
|
|
44
|
-
// if the user didn't define "localPatterns", we allow all local images
|
|
45
|
-
return true;
|
|
46
|
-
}
|
|
47
|
-
const url = new URL(urlPathAndQuery, 'http://n');
|
|
48
|
-
return localPatterns.some(p => matchLocalPattern(p, url));
|
|
49
|
-
}
|
|
50
|
-
} (matchLocalPattern));
|
|
51
|
-
return matchLocalPattern;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export { requireMatchLocalPattern as __require };
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { __exports as matchRemotePattern } from '../../../../../_virtual/match-remote-pattern.js';
|
|
2
|
-
import { __require as requirePicomatch } from '../../compiled/picomatch/index.js';
|
|
3
|
-
|
|
4
|
-
var hasRequiredMatchRemotePattern;
|
|
5
|
-
|
|
6
|
-
function requireMatchRemotePattern () {
|
|
7
|
-
if (hasRequiredMatchRemotePattern) return matchRemotePattern;
|
|
8
|
-
hasRequiredMatchRemotePattern = 1;
|
|
9
|
-
(function (exports$1) {
|
|
10
|
-
|
|
11
|
-
Object.defineProperty(exports$1, "__esModule", {
|
|
12
|
-
value: true
|
|
13
|
-
});
|
|
14
|
-
function _export(target, all) {
|
|
15
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
16
|
-
enumerable: true,
|
|
17
|
-
get: all[name]
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
_export(exports$1, {
|
|
21
|
-
hasRemoteMatch: function () {
|
|
22
|
-
return hasRemoteMatch;
|
|
23
|
-
},
|
|
24
|
-
matchRemotePattern: function () {
|
|
25
|
-
return matchRemotePattern;
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
const _picomatch = requirePicomatch();
|
|
29
|
-
function matchRemotePattern(pattern, url) {
|
|
30
|
-
if (pattern.protocol !== undefined) {
|
|
31
|
-
if (pattern.protocol.replace(/:$/, '') !== url.protocol.replace(/:$/, '')) {
|
|
32
|
-
return false;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
if (pattern.port !== undefined) {
|
|
36
|
-
if (pattern.port !== url.port) {
|
|
37
|
-
return false;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
if (pattern.hostname === undefined) {
|
|
41
|
-
throw Object.defineProperty(new Error(`Pattern should define hostname but found\n${JSON.stringify(pattern)}`), "__NEXT_ERROR_CODE", {
|
|
42
|
-
value: "E410",
|
|
43
|
-
enumerable: false,
|
|
44
|
-
configurable: true
|
|
45
|
-
});
|
|
46
|
-
} else {
|
|
47
|
-
if (!(0, _picomatch.makeRe)(pattern.hostname).test(url.hostname)) {
|
|
48
|
-
return false;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
if (pattern.search !== undefined) {
|
|
52
|
-
if (pattern.search !== url.search) {
|
|
53
|
-
return false;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
// Should be the same as writeImagesManifest()
|
|
57
|
-
if (!(0, _picomatch.makeRe)(pattern.pathname ?? '**', {
|
|
58
|
-
dot: true
|
|
59
|
-
}).test(url.pathname)) {
|
|
60
|
-
return false;
|
|
61
|
-
}
|
|
62
|
-
return true;
|
|
63
|
-
}
|
|
64
|
-
function hasRemoteMatch(domains, remotePatterns, url) {
|
|
65
|
-
return domains.some(domain => url.hostname === domain) || remotePatterns.some(p => matchRemotePattern(p, url));
|
|
66
|
-
}
|
|
67
|
-
} (matchRemotePattern));
|
|
68
|
-
return matchRemotePattern;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export { requireMatchRemotePattern as __require };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { __exports as ensureLeadingSlash } from '../../../../../../_virtual/ensure-leading-slash.js';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* For a given page path, this function ensures that there is a leading slash.
|
|
5
|
-
* If there is not a leading slash, one is added, otherwise it is noop.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
var hasRequiredEnsureLeadingSlash;
|
|
9
|
-
|
|
10
|
-
function requireEnsureLeadingSlash () {
|
|
11
|
-
if (hasRequiredEnsureLeadingSlash) return ensureLeadingSlash;
|
|
12
|
-
hasRequiredEnsureLeadingSlash = 1;
|
|
13
|
-
(function (exports$1) {
|
|
14
|
-
|
|
15
|
-
Object.defineProperty(exports$1, "__esModule", {
|
|
16
|
-
value: true
|
|
17
|
-
});
|
|
18
|
-
Object.defineProperty(exports$1, "ensureLeadingSlash", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function () {
|
|
21
|
-
return ensureLeadingSlash;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
function ensureLeadingSlash(path) {
|
|
25
|
-
return path.startsWith('/') ? path : `/${path}`;
|
|
26
|
-
}
|
|
27
|
-
} (ensureLeadingSlash));
|
|
28
|
-
return ensureLeadingSlash;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export { requireEnsureLeadingSlash as __require };
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import { __exports as app } from '../../../../../../../_virtual/app.js';
|
|
2
|
-
import { __require as requireInvariantError } from '../../invariant-error.js';
|
|
3
|
-
import { __require as requireGetSegmentParam } from '../utils/get-segment-param.js';
|
|
4
|
-
import { __require as requireInterceptionRoutes } from '../utils/interception-routes.js';
|
|
5
|
-
|
|
6
|
-
var hasRequiredApp;
|
|
7
|
-
|
|
8
|
-
function requireApp () {
|
|
9
|
-
if (hasRequiredApp) return app;
|
|
10
|
-
hasRequiredApp = 1;
|
|
11
|
-
(function (exports$1) {
|
|
12
|
-
|
|
13
|
-
Object.defineProperty(exports$1, "__esModule", {
|
|
14
|
-
value: true
|
|
15
|
-
});
|
|
16
|
-
function _export(target, all) {
|
|
17
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: all[name]
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
_export(exports$1, {
|
|
23
|
-
isInterceptionAppRoute: function () {
|
|
24
|
-
return isInterceptionAppRoute;
|
|
25
|
-
},
|
|
26
|
-
isNormalizedAppRoute: function () {
|
|
27
|
-
return isNormalizedAppRoute;
|
|
28
|
-
},
|
|
29
|
-
parseAppRoute: function () {
|
|
30
|
-
return parseAppRoute;
|
|
31
|
-
},
|
|
32
|
-
parseAppRouteSegment: function () {
|
|
33
|
-
return parseAppRouteSegment;
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
const _invarianterror = requireInvariantError();
|
|
37
|
-
const _getsegmentparam = requireGetSegmentParam();
|
|
38
|
-
const _interceptionroutes = requireInterceptionRoutes();
|
|
39
|
-
function parseAppRouteSegment(segment) {
|
|
40
|
-
if (segment === '') {
|
|
41
|
-
return null;
|
|
42
|
-
}
|
|
43
|
-
// Check if the segment starts with an interception marker
|
|
44
|
-
const interceptionMarker = _interceptionroutes.INTERCEPTION_ROUTE_MARKERS.find(m => segment.startsWith(m));
|
|
45
|
-
const param = (0, _getsegmentparam.getSegmentParam)(segment);
|
|
46
|
-
if (param) {
|
|
47
|
-
return {
|
|
48
|
-
type: 'dynamic',
|
|
49
|
-
name: segment,
|
|
50
|
-
param,
|
|
51
|
-
interceptionMarker
|
|
52
|
-
};
|
|
53
|
-
} else if (segment.startsWith('(') && segment.endsWith(')')) {
|
|
54
|
-
return {
|
|
55
|
-
type: 'route-group',
|
|
56
|
-
name: segment,
|
|
57
|
-
interceptionMarker
|
|
58
|
-
};
|
|
59
|
-
} else if (segment.startsWith('@')) {
|
|
60
|
-
return {
|
|
61
|
-
type: 'parallel-route',
|
|
62
|
-
name: segment,
|
|
63
|
-
interceptionMarker
|
|
64
|
-
};
|
|
65
|
-
} else {
|
|
66
|
-
return {
|
|
67
|
-
type: 'static',
|
|
68
|
-
name: segment,
|
|
69
|
-
interceptionMarker
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
function isNormalizedAppRoute(route) {
|
|
74
|
-
return route.normalized;
|
|
75
|
-
}
|
|
76
|
-
function isInterceptionAppRoute(route) {
|
|
77
|
-
return route.interceptionMarker !== undefined && route.interceptingRoute !== undefined && route.interceptedRoute !== undefined;
|
|
78
|
-
}
|
|
79
|
-
function parseAppRoute(pathname, normalized) {
|
|
80
|
-
const pathnameSegments = pathname.split('/').filter(Boolean);
|
|
81
|
-
// Build segments array with static and dynamic segments
|
|
82
|
-
const segments = [];
|
|
83
|
-
// Parse if this is an interception route.
|
|
84
|
-
let interceptionMarker;
|
|
85
|
-
let interceptingRoute;
|
|
86
|
-
let interceptedRoute;
|
|
87
|
-
for (const segment of pathnameSegments) {
|
|
88
|
-
// Parse the segment into an AppSegment.
|
|
89
|
-
const appSegment = parseAppRouteSegment(segment);
|
|
90
|
-
if (!appSegment) {
|
|
91
|
-
continue;
|
|
92
|
-
}
|
|
93
|
-
if (normalized && (appSegment.type === 'route-group' || appSegment.type === 'parallel-route')) {
|
|
94
|
-
throw Object.defineProperty(new _invarianterror.InvariantError(`${pathname} is being parsed as a normalized route, but it has a route group or parallel route segment.`), "__NEXT_ERROR_CODE", {
|
|
95
|
-
value: "E923",
|
|
96
|
-
enumerable: false,
|
|
97
|
-
configurable: true
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
segments.push(appSegment);
|
|
101
|
-
if (appSegment.interceptionMarker) {
|
|
102
|
-
const parts = pathname.split(appSegment.interceptionMarker);
|
|
103
|
-
if (parts.length !== 2) {
|
|
104
|
-
throw Object.defineProperty(new Error(`Invalid interception route: ${pathname}`), "__NEXT_ERROR_CODE", {
|
|
105
|
-
value: "E924",
|
|
106
|
-
enumerable: false,
|
|
107
|
-
configurable: true
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
interceptingRoute = normalized ? parseAppRoute(parts[0], true) : parseAppRoute(parts[0], false);
|
|
111
|
-
interceptedRoute = normalized ? parseAppRoute(parts[1], true) : parseAppRoute(parts[1], false);
|
|
112
|
-
interceptionMarker = appSegment.interceptionMarker;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
const dynamicSegments = segments.filter(segment => segment.type === 'dynamic');
|
|
116
|
-
return {
|
|
117
|
-
normalized,
|
|
118
|
-
pathname,
|
|
119
|
-
segments,
|
|
120
|
-
dynamicSegments,
|
|
121
|
-
interceptionMarker,
|
|
122
|
-
interceptingRoute,
|
|
123
|
-
interceptedRoute
|
|
124
|
-
};
|
|
125
|
-
}
|
|
126
|
-
} (app));
|
|
127
|
-
return app;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
export { requireApp as __require };
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { __exports as addLocale } from '../../../../../../../_virtual/add-locale2.js';
|
|
2
|
-
import { __require as requireAddPathPrefix } from './add-path-prefix.js';
|
|
3
|
-
import { __require as requirePathHasPrefix } from './path-has-prefix.js';
|
|
4
|
-
|
|
5
|
-
var hasRequiredAddLocale;
|
|
6
|
-
|
|
7
|
-
function requireAddLocale () {
|
|
8
|
-
if (hasRequiredAddLocale) return addLocale;
|
|
9
|
-
hasRequiredAddLocale = 1;
|
|
10
|
-
(function (exports$1) {
|
|
11
|
-
|
|
12
|
-
Object.defineProperty(exports$1, "__esModule", {
|
|
13
|
-
value: true
|
|
14
|
-
});
|
|
15
|
-
Object.defineProperty(exports$1, "addLocale", {
|
|
16
|
-
enumerable: true,
|
|
17
|
-
get: function () {
|
|
18
|
-
return addLocale;
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
const _addpathprefix = requireAddPathPrefix();
|
|
22
|
-
const _pathhasprefix = requirePathHasPrefix();
|
|
23
|
-
function addLocale(path, locale, defaultLocale, ignorePrefix) {
|
|
24
|
-
// If no locale was given or the locale is the default locale, we don't need
|
|
25
|
-
// to prefix the path.
|
|
26
|
-
if (!locale || locale === defaultLocale) return path;
|
|
27
|
-
const lower = path.toLowerCase();
|
|
28
|
-
// If the path is an API path or the path already has the locale prefix, we
|
|
29
|
-
// don't need to prefix the path.
|
|
30
|
-
if (!ignorePrefix) {
|
|
31
|
-
if ((0, _pathhasprefix.pathHasPrefix)(lower, '/api')) return path;
|
|
32
|
-
if ((0, _pathhasprefix.pathHasPrefix)(lower, `/${locale.toLowerCase()}`)) return path;
|
|
33
|
-
}
|
|
34
|
-
// Add the locale prefix to the path.
|
|
35
|
-
return (0, _addpathprefix.addPathPrefix)(path, `/${locale}`);
|
|
36
|
-
}
|
|
37
|
-
} (addLocale));
|
|
38
|
-
return addLocale;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export { requireAddLocale as __require };
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { __exports as addPathPrefix } from '../../../../../../../_virtual/add-path-prefix.js';
|
|
2
|
-
import { __require as requireParsePath } from './parse-path.js';
|
|
3
|
-
|
|
4
|
-
var hasRequiredAddPathPrefix;
|
|
5
|
-
|
|
6
|
-
function requireAddPathPrefix () {
|
|
7
|
-
if (hasRequiredAddPathPrefix) return addPathPrefix;
|
|
8
|
-
hasRequiredAddPathPrefix = 1;
|
|
9
|
-
(function (exports$1) {
|
|
10
|
-
|
|
11
|
-
Object.defineProperty(exports$1, "__esModule", {
|
|
12
|
-
value: true
|
|
13
|
-
});
|
|
14
|
-
Object.defineProperty(exports$1, "addPathPrefix", {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function () {
|
|
17
|
-
return addPathPrefix;
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
const _parsepath = requireParsePath();
|
|
21
|
-
function addPathPrefix(path, prefix) {
|
|
22
|
-
if (!path.startsWith('/') || !prefix) {
|
|
23
|
-
return path;
|
|
24
|
-
}
|
|
25
|
-
const {
|
|
26
|
-
pathname,
|
|
27
|
-
query,
|
|
28
|
-
hash
|
|
29
|
-
} = (0, _parsepath.parsePath)(path);
|
|
30
|
-
return `${prefix}${pathname}${query}${hash}`;
|
|
31
|
-
}
|
|
32
|
-
} (addPathPrefix));
|
|
33
|
-
return addPathPrefix;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export { requireAddPathPrefix as __require };
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { __exports as appPaths } from '../../../../../../../_virtual/app-paths.js';
|
|
2
|
-
import { __require as requireEnsureLeadingSlash } from '../../page-path/ensure-leading-slash.js';
|
|
3
|
-
import { __require as requireSegment } from '../../segment.js';
|
|
4
|
-
|
|
5
|
-
var hasRequiredAppPaths;
|
|
6
|
-
|
|
7
|
-
function requireAppPaths () {
|
|
8
|
-
if (hasRequiredAppPaths) return appPaths;
|
|
9
|
-
hasRequiredAppPaths = 1;
|
|
10
|
-
(function (exports$1) {
|
|
11
|
-
|
|
12
|
-
Object.defineProperty(exports$1, "__esModule", {
|
|
13
|
-
value: true
|
|
14
|
-
});
|
|
15
|
-
function _export(target, all) {
|
|
16
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
get: all[name]
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
_export(exports$1, {
|
|
22
|
-
normalizeAppPath: function () {
|
|
23
|
-
return normalizeAppPath;
|
|
24
|
-
},
|
|
25
|
-
normalizeRscURL: function () {
|
|
26
|
-
return normalizeRscURL;
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
const _ensureleadingslash = requireEnsureLeadingSlash();
|
|
30
|
-
const _segment = requireSegment();
|
|
31
|
-
function normalizeAppPath(route) {
|
|
32
|
-
return (0, _ensureleadingslash.ensureLeadingSlash)(route.split('/').reduce((pathname, segment, index, segments) => {
|
|
33
|
-
// Empty segments are ignored.
|
|
34
|
-
if (!segment) {
|
|
35
|
-
return pathname;
|
|
36
|
-
}
|
|
37
|
-
// Groups are ignored.
|
|
38
|
-
if ((0, _segment.isGroupSegment)(segment)) {
|
|
39
|
-
return pathname;
|
|
40
|
-
}
|
|
41
|
-
// Parallel segments are ignored.
|
|
42
|
-
if (segment[0] === '@') {
|
|
43
|
-
return pathname;
|
|
44
|
-
}
|
|
45
|
-
// The last segment (if it's a leaf) should be ignored.
|
|
46
|
-
if ((segment === 'page' || segment === 'route') && index === segments.length - 1) {
|
|
47
|
-
return pathname;
|
|
48
|
-
}
|
|
49
|
-
return `${pathname}/${segment}`;
|
|
50
|
-
}, ''));
|
|
51
|
-
}
|
|
52
|
-
function normalizeRscURL(url) {
|
|
53
|
-
return url.replace(/\.rsc($|\?)/,
|
|
54
|
-
// $1 ensures `?` is preserved
|
|
55
|
-
'$1');
|
|
56
|
-
}
|
|
57
|
-
} (appPaths));
|
|
58
|
-
return appPaths;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export { requireAppPaths as __require };
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { __exports as formatUrl } from '../../../../../../../_virtual/format-url.js';
|
|
2
|
-
import { __require as require_interop_require_wildcard } from '../../../../../../@swc/helpers/cjs/_interop_require_wildcard.js';
|
|
3
|
-
import { __require as requireQuerystring } from './querystring.js';
|
|
4
|
-
|
|
5
|
-
var hasRequiredFormatUrl;
|
|
6
|
-
|
|
7
|
-
function requireFormatUrl () {
|
|
8
|
-
if (hasRequiredFormatUrl) return formatUrl;
|
|
9
|
-
hasRequiredFormatUrl = 1;
|
|
10
|
-
(function (exports$1) {
|
|
11
|
-
|
|
12
|
-
Object.defineProperty(exports$1, "__esModule", {
|
|
13
|
-
value: true
|
|
14
|
-
});
|
|
15
|
-
function _export(target, all) {
|
|
16
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
get: all[name]
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
_export(exports$1, {
|
|
22
|
-
formatUrl: function () {
|
|
23
|
-
return formatUrl;
|
|
24
|
-
},
|
|
25
|
-
formatWithValidation: function () {
|
|
26
|
-
return formatWithValidation;
|
|
27
|
-
},
|
|
28
|
-
urlObjectKeys: function () {
|
|
29
|
-
return urlObjectKeys;
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
const _interop_require_wildcard = /*@__PURE__*/ require_interop_require_wildcard();
|
|
33
|
-
const _querystring = /*#__PURE__*/_interop_require_wildcard._(requireQuerystring());
|
|
34
|
-
const slashedProtocols = /https?|ftp|gopher|file/;
|
|
35
|
-
function formatUrl(urlObj) {
|
|
36
|
-
let {
|
|
37
|
-
auth,
|
|
38
|
-
hostname
|
|
39
|
-
} = urlObj;
|
|
40
|
-
let protocol = urlObj.protocol || '';
|
|
41
|
-
let pathname = urlObj.pathname || '';
|
|
42
|
-
let hash = urlObj.hash || '';
|
|
43
|
-
let query = urlObj.query || '';
|
|
44
|
-
let host = false;
|
|
45
|
-
auth = auth ? encodeURIComponent(auth).replace(/%3A/i, ':') + '@' : '';
|
|
46
|
-
if (urlObj.host) {
|
|
47
|
-
host = auth + urlObj.host;
|
|
48
|
-
} else if (hostname) {
|
|
49
|
-
host = auth + (~hostname.indexOf(':') ? `[${hostname}]` : hostname);
|
|
50
|
-
if (urlObj.port) {
|
|
51
|
-
host += ':' + urlObj.port;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
if (query && typeof query === 'object') {
|
|
55
|
-
query = String(_querystring.urlQueryToSearchParams(query));
|
|
56
|
-
}
|
|
57
|
-
let search = urlObj.search || query && `?${query}` || '';
|
|
58
|
-
if (protocol && !protocol.endsWith(':')) protocol += ':';
|
|
59
|
-
if (urlObj.slashes || (!protocol || slashedProtocols.test(protocol)) && host !== false) {
|
|
60
|
-
host = '//' + (host || '');
|
|
61
|
-
if (pathname && pathname[0] !== '/') pathname = '/' + pathname;
|
|
62
|
-
} else if (!host) {
|
|
63
|
-
host = '';
|
|
64
|
-
}
|
|
65
|
-
if (hash && hash[0] !== '#') hash = '#' + hash;
|
|
66
|
-
if (search && search[0] !== '?') search = '?' + search;
|
|
67
|
-
pathname = pathname.replace(/[?#]/g, encodeURIComponent);
|
|
68
|
-
search = search.replace('#', '%23');
|
|
69
|
-
return `${protocol}${host}${pathname}${search}${hash}`;
|
|
70
|
-
}
|
|
71
|
-
const urlObjectKeys = ['auth', 'hash', 'host', 'hostname', 'href', 'path', 'pathname', 'port', 'protocol', 'query', 'search', 'slashes'];
|
|
72
|
-
function formatWithValidation(url) {
|
|
73
|
-
if (process.env.NODE_ENV === 'development') {
|
|
74
|
-
if (url !== null && typeof url === 'object') {
|
|
75
|
-
Object.keys(url).forEach(key => {
|
|
76
|
-
if (!urlObjectKeys.includes(key)) {
|
|
77
|
-
console.warn(`Unknown key passed via urlObject into url.format: ${key}`);
|
|
78
|
-
}
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
return formatUrl(url);
|
|
83
|
-
}
|
|
84
|
-
} (formatUrl));
|
|
85
|
-
return formatUrl;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
export { requireFormatUrl as __require };
|