math-main-components 0.0.196 → 0.0.197
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/components/Accordeon/Accordeon.d.ts +4 -1
- package/dist/components/Accordeon/Accordeon.stories.d.ts +13 -0
- package/dist/components/Button/Button.d.ts +3 -3
- package/dist/components/Button/Button.stories.d.ts +13 -0
- package/dist/components/{AuthButton/AuthButton.d.ts → Button2/Button2.d.ts} +2 -2
- package/dist/components/Button2/Button2.stories.d.ts +13 -0
- package/dist/components/Button2/index.d.ts +1 -0
- package/dist/components/CardButton/CardButton.d.ts +3 -3
- package/dist/components/CardButton/CardButton.stories.d.ts +13 -0
- package/dist/components/Checkbox/Checkbox.stories.d.ts +13 -0
- package/dist/components/ChooseRole/ChooseRole.d.ts +3 -4
- package/dist/components/ChooseRole/ChooseRole.stories.d.ts +13 -0
- package/dist/components/ChooseRole/index.d.ts +1 -1
- package/dist/components/CopyCode/CopyCode.d.ts +3 -4
- package/dist/components/CopyCode/CopyCode.stories.d.ts +13 -0
- package/dist/components/EmptyCard/EmptyCard.stories.d.ts +13 -0
- package/dist/components/FormButton/FormButton.d.ts +4 -4
- package/dist/components/FormButton/FormButton.stories.d.ts +13 -0
- package/dist/components/FormText/FormText.stories.d.ts +13 -0
- package/dist/components/ForwardButton/ForwardButton.stories.d.ts +13 -0
- package/dist/index.cjs.js +39 -48
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +39 -47
- package/dist/styles/font.scss +5 -0
- package/dist/styles/material-symbols.scss +24 -0
- package/dist/styles/theme-colors.scss +164 -0
- package/dist/styles/theme-styles.scss +8 -0
- package/package.json +18 -3
- package/dist/_virtual/_interop_require_default.cjs.js +0 -3
- package/dist/_virtual/_interop_require_wildcard.cjs.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/add-path-suffix.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/bloom-filter.js +0 -3
- package/dist/_virtual/compare-states.js +0 -3
- package/dist/_virtual/denormalize-page-path.js +0 -3
- package/dist/_virtual/detect-domain-locale.js +0 -3
- package/dist/_virtual/detect-domain-locale2.js +0 -3
- package/dist/_virtual/ensure-leading-slash.js +0 -3
- package/dist/_virtual/escape-regexp.js +0 -3
- package/dist/_virtual/format-next-pathname-info.js +0 -3
- package/dist/_virtual/format-url.js +0 -3
- package/dist/_virtual/get-asset-path-from-route.js +0 -3
- package/dist/_virtual/get-cookie-parser.js +0 -3
- package/dist/_virtual/get-domain-locale.js +0 -3
- package/dist/_virtual/get-next-pathname-info.js +0 -3
- package/dist/_virtual/handle-smooth-scroll.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-manager.js +0 -3
- package/dist/_virtual/index.js +0 -3
- package/dist/_virtual/index2.js +0 -3
- package/dist/_virtual/index3.js +0 -3
- package/dist/_virtual/index4.js +0 -3
- package/dist/_virtual/index5.js +0 -3
- package/dist/_virtual/interception-routes.js +0 -3
- package/dist/_virtual/interpolate-as.js +0 -3
- package/dist/_virtual/is-api-route.js +0 -3
- package/dist/_virtual/is-bot.js +0 -3
- package/dist/_virtual/is-dynamic.js +0 -3
- package/dist/_virtual/is-error.js +0 -3
- package/dist/_virtual/is-local-url.js +0 -3
- package/dist/_virtual/is-plain-object.js +0 -3
- package/dist/_virtual/link.js +0 -3
- package/dist/_virtual/link2.js +0 -3
- package/dist/_virtual/mitt.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-path-sep.js +0 -3
- package/dist/_virtual/normalize-trailing-slash.js +0 -3
- package/dist/_virtual/omit.js +0 -3
- package/dist/_virtual/parse-path.js +0 -3
- package/dist/_virtual/parse-relative-url.js +0 -3
- package/dist/_virtual/parse-url.js +0 -3
- package/dist/_virtual/path-has-prefix.js +0 -3
- package/dist/_virtual/path-match.js +0 -3
- package/dist/_virtual/prepare-destination.js +0 -3
- package/dist/_virtual/querystring.js +0 -3
- package/dist/_virtual/react-is.development.js +0 -3
- package/dist/_virtual/react-is.production.min.js +0 -3
- package/dist/_virtual/remove-base-path.js +0 -3
- package/dist/_virtual/remove-locale.js +0 -3
- package/dist/_virtual/remove-path-prefix.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-rewrites.js +0 -3
- package/dist/_virtual/route-loader.js +0 -3
- package/dist/_virtual/route-matcher.js +0 -3
- package/dist/_virtual/route-regex.js +0 -3
- package/dist/_virtual/router-context.shared-runtime.js +0 -3
- package/dist/_virtual/router-reducer-types.js +0 -3
- package/dist/_virtual/router.js +0 -3
- package/dist/_virtual/router2.js +0 -3
- package/dist/_virtual/router3.js +0 -3
- package/dist/_virtual/script.js +0 -3
- package/dist/_virtual/segment.js +0 -3
- package/dist/_virtual/sorted-routes.js +0 -3
- package/dist/_virtual/trusted-types.js +0 -3
- package/dist/_virtual/use-intersection.js +0 -3
- package/dist/_virtual/utils.js +0 -3
- package/dist/_virtual/with-router.js +0 -3
- package/dist/components/Accordeon/Accordeon.types.d.ts +0 -4
- package/dist/components/AuthButton/index.d.ts +0 -1
- package/dist/components/Dialog/Dialog.types.d.ts +0 -7
- package/dist/components/PrimaryButton/PrimaryButton.d.ts +0 -8
- package/dist/components/PrimaryButton/index.d.ts +0 -1
- package/dist/components/SvgIcon/SvgIcon.types.d.ts +0 -8
- package/dist/components/index.d.ts +0 -31
- package/dist/components/useDimensions.d.ts +0 -4
- package/dist/components/useOrientation.d.ts +0 -3
- package/dist/components/useScroll.d.ts +0 -4
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_default.cjs.js +0 -7
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs.js +0 -48
- package/dist/node_modules/clsx/dist/clsx.m.js +0 -3
- package/dist/node_modules/external-svg-loader/dist/svg-loader.min.js +0 -1
- package/dist/node_modules/next/dist/client/add-base-path.js +0 -38
- package/dist/node_modules/next/dist/client/add-locale.js +0 -42
- package/dist/node_modules/next/dist/client/components/app-router-headers.js +0 -78
- package/dist/node_modules/next/dist/client/components/router-reducer/router-reducer-types.js +0 -69
- package/dist/node_modules/next/dist/client/detect-domain-locale.js +0 -39
- 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/head-manager.js +0 -212
- package/dist/node_modules/next/dist/client/link.js +0 -431
- 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 -50
- package/dist/node_modules/next/dist/client/remove-base-path.js +0 -45
- package/dist/node_modules/next/dist/client/remove-locale.js +0 -41
- package/dist/node_modules/next/dist/client/request-idle-callback.js +0 -52
- package/dist/node_modules/next/dist/client/resolve-href.js +0 -99
- package/dist/node_modules/next/dist/client/route-loader.js +0 -327
- package/dist/node_modules/next/dist/client/router.js +0 -202
- package/dist/node_modules/next/dist/client/script.js +0 -353
- package/dist/node_modules/next/dist/client/trusted-types.js +0 -54
- package/dist/node_modules/next/dist/client/use-intersection.js +0 -129
- package/dist/node_modules/next/dist/client/with-router.js +0 -52
- package/dist/node_modules/next/dist/compiled/cookie/index.js +0 -18
- package/dist/node_modules/next/dist/compiled/gzip-size/index.js +0 -15
- package/dist/node_modules/next/dist/compiled/path-to-regexp/index.js +0 -416
- package/dist/node_modules/next/dist/compiled/react-is/cjs/react-is.development.js +0 -230
- package/dist/node_modules/next/dist/compiled/react-is/cjs/react-is.production.min.js +0 -26
- package/dist/node_modules/next/dist/compiled/react-is/index.js +0 -21
- package/dist/node_modules/next/dist/lib/is-api-route.js +0 -27
- package/dist/node_modules/next/dist/lib/is-error.js +0 -53
- package/dist/node_modules/next/dist/server/api-utils/get-cookie-parser.js +0 -35
- package/dist/node_modules/next/dist/server/future/helpers/interception-routes.js +0 -97
- package/dist/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js +0 -63
- package/dist/node_modules/next/dist/shared/lib/bloom-filter.js +0 -96
- package/dist/node_modules/next/dist/shared/lib/escape-regexp.js +0 -33
- package/dist/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js +0 -33
- package/dist/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js +0 -38
- package/dist/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js +0 -42
- package/dist/node_modules/next/dist/shared/lib/is-plain-object.js +0 -50
- package/dist/node_modules/next/dist/shared/lib/mitt.js +0 -57
- package/dist/node_modules/next/dist/shared/lib/page-path/denormalize-page-path.js +0 -32
- package/dist/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js +0 -32
- package/dist/node_modules/next/dist/shared/lib/page-path/normalize-path-sep.js +0 -33
- package/dist/node_modules/next/dist/shared/lib/router/router.js +0 -1771
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-locale.js +0 -42
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js +0 -33
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-suffix.js +0 -33
- 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/compare-states.js +0 -46
- package/dist/node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js +0 -43
- package/dist/node_modules/next/dist/shared/lib/router/utils/format-url.js +0 -99
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-asset-path-from-route.js +0 -29
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.js +0 -69
- package/dist/node_modules/next/dist/shared/lib/router/utils/handle-smooth-scroll.js +0 -49
- package/dist/node_modules/next/dist/shared/lib/router/utils/index.js +0 -36
- package/dist/node_modules/next/dist/shared/lib/router/utils/interpolate-as.js +0 -67
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-bot.js +0 -27
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js +0 -28
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-local-url.js +0 -40
- package/dist/node_modules/next/dist/shared/lib/router/utils/omit.js +0 -33
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-path.js +0 -47
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-relative-url.js +0 -43
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-url.js +0 -44
- package/dist/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js +0 -33
- package/dist/node_modules/next/dist/shared/lib/router/utils/path-match.js +0 -62
- package/dist/node_modules/next/dist/shared/lib/router/utils/prepare-destination.js +0 -245
- package/dist/node_modules/next/dist/shared/lib/router/utils/querystring.js +0 -80
- package/dist/node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.js +0 -52
- package/dist/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js +0 -35
- package/dist/node_modules/next/dist/shared/lib/router/utils/resolve-rewrites.js +0 -136
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-matcher.js +0 -53
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-regex.js +0 -200
- package/dist/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js +0 -182
- package/dist/node_modules/next/dist/shared/lib/router-context.shared-runtime.js +0 -33
- package/dist/node_modules/next/dist/shared/lib/segment.js +0 -28
- package/dist/node_modules/next/dist/shared/lib/utils.js +0 -196
- package/dist/node_modules/next/link.js +0 -7
- package/dist/node_modules/next/router.js +0 -6
- package/dist/node_modules/react-toastify/dist/react-toastify.esm.mjs.js +0 -7
- package/dist/node_modules/style-inject/dist/style-inject.es.js +0 -28
- package/dist/services/prisma.service.d.ts +0 -2
- package/dist/src/components/Accordeon/Accordeon.js +0 -14
- package/dist/src/components/Accordeon/styles.module.scss.js +0 -7
- package/dist/src/components/AuthButton/styles.module.scss.js +0 -4
- package/dist/src/components/CardButton/styles.module.scss.js +0 -4
- package/dist/src/components/Checkbox/styles.module.scss.js +0 -4
- package/dist/src/components/ChooseRole/styles.module.scss.js +0 -4
- package/dist/src/components/CopyCode/styles.module.scss.js +0 -4
- package/dist/src/components/Dialog/Dialog.js +0 -14
- package/dist/src/components/Dialog/styles.module.scss.js +0 -7
- package/dist/src/components/FormButton/styles.module.scss.js +0 -4
- package/dist/src/components/FormText/styles.module.scss.js +0 -4
- package/dist/src/components/ForwardButton/styles.module.scss.js +0 -4
- package/dist/src/components/Gap/Gap.js +0 -7
- package/dist/src/components/InputMail/styles.module.scss.js +0 -4
- package/dist/src/components/InputNames/styles.module.scss.js +0 -4
- package/dist/src/components/InputNumber/styles.module.scss.js +0 -4
- package/dist/src/components/InputPassword/styles.module.scss.js +0 -4
- package/dist/src/components/InputPin/styles.module.scss.js +0 -4
- package/dist/src/components/InputText/styles.module.scss.js +0 -4
- package/dist/src/components/OptionField/styles.module.scss.js +0 -4
- package/dist/src/components/OptionFieldHorizontal/styles.module.scss.js +0 -4
- package/dist/src/components/PrimaryButton/styles.module.scss.js +0 -4
- package/dist/src/components/ProgressBar/styles.module.scss.js +0 -4
- package/dist/src/components/RadioButtons/styles.module.scss.js +0 -4
- package/dist/src/components/RedirectButton/styles.module.scss.js +0 -4
- package/dist/src/components/SearchChips/styles.module.scss.js +0 -4
- package/dist/src/components/Searchbar/styles.module.scss.js +0 -4
- package/dist/src/components/Slider/styles.module.scss.js +0 -4
- package/dist/src/components/StepBack/styles.module.scss.js +0 -4
- package/dist/src/components/SvgIcon/SvgIcon.js +0 -9
- package/dist/src/components/Table/Table.js +0 -12
- package/dist/src/components/Table/styles.module.scss.js +0 -4
- package/dist/src/components/TextWithIcon/styles.module.scss.js +0 -4
- package/dist/src/components/UsageCard/styles.module.scss.js +0 -4
- package/dist/src/index.js +0 -36
- package/dist/types/Concept.d.ts +0 -7
- package/dist/types/Content.d.ts +0 -15
- package/dist/types/CourseAnnouncement.d.ts +0 -13
- package/dist/types/CourseAnnouncementAsset.d.ts +0 -22
- package/dist/types/CourseAnnouncementAssset.d.ts +0 -21
- package/dist/types/CourseMessage.d.ts +0 -13
- package/dist/types/CourseParticipant.d.ts +0 -9
- package/dist/types/CoursePin.d.ts +0 -8
- package/dist/types/File.d.ts +0 -13
- package/dist/types/HelpData.d.ts +0 -8
- package/dist/types/News.d.ts +0 -13
- package/dist/types/OrganizationMember.d.ts +0 -12
- package/dist/types/Page.d.ts +0 -8
- package/dist/types/ProductFeature.d.ts +0 -8
- package/dist/types/ProductLimit.d.ts +0 -8
- package/dist/types/PublicUser.d.ts +0 -7
- package/dist/types/index.d.ts +0 -2
- package/dist/types/marketing/BenefitForIndividuals.d.ts +0 -9
- package/dist/types/marketing/BenefitForSchools.d.ts +0 -9
- package/dist/types/marketing/Page.d.ts +0 -8
- package/dist/types/marketing/WebsiteData.d.ts +0 -23
@@ -1,27 +0,0 @@
|
|
1
|
-
import { __exports as isApiRoute } from '../../../../_virtual/is-api-route.js';
|
2
|
-
|
3
|
-
var hasRequiredIsApiRoute;
|
4
|
-
|
5
|
-
function requireIsApiRoute () {
|
6
|
-
if (hasRequiredIsApiRoute) return isApiRoute;
|
7
|
-
hasRequiredIsApiRoute = 1;
|
8
|
-
(function (exports) {
|
9
|
-
Object.defineProperty(exports, "__esModule", {
|
10
|
-
value: true
|
11
|
-
});
|
12
|
-
Object.defineProperty(exports, "isAPIRoute", {
|
13
|
-
enumerable: true,
|
14
|
-
get: function() {
|
15
|
-
return isAPIRoute;
|
16
|
-
}
|
17
|
-
});
|
18
|
-
function isAPIRoute(value) {
|
19
|
-
return value === "/api" || Boolean(value == null ? void 0 : value.startsWith("/api/"));
|
20
|
-
}
|
21
|
-
|
22
|
-
|
23
|
-
} (isApiRoute));
|
24
|
-
return isApiRoute;
|
25
|
-
}
|
26
|
-
|
27
|
-
export { requireIsApiRoute as __require };
|
@@ -1,53 +0,0 @@
|
|
1
|
-
import { __exports as isError } from '../../../../_virtual/is-error.js';
|
2
|
-
import { __require as requireIsPlainObject } from '../shared/lib/is-plain-object.js';
|
3
|
-
|
4
|
-
var hasRequiredIsError;
|
5
|
-
|
6
|
-
function requireIsError () {
|
7
|
-
if (hasRequiredIsError) return isError;
|
8
|
-
hasRequiredIsError = 1;
|
9
|
-
(function (exports) {
|
10
|
-
Object.defineProperty(exports, "__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, {
|
20
|
-
default: function() {
|
21
|
-
return isError;
|
22
|
-
},
|
23
|
-
getProperError: function() {
|
24
|
-
return getProperError;
|
25
|
-
}
|
26
|
-
});
|
27
|
-
const _isplainobject = requireIsPlainObject();
|
28
|
-
function isError(err) {
|
29
|
-
return typeof err === "object" && err !== null && "name" in err && "message" in err;
|
30
|
-
}
|
31
|
-
function getProperError(err) {
|
32
|
-
if (isError(err)) {
|
33
|
-
return err;
|
34
|
-
}
|
35
|
-
if (process.env.NODE_ENV === "development") {
|
36
|
-
// provide better error for case where `throw undefined`
|
37
|
-
// is called in development
|
38
|
-
if (typeof err === "undefined") {
|
39
|
-
return new Error("An undefined error was thrown, " + "see here for more info: https://nextjs.org/docs/messages/threw-undefined");
|
40
|
-
}
|
41
|
-
if (err === null) {
|
42
|
-
return new Error("A null error was thrown, " + "see here for more info: https://nextjs.org/docs/messages/threw-undefined");
|
43
|
-
}
|
44
|
-
}
|
45
|
-
return new Error((0, _isplainobject.isPlainObject)(err) ? JSON.stringify(err) : err + "");
|
46
|
-
}
|
47
|
-
|
48
|
-
|
49
|
-
} (isError));
|
50
|
-
return isError;
|
51
|
-
}
|
52
|
-
|
53
|
-
export { requireIsError as __require };
|
@@ -1,35 +0,0 @@
|
|
1
|
-
import { __exports as getCookieParser } from '../../../../../_virtual/get-cookie-parser.js';
|
2
|
-
import { __require as requireCookie } from '../../compiled/cookie/index.js';
|
3
|
-
|
4
|
-
var hasRequiredGetCookieParser;
|
5
|
-
|
6
|
-
function requireGetCookieParser () {
|
7
|
-
if (hasRequiredGetCookieParser) return getCookieParser;
|
8
|
-
hasRequiredGetCookieParser = 1;
|
9
|
-
(function (exports) {
|
10
|
-
Object.defineProperty(exports, "__esModule", {
|
11
|
-
value: true
|
12
|
-
});
|
13
|
-
Object.defineProperty(exports, "getCookieParser", {
|
14
|
-
enumerable: true,
|
15
|
-
get: function() {
|
16
|
-
return getCookieParser;
|
17
|
-
}
|
18
|
-
});
|
19
|
-
function getCookieParser(headers) {
|
20
|
-
return function parseCookie() {
|
21
|
-
const { cookie } = headers;
|
22
|
-
if (!cookie) {
|
23
|
-
return {};
|
24
|
-
}
|
25
|
-
const { parse: parseCookieFn } = requireCookie();
|
26
|
-
return parseCookieFn(Array.isArray(cookie) ? cookie.join("; ") : cookie);
|
27
|
-
};
|
28
|
-
}
|
29
|
-
|
30
|
-
|
31
|
-
} (getCookieParser));
|
32
|
-
return getCookieParser;
|
33
|
-
}
|
34
|
-
|
35
|
-
export { requireGetCookieParser as __require };
|
@@ -1,97 +0,0 @@
|
|
1
|
-
import { __exports as interceptionRoutes } from '../../../../../../_virtual/interception-routes.js';
|
2
|
-
import { __require as requireAppPaths } from '../../../shared/lib/router/utils/app-paths.js';
|
3
|
-
|
4
|
-
var hasRequiredInterceptionRoutes;
|
5
|
-
|
6
|
-
function requireInterceptionRoutes () {
|
7
|
-
if (hasRequiredInterceptionRoutes) return interceptionRoutes;
|
8
|
-
hasRequiredInterceptionRoutes = 1;
|
9
|
-
(function (exports) {
|
10
|
-
Object.defineProperty(exports, "__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, {
|
20
|
-
INTERCEPTION_ROUTE_MARKERS: function() {
|
21
|
-
return INTERCEPTION_ROUTE_MARKERS;
|
22
|
-
},
|
23
|
-
isInterceptionRouteAppPath: function() {
|
24
|
-
return isInterceptionRouteAppPath;
|
25
|
-
},
|
26
|
-
extractInterceptionRouteInformation: function() {
|
27
|
-
return extractInterceptionRouteInformation;
|
28
|
-
}
|
29
|
-
});
|
30
|
-
const _apppaths = requireAppPaths();
|
31
|
-
const INTERCEPTION_ROUTE_MARKERS = [
|
32
|
-
"(..)(..)",
|
33
|
-
"(.)",
|
34
|
-
"(..)",
|
35
|
-
"(...)"
|
36
|
-
];
|
37
|
-
function isInterceptionRouteAppPath(path) {
|
38
|
-
// TODO-APP: add more serious validation
|
39
|
-
return path.split("/").find((segment)=>INTERCEPTION_ROUTE_MARKERS.find((m)=>segment.startsWith(m))) !== undefined;
|
40
|
-
}
|
41
|
-
function extractInterceptionRouteInformation(path) {
|
42
|
-
let interceptingRoute, marker, interceptedRoute;
|
43
|
-
for (const segment of path.split("/")){
|
44
|
-
marker = INTERCEPTION_ROUTE_MARKERS.find((m)=>segment.startsWith(m));
|
45
|
-
if (marker) {
|
46
|
-
[interceptingRoute, interceptedRoute] = path.split(marker, 2);
|
47
|
-
break;
|
48
|
-
}
|
49
|
-
}
|
50
|
-
if (!interceptingRoute || !marker || !interceptedRoute) {
|
51
|
-
throw new Error(`Invalid interception route: ${path}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);
|
52
|
-
}
|
53
|
-
interceptingRoute = (0, _apppaths.normalizeAppPath)(interceptingRoute) // normalize the path, e.g. /(blog)/feed -> /feed
|
54
|
-
;
|
55
|
-
switch(marker){
|
56
|
-
case "(.)":
|
57
|
-
// (.) indicates that we should match with sibling routes, so we just need to append the intercepted route to the intercepting route
|
58
|
-
if (interceptingRoute === "/") {
|
59
|
-
interceptedRoute = `/${interceptedRoute}`;
|
60
|
-
} else {
|
61
|
-
interceptedRoute = interceptingRoute + "/" + interceptedRoute;
|
62
|
-
}
|
63
|
-
break;
|
64
|
-
case "(..)":
|
65
|
-
// (..) indicates that we should match at one level up, so we need to remove the last segment of the intercepting route
|
66
|
-
if (interceptingRoute === "/") {
|
67
|
-
throw new Error(`Invalid interception route: ${path}. Cannot use (..) marker at the root level, use (.) instead.`);
|
68
|
-
}
|
69
|
-
interceptedRoute = interceptingRoute.split("/").slice(0, -1).concat(interceptedRoute).join("/");
|
70
|
-
break;
|
71
|
-
case "(...)":
|
72
|
-
// (...) will match the route segment in the root directory, so we need to use the root directory to prepend the intercepted route
|
73
|
-
interceptedRoute = "/" + interceptedRoute;
|
74
|
-
break;
|
75
|
-
case "(..)(..)":
|
76
|
-
// (..)(..) indicates that we should match at two levels up, so we need to remove the last two segments of the intercepting route
|
77
|
-
const splitInterceptingRoute = interceptingRoute.split("/");
|
78
|
-
if (splitInterceptingRoute.length <= 2) {
|
79
|
-
throw new Error(`Invalid interception route: ${path}. Cannot use (..)(..) marker at the root level or one level up.`);
|
80
|
-
}
|
81
|
-
interceptedRoute = splitInterceptingRoute.slice(0, -2).concat(interceptedRoute).join("/");
|
82
|
-
break;
|
83
|
-
default:
|
84
|
-
throw new Error("Invariant: unexpected marker");
|
85
|
-
}
|
86
|
-
return {
|
87
|
-
interceptingRoute,
|
88
|
-
interceptedRoute
|
89
|
-
};
|
90
|
-
}
|
91
|
-
|
92
|
-
|
93
|
-
} (interceptionRoutes));
|
94
|
-
return interceptionRoutes;
|
95
|
-
}
|
96
|
-
|
97
|
-
export { requireInterceptionRoutes as __require };
|
@@ -1,63 +0,0 @@
|
|
1
|
-
import { __exports as appRouterContext_sharedRuntime } from '../../../../../_virtual/app-router-context.shared-runtime.js';
|
2
|
-
import '../../../../@swc/helpers/cjs/_interop_require_default.cjs.js';
|
3
|
-
import React from 'react';
|
4
|
-
import { __exports as _interop_require_default } from '../../../../../_virtual/_interop_require_default.cjs.js';
|
5
|
-
|
6
|
-
var hasRequiredAppRouterContext_sharedRuntime;
|
7
|
-
|
8
|
-
function requireAppRouterContext_sharedRuntime () {
|
9
|
-
if (hasRequiredAppRouterContext_sharedRuntime) return appRouterContext_sharedRuntime;
|
10
|
-
hasRequiredAppRouterContext_sharedRuntime = 1;
|
11
|
-
(function (exports) {
|
12
|
-
"use client";
|
13
|
-
Object.defineProperty(exports, "__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, {
|
23
|
-
CacheStates: function() {
|
24
|
-
return CacheStates;
|
25
|
-
},
|
26
|
-
AppRouterContext: function() {
|
27
|
-
return AppRouterContext;
|
28
|
-
},
|
29
|
-
LayoutRouterContext: function() {
|
30
|
-
return LayoutRouterContext;
|
31
|
-
},
|
32
|
-
GlobalLayoutRouterContext: function() {
|
33
|
-
return GlobalLayoutRouterContext;
|
34
|
-
},
|
35
|
-
TemplateContext: function() {
|
36
|
-
return TemplateContext;
|
37
|
-
}
|
38
|
-
});
|
39
|
-
const _interop_require_default$1 = _interop_require_default;
|
40
|
-
const _react = /*#__PURE__*/ _interop_require_default$1._(React);
|
41
|
-
var CacheStates;
|
42
|
-
(function(CacheStates) {
|
43
|
-
CacheStates["LAZY_INITIALIZED"] = "LAZYINITIALIZED";
|
44
|
-
CacheStates["DATA_FETCH"] = "DATAFETCH";
|
45
|
-
CacheStates["READY"] = "READY";
|
46
|
-
})(CacheStates || (CacheStates = {}));
|
47
|
-
const AppRouterContext = _react.default.createContext(null);
|
48
|
-
const LayoutRouterContext = _react.default.createContext(null);
|
49
|
-
const GlobalLayoutRouterContext = _react.default.createContext(null);
|
50
|
-
const TemplateContext = _react.default.createContext(null);
|
51
|
-
if (process.env.NODE_ENV !== "production") {
|
52
|
-
AppRouterContext.displayName = "AppRouterContext";
|
53
|
-
LayoutRouterContext.displayName = "LayoutRouterContext";
|
54
|
-
GlobalLayoutRouterContext.displayName = "GlobalLayoutRouterContext";
|
55
|
-
TemplateContext.displayName = "TemplateContext";
|
56
|
-
}
|
57
|
-
|
58
|
-
|
59
|
-
} (appRouterContext_sharedRuntime));
|
60
|
-
return appRouterContext_sharedRuntime;
|
61
|
-
}
|
62
|
-
|
63
|
-
export { requireAppRouterContext_sharedRuntime as __require };
|
@@ -1,96 +0,0 @@
|
|
1
|
-
import { __exports as bloomFilter } from '../../../../../_virtual/bloom-filter.js';
|
2
|
-
import { __require as requireGzipSize } from '../../compiled/gzip-size/index.js';
|
3
|
-
|
4
|
-
var hasRequiredBloomFilter;
|
5
|
-
|
6
|
-
function requireBloomFilter () {
|
7
|
-
if (hasRequiredBloomFilter) return bloomFilter;
|
8
|
-
hasRequiredBloomFilter = 1;
|
9
|
-
(function (exports) {
|
10
|
-
Object.defineProperty(exports, "__esModule", {
|
11
|
-
value: true
|
12
|
-
});
|
13
|
-
Object.defineProperty(exports, "BloomFilter", {
|
14
|
-
enumerable: true,
|
15
|
-
get: function() {
|
16
|
-
return BloomFilter;
|
17
|
-
}
|
18
|
-
});
|
19
|
-
function murmurhash2(str) {
|
20
|
-
let h = 0;
|
21
|
-
for(let i = 0; i < str.length; i++){
|
22
|
-
const c = str.charCodeAt(i);
|
23
|
-
h = Math.imul(h ^ c, 0x5bd1e995);
|
24
|
-
h ^= h >>> 13;
|
25
|
-
h = Math.imul(h, 0x5bd1e995);
|
26
|
-
}
|
27
|
-
return h >>> 0;
|
28
|
-
}
|
29
|
-
class BloomFilter {
|
30
|
-
static from(items, errorRate) {
|
31
|
-
if (errorRate === void 0) errorRate = 0.01;
|
32
|
-
const filter = new BloomFilter(items.length, errorRate);
|
33
|
-
for (const item of items){
|
34
|
-
filter.add(item);
|
35
|
-
}
|
36
|
-
return filter;
|
37
|
-
}
|
38
|
-
export() {
|
39
|
-
const data = {
|
40
|
-
numItems: this.numItems,
|
41
|
-
errorRate: this.errorRate,
|
42
|
-
numBits: this.numBits,
|
43
|
-
numHashes: this.numHashes,
|
44
|
-
bitArray: this.bitArray
|
45
|
-
};
|
46
|
-
if (typeof window === "undefined" && process.env.NEXT_RUNTIME !== "edge") {
|
47
|
-
if (this.errorRate < 0.01) {
|
48
|
-
const filterData = JSON.stringify(data);
|
49
|
-
const gzipSize = requireGzipSize().sync(filterData);
|
50
|
-
if (gzipSize > 1024) {
|
51
|
-
console.warn("Creating filter with error rate less than 1% (0.01) can increase the size dramatically proceed with caution. Received error rate " + this.errorRate + " resulted in size " + filterData.length + " bytes, " + gzipSize + " bytes (gzip)");
|
52
|
-
}
|
53
|
-
}
|
54
|
-
}
|
55
|
-
return data;
|
56
|
-
}
|
57
|
-
import(data) {
|
58
|
-
this.numItems = data.numItems;
|
59
|
-
this.errorRate = data.errorRate;
|
60
|
-
this.numBits = data.numBits;
|
61
|
-
this.numHashes = data.numHashes;
|
62
|
-
this.bitArray = data.bitArray;
|
63
|
-
}
|
64
|
-
add(item) {
|
65
|
-
const hashValues = this.getHashValues(item);
|
66
|
-
hashValues.forEach((hash)=>{
|
67
|
-
this.bitArray[hash] = 1;
|
68
|
-
});
|
69
|
-
}
|
70
|
-
contains(item) {
|
71
|
-
const hashValues = this.getHashValues(item);
|
72
|
-
return hashValues.every((hash)=>this.bitArray[hash]);
|
73
|
-
}
|
74
|
-
getHashValues(item) {
|
75
|
-
const hashValues = [];
|
76
|
-
for(let i = 1; i <= this.numHashes; i++){
|
77
|
-
const hash = murmurhash2("" + item + i) % this.numBits;
|
78
|
-
hashValues.push(hash);
|
79
|
-
}
|
80
|
-
return hashValues;
|
81
|
-
}
|
82
|
-
constructor(numItems, errorRate){
|
83
|
-
this.numItems = numItems;
|
84
|
-
this.errorRate = errorRate;
|
85
|
-
this.numBits = Math.ceil(-(numItems * Math.log(errorRate)) / (Math.log(2) * Math.log(2)));
|
86
|
-
this.numHashes = Math.ceil(this.numBits / numItems * Math.log(2));
|
87
|
-
this.bitArray = new Array(this.numBits).fill(0);
|
88
|
-
}
|
89
|
-
}
|
90
|
-
|
91
|
-
|
92
|
-
} (bloomFilter));
|
93
|
-
return bloomFilter;
|
94
|
-
}
|
95
|
-
|
96
|
-
export { requireBloomFilter as __require };
|
@@ -1,33 +0,0 @@
|
|
1
|
-
import { __exports as escapeRegexp } from '../../../../../_virtual/escape-regexp.js';
|
2
|
-
|
3
|
-
var hasRequiredEscapeRegexp;
|
4
|
-
|
5
|
-
function requireEscapeRegexp () {
|
6
|
-
if (hasRequiredEscapeRegexp) return escapeRegexp;
|
7
|
-
hasRequiredEscapeRegexp = 1;
|
8
|
-
(function (exports) {
|
9
|
-
Object.defineProperty(exports, "__esModule", {
|
10
|
-
value: true
|
11
|
-
});
|
12
|
-
Object.defineProperty(exports, "escapeStringRegexp", {
|
13
|
-
enumerable: true,
|
14
|
-
get: function() {
|
15
|
-
return escapeStringRegexp;
|
16
|
-
}
|
17
|
-
});
|
18
|
-
const reHasRegExp = /[|\\{}()[\]^$+*?.-]/;
|
19
|
-
const reReplaceRegExp = /[|\\{}()[\]^$+*?.-]/g;
|
20
|
-
function escapeStringRegexp(str) {
|
21
|
-
// see also: https://github.com/lodash/lodash/blob/2da024c3b4f9947a48517639de7560457cd4ec6c/escapeRegExp.js#L23
|
22
|
-
if (reHasRegExp.test(str)) {
|
23
|
-
return str.replace(reReplaceRegExp, "\\$&");
|
24
|
-
}
|
25
|
-
return str;
|
26
|
-
}
|
27
|
-
|
28
|
-
|
29
|
-
} (escapeRegexp));
|
30
|
-
return escapeRegexp;
|
31
|
-
}
|
32
|
-
|
33
|
-
export { requireEscapeRegexp as __require };
|
@@ -1,33 +0,0 @@
|
|
1
|
-
import { __exports as headManagerContext_sharedRuntime } from '../../../../../_virtual/head-manager-context.shared-runtime.js';
|
2
|
-
import '../../../../@swc/helpers/cjs/_interop_require_default.cjs.js';
|
3
|
-
import React from 'react';
|
4
|
-
import { __exports as _interop_require_default } from '../../../../../_virtual/_interop_require_default.cjs.js';
|
5
|
-
|
6
|
-
var hasRequiredHeadManagerContext_sharedRuntime;
|
7
|
-
|
8
|
-
function requireHeadManagerContext_sharedRuntime () {
|
9
|
-
if (hasRequiredHeadManagerContext_sharedRuntime) return headManagerContext_sharedRuntime;
|
10
|
-
hasRequiredHeadManagerContext_sharedRuntime = 1;
|
11
|
-
(function (exports) {
|
12
|
-
Object.defineProperty(exports, "__esModule", {
|
13
|
-
value: true
|
14
|
-
});
|
15
|
-
Object.defineProperty(exports, "HeadManagerContext", {
|
16
|
-
enumerable: true,
|
17
|
-
get: function() {
|
18
|
-
return HeadManagerContext;
|
19
|
-
}
|
20
|
-
});
|
21
|
-
const _interop_require_default$1 = _interop_require_default;
|
22
|
-
const _react = /*#__PURE__*/ _interop_require_default$1._(React);
|
23
|
-
const HeadManagerContext = _react.default.createContext({});
|
24
|
-
if (process.env.NODE_ENV !== "production") {
|
25
|
-
HeadManagerContext.displayName = "HeadManagerContext";
|
26
|
-
}
|
27
|
-
|
28
|
-
|
29
|
-
} (headManagerContext_sharedRuntime));
|
30
|
-
return headManagerContext_sharedRuntime;
|
31
|
-
}
|
32
|
-
|
33
|
-
export { requireHeadManagerContext_sharedRuntime as __require };
|
@@ -1,38 +0,0 @@
|
|
1
|
-
import { __exports as detectDomainLocale } from '../../../../../../_virtual/detect-domain-locale2.js';
|
2
|
-
|
3
|
-
var hasRequiredDetectDomainLocale;
|
4
|
-
|
5
|
-
function requireDetectDomainLocale () {
|
6
|
-
if (hasRequiredDetectDomainLocale) return detectDomainLocale;
|
7
|
-
hasRequiredDetectDomainLocale = 1;
|
8
|
-
(function (exports) {
|
9
|
-
Object.defineProperty(exports, "__esModule", {
|
10
|
-
value: true
|
11
|
-
});
|
12
|
-
Object.defineProperty(exports, "detectDomainLocale", {
|
13
|
-
enumerable: true,
|
14
|
-
get: function() {
|
15
|
-
return detectDomainLocale;
|
16
|
-
}
|
17
|
-
});
|
18
|
-
function detectDomainLocale(domainItems, hostname, detectedLocale) {
|
19
|
-
if (!domainItems) return;
|
20
|
-
if (detectedLocale) {
|
21
|
-
detectedLocale = detectedLocale.toLowerCase();
|
22
|
-
}
|
23
|
-
for (const item of domainItems){
|
24
|
-
var _item_domain, _item_locales;
|
25
|
-
// remove port if present
|
26
|
-
const domainHostname = (_item_domain = item.domain) == null ? void 0 : _item_domain.split(":")[0].toLowerCase();
|
27
|
-
if (hostname === domainHostname || detectedLocale === item.defaultLocale.toLowerCase() || ((_item_locales = item.locales) == null ? void 0 : _item_locales.some((locale)=>locale.toLowerCase() === detectedLocale))) {
|
28
|
-
return item;
|
29
|
-
}
|
30
|
-
}
|
31
|
-
}
|
32
|
-
|
33
|
-
|
34
|
-
} (detectDomainLocale));
|
35
|
-
return detectDomainLocale;
|
36
|
-
}
|
37
|
-
|
38
|
-
export { requireDetectDomainLocale as __require };
|
@@ -1,42 +0,0 @@
|
|
1
|
-
import { __exports as normalizeLocalePath } from '../../../../../../_virtual/normalize-locale-path2.js';
|
2
|
-
|
3
|
-
var hasRequiredNormalizeLocalePath;
|
4
|
-
|
5
|
-
function requireNormalizeLocalePath () {
|
6
|
-
if (hasRequiredNormalizeLocalePath) return normalizeLocalePath;
|
7
|
-
hasRequiredNormalizeLocalePath = 1;
|
8
|
-
(function (exports) {
|
9
|
-
Object.defineProperty(exports, "__esModule", {
|
10
|
-
value: true
|
11
|
-
});
|
12
|
-
Object.defineProperty(exports, "normalizeLocalePath", {
|
13
|
-
enumerable: true,
|
14
|
-
get: function() {
|
15
|
-
return normalizeLocalePath;
|
16
|
-
}
|
17
|
-
});
|
18
|
-
function normalizeLocalePath(pathname, locales) {
|
19
|
-
let detectedLocale;
|
20
|
-
// first item will be empty string from splitting at first char
|
21
|
-
const pathnameParts = pathname.split("/");
|
22
|
-
(locales || []).some((locale)=>{
|
23
|
-
if (pathnameParts[1] && pathnameParts[1].toLowerCase() === locale.toLowerCase()) {
|
24
|
-
detectedLocale = locale;
|
25
|
-
pathnameParts.splice(1, 1);
|
26
|
-
pathname = pathnameParts.join("/") || "/";
|
27
|
-
return true;
|
28
|
-
}
|
29
|
-
return false;
|
30
|
-
});
|
31
|
-
return {
|
32
|
-
pathname,
|
33
|
-
detectedLocale
|
34
|
-
};
|
35
|
-
}
|
36
|
-
|
37
|
-
|
38
|
-
} (normalizeLocalePath));
|
39
|
-
return normalizeLocalePath;
|
40
|
-
}
|
41
|
-
|
42
|
-
export { requireNormalizeLocalePath as __require };
|
@@ -1,50 +0,0 @@
|
|
1
|
-
import { __exports as isPlainObject } from '../../../../../_virtual/is-plain-object.js';
|
2
|
-
|
3
|
-
var hasRequiredIsPlainObject;
|
4
|
-
|
5
|
-
function requireIsPlainObject () {
|
6
|
-
if (hasRequiredIsPlainObject) return isPlainObject;
|
7
|
-
hasRequiredIsPlainObject = 1;
|
8
|
-
(function (exports) {
|
9
|
-
Object.defineProperty(exports, "__esModule", {
|
10
|
-
value: true
|
11
|
-
});
|
12
|
-
function _export(target, all) {
|
13
|
-
for(var name in all)Object.defineProperty(target, name, {
|
14
|
-
enumerable: true,
|
15
|
-
get: all[name]
|
16
|
-
});
|
17
|
-
}
|
18
|
-
_export(exports, {
|
19
|
-
getObjectClassLabel: function() {
|
20
|
-
return getObjectClassLabel;
|
21
|
-
},
|
22
|
-
isPlainObject: function() {
|
23
|
-
return isPlainObject;
|
24
|
-
}
|
25
|
-
});
|
26
|
-
function getObjectClassLabel(value) {
|
27
|
-
return Object.prototype.toString.call(value);
|
28
|
-
}
|
29
|
-
function isPlainObject(value) {
|
30
|
-
if (getObjectClassLabel(value) !== "[object Object]") {
|
31
|
-
return false;
|
32
|
-
}
|
33
|
-
const prototype = Object.getPrototypeOf(value);
|
34
|
-
/**
|
35
|
-
* this used to be previously:
|
36
|
-
*
|
37
|
-
* `return prototype === null || prototype === Object.prototype`
|
38
|
-
*
|
39
|
-
* but Edge Runtime expose Object from vm, being that kind of type-checking wrongly fail.
|
40
|
-
*
|
41
|
-
* It was changed to the current implementation since it's resilient to serialization.
|
42
|
-
*/ return prototype === null || prototype.hasOwnProperty("isPrototypeOf");
|
43
|
-
}
|
44
|
-
|
45
|
-
|
46
|
-
} (isPlainObject));
|
47
|
-
return isPlainObject;
|
48
|
-
}
|
49
|
-
|
50
|
-
export { requireIsPlainObject as __require };
|
@@ -1,57 +0,0 @@
|
|
1
|
-
import { __exports as mitt } from '../../../../../_virtual/mitt.js';
|
2
|
-
|
3
|
-
/*
|
4
|
-
MIT License
|
5
|
-
|
6
|
-
Copyright (c) Jason Miller (https://jasonformat.com/)
|
7
|
-
|
8
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
9
|
-
|
10
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
11
|
-
|
12
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
13
|
-
*/
|
14
|
-
|
15
|
-
var hasRequiredMitt;
|
16
|
-
|
17
|
-
function requireMitt () {
|
18
|
-
if (hasRequiredMitt) return mitt;
|
19
|
-
hasRequiredMitt = 1;
|
20
|
-
(function (exports) {
|
21
|
-
Object.defineProperty(exports, "__esModule", {
|
22
|
-
value: true
|
23
|
-
});
|
24
|
-
Object.defineProperty(exports, "default", {
|
25
|
-
enumerable: true,
|
26
|
-
get: function() {
|
27
|
-
return mitt;
|
28
|
-
}
|
29
|
-
});
|
30
|
-
function mitt() {
|
31
|
-
const all = Object.create(null);
|
32
|
-
return {
|
33
|
-
on (type, handler) {
|
34
|
-
(all[type] || (all[type] = [])).push(handler);
|
35
|
-
},
|
36
|
-
off (type, handler) {
|
37
|
-
if (all[type]) {
|
38
|
-
all[type].splice(all[type].indexOf(handler) >>> 0, 1);
|
39
|
-
}
|
40
|
-
},
|
41
|
-
emit (type) {
|
42
|
-
for(var _len = arguments.length, evts = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){
|
43
|
-
evts[_key - 1] = arguments[_key];
|
44
|
-
}
|
45
|
-
(all[type] || []).slice().map((handler)=>{
|
46
|
-
handler(...evts);
|
47
|
-
});
|
48
|
-
}
|
49
|
-
};
|
50
|
-
}
|
51
|
-
|
52
|
-
|
53
|
-
} (mitt));
|
54
|
-
return mitt;
|
55
|
-
}
|
56
|
-
|
57
|
-
export { requireMitt as __require };
|
@@ -1,32 +0,0 @@
|
|
1
|
-
import { __exports as denormalizePagePath } from '../../../../../../_virtual/denormalize-page-path.js';
|
2
|
-
import { __require as requireUtils } from '../router/utils/index.js';
|
3
|
-
import { __require as requireNormalizePathSep } from './normalize-path-sep.js';
|
4
|
-
|
5
|
-
var hasRequiredDenormalizePagePath;
|
6
|
-
|
7
|
-
function requireDenormalizePagePath () {
|
8
|
-
if (hasRequiredDenormalizePagePath) return denormalizePagePath;
|
9
|
-
hasRequiredDenormalizePagePath = 1;
|
10
|
-
(function (exports) {
|
11
|
-
Object.defineProperty(exports, "__esModule", {
|
12
|
-
value: true
|
13
|
-
});
|
14
|
-
Object.defineProperty(exports, "denormalizePagePath", {
|
15
|
-
enumerable: true,
|
16
|
-
get: function() {
|
17
|
-
return denormalizePagePath;
|
18
|
-
}
|
19
|
-
});
|
20
|
-
const _utils = requireUtils();
|
21
|
-
const _normalizepathsep = requireNormalizePathSep();
|
22
|
-
function denormalizePagePath(page) {
|
23
|
-
let _page = (0, _normalizepathsep.normalizePathSep)(page);
|
24
|
-
return _page.startsWith("/index/") && !(0, _utils.isDynamicRoute)(_page) ? _page.slice(6) : _page !== "/index" ? _page : "/";
|
25
|
-
}
|
26
|
-
|
27
|
-
|
28
|
-
} (denormalizePagePath));
|
29
|
-
return denormalizePagePath;
|
30
|
-
}
|
31
|
-
|
32
|
-
export { requireDenormalizePagePath as __require };
|