Skip to content

Instantly share code, notes, and snippets.

@bordeo
Created July 14, 2021 09:28
Show Gist options
  • Save bordeo/8fd4e87eff72ad9c0395a2dda9c35f88 to your computer and use it in GitHub Desktop.
Save bordeo/8fd4e87eff72ad9c0395a2dda9c35f88 to your computer and use it in GitHub Desktop.
Patches
This file has been truncated, but you can view the full file.
diff --git a/node_modules/next/dist/build/babel/plugins/react-loadable-plugin.js b/node_modules/next/dist/build/babel/plugins/react-loadable-plugin.js
index afa2025..ec325f7 100644
--- a/node_modules/next/dist/build/babel/plugins/react-loadable-plugin.js
+++ b/node_modules/next/dist/build/babel/plugins/react-loadable-plugin.js
@@ -22,7 +22,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWAR
// Modified to put `webpack` and `modules` under `loadableGenerated` to be backwards compatible with next/dynamic which has a `modules` key
// Modified to support `dynamic(import('something'))` and `dynamic(import('something'), options)
function _default({types:t}){return{visitor:{ImportDeclaration(path,state){let source=path.node.source.value;if(source!=='next/dynamic')return;let defaultSpecifier=path.get('specifiers').find(specifier=>{return specifier.isImportDefaultSpecifier();});if(!defaultSpecifier)return;const bindingName=defaultSpecifier.node.local.name;const binding=path.scope.getBinding(bindingName);if(!binding){return;}binding.referencePaths.forEach(refPath=>{let callExpression=refPath.parentPath;if(callExpression.isMemberExpression()&&callExpression.node.computed===false){const property=callExpression.get('property');if(!Array.isArray(property)&&property.isIdentifier({name:'Map'})){callExpression=callExpression.parentPath;}}if(!callExpression.isCallExpression())return;const callExpression_=callExpression;let args=callExpression_.get('arguments');if(args.length>2){throw callExpression_.buildCodeFrameError('next/dynamic only accepts 2 arguments');}if(!args[0]){return;}let loader;let options;if(args[0].isObjectExpression()){options=args[0];}else{if(!args[1]){callExpression_.node.arguments.push(t.objectExpression([]));}// This is needed as the code is modified above
-args=callExpression_.get('arguments');loader=args[0];options=args[1];}if(!options.isObjectExpression())return;const options_=options;let properties=options_.get('properties');let propertiesMap={};properties.forEach(property=>{const key=property.get('key');propertiesMap[key.node.name]=property;});if(propertiesMap.loadableGenerated){return;}if(propertiesMap.loader){loader=propertiesMap.loader.get('value');}if(propertiesMap.modules){loader=propertiesMap.modules.get('value');}if(!loader||Array.isArray(loader)){return;}const dynamicImports=[];const dynamicKeys=[];loader.traverse({Import(importPath){var _state$file$opts$call;const importArguments=importPath.parentPath.get('arguments');if(!Array.isArray(importArguments))return;const node=importArguments[0].node;dynamicImports.push(node);dynamicKeys.push(t.binaryExpression('+',t.stringLiteral(((_state$file$opts$call=state.file.opts.caller)!=null&&_state$file$opts$call.pagesDir?(0,_path.relative)(state.file.opts.caller.pagesDir,state.file.opts.filename):state.file.opts.filename)+' -> '),node));}});if(!dynamicImports.length)return;options.node.properties.push(t.objectProperty(t.identifier('loadableGenerated'),t.objectExpression([t.objectProperty(t.identifier('webpack'),t.arrowFunctionExpression([],t.arrayExpression(dynamicImports.map(dynamicImport=>{return t.callExpression(t.memberExpression(t.identifier('require'),t.identifier('resolveWeak')),[dynamicImport]);})))),t.objectProperty(t.identifier('modules'),t.arrayExpression(dynamicKeys))])));// Turns `dynamic(import('something'))` into `dynamic(() => import('something'))` for backwards compat.
+args=callExpression_.get('arguments');loader=args[0];options=args[1];}if(!options.isObjectExpression())return;const options_=options;let properties=options_.get('properties');let propertiesMap={};properties.forEach(property=>{const key=property.get('key');propertiesMap[key.node.name]=property;});if(propertiesMap.loadableGenerated){return;}if(propertiesMap.loader){loader=propertiesMap.loader.get('value');}if(propertiesMap.modules){loader=propertiesMap.modules.get('value');}if(!loader||Array.isArray(loader)){return;}const dynamicImports=[];const dynamicKeys=[];loader.traverse({Import(importPath){var _state$file$opts$call;const importArguments=importPath.parentPath.get('arguments');if(!Array.isArray(importArguments))return;const node=importArguments[0].node;dynamicImports.push(node);dynamicKeys.push(t.binaryExpression('+',t.stringLiteral(((_state$file$opts$call=state.file.opts.caller)!=null&&_state$file$opts$call.pagesDirs[0]?(0,_path.relative)(state.file.opts.caller.pagesDirs[0],state.file.opts.filename):state.file.opts.filename)+' -> '),node));}});if(!dynamicImports.length)return;options.node.properties.push(t.objectProperty(t.identifier('loadableGenerated'),t.objectExpression([t.objectProperty(t.identifier('webpack'),t.arrowFunctionExpression([],t.arrayExpression(dynamicImports.map(dynamicImport=>{return t.callExpression(t.memberExpression(t.identifier('require'),t.identifier('resolveWeak')),[dynamicImport]);})))),t.objectProperty(t.identifier('modules'),t.arrayExpression(dynamicKeys))])));// Turns `dynamic(import('something'))` into `dynamic(() => import('something'))` for backwards compat.
// This is the replicate the behavior in versions below Next.js 7 where we magically handled not executing the `import()` too.
// We'll deprecate this behavior and provide a codemod for it in 7.1.
if(loader.isCallExpression()){const arrowFunction=t.arrowFunctionExpression([],loader.node);loader.replaceWith(arrowFunction);}});}}};}
diff --git a/node_modules/next/dist/build/babel/plugins/react-loadable-plugin.js.map b/node_modules/next/dist/build/babel/plugins/react-loadable-plugin.js.map
index f8c9adc..1122e90 100644
--- a/node_modules/next/dist/build/babel/plugins/react-loadable-plugin.js.map
+++ b/node_modules/next/dist/build/babel/plugins/react-loadable-plugin.js.map
@@ -1 +1 @@
-{"version":3,"sources":["../../../../build/babel/plugins/react-loadable-plugin.ts"],"names":["types","t","visitor","ImportDeclaration","path","state","source","node","value","defaultSpecifier","get","find","specifier","isImportDefaultSpecifier","bindingName","local","name","binding","scope","getBinding","referencePaths","forEach","refPath","callExpression","parentPath","isMemberExpression","computed","property","Array","isArray","isIdentifier","isCallExpression","callExpression_","args","length","buildCodeFrameError","loader","options","isObjectExpression","arguments","push","objectExpression","options_","properties","propertiesMap","key","loadableGenerated","modules","dynamicImports","dynamicKeys","traverse","Import","importPath","importArguments","binaryExpression","stringLiteral","file","opts","caller","pagesDir","filename","objectProperty","identifier","arrowFunctionExpression","arrayExpression","map","dynamicImport","memberExpression","arrowFunction","replaceWith"],"mappings":"8DA+BA,0BA/BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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,CAAaoC,UAAb,CAAwBH,IAAxB,CACEvC,CAAC,CAAC4D,cAAF,CACE5D,CAAC,CAAC6D,UAAF,CAAa,mBAAb,CADF,CAEE7D,CAAC,CAACwC,gBAAF,CAAmB,CACjBxC,CAAC,CAAC4D,cAAF,CACE5D,CAAC,CAAC6D,UAAF,CAAa,SAAb,CADF,CAEE7D,CAAC,CAAC8D,uBAAF,CACE,EADF,CAEE9D,CAAC,CAAC+D,eAAF,CACEhB,cAAc,CAACiB,GAAf,CAAoBC,aAAD,EAAmB,CACpC,MAAOjE,CAAAA,CAAC,CAACsB,cAAF,CACLtB,CAAC,CAACkE,gBAAF,CACElE,CAAC,CAAC6D,UAAF,CAAa,SAAb,CADF,CAEE7D,CAAC,CAAC6D,UAAF,CAAa,aAAb,CAFF,CADK,CAKL,CAACI,aAAD,CALK,CAAP,CAOD,CARD,CADF,CAFF,CAFF,CADiB,CAkBjBjE,CAAC,CAAC4D,cAAF,CACE5D,CAAC,CAAC6D,UAAF,CAAa,SAAb,CADF,CAEE7D,CAAC,CAAC+D,eAAF,CAAkBf,WAAlB,CAFF,CAlBiB,CAAnB,CAFF,CADF,EA6BA;AACA;AACA;AACA,GAAIb,MAAM,CAACL,gBAAP,EAAJ,CAA+B,CAC7B,KAAMqC,CAAAA,aAAa,CAAGnE,CAAC,CAAC8D,uBAAF,CAA0B,EAA1B,CAA8B3B,MAAM,CAAC7B,IAArC,CAAtB,CACA6B,MAAM,CAACiC,WAAP,CAAmBD,aAAnB,EACD,CACF,CAhJD,EAiJD,CAtKM,CADJ,CAAP,CA0KD","sourcesContent":["/**\nCOPYRIGHT (c) 2017-present James Kyle <[email protected]>\n MIT License\n Permission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n The above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWAR\n*/\n// This file is https://github.com/jamiebuilds/react-loadable/blob/master/src/babel.js\n// Modified to also look for `next/dynamic`\n// Modified to put `webpack` and `modules` under `loadableGenerated` to be backwards compatible with next/dynamic which has a `modules` key\n// Modified to support `dynamic(import('something'))` and `dynamic(import('something'), options)\n\nimport {\n NodePath,\n PluginObj,\n types as BabelTypes,\n} from 'next/dist/compiled/babel/core'\n\nimport { relative as relativePath } from 'path'\n\nexport default function ({\n types: t,\n}: {\n types: typeof BabelTypes\n}): PluginObj {\n return {\n visitor: {\n ImportDeclaration(\n path: NodePath<BabelTypes.ImportDeclaration>,\n state: any\n ) {\n let source = path.node.source.value\n if (source !== 'next/dynamic') return\n\n let defaultSpecifier = path.get('specifiers').find((specifier) => {\n return specifier.isImportDefaultSpecifier()\n })\n\n if (!defaultSpecifier) return\n\n const bindingName = defaultSpecifier.node.local.name\n const binding = path.scope.getBinding(bindingName)\n\n if (!binding) {\n return\n }\n\n binding.referencePaths.forEach((refPath) => {\n let callExpression = refPath.parentPath\n\n if (\n callExpression.isMemberExpression() &&\n callExpression.node.computed === false\n ) {\n const property = callExpression.get('property')\n if (\n !Array.isArray(property) &&\n property.isIdentifier({ name: 'Map' })\n ) {\n callExpression = callExpression.parentPath\n }\n }\n\n if (!callExpression.isCallExpression()) return\n\n const callExpression_ = callExpression as NodePath<\n BabelTypes.CallExpression\n >\n\n let args = callExpression_.get('arguments')\n if (args.length > 2) {\n throw callExpression_.buildCodeFrameError(\n 'next/dynamic only accepts 2 arguments'\n )\n }\n\n if (!args[0]) {\n return\n }\n\n let loader\n let options\n\n if (args[0].isObjectExpression()) {\n options = args[0]\n } else {\n if (!args[1]) {\n callExpression_.node.arguments.push(t.objectExpression([]))\n }\n // This is needed as the code is modified above\n args = callExpression_.get('arguments')\n loader = args[0]\n options = args[1]\n }\n\n if (!options.isObjectExpression()) return\n const options_ = options as NodePath<BabelTypes.ObjectExpression>\n\n let properties = options_.get('properties')\n let propertiesMap: {\n [key: string]: NodePath<\n | BabelTypes.ObjectProperty\n | BabelTypes.ObjectMethod\n | BabelTypes.SpreadElement\n >\n } = {}\n\n properties.forEach((property) => {\n const key: any = property.get('key')\n propertiesMap[key.node.name] = property\n })\n\n if (propertiesMap.loadableGenerated) {\n return\n }\n\n if (propertiesMap.loader) {\n loader = propertiesMap.loader.get('value')\n }\n\n if (propertiesMap.modules) {\n loader = propertiesMap.modules.get('value')\n }\n\n if (!loader || Array.isArray(loader)) {\n return\n }\n const dynamicImports: BabelTypes.Expression[] = []\n const dynamicKeys: BabelTypes.Expression[] = []\n\n loader.traverse({\n Import(importPath) {\n const importArguments = importPath.parentPath.get('arguments')\n if (!Array.isArray(importArguments)) return\n const node: any = importArguments[0].node\n dynamicImports.push(node)\n dynamicKeys.push(\n t.binaryExpression(\n '+',\n t.stringLiteral(\n (state.file.opts.caller?.pagesDir\n ? relativePath(\n state.file.opts.caller.pagesDir,\n state.file.opts.filename\n )\n : state.file.opts.filename) + ' -> '\n ),\n node\n )\n )\n },\n })\n\n if (!dynamicImports.length) return\n\n options.node.properties.push(\n t.objectProperty(\n t.identifier('loadableGenerated'),\n t.objectExpression([\n t.objectProperty(\n t.identifier('webpack'),\n t.arrowFunctionExpression(\n [],\n t.arrayExpression(\n dynamicImports.map((dynamicImport) => {\n return t.callExpression(\n t.memberExpression(\n t.identifier('require'),\n t.identifier('resolveWeak')\n ),\n [dynamicImport]\n )\n })\n )\n )\n ),\n t.objectProperty(\n t.identifier('modules'),\n t.arrayExpression(dynamicKeys)\n ),\n ])\n )\n )\n\n // Turns `dynamic(import('something'))` into `dynamic(() => import('something'))` for backwards compat.\n // This is the replicate the behavior in versions below Next.js 7 where we magically handled not executing the `import()` too.\n // We'll deprecate this behavior and provide a codemod for it in 7.1.\n if (loader.isCallExpression()) {\n const arrowFunction = t.arrowFunctionExpression([], loader.node)\n loader.replaceWith(arrowFunction)\n }\n })\n },\n },\n }\n}\n"]}
\ No newline at end of file
+{"version":3,"sources":["../../../../build/babel/plugins/react-loadable-plugin.ts"],"names":["types","t","visitor","ImportDeclaration","path","state","source","node","value","defaultSpecifier","get","find","specifier","isImportDefaultSpecifier","bindingName","local","name","binding","scope","getBinding","referencePaths","forEach","refPath","callExpression","parentPath","isMemberExpression","computed","property","Array","isArray","isIdentifier","isCallExpression","callExpression_","args","length","buildCodeFrameError","loader","options","isObjectExpression","arguments","push","objectExpression","options_","properties","propertiesMap","key","loadableGenerated","modules","dynamicImports","dynamicKeys","traverse","Import","importPath","importArguments","binaryExpression","stringLiteral","file","opts","caller","pagesDirs","filename","objectProperty","identifier","arrowFunctionExpression","arrayExpression","map","dynamicImport","memberExpression","arrowFunction","replaceWith"],"mappings":"8DA+BA,0BA/BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,E,CACA;AACA;AACA;AACA;AAUe,kBAAU,CACvBA,KAAK,CAAEC,CADgB,CAAV,CAID,CACZ,MAAO,CACLC,OAAO,CAAE,CACPC,iBAAiB,CACfC,IADe,CAEfC,KAFe,CAGf,CACA,GAAIC,CAAAA,MAAM,CAAGF,IAAI,CAACG,IAAL,CAAUD,MAAV,CAAiBE,KAA9B,CACA,GAAIF,MAAM,GAAK,cAAf,CAA+B,OAE/B,GAAIG,CAAAA,gBAAgB,C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AC,CAAC+D,eAAF,CACEhB,cAAc,CAACiB,GAAf,CAAoBC,aAAD,EAAmB,CACpC,MAAOjE,CAAAA,CAAC,CAACsB,cAAF,CACLtB,CAAC,CAACkE,gBAAF,CACElE,CAAC,CAAC6D,UAAF,CAAa,SAAb,CADF,CAEE7D,CAAC,CAAC6D,UAAF,CAAa,aAAb,CAFF,CADK,CAKL,CAACI,aAAD,CALK,CAAP,CAOD,CARD,CADF,CAFF,CAFF,CADiB,CAkBjBjE,CAAC,CAAC4D,cAAF,CACE5D,CAAC,CAAC6D,UAAF,CAAa,SAAb,CADF,CAEE7D,CAAC,CAAC+D,eAAF,CAAkBf,WAAlB,CAFF,CAlBiB,CAAnB,CAFF,CADF,EA6BA;AACA;AACA;AACA,GAAIb,MAAM,CAACL,gBAAP,EAAJ,CAA+B,CAC7B,KAAMqC,CAAAA,aAAa,CAAGnE,CAAC,CAAC8D,uBAAF,CAA0B,EAA1B,CAA8B3B,MAAM,CAAC7B,IAArC,CAAtB,CACA6B,MAAM,CAACiC,WAAP,CAAmBD,aAAnB,EACD,CACF,CAhJD,EAiJD,CAtKM,CADJ,CAAP,CA0KD","sourcesContent":["/**\nCOPYRIGHT (c) 2017-present James Kyle <[email protected]>\n MIT License\n Permission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n The above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWAR\n*/\n// This file is https://github.com/jamiebuilds/react-loadable/blob/master/src/babel.js\n// Modified to also look for `next/dynamic`\n// Modified to put `webpack` and `modules` under `loadableGenerated` to be backwards compatible with next/dynamic which has a `modules` key\n// Modified to support `dynamic(import('something'))` and `dynamic(import('something'), options)\n\nimport {\n NodePath,\n PluginObj,\n types as BabelTypes,\n} from 'next/dist/compiled/babel/core'\n\nimport { relative as relativePath } from 'path'\n\nexport default function ({\n types: t,\n}: {\n types: typeof BabelTypes\n}): PluginObj {\n return {\n visitor: {\n ImportDeclaration(\n path: NodePath<BabelTypes.ImportDeclaration>,\n state: any\n ) {\n let source = path.node.source.value\n if (source !== 'next/dynamic') return\n\n let defaultSpecifier = path.get('specifiers').find((specifier) => {\n return specifier.isImportDefaultSpecifier()\n })\n\n if (!defaultSpecifier) return\n\n const bindingName = defaultSpecifier.node.local.name\n const binding = path.scope.getBinding(bindingName)\n\n if (!binding) {\n return\n }\n\n binding.referencePaths.forEach((refPath) => {\n let callExpression = refPath.parentPath\n\n if (\n callExpression.isMemberExpression() &&\n callExpression.node.computed === false\n ) {\n const property = callExpression.get('property')\n if (\n !Array.isArray(property) &&\n property.isIdentifier({ name: 'Map' })\n ) {\n callExpression = callExpression.parentPath\n }\n }\n\n if (!callExpression.isCallExpression()) return\n\n const callExpression_ = callExpression as NodePath<\n BabelTypes.CallExpression\n >\n\n let args = callExpression_.get('arguments')\n if (args.length > 2) {\n throw callExpression_.buildCodeFrameError(\n 'next/dynamic only accepts 2 arguments'\n )\n }\n\n if (!args[0]) {\n return\n }\n\n let loader\n let options\n\n if (args[0].isObjectExpression()) {\n options = args[0]\n } else {\n if (!args[1]) {\n callExpression_.node.arguments.push(t.objectExpression([]))\n }\n // This is needed as the code is modified above\n args = callExpression_.get('arguments')\n loader = args[0]\n options = args[1]\n }\n\n if (!options.isObjectExpression()) return\n const options_ = options as NodePath<BabelTypes.ObjectExpression>\n\n let properties = options_.get('properties')\n let propertiesMap: {\n [key: string]: NodePath<\n | BabelTypes.ObjectProperty\n | BabelTypes.ObjectMethod\n | BabelTypes.SpreadElement\n >\n } = {}\n\n properties.forEach((property) => {\n const key: any = property.get('key')\n propertiesMap[key.node.name] = property\n })\n\n if (propertiesMap.loadableGenerated) {\n return\n }\n\n if (propertiesMap.loader) {\n loader = propertiesMap.loader.get('value')\n }\n\n if (propertiesMap.modules) {\n loader = propertiesMap.modules.get('value')\n }\n\n if (!loader || Array.isArray(loader)) {\n return\n }\n const dynamicImports: BabelTypes.Expression[] = []\n const dynamicKeys: BabelTypes.Expression[] = []\n\n loader.traverse({\n Import(importPath) {\n const importArguments = importPath.parentPath.get('arguments')\n if (!Array.isArray(importArguments)) return\n const node: any = importArguments[0].node\n dynamicImports.push(node)\n dynamicKeys.push(\n t.binaryExpression(\n '+',\n t.stringLiteral(\n (state.file.opts.caller?.pagesDirs[0]\n ? relativePath(\n state.file.opts.caller.pagesDirs[0],\n state.file.opts.filename\n )\n : state.file.opts.filename) + ' -> '\n ),\n node\n )\n )\n },\n })\n\n if (!dynamicImports.length) return\n\n options.node.properties.push(\n t.objectProperty(\n t.identifier('loadableGenerated'),\n t.objectExpression([\n t.objectProperty(\n t.identifier('webpack'),\n t.arrowFunctionExpression(\n [],\n t.arrayExpression(\n dynamicImports.map((dynamicImport) => {\n return t.callExpression(\n t.memberExpression(\n t.identifier('require'),\n t.identifier('resolveWeak')\n ),\n [dynamicImport]\n )\n })\n )\n )\n ),\n t.objectProperty(\n t.identifier('modules'),\n t.arrayExpression(dynamicKeys)\n ),\n ])\n )\n )\n\n // Turns `dynamic(import('something'))` into `dynamic(() => import('something'))` for backwards compat.\n // This is the replicate the behavior in versions below Next.js 7 where we magically handled not executing the `import()` too.\n // We'll deprecate this behavior and provide a codemod for it in 7.1.\n if (loader.isCallExpression()) {\n const arrowFunction = t.arrowFunctionExpression([], loader.node)\n loader.replaceWith(arrowFunction)\n }\n })\n },\n },\n }\n}\n"]}
\ No newline at end of file
diff --git a/node_modules/next/dist/build/index.js b/node_modules/next/dist/build/index.js
index 1c87904..b9b2f84 100644
--- a/node_modules/next/dist/build/index.js
+++ b/node_modules/next/dist/build/index.js
@@ -1,14 +1,14 @@
"use strict";exports.__esModule=true;exports.default=build;var _env=require("@next/env");var _chalk=_interopRequireDefault(require("chalk"));var _crypto=_interopRequireDefault(require("crypto"));var _fs=require("fs");var _jestWorker=require("jest-worker");var _devalue=_interopRequireDefault(require("next/dist/compiled/devalue"));var _escapeStringRegexp=_interopRequireDefault(require("next/dist/compiled/escape-string-regexp"));var _findUp=_interopRequireDefault(require("next/dist/compiled/find-up"));var _index=require("next/dist/compiled/nanoid/index.cjs");var _pathToRegexp=require("next/dist/compiled/path-to-regexp");var _path=_interopRequireDefault(require("path"));var _formatWebpackMessages=_interopRequireDefault(require("../client/dev/error-overlay/format-webpack-messages"));var _constants=require("../lib/constants");var _fileExists=require("../lib/file-exists");var _findPagesDir=require("../lib/find-pages-dir");var _loadCustomRoutes=_interopRequireWildcard(require("../lib/load-custom-routes"));var _nonNullable=require("../lib/non-nullable");var _recursiveDelete=require("../lib/recursive-delete");var _verifyAndLint=require("../lib/verifyAndLint");var _verifyTypeScriptSetup=require("../lib/verifyTypeScriptSetup");var _constants2=require("../next-server/lib/constants");var _utils=require("../next-server/lib/router/utils");var _config=_interopRequireWildcard(require("../next-server/server/config"));require("../next-server/server/node-polyfill-fetch");var _normalizePagePath=require("../next-server/server/normalize-page-path");var _require=require("../next-server/server/require");var ciEnvironment=_interopRequireWildcard(require("../telemetry/ci-info"));var _events=require("../telemetry/events");var _storage=require("../telemetry/storage");var _compiler=require("./compiler");var _entries=require("./entries");var _generateBuildId=require("./generate-build-id");var _isWriteable=require("./is-writeable");var Log=_interopRequireWildcard(require("./output/log"));var _spinner=_interopRequireDefault(require("./spinner"));var _trace=require("../telemetry/trace");var _utils2=require("./utils");var _webpackConfig=_interopRequireDefault(require("./webpack-config"));var _writeBuildId=require("./write-build-id");var _normalizeLocalePath=require("../next-server/lib/i18n/normalize-locale-path");var _webpack=require("next/dist/compiled/webpack/webpack");function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var cache=new WeakMap();_getRequireWildcardCache=function(){return cache;};return cache;}function _interopRequireWildcard(obj){if(obj&&obj.__esModule){return obj;}if(obj===null||typeof obj!=="object"&&typeof obj!=="function"){return{default:obj};}var cache=_getRequireWildcardCache();if(cache&&cache.has(obj)){return cache.get(obj);}var newObj={};var hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj){if(Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;if(desc&&(desc.get||desc.set)){Object.defineProperty(newObj,key,desc);}else{newObj[key]=obj[key];}}}newObj.default=obj;if(cache){cache.set(obj,newObj);}return newObj;}function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _wrapRegExp(re,groups){_wrapRegExp=function(re,groups){return new BabelRegExp(re,undefined,groups);};var _RegExp=_wrapNativeSuper(RegExp);var _super=RegExp.prototype;var _groups=new WeakMap();function BabelRegExp(re,flags,groups){var _this=_RegExp.call(this,re,flags);_groups.set(_this,groups||_groups.get(re));return _this;}_inherits(BabelRegExp,_RegExp);BabelRegExp.prototype.exec=function(str){var result=_super.exec.call(this,str);if(result)result.groups=buildGroups(result,this);return result;};BabelRegExp.prototype[Symbol.replace]=function(str,substitution){if(typeof substitution==="string"){var groups=_groups.get(this);return _super[Symbol.replace].call(this,str,substitution.replace(/\$<([^>]+)>/g,function(_,name){return"$"+groups[name];}));}else if(typeof substitution==="function"){var _this=this;return _super[Symbol.replace].call(this,str,function(){var args=[];args.push.apply(args,arguments);if(typeof args[args.length-1]!=="object"){args.push(buildGroups(args,_this));}return substitution.apply(this,args);});}else{return _super[Symbol.replace].call(this,str,substitution);}};function buildGroups(result,re){var g=_groups.get(re);return Object.keys(g).reduce(function(groups,name){groups[name]=result[g[name]];return groups;},Object.create(null));}return _wrapRegExp.apply(this,arguments);}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});if(superClass)_setPrototypeOf(subClass,superClass);}function _possibleConstructorReturn(self,call){if(call&&(typeof call==="object"||typeof call==="function")){return call;}return _assertThisInitialized(self);}function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}function _wrapNativeSuper(Class){var _cache=typeof Map==="function"?new Map():undefined;_wrapNativeSuper=function _wrapNativeSuper(Class){if(Class===null||!_isNativeFunction(Class))return Class;if(typeof Class!=="function"){throw new TypeError("Super expression must either be null or a function");}if(typeof _cache!=="undefined"){if(_cache.has(Class))return _cache.get(Class);_cache.set(Class,Wrapper);}function Wrapper(){return _construct(Class,arguments,_getPrototypeOf(this).constructor);}Wrapper.prototype=Object.create(Class.prototype,{constructor:{value:Wrapper,enumerable:false,writable:true,configurable:true}});return _setPrototypeOf(Wrapper,Class);};return _wrapNativeSuper(Class);}function _construct(Parent,args,Class){if(_isNativeReflectConstruct()){_construct=Reflect.construct;}else{_construct=function _construct(Parent,args,Class){var a=[null];a.push.apply(a,args);var Constructor=Function.bind.apply(Parent,a);var instance=new Constructor();if(Class)_setPrototypeOf(instance,Class.prototype);return instance;};}return _construct.apply(null,arguments);}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true;}catch(e){return false;}}function _isNativeFunction(fn){return Function.toString.call(fn).indexOf("[native code]")!==-1;}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}const staticCheckWorker=require.resolve('./utils');async function build(dir,conf=null,reactProductionProfiling=false,debugOutput=false,runLint=true){const nextBuildSpan=(0,_trace.trace)('next-build');return nextBuildSpan.traceAsyncFn(async()=>{var _config$typescript,_config$eslint,_config$eslint2,_namedExports$include;// attempt to load global env values so they are available in next.config.js
const{loadedEnvFiles}=nextBuildSpan.traceChild('load-dotenv').traceFn(()=>(0,_env.loadEnvConfig)(dir,false,Log));const config=await nextBuildSpan.traceChild('load-next-config').traceAsyncFn(()=>(0,_config.default)(_constants2.PHASE_PRODUCTION_BUILD,dir,conf));const{target}=config;const buildId=await nextBuildSpan.traceChild('generate-buildid').traceAsyncFn(()=>(0,_generateBuildId.generateBuildId)(config.generateBuildId,_index.nanoid));const distDir=_path.default.join(dir,config.distDir);const customRoutes=await nextBuildSpan.traceChild('load-custom-routes').traceAsyncFn(()=>(0,_loadCustomRoutes.default)(config));const{headers,rewrites,redirects}=customRoutes;const cacheDir=_path.default.join(distDir,'cache');if(ciEnvironment.isCI&&!ciEnvironment.hasNextSupport){const hasCache=await(0,_fileExists.fileExists)(cacheDir);if(!hasCache){// Intentionally not piping to stderr in case people fail in CI when
// stderr is detected.
-console.log(`${Log.prefixes.warn} No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache`);}}const telemetry=new _storage.Telemetry({distDir});(0,_trace.setGlobal)('telemetry',telemetry);const publicDir=_path.default.join(dir,'public');const pagesDir=(0,_findPagesDir.findPagesDir)(dir);const hasPublicDir=await(0,_fileExists.fileExists)(publicDir);telemetry.record((0,_events.eventCliSession)(_constants2.PHASE_PRODUCTION_BUILD,dir,{webpackVersion:_webpack.isWebpack5?5:4,cliCommand:'build',isSrcDir:_path.default.relative(dir,pagesDir).startsWith('src'),hasNowJson:!!(await(0,_findUp.default)('now.json',{cwd:dir})),isCustomServer:null}));(0,_events.eventNextPlugins)(_path.default.resolve(dir)).then(events=>telemetry.record(events));const ignoreTypeScriptErrors=Boolean((_config$typescript=config.typescript)==null?void 0:_config$typescript.ignoreBuildErrors);const typeCheckStart=process.hrtime();const typeCheckingSpinner=(0,_spinner.default)({prefixText:`${Log.prefixes.info} ${ignoreTypeScriptErrors?'Skipping validation of types':'Checking validity of types'}`});const verifyResult=await nextBuildSpan.traceChild('verify-typescript-setup').traceAsyncFn(()=>(0,_verifyTypeScriptSetup.verifyTypeScriptSetup)(dir,pagesDir,!ignoreTypeScriptErrors,!config.images.disableStaticImages,cacheDir));const typeCheckEnd=process.hrtime(typeCheckStart);if(!ignoreTypeScriptErrors){var _verifyResult$result,_verifyResult$result2,_verifyResult$result3;telemetry.record((0,_events.eventTypeCheckCompleted)({durationInSeconds:typeCheckEnd[0],typescriptVersion:verifyResult.version,inputFilesCount:(_verifyResult$result=verifyResult.result)==null?void 0:_verifyResult$result.inputFilesCount,totalFilesCount:(_verifyResult$result2=verifyResult.result)==null?void 0:_verifyResult$result2.totalFilesCount,incremental:(_verifyResult$result3=verifyResult.result)==null?void 0:_verifyResult$result3.incremental}));}if(typeCheckingSpinner){typeCheckingSpinner.stopAndPersist();}const ignoreESLint=Boolean((_config$eslint=config.eslint)==null?void 0:_config$eslint.ignoreDuringBuilds);const lintDirs=(_config$eslint2=config.eslint)==null?void 0:_config$eslint2.dirs;if(!ignoreESLint&&runLint){await nextBuildSpan.traceChild('verify-and-lint').traceAsyncFn(async()=>{await(0,_verifyAndLint.verifyAndLint)(dir,lintDirs,config.experimental.cpus,config.experimental.workerThreads,telemetry);});}const buildSpinner=(0,_spinner.default)({prefixText:`${Log.prefixes.info} Creating an optimized production build`});const isLikeServerless=(0,_config.isTargetLikeServerless)(target);const pagePaths=await nextBuildSpan.traceChild('collect-pages').traceAsyncFn(()=>(0,_utils2.collectPages)(pagesDir,config.pageExtensions));// needed for static exporting since we want to replace with HTML
+console.log(`${Log.prefixes.warn} No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache`);}}const telemetry=new _storage.Telemetry({distDir});(0,_trace.setGlobal)('telemetry',telemetry);const publicDir=_path.default.join(dir,'public');const pagesDirs=(0,_findPagesDir.findPagesDir)(dir,config.pagesPaths);const hasPublicDir=await(0,_fileExists.fileExists)(publicDir);telemetry.record((0,_events.eventCliSession)(_constants2.PHASE_PRODUCTION_BUILD,dir,{webpackVersion:_webpack.isWebpack5?5:4,cliCommand:'build',isSrcDir:pagesDirs.length===1&&_path.default.relative(dir,pagesDirs[0]).startsWith('src'),hasNowJson:!!(await(0,_findUp.default)('now.json',{cwd:dir})),isCustomServer:null}));(0,_events.eventNextPlugins)(_path.default.resolve(dir)).then(events=>telemetry.record(events));const ignoreTypeScriptErrors=Boolean((_config$typescript=config.typescript)==null?void 0:_config$typescript.ignoreBuildErrors);const typeCheckStart=process.hrtime();const typeCheckingSpinner=(0,_spinner.default)({prefixText:`${Log.prefixes.info} ${ignoreTypeScriptErrors?'Skipping validation of types':'Checking validity of types'}`});const verifyResult=await nextBuildSpan.traceChild('verify-typescript-setup').traceAsyncFn(()=>(0,_verifyTypeScriptSetup.verifyTypeScriptSetup)(dir,pagesDirs,!ignoreTypeScriptErrors,!config.images.disableStaticImages,cacheDir));const typeCheckEnd=process.hrtime(typeCheckStart);if(!ignoreTypeScriptErrors){var _verifyResult$result,_verifyResult$result2,_verifyResult$result3;telemetry.record((0,_events.eventTypeCheckCompleted)({durationInSeconds:typeCheckEnd[0],typescriptVersion:verifyResult.version,inputFilesCount:(_verifyResult$result=verifyResult.result)==null?void 0:_verifyResult$result.inputFilesCount,totalFilesCount:(_verifyResult$result2=verifyResult.result)==null?void 0:_verifyResult$result2.totalFilesCount,incremental:(_verifyResult$result3=verifyResult.result)==null?void 0:_verifyResult$result3.incremental}));}if(typeCheckingSpinner){typeCheckingSpinner.stopAndPersist();}const ignoreESLint=Boolean((_config$eslint=config.eslint)==null?void 0:_config$eslint.ignoreDuringBuilds);const lintDirs=(_config$eslint2=config.eslint)==null?void 0:_config$eslint2.dirs;if(!ignoreESLint&&runLint){await nextBuildSpan.traceChild('verify-and-lint').traceAsyncFn(async()=>{await(0,_verifyAndLint.verifyAndLint)(dir,lintDirs,config.experimental.cpus,config.experimental.workerThreads,telemetry);});}const buildSpinner=(0,_spinner.default)({prefixText:`${Log.prefixes.info} Creating an optimized production build`});const isLikeServerless=(0,_config.isTargetLikeServerless)(target);const pagePaths=await nextBuildSpan.traceChild('collect-pages').traceAsyncFn(()=>(0,_utils2.collectPages)(pagesDirs,config.pageExtensions));// needed for static exporting since we want to replace with HTML
// files
const allStaticPages=new Set();let allPageInfos=new Map();const previewProps={previewModeId:_crypto.default.randomBytes(16).toString('hex'),previewModeSigningKey:_crypto.default.randomBytes(32).toString('hex'),previewModeEncryptionKey:_crypto.default.randomBytes(32).toString('hex')};const mappedPages=nextBuildSpan.traceChild('create-pages-mapping').traceFn(()=>(0,_entries.createPagesMapping)(pagePaths,config.pageExtensions));const entrypoints=nextBuildSpan.traceChild('create-entrypoints').traceFn(()=>(0,_entries.createEntrypoints)(mappedPages,target,buildId,previewProps,config,loadedEnvFiles));const pageKeys=Object.keys(mappedPages);const conflictingPublicFiles=[];const hasCustomErrorPage=mappedPages['/_error'].startsWith('private-next-pages');const hasPages404=Boolean(mappedPages['/404']&&mappedPages['/404'].startsWith('private-next-pages'));if(hasPublicDir){const hasPublicUnderScoreNextDir=await(0,_fileExists.fileExists)(_path.default.join(publicDir,'_next'));if(hasPublicUnderScoreNextDir){throw new Error(_constants.PUBLIC_DIR_MIDDLEWARE_CONFLICT);}}await nextBuildSpan.traceChild('public-dir-conflict-check').traceAsyncFn(async()=>{// Check if pages conflict with files in `public`
// Only a page of public file can be served, not both.
for(const page in mappedPages){const hasPublicPageFile=await(0,_fileExists.fileExists)(_path.default.join(publicDir,page==='/'?'/index':page),'file');if(hasPublicPageFile){conflictingPublicFiles.push(page);}}const numConflicting=conflictingPublicFiles.length;if(numConflicting){throw new Error(`Conflicting public and page file${numConflicting===1?' was':'s were'} found. https://nextjs.org/docs/messages/conflicting-public-file-page\n${conflictingPublicFiles.join('\n')}`);}});const nestedReservedPages=pageKeys.filter(page=>{return page.match(/\/(_app|_document|_error)$/)&&_path.default.dirname(page)!=='/';});if(nestedReservedPages.length){Log.warn(`The following reserved Next.js pages were detected not directly under the pages directory:\n`+nestedReservedPages.join('\n')+`\nSee more info here: https://nextjs.org/docs/messages/nested-reserved-page\n`);}const buildCustomRoute=(r,type)=>{const keys=[];const routeRegex=(0,_pathToRegexp.pathToRegexp)(r.source,keys,{strict:true,sensitive:false,delimiter:'/'// default is `/#?`, but Next does not pass query info
});return{...r,...(type==='redirect'?{statusCode:(0,_loadCustomRoutes.getRedirectStatus)(r),permanent:undefined}:{}),regex:(0,_loadCustomRoutes.normalizeRouteRegex)(routeRegex.source)};};const routesManifestPath=_path.default.join(distDir,_constants2.ROUTES_MANIFEST);const routesManifest=nextBuildSpan.traceChild('generate-routes-manifest').traceFn(()=>({version:3,pages404:true,basePath:config.basePath,redirects:redirects.map(r=>buildCustomRoute(r,'redirect')),headers:headers.map(r=>buildCustomRoute(r,'header')),dynamicRoutes:(0,_utils.getSortedRoutes)(pageKeys).filter(_utils.isDynamicRoute).map(page=>{const routeRegex=(0,_utils.getRouteRegex)(page);return{page,regex:(0,_loadCustomRoutes.normalizeRouteRegex)(routeRegex.re.source),routeKeys:routeRegex.routeKeys,namedRegex:routeRegex.namedRegex};}),dataRoutes:[],i18n:config.i18n||undefined}));if(rewrites.beforeFiles.length===0&&rewrites.fallback.length===0){routesManifest.rewrites=rewrites.afterFiles.map(r=>buildCustomRoute(r,'rewrite'));}else{routesManifest.rewrites={beforeFiles:rewrites.beforeFiles.map(r=>buildCustomRoute(r,'rewrite')),afterFiles:rewrites.afterFiles.map(r=>buildCustomRoute(r,'rewrite')),fallback:rewrites.fallback.map(r=>buildCustomRoute(r,'rewrite'))};}const combinedRewrites=[...rewrites.beforeFiles,...rewrites.afterFiles,...rewrites.fallback];const distDirCreated=await nextBuildSpan.traceChild('create-dist-dir').traceAsyncFn(async()=>{try{await _fs.promises.mkdir(distDir,{recursive:true});return true;}catch(err){if(err.code==='EPERM'){return false;}throw err;}});if(!distDirCreated||!(await(0,_isWriteable.isWriteable)(distDir))){throw new Error('> Build directory is not writeable. https://nextjs.org/docs/messages/build-dir-not-writeable');}if(config.cleanDistDir){await(0,_recursiveDelete.recursiveDelete)(distDir,/^cache/);}// We need to write the manifest with rewrites before build
// so serverless can import the manifest
-await nextBuildSpan.traceChild('write-routes-manifest').traceAsyncFn(()=>_fs.promises.writeFile(routesManifestPath,JSON.stringify(routesManifest),'utf8'));const manifestPath=_path.default.join(distDir,isLikeServerless?_constants2.SERVERLESS_DIRECTORY:_constants2.SERVER_DIRECTORY,_constants2.PAGES_MANIFEST);const requiredServerFiles=nextBuildSpan.traceChild('generate-required-server-files').traceFn(()=>({version:1,config:{...config,compress:false,configFile:undefined},appDir:dir,files:[_constants2.ROUTES_MANIFEST,_path.default.relative(distDir,manifestPath),_constants2.BUILD_MANIFEST,_constants2.PRERENDER_MANIFEST,_constants2.REACT_LOADABLE_MANIFEST,config.optimizeFonts?_path.default.join(isLikeServerless?_constants2.SERVERLESS_DIRECTORY:_constants2.SERVER_DIRECTORY,_constants2.FONT_MANIFEST):null,_constants2.BUILD_ID_FILE].filter(_nonNullable.nonNullable).map(file=>_path.default.join(config.distDir,file)),ignore:[]}));const configs=await nextBuildSpan.traceChild('generate-webpack-config').traceAsyncFn(()=>Promise.all([(0,_webpackConfig.default)(dir,{buildId,reactProductionProfiling,isServer:false,config,target,pagesDir,entrypoints:entrypoints.client,rewrites}),(0,_webpackConfig.default)(dir,{buildId,reactProductionProfiling,isServer:true,config,target,pagesDir,entrypoints:entrypoints.server,rewrites})]));const clientConfig=configs[0];if(clientConfig.optimization&&(clientConfig.optimization.minimize!==true||clientConfig.optimization.minimizer&&clientConfig.optimization.minimizer.length===0)){Log.warn(`Production code optimization has been disabled in your project. Read more: https://nextjs.org/docs/messages/minification-disabled`);}const webpackBuildStart=process.hrtime();let result={warnings:[],errors:[]};// We run client and server compilation separately to optimize for memory usage
+await nextBuildSpan.traceChild('write-routes-manifest').traceAsyncFn(()=>_fs.promises.writeFile(routesManifestPath,JSON.stringify(routesManifest),'utf8'));const manifestPath=_path.default.join(distDir,isLikeServerless?_constants2.SERVERLESS_DIRECTORY:_constants2.SERVER_DIRECTORY,_constants2.PAGES_MANIFEST);const requiredServerFiles=nextBuildSpan.traceChild('generate-required-server-files').traceFn(()=>({version:1,config:{...config,compress:false,configFile:undefined},appDir:dir,files:[_constants2.ROUTES_MANIFEST,_path.default.relative(distDir,manifestPath),_constants2.BUILD_MANIFEST,_constants2.PRERENDER_MANIFEST,_constants2.REACT_LOADABLE_MANIFEST,config.optimizeFonts?_path.default.join(isLikeServerless?_constants2.SERVERLESS_DIRECTORY:_constants2.SERVER_DIRECTORY,_constants2.FONT_MANIFEST):null,_constants2.BUILD_ID_FILE].filter(_nonNullable.nonNullable).map(file=>_path.default.join(config.distDir,file)),ignore:[]}));const configs=await nextBuildSpan.traceChild('generate-webpack-config').traceAsyncFn(()=>Promise.all([(0,_webpackConfig.default)(dir,{buildId,reactProductionProfiling,isServer:false,config,target,pagesDirs,entrypoints:entrypoints.client,rewrites}),(0,_webpackConfig.default)(dir,{buildId,reactProductionProfiling,isServer:true,config,target,pagesDirs,entrypoints:entrypoints.server,rewrites})]));const clientConfig=configs[0];if(clientConfig.optimization&&(clientConfig.optimization.minimize!==true||clientConfig.optimization.minimizer&&clientConfig.optimization.minimizer.length===0)){Log.warn(`Production code optimization has been disabled in your project. Read more: https://nextjs.org/docs/messages/minification-disabled`);}const webpackBuildStart=process.hrtime();let result={warnings:[],errors:[]};// We run client and server compilation separately to optimize for memory usage
await nextBuildSpan.traceChild('run-webpack-compiler').traceAsyncFn(async()=>{const clientResult=await(0,_compiler.runCompiler)(clientConfig);// Fail build if clientResult contains errors
if(clientResult.errors.length>0){result={warnings:[...clientResult.warnings],errors:[...clientResult.errors]};}else{const serverResult=await(0,_compiler.runCompiler)(configs[1]);result={warnings:[...clientResult.warnings,...serverResult.warnings],errors:[...clientResult.errors,...serverResult.errors]};}});const webpackBuildEnd=process.hrtime(webpackBuildStart);if(buildSpinner){buildSpinner.stopAndPersist();}result=nextBuildSpan.traceChild('format-webpack-messages').traceFn(()=>(0,_formatWebpackMessages.default)(result));if(result.errors.length>0){// Only keep the first error. Others are often indicative
// of the same problem, but confuse the reader with noise.
@@ -67,6 +67,6 @@ const pageInfo=pageInfos.get(page);if(pageInfo){pageInfo.initialRevalidateSecond
const extraRoutes=additionalSsgPaths.get(page)||[];for(const route of extraRoutes){const pageFile=(0,_normalizePagePath.normalizePagePath)(route);await moveExportedPage(page,route,pageFile,isSsg,'html',true);await moveExportedPage(page,route,pageFile,isSsg,'json',true);if(hasAmp){const ampPage=`${pageFile}.amp`;await moveExportedPage(page,ampPage,ampPage,isSsg,'html',true);await moveExportedPage(page,ampPage,ampPage,isSsg,'json',true);}finalPrerenderRoutes[route]={initialRevalidateSeconds:exportConfig.initialPageRevalidationMap[route],srcRoute:page,dataRoute:_path.default.posix.join('/_next/data',buildId,`${(0,_normalizePagePath.normalizePagePath)(route)}.json`)};// Set route Revalidation Interval
const pageInfo=pageInfos.get(route);if(pageInfo){pageInfo.initialRevalidateSeconds=exportConfig.initialPageRevalidationMap[route];pageInfos.set(route,pageInfo);}}}}}// remove temporary export folder
await(0,_recursiveDelete.recursiveDelete)(exportOptions.outdir);await _fs.promises.rmdir(exportOptions.outdir);await _fs.promises.writeFile(manifestPath,JSON.stringify(pagesManifest,null,2),'utf8');if(postBuildSpinner)postBuildSpinner.stopAndPersist();console.log();});}const analysisEnd=process.hrtime(analysisBegin);telemetry.record((0,_events.eventBuildOptimize)(pagePaths,{durationInSeconds:analysisEnd[0],staticPageCount:staticPages.size,staticPropsPageCount:ssgPages.size,serverPropsPageCount:serverPropsPages.size,ssrPageCount:pagePaths.length-(staticPages.size+ssgPages.size+serverPropsPages.size),hasStatic404:useStatic404,hasReportWebVitals:(_namedExports$include=namedExports==null?void 0:namedExports.includes('reportWebVitals'))!=null?_namedExports$include:false,rewritesCount:combinedRewrites.length,headersCount:headers.length,redirectsCount:redirects.length-1,// reduce one for trailing slash
-headersWithHasCount:headers.filter(r=>!!r.has).length,rewritesWithHasCount:combinedRewrites.filter(r=>!!r.has).length,redirectsWithHasCount:redirects.filter(r=>!!r.has).length}));if(ssgPages.size>0){var _config$i18n5;const finalDynamicRoutes={};tbdPrerenderRoutes.forEach(tbdRoute=>{const normalizedRoute=(0,_normalizePagePath.normalizePagePath)(tbdRoute);const dataRoute=_path.default.posix.join('/_next/data',buildId,`${normalizedRoute}.json`);finalDynamicRoutes[tbdRoute]={routeRegex:(0,_loadCustomRoutes.normalizeRouteRegex)((0,_utils.getRouteRegex)(tbdRoute).re.source),dataRoute,fallback:ssgBlockingFallbackPages.has(tbdRoute)?null:ssgStaticFallbackPages.has(tbdRoute)?`${normalizedRoute}.html`:false,dataRouteRegex:(0,_loadCustomRoutes.normalizeRouteRegex)((0,_utils.getRouteRegex)(dataRoute.replace(/\.json$/,'')).re.source.replace(/\(\?:\\\/\)\?\$$/,'\\.json$'))};});const prerenderManifest={version:3,routes:finalPrerenderRoutes,dynamicRoutes:finalDynamicRoutes,notFoundRoutes:ssgNotFoundPaths,preview:previewProps};await _fs.promises.writeFile(_path.default.join(distDir,_constants2.PRERENDER_MANIFEST),JSON.stringify(prerenderManifest),'utf8');await generateClientSsgManifest(prerenderManifest,{distDir,buildId,locales:((_config$i18n5=config.i18n)==null?void 0:_config$i18n5.locales)||[]});}else{const prerenderManifest={version:3,routes:{},dynamicRoutes:{},preview:previewProps,notFoundRoutes:[]};await _fs.promises.writeFile(_path.default.join(distDir,_constants2.PRERENDER_MANIFEST),JSON.stringify(prerenderManifest),'utf8');}const images={...config.images};const{deviceSizes,imageSizes}=images;images.sizes=[...deviceSizes,...imageSizes];await _fs.promises.writeFile(_path.default.join(distDir,_constants2.IMAGES_MANIFEST),JSON.stringify({version:1,images}),'utf8');await _fs.promises.writeFile(_path.default.join(distDir,_constants2.EXPORT_MARKER),JSON.stringify({version:1,hasExportPathMap:typeof config.exportPathMap==='function',exportTrailingSlash:config.trailingSlash===true,isNextImageImported:isNextImageImported===true}),'utf8');await _fs.promises.unlink(_path.default.join(distDir,_constants2.EXPORT_DETAIL)).catch(err=>{if(err.code==='ENOENT'){return Promise.resolve();}return Promise.reject(err);});staticPages.forEach(pg=>allStaticPages.add(pg));pageInfos.forEach((info,key)=>{allPageInfos.set(key,info);});await nextBuildSpan.traceChild('print-tree-view').traceAsyncFn(()=>(0,_utils2.printTreeView)(Object.keys(mappedPages),allPageInfos,isLikeServerless,{distPath:distDir,buildId:buildId,pagesDir,useStatic404,pageExtensions:config.pageExtensions,buildManifest,gzipSize:config.experimental.gzipSize}));if(debugOutput){nextBuildSpan.traceChild('print-custom-routes').traceFn(()=>(0,_utils2.printCustomRoutes)({redirects,rewrites,headers}));}if(config.analyticsId){console.log(_chalk.default.bold.green('Next.js Analytics')+' is enabled for this production build. '+"You'll receive a Real Experience Score computed by all of your visitors.");console.log('');}await nextBuildSpan.traceChild('telemetry-flush').traceAsyncFn(()=>telemetry.flush());});}function generateClientSsgManifest(prerenderManifest,{buildId,distDir,locales}){const ssgPages=new Set([...Object.entries(prerenderManifest.routes)// Filter out dynamic routes
+headersWithHasCount:headers.filter(r=>!!r.has).length,rewritesWithHasCount:combinedRewrites.filter(r=>!!r.has).length,redirectsWithHasCount:redirects.filter(r=>!!r.has).length}));if(ssgPages.size>0){var _config$i18n5;const finalDynamicRoutes={};tbdPrerenderRoutes.forEach(tbdRoute=>{const normalizedRoute=(0,_normalizePagePath.normalizePagePath)(tbdRoute);const dataRoute=_path.default.posix.join('/_next/data',buildId,`${normalizedRoute}.json`);finalDynamicRoutes[tbdRoute]={routeRegex:(0,_loadCustomRoutes.normalizeRouteRegex)((0,_utils.getRouteRegex)(tbdRoute).re.source),dataRoute,fallback:ssgBlockingFallbackPages.has(tbdRoute)?null:ssgStaticFallbackPages.has(tbdRoute)?`${normalizedRoute}.html`:false,dataRouteRegex:(0,_loadCustomRoutes.normalizeRouteRegex)((0,_utils.getRouteRegex)(dataRoute.replace(/\.json$/,'')).re.source.replace(/\(\?:\\\/\)\?\$$/,'\\.json$'))};});const prerenderManifest={version:3,routes:finalPrerenderRoutes,dynamicRoutes:finalDynamicRoutes,notFoundRoutes:ssgNotFoundPaths,preview:previewProps};await _fs.promises.writeFile(_path.default.join(distDir,_constants2.PRERENDER_MANIFEST),JSON.stringify(prerenderManifest),'utf8');await generateClientSsgManifest(prerenderManifest,{distDir,buildId,locales:((_config$i18n5=config.i18n)==null?void 0:_config$i18n5.locales)||[]});}else{const prerenderManifest={version:3,routes:{},dynamicRoutes:{},preview:previewProps,notFoundRoutes:[]};await _fs.promises.writeFile(_path.default.join(distDir,_constants2.PRERENDER_MANIFEST),JSON.stringify(prerenderManifest),'utf8');}const images={...config.images};const{deviceSizes,imageSizes}=images;images.sizes=[...deviceSizes,...imageSizes];await _fs.promises.writeFile(_path.default.join(distDir,_constants2.IMAGES_MANIFEST),JSON.stringify({version:1,images}),'utf8');await _fs.promises.writeFile(_path.default.join(distDir,_constants2.EXPORT_MARKER),JSON.stringify({version:1,hasExportPathMap:typeof config.exportPathMap==='function',exportTrailingSlash:config.trailingSlash===true,isNextImageImported:isNextImageImported===true}),'utf8');await _fs.promises.unlink(_path.default.join(distDir,_constants2.EXPORT_DETAIL)).catch(err=>{if(err.code==='ENOENT'){return Promise.resolve();}return Promise.reject(err);});staticPages.forEach(pg=>allStaticPages.add(pg));pageInfos.forEach((info,key)=>{allPageInfos.set(key,info);});await nextBuildSpan.traceChild('print-tree-view').traceAsyncFn(()=>(0,_utils2.printTreeView)(Object.keys(mappedPages),allPageInfos,isLikeServerless,{distPath:distDir,buildId:buildId,pagesDirs,useStatic404,pageExtensions:config.pageExtensions,buildManifest,gzipSize:config.experimental.gzipSize}));if(debugOutput){nextBuildSpan.traceChild('print-custom-routes').traceFn(()=>(0,_utils2.printCustomRoutes)({redirects,rewrites,headers}));}if(config.analyticsId){console.log(_chalk.default.bold.green('Next.js Analytics')+' is enabled for this production build. '+"You'll receive a Real Experience Score computed by all of your visitors.");console.log('');}await nextBuildSpan.traceChild('telemetry-flush').traceAsyncFn(()=>telemetry.flush());});}function generateClientSsgManifest(prerenderManifest,{buildId,distDir,locales}){const ssgPages=new Set([...Object.entries(prerenderManifest.routes)// Filter out dynamic routes
.filter(([,{srcRoute}])=>srcRoute==null).map(([route])=>(0,_normalizeLocalePath.normalizeLocalePath)(route,locales).pathname),...Object.keys(prerenderManifest.dynamicRoutes)]);const clientSsgManifestContent=`self.__SSG_MANIFEST=${(0,_devalue.default)(ssgPages)};self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB()`;(0,_fs.writeFileSync)(_path.default.join(distDir,_constants2.CLIENT_STATIC_FILES_PATH,buildId,'_ssgManifest.js'),clientSsgManifestContent);}
//# sourceMappingURL=index.js.map
\ No newline at end of file
diff --git a/node_modules/next/dist/build/index.js.map b/node_modules/next/dist/build/index.js.map
index bd97b35..54ca26a 100644
--- a/node_modules/next/dist/build/index.js.map
+++ b/node_modules/next/dist/build/index.js.map
@@ -1 +1 @@
-{"version":3,"sources":["../../build/index.ts"],"names":["staticCheckWorker","require","resolve","build","dir","conf","reactProductionProfiling","debugOutput","runLint","nextBuildSpan","traceAsyncFn","loadedEnvFiles","traceChild","traceFn","Log","config","PHASE_PRODUCTION_BUILD","target","buildId","generateBuildId","nanoid","distDir","path","join","customRoutes","headers","rewrites","redirects","cacheDir","ciEnvironment","isCI","hasNextSupport","hasCache","console","log","prefixes","warn","telemetry","Telemetry","publicDir","pagesDir","hasPublicDir","record","webpackVersion","isWebpack5","cliCommand","isSrcDir","relative","startsWith","hasNowJson","cwd","isCustomServer","then","events","ignoreTypeScriptErrors","Boolean","typescript","ignoreBuildErrors","typeCheckStart","process","hrtime","typeCheckingSpinner","prefixText","info","verifyResult","images","disableStaticImages","typeCheckEnd","durationInSeconds","typescriptVersion","version","inputFilesCount","result","totalFilesCount","incremental","stopAndPersist","ignoreESLint","eslint","ignoreDuringBuilds","lintDirs","dirs","experimental","cpus","workerThreads","buildSpinner","isLikeServerless","pagePaths","pageExtensions","allStaticPages","Set","allPageInfos","Map","previewProps","previewModeId","crypto","randomBytes","toString","previewModeSigningKey","previewModeEncryptionKey","mappedPages","entrypoints","pageKeys","Object","keys","conflictingPublicFiles","hasCustomErrorPage","hasPages404","hasPublicUnderScoreNextDir","Error","PUBLIC_DIR_MIDDLEWARE_CONFLICT","page","hasPublicPageFile","push","numConflicting","length","nestedReservedPages","filter","match","dirname","buildCustomRoute","r","type","routeRegex","source","strict","sensitive","delimiter","statusCode","permanent","undefined","regex","routesManifestPath","ROUTES_MANIFEST","routesManifest","pages404","basePath","map","dynamicRoutes","isDynamicRoute","re","routeKeys","namedRegex","dataRoutes","i18n","beforeFiles","fallback","afterFiles","combinedRewrites","distDirCreated","promises","mkdir","recursive","err","code","cleanDistDir","writeFile","JSON","stringify","manifestPath","SERVERLESS_DIRECTORY","SERVER_DIRECTORY","PAGES_MANIFEST","requiredServerFiles","compress","configFile","appDir","files","BUILD_MANIFEST","PRERENDER_MANIFEST","REACT_LOADABLE_MANIFEST","optimizeFonts","FONT_MANIFEST","BUILD_ID_FILE","nonNullable","file","ignore","configs","Promise","all","isServer","client","server","clientConfig","optimization","minimize","minimizer","webpackBuildStart","warnings","errors","clientResult","serverResult","webpackBuildEnd","error","chalk","red","indexOf","page_name_regex","parsed","exec","page_name","groups","postCompileSpinner","buildManifestPath","ssgPages","ssgStaticFallbackPages","ssgBlockingFallbackPages","staticPages","invalidPages","hybridAmpPages","serverPropsPages","additionalSsgPaths","additionalSsgPathsEncoded","pageInfos","pagesManifest","parse","readFile","buildManifest","analysisBegin","staticCheckSpan","customAppGetInitialProps","namedExports","isNextImageImported","hasSsrAmpPages","hasNonStaticErrorPage","env","NEXT_PHASE","staticCheckWorkers","Worker","numWorkers","enableWorkerThreads","getStdout","pipe","stdout","getStderr","stderr","runtimeEnvConfig","publicRuntimeConfig","serverRuntimeConfig","nonStaticErrorPageSpan","errorPageHasCustomGetInitialProps","hasCustomGetInitialProps","errorPageStaticResult","isPageStatic","locales","defaultLocale","appPageToCheck","customAppGetInitialPropsPromise","namedExportsPromise","getNamedExports","computedManifestData","gzipSize","checkPageSpan","actualPage","selfSize","allSize","isSsg","isStatic","isHybridAmp","ssgPageRoutes","nonReservedPage","isPageStaticSpan","workerResult","id","isAmpOnly","add","hasStaticProps","prerenderRoutes","encodedPrerenderRoutes","set","prerenderFallback","hasServerProps","STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR","delete","STATIC_STATUS_PAGES","includes","message","size","totalSize","static","initialRevalidateSeconds","errorPageResult","nonStaticErrorPage","returnValue","end","bold","yellow","pagePath","dataRoute","posix","dataRouteRegex","namedDataRouteRegex","replace","RegExp","useStatic404","pg","optimizeCss","cssFilePaths","filePath","SERVER_FILES_MANIFEST","finalPrerenderRoutes","tbdPrerenderRoutes","ssgNotFoundPaths","usedStaticStatusPages","forEach","has","hasPages500","useDefaultStatic500","combinedPages","staticGenerationSpan","exportApp","default","exportOptions","silent","buildExport","threads","pages","outdir","statusMessage","exportConfig","initialPageRevalidationMap","exportPathMap","defaultMap","query","__nextFallback","routes","encodedRoutes","get","route","routeIdx","__nextSsgPath","isDynamic","isFallback","locale","outputPath","__nextLocale","postBuildSpinner","serverBundle","unlink","serverOutputDir","moveExportedPage","originPage","ext","additionalSsgFile","orig","relativeDest","substr","split","dest","isNotFound","rename","curPath","localeExt","extname","relativeDestNoPages","updatedRelativeDest","updatedOrig","updatedDest","isStaticSsgFallback","hasAmp","hasHtmlOutput","ampPage","localePage","srcRoute","pageInfo","extraRoutes","pageFile","rmdir","analysisEnd","staticPageCount","staticPropsPageCount","serverPropsPageCount","ssrPageCount","hasStatic404","hasReportWebVitals","rewritesCount","headersCount","redirectsCount","headersWithHasCount","rewritesWithHasCount","redirectsWithHasCount","finalDynamicRoutes","tbdRoute","normalizedRoute","prerenderManifest","notFoundRoutes","preview","generateClientSsgManifest","deviceSizes","imageSizes","sizes","IMAGES_MANIFEST","EXPORT_MARKER","hasExportPathMap","exportTrailingSlash","trailingSlash","EXPORT_DETAIL","catch","reject","key","distPath","analyticsId","green","flush","entries","pathname","clientSsgManifestContent","CLIENT_STATIC_FILES_PATH"],"mappings":"2DAAA,8BACA,oDACA,sDACA,sBACA,uCACA,2EACA,mGACA,0EACA,0DACA,+DACA,kDACA,kHACA,2CAIA,8CACA,mDACA,oFAQA,gDACA,wDACA,mDACA,mEACA,wDAkBA,sDAMA,6EAKA,qDACA,4EACA,sDACA,2EACA,2CAOA,6CACA,oCACA,kCACA,oDACA,2CACA,yDACA,0DACA,yCACA,+BAUA,uEAEA,8CACA,kFACA,2D,klJAEA,KAAMA,CAAAA,iBAAiB,CAAGC,OAAO,CAACC,OAAR,CAAgB,SAAhB,CAA1B,CAuBe,cAAeC,CAAAA,KAAf,CACbC,GADa,CAEbC,IAAI,CAAG,IAFM,CAGbC,wBAAwB,CAAG,KAHd,CAIbC,WAAW,CAAG,KAJD,CAKbC,OAAO,CAAG,IALG,CAME,CACf,KAAMC,CAAAA,aAAa,CAAG,iBAAM,YAAN,CAAtB,CAEA,MAAOA,CAAAA,aAAa,CAACC,YAAd,CAA2B,SAAY,6EAC5C;AACA,KAAM,CAAEC,cAAF,EAAqBF,aAAa,CACrCG,UADwB,CACb,aADa,EAExBC,OAFwB,CAEhB,IAAM,uBAAcT,GAAd,CAAmB,KAAnB,CAA0BU,GAA1B,CAFU,CAA3B,CAIA,KAAMC,CAAAA,MAAkB,CAAG,KAAMN,CAAAA,aAAa,CAC3CG,UAD8B,CACnB,kBADmB,EAE9BF,YAF8B,CAEjB,IAAM,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C,CAQA,KAAM4Q,CAAAA,wBAAwB,CAAI,uBAAsB,qBACtD1M,QADsD,CAEtD,mDAFF,CAIA,sBACErL,cAAKC,IAAL,CAAUF,OAAV,CAAmBiY,oCAAnB,CAA6CpY,OAA7C,CAAsD,iBAAtD,CADF,CAEEmY,wBAFF,EAID","sourcesContent":["import { loadEnvConfig } from '@next/env'\nimport chalk from 'chalk'\nimport crypto from 'crypto'\nimport { promises, writeFileSync } from 'fs'\nimport { Worker } from 'jest-worker'\nimport devalue from 'next/dist/compiled/devalue'\nimport escapeStringRegexp from 'next/dist/compiled/escape-string-regexp'\nimport findUp from 'next/dist/compiled/find-up'\nimport { nanoid } from 'next/dist/compiled/nanoid/index.cjs'\nimport { pathToRegexp } from 'next/dist/compiled/path-to-regexp'\nimport path from 'path'\nimport formatWebpackMessages from '../client/dev/error-overlay/format-webpack-messages'\nimport {\n STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR,\n PUBLIC_DIR_MIDDLEWARE_CONFLICT,\n} from '../lib/constants'\nimport { fileExists } from '../lib/file-exists'\nimport { findPagesDir } from '../lib/find-pages-dir'\nimport loadCustomRoutes, {\n CustomRoutes,\n getRedirectStatus,\n normalizeRouteRegex,\n Redirect,\n Rewrite,\n RouteType,\n} from '../lib/load-custom-routes'\nimport { nonNullable } from '../lib/non-nullable'\nimport { recursiveDelete } from '../lib/recursive-delete'\nimport { verifyAndLint } from '../lib/verifyAndLint'\nimport { verifyTypeScriptSetup } from '../lib/verifyTypeScriptSetup'\nimport {\n BUILD_ID_FILE,\n BUILD_MANIFEST,\n CLIENT_STATIC_FILES_PATH,\n EXPORT_DETAIL,\n EXPORT_MARKER,\n FONT_MANIFEST,\n IMAGES_MANIFEST,\n PAGES_MANIFEST,\n PHASE_PRODUCTION_BUILD,\n PRERENDER_MANIFEST,\n REACT_LOADABLE_MANIFEST,\n ROUTES_MANIFEST,\n SERVERLESS_DIRECTORY,\n SERVER_DIRECTORY,\n SERVER_FILES_MANIFEST,\n STATIC_STATUS_PAGES,\n} from '../next-server/lib/constants'\nimport {\n getRouteRegex,\n getSortedRoutes,\n isDynamicRoute,\n} from '../next-server/lib/router/utils'\nimport { __ApiPreviewProps } from '../next-server/server/api-utils'\nimport loadConfig, {\n isTargetLikeServerless,\n NextConfig,\n} from '../next-server/server/config'\nimport { BuildManifest } from '../next-server/server/get-page-files'\nimport '../next-server/server/node-polyfill-fetch'\nimport { normalizePagePath } from '../next-server/server/normalize-page-path'\nimport { getPagePath } from '../next-server/server/require'\nimport * as ciEnvironment from '../telemetry/ci-info'\nimport {\n eventBuildCompleted,\n eventBuildOptimize,\n eventCliSession,\n eventNextPlugins,\n eventTypeCheckCompleted,\n} from '../telemetry/events'\nimport { Telemetry } from '../telemetry/storage'\nimport { CompilerResult, runCompiler } from './compiler'\nimport { createEntrypoints, createPagesMapping } from './entries'\nimport { generateBuildId } from './generate-build-id'\nimport { isWriteable } from './is-writeable'\nimport * as Log from './output/log'\nimport createSpinner from './spinner'\nimport { trace, setGlobal } from '../telemetry/trace'\nimport {\n collectPages,\n detectConflictingPaths,\n computeFromManifest,\n getJsPageSizeInKb,\n PageInfo,\n printCustomRoutes,\n printTreeView,\n getCssFilePaths,\n} from './utils'\nimport getBaseWebpackConfig from './webpack-config'\nimport { PagesManifest } from './webpack/plugins/pages-manifest-plugin'\nimport { writeBuildId } from './write-build-id'\nimport { normalizeLocalePath } from '../next-server/lib/i18n/normalize-locale-path'\nimport { isWebpack5 } from 'next/dist/compiled/webpack/webpack'\n\nconst staticCheckWorker = require.resolve('./utils')\n\nexport type SsgRoute = {\n initialRevalidateSeconds: number | false\n srcRoute: string | null\n dataRoute: string\n}\n\nexport type DynamicSsgRoute = {\n routeRegex: string\n fallback: string | null | false\n dataRoute: string\n dataRouteRegex: string\n}\n\nexport type PrerenderManifest = {\n version: 3\n routes: { [route: string]: SsgRoute }\n dynamicRoutes: { [route: string]: DynamicSsgRoute }\n notFoundRoutes: string[]\n preview: __ApiPreviewProps\n}\n\nexport default async function build(\n dir: string,\n conf = null,\n reactProductionProfiling = false,\n debugOutput = false,\n runLint = true\n): Promise<void> {\n const nextBuildSpan = trace('next-build')\n\n return nextBuildSpan.traceAsyncFn(async () => {\n // attempt to load global env values so they are available in next.config.js\n const { loadedEnvFiles } = nextBuildSpan\n .traceChild('load-dotenv')\n .traceFn(() => loadEnvConfig(dir, false, Log))\n\n const config: NextConfig = await nextBuildSpan\n .traceChild('load-next-config')\n .traceAsyncFn(() => loadConfig(PHASE_PRODUCTION_BUILD, dir, conf))\n const { target } = config\n const buildId: string = await nextBuildSpan\n .traceChild('generate-buildid')\n .traceAsyncFn(() => generateBuildId(config.generateBuildId, nanoid))\n const distDir = path.join(dir, config.distDir)\n\n const customRoutes: CustomRoutes = await nextBuildSpan\n .traceChild('load-custom-routes')\n .traceAsyncFn(() => loadCustomRoutes(config))\n\n const { headers, rewrites, redirects } = customRoutes\n\n const cacheDir = path.join(distDir, 'cache')\n if (ciEnvironment.isCI && !ciEnvironment.hasNextSupport) {\n const hasCache = await fileExists(cacheDir)\n\n if (!hasCache) {\n // Intentionally not piping to stderr in case people fail in CI when\n // stderr is detected.\n console.log(\n `${Log.prefixes.warn} No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache`\n )\n }\n }\n\n const telemetry = new Telemetry({ distDir })\n setGlobal('telemetry', telemetry)\n\n const publicDir = path.join(dir, 'public')\n const pagesDir = findPagesDir(dir)\n const hasPublicDir = await fileExists(publicDir)\n\n telemetry.record(\n eventCliSession(PHASE_PRODUCTION_BUILD, dir, {\n webpackVersion: isWebpack5 ? 5 : 4,\n cliCommand: 'build',\n isSrcDir: path.relative(dir, pagesDir!).startsWith('src'),\n hasNowJson: !!(await findUp('now.json', { cwd: dir })),\n isCustomServer: null,\n })\n )\n\n eventNextPlugins(path.resolve(dir)).then((events) =>\n telemetry.record(events)\n )\n\n const ignoreTypeScriptErrors = Boolean(config.typescript?.ignoreBuildErrors)\n const typeCheckStart = process.hrtime()\n const typeCheckingSpinner = createSpinner({\n prefixText: `${Log.prefixes.info} ${\n ignoreTypeScriptErrors\n ? 'Skipping validation of types'\n : 'Checking validity of types'\n }`,\n })\n\n const verifyResult = await nextBuildSpan\n .traceChild('verify-typescript-setup')\n .traceAsyncFn(() =>\n verifyTypeScriptSetup(\n dir,\n pagesDir,\n !ignoreTypeScriptErrors,\n !config.images.disableStaticImages,\n cacheDir\n )\n )\n\n const typeCheckEnd = process.hrtime(typeCheckStart)\n\n if (!ignoreTypeScriptErrors) {\n telemetry.record(\n eventTypeCheckCompleted({\n durationInSeconds: typeCheckEnd[0],\n typescriptVersion: verifyResult.version,\n inputFilesCount: verifyResult.result?.inputFilesCount,\n totalFilesCount: verifyResult.result?.totalFilesCount,\n incremental: verifyResult.result?.incremental,\n })\n )\n }\n\n if (typeCheckingSpinner) {\n typeCheckingSpinner.stopAndPersist()\n }\n\n const ignoreESLint = Boolean(config.eslint?.ignoreDuringBuilds)\n const lintDirs = config.eslint?.dirs\n if (!ignoreESLint && runLint) {\n await nextBuildSpan\n .traceChild('verify-and-lint')\n .traceAsyncFn(async () => {\n await verifyAndLint(\n dir,\n lintDirs,\n config.experimental.cpus,\n config.experimental.workerThreads,\n telemetry\n )\n })\n }\n\n const buildSpinner = createSpinner({\n prefixText: `${Log.prefixes.info} Creating an optimized production build`,\n })\n\n const isLikeServerless = isTargetLikeServerless(target)\n\n const pagePaths: string[] = await nextBuildSpan\n .traceChild('collect-pages')\n .traceAsyncFn(() => collectPages(pagesDir, config.pageExtensions))\n\n // needed for static exporting since we want to replace with HTML\n // files\n const allStaticPages = new Set<string>()\n let allPageInfos = new Map<string, PageInfo>()\n\n const previewProps: __ApiPreviewProps = {\n previewModeId: crypto.randomBytes(16).toString('hex'),\n previewModeSigningKey: crypto.randomBytes(32).toString('hex'),\n previewModeEncryptionKey: crypto.randomBytes(32).toString('hex'),\n }\n\n const mappedPages = nextBuildSpan\n .traceChild('create-pages-mapping')\n .traceFn(() => createPagesMapping(pagePaths, config.pageExtensions))\n const entrypoints = nextBuildSpan\n .traceChild('create-entrypoints')\n .traceFn(() =>\n createEntrypoints(\n mappedPages,\n target,\n buildId,\n previewProps,\n config,\n loadedEnvFiles\n )\n )\n const pageKeys = Object.keys(mappedPages)\n const conflictingPublicFiles: string[] = []\n const hasCustomErrorPage: boolean = mappedPages['/_error'].startsWith(\n 'private-next-pages'\n )\n const hasPages404 = Boolean(\n mappedPages['/404'] &&\n mappedPages['/404'].startsWith('private-next-pages')\n )\n\n if (hasPublicDir) {\n const hasPublicUnderScoreNextDir = await fileExists(\n path.join(publicDir, '_next')\n )\n if (hasPublicUnderScoreNextDir) {\n throw new Error(PUBLIC_DIR_MIDDLEWARE_CONFLICT)\n }\n }\n\n await nextBuildSpan\n .traceChild('public-dir-conflict-check')\n .traceAsyncFn(async () => {\n // Check if pages conflict with files in `public`\n // Only a page of public file can be served, not both.\n for (const page in mappedPages) {\n const hasPublicPageFile = await fileExists(\n path.join(publicDir, page === '/' ? '/index' : page),\n 'file'\n )\n if (hasPublicPageFile) {\n conflictingPublicFiles.push(page)\n }\n }\n\n const numConflicting = conflictingPublicFiles.length\n\n if (numConflicting) {\n throw new Error(\n `Conflicting public and page file${\n numConflicting === 1 ? ' was' : 's were'\n } found. https://nextjs.org/docs/messages/conflicting-public-file-page\\n${conflictingPublicFiles.join(\n '\\n'\n )}`\n )\n }\n })\n\n const nestedReservedPages = pageKeys.filter((page) => {\n return (\n page.match(/\\/(_app|_document|_error)$/) && path.dirname(page) !== '/'\n )\n })\n\n if (nestedReservedPages.length) {\n Log.warn(\n `The following reserved Next.js pages were detected not directly under the pages directory:\\n` +\n nestedReservedPages.join('\\n') +\n `\\nSee more info here: https://nextjs.org/docs/messages/nested-reserved-page\\n`\n )\n }\n\n const buildCustomRoute = (\n r: {\n source: string\n locale?: false\n basePath?: false\n statusCode?: number\n destination?: string\n },\n type: RouteType\n ) => {\n const keys: any[] = []\n\n const routeRegex = pathToRegexp(r.source, keys, {\n strict: true,\n sensitive: false,\n delimiter: '/', // default is `/#?`, but Next does not pass query info\n })\n\n return {\n ...r,\n ...(type === 'redirect'\n ? {\n statusCode: getRedirectStatus(r as Redirect),\n permanent: undefined,\n }\n : {}),\n regex: normalizeRouteRegex(routeRegex.source),\n }\n }\n\n const routesManifestPath = path.join(distDir, ROUTES_MANIFEST)\n const routesManifest: {\n version: number\n pages404: boolean\n basePath: string\n redirects: Array<ReturnType<typeof buildCustomRoute>>\n rewrites:\n | Array<ReturnType<typeof buildCustomRoute>>\n | {\n beforeFiles: Array<ReturnType<typeof buildCustomRoute>>\n afterFiles: Array<ReturnType<typeof buildCustomRoute>>\n fallback: Array<ReturnType<typeof buildCustomRoute>>\n }\n headers: Array<ReturnType<typeof buildCustomRoute>>\n dynamicRoutes: Array<{\n page: string\n regex: string\n namedRegex?: string\n routeKeys?: { [key: string]: string }\n }>\n dataRoutes: Array<{\n page: string\n routeKeys?: { [key: string]: string }\n dataRouteRegex: string\n namedDataRouteRegex?: string\n }>\n i18n?: {\n domains?: Array<{\n http?: true\n domain: string\n locales?: string[]\n defaultLocale: string\n }>\n locales: string[]\n defaultLocale: string\n localeDetection?: false\n }\n } = nextBuildSpan.traceChild('generate-routes-manifest').traceFn(() => ({\n version: 3,\n pages404: true,\n basePath: config.basePath,\n redirects: redirects.map((r: any) => buildCustomRoute(r, 'redirect')),\n headers: headers.map((r: any) => buildCustomRoute(r, 'header')),\n dynamicRoutes: getSortedRoutes(pageKeys)\n .filter(isDynamicRoute)\n .map((page) => {\n const routeRegex = getRouteRegex(page)\n return {\n page,\n regex: normalizeRouteRegex(routeRegex.re.source),\n routeKeys: routeRegex.routeKeys,\n namedRegex: routeRegex.namedRegex,\n }\n }),\n dataRoutes: [],\n i18n: config.i18n || undefined,\n }))\n\n if (rewrites.beforeFiles.length === 0 && rewrites.fallback.length === 0) {\n routesManifest.rewrites = rewrites.afterFiles.map((r: any) =>\n buildCustomRoute(r, 'rewrite')\n )\n } else {\n routesManifest.rewrites = {\n beforeFiles: rewrites.beforeFiles.map((r: any) =>\n buildCustomRoute(r, 'rewrite')\n ),\n afterFiles: rewrites.afterFiles.map((r: any) =>\n buildCustomRoute(r, 'rewrite')\n ),\n fallback: rewrites.fallback.map((r: any) =>\n buildCustomRoute(r, 'rewrite')\n ),\n }\n }\n const combinedRewrites: Rewrite[] = [\n ...rewrites.beforeFiles,\n ...rewrites.afterFiles,\n ...rewrites.fallback,\n ]\n\n const distDirCreated = await nextBuildSpan\n .traceChild('create-dist-dir')\n .traceAsyncFn(async () => {\n try {\n await promises.mkdir(distDir, { recursive: true })\n return true\n } catch (err) {\n if (err.code === 'EPERM') {\n return false\n }\n throw err\n }\n })\n\n if (!distDirCreated || !(await isWriteable(distDir))) {\n throw new Error(\n '> Build directory is not writeable. https://nextjs.org/docs/messages/build-dir-not-writeable'\n )\n }\n\n if (config.cleanDistDir) {\n await recursiveDelete(distDir, /^cache/)\n }\n\n // We need to write the manifest with rewrites before build\n // so serverless can import the manifest\n await nextBuildSpan\n .traceChild('write-routes-manifest')\n .traceAsyncFn(() =>\n promises.writeFile(\n routesManifestPath,\n JSON.stringify(routesManifest),\n 'utf8'\n )\n )\n\n const manifestPath = path.join(\n distDir,\n isLikeServerless ? SERVERLESS_DIRECTORY : SERVER_DIRECTORY,\n PAGES_MANIFEST\n )\n\n const requiredServerFiles = nextBuildSpan\n .traceChild('generate-required-server-files')\n .traceFn(() => ({\n version: 1,\n config: {\n ...config,\n compress: false,\n configFile: undefined,\n },\n appDir: dir,\n files: [\n ROUTES_MANIFEST,\n path.relative(distDir, manifestPath),\n BUILD_MANIFEST,\n PRERENDER_MANIFEST,\n REACT_LOADABLE_MANIFEST,\n config.optimizeFonts\n ? path.join(\n isLikeServerless ? SERVERLESS_DIRECTORY : SERVER_DIRECTORY,\n FONT_MANIFEST\n )\n : null,\n BUILD_ID_FILE,\n ]\n .filter(nonNullable)\n .map((file) => path.join(config.distDir, file)),\n ignore: [] as string[],\n }))\n\n const configs = await nextBuildSpan\n .traceChild('generate-webpack-config')\n .traceAsyncFn(() =>\n Promise.all([\n getBaseWebpackConfig(dir, {\n buildId,\n reactProductionProfiling,\n isServer: false,\n config,\n target,\n pagesDir,\n entrypoints: entrypoints.client,\n rewrites,\n }),\n getBaseWebpackConfig(dir, {\n buildId,\n reactProductionProfiling,\n isServer: true,\n config,\n target,\n pagesDir,\n entrypoints: entrypoints.server,\n rewrites,\n }),\n ])\n )\n\n const clientConfig = configs[0]\n\n if (\n clientConfig.optimization &&\n (clientConfig.optimization.minimize !== true ||\n (clientConfig.optimization.minimizer &&\n clientConfig.optimization.minimizer.length === 0))\n ) {\n Log.warn(\n `Production code optimization has been disabled in your project. Read more: https://nextjs.org/docs/messages/minification-disabled`\n )\n }\n\n const webpackBuildStart = process.hrtime()\n\n let result: CompilerResult = { warnings: [], errors: [] }\n // We run client and server compilation separately to optimize for memory usage\n await nextBuildSpan\n .traceChild('run-webpack-compiler')\n .traceAsyncFn(async () => {\n const clientResult = await runCompiler(clientConfig)\n // Fail build if clientResult contains errors\n if (clientResult.errors.length > 0) {\n result = {\n warnings: [...clientResult.warnings],\n errors: [...clientResult.errors],\n }\n } else {\n const serverResult = await runCompiler(configs[1])\n result = {\n warnings: [...clientResult.warnings, ...serverResult.warnings],\n errors: [...clientResult.errors, ...serverResult.errors],\n }\n }\n })\n\n const webpackBuildEnd = process.hrtime(webpackBuildStart)\n if (buildSpinner) {\n buildSpinner.stopAndPersist()\n }\n\n result = nextBuildSpan\n .traceChild('format-webpack-messages')\n .traceFn(() => formatWebpackMessages(result))\n\n if (result.errors.length > 0) {\n // Only keep the first error. Others are often indicative\n // of the same problem, but confuse the reader with noise.\n if (result.errors.length > 1) {\n result.errors.length = 1\n }\n const error = result.errors.join('\\n\\n')\n\n console.error(chalk.red('Failed to compile.\\n'))\n\n if (\n error.indexOf('private-next-pages') > -1 &&\n error.indexOf('does not contain a default export') > -1\n ) {\n const page_name_regex = /'private-next-pages\\/(?<page_name>[^']*)'/\n const parsed = page_name_regex.exec(error)\n const page_name = parsed && parsed.groups && parsed.groups.page_name\n throw new Error(\n `webpack build failed: found page without a React Component as default export in pages/${page_name}\\n\\nSee https://nextjs.org/docs/messages/page-without-valid-component for more info.`\n )\n }\n\n console.error(error)\n console.error()\n\n if (\n error.indexOf('private-next-pages') > -1 ||\n error.indexOf('__next_polyfill__') > -1\n ) {\n throw new Error(\n '> webpack config.resolve.alias was incorrectly overridden. https://nextjs.org/docs/messages/invalid-resolve-alias'\n )\n }\n throw new Error('> Build failed because of webpack errors')\n } else {\n telemetry.record(\n eventBuildCompleted(pagePaths, {\n durationInSeconds: webpackBuildEnd[0],\n })\n )\n\n if (result.warnings.length > 0) {\n Log.warn('Compiled with warnings\\n')\n console.warn(result.warnings.join('\\n\\n'))\n console.warn()\n } else {\n Log.info('Compiled successfully')\n }\n }\n\n const postCompileSpinner = createSpinner({\n prefixText: `${Log.prefixes.info} Collecting page data`,\n })\n\n const buildManifestPath = path.join(distDir, BUILD_MANIFEST)\n\n const ssgPages = new Set<string>()\n const ssgStaticFallbackPages = new Set<string>()\n const ssgBlockingFallbackPages = new Set<string>()\n const staticPages = new Set<string>()\n const invalidPages = new Set<string>()\n const hybridAmpPages = new Set<string>()\n const serverPropsPages = new Set<string>()\n const additionalSsgPaths = new Map<string, Array<string>>()\n const additionalSsgPathsEncoded = new Map<string, Array<string>>()\n const pageInfos = new Map<string, PageInfo>()\n const pagesManifest = JSON.parse(\n await promises.readFile(manifestPath, 'utf8')\n ) as PagesManifest\n const buildManifest = JSON.parse(\n await promises.readFile(buildManifestPath, 'utf8')\n ) as BuildManifest\n\n const analysisBegin = process.hrtime()\n\n const staticCheckSpan = nextBuildSpan.traceChild('static-check')\n const {\n customAppGetInitialProps,\n namedExports,\n isNextImageImported,\n hasSsrAmpPages,\n hasNonStaticErrorPage,\n } = await staticCheckSpan.traceAsyncFn(async () => {\n process.env.NEXT_PHASE = PHASE_PRODUCTION_BUILD\n\n const staticCheckWorkers = new Worker(staticCheckWorker, {\n numWorkers: config.experimental.cpus,\n enableWorkerThreads: config.experimental.workerThreads,\n }) as Worker & typeof import('./utils')\n\n staticCheckWorkers.getStdout().pipe(process.stdout)\n staticCheckWorkers.getStderr().pipe(process.stderr)\n\n const runtimeEnvConfig = {\n publicRuntimeConfig: config.publicRuntimeConfig,\n serverRuntimeConfig: config.serverRuntimeConfig,\n }\n\n const nonStaticErrorPageSpan = staticCheckSpan.traceChild(\n 'check-static-error-page'\n )\n const errorPageHasCustomGetInitialProps = nonStaticErrorPageSpan.traceAsyncFn(\n async () =>\n hasCustomErrorPage &&\n (await staticCheckWorkers.hasCustomGetInitialProps(\n '/_error',\n distDir,\n isLikeServerless,\n runtimeEnvConfig,\n false\n ))\n )\n\n const errorPageStaticResult = nonStaticErrorPageSpan.traceAsyncFn(\n async () =>\n hasCustomErrorPage &&\n staticCheckWorkers.isPageStatic(\n '/_error',\n distDir,\n isLikeServerless,\n runtimeEnvConfig,\n config.i18n?.locales,\n config.i18n?.defaultLocale\n )\n )\n\n // we don't output _app in serverless mode so use _app export\n // from _error instead\n const appPageToCheck = isLikeServerless ? '/_error' : '/_app'\n\n const customAppGetInitialPropsPromise = staticCheckWorkers.hasCustomGetInitialProps(\n appPageToCheck,\n distDir,\n isLikeServerless,\n runtimeEnvConfig,\n true\n )\n\n const namedExportsPromise = staticCheckWorkers.getNamedExports(\n appPageToCheck,\n distDir,\n isLikeServerless,\n runtimeEnvConfig\n )\n\n // eslint-disable-next-line no-shadow\n let isNextImageImported: boolean | undefined\n // eslint-disable-next-line no-shadow\n let hasSsrAmpPages = false\n\n const computedManifestData = await computeFromManifest(\n buildManifest,\n distDir,\n config.experimental.gzipSize\n )\n await Promise.all(\n pageKeys.map(async (page) => {\n const checkPageSpan = staticCheckSpan.traceChild('check-page', {\n page,\n })\n return checkPageSpan.traceAsyncFn(async () => {\n const actualPage = normalizePagePath(page)\n const [selfSize, allSize] = await getJsPageSizeInKb(\n actualPage,\n distDir,\n buildManifest,\n config.experimental.gzipSize,\n computedManifestData\n )\n\n let isSsg = false\n let isStatic = false\n let isHybridAmp = false\n let ssgPageRoutes: string[] | null = null\n\n const nonReservedPage = !page.match(\n /^\\/(_app|_error|_document|api(\\/|$))/\n )\n\n if (nonReservedPage) {\n try {\n let isPageStaticSpan = checkPageSpan.traceChild(\n 'is-page-static'\n )\n let workerResult = await isPageStaticSpan.traceAsyncFn(() => {\n return staticCheckWorkers.isPageStatic(\n page,\n distDir,\n isLikeServerless,\n runtimeEnvConfig,\n config.i18n?.locales,\n config.i18n?.defaultLocale,\n isPageStaticSpan.id\n )\n })\n\n if (\n workerResult.isStatic === false &&\n (workerResult.isHybridAmp || workerResult.isAmpOnly)\n ) {\n hasSsrAmpPages = true\n }\n\n if (workerResult.isHybridAmp) {\n isHybridAmp = true\n hybridAmpPages.add(page)\n }\n\n if (workerResult.isNextImageImported) {\n isNextImageImported = true\n }\n\n if (workerResult.hasStaticProps) {\n ssgPages.add(page)\n isSsg = true\n\n if (\n workerResult.prerenderRoutes &&\n workerResult.encodedPrerenderRoutes\n ) {\n additionalSsgPaths.set(page, workerResult.prerenderRoutes)\n additionalSsgPathsEncoded.set(\n page,\n workerResult.encodedPrerenderRoutes\n )\n ssgPageRoutes = workerResult.prerenderRoutes\n }\n\n if (workerResult.prerenderFallback === 'blocking') {\n ssgBlockingFallbackPages.add(page)\n } else if (workerResult.prerenderFallback === true) {\n ssgStaticFallbackPages.add(page)\n }\n } else if (workerResult.hasServerProps) {\n serverPropsPages.add(page)\n } else if (\n workerResult.isStatic &&\n (await customAppGetInitialPropsPromise) === false\n ) {\n staticPages.add(page)\n isStatic = true\n }\n\n if (hasPages404 && page === '/404') {\n if (!workerResult.isStatic && !workerResult.hasStaticProps) {\n throw new Error(\n `\\`pages/404\\` ${STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR}`\n )\n }\n // we need to ensure the 404 lambda is present since we use\n // it when _app has getInitialProps\n if (\n (await customAppGetInitialPropsPromise) &&\n !workerResult.hasStaticProps\n ) {\n staticPages.delete(page)\n }\n }\n\n if (\n STATIC_STATUS_PAGES.includes(page) &&\n !workerResult.isStatic &&\n !workerResult.hasStaticProps\n ) {\n throw new Error(\n `\\`pages${page}\\` ${STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR}`\n )\n }\n } catch (err) {\n if (err.message !== 'INVALID_DEFAULT_EXPORT') throw err\n invalidPages.add(page)\n }\n }\n\n pageInfos.set(page, {\n size: selfSize,\n totalSize: allSize,\n static: isStatic,\n isSsg,\n isHybridAmp,\n ssgPageRoutes,\n initialRevalidateSeconds: false,\n })\n })\n })\n )\n\n const errorPageResult = await errorPageStaticResult\n const nonStaticErrorPage =\n (await errorPageHasCustomGetInitialProps) ||\n (errorPageResult && errorPageResult.hasServerProps)\n\n const returnValue = {\n customAppGetInitialProps: await customAppGetInitialPropsPromise,\n namedExports: await namedExportsPromise,\n isNextImageImported,\n hasSsrAmpPages,\n hasNonStaticErrorPage: nonStaticErrorPage,\n }\n\n staticCheckWorkers.end()\n return returnValue\n })\n\n if (customAppGetInitialProps) {\n console.warn(\n chalk.bold.yellow(`Warning: `) +\n chalk.yellow(\n `You have opted-out of Automatic Static Optimization due to \\`getInitialProps\\` in \\`pages/_app\\`. This does not opt-out pages with \\`getStaticProps\\``\n )\n )\n console.warn(\n 'Read more: https://nextjs.org/docs/messages/opt-out-auto-static-optimization\\n'\n )\n }\n\n if (!hasSsrAmpPages) {\n requiredServerFiles.ignore.push(\n path.relative(\n dir,\n path.join(\n path.dirname(\n require.resolve(\n 'next/dist/compiled/@ampproject/toolbox-optimizer'\n )\n ),\n '**/*'\n )\n )\n )\n }\n\n if (serverPropsPages.size > 0 || ssgPages.size > 0) {\n // We update the routes manifest after the build with the\n // data routes since we can't determine these until after build\n routesManifest.dataRoutes = getSortedRoutes([\n ...serverPropsPages,\n ...ssgPages,\n ]).map((page) => {\n const pagePath = normalizePagePath(page)\n const dataRoute = path.posix.join(\n '/_next/data',\n buildId,\n `${pagePath}.json`\n )\n\n let dataRouteRegex: string\n let namedDataRouteRegex: string | undefined\n let routeKeys: { [named: string]: string } | undefined\n\n if (isDynamicRoute(page)) {\n const routeRegex = getRouteRegex(dataRoute.replace(/\\.json$/, ''))\n\n dataRouteRegex = normalizeRouteRegex(\n routeRegex.re.source.replace(/\\(\\?:\\\\\\/\\)\\?\\$$/, '\\\\.json$')\n )\n namedDataRouteRegex = routeRegex.namedRegex!.replace(\n /\\(\\?:\\/\\)\\?\\$$/,\n '\\\\.json$'\n )\n routeKeys = routeRegex.routeKeys\n } else {\n dataRouteRegex = normalizeRouteRegex(\n new RegExp(\n `^${path.posix.join(\n '/_next/data',\n escapeStringRegexp(buildId),\n `${pagePath}.json`\n )}$`\n ).source\n )\n }\n\n return {\n page,\n routeKeys,\n dataRouteRegex,\n namedDataRouteRegex,\n }\n })\n\n await promises.writeFile(\n routesManifestPath,\n JSON.stringify(routesManifest),\n 'utf8'\n )\n }\n\n // Since custom _app.js can wrap the 404 page we have to opt-out of static optimization if it has getInitialProps\n // Only export the static 404 when there is no /_error present\n const useStatic404 =\n !customAppGetInitialProps && (!hasNonStaticErrorPage || hasPages404)\n\n if (invalidPages.size > 0) {\n throw new Error(\n `Build optimization failed: found page${\n invalidPages.size === 1 ? '' : 's'\n } without a React Component as default export in \\n${[...invalidPages]\n .map((pg) => `pages${pg}`)\n .join(\n '\\n'\n )}\\n\\nSee https://nextjs.org/docs/messages/page-without-valid-component for more info.\\n`\n )\n }\n\n await writeBuildId(distDir, buildId)\n\n if (config.experimental.optimizeCss) {\n const cssFilePaths = getCssFilePaths(buildManifest)\n\n requiredServerFiles.files.push(\n ...cssFilePaths.map((filePath) => path.join(config.distDir, filePath))\n )\n }\n\n await promises.writeFile(\n path.join(distDir, SERVER_FILES_MANIFEST),\n JSON.stringify(requiredServerFiles),\n 'utf8'\n )\n\n const finalPrerenderRoutes: { [route: string]: SsgRoute } = {}\n const tbdPrerenderRoutes: string[] = []\n let ssgNotFoundPaths: string[] = []\n\n if (postCompileSpinner) postCompileSpinner.stopAndPersist()\n\n const { i18n } = config\n\n const usedStaticStatusPages = STATIC_STATUS_PAGES.filter(\n (page) =>\n mappedPages[page] && mappedPages[page].startsWith('private-next-pages')\n )\n usedStaticStatusPages.forEach((page) => {\n if (!ssgPages.has(page) && !customAppGetInitialProps) {\n staticPages.add(page)\n }\n })\n\n const hasPages500 = usedStaticStatusPages.includes('/500')\n const useDefaultStatic500 =\n !hasPages500 && !hasNonStaticErrorPage && !customAppGetInitialProps\n\n const combinedPages = [...staticPages, ...ssgPages]\n\n if (combinedPages.length > 0 || useStatic404 || useDefaultStatic500) {\n const staticGenerationSpan = nextBuildSpan.traceChild('static-generation')\n await staticGenerationSpan.traceAsyncFn(async () => {\n detectConflictingPaths(\n [\n ...combinedPages,\n ...pageKeys.filter((page) => !combinedPages.includes(page)),\n ],\n ssgPages,\n additionalSsgPaths\n )\n const exportApp = require('../export').default\n const exportOptions = {\n silent: false,\n buildExport: true,\n threads: config.experimental.cpus,\n pages: combinedPages,\n outdir: path.join(distDir, 'export'),\n statusMessage: 'Generating static pages',\n }\n const exportConfig: any = {\n ...config,\n initialPageRevalidationMap: {},\n ssgNotFoundPaths: [] as string[],\n // Default map will be the collection of automatic statically exported\n // pages and incremental pages.\n // n.b. we cannot handle this above in combinedPages because the dynamic\n // page must be in the `pages` array, but not in the mapping.\n exportPathMap: (defaultMap: any) => {\n // Dynamically routed pages should be prerendered to be used as\n // a client-side skeleton (fallback) while data is being fetched.\n // This ensures the end-user never sees a 500 or slow response from the\n // server.\n //\n // Note: prerendering disables automatic static optimization.\n ssgPages.forEach((page) => {\n if (isDynamicRoute(page)) {\n tbdPrerenderRoutes.push(page)\n\n if (ssgStaticFallbackPages.has(page)) {\n // Override the rendering for the dynamic page to be treated as a\n // fallback render.\n if (i18n) {\n defaultMap[`/${i18n.defaultLocale}${page}`] = {\n page,\n query: { __nextFallback: true },\n }\n } else {\n defaultMap[page] = { page, query: { __nextFallback: true } }\n }\n } else {\n // Remove dynamically routed pages from the default path map when\n // fallback behavior is disabled.\n delete defaultMap[page]\n }\n }\n })\n // Append the \"well-known\" routes we should prerender for, e.g. blog\n // post slugs.\n additionalSsgPaths.forEach((routes, page) => {\n const encodedRoutes = additionalSsgPathsEncoded.get(page)\n\n routes.forEach((route, routeIdx) => {\n defaultMap[route] = {\n page,\n query: { __nextSsgPath: encodedRoutes?.[routeIdx] },\n }\n })\n })\n\n if (useStatic404) {\n defaultMap['/404'] = {\n page: hasPages404 ? '/404' : '/_error',\n }\n }\n\n if (useDefaultStatic500) {\n defaultMap['/500'] = {\n page: '/_error',\n }\n }\n\n if (i18n) {\n for (const page of [\n ...staticPages,\n ...ssgPages,\n ...(useStatic404 ? ['/404'] : []),\n ...(useDefaultStatic500 ? ['/500'] : []),\n ]) {\n const isSsg = ssgPages.has(page)\n const isDynamic = isDynamicRoute(page)\n const isFallback = isSsg && ssgStaticFallbackPages.has(page)\n\n for (const locale of i18n.locales) {\n // skip fallback generation for SSG pages without fallback mode\n if (isSsg && isDynamic && !isFallback) continue\n const outputPath = `/${locale}${page === '/' ? '' : page}`\n\n defaultMap[outputPath] = {\n page: defaultMap[page]?.page || page,\n query: { __nextLocale: locale },\n }\n\n if (isFallback) {\n defaultMap[outputPath].query.__nextFallback = true\n }\n }\n\n if (isSsg) {\n // remove non-locale prefixed variant from defaultMap\n delete defaultMap[page]\n }\n }\n }\n return defaultMap\n },\n }\n\n await exportApp(dir, exportOptions, exportConfig)\n\n const postBuildSpinner = createSpinner({\n prefixText: `${Log.prefixes.info} Finalizing page optimization`,\n })\n ssgNotFoundPaths = exportConfig.ssgNotFoundPaths\n\n // remove server bundles that were exported\n for (const page of staticPages) {\n const serverBundle = getPagePath(page, distDir, isLikeServerless)\n await promises.unlink(serverBundle)\n }\n const serverOutputDir = path.join(\n distDir,\n isLikeServerless ? SERVERLESS_DIRECTORY : SERVER_DIRECTORY\n )\n\n const moveExportedPage = async (\n originPage: string,\n page: string,\n file: string,\n isSsg: boolean,\n ext: 'html' | 'json',\n additionalSsgFile = false\n ) => {\n return staticGenerationSpan\n .traceChild('move-exported-page')\n .traceAsyncFn(async () => {\n file = `${file}.${ext}`\n const orig = path.join(exportOptions.outdir, file)\n const pagePath = getPagePath(\n originPage,\n distDir,\n isLikeServerless\n )\n\n const relativeDest = path\n .relative(\n serverOutputDir,\n path.join(\n path.join(\n pagePath,\n // strip leading / and then recurse number of nested dirs\n // to place from base folder\n originPage\n .substr(1)\n .split('/')\n .map(() => '..')\n .join('/')\n ),\n file\n )\n )\n .replace(/\\\\/g, '/')\n\n const dest = path.join(\n distDir,\n isLikeServerless ? SERVERLESS_DIRECTORY : SERVER_DIRECTORY,\n relativeDest\n )\n\n if (\n !isSsg &&\n !(\n // don't add static status page to manifest if it's\n // the default generated version e.g. no pages/500\n (\n STATIC_STATUS_PAGES.includes(page) &&\n !usedStaticStatusPages.includes(page)\n )\n )\n ) {\n pagesManifest[page] = relativeDest\n }\n\n const isNotFound = ssgNotFoundPaths.includes(page)\n\n // for SSG files with i18n the non-prerendered variants are\n // output with the locale prefixed so don't attempt moving\n // without the prefix\n if ((!i18n || additionalSsgFile) && !isNotFound) {\n await promises.mkdir(path.dirname(dest), { recursive: true })\n await promises.rename(orig, dest)\n } else if (i18n && !isSsg) {\n // this will be updated with the locale prefixed variant\n // since all files are output with the locale prefix\n delete pagesManifest[page]\n }\n\n if (i18n) {\n if (additionalSsgFile) return\n\n for (const locale of i18n.locales) {\n const curPath = `/${locale}${page === '/' ? '' : page}`\n const localeExt = page === '/' ? path.extname(file) : ''\n const relativeDestNoPages = relativeDest.substr(\n 'pages/'.length\n )\n\n if (isSsg && ssgNotFoundPaths.includes(curPath)) {\n continue\n }\n\n const updatedRelativeDest = path\n .join(\n 'pages',\n locale + localeExt,\n // if it's the top-most index page we want it to be locale.EXT\n // instead of locale/index.html\n page === '/' ? '' : relativeDestNoPages\n )\n .replace(/\\\\/g, '/')\n\n const updatedOrig = path.join(\n exportOptions.outdir,\n locale + localeExt,\n page === '/' ? '' : file\n )\n const updatedDest = path.join(\n distDir,\n isLikeServerless ? SERVERLESS_DIRECTORY : SERVER_DIRECTORY,\n updatedRelativeDest\n )\n\n if (!isSsg) {\n pagesManifest[curPath] = updatedRelativeDest\n }\n await promises.mkdir(path.dirname(updatedDest), {\n recursive: true,\n })\n await promises.rename(updatedOrig, updatedDest)\n }\n }\n })\n }\n\n // Only move /404 to /404 when there is no custom 404 as in that case we don't know about the 404 page\n if (!hasPages404 && useStatic404) {\n await moveExportedPage('/_error', '/404', '/404', false, 'html')\n }\n\n if (useDefaultStatic500) {\n await moveExportedPage('/_error', '/500', '/500', false, 'html')\n }\n\n for (const page of combinedPages) {\n const isSsg = ssgPages.has(page)\n const isStaticSsgFallback = ssgStaticFallbackPages.has(page)\n const isDynamic = isDynamicRoute(page)\n const hasAmp = hybridAmpPages.has(page)\n const file = normalizePagePath(page)\n\n // The dynamic version of SSG pages are only prerendered if the\n // fallback is enabled. Below, we handle the specific prerenders\n // of these.\n const hasHtmlOutput = !(isSsg && isDynamic && !isStaticSsgFallback)\n\n if (hasHtmlOutput) {\n await moveExportedPage(page, page, file, isSsg, 'html')\n }\n\n if (hasAmp && (!isSsg || (isSsg && !isDynamic))) {\n const ampPage = `${file}.amp`\n await moveExportedPage(page, ampPage, ampPage, isSsg, 'html')\n\n if (isSsg) {\n await moveExportedPage(page, ampPage, ampPage, isSsg, 'json')\n }\n }\n\n if (isSsg) {\n // For a non-dynamic SSG page, we must copy its data file\n // from export, we already moved the HTML file above\n if (!isDynamic) {\n await moveExportedPage(page, page, file, isSsg, 'json')\n\n if (i18n) {\n // TODO: do we want to show all locale variants in build output\n for (const locale of i18n.locales) {\n const localePage = `/${locale}${page === '/' ? '' : page}`\n\n if (!ssgNotFoundPaths.includes(localePage)) {\n finalPrerenderRoutes[localePage] = {\n initialRevalidateSeconds:\n exportConfig.initialPageRevalidationMap[localePage],\n srcRoute: null,\n dataRoute: path.posix.join(\n '/_next/data',\n buildId,\n `${file}.json`\n ),\n }\n }\n }\n } else {\n finalPrerenderRoutes[page] = {\n initialRevalidateSeconds:\n exportConfig.initialPageRevalidationMap[page],\n srcRoute: null,\n dataRoute: path.posix.join(\n '/_next/data',\n buildId,\n `${file}.json`\n ),\n }\n }\n // Set Page Revalidation Interval\n const pageInfo = pageInfos.get(page)\n if (pageInfo) {\n pageInfo.initialRevalidateSeconds =\n exportConfig.initialPageRevalidationMap[page]\n pageInfos.set(page, pageInfo)\n }\n } else {\n // For a dynamic SSG page, we did not copy its data exports and only\n // copy the fallback HTML file (if present).\n // We must also copy specific versions of this page as defined by\n // `getStaticPaths` (additionalSsgPaths).\n const extraRoutes = additionalSsgPaths.get(page) || []\n for (const route of extraRoutes) {\n const pageFile = normalizePagePath(route)\n await moveExportedPage(\n page,\n route,\n pageFile,\n isSsg,\n 'html',\n true\n )\n await moveExportedPage(\n page,\n route,\n pageFile,\n isSsg,\n 'json',\n true\n )\n\n if (hasAmp) {\n const ampPage = `${pageFile}.amp`\n await moveExportedPage(\n page,\n ampPage,\n ampPage,\n isSsg,\n 'html',\n true\n )\n await moveExportedPage(\n page,\n ampPage,\n ampPage,\n isSsg,\n 'json',\n true\n )\n }\n\n finalPrerenderRoutes[route] = {\n initialRevalidateSeconds:\n exportConfig.initialPageRevalidationMap[route],\n srcRoute: page,\n dataRoute: path.posix.join(\n '/_next/data',\n buildId,\n `${normalizePagePath(route)}.json`\n ),\n }\n\n // Set route Revalidation Interval\n const pageInfo = pageInfos.get(route)\n if (pageInfo) {\n pageInfo.initialRevalidateSeconds =\n exportConfig.initialPageRevalidationMap[route]\n pageInfos.set(route, pageInfo)\n }\n }\n }\n }\n }\n\n // remove temporary export folder\n await recursiveDelete(exportOptions.outdir)\n await promises.rmdir(exportOptions.outdir)\n await promises.writeFile(\n manifestPath,\n JSON.stringify(pagesManifest, null, 2),\n 'utf8'\n )\n\n if (postBuildSpinner) postBuildSpinner.stopAndPersist()\n console.log()\n })\n }\n\n const analysisEnd = process.hrtime(analysisBegin)\n telemetry.record(\n eventBuildOptimize(pagePaths, {\n durationInSeconds: analysisEnd[0],\n staticPageCount: staticPages.size,\n staticPropsPageCount: ssgPages.size,\n serverPropsPageCount: serverPropsPages.size,\n ssrPageCount:\n pagePaths.length -\n (staticPages.size + ssgPages.size + serverPropsPages.size),\n hasStatic404: useStatic404,\n hasReportWebVitals: namedExports?.includes('reportWebVitals') ?? false,\n rewritesCount: combinedRewrites.length,\n headersCount: headers.length,\n redirectsCount: redirects.length - 1, // reduce one for trailing slash\n headersWithHasCount: headers.filter((r: any) => !!r.has).length,\n rewritesWithHasCount: combinedRewrites.filter((r: any) => !!r.has)\n .length,\n redirectsWithHasCount: redirects.filter((r: any) => !!r.has).length,\n })\n )\n\n if (ssgPages.size > 0) {\n const finalDynamicRoutes: PrerenderManifest['dynamicRoutes'] = {}\n tbdPrerenderRoutes.forEach((tbdRoute) => {\n const normalizedRoute = normalizePagePath(tbdRoute)\n const dataRoute = path.posix.join(\n '/_next/data',\n buildId,\n `${normalizedRoute}.json`\n )\n\n finalDynamicRoutes[tbdRoute] = {\n routeRegex: normalizeRouteRegex(getRouteRegex(tbdRoute).re.source),\n dataRoute,\n fallback: ssgBlockingFallbackPages.has(tbdRoute)\n ? null\n : ssgStaticFallbackPages.has(tbdRoute)\n ? `${normalizedRoute}.html`\n : false,\n dataRouteRegex: normalizeRouteRegex(\n getRouteRegex(dataRoute.replace(/\\.json$/, '')).re.source.replace(\n /\\(\\?:\\\\\\/\\)\\?\\$$/,\n '\\\\.json$'\n )\n ),\n }\n })\n const prerenderManifest: PrerenderManifest = {\n version: 3,\n routes: finalPrerenderRoutes,\n dynamicRoutes: finalDynamicRoutes,\n notFoundRoutes: ssgNotFoundPaths,\n preview: previewProps,\n }\n\n await promises.writeFile(\n path.join(distDir, PRERENDER_MANIFEST),\n JSON.stringify(prerenderManifest),\n 'utf8'\n )\n await generateClientSsgManifest(prerenderManifest, {\n distDir,\n buildId,\n locales: config.i18n?.locales || [],\n })\n } else {\n const prerenderManifest: PrerenderManifest = {\n version: 3,\n routes: {},\n dynamicRoutes: {},\n preview: previewProps,\n notFoundRoutes: [],\n }\n await promises.writeFile(\n path.join(distDir, PRERENDER_MANIFEST),\n JSON.stringify(prerenderManifest),\n 'utf8'\n )\n }\n\n const images = { ...config.images }\n const { deviceSizes, imageSizes } = images\n images.sizes = [...deviceSizes, ...imageSizes]\n\n await promises.writeFile(\n path.join(distDir, IMAGES_MANIFEST),\n JSON.stringify({\n version: 1,\n images,\n }),\n 'utf8'\n )\n await promises.writeFile(\n path.join(distDir, EXPORT_MARKER),\n JSON.stringify({\n version: 1,\n hasExportPathMap: typeof config.exportPathMap === 'function',\n exportTrailingSlash: config.trailingSlash === true,\n isNextImageImported: isNextImageImported === true,\n }),\n 'utf8'\n )\n await promises.unlink(path.join(distDir, EXPORT_DETAIL)).catch((err) => {\n if (err.code === 'ENOENT') {\n return Promise.resolve()\n }\n return Promise.reject(err)\n })\n\n staticPages.forEach((pg) => allStaticPages.add(pg))\n pageInfos.forEach((info: PageInfo, key: string) => {\n allPageInfos.set(key, info)\n })\n\n await nextBuildSpan.traceChild('print-tree-view').traceAsyncFn(() =>\n printTreeView(Object.keys(mappedPages), allPageInfos, isLikeServerless, {\n distPath: distDir,\n buildId: buildId,\n pagesDir,\n useStatic404,\n pageExtensions: config.pageExtensions,\n buildManifest,\n gzipSize: config.experimental.gzipSize,\n })\n )\n\n if (debugOutput) {\n nextBuildSpan\n .traceChild('print-custom-routes')\n .traceFn(() => printCustomRoutes({ redirects, rewrites, headers }))\n }\n\n if (config.analyticsId) {\n console.log(\n chalk.bold.green('Next.js Analytics') +\n ' is enabled for this production build. ' +\n \"You'll receive a Real Experience Score computed by all of your visitors.\"\n )\n console.log('')\n }\n\n await nextBuildSpan\n .traceChild('telemetry-flush')\n .traceAsyncFn(() => telemetry.flush())\n })\n}\n\nexport type ClientSsgManifest = Set<string>\n\nfunction generateClientSsgManifest(\n prerenderManifest: PrerenderManifest,\n {\n buildId,\n distDir,\n locales,\n }: { buildId: string; distDir: string; locales: string[] }\n) {\n const ssgPages: ClientSsgManifest = new Set<string>([\n ...Object.entries(prerenderManifest.routes)\n // Filter out dynamic routes\n .filter(([, { srcRoute }]) => srcRoute == null)\n .map(([route]) => normalizeLocalePath(route, locales).pathname),\n ...Object.keys(prerenderManifest.dynamicRoutes),\n ])\n\n const clientSsgManifestContent = `self.__SSG_MANIFEST=${devalue(\n ssgPages\n )};self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB()`\n\n writeFileSync(\n path.join(distDir, CLIENT_STATIC_FILES_PATH, buildId, '_ssgManifest.js'),\n clientSsgManifestContent\n )\n}\n"]}
\ No newline at end of file
+{"version":3,"sources":["../../build/index.ts"],"names":["staticCheckWorker","require","resolve","build","dir","conf","reactProductionProfiling","debugOutput","runLint","nextBuildSpan","traceAsyncFn","loadedEnvFiles","traceChild","traceFn","Log","config","PHASE_PRODUCTION_BUILD","target","buildId","generateBuildId","nanoid","distDir","path","join","customRoutes","headers","rewrites","redirects","cacheDir","ciEnvironment","isCI","hasNextSupport","hasCache","console","log","prefixes","warn","telemetry","Telemetry","publicDir","pagesDirs","pagesPaths","hasPublicDir","record","webpackVersion","isWebpack5","cliCommand","isSrcDir","length","relative","startsWith","hasNowJson","cwd","isCustomServer","then","events","ignoreTypeScriptErrors","Boolean","typescript","ignoreBuildErrors","typeCheckStart","process","hrtime","typeCheckingSpinner","prefixText","info","verifyResult","images","disableStaticImages","typeCheckEnd","durationInSeconds","typescriptVersion","version","inputFilesCount","result","totalFilesCount","incremental","stopAndPersist","ignoreESLint","eslint","ignoreDuringBuilds","lintDirs","dirs","experimental","cpus","workerThreads","buildSpinner","isLikeServerless","pagePaths","pageExtensions","allStaticPages","Set","allPageInfos","Map","previewProps","previewModeId","crypto","randomBytes","toString","previewModeSigningKey","previewModeEncryptionKey","mappedPages","entrypoints","pageKeys","Object","keys","conflictingPublicFiles","hasCustomErrorPage","hasPages404","hasPublicUnderScoreNextDir","Error","PUBLIC_DIR_MIDDLEWARE_CONFLICT","page","hasPublicPageFile","push","numConflicting","nestedReservedPages","filter","match","dirname","buildCustomRoute","r","type","routeRegex","source","strict","sensitive","delimiter","statusCode","permanent","undefined","regex","routesManifestPath","ROUTES_MANIFEST","routesManifest","pages404","basePath","map","dynamicRoutes","isDynamicRoute","re","routeKeys","namedRegex","dataRoutes","i18n","beforeFiles","fallback","afterFiles","combinedRewrites","distDirCreated","promises","mkdir","recursive","err","code","cleanDistDir","writeFile","JSON","stringify","manifestPath","SERVERLESS_DIRECTORY","SERVER_DIRECTORY","PAGES_MANIFEST","requiredServerFiles","compress","configFile","appDir","files","BUILD_MANIFEST","PRERENDER_MANIFEST","REACT_LOADABLE_MANIFEST","optimizeFonts","FONT_MANIFEST","BUILD_ID_FILE","nonNullable","file","ignore","configs","Promise","all","isServer","client","server","clientConfig","optimization","minimize","minimizer","webpackBuildStart","warnings","errors","clientResult","serverResult","webpackBuildEnd","error","chalk","red","indexOf","page_name_regex","parsed","exec","page_name","groups","postCompileSpinner","buildManifestPath","ssgPages","ssgStaticFallbackPages","ssgBlockingFallbackPages","staticPages","invalidPages","hybridAmpPages","serverPropsPages","additionalSsgPaths","additionalSsgPathsEncoded","pageInfos","pagesManifest","parse","readFile","buildManifest","analysisBegin","staticCheckSpan","customAppGetInitialProps","namedExports","isNextImageImported","hasSsrAmpPages","hasNonStaticErrorPage","env","NEXT_PHASE","staticCheckWorkers","Worker","numWorkers","enableWorkerThreads","getStdout","pipe","stdout","getStderr","stderr","runtimeEnvConfig","publicRuntimeConfig","serverRuntimeConfig","nonStaticErrorPageSpan","errorPageHasCustomGetInitialProps","hasCustomGetInitialProps","errorPageStaticResult","isPageStatic","locales","defaultLocale","appPageToCheck","customAppGetInitialPropsPromise","namedExportsPromise","getNamedExports","computedManifestData","gzipSize","checkPageSpan","actualPage","selfSize","allSize","isSsg","isStatic","isHybridAmp","ssgPageRoutes","nonReservedPage","isPageStaticSpan","workerResult","id","isAmpOnly","add","hasStaticProps","prerenderRoutes","encodedPrerenderRoutes","set","prerenderFallback","hasServerProps","STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR","delete","STATIC_STATUS_PAGES","includes","message","size","totalSize","static","initialRevalidateSeconds","errorPageResult","nonStaticErrorPage","returnValue","end","bold","yellow","pagePath","dataRoute","posix","dataRouteRegex","namedDataRouteRegex","replace","RegExp","useStatic404","pg","optimizeCss","cssFilePaths","filePath","SERVER_FILES_MANIFEST","finalPrerenderRoutes","tbdPrerenderRoutes","ssgNotFoundPaths","usedStaticStatusPages","forEach","has","hasPages500","useDefaultStatic500","combinedPages","staticGenerationSpan","exportApp","default","exportOptions","silent","buildExport","threads","pages","outdir","statusMessage","exportConfig","initialPageRevalidationMap","exportPathMap","defaultMap","query","__nextFallback","routes","encodedRoutes","get","route","routeIdx","__nextSsgPath","isDynamic","isFallback","locale","outputPath","__nextLocale","postBuildSpinner","serverBundle","unlink","serverOutputDir","moveExportedPage","originPage","ext","additionalSsgFile","orig","relativeDest","substr","split","dest","isNotFound","rename","curPath","localeExt","extname","relativeDestNoPages","updatedRelativeDest","updatedOrig","updatedDest","isStaticSsgFallback","hasAmp","hasHtmlOutput","ampPage","localePage","srcRoute","pageInfo","extraRoutes","pageFile","rmdir","analysisEnd","staticPageCount","staticPropsPageCount","serverPropsPageCount","ssrPageCount","hasStatic404","hasReportWebVitals","rewritesCount","headersCount","redirectsCount","headersWithHasCount","rewritesWithHasCount","redirectsWithHasCount","finalDynamicRoutes","tbdRoute","normalizedRoute","prerenderManifest","notFoundRoutes","preview","generateClientSsgManifest","deviceSizes","imageSizes","sizes","IMAGES_MANIFEST","EXPORT_MARKER","hasExportPathMap","exportTrailingSlash","trailingSlash","EXPORT_DETAIL","catch","reject","key","distPath","analyticsId","green","flush","entries","pathname","clientSsgManifestContent","CLIENT_STATIC_FILES_PATH"],"mappings":"2DAAA,8BACA,oDACA,sDACA,sBACA,uCACA,2EACA,mGACA,0EACA,0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AF,CAAaD,QAAb,CAAuBD,OAAvB,CAAlB,CAFjB,EAGD,CAED,GAAIV,MAAM,CAACkY,WAAX,CAAwB,CACtBhX,OAAO,CAACC,GAAR,CACEgK,eAAM2F,IAAN,CAAWqH,KAAX,CAAiB,mBAAjB,EACE,yCADF,CAEE,0EAHJ,EAKAjX,OAAO,CAACC,GAAR,CAAY,EAAZ,EACD,CAED,KAAMzB,CAAAA,aAAa,CAChBG,UADG,CACQ,iBADR,EAEHF,YAFG,CAEU,IAAM2B,SAAS,CAAC8W,KAAV,EAFhB,CAAN,CAGD,CA37CM,CAAP,CA47CD,CAID,QAAShB,CAAAA,yBAAT,CACEH,iBADF,CAEE,CACE9W,OADF,CAEEG,OAFF,CAGE+N,OAHF,CAFF,CAOE,CACA,KAAMxC,CAAAA,QAA2B,CAAG,GAAIjH,CAAAA,GAAJ,CAAgB,CAClD,GAAGa,MAAM,CAAC4S,OAAP,CAAepB,iBAAiB,CAAC3D,MAAjC,CACD;AADC,CAEAhN,MAFA,CAEO,CAAC,EAAG,CAAEsP,QAAF,CAAH,CAAD,GAAsBA,QAAQ,EAAI,IAFzC,EAGAlO,GAHA,CAGI,CAAC,CAAC+L,KAAD,CAAD,GAAa,6CAAoBA,KAApB,CAA2BpF,OAA3B,EAAoCiK,QAHrD,CAD+C,CAKlD,GAAG7S,MAAM,CAACC,IAAP,CAAYuR,iBAAiB,CAACtP,aAA9B,CAL+C,CAAhB,CAApC,CAQA,KAAM4Q,CAAAA,wBAAwB,CAAI,uBAAsB,qBACtD1M,QADsD,CAEtD,mDAFF,CAIA,sBACEtL,cAAKC,IAAL,CAAUF,OAAV,CAAmBkY,oCAAnB,CAA6CrY,OAA7C,CAAsD,iBAAtD,CADF,CAEEoY,wBAFF,EAID","sourcesContent":["import { loadEnvConfig } from '@next/env'\nimport chalk from 'chalk'\nimport crypto from 'crypto'\nimport { promises, writeFileSync } from 'fs'\nimport { Worker } from 'jest-worker'\nimport devalue from 'next/dist/compiled/devalue'\nimport escapeStringRegexp from 'next/dist/compiled/escape-string-regexp'\nimport findUp from 'next/dist/compiled/find-up'\nimport { nanoid } from 'next/dist/compiled/nanoid/index.cjs'\nimport { pathToRegexp } from 'next/dist/compiled/path-to-regexp'\nimport path from 'path'\nimport formatWebpackMessages from '../client/dev/error-overlay/format-webpack-messages'\nimport {\n STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR,\n PUBLIC_DIR_MIDDLEWARE_CONFLICT,\n} from '../lib/constants'\nimport { fileExists } from '../lib/file-exists'\nimport { findPagesDir } from '../lib/find-pages-dir'\nimport loadCustomRoutes, {\n CustomRoutes,\n getRedirectStatus,\n normalizeRouteRegex,\n Redirect,\n Rewrite,\n RouteType,\n} from '../lib/load-custom-routes'\nimport { nonNullable } from '../lib/non-nullable'\nimport { recursiveDelete } from '../lib/recursive-delete'\nimport { verifyAndLint } from '../lib/verifyAndLint'\nimport { verifyTypeScriptSetup } from '../lib/verifyTypeScriptSetup'\nimport {\n BUILD_ID_FILE,\n BUILD_MANIFEST,\n CLIENT_STATIC_FILES_PATH,\n EXPORT_DETAIL,\n EXPORT_MARKER,\n FONT_MANIFEST,\n IMAGES_MANIFEST,\n PAGES_MANIFEST,\n PHASE_PRODUCTION_BUILD,\n PRERENDER_MANIFEST,\n REACT_LOADABLE_MANIFEST,\n ROUTES_MANIFEST,\n SERVERLESS_DIRECTORY,\n SERVER_DIRECTORY,\n SERVER_FILES_MANIFEST,\n STATIC_STATUS_PAGES,\n} from '../next-server/lib/constants'\nimport {\n getRouteRegex,\n getSortedRoutes,\n isDynamicRoute,\n} from '../next-server/lib/router/utils'\nimport { __ApiPreviewProps } from '../next-server/server/api-utils'\nimport loadConfig, {\n isTargetLikeServerless,\n NextConfig,\n} from '../next-server/server/config'\nimport { BuildManifest } from '../next-server/server/get-page-files'\nimport '../next-server/server/node-polyfill-fetch'\nimport { normalizePagePath } from '../next-server/server/normalize-page-path'\nimport { getPagePath } from '../next-server/server/require'\nimport * as ciEnvironment from '../telemetry/ci-info'\nimport {\n eventBuildCompleted,\n eventBuildOptimize,\n eventCliSession,\n eventNextPlugins,\n eventTypeCheckCompleted,\n} from '../telemetry/events'\nimport { Telemetry } from '../telemetry/storage'\nimport { CompilerResult, runCompiler } from './compiler'\nimport { createEntrypoints, createPagesMapping } from './entries'\nimport { generateBuildId } from './generate-build-id'\nimport { isWriteable } from './is-writeable'\nimport * as Log from './output/log'\nimport createSpinner from './spinner'\nimport { trace, setGlobal } from '../telemetry/trace'\nimport {\n collectPages,\n detectConflictingPaths,\n computeFromManifest,\n getJsPageSizeInKb,\n PageInfo,\n printCustomRoutes,\n printTreeView,\n getCssFilePaths,\n} from './utils'\nimport getBaseWebpackConfig from './webpack-config'\nimport { PagesManifest } from './webpack/plugins/pages-manifest-plugin'\nimport { writeBuildId } from './write-build-id'\nimport { normalizeLocalePath } from '../next-server/lib/i18n/normalize-locale-path'\nimport { isWebpack5 } from 'next/dist/compiled/webpack/webpack'\n\nconst staticCheckWorker = require.resolve('./utils')\n\nexport type SsgRoute = {\n initialRevalidateSeconds: number | false\n srcRoute: string | null\n dataRoute: string\n}\n\nexport type DynamicSsgRoute = {\n routeRegex: string\n fallback: string | null | false\n dataRoute: string\n dataRouteRegex: string\n}\n\nexport type PrerenderManifest = {\n version: 3\n routes: { [route: string]: SsgRoute }\n dynamicRoutes: { [route: string]: DynamicSsgRoute }\n notFoundRoutes: string[]\n preview: __ApiPreviewProps\n}\n\nexport default async function build(\n dir: string,\n conf = null,\n reactProductionProfiling = false,\n debugOutput = false,\n runLint = true\n): Promise<void> {\n const nextBuildSpan = trace('next-build')\n\n return nextBuildSpan.traceAsyncFn(async () => {\n // attempt to load global env values so they are available in next.config.js\n const { loadedEnvFiles } = nextBuildSpan\n .traceChild('load-dotenv')\n .traceFn(() => loadEnvConfig(dir, false, Log))\n\n const config: NextConfig = await nextBuildSpan\n .traceChild('load-next-config')\n .traceAsyncFn(() => loadConfig(PHASE_PRODUCTION_BUILD, dir, conf))\n const { target } = config\n const buildId: string = await nextBuildSpan\n .traceChild('generate-buildid')\n .traceAsyncFn(() => generateBuildId(config.generateBuildId, nanoid))\n const distDir = path.join(dir, config.distDir)\n\n const customRoutes: CustomRoutes = await nextBuildSpan\n .traceChild('load-custom-routes')\n .traceAsyncFn(() => loadCustomRoutes(config))\n\n const { headers, rewrites, redirects } = customRoutes\n\n const cacheDir = path.join(distDir, 'cache')\n if (ciEnvironment.isCI && !ciEnvironment.hasNextSupport) {\n const hasCache = await fileExists(cacheDir)\n\n if (!hasCache) {\n // Intentionally not piping to stderr in case people fail in CI when\n // stderr is detected.\n console.log(\n `${Log.prefixes.warn} No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache`\n )\n }\n }\n\n const telemetry = new Telemetry({ distDir })\n setGlobal('telemetry', telemetry)\n\n const publicDir = path.join(dir, 'public')\n const pagesDirs = findPagesDir(dir, config.pagesPaths)\n const hasPublicDir = await fileExists(publicDir)\n\n telemetry.record(\n eventCliSession(PHASE_PRODUCTION_BUILD, dir, {\n webpackVersion: isWebpack5 ? 5 : 4,\n cliCommand: 'build',\n isSrcDir:\n pagesDirs.length === 1 &&\n path.relative(dir, pagesDirs[0]!).startsWith('src'),\n hasNowJson: !!(await findUp('now.json', { cwd: dir })),\n isCustomServer: null,\n })\n )\n\n eventNextPlugins(path.resolve(dir)).then((events) =>\n telemetry.record(events)\n )\n\n const ignoreTypeScriptErrors = Boolean(config.typescript?.ignoreBuildErrors)\n const typeCheckStart = process.hrtime()\n const typeCheckingSpinner = createSpinner({\n prefixText: `${Log.prefixes.info} ${\n ignoreTypeScriptErrors\n ? 'Skipping validation of types'\n : 'Checking validity of types'\n }`,\n })\n\n const verifyResult = await nextBuildSpan\n .traceChild('verify-typescript-setup')\n .traceAsyncFn(() =>\n verifyTypeScriptSetup(\n dir,\n pagesDirs,\n !ignoreTypeScriptErrors,\n !config.images.disableStaticImages,\n cacheDir\n )\n )\n\n const typeCheckEnd = process.hrtime(typeCheckStart)\n\n if (!ignoreTypeScriptErrors) {\n telemetry.record(\n eventTypeCheckCompleted({\n durationInSeconds: typeCheckEnd[0],\n typescriptVersion: verifyResult.version,\n inputFilesCount: verifyResult.result?.inputFilesCount,\n totalFilesCount: verifyResult.result?.totalFilesCount,\n incremental: verifyResult.result?.incremental,\n })\n )\n }\n\n if (typeCheckingSpinner) {\n typeCheckingSpinner.stopAndPersist()\n }\n\n const ignoreESLint = Boolean(config.eslint?.ignoreDuringBuilds)\n const lintDirs = config.eslint?.dirs\n if (!ignoreESLint && runLint) {\n await nextBuildSpan\n .traceChild('verify-and-lint')\n .traceAsyncFn(async () => {\n await verifyAndLint(\n dir,\n lintDirs,\n config.experimental.cpus,\n config.experimental.workerThreads,\n telemetry\n )\n })\n }\n\n const buildSpinner = createSpinner({\n prefixText: `${Log.prefixes.info} Creating an optimized production build`,\n })\n\n const isLikeServerless = isTargetLikeServerless(target)\n\n const pagePaths: string[] = await nextBuildSpan\n .traceChild('collect-pages')\n .traceAsyncFn(() => collectPages(pagesDirs, config.pageExtensions))\n\n // needed for static exporting since we want to replace with HTML\n // files\n const allStaticPages = new Set<string>()\n let allPageInfos = new Map<string, PageInfo>()\n\n const previewProps: __ApiPreviewProps = {\n previewModeId: crypto.randomBytes(16).toString('hex'),\n previewModeSigningKey: crypto.randomBytes(32).toString('hex'),\n previewModeEncryptionKey: crypto.randomBytes(32).toString('hex'),\n }\n\n const mappedPages = nextBuildSpan\n .traceChild('create-pages-mapping')\n .traceFn(() => createPagesMapping(pagePaths, config.pageExtensions))\n const entrypoints = nextBuildSpan\n .traceChild('create-entrypoints')\n .traceFn(() =>\n createEntrypoints(\n mappedPages,\n target,\n buildId,\n previewProps,\n config,\n loadedEnvFiles\n )\n )\n const pageKeys = Object.keys(mappedPages)\n const conflictingPublicFiles: string[] = []\n const hasCustomErrorPage: boolean = mappedPages['/_error'].startsWith(\n 'private-next-pages'\n )\n const hasPages404 = Boolean(\n mappedPages['/404'] &&\n mappedPages['/404'].startsWith('private-next-pages')\n )\n\n if (hasPublicDir) {\n const hasPublicUnderScoreNextDir = await fileExists(\n path.join(publicDir, '_next')\n )\n if (hasPublicUnderScoreNextDir) {\n throw new Error(PUBLIC_DIR_MIDDLEWARE_CONFLICT)\n }\n }\n\n await nextBuildSpan\n .traceChild('public-dir-conflict-check')\n .traceAsyncFn(async () => {\n // Check if pages conflict with files in `public`\n // Only a page of public file can be served, not both.\n for (const page in mappedPages) {\n const hasPublicPageFile = await fileExists(\n path.join(publicDir, page === '/' ? '/index' : page),\n 'file'\n )\n if (hasPublicPageFile) {\n conflictingPublicFiles.push(page)\n }\n }\n\n const numConflicting = conflictingPublicFiles.length\n\n if (numConflicting) {\n throw new Error(\n `Conflicting public and page file${\n numConflicting === 1 ? ' was' : 's were'\n } found. https://nextjs.org/docs/messages/conflicting-public-file-page\\n${conflictingPublicFiles.join(\n '\\n'\n )}`\n )\n }\n })\n\n const nestedReservedPages = pageKeys.filter((page) => {\n return (\n page.match(/\\/(_app|_document|_error)$/) && path.dirname(page) !== '/'\n )\n })\n\n if (nestedReservedPages.length) {\n Log.warn(\n `The following reserved Next.js pages were detected not directly under the pages directory:\\n` +\n nestedReservedPages.join('\\n') +\n `\\nSee more info here: https://nextjs.org/docs/messages/nested-reserved-page\\n`\n )\n }\n\n const buildCustomRoute = (\n r: {\n source: string\n locale?: false\n basePath?: false\n statusCode?: number\n destination?: string\n },\n type: RouteType\n ) => {\n const keys: any[] = []\n\n const routeRegex = pathToRegexp(r.source, keys, {\n strict: true,\n sensitive: false,\n delimiter: '/', // default is `/#?`, but Next does not pass query info\n })\n\n return {\n ...r,\n ...(type === 'redirect'\n ? {\n statusCode: getRedirectStatus(r as Redirect),\n permanent: undefined,\n }\n : {}),\n regex: normalizeRouteRegex(routeRegex.source),\n }\n }\n\n const routesManifestPath = path.join(distDir, ROUTES_MANIFEST)\n const routesManifest: {\n version: number\n pages404: boolean\n basePath: string\n redirects: Array<ReturnType<typeof buildCustomRoute>>\n rewrites:\n | Array<ReturnType<typeof buildCustomRoute>>\n | {\n beforeFiles: Array<ReturnType<typeof buildCustomRoute>>\n afterFiles: Array<ReturnType<typeof buildCustomRoute>>\n fallback: Array<ReturnType<typeof buildCustomRoute>>\n }\n headers: Array<ReturnType<typeof buildCustomRoute>>\n dynamicRoutes: Array<{\n page: string\n regex: string\n namedRegex?: string\n routeKeys?: { [key: string]: string }\n }>\n dataRoutes: Array<{\n page: string\n routeKeys?: { [key: string]: string }\n dataRouteRegex: string\n namedDataRouteRegex?: string\n }>\n i18n?: {\n domains?: Array<{\n http?: true\n domain: string\n locales?: string[]\n defaultLocale: string\n }>\n locales: string[]\n defaultLocale: string\n localeDetection?: false\n }\n } = nextBuildSpan.traceChild('generate-routes-manifest').traceFn(() => ({\n version: 3,\n pages404: true,\n basePath: config.basePath,\n redirects: redirects.map((r: any) => buildCustomRoute(r, 'redirect')),\n headers: headers.map((r: any) => buildCustomRoute(r, 'header')),\n dynamicRoutes: getSortedRoutes(pageKeys)\n .filter(isDynamicRoute)\n .map((page) => {\n const routeRegex = getRouteRegex(page)\n return {\n page,\n regex: normalizeRouteRegex(routeRegex.re.source),\n routeKeys: routeRegex.routeKeys,\n namedRegex: routeRegex.namedRegex,\n }\n }),\n dataRoutes: [],\n i18n: config.i18n || undefined,\n }))\n\n if (rewrites.beforeFiles.length === 0 && rewrites.fallback.length === 0) {\n routesManifest.rewrites = rewrites.afterFiles.map((r: any) =>\n buildCustomRoute(r, 'rewrite')\n )\n } else {\n routesManifest.rewrites = {\n beforeFiles: rewrites.beforeFiles.map((r: any) =>\n buildCustomRoute(r, 'rewrite')\n ),\n afterFiles: rewrites.afterFiles.map((r: any) =>\n buildCustomRoute(r, 'rewrite')\n ),\n fallback: rewrites.fallback.map((r: any) =>\n buildCustomRoute(r, 'rewrite')\n ),\n }\n }\n const combinedRewrites: Rewrite[] = [\n ...rewrites.beforeFiles,\n ...rewrites.afterFiles,\n ...rewrites.fallback,\n ]\n\n const distDirCreated = await nextBuildSpan\n .traceChild('create-dist-dir')\n .traceAsyncFn(async () => {\n try {\n await promises.mkdir(distDir, { recursive: true })\n return true\n } catch (err) {\n if (err.code === 'EPERM') {\n return false\n }\n throw err\n }\n })\n\n if (!distDirCreated || !(await isWriteable(distDir))) {\n throw new Error(\n '> Build directory is not writeable. https://nextjs.org/docs/messages/build-dir-not-writeable'\n )\n }\n\n if (config.cleanDistDir) {\n await recursiveDelete(distDir, /^cache/)\n }\n\n // We need to write the manifest with rewrites before build\n // so serverless can import the manifest\n await nextBuildSpan\n .traceChild('write-routes-manifest')\n .traceAsyncFn(() =>\n promises.writeFile(\n routesManifestPath,\n JSON.stringify(routesManifest),\n 'utf8'\n )\n )\n\n const manifestPath = path.join(\n distDir,\n isLikeServerless ? SERVERLESS_DIRECTORY : SERVER_DIRECTORY,\n PAGES_MANIFEST\n )\n\n const requiredServerFiles = nextBuildSpan\n .traceChild('generate-required-server-files')\n .traceFn(() => ({\n version: 1,\n config: {\n ...config,\n compress: false,\n configFile: undefined,\n },\n appDir: dir,\n files: [\n ROUTES_MANIFEST,\n path.relative(distDir, manifestPath),\n BUILD_MANIFEST,\n PRERENDER_MANIFEST,\n REACT_LOADABLE_MANIFEST,\n config.optimizeFonts\n ? path.join(\n isLikeServerless ? SERVERLESS_DIRECTORY : SERVER_DIRECTORY,\n FONT_MANIFEST\n )\n : null,\n BUILD_ID_FILE,\n ]\n .filter(nonNullable)\n .map((file) => path.join(config.distDir, file)),\n ignore: [] as string[],\n }))\n\n const configs = await nextBuildSpan\n .traceChild('generate-webpack-config')\n .traceAsyncFn(() =>\n Promise.all([\n getBaseWebpackConfig(dir, {\n buildId,\n reactProductionProfiling,\n isServer: false,\n config,\n target,\n pagesDirs,\n entrypoints: entrypoints.client,\n rewrites,\n }),\n getBaseWebpackConfig(dir, {\n buildId,\n reactProductionProfiling,\n isServer: true,\n config,\n target,\n pagesDirs,\n entrypoints: entrypoints.server,\n rewrites,\n }),\n ])\n )\n\n const clientConfig = configs[0]\n\n if (\n clientConfig.optimization &&\n (clientConfig.optimization.minimize !== true ||\n (clientConfig.optimization.minimizer &&\n clientConfig.optimization.minimizer.length === 0))\n ) {\n Log.warn(\n `Production code optimization has been disabled in your project. Read more: https://nextjs.org/docs/messages/minification-disabled`\n )\n }\n\n const webpackBuildStart = process.hrtime()\n\n let result: CompilerResult = { warnings: [], errors: [] }\n // We run client and server compilation separately to optimize for memory usage\n await nextBuildSpan\n .traceChild('run-webpack-compiler')\n .traceAsyncFn(async () => {\n const clientResult = await runCompiler(clientConfig)\n // Fail build if clientResult contains errors\n if (clientResult.errors.length > 0) {\n result = {\n warnings: [...clientResult.warnings],\n errors: [...clientResult.errors],\n }\n } else {\n const serverResult = await runCompiler(configs[1])\n result = {\n warnings: [...clientResult.warnings, ...serverResult.warnings],\n errors: [...clientResult.errors, ...serverResult.errors],\n }\n }\n })\n\n const webpackBuildEnd = process.hrtime(webpackBuildStart)\n if (buildSpinner) {\n buildSpinner.stopAndPersist()\n }\n\n result = nextBuildSpan\n .traceChild('format-webpack-messages')\n .traceFn(() => formatWebpackMessages(result))\n\n if (result.errors.length > 0) {\n // Only keep the first error. Others are often indicative\n // of the same problem, but confuse the reader with noise.\n if (result.errors.length > 1) {\n result.errors.length = 1\n }\n const error = result.errors.join('\\n\\n')\n\n console.error(chalk.red('Failed to compile.\\n'))\n\n if (\n error.indexOf('private-next-pages') > -1 &&\n error.indexOf('does not contain a default export') > -1\n ) {\n const page_name_regex = /'private-next-pages\\/(?<page_name>[^']*)'/\n const parsed = page_name_regex.exec(error)\n const page_name = parsed && parsed.groups && parsed.groups.page_name\n throw new Error(\n `webpack build failed: found page without a React Component as default export in pages/${page_name}\\n\\nSee https://nextjs.org/docs/messages/page-without-valid-component for more info.`\n )\n }\n\n console.error(error)\n console.error()\n\n if (\n error.indexOf('private-next-pages') > -1 ||\n error.indexOf('__next_polyfill__') > -1\n ) {\n throw new Error(\n '> webpack config.resolve.alias was incorrectly overridden. https://nextjs.org/docs/messages/invalid-resolve-alias'\n )\n }\n throw new Error('> Build failed because of webpack errors')\n } else {\n telemetry.record(\n eventBuildCompleted(pagePaths, {\n durationInSeconds: webpackBuildEnd[0],\n })\n )\n\n if (result.warnings.length > 0) {\n Log.warn('Compiled with warnings\\n')\n console.warn(result.warnings.join('\\n\\n'))\n console.warn()\n } else {\n Log.info('Compiled successfully')\n }\n }\n\n const postCompileSpinner = createSpinner({\n prefixText: `${Log.prefixes.info} Collecting page data`,\n })\n\n const buildManifestPath = path.join(distDir, BUILD_MANIFEST)\n\n const ssgPages = new Set<string>()\n const ssgStaticFallbackPages = new Set<string>()\n const ssgBlockingFallbackPages = new Set<string>()\n const staticPages = new Set<string>()\n const invalidPages = new Set<string>()\n const hybridAmpPages = new Set<string>()\n const serverPropsPages = new Set<string>()\n const additionalSsgPaths = new Map<string, Array<string>>()\n const additionalSsgPathsEncoded = new Map<string, Array<string>>()\n const pageInfos = new Map<string, PageInfo>()\n const pagesManifest = JSON.parse(\n await promises.readFile(manifestPath, 'utf8')\n ) as PagesManifest\n const buildManifest = JSON.parse(\n await promises.readFile(buildManifestPath, 'utf8')\n ) as BuildManifest\n\n const analysisBegin = process.hrtime()\n\n const staticCheckSpan = nextBuildSpan.traceChild('static-check')\n const {\n customAppGetInitialProps,\n namedExports,\n isNextImageImported,\n hasSsrAmpPages,\n hasNonStaticErrorPage,\n } = await staticCheckSpan.traceAsyncFn(async () => {\n process.env.NEXT_PHASE = PHASE_PRODUCTION_BUILD\n\n const staticCheckWorkers = new Worker(staticCheckWorker, {\n numWorkers: config.experimental.cpus,\n enableWorkerThreads: config.experimental.workerThreads,\n }) as Worker & typeof import('./utils')\n\n staticCheckWorkers.getStdout().pipe(process.stdout)\n staticCheckWorkers.getStderr().pipe(process.stderr)\n\n const runtimeEnvConfig = {\n publicRuntimeConfig: config.publicRuntimeConfig,\n serverRuntimeConfig: config.serverRuntimeConfig,\n }\n\n const nonStaticErrorPageSpan = staticCheckSpan.traceChild(\n 'check-static-error-page'\n )\n const errorPageHasCustomGetInitialProps = nonStaticErrorPageSpan.traceAsyncFn(\n async () =>\n hasCustomErrorPage &&\n (await staticCheckWorkers.hasCustomGetInitialProps(\n '/_error',\n distDir,\n isLikeServerless,\n runtimeEnvConfig,\n false\n ))\n )\n\n const errorPageStaticResult = nonStaticErrorPageSpan.traceAsyncFn(\n async () =>\n hasCustomErrorPage &&\n staticCheckWorkers.isPageStatic(\n '/_error',\n distDir,\n isLikeServerless,\n runtimeEnvConfig,\n config.i18n?.locales,\n config.i18n?.defaultLocale\n )\n )\n\n // we don't output _app in serverless mode so use _app export\n // from _error instead\n const appPageToCheck = isLikeServerless ? '/_error' : '/_app'\n\n const customAppGetInitialPropsPromise = staticCheckWorkers.hasCustomGetInitialProps(\n appPageToCheck,\n distDir,\n isLikeServerless,\n runtimeEnvConfig,\n true\n )\n\n const namedExportsPromise = staticCheckWorkers.getNamedExports(\n appPageToCheck,\n distDir,\n isLikeServerless,\n runtimeEnvConfig\n )\n\n // eslint-disable-next-line no-shadow\n let isNextImageImported: boolean | undefined\n // eslint-disable-next-line no-shadow\n let hasSsrAmpPages = false\n\n const computedManifestData = await computeFromManifest(\n buildManifest,\n distDir,\n config.experimental.gzipSize\n )\n await Promise.all(\n pageKeys.map(async (page) => {\n const checkPageSpan = staticCheckSpan.traceChild('check-page', {\n page,\n })\n return checkPageSpan.traceAsyncFn(async () => {\n const actualPage = normalizePagePath(page)\n const [selfSize, allSize] = await getJsPageSizeInKb(\n actualPage,\n distDir,\n buildManifest,\n config.experimental.gzipSize,\n computedManifestData\n )\n\n let isSsg = false\n let isStatic = false\n let isHybridAmp = false\n let ssgPageRoutes: string[] | null = null\n\n const nonReservedPage = !page.match(\n /^\\/(_app|_error|_document|api(\\/|$))/\n )\n\n if (nonReservedPage) {\n try {\n let isPageStaticSpan = checkPageSpan.traceChild(\n 'is-page-static'\n )\n let workerResult = await isPageStaticSpan.traceAsyncFn(() => {\n return staticCheckWorkers.isPageStatic(\n page,\n distDir,\n isLikeServerless,\n runtimeEnvConfig,\n config.i18n?.locales,\n config.i18n?.defaultLocale,\n isPageStaticSpan.id\n )\n })\n\n if (\n workerResult.isStatic === false &&\n (workerResult.isHybridAmp || workerResult.isAmpOnly)\n ) {\n hasSsrAmpPages = true\n }\n\n if (workerResult.isHybridAmp) {\n isHybridAmp = true\n hybridAmpPages.add(page)\n }\n\n if (workerResult.isNextImageImported) {\n isNextImageImported = true\n }\n\n if (workerResult.hasStaticProps) {\n ssgPages.add(page)\n isSsg = true\n\n if (\n workerResult.prerenderRoutes &&\n workerResult.encodedPrerenderRoutes\n ) {\n additionalSsgPaths.set(page, workerResult.prerenderRoutes)\n additionalSsgPathsEncoded.set(\n page,\n workerResult.encodedPrerenderRoutes\n )\n ssgPageRoutes = workerResult.prerenderRoutes\n }\n\n if (workerResult.prerenderFallback === 'blocking') {\n ssgBlockingFallbackPages.add(page)\n } else if (workerResult.prerenderFallback === true) {\n ssgStaticFallbackPages.add(page)\n }\n } else if (workerResult.hasServerProps) {\n serverPropsPages.add(page)\n } else if (\n workerResult.isStatic &&\n (await customAppGetInitialPropsPromise) === false\n ) {\n staticPages.add(page)\n isStatic = true\n }\n\n if (hasPages404 && page === '/404') {\n if (!workerResult.isStatic && !workerResult.hasStaticProps) {\n throw new Error(\n `\\`pages/404\\` ${STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR}`\n )\n }\n // we need to ensure the 404 lambda is present since we use\n // it when _app has getInitialProps\n if (\n (await customAppGetInitialPropsPromise) &&\n !workerResult.hasStaticProps\n ) {\n staticPages.delete(page)\n }\n }\n\n if (\n STATIC_STATUS_PAGES.includes(page) &&\n !workerResult.isStatic &&\n !workerResult.hasStaticProps\n ) {\n throw new Error(\n `\\`pages${page}\\` ${STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR}`\n )\n }\n } catch (err) {\n if (err.message !== 'INVALID_DEFAULT_EXPORT') throw err\n invalidPages.add(page)\n }\n }\n\n pageInfos.set(page, {\n size: selfSize,\n totalSize: allSize,\n static: isStatic,\n isSsg,\n isHybridAmp,\n ssgPageRoutes,\n initialRevalidateSeconds: false,\n })\n })\n })\n )\n\n const errorPageResult = await errorPageStaticResult\n const nonStaticErrorPage =\n (await errorPageHasCustomGetInitialProps) ||\n (errorPageResult && errorPageResult.hasServerProps)\n\n const returnValue = {\n customAppGetInitialProps: await customAppGetInitialPropsPromise,\n namedExports: await namedExportsPromise,\n isNextImageImported,\n hasSsrAmpPages,\n hasNonStaticErrorPage: nonStaticErrorPage,\n }\n\n staticCheckWorkers.end()\n return returnValue\n })\n\n if (customAppGetInitialProps) {\n console.warn(\n chalk.bold.yellow(`Warning: `) +\n chalk.yellow(\n `You have opted-out of Automatic Static Optimization due to \\`getInitialProps\\` in \\`pages/_app\\`. This does not opt-out pages with \\`getStaticProps\\``\n )\n )\n console.warn(\n 'Read more: https://nextjs.org/docs/messages/opt-out-auto-static-optimization\\n'\n )\n }\n\n if (!hasSsrAmpPages) {\n requiredServerFiles.ignore.push(\n path.relative(\n dir,\n path.join(\n path.dirname(\n require.resolve(\n 'next/dist/compiled/@ampproject/toolbox-optimizer'\n )\n ),\n '**/*'\n )\n )\n )\n }\n\n if (serverPropsPages.size > 0 || ssgPages.size > 0) {\n // We update the routes manifest after the build with the\n // data routes since we can't determine these until after build\n routesManifest.dataRoutes = getSortedRoutes([\n ...serverPropsPages,\n ...ssgPages,\n ]).map((page) => {\n const pagePath = normalizePagePath(page)\n const dataRoute = path.posix.join(\n '/_next/data',\n buildId,\n `${pagePath}.json`\n )\n\n let dataRouteRegex: string\n let namedDataRouteRegex: string | undefined\n let routeKeys: { [named: string]: string } | undefined\n\n if (isDynamicRoute(page)) {\n const routeRegex = getRouteRegex(dataRoute.replace(/\\.json$/, ''))\n\n dataRouteRegex = normalizeRouteRegex(\n routeRegex.re.source.replace(/\\(\\?:\\\\\\/\\)\\?\\$$/, '\\\\.json$')\n )\n namedDataRouteRegex = routeRegex.namedRegex!.replace(\n /\\(\\?:\\/\\)\\?\\$$/,\n '\\\\.json$'\n )\n routeKeys = routeRegex.routeKeys\n } else {\n dataRouteRegex = normalizeRouteRegex(\n new RegExp(\n `^${path.posix.join(\n '/_next/data',\n escapeStringRegexp(buildId),\n `${pagePath}.json`\n )}$`\n ).source\n )\n }\n\n return {\n page,\n routeKeys,\n dataRouteRegex,\n namedDataRouteRegex,\n }\n })\n\n await promises.writeFile(\n routesManifestPath,\n JSON.stringify(routesManifest),\n 'utf8'\n )\n }\n\n // Since custom _app.js can wrap the 404 page we have to opt-out of static optimization if it has getInitialProps\n // Only export the static 404 when there is no /_error present\n const useStatic404 =\n !customAppGetInitialProps && (!hasNonStaticErrorPage || hasPages404)\n\n if (invalidPages.size > 0) {\n throw new Error(\n `Build optimization failed: found page${\n invalidPages.size === 1 ? '' : 's'\n } without a React Component as default export in \\n${[...invalidPages]\n .map((pg) => `pages${pg}`)\n .join(\n '\\n'\n )}\\n\\nSee https://nextjs.org/docs/messages/page-without-valid-component for more info.\\n`\n )\n }\n\n await writeBuildId(distDir, buildId)\n\n if (config.experimental.optimizeCss) {\n const cssFilePaths = getCssFilePaths(buildManifest)\n\n requiredServerFiles.files.push(\n ...cssFilePaths.map((filePath) => path.join(config.distDir, filePath))\n )\n }\n\n await promises.writeFile(\n path.join(distDir, SERVER_FILES_MANIFEST),\n JSON.stringify(requiredServerFiles),\n 'utf8'\n )\n\n const finalPrerenderRoutes: { [route: string]: SsgRoute } = {}\n const tbdPrerenderRoutes: string[] = []\n let ssgNotFoundPaths: string[] = []\n\n if (postCompileSpinner) postCompileSpinner.stopAndPersist()\n\n const { i18n } = config\n\n const usedStaticStatusPages = STATIC_STATUS_PAGES.filter(\n (page) =>\n mappedPages[page] && mappedPages[page].startsWith('private-next-pages')\n )\n usedStaticStatusPages.forEach((page) => {\n if (!ssgPages.has(page) && !customAppGetInitialProps) {\n staticPages.add(page)\n }\n })\n\n const hasPages500 = usedStaticStatusPages.includes('/500')\n const useDefaultStatic500 =\n !hasPages500 && !hasNonStaticErrorPage && !customAppGetInitialProps\n\n const combinedPages = [...staticPages, ...ssgPages]\n\n if (combinedPages.length > 0 || useStatic404 || useDefaultStatic500) {\n const staticGenerationSpan = nextBuildSpan.traceChild('static-generation')\n await staticGenerationSpan.traceAsyncFn(async () => {\n detectConflictingPaths(\n [\n ...combinedPages,\n ...pageKeys.filter((page) => !combinedPages.includes(page)),\n ],\n ssgPages,\n additionalSsgPaths\n )\n const exportApp = require('../export').default\n const exportOptions = {\n silent: false,\n buildExport: true,\n threads: config.experimental.cpus,\n pages: combinedPages,\n outdir: path.join(distDir, 'export'),\n statusMessage: 'Generating static pages',\n }\n const exportConfig: any = {\n ...config,\n initialPageRevalidationMap: {},\n ssgNotFoundPaths: [] as string[],\n // Default map will be the collection of automatic statically exported\n // pages and incremental pages.\n // n.b. we cannot handle this above in combinedPages because the dynamic\n // page must be in the `pages` array, but not in the mapping.\n exportPathMap: (defaultMap: any) => {\n // Dynamically routed pages should be prerendered to be used as\n // a client-side skeleton (fallback) while data is being fetched.\n // This ensures the end-user never sees a 500 or slow response from the\n // server.\n //\n // Note: prerendering disables automatic static optimization.\n ssgPages.forEach((page) => {\n if (isDynamicRoute(page)) {\n tbdPrerenderRoutes.push(page)\n\n if (ssgStaticFallbackPages.has(page)) {\n // Override the rendering for the dynamic page to be treated as a\n // fallback render.\n if (i18n) {\n defaultMap[`/${i18n.defaultLocale}${page}`] = {\n page,\n query: { __nextFallback: true },\n }\n } else {\n defaultMap[page] = { page, query: { __nextFallback: true } }\n }\n } else {\n // Remove dynamically routed pages from the default path map when\n // fallback behavior is disabled.\n delete defaultMap[page]\n }\n }\n })\n // Append the \"well-known\" routes we should prerender for, e.g. blog\n // post slugs.\n additionalSsgPaths.forEach((routes, page) => {\n const encodedRoutes = additionalSsgPathsEncoded.get(page)\n\n routes.forEach((route, routeIdx) => {\n defaultMap[route] = {\n page,\n query: { __nextSsgPath: encodedRoutes?.[routeIdx] },\n }\n })\n })\n\n if (useStatic404) {\n defaultMap['/404'] = {\n page: hasPages404 ? '/404' : '/_error',\n }\n }\n\n if (useDefaultStatic500) {\n defaultMap['/500'] = {\n page: '/_error',\n }\n }\n\n if (i18n) {\n for (const page of [\n ...staticPages,\n ...ssgPages,\n ...(useStatic404 ? ['/404'] : []),\n ...(useDefaultStatic500 ? ['/500'] : []),\n ]) {\n const isSsg = ssgPages.has(page)\n const isDynamic = isDynamicRoute(page)\n const isFallback = isSsg && ssgStaticFallbackPages.has(page)\n\n for (const locale of i18n.locales) {\n // skip fallback generation for SSG pages without fallback mode\n if (isSsg && isDynamic && !isFallback) continue\n const outputPath = `/${locale}${page === '/' ? '' : page}`\n\n defaultMap[outputPath] = {\n page: defaultMap[page]?.page || page,\n query: { __nextLocale: locale },\n }\n\n if (isFallback) {\n defaultMap[outputPath].query.__nextFallback = true\n }\n }\n\n if (isSsg) {\n // remove non-locale prefixed variant from defaultMap\n delete defaultMap[page]\n }\n }\n }\n return defaultMap\n },\n }\n\n await exportApp(dir, exportOptions, exportConfig)\n\n const postBuildSpinner = createSpinner({\n prefixText: `${Log.prefixes.info} Finalizing page optimization`,\n })\n ssgNotFoundPaths = exportConfig.ssgNotFoundPaths\n\n // remove server bundles that were exported\n for (const page of staticPages) {\n const serverBundle = getPagePath(page, distDir, isLikeServerless)\n await promises.unlink(serverBundle)\n }\n const serverOutputDir = path.join(\n distDir,\n isLikeServerless ? SERVERLESS_DIRECTORY : SERVER_DIRECTORY\n )\n\n const moveExportedPage = async (\n originPage: string,\n page: string,\n file: string,\n isSsg: boolean,\n ext: 'html' | 'json',\n additionalSsgFile = false\n ) => {\n return staticGenerationSpan\n .traceChild('move-exported-page')\n .traceAsyncFn(async () => {\n file = `${file}.${ext}`\n const orig = path.join(exportOptions.outdir, file)\n const pagePath = getPagePath(\n originPage,\n distDir,\n isLikeServerless\n )\n\n const relativeDest = path\n .relative(\n serverOutputDir,\n path.join(\n path.join(\n pagePath,\n // strip leading / and then recurse number of nested dirs\n // to place from base folder\n originPage\n .substr(1)\n .split('/')\n .map(() => '..')\n .join('/')\n ),\n file\n )\n )\n .replace(/\\\\/g, '/')\n\n const dest = path.join(\n distDir,\n isLikeServerless ? SERVERLESS_DIRECTORY : SERVER_DIRECTORY,\n relativeDest\n )\n\n if (\n !isSsg &&\n !(\n // don't add static status page to manifest if it's\n // the default generated version e.g. no pages/500\n (\n STATIC_STATUS_PAGES.includes(page) &&\n !usedStaticStatusPages.includes(page)\n )\n )\n ) {\n pagesManifest[page] = relativeDest\n }\n\n const isNotFound = ssgNotFoundPaths.includes(page)\n\n // for SSG files with i18n the non-prerendered variants are\n // output with the locale prefixed so don't attempt moving\n // without the prefix\n if ((!i18n || additionalSsgFile) && !isNotFound) {\n await promises.mkdir(path.dirname(dest), { recursive: true })\n await promises.rename(orig, dest)\n } else if (i18n && !isSsg) {\n // this will be updated with the locale prefixed variant\n // since all files are output with the locale prefix\n delete pagesManifest[page]\n }\n\n if (i18n) {\n if (additionalSsgFile) return\n\n for (const locale of i18n.locales) {\n const curPath = `/${locale}${page === '/' ? '' : page}`\n const localeExt = page === '/' ? path.extname(file) : ''\n const relativeDestNoPages = relativeDest.substr(\n 'pages/'.length\n )\n\n if (isSsg && ssgNotFoundPaths.includes(curPath)) {\n continue\n }\n\n const updatedRelativeDest = path\n .join(\n 'pages',\n locale + localeExt,\n // if it's the top-most index page we want it to be locale.EXT\n // instead of locale/index.html\n page === '/' ? '' : relativeDestNoPages\n )\n .replace(/\\\\/g, '/')\n\n const updatedOrig = path.join(\n exportOptions.outdir,\n locale + localeExt,\n page === '/' ? '' : file\n )\n const updatedDest = path.join(\n distDir,\n isLikeServerless ? SERVERLESS_DIRECTORY : SERVER_DIRECTORY,\n updatedRelativeDest\n )\n\n if (!isSsg) {\n pagesManifest[curPath] = updatedRelativeDest\n }\n await promises.mkdir(path.dirname(updatedDest), {\n recursive: true,\n })\n await promises.rename(updatedOrig, updatedDest)\n }\n }\n })\n }\n\n // Only move /404 to /404 when there is no custom 404 as in that case we don't know about the 404 page\n if (!hasPages404 && useStatic404) {\n await moveExportedPage('/_error', '/404', '/404', false, 'html')\n }\n\n if (useDefaultStatic500) {\n await moveExportedPage('/_error', '/500', '/500', false, 'html')\n }\n\n for (const page of combinedPages) {\n const isSsg = ssgPages.has(page)\n const isStaticSsgFallback = ssgStaticFallbackPages.has(page)\n const isDynamic = isDynamicRoute(page)\n const hasAmp = hybridAmpPages.has(page)\n const file = normalizePagePath(page)\n\n // The dynamic version of SSG pages are only prerendered if the\n // fallback is enabled. Below, we handle the specific prerenders\n // of these.\n const hasHtmlOutput = !(isSsg && isDynamic && !isStaticSsgFallback)\n\n if (hasHtmlOutput) {\n await moveExportedPage(page, page, file, isSsg, 'html')\n }\n\n if (hasAmp && (!isSsg || (isSsg && !isDynamic))) {\n const ampPage = `${file}.amp`\n await moveExportedPage(page, ampPage, ampPage, isSsg, 'html')\n\n if (isSsg) {\n await moveExportedPage(page, ampPage, ampPage, isSsg, 'json')\n }\n }\n\n if (isSsg) {\n // For a non-dynamic SSG page, we must copy its data file\n // from export, we already moved the HTML file above\n if (!isDynamic) {\n await moveExportedPage(page, page, file, isSsg, 'json')\n\n if (i18n) {\n // TODO: do we want to show all locale variants in build output\n for (const locale of i18n.locales) {\n const localePage = `/${locale}${page === '/' ? '' : page}`\n\n if (!ssgNotFoundPaths.includes(localePage)) {\n finalPrerenderRoutes[localePage] = {\n initialRevalidateSeconds:\n exportConfig.initialPageRevalidationMap[localePage],\n srcRoute: null,\n dataRoute: path.posix.join(\n '/_next/data',\n buildId,\n `${file}.json`\n ),\n }\n }\n }\n } else {\n finalPrerenderRoutes[page] = {\n initialRevalidateSeconds:\n exportConfig.initialPageRevalidationMap[page],\n srcRoute: null,\n dataRoute: path.posix.join(\n '/_next/data',\n buildId,\n `${file}.json`\n ),\n }\n }\n // Set Page Revalidation Interval\n const pageInfo = pageInfos.get(page)\n if (pageInfo) {\n pageInfo.initialRevalidateSeconds =\n exportConfig.initialPageRevalidationMap[page]\n pageInfos.set(page, pageInfo)\n }\n } else {\n // For a dynamic SSG page, we did not copy its data exports and only\n // copy the fallback HTML file (if present).\n // We must also copy specific versions of this page as defined by\n // `getStaticPaths` (additionalSsgPaths).\n const extraRoutes = additionalSsgPaths.get(page) || []\n for (const route of extraRoutes) {\n const pageFile = normalizePagePath(route)\n await moveExportedPage(\n page,\n route,\n pageFile,\n isSsg,\n 'html',\n true\n )\n await moveExportedPage(\n page,\n route,\n pageFile,\n isSsg,\n 'json',\n true\n )\n\n if (hasAmp) {\n const ampPage = `${pageFile}.amp`\n await moveExportedPage(\n page,\n ampPage,\n ampPage,\n isSsg,\n 'html',\n true\n )\n await moveExportedPage(\n page,\n ampPage,\n ampPage,\n isSsg,\n 'json',\n true\n )\n }\n\n finalPrerenderRoutes[route] = {\n initialRevalidateSeconds:\n exportConfig.initialPageRevalidationMap[route],\n srcRoute: page,\n dataRoute: path.posix.join(\n '/_next/data',\n buildId,\n `${normalizePagePath(route)}.json`\n ),\n }\n\n // Set route Revalidation Interval\n const pageInfo = pageInfos.get(route)\n if (pageInfo) {\n pageInfo.initialRevalidateSeconds =\n exportConfig.initialPageRevalidationMap[route]\n pageInfos.set(route, pageInfo)\n }\n }\n }\n }\n }\n\n // remove temporary export folder\n await recursiveDelete(exportOptions.outdir)\n await promises.rmdir(exportOptions.outdir)\n await promises.writeFile(\n manifestPath,\n JSON.stringify(pagesManifest, null, 2),\n 'utf8'\n )\n\n if (postBuildSpinner) postBuildSpinner.stopAndPersist()\n console.log()\n })\n }\n\n const analysisEnd = process.hrtime(analysisBegin)\n telemetry.record(\n eventBuildOptimize(pagePaths, {\n durationInSeconds: analysisEnd[0],\n staticPageCount: staticPages.size,\n staticPropsPageCount: ssgPages.size,\n serverPropsPageCount: serverPropsPages.size,\n ssrPageCount:\n pagePaths.length -\n (staticPages.size + ssgPages.size + serverPropsPages.size),\n hasStatic404: useStatic404,\n hasReportWebVitals: namedExports?.includes('reportWebVitals') ?? false,\n rewritesCount: combinedRewrites.length,\n headersCount: headers.length,\n redirectsCount: redirects.length - 1, // reduce one for trailing slash\n headersWithHasCount: headers.filter((r: any) => !!r.has).length,\n rewritesWithHasCount: combinedRewrites.filter((r: any) => !!r.has)\n .length,\n redirectsWithHasCount: redirects.filter((r: any) => !!r.has).length,\n })\n )\n\n if (ssgPages.size > 0) {\n const finalDynamicRoutes: PrerenderManifest['dynamicRoutes'] = {}\n tbdPrerenderRoutes.forEach((tbdRoute) => {\n const normalizedRoute = normalizePagePath(tbdRoute)\n const dataRoute = path.posix.join(\n '/_next/data',\n buildId,\n `${normalizedRoute}.json`\n )\n\n finalDynamicRoutes[tbdRoute] = {\n routeRegex: normalizeRouteRegex(getRouteRegex(tbdRoute).re.source),\n dataRoute,\n fallback: ssgBlockingFallbackPages.has(tbdRoute)\n ? null\n : ssgStaticFallbackPages.has(tbdRoute)\n ? `${normalizedRoute}.html`\n : false,\n dataRouteRegex: normalizeRouteRegex(\n getRouteRegex(dataRoute.replace(/\\.json$/, '')).re.source.replace(\n /\\(\\?:\\\\\\/\\)\\?\\$$/,\n '\\\\.json$'\n )\n ),\n }\n })\n const prerenderManifest: PrerenderManifest = {\n version: 3,\n routes: finalPrerenderRoutes,\n dynamicRoutes: finalDynamicRoutes,\n notFoundRoutes: ssgNotFoundPaths,\n preview: previewProps,\n }\n\n await promises.writeFile(\n path.join(distDir, PRERENDER_MANIFEST),\n JSON.stringify(prerenderManifest),\n 'utf8'\n )\n await generateClientSsgManifest(prerenderManifest, {\n distDir,\n buildId,\n locales: config.i18n?.locales || [],\n })\n } else {\n const prerenderManifest: PrerenderManifest = {\n version: 3,\n routes: {},\n dynamicRoutes: {},\n preview: previewProps,\n notFoundRoutes: [],\n }\n await promises.writeFile(\n path.join(distDir, PRERENDER_MANIFEST),\n JSON.stringify(prerenderManifest),\n 'utf8'\n )\n }\n\n const images = { ...config.images }\n const { deviceSizes, imageSizes } = images\n images.sizes = [...deviceSizes, ...imageSizes]\n\n await promises.writeFile(\n path.join(distDir, IMAGES_MANIFEST),\n JSON.stringify({\n version: 1,\n images,\n }),\n 'utf8'\n )\n await promises.writeFile(\n path.join(distDir, EXPORT_MARKER),\n JSON.stringify({\n version: 1,\n hasExportPathMap: typeof config.exportPathMap === 'function',\n exportTrailingSlash: config.trailingSlash === true,\n isNextImageImported: isNextImageImported === true,\n }),\n 'utf8'\n )\n await promises.unlink(path.join(distDir, EXPORT_DETAIL)).catch((err) => {\n if (err.code === 'ENOENT') {\n return Promise.resolve()\n }\n return Promise.reject(err)\n })\n\n staticPages.forEach((pg) => allStaticPages.add(pg))\n pageInfos.forEach((info: PageInfo, key: string) => {\n allPageInfos.set(key, info)\n })\n\n await nextBuildSpan.traceChild('print-tree-view').traceAsyncFn(() =>\n printTreeView(Object.keys(mappedPages), allPageInfos, isLikeServerless, {\n distPath: distDir,\n buildId: buildId,\n pagesDirs,\n useStatic404,\n pageExtensions: config.pageExtensions,\n buildManifest,\n gzipSize: config.experimental.gzipSize,\n })\n )\n\n if (debugOutput) {\n nextBuildSpan\n .traceChild('print-custom-routes')\n .traceFn(() => printCustomRoutes({ redirects, rewrites, headers }))\n }\n\n if (config.analyticsId) {\n console.log(\n chalk.bold.green('Next.js Analytics') +\n ' is enabled for this production build. ' +\n \"You'll receive a Real Experience Score computed by all of your visitors.\"\n )\n console.log('')\n }\n\n await nextBuildSpan\n .traceChild('telemetry-flush')\n .traceAsyncFn(() => telemetry.flush())\n })\n}\n\nexport type ClientSsgManifest = Set<string>\n\nfunction generateClientSsgManifest(\n prerenderManifest: PrerenderManifest,\n {\n buildId,\n distDir,\n locales,\n }: { buildId: string; distDir: string; locales: string[] }\n) {\n const ssgPages: ClientSsgManifest = new Set<string>([\n ...Object.entries(prerenderManifest.routes)\n // Filter out dynamic routes\n .filter(([, { srcRoute }]) => srcRoute == null)\n .map(([route]) => normalizeLocalePath(route, locales).pathname),\n ...Object.keys(prerenderManifest.dynamicRoutes),\n ])\n\n const clientSsgManifestContent = `self.__SSG_MANIFEST=${devalue(\n ssgPages\n )};self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB()`\n\n writeFileSync(\n path.join(distDir, CLIENT_STATIC_FILES_PATH, buildId, '_ssgManifest.js'),\n clientSsgManifestContent\n )\n}\n"]}
\ No newline at end of file
diff --git a/node_modules/next/dist/build/utils.d.ts b/node_modules/next/dist/build/utils.d.ts
index 49ce653..9cc7855 100644
--- a/node_modules/next/dist/build/utils.d.ts
+++ b/node_modules/next/dist/build/utils.d.ts
@@ -3,7 +3,7 @@ import { CustomRoutes } from '../lib/load-custom-routes';
import { GetStaticPaths } from 'next/types';
import { BuildManifest } from '../next-server/server/get-page-files';
import { UnwrapPromise } from '../lib/coalesced-function';
-export declare function collectPages(directory: string, pageExtensions: string[]): Promise<string[]>;
+export declare function collectPages(directories: string[], pageExtensions: string[]): Promise<string[]>;
export interface PageInfo {
isHybridAmp?: boolean;
size: number;
@@ -13,10 +13,10 @@ export interface PageInfo {
ssgPageRoutes: string[] | null;
initialRevalidateSeconds: number | false;
}
-export declare function printTreeView(list: readonly string[], pageInfos: Map<string, PageInfo>, serverless: boolean, { distPath, buildId, pagesDir, pageExtensions, buildManifest, useStatic404, gzipSize, }: {
+export declare function printTreeView(list: readonly string[], pageInfos: Map<string, PageInfo>, serverless: boolean, { distPath, buildId, pagesDirs, pageExtensions, buildManifest, useStatic404, gzipSize, }: {
distPath: string;
buildId: string;
- pagesDir: string;
+ pagesDirs: string[];
pageExtensions: string[];
buildManifest: BuildManifest;
useStatic404: boolean;
diff --git a/node_modules/next/dist/build/utils.js b/node_modules/next/dist/build/utils.js
index 144bf06..0c31da2 100644
--- a/node_modules/next/dist/build/utils.js
+++ b/node_modules/next/dist/build/utils.js
@@ -1,10 +1,10 @@
-"use strict";exports.__esModule=true;exports.collectPages=collectPages;exports.printTreeView=printTreeView;exports.printCustomRoutes=printCustomRoutes;exports.computeFromManifest=computeFromManifest;exports.difference=difference;exports.getJsPageSizeInKb=getJsPageSizeInKb;exports.buildStaticPaths=buildStaticPaths;exports.isPageStatic=isPageStatic;exports.hasCustomGetInitialProps=hasCustomGetInitialProps;exports.getNamedExports=getNamedExports;exports.detectConflictingPaths=detectConflictingPaths;exports.getCssFilePaths=getCssFilePaths;require("../next-server/server/node-polyfill-fetch");var _chalk=_interopRequireDefault(require("chalk"));var _gzipSize=_interopRequireDefault(require("next/dist/compiled/gzip-size"));var _textTable=_interopRequireDefault(require("next/dist/compiled/text-table"));var _path=_interopRequireDefault(require("path"));var _fs=require("fs");var _reactIs=require("react-is");var _stripAnsi=_interopRequireDefault(require("next/dist/compiled/strip-ansi"));var _constants=require("../lib/constants");var _prettyBytes=_interopRequireDefault(require("../lib/pretty-bytes"));var _recursiveReaddir=require("../lib/recursive-readdir");var _utils=require("../next-server/lib/router/utils");var _isDynamic=require("../next-server/lib/router/utils/is-dynamic");var _escapePathDelimiters=_interopRequireDefault(require("../next-server/lib/router/utils/escape-path-delimiters"));var _findPageFile=require("../server/lib/find-page-file");var _normalizePagePath=require("../next-server/server/normalize-page-path");var _normalizeTrailingSlash=require("../client/normalize-trailing-slash");var _normalizeLocalePath=require("../next-server/lib/i18n/normalize-locale-path");var Log=_interopRequireWildcard(require("./output/log"));var _loadComponents=require("../next-server/server/load-components");var _trace=require("../telemetry/trace");function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var cache=new WeakMap();_getRequireWildcardCache=function(){return cache;};return cache;}function _interopRequireWildcard(obj){if(obj&&obj.__esModule){return obj;}if(obj===null||typeof obj!=="object"&&typeof obj!=="function"){return{default:obj};}var cache=_getRequireWildcardCache();if(cache&&cache.has(obj)){return cache.get(obj);}var newObj={};var hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj){if(Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;if(desc&&(desc.get||desc.set)){Object.defineProperty(newObj,key,desc);}else{newObj[key]=obj[key];}}}newObj.default=obj;if(cache){cache.set(obj,newObj);}return newObj;}function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}const fileGzipStats={};const fsStatGzip=file=>{const cached=fileGzipStats[file];if(cached)return cached;return fileGzipStats[file]=_gzipSize.default.file(file);};const fileSize=async file=>(await _fs.promises.stat(file)).size;const fileStats={};const fsStat=file=>{const cached=fileStats[file];if(cached)return cached;return fileStats[file]=fileSize(file);};function collectPages(directory,pageExtensions){return(0,_recursiveReaddir.recursiveReadDir)(directory,new RegExp(`\\.(?:${pageExtensions.join('|')})$`));}async function printTreeView(list,pageInfos,serverless,{distPath,buildId,pagesDir,pageExtensions,buildManifest,useStatic404,gzipSize=true}){const getPrettySize=_size=>{const size=(0,_prettyBytes.default)(_size);// green for 0-130kb
+"use strict";exports.__esModule=true;exports.collectPages=collectPages;exports.printTreeView=printTreeView;exports.printCustomRoutes=printCustomRoutes;exports.computeFromManifest=computeFromManifest;exports.difference=difference;exports.getJsPageSizeInKb=getJsPageSizeInKb;exports.buildStaticPaths=buildStaticPaths;exports.isPageStatic=isPageStatic;exports.hasCustomGetInitialProps=hasCustomGetInitialProps;exports.getNamedExports=getNamedExports;exports.detectConflictingPaths=detectConflictingPaths;exports.getCssFilePaths=getCssFilePaths;require("../next-server/server/node-polyfill-fetch");var _chalk=_interopRequireDefault(require("chalk"));var _gzipSize=_interopRequireDefault(require("next/dist/compiled/gzip-size"));var _textTable=_interopRequireDefault(require("next/dist/compiled/text-table"));var _path=_interopRequireDefault(require("path"));var _fs=require("fs");var _reactIs=require("react-is");var _stripAnsi=_interopRequireDefault(require("next/dist/compiled/strip-ansi"));var _constants=require("../lib/constants");var _prettyBytes=_interopRequireDefault(require("../lib/pretty-bytes"));var _recursiveReaddir=require("../lib/recursive-readdir");var _utils=require("../next-server/lib/router/utils");var _isDynamic=require("../next-server/lib/router/utils/is-dynamic");var _escapePathDelimiters=_interopRequireDefault(require("../next-server/lib/router/utils/escape-path-delimiters"));var _findPageFile=require("../server/lib/find-page-file");var _normalizePagePath=require("../next-server/server/normalize-page-path");var _normalizeTrailingSlash=require("../client/normalize-trailing-slash");var _normalizeLocalePath=require("../next-server/lib/i18n/normalize-locale-path");var Log=_interopRequireWildcard(require("./output/log"));var _loadComponents=require("../next-server/server/load-components");var _trace=require("../telemetry/trace");function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var cache=new WeakMap();_getRequireWildcardCache=function(){return cache;};return cache;}function _interopRequireWildcard(obj){if(obj&&obj.__esModule){return obj;}if(obj===null||typeof obj!=="object"&&typeof obj!=="function"){return{default:obj};}var cache=_getRequireWildcardCache();if(cache&&cache.has(obj)){return cache.get(obj);}var newObj={};var hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj){if(Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;if(desc&&(desc.get||desc.set)){Object.defineProperty(newObj,key,desc);}else{newObj[key]=obj[key];}}}newObj.default=obj;if(cache){cache.set(obj,newObj);}return newObj;}function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}const fileGzipStats={};const fsStatGzip=file=>{const cached=fileGzipStats[file];if(cached)return cached;return fileGzipStats[file]=_gzipSize.default.file(file);};const fileSize=async file=>(await _fs.promises.stat(file)).size;const fileStats={};const fsStat=file=>{const cached=fileStats[file];if(cached)return cached;return fileStats[file]=fileSize(file);};function collectPages(directories,pageExtensions){return(0,_recursiveReaddir.recursiveReadDirs)(directories,new RegExp(`\\.(?:${pageExtensions.join('|')})$`));}async function printTreeView(list,pageInfos,serverless,{distPath,buildId,pagesDirs,pageExtensions,buildManifest,useStatic404,gzipSize=true}){const getPrettySize=_size=>{const size=(0,_prettyBytes.default)(_size);// green for 0-130kb
if(_size<130*1000)return _chalk.default.green(size);// yellow for 130-170kb
if(_size<170*1000)return _chalk.default.yellow(size);// red for >= 170kb
return _chalk.default.red.bold(size);};const getCleanName=fileName=>fileName// Trim off `static/`
.replace(/^static\//,'')// Re-add `static/` for root files
.replace(/^<buildId>/,'static')// Remove file hash
-.replace(/(?:^|[.-])([0-9a-z]{6})[0-9a-z]{14}(?=\.)/,'.$1');const messages=[['Page','Size','First Load JS'].map(entry=>_chalk.default.underline(entry))];const hasCustomApp=await(0,_findPageFile.findPageFile)(pagesDir,'/_app',pageExtensions);pageInfos.set('/404',{...(pageInfos.get('/404')||pageInfos.get('/_error')),static:useStatic404});if(!list.includes('/404')){list=[...list,'/404'];}const sizeData=await computeFromManifest(buildManifest,distPath,gzipSize,pageInfos);const pageList=list.slice().filter(e=>!(e==='/_document'||e==='/_error'||!hasCustomApp&&e==='/_app')).sort((a,b)=>a.localeCompare(b));pageList.forEach((item,i,arr)=>{var _buildManifest$pages$,_pageInfo$ssgPageRout;const symbol=i===0?arr.length===1?'─':'┌':i===arr.length-1?'└':'├';const pageInfo=pageInfos.get(item);const ampFirst=buildManifest.ampFirstPages.includes(item);messages.push([`${symbol} ${item==='/_app'?' ':pageInfo!=null&&pageInfo.static?'○':pageInfo!=null&&pageInfo.isSsg?'●':'λ'} ${pageInfo!=null&&pageInfo.initialRevalidateSeconds?`${item} (ISR: ${pageInfo==null?void 0:pageInfo.initialRevalidateSeconds} Seconds)`:item}`,pageInfo?ampFirst?_chalk.default.cyan('AMP'):pageInfo.size>=0?(0,_prettyBytes.default)(pageInfo.size):'':'',pageInfo?ampFirst?_chalk.default.cyan('AMP'):pageInfo.size>=0?getPrettySize(pageInfo.totalSize):'':'']);const uniqueCssFiles=((_buildManifest$pages$=buildManifest.pages[item])==null?void 0:_buildManifest$pages$.filter(file=>file.endsWith('.css')&&sizeData.uniqueFiles.includes(file)))||[];if(uniqueCssFiles.length>0){const contSymbol=i===arr.length-1?' ':'├';uniqueCssFiles.forEach((file,index,{length})=>{const innerSymbol=index===length-1?'└':'├';messages.push([`${contSymbol} ${innerSymbol} ${getCleanName(file)}`,(0,_prettyBytes.default)(sizeData.sizeUniqueFiles[file]),'']);});}if(pageInfo!=null&&(_pageInfo$ssgPageRout=pageInfo.ssgPageRoutes)!=null&&_pageInfo$ssgPageRout.length){const totalRoutes=pageInfo.ssgPageRoutes.length;const previewPages=totalRoutes===4?4:3;const contSymbol=i===arr.length-1?' ':'├';const routes=pageInfo.ssgPageRoutes.slice(0,previewPages);if(totalRoutes>previewPages){const remaining=totalRoutes-previewPages;routes.push(`[+${remaining} more paths]`);}routes.forEach((slug,index,{length})=>{const innerSymbol=index===length-1?'└':'├';messages.push([`${contSymbol} ${innerSymbol} ${slug}`,'','']);});}});const sharedFilesSize=sizeData.sizeCommonFiles;const sharedFiles=sizeData.sizeCommonFile;messages.push(['+ First Load JS shared by all',getPrettySize(sharedFilesSize),'']);const sharedFileKeys=Object.keys(sharedFiles);const sharedCssFiles=[];[...sharedFileKeys.filter(file=>{if(file.endsWith('.css')){sharedCssFiles.push(file);return false;}return true;}).map(e=>e.replace(buildId,'<buildId>')).sort(),...sharedCssFiles.map(e=>e.replace(buildId,'<buildId>')).sort()].forEach((fileName,index,{length})=>{const innerSymbol=index===length-1?'└':'├';const originalName=fileName.replace('<buildId>',buildId);const cleanName=getCleanName(fileName);messages.push([` ${innerSymbol} ${cleanName}`,(0,_prettyBytes.default)(sharedFiles[originalName]),'']);});console.log((0,_textTable.default)(messages,{align:['l','l','r'],stringLength:str=>(0,_stripAnsi.default)(str).length}));console.log();console.log((0,_textTable.default)([['λ',serverless?'(Lambda)':'(Server)',`server-side renders at runtime (uses ${_chalk.default.cyan('getInitialProps')} or ${_chalk.default.cyan('getServerSideProps')})`],['○','(Static)','automatically rendered as static HTML (uses no initial props)'],['●','(SSG)',`automatically generated as static HTML + JSON (uses ${_chalk.default.cyan('getStaticProps')})`],['','(ISR)',`incremental static regeneration (uses revalidate in ${_chalk.default.cyan('getStaticProps')})`]],{align:['l','l','l'],stringLength:str=>(0,_stripAnsi.default)(str).length}));console.log();}function printCustomRoutes({redirects,rewrites,headers}){const printRoutes=(routes,type)=>{const isRedirects=type==='Redirects';const isHeaders=type==='Headers';console.log(_chalk.default.underline(type));console.log();/*
+.replace(/(?:^|[.-])([0-9a-z]{6})[0-9a-z]{14}(?=\.)/,'.$1');const messages=[['Page','Size','First Load JS'].map(entry=>_chalk.default.underline(entry))];const hasCustomApp=await(0,_findPageFile.findPageFile)(pagesDirs,'/_app',pageExtensions);pageInfos.set('/404',{...(pageInfos.get('/404')||pageInfos.get('/_error')),static:useStatic404});if(!list.includes('/404')){list=[...list,'/404'];}const sizeData=await computeFromManifest(buildManifest,distPath,gzipSize,pageInfos);const pageList=list.slice().filter(e=>!(e==='/_document'||e==='/_error'||!hasCustomApp&&e==='/_app')).sort((a,b)=>a.localeCompare(b));pageList.forEach((item,i,arr)=>{var _buildManifest$pages$,_pageInfo$ssgPageRout;const symbol=i===0?arr.length===1?'─':'┌':i===arr.length-1?'└':'├';const pageInfo=pageInfos.get(item);const ampFirst=buildManifest.ampFirstPages.includes(item);messages.push([`${symbol} ${item==='/_app'?' ':pageInfo!=null&&pageInfo.static?'○':pageInfo!=null&&pageInfo.isSsg?'●':'λ'} ${pageInfo!=null&&pageInfo.initialRevalidateSeconds?`${item} (ISR: ${pageInfo==null?void 0:pageInfo.initialRevalidateSeconds} Seconds)`:item}`,pageInfo?ampFirst?_chalk.default.cyan('AMP'):pageInfo.size>=0?(0,_prettyBytes.default)(pageInfo.size):'':'',pageInfo?ampFirst?_chalk.default.cyan('AMP'):pageInfo.size>=0?getPrettySize(pageInfo.totalSize):'':'']);const uniqueCssFiles=((_buildManifest$pages$=buildManifest.pages[item])==null?void 0:_buildManifest$pages$.filter(file=>file.endsWith('.css')&&sizeData.uniqueFiles.includes(file)))||[];if(uniqueCssFiles.length>0){const contSymbol=i===arr.length-1?' ':'├';uniqueCssFiles.forEach((file,index,{length})=>{const innerSymbol=index===length-1?'└':'├';messages.push([`${contSymbol} ${innerSymbol} ${getCleanName(file)}`,(0,_prettyBytes.default)(sizeData.sizeUniqueFiles[file]),'']);});}if(pageInfo!=null&&(_pageInfo$ssgPageRout=pageInfo.ssgPageRoutes)!=null&&_pageInfo$ssgPageRout.length){const totalRoutes=pageInfo.ssgPageRoutes.length;const previewPages=totalRoutes===4?4:3;const contSymbol=i===arr.length-1?' ':'├';const routes=pageInfo.ssgPageRoutes.slice(0,previewPages);if(totalRoutes>previewPages){const remaining=totalRoutes-previewPages;routes.push(`[+${remaining} more paths]`);}routes.forEach((slug,index,{length})=>{const innerSymbol=index===length-1?'└':'├';messages.push([`${contSymbol} ${innerSymbol} ${slug}`,'','']);});}});const sharedFilesSize=sizeData.sizeCommonFiles;const sharedFiles=sizeData.sizeCommonFile;messages.push(['+ First Load JS shared by all',getPrettySize(sharedFilesSize),'']);const sharedFileKeys=Object.keys(sharedFiles);const sharedCssFiles=[];[...sharedFileKeys.filter(file=>{if(file.endsWith('.css')){sharedCssFiles.push(file);return false;}return true;}).map(e=>e.replace(buildId,'<buildId>')).sort(),...sharedCssFiles.map(e=>e.replace(buildId,'<buildId>')).sort()].forEach((fileName,index,{length})=>{const innerSymbol=index===length-1?'└':'├';const originalName=fileName.replace('<buildId>',buildId);const cleanName=getCleanName(fileName);messages.push([` ${innerSymbol} ${cleanName}`,(0,_prettyBytes.default)(sharedFiles[originalName]),'']);});console.log((0,_textTable.default)(messages,{align:['l','l','r'],stringLength:str=>(0,_stripAnsi.default)(str).length}));console.log();console.log((0,_textTable.default)([['λ',serverless?'(Lambda)':'(Server)',`server-side renders at runtime (uses ${_chalk.default.cyan('getInitialProps')} or ${_chalk.default.cyan('getServerSideProps')})`],['○','(Static)','automatically rendered as static HTML (uses no initial props)'],['●','(SSG)',`automatically generated as static HTML + JSON (uses ${_chalk.default.cyan('getStaticProps')})`],['','(ISR)',`incremental static regeneration (uses revalidate in ${_chalk.default.cyan('getStaticProps')})`]],{align:['l','l','l'],stringLength:str=>(0,_stripAnsi.default)(str).length}));console.log();}function printCustomRoutes({redirects,rewrites,headers}){const printRoutes=(routes,type)=>{const isRedirects=type==='Redirects';const isHeaders=type==='Headers';console.log(_chalk.default.underline(type));console.log();/*
┌ source
├ permanent/statusCode
└ destination
diff --git a/node_modules/next/dist/build/utils.js.map b/node_modules/next/dist/build/utils.js.map
index ce3e798..a850da4 100644
--- a/node_modules/next/dist/build/utils.js.map
+++ b/node_modules/next/dist/build/utils.js.map
@@ -1 +1 @@
-{"version":3,"sources":["../../build/utils.ts"],"names":["fileGzipStats","fsStatGzip","file","cached","getGzipSize","fileSize","fs","stat","size","fileStats","fsStat","collectPages","directory","pageExtensions","RegExp","join","printTreeView","list","pageInfos","serverless","distPath","buildId","pagesDir","buildManifest","useStatic404","gzipSize","getPrettySize","_size","chalk","green","yellow","red","bold","getCleanName","fileName","replace","messages","map","entry","underline","hasCustomApp","set","get","static","includes","sizeData","computeFromManifest","pageList","slice","filter","e","sort","a","b","localeCompare","forEach","item","i","arr","symbol","length","pageInfo","ampFirst","ampFirstPages","push","isSsg","initialRevalidateSeconds","cyan","totalSize","uniqueCssFiles","pages","endsWith","uniqueFiles","contSymbol","index","innerSymbol","sizeUniqueFiles","ssgPageRoutes","totalRoutes","previewPages","routes","remaining","slug","sharedFilesSize","sizeCommonFiles","sharedFiles","sizeCommonFile","sharedFileKeys","Object","keys","sharedCssFiles","originalName","cleanName","console","log","align","stringLength","str","printCustomRoutes","redirects","rewrites","headers","printRoutes","type","isRedirects","isHeaders","routesStr","route","routeStr","source","r","destination","statusCode","permanent","header","last","key","value","combinedRewrites","beforeFiles","afterFiles","fallback","cachedBuildManifest","lastCompute","lastComputePageInfo","manifest","is","expected","files","Map","isHybridAmp","Infinity","has","getSize","commonFiles","entries","len","f","stats","Promise","all","path","_","uniqueStats","reduce","obj","n","assign","difference","main","sub","Set","x","intersect","sum","getJsPageSizeInKb","page","computedManifestData","data","fnFilterJs","pageFiles","appFiles","fnMapRealPath","dep","allFilesReal","selfFilesReal","allFilesSize","selfFilesSize","buildStaticPaths","getStaticPaths","locales","defaultLocale","prerenderPaths","encodedPrerenderPaths","_routeRegex","_routeMatcher","_validParamKeys","staticPathsResult","expectedReturnVal","Array","isArray","Error","invalidStaticPathKeys","toPrerender","paths","localePathResult","cleanedEntry","detectedLocale","substr","result","add","split","segment","decodeURIComponent","invalidKeys","k","params","builtPage","encodedBuiltPage","validParamKey","repeat","optional","groups","paramValue","hasOwnProperty","undefined","replaced","encodeURIComponent","locale","curLocale","encodedPaths","isPageStatic","distDir","runtimeEnvConfig","parentId","isPageStaticSpan","traceAsyncFn","require","setConfig","components","mod","ComponentMod","Comp","default","hasGetInitialProps","getInitialProps","hasStaticProps","getStaticProps","hasStaticPaths","hasServerProps","getServerSideProps","hasLegacyServerProps","unstable_getServerProps","hasLegacyStaticProps","unstable_getStaticProps","hasLegacyStaticPaths","unstable_getStaticPaths","hasLegacyStaticParams","unstable_getStaticParams","SSG_GET_INITIAL_PROPS_CONFLICT","SERVER_PROPS_GET_INIT_PROPS_CONFLICT","SERVER_PROPS_SSG_CONFLICT","pageIsDynamic","prerenderRoutes","encodedPrerenderRoutes","prerenderFallback","isNextImageImported","global","__NEXT_IMAGE_IMPORTED","config","isStatic","amp","isAmpOnly","err","code","hasCustomGetInitialProps","isLikeServerless","checkingApp","_app","origGetInitialProps","getNamedExports","detectConflictingPaths","combinedPages","ssgPages","additionalSsgPaths","conflictingPaths","dynamicSsgPages","pathsPage","curPath","lowerPath","toLowerCase","conflictingPage","find","conflictingPath","compPath","conflictingPathsOutput","pathItems","pathItem","idx","isDynamic","Log","error","process","exit","getCssFilePaths","cssFiles","values"],"mappings":"6hBAAA,qDACA,oDACA,8EACA,gFACA,kDACA,sBACA,iCACA,gFAOA,2CAKA,wEACA,0DACA,sDACA,qEACA,oHACA,0DAEA,4EAEA,0EAEA,kFACA,yDACA,qEACA,yC,w4BAEA,KAAMA,CAAAA,aAA2D,CAAG,EAApE,CACA,KAAMC,CAAAA,UAAU,CAAIC,IAAD,EAAkB,CACnC,KAAMC,CAAAA,MAAM,CAAGH,aAAa,CAACE,IAAD,CAA5B,CACA,GAAIC,MAAJ,CAAY,MAAOA,CAAAA,MAAP,CACZ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,CAAC,GAAG2R,QAAJ,CAAP,CACD","sourcesContent":["import '../next-server/server/node-polyfill-fetch'\nimport chalk from 'chalk'\nimport getGzipSize from 'next/dist/compiled/gzip-size'\nimport textTable from 'next/dist/compiled/text-table'\nimport path from 'path'\nimport { promises as fs } from 'fs'\nimport { isValidElementType } from 'react-is'\nimport stripAnsi from 'next/dist/compiled/strip-ansi'\nimport {\n Redirect,\n Rewrite,\n Header,\n CustomRoutes,\n} from '../lib/load-custom-routes'\nimport {\n SSG_GET_INITIAL_PROPS_CONFLICT,\n SERVER_PROPS_GET_INIT_PROPS_CONFLICT,\n SERVER_PROPS_SSG_CONFLICT,\n} from '../lib/constants'\nimport prettyBytes from '../lib/pretty-bytes'\nimport { recursiveReadDir } from '../lib/recursive-readdir'\nimport { getRouteMatcher, getRouteRegex } from '../next-server/lib/router/utils'\nimport { isDynamicRoute } from '../next-server/lib/router/utils/is-dynamic'\nimport escapePathDelimiters from '../next-server/lib/router/utils/escape-path-delimiters'\nimport { findPageFile } from '../server/lib/find-page-file'\nimport { GetStaticPaths } from 'next/types'\nimport { denormalizePagePath } from '../next-server/server/normalize-page-path'\nimport { BuildManifest } from '../next-server/server/get-page-files'\nimport { removePathTrailingSlash } from '../client/normalize-trailing-slash'\nimport { UnwrapPromise } from '../lib/coalesced-function'\nimport { normalizeLocalePath } from '../next-server/lib/i18n/normalize-locale-path'\nimport * as Log from './output/log'\nimport { loadComponents } from '../next-server/server/load-components'\nimport { trace } from '../telemetry/trace'\n\nconst fileGzipStats: { [k: string]: Promise<number> | undefined } = {}\nconst fsStatGzip = (file: string) => {\n const cached = fileGzipStats[file]\n if (cached) return cached\n return (fileGzipStats[file] = getGzipSize.file(file))\n}\n\nconst fileSize = async (file: string) => (await fs.stat(file)).size\n\nconst fileStats: { [k: string]: Promise<number> | undefined } = {}\nconst fsStat = (file: string) => {\n const cached = fileStats[file]\n if (cached) return cached\n return (fileStats[file] = fileSize(file))\n}\n\nexport function collectPages(\n directory: string,\n pageExtensions: string[]\n): Promise<string[]> {\n return recursiveReadDir(\n directory,\n new RegExp(`\\\\.(?:${pageExtensions.join('|')})$`)\n )\n}\n\nexport interface PageInfo {\n isHybridAmp?: boolean\n size: number\n totalSize: number\n static: boolean\n isSsg: boolean\n ssgPageRoutes: string[] | null\n initialRevalidateSeconds: number | false\n}\n\nexport async function printTreeView(\n list: readonly string[],\n pageInfos: Map<string, PageInfo>,\n serverless: boolean,\n {\n distPath,\n buildId,\n pagesDir,\n pageExtensions,\n buildManifest,\n useStatic404,\n gzipSize = true,\n }: {\n distPath: string\n buildId: string\n pagesDir: string\n pageExtensions: string[]\n buildManifest: BuildManifest\n useStatic404: boolean\n gzipSize?: boolean\n }\n) {\n const getPrettySize = (_size: number): string => {\n const size = prettyBytes(_size)\n // green for 0-130kb\n if (_size < 130 * 1000) return chalk.green(size)\n // yellow for 130-170kb\n if (_size < 170 * 1000) return chalk.yellow(size)\n // red for >= 170kb\n return chalk.red.bold(size)\n }\n\n const getCleanName = (fileName: string) =>\n fileName\n // Trim off `static/`\n .replace(/^static\\//, '')\n // Re-add `static/` for root files\n .replace(/^<buildId>/, 'static')\n // Remove file hash\n .replace(/(?:^|[.-])([0-9a-z]{6})[0-9a-z]{14}(?=\\.)/, '.$1')\n\n const messages: [string, string, string][] = [\n ['Page', 'Size', 'First Load JS'].map((entry) =>\n chalk.underline(entry)\n ) as [string, string, string],\n ]\n\n const hasCustomApp = await findPageFile(pagesDir, '/_app', pageExtensions)\n\n pageInfos.set('/404', {\n ...(pageInfos.get('/404') || pageInfos.get('/_error')),\n static: useStatic404,\n } as any)\n\n if (!list.includes('/404')) {\n list = [...list, '/404']\n }\n\n const sizeData = await computeFromManifest(\n buildManifest,\n distPath,\n gzipSize,\n pageInfos\n )\n\n const pageList = list\n .slice()\n .filter(\n (e) =>\n !(\n e === '/_document' ||\n e === '/_error' ||\n (!hasCustomApp && e === '/_app')\n )\n )\n .sort((a, b) => a.localeCompare(b))\n\n pageList.forEach((item, i, arr) => {\n const symbol =\n i === 0\n ? arr.length === 1\n ? '─'\n : '┌'\n : i === arr.length - 1\n ? '└'\n : '├'\n\n const pageInfo = pageInfos.get(item)\n const ampFirst = buildManifest.ampFirstPages.includes(item)\n\n messages.push([\n `${symbol} ${\n item === '/_app'\n ? ' '\n : pageInfo?.static\n ? '○'\n : pageInfo?.isSsg\n ? '●'\n : 'λ'\n } ${\n pageInfo?.initialRevalidateSeconds\n ? `${item} (ISR: ${pageInfo?.initialRevalidateSeconds} Seconds)`\n : item\n }`,\n pageInfo\n ? ampFirst\n ? chalk.cyan('AMP')\n : pageInfo.size >= 0\n ? prettyBytes(pageInfo.size)\n : ''\n : '',\n pageInfo\n ? ampFirst\n ? chalk.cyan('AMP')\n : pageInfo.size >= 0\n ? getPrettySize(pageInfo.totalSize)\n : ''\n : '',\n ])\n\n const uniqueCssFiles =\n buildManifest.pages[item]?.filter(\n (file) => file.endsWith('.css') && sizeData.uniqueFiles.includes(file)\n ) || []\n\n if (uniqueCssFiles.length > 0) {\n const contSymbol = i === arr.length - 1 ? ' ' : '├'\n\n uniqueCssFiles.forEach((file, index, { length }) => {\n const innerSymbol = index === length - 1 ? '└' : '├'\n messages.push([\n `${contSymbol} ${innerSymbol} ${getCleanName(file)}`,\n prettyBytes(sizeData.sizeUniqueFiles[file]),\n '',\n ])\n })\n }\n\n if (pageInfo?.ssgPageRoutes?.length) {\n const totalRoutes = pageInfo.ssgPageRoutes.length\n const previewPages = totalRoutes === 4 ? 4 : 3\n const contSymbol = i === arr.length - 1 ? ' ' : '├'\n\n const routes = pageInfo.ssgPageRoutes.slice(0, previewPages)\n if (totalRoutes > previewPages) {\n const remaining = totalRoutes - previewPages\n routes.push(`[+${remaining} more paths]`)\n }\n\n routes.forEach((slug, index, { length }) => {\n const innerSymbol = index === length - 1 ? '└' : '├'\n messages.push([`${contSymbol} ${innerSymbol} ${slug}`, '', ''])\n })\n }\n })\n\n const sharedFilesSize = sizeData.sizeCommonFiles\n const sharedFiles = sizeData.sizeCommonFile\n\n messages.push([\n '+ First Load JS shared by all',\n getPrettySize(sharedFilesSize),\n '',\n ])\n const sharedFileKeys = Object.keys(sharedFiles)\n const sharedCssFiles: string[] = []\n ;[\n ...sharedFileKeys\n .filter((file) => {\n if (file.endsWith('.css')) {\n sharedCssFiles.push(file)\n return false\n }\n return true\n })\n .map((e) => e.replace(buildId, '<buildId>'))\n .sort(),\n ...sharedCssFiles.map((e) => e.replace(buildId, '<buildId>')).sort(),\n ].forEach((fileName, index, { length }) => {\n const innerSymbol = index === length - 1 ? '└' : '├'\n\n const originalName = fileName.replace('<buildId>', buildId)\n const cleanName = getCleanName(fileName)\n\n messages.push([\n ` ${innerSymbol} ${cleanName}`,\n prettyBytes(sharedFiles[originalName]),\n '',\n ])\n })\n\n console.log(\n textTable(messages, {\n align: ['l', 'l', 'r'],\n stringLength: (str) => stripAnsi(str).length,\n })\n )\n\n console.log()\n console.log(\n textTable(\n [\n [\n 'λ',\n serverless ? '(Lambda)' : '(Server)',\n `server-side renders at runtime (uses ${chalk.cyan(\n 'getInitialProps'\n )} or ${chalk.cyan('getServerSideProps')})`,\n ],\n [\n '○',\n '(Static)',\n 'automatically rendered as static HTML (uses no initial props)',\n ],\n [\n '●',\n '(SSG)',\n `automatically generated as static HTML + JSON (uses ${chalk.cyan(\n 'getStaticProps'\n )})`,\n ],\n [\n '',\n '(ISR)',\n `incremental static regeneration (uses revalidate in ${chalk.cyan(\n 'getStaticProps'\n )})`,\n ],\n ] as [string, string, string][],\n {\n align: ['l', 'l', 'l'],\n stringLength: (str) => stripAnsi(str).length,\n }\n )\n )\n\n console.log()\n}\n\nexport function printCustomRoutes({\n redirects,\n rewrites,\n headers,\n}: CustomRoutes) {\n const printRoutes = (\n routes: Redirect[] | Rewrite[] | Header[],\n type: 'Redirects' | 'Rewrites' | 'Headers'\n ) => {\n const isRedirects = type === 'Redirects'\n const isHeaders = type === 'Headers'\n console.log(chalk.underline(type))\n console.log()\n\n /*\n ┌ source\n ├ permanent/statusCode\n └ destination\n */\n const routesStr = (routes as any[])\n .map((route: { source: string }) => {\n let routeStr = `┌ source: ${route.source}\\n`\n\n if (!isHeaders) {\n const r = route as Rewrite\n routeStr += `${isRedirects ? '├' : '└'} destination: ${\n r.destination\n }\\n`\n }\n if (isRedirects) {\n const r = route as Redirect\n routeStr += `└ ${\n r.statusCode\n ? `status: ${r.statusCode}`\n : `permanent: ${r.permanent}`\n }\\n`\n }\n\n if (isHeaders) {\n const r = route as Header\n routeStr += `└ headers:\\n`\n\n for (let i = 0; i < r.headers.length; i++) {\n const header = r.headers[i]\n const last = i === headers.length - 1\n\n routeStr += ` ${last ? '└' : '├'} ${header.key}: ${header.value}\\n`\n }\n }\n\n return routeStr\n })\n .join('\\n')\n\n console.log(routesStr, '\\n')\n }\n\n if (redirects.length) {\n printRoutes(redirects, 'Redirects')\n }\n if (headers.length) {\n printRoutes(headers, 'Headers')\n }\n\n const combinedRewrites = [\n ...rewrites.beforeFiles,\n ...rewrites.afterFiles,\n ...rewrites.fallback,\n ]\n if (combinedRewrites.length) {\n printRoutes(combinedRewrites, 'Rewrites')\n }\n}\n\ntype ComputeManifestShape = {\n commonFiles: string[]\n uniqueFiles: string[]\n sizeUniqueFiles: { [file: string]: number }\n sizeCommonFile: { [file: string]: number }\n sizeCommonFiles: number\n}\n\nlet cachedBuildManifest: BuildManifest | undefined\n\nlet lastCompute: ComputeManifestShape | undefined\nlet lastComputePageInfo: boolean | undefined\n\nexport async function computeFromManifest(\n manifest: BuildManifest,\n distPath: string,\n gzipSize: boolean = true,\n pageInfos?: Map<string, PageInfo>\n): Promise<ComputeManifestShape> {\n if (\n Object.is(cachedBuildManifest, manifest) &&\n lastComputePageInfo === !!pageInfos\n ) {\n return lastCompute!\n }\n\n let expected = 0\n const files = new Map<string, number>()\n Object.keys(manifest.pages).forEach((key) => {\n if (pageInfos) {\n const pageInfo = pageInfos.get(key)\n // don't include AMP pages since they don't rely on shared bundles\n // AMP First pages are not under the pageInfos key\n if (pageInfo?.isHybridAmp) {\n return\n }\n }\n\n ++expected\n manifest.pages[key].forEach((file) => {\n if (key === '/_app') {\n files.set(file, Infinity)\n } else if (files.has(file)) {\n files.set(file, files.get(file)! + 1)\n } else {\n files.set(file, 1)\n }\n })\n })\n\n const getSize = gzipSize ? fsStatGzip : fsStat\n\n const commonFiles = [...files.entries()]\n .filter(([, len]) => len === expected || len === Infinity)\n .map(([f]) => f)\n const uniqueFiles = [...files.entries()]\n .filter(([, len]) => len === 1)\n .map(([f]) => f)\n\n let stats: [string, number][]\n try {\n stats = await Promise.all(\n commonFiles.map(\n async (f) =>\n [f, await getSize(path.join(distPath, f))] as [string, number]\n )\n )\n } catch (_) {\n stats = []\n }\n\n let uniqueStats: [string, number][]\n try {\n uniqueStats = await Promise.all(\n uniqueFiles.map(\n async (f) =>\n [f, await getSize(path.join(distPath, f))] as [string, number]\n )\n )\n } catch (_) {\n uniqueStats = []\n }\n\n lastCompute = {\n commonFiles,\n uniqueFiles,\n sizeUniqueFiles: uniqueStats.reduce(\n (obj, n) => Object.assign(obj, { [n[0]]: n[1] }),\n {}\n ),\n sizeCommonFile: stats.reduce(\n (obj, n) => Object.assign(obj, { [n[0]]: n[1] }),\n {}\n ),\n sizeCommonFiles: stats.reduce((size, [f, stat]) => {\n if (f.endsWith('.css')) return size\n return size + stat\n }, 0),\n }\n\n cachedBuildManifest = manifest\n lastComputePageInfo = !!pageInfos\n return lastCompute!\n}\n\nexport function difference<T>(main: T[] | Set<T>, sub: T[] | Set<T>): T[] {\n const a = new Set(main)\n const b = new Set(sub)\n return [...a].filter((x) => !b.has(x))\n}\n\nfunction intersect<T>(main: T[], sub: T[]): T[] {\n const a = new Set(main)\n const b = new Set(sub)\n return [...new Set([...a].filter((x) => b.has(x)))]\n}\n\nfunction sum(a: number[]): number {\n return a.reduce((size, stat) => size + stat, 0)\n}\n\nexport async function getJsPageSizeInKb(\n page: string,\n distPath: string,\n buildManifest: BuildManifest,\n gzipSize: boolean = true,\n computedManifestData?: ComputeManifestShape\n): Promise<[number, number]> {\n const data =\n computedManifestData ||\n (await computeFromManifest(buildManifest, distPath, gzipSize))\n\n const fnFilterJs = (entry: string) => entry.endsWith('.js')\n\n const pageFiles = (\n buildManifest.pages[denormalizePagePath(page)] || []\n ).filter(fnFilterJs)\n const appFiles = (buildManifest.pages['/_app'] || []).filter(fnFilterJs)\n\n const fnMapRealPath = (dep: string) => `${distPath}/${dep}`\n\n const allFilesReal = [...new Set([...pageFiles, ...appFiles])].map(\n fnMapRealPath\n )\n const selfFilesReal = difference(\n intersect(pageFiles, data.uniqueFiles),\n data.commonFiles\n ).map(fnMapRealPath)\n\n const getSize = gzipSize ? fsStatGzip : fsStat\n\n try {\n // Doesn't use `Promise.all`, as we'd double compute duplicate files. This\n // function is memoized, so the second one will instantly resolve.\n const allFilesSize = sum(await Promise.all(allFilesReal.map(getSize)))\n const selfFilesSize = sum(await Promise.all(selfFilesReal.map(getSize)))\n\n return [selfFilesSize, allFilesSize]\n } catch (_) {}\n return [-1, -1]\n}\n\nexport async function buildStaticPaths(\n page: string,\n getStaticPaths: GetStaticPaths,\n locales?: string[],\n defaultLocale?: string\n): Promise<\n Omit<UnwrapPromise<ReturnType<GetStaticPaths>>, 'paths'> & {\n paths: string[]\n encodedPaths: string[]\n }\n> {\n const prerenderPaths = new Set<string>()\n const encodedPrerenderPaths = new Set<string>()\n const _routeRegex = getRouteRegex(page)\n const _routeMatcher = getRouteMatcher(_routeRegex)\n\n // Get the default list of allowed params.\n const _validParamKeys = Object.keys(_routeMatcher(page))\n\n const staticPathsResult = await getStaticPaths({ locales, defaultLocale })\n\n const expectedReturnVal =\n `Expected: { paths: [], fallback: boolean }\\n` +\n `See here for more info: https://nextjs.org/docs/messages/invalid-getstaticpaths-value`\n\n if (\n !staticPathsResult ||\n typeof staticPathsResult !== 'object' ||\n Array.isArray(staticPathsResult)\n ) {\n throw new Error(\n `Invalid value returned from getStaticPaths in ${page}. Received ${typeof staticPathsResult} ${expectedReturnVal}`\n )\n }\n\n const invalidStaticPathKeys = Object.keys(staticPathsResult).filter(\n (key) => !(key === 'paths' || key === 'fallback')\n )\n\n if (invalidStaticPathKeys.length > 0) {\n throw new Error(\n `Extra keys returned from getStaticPaths in ${page} (${invalidStaticPathKeys.join(\n ', '\n )}) ${expectedReturnVal}`\n )\n }\n\n if (\n !(\n typeof staticPathsResult.fallback === 'boolean' ||\n staticPathsResult.fallback === 'blocking'\n )\n ) {\n throw new Error(\n `The \\`fallback\\` key must be returned from getStaticPaths in ${page}.\\n` +\n expectedReturnVal\n )\n }\n\n const toPrerender = staticPathsResult.paths\n\n if (!Array.isArray(toPrerender)) {\n throw new Error(\n `Invalid \\`paths\\` value returned from getStaticPaths in ${page}.\\n` +\n `\\`paths\\` must be an array of strings or objects of shape { params: [key: string]: string }`\n )\n }\n\n toPrerender.forEach((entry) => {\n // For a string-provided path, we must make sure it matches the dynamic\n // route.\n if (typeof entry === 'string') {\n entry = removePathTrailingSlash(entry)\n\n const localePathResult = normalizeLocalePath(entry, locales)\n let cleanedEntry = entry\n\n if (localePathResult.detectedLocale) {\n cleanedEntry = entry.substr(localePathResult.detectedLocale.length + 1)\n } else if (defaultLocale) {\n entry = `/${defaultLocale}${entry}`\n }\n\n const result = _routeMatcher(cleanedEntry)\n if (!result) {\n throw new Error(\n `The provided path \\`${cleanedEntry}\\` does not match the page: \\`${page}\\`.`\n )\n }\n\n // If leveraging the string paths variant the entry should already be\n // encoded so we decode the segments ensuring we only escape path\n // delimiters\n prerenderPaths.add(\n entry\n .split('/')\n .map((segment) =>\n escapePathDelimiters(decodeURIComponent(segment), true)\n )\n .join('/')\n )\n encodedPrerenderPaths.add(entry)\n }\n // For the object-provided path, we must make sure it specifies all\n // required keys.\n else {\n const invalidKeys = Object.keys(entry).filter(\n (key) => key !== 'params' && key !== 'locale'\n )\n\n if (invalidKeys.length) {\n throw new Error(\n `Additional keys were returned from \\`getStaticPaths\\` in page \"${page}\". ` +\n `URL Parameters intended for this dynamic route must be nested under the \\`params\\` key, i.e.:` +\n `\\n\\n\\treturn { params: { ${_validParamKeys\n .map((k) => `${k}: ...`)\n .join(', ')} } }` +\n `\\n\\nKeys that need to be moved: ${invalidKeys.join(', ')}.\\n`\n )\n }\n\n const { params = {} } = entry\n let builtPage = page\n let encodedBuiltPage = page\n\n _validParamKeys.forEach((validParamKey) => {\n const { repeat, optional } = _routeRegex.groups[validParamKey]\n let paramValue = params[validParamKey]\n if (\n optional &&\n params.hasOwnProperty(validParamKey) &&\n (paramValue === null ||\n paramValue === undefined ||\n (paramValue as any) === false)\n ) {\n paramValue = []\n }\n if (\n (repeat && !Array.isArray(paramValue)) ||\n (!repeat && typeof paramValue !== 'string')\n ) {\n throw new Error(\n `A required parameter (${validParamKey}) was not provided as ${\n repeat ? 'an array' : 'a string'\n } in getStaticPaths for ${page}`\n )\n }\n let replaced = `[${repeat ? '...' : ''}${validParamKey}]`\n if (optional) {\n replaced = `[${replaced}]`\n }\n builtPage = builtPage\n .replace(\n replaced,\n repeat\n ? (paramValue as string[])\n .map((segment) => escapePathDelimiters(segment, true))\n .join('/')\n : escapePathDelimiters(paramValue as string, true)\n )\n .replace(/(?!^)\\/$/, '')\n\n encodedBuiltPage = encodedBuiltPage\n .replace(\n replaced,\n repeat\n ? (paramValue as string[]).map(encodeURIComponent).join('/')\n : encodeURIComponent(paramValue as string)\n )\n .replace(/(?!^)\\/$/, '')\n })\n\n if (entry.locale && !locales?.includes(entry.locale)) {\n throw new Error(\n `Invalid locale returned from getStaticPaths for ${page}, the locale ${entry.locale} is not specified in next.config.js`\n )\n }\n const curLocale = entry.locale || defaultLocale || ''\n\n prerenderPaths.add(\n `${curLocale ? `/${curLocale}` : ''}${\n curLocale && builtPage === '/' ? '' : builtPage\n }`\n )\n encodedPrerenderPaths.add(\n `${curLocale ? `/${curLocale}` : ''}${\n curLocale && encodedBuiltPage === '/' ? '' : encodedBuiltPage\n }`\n )\n }\n })\n\n return {\n paths: [...prerenderPaths],\n fallback: staticPathsResult.fallback,\n encodedPaths: [...encodedPrerenderPaths],\n }\n}\n\nexport async function isPageStatic(\n page: string,\n distDir: string,\n serverless: boolean,\n runtimeEnvConfig: any,\n locales?: string[],\n defaultLocale?: string,\n parentId?: any\n): Promise<{\n isStatic?: boolean\n isAmpOnly?: boolean\n isHybridAmp?: boolean\n hasServerProps?: boolean\n hasStaticProps?: boolean\n prerenderRoutes?: string[]\n encodedPrerenderRoutes?: string[]\n prerenderFallback?: boolean | 'blocking'\n isNextImageImported?: boolean\n}> {\n const isPageStaticSpan = trace('is-page-static-utils', parentId)\n return isPageStaticSpan.traceAsyncFn(async () => {\n try {\n require('../next-server/lib/runtime-config').setConfig(runtimeEnvConfig)\n const components = await loadComponents(distDir, page, serverless)\n const mod = components.ComponentMod\n const Comp = mod.default || mod\n\n if (!Comp || !isValidElementType(Comp) || typeof Comp === 'string') {\n throw new Error('INVALID_DEFAULT_EXPORT')\n }\n\n const hasGetInitialProps = !!(Comp as any).getInitialProps\n const hasStaticProps = !!(await mod.getStaticProps)\n const hasStaticPaths = !!(await mod.getStaticPaths)\n const hasServerProps = !!(await mod.getServerSideProps)\n const hasLegacyServerProps = !!(await mod.unstable_getServerProps)\n const hasLegacyStaticProps = !!(await mod.unstable_getStaticProps)\n const hasLegacyStaticPaths = !!(await mod.unstable_getStaticPaths)\n const hasLegacyStaticParams = !!(await mod.unstable_getStaticParams)\n\n if (hasLegacyStaticParams) {\n throw new Error(\n `unstable_getStaticParams was replaced with getStaticPaths. Please update your code.`\n )\n }\n\n if (hasLegacyStaticPaths) {\n throw new Error(\n `unstable_getStaticPaths was replaced with getStaticPaths. Please update your code.`\n )\n }\n\n if (hasLegacyStaticProps) {\n throw new Error(\n `unstable_getStaticProps was replaced with getStaticProps. Please update your code.`\n )\n }\n\n if (hasLegacyServerProps) {\n throw new Error(\n `unstable_getServerProps was replaced with getServerSideProps. Please update your code.`\n )\n }\n\n // A page cannot be prerendered _and_ define a data requirement. That's\n // contradictory!\n if (hasGetInitialProps && hasStaticProps) {\n throw new Error(SSG_GET_INITIAL_PROPS_CONFLICT)\n }\n\n if (hasGetInitialProps && hasServerProps) {\n throw new Error(SERVER_PROPS_GET_INIT_PROPS_CONFLICT)\n }\n\n if (hasStaticProps && hasServerProps) {\n throw new Error(SERVER_PROPS_SSG_CONFLICT)\n }\n\n const pageIsDynamic = isDynamicRoute(page)\n // A page cannot have static parameters if it is not a dynamic page.\n if (hasStaticProps && hasStaticPaths && !pageIsDynamic) {\n throw new Error(\n `getStaticPaths can only be used with dynamic pages, not '${page}'.` +\n `\\nLearn more: https://nextjs.org/docs/routing/dynamic-routes`\n )\n }\n\n if (hasStaticProps && pageIsDynamic && !hasStaticPaths) {\n throw new Error(\n `getStaticPaths is required for dynamic SSG pages and is missing for '${page}'.` +\n `\\nRead more: https://nextjs.org/docs/messages/invalid-getstaticpaths-value`\n )\n }\n\n let prerenderRoutes: Array<string> | undefined\n let encodedPrerenderRoutes: Array<string> | undefined\n let prerenderFallback: boolean | 'blocking' | undefined\n if (hasStaticProps && hasStaticPaths) {\n ;({\n paths: prerenderRoutes,\n fallback: prerenderFallback,\n encodedPaths: encodedPrerenderRoutes,\n } = await buildStaticPaths(\n page,\n mod.getStaticPaths,\n locales,\n defaultLocale\n ))\n }\n\n const isNextImageImported = (global as any).__NEXT_IMAGE_IMPORTED\n const config = mod.config || {}\n return {\n isStatic: !hasStaticProps && !hasGetInitialProps && !hasServerProps,\n isHybridAmp: config.amp === 'hybrid',\n isAmpOnly: config.amp === true,\n prerenderRoutes,\n prerenderFallback,\n encodedPrerenderRoutes,\n hasStaticProps,\n hasServerProps,\n isNextImageImported,\n }\n } catch (err) {\n if (err.code === 'MODULE_NOT_FOUND') return {}\n throw err\n }\n })\n}\n\nexport async function hasCustomGetInitialProps(\n page: string,\n distDir: string,\n isLikeServerless: boolean,\n runtimeEnvConfig: any,\n checkingApp: boolean\n): Promise<boolean> {\n require('../next-server/lib/runtime-config').setConfig(runtimeEnvConfig)\n\n const components = await loadComponents(distDir, page, isLikeServerless)\n let mod = components.ComponentMod\n\n if (checkingApp) {\n mod = (await mod._app) || mod.default || mod\n } else {\n mod = mod.default || mod\n }\n mod = await mod\n return mod.getInitialProps !== mod.origGetInitialProps\n}\n\nexport async function getNamedExports(\n page: string,\n distDir: string,\n isLikeServerless: boolean,\n runtimeEnvConfig: any\n): Promise<Array<string>> {\n require('../next-server/lib/runtime-config').setConfig(runtimeEnvConfig)\n const components = await loadComponents(distDir, page, isLikeServerless)\n let mod = components.ComponentMod\n\n return Object.keys(mod)\n}\n\nexport function detectConflictingPaths(\n combinedPages: string[],\n ssgPages: Set<string>,\n additionalSsgPaths: Map<string, string[]>\n) {\n const conflictingPaths = new Map<\n string,\n Array<{\n path: string\n page: string\n }>\n >()\n\n const dynamicSsgPages = [...ssgPages].filter((page) => isDynamicRoute(page))\n\n additionalSsgPaths.forEach((paths, pathsPage) => {\n paths.forEach((curPath) => {\n const lowerPath = curPath.toLowerCase()\n let conflictingPage = combinedPages.find(\n (page) => page.toLowerCase() === lowerPath\n )\n\n if (conflictingPage) {\n conflictingPaths.set(lowerPath, [\n { path: curPath, page: pathsPage },\n { path: conflictingPage, page: conflictingPage },\n ])\n } else {\n let conflictingPath: string | undefined\n\n conflictingPage = dynamicSsgPages.find((page) => {\n if (page === pathsPage) return false\n\n conflictingPath = additionalSsgPaths\n .get(page)\n ?.find((compPath) => compPath.toLowerCase() === lowerPath)\n return conflictingPath\n })\n\n if (conflictingPage && conflictingPath) {\n conflictingPaths.set(lowerPath, [\n { path: curPath, page: pathsPage },\n { path: conflictingPath, page: conflictingPage },\n ])\n }\n }\n })\n })\n\n if (conflictingPaths.size > 0) {\n let conflictingPathsOutput = ''\n\n conflictingPaths.forEach((pathItems) => {\n pathItems.forEach((pathItem, idx) => {\n const isDynamic = pathItem.page !== pathItem.path\n\n if (idx > 0) {\n conflictingPathsOutput += 'conflicts with '\n }\n\n conflictingPathsOutput += `path: \"${pathItem.path}\"${\n isDynamic ? ` from page: \"${pathItem.page}\" ` : ' '\n }`\n })\n conflictingPathsOutput += '\\n'\n })\n\n Log.error(\n 'Conflicting paths returned from getStaticPaths, paths must unique per page.\\n' +\n 'See more info here: https://nextjs.org/docs/messages/conflicting-ssg-paths\\n\\n' +\n conflictingPathsOutput\n )\n process.exit(1)\n }\n}\n\nexport function getCssFilePaths(buildManifest: BuildManifest): string[] {\n const cssFiles = new Set<string>()\n Object.values(buildManifest.pages).forEach((files) => {\n files.forEach((file) => {\n if (file.endsWith('.css')) {\n cssFiles.add(file)\n }\n })\n })\n\n return [...cssFiles]\n}\n"]}
\ No newline at end of file
+{"version":3,"sources":["../../build/utils.ts"],"names":["fileGzipStats","fsStatGzip","file","cached","getGzipSize","fileSize","fs","stat","size","fileStats","fsStat","collectPages","directories","pageExtensions","RegExp","join","printTreeView","list","pageInfos","serverless","distPath","buildId","pagesDirs","buildManifest","useStatic404","gzipSize","getPrettySize","_size","chalk","green","yellow","red","bold","getCleanName","fileName","replace","messages","map","entry","underline","hasCustomApp","set","get","static","includes","sizeData","computeFromManifest","pageList","slice","filter","e","sort","a","b","localeCompare","forEach","item","i","arr","symbol","length","pageInfo","ampFirst","ampFirstPages","push","isSsg","initialRevalidateSeconds","cyan","totalSize","uniqueCssFiles","pages","endsWith","uniqueFiles","contSymbol","index","innerSymbol","sizeUniqueFiles","ssgPageRoutes","totalRoutes","previewPages","routes","remaining","slug","sharedFilesSize","sizeCommonFiles","sharedFiles","sizeCommonFile","sharedFileKeys","Object","keys","sharedCssFiles","originalName","cleanName","console","log","align","stringLength","str","printCustomRoutes","redirects","rewrites","headers","printRoutes","type","isRedirects","isHeaders","routesStr","route","routeStr","source","r","destination","statusCode","permanent","header","last","key","value","combinedRewrites","beforeFiles","afterFiles","fallback","cachedBuildManifest","lastCompute","lastComputePageInfo","manifest","is","expected","files","Map","isHybridAmp","Infinity","has","getSize","commonFiles","entries","len","f","stats","Promise","all","path","_","uniqueStats","reduce","obj","n","assign","difference","main","sub","Set","x","intersect","sum","getJsPageSizeInKb","page","computedManifestData","data","fnFilterJs","pageFiles","appFiles","fnMapRealPath","dep","allFilesReal","selfFilesReal","allFilesSize","selfFilesSize","buildStaticPaths","getStaticPaths","locales","defaultLocale","prerenderPaths","encodedPrerenderPaths","_routeRegex","_routeMatcher","_validParamKeys","staticPathsResult","expectedReturnVal","Array","isArray","Error","invalidStaticPathKeys","toPrerender","paths","localePathResult","cleanedEntry","detectedLocale","substr","result","add","split","segment","decodeURIComponent","invalidKeys","k","params","builtPage","encodedBuiltPage","validParamKey","repeat","optional","groups","paramValue","hasOwnProperty","undefined","replaced","encodeURIComponent","locale","curLocale","encodedPaths","isPageStatic","distDir","runtimeEnvConfig","parentId","isPageStaticSpan","traceAsyncFn","require","setConfig","components","mod","ComponentMod","Comp","default","hasGetInitialProps","getInitialProps","hasStaticProps","getStaticProps","hasStaticPaths","hasServerProps","getServerSideProps","hasLegacyServerProps","unstable_getServerProps","hasLegacyStaticProps","unstable_getStaticProps","hasLegacyStaticPaths","unstable_getStaticPaths","hasLegacyStaticParams","unstable_getStaticParams","SSG_GET_INITIAL_PROPS_CONFLICT","SERVER_PROPS_GET_INIT_PROPS_CONFLICT","SERVER_PROPS_SSG_CONFLICT","pageIsDynamic","prerenderRoutes","encodedPrerenderRoutes","prerenderFallback","isNextImageImported","global","__NEXT_IMAGE_IMPORTED","config","isStatic","amp","isAmpOnly","err","code","hasCustomGetInitialProps","isLikeServerless","checkingApp","_app","origGetInitialProps","getNamedExports","detectConflictingPaths","combinedPages","ssgPages","additionalSsgPaths","conflictingPaths","dynamicSsgPages","pathsPage","curPath","lowerPath","toLowerCase","conflictingPage","find","conflictingPath","compPath","conflictingPathsOutput","pathItems","pathItem","idx","isDynamic","Log","error","process","exit","getCssFilePaths","cssFiles","values"],"mappings":"6hBAAA,qDACA,oDACA,8EACA,gFACA,kDACA,sBACA,iCACA,gFAOA,2CAKA,wEACA,0DACA,sDACA,qEACA,oHACA,0DAEA,4EAEA,0EAEA,kFACA,yD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,CAA4CyE,KAAD,EAAW,CACpDA,KAAK,CAACzE,OAAN,CAAerD,IAAD,EAAU,CACtB,GAAIA,IAAI,CAACqE,QAAL,CAAc,MAAd,CAAJ,CAA2B,CACzBsN,QAAQ,CAAC/F,GAAT,CAAa5L,IAAb,EACD,CACF,CAJD,EAKD,CAND,EAQA,MAAO,CAAC,GAAG2R,QAAJ,CAAP,CACD","sourcesContent":["import '../next-server/server/node-polyfill-fetch'\nimport chalk from 'chalk'\nimport getGzipSize from 'next/dist/compiled/gzip-size'\nimport textTable from 'next/dist/compiled/text-table'\nimport path from 'path'\nimport { promises as fs } from 'fs'\nimport { isValidElementType } from 'react-is'\nimport stripAnsi from 'next/dist/compiled/strip-ansi'\nimport {\n Redirect,\n Rewrite,\n Header,\n CustomRoutes,\n} from '../lib/load-custom-routes'\nimport {\n SSG_GET_INITIAL_PROPS_CONFLICT,\n SERVER_PROPS_GET_INIT_PROPS_CONFLICT,\n SERVER_PROPS_SSG_CONFLICT,\n} from '../lib/constants'\nimport prettyBytes from '../lib/pretty-bytes'\nimport { recursiveReadDirs } from '../lib/recursive-readdir'\nimport { getRouteMatcher, getRouteRegex } from '../next-server/lib/router/utils'\nimport { isDynamicRoute } from '../next-server/lib/router/utils/is-dynamic'\nimport escapePathDelimiters from '../next-server/lib/router/utils/escape-path-delimiters'\nimport { findPageFile } from '../server/lib/find-page-file'\nimport { GetStaticPaths } from 'next/types'\nimport { denormalizePagePath } from '../next-server/server/normalize-page-path'\nimport { BuildManifest } from '../next-server/server/get-page-files'\nimport { removePathTrailingSlash } from '../client/normalize-trailing-slash'\nimport { UnwrapPromise } from '../lib/coalesced-function'\nimport { normalizeLocalePath } from '../next-server/lib/i18n/normalize-locale-path'\nimport * as Log from './output/log'\nimport { loadComponents } from '../next-server/server/load-components'\nimport { trace } from '../telemetry/trace'\n\nconst fileGzipStats: { [k: string]: Promise<number> | undefined } = {}\nconst fsStatGzip = (file: string) => {\n const cached = fileGzipStats[file]\n if (cached) return cached\n return (fileGzipStats[file] = getGzipSize.file(file))\n}\n\nconst fileSize = async (file: string) => (await fs.stat(file)).size\n\nconst fileStats: { [k: string]: Promise<number> | undefined } = {}\nconst fsStat = (file: string) => {\n const cached = fileStats[file]\n if (cached) return cached\n return (fileStats[file] = fileSize(file))\n}\n\nexport function collectPages(\n directories: string[],\n pageExtensions: string[]\n): Promise<string[]> {\n return recursiveReadDirs(\n directories,\n new RegExp(`\\\\.(?:${pageExtensions.join('|')})$`)\n )\n}\n\nexport interface PageInfo {\n isHybridAmp?: boolean\n size: number\n totalSize: number\n static: boolean\n isSsg: boolean\n ssgPageRoutes: string[] | null\n initialRevalidateSeconds: number | false\n}\n\nexport async function printTreeView(\n list: readonly string[],\n pageInfos: Map<string, PageInfo>,\n serverless: boolean,\n {\n distPath,\n buildId,\n pagesDirs,\n pageExtensions,\n buildManifest,\n useStatic404,\n gzipSize = true,\n }: {\n distPath: string\n buildId: string\n pagesDirs: string[]\n pageExtensions: string[]\n buildManifest: BuildManifest\n useStatic404: boolean\n gzipSize?: boolean\n }\n) {\n const getPrettySize = (_size: number): string => {\n const size = prettyBytes(_size)\n // green for 0-130kb\n if (_size < 130 * 1000) return chalk.green(size)\n // yellow for 130-170kb\n if (_size < 170 * 1000) return chalk.yellow(size)\n // red for >= 170kb\n return chalk.red.bold(size)\n }\n\n const getCleanName = (fileName: string) =>\n fileName\n // Trim off `static/`\n .replace(/^static\\//, '')\n // Re-add `static/` for root files\n .replace(/^<buildId>/, 'static')\n // Remove file hash\n .replace(/(?:^|[.-])([0-9a-z]{6})[0-9a-z]{14}(?=\\.)/, '.$1')\n\n const messages: [string, string, string][] = [\n ['Page', 'Size', 'First Load JS'].map((entry) =>\n chalk.underline(entry)\n ) as [string, string, string],\n ]\n\n const hasCustomApp = await findPageFile(pagesDirs, '/_app', pageExtensions)\n\n pageInfos.set('/404', {\n ...(pageInfos.get('/404') || pageInfos.get('/_error')),\n static: useStatic404,\n } as any)\n\n if (!list.includes('/404')) {\n list = [...list, '/404']\n }\n\n const sizeData = await computeFromManifest(\n buildManifest,\n distPath,\n gzipSize,\n pageInfos\n )\n\n const pageList = list\n .slice()\n .filter(\n (e) =>\n !(\n e === '/_document' ||\n e === '/_error' ||\n (!hasCustomApp && e === '/_app')\n )\n )\n .sort((a, b) => a.localeCompare(b))\n\n pageList.forEach((item, i, arr) => {\n const symbol =\n i === 0\n ? arr.length === 1\n ? '─'\n : '┌'\n : i === arr.length - 1\n ? '└'\n : '├'\n\n const pageInfo = pageInfos.get(item)\n const ampFirst = buildManifest.ampFirstPages.includes(item)\n\n messages.push([\n `${symbol} ${\n item === '/_app'\n ? ' '\n : pageInfo?.static\n ? '○'\n : pageInfo?.isSsg\n ? '●'\n : 'λ'\n } ${\n pageInfo?.initialRevalidateSeconds\n ? `${item} (ISR: ${pageInfo?.initialRevalidateSeconds} Seconds)`\n : item\n }`,\n pageInfo\n ? ampFirst\n ? chalk.cyan('AMP')\n : pageInfo.size >= 0\n ? prettyBytes(pageInfo.size)\n : ''\n : '',\n pageInfo\n ? ampFirst\n ? chalk.cyan('AMP')\n : pageInfo.size >= 0\n ? getPrettySize(pageInfo.totalSize)\n : ''\n : '',\n ])\n\n const uniqueCssFiles =\n buildManifest.pages[item]?.filter(\n (file) => file.endsWith('.css') && sizeData.uniqueFiles.includes(file)\n ) || []\n\n if (uniqueCssFiles.length > 0) {\n const contSymbol = i === arr.length - 1 ? ' ' : '├'\n\n uniqueCssFiles.forEach((file, index, { length }) => {\n const innerSymbol = index === length - 1 ? '└' : '├'\n messages.push([\n `${contSymbol} ${innerSymbol} ${getCleanName(file)}`,\n prettyBytes(sizeData.sizeUniqueFiles[file]),\n '',\n ])\n })\n }\n\n if (pageInfo?.ssgPageRoutes?.length) {\n const totalRoutes = pageInfo.ssgPageRoutes.length\n const previewPages = totalRoutes === 4 ? 4 : 3\n const contSymbol = i === arr.length - 1 ? ' ' : '├'\n\n const routes = pageInfo.ssgPageRoutes.slice(0, previewPages)\n if (totalRoutes > previewPages) {\n const remaining = totalRoutes - previewPages\n routes.push(`[+${remaining} more paths]`)\n }\n\n routes.forEach((slug, index, { length }) => {\n const innerSymbol = index === length - 1 ? '└' : '├'\n messages.push([`${contSymbol} ${innerSymbol} ${slug}`, '', ''])\n })\n }\n })\n\n const sharedFilesSize = sizeData.sizeCommonFiles\n const sharedFiles = sizeData.sizeCommonFile\n\n messages.push([\n '+ First Load JS shared by all',\n getPrettySize(sharedFilesSize),\n '',\n ])\n const sharedFileKeys = Object.keys(sharedFiles)\n const sharedCssFiles: string[] = []\n ;[\n ...sharedFileKeys\n .filter((file) => {\n if (file.endsWith('.css')) {\n sharedCssFiles.push(file)\n return false\n }\n return true\n })\n .map((e) => e.replace(buildId, '<buildId>'))\n .sort(),\n ...sharedCssFiles.map((e) => e.replace(buildId, '<buildId>')).sort(),\n ].forEach((fileName, index, { length }) => {\n const innerSymbol = index === length - 1 ? '└' : '├'\n\n const originalName = fileName.replace('<buildId>', buildId)\n const cleanName = getCleanName(fileName)\n\n messages.push([\n ` ${innerSymbol} ${cleanName}`,\n prettyBytes(sharedFiles[originalName]),\n '',\n ])\n })\n\n console.log(\n textTable(messages, {\n align: ['l', 'l', 'r'],\n stringLength: (str) => stripAnsi(str).length,\n })\n )\n\n console.log()\n console.log(\n textTable(\n [\n [\n 'λ',\n serverless ? '(Lambda)' : '(Server)',\n `server-side renders at runtime (uses ${chalk.cyan(\n 'getInitialProps'\n )} or ${chalk.cyan('getServerSideProps')})`,\n ],\n [\n '○',\n '(Static)',\n 'automatically rendered as static HTML (uses no initial props)',\n ],\n [\n '●',\n '(SSG)',\n `automatically generated as static HTML + JSON (uses ${chalk.cyan(\n 'getStaticProps'\n )})`,\n ],\n [\n '',\n '(ISR)',\n `incremental static regeneration (uses revalidate in ${chalk.cyan(\n 'getStaticProps'\n )})`,\n ],\n ] as [string, string, string][],\n {\n align: ['l', 'l', 'l'],\n stringLength: (str) => stripAnsi(str).length,\n }\n )\n )\n\n console.log()\n}\n\nexport function printCustomRoutes({\n redirects,\n rewrites,\n headers,\n}: CustomRoutes) {\n const printRoutes = (\n routes: Redirect[] | Rewrite[] | Header[],\n type: 'Redirects' | 'Rewrites' | 'Headers'\n ) => {\n const isRedirects = type === 'Redirects'\n const isHeaders = type === 'Headers'\n console.log(chalk.underline(type))\n console.log()\n\n /*\n ┌ source\n ├ permanent/statusCode\n └ destination\n */\n const routesStr = (routes as any[])\n .map((route: { source: string }) => {\n let routeStr = `┌ source: ${route.source}\\n`\n\n if (!isHeaders) {\n const r = route as Rewrite\n routeStr += `${isRedirects ? '├' : '└'} destination: ${\n r.destination\n }\\n`\n }\n if (isRedirects) {\n const r = route as Redirect\n routeStr += `└ ${\n r.statusCode\n ? `status: ${r.statusCode}`\n : `permanent: ${r.permanent}`\n }\\n`\n }\n\n if (isHeaders) {\n const r = route as Header\n routeStr += `└ headers:\\n`\n\n for (let i = 0; i < r.headers.length; i++) {\n const header = r.headers[i]\n const last = i === headers.length - 1\n\n routeStr += ` ${last ? '└' : '├'} ${header.key}: ${header.value}\\n`\n }\n }\n\n return routeStr\n })\n .join('\\n')\n\n console.log(routesStr, '\\n')\n }\n\n if (redirects.length) {\n printRoutes(redirects, 'Redirects')\n }\n if (headers.length) {\n printRoutes(headers, 'Headers')\n }\n\n const combinedRewrites = [\n ...rewrites.beforeFiles,\n ...rewrites.afterFiles,\n ...rewrites.fallback,\n ]\n if (combinedRewrites.length) {\n printRoutes(combinedRewrites, 'Rewrites')\n }\n}\n\ntype ComputeManifestShape = {\n commonFiles: string[]\n uniqueFiles: string[]\n sizeUniqueFiles: { [file: string]: number }\n sizeCommonFile: { [file: string]: number }\n sizeCommonFiles: number\n}\n\nlet cachedBuildManifest: BuildManifest | undefined\n\nlet lastCompute: ComputeManifestShape | undefined\nlet lastComputePageInfo: boolean | undefined\n\nexport async function computeFromManifest(\n manifest: BuildManifest,\n distPath: string,\n gzipSize: boolean = true,\n pageInfos?: Map<string, PageInfo>\n): Promise<ComputeManifestShape> {\n if (\n Object.is(cachedBuildManifest, manifest) &&\n lastComputePageInfo === !!pageInfos\n ) {\n return lastCompute!\n }\n\n let expected = 0\n const files = new Map<string, number>()\n Object.keys(manifest.pages).forEach((key) => {\n if (pageInfos) {\n const pageInfo = pageInfos.get(key)\n // don't include AMP pages since they don't rely on shared bundles\n // AMP First pages are not under the pageInfos key\n if (pageInfo?.isHybridAmp) {\n return\n }\n }\n\n ++expected\n manifest.pages[key].forEach((file) => {\n if (key === '/_app') {\n files.set(file, Infinity)\n } else if (files.has(file)) {\n files.set(file, files.get(file)! + 1)\n } else {\n files.set(file, 1)\n }\n })\n })\n\n const getSize = gzipSize ? fsStatGzip : fsStat\n\n const commonFiles = [...files.entries()]\n .filter(([, len]) => len === expected || len === Infinity)\n .map(([f]) => f)\n const uniqueFiles = [...files.entries()]\n .filter(([, len]) => len === 1)\n .map(([f]) => f)\n\n let stats: [string, number][]\n try {\n stats = await Promise.all(\n commonFiles.map(\n async (f) =>\n [f, await getSize(path.join(distPath, f))] as [string, number]\n )\n )\n } catch (_) {\n stats = []\n }\n\n let uniqueStats: [string, number][]\n try {\n uniqueStats = await Promise.all(\n uniqueFiles.map(\n async (f) =>\n [f, await getSize(path.join(distPath, f))] as [string, number]\n )\n )\n } catch (_) {\n uniqueStats = []\n }\n\n lastCompute = {\n commonFiles,\n uniqueFiles,\n sizeUniqueFiles: uniqueStats.reduce(\n (obj, n) => Object.assign(obj, { [n[0]]: n[1] }),\n {}\n ),\n sizeCommonFile: stats.reduce(\n (obj, n) => Object.assign(obj, { [n[0]]: n[1] }),\n {}\n ),\n sizeCommonFiles: stats.reduce((size, [f, stat]) => {\n if (f.endsWith('.css')) return size\n return size + stat\n }, 0),\n }\n\n cachedBuildManifest = manifest\n lastComputePageInfo = !!pageInfos\n return lastCompute!\n}\n\nexport function difference<T>(main: T[] | Set<T>, sub: T[] | Set<T>): T[] {\n const a = new Set(main)\n const b = new Set(sub)\n return [...a].filter((x) => !b.has(x))\n}\n\nfunction intersect<T>(main: T[], sub: T[]): T[] {\n const a = new Set(main)\n const b = new Set(sub)\n return [...new Set([...a].filter((x) => b.has(x)))]\n}\n\nfunction sum(a: number[]): number {\n return a.reduce((size, stat) => size + stat, 0)\n}\n\nexport async function getJsPageSizeInKb(\n page: string,\n distPath: string,\n buildManifest: BuildManifest,\n gzipSize: boolean = true,\n computedManifestData?: ComputeManifestShape\n): Promise<[number, number]> {\n const data =\n computedManifestData ||\n (await computeFromManifest(buildManifest, distPath, gzipSize))\n\n const fnFilterJs = (entry: string) => entry.endsWith('.js')\n\n const pageFiles = (\n buildManifest.pages[denormalizePagePath(page)] || []\n ).filter(fnFilterJs)\n const appFiles = (buildManifest.pages['/_app'] || []).filter(fnFilterJs)\n\n const fnMapRealPath = (dep: string) => `${distPath}/${dep}`\n\n const allFilesReal = [...new Set([...pageFiles, ...appFiles])].map(\n fnMapRealPath\n )\n const selfFilesReal = difference(\n intersect(pageFiles, data.uniqueFiles),\n data.commonFiles\n ).map(fnMapRealPath)\n\n const getSize = gzipSize ? fsStatGzip : fsStat\n\n try {\n // Doesn't use `Promise.all`, as we'd double compute duplicate files. This\n // function is memoized, so the second one will instantly resolve.\n const allFilesSize = sum(await Promise.all(allFilesReal.map(getSize)))\n const selfFilesSize = sum(await Promise.all(selfFilesReal.map(getSize)))\n\n return [selfFilesSize, allFilesSize]\n } catch (_) {}\n return [-1, -1]\n}\n\nexport async function buildStaticPaths(\n page: string,\n getStaticPaths: GetStaticPaths,\n locales?: string[],\n defaultLocale?: string\n): Promise<\n Omit<UnwrapPromise<ReturnType<GetStaticPaths>>, 'paths'> & {\n paths: string[]\n encodedPaths: string[]\n }\n> {\n const prerenderPaths = new Set<string>()\n const encodedPrerenderPaths = new Set<string>()\n const _routeRegex = getRouteRegex(page)\n const _routeMatcher = getRouteMatcher(_routeRegex)\n\n // Get the default list of allowed params.\n const _validParamKeys = Object.keys(_routeMatcher(page))\n\n const staticPathsResult = await getStaticPaths({ locales, defaultLocale })\n\n const expectedReturnVal =\n `Expected: { paths: [], fallback: boolean }\\n` +\n `See here for more info: https://nextjs.org/docs/messages/invalid-getstaticpaths-value`\n\n if (\n !staticPathsResult ||\n typeof staticPathsResult !== 'object' ||\n Array.isArray(staticPathsResult)\n ) {\n throw new Error(\n `Invalid value returned from getStaticPaths in ${page}. Received ${typeof staticPathsResult} ${expectedReturnVal}`\n )\n }\n\n const invalidStaticPathKeys = Object.keys(staticPathsResult).filter(\n (key) => !(key === 'paths' || key === 'fallback')\n )\n\n if (invalidStaticPathKeys.length > 0) {\n throw new Error(\n `Extra keys returned from getStaticPaths in ${page} (${invalidStaticPathKeys.join(\n ', '\n )}) ${expectedReturnVal}`\n )\n }\n\n if (\n !(\n typeof staticPathsResult.fallback === 'boolean' ||\n staticPathsResult.fallback === 'blocking'\n )\n ) {\n throw new Error(\n `The \\`fallback\\` key must be returned from getStaticPaths in ${page}.\\n` +\n expectedReturnVal\n )\n }\n\n const toPrerender = staticPathsResult.paths\n\n if (!Array.isArray(toPrerender)) {\n throw new Error(\n `Invalid \\`paths\\` value returned from getStaticPaths in ${page}.\\n` +\n `\\`paths\\` must be an array of strings or objects of shape { params: [key: string]: string }`\n )\n }\n\n toPrerender.forEach((entry) => {\n // For a string-provided path, we must make sure it matches the dynamic\n // route.\n if (typeof entry === 'string') {\n entry = removePathTrailingSlash(entry)\n\n const localePathResult = normalizeLocalePath(entry, locales)\n let cleanedEntry = entry\n\n if (localePathResult.detectedLocale) {\n cleanedEntry = entry.substr(localePathResult.detectedLocale.length + 1)\n } else if (defaultLocale) {\n entry = `/${defaultLocale}${entry}`\n }\n\n const result = _routeMatcher(cleanedEntry)\n if (!result) {\n throw new Error(\n `The provided path \\`${cleanedEntry}\\` does not match the page: \\`${page}\\`.`\n )\n }\n\n // If leveraging the string paths variant the entry should already be\n // encoded so we decode the segments ensuring we only escape path\n // delimiters\n prerenderPaths.add(\n entry\n .split('/')\n .map((segment) =>\n escapePathDelimiters(decodeURIComponent(segment), true)\n )\n .join('/')\n )\n encodedPrerenderPaths.add(entry)\n }\n // For the object-provided path, we must make sure it specifies all\n // required keys.\n else {\n const invalidKeys = Object.keys(entry).filter(\n (key) => key !== 'params' && key !== 'locale'\n )\n\n if (invalidKeys.length) {\n throw new Error(\n `Additional keys were returned from \\`getStaticPaths\\` in page \"${page}\". ` +\n `URL Parameters intended for this dynamic route must be nested under the \\`params\\` key, i.e.:` +\n `\\n\\n\\treturn { params: { ${_validParamKeys\n .map((k) => `${k}: ...`)\n .join(', ')} } }` +\n `\\n\\nKeys that need to be moved: ${invalidKeys.join(', ')}.\\n`\n )\n }\n\n const { params = {} } = entry\n let builtPage = page\n let encodedBuiltPage = page\n\n _validParamKeys.forEach((validParamKey) => {\n const { repeat, optional } = _routeRegex.groups[validParamKey]\n let paramValue = params[validParamKey]\n if (\n optional &&\n params.hasOwnProperty(validParamKey) &&\n (paramValue === null ||\n paramValue === undefined ||\n (paramValue as any) === false)\n ) {\n paramValue = []\n }\n if (\n (repeat && !Array.isArray(paramValue)) ||\n (!repeat && typeof paramValue !== 'string')\n ) {\n throw new Error(\n `A required parameter (${validParamKey}) was not provided as ${\n repeat ? 'an array' : 'a string'\n } in getStaticPaths for ${page}`\n )\n }\n let replaced = `[${repeat ? '...' : ''}${validParamKey}]`\n if (optional) {\n replaced = `[${replaced}]`\n }\n builtPage = builtPage\n .replace(\n replaced,\n repeat\n ? (paramValue as string[])\n .map((segment) => escapePathDelimiters(segment, true))\n .join('/')\n : escapePathDelimiters(paramValue as string, true)\n )\n .replace(/(?!^)\\/$/, '')\n\n encodedBuiltPage = encodedBuiltPage\n .replace(\n replaced,\n repeat\n ? (paramValue as string[]).map(encodeURIComponent).join('/')\n : encodeURIComponent(paramValue as string)\n )\n .replace(/(?!^)\\/$/, '')\n })\n\n if (entry.locale && !locales?.includes(entry.locale)) {\n throw new Error(\n `Invalid locale returned from getStaticPaths for ${page}, the locale ${entry.locale} is not specified in next.config.js`\n )\n }\n const curLocale = entry.locale || defaultLocale || ''\n\n prerenderPaths.add(\n `${curLocale ? `/${curLocale}` : ''}${\n curLocale && builtPage === '/' ? '' : builtPage\n }`\n )\n encodedPrerenderPaths.add(\n `${curLocale ? `/${curLocale}` : ''}${\n curLocale && encodedBuiltPage === '/' ? '' : encodedBuiltPage\n }`\n )\n }\n })\n\n return {\n paths: [...prerenderPaths],\n fallback: staticPathsResult.fallback,\n encodedPaths: [...encodedPrerenderPaths],\n }\n}\n\nexport async function isPageStatic(\n page: string,\n distDir: string,\n serverless: boolean,\n runtimeEnvConfig: any,\n locales?: string[],\n defaultLocale?: string,\n parentId?: any\n): Promise<{\n isStatic?: boolean\n isAmpOnly?: boolean\n isHybridAmp?: boolean\n hasServerProps?: boolean\n hasStaticProps?: boolean\n prerenderRoutes?: string[]\n encodedPrerenderRoutes?: string[]\n prerenderFallback?: boolean | 'blocking'\n isNextImageImported?: boolean\n}> {\n const isPageStaticSpan = trace('is-page-static-utils', parentId)\n return isPageStaticSpan.traceAsyncFn(async () => {\n try {\n require('../next-server/lib/runtime-config').setConfig(runtimeEnvConfig)\n const components = await loadComponents(distDir, page, serverless)\n const mod = components.ComponentMod\n const Comp = mod.default || mod\n\n if (!Comp || !isValidElementType(Comp) || typeof Comp === 'string') {\n throw new Error('INVALID_DEFAULT_EXPORT')\n }\n\n const hasGetInitialProps = !!(Comp as any).getInitialProps\n const hasStaticProps = !!(await mod.getStaticProps)\n const hasStaticPaths = !!(await mod.getStaticPaths)\n const hasServerProps = !!(await mod.getServerSideProps)\n const hasLegacyServerProps = !!(await mod.unstable_getServerProps)\n const hasLegacyStaticProps = !!(await mod.unstable_getStaticProps)\n const hasLegacyStaticPaths = !!(await mod.unstable_getStaticPaths)\n const hasLegacyStaticParams = !!(await mod.unstable_getStaticParams)\n\n if (hasLegacyStaticParams) {\n throw new Error(\n `unstable_getStaticParams was replaced with getStaticPaths. Please update your code.`\n )\n }\n\n if (hasLegacyStaticPaths) {\n throw new Error(\n `unstable_getStaticPaths was replaced with getStaticPaths. Please update your code.`\n )\n }\n\n if (hasLegacyStaticProps) {\n throw new Error(\n `unstable_getStaticProps was replaced with getStaticProps. Please update your code.`\n )\n }\n\n if (hasLegacyServerProps) {\n throw new Error(\n `unstable_getServerProps was replaced with getServerSideProps. Please update your code.`\n )\n }\n\n // A page cannot be prerendered _and_ define a data requirement. That's\n // contradictory!\n if (hasGetInitialProps && hasStaticProps) {\n throw new Error(SSG_GET_INITIAL_PROPS_CONFLICT)\n }\n\n if (hasGetInitialProps && hasServerProps) {\n throw new Error(SERVER_PROPS_GET_INIT_PROPS_CONFLICT)\n }\n\n if (hasStaticProps && hasServerProps) {\n throw new Error(SERVER_PROPS_SSG_CONFLICT)\n }\n\n const pageIsDynamic = isDynamicRoute(page)\n // A page cannot have static parameters if it is not a dynamic page.\n if (hasStaticProps && hasStaticPaths && !pageIsDynamic) {\n throw new Error(\n `getStaticPaths can only be used with dynamic pages, not '${page}'.` +\n `\\nLearn more: https://nextjs.org/docs/routing/dynamic-routes`\n )\n }\n\n if (hasStaticProps && pageIsDynamic && !hasStaticPaths) {\n throw new Error(\n `getStaticPaths is required for dynamic SSG pages and is missing for '${page}'.` +\n `\\nRead more: https://nextjs.org/docs/messages/invalid-getstaticpaths-value`\n )\n }\n\n let prerenderRoutes: Array<string> | undefined\n let encodedPrerenderRoutes: Array<string> | undefined\n let prerenderFallback: boolean | 'blocking' | undefined\n if (hasStaticProps && hasStaticPaths) {\n ;({\n paths: prerenderRoutes,\n fallback: prerenderFallback,\n encodedPaths: encodedPrerenderRoutes,\n } = await buildStaticPaths(\n page,\n mod.getStaticPaths,\n locales,\n defaultLocale\n ))\n }\n\n const isNextImageImported = (global as any).__NEXT_IMAGE_IMPORTED\n const config = mod.config || {}\n return {\n isStatic: !hasStaticProps && !hasGetInitialProps && !hasServerProps,\n isHybridAmp: config.amp === 'hybrid',\n isAmpOnly: config.amp === true,\n prerenderRoutes,\n prerenderFallback,\n encodedPrerenderRoutes,\n hasStaticProps,\n hasServerProps,\n isNextImageImported,\n }\n } catch (err) {\n if (err.code === 'MODULE_NOT_FOUND') return {}\n throw err\n }\n })\n}\n\nexport async function hasCustomGetInitialProps(\n page: string,\n distDir: string,\n isLikeServerless: boolean,\n runtimeEnvConfig: any,\n checkingApp: boolean\n): Promise<boolean> {\n require('../next-server/lib/runtime-config').setConfig(runtimeEnvConfig)\n\n const components = await loadComponents(distDir, page, isLikeServerless)\n let mod = components.ComponentMod\n\n if (checkingApp) {\n mod = (await mod._app) || mod.default || mod\n } else {\n mod = mod.default || mod\n }\n mod = await mod\n return mod.getInitialProps !== mod.origGetInitialProps\n}\n\nexport async function getNamedExports(\n page: string,\n distDir: string,\n isLikeServerless: boolean,\n runtimeEnvConfig: any\n): Promise<Array<string>> {\n require('../next-server/lib/runtime-config').setConfig(runtimeEnvConfig)\n const components = await loadComponents(distDir, page, isLikeServerless)\n let mod = components.ComponentMod\n\n return Object.keys(mod)\n}\n\nexport function detectConflictingPaths(\n combinedPages: string[],\n ssgPages: Set<string>,\n additionalSsgPaths: Map<string, string[]>\n) {\n const conflictingPaths = new Map<\n string,\n Array<{\n path: string\n page: string\n }>\n >()\n\n const dynamicSsgPages = [...ssgPages].filter((page) => isDynamicRoute(page))\n\n additionalSsgPaths.forEach((paths, pathsPage) => {\n paths.forEach((curPath) => {\n const lowerPath = curPath.toLowerCase()\n let conflictingPage = combinedPages.find(\n (page) => page.toLowerCase() === lowerPath\n )\n\n if (conflictingPage) {\n conflictingPaths.set(lowerPath, [\n { path: curPath, page: pathsPage },\n { path: conflictingPage, page: conflictingPage },\n ])\n } else {\n let conflictingPath: string | undefined\n\n conflictingPage = dynamicSsgPages.find((page) => {\n if (page === pathsPage) return false\n\n conflictingPath = additionalSsgPaths\n .get(page)\n ?.find((compPath) => compPath.toLowerCase() === lowerPath)\n return conflictingPath\n })\n\n if (conflictingPage && conflictingPath) {\n conflictingPaths.set(lowerPath, [\n { path: curPath, page: pathsPage },\n { path: conflictingPath, page: conflictingPage },\n ])\n }\n }\n })\n })\n\n if (conflictingPaths.size > 0) {\n let conflictingPathsOutput = ''\n\n conflictingPaths.forEach((pathItems) => {\n pathItems.forEach((pathItem, idx) => {\n const isDynamic = pathItem.page !== pathItem.path\n\n if (idx > 0) {\n conflictingPathsOutput += 'conflicts with '\n }\n\n conflictingPathsOutput += `path: \"${pathItem.path}\"${\n isDynamic ? ` from page: \"${pathItem.page}\" ` : ' '\n }`\n })\n conflictingPathsOutput += '\\n'\n })\n\n Log.error(\n 'Conflicting paths returned from getStaticPaths, paths must unique per page.\\n' +\n 'See more info here: https://nextjs.org/docs/messages/conflicting-ssg-paths\\n\\n' +\n conflictingPathsOutput\n )\n process.exit(1)\n }\n}\n\nexport function getCssFilePaths(buildManifest: BuildManifest): string[] {\n const cssFiles = new Set<string>()\n Object.values(buildManifest.pages).forEach((files) => {\n files.forEach((file) => {\n if (file.endsWith('.css')) {\n cssFiles.add(file)\n }\n })\n })\n\n return [...cssFiles]\n}\n"]}
\ No newline at end of file
diff --git a/node_modules/next/dist/build/webpack-config.d.ts b/node_modules/next/dist/build/webpack-config.d.ts
index ff9a394..e591632 100644
--- a/node_modules/next/dist/build/webpack-config.d.ts
+++ b/node_modules/next/dist/build/webpack-config.d.ts
@@ -3,12 +3,12 @@ import { CustomRoutes } from '../lib/load-custom-routes.js';
import { NextConfig } from '../next-server/server/config';
import { WebpackEntrypoints } from './entries';
export declare function attachReactRefresh(webpackConfig: webpack.Configuration, targetLoader: webpack.RuleSetUseItem): void;
-export default function getBaseWebpackConfig(dir: string, { buildId, config, dev, isServer, pagesDir, target, reactProductionProfiling, entrypoints, rewrites, isDevFallback, }: {
+export default function getBaseWebpackConfig(dir: string, { buildId, config, dev, isServer, pagesDirs, target, reactProductionProfiling, entrypoints, rewrites, isDevFallback, }: {
buildId: string;
config: NextConfig;
dev?: boolean;
isServer?: boolean;
- pagesDir: string;
+ pagesDirs: string[];
target?: string;
reactProductionProfiling?: boolean;
entrypoints: WebpackEntrypoints;
diff --git a/node_modules/next/dist/build/webpack-config.js b/node_modules/next/dist/build/webpack-config.js
index 0f0bd3a..46b8683 100644
--- a/node_modules/next/dist/build/webpack-config.js
+++ b/node_modules/next/dist/build/webpack-config.js
@@ -9,10 +9,10 @@ rule.use.splice(idx,0,reactRefreshLoader);}});if(injections){Log.info(`automatic
// between ESM and CJS in a package
// Otherwise combined ESM+CJS packages will never be external
// as resolving mismatch would lead to opt-out from being external.
-dependencyType:'commonjs',symlinks:true};const NODE_RESOLVE_OPTIONS={dependencyType:'commonjs',modules:['node_modules'],alias:false,fallback:false,exportsFields:['exports'],importsFields:['imports'],conditionNames:['node','require','module'],descriptionFiles:['package.json'],extensions:['.js','.json','.node'],enforceExtensions:false,symlinks:true,mainFields:['main'],mainFiles:['index'],roots:[],fullySpecified:false,preferRelative:false,preferAbsolute:false,restrictions:[]};async function getBaseWebpackConfig(dir,{buildId,config,dev=false,isServer=false,pagesDir,target='server',reactProductionProfiling=false,entrypoints,rewrites,isDevFallback=false}){var _semver$coerce,_jsConfig,_jsConfig$compilerOpt,_config$conformance,_config$conformance$D,_config$i18n,_jsConfig2,_jsConfig2$compilerOp,_webpackConfig$module2,_webpackConfig$module3,_webpackConfig$module4;const hasRewrites=rewrites.beforeFiles.length>0||rewrites.afterFiles.length>0||rewrites.fallback.length>0;const hasReactRefresh=dev&&!isServer;const reactDomVersion=await(0,_getPackageVersion.getPackageVersion)({cwd:dir,name:'react-dom'});const hasReact18=Boolean(reactDomVersion)&&(_semver.default.gte(reactDomVersion,'18.0.0')||((_semver$coerce=_semver.default.coerce(reactDomVersion))==null?void 0:_semver$coerce.version)==='18.0.0');const hasReactPrerelease=Boolean(reactDomVersion)&&_semver.default.prerelease(reactDomVersion)!=null;const hasReactRoot=config.experimental.reactRoot||hasReact18;// Only inform during one of the builds
+dependencyType:'commonjs',symlinks:true};const NODE_RESOLVE_OPTIONS={dependencyType:'commonjs',modules:['node_modules'],alias:false,fallback:false,exportsFields:['exports'],importsFields:['imports'],conditionNames:['node','require','module'],descriptionFiles:['package.json'],extensions:['.js','.json','.node'],enforceExtensions:false,symlinks:true,mainFields:['main'],mainFiles:['index'],roots:[],fullySpecified:false,preferRelative:false,preferAbsolute:false,restrictions:[]};async function getBaseWebpackConfig(dir,{buildId,config,dev=false,isServer=false,pagesDirs,target='server',reactProductionProfiling=false,entrypoints,rewrites,isDevFallback=false}){var _semver$coerce,_jsConfig,_jsConfig$compilerOpt,_config$conformance,_config$conformance$D,_config$i18n,_jsConfig2,_jsConfig2$compilerOp,_webpackConfig$module2,_webpackConfig$module3,_webpackConfig$module4;const hasRewrites=rewrites.beforeFiles.length>0||rewrites.afterFiles.length>0||rewrites.fallback.length>0;const hasReactRefresh=dev&&!isServer;const reactDomVersion=await(0,_getPackageVersion.getPackageVersion)({cwd:dir,name:'react-dom'});const hasReact18=Boolean(reactDomVersion)&&(_semver.default.gte(reactDomVersion,'18.0.0')||((_semver$coerce=_semver.default.coerce(reactDomVersion))==null?void 0:_semver$coerce.version)==='18.0.0');const hasReactPrerelease=Boolean(reactDomVersion)&&_semver.default.prerelease(reactDomVersion)!=null;const hasReactRoot=config.experimental.reactRoot||hasReact18;// Only inform during one of the builds
if(!isServer){if(hasReactRoot){Log.info('Using the createRoot API for React');}if(hasReactPrerelease){Log.warn(`You are using an unsupported prerelease of 'react-dom' which may cause `+`unexpected or broken application behavior. Continue at your own risk.`);}}const babelConfigFile=await['.babelrc','.babelrc.json','.babelrc.js','.babelrc.mjs','.babelrc.cjs','babel.config.js','babel.config.json','babel.config.mjs','babel.config.cjs'].reduce(async(memo,filename)=>{const configFilePath=_path.default.join(dir,filename);return(await memo)||((await(0,_fileExists.fileExists)(configFilePath))?configFilePath:undefined);},Promise.resolve(undefined));const distDir=_path.default.join(dir,config.distDir);// Webpack 5 can use the faster babel loader, webpack 5 has built-in caching for loaders
// For webpack 4 the old loader is used as it has external caching
-const babelLoader=_webpack.isWebpack5?require.resolve('./babel/loader/index'):'next-babel-loader';const defaultLoaders={babel:{loader:babelLoader,options:{configFile:babelConfigFile,isServer,distDir,pagesDir,cwd:dir,// Webpack 5 has a built-in loader cache
+const babelLoader=_webpack.isWebpack5?require.resolve('./babel/loader/index'):'next-babel-loader';const defaultLoaders={babel:{loader:babelLoader,options:{configFile:babelConfigFile,isServer,distDir,pagesDirs,cwd:dir,// Webpack 5 has a built-in loader cache
cache:!_webpack.isWebpack5,development:dev,hasReactRefresh,hasJsxRuntime:true}},// Backwards compat
hotSelfAccept:{loader:'noop-loader'}};const babelIncludeRegexes=[/next[\\/]dist[\\/]next-server[\\/]lib/,/next[\\/]dist[\\/]client/,/next[\\/]dist[\\/]pages/,/[\\/](strip-ansi|ansi-regex)[\\/]/];// Support for NODE_PATH
const nodePathList=(process.env.NODE_PATH||'').split(process.platform==='win32'?';':':').filter(p=>!!p);const isServerless=target==='serverless';const isServerlessTrace=target==='experimental-serverless-trace';// Intentionally not using isTargetLikeServerless helper
@@ -20,7 +20,7 @@ const isLikeServerless=isServerless||isServerlessTrace;const outputDir=isLikeSer
'main.js':[],...(dev?{[_constants2.CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH]:require.resolve(`@next/react-refresh-utils/runtime`),[_constants2.CLIENT_STATIC_FILES_RUNTIME_AMP]:`./`+(0,_path.relative)(dir,(0,_path.join)(_constants.NEXT_PROJECT_ROOT_DIST_CLIENT,'dev','amp-dev')).replace(/\\/g,'/')}:{}),[_constants2.CLIENT_STATIC_FILES_RUNTIME_MAIN]:`./`+_path.default.relative(dir,_path.default.join(_constants.NEXT_PROJECT_ROOT_DIST_CLIENT,dev?`next-dev.js`:'next.js')).replace(/\\/g,'/'),[_constants2.CLIENT_STATIC_FILES_RUNTIME_POLYFILLS]:_path.default.join(_constants.NEXT_PROJECT_ROOT_DIST_CLIENT,'polyfills.js')}:undefined;let typeScriptPath;try{typeScriptPath=require.resolve('typescript',{paths:[dir]});}catch(_){}const tsConfigPath=_path.default.join(dir,'tsconfig.json');const useTypeScript=Boolean(typeScriptPath&&(await(0,_fileExists.fileExists)(tsConfigPath)));let jsConfig;// jsconfig is a subset of tsconfig
if(useTypeScript){const ts=await Promise.resolve(`${typeScriptPath}`).then(s=>_interopRequireWildcard(require(s)));const tsConfig=await(0,_getTypeScriptConfiguration.getTypeScriptConfiguration)(ts,tsConfigPath,true);jsConfig={compilerOptions:tsConfig.options};}const jsConfigPath=_path.default.join(dir,'jsconfig.json');if(!useTypeScript&&(await(0,_fileExists.fileExists)(jsConfigPath))){jsConfig=parseJsonFile(jsConfigPath);}let resolvedBaseUrl;if((_jsConfig=jsConfig)!=null&&(_jsConfig$compilerOpt=_jsConfig.compilerOptions)!=null&&_jsConfig$compilerOpt.baseUrl){resolvedBaseUrl=_path.default.resolve(dir,jsConfig.compilerOptions.baseUrl);}function getReactProfilingInProduction(){if(reactProductionProfiling){return{'react-dom$':'react-dom/profiling','scheduler/tracing':'scheduler/tracing-profiling'};}}const clientResolveRewrites=require.resolve('../next-server/lib/router/utils/resolve-rewrites');const clientResolveRewritesNoop=require.resolve('../next-server/lib/router/utils/resolve-rewrites-noop');const resolveConfig={// Disable .mjs for node_modules bundling
extensions:isServer?['.js','.mjs',...(useTypeScript?['.tsx','.ts']:[]),'.jsx','.json','.wasm']:['.mjs','.js',...(useTypeScript?['.tsx','.ts']:[]),'.jsx','.json','.wasm'],modules:['node_modules',...nodePathList// Support for NODE_PATH environment variable
-],alias:{next:_constants.NEXT_PROJECT_ROOT,[_constants.PAGES_DIR_ALIAS]:pagesDir,[_constants.DOT_NEXT_ALIAS]:distDir,...getOptimizedAliases(isServer),...getReactProfilingInProduction(),[clientResolveRewrites]:hasRewrites?clientResolveRewrites:// With webpack 5 an alias can be pointed to false to noop
+],alias:{next:_constants.NEXT_PROJECT_ROOT,[_constants.PAGES_DIR_ALIAS]:pagesDirs,[_constants.DOT_NEXT_ALIAS]:distDir,...getOptimizedAliases(isServer),...getReactProfilingInProduction(),[clientResolveRewrites]:hasRewrites?clientResolveRewrites:// With webpack 5 an alias can be pointed to false to noop
_webpack.isWebpack5?false:clientResolveRewritesNoop},...(_webpack.isWebpack5&&!isServer?{// Full list of old polyfills is accessible here:
// https://github.com/webpack/webpack/blob/2a0536cf510768111a3a6dceeb14cb79b9f59273/lib/ModuleNotFoundError.js#L13-L42
fallback:{assert:require.resolve('assert/'),buffer:require.resolve('buffer/'),constants:require.resolve('constants-browserify'),crypto:require.resolve('crypto-browserify'),domain:require.resolve('domain-browser'),http:require.resolve('stream-http'),https:require.resolve('https-browserify'),os:require.resolve('os-browserify/browser'),path:require.resolve('path-browserify'),punycode:require.resolve('punycode'),process:require.resolve('process/browser'),// Handled in separate alias
@@ -44,7 +44,7 @@ chunks:_webpack.isWebpack5?chunk=>!/^(polyfills|main|pages\/_app)$/.test(chunk.n
test:/(?<!node_modules.*)[\\/]node_modules[\\/](react|react-dom|scheduler|prop-types|use-subscription)[\\/]/,priority:40,// Don't let webpack eliminate this chunk (prevents this chunk from
// becoming a part of the commons chunk)
enforce:true},lib:{test(module){return module.size()>160000&&/node_modules[/\\]/.test(module.nameForCondition()||'');},name(module){const hash=_crypto.default.createHash('sha1');if(isModuleCSS(module)){module.updateHash(hash);}else{if(!module.libIdent){throw new Error(`Encountered unknown module type: ${module.type}. Please open an issue.`);}hash.update(module.libIdent({context:dir}));}return hash.digest('hex').substring(0,8);},priority:30,minChunks:1,reuseExistingChunk:true},commons:{name:'commons',minChunks:totalPages,priority:20},...(_webpack.isWebpack5?undefined:{default:false,vendors:false,shared:{name(module,chunks){return _crypto.default.createHash('sha1').update(chunks.reduce((acc,chunk)=>{return acc+chunk.name;},'')).digest('hex')+(isModuleCSS(module)?'_CSS':'');},priority:10,minChunks:2,reuseExistingChunk:true}})},maxInitialRequests:25,minSize:20000}};// Select appropriate SplitChunksPlugin config for this build
-let splitChunksConfig;if(dev){splitChunksConfig=_webpack.isWebpack5?false:splitChunksConfigs.dev;}else{splitChunksConfig=splitChunksConfigs.prodGranular;}const crossOrigin=config.crossOrigin;let customAppFile=await(0,_findPageFile.findPageFile)(pagesDir,'/_app',config.pageExtensions);if(customAppFile){customAppFile=_path.default.resolve(_path.default.join(pagesDir,customAppFile));}const conformanceConfig=Object.assign({ReactSyncScriptsConformanceCheck:{enabled:true},MinificationConformanceCheck:{enabled:true},DuplicatePolyfillsConformanceCheck:{enabled:true,BlockedAPIToBePolyfilled:Object.assign([],['fetch'],((_config$conformance=config.conformance)==null?void 0:(_config$conformance$D=_config$conformance.DuplicatePolyfillsConformanceCheck)==null?void 0:_config$conformance$D.BlockedAPIToBePolyfilled)||[])},GranularChunksConformanceCheck:{enabled:true}},config.conformance);async function handleExternals(context,request,getResolve){// We need to externalize internal requests for files intended to
+let splitChunksConfig;if(dev){splitChunksConfig=_webpack.isWebpack5?false:splitChunksConfigs.dev;}else{splitChunksConfig=splitChunksConfigs.prodGranular;}const crossOrigin=config.crossOrigin;let customApp=await(0,_findPageFile.findPageFile)(pagesDirs,'/_app',config.pageExtensions);let customAppFile=null;if(customApp){customAppFile=_path.default.resolve(_path.default.join(customApp.pageBase,customApp.pagePath));}const conformanceConfig=Object.assign({ReactSyncScriptsConformanceCheck:{enabled:true},MinificationConformanceCheck:{enabled:true},DuplicatePolyfillsConformanceCheck:{enabled:true,BlockedAPIToBePolyfilled:Object.assign([],['fetch'],((_config$conformance=config.conformance)==null?void 0:(_config$conformance$D=_config$conformance.DuplicatePolyfillsConformanceCheck)==null?void 0:_config$conformance$D.BlockedAPIToBePolyfilled)||[])},GranularChunksConformanceCheck:{enabled:true}},config.conformance);async function handleExternals(context,request,getResolve){// We need to externalize internal requests for files intended to
// not be bundled.
const isLocal=request.startsWith('.')||// Always check for unix-style path, as webpack sometimes
// normalizes as posix.
@@ -108,7 +108,9 @@ emacsLockfilePattern]},output:{...(_webpack.isWebpack5?{environment:{arrowFuncti
// auto which doesn't work in IE11
publicPath:`${config.assetPrefix||''}/_next/`,path:isServer&&_webpack.isWebpack5&&!dev?_path.default.join(outputPath,'chunks'):outputPath,// On the server we don't use hashes
filename:isServer?_webpack.isWebpack5&&!dev?'../[name].js':'[name].js':`static/chunks/${isDevFallback?'fallback/':''}[name]${dev?'':_webpack.isWebpack5?'-[contenthash]':'-[chunkhash]'}.js`,library:isServer?undefined:'_N_E',libraryTarget:isServer?'commonjs2':'assign',hotUpdateChunkFilename:_webpack.isWebpack5?'static/webpack/[id].[fullhash].hot-update.js':'static/webpack/[id].[hash].hot-update.js',hotUpdateMainFilename:_webpack.isWebpack5?'static/webpack/[fullhash].[runtime].hot-update.json':'static/webpack/[hash].hot-update.json',// This saves chunks with the name given via `import()`
-chunkFilename:isServer?'[name].js':`static/chunks/${isDevFallback?'fallback/':''}${dev?'[name]':'[name].[contenthash]'}.js`,strictModuleExceptionHandling:true,crossOriginLoading:crossOrigin,futureEmitAssets:!dev,webassemblyModuleFilename:'static/wasm/[modulehash].wasm'},performance:false,resolve:resolveConfig,resolveLoader:{// The loaders Next.js provides
+chunkFilename:isServer?'[name].js':`static/chunks/${isDevFallback?'fallback/':''}${dev?'[name]':'[name].[contenthash]'}.js`,strictModuleExceptionHandling:true,crossOriginLoading:crossOrigin,futureEmitAssets:!dev,webassemblyModuleFilename:'static/wasm/[modulehash].wasm'},performance:false,// TODO: fix this
+// @ts-ignore
+resolve:resolveConfig,resolveLoader:{// The loaders Next.js provides
alias:['emit-file-loader','error-loader','next-babel-loader','next-client-pages-loader','next-image-loader','next-serverless-loader','noop-loader','next-style-loader'].reduce((alias,loader)=>{// using multiple aliases to replace `resolveLoader.modules`
alias[loader]=_path.default.join(__dirname,'webpack','loaders',loader);return alias;},{}),modules:['node_modules',...nodePathList// Support for NODE_PATH environment variable
],plugins:_webpack.isWebpack5?[]:[require('pnp-webpack-plugin')]},module:{rules:[...(_webpack.isWebpack5?[// TODO: FIXME: do NOT webpack 5 support with this
@@ -133,7 +135,7 @@ domains:config.images.domains}:{})}),'process.env.__NEXT_ROUTER_BASEPATH':JSON.s
return target[prop]
}
})
- `}:{})}),!isServer&&new _reactLoadablePlugin.ReactLoadablePlugin({filename:_constants2.REACT_LOADABLE_MANIFEST,pagesDir}),!isServer&&new _nextDropClientPagePlugin.DropClientPage(),// Moment.js is an extremely popular library that bundles large locale files
+ `}:{})}),!isServer&&new _reactLoadablePlugin.ReactLoadablePlugin({filename:_constants2.REACT_LOADABLE_MANIFEST,pagesDirs}),!isServer&&new _nextDropClientPagePlugin.DropClientPage(),// Moment.js is an extremely popular library that bundles large locale files
// by default due to how Webpack interprets its code. This is a practical
// solution that requires the user to opt into importing specific locales.
// https://github.com/jmblog/how-to-optimize-momentjs-with-webpack
diff --git a/node_modules/next/dist/build/webpack-config.js.map b/node_modules/next/dist/build/webpack-config.js.map
index e0a8c4c..0071d82 100644
--- a/node_modules/next/dist/build/webpack-config.js.map
+++ b/node_modules/next/dist/build/webpack-config.js.map
@@ -1 +1 @@
-{"version":3,"sources":["../../build/webpack-config.ts"],"names":["devtoolRevertWarning","devtool","console","warn","chalk","yellow","bold","parseJsonFile","filePath","JSON5","require","contents","trim","parse","err","codeFrame","String","start","line","lineNumber","column","columnNumber","message","highlightCode","Error","getOptimizedAliases","isServer","stubWindowFetch","path","join","__dirname","stubObjectAssign","shimAssign","Object","assign","unfetch$","url","resolve","attachReactRefresh","webpackConfig","targetLoader","injections","reactRefreshLoaderName","reactRefreshLoader","module","rules","forEach","rule","curr","use","Array","isArray","some","r","idx","findIndex","splice","Log","info","WEBPACK_RESOLVE_OPTIONS","dependencyType","symlinks","NODE_RESOLVE_OPTIONS","modules","alias","fallback","exportsFields","importsFields","conditionNames","descriptionFiles","extensions","enforceExtensions","mainFields","mainFiles","roots","fullySpecified","preferRelative","preferAbsolute","restrictions","getBaseWebpackConfig","dir","buildId","config","dev","pagesDir","target","reactProductionProfiling","entrypoints","rewrites","isDevFallback","hasRewrites","beforeFiles","length","afterFiles","hasReactRefresh","reactDomVersion","cwd","name","hasReact18","Boolean","semver","gte","coerce","version","hasReactPrerelease","prerelease","hasReactRoot","experimental","reactRoot","babelConfigFile","reduce","memo","filename","configFilePath","undefined","Promise","distDir","babelLoader","isWebpack5","defaultLoaders","babel","loader","options","configFile","cache","development","hasJsxRuntime","hotSelfAccept","babelIncludeRegexes","nodePathList","process","env","NODE_PATH","split","platform","filter","p","isServerless","isServerlessTrace","isLikeServerless","outputDir","SERVERLESS_DIRECTORY","SERVER_DIRECTORY","outputPath","totalPages","keys","clientEntries","CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH","CLIENT_STATIC_FILES_RUNTIME_AMP","NEXT_PROJECT_ROOT_DIST_CLIENT","replace","CLIENT_STATIC_FILES_RUNTIME_MAIN","relative","CLIENT_STATIC_FILES_RUNTIME_POLYFILLS","typeScriptPath","paths","_","tsConfigPath","useTypeScript","jsConfig","ts","tsConfig","compilerOptions","jsConfigPath","resolvedBaseUrl","baseUrl","getReactProfilingInProduction","clientResolveRewrites","clientResolveRewritesNoop","resolveConfig","next","NEXT_PROJECT_ROOT","PAGES_DIR_ALIAS","DOT_NEXT_ALIAS","assert","buffer","constants","crypto","domain","http","https","os","punycode","querystring","stream","string_decoder","sys","timers","tty","util","vm","zlib","plugins","terserOptions","ecma","compress","warnings","comparisons","inline","mangle","safari10","output","comments","ascii_only","isModuleCSS","type","splitChunksConfigs","cacheGroups","default","vendors","prodGranular","chunks","chunk","test","framework","priority","enforce","lib","size","nameForCondition","hash","createHash","updateHash","libIdent","update","context","digest","substring","minChunks","reuseExistingChunk","commons","shared","acc","maxInitialRequests","minSize","splitChunksConfig","crossOrigin","customAppFile","pageExtensions","conformanceConfig","ReactSyncScriptsConformanceCheck","enabled","MinificationConformanceCheck","DuplicatePolyfillsConformanceCheck","BlockedAPIToBePolyfilled","conformance","GranularChunksConformanceCheck","handleExternals","request","getResolve","isLocal","startsWith","posix","isAbsolute","win32","notExternalModules","res","isNextExternal","externalRequest","baseRes","baseResolve","match","emacsLockfilePattern","externals","callback","resolveContext","requestToResolve","then","result","optimizeCss","optimization","emitOnErrors","noEmitOnErrors","checkWasmTypes","nodeEnv","splitChunks","runtimeChunk","CLIENT_STATIC_FILES_RUNTIME_WEBPACK","minimize","minimizer","compiler","TerserPlugin","cacheDir","parallel","cpus","apply","CssMinimizerPlugin","postcssOptions","map","annotation","node","setImmediate","entry","watchOptions","aggregateTimeout","ignored","environment","arrowFunction","bigIntLiteral","const","destructuring","dynamicImport","forOf","publicPath","assetPrefix","library","libraryTarget","hotUpdateChunkFilename","hotUpdateMainFilename","chunkFilename","strictModuleExceptionHandling","crossOriginLoading","futureEmitAssets","webassemblyModuleFilename","performance","resolveLoader","externalDir","include","exclude","excludePath","ReactRefreshWebpackPlugin","webpack","ProvidePlugin","Buffer","ChunkNamesPlugin","DefinePlugin","prev","key","JSON","stringify","__NEXT_TEST_MODE","trailingSlash","devIndicators","buildActivity","reactStrictMode","optimizeFonts","optimizeImages","scrollRestoration","deviceSizes","images","imageSizes","domains","basePath","i18n","analyticsId","pageEnv","ReactLoadablePlugin","REACT_LOADABLE_MANIFEST","DropClientPage","excludeDefaultMomentLocales","IgnorePlugin","resourceRegExp","contextRegExp","NextJsRequireCacheHotReloader","devPlugins","push","HotModuleReplacementPlugin","HashedModuleIdsPlugin","ServerlessPlugin","PagesManifestPlugin","serverless","NextJsSSRModuleCachePlugin","NextJsSsrImportPlugin","BuildManifestPlugin","stats","BuildStatsPlugin","ProfilingPlugin","FontStylesheetGatheringPlugin","WebpackConformancePlugin","tests","AllowedSources","allowedSources","WellKnownErrorsPlugin","unshift","JsConfigPathsPlugin","dependencies","snapshot","versions","pnp","exec","managedPaths","immutablePaths","providedExports","usedExports","configVars","reactMode","disableOptimizedLoading","__NEXT_VERSION","cacheDirectory","buildDependencies","NEXT_WEBPACK_LOGGING","logInfra","includes","logProfileClient","logProfileServer","logDefault","infrastructureLogging","level","debug","hooks","done","tap","log","toString","colors","logging","ProgressPlugin","profile","rootDirectory","isDevelopment","sassOptions","productionBrowserSourceMaps","future","isCraCompat","craCompat","originalDevtool","disableStaticImages","hasSvg","RegExp","dependency","not","issuer","regexLikeCss","fileLoaderExclude","fileLoader","generator","topRules","innerRules","oneOf","resource","webpackDevMiddleware","canMatchCss","fileNames","input","hasUserCssConfig","__next_css_remove","e","strictPostcssConfiguration","foundTsRule","call","isSass","source","isLess","isCss","isStylus","prototype","hasOwnProperty","correctNextCss","correctCssLoader","originalEntry","updatedEntry","originalFile","dependOn","old","import"],"mappings":"wHAAA,sHACA,oDACA,sDACA,sBACA,8DACA,yEACA,2DACA,mDACA,2CAMA,8CACA,6DAEA,wFACA,wDAUA,+CAEA,0DAEA,yDACA,wCACA,8FACA,oGACA,8FACA,8FACA,4EACA,wFACA,4FACA,uGACA,oGACA,mEACA,4EACA,qEACA,+GAMA,gFACA,gD,w4BAIA,KAAMA,CAAAA,oBAAoB,CAAG,oBAC1BC,OAAD,EAA+C,CAC7CC,OAAO,CAACC,IAAR,CACEC,eAAMC,MAAN,CAAaC,IAAb,CAAkB,WAAlB,EACEF,eAAME,IAAN,CAAY,iCAAgCL,OAAQ,MAApD,CADF,CAEE,+FAFF,CAGE,8DAJJ,EAMD,CAR0B,CAA7B,CAWA,QAASM,CAAAA,aAAT,CAAuBC,QAAvB,CAAyC,CACvC,KAAMC,CAAAA,KAAK,CAAGC,OAAO,CAAC,0BAAD,CAArB,CACA,KAAMC,CAAAA,QAAQ,CAAG,qBAAaH,QAAb,CAAuB,MAAvB,CAAjB,CAEA;AACA,GAAIG,QAAQ,CAACC,IAAT,KAAoB,EAAxB,CAA4B,CAC1B,MAAO,EAAP,CACD,CAED,GAAI,CACF,MAAOH,CAAAA,KAAK,CAACI,KAAN,CAAYF,QAAZ,CAAP,CACD,CAAC,MAAOG,GAAP,CAAY,CACZ,KAAMC,CAAAA,SAAS,CAAG,gCAChBC,MAAM,CAACL,QAAD,CADU,CAEhB,CAAEM,KAAK,CAAE,CAAEC,IAAI,CAAEJ,GAAG,CAACK,UAAZ,CAAwBC,MAAM,CAAEN,GAAG,CAACO,YAApC,CAAT,CAFgB,CAGhB,CAAEC,OAAO,CAAER,GAAG,CAACQ,OAAf,CAAwBC,aAAa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Af,EAA5B,CACD,CAED,MAAO7P,CAAAA,aAAP,CACD","sourcesContent":["import ReactRefreshWebpackPlugin from '@next/react-refresh-utils/ReactRefreshWebpackPlugin'\nimport chalk from 'chalk'\nimport crypto from 'crypto'\nimport { readFileSync } from 'fs'\nimport { codeFrameColumns } from 'next/dist/compiled/babel/code-frame'\nimport semver from 'next/dist/compiled/semver'\nimport { isWebpack5, webpack } from 'next/dist/compiled/webpack/webpack'\nimport path, { join as pathJoin, relative as relativePath } from 'path'\nimport {\n DOT_NEXT_ALIAS,\n NEXT_PROJECT_ROOT,\n NEXT_PROJECT_ROOT_DIST_CLIENT,\n PAGES_DIR_ALIAS,\n} from '../lib/constants'\nimport { fileExists } from '../lib/file-exists'\nimport { getPackageVersion } from '../lib/get-package-version'\nimport { CustomRoutes } from '../lib/load-custom-routes.js'\nimport { getTypeScriptConfiguration } from '../lib/typescript/getTypeScriptConfiguration'\nimport {\n CLIENT_STATIC_FILES_RUNTIME_AMP,\n CLIENT_STATIC_FILES_RUNTIME_MAIN,\n CLIENT_STATIC_FILES_RUNTIME_POLYFILLS,\n CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH,\n CLIENT_STATIC_FILES_RUNTIME_WEBPACK,\n REACT_LOADABLE_MANIFEST,\n SERVERLESS_DIRECTORY,\n SERVER_DIRECTORY,\n} from '../next-server/lib/constants'\nimport { execOnce } from '../next-server/lib/utils'\nimport { NextConfig } from '../next-server/server/config'\nimport { findPageFile } from '../server/lib/find-page-file'\nimport { WebpackEntrypoints } from './entries'\nimport * as Log from './output/log'\nimport { build as buildConfiguration } from './webpack/config'\nimport { __overrideCssConfiguration } from './webpack/config/blocks/css/overrideCssConfiguration'\nimport BuildManifestPlugin from './webpack/plugins/build-manifest-plugin'\nimport BuildStatsPlugin from './webpack/plugins/build-stats-plugin'\nimport ChunkNamesPlugin from './webpack/plugins/chunk-names-plugin'\nimport { JsConfigPathsPlugin } from './webpack/plugins/jsconfig-paths-plugin'\nimport { DropClientPage } from './webpack/plugins/next-drop-client-page-plugin'\nimport NextJsSsrImportPlugin from './webpack/plugins/nextjs-ssr-import'\nimport NextJsSSRModuleCachePlugin from './webpack/plugins/nextjs-ssr-module-cache'\nimport PagesManifestPlugin from './webpack/plugins/pages-manifest-plugin'\nimport { ProfilingPlugin } from './webpack/plugins/profiling-plugin'\nimport { ReactLoadablePlugin } from './webpack/plugins/react-loadable-plugin'\nimport { ServerlessPlugin } from './webpack/plugins/serverless-plugin'\nimport WebpackConformancePlugin, {\n DuplicatePolyfillsConformanceCheck,\n GranularChunksConformanceCheck,\n MinificationConformanceCheck,\n ReactSyncScriptsConformanceCheck,\n} from './webpack/plugins/webpack-conformance-plugin'\nimport { WellKnownErrorsPlugin } from './webpack/plugins/wellknown-errors-plugin'\nimport { regexLikeCss } from './webpack/config/blocks/css'\n\ntype ExcludesFalse = <T>(x: T | false) => x is T\n\nconst devtoolRevertWarning = execOnce(\n (devtool: webpack.Configuration['devtool']) => {\n console.warn(\n chalk.yellow.bold('Warning: ') +\n chalk.bold(`Reverting webpack devtool to '${devtool}'.\\n`) +\n 'Changing the webpack devtool in development mode will cause severe performance regressions.\\n' +\n 'Read more: https://nextjs.org/docs/messages/improper-devtool'\n )\n }\n)\n\nfunction parseJsonFile(filePath: string) {\n const JSON5 = require('next/dist/compiled/json5')\n const contents = readFileSync(filePath, 'utf8')\n\n // Special case an empty file\n if (contents.trim() === '') {\n return {}\n }\n\n try {\n return JSON5.parse(contents)\n } catch (err) {\n const codeFrame = codeFrameColumns(\n String(contents),\n { start: { line: err.lineNumber, column: err.columnNumber } },\n { message: err.message, highlightCode: true }\n )\n throw new Error(`Failed to parse \"${filePath}\":\\n${codeFrame}`)\n }\n}\n\nfunction getOptimizedAliases(isServer: boolean): { [pkg: string]: string } {\n if (isServer) {\n return {}\n }\n\n const stubWindowFetch = path.join(__dirname, 'polyfills', 'fetch', 'index.js')\n const stubObjectAssign = path.join(__dirname, 'polyfills', 'object-assign.js')\n\n const shimAssign = path.join(__dirname, 'polyfills', 'object.assign')\n return Object.assign(\n {},\n {\n unfetch$: stubWindowFetch,\n 'isomorphic-unfetch$': stubWindowFetch,\n 'whatwg-fetch$': path.join(\n __dirname,\n 'polyfills',\n 'fetch',\n 'whatwg-fetch.js'\n ),\n },\n {\n 'object-assign$': stubObjectAssign,\n\n // Stub Package: object.assign\n 'object.assign/auto': path.join(shimAssign, 'auto.js'),\n 'object.assign/implementation': path.join(\n shimAssign,\n 'implementation.js'\n ),\n 'object.assign$': path.join(shimAssign, 'index.js'),\n 'object.assign/polyfill': path.join(shimAssign, 'polyfill.js'),\n 'object.assign/shim': path.join(shimAssign, 'shim.js'),\n\n // Replace: full URL polyfill with platform-based polyfill\n url: require.resolve('native-url'),\n }\n )\n}\n\ntype ClientEntries = {\n [key: string]: string | string[]\n}\n\nexport function attachReactRefresh(\n webpackConfig: webpack.Configuration,\n targetLoader: webpack.RuleSetUseItem\n) {\n let injections = 0\n const reactRefreshLoaderName = '@next/react-refresh-utils/loader'\n const reactRefreshLoader = require.resolve(reactRefreshLoaderName)\n webpackConfig.module?.rules.forEach((rule) => {\n const curr = rule.use\n // When the user has configured `defaultLoaders.babel` for a input file:\n if (curr === targetLoader) {\n ++injections\n rule.use = [reactRefreshLoader, curr as webpack.RuleSetUseItem]\n } else if (\n Array.isArray(curr) &&\n curr.some((r) => r === targetLoader) &&\n // Check if loader already exists:\n !curr.some(\n (r) => r === reactRefreshLoader || r === reactRefreshLoaderName\n )\n ) {\n ++injections\n const idx = curr.findIndex((r) => r === targetLoader)\n // Clone to not mutate user input\n rule.use = [...curr]\n\n // inject / input: [other, babel] output: [other, refresh, babel]:\n rule.use.splice(idx, 0, reactRefreshLoader)\n }\n })\n\n if (injections) {\n Log.info(\n `automatically enabled Fast Refresh for ${injections} custom loader${\n injections > 1 ? 's' : ''\n }`\n )\n }\n}\n\nconst WEBPACK_RESOLVE_OPTIONS = {\n // This always uses commonjs resolving, assuming API is identical\n // between ESM and CJS in a package\n // Otherwise combined ESM+CJS packages will never be external\n // as resolving mismatch would lead to opt-out from being external.\n dependencyType: 'commonjs',\n symlinks: true,\n}\n\nconst NODE_RESOLVE_OPTIONS = {\n dependencyType: 'commonjs',\n modules: ['node_modules'],\n alias: false,\n fallback: false,\n exportsFields: ['exports'],\n importsFields: ['imports'],\n conditionNames: ['node', 'require', 'module'],\n descriptionFiles: ['package.json'],\n extensions: ['.js', '.json', '.node'],\n enforceExtensions: false,\n symlinks: true,\n mainFields: ['main'],\n mainFiles: ['index'],\n roots: [],\n fullySpecified: false,\n preferRelative: false,\n preferAbsolute: false,\n restrictions: [],\n}\n\nexport default async function getBaseWebpackConfig(\n dir: string,\n {\n buildId,\n config,\n dev = false,\n isServer = false,\n pagesDir,\n target = 'server',\n reactProductionProfiling = false,\n entrypoints,\n rewrites,\n isDevFallback = false,\n }: {\n buildId: string\n config: NextConfig\n dev?: boolean\n isServer?: boolean\n pagesDir: string\n target?: string\n reactProductionProfiling?: boolean\n entrypoints: WebpackEntrypoints\n rewrites: CustomRoutes['rewrites']\n isDevFallback?: boolean\n }\n): Promise<webpack.Configuration> {\n const hasRewrites =\n rewrites.beforeFiles.length > 0 ||\n rewrites.afterFiles.length > 0 ||\n rewrites.fallback.length > 0\n const hasReactRefresh: boolean = dev && !isServer\n const reactDomVersion = await getPackageVersion({\n cwd: dir,\n name: 'react-dom',\n })\n const hasReact18: boolean =\n Boolean(reactDomVersion) &&\n (semver.gte(reactDomVersion!, '18.0.0') ||\n semver.coerce(reactDomVersion)?.version === '18.0.0')\n const hasReactPrerelease =\n Boolean(reactDomVersion) && semver.prerelease(reactDomVersion!) != null\n const hasReactRoot: boolean = config.experimental.reactRoot || hasReact18\n\n // Only inform during one of the builds\n if (!isServer) {\n if (hasReactRoot) {\n Log.info('Using the createRoot API for React')\n }\n if (hasReactPrerelease) {\n Log.warn(\n `You are using an unsupported prerelease of 'react-dom' which may cause ` +\n `unexpected or broken application behavior. Continue at your own risk.`\n )\n }\n }\n\n const babelConfigFile = await [\n '.babelrc',\n '.babelrc.json',\n '.babelrc.js',\n '.babelrc.mjs',\n '.babelrc.cjs',\n 'babel.config.js',\n 'babel.config.json',\n 'babel.config.mjs',\n 'babel.config.cjs',\n ].reduce(async (memo: Promise<string | undefined>, filename) => {\n const configFilePath = path.join(dir, filename)\n return (\n (await memo) ||\n ((await fileExists(configFilePath)) ? configFilePath : undefined)\n )\n }, Promise.resolve(undefined))\n\n const distDir = path.join(dir, config.distDir)\n\n // Webpack 5 can use the faster babel loader, webpack 5 has built-in caching for loaders\n // For webpack 4 the old loader is used as it has external caching\n const babelLoader = isWebpack5\n ? require.resolve('./babel/loader/index')\n : 'next-babel-loader'\n const defaultLoaders = {\n babel: {\n loader: babelLoader,\n options: {\n configFile: babelConfigFile,\n isServer,\n distDir,\n pagesDir,\n cwd: dir,\n // Webpack 5 has a built-in loader cache\n cache: !isWebpack5,\n development: dev,\n hasReactRefresh,\n hasJsxRuntime: true,\n },\n },\n // Backwards compat\n hotSelfAccept: {\n loader: 'noop-loader',\n },\n }\n\n const babelIncludeRegexes: RegExp[] = [\n /next[\\\\/]dist[\\\\/]next-server[\\\\/]lib/,\n /next[\\\\/]dist[\\\\/]client/,\n /next[\\\\/]dist[\\\\/]pages/,\n /[\\\\/](strip-ansi|ansi-regex)[\\\\/]/,\n ]\n\n // Support for NODE_PATH\n const nodePathList = (process.env.NODE_PATH || '')\n .split(process.platform === 'win32' ? ';' : ':')\n .filter((p) => !!p)\n\n const isServerless = target === 'serverless'\n const isServerlessTrace = target === 'experimental-serverless-trace'\n // Intentionally not using isTargetLikeServerless helper\n const isLikeServerless = isServerless || isServerlessTrace\n\n const outputDir = isLikeServerless ? SERVERLESS_DIRECTORY : SERVER_DIRECTORY\n const outputPath = path.join(distDir, isServer ? outputDir : '')\n const totalPages = Object.keys(entrypoints).length\n const clientEntries = !isServer\n ? ({\n // Backwards compatibility\n 'main.js': [],\n ...(dev\n ? {\n [CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH]: require.resolve(\n `@next/react-refresh-utils/runtime`\n ),\n [CLIENT_STATIC_FILES_RUNTIME_AMP]:\n `./` +\n relativePath(\n dir,\n pathJoin(NEXT_PROJECT_ROOT_DIST_CLIENT, 'dev', 'amp-dev')\n ).replace(/\\\\/g, '/'),\n }\n : {}),\n [CLIENT_STATIC_FILES_RUNTIME_MAIN]:\n `./` +\n path\n .relative(\n dir,\n path.join(\n NEXT_PROJECT_ROOT_DIST_CLIENT,\n dev ? `next-dev.js` : 'next.js'\n )\n )\n .replace(/\\\\/g, '/'),\n [CLIENT_STATIC_FILES_RUNTIME_POLYFILLS]: path.join(\n NEXT_PROJECT_ROOT_DIST_CLIENT,\n 'polyfills.js'\n ),\n } as ClientEntries)\n : undefined\n\n let typeScriptPath: string | undefined\n try {\n typeScriptPath = require.resolve('typescript', { paths: [dir] })\n } catch (_) {}\n const tsConfigPath = path.join(dir, 'tsconfig.json')\n const useTypeScript = Boolean(\n typeScriptPath && (await fileExists(tsConfigPath))\n )\n\n let jsConfig\n // jsconfig is a subset of tsconfig\n if (useTypeScript) {\n const ts = (await import(typeScriptPath!)) as typeof import('typescript')\n const tsConfig = await getTypeScriptConfiguration(ts, tsConfigPath, true)\n jsConfig = { compilerOptions: tsConfig.options }\n }\n\n const jsConfigPath = path.join(dir, 'jsconfig.json')\n if (!useTypeScript && (await fileExists(jsConfigPath))) {\n jsConfig = parseJsonFile(jsConfigPath)\n }\n\n let resolvedBaseUrl\n if (jsConfig?.compilerOptions?.baseUrl) {\n resolvedBaseUrl = path.resolve(dir, jsConfig.compilerOptions.baseUrl)\n }\n\n function getReactProfilingInProduction() {\n if (reactProductionProfiling) {\n return {\n 'react-dom$': 'react-dom/profiling',\n 'scheduler/tracing': 'scheduler/tracing-profiling',\n }\n }\n }\n\n const clientResolveRewrites = require.resolve(\n '../next-server/lib/router/utils/resolve-rewrites'\n )\n const clientResolveRewritesNoop = require.resolve(\n '../next-server/lib/router/utils/resolve-rewrites-noop'\n )\n\n const resolveConfig = {\n // Disable .mjs for node_modules bundling\n extensions: isServer\n ? [\n '.js',\n '.mjs',\n ...(useTypeScript ? ['.tsx', '.ts'] : []),\n '.jsx',\n '.json',\n '.wasm',\n ]\n : [\n '.mjs',\n '.js',\n ...(useTypeScript ? ['.tsx', '.ts'] : []),\n '.jsx',\n '.json',\n '.wasm',\n ],\n modules: [\n 'node_modules',\n ...nodePathList, // Support for NODE_PATH environment variable\n ],\n alias: {\n next: NEXT_PROJECT_ROOT,\n [PAGES_DIR_ALIAS]: pagesDir,\n [DOT_NEXT_ALIAS]: distDir,\n ...getOptimizedAliases(isServer),\n ...getReactProfilingInProduction(),\n [clientResolveRewrites]: hasRewrites\n ? clientResolveRewrites\n : // With webpack 5 an alias can be pointed to false to noop\n isWebpack5\n ? false\n : clientResolveRewritesNoop,\n },\n ...(isWebpack5 && !isServer\n ? {\n // Full list of old polyfills is accessible here:\n // https://github.com/webpack/webpack/blob/2a0536cf510768111a3a6dceeb14cb79b9f59273/lib/ModuleNotFoundError.js#L13-L42\n fallback: {\n assert: require.resolve('assert/'),\n buffer: require.resolve('buffer/'),\n constants: require.resolve('constants-browserify'),\n crypto: require.resolve('crypto-browserify'),\n domain: require.resolve('domain-browser'),\n http: require.resolve('stream-http'),\n https: require.resolve('https-browserify'),\n os: require.resolve('os-browserify/browser'),\n path: require.resolve('path-browserify'),\n punycode: require.resolve('punycode'),\n process: require.resolve('process/browser'),\n // Handled in separate alias\n querystring: require.resolve('querystring-es3'),\n stream: require.resolve('stream-browserify'),\n string_decoder: require.resolve('string_decoder'),\n sys: require.resolve('util/'),\n timers: require.resolve('timers-browserify'),\n tty: require.resolve('tty-browserify'),\n // Handled in separate alias\n // url: require.resolve('url/'),\n util: require.resolve('util/'),\n vm: require.resolve('vm-browserify'),\n zlib: require.resolve('browserify-zlib'),\n },\n }\n : undefined),\n mainFields: isServer ? ['main', 'module'] : ['browser', 'module', 'main'],\n plugins: isWebpack5\n ? // webpack 5+ has the PnP resolver built-in by default:\n []\n : [require('pnp-webpack-plugin')],\n }\n\n const terserOptions: any = {\n parse: {\n ecma: 8,\n },\n compress: {\n ecma: 5,\n warnings: false,\n // The following two options are known to break valid JavaScript code\n comparisons: false,\n inline: 2, // https://github.com/vercel/next.js/issues/7178#issuecomment-493048965\n },\n mangle: { safari10: true },\n output: {\n ecma: 5,\n safari10: true,\n comments: false,\n // Fixes usage of Emoji and certain Regex\n ascii_only: true,\n },\n }\n\n const isModuleCSS = (module: { type: string }): boolean => {\n return (\n // mini-css-extract-plugin\n module.type === `css/mini-extract` ||\n // extract-css-chunks-webpack-plugin (old)\n module.type === `css/extract-chunks` ||\n // extract-css-chunks-webpack-plugin (new)\n module.type === `css/extract-css-chunks`\n )\n }\n\n // Contains various versions of the Webpack SplitChunksPlugin used in different build types\n const splitChunksConfigs: {\n [propName: string]: webpack.Options.SplitChunksOptions | false\n } = {\n dev: {\n cacheGroups: {\n default: false,\n vendors: false,\n },\n },\n prodGranular: {\n // Keep main and _app chunks unsplitted in webpack 5\n // as we don't need a separate vendor chunk from that\n // and all other chunk depend on them so there is no\n // duplication that need to be pulled out.\n chunks: isWebpack5\n ? (chunk) => !/^(polyfills|main|pages\\/_app)$/.test(chunk.name)\n : 'all',\n cacheGroups: {\n framework: {\n chunks: 'all',\n name: 'framework',\n // This regex ignores nested copies of framework libraries so they're\n // bundled with their issuer.\n // https://github.com/vercel/next.js/pull/9012\n test: /(?<!node_modules.*)[\\\\/]node_modules[\\\\/](react|react-dom|scheduler|prop-types|use-subscription)[\\\\/]/,\n priority: 40,\n // Don't let webpack eliminate this chunk (prevents this chunk from\n // becoming a part of the commons chunk)\n enforce: true,\n },\n lib: {\n test(module: {\n size: Function\n nameForCondition: Function\n }): boolean {\n return (\n module.size() > 160000 &&\n /node_modules[/\\\\]/.test(module.nameForCondition() || '')\n )\n },\n name(module: {\n type: string\n libIdent?: Function\n updateHash: (hash: crypto.Hash) => void\n }): string {\n const hash = crypto.createHash('sha1')\n if (isModuleCSS(module)) {\n module.updateHash(hash)\n } else {\n if (!module.libIdent) {\n throw new Error(\n `Encountered unknown module type: ${module.type}. Please open an issue.`\n )\n }\n\n hash.update(module.libIdent({ context: dir }))\n }\n\n return hash.digest('hex').substring(0, 8)\n },\n priority: 30,\n minChunks: 1,\n reuseExistingChunk: true,\n },\n commons: {\n name: 'commons',\n minChunks: totalPages,\n priority: 20,\n },\n ...(isWebpack5\n ? undefined\n : {\n default: false,\n vendors: false,\n shared: {\n name(module, chunks) {\n return (\n crypto\n .createHash('sha1')\n .update(\n chunks.reduce(\n (acc: string, chunk: webpack.compilation.Chunk) => {\n return acc + chunk.name\n },\n ''\n )\n )\n .digest('hex') + (isModuleCSS(module) ? '_CSS' : '')\n )\n },\n priority: 10,\n minChunks: 2,\n reuseExistingChunk: true,\n },\n }),\n },\n maxInitialRequests: 25,\n minSize: 20000,\n },\n }\n\n // Select appropriate SplitChunksPlugin config for this build\n let splitChunksConfig: webpack.Options.SplitChunksOptions | false\n if (dev) {\n splitChunksConfig = isWebpack5 ? false : splitChunksConfigs.dev\n } else {\n splitChunksConfig = splitChunksConfigs.prodGranular\n }\n\n const crossOrigin = config.crossOrigin\n\n let customAppFile: string | null = await findPageFile(\n pagesDir,\n '/_app',\n config.pageExtensions\n )\n if (customAppFile) {\n customAppFile = path.resolve(path.join(pagesDir, customAppFile))\n }\n\n const conformanceConfig = Object.assign(\n {\n ReactSyncScriptsConformanceCheck: {\n enabled: true,\n },\n MinificationConformanceCheck: {\n enabled: true,\n },\n DuplicatePolyfillsConformanceCheck: {\n enabled: true,\n BlockedAPIToBePolyfilled: Object.assign(\n [],\n ['fetch'],\n config.conformance?.DuplicatePolyfillsConformanceCheck\n ?.BlockedAPIToBePolyfilled || []\n ),\n },\n GranularChunksConformanceCheck: {\n enabled: true,\n },\n },\n config.conformance\n )\n\n async function handleExternals(\n context: string,\n request: string,\n getResolve: (\n options: any\n ) => (resolveContext: string, resolveRequest: string) => Promise<string>\n ) {\n // We need to externalize internal requests for files intended to\n // not be bundled.\n\n const isLocal: boolean =\n request.startsWith('.') ||\n // Always check for unix-style path, as webpack sometimes\n // normalizes as posix.\n path.posix.isAbsolute(request) ||\n // When on Windows, we also want to check for Windows-specific\n // absolute paths.\n (process.platform === 'win32' && path.win32.isAbsolute(request))\n\n // Relative requires don't need custom resolution, because they\n // are relative to requests we've already resolved here.\n // Absolute requires (require('/foo')) are extremely uncommon, but\n // also have no need for customization as they're already resolved.\n if (isLocal) {\n if (!/[/\\\\]next-server[/\\\\]/.test(request)) {\n return\n }\n } else {\n if (/^(?:next$|react(?:$|\\/))/.test(request)) {\n return `commonjs ${request}`\n }\n\n const notExternalModules = /^(?:private-next-pages\\/|next\\/(?:dist\\/pages\\/|(?:app|document|link|image|constants)$)|string-hash$)/\n if (notExternalModules.test(request)) {\n return\n }\n }\n\n const resolve = getResolve(WEBPACK_RESOLVE_OPTIONS)\n\n // Resolve the import with the webpack provided context, this\n // ensures we're resolving the correct version when multiple\n // exist.\n let res: string\n try {\n res = await resolve(context, request)\n } catch (err) {\n // If the request cannot be resolved, we need to tell webpack to\n // \"bundle\" it so that webpack shows an error (that it cannot be\n // resolved).\n return\n }\n\n // Same as above, if the request cannot be resolved we need to have\n // webpack \"bundle\" it so it surfaces the not found error.\n if (!res) {\n return\n }\n\n if (isLocal) {\n // we need to process next-server/lib/router/router so that\n // the DefinePlugin can inject process.env values\n const isNextExternal = /next[/\\\\]dist[/\\\\]next-server[/\\\\](?!lib[/\\\\]router[/\\\\]router)/.test(\n res\n )\n\n if (isNextExternal) {\n // Generate Next.js external import\n const externalRequest = path.posix.join(\n 'next',\n 'dist',\n path\n .relative(\n // Root of Next.js package:\n path.join(__dirname, '..'),\n res\n )\n // Windows path normalization\n .replace(/\\\\/g, '/')\n )\n return `commonjs ${externalRequest}`\n } else {\n return\n }\n }\n\n // Bundled Node.js code is relocated without its node_modules tree.\n // This means we need to make sure its request resolves to the same\n // package that'll be available at runtime. If it's not identical,\n // we need to bundle the code (even if it _should_ be external).\n let baseRes: string | null\n try {\n const baseResolve = getResolve(NODE_RESOLVE_OPTIONS)\n baseRes = await baseResolve(dir, request)\n } catch (err) {\n baseRes = null\n }\n\n // Same as above: if the package, when required from the root,\n // would be different from what the real resolution would use, we\n // cannot externalize it.\n // if res or baseRes are symlinks they could point to the the same file,\n // but the resolver will resolve symlinks so this is already handled\n if (baseRes !== res) {\n return\n }\n\n if (\n res.match(\n /next[/\\\\]dist[/\\\\]next-server[/\\\\](?!lib[/\\\\]router[/\\\\]router)/\n )\n ) {\n return `commonjs ${request}`\n }\n\n // Default pages have to be transpiled\n if (\n res.match(/[/\\\\]next[/\\\\]dist[/\\\\]/) ||\n // This is the @babel/plugin-transform-runtime \"helpers: true\" option\n res.match(/node_modules[/\\\\]@babel[/\\\\]runtime[/\\\\]/)\n ) {\n return\n }\n\n // Webpack itself has to be compiled because it doesn't always use module relative paths\n if (\n res.match(/node_modules[/\\\\]webpack/) ||\n res.match(/node_modules[/\\\\]css-loader/)\n ) {\n return\n }\n\n // Anything else that is standard JavaScript within `node_modules`\n // can be externalized.\n if (/node_modules[/\\\\].*\\.c?js$/.test(res)) {\n return `commonjs ${request}`\n }\n\n // Default behavior: bundle the code!\n }\n\n const emacsLockfilePattern = '**/.#*'\n\n let webpackConfig: webpack.Configuration = {\n externals: !isServer\n ? // make sure importing \"next\" is handled gracefully for client\n // bundles in case a user imported types and it wasn't removed\n // TODO: should we warn/error for this instead?\n ['next']\n : !isServerless\n ? [\n isWebpack5\n ? ({\n context,\n request,\n getResolve,\n }: {\n context: string\n request: string\n getResolve: (\n options: any\n ) => (\n resolveContext: string,\n resolveRequest: string\n ) => Promise<string>\n }) => handleExternals(context, request, getResolve)\n : (\n context: string,\n request: string,\n callback: (err?: Error, result?: string | undefined) => void\n ) =>\n handleExternals(\n context,\n request,\n () => (resolveContext: string, requestToResolve: string) =>\n new Promise((resolve) =>\n resolve(\n require.resolve(requestToResolve, {\n paths: [resolveContext],\n })\n )\n )\n ).then((result) => callback(undefined, result), callback),\n ]\n : [\n // When the 'serverless' target is used all node_modules will be compiled into the output bundles\n // So that the 'serverless' bundles have 0 runtime dependencies\n 'next/dist/compiled/@ampproject/toolbox-optimizer', // except this one\n\n // Mark this as external if not enabled so it doesn't cause a\n // webpack error from being missing\n ...(config.experimental.optimizeCss ? [] : ['critters']),\n ],\n optimization: {\n // Webpack 5 uses a new property for the same functionality\n ...(isWebpack5 ? { emitOnErrors: !dev } : { noEmitOnErrors: dev }),\n checkWasmTypes: false,\n nodeEnv: false,\n splitChunks: isServer\n ? isWebpack5 && !dev\n ? ({\n filename: '[name].js',\n // allow to split entrypoints\n chunks: 'all',\n // size of files is not so relevant for server build\n // we want to prefer deduplication to load less code\n minSize: 1000,\n } as any)\n : false\n : splitChunksConfig,\n runtimeChunk: isServer\n ? isWebpack5 && !isLikeServerless\n ? { name: 'webpack-runtime' }\n : undefined\n : { name: CLIENT_STATIC_FILES_RUNTIME_WEBPACK },\n minimize: !(dev || isServer),\n minimizer: [\n // Minify JavaScript\n (compiler: webpack.Compiler) => {\n // @ts-ignore No typings yet\n const {\n TerserPlugin,\n } = require('./webpack/plugins/terser-webpack-plugin/src/index.js')\n new TerserPlugin({\n cacheDir: path.join(distDir, 'cache', 'next-minifier'),\n parallel: config.experimental.cpus,\n terserOptions,\n }).apply(compiler)\n },\n // Minify CSS\n (compiler: webpack.Compiler) => {\n const {\n CssMinimizerPlugin,\n } = require('./webpack/plugins/css-minimizer-plugin')\n new CssMinimizerPlugin({\n postcssOptions: {\n map: {\n // `inline: false` generates the source map in a separate file.\n // Otherwise, the CSS file is needlessly large.\n inline: false,\n // `annotation: false` skips appending the `sourceMappingURL`\n // to the end of the CSS file. Webpack already handles this.\n annotation: false,\n },\n },\n }).apply(compiler)\n },\n ],\n },\n context: dir,\n node: {\n setImmediate: false,\n },\n // Kept as function to be backwards compatible\n // @ts-ignore TODO webpack 5 typings needed\n entry: async () => {\n return {\n ...(clientEntries ? clientEntries : {}),\n ...entrypoints,\n }\n },\n watchOptions: {\n aggregateTimeout: 5,\n ignored: [\n '**/.git/**',\n '**/node_modules/**',\n '**/.next/**',\n // can be removed after https://github.com/paulmillr/chokidar/issues/955 is released\n emacsLockfilePattern,\n ],\n },\n output: {\n ...(isWebpack5\n ? {\n environment: {\n arrowFunction: false,\n bigIntLiteral: false,\n const: false,\n destructuring: false,\n dynamicImport: false,\n forOf: false,\n module: false,\n },\n }\n : {}),\n // we must set publicPath to an empty value to override the default of\n // auto which doesn't work in IE11\n publicPath: `${config.assetPrefix || ''}/_next/`,\n path:\n isServer && isWebpack5 && !dev\n ? path.join(outputPath, 'chunks')\n : outputPath,\n // On the server we don't use hashes\n filename: isServer\n ? isWebpack5 && !dev\n ? '../[name].js'\n : '[name].js'\n : `static/chunks/${isDevFallback ? 'fallback/' : ''}[name]${\n dev ? '' : isWebpack5 ? '-[contenthash]' : '-[chunkhash]'\n }.js`,\n library: isServer ? undefined : '_N_E',\n libraryTarget: isServer ? 'commonjs2' : 'assign',\n hotUpdateChunkFilename: isWebpack5\n ? 'static/webpack/[id].[fullhash].hot-update.js'\n : 'static/webpack/[id].[hash].hot-update.js',\n hotUpdateMainFilename: isWebpack5\n ? 'static/webpack/[fullhash].[runtime].hot-update.json'\n : 'static/webpack/[hash].hot-update.json',\n // This saves chunks with the name given via `import()`\n chunkFilename: isServer\n ? '[name].js'\n : `static/chunks/${isDevFallback ? 'fallback/' : ''}${\n dev ? '[name]' : '[name].[contenthash]'\n }.js`,\n strictModuleExceptionHandling: true,\n crossOriginLoading: crossOrigin,\n futureEmitAssets: !dev,\n webassemblyModuleFilename: 'static/wasm/[modulehash].wasm',\n },\n performance: false,\n resolve: resolveConfig,\n resolveLoader: {\n // The loaders Next.js provides\n alias: [\n 'emit-file-loader',\n 'error-loader',\n 'next-babel-loader',\n 'next-client-pages-loader',\n 'next-image-loader',\n 'next-serverless-loader',\n 'noop-loader',\n 'next-style-loader',\n ].reduce((alias, loader) => {\n // using multiple aliases to replace `resolveLoader.modules`\n alias[loader] = path.join(__dirname, 'webpack', 'loaders', loader)\n\n return alias\n }, {} as Record<string, string>),\n modules: [\n 'node_modules',\n ...nodePathList, // Support for NODE_PATH environment variable\n ],\n plugins: isWebpack5 ? [] : [require('pnp-webpack-plugin')],\n },\n module: {\n rules: [\n ...(isWebpack5\n ? [\n // TODO: FIXME: do NOT webpack 5 support with this\n // x-ref: https://github.com/webpack/webpack/issues/11467\n {\n test: /\\.m?js/,\n resolve: {\n fullySpecified: false,\n },\n } as any,\n ]\n : []),\n {\n test: /\\.(tsx|ts|js|mjs|jsx)$/,\n ...(config.experimental.externalDir\n ? // Allowing importing TS/TSX files from outside of the root dir.\n {}\n : { include: [dir, ...babelIncludeRegexes] }),\n exclude: (excludePath: string) => {\n if (babelIncludeRegexes.some((r) => r.test(excludePath))) {\n return false\n }\n return /node_modules/.test(excludePath)\n },\n use: hasReactRefresh\n ? [\n require.resolve('@next/react-refresh-utils/loader'),\n defaultLoaders.babel,\n ]\n : defaultLoaders.babel,\n },\n ].filter(Boolean),\n },\n plugins: [\n hasReactRefresh && new ReactRefreshWebpackPlugin(webpack),\n // Makes sure `Buffer` and `process` are polyfilled in client-side bundles (same behavior as webpack 4)\n isWebpack5 &&\n !isServer &&\n new webpack.ProvidePlugin({\n Buffer: [require.resolve('buffer'), 'Buffer'],\n process: [require.resolve('process')],\n }),\n // This plugin makes sure `output.filename` is used for entry chunks\n !isWebpack5 && new ChunkNamesPlugin(),\n new webpack.DefinePlugin({\n ...Object.keys(process.env).reduce(\n (prev: { [key: string]: string }, key: string) => {\n if (key.startsWith('NEXT_PUBLIC_')) {\n prev[`process.env.${key}`] = JSON.stringify(process.env[key]!)\n }\n return prev\n },\n {}\n ),\n ...Object.keys(config.env).reduce((acc, key) => {\n if (/^(?:NODE_.+)|^(?:__.+)$/i.test(key)) {\n throw new Error(\n `The key \"${key}\" under \"env\" in next.config.js is not allowed. https://nextjs.org/docs/messages/env-key-not-allowed`\n )\n }\n\n return {\n ...acc,\n [`process.env.${key}`]: JSON.stringify(config.env[key]),\n }\n }, {}),\n // TODO: enforce `NODE_ENV` on `process.env`, and add a test:\n 'process.env.NODE_ENV': JSON.stringify(\n dev ? 'development' : 'production'\n ),\n 'process.env.__NEXT_CROSS_ORIGIN': JSON.stringify(crossOrigin),\n 'process.browser': JSON.stringify(!isServer),\n 'process.env.__NEXT_TEST_MODE': JSON.stringify(\n process.env.__NEXT_TEST_MODE\n ),\n // This is used in client/dev-error-overlay/hot-dev-client.js to replace the dist directory\n ...(dev && !isServer\n ? {\n 'process.env.__NEXT_DIST_DIR': JSON.stringify(distDir),\n }\n : {}),\n 'process.env.__NEXT_TRAILING_SLASH': JSON.stringify(\n config.trailingSlash\n ),\n 'process.env.__NEXT_BUILD_INDICATOR': JSON.stringify(\n config.devIndicators.buildActivity\n ),\n 'process.env.__NEXT_PLUGINS': JSON.stringify(\n config.experimental.plugins\n ),\n 'process.env.__NEXT_STRICT_MODE': JSON.stringify(\n config.reactStrictMode\n ),\n 'process.env.__NEXT_REACT_ROOT': JSON.stringify(hasReactRoot),\n 'process.env.__NEXT_OPTIMIZE_FONTS': JSON.stringify(\n config.optimizeFonts && !dev\n ),\n 'process.env.__NEXT_OPTIMIZE_IMAGES': JSON.stringify(\n config.experimental.optimizeImages\n ),\n 'process.env.__NEXT_OPTIMIZE_CSS': JSON.stringify(\n config.experimental.optimizeCss && !dev\n ),\n 'process.env.__NEXT_SCROLL_RESTORATION': JSON.stringify(\n config.experimental.scrollRestoration\n ),\n 'process.env.__NEXT_IMAGE_OPTS': JSON.stringify({\n deviceSizes: config.images.deviceSizes,\n imageSizes: config.images.imageSizes,\n path: config.images.path,\n loader: config.images.loader,\n ...(dev\n ? {\n // pass domains in development to allow validating on the client\n domains: config.images.domains,\n }\n : {}),\n }),\n 'process.env.__NEXT_ROUTER_BASEPATH': JSON.stringify(config.basePath),\n 'process.env.__NEXT_HAS_REWRITES': JSON.stringify(hasRewrites),\n 'process.env.__NEXT_I18N_SUPPORT': JSON.stringify(!!config.i18n),\n 'process.env.__NEXT_I18N_DOMAINS': JSON.stringify(config.i18n?.domains),\n 'process.env.__NEXT_ANALYTICS_ID': JSON.stringify(config.analyticsId),\n ...(isServer\n ? {\n // Fix bad-actors in the npm ecosystem (e.g. `node-formidable`)\n // This is typically found in unmaintained modules from the\n // pre-webpack era (common in server-side code)\n 'global.GENTLY': JSON.stringify(false),\n }\n : undefined),\n // stub process.env with proxy to warn a missing value is\n // being accessed in development mode\n ...(config.experimental.pageEnv && dev\n ? {\n 'process.env': `\n new Proxy(${isServer ? 'process.env' : '{}'}, {\n get(target, prop) {\n if (typeof target[prop] === 'undefined') {\n console.warn(\\`An environment variable (\\${prop}) that was not provided in the environment was accessed.\\nSee more info here: https://nextjs.org/docs/messages/missing-env-value\\`)\n }\n return target[prop]\n }\n })\n `,\n }\n : {}),\n }),\n !isServer &&\n new ReactLoadablePlugin({\n filename: REACT_LOADABLE_MANIFEST,\n pagesDir,\n }),\n !isServer && new DropClientPage(),\n // Moment.js is an extremely popular library that bundles large locale files\n // by default due to how Webpack interprets its code. This is a practical\n // solution that requires the user to opt into importing specific locales.\n // https://github.com/jmblog/how-to-optimize-momentjs-with-webpack\n config.excludeDefaultMomentLocales &&\n new webpack.IgnorePlugin({\n resourceRegExp: /^\\.\\/locale$/,\n contextRegExp: /moment$/,\n }),\n ...(dev\n ? (() => {\n // Even though require.cache is server only we have to clear assets from both compilations\n // This is because the client compilation generates the build manifest that's used on the server side\n const {\n NextJsRequireCacheHotReloader,\n } = require('./webpack/plugins/nextjs-require-cache-hot-reloader')\n const devPlugins = [new NextJsRequireCacheHotReloader()]\n\n if (!isServer) {\n devPlugins.push(new webpack.HotModuleReplacementPlugin())\n }\n\n return devPlugins\n })()\n : []),\n // Webpack 5 no longer requires this plugin in production:\n !isWebpack5 && !dev && new webpack.HashedModuleIdsPlugin(),\n !dev &&\n new webpack.IgnorePlugin({\n resourceRegExp: /react-is/,\n contextRegExp: /(next-server|next)[\\\\/]dist[\\\\/]/,\n }),\n isServerless && isServer && new ServerlessPlugin(),\n isServer &&\n new PagesManifestPlugin({ serverless: isLikeServerless, dev }),\n !isWebpack5 &&\n target === 'server' &&\n isServer &&\n new NextJsSSRModuleCachePlugin({ outputPath }),\n isServer && new NextJsSsrImportPlugin(),\n !isServer &&\n new BuildManifestPlugin({\n buildId,\n rewrites,\n isDevFallback,\n }),\n !dev &&\n !isServer &&\n config.experimental.stats &&\n new BuildStatsPlugin({\n distDir,\n }),\n new ProfilingPlugin(),\n config.optimizeFonts &&\n !dev &&\n isServer &&\n (function () {\n const {\n FontStylesheetGatheringPlugin,\n } = require('./webpack/plugins/font-stylesheet-gathering-plugin') as {\n FontStylesheetGatheringPlugin: typeof import('./webpack/plugins/font-stylesheet-gathering-plugin').FontStylesheetGatheringPlugin\n }\n return new FontStylesheetGatheringPlugin({\n isLikeServerless,\n })\n })(),\n config.experimental.conformance &&\n !isWebpack5 &&\n !dev &&\n new WebpackConformancePlugin({\n tests: [\n !isServer &&\n conformanceConfig.MinificationConformanceCheck.enabled &&\n new MinificationConformanceCheck(),\n conformanceConfig.ReactSyncScriptsConformanceCheck.enabled &&\n new ReactSyncScriptsConformanceCheck({\n AllowedSources:\n conformanceConfig.ReactSyncScriptsConformanceCheck\n .allowedSources || [],\n }),\n !isServer &&\n conformanceConfig.DuplicatePolyfillsConformanceCheck.enabled &&\n new DuplicatePolyfillsConformanceCheck({\n BlockedAPIToBePolyfilled:\n conformanceConfig.DuplicatePolyfillsConformanceCheck\n .BlockedAPIToBePolyfilled,\n }),\n !isServer &&\n conformanceConfig.GranularChunksConformanceCheck.enabled &&\n new GranularChunksConformanceCheck(\n splitChunksConfigs.prodGranular\n ),\n ].filter(Boolean),\n }),\n new WellKnownErrorsPlugin(),\n ].filter((Boolean as any) as ExcludesFalse),\n }\n\n // Support tsconfig and jsconfig baseUrl\n if (resolvedBaseUrl) {\n webpackConfig.resolve?.modules?.push(resolvedBaseUrl)\n }\n\n if (jsConfig?.compilerOptions?.paths && resolvedBaseUrl) {\n webpackConfig.resolve?.plugins?.unshift(\n new JsConfigPathsPlugin(jsConfig.compilerOptions.paths, resolvedBaseUrl)\n )\n }\n\n if (isWebpack5) {\n // futureEmitAssets is on by default in webpack 5\n delete webpackConfig.output?.futureEmitAssets\n\n if (isServer && dev) {\n // Enable building of client compilation before server compilation in development\n // @ts-ignore dependencies exists\n webpackConfig.dependencies = ['client']\n }\n // webpack 5 no longer polyfills Node.js modules:\n if (webpackConfig.node) delete webpackConfig.node.setImmediate\n\n // Due to bundling of webpack the default values can't be correctly detected\n // This restores the webpack defaults\n // @ts-ignore webpack 5\n webpackConfig.snapshot = {}\n if (process.versions.pnp === '3') {\n const match = /^(.+?)[\\\\/]cache[\\\\/]jest-worker-npm-[^\\\\/]+\\.zip[\\\\/]node_modules[\\\\/]/.exec(\n require.resolve('jest-worker')\n )\n if (match) {\n // @ts-ignore webpack 5\n webpackConfig.snapshot.managedPaths = [\n path.resolve(match[1], 'unplugged'),\n ]\n }\n } else {\n const match = /^(.+?[\\\\/]node_modules)[\\\\/]/.exec(\n require.resolve('jest-worker')\n )\n if (match) {\n // @ts-ignore webpack 5\n webpackConfig.snapshot.managedPaths = [match[1]]\n }\n }\n if (process.versions.pnp === '1') {\n const match = /^(.+?[\\\\/]v4)[\\\\/]npm-jest-worker-[^\\\\/]+-[\\da-f]{40}[\\\\/]node_modules[\\\\/]/.exec(\n require.resolve('jest-worker')\n )\n if (match) {\n // @ts-ignore webpack 5\n webpackConfig.snapshot.immutablePaths = [match[1]]\n }\n } else if (process.versions.pnp === '3') {\n const match = /^(.+?)[\\\\/]jest-worker-npm-[^\\\\/]+\\.zip[\\\\/]node_modules[\\\\/]/.exec(\n require.resolve('jest-worker')\n )\n if (match) {\n // @ts-ignore webpack 5\n webpackConfig.snapshot.immutablePaths = [match[1]]\n }\n }\n\n if (dev) {\n if (!webpackConfig.optimization) {\n webpackConfig.optimization = {}\n }\n webpackConfig.optimization.providedExports = false\n webpackConfig.optimization.usedExports = false\n }\n\n const configVars = JSON.stringify({\n crossOrigin: config.crossOrigin,\n pageExtensions: config.pageExtensions,\n trailingSlash: config.trailingSlash,\n buildActivity: config.devIndicators.buildActivity,\n plugins: config.experimental.plugins,\n reactStrictMode: config.reactStrictMode,\n reactMode: config.experimental.reactMode,\n optimizeFonts: config.optimizeFonts,\n optimizeImages: config.experimental.optimizeImages,\n optimizeCss: config.experimental.optimizeCss,\n scrollRestoration: config.experimental.scrollRestoration,\n basePath: config.basePath,\n pageEnv: config.experimental.pageEnv,\n excludeDefaultMomentLocales: config.excludeDefaultMomentLocales,\n assetPrefix: config.assetPrefix,\n disableOptimizedLoading: config.experimental.disableOptimizedLoading,\n target,\n reactProductionProfiling,\n webpack: !!config.webpack,\n hasRewrites,\n })\n\n const cache: any = {\n type: 'filesystem',\n // Includes:\n // - Next.js version\n // - next.config.js keys that affect compilation\n version: `${process.env.__NEXT_VERSION}|${configVars}`,\n cacheDirectory: path.join(distDir, 'cache', 'webpack'),\n }\n\n // Adds `next.config.js` as a buildDependency when custom webpack config is provided\n if (config.webpack && config.configFile) {\n cache.buildDependencies = {\n config: [config.configFile],\n }\n }\n\n webpackConfig.cache = cache\n\n if (process.env.NEXT_WEBPACK_LOGGING) {\n const logInfra = process.env.NEXT_WEBPACK_LOGGING.includes(\n 'infrastructure'\n )\n const logProfileClient = process.env.NEXT_WEBPACK_LOGGING.includes(\n 'profile-client'\n )\n const logProfileServer = process.env.NEXT_WEBPACK_LOGGING.includes(\n 'profile-server'\n )\n const logDefault = !logInfra && !logProfileClient && !logProfileServer\n\n if (logDefault || logInfra) {\n // @ts-ignore TODO: remove ignore when webpack 5 is stable\n webpackConfig.infrastructureLogging = {\n level: 'verbose',\n debug: /FileSystemInfo/,\n }\n }\n\n if (\n logDefault ||\n (logProfileClient && !isServer) ||\n (logProfileServer && isServer)\n ) {\n webpackConfig.plugins!.push((compiler: webpack.Compiler) => {\n compiler.hooks.done.tap('next-webpack-logging', (stats) => {\n console.log(\n stats.toString({\n colors: true,\n // @ts-ignore TODO: remove ignore when webpack 5 is stable\n logging: logDefault ? 'log' : 'verbose',\n })\n )\n })\n })\n }\n\n if ((logProfileClient && !isServer) || (logProfileServer && isServer)) {\n webpackConfig.plugins!.push(\n new webpack.ProgressPlugin({\n // @ts-ignore TODO: remove ignore when webpack 5 is stable\n profile: true,\n })\n )\n webpackConfig.profile = true\n }\n }\n }\n\n webpackConfig = await buildConfiguration(webpackConfig, {\n rootDirectory: dir,\n customAppFile,\n isDevelopment: dev,\n isServer,\n assetPrefix: config.assetPrefix || '',\n sassOptions: config.sassOptions,\n productionBrowserSourceMaps: config.productionBrowserSourceMaps,\n future: config.future,\n isCraCompat: config.experimental.craCompat,\n })\n\n let originalDevtool = webpackConfig.devtool\n if (typeof config.webpack === 'function') {\n webpackConfig = config.webpack(webpackConfig, {\n dir,\n dev,\n isServer,\n buildId,\n config,\n defaultLoaders,\n totalPages,\n webpack,\n })\n\n if (!webpackConfig) {\n throw new Error(\n 'Webpack config is undefined. You may have forgot to return properly from within the \"webpack\" method of your next.config.js.\\n' +\n 'See more info here https://nextjs.org/docs/messages/undefined-webpack-config'\n )\n }\n\n if (dev && originalDevtool !== webpackConfig.devtool) {\n webpackConfig.devtool = originalDevtool\n devtoolRevertWarning(originalDevtool)\n }\n\n if (typeof (webpackConfig as any).then === 'function') {\n console.warn(\n '> Promise returned in next config. https://nextjs.org/docs/messages/promise-in-next-config'\n )\n }\n }\n\n if (!config.images.disableStaticImages && isWebpack5) {\n if (!webpackConfig.module) {\n webpackConfig.module = { rules: [] }\n }\n\n const hasSvg = webpackConfig.module.rules.some(\n (rule) =>\n 'test' in rule && rule.test instanceof RegExp && rule.test.test('.svg')\n )\n\n // Exclude svg if the user already defined it in custom\n // webpack config such as `@svgr/webpack` plugin or\n // the `babel-plugin-inline-react-svg` plugin.\n webpackConfig.module.rules.push({\n test: hasSvg\n ? /\\.(png|jpg|jpeg|gif|webp|ico|bmp)$/i\n : /\\.(png|svg|jpg|jpeg|gif|webp|ico|bmp)$/i,\n loader: 'next-image-loader',\n dependency: { not: ['url'] },\n // @ts-ignore\n issuer: { not: regexLikeCss },\n })\n }\n\n if (\n config.experimental.craCompat &&\n webpackConfig.module?.rules &&\n webpackConfig.plugins\n ) {\n // CRA prevents loading all locales by default\n // https://github.com/facebook/create-react-app/blob/fddce8a9e21bf68f37054586deb0c8636a45f50b/packages/react-scripts/config/webpack.config.js#L721\n webpackConfig.plugins.push(\n new webpack.IgnorePlugin(/^\\.\\/locale$/, /moment$/)\n )\n\n // CRA allows importing non-webpack handled files with file-loader\n // these need to be the last rule to prevent catching other items\n // https://github.com/facebook/create-react-app/blob/fddce8a9e21bf68f37054586deb0c8636a45f50b/packages/react-scripts/config/webpack.config.js#L594\n const fileLoaderExclude = [/\\.(js|mjs|jsx|ts|tsx|json)$/]\n const fileLoader = isWebpack5\n ? {\n exclude: fileLoaderExclude,\n issuer: fileLoaderExclude,\n type: 'asset/resource',\n generator: {\n publicPath: '/_next/',\n filename: 'static/media/[name].[hash:8].[ext]',\n },\n }\n : {\n loader: require.resolve('next/dist/compiled/file-loader'),\n // Exclude `js` files to keep \"css\" loader working as it injects\n // its runtime that would otherwise be processed through \"file\" loader.\n // Also exclude `html` and `json` extensions so they get processed\n // by webpacks internal loaders.\n exclude: fileLoaderExclude,\n issuer: fileLoaderExclude,\n options: {\n publicPath: '/_next/static/media',\n outputPath: 'static/media',\n name: '[name].[hash:8].[ext]',\n },\n }\n\n const topRules = []\n const innerRules = []\n\n for (const rule of webpackConfig.module.rules) {\n if (rule.resolve) {\n topRules.push(rule)\n } else {\n if (\n rule.oneOf &&\n !(rule.test || rule.exclude || rule.resource || rule.issuer)\n ) {\n rule.oneOf.forEach((r) => innerRules.push(r))\n } else {\n innerRules.push(rule)\n }\n }\n }\n\n webpackConfig.module.rules = [\n ...(topRules as any),\n {\n oneOf: [...innerRules, fileLoader],\n },\n ]\n }\n\n // Backwards compat with webpack-dev-middleware options object\n if (typeof config.webpackDevMiddleware === 'function') {\n const options = config.webpackDevMiddleware({\n watchOptions: webpackConfig.watchOptions,\n })\n if (options.watchOptions) {\n webpackConfig.watchOptions = options.watchOptions\n }\n }\n\n function canMatchCss(rule: webpack.RuleSetCondition | undefined): boolean {\n if (!rule) {\n return false\n }\n\n const fileNames = [\n '/tmp/test.css',\n '/tmp/test.scss',\n '/tmp/test.sass',\n '/tmp/test.less',\n '/tmp/test.styl',\n ]\n\n if (rule instanceof RegExp && fileNames.some((input) => rule.test(input))) {\n return true\n }\n\n if (typeof rule === 'function') {\n if (\n fileNames.some((input) => {\n try {\n if (rule(input)) {\n return true\n }\n } catch (_) {}\n return false\n })\n ) {\n return true\n }\n }\n\n if (Array.isArray(rule) && rule.some(canMatchCss)) {\n return true\n }\n\n return false\n }\n\n const hasUserCssConfig =\n webpackConfig.module?.rules.some(\n (rule) => canMatchCss(rule.test) || canMatchCss(rule.include)\n ) ?? false\n\n if (hasUserCssConfig) {\n // only show warning for one build\n if (isServer) {\n console.warn(\n chalk.yellow.bold('Warning: ') +\n chalk.bold(\n 'Built-in CSS support is being disabled due to custom CSS configuration being detected.\\n'\n ) +\n 'See here for more info: https://nextjs.org/docs/messages/built-in-css-disabled\\n'\n )\n }\n\n if (webpackConfig.module?.rules.length) {\n // Remove default CSS Loader\n webpackConfig.module.rules = webpackConfig.module.rules.filter(\n (r) =>\n !(\n typeof r.oneOf?.[0]?.options === 'object' &&\n r.oneOf[0].options.__next_css_remove === true\n )\n )\n }\n if (webpackConfig.plugins?.length) {\n // Disable CSS Extraction Plugin\n webpackConfig.plugins = webpackConfig.plugins.filter(\n (p) => (p as any).__next_css_remove !== true\n )\n }\n if (webpackConfig.optimization?.minimizer?.length) {\n // Disable CSS Minifier\n webpackConfig.optimization.minimizer = webpackConfig.optimization.minimizer.filter(\n (e) => (e as any).__next_css_remove !== true\n )\n }\n } else if (!config.future.strictPostcssConfiguration) {\n await __overrideCssConfiguration(dir, !dev, webpackConfig)\n }\n\n // Inject missing React Refresh loaders so that development mode is fast:\n if (hasReactRefresh) {\n attachReactRefresh(webpackConfig, defaultLoaders.babel)\n }\n\n // check if using @zeit/next-typescript and show warning\n if (\n isServer &&\n webpackConfig.module &&\n Array.isArray(webpackConfig.module.rules)\n ) {\n let foundTsRule = false\n\n webpackConfig.module.rules = webpackConfig.module.rules.filter(\n (rule): boolean => {\n if (!(rule.test instanceof RegExp)) return true\n if ('noop.ts'.match(rule.test) && !'noop.js'.match(rule.test)) {\n // remove if it matches @zeit/next-typescript\n foundTsRule = rule.use === defaultLoaders.babel\n return !foundTsRule\n }\n return true\n }\n )\n\n if (foundTsRule) {\n console.warn(\n '\\n@zeit/next-typescript is no longer needed since Next.js has built-in support for TypeScript now. Please remove it from your next.config.js and your .babelrc\\n'\n )\n }\n }\n\n // Patch `@zeit/next-sass`, `@zeit/next-less`, `@zeit/next-stylus` for compatibility\n if (webpackConfig.module && Array.isArray(webpackConfig.module.rules)) {\n ;[].forEach.call(webpackConfig.module.rules, function (\n rule: webpack.RuleSetRule\n ) {\n if (!(rule.test instanceof RegExp && Array.isArray(rule.use))) {\n return\n }\n\n const isSass =\n rule.test.source === '\\\\.scss$' || rule.test.source === '\\\\.sass$'\n const isLess = rule.test.source === '\\\\.less$'\n const isCss = rule.test.source === '\\\\.css$'\n const isStylus = rule.test.source === '\\\\.styl$'\n\n // Check if the rule we're iterating over applies to Sass, Less, or CSS\n if (!(isSass || isLess || isCss || isStylus)) {\n return\n }\n\n ;[].forEach.call(rule.use, function (use: webpack.RuleSetUseItem) {\n if (\n !(\n use &&\n typeof use === 'object' &&\n // Identify use statements only pertaining to `css-loader`\n (use.loader === 'css-loader' ||\n use.loader === 'css-loader/locals') &&\n use.options &&\n typeof use.options === 'object' &&\n // The `minimize` property is a good heuristic that we need to\n // perform this hack. The `minimize` property was only valid on\n // old `css-loader` versions. Custom setups (that aren't next-sass,\n // next-less or next-stylus) likely have the newer version.\n // We still handle this gracefully below.\n (Object.prototype.hasOwnProperty.call(use.options, 'minimize') ||\n Object.prototype.hasOwnProperty.call(\n use.options,\n 'exportOnlyLocals'\n ))\n )\n ) {\n return\n }\n\n // Try to monkey patch within a try-catch. We shouldn't fail the build\n // if we cannot pull this off.\n // The user may not even be using the `next-sass` or `next-less` or\n // `next-stylus` plugins.\n // If it does work, great!\n try {\n // Resolve the version of `@zeit/next-css` as depended on by the Sass,\n // Less or Stylus plugin.\n const correctNextCss = require.resolve('@zeit/next-css', {\n paths: [\n isCss\n ? // Resolve `@zeit/next-css` from the base directory\n dir\n : // Else, resolve it from the specific plugins\n require.resolve(\n isSass\n ? '@zeit/next-sass'\n : isLess\n ? '@zeit/next-less'\n : isStylus\n ? '@zeit/next-stylus'\n : 'next'\n ),\n ],\n })\n\n // If we found `@zeit/next-css` ...\n if (correctNextCss) {\n // ... resolve the version of `css-loader` shipped with that\n // package instead of whichever was hoisted highest in your\n // `node_modules` tree.\n const correctCssLoader = require.resolve(use.loader, {\n paths: [correctNextCss],\n })\n if (correctCssLoader) {\n // We saved the user from a failed build!\n use.loader = correctCssLoader\n }\n }\n } catch (_) {\n // The error is not required to be handled.\n }\n })\n })\n }\n\n // Backwards compat for `main.js` entry key\n // and setup of dependencies between entries\n // we can't do that in the initial entry for\n // backward-compat reasons\n const originalEntry: any = webpackConfig.entry\n if (typeof originalEntry !== 'undefined') {\n const updatedEntry = async () => {\n const entry: WebpackEntrypoints =\n typeof originalEntry === 'function'\n ? await originalEntry()\n : originalEntry\n // Server compilation doesn't have main.js\n if (\n clientEntries &&\n Array.isArray(entry['main.js']) &&\n entry['main.js'].length > 0\n ) {\n const originalFile = clientEntries[\n CLIENT_STATIC_FILES_RUNTIME_MAIN\n ] as string\n entry[CLIENT_STATIC_FILES_RUNTIME_MAIN] = [\n ...entry['main.js'],\n originalFile,\n ]\n }\n delete entry['main.js']\n\n if (isWebpack5 && !isServer) {\n for (const name of Object.keys(entry)) {\n if (\n name === 'polyfills' ||\n name === 'main' ||\n name === 'amp' ||\n name === 'react-refresh'\n )\n continue\n const dependOn =\n name.startsWith('pages/') && name !== 'pages/_app'\n ? 'pages/_app'\n : 'main'\n const old = entry[name]\n if (typeof old === 'object' && !Array.isArray(old)) {\n entry[name] = {\n dependOn,\n ...old,\n }\n } else {\n entry[name] = {\n import: old,\n dependOn,\n }\n }\n }\n }\n\n return entry\n }\n // @ts-ignore webpack 5 typings needed\n webpackConfig.entry = updatedEntry\n }\n\n if (!dev) {\n // entry is always a function\n webpackConfig.entry = await (webpackConfig.entry as webpack.EntryFunc)()\n }\n\n return webpackConfig\n}\n"]}
\ No newline at end of file
+{"version":3,"sources":["../../build/webpack-config.ts"],"names":["devtoolRevertWarning","devtool","console","warn","chalk","yellow","bold","parseJsonFile","filePath","JSON5","require","contents","trim","parse","err","codeFrame","String","start","line","lineNumber","column","columnNumber","message","highlightCode","Error","getOptimizedAliases","isServer","stubWindowFetch","path","join","__dirname","stubObjectAssign","shimAssign","Object","assign","unfetch$","url","resolve","attachReactRefresh","webpackConfig","targetLoader","injections","reactRefreshLoaderName","reactRefreshLoader","module","rules","forEach","rule","curr","use","Array","isArray","some","r","idx","findIndex","splice","Log","info","WEBPACK_RESOLVE_OPTIONS","dependencyType","symlinks","NODE_RESOLVE_OPTIONS","modules","alias","fallback","exportsFields","importsFields","conditionNames","descriptionFiles","extensions","enforceExtensions","mainFields","mainFiles","roots","fullySpecified","preferRelative","preferAbsolute","restrictions","getBaseWebpackConfig","dir","buildId","config","dev","pagesDirs","target","reactProductionProfiling","entrypoints","rewrites","isDevFallback","hasRewrites","beforeFiles","length","afterFiles","hasReactRefresh","reactDomVersion","cwd","name","hasReact18","Boolean","semver","gte","coerce","version","hasReactPrerelease","prerelease","hasReactRoot","experimental","reactRoot","babelConfigFile","reduce","memo","filename","configFilePath","undefined","Promise","distDir","babelLoader","isWebpack5","defaultLoaders","babel","loader","options","configFile","cache","development","hasJsxRuntime","hotSelfAccept","babelIncludeRegexes","nodePathList","process","env","NODE_PATH","split","platform","filter","p","isServerless","isServerlessTrace","isLikeServerless","outputDir","SERVERLESS_DIRECTORY","SERVER_DIRECTORY","outputPath","totalPages","keys","clientEntries","CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH","CLIENT_STATIC_FILES_RUNTIME_AMP","NEXT_PROJECT_ROOT_DIST_CLIENT","replace","CLIENT_STATIC_FILES_RUNTIME_MAIN","relative","CLIENT_STATIC_FILES_RUNTIME_POLYFILLS","typeScriptPath","paths","_","tsConfigPath","useTypeScript","jsConfig","ts","tsConfig","compilerOptions","jsConfigPath","resolvedBaseUrl","baseUrl","getReactProfilingInProduction","clientResolveRewrites","clientResolveRewritesNoop","resolveConfig","next","NEXT_PROJECT_ROOT","PAGES_DIR_ALIAS","DOT_NEXT_ALIAS","assert","buffer","constants","crypto","domain","http","https","os","punycode","querystring","stream","string_decoder","sys","timers","tty","util","vm","zlib","plugins","terserOptions","ecma","compress","warnings","comparisons","inline","mangle","safari10","output","comments","ascii_only","isModuleCSS","type","splitChunksConfigs","cacheGroups","default","vendors","prodGranular","chunks","chunk","test","framework","priority","enforce","lib","size","nameForCondition","hash","createHash","updateHash","libIdent","update","context","digest","substring","minChunks","reuseExistingChunk","commons","shared","acc","maxInitialRequests","minSize","splitChunksConfig","crossOrigin","customApp","pageExtensions","customAppFile","pageBase","pagePath","conformanceConfig","ReactSyncScriptsConformanceCheck","enabled","MinificationConformanceCheck","DuplicatePolyfillsConformanceCheck","BlockedAPIToBePolyfilled","conformance","GranularChunksConformanceCheck","handleExternals","request","getResolve","isLocal","startsWith","posix","isAbsolute","win32","notExternalModules","res","isNextExternal","externalRequest","baseRes","baseResolve","match","emacsLockfilePattern","externals","callback","resolveContext","requestToResolve","then","result","optimizeCss","optimization","emitOnErrors","noEmitOnErrors","checkWasmTypes","nodeEnv","splitChunks","runtimeChunk","CLIENT_STATIC_FILES_RUNTIME_WEBPACK","minimize","minimizer","compiler","TerserPlugin","cacheDir","parallel","cpus","apply","CssMinimizerPlugin","postcssOptions","map","annotation","node","setImmediate","entry","watchOptions","aggregateTimeout","ignored","environment","arrowFunction","bigIntLiteral","const","destructuring","dynamicImport","forOf","publicPath","assetPrefix","library","libraryTarget","hotUpdateChunkFilename","hotUpdateMainFilename","chunkFilename","strictModuleExceptionHandling","crossOriginLoading","futureEmitAssets","webassemblyModuleFilename","performance","resolveLoader","externalDir","include","exclude","excludePath","ReactRefreshWebpackPlugin","webpack","ProvidePlugin","Buffer","ChunkNamesPlugin","DefinePlugin","prev","key","JSON","stringify","__NEXT_TEST_MODE","trailingSlash","devIndicators","buildActivity","reactStrictMode","optimizeFonts","optimizeImages","scrollRestoration","deviceSizes","images","imageSizes","domains","basePath","i18n","analyticsId","pageEnv","ReactLoadablePlugin","REACT_LOADABLE_MANIFEST","DropClientPage","excludeDefaultMomentLocales","IgnorePlugin","resourceRegExp","contextRegExp","NextJsRequireCacheHotReloader","devPlugins","push","HotModuleReplacementPlugin","HashedModuleIdsPlugin","ServerlessPlugin","PagesManifestPlugin","serverless","NextJsSSRModuleCachePlugin","NextJsSsrImportPlugin","BuildManifestPlugin","stats","BuildStatsPlugin","ProfilingPlugin","FontStylesheetGatheringPlugin","WebpackConformancePlugin","tests","AllowedSources","allowedSources","WellKnownErrorsPlugin","unshift","JsConfigPathsPlugin","dependencies","snapshot","versions","pnp","exec","managedPaths","immutablePaths","providedExports","usedExports","configVars","reactMode","disableOptimizedLoading","__NEXT_VERSION","cacheDirectory","buildDependencies","NEXT_WEBPACK_LOGGING","logInfra","includes","logProfileClient","logProfileServer","logDefault","infrastructureLogging","level","debug","hooks","done","tap","log","toString","colors","logging","ProgressPlugin","profile","rootDirectory","isDevelopment","sassOptions","productionBrowserSourceMaps","future","isCraCompat","craCompat","originalDevtool","disableStaticImages","hasSvg","RegExp","dependency","not","issuer","regexLikeCss","fileLoaderExclude","fileLoader","generator","topRules","innerRules","oneOf","resource","webpackDevMiddleware","canMatchCss","fileNames","input","hasUserCssConfig","__next_css_remove","e","strictPostcssConfiguration","foundTsRule","call","isSass","source","isLess","isCss","isStylus","prototype","hasOwnProperty","correctNextCss","correctCssLoader","originalEntry","updatedEntry","originalFile","dependOn","old","import"],"mappings":"wHAAA,sHACA,oDACA,sDACA,sBACA,8DACA,yEACA,2DACA,mDACA,2CAMA,8CACA,6DAEA,wFACA,wDAUA,+CAEA,0DAEA,yDACA,wCACA,8FACA,oGACA,8FACA,8FACA,4EACA,wFACA,4FACA,uGACA,oGACA,mEACA,4EACA,qEACA,+GAMA,gFACA,gD,w4BAIA,KAAMA,CAAAA,oBAAoB,CAAG,oBAC1BC,OAAD,EAA+C,CAC7CC,OAAO,CAACC,IAAR,CACEC,eAAMC,MAAN,CAAaC,IAAb,CAAkB,WAAlB,EACEF,eAAME,IAAN,CAAY,iCAAgCL,OAAQ,MAApD,CADF,CAEE,+FAFF,CAGE,8DAJJ,EAMD,CAR0B,CAA7B,CAWA,QAASM,CAAAA,aAAT,CAAuBC,QAAvB,CAAyC,CACvC,KAAMC,CAAAA,KAAK,CAAGC,OAAO,CAAC,0BAAD,CAArB,CACA,KAAMC,CAAAA,QAAQ,CAAG,qBAAaH,QAAb,CAAuB,MAAvB,CAAjB,CAEA;AACA,GAAIG,QAAQ,CAACC,IAAT,KAAoB,EAAxB,CAA4B,CAC1B,MAAO,EAAP,CACD,CAED,GAAI,CACF,MAAOH,CAAAA,KAAK,CAACI,KAAN,CAAYF,QAAZ,CAAP,CACD,CAAC,MAAOG,GAAP,CAAY,CACZ,KAAMC,CAAAA,SAAS,CAAG,gCAChBC,MAAM,CAACL,QAAD,CADU,CAEhB,CAAEM,KAAK,CAAE,CAAEC,IAAI,CAAEJ,GAAG,CAACK,UAAZ,CAAwBC,MAAM,CAAEN,GAAG,CAACO,YAApC,CAAT,CAFgB,CAGhB,CAAEC,OAAO,CAAER,GAAG,CAACQ,OAAf,CAAwBC,aAAa,CAAE,IAAvC,CAHgB,CAAlB,CAKA,KAAM,IAAIC,CAAAA,KAAJ,CAAW,oBAAmBhB,QAAS,O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,MAAOhQ,CAAAA,aAAP,CACD","sourcesContent":["import ReactRefreshWebpackPlugin from '@next/react-refresh-utils/ReactRefreshWebpackPlugin'\nimport chalk from 'chalk'\nimport crypto from 'crypto'\nimport { readFileSync } from 'fs'\nimport { codeFrameColumns } from 'next/dist/compiled/babel/code-frame'\nimport semver from 'next/dist/compiled/semver'\nimport { isWebpack5, webpack } from 'next/dist/compiled/webpack/webpack'\nimport path, { join as pathJoin, relative as relativePath } from 'path'\nimport {\n DOT_NEXT_ALIAS,\n NEXT_PROJECT_ROOT,\n NEXT_PROJECT_ROOT_DIST_CLIENT,\n PAGES_DIR_ALIAS,\n} from '../lib/constants'\nimport { fileExists } from '../lib/file-exists'\nimport { getPackageVersion } from '../lib/get-package-version'\nimport { CustomRoutes } from '../lib/load-custom-routes.js'\nimport { getTypeScriptConfiguration } from '../lib/typescript/getTypeScriptConfiguration'\nimport {\n CLIENT_STATIC_FILES_RUNTIME_AMP,\n CLIENT_STATIC_FILES_RUNTIME_MAIN,\n CLIENT_STATIC_FILES_RUNTIME_POLYFILLS,\n CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH,\n CLIENT_STATIC_FILES_RUNTIME_WEBPACK,\n REACT_LOADABLE_MANIFEST,\n SERVERLESS_DIRECTORY,\n SERVER_DIRECTORY,\n} from '../next-server/lib/constants'\nimport { execOnce } from '../next-server/lib/utils'\nimport { NextConfig } from '../next-server/server/config'\nimport { findPageFile } from '../server/lib/find-page-file'\nimport { WebpackEntrypoints } from './entries'\nimport * as Log from './output/log'\nimport { build as buildConfiguration } from './webpack/config'\nimport { __overrideCssConfiguration } from './webpack/config/blocks/css/overrideCssConfiguration'\nimport BuildManifestPlugin from './webpack/plugins/build-manifest-plugin'\nimport BuildStatsPlugin from './webpack/plugins/build-stats-plugin'\nimport ChunkNamesPlugin from './webpack/plugins/chunk-names-plugin'\nimport { JsConfigPathsPlugin } from './webpack/plugins/jsconfig-paths-plugin'\nimport { DropClientPage } from './webpack/plugins/next-drop-client-page-plugin'\nimport NextJsSsrImportPlugin from './webpack/plugins/nextjs-ssr-import'\nimport NextJsSSRModuleCachePlugin from './webpack/plugins/nextjs-ssr-module-cache'\nimport PagesManifestPlugin from './webpack/plugins/pages-manifest-plugin'\nimport { ProfilingPlugin } from './webpack/plugins/profiling-plugin'\nimport { ReactLoadablePlugin } from './webpack/plugins/react-loadable-plugin'\nimport { ServerlessPlugin } from './webpack/plugins/serverless-plugin'\nimport WebpackConformancePlugin, {\n DuplicatePolyfillsConformanceCheck,\n GranularChunksConformanceCheck,\n MinificationConformanceCheck,\n ReactSyncScriptsConformanceCheck,\n} from './webpack/plugins/webpack-conformance-plugin'\nimport { WellKnownErrorsPlugin } from './webpack/plugins/wellknown-errors-plugin'\nimport { regexLikeCss } from './webpack/config/blocks/css'\n\ntype ExcludesFalse = <T>(x: T | false) => x is T\n\nconst devtoolRevertWarning = execOnce(\n (devtool: webpack.Configuration['devtool']) => {\n console.warn(\n chalk.yellow.bold('Warning: ') +\n chalk.bold(`Reverting webpack devtool to '${devtool}'.\\n`) +\n 'Changing the webpack devtool in development mode will cause severe performance regressions.\\n' +\n 'Read more: https://nextjs.org/docs/messages/improper-devtool'\n )\n }\n)\n\nfunction parseJsonFile(filePath: string) {\n const JSON5 = require('next/dist/compiled/json5')\n const contents = readFileSync(filePath, 'utf8')\n\n // Special case an empty file\n if (contents.trim() === '') {\n return {}\n }\n\n try {\n return JSON5.parse(contents)\n } catch (err) {\n const codeFrame = codeFrameColumns(\n String(contents),\n { start: { line: err.lineNumber, column: err.columnNumber } },\n { message: err.message, highlightCode: true }\n )\n throw new Error(`Failed to parse \"${filePath}\":\\n${codeFrame}`)\n }\n}\n\nfunction getOptimizedAliases(isServer: boolean): { [pkg: string]: string } {\n if (isServer) {\n return {}\n }\n\n const stubWindowFetch = path.join(__dirname, 'polyfills', 'fetch', 'index.js')\n const stubObjectAssign = path.join(__dirname, 'polyfills', 'object-assign.js')\n\n const shimAssign = path.join(__dirname, 'polyfills', 'object.assign')\n return Object.assign(\n {},\n {\n unfetch$: stubWindowFetch,\n 'isomorphic-unfetch$': stubWindowFetch,\n 'whatwg-fetch$': path.join(\n __dirname,\n 'polyfills',\n 'fetch',\n 'whatwg-fetch.js'\n ),\n },\n {\n 'object-assign$': stubObjectAssign,\n\n // Stub Package: object.assign\n 'object.assign/auto': path.join(shimAssign, 'auto.js'),\n 'object.assign/implementation': path.join(\n shimAssign,\n 'implementation.js'\n ),\n 'object.assign$': path.join(shimAssign, 'index.js'),\n 'object.assign/polyfill': path.join(shimAssign, 'polyfill.js'),\n 'object.assign/shim': path.join(shimAssign, 'shim.js'),\n\n // Replace: full URL polyfill with platform-based polyfill\n url: require.resolve('native-url'),\n }\n )\n}\n\ntype ClientEntries = {\n [key: string]: string | string[]\n}\n\nexport function attachReactRefresh(\n webpackConfig: webpack.Configuration,\n targetLoader: webpack.RuleSetUseItem\n) {\n let injections = 0\n const reactRefreshLoaderName = '@next/react-refresh-utils/loader'\n const reactRefreshLoader = require.resolve(reactRefreshLoaderName)\n webpackConfig.module?.rules.forEach((rule) => {\n const curr = rule.use\n // When the user has configured `defaultLoaders.babel` for a input file:\n if (curr === targetLoader) {\n ++injections\n rule.use = [reactRefreshLoader, curr as webpack.RuleSetUseItem]\n } else if (\n Array.isArray(curr) &&\n curr.some((r) => r === targetLoader) &&\n // Check if loader already exists:\n !curr.some(\n (r) => r === reactRefreshLoader || r === reactRefreshLoaderName\n )\n ) {\n ++injections\n const idx = curr.findIndex((r) => r === targetLoader)\n // Clone to not mutate user input\n rule.use = [...curr]\n\n // inject / input: [other, babel] output: [other, refresh, babel]:\n rule.use.splice(idx, 0, reactRefreshLoader)\n }\n })\n\n if (injections) {\n Log.info(\n `automatically enabled Fast Refresh for ${injections} custom loader${\n injections > 1 ? 's' : ''\n }`\n )\n }\n}\n\nconst WEBPACK_RESOLVE_OPTIONS = {\n // This always uses commonjs resolving, assuming API is identical\n // between ESM and CJS in a package\n // Otherwise combined ESM+CJS packages will never be external\n // as resolving mismatch would lead to opt-out from being external.\n dependencyType: 'commonjs',\n symlinks: true,\n}\n\nconst NODE_RESOLVE_OPTIONS = {\n dependencyType: 'commonjs',\n modules: ['node_modules'],\n alias: false,\n fallback: false,\n exportsFields: ['exports'],\n importsFields: ['imports'],\n conditionNames: ['node', 'require', 'module'],\n descriptionFiles: ['package.json'],\n extensions: ['.js', '.json', '.node'],\n enforceExtensions: false,\n symlinks: true,\n mainFields: ['main'],\n mainFiles: ['index'],\n roots: [],\n fullySpecified: false,\n preferRelative: false,\n preferAbsolute: false,\n restrictions: [],\n}\n\nexport default async function getBaseWebpackConfig(\n dir: string,\n {\n buildId,\n config,\n dev = false,\n isServer = false,\n pagesDirs,\n target = 'server',\n reactProductionProfiling = false,\n entrypoints,\n rewrites,\n isDevFallback = false,\n }: {\n buildId: string\n config: NextConfig\n dev?: boolean\n isServer?: boolean\n pagesDirs: string[]\n target?: string\n reactProductionProfiling?: boolean\n entrypoints: WebpackEntrypoints\n rewrites: CustomRoutes['rewrites']\n isDevFallback?: boolean\n }\n): Promise<webpack.Configuration> {\n const hasRewrites =\n rewrites.beforeFiles.length > 0 ||\n rewrites.afterFiles.length > 0 ||\n rewrites.fallback.length > 0\n const hasReactRefresh: boolean = dev && !isServer\n const reactDomVersion = await getPackageVersion({\n cwd: dir,\n name: 'react-dom',\n })\n const hasReact18: boolean =\n Boolean(reactDomVersion) &&\n (semver.gte(reactDomVersion!, '18.0.0') ||\n semver.coerce(reactDomVersion)?.version === '18.0.0')\n const hasReactPrerelease =\n Boolean(reactDomVersion) && semver.prerelease(reactDomVersion!) != null\n const hasReactRoot: boolean = config.experimental.reactRoot || hasReact18\n\n // Only inform during one of the builds\n if (!isServer) {\n if (hasReactRoot) {\n Log.info('Using the createRoot API for React')\n }\n if (hasReactPrerelease) {\n Log.warn(\n `You are using an unsupported prerelease of 'react-dom' which may cause ` +\n `unexpected or broken application behavior. Continue at your own risk.`\n )\n }\n }\n\n const babelConfigFile = await [\n '.babelrc',\n '.babelrc.json',\n '.babelrc.js',\n '.babelrc.mjs',\n '.babelrc.cjs',\n 'babel.config.js',\n 'babel.config.json',\n 'babel.config.mjs',\n 'babel.config.cjs',\n ].reduce(async (memo: Promise<string | undefined>, filename) => {\n const configFilePath = path.join(dir, filename)\n return (\n (await memo) ||\n ((await fileExists(configFilePath)) ? configFilePath : undefined)\n )\n }, Promise.resolve(undefined))\n\n const distDir = path.join(dir, config.distDir)\n\n // Webpack 5 can use the faster babel loader, webpack 5 has built-in caching for loaders\n // For webpack 4 the old loader is used as it has external caching\n const babelLoader = isWebpack5\n ? require.resolve('./babel/loader/index')\n : 'next-babel-loader'\n const defaultLoaders = {\n babel: {\n loader: babelLoader,\n options: {\n configFile: babelConfigFile,\n isServer,\n distDir,\n pagesDirs,\n cwd: dir,\n // Webpack 5 has a built-in loader cache\n cache: !isWebpack5,\n development: dev,\n hasReactRefresh,\n hasJsxRuntime: true,\n },\n },\n // Backwards compat\n hotSelfAccept: {\n loader: 'noop-loader',\n },\n }\n\n const babelIncludeRegexes: RegExp[] = [\n /next[\\\\/]dist[\\\\/]next-server[\\\\/]lib/,\n /next[\\\\/]dist[\\\\/]client/,\n /next[\\\\/]dist[\\\\/]pages/,\n /[\\\\/](strip-ansi|ansi-regex)[\\\\/]/,\n ]\n\n // Support for NODE_PATH\n const nodePathList = (process.env.NODE_PATH || '')\n .split(process.platform === 'win32' ? ';' : ':')\n .filter((p) => !!p)\n\n const isServerless = target === 'serverless'\n const isServerlessTrace = target === 'experimental-serverless-trace'\n // Intentionally not using isTargetLikeServerless helper\n const isLikeServerless = isServerless || isServerlessTrace\n\n const outputDir = isLikeServerless ? SERVERLESS_DIRECTORY : SERVER_DIRECTORY\n const outputPath = path.join(distDir, isServer ? outputDir : '')\n const totalPages = Object.keys(entrypoints).length\n const clientEntries = !isServer\n ? ({\n // Backwards compatibility\n 'main.js': [],\n ...(dev\n ? {\n [CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH]: require.resolve(\n `@next/react-refresh-utils/runtime`\n ),\n [CLIENT_STATIC_FILES_RUNTIME_AMP]:\n `./` +\n relativePath(\n dir,\n pathJoin(NEXT_PROJECT_ROOT_DIST_CLIENT, 'dev', 'amp-dev')\n ).replace(/\\\\/g, '/'),\n }\n : {}),\n [CLIENT_STATIC_FILES_RUNTIME_MAIN]:\n `./` +\n path\n .relative(\n dir,\n path.join(\n NEXT_PROJECT_ROOT_DIST_CLIENT,\n dev ? `next-dev.js` : 'next.js'\n )\n )\n .replace(/\\\\/g, '/'),\n [CLIENT_STATIC_FILES_RUNTIME_POLYFILLS]: path.join(\n NEXT_PROJECT_ROOT_DIST_CLIENT,\n 'polyfills.js'\n ),\n } as ClientEntries)\n : undefined\n\n let typeScriptPath: string | undefined\n try {\n typeScriptPath = require.resolve('typescript', { paths: [dir] })\n } catch (_) {}\n const tsConfigPath = path.join(dir, 'tsconfig.json')\n const useTypeScript = Boolean(\n typeScriptPath && (await fileExists(tsConfigPath))\n )\n\n let jsConfig\n // jsconfig is a subset of tsconfig\n if (useTypeScript) {\n const ts = (await import(typeScriptPath!)) as typeof import('typescript')\n const tsConfig = await getTypeScriptConfiguration(ts, tsConfigPath, true)\n jsConfig = { compilerOptions: tsConfig.options }\n }\n\n const jsConfigPath = path.join(dir, 'jsconfig.json')\n if (!useTypeScript && (await fileExists(jsConfigPath))) {\n jsConfig = parseJsonFile(jsConfigPath)\n }\n\n let resolvedBaseUrl\n if (jsConfig?.compilerOptions?.baseUrl) {\n resolvedBaseUrl = path.resolve(dir, jsConfig.compilerOptions.baseUrl)\n }\n\n function getReactProfilingInProduction() {\n if (reactProductionProfiling) {\n return {\n 'react-dom$': 'react-dom/profiling',\n 'scheduler/tracing': 'scheduler/tracing-profiling',\n }\n }\n }\n\n const clientResolveRewrites = require.resolve(\n '../next-server/lib/router/utils/resolve-rewrites'\n )\n const clientResolveRewritesNoop = require.resolve(\n '../next-server/lib/router/utils/resolve-rewrites-noop'\n )\n\n const resolveConfig = {\n // Disable .mjs for node_modules bundling\n extensions: isServer\n ? [\n '.js',\n '.mjs',\n ...(useTypeScript ? ['.tsx', '.ts'] : []),\n '.jsx',\n '.json',\n '.wasm',\n ]\n : [\n '.mjs',\n '.js',\n ...(useTypeScript ? ['.tsx', '.ts'] : []),\n '.jsx',\n '.json',\n '.wasm',\n ],\n modules: [\n 'node_modules',\n ...nodePathList, // Support for NODE_PATH environment variable\n ],\n alias: {\n next: NEXT_PROJECT_ROOT,\n [PAGES_DIR_ALIAS]: pagesDirs,\n [DOT_NEXT_ALIAS]: distDir,\n ...getOptimizedAliases(isServer),\n ...getReactProfilingInProduction(),\n [clientResolveRewrites]: hasRewrites\n ? clientResolveRewrites\n : // With webpack 5 an alias can be pointed to false to noop\n isWebpack5\n ? false\n : clientResolveRewritesNoop,\n },\n ...(isWebpack5 && !isServer\n ? {\n // Full list of old polyfills is accessible here:\n // https://github.com/webpack/webpack/blob/2a0536cf510768111a3a6dceeb14cb79b9f59273/lib/ModuleNotFoundError.js#L13-L42\n fallback: {\n assert: require.resolve('assert/'),\n buffer: require.resolve('buffer/'),\n constants: require.resolve('constants-browserify'),\n crypto: require.resolve('crypto-browserify'),\n domain: require.resolve('domain-browser'),\n http: require.resolve('stream-http'),\n https: require.resolve('https-browserify'),\n os: require.resolve('os-browserify/browser'),\n path: require.resolve('path-browserify'),\n punycode: require.resolve('punycode'),\n process: require.resolve('process/browser'),\n // Handled in separate alias\n querystring: require.resolve('querystring-es3'),\n stream: require.resolve('stream-browserify'),\n string_decoder: require.resolve('string_decoder'),\n sys: require.resolve('util/'),\n timers: require.resolve('timers-browserify'),\n tty: require.resolve('tty-browserify'),\n // Handled in separate alias\n // url: require.resolve('url/'),\n util: require.resolve('util/'),\n vm: require.resolve('vm-browserify'),\n zlib: require.resolve('browserify-zlib'),\n },\n }\n : undefined),\n mainFields: isServer ? ['main', 'module'] : ['browser', 'module', 'main'],\n plugins: isWebpack5\n ? // webpack 5+ has the PnP resolver built-in by default:\n []\n : [require('pnp-webpack-plugin')],\n }\n\n const terserOptions: any = {\n parse: {\n ecma: 8,\n },\n compress: {\n ecma: 5,\n warnings: false,\n // The following two options are known to break valid JavaScript code\n comparisons: false,\n inline: 2, // https://github.com/vercel/next.js/issues/7178#issuecomment-493048965\n },\n mangle: { safari10: true },\n output: {\n ecma: 5,\n safari10: true,\n comments: false,\n // Fixes usage of Emoji and certain Regex\n ascii_only: true,\n },\n }\n\n const isModuleCSS = (module: { type: string }): boolean => {\n return (\n // mini-css-extract-plugin\n module.type === `css/mini-extract` ||\n // extract-css-chunks-webpack-plugin (old)\n module.type === `css/extract-chunks` ||\n // extract-css-chunks-webpack-plugin (new)\n module.type === `css/extract-css-chunks`\n )\n }\n\n // Contains various versions of the Webpack SplitChunksPlugin used in different build types\n const splitChunksConfigs: {\n [propName: string]: webpack.Options.SplitChunksOptions | false\n } = {\n dev: {\n cacheGroups: {\n default: false,\n vendors: false,\n },\n },\n prodGranular: {\n // Keep main and _app chunks unsplitted in webpack 5\n // as we don't need a separate vendor chunk from that\n // and all other chunk depend on them so there is no\n // duplication that need to be pulled out.\n chunks: isWebpack5\n ? (chunk) => !/^(polyfills|main|pages\\/_app)$/.test(chunk.name)\n : 'all',\n cacheGroups: {\n framework: {\n chunks: 'all',\n name: 'framework',\n // This regex ignores nested copies of framework libraries so they're\n // bundled with their issuer.\n // https://github.com/vercel/next.js/pull/9012\n test: /(?<!node_modules.*)[\\\\/]node_modules[\\\\/](react|react-dom|scheduler|prop-types|use-subscription)[\\\\/]/,\n priority: 40,\n // Don't let webpack eliminate this chunk (prevents this chunk from\n // becoming a part of the commons chunk)\n enforce: true,\n },\n lib: {\n test(module: {\n size: Function\n nameForCondition: Function\n }): boolean {\n return (\n module.size() > 160000 &&\n /node_modules[/\\\\]/.test(module.nameForCondition() || '')\n )\n },\n name(module: {\n type: string\n libIdent?: Function\n updateHash: (hash: crypto.Hash) => void\n }): string {\n const hash = crypto.createHash('sha1')\n if (isModuleCSS(module)) {\n module.updateHash(hash)\n } else {\n if (!module.libIdent) {\n throw new Error(\n `Encountered unknown module type: ${module.type}. Please open an issue.`\n )\n }\n\n hash.update(module.libIdent({ context: dir }))\n }\n\n return hash.digest('hex').substring(0, 8)\n },\n priority: 30,\n minChunks: 1,\n reuseExistingChunk: true,\n },\n commons: {\n name: 'commons',\n minChunks: totalPages,\n priority: 20,\n },\n ...(isWebpack5\n ? undefined\n : {\n default: false,\n vendors: false,\n shared: {\n name(module, chunks) {\n return (\n crypto\n .createHash('sha1')\n .update(\n chunks.reduce(\n (acc: string, chunk: webpack.compilation.Chunk) => {\n return acc + chunk.name\n },\n ''\n )\n )\n .digest('hex') + (isModuleCSS(module) ? '_CSS' : '')\n )\n },\n priority: 10,\n minChunks: 2,\n reuseExistingChunk: true,\n },\n }),\n },\n maxInitialRequests: 25,\n minSize: 20000,\n },\n }\n\n // Select appropriate SplitChunksPlugin config for this build\n let splitChunksConfig: webpack.Options.SplitChunksOptions | false\n if (dev) {\n splitChunksConfig = isWebpack5 ? false : splitChunksConfigs.dev\n } else {\n splitChunksConfig = splitChunksConfigs.prodGranular\n }\n\n const crossOrigin = config.crossOrigin\n\n\n let customApp = await findPageFile(pagesDirs, '/_app', config.pageExtensions)\n let customAppFile = null\n if (customApp) {\n customAppFile = path.resolve(\n path.join(customApp.pageBase, customApp.pagePath)\n )\n }\n\n const conformanceConfig = Object.assign(\n {\n ReactSyncScriptsConformanceCheck: {\n enabled: true,\n },\n MinificationConformanceCheck: {\n enabled: true,\n },\n DuplicatePolyfillsConformanceCheck: {\n enabled: true,\n BlockedAPIToBePolyfilled: Object.assign(\n [],\n ['fetch'],\n config.conformance?.DuplicatePolyfillsConformanceCheck\n ?.BlockedAPIToBePolyfilled || []\n ),\n },\n GranularChunksConformanceCheck: {\n enabled: true,\n },\n },\n config.conformance\n )\n\n async function handleExternals(\n context: string,\n request: string,\n getResolve: (\n options: any\n ) => (resolveContext: string, resolveRequest: string) => Promise<string>\n ) {\n // We need to externalize internal requests for files intended to\n // not be bundled.\n\n const isLocal: boolean =\n request.startsWith('.') ||\n // Always check for unix-style path, as webpack sometimes\n // normalizes as posix.\n path.posix.isAbsolute(request) ||\n // When on Windows, we also want to check for Windows-specific\n // absolute paths.\n (process.platform === 'win32' && path.win32.isAbsolute(request))\n\n // Relative requires don't need custom resolution, because they\n // are relative to requests we've already resolved here.\n // Absolute requires (require('/foo')) are extremely uncommon, but\n // also have no need for customization as they're already resolved.\n if (isLocal) {\n if (!/[/\\\\]next-server[/\\\\]/.test(request)) {\n return\n }\n } else {\n if (/^(?:next$|react(?:$|\\/))/.test(request)) {\n return `commonjs ${request}`\n }\n\n const notExternalModules = /^(?:private-next-pages\\/|next\\/(?:dist\\/pages\\/|(?:app|document|link|image|constants)$)|string-hash$)/\n if (notExternalModules.test(request)) {\n return\n }\n }\n\n const resolve = getResolve(WEBPACK_RESOLVE_OPTIONS)\n\n // Resolve the import with the webpack provided context, this\n // ensures we're resolving the correct version when multiple\n // exist.\n let res: string\n try {\n res = await resolve(context, request)\n } catch (err) {\n // If the request cannot be resolved, we need to tell webpack to\n // \"bundle\" it so that webpack shows an error (that it cannot be\n // resolved).\n return\n }\n\n // Same as above, if the request cannot be resolved we need to have\n // webpack \"bundle\" it so it surfaces the not found error.\n if (!res) {\n return\n }\n\n if (isLocal) {\n // we need to process next-server/lib/router/router so that\n // the DefinePlugin can inject process.env values\n const isNextExternal = /next[/\\\\]dist[/\\\\]next-server[/\\\\](?!lib[/\\\\]router[/\\\\]router)/.test(\n res\n )\n\n if (isNextExternal) {\n // Generate Next.js external import\n const externalRequest = path.posix.join(\n 'next',\n 'dist',\n path\n .relative(\n // Root of Next.js package:\n path.join(__dirname, '..'),\n res\n )\n // Windows path normalization\n .replace(/\\\\/g, '/')\n )\n return `commonjs ${externalRequest}`\n } else {\n return\n }\n }\n\n // Bundled Node.js code is relocated without its node_modules tree.\n // This means we need to make sure its request resolves to the same\n // package that'll be available at runtime. If it's not identical,\n // we need to bundle the code (even if it _should_ be external).\n let baseRes: string | null\n try {\n const baseResolve = getResolve(NODE_RESOLVE_OPTIONS)\n baseRes = await baseResolve(dir, request)\n } catch (err) {\n baseRes = null\n }\n\n // Same as above: if the package, when required from the root,\n // would be different from what the real resolution would use, we\n // cannot externalize it.\n // if res or baseRes are symlinks they could point to the the same file,\n // but the resolver will resolve symlinks so this is already handled\n if (baseRes !== res) {\n return\n }\n\n if (\n res.match(\n /next[/\\\\]dist[/\\\\]next-server[/\\\\](?!lib[/\\\\]router[/\\\\]router)/\n )\n ) {\n return `commonjs ${request}`\n }\n\n // Default pages have to be transpiled\n if (\n res.match(/[/\\\\]next[/\\\\]dist[/\\\\]/) ||\n // This is the @babel/plugin-transform-runtime \"helpers: true\" option\n res.match(/node_modules[/\\\\]@babel[/\\\\]runtime[/\\\\]/)\n ) {\n return\n }\n\n // Webpack itself has to be compiled because it doesn't always use module relative paths\n if (\n res.match(/node_modules[/\\\\]webpack/) ||\n res.match(/node_modules[/\\\\]css-loader/)\n ) {\n return\n }\n\n // Anything else that is standard JavaScript within `node_modules`\n // can be externalized.\n if (/node_modules[/\\\\].*\\.c?js$/.test(res)) {\n return `commonjs ${request}`\n }\n\n // Default behavior: bundle the code!\n }\n\n const emacsLockfilePattern = '**/.#*'\n\n let webpackConfig: webpack.Configuration = {\n externals: !isServer\n ? // make sure importing \"next\" is handled gracefully for client\n // bundles in case a user imported types and it wasn't removed\n // TODO: should we warn/error for this instead?\n ['next']\n : !isServerless\n ? [\n isWebpack5\n ? ({\n context,\n request,\n getResolve,\n }: {\n context: string\n request: string\n getResolve: (\n options: any\n ) => (\n resolveContext: string,\n resolveRequest: string\n ) => Promise<string>\n }) => handleExternals(context, request, getResolve)\n : (\n context: string,\n request: string,\n callback: (err?: Error, result?: string | undefined) => void\n ) =>\n handleExternals(\n context,\n request,\n () => (resolveContext: string, requestToResolve: string) =>\n new Promise((resolve) =>\n resolve(\n require.resolve(requestToResolve, {\n paths: [resolveContext],\n })\n )\n )\n ).then((result) => callback(undefined, result), callback),\n ]\n : [\n // When the 'serverless' target is used all node_modules will be compiled into the output bundles\n // So that the 'serverless' bundles have 0 runtime dependencies\n 'next/dist/compiled/@ampproject/toolbox-optimizer', // except this one\n\n // Mark this as external if not enabled so it doesn't cause a\n // webpack error from being missing\n ...(config.experimental.optimizeCss ? [] : ['critters']),\n ],\n optimization: {\n // Webpack 5 uses a new property for the same functionality\n ...(isWebpack5 ? { emitOnErrors: !dev } : { noEmitOnErrors: dev }),\n checkWasmTypes: false,\n nodeEnv: false,\n splitChunks: isServer\n ? isWebpack5 && !dev\n ? ({\n filename: '[name].js',\n // allow to split entrypoints\n chunks: 'all',\n // size of files is not so relevant for server build\n // we want to prefer deduplication to load less code\n minSize: 1000,\n } as any)\n : false\n : splitChunksConfig,\n runtimeChunk: isServer\n ? isWebpack5 && !isLikeServerless\n ? { name: 'webpack-runtime' }\n : undefined\n : { name: CLIENT_STATIC_FILES_RUNTIME_WEBPACK },\n minimize: !(dev || isServer),\n minimizer: [\n // Minify JavaScript\n (compiler: webpack.Compiler) => {\n // @ts-ignore No typings yet\n const {\n TerserPlugin,\n } = require('./webpack/plugins/terser-webpack-plugin/src/index.js')\n new TerserPlugin({\n cacheDir: path.join(distDir, 'cache', 'next-minifier'),\n parallel: config.experimental.cpus,\n terserOptions,\n }).apply(compiler)\n },\n // Minify CSS\n (compiler: webpack.Compiler) => {\n const {\n CssMinimizerPlugin,\n } = require('./webpack/plugins/css-minimizer-plugin')\n new CssMinimizerPlugin({\n postcssOptions: {\n map: {\n // `inline: false` generates the source map in a separate file.\n // Otherwise, the CSS file is needlessly large.\n inline: false,\n // `annotation: false` skips appending the `sourceMappingURL`\n // to the end of the CSS file. Webpack already handles this.\n annotation: false,\n },\n },\n }).apply(compiler)\n },\n ],\n },\n context: dir,\n node: {\n setImmediate: false,\n },\n // Kept as function to be backwards compatible\n // @ts-ignore TODO webpack 5 typings needed\n entry: async () => {\n return {\n ...(clientEntries ? clientEntries : {}),\n ...entrypoints,\n }\n },\n watchOptions: {\n aggregateTimeout: 5,\n ignored: [\n '**/.git/**',\n '**/node_modules/**',\n '**/.next/**',\n // can be removed after https://github.com/paulmillr/chokidar/issues/955 is released\n emacsLockfilePattern,\n ],\n },\n output: {\n ...(isWebpack5\n ? {\n environment: {\n arrowFunction: false,\n bigIntLiteral: false,\n const: false,\n destructuring: false,\n dynamicImport: false,\n forOf: false,\n module: false,\n },\n }\n : {}),\n // we must set publicPath to an empty value to override the default of\n // auto which doesn't work in IE11\n publicPath: `${config.assetPrefix || ''}/_next/`,\n path:\n isServer && isWebpack5 && !dev\n ? path.join(outputPath, 'chunks')\n : outputPath,\n // On the server we don't use hashes\n filename: isServer\n ? isWebpack5 && !dev\n ? '../[name].js'\n : '[name].js'\n : `static/chunks/${isDevFallback ? 'fallback/' : ''}[name]${\n dev ? '' : isWebpack5 ? '-[contenthash]' : '-[chunkhash]'\n }.js`,\n library: isServer ? undefined : '_N_E',\n libraryTarget: isServer ? 'commonjs2' : 'assign',\n hotUpdateChunkFilename: isWebpack5\n ? 'static/webpack/[id].[fullhash].hot-update.js'\n : 'static/webpack/[id].[hash].hot-update.js',\n hotUpdateMainFilename: isWebpack5\n ? 'static/webpack/[fullhash].[runtime].hot-update.json'\n : 'static/webpack/[hash].hot-update.json',\n // This saves chunks with the name given via `import()`\n chunkFilename: isServer\n ? '[name].js'\n : `static/chunks/${isDevFallback ? 'fallback/' : ''}${\n dev ? '[name]' : '[name].[contenthash]'\n }.js`,\n strictModuleExceptionHandling: true,\n crossOriginLoading: crossOrigin,\n futureEmitAssets: !dev,\n webassemblyModuleFilename: 'static/wasm/[modulehash].wasm',\n },\n performance: false,\n // TODO: fix this\n // @ts-ignore\n resolve: resolveConfig,\n resolveLoader: {\n // The loaders Next.js provides\n alias: [\n 'emit-file-loader',\n 'error-loader',\n 'next-babel-loader',\n 'next-client-pages-loader',\n 'next-image-loader',\n 'next-serverless-loader',\n 'noop-loader',\n 'next-style-loader',\n ].reduce((alias, loader) => {\n // using multiple aliases to replace `resolveLoader.modules`\n alias[loader] = path.join(__dirname, 'webpack', 'loaders', loader)\n\n return alias\n }, {} as Record<string, string>),\n modules: [\n 'node_modules',\n ...nodePathList, // Support for NODE_PATH environment variable\n ],\n plugins: isWebpack5 ? [] : [require('pnp-webpack-plugin')],\n },\n module: {\n rules: [\n ...(isWebpack5\n ? [\n // TODO: FIXME: do NOT webpack 5 support with this\n // x-ref: https://github.com/webpack/webpack/issues/11467\n {\n test: /\\.m?js/,\n resolve: {\n fullySpecified: false,\n },\n } as any,\n ]\n : []),\n {\n test: /\\.(tsx|ts|js|mjs|jsx)$/,\n ...(config.experimental.externalDir\n ? // Allowing importing TS/TSX files from outside of the root dir.\n {}\n : { include: [dir, ...babelIncludeRegexes] }),\n exclude: (excludePath: string) => {\n if (babelIncludeRegexes.some((r) => r.test(excludePath))) {\n return false\n }\n return /node_modules/.test(excludePath)\n },\n use: hasReactRefresh\n ? [\n require.resolve('@next/react-refresh-utils/loader'),\n defaultLoaders.babel,\n ]\n : defaultLoaders.babel,\n },\n ].filter(Boolean),\n },\n plugins: [\n hasReactRefresh && new ReactRefreshWebpackPlugin(webpack),\n // Makes sure `Buffer` and `process` are polyfilled in client-side bundles (same behavior as webpack 4)\n isWebpack5 &&\n !isServer &&\n new webpack.ProvidePlugin({\n Buffer: [require.resolve('buffer'), 'Buffer'],\n process: [require.resolve('process')],\n }),\n // This plugin makes sure `output.filename` is used for entry chunks\n !isWebpack5 && new ChunkNamesPlugin(),\n new webpack.DefinePlugin({\n ...Object.keys(process.env).reduce(\n (prev: { [key: string]: string }, key: string) => {\n if (key.startsWith('NEXT_PUBLIC_')) {\n prev[`process.env.${key}`] = JSON.stringify(process.env[key]!)\n }\n return prev\n },\n {}\n ),\n ...Object.keys(config.env).reduce((acc, key) => {\n if (/^(?:NODE_.+)|^(?:__.+)$/i.test(key)) {\n throw new Error(\n `The key \"${key}\" under \"env\" in next.config.js is not allowed. https://nextjs.org/docs/messages/env-key-not-allowed`\n )\n }\n\n return {\n ...acc,\n [`process.env.${key}`]: JSON.stringify(config.env[key]),\n }\n }, {}),\n // TODO: enforce `NODE_ENV` on `process.env`, and add a test:\n 'process.env.NODE_ENV': JSON.stringify(\n dev ? 'development' : 'production'\n ),\n 'process.env.__NEXT_CROSS_ORIGIN': JSON.stringify(crossOrigin),\n 'process.browser': JSON.stringify(!isServer),\n 'process.env.__NEXT_TEST_MODE': JSON.stringify(\n process.env.__NEXT_TEST_MODE\n ),\n // This is used in client/dev-error-overlay/hot-dev-client.js to replace the dist directory\n ...(dev && !isServer\n ? {\n 'process.env.__NEXT_DIST_DIR': JSON.stringify(distDir),\n }\n : {}),\n 'process.env.__NEXT_TRAILING_SLASH': JSON.stringify(\n config.trailingSlash\n ),\n 'process.env.__NEXT_BUILD_INDICATOR': JSON.stringify(\n config.devIndicators.buildActivity\n ),\n 'process.env.__NEXT_PLUGINS': JSON.stringify(\n config.experimental.plugins\n ),\n 'process.env.__NEXT_STRICT_MODE': JSON.stringify(\n config.reactStrictMode\n ),\n 'process.env.__NEXT_REACT_ROOT': JSON.stringify(hasReactRoot),\n 'process.env.__NEXT_OPTIMIZE_FONTS': JSON.stringify(\n config.optimizeFonts && !dev\n ),\n 'process.env.__NEXT_OPTIMIZE_IMAGES': JSON.stringify(\n config.experimental.optimizeImages\n ),\n 'process.env.__NEXT_OPTIMIZE_CSS': JSON.stringify(\n config.experimental.optimizeCss && !dev\n ),\n 'process.env.__NEXT_SCROLL_RESTORATION': JSON.stringify(\n config.experimental.scrollRestoration\n ),\n 'process.env.__NEXT_IMAGE_OPTS': JSON.stringify({\n deviceSizes: config.images.deviceSizes,\n imageSizes: config.images.imageSizes,\n path: config.images.path,\n loader: config.images.loader,\n ...(dev\n ? {\n // pass domains in development to allow validating on the client\n domains: config.images.domains,\n }\n : {}),\n }),\n 'process.env.__NEXT_ROUTER_BASEPATH': JSON.stringify(config.basePath),\n 'process.env.__NEXT_HAS_REWRITES': JSON.stringify(hasRewrites),\n 'process.env.__NEXT_I18N_SUPPORT': JSON.stringify(!!config.i18n),\n 'process.env.__NEXT_I18N_DOMAINS': JSON.stringify(config.i18n?.domains),\n 'process.env.__NEXT_ANALYTICS_ID': JSON.stringify(config.analyticsId),\n ...(isServer\n ? {\n // Fix bad-actors in the npm ecosystem (e.g. `node-formidable`)\n // This is typically found in unmaintained modules from the\n // pre-webpack era (common in server-side code)\n 'global.GENTLY': JSON.stringify(false),\n }\n : undefined),\n // stub process.env with proxy to warn a missing value is\n // being accessed in development mode\n ...(config.experimental.pageEnv && dev\n ? {\n 'process.env': `\n new Proxy(${isServer ? 'process.env' : '{}'}, {\n get(target, prop) {\n if (typeof target[prop] === 'undefined') {\n console.warn(\\`An environment variable (\\${prop}) that was not provided in the environment was accessed.\\nSee more info here: https://nextjs.org/docs/messages/missing-env-value\\`)\n }\n return target[prop]\n }\n })\n `,\n }\n : {}),\n }),\n !isServer &&\n new ReactLoadablePlugin({\n filename: REACT_LOADABLE_MANIFEST,\n pagesDirs,\n }),\n !isServer && new DropClientPage(),\n // Moment.js is an extremely popular library that bundles large locale files\n // by default due to how Webpack interprets its code. This is a practical\n // solution that requires the user to opt into importing specific locales.\n // https://github.com/jmblog/how-to-optimize-momentjs-with-webpack\n config.excludeDefaultMomentLocales &&\n new webpack.IgnorePlugin({\n resourceRegExp: /^\\.\\/locale$/,\n contextRegExp: /moment$/,\n }),\n ...(dev\n ? (() => {\n // Even though require.cache is server only we have to clear assets from both compilations\n // This is because the client compilation generates the build manifest that's used on the server side\n const {\n NextJsRequireCacheHotReloader,\n } = require('./webpack/plugins/nextjs-require-cache-hot-reloader')\n const devPlugins = [new NextJsRequireCacheHotReloader()]\n\n if (!isServer) {\n devPlugins.push(new webpack.HotModuleReplacementPlugin())\n }\n\n return devPlugins\n })()\n : []),\n // Webpack 5 no longer requires this plugin in production:\n !isWebpack5 && !dev && new webpack.HashedModuleIdsPlugin(),\n !dev &&\n new webpack.IgnorePlugin({\n resourceRegExp: /react-is/,\n contextRegExp: /(next-server|next)[\\\\/]dist[\\\\/]/,\n }),\n isServerless && isServer && new ServerlessPlugin(),\n isServer &&\n new PagesManifestPlugin({ serverless: isLikeServerless, dev }),\n !isWebpack5 &&\n target === 'server' &&\n isServer &&\n new NextJsSSRModuleCachePlugin({ outputPath }),\n isServer && new NextJsSsrImportPlugin(),\n !isServer &&\n new BuildManifestPlugin({\n buildId,\n rewrites,\n isDevFallback,\n }),\n !dev &&\n !isServer &&\n config.experimental.stats &&\n new BuildStatsPlugin({\n distDir,\n }),\n new ProfilingPlugin(),\n config.optimizeFonts &&\n !dev &&\n isServer &&\n (function () {\n const {\n FontStylesheetGatheringPlugin,\n } = require('./webpack/plugins/font-stylesheet-gathering-plugin') as {\n FontStylesheetGatheringPlugin: typeof import('./webpack/plugins/font-stylesheet-gathering-plugin').FontStylesheetGatheringPlugin\n }\n return new FontStylesheetGatheringPlugin({\n isLikeServerless,\n })\n })(),\n config.experimental.conformance &&\n !isWebpack5 &&\n !dev &&\n new WebpackConformancePlugin({\n tests: [\n !isServer &&\n conformanceConfig.MinificationConformanceCheck.enabled &&\n new MinificationConformanceCheck(),\n conformanceConfig.ReactSyncScriptsConformanceCheck.enabled &&\n new ReactSyncScriptsConformanceCheck({\n AllowedSources:\n conformanceConfig.ReactSyncScriptsConformanceCheck\n .allowedSources || [],\n }),\n !isServer &&\n conformanceConfig.DuplicatePolyfillsConformanceCheck.enabled &&\n new DuplicatePolyfillsConformanceCheck({\n BlockedAPIToBePolyfilled:\n conformanceConfig.DuplicatePolyfillsConformanceCheck\n .BlockedAPIToBePolyfilled,\n }),\n !isServer &&\n conformanceConfig.GranularChunksConformanceCheck.enabled &&\n new GranularChunksConformanceCheck(\n splitChunksConfigs.prodGranular\n ),\n ].filter(Boolean),\n }),\n new WellKnownErrorsPlugin(),\n ].filter((Boolean as any) as ExcludesFalse),\n }\n\n // Support tsconfig and jsconfig baseUrl\n if (resolvedBaseUrl) {\n webpackConfig.resolve?.modules?.push(resolvedBaseUrl)\n }\n\n if (jsConfig?.compilerOptions?.paths && resolvedBaseUrl) {\n webpackConfig.resolve?.plugins?.unshift(\n new JsConfigPathsPlugin(jsConfig.compilerOptions.paths, resolvedBaseUrl)\n )\n }\n\n if (isWebpack5) {\n // futureEmitAssets is on by default in webpack 5\n delete webpackConfig.output?.futureEmitAssets\n\n if (isServer && dev) {\n // Enable building of client compilation before server compilation in development\n // @ts-ignore dependencies exists\n webpackConfig.dependencies = ['client']\n }\n // webpack 5 no longer polyfills Node.js modules:\n if (webpackConfig.node) delete webpackConfig.node.setImmediate\n\n // Due to bundling of webpack the default values can't be correctly detected\n // This restores the webpack defaults\n // @ts-ignore webpack 5\n webpackConfig.snapshot = {}\n if (process.versions.pnp === '3') {\n const match = /^(.+?)[\\\\/]cache[\\\\/]jest-worker-npm-[^\\\\/]+\\.zip[\\\\/]node_modules[\\\\/]/.exec(\n require.resolve('jest-worker')\n )\n if (match) {\n // @ts-ignore webpack 5\n webpackConfig.snapshot.managedPaths = [\n path.resolve(match[1], 'unplugged'),\n ]\n }\n } else {\n const match = /^(.+?[\\\\/]node_modules)[\\\\/]/.exec(\n require.resolve('jest-worker')\n )\n if (match) {\n // @ts-ignore webpack 5\n webpackConfig.snapshot.managedPaths = [match[1]]\n }\n }\n if (process.versions.pnp === '1') {\n const match = /^(.+?[\\\\/]v4)[\\\\/]npm-jest-worker-[^\\\\/]+-[\\da-f]{40}[\\\\/]node_modules[\\\\/]/.exec(\n require.resolve('jest-worker')\n )\n if (match) {\n // @ts-ignore webpack 5\n webpackConfig.snapshot.immutablePaths = [match[1]]\n }\n } else if (process.versions.pnp === '3') {\n const match = /^(.+?)[\\\\/]jest-worker-npm-[^\\\\/]+\\.zip[\\\\/]node_modules[\\\\/]/.exec(\n require.resolve('jest-worker')\n )\n if (match) {\n // @ts-ignore webpack 5\n webpackConfig.snapshot.immutablePaths = [match[1]]\n }\n }\n\n if (dev) {\n if (!webpackConfig.optimization) {\n webpackConfig.optimization = {}\n }\n webpackConfig.optimization.providedExports = false\n webpackConfig.optimization.usedExports = false\n }\n\n const configVars = JSON.stringify({\n crossOrigin: config.crossOrigin,\n pageExtensions: config.pageExtensions,\n trailingSlash: config.trailingSlash,\n buildActivity: config.devIndicators.buildActivity,\n plugins: config.experimental.plugins,\n reactStrictMode: config.reactStrictMode,\n reactMode: config.experimental.reactMode,\n optimizeFonts: config.optimizeFonts,\n optimizeImages: config.experimental.optimizeImages,\n optimizeCss: config.experimental.optimizeCss,\n scrollRestoration: config.experimental.scrollRestoration,\n basePath: config.basePath,\n pageEnv: config.experimental.pageEnv,\n excludeDefaultMomentLocales: config.excludeDefaultMomentLocales,\n assetPrefix: config.assetPrefix,\n disableOptimizedLoading: config.experimental.disableOptimizedLoading,\n target,\n reactProductionProfiling,\n webpack: !!config.webpack,\n hasRewrites,\n })\n\n const cache: any = {\n type: 'filesystem',\n // Includes:\n // - Next.js version\n // - next.config.js keys that affect compilation\n version: `${process.env.__NEXT_VERSION}|${configVars}`,\n cacheDirectory: path.join(distDir, 'cache', 'webpack'),\n }\n\n // Adds `next.config.js` as a buildDependency when custom webpack config is provided\n if (config.webpack && config.configFile) {\n cache.buildDependencies = {\n config: [config.configFile],\n }\n }\n\n webpackConfig.cache = cache\n\n if (process.env.NEXT_WEBPACK_LOGGING) {\n const logInfra = process.env.NEXT_WEBPACK_LOGGING.includes(\n 'infrastructure'\n )\n const logProfileClient = process.env.NEXT_WEBPACK_LOGGING.includes(\n 'profile-client'\n )\n const logProfileServer = process.env.NEXT_WEBPACK_LOGGING.includes(\n 'profile-server'\n )\n const logDefault = !logInfra && !logProfileClient && !logProfileServer\n\n if (logDefault || logInfra) {\n // @ts-ignore TODO: remove ignore when webpack 5 is stable\n webpackConfig.infrastructureLogging = {\n level: 'verbose',\n debug: /FileSystemInfo/,\n }\n }\n\n if (\n logDefault ||\n (logProfileClient && !isServer) ||\n (logProfileServer && isServer)\n ) {\n webpackConfig.plugins!.push((compiler: webpack.Compiler) => {\n compiler.hooks.done.tap('next-webpack-logging', (stats) => {\n console.log(\n stats.toString({\n colors: true,\n // @ts-ignore TODO: remove ignore when webpack 5 is stable\n logging: logDefault ? 'log' : 'verbose',\n })\n )\n })\n })\n }\n\n if ((logProfileClient && !isServer) || (logProfileServer && isServer)) {\n webpackConfig.plugins!.push(\n new webpack.ProgressPlugin({\n // @ts-ignore TODO: remove ignore when webpack 5 is stable\n profile: true,\n })\n )\n webpackConfig.profile = true\n }\n }\n }\n\n webpackConfig = await buildConfiguration(webpackConfig, {\n rootDirectory: dir,\n customAppFile,\n isDevelopment: dev,\n isServer,\n assetPrefix: config.assetPrefix || '',\n sassOptions: config.sassOptions,\n productionBrowserSourceMaps: config.productionBrowserSourceMaps,\n future: config.future,\n isCraCompat: config.experimental.craCompat,\n })\n\n let originalDevtool = webpackConfig.devtool\n if (typeof config.webpack === 'function') {\n webpackConfig = config.webpack(webpackConfig, {\n dir,\n dev,\n isServer,\n buildId,\n config,\n defaultLoaders,\n totalPages,\n webpack,\n })\n\n if (!webpackConfig) {\n throw new Error(\n 'Webpack config is undefined. You may have forgot to return properly from within the \"webpack\" method of your next.config.js.\\n' +\n 'See more info here https://nextjs.org/docs/messages/undefined-webpack-config'\n )\n }\n\n if (dev && originalDevtool !== webpackConfig.devtool) {\n webpackConfig.devtool = originalDevtool\n devtoolRevertWarning(originalDevtool)\n }\n\n if (typeof (webpackConfig as any).then === 'function') {\n console.warn(\n '> Promise returned in next config. https://nextjs.org/docs/messages/promise-in-next-config'\n )\n }\n }\n\n if (!config.images.disableStaticImages && isWebpack5) {\n if (!webpackConfig.module) {\n webpackConfig.module = { rules: [] }\n }\n\n const hasSvg = webpackConfig.module.rules.some(\n (rule) =>\n 'test' in rule && rule.test instanceof RegExp && rule.test.test('.svg')\n )\n\n // Exclude svg if the user already defined it in custom\n // webpack config such as `@svgr/webpack` plugin or\n // the `babel-plugin-inline-react-svg` plugin.\n webpackConfig.module.rules.push({\n test: hasSvg\n ? /\\.(png|jpg|jpeg|gif|webp|ico|bmp)$/i\n : /\\.(png|svg|jpg|jpeg|gif|webp|ico|bmp)$/i,\n loader: 'next-image-loader',\n dependency: { not: ['url'] },\n // @ts-ignore\n issuer: { not: regexLikeCss },\n })\n }\n\n if (\n config.experimental.craCompat &&\n webpackConfig.module?.rules &&\n webpackConfig.plugins\n ) {\n // CRA prevents loading all locales by default\n // https://github.com/facebook/create-react-app/blob/fddce8a9e21bf68f37054586deb0c8636a45f50b/packages/react-scripts/config/webpack.config.js#L721\n webpackConfig.plugins.push(\n new webpack.IgnorePlugin(/^\\.\\/locale$/, /moment$/)\n )\n\n // CRA allows importing non-webpack handled files with file-loader\n // these need to be the last rule to prevent catching other items\n // https://github.com/facebook/create-react-app/blob/fddce8a9e21bf68f37054586deb0c8636a45f50b/packages/react-scripts/config/webpack.config.js#L594\n const fileLoaderExclude = [/\\.(js|mjs|jsx|ts|tsx|json)$/]\n const fileLoader = isWebpack5\n ? {\n exclude: fileLoaderExclude,\n issuer: fileLoaderExclude,\n type: 'asset/resource',\n generator: {\n publicPath: '/_next/',\n filename: 'static/media/[name].[hash:8].[ext]',\n },\n }\n : {\n loader: require.resolve('next/dist/compiled/file-loader'),\n // Exclude `js` files to keep \"css\" loader working as it injects\n // its runtime that would otherwise be processed through \"file\" loader.\n // Also exclude `html` and `json` extensions so they get processed\n // by webpacks internal loaders.\n exclude: fileLoaderExclude,\n issuer: fileLoaderExclude,\n options: {\n publicPath: '/_next/static/media',\n outputPath: 'static/media',\n name: '[name].[hash:8].[ext]',\n },\n }\n\n const topRules = []\n const innerRules = []\n\n for (const rule of webpackConfig.module.rules) {\n if (rule.resolve) {\n topRules.push(rule)\n } else {\n if (\n rule.oneOf &&\n !(rule.test || rule.exclude || rule.resource || rule.issuer)\n ) {\n rule.oneOf.forEach((r) => innerRules.push(r))\n } else {\n innerRules.push(rule)\n }\n }\n }\n\n webpackConfig.module.rules = [\n ...(topRules as any),\n {\n oneOf: [...innerRules, fileLoader],\n },\n ]\n }\n\n // Backwards compat with webpack-dev-middleware options object\n if (typeof config.webpackDevMiddleware === 'function') {\n const options = config.webpackDevMiddleware({\n watchOptions: webpackConfig.watchOptions,\n })\n if (options.watchOptions) {\n webpackConfig.watchOptions = options.watchOptions\n }\n }\n\n function canMatchCss(rule: webpack.RuleSetCondition | undefined): boolean {\n if (!rule) {\n return false\n }\n\n const fileNames = [\n '/tmp/test.css',\n '/tmp/test.scss',\n '/tmp/test.sass',\n '/tmp/test.less',\n '/tmp/test.styl',\n ]\n\n if (rule instanceof RegExp && fileNames.some((input) => rule.test(input))) {\n return true\n }\n\n if (typeof rule === 'function') {\n if (\n fileNames.some((input) => {\n try {\n if (rule(input)) {\n return true\n }\n } catch (_) {}\n return false\n })\n ) {\n return true\n }\n }\n\n if (Array.isArray(rule) && rule.some(canMatchCss)) {\n return true\n }\n\n return false\n }\n\n const hasUserCssConfig =\n webpackConfig.module?.rules.some(\n (rule) => canMatchCss(rule.test) || canMatchCss(rule.include)\n ) ?? false\n\n if (hasUserCssConfig) {\n // only show warning for one build\n if (isServer) {\n console.warn(\n chalk.yellow.bold('Warning: ') +\n chalk.bold(\n 'Built-in CSS support is being disabled due to custom CSS configuration being detected.\\n'\n ) +\n 'See here for more info: https://nextjs.org/docs/messages/built-in-css-disabled\\n'\n )\n }\n\n if (webpackConfig.module?.rules.length) {\n // Remove default CSS Loader\n webpackConfig.module.rules = webpackConfig.module.rules.filter(\n (r) =>\n !(\n typeof r.oneOf?.[0]?.options === 'object' &&\n r.oneOf[0].options.__next_css_remove === true\n )\n )\n }\n if (webpackConfig.plugins?.length) {\n // Disable CSS Extraction Plugin\n webpackConfig.plugins = webpackConfig.plugins.filter(\n (p) => (p as any).__next_css_remove !== true\n )\n }\n if (webpackConfig.optimization?.minimizer?.length) {\n // Disable CSS Minifier\n webpackConfig.optimization.minimizer = webpackConfig.optimization.minimizer.filter(\n (e) => (e as any).__next_css_remove !== true\n )\n }\n } else if (!config.future.strictPostcssConfiguration) {\n await __overrideCssConfiguration(dir, !dev, webpackConfig)\n }\n\n // Inject missing React Refresh loaders so that development mode is fast:\n if (hasReactRefresh) {\n attachReactRefresh(webpackConfig, defaultLoaders.babel)\n }\n\n // check if using @zeit/next-typescript and show warning\n if (\n isServer &&\n webpackConfig.module &&\n Array.isArray(webpackConfig.module.rules)\n ) {\n let foundTsRule = false\n\n webpackConfig.module.rules = webpackConfig.module.rules.filter(\n (rule): boolean => {\n if (!(rule.test instanceof RegExp)) return true\n if ('noop.ts'.match(rule.test) && !'noop.js'.match(rule.test)) {\n // remove if it matches @zeit/next-typescript\n foundTsRule = rule.use === defaultLoaders.babel\n return !foundTsRule\n }\n return true\n }\n )\n\n if (foundTsRule) {\n console.warn(\n '\\n@zeit/next-typescript is no longer needed since Next.js has built-in support for TypeScript now. Please remove it from your next.config.js and your .babelrc\\n'\n )\n }\n }\n\n // Patch `@zeit/next-sass`, `@zeit/next-less`, `@zeit/next-stylus` for compatibility\n if (webpackConfig.module && Array.isArray(webpackConfig.module.rules)) {\n ;[].forEach.call(webpackConfig.module.rules, function (\n rule: webpack.RuleSetRule\n ) {\n if (!(rule.test instanceof RegExp && Array.isArray(rule.use))) {\n return\n }\n\n const isSass =\n rule.test.source === '\\\\.scss$' || rule.test.source === '\\\\.sass$'\n const isLess = rule.test.source === '\\\\.less$'\n const isCss = rule.test.source === '\\\\.css$'\n const isStylus = rule.test.source === '\\\\.styl$'\n\n // Check if the rule we're iterating over applies to Sass, Less, or CSS\n if (!(isSass || isLess || isCss || isStylus)) {\n return\n }\n\n ;[].forEach.call(rule.use, function (use: webpack.RuleSetUseItem) {\n if (\n !(\n use &&\n typeof use === 'object' &&\n // Identify use statements only pertaining to `css-loader`\n (use.loader === 'css-loader' ||\n use.loader === 'css-loader/locals') &&\n use.options &&\n typeof use.options === 'object' &&\n // The `minimize` property is a good heuristic that we need to\n // perform this hack. The `minimize` property was only valid on\n // old `css-loader` versions. Custom setups (that aren't next-sass,\n // next-less or next-stylus) likely have the newer version.\n // We still handle this gracefully below.\n (Object.prototype.hasOwnProperty.call(use.options, 'minimize') ||\n Object.prototype.hasOwnProperty.call(\n use.options,\n 'exportOnlyLocals'\n ))\n )\n ) {\n return\n }\n\n // Try to monkey patch within a try-catch. We shouldn't fail the build\n // if we cannot pull this off.\n // The user may not even be using the `next-sass` or `next-less` or\n // `next-stylus` plugins.\n // If it does work, great!\n try {\n // Resolve the version of `@zeit/next-css` as depended on by the Sass,\n // Less or Stylus plugin.\n const correctNextCss = require.resolve('@zeit/next-css', {\n paths: [\n isCss\n ? // Resolve `@zeit/next-css` from the base directory\n dir\n : // Else, resolve it from the specific plugins\n require.resolve(\n isSass\n ? '@zeit/next-sass'\n : isLess\n ? '@zeit/next-less'\n : isStylus\n ? '@zeit/next-stylus'\n : 'next'\n ),\n ],\n })\n\n // If we found `@zeit/next-css` ...\n if (correctNextCss) {\n // ... resolve the version of `css-loader` shipped with that\n // package instead of whichever was hoisted highest in your\n // `node_modules` tree.\n const correctCssLoader = require.resolve(use.loader, {\n paths: [correctNextCss],\n })\n if (correctCssLoader) {\n // We saved the user from a failed build!\n use.loader = correctCssLoader\n }\n }\n } catch (_) {\n // The error is not required to be handled.\n }\n })\n })\n }\n\n // Backwards compat for `main.js` entry key\n // and setup of dependencies between entries\n // we can't do that in the initial entry for\n // backward-compat reasons\n const originalEntry: any = webpackConfig.entry\n if (typeof originalEntry !== 'undefined') {\n const updatedEntry = async () => {\n const entry: WebpackEntrypoints =\n typeof originalEntry === 'function'\n ? await originalEntry()\n : originalEntry\n // Server compilation doesn't have main.js\n if (\n clientEntries &&\n Array.isArray(entry['main.js']) &&\n entry['main.js'].length > 0\n ) {\n const originalFile = clientEntries[\n CLIENT_STATIC_FILES_RUNTIME_MAIN\n ] as string\n entry[CLIENT_STATIC_FILES_RUNTIME_MAIN] = [\n ...entry['main.js'],\n originalFile,\n ]\n }\n delete entry['main.js']\n\n if (isWebpack5 && !isServer) {\n for (const name of Object.keys(entry)) {\n if (\n name === 'polyfills' ||\n name === 'main' ||\n name === 'amp' ||\n name === 'react-refresh'\n )\n continue\n const dependOn =\n name.startsWith('pages/') && name !== 'pages/_app'\n ? 'pages/_app'\n : 'main'\n const old = entry[name]\n if (typeof old === 'object' && !Array.isArray(old)) {\n entry[name] = {\n dependOn,\n ...old,\n }\n } else {\n entry[name] = {\n import: old,\n dependOn,\n }\n }\n }\n }\n\n return entry\n }\n // @ts-ignore webpack 5 typings needed\n webpackConfig.entry = updatedEntry\n }\n\n if (!dev) {\n // entry is always a function\n webpackConfig.entry = await (webpackConfig.entry as webpack.EntryFunc)()\n }\n\n return webpackConfig\n}\n"]}
\ No newline at end of file
diff --git a/node_modules/next/dist/build/webpack/loaders/next-babel-loader.js b/node_modules/next/dist/build/webpack/loaders/next-babel-loader.js
index 8f5f4e5..72070ae 100644
--- a/node_modules/next/dist/build/webpack/loaders/next-babel-loader.js
+++ b/node_modules/next/dist/build/webpack/loaders/next-babel-loader.js
@@ -1,8 +1,8 @@
"use strict";exports.__esModule=true;exports.default=void 0;var _path=require("path");var Log=_interopRequireWildcard(require("../../output/log"));var _index=_interopRequireDefault(require("./babel-loader/src/index"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var cache=new WeakMap();_getRequireWildcardCache=function(){return cache;};return cache;}function _interopRequireWildcard(obj){if(obj&&obj.__esModule){return obj;}if(obj===null||typeof obj!=="object"&&typeof obj!=="function"){return{default:obj};}var cache=_getRequireWildcardCache();if(cache&&cache.has(obj)){return cache.get(obj);}var newObj={};var hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj){if(Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;if(desc&&(desc.get||desc.set)){Object.defineProperty(newObj,key,desc);}else{newObj[key]=obj[key];}}}newObj.default=obj;if(cache){cache.set(obj,newObj);}return newObj;}// increment 'p' to invalidate cache
// eslint-disable-next-line no-useless-concat
-const cacheKey='babel-cache-'+'p'+'-';const nextBabelPreset=require('../../babel/preset');const customBabelLoader=(0,_index.default)(babel=>{const presetItem=babel.createConfigItem(nextBabelPreset,{type:'preset'});const applyCommonJs=babel.createConfigItem(require('../../babel/plugins/commonjs'),{type:'plugin'});const commonJsItem=babel.createConfigItem(require('next/dist/compiled/babel/plugin-transform-modules-commonjs'),{type:'plugin'});const configs=new Set();return{customOptions(opts){const custom={isServer:opts.isServer,pagesDir:opts.pagesDir,development:opts.development,hasReactRefresh:opts.hasReactRefresh,hasJsxRuntime:opts.hasJsxRuntime};const filename=(0,_path.join)(opts.cwd,'noop.js');const loader=Object.assign(opts.cache?{cacheDirectory:(0,_path.join)(opts.distDir,'cache','next-babel-loader'),cacheIdentifier:cacheKey+(opts.isServer?'-server':'')+'-new-polyfills'+(opts.development?'-development':'-production')+(opts.hasReactRefresh?'-react-refresh':'')+(opts.hasJsxRuntime?'-jsx-runtime':'')+JSON.stringify(babel.loadPartialConfig({filename,cwd:opts.cwd,sourceFileName:filename}).options)}:{cacheDirectory:false},opts);delete loader.isServer;delete loader.cache;delete loader.distDir;delete loader.pagesDir;delete loader.development;delete loader.hasReactRefresh;delete loader.hasJsxRuntime;return{loader,custom};},config(cfg,{source,customOptions:{isServer,pagesDir,development,hasReactRefresh,hasJsxRuntime}}){const filename=this.resourcePath;const options=Object.assign({},cfg.options);const isPageFile=filename.startsWith(pagesDir);if(cfg.hasFilesystemConfig()){for(const file of[cfg.babelrc,cfg.config]){// We only log for client compilation otherwise there will be double output
+const cacheKey='babel-cache-'+'p'+'-';const nextBabelPreset=require('../../babel/preset');const customBabelLoader=(0,_index.default)(babel=>{const presetItem=babel.createConfigItem(nextBabelPreset,{type:'preset'});const applyCommonJs=babel.createConfigItem(require('../../babel/plugins/commonjs'),{type:'plugin'});const commonJsItem=babel.createConfigItem(require('next/dist/compiled/babel/plugin-transform-modules-commonjs'),{type:'plugin'});const configs=new Set();return{customOptions(opts){const custom={isServer:opts.isServer,pagesDirs:opts.pagesDirs,development:opts.development,hasReactRefresh:opts.hasReactRefresh,hasJsxRuntime:opts.hasJsxRuntime};const filename=(0,_path.join)(opts.cwd,'noop.js');const loader=Object.assign(opts.cache?{cacheDirectory:(0,_path.join)(opts.distDir,'cache','next-babel-loader'),cacheIdentifier:cacheKey+(opts.isServer?'-server':'')+'-new-polyfills'+(opts.development?'-development':'-production')+(opts.hasReactRefresh?'-react-refresh':'')+(opts.hasJsxRuntime?'-jsx-runtime':'')+JSON.stringify(babel.loadPartialConfig({filename,cwd:opts.cwd,sourceFileName:filename}).options)}:{cacheDirectory:false},opts);delete loader.isServer;delete loader.cache;delete loader.distDir;delete loader.pagesDirs;delete loader.development;delete loader.hasReactRefresh;delete loader.hasJsxRuntime;return{loader,custom};},config(cfg,{source,customOptions:{isServer,pagesDirs,development,hasReactRefresh,hasJsxRuntime}}){const filename=this.resourcePath;const options=Object.assign({},cfg.options);const isPageFile=new RegExp(`^((${pagesDirs.join(')|(')}))`).test(filename);if(cfg.hasFilesystemConfig()){for(const file of[cfg.babelrc,cfg.config]){// We only log for client compilation otherwise there will be double output
if(file&&!isServer&&!configs.has(file)){configs.add(file);Log.info(`Using external babel configuration from ${file}`);}}}else{// Add our default preset if the no "babelrc" found.
-options.presets=[...options.presets,presetItem];}options.caller.isServer=isServer;options.caller.isDev=development;options.caller.hasJsxRuntime=hasJsxRuntime;options.caller.pagesDir=pagesDir;const emitWarning=this.emitWarning.bind(this);Object.defineProperty(options.caller,'onWarning',{enumerable:false,writable:false,value:options.caller.onWarning=function(reason){if(!(reason instanceof Error)){reason=new Error(reason);}emitWarning(reason);}});options.plugins=options.plugins||[];if(hasReactRefresh){const reactRefreshPlugin=babel.createConfigItem([require('react-refresh/babel'),{skipEnvCheck:true}],{type:'plugin'});options.plugins.unshift(reactRefreshPlugin);if(!isServer){const noAnonymousDefaultExportPlugin=babel.createConfigItem([require('../../babel/plugins/no-anonymous-default-export'),{}],{type:'plugin'});options.plugins.unshift(noAnonymousDefaultExportPlugin);}}if(!isServer&&isPageFile){const pageConfigPlugin=babel.createConfigItem([require('../../babel/plugins/next-page-config')],{type:'plugin'});options.plugins.push(pageConfigPlugin);const diallowExportAll=babel.createConfigItem([require('../../babel/plugins/next-page-disallow-re-export-all-exports')],{type:'plugin'});options.plugins.push(diallowExportAll);}// If the file has `module.exports` we have to transpile commonjs because Babel adds `import` statements
+options.presets=[...options.presets,presetItem];}options.caller.isServer=isServer;options.caller.isDev=development;options.caller.hasJsxRuntime=hasJsxRuntime;options.caller.pagesDirs=pagesDirs;const emitWarning=this.emitWarning.bind(this);Object.defineProperty(options.caller,'onWarning',{enumerable:false,writable:false,value:options.caller.onWarning=function(reason){if(!(reason instanceof Error)){reason=new Error(reason);}emitWarning(reason);}});options.plugins=options.plugins||[];if(hasReactRefresh){const reactRefreshPlugin=babel.createConfigItem([require('react-refresh/babel'),{skipEnvCheck:true}],{type:'plugin'});options.plugins.unshift(reactRefreshPlugin);if(!isServer){const noAnonymousDefaultExportPlugin=babel.createConfigItem([require('../../babel/plugins/no-anonymous-default-export'),{}],{type:'plugin'});options.plugins.unshift(noAnonymousDefaultExportPlugin);}}if(!isServer&&isPageFile){const pageConfigPlugin=babel.createConfigItem([require('../../babel/plugins/next-page-config')],{type:'plugin'});options.plugins.push(pageConfigPlugin);const diallowExportAll=babel.createConfigItem([require('../../babel/plugins/next-page-disallow-re-export-all-exports')],{type:'plugin'});options.plugins.push(diallowExportAll);}// If the file has `module.exports` we have to transpile commonjs because Babel adds `import` statements
// That break webpack, since webpack doesn't support combining commonjs and esmodules
if(source.indexOf('module.exports')!==-1){options.plugins.push(applyCommonJs);}options.plugins.push([require.resolve('next/dist/compiled/babel/plugin-transform-define'),{'process.env.NODE_ENV':development?'development':'production','typeof window':isServer?'undefined':'object','process.browser':isServer?false:true},'next-js-transform-define-instance']);if(isPageFile){if(!isServer){options.plugins.push([require.resolve('../../babel/plugins/next-ssg-transform'),{}]);}}// As next-server/lib has stateful modules we have to transpile commonjs
options.overrides=[...(options.overrides||[]),{test:[/next[\\/]dist[\\/]next-server[\\/]lib/,/next[\\/]dist[\\/]client/,/next[\\/]dist[\\/]pages/],plugins:[commonJsItem]}];return options;}};});var _default=customBabelLoader;exports.default=_default;
diff --git a/node_modules/next/dist/build/webpack/loaders/next-babel-loader.js.map b/node_modules/next/dist/build/webpack/loaders/next-babel-loader.js.map
index 2da15f8..86fffeb 100644
--- a/node_modules/next/dist/build/webpack/loaders/next-babel-loader.js.map
+++ b/node_modules/next/dist/build/webpack/loaders/next-babel-loader.js.map
@@ -1 +1 @@
-{"version":3,"sources":["../../../../build/webpack/loaders/next-babel-loader.js"],"names":["cacheKey","nextBabelPreset","require","customBabelLoader","babel","presetItem","createConfigItem","type","applyCommonJs","commonJsItem","configs","Set","customOptions","opts","custom","isServer","pagesDir","development","hasReactRefresh","hasJsxRuntime","filename","cwd","loader","Object","assign","cache","cacheDirectory","distDir","cacheIdentifier","JSON","stringify","loadPartialConfig","sourceFileName","options","config","cfg","source","resourcePath","isPageFile","startsWith","hasFilesystemConfig","file","babelrc","has","add","Log","info","presets","caller","isDev","emitWarning","bind","defineProperty","enumerable","writable","value","onWarning","reason","Error","plugins","reactRefreshPlugin","skipEnvCheck","unshift","noAnonymousDefaultExportPlugin","pageConfigPlugin","push","diallowExportAll","indexOf","resolve","overrides","test"],"mappings":"4DAAA,0BACA,6DACA,uE,w4BAEA;AACA;AACA,KAAMA,CAAAA,QAAQ,CAAG,eAAiB,GAAjB,CAAuB,GAAxC,CACA,KAAMC,CAAAA,eAAe,CAAGC,OAAO,CAAC,oBAAD,CAA/B,CAEA,KAAMC,CAAAA,iBAAiB,CAAG,mBAAaC,KAAD,EAAW,CAC/C,KAAMC,CAAAA,UAAU,CAAGD,KAAK,CAACE,gBAAN,CAAuBL,eAAvB,CAAwC,CACzDM,IAAI,CAAE,QADmD,CAAxC,CAAnB,CAGA,KAAMC,CAAAA,aAAa,CAAGJ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oC,SAAR,EAAqB,EAAzB,CADkB,CAElB,CACEC,IAAI,CAAE,CACJ,uCADI,CAEJ,0BAFI,CAGJ,yBAHI,CADR,CAMEX,OAAO,CAAE,CAAClD,YAAD,CANX,CAFkB,CAApB,CAYA,MAAOwB,CAAAA,OAAP,CACD,CAnKI,CAAP,CAqKD,CApLyB,CAA1B,C,aAsLe9B,iB","sourcesContent":["import { join } from 'path'\nimport * as Log from '../../output/log'\nimport babelLoader from './babel-loader/src/index'\n\n// increment 'p' to invalidate cache\n// eslint-disable-next-line no-useless-concat\nconst cacheKey = 'babel-cache-' + 'p' + '-'\nconst nextBabelPreset = require('../../babel/preset')\n\nconst customBabelLoader = babelLoader((babel) => {\n const presetItem = babel.createConfigItem(nextBabelPreset, {\n type: 'preset',\n })\n const applyCommonJs = babel.createConfigItem(\n require('../../babel/plugins/commonjs'),\n { type: 'plugin' }\n )\n const commonJsItem = babel.createConfigItem(\n require('next/dist/compiled/babel/plugin-transform-modules-commonjs'),\n { type: 'plugin' }\n )\n\n const configs = new Set()\n\n return {\n customOptions(opts) {\n const custom = {\n isServer: opts.isServer,\n pagesDir: opts.pagesDir,\n development: opts.development,\n hasReactRefresh: opts.hasReactRefresh,\n hasJsxRuntime: opts.hasJsxRuntime,\n }\n const filename = join(opts.cwd, 'noop.js')\n const loader = Object.assign(\n opts.cache\n ? {\n cacheDirectory: join(opts.distDir, 'cache', 'next-babel-loader'),\n cacheIdentifier:\n cacheKey +\n (opts.isServer ? '-server' : '') +\n '-new-polyfills' +\n (opts.development ? '-development' : '-production') +\n (opts.hasReactRefresh ? '-react-refresh' : '') +\n (opts.hasJsxRuntime ? '-jsx-runtime' : '') +\n JSON.stringify(\n babel.loadPartialConfig({\n filename,\n cwd: opts.cwd,\n sourceFileName: filename,\n }).options\n ),\n }\n : {\n cacheDirectory: false,\n },\n opts\n )\n\n delete loader.isServer\n delete loader.cache\n delete loader.distDir\n delete loader.pagesDir\n delete loader.development\n delete loader.hasReactRefresh\n delete loader.hasJsxRuntime\n return { loader, custom }\n },\n config(\n cfg,\n {\n source,\n customOptions: {\n isServer,\n pagesDir,\n development,\n hasReactRefresh,\n hasJsxRuntime,\n },\n }\n ) {\n const filename = this.resourcePath\n const options = Object.assign({}, cfg.options)\n const isPageFile = filename.startsWith(pagesDir)\n\n if (cfg.hasFilesystemConfig()) {\n for (const file of [cfg.babelrc, cfg.config]) {\n // We only log for client compilation otherwise there will be double output\n if (file && !isServer && !configs.has(file)) {\n configs.add(file)\n Log.info(`Using external babel configuration from ${file}`)\n }\n }\n } else {\n // Add our default preset if the no \"babelrc\" found.\n options.presets = [...options.presets, presetItem]\n }\n\n options.caller.isServer = isServer\n options.caller.isDev = development\n options.caller.hasJsxRuntime = hasJsxRuntime\n options.caller.pagesDir = pagesDir\n\n const emitWarning = this.emitWarning.bind(this)\n Object.defineProperty(options.caller, 'onWarning', {\n enumerable: false,\n writable: false,\n value: (options.caller.onWarning = function (reason) {\n if (!(reason instanceof Error)) {\n reason = new Error(reason)\n }\n emitWarning(reason)\n }),\n })\n\n options.plugins = options.plugins || []\n\n if (hasReactRefresh) {\n const reactRefreshPlugin = babel.createConfigItem(\n [require('react-refresh/babel'), { skipEnvCheck: true }],\n { type: 'plugin' }\n )\n options.plugins.unshift(reactRefreshPlugin)\n if (!isServer) {\n const noAnonymousDefaultExportPlugin = babel.createConfigItem(\n [require('../../babel/plugins/no-anonymous-default-export'), {}],\n { type: 'plugin' }\n )\n options.plugins.unshift(noAnonymousDefaultExportPlugin)\n }\n }\n\n if (!isServer && isPageFile) {\n const pageConfigPlugin = babel.createConfigItem(\n [require('../../babel/plugins/next-page-config')],\n { type: 'plugin' }\n )\n options.plugins.push(pageConfigPlugin)\n\n const diallowExportAll = babel.createConfigItem(\n [\n require('../../babel/plugins/next-page-disallow-re-export-all-exports'),\n ],\n { type: 'plugin' }\n )\n options.plugins.push(diallowExportAll)\n }\n\n // If the file has `module.exports` we have to transpile commonjs because Babel adds `import` statements\n // That break webpack, since webpack doesn't support combining commonjs and esmodules\n if (source.indexOf('module.exports') !== -1) {\n options.plugins.push(applyCommonJs)\n }\n\n options.plugins.push([\n require.resolve('next/dist/compiled/babel/plugin-transform-define'),\n {\n 'process.env.NODE_ENV': development ? 'development' : 'production',\n 'typeof window': isServer ? 'undefined' : 'object',\n 'process.browser': isServer ? false : true,\n },\n 'next-js-transform-define-instance',\n ])\n\n if (isPageFile) {\n if (!isServer) {\n options.plugins.push([\n require.resolve('../../babel/plugins/next-ssg-transform'),\n {},\n ])\n }\n }\n\n // As next-server/lib has stateful modules we have to transpile commonjs\n options.overrides = [\n ...(options.overrides || []),\n {\n test: [\n /next[\\\\/]dist[\\\\/]next-server[\\\\/]lib/,\n /next[\\\\/]dist[\\\\/]client/,\n /next[\\\\/]dist[\\\\/]pages/,\n ],\n plugins: [commonJsItem],\n },\n ]\n\n return options\n },\n }\n})\n\nexport default customBabelLoader\n"]}
\ No newline at end of file
+{"version":3,"sources":["../../../../build/webpack/loaders/next-babel-loader.js"],"names":["cacheKey","nextBabelPreset","require","customBabelLoader","babel","presetItem","createConfigItem","type","applyCommonJs","commonJsItem","configs","Set","customOptions","opts","custom","isServer","pagesDirs","development","hasReactRefresh","hasJsxRuntime","filename","cwd","loader","Object","assign","cache","cacheDirectory","distDir","cacheIdentifier","JSON","stringify","loadPartialConfig","sourceFileName","options","config","cfg","source","resourcePath","isPageFile","RegExp","join","test","hasFilesystemConfig","file","babelrc","has","add","Log","info","presets","caller","isDev","emitWarning","bind","defineProperty","enumerable","writable","value","onWarning","reason","Error","plugins","reactRefreshPlugin","skipEnvCheck","unshift","noAnonymousDefaultExportPlugin","pageConfigPlugin","push","diallowExportAll","indexOf","resolve","overrides"],"mappings":"4DAAA,0BACA,6DACA,uE,w4BAEA;AACA;AACA,KAAMA,CAAAA,QAAQ,CAAG,eAAiB,GAAjB,CAAuB,GAAxC,CACA,KAAMC,CAAAA,eAAe,CAAGC,OAAO,CAAC,oBAAD,CAA/B,CAEA,KAAMC,CAAA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OnB,mCAPmB,CAArB,EAUA,GAAIuB,UAAJ,CAAgB,CACd,GAAI,CAACvB,QAAL,CAAe,CACbkB,OAAO,CAAC4B,OAAR,CAAgBM,IAAhB,CAAqB,CACnBjE,OAAO,CAACoE,OAAR,CAAgB,wCAAhB,CADmB,CAEnB,EAFmB,CAArB,EAID,CACF,CAED;AACArC,OAAO,CAACsC,SAAR,CAAoB,CAClB,IAAItC,OAAO,CAACsC,SAAR,EAAqB,EAAzB,CADkB,CAElB,CACE9B,IAAI,CAAE,CACJ,uCADI,CAEJ,0BAFI,CAGJ,yBAHI,CADR,CAMEoB,OAAO,CAAE,CAACpD,YAAD,CANX,CAFkB,CAApB,CAYA,MAAOwB,CAAAA,OAAP,CACD,CAnKI,CAAP,CAqKD,CApLyB,CAA1B,C,aAsLe9B,iB","sourcesContent":["import { join } from 'path'\nimport * as Log from '../../output/log'\nimport babelLoader from './babel-loader/src/index'\n\n// increment 'p' to invalidate cache\n// eslint-disable-next-line no-useless-concat\nconst cacheKey = 'babel-cache-' + 'p' + '-'\nconst nextBabelPreset = require('../../babel/preset')\n\nconst customBabelLoader = babelLoader((babel) => {\n const presetItem = babel.createConfigItem(nextBabelPreset, {\n type: 'preset',\n })\n const applyCommonJs = babel.createConfigItem(\n require('../../babel/plugins/commonjs'),\n { type: 'plugin' }\n )\n const commonJsItem = babel.createConfigItem(\n require('next/dist/compiled/babel/plugin-transform-modules-commonjs'),\n { type: 'plugin' }\n )\n\n const configs = new Set()\n\n return {\n customOptions(opts) {\n const custom = {\n isServer: opts.isServer,\n pagesDirs: opts.pagesDirs,\n development: opts.development,\n hasReactRefresh: opts.hasReactRefresh,\n hasJsxRuntime: opts.hasJsxRuntime,\n }\n const filename = join(opts.cwd, 'noop.js')\n const loader = Object.assign(\n opts.cache\n ? {\n cacheDirectory: join(opts.distDir, 'cache', 'next-babel-loader'),\n cacheIdentifier:\n cacheKey +\n (opts.isServer ? '-server' : '') +\n '-new-polyfills' +\n (opts.development ? '-development' : '-production') +\n (opts.hasReactRefresh ? '-react-refresh' : '') +\n (opts.hasJsxRuntime ? '-jsx-runtime' : '') +\n JSON.stringify(\n babel.loadPartialConfig({\n filename,\n cwd: opts.cwd,\n sourceFileName: filename,\n }).options\n ),\n }\n : {\n cacheDirectory: false,\n },\n opts\n )\n\n delete loader.isServer\n delete loader.cache\n delete loader.distDir\n delete loader.pagesDirs\n delete loader.development\n delete loader.hasReactRefresh\n delete loader.hasJsxRuntime\n return { loader, custom }\n },\n config(\n cfg,\n {\n source,\n customOptions: {\n isServer,\n pagesDirs,\n development,\n hasReactRefresh,\n hasJsxRuntime,\n },\n }\n ) {\n const filename = this.resourcePath\n const options = Object.assign({}, cfg.options)\n const isPageFile = new RegExp(`^((${pagesDirs.join(')|(')}))`).test(filename)\n\n if (cfg.hasFilesystemConfig()) {\n for (const file of [cfg.babelrc, cfg.config]) {\n // We only log for client compilation otherwise there will be double output\n if (file && !isServer && !configs.has(file)) {\n configs.add(file)\n Log.info(`Using external babel configuration from ${file}`)\n }\n }\n } else {\n // Add our default preset if the no \"babelrc\" found.\n options.presets = [...options.presets, presetItem]\n }\n\n options.caller.isServer = isServer\n options.caller.isDev = development\n options.caller.hasJsxRuntime = hasJsxRuntime\n options.caller.pagesDirs = pagesDirs\n\n const emitWarning = this.emitWarning.bind(this)\n Object.defineProperty(options.caller, 'onWarning', {\n enumerable: false,\n writable: false,\n value: (options.caller.onWarning = function (reason) {\n if (!(reason instanceof Error)) {\n reason = new Error(reason)\n }\n emitWarning(reason)\n }),\n })\n\n options.plugins = options.plugins || []\n\n if (hasReactRefresh) {\n const reactRefreshPlugin = babel.createConfigItem(\n [require('react-refresh/babel'), { skipEnvCheck: true }],\n { type: 'plugin' }\n )\n options.plugins.unshift(reactRefreshPlugin)\n if (!isServer) {\n const noAnonymousDefaultExportPlugin = babel.createConfigItem(\n [require('../../babel/plugins/no-anonymous-default-export'), {}],\n { type: 'plugin' }\n )\n options.plugins.unshift(noAnonymousDefaultExportPlugin)\n }\n }\n\n if (!isServer && isPageFile) {\n const pageConfigPlugin = babel.createConfigItem(\n [require('../../babel/plugins/next-page-config')],\n { type: 'plugin' }\n )\n options.plugins.push(pageConfigPlugin)\n\n const diallowExportAll = babel.createConfigItem(\n [\n require('../../babel/plugins/next-page-disallow-re-export-all-exports'),\n ],\n { type: 'plugin' }\n )\n options.plugins.push(diallowExportAll)\n }\n\n // If the file has `module.exports` we have to transpile commonjs because Babel adds `import` statements\n // That break webpack, since webpack doesn't support combining commonjs and esmodules\n if (source.indexOf('module.exports') !== -1) {\n options.plugins.push(applyCommonJs)\n }\n\n options.plugins.push([\n require.resolve('next/dist/compiled/babel/plugin-transform-define'),\n {\n 'process.env.NODE_ENV': development ? 'development' : 'production',\n 'typeof window': isServer ? 'undefined' : 'object',\n 'process.browser': isServer ? false : true,\n },\n 'next-js-transform-define-instance',\n ])\n\n if (isPageFile) {\n if (!isServer) {\n options.plugins.push([\n require.resolve('../../babel/plugins/next-ssg-transform'),\n {},\n ])\n }\n }\n\n // As next-server/lib has stateful modules we have to transpile commonjs\n options.overrides = [\n ...(options.overrides || []),\n {\n test: [\n /next[\\\\/]dist[\\\\/]next-server[\\\\/]lib/,\n /next[\\\\/]dist[\\\\/]client/,\n /next[\\\\/]dist[\\\\/]pages/,\n ],\n plugins: [commonJsItem],\n },\n ]\n\n return options\n },\n }\n})\n\nexport default customBabelLoader\n"]}
\ No newline at end of file
diff --git a/node_modules/next/dist/build/webpack/plugins/react-loadable-plugin.d.ts b/node_modules/next/dist/build/webpack/plugins/react-loadable-plugin.d.ts
index ed88234..e77b87b 100644
--- a/node_modules/next/dist/build/webpack/plugins/react-loadable-plugin.d.ts
+++ b/node_modules/next/dist/build/webpack/plugins/react-loadable-plugin.d.ts
@@ -21,10 +21,10 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWAR
import { webpack } from 'next/dist/compiled/webpack/webpack';
export declare class ReactLoadablePlugin {
private filename;
- private pagesDir;
+ private pagesDirs;
constructor(opts: {
filename: string;
- pagesDir: string;
+ pagesDirs: string[];
});
createAssets(compiler: any, compilation: any, assets: any): any;
apply(compiler: webpack.Compiler): void;
diff --git a/node_modules/next/dist/build/webpack/plugins/react-loadable-plugin.js b/node_modules/next/dist/build/webpack/plugins/react-loadable-plugin.js
index 4680b00..49dfb13 100644
--- a/node_modules/next/dist/build/webpack/plugins/react-loadable-plugin.js
+++ b/node_modules/next/dist/build/webpack/plugins/react-loadable-plugin.js
@@ -19,7 +19,7 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWAR
*/ // Implementation of this PR: https://github.com/jamiebuilds/react-loadable/pull/132
// Modified to strip out unneeded results for Next's specific use case
-function getModuleId(compilation,module){if(_webpack.isWebpack5){return compilation.chunkGraph.getModuleId(module);}return module.id;}function getModuleFromDependency(compilation,dep){if(_webpack.isWebpack5){return compilation.moduleGraph.getModule(dep);}return dep.module;}function getOriginModuleFromDependency(compilation,dep){if(_webpack.isWebpack5){return compilation.moduleGraph.getParentModule(dep);}return dep.originModule;}function getChunkGroupFromBlock(compilation,block){if(_webpack.isWebpack5){return compilation.chunkGraph.getBlockChunkGroup(block);}return block.chunkGroup;}function buildManifest(_compiler,compilation,pagesDir){let manifest={};// This is allowed:
+function getModuleId(compilation,module){if(_webpack.isWebpack5){return compilation.chunkGraph.getModuleId(module);}return module.id;}function getModuleFromDependency(compilation,dep){if(_webpack.isWebpack5){return compilation.moduleGraph.getModule(dep);}return dep.module;}function getOriginModuleFromDependency(compilation,dep){if(_webpack.isWebpack5){return compilation.moduleGraph.getParentModule(dep);}return dep.originModule;}function getChunkGroupFromBlock(compilation,block){if(_webpack.isWebpack5){return compilation.chunkGraph.getBlockChunkGroup(block);}return block.chunkGroup;}function buildManifest(_compiler,compilation,pagesDirs){let manifest={};// This is allowed:
// import("./module"); <- ImportDependency
// We don't support that:
// import(/* webpackMode: "eager" */ "./module") <- ImportEagerDependency
@@ -30,7 +30,7 @@ const module=getModuleFromDependency(compilation,dependency);if(!module)return;/
const originModule=getOriginModuleFromDependency(compilation,dependency);const originRequest=originModule==null?void 0:originModule.resource;if(!originRequest)return;// We construct a "unique" key from origin module and request
// It's not perfect unique, but that will be fine for us.
// We also need to construct the same in the babel plugin.
-const key=`${_path.default.relative(pagesDir,originRequest)} -> ${dependency.request}`;// Capture all files that need to be loaded.
+const key=`${_path.default.relative(pagesDirs[0],originRequest)} -> ${dependency.request}`;// Capture all files that need to be loaded.
const files=new Set();if(manifest[key]){// In the "rare" case where multiple chunk groups
// are created for the same `import()` or multiple
// import()s reference the same module, we merge
@@ -44,7 +44,7 @@ if(chunkGroup){for(const chunk of chunkGroup.chunks){chunk.files.forEach(file=>{
// next/dynamic so they are loaded by the same technique
// add the id and files to the manifest
const id=getModuleId(compilation,module);manifest[key]={id,files:Array.from(files)};}}};for(const module of compilation.modules){module.blocks.forEach(handleBlock);}manifest=Object.keys(manifest).sort()// eslint-disable-next-line no-sequences
-.reduce((a,c)=>(a[c]=manifest[c],a),{});return manifest;}class ReactLoadablePlugin{constructor(opts){this.filename=void 0;this.pagesDir=void 0;this.filename=opts.filename;this.pagesDir=opts.pagesDir;}createAssets(compiler,compilation,assets){const manifest=buildManifest(compiler,compilation,this.pagesDir);// @ts-ignore: TODO: remove when webpack 5 is stable
+.reduce((a,c)=>(a[c]=manifest[c],a),{});return manifest;}class ReactLoadablePlugin{constructor(opts){this.filename=void 0;this.pagesDirs=void 0;this.filename=opts.filename;this.pagesDirs=opts.pagesDirs;}createAssets(compiler,compilation,assets){const manifest=buildManifest(compiler,compilation,this.pagesDirs);// @ts-ignore: TODO: remove when webpack 5 is stable
assets[this.filename]=new _webpack.sources.RawSource(JSON.stringify(manifest,null,2));return assets;}apply(compiler){if(_webpack.isWebpack5){compiler.hooks.make.tap('ReactLoadableManifest',compilation=>{// @ts-ignore TODO: Remove ignore when webpack 5 is stable
compilation.hooks.processAssets.tap({name:'ReactLoadableManifest',// @ts-ignore TODO: Remove ignore when webpack 5 is stable
stage:_webpack.webpack.Compilation.PROCESS_ASSETS_STAGE_ADDITIONS},assets=>{this.createAssets(compiler,compilation,assets);});});return;}compiler.hooks.emit.tap('ReactLoadableManifest',compilation=>{this.createAssets(compiler,compilation,compilation.assets);});}}exports.ReactLoadablePlugin=ReactLoadablePlugin;
diff --git a/node_modules/next/dist/build/webpack/plugins/react-loadable-plugin.js.map b/node_modules/next/dist/build/webpack/plugins/react-loadable-plugin.js.map
index 821d71d..94c7b9c 100644
--- a/node_modules/next/dist/build/webpack/plugins/react-loadable-plugin.js.map
+++ b/node_modules/next/dist/build/webpack/plugins/react-loadable-plugin.js.map
@@ -1 +1 @@
-{"version":3,"sources":["../../../../build/webpack/plugins/react-loadable-plugin.ts"],"names":["getModuleId","compilation","module","isWebpack5","chunkGraph","id","getModuleFromDependency","dep","moduleGraph","getModule","getOriginModuleFromDependency","getParentModule","originModule","getChunkGroupFromBlock","block","getBlockChunkGroup","chunkGroup","buildManifest","_compiler","pagesDir","manifest","handleBlock","blocks","forEach","dependency","dependencies","type","startsWith","originRequest","resource","key","path","relative","request","files","Set","file","add","chunk","chunks","endsWith","match","Array","from","modules","Object","keys","sort","reduce","a","c","ReactLoadablePlugin","constructor","opts","filename","createAssets","compiler","assets","sources","RawSource","JSON","stringify","apply","hooks","make","tap","processAssets","name","stage","webpack","Compilation","PROCESS_ASSETS_STAGE_ADDITIONS","emit"],"mappings":"wEAuBA,2DAMA,kD,mFA7BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,E,CACA;AACA;AAUA,QAASA,CAAAA,WAAT,CAAqBC,WAArB,CAAuCC,MAAvC,CAAqE,CACnE,GAAIC,mBAAJ,CAAgB,CACd,MAAOF,CAAAA,WAAW,CAACG,UAAZ,CAAuBJ,WAAvB,CAAmCE,MAAnC,CAAP,CACD,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AAK,CAAEC,iBAAQC,WAAR,CAAoBC,8BAH7B,CADF,CAMGd,MAAD,EAAiB,CACf,KAAKF,YAAL,CAAkBC,QAAlB,CAA4BvD,WAA5B,CAAyCwD,MAAzC,EACD,CARH,EAUD,CAZD,EAaA,OACD,CAEDD,QAAQ,CAACO,KAAT,CAAeS,IAAf,CAAoBP,GAApB,CAAwB,uBAAxB,CAAkDhE,WAAD,EAAsB,CACrE,KAAKsD,YAAL,CAAkBC,QAAlB,CAA4BvD,WAA5B,CAAyCA,WAAW,CAACwD,MAArD,EACD,CAFD,EAGD,CAvC8B,C","sourcesContent":["/**\nCOPYRIGHT (c) 2017-present James Kyle <[email protected]>\n MIT License\n Permission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n The above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWAR\n*/\n// Implementation of this PR: https://github.com/jamiebuilds/react-loadable/pull/132\n// Modified to strip out unneeded results for Next's specific use case\n\nimport {\n webpack,\n isWebpack5,\n sources,\n} from 'next/dist/compiled/webpack/webpack'\n\nimport path from 'path'\n\nfunction getModuleId(compilation: any, module: any): string | number {\n if (isWebpack5) {\n return compilation.chunkGraph.getModuleId(module)\n }\n\n return module.id\n}\n\nfunction getModuleFromDependency(\n compilation: any,\n dep: any\n): webpack.Module & { resource?: string } {\n if (isWebpack5) {\n return compilation.moduleGraph.getModule(dep)\n }\n\n return dep.module\n}\n\nfunction getOriginModuleFromDependency(\n compilation: any,\n dep: any\n): webpack.Module & { resource?: string } {\n if (isWebpack5) {\n return compilation.moduleGraph.getParentModule(dep)\n }\n\n return dep.originModule\n}\n\nfunction getChunkGroupFromBlock(\n compilation: any,\n block: any\n): webpack.compilation.ChunkGroup {\n if (isWebpack5) {\n return compilation.chunkGraph.getBlockChunkGroup(block)\n }\n\n return block.chunkGroup\n}\n\nfunction buildManifest(\n _compiler: webpack.Compiler,\n compilation: webpack.compilation.Compilation,\n pagesDir: string\n) {\n let manifest: { [k: string]: { id: string | number; files: string[] } } = {}\n\n // This is allowed:\n // import(\"./module\"); <- ImportDependency\n\n // We don't support that:\n // import(/* webpackMode: \"eager\" */ \"./module\") <- ImportEagerDependency\n // import(`./module/${param}`) <- ImportContextDependency\n\n // Find all dependencies blocks which contains a `import()` dependency\n const handleBlock = (block: any) => {\n block.blocks.forEach(handleBlock)\n const chunkGroup = getChunkGroupFromBlock(compilation, block)\n for (const dependency of block.dependencies) {\n if (dependency.type.startsWith('import()')) {\n // get the referenced module\n const module = getModuleFromDependency(compilation, dependency)\n if (!module) return\n\n // get the module containing the import()\n const originModule = getOriginModuleFromDependency(\n compilation,\n dependency\n )\n const originRequest: string | undefined = originModule?.resource\n if (!originRequest) return\n\n // We construct a \"unique\" key from origin module and request\n // It's not perfect unique, but that will be fine for us.\n // We also need to construct the same in the babel plugin.\n const key = `${path.relative(pagesDir, originRequest)} -> ${\n dependency.request\n }`\n\n // Capture all files that need to be loaded.\n const files = new Set<string>()\n\n if (manifest[key]) {\n // In the \"rare\" case where multiple chunk groups\n // are created for the same `import()` or multiple\n // import()s reference the same module, we merge\n // the files to make sure to not miss files\n // This may cause overfetching in edge cases.\n for (const file of manifest[key].files) {\n files.add(file)\n }\n }\n\n // There might not be a chunk group when all modules\n // are already loaded. In this case we only need need\n // the module id and no files\n if (chunkGroup) {\n for (const chunk of (chunkGroup as any)\n .chunks as webpack.compilation.Chunk[]) {\n chunk.files.forEach((file: string) => {\n if (\n (file.endsWith('.js') || file.endsWith('.css')) &&\n file.match(/^static\\/(chunks|css)\\//)\n ) {\n files.add(file)\n }\n })\n }\n }\n\n // usually we have to add the parent chunk groups too\n // but we assume that all parents are also imported by\n // next/dynamic so they are loaded by the same technique\n\n // add the id and files to the manifest\n const id = getModuleId(compilation, module)\n manifest[key] = { id, files: Array.from(files) }\n }\n }\n }\n for (const module of compilation.modules) {\n module.blocks.forEach(handleBlock)\n }\n\n manifest = Object.keys(manifest)\n .sort()\n // eslint-disable-next-line no-sequences\n .reduce((a, c) => ((a[c] = manifest[c]), a), {} as any)\n\n return manifest\n}\n\nexport class ReactLoadablePlugin {\n private filename: string\n private pagesDir: string\n\n constructor(opts: { filename: string; pagesDir: string }) {\n this.filename = opts.filename\n this.pagesDir = opts.pagesDir\n }\n\n createAssets(compiler: any, compilation: any, assets: any) {\n const manifest = buildManifest(compiler, compilation, this.pagesDir)\n // @ts-ignore: TODO: remove when webpack 5 is stable\n assets[this.filename] = new sources.RawSource(\n JSON.stringify(manifest, null, 2)\n )\n return assets\n }\n\n apply(compiler: webpack.Compiler) {\n if (isWebpack5) {\n compiler.hooks.make.tap('ReactLoadableManifest', (compilation) => {\n // @ts-ignore TODO: Remove ignore when webpack 5 is stable\n compilation.hooks.processAssets.tap(\n {\n name: 'ReactLoadableManifest',\n // @ts-ignore TODO: Remove ignore when webpack 5 is stable\n stage: webpack.Compilation.PROCESS_ASSETS_STAGE_ADDITIONS,\n },\n (assets: any) => {\n this.createAssets(compiler, compilation, assets)\n }\n )\n })\n return\n }\n\n compiler.hooks.emit.tap('ReactLoadableManifest', (compilation: any) => {\n this.createAssets(compiler, compilation, compilation.assets)\n })\n }\n}\n"]}
\ No newline at end of file
+{"version":3,"sources":["../../../../build/webpack/plugins/react-loadable-plugin.ts"],"names":["getModuleId","compilation","module","isWebpack5","chunkGraph","id","getModuleFromDependency","dep","moduleGraph","getModule","getOriginModuleFromDependency","getParentModule","originModule","getChunkGroupFromBlock","block","getBlockChunkGroup","chunkGroup","buildManifest","_compiler","pagesDirs","manifest","handleBlock","blocks","forEach","dependency","dependencies","type","startsWith","originRequest","resource","key","path","relative","request","files","Set","file","add","chunk","chunks","endsWith","match","Array","from","modules","Object","keys","sort","reduce","a","c","ReactLoadablePlugin","constructor","opts","filename","createAssets","compiler","assets","sources","RawSource","JSON","stringify","apply","hooks","make","tap","processAssets","name","stage","webpack","Compilation","PROCESS_ASSETS_STAGE_ADDITIONS","emit"],"mappings":"wEAuBA,2DAMA,kD,mFA7BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,E,CACA;AACA;AAUA,QAASA,CAAAA,WAAT,CAAqBC,WAArB,CAAuCC,MAAvC,CAAqE,CACnE,GAAIC,mBAAJ,CAAgB,CACd,MAAOF,CAAAA,WAAW,CAACG,UAAZ,CAAuBJ,WAAvB,CAAmCE,MAAnC,CAAP,CACD,CAED,MAAOA,CAAAA,MAAM,CAACG,EAAd,CACD,CAED,QAASC,CAAAA,uBAAT,CACEL,WADF,CAEEM,GAFF,CAG0C,CACxC,GAAIJ,mBAAJ,CAAgB,CACd,MAAOF,CAAAA,WAAW,CAACO,WAAZ,CAAwBC,SAAxB,CAAkCF,GAAlC,CAAP,CACD,CAED,MAAOA,CAAAA,GAAG,CAACL,MAAX,CACD,CAED,QAASQ,CAAAA,6BAAT,CACET,WADF,CAEEM,GAFF,CAG0C,CACxC,GAAIJ,mBAAJ,CAAgB,CACd,MAAOF,CAAAA,WAAW,CAACO,WAAZ,CAAwBG,eAAxB,CAAwCJ,GAAxC,CAAP,CACD,CAED,MAAOA,CAAAA,GAAG,CAACK,YAAX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ereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n The above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWAR\n*/\n// Implementation of this PR: https://github.com/jamiebuilds/react-loadable/pull/132\n// Modified to strip out unneeded results for Next's specific use case\n\nimport {\n webpack,\n isWebpack5,\n sources,\n} from 'next/dist/compiled/webpack/webpack'\n\nimport path from 'path'\n\nfunction getModuleId(compilation: any, module: any): string | number {\n if (isWebpack5) {\n return compilation.chunkGraph.getModuleId(module)\n }\n\n return module.id\n}\n\nfunction getModuleFromDependency(\n compilation: any,\n dep: any\n): webpack.Module & { resource?: string } {\n if (isWebpack5) {\n return compilation.moduleGraph.getModule(dep)\n }\n\n return dep.module\n}\n\nfunction getOriginModuleFromDependency(\n compilation: any,\n dep: any\n): webpack.Module & { resource?: string } {\n if (isWebpack5) {\n return compilation.moduleGraph.getParentModule(dep)\n }\n\n return dep.originModule\n}\n\nfunction getChunkGroupFromBlock(\n compilation: any,\n block: any\n): webpack.compilation.ChunkGroup {\n if (isWebpack5) {\n return compilation.chunkGraph.getBlockChunkGroup(block)\n }\n\n return block.chunkGroup\n}\n\nfunction buildManifest(\n _compiler: webpack.Compiler,\n compilation: webpack.compilation.Compilation,\n pagesDirs: string[]\n) {\n let manifest: { [k: string]: { id: string | number; files: string[] } } = {}\n\n // This is allowed:\n // import(\"./module\"); <- ImportDependency\n\n // We don't support that:\n // import(/* webpackMode: \"eager\" */ \"./module\") <- ImportEagerDependency\n // import(`./module/${param}`) <- ImportContextDependency\n\n // Find all dependencies blocks which contains a `import()` dependency\n const handleBlock = (block: any) => {\n block.blocks.forEach(handleBlock)\n const chunkGroup = getChunkGroupFromBlock(compilation, block)\n for (const dependency of block.dependencies) {\n if (dependency.type.startsWith('import()')) {\n // get the referenced module\n const module = getModuleFromDependency(compilation, dependency)\n if (!module) return\n\n // get the module containing the import()\n const originModule = getOriginModuleFromDependency(\n compilation,\n dependency\n )\n const originRequest: string | undefined = originModule?.resource\n if (!originRequest) return\n\n // We construct a \"unique\" key from origin module and request\n // It's not perfect unique, but that will be fine for us.\n // We also need to construct the same in the babel plugin.\n const key = `${path.relative(pagesDirs[0], originRequest)} -> ${\n dependency.request\n }`\n\n // Capture all files that need to be loaded.\n const files = new Set<string>()\n\n if (manifest[key]) {\n // In the \"rare\" case where multiple chunk groups\n // are created for the same `import()` or multiple\n // import()s reference the same module, we merge\n // the files to make sure to not miss files\n // This may cause overfetching in edge cases.\n for (const file of manifest[key].files) {\n files.add(file)\n }\n }\n\n // There might not be a chunk group when all modules\n // are already loaded. In this case we only need need\n // the module id and no files\n if (chunkGroup) {\n for (const chunk of (chunkGroup as any)\n .chunks as webpack.compilation.Chunk[]) {\n chunk.files.forEach((file: string) => {\n if (\n (file.endsWith('.js') || file.endsWith('.css')) &&\n file.match(/^static\\/(chunks|css)\\//)\n ) {\n files.add(file)\n }\n })\n }\n }\n\n // usually we have to add the parent chunk groups too\n // but we assume that all parents are also imported by\n // next/dynamic so they are loaded by the same technique\n\n // add the id and files to the manifest\n const id = getModuleId(compilation, module)\n manifest[key] = { id, files: Array.from(files) }\n }\n }\n }\n for (const module of compilation.modules) {\n module.blocks.forEach(handleBlock)\n }\n\n manifest = Object.keys(manifest)\n .sort()\n // eslint-disable-next-line no-sequences\n .reduce((a, c) => ((a[c] = manifest[c]), a), {} as any)\n\n return manifest\n}\n\nexport class ReactLoadablePlugin {\n private filename: string\n private pagesDirs: string[]\n\n constructor(opts: { filename: string; pagesDirs: string[] }) {\n this.filename = opts.filename\n this.pagesDirs = opts.pagesDirs\n }\n\n createAssets(compiler: any, compilation: any, assets: any) {\n const manifest = buildManifest(compiler, compilation, this.pagesDirs)\n // @ts-ignore: TODO: remove when webpack 5 is stable\n assets[this.filename] = new sources.RawSource(\n JSON.stringify(manifest, null, 2)\n )\n return assets\n }\n\n apply(compiler: webpack.Compiler) {\n if (isWebpack5) {\n compiler.hooks.make.tap('ReactLoadableManifest', (compilation) => {\n // @ts-ignore TODO: Remove ignore when webpack 5 is stable\n compilation.hooks.processAssets.tap(\n {\n name: 'ReactLoadableManifest',\n // @ts-ignore TODO: Remove ignore when webpack 5 is stable\n stage: webpack.Compilation.PROCESS_ASSETS_STAGE_ADDITIONS,\n },\n (assets: any) => {\n this.createAssets(compiler, compilation, assets)\n }\n )\n })\n return\n }\n\n compiler.hooks.emit.tap('ReactLoadableManifest', (compilation: any) => {\n this.createAssets(compiler, compilation, compilation.assets)\n })\n }\n}\n"]}
\ No newline at end of file
diff --git a/node_modules/next/dist/compiled/@ampproject/toolbox-optimizer/.cache/2ff5577010acefeceb6bfdeab769b276.json b/node_modules/next/dist/compiled/@ampproject/toolbox-optimizer/.cache/2ff5577010acefeceb6bfdeab769b276.json
index b89ffa3..e6a8ffa 100644
--- a/node_modules/next/dist/compiled/@ampproject/toolbox-optimizer/.cache/2ff5577010acefeceb6bfdeab769b276.json
+++ b/node_modules/next/dist/compiled/@ampproject/toolbox-optimizer/.cache/2ff5577010acefeceb6bfdeab769b276.json
@@ -1 +1 @@
-{"version":"012106072053000","maxAge":{"timestampInMs":1624391629268}}
\ No newline at end of file
+{"version":"012106182132000","maxAge":{"timestampInMs":1626160905303}}
\ No newline at end of file
diff --git a/node_modules/next/dist/compiled/@ampproject/toolbox-optimizer/.cache/97dd8567b7e4775960c2064e20d6d08f.json b/node_modules/next/dist/compiled/@ampproject/toolbox-optimizer/.cache/97dd8567b7e4775960c2064e20d6d08f.json
index 25d2a02..d21a260 100644
--- a/node_modules/next/dist/compiled/@ampproject/toolbox-optimizer/.cache/97dd8567b7e4775960c2064e20d6d08f.json
+++ b/node_modules/next/dist/compiled/@ampproject/toolbox-optimizer/.cache/97dd8567b7e4775960c2064e20d6d08f.json
@@ -1 +1 @@
-{"tags":[{"tagName":"!DOCTYPE","specName":"html doctype","mandatory":true,"unique":true,"mandatoryParent":"$ROOT","attrs":[{"name":"html","mandatory":true,"value":[""]},{"name":"lang","deprecation":"html","deprecationUrl":"https://github.com/ampproject/amphtml/issues/25926"},{"name":"itemid","global":true},{"name":"itemprop","global":true},{"name":"itemref","global":true},{"name":"itemscope","global":true},{"name":"itemtype","global":true},{"name":"about","global":true},{"name":"content","global":true},{"name":"datatype","global":true},{"name":"inlist","global":true},{"name":"prefix","global":true},{"name":"property","global":true},{"name":"rel","disallowedValueRegex":"(^|\\s)(canonical|components|dns-prefetch|import|manifest|preconnect|preload|prerender|serviceworker|stylesheet|subresource)(\\s|$)","global":true},{"name":"resource","global":true},{"name":"rev","global":true},{"name":"style","valueDocCss":true,"global":true},{"name":"typeof","global":true},{"name":"vocab","global":true},{"name":"accesskey","global":true},{"name":"class","global":true},{"name":"dir","global":true},{"name":"draggable","global":true},{"name":"hidden","value":[""],"global":true},{"name":"id","disallowedValueRegex":"(^|\\s)(__amp_\\S*|__count__|__defineGetter__|__defineSetter__|__lookupGetter__|__lookupSetter__|__noSuchMethod__|__parent__|__proto__|__AMP_\\S*|\\$p|\\$proxy|acceptCharset|addEventListener|appendChild|assignedSlot|attachShadow|AMP|baseURI|checkValidity|childElementCount|childNodes|classList|className|clientHeight|clientLeft|clientTop|clientWidth|compareDocumentPosition|computedName|computedRole|contentEditable|createShadowRoot|enqueAction|firstChild|firstElementChild|getAnimations|getAttribute|getAttributeNS|getAttributeNode|getAttributeNodeNS|getBoundingClientRect|getClientRects|getDestinationInsertionPoints|getElementsByClassName|getElementsByTagName|getElementsByTagNameNS|getRootNode|hasAttribute|hasAttributeNS|hasAttributes|hasChildNodes|hasPointerCapture|i-amphtml-\\S*|innerHTML|innerText|inputMode|insertAdjacentElement|insertAdjacentHTML|insertAdjacentText|isContentEditable|isDefaultNamespace|isEqualNode|isSameNode|lastChild|lastElementChild|lookupNamespaceURI|namespaceURI|nextElementSibling|nextSibling|nodeName|nodeType|nodeValue|offsetHeight|offsetLeft|offsetParent|offsetTop|offsetWidth|outerHTML|outerText|ownerDocument|parentElement|parentNode|previousElementSibling|previousSibling|querySelector|querySelectorAll|releasePointerCapture|removeAttribute|removeAttributeNS|removeAttributeNode|removeChild|removeEventListener|replaceChild|reportValidity|requestPointerLock|scrollHeight|scrollIntoView|scrollIntoViewIfNeeded|scrollLeft|scrollWidth|setAttribute|setAttributeNS|setAttributeNode|setAttributeNodeNS|setPointerCapture|shadowRoot|styleMap|tabIndex|tagName|textContent|toString|valueOf|(webkit|ms|moz|o)dropzone|(webkit|moz|ms|o)MatchesSelector|(webkit|moz|ms|o)RequestFullScreen|(webkit|moz|ms|o)RequestFullscreen)(\\s|$)","global":true},{"name":"lang","global":true},{"name":"slot","global":true},{"name":"tabindex","global":true},{"name":"title","global":true},{"name":"translate","global":true},{"name":"aria-activedescendant","global":true},{"name":"aria-atomic","global":true},{"name":"aria-autocomplete","global":true},{"name":"aria-busy","global":true},{"name":"aria-checked","global":true},{"name":"aria-controls","global":true},{"name":"aria-current","global":true},{"name":"aria-describedby","global":true},{"name":"aria-disabled","global":true},{"name":"aria-dropeffect","global":true},{"name":"aria-expanded","global":true},{"name":"aria-flowto","global":true},{"name":"aria-grabbed","global":true},{"name":"aria-haspopup","global":true},{"name":"aria-hidden","global":true},{"name":"aria-invalid","global":true},{"name":"aria-label","global":true},{"name":"aria-labelledby","global":true},{"name":"aria-level","global":true},{"name":"aria-live","global":true},{"name":"aria-multiline","global":true},{"name":"aria-multiselectable","global":true},{"name":"aria-orientation","global":true},{"name":"aria-owns","global":true},{"name":"aria-posinset","global":true},{"name":"aria-pressed","global":true},{"name":"aria-readonly","global":true},{"name":"aria-relevant","global":true},{"name":"aria-required","global":true},{"name":"aria-selected","global":true},{"name":"aria-setsize","global":true},{"name":"aria-sort","global":true},{"name":"aria-valuemax","global":true},{"name":"aria-valuemin","global":true},{"name":"aria-valuenow","global":true},{"name":"aria-valuetext","global":true},{"name":"on","trigger":{"ifValueRegex":"tap:.*","alsoRequiresAttr":["role","tabindex"]},"global":true},{"name":"role","global":true},{"name":"placeholder","value":[""],"global":true},{"name":"fallback","value":[""],"global":true},{"name":"overflow","global":true},{"name":"amp-access","global":true},{"name":"amp-access-behavior","global":true},{"name":"amp-access-hide","global":true},{"name":"amp-access-id","global":true},{"name":"amp-access-loader","global":true},{"name":"amp-access-loading","global":true},{"name":"amp-access-off","global":true},{"name":"amp-access-on","global":true},{"name":"amp-access-show","global":true},{"name":"amp-access-style","global":true},{"name":"amp-access-template","global":true},{"name":"i-amp-access-id","global":true},{"name":"validation-for","trigger":{"alsoRequiresAttr":["visible-when-invalid"]},"global":true},{"name":"visible-when-invalid","value":["badInput","customError","patternMismatch","rangeOverflow","rangeUnderflow","stepMismatch","tooLong","tooShort","typeMismatch","valueMissing"],"trigger":{"alsoRequiresAttr":["validation-for"]},"global":true},{"name":"amp-fx","valueRegexCasei":"(fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)(\\s|fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)*","requiresExtension":["amp-fx-collection"],"global":true},{"name":"subscriptions-action","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-actions","value":[""],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-decorate","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-dialog","value":[""],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-display","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-lang","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-section","valueCasei":["actions","content","content-not-granted","loading"],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-service","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-google-rtc","requiresExtension":["amp-subscriptions-google"],"global":true},{"name":"next-page-hide","requiresExtension":["amp-next-page"],"global":true},{"name":"next-page-replace","requiresExtension":["amp-next-page"],"global":true},{"name":"[aria-activedescendant]","global":true},{"name":"[aria-atomic]","global":true},{"name":"[aria-autocomplete]","global":true},{"name":"[aria-busy]","global":true},{"name":"[aria-checked]","global":true},{"name":"[aria-controls]","global":true},{"name":"[aria-describedby]","global":true},{"name":"[aria-disabled]","global":true},{"name":"[aria-dropeffect]","global":true},{"name":"[aria-expanded]","global":true},{"name":"[aria-flowto]","global":true},{"name":"[aria-grabbed]","global":true},{"name":"[aria-haspopup]","global":true},{"name":"[aria-hidden]","global":true},{"name":"[aria-invalid]","global":true},{"name":"[aria-label]","global":true},{"name":"[aria-labelledby]","global":true},{"name":"[aria-level]","global":true},{"name":"[aria-live]","global":true},{"name":"[aria-multiline]","global":true},{"name":"[aria-multiselectable]","global":true},{"name":"[aria-orientation]","global":true},{"name":"[aria-owns]","global":true},{"name":"[aria-posinset]","global":true},{"name":"[aria-pressed]","global":true},{"name":"[aria-readonly]","global":true},{"name":"[aria-relevant]","global":true},{"name":"[aria-required]","global":true},{"name":"[aria-selected]","global":true},{"name":"[aria-setsize]","global":true},{"name":"[aria-sort]","global":true},{"name":"[aria-valuemax]","global":true},{"name":"[aria-valuemin]","global":true},{"name":"[aria-valuenow]","global":true},{"name":"[aria-valuetext]","global":true},{"name":"[class]","global":true},{"name":"[hidden]","global":true},{"name":"[text]","global":true},{"name":"i-amphtml-binding","value":[""],"enabledBy":["transformed"],"global":true},{"name":"autoscroll","requiresAncestor":{"marker":["AUTOSCROLL"]},"global":true}],"specUrl":"https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml/#required-markup","htmlFormat":["AMP","AMP4EMAIL"],"explicitAttrsOnly":true,"descriptiveName":"html !doctype"},{"tagName":"!DOCTYPE","specName":"html doctype (AMP4ADS)","mandatory":true,"unique":true,"mandatoryParent":"$ROOT","attrs":[{"name":"html","mandatory":true,"value":[""]},{"name":"itemid","global":true},{"name":"itemprop","global":true},{"name":"itemref","global":true},{"name":"itemscope","global":true},{"name":"itemtype","global":true},{"name":"about","global":true},{"name":"content","global":true},{"name":"datatype","global":true},{"name":"inlist","global":true},{"name":"prefix","global":true},{"name":"property","global":true},{"name":"rel","disallowedValueRegex":"(^|\\s)(canonical|components|dns-prefetch|import|manifest|preconnect|preload|prerender|serviceworker|stylesheet|subresource)(\\s|$)","global":true},{"name":"resource","global":true},{"name":"rev","global":true},{"name":"style","valueDocCss":true,"global":true},{"name":"typeof","global":true},{"name":"vocab","global":true},{"name":"accesskey","global":true},{"name":"class","global":true},{"name":"dir","global":true},{"name":"draggable","global":true},{"name":"hidden","value":[""],"global":true},{"name":"id","disallowedValueRegex":"(^|\\s)(__amp_\\S*|__count__|__defineGetter__|__defineSetter__|__lookupGetter__|__lookupSetter__|__noSuchMethod__|__parent__|__proto__|__AMP_\\S*|\\$p|\\$proxy|acceptCharset|addEventListener|appendChild|assignedSlot|attachShadow|AMP|baseURI|checkValidity|childElementCount|childNodes|classList|className|clientHeight|clientLeft|clientTop|clientWidth|compareDocumentPosition|computedName|computedRole|contentEditable|createShadowRoot|enqueAction|firstChild|firstElementChild|getAnimations|getAttribute|getAttributeNS|getAttributeNode|getAttributeNodeNS|getBoundingClientRect|getClientRects|getDestinationInsertionPoints|getElementsByClassName|getElementsByTagName|getElementsByTagNameNS|getRootNode|hasAttribute|hasAttributeNS|hasAttributes|hasChildNodes|hasPointerCapture|i-amphtml-\\S*|innerHTML|innerText|inputMode|insertAdjacentElement|insertAdjacentHTML|insertAdjacentText|isContentEditable|isDefaultNamespace|isEqualNode|isSameNode|lastChild|lastElementChild|lookupNamespaceURI|namespaceURI|nextElementSibling|nextSibling|nodeName|nodeType|nodeValue|offsetHeight|offsetLeft|offsetParent|offsetTop|offsetWidth|outerHTML|outerText|ownerDocument|parentElement|parentNode|previousElementSibling|previousSibling|querySelector|querySelectorAll|releasePointerCapture|removeAttribute|removeAttributeNS|removeAttributeNode|removeChild|removeEventListener|replaceChild|reportValidity|requestPointerLock|scrollHeight|scrollIntoView|scrollIntoViewIfNeeded|scrollLeft|scrollWidth|setAttribute|setAttributeNS|setAttributeNode|setAttributeNodeNS|setPointerCapture|shadowRoot|styleMap|tabIndex|tagName|textContent|toString|valueOf|(webkit|ms|moz|o)dropzone|(webkit|moz|ms|o)MatchesSelector|(webkit|moz|ms|o)RequestFullScreen|(webkit|moz|ms|o)RequestFullscreen)(\\s|$)","global":true},{"name":"lang","global":true},{"name":"slot","global":true},{"name":"tabindex","global":true},{"name":"title","global":true},{"name":"translate","global":true},{"name":"aria-activedescendant","global":true},{"name":"aria-atomic","global":true},{"name":"aria-autocomplete","global":true},{"name":"aria-busy","global":true},{"name":"aria-checked","global":true},{"name":"aria-controls","global":true},{"name":"aria-current","global":true},{"name":"aria-describedby","global":true},{"name":"aria-disabled","global":true},{"name":"aria-dropeffect","global":true},{"name":"aria-expanded","global":true},{"name":"aria-flowto","global":true},{"name":"aria-grabbed","global":true},{"name":"aria-haspopup","global":true},{"name":"aria-hidden","global":true},{"name":"aria-invalid","global":true},{"name":"aria-label","global":true},{"name":"aria-labelledby","global":true},{"name":"aria-level","global":true},{"name":"aria-live","global":true},{"name":"aria-multiline","global":true},{"name":"aria-multiselectable","global":true},{"name":"aria-orientation","global":true},{"name":"aria-owns","global":true},{"name":"aria-posinset","global":true},{"name":"aria-pressed","global":true},{"name":"aria-readonly","global":true},{"name":"aria-relevant","global":true},{"name":"aria-required","global":true},{"name":"aria-selected","global":true},{"name":"aria-setsize","global":true},{"name":"aria-sort","global":true},{"name":"aria-valuemax","global":true},{"name":"aria-valuemin","global":true},{"name":"aria-valuenow","global":true},{"name":"aria-valuetext","global":true},{"name":"on","trigger":{"ifValueRegex":"tap:.*","alsoRequiresAttr":["role","tabindex"]},"global":true},{"name":"role","global":true},{"name":"placeholder","value":[""],"global":true},{"name":"fallback","value":[""],"global":true},{"name":"overflow","global":true},{"name":"amp-access","global":true},{"name":"amp-access-behavior","global":true},{"name":"amp-access-hide","global":true},{"name":"amp-access-id","global":true},{"name":"amp-access-loader","global":true},{"name":"amp-access-loading","global":true},{"name":"amp-access-off","global":true},{"name":"amp-access-on","global":true},{"name":"amp-access-show","global":true},{"name":"amp-access-style","global":true},{"name":"amp-access-template","global":true},{"name":"i-amp-access-id","global":true},{"name":"validation-for","trigger":{"alsoRequiresAttr":["visible-when-invalid"]},"global":true},{"name":"visible-when-invalid","value":["badInput","customError","patternMismatch","rangeOverflow","rangeUnderflow","stepMismatch","tooLong","tooShort","typeMismatch","valueMissing"],"trigger":{"alsoRequiresAttr":["validation-for"]},"global":true},{"name":"amp-fx","valueRegexCasei":"(fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)(\\s|fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)*","requiresExtension":["amp-fx-collection"],"global":true},{"name":"subscriptions-action","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-actions","value":[""],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-decorate","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-dialog","value":[""],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-display","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-lang","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-section","valueCasei":["actions","content","content-not-granted","loading"],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-service","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-google-rtc","requiresExtension":["amp-subscriptions-google"],"global":true},{"name":"next-page-hide","requiresExtension":["amp-next-page"],"global":true},{"name":"next-page-replace","requiresExtension":["amp-next-page"],"global":true},{"name":"[aria-activedescendant]","global":true},{"name":"[aria-atomic]","global":true},{"name":"[aria-autocomplete]","global":true},{"name":"[aria-busy]","global":true},{"name":"[aria-checked]","global":true},{"name":"[aria-controls]","global":true},{"name":"[aria-describedby]","global":true},{"name":"[aria-disabled]","global":true},{"name":"[aria-dropeffect]","global":true},{"name":"[aria-expanded]","global":true},{"name":"[aria-flowto]","global":true},{"name":"[aria-grabbed]","global":true},{"name":"[aria-haspopup]","global":true},{"name":"[aria-hidden]","global":true},{"name":"[aria-invalid]","global":true},{"name":"[aria-label]","global":true},{"name":"[aria-labelledby]","global":true},{"name":"[aria-level]","global":true},{"name":"[aria-live]","global":true},{"name":"[aria-multiline]","global":true},{"name":"[aria-multiselectable]","global":true},{"name":"[aria-orientation]","global":true},{"name":"[aria-owns]","global":true},{"name":"[aria-posinset]","global":true},{"name":"[aria-pressed]","global":true},{"name":"[aria-readonly]","global":true},{"name":"[aria-relevant]","global":true},{"name":"[aria-required]","global":true},{"name":"[aria-selected]","global":true},{"name":"[aria-setsize]","global":true},{"name":"[aria-sort]","global":true},{"name":"[aria-valuemax]","global":true},{"name":"[aria-valuemin]","global":true},{"name":"[aria-valuenow]","global":true},{"name":"[aria-valuetext]","global":true},{"name":"[class]","global":true},{"name":"[hidden]","global":true},{"name":"[text]","global":true},{"name":"i-amphtml-binding","value":[""],"enabledBy":["transformed"],"global":true},{"name":"autoscroll","requiresAncestor":{"marker":["AUTOSCROLL"]},"global":true}],"specUrl":"https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml/#required-markup","htmlFormat":["AMP4ADS"],"descriptiveName":"html !doctype"},{"tagName":"HTML","mandatory":true,"unique":true,"mandatoryParent":"!DOCTYPE","attrs":[{"name":"data-amp-autocomplete-opt-in","value":["false"],"disallowedValueRegex":"false"},{"name":"itemid","global":true},{"name":"itemprop","global":true},{"name":"itemref","global":true},{"name":"itemscope","global":true},{"name":"itemtype","global":true},{"name":"about","global":true},{"name":"content","global":true},{"name":"datatype","global":true},{"name":"inlist","global":true},{"name":"prefix","global":true},{"name":"property","global":true},{"name":"rel","disallowedValueRegex":"(^|\\s)(canonical|components|dns-prefetch|import|manifest|preconnect|preload|prerender|serviceworker|stylesheet|subresource)(\\s|$)","global":true},{"name":"resource","global":true},{"name":"rev","global":true},{"name":"style","valueDocCss":true,"global":true},{"name":"typeof","global":true},{"name":"vocab","global":true},{"name":"accesskey","global":true},{"name":"class","global":true},{"name":"dir","global":true},{"name":"draggable","global":true},{"name":"hidden","value":[""],"global":true},{"name":"id","disallowedValueRegex":"(^|\\s)(__amp_\\S*|__count__|__defineGetter__|__defineSetter__|__lookupGetter__|__lookupSetter__|__noSuchMethod__|__parent__|__proto__|__AMP_\\S*|\\$p|\\$proxy|acceptCharset|addEventListener|appendChild|assignedSlot|attachShadow|AMP|baseURI|checkValidity|childElementCount|childNodes|classList|className|clientHeight|clientLeft|clientTop|clientWidth|compareDocumentPosition|computedName|computedRole|contentEditable|createShadowRoot|enqueAction|firstChild|firstElementChild|getAnimations|getAttribute|getAttributeNS|getAttributeNode|getAttributeNodeNS|getBoundingClientRect|getClientRects|getDestinationInsertionPoints|getElementsByClassName|getElementsByTagName|getElementsByTagNameNS|getRootNode|hasAttribute|hasAttributeNS|hasAttributes|hasChildNodes|hasPointerCapture|i-amphtml-\\S*|innerHTML|innerText|inputMode|insertAdjacentElement|insertAdjacentHTML|insertAdjacentText|isContentEditable|isDefaultNamespace|isEqualNode|isSameNode|lastChild|lastElementChild|lookupNamespaceURI|namespaceURI|nextElementSibling|nextSibling|nodeName|nodeType|nodeValue|offsetHeight|offsetLeft|offsetParent|offsetTop|offsetWidth|outerHTML|outerText|ownerDocument|parentElement|parentNode|previousElementSibling|previousSibling|querySelector|querySelectorAll|releasePointerCapture|removeAttribute|removeAttributeNS|removeAttributeNode|removeChild|removeEventListener|replaceChild|reportValidity|requestPointerLock|scrollHeight|scrollIntoView|scrollIntoViewIfNeeded|scrollLeft|scrollWidth|setAttribute|setAttributeNS|setAttributeNode|setAttributeNodeNS|setPointerCapture|shadowRoot|styleMap|tabIndex|tagName|textContent|toString|valueOf|(webkit|ms|moz|o)dropzone|(webkit|moz|ms|o)MatchesSelector|(webkit|moz|ms|o)RequestFullScreen|(webkit|moz|ms|o)RequestFullscreen)(\\s|$)","global":true},{"name":"lang","global":true},{"name":"slot","global":true},{"name":"tabindex","global":true},{"name":"title","global":true},{"name":"translate","global":true},{"name":"aria-activedescendant","global":true},{"name":"aria-atomic","global":true},{"name":"aria-autocomplete","global":true},{"name":"aria-busy","global":true},{"name":"aria-checked","global":true},{"name":"aria-controls","global":true},{"name":"aria-current","global":true},{"name":"aria-describedby","global":true},{"name":"aria-disabled","global":true},{"name":"aria-dropeffect","global":true},{"name":"aria-expanded","global":true},{"name":"aria-flowto","global":true},{"name":"aria-grabbed","global":true},{"name":"aria-haspopup","global":true},{"name":"aria-hidden","global":true},{"name":"aria-invalid","global":true},{"name":"aria-label","global":true},{"name":"aria-labelledby","global":true},{"name":"aria-level","global":true},{"name":"aria-live","global":true},{"name":"aria-multiline","global":true},{"name":"aria-multiselectable","global":true},{"name":"aria-orientation","global":true},{"name":"aria-owns","global":true},{"name":"aria-posinset","global":true},{"name":"aria-pressed","global":true},{"name":"aria-readonly","global":true},{"name":"aria-relevant","global":true},{"name":"aria-required","global":true},{"name":"aria-selected","global":true},{"name":"aria-setsize","global":true},{"name":"aria-sort","global":true},{"name":"aria-valuemax","global":true},{"name":"aria-valuemin","global":true},{"name":"aria-valuenow","global":true},{"name":"aria-valuetext","global":true},{"name":"on","trigger":{"ifValueRegex":"tap:.*","alsoRequiresAttr":["role","tabindex"]},"global":true},{"name":"role","global":true},{"name":"placeholder","value":[""],"global":true},{"name":"fallback","value":[""],"global":true},{"name":"overflow","global":true},{"name":"amp-access","global":true},{"name":"amp-access-behavior","global":true},{"name":"amp-access-hide","global":true},{"name":"amp-access-id","global":true},{"name":"amp-access-loader","global":true},{"name":"amp-access-loading","global":true},{"name":"amp-access-off","global":true},{"name":"amp-access-on","global":true},{"name":"amp-access-show","global":true},{"name":"amp-access-style","global":true},{"name":"amp-access-template","global":true},{"name":"i-amp-access-id","global":true},{"name":"validation-for","trigger":{"alsoRequiresAttr":["visible-when-invalid"]},"global":true},{"name":"visible-when-invalid","value":["badInput","customError","patternMismatch","rangeOverflow","rangeUnderflow","stepMismatch","tooLong","tooShort","typeMismatch","valueMissing"],"trigger":{"alsoRequiresAttr":["validation-for"]},"global":true},{"name":"amp-fx","valueRegexCasei":"(fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)(\\s|fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)*","requiresExtension":["amp-fx-collection"],"global":true},{"name":"subscriptions-action","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-actions","value":[""],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-decorate","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-dialog","value":[""],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-display","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-lang","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-section","valueCasei":["actions","content","content-not-granted","loading"],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-service","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-google-rtc","requiresExtension":["amp-subscriptions-google"],"global":true},{"name":"next-page-hide","requiresExtension":["amp-next-page"],"global":true},{"name":"next-page-replace","requiresExtension":["amp-next-page"],"global":true},{"name":"[aria-activedescendant]","global":true},{"name":"[aria-atomic]","global":true},{"name":"[aria-autocomplete]","global":true},{"name":"[aria-busy]","global":true},{"name":"[aria-checked]","global":true},{"name":"[aria-controls]","global":true},{"name":"[aria-describedby]","global":true},{"name":"[aria-disabled]","global":true},{"name":"[aria-dropeffect]","global":true},{"name":"[aria-expanded]","global":true},{"name":"[aria-flowto]","global":true},{"name":"[aria-grabbed]","global":true},{"name":"[aria-haspopup]","global":true},{"name":"[aria-hidden]","global":true},{"name":"[aria-invalid]","global":true},{"name":"[aria-label]","global":true},{"name":"[aria-labelledby]","global":true},{"name":"[aria-level]","global":true},{"name":"[aria-live]","global":true},{"name":"[aria-multiline]","global":true},{"name":"[aria-multiselectable]","global":true},{"name":"[aria-orientation]","global":true},{"name":"[aria-owns]","global":true},{"name":"[aria-posinset]","global":true},{"name":"[aria-pressed]","global":true},{"name":"[aria-readonly]","global":true},{"name":"[aria-relevant]","global":true},{"name":"[aria-required]","global":true},{"name":"[aria-selected]","global":true},{"name":"[aria-setsize]","global":true},{"name":"[aria-sort]","global":true},{"name":"[aria-valuemax]","global":true},{"name":"[aria-valuemin]","global":true},{"name":"[aria-valuenow]","global":true},{"name":"[aria-valuetext]","global":true},{"name":"[class]","global":true},{"name":"[hidden]","global":true},{"name":"[text]","global":true},{"name":"i-amphtml-binding","value":[""],"enabledBy":["transformed"],"global":true},{"name":"autoscroll","requiresAncestor":{"marker":["AUTOSCROLL"]},"global":true}],"specUrl":"https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml/#required-markup","htmlFormat":["AMP","AMP4ADS","AMP4EMAIL"],"disabledBy":["transformed"]},{"tagName":"HTML","specName":"html (transformed)","mandatory":true,"unique":true,"mandatoryParent":"!DOCTYPE","attrs":[{"name":"i-amphtml-layout","value":[""]},{"name":"i-amphtml-no-boilerplate","value":[""]},{"name":"itemid","global":true},{"name":"itemprop","global":true},{"name":"itemref","global":true},{"name":"itemscope","global":true},{"name":"itemtype","global":true},{"name":"about","global":true},{"name":"content","global":true},{"name":"datatype","global":true},{"name":"inlist","global":true},{"name":"prefix","global":true},{"name":"property","global":true},{"name":"rel","disallowedValueRegex":"(^|\\s)(canonical|components|dns-prefetch|import|manifest|preconnect|preload|prerender|serviceworker|stylesheet|subresource)(\\s|$)","global":true},{"name":"resource","global":true},{"name":"rev","global":true},{"name":"style","valueDocCss":true,"global":true},{"name":"typeof","global":true},{"name":"vocab","global":true},{"name":"accesskey","global":true},{"name":"class","global":true},{"name":"dir","global":true},{"name":"draggable","global":true},{"name":"hidden","value":[""],"global":true},{"name":"id","disallowedValueRegex":"(^|\\s)(__amp_\\S*|__count__|__defineGetter__|__defineSetter__|__lookupGetter__|__lookupSetter__|__noSuchMethod__|__parent__|__proto__|__AMP_\\S*|\\$p|\\$proxy|acceptCharset|addEventListener|appendChild|assignedSlot|attachShadow|AMP|baseURI|checkValidity|childElementCount|childNodes|classList|className|clientHeight|clientLeft|clientTop|clientWidth|compareDocumentPosition|computedName|computedRole|contentEditable|createShadowRoot|enqueAction|firstChild|firstElementChild|getAnimations|getAttribute|getAttributeNS|getAttributeNode|getAttributeNodeNS|getBoundingClientRect|getClientRects|getDestinationInsertionPoints|getElementsByClassName|getElementsByTagName|getElementsByTagNameNS|getRootNode|hasAttribute|hasAttributeNS|hasAttributes|hasChildNodes|hasPointerCapture|i-amphtml-\\S*|innerHTML|innerText|inputMode|insertAdjacentElement|insertAdjacentHTML|insertAdjacentText|isContentEditable|isDefaultNamespace|isEqualNode|isSameNode|lastChild|lastElementChild|lookupNamespaceURI|namespaceURI|nextElementSibling|nextSibling|nodeName|nodeType|nodeValue|offsetHeight|offsetLeft|offsetParent|offsetTop|offsetWidth|outerHTML|outerText|ownerDocument|parentElement|parentNode|previousElementSibling|previousSibling|querySelector|querySelectorAll|releasePointerCapture|removeAttribute|removeAttributeNS|removeAttributeNode|removeChild|removeEventListener|replaceChild|reportValidity|requestPointerLock|scrollHeight|scrollIntoView|scrollIntoViewIfNeeded|scrollLeft|scrollWidth|setAttribute|setAttributeNS|setAttributeNode|setAttributeNodeNS|setPointerCapture|shadowRoot|styleMap|tabIndex|tagName|textContent|toString|valueOf|(webkit|ms|moz|o)dropzone|(webkit|moz|ms|o)MatchesSelector|(webkit|moz|ms|o)RequestFullScreen|(webkit|moz|ms|o)RequestFullscreen)(\\s|$)","global":true},{"name":"lang","global":true},{"name":"slot","global":true},{"name":"tabindex","global":true},{"name":"title","global":true},{"name":"translate","global":true},{"name":"aria-activedescendant","global":true},{"name":"aria-atomic","global":true},{"name":"aria-autocomplete","global":true},{"name":"aria-busy","global":true},{"name":"aria-checked","global":true},{"name":"aria-controls","global":true},{"name":"aria-current","global":true},{"name":"aria-describedby","global":true},{"name":"aria-disabled","global":true},{"name":"aria-dropeffect","global":true},{"name":"aria-expanded","global":true},{"name":"aria-flowto","global":true},{"name":"aria-grabbed","global":true},{"name":"aria-haspopup","global":true},{"name":"aria-hidden","global":true},{"name":"aria-invalid","global":true},{"name":"aria-label","global":true},{"name":"aria-labelledby","global":true},{"name":"aria-level","global":true},{"name":"aria-live","global":true},{"name":"aria-multiline","global":true},{"name":"aria-multiselectable","global":true},{"name":"aria-orientation","global":true},{"name":"aria-owns","global":true},{"name":"aria-posinset","global":true},{"name":"aria-pressed","global":true},{"name":"aria-readonly","global":true},{"name":"aria-relevant","global":true},{"name":"aria-required","global":true},{"name":"aria-selected","global":true},{"name":"aria-setsize","global":true},{"name":"aria-sort","global":true},{"name":"aria-valuemax","global":true},{"name":"aria-valuemin","global":true},{"name":"aria-valuenow","global":true},{"name":"aria-valuetext","global":true},{"name":"on","trigger":{"ifValueRegex":"tap:.*","alsoRequiresAttr":["role","tabindex"]},"global":true},{"name":"role","global":true},{"name":"placeholder","value":[""],"global":true},{"name":"fallback","value":[""],"global":true},{"name":"overflow","global":true},{"name":"amp-access","global":true},{"name":"amp-access-behavior","global":true},{"name":"amp-access-hide","global":true},{"name":"amp-access-id","global":true},{"name":"amp-access-loader","global":true},{"name":"amp-access-loading","global":true},{"name":"amp-access-off","global":true},{"name":"amp-access-on","global":true},{"name":"amp-access-show","global":true},{"name":"amp-access-style","global":true},{"name":"amp-access-template","global":true},{"name":"i-amp-access-id","global":true},{"name":"validation-for","trigger":{"alsoRequiresAttr":["visible-when-invalid"]},"global":true},{"name":"visible-when-invalid","value":["badInput","customError","patternMismatch","rangeOverflow","rangeUnderflow","stepMismatch","tooLong","tooShort","typeMismatch","valueMissing"],"trigger":{"alsoRequiresAttr":["validation-for"]},"global":true},{"name":"amp-fx","valueRegexCasei":"(fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)(\\s|fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)*","requiresExtension":["amp-fx-collection"],"global":true},{"name":"subscriptions-action","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-actions","value":[""],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-decorate","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-dialog","value":[""],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-display","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-lang","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-section","valueCasei":["actions","content","content-not-granted","loading"],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-service","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-google-rtc","requiresExtension":["amp-subscriptions-google"],"global":true},{"name":"next-page-hide","requiresExtension":["amp-next-page"],"global":true},{"name":"next-page-replace","requiresExtension":["amp-next-page"],"global":true},{"name":"[aria-activedescendant]","global":true},{"name":"[aria-atomic]","global":true},{"name":"[aria-autocomplete]","global":true},{"name":"[aria-busy]","global":true},{"name":"[aria-checked]","global":true},{"name":"[aria-controls]","global":true},{"name":"[aria-describedby]","global":true},{"name":"[aria-disabled]","global":true},{"name":"[aria-dropeffect]","global":true},{"name":"[aria-expanded]","global":true},{"name":"[aria-flowto]","global":true},{"name":"[aria-grabbed]","global":true},{"name":"[aria-haspopup]","global":true},{"name":"[aria-hidden]","global":true},{"name":"[aria-invalid]","global":true},{"name":"[aria-label]","global":true},{"name":"[aria-labelledby]","global":true},{"name":"[aria-level]","global":true},{"name":"[aria-live]","global":true},{"name":"[aria-multiline]","global":true},{"name":"[aria-multiselectable]","global":true},{"name":"[aria-orientation]","global":true},{"name":"[aria-owns]","global":true},{"name":"[aria-posinset]","global":true},{"name":"[aria-pressed]","global":true},{"name":"[aria-readonly]","global":true},{"name":"[aria-relevant]","global":true},{"name":"[aria-required]","global":true},{"name":"[aria-selected]","global":true},{"name":"[aria-setsize]","global":true},{"name":"[aria-sort]","global":true},{"name":"[aria-valuemax]","global":true},{"name":"[aria-valuemin]","global":true},{"name":"[aria-valuenow]","global":true},{"name":"[aria-valuetext]","global":true},{"name":"[class]","global":true},{"name":"[hidden]","global":true},{"name":"[text]","global":true},{"name":"i-amphtml-binding","value":[""],"enabledBy":["transformed"],"global":true},{"name":"autoscroll","requiresAncestor":{"marker":["AUTOSCROLL"]},"global":true}],"specUrl":"https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml/#required-markup","htmlFormat":["AMP"],"enabledBy":["transformed"]},{"tagName":"HEAD","mandatory":true,"unique":true,"mandatoryParent":"HTML","specUrl":"https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml/#required-markup","htmlFormat":["AMP","AMP4ADS","AMP4EMAIL"],"attrs":[{"name":"itemid","global":true},{"name":"itemprop","global":true},{"name":"itemref","global":true},{"name":"itemscope","global":true},{"name":"itemtype","global":true},{"name":"about","global":true},{"name":"content","global":true},{"name":"datatype","global":true},{"name":"inlist","global":true},{"name":"prefix","global":true},{"name":"property","global":true},{"name":"rel","disallowedValueRegex":"(^|\\s)(canonical|components|dns-prefetch|import|manifest|preconnect|preload|prerender|serviceworker|stylesheet|subresource)(\\s|$)","global":true},{"name":"resource","global":true},{"name":"rev","global":true},{"name":"style","valueDocCss":true,"global":true},{"name":"typeof","global":true},{"name":"vocab","global":true},{"name":"accesskey","global":true},{"name":"class","global":true},{"name":"dir","global":true},{"name":"draggable","global":true},{"name":"hidden","value":[""],"global":true},{"name":"id","disallowedValueRegex":"(^|\\s)(__amp_\\S*|__count__|__defineGetter__|__defineSetter__|__lookupGetter__|__lookupSetter__|__noSuchMethod__|__parent__|__proto__|__AMP_\\S*|\\$p|\\$proxy|acceptCharset|addEventListener|appendChild|assignedSlot|attachShadow|AMP|baseURI|checkValidity|childElementCount|childNodes|classList|className|clientHeight|clientLeft|clientTop|clientWidth|compareDocumentPosition|computedName|computedRole|contentEditable|createShadowRoot|enqueAction|firstChild|firstElementChild|getAnimations|getAttribute|getAttributeNS|getAttributeNode|getAttributeNodeNS|getBoundingClientRect|getClientRects|getDestinationInsertionPoints|getElementsByClassName|getElementsByTagName|getElementsByTagNameNS|getRootNode|hasAttribute|hasAttributeNS|hasAttributes|hasChildNodes|hasPointerCapture|i-amphtml-\\S*|innerHTML|innerText|inputMode|insertAdjacentElement|insertAdjacentHTML|insertAdjacentText|isContentEditable|isDefaultNamespace|isEqualNode|isSameNode|lastChild|lastElementChild|lookupNamespaceURI|namespaceURI|nextElementSibling|nextSibling|nodeName|nodeType|nodeValue|offsetHeight|offsetLeft|offsetParent|offsetTop|offsetWidth|outerHTML|outerText|ownerDocument|parentElement|parentNode|previousElementSibling|previousSibling|querySelector|querySelectorAll|releasePointerCapture|removeAttribute|removeAttributeNS|removeAttributeNode|removeChild|removeEventListener|replaceChild|reportValidity|requestPointerLock|scrollHeight|scrollIntoView|scrollIntoViewIfNeeded|scrollLeft|scrollWidth|setAttribute|setAttributeNS|setAttributeNode|setAttributeNodeNS|setPointerCapture|shadowRoot|styleMap|tabIndex|tagName|textContent|toString|valueOf|(webkit|ms|moz|o)dropzone|(webkit|moz|ms|o)MatchesSelector|(webkit|moz|ms|o)RequestFullScreen|(webkit|moz|ms|o)RequestFullscreen)(\\s|$)","global":true},{"name":"lang","global":true},{"name":"slot","global":true},{"name":"tabindex","global":true},{"name":"title","global":true},{"name":"translate","global":true},{"name":"aria-activedescendant","global":true},{"name":"aria-atomic","global":true},{"name":"aria-autocomplete","global":true},{"name":"aria-busy","global":true},{"name":"aria-checked","global":true},{"name":"aria-controls","global":true},{"name":"aria-current","global":true},{"name":"aria-describedby","global":true},{"name":"aria-disabled","global":true},{"name":"aria-dropeffect","global":true},{"name":"aria-expanded","global":true},{"name":"aria-flowto","global":true},{"name":"aria-grabbed","global":true},{"name":"aria-haspopup","global":true},{"name":"aria-hidden","global":true},{"name":"aria-invalid","global":true},{"name":"aria-label","global":true},{"name":"aria-labelledby","global":true},{"name":"aria-level","global":true},{"name":"aria-live","global":true},{"name":"aria-multiline","global":true},{"name":"aria-multiselectable","global":true},{"name":"aria-orientation","global":true},{"name":"aria-owns","global":true},{"name":"aria-posinset","global":true},{"name":"aria-pressed","global":true},{"name":"aria-readonly","global":true},{"name":"aria-relevant","global":true},{"name":"aria-required","global":true},{"name":"aria-selected","global":true},{"name":"aria-setsize","global":true},{"name":"aria-sort","global":true},{"name":"aria-valuemax","global":true},{"name":"aria-valuemin","global":true},{"name":"aria-valuenow","global":true},{"name":"aria-valuetext","global":true},{"name":"on","trigger":{"ifValueRegex":"tap:.*","alsoRequiresAttr":["role","tabindex"]},"global":true},{"name":"role","global":true},{"name":"placeholder","value":[""],"global":true},{"name":"fallback","value":[""],"global":true},{"name":"overflow","global":true},{"name":"amp-access","global":true},{"name":"amp-access-behavior","global":true},{"name":"amp-access-hide","global":true},{"name":"amp-access-id","global":true},{"name":"amp-access-loader","global":true},{"name":"amp-access-loading","global":true},{"name":"amp-access-off","global":true},{"name":"amp-access-on","global":true},{"name":"amp-access-show","global":true},{"name":"amp-access-style","global":true},{"name":"amp-access-template","global":true},{"name":"i-amp-access-id","global":true},{"name":"validation-for","trigger":{"alsoRequiresAttr":["visible-when-invalid"]},"global":true},{"name":"visible-when-invalid","value":["badInput","customError","patternMismatch","rangeOverflow","rangeUnderflow","stepMismatch","tooLong","tooShort","typeMismatch","valueMissing"],"trigger":{"alsoRequiresAttr":["validation-for"]},"global":true},{"name":"amp-fx","valueRegexCasei":"(fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)(\\s|fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)*","requiresExtension":["amp-fx-collection"],"global":true},{"name":"subscriptions-action","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-actions","value":[""],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-decorate","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-dialog","value":[""],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-display","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-lang","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-section","valueCasei":["actions","content","content-not-granted","loading"],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-service","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-google-rtc","requiresExtension":["amp-subscriptions-google"],"global":true},{"name":"next-page-hide","requiresExtension":["amp-next-page"],"global":true},{"name":"next-page-replace","requiresExtension":["amp-next-page"],"global":true},{"name":"[aria-activedescendant]","global":true},{"name":"[aria-atomic]","global":true},{"name":"[aria-autocomplete]","global":true},{"name":"[aria-busy]","global":true},{"name":"[aria-checked]","global":true},{"name":"[aria-controls]","global":true},{"name":"[aria-describedby]","global":true},{"name":"[aria-disabled]","global":true},{"name":"[aria-dropeffect]","global":true},{"name":"[aria-expanded]","global":true},{"name":"[aria-flowto]","global":true},{"name":"[aria-grabbed]","global":true},{"name":"[aria-haspopup]","global":true},{"name":"[aria-hidden]","global":true},{"name":"[aria-invalid]","global":true},{"name":"[aria-label]","global":true},{"name":"[aria-labelledby]","global":true},{"name":"[aria-level]","global":true},{"name":"[aria-live]","global":true},{"name":"[aria-multiline]","global":true},{"name":"[aria-multiselectable]","global":true},{"name":"[aria-orientation]","global":true},{"name":"[aria-owns]","global":true},{"name":"[aria-posinset]","global":true},{"name":"[aria-pressed]","global":true},{"name":"[aria-readonly]","global":true},{"name":"[aria-relevant]","global":true},{"name":"[aria-required]","global":true},{"name":"[aria-selected]","global":true},{"name":"[aria-setsize]","global":true},{"name":"[aria-sort]","global":true},{"name":"[aria-valuemax]","global":true},{"name":"[aria-valuemin]","global":true},{"name":"[aria-valuenow]","global":true},{"name":"[aria-valuetext]","global":true},{"name":"[class]","global":true},{"name":"[hidden]","global":true},{"name":"[text]","global":true},{"name":"i-amphtml-binding","value":[""],"enabledBy":["transformed"],"global":true},{"name":"autoscroll","requiresAncestor":{"marker":["AUTOSCROLL"]},"global":true}]},{"tagName":"TITLE","specName":"title","attrs":[{"name":"[text]"},{"name":"itemid","global":true},{"name":"itemprop","global":true},{"name":"itemref","global":true},{"name":"itemscope","global":true},{"name":"itemtype","global":true},{"name":"about","global":true},{"name":"content","global":true},{"name":"datatype","global":true},{"name":"inlist","global":true},{"name":"prefix","global":true},{"name":"property","global":true},{"name":"rel","disallowedValueRegex":"(^|\\s)(canonical|components|dns-prefetch|import|manifest|preconnect|preload|prerender|serviceworker|stylesheet|subresource)(\\s|$)","global":true},{"name":"resource","global":true},{"name":"rev","global":true},{"name":"style","valueDocCss":true,"global":true},{"name":"typeof","global":true},{"name":"vocab","global":true},{"name":"accesskey","global":true},{"name":"class","global":true},{"name":"dir","global":true},{"name":"draggable","global":true},{"name":"hidden","value":[""],"global":true},{"name":"id","disallowedValueRegex":"(^|\\s)(__amp_\\S*|__count__|__defineGetter__|__defineSetter__|__lookupGetter__|__lookupSetter__|__noSuchMethod__|__parent__|__proto__|__AMP_\\S*|\\$p|\\$proxy|acceptCharset|addEventListener|appendChild|assignedSlot|attachShadow|AMP|baseURI|checkValidity|childElementCount|childNodes|classList|className|clientHeight|clientLeft|clientTop|clientWidth|compareDocumentPosition|computedName|computedRole|contentEditable|createShadowRoot|enqueAction|firstChild|firstElementChild|getAnimations|getAttribute|getAttributeNS|getAttributeNode|getAttributeNodeNS|getBoundingClientRect|getClientRects|getDestinationInsertionPoints|getElementsByClassName|getElementsByTagName|getElementsByTagNameNS|getRootNode|hasAttribute|hasAttributeNS|hasAttributes|hasChildNodes|hasPointerCapture|i-amphtml-\\S*|innerHTML|innerText|inputMode|insertAdjacentElement|insertAdjacentHTML|insertAdjacentText|isContentEditable|isDefaultNamespace|isEqualNode|isSameNode|lastChild|lastElementChild|lookupNamespaceURI|namespaceURI|nextElementSibling|nextSibling|nodeName|nodeType|nodeValue|offsetHeight|offsetLeft|offsetParent|offsetTop|offsetWidth|outerHTML|outerText|ownerDocument|parentElement|parentNode|previousElementSibling|previousSibling|querySelector|querySelectorAll|releasePointerCapture|removeAttribute|removeAttributeNS|removeAttributeNode|removeChild|removeEventListener|replaceChild|reportValidity|requestPointerLock|scrollHeight|scrollIntoView|scrollIntoViewIfNeeded|scrollLeft|scrollWidth|setAttribute|setAttributeNS|setAttributeNode|setAttributeNodeNS|setPointerCapture|shadowRoot|styleMap|tabIndex|tagName|textContent|toString|valueOf|(webkit|ms|moz|o)dropzone|(webkit|moz|ms|o)MatchesSelector|(webkit|moz|ms|o)RequestFullScreen|(webkit|moz|ms|o)RequestFullscreen)(\\s|$)","global":true},{"name":"lang","global":true},{"name":"slot","global":true},{"name":"tabindex","global":true},{"name":"title","global":true},{"name":"translate","global":true},{"name":"aria-activedescendant","global":true},{"name":"aria-atomic","global":true},{"name":"aria-autocomplete","global":true},{"name":"aria-busy","global":true},{"name":"aria-checked","global":true},{"name":"aria-controls","global":true},{"name":"aria-current","global":true},{"name":"aria-describedby","global":true},{"name":"aria-disabled","global":true},{"name":"aria-dropeffect","global":true},{"name":"aria-expanded","global":true},{"name":"aria-flowto","global":true},{"name":"aria-grabbed","global":true},{"name":"aria-haspopup","global":true},{"name":"aria-hidden","global":true},{"name":"aria-invalid","global":true},{"name":"aria-label","global":true},{"name":"aria-labelledby","global":true},{"name":"aria-level","global":true},{"name":"aria-live","global":true},{"name":"aria-multiline","global":true},{"name":"aria-multiselectable","global":true},{"name":"aria-orientation","global":true},{"name":"aria-owns","global":true},{"name":"aria-posinset","global":true},{"name":"aria-pressed","global":true},{"name":"aria-readonly","global":true},{"name":"aria-relevant","global":true},{"name":"aria-required","global":true},{"name":"aria-selected","global":true},{"name":"aria-setsize","global":true},{"name":"aria-sort","global":true},{"name":"aria-valuemax","global":true},{"name":"aria-valuemin","global":true},{"name":"aria-valuenow","global":true},{"name":"aria-valuetext","global":true},{"name":"on","trigger":{"ifValueRegex":"tap:.*","alsoRequiresAttr":["role","tabindex"]},"global":true},{"name":"role","global":true},{"name":"placeholder","value":[""],"global":true},{"name":"fallback","value":[""],"global":true},{"name":"overflow","global":true},{"name":"amp-access","global":true},{"name":"amp-access-behavior","global":true},{"name":"amp-access-hide","global":true},{"name":"amp-access-id","global":true},{"name":"amp-access-loader","global":true},{"name":"amp-access-loading","global":true},{"name":"amp-access-off","global":true},{"name":"amp-access-on","global":true},{"name":"amp-access-show","global":true},{"name":"amp-access-style","global":true},{"name":"amp-access-template","global":true},{"name":"i-amp-access-id","global":true},{"name":"validation-for","trigger":{"alsoRequiresAttr":["visible-when-invalid"]},"global":true},{"name":"visible-when-invalid","value":["badInput","customError","patternMismatch","rangeOverflow","rangeUnderflow","stepMismatch","tooLong","tooShort","typeMismatch","valueMissing"],"trigger":{"alsoRequiresAttr":["validation-for"]},"global":true},{"name":"amp-fx","valueRegexCasei":"(fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)(\\s|fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)*","requiresExtension":["amp-fx-collection"],"global":true},{"name":"subscriptions-action","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-actions","value":[""],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-decorate","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-dialog","value":[""],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-display","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-lang","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-section","valueCasei":["actions","content","content-not-granted","loading"],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-service","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-google-rtc","requiresExtension":["amp-subscriptions-google"],"global":true},{"name":"next-page-hide","requiresExtension":["amp-next-page"],"global":true},{"name":"next-page-replace","requiresExtension":["amp-next-page"],"global":true},{"name":"[aria-activedescendant]","global":true},{"name":"[aria-atomic]","global":true},{"name":"[aria-autocomplete]","global":true},{"name":"[aria-busy]","global":true},{"name":"[aria-checked]","global":true},{"name":"[aria-controls]","global":true},{"name":"[aria-describedby]","global":true},{"name":"[aria-disabled]","global":true},{"name":"[aria-dropeffect]","global":true},{"name":"[aria-expanded]","global":true},{"name":"[aria-flowto]","global":true},{"name":"[aria-grabbed]","global":true},{"name":"[aria-haspopup]","global":true},{"name":"[aria-hidden]","global":true},{"name":"[aria-invalid]","global":true},{"name":"[aria-label]","global":true},{"name":"[aria-labelledby]","global":true},{"name":"[aria-level]","global":true},{"name":"[aria-live]","global":true},{"name":"[aria-multiline]","global":true},{"name":"[aria-multiselectable]","global":true},{"name":"[aria-orientation]","global":true},{"name":"[aria-owns]","global":true},{"name":"[aria-posinset]","global":true},{"name":"[aria-pressed]","global":true},{"name":"[aria-readonly]","global":true},{"name":"[aria-relevant]","global":true},{"name":"[aria-required]","global":true},{"name":"[aria-selected]","global":true},{"name":"[aria-setsize]","global":true},{"name":"[aria-sort]","global":true},{"name":"[aria-valuemax]","global":true},{"name":"[aria-valuemin]","global":true},{"name":"[aria-valuenow]","global":true},{"name":"[aria-valuetext]","global":true},{"name":"[class]","global":true},{"name":"[hidden]","global":true},{"name":"[text]","global":true},{"name":"i-amphtml-binding","value":[""],"enabledBy":["transformed"],"global":true},{"name":"autoscroll","requiresAncestor":{"marker":["AUTOSCROLL"]},"global":true}],"htmlFormat":["AMP","AMP4ADS"]},{"tagName":"TITLE","specName":"title [AMP4EMAIL]","attrs":[{"name":"[text]"},{"name":"itemid","global":true},{"name":"itemprop","global":true},{"name":"itemref","global":true},{"name":"itemscope","global":true},{"name":"itemtype","global":true},{"name":"about","global":true},{"name":"content","global":true},{"name":"datatype","global":true},{"name":"inlist","global":true},{"name":"prefix","global":true},{"name":"property","global":true},{"name":"rel","disallowedValueRegex":"(^|\\s)(canonical|components|dns-prefetch|import|manifest|preconnect|preload|prerender|serviceworker|stylesheet|subresource)(\\s|$)","global":true},{"name":"resource","global":true},{"name":"rev","global":true},{"name":"style","valueDocCss":true,"global":true},{"name":"typeof","global":true},{"name":"vocab","global":true},{"name":"accesskey","global":true},{"name":"class","global":true},{"name":"dir","global":true},{"name":"draggable","global":true},{"name":"hidden","value":[""],"global":true},{"name":"id","disallowedValueRegex":"(^|\\s)(__amp_\\S*|__count__|__defineGetter__|__defineSetter__|__lookupGetter__|__lookupSetter__|__noSuchMethod__|__parent__|__proto__|__AMP_\\S*|\\$p|\\$proxy|acceptCharset|addEventListener|appendChild|assignedSlot|attachShadow|AMP|baseURI|checkValidity|childElementCount|childNodes|classList|className|clientHeight|clientLeft|clientTop|clientWidth|compareDocumentPosition|computedName|computedRole|contentEditable|createShadowRoot|enqueAction|firstChild|firstElementChild|getAnimations|getAttribute|getAttributeNS|getAttributeNode|getAttributeNodeNS|getBoundingClientRect|getClientRects|getDestinationInsertionPoints|getElementsByClassName|getElementsByTagName|getElementsByTagNameNS|getRootNode|hasAttribute|hasAttributeNS|hasAttributes|hasChildNodes|hasPointerCapture|i-amphtml-\\S*|innerHTML|innerText|inputMode|insertAdjacentElement|insertAdjacentHTML|insertAdjacentText|isContentEditable|isDefaultNamespace|isEqualNode|isSameNode|lastChild|lastElementChild|lookupNamespaceURI|namespaceURI|nextElementSibling|nextSibling|nodeName|nodeType|nodeValue|offsetHeight|offsetLeft|offsetParent|offsetTop|offsetWidth|outerHTML|outerText|ownerDocument|parentElement|parentNode|previousElementSibling|previousSibling|querySelector|querySelectorAll|releasePointerCapture|removeAttribute|removeAttributeNS|removeAttributeNode|removeChild|removeEventListener|replaceChild|reportValidity|requestPointerLock|scrollHeight|scrollIntoView|scrollIntoViewIfNeeded|scrollLeft|scrollWidth|setAttribute|setAttributeNS|setAttributeNode|setAttributeNodeNS|setPointerCapture|shadowRoot|styleMap|tabIndex|tagName|textContent|toString|valueOf|(webkit|ms|moz|o)dropzone|(webkit|moz|ms|o)MatchesSelector|(webkit|moz|ms|o)RequestFullScreen|(webkit|moz|ms|o)RequestFullscreen)(\\s|$)","global":true},{"name":"lang","global":true},{"name":"slot","global":true},{"name":"tabindex","global":true},{"name":"title","global":true},{"name":"translate","global":true},{"name":"aria-activedescendant","global":true},{"name":"aria-atomic","global":true},{"name":"aria-autocomplete","global":true},{"name":"aria-busy","global":true},{"name":"aria-checked","global":true},{"name":"aria-controls","global":true},{"name":"aria-current","global":true},{"name":"aria-describedby","global":true},{"name":"aria-disabled","global":true},{"name":"aria-dropeffect","global":true},{"name":"aria-expanded","global":true},{"name":"aria-flowto","global":true},{"name":"aria-grabbed","global":true},{"name":"aria-haspopup","global":true},{"name":"aria-hidden","global":true},{"name":"aria-invalid","global":true},{"name":"aria-label","global":true},{"name":"aria-labelledby","global":true},{"name":"aria-level","global":true},{"name":"aria-live","global":true},{"name":"aria-multiline","global":true},{"name":"aria-multiselectable","global":true},{"name":"aria-orientation","global":true},{"name":"aria-owns","global":true},{"name":"aria-posinset","global":true},{"name":"aria-pressed","global":true},{"name":"aria-readonly","global":true},{"name":"aria-relevant","global":true},{"name":"aria-required","global":true},{"name":"aria-selected","global":true},{"name":"aria-setsize","global":true},{"name":"aria-sort","global":true},{"name":"aria-valuemax","global":true},{"name":"aria-valuemin","global":true},{"name":"aria-valuenow","global":true},{"name":"aria-valuetext","global":true},{"name":"on","trigger":{"ifValueRegex":"tap:.*","alsoRequiresAttr":["role","tabindex"]},"global":true},{"name":"role","global":true},{"name":"placeholder","value":[""],"global":true},{"name":"fallback","value":[""],"global":true},{"name":"overflow","global":true},{"name":"amp-access","global":true},{"name":"amp-access-behavior","global":true},{"name":"amp-access-hide","global":true},{"name":"amp-access-id","global":true},{"name":"amp-access-loader","global":true},{"name":"amp-access-loading","global":true},{"name":"amp-access-off","global":true},{"name":"amp-access-on","global":true},{"name":"amp-access-show","global":true},{"name":"amp-access-style","global":true},{"name":"amp-access-template","global":true},{"name":"i-amp-access-id","global":true},{"name":"validation-for","trigger":{"alsoRequiresAttr":["visible-when-invalid"]},"global":true},{"name":"visible-when-invalid","value":["badInput","customError","patternMismatch","rangeOverflow","rangeUnderflow","stepMismatch","tooLong","tooShort","typeMismatch","valueMissing"],"trigger":{"alsoRequiresAttr":["validation-for"]},"global":true},{"name":"amp-fx","valueRegexCasei":"(fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)(\\s|fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)*","requiresExtension":["amp-fx-collection"],"global":true},{"name":"subscriptions-action","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-actions","value":[""],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-decorate","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-dialog","value":[""],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-display","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-lang","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-section","valueCasei":["actions","content","content-not-granted","loading"],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-service","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-google-rtc","requiresExtension":["amp-subscriptions-google"],"global":true},{"name":"next-page-hide","requiresExtension":["amp-next-page"],"global":true},{"name":"next-page-replace","requiresExtension":["amp-next-page"],"global":true},{"name":"[aria-activedescendant]","global":true},{"name":"[aria-atomic]","global":true},{"name":"[aria-autocomplete]","global":true},{"name":"[aria-busy]","global":true},{"name":"[aria-checked]","global":true},{"name":"[aria-controls]","global":true},{"name":"[aria-describedby]","global":true},{"name":"[aria-disabled]","global":true},{"name":"[aria-dropeffect]","global":true},{"name":"[aria-expanded]","global":true},{"name":"[aria-flowto]","global":true},{"name":"[aria-grabbed]","global":true},{"name":"[aria-haspopup]","global":true},{"name":"[aria-hidden]","global":true},{"name":"[aria-invalid]","global":true},{"name":"[aria-label]","global":true},{"name":"[aria-labelledby]","global":true},{"name":"[aria-level]","global":true},{"name":"[aria-live]","global":true},{"name":"[aria-multiline]","global":true},{"name":"[aria-multiselectable]","global":true},{"name":"[aria-orientation]","global":true},{"name":"[aria-owns]","global":true},{"name":"[aria-posinset]","global":true},{"name":"[aria-pressed]","global":true},{"name":"[aria-readonly]","global":true},{"name":"[aria-relevant]","global":true},{"name":"[aria-required]","global":true},{"name":"[aria-selected]","global":true},{"name":"[aria-setsize]","global":true},{"name":"[aria-sort]","global":true},{"name":"[aria-valuemax]","global":true},{"name":"[aria-valuemin]","global":true},{"name":"[aria-valuenow]","global":true},{"name":"[aria-valuetext]","global":true},{"name":"[class]","global":true},{"name":"[hidden]","global":true},{"name":"[text]","global":true},{"name":"i-amphtml-binding","value":[""],"enabledBy":["transformed"],"global":true},{"name":"autoscroll","requiresAncestor":{"marker":["AUTOSCROLL"]},"global":true}],"deprecation":"Title tags in email have no meaning. This tag may become invalid in the future.","deprecationUrl":"https://github.com/ampproject/amphtml/issues/22318","htmlFormat":["AMP4EMAIL"]},{"tagName":"BASE","unique":true,"mandatoryParent":"HEAD","attrs":[{"name":"href","value":["/"]},{"name":"target","valueCasei":["_blank","_self","_top"]},{"name":"itemid","global":true},{"name":"itemprop","global":true},{"name":"itemref","global":true},{"name":"itemscope","global":true},{"name":"itemtype","global":true},{"name":"about","global":true},{"name":"content","global":true},{"name":"datatype","global":true},{"name":"inlist","global":true},{"name":"prefix","global":true},{"name":"property","global":true},{"name":"rel","disallowedValueRegex":"(^|\\s)(canonical|components|dns-prefetch|import|manifest|preconnect|preload|prerender|serviceworker|stylesheet|subresource)(\\s|$)","global":true},{"name":"resource","global":true},{"name":"rev","global":true},{"name":"style","valueDocCss":true,"global":true},{"name":"typeof","global":true},{"name":"vocab","global":true},{"name":"accesskey","global":true},{"name":"class","global":true},{"name":"dir","global":true},{"name":"draggable","global":true},{"name":"hidden","value":[""],"global":true},{"name":"id","disallowedValueRegex":"(^|\\s)(__amp_\\S*|__count__|__defineGetter__|__defineSetter__|__lookupGetter__|__lookupSetter__|__noSuchMethod__|__parent__|__proto__|__AMP_\\S*|\\$p|\\$proxy|acceptCharset|addEventListener|appendChild|assignedSlot|attachShadow|AMP|baseURI|checkValidity|childElementCount|childNodes|classList|className|clientHeight|clientLeft|clientTop|clientWidth|compareDocumentPosition|computedName|computedRole|contentEditable|createShadowRoot|enqueAction|firstChild|firstElementChild|getAnimations|getAttribute|getAttributeNS|getAttributeNode|getAttributeNodeNS|getBoundingClientRect|getClientRects|getDestinationInsertionPoints|getElementsByClassName|getElementsByTagName|getElementsByTagNameNS|getRootNode|hasAttribute|hasAttributeNS|hasAttributes|hasChildNodes|hasPointerCapture|i-amphtml-\\S*|innerHTML|innerText|inputMode|insertAdjacentElement|insertAdjacentHTML|insertAdjacentText|isContentEditable|isDefaultNamespace|isEqualNode|isSameNode|lastChild|lastElementChild|lookupNamespaceURI|namespaceURI|nextElementSibling|nextSibling|nodeName|nodeType|nodeValue|offsetHeight|offsetLeft|offsetParent|offsetTop|offsetWidth|outerHTML|outerText|ownerDocument|parentElement|parentNode|previousElementSibling|previousSibling|querySelector|querySelectorAll|releasePointerCapture|removeAttribute|removeAttributeNS|removeAttributeNode|removeChild|removeEventListener|replaceChild|reportValidity|requestPointerLock|scrollHeight|scrollIntoView|scrollIntoViewIfNeeded|scrollLeft|scrollWidth|setAttribute|setAttributeNS|setAttributeNode|setAttributeNodeNS|setPointerCapture|shadowRoot|styleMap|tabIndex|tagName|textContent|toString|valueOf|(webkit|ms|moz|o)dropzone|(webkit|moz|ms|o)MatchesSelector|(webkit|moz|ms|o)RequestFullScreen|(webkit|moz|ms|o)RequestFullscreen)(\\s|$)","global":true},{"name":"lang","global":true},{"name":"slot","global":true},{"name":"tabindex","global":true},{"name":"title","global":true},{"name":"translate","global":true},{"name":"aria-activedescendant","global":true},{"name":"aria-atomic","global":true},{"name":"aria-autocomplete","global":true},{"name":"aria-busy","global":true},{"name":"aria-checked","global":true},{"name":"aria-controls","global":true},{"name":"aria-current","global":true},{"name":"aria-describedby","global":true},{"name":"aria-disabled","global":true},{"name":"aria-dropeffect","global":true},{"name":"aria-expanded","global":true},{"name":"aria-flowto","global":true},{"name":"aria-grabbed","global":true},{"name":"aria-haspopup","global":true},{"name":"aria-hidden","global":true},{"name":"aria-invalid","global":true},{"name":"aria-label","global":true},{"name":"aria-labelledby","global":true},{"name":"aria-level","global":true},{"name":"aria-live","global":true},{"name":"aria-multiline","global":true},{"name":"aria-multiselectable","global":true},{"name":"aria-orientation","global":true},{"name":"aria-owns","global":true},{"name":"aria-posinset","global":true},{"name":"aria-pressed","global":true},{"name":"aria-readonly","global":true},{"name":"aria-relevant","global":true},{"name":"aria-required","global":true},{"name":"aria-selected","global":true},{"name":"aria-setsize","global":true},{"name":"aria-sort","global":true},{"name":"aria-valuemax","global":true},{"name":"aria-valuemin","global":true},{"name":"aria-valuenow","global":true},{"name":"aria-valuetext","global":true},{"name":"on","trigger":{"ifValueRegex":"tap:.*","alsoRequiresAttr":["role","tabindex"]},"global":true},{"name":"role","global":true},{"name":"placeholder","value":[""],"global":true},{"name":"fallback","value":[""],"global":true},{"name":"overflow","global":true},{"name":"amp-access","global":true},{"name":"amp-access-behavior","global":true},{"name":"amp-access-hide","global":true},{"name":"amp-access-id","global":true},{"name":"amp-access-loader","global":true},{"name":"amp-access-loading","global":true},{"name":"amp-access-off","global":true},{"name":"amp-access-on","global":true},{"name":"amp-access-show","global":true},{"name":"amp-access-style","global":true},{"name":"amp-access-template","global":true},{"name":"i-amp-access-id","global":true},{"name":"validation-for","trigger":{"alsoRequiresAttr":["visible-when-invalid"]},"global":true},{"name":"visible-when-invalid","value":["badInput","customError","patternMismatch","rangeOverflow","rangeUnderflow","stepMismatch","tooLong","tooShort","typeMismatch","valueMissing"],"trigger":{"alsoRequiresAttr":["validation-for"]},"global":true},{"name":"amp-fx","valueRegexCasei":"(fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)(\\s|fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)*","requiresExtension":["amp-fx-collection"],"global":true},{"name":"subscriptions-action","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-actions","value":[""],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-decorate","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-dialog","value":[""],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-display","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-lang","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-section","valueCasei":["actions","content","content-not-granted","loading"],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-service","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-google-rtc","requiresExtension":["amp-subscriptions-google"],"global":true},{"name":"next-page-hide","requiresExtension":["amp-next-page"],"global":true},{"name":"next-page-replace","requiresExtension":["amp-next-page"],"global":true},{"name":"[aria-activedescendant]","global":true},{"name":"[aria-atomic]","global":true},{"name":"[aria-autocomplete]","global":true},{"name":"[aria-busy]","global":true},{"name":"[aria-checked]","global":true},{"name":"[aria-controls]","global":true},{"name":"[aria-describedby]","global":true},{"name":"[aria-disabled]","global":true},{"name":"[aria-dropeffect]","global":true},{"name":"[aria-expanded]","global":true},{"name":"[aria-flowto]","global":true},{"name":"[aria-grabbed]","global":true},{"name":"[aria-haspopup]","global":true},{"name":"[aria-hidden]","global":true},{"name":"[aria-invalid]","global":true},{"name":"[aria-label]","global":true},{"name":"[aria-labelledby]","global":true},{"name":"[aria-level]","global":true},{"name":"[aria-live]","global":true},{"name":"[aria-multiline]","global":true},{"name":"[aria-multiselectable]","global":true},{"name":"[aria-orientation]","global":true},{"name":"[aria-owns]","global":true},{"name":"[aria-posinset]","global":true},{"name":"[aria-pressed]","global":true},{"name":"[aria-readonly]","global":true},{"name":"[aria-relevant]","global":true},{"name":"[aria-required]","global":true},{"name":"[aria-selected]","global":true},{"name":"[aria-setsize]","global":true},{"name":"[aria-sort]","global":true},{"name":"[aria-valuemax]","global":true},{"name":"[aria-valuemin]","global":true},{"name":"[aria-valuenow]","global":true},{"name":"[aria-valuetext]","global":true},{"name":"[class]","global":true},{"name":"[hidden]","global":true},{"name":"[text]","global":true},{"name":"i-amphtml-binding","value":[""],"enabledBy":["transformed"],"global":true},{"name":"autoscroll","requiresAncestor":{"marker":["AUTOSCROLL"]},"global":true}],"htmlFormat":["AMP","AMP4ADS"]},{"tagName":"LINK","specName":"link rel=","attrs":[{"name":"href"},{"name":"rel","mandatory":true,"disallowedValueRegex":"(^|\\s)(canonical|components|import|manifest|modulepreload|preload|serviceworker|stylesheet|subresource)(\\s|$)"},{"name":"charset","valueCasei":["utf-8"]},{"name":"color"},{"name":"crossorigin"},{"name":"hreflang"},{"name":"media"},{"name":"sizes"},{"name":"target"},{"name":"type"},{"name":"itemid","global":true},{"name":"itemprop","global":true},{"name":"itemref","global":true},{"name":"itemscope","global":true},{"name":"itemtype","global":true},{"name":"about","global":true},{"name":"content","global":true},{"name":"datatype","global":true},{"name":"inlist","global":true},{"name":"prefix","global":true},{"name":"property","global":true},{"name":"rel","disallowedValueRegex":"(^|\\s)(canonical|components|dns-prefetch|import|manifest|preconnect|preload|prerender|serviceworker|stylesheet|subresource)(\\s|$)","global":true},{"name":"resource","global":true},{"name":"rev","global":true},{"name":"style","valueDocCss":true,"global":true},{"name":"typeof","global":true},{"name":"vocab","global":true},{"name":"accesskey","global":true},{"name":"class","global":true},{"name":"dir","global":true},{"name":"draggable","global":true},{"name":"hidden","value":[""],"global":true},{"name":"id","disallowedValueRegex":"(^|\\s)(__amp_\\S*|__count__|__defineGetter__|__defineSetter__|__lookupGetter__|__lookupSetter__|__noSuchMethod__|__parent__|__proto__|__AMP_\\S*|\\$p|\\$proxy|acceptCharset|addEventListener|appendChild|assignedSlot|attachShadow|AMP|baseURI|checkValidity|childElementCount|childNodes|classList|className|clientHeight|clientLeft|clientTop|clientWidth|compareDocumentPosition|computedName|computedRole|contentEditable|createShadowRoot|enqueAction|firstChild|firstElementChild|getAnimations|getAttribute|getAttributeNS|getAttributeNode|getAttributeNodeNS|getBoundingClientRect|getClientRects|getDestinationInsertionPoints|getElementsByClassName|getElementsByTagName|getElementsByTagNameNS|getRootNode|hasAttribute|hasAttributeNS|hasAttributes|hasChildNodes|hasPointerCapture|i-amphtml-\\S*|innerHTML|innerText|inputMode|insertAdjacentElement|insertAdjacentHTML|insertAdjacentText|isContentEditable|isDefaultNamespace|isEqualNode|isSameNode|lastChild|lastElementChild|lookupNamespaceURI|namespaceURI|nextElementSibling|nextSibling|nodeName|nodeType|nodeValue|offsetHeight|offsetLeft|offsetParent|offsetTop|offsetWidth|outerHTML|outerText|ownerDocument|parentElement|parentNode|previousElementSibling|previousSibling|querySelector|querySelectorAll|releasePointerCapture|removeAttribute|removeAttributeNS|removeAttributeNode|removeChild|removeEventListener|replaceChild|reportValidity|requestPointerLock|scrollHeight|scrollIntoView|scrollIntoViewIfNeeded|scrollLeft|scrollWidth|setAttribute|setAttributeNS|setAttributeNode|setAttributeNodeNS|setPointerCapture|shadowRoot|styleMap|tabIndex|tagName|textContent|toString|valueOf|(webkit|ms|moz|o)dropzone|(webkit|moz|ms|o)MatchesSelector|(webkit|moz|ms|o)RequestFullScreen|(webkit|moz|ms|o)RequestFullscreen)(\\s|$)","global":true},{"name":"lang","global":true},{"name":"slot","global":true},{"name":"tabindex","global":true},{"name":"title","global":true},{"name":"translate","global":true},{"name":"aria-activedescendant","global":true},{"name":"aria-atomic","global":true},{"name":"aria-autocomplete","global":true},{"name":"aria-busy","global":true},{"name":"aria-checked","global":true},{"name":"aria-controls","global":true},{"name":"aria-current","global":true},{"name":"aria-describedby","global":true},{"name":"aria-disabled","global":true},{"name":"aria-dropeffect","global":true},{"name":"aria-expanded","global":true},{"name":"aria-flowto","global":true},{"name":"aria-grabbed","global":true},{"name":"aria-haspopup","global":true},{"name":"aria-hidden","global":true},{"name":"aria-invalid","global":true},{"name":"aria-label","global":true},{"name":"aria-labelledby","global":true},{"name":"aria-level","global":true},{"name":"aria-live","global":true},{"name":"aria-multiline","global":true},{"name":"aria-multiselectable","global":true},{"name":"aria-orientation","global":true},{"name":"aria-owns","global":true},{"name":"aria-posinset","global":true},{"name":"aria-pressed","global":true},{"name":"aria-readonly","global":true},{"name":"aria-relevant","global":true},{"name":"aria-required","global":true},{"name":"aria-selected","global":true},{"name":"aria-setsize","global":true},{"name":"aria-sort","global":true},{"name":"aria-valuemax","global":true},{"name":"aria-valuemin","global":true},{"name":"aria-valuenow","global":true},{"name":"aria-valuetext","global":true},{"name":"on","trigger":{"ifValueRegex":"tap:.*","alsoRequiresAttr":["role","tabindex"]},"global":true},{"name":"role","global":true},{"name":"placeholder","value":[""],"global":true},{"name":"fallback","value":[""],"global":true},{"name":"overflow","global":true},{"name":"amp-access","global":true},{"name":"amp-access-behavior","global":true},{"name":"amp-access-hide","global":true},{"name":"amp-access-id","global":true},{"name":"amp-access-loader","global":true},{"name":"amp-access-loading","global":true},{"name":"amp-access-off","global":true},{"name":"amp-access-on","global":true},{"name":"amp-access-show","global":true},{"name":"amp-access-style","global":true},{"name":"amp-access-template","global":true},{"name":"i-amp-access-id","global":true},{"name":"validation-for","trigger":{"alsoRequiresAttr":["visible-when-invalid"]},"global":true},{"name":"visible-when-invalid","value":["badInput","customError","patternMismatch","rangeOverflow","rangeUnderflow","stepMismatch","tooLong","tooShort","typeMismatch","valueMissing"],"trigger":{"alsoRequiresAttr":["validation-for"]},"global":true},{"name":"amp-fx","valueRegexCasei":"(fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)(\\s|fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)*","requiresExtension":["amp-fx-collection"],"global":true},{"name":"subscriptions-action","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-actions","value":[""],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-decorate","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-dialog","value":[""],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-display","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-lang","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-section","valueCasei":["actions","content","content-not-granted","loading"],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-service","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-google-rtc","requiresExtension":["amp-subscriptions-google"],"global":true},{"name":"next-page-hide","requiresExtension":["amp-next-page"],"global":true},{"name":"next-page-replace","requiresExtension":["amp-next-page"],"global":true},{"name":"[aria-activedescendant]","global":true},{"name":"[aria-atomic]","global":true},{"name":"[aria-autocomplete]","global":true},{"name":"[aria-busy]","global":true},{"name":"[aria-checked]","global":true},{"name":"[aria-controls]","global":true},{"name":"[aria-describedby]","global":true},{"name":"[aria-disabled]","global":true},{"name":"[aria-dropeffect]","global":true},{"name":"[aria-expanded]","global":true},{"name":"[aria-flowto]","global":true},{"name":"[aria-grabbed]","global":true},{"name":"[aria-haspopup]","global":true},{"name":"[aria-hidden]","global":true},{"name":"[aria-invalid]","global":true},{"name":"[aria-label]","global":true},{"name":"[aria-labelledby]","global":true},{"name":"[aria-level]","global":true},{"name":"[aria-live]","global":true},{"name":"[aria-multiline]","global":true},{"name":"[aria-multiselectable]","global":true},{"name":"[aria-orientation]","global":true},{"name":"[aria-owns]","global":true},{"name":"[aria-posinset]","global":true},{"name":"[aria-pressed]","global":true},{"name":"[aria-readonly]","global":true},{"name":"[aria-relevant]","global":true},{"name":"[aria-required]","global":true},{"name":"[aria-selected]","global":true},{"name":"[aria-setsize]","global":true},{"name":"[aria-sort]","global":true},{"name":"[aria-valuemax]","global":true},{"name":"[aria-valuemin]","global":true},{"name":"[aria-valuenow]","global":true},{"name":"[aria-valuetext]","global":true},{"name":"[class]","global":true},{"name":"[hidden]","global":true},{"name":"[text]","global":true},{"name":"i-amphtml-binding","value":[""],"enabledBy":["transformed"],"global":true},{"name":"autoscroll","requiresAncestor":{"marker":["AUTOSCROLL"]},"global":true}],"specUrl":"https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml/#html-tags","disallowedAncestor":["TEMPLATE"],"htmlFormat":["AMP","AMP4ADS"]},{"tagName":"LINK","specName":"link rel=canonical","mandatory":true,"unique":true,"mandatoryParent":"HEAD","attrs":[{"name":"href","mandatory":true,"disallowedValueRegex":"__amp_source_origin","valueUrl":{"protocol":["http","https"]}},{"name":"rel","mandatory":true,"dispatchKey":"NAME_VALUE_DISPATCH","valueCasei":["canonical"]},{"name":"charset","valueCasei":["utf-8"]},{"name":"color"},{"name":"crossorigin"},{"name":"hreflang"},{"name":"media"},{"name":"sizes"},{"name":"target"},{"name":"type"},{"name":"itemid","global":true},{"name":"itemprop","global":true},{"name":"itemref","global":true},{"name":"itemscope","global":true},{"name":"itemtype","global":true},{"name":"about","global":true},{"name":"content","global":true},{"name":"datatype","global":true},{"name":"inlist","global":true},{"name":"prefix","global":true},{"name":"property","global":true},{"name":"rel","disallowedValueRegex":"(^|\\s)(canonical|components|dns-prefetch|import|manifest|preconnect|preload|prerender|serviceworker|stylesheet|subresource)(\\s|$)","global":true},{"name":"resource","global":true},{"name":"rev","global":true},{"name":"style","valueDocCss":true,"global":true},{"name":"typeof","global":true},{"name":"vocab","global":true},{"name":"accesskey","global":true},{"name":"class","global":true},{"name":"dir","global":true},{"name":"draggable","global":true},{"name":"hidden","value":[""],"global":true},{"name":"id","disallowedValueRegex":"(^|\\s)(__amp_\\S*|__count__|__defineGetter__|__defineSetter__|__lookupGetter__|__lookupSetter__|__noSuchMethod__|__parent__|__proto__|__AMP_\\S*|\\$p|\\$proxy|acceptCharset|addEventListener|appendChild|assignedSlot|attachShadow|AMP|baseURI|checkValidity|childElementCount|childNodes|classList|className|clientHeight|clientLeft|clientTop|clientWidth|compareDocumentPosition|computedName|computedRole|contentEditable|createShadowRoot|enqueAction|firstChild|firstElementChild|getAnimations|getAttribute|getAttributeNS|getAttributeNode|getAttributeNodeNS|getBoundingClientRect|getClientRects|getDestinationInsertionPoints|getElementsByClassName|getElementsByTagName|getElementsByTagNameNS|getRootNode|hasAttribute|hasAttributeNS|hasAttributes|hasChildNodes|hasPointerCapture|i-amphtml-\\S*|innerHTML|innerText|inputMode|insertAdjacentElement|insertAdjacentHTML|insertAdjacentText|isContentEditable|isDefaultNamespace|isEqualNode|isSameNode|lastChild|lastElementChild|lookupNamespaceURI|namespaceURI|nextElementSibling|nextSibling|nodeName|nodeType|nodeValue|offsetHeight|offsetLeft|offsetParent|offsetTop|offsetWidth|outerHTML|outerText|ownerDocument|parentElement|parentNode|previousElementSibling|previousSibling|querySelector|querySelectorAll|releasePointerCapture|removeAttribute|removeAttributeNS|removeAttributeNode|removeChild|removeEventListener|replaceChild|reportValidity|requestPointerLock|scrollHeight|scrollIntoView|scrollIntoViewIfNeeded|scrollLeft|scrollWidth|setAttribute|setAttributeNS|setAttributeNode|setAttributeNodeNS|setPointerCapture|shadowRoot|styleMap|tabIndex|tagName|textContent|toString|valueOf|(webkit|ms|moz|o)dropzone|(webkit|moz|ms|o)MatchesSelector|(webkit|moz|ms|o)RequestFullScreen|(webkit|moz|ms|o)RequestFullscreen)(\\s|$)","global":true},{"name":"lang","global":true},{"name":"slot","global":true},{"name":"tabindex","global":true},{"name":"title","global":true},{"name":"translate","global":true},{"name":"aria-activedescendant","global":true},{"name":"aria-atomic","global":true},{"name":"aria-autocomplete","global":true},{"name":"aria-busy","global":true},{"name":"aria-checked","global":true},{"name":"aria-controls","global":true},{"name":"aria-current","global":true},{"name":"aria-describedby","global":true},{"name":"aria-disabled","global":true},{"name":"aria-dropeffect","global":true},{"name":"aria-expanded","global":true},{"name":"aria-flowto","global":true},{"name":"aria-grabbed","global":true},{"name":"aria-haspopup","global":true},{"name":"aria-hidden","global":true},{"name":"aria-invalid","global":true},{"name":"aria-label","global":true},{"name":"aria-labelledby","global":true},{"name":"aria-level","global":true},{"name":"aria-live","global":true},{"name":"aria-multiline","global":true},{"name":"aria-multiselectable","global":true},{"name":"aria-orientation","global":true},{"name":"aria-owns","global":true},{"name":"aria-posinset","global":true},{"name":"aria-pressed","global":true},{"name":"aria-readonly","global":true},{"name":"aria-relevant","global":true},{"name":"aria-required","global":true},{"name":"aria-selected","global":true},{"name":"aria-setsize","global":true},{"name":"aria-sort","global":true},{"name":"aria-valuemax","global":true},{"name":"aria-valuemin","global":true},{"name":"aria-valuenow","global":true},{"name":"aria-valuetext","global":true},{"name":"on","trigger":{"ifValueRegex":"tap:.*","alsoRequiresAttr":["role","tabindex"]},"global":true},{"name":"role","global":true},{"name":"placeholder","value":[""],"global":true},{"name":"fallback","value":[""],"global":true},{"name":"overflow","global":true},{"name":"amp-access","global":true},{"name":"amp-access-behavior","global":true},{"name":"amp-access-hide","global":true},{"name":"amp-access-id","global":true},{"name":"amp-access-loader","global":true},{"name":"amp-access-loading","global":true},{"name":"amp-access-off","global":true},{"name":"amp-access-on","global":true},{"name":"amp-access-show","global":true},{"name":"amp-access-style","global":true},{"name":"amp-access-template","global":true},{"name":"i-amp-access-id","global":true},{"name":"validation-for","trigger":{"alsoRequiresAttr":["visible-when-invalid"]},"global":true},{"name":"visible-when-invalid","value":["badInput","customError","patternMismatch","rangeOverflow","rangeUnderflow","stepMismatch","tooLong","tooShort","typeMismatch","valueMissing"],"trigger":{"alsoRequiresAttr":["validation-for"]},"global":true},{"name":"amp-fx","valueRegexCasei":"(fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)(\\s|fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)*","requiresExtension":["amp-fx-collection"],"global":true},{"name":"subscriptions-action","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-actions","value":[""],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-decorate","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-dialog","value":[""],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-display","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-lang","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-section","valueCasei":["actions","content","content-not-granted","loading"],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-service","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-google-rtc","requiresExtension":["amp-subscriptions-google"],"global":true},{"name":"next-page-hide","requiresExtension":["amp-next-page"],"global":true},{"name":"next-page-replace","requiresExtension":["amp-next-page"],"global":true},{"name":"[aria-activedescendant]","global":true},{"name":"[aria-atomic]","global":true},{"name":"[aria-autocomplete]","global":true},{"name":"[aria-busy]","global":true},{"name":"[aria-checked]","global":true},{"name":"[aria-controls]","global":true},{"name":"[aria-describedby]","global":true},{"name":"[aria-disabled]","global":true},{"name":"[aria-dropeffect]","global":true},{"name":"[aria-expanded]","global":true},{"name":"[aria-flowto]","global":true},{"name":"[aria-grabbed]","global":true},{"name":"[aria-haspopup]","global":true},{"name":"[aria-hidden]","global":true},{"name":"[aria-invalid]","global":true},{"name":"[aria-label]","global":true},{"name":"[aria-labelledby]","global":true},{"name":"[aria-level]","global":true},{"name":"[aria-live]","global":true},{"name":"[aria-multiline]","global":true},{"name":"[aria-multiselectable]","global":true},{"name":"[aria-orientation]","global":true},{"name":"[aria-owns]","global":true},{"name":"[aria-posinset]","global":true},{"name":"[aria-pressed]","global":true},{"name":"[aria-readonly]","global":true},{"name":"[aria-relevant]","global":true},{"name":"[aria-required]","global":true},{"name":"[aria-selected]","global":true},{"name":"[aria-setsize]","global":true},{"name":"[aria-sort]","global":true},{"name":"[aria-valuemax]","global":true},{"name":"[aria-valuemin]","global":true},{"name":"[aria-valuenow]","global":true},{"name":"[aria-valuetext]","global":true},{"name":"[class]","global":true},{"name":"[hidden]","global":true},{"name":"[text]","global":true},{"name":"i-amphtml-binding","value":[""],"enabledBy":["transformed"],"global":true},{"name":"autoscroll","requiresAncestor":{"marker":["AUTOSCROLL"]},"global":true}],"specUrl":"https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml/#required-markup","htmlFormat":["AMP"],"descriptiveName":"link rel=canonical"},{"tagName":"LINK","specName":"link rel=manifest","mandatoryParent":"HEAD","attrs":[{"name":"href","mandatory":true,"disallowedValueRegex":"__amp_source_origin","valueUrl":{"protocol":["https"]}},{"name":"rel","mandatory":true,"dispatchKey":"NAME_VALUE_DISPATCH","valueCasei":["manifest"]},{"name":"charset","valueCasei":["utf-8"]},{"name":"color"},{"name":"crossorigin"},{"name":"hreflang"},{"name":"media"},{"name":"sizes"},{"name":"target"},{"name":"type"},{"name":"itemid","global":true},{"name":"itemprop","global":true},{"name":"itemref","global":true},{"name":"itemscope","global":true},{"name":"itemtype","global":true},{"name":"about","global":true},{"name":"content","global":true},{"name":"datatype","global":true},{"name":"inlist","global":true},{"name":"prefix","global":true},{"name":"property","global":true},{"name":"rel","disallowedValueRegex":"(^|\\s)(canonical|components|dns-prefetch|import|manifest|preconnect|preload|prerender|serviceworker|stylesheet|subresource)(\\s|$)","global":true},{"name":"resource","global":true},{"name":"rev","global":true},{"name":"style","valueDocCss":true,"global":true},{"name":"typeof","global":true},{"name":"vocab","global":true},{"name":"accesskey","global":true},{"name":"class","global":true},{"name":"dir","global":true},{"name":"draggable","global":true},{"name":"hidden","value":[""],"global":true},{"name":"id","disallowedValueRegex":"(^|\\s)(__amp_\\S*|__count__|__defineGetter__|__defineSetter__|__lookupGetter__|__lookupSetter__|__noSuchMethod__|__parent__|__proto__|__AMP_\\S*|\\$p|\\$proxy|acceptCharset|addEventListener|appendChild|assignedSlot|attachShadow|AMP|baseURI|checkValidity|childElementCount|childNodes|classList|className|clientHeight|clientLeft|clientTop|clientWidth|compareDocumentPosition|computedName|computedRole|contentEditable|createShadowRoot|enqueAction|firstChild|firstElementChild|getAnimations|getAttribute|getAttributeNS|getAttributeNode|getAttributeNodeNS|getBoundingClientRect|getClientRects|getDestinationInsertionPoints|getElementsByClassName|getElementsByTagName|getElementsByTagNameNS|getRootNode|hasAttribute|hasAttributeNS|hasAttributes|hasChildNodes|hasPointerCapture|i-amphtml-\\S*|innerHTML|innerText|inputMode|insertAdjacentElement|insertAdjacentHTML|insertAdjacentText|isContentEditable|isDefaultNamespace|isEqualNode|isSameNode|lastChild|lastElementChild|lookupNamespaceURI|namespaceURI|nextElementSibling|nextSibling|nodeName|nodeType|nodeValue|offsetHeight|offsetLeft|offsetParent|offsetTop|offsetWidth|outerHTML|outerText|ownerDocument|parentElement|parentNode|previousElementSibling|previousSibling|querySelector|querySelectorAll|releasePointerCapture|removeAttribute|removeAttributeNS|removeAttributeNode|removeChild|removeEventListener|replaceChild|reportValidity|requestPointerLock|scrollHeight|scrollIntoView|scrollIntoViewIfNeeded|scrollLeft|scrollWidth|setAttribute|setAttributeNS|setAttributeNode|setAttributeNodeNS|setPointerCapture|shadowRoot|styleMap|tabIndex|tagName|textContent|toString|valueOf|(webkit|ms|moz|o)dropzone|(webkit|moz|ms|o)MatchesSelector|(webkit|moz|ms|o)RequestFullScreen|(webkit|moz|ms|o)RequestFullscreen)(\\s|$)","global":true},{"name":"lang","global":true},{"name":"slot","global":true},{"name":"tabindex","global":true},{"name":"title","global":true},{"name":"translate","global":true},{"name":"aria-activedescendant","global":true},{"name":"aria-atomic","global":true},{"name":"aria-autocomplete","global":true},{"name":"aria-busy","global":true},{"name":"aria-checked","global":true},{"name":"aria-controls","global":true},{"name":"aria-current","global":true},{"name":"aria-describedby","global":true},{"name":"aria-disabled","global":true},{"name":"aria-dropeffect","global":true},{"name":"aria-expanded","global":true},{"name":"aria-flowto","global":true},{"name":"aria-grabbed","global":true},{"name":"aria-haspopup","global":true},{"name":"aria-hidden","global":true},{"name":"aria-invalid","global":true},{"name":"aria-label","global":true},{"name":"aria-labelledby","global":true},{"name":"aria-level","global":true},{"name":"aria-live","global":true},{"name":"aria-multiline","global":true},{"name":"aria-multiselectable","global":true},{"name":"aria-orientation","global":true},{"name":"aria-owns","global":true},{"name":"aria-posinset","global":true},{"name":"aria-pressed","global":true},{"name":"aria-readonly","global":true},{"name":"aria-relevant","global":true},{"name":"aria-required","global":true},{"name":"aria-selected","global":true},{"name":"aria-setsize","global":true},{"name":"aria-sort","global":true},{"name":"aria-valuemax","global":true},{"name":"aria-valuemin","global":true},{"name":"aria-valuenow","global":true},{"name":"aria-valuetext","global":true},{"name":"on","trigger":{"ifValueRegex":"tap:.*","alsoRequiresAttr":["role","tabindex"]},"global":true},{"name":"role","global":true},{"name":"placeholder","value":[""],"global":true},{"name":"fallback","value":[""],"global":true},{"name":"overflow","global":true},{"name":"amp-access","global":true},{"name":"amp-access-behavior","global":true},{"name":"amp-access-hide","global":true},{"name":"amp-access-id","global":true},{"name":"amp-access-loader","global":true},{"name":"amp-access-loading","global":true},{"name":"amp-access-off","global":true},{"name":"amp-access-on","global":true},{"name":"amp-access-show","global":true},{"name":"amp-access-style","global":true},{"name":"amp-access-template","global":true},{"name":"i-amp-access-id","global":true},{"name":"validation-for","trigger":{"alsoRequiresAttr":["visible-when-invalid"]},"global":true},{"name":"visible-when-invalid","value":["badInput","customError","patternMismatch","rangeOverflow","rangeUnderflow","stepMismatch","tooLong","tooShort","typeMismatch","valueMissing"],"trigger":{"alsoRequiresAttr":["validation-for"]},"global":true},{"name":"amp-fx","valueRegexCasei":"(fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)(\\s|fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)*","requiresExtension":["amp-fx-collection"],"global":true},{"name":"subscriptions-action","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-actions","value":[""],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-decorate","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-dialog","value":[""],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-display","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-lang","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-section","valueCasei":["actions","content","content-not-granted","loading"],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-service","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-google-rtc","requiresExtension":["amp-subscriptions-google"],"global":true},{"name":"next-page-hide","requiresExtension":["amp-next-page"],"global":true},{"name":"next-page-replace","requiresExtension":["amp-next-page"],"global":true},{"name":"[aria-activedescendant]","global":true},{"name":"[aria-atomic]","global":true},{"name":"[aria-autocomplete]","global":true},{"name":"[aria-busy]","global":true},{"name":"[aria-checked]","global":true},{"name":"[aria-controls]","global":true},{"name":"[aria-describedby]","global":true},{"name":"[aria-disabled]","global":true},{"name":"[aria-dropeffect]","global":true},{"name":"[aria-expanded]","global":true},{"name":"[aria-flowto]","global":true},{"name":"[aria-grabbed]","global":true},{"name":"[aria-haspopup]","global":true},{"name":"[aria-hidden]","global":true},{"name":"[aria-invalid]","global":true},{"name":"[aria-label]","global":true},{"name":"[aria-labelledby]","global":true},{"name":"[aria-level]","global":true},{"name":"[aria-live]","global":true},{"name":"[aria-multiline]","global":true},{"name":"[aria-multiselectable]","global":true},{"name":"[aria-orientation]","global":true},{"name":"[aria-owns]","global":true},{"name":"[aria-posinset]","global":true},{"name":"[aria-pressed]","global":true},{"name":"[aria-readonly]","global":true},{"name":"[aria-relevant]","global":true},{"name":"[aria-required]","global":true},{"name":"[aria-selected]","global":true},{"name":"[aria-setsize]","global":true},{"name":"[aria-sort]","global":true},{"name":"[aria-valuemax]","global":true},{"name":"[aria-valuemin]","global":true},{"name":"[aria-valuenow]","global":true},{"name":"[aria-valuetext]","global":true},{"name":"[class]","global":true},{"name":"[hidden]","global":true},{"name":"[text]","global":true},{"name":"i-amphtml-binding","value":[""],"enabledBy":["transformed"],"global":true},{"name":"autoscroll","requiresAncestor":{"marker":["AUTOSCROLL"]},"global":true}],"specUrl":"https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml/#html-tags","htmlFormat":["AMP","AMP4ADS"],"satisfies":["amp-app-banner data source"],"descriptiveName":"link rel=manifest"},{"tagName":"LINK","specName":"link rel=modulepreload","mandatoryParent":"HEAD","attrs":[{"name":"as","mandatory":true,"value":["script"]},{"name":"crossorigin","mandatory":true,"value":["anonymous"]},{"name":"href","mandatory":true,"valueRegex":".*\\.mjs$"},{"name":"rel","mandatory":true,"dispatchKey":"NAME_VALUE_DISPATCH","valueCasei":["modulepreload"]},{"name":"itemid","global":true},{"name":"itemprop","global":true},{"name":"itemref","global":true},{"name":"itemscope","global":true},{"name":"itemtype","global":true},{"name":"about","global":true},{"name":"content","global":true},{"name":"datatype","global":true},{"name":"inlist","global":true},{"name":"prefix","global":true},{"name":"property","global":true},{"name":"rel","disallowedValueRegex":"(^|\\s)(canonical|components|dns-prefetch|import|manifest|preconnect|preload|prerender|serviceworker|stylesheet|subresource)(\\s|$)","global":true},{"name":"resource","global":true},{"name":"rev","global":true},{"name":"style","valueDocCss":true,"global":true},{"name":"typeof","global":true},{"name":"vocab","global":true},{"name":"accesskey","global":true},{"name":"class","global":true},{"name":"dir","global":true},{"name":"draggable","global":true},{"name":"hidden","value":[""],"global":true},{"name":"id","disallowedValueRegex":"(^|\\s)(__amp_\\S*|__count__|__defineGetter__|__defineSetter__|__lookupGetter__|__lookupSetter__|__noSuchMethod__|__parent__|__proto__|__AMP_\\S*|\\$p|\\$proxy|acceptCharset|addEventListener|appendChild|assignedSlot|attachShadow|AMP|baseURI|checkValidity|childElementCount|childNodes|classList|className|clientHeight|clientLeft|clientTop|clientWidth|compareDocumentPosition|computedName|computedRole|contentEditable|createShadowRoot|enqueAction|firstChild|firstElementChild|getAnimations|getAttribute|getAttributeNS|getAttributeNode|getAttributeNodeNS|getBoundingClientRect|getClientRects|getDestinationInsertionPoints|getElementsByClassName|getElementsByTagName|getElementsByTagNameNS|getRootNode|hasAttribute|hasAttributeNS|hasAttributes|hasChildNodes|hasPointerCapture|i-amphtml-\\S*|innerHTML|innerText|inputMode|insertAdjacentElement|insertAdjacentHTML|insertAdjacentText|isContentEditable|isDefaultNamespace|isEqualNode|isSameNode|lastChild|lastElementChild|lookupNamespaceURI|namespaceURI|nextElementSibling|nextSibling|nodeName|nodeType|nodeValue|offsetHeight|offsetLeft|offsetParent|offsetTop|offsetWidth|outerHTML|outerText|ownerDocument|parentElement|parentNode|previousElementSibling|previousSibling|querySelector|querySelectorAll|releasePointerCapture|removeAttribute|removeAttributeNS|removeAttributeNode|removeChild|removeEventListener|replaceChild|reportValidity|requestPointerLock|scrollHeight|scrollIntoView|scrollIntoViewIfNeeded|scrollLeft|scrollWidth|setAttribute|setAttributeNS|setAttributeNode|setAttributeNodeNS|setPointerCapture|shadowRoot|styleMap|tabIndex|tagName|textContent|toString|valueOf|(webkit|ms|moz|o)dropzone|(webkit|moz|ms|o)MatchesSelector|(webkit|moz|ms|o)RequestFullScreen|(webkit|moz|ms|o)RequestFullscreen)(\\s|$)","global":true},{"name":"lang","global":true},{"name":"slot","global":true},{"name":"tabindex","global":true},{"name":"title","global":true},{"name":"translate","global":true},{"name":"aria-activedescendant","global":true},{"name":"aria-atomic","global":true},{"name":"aria-autocomplete","global":true},{"name":"aria-busy","global":true},{"name":"aria-checked","global":true},{"name":"aria-controls","global":true},{"name":"aria-current","global":true},{"name":"aria-describedby","global":true},{"name":"aria-disabled","global":true},{"name":"aria-dropeffect","global":true},{"name":"aria-expanded","global":true},{"name":"aria-flowto","global":true},{"name":"aria-grabbed","global":true},{"name":"aria-haspopup","global":true},{"name":"aria-hidden","global":true},{"name":"aria-invalid","global":true},{"name":"aria-label","global":true},{"name":"aria-labelledby","global":true},{"name":"aria-level","global":true},{"name":"aria-live","global":true},{"name":"aria-multiline","global":true},{"name":"aria-multiselectable","global":true},{"name":"aria-orientation","global":true},{"name":"aria-owns","global":true},{"name":"aria-posinset","global":true},{"name":"aria-pressed","global":true},{"name":"aria-readonly","global":true},{"name":"aria-relevant","global":true},{"name":"aria-required","global":true},{"name":"aria-selected","global":true},{"name":"aria-setsize","global":true},{"name":"aria-sort","global":true},{"name":"aria-valuemax","global":true},{"name":"aria-valuemin","global":true},{"name":"aria-valuenow","global":true},{"name":"aria-valuetext","global":true},{"name":"on","trigger":{"ifValueRegex":"tap:.*","alsoRequiresAttr":["role","tabindex"]},"global":true},{"name":"role","global":true},{"name":"placeholder","value":[""],"global":true},{"name":"fallback","value":[""],"global":true},{"name":"overflow","global":true},{"name":"amp-access","global":true},{"name":"amp-access-behavior","global":true},{"name":"amp-access-hide","global":true},{"name":"amp-access-id","global":true},{"name":"amp-access-loader","global":true},{"name":"amp-access-loading","global":true},{"name":"amp-access-off","global":true},{"name":"amp-access-on","global":true},{"name":"amp-access-show","global":true},{"name":"amp-access-style","global":true},{"name":"amp-access-template","global":true},{"name":"i-amp-access-id","global":true},{"name":"validation-for","trigger":{"alsoRequiresAttr":["visible-when-invalid"]},"global":true},{"name":"visible-when-invalid","value":["badInput","customError","patternMismatch","rangeOverflow","rangeUnderflow","stepMismatch","tooLong","tooShort","typeMismatch","valueMissing"],"trigger":{"alsoRequiresAttr":["validation-for"]},"global":true},{"name":"amp-fx","valueRegexCasei":"(fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)(\\s|fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)*","requiresExtension":["amp-fx-collection"],"global":true},{"name":"subscriptions-action","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-actions","value":[""],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-decorate","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-dialog","value":[""],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-display","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-lang","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-section","valueCasei":["actions","content","content-not-granted","loading"],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-service","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-google-rtc","requiresExtension":["amp-subscriptions-google"],"global":true},{"name":"next-page-hide","requiresExtension":["amp-next-page"],"global":true},{"name":"next-page-replace","requiresExtension":["amp-next-page"],"global":true},{"name":"[aria-activedescendant]","global":true},{"name":"[aria-atomic]","global":true},{"name":"[aria-autocomplete]","global":true},{"name":"[aria-busy]","global":true},{"name":"[aria-checked]","global":true},{"name":"[aria-controls]","global":true},{"name":"[aria-describedby]","global":true},{"name":"[aria-disabled]","global":true},{"name":"[aria-dropeffect]","global":true},{"name":"[aria-expanded]","global":true},{"name":"[aria-flowto]","global":true},{"name":"[aria-grabbed]","global":true},{"name":"[aria-haspopup]","global":true},{"name":"[aria-hidden]","global":true},{"name":"[aria-invalid]","global":true},{"name":"[aria-label]","global":true},{"name":"[aria-labelledby]","global":true},{"name":"[aria-level]","global":true},{"name":"[aria-live]","global":true},{"name":"[aria-multiline]","global":true},{"name":"[aria-multiselectable]","global":true},{"name":"[aria-orientation]","global":true},{"name":"[aria-owns]","global":true},{"name":"[aria-posinset]","global":true},{"name":"[aria-pressed]","global":true},{"name":"[aria-readonly]","global":true},{"name":"[aria-relevant]","global":true},{"name":"[aria-required]","global":true},{"name":"[aria-selected]","global":true},{"name":"[aria-setsize]","global":true},{"name":"[aria-sort]","global":true},{"name":"[aria-valuemax]","global":true},{"name":"[aria-valuemin]","global":true},{"name":"[aria-valuenow]","global":true},{"name":"[aria-valuetext]","global":true},{"name":"[class]","global":true},{"name":"[hidden]","global":true},{"name":"[text]","global":true},{"name":"i-amphtml-binding","value":[""],"enabledBy":["transformed"],"global":true},{"name":"autoscroll","requiresAncestor":{"marker":["AUTOSCROLL"]},"global":true}],"specUrl":"https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml/#html-tags","htmlFormat":["AMP"],"descriptiveName":"link rel=modulepreload"},{"tagName":"LINK","specName":"link rel=preload","attrs":[{"name":"as"},{"name":"href"},{"name":"rel","mandatory":true,"dispatchKey":"NAME_VALUE_DISPATCH","valueCasei":["preload"]},{"name":"imagesrcset","disallowedValueRegex":"__amp_source_origin","valueUrl":{"protocol":["http","https"]}},{"name":"imagesizes"},{"name":"charset","valueCasei":["utf-8"]},{"name":"color"},{"name":"crossorigin"},{"name":"hreflang"},{"name":"media"},{"name":"sizes"},{"name":"target"},{"name":"type"},{"name":"itemid","global":true},{"name":"itemprop","global":true},{"name":"itemref","global":true},{"name":"itemscope","global":true},{"name":"itemtype","global":true},{"name":"about","global":true},{"name":"content","global":true},{"name":"datatype","global":true},{"name":"inlist","global":true},{"name":"prefix","global":true},{"name":"property","global":true},{"name":"rel","disallowedValueRegex":"(^|\\s)(canonical|components|dns-prefetch|import|manifest|preconnect|preload|prerender|serviceworker|stylesheet|subresource)(\\s|$)","global":true},{"name":"resource","global":true},{"name":"rev","global":true},{"name":"style","valueDocCss":true,"global":true},{"name":"typeof","global":true},{"name":"vocab","global":true},{"name":"accesskey","global":true},{"name":"class","global":true},{"name":"dir","global":true},{"name":"draggable","global":true},{"name":"hidden","value":[""],"global":true},{"name":"id","disallowedValueRegex":"(^|\\s)(__amp_\\S*|__count__|__defineGetter__|__defineSetter__|__lookupGetter__|__lookupSetter__|__noSuchMethod__|__parent__|__proto__|__AMP_\\S*|\\$p|\\$proxy|acceptCharset|addEventListener|appendChild|assignedSlot|attachShadow|AMP|baseURI|checkValidity|childElementCount|childNodes|classList|className|clientHeight|clientLeft|clientTop|clientWidth|compareDocumentPosition|computedName|computedRole|contentEditable|createShadowRoot|enqueAction|firstChild|firstElementChild|getAnimations|getAttribute|getAttributeNS|getAttributeNode|getAttributeNodeNS|getBoundingClientRect|getClientRects|getDestinationInsertionPoints|getElementsByClassName|getElementsByTagName|getElementsByTagNameNS|getRootNode|hasAttribute|hasAttributeNS|hasAttributes|hasChildNodes|hasPointerCapture|i-amphtml-\\S*|innerHTML|innerText|inputMode|insertAdjacentElement|insertAdjacentHTML|insertAdjacentText|isContentEditable|isDefaultNamespace|isEqualNode|isSameNode|lastChild|lastElementChild|lookupNamespaceURI|namespaceURI|nextElementSibling|nextSibling|nodeName|nodeType|nodeValue|offsetHeight|offsetLeft|offsetParent|offsetTop|offsetWidth|outerHTML|outerText|ownerDocument|parentElement|parentNode|previousElementSibling|previousSibling|querySelector|querySelectorAll|releasePointerCapture|removeAttribute|removeAttributeNS|removeAttributeNode|removeChild|removeEventListener|replaceChild|reportValidity|requestPointerLock|scrollHeight|scrollIntoView|scrollIntoViewIfNeeded|scrollLeft|scrollWidth|setAttribute|setAttributeNS|setAttributeNode|setAttributeNodeNS|setPointerCapture|shadowRoot|styleMap|tabIndex|tagName|textContent|toString|valueOf|(webkit|ms|moz|o)dropzone|(webkit|moz|ms|o)MatchesSelector|(webkit|moz|ms|o)RequestFullScreen|(webkit|moz|ms|o)RequestFullscreen)(\\s|$)","global":true},{"name":"lang","global":true},{"name":"slot","global":true},{"name":"tabindex","global":true},{"name":"title","global":true},{"name":"translate","global":true},{"name":"aria-activedescendant","global":true},{"name":"aria-atomic","global":true},{"name":"aria-autocomplete","global":true},{"name":"aria-busy","global":true},{"name":"aria-checked","global":true},{"name":"aria-controls","global":true},{"name":"aria-current","global":true},{"name":"aria-describedby","global":true},{"name":"aria-disabled","global":true},{"name":"aria-dropeffect","global":true},{"name":"aria-expanded","global":true},{"name":"aria-flowto","global":true},{"name":"aria-grabbed","global":true},{"name":"aria-haspopup","global":true},{"name":"aria-hidden","global":true},{"name":"aria-invalid","global":true},{"name":"aria-label","global":true},{"name":"aria-labelledby","global":true},{"name":"aria-level","global":true},{"name":"aria-live","global":true},{"name":"aria-multiline","global":true},{"name":"aria-multiselectable","global":true},{"name":"aria-orientation","global":true},{"name":"aria-owns","global":true},{"name":"aria-posinset","global":true},{"name":"aria-pressed","global":true},{"name":"aria-readonly","global":true},{"name":"aria-relevant","global":true},{"name":"aria-required","global":true},{"name":"aria-selected","global":true},{"name":"aria-setsize","global":true},{"name":"aria-sort","global":true},{"name":"aria-valuemax","global":true},{"name":"aria-valuemin","global":true},{"name":"aria-valuenow","global":true},{"name":"aria-valuetext","global":true},{"name":"on","trigger":{"ifValueRegex":"tap:.*","alsoRequiresAttr":["role","tabindex"]},"global":true},{"name":"role","global":true},{"name":"placeholder","value":[""],"global":true},{"name":"fallback","value":[""],"global":true},{"name":"overflow","global":true},{"name":"amp-access","global":true},{"name":"amp-access-behavior","global":true},{"name":"amp-access-hide","global":true},{"name":"amp-access-id","global":true},{"name":"amp-access-loader","global":true},{"name":"amp-access-loading","global":true},{"name":"amp-access-off","global":true},{"name":"amp-access-on","global":true},{"name":"amp-access-show","global":true},{"name":"amp-access-style","global":true},{"name":"amp-access-template","global":true},{"name":"i-amp-access-id","global":true},{"name":"validation-for","trigger":{"alsoRequiresAttr":["visible-when-invalid"]},"global":true},{"name":"visible-when-invalid","value":["badInput","customError","patternMismatch","rangeOverflow","rangeUnderflow","stepMismatch","tooLong","tooShort","typeMismatch","valueMissing"],"trigger":{"alsoRequiresAttr":["validation-for"]},"global":true},{"name":"amp-fx","valueRegexCasei":"(fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)(\\s|fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)*","requiresExtension":["amp-fx-collection"],"global":true},{"name":"subscriptions-action","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-actions","value":[""],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-decorate","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-dialog","value":[""],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-display","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-lang","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-section","valueCasei":["actions","content","content-not-granted","loading"],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-service","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-google-rtc","requiresExtension":["amp-subscriptions-google"],"global":true},{"name":"next-page-hide","requiresExtension":["amp-next-page"],"global":true},{"name":"next-page-replace","requiresExtension":["amp-next-page"],"global":true},{"name":"[aria-activedescendant]","global":true},{"name":"[aria-atomic]","global":true},{"name":"[aria-autocomplete]","global":true},{"name":"[aria-busy]","global":true},{"name":"[aria-checked]","global":true},{"name":"[aria-controls]","global":true},{"name":"[aria-describedby]","global":true},{"name":"[aria-disabled]","global":true},{"name":"[aria-dropeffect]","global":true},{"name":"[aria-expanded]","global":true},{"name":"[aria-flowto]","global":true},{"name":"[aria-grabbed]","global":true},{"name":"[aria-haspopup]","global":true},{"name":"[aria-hidden]","global":true},{"name":"[aria-invalid]","global":true},{"name":"[aria-label]","global":true},{"name":"[aria-labelledby]","global":true},{"name":"[aria-level]","global":true},{"name":"[aria-live]","global":true},{"name":"[aria-multiline]","global":true},{"name":"[aria-multiselectable]","global":true},{"name":"[aria-orientation]","global":true},{"name":"[aria-owns]","global":true},{"name":"[aria-posinset]","global":true},{"name":"[aria-pressed]","global":true},{"name":"[aria-readonly]","global":true},{"name":"[aria-relevant]","global":true},{"name":"[aria-required]","global":true},{"name":"[aria-selected]","global":true},{"name":"[aria-setsize]","global":true},{"name":"[aria-sort]","global":true},{"name":"[aria-valuemax]","global":true},{"name":"[aria-valuemin]","global":true},{"name":"[aria-valuenow]","global":true},{"name":"[aria-valuetext]","global":true},{"name":"[class]","global":true},{"name":"[hidden]","global":true},{"name":"[text]","global":true},{"name":"i-amphtml-binding","value":[""],"enabledBy":["transformed"],"global":true},{"name":"autoscroll","requiresAncestor":{"marker":["AUTOSCROLL"]},"global":true}],"specUrl":"https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml/#html-tags","disallowedAncestor":["TEMPLATE"],"htmlFormat":["AMP","AMP4ADS"],"descriptiveName":"link rel=preload"},{"tagName":"LINK","specName":"link rel=stylesheet for fonts","mandatoryParent":"HEAD","attrs":[{"name":"async"},{"name":"crossorigin"},{"name":"href","mandatory":true,"valueRegex":"https://cdn\\.materialdesignicons\\.com/([0-9]+\\.?)+/css/materialdesignicons\\.min\\.css|https://cloud\\.typography\\.com/[0-9]*/[0-9]*/css/fonts\\.css|https://fast\\.fonts\\.net/.*|https://fonts\\.googleapis\\.com/css2?\\?.*|https://fonts\\.googleapis\\.com/icon\\?.*|https://fonts\\.googleapis\\.com/earlyaccess/.*\\.css|https://maxcdn\\.bootstrapcdn\\.com/font-awesome/([0-9]+\\.?)+/css/font-awesome\\.min\\.css(\\?.*)?|https://(use|pro|kit)\\.fontawesome\\.com/releases/v([0-9]+\\.?)+/css/[0-9a-zA-Z-]+\\.css|https://(use|pro|kit)\\.fontawesome\\.com/[0-9a-zA-Z-]+\\.css|https://use\\.typekit\\.net/[\\w\\p{L}\\p{N}_]+\\.css"},{"name":"integrity"},{"name":"media"},{"name":"rel","mandatory":true,"dispatchKey":"NAME_VALUE_DISPATCH","valueCasei":["stylesheet"]},{"name":"type","valueCasei":["text/css"]},{"name":"nonce","disabledBy":["amp4email"]},{"name":"itemid","global":true},{"name":"itemprop","global":true},{"name":"itemref","global":true},{"name":"itemscope","global":true},{"name":"itemtype","global":true},{"name":"about","global":true},{"name":"content","global":true},{"name":"datatype","global":true},{"name":"inlist","global":true},{"name":"prefix","global":true},{"name":"property","global":true},{"name":"rel","disallowedValueRegex":"(^|\\s)(canonical|components|dns-prefetch|import|manifest|preconnect|preload|prerender|serviceworker|stylesheet|subresource)(\\s|$)","global":true},{"name":"resource","global":true},{"name":"rev","global":true},{"name":"style","valueDocCss":true,"global":true},{"name":"typeof","global":true},{"name":"vocab","global":true},{"name":"accesskey","global":true},{"name":"class","global":true},{"name":"dir","global":true},{"name":"draggable","global":true},{"name":"hidden","value":[""],"global":true},{"name":"id","disallowedValueRegex":"(^|\\s)(__amp_\\S*|__count__|__defineGetter__|__defineSetter__|__lookupGetter__|__lookupSetter__|__noSuchMethod__|__parent__|__proto__|__AMP_\\S*|\\$p|\\$proxy|acceptCharset|addEventListener|appendChild|assignedSlot|attachShadow|AMP|baseURI|checkValidity|childElementCount|childNodes|classList|className|clientHeight|clientLeft|clientTop|clientWidth|compareDocumentPosition|computedName|computedRole|contentEditable|createShadowRoot|enqueAction|firstChild|firstElementChild|getAnimations|getAttribute|getAttributeNS|getAttributeNode|getAttributeNodeNS|getBoundingClientRect|getClientRects|getDestinationInsertionPoints|getElementsByClassName|getElementsByTagName|getElementsByTagNameNS|getRootNode|hasAttribute|hasAttributeNS|hasAttributes|hasChildNodes|hasPointerCapture|i-amphtml-\\S*|innerHTML|innerText|inputMode|insertAdjacentElement|insertAdjacentHTML|insertAdjacentText|isContentEditable|isDefaultNamespace|isEqualNode|isSameNode|lastChild|lastElementChild|lookupNamespaceURI|namespaceURI|nextElementSibling|nextSibling|nodeName|nodeType|nodeValue|offsetHeight|offsetLeft|offsetParent|offsetTop|offsetWidth|outerHTML|outerText|ownerDocument|parentElement|parentNode|previousElementSibling|previousSibling|querySelector|querySelectorAll|releasePointerCapture|removeAttribute|removeAttributeNS|removeAttributeNode|removeChild|removeEventListener|replaceChild|reportValidity|requestPointerLock|scrollHeight|scrollIntoView|scrollIntoViewIfNeeded|scrollLeft|scrollWidth|setAttribute|setAttributeNS|setAttributeNode|setAttributeNodeNS|setPointerCapture|shadowRoot|styleMap|tabIndex|tagName|textContent|toString|valueOf|(webkit|ms|moz|o)dropzone|(webkit|moz|ms|o)MatchesSelector|(webkit|moz|ms|o)RequestFullScreen|(webkit|moz|ms|o)RequestFullscreen)(\\s|$)","global":true},{"name":"lang","global":true},{"name":"slot","global":true},{"name":"tabindex","global":true},{"name":"title","global":true},{"name":"translate","global":true},{"name":"aria-activedescendant","global":true},{"name":"aria-atomic","global":true},{"name":"aria-autocomplete","global":true},{"name":"aria-busy","global":true},{"name":"aria-checked","global":true},{"name":"aria-controls","global":true},{"name":"aria-current","global":true},{"name":"aria-describedby","global":true},{"name":"aria-disabled","global":true},{"name":"aria-dropeffect","global":true},{"name":"aria-expanded","global":true},{"name":"aria-flowto","global":true},{"name":"aria-grabbed","global":true},{"name":"aria-haspopup","global":true},{"name":"aria-hidden","global":true},{"name":"aria-invalid","global":true},{"name":"aria-label","global":true},{"name":"aria-labelledby","global":true},{"name":"aria-level","global":true},{"name":"aria-live","global":true},{"name":"aria-multiline","global":true},{"name":"aria-multiselectable","global":true},{"name":"aria-orientation","global":true},{"name":"aria-owns","global":true},{"name":"aria-posinset","global":true},{"name":"aria-pressed","global":true},{"name":"aria-readonly","global":true},{"name":"aria-relevant","global":true},{"name":"aria-required","global":true},{"name":"aria-selected","global":true},{"name":"aria-setsize","global":true},{"name":"aria-sort","global":true},{"name":"aria-valuemax","global":true},{"name":"aria-valuemin","global":true},{"name":"aria-valuenow","global":true},{"name":"aria-valuetext","global":true},{"name":"on","trigger":{"ifValueRegex":"tap:.*","alsoRequiresAttr":["role","tabindex"]},"global":true},{"name":"role","global":true},{"name":"placeholder","value":[""],"global":true},{"name":"fallback","value":[""],"global":true},{"name":"overflow","global":true},{"name":"amp-access","global":true},{"name":"amp-access-behavior","global":true},{"name":"amp-access-hide","global":true},{"name":"amp-access-id","global":true},{"name":"amp-access-loader","global":true},{"name":"amp-access-loading","global":true},{"name":"amp-access-off","global":true},{"name":"amp-access-on","global":true},{"name":"amp-access-show","global":true},{"name":"amp-access-style","global":true},{"name":"amp-access-template","global":true},{"name":"i-amp-access-id","global":true},{"name":"validation-for","trigger":{"alsoRequiresAttr":["visible-when-invalid"]},"global":true},{"name":"visible-when-invalid","value":["badInput","customError","patternMismatch","rangeOverflow","rangeUnderflow","stepMismatch","tooLong","tooShort","typeMismatch","valueMissing"],"trigger":{"alsoRequiresAttr":["validation-for"]},"global":true},{"name":"amp-fx","valueRegexCasei":"(fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)(\\s|fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)*","requiresExtension":["amp-fx-collection"],"global":true},{"name":"subscriptions-action","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-actions","value":[""],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-decorate","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-dialog","value":[""],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-display","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-lang","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-section","valueCasei":["actions","content","content-not-granted","loading"],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-service","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-google-rtc","requiresExtension":["amp-subscriptions-google"],"global":true},{"name":"next-page-hide","requiresExtension":["amp-next-page"],"global":true},{"name":"next-page-replace","requiresExtension":["amp-next-page"],"global":true},{"name":"[aria-activedescendant]","global":true},{"name":"[aria-atomic]","global":true},{"name":"[aria-autocomplete]","global":true},{"name":"[aria-busy]","global":true},{"name":"[aria-checked]","global":true},{"name":"[aria-controls]","global":true},{"name":"[aria-describedby]","global":true},{"name":"[aria-disabled]","global":true},{"name":"[aria-dropeffect]","global":true},{"name":"[aria-expanded]","global":true},{"name":"[aria-flowto]","global":true},{"name":"[aria-grabbed]","global":true},{"name":"[aria-haspopup]","global":true},{"name":"[aria-hidden]","global":true},{"name":"[aria-invalid]","global":true},{"name":"[aria-label]","global":true},{"name":"[aria-labelledby]","global":true},{"name":"[aria-level]","global":true},{"name":"[aria-live]","global":true},{"name":"[aria-multiline]","global":true},{"name":"[aria-multiselectable]","global":true},{"name":"[aria-orientation]","global":true},{"name":"[aria-owns]","global":true},{"name":"[aria-posinset]","global":true},{"name":"[aria-pressed]","global":true},{"name":"[aria-readonly]","global":true},{"name":"[aria-relevant]","global":true},{"name":"[aria-required]","global":true},{"name":"[aria-selected]","global":true},{"name":"[aria-setsize]","global":true},{"name":"[aria-sort]","global":true},{"name":"[aria-valuemax]","global":true},{"name":"[aria-valuemin]","global":true},{"name":"[aria-valuenow]","global":true},{"name":"[aria-valuetext]","global":true},{"name":"[class]","global":true},{"name":"[hidden]","global":true},{"name":"[text]","global":true},{"name":"i-amphtml-binding","value":[""],"enabledBy":["transformed"],"global":true},{"name":"autoscroll","requiresAncestor":{"marker":["AUTOSCROLL"]},"global":true}],"specUrl":"https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml/#custom-fonts","htmlFormat":["AMP","AMP4ADS"],"namedId":"LINK_FONT_STYLESHEET","descriptiveName":"link rel=stylesheet for fonts"},{"tagName":"LINK","specName":"link itemprop=sameAs","attrs":[{"name":"href","mandatory":true},{"name":"itemprop","mandatory":true,"dispatchKey":"NAME_VALUE_DISPATCH","valueCasei":["sameas"]},{"name":"charset","valueCasei":["utf-8"]},{"name":"color"},{"name":"crossorigin"},{"name":"hreflang"},{"name":"media"},{"name":"sizes"},{"name":"target"},{"name":"type"},{"name":"itemid","global":true},{"name":"itemprop","global":true},{"name":"itemref","global":true},{"name":"itemscope","global":true},{"name":"itemtype","global":true},{"name":"about","global":true},{"name":"content","global":true},{"name":"datatype","global":true},{"name":"inlist","global":true},{"name":"prefix","global":true},{"name":"property","global":true},{"name":"rel","disallowedValueRegex":"(^|\\s)(canonical|components|dns-prefetch|import|manifest|preconnect|preload|prerender|serviceworker|stylesheet|subresource)(\\s|$)","global":true},{"name":"resource","global":true},{"name":"rev","global":true},{"name":"style","valueDocCss":true,"global":true},{"name":"typeof","global":true},{"name":"vocab","global":true},{"name":"accesskey","global":true},{"name":"class","global":true},{"name":"dir","global":true},{"name":"draggable","global":true},{"name":"hidden","value":[""],"global":true},{"name":"id","disallowedValueRegex":"(^|\\s)(__amp_\\S*|__count__|__defineGetter__|__defineSetter__|__lookupGetter__|__lookupSetter__|__noSuchMethod__|__parent__|__proto__|__AMP_\\S*|\\$p|\\$proxy|acceptCharset|addEventListener|appendChild|assignedSlot|attachShadow|AMP|baseURI|checkValidity|childElementCount|childNodes|classList|className|clientHeight|clientLeft|clientTop|clientWidth|compareDocumentPosition|computedName|computedRole|contentEditable|createShadowRoot|enqueAction|firstChild|firstElementChild|getAnimations|getAttribute|getAttributeNS|getAttributeNode|getAttributeNodeNS|getBoundingClientRect|getClientRects|getDestinationInsertionPoints|getElementsByClassName|getElementsByTagName|getElementsByTagNameNS|getRootNode|hasAttribute|hasAttributeNS|hasAttributes|hasChildNodes|hasPointerCapture|i-amphtml-\\S*|innerHTML|innerText|inputMode|insertAdjacentElement|insertAdjacentHTML|insertAdjacentText|isContentEditable|isDefaultNamespace|isEqualNode|isSameNode|lastChild|lastElementChild|lookupNamespaceURI|namespaceURI|nextElementSibling|nextSibling|nodeName|nodeType|nodeValue|offsetHeight|offsetLeft|offsetParent|offsetTop|offsetWidth|outerHTML|outerText|ownerDocument|parentElement|parentNode|previousElementSibling|previousSibling|querySelector|querySelectorAll|releasePointerCapture|removeAttribute|removeAttributeNS|removeAttributeNode|removeChild|removeEventListener|replaceChild|reportValidity|requestPointerLock|scrollHeight|scrollIntoView|scrollIntoViewIfNeeded|scrollLeft|scrollWidth|setAttribute|setAttributeNS|setAttributeNode|setAttributeNodeNS|setPointerCapture|shadowRoot|styleMap|tabIndex|tagName|textContent|toString|valueOf|(webkit|ms|moz|o)dropzone|(webkit|moz|ms|o)MatchesSelector|(webkit|moz|ms|o)RequestFullScreen|(webkit|moz|ms|o)RequestFullscreen)(\\s|$)","global":true},{"name":"lang","global":true},{"name":"slot","global":true},{"name":"tabindex","global":true},{"name":"title","global":true},{"name":"translate","global":true},{"name":"aria-activedescendant","global":true},{"name":"aria-atomic","global":true},{"name":"aria-autocomplete","global":true},{"name":"aria-busy","global":true},{"name":"aria-checked","global":true},{"name":"aria-controls","global":true},{"name":"aria-current","global":true},{"name":"aria-describedby","global":true},{"name":"aria-disabled","global":true},{"name":"aria-dropeffect","global":true},{"name":"aria-expanded","global":true},{"name":"aria-flowto","global":true},{"name":"aria-grabbed","global":true},{"name":"aria-haspopup","global":true},{"name":"aria-hidden","global":true},{"name":"aria-invalid","global":true},{"name":"aria-label","global":true},{"name":"aria-labelledby","global":true},{"name":"aria-level","global":true},{"name":"aria-live","global":true},{"name":"aria-multiline","global":true},{"name":"aria-multiselectable","global":true},{"name":"aria-orientation","global":true},{"name":"aria-owns","global":true},{"name":"aria-posinset","global":true},{"name":"aria-pressed","global":true},{"name":"aria-readonly","global":true},{"name":"aria-relevant","global":true},{"name":"aria-required","global":true},{"name":"aria-selected","global":true},{"name":"aria-setsize","global":true},{"name":"aria-sort","global":true},{"name":"aria-valuemax","global":true},{"name":"aria-valuemin","global":true},{"name":"aria-valuenow","global":true},{"name":"aria-valuetext","global":true},{"name":"on","trigger":{"ifValueRegex":"tap:.*","alsoRequiresAttr":["role","tabindex"]},"global":true},{"name":"role","global":true},{"name":"placeholder","value":[""],"global":true},{"name":"fallback","value":[""],"global":true},{"name":"overflow","global":true},{"name":"amp-access","global":true},{"name":"amp-access-behavior","global":true},{"name":"amp-access-hide","global":true},{"name":"amp-access-id","global":true},{"name":"amp-access-loader","global":true},{"name":"amp-access-loading","global":true},{"name":"amp-access-off","global":true},{"name":"amp-access-on","global":true},{"name":"amp-access-show","global":true},{"name":"amp-access-style","global":true},{"name":"amp-access-template","global":true},{"name":"i-amp-access-id","global":true},{"name":"validation-for","trigger":{"alsoRequiresAttr":["visible-when-invalid"]},"global":true},{"name":"visible-when-invalid","value":["badInput","customError","patternMismatch","rangeOverflow","rangeUnderflow","stepMismatch","tooLong","tooShort","typeMismatch","valueMissing"],"trigger":{"alsoRequiresAttr":["validation-for"]},"global":true},{"name":"amp-fx","valueRegexCasei":"(fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)(\\s|fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)*","requiresExtension":["amp-fx-collection"],"global":true},{"name":"subscriptions-action","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-actions","value":[""],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-decorate","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-dialog","value":[""],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-display","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-lang","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-section","valueCasei":["actions","content","content-not-granted","loading"],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-service","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-google-rtc","requiresExtension":["amp-subscriptions-google"],"global":true},{"name":"next-page-hide","requiresExtension":["amp-next-page"],"global":true},{"name":"next-page-replace","requiresExtension":["amp-next-page"],"global":true},{"name":"[aria-activedescendant]","global":true},{"name":"[aria-atomic]","global":true},{"name":"[aria-autocomplete]","global":true},{"name":"[aria-busy]","global":true},{"name":"[aria-checked]","global":true},{"name":"[aria-controls]","global":true},{"name":"[aria-describedby]","global":true},{"name":"[aria-disabled]","global":true},{"name":"[aria-dropeffect]","global":true},{"name":"[aria-expanded]","global":true},{"name":"[aria-flowto]","global":true},{"name":"[aria-grabbed]","global":true},{"name":"[aria-haspopup]","global":true},{"name":"[aria-hidden]","global":true},{"name":"[aria-invalid]","global":true},{"name":"[aria-label]","global":true},{"name":"[aria-labelledby]","global":true},{"name":"[aria-level]","global":true},{"name":"[aria-live]","global":true},{"name":"[aria-multiline]","global":true},{"name":"[aria-multiselectable]","global":true},{"name":"[aria-orientation]","global":true},{"name":"[aria-owns]","global":true},{"name":"[aria-posinset]","global":true},{"name":"[aria-pressed]","global":true},{"name":"[aria-readonly]","global":true},{"name":"[aria-relevant]","global":true},{"name":"[aria-required]","global":true},{"name":"[aria-selected]","global":true},{"name":"[aria-setsize]","global":true},{"name":"[aria-sort]","global":true},{"name":"[aria-valuemax]","global":true},{"name":"[aria-valuemin]","global":true},{"name":"[aria-valuenow]","global":true},{"name":"[aria-valuetext]","global":true},{"name":"[class]","global":true},{"name":"[hidden]","global":true},{"name":"[text]","global":true},{"name":"i-amphtml-binding","value":[""],"enabledBy":["transformed"],"global":true},{"name":"autoscroll","requiresAncestor":{"marker":["AUTOSCROLL"]},"global":true}],"specUrl":"https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml/#html-tags","htmlFormat":["AMP","AMP4ADS"],"descriptiveName":"link itemprop=sameAs"},{"tagName":"LINK","specName":"link itemprop=","attrs":[{"name":"href","mandatory":true},{"name":"itemprop","mandatory":true},{"name":"charset","valueCasei":["utf-8"]},{"name":"color"},{"name":"crossorigin"},{"name":"hreflang"},{"name":"media"},{"name":"sizes"},{"name":"target"},{"name":"type"},{"name":"itemid","global":true},{"name":"itemprop","global":true},{"name":"itemref","global":true},{"name":"itemscope","global":true},{"name":"itemtype","global":true},{"name":"about","global":true},{"name":"content","global":true},{"name":"datatype","global":true},{"name":"inlist","global":true},{"name":"prefix","global":true},{"name":"property","global":true},{"name":"rel","disallowedValueRegex":"(^|\\s)(canonical|components|dns-prefetch|import|manifest|preconnect|preload|prerender|serviceworker|stylesheet|subresource)(\\s|$)","global":true},{"name":"resource","global":true},{"name":"rev","global":true},{"name":"style","valueDocCss":true,"global":true},{"name":"typeof","global":true},{"name":"vocab","global":true},{"name":"accesskey","global":true},{"name":"class","global":true},{"name":"dir","global":true},{"name":"draggable","global":true},{"name":"hidden","value":[""],"global":true},{"name":"id","disallowedValueRegex":"(^|\\s)(__amp_\\S*|__count__|__defineGetter__|__defineSetter__|__lookupGetter__|__lookupSetter__|__noSuchMethod__|__parent__|__proto__|__AMP_\\S*|\\$p|\\$proxy|acceptCharset|addEventListener|appendChild|assignedSlot|attachShadow|AMP|baseURI|checkValidity|childElementCount|childNodes|classList|className|clientHeight|clientLeft|clientTop|clientWidth|compareDocumentPosition|computedName|computedRole|contentEditable|createShadowRoot|enqueAction|firstChild|firstElementChild|getAnimations|getAttribute|getAttributeNS|getAttributeNode|getAttributeNodeNS|getBoundingClientRect|getClientRects|getDestinationInsertionPoints|getElementsByClassName|getElementsByTagName|getElementsByTagNameNS|getRootNode|hasAttribute|hasAttributeNS|hasAttributes|hasChildNodes|hasPointerCapture|i-amphtml-\\S*|innerHTML|innerText|inputMode|insertAdjacentElement|insertAdjacentHTML|insertAdjacentText|isContentEditable|isDefaultNamespace|isEqualNode|isSameNode|lastChild|lastElementChild|lookupNamespaceURI|namespaceURI|nextElementSibling|nextSibling|nodeName|nodeType|nodeValue|offsetHeight|offsetLeft|offsetParent|offsetTop|offsetWidth|outerHTML|outerText|ownerDocument|parentElement|parentNode|previousElementSibling|previousSibling|querySelector|querySelectorAll|releasePointerCapture|removeAttribute|removeAttributeNS|removeAttributeNode|removeChild|removeEventListener|replaceChild|reportValidity|requestPointerLock|scrollHeight|scrollIntoView|scrollIntoViewIfNeeded|scrollLeft|scrollWidth|setAttribute|setAttributeNS|setAttributeNode|setAttributeNodeNS|setPointerCapture|shadowRoot|styleMap|tabIndex|tagName|textContent|toString|valueOf|(webkit|ms|moz|o)dropzone|(webkit|moz|ms|o)MatchesSelector|(webkit|moz|ms|o)RequestFullScreen|(webkit|moz|ms|o)RequestFullscreen)(\\s|$)","global":true},{"name":"lang","global":true},{"name":"slot","global":true},{"name":"tabindex","global":true},{"name":"title","global":true},{"name":"translate","global":true},{"name":"aria-activedescendant","global":true},{"name":"aria-atomic","global":true},{"name":"aria-autocomplete","global":true},{"name":"aria-busy","global":true},{"name":"aria-checked","global":true},{"name":"aria-controls","global":true},{"name":"aria-current","global":true},{"name":"aria-describedby","global":true},{"name":"aria-disabled","global":true},{"name":"aria-dropeffect","global":true},{"name":"aria-expanded","global":true},{"name":"aria-flowto","global":true},{"name":"aria-grabbed","global":true},{"name":"aria-haspopup","global":true},{"name":"aria-hidden","global":true},{"name":"aria-invalid","global":true},{"name":"aria-label","global":true},{"name":"aria-labelledby","global":true},{"name":"aria-level","global":true},{"name":"aria-live","global":true},{"name":"aria-multiline","global":true},{"name":"aria-multiselectable","global":true},{"name":"aria-orientation","global":true},{"name":"aria-owns","global":true},{"name":"aria-posinset","global":true},{"name":"aria-pressed","global":true},{"name":"aria-readonly","global":true},{"name":"aria-relevant","global":true},{"name":"aria-required","global":true},{"name":"aria-selected","global":true},{"name":"aria-setsize","global":true},{"name":"aria-sort","global":true},{"name":"aria-valuemax","global":true},{"name":"aria-valuemin","global":true},{"name":"aria-valuenow","global":true},{"name":"aria-valuetext","global":true},{"name":"on","trigger":{"ifValueRegex":"tap:.*","alsoRequiresAttr":["role","tabindex"]},"global":true},{"name":"role","global":true},{"name":"placeholder","value":[""],"global":true},{"name":"fallback","value":[""],"global":true},{"name":"overflow","global":true},{"name":"amp-access","global":true},{"name":"amp-access-behavior","global":true},{"name":"amp-access-hide","global":true},{"name":"amp-access-id","global":true},{"name":"amp-access-loader","global":true},{"name":"amp-access-loading","global":true},{"name":"amp-access-off","global":true},{"name":"amp-access-on","global":true},{"name":"amp-access-show","global":true},{"name":"amp-access-style","global":true},{"name":"amp-access-template","global":true},{"name":"i-amp-access-id","global":true},{"name":"validation-for","trigger":{"alsoRequiresAttr":["visible-when-invalid"]},"global":true},{"name":"visible-when-invalid","value":["badInput","customError","patternMismatch","rangeOverflow","rangeUnderflow","stepMismatch","tooLong","tooShort","typeMismatch","valueMissing"],"trigger":{"alsoRequiresAttr":["validation-for"]},"global":true},{"name":"amp-fx","valueRegexCasei":"(fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)(\\s|fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)*","requiresExtension":["amp-fx-collection"],"global":true},{"name":"subscriptions-action","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-actions","value":[""],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-decorate","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-dialog","value":[""],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-display","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-lang","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-section","valueCasei":["actions","content","content-not-granted","loading"],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-service","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-google-rtc","requiresExtension":["amp-subscriptions-google"],"global":true},{"name":"next-page-hide","requiresExtension":["amp-next-page"],"global":true},{"name":"next-page-replace","requiresExtension":["amp-next-page"],"global":true},{"name":"[aria-activedescendant]","global":true},{"name":"[aria-atomic]","global":true},{"name":"[aria-autocomplete]","global":true},{"name":"[aria-busy]","global":true},{"name":"[aria-checked]","global":true},{"name":"[aria-controls]","global":true},{"name":"[aria-describedby]","global":true},{"name":"[aria-disabled]","global":true},{"name":"[aria-dropeffect]","global":true},{"name":"[aria-expanded]","global":true},{"name":"[aria-flowto]","global":true},{"name":"[aria-grabbed]","global":true},{"name":"[aria-haspopup]","global":true},{"name":"[aria-hidden]","global":true},{"name":"[aria-invalid]","global":true},{"name":"[aria-label]","global":true},{"name":"[aria-labelledby]","global":true},{"name":"[aria-level]","global":true},{"name":"[aria-live]","global":true},{"name":"[aria-multiline]","global":true},{"name":"[aria-multiselectable]","global":true},{"name":"[aria-orientation]","global":true},{"name":"[aria-owns]","global":true},{"name":"[aria-posinset]","global":true},{"name":"[aria-pressed]","global":true},{"name":"[aria-readonly]","global":true},{"name":"[aria-relevant]","global":true},{"name":"[aria-required]","global":true},{"name":"[aria-selected]","global":true},{"name":"[aria-setsize]","global":true},{"name":"[aria-sort]","global":true},{"name":"[aria-valuemax]","global":true},{"name":"[aria-valuemin]","global":true},{"name":"[aria-valuenow]","global":true},{"name":"[aria-valuetext]","global":true},{"name":"[class]","global":true},{"name":"[hidden]","global":true},{"name":"[text]","global":true},{"name":"i-amphtml-binding","value":[""],"enabledBy":["transformed"],"global":true},{"name":"autoscroll","requiresAncestor":{"marker":["AUTOSCROLL"]},"global":true}],"specUrl":"https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml/#html-tags","htmlFormat":["AMP","AMP4ADS"],"descriptiveName":"link itemprop="},{"tagName":"LINK","specName":"link property=","attrs":[{"name":"href","mandatory":true},{"name":"property","mandatory":true},{"name":"charset","valueCasei":["utf-8"]},{"name":"color"},{"name":"crossorigin"},{"name":"hreflang"},{"name":"media"},{"name":"sizes"},{"name":"target"},{"name":"type"},{"name":"itemid","global":true},{"name":"itemprop","global":true},{"name":"itemref","global":true},{"name":"itemscope","global":true},{"name":"itemtype","global":true},{"name":"about","global":true},{"name":"content","global":true},{"name":"datatype","global":true},{"name":"inlist","global":true},{"name":"prefix","global":true},{"name":"property","global":true},{"name":"rel","disallowedValueRegex":"(^|\\s)(canonical|components|dns-prefetch|import|manifest|preconnect|preload|prerender|serviceworker|stylesheet|subresource)(\\s|$)","global":true},{"name":"resource","global":true},{"name":"rev","global":true},{"name":"style","valueDocCss":true,"global":true},{"name":"typeof","global":true},{"name":"vocab","global":true},{"name":"accesskey","global":true},{"name":"class","global":true},{"name":"dir","global":true},{"name":"draggable","global":true},{"name":"hidden","value":[""],"global":true},{"name":"id","disallowedValueRegex":"(^|\\s)(__amp_\\S*|__count__|__defineGetter__|__defineSetter__|__lookupGetter__|__lookupSetter__|__noSuchMethod__|__parent__|__proto__|__AMP_\\S*|\\$p|\\$proxy|acceptCharset|addEventListener|appendChild|assignedSlot|attachShadow|AMP|baseURI|checkValidity|childElementCount|childNodes|classList|className|clientHeight|clientLeft|clientTop|clientWidth|compareDocumentPosition|computedName|computedRole|contentEditable|createShadowRoot|enqueAction|firstChild|firstElementChild|getAnimations|getAttribute|getAttributeNS|getAttributeNode|getAttributeNodeNS|getBoundingClientRect|getClientRects|getDestinationInsertionPoints|getElementsByClassName|getElementsByTagName|getElementsByTagNameNS|getRootNode|hasAttribute|hasAttributeNS|hasAttributes|hasChildNodes|hasPointerCapture|i-amphtml-\\S*|innerHTML|innerText|inputMode|insertAdjacentElement|insertAdjacentHTML|insertAdjacentText|isContentEditable|isDefaultNamespace|isEqualNode|isSameNode|lastChild|lastElementChild|lookupNamespaceURI|namespaceURI|nextElementSibling|nextSibling|nodeName|nodeType|nodeValue|offsetHeight|offsetLeft|offsetParent|offsetTop|offsetWidth|outerHTML|outerText|ownerDocument|parentElement|parentNode|previousElementSibling|previousSibling|querySelector|querySelectorAll|releasePointerCapture|removeAttribute|removeAttributeNS|removeAttributeNode|removeChild|removeEventListener|replaceChild|reportValidity|requestPointerLock|scrollHeight|scrollIntoView|scrollIntoViewIfNeeded|scrollLeft|scrollWidth|setAttribute|setAttributeNS|setAttributeNode|setAttributeNodeNS|setPointerCapture|shadowRoot|styleMap|tabIndex|tagName|textContent|toString|valueOf|(webkit|ms|moz|o)dropzone|(webkit|moz|ms|o)MatchesSelector|(webkit|moz|ms|o)RequestFullScreen|(webkit|moz|ms|o)RequestFullscreen)(\\s|$)","global":true},{"name":"lang","global":true},{"name":"slot","global":true},{"name":"tabindex","global":true},{"name":"title","global":true},{"name":"translate","global":true},{"name":"aria-activedescendant","global":true},{"name":"aria-atomic","global":true},{"name":"aria-autocomplete","global":true},{"name":"aria-busy","global":true},{"name":"aria-checked","global":true},{"name":"aria-controls","global":true},{"name":"aria-current","global":true},{"name":"aria-describedby","global":true},{"name":"aria-disabled","global":true},{"name":"aria-dropeffect","global":true},{"name":"aria-expanded","global":true},{"name":"aria-flowto","global":true},{"name":"aria-grabbed","global":true},{"name":"aria-haspopup","global":true},{"name":"aria-hidden","global":true},{"name":"aria-invalid","global":true},{"name":"aria-label","global":true},{"name":"aria-labelledby","global":true},{"name":"aria-level","global":true},{"name":"aria-live","global":true},{"name":"aria-multiline","global":true},{"name":"aria-multiselectable","global":true},{"name":"aria-orientation","global":true},{"name":"aria-owns","global":true},{"name":"aria-posinset","global":true},{"name":"aria-pressed","global":true},{"name":"aria-readonly","global":true},{"name":"aria-relevant","global":true},{"name":"aria-required","global":true},{"name":"aria-selected","global":true},{"name":"aria-setsize","global":true},{"name":"aria-sort","global":true},{"name":"aria-valuemax","global":true},{"name":"aria-valuemin","global":true},{"name":"aria-valuenow","global":true},{"name":"aria-valuetext","global":true},{"name":"on","trigger":{"ifValueRegex":"tap:.*","alsoRequiresAttr":["role","tabindex"]},"global":true},{"name":"role","global":true},{"name":"placeholder","value":[""],"global":true},{"name":"fallback","value":[""],"global":true},{"name":"overflow","global":true},{"name":"amp-access","global":true},{"name":"amp-access-behavior","global":true},{"name":"amp-access-hide","global":true},{"name":"amp-access-id","global":true},{"name":"amp-access-loader","global":true},{"name":"amp-access-loading","global":true},{"name":"amp-access-off","global":true},{"name":"amp-access-on","global":true},{"name":"amp-access-show","global":true},{"name":"amp-access-style","global":true},{"name":"amp-access-template","global":true},{"name":"i-amp-access-id","global":true},{"name":"validation-for","trigger":{"alsoRequiresAttr":["visible-when-invalid"]},"global":true},{"name":"visible-when-invalid","value":["badInput","customError","patternMismatch","rangeOverflow","rangeUnderflow","stepMismatch","tooLong","tooShort","typeMismatch","valueMissing"],"trigger":{"alsoRequiresAttr":["validation-for"]},"global":true},{"name":"amp-fx","valueRegexCasei":"(fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)(\\s|fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)*","requiresExtension":["amp-fx-collection"],"global":true},{"name":"subscriptions-action","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-actions","value":[""],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-decorate","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-dialog","value":[""],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-display","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-lang","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-section","valueCasei":["actions","content","content-not-granted","loading"],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-service","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-google-rtc","requiresExtension":["amp-subscriptions-google"],"global":true},{"name":"next-page-hide","requiresExtension":["amp-next-page"],"global":true},{"name":"next-page-replace","requiresExtension":["amp-next-page"],"global":true},{"name":"[aria-activedescendant]","global":true},{"name":"[aria-atomic]","global":true},{"name":"[aria-autocomplete]","global":true},{"name":"[aria-busy]","global":true},{"name":"[aria-checked]","global":true},{"name":"[aria-controls]","global":true},{"name":"[aria-describedby]","global":true},{"name":"[aria-disabled]","global":true},{"name":"[aria-dropeffect]","global":true},{"name":"[aria-expanded]","global":true},{"name":"[aria-flowto]","global":true},{"name":"[aria-grabbed]","global":true},{"name":"[aria-haspopup]","global":true},{"name":"[aria-hidden]","global":true},{"name":"[aria-invalid]","global":true},{"name":"[aria-label]","global":true},{"name":"[aria-labelledby]","global":true},{"name":"[aria-level]","global":true},{"name":"[aria-live]","global":true},{"name":"[aria-multiline]","global":true},{"name":"[aria-multiselectable]","global":true},{"name":"[aria-orientation]","global":true},{"name":"[aria-owns]","global":true},{"name":"[aria-posinset]","global":true},{"name":"[aria-pressed]","global":true},{"name":"[aria-readonly]","global":true},{"name":"[aria-relevant]","global":true},{"name":"[aria-required]","global":true},{"name":"[aria-selected]","global":true},{"name":"[aria-setsize]","global":true},{"name":"[aria-sort]","global":true},{"name":"[aria-valuemax]","global":true},{"name":"[aria-valuemin]","global":true},{"name":"[aria-valuenow]","global":true},{"name":"[aria-valuetext]","global":true},{"name":"[class]","global":true},{"name":"[hidden]","global":true},{"name":"[text]","global":true},{"name":"i-amphtml-binding","value":[""],"enabledBy":["transformed"],"global":true},{"name":"autoscroll","requiresAncestor":{"marker":["AUTOSCROLL"]},"global":true}],"specUrl":"https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml/#html-tags","htmlFormat":["AMP","AMP4ADS"],"descriptiveName":"link property="},{"tagName":"META","specName":"meta charset=utf-8","mandatory":true,"unique":true,"mandatoryParent":"HEAD","attrs":[{"name":"charset","mandatory":true,"dispatchKey":"NAME_DISPATCH","valueCasei":["utf-8"]},{"name":"itemid","global":true},{"name":"itemprop","global":true},{"name":"itemref","global":true},{"name":"itemscope","global":true},{"name":"itemtype","global":true},{"name":"about","global":true},{"name":"content","global":true},{"name":"datatype","global":true},{"name":"inlist","global":true},{"name":"prefix","global":true},{"name":"property","global":true},{"name":"rel","disallowedValueRegex":"(^|\\s)(canonical|components|dns-prefetch|import|manifest|preconnect|preload|prerender|serviceworker|stylesheet|subresource)(\\s|$)","global":true},{"name":"resource","global":true},{"name":"rev","global":true},{"name":"style","valueDocCss":true,"global":true},{"name":"typeof","global":true},{"name":"vocab","global":true},{"name":"accesskey","global":true},{"name":"class","global":true},{"name":"dir","global":true},{"name":"draggable","global":true},{"name":"hidden","value":[""],"global":true},{"name":"id","disallowedValueRegex":"(^|\\s)(__amp_\\S*|__count__|__defineGetter__|__defineSetter__|__lookupGetter__|__lookupSetter__|__noSuchMethod__|__parent__|__proto__|__AMP_\\S*|\\$p|\\$proxy|acceptCharset|addEventListener|appendChild|assignedSlot|attachShadow|AMP|baseURI|checkValidity|childElementCount|childNodes|classList|className|clientHeight|clientLeft|clientTop|clientWidth|compareDocumentPosition|computedName|computedRole|contentEditable|createShadowRoot|enqueAction|firstChild|firstElementChild|getAnimations|getAttribute|getAttributeNS|getAttributeNode|getAttributeNodeNS|getBoundingClientRect|getClientRects|getDestinationInsertionPoints|getElementsByClassName|getElementsByTagName|getElementsByTagNameNS|getRootNode|hasAttribute|hasAttributeNS|hasAttributes|hasChildNodes|hasPointerCapture|i-amphtml-\\S*|innerHTML|innerText|inputMode|insertAdjacentElement|insertAdjacentHTML|insertAdjacentText|isContentEditable|isDefaultNamespace|isEqualNode|isSameNode|lastChild|lastElementChild|lookupNamespaceURI|namespaceURI|nextElementSibling|nextSibling|nodeName|nodeType|nodeValue|offsetHeight|offsetLeft|offsetParent|offsetTop|offsetWidth|outerHTML|outerText|ownerDocument|parentElement|parentNode|previousElementSibling|previousSibling|querySelector|querySelectorAll|releasePointerCapture|removeAttribute|removeAttributeNS|removeAttributeNode|removeChild|removeEventListener|replaceChild|reportValidity|requestPointerLock|scrollHeight|scrollIntoView|scrollIntoViewIfNeeded|scrollLeft|scrollWidth|setAttribute|setAttributeNS|setAttributeNode|setAttributeNodeNS|setPointerCapture|shadowRoot|styleMap|tabIndex|tagName|textContent|toString|valueOf|(webkit|ms|moz|o)dropzone|(webkit|moz|ms|o)MatchesSelector|(webkit|moz|ms|o)RequestFullScreen|(webkit|moz|ms|o)RequestFullscreen)(\\s|$)","global":true},{"name":"lang","global":true},{"name":"slot","global":true},{"name":"tabindex","global":true},{"name":"title","global":true},{"name":"translate","global":true},{"name":"aria-activedescendant","global":true},{"name":"aria-atomic","global":true},{"name":"aria-autocomplete","global":true},{"name":"aria-busy","global":true},{"name":"aria-checked","global":true},{"name":"aria-controls","global":true},{"name":"aria-current","global":true},{"name":"aria-describedby","global":true},{"name":"aria-disabled","global":true},{"name":"aria-dropeffect","global":true},{"name":"aria-expanded","global":true},{"name":"aria-flowto","global":true},{"name":"aria-grabbed","global":true},{"name":"aria-haspopup","global":true},{"name":"aria-hidden","global":true},{"name":"aria-invalid","global":true},{"name":"aria-label","global":true},{"name":"aria-labelledby","global":true},{"name":"aria-level","global":true},{"name":"aria-live","global":true},{"name":"aria-multiline","global":true},{"name":"aria-multiselectable","global":true},{"name":"aria-orientation","global":true},{"name":"aria-owns","global":true},{"name":"aria-posinset","global":true},{"name":"aria-pressed","global":true},{"name":"aria-readonly","global":true},{"name":"aria-relevant","global":true},{"name":"aria-required","global":true},{"name":"aria-selected","global":true},{"name":"aria-setsize","global":true},{"name":"aria-sort","global":true},{"name":"aria-valuemax","global":true},{"name":"aria-valuemin","global":true},{"name":"aria-valuenow","global":true},{"name":"aria-valuetext","global":true},{"name":"on","trigger":{"ifValueRegex":"tap:.*","alsoRequiresAttr":["role","tabindex"]},"global":true},{"name":"role","global":true},{"name":"placeholder","value":[""],"global":true},{"name":"fallback","value":[""],"global":true},{"name":"overflow","global":true},{"name":"amp-access","global":true},{"name":"amp-access-behavior","global":true},{"name":"amp-access-hide","global":true},{"name":"amp-access-id","global":true},{"name":"amp-access-loader","global":true},{"name":"amp-access-loading","global":true},{"name":"amp-access-off","global":true},{"name":"amp-access-on","global":true},{"name":"amp-access-show","global":true},{"name":"amp-access-style","global":true},{"name":"amp-access-template","global":true},{"name":"i-amp-access-id","global":true},{"name":"validation-for","trigger":{"alsoRequiresAttr":["visible-when-invalid"]},"global":true},{"name":"visible-when-invalid","value":["badInput","customError","patternMismatch","rangeOverflow","rangeUnderflow","stepMismatch","tooLong","tooShort","typeMismatch","valueMissing"],"trigger":{"alsoRequiresAttr":["validation-for"]},"global":true},{"name":"amp-fx","valueRegexCasei":"(fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)(\\s|fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)*","requiresExtension":["amp-fx-collection"],"global":true},{"name":"subscriptions-action","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-actions","value":[""],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-decorate","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-dialog","value":[""],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-display","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-lang","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-section","valueCasei":["actions","content","content-not-granted","loading"],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-service","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-google-rtc","requiresExtension":["amp-subscriptions-google"],"global":true},{"name":"next-page-hide","requiresExtension":["amp-next-page"],"global":true},{"name":"next-page-replace","requiresExtension":["amp-next-page"],"global":true},{"name":"[aria-activedescendant]","global":true},{"name":"[aria-atomic]","global":true},{"name":"[aria-autocomplete]","global":true},{"name":"[aria-busy]","global":true},{"name":"[aria-checked]","global":true},{"name":"[aria-controls]","global":true},{"name":"[aria-describedby]","global":true},{"name":"[aria-disabled]","global":true},{"name":"[aria-dropeffect]","global":true},{"name":"[aria-expanded]","global":true},{"name":"[aria-flowto]","global":true},{"name":"[aria-grabbed]","global":true},{"name":"[aria-haspopup]","global":true},{"name":"[aria-hidden]","global":true},{"name":"[aria-invalid]","global":true},{"name":"[aria-label]","global":true},{"name":"[aria-labelledby]","global":true},{"name":"[aria-level]","global":true},{"name":"[aria-live]","global":true},{"name":"[aria-multiline]","global":true},{"name":"[aria-multiselectable]","global":true},{"name":"[aria-orientation]","global":true},{"name":"[aria-owns]","global":true},{"name":"[aria-posinset]","global":true},{"name":"[aria-pressed]","global":true},{"name":"[aria-readonly]","global":true},{"name":"[aria-relevant]","global":true},{"name":"[aria-required]","global":true},{"name":"[aria-selected]","global":true},{"name":"[aria-setsize]","global":true},{"name":"[aria-sort]","global":true},{"name":"[aria-valuemax]","global":true},{"name":"[aria-valuemin]","global":true},{"name":"[aria-valuenow]","global":true},{"name":"[aria-valuetext]","global":true},{"name":"[class]","global":true},{"name":"[hidden]","global":true},{"name":"[text]","global":true},{"name":"i-amphtml-binding","value":[""],"enabledBy":["transformed"],"global":true},{"name":"autoscroll","requiresAncestor":{"marker":["AUTOSCROLL"]},"global":true}],"specUrl":"https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml/#required-markup","htmlFormat":["AMP","AMP4ADS","AMP4EMAIL"],"descriptiveName":"meta charset=utf-8"},{"tagName":"META","specName":"meta name=viewport","mandatory":true,"unique":true,"mandatoryParent":"HEAD","attrs":[{"name":"content","mandatory":true,"valueProperties":{"properties":[{"name":"width","mandatory":true,"value":"device-width"},{"name":"height"},{"name":"initial-scale"},{"name":"minimum-scale"},{"name":"maximum-scale"},{"name":"shrink-to-fit"},{"name":"user-scalable"},{"name":"viewport-fit"}]}},{"name":"name","mandatory":true,"value":["viewport"],"dispatchKey":"NAME_VALUE_DISPATCH"},{"name":"itemid","global":true},{"name":"itemprop","global":true},{"name":"itemref","global":true},{"name":"itemscope","global":true},{"name":"itemtype","global":true},{"name":"about","global":true},{"name":"content","global":true},{"name":"datatype","global":true},{"name":"inlist","global":true},{"name":"prefix","global":true},{"name":"property","global":true},{"name":"rel","disallowedValueRegex":"(^|\\s)(canonical|components|dns-prefetch|import|manifest|preconnect|preload|prerender|serviceworker|stylesheet|subresource)(\\s|$)","global":true},{"name":"resource","global":true},{"name":"rev","global":true},{"name":"style","valueDocCss":true,"global":true},{"name":"typeof","global":true},{"name":"vocab","global":true},{"name":"accesskey","global":true},{"name":"class","global":true},{"name":"dir","global":true},{"name":"draggable","global":true},{"name":"hidden","value":[""],"global":true},{"name":"id","disallowedValueRegex":"(^|\\s)(__amp_\\S*|__count__|__defineGetter__|__defineSetter__|__lookupGetter__|__lookupSetter__|__noSuchMethod__|__parent__|__proto__|__AMP_\\S*|\\$p|\\$proxy|acceptCharset|addEventListener|appendChild|assignedSlot|attachShadow|AMP|baseURI|checkValidity|childElementCount|childNodes|classList|className|clientHeight|clientLeft|clientTop|clientWidth|compareDocumentPosition|computedName|computedRole|contentEditable|createShadowRoot|enqueAction|firstChild|firstElementChild|getAnimations|getAttribute|getAttributeNS|getAttributeNode|getAttributeNodeNS|getBoundingClientRect|getClientRects|getDestinationInsertionPoints|getElementsByClassName|getElementsByTagName|getElementsByTagNameNS|getRootNode|hasAttribute|hasAttributeNS|hasAttributes|hasChildNodes|hasPointerCapture|i-amphtml-\\S*|innerHTML|innerText|inputMode|insertAdjacentElement|insertAdjacentHTML|insertAdjacentText|isContentEditable|isDefaultNamespace|isEqualNode|isSameNode|lastChild|lastElementChild|lookupNamespaceURI|namespaceURI|nextElementSibling|nextSibling|nodeName|nodeType|nodeValue|offsetHeight|offsetLeft|offsetParent|offsetTop|offsetWidth|outerHTML|outerText|ownerDocument|parentElement|parentNode|previousElementSibling|previousSibling|querySelector|querySelectorAll|releasePointerCapture|removeAttribute|removeAttributeNS|removeAttributeNode|removeChild|removeEventListener|replaceChild|reportValidity|requestPointerLock|scrollHeight|scrollIntoView|scrollIntoViewIfNeeded|scrollLeft|scrollWidth|setAttribute|setAttributeNS|setAttributeNode|setAttributeNodeNS|setPointerCapture|shadowRoot|styleMap|tabIndex|tagName|textContent|toString|valueOf|(webkit|ms|moz|o)dropzone|(webkit|moz|ms|o)MatchesSelector|(webkit|moz|ms|o)RequestFullScreen|(webkit|moz|ms|o)RequestFullscreen)(\\s|$)","global":true},{"name":"lang","global":true},{"name":"slot","global":true},{"name":"tabindex","global":true},{"name":"title","global":true},{"name":"translate","global":true},{"name":"aria-activedescendant","global":true},{"name":"aria-atomic","global":true},{"name":"aria-autocomplete","global":true},{"name":"aria-busy","global":true},{"name":"aria-checked","global":true},{"name":"aria-controls","global":true},{"name":"aria-current","global":true},{"name":"aria-describedby","global":true},{"name":"aria-disabled","global":true},{"name":"aria-dropeffect","global":true},{"name":"aria-expanded","global":true},{"name":"aria-flowto","global":true},{"name":"aria-grabbed","global":true},{"name":"aria-haspopup","global":true},{"name":"aria-hidden","global":true},{"name":"aria-invalid","global":true},{"name":"aria-label","global":true},{"name":"aria-labelledby","global":true},{"name":"aria-level","global":true},{"name":"aria-live","global":true},{"name":"aria-multiline","global":true},{"name":"aria-multiselectable","global":true},{"name":"aria-orientation","global":true},{"name":"aria-owns","global":true},{"name":"aria-posinset","global":true},{"name":"aria-pressed","global":true},{"name":"aria-readonly","global":true},{"name":"aria-relevant","global":true},{"name":"aria-required","global":true},{"name":"aria-selected","global":true},{"name":"aria-setsize","global":true},{"name":"aria-sort","global":true},{"name":"aria-valuemax","global":true},{"name":"aria-valuemin","global":true},{"name":"aria-valuenow","global":true},{"name":"aria-valuetext","global":true},{"name":"on","trigger":{"ifValueRegex":"tap:.*","alsoRequiresAttr":["role","tabindex"]},"global":true},{"name":"role","global":true},{"name":"placeholder","value":[""],"global":true},{"name":"fallback","value":[""],"global":true},{"name":"overflow","global":true},{"name":"amp-access","global":true},{"name":"amp-access-behavior","global":true},{"name":"amp-access-hide","global":true},{"name":"amp-access-id","global":true},{"name":"amp-access-loader","global":true},{"name":"amp-access-loading","global":true},{"name":"amp-access-off","global":true},{"name":"amp-access-on","global":true},{"name":"amp-access-show","global":true},{"name":"amp-access-style","global":true},{"name":"amp-access-template","global":true},{"name":"i-amp-access-id","global":true},{"name":"validation-for","trigger":{"alsoRequiresAttr":["visible-when-invalid"]},"global":true},{"name":"visible-when-invalid","value":["badInput","customError","patternMismatch","rangeOverflow","rangeUnderflow","stepMismatch","tooLong","tooShort","typeMismatch","valueMissing"],"trigger":{"alsoRequiresAttr":["validation-for"]},"global":true},{"name":"amp-fx","valueRegexCasei":"(fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)(\\s|fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)*","requiresExtension":["amp-fx-collection"],"global":true},{"name":"subscriptions-action","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-actions","value":[""],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-decorate","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-dialog","value":[""],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-display","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-lang","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-section","valueCasei":["actions","content","content-not-granted","loading"],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-service","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-google-rtc","requiresExtension":["amp-subscriptions-google"],"global":true},{"name":"next-page-hide","requiresExtension":["amp-next-page"],"global":true},{"name":"next-page-replace","requiresExtension":["amp-next-page"],"global":true},{"name":"[aria-activedescendant]","global":true},{"name":"[aria-atomic]","global":true},{"name":"[aria-autocomplete]","global":true},{"name":"[aria-busy]","global":true},{"name":"[aria-checked]","global":true},{"name":"[aria-controls]","global":true},{"name":"[aria-describedby]","global":true},{"name":"[aria-disabled]","global":true},{"name":"[aria-dropeffect]","global":true},{"name":"[aria-expanded]","global":true},{"name":"[aria-flowto]","global":true},{"name":"[aria-grabbed]","global":true},{"name":"[aria-haspopup]","global":true},{"name":"[aria-hidden]","global":true},{"name":"[aria-invalid]","global":true},{"name":"[aria-label]","global":true},{"name":"[aria-labelledby]","global":true},{"name":"[aria-level]","global":true},{"name":"[aria-live]","global":true},{"name":"[aria-multiline]","global":true},{"name":"[aria-multiselectable]","global":true},{"name":"[aria-orientation]","global":true},{"name":"[aria-owns]","global":true},{"name":"[aria-posinset]","global":true},{"name":"[aria-pressed]","global":true},{"name":"[aria-readonly]","global":true},{"name":"[aria-relevant]","global":true},{"name":"[aria-required]","global":true},{"name":"[aria-selected]","global":true},{"name":"[aria-setsize]","global":true},{"name":"[aria-sort]","global":true},{"name":"[aria-valuemax]","global":true},{"name":"[aria-valuemin]","global":true},{"name":"[aria-valuenow]","global":true},{"name":"[aria-valuetext]","global":true},{"name":"[class]","global":true},{"name":"[hidden]","global":true},{"name":"[text]","global":true},{"name":"i-amphtml-binding","value":[""],"enabledBy":["transformed"],"global":true},{"name":"autoscroll","requiresAncestor":{"marker":["AUTOSCROLL"]},"global":true}],"specUrl":"https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml/#required-markup","htmlFormat":["AMP","AMP4ADS"],"descriptiveName":"meta name=viewport"},{"tagName":"META","specName":"meta http-equiv=X-UA-Compatible","attrs":[{"name":"content","mandatory":true,"valueProperties":{"properties":[{"name":"ie","value":"edge"},{"name":"chrome","value":"1"}]}},{"name":"http-equiv","mandatory":true,"dispatchKey":"NAME_VALUE_DISPATCH","valueCasei":["x-ua-compatible"]},{"name":"itemid","global":true},{"name":"itemprop","global":true},{"name":"itemref","global":true},{"name":"itemscope","global":true},{"name":"itemtype","global":true},{"name":"about","global":true},{"name":"content","global":true},{"name":"datatype","global":true},{"name":"inlist","global":true},{"name":"prefix","global":true},{"name":"property","global":true},{"name":"rel","disallowedValueRegex":"(^|\\s)(canonical|components|dns-prefetch|import|manifest|preconnect|preload|prerender|serviceworker|stylesheet|subresource)(\\s|$)","global":true},{"name":"resource","global":true},{"name":"rev","global":true},{"name":"style","valueDocCss":true,"global":true},{"name":"typeof","global":true},{"name":"vocab","global":true},{"name":"accesskey","global":true},{"name":"class","global":true},{"name":"dir","global":true},{"name":"draggable","global":true},{"name":"hidden","value":[""],"global":true},{"name":"id","disallowedValueRegex":"(^|\\s)(__amp_\\S*|__count__|__defineGetter__|__defineSetter__|__lookupGetter__|__lookupSetter__|__noSuchMethod__|__parent__|__proto__|__AMP_\\S*|\\$p|\\$proxy|acceptCharset|addEventListener|appendChild|assignedSlot|attachShadow|AMP|baseURI|checkValidity|childElementCount|childNodes|classList|className|clientHeight|clientLeft|clientTop|clientWidth|compareDocumentPosition|computedName|computedRole|contentEditable|createShadowRoot|enqueAction|firstChild|firstElementChild|getAnimations|getAttribute|getAttributeNS|getAttributeNode|getAttributeNodeNS|getBoundingClientRect|getClientRects|getDestinationInsertionPoints|getElementsByClassName|getElementsByTagName|getElementsByTagNameNS|getRootNode|hasAttribute|hasAttributeNS|hasAttributes|hasChildNodes|hasPointerCapture|i-amphtml-\\S*|innerHTML|innerText|inputMode|insertAdjacentElement|insertAdjacentHTML|insertAdjacentText|isContentEditable|isDefaultNamespace|isEqualNode|isSameNode|lastChild|lastElementChild|lookupNamespaceURI|namespaceURI|nextElementSibling|nextSibling|nodeName|nodeType|nodeValue|offsetHeight|offsetLeft|offsetParent|offsetTop|offsetWidth|outerHTML|outerText|ownerDocument|parentElement|parentNode|previousElementSibling|previousSibling|querySelector|querySelectorAll|releasePointerCapture|removeAttribute|removeAttributeNS|removeAttributeNode|removeChild|removeEventListener|replaceChild|reportValidity|requestPointerLock|scrollHeight|scrollIntoView|scrollIntoViewIfNeeded|scrollLeft|scrollWidth|setAttribute|setAttributeNS|setAttributeNode|setAttributeNodeNS|setPointerCapture|shadowRoot|styleMap|tabIndex|tagName|textContent|toString|valueOf|(webkit|ms|moz|o)dropzone|(webkit|moz|ms|o)MatchesSelector|(webkit|moz|ms|o)RequestFullScreen|(webkit|moz|ms|o)RequestFullscreen)(\\s|$)","global":true},{"name":"lang","global":true},{"name":"slot","global":true},{"name":"tabindex","global":true},{"name":"title","global":true},{"name":"translate","global":true},{"name":"aria-activedescendant","global":true},{"name":"aria-atomic","global":true},{"name":"aria-autocomplete","global":true},{"name":"aria-busy","global":true},{"name":"aria-checked","global":true},{"name":"aria-controls","global":true},{"name":"aria-current","global":true},{"name":"aria-describedby","global":true},{"name":"aria-disabled","global":true},{"name":"aria-dropeffect","global":true},{"name":"aria-expanded","global":true},{"name":"aria-flowto","global":true},{"name":"aria-grabbed","global":true},{"name":"aria-haspopup","global":true},{"name":"aria-hidden","global":true},{"name":"aria-invalid","global":true},{"name":"aria-label","global":true},{"name":"aria-labelledby","global":true},{"name":"aria-level","global":true},{"name":"aria-live","global":true},{"name":"aria-multiline","global":true},{"name":"aria-multiselectable","global":true},{"name":"aria-orientation","global":true},{"name":"aria-owns","global":true},{"name":"aria-posinset","global":true},{"name":"aria-pressed","global":true},{"name":"aria-readonly","global":true},{"name":"aria-relevant","global":true},{"name":"aria-required","global":true},{"name":"aria-selected","global":true},{"name":"aria-setsize","global":true},{"name":"aria-sort","global":true},{"name":"aria-valuemax","global":true},{"name":"aria-valuemin","global":true},{"name":"aria-valuenow","global":true},{"name":"aria-valuetext","global":true},{"name":"on","trigger":{"ifValueRegex":"tap:.*","alsoRequiresAttr":["role","tabindex"]},"global":true},{"name":"role","global":true},{"name":"placeholder","value":[""],"global":true},{"name":"fallback","value":[""],"global":true},{"name":"overflow","global":true},{"name":"amp-access","global":true},{"name":"amp-access-behavior","global":true},{"name":"amp-access-hide","global":true},{"name":"amp-access-id","global":true},{"name":"amp-access-loader","global":true},{"name":"amp-access-loading","global":true},{"name":"amp-access-off","global":true},{"name":"amp-access-on","global":true},{"name":"amp-access-show","global":true},{"name":"amp-access-style","global":true},{"name":"amp-access-template","global":true},{"name":"i-amp-access-id","global":true},{"name":"validation-for","trigger":{"alsoRequiresAttr":["visible-when-invalid"]},"global":true},{"name":"visible-when-invalid","value":["badInput","customError","patternMismatch","rangeOverflow","rangeUnderflow","stepMismatch","tooLong","tooShort","typeMismatch","valueMissing"],"trigger":{"alsoRequiresAttr":["validation-for"]},"global":true},{"name":"amp-fx","valueRegexCasei":"(fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)(\\s|fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)*","requiresExtension":["amp-fx-collection"],"global":true},{"name":"subscriptions-action","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-actions","value":[""],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-decorate","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-dialog","value":[""],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-display","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-lang","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-section","valueCasei":["actions","content","content-not-granted","loading"],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-service","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-google-rtc","requiresExtension":["amp-subscriptions-google"],"global":true},{"name":"next-page-hide","requiresExtension":["amp-next-page"],"global":true},{"name":"next-page-replace","requiresExtension":["amp-next-page"],"global":true},{"name":"[aria-activedescendant]","global":true},{"name":"[aria-atomic]","global":true},{"name":"[aria-autocomplete]","global":true},{"name":"[aria-busy]","global":true},{"name":"[aria-checked]","global":true},{"name":"[aria-controls]","global":true},{"name":"[aria-describedby]","global":true},{"name":"[aria-disabled]","global":true},{"name":"[aria-dropeffect]","global":true},{"name":"[aria-expanded]","global":true},{"name":"[aria-flowto]","global":true},{"name":"[aria-grabbed]","global":true},{"name":"[aria-haspopup]","global":true},{"name":"[aria-hidden]","global":true},{"name":"[aria-invalid]","global":true},{"name":"[aria-label]","global":true},{"name":"[aria-labelledby]","global":true},{"name":"[aria-level]","global":true},{"name":"[aria-live]","global":true},{"name":"[aria-multiline]","global":true},{"name":"[aria-multiselectable]","global":true},{"name":"[aria-orientation]","global":true},{"name":"[aria-owns]","global":true},{"name":"[aria-posinset]","global":true},{"name":"[aria-pressed]","global":true},{"name":"[aria-readonly]","global":true},{"name":"[aria-relevant]","global":true},{"name":"[aria-required]","global":true},{"name":"[aria-selected]","global":true},{"name":"[aria-setsize]","global":true},{"name":"[aria-sort]","global":true},{"name":"[aria-valuemax]","global":true},{"name":"[aria-valuemin]","global":true},{"name":"[aria-valuenow]","global":true},{"name":"[aria-valuetext]","global":true},{"name":"[class]","global":true},{"name":"[hidden]","global":true},{"name":"[text]","global":true},{"name":"i-amphtml-binding","value":[""],"enabledBy":["transformed"],"global":true},{"name":"autoscroll","requiresAncestor":{"marker":["AUTOSCROLL"]},"global":true}],"specUrl":"https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml/#html-tags","mandatoryAncestor":"HEAD","htmlFormat":["AMP","AMP4ADS"],"descriptiveName":"meta http-equiv=X-UA-Compatible"},{"tagName":"META","specName":"meta name=apple-itunes-app","mandatoryParent":"HEAD","attrs":[{"name":"content","mandatory":true,"valueRegex":".*app-id=.*"},{"name":"name","mandatory":true,"dispatchKey":"NAME_VALUE_DISPATCH","valueCasei":["apple-itunes-app"]},{"name":"itemid","global":true},{"name":"itemprop","global":true},{"name":"itemref","global":true},{"name":"itemscope","global":true},{"name":"itemtype","global":true},{"name":"about","global":true},{"name":"content","global":true},{"name":"datatype","global":true},{"name":"inlist","global":true},{"name":"prefix","global":true},{"name":"property","global":true},{"name":"rel","disallowedValueRegex":"(^|\\s)(canonical|components|dns-prefetch|import|manifest|preconnect|preload|prerender|serviceworker|stylesheet|subresource)(\\s|$)","global":true},{"name":"resource","global":true},{"name":"rev","global":true},{"name":"style","valueDocCss":true,"global":true},{"name":"typeof","global":true},{"name":"vocab","global":true},{"name":"accesskey","global":true},{"name":"class","global":true},{"name":"dir","global":true},{"name":"draggable","global":true},{"name":"hidden","value":[""],"global":true},{"name":"id","disallowedValueRegex":"(^|\\s)(__amp_\\S*|__count__|__defineGetter__|__defineSetter__|__lookupGetter__|__lookupSetter__|__noSuchMethod__|__parent__|__proto__|__AMP_\\S*|\\$p|\\$proxy|acceptCharset|addEventListener|appendChild|assignedSlot|attachShadow|AMP|baseURI|checkValidity|childElementCount|childNodes|classList|className|clientHeight|clientLeft|clientTop|clientWidth|compareDocumentPosition|computedName|computedRole|contentEditable|createShadowRoot|enqueAction|firstChild|firstElementChild|getAnimations|getAttribute|getAttributeNS|getAttributeNode|getAttributeNodeNS|getBoundingClientRect|getClientRects|getDestinationInsertionPoints|getElementsByClassName|getElementsByTagName|getElementsByTagNameNS|getRootNode|hasAttribute|hasAttributeNS|hasAttributes|hasChildNodes|hasPointerCapture|i-amphtml-\\S*|innerHTML|innerText|inputMode|insertAdjacentElement|insertAdjacentHTML|insertAdjacentText|isContentEditable|isDefaultNamespace|isEqualNode|isSameNode|lastChild|lastElementChild|lookupNamespaceURI|namespaceURI|nextElementSibling|nextSibling|nodeName|nodeType|nodeValue|offsetHeight|offsetLeft|offsetParent|offsetTop|offsetWidth|outerHTML|outerText|ownerDocument|parentElement|parentNode|previousElementSibling|previousSibling|querySelector|querySelectorAll|releasePointerCapture|removeAttribute|removeAttributeNS|removeAttributeNode|removeChild|removeEventListener|replaceChild|reportValidity|requestPointerLock|scrollHeight|scrollIntoView|scrollIntoViewIfNeeded|scrollLeft|scrollWidth|setAttribute|setAttributeNS|setAttributeNode|setAttributeNodeNS|setPointerCapture|shadowRoot|styleMap|tabIndex|tagName|textContent|toString|valueOf|(webkit|ms|moz|o)dropzone|(webkit|moz|ms|o)MatchesSelector|(webkit|moz|ms|o)RequestFullScreen|(webkit|moz|ms|o)RequestFullscreen)(\\s|$)","global":true},{"name":"lang","global":true},{"name":"slot","global":true},{"name":"tabindex","global":true},{"name":"title","global":true},{"name":"translate","global":true},{"name":"aria-activedescendant","global":true},{"name":"aria-atomic","global":true},{"name":"aria-autocomplete","global":true},{"name":"aria-busy","global":true},{"name":"aria-checked","global":true},{"name":"aria-controls","global":true},{"name":"aria-current","global":true},{"name":"aria-describedby","global":true},{"name":"aria-disabled","global":true},{"name":"aria-dropeffect","global":true},{"name":"aria-expanded","global":true},{"name":"aria-flowto","global":true},{"name":"aria-grabbed","global":true},{"name":"aria-haspopup","global":true},{"name":"aria-hidden","global":true},{"name":"aria-invalid","global":true},{"name":"aria-label","global":true},{"name":"aria-labelledby","global":true},{"name":"aria-level","global":true},{"name":"aria-live","global":true},{"name":"aria-multiline","global":true},{"name":"aria-multiselectable","global":true},{"name":"aria-orientation","global":true},{"name":"aria-owns","global":true},{"name":"aria-posinset","global":true},{"name":"aria-pressed","global":true},{"name":"aria-readonly","global":true},{"name":"aria-relevant","global":true},{"name":"aria-required","global":true},{"name":"aria-selected","global":true},{"name":"aria-setsize","global":true},{"name":"aria-sort","global":true},{"name":"aria-valuemax","global":true},{"name":"aria-valuemin","global":true},{"name":"aria-valuenow","global":true},{"name":"aria-valuetext","global":true},{"name":"on","trigger":{"ifValueRegex":"tap:.*","alsoRequiresAttr":["role","tabindex"]},"global":true},{"name":"role","global":true},{"name":"placeholder","value":[""],"global":true},{"name":"fallback","value":[""],"global":true},{"name":"overflow","global":true},{"name":"amp-access","global":true},{"name":"amp-access-behavior","global":true},{"name":"amp-access-hide","global":true},{"name":"amp-access-id","global":true},{"name":"amp-access-loader","global":true},{"name":"amp-access-loading","global":true},{"name":"amp-access-off","global":true},{"name":"amp-access-on","global":true},{"name":"amp-access-show","global":true},{"name":"amp-access-style","global":true},{"name":"amp-access-template","global":true},{"name":"i-amp-access-id","global":true},{"name":"validation-for","trigger":{"alsoRequiresAttr":["visible-when-invalid"]},"global":true},{"name":"visible-when-invalid","value":["badInput","customError","patternMismatch","rangeOverflow","rangeUnderflow","stepMismatch","tooLong","tooShort","typeMismatch","valueMissing"],"trigger":{"alsoRequiresAttr":["validation-for"]},"global":true},{"name":"amp-fx","valueRegexCasei":"(fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)(\\s|fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)*","requiresExtension":["amp-fx-collection"],"global":true},{"name":"subscriptions-action","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-actions","value":[""],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-decorate","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-dialog","value":[""],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-display","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-lang","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-section","valueCasei":["actions","content","content-not-granted","loading"],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-service","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-google-rtc","requiresExtension":["amp-subscriptions-google"],"global":true},{"name":"next-page-hide","requiresExtension":["amp-next-page"],"global":true},{"name":"next-page-replace","requiresExtension":["amp-next-page"],"global":true},{"name":"[aria-activedescendant]","global":true},{"name":"[aria-atomic]","global":true},{"name":"[aria-autocomplete]","global":true},{"name":"[aria-busy]","global":true},{"name":"[aria-checked]","global":true},{"name":"[aria-controls]","global":true},{"name":"[aria-describedby]","global":true},{"name":"[aria-disabled]","global":true},{"name":"[aria-dropeffect]","global":true},{"name":"[aria-expanded]","global":true},{"name":"[aria-flowto]","global":true},{"name":"[aria-grabbed]","global":true},{"name":"[aria-haspopup]","global":true},{"name":"[aria-hidden]","global":true},{"name":"[aria-invalid]","global":true},{"name":"[aria-label]","global":true},{"name":"[aria-labelledby]","global":true},{"name":"[aria-level]","global":true},{"name":"[aria-live]","global":true},{"name":"[aria-multiline]","global":true},{"name":"[aria-multiselectable]","global":true},{"name":"[aria-orientation]","global":true},{"name":"[aria-owns]","global":true},{"name":"[aria-posinset]","global":true},{"name":"[aria-pressed]","global":true},{"name":"[aria-readonly]","global":true},{"name":"[aria-relevant]","global":true},{"name":"[aria-required]","global":true},{"name":"[aria-selected]","global":true},{"name":"[aria-setsize]","global":true},{"name":"[aria-sort]","global":true},{"name":"[aria-valuemax]","global":true},{"name":"[aria-valuemin]","global":true},{"name":"[aria-valuenow]","global":true},{"name":"[aria-valuetext]","global":true},{"name":"[class]","global":true},{"name":"[hidden]","global":true},{"name":"[text]","global":true},{"name":"i-amphtml-binding","value":[""],"enabledBy":["transformed"],"global":true},{"name":"autoscroll","requiresAncestor":{"marker":["AUTOSCROLL"]},"global":true}],"specUrl":"https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml/#html-tags","htmlFormat":["AMP","AMP4ADS"],"satisfies":["amp-app-banner data source"]},{"tagName":"META","specName":"meta name=amp-experiments-opt-in","mandatoryParent":"HEAD","attrs":[{"name":"content","mandatory":true},{"name":"name","mandatory":true,"dispatchKey":"NAME_VALUE_DISPATCH","valueCasei":["amp-experiments-opt-in"]},{"name":"itemid","global":true},{"name":"itemprop","global":true},{"name":"itemref","global":true},{"name":"itemscope","global":true},{"name":"itemtype","global":true},{"name":"about","global":true},{"name":"content","global":true},{"name":"datatype","global":true},{"name":"inlist","global":true},{"name":"prefix","global":true},{"name":"property","global":true},{"name":"rel","disallowedValueRegex":"(^|\\s)(canonical|components|dns-prefetch|import|manifest|preconnect|preload|prerender|serviceworker|stylesheet|subresource)(\\s|$)","global":true},{"name":"resource","global":true},{"name":"rev","global":true},{"name":"style","valueDocCss":true,"global":true},{"name":"typeof","global":true},{"name":"vocab","global":true},{"name":"accesskey","global":true},{"name":"class","global":true},{"name":"dir","global":true},{"name":"draggable","global":true},{"name":"hidden","value":[""],"global":true},{"name":"id","disallowedValueRegex":"(^|\\s)(__amp_\\S*|__count__|__defineGetter__|__defineSetter__|__lookupGetter__|__lookupSetter__|__noSuchMethod__|__parent__|__proto__|__AMP_\\S*|\\$p|\\$proxy|acceptCharset|addEventListener|appendChild|assignedSlot|attachShadow|AMP|baseURI|checkValidity|childElementCount|childNodes|classList|className|clientHeight|clientLeft|clientTop|clientWidth|compareDocumentPosition|computedName|computedRole|contentEditable|createShadowRoot|enqueAction|firstChild|firstElementChild|getAnimations|getAttribute|getAttributeNS|getAttributeNode|getAttributeNodeNS|getBoundingClientRect|getClientRects|getDestinationInsertionPoints|getElementsByClassName|getElementsByTagName|getElementsByTagNameNS|getRootNode|hasAttribute|hasAttributeNS|hasAttributes|hasChildNodes|hasPointerCapture|i-amphtml-\\S*|innerHTML|innerText|inputMode|insertAdjacentElement|insertAdjacentHTML|insertAdjacentText|isContentEditable|isDefaultNamespace|isEqualNode|isSameNode|lastChild|lastElementChild|lookupNamespaceURI|namespaceURI|nextElementSibling|nextSibling|nodeName|nodeType|nodeValue|offsetHeight|offsetLeft|offsetParent|offsetTop|offsetWidth|outerHTML|outerText|ownerDocument|parentElement|parentNode|previousElementSibling|previousSibling|querySelector|querySelectorAll|releasePointerCapture|removeAttribute|removeAttributeNS|removeAttributeNode|removeChild|removeEventListener|replaceChild|reportValidity|requestPointerLock|scrollHeight|scrollIntoView|scrollIntoViewIfNeeded|scrollLeft|scrollWidth|setAttribute|setAttributeNS|setAttributeNode|setAttributeNodeNS|setPointerCapture|shadowRoot|styleMap|tabIndex|tagName|textContent|toString|valueOf|(webkit|ms|moz|o)dropzone|(webkit|moz|ms|o)MatchesSelector|(webkit|moz|ms|o)RequestFullScreen|(webkit|moz|ms|o)RequestFullscreen)(\\s|$)","global":true},{"name":"lang","global":true},{"name":"slot","global":true},{"name":"tabindex","global":true},{"name":"title","global":true},{"name":"translate","global":true},{"name":"aria-activedescendant","global":true},{"name":"aria-atomic","global":true},{"name":"aria-autocomplete","global":true},{"name":"aria-busy","global":true},{"name":"aria-checked","global":true},{"name":"aria-controls","global":true},{"name":"aria-current","global":true},{"name":"aria-describedby","global":true},{"name":"aria-disabled","global":true},{"name":"aria-dropeffect","global":true},{"name":"aria-expanded","global":true},{"name":"aria-flowto","global":true},{"name":"aria-grabbed","global":true},{"name":"aria-haspopup","global":true},{"name":"aria-hidden","global":true},{"name":"aria-invalid","global":true},{"name":"aria-label","global":true},{"name":"aria-labelledby","global":true},{"name":"aria-level","global":true},{"name":"aria-live","global":true},{"name":"aria-multiline","global":true},{"name":"aria-multiselectable","global":true},{"name":"aria-orientation","global":true},{"name":"aria-owns","global":true},{"name":"aria-posinset","global":true},{"name":"aria-pressed","global":true},{"name":"aria-readonly","global":true},{"name":"aria-relevant","global":true},{"name":"aria-required","global":true},{"name":"aria-selected","global":true},{"name":"aria-setsize","global":true},{"name":"aria-sort","global":true},{"name":"aria-valuemax","global":true},{"name":"aria-valuemin","global":true},{"name":"aria-valuenow","global":true},{"name":"aria-valuetext","global":true},{"name":"on","trigger":{"ifValueRegex":"tap:.*","alsoRequiresAttr":["role","tabindex"]},"global":true},{"name":"role","global":true},{"name":"placeholder","value":[""],"global":true},{"name":"fallback","value":[""],"global":true},{"name":"overflow","global":true},{"name":"amp-access","global":true},{"name":"amp-access-behavior","global":true},{"name":"amp-access-hide","global":true},{"name":"amp-access-id","global":true},{"name":"amp-access-loader","global":true},{"name":"amp-access-loading","global":true},{"name":"amp-access-off","global":true},{"name":"amp-access-on","global":true},{"name":"amp-access-show","global":true},{"name":"amp-access-style","global":true},{"name":"amp-access-template","global":true},{"name":"i-amp-access-id","global":true},{"name":"validation-for","trigger":{"alsoRequiresAttr":["visible-when-invalid"]},"global":true},{"name":"visible-when-invalid","value":["badInput","customError","patternMismatch","rangeOverflow","rangeUnderflow","stepMismatch","tooLong","tooShort","typeMismatch","valueMissing"],"trigger":{"alsoRequiresAttr":["validation-for"]},"global":true},{"name":"amp-fx","valueRegexCasei":"(fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)(\\s|fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)*","requiresExtension":["amp-fx-collection"],"global":true},{"name":"subscriptions-action","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-actions","value":[""],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-decorate","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-dialog","value":[""],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-display","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-lang","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-section","valueCasei":["actions","content","content-not-granted","loading"],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-service","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-google-rtc","requiresExtension":["amp-subscriptions-google"],"global":true},{"name":"next-page-hide","requiresExtension":["amp-next-page"],"global":true},{"name":"next-page-replace","requiresExtension":["amp-next-page"],"global":true},{"name":"[aria-activedescendant]","global":true},{"name":"[aria-atomic]","global":true},{"name":"[aria-autocomplete]","global":true},{"name":"[aria-busy]","global":true},{"name":"[aria-checked]","global":true},{"name":"[aria-controls]","global":true},{"name":"[aria-describedby]","global":true},{"name":"[aria-disabled]","global":true},{"name":"[aria-dropeffect]","global":true},{"name":"[aria-expanded]","global":true},{"name":"[aria-flowto]","global":true},{"name":"[aria-grabbed]","global":true},{"name":"[aria-haspopup]","global":true},{"name":"[aria-hidden]","global":true},{"name":"[aria-invalid]","global":true},{"name":"[aria-label]","global":true},{"name":"[aria-labelledby]","global":true},{"name":"[aria-level]","global":true},{"name":"[aria-live]","global":true},{"name":"[aria-multiline]","global":true},{"name":"[aria-multiselectable]","global":true},{"name":"[aria-orientation]","global":true},{"name":"[aria-owns]","global":true},{"name":"[aria-posinset]","global":true},{"name":"[aria-pressed]","global":true},{"name":"[aria-readonly]","global":true},{"name":"[aria-relevant]","global":true},{"name":"[aria-required]","global":true},{"name":"[aria-selected]","global":true},{"name":"[aria-setsize]","global":true},{"name":"[aria-sort]","global":true},{"name":"[aria-valuemax]","global":true},{"name":"[aria-valuemin]","global":true},{"name":"[aria-valuenow]","global":true},{"name":"[aria-valuetext]","global":true},{"name":"[class]","global":true},{"name":"[hidden]","global":true},{"name":"[text]","global":true},{"name":"i-amphtml-binding","value":[""],"enabledBy":["transformed"],"global":true},{"name":"autoscroll","requiresAncestor":{"marker":["AUTOSCROLL"]},"global":true}],"htmlFormat":["AMP","AMP4ADS"]},{"tagName":"META","specName":"meta name=amp-3p-iframe-src","mandatoryParent":"HEAD","attrs":[{"name":"content","mandatory":true,"valueUrl":{"protocol":["https"]}},{"name":"name","mandatory":true,"dispatchKey":"NAME_VALUE_DISPATCH","valueCasei":["amp-3p-iframe-src"]},{"name":"itemid","global":true},{"name":"itemprop","global":true},{"name":"itemref","global":true},{"name":"itemscope","global":true},{"name":"itemtype","global":true},{"name":"about","global":true},{"name":"content","global":true},{"name":"datatype","global":true},{"name":"inlist","global":true},{"name":"prefix","global":true},{"name":"property","global":true},{"name":"rel","disallowedValueRegex":"(^|\\s)(canonical|components|dns-prefetch|import|manifest|preconnect|preload|prerender|serviceworker|stylesheet|subresource)(\\s|$)","global":true},{"name":"resource","global":true},{"name":"rev","global":true},{"name":"style","valueDocCss":true,"global":true},{"name":"typeof","global":true},{"name":"vocab","global":true},{"name":"accesskey","global":true},{"name":"class","global":true},{"name":"dir","global":true},{"name":"draggable","global":true},{"name":"hidden","value":[""],"global":true},{"name":"id","disallowedValueRegex":"(^|\\s)(__amp_\\S*|__count__|__defineGetter__|__defineSetter__|__lookupGetter__|__lookupSetter__|__noSuchMethod__|__parent__|__proto__|__AMP_\\S*|\\$p|\\$proxy|acceptCharset|addEventListener|appendChild|assignedSlot|attachShadow|AMP|baseURI|checkValidity|childElementCount|childNodes|classList|className|clientHeight|clientLeft|clientTop|clientWidth|compareDocumentPosition|computedName|computedRole|contentEditable|createShadowRoot|enqueAction|firstChild|firstElementChild|getAnimations|getAttribute|getAttributeNS|getAttributeNode|getAttributeNodeNS|getBoundingClientRect|getClientRects|getDestinationInsertionPoints|getElementsByClassName|getElementsByTagName|getElementsByTagNameNS|getRootNode|hasAttribute|hasAttributeNS|hasAttributes|hasChildNodes|hasPointerCapture|i-amphtml-\\S*|innerHTML|innerText|inputMode|insertAdjacentElement|insertAdjacentHTML|insertAdjacentText|isContentEditable|isDefaultNamespace|isEqualNode|isSameNode|lastChild|lastElementChild|lookupNamespaceURI|namespaceURI|nextElementSibling|nextSibling|nodeName|nodeType|nodeValue|offsetHeight|offsetLeft|offsetParent|offsetTop|offsetWidth|outerHTML|outerText|ownerDocument|parentElement|parentNode|previousElementSibling|previousSibling|querySelector|querySelectorAll|releasePointerCapture|removeAttribute|removeAttributeNS|removeAttributeNode|removeChild|removeEventListener|replaceChild|reportValidity|requestPointerLock|scrollHeight|scrollIntoView|scrollIntoViewIfNeeded|scrollLeft|scrollWidth|setAttribute|setAttributeNS|setAttributeNode|setAttributeNodeNS|setPointerCapture|shadowRoot|styleMap|tabIndex|tagName|textContent|toString|valueOf|(webkit|ms|moz|o)dropzone|(webkit|moz|ms|o)MatchesSelector|(webkit|moz|ms|o)RequestFullScreen|(webkit|moz|ms|o)RequestFullscreen)(\\s|$)","global":true},{"name":"lang","global":true},{"name":"slot","global":true},{"name":"tabindex","global":true},{"name":"title","global":true},{"name":"translate","global":true},{"name":"aria-activedescendant","global":true},{"name":"aria-atomic","global":true},{"name":"aria-autocomplete","global":true},{"name":"aria-busy","global":true},{"name":"aria-checked","global":true},{"name":"aria-controls","global":true},{"name":"aria-current","global":true},{"name":"aria-describedby","global":true},{"name":"aria-disabled","global":true},{"name":"aria-dropeffect","global":true},{"name":"aria-expanded","global":true},{"name":"aria-flowto","global":true},{"name":"aria-grabbed","global":true},{"name":"aria-haspopup","global":true},{"name":"aria-hidden","global":true},{"name":"aria-invalid","global":true},{"name":"aria-label","global":true},{"name":"aria-labelledby","global":true},{"name":"aria-level","global":true},{"name":"aria-live","global":true},{"name":"aria-multiline","global":true},{"name":"aria-multiselectable","global":true},{"name":"aria-orientation","global":true},{"name":"aria-owns","global":true},{"name":"aria-posinset","global":true},{"name":"aria-pressed","global":true},{"name":"aria-readonly","global":true},{"name":"aria-relevant","global":true},{"name":"aria-required","global":true},{"name":"aria-selected","global":true},{"name":"aria-setsize","global":true},{"name":"aria-sort","global":true},{"name":"aria-valuemax","global":true},{"name":"aria-valuemin","global":true},{"name":"aria-valuenow","global":true},{"name":"aria-valuetext","global":true},{"name":"on","trigger":{"ifValueRegex":"tap:.*","alsoRequiresAttr":["role","tabindex"]},"global":true},{"name":"role","global":true},{"name":"placeholder","value":[""],"global":true},{"name":"fallback","value":[""],"global":true},{"name":"overflow","global":true},{"name":"amp-access","global":true},{"name":"amp-access-behavior","global":true},{"name":"amp-access-hide","global":true},{"name":"amp-access-id","global":true},{"name":"amp-access-loader","global":true},{"name":"amp-access-loading","global":true},{"name":"amp-access-off","global":true},{"name":"amp-access-on","global":true},{"name":"amp-access-show","global":true},{"name":"amp-access-style","global":true},{"name":"amp-access-template","global":true},{"name":"i-amp-access-id","global":true},{"name":"validation-for","trigger":{"alsoRequiresAttr":["visible-when-invalid"]},"global":true},{"name":"visible-when-invalid","value":["badInput","customError","patternMismatch","rangeOverflow","rangeUnderflow","stepMismatch","tooLong","tooShort","typeMismatch","valueMissing"],"trigger":{"alsoRequiresAttr":["validation-for"]},"global":true},{"name":"amp-fx","valueRegexCasei":"(fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)(\\s|fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)*","requiresExtension":["amp-fx-collection"],"global":true},{"name":"subscriptions-action","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-actions","value":[""],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-decorate","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-dialog","value":[""],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-display","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-lang","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-section","valueCasei":["actions","content","content-not-granted","loading"],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-service","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-google-rtc","requiresExtension":["amp-subscriptions-google"],"global":true},{"name":"next-page-hide","requiresExtension":["amp-next-page"],"global":true},{"name":"next-page-replace","requiresExtension":["amp-next-page"],"global":true},{"name":"[aria-activedescendant]","global":true},{"name":"[aria-atomic]","global":true},{"name":"[aria-autocomplete]","global":true},{"name":"[aria-busy]","global":true},{"name":"[aria-checked]","global":true},{"name":"[aria-controls]","global":true},{"name":"[aria-describedby]","global":true},{"name":"[aria-disabled]","global":true},{"name":"[aria-dropeffect]","global":true},{"name":"[aria-expanded]","global":true},{"name":"[aria-flowto]","global":true},{"name":"[aria-grabbed]","global":true},{"name":"[aria-haspopup]","global":true},{"name":"[aria-hidden]","global":true},{"name":"[aria-invalid]","global":true},{"name":"[aria-label]","global":true},{"name":"[aria-labelledby]","global":true},{"name":"[aria-level]","global":true},{"name":"[aria-live]","global":true},{"name":"[aria-multiline]","global":true},{"name":"[aria-multiselectable]","global":true},{"name":"[aria-orientation]","global":true},{"name":"[aria-owns]","global":true},{"name":"[aria-posinset]","global":true},{"name":"[aria-pressed]","global":true},{"name":"[aria-readonly]","global":true},{"name":"[aria-relevant]","global":true},{"name":"[aria-required]","global":true},{"name":"[aria-selected]","global":true},{"name":"[aria-setsize]","global":true},{"name":"[aria-sort]","global":true},{"name":"[aria-valuemax]","global":true},{"name":"[aria-valuemin]","global":true},{"name":"[aria-valuenow]","global":true},{"name":"[aria-valuetext]","global":true},{"name":"[class]","global":true},{"name":"[hidden]","global":true},{"name":"[text]","global":true},{"name":"i-amphtml-binding","value":[""],"enabledBy":["transformed"],"global":true},{"name":"autoscroll","requiresAncestor":{"marker":["AUTOSCROLL"]},"global":true}],"specUrl":"https://amp.dev/documentation/components/amp-ad/","htmlFormat":["AMP"]},{"tagName":"META","specName":"meta name=amp-consent-blocking","unique":true,"mandatoryParent":"HEAD","attrs":[{"name":"content","mandatory":true},{"name":"name","mandatory":true,"dispatchKey":"NAME_VALUE_DISPATCH","valueCasei":["amp-consent-blocking"]},{"name":"itemid","global":true},{"name":"itemprop","global":true},{"name":"itemref","global":true},{"name":"itemscope","global":true},{"name":"itemtype","global":true},{"name":"about","global":true},{"name":"content","global":true},{"name":"datatype","global":true},{"name":"inlist","global":true},{"name":"prefix","global":true},{"name":"property","global":true},{"name":"rel","disallowedValueRegex":"(^|\\s)(canonical|components|dns-prefetch|import|manifest|preconnect|preload|prerender|serviceworker|stylesheet|subresource)(\\s|$)","global":true},{"name":"resource","global":true},{"name":"rev","global":true},{"name":"style","valueDocCss":true,"global":true},{"name":"typeof","global":true},{"name":"vocab","global":true},{"name":"accesskey","global":true},{"name":"class","global":true},{"name":"dir","global":true},{"name":"draggable","global":true},{"name":"hidden","value":[""],"global":true},{"name":"id","disallowedValueRegex":"(^|\\s)(__amp_\\S*|__count__|__defineGetter__|__defineSetter__|__lookupGetter__|__lookupSetter__|__noSuchMethod__|__parent__|__proto__|__AMP_\\S*|\\$p|\\$proxy|acceptCharset|addEventListener|appendChild|assignedSlot|attachShadow|AMP|baseURI|checkValidity|childElementCount|childNodes|classList|className|clientHeight|clientLeft|clientTop|clientWidth|compareDocumentPosition|computedName|computedRole|contentEditable|createShadowRoot|enqueAction|firstChild|firstElementChild|getAnimations|getAttribute|getAttributeNS|getAttributeNode|getAttributeNodeNS|getBoundingClientRect|getClientRects|getDestinationInsertionPoints|getElementsByClassName|getElementsByTagName|getElementsByTagNameNS|getRootNode|hasAttribute|hasAttributeNS|hasAttributes|hasChildNodes|hasPointerCapture|i-amphtml-\\S*|innerHTML|innerText|inputMode|insertAdjacentElement|insertAdjacentHTML|insertAdjacentText|isContentEditable|isDefaultNamespace|isEqualNode|isSameNode|lastChild|lastElementChild|lookupNamespaceURI|namespaceURI|nextElementSibling|nextSibling|nodeName|nodeType|nodeValue|offsetHeight|offsetLeft|offsetParent|offsetTop|offsetWidth|outerHTML|outerText|ownerDocument|parentElement|parentNode|previousElementSibling|previousSibling|querySelector|querySelectorAll|releasePointerCapture|removeAttribute|removeAttributeNS|removeAttributeNode|removeChild|removeEventListener|replaceChild|reportValidity|requestPointerLock|scrollHeight|scrollIntoView|scrollIntoViewIfNeeded|scrollLeft|scrollWidth|setAttribute|setAttributeNS|setAttributeNode|setAttributeNodeNS|setPointerCapture|shadowRoot|styleMap|tabIndex|tagName|textContent|toString|valueOf|(webkit|ms|moz|o)dropzone|(webkit|moz|ms|o)MatchesSelector|(webkit|moz|ms|o)RequestFullScreen|(webkit|moz|ms|o)RequestFullscreen)(\\s|$)","global":true},{"name":"lang","global":true},{"name":"slot","global":true},{"name":"tabindex","global":true},{"name":"title","global":true},{"name":"translate","global":true},{"name":"aria-activedescendant","global":true},{"name":"aria-atomic","global":true},{"name":"aria-autocomplete","global":true},{"name":"aria-busy","global":true},{"name":"aria-checked","global":true},{"name":"aria-controls","global":true},{"name":"aria-current","global":true},{"name":"aria-describedby","global":true},{"name":"aria-disabled","global":true},{"name":"aria-dropeffect","global":true},{"name":"aria-expanded","global":true},{"name":"aria-flowto","global":true},{"name":"aria-grabbed","global":true},{"name":"aria-haspopup","global":true},{"name":"aria-hidden","global":true},{"name":"aria-invalid","global":true},{"name":"aria-label","global":true},{"name":"aria-labelledby","global":true},{"name":"aria-level","global":true},{"name":"aria-live","global":true},{"name":"aria-multiline","global":true},{"name":"aria-multiselectable","global":true},{"name":"aria-orientation","global":true},{"name":"aria-owns","global":true},{"name":"aria-posinset","global":true},{"name":"aria-pressed","global":true},{"name":"aria-readonly","global":true},{"name":"aria-relevant","global":true},{"name":"aria-required","global":true},{"name":"aria-selected","global":true},{"name":"aria-setsize","global":true},{"name":"aria-sort","global":true},{"name":"aria-valuemax","global":true},{"name":"aria-valuemin","global":true},{"name":"aria-valuenow","global":true},{"name":"aria-valuetext","global":true},{"name":"on","trigger":{"ifValueRegex":"tap:.*","alsoRequiresAttr":["role","tabindex"]},"global":true},{"name":"role","global":true},{"name":"placeholder","value":[""],"global":true},{"name":"fallback","value":[""],"global":true},{"name":"overflow","global":true},{"name":"amp-access","global":true},{"name":"amp-access-behavior","global":true},{"name":"amp-access-hide","global":true},{"name":"amp-access-id","global":true},{"name":"amp-access-loader","global":true},{"name":"amp-access-loading","global":true},{"name":"amp-access-off","global":true},{"name":"amp-access-on","global":true},{"name":"amp-access-show","global":true},{"name":"amp-access-style","global":true},{"name":"amp-access-template","global":true},{"name":"i-amp-access-id","global":true},{"name":"validation-for","trigger":{"alsoRequiresAttr":["visible-when-invalid"]},"global":true},{"name":"visible-when-invalid","value":["badInput","customError","patternMismatch","rangeOverflow","rangeUnderflow","stepMismatch","tooLong","tooShort","typeMismatch","valueMissing"],"trigger":{"alsoRequiresAttr":["validation-for"]},"global":true},{"name":"amp-fx","valueRegexCasei":"(fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)(\\s|fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)*","requiresExtension":["amp-fx-collection"],"global":true},{"name":"subscriptions-action","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-actions","value":[""],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-decorate","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-dialog","value":[""],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-display","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-lang","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-section","valueCasei":["actions","content","content-not-granted","loading"],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-service","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-google-rtc","requiresExtension":["amp-subscriptions-google"],"global":true},{"name":"next-page-hide","requiresExtension":["amp-next-page"],"global":true},{"name":"next-page-replace","requiresExtension":["amp-next-page"],"global":true},{"name":"[aria-activedescendant]","global":true},{"name":"[aria-atomic]","global":true},{"name":"[aria-autocomplete]","global":true},{"name":"[aria-busy]","global":true},{"name":"[aria-checked]","global":true},{"name":"[aria-controls]","global":true},{"name":"[aria-describedby]","global":true},{"name":"[aria-disabled]","global":true},{"name":"[aria-dropeffect]","global":true},{"name":"[aria-expanded]","global":true},{"name":"[aria-flowto]","global":true},{"name":"[aria-grabbed]","global":true},{"name":"[aria-haspopup]","global":true},{"name":"[aria-hidden]","global":true},{"name":"[aria-invalid]","global":true},{"name":"[aria-label]","global":true},{"name":"[aria-labelledby]","global":true},{"name":"[aria-level]","global":true},{"name":"[aria-live]","global":true},{"name":"[aria-multiline]","global":true},{"name":"[aria-multiselectable]","global":true},{"name":"[aria-orientation]","global":true},{"name":"[aria-owns]","global":true},{"name":"[aria-posinset]","global":true},{"name":"[aria-pressed]","global":true},{"name":"[aria-readonly]","global":true},{"name":"[aria-relevant]","global":true},{"name":"[aria-required]","global":true},{"name":"[aria-selected]","global":true},{"name":"[aria-setsize]","global":true},{"name":"[aria-sort]","global":true},{"name":"[aria-valuemax]","global":true},{"name":"[aria-valuemin]","global":true},{"name":"[aria-valuenow]","global":true},{"name":"[aria-valuetext]","global":true},{"name":"[class]","global":true},{"name":"[hidden]","global":true},{"name":"[text]","global":true},{"name":"i-amphtml-binding","value":[""],"enabledBy":["transformed"],"global":true},{"name":"autoscroll","requiresAncestor":{"marker":["AUTOSCROLL"]},"global":true}],"htmlFormat":["AMP"],"satisfies":["meta name=amp-consent-blocking"]},{"tagName":"META","specName":"meta name=amp-experiment-token","mandatoryParent":"HEAD","attrs":[{"name":"content","mandatory":true},{"name":"name","mandatory":true,"dispatchKey":"NAME_VALUE_DISPATCH","valueCasei":["amp-experiment-token"]},{"name":"itemid","global":true},{"name":"itemprop","global":true},{"name":"itemref","global":true},{"name":"itemscope","global":true},{"name":"itemtype","global":true},{"name":"about","global":true},{"name":"content","global":true},{"name":"datatype","global":true},{"name":"inlist","global":true},{"name":"prefix","global":true},{"name":"property","global":true},{"name":"rel","disallowedValueRegex":"(^|\\s)(canonical|components|dns-prefetch|import|manifest|preconnect|preload|prerender|serviceworker|stylesheet|subresource)(\\s|$)","global":true},{"name":"resource","global":true},{"name":"rev","global":true},{"name":"style","valueDocCss":true,"global":true},{"name":"typeof","global":true},{"name":"vocab","global":true},{"name":"accesskey","global":true},{"name":"class","global":true},{"name":"dir","global":true},{"name":"draggable","global":true},{"name":"hidden","value":[""],"global":true},{"name":"id","disallowedValueRegex":"(^|\\s)(__amp_\\S*|__count__|__defineGetter__|__defineSetter__|__lookupGetter__|__lookupSetter__|__noSuchMethod__|__parent__|__proto__|__AMP_\\S*|\\$p|\\$proxy|acceptCharset|addEventListener|appendChild|assignedSlot|attachShadow|AMP|baseURI|checkValidity|childElementCount|childNodes|classList|className|clientHeight|clientLeft|clientTop|clientWidth|compareDocumentPosition|computedName|computedRole|contentEditable|createShadowRoot|enqueAction|firstChild|firstElementChild|getAnimations|getAttribute|getAttributeNS|getAttributeNode|getAttributeNodeNS|getBoundingClientRect|getClientRects|getDestinationInsertionPoints|getElementsByClassName|getElementsByTagName|getElementsByTagNameNS|getRootNode|hasAttribute|hasAttributeNS|hasAttributes|hasChildNodes|hasPointerCapture|i-amphtml-\\S*|innerHTML|innerText|inputMode|insertAdjacentElement|insertAdjacentHTML|insertAdjacentText|isContentEditable|isDefaultNamespace|isEqualNode|isSameNode|lastChild|lastElementChild|lookupNamespaceURI|namespaceURI|nextElementSibling|nextSibling|nodeName|nodeType|nodeValue|offsetHeight|offsetLeft|offsetParent|offsetTop|offsetWidth|outerHTML|outerText|ownerDocument|parentElement|parentNode|previousElementSibling|previousSibling|querySelector|querySelectorAll|releasePointerCapture|removeAttribute|removeAttributeNS|removeAttributeNode|removeChild|removeEventListener|replaceChild|reportValidity|requestPointerLock|scrollHeight|scrollIntoView|scrollIntoViewIfNeeded|scrollLeft|scrollWidth|setAttribute|setAttributeNS|setAttributeNode|setAttributeNodeNS|setPointerCapture|shadowRoot|styleMap|tabIndex|tagName|textContent|toString|valueOf|(webkit|ms|moz|o)dropzone|(webkit|moz|ms|o)MatchesSelector|(webkit|moz|ms|o)RequestFullScreen|(webkit|moz|ms|o)RequestFullscreen)(\\s|$)","global":true},{"name":"lang","global":true},{"name":"slot","global":true},{"name":"tabindex","global":true},{"name":"title","global":true},{"name":"translate","global":true},{"name":"aria-activedescendant","global":true},{"name":"aria-atomic","global":true},{"name":"aria-autocomplete","global":true},{"name":"aria-busy","global":true},{"name":"aria-checked","global":true},{"name":"aria-controls","global":true},{"name":"aria-current","global":true},{"name":"aria-describedby","global":true},{"name":"aria-disabled","global":true},{"name":"aria-dropeffect","global":true},{"name":"aria-expanded","global":true},{"name":"aria-flowto","global":true},{"name":"aria-grabbed","global":true},{"name":"aria-haspopup","global":true},{"name":"aria-hidden","global":true},{"name":"aria-invalid","global":true},{"name":"aria-label","global":true},{"name":"aria-labelledby","global":true},{"name":"aria-level","global":true},{"name":"aria-live","global":true},{"name":"aria-multiline","global":true},{"name":"aria-multiselectable","global":true},{"name":"aria-orientation","global":true},{"name":"aria-owns","global":true},{"name":"aria-posinset","global":true},{"name":"aria-pressed","global":true},{"name":"aria-readonly","global":true},{"name":"aria-relevant","global":true},{"name":"aria-required","global":true},{"name":"aria-selected","global":true},{"name":"aria-setsize","global":true},{"name":"aria-sort","global":true},{"name":"aria-valuemax","global":true},{"name":"aria-valuemin","global":true},{"name":"aria-valuenow","global":true},{"name":"aria-valuetext","global":true},{"name":"on","trigger":{"ifValueRegex":"tap:.*","alsoRequiresAttr":["role","tabindex"]},"global":true},{"name":"role","global":true},{"name":"placeholder","value":[""],"global":true},{"name":"fallback","value":[""],"global":true},{"name":"overflow","global":true},{"name":"amp-access","global":true},{"name":"amp-access-behavior","global":true},{"name":"amp-access-hide","global":true},{"name":"amp-access-id","global":true},{"name":"amp-access-loader","global":true},{"name":"amp-access-loading","global":true},{"name":"amp-access-off","global":true},{"name":"amp-access-on","global":true},{"name":"amp-access-show","global":true},{"name":"amp-access-style","global":true},{"name":"amp-access-template","global":true},{"name":"i-amp-access-id","global":true},{"name":"validation-for","trigger":{"alsoRequiresAttr":["visible-when-invalid"]},"global":true},{"name":"visible-when-invalid","value":["badInput","customError","patternMismatch","rangeOverflow","rangeUnderflow","stepMismatch","tooLong","tooShort","typeMismatch","valueMissing"],"trigger":{"alsoRequiresAttr":["validation-for"]},"global":true},{"name":"amp-fx","valueRegexCasei":"(fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)(\\s|fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)*","requiresExtension":["amp-fx-collection"],"global":true},{"name":"subscriptions-action","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-actions","value":[""],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-decorate","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-dialog","value":[""],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-display","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-lang","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-section","valueCasei":["actions","content","content-not-granted","loading"],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-service","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-google-rtc","requiresExtension":["amp-subscriptions-google"],"global":true},{"name":"next-page-hide","requiresExtension":["amp-next-page"],"global":true},{"name":"next-page-replace","requiresExtension":["amp-next-page"],"global":true},{"name":"[aria-activedescendant]","global":true},{"name":"[aria-atomic]","global":true},{"name":"[aria-autocomplete]","global":true},{"name":"[aria-busy]","global":true},{"name":"[aria-checked]","global":true},{"name":"[aria-controls]","global":true},{"name":"[aria-describedby]","global":true},{"name":"[aria-disabled]","global":true},{"name":"[aria-dropeffect]","global":true},{"name":"[aria-expanded]","global":true},{"name":"[aria-flowto]","global":true},{"name":"[aria-grabbed]","global":true},{"name":"[aria-haspopup]","global":true},{"name":"[aria-hidden]","global":true},{"name":"[aria-invalid]","global":true},{"name":"[aria-label]","global":true},{"name":"[aria-labelledby]","global":true},{"name":"[aria-level]","global":true},{"name":"[aria-live]","global":true},{"name":"[aria-multiline]","global":true},{"name":"[aria-multiselectable]","global":true},{"name":"[aria-orientation]","global":true},{"name":"[aria-owns]","global":true},{"name":"[aria-posinset]","global":true},{"name":"[aria-pressed]","global":true},{"name":"[aria-readonly]","global":true},{"name":"[aria-relevant]","global":true},{"name":"[aria-required]","global":true},{"name":"[aria-selected]","global":true},{"name":"[aria-setsize]","global":true},{"name":"[aria-sort]","global":true},{"name":"[aria-valuemax]","global":true},{"name":"[aria-valuemin]","global":true},{"name":"[aria-valuenow]","global":true},{"name":"[aria-valuetext]","global":true},{"name":"[class]","global":true},{"name":"[hidden]","global":true},{"name":"[text]","global":true},{"name":"i-amphtml-binding","value":[""],"enabledBy":["transformed"],"global":true},{"name":"autoscroll","requiresAncestor":{"marker":["AUTOSCROLL"]},"global":true}],"htmlFormat":["AMP"]},{"tagName":"META","specName":"meta name=amp-link-variable-allowed-origin","mandatoryParent":"HEAD","attrs":[{"name":"content","mandatory":true},{"name":"name","mandatory":true,"dispatchKey":"NAME_VALUE_DISPATCH","valueCasei":["amp-link-variable-allowed-origin"]},{"name":"itemid","global":true},{"name":"itemprop","global":true},{"name":"itemref","global":true},{"name":"itemscope","global":true},{"name":"itemtype","global":true},{"name":"about","global":true},{"name":"content","global":true},{"name":"datatype","global":true},{"name":"inlist","global":true},{"name":"prefix","global":true},{"name":"property","global":true},{"name":"rel","disallowedValueRegex":"(^|\\s)(canonical|components|dns-prefetch|import|manifest|preconnect|preload|prerender|serviceworker|stylesheet|subresource)(\\s|$)","global":true},{"name":"resource","global":true},{"name":"rev","global":true},{"name":"style","valueDocCss":true,"global":true},{"name":"typeof","global":true},{"name":"vocab","global":true},{"name":"accesskey","global":true},{"name":"class","global":true},{"name":"dir","global":true},{"name":"draggable","global":true},{"name":"hidden","value":[""],"global":true},{"name":"id","disallowedValueRegex":"(^|\\s)(__amp_\\S*|__count__|__defineGetter__|__defineSetter__|__lookupGetter__|__lookupSetter__|__noSuchMethod__|__parent__|__proto__|__AMP_\\S*|\\$p|\\$proxy|acceptCharset|addEventListener|appendChild|assignedSlot|attachShadow|AMP|baseURI|checkValidity|childElementCount|childNodes|classList|className|clientHeight|clientLeft|clientTop|clientWidth|compareDocumentPosition|computedName|computedRole|contentEditable|createShadowRoot|enqueAction|firstChild|firstElementChild|getAnimations|getAttribute|getAttributeNS|getAttributeNode|getAttributeNodeNS|getBoundingClientRect|getClientRects|getDestinationInsertionPoints|getElementsByClassName|getElementsByTagName|getElementsByTagNameNS|getRootNode|hasAttribute|hasAttributeNS|hasAttributes|hasChildNodes|hasPointerCapture|i-amphtml-\\S*|innerHTML|innerText|inputMode|insertAdjacentElement|insertAdjacentHTML|insertAdjacentText|isContentEditable|isDefaultNamespace|isEqualNode|isSameNode|lastChild|lastElementChild|lookupNamespaceURI|namespaceURI|nextElementSibling|nextSibling|nodeName|nodeType|nodeValue|offsetHeight|offsetLeft|offsetParent|offsetTop|offsetWidth|outerHTML|outerText|ownerDocument|parentElement|parentNode|previousElementSibling|previousSibling|querySelector|querySelectorAll|releasePointerCapture|removeAttribute|removeAttributeNS|removeAttributeNode|removeChild|removeEventListener|replaceChild|reportValidity|requestPointerLock|scrollHeight|scrollIntoView|scrollIntoViewIfNeeded|scrollLeft|scrollWidth|setAttribute|setAttributeNS|setAttributeNode|setAttributeNodeNS|setPointerCapture|shadowRoot|styleMap|tabIndex|tagName|textContent|toString|valueOf|(webkit|ms|moz|o)dropzone|(webkit|moz|ms|o)MatchesSelector|(webkit|moz|ms|o)RequestFullScreen|(webkit|moz|ms|o)RequestFullscreen)(\\s|$)","global":true},{"name":"lang","global":true},{"name":"slot","global":true},{"name":"tabindex","global":true},{"name":"title","global":true},{"name":"translate","global":true},{"name":"aria-activedescendant","global":true},{"name":"aria-atomic","global":true},{"name":"aria-autocomplete","global":true},{"name":"aria-busy","global":true},{"name":"aria-checked","global":true},{"name":"aria-controls","global":true},{"name":"aria-current","global":true},{"name":"aria-describedby","global":true},{"name":"aria-disabled","global":true},{"name":"aria-dropeffect","global":true},{"name":"aria-expanded","global":true},{"name":"aria-flowto","global":true},{"name":"aria-grabbed","global":true},{"name":"aria-haspopup","global":true},{"name":"aria-hidden","global":true},{"name":"aria-invalid","global":true},{"name":"aria-label","global":true},{"name":"aria-labelledby","global":true},{"name":"aria-level","global":true},{"name":"aria-live","global":true},{"name":"aria-multiline","global":true},{"name":"aria-multiselectable","global":true},{"name":"aria-orientation","global":true},{"name":"aria-owns","global":true},{"name":"aria-posinset","global":true},{"name":"aria-pressed","global":true},{"name":"aria-readonly","global":true},{"name":"aria-relevant","global":true},{"name":"aria-required","global":true},{"name":"aria-selected","global":true},{"name":"aria-setsize","global":true},{"name":"aria-sort","global":true},{"name":"aria-valuemax","global":true},{"name":"aria-valuemin","global":true},{"name":"aria-valuenow","global":true},{"name":"aria-valuetext","global":true},{"name":"on","trigger":{"ifValueRegex":"tap:.*","alsoRequiresAttr":["role","tabindex"]},"global":true},{"name":"role","global":true},{"name":"placeholder","value":[""],"global":true},{"name":"fallback","value":[""],"global":true},{"name":"overflow","global":true},{"name":"amp-access","global":true},{"name":"amp-access-behavior","global":true},{"name":"amp-access-hide","global":true},{"name":"amp-access-id","global":true},{"name":"amp-access-loader","global":true},{"name":"amp-access-loading","global":true},{"name":"amp-access-off","global":true},{"name":"amp-access-on","global":true},{"name":"amp-access-show","global":true},{"name":"amp-access-style","global":true},{"name":"amp-access-template","global":true},{"name":"i-amp-access-id","global":true},{"name":"validation-for","trigger":{"alsoRequiresAttr":["visible-when-invalid"]},"global":true},{"name":"visible-when-invalid","value":["badInput","customError","patternMismatch","rangeOverflow","rangeUnderflow","stepMismatch","tooLong","tooShort","typeMismatch","valueMissing"],"trigger":{"alsoRequiresAttr":["validation-for"]},"global":true},{"name":"amp-fx","valueRegexCasei":"(fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)(\\s|fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)*","requiresExtension":["amp-fx-collection"],"global":true},{"name":"subscriptions-action","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-actions","value":[""],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-decorate","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-dialog","value":[""],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-display","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-lang","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-section","valueCasei":["actions","content","content-not-granted","loading"],"requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-service","requiresExtension":["amp-subscriptions"],"global":true},{"name":"subscriptions-google-rtc","requiresExtension":["amp-subscriptions-google"],"global":true},{"name":"next-page-hide","requiresExtension":["amp-next-page"],"global":true},{"name":"next-page-replace","requiresExtension":["amp-next-page"],"global":true},{"name":"[aria-activedescendant]","global":true},{"name":"[aria-atomic]","global":true},{"name":"[aria-autocomplete]","global":true},{"name":"[aria-busy]","global":true},{"name":"[aria-checked]","global":true},{"name":"[aria-controls]","global":true},{"name":"[aria-describedby]","global":true},{"name":"[aria-disabled]","global":true},{"name":"[aria-dropeffect]","global":true},{"name":"[aria-expanded]","global":true},{"name":"[aria-flowto]","global":true},{"name":"[aria-grabbed]","global":true},{"name":"[aria-haspopup]","global":true},{"name":"[aria-hidden]","global":true},{"name":"[aria-invalid]","global":true},{"name":"[aria-label]","global":true},{"name":"[aria-labelledby]","global":true},{"name":"[aria-level]","global":true},{"name":"[aria-live]","global":true},{"name":"[aria-multiline]","global":true},{"name":"[aria-multiselectable]","global":true},{"name":"[aria-orientation]","global":true},{"name":"[aria-owns]","global":true},{"name":"[aria-posinset]","global":true},{"name":"[aria-pressed]","global":true},{"name":"[aria-readonly]","global":true},{"name":"[aria-relevant]","global":true},{"name":"[aria-required]","global":true},{"name":"[aria-selected]","global":true},{"name":"[aria-setsize]","global":true},{"name":"[aria-sort]","global":true},{"name":"[aria-valuemax]","global":true},{"name":"[aria-valuemin]","global":true},{"name":"[aria-valuenow]","global":true},{"name":"[aria-valuetext]","global":true},{"name":"[class]","global":true},{"name":"[hidden]","global":true},{"name":"[text]","global":true},{"name":"i-amphtml-binding","value":[""],"enabledBy":["transformed"],"global":true},{"name":"autoscroll","requiresAncestor":{"marker":["AUTOSCROLL"]},"global":true}],"htmlFormat":["AMP"]},{"tagName":"META","specName":"meta name=amp-google-clientid-id-api","mandatoryParent":"HEAD","attrs":[{"name":"content","mandatory":true},{"name":"name","mandatory":true,"dispatchKey":"NAME_VALUE_DISPATCH","valueCasei":["amp-google-client-id-api"]},{"name":"itemid","global":true},{"name":"itemprop","global":true},{"name":"itemref","global":true},{"name":"itemscope","global":true},{"name":"itemtype","global":true},{"name":"about","global":true},{"name":"content","global":true},{"name":"datatype","global":true},{"name":"inlist","global":true},{"name":"prefix","global":true},{"name":"property","global":true},{"name":"rel","disallowedValueRegex":"(^|\\s)(canonical|components|dns-prefetch|import|manifest|preconnect|preload|prerender|serviceworker|stylesheet|subresource)(\\s|$)","global":true},{"name":"resource","global":true},{"name":"rev","global":true},{"name":"style","valueDocCss":true,"global":true},{"name":"typeof","global":true},{"name":"vocab","global":true},{"name":"accesskey","global":true},{"name":"class","global":true},{"name":"dir","global":true},{"name":"draggable","global":true},{"name":"hidden","value":[""],"global":true},{"name":"id","disallowedValueRegex":"(^|\\s)(__amp_\\S*|__count__|__defineGetter__|__defineSetter__|__lookupGetter__|__lookupSetter__|__noSuchMethod__|__parent__|__proto__|__AMP_\\S*|\\$p|\\$proxy|acceptCharset|addEventListener|appendChild|assignedSlot|attachShadow|AMP|baseURI|checkValidity|childElementCount|childNodes|classList|className|clientHeight|clientLeft|clientTop|clientWidth|compareDocumentPosition|computedName|computedRole|contentEditable|createShadowRoot|enqueAction|firstChild|firstElementChild|getAnimations|getAttribute|getAttributeNS|getAttributeNode|getAttributeNodeNS|getBoundingClientRect|getClientRects|getDestinationInsertionPoints|getElementsByClassName|getElementsByTagName|getElementsByTagNameNS|getRootNode|hasAttribute|hasAttributeNS|hasAttributes|hasChildNodes|hasPointerCapture|i-amphtml-\\S*|innerHTML|innerText|inputMode|insertAdjacentElement|insertAdjacentHTML|insertAdjacentText|isContentEditable|isDefaultNamespace|isEqualNode|isSameNode|lastChild|lastElementChild|lookupNamespaceURI|namespaceURI|nextElementSibling|nextSibling|nodeName|nodeType|nodeValue|offsetHeight|offsetLeft|offsetParent|offsetTop|offsetWidth|outerHTML|outerText|ownerDocument|parentElement|parentNode|previousElementSibling|previousSibling|querySelector|querySelectorAll|releasePointerCapture|removeAttribute|removeAttributeNS|removeAttributeNode|removeChild|removeEventListener|replaceChild|reportValidity|requestPointerLock|scrollHeight|scrollIntoView|scrollIntoViewIfNeeded|scrollLeft|scrollWidth|setAttribute|setAttributeNS|setAttributeNode|setAttributeNodeNS|setPointerCapture|shadowRoot|styleMap|tabIndex|tagName|textContent|toString|valueOf|(webkit|ms|moz|o)dropzone|(webkit|moz|ms|o)MatchesSelector|(webkit|moz|ms|o)RequestFullScreen|(webkit|moz|ms|o)RequestFullscreen)(\\s|$)","global":true},{"name":"lang","global":true},{"name":"slot","global":true},{"name":"tabindex","global":true},{"name":"title","global":true},{"name":"translate","global":true},{"name":"aria-activedescendant","global":true},{"name":"aria-atomic","global":true},{"name":"aria-autocomplete","global":true},{"name":"aria-busy","global":true},{"name":"aria-checked","global":true},{"name":"aria-controls","global":true},{"name":"aria-current","global":true},{"name":"aria-describedby","global":true},{"name":"aria-disabled","global":true},{"name":"aria-dropeffect","global":true},{"name":"aria-expanded","global":true},{"name":"aria-flowto","global":true},{"name":"aria-grabbed","global":true},{"name":"aria-haspopup","global":true},{"name":"aria-hidden","global":true},{"name":"aria-invalid","global":true},{"name":"aria-label","global":true},{"name":"aria-labelledby","global":true},{"name":"aria-level","global":true},{"name":"aria-live","global":true},{"name":"aria-multiline","global":true},{"name":"aria-multiselectable","global":true},{"name":"aria-orientation","global":true},{"name":"aria-owns","global":true},{"name":"aria-posinset","global":true},{"name":"aria-pressed","global":true},{"name":"aria-readonly","global":true},{"name":"aria-relevant","global":true},{"name":"aria-required","global":true},{"name":"aria-selected","global":true},{"name":"aria-setsize","global":true},{"name":"aria-sort","global":true},{"name":"aria-valuemax","global":true},{"name":"aria-valuemin","global":true},{"name":"aria-valuenow","global":true},{"name":"aria-valuetext","global":true},{"name":"on","trigger":{"ifValueRegex":"tap:.*","alsoRequiresAttr":["role","tabindex"]},"global":true},{"name":"role","global":true},{"name":"placeholder","value":[""],"global":true},{"name":"fallback","value":[""],"global":true},{"name":"overflow","global":true},{"name":"amp-access","global":true},{"name":"amp-access-behavior","global":true},{"name":"amp-access-hide","global":true},{"name":"amp-access-id","global":true},{"name":"amp-access-loader","global":true},{"name":"amp-access-loading","global":true},{"name":"amp-access-off","global":true},{"name":"amp-access-on","global":true},{"name":"amp-access-show","global":true},{"name":"amp-access-style","global":true},{"name":"amp-access-template","global":true},{"name":"i-amp-access-id","global":true},{"name":"validation-for","trigger":{"alsoRequiresAttr":["visible-when-invalid"]},"global":true},{"name":"visible-when-invalid","value":["badInput","customError","patternMismatch","rangeOverflow","rang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment