math-main-components 0.0.196 → 0.0.198
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 +19 -3
- package/styles/font.scss +11 -0
- package/styles/material-symbols.scss +24 -0
- package/styles/theme-colors.scss +164 -0
- package/styles/theme-styles.scss +8 -0
- 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,353 +0,0 @@
|
|
1
|
-
import { s as script } from '../../../../_virtual/script.js';
|
2
|
-
import '../../../@swc/helpers/cjs/_interop_require_default.cjs.js';
|
3
|
-
import { __require as require_interop_require_wildcard } from '../../../@swc/helpers/cjs/_interop_require_wildcard.cjs.js';
|
4
|
-
import require$$2 from 'react-dom';
|
5
|
-
import React from 'react';
|
6
|
-
import { __require as requireHeadManagerContext_sharedRuntime } from '../shared/lib/head-manager-context.shared-runtime.js';
|
7
|
-
import { __require as requireHeadManager } from './head-manager.js';
|
8
|
-
import { __require as requireRequestIdleCallback } from './request-idle-callback.js';
|
9
|
-
import { __exports as _interop_require_default } from '../../../../_virtual/_interop_require_default.cjs.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
|
-
handleClientScriptLoad: function() {
|
29
|
-
return handleClientScriptLoad;
|
30
|
-
},
|
31
|
-
initScriptLoader: function() {
|
32
|
-
return initScriptLoader;
|
33
|
-
},
|
34
|
-
default: function() {
|
35
|
-
return _default;
|
36
|
-
}
|
37
|
-
});
|
38
|
-
const _interop_require_default$1 = _interop_require_default;
|
39
|
-
const _interop_require_wildcard = require_interop_require_wildcard();
|
40
|
-
const _reactdom = /*#__PURE__*/ _interop_require_default$1._(require$$2);
|
41
|
-
const _react = /*#__PURE__*/ _interop_require_wildcard._(React);
|
42
|
-
const _headmanagercontextsharedruntime = requireHeadManagerContext_sharedRuntime();
|
43
|
-
const _headmanager = requireHeadManager();
|
44
|
-
const _requestidlecallback = requireRequestIdleCallback();
|
45
|
-
const ScriptCache = new Map();
|
46
|
-
const LoadCache = new Set();
|
47
|
-
const ignoreProps = [
|
48
|
-
"onLoad",
|
49
|
-
"onReady",
|
50
|
-
"dangerouslySetInnerHTML",
|
51
|
-
"children",
|
52
|
-
"onError",
|
53
|
-
"strategy",
|
54
|
-
"stylesheets"
|
55
|
-
];
|
56
|
-
const insertStylesheets = (stylesheets)=>{
|
57
|
-
// Case 1: Styles for afterInteractive/lazyOnload with appDir injected via handleClientScriptLoad
|
58
|
-
//
|
59
|
-
// Using ReactDOM.preinit to feature detect appDir and inject styles
|
60
|
-
// Stylesheets might have already been loaded if initialized with Script component
|
61
|
-
// Re-inject styles here to handle scripts loaded via handleClientScriptLoad
|
62
|
-
// ReactDOM.preinit handles dedup and ensures the styles are loaded only once
|
63
|
-
if (_reactdom.default.preinit) {
|
64
|
-
stylesheets.forEach((stylesheet)=>{
|
65
|
-
_reactdom.default.preinit(stylesheet, {
|
66
|
-
as: "style"
|
67
|
-
});
|
68
|
-
});
|
69
|
-
return;
|
70
|
-
}
|
71
|
-
// Case 2: Styles for afterInteractive/lazyOnload with pages injected via handleClientScriptLoad
|
72
|
-
//
|
73
|
-
// We use this function to load styles when appdir is not detected
|
74
|
-
// TODO: Use React float APIs to load styles once available for pages dir
|
75
|
-
if (typeof window !== "undefined") {
|
76
|
-
let head = document.head;
|
77
|
-
stylesheets.forEach((stylesheet)=>{
|
78
|
-
let link = document.createElement("link");
|
79
|
-
link.type = "text/css";
|
80
|
-
link.rel = "stylesheet";
|
81
|
-
link.href = stylesheet;
|
82
|
-
head.appendChild(link);
|
83
|
-
});
|
84
|
-
}
|
85
|
-
};
|
86
|
-
const loadScript = (props)=>{
|
87
|
-
const { src, id, onLoad = ()=>{}, onReady = null, dangerouslySetInnerHTML, children = "", strategy = "afterInteractive", onError, stylesheets } = props;
|
88
|
-
const cacheKey = id || src;
|
89
|
-
// Script has already loaded
|
90
|
-
if (cacheKey && LoadCache.has(cacheKey)) {
|
91
|
-
return;
|
92
|
-
}
|
93
|
-
// Contents of this script are already loading/loaded
|
94
|
-
if (ScriptCache.has(src)) {
|
95
|
-
LoadCache.add(cacheKey);
|
96
|
-
// It is possible that multiple `next/script` components all have same "src", but has different "onLoad"
|
97
|
-
// This is to make sure the same remote script will only load once, but "onLoad" are executed in order
|
98
|
-
ScriptCache.get(src).then(onLoad, onError);
|
99
|
-
return;
|
100
|
-
}
|
101
|
-
/** Execute after the script first loaded */ const afterLoad = ()=>{
|
102
|
-
// Run onReady for the first time after load event
|
103
|
-
if (onReady) {
|
104
|
-
onReady();
|
105
|
-
}
|
106
|
-
// add cacheKey to LoadCache when load successfully
|
107
|
-
LoadCache.add(cacheKey);
|
108
|
-
};
|
109
|
-
const el = document.createElement("script");
|
110
|
-
const loadPromise = new Promise((resolve, reject)=>{
|
111
|
-
el.addEventListener("load", function(e) {
|
112
|
-
resolve();
|
113
|
-
if (onLoad) {
|
114
|
-
onLoad.call(this, e);
|
115
|
-
}
|
116
|
-
afterLoad();
|
117
|
-
});
|
118
|
-
el.addEventListener("error", function(e) {
|
119
|
-
reject(e);
|
120
|
-
});
|
121
|
-
}).catch(function(e) {
|
122
|
-
if (onError) {
|
123
|
-
onError(e);
|
124
|
-
}
|
125
|
-
});
|
126
|
-
if (dangerouslySetInnerHTML) {
|
127
|
-
// Casting since lib.dom.d.ts doesn't have TrustedHTML yet.
|
128
|
-
el.innerHTML = dangerouslySetInnerHTML.__html || "";
|
129
|
-
afterLoad();
|
130
|
-
} else if (children) {
|
131
|
-
el.textContent = typeof children === "string" ? children : Array.isArray(children) ? children.join("") : "";
|
132
|
-
afterLoad();
|
133
|
-
} else if (src) {
|
134
|
-
el.src = src;
|
135
|
-
// do not add cacheKey into LoadCache for remote script here
|
136
|
-
// cacheKey will be added to LoadCache when it is actually loaded (see loadPromise above)
|
137
|
-
ScriptCache.set(src, loadPromise);
|
138
|
-
}
|
139
|
-
for (const [k, value] of Object.entries(props)){
|
140
|
-
if (value === undefined || ignoreProps.includes(k)) {
|
141
|
-
continue;
|
142
|
-
}
|
143
|
-
const attr = _headmanager.DOMAttributeNames[k] || k.toLowerCase();
|
144
|
-
el.setAttribute(attr, value);
|
145
|
-
}
|
146
|
-
if (strategy === "worker") {
|
147
|
-
el.setAttribute("type", "text/partytown");
|
148
|
-
}
|
149
|
-
el.setAttribute("data-nscript", strategy);
|
150
|
-
// Load styles associated with this script
|
151
|
-
if (stylesheets) {
|
152
|
-
insertStylesheets(stylesheets);
|
153
|
-
}
|
154
|
-
document.body.appendChild(el);
|
155
|
-
};
|
156
|
-
function handleClientScriptLoad(props) {
|
157
|
-
const { strategy = "afterInteractive" } = props;
|
158
|
-
if (strategy === "lazyOnload") {
|
159
|
-
window.addEventListener("load", ()=>{
|
160
|
-
(0, _requestidlecallback.requestIdleCallback)(()=>loadScript(props));
|
161
|
-
});
|
162
|
-
} else {
|
163
|
-
loadScript(props);
|
164
|
-
}
|
165
|
-
}
|
166
|
-
function loadLazyScript(props) {
|
167
|
-
if (document.readyState === "complete") {
|
168
|
-
(0, _requestidlecallback.requestIdleCallback)(()=>loadScript(props));
|
169
|
-
} else {
|
170
|
-
window.addEventListener("load", ()=>{
|
171
|
-
(0, _requestidlecallback.requestIdleCallback)(()=>loadScript(props));
|
172
|
-
});
|
173
|
-
}
|
174
|
-
}
|
175
|
-
function addBeforeInteractiveToCache() {
|
176
|
-
const scripts = [
|
177
|
-
...document.querySelectorAll('[data-nscript="beforeInteractive"]'),
|
178
|
-
...document.querySelectorAll('[data-nscript="beforePageRender"]')
|
179
|
-
];
|
180
|
-
scripts.forEach((script)=>{
|
181
|
-
const cacheKey = script.id || script.getAttribute("src");
|
182
|
-
LoadCache.add(cacheKey);
|
183
|
-
});
|
184
|
-
}
|
185
|
-
function initScriptLoader(scriptLoaderItems) {
|
186
|
-
scriptLoaderItems.forEach(handleClientScriptLoad);
|
187
|
-
addBeforeInteractiveToCache();
|
188
|
-
}
|
189
|
-
function Script(props) {
|
190
|
-
const { id, src = "", onLoad = ()=>{}, onReady = null, strategy = "afterInteractive", onError, stylesheets, ...restProps } = props;
|
191
|
-
// Context is available only during SSR
|
192
|
-
const { updateScripts, scripts, getIsSsr, appDir, nonce } = (0, _react.useContext)(_headmanagercontextsharedruntime.HeadManagerContext);
|
193
|
-
/**
|
194
|
-
* - First mount:
|
195
|
-
* 1. The useEffect for onReady executes
|
196
|
-
* 2. hasOnReadyEffectCalled.current is false, but the script hasn't loaded yet (not in LoadCache)
|
197
|
-
* onReady is skipped, set hasOnReadyEffectCalled.current to true
|
198
|
-
* 3. The useEffect for loadScript executes
|
199
|
-
* 4. hasLoadScriptEffectCalled.current is false, loadScript executes
|
200
|
-
* Once the script is loaded, the onLoad and onReady will be called by then
|
201
|
-
* [If strict mode is enabled / is wrapped in <OffScreen /> component]
|
202
|
-
* 5. The useEffect for onReady executes again
|
203
|
-
* 6. hasOnReadyEffectCalled.current is true, so entire effect is skipped
|
204
|
-
* 7. The useEffect for loadScript executes again
|
205
|
-
* 8. hasLoadScriptEffectCalled.current is true, so entire effect is skipped
|
206
|
-
*
|
207
|
-
* - Second mount:
|
208
|
-
* 1. The useEffect for onReady executes
|
209
|
-
* 2. hasOnReadyEffectCalled.current is false, but the script has already loaded (found in LoadCache)
|
210
|
-
* onReady is called, set hasOnReadyEffectCalled.current to true
|
211
|
-
* 3. The useEffect for loadScript executes
|
212
|
-
* 4. The script is already loaded, loadScript bails out
|
213
|
-
* [If strict mode is enabled / is wrapped in <OffScreen /> component]
|
214
|
-
* 5. The useEffect for onReady executes again
|
215
|
-
* 6. hasOnReadyEffectCalled.current is true, so entire effect is skipped
|
216
|
-
* 7. The useEffect for loadScript executes again
|
217
|
-
* 8. hasLoadScriptEffectCalled.current is true, so entire effect is skipped
|
218
|
-
*/ const hasOnReadyEffectCalled = (0, _react.useRef)(false);
|
219
|
-
(0, _react.useEffect)(()=>{
|
220
|
-
const cacheKey = id || src;
|
221
|
-
if (!hasOnReadyEffectCalled.current) {
|
222
|
-
// Run onReady if script has loaded before but component is re-mounted
|
223
|
-
if (onReady && cacheKey && LoadCache.has(cacheKey)) {
|
224
|
-
onReady();
|
225
|
-
}
|
226
|
-
hasOnReadyEffectCalled.current = true;
|
227
|
-
}
|
228
|
-
}, [
|
229
|
-
onReady,
|
230
|
-
id,
|
231
|
-
src
|
232
|
-
]);
|
233
|
-
const hasLoadScriptEffectCalled = (0, _react.useRef)(false);
|
234
|
-
(0, _react.useEffect)(()=>{
|
235
|
-
if (!hasLoadScriptEffectCalled.current) {
|
236
|
-
if (strategy === "afterInteractive") {
|
237
|
-
loadScript(props);
|
238
|
-
} else if (strategy === "lazyOnload") {
|
239
|
-
loadLazyScript(props);
|
240
|
-
}
|
241
|
-
hasLoadScriptEffectCalled.current = true;
|
242
|
-
}
|
243
|
-
}, [
|
244
|
-
props,
|
245
|
-
strategy
|
246
|
-
]);
|
247
|
-
if (strategy === "beforeInteractive" || strategy === "worker") {
|
248
|
-
if (updateScripts) {
|
249
|
-
scripts[strategy] = (scripts[strategy] || []).concat([
|
250
|
-
{
|
251
|
-
id,
|
252
|
-
src,
|
253
|
-
onLoad,
|
254
|
-
onReady,
|
255
|
-
onError,
|
256
|
-
...restProps
|
257
|
-
}
|
258
|
-
]);
|
259
|
-
updateScripts(scripts);
|
260
|
-
} else if (getIsSsr && getIsSsr()) {
|
261
|
-
// Script has already loaded during SSR
|
262
|
-
LoadCache.add(id || src);
|
263
|
-
} else if (getIsSsr && !getIsSsr()) {
|
264
|
-
loadScript(props);
|
265
|
-
}
|
266
|
-
}
|
267
|
-
// For the app directory, we need React Float to preload these scripts.
|
268
|
-
if (appDir) {
|
269
|
-
// Injecting stylesheets here handles beforeInteractive and worker scripts correctly
|
270
|
-
// For other strategies injecting here ensures correct stylesheet order
|
271
|
-
// ReactDOM.preinit handles loading the styles in the correct order,
|
272
|
-
// also ensures the stylesheet is loaded only once and in a consistent manner
|
273
|
-
//
|
274
|
-
// Case 1: Styles for beforeInteractive/worker with appDir - handled here
|
275
|
-
// Case 2: Styles for beforeInteractive/worker with pages dir - Not handled yet
|
276
|
-
// Case 3: Styles for afterInteractive/lazyOnload with appDir - handled here
|
277
|
-
// Case 4: Styles for afterInteractive/lazyOnload with pages dir - handled in insertStylesheets function
|
278
|
-
if (stylesheets) {
|
279
|
-
stylesheets.forEach((styleSrc)=>{
|
280
|
-
_reactdom.default.preinit(styleSrc, {
|
281
|
-
as: "style"
|
282
|
-
});
|
283
|
-
});
|
284
|
-
}
|
285
|
-
// Before interactive scripts need to be loaded by Next.js' runtime instead
|
286
|
-
// of native <script> tags, because they no longer have `defer`.
|
287
|
-
if (strategy === "beforeInteractive") {
|
288
|
-
if (!src) {
|
289
|
-
// For inlined scripts, we put the content in `children`.
|
290
|
-
if (restProps.dangerouslySetInnerHTML) {
|
291
|
-
// Casting since lib.dom.d.ts doesn't have TrustedHTML yet.
|
292
|
-
restProps.children = restProps.dangerouslySetInnerHTML.__html;
|
293
|
-
delete restProps.dangerouslySetInnerHTML;
|
294
|
-
}
|
295
|
-
return /*#__PURE__*/ _react.default.createElement("script", {
|
296
|
-
nonce: nonce,
|
297
|
-
dangerouslySetInnerHTML: {
|
298
|
-
__html: "(self.__next_s=self.__next_s||[]).push(" + JSON.stringify([
|
299
|
-
0,
|
300
|
-
{
|
301
|
-
...restProps
|
302
|
-
}
|
303
|
-
]) + ")"
|
304
|
-
}
|
305
|
-
});
|
306
|
-
} else {
|
307
|
-
// @ts-ignore
|
308
|
-
_reactdom.default.preload(src, restProps.integrity ? {
|
309
|
-
as: "script",
|
310
|
-
integrity: restProps.integrity
|
311
|
-
} : {
|
312
|
-
as: "script"
|
313
|
-
});
|
314
|
-
return /*#__PURE__*/ _react.default.createElement("script", {
|
315
|
-
nonce: nonce,
|
316
|
-
dangerouslySetInnerHTML: {
|
317
|
-
__html: "(self.__next_s=self.__next_s||[]).push(" + JSON.stringify([
|
318
|
-
src
|
319
|
-
]) + ")"
|
320
|
-
}
|
321
|
-
});
|
322
|
-
}
|
323
|
-
} else if (strategy === "afterInteractive") {
|
324
|
-
if (src) {
|
325
|
-
// @ts-ignore
|
326
|
-
_reactdom.default.preload(src, restProps.integrity ? {
|
327
|
-
as: "script",
|
328
|
-
integrity: restProps.integrity
|
329
|
-
} : {
|
330
|
-
as: "script"
|
331
|
-
});
|
332
|
-
}
|
333
|
-
}
|
334
|
-
}
|
335
|
-
return null;
|
336
|
-
}
|
337
|
-
Object.defineProperty(Script, "__nextScript", {
|
338
|
-
value: true
|
339
|
-
});
|
340
|
-
const _default = Script;
|
341
|
-
|
342
|
-
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
343
|
-
Object.defineProperty(exports.default, '__esModule', { value: true });
|
344
|
-
Object.assign(exports.default, exports);
|
345
|
-
module.exports = exports.default;
|
346
|
-
}
|
347
|
-
|
348
|
-
|
349
|
-
} (script, script.exports));
|
350
|
-
return script.exports;
|
351
|
-
}
|
352
|
-
|
353
|
-
export { requireScript as __require };
|
@@ -1,54 +0,0 @@
|
|
1
|
-
import { t 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
|
-
var _window_trustedTypes;
|
30
|
-
policy = ((_window_trustedTypes = window.trustedTypes) == null ? void 0 : _window_trustedTypes.createPolicy("nextjs", {
|
31
|
-
createHTML: (input)=>input,
|
32
|
-
createScript: (input)=>input,
|
33
|
-
createScriptURL: (input)=>input
|
34
|
-
})) || null;
|
35
|
-
}
|
36
|
-
return policy;
|
37
|
-
}
|
38
|
-
function __unsafeCreateTrustedScriptURL(url) {
|
39
|
-
var _getPolicy;
|
40
|
-
return ((_getPolicy = getPolicy()) == null ? void 0 : _getPolicy.createScriptURL(url)) || url;
|
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
|
-
} (trustedTypes, trustedTypes.exports));
|
51
|
-
return trustedTypes.exports;
|
52
|
-
}
|
53
|
-
|
54
|
-
export { requireTrustedTypes as __require };
|
@@ -1,129 +0,0 @@
|
|
1
|
-
import { u as useIntersection } from '../../../../_virtual/use-intersection.js';
|
2
|
-
import React from 'react';
|
3
|
-
import { __require as requireRequestIdleCallback } from './request-idle-callback.js';
|
4
|
-
|
5
|
-
var hasRequiredUseIntersection;
|
6
|
-
|
7
|
-
function requireUseIntersection () {
|
8
|
-
if (hasRequiredUseIntersection) return useIntersection.exports;
|
9
|
-
hasRequiredUseIntersection = 1;
|
10
|
-
(function (module, exports) {
|
11
|
-
Object.defineProperty(exports, "__esModule", {
|
12
|
-
value: true
|
13
|
-
});
|
14
|
-
Object.defineProperty(exports, "useIntersection", {
|
15
|
-
enumerable: true,
|
16
|
-
get: function() {
|
17
|
-
return useIntersection;
|
18
|
-
}
|
19
|
-
});
|
20
|
-
const _react = React;
|
21
|
-
const _requestidlecallback = requireRequestIdleCallback();
|
22
|
-
const hasIntersectionObserver = typeof IntersectionObserver === "function";
|
23
|
-
const observers = new Map();
|
24
|
-
const idList = [];
|
25
|
-
function createObserver(options) {
|
26
|
-
const id = {
|
27
|
-
root: options.root || null,
|
28
|
-
margin: options.rootMargin || ""
|
29
|
-
};
|
30
|
-
const existing = idList.find((obj)=>obj.root === id.root && obj.margin === id.margin);
|
31
|
-
let instance;
|
32
|
-
if (existing) {
|
33
|
-
instance = observers.get(existing);
|
34
|
-
if (instance) {
|
35
|
-
return instance;
|
36
|
-
}
|
37
|
-
}
|
38
|
-
const elements = new Map();
|
39
|
-
const observer = new IntersectionObserver((entries)=>{
|
40
|
-
entries.forEach((entry)=>{
|
41
|
-
const callback = elements.get(entry.target);
|
42
|
-
const isVisible = entry.isIntersecting || entry.intersectionRatio > 0;
|
43
|
-
if (callback && isVisible) {
|
44
|
-
callback(isVisible);
|
45
|
-
}
|
46
|
-
});
|
47
|
-
}, options);
|
48
|
-
instance = {
|
49
|
-
id,
|
50
|
-
observer,
|
51
|
-
elements
|
52
|
-
};
|
53
|
-
idList.push(id);
|
54
|
-
observers.set(id, instance);
|
55
|
-
return instance;
|
56
|
-
}
|
57
|
-
function observe(element, callback, options) {
|
58
|
-
const { id, observer, elements } = createObserver(options);
|
59
|
-
elements.set(element, callback);
|
60
|
-
observer.observe(element);
|
61
|
-
return function unobserve() {
|
62
|
-
elements.delete(element);
|
63
|
-
observer.unobserve(element);
|
64
|
-
// Destroy observer when there's nothing left to watch:
|
65
|
-
if (elements.size === 0) {
|
66
|
-
observer.disconnect();
|
67
|
-
observers.delete(id);
|
68
|
-
const index = idList.findIndex((obj)=>obj.root === id.root && obj.margin === id.margin);
|
69
|
-
if (index > -1) {
|
70
|
-
idList.splice(index, 1);
|
71
|
-
}
|
72
|
-
}
|
73
|
-
};
|
74
|
-
}
|
75
|
-
function useIntersection(param) {
|
76
|
-
let { rootRef, rootMargin, disabled } = param;
|
77
|
-
const isDisabled = disabled || !hasIntersectionObserver;
|
78
|
-
const [visible, setVisible] = (0, _react.useState)(false);
|
79
|
-
const elementRef = (0, _react.useRef)(null);
|
80
|
-
const setElement = (0, _react.useCallback)((element)=>{
|
81
|
-
elementRef.current = element;
|
82
|
-
}, []);
|
83
|
-
(0, _react.useEffect)(()=>{
|
84
|
-
if (hasIntersectionObserver) {
|
85
|
-
if (isDisabled || visible) return;
|
86
|
-
const element = elementRef.current;
|
87
|
-
if (element && element.tagName) {
|
88
|
-
const unobserve = observe(element, (isVisible)=>isVisible && setVisible(isVisible), {
|
89
|
-
root: rootRef == null ? void 0 : rootRef.current,
|
90
|
-
rootMargin
|
91
|
-
});
|
92
|
-
return unobserve;
|
93
|
-
}
|
94
|
-
} else {
|
95
|
-
if (!visible) {
|
96
|
-
const idleCallback = (0, _requestidlecallback.requestIdleCallback)(()=>setVisible(true));
|
97
|
-
return ()=>(0, _requestidlecallback.cancelIdleCallback)(idleCallback);
|
98
|
-
}
|
99
|
-
}
|
100
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
101
|
-
}, [
|
102
|
-
isDisabled,
|
103
|
-
rootMargin,
|
104
|
-
rootRef,
|
105
|
-
visible,
|
106
|
-
elementRef.current
|
107
|
-
]);
|
108
|
-
const resetVisible = (0, _react.useCallback)(()=>{
|
109
|
-
setVisible(false);
|
110
|
-
}, []);
|
111
|
-
return [
|
112
|
-
setElement,
|
113
|
-
visible,
|
114
|
-
resetVisible
|
115
|
-
];
|
116
|
-
}
|
117
|
-
|
118
|
-
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
119
|
-
Object.defineProperty(exports.default, '__esModule', { value: true });
|
120
|
-
Object.assign(exports.default, exports);
|
121
|
-
module.exports = exports.default;
|
122
|
-
}
|
123
|
-
|
124
|
-
|
125
|
-
} (useIntersection, useIntersection.exports));
|
126
|
-
return useIntersection.exports;
|
127
|
-
}
|
128
|
-
|
129
|
-
export { requireUseIntersection as __require };
|
@@ -1,52 +0,0 @@
|
|
1
|
-
import { w as withRouter } from '../../../../_virtual/with-router.js';
|
2
|
-
import '../../../@swc/helpers/cjs/_interop_require_default.cjs.js';
|
3
|
-
import React from 'react';
|
4
|
-
import { __require as requireRouter } from './router.js';
|
5
|
-
import { __exports as _interop_require_default } from '../../../../_virtual/_interop_require_default.cjs.js';
|
6
|
-
|
7
|
-
var hasRequiredWithRouter;
|
8
|
-
|
9
|
-
function requireWithRouter () {
|
10
|
-
if (hasRequiredWithRouter) return withRouter.exports;
|
11
|
-
hasRequiredWithRouter = 1;
|
12
|
-
(function (module, exports) {
|
13
|
-
Object.defineProperty(exports, "__esModule", {
|
14
|
-
value: true
|
15
|
-
});
|
16
|
-
Object.defineProperty(exports, "default", {
|
17
|
-
enumerable: true,
|
18
|
-
get: function() {
|
19
|
-
return withRouter;
|
20
|
-
}
|
21
|
-
});
|
22
|
-
const _interop_require_default$1 = _interop_require_default;
|
23
|
-
const _react = /*#__PURE__*/ _interop_require_default$1._(React);
|
24
|
-
const _router = requireRouter();
|
25
|
-
function withRouter(ComposedComponent) {
|
26
|
-
function WithRouterWrapper(props) {
|
27
|
-
return /*#__PURE__*/ _react.default.createElement(ComposedComponent, {
|
28
|
-
router: (0, _router.useRouter)(),
|
29
|
-
...props
|
30
|
-
});
|
31
|
-
}
|
32
|
-
WithRouterWrapper.getInitialProps = ComposedComponent.getInitialProps;
|
33
|
-
WithRouterWrapper.origGetInitialProps = ComposedComponent.origGetInitialProps;
|
34
|
-
if (process.env.NODE_ENV !== "production") {
|
35
|
-
const name = ComposedComponent.displayName || ComposedComponent.name || "Unknown";
|
36
|
-
WithRouterWrapper.displayName = "withRouter(" + name + ")";
|
37
|
-
}
|
38
|
-
return WithRouterWrapper;
|
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
|
-
} (withRouter, withRouter.exports));
|
49
|
-
return withRouter.exports;
|
50
|
-
}
|
51
|
-
|
52
|
-
export { requireWithRouter as __require };
|
@@ -1,18 +0,0 @@
|
|
1
|
-
import { c as cookie } from '../../../../../_virtual/index5.js';
|
2
|
-
|
3
|
-
var hasRequiredCookie;
|
4
|
-
|
5
|
-
function requireCookie () {
|
6
|
-
if (hasRequiredCookie) return cookie.exports;
|
7
|
-
hasRequiredCookie = 1;
|
8
|
-
(()=>{if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var e={};(()=>{var r=e;
|
9
|
-
/*!
|
10
|
-
* cookie
|
11
|
-
* Copyright(c) 2012-2014 Roman Shtylman
|
12
|
-
* Copyright(c) 2015 Douglas Christopher Wilson
|
13
|
-
* MIT Licensed
|
14
|
-
*/r.parse=parse;r.serialize=serialize;var i=decodeURIComponent;var t=encodeURIComponent;var a=/; */;var n=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function parse(e,r){if(typeof e!=="string"){throw new TypeError("argument str must be a string")}var t={};var n=r||{};var o=e.split(a);var s=n.decode||i;for(var p=0;p<o.length;p++){var f=o[p];var u=f.indexOf("=");if(u<0){continue}var v=f.substr(0,u).trim();var c=f.substr(++u,f.length).trim();if('"'==c[0]){c=c.slice(1,-1);}if(undefined==t[v]){t[v]=tryDecode(c,s);}}return t}function serialize(e,r,i){var a=i||{};var o=a.encode||t;if(typeof o!=="function"){throw new TypeError("option encode is invalid")}if(!n.test(e)){throw new TypeError("argument name is invalid")}var s=o(r);if(s&&!n.test(s)){throw new TypeError("argument val is invalid")}var p=e+"="+s;if(null!=a.maxAge){var f=a.maxAge-0;if(isNaN(f)||!isFinite(f)){throw new TypeError("option maxAge is invalid")}p+="; Max-Age="+Math.floor(f);}if(a.domain){if(!n.test(a.domain)){throw new TypeError("option domain is invalid")}p+="; Domain="+a.domain;}if(a.path){if(!n.test(a.path)){throw new TypeError("option path is invalid")}p+="; Path="+a.path;}if(a.expires){if(typeof a.expires.toUTCString!=="function"){throw new TypeError("option expires is invalid")}p+="; Expires="+a.expires.toUTCString();}if(a.httpOnly){p+="; HttpOnly";}if(a.secure){p+="; Secure";}if(a.sameSite){var u=typeof a.sameSite==="string"?a.sameSite.toLowerCase():a.sameSite;switch(u){case true:p+="; SameSite=Strict";break;case"lax":p+="; SameSite=Lax";break;case"strict":p+="; SameSite=Strict";break;case"none":p+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return p}function tryDecode(e,r){try{return r(e)}catch(r){return e}}})();cookie.exports=e;})();
|
15
|
-
return cookie.exports;
|
16
|
-
}
|
17
|
-
|
18
|
-
export { requireCookie as __require };
|
@@ -1,15 +0,0 @@
|
|
1
|
-
import { g as gzipSize } from '../../../../../_virtual/index3.js';
|
2
|
-
import require$$0 from 'fs';
|
3
|
-
import require$$1 from 'stream';
|
4
|
-
import require$$2 from 'zlib';
|
5
|
-
|
6
|
-
var hasRequiredGzipSize;
|
7
|
-
|
8
|
-
function requireGzipSize () {
|
9
|
-
if (hasRequiredGzipSize) return gzipSize.exports;
|
10
|
-
hasRequiredGzipSize = 1;
|
11
|
-
(()=>{var e={154:(e,r,t)=>{var n=t(781);var o=["write","end","destroy"];var i=["resume","pause"];var s=["data","close"];var c=Array.prototype.slice;e.exports=duplex;function forEach(e,r){if(e.forEach){return e.forEach(r)}for(var t=0;t<e.length;t++){r(e[t],t);}}function duplex(e,r){var t=new n;var a=false;forEach(o,proxyWriter);forEach(i,proxyReader);forEach(s,proxyStream);r.on("end",handleEnd);e.on("drain",(function(){t.emit("drain");}));e.on("error",reemit);r.on("error",reemit);t.writable=e.writable;t.readable=r.readable;return t;function proxyWriter(r){t[r]=method;function method(){return e[r].apply(e,arguments)}}function proxyReader(e){t[e]=method;function method(){t.emit(e);var n=r[e];if(n){return n.apply(r,arguments)}r.emit(e);}}function proxyStream(e){r.on(e,reemit);function reemit(){var r=c.call(arguments);r.unshift(e);t.emit.apply(t,r);}}function handleEnd(){if(a){return}a=true;var e=c.call(arguments);e.unshift("end");t.emit.apply(t,e);}function reemit(e){t.emit("error",e);}}},349:(e,r,t)=>{const n=t(147);const o=t(781);const i=t(796);const s=t(154);const c=t(530);const getOptions=e=>Object.assign({level:9},e);e.exports=(e,r)=>{if(!e){return Promise.resolve(0)}return c(i.gzip)(e,getOptions(r)).then((e=>e.length)).catch((e=>0))};e.exports.sync=(e,r)=>i.gzipSync(e,getOptions(r)).length;e.exports.stream=e=>{const r=new o.PassThrough;const t=new o.PassThrough;const n=s(r,t);let c=0;const a=i.createGzip(getOptions(e)).on("data",(e=>{c+=e.length;})).on("error",(()=>{n.gzipSize=0;})).on("end",(()=>{n.gzipSize=c;n.emit("gzip-size",c);t.end();}));r.pipe(a);r.pipe(t,{end:false});return n};e.exports.file=(r,t)=>new Promise(((o,i)=>{const s=n.createReadStream(r);s.on("error",i);const c=s.pipe(e.exports.stream(t));c.on("error",i);c.on("gzip-size",o);}));e.exports.fileSync=(r,t)=>e.exports.sync(n.readFileSync(r),t);},530:e=>{const processFn=(e,r)=>function(...t){const n=r.promiseModule;return new n(((n,o)=>{if(r.multiArgs){t.push(((...e)=>{if(r.errorFirst){if(e[0]){o(e);}else {e.shift();n(e);}}else {n(e);}}));}else if(r.errorFirst){t.push(((e,r)=>{if(e){o(e);}else {n(r);}}));}else {t.push(n);}e.apply(this,t);}))};e.exports=(e,r)=>{r=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:true,promiseModule:Promise},r);const t=typeof e;if(!(e!==null&&(t==="object"||t==="function"))){throw new TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${e===null?"null":t}\``)}const filter=e=>{const match=r=>typeof r==="string"?e===r:r.test(e);return r.include?r.include.some(match):!r.exclude.some(match)};let n;if(t==="function"){n=function(...t){return r.excludeMain?e(...t):processFn(e,r).apply(this,t)};}else {n=Object.create(Object.getPrototypeOf(e));}for(const t in e){const o=e[t];n[t]=typeof o==="function"&&filter(t)?processFn(o,r):o;}return n};},147:e=>{e.exports=require$$0;},781:e=>{e.exports=require$$1;},796:e=>{e.exports=require$$2;}};var r={};function __nccwpck_require__(t){var n=r[t];if(n!==undefined){return n.exports}var o=r[t]={exports:{}};var i=true;try{e[t](o,o.exports,__nccwpck_require__);i=false;}finally{if(i)delete r[t];}return o.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var t=__nccwpck_require__(349);gzipSize.exports=t;})();
|
12
|
-
return gzipSize.exports;
|
13
|
-
}
|
14
|
-
|
15
|
-
export { requireGzipSize as __require };
|