create project
This commit is contained in:
2
kitabcitab/node_modules/next/dist/shared/lib/amp-context.d.ts
generated
vendored
Normal file
2
kitabcitab/node_modules/next/dist/shared/lib/amp-context.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import React from 'react';
|
||||
export declare const AmpStateContext: React.Context<any>;
|
||||
14
kitabcitab/node_modules/next/dist/shared/lib/amp-context.js
generated
vendored
Normal file
14
kitabcitab/node_modules/next/dist/shared/lib/amp-context.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.AmpStateContext = void 0;
|
||||
var _interop_require_default = require("@swc/helpers/lib/_interop_require_default.js").default;
|
||||
var _react = _interop_require_default(require("react"));
|
||||
const AmpStateContext = _react.default.createContext({});
|
||||
exports.AmpStateContext = AmpStateContext;
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
AmpStateContext.displayName = 'AmpStateContext';
|
||||
}
|
||||
|
||||
//# sourceMappingURL=amp-context.js.map
|
||||
1
kitabcitab/node_modules/next/dist/shared/lib/amp-context.js.map
generated
vendored
Normal file
1
kitabcitab/node_modules/next/dist/shared/lib/amp-context.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../shared/lib/amp-context.ts"],"names":["AmpStateContext","React","createContext","process","env","NODE_ENV","displayName"],"mappings":"AAAA;;;;;;AAAkB,IAAA,MAAO,oCAAP,OAAO,EAAA;AAElB,MAAMA,eAAe,GAAuBC,MAAK,QAAA,CAACC,aAAa,CAAC,EAAE,CAAC;QAA7DF,eAAe,GAAfA,eAAe;AAE5B,IAAIG,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,YAAY,EAAE;IACzCL,eAAe,CAACM,WAAW,GAAG,iBAAiB;CAChD"}
|
||||
5
kitabcitab/node_modules/next/dist/shared/lib/amp-mode.d.ts
generated
vendored
Normal file
5
kitabcitab/node_modules/next/dist/shared/lib/amp-mode.d.ts
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
export declare function isInAmpMode({ ampFirst, hybrid, hasQuery, }?: {
|
||||
ampFirst?: boolean | undefined;
|
||||
hybrid?: boolean | undefined;
|
||||
hasQuery?: boolean | undefined;
|
||||
}): boolean;
|
||||
10
kitabcitab/node_modules/next/dist/shared/lib/amp-mode.js
generated
vendored
Normal file
10
kitabcitab/node_modules/next/dist/shared/lib/amp-mode.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.isInAmpMode = isInAmpMode;
|
||||
function isInAmpMode({ ampFirst =false , hybrid =false , hasQuery =false , } = {}) {
|
||||
return ampFirst || hybrid && hasQuery;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=amp-mode.js.map
|
||||
1
kitabcitab/node_modules/next/dist/shared/lib/amp-mode.js.map
generated
vendored
Normal file
1
kitabcitab/node_modules/next/dist/shared/lib/amp-mode.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../shared/lib/amp-mode.ts"],"names":["isInAmpMode","ampFirst","hybrid","hasQuery"],"mappings":"AAAA;;;;QAAgBA,WAAW,GAAXA,WAAW;AAApB,SAASA,WAAW,CAAC,EAC1BC,QAAQ,EAAG,KAAK,CAAA,EAChBC,MAAM,EAAG,KAAK,CAAA,EACdC,QAAQ,EAAG,KAAK,CAAA,IACjB,GAAG,EAAE,EAAW;IACf,OAAOF,QAAQ,IAAKC,MAAM,IAAIC,QAAQ,AAAC,CAAA;CACxC"}
|
||||
1
kitabcitab/node_modules/next/dist/shared/lib/amp.d.ts
generated
vendored
Normal file
1
kitabcitab/node_modules/next/dist/shared/lib/amp.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export declare function useAmp(): boolean;
|
||||
21
kitabcitab/node_modules/next/dist/shared/lib/amp.js
generated
vendored
Normal file
21
kitabcitab/node_modules/next/dist/shared/lib/amp.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.useAmp = useAmp;
|
||||
var _interop_require_default = require("@swc/helpers/lib/_interop_require_default.js").default;
|
||||
var _react = _interop_require_default(require("react"));
|
||||
var _ampContext = require("./amp-context");
|
||||
var _ampMode = require("./amp-mode");
|
||||
function useAmp() {
|
||||
// Don't assign the context value to a variable to save bytes
|
||||
return (0, _ampMode).isInAmpMode(_react.default.useContext(_ampContext.AmpStateContext));
|
||||
}
|
||||
|
||||
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
||||
Object.defineProperty(exports.default, '__esModule', { value: true });
|
||||
Object.assign(exports.default, exports);
|
||||
module.exports = exports.default;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=amp.js.map
|
||||
1
kitabcitab/node_modules/next/dist/shared/lib/amp.js.map
generated
vendored
Normal file
1
kitabcitab/node_modules/next/dist/shared/lib/amp.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../shared/lib/amp.ts"],"names":["useAmp","isInAmpMode","React","useContext","AmpStateContext"],"mappings":"AAAA;;;;QAIgBA,MAAM,GAANA,MAAM;;AAJJ,IAAA,MAAO,oCAAP,OAAO,EAAA;AACO,IAAA,WAAe,WAAf,eAAe,CAAA;AACnB,IAAA,QAAY,WAAZ,YAAY,CAAA;AAEjC,SAASA,MAAM,GAAY;IAChC,6DAA6D;IAC7D,OAAOC,CAAAA,GAAAA,QAAW,AAAmC,CAAA,YAAnC,CAACC,MAAK,QAAA,CAACC,UAAU,CAACC,WAAe,gBAAA,CAAC,CAAC,CAAA;CACtD"}
|
||||
96
kitabcitab/node_modules/next/dist/shared/lib/app-router-context.d.ts
generated
vendored
Normal file
96
kitabcitab/node_modules/next/dist/shared/lib/app-router-context.d.ts
generated
vendored
Normal file
@@ -0,0 +1,96 @@
|
||||
import React from 'react';
|
||||
import type { FocusAndScrollRef } from '../../client/components/reducer';
|
||||
import type { FlightRouterState, FlightData } from '../../server/app-render';
|
||||
export declare type ChildSegmentMap = Map<string, CacheNode>;
|
||||
export declare enum CacheStates {
|
||||
LAZY_INITIALIZED = "LAZYINITIALIZED",
|
||||
DATA_FETCH = "DATAFETCH",
|
||||
READY = "READY"
|
||||
}
|
||||
/**
|
||||
* Cache node used in app-router / layout-router.
|
||||
*/
|
||||
export declare type CacheNode = {
|
||||
status: CacheStates.DATA_FETCH;
|
||||
/**
|
||||
* In-flight request for this node.
|
||||
*/
|
||||
data: ReturnType<typeof import('../../client/components/app-router').fetchServerResponse> | null;
|
||||
head?: React.ReactNode;
|
||||
/**
|
||||
* React Component for this node.
|
||||
*/
|
||||
subTreeData: null;
|
||||
/**
|
||||
* Child parallel routes.
|
||||
*/
|
||||
parallelRoutes: Map<string, ChildSegmentMap>;
|
||||
} | {
|
||||
status: CacheStates.READY;
|
||||
/**
|
||||
* In-flight request for this node.
|
||||
*/
|
||||
data: null;
|
||||
head?: React.ReactNode;
|
||||
/**
|
||||
* React Component for this node.
|
||||
*/
|
||||
subTreeData: React.ReactNode;
|
||||
/**
|
||||
* Child parallel routes.
|
||||
*/
|
||||
parallelRoutes: Map<string, ChildSegmentMap>;
|
||||
} | {
|
||||
status: CacheStates.LAZY_INITIALIZED;
|
||||
data: null;
|
||||
head?: React.ReactNode;
|
||||
subTreeData: null;
|
||||
/**
|
||||
* Child parallel routes.
|
||||
*/
|
||||
parallelRoutes: Map<string, ChildSegmentMap>;
|
||||
};
|
||||
interface NavigateOptions {
|
||||
forceOptimisticNavigation?: boolean;
|
||||
}
|
||||
export interface AppRouterInstance {
|
||||
/**
|
||||
* Navigate to the previous history entry.
|
||||
*/
|
||||
back(): void;
|
||||
/**
|
||||
* Navigate to the next history entry.
|
||||
*/
|
||||
forward(): void;
|
||||
/**
|
||||
* Refresh the current page.
|
||||
*/
|
||||
refresh(): void;
|
||||
/**
|
||||
* Navigate to the provided href.
|
||||
* Pushes a new history entry.
|
||||
*/
|
||||
push(href: string, options?: NavigateOptions): void;
|
||||
/**
|
||||
* Navigate to the provided href.
|
||||
* Replaces the current history entry.
|
||||
*/
|
||||
replace(href: string, options?: NavigateOptions): void;
|
||||
/**
|
||||
* Prefetch the provided href.
|
||||
*/
|
||||
prefetch(href: string): void;
|
||||
}
|
||||
export declare const AppRouterContext: React.Context<AppRouterInstance | null>;
|
||||
export declare const LayoutRouterContext: React.Context<{
|
||||
childNodes: CacheNode['parallelRoutes'];
|
||||
tree: FlightRouterState;
|
||||
url: string;
|
||||
}>;
|
||||
export declare const GlobalLayoutRouterContext: React.Context<{
|
||||
tree: FlightRouterState;
|
||||
changeByServerResponse: (previousTree: FlightRouterState, flightData: FlightData, overrideCanonicalUrl: URL | undefined) => void;
|
||||
focusAndScrollRef: FocusAndScrollRef;
|
||||
}>;
|
||||
export declare const TemplateContext: React.Context<React.ReactNode>;
|
||||
export {};
|
||||
32
kitabcitab/node_modules/next/dist/shared/lib/app-router-context.js
generated
vendored
Normal file
32
kitabcitab/node_modules/next/dist/shared/lib/app-router-context.js
generated
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
"use client";
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.TemplateContext = exports.GlobalLayoutRouterContext = exports.LayoutRouterContext = exports.AppRouterContext = exports.CacheStates = void 0;
|
||||
var _interop_require_default = require("@swc/helpers/lib/_interop_require_default.js").default;
|
||||
var _react = _interop_require_default(require("react"));
|
||||
|
||||
var CacheStates;
|
||||
exports.CacheStates = CacheStates;
|
||||
(function(CacheStates) {
|
||||
CacheStates["LAZY_INITIALIZED"] = 'LAZYINITIALIZED';
|
||||
CacheStates["DATA_FETCH"] = 'DATAFETCH';
|
||||
CacheStates["READY"] = "READY";
|
||||
})(CacheStates || (exports.CacheStates = CacheStates = {}));
|
||||
const AppRouterContext = _react.default.createContext(null);
|
||||
exports.AppRouterContext = AppRouterContext;
|
||||
const LayoutRouterContext = _react.default.createContext(null);
|
||||
exports.LayoutRouterContext = LayoutRouterContext;
|
||||
const GlobalLayoutRouterContext = _react.default.createContext(null);
|
||||
exports.GlobalLayoutRouterContext = GlobalLayoutRouterContext;
|
||||
const TemplateContext = _react.default.createContext(null);
|
||||
exports.TemplateContext = TemplateContext;
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
AppRouterContext.displayName = 'AppRouterContext';
|
||||
LayoutRouterContext.displayName = 'LayoutRouterContext';
|
||||
GlobalLayoutRouterContext.displayName = 'GlobalLayoutRouterContext';
|
||||
TemplateContext.displayName = 'TemplateContext';
|
||||
}
|
||||
|
||||
//# sourceMappingURL=app-router-context.js.map
|
||||
1
kitabcitab/node_modules/next/dist/shared/lib/app-router-context.js.map
generated
vendored
Normal file
1
kitabcitab/node_modules/next/dist/shared/lib/app-router-context.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../shared/lib/app-router-context.ts"],"names":["CacheStates","LAZY_INITIALIZED","DATA_FETCH","READY","AppRouterContext","React","createContext","LayoutRouterContext","GlobalLayoutRouterContext","TemplateContext","process","env","NODE_ENV","displayName"],"mappings":"AAAA;;;;;;AAEkB,IAAA,MAAO,oCAAP,OAAO,EAAA;AAFzB,YAAY;IASL,WAIN;;UAJWA,WAAW;IAAXA,WAAW,CACrBC,kBAAgB,IAAG,iBAAiB;IAD1BD,WAAW,CAErBE,YAAU,IAAG,WAAW;IAFdF,WAAW,CAGrBG,OAAK,IAALA,OAAK;GAHKH,WAAW,2BAAXA,WAAW;AAuFhB,MAAMI,gBAAgB,GAAGC,MAAK,QAAA,CAACC,aAAa,CACjD,IAAI,CACL;QAFYF,gBAAgB,GAAhBA,gBAAgB;AAGtB,MAAMG,mBAAmB,GAAGF,MAAK,QAAA,CAACC,aAAa,CAInD,IAAI,CAAQ;QAJFC,mBAAmB,GAAnBA,mBAAmB;AAKzB,MAAMC,yBAAyB,GAAGH,MAAK,QAAA,CAACC,aAAa,CAQzD,IAAI,CAAQ;QARFE,yBAAyB,GAAzBA,yBAAyB;AAU/B,MAAMC,eAAe,GAAGJ,MAAK,QAAA,CAACC,aAAa,CAAkB,IAAI,CAAQ;QAAnEG,eAAe,GAAfA,eAAe;AAE5B,IAAIC,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,YAAY,EAAE;IACzCR,gBAAgB,CAACS,WAAW,GAAG,kBAAkB;IACjDN,mBAAmB,CAACM,WAAW,GAAG,qBAAqB;IACvDL,yBAAyB,CAACK,WAAW,GAAG,2BAA2B;IACnEJ,eAAe,CAACI,WAAW,GAAG,iBAAiB;CAChD"}
|
||||
91
kitabcitab/node_modules/next/dist/shared/lib/constants.d.ts
generated
vendored
Normal file
91
kitabcitab/node_modules/next/dist/shared/lib/constants.d.ts
generated
vendored
Normal file
@@ -0,0 +1,91 @@
|
||||
export declare type ValueOf<T> = Required<T>[keyof T];
|
||||
export declare const COMPILER_NAMES: {
|
||||
readonly client: "client";
|
||||
readonly server: "server";
|
||||
readonly edgeServer: "edge-server";
|
||||
};
|
||||
export declare type CompilerNameValues = ValueOf<typeof COMPILER_NAMES>;
|
||||
export declare const COMPILER_INDEXES: {
|
||||
[compilerKey in CompilerNameValues]: number;
|
||||
};
|
||||
export declare const PHASE_EXPORT = "phase-export";
|
||||
export declare const PHASE_PRODUCTION_BUILD = "phase-production-build";
|
||||
export declare const PHASE_PRODUCTION_SERVER = "phase-production-server";
|
||||
export declare const PHASE_DEVELOPMENT_SERVER = "phase-development-server";
|
||||
export declare const PHASE_TEST = "phase-test";
|
||||
export declare const PAGES_MANIFEST = "pages-manifest.json";
|
||||
export declare const APP_PATHS_MANIFEST = "app-paths-manifest.json";
|
||||
export declare const APP_PATH_ROUTES_MANIFEST = "app-path-routes-manifest.json";
|
||||
export declare const BUILD_MANIFEST = "build-manifest.json";
|
||||
export declare const APP_BUILD_MANIFEST = "app-build-manifest.json";
|
||||
export declare const SUBRESOURCE_INTEGRITY_MANIFEST = "subresource-integrity-manifest";
|
||||
export declare const FONT_LOADER_MANIFEST = "font-loader-manifest";
|
||||
export declare const EXPORT_MARKER = "export-marker.json";
|
||||
export declare const EXPORT_DETAIL = "export-detail.json";
|
||||
export declare const PRERENDER_MANIFEST = "prerender-manifest.json";
|
||||
export declare const ROUTES_MANIFEST = "routes-manifest.json";
|
||||
export declare const IMAGES_MANIFEST = "images-manifest.json";
|
||||
export declare const SERVER_FILES_MANIFEST = "required-server-files.json";
|
||||
export declare const DEV_CLIENT_PAGES_MANIFEST = "_devPagesManifest.json";
|
||||
export declare const MIDDLEWARE_MANIFEST = "middleware-manifest.json";
|
||||
export declare const DEV_MIDDLEWARE_MANIFEST = "_devMiddlewareManifest.json";
|
||||
export declare const REACT_LOADABLE_MANIFEST = "react-loadable-manifest.json";
|
||||
export declare const FONT_MANIFEST = "font-manifest.json";
|
||||
export declare const SERVER_DIRECTORY = "server";
|
||||
export declare const CONFIG_FILES: string[];
|
||||
export declare const BUILD_ID_FILE = "BUILD_ID";
|
||||
export declare const BLOCKED_PAGES: string[];
|
||||
export declare const CLIENT_PUBLIC_FILES_PATH = "public";
|
||||
export declare const CLIENT_STATIC_FILES_PATH = "static";
|
||||
export declare const CLIENT_STATIC_FILES_RUNTIME = "runtime";
|
||||
export declare const STRING_LITERAL_DROP_BUNDLE = "__NEXT_DROP_CLIENT_FILE__";
|
||||
/**
|
||||
* These are the browser versions that support all of the following:
|
||||
* static import: https://caniuse.com/es6-module
|
||||
* dynamic import: https://caniuse.com/es6-module-dynamic-import
|
||||
* import.meta: https://caniuse.com/mdn-javascript_operators_import_meta
|
||||
*/
|
||||
export declare const MODERN_BROWSERSLIST_TARGET: string[];
|
||||
export declare const NEXT_BUILTIN_DOCUMENT = "__NEXT_BUILTIN_DOCUMENT__";
|
||||
export declare const NEXT_CLIENT_SSR_ENTRY_SUFFIX = ".__sc_client__";
|
||||
export declare const FLIGHT_MANIFEST = "flight-manifest";
|
||||
export declare const FLIGHT_SERVER_CSS_MANIFEST = "flight-server-css-manifest";
|
||||
export declare const MIDDLEWARE_BUILD_MANIFEST = "middleware-build-manifest";
|
||||
export declare const MIDDLEWARE_REACT_LOADABLE_MANIFEST = "middleware-react-loadable-manifest";
|
||||
export declare const CLIENT_STATIC_FILES_RUNTIME_MAIN = "main";
|
||||
export declare const CLIENT_STATIC_FILES_RUNTIME_MAIN_APP: string;
|
||||
export declare const APP_CLIENT_INTERNALS = "app-client-internals";
|
||||
export declare const CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH = "react-refresh";
|
||||
export declare const CLIENT_STATIC_FILES_RUNTIME_AMP = "amp";
|
||||
export declare const CLIENT_STATIC_FILES_RUNTIME_WEBPACK = "webpack";
|
||||
export declare const CLIENT_STATIC_FILES_RUNTIME_POLYFILLS = "polyfills";
|
||||
export declare const CLIENT_STATIC_FILES_RUNTIME_POLYFILLS_SYMBOL: unique symbol;
|
||||
export declare const EDGE_RUNTIME_WEBPACK = "edge-runtime-webpack";
|
||||
export declare const TEMPORARY_REDIRECT_STATUS = 307;
|
||||
export declare const PERMANENT_REDIRECT_STATUS = 308;
|
||||
export declare const STATIC_PROPS_ID = "__N_SSG";
|
||||
export declare const SERVER_PROPS_ID = "__N_SSP";
|
||||
export declare const GOOGLE_FONT_PROVIDER = "https://fonts.googleapis.com/";
|
||||
export declare const OPTIMIZED_FONT_PROVIDERS: {
|
||||
url: string;
|
||||
preconnect: string;
|
||||
}[];
|
||||
export declare const DEFAULT_SERIF_FONT: {
|
||||
name: string;
|
||||
xAvgCharWidth: number;
|
||||
azAvgWidth: number;
|
||||
unitsPerEm: number;
|
||||
};
|
||||
export declare const DEFAULT_SANS_SERIF_FONT: {
|
||||
name: string;
|
||||
xAvgCharWidth: number;
|
||||
azAvgWidth: number;
|
||||
unitsPerEm: number;
|
||||
};
|
||||
export declare const STATIC_STATUS_PAGES: string[];
|
||||
export declare const TRACE_OUTPUT_VERSION = 1;
|
||||
export declare const RSC_MODULE_TYPES: {
|
||||
readonly client: "client";
|
||||
readonly server: "server";
|
||||
};
|
||||
export declare const EDGE_UNSUPPORTED_NODE_APIS: string[];
|
||||
200
kitabcitab/node_modules/next/dist/shared/lib/constants.js
generated
vendored
Normal file
200
kitabcitab/node_modules/next/dist/shared/lib/constants.js
generated
vendored
Normal file
@@ -0,0 +1,200 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.EDGE_UNSUPPORTED_NODE_APIS = exports.RSC_MODULE_TYPES = exports.TRACE_OUTPUT_VERSION = exports.STATIC_STATUS_PAGES = exports.DEFAULT_SANS_SERIF_FONT = exports.DEFAULT_SERIF_FONT = exports.OPTIMIZED_FONT_PROVIDERS = exports.GOOGLE_FONT_PROVIDER = exports.SERVER_PROPS_ID = exports.STATIC_PROPS_ID = exports.PERMANENT_REDIRECT_STATUS = exports.TEMPORARY_REDIRECT_STATUS = exports.EDGE_RUNTIME_WEBPACK = exports.CLIENT_STATIC_FILES_RUNTIME_POLYFILLS_SYMBOL = exports.CLIENT_STATIC_FILES_RUNTIME_POLYFILLS = exports.CLIENT_STATIC_FILES_RUNTIME_WEBPACK = exports.CLIENT_STATIC_FILES_RUNTIME_AMP = exports.CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH = exports.APP_CLIENT_INTERNALS = exports.CLIENT_STATIC_FILES_RUNTIME_MAIN_APP = exports.CLIENT_STATIC_FILES_RUNTIME_MAIN = exports.MIDDLEWARE_REACT_LOADABLE_MANIFEST = exports.MIDDLEWARE_BUILD_MANIFEST = exports.FLIGHT_SERVER_CSS_MANIFEST = exports.FLIGHT_MANIFEST = exports.NEXT_CLIENT_SSR_ENTRY_SUFFIX = exports.NEXT_BUILTIN_DOCUMENT = exports.MODERN_BROWSERSLIST_TARGET = exports.STRING_LITERAL_DROP_BUNDLE = exports.CLIENT_STATIC_FILES_RUNTIME = exports.CLIENT_STATIC_FILES_PATH = exports.CLIENT_PUBLIC_FILES_PATH = exports.BLOCKED_PAGES = exports.BUILD_ID_FILE = exports.CONFIG_FILES = exports.SERVER_DIRECTORY = exports.FONT_MANIFEST = exports.REACT_LOADABLE_MANIFEST = exports.DEV_MIDDLEWARE_MANIFEST = exports.MIDDLEWARE_MANIFEST = exports.DEV_CLIENT_PAGES_MANIFEST = exports.SERVER_FILES_MANIFEST = exports.IMAGES_MANIFEST = exports.ROUTES_MANIFEST = exports.PRERENDER_MANIFEST = exports.EXPORT_DETAIL = exports.EXPORT_MARKER = exports.FONT_LOADER_MANIFEST = exports.SUBRESOURCE_INTEGRITY_MANIFEST = exports.APP_BUILD_MANIFEST = exports.BUILD_MANIFEST = exports.APP_PATH_ROUTES_MANIFEST = exports.APP_PATHS_MANIFEST = exports.PAGES_MANIFEST = exports.PHASE_TEST = exports.PHASE_DEVELOPMENT_SERVER = exports.PHASE_PRODUCTION_SERVER = exports.PHASE_PRODUCTION_BUILD = exports.PHASE_EXPORT = exports.COMPILER_INDEXES = exports.COMPILER_NAMES = void 0;
|
||||
const COMPILER_NAMES = {
|
||||
client: 'client',
|
||||
server: 'server',
|
||||
edgeServer: 'edge-server'
|
||||
};
|
||||
exports.COMPILER_NAMES = COMPILER_NAMES;
|
||||
const COMPILER_INDEXES = {
|
||||
[COMPILER_NAMES.client]: 0,
|
||||
[COMPILER_NAMES.server]: 1,
|
||||
[COMPILER_NAMES.edgeServer]: 2
|
||||
};
|
||||
exports.COMPILER_INDEXES = COMPILER_INDEXES;
|
||||
const PHASE_EXPORT = 'phase-export';
|
||||
exports.PHASE_EXPORT = PHASE_EXPORT;
|
||||
const PHASE_PRODUCTION_BUILD = 'phase-production-build';
|
||||
exports.PHASE_PRODUCTION_BUILD = PHASE_PRODUCTION_BUILD;
|
||||
const PHASE_PRODUCTION_SERVER = 'phase-production-server';
|
||||
exports.PHASE_PRODUCTION_SERVER = PHASE_PRODUCTION_SERVER;
|
||||
const PHASE_DEVELOPMENT_SERVER = 'phase-development-server';
|
||||
exports.PHASE_DEVELOPMENT_SERVER = PHASE_DEVELOPMENT_SERVER;
|
||||
const PHASE_TEST = 'phase-test';
|
||||
exports.PHASE_TEST = PHASE_TEST;
|
||||
const PAGES_MANIFEST = 'pages-manifest.json';
|
||||
exports.PAGES_MANIFEST = PAGES_MANIFEST;
|
||||
const APP_PATHS_MANIFEST = 'app-paths-manifest.json';
|
||||
exports.APP_PATHS_MANIFEST = APP_PATHS_MANIFEST;
|
||||
const APP_PATH_ROUTES_MANIFEST = 'app-path-routes-manifest.json';
|
||||
exports.APP_PATH_ROUTES_MANIFEST = APP_PATH_ROUTES_MANIFEST;
|
||||
const BUILD_MANIFEST = 'build-manifest.json';
|
||||
exports.BUILD_MANIFEST = BUILD_MANIFEST;
|
||||
const APP_BUILD_MANIFEST = 'app-build-manifest.json';
|
||||
exports.APP_BUILD_MANIFEST = APP_BUILD_MANIFEST;
|
||||
const SUBRESOURCE_INTEGRITY_MANIFEST = 'subresource-integrity-manifest';
|
||||
exports.SUBRESOURCE_INTEGRITY_MANIFEST = SUBRESOURCE_INTEGRITY_MANIFEST;
|
||||
const FONT_LOADER_MANIFEST = 'font-loader-manifest';
|
||||
exports.FONT_LOADER_MANIFEST = FONT_LOADER_MANIFEST;
|
||||
const EXPORT_MARKER = 'export-marker.json';
|
||||
exports.EXPORT_MARKER = EXPORT_MARKER;
|
||||
const EXPORT_DETAIL = 'export-detail.json';
|
||||
exports.EXPORT_DETAIL = EXPORT_DETAIL;
|
||||
const PRERENDER_MANIFEST = 'prerender-manifest.json';
|
||||
exports.PRERENDER_MANIFEST = PRERENDER_MANIFEST;
|
||||
const ROUTES_MANIFEST = 'routes-manifest.json';
|
||||
exports.ROUTES_MANIFEST = ROUTES_MANIFEST;
|
||||
const IMAGES_MANIFEST = 'images-manifest.json';
|
||||
exports.IMAGES_MANIFEST = IMAGES_MANIFEST;
|
||||
const SERVER_FILES_MANIFEST = 'required-server-files.json';
|
||||
exports.SERVER_FILES_MANIFEST = SERVER_FILES_MANIFEST;
|
||||
const DEV_CLIENT_PAGES_MANIFEST = '_devPagesManifest.json';
|
||||
exports.DEV_CLIENT_PAGES_MANIFEST = DEV_CLIENT_PAGES_MANIFEST;
|
||||
const MIDDLEWARE_MANIFEST = 'middleware-manifest.json';
|
||||
exports.MIDDLEWARE_MANIFEST = MIDDLEWARE_MANIFEST;
|
||||
const DEV_MIDDLEWARE_MANIFEST = '_devMiddlewareManifest.json';
|
||||
exports.DEV_MIDDLEWARE_MANIFEST = DEV_MIDDLEWARE_MANIFEST;
|
||||
const REACT_LOADABLE_MANIFEST = 'react-loadable-manifest.json';
|
||||
exports.REACT_LOADABLE_MANIFEST = REACT_LOADABLE_MANIFEST;
|
||||
const FONT_MANIFEST = 'font-manifest.json';
|
||||
exports.FONT_MANIFEST = FONT_MANIFEST;
|
||||
const SERVER_DIRECTORY = 'server';
|
||||
exports.SERVER_DIRECTORY = SERVER_DIRECTORY;
|
||||
const CONFIG_FILES = [
|
||||
'next.config.js',
|
||||
'next.config.mjs'
|
||||
];
|
||||
exports.CONFIG_FILES = CONFIG_FILES;
|
||||
const BUILD_ID_FILE = 'BUILD_ID';
|
||||
exports.BUILD_ID_FILE = BUILD_ID_FILE;
|
||||
const BLOCKED_PAGES = [
|
||||
'/_document',
|
||||
'/_app',
|
||||
'/_error'
|
||||
];
|
||||
exports.BLOCKED_PAGES = BLOCKED_PAGES;
|
||||
const CLIENT_PUBLIC_FILES_PATH = 'public';
|
||||
exports.CLIENT_PUBLIC_FILES_PATH = CLIENT_PUBLIC_FILES_PATH;
|
||||
const CLIENT_STATIC_FILES_PATH = 'static';
|
||||
exports.CLIENT_STATIC_FILES_PATH = CLIENT_STATIC_FILES_PATH;
|
||||
const CLIENT_STATIC_FILES_RUNTIME = 'runtime';
|
||||
exports.CLIENT_STATIC_FILES_RUNTIME = CLIENT_STATIC_FILES_RUNTIME;
|
||||
const STRING_LITERAL_DROP_BUNDLE = '__NEXT_DROP_CLIENT_FILE__';
|
||||
exports.STRING_LITERAL_DROP_BUNDLE = STRING_LITERAL_DROP_BUNDLE;
|
||||
const MODERN_BROWSERSLIST_TARGET = [
|
||||
'chrome 64',
|
||||
'edge 79',
|
||||
'firefox 67',
|
||||
'opera 51',
|
||||
'safari 12',
|
||||
];
|
||||
exports.MODERN_BROWSERSLIST_TARGET = MODERN_BROWSERSLIST_TARGET;
|
||||
const NEXT_BUILTIN_DOCUMENT = '__NEXT_BUILTIN_DOCUMENT__';
|
||||
exports.NEXT_BUILTIN_DOCUMENT = NEXT_BUILTIN_DOCUMENT;
|
||||
const NEXT_CLIENT_SSR_ENTRY_SUFFIX = '.__sc_client__';
|
||||
exports.NEXT_CLIENT_SSR_ENTRY_SUFFIX = NEXT_CLIENT_SSR_ENTRY_SUFFIX;
|
||||
const FLIGHT_MANIFEST = 'flight-manifest';
|
||||
exports.FLIGHT_MANIFEST = FLIGHT_MANIFEST;
|
||||
const FLIGHT_SERVER_CSS_MANIFEST = 'flight-server-css-manifest';
|
||||
exports.FLIGHT_SERVER_CSS_MANIFEST = FLIGHT_SERVER_CSS_MANIFEST;
|
||||
const MIDDLEWARE_BUILD_MANIFEST = 'middleware-build-manifest';
|
||||
exports.MIDDLEWARE_BUILD_MANIFEST = MIDDLEWARE_BUILD_MANIFEST;
|
||||
const MIDDLEWARE_REACT_LOADABLE_MANIFEST = 'middleware-react-loadable-manifest';
|
||||
exports.MIDDLEWARE_REACT_LOADABLE_MANIFEST = MIDDLEWARE_REACT_LOADABLE_MANIFEST;
|
||||
const CLIENT_STATIC_FILES_RUNTIME_MAIN = `main`;
|
||||
exports.CLIENT_STATIC_FILES_RUNTIME_MAIN = CLIENT_STATIC_FILES_RUNTIME_MAIN;
|
||||
const CLIENT_STATIC_FILES_RUNTIME_MAIN_APP = `${CLIENT_STATIC_FILES_RUNTIME_MAIN}-app`;
|
||||
exports.CLIENT_STATIC_FILES_RUNTIME_MAIN_APP = CLIENT_STATIC_FILES_RUNTIME_MAIN_APP;
|
||||
const APP_CLIENT_INTERNALS = 'app-client-internals';
|
||||
exports.APP_CLIENT_INTERNALS = APP_CLIENT_INTERNALS;
|
||||
const CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH = `react-refresh`;
|
||||
exports.CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH = CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH;
|
||||
const CLIENT_STATIC_FILES_RUNTIME_AMP = `amp`;
|
||||
exports.CLIENT_STATIC_FILES_RUNTIME_AMP = CLIENT_STATIC_FILES_RUNTIME_AMP;
|
||||
const CLIENT_STATIC_FILES_RUNTIME_WEBPACK = `webpack`;
|
||||
exports.CLIENT_STATIC_FILES_RUNTIME_WEBPACK = CLIENT_STATIC_FILES_RUNTIME_WEBPACK;
|
||||
const CLIENT_STATIC_FILES_RUNTIME_POLYFILLS = 'polyfills';
|
||||
exports.CLIENT_STATIC_FILES_RUNTIME_POLYFILLS = CLIENT_STATIC_FILES_RUNTIME_POLYFILLS;
|
||||
const CLIENT_STATIC_FILES_RUNTIME_POLYFILLS_SYMBOL = Symbol(CLIENT_STATIC_FILES_RUNTIME_POLYFILLS);
|
||||
exports.CLIENT_STATIC_FILES_RUNTIME_POLYFILLS_SYMBOL = CLIENT_STATIC_FILES_RUNTIME_POLYFILLS_SYMBOL;
|
||||
const EDGE_RUNTIME_WEBPACK = 'edge-runtime-webpack';
|
||||
exports.EDGE_RUNTIME_WEBPACK = EDGE_RUNTIME_WEBPACK;
|
||||
const TEMPORARY_REDIRECT_STATUS = 307;
|
||||
exports.TEMPORARY_REDIRECT_STATUS = TEMPORARY_REDIRECT_STATUS;
|
||||
const PERMANENT_REDIRECT_STATUS = 308;
|
||||
exports.PERMANENT_REDIRECT_STATUS = PERMANENT_REDIRECT_STATUS;
|
||||
const STATIC_PROPS_ID = '__N_SSG';
|
||||
exports.STATIC_PROPS_ID = STATIC_PROPS_ID;
|
||||
const SERVER_PROPS_ID = '__N_SSP';
|
||||
exports.SERVER_PROPS_ID = SERVER_PROPS_ID;
|
||||
const GOOGLE_FONT_PROVIDER = 'https://fonts.googleapis.com/';
|
||||
exports.GOOGLE_FONT_PROVIDER = GOOGLE_FONT_PROVIDER;
|
||||
const OPTIMIZED_FONT_PROVIDERS = [
|
||||
{
|
||||
url: GOOGLE_FONT_PROVIDER,
|
||||
preconnect: 'https://fonts.gstatic.com'
|
||||
},
|
||||
{
|
||||
url: 'https://use.typekit.net',
|
||||
preconnect: 'https://use.typekit.net'
|
||||
},
|
||||
];
|
||||
exports.OPTIMIZED_FONT_PROVIDERS = OPTIMIZED_FONT_PROVIDERS;
|
||||
const DEFAULT_SERIF_FONT = {
|
||||
name: 'Times New Roman',
|
||||
xAvgCharWidth: 821,
|
||||
azAvgWidth: 854.3953488372093,
|
||||
unitsPerEm: 2048
|
||||
};
|
||||
exports.DEFAULT_SERIF_FONT = DEFAULT_SERIF_FONT;
|
||||
const DEFAULT_SANS_SERIF_FONT = {
|
||||
name: 'Arial',
|
||||
xAvgCharWidth: 904,
|
||||
azAvgWidth: 934.5116279069767,
|
||||
unitsPerEm: 2048
|
||||
};
|
||||
exports.DEFAULT_SANS_SERIF_FONT = DEFAULT_SANS_SERIF_FONT;
|
||||
const STATIC_STATUS_PAGES = [
|
||||
'/500'
|
||||
];
|
||||
exports.STATIC_STATUS_PAGES = STATIC_STATUS_PAGES;
|
||||
const TRACE_OUTPUT_VERSION = 1;
|
||||
exports.TRACE_OUTPUT_VERSION = TRACE_OUTPUT_VERSION;
|
||||
const RSC_MODULE_TYPES = {
|
||||
client: 'client',
|
||||
server: 'server'
|
||||
};
|
||||
exports.RSC_MODULE_TYPES = RSC_MODULE_TYPES;
|
||||
const EDGE_UNSUPPORTED_NODE_APIS = [
|
||||
'clearImmediate',
|
||||
'setImmediate',
|
||||
'BroadcastChannel',
|
||||
'Buffer',
|
||||
'ByteLengthQueuingStrategy',
|
||||
'CompressionStream',
|
||||
'CountQueuingStrategy',
|
||||
'DecompressionStream',
|
||||
'DomException',
|
||||
'MessageChannel',
|
||||
'MessageEvent',
|
||||
'MessagePort',
|
||||
'ReadableByteStreamController',
|
||||
'ReadableStreamBYOBRequest',
|
||||
'ReadableStreamDefaultController',
|
||||
'TextDecoderStream',
|
||||
'TextEncoderStream',
|
||||
'TransformStreamDefaultController',
|
||||
'WritableStreamDefaultController',
|
||||
];
|
||||
exports.EDGE_UNSUPPORTED_NODE_APIS = EDGE_UNSUPPORTED_NODE_APIS;
|
||||
|
||||
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
||||
Object.defineProperty(exports.default, '__esModule', { value: true });
|
||||
Object.assign(exports.default, exports);
|
||||
module.exports = exports.default;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=constants.js.map
|
||||
1
kitabcitab/node_modules/next/dist/shared/lib/constants.js.map
generated
vendored
Normal file
1
kitabcitab/node_modules/next/dist/shared/lib/constants.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
7
kitabcitab/node_modules/next/dist/shared/lib/dynamic-no-ssr.d.ts
generated
vendored
Normal file
7
kitabcitab/node_modules/next/dist/shared/lib/dynamic-no-ssr.d.ts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import React from 'react';
|
||||
export declare function suspense(): void;
|
||||
declare type Child = React.ReactElement<any, any>;
|
||||
export default function NoSSR({ children }: {
|
||||
children: Child;
|
||||
}): Child;
|
||||
export {};
|
||||
24
kitabcitab/node_modules/next/dist/shared/lib/dynamic-no-ssr.js
generated
vendored
Normal file
24
kitabcitab/node_modules/next/dist/shared/lib/dynamic-no-ssr.js
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
"use client";
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = NoSSR;
|
||||
exports.suspense = suspense;
|
||||
var _interop_require_default = require("@swc/helpers/lib/_interop_require_default.js").default;
|
||||
var _react = _interop_require_default(require("react"));
|
||||
var _noSsrError = require("./no-ssr-error");
|
||||
function NoSSR({ children }) {
|
||||
if (typeof window === 'undefined') {
|
||||
suspense();
|
||||
}
|
||||
return children;
|
||||
}
|
||||
|
||||
function suspense() {
|
||||
const error = new Error(_noSsrError.NEXT_DYNAMIC_NO_SSR_CODE);
|
||||
error.digest = _noSsrError.NEXT_DYNAMIC_NO_SSR_CODE;
|
||||
throw error;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=dynamic-no-ssr.js.map
|
||||
1
kitabcitab/node_modules/next/dist/shared/lib/dynamic-no-ssr.js.map
generated
vendored
Normal file
1
kitabcitab/node_modules/next/dist/shared/lib/dynamic-no-ssr.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../shared/lib/dynamic-no-ssr.ts"],"names":["NoSSR","suspense","children","window","error","Error","NEXT_DYNAMIC_NO_SSR_CODE","digest"],"mappings":"AAAA;;;;kBAawBA,KAAK;QARbC,QAAQ,GAARA,QAAQ;;AAHN,IAAA,MAAO,oCAAP,OAAO,EAAA;AACgB,IAAA,WAAgB,WAAhB,gBAAgB,CAAA;AAU1C,SAASD,KAAK,CAAC,EAAEE,QAAQ,CAAA,EAAuB,EAAS;IACtE,IAAI,OAAOC,MAAM,KAAK,WAAW,EAAE;QACjCF,QAAQ,EAAE;KACX;IAED,OAAOC,QAAQ,CAAA;CAChB;AAnBD,YAAY;AAKL,SAASD,QAAQ,GAAG;IACzB,MAAMG,KAAK,GAAG,IAAIC,KAAK,CAACC,WAAwB,yBAAA,CAAC,AAChD;IAAA,AAACF,KAAK,CAASG,MAAM,GAAGD,WAAwB,yBAAA;IACjD,MAAMF,KAAK,CAAA;CACZ"}
|
||||
39
kitabcitab/node_modules/next/dist/shared/lib/dynamic.d.ts
generated
vendored
Normal file
39
kitabcitab/node_modules/next/dist/shared/lib/dynamic.d.ts
generated
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
import React from 'react';
|
||||
declare type ComponentModule<P = {}> = {
|
||||
default: React.ComponentType<P>;
|
||||
};
|
||||
export declare type LoaderComponent<P = {}> = Promise<React.ComponentType<P> | ComponentModule<P>>;
|
||||
declare type NormalizedLoader<P = {}> = () => Promise<{
|
||||
default: React.ComponentType<P>;
|
||||
}>;
|
||||
export declare type Loader<P = {}> = (() => LoaderComponent<P>) | LoaderComponent<P>;
|
||||
export declare type LoaderMap = {
|
||||
[module: string]: () => Loader<any>;
|
||||
};
|
||||
export declare type LoadableGeneratedOptions = {
|
||||
webpack?(): any;
|
||||
modules?(): LoaderMap;
|
||||
};
|
||||
export declare type DynamicOptionsLoadingProps = {
|
||||
error?: Error | null;
|
||||
isLoading?: boolean;
|
||||
pastDelay?: boolean;
|
||||
retry?: () => void;
|
||||
timedOut?: boolean;
|
||||
};
|
||||
export declare type DynamicOptions<P = {}> = LoadableGeneratedOptions & {
|
||||
loading?: (loadingProps: DynamicOptionsLoadingProps) => JSX.Element | null;
|
||||
loader?: Loader<P> | LoaderMap;
|
||||
loadableGenerated?: LoadableGeneratedOptions;
|
||||
ssr?: boolean;
|
||||
/**
|
||||
* @deprecated `suspense` prop is not required anymore
|
||||
*/
|
||||
suspense?: boolean;
|
||||
};
|
||||
export declare type LoadableOptions<P = {}> = DynamicOptions<P>;
|
||||
export declare type LoadableFn<P = {}> = (opts: LoadableOptions<P>) => React.ComponentType<P>;
|
||||
export declare type LoadableComponent<P = {}> = React.ComponentType<P>;
|
||||
export declare function noSSR<P = {}>(LoadableInitializer: NormalizedLoader<P>, loadableOptions: DynamicOptions<P>): React.ComponentType<P>;
|
||||
export default function dynamic<P = {}>(dynamicOptions: DynamicOptions<P> | Loader<P>, options?: DynamicOptions<P>): React.ComponentType<P>;
|
||||
export {};
|
||||
95
kitabcitab/node_modules/next/dist/shared/lib/dynamic.js
generated
vendored
Normal file
95
kitabcitab/node_modules/next/dist/shared/lib/dynamic.js
generated
vendored
Normal file
@@ -0,0 +1,95 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = dynamic;
|
||||
exports.noSSR = noSSR;
|
||||
var _extends = require("@swc/helpers/lib/_extends.js").default;
|
||||
var _interop_require_default = require("@swc/helpers/lib/_interop_require_default.js").default;
|
||||
var _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
|
||||
var _react = _interop_require_wildcard(require("react"));
|
||||
var _loadable = _interop_require_default(require("./loadable"));
|
||||
var _dynamicNoSsr = _interop_require_default(require("./dynamic-no-ssr"));
|
||||
function dynamic(dynamicOptions, options) {
|
||||
let loadableFn = _loadable.default;
|
||||
let loadableOptions = {
|
||||
// A loading component is not required, so we default it
|
||||
loading: ({ error , isLoading , pastDelay })=>{
|
||||
if (!pastDelay) return null;
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
if (isLoading) {
|
||||
return null;
|
||||
}
|
||||
if (error) {
|
||||
return /*#__PURE__*/ _react.default.createElement("p", null, error.message, /*#__PURE__*/ _react.default.createElement("br", null), error.stack);
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
};
|
||||
// Support for direct import(), eg: dynamic(import('../hello-world'))
|
||||
// Note that this is only kept for the edge case where someone is passing in a promise as first argument
|
||||
// The react-loadable babel plugin will turn dynamic(import('../hello-world')) into dynamic(() => import('../hello-world'))
|
||||
// To make sure we don't execute the import without rendering first
|
||||
if (dynamicOptions instanceof Promise) {
|
||||
loadableOptions.loader = ()=>dynamicOptions;
|
||||
// Support for having import as a function, eg: dynamic(() => import('../hello-world'))
|
||||
} else if (typeof dynamicOptions === 'function') {
|
||||
loadableOptions.loader = dynamicOptions;
|
||||
// Support for having first argument being options, eg: dynamic({loader: import('../hello-world')})
|
||||
} else if (typeof dynamicOptions === 'object') {
|
||||
loadableOptions = _extends({}, loadableOptions, dynamicOptions);
|
||||
}
|
||||
// Support for passing options, eg: dynamic(import('../hello-world'), {loading: () => <p>Loading something</p>})
|
||||
loadableOptions = _extends({}, loadableOptions, options);
|
||||
const loaderFn = loadableOptions.loader;
|
||||
const loader = ()=>loaderFn().then(convertModule);
|
||||
// coming from build/babel/plugins/react-loadable-plugin.js
|
||||
if (loadableOptions.loadableGenerated) {
|
||||
loadableOptions = _extends({}, loadableOptions, loadableOptions.loadableGenerated, {
|
||||
loader
|
||||
});
|
||||
delete loadableOptions.loadableGenerated;
|
||||
}
|
||||
// support for disabling server side rendering, eg: dynamic(() => import('../hello-world'), {ssr: false}).
|
||||
if (typeof loadableOptions.ssr === 'boolean') {
|
||||
if (!loadableOptions.ssr) {
|
||||
delete loadableOptions.ssr;
|
||||
return noSSR(loader, loadableOptions);
|
||||
}
|
||||
delete loadableOptions.ssr;
|
||||
}
|
||||
return loadableFn(loadableOptions);
|
||||
}
|
||||
// Normalize loader to return the module as form { default: Component } for `React.lazy`.
|
||||
// Also for backward compatible since next/dynamic allows to resolve a component directly with loader
|
||||
// Client component reference proxy need to be converted to a module.
|
||||
function convertModule(mod) {
|
||||
return {
|
||||
default: mod.default || mod
|
||||
};
|
||||
}
|
||||
function noSSR(LoadableInitializer, loadableOptions) {
|
||||
// Removing webpack and modules means react-loadable won't try preloading
|
||||
delete loadableOptions.webpack;
|
||||
delete loadableOptions.modules;
|
||||
const NoSSRComponent = /*#__PURE__*/ (0, _react).lazy(LoadableInitializer);
|
||||
const Loading = loadableOptions.loading;
|
||||
const fallback = /*#__PURE__*/ _react.default.createElement(Loading, {
|
||||
error: null,
|
||||
isLoading: true,
|
||||
pastDelay: false,
|
||||
timedOut: false
|
||||
});
|
||||
return (props)=>/*#__PURE__*/ _react.default.createElement(_react.Suspense, {
|
||||
fallback: fallback
|
||||
}, /*#__PURE__*/ _react.default.createElement(_dynamicNoSsr.default, null, /*#__PURE__*/ _react.default.createElement(NoSSRComponent, Object.assign({}, props))));
|
||||
}
|
||||
|
||||
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
||||
Object.defineProperty(exports.default, '__esModule', { value: true });
|
||||
Object.assign(exports.default, exports);
|
||||
module.exports = exports.default;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=dynamic.js.map
|
||||
1
kitabcitab/node_modules/next/dist/shared/lib/dynamic.js.map
generated
vendored
Normal file
1
kitabcitab/node_modules/next/dist/shared/lib/dynamic.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../shared/lib/dynamic.tsx"],"names":["dynamic","noSSR","dynamicOptions","options","loadableFn","Loadable","loadableOptions","loading","error","isLoading","pastDelay","process","env","NODE_ENV","p","message","br","stack","Promise","loader","loaderFn","then","convertModule","loadableGenerated","ssr","mod","default","LoadableInitializer","webpack","modules","NoSSRComponent","lazy","Loading","fallback","timedOut","props","Suspense","NoSSR"],"mappings":"AAAA;;;;kBAmFwBA,OAAO;QAxBfC,KAAK,GAALA,KAAK;;;;AA3DiB,IAAA,MAAO,qCAAP,OAAO,EAAA;AACxB,IAAA,SAAY,oCAAZ,YAAY,EAAA;AACf,IAAA,aAAkB,oCAAlB,kBAAkB,EAAA;AAiFrB,SAASD,OAAO,CAC7BE,cAA6C,EAC7CC,OAA2B,EACH;IACxB,IAAIC,UAAU,GAAkBC,SAAQ,QAAA;IAExC,IAAIC,eAAe,GAAuB;QACxC,wDAAwD;QACxDC,OAAO,EAAE,CAAC,EAAEC,KAAK,CAAA,EAAEC,SAAS,CAAA,EAAEC,SAAS,CAAA,EAAE,GAAK;YAC5C,IAAI,CAACA,SAAS,EAAE,OAAO,IAAI,CAAA;YAC3B,IAAIC,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,YAAY,EAAE;gBACzC,IAAIJ,SAAS,EAAE;oBACb,OAAO,IAAI,CAAA;iBACZ;gBACD,IAAID,KAAK,EAAE;oBACT,qBACE,6BAACM,GAAC,QACCN,KAAK,CAACO,OAAO,gBACd,6BAACC,IAAE,OAAG,EACLR,KAAK,CAACS,KAAK,CACV,CACL;iBACF;aACF;YACD,OAAO,IAAI,CAAA;SACZ;KACF;IAED,qEAAqE;IACrE,wGAAwG;IACxG,2HAA2H;IAC3H,mEAAmE;IACnE,IAAIf,cAAc,YAAYgB,OAAO,EAAE;QACrCZ,eAAe,CAACa,MAAM,GAAG,IAAMjB,cAAc;IAC7C,uFAAuF;KACxF,MAAM,IAAI,OAAOA,cAAc,KAAK,UAAU,EAAE;QAC/CI,eAAe,CAACa,MAAM,GAAGjB,cAAc;IACvC,mGAAmG;KACpG,MAAM,IAAI,OAAOA,cAAc,KAAK,QAAQ,EAAE;QAC7CI,eAAe,GAAG,aAAKA,eAAe,EAAKJ,cAAc,CAAE;KAC5D;IAED,gHAAgH;IAChHI,eAAe,GAAG,aAAKA,eAAe,EAAKH,OAAO,CAAE;IAEpD,MAAMiB,QAAQ,GAAGd,eAAe,CAACa,MAAM,AAA4B;IACnE,MAAMA,MAAM,GAAG,IAAMC,QAAQ,EAAE,CAACC,IAAI,CAACC,aAAa,CAAC;IAEnD,2DAA2D;IAC3D,IAAIhB,eAAe,CAACiB,iBAAiB,EAAE;QACrCjB,eAAe,GAAG,aACbA,eAAe,EACfA,eAAe,CAACiB,iBAAiB;YACpCJ,MAAM;UACP;QACD,OAAOb,eAAe,CAACiB,iBAAiB;KACzC;IAED,0GAA0G;IAC1G,IAAI,OAAOjB,eAAe,CAACkB,GAAG,KAAK,SAAS,EAAE;QAC5C,IAAI,CAAClB,eAAe,CAACkB,GAAG,EAAE;YACxB,OAAOlB,eAAe,CAACkB,GAAG;YAC1B,OAAOvB,KAAK,CAACkB,MAAM,EAAEb,eAAe,CAAC,CAAA;SACtC;QACD,OAAOA,eAAe,CAACkB,GAAG;KAC3B;IAED,OAAOpB,UAAU,CAACE,eAAe,CAAC,CAAA;CACnC;AAtHD,yFAAyF;AACzF,qGAAqG;AACrG,qEAAqE;AACrE,SAASgB,aAAa,CAAIG,GAAgD,EAAE;IAC1E,OAAO;QAAEC,OAAO,EAAE,AAACD,GAAG,CAAwBC,OAAO,IAAID,GAAG;KAAE,CAAA;CAC/D;AAqBM,SAASxB,KAAK,CACnB0B,mBAAwC,EACxCrB,eAAkC,EACV;IACxB,yEAAyE;IACzE,OAAOA,eAAe,CAACsB,OAAO;IAC9B,OAAOtB,eAAe,CAACuB,OAAO;IAE9B,MAAMC,cAAc,iBAAGC,CAAAA,GAAAA,MAAI,AAAqB,CAAA,KAArB,CAACJ,mBAAmB,CAAC;IAEhD,MAAMK,OAAO,GAAG1B,eAAe,CAACC,OAAO,AAAC;IACxC,MAAM0B,QAAQ,iBACZ,6BAACD,OAAO;QAACxB,KAAK,EAAE,IAAI;QAAEC,SAAS,EAATA,IAAS;QAACC,SAAS,EAAE,KAAK;QAAEwB,QAAQ,EAAE,KAAK;MAAI,AACtE;IAED,OAAO,CAACC,KAAU,iBAChB,6BAACC,MAAQ,SAAA;YAACH,QAAQ,EAAEA,QAAQ;yBAC1B,6BAACI,aAAK,QAAA,sBACJ,6BAACP,cAAc,oBAAKK,KAAK,EAAI,CACvB,CACC,AACZ,CAAA;CACF"}
|
||||
1
kitabcitab/node_modules/next/dist/shared/lib/escape-regexp.d.ts
generated
vendored
Normal file
1
kitabcitab/node_modules/next/dist/shared/lib/escape-regexp.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export declare function escapeStringRegexp(str: string): string;
|
||||
17
kitabcitab/node_modules/next/dist/shared/lib/escape-regexp.js
generated
vendored
Normal file
17
kitabcitab/node_modules/next/dist/shared/lib/escape-regexp.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.escapeStringRegexp = escapeStringRegexp;
|
||||
// regexp is based on https://github.com/sindresorhus/escape-string-regexp
|
||||
const reHasRegExp = /[|\\{}()[\]^$+*?.-]/;
|
||||
const reReplaceRegExp = /[|\\{}()[\]^$+*?.-]/g;
|
||||
function escapeStringRegexp(str) {
|
||||
// see also: https://github.com/lodash/lodash/blob/2da024c3b4f9947a48517639de7560457cd4ec6c/escapeRegExp.js#L23
|
||||
if (reHasRegExp.test(str)) {
|
||||
return str.replace(reReplaceRegExp, '\\$&');
|
||||
}
|
||||
return str;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=escape-regexp.js.map
|
||||
1
kitabcitab/node_modules/next/dist/shared/lib/escape-regexp.js.map
generated
vendored
Normal file
1
kitabcitab/node_modules/next/dist/shared/lib/escape-regexp.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../shared/lib/escape-regexp.ts"],"names":["escapeStringRegexp","reHasRegExp","reReplaceRegExp","str","test","replace"],"mappings":"AACA;;;;QAGgBA,kBAAkB,GAAlBA,kBAAkB;AAJlC,0EAA0E;AAC1E,MAAMC,WAAW,wBAAwB;AACzC,MAAMC,eAAe,yBAAyB;AAEvC,SAASF,kBAAkB,CAACG,GAAW,EAAE;IAC9C,+GAA+G;IAC/G,IAAIF,WAAW,CAACG,IAAI,CAACD,GAAG,CAAC,EAAE;QACzB,OAAOA,GAAG,CAACE,OAAO,CAACH,eAAe,EAAE,MAAM,CAAC,CAAA;KAC5C;IACD,OAAOC,GAAG,CAAA;CACX"}
|
||||
7
kitabcitab/node_modules/next/dist/shared/lib/flatten.d.ts
generated
vendored
Normal file
7
kitabcitab/node_modules/next/dist/shared/lib/flatten.d.ts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
declare type Flattened<T> = T extends Array<infer U> ? Flattened<U> : T;
|
||||
/**
|
||||
* Returns a new list by pulling every item out of it (and all its sub-arrays)
|
||||
* and putting them in a new array, depth-first. Stolen from Ramda.
|
||||
*/
|
||||
export declare function flatten<T extends readonly any[]>(list: T): Flattened<T>[];
|
||||
export {};
|
||||
25
kitabcitab/node_modules/next/dist/shared/lib/flatten.js
generated
vendored
Normal file
25
kitabcitab/node_modules/next/dist/shared/lib/flatten.js
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.flatten = flatten;
|
||||
function flatten(list) {
|
||||
let jlen, j, value, idx = 0, result = [];
|
||||
while(idx < list.length){
|
||||
if (Array.isArray(list[idx])) {
|
||||
value = flatten(list[idx]);
|
||||
j = 0;
|
||||
jlen = value.length;
|
||||
while(j < jlen){
|
||||
result[result.length] = value[j];
|
||||
j += 1;
|
||||
}
|
||||
} else {
|
||||
result[result.length] = list[idx];
|
||||
}
|
||||
idx += 1;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=flatten.js.map
|
||||
1
kitabcitab/node_modules/next/dist/shared/lib/flatten.js.map
generated
vendored
Normal file
1
kitabcitab/node_modules/next/dist/shared/lib/flatten.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../shared/lib/flatten.ts"],"names":["flatten","list","jlen","j","value","idx","result","length","Array","isArray"],"mappings":"AAAA;;;;QAMgBA,OAAO,GAAPA,OAAO;AAAhB,SAASA,OAAO,CAA2BC,IAAO,EAAkB;IACzE,IAAIC,IAAI,AAAQ,EACdC,CAAC,AAAQ,EACTC,KAAK,EACLC,GAAG,GAAG,CAAC,EACPC,MAAM,GAAG,EAAE;IAEb,MAAOD,GAAG,GAAGJ,IAAI,CAACM,MAAM,CAAE;QACxB,IAAIC,KAAK,CAACC,OAAO,CAACR,IAAI,CAACI,GAAG,CAAC,CAAC,EAAE;YAC5BD,KAAK,GAAGJ,OAAO,CAACC,IAAI,CAACI,GAAG,CAAC,CAAC;YAC1BF,CAAC,GAAG,CAAC;YACLD,IAAI,GAAGE,KAAK,CAACG,MAAM;YACnB,MAAOJ,CAAC,GAAGD,IAAI,CAAE;gBACfI,MAAM,CAACA,MAAM,CAACC,MAAM,CAAC,GAAGH,KAAK,CAACD,CAAC,CAAC;gBAChCA,CAAC,IAAI,CAAC;aACP;SACF,MAAM;YACLG,MAAM,CAACA,MAAM,CAACC,MAAM,CAAC,GAAGN,IAAI,CAACI,GAAG,CAAC;SAClC;QACDA,GAAG,IAAI,CAAC;KACT;IAED,OAAOC,MAAM,CAAkB;CAChC"}
|
||||
11
kitabcitab/node_modules/next/dist/shared/lib/get-hostname.d.ts
generated
vendored
Normal file
11
kitabcitab/node_modules/next/dist/shared/lib/get-hostname.d.ts
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
/**
|
||||
* Takes an object with a hostname property (like a parsed URL) and some
|
||||
* headers that may contain Host and returns the preferred hostname.
|
||||
* @param parsed An object containing a hostname property.
|
||||
* @param headers A dictionary with headers containing a `host`.
|
||||
*/
|
||||
export declare function getHostname(parsed: {
|
||||
hostname?: string | null;
|
||||
}, headers?: {
|
||||
[key: string]: string | string[] | undefined;
|
||||
}): string | undefined;
|
||||
11
kitabcitab/node_modules/next/dist/shared/lib/get-hostname.js
generated
vendored
Normal file
11
kitabcitab/node_modules/next/dist/shared/lib/get-hostname.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.getHostname = getHostname;
|
||||
function getHostname(parsed, headers) {
|
||||
var ref;
|
||||
return (ref = !Array.isArray(headers == null ? void 0 : headers.host) && (headers == null ? void 0 : headers.host) || parsed.hostname) == null ? void 0 : ref.split(':')[0].toLowerCase();
|
||||
}
|
||||
|
||||
//# sourceMappingURL=get-hostname.js.map
|
||||
1
kitabcitab/node_modules/next/dist/shared/lib/get-hostname.js.map
generated
vendored
Normal file
1
kitabcitab/node_modules/next/dist/shared/lib/get-hostname.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../shared/lib/get-hostname.ts"],"names":["getHostname","parsed","headers","Array","isArray","host","hostname","split","toLowerCase"],"mappings":"AAMA;;;;QAAgBA,WAAW,GAAXA,WAAW;AAApB,SAASA,WAAW,CACzBC,MAAoC,EACpCC,OAA0D,EAC1D;QACO,GAAqE;IAA5E,OAAO,CAAA,GAAqE,GAApE,AAAC,CAACC,KAAK,CAACC,OAAO,CAACF,OAAO,QAAM,GAAbA,KAAAA,CAAa,GAAbA,OAAO,CAAEG,IAAI,CAAC,IAAIH,CAAAA,OAAO,QAAM,GAAbA,KAAAA,CAAa,GAAbA,OAAO,CAAEG,IAAI,CAAA,IAAKJ,MAAM,CAACK,QAAQ,SAClE,GADF,KAAA,CACE,GADF,GAAqE,CACxEC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CACdC,WAAW,EAAE,CAAA;CACjB"}
|
||||
10
kitabcitab/node_modules/next/dist/shared/lib/head-manager-context.d.ts
generated
vendored
Normal file
10
kitabcitab/node_modules/next/dist/shared/lib/head-manager-context.d.ts
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
import React from 'react';
|
||||
export declare const HeadManagerContext: React.Context<{
|
||||
updateHead?: (state: any) => void;
|
||||
mountedInstances?: any;
|
||||
updateScripts?: (state: any) => void;
|
||||
scripts?: any;
|
||||
getIsSsr?: () => boolean;
|
||||
appDir?: boolean;
|
||||
nonce?: string;
|
||||
}>;
|
||||
14
kitabcitab/node_modules/next/dist/shared/lib/head-manager-context.js
generated
vendored
Normal file
14
kitabcitab/node_modules/next/dist/shared/lib/head-manager-context.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.HeadManagerContext = void 0;
|
||||
var _interop_require_default = require("@swc/helpers/lib/_interop_require_default.js").default;
|
||||
var _react = _interop_require_default(require("react"));
|
||||
const HeadManagerContext = _react.default.createContext({});
|
||||
exports.HeadManagerContext = HeadManagerContext;
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
HeadManagerContext.displayName = 'HeadManagerContext';
|
||||
}
|
||||
|
||||
//# sourceMappingURL=head-manager-context.js.map
|
||||
1
kitabcitab/node_modules/next/dist/shared/lib/head-manager-context.js.map
generated
vendored
Normal file
1
kitabcitab/node_modules/next/dist/shared/lib/head-manager-context.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../shared/lib/head-manager-context.ts"],"names":["HeadManagerContext","React","createContext","process","env","NODE_ENV","displayName"],"mappings":"AAAA;;;;;;AAAkB,IAAA,MAAO,oCAAP,OAAO,EAAA;AAElB,MAAMA,kBAAkB,GAU1BC,MAAK,QAAA,CAACC,aAAa,CAAC,EAAE,CAAC;QAVfF,kBAAkB,GAAlBA,kBAAkB;AAY/B,IAAIG,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,YAAY,EAAE;IACzCL,kBAAkB,CAACM,WAAW,GAAG,oBAAoB;CACtD"}
|
||||
10
kitabcitab/node_modules/next/dist/shared/lib/head.d.ts
generated
vendored
Normal file
10
kitabcitab/node_modules/next/dist/shared/lib/head.d.ts
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
import React from 'react';
|
||||
export declare function defaultHead(inAmpMode?: boolean): JSX.Element[];
|
||||
/**
|
||||
* This component injects elements to `<head>` of your page.
|
||||
* To avoid duplicated `tags` in `<head>` you can use the `key` property, which will make sure every tag is only rendered once.
|
||||
*/
|
||||
declare function Head({ children }: {
|
||||
children: React.ReactNode;
|
||||
}): JSX.Element;
|
||||
export default Head;
|
||||
167
kitabcitab/node_modules/next/dist/shared/lib/head.js
generated
vendored
Normal file
167
kitabcitab/node_modules/next/dist/shared/lib/head.js
generated
vendored
Normal file
@@ -0,0 +1,167 @@
|
||||
"use client";
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.defaultHead = defaultHead;
|
||||
exports.default = void 0;
|
||||
var _extends = require("@swc/helpers/lib/_extends.js").default;
|
||||
var _interop_require_default = require("@swc/helpers/lib/_interop_require_default.js").default;
|
||||
var _interop_require_wildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
|
||||
var _react = _interop_require_wildcard(require("react"));
|
||||
var _sideEffect = _interop_require_default(require("./side-effect"));
|
||||
var _ampContext = require("./amp-context");
|
||||
var _headManagerContext = require("./head-manager-context");
|
||||
var _ampMode = require("./amp-mode");
|
||||
var _warnOnce = require("./utils/warn-once");
|
||||
|
||||
function defaultHead(inAmpMode = false) {
|
||||
const head = [
|
||||
/*#__PURE__*/ _react.default.createElement("meta", {
|
||||
charSet: "utf-8"
|
||||
})
|
||||
];
|
||||
if (!inAmpMode) {
|
||||
head.push(/*#__PURE__*/ _react.default.createElement("meta", {
|
||||
name: "viewport",
|
||||
content: "width=device-width"
|
||||
}));
|
||||
}
|
||||
return head;
|
||||
}
|
||||
function onlyReactElement(list, child) {
|
||||
// React children can be "string" or "number" in this case we ignore them for backwards compat
|
||||
if (typeof child === 'string' || typeof child === 'number') {
|
||||
return list;
|
||||
}
|
||||
// Adds support for React.Fragment
|
||||
if (child.type === _react.default.Fragment) {
|
||||
return list.concat(_react.default.Children.toArray(child.props.children).reduce((fragmentList, fragmentChild)=>{
|
||||
if (typeof fragmentChild === 'string' || typeof fragmentChild === 'number') {
|
||||
return fragmentList;
|
||||
}
|
||||
return fragmentList.concat(fragmentChild);
|
||||
}, []));
|
||||
}
|
||||
return list.concat(child);
|
||||
}
|
||||
const METATYPES = [
|
||||
'name',
|
||||
'httpEquiv',
|
||||
'charSet',
|
||||
'itemProp'
|
||||
];
|
||||
/*
|
||||
returns a function for filtering head child elements
|
||||
which shouldn't be duplicated, like <title/>
|
||||
Also adds support for deduplicated `key` properties
|
||||
*/ function unique() {
|
||||
const keys = new Set();
|
||||
const tags = new Set();
|
||||
const metaTypes = new Set();
|
||||
const metaCategories = {};
|
||||
return (h)=>{
|
||||
let isUnique = true;
|
||||
let hasKey = false;
|
||||
if (h.key && typeof h.key !== 'number' && h.key.indexOf('$') > 0) {
|
||||
hasKey = true;
|
||||
const key = h.key.slice(h.key.indexOf('$') + 1);
|
||||
if (keys.has(key)) {
|
||||
isUnique = false;
|
||||
} else {
|
||||
keys.add(key);
|
||||
}
|
||||
}
|
||||
// eslint-disable-next-line default-case
|
||||
switch(h.type){
|
||||
case 'title':
|
||||
case 'base':
|
||||
if (tags.has(h.type)) {
|
||||
isUnique = false;
|
||||
} else {
|
||||
tags.add(h.type);
|
||||
}
|
||||
break;
|
||||
case 'meta':
|
||||
for(let i = 0, len = METATYPES.length; i < len; i++){
|
||||
const metatype = METATYPES[i];
|
||||
if (!h.props.hasOwnProperty(metatype)) continue;
|
||||
if (metatype === 'charSet') {
|
||||
if (metaTypes.has(metatype)) {
|
||||
isUnique = false;
|
||||
} else {
|
||||
metaTypes.add(metatype);
|
||||
}
|
||||
} else {
|
||||
const category = h.props[metatype];
|
||||
const categories = metaCategories[metatype] || new Set();
|
||||
if ((metatype !== 'name' || !hasKey) && categories.has(category)) {
|
||||
isUnique = false;
|
||||
} else {
|
||||
categories.add(category);
|
||||
metaCategories[metatype] = categories;
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
return isUnique;
|
||||
};
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param headChildrenElements List of children of <Head>
|
||||
*/ function reduceComponents(headChildrenElements, props) {
|
||||
const { inAmpMode } = props;
|
||||
return headChildrenElements.reduce(onlyReactElement, []).reverse().concat(defaultHead(inAmpMode).reverse()).filter(unique()).reverse().map((c, i)=>{
|
||||
const key = c.key || i;
|
||||
if (process.env.NODE_ENV !== 'development' && process.env.__NEXT_OPTIMIZE_FONTS && !inAmpMode) {
|
||||
if (c.type === 'link' && c.props['href'] && // TODO(prateekbh@): Replace this with const from `constants` when the tree shaking works.
|
||||
[
|
||||
'https://fonts.googleapis.com/css',
|
||||
'https://use.typekit.net/'
|
||||
].some((url)=>c.props['href'].startsWith(url))) {
|
||||
const newProps = _extends({}, c.props || {});
|
||||
newProps['data-href'] = newProps['href'];
|
||||
newProps['href'] = undefined;
|
||||
// Add this attribute to make it easy to identify optimized tags
|
||||
newProps['data-optimized-fonts'] = true;
|
||||
return /*#__PURE__*/ _react.default.cloneElement(c, newProps);
|
||||
}
|
||||
}
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
// omit JSON-LD structured data snippets from the warning
|
||||
if (c.type === 'script' && c.props['type'] !== 'application/ld+json') {
|
||||
const srcMessage = c.props['src'] ? `<script> tag with src="${c.props['src']}"` : `inline <script>`;
|
||||
(0, _warnOnce).warnOnce(`Do not add <script> tags using next/head (see ${srcMessage}). Use next/script instead. \nSee more info here: https://nextjs.org/docs/messages/no-script-tags-in-head-component`);
|
||||
} else if (c.type === 'link' && c.props['rel'] === 'stylesheet') {
|
||||
(0, _warnOnce).warnOnce(`Do not add stylesheets using next/head (see <link rel="stylesheet"> tag with href="${c.props['href']}"). Use Document instead. \nSee more info here: https://nextjs.org/docs/messages/no-stylesheets-in-head-component`);
|
||||
}
|
||||
}
|
||||
return /*#__PURE__*/ _react.default.cloneElement(c, {
|
||||
key
|
||||
});
|
||||
});
|
||||
}
|
||||
/**
|
||||
* This component injects elements to `<head>` of your page.
|
||||
* To avoid duplicated `tags` in `<head>` you can use the `key` property, which will make sure every tag is only rendered once.
|
||||
*/ function Head({ children }) {
|
||||
const ampState = (0, _react).useContext(_ampContext.AmpStateContext);
|
||||
const headManager = (0, _react).useContext(_headManagerContext.HeadManagerContext);
|
||||
return /*#__PURE__*/ _react.default.createElement(_sideEffect.default, {
|
||||
reduceComponentsToState: reduceComponents,
|
||||
headManager: headManager,
|
||||
inAmpMode: (0, _ampMode).isInAmpMode(ampState)
|
||||
}, children);
|
||||
}
|
||||
var _default = Head;
|
||||
exports.default = _default;
|
||||
|
||||
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
||||
Object.defineProperty(exports.default, '__esModule', { value: true });
|
||||
Object.assign(exports.default, exports);
|
||||
module.exports = exports.default;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=head.js.map
|
||||
1
kitabcitab/node_modules/next/dist/shared/lib/head.js.map
generated
vendored
Normal file
1
kitabcitab/node_modules/next/dist/shared/lib/head.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
5
kitabcitab/node_modules/next/dist/shared/lib/hooks-client-context.d.ts
generated
vendored
Normal file
5
kitabcitab/node_modules/next/dist/shared/lib/hooks-client-context.d.ts
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
/// <reference types="react" />
|
||||
export declare const SearchParamsContext: import("react").Context<URLSearchParams | null>;
|
||||
export declare const PathnameContext: import("react").Context<string | null>;
|
||||
export declare const ParamsContext: import("react").Context<any>;
|
||||
export declare const LayoutSegmentsContext: import("react").Context<any>;
|
||||
24
kitabcitab/node_modules/next/dist/shared/lib/hooks-client-context.js
generated
vendored
Normal file
24
kitabcitab/node_modules/next/dist/shared/lib/hooks-client-context.js
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
"use client";
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.LayoutSegmentsContext = exports.ParamsContext = exports.PathnameContext = exports.SearchParamsContext = void 0;
|
||||
var _react = require("react");
|
||||
|
||||
const SearchParamsContext = (0, _react).createContext(null);
|
||||
exports.SearchParamsContext = SearchParamsContext;
|
||||
const PathnameContext = (0, _react).createContext(null);
|
||||
exports.PathnameContext = PathnameContext;
|
||||
const ParamsContext = (0, _react).createContext(null);
|
||||
exports.ParamsContext = ParamsContext;
|
||||
const LayoutSegmentsContext = (0, _react).createContext(null);
|
||||
exports.LayoutSegmentsContext = LayoutSegmentsContext;
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
SearchParamsContext.displayName = 'SearchParamsContext';
|
||||
PathnameContext.displayName = 'PathnameContext';
|
||||
ParamsContext.displayName = 'ParamsContext';
|
||||
LayoutSegmentsContext.displayName = 'LayoutSegmentsContext';
|
||||
}
|
||||
|
||||
//# sourceMappingURL=hooks-client-context.js.map
|
||||
1
kitabcitab/node_modules/next/dist/shared/lib/hooks-client-context.js.map
generated
vendored
Normal file
1
kitabcitab/node_modules/next/dist/shared/lib/hooks-client-context.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../shared/lib/hooks-client-context.ts"],"names":["SearchParamsContext","createContext","PathnameContext","ParamsContext","LayoutSegmentsContext","process","env","NODE_ENV","displayName"],"mappings":"AAAA;;;;;AAE8B,IAAA,MAAO,WAAP,OAAO,CAAA;AAFrC,YAAY;AAIL,MAAMA,mBAAmB,GAAGC,CAAAA,GAAAA,MAAa,AAA8B,CAAA,cAA9B,CAAyB,IAAI,CAAC;QAAjED,mBAAmB,GAAnBA,mBAAmB;AACzB,MAAME,eAAe,GAAGD,CAAAA,GAAAA,MAAa,AAAqB,CAAA,cAArB,CAAgB,IAAI,CAAC;QAApDC,eAAe,GAAfA,eAAe;AACrB,MAAMC,aAAa,GAAGF,CAAAA,GAAAA,MAAa,AAAa,CAAA,cAAb,CAAC,IAAI,CAAQ;QAA1CE,aAAa,GAAbA,aAAa;AACnB,MAAMC,qBAAqB,GAAGH,CAAAA,GAAAA,MAAa,AAAa,CAAA,cAAb,CAAC,IAAI,CAAQ;QAAlDG,qBAAqB,GAArBA,qBAAqB;AAElC,IAAIC,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,YAAY,EAAE;IACzCP,mBAAmB,CAACQ,WAAW,GAAG,qBAAqB;IACvDN,eAAe,CAACM,WAAW,GAAG,iBAAiB;IAC/CL,aAAa,CAACK,WAAW,GAAG,eAAe;IAC3CJ,qBAAqB,CAACI,WAAW,GAAG,uBAAuB;CAC5D"}
|
||||
46
kitabcitab/node_modules/next/dist/shared/lib/html-context.d.ts
generated
vendored
Normal file
46
kitabcitab/node_modules/next/dist/shared/lib/html-context.d.ts
generated
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
/// <reference types="react" />
|
||||
import type { BuildManifest } from '../../server/get-page-files';
|
||||
import type { ServerRuntime } from 'next/types';
|
||||
import type { NEXT_DATA } from './utils';
|
||||
import type { FontConfig } from '../../server/font-utils';
|
||||
import type { FontLoaderManifest } from '../../build/webpack/plugins/font-loader-manifest-plugin';
|
||||
export declare type HtmlProps = {
|
||||
__NEXT_DATA__: NEXT_DATA;
|
||||
dangerousAsPath: string;
|
||||
docComponentsRendered: {
|
||||
Html?: boolean;
|
||||
Main?: boolean;
|
||||
Head?: boolean;
|
||||
NextScript?: boolean;
|
||||
};
|
||||
buildManifest: BuildManifest;
|
||||
ampPath: string;
|
||||
inAmpMode: boolean;
|
||||
hybridAmp: boolean;
|
||||
isDevelopment: boolean;
|
||||
dynamicImports: string[];
|
||||
assetPrefix?: string;
|
||||
canonicalBase: string;
|
||||
headTags: any[];
|
||||
unstable_runtimeJS?: false;
|
||||
unstable_JsPreload?: false;
|
||||
devOnlyCacheBusterQueryString: string;
|
||||
scriptLoader: {
|
||||
afterInteractive?: string[];
|
||||
beforeInteractive?: any[];
|
||||
worker?: any[];
|
||||
};
|
||||
locale?: string;
|
||||
disableOptimizedLoading?: boolean;
|
||||
styles?: React.ReactElement[] | React.ReactFragment;
|
||||
head?: Array<JSX.Element | null>;
|
||||
crossOrigin?: string;
|
||||
optimizeCss?: any;
|
||||
optimizeFonts?: FontConfig;
|
||||
nextScriptWorkers?: boolean;
|
||||
runtime?: ServerRuntime;
|
||||
hasConcurrentFeatures?: boolean;
|
||||
largePageDataBytes?: number;
|
||||
fontLoaderManifest?: FontLoaderManifest;
|
||||
};
|
||||
export declare const HtmlContext: import("react").Context<HtmlProps>;
|
||||
13
kitabcitab/node_modules/next/dist/shared/lib/html-context.js
generated
vendored
Normal file
13
kitabcitab/node_modules/next/dist/shared/lib/html-context.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.HtmlContext = void 0;
|
||||
var _react = require("react");
|
||||
const HtmlContext = (0, _react).createContext(null);
|
||||
exports.HtmlContext = HtmlContext;
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
HtmlContext.displayName = 'HtmlContext';
|
||||
}
|
||||
|
||||
//# sourceMappingURL=html-context.js.map
|
||||
1
kitabcitab/node_modules/next/dist/shared/lib/html-context.js.map
generated
vendored
Normal file
1
kitabcitab/node_modules/next/dist/shared/lib/html-context.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../shared/lib/html-context.ts"],"names":["HtmlContext","createContext","process","env","NODE_ENV","displayName"],"mappings":"AAAA;;;;;AAM8B,IAAA,MAAO,WAAP,OAAO,CAAA;AA0C9B,MAAMA,WAAW,GAAGC,CAAAA,GAAAA,MAAa,AAAwB,CAAA,cAAxB,CAAY,IAAI,CAAQ;QAAnDD,WAAW,GAAXA,WAAW;AACxB,IAAIE,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,YAAY,EAAE;IACzCJ,WAAW,CAACK,WAAW,GAAG,aAAa;CACxC"}
|
||||
2
kitabcitab/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.d.ts
generated
vendored
Normal file
2
kitabcitab/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import type { DomainLocale } from '../../../server/config-shared';
|
||||
export declare function detectDomainLocale(domainItems?: DomainLocale[], hostname?: string, detectedLocale?: string): DomainLocale | undefined;
|
||||
25
kitabcitab/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js
generated
vendored
Normal file
25
kitabcitab/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.detectDomainLocale = detectDomainLocale;
|
||||
function detectDomainLocale(domainItems, hostname, detectedLocale) {
|
||||
let domainItem;
|
||||
if (domainItems) {
|
||||
if (detectedLocale) {
|
||||
detectedLocale = detectedLocale.toLowerCase();
|
||||
}
|
||||
for (const item of domainItems){
|
||||
var ref, ref1;
|
||||
// remove port if present
|
||||
const domainHostname = (ref = item.domain) == null ? void 0 : ref.split(':')[0].toLowerCase();
|
||||
if (hostname === domainHostname || detectedLocale === item.defaultLocale.toLowerCase() || ((ref1 = item.locales) == null ? void 0 : ref1.some((locale)=>locale.toLowerCase() === detectedLocale))) {
|
||||
domainItem = item;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return domainItem;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=detect-domain-locale.js.map
|
||||
1
kitabcitab/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js.map
generated
vendored
Normal file
1
kitabcitab/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../shared/lib/i18n/detect-domain-locale.ts"],"names":["detectDomainLocale","domainItems","hostname","detectedLocale","domainItem","toLowerCase","item","domainHostname","domain","split","defaultLocale","locales","some","locale"],"mappings":"AAAA;;;;QAEgBA,kBAAkB,GAAlBA,kBAAkB;AAA3B,SAASA,kBAAkB,CAChCC,WAA4B,EAC5BC,QAAiB,EACjBC,cAAuB,EACvB;IACA,IAAIC,UAAU,AAA0B;IAExC,IAAIH,WAAW,EAAE;QACf,IAAIE,cAAc,EAAE;YAClBA,cAAc,GAAGA,cAAc,CAACE,WAAW,EAAE;SAC9C;QAED,KAAK,MAAMC,IAAI,IAAIL,WAAW,CAAE;gBAEPK,GAAW,EAIhCA,IAAY;YALd,yBAAyB;YACzB,MAAMC,cAAc,GAAGD,CAAAA,GAAW,GAAXA,IAAI,CAACE,MAAM,SAAO,GAAlBF,KAAAA,CAAkB,GAAlBA,GAAW,CAAEG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAACJ,WAAW,EAAE;YAC/D,IACEH,QAAQ,KAAKK,cAAc,IAC3BJ,cAAc,KAAKG,IAAI,CAACI,aAAa,CAACL,WAAW,EAAE,KACnDC,CAAAA,IAAY,GAAZA,IAAI,CAACK,OAAO,SAAM,GAAlBL,KAAAA,CAAkB,GAAlBA,IAAY,CAAEM,IAAI,CAAC,CAACC,MAAM,GAAKA,MAAM,CAACR,WAAW,EAAE,KAAKF,cAAc,CAAC,CAAA,EACvE;gBACAC,UAAU,GAAGE,IAAI;gBACjB,MAAK;aACN;SACF;KACF;IAED,OAAOF,UAAU,CAAA;CAClB"}
|
||||
3
kitabcitab/node_modules/next/dist/shared/lib/i18n/detect-locale-cookie.d.ts
generated
vendored
Normal file
3
kitabcitab/node_modules/next/dist/shared/lib/i18n/detect-locale-cookie.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
/// <reference types="node" />
|
||||
import { IncomingMessage } from 'http';
|
||||
export declare function detectLocaleCookie(req: IncomingMessage, locales: string[]): string | undefined;
|
||||
11
kitabcitab/node_modules/next/dist/shared/lib/i18n/detect-locale-cookie.js
generated
vendored
Normal file
11
kitabcitab/node_modules/next/dist/shared/lib/i18n/detect-locale-cookie.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.detectLocaleCookie = detectLocaleCookie;
|
||||
function detectLocaleCookie(req, locales) {
|
||||
const { NEXT_LOCALE } = req.cookies || {};
|
||||
return NEXT_LOCALE ? locales.find((locale)=>NEXT_LOCALE.toLowerCase() === locale.toLowerCase()) : undefined;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=detect-locale-cookie.js.map
|
||||
1
kitabcitab/node_modules/next/dist/shared/lib/i18n/detect-locale-cookie.js.map
generated
vendored
Normal file
1
kitabcitab/node_modules/next/dist/shared/lib/i18n/detect-locale-cookie.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../shared/lib/i18n/detect-locale-cookie.ts"],"names":["detectLocaleCookie","req","locales","NEXT_LOCALE","cookies","find","locale","toLowerCase","undefined"],"mappings":"AAAA;;;;QAEgBA,kBAAkB,GAAlBA,kBAAkB;AAA3B,SAASA,kBAAkB,CAACC,GAAoB,EAAEC,OAAiB,EAAE;IAC1E,MAAM,EAAEC,WAAW,CAAA,EAAE,GAAG,AAACF,GAAG,CAASG,OAAO,IAAI,EAAE;IAClD,OAAOD,WAAW,GACdD,OAAO,CAACG,IAAI,CACV,CAACC,MAAc,GAAKH,WAAW,CAACI,WAAW,EAAE,KAAKD,MAAM,CAACC,WAAW,EAAE,CACvE,GACDC,SAAS,CAAA;CACd"}
|
||||
21
kitabcitab/node_modules/next/dist/shared/lib/i18n/get-locale-redirect.d.ts
generated
vendored
Normal file
21
kitabcitab/node_modules/next/dist/shared/lib/i18n/get-locale-redirect.d.ts
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
import type { DomainLocale } from '../../../server/config';
|
||||
import type { I18NConfig } from '../../../server/config-shared';
|
||||
interface Options {
|
||||
defaultLocale: string;
|
||||
domainLocale?: DomainLocale;
|
||||
headers?: {
|
||||
[key: string]: string | string[] | undefined;
|
||||
};
|
||||
nextConfig: {
|
||||
basePath?: string;
|
||||
i18n?: I18NConfig | null;
|
||||
trailingSlash?: boolean;
|
||||
};
|
||||
pathLocale?: string;
|
||||
urlParsed: {
|
||||
hostname?: string | null;
|
||||
pathname: string;
|
||||
};
|
||||
}
|
||||
export declare function getLocaleRedirect({ defaultLocale, domainLocale, pathLocale, headers, nextConfig, urlParsed, }: Options): string | undefined;
|
||||
export {};
|
||||
55
kitabcitab/node_modules/next/dist/shared/lib/i18n/get-locale-redirect.js
generated
vendored
Normal file
55
kitabcitab/node_modules/next/dist/shared/lib/i18n/get-locale-redirect.js
generated
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.getLocaleRedirect = getLocaleRedirect;
|
||||
var _extends = require("@swc/helpers/lib/_extends.js").default;
|
||||
var _acceptHeader = require("../../../server/accept-header");
|
||||
var _denormalizePagePath = require("../page-path/denormalize-page-path");
|
||||
var _detectDomainLocale = require("./detect-domain-locale");
|
||||
var _formatUrl = require("../router/utils/format-url");
|
||||
var _apiUtils = require("../../../server/api-utils");
|
||||
function getLocaleFromCookie(i18n, headers = {}) {
|
||||
var ref, ref1;
|
||||
const nextLocale = (ref = (0, _apiUtils).getCookieParser(headers || {})()) == null ? void 0 : (ref1 = ref.NEXT_LOCALE) == null ? void 0 : ref1.toLowerCase();
|
||||
return nextLocale ? i18n.locales.find((locale)=>nextLocale === locale.toLowerCase()) : undefined;
|
||||
}
|
||||
function detectLocale({ i18n , headers , domainLocale , preferredLocale , pathLocale }) {
|
||||
return pathLocale || (domainLocale == null ? void 0 : domainLocale.defaultLocale) || getLocaleFromCookie(i18n, headers) || preferredLocale || i18n.defaultLocale;
|
||||
}
|
||||
function getAcceptPreferredLocale(i18n, headers) {
|
||||
if ((headers == null ? void 0 : headers['accept-language']) && !Array.isArray(headers['accept-language'])) {
|
||||
try {
|
||||
return (0, _acceptHeader).acceptLanguage(headers['accept-language'], i18n.locales);
|
||||
} catch (err) {}
|
||||
}
|
||||
}
|
||||
function getLocaleRedirect({ defaultLocale , domainLocale , pathLocale , headers , nextConfig , urlParsed }) {
|
||||
if (nextConfig.i18n && nextConfig.i18n.localeDetection !== false && (0, _denormalizePagePath).denormalizePagePath(urlParsed.pathname) === '/') {
|
||||
const preferredLocale = getAcceptPreferredLocale(nextConfig.i18n, headers);
|
||||
const detectedLocale = detectLocale({
|
||||
i18n: nextConfig.i18n,
|
||||
preferredLocale,
|
||||
headers,
|
||||
pathLocale,
|
||||
domainLocale
|
||||
});
|
||||
const preferredDomain = (0, _detectDomainLocale).detectDomainLocale(nextConfig.i18n.domains, undefined, preferredLocale);
|
||||
if (domainLocale && preferredDomain) {
|
||||
const isPDomain = preferredDomain.domain === domainLocale.domain;
|
||||
const isPLocale = preferredDomain.defaultLocale === preferredLocale;
|
||||
if (!isPDomain || !isPLocale) {
|
||||
const scheme = `http${preferredDomain.http ? '' : 's'}`;
|
||||
const rlocale = isPLocale ? '' : preferredLocale;
|
||||
return `${scheme}://${preferredDomain.domain}/${rlocale}`;
|
||||
}
|
||||
}
|
||||
if (detectedLocale.toLowerCase() !== defaultLocale.toLowerCase()) {
|
||||
return (0, _formatUrl).formatUrl(_extends({}, urlParsed, {
|
||||
pathname: `${nextConfig.basePath || ''}/${detectedLocale}`
|
||||
}));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//# sourceMappingURL=get-locale-redirect.js.map
|
||||
1
kitabcitab/node_modules/next/dist/shared/lib/i18n/get-locale-redirect.js.map
generated
vendored
Normal file
1
kitabcitab/node_modules/next/dist/shared/lib/i18n/get-locale-redirect.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../shared/lib/i18n/get-locale-redirect.ts"],"names":["getLocaleRedirect","getLocaleFromCookie","i18n","headers","getCookieParser","nextLocale","NEXT_LOCALE","toLowerCase","locales","find","locale","undefined","detectLocale","domainLocale","preferredLocale","pathLocale","defaultLocale","getAcceptPreferredLocale","Array","isArray","acceptLanguage","err","nextConfig","urlParsed","localeDetection","denormalizePagePath","pathname","detectedLocale","preferredDomain","detectDomainLocale","domains","isPDomain","domain","isPLocale","scheme","http","rlocale","formatUrl","basePath"],"mappings":"AAAA;;;;QAqEgBA,iBAAiB,GAAjBA,iBAAiB;;AAnEF,IAAA,aAA+B,WAA/B,+BAA+B,CAAA;AAC1B,IAAA,oBAAoC,WAApC,oCAAoC,CAAA;AACrC,IAAA,mBAAwB,WAAxB,wBAAwB,CAAA;AACjC,IAAA,UAA4B,WAA5B,4BAA4B,CAAA;AACtB,IAAA,SAA2B,WAA3B,2BAA2B,CAAA;AAe3D,SAASC,mBAAmB,CAC1BC,IAAgB,EAChBC,OAAyD,GAAG,EAAE,EAC9D;QACmBC,GAEhB;IAFH,MAAMC,UAAU,GAAGD,CAAAA,GAEhB,GAFgBA,CAAAA,GAAAA,SAAe,AAEjC,CAAA,gBAFiC,CAChCD,OAAO,IAAI,EAAE,CACd,EAAE,SAAa,GAFGC,KAAAA,CAEH,GAFGA,QAAAA,GAEhB,CAAEE,WAAW,SAAA,GAFGF,KAAAA,CAEH,GAFGA,KAEDG,WAAW,EAAE;IAC/B,OAAOF,UAAU,GACbH,IAAI,CAACM,OAAO,CAACC,IAAI,CAAC,CAACC,MAAM,GAAKL,UAAU,KAAKK,MAAM,CAACH,WAAW,EAAE,CAAC,GAClEI,SAAS,CAAA;CACd;AAED,SAASC,YAAY,CAAC,EACpBV,IAAI,CAAA,EACJC,OAAO,CAAA,EACPU,YAAY,CAAA,EACZC,eAAe,CAAA,EACfC,UAAU,CAAA,EAOX,EAAE;IACD,OACEA,UAAU,IACVF,CAAAA,YAAY,QAAe,GAA3BA,KAAAA,CAA2B,GAA3BA,YAAY,CAAEG,aAAa,CAAA,IAC3Bf,mBAAmB,CAACC,IAAI,EAAEC,OAAO,CAAC,IAClCW,eAAe,IACfZ,IAAI,CAACc,aAAa,CACnB;CACF;AAED,SAASC,wBAAwB,CAC/Bf,IAAgB,EAChBC,OAA0D,EAC1D;IACA,IACEA,CAAAA,OAAO,QAAqB,GAA5BA,KAAAA,CAA4B,GAA5BA,OAAO,AAAE,CAAC,iBAAiB,CAAC,CAAA,IAC5B,CAACe,KAAK,CAACC,OAAO,CAAChB,OAAO,CAAC,iBAAiB,CAAC,CAAC,EAC1C;QACA,IAAI;YACF,OAAOiB,CAAAA,GAAAA,aAAc,AAA0C,CAAA,eAA1C,CAACjB,OAAO,CAAC,iBAAiB,CAAC,EAAED,IAAI,CAACM,OAAO,CAAC,CAAA;SAChE,CAAC,OAAOa,GAAG,EAAE,EAAE;KACjB;CACF;AAEM,SAASrB,iBAAiB,CAAC,EAChCgB,aAAa,CAAA,EACbH,YAAY,CAAA,EACZE,UAAU,CAAA,EACVZ,OAAO,CAAA,EACPmB,UAAU,CAAA,EACVC,SAAS,CAAA,EACD,EAAE;IACV,IACED,UAAU,CAACpB,IAAI,IACfoB,UAAU,CAACpB,IAAI,CAACsB,eAAe,KAAK,KAAK,IACzCC,CAAAA,GAAAA,oBAAmB,AAAoB,CAAA,oBAApB,CAACF,SAAS,CAACG,QAAQ,CAAC,KAAK,GAAG,EAC/C;QACA,MAAMZ,eAAe,GAAGG,wBAAwB,CAACK,UAAU,CAACpB,IAAI,EAAEC,OAAO,CAAC;QAC1E,MAAMwB,cAAc,GAAGf,YAAY,CAAC;YAClCV,IAAI,EAAEoB,UAAU,CAACpB,IAAI;YACrBY,eAAe;YACfX,OAAO;YACPY,UAAU;YACVF,YAAY;SACb,CAAC;QAEF,MAAMe,eAAe,GAAGC,CAAAA,GAAAA,mBAAkB,AAIzC,CAAA,mBAJyC,CACxCP,UAAU,CAACpB,IAAI,CAAC4B,OAAO,EACvBnB,SAAS,EACTG,eAAe,CAChB;QAED,IAAID,YAAY,IAAIe,eAAe,EAAE;YACnC,MAAMG,SAAS,GAAGH,eAAe,CAACI,MAAM,KAAKnB,YAAY,CAACmB,MAAM;YAChE,MAAMC,SAAS,GAAGL,eAAe,CAACZ,aAAa,KAAKF,eAAe;YACnE,IAAI,CAACiB,SAAS,IAAI,CAACE,SAAS,EAAE;gBAC5B,MAAMC,MAAM,GAAG,CAAC,IAAI,EAAEN,eAAe,CAACO,IAAI,GAAG,EAAE,GAAG,GAAG,CAAC,CAAC;gBACvD,MAAMC,OAAO,GAAGH,SAAS,GAAG,EAAE,GAAGnB,eAAe;gBAChD,OAAO,CAAC,EAAEoB,MAAM,CAAC,GAAG,EAAEN,eAAe,CAACI,MAAM,CAAC,CAAC,EAAEI,OAAO,CAAC,CAAC,CAAA;aAC1D;SACF;QAED,IAAIT,cAAc,CAACpB,WAAW,EAAE,KAAKS,aAAa,CAACT,WAAW,EAAE,EAAE;YAChE,OAAO8B,CAAAA,GAAAA,UAAS,AAGd,CAAA,UAHc,CAAC,aACZd,SAAS;gBACZG,QAAQ,EAAE,CAAC,EAAEJ,UAAU,CAACgB,QAAQ,IAAI,EAAE,CAAC,CAAC,EAAEX,cAAc,CAAC,CAAC;cAC3D,CAAC,CAAA;SACH;KACF;CACF"}
|
||||
14
kitabcitab/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.d.ts
generated
vendored
Normal file
14
kitabcitab/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.d.ts
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
export interface PathLocale {
|
||||
detectedLocale?: string;
|
||||
pathname: string;
|
||||
}
|
||||
/**
|
||||
* For a pathname that may include a locale from a list of locales, it
|
||||
* removes the locale from the pathname returning it alongside with the
|
||||
* detected locale.
|
||||
*
|
||||
* @param pathname A pathname that may include a locale.
|
||||
* @param locales A list of locales.
|
||||
* @returns The detected locale and pathname without locale
|
||||
*/
|
||||
export declare function normalizeLocalePath(pathname: string, locales?: string[]): PathLocale;
|
||||
25
kitabcitab/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js
generated
vendored
Normal file
25
kitabcitab/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.normalizeLocalePath = normalizeLocalePath;
|
||||
function normalizeLocalePath(pathname, locales) {
|
||||
let detectedLocale;
|
||||
// first item will be empty string from splitting at first char
|
||||
const pathnameParts = pathname.split('/');
|
||||
(locales || []).some((locale)=>{
|
||||
if (pathnameParts[1] && pathnameParts[1].toLowerCase() === locale.toLowerCase()) {
|
||||
detectedLocale = locale;
|
||||
pathnameParts.splice(1, 1);
|
||||
pathname = pathnameParts.join('/') || '/';
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
});
|
||||
return {
|
||||
pathname,
|
||||
detectedLocale
|
||||
};
|
||||
}
|
||||
|
||||
//# sourceMappingURL=normalize-locale-path.js.map
|
||||
1
kitabcitab/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js.map
generated
vendored
Normal file
1
kitabcitab/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../shared/lib/i18n/normalize-locale-path.ts"],"names":["normalizeLocalePath","pathname","locales","detectedLocale","pathnameParts","split","some","locale","toLowerCase","splice","join"],"mappings":"AAAA;;;;QAcgBA,mBAAmB,GAAnBA,mBAAmB;AAA5B,SAASA,mBAAmB,CACjCC,QAAgB,EAChBC,OAAkB,EACN;IACZ,IAAIC,cAAc,AAAoB;IACtC,+DAA+D;IAC/D,MAAMC,aAAa,GAAGH,QAAQ,CAACI,KAAK,CAAC,GAAG,CAAC,AAExC;IAAA,CAACH,OAAO,IAAI,EAAE,CAAC,CAACI,IAAI,CAAC,CAACC,MAAM,GAAK;QAChC,IACEH,aAAa,CAAC,CAAC,CAAC,IAChBA,aAAa,CAAC,CAAC,CAAC,CAACI,WAAW,EAAE,KAAKD,MAAM,CAACC,WAAW,EAAE,EACvD;YACAL,cAAc,GAAGI,MAAM;YACvBH,aAAa,CAACK,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC;YAC1BR,QAAQ,GAAGG,aAAa,CAACM,IAAI,CAAC,GAAG,CAAC,IAAI,GAAG;YACzC,OAAO,IAAI,CAAA;SACZ;QACD,OAAO,KAAK,CAAA;KACb,CAAC;IAEF,OAAO;QACLT,QAAQ;QACRE,cAAc;KACf,CAAA;CACF"}
|
||||
10
kitabcitab/node_modules/next/dist/shared/lib/image-blur-svg.d.ts
generated
vendored
Normal file
10
kitabcitab/node_modules/next/dist/shared/lib/image-blur-svg.d.ts
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
/**
|
||||
* A shared function, used on both client and server, to generate a SVG blur placeholder.
|
||||
*/
|
||||
export declare function getImageBlurSvg({ widthInt, heightInt, blurWidth, blurHeight, blurDataURL, }: {
|
||||
widthInt?: number;
|
||||
heightInt?: number;
|
||||
blurWidth?: number;
|
||||
blurHeight?: number;
|
||||
blurDataURL: string;
|
||||
}): string;
|
||||
17
kitabcitab/node_modules/next/dist/shared/lib/image-blur-svg.js
generated
vendored
Normal file
17
kitabcitab/node_modules/next/dist/shared/lib/image-blur-svg.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.getImageBlurSvg = getImageBlurSvg;
|
||||
function getImageBlurSvg({ widthInt , heightInt , blurWidth , blurHeight , blurDataURL }) {
|
||||
const std = blurWidth && blurHeight ? '1' : '20';
|
||||
const svgWidth = blurWidth || widthInt;
|
||||
const svgHeight = blurHeight || heightInt;
|
||||
const feComponentTransfer = blurDataURL.startsWith('data:image/jpeg') ? `%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='1 1'/%3E%3C/feComponentTransfer%3E%` : '';
|
||||
if (svgWidth && svgHeight) {
|
||||
return `%3Csvg xmlns='http%3A//www.w3.org/2000/svg' viewBox='0 0 ${svgWidth} ${svgHeight}'%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='${std}'/%3E${feComponentTransfer}%3C/filter%3E%3Cimage preserveAspectRatio='none' filter='url(%23b)' x='0' y='0' height='100%25' width='100%25' href='${blurDataURL}'/%3E%3C/svg%3E`;
|
||||
}
|
||||
return `%3Csvg xmlns='http%3A//www.w3.org/2000/svg'%3E%3Cimage style='filter:blur(20px)' x='0' y='0' height='100%25' width='100%25' href='${blurDataURL}'/%3E%3C/svg%3E`;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=image-blur-svg.js.map
|
||||
1
kitabcitab/node_modules/next/dist/shared/lib/image-blur-svg.js.map
generated
vendored
Normal file
1
kitabcitab/node_modules/next/dist/shared/lib/image-blur-svg.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../shared/lib/image-blur-svg.ts"],"names":["getImageBlurSvg","widthInt","heightInt","blurWidth","blurHeight","blurDataURL","std","svgWidth","svgHeight","feComponentTransfer","startsWith"],"mappings":"AAGA;;;;QAAgBA,eAAe,GAAfA,eAAe;AAAxB,SAASA,eAAe,CAAC,EAC9BC,QAAQ,CAAA,EACRC,SAAS,CAAA,EACTC,SAAS,CAAA,EACTC,UAAU,CAAA,EACVC,WAAW,CAAA,EAOZ,EAAU;IACT,MAAMC,GAAG,GAAGH,SAAS,IAAIC,UAAU,GAAG,GAAG,GAAG,IAAI;IAChD,MAAMG,QAAQ,GAAGJ,SAAS,IAAIF,QAAQ;IACtC,MAAMO,SAAS,GAAGJ,UAAU,IAAIF,SAAS;IACzC,MAAMO,mBAAmB,GAAGJ,WAAW,CAACK,UAAU,CAAC,iBAAiB,CAAC,GACjE,CAAC,oGAAoG,CAAC,GACtG,EAAE;IACN,IAAIH,QAAQ,IAAIC,SAAS,EAAE;QACzB,OAAO,CAAC,yDAAyD,EAAED,QAAQ,CAAC,CAAC,EAAEC,SAAS,CAAC,0FAA0F,EAAEF,GAAG,CAAC,KAAK,EAAEG,mBAAmB,CAAC,qHAAqH,EAAEJ,WAAW,CAAC,eAAe,CAAC,CAAA;KACxW;IACD,OAAO,CAAC,kIAAkI,EAAEA,WAAW,CAAC,eAAe,CAAC,CAAA;CACzK"}
|
||||
3
kitabcitab/node_modules/next/dist/shared/lib/image-config-context.d.ts
generated
vendored
Normal file
3
kitabcitab/node_modules/next/dist/shared/lib/image-config-context.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
import React from 'react';
|
||||
import { ImageConfigComplete } from './image-config';
|
||||
export declare const ImageConfigContext: React.Context<ImageConfigComplete>;
|
||||
15
kitabcitab/node_modules/next/dist/shared/lib/image-config-context.js
generated
vendored
Normal file
15
kitabcitab/node_modules/next/dist/shared/lib/image-config-context.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.ImageConfigContext = void 0;
|
||||
var _interop_require_default = require("@swc/helpers/lib/_interop_require_default.js").default;
|
||||
var _react = _interop_require_default(require("react"));
|
||||
var _imageConfig = require("./image-config");
|
||||
const ImageConfigContext = _react.default.createContext(_imageConfig.imageConfigDefault);
|
||||
exports.ImageConfigContext = ImageConfigContext;
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
ImageConfigContext.displayName = 'ImageConfigContext';
|
||||
}
|
||||
|
||||
//# sourceMappingURL=image-config-context.js.map
|
||||
1
kitabcitab/node_modules/next/dist/shared/lib/image-config-context.js.map
generated
vendored
Normal file
1
kitabcitab/node_modules/next/dist/shared/lib/image-config-context.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../shared/lib/image-config-context.ts"],"names":["ImageConfigContext","React","createContext","imageConfigDefault","process","env","NODE_ENV","displayName"],"mappings":"AAAA;;;;;;AAAkB,IAAA,MAAO,oCAAP,OAAO,EAAA;AAC+B,IAAA,YAAgB,WAAhB,gBAAgB,CAAA;AAEjE,MAAMA,kBAAkB,GAC7BC,MAAK,QAAA,CAACC,aAAa,CAAsBC,YAAkB,mBAAA,CAAC;QADjDH,kBAAkB,GAAlBA,kBAAkB;AAG/B,IAAII,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,YAAY,EAAE;IACzCN,kBAAkB,CAACO,WAAW,GAAG,oBAAoB;CACtD"}
|
||||
72
kitabcitab/node_modules/next/dist/shared/lib/image-config.d.ts
generated
vendored
Normal file
72
kitabcitab/node_modules/next/dist/shared/lib/image-config.d.ts
generated
vendored
Normal file
@@ -0,0 +1,72 @@
|
||||
export declare const VALID_LOADERS: readonly ["default", "imgix", "cloudinary", "akamai", "custom"];
|
||||
export declare type LoaderValue = typeof VALID_LOADERS[number];
|
||||
export declare type ImageLoaderProps = {
|
||||
src: string;
|
||||
width: number;
|
||||
quality?: number;
|
||||
};
|
||||
export declare type ImageLoaderPropsWithConfig = ImageLoaderProps & {
|
||||
config: Readonly<ImageConfig>;
|
||||
};
|
||||
export declare type RemotePattern = {
|
||||
/**
|
||||
* Must be `http` or `https`.
|
||||
*/
|
||||
protocol?: 'http' | 'https';
|
||||
/**
|
||||
* Can be literal or wildcard.
|
||||
* Single `*` matches a single subdomain.
|
||||
* Double `**` matches any number of subdomains.
|
||||
*/
|
||||
hostname: string;
|
||||
/**
|
||||
* Can be literal port such as `8080` or empty string
|
||||
* meaning no port.
|
||||
*/
|
||||
port?: string;
|
||||
/**
|
||||
* Can be literal or wildcard.
|
||||
* Single `*` matches a single path segment.
|
||||
* Double `**` matches any number of path segments.
|
||||
*/
|
||||
pathname?: string;
|
||||
};
|
||||
declare type ImageFormat = 'image/avif' | 'image/webp';
|
||||
/**
|
||||
* Image configurations
|
||||
*
|
||||
* @see [Image configuration options](https://nextjs.org/docs/api-reference/next/image#configuration-options)
|
||||
*/
|
||||
export declare type ImageConfigComplete = {
|
||||
/** @see [Device sizes documentation](https://nextjs.org/docs/api-reference/next/image#device-sizes) */
|
||||
deviceSizes: number[];
|
||||
/** @see [Image sizing documentation](https://nextjs.org/docs/basic-features/image-optimization#image-sizing) */
|
||||
imageSizes: number[];
|
||||
/** @see [Image loaders configuration](https://nextjs.org/docs/api-reference/next/legacy/image#loader) */
|
||||
loader: LoaderValue;
|
||||
/** @see [Image loader configuration](https://nextjs.org/docs/api-reference/next/legacy/image#loader-configuration) */
|
||||
path: string;
|
||||
/** @see [Image loader configuration](https://nextjs.org/docs/api-reference/next/image#loader-configuration) */
|
||||
loaderFile: string;
|
||||
/**
|
||||
* @see [Image domains configuration](https://nextjs.org/docs/api-reference/next/image#domains)
|
||||
*/
|
||||
domains: string[];
|
||||
/** @see [Disable static image import configuration](https://nextjs.org/docs/api-reference/next/image#disable-static-imports) */
|
||||
disableStaticImages: boolean;
|
||||
/** @see [Cache behavior](https://nextjs.org/docs/api-reference/next/image#caching-behavior) */
|
||||
minimumCacheTTL: number;
|
||||
/** @see [Acceptable formats](https://nextjs.org/docs/api-reference/next/image#acceptable-formats) */
|
||||
formats: ImageFormat[];
|
||||
/** @see [Dangerously Allow SVG](https://nextjs.org/docs/api-reference/next/image#dangerously-allow-svg) */
|
||||
dangerouslyAllowSVG: boolean;
|
||||
/** @see [Dangerously Allow SVG](https://nextjs.org/docs/api-reference/next/image#dangerously-allow-svg) */
|
||||
contentSecurityPolicy: string;
|
||||
/** @see [Remote Patterns](https://nextjs.org/docs/api-reference/next/image#remote-patterns) */
|
||||
remotePatterns: RemotePattern[];
|
||||
/** @see [Unoptimized](https://nextjs.org/docs/api-reference/next/image#unoptimized) */
|
||||
unoptimized: boolean;
|
||||
};
|
||||
export declare type ImageConfig = Partial<ImageConfigComplete>;
|
||||
export declare const imageConfigDefault: ImageConfigComplete;
|
||||
export {};
|
||||
51
kitabcitab/node_modules/next/dist/shared/lib/image-config.js
generated
vendored
Normal file
51
kitabcitab/node_modules/next/dist/shared/lib/image-config.js
generated
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.imageConfigDefault = exports.VALID_LOADERS = void 0;
|
||||
const VALID_LOADERS = [
|
||||
'default',
|
||||
'imgix',
|
||||
'cloudinary',
|
||||
'akamai',
|
||||
'custom',
|
||||
];
|
||||
exports.VALID_LOADERS = VALID_LOADERS;
|
||||
const imageConfigDefault = {
|
||||
deviceSizes: [
|
||||
640,
|
||||
750,
|
||||
828,
|
||||
1080,
|
||||
1200,
|
||||
1920,
|
||||
2048,
|
||||
3840
|
||||
],
|
||||
imageSizes: [
|
||||
16,
|
||||
32,
|
||||
48,
|
||||
64,
|
||||
96,
|
||||
128,
|
||||
256,
|
||||
384
|
||||
],
|
||||
path: '/_next/image',
|
||||
loader: 'default',
|
||||
loaderFile: '',
|
||||
domains: [],
|
||||
disableStaticImages: false,
|
||||
minimumCacheTTL: 60,
|
||||
formats: [
|
||||
'image/webp'
|
||||
],
|
||||
dangerouslyAllowSVG: false,
|
||||
contentSecurityPolicy: `script-src 'none'; frame-src 'none'; sandbox;`,
|
||||
remotePatterns: [],
|
||||
unoptimized: false
|
||||
};
|
||||
exports.imageConfigDefault = imageConfigDefault;
|
||||
|
||||
//# sourceMappingURL=image-config.js.map
|
||||
1
kitabcitab/node_modules/next/dist/shared/lib/image-config.js.map
generated
vendored
Normal file
1
kitabcitab/node_modules/next/dist/shared/lib/image-config.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../shared/lib/image-config.ts"],"names":["VALID_LOADERS","imageConfigDefault","deviceSizes","imageSizes","path","loader","loaderFile","domains","disableStaticImages","minimumCacheTTL","formats","dangerouslyAllowSVG","contentSecurityPolicy","remotePatterns","unoptimized"],"mappings":"AAAA;;;;;AAAO,MAAMA,aAAa,GAAG;IAC3B,SAAS;IACT,OAAO;IACP,YAAY;IACZ,QAAQ;IACR,QAAQ;CACT,AAAS;QANGA,aAAa,GAAbA,aAAa;AAmGnB,MAAMC,kBAAkB,GAAwB;IACrDC,WAAW,EAAE;AAAC,WAAG;AAAE,WAAG;AAAE,WAAG;AAAE,YAAI;AAAE,YAAI;AAAE,YAAI;AAAE,YAAI;AAAE,YAAI;KAAC;IAC1DC,UAAU,EAAE;AAAC,UAAE;AAAE,UAAE;AAAE,UAAE;AAAE,UAAE;AAAE,UAAE;AAAE,WAAG;AAAE,WAAG;AAAE,WAAG;KAAC;IAC/CC,IAAI,EAAE,cAAc;IACpBC,MAAM,EAAE,SAAS;IACjBC,UAAU,EAAE,EAAE;IACdC,OAAO,EAAE,EAAE;IACXC,mBAAmB,EAAE,KAAK;IAC1BC,eAAe,EAAE,EAAE;IACnBC,OAAO,EAAE;QAAC,YAAY;KAAC;IACvBC,mBAAmB,EAAE,KAAK;IAC1BC,qBAAqB,EAAE,CAAC,6CAA6C,CAAC;IACtEC,cAAc,EAAE,EAAE;IAClBC,WAAW,EAAE,KAAK;CACnB;QAdYb,kBAAkB,GAAlBA,kBAAkB"}
|
||||
6
kitabcitab/node_modules/next/dist/shared/lib/image-loader.d.ts
generated
vendored
Normal file
6
kitabcitab/node_modules/next/dist/shared/lib/image-loader.d.ts
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
import type { ImageLoaderPropsWithConfig } from './image-config';
|
||||
declare function defaultLoader({ config, src, width, quality, }: ImageLoaderPropsWithConfig): string;
|
||||
declare namespace defaultLoader {
|
||||
var __next_img_default: boolean;
|
||||
}
|
||||
export default defaultLoader;
|
||||
47
kitabcitab/node_modules/next/dist/shared/lib/image-loader.js
generated
vendored
Normal file
47
kitabcitab/node_modules/next/dist/shared/lib/image-loader.js
generated
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
function defaultLoader({ config , src , width , quality }) {
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
const missingValues = [];
|
||||
// these should always be provided but make sure they are
|
||||
if (!src) missingValues.push('src');
|
||||
if (!width) missingValues.push('width');
|
||||
if (missingValues.length > 0) {
|
||||
throw new Error(`Next Image Optimization requires ${missingValues.join(', ')} to be provided. Make sure you pass them as props to the \`next/image\` component. Received: ${JSON.stringify({
|
||||
src,
|
||||
width,
|
||||
quality
|
||||
})}`);
|
||||
}
|
||||
if (src.startsWith('//')) {
|
||||
throw new Error(`Failed to parse src "${src}" on \`next/image\`, protocol-relative URL (//) must be changed to an absolute URL (http:// or https://)`);
|
||||
}
|
||||
if (!src.startsWith('/') && (config.domains || config.remotePatterns)) {
|
||||
let parsedSrc;
|
||||
try {
|
||||
parsedSrc = new URL(src);
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
throw new Error(`Failed to parse src "${src}" on \`next/image\`, if using relative image it must start with a leading slash "/" or be an absolute URL (http:// or https://)`);
|
||||
}
|
||||
if (process.env.NODE_ENV !== 'test') {
|
||||
// We use dynamic require because this should only error in development
|
||||
const { hasMatch } = require('./match-remote-pattern');
|
||||
if (!hasMatch(config.domains, config.remotePatterns, parsedSrc)) {
|
||||
throw new Error(`Invalid src prop (${src}) on \`next/image\`, hostname "${parsedSrc.hostname}" is not configured under images in your \`next.config.js\`\n` + `See more info: https://nextjs.org/docs/messages/next-image-unconfigured-host`);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return `${config.path}?url=${encodeURIComponent(src)}&w=${width}&q=${quality || 75}`;
|
||||
}
|
||||
// We use this to determine if the import is the default loader
|
||||
// or a custom loader defined by the user in next.config.js
|
||||
defaultLoader.__next_img_default = true;
|
||||
var _default = defaultLoader;
|
||||
exports.default = _default;
|
||||
|
||||
//# sourceMappingURL=image-loader.js.map
|
||||
1
kitabcitab/node_modules/next/dist/shared/lib/image-loader.js.map
generated
vendored
Normal file
1
kitabcitab/node_modules/next/dist/shared/lib/image-loader.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../shared/lib/image-loader.ts"],"names":["defaultLoader","config","src","width","quality","process","env","NODE_ENV","missingValues","push","length","Error","join","JSON","stringify","startsWith","domains","remotePatterns","parsedSrc","URL","err","console","error","hasMatch","require","hostname","path","encodeURIComponent","__next_img_default"],"mappings":"AAAA;;;;;AAEA,SAASA,aAAa,CAAC,EACrBC,MAAM,CAAA,EACNC,GAAG,CAAA,EACHC,KAAK,CAAA,EACLC,OAAO,CAAA,EACoB,EAAU;IACrC,IAAIC,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,YAAY,EAAE;QACzC,MAAMC,aAAa,GAAG,EAAE;QAExB,yDAAyD;QACzD,IAAI,CAACN,GAAG,EAAEM,aAAa,CAACC,IAAI,CAAC,KAAK,CAAC;QACnC,IAAI,CAACN,KAAK,EAAEK,aAAa,CAACC,IAAI,CAAC,OAAO,CAAC;QAEvC,IAAID,aAAa,CAACE,MAAM,GAAG,CAAC,EAAE;YAC5B,MAAM,IAAIC,KAAK,CACb,CAAC,iCAAiC,EAAEH,aAAa,CAACI,IAAI,CACpD,IAAI,CACL,CAAC,6FAA6F,EAAEC,IAAI,CAACC,SAAS,CAC7G;gBAAEZ,GAAG;gBAAEC,KAAK;gBAAEC,OAAO;aAAE,CACxB,CAAC,CAAC,CACJ,CAAA;SACF;QAED,IAAIF,GAAG,CAACa,UAAU,CAAC,IAAI,CAAC,EAAE;YACxB,MAAM,IAAIJ,KAAK,CACb,CAAC,qBAAqB,EAAET,GAAG,CAAC,wGAAwG,CAAC,CACtI,CAAA;SACF;QAED,IAAI,CAACA,GAAG,CAACa,UAAU,CAAC,GAAG,CAAC,IAAI,CAACd,MAAM,CAACe,OAAO,IAAIf,MAAM,CAACgB,cAAc,CAAC,EAAE;YACrE,IAAIC,SAAS,AAAK;YAClB,IAAI;gBACFA,SAAS,GAAG,IAAIC,GAAG,CAACjB,GAAG,CAAC;aACzB,CAAC,OAAOkB,GAAG,EAAE;gBACZC,OAAO,CAACC,KAAK,CAACF,GAAG,CAAC;gBAClB,MAAM,IAAIT,KAAK,CACb,CAAC,qBAAqB,EAAET,GAAG,CAAC,+HAA+H,CAAC,CAC7J,CAAA;aACF;YAED,IAAIG,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,MAAM,EAAE;gBACnC,uEAAuE;gBACvE,MAAM,EAAEgB,QAAQ,CAAA,EAAE,GAAGC,OAAO,CAAC,wBAAwB,CAAC;gBACtD,IAAI,CAACD,QAAQ,CAACtB,MAAM,CAACe,OAAO,EAAEf,MAAM,CAACgB,cAAc,EAAEC,SAAS,CAAC,EAAE;oBAC/D,MAAM,IAAIP,KAAK,CACb,CAAC,kBAAkB,EAAET,GAAG,CAAC,+BAA+B,EAAEgB,SAAS,CAACO,QAAQ,CAAC,6DAA6D,CAAC,GACzI,CAAC,4EAA4E,CAAC,CACjF,CAAA;iBACF;aACF;SACF;KACF;IAED,OAAO,CAAC,EAAExB,MAAM,CAACyB,IAAI,CAAC,KAAK,EAAEC,kBAAkB,CAACzB,GAAG,CAAC,CAAC,GAAG,EAAEC,KAAK,CAAC,GAAG,EACjEC,OAAO,IAAI,EAAE,CACd,CAAC,CAAA;CACH;AAED,+DAA+D;AAC/D,2DAA2D;AAC3DJ,aAAa,CAAC4B,kBAAkB,GAAG,IAAI;eAExB5B,aAAa"}
|
||||
2
kitabcitab/node_modules/next/dist/shared/lib/is-plain-object.d.ts
generated
vendored
Normal file
2
kitabcitab/node_modules/next/dist/shared/lib/is-plain-object.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export declare function getObjectClassLabel(value: any): string;
|
||||
export declare function isPlainObject(value: any): boolean;
|
||||
26
kitabcitab/node_modules/next/dist/shared/lib/is-plain-object.js
generated
vendored
Normal file
26
kitabcitab/node_modules/next/dist/shared/lib/is-plain-object.js
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.getObjectClassLabel = getObjectClassLabel;
|
||||
exports.isPlainObject = isPlainObject;
|
||||
function getObjectClassLabel(value) {
|
||||
return Object.prototype.toString.call(value);
|
||||
}
|
||||
function isPlainObject(value) {
|
||||
if (getObjectClassLabel(value) !== '[object Object]') {
|
||||
return false;
|
||||
}
|
||||
const prototype = Object.getPrototypeOf(value);
|
||||
/**
|
||||
* this used to be previously:
|
||||
*
|
||||
* `return prototype === null || prototype === Object.prototype`
|
||||
*
|
||||
* but Edge Runtime expose Object from vm, being that kind of type-checking wrongly fail.
|
||||
*
|
||||
* It was changed to the current implementation since it's resilient to serialization.
|
||||
*/ return prototype === null || prototype.hasOwnProperty('isPrototypeOf');
|
||||
}
|
||||
|
||||
//# sourceMappingURL=is-plain-object.js.map
|
||||
1
kitabcitab/node_modules/next/dist/shared/lib/is-plain-object.js.map
generated
vendored
Normal file
1
kitabcitab/node_modules/next/dist/shared/lib/is-plain-object.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../shared/lib/is-plain-object.ts"],"names":["getObjectClassLabel","isPlainObject","value","Object","prototype","toString","call","getPrototypeOf","hasOwnProperty"],"mappings":"AAAA;;;;QAAgBA,mBAAmB,GAAnBA,mBAAmB;QAInBC,aAAa,GAAbA,aAAa;AAJtB,SAASD,mBAAmB,CAACE,KAAU,EAAU;IACtD,OAAOC,MAAM,CAACC,SAAS,CAACC,QAAQ,CAACC,IAAI,CAACJ,KAAK,CAAC,CAAA;CAC7C;AAEM,SAASD,aAAa,CAACC,KAAU,EAAW;IACjD,IAAIF,mBAAmB,CAACE,KAAK,CAAC,KAAK,iBAAiB,EAAE;QACpD,OAAO,KAAK,CAAA;KACb;IAED,MAAME,SAAS,GAAGD,MAAM,CAACI,cAAc,CAACL,KAAK,CAAC;IAE9C;;;;;;;;KAQG,CACH,OAAOE,SAAS,KAAK,IAAI,IAAIA,SAAS,CAACI,cAAc,CAAC,eAAe,CAAC,CAAA;CACvE"}
|
||||
3
kitabcitab/node_modules/next/dist/shared/lib/isomorphic/path.d.ts
generated
vendored
Normal file
3
kitabcitab/node_modules/next/dist/shared/lib/isomorphic/path.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
import m from 'path'
|
||||
|
||||
export = m
|
||||
9
kitabcitab/node_modules/next/dist/shared/lib/isomorphic/path.js
generated
vendored
Normal file
9
kitabcitab/node_modules/next/dist/shared/lib/isomorphic/path.js
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
"use strict";
|
||||
/**
|
||||
* This module is for next.js server internal usage of path module.
|
||||
* It will use native path module for nodejs runtime.
|
||||
* It will use path-browserify polyfill for edge runtime.
|
||||
*/ const path = process.env.NEXT_RUNTIME === 'edge' ? require('next/dist/compiled/path-browserify') : require('path');
|
||||
module.exports = path;
|
||||
|
||||
//# sourceMappingURL=path.js.map
|
||||
1
kitabcitab/node_modules/next/dist/shared/lib/isomorphic/path.js.map
generated
vendored
Normal file
1
kitabcitab/node_modules/next/dist/shared/lib/isomorphic/path.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../shared/lib/isomorphic/path.js"],"names":["path","process","env","NEXT_RUNTIME","require","module","exports"],"mappings":"AAMA;AANA;;;;GAIG,CAEH,MAAMA,IAAI,GACRC,OAAO,CAACC,GAAG,CAACC,YAAY,KAAK,MAAM,GAC/BC,OAAO,CAAC,oCAAoC,CAAC,GAC7CA,OAAO,CAAC,MAAM,CAAC;AAErBC,MAAM,CAACC,OAAO,GAAGN,IAAI"}
|
||||
4
kitabcitab/node_modules/next/dist/shared/lib/loadable-context.d.ts
generated
vendored
Normal file
4
kitabcitab/node_modules/next/dist/shared/lib/loadable-context.d.ts
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import React from 'react';
|
||||
declare type CaptureFn = (moduleName: string) => void;
|
||||
export declare const LoadableContext: React.Context<CaptureFn | null>;
|
||||
export {};
|
||||
16
kitabcitab/node_modules/next/dist/shared/lib/loadable-context.js
generated
vendored
Normal file
16
kitabcitab/node_modules/next/dist/shared/lib/loadable-context.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
"use client";
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.LoadableContext = void 0;
|
||||
var _interop_require_default = require("@swc/helpers/lib/_interop_require_default.js").default;
|
||||
var _react = _interop_require_default(require("react"));
|
||||
|
||||
const LoadableContext = _react.default.createContext(null);
|
||||
exports.LoadableContext = LoadableContext;
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
LoadableContext.displayName = 'LoadableContext';
|
||||
}
|
||||
|
||||
//# sourceMappingURL=loadable-context.js.map
|
||||
1
kitabcitab/node_modules/next/dist/shared/lib/loadable-context.js.map
generated
vendored
Normal file
1
kitabcitab/node_modules/next/dist/shared/lib/loadable-context.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../shared/lib/loadable-context.ts"],"names":["LoadableContext","React","createContext","process","env","NODE_ENV","displayName"],"mappings":"AAAA;;;;;;AAEkB,IAAA,MAAO,oCAAP,OAAO,EAAA;AAFzB,YAAY;AAML,MAAMA,eAAe,GAAGC,MAAK,QAAA,CAACC,aAAa,CAAmB,IAAI,CAAC;QAA7DF,eAAe,GAAfA,eAAe;AAE5B,IAAIG,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,YAAY,EAAE;IACzCL,eAAe,CAACM,WAAW,GAAG,iBAAiB;CAChD"}
|
||||
15
kitabcitab/node_modules/next/dist/shared/lib/loadable.d.ts
generated
vendored
Normal file
15
kitabcitab/node_modules/next/dist/shared/lib/loadable.d.ts
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
/* tslint:disable */
|
||||
import React from 'react'
|
||||
|
||||
declare namespace LoadableExport {
|
||||
interface ILoadable {
|
||||
<P = {}>(opts: any): React.ComponentClass<P>
|
||||
Map<P = {}>(opts: any): React.ComponentType<P>
|
||||
preloadAll(): Promise<any>
|
||||
}
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
declare const LoadableExport: LoadableExport.ILoadable
|
||||
|
||||
export = LoadableExport
|
||||
203
kitabcitab/node_modules/next/dist/shared/lib/loadable.js
generated
vendored
Normal file
203
kitabcitab/node_modules/next/dist/shared/lib/loadable.js
generated
vendored
Normal file
@@ -0,0 +1,203 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
var _extends = require("@swc/helpers/lib/_extends.js").default;
|
||||
var _interop_require_default = require("@swc/helpers/lib/_interop_require_default.js").default;
|
||||
var _react = _interop_require_default(require("react"));
|
||||
var _loadableContext = require("./loadable-context");
|
||||
const ALL_INITIALIZERS = [];
|
||||
const READY_INITIALIZERS = [];
|
||||
let initialized = false;
|
||||
function load(loader) {
|
||||
let promise = loader();
|
||||
let state = {
|
||||
loading: true,
|
||||
loaded: null,
|
||||
error: null
|
||||
};
|
||||
state.promise = promise.then((loaded)=>{
|
||||
state.loading = false;
|
||||
state.loaded = loaded;
|
||||
return loaded;
|
||||
}).catch((err)=>{
|
||||
state.loading = false;
|
||||
state.error = err;
|
||||
throw err;
|
||||
});
|
||||
return state;
|
||||
}
|
||||
function createLoadableComponent(loadFn, options) {
|
||||
let opts = Object.assign({
|
||||
loader: null,
|
||||
loading: null,
|
||||
delay: 200,
|
||||
timeout: null,
|
||||
webpack: null,
|
||||
modules: null
|
||||
}, options);
|
||||
opts.lazy = _react.default.lazy(opts.loader);
|
||||
/** @type LoadableSubscription */ let subscription = null;
|
||||
function init() {
|
||||
if (!subscription) {
|
||||
const sub = new LoadableSubscription(loadFn, opts);
|
||||
subscription = {
|
||||
getCurrentValue: sub.getCurrentValue.bind(sub),
|
||||
subscribe: sub.subscribe.bind(sub),
|
||||
retry: sub.retry.bind(sub),
|
||||
promise: sub.promise.bind(sub)
|
||||
};
|
||||
}
|
||||
return subscription.promise();
|
||||
}
|
||||
// Server only
|
||||
if (typeof window === 'undefined') {
|
||||
ALL_INITIALIZERS.push(init);
|
||||
}
|
||||
// Client only
|
||||
if (!initialized && typeof window !== 'undefined') {
|
||||
// require.resolveWeak check is needed for environments that don't have it available like Jest
|
||||
const moduleIds = opts.webpack && typeof require.resolveWeak === 'function' ? opts.webpack() : opts.modules;
|
||||
if (moduleIds) {
|
||||
READY_INITIALIZERS.push((ids)=>{
|
||||
for (const moduleId of moduleIds){
|
||||
if (ids.indexOf(moduleId) !== -1) {
|
||||
return init();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
function useLoadableModule() {
|
||||
init();
|
||||
const context = _react.default.useContext(_loadableContext.LoadableContext);
|
||||
if (context && Array.isArray(opts.modules)) {
|
||||
opts.modules.forEach((moduleName)=>{
|
||||
context(moduleName);
|
||||
});
|
||||
}
|
||||
}
|
||||
function LoadableComponent(props) {
|
||||
useLoadableModule();
|
||||
const fallbackElement = _react.default.createElement(opts.loading, {
|
||||
isLoading: true,
|
||||
pastDelay: true,
|
||||
error: null
|
||||
});
|
||||
return _react.default.createElement(_react.default.Suspense, {
|
||||
fallback: fallbackElement
|
||||
}, _react.default.createElement(opts.lazy, props));
|
||||
}
|
||||
LoadableComponent.preload = ()=>init();
|
||||
LoadableComponent.displayName = 'LoadableComponent';
|
||||
return LoadableComponent;
|
||||
}
|
||||
class LoadableSubscription {
|
||||
promise() {
|
||||
return this._res.promise;
|
||||
}
|
||||
retry() {
|
||||
this._clearTimeouts();
|
||||
this._res = this._loadFn(this._opts.loader);
|
||||
this._state = {
|
||||
pastDelay: false,
|
||||
timedOut: false
|
||||
};
|
||||
const { _res: res , _opts: opts } = this;
|
||||
if (res.loading) {
|
||||
if (typeof opts.delay === 'number') {
|
||||
if (opts.delay === 0) {
|
||||
this._state.pastDelay = true;
|
||||
} else {
|
||||
this._delay = setTimeout(()=>{
|
||||
this._update({
|
||||
pastDelay: true
|
||||
});
|
||||
}, opts.delay);
|
||||
}
|
||||
}
|
||||
if (typeof opts.timeout === 'number') {
|
||||
this._timeout = setTimeout(()=>{
|
||||
this._update({
|
||||
timedOut: true
|
||||
});
|
||||
}, opts.timeout);
|
||||
}
|
||||
}
|
||||
this._res.promise.then(()=>{
|
||||
this._update({});
|
||||
this._clearTimeouts();
|
||||
}).catch((_err)=>{
|
||||
this._update({});
|
||||
this._clearTimeouts();
|
||||
});
|
||||
this._update({});
|
||||
}
|
||||
_update(partial) {
|
||||
this._state = _extends({}, this._state, {
|
||||
error: this._res.error,
|
||||
loaded: this._res.loaded,
|
||||
loading: this._res.loading
|
||||
}, partial);
|
||||
this._callbacks.forEach((callback)=>callback());
|
||||
}
|
||||
_clearTimeouts() {
|
||||
clearTimeout(this._delay);
|
||||
clearTimeout(this._timeout);
|
||||
}
|
||||
getCurrentValue() {
|
||||
return this._state;
|
||||
}
|
||||
subscribe(callback) {
|
||||
this._callbacks.add(callback);
|
||||
return ()=>{
|
||||
this._callbacks.delete(callback);
|
||||
};
|
||||
}
|
||||
constructor(loadFn, opts){
|
||||
this._loadFn = loadFn;
|
||||
this._opts = opts;
|
||||
this._callbacks = new Set();
|
||||
this._delay = null;
|
||||
this._timeout = null;
|
||||
this.retry();
|
||||
}
|
||||
}
|
||||
function Loadable(opts) {
|
||||
return createLoadableComponent(load, opts);
|
||||
}
|
||||
function flushInitializers(initializers, ids) {
|
||||
let promises = [];
|
||||
while(initializers.length){
|
||||
let init = initializers.pop();
|
||||
promises.push(init(ids));
|
||||
}
|
||||
return Promise.all(promises).then(()=>{
|
||||
if (initializers.length) {
|
||||
return flushInitializers(initializers, ids);
|
||||
}
|
||||
});
|
||||
}
|
||||
Loadable.preloadAll = ()=>{
|
||||
return new Promise((resolveInitializers, reject)=>{
|
||||
flushInitializers(ALL_INITIALIZERS).then(resolveInitializers, reject);
|
||||
});
|
||||
};
|
||||
Loadable.preloadReady = (ids = [])=>{
|
||||
return new Promise((resolvePreload)=>{
|
||||
const res = ()=>{
|
||||
initialized = true;
|
||||
return resolvePreload();
|
||||
};
|
||||
// We always will resolve, errors should be handled within loading UIs.
|
||||
flushInitializers(READY_INITIALIZERS, ids).then(res, res);
|
||||
});
|
||||
};
|
||||
if (typeof window !== 'undefined') {
|
||||
window.__NEXT_PRELOADREADY = Loadable.preloadReady;
|
||||
}
|
||||
var _default = Loadable;
|
||||
exports.default = _default;
|
||||
|
||||
//# sourceMappingURL=loadable.js.map
|
||||
1
kitabcitab/node_modules/next/dist/shared/lib/loadable.js.map
generated
vendored
Normal file
1
kitabcitab/node_modules/next/dist/shared/lib/loadable.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
3
kitabcitab/node_modules/next/dist/shared/lib/match-remote-pattern.d.ts
generated
vendored
Normal file
3
kitabcitab/node_modules/next/dist/shared/lib/match-remote-pattern.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
import type { RemotePattern } from './image-config';
|
||||
export declare function matchRemotePattern(pattern: RemotePattern, url: URL): boolean;
|
||||
export declare function hasMatch(domains: string[], remotePatterns: RemotePattern[], url: URL): boolean;
|
||||
37
kitabcitab/node_modules/next/dist/shared/lib/match-remote-pattern.js
generated
vendored
Normal file
37
kitabcitab/node_modules/next/dist/shared/lib/match-remote-pattern.js
generated
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.matchRemotePattern = matchRemotePattern;
|
||||
exports.hasMatch = hasMatch;
|
||||
var _micromatch = require("next/dist/compiled/micromatch");
|
||||
function matchRemotePattern(pattern, url) {
|
||||
if (pattern.protocol !== undefined) {
|
||||
const actualProto = url.protocol.slice(0, -1);
|
||||
if (pattern.protocol !== actualProto) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (pattern.port !== undefined) {
|
||||
if (pattern.port !== url.port) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (pattern.hostname === undefined) {
|
||||
throw new Error(`Pattern should define hostname but found\n${JSON.stringify(pattern)}`);
|
||||
} else {
|
||||
if (!(0, _micromatch).makeRe(pattern.hostname).test(url.hostname)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
var _pathname;
|
||||
if (!(0, _micromatch).makeRe((_pathname = pattern.pathname) != null ? _pathname : '**').test(url.pathname)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
function hasMatch(domains, remotePatterns, url) {
|
||||
return domains.some((domain)=>url.hostname === domain) || remotePatterns.some((p)=>matchRemotePattern(p, url));
|
||||
}
|
||||
|
||||
//# sourceMappingURL=match-remote-pattern.js.map
|
||||
1
kitabcitab/node_modules/next/dist/shared/lib/match-remote-pattern.js.map
generated
vendored
Normal file
1
kitabcitab/node_modules/next/dist/shared/lib/match-remote-pattern.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../shared/lib/match-remote-pattern.ts"],"names":["matchRemotePattern","hasMatch","pattern","url","protocol","undefined","actualProto","slice","port","hostname","Error","JSON","stringify","makeRe","test","pathname","domains","remotePatterns","some","domain","p"],"mappings":"AAAA;;;;QAGgBA,kBAAkB,GAAlBA,kBAAkB;QA8BlBC,QAAQ,GAARA,QAAQ;AAhCD,IAAA,WAA+B,WAA/B,+BAA+B,CAAA;AAE/C,SAASD,kBAAkB,CAACE,OAAsB,EAAEC,GAAQ,EAAW;IAC5E,IAAID,OAAO,CAACE,QAAQ,KAAKC,SAAS,EAAE;QAClC,MAAMC,WAAW,GAAGH,GAAG,CAACC,QAAQ,CAACG,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAC7C,IAAIL,OAAO,CAACE,QAAQ,KAAKE,WAAW,EAAE;YACpC,OAAO,KAAK,CAAA;SACb;KACF;IACD,IAAIJ,OAAO,CAACM,IAAI,KAAKH,SAAS,EAAE;QAC9B,IAAIH,OAAO,CAACM,IAAI,KAAKL,GAAG,CAACK,IAAI,EAAE;YAC7B,OAAO,KAAK,CAAA;SACb;KACF;IAED,IAAIN,OAAO,CAACO,QAAQ,KAAKJ,SAAS,EAAE;QAClC,MAAM,IAAIK,KAAK,CACb,CAAC,0CAA0C,EAAEC,IAAI,CAACC,SAAS,CAACV,OAAO,CAAC,CAAC,CAAC,CACvE,CAAA;KACF,MAAM;QACL,IAAI,CAACW,CAAAA,GAAAA,WAAM,AAAkB,CAAA,OAAlB,CAACX,OAAO,CAACO,QAAQ,CAAC,CAACK,IAAI,CAACX,GAAG,CAACM,QAAQ,CAAC,EAAE;YAChD,OAAO,KAAK,CAAA;SACb;KACF;QAEWP,SAAgB;IAA5B,IAAI,CAACW,CAAAA,GAAAA,WAAM,AAA0B,CAAA,OAA1B,CAACX,CAAAA,SAAgB,GAAhBA,OAAO,CAACa,QAAQ,YAAhBb,SAAgB,GAAI,IAAI,CAAC,CAACY,IAAI,CAACX,GAAG,CAACY,QAAQ,CAAC,EAAE;QACxD,OAAO,KAAK,CAAA;KACb;IAED,OAAO,IAAI,CAAA;CACZ;AAEM,SAASd,QAAQ,CACtBe,OAAiB,EACjBC,cAA+B,EAC/Bd,GAAQ,EACC;IACT,OACEa,OAAO,CAACE,IAAI,CAAC,CAACC,MAAM,GAAKhB,GAAG,CAACM,QAAQ,KAAKU,MAAM,CAAC,IACjDF,cAAc,CAACC,IAAI,CAAC,CAACE,CAAC,GAAKpB,kBAAkB,CAACoB,CAAC,EAAEjB,GAAG,CAAC,CAAC,CACvD;CACF"}
|
||||
8
kitabcitab/node_modules/next/dist/shared/lib/mitt.d.ts
generated
vendored
Normal file
8
kitabcitab/node_modules/next/dist/shared/lib/mitt.d.ts
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
declare type Handler = (...evts: any[]) => void;
|
||||
export declare type MittEmitter<T> = {
|
||||
on(type: T, handler: Handler): void;
|
||||
off(type: T, handler: Handler): void;
|
||||
emit(type: T, ...evts: any[]): void;
|
||||
};
|
||||
export default function mitt(): MittEmitter<string>;
|
||||
export {};
|
||||
25
kitabcitab/node_modules/next/dist/shared/lib/mitt.js
generated
vendored
Normal file
25
kitabcitab/node_modules/next/dist/shared/lib/mitt.js
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = mitt;
|
||||
function mitt() {
|
||||
const all = Object.create(null);
|
||||
return {
|
||||
on (type, handler) {
|
||||
(all[type] || (all[type] = [])).push(handler);
|
||||
},
|
||||
off (type, handler) {
|
||||
if (all[type]) {
|
||||
all[type].splice(all[type].indexOf(handler) >>> 0, 1);
|
||||
}
|
||||
},
|
||||
emit (type, ...evts) {
|
||||
(all[type] || []).slice().map((handler)=>{
|
||||
handler(...evts);
|
||||
});
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
//# sourceMappingURL=mitt.js.map
|
||||
1
kitabcitab/node_modules/next/dist/shared/lib/mitt.js.map
generated
vendored
Normal file
1
kitabcitab/node_modules/next/dist/shared/lib/mitt.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../shared/lib/mitt.ts"],"names":["mitt","all","Object","create","on","type","handler","push","off","splice","indexOf","emit","evts","slice","map"],"mappings":"AAgBA;;;;kBAQwBA,IAAI;AAAb,SAASA,IAAI,GAAwB;IAClD,MAAMC,GAAG,GAA+BC,MAAM,CAACC,MAAM,CAAC,IAAI,CAAC;IAE3D,OAAO;QACLC,EAAE,EAACC,IAAY,EAAEC,OAAgB,EAAE;YAChC,CAACL,GAAG,CAACI,IAAI,CAAC,IAAI,CAACJ,GAAG,CAACI,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,CAACE,IAAI,CAACD,OAAO,CAAC;SAC/C;QAEDE,GAAG,EAACH,IAAY,EAAEC,OAAgB,EAAE;YAClC,IAAIL,GAAG,CAACI,IAAI,CAAC,EAAE;gBACbJ,GAAG,CAACI,IAAI,CAAC,CAACI,MAAM,CAACR,GAAG,CAACI,IAAI,CAAC,CAACK,OAAO,CAACJ,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;aACtD;SACF;QAEDK,IAAI,EAACN,IAAY,EAAE,GAAGO,IAAI,AAAO,EAAE;YAEhC,CAACX,GAAG,CAACI,IAAI,CAAC,IAAI,EAAE,CAAC,CAACQ,KAAK,EAAE,CAACC,GAAG,CAAC,CAACR,OAAgB,GAAK;gBACnDA,OAAO,IAAIM,IAAI,CAAC;aACjB,CAAC;SACH;KACF,CAAA;CACF"}
|
||||
1
kitabcitab/node_modules/next/dist/shared/lib/no-ssr-error.d.ts
generated
vendored
Normal file
1
kitabcitab/node_modules/next/dist/shared/lib/no-ssr-error.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export declare const NEXT_DYNAMIC_NO_SSR_CODE = "DYNAMIC_SERVER_USAGE";
|
||||
9
kitabcitab/node_modules/next/dist/shared/lib/no-ssr-error.js
generated
vendored
Normal file
9
kitabcitab/node_modules/next/dist/shared/lib/no-ssr-error.js
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.NEXT_DYNAMIC_NO_SSR_CODE = void 0;
|
||||
const NEXT_DYNAMIC_NO_SSR_CODE = 'DYNAMIC_SERVER_USAGE';
|
||||
exports.NEXT_DYNAMIC_NO_SSR_CODE = NEXT_DYNAMIC_NO_SSR_CODE;
|
||||
|
||||
//# sourceMappingURL=no-ssr-error.js.map
|
||||
1
kitabcitab/node_modules/next/dist/shared/lib/no-ssr-error.js.map
generated
vendored
Normal file
1
kitabcitab/node_modules/next/dist/shared/lib/no-ssr-error.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../shared/lib/no-ssr-error.ts"],"names":["NEXT_DYNAMIC_NO_SSR_CODE"],"mappings":"AAEA;;;;;AAAO,MAAMA,wBAAwB,GAAG,sBAAsB;QAAjDA,wBAAwB,GAAxBA,wBAAwB"}
|
||||
16
kitabcitab/node_modules/next/dist/shared/lib/page-path/absolute-path-to-page.d.ts
generated
vendored
Normal file
16
kitabcitab/node_modules/next/dist/shared/lib/page-path/absolute-path-to-page.d.ts
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* Given the absolute path to the pages folder, an absolute file path for a
|
||||
* page and the page extensions, this function will return the page path
|
||||
* relative to the pages folder. It doesn't consider index tail. Example:
|
||||
* - `/Users/rick/my-project/pages/foo/bar/baz.js` -> `/foo/bar/baz`
|
||||
*
|
||||
* @param filepath Absolute path to the page.
|
||||
* @param opts.pagesDir Absolute path to the pages folder.
|
||||
* @param opts.extensions Extensions allowed for the page.
|
||||
* @param opts.keepIndex When true the trailing `index` kept in the path.
|
||||
*/
|
||||
export declare function absolutePathToPage(pagePath: string, options: {
|
||||
extensions: string[];
|
||||
keepIndex?: boolean;
|
||||
pagesDir: string;
|
||||
}): string;
|
||||
17
kitabcitab/node_modules/next/dist/shared/lib/page-path/absolute-path-to-page.js
generated
vendored
Normal file
17
kitabcitab/node_modules/next/dist/shared/lib/page-path/absolute-path-to-page.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.absolutePathToPage = absolutePathToPage;
|
||||
var _ensureLeadingSlash = require("./ensure-leading-slash");
|
||||
var _normalizePathSep = require("./normalize-path-sep");
|
||||
var _path = require("../isomorphic/path");
|
||||
var _removePagePathTail = require("./remove-page-path-tail");
|
||||
function absolutePathToPage(pagePath, options) {
|
||||
return (0, _removePagePathTail).removePagePathTail((0, _normalizePathSep).normalizePathSep((0, _ensureLeadingSlash).ensureLeadingSlash((0, _path).relative(options.pagesDir, pagePath))), {
|
||||
extensions: options.extensions,
|
||||
keepIndex: options.keepIndex
|
||||
});
|
||||
}
|
||||
|
||||
//# sourceMappingURL=absolute-path-to-page.js.map
|
||||
1
kitabcitab/node_modules/next/dist/shared/lib/page-path/absolute-path-to-page.js.map
generated
vendored
Normal file
1
kitabcitab/node_modules/next/dist/shared/lib/page-path/absolute-path-to-page.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../shared/lib/page-path/absolute-path-to-page.ts"],"names":["absolutePathToPage","pagePath","options","removePagePathTail","normalizePathSep","ensureLeadingSlash","relative","pagesDir","extensions","keepIndex"],"mappings":"AAAA;;;;QAgBgBA,kBAAkB,GAAlBA,kBAAkB;AAhBC,IAAA,mBAAwB,WAAxB,wBAAwB,CAAA;AAC1B,IAAA,iBAAsB,WAAtB,sBAAsB,CAAA;AAC9B,IAAA,KAAoB,WAApB,oBAAoB,CAAA;AACV,IAAA,mBAAyB,WAAzB,yBAAyB,CAAA;AAarD,SAASA,kBAAkB,CAChCC,QAAgB,EAChBC,OAIC,EACD;IACA,OAAOC,CAAAA,GAAAA,mBAAkB,AAMxB,CAAA,mBANwB,CACvBC,CAAAA,GAAAA,iBAAgB,AAA0D,CAAA,iBAA1D,CAACC,CAAAA,GAAAA,mBAAkB,AAAsC,CAAA,mBAAtC,CAACC,CAAAA,GAAAA,KAAQ,AAA4B,CAAA,SAA5B,CAACJ,OAAO,CAACK,QAAQ,EAAEN,QAAQ,CAAC,CAAC,CAAC,EAC1E;QACEO,UAAU,EAAEN,OAAO,CAACM,UAAU;QAC9BC,SAAS,EAAEP,OAAO,CAACO,SAAS;KAC7B,CACF,CAAA;CACF"}
|
||||
9
kitabcitab/node_modules/next/dist/shared/lib/page-path/denormalize-page-path.d.ts
generated
vendored
Normal file
9
kitabcitab/node_modules/next/dist/shared/lib/page-path/denormalize-page-path.d.ts
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
/**
|
||||
* Performs the opposite transformation of `normalizePagePath`. Note that
|
||||
* this function is not idempotent either in cases where there are multiple
|
||||
* leading `/index` for the page. Examples:
|
||||
* - `/index` -> `/`
|
||||
* - `/index/foo` -> `/foo`
|
||||
* - `/index/index` -> `/index`
|
||||
*/
|
||||
export declare function denormalizePagePath(page: string): string;
|
||||
13
kitabcitab/node_modules/next/dist/shared/lib/page-path/denormalize-page-path.js
generated
vendored
Normal file
13
kitabcitab/node_modules/next/dist/shared/lib/page-path/denormalize-page-path.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.denormalizePagePath = denormalizePagePath;
|
||||
var _utils = require("../router/utils");
|
||||
var _normalizePathSep = require("./normalize-path-sep");
|
||||
function denormalizePagePath(page) {
|
||||
let _page = (0, _normalizePathSep).normalizePathSep(page);
|
||||
return _page.startsWith('/index/') && !(0, _utils).isDynamicRoute(_page) ? _page.slice(6) : _page !== '/index' ? _page : '/';
|
||||
}
|
||||
|
||||
//# sourceMappingURL=denormalize-page-path.js.map
|
||||
1
kitabcitab/node_modules/next/dist/shared/lib/page-path/denormalize-page-path.js.map
generated
vendored
Normal file
1
kitabcitab/node_modules/next/dist/shared/lib/page-path/denormalize-page-path.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../shared/lib/page-path/denormalize-page-path.ts"],"names":["denormalizePagePath","page","_page","normalizePathSep","startsWith","isDynamicRoute","slice"],"mappings":"AAAA;;;;QAWgBA,mBAAmB,GAAnBA,mBAAmB;AAXJ,IAAA,MAAiB,WAAjB,iBAAiB,CAAA;AACf,IAAA,iBAAsB,WAAtB,sBAAsB,CAAA;AAUhD,SAASA,mBAAmB,CAACC,IAAY,EAAE;IAChD,IAAIC,KAAK,GAAGC,CAAAA,GAAAA,iBAAgB,AAAM,CAAA,iBAAN,CAACF,IAAI,CAAC;IAClC,OAAOC,KAAK,CAACE,UAAU,CAAC,SAAS,CAAC,IAAI,CAACC,CAAAA,GAAAA,MAAc,AAAO,CAAA,eAAP,CAACH,KAAK,CAAC,GACxDA,KAAK,CAACI,KAAK,CAAC,CAAC,CAAC,GACdJ,KAAK,KAAK,QAAQ,GAClBA,KAAK,GACL,GAAG,CAAA;CACR"}
|
||||
5
kitabcitab/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.d.ts
generated
vendored
Normal file
5
kitabcitab/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.d.ts
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
/**
|
||||
* For a given page path, this function ensures that there is a leading slash.
|
||||
* If there is not a leading slash, one is added, otherwise it is noop.
|
||||
*/
|
||||
export declare function ensureLeadingSlash(path: string): string;
|
||||
10
kitabcitab/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js
generated
vendored
Normal file
10
kitabcitab/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.ensureLeadingSlash = ensureLeadingSlash;
|
||||
function ensureLeadingSlash(path) {
|
||||
return path.startsWith('/') ? path : `/${path}`;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=ensure-leading-slash.js.map
|
||||
1
kitabcitab/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js.map
generated
vendored
Normal file
1
kitabcitab/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../shared/lib/page-path/ensure-leading-slash.ts"],"names":["ensureLeadingSlash","path","startsWith"],"mappings":"AAIA;;;;QAAgBA,kBAAkB,GAAlBA,kBAAkB;AAA3B,SAASA,kBAAkB,CAACC,IAAY,EAAE;IAC/C,OAAOA,IAAI,CAACC,UAAU,CAAC,GAAG,CAAC,GAAGD,IAAI,GAAG,CAAC,CAAC,EAAEA,IAAI,CAAC,CAAC,CAAA;CAChD"}
|
||||
12
kitabcitab/node_modules/next/dist/shared/lib/page-path/get-page-paths.d.ts
generated
vendored
Normal file
12
kitabcitab/node_modules/next/dist/shared/lib/page-path/get-page-paths.d.ts
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* Calculate all possible pagePaths for a given normalized pagePath along with
|
||||
* allowed extensions. This can be used to check which one of the files exists
|
||||
* and to debug inspected locations.
|
||||
*
|
||||
* For pages, map `/route` to [`/route.[ext]`, `/route/index.[ext]`]
|
||||
* For app paths, map `/route/page` to [`/route/page.[ext]`]
|
||||
*
|
||||
* @param normalizedPagePath Normalized page path (it will denormalize).
|
||||
* @param extensions Allowed extensions.
|
||||
*/
|
||||
export declare function getPagePaths(normalizedPagePath: string, extensions: string[], isAppDir: boolean): string[];
|
||||
28
kitabcitab/node_modules/next/dist/shared/lib/page-path/get-page-paths.js
generated
vendored
Normal file
28
kitabcitab/node_modules/next/dist/shared/lib/page-path/get-page-paths.js
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.getPagePaths = getPagePaths;
|
||||
var _denormalizePagePath = require("./denormalize-page-path");
|
||||
var _flatten = require("../flatten");
|
||||
var _path = require("../isomorphic/path");
|
||||
function getPagePaths(normalizedPagePath, extensions, isAppDir) {
|
||||
const page = (0, _denormalizePagePath).denormalizePagePath(normalizedPagePath);
|
||||
return (0, _flatten).flatten(extensions.map((extension)=>{
|
||||
const appPage = `${page}.${extension}`;
|
||||
const folderIndexPage = (0, _path).join(page, `index.${extension}`);
|
||||
if (!normalizedPagePath.endsWith('/index')) {
|
||||
return isAppDir ? [
|
||||
appPage
|
||||
] : [
|
||||
`${page}.${extension}`,
|
||||
folderIndexPage
|
||||
];
|
||||
}
|
||||
return [
|
||||
isAppDir ? appPage : folderIndexPage
|
||||
];
|
||||
}));
|
||||
}
|
||||
|
||||
//# sourceMappingURL=get-page-paths.js.map
|
||||
1
kitabcitab/node_modules/next/dist/shared/lib/page-path/get-page-paths.js.map
generated
vendored
Normal file
1
kitabcitab/node_modules/next/dist/shared/lib/page-path/get-page-paths.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../shared/lib/page-path/get-page-paths.ts"],"names":["getPagePaths","normalizedPagePath","extensions","isAppDir","page","denormalizePagePath","flatten","map","extension","appPage","folderIndexPage","join","endsWith"],"mappings":"AAAA;;;;QAegBA,YAAY,GAAZA,YAAY;AAfQ,IAAA,oBAAyB,WAAzB,yBAAyB,CAAA;AACrC,IAAA,QAAY,WAAZ,YAAY,CAAA;AACf,IAAA,KAAoB,WAApB,oBAAoB,CAAA;AAalC,SAASA,YAAY,CAC1BC,kBAA0B,EAC1BC,UAAoB,EACpBC,QAAiB,EACjB;IACA,MAAMC,IAAI,GAAGC,CAAAA,GAAAA,oBAAmB,AAAoB,CAAA,oBAApB,CAACJ,kBAAkB,CAAC;IAEpD,OAAOK,CAAAA,GAAAA,QAAO,AAUb,CAAA,QAVa,CACZJ,UAAU,CAACK,GAAG,CAAC,CAACC,SAAS,GAAK;QAC5B,MAAMC,OAAO,GAAG,CAAC,EAAEL,IAAI,CAAC,CAAC,EAAEI,SAAS,CAAC,CAAC;QACtC,MAAME,eAAe,GAAGC,CAAAA,GAAAA,KAAI,AAA4B,CAAA,KAA5B,CAACP,IAAI,EAAE,CAAC,MAAM,EAAEI,SAAS,CAAC,CAAC,CAAC;QAExD,IAAI,CAACP,kBAAkB,CAACW,QAAQ,CAAC,QAAQ,CAAC,EAAE;YAC1C,OAAOT,QAAQ,GAAG;gBAACM,OAAO;aAAC,GAAG;gBAAC,CAAC,EAAEL,IAAI,CAAC,CAAC,EAAEI,SAAS,CAAC,CAAC;gBAAEE,eAAe;aAAC,CAAA;SACxE;QACD,OAAO;YAACP,QAAQ,GAAGM,OAAO,GAAGC,eAAe;SAAC,CAAA;KAC9C,CAAC,CACH,CAAA;CACF"}
|
||||
10
kitabcitab/node_modules/next/dist/shared/lib/page-path/normalize-page-path.d.ts
generated
vendored
Normal file
10
kitabcitab/node_modules/next/dist/shared/lib/page-path/normalize-page-path.d.ts
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
/**
|
||||
* Takes a page and transforms it into its file counterpart ensuring that the
|
||||
* output is normalized. Note this function is not idempotent because a page
|
||||
* `/index` can be referencing `/index/index.js` and `/index/index` could be
|
||||
* referencing `/index/index/index.js`. Examples:
|
||||
* - `/` -> `/index`
|
||||
* - `/index/foo` -> `/index/index/foo`
|
||||
* - `/index` -> `/index/index`
|
||||
*/
|
||||
export declare function normalizePagePath(page: string): string;
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user