lkd-web-kit 0.7.8 → 0.7.10
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/_virtual/___vite-browser-external.cjs +12 -0
- package/dist/_virtual/___vite-browser-external.js +6 -0
- package/dist/_virtual/__vite-browser-external.cjs +5 -0
- package/dist/_virtual/__vite-browser-external.js +3 -0
- package/dist/_virtual/_commonjsHelpers.cjs +34 -0
- package/dist/_virtual/_commonjsHelpers.js +30 -0
- package/dist/_virtual/_interop_require_default.cjs +7 -0
- package/dist/_virtual/_interop_require_default.js +3 -0
- package/dist/_virtual/_interop_require_wildcard.cjs +7 -0
- package/dist/_virtual/_interop_require_wildcard.js +3 -0
- package/dist/_virtual/add-base-path.cjs +7 -0
- package/dist/_virtual/add-base-path.js +3 -0
- package/dist/_virtual/add-locale.cjs +7 -0
- package/dist/_virtual/add-locale.js +3 -0
- package/dist/_virtual/add-locale2.cjs +7 -0
- package/dist/_virtual/add-locale2.js +3 -0
- package/dist/_virtual/add-path-prefix.cjs +7 -0
- package/dist/_virtual/add-path-prefix.js +3 -0
- package/dist/_virtual/add-path-suffix.cjs +7 -0
- package/dist/_virtual/add-path-suffix.js +3 -0
- package/dist/_virtual/app-paths.cjs +7 -0
- package/dist/_virtual/app-paths.js +3 -0
- package/dist/_virtual/bloom-filter.cjs +7 -0
- package/dist/_virtual/bloom-filter.js +3 -0
- package/dist/_virtual/compare-states.cjs +7 -0
- package/dist/_virtual/compare-states.js +3 -0
- package/dist/_virtual/constants.cjs +7 -0
- package/dist/_virtual/constants.js +3 -0
- package/dist/_virtual/denormalize-page-path.cjs +7 -0
- package/dist/_virtual/denormalize-page-path.js +3 -0
- package/dist/_virtual/deployment-id.cjs +7 -0
- package/dist/_virtual/deployment-id.js +3 -0
- package/dist/_virtual/detect-domain-locale.cjs +7 -0
- package/dist/_virtual/detect-domain-locale.js +3 -0
- package/dist/_virtual/detect-domain-locale2.cjs +7 -0
- package/dist/_virtual/detect-domain-locale2.js +3 -0
- package/dist/_virtual/disable-smooth-scroll.cjs +7 -0
- package/dist/_virtual/disable-smooth-scroll.js +3 -0
- package/dist/_virtual/encode-uri-path.cjs +7 -0
- package/dist/_virtual/encode-uri-path.js +3 -0
- package/dist/_virtual/ensure-leading-slash.cjs +7 -0
- package/dist/_virtual/ensure-leading-slash.js +3 -0
- package/dist/_virtual/escape-regexp.cjs +7 -0
- package/dist/_virtual/escape-regexp.js +3 -0
- package/dist/_virtual/format-next-pathname-info.cjs +7 -0
- package/dist/_virtual/format-next-pathname-info.js +3 -0
- package/dist/_virtual/format-url.cjs +7 -0
- package/dist/_virtual/format-url.js +3 -0
- package/dist/_virtual/get-asset-path-from-route.cjs +7 -0
- package/dist/_virtual/get-asset-path-from-route.js +3 -0
- package/dist/_virtual/get-cookie-parser.cjs +7 -0
- package/dist/_virtual/get-cookie-parser.js +3 -0
- package/dist/_virtual/get-dynamic-param.cjs +7 -0
- package/dist/_virtual/get-dynamic-param.js +3 -0
- package/dist/_virtual/get-next-pathname-info.cjs +7 -0
- package/dist/_virtual/get-next-pathname-info.js +3 -0
- package/dist/_virtual/get-segment-param.cjs +7 -0
- package/dist/_virtual/get-segment-param.js +3 -0
- package/dist/_virtual/has-base-path.cjs +7 -0
- package/dist/_virtual/has-base-path.js +3 -0
- package/dist/_virtual/head-manager-context.shared-runtime.cjs +7 -0
- package/dist/_virtual/head-manager-context.shared-runtime.js +3 -0
- package/dist/_virtual/html-bots.cjs +7 -0
- package/dist/_virtual/html-bots.js +3 -0
- package/dist/_virtual/index.cjs +7 -0
- package/dist/_virtual/index.js +3 -0
- package/dist/_virtual/index2.cjs +7 -0
- package/dist/_virtual/index2.js +3 -0
- package/dist/_virtual/index3.cjs +7 -0
- package/dist/_virtual/index3.js +3 -0
- package/dist/_virtual/index4.cjs +7 -0
- package/dist/_virtual/index4.js +3 -0
- package/dist/_virtual/index5.cjs +7 -0
- package/dist/_virtual/index5.js +3 -0
- package/dist/_virtual/interception-routes.cjs +7 -0
- package/dist/_virtual/interception-routes.js +3 -0
- package/dist/_virtual/interpolate-as.cjs +7 -0
- package/dist/_virtual/interpolate-as.js +3 -0
- package/dist/_virtual/invariant-error.cjs +7 -0
- package/dist/_virtual/invariant-error.js +3 -0
- package/dist/_virtual/is-api-route.cjs +7 -0
- package/dist/_virtual/is-api-route.js +3 -0
- package/dist/_virtual/is-bot.cjs +7 -0
- package/dist/_virtual/is-bot.js +3 -0
- package/dist/_virtual/is-dynamic.cjs +7 -0
- package/dist/_virtual/is-dynamic.js +3 -0
- package/dist/_virtual/is-error.cjs +7 -0
- package/dist/_virtual/is-error.js +3 -0
- package/dist/_virtual/is-local-url.cjs +7 -0
- package/dist/_virtual/is-local-url.js +3 -0
- package/dist/_virtual/is-plain-object.cjs +7 -0
- package/dist/_virtual/is-plain-object.js +3 -0
- package/dist/_virtual/mitt.cjs +7 -0
- package/dist/_virtual/mitt.js +3 -0
- package/dist/_virtual/normalize-locale-path.cjs +7 -0
- package/dist/_virtual/normalize-locale-path.js +3 -0
- package/dist/_virtual/normalize-path-sep.cjs +7 -0
- package/dist/_virtual/normalize-path-sep.js +3 -0
- package/dist/_virtual/normalize-trailing-slash.cjs +7 -0
- package/dist/_virtual/normalize-trailing-slash.js +3 -0
- package/dist/_virtual/omit.cjs +7 -0
- package/dist/_virtual/omit.js +3 -0
- package/dist/_virtual/parse-loader-tree.cjs +7 -0
- package/dist/_virtual/parse-loader-tree.js +3 -0
- package/dist/_virtual/parse-path.cjs +7 -0
- package/dist/_virtual/parse-path.js +3 -0
- package/dist/_virtual/parse-relative-url.cjs +7 -0
- package/dist/_virtual/parse-relative-url.js +3 -0
- package/dist/_virtual/parse-url.cjs +7 -0
- package/dist/_virtual/parse-url.js +3 -0
- package/dist/_virtual/path-has-prefix.cjs +7 -0
- package/dist/_virtual/path-has-prefix.js +3 -0
- package/dist/_virtual/path-match.cjs +7 -0
- package/dist/_virtual/path-match.js +3 -0
- package/dist/_virtual/prepare-destination.cjs +7 -0
- package/dist/_virtual/prepare-destination.js +3 -0
- package/dist/_virtual/querystring.cjs +7 -0
- package/dist/_virtual/querystring.js +3 -0
- package/dist/_virtual/react-is.development.cjs +7 -0
- package/dist/_virtual/react-is.development.js +3 -0
- package/dist/_virtual/react-is.production.cjs +7 -0
- package/dist/_virtual/react-is.production.js +3 -0
- package/dist/_virtual/remove-base-path.cjs +7 -0
- package/dist/_virtual/remove-base-path.js +3 -0
- package/dist/_virtual/remove-locale.cjs +7 -0
- package/dist/_virtual/remove-locale.js +3 -0
- package/dist/_virtual/remove-path-prefix.cjs +7 -0
- package/dist/_virtual/remove-path-prefix.js +3 -0
- package/dist/_virtual/remove-trailing-slash.cjs +7 -0
- package/dist/_virtual/remove-trailing-slash.js +3 -0
- package/dist/_virtual/request-idle-callback.cjs +7 -0
- package/dist/_virtual/request-idle-callback.js +3 -0
- package/dist/_virtual/resolve-href.cjs +7 -0
- package/dist/_virtual/resolve-href.js +3 -0
- package/dist/_virtual/resolve-rewrites.cjs +7 -0
- package/dist/_virtual/resolve-rewrites.js +3 -0
- package/dist/_virtual/route-loader.cjs +7 -0
- package/dist/_virtual/route-loader.js +3 -0
- package/dist/_virtual/route-match-utils.cjs +7 -0
- package/dist/_virtual/route-match-utils.js +3 -0
- package/dist/_virtual/route-matcher.cjs +7 -0
- package/dist/_virtual/route-matcher.js +3 -0
- package/dist/_virtual/route-pattern-normalizer.cjs +7 -0
- package/dist/_virtual/route-pattern-normalizer.js +3 -0
- package/dist/_virtual/route-regex.cjs +7 -0
- package/dist/_virtual/route-regex.js +3 -0
- package/dist/_virtual/router-context.shared-runtime.cjs +7 -0
- package/dist/_virtual/router-context.shared-runtime.js +3 -0
- package/dist/_virtual/router.cjs +9 -0
- package/dist/_virtual/router.js +5 -0
- package/dist/_virtual/router2.cjs +7 -0
- package/dist/_virtual/router2.js +3 -0
- package/dist/_virtual/router3.cjs +7 -0
- package/dist/_virtual/router3.js +3 -0
- package/dist/_virtual/script.cjs +7 -0
- package/dist/_virtual/script.js +3 -0
- package/dist/_virtual/segment.cjs +7 -0
- package/dist/_virtual/segment.js +3 -0
- package/dist/_virtual/set-attributes-from-props.cjs +7 -0
- package/dist/_virtual/set-attributes-from-props.js +3 -0
- package/dist/_virtual/sorted-routes.cjs +7 -0
- package/dist/_virtual/sorted-routes.js +3 -0
- package/dist/_virtual/trusted-types.cjs +7 -0
- package/dist/_virtual/trusted-types.js +3 -0
- package/dist/_virtual/utils.cjs +7 -0
- package/dist/_virtual/utils.js +3 -0
- package/dist/_virtual/warn-once.cjs +7 -0
- package/dist/_virtual/warn-once.js +3 -0
- package/dist/_virtual/with-router.cjs +7 -0
- package/dist/_virtual/with-router.js +3 -0
- package/dist/components/EmptyState/index.cjs +5 -5
- package/dist/components/Icon.cjs +2 -2
- package/dist/components/InfinityLoader/index.cjs +4 -4
- package/dist/components/MyCheckboxGroup/index.cjs +24 -0
- package/dist/components/MyCheckboxGroup/index.js +20 -0
- package/dist/components/MyDateInput/index.cjs +3 -3
- package/dist/components/MyDatePickerInput/CalendarIcon.cjs +7 -7
- package/dist/components/MyDatePickerInput/index.cjs +3 -3
- package/dist/components/MyDateTimePicker/index.cjs +3 -3
- package/dist/components/MyMonthPickerInput/index.cjs +3 -3
- package/dist/components/MyMultiSelect/index.cjs +2 -2
- package/dist/components/MyNotifications/index.cjs +2 -2
- package/dist/components/MyNumberInput/index.cjs +2 -2
- package/dist/components/MyRadioGroup/index.cjs +2 -2
- package/dist/components/MySelect/index.cjs +2 -2
- package/dist/components/MyTextInput/index.cjs +2 -2
- package/dist/components/MyTextarea/index.cjs +2 -2
- package/dist/components/MyTimeInput/index.cjs +2 -2
- package/dist/components/NavItems.cjs +4 -4
- package/dist/components/SelectInfinity/index.cjs +8 -8
- package/dist/contexts/NavigationHistoryContext/hook.cjs +47 -0
- package/dist/contexts/NavigationHistoryContext/hook.js +42 -0
- package/dist/contexts/NavigationHistoryContext/index.cjs +15 -47
- package/dist/contexts/NavigationHistoryContext/index.js +17 -48
- package/dist/contexts/PageDataContext/index.cjs +2 -2
- package/dist/form/Form.cjs +2 -2
- package/dist/form/FormButtonSubmit.cjs +2 -2
- package/dist/form/base/FormCheckbox.cjs +2 -2
- package/dist/form/base/FormCheckboxGroup.cjs +17 -0
- package/dist/form/base/FormCheckboxGroup.js +13 -0
- package/dist/form/base/FormDateInput.cjs +2 -2
- package/dist/form/base/FormDatePickerInput.cjs +2 -2
- package/dist/form/base/FormDateTimePicker.cjs +2 -2
- package/dist/form/base/FormMonthPickerInput.cjs +2 -2
- package/dist/form/base/FormMultiSelect.cjs +2 -2
- package/dist/form/base/FormNumberInput.cjs +2 -2
- package/dist/form/base/FormRadioGroup.cjs +2 -2
- package/dist/form/base/FormSelect.cjs +2 -2
- package/dist/form/base/FormSelectInfinity.cjs +2 -2
- package/dist/form/base/FormTextInput.cjs +2 -2
- package/dist/form/base/FormTextarea.cjs +2 -2
- package/dist/form/base/FormTimeInput.cjs +2 -2
- package/dist/hocs/withController.cjs +3 -3
- package/dist/hocs/withModalManager.cjs +2 -2
- package/dist/index.cjs +12 -7
- package/dist/index.d.ts +16 -8
- package/dist/index.js +4 -1
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_default.cjs +20 -0
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_default.js +16 -0
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs +52 -0
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_wildcard.js +48 -0
- package/dist/node_modules/@tanstack/react-virtual/dist/esm/index.cjs +2 -2
- package/dist/node_modules/next/dist/build/deployment-id.cjs +34 -0
- package/dist/node_modules/next/dist/build/deployment-id.js +30 -0
- package/dist/node_modules/next/dist/client/add-base-path.cjs +42 -0
- package/dist/node_modules/next/dist/client/add-base-path.js +38 -0
- package/dist/node_modules/next/dist/client/add-locale.cjs +43 -0
- package/dist/node_modules/next/dist/client/add-locale.js +39 -0
- package/dist/node_modules/next/dist/client/detect-domain-locale.cjs +40 -0
- package/dist/node_modules/next/dist/client/detect-domain-locale.js +36 -0
- package/dist/node_modules/next/dist/client/has-base-path.cjs +40 -0
- package/dist/node_modules/next/dist/client/has-base-path.js +36 -0
- package/dist/node_modules/next/dist/client/normalize-trailing-slash.cjs +54 -0
- package/dist/node_modules/next/dist/client/normalize-trailing-slash.js +50 -0
- package/dist/node_modules/next/dist/client/remove-base-path.cjs +49 -0
- package/dist/node_modules/next/dist/client/remove-base-path.js +45 -0
- package/dist/node_modules/next/dist/client/remove-locale.cjs +45 -0
- package/dist/node_modules/next/dist/client/remove-locale.js +41 -0
- package/dist/node_modules/next/dist/client/request-idle-callback.cjs +56 -0
- package/dist/node_modules/next/dist/client/request-idle-callback.js +52 -0
- package/dist/node_modules/next/dist/client/resolve-href.cjs +132 -0
- package/dist/node_modules/next/dist/client/resolve-href.js +128 -0
- package/dist/node_modules/next/dist/client/route-loader.cjs +363 -0
- package/dist/node_modules/next/dist/client/route-loader.js +359 -0
- package/dist/node_modules/next/dist/client/router.cjs +201 -0
- package/dist/node_modules/next/dist/client/router.js +197 -0
- package/dist/node_modules/next/dist/client/script.cjs +366 -0
- package/dist/node_modules/next/dist/client/script.js +362 -0
- package/dist/node_modules/next/dist/client/set-attributes-from-props.cjs +81 -0
- package/dist/node_modules/next/dist/client/set-attributes-from-props.js +77 -0
- package/dist/node_modules/next/dist/client/trusted-types.cjs +56 -0
- package/dist/node_modules/next/dist/client/trusted-types.js +52 -0
- package/dist/node_modules/next/dist/client/with-router.cjs +54 -0
- package/dist/node_modules/next/dist/client/with-router.js +50 -0
- package/dist/node_modules/next/dist/compiled/cookie/index.cjs +22 -0
- package/dist/node_modules/next/dist/compiled/cookie/index.js +18 -0
- package/dist/node_modules/next/dist/compiled/gzip-size/index.cjs +17 -0
- package/dist/node_modules/next/dist/compiled/gzip-size/index.js +13 -0
- package/dist/node_modules/next/dist/compiled/path-to-regexp/index.cjs +16 -0
- package/dist/node_modules/next/dist/compiled/path-to-regexp/index.js +12 -0
- package/dist/node_modules/next/dist/compiled/react-is/cjs/react-is.development.cjs +147 -0
- package/dist/node_modules/next/dist/compiled/react-is/cjs/react-is.development.js +143 -0
- package/dist/node_modules/next/dist/compiled/react-is/cjs/react-is.production.cjs +144 -0
- package/dist/node_modules/next/dist/compiled/react-is/cjs/react-is.production.js +140 -0
- package/dist/node_modules/next/dist/compiled/react-is/index.cjs +23 -0
- package/dist/node_modules/next/dist/compiled/react-is/index.js +19 -0
- package/dist/node_modules/next/dist/lib/constants.cjs +365 -0
- package/dist/node_modules/next/dist/lib/constants.js +361 -0
- package/dist/node_modules/next/dist/lib/is-api-route.cjs +31 -0
- package/dist/node_modules/next/dist/lib/is-api-route.js +27 -0
- package/dist/node_modules/next/dist/lib/is-error.cjs +91 -0
- package/dist/node_modules/next/dist/lib/is-error.js +87 -0
- package/dist/node_modules/next/dist/lib/route-pattern-normalizer.cjs +115 -0
- package/dist/node_modules/next/dist/lib/route-pattern-normalizer.js +111 -0
- package/dist/node_modules/next/dist/server/api-utils/get-cookie-parser.cjs +39 -0
- package/dist/node_modules/next/dist/server/api-utils/get-cookie-parser.js +35 -0
- package/dist/node_modules/next/dist/shared/lib/bloom-filter.cjs +101 -0
- package/dist/node_modules/next/dist/shared/lib/bloom-filter.js +97 -0
- package/dist/node_modules/next/dist/shared/lib/encode-uri-path.cjs +31 -0
- package/dist/node_modules/next/dist/shared/lib/encode-uri-path.js +27 -0
- package/dist/node_modules/next/dist/shared/lib/escape-regexp.cjs +37 -0
- package/dist/node_modules/next/dist/shared/lib/escape-regexp.js +33 -0
- package/dist/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.cjs +36 -0
- package/dist/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js +32 -0
- package/dist/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.cjs +41 -0
- package/dist/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js +37 -0
- package/dist/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.cjs +70 -0
- package/dist/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js +66 -0
- package/dist/node_modules/next/dist/shared/lib/invariant-error.cjs +34 -0
- package/dist/node_modules/next/dist/shared/lib/invariant-error.js +30 -0
- package/dist/node_modules/next/dist/shared/lib/is-plain-object.cjs +54 -0
- package/dist/node_modules/next/dist/shared/lib/is-plain-object.js +50 -0
- package/dist/node_modules/next/dist/shared/lib/mitt.cjs +58 -0
- package/dist/node_modules/next/dist/shared/lib/mitt.js +54 -0
- package/dist/node_modules/next/dist/shared/lib/page-path/denormalize-page-path.cjs +36 -0
- package/dist/node_modules/next/dist/shared/lib/page-path/denormalize-page-path.js +32 -0
- package/dist/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.cjs +36 -0
- package/dist/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js +32 -0
- package/dist/node_modules/next/dist/shared/lib/page-path/normalize-path-sep.cjs +37 -0
- package/dist/node_modules/next/dist/shared/lib/page-path/normalize-path-sep.js +33 -0
- package/dist/node_modules/next/dist/shared/lib/router/router.cjs +1814 -0
- package/dist/node_modules/next/dist/shared/lib/router/router.js +1810 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-locale.cjs +46 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-locale.js +42 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.cjs +37 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js +33 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-suffix.cjs +37 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-suffix.js +33 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/app-paths.cjs +65 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/app-paths.js +61 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/compare-states.cjs +50 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/compare-states.js +46 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/disable-smooth-scroll.cjs +60 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/disable-smooth-scroll.js +56 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.cjs +47 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js +43 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/format-url.cjs +103 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/format-url.js +99 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-asset-path-from-route.cjs +32 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-asset-path-from-route.js +28 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.cjs +208 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js +204 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.cjs +71 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.js +67 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-segment-param.cjs +94 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-segment-param.js +90 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/html-bots.cjs +29 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/html-bots.js +25 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/index.cjs +43 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/index.js +39 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/interception-routes.cjs +119 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/interception-routes.js +115 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/interpolate-as.cjs +71 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/interpolate-as.js +67 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-bot.cjs +68 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-bot.js +64 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-dynamic.cjs +43 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js +39 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-local-url.cjs +44 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-local-url.js +40 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/omit.cjs +37 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/omit.js +33 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.cjs +46 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js +42 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-path.cjs +51 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-path.js +47 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-relative-url.cjs +54 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-relative-url.js +50 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-url.cjs +50 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-url.js +46 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.cjs +37 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js +33 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/path-match.cjs +66 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/path-match.js +62 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/prepare-destination.cjs +303 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/prepare-destination.js +299 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/querystring.cjs +90 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/querystring.js +86 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.cjs +56 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.js +52 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.cjs +39 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js +35 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/resolve-rewrites.cjs +140 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/resolve-rewrites.js +136 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-match-utils.cjs +127 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-match-utils.js +123 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-matcher.cjs +63 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-matcher.js +59 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-regex.cjs +272 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-regex.js +268 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/sorted-routes.cjs +256 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js +252 -0
- package/dist/node_modules/next/dist/shared/lib/router-context.shared-runtime.cjs +36 -0
- package/dist/node_modules/next/dist/shared/lib/router-context.shared-runtime.js +32 -0
- package/dist/node_modules/next/dist/shared/lib/segment.cjs +103 -0
- package/dist/node_modules/next/dist/shared/lib/segment.js +99 -0
- package/dist/node_modules/next/dist/shared/lib/utils/warn-once.cjs +38 -0
- package/dist/node_modules/next/dist/shared/lib/utils/warn-once.js +34 -0
- package/dist/node_modules/next/dist/shared/lib/utils.cjs +204 -0
- package/dist/node_modules/next/dist/shared/lib/utils.js +200 -0
- package/dist/node_modules/next/router.cjs +17 -0
- package/dist/node_modules/next/router.js +13 -0
- package/package.json +6 -6
|
@@ -0,0 +1,362 @@
|
|
|
1
|
+
import { __module as script } from '../../../../_virtual/script.js';
|
|
2
|
+
import { __require as require_interop_require_default } from '../../../@swc/helpers/cjs/_interop_require_default.js';
|
|
3
|
+
import { __require as require_interop_require_wildcard } from '../../../@swc/helpers/cjs/_interop_require_wildcard.js';
|
|
4
|
+
import require$$2 from 'react/jsx-runtime';
|
|
5
|
+
import require$$3 from 'react-dom';
|
|
6
|
+
import React__default from 'react';
|
|
7
|
+
import { __require as requireHeadManagerContext_sharedRuntime } from '../shared/lib/head-manager-context.shared-runtime.js';
|
|
8
|
+
import { __require as requireSetAttributesFromProps } from './set-attributes-from-props.js';
|
|
9
|
+
import { __require as requireRequestIdleCallback } from './request-idle-callback.js';
|
|
10
|
+
|
|
11
|
+
var hasRequiredScript;
|
|
12
|
+
|
|
13
|
+
function requireScript () {
|
|
14
|
+
if (hasRequiredScript) return script.exports;
|
|
15
|
+
hasRequiredScript = 1;
|
|
16
|
+
(function (module, exports) {
|
|
17
|
+
'use client';
|
|
18
|
+
Object.defineProperty(exports, "__esModule", {
|
|
19
|
+
value: true
|
|
20
|
+
});
|
|
21
|
+
function _export(target, all) {
|
|
22
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
23
|
+
enumerable: true,
|
|
24
|
+
get: all[name]
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
_export(exports, {
|
|
28
|
+
default: function() {
|
|
29
|
+
return _default;
|
|
30
|
+
},
|
|
31
|
+
handleClientScriptLoad: function() {
|
|
32
|
+
return handleClientScriptLoad;
|
|
33
|
+
},
|
|
34
|
+
initScriptLoader: function() {
|
|
35
|
+
return initScriptLoader;
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
const _interop_require_default = /*@__PURE__*/ require_interop_require_default();
|
|
39
|
+
const _interop_require_wildcard = /*@__PURE__*/ require_interop_require_wildcard();
|
|
40
|
+
const _jsxruntime = require$$2;
|
|
41
|
+
const _reactdom = /*#__PURE__*/ _interop_require_default._(require$$3);
|
|
42
|
+
const _react = /*#__PURE__*/ _interop_require_wildcard._(React__default);
|
|
43
|
+
const _headmanagercontextsharedruntime = requireHeadManagerContext_sharedRuntime();
|
|
44
|
+
const _setattributesfromprops = requireSetAttributesFromProps();
|
|
45
|
+
const _requestidlecallback = requireRequestIdleCallback();
|
|
46
|
+
const ScriptCache = new Map();
|
|
47
|
+
const LoadCache = new Set();
|
|
48
|
+
const insertStylesheets = (stylesheets)=>{
|
|
49
|
+
// Case 1: Styles for afterInteractive/lazyOnload with appDir injected via handleClientScriptLoad
|
|
50
|
+
//
|
|
51
|
+
// Using ReactDOM.preinit to feature detect appDir and inject styles
|
|
52
|
+
// Stylesheets might have already been loaded if initialized with Script component
|
|
53
|
+
// Re-inject styles here to handle scripts loaded via handleClientScriptLoad
|
|
54
|
+
// ReactDOM.preinit handles dedup and ensures the styles are loaded only once
|
|
55
|
+
if (_reactdom.default.preinit) {
|
|
56
|
+
stylesheets.forEach((stylesheet)=>{
|
|
57
|
+
_reactdom.default.preinit(stylesheet, {
|
|
58
|
+
as: 'style'
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
// Case 2: Styles for afterInteractive/lazyOnload with pages injected via handleClientScriptLoad
|
|
64
|
+
//
|
|
65
|
+
// We use this function to load styles when appdir is not detected
|
|
66
|
+
// TODO: Use React float APIs to load styles once available for pages dir
|
|
67
|
+
if (typeof window !== 'undefined') {
|
|
68
|
+
let head = document.head;
|
|
69
|
+
stylesheets.forEach((stylesheet)=>{
|
|
70
|
+
let link = document.createElement('link');
|
|
71
|
+
link.type = 'text/css';
|
|
72
|
+
link.rel = 'stylesheet';
|
|
73
|
+
link.href = stylesheet;
|
|
74
|
+
head.appendChild(link);
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
const loadScript = (props)=>{
|
|
79
|
+
const { src, id, onLoad = ()=>{}, onReady = null, dangerouslySetInnerHTML, children = '', strategy = 'afterInteractive', onError, stylesheets } = props;
|
|
80
|
+
const cacheKey = id || src;
|
|
81
|
+
// Script has already loaded
|
|
82
|
+
if (cacheKey && LoadCache.has(cacheKey)) {
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
// Contents of this script are already loading/loaded
|
|
86
|
+
if (ScriptCache.has(src)) {
|
|
87
|
+
LoadCache.add(cacheKey);
|
|
88
|
+
// It is possible that multiple `next/script` components all have same "src", but has different "onLoad"
|
|
89
|
+
// This is to make sure the same remote script will only load once, but "onLoad" are executed in order
|
|
90
|
+
ScriptCache.get(src).then(onLoad, onError);
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
/** Execute after the script first loaded */ const afterLoad = ()=>{
|
|
94
|
+
// Run onReady for the first time after load event
|
|
95
|
+
if (onReady) {
|
|
96
|
+
onReady();
|
|
97
|
+
}
|
|
98
|
+
// add cacheKey to LoadCache when load successfully
|
|
99
|
+
LoadCache.add(cacheKey);
|
|
100
|
+
};
|
|
101
|
+
const el = document.createElement('script');
|
|
102
|
+
const loadPromise = new Promise((resolve, reject)=>{
|
|
103
|
+
el.addEventListener('load', function(e) {
|
|
104
|
+
resolve();
|
|
105
|
+
if (onLoad) {
|
|
106
|
+
onLoad.call(this, e);
|
|
107
|
+
}
|
|
108
|
+
afterLoad();
|
|
109
|
+
});
|
|
110
|
+
el.addEventListener('error', function(e) {
|
|
111
|
+
reject(e);
|
|
112
|
+
});
|
|
113
|
+
}).catch(function(e) {
|
|
114
|
+
if (onError) {
|
|
115
|
+
onError(e);
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
if (dangerouslySetInnerHTML) {
|
|
119
|
+
// Casting since lib.dom.d.ts doesn't have TrustedHTML yet.
|
|
120
|
+
el.innerHTML = dangerouslySetInnerHTML.__html || '';
|
|
121
|
+
afterLoad();
|
|
122
|
+
} else if (children) {
|
|
123
|
+
el.textContent = typeof children === 'string' ? children : Array.isArray(children) ? children.join('') : '';
|
|
124
|
+
afterLoad();
|
|
125
|
+
} else if (src) {
|
|
126
|
+
el.src = src;
|
|
127
|
+
// do not add cacheKey into LoadCache for remote script here
|
|
128
|
+
// cacheKey will be added to LoadCache when it is actually loaded (see loadPromise above)
|
|
129
|
+
ScriptCache.set(src, loadPromise);
|
|
130
|
+
}
|
|
131
|
+
(0, _setattributesfromprops.setAttributesFromProps)(el, props);
|
|
132
|
+
if (strategy === 'worker') {
|
|
133
|
+
el.setAttribute('type', 'text/partytown');
|
|
134
|
+
}
|
|
135
|
+
el.setAttribute('data-nscript', strategy);
|
|
136
|
+
// Load styles associated with this script
|
|
137
|
+
if (stylesheets) {
|
|
138
|
+
insertStylesheets(stylesheets);
|
|
139
|
+
}
|
|
140
|
+
document.body.appendChild(el);
|
|
141
|
+
};
|
|
142
|
+
function handleClientScriptLoad(props) {
|
|
143
|
+
const { strategy = 'afterInteractive' } = props;
|
|
144
|
+
if (strategy === 'lazyOnload') {
|
|
145
|
+
window.addEventListener('load', ()=>{
|
|
146
|
+
(0, _requestidlecallback.requestIdleCallback)(()=>loadScript(props));
|
|
147
|
+
});
|
|
148
|
+
} else {
|
|
149
|
+
loadScript(props);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
function loadLazyScript(props) {
|
|
153
|
+
if (document.readyState === 'complete') {
|
|
154
|
+
(0, _requestidlecallback.requestIdleCallback)(()=>loadScript(props));
|
|
155
|
+
} else {
|
|
156
|
+
window.addEventListener('load', ()=>{
|
|
157
|
+
(0, _requestidlecallback.requestIdleCallback)(()=>loadScript(props));
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
function addBeforeInteractiveToCache() {
|
|
162
|
+
const scripts = [
|
|
163
|
+
...document.querySelectorAll('[data-nscript="beforeInteractive"]'),
|
|
164
|
+
...document.querySelectorAll('[data-nscript="beforePageRender"]')
|
|
165
|
+
];
|
|
166
|
+
scripts.forEach((script)=>{
|
|
167
|
+
const cacheKey = script.id || script.getAttribute('src');
|
|
168
|
+
LoadCache.add(cacheKey);
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
function initScriptLoader(scriptLoaderItems) {
|
|
172
|
+
scriptLoaderItems.forEach(handleClientScriptLoad);
|
|
173
|
+
addBeforeInteractiveToCache();
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Load a third-party scripts in an optimized way.
|
|
177
|
+
*
|
|
178
|
+
* Read more: [Next.js Docs: `next/script`](https://nextjs.org/docs/app/api-reference/components/script)
|
|
179
|
+
*/ function Script(props) {
|
|
180
|
+
const { id, src = '', onLoad = ()=>{}, onReady = null, strategy = 'afterInteractive', onError, stylesheets, ...restProps } = props;
|
|
181
|
+
// Context is available only during SSR
|
|
182
|
+
let { updateScripts, scripts, getIsSsr, appDir, nonce } = (0, _react.useContext)(_headmanagercontextsharedruntime.HeadManagerContext);
|
|
183
|
+
// if a nonce is explicitly passed to the script tag, favor that over the automatic handling
|
|
184
|
+
nonce = restProps.nonce || nonce;
|
|
185
|
+
/**
|
|
186
|
+
* - First mount:
|
|
187
|
+
* 1. The useEffect for onReady executes
|
|
188
|
+
* 2. hasOnReadyEffectCalled.current is false, but the script hasn't loaded yet (not in LoadCache)
|
|
189
|
+
* onReady is skipped, set hasOnReadyEffectCalled.current to true
|
|
190
|
+
* 3. The useEffect for loadScript executes
|
|
191
|
+
* 4. hasLoadScriptEffectCalled.current is false, loadScript executes
|
|
192
|
+
* Once the script is loaded, the onLoad and onReady will be called by then
|
|
193
|
+
* [If strict mode is enabled / is wrapped in <OffScreen /> component]
|
|
194
|
+
* 5. The useEffect for onReady executes again
|
|
195
|
+
* 6. hasOnReadyEffectCalled.current is true, so entire effect is skipped
|
|
196
|
+
* 7. The useEffect for loadScript executes again
|
|
197
|
+
* 8. hasLoadScriptEffectCalled.current is true, so entire effect is skipped
|
|
198
|
+
*
|
|
199
|
+
* - Second mount:
|
|
200
|
+
* 1. The useEffect for onReady executes
|
|
201
|
+
* 2. hasOnReadyEffectCalled.current is false, but the script has already loaded (found in LoadCache)
|
|
202
|
+
* onReady is called, set hasOnReadyEffectCalled.current to true
|
|
203
|
+
* 3. The useEffect for loadScript executes
|
|
204
|
+
* 4. The script is already loaded, loadScript bails out
|
|
205
|
+
* [If strict mode is enabled / is wrapped in <OffScreen /> component]
|
|
206
|
+
* 5. The useEffect for onReady executes again
|
|
207
|
+
* 6. hasOnReadyEffectCalled.current is true, so entire effect is skipped
|
|
208
|
+
* 7. The useEffect for loadScript executes again
|
|
209
|
+
* 8. hasLoadScriptEffectCalled.current is true, so entire effect is skipped
|
|
210
|
+
*/ const hasOnReadyEffectCalled = (0, _react.useRef)(false);
|
|
211
|
+
(0, _react.useEffect)(()=>{
|
|
212
|
+
const cacheKey = id || src;
|
|
213
|
+
if (!hasOnReadyEffectCalled.current) {
|
|
214
|
+
// Run onReady if script has loaded before but component is re-mounted
|
|
215
|
+
if (onReady && cacheKey && LoadCache.has(cacheKey)) {
|
|
216
|
+
onReady();
|
|
217
|
+
}
|
|
218
|
+
hasOnReadyEffectCalled.current = true;
|
|
219
|
+
}
|
|
220
|
+
}, [
|
|
221
|
+
onReady,
|
|
222
|
+
id,
|
|
223
|
+
src
|
|
224
|
+
]);
|
|
225
|
+
const hasLoadScriptEffectCalled = (0, _react.useRef)(false);
|
|
226
|
+
(0, _react.useEffect)(()=>{
|
|
227
|
+
if (!hasLoadScriptEffectCalled.current) {
|
|
228
|
+
if (strategy === 'afterInteractive') {
|
|
229
|
+
loadScript(props);
|
|
230
|
+
} else if (strategy === 'lazyOnload') {
|
|
231
|
+
loadLazyScript(props);
|
|
232
|
+
}
|
|
233
|
+
hasLoadScriptEffectCalled.current = true;
|
|
234
|
+
}
|
|
235
|
+
}, [
|
|
236
|
+
props,
|
|
237
|
+
strategy
|
|
238
|
+
]);
|
|
239
|
+
if (strategy === 'beforeInteractive' || strategy === 'worker') {
|
|
240
|
+
if (updateScripts) {
|
|
241
|
+
scripts[strategy] = (scripts[strategy] || []).concat([
|
|
242
|
+
{
|
|
243
|
+
id,
|
|
244
|
+
src,
|
|
245
|
+
onLoad,
|
|
246
|
+
onReady,
|
|
247
|
+
onError,
|
|
248
|
+
...restProps,
|
|
249
|
+
nonce
|
|
250
|
+
}
|
|
251
|
+
]);
|
|
252
|
+
updateScripts(scripts);
|
|
253
|
+
} else if (getIsSsr && getIsSsr()) {
|
|
254
|
+
// Script has already loaded during SSR
|
|
255
|
+
LoadCache.add(id || src);
|
|
256
|
+
} else if (getIsSsr && !getIsSsr()) {
|
|
257
|
+
loadScript({
|
|
258
|
+
...props,
|
|
259
|
+
nonce
|
|
260
|
+
});
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
// For the app directory, we need React Float to preload these scripts.
|
|
264
|
+
if (appDir) {
|
|
265
|
+
// Injecting stylesheets here handles beforeInteractive and worker scripts correctly
|
|
266
|
+
// For other strategies injecting here ensures correct stylesheet order
|
|
267
|
+
// ReactDOM.preinit handles loading the styles in the correct order,
|
|
268
|
+
// also ensures the stylesheet is loaded only once and in a consistent manner
|
|
269
|
+
//
|
|
270
|
+
// Case 1: Styles for beforeInteractive/worker with appDir - handled here
|
|
271
|
+
// Case 2: Styles for beforeInteractive/worker with pages dir - Not handled yet
|
|
272
|
+
// Case 3: Styles for afterInteractive/lazyOnload with appDir - handled here
|
|
273
|
+
// Case 4: Styles for afterInteractive/lazyOnload with pages dir - handled in insertStylesheets function
|
|
274
|
+
if (stylesheets) {
|
|
275
|
+
stylesheets.forEach((styleSrc)=>{
|
|
276
|
+
_reactdom.default.preinit(styleSrc, {
|
|
277
|
+
as: 'style'
|
|
278
|
+
});
|
|
279
|
+
});
|
|
280
|
+
}
|
|
281
|
+
// Before interactive scripts need to be loaded by Next.js' runtime instead
|
|
282
|
+
// of native <script> tags, because they no longer have `defer`.
|
|
283
|
+
if (strategy === 'beforeInteractive') {
|
|
284
|
+
if (!src) {
|
|
285
|
+
// For inlined scripts, we put the content in `children`.
|
|
286
|
+
if (restProps.dangerouslySetInnerHTML) {
|
|
287
|
+
// Casting since lib.dom.d.ts doesn't have TrustedHTML yet.
|
|
288
|
+
restProps.children = restProps.dangerouslySetInnerHTML.__html;
|
|
289
|
+
delete restProps.dangerouslySetInnerHTML;
|
|
290
|
+
}
|
|
291
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)("script", {
|
|
292
|
+
nonce: nonce,
|
|
293
|
+
dangerouslySetInnerHTML: {
|
|
294
|
+
__html: `(self.__next_s=self.__next_s||[]).push(${JSON.stringify([
|
|
295
|
+
0,
|
|
296
|
+
{
|
|
297
|
+
...restProps,
|
|
298
|
+
id
|
|
299
|
+
}
|
|
300
|
+
])})`
|
|
301
|
+
}
|
|
302
|
+
});
|
|
303
|
+
} else {
|
|
304
|
+
// @ts-ignore
|
|
305
|
+
_reactdom.default.preload(src, restProps.integrity ? {
|
|
306
|
+
as: 'script',
|
|
307
|
+
integrity: restProps.integrity,
|
|
308
|
+
nonce,
|
|
309
|
+
crossOrigin: restProps.crossOrigin
|
|
310
|
+
} : {
|
|
311
|
+
as: 'script',
|
|
312
|
+
nonce,
|
|
313
|
+
crossOrigin: restProps.crossOrigin
|
|
314
|
+
});
|
|
315
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)("script", {
|
|
316
|
+
nonce: nonce,
|
|
317
|
+
dangerouslySetInnerHTML: {
|
|
318
|
+
__html: `(self.__next_s=self.__next_s||[]).push(${JSON.stringify([
|
|
319
|
+
src,
|
|
320
|
+
{
|
|
321
|
+
...restProps,
|
|
322
|
+
id
|
|
323
|
+
}
|
|
324
|
+
])})`
|
|
325
|
+
}
|
|
326
|
+
});
|
|
327
|
+
}
|
|
328
|
+
} else if (strategy === 'afterInteractive') {
|
|
329
|
+
if (src) {
|
|
330
|
+
// @ts-ignore
|
|
331
|
+
_reactdom.default.preload(src, restProps.integrity ? {
|
|
332
|
+
as: 'script',
|
|
333
|
+
integrity: restProps.integrity,
|
|
334
|
+
nonce,
|
|
335
|
+
crossOrigin: restProps.crossOrigin
|
|
336
|
+
} : {
|
|
337
|
+
as: 'script',
|
|
338
|
+
nonce,
|
|
339
|
+
crossOrigin: restProps.crossOrigin
|
|
340
|
+
});
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
return null;
|
|
345
|
+
}
|
|
346
|
+
Object.defineProperty(Script, '__nextScript', {
|
|
347
|
+
value: true
|
|
348
|
+
});
|
|
349
|
+
const _default = Script;
|
|
350
|
+
|
|
351
|
+
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
|
352
|
+
Object.defineProperty(exports.default, '__esModule', { value: true });
|
|
353
|
+
Object.assign(exports.default, exports);
|
|
354
|
+
module.exports = exports.default;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
} (script, script.exports));
|
|
359
|
+
return script.exports;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
export { requireScript as __require };
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const setAttributesFromProps = require('../../../../_virtual/set-attributes-from-props.cjs');
|
|
6
|
+
|
|
7
|
+
var hasRequiredSetAttributesFromProps;
|
|
8
|
+
|
|
9
|
+
function requireSetAttributesFromProps () {
|
|
10
|
+
if (hasRequiredSetAttributesFromProps) return setAttributesFromProps.__module.exports;
|
|
11
|
+
hasRequiredSetAttributesFromProps = 1;
|
|
12
|
+
(function (module, exports) {
|
|
13
|
+
Object.defineProperty(exports, "__esModule", {
|
|
14
|
+
value: true
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(exports, "setAttributesFromProps", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function() {
|
|
19
|
+
return setAttributesFromProps;
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
const DOMAttributeNames = {
|
|
23
|
+
acceptCharset: 'accept-charset',
|
|
24
|
+
className: 'class',
|
|
25
|
+
htmlFor: 'for',
|
|
26
|
+
httpEquiv: 'http-equiv',
|
|
27
|
+
noModule: 'noModule'
|
|
28
|
+
};
|
|
29
|
+
const ignoreProps = [
|
|
30
|
+
'onLoad',
|
|
31
|
+
'onReady',
|
|
32
|
+
'dangerouslySetInnerHTML',
|
|
33
|
+
'children',
|
|
34
|
+
'onError',
|
|
35
|
+
'strategy',
|
|
36
|
+
'stylesheets'
|
|
37
|
+
];
|
|
38
|
+
function isBooleanScriptAttribute(attr) {
|
|
39
|
+
return [
|
|
40
|
+
'async',
|
|
41
|
+
'defer',
|
|
42
|
+
'noModule'
|
|
43
|
+
].includes(attr);
|
|
44
|
+
}
|
|
45
|
+
function setAttributesFromProps(el, props) {
|
|
46
|
+
for (const [p, value] of Object.entries(props)){
|
|
47
|
+
if (!props.hasOwnProperty(p)) continue;
|
|
48
|
+
if (ignoreProps.includes(p)) continue;
|
|
49
|
+
// we don't render undefined props to the DOM
|
|
50
|
+
if (value === undefined) {
|
|
51
|
+
continue;
|
|
52
|
+
}
|
|
53
|
+
const attr = DOMAttributeNames[p] || p.toLowerCase();
|
|
54
|
+
if (el.tagName === 'SCRIPT' && isBooleanScriptAttribute(attr)) {
|
|
55
|
+
el[attr] = !!value;
|
|
56
|
+
} else {
|
|
57
|
+
el.setAttribute(attr, String(value));
|
|
58
|
+
}
|
|
59
|
+
// Remove falsy non-zero boolean attributes so they are correctly interpreted
|
|
60
|
+
// (e.g. if we set them to false, this coerces to the string "false", which the browser interprets as true)
|
|
61
|
+
if (value === false || el.tagName === 'SCRIPT' && isBooleanScriptAttribute(attr) && (!value || value === 'false')) {
|
|
62
|
+
// Call setAttribute before, as we need to set and unset the attribute to override force async:
|
|
63
|
+
// https://html.spec.whatwg.org/multipage/scripting.html#script-force-async
|
|
64
|
+
el.setAttribute(attr, '');
|
|
65
|
+
el.removeAttribute(attr);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
|
71
|
+
Object.defineProperty(exports.default, '__esModule', { value: true });
|
|
72
|
+
Object.assign(exports.default, exports);
|
|
73
|
+
module.exports = exports.default;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
} (setAttributesFromProps.__module, setAttributesFromProps.__module.exports));
|
|
78
|
+
return setAttributesFromProps.__module.exports;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
exports.__require = requireSetAttributesFromProps;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { __module as setAttributesFromProps } from '../../../../_virtual/set-attributes-from-props.js';
|
|
2
|
+
|
|
3
|
+
var hasRequiredSetAttributesFromProps;
|
|
4
|
+
|
|
5
|
+
function requireSetAttributesFromProps () {
|
|
6
|
+
if (hasRequiredSetAttributesFromProps) return setAttributesFromProps.exports;
|
|
7
|
+
hasRequiredSetAttributesFromProps = 1;
|
|
8
|
+
(function (module, exports) {
|
|
9
|
+
Object.defineProperty(exports, "__esModule", {
|
|
10
|
+
value: true
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "setAttributesFromProps", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function() {
|
|
15
|
+
return setAttributesFromProps;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
const DOMAttributeNames = {
|
|
19
|
+
acceptCharset: 'accept-charset',
|
|
20
|
+
className: 'class',
|
|
21
|
+
htmlFor: 'for',
|
|
22
|
+
httpEquiv: 'http-equiv',
|
|
23
|
+
noModule: 'noModule'
|
|
24
|
+
};
|
|
25
|
+
const ignoreProps = [
|
|
26
|
+
'onLoad',
|
|
27
|
+
'onReady',
|
|
28
|
+
'dangerouslySetInnerHTML',
|
|
29
|
+
'children',
|
|
30
|
+
'onError',
|
|
31
|
+
'strategy',
|
|
32
|
+
'stylesheets'
|
|
33
|
+
];
|
|
34
|
+
function isBooleanScriptAttribute(attr) {
|
|
35
|
+
return [
|
|
36
|
+
'async',
|
|
37
|
+
'defer',
|
|
38
|
+
'noModule'
|
|
39
|
+
].includes(attr);
|
|
40
|
+
}
|
|
41
|
+
function setAttributesFromProps(el, props) {
|
|
42
|
+
for (const [p, value] of Object.entries(props)){
|
|
43
|
+
if (!props.hasOwnProperty(p)) continue;
|
|
44
|
+
if (ignoreProps.includes(p)) continue;
|
|
45
|
+
// we don't render undefined props to the DOM
|
|
46
|
+
if (value === undefined) {
|
|
47
|
+
continue;
|
|
48
|
+
}
|
|
49
|
+
const attr = DOMAttributeNames[p] || p.toLowerCase();
|
|
50
|
+
if (el.tagName === 'SCRIPT' && isBooleanScriptAttribute(attr)) {
|
|
51
|
+
el[attr] = !!value;
|
|
52
|
+
} else {
|
|
53
|
+
el.setAttribute(attr, String(value));
|
|
54
|
+
}
|
|
55
|
+
// Remove falsy non-zero boolean attributes so they are correctly interpreted
|
|
56
|
+
// (e.g. if we set them to false, this coerces to the string "false", which the browser interprets as true)
|
|
57
|
+
if (value === false || el.tagName === 'SCRIPT' && isBooleanScriptAttribute(attr) && (!value || value === 'false')) {
|
|
58
|
+
// Call setAttribute before, as we need to set and unset the attribute to override force async:
|
|
59
|
+
// https://html.spec.whatwg.org/multipage/scripting.html#script-force-async
|
|
60
|
+
el.setAttribute(attr, '');
|
|
61
|
+
el.removeAttribute(attr);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
|
67
|
+
Object.defineProperty(exports.default, '__esModule', { value: true });
|
|
68
|
+
Object.assign(exports.default, exports);
|
|
69
|
+
module.exports = exports.default;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
} (setAttributesFromProps, setAttributesFromProps.exports));
|
|
74
|
+
return setAttributesFromProps.exports;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export { requireSetAttributesFromProps as __require };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const trustedTypes = require('../../../../_virtual/trusted-types.cjs');
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Stores the Trusted Types Policy. Starts as undefined and can be set to null
|
|
9
|
+
* if Trusted Types is not supported in the browser.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
var hasRequiredTrustedTypes;
|
|
13
|
+
|
|
14
|
+
function requireTrustedTypes () {
|
|
15
|
+
if (hasRequiredTrustedTypes) return trustedTypes.__module.exports;
|
|
16
|
+
hasRequiredTrustedTypes = 1;
|
|
17
|
+
(function (module, exports) {
|
|
18
|
+
Object.defineProperty(exports, "__esModule", {
|
|
19
|
+
value: true
|
|
20
|
+
});
|
|
21
|
+
Object.defineProperty(exports, "__unsafeCreateTrustedScriptURL", {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function() {
|
|
24
|
+
return __unsafeCreateTrustedScriptURL;
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
let policy;
|
|
28
|
+
/**
|
|
29
|
+
* Getter for the Trusted Types Policy. If it is undefined, it is instantiated
|
|
30
|
+
* here or set to null if Trusted Types is not supported in the browser.
|
|
31
|
+
*/ function getPolicy() {
|
|
32
|
+
if (typeof policy === 'undefined' && typeof window !== 'undefined') {
|
|
33
|
+
policy = window.trustedTypes?.createPolicy('nextjs', {
|
|
34
|
+
createHTML: (input)=>input,
|
|
35
|
+
createScript: (input)=>input,
|
|
36
|
+
createScriptURL: (input)=>input
|
|
37
|
+
}) || null;
|
|
38
|
+
}
|
|
39
|
+
return policy;
|
|
40
|
+
}
|
|
41
|
+
function __unsafeCreateTrustedScriptURL(url) {
|
|
42
|
+
return getPolicy()?.createScriptURL(url) || url;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
|
46
|
+
Object.defineProperty(exports.default, '__esModule', { value: true });
|
|
47
|
+
Object.assign(exports.default, exports);
|
|
48
|
+
module.exports = exports.default;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
} (trustedTypes.__module, trustedTypes.__module.exports));
|
|
53
|
+
return trustedTypes.__module.exports;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
exports.__require = requireTrustedTypes;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { __module as trustedTypes } from '../../../../_virtual/trusted-types.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Stores the Trusted Types Policy. Starts as undefined and can be set to null
|
|
5
|
+
* if Trusted Types is not supported in the browser.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
var hasRequiredTrustedTypes;
|
|
9
|
+
|
|
10
|
+
function requireTrustedTypes () {
|
|
11
|
+
if (hasRequiredTrustedTypes) return trustedTypes.exports;
|
|
12
|
+
hasRequiredTrustedTypes = 1;
|
|
13
|
+
(function (module, exports) {
|
|
14
|
+
Object.defineProperty(exports, "__esModule", {
|
|
15
|
+
value: true
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(exports, "__unsafeCreateTrustedScriptURL", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function() {
|
|
20
|
+
return __unsafeCreateTrustedScriptURL;
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
let policy;
|
|
24
|
+
/**
|
|
25
|
+
* Getter for the Trusted Types Policy. If it is undefined, it is instantiated
|
|
26
|
+
* here or set to null if Trusted Types is not supported in the browser.
|
|
27
|
+
*/ function getPolicy() {
|
|
28
|
+
if (typeof policy === 'undefined' && typeof window !== 'undefined') {
|
|
29
|
+
policy = window.trustedTypes?.createPolicy('nextjs', {
|
|
30
|
+
createHTML: (input)=>input,
|
|
31
|
+
createScript: (input)=>input,
|
|
32
|
+
createScriptURL: (input)=>input
|
|
33
|
+
}) || null;
|
|
34
|
+
}
|
|
35
|
+
return policy;
|
|
36
|
+
}
|
|
37
|
+
function __unsafeCreateTrustedScriptURL(url) {
|
|
38
|
+
return getPolicy()?.createScriptURL(url) || url;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
|
42
|
+
Object.defineProperty(exports.default, '__esModule', { value: true });
|
|
43
|
+
Object.assign(exports.default, exports);
|
|
44
|
+
module.exports = exports.default;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
} (trustedTypes, trustedTypes.exports));
|
|
49
|
+
return trustedTypes.exports;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export { requireTrustedTypes as __require };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const withRouter = require('../../../../_virtual/with-router.cjs');
|
|
6
|
+
const require$$2 = require('react/jsx-runtime');
|
|
7
|
+
require('react');
|
|
8
|
+
const router = require('./router.cjs');
|
|
9
|
+
|
|
10
|
+
var hasRequiredWithRouter;
|
|
11
|
+
|
|
12
|
+
function requireWithRouter () {
|
|
13
|
+
if (hasRequiredWithRouter) return withRouter.__module.exports;
|
|
14
|
+
hasRequiredWithRouter = 1;
|
|
15
|
+
(function (module, exports) {
|
|
16
|
+
Object.defineProperty(exports, "__esModule", {
|
|
17
|
+
value: true
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "default", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function() {
|
|
22
|
+
return withRouter;
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
const _jsxruntime = require$$2;
|
|
26
|
+
const _router = router.__require();
|
|
27
|
+
function withRouter(ComposedComponent) {
|
|
28
|
+
function WithRouterWrapper(props) {
|
|
29
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)(ComposedComponent, {
|
|
30
|
+
router: (0, _router.useRouter)(),
|
|
31
|
+
...props
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
WithRouterWrapper.getInitialProps = ComposedComponent.getInitialProps;
|
|
35
|
+
WithRouterWrapper.origGetInitialProps = ComposedComponent.origGetInitialProps;
|
|
36
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
37
|
+
const name = ComposedComponent.displayName || ComposedComponent.name || 'Unknown';
|
|
38
|
+
WithRouterWrapper.displayName = `withRouter(${name})`;
|
|
39
|
+
}
|
|
40
|
+
return WithRouterWrapper;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
|
44
|
+
Object.defineProperty(exports.default, '__esModule', { value: true });
|
|
45
|
+
Object.assign(exports.default, exports);
|
|
46
|
+
module.exports = exports.default;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
} (withRouter.__module, withRouter.__module.exports));
|
|
51
|
+
return withRouter.__module.exports;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
exports.__require = requireWithRouter;
|