Page Not Found
We could not find what you were looking for.
Please contact the owner of the site that linked you to the original URL and let them know their link is broken.
diff --git a/4/docu.png b/4/docu.png new file mode 100644 index 0000000000..f458149e3c Binary files /dev/null and b/4/docu.png differ diff --git a/4/图片.png b/4/图片.png new file mode 100644 index 0000000000..2e4d675f90 Binary files /dev/null and b/4/图片.png differ diff --git a/404.html b/404.html deleted file mode 100644 index b8fa1eaacf..0000000000 --- a/404.html +++ /dev/null @@ -1,17 +0,0 @@ - - -
- - -We could not find what you were looking for.
Please contact the owner of the site that linked you to the original URL and let them know their link is broken.
["'])(?.*?)\1/;const metastringLinesRangeRegex=/\{(? [\d,-]+)\}/;// Supported types of highlight comments -const popularCommentPatterns={js:{start:'\\/\\/',end:''},jsBlock:{start:'\\/\\*',end:'\\*\\/'},jsx:{start:'\\{\\s*\\/\\*',end:'\\*\\/\\s*\\}'},bash:{start:'#',end:''},html:{start:''}};const commentPatterns={...popularCommentPatterns,// shallow copy is sufficient -// minor comment styles -lua:{start:'--',end:''},wasm:{start:'\\;\\;',end:''},tex:{start:'%',end:''},vb:{start:"['‘’]",end:''},vbnet:{start:"(?:_\\s*)?['‘’]",end:''},// Visual Studio 2019 or later -rem:{start:'[Rr][Ee][Mm]\\b',end:''},f90:{start:'!',end:''},// Free format only -ml:{start:'\\(\\*',end:'\\*\\)'},cobol:{start:'\\*>',end:''}// Free format only -};const popularCommentTypes=Object.keys(popularCommentPatterns);function getCommentPattern(languages,magicCommentDirectives){// To be more reliable, the opening and closing comment must match -const commentPattern=languages.map(lang=>{const{start,end}=commentPatterns[lang];return`(?:${start}\\s*(${magicCommentDirectives.flatMap(d=>[d.line,d.block?.start,d.block?.end].filter(Boolean)).join('|')})\\s*${end})`;}).join('|');// White space is allowed, but otherwise it should be on it's own line -return new RegExp(`^\\s*(?:${commentPattern})\\s*$`);}/** - * Select comment styles based on language - */function getAllMagicCommentDirectiveStyles(lang,magicCommentDirectives){switch(lang){case'js':case'javascript':case'ts':case'typescript':return getCommentPattern(['js','jsBlock'],magicCommentDirectives);case'jsx':case'tsx':return getCommentPattern(['js','jsBlock','jsx'],magicCommentDirectives);case'html':return getCommentPattern(['js','jsBlock','html'],magicCommentDirectives);case'python':case'py':case'bash':return getCommentPattern(['bash'],magicCommentDirectives);case'markdown':case'md':// Text uses HTML, front matter uses bash -return getCommentPattern(['html','jsx','bash'],magicCommentDirectives);case'tex':case'latex':case'matlab':return getCommentPattern(['tex'],magicCommentDirectives);case'lua':case'haskell':return getCommentPattern(['lua'],magicCommentDirectives);case'sql':return getCommentPattern(['lua','jsBlock'],magicCommentDirectives);case'wasm':return getCommentPattern(['wasm'],magicCommentDirectives);case'vb':case'vba':case'visual-basic':return getCommentPattern(['vb','rem'],magicCommentDirectives);case'vbnet':return getCommentPattern(['vbnet','rem'],magicCommentDirectives);case'batch':return getCommentPattern(['rem'],magicCommentDirectives);case'basic':// https://github.com/PrismJS/prism/blob/master/components/prism-basic.js#L3 -return getCommentPattern(['rem','f90'],magicCommentDirectives);case'fsharp':return getCommentPattern(['js','ml'],magicCommentDirectives);case'ocaml':case'sml':return getCommentPattern(['ml'],magicCommentDirectives);case'fortran':return getCommentPattern(['f90'],magicCommentDirectives);case'cobol':return getCommentPattern(['cobol'],magicCommentDirectives);default:// All popular comment types -return getCommentPattern(popularCommentTypes,magicCommentDirectives);}}function parseCodeBlockTitle(metastring){return metastring?.match(codeBlockTitleRegex)?.groups.title??'';}function getMetaLineNumbersStart(metastring){const showLineNumbersMeta=metastring?.split(' ').find(str=>str.startsWith('showLineNumbers'));if(showLineNumbersMeta){if(showLineNumbersMeta.startsWith('showLineNumbers=')){const value=showLineNumbersMeta.replace('showLineNumbers=','');return parseInt(value,10);}return 1;}return undefined;}function getLineNumbersStart({showLineNumbers,metastring}){const defaultStart=1;if(typeof showLineNumbers==='boolean'){return showLineNumbers?defaultStart:undefined;}if(typeof showLineNumbers==='number'){return showLineNumbers;}return getMetaLineNumbersStart(metastring);}/** - * Gets the language name from the class name (set by MDX). - * e.g. `"language-javascript"` => `"javascript"`. - * Returns undefined if there is no language class name. - */function parseLanguage(className){const languageClassName=className.split(' ').find(str=>str.startsWith('language-'));return languageClassName?.replace(/language-/,'');}/** - * Parses the code content, strips away any magic comments, and returns the - * clean content and the highlighted lines marked by the comments or metastring. - * - * If the metastring contains a range, the `content` will be returned as-is - * without any parsing. The returned `lineClassNames` will be a map from that - * number range to the first magic comment config entry (which _should_ be for - * line highlight directives.) - * - * @param content The raw code with magic comments. Trailing newline will be - * trimmed upfront. - * @param options Options for parsing behavior. - */function parseLines(content,options){let code=content.replace(/\n$/,'');const{language,magicComments,metastring}=options;// Highlighted lines specified in props: don't parse the content -if(metastring&&metastringLinesRangeRegex.test(metastring)){const linesRange=metastring.match(metastringLinesRangeRegex).groups.range;if(magicComments.length===0){throw new Error(`A highlight range has been given in code block's metastring (\`\`\` ${metastring}), but no magic comment config is available. Docusaurus applies the first magic comment entry's className for metastring ranges.`);}const metastringRangeClassName=magicComments[0].className;const lines=parse_numeric_range_default()(linesRange).filter(n=>n>0).map(n=>[n-1,[metastringRangeClassName]]);return{lineClassNames:Object.fromEntries(lines),code};}if(language===undefined){return{lineClassNames:{},code};}const directiveRegex=getAllMagicCommentDirectiveStyles(language,magicComments);// Go through line by line -const lines=code.split('\n');const blocks=Object.fromEntries(magicComments.map(d=>[d.className,{start:0,range:''}]));const lineToClassName=Object.fromEntries(magicComments.filter(d=>d.line).map(({className,line})=>[line,className]));const blockStartToClassName=Object.fromEntries(magicComments.filter(d=>d.block).map(({className,block})=>[block.start,className]));const blockEndToClassName=Object.fromEntries(magicComments.filter(d=>d.block).map(({className,block})=>[block.end,className]));for(let lineNumber=0;lineNumber item!==undefined);if(lineToClassName[directive]){blocks[lineToClassName[directive]].range+=`${lineNumber},`;}else if(blockStartToClassName[directive]){blocks[blockStartToClassName[directive]].start=lineNumber;}else if(blockEndToClassName[directive]){blocks[blockEndToClassName[directive]].range+=`${blocks[blockEndToClassName[directive]].start}-${lineNumber-1},`;}lines.splice(lineNumber,1);}code=lines.join('\n');const lineClassNames={};Object.entries(blocks).forEach(([className,{range}])=>{parse_numeric_range_default()(range).forEach(l=>{lineClassNames[l]??=[];lineClassNames[l].push(className);});});return{lineClassNames,code};}function getPrismCssVariables(prismTheme){const mapping={color:'--prism-color',backgroundColor:'--prism-background-color'};const properties={};Object.entries(prismTheme.plain).forEach(([key,value])=>{const varName=mapping[key];if(varName&&typeof value==='string'){properties[varName]=value;}});return properties;} -// EXTERNAL MODULE: ../packages/docusaurus-theme-classic/lib/theme/CodeBlock/Container/styles.module.css -var styles_module = __webpack_require__(4197); -var styles_module_default = /*#__PURE__*/__webpack_require__.n(styles_module); -// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js -var jsx_runtime = __webpack_require__(4848); -;// ../packages/docusaurus-theme-classic/lib/theme/CodeBlock/Container/index.js -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function CodeBlockContainer({as:As,...props}){const prismTheme=usePrismTheme();const prismCssVariables=getPrismCssVariables(prismTheme);return/*#__PURE__*/(0,jsx_runtime.jsx)(As// Polymorphic components are hard to type, without `oneOf` generics -,{...props,style:prismCssVariables,className:(0,clsx/* default */.A)(props.className,(styles_module_default()).codeBlockContainer,ThemeClassNames/* ThemeClassNames */.G.common.codeBlock)});} -// EXTERNAL MODULE: ../packages/docusaurus-theme-classic/lib/theme/CodeBlock/Content/styles.module.css -var Content_styles_module = __webpack_require__(4799); -var Content_styles_module_default = /*#__PURE__*/__webpack_require__.n(Content_styles_module); -;// ../packages/docusaurus-theme-classic/lib/theme/CodeBlock/Content/Element.js -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */// tags in markdown map to CodeBlocks. They may contain JSX children. When -// the children is not a simple string, we just return a styled block without -// actually highlighting. -function CodeBlockJSX({children,className}){return/*#__PURE__*/(0,jsx_runtime.jsx)(CodeBlockContainer,{as:"pre",tabIndex:0,className:(0,clsx/* default */.A)((Content_styles_module_default()).codeBlockStandalone,'thin-scrollbar',className),children:/*#__PURE__*/(0,jsx_runtime.jsx)("code",{className:(Content_styles_module_default()).codeBlockLines,children:children})});} -// EXTERNAL MODULE: ../packages/docusaurus-theme-common/lib/utils/reactUtils.js -var reactUtils = __webpack_require__(9129); -;// ../packages/docusaurus-theme-common/lib/hooks/useMutationObserver.js -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */const DefaultOptions={attributes:true,characterData:true,childList:true,subtree:true};function useMutationObserver(target,callback,options=DefaultOptions){const stableCallback=(0,reactUtils/* useEvent */._q)(callback);// MutationObserver options are not nested much -// so this should be to memo options in 99% -// TODO handle options.attributeFilter array -const stableOptions=(0,reactUtils/* useShallowMemoObject */.Be)(options);(0,react.useEffect)(()=>{const observer=new MutationObserver(stableCallback);if(target){observer.observe(target,stableOptions);}return()=>observer.disconnect();},[target,stableCallback,stableOptions]);} -;// ../packages/docusaurus-theme-common/lib/hooks/useCodeWordWrap.js -// Callback fires when the "hidden" attribute of a tabpanel changes -// See https://github.com/facebook/docusaurus/pull/7485 -function useTabBecameVisibleCallback(codeBlockRef,callback){const[hiddenTabElement,setHiddenTabElement]=(0,react.useState)();const updateHiddenTabElement=(0,react.useCallback)(()=>{// No need to observe non-hidden tabs -// + we want to force a re-render when a tab becomes visible -setHiddenTabElement(codeBlockRef.current?.closest('[role=tabpanel][hidden]'));},[codeBlockRef,setHiddenTabElement]);(0,react.useEffect)(()=>{updateHiddenTabElement();},[updateHiddenTabElement]);useMutationObserver(hiddenTabElement,mutations=>{mutations.forEach(mutation=>{if(mutation.type==='attributes'&&mutation.attributeName==='hidden'){callback();updateHiddenTabElement();}});},{attributes:true,characterData:false,childList:false,subtree:false});}function useCodeWordWrap(){const[isEnabled,setIsEnabled]=(0,react.useState)(false);const[isCodeScrollable,setIsCodeScrollable]=(0,react.useState)(false);const codeBlockRef=(0,react.useRef)(null);const toggle=(0,react.useCallback)(()=>{const codeElement=codeBlockRef.current.querySelector('code');if(isEnabled){codeElement.removeAttribute('style');}else{codeElement.style.whiteSpace='pre-wrap';// When code wrap is enabled, we want to avoid a scrollbar in any case -// Ensure that very very long words/strings/tokens still wrap -codeElement.style.overflowWrap='anywhere';}setIsEnabled(value=>!value);},[codeBlockRef,isEnabled]);const updateCodeIsScrollable=(0,react.useCallback)(()=>{const{scrollWidth,clientWidth}=codeBlockRef.current;const isScrollable=scrollWidth>clientWidth||codeBlockRef.current.querySelector('code').hasAttribute('style');setIsCodeScrollable(isScrollable);},[codeBlockRef]);useTabBecameVisibleCallback(codeBlockRef,updateCodeIsScrollable);(0,react.useEffect)(()=>{updateCodeIsScrollable();},[isEnabled,updateCodeIsScrollable]);(0,react.useEffect)(()=>{window.addEventListener('resize',updateCodeIsScrollable,{passive:true});return()=>{window.removeEventListener('resize',updateCodeIsScrollable);};},[updateCodeIsScrollable]);return{codeBlockRef,isEnabled,isCodeScrollable,toggle};} -// EXTERNAL MODULE: ../node_modules/prism-react-renderer/dist/index.mjs -var dist = __webpack_require__(7663); -// EXTERNAL MODULE: ../packages/docusaurus-theme-classic/lib/theme/CodeBlock/Line/styles.module.css -var Line_styles_module = __webpack_require__(8542); -var Line_styles_module_default = /*#__PURE__*/__webpack_require__.n(Line_styles_module); -;// ../packages/docusaurus-theme-classic/lib/theme/CodeBlock/Line/index.js -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function CodeBlockLine({line,classNames,showLineNumbers,getLineProps,getTokenProps}){if(line.length===1&&line[0].content==='\n'){line[0].content='';}const lineProps=getLineProps({line,className:(0,clsx/* default */.A)(classNames,showLineNumbers&&(Line_styles_module_default()).codeLine)});const lineTokens=line.map((token,key)=>/*#__PURE__*/(0,jsx_runtime.jsx)("span",{...getTokenProps({token})},key));return/*#__PURE__*/(0,jsx_runtime.jsxs)("span",{...lineProps,children:[showLineNumbers?/*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[/*#__PURE__*/(0,jsx_runtime.jsx)("span",{className:(Line_styles_module_default()).codeLineNumber}),/*#__PURE__*/(0,jsx_runtime.jsx)("span",{className:(Line_styles_module_default()).codeLineContent,children:lineTokens})]}):lineTokens,/*#__PURE__*/(0,jsx_runtime.jsx)("br",{})]});} -;// ../node_modules/copy-text-to-clipboard/index.js -function copyTextToClipboard(text,{target=document.body}={}){if(typeof text!=='string'){throw new TypeError(`Expected parameter \`text\` to be a \`string\`, got \`${typeof text}\`.`);}const element=document.createElement('textarea');const previouslyFocusedElement=document.activeElement;element.value=text;// Prevent keyboard from showing on mobile -element.setAttribute('readonly','');element.style.contain='strict';element.style.position='absolute';element.style.left='-9999px';element.style.fontSize='12pt';// Prevent zooming on iOS -const selection=document.getSelection();const originalRange=selection.rangeCount>0&&selection.getRangeAt(0);target.append(element);element.select();// Explicit selection workaround for iOS -element.selectionStart=0;element.selectionEnd=text.length;let isSuccess=false;try{isSuccess=document.execCommand('copy');}catch{}element.remove();if(originalRange){selection.removeAllRanges();selection.addRange(originalRange);}// Get the focus back on the previously focused element, if any -if(previouslyFocusedElement){previouslyFocusedElement.focus();}return isSuccess;} -// EXTERNAL MODULE: ../packages/docusaurus/lib/client/exports/Translate.js + 1 modules -var Translate = __webpack_require__(4709); -;// ../packages/docusaurus-theme-classic/lib/theme/Icon/Copy/index.js -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function IconCopy(props){return/*#__PURE__*/(0,jsx_runtime.jsx)("svg",{viewBox:"0 0 24 24",...props,children:/*#__PURE__*/(0,jsx_runtime.jsx)("path",{fill:"currentColor",d:"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"})});} -;// ../packages/docusaurus-theme-classic/lib/theme/Icon/Success/index.js -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function IconSuccess(props){return/*#__PURE__*/(0,jsx_runtime.jsx)("svg",{viewBox:"0 0 24 24",...props,children:/*#__PURE__*/(0,jsx_runtime.jsx)("path",{fill:"currentColor",d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"})});} -// EXTERNAL MODULE: ../packages/docusaurus-theme-classic/lib/theme/CodeBlock/CopyButton/styles.module.css -var CopyButton_styles_module = __webpack_require__(4099); -var CopyButton_styles_module_default = /*#__PURE__*/__webpack_require__.n(CopyButton_styles_module); -;// ../packages/docusaurus-theme-classic/lib/theme/CodeBlock/CopyButton/index.js -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function CopyButton({code,className}){const[isCopied,setIsCopied]=(0,react.useState)(false);const copyTimeout=(0,react.useRef)(undefined);const handleCopyCode=(0,react.useCallback)(()=>{copyTextToClipboard(code);setIsCopied(true);copyTimeout.current=window.setTimeout(()=>{setIsCopied(false);},1000);},[code]);(0,react.useEffect)(()=>()=>window.clearTimeout(copyTimeout.current),[]);return/*#__PURE__*/(0,jsx_runtime.jsx)("button",{type:"button","aria-label":isCopied?(0,Translate/* translate */.T)({id:'theme.CodeBlock.copied',message:'Copied',description:'The copied button label on code blocks'}):(0,Translate/* translate */.T)({id:'theme.CodeBlock.copyButtonAriaLabel',message:'Copy code to clipboard',description:'The ARIA label for copy code blocks button'}),title:(0,Translate/* translate */.T)({id:'theme.CodeBlock.copy',message:'Copy',description:'The copy button label on code blocks'}),className:(0,clsx/* default */.A)('clean-btn',className,(CopyButton_styles_module_default()).copyButton,isCopied&&(CopyButton_styles_module_default()).copyButtonCopied),onClick:handleCopyCode,children:/*#__PURE__*/(0,jsx_runtime.jsxs)("span",{className:(CopyButton_styles_module_default()).copyButtonIcons,"aria-hidden":"true",children:[/*#__PURE__*/(0,jsx_runtime.jsx)(IconCopy,{className:(CopyButton_styles_module_default()).copyButtonIcon}),/*#__PURE__*/(0,jsx_runtime.jsx)(IconSuccess,{className:(CopyButton_styles_module_default()).copyButtonSuccessIcon})]})});} -;// ../packages/docusaurus-theme-classic/lib/theme/Icon/WordWrap/index.js -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function IconWordWrap(props){return/*#__PURE__*/(0,jsx_runtime.jsx)("svg",{viewBox:"0 0 24 24",...props,children:/*#__PURE__*/(0,jsx_runtime.jsx)("path",{fill:"currentColor",d:"M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3l3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"})});} -// EXTERNAL MODULE: ../packages/docusaurus-theme-classic/lib/theme/CodeBlock/WordWrapButton/styles.module.css -var WordWrapButton_styles_module = __webpack_require__(480); -var WordWrapButton_styles_module_default = /*#__PURE__*/__webpack_require__.n(WordWrapButton_styles_module); -;// ../packages/docusaurus-theme-classic/lib/theme/CodeBlock/WordWrapButton/index.js -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function WordWrapButton({className,onClick,isEnabled}){const title=(0,Translate/* translate */.T)({id:'theme.CodeBlock.wordWrapToggle',message:'Toggle word wrap',description:'The title attribute for toggle word wrapping button of code block lines'});return/*#__PURE__*/(0,jsx_runtime.jsx)("button",{type:"button",onClick:onClick,className:(0,clsx/* default */.A)('clean-btn',className,isEnabled&&(WordWrapButton_styles_module_default()).wordWrapButtonEnabled),"aria-label":title,title:title,children:/*#__PURE__*/(0,jsx_runtime.jsx)(IconWordWrap,{className:(WordWrapButton_styles_module_default()).wordWrapButtonIcon,"aria-hidden":"true"})});} -;// ../packages/docusaurus-theme-classic/lib/theme/CodeBlock/Content/String.js -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */// Prism languages are always lowercase -// We want to fail-safe and allow both "php" and "PHP" -// See https://github.com/facebook/docusaurus/issues/9012 -function normalizeLanguage(language){return language?.toLowerCase();}function CodeBlockString({children,className:blockClassName='',metastring,title:titleProp,showLineNumbers:showLineNumbersProp,language:languageProp}){const{prism:{defaultLanguage,magicComments}}=(0,useThemeConfig/* useThemeConfig */.p)();const language=normalizeLanguage(languageProp??parseLanguage(blockClassName)??defaultLanguage);const prismTheme=usePrismTheme();const wordWrap=useCodeWordWrap();const isBrowser=(0,useIsBrowser/* default */.A)();// We still parse the metastring in case we want to support more syntax in the -// future. Note that MDX doesn't strip quotes when parsing metastring: -// "title=\"xyz\"" => title: "\"xyz\"" -const title=parseCodeBlockTitle(metastring)||titleProp;const{lineClassNames,code}=parseLines(children,{metastring,language,magicComments});const lineNumbersStart=getLineNumbersStart({showLineNumbers:showLineNumbersProp,metastring});return/*#__PURE__*/(0,jsx_runtime.jsxs)(CodeBlockContainer,{as:"div",className:(0,clsx/* default */.A)(blockClassName,language&&!blockClassName.includes(`language-${language}`)&&`language-${language}`),children:[title&&/*#__PURE__*/(0,jsx_runtime.jsx)("div",{className:(Content_styles_module_default()).codeBlockTitle,children:title}),/*#__PURE__*/(0,jsx_runtime.jsxs)("div",{className:(Content_styles_module_default()).codeBlockContent,children:[/*#__PURE__*/(0,jsx_runtime.jsx)(dist/* Highlight */.f4,{theme:prismTheme,code:code,language:language??'text',children:({className,style,tokens,getLineProps,getTokenProps})=>/*#__PURE__*/(0,jsx_runtime.jsx)("pre",{/* eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex */tabIndex:0,ref:wordWrap.codeBlockRef,className:(0,clsx/* default */.A)(className,(Content_styles_module_default()).codeBlock,'thin-scrollbar'),style:style,children:/*#__PURE__*/(0,jsx_runtime.jsx)("code",{className:(0,clsx/* default */.A)((Content_styles_module_default()).codeBlockLines,lineNumbersStart!==undefined&&(Content_styles_module_default()).codeBlockLinesWithNumbering),style:lineNumbersStart===undefined?undefined:{counterReset:`line-count ${lineNumbersStart-1}`},children:tokens.map((line,i)=>/*#__PURE__*/(0,jsx_runtime.jsx)(CodeBlockLine,{line:line,getLineProps:getLineProps,getTokenProps:getTokenProps,classNames:lineClassNames[i],showLineNumbers:lineNumbersStart!==undefined},i))})})}),isBrowser?/*#__PURE__*/(0,jsx_runtime.jsxs)("div",{className:(Content_styles_module_default()).buttonGroup,children:[(wordWrap.isEnabled||wordWrap.isCodeScrollable)&&/*#__PURE__*/(0,jsx_runtime.jsx)(WordWrapButton,{className:(Content_styles_module_default()).codeButton,onClick:()=>wordWrap.toggle(),isEnabled:wordWrap.isEnabled}),/*#__PURE__*/(0,jsx_runtime.jsx)(CopyButton,{className:(Content_styles_module_default()).codeButton,code:code})]}):null]})]});} -;// ../packages/docusaurus-theme-classic/lib/theme/CodeBlock/index.js -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - *//** - * Best attempt to make the children a plain string so it is copyable. If there - * are react elements, we will not be able to copy the content, and it will - * return `children` as-is; otherwise, it concatenates the string children - * together. - */function maybeStringifyChildren(children){if(react.Children.toArray(children).some(el=>/*#__PURE__*/(0,react.isValidElement)(el))){return children;}// The children is now guaranteed to be one/more plain strings -return Array.isArray(children)?children.join(''):children;}function CodeBlock({children:rawChildren,...props}){// The Prism theme on SSR is always the default theme but the site theme can -// be in a different mode. React hydration doesn't update DOM styles that come -// from SSR. Hence force a re-render after mounting to apply the current -// relevant styles. -const isBrowser=(0,useIsBrowser/* default */.A)();const children=maybeStringifyChildren(rawChildren);const CodeBlockComp=typeof children==='string'?CodeBlockString:CodeBlockJSX;return/*#__PURE__*/(0,jsx_runtime.jsx)(CodeBlockComp,{...props,children:children},String(isBrowser));} -;// ../packages/docusaurus-theme-classic/lib/theme/CodeInline/index.js -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */// Simple component used to render inline code blocks -// its purpose is to be swizzled and customized -// MDX 1 used to have a inlineCode comp, see https://mdxjs.com/migrating/v2/ -function CodeInline(props){return/*#__PURE__*/(0,jsx_runtime.jsx)("code",{...props});} -;// ../packages/docusaurus-theme-classic/lib/theme/MDXComponents/Code.js -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function shouldBeInline(props){return(// empty code blocks have no props.children, -// see https://github.com/facebook/docusaurus/pull/9704 -typeof props.children!=='undefined'&&react.Children.toArray(props.children).every(el=>typeof el==='string'&&!el.includes('\n')));}function MDXCode(props){return shouldBeInline(props)?/*#__PURE__*/(0,jsx_runtime.jsx)(CodeInline,{...props}):/*#__PURE__*/(0,jsx_runtime.jsx)(CodeBlock,{...props});} -// EXTERNAL MODULE: ../packages/docusaurus/lib/client/exports/Link.js + 1 modules -var Link = __webpack_require__(1349); -;// ../packages/docusaurus-theme-classic/lib/theme/MDXComponents/A.js -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function MDXA(props){return/*#__PURE__*/(0,jsx_runtime.jsx)(Link/* default */.A,{...props});} -;// ../packages/docusaurus-theme-classic/lib/theme/MDXComponents/Pre.js -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function MDXPre(props){// With MDX 2, this element is only used for fenced code blocks -// It always receives a MDXComponents/Code as children -return/*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment,{children:props.children});} -// EXTERNAL MODULE: ../packages/docusaurus/lib/client/exports/useBrokenLinks.js -var useBrokenLinks = __webpack_require__(1900); -// EXTERNAL MODULE: ../packages/docusaurus-theme-common/lib/components/Collapsible/index.js -var Collapsible = __webpack_require__(343); -// EXTERNAL MODULE: ../packages/docusaurus-theme-common/lib/components/Details/styles.module.css -var Details_styles_module = __webpack_require__(373); -var Details_styles_module_default = /*#__PURE__*/__webpack_require__.n(Details_styles_module); -;// ../packages/docusaurus-theme-common/lib/components/Details/index.js -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function isInSummary(node){if(!node){return false;}return node.tagName==='SUMMARY'||isInSummary(node.parentElement);}function hasParent(node,parent){if(!node){return false;}return node===parent||hasParent(node.parentElement,parent);}/** - * A mostly un-styled `` element with smooth collapsing. Provides some - * very lightweight styles, but you should bring your UI. - */function Details({summary,children,...props}){(0,useBrokenLinks/* default */.A)().collectAnchor(props.id);const isBrowser=(0,useIsBrowser/* default */.A)();const detailsRef=(0,react.useRef)(null);const{collapsed,setCollapsed}=(0,Collapsible/* useCollapsible */.u)({initialState:!props.open});// Use a separate state for the actual details prop, because it must be set -// only after animation completes, otherwise close animations won't work -const[open,setOpen]=(0,react.useState)(props.open);const summaryElement=/*#__PURE__*/react.isValidElement(summary)?summary:/*#__PURE__*/(0,jsx_runtime.jsx)("summary",{children:summary??'Details'});return(/*#__PURE__*/// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-noninteractive-element-interactions -(0,jsx_runtime.jsxs)("details",{...props,ref:detailsRef,open:open,"data-collapsed":collapsed,className:(0,clsx/* default */.A)((Details_styles_module_default()).details,isBrowser&&(Details_styles_module_default()).isBrowser,props.className),onMouseDown:e=>{const target=e.target;// Prevent a double-click to highlight summary text -if(isInSummary(target)&&e.detail>1){e.preventDefault();}},onClick:e=>{e.stopPropagation();// For isolation of multiple nested details/summary -const target=e.target;const shouldToggle=isInSummary(target)&&hasParent(target,detailsRef.current);if(!shouldToggle){return;}e.preventDefault();if(collapsed){setCollapsed(false);setOpen(true);}else{setCollapsed(true);// Don't do this, it breaks close animation! -// setOpen(false); -}},children:[summaryElement,/*#__PURE__*/(0,jsx_runtime.jsx)(Collapsible/* Collapsible */.N,{lazy:false// Content might matter for SEO in this case -,collapsed:collapsed,onCollapseTransitionEnd:newCollapsed=>{setCollapsed(newCollapsed);setOpen(!newCollapsed);},children:/*#__PURE__*/(0,jsx_runtime.jsx)("div",{className:(Details_styles_module_default()).collapsibleContent,children:children})})]}));} -// EXTERNAL MODULE: ../packages/docusaurus-theme-classic/lib/theme/Details/styles.module.css -var theme_Details_styles_module = __webpack_require__(1733); -var theme_Details_styles_module_default = /*#__PURE__*/__webpack_require__.n(theme_Details_styles_module); -;// ../packages/docusaurus-theme-classic/lib/theme/Details/index.js -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */// Should we have a custom details/summary comp in Infima instead of reusing -// alert classes? -const InfimaClasses='alert alert--info';function Details_Details({...props}){return/*#__PURE__*/(0,jsx_runtime.jsx)(Details,{...props,className:(0,clsx/* default */.A)(InfimaClasses,(theme_Details_styles_module_default()).details,props.className)});} -;// ../packages/docusaurus-theme-classic/lib/theme/MDXComponents/Details.js -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function MDXDetails(props){const items=react.Children.toArray(props.children);// Split summary item from the rest to pass it as a separate prop to the -// Details theme component -const summary=items.find(item=>/*#__PURE__*/react.isValidElement(item)&&item.type==='summary');const children=/*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment,{children:items.filter(item=>item!==summary)});return/*#__PURE__*/(0,jsx_runtime.jsx)(Details_Details,{...props,summary:summary,children:children});} -// EXTERNAL MODULE: ../packages/docusaurus-theme-classic/lib/theme/Heading/index.js -var Heading = __webpack_require__(6813); -;// ../packages/docusaurus-theme-classic/lib/theme/MDXComponents/Heading.js -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function MDXHeading(props){return/*#__PURE__*/(0,jsx_runtime.jsx)(Heading/* default */.A,{...props});} -// EXTERNAL MODULE: ../packages/docusaurus-theme-classic/lib/theme/MDXComponents/Ul/styles.module.css -var Ul_styles_module = __webpack_require__(30); -var Ul_styles_module_default = /*#__PURE__*/__webpack_require__.n(Ul_styles_module); -;// ../packages/docusaurus-theme-classic/lib/theme/MDXComponents/Ul/index.js -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function transformUlClassName(className){// Fix https://github.com/facebook/docusaurus/issues/9098 -if(typeof className==='undefined'){return undefined;}return (0,clsx/* default */.A)(className,// This class is set globally by GitHub/MDX. We keep the global class, and -// add another class to get a task list without the default ul styling -// See https://github.com/syntax-tree/mdast-util-to-hast/issues/28 -className?.includes('contains-task-list')&&(Ul_styles_module_default()).containsTaskList);}function MDXUl(props){return/*#__PURE__*/(0,jsx_runtime.jsx)("ul",{...props,className:transformUlClassName(props.className)});} -;// ../packages/docusaurus-theme-classic/lib/theme/MDXComponents/Li.js -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function MDXLi(props){// MDX Footnotes have ids such as-(0,useBrokenLinks/* default */.A)().collectAnchor(props.id);return/*#__PURE__*/(0,jsx_runtime.jsx)("li",{...props});} -// EXTERNAL MODULE: ../packages/docusaurus-theme-classic/lib/theme/MDXComponents/Img/styles.module.css -var Img_styles_module = __webpack_require__(5614); -var Img_styles_module_default = /*#__PURE__*/__webpack_require__.n(Img_styles_module); -;// ../packages/docusaurus-theme-classic/lib/theme/MDXComponents/Img/index.js -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function transformImgClassName(className){return (0,clsx/* default */.A)(className,(Img_styles_module_default()).img);}function MDXImg(props){return(/*#__PURE__*/// eslint-disable-next-line jsx-a11y/alt-text -(0,jsx_runtime.jsx)("img",{decoding:"async",loading:"lazy",...props,className:transformImgClassName(props.className)}));} -// EXTERNAL MODULE: ../packages/docusaurus-theme-classic/lib/theme/Admonition/index.js + 14 modules -var Admonition = __webpack_require__(4707); -// EXTERNAL MODULE: ../packages/docusaurus/lib/client/exports/Noop.js -var Noop = __webpack_require__(219); -;// ../packages/docusaurus-theme-classic/lib/theme/MDXComponents/index.js -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */const MDXComponents={Head: Head/* default */.A,details:MDXDetails,// For MD mode support, see https://github.com/facebook/docusaurus/issues/9092#issuecomment-1602902274 -Details:MDXDetails,code:MDXCode,a:MDXA,pre:MDXPre,ul:MDXUl,li:MDXLi,img:MDXImg,h1:props=>/*#__PURE__*/(0,jsx_runtime.jsx)(MDXHeading,{as:"h1",...props}),h2:props=>/*#__PURE__*/(0,jsx_runtime.jsx)(MDXHeading,{as:"h2",...props}),h3:props=>/*#__PURE__*/(0,jsx_runtime.jsx)(MDXHeading,{as:"h3",...props}),h4:props=>/*#__PURE__*/(0,jsx_runtime.jsx)(MDXHeading,{as:"h4",...props}),h5:props=>/*#__PURE__*/(0,jsx_runtime.jsx)(MDXHeading,{as:"h5",...props}),h6:props=>/*#__PURE__*/(0,jsx_runtime.jsx)(MDXHeading,{as:"h6",...props}),admonition:Admonition/* default */.A,mermaid:Noop/* default */.A};/* harmony default export */ const theme_MDXComponents = (MDXComponents); -;// ../packages/docusaurus-theme-classic/lib/theme/MDXContent/index.js -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function MDXContent({children}){return/*#__PURE__*/(0,jsx_runtime.jsx)(lib/* MDXProvider */.x,{components:theme_MDXComponents,children:children});} - -/***/ }), - -/***/ 859: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ MDXPage) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6540); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(1750); -/* harmony import */ var _docusaurus_theme_common__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(5861); -/* harmony import */ var _docusaurus_theme_common__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(8532); -/* harmony import */ var _theme_Layout__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3305); -/* harmony import */ var _theme_MDXContent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5493); -/* harmony import */ var _theme_TOC__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5277); -/* harmony import */ var _theme_ContentVisibility__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5088); -/* harmony import */ var _theme_EditMetaRow__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(9738); -/* harmony import */ var _styles_module_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(7143); -/* harmony import */ var _styles_module_css__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_styles_module_css__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(4848); -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function MDXPage(props){const{content:MDXPageContent}=props;const{metadata,assets}=MDXPageContent;const{title,editUrl,description,frontMatter,lastUpdatedBy,lastUpdatedAt}=metadata;const{keywords,wrapperClassName,hide_table_of_contents:hideTableOfContents}=frontMatter;const image=assets.image??frontMatter.image;const canDisplayEditMetaRow=!!(editUrl||lastUpdatedAt||lastUpdatedBy);return/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_docusaurus_theme_common__WEBPACK_IMPORTED_MODULE_8__/* .HtmlClassNameProvider */ .e3,{className:(0,clsx__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .A)(wrapperClassName??_docusaurus_theme_common__WEBPACK_IMPORTED_MODULE_10__/* .ThemeClassNames */ .G.wrapper.mdxPages,_docusaurus_theme_common__WEBPACK_IMPORTED_MODULE_10__/* .ThemeClassNames */ .G.page.mdxPage),children:/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(_theme_Layout__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A,{children:[/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_docusaurus_theme_common__WEBPACK_IMPORTED_MODULE_8__/* .PageMetadata */ .be,{title:title,description:description,keywords:keywords,image:image}),/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)("main",{className:"container container--fluid margin-vert--lg",children:/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)("div",{className:(0,clsx__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .A)('row',(_styles_module_css__WEBPACK_IMPORTED_MODULE_6___default().mdxPageWrapper)),children:[/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)("div",{className:(0,clsx__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .A)('col',!hideTableOfContents&&'col--8'),children:[/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_theme_ContentVisibility__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A,{metadata:metadata}),/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)("article",{children:/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_theme_MDXContent__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A,{children:/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(MDXPageContent,{})})}),canDisplayEditMetaRow&&/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_theme_EditMetaRow__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A,{className:(0,clsx__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .A)('margin-top--sm',_docusaurus_theme_common__WEBPACK_IMPORTED_MODULE_10__/* .ThemeClassNames */ .G.pages.pageFooterEditMetaRow),editUrl:editUrl,lastUpdatedAt:lastUpdatedAt,lastUpdatedBy:lastUpdatedBy})]}),!hideTableOfContents&&MDXPageContent.toc.length>0&&/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)("div",{className:"col col--2",children:/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_theme_TOC__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .A,{toc:MDXPageContent.toc,minHeadingLevel:frontMatter.toc_min_heading_level,maxHeadingLevel:frontMatter.toc_max_heading_level})})]})})]})});} - -/***/ }), - -/***/ 1412: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ A: () => (/* binding */ NotFoundContent) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6540); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1750); -/* harmony import */ var _docusaurus_Translate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4709); -/* harmony import */ var _theme_Heading__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6813); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4848); -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function NotFoundContent({className}){return/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("main",{className:(0,clsx__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A)('container margin-vert--xl',className),children:/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("div",{className:"row",children:/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)("div",{className:"col col--6 col--offset-3",children:[/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_theme_Heading__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A,{as:"h1",className:"hero__title",children:/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_docusaurus_Translate__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A,{id:"theme.NotFound.title",description:"The title of the 404 page",children:"Page Not Found"})}),/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("p",{children:/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_docusaurus_Translate__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A,{id:"theme.NotFound.p1",description:"The first paragraph of the 404 page",children:"We could not find what you were looking for."})}),/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("p",{children:/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_docusaurus_Translate__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A,{id:"theme.NotFound.p2",description:"The 2nd paragraph of the 404 page",children:"Please contact the owner of the site that linked you to the original URL and let them know their link is broken."})})]})})});} - -/***/ }), - -/***/ 8714: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ Index) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6540); -/* harmony import */ var _docusaurus_Translate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4709); -/* harmony import */ var _docusaurus_theme_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(5861); -/* harmony import */ var _theme_Layout__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3305); -/* harmony import */ var _theme_NotFound_Content__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1412); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(4848); -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function Index(){const title=(0,_docusaurus_Translate__WEBPACK_IMPORTED_MODULE_1__/* .translate */ .T)({id:'theme.NotFound.title',message:'Page Not Found'});return/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.Fragment,{children:[/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_docusaurus_theme_common__WEBPACK_IMPORTED_MODULE_5__/* .PageMetadata */ .be,{title:title}),/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_theme_Layout__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A,{children:/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_theme_NotFound_Content__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .A,{})})]});} - -/***/ }), - -/***/ 8705: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ A: () => (/* binding */ PaginatorNavLink) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6540); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1750); -/* harmony import */ var _docusaurus_Link__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1349); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4848); -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function PaginatorNavLink(props){const{permalink,title,subLabel,isNext}=props;return/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)(_docusaurus_Link__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A,{className:(0,clsx__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .A)('pagination-nav__link',isNext?'pagination-nav__link--next':'pagination-nav__link--prev'),to:permalink,children:[subLabel&&/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("div",{className:"pagination-nav__sublabel",children:subLabel}),/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("div",{className:"pagination-nav__label",children:title})]});} - -/***/ }), - -/***/ 3308: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ A: () => (/* binding */ SearchMetadata) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6540); -/* harmony import */ var _docusaurus_Head__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2785); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4848); -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */// Note: we bias toward using Algolia metadata on purpose -// Not doing so leads to confusion in the community, -// as it requires to first crawl the site with the Algolia plugin enabled first -// - https://github.com/facebook/docusaurus/issues/6693 -// - https://github.com/facebook/docusaurus/issues/4555 -function SearchMetadata({locale,version,tag}){// Seems safe to consider here the locale is the language, as the existing -// docsearch:language filter is afaik a regular string-based filter -const language=locale;return/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)(_docusaurus_Head__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A,{children:[locale&&/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("meta",{name:"docusaurus_locale",content:locale}),version&&/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("meta",{name:"docusaurus_version",content:version}),tag&&/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("meta",{name:"docusaurus_tag",content:tag}),language&&/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("meta",{name:"docsearch:language",content:language}),version&&/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("meta",{name:"docsearch:version",content:version}),tag&&/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("meta",{name:"docsearch:docusaurus_tag",content:tag})]});} - -/***/ }), - -/***/ 5277: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ A: () => (/* binding */ TOC) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6540); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1750); -/* harmony import */ var _theme_TOCItems__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1731); -/* harmony import */ var _styles_module_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5429); -/* harmony import */ var _styles_module_css__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_styles_module_css__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4848); -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */// Using a custom className -// This prevents TOCInline/TOCCollapsible getting highlighted by mistake -const LINK_CLASS_NAME='table-of-contents__link toc-highlight';const LINK_ACTIVE_CLASS_NAME='table-of-contents__link--active';function TOC({className,...props}){return/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("div",{className:(0,clsx__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A)((_styles_module_css__WEBPACK_IMPORTED_MODULE_2___default().tableOfContents),'thin-scrollbar',className),children:/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_theme_TOCItems__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A,{...props,linkClassName:LINK_CLASS_NAME,linkActiveClassName:LINK_ACTIVE_CLASS_NAME})});} - -/***/ }), - -/***/ 1731: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - A: () => (/* binding */ TOCItems) -}); - -// EXTERNAL MODULE: ./node_modules/react/index.js -var react = __webpack_require__(6540); -// EXTERNAL MODULE: ../packages/docusaurus-theme-common/lib/utils/useThemeConfig.js -var useThemeConfig = __webpack_require__(6963); -;// ../packages/docusaurus-theme-common/lib/utils/tocUtils.js -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function treeifyTOC(flatTOC){const headings=flatTOC.map(heading=>({...heading,parentIndex:-1,children:[]}));// Keep track of which previous index would be the current heading's direct -// parent. Each entry is the last index of the `headings` array at heading -// level . We will modify these indices as we iterate through all headings. -// e.g. if an ### H3 was last seen at index 2, then prevIndexForLevel[3] === 2 -// indices 0 and 1 will remain unused. -const prevIndexForLevel=Array(7).fill(-1);headings.forEach((curr,currIndex)=>{// Take the last seen index for each ancestor level. the highest index will -// be the direct ancestor of the current heading. -const ancestorLevelIndexes=prevIndexForLevel.slice(2,curr.level);curr.parentIndex=Math.max(...ancestorLevelIndexes);// Mark that curr.level was last seen at the current index. -prevIndexForLevel[curr.level]=currIndex;});const rootNodes=[];// For a given parentIndex, add each Node into that parent's `children` array -headings.forEach(heading=>{const{parentIndex,...rest}=heading;if(parentIndex>=0){headings[parentIndex].children.push(rest);}else{rootNodes.push(rest);}});return rootNodes;}/** - * Takes a flat TOC list (from the MDX loader) and treeifies it into what the - * TOC components expect. Memoized for performance. - */function useTreeifiedTOC(toc){return useMemo(()=>treeifyTOC(toc),[toc]);}function filterTOC({toc,minHeadingLevel,maxHeadingLevel}){function isValid(item){return item.level>=minHeadingLevel&&item.level<=maxHeadingLevel;}return toc.flatMap(item=>{const filteredChildren=filterTOC({toc:item.children,minHeadingLevel,maxHeadingLevel});if(isValid(item)){return[{...item,children:filteredChildren}];}return filteredChildren;});}/** - * Takes a flat TOC list (from the MDX loader) and treeifies it into what the - * TOC components expect, applying the `minHeadingLevel` and `maxHeadingLevel`. - * Memoized for performance. - * - * **Important**: this is not the same as `useTreeifiedTOC(toc.filter(...))`, - * because we have to filter the TOC after it has been treeified. This is mostly - * to ensure that weird TOC structures preserve their semantics. For example, an - * h3-h2-h4 sequence should not be treeified as an "h3 > h4" hierarchy with - * min=3, max=4, but should rather be "[h3, h4]" (since the h2 heading has split - * the two headings and they are not parent-children) - */function useFilteredAndTreeifiedTOC({toc,minHeadingLevel,maxHeadingLevel}){return (0,react.useMemo)(()=>filterTOC({toc:treeifyTOC(toc),minHeadingLevel,maxHeadingLevel}),[toc,minHeadingLevel,maxHeadingLevel]);} -;// ../packages/docusaurus-theme-common/lib/hooks/useTOCHighlight.js -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */// TODO make the hardcoded theme-classic classnames configurable (or add them -// to ThemeClassNames?) -/** - * If the anchor has no height and is just a "marker" in the DOM; we'll use the - * parent (normally the link text) rect boundaries instead - */function getVisibleBoundingClientRect(element){const rect=element.getBoundingClientRect();const hasNoHeight=rect.top===rect.bottom;if(hasNoHeight){return getVisibleBoundingClientRect(element.parentNode);}return rect;}/** - * Considering we divide viewport into 2 zones of each 50vh, this returns true - * if an element is in the first zone (i.e., appear in viewport, near the top) - */function isInViewportTopHalf(boundingRect){return boundingRect.top>0&&boundingRect.bottom {const boundingRect=getVisibleBoundingClientRect(anchor);return boundingRect.top>=anchorTopOffset;});if(nextVisibleAnchor){const boundingRect=getVisibleBoundingClientRect(nextVisibleAnchor);// If anchor is in the top half of the viewport: it is the one we consider -// "active" (unless it's too close to the top and and soon to be scrolled -// outside viewport) -if(isInViewportTopHalf(boundingRect)){return nextVisibleAnchor;}// If anchor is in the bottom half of the viewport, or under the viewport, -// we consider the active anchor is the previous one. This is because the -// main text appearing in the user screen mostly belong to the previous -// anchor. Returns null for the first anchor, see -// https://github.com/facebook/docusaurus/issues/5318 -return anchors[anchors.indexOf(nextVisibleAnchor)-1]??null;}// No anchor under viewport top (i.e. we are at the bottom of the page), -// highlight the last anchor found -return anchors[anchors.length-1]??null;}function getLinkAnchorValue(link){return decodeURIComponent(link.href.substring(link.href.indexOf('#')+1));}function getLinks(linkClassName){return Array.from(document.getElementsByClassName(linkClassName));}function getNavbarHeight(){// Not ideal to obtain actual height this way -// Using TS ! (not ?) because otherwise a bad selector would be un-noticed -return document.querySelector('.navbar').clientHeight;}function useAnchorTopOffsetRef(){const anchorTopOffsetRef=(0,react.useRef)(0);const{navbar:{hideOnScroll}}=(0,useThemeConfig/* useThemeConfig */.p)();(0,react.useEffect)(()=>{anchorTopOffsetRef.current=hideOnScroll?0:getNavbarHeight();},[hideOnScroll]);return anchorTopOffsetRef;}/** - * Side-effect that applies the active class name to the TOC heading that the - * user is currently viewing. Disabled when `config` is undefined. - */function useTOCHighlight(config){const lastActiveLinkRef=(0,react.useRef)(undefined);const anchorTopOffsetRef=useAnchorTopOffsetRef();(0,react.useEffect)(()=>{if(!config){// No-op, highlighting is disabled -return()=>{};}const{linkClassName,linkActiveClassName,minHeadingLevel,maxHeadingLevel}=config;function updateLinkActiveClass(link,active){if(active){if(lastActiveLinkRef.current&&lastActiveLinkRef.current!==link){lastActiveLinkRef.current.classList.remove(linkActiveClassName);}link.classList.add(linkActiveClassName);lastActiveLinkRef.current=link;// link.scrollIntoView({block: 'nearest'}); -}else{link.classList.remove(linkActiveClassName);}}function updateActiveLink(){const links=getLinks(linkClassName);const anchors=getAnchors({minHeadingLevel,maxHeadingLevel});const activeAnchor=getActiveAnchor(anchors,{anchorTopOffset:anchorTopOffsetRef.current});const activeLink=links.find(link=>activeAnchor&&activeAnchor.id===getLinkAnchorValue(link));links.forEach(link=>{updateLinkActiveClass(link,link===activeLink);});}document.addEventListener('scroll',updateActiveLink);document.addEventListener('resize',updateActiveLink);updateActiveLink();return()=>{document.removeEventListener('scroll',updateActiveLink);document.removeEventListener('resize',updateActiveLink);};},[config,anchorTopOffsetRef]);} -// EXTERNAL MODULE: ../packages/docusaurus/lib/client/exports/Link.js + 1 modules -var Link = __webpack_require__(1349); -// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js -var jsx_runtime = __webpack_require__(4848); -;// ../packages/docusaurus-theme-classic/lib/theme/TOCItems/Tree.js -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */// Recursive component rendering the toc tree -function TOCItemTree({toc,className,linkClassName,isChild}){if(!toc.length){return null;}return/*#__PURE__*/(0,jsx_runtime.jsx)("ul",{className:isChild?undefined:className,children:toc.map(heading=>/*#__PURE__*/(0,jsx_runtime.jsxs)("li",{children:[/*#__PURE__*/(0,jsx_runtime.jsx)(Link/* default */.A,{to:`#${heading.id}`,className:linkClassName??undefined// Developer provided the HTML, so assume it's safe. -,dangerouslySetInnerHTML:{__html:heading.value}}),/*#__PURE__*/(0,jsx_runtime.jsx)(TOCItemTree,{isChild:true,toc:heading.children,className:className,linkClassName:linkClassName})]},heading.id))});}// Memo only the tree root is enough -/* harmony default export */ const Tree = (/*#__PURE__*/react.memo(TOCItemTree)); -;// ../packages/docusaurus-theme-classic/lib/theme/TOCItems/index.js -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function TOCItems({toc,className='table-of-contents table-of-contents__left-border',linkClassName='table-of-contents__link',linkActiveClassName=undefined,minHeadingLevel:minHeadingLevelOption,maxHeadingLevel:maxHeadingLevelOption,...props}){const themeConfig=(0,useThemeConfig/* useThemeConfig */.p)();const minHeadingLevel=minHeadingLevelOption??themeConfig.tableOfContents.minHeadingLevel;const maxHeadingLevel=maxHeadingLevelOption??themeConfig.tableOfContents.maxHeadingLevel;const tocTree=useFilteredAndTreeifiedTOC({toc,minHeadingLevel,maxHeadingLevel});const tocHighlightConfig=(0,react.useMemo)(()=>{if(linkClassName&&linkActiveClassName){return{linkClassName,linkActiveClassName,minHeadingLevel,maxHeadingLevel};}return undefined;},[linkClassName,linkActiveClassName,minHeadingLevel,maxHeadingLevel]);useTOCHighlight(tocHighlightConfig);return/*#__PURE__*/(0,jsx_runtime.jsx)(Tree,{toc:tocTree,className:className,linkClassName:linkClassName,...props});} - -/***/ }), - -/***/ 8151: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ A: () => (/* binding */ Tag) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6540); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1750); -/* harmony import */ var _docusaurus_Link__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1349); -/* harmony import */ var _styles_module_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8595); -/* harmony import */ var _styles_module_css__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_styles_module_css__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4848); -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function Tag({permalink,label,count,description}){return/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)(_docusaurus_Link__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A,{href:permalink,title:description,className:(0,clsx__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A)((_styles_module_css__WEBPACK_IMPORTED_MODULE_2___default().tag),count?(_styles_module_css__WEBPACK_IMPORTED_MODULE_2___default().tagWithCount):(_styles_module_css__WEBPACK_IMPORTED_MODULE_2___default().tagRegular)),children:[label,count&&/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("span",{children:count})]});} - -/***/ }), - -/***/ 1029: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ A: () => (/* binding */ TagsListInline) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6540); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(1750); -/* harmony import */ var _docusaurus_Translate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4709); -/* harmony import */ var _theme_Tag__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8151); -/* harmony import */ var _styles_module_css__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6709); -/* harmony import */ var _styles_module_css__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_styles_module_css__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(4848); -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function TagsListInline({tags}){return/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.Fragment,{children:[/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("b",{children:/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_docusaurus_Translate__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A,{id:"theme.tags.tagsListLabel",description:"The label alongside a tag list",children:"Tags:"})}),/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("ul",{className:(0,clsx__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A)((_styles_module_css__WEBPACK_IMPORTED_MODULE_3___default().tags),'padding--none','margin-left--sm'),children:tags.map(tag=>/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("li",{className:(_styles_module_css__WEBPACK_IMPORTED_MODULE_3___default().tag),children:/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_theme_Tag__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A,{...tag})},tag.permalink))})]});} - -/***/ }), - -/***/ 5112: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - A: () => (/* binding */ ThemedImage) -}); - -// EXTERNAL MODULE: ./node_modules/react/index.js -var react = __webpack_require__(6540); -// EXTERNAL MODULE: ../node_modules/clsx/dist/clsx.mjs -var clsx = __webpack_require__(1750); -// EXTERNAL MODULE: ../packages/docusaurus/lib/client/exports/useIsBrowser.js -var useIsBrowser = __webpack_require__(3754); -// EXTERNAL MODULE: ../packages/docusaurus-theme-common/lib/contexts/colorMode.js -var contexts_colorMode = __webpack_require__(5407); -// EXTERNAL MODULE: ../packages/docusaurus-theme-common/lib/components/ThemedComponent/styles.module.css -var styles_module = __webpack_require__(8361); -var styles_module_default = /*#__PURE__*/__webpack_require__.n(styles_module); -// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js -var jsx_runtime = __webpack_require__(4848); -;// ../packages/docusaurus-theme-common/lib/components/ThemedComponent/index.js -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */const AllThemes=(/* unused pure expression or super */ null && (['light','dark']));/** - * Generic component to render anything themed in light/dark - * Note: it's preferable to use CSS for theming because this component - * will need to render all the variants during SSR to avoid a theme flash. - * - * Use this only when CSS customizations are not convenient or impossible. - * For example, rendering themed images or SVGs... - * - * @param className applied to all the variants - * @param children function to render a theme variant - * @constructor - */function ThemedComponent({className,children}){const isBrowser=(0,useIsBrowser/* default */.A)();const{colorMode}=(0,contexts_colorMode/* useColorMode */.G)();function getThemesToRender(){if(isBrowser){return colorMode==='dark'?['dark']:['light'];}// We need to render both components on the server / hydration to avoid: -// - a flash of wrong theme before hydration -// - React hydration mismatches -// See https://github.com/facebook/docusaurus/pull/3730 -return['light','dark'];}return/*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment,{children:getThemesToRender().map(theme=>{const themedElement=children({theme,className:(0,clsx/* default */.A)(className,(styles_module_default()).themedComponent,(styles_module_default())[`themedComponent--${theme}`])});return/*#__PURE__*/(0,jsx_runtime.jsx)(react.Fragment,{children:themedElement},theme);})});} -;// ../packages/docusaurus-theme-classic/lib/theme/ThemedImage/index.js -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function ThemedImage(props){const{sources,className:parentClassName,alt,...propsRest}=props;return/*#__PURE__*/(0,jsx_runtime.jsx)(ThemedComponent,{className:parentClassName,children:({theme,className})=>/*#__PURE__*/(0,jsx_runtime.jsx)("img",{src:sources[theme],alt:alt,className:className,...propsRest})});} - -/***/ }), - -/***/ 343: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ N: () => (/* binding */ Collapsible), -/* harmony export */ u: () => (/* binding */ useCollapsible) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6540); -/* harmony import */ var _docusaurus_useIsomorphicLayoutEffect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(610); -/* harmony import */ var _utils_accessibilityUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(644); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4848); -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */const DefaultAnimationEasing='ease-in-out';/** - * This hook is a very thin wrapper around a `useState`. - */function useCollapsible({initialState}){const[collapsed,setCollapsed]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(initialState??false);const toggleCollapsed=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(()=>{setCollapsed(expanded=>!expanded);},[]);return{collapsed,setCollapsed,toggleCollapsed};}const CollapsedStyles={display:'none',overflow:'hidden',height:'0px'};const ExpandedStyles={display:'block',overflow:'visible',height:'auto'};function applyCollapsedStyle(el,collapsed){const collapsedStyles=collapsed?CollapsedStyles:ExpandedStyles;el.style.display=collapsedStyles.display;el.style.overflow=collapsedStyles.overflow;el.style.height=collapsedStyles.height;}/* -Lex111: Dynamic transition duration is used in Material design, this technique -is good for a large number of items. -https://material.io/archive/guidelines/motion/duration-easing.html#duration-easing-dynamic-durations -https://github.com/mui-org/material-ui/blob/e724d98eba018e55e1a684236a2037e24bcf050c/packages/material-ui/src/styles/createTransitions.js#L40-L43 - */function getAutoHeightDuration(height){if((0,_utils_accessibilityUtils__WEBPACK_IMPORTED_MODULE_3__/* .prefersReducedMotion */ .O)()){// Not using 0 because it prevents onTransitionEnd to fire and bubble up :/ -// See https://github.com/facebook/docusaurus/pull/8906 -return 1;}const constant=height/36;return Math.round((4+15*constant**0.25+constant/5)*10);}function useCollapseAnimation({collapsibleRef,collapsed,animation}){const mounted=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(false);(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(()=>{const el=collapsibleRef.current;function getTransitionStyles(){const height=el.scrollHeight;const duration=animation?.duration??getAutoHeightDuration(height);const easing=animation?.easing??DefaultAnimationEasing;return{transition:`height ${duration}ms ${easing}`,height:`${height}px`};}function applyTransitionStyles(){const transitionStyles=getTransitionStyles();el.style.transition=transitionStyles.transition;el.style.height=transitionStyles.height;}// On mount, we just apply styles, no animated transition -if(!mounted.current){applyCollapsedStyle(el,collapsed);mounted.current=true;return undefined;}el.style.willChange='height';function startAnimation(){const animationFrame=requestAnimationFrame(()=>{// When collapsing -if(collapsed){applyTransitionStyles();requestAnimationFrame(()=>{el.style.height=CollapsedStyles.height;el.style.overflow=CollapsedStyles.overflow;});}// When expanding -else{el.style.display='block';requestAnimationFrame(()=>{applyTransitionStyles();});}});return()=>cancelAnimationFrame(animationFrame);}return startAnimation();},[collapsibleRef,collapsed,animation]);}function CollapsibleBase({as:As='div',collapsed,children,animation,onCollapseTransitionEnd,className}){const collapsibleRef=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);useCollapseAnimation({collapsibleRef,collapsed,animation});return/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(As// @ts-expect-error: the "too complicated type" is produced from -// "CollapsibleElementType" being a huge union -,{ref:collapsibleRef// Refs are contravariant, which is not expressible in TS -,onTransitionEnd:e=>{if(e.propertyName!=='height'){return;}applyCollapsedStyle(collapsibleRef.current,collapsed);onCollapseTransitionEnd?.(collapsed);},className:className,children:children});}function CollapsibleLazy({collapsed,...props}){const[mounted,setMounted]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!collapsed);// Updated in effect so that first expansion transition can work -const[lazyCollapsed,setLazyCollapsed]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(collapsed);(0,_docusaurus_useIsomorphicLayoutEffect__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A)(()=>{if(!collapsed){setMounted(true);}},[collapsed]);(0,_docusaurus_useIsomorphicLayoutEffect__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A)(()=>{if(mounted){setLazyCollapsed(collapsed);}},[mounted,collapsed]);return mounted?/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(CollapsibleBase,{...props,collapsed:lazyCollapsed}):null;}/** - * A headless component providing smooth and uniform collapsing behavior. The - * component will be invisible (zero height) when collapsed. Doesn't provide - * interactivity by itself: collapse state is toggled through props. - */function Collapsible({lazy,...props}){const Comp=lazy?CollapsibleLazy:CollapsibleBase;return/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(Comp,{...props});} - -/***/ }), - -/***/ 3228: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ M: () => (/* binding */ useAnnouncementBar), -/* harmony export */ o: () => (/* binding */ AnnouncementBarProvider) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6540); -/* harmony import */ var _docusaurus_useIsBrowser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3754); -/* harmony import */ var _utils_storageUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(8463); -/* harmony import */ var _utils_reactUtils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(9129); -/* harmony import */ var _utils_useThemeConfig__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6963); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4848); -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */// Keep these keys in sync with the inlined script -// See packages/docusaurus-theme-classic/src/inlineScripts.ts -const AnnouncementBarDismissStorage=(0,_utils_storageUtils__WEBPACK_IMPORTED_MODULE_3__/* .createStorageSlot */ .Wf)('docusaurus.announcement.dismiss');const IdStorage=(0,_utils_storageUtils__WEBPACK_IMPORTED_MODULE_3__/* .createStorageSlot */ .Wf)('docusaurus.announcement.id');const isDismissedInStorage=()=>AnnouncementBarDismissStorage.get()==='true';const setDismissedInStorage=bool=>AnnouncementBarDismissStorage.set(String(bool));const Context=/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createContext(null);function useContextValue(){const{announcementBar}=(0,_utils_useThemeConfig__WEBPACK_IMPORTED_MODULE_4__/* .useThemeConfig */ .p)();const isBrowser=(0,_docusaurus_useIsBrowser__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A)();const[isClosed,setClosed]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(()=>isBrowser?// On client navigation: init with local storage value -isDismissedInStorage():// On server/hydration: always visible to prevent layout shifts (will be hidden with css if needed) -false);// Update state after hydration -(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(()=>{setClosed(isDismissedInStorage());},[]);const handleClose=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(()=>{setDismissedInStorage(true);setClosed(true);},[]);(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(()=>{if(!announcementBar){return;}const{id}=announcementBar;let viewedId=IdStorage.get();// Retrocompatibility due to spelling mistake of default id -// see https://github.com/facebook/docusaurus/issues/3338 -// cSpell:ignore annoucement -if(viewedId==='annoucement-bar'){viewedId='announcement-bar';}const isNewAnnouncement=id!==viewedId;IdStorage.set(id);if(isNewAnnouncement){setDismissedInStorage(false);}if(isNewAnnouncement||!isDismissedInStorage()){setClosed(false);}},[announcementBar]);return (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(()=>({isActive:!!announcementBar&&!isClosed,close:handleClose}),[announcementBar,isClosed,handleClose]);}function AnnouncementBarProvider({children}){const value=useContextValue();return/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(Context.Provider,{value:value,children:children});}function useAnnouncementBar(){const api=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(Context);if(!api){throw new _utils_reactUtils__WEBPACK_IMPORTED_MODULE_5__/* .ReactContextError */ .dV('AnnouncementBarProvider');}return api;} - -/***/ }), - -/***/ 5407: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ G: () => (/* binding */ useColorMode), -/* harmony export */ a: () => (/* binding */ ColorModeProvider) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6540); -/* harmony import */ var _docusaurus_ExecutionEnvironment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4468); -/* harmony import */ var _utils_reactUtils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(9129); -/* harmony import */ var _utils_storageUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(8463); -/* harmony import */ var _utils_useThemeConfig__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6963); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4848); -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */const Context=/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createContext(undefined);const ColorModeStorageKey='theme';const ColorModeStorage=(0,_utils_storageUtils__WEBPACK_IMPORTED_MODULE_3__/* .createStorageSlot */ .Wf)(ColorModeStorageKey);const ColorModes={light:'light',dark:'dark'};// Ensure to always return a valid colorMode even if input is invalid -const coerceToColorMode=colorMode=>colorMode===ColorModes.dark?ColorModes.dark:ColorModes.light;const ColorModeAttribute={get:()=>{return coerceToColorMode(document.documentElement.getAttribute('data-theme'));},set:colorMode=>{document.documentElement.setAttribute('data-theme',coerceToColorMode(colorMode));}};const readInitialColorMode=()=>{if(!_docusaurus_ExecutionEnvironment__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A.canUseDOM){throw new Error("Can't read initial color mode on the server");}return ColorModeAttribute.get();};const storeColorMode=newColorMode=>{ColorModeStorage.set(coerceToColorMode(newColorMode));};// The color mode state is initialized in useEffect on purpose -// to avoid a React hydration mismatch errors -// The useColorMode() hook value lags behind on purpose -// This helps users avoid hydration mismatch errors in their code -// See also https://github.com/facebook/docusaurus/issues/7986 -function useColorModeState(){const{colorMode:{defaultMode}}=(0,_utils_useThemeConfig__WEBPACK_IMPORTED_MODULE_4__/* .useThemeConfig */ .p)();const[colorMode,setColorModeState]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(defaultMode);(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(()=>{setColorModeState(readInitialColorMode());},[]);return[colorMode,setColorModeState];}function useContextValue(){const{colorMode:{defaultMode,disableSwitch,respectPrefersColorScheme}}=(0,_utils_useThemeConfig__WEBPACK_IMPORTED_MODULE_4__/* .useThemeConfig */ .p)();const[colorMode,setColorModeState]=useColorModeState();(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(()=>{// A site is deployed without disableSwitch -// => User visits the site and has a persisted value -// => Site later enabled disableSwitch -// => Clear the previously stored value to apply the site's setting -if(disableSwitch){ColorModeStorage.del();}},[disableSwitch]);const setColorMode=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((newColorMode,options={})=>{const{persist=true}=options;if(newColorMode){ColorModeAttribute.set(newColorMode);setColorModeState(newColorMode);if(persist){storeColorMode(newColorMode);}}else{if(respectPrefersColorScheme){const osColorMode=window.matchMedia('(prefers-color-scheme: dark)').matches?ColorModes.dark:ColorModes.light;ColorModeAttribute.set(osColorMode);setColorModeState(osColorMode);}else{ColorModeAttribute.set(defaultMode);setColorModeState(defaultMode);}ColorModeStorage.del();}},[setColorModeState,respectPrefersColorScheme,defaultMode]);(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(()=>{if(disableSwitch){return undefined;}return ColorModeStorage.listen(e=>{setColorMode(coerceToColorMode(e.newValue));});},[disableSwitch,setColorMode]);// PCS is coerced to light mode when printing, which causes the color mode to -// be reset to dark when exiting print mode, disregarding user settings. When -// the listener fires only because of a print/screen switch, we don't change -// color mode. See https://github.com/facebook/docusaurus/pull/6490 -const previousMediaIsPrint=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(false);(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(()=>{if(disableSwitch&&!respectPrefersColorScheme){return undefined;}const mql=window.matchMedia('(prefers-color-scheme: dark)');const onChange=()=>{if(window.matchMedia('print').matches||previousMediaIsPrint.current){previousMediaIsPrint.current=window.matchMedia('print').matches;return;}setColorMode(null);};mql.addListener(onChange);return()=>mql.removeListener(onChange);},[setColorMode,disableSwitch,respectPrefersColorScheme]);return (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(()=>({colorMode,setColorMode,get isDarkTheme(){if(false){}return colorMode===ColorModes.dark;},setLightTheme(){if(false){}setColorMode(ColorModes.light);},setDarkTheme(){if(false){}setColorMode(ColorModes.dark);}}),[colorMode,setColorMode]);}function ColorModeProvider({children}){const value=useContextValue();return/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(Context.Provider,{value:value,children:children});}function useColorMode(){const context=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(Context);if(context==null){throw new _utils_reactUtils__WEBPACK_IMPORTED_MODULE_5__/* .ReactContextError */ .dV('ColorModeProvider','Please see https://docusaurus.io/docs/api/themes/configuration#use-color-mode.');}return context;} - -/***/ }), - -/***/ 1021: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - e: () => (/* binding */ NavbarMobileSidebarProvider), - M: () => (/* binding */ useNavbarMobileSidebar) -}); - -// EXTERNAL MODULE: ./node_modules/react/index.js -var react = __webpack_require__(6540); -// EXTERNAL MODULE: ../packages/docusaurus-theme-common/lib/contexts/navbarSecondaryMenu/content.js -var content = __webpack_require__(5105); -// EXTERNAL MODULE: ../packages/docusaurus-theme-common/lib/hooks/useWindowSize.js -var useWindowSize = __webpack_require__(242); -// EXTERNAL MODULE: ../node_modules/react-router/esm/react-router.js -var react_router = __webpack_require__(9519); -// EXTERNAL MODULE: ../packages/docusaurus-theme-common/lib/utils/reactUtils.js -var reactUtils = __webpack_require__(9129); -;// ../packages/docusaurus-theme-common/lib/utils/historyUtils.js -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - *//** - * Permits to register a handler that will be called on history actions (pop, - * push, replace). If the handler returns `false`, the navigation transition - * will be blocked/cancelled. - */function useHistoryActionHandler(handler){const history=(0,react_router/* useHistory */.W6)();const stableHandler=(0,reactUtils/* useEvent */._q)(handler);(0,react.useEffect)(// See https://github.com/remix-run/history/blob/main/docs/blocking-transitions.md -()=>history.block((location,action)=>stableHandler(location,action)),[history,stableHandler]);}/** - * Permits to register a handler that will be called on history pop navigation - * (backward/forward). If the handler returns `false`, the backward/forward - * transition will be blocked. Unfortunately there's no good way to detect the - * "direction" (backward/forward) of the POP event. - */function useHistoryPopHandler(handler){useHistoryActionHandler((location,action)=>{if(action==='POP'){// Maybe block navigation if handler returns false -return handler(location,action);}// Don't block other navigation actions -return undefined;});}/** - * Permits to efficiently subscribe to a slice of the history - * See https://thisweekinreact.com/articles/useSyncExternalStore-the-underrated-react-api - * @param selector - */function useHistorySelector(selector){const history=useHistory();return useSyncExternalStore(history.listen,()=>selector(history),()=>selector(history));}/** - * Permits to efficiently subscribe to a specific querystring value - * @param key - */function useQueryStringValue(key){return useHistorySelector(history=>{if(key===null){return null;}return new URLSearchParams(history.location.search).get(key);});}function useQueryStringUpdater(key){const history=useHistory();return useCallback((newValue,options)=>{const searchParams=new URLSearchParams(history.location.search);if(newValue){searchParams.set(key,newValue);}else{searchParams.delete(key);}const updateHistory=options?.push?history.push:history.replace;updateHistory({search:searchParams.toString()});},[key,history]);}function useQueryString(key){const value=useQueryStringValue(key)??'';const update=useQueryStringUpdater(key);return[value,update];}function useQueryStringListValues(key){// Unfortunately we can't just use searchParams.getAll(key) in the selector -// It would create a new array every time and lead to an infinite loop... -// The selector has to return a primitive/string value to avoid that... -const arrayJsonString=useHistorySelector(history=>{const values=new URLSearchParams(history.location.search).getAll(key);return JSON.stringify(values);});return useMemo(()=>JSON.parse(arrayJsonString),[arrayJsonString]);}function useQueryStringListUpdater(key){const history=useHistory();const setValues=useCallback((update,options)=>{const searchParams=new URLSearchParams(history.location.search);const newValues=Array.isArray(update)?update:update(searchParams.getAll(key));searchParams.delete(key);newValues.forEach(v=>searchParams.append(key,v));const updateHistory=options?.push?history.push:history.replace;updateHistory({search:searchParams.toString()});},[history,key]);return setValues;}function useQueryStringList(key){const values=useQueryStringListValues(key);const setValues=useQueryStringListUpdater(key);return[values,setValues];}function useClearQueryString(){const history=useHistory();return useCallback(()=>{history.replace({search:undefined});},[history]);} -// EXTERNAL MODULE: ../packages/docusaurus-theme-common/lib/utils/useThemeConfig.js -var useThemeConfig = __webpack_require__(6963); -// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js -var jsx_runtime = __webpack_require__(4848); -;// ../packages/docusaurus-theme-common/lib/contexts/navbarMobileSidebar.js -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */const Context=/*#__PURE__*/react.createContext(undefined);function useIsNavbarMobileSidebarDisabled(){const secondaryMenuContent=(0,content/* useNavbarSecondaryMenuContent */.YL)();const{items}=(0,useThemeConfig/* useThemeConfig */.p)().navbar;return items.length===0&&!secondaryMenuContent.component;}function useContextValue(){const disabled=useIsNavbarMobileSidebarDisabled();const windowSize=(0,useWindowSize/* useWindowSize */.l)();const shouldRender=!disabled&&windowSize==='mobile';const[shown,setShown]=(0,react.useState)(false);// Close mobile sidebar on navigation pop -// Most likely firing when using the Android back button (but not only) -useHistoryPopHandler(()=>{if(shown){setShown(false);// Prevent pop navigation; seems desirable enough -// See https://github.com/facebook/docusaurus/pull/5462#issuecomment-911699846 -return false;}return undefined;});const toggle=(0,react.useCallback)(()=>{setShown(s=>!s);},[]);(0,react.useEffect)(()=>{if(windowSize==='desktop'){setShown(false);}},[windowSize]);return (0,react.useMemo)(()=>({disabled,shouldRender,toggle,shown}),[disabled,shouldRender,toggle,shown]);}function NavbarMobileSidebarProvider({children}){const value=useContextValue();return/*#__PURE__*/(0,jsx_runtime.jsx)(Context.Provider,{value:value,children:children});}function useNavbarMobileSidebar(){const context=react.useContext(Context);if(context===undefined){throw new reactUtils/* ReactContextError */.dV('NavbarMobileSidebarProvider');}return context;} - -/***/ }), - -/***/ 5105: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ GX: () => (/* binding */ NavbarSecondaryMenuFiller), -/* harmony export */ YL: () => (/* binding */ useNavbarSecondaryMenuContent), -/* harmony export */ y_: () => (/* binding */ NavbarSecondaryMenuContentProvider) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6540); -/* harmony import */ var _utils_reactUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9129); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4848); -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */const Context=/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createContext(null);/** @internal */function NavbarSecondaryMenuContentProvider({children}){const value=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)({component:null,props:null});return(/*#__PURE__*/// @ts-expect-error: this context is hard to type -(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Context.Provider,{value:value,children:children}));}/** @internal */function useNavbarSecondaryMenuContent(){const value=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(Context);if(!value){throw new _utils_reactUtils__WEBPACK_IMPORTED_MODULE_2__/* .ReactContextError */ .dV('NavbarSecondaryMenuContentProvider');}return value[0];}/** - * This component renders nothing by itself, but it fills the placeholder in the - * generic secondary menu layout. This reduces coupling between the main layout - * and the specific page. - * - * This kind of feature is often called portal/teleport/gateway/outlet... - * Various unmaintained React libs exist. Most up-to-date one: - * https://github.com/gregberge/react-teleporter - * Not sure any of those is safe regarding concurrent mode. - */function NavbarSecondaryMenuFiller({component,props}){const context=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(Context);if(!context){throw new _utils_reactUtils__WEBPACK_IMPORTED_MODULE_2__/* .ReactContextError */ .dV('NavbarSecondaryMenuContentProvider');}const[,setContent]=context;// To avoid useless context re-renders, props are memoized shallowly -const memoizedProps=(0,_utils_reactUtils__WEBPACK_IMPORTED_MODULE_2__/* .useShallowMemoObject */ .Be)(props);(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(()=>{// @ts-expect-error: this context is hard to type -setContent({component,props:memoizedProps});},[setContent,component,memoizedProps]);(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(()=>()=>setContent({component:null,props:null}),[setContent]);return null;} - -/***/ }), - -/***/ 4684: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ J: () => (/* binding */ useKeyboardNavigation), -/* harmony export */ w: () => (/* binding */ keyboardFocusedClassName) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6540); -/* harmony import */ var _styles_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7317); -/* harmony import */ var _styles_css__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_styles_css__WEBPACK_IMPORTED_MODULE_1__); -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */const keyboardFocusedClassName='navigation-with-keyboard';/** - * Side-effect that adds the `keyboardFocusedClassName` to the body element when - * the keyboard has been pressed, or removes it when the mouse is clicked. - * - * The presence of this class name signals that the user may be using keyboard - * for navigation, and the theme **must** add focus outline when this class name - * is present. (And optionally not if it's absent, for design purposes) - * - * Inspired by https://hackernoon.com/removing-that-ugly-focus-ring-and-keeping-it-too-6c8727fefcd2 - */function useKeyboardNavigation(){(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(()=>{function handleOutlineStyles(e){if(e.type==='keydown'&&e.key==='Tab'){document.body.classList.add(keyboardFocusedClassName);}if(e.type==='mousedown'){document.body.classList.remove(keyboardFocusedClassName);}}document.addEventListener('keydown',handleOutlineStyles);document.addEventListener('mousedown',handleOutlineStyles);return()=>{document.body.classList.remove(keyboardFocusedClassName);document.removeEventListener('keydown',handleOutlineStyles);document.removeEventListener('mousedown',handleOutlineStyles);};},[]);} - -/***/ }), - -/***/ 242: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ l: () => (/* binding */ useWindowSize) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6540); -/* harmony import */ var _docusaurus_ExecutionEnvironment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4468); -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */const windowSizes={desktop:'desktop',mobile:'mobile',ssr:'ssr'};// Note: this value is also hardcoded in Infima -// Both JS and CSS must have the same value -// Updating this JS value alone is not enough -// See https://github.com/facebook/docusaurus/issues/9603 -const DesktopBreakpoint=996;function getWindowSize(desktopBreakpoint){if(!_docusaurus_ExecutionEnvironment__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A.canUseDOM){throw new Error('getWindowSize() should only be called after React hydration');}return window.innerWidth>desktopBreakpoint?windowSizes.desktop:windowSizes.mobile;}/** - * Gets the current window size as an enum value. We don't want it to return the - * actual width value, so that it only re-renders once a breakpoint is crossed. - * - * It may return `"ssr"`, which is very important to handle hydration FOUC or - * layout shifts. You have to handle it explicitly upfront. On the server, you - * may need to render BOTH the mobile/desktop elements (and hide one of them - * with mediaquery). We don't return `undefined` on purpose, to make it more - * explicit. - */function useWindowSize({desktopBreakpoint=DesktopBreakpoint}={}){const[windowSize,setWindowSize]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(()=>// super important to return a constant value to avoid hydration mismatch -// see https://github.com/facebook/docusaurus/issues/9379 -'ssr');(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(()=>{function updateWindowSize(){setWindowSize(getWindowSize(desktopBreakpoint));}updateWindowSize();window.addEventListener('resize',updateWindowSize);return()=>{window.removeEventListener('resize',updateWindowSize);};},[desktopBreakpoint]);return windowSize;} - -/***/ }), - -/***/ 7374: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Y4: () => (/* binding */ BlogAuthorNoPostsLabel), -/* harmony export */ ZD: () => (/* binding */ useBlogTagsPostsPageTitle), -/* harmony export */ np: () => (/* binding */ BlogAuthorsListViewAllLabel), -/* harmony export */ uz: () => (/* binding */ translateBlogAuthorsListPageTitle), -/* harmony export */ wI: () => (/* binding */ useBlogAuthorPageTitle) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6540); -/* harmony import */ var _docusaurus_Translate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4709); -/* harmony import */ var _utils_usePluralForm__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7054); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4848); -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */// Only used locally -function useBlogPostsPlural(){const{selectMessage}=(0,_utils_usePluralForm__WEBPACK_IMPORTED_MODULE_3__/* .usePluralForm */ .W)();return count=>selectMessage(count,(0,_docusaurus_Translate__WEBPACK_IMPORTED_MODULE_1__/* .translate */ .T)({id:'theme.blog.post.plurals',description:'Pluralized label for "{count} posts". Use as much plural forms (separated by "|") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)',message:'One post|{count} posts'},{count}));}function useBlogTagsPostsPageTitle(tag){const blogPostsPlural=useBlogPostsPlural();return (0,_docusaurus_Translate__WEBPACK_IMPORTED_MODULE_1__/* .translate */ .T)({id:'theme.blog.tagTitle',description:'The title of the page for a blog tag',message:'{nPosts} tagged with "{tagName}"'},{nPosts:blogPostsPlural(tag.count),tagName:tag.label});}function useBlogAuthorPageTitle(author){const blogPostsPlural=useBlogPostsPlural();return (0,_docusaurus_Translate__WEBPACK_IMPORTED_MODULE_1__/* .translate */ .T)({id:'theme.blog.author.pageTitle',description:'The title of the page for a blog author',message:'{authorName} - {nPosts}'},{nPosts:blogPostsPlural(author.count),authorName:author.name||author.key});}const translateBlogAuthorsListPageTitle=()=>(0,_docusaurus_Translate__WEBPACK_IMPORTED_MODULE_1__/* .translate */ .T)({id:'theme.blog.authorsList.pageTitle',message:'Authors',description:'The title of the authors page'});function BlogAuthorsListViewAllLabel(){return/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_docusaurus_Translate__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A,{id:"theme.blog.authorsList.viewAll",description:"The label of the link targeting the blog authors page",children:"View all authors"});}function BlogAuthorNoPostsLabel(){return/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_docusaurus_Translate__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A,{id:"theme.blog.author.noPosts",description:"The text for authors with 0 blog post",children:"This author has not written any posts yet."});} - -/***/ }), - -/***/ 9137: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ AE: () => (/* binding */ UnlistedMetadata), -/* harmony export */ Rc: () => (/* binding */ UnlistedBannerTitle), -/* harmony export */ TT: () => (/* binding */ DraftBannerMessage), -/* harmony export */ Uh: () => (/* binding */ UnlistedBannerMessage), -/* harmony export */ Yh: () => (/* binding */ DraftBannerTitle) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6540); -/* harmony import */ var _docusaurus_Translate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4709); -/* harmony import */ var _docusaurus_Head__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2785); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4848); -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function UnlistedBannerTitle(){return/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_docusaurus_Translate__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A,{id:"theme.contentVisibility.unlistedBanner.title",description:"The unlisted content banner title",children:"Unlisted page"});}function UnlistedBannerMessage(){return/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_docusaurus_Translate__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A,{id:"theme.contentVisibility.unlistedBanner.message",description:"The unlisted content banner message",children:"This page is unlisted. Search engines will not index it, and only users having a direct link can access it."});}// TODO Docusaurus v4 breaking change (since it's v3 public theme-common API :/) -// Move this to theme/ContentVisibility/Unlisted -function UnlistedMetadata(){return/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_docusaurus_Head__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A,{children:/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("meta",{name:"robots",content:"noindex, nofollow"})});}function DraftBannerTitle(){return/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_docusaurus_Translate__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A,{id:"theme.contentVisibility.draftBanner.title",description:"The draft content banner title",children:"Draft page"});}function DraftBannerMessage(){return/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_docusaurus_Translate__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A,{id:"theme.contentVisibility.draftBanner.message",description:"The draft content banner message",children:"This page is a draft. It will only be visible in dev and be excluded from the production build."});} - -/***/ }), - -/***/ 9153: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ i: () => (/* binding */ useDateTimeFormat) -/* harmony export */ }); -/* unused harmony export useCalendar */ -/* harmony import */ var _docusaurus_useDocusaurusContext__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1571); -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function useCalendar(){const{i18n:{currentLocale,localeConfigs}}=(0,_docusaurus_useDocusaurusContext__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A)();return localeConfigs[currentLocale].calendar;}function useDateTimeFormat(options={}){const{i18n:{currentLocale}}=(0,_docusaurus_useDocusaurusContext__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A)();const calendar=useCalendar();return new Intl.DateTimeFormat(currentLocale,{calendar,...options});} - -/***/ }), - -/***/ 8532: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ G: () => (/* binding */ ThemeClassNames) -/* harmony export */ }); -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */// Please do not modify the classnames! This is a breaking change, and annoying -// for users! -/** - * These class names are used to style page layouts in Docusaurus, meant to be - * targeted by user-provided custom CSS selectors. - */const ThemeClassNames={page:{blogListPage:'blog-list-page',blogPostPage:'blog-post-page',blogTagsListPage:'blog-tags-list-page',blogTagPostListPage:'blog-tags-post-list-page',blogAuthorsListPage:'blog-authors-list-page',blogAuthorsPostsPage:'blog-authors-posts-page',docsDocPage:'docs-doc-page',docsTagsListPage:'docs-tags-list-page',docsTagDocListPage:'docs-tags-doc-list-page',mdxPage:'mdx-page'},// TODO Docusaurus v4: remove old classes? -wrapper:{main:'main-wrapper',// replaced by theme-layout-main -// TODO these wrapper class names are now quite useless -// TODO do breaking change later in 3.0 -// we already add plugin name/id class on : that's enough -blogPages:'blog-wrapper',docsPages:'docs-wrapper',mdxPages:'mdx-wrapper'},common:{editThisPage:'theme-edit-this-page',lastUpdated:'theme-last-updated',backToTopButton:'theme-back-to-top-button',codeBlock:'theme-code-block',admonition:'theme-admonition',unlistedBanner:'theme-unlisted-banner',draftBanner:'theme-draft-banner',admonitionType:type=>`theme-admonition-${type}`},announcementBar:{container:'theme-announcement-bar'},layout:{navbar:{container:'theme-layout-navbar',containerLeft:'theme-layout-navbar-left',containerRight:'theme-layout-navbar-right',mobileSidebar:{container:'theme-layout-navbar-sidebar',panel:'theme-layout-navbar-sidebar-panel'}},main:{container:'theme-layout-main'},footer:{container:'theme-layout-footer',column:'theme-layout-footer-column'}},/** - * Follows the naming convention "theme-{blog,doc,version,page}?- " - */docs:{docVersionBanner:'theme-doc-version-banner',docVersionBadge:'theme-doc-version-badge',docBreadcrumbs:'theme-doc-breadcrumbs',docMarkdown:'theme-doc-markdown',docTocMobile:'theme-doc-toc-mobile',docTocDesktop:'theme-doc-toc-desktop',docFooter:'theme-doc-footer',docFooterTagsRow:'theme-doc-footer-tags-row',docFooterEditMetaRow:'theme-doc-footer-edit-meta-row',docSidebarContainer:'theme-doc-sidebar-container',docSidebarMenu:'theme-doc-sidebar-menu',docSidebarItemCategory:'theme-doc-sidebar-item-category',docSidebarItemLink:'theme-doc-sidebar-item-link',docSidebarItemCategoryLevel:level=>`theme-doc-sidebar-item-category-level-${level}`,docSidebarItemLinkLevel:level=>`theme-doc-sidebar-item-link-level-${level}`// TODO add other stable classNames here -},blog:{// TODO add other stable classNames here -blogFooterTagsRow:'theme-blog-footer-tags-row',blogFooterEditMetaRow:'theme-blog-footer-edit-meta-row'},pages:{pageFooterEditMetaRow:'theme-pages-footer-edit-meta-row'}}; - -/***/ }), - -/***/ 644: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ O: () => (/* binding */ prefersReducedMotion) -/* harmony export */ }); -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function prefersReducedMotion(){return window.matchMedia('(prefers-reduced-motion: reduce)').matches;} - -/***/ }), - -/***/ 29: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ $z: () => (/* binding */ groupBy), -/* harmony export */ sb: () => (/* binding */ uniq) -/* harmony export */ }); -/* unused harmony export duplicates */ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */// A replacement of lodash in client code -/** - * Gets the duplicate values in an array. - * @param arr The array. - * @param comparator Compares two values and returns `true` if they are equal - * (duplicated). - * @returns Value of the elements `v` that have a preceding element `u` where - * `comparator(u, v) === true`. Values within the returned array are not - * guaranteed to be unique. - */function duplicates(arr,comparator=(a,b)=>a===b){return arr.filter((v,vIndex)=>arr.findIndex(u=>comparator(u,v))!==vIndex);}/** - * Remove duplicate array items (similar to `_.uniq`) - * @param arr The array. - * @returns An array with duplicate elements removed by reference comparison. - */function uniq(arr){// Note: had problems with [...new Set()]: https://github.com/facebook/docusaurus/issues/4972#issuecomment-863895061 -return Array.from(new Set(arr));}// TODO 2025: replace by std Object.groupBy ? -// This is a local polyfill with exact same TS signature -// see https://github.com/microsoft/TypeScript/blob/main/src/lib/esnext.object.d.ts -function groupBy(items,keySelector){const result={};let index=0;for(const item of items){const key=keySelector(item,index);result[key]??=[];result[key].push(item);index+=1;}return result;} - -/***/ }), - -/***/ 5861: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - e3: () => (/* binding */ HtmlClassNameProvider), - be: () => (/* binding */ PageMetadata), - Jx: () => (/* binding */ PluginHtmlClassNameProvider) -}); - -// EXTERNAL MODULE: ./node_modules/react/index.js -var react = __webpack_require__(6540); -// EXTERNAL MODULE: ../node_modules/clsx/dist/clsx.mjs -var clsx = __webpack_require__(1750); -// EXTERNAL MODULE: ../packages/docusaurus/lib/client/exports/Head.js -var Head = __webpack_require__(2785); -// EXTERNAL MODULE: ../packages/docusaurus/lib/client/exports/useRouteContext.js -var useRouteContext = __webpack_require__(9060); -// EXTERNAL MODULE: ../packages/docusaurus/lib/client/exports/useBaseUrl.js -var useBaseUrl = __webpack_require__(5000); -// EXTERNAL MODULE: ../packages/docusaurus/lib/client/exports/useDocusaurusContext.js -var useDocusaurusContext = __webpack_require__(1571); -;// ../packages/docusaurus-theme-common/lib/utils/generalUtils.js -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - *//** - * Formats the page's title based on relevant site config and other contexts. - */function useTitleFormatter(title){const{siteConfig}=(0,useDocusaurusContext/* default */.A)();const{title:siteTitle,titleDelimiter}=siteConfig;return title?.trim().length?`${title.trim()} ${titleDelimiter} ${siteTitle}`:siteTitle;} -// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js -var jsx_runtime = __webpack_require__(4848); -;// ../packages/docusaurus-theme-common/lib/utils/metadataUtils.js -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - *//** - * Helper component to manipulate page metadata and override site defaults. - * Works in the same way as Helmet. - */function PageMetadata({title,description,keywords,image,children}){const pageTitle=useTitleFormatter(title);const{withBaseUrl}=(0,useBaseUrl/* useBaseUrlUtils */.hH)();const pageImage=image?withBaseUrl(image,{absolute:true}):undefined;return/*#__PURE__*/(0,jsx_runtime.jsxs)(Head/* default */.A,{children:[title&&/*#__PURE__*/(0,jsx_runtime.jsx)("title",{children:pageTitle}),title&&/*#__PURE__*/(0,jsx_runtime.jsx)("meta",{property:"og:title",content:pageTitle}),description&&/*#__PURE__*/(0,jsx_runtime.jsx)("meta",{name:"description",content:description}),description&&/*#__PURE__*/(0,jsx_runtime.jsx)("meta",{property:"og:description",content:description}),keywords&&/*#__PURE__*/(0,jsx_runtime.jsx)("meta",{name:"keywords",content:// https://github.com/microsoft/TypeScript/issues/17002 -Array.isArray(keywords)?keywords.join(','):keywords}),pageImage&&/*#__PURE__*/(0,jsx_runtime.jsx)("meta",{property:"og:image",content:pageImage}),pageImage&&/*#__PURE__*/(0,jsx_runtime.jsx)("meta",{name:"twitter:image",content:pageImage}),children]});}const HtmlClassNameContext=/*#__PURE__*/react.createContext(undefined);/** - * Every layer of this provider will append a class name to the HTML element. - * There's no consumer for this hook: it's side-effect-only. This wrapper is - * necessary because Helmet does not "merge" classes. - * @see https://github.com/staylor/react-helmet-async/issues/161 - */function HtmlClassNameProvider({className:classNameProp,children}){const classNameContext=react.useContext(HtmlClassNameContext);const className=(0,clsx/* default */.A)(classNameContext,classNameProp);return/*#__PURE__*/(0,jsx_runtime.jsxs)(HtmlClassNameContext.Provider,{value:className,children:[/*#__PURE__*/(0,jsx_runtime.jsx)(Head/* default */.A,{children:/*#__PURE__*/(0,jsx_runtime.jsx)("html",{className:className})}),children]});}function pluginNameToClassName(pluginName){return`plugin-${pluginName.replace(/docusaurus-(?:plugin|theme)-(?:content-)?/gi,'')}`;}/** - * A very thin wrapper around `HtmlClassNameProvider` that adds the plugin ID + - * name to the HTML class name. - */function PluginHtmlClassNameProvider({children}){const routeContext=(0,useRouteContext/* default */.A)();const nameClass=pluginNameToClassName(routeContext.plugin.name);const idClass=`plugin-id-${routeContext.plugin.id}`;return/*#__PURE__*/(0,jsx_runtime.jsx)(HtmlClassNameProvider,{className:(0,clsx/* default */.A)(nameClass,idClass),children:children});} - -/***/ }), - -/***/ 9129: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Be: () => (/* binding */ useShallowMemoObject), -/* harmony export */ ZC: () => (/* binding */ usePrevious), -/* harmony export */ _q: () => (/* binding */ useEvent), -/* harmony export */ dV: () => (/* binding */ ReactContextError), -/* harmony export */ fM: () => (/* binding */ composeProviders) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6540); -/* harmony import */ var _docusaurus_useIsomorphicLayoutEffect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(610); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4848); -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - *//** - * Temporary userland implementation until an official hook is implemented - * See RFC: https://github.com/reactjs/rfcs/pull/220 - * - * Permits to transform an unstable callback (like an arrow function provided as - * props) to a "stable" callback that is safe to use in a `useEffect` dependency - * array. Useful to avoid React stale closure problems + avoid useless effect - * re-executions. - * - * This generally works but has some potential drawbacks, such as - * https://github.com/facebook/react/issues/16956#issuecomment-536636418 - */function useEvent(callback){const ref=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(callback);(0,_docusaurus_useIsomorphicLayoutEffect__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A)(()=>{ref.current=callback;},[callback]);// @ts-expect-error: TS is right that this callback may be a supertype of T, -// but good enough for our use -return (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((...args)=>ref.current(...args),[]);}/** - * Gets `value` from the last render. - */function usePrevious(value){const ref=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();(0,_docusaurus_useIsomorphicLayoutEffect__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A)(()=>{ref.current=value;});return ref.current;}/** - * This error is thrown when a context is consumed outside its provider. Allows - * reusing a generic error message format and reduces bundle size. The hook's - * name will be extracted from its stack, so only the provider's name is needed. - */class ReactContextError extends Error{constructor(providerName,additionalInfo){super();this.name='ReactContextError';this.message=`Hook ${this.stack?.split('\n')[1]?.match(/at (?:\w+\.)?(? \w+)/)?.groups.name??''} is called outside the <${providerName}>. ${additionalInfo??''}`;}}/** - * Shallow-memoize an object. This means the returned object will be the same as - * the previous render if the property keys and values did not change. This - * works for simple cases: when property values are primitives or stable - * objects. - * - * @param obj - */function useShallowMemoObject(obj){const deps=Object.entries(obj);// Sort by keys to make it order-insensitive -deps.sort((a,b)=>a[0].localeCompare(b[0]));// eslint-disable-next-line react-hooks/exhaustive-deps -return (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(()=>obj,deps.flat());}/** - * Creates a single React provider from an array of existing providers - * assuming providers only take "children" as props. - * - * Prevents the annoying React element nesting - * Example here: https://getfrontend.tips/compose-multiple-react-providers/ - * - * The order matters: - * - The first provider is at the top of the tree. - * - The last provider is the most nested one - * - * @param providers array of providers to compose - */function composeProviders(providers){// Creates a single React component: it's cheaper to compose JSX elements -return({children})=>/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.Fragment,{children:providers.reduceRight((element,CurrentProvider)=>/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(CurrentProvider,{children:element}),children)});} - -/***/ }), - -/***/ 5438: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Dt: () => (/* binding */ useHomePageRoute), -/* harmony export */ ys: () => (/* binding */ isSamePath) -/* harmony export */ }); -/* unused harmony export findHomePageRoute */ -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6540); -/* harmony import */ var _generated_routes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5788); -/* harmony import */ var _docusaurus_useDocusaurusContext__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1571); -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - *//** - * Compare the 2 paths, case insensitive and ignoring trailing slash - */function isSamePath(path1,path2){const normalize=pathname=>(!pathname||pathname.endsWith('/')?pathname:`${pathname}/`)?.toLowerCase();return normalize(path1)===normalize(path2);}/** - * Note that sites don't always have a homepage in practice, so we can't assume - * that linking to '/' is always safe. - * @see https://github.com/facebook/docusaurus/pull/6517#issuecomment-1048709116 - */function findHomePageRoute({baseUrl,routes:initialRoutes}){function isHomePageRoute(route){return route.path===baseUrl&&route.exact===true;}function isHomeParentRoute(route){return route.path===baseUrl&&!route.exact;}function doFindHomePageRoute(routes){if(routes.length===0){return undefined;}const homePage=routes.find(isHomePageRoute);if(homePage){return homePage;}const indexSubRoutes=routes.filter(isHomeParentRoute).flatMap(route=>route.routes??[]);return doFindHomePageRoute(indexSubRoutes);}return doFindHomePageRoute(initialRoutes);}/** - * Fetches the route that points to "/". Use this instead of the naive "/", - * because the homepage may not exist. - */function useHomePageRoute(){const{baseUrl}=(0,_docusaurus_useDocusaurusContext__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A)().siteConfig;return (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(()=>findHomePageRoute({routes:_generated_routes__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A,baseUrl}),[baseUrl]);} - -/***/ }), - -/***/ 4195: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Mq: () => (/* binding */ useScrollPosition), -/* harmony export */ Tv: () => (/* binding */ ScrollControllerProvider), -/* harmony export */ gk: () => (/* binding */ useSmoothScrollTo) -/* harmony export */ }); -/* unused harmony exports useScrollController, useScrollPositionBlocker */ -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6540); -/* harmony import */ var _docusaurus_ExecutionEnvironment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4468); -/* harmony import */ var _docusaurus_useIsBrowser__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3754); -/* harmony import */ var _docusaurus_useIsomorphicLayoutEffect__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(610); -/* harmony import */ var _reactUtils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(9129); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(4848); -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function useScrollControllerContextValue(){const scrollEventsEnabledRef=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(true);return (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(()=>({scrollEventsEnabledRef,enableScrollEvents:()=>{scrollEventsEnabledRef.current=true;},disableScrollEvents:()=>{scrollEventsEnabledRef.current=false;}}),[]);}const ScrollMonitorContext=/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createContext(undefined);function ScrollControllerProvider({children}){const value=useScrollControllerContextValue();return/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(ScrollMonitorContext.Provider,{value:value,children:children});}/** - * We need a way to update the scroll position while ignoring scroll events - * so as not to toggle Navbar/BackToTop visibility. - * - * This API permits to temporarily disable/ignore scroll events. Motivated by - * https://github.com/facebook/docusaurus/pull/5618 - */function useScrollController(){const context=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(ScrollMonitorContext);if(context==null){throw new _reactUtils__WEBPACK_IMPORTED_MODULE_5__/* .ReactContextError */ .dV('ScrollControllerProvider');}return context;}const getScrollPosition=()=>_docusaurus_ExecutionEnvironment__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A.canUseDOM?{scrollX:window.pageXOffset,scrollY:window.pageYOffset}:null;/** - * This hook fires an effect when the scroll position changes. The effect will - * be provided with the before/after scroll positions. Note that the effect may - * not be always run: if scrolling is disabled through `useScrollController`, it - * will be a no-op. - * - * @see {@link useScrollController} - */function useScrollPosition(effect,deps=[]){const{scrollEventsEnabledRef}=useScrollController();const lastPositionRef=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(getScrollPosition());const dynamicEffect=(0,_reactUtils__WEBPACK_IMPORTED_MODULE_5__/* .useEvent */ ._q)(effect);(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(()=>{const handleScroll=()=>{if(!scrollEventsEnabledRef.current){return;}const currentPosition=getScrollPosition();dynamicEffect(currentPosition,lastPositionRef.current);lastPositionRef.current=currentPosition;};const opts={passive:true};handleScroll();window.addEventListener('scroll',handleScroll,opts);return()=>window.removeEventListener('scroll',handleScroll,opts);// eslint-disable-next-line react-hooks/exhaustive-deps -},[dynamicEffect,scrollEventsEnabledRef,...deps]);}function useScrollPositionSaver(){const lastElementRef=useRef({elem:null,top:0});const save=useCallback(elem=>{lastElementRef.current={elem,top:elem.getBoundingClientRect().top};},[]);const restore=useCallback(()=>{const{current:{elem,top}}=lastElementRef;if(!elem){return{restored:false};}const newTop=elem.getBoundingClientRect().top;const heightDiff=newTop-top;if(heightDiff){window.scrollBy({left:0,top:heightDiff});}lastElementRef.current={elem:null,top:0};return{restored:heightDiff!==0};},[]);return useMemo(()=>({save,restore}),[restore,save]);}/** - * This hook permits to "block" the scroll position of a DOM element. - * The idea is that we should be able to update DOM content above this element - * but the screen position of this element should not change. - * - * Feature motivated by the Tabs groups: clicking on a tab may affect tabs of - * the same group upper in the tree, yet to avoid a bad UX, the clicked tab must - * remain under the user mouse. - * - * @see https://github.com/facebook/docusaurus/pull/5618 - */function useScrollPositionBlocker(){const scrollController=useScrollController();const scrollPositionSaver=useScrollPositionSaver();const nextLayoutEffectCallbackRef=useRef(undefined);const blockElementScrollPositionUntilNextRender=useCallback(el=>{scrollPositionSaver.save(el);scrollController.disableScrollEvents();nextLayoutEffectCallbackRef.current=()=>{const{restored}=scrollPositionSaver.restore();nextLayoutEffectCallbackRef.current=undefined;// Restoring the former scroll position will trigger a scroll event. We -// need to wait for next scroll event to happen before enabling the -// scrollController events again. -if(restored){const handleScrollRestoreEvent=()=>{scrollController.enableScrollEvents();window.removeEventListener('scroll',handleScrollRestoreEvent);};window.addEventListener('scroll',handleScrollRestoreEvent);}else{scrollController.enableScrollEvents();}};},[scrollController,scrollPositionSaver]);useIsomorphicLayoutEffect(()=>{// Queuing permits to restore scroll position after all useLayoutEffect -// have run, and yet preserve the sync nature of the scroll restoration -// See https://github.com/facebook/docusaurus/issues/8625 -queueMicrotask(()=>nextLayoutEffectCallbackRef.current?.());});return{blockElementScrollPositionUntilNextRender};}function smoothScrollNative(top){window.scrollTo({top,behavior:'smooth'});return()=>{// Nothing to cancel, it's natively cancelled if user tries to scroll down -};}function smoothScrollPolyfill(top){let raf=null;const isUpScroll=document.documentElement.scrollTop>top;function rafRecursion(){const currentScroll=document.documentElement.scrollTop;if(isUpScroll&¤tScroll>top||!isUpScroll&¤tScroll raf&&cancelAnimationFrame(raf);}/** - * A "smart polyfill" of `window.scrollTo({ top, behavior: "smooth" })`. - * This currently always uses a polyfilled implementation unless - * `scroll-behavior: smooth` has been set in CSS, because native support - * detection for scroll behavior seems unreliable. - * - * This hook does not do anything by itself: it returns a start and a stop - * handle. You can execute either handle at any time. - */function useSmoothScrollTo(){const cancelRef=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);const isBrowser=(0,_docusaurus_useIsBrowser__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A)();// Not all have support for smooth scrolling (particularly Safari mobile iOS) -// TODO proper detection is currently unreliable! -// see https://github.com/wessberg/scroll-behavior-polyfill/issues/16 -// For now, we only use native scroll behavior if smooth is already set, -// because otherwise the polyfill produces a weird UX when both CSS and JS try -// to scroll a page, and they cancel each other. -const supportsNativeSmoothScrolling=isBrowser&&getComputedStyle(document.documentElement).scrollBehavior==='smooth';return{startScroll:top=>{cancelRef.current=supportsNativeSmoothScrolling?smoothScrollNative(top):smoothScrollPolyfill(top);},cancelScroll:()=>cancelRef.current?.()};} - -/***/ }), - -/***/ 8463: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - Wf: () => (/* binding */ createStorageSlot) -}); - -// UNUSED EXPORTS: listStorageKeys, useStorageSlot - -// EXTERNAL MODULE: ./node_modules/react/index.js -var react = __webpack_require__(6540); -;// ./.docusaurus/site-storage.json -const site_storage_namespaceObject = /*#__PURE__*/JSON.parse('{"N":"localStorage","M":""}'); -;// ../packages/docusaurus-theme-common/lib/utils/storageUtils.js -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */const DefaultStorageType=site_storage_namespaceObject.N;function applyNamespace(storageKey){return`${storageKey}${site_storage_namespaceObject.M}`;}// window.addEventListener('storage') only works for different windows... -// so for current window we have to dispatch the event manually -// Now we can listen for both cross-window / current-window storage changes! -// see https://stackoverflow.com/a/71177640/82609 -// see https://stackoverflow.com/questions/26974084/listen-for-changes-with-localstorage-on-the-same-window -function dispatchChangeEvent({key,oldValue,newValue,storage}){// If we set multiple times the same storage value, events should not be fired -// The native events behave this way, so our manual event dispatch should -// rather behave exactly the same. Not doing so might create infinite loops. -// See https://github.com/facebook/docusaurus/issues/8594 -if(oldValue===newValue){return;}const event=document.createEvent('StorageEvent');event.initStorageEvent('storage',false,false,key,oldValue,newValue,window.location.href,storage);window.dispatchEvent(event);}/** - * Will return `null` if browser storage is unavailable (like running Docusaurus - * in an iframe). This should NOT be called in SSR. - * - * @see https://github.com/facebook/docusaurus/pull/4501 - */function getBrowserStorage(storageType=DefaultStorageType){if(typeof window==='undefined'){throw new Error('Browser storage is not available on Node.js/Docusaurus SSR process.');}if(storageType==='none'){return null;}try{return window[storageType];}catch(err){logOnceBrowserStorageNotAvailableWarning(err);return null;}}let hasLoggedBrowserStorageNotAvailableWarning=false;/** - * Poor man's memoization to avoid logging multiple times the same warning. - * Sometimes, `localStorage`/`sessionStorage` is unavailable due to browser - * policies. - */function logOnceBrowserStorageNotAvailableWarning(error){if(!hasLoggedBrowserStorageNotAvailableWarning){console.warn(`Docusaurus browser storage is not available. -Possible reasons: running Docusaurus in an iframe, in an incognito browser session, or using too strict browser privacy settings.`,error);hasLoggedBrowserStorageNotAvailableWarning=true;}}const NoopStorageSlot={get:()=>null,set:()=>{},del:()=>{},listen:()=>()=>{}};// Fail-fast, as storage APIs should not be used during the SSR process -function createServerStorageSlot(key){function throwError(){throw new Error(`Illegal storage API usage for storage key "${key}". -Docusaurus storage APIs are not supposed to be called on the server-rendering process. -Please only call storage APIs in effects and event handlers.`);}return{get:throwError,set:throwError,del:throwError,listen:throwError};}/** - * Creates an interface to work on a particular key in the storage model. - * Note that this function only initializes the interface, but doesn't allocate - * anything by itself (i.e. no side-effects). - * - * The API is fail-safe, since usage of browser storage should be considered - * unreliable. Local storage might simply be unavailable (iframe + browser - * security) or operations might fail individually. Please assume that using - * this API can be a no-op. See also https://github.com/facebook/docusaurus/issues/6036 - */function createStorageSlot(keyInput,options){const key=applyNamespace(keyInput);if(typeof window==='undefined'){return createServerStorageSlot(key);}const storage=getBrowserStorage(options?.persistence);if(storage===null){return NoopStorageSlot;}return{get:()=>{try{return storage.getItem(key);}catch(err){console.error(`Docusaurus storage error, can't get key=${key}`,err);return null;}},set:newValue=>{try{const oldValue=storage.getItem(key);storage.setItem(key,newValue);dispatchChangeEvent({key,oldValue,newValue,storage});}catch(err){console.error(`Docusaurus storage error, can't set ${key}=${newValue}`,err);}},del:()=>{try{const oldValue=storage.getItem(key);storage.removeItem(key);dispatchChangeEvent({key,oldValue,newValue:null,storage});}catch(err){console.error(`Docusaurus storage error, can't delete key=${key}`,err);}},listen:onChange=>{try{const listener=event=>{if(event.storageArea===storage&&event.key===key){onChange(event);}};window.addEventListener('storage',listener);return()=>window.removeEventListener('storage',listener);}catch(err){console.error(`Docusaurus storage error, can't listen for changes of key=${key}`,err);return()=>{};}}};}function useStorageSlot(key,options){// Not ideal but good enough: assumes storage slot config is constant -const storageSlot=useRef(()=>{if(key===null){return NoopStorageSlot;}return createStorageSlot(key,options);}).current();const listen=useCallback(onChange=>{// Do not try to add a listener during SSR -if(typeof window==='undefined'){return()=>{};}return storageSlot.listen(onChange);},[storageSlot]);const currentValue=useSyncExternalStore(listen,()=>{// react-test-renderer (deprecated) never call getServerSnapshot() :/ -if(false){}return storageSlot.get();},()=>null);return[currentValue,storageSlot];}/** - * Returns a list of all the keys currently stored in browser storage, - * or an empty list if browser storage can't be accessed. - */function listStorageKeys(storageType=DefaultStorageType){const browserStorage=getBrowserStorage(storageType);if(!browserStorage){return[];}const keys=[];for(let i=0;i { - -"use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ o: () => (/* binding */ useAlternatePageUtils) -/* harmony export */ }); -/* harmony import */ var _docusaurus_useDocusaurusContext__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1571); -/* harmony import */ var _docusaurus_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9519); -/* harmony import */ var _docusaurus_utils_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5819); -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - *//** - * Permits to obtain the url of the current page in another locale, useful to - * generate hreflang meta headers etc... - * - * @see https://developers.google.com/search/docs/advanced/crawling/localized-versions - */function useAlternatePageUtils(){const{siteConfig:{baseUrl,url,trailingSlash},i18n:{defaultLocale,currentLocale}}=(0,_docusaurus_useDocusaurusContext__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A)();// TODO using useLocation().pathname is not a super idea -// See https://github.com/facebook/docusaurus/issues/9170 -const{pathname}=(0,_docusaurus_router__WEBPACK_IMPORTED_MODULE_1__/* .useLocation */ .zy)();const canonicalPathname=(0,_docusaurus_utils_common__WEBPACK_IMPORTED_MODULE_2__/* .applyTrailingSlash */ .Ks)(pathname,{trailingSlash,baseUrl});const baseUrlUnlocalized=currentLocale===defaultLocale?baseUrl:baseUrl.replace(`/${currentLocale}/`,'/');const pathnameSuffix=canonicalPathname.replace(baseUrl,'');function getLocalizedBaseUrl(locale){return locale===defaultLocale?`${baseUrlUnlocalized}`:`${baseUrlUnlocalized}${locale}/`;}// TODO support correct alternate url when localized site is deployed on -// another domain -function createUrl({locale,fullyQualified}){return`${fullyQualified?url:''}${getLocalizedBaseUrl(locale)}${pathnameSuffix}`;}return{createUrl};} - -/***/ }), - -/***/ 8701: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ $: () => (/* binding */ useLocationChange) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6540); -/* harmony import */ var _docusaurus_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9519); -/* harmony import */ var _reactUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9129); -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - *//** - * Fires an effect when the location changes (which includes hash, query, etc.). - * Importantly, doesn't fire when there's no previous location: see - * https://github.com/facebook/docusaurus/pull/6696 - */function useLocationChange(onLocationChange){const location=(0,_docusaurus_router__WEBPACK_IMPORTED_MODULE_1__/* .useLocation */ .zy)();const previousLocation=(0,_reactUtils__WEBPACK_IMPORTED_MODULE_2__/* .usePrevious */ .ZC)(location);const onLocationChangeDynamic=(0,_reactUtils__WEBPACK_IMPORTED_MODULE_2__/* .useEvent */ ._q)(onLocationChange);(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(()=>{if(!previousLocation){return;}if(location!==previousLocation){onLocationChangeDynamic({location,previousLocation});}},[onLocationChangeDynamic,location,previousLocation]);} - -/***/ }), - -/***/ 7054: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ W: () => (/* binding */ usePluralForm) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6540); -/* harmony import */ var _docusaurus_useDocusaurusContext__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1571); -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */// We want to ensurer a stable plural form order in all cases -// It is more convenient and natural to handle "small values" first -// See https://x.com/sebastienlorber/status/1366820663261077510 -const OrderedPluralForms=['zero','one','two','few','many','other'];function sortPluralForms(pluralForms){return OrderedPluralForms.filter(pf=>pluralForms.includes(pf));}// Hardcoded english/fallback implementation -const EnglishPluralForms={locale:'en',pluralForms:sortPluralForms(['one','other']),select:count=>count===1?'one':'other'};function createLocalePluralForms(locale){const pluralRules=new Intl.PluralRules(locale);return{locale,pluralForms:sortPluralForms(pluralRules.resolvedOptions().pluralCategories),select:count=>pluralRules.select(count)};}/** - * Poor man's `PluralSelector` implementation, using an English fallback. We - * want a lightweight, future-proof and good-enough solution. We don't want a - * perfect and heavy solution. - * - * Docusaurus classic theme has only 2 deeply nested labels requiring complex - * plural rules. We don't want to use `Intl` + `PluralRules` polyfills + full - * ICU syntax (react-intl) just for that. - * - * Notes: - * - 2021: 92+% Browsers support `Intl.PluralRules`, and support will increase - * in the future - * - NodeJS >= 13 has full ICU support by default - * - In case of "mismatch" between SSR and Browser ICU support, React keeps - * working! - */function useLocalePluralForms(){const{i18n:{currentLocale}}=(0,_docusaurus_useDocusaurusContext__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A)();return (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(()=>{try{return createLocalePluralForms(currentLocale);}catch(err){console.error(`Failed to use Intl.PluralRules for locale "${currentLocale}". -Docusaurus will fallback to the default (English) implementation. -Error: ${err.message} -`);return EnglishPluralForms;}},[currentLocale]);}function selectPluralMessage(pluralMessages,count,localePluralForms){const separator='|';const parts=pluralMessages.split(separator);if(parts.length===1){return parts[0];}if(parts.length>localePluralForms.pluralForms.length){console.error(`For locale=${localePluralForms.locale}, a maximum of ${localePluralForms.pluralForms.length} plural forms are expected (${localePluralForms.pluralForms.join(',')}), but the message contains ${parts.length}: ${pluralMessages}`);}const pluralForm=localePluralForms.select(count);const pluralFormIndex=localePluralForms.pluralForms.indexOf(pluralForm);// In case of not enough plural form messages, we take the last one (other) -// instead of returning undefined -return parts[Math.min(pluralFormIndex,parts.length-1)];}/** - * Reads the current locale and returns an interface very similar to - * `Intl.PluralRules`. - */function usePluralForm(){const localePluralForm=useLocalePluralForms();return{selectMessage:(count,pluralMessages)=>selectPluralMessage(pluralMessages,count,localePluralForm)};} - -/***/ }), - -/***/ 6963: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ p: () => (/* binding */ useThemeConfig) -/* harmony export */ }); -/* harmony import */ var _docusaurus_useDocusaurusContext__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1571); -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - *//** - * A convenient/more semantic way to get theme config from context. - */function useThemeConfig(){return (0,_docusaurus_useDocusaurusContext__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A)().siteConfig.themeConfig;} - -/***/ }), - -/***/ 3834: -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */Object.defineProperty(exports, "__esModule", ({value:true}));exports.addTrailingSlash=addTrailingSlash;exports["default"]=applyTrailingSlash;exports.addLeadingSlash=addLeadingSlash;exports.removeTrailingSlash=removeTrailingSlash;const stringUtils_1=__webpack_require__(2949);function addTrailingSlash(str){return str.endsWith('/')?str:`${str}/`;}// Trailing slash handling depends in some site configuration options -function applyTrailingSlash(path,options){const{trailingSlash,baseUrl}=options;if(path.startsWith('#')){// Never apply trailing slash to an anchor link -return path;}function handleTrailingSlash(str,trailing){return trailing?addTrailingSlash(str):removeTrailingSlash(str);}// undefined = legacy retrocompatible behavior -if(typeof trailingSlash==='undefined'){return path;}// The trailing slash should be handled before the ?search#hash ! -const[pathname]=path.split(/[#?]/);// Never transform '/' to '' -// Never remove the baseUrl trailing slash! -// If baseUrl = /myBase/, we want to emit /myBase/index.html and not -// /myBase.html! See https://github.com/facebook/docusaurus/issues/5077 -const shouldNotApply=pathname==='/'||pathname===baseUrl;const newPathname=shouldNotApply?pathname:handleTrailingSlash(pathname,trailingSlash);return path.replace(pathname,newPathname);}/** Appends a leading slash to `str`, if one doesn't exist. */function addLeadingSlash(str){return(0,stringUtils_1.addPrefix)(str,'/');}/** Removes the trailing slash from `str`. */function removeTrailingSlash(str){return(0,stringUtils_1.removeSuffix)(str,'/');} - -/***/ }), - -/***/ 1832: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; -Object.defineProperty(exports, "__esModule", ({value:true}));exports.getErrorCausalChain=getErrorCausalChain;function getErrorCausalChain(error){if(error.cause){return[error,...getErrorCausalChain(error.cause)];}return[error];} - -/***/ }), - -/***/ 5819: -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -var __webpack_unused_export__; -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */__webpack_unused_export__ = ({value:true});exports.rA=__webpack_unused_export__=__webpack_unused_export__=__webpack_unused_export__=__webpack_unused_export__=__webpack_unused_export__=__webpack_unused_export__=__webpack_unused_export__=exports.Ks=exports.LU=void 0;const tslib_1=__webpack_require__(4629);// __ prefix allows search crawlers (Algolia/DocSearch) to ignore anchors -// https://github.com/facebook/docusaurus/issues/8883#issuecomment-1516328368 -exports.LU='__blog-post-container';var applyTrailingSlash_1=__webpack_require__(3834);Object.defineProperty(exports, "Ks", ({enumerable:true,get:function(){return tslib_1.__importDefault(applyTrailingSlash_1).default;}}));__webpack_unused_export__ = ({enumerable:true,get:function(){return applyTrailingSlash_1.addTrailingSlash;}});__webpack_unused_export__ = ({enumerable:true,get:function(){return applyTrailingSlash_1.addLeadingSlash;}});__webpack_unused_export__ = ({enumerable:true,get:function(){return applyTrailingSlash_1.removeTrailingSlash;}});var stringUtils_1=__webpack_require__(2949);__webpack_unused_export__ = ({enumerable:true,get:function(){return stringUtils_1.addPrefix;}});__webpack_unused_export__ = ({enumerable:true,get:function(){return stringUtils_1.removeSuffix;}});__webpack_unused_export__ = ({enumerable:true,get:function(){return stringUtils_1.addSuffix;}});__webpack_unused_export__ = ({enumerable:true,get:function(){return stringUtils_1.removePrefix;}});var errorUtils_1=__webpack_require__(1832);Object.defineProperty(exports, "rA", ({enumerable:true,get:function(){return errorUtils_1.getErrorCausalChain;}})); - -/***/ }), - -/***/ 2949: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */Object.defineProperty(exports, "__esModule", ({value:true}));exports.addPrefix=addPrefix;exports.removeSuffix=removeSuffix;exports.addSuffix=addSuffix;exports.removePrefix=removePrefix;/** Adds a given string prefix to `str`. */function addPrefix(str,prefix){return str.startsWith(prefix)?str:`${prefix}${str}`;}/** Removes a given string suffix from `str`. */function removeSuffix(str,suffix){if(suffix===''){// str.slice(0, 0) is "" -return str;}return str.endsWith(suffix)?str.slice(0,-suffix.length):str;}/** Adds a given string suffix to `str`. */function addSuffix(str,suffix){return str.endsWith(suffix)?str:`${str}${suffix}`;}/** Removes a given string prefix from `str`. */function removePrefix(str,prefix){return str.startsWith(prefix)?str.slice(prefix.length):str;} - -/***/ }), - -/***/ 3054: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ $3: () => (/* binding */ createStatefulBrokenLinks), -/* harmony export */ B6: () => (/* binding */ useBrokenLinksContext), -/* harmony export */ k5: () => (/* binding */ BrokenLinksProvider) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6540); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4848); -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */const createStatefulBrokenLinks=()=>{// Set to dedup, as it's not useful to collect multiple times the same value -const allAnchors=new Set();const allLinks=new Set();return{collectAnchor:anchor=>{typeof anchor!=='undefined'&&allAnchors.add(anchor);},collectLink:link=>{typeof link!=='undefined'&&allLinks.add(link);},getCollectedAnchors:()=>[...allAnchors],getCollectedLinks:()=>[...allLinks]};};const Context=/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createContext({collectAnchor:()=>{// No-op for client -},collectLink:()=>{// No-op for client -}});const useBrokenLinksContext=()=>(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(Context);function BrokenLinksProvider({children,brokenLinks}){return/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Context.Provider,{value:brokenLinks,children:children});} - -/***/ }), - -/***/ 7820: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ o: () => (/* binding */ Context), -/* harmony export */ x: () => (/* binding */ BrowserContextProvider) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6540); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4848); -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */// Encapsulate the logic to avoid React hydration problems -// See https://www.joshwcomeau.com/react/the-perils-of-rehydration/ -// On first client-side render, we need to render exactly as the server rendered -// isBrowser is set to true only after a successful hydration -// Note, isBrowser is not part of useDocusaurusContext() for perf reasons -// Using useDocusaurusContext() (much more common need) should not trigger -// re-rendering after a successful hydration -const Context=/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createContext(false);function BrowserContextProvider({children}){const[isBrowser,setIsBrowser]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false);(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(()=>{setIsBrowser(true);},[]);return/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Context.Provider,{value:isBrowser,children:children});} - -/***/ }), - -/***/ 4467: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - o: () => (/* binding */ Context), - l: () => (/* binding */ DocusaurusContextProvider) -}); - -// EXTERNAL MODULE: ./node_modules/react/index.js -var react = __webpack_require__(6540); -// EXTERNAL MODULE: ./.docusaurus/docusaurus.config.mjs -var docusaurus_config = __webpack_require__(4784); -;// ./.docusaurus/globalData.json -const globalData_namespaceObject = /*#__PURE__*/JSON.parse('{"docusaurus-plugin-content-docs":{"default":{"path":"/docs","versions":[{"name":"current","label":"Next","isLast":true,"path":"/docs","mainDocId":"intro","docs":[{"id":"intro","path":"/docs/intro","sidebar":"tutorialSidebar"},{"id":"tutorial-basics/congratulations","path":"/docs/tutorial-basics/congratulations","sidebar":"tutorialSidebar"},{"id":"tutorial-basics/create-a-blog-post","path":"/docs/tutorial-basics/create-a-blog-post","sidebar":"tutorialSidebar"},{"id":"tutorial-basics/create-a-document","path":"/docs/tutorial-basics/create-a-document","sidebar":"tutorialSidebar"},{"id":"tutorial-basics/create-a-page","path":"/docs/tutorial-basics/create-a-page","sidebar":"tutorialSidebar"},{"id":"tutorial-basics/deploy-your-site","path":"/docs/tutorial-basics/deploy-your-site","sidebar":"tutorialSidebar"},{"id":"tutorial-basics/markdown-features","path":"/docs/tutorial-basics/markdown-features","sidebar":"tutorialSidebar"},{"id":"tutorial-extras/manage-docs-versions","path":"/docs/tutorial-extras/manage-docs-versions","sidebar":"tutorialSidebar"},{"id":"tutorial-extras/translate-your-site","path":"/docs/tutorial-extras/translate-your-site","sidebar":"tutorialSidebar"},{"id":"/category/tutorial---basics","path":"/docs/category/tutorial---basics","sidebar":"tutorialSidebar"},{"id":"/category/tutorial---extras","path":"/docs/category/tutorial---extras","sidebar":"tutorialSidebar"}],"draftIds":[],"sidebars":{"tutorialSidebar":{"link":{"path":"/docs/intro","label":"intro"}}}}],"breadcrumbs":true}}}'); -;// ./.docusaurus/i18n.json -const i18n_namespaceObject = /*#__PURE__*/JSON.parse('{"defaultLocale":"en","locales":["en"],"path":"i18n","currentLocale":"en","localeConfigs":{"en":{"label":"English","direction":"ltr","htmlLang":"en","calendar":"gregory","path":"en"}}}'); -// EXTERNAL MODULE: ./.docusaurus/codeTranslations.json -var codeTranslations = __webpack_require__(2654); -;// ./.docusaurus/site-metadata.json -const site_metadata_namespaceObject = /*#__PURE__*/JSON.parse('{"docusaurusVersion":"3.7.0","siteVersion":"0.0.0","pluginVersions":{"docusaurus-plugin-content-docs":{"type":"package","name":"@docusaurus/plugin-content-docs","version":"3.7.0"},"docusaurus-plugin-content-blog":{"type":"package","name":"@docusaurus/plugin-content-blog","version":"3.7.0"},"docusaurus-plugin-content-pages":{"type":"package","name":"@docusaurus/plugin-content-pages","version":"3.7.0"},"docusaurus-plugin-sitemap":{"type":"package","name":"@docusaurus/plugin-sitemap","version":"3.7.0"},"docusaurus-plugin-svgr":{"type":"package","name":"@docusaurus/plugin-svgr","version":"3.7.0"},"docusaurus-theme-classic":{"type":"package","name":"@docusaurus/theme-classic","version":"3.7.0"}}}'); -// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js -var jsx_runtime = __webpack_require__(4848); -;// ../packages/docusaurus/lib/client/docusaurusContext.js -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */// Static value on purpose: don't make it dynamic! -// Using context is still useful for testability reasons. -const contextValue={siteConfig: docusaurus_config["default"],siteMetadata: site_metadata_namespaceObject,globalData: globalData_namespaceObject,i18n: i18n_namespaceObject,codeTranslations: codeTranslations};const Context=/*#__PURE__*/react.createContext(contextValue);function DocusaurusContextProvider({children}){return/*#__PURE__*/(0,jsx_runtime.jsx)(Context.Provider,{value:contextValue,children:children});} - -/***/ }), - -/***/ 5769: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - A: () => (/* binding */ ErrorBoundary) -}); - -// EXTERNAL MODULE: ./node_modules/react/index.js -var react = __webpack_require__(6540); -// EXTERNAL MODULE: ../packages/docusaurus/lib/client/exports/ExecutionEnvironment.js -var ExecutionEnvironment = __webpack_require__(4468); -// EXTERNAL MODULE: ../packages/docusaurus/lib/client/exports/Head.js -var Head = __webpack_require__(2785); -// EXTERNAL MODULE: ../packages/docusaurus-utils-common/lib/index.js -var lib = __webpack_require__(5819); -// EXTERNAL MODULE: ../packages/docusaurus-theme-classic/lib/theme/Layout/index.js + 53 modules -var Layout = __webpack_require__(3305); -// EXTERNAL MODULE: ../packages/docusaurus/lib/client/routeContext.js -var routeContext = __webpack_require__(5015); -// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js -var jsx_runtime = __webpack_require__(4848); -;// ../packages/docusaurus/lib/client/theme-fallback/Error/index.js -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */// Should we translate theme-fallback? -/* eslint-disable @docusaurus/no-untranslated-text */function ErrorDisplay({error,tryAgain}){return/*#__PURE__*/(0,jsx_runtime.jsxs)("div",{style:{display:'flex',flexDirection:'column',justifyContent:'center',alignItems:'flex-start',minHeight:'100vh',width:'100%',maxWidth:'80ch',fontSize:'20px',margin:'0 auto',padding:'1rem'},children:[/*#__PURE__*/(0,jsx_runtime.jsx)("h1",{style:{fontSize:'3rem'},children:"This page crashed"}),/*#__PURE__*/(0,jsx_runtime.jsx)("button",{type:"button",onClick:tryAgain,style:{margin:'1rem 0',fontSize:'2rem',cursor:'pointer',borderRadius:20,padding:'1rem'},children:"Try again"}),/*#__PURE__*/(0,jsx_runtime.jsx)(ErrorBoundaryError,{error:error})]});}function ErrorBoundaryError({error}){const causalChain=(0,lib/* getErrorCausalChain */.rA)(error);const fullMessage=causalChain.map(e=>e.message).join('\n\nCause:\n');return/*#__PURE__*/(0,jsx_runtime.jsx)("p",{style:{whiteSpace:'pre-wrap'},children:fullMessage});}// A bit hacky: we need to add an artificial RouteContextProvider here -// The goal is to be able to render the error inside the theme layout -// Without this, our theme classic would crash due to lack of route context -// See also https://github.com/facebook/docusaurus/pull/9852 -function ErrorRouteContextProvider({children}){return/*#__PURE__*/(0,jsx_runtime.jsx)(routeContext/* RouteContextProvider */.W,{value:{plugin:{name:'docusaurus-core-error-boundary',id:'default'}},children:children});}function Error({error,tryAgain}){// We wrap the error in its own error boundary because the layout can actually -// throw too... Only the ErrorDisplay component is simple enough to be -// considered safe to never throw -return/*#__PURE__*/(0,jsx_runtime.jsx)(ErrorRouteContextProvider,{children:/*#__PURE__*/(0,jsx_runtime.jsxs)(ErrorBoundary// Note: we display the original error here, not the error that we -// captured in this extra error boundary -,{fallback:()=>/*#__PURE__*/(0,jsx_runtime.jsx)(ErrorDisplay,{error:error,tryAgain:tryAgain}),children:[/*#__PURE__*/(0,jsx_runtime.jsx)(Head/* default */.A,{children:/*#__PURE__*/(0,jsx_runtime.jsx)("title",{children:"Page Error"})}),/*#__PURE__*/(0,jsx_runtime.jsx)(Layout/* default */.A,{children:/*#__PURE__*/(0,jsx_runtime.jsx)(ErrorDisplay,{error:error,tryAgain:tryAgain})})]})});} -;// ../packages/docusaurus/lib/client/exports/ErrorBoundary.js -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */// eslint-disable-next-line react/function-component-definition -const DefaultFallback=params=>/*#__PURE__*/(0,jsx_runtime.jsx)(Error,{...params});class ErrorBoundary extends react.Component{constructor(props){super(props);this.state={error:null};}componentDidCatch(error){// Catch errors in any components below and re-render with error message -if(ExecutionEnvironment/* default */.A.canUseDOM){this.setState({error});}}render(){const{children}=this.props;const{error}=this.state;if(error){const fallbackParams={error,tryAgain:()=>this.setState({error:null})};const fallback=this.props.fallback??DefaultFallback;return fallback(fallbackParams);}// See https://github.com/facebook/docusaurus/issues/6337#issuecomment-1012913647 -return children??null;}} - -/***/ }), - -/***/ 4468: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */const canUseDOM=typeof window!=='undefined'&&'document'in window&&'createElement'in window.document;const ExecutionEnvironment={canUseDOM,// window.attachEvent is IE-specific; it's very likely Docusaurus won't work -// on IE anyway. -canUseEventListeners:canUseDOM&&('addEventListener'in window||'attachEvent'in window),canUseIntersectionObserver:canUseDOM&&'IntersectionObserver'in window,canUseViewport:canUseDOM&&'screen'in window};/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ExecutionEnvironment); - -/***/ }), - -/***/ 2785: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ A: () => (/* binding */ Head) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6540); -/* harmony import */ var react_helmet_async__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9005); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4848); -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function Head(props){return/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(react_helmet_async__WEBPACK_IMPORTED_MODULE_1__/* .Helmet */ .mg,{...props});} - -/***/ }), - -/***/ 1349: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - A: () => (/* binding */ exports_Link) -}); - -// EXTERNAL MODULE: ./node_modules/react/index.js -var react = __webpack_require__(6540); -// EXTERNAL MODULE: ../node_modules/react-router/esm/react-router.js -var react_router = __webpack_require__(9519); -// EXTERNAL MODULE: ../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js + 1 modules -var inheritsLoose = __webpack_require__(1146); -// EXTERNAL MODULE: ../node_modules/history/esm/history.js + 1 modules -var esm_history = __webpack_require__(6941); -// EXTERNAL MODULE: ../node_modules/@babel/runtime/helpers/esm/extends.js -var esm_extends = __webpack_require__(8102); -// EXTERNAL MODULE: ../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js -var objectWithoutPropertiesLoose = __webpack_require__(9257); -// EXTERNAL MODULE: ../node_modules/tiny-invariant/dist/esm/tiny-invariant.js -var tiny_invariant = __webpack_require__(6143); -;// ../node_modules/react-router-dom/esm/react-router-dom.js - - - - - - - - - - - -/** - * The public API for a that uses HTML5 history. - */ - -var BrowserRouter = /*#__PURE__*/function (_React$Component) { - (0,inheritsLoose/* default */.A)(BrowserRouter, _React$Component); - - function BrowserRouter() { - var _this; - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this; - _this.history = (0,esm_history/* createBrowserHistory */.zR)(_this.props); - return _this; - } - - var _proto = BrowserRouter.prototype; - - _proto.render = function render() { - return /*#__PURE__*/react.createElement(react_router/* Router */.Ix, { - history: this.history, - children: this.props.children - }); - }; - - return BrowserRouter; -}(react.Component); - -if (false) {} - -/** - * The public API for a that uses window.location.hash. - */ - -var HashRouter = /*#__PURE__*/function (_React$Component) { - (0,inheritsLoose/* default */.A)(HashRouter, _React$Component); - - function HashRouter() { - var _this; - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this; - _this.history = (0,esm_history/* createHashHistory */.TM)(_this.props); - return _this; - } - - var _proto = HashRouter.prototype; - - _proto.render = function render() { - return /*#__PURE__*/react.createElement(react_router/* Router */.Ix, { - history: this.history, - children: this.props.children - }); - }; - - return HashRouter; -}(react.Component); - -if (false) {} - -var resolveToLocation = function resolveToLocation(to, currentLocation) { - return typeof to === "function" ? to(currentLocation) : to; -}; -var normalizeToLocation = function normalizeToLocation(to, currentLocation) { - return typeof to === "string" ? (0,esm_history/* createLocation */.yJ)(to, null, null, currentLocation) : to; -}; - -var forwardRefShim = function forwardRefShim(C) { - return C; -}; - -var forwardRef = react.forwardRef; - -if (typeof forwardRef === "undefined") { - forwardRef = forwardRefShim; -} - -function isModifiedEvent(event) { - return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey); -} - -var LinkAnchor = forwardRef(function (_ref, forwardedRef) { - var innerRef = _ref.innerRef, - navigate = _ref.navigate, - _onClick = _ref.onClick, - rest = (0,objectWithoutPropertiesLoose/* default */.A)(_ref, ["innerRef", "navigate", "onClick"]); - - var target = rest.target; - - var props = (0,esm_extends/* default */.A)({}, rest, { - onClick: function onClick(event) { - try { - if (_onClick) _onClick(event); - } catch (ex) { - event.preventDefault(); - throw ex; - } - - if (!event.defaultPrevented && // onClick prevented default - event.button === 0 && ( // ignore everything but left clicks - !target || target === "_self") && // let browser handle "target=_blank" etc. - !isModifiedEvent(event) // ignore clicks with modifier keys - ) { - event.preventDefault(); - navigate(); - } - } - }); // React 15 compat - - - if (forwardRefShim !== forwardRef) { - props.ref = forwardedRef || innerRef; - } else { - props.ref = innerRef; - } - /* eslint-disable-next-line jsx-a11y/anchor-has-content */ - - - return /*#__PURE__*/react.createElement("a", props); -}); - -if (false) {} -/** - * The public API for rendering a history-aware . - */ - - -var Link = forwardRef(function (_ref2, forwardedRef) { - var _ref2$component = _ref2.component, - component = _ref2$component === void 0 ? LinkAnchor : _ref2$component, - replace = _ref2.replace, - to = _ref2.to, - innerRef = _ref2.innerRef, - rest = (0,objectWithoutPropertiesLoose/* default */.A)(_ref2, ["component", "replace", "to", "innerRef"]); - - return /*#__PURE__*/react.createElement(react_router/* __RouterContext */.XZ.Consumer, null, function (context) { - !context ? false ? 0 : (0,tiny_invariant/* default */.A)(false) : void 0; - var history = context.history; - var location = normalizeToLocation(resolveToLocation(to, context.location), context.location); - var href = location ? history.createHref(location) : ""; - - var props = (0,esm_extends/* default */.A)({}, rest, { - href: href, - navigate: function navigate() { - var location = resolveToLocation(to, context.location); - var isDuplicateNavigation = (0,esm_history/* createPath */.AO)(context.location) === (0,esm_history/* createPath */.AO)(normalizeToLocation(location)); - var method = replace || isDuplicateNavigation ? history.replace : history.push; - method(location); - } - }); // React 15 compat - - - if (forwardRefShim !== forwardRef) { - props.ref = forwardedRef || innerRef; - } else { - props.innerRef = innerRef; - } - - return /*#__PURE__*/react.createElement(component, props); - }); -}); - -if (false) { var refType, toType; } - -var forwardRefShim$1 = function forwardRefShim(C) { - return C; -}; - -var forwardRef$1 = react.forwardRef; - -if (typeof forwardRef$1 === "undefined") { - forwardRef$1 = forwardRefShim$1; -} - -function joinClassnames() { - for (var _len = arguments.length, classnames = new Array(_len), _key = 0; _key < _len; _key++) { - classnames[_key] = arguments[_key]; - } - - return classnames.filter(function (i) { - return i; - }).join(" "); -} -/** - * A wrapper that knows if it's "active" or not. - */ - - -var NavLink = forwardRef$1(function (_ref, forwardedRef) { - var _ref$ariaCurrent = _ref["aria-current"], - ariaCurrent = _ref$ariaCurrent === void 0 ? "page" : _ref$ariaCurrent, - _ref$activeClassName = _ref.activeClassName, - activeClassName = _ref$activeClassName === void 0 ? "active" : _ref$activeClassName, - activeStyle = _ref.activeStyle, - classNameProp = _ref.className, - exact = _ref.exact, - isActiveProp = _ref.isActive, - locationProp = _ref.location, - sensitive = _ref.sensitive, - strict = _ref.strict, - styleProp = _ref.style, - to = _ref.to, - innerRef = _ref.innerRef, - rest = (0,objectWithoutPropertiesLoose/* default */.A)(_ref, ["aria-current", "activeClassName", "activeStyle", "className", "exact", "isActive", "location", "sensitive", "strict", "style", "to", "innerRef"]); - - return /*#__PURE__*/react.createElement(react_router/* __RouterContext */.XZ.Consumer, null, function (context) { - !context ? false ? 0 : (0,tiny_invariant/* default */.A)(false) : void 0; - var currentLocation = locationProp || context.location; - var toLocation = normalizeToLocation(resolveToLocation(to, currentLocation), currentLocation); - var path = toLocation.pathname; // Regex taken from: https://github.com/pillarjs/path-to-regexp/blob/master/index.js#L202 - - var escapedPath = path && path.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1"); - var match = escapedPath ? (0,react_router/* matchPath */.B6)(currentLocation.pathname, { - path: escapedPath, - exact: exact, - sensitive: sensitive, - strict: strict - }) : null; - var isActive = !!(isActiveProp ? isActiveProp(match, currentLocation) : match); - var className = typeof classNameProp === "function" ? classNameProp(isActive) : classNameProp; - var style = typeof styleProp === "function" ? styleProp(isActive) : styleProp; - - if (isActive) { - className = joinClassnames(className, activeClassName); - style = (0,esm_extends/* default */.A)({}, style, activeStyle); - } - - var props = (0,esm_extends/* default */.A)({ - "aria-current": isActive && ariaCurrent || null, - className: className, - style: style, - to: toLocation - }, rest); // React 15 compat - - - if (forwardRefShim$1 !== forwardRef$1) { - props.ref = forwardedRef || innerRef; - } else { - props.innerRef = innerRef; - } - - return /*#__PURE__*/react.createElement(Link, props); - }); -}); - -if (false) { var ariaCurrentType; } - - -//# sourceMappingURL=react-router-dom.js.map - -// EXTERNAL MODULE: ../packages/docusaurus-utils-common/lib/index.js -var lib = __webpack_require__(5819); -// EXTERNAL MODULE: ../packages/docusaurus/lib/client/exports/useDocusaurusContext.js -var useDocusaurusContext = __webpack_require__(1571); -// EXTERNAL MODULE: ../packages/docusaurus/lib/client/exports/isInternalUrl.js -var isInternalUrl = __webpack_require__(73); -// EXTERNAL MODULE: ../packages/docusaurus/lib/client/exports/ExecutionEnvironment.js -var ExecutionEnvironment = __webpack_require__(4468); -// EXTERNAL MODULE: ../packages/docusaurus/lib/client/exports/useBrokenLinks.js -var useBrokenLinks = __webpack_require__(1900); -// EXTERNAL MODULE: ../packages/docusaurus/lib/client/exports/useBaseUrl.js -var useBaseUrl = __webpack_require__(5000); -// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js -var jsx_runtime = __webpack_require__(4848); -;// ../packages/docusaurus/lib/client/exports/Link.js -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */// TODO all this wouldn't be necessary if we used ReactRouter basename feature -// We don't automatically add base urls to all links, -// only the "safe" ones, starting with / (like /docs/introduction) -// this is because useBaseUrl() actually transforms relative links -// like "introduction" to "/baseUrl/introduction" => bad behavior to fix -const shouldAddBaseUrlAutomatically=to=>to.startsWith('/');function Link_Link({isNavLink,to,href,activeClassName,isActive,'data-noBrokenLinkCheck':noBrokenLinkCheck,autoAddBaseUrl=true,...props},forwardedRef){const{siteConfig}=(0,useDocusaurusContext/* default */.A)();const{trailingSlash,baseUrl}=siteConfig;const router=siteConfig.future.experimental_router;const{withBaseUrl}=(0,useBaseUrl/* useBaseUrlUtils */.hH)();const brokenLinks=(0,useBrokenLinks/* default */.A)();const innerRef=(0,react.useRef)(null);(0,react.useImperativeHandle)(forwardedRef,()=>innerRef.current);// IMPORTANT: using to or href should not change anything -// For example, MDX links will ALWAYS give us the href props -// Using one prop or the other should not be used to distinguish -// internal links (/docs/myDoc) from external links (https://github.com) -const targetLinkUnprefixed=to||href;function maybeAddBaseUrl(str){return autoAddBaseUrl&&shouldAddBaseUrlAutomatically(str)?withBaseUrl(str):str;}const isInternal=(0,isInternalUrl/* default */.A)(targetLinkUnprefixed);// pathname:// is a special "protocol" we use to tell Docusaurus link -// that a link is not "internal" and that we shouldn't use history.push() -// this is not ideal but a good enough escape hatch for now -// see https://github.com/facebook/docusaurus/issues/3309 -// note: we want baseUrl to be appended (see issue for details) -// TODO read routes and automatically detect internal/external links? -const targetLinkWithoutPathnameProtocol=targetLinkUnprefixed?.replace('pathname://','');// TODO we should use ReactRouter basename feature instead! -// Automatically apply base url in links that start with / -let targetLink=typeof targetLinkWithoutPathnameProtocol!=='undefined'?maybeAddBaseUrl(targetLinkWithoutPathnameProtocol):undefined;// TODO find a way to solve this problem properly -// Fix edge case when useBaseUrl is used on a link -// "./" is useful for images and other resources -// But we don't need it for -// unfortunately we can't really make the difference :/ -if(router==='hash'&&targetLink?.startsWith('./')){targetLink=targetLink?.slice(1);}if(targetLink&&isInternal){targetLink=(0,lib/* applyTrailingSlash */.Ks)(targetLink,{trailingSlash,baseUrl});}const preloaded=(0,react.useRef)(false);const LinkComponent=isNavLink?NavLink:Link;const IOSupported=ExecutionEnvironment/* default */.A.canUseIntersectionObserver;const ioRef=(0,react.useRef)();const handleRef=el=>{innerRef.current=el;if(IOSupported&&el&&isInternal){// If IO supported and element reference found, set up Observer. -ioRef.current=new window.IntersectionObserver(entries=>{entries.forEach(entry=>{if(el===entry.target){// If element is in viewport, stop observing and run callback. -// https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API -if(entry.isIntersecting||entry.intersectionRatio>0){ioRef.current.unobserve(el);ioRef.current.disconnect();if(targetLink!=null){window.docusaurus.prefetch(targetLink);}}}});});// Add element to the observer. -ioRef.current.observe(el);}};const onInteractionEnter=()=>{if(!preloaded.current&&targetLink!=null){window.docusaurus.preload(targetLink);preloaded.current=true;}};(0,react.useEffect)(()=>{// If IO is not supported. We prefetch by default (only once). -if(!IOSupported&&isInternal&&ExecutionEnvironment/* default */.A.canUseDOM){if(targetLink!=null){window.docusaurus.prefetch(targetLink);}}// When unmounting, stop intersection observer from watching. -return()=>{if(IOSupported&&ioRef.current){ioRef.current.disconnect();}};},[ioRef,targetLink,IOSupported,isInternal]);// It is simple local anchor link targeting current page? -const isAnchorLink=targetLink?.startsWith('#')??false;// See also RR logic: -// https://github.com/remix-run/react-router/blob/v5/packages/react-router-dom/modules/Link.js#L47 -const hasInternalTarget=!props.target||props.target==='_self';// Should we use a regular tag instead of React-Router Link component? -const isRegularHtmlLink=!targetLink||!isInternal||!hasInternalTarget||// When using the hash router, we can't use the regular link for anchors -// We need to use React Router to navigate to /#/pathname/#anchor -// And not /#anchor -// See also https://github.com/facebook/docusaurus/pull/10311 -isAnchorLink&&router!=='hash';if(!noBrokenLinkCheck&&(isAnchorLink||!isRegularHtmlLink)){brokenLinks.collectLink(targetLink);}if(props.id){brokenLinks.collectAnchor(props.id);}// These props are only added in unit tests to assert/capture the type of link -const testOnlyProps= false?0:{};return isRegularHtmlLink?/*#__PURE__*/// eslint-disable-next-line jsx-a11y/anchor-has-content, @docusaurus/no-html-links -(0,jsx_runtime.jsx)("a",{ref:innerRef,href:targetLink,...(targetLinkUnprefixed&&!isInternal&&{target:'_blank',rel:'noopener noreferrer'}),...props,...testOnlyProps}):/*#__PURE__*/(0,jsx_runtime.jsx)(LinkComponent,{...props,onMouseEnter:onInteractionEnter,onTouchStart:onInteractionEnter,innerRef:handleRef,to:targetLink// Avoid "React does not recognize the `activeClassName` prop on a DOM -// element" -,...(isNavLink&&{isActive,activeClassName}),...testOnlyProps});}/* harmony default export */ const exports_Link = (/*#__PURE__*/react.forwardRef(Link_Link)); - -/***/ }), - -/***/ 219: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - *//* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (()=>null); - -/***/ }), - -/***/ 4709: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - A: () => (/* binding */ Translate), - T: () => (/* binding */ translate) -}); - -// EXTERNAL MODULE: ./node_modules/react/index.js -var react = __webpack_require__(6540); -// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js -var jsx_runtime = __webpack_require__(4848); -;// ../packages/docusaurus/lib/client/exports/Interpolate.js -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function interpolate(text,values){// eslint-disable-next-line prefer-named-capture-group -const segments=text.split(/(\{\w+\})/).map((seg,index)=>{// Odd indices (1, 3, 5...) of the segments are (potentially) interpolatable -if(index%2===1){const value=values?.[seg.slice(1,-1)];if(value!==undefined){return value;}// No match: add warning? There's no way to "escape" interpolation though -}return seg;});if(segments.some(seg=>/*#__PURE__*/(0,react.isValidElement)(seg))){return segments.map((seg,index)=>/*#__PURE__*/(0,react.isValidElement)(seg)?/*#__PURE__*/react.cloneElement(seg,{key:index}):seg).filter(seg=>seg!=='');}return segments.join('');}function Interpolate({children,values}){if(typeof children!=='string'){throw new Error(`The Docusaurus component only accept simple string values. Received: ${/*#__PURE__*/isValidElement(children)?'React element':typeof children}`);}return/*#__PURE__*/_jsx(_Fragment,{children:interpolate(children,values)});} -// EXTERNAL MODULE: ./.docusaurus/codeTranslations.json -var codeTranslations = __webpack_require__(2654); -;// ../packages/docusaurus/lib/client/exports/Translate.js -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */// Can't read it from context, due to exposing imperative API -function getLocalizedMessage({id,message}){if(typeof id==='undefined'&&typeof message==='undefined'){throw new Error('Docusaurus translation declarations must have at least a translation id or a default translation message');}return codeTranslations[id??message]??message??id;}// Imperative translation API is useful for some edge-cases: -// - translating page titles (meta) -// - translating string props (input placeholders, image alt, aria labels...) -function translate({message,id},values){const localizedMessage=getLocalizedMessage({message,id});return interpolate(localizedMessage,values);}// Maybe we'll want to improve this component with additional features -// Like toggling a translation mode that adds a little translation button near -// the text? -function Translate({children,id,values}){if(children&&typeof children!=='string'){console.warn('Illegal children',children);throw new Error('The Docusaurus component only accept simple string values');}const localizedMessage=getLocalizedMessage({message:children,id});return/*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment,{children:interpolate(localizedMessage,values)});} - -/***/ }), - -/***/ 3170: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ W: () => (/* binding */ DEFAULT_PLUGIN_ID) -/* harmony export */ }); -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */// Constants used on the client-side: duplicated from server-side code -const DEFAULT_PLUGIN_ID='default'; - -/***/ }), - -/***/ 73: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ A: () => (/* binding */ isInternalUrl), -/* harmony export */ z: () => (/* binding */ hasProtocol) -/* harmony export */ }); -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function hasProtocol(url){return /^(?:\w*:|\/\/)/.test(url);}function isInternalUrl(url){return typeof url!=='undefined'&&!hasProtocol(url);} - -/***/ }), - -/***/ 5000: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Ay: () => (/* binding */ useBaseUrl), -/* harmony export */ hH: () => (/* binding */ useBaseUrlUtils) -/* harmony export */ }); -/* unused harmony export addBaseUrl */ -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6540); -/* harmony import */ var _useDocusaurusContext__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1571); -/* harmony import */ var _isInternalUrl__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(73); -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function addBaseUrl({siteUrl,baseUrl,url,options:{forcePrependBaseUrl=false,absolute=false}={},router}){// It never makes sense to add base url to a local anchor url, or one with a -// protocol -if(!url||url.startsWith('#')||(0,_isInternalUrl__WEBPACK_IMPORTED_MODULE_2__/* .hasProtocol */ .z)(url)){return url;}// TODO hash router + /baseUrl/ is unlikely to work well in all situations -// This will support most cases, but not all -// See https://github.com/facebook/docusaurus/pull/9859 -if(router==='hash'){return url.startsWith('/')?`.${url}`:`./${url}`;}if(forcePrependBaseUrl){return baseUrl+url.replace(/^\//,'');}// /baseUrl -> /baseUrl/ -// https://github.com/facebook/docusaurus/issues/6315 -if(url===baseUrl.replace(/\/$/,'')){return baseUrl;}// We should avoid adding the baseurl twice if it's already there -const shouldAddBaseUrl=!url.startsWith(baseUrl);const basePath=shouldAddBaseUrl?baseUrl+url.replace(/^\//,''):url;return absolute?siteUrl+basePath:basePath;}function useBaseUrlUtils(){const{siteConfig}=(0,_useDocusaurusContext__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A)();const{baseUrl,url:siteUrl}=siteConfig;const router=siteConfig.future.experimental_router;const withBaseUrl=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((url,options)=>addBaseUrl({siteUrl,baseUrl,url,options,router}),[siteUrl,baseUrl,router]);return{withBaseUrl};}function useBaseUrl(url,options={}){const{withBaseUrl}=useBaseUrlUtils();return withBaseUrl(url,options);} - -/***/ }), - -/***/ 1900: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ A: () => (/* binding */ useBrokenLinks) -/* harmony export */ }); -/* harmony import */ var _BrokenLinksContext__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3054); -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function useBrokenLinks(){return (0,_BrokenLinksContext__WEBPACK_IMPORTED_MODULE_0__/* .useBrokenLinksContext */ .B6)();} - -/***/ }), - -/***/ 1571: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ A: () => (/* binding */ useDocusaurusContext) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6540); -/* harmony import */ var _docusaurusContext__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4467); -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function useDocusaurusContext(){return (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_docusaurusContext__WEBPACK_IMPORTED_MODULE_1__/* .Context */ .o);} - -/***/ }), - -/***/ 3754: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ A: () => (/* binding */ useIsBrowser) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6540); -/* harmony import */ var _browserContext__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7820); -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function useIsBrowser(){return (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_browserContext__WEBPACK_IMPORTED_MODULE_1__/* .Context */ .o);} - -/***/ }), - -/***/ 610: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6540); -/* harmony import */ var _ExecutionEnvironment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4468); -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - *//** - * This hook is like `useLayoutEffect`, but without the SSR warning. - * It seems hacky but it's used in many React libs (Redux, Formik...). - * Also mentioned here: https://github.com/facebook/react/issues/16956 - * - * It is useful when you need to update a ref as soon as possible after a React - * render (before `useEffect`). - * - * TODO should become unnecessary in React v19? - * https://github.com/facebook/react/pull/26395 - * This was added in core with Docusaurus v3 but kept undocumented on purpose - */const useIsomorphicLayoutEffect=_ExecutionEnvironment__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A.canUseDOM?react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect:react__WEBPACK_IMPORTED_MODULE_0__.useEffect;/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useIsomorphicLayoutEffect); - -/***/ }), - -/***/ 9060: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ A: () => (/* binding */ useRouteContext) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6540); -/* harmony import */ var _routeContext__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5015); -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function useRouteContext(){const context=react__WEBPACK_IMPORTED_MODULE_0__.useContext(_routeContext__WEBPACK_IMPORTED_MODULE_1__/* .Context */ .o);if(!context){throw new Error('Unexpected: no Docusaurus route context found');}return context;} - -/***/ }), - -/***/ 5015: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ W: () => (/* binding */ RouteContextProvider), -/* harmony export */ o: () => (/* binding */ Context) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6540); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4848); -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */const Context=/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createContext(null);function mergeContexts({parent,value}){if(!parent){if(!value){throw new Error('Unexpected: no Docusaurus route context found');}else if(!('plugin'in value)){throw new Error('Unexpected: Docusaurus topmost route context has no `plugin` attribute');}return value;}// TODO deep merge this -const data={...parent.data,...value?.data};return{// Nested routes are not supposed to override plugin attribute -plugin:parent.plugin,data};}function RouteContextProvider({children,value}){const parent=react__WEBPACK_IMPORTED_MODULE_0__.useContext(Context);const mergedValue=(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(()=>mergeContexts({parent,value}),[parent,value]);return/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Context.Provider,{value:mergedValue,children:children});} - -/***/ }), - -/***/ 1200: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "default": () => (/* binding */ serverEntry) -}); - -// EXTERNAL MODULE: ./node_modules/react/index.js -var react = __webpack_require__(6540); -// EXTERNAL MODULE: ../node_modules/react-router/esm/react-router.js -var react_router = __webpack_require__(9519); -// EXTERNAL MODULE: ../node_modules/react-helmet-async/lib/index.module.js -var index_module = __webpack_require__(9005); -// EXTERNAL MODULE: ../node_modules/react-loadable/lib/index.js -var lib = __webpack_require__(7303); -var lib_default = /*#__PURE__*/__webpack_require__.n(lib); -// EXTERNAL MODULE: ./node_modules/react-dom/server.js -var server = __webpack_require__(7422); -;// external "node:stream" -const external_node_stream_namespaceObject = require("node:stream"); -;// external "node:stream/consumers" -const consumers_namespaceObject = require("node:stream/consumers"); -;// ../packages/docusaurus/lib/client/renderToHtml.js -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */// See also https://github.com/facebook/react/issues/31134 -// See also https://github.com/facebook/docusaurus/issues/9985#issuecomment-2396367797 -async function renderToHtml(app){return new Promise((resolve,reject)=>{const passThrough=new external_node_stream_namespaceObject.PassThrough();const{pipe}=(0,server.renderToPipeableStream)(app,{onError(error){reject(error);},onAllReady(){pipe(passThrough);(0,consumers_namespaceObject.text)(passThrough).then(resolve,reject);}});});} -// EXTERNAL MODULE: ./.docusaurus/routes.js + 7 modules -var routes = __webpack_require__(5788); -// EXTERNAL MODULE: ../node_modules/react-router-config/esm/react-router-config.js -var react_router_config = __webpack_require__(3971); -;// ../packages/docusaurus/lib/client/preload.js -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - *//** - * Helper function to make sure all async components for that particular route - * is preloaded before rendering. This is especially useful to avoid loading - * screens. - * - * @param pathname the route pathname, example: /docs/installation - * @returns Promise object represents whether pathname has been preloaded - */function preload(pathname){const matches=Array.from(new Set([pathname,decodeURI(pathname)])).map(p=>(0,react_router_config/* matchRoutes */.u)(routes/* default */.A,p)).flat();return Promise.all(matches.map(match=>match.route.component.preload?.()));} -;// ./.docusaurus/client-modules.js -/* harmony default export */ const client_modules = ([__webpack_require__(3300),__webpack_require__(1283),__webpack_require__(4987),__webpack_require__(7730)]); -// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js -var jsx_runtime = __webpack_require__(4848); -;// ../packages/docusaurus/lib/client/theme-fallback/Root/index.js -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */// Wrapper at the very top of the app, that is applied constantly -// and does not depend on current route (unlike the layout) -// -// Gives the opportunity to add stateful providers on top of the app -// and these providers won't reset state when we navigate -// -// See https://github.com/facebook/docusaurus/issues/3919 -function Root({children}){return/*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment,{children:children});} -// EXTERNAL MODULE: ../packages/docusaurus/lib/client/exports/Head.js -var Head = __webpack_require__(2785); -// EXTERNAL MODULE: ../packages/docusaurus/lib/client/exports/useDocusaurusContext.js -var useDocusaurusContext = __webpack_require__(1571); -// EXTERNAL MODULE: ../packages/docusaurus/lib/client/exports/useBaseUrl.js -var useBaseUrl = __webpack_require__(5000); -// EXTERNAL MODULE: ../packages/docusaurus-theme-common/lib/utils/useThemeConfig.js -var useThemeConfig = __webpack_require__(6963); -// EXTERNAL MODULE: ../packages/docusaurus-theme-common/lib/utils/metadataUtils.js + 1 modules -var metadataUtils = __webpack_require__(5861); -// EXTERNAL MODULE: ../packages/docusaurus-theme-common/lib/utils/useAlternatePageUtils.js -var useAlternatePageUtils = __webpack_require__(5040); -// EXTERNAL MODULE: ../packages/docusaurus-theme-common/lib/hooks/useKeyboardNavigation.js -var useKeyboardNavigation = __webpack_require__(4684); -;// ../packages/docusaurus-theme-common/lib/utils/searchUtils.js -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */const DEFAULT_SEARCH_TAG='default'; -// EXTERNAL MODULE: ../packages/docusaurus-utils-common/lib/index.js -var docusaurus_utils_common_lib = __webpack_require__(5819); -// EXTERNAL MODULE: ../packages/docusaurus-theme-classic/lib/theme/SearchMetadata/index.js -var SearchMetadata = __webpack_require__(3308); -;// ../packages/docusaurus-theme-classic/lib/theme/SiteMetadata/index.js -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */// TODO move to SiteMetadataDefaults or theme-common ? -// Useful for i18n/SEO -// See https://developers.google.com/search/docs/advanced/crawling/localized-versions -// See https://github.com/facebook/docusaurus/issues/3317 -function AlternateLangHeaders(){const{i18n:{currentLocale,defaultLocale,localeConfigs}}=(0,useDocusaurusContext/* default */.A)();const alternatePageUtils=(0,useAlternatePageUtils/* useAlternatePageUtils */.o)();const currentHtmlLang=localeConfigs[currentLocale].htmlLang;// HTML lang is a BCP 47 tag, but the Open Graph protocol requires -// using underscores instead of dashes. -// See https://ogp.me/#optional -// See https://en.wikipedia.org/wiki/IETF_language_tag) -const bcp47ToOpenGraphLocale=code=>code.replace('-','_');// Note: it is fine to use both "x-default" and "en" to target the same url -// See https://www.searchviu.com/en/multiple-hreflang-tags-one-url/ -return/*#__PURE__*/(0,jsx_runtime.jsxs)(Head/* default */.A,{children:[Object.entries(localeConfigs).map(([locale,{htmlLang}])=>/*#__PURE__*/(0,jsx_runtime.jsx)("link",{rel:"alternate",href:alternatePageUtils.createUrl({locale,fullyQualified:true}),hrefLang:htmlLang},locale)),/*#__PURE__*/(0,jsx_runtime.jsx)("link",{rel:"alternate",href:alternatePageUtils.createUrl({locale:defaultLocale,fullyQualified:true}),hrefLang:"x-default"}),/*#__PURE__*/(0,jsx_runtime.jsx)("meta",{property:"og:locale",content:bcp47ToOpenGraphLocale(currentHtmlLang)}),Object.values(localeConfigs).filter(config=>currentHtmlLang!==config.htmlLang).map(config=>/*#__PURE__*/(0,jsx_runtime.jsx)("meta",{property:"og:locale:alternate",content:bcp47ToOpenGraphLocale(config.htmlLang)},`meta-og-${config.htmlLang}`))]});}// Default canonical url inferred from current page location pathname -function useDefaultCanonicalUrl(){const{siteConfig:{url:siteUrl,baseUrl,trailingSlash}}=(0,useDocusaurusContext/* default */.A)();// TODO using useLocation().pathname is not a super idea -// See https://github.com/facebook/docusaurus/issues/9170 -const{pathname}=(0,react_router/* useLocation */.zy)();const canonicalPathname=(0,docusaurus_utils_common_lib/* applyTrailingSlash */.Ks)((0,useBaseUrl/* default */.Ay)(pathname),{trailingSlash,baseUrl});return siteUrl+canonicalPathname;}// TODO move to SiteMetadataDefaults or theme-common ? -function CanonicalUrlHeaders({permalink}){const{siteConfig:{url:siteUrl}}=(0,useDocusaurusContext/* default */.A)();const defaultCanonicalUrl=useDefaultCanonicalUrl();const canonicalUrl=permalink?`${siteUrl}${permalink}`:defaultCanonicalUrl;return/*#__PURE__*/(0,jsx_runtime.jsxs)(Head/* default */.A,{children:[/*#__PURE__*/(0,jsx_runtime.jsx)("meta",{property:"og:url",content:canonicalUrl}),/*#__PURE__*/(0,jsx_runtime.jsx)("link",{rel:"canonical",href:canonicalUrl})]});}function SiteMetadata(){const{i18n:{currentLocale}}=(0,useDocusaurusContext/* default */.A)();// TODO maybe move these 2 themeConfig to siteConfig? -// These seems useful for other themes as well -const{metadata,image:defaultImage}=(0,useThemeConfig/* useThemeConfig */.p)();return/*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[/*#__PURE__*/(0,jsx_runtime.jsxs)(Head/* default */.A,{children:[/*#__PURE__*/(0,jsx_runtime.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),/*#__PURE__*/(0,jsx_runtime.jsx)("body",{className:useKeyboardNavigation/* keyboardFocusedClassName */.w})]}),defaultImage&&/*#__PURE__*/(0,jsx_runtime.jsx)(metadataUtils/* PageMetadata */.be,{image:defaultImage}),/*#__PURE__*/(0,jsx_runtime.jsx)(CanonicalUrlHeaders,{}),/*#__PURE__*/(0,jsx_runtime.jsx)(AlternateLangHeaders,{}),/*#__PURE__*/(0,jsx_runtime.jsx)(SearchMetadata/* default */.A,{tag:DEFAULT_SEARCH_TAG,locale:currentLocale}),/*#__PURE__*/(0,jsx_runtime.jsx)(Head/* default */.A,{children:metadata.map((metadatum,i)=>/*#__PURE__*/(0,jsx_runtime.jsx)("meta",{...metadatum},i))})]});} -;// ../packages/docusaurus/lib/client/normalizeLocation.js -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */// Memoize previously normalized pathnames. -const pathnames=new Map();function normalizeLocation(location){if(pathnames.has(location.pathname)){return{...location,pathname:pathnames.get(location.pathname)};}// If the location was registered with an `.html` extension, we don't strip it -// away, or it will render to a 404 page. -const matchedRoutes=(0,react_router_config/* matchRoutes */.u)(routes/* default */.A,location.pathname);if(matchedRoutes.some(({route})=>route.exact===true)){pathnames.set(location.pathname,location.pathname);return location;}const pathname=location.pathname.trim().replace(/(?:\/index)?\.html$/,'')||'/';pathnames.set(location.pathname,pathname);return{...location,pathname};} -// EXTERNAL MODULE: ../packages/docusaurus/lib/client/browserContext.js -var browserContext = __webpack_require__(7820); -// EXTERNAL MODULE: ../packages/docusaurus/lib/client/docusaurusContext.js + 3 modules -var docusaurusContext = __webpack_require__(4467); -// EXTERNAL MODULE: ../packages/docusaurus/lib/client/exports/useIsomorphicLayoutEffect.js -var useIsomorphicLayoutEffect = __webpack_require__(610); -;// ../packages/docusaurus/lib/client/ClientLifecyclesDispatcher.js -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function dispatchLifecycleAction(lifecycleAction,...args){const callbacks=client_modules.map(clientModule=>{const lifecycleFunction=clientModule.default?.[lifecycleAction]??clientModule[lifecycleAction];return lifecycleFunction?.(...args);});return()=>callbacks.forEach(cb=>cb?.());}function scrollAfterNavigation({location,previousLocation}){if(!previousLocation){return;// no-op: use native browser feature -}const samePathname=location.pathname===previousLocation.pathname;const sameHash=location.hash===previousLocation.hash;const sameSearch=location.search===previousLocation.search;// Query-string changes: do not scroll to top/hash -if(samePathname&&sameHash&&!sameSearch){return;}const{hash}=location;if(!hash){window.scrollTo(0,0);}else{const id=decodeURIComponent(hash.substring(1));const element=document.getElementById(id);element?.scrollIntoView();}}function ClientLifecyclesDispatcher({children,location,previousLocation}){(0,useIsomorphicLayoutEffect/* default */.A)(()=>{if(previousLocation!==location){scrollAfterNavigation({location,previousLocation});dispatchLifecycleAction('onRouteDidUpdate',{previousLocation,location});}},[previousLocation,location]);return children;}/* harmony default export */ const client_ClientLifecyclesDispatcher = (ClientLifecyclesDispatcher); -// EXTERNAL MODULE: ../packages/docusaurus/lib/client/exports/ExecutionEnvironment.js -var ExecutionEnvironment = __webpack_require__(4468); -;// ../packages/docusaurus/lib/client/PendingNavigation.js -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */class PendingNavigation extends react.Component{previousLocation;routeUpdateCleanupCb;constructor(props){super(props);// previousLocation doesn't affect rendering, hence not stored in state. -this.previousLocation=null;this.routeUpdateCleanupCb=ExecutionEnvironment/* default */.A.canUseDOM?dispatchLifecycleAction('onRouteUpdate',{previousLocation:null,location:this.props.location}):()=>{};this.state={nextRouteHasLoaded:true};}// Intercept location update and still show current route until next route -// is done loading. -shouldComponentUpdate(nextProps,nextState){if(nextProps.location===this.props.location){// `nextRouteHasLoaded` is false means there's a pending route transition. -// Don't update until it's done. -return nextState.nextRouteHasLoaded;}// props.location being different means the router is trying to navigate to -// a new route. We will preload the new route. -const nextLocation=nextProps.location;// Save the location first. -this.previousLocation=this.props.location;this.setState({nextRouteHasLoaded:false});this.routeUpdateCleanupCb=dispatchLifecycleAction('onRouteUpdate',{previousLocation:this.previousLocation,location:nextLocation});// Load data while the old screen remains. Force preload instead of using -// `window.docusaurus`, because we want to avoid loading screen even when -// user is on saveData -preload(nextLocation.pathname).then(()=>{this.routeUpdateCleanupCb();this.setState({nextRouteHasLoaded:true});}).catch(e=>{console.warn(e);// If chunk loading failed, it could be because the path to a chunk -// no longer exists due to a new deployment. Force refresh the page -// instead of just not navigating. -window.location.reload();});return false;}render(){const{children,location}=this.props;// Use a controlled to trick all descendants into rendering the old -// location. -return/*#__PURE__*/(0,jsx_runtime.jsx)(client_ClientLifecyclesDispatcher,{previousLocation:this.previousLocation,location:location,children:/*#__PURE__*/(0,jsx_runtime.jsx)(react_router/* Route */.qh,{location:location,render:()=>children})});}}/* harmony default export */ const client_PendingNavigation = (PendingNavigation); -// EXTERNAL MODULE: ../packages/docusaurus/lib/client/BaseUrlIssueBanner/styles.module.css -var styles_module = __webpack_require__(8851); -;// ../packages/docusaurus/lib/client/BaseUrlIssueBanner/index.js -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */// Double-security: critical CSS will hide the banner if CSS can load! -// __ prefix allows search crawlers (Algolia/DocSearch) to ignore anchors -// https://github.com/facebook/docusaurus/issues/8883#issuecomment-1516328368 -const BannerContainerId='__docusaurus-base-url-issue-banner-container';const BannerId='__docusaurus-base-url-issue-banner';const SuggestionContainerId='__docusaurus-base-url-issue-banner-suggestion-container';// It is important to not use React to render this banner -// otherwise Google would index it, even if it's hidden with some critical CSS! -// See https://github.com/facebook/docusaurus/issues/4028 -// - We can't SSR (or it would be indexed) -// - We can't CSR (as it means the baseurl is correct) -function createInlineHtmlBanner(baseUrl){return` - ",children:[/*#__PURE__*/(0,jsx_runtime.jsx)(HomepageHeader,{}),/*#__PURE__*/(0,jsx_runtime.jsx)("main",{children:/*#__PURE__*/(0,jsx_runtime.jsx)(HomepageFeatures,{})})]});} - -/***/ }), - -/***/ 1964: -/***/ ((module) => { - -// Exports -module.exports = { - "admonition": `admonition_o5H7`, - "admonitionHeading": `admonitionHeading_FzoX`, - "admonitionIcon": `admonitionIcon_rXq6`, - "admonitionContent": `admonitionContent_Knsx` -}; - - -/***/ }), - -/***/ 8470: -/***/ ((module) => { - -// Exports -module.exports = { - "closeButton": `closeButton_nmpN` -}; - - -/***/ }), - -/***/ 6369: -/***/ ((module) => { - -// Exports -module.exports = { - "content": `content_ttnW` -}; - - -/***/ }), - -/***/ 4459: -/***/ ((module) => { - -// Exports -module.exports = { - "announcementBar": `announcementBar_cTOO`, - "announcementBarPlaceholder": `announcementBarPlaceholder_Lqfg`, - "announcementBarClose": `announcementBarClose_UFLi`, - "announcementBarContent": `announcementBarContent_PjqA` -}; - - -/***/ }), - -/***/ 4512: -/***/ ((module) => { - -// Exports -module.exports = { - "backToTopButton": `backToTopButton_PuQw`, - "backToTopButtonShow": `backToTopButtonShow_YSA3` -}; - - -/***/ }), - -/***/ 3783: -/***/ ((module) => { - -// Exports -module.exports = { - "authorSocials": `authorSocials_tPnL`, - "authorSocialLink": `authorSocialLink_hEWM`, - "authorSocialIcon": `authorSocialIcon_hTX6` -}; - - -/***/ }), - -/***/ 2718: -/***/ ((module) => { - -// Exports -module.exports = { - "authorImage": `authorImage_p8ow`, - "author-as-h1": `author-as-h1_Pd3R`, - "author-as-h2": `author-as-h2_UaZL`, - "authorDetails": `authorDetails_dWdF`, - "authorName": `authorName_Y8Hr`, - "authorTitle": `authorTitle_Slpj`, - "authorBlogPostCount": `authorBlogPostCount_FxU_` -}; - - -/***/ }), - -/***/ 8436: -/***/ ((module) => { - -// Exports -module.exports = { - "authorListItem": `authorListItem_Y1Zl` -}; - - -/***/ }), - -/***/ 3227: -/***/ ((module) => { - -// Exports -module.exports = { - "authorCol": `authorCol_bvyx`, - "imageOnlyAuthorRow": `imageOnlyAuthorRow_L2DM`, - "imageOnlyAuthorCol": `imageOnlyAuthorCol_oyze` -}; - - -/***/ }), - -/***/ 3617: -/***/ ((module) => { - -// Exports -module.exports = { - "container": `container_x5Un` -}; - - -/***/ }), - -/***/ 1245: -/***/ ((module) => { - -// Exports -module.exports = { - "title": `title_UBNu` -}; - - -/***/ }), - -/***/ 4718: -/***/ ((module) => { - -// Exports -module.exports = { - "sidebar": `sidebar_P3nc`, - "sidebarItemTitle": `sidebarItemTitle_VrjY`, - "sidebarItemList": `sidebarItemList_OSkG`, - "sidebarItem": `sidebarItem_WJ0y`, - "sidebarItemLink": `sidebarItemLink_Qrfg`, - "sidebarItemLinkActive": `sidebarItemLinkActive_nUeK`, - "yearGroupHeading": `yearGroupHeading_lECJ` -}; - - -/***/ }), - -/***/ 4176: -/***/ ((module) => { - -// Exports -module.exports = { - "yearGroupHeading": `yearGroupHeading_Ruz9` -}; - - -/***/ }), - -/***/ 4197: -/***/ ((module) => { - -// Exports -module.exports = { - "codeBlockContainer": `codeBlockContainer_jDV4` -}; - - -/***/ }), - -/***/ 4799: -/***/ ((module) => { - -// Exports -module.exports = { - "codeBlockContent": `codeBlockContent_vx7S`, - "codeBlockTitle": `codeBlockTitle_bdru`, - "codeBlock": `codeBlock_Gebt`, - "codeBlockStandalone": `codeBlockStandalone_i_cY`, - "codeBlockLines": `codeBlockLines_FJaf`, - "codeBlockLinesWithNumbering": `codeBlockLinesWithNumbering_FU9Q`, - "buttonGroup": `buttonGroup_cUGO` -}; - - -/***/ }), - -/***/ 4099: -/***/ ((module) => { - -// Exports -module.exports = { - "copyButtonCopied": `copyButtonCopied_OkN_`, - "copyButtonIcons": `copyButtonIcons_OqsO`, - "copyButtonIcon": `copyButtonIcon_PgCn`, - "copyButtonSuccessIcon": `copyButtonSuccessIcon_bsQG` -}; - - -/***/ }), - -/***/ 8542: -/***/ ((module) => { - -// Exports -module.exports = { - "codeLine": `codeLine_qRmp`, - "codeLineNumber": `codeLineNumber_dS_J`, - "codeLineContent": `codeLineContent_XF5l` -}; - - -/***/ }), - -/***/ 480: -/***/ ((module) => { - -// Exports -module.exports = { - "wordWrapButtonIcon": `wordWrapButtonIcon_MQXS`, - "wordWrapButtonEnabled": `wordWrapButtonEnabled_TBIH` -}; - - -/***/ }), - -/***/ 6583: -/***/ ((module) => { - -// Exports -module.exports = { - "toggle": `toggle_bT41`, - "toggleButton": `toggleButton_x9TT`, - "darkToggleIcon": `darkToggleIcon_OBbf`, - "lightToggleIcon": `lightToggleIcon_dnYY`, - "toggleButtonDisabled": `toggleButtonDisabled_Dj8q` -}; - - -/***/ }), - -/***/ 1733: -/***/ ((module) => { - -// Exports -module.exports = { - "details": `details_Cn_P` -}; - - -/***/ }), - -/***/ 6574: -/***/ ((module) => { - -// Exports -module.exports = { - "breadcrumbHomeIcon": `breadcrumbHomeIcon_uaSn` -}; - - -/***/ }), - -/***/ 6669: -/***/ ((module) => { - -// Exports -module.exports = { - "breadcrumbsContainer": `breadcrumbsContainer_Wvrh` -}; - - -/***/ }), - -/***/ 4855: -/***/ ((module) => { - -// Exports -module.exports = { - "cardContainer": `cardContainer_Uewx`, - "cardTitle": `cardTitle_dwRT`, - "cardDescription": `cardDescription_mCBT` -}; - - -/***/ }), - -/***/ 9951: -/***/ ((module) => { - -// Exports -module.exports = { - "docCardListItem": `docCardListItem_hvcp` -}; - - -/***/ }), - -/***/ 3745: -/***/ ((module) => { - -// Exports -module.exports = { - "generatedIndexPage": `generatedIndexPage_hs4p`, - "title": `title_tRie` -}; - - -/***/ }), - -/***/ 4857: -/***/ ((module) => { - -// Exports -module.exports = { - "docItemContainer": `docItemContainer_RhpI`, - "docItemCol": `docItemCol_n6xZ` -}; - - -/***/ }), - -/***/ 3276: -/***/ ((module) => { - -// Exports -module.exports = { - "tocMobile": `tocMobile_NSfz` -}; - - -/***/ }), - -/***/ 1154: -/***/ ((module) => { - -// Exports -module.exports = { - "docMainContainer": `docMainContainer_EfwR`, - "docMainContainerEnhanced": `docMainContainerEnhanced_r8nV`, - "docItemWrapperEnhanced": `docItemWrapperEnhanced_nA1F` -}; - - -/***/ }), - -/***/ 2822: -/***/ ((module) => { - -// Exports -module.exports = { - "expandButton": `expandButton_ockD`, - "expandButtonIcon": `expandButtonIcon_H1n0` -}; - - -/***/ }), - -/***/ 9359: -/***/ ((module) => { - -// Exports -module.exports = { - "docSidebarContainer": `docSidebarContainer_S51O`, - "docSidebarContainerHidden": `docSidebarContainerHidden_gbDM`, - "sidebarViewport": `sidebarViewport_K3q9` -}; - - -/***/ }), - -/***/ 2114: -/***/ ((module) => { - -// Exports -module.exports = { - "docRoot": `docRoot_kBZ6`, - "docsWrapper": `docsWrapper_lLmf` -}; - - -/***/ }), - -/***/ 7792: -/***/ ((module) => { - -// Exports -module.exports = { - "collapseSidebarButton": `collapseSidebarButton_PUyN`, - "collapseSidebarButtonIcon": `collapseSidebarButtonIcon_DI0B` -}; - - -/***/ }), - -/***/ 76: -/***/ ((module) => { - -// Exports -module.exports = { - "menu": `menu_rWGR`, - "menuWithAnnouncementBar": `menuWithAnnouncementBar_Pf08` -}; - - -/***/ }), - -/***/ 5546: -/***/ ((module) => { - -// Exports -module.exports = { - "sidebar": `sidebar_vtcw`, - "sidebarWithHideableNavbar": `sidebarWithHideableNavbar_tZ9s`, - "sidebarHidden": `sidebarHidden_PrHU`, - "sidebarLogo": `sidebarLogo_UK0N` -}; - - -/***/ }), - -/***/ 7682: -/***/ ((module) => { - -// Exports -module.exports = { - "menuHtmlItem": `menuHtmlItem_t1vY` -}; - - -/***/ }), - -/***/ 4441: -/***/ ((module) => { - -// Exports -module.exports = { - "menuExternalLink": `menuExternalLink_zaS2` -}; - - -/***/ }), - -/***/ 466: -/***/ ((module) => { - -// Exports -module.exports = { - "lastUpdated": `lastUpdated_OHCJ` -}; - - -/***/ }), - -/***/ 3970: -/***/ ((module) => { - -// Exports -module.exports = { - "footerLogoLink": `footerLogoLink_CiM_` -}; - - -/***/ }), - -/***/ 4693: -/***/ ((module) => { - -// Exports -module.exports = { - "anchorWithStickyNavbar": `anchorWithStickyNavbar_rB0w`, - "anchorWithHideOnScrollNavbar": `anchorWithHideOnScrollNavbar_SSbb` -}; - - -/***/ }), - -/***/ 2433: -/***/ ((module) => { - -// Exports -module.exports = { - "iconEdit": `iconEdit_IMw_` -}; - - -/***/ }), - -/***/ 5708: -/***/ ((module) => { - -// Exports -module.exports = { - "iconExternalLink": `iconExternalLink_Rdzz` -}; - - -/***/ }), - -/***/ 4979: -/***/ ((module) => { - -// Exports -module.exports = { - "githubSvg": `githubSvg_jqE4` -}; - - -/***/ }), - -/***/ 3138: -/***/ ((module) => { - -// Exports -module.exports = { - "instagramSvg": `instagramSvg_Svcp` -}; - - -/***/ }), - -/***/ 5717: -/***/ ((module) => { - -// Exports -module.exports = { - "threadsSvg": `threadsSvg_kngY` -}; - - -/***/ }), - -/***/ 2158: -/***/ ((module) => { - -// Exports -module.exports = { - "xSvg": `xSvg_Q0g7` -}; - - -/***/ }), - -/***/ 2231: -/***/ ((module) => { - -// Exports -module.exports = { - "mainWrapper": `mainWrapper_PEsc` -}; - - -/***/ }), - -/***/ 5614: -/***/ ((module) => { - -// Exports -module.exports = { - "img": `img_vXGZ` -}; - - -/***/ }), - -/***/ 30: -/***/ ((module) => { - -// Exports -module.exports = { - "containsTaskList": `containsTaskList_k9gM` -}; - - -/***/ }), - -/***/ 7143: -/***/ ((module) => { - -// Exports -module.exports = { - "mdxPageWrapper": `mdxPageWrapper_bWhk` -}; - - -/***/ }), - -/***/ 6746: -/***/ ((module) => { - -// Exports -module.exports = { - "darkNavbarColorModeToggle": `darkNavbarColorModeToggle_JF8j` -}; - - -/***/ }), - -/***/ 681: -/***/ ((module) => { - -// Exports -module.exports = { - "colorModeToggle": `colorModeToggle_UolE` -}; - - -/***/ }), - -/***/ 8476: -/***/ ((module) => { - -// Exports -module.exports = { - "navbarHideable": `navbarHideable_uAgx`, - "navbarHidden": `navbarHidden_QgM6` -}; - - -/***/ }), - -/***/ 5810: -/***/ ((module) => { - -// Exports -module.exports = { - "navbarSearchContainer": `navbarSearchContainer_dDCC` -}; - - -/***/ }), - -/***/ 5389: -/***/ ((module) => { - -// Exports -module.exports = { - "dropdownNavbarItemMobile": `dropdownNavbarItemMobile_A1en` -}; - - -/***/ }), - -/***/ 3403: -/***/ ((module) => { - -// Exports -module.exports = { - "iconLanguage": `iconLanguage_tqOs` -}; - - -/***/ }), - -/***/ 8858: -/***/ ((module) => { - -// Exports -module.exports = { - "skipToContent": `skipToContent_UHvc` -}; - - -/***/ }), - -/***/ 5429: -/***/ ((module) => { - -// Exports -module.exports = { - "tableOfContents": `tableOfContents_RLlU`, - "docItemContainer": `docItemContainer_oucX` -}; - - -/***/ }), - -/***/ 4112: -/***/ ((module) => { - -// Exports -module.exports = { - "tocCollapsibleButton": `tocCollapsibleButton_IbtT`, - "tocCollapsibleButtonExpanded": `tocCollapsibleButtonExpanded_Nor3` -}; - - -/***/ }), - -/***/ 3939: -/***/ ((module) => { - -// Exports -module.exports = { - "tocCollapsible": `tocCollapsible_BEWm`, - "tocCollapsibleContent": `tocCollapsibleContent_FG8F`, - "tocCollapsibleExpanded": `tocCollapsibleExpanded_FzA_` -}; - - -/***/ }), - -/***/ 8595: -/***/ ((module) => { - -// Exports -module.exports = { - "tag": `tag_Nd8t`, - "tagRegular": `tagRegular_TiLs`, - "tagWithCount": `tagWithCount_AQg7` -}; - - -/***/ }), - -/***/ 9261: -/***/ ((module) => { - -// Exports -module.exports = { - "tag": `tag_SyQ5` -}; - - -/***/ }), - -/***/ 6709: -/***/ ((module) => { - -// Exports -module.exports = { - "tags": `tags_rTaS`, - "tag": `tag_l5va` -}; - - -/***/ }), - -/***/ 373: -/***/ ((module) => { - -// Exports -module.exports = { - "details": `details_Nokh`, - "isBrowser": `isBrowser_QrB5`, - "collapsibleContent": `collapsibleContent_EoA1` -}; - - -/***/ }), - -/***/ 8361: -/***/ ((module) => { - -// Exports -module.exports = { - "themedComponent": `themedComponent_bJGS`, - "themedComponent--light": `themedComponent--light_LEkC`, - "themedComponent--dark": `themedComponent--dark_jnGk` -}; - - -/***/ }), - -/***/ 8474: -/***/ ((module) => { - -// Exports -module.exports = { - "errorBoundaryError": `errorBoundaryError_rP1m`, - "errorBoundaryFallback": `errorBoundaryFallback_heah` -}; - - -/***/ }), - -/***/ 8851: -/***/ ((module) => { - -// Exports -module.exports = { - -}; - - -/***/ }), - -/***/ 6292: -/***/ ((module) => { - -// Exports -module.exports = { - "features": `features_t9lD`, - "featureSvg": `featureSvg_GfXr` -}; - - -/***/ }), - -/***/ 1514: -/***/ ((module) => { - -// Exports -module.exports = { - "heroBanner": `heroBanner_qdFl`, - "buttons": `buttons_AeoN` -}; - - -/***/ }), - -/***/ 6941: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - zR: () => (/* binding */ createBrowserHistory), - TM: () => (/* binding */ createHashHistory), - yJ: () => (/* binding */ createLocation), - sC: () => (/* binding */ createMemoryHistory), - AO: () => (/* binding */ createPath) -}); - -// UNUSED EXPORTS: locationsAreEqual, parsePath - -// EXTERNAL MODULE: ../node_modules/@babel/runtime/helpers/esm/extends.js -var esm_extends = __webpack_require__(8102); -;// ../node_modules/resolve-pathname/esm/resolve-pathname.js -function isAbsolute(pathname) { - return pathname.charAt(0) === '/'; -} - -// About 1.5x faster than the two-arg version of Array#splice() -function spliceOne(list, index) { - for (var i = index, k = i + 1, n = list.length; k < n; i += 1, k += 1) { - list[i] = list[k]; - } - - list.pop(); -} - -// This implementation is based heavily on node's url.parse -function resolvePathname(to, from) { - if (from === undefined) from = ''; - - var toParts = (to && to.split('/')) || []; - var fromParts = (from && from.split('/')) || []; - - var isToAbs = to && isAbsolute(to); - var isFromAbs = from && isAbsolute(from); - var mustEndAbs = isToAbs || isFromAbs; - - if (to && isAbsolute(to)) { - // to is absolute - fromParts = toParts; - } else if (toParts.length) { - // to is relative, drop the filename - fromParts.pop(); - fromParts = fromParts.concat(toParts); - } - - if (!fromParts.length) return '/'; - - var hasTrailingSlash; - if (fromParts.length) { - var last = fromParts[fromParts.length - 1]; - hasTrailingSlash = last === '.' || last === '..' || last === ''; - } else { - hasTrailingSlash = false; - } - - var up = 0; - for (var i = fromParts.length; i >= 0; i--) { - var part = fromParts[i]; - - if (part === '.') { - spliceOne(fromParts, i); - } else if (part === '..') { - spliceOne(fromParts, i); - up++; - } else if (up) { - spliceOne(fromParts, i); - up--; - } - } - - if (!mustEndAbs) for (; up--; up) fromParts.unshift('..'); - - if ( - mustEndAbs && - fromParts[0] !== '' && - (!fromParts[0] || !isAbsolute(fromParts[0])) - ) - fromParts.unshift(''); - - var result = fromParts.join('/'); - - if (hasTrailingSlash && result.substr(-1) !== '/') result += '/'; - - return result; -} - -/* harmony default export */ const resolve_pathname = (resolvePathname); - -// EXTERNAL MODULE: ../node_modules/tiny-invariant/dist/esm/tiny-invariant.js -var tiny_invariant = __webpack_require__(6143); -;// ../node_modules/history/esm/history.js - - - - - - -function addLeadingSlash(path) { - return path.charAt(0) === '/' ? path : '/' + path; -} -function stripLeadingSlash(path) { - return path.charAt(0) === '/' ? path.substr(1) : path; -} -function hasBasename(path, prefix) { - return path.toLowerCase().indexOf(prefix.toLowerCase()) === 0 && '/?#'.indexOf(path.charAt(prefix.length)) !== -1; -} -function stripBasename(path, prefix) { - return hasBasename(path, prefix) ? path.substr(prefix.length) : path; -} -function stripTrailingSlash(path) { - return path.charAt(path.length - 1) === '/' ? path.slice(0, -1) : path; -} -function parsePath(path) { - var pathname = path || '/'; - var search = ''; - var hash = ''; - var hashIndex = pathname.indexOf('#'); - - if (hashIndex !== -1) { - hash = pathname.substr(hashIndex); - pathname = pathname.substr(0, hashIndex); - } - - var searchIndex = pathname.indexOf('?'); - - if (searchIndex !== -1) { - search = pathname.substr(searchIndex); - pathname = pathname.substr(0, searchIndex); - } - - return { - pathname: pathname, - search: search === '?' ? '' : search, - hash: hash === '#' ? '' : hash - }; -} -function createPath(location) { - var pathname = location.pathname, - search = location.search, - hash = location.hash; - var path = pathname || '/'; - if (search && search !== '?') path += search.charAt(0) === '?' ? search : "?" + search; - if (hash && hash !== '#') path += hash.charAt(0) === '#' ? hash : "#" + hash; - return path; -} - -function createLocation(path, state, key, currentLocation) { - var location; - - if (typeof path === 'string') { - // Two-arg form: push(path, state) - location = parsePath(path); - location.state = state; - } else { - // One-arg form: push(location) - location = (0,esm_extends/* default */.A)({}, path); - if (location.pathname === undefined) location.pathname = ''; - - if (location.search) { - if (location.search.charAt(0) !== '?') location.search = '?' + location.search; - } else { - location.search = ''; - } - - if (location.hash) { - if (location.hash.charAt(0) !== '#') location.hash = '#' + location.hash; - } else { - location.hash = ''; - } - - if (state !== undefined && location.state === undefined) location.state = state; - } - - try { - location.pathname = decodeURI(location.pathname); - } catch (e) { - if (e instanceof URIError) { - throw new URIError('Pathname "' + location.pathname + '" could not be decoded. ' + 'This is likely caused by an invalid percent-encoding.'); - } else { - throw e; - } - } - - if (key) location.key = key; - - if (currentLocation) { - // Resolve incomplete/relative pathname relative to current location. - if (!location.pathname) { - location.pathname = currentLocation.pathname; - } else if (location.pathname.charAt(0) !== '/') { - location.pathname = resolve_pathname(location.pathname, currentLocation.pathname); - } - } else { - // When there is no prior location and pathname is empty, set it to / - if (!location.pathname) { - location.pathname = '/'; - } - } - - return location; -} -function locationsAreEqual(a, b) { - return a.pathname === b.pathname && a.search === b.search && a.hash === b.hash && a.key === b.key && valueEqual(a.state, b.state); -} - -function createTransitionManager() { - var prompt = null; - - function setPrompt(nextPrompt) { - false ? 0 : void 0; - prompt = nextPrompt; - return function () { - if (prompt === nextPrompt) prompt = null; - }; - } - - function confirmTransitionTo(location, action, getUserConfirmation, callback) { - // TODO: If another transition starts while we're still confirming - // the previous one, we may end up in a weird state. Figure out the - // best way to handle this. - if (prompt != null) { - var result = typeof prompt === 'function' ? prompt(location, action) : prompt; - - if (typeof result === 'string') { - if (typeof getUserConfirmation === 'function') { - getUserConfirmation(result, callback); - } else { - false ? 0 : void 0; - callback(true); - } - } else { - // Return false from a transition hook to cancel the transition. - callback(result !== false); - } - } else { - callback(true); - } - } - - var listeners = []; - - function appendListener(fn) { - var isActive = true; - - function listener() { - if (isActive) fn.apply(void 0, arguments); - } - - listeners.push(listener); - return function () { - isActive = false; - listeners = listeners.filter(function (item) { - return item !== listener; - }); - }; - } - - function notifyListeners() { - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - listeners.forEach(function (listener) { - return listener.apply(void 0, args); - }); - } - - return { - setPrompt: setPrompt, - confirmTransitionTo: confirmTransitionTo, - appendListener: appendListener, - notifyListeners: notifyListeners - }; -} - -var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement); -function getConfirmation(message, callback) { - callback(window.confirm(message)); // eslint-disable-line no-alert -} -/** - * Returns true if the HTML5 history API is supported. Taken from Modernizr. - * - * https://github.com/Modernizr/Modernizr/blob/master/LICENSE - * https://github.com/Modernizr/Modernizr/blob/master/feature-detects/history.js - * changed to avoid false negatives for Windows Phones: https://github.com/reactjs/react-router/issues/586 - */ - -function supportsHistory() { - var ua = window.navigator.userAgent; - if ((ua.indexOf('Android 2.') !== -1 || ua.indexOf('Android 4.0') !== -1) && ua.indexOf('Mobile Safari') !== -1 && ua.indexOf('Chrome') === -1 && ua.indexOf('Windows Phone') === -1) return false; - return window.history && 'pushState' in window.history; -} -/** - * Returns true if browser fires popstate on hash change. - * IE10 and IE11 do not. - */ - -function supportsPopStateOnHashChange() { - return window.navigator.userAgent.indexOf('Trident') === -1; -} -/** - * Returns false if using go(n) with hash history causes a full page reload. - */ - -function supportsGoWithoutReloadUsingHash() { - return window.navigator.userAgent.indexOf('Firefox') === -1; -} -/** - * Returns true if a given popstate event is an extraneous WebKit event. - * Accounts for the fact that Chrome on iOS fires real popstate events - * containing undefined state when pressing the back button. - */ - -function isExtraneousPopstateEvent(event) { - return event.state === undefined && navigator.userAgent.indexOf('CriOS') === -1; -} - -var PopStateEvent = 'popstate'; -var HashChangeEvent = 'hashchange'; - -function getHistoryState() { - try { - return window.history.state || {}; - } catch (e) { - // IE 11 sometimes throws when accessing window.history.state - // See https://github.com/ReactTraining/history/pull/289 - return {}; - } -} -/** - * Creates a history object that uses the HTML5 history API including - * pushState, replaceState, and the popstate event. - */ - - -function createBrowserHistory(props) { - if (props === void 0) { - props = {}; - } - - !canUseDOM ? false ? 0 : (0,tiny_invariant/* default */.A)(false) : void 0; - var globalHistory = window.history; - var canUseHistory = supportsHistory(); - var needsHashChangeListener = !supportsPopStateOnHashChange(); - var _props = props, - _props$forceRefresh = _props.forceRefresh, - forceRefresh = _props$forceRefresh === void 0 ? false : _props$forceRefresh, - _props$getUserConfirm = _props.getUserConfirmation, - getUserConfirmation = _props$getUserConfirm === void 0 ? getConfirmation : _props$getUserConfirm, - _props$keyLength = _props.keyLength, - keyLength = _props$keyLength === void 0 ? 6 : _props$keyLength; - var basename = props.basename ? stripTrailingSlash(addLeadingSlash(props.basename)) : ''; - - function getDOMLocation(historyState) { - var _ref = historyState || {}, - key = _ref.key, - state = _ref.state; - - var _window$location = window.location, - pathname = _window$location.pathname, - search = _window$location.search, - hash = _window$location.hash; - var path = pathname + search + hash; - false ? 0 : void 0; - if (basename) path = stripBasename(path, basename); - return createLocation(path, state, key); - } - - function createKey() { - return Math.random().toString(36).substr(2, keyLength); - } - - var transitionManager = createTransitionManager(); - - function setState(nextState) { - (0,esm_extends/* default */.A)(history, nextState); - - history.length = globalHistory.length; - transitionManager.notifyListeners(history.location, history.action); - } - - function handlePopState(event) { - // Ignore extraneous popstate events in WebKit. - if (isExtraneousPopstateEvent(event)) return; - handlePop(getDOMLocation(event.state)); - } - - function handleHashChange() { - handlePop(getDOMLocation(getHistoryState())); - } - - var forceNextPop = false; - - function handlePop(location) { - if (forceNextPop) { - forceNextPop = false; - setState(); - } else { - var action = 'POP'; - transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) { - if (ok) { - setState({ - action: action, - location: location - }); - } else { - revertPop(location); - } - }); - } - } - - function revertPop(fromLocation) { - var toLocation = history.location; // TODO: We could probably make this more reliable by - // keeping a list of keys we've seen in sessionStorage. - // Instead, we just default to 0 for keys we don't know. - - var toIndex = allKeys.indexOf(toLocation.key); - if (toIndex === -1) toIndex = 0; - var fromIndex = allKeys.indexOf(fromLocation.key); - if (fromIndex === -1) fromIndex = 0; - var delta = toIndex - fromIndex; - - if (delta) { - forceNextPop = true; - go(delta); - } - } - - var initialLocation = getDOMLocation(getHistoryState()); - var allKeys = [initialLocation.key]; // Public interface - - function createHref(location) { - return basename + createPath(location); - } - - function push(path, state) { - false ? 0 : void 0; - var action = 'PUSH'; - var location = createLocation(path, state, createKey(), history.location); - transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) { - if (!ok) return; - var href = createHref(location); - var key = location.key, - state = location.state; - - if (canUseHistory) { - globalHistory.pushState({ - key: key, - state: state - }, null, href); - - if (forceRefresh) { - window.location.href = href; - } else { - var prevIndex = allKeys.indexOf(history.location.key); - var nextKeys = allKeys.slice(0, prevIndex + 1); - nextKeys.push(location.key); - allKeys = nextKeys; - setState({ - action: action, - location: location - }); - } - } else { - false ? 0 : void 0; - window.location.href = href; - } - }); - } - - function replace(path, state) { - false ? 0 : void 0; - var action = 'REPLACE'; - var location = createLocation(path, state, createKey(), history.location); - transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) { - if (!ok) return; - var href = createHref(location); - var key = location.key, - state = location.state; - - if (canUseHistory) { - globalHistory.replaceState({ - key: key, - state: state - }, null, href); - - if (forceRefresh) { - window.location.replace(href); - } else { - var prevIndex = allKeys.indexOf(history.location.key); - if (prevIndex !== -1) allKeys[prevIndex] = location.key; - setState({ - action: action, - location: location - }); - } - } else { - false ? 0 : void 0; - window.location.replace(href); - } - }); - } - - function go(n) { - globalHistory.go(n); - } - - function goBack() { - go(-1); - } - - function goForward() { - go(1); - } - - var listenerCount = 0; - - function checkDOMListeners(delta) { - listenerCount += delta; - - if (listenerCount === 1 && delta === 1) { - window.addEventListener(PopStateEvent, handlePopState); - if (needsHashChangeListener) window.addEventListener(HashChangeEvent, handleHashChange); - } else if (listenerCount === 0) { - window.removeEventListener(PopStateEvent, handlePopState); - if (needsHashChangeListener) window.removeEventListener(HashChangeEvent, handleHashChange); - } - } - - var isBlocked = false; - - function block(prompt) { - if (prompt === void 0) { - prompt = false; - } - - var unblock = transitionManager.setPrompt(prompt); - - if (!isBlocked) { - checkDOMListeners(1); - isBlocked = true; - } - - return function () { - if (isBlocked) { - isBlocked = false; - checkDOMListeners(-1); - } - - return unblock(); - }; - } - - function listen(listener) { - var unlisten = transitionManager.appendListener(listener); - checkDOMListeners(1); - return function () { - checkDOMListeners(-1); - unlisten(); - }; - } - - var history = { - length: globalHistory.length, - action: 'POP', - location: initialLocation, - createHref: createHref, - push: push, - replace: replace, - go: go, - goBack: goBack, - goForward: goForward, - block: block, - listen: listen - }; - return history; -} - -var HashChangeEvent$1 = 'hashchange'; -var HashPathCoders = { - hashbang: { - encodePath: function encodePath(path) { - return path.charAt(0) === '!' ? path : '!/' + stripLeadingSlash(path); - }, - decodePath: function decodePath(path) { - return path.charAt(0) === '!' ? path.substr(1) : path; - } - }, - noslash: { - encodePath: stripLeadingSlash, - decodePath: addLeadingSlash - }, - slash: { - encodePath: addLeadingSlash, - decodePath: addLeadingSlash - } -}; - -function stripHash(url) { - var hashIndex = url.indexOf('#'); - return hashIndex === -1 ? url : url.slice(0, hashIndex); -} - -function getHashPath() { - // We can't use window.location.hash here because it's not - // consistent across browsers - Firefox will pre-decode it! - var href = window.location.href; - var hashIndex = href.indexOf('#'); - return hashIndex === -1 ? '' : href.substring(hashIndex + 1); -} - -function pushHashPath(path) { - window.location.hash = path; -} - -function replaceHashPath(path) { - window.location.replace(stripHash(window.location.href) + '#' + path); -} - -function createHashHistory(props) { - if (props === void 0) { - props = {}; - } - - !canUseDOM ? false ? 0 : (0,tiny_invariant/* default */.A)(false) : void 0; - var globalHistory = window.history; - var canGoWithoutReload = supportsGoWithoutReloadUsingHash(); - var _props = props, - _props$getUserConfirm = _props.getUserConfirmation, - getUserConfirmation = _props$getUserConfirm === void 0 ? getConfirmation : _props$getUserConfirm, - _props$hashType = _props.hashType, - hashType = _props$hashType === void 0 ? 'slash' : _props$hashType; - var basename = props.basename ? stripTrailingSlash(addLeadingSlash(props.basename)) : ''; - var _HashPathCoders$hashT = HashPathCoders[hashType], - encodePath = _HashPathCoders$hashT.encodePath, - decodePath = _HashPathCoders$hashT.decodePath; - - function getDOMLocation() { - var path = decodePath(getHashPath()); - false ? 0 : void 0; - if (basename) path = stripBasename(path, basename); - return createLocation(path); - } - - var transitionManager = createTransitionManager(); - - function setState(nextState) { - (0,esm_extends/* default */.A)(history, nextState); - - history.length = globalHistory.length; - transitionManager.notifyListeners(history.location, history.action); - } - - var forceNextPop = false; - var ignorePath = null; - - function locationsAreEqual$$1(a, b) { - return a.pathname === b.pathname && a.search === b.search && a.hash === b.hash; - } - - function handleHashChange() { - var path = getHashPath(); - var encodedPath = encodePath(path); - - if (path !== encodedPath) { - // Ensure we always have a properly-encoded hash. - replaceHashPath(encodedPath); - } else { - var location = getDOMLocation(); - var prevLocation = history.location; - if (!forceNextPop && locationsAreEqual$$1(prevLocation, location)) return; // A hashchange doesn't always == location change. - - if (ignorePath === createPath(location)) return; // Ignore this change; we already setState in push/replace. - - ignorePath = null; - handlePop(location); - } - } - - function handlePop(location) { - if (forceNextPop) { - forceNextPop = false; - setState(); - } else { - var action = 'POP'; - transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) { - if (ok) { - setState({ - action: action, - location: location - }); - } else { - revertPop(location); - } - }); - } - } - - function revertPop(fromLocation) { - var toLocation = history.location; // TODO: We could probably make this more reliable by - // keeping a list of paths we've seen in sessionStorage. - // Instead, we just default to 0 for paths we don't know. - - var toIndex = allPaths.lastIndexOf(createPath(toLocation)); - if (toIndex === -1) toIndex = 0; - var fromIndex = allPaths.lastIndexOf(createPath(fromLocation)); - if (fromIndex === -1) fromIndex = 0; - var delta = toIndex - fromIndex; - - if (delta) { - forceNextPop = true; - go(delta); - } - } // Ensure the hash is encoded properly before doing anything else. - - - var path = getHashPath(); - var encodedPath = encodePath(path); - if (path !== encodedPath) replaceHashPath(encodedPath); - var initialLocation = getDOMLocation(); - var allPaths = [createPath(initialLocation)]; // Public interface - - function createHref(location) { - var baseTag = document.querySelector('base'); - var href = ''; - - if (baseTag && baseTag.getAttribute('href')) { - href = stripHash(window.location.href); - } - - return href + '#' + encodePath(basename + createPath(location)); - } - - function push(path, state) { - false ? 0 : void 0; - var action = 'PUSH'; - var location = createLocation(path, undefined, undefined, history.location); - transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) { - if (!ok) return; - var path = createPath(location); - var encodedPath = encodePath(basename + path); - var hashChanged = getHashPath() !== encodedPath; - - if (hashChanged) { - // We cannot tell if a hashchange was caused by a PUSH, so we'd - // rather setState here and ignore the hashchange. The caveat here - // is that other hash histories in the page will consider it a POP. - ignorePath = path; - pushHashPath(encodedPath); - var prevIndex = allPaths.lastIndexOf(createPath(history.location)); - var nextPaths = allPaths.slice(0, prevIndex + 1); - nextPaths.push(path); - allPaths = nextPaths; - setState({ - action: action, - location: location - }); - } else { - false ? 0 : void 0; - setState(); - } - }); - } - - function replace(path, state) { - false ? 0 : void 0; - var action = 'REPLACE'; - var location = createLocation(path, undefined, undefined, history.location); - transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) { - if (!ok) return; - var path = createPath(location); - var encodedPath = encodePath(basename + path); - var hashChanged = getHashPath() !== encodedPath; - - if (hashChanged) { - // We cannot tell if a hashchange was caused by a REPLACE, so we'd - // rather setState here and ignore the hashchange. The caveat here - // is that other hash histories in the page will consider it a POP. - ignorePath = path; - replaceHashPath(encodedPath); - } - - var prevIndex = allPaths.indexOf(createPath(history.location)); - if (prevIndex !== -1) allPaths[prevIndex] = path; - setState({ - action: action, - location: location - }); - }); - } - - function go(n) { - false ? 0 : void 0; - globalHistory.go(n); - } - - function goBack() { - go(-1); - } - - function goForward() { - go(1); - } - - var listenerCount = 0; - - function checkDOMListeners(delta) { - listenerCount += delta; - - if (listenerCount === 1 && delta === 1) { - window.addEventListener(HashChangeEvent$1, handleHashChange); - } else if (listenerCount === 0) { - window.removeEventListener(HashChangeEvent$1, handleHashChange); - } - } - - var isBlocked = false; - - function block(prompt) { - if (prompt === void 0) { - prompt = false; - } - - var unblock = transitionManager.setPrompt(prompt); - - if (!isBlocked) { - checkDOMListeners(1); - isBlocked = true; - } - - return function () { - if (isBlocked) { - isBlocked = false; - checkDOMListeners(-1); - } - - return unblock(); - }; - } - - function listen(listener) { - var unlisten = transitionManager.appendListener(listener); - checkDOMListeners(1); - return function () { - checkDOMListeners(-1); - unlisten(); - }; - } - - var history = { - length: globalHistory.length, - action: 'POP', - location: initialLocation, - createHref: createHref, - push: push, - replace: replace, - go: go, - goBack: goBack, - goForward: goForward, - block: block, - listen: listen - }; - return history; -} - -function clamp(n, lowerBound, upperBound) { - return Math.min(Math.max(n, lowerBound), upperBound); -} -/** - * Creates a history object that stores locations in memory. - */ - - -function createMemoryHistory(props) { - if (props === void 0) { - props = {}; - } - - var _props = props, - getUserConfirmation = _props.getUserConfirmation, - _props$initialEntries = _props.initialEntries, - initialEntries = _props$initialEntries === void 0 ? ['/'] : _props$initialEntries, - _props$initialIndex = _props.initialIndex, - initialIndex = _props$initialIndex === void 0 ? 0 : _props$initialIndex, - _props$keyLength = _props.keyLength, - keyLength = _props$keyLength === void 0 ? 6 : _props$keyLength; - var transitionManager = createTransitionManager(); - - function setState(nextState) { - (0,esm_extends/* default */.A)(history, nextState); - - history.length = history.entries.length; - transitionManager.notifyListeners(history.location, history.action); - } - - function createKey() { - return Math.random().toString(36).substr(2, keyLength); - } - - var index = clamp(initialIndex, 0, initialEntries.length - 1); - var entries = initialEntries.map(function (entry) { - return typeof entry === 'string' ? createLocation(entry, undefined, createKey()) : createLocation(entry, undefined, entry.key || createKey()); - }); // Public interface - - var createHref = createPath; - - function push(path, state) { - false ? 0 : void 0; - var action = 'PUSH'; - var location = createLocation(path, state, createKey(), history.location); - transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) { - if (!ok) return; - var prevIndex = history.index; - var nextIndex = prevIndex + 1; - var nextEntries = history.entries.slice(0); - - if (nextEntries.length > nextIndex) { - nextEntries.splice(nextIndex, nextEntries.length - nextIndex, location); - } else { - nextEntries.push(location); - } - - setState({ - action: action, - location: location, - index: nextIndex, - entries: nextEntries - }); - }); - } - - function replace(path, state) { - false ? 0 : void 0; - var action = 'REPLACE'; - var location = createLocation(path, state, createKey(), history.location); - transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) { - if (!ok) return; - history.entries[history.index] = location; - setState({ - action: action, - location: location - }); - }); - } - - function go(n) { - var nextIndex = clamp(history.index + n, 0, history.entries.length - 1); - var action = 'POP'; - var location = history.entries[nextIndex]; - transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) { - if (ok) { - setState({ - action: action, - location: location, - index: nextIndex - }); - } else { - // Mimic the behavior of DOM histories by - // causing a render after a cancelled POP. - setState(); - } - }); - } - - function goBack() { - go(-1); - } - - function goForward() { - go(1); - } - - function canGo(n) { - var nextIndex = history.index + n; - return nextIndex >= 0 && nextIndex < history.entries.length; - } - - function block(prompt) { - if (prompt === void 0) { - prompt = false; - } - - return transitionManager.setPrompt(prompt); - } - - function listen(listener) { - return transitionManager.appendListener(listener); - } - - var history = { - length: entries.length, - action: 'POP', - location: entries[index], - index: index, - entries: entries, - createHref: createHref, - push: push, - replace: replace, - go: go, - goBack: goBack, - goForward: goForward, - canGo: canGo, - block: block, - listen: listen - }; - return history; -} - - - - -/***/ }), - -/***/ 8486: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var reactIs = __webpack_require__(9360); - -/** - * Copyright 2015, Yahoo! Inc. - * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. - */ -var REACT_STATICS = { - childContextTypes: true, - contextType: true, - contextTypes: true, - defaultProps: true, - displayName: true, - getDefaultProps: true, - getDerivedStateFromError: true, - getDerivedStateFromProps: true, - mixins: true, - propTypes: true, - type: true -}; -var KNOWN_STATICS = { - name: true, - length: true, - prototype: true, - caller: true, - callee: true, - arguments: true, - arity: true -}; -var FORWARD_REF_STATICS = { - '$$typeof': true, - render: true, - defaultProps: true, - displayName: true, - propTypes: true -}; -var MEMO_STATICS = { - '$$typeof': true, - compare: true, - defaultProps: true, - displayName: true, - propTypes: true, - type: true -}; -var TYPE_STATICS = {}; -TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS; -TYPE_STATICS[reactIs.Memo] = MEMO_STATICS; - -function getStatics(component) { - // React v16.11 and below - if (reactIs.isMemo(component)) { - return MEMO_STATICS; - } // React v16.12 and above - - - return TYPE_STATICS[component['$$typeof']] || REACT_STATICS; -} - -var defineProperty = Object.defineProperty; -var getOwnPropertyNames = Object.getOwnPropertyNames; -var getOwnPropertySymbols = Object.getOwnPropertySymbols; -var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; -var getPrototypeOf = Object.getPrototypeOf; -var objectPrototype = Object.prototype; -function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) { - if (typeof sourceComponent !== 'string') { - // don't hoist over string (html) components - if (objectPrototype) { - var inheritedComponent = getPrototypeOf(sourceComponent); - - if (inheritedComponent && inheritedComponent !== objectPrototype) { - hoistNonReactStatics(targetComponent, inheritedComponent, blacklist); - } - } - - var keys = getOwnPropertyNames(sourceComponent); - - if (getOwnPropertySymbols) { - keys = keys.concat(getOwnPropertySymbols(sourceComponent)); - } - - var targetStatics = getStatics(targetComponent); - var sourceStatics = getStatics(sourceComponent); - - for (var i = 0; i < keys.length; ++i) { - var key = keys[i]; - - if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) { - var descriptor = getOwnPropertyDescriptor(sourceComponent, key); - - try { - // Avoid failures from read-only properties - defineProperty(targetComponent, key, descriptor); - } catch (e) {} - } - } - } - - return targetComponent; -} - -module.exports = hoistNonReactStatics; - - -/***/ }), - -/***/ 2332: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; -/** @license React v16.13.1 - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b? -Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119; -function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d; -exports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isAsyncMode=function(a){return A(a)||z(a)===l};exports.isConcurrentMode=A;exports.isContextConsumer=function(a){return z(a)===k};exports.isContextProvider=function(a){return z(a)===h};exports.isElement=function(a){return"object"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return z(a)===n};exports.isFragment=function(a){return z(a)===e};exports.isLazy=function(a){return z(a)===t}; -exports.isMemo=function(a){return z(a)===r};exports.isPortal=function(a){return z(a)===d};exports.isProfiler=function(a){return z(a)===g};exports.isStrictMode=function(a){return z(a)===f};exports.isSuspense=function(a){return z(a)===p}; -exports.isValidElementType=function(a){return"string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};exports.typeOf=z; - - -/***/ }), - -/***/ 9360: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -if (true) { - module.exports = __webpack_require__(2332); -} else {} - - -/***/ }), - -/***/ 7315: -/***/ ((module) => { - -"use strict"; -/** - * Copyright (c) 2013-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - - - -/** - * Use invariant() to assert state which your program assumes to be true. - * - * Provide sprintf-style format (only %s is supported) and arguments - * to provide information about what broke and what you were - * expecting. - * - * The invariant message will be stripped in production, but the invariant - * will remain to ensure logic does not differ in production. - */ - -var NODE_ENV = "production"; - -var invariant = function(condition, format, a, b, c, d, e, f) { - if (NODE_ENV !== 'production') { - if (format === undefined) { - throw new Error('invariant requires an error message argument'); - } - } - - if (!condition) { - var error; - if (format === undefined) { - error = new Error( - 'Minified exception occurred; use the non-minified dev environment ' + - 'for the full error message and additional helpful warnings.' - ); - } else { - var args = [a, b, c, d, e, f]; - var argIndex = 0; - error = new Error( - format.replace(/%s/g, function() { return args[argIndex++]; }) - ); - error.name = 'Invariant Violation'; - } - - error.framesToPop = 1; // we don't care about invariant's own frame - throw error; - } -}; - -module.exports = invariant; - - -/***/ }), - -/***/ 7671: -/***/ (function(module, exports, __webpack_require__) { - -var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress - * @license MIT */ - -;(function(root, factory) { - - if (true) { - !(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory), - __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? - (__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) : - __WEBPACK_AMD_DEFINE_FACTORY__), - __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else {} - -})(this, function() { - var NProgress = {}; - - NProgress.version = '0.2.0'; - - var Settings = NProgress.settings = { - minimum: 0.08, - easing: 'ease', - positionUsing: '', - speed: 200, - trickle: true, - trickleRate: 0.02, - trickleSpeed: 800, - showSpinner: true, - barSelector: '[role="bar"]', - spinnerSelector: '[role="spinner"]', - parent: 'body', - template: '--`;}// Needs to work for older browsers! -function createInlineScript(baseUrl){/* language=js */return` -document.addEventListener('DOMContentLoaded', function maybeInsertBanner() { - var shouldInsert = typeof window['docusaurus'] === 'undefined'; - shouldInsert && insertBanner(); -}); - -function insertBanner() { - var bannerContainer = document.createElement('div'); - bannerContainer.id = '${BannerContainerId}'; - var bannerHtml = ${JSON.stringify(createInlineHtmlBanner(baseUrl))// See https://redux.js.org/recipes/server-rendering/#security-considerations -.replace(/ after hydration -function HasHydratedDataAttribute(){const isBrowser=(0,useIsBrowser/* default */.A)();return/*#__PURE__*/(0,jsx_runtime.jsx)(Head/* default */.A,{children:/*#__PURE__*/(0,jsx_runtime.jsx)("html",{"data-has-hydrated":isBrowser})});} -;// ../packages/docusaurus/lib/client/App.js -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */// TODO, quick fix for CSS insertion order -// eslint-disable-next-line import/order -const routesElement=(0,react_router_config/* renderRoutes */.v)(routes/* default */.A);function AppNavigation(){const location=(0,react_router/* useLocation */.zy)();const normalizedLocation=normalizeLocation(location);return/*#__PURE__*/(0,jsx_runtime.jsx)(client_PendingNavigation,{location:normalizedLocation,children:routesElement});}function App(){return/*#__PURE__*/(0,jsx_runtime.jsx)(ErrorBoundary/* default */.A,{children:/*#__PURE__*/(0,jsx_runtime.jsx)(docusaurusContext/* DocusaurusContextProvider */.l,{children:/*#__PURE__*/(0,jsx_runtime.jsxs)(browserContext/* BrowserContextProvider */.x,{children:[/*#__PURE__*/(0,jsx_runtime.jsxs)(Root,{children:[/*#__PURE__*/(0,jsx_runtime.jsx)(SiteMetadataDefaults,{}),/*#__PURE__*/(0,jsx_runtime.jsx)(SiteMetadata,{}),/*#__PURE__*/(0,jsx_runtime.jsx)(MaybeBaseUrlIssueBanner,{}),/*#__PURE__*/(0,jsx_runtime.jsx)(AppNavigation,{})]}),/*#__PURE__*/(0,jsx_runtime.jsx)(HasHydratedDataAttribute,{})]})})});} -// EXTERNAL MODULE: ../packages/docusaurus/lib/client/BrokenLinksContext.js -var BrokenLinksContext = __webpack_require__(3054); -;// ../packages/docusaurus/lib/client/serverHelmetUtils.js -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function getBuildMetaTags(helmet){// @ts-expect-error: see https://github.com/staylor/react-helmet-async/pull/167 -const metaElements=helmet.meta.toComponent()??[];return metaElements.map(el=>el.props);}function isNoIndexTag(tag){if(!tag.name||!tag.content){return false;}return(// meta name is not case-sensitive -tag.name.toLowerCase()==='robots'&&// Robots directives are not case-sensitive -tag.content.toLowerCase().includes('noindex'));}function toPageCollectedMetadata({helmet}){const tags=getBuildMetaTags(helmet);const noIndex=tags.some(isNoIndexTag);return{helmet,// TODO Docusaurus v4 remove -public:{noIndex},internal:{htmlAttributes:helmet.htmlAttributes.toString(),bodyAttributes:helmet.bodyAttributes.toString(),title:helmet.title.toString(),meta:helmet.meta.toString(),link:helmet.link.toString(),script:helmet.script.toString()}};} -;// ../packages/docusaurus/lib/client/serverEntry.js -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */const render=async({pathname,v4RemoveLegacyPostBuildHeadAttribute})=>{await preload(pathname);const modules=new Set();const routerContext={};const helmetContext={};const statefulBrokenLinks=(0,BrokenLinksContext/* createStatefulBrokenLinks */.$3)();const app=/*#__PURE__*/// @ts-expect-error: we are migrating away from react-loadable anyways -(0,jsx_runtime.jsx)((lib_default()).Capture,{report:moduleName=>modules.add(moduleName),children:/*#__PURE__*/(0,jsx_runtime.jsx)(index_module/* HelmetProvider */.vd,{context:helmetContext,children:/*#__PURE__*/(0,jsx_runtime.jsx)(react_router/* StaticRouter */.kO,{location:pathname,context:routerContext,children:/*#__PURE__*/(0,jsx_runtime.jsx)(BrokenLinksContext/* BrokenLinksProvider */.k5,{brokenLinks:statefulBrokenLinks,children:/*#__PURE__*/(0,jsx_runtime.jsx)(App,{})})})})});const html=await renderToHtml(app);const{helmet}=helmetContext;const metadata=toPageCollectedMetadata({helmet});// TODO Docusaurus v4 remove with deprecated postBuild({head}) API -// the returned collectedData must be serializable to run in workers -if(v4RemoveLegacyPostBuildHeadAttribute){metadata.helmet=null;}const collectedData={metadata,anchors:statefulBrokenLinks.getCollectedAnchors(),links:statefulBrokenLinks.getCollectedLinks(),modules:Array.from(modules)};return{html,collectedData};};/* harmony default export */ const serverEntry = (render); - -/***/ }), - -/***/ 5788: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - A: () => (/* binding */ routes) -}); - -// EXTERNAL MODULE: ./node_modules/react/index.js -var react = __webpack_require__(6540); -;// ../node_modules/@babel/runtime/helpers/esm/typeof.js -function _typeof(o) { - "@babel/helpers - typeof"; - - return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { - return typeof o; - } : function (o) { - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; - }, _typeof(o); -} - -;// ../node_modules/@babel/runtime/helpers/esm/interopRequireWildcard.js - -function _getRequireWildcardCache(e) { - if ("function" != typeof WeakMap) return null; - var r = new WeakMap(), - t = new WeakMap(); - return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { - return e ? t : r; - })(e); -} -function _interopRequireWildcard(e, r) { - if (!r && e && e.__esModule) return e; - if (null === e || "object" != _typeof(e) && "function" != typeof e) return { - "default": e - }; - var t = _getRequireWildcardCache(r); - if (t && t.has(e)) return t.get(e); - var n = { - __proto__: null - }, - a = Object.defineProperty && Object.getOwnPropertyDescriptor; - for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { - var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; - i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; - } - return n["default"] = e, t && t.set(e, n), n; -} - -// EXTERNAL MODULE: ../node_modules/react-loadable/lib/index.js -var lib = __webpack_require__(7303); -var lib_default = /*#__PURE__*/__webpack_require__.n(lib); -;// ./.docusaurus/routesChunkNames.json -const routesChunkNames_namespaceObject = /*#__PURE__*/JSON.parse('{"/blog-b2f":{"__comp":"a6aa9e1f","__context":{"plugin":"36994c47"},"sidebar":"814f3328","items":[{"content":"7661071f"},{"content":"f4f34a3a"},{"content":"8717b14a"},{"content":"925b3f96"}],"__props":"c15d9823"},"/blog/archive-182":{"__comp":"9e4087bc","__context":{"plugin":"36994c47"},"__props":"f81c1134"},"/blog/authors-0b7":{"__comp":"621db11d","__context":{"data":{"blogMetadata":"acecf23e"},"plugin":"36994c47"},"sidebar":"814f3328","__props":"ef8b811a"},"/blog/authors/all-sebastien-lorber-articles-4a1":{"__comp":"33fc5bb8","__context":{"data":{"blogMetadata":"acecf23e"},"plugin":"36994c47"},"items":[{"content":"7661071f"},{"content":"f4f34a3a"},{"content":"925b3f96"}],"sidebar":"814f3328","__props":"c9c9bef8"},"/blog/authors/yangshun-a68":{"__comp":"33fc5bb8","__context":{"data":{"blogMetadata":"acecf23e"},"plugin":"36994c47"},"items":[{"content":"7661071f"},{"content":"8717b14a"},{"content":"925b3f96"}],"sidebar":"814f3328","__props":"1dea6ca3"},"/blog/first-blog-post-89a":{"__comp":"ccc49370","__context":{"data":{"blogMetadata":"acecf23e"},"plugin":"36994c47"},"sidebar":"814f3328","content":"e273c56f"},"/blog/long-blog-post-9ad":{"__comp":"ccc49370","__context":{"data":{"blogMetadata":"acecf23e"},"plugin":"36994c47"},"sidebar":"814f3328","content":"73664a40"},"/blog/mdx-blog-post-e9f":{"__comp":"ccc49370","__context":{"data":{"blogMetadata":"acecf23e"},"plugin":"36994c47"},"sidebar":"814f3328","content":"59362658"},"/blog/tags-287":{"__comp":"01a85c17","__context":{"plugin":"36994c47"},"sidebar":"814f3328","__props":"3a2db09e"},"/blog/tags/docusaurus-704":{"__comp":"6875c492","__context":{"plugin":"36994c47"},"sidebar":"814f3328","items":[{"content":"7661071f"},{"content":"f4f34a3a"},{"content":"8717b14a"},{"content":"925b3f96"}],"__props":"3217192f"},"/blog/tags/facebook-858":{"__comp":"6875c492","__context":{"plugin":"36994c47"},"sidebar":"814f3328","items":[{"content":"7661071f"}],"__props":"e5aefb32"},"/blog/tags/hello-299":{"__comp":"6875c492","__context":{"plugin":"36994c47"},"sidebar":"814f3328","items":[{"content":"7661071f"},{"content":"8717b14a"}],"__props":"f82cd581"},"/blog/tags/hola-00d":{"__comp":"6875c492","__context":{"plugin":"36994c47"},"sidebar":"814f3328","items":[{"content":"925b3f96"}],"__props":"5e90a9b3"},"/blog/welcome-d2b":{"__comp":"ccc49370","__context":{"data":{"blogMetadata":"acecf23e"},"plugin":"36994c47"},"sidebar":"814f3328","content":"d9f32620"},"/markdown-page-3d7":{"__comp":"1f391b9e","__context":{"plugin":"a7456010"},"content":"393be207"},"/docs-733":{"__comp":"5e95c892","__context":{"plugin":"aba21aa0"}},"/docs-7e6":{"__comp":"a7bd4aaa","__props":"0058b4c6"},"/docs-ba6":{"__comp":"a94703ab"},"/docs/category/tutorial---basics-20e":{"__comp":"14eb3368","__props":"c8a4e95a"},"/docs/category/tutorial---extras-9ad":{"__comp":"14eb3368","__props":"6bb166bd"},"/docs/intro-61d":{"__comp":"17896441","content":"0e384e19"},"/docs/tutorial-basics/congratulations-458":{"__comp":"17896441","content":"822bd8ab"},"/docs/tutorial-basics/create-a-blog-post-108":{"__comp":"17896441","content":"533a09ca"},"/docs/tutorial-basics/create-a-document-8fc":{"__comp":"17896441","content":"1e4232ab"},"/docs/tutorial-basics/create-a-page-951":{"__comp":"17896441","content":"5c868d36"},"/docs/tutorial-basics/deploy-your-site-4f5":{"__comp":"17896441","content":"f55d3e7a"},"/docs/tutorial-basics/markdown-features-b05":{"__comp":"17896441","content":"18c41134"},"/docs/tutorial-extras/manage-docs-versions-978":{"__comp":"17896441","content":"dff1c289"},"/docs/tutorial-extras/translate-your-site-f9a":{"__comp":"17896441","content":"e44a2883"},"/-e5f":{"__comp":"1df93b7f","__context":{"plugin":"a7456010"},"config":"5e9f5e1a"}}'); -;// ./.docusaurus/registry.js -/* harmony default export */ const registry = ({"0058b4c6":[()=>Promise.resolve().then(()=>_interopRequireWildcard(__webpack_require__(6164))),"@generated/docusaurus-plugin-content-docs/default/p/docs-175.json",/*require.resolve*/(6164)],"01a85c17":[()=>Promise.resolve().then(()=>_interopRequireWildcard(__webpack_require__(8807))),"@theme/BlogTagsListPage",/*require.resolve*/(8807)],"0e384e19":[()=>Promise.resolve().then(()=>_interopRequireWildcard(__webpack_require__(2863))),"@site/docs/intro.md",/*require.resolve*/(2863)],"14eb3368":[()=>Promise.resolve().then(()=>_interopRequireWildcard(__webpack_require__(2980))),"@theme/DocCategoryGeneratedIndexPage",/*require.resolve*/(2980)],"17896441":[()=>Promise.resolve().then(()=>_interopRequireWildcard(__webpack_require__(3135))),"@theme/DocItem",/*require.resolve*/(3135)],"18c41134":[()=>Promise.resolve().then(()=>_interopRequireWildcard(__webpack_require__(6731))),"@site/docs/tutorial-basics/markdown-features.mdx",/*require.resolve*/(6731)],"1dea6ca3":[()=>Promise.resolve().then(()=>_interopRequireWildcard(__webpack_require__(6067))),"@generated/docusaurus-plugin-content-blog/default/p/blog-authors-yangshun-af2.json",/*require.resolve*/(6067)],"1df93b7f":[()=>Promise.resolve().then(()=>_interopRequireWildcard(__webpack_require__(4134))),"@site/src/pages/index.tsx",/*require.resolve*/(4134)],"1e4232ab":[()=>Promise.resolve().then(()=>_interopRequireWildcard(__webpack_require__(1000))),"@site/docs/tutorial-basics/create-a-document.md",/*require.resolve*/(1000)],"1f391b9e":[()=>Promise.resolve().then(()=>_interopRequireWildcard(__webpack_require__(859))),"@theme/MDXPage",/*require.resolve*/(859)],"3217192f":[()=>Promise.resolve().then(()=>_interopRequireWildcard(__webpack_require__(8174))),"@generated/docusaurus-plugin-content-blog/default/p/blog-tags-docusaurus-f20.json",/*require.resolve*/(8174)],"33fc5bb8":[()=>Promise.resolve().then(()=>_interopRequireWildcard(__webpack_require__(4187))),"@theme/Blog/Pages/BlogAuthorsPostsPage",/*require.resolve*/(4187)],"36994c47":[()=>Promise.resolve().then(()=>_interopRequireWildcard(__webpack_require__(5516))),"@generated/docusaurus-plugin-content-blog/default/__plugin.json",/*require.resolve*/(5516)],"393be207":[()=>Promise.resolve().then(()=>_interopRequireWildcard(__webpack_require__(3065))),"@site/src/pages/markdown-page.md",/*require.resolve*/(3065)],"3a2db09e":[()=>Promise.resolve().then(()=>_interopRequireWildcard(__webpack_require__(8070))),"@generated/docusaurus-plugin-content-blog/default/p/blog-tags-df9.json",/*require.resolve*/(8070)],"533a09ca":[()=>Promise.resolve().then(()=>_interopRequireWildcard(__webpack_require__(2621))),"@site/docs/tutorial-basics/create-a-blog-post.md",/*require.resolve*/(2621)],"59362658":[()=>Promise.resolve().then(()=>_interopRequireWildcard(__webpack_require__(4986))),"@site/blog/2021-08-01-mdx-blog-post.mdx",/*require.resolve*/(4986)],"5c868d36":[()=>Promise.resolve().then(()=>_interopRequireWildcard(__webpack_require__(9009))),"@site/docs/tutorial-basics/create-a-page.md",/*require.resolve*/(9009)],"5e90a9b3":[()=>Promise.resolve().then(()=>_interopRequireWildcard(__webpack_require__(7134))),"@generated/docusaurus-plugin-content-blog/default/p/blog-tags-hola-73f.json",/*require.resolve*/(7134)],"5e95c892":[()=>Promise.resolve().then(()=>_interopRequireWildcard(__webpack_require__(7602))),"@theme/DocsRoot",/*require.resolve*/(7602)],"5e9f5e1a":[()=>Promise.resolve().then(()=>_interopRequireWildcard(__webpack_require__(4784))),"@generated/docusaurus.config",/*require.resolve*/(4784)],"621db11d":[()=>Promise.resolve().then(()=>_interopRequireWildcard(__webpack_require__(2166))),"@theme/Blog/Pages/BlogAuthorsListPage",/*require.resolve*/(2166)],"6875c492":[()=>Promise.resolve().then(()=>_interopRequireWildcard(__webpack_require__(1780))),"@theme/BlogTagsPostsPage",/*require.resolve*/(1780)],"6bb166bd":[()=>Promise.resolve().then(()=>_interopRequireWildcard(__webpack_require__(3618))),"@generated/docusaurus-plugin-content-docs/default/p/docs-category-tutorial-extras-128.json",/*require.resolve*/(3618)],"73664a40":[()=>Promise.resolve().then(()=>_interopRequireWildcard(__webpack_require__(9655))),"@site/blog/2019-05-29-long-blog-post.md",/*require.resolve*/(9655)],"7661071f":[()=>Promise.resolve().then(()=>_interopRequireWildcard(__webpack_require__(2219))),"@site/blog/2021-08-26-welcome/index.md?truncated=true",/*require.resolve*/(2219)],"814f3328":[()=>Promise.resolve().then(()=>_interopRequireWildcard(__webpack_require__(5513))),"~blog/default/blog-post-list-prop-default.json",/*require.resolve*/(5513)],"822bd8ab":[()=>Promise.resolve().then(()=>_interopRequireWildcard(__webpack_require__(8423))),"@site/docs/tutorial-basics/congratulations.md",/*require.resolve*/(8423)],"8717b14a":[()=>Promise.resolve().then(()=>_interopRequireWildcard(__webpack_require__(2185))),"@site/blog/2019-05-29-long-blog-post.md?truncated=true",/*require.resolve*/(2185)],"925b3f96":[()=>Promise.resolve().then(()=>_interopRequireWildcard(__webpack_require__(1576))),"@site/blog/2019-05-28-first-blog-post.md?truncated=true",/*require.resolve*/(1576)],"9e4087bc":[()=>Promise.resolve().then(()=>_interopRequireWildcard(__webpack_require__(9814))),"@theme/BlogArchivePage",/*require.resolve*/(9814)],"a6aa9e1f":[()=>Promise.resolve().then(()=>_interopRequireWildcard(__webpack_require__(8394))),"@theme/BlogListPage",/*require.resolve*/(8394)],"a7456010":[()=>Promise.resolve().then(()=>_interopRequireWildcard(__webpack_require__(8552))),"@generated/docusaurus-plugin-content-pages/default/__plugin.json",/*require.resolve*/(8552)],"a7bd4aaa":[()=>Promise.resolve().then(()=>_interopRequireWildcard(__webpack_require__(9660))),"@theme/DocVersionRoot",/*require.resolve*/(9660)],"a94703ab":[()=>Promise.resolve().then(()=>_interopRequireWildcard(__webpack_require__(8125))),"@theme/DocRoot",/*require.resolve*/(8125)],"aba21aa0":[()=>Promise.resolve().then(()=>_interopRequireWildcard(__webpack_require__(7093))),"@generated/docusaurus-plugin-content-docs/default/__plugin.json",/*require.resolve*/(7093)],"acecf23e":[()=>Promise.resolve().then(()=>_interopRequireWildcard(__webpack_require__(1912))),"~blog/default/blogMetadata-default.json",/*require.resolve*/(1912)],"c15d9823":[()=>Promise.resolve().then(()=>_interopRequireWildcard(__webpack_require__(9328))),"@generated/docusaurus-plugin-content-blog/default/p/blog-bd9.json",/*require.resolve*/(9328)],"c8a4e95a":[()=>Promise.resolve().then(()=>_interopRequireWildcard(__webpack_require__(1549))),"@generated/docusaurus-plugin-content-docs/default/p/docs-category-tutorial-basics-ea4.json",/*require.resolve*/(1549)],"c9c9bef8":[()=>Promise.resolve().then(()=>_interopRequireWildcard(__webpack_require__(4971))),"@generated/docusaurus-plugin-content-blog/default/p/blog-authors-all-sebastien-lorber-articles-6eb.json",/*require.resolve*/(4971)],"ccc49370":[()=>Promise.resolve().then(()=>_interopRequireWildcard(__webpack_require__(5101))),"@theme/BlogPostPage",/*require.resolve*/(5101)],"d9f32620":[()=>Promise.resolve().then(()=>_interopRequireWildcard(__webpack_require__(8297))),"@site/blog/2021-08-26-welcome/index.md",/*require.resolve*/(8297)],"dff1c289":[()=>Promise.resolve().then(()=>_interopRequireWildcard(__webpack_require__(6052))),"@site/docs/tutorial-extras/manage-docs-versions.md",/*require.resolve*/(6052)],"e273c56f":[()=>Promise.resolve().then(()=>_interopRequireWildcard(__webpack_require__(4812))),"@site/blog/2019-05-28-first-blog-post.md",/*require.resolve*/(4812)],"e44a2883":[()=>Promise.resolve().then(()=>_interopRequireWildcard(__webpack_require__(9912))),"@site/docs/tutorial-extras/translate-your-site.md",/*require.resolve*/(9912)],"e5aefb32":[()=>Promise.resolve().then(()=>_interopRequireWildcard(__webpack_require__(8539))),"@generated/docusaurus-plugin-content-blog/default/p/blog-tags-facebook-f47.json",/*require.resolve*/(8539)],"ef8b811a":[()=>Promise.resolve().then(()=>_interopRequireWildcard(__webpack_require__(6600))),"@generated/docusaurus-plugin-content-blog/default/p/blog-authors-790.json",/*require.resolve*/(6600)],"f4f34a3a":[()=>Promise.resolve().then(()=>_interopRequireWildcard(__webpack_require__(7934))),"@site/blog/2021-08-01-mdx-blog-post.mdx?truncated=true",/*require.resolve*/(7934)],"f55d3e7a":[()=>Promise.resolve().then(()=>_interopRequireWildcard(__webpack_require__(9466))),"@site/docs/tutorial-basics/deploy-your-site.md",/*require.resolve*/(9466)],"f81c1134":[()=>Promise.resolve().then(()=>_interopRequireWildcard(__webpack_require__(7735))),"@generated/docusaurus-plugin-content-blog/default/p/blog-archive-f05.json",/*require.resolve*/(7735)],"f82cd581":[()=>Promise.resolve().then(()=>_interopRequireWildcard(__webpack_require__(4035))),"@generated/docusaurus-plugin-content-blog/default/p/blog-tags-hello-f96.json",/*require.resolve*/(4035)]}); -// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js -var jsx_runtime = __webpack_require__(4848); -;// ../packages/docusaurus/lib/client/theme-fallback/Loading/index.js -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */// Should we translate theme-fallback? -/* eslint-disable @docusaurus/no-untranslated-text */function Loading({error,retry,pastDelay}){if(error){return/*#__PURE__*/(0,jsx_runtime.jsxs)("div",{style:{textAlign:'center',color:'#fff',backgroundColor:'#fa383e',borderColor:'#fa383e',borderStyle:'solid',borderRadius:'0.25rem',borderWidth:'1px',boxSizing:'border-box',display:'block',padding:'1rem',flex:'0 0 50%',marginLeft:'25%',marginRight:'25%',marginTop:'5rem',maxWidth:'50%',width:'100%'},children:[/*#__PURE__*/(0,jsx_runtime.jsx)("p",{children:String(error)}),/*#__PURE__*/(0,jsx_runtime.jsx)("div",{children:/*#__PURE__*/(0,jsx_runtime.jsx)("button",{type:"button",onClick:retry,children:"Retry"})})]});}if(pastDelay){return/*#__PURE__*/(0,jsx_runtime.jsx)("div",{style:{display:'flex',justifyContent:'center',alignItems:'center',height:'100vh'},children:/*#__PURE__*/(0,jsx_runtime.jsx)("svg",{id:"loader",style:{width:128,height:110,position:'absolute',top:'calc(100vh - 64%)'},viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg",stroke:"#61dafb",children:/*#__PURE__*/(0,jsx_runtime.jsxs)("g",{fill:"none",fillRule:"evenodd",transform:"translate(1 1)",strokeWidth:"2",children:[/*#__PURE__*/(0,jsx_runtime.jsxs)("circle",{cx:"22",cy:"22",r:"6",strokeOpacity:"0",children:[/*#__PURE__*/(0,jsx_runtime.jsx)("animate",{attributeName:"r",begin:"1.5s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),/*#__PURE__*/(0,jsx_runtime.jsx)("animate",{attributeName:"stroke-opacity",begin:"1.5s",dur:"3s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),/*#__PURE__*/(0,jsx_runtime.jsx)("animate",{attributeName:"stroke-width",begin:"1.5s",dur:"3s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"})]}),/*#__PURE__*/(0,jsx_runtime.jsxs)("circle",{cx:"22",cy:"22",r:"6",strokeOpacity:"0",children:[/*#__PURE__*/(0,jsx_runtime.jsx)("animate",{attributeName:"r",begin:"3s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),/*#__PURE__*/(0,jsx_runtime.jsx)("animate",{attributeName:"stroke-opacity",begin:"3s",dur:"3s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),/*#__PURE__*/(0,jsx_runtime.jsx)("animate",{attributeName:"stroke-width",begin:"3s",dur:"3s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"})]}),/*#__PURE__*/(0,jsx_runtime.jsx)("circle",{cx:"22",cy:"22",r:"8",children:/*#__PURE__*/(0,jsx_runtime.jsx)("animate",{attributeName:"r",begin:"0s",dur:"1.5s",values:"6;1;2;3;4;5;6",calcMode:"linear",repeatCount:"indefinite"})})]})})});}return null;} -;// ../packages/docusaurus/lib/client/flat.js -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */const isTree=x=>typeof x==='object'&&!!x&&Object.keys(x).length>0;/** - * Takes a tree, and flattens it into a map of keyPath -> value. - * - * ```js - * flat({ a: { b: 1 } }) === { "a.b": 1 }; - * flat({ a: [1, 2] }) === { "a.0": 1, "a.1": 2 }; - * ``` - */function flat(target){const delimiter='.';const output={};function dfs(object,prefix){Object.entries(object).forEach(([key,value])=>{const newKey=prefix?`${prefix}${delimiter}${key}`:key;if(isTree(value)){dfs(value,newKey);}else{output[newKey]=value;}});}dfs(target);return output;} -// EXTERNAL MODULE: ../packages/docusaurus/lib/client/routeContext.js -var client_routeContext = __webpack_require__(5015); -;// ../packages/docusaurus/lib/client/exports/ComponentCreator.js -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function ComponentCreator(path,hash){// 404 page -if(path==='*'){return lib_default()({loading:Loading,loader:()=>Promise.resolve().then(()=>_interopRequireWildcard(__webpack_require__(8714))),modules:['@theme/NotFound'],webpack:()=>[/*require.resolve*/(8714)],render(loaded,props){const NotFound=loaded.default;return/*#__PURE__*/(0,jsx_runtime.jsx)(client_routeContext/* RouteContextProvider */.W// Do we want a better name than native-default? -,{value:{plugin:{name:'native',id:'default'}},children:/*#__PURE__*/(0,jsx_runtime.jsx)(NotFound,{...props})});}});}const chunkNames=routesChunkNames_namespaceObject[`${path}-${hash}`];// eslint-disable-next-line @typescript-eslint/no-explicit-any -const loader={};const modules=[];const optsWebpack=[];// A map from prop names to chunk names. -// e.g. Suppose the plugin added this as route: -// { __comp: "...", prop: { foo: "..." }, items: ["...", "..."] } -// It will become: -// { __comp: "...", "prop.foo": "...", "items.0": "...", "items.1": ... } -// Loadable.Map will _map_ over `loader` and load each key. -const flatChunkNames=flat(chunkNames);Object.entries(flatChunkNames).forEach(([keyPath,chunkName])=>{const chunkRegistry=registry[chunkName];if(chunkRegistry){// eslint-disable-next-line prefer-destructuring -loader[keyPath]=chunkRegistry[0];modules.push(chunkRegistry[1]);optsWebpack.push(chunkRegistry[2]);}});return lib_default().Map({loading:Loading,loader,modules,webpack:()=>optsWebpack,render(loaded,props){// `loaded` will be a map from key path (as returned from the flattened -// chunk names) to the modules loaded from the loaders. We now have to -// restore the chunk names' previous shape from this flat record. -// We do so by taking advantage of the existing `chunkNames` and replacing -// each chunk name with its loaded module, so we don't create another -// object from scratch. -const loadedModules=JSON.parse(JSON.stringify(chunkNames));Object.entries(loaded).forEach(([keyPath,loadedModule])=>{// JSON modules are also loaded as `{ default: ... }` (`import()` -// semantics) but we just want to pass the actual value to props. -const chunk=loadedModule.default;// One loaded chunk can only be one of two things: a module (props) or a -// component. Modules are always JSON, so `default` always exists. This -// could only happen with a user-defined component. -if(!chunk){throw new Error(`The page component at ${path} doesn't have a default export. This makes it impossible to render anything. Consider default-exporting a React component.`);}// A module can be a primitive, for example, if the user stored a string -// as a prop. However, there seems to be a bug with swc-loader's CJS -// logic, in that it would load a JSON module with content "foo" as -// `{ default: "foo", 0: "f", 1: "o", 2: "o" }`. Just to be safe, we -// first make sure that the chunk is non-primitive. -if(typeof chunk==='object'||typeof chunk==='function'){Object.keys(loadedModule).filter(k=>k!=='default').forEach(nonDefaultKey=>{chunk[nonDefaultKey]=loadedModule[nonDefaultKey];});}// We now have this chunk prepared. Go down the key path and replace the -// chunk name with the actual chunk. -let val=loadedModules;const keyPaths=keyPath.split('.');keyPaths.slice(0,-1).forEach(k=>{val=val[k];});val[keyPaths[keyPaths.length-1]]=chunk;});/* eslint-disable no-underscore-dangle */const Component=loadedModules.__comp;delete loadedModules.__comp;const routeContext=loadedModules.__context;delete loadedModules.__context;const routeProps=loadedModules.__props;delete loadedModules.__props;/* eslint-enable no-underscore-dangle */// Is there any way to put this RouteContextProvider upper in the tree? -return/*#__PURE__*/(0,jsx_runtime.jsx)(client_routeContext/* RouteContextProvider */.W,{value:routeContext,children:/*#__PURE__*/(0,jsx_runtime.jsx)(Component,{...loadedModules,...routeProps,...props})});}});} -;// ./.docusaurus/routes.js -/* harmony default export */ const routes = ([{path:'/blog',component:ComponentCreator('/blog','b2f'),exact:true},{path:'/blog/archive',component:ComponentCreator('/blog/archive','182'),exact:true},{path:'/blog/authors',component:ComponentCreator('/blog/authors','0b7'),exact:true},{path:'/blog/authors/all-sebastien-lorber-articles',component:ComponentCreator('/blog/authors/all-sebastien-lorber-articles','4a1'),exact:true},{path:'/blog/authors/yangshun',component:ComponentCreator('/blog/authors/yangshun','a68'),exact:true},{path:'/blog/first-blog-post',component:ComponentCreator('/blog/first-blog-post','89a'),exact:true},{path:'/blog/long-blog-post',component:ComponentCreator('/blog/long-blog-post','9ad'),exact:true},{path:'/blog/mdx-blog-post',component:ComponentCreator('/blog/mdx-blog-post','e9f'),exact:true},{path:'/blog/tags',component:ComponentCreator('/blog/tags','287'),exact:true},{path:'/blog/tags/docusaurus',component:ComponentCreator('/blog/tags/docusaurus','704'),exact:true},{path:'/blog/tags/facebook',component:ComponentCreator('/blog/tags/facebook','858'),exact:true},{path:'/blog/tags/hello',component:ComponentCreator('/blog/tags/hello','299'),exact:true},{path:'/blog/tags/hola',component:ComponentCreator('/blog/tags/hola','00d'),exact:true},{path:'/blog/welcome',component:ComponentCreator('/blog/welcome','d2b'),exact:true},{path:'/markdown-page',component:ComponentCreator('/markdown-page','3d7'),exact:true},{path:'/docs',component:ComponentCreator('/docs','733'),routes:[{path:'/docs',component:ComponentCreator('/docs','7e6'),routes:[{path:'/docs',component:ComponentCreator('/docs','ba6'),routes:[{path:'/docs/category/tutorial---basics',component:ComponentCreator('/docs/category/tutorial---basics','20e'),exact:true,sidebar:"tutorialSidebar"},{path:'/docs/category/tutorial---extras',component:ComponentCreator('/docs/category/tutorial---extras','9ad'),exact:true,sidebar:"tutorialSidebar"},{path:'/docs/intro',component:ComponentCreator('/docs/intro','61d'),exact:true,sidebar:"tutorialSidebar"},{path:'/docs/tutorial-basics/congratulations',component:ComponentCreator('/docs/tutorial-basics/congratulations','458'),exact:true,sidebar:"tutorialSidebar"},{path:'/docs/tutorial-basics/create-a-blog-post',component:ComponentCreator('/docs/tutorial-basics/create-a-blog-post','108'),exact:true,sidebar:"tutorialSidebar"},{path:'/docs/tutorial-basics/create-a-document',component:ComponentCreator('/docs/tutorial-basics/create-a-document','8fc'),exact:true,sidebar:"tutorialSidebar"},{path:'/docs/tutorial-basics/create-a-page',component:ComponentCreator('/docs/tutorial-basics/create-a-page','951'),exact:true,sidebar:"tutorialSidebar"},{path:'/docs/tutorial-basics/deploy-your-site',component:ComponentCreator('/docs/tutorial-basics/deploy-your-site','4f5'),exact:true,sidebar:"tutorialSidebar"},{path:'/docs/tutorial-basics/markdown-features',component:ComponentCreator('/docs/tutorial-basics/markdown-features','b05'),exact:true,sidebar:"tutorialSidebar"},{path:'/docs/tutorial-extras/manage-docs-versions',component:ComponentCreator('/docs/tutorial-extras/manage-docs-versions','978'),exact:true,sidebar:"tutorialSidebar"},{path:'/docs/tutorial-extras/translate-your-site',component:ComponentCreator('/docs/tutorial-extras/translate-your-site','f9a'),exact:true,sidebar:"tutorialSidebar"}]}]}]},{path:'/',component:ComponentCreator('/','e5f'),exact:true},{path:'*',component:ComponentCreator('*')}]); - -/***/ }), - -/***/ 4134: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "default": () => (/* binding */ Home) -}); - -// EXTERNAL MODULE: ../node_modules/clsx/dist/clsx.mjs -var clsx = __webpack_require__(1750); -// EXTERNAL MODULE: ../packages/docusaurus/lib/client/exports/Link.js + 1 modules -var Link = __webpack_require__(1349); -// EXTERNAL MODULE: ../packages/docusaurus/lib/client/exports/useDocusaurusContext.js -var useDocusaurusContext = __webpack_require__(1571); -// EXTERNAL MODULE: ../packages/docusaurus-theme-classic/lib/theme/Layout/index.js + 53 modules -var Layout = __webpack_require__(3305); -// EXTERNAL MODULE: ../packages/docusaurus-theme-classic/lib/theme/Heading/index.js -var Heading = __webpack_require__(6813); -// EXTERNAL MODULE: ./src/components/HomepageFeatures/styles.module.css -var styles_module = __webpack_require__(6292); -var styles_module_default = /*#__PURE__*/__webpack_require__.n(styles_module); -// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js -var jsx_runtime = __webpack_require__(4848); -;// ./src/components/HomepageFeatures/index.tsx -const FeatureList=[{title:'Easy to Use',Svg:(__webpack_require__(4988)/* ["default"] */ .A),description:/*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment,{children:"Docusaurus was designed from the ground up to be easily installed and used to get your website up and running quickly."})},{title:'Focus on What Matters',Svg:(__webpack_require__(1213)/* ["default"] */ .A),description:/*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:["Docusaurus lets you focus on your docs, and we'll do the chores. Go ahead and move your docs into the ",/*#__PURE__*/(0,jsx_runtime.jsx)("code",{children:"docs"})," directory."]})},{title:'Powered by React',Svg:(__webpack_require__(8074)/* ["default"] */ .A),description:/*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment,{children:"Extend or customize your website layout by reusing React. Docusaurus can be extended while reusing the same header and footer."})}];function Feature({title,Svg,description}){return/*#__PURE__*/(0,jsx_runtime.jsxs)("div",{className:(0,clsx/* default */.A)('col col--4'),children:[/*#__PURE__*/(0,jsx_runtime.jsx)("div",{className:"text--center",children:/*#__PURE__*/(0,jsx_runtime.jsx)(Svg,{className:(styles_module_default()).featureSvg,role:"img"})}),/*#__PURE__*/(0,jsx_runtime.jsxs)("div",{className:"text--center padding-horiz--md",children:[/*#__PURE__*/(0,jsx_runtime.jsx)(Heading/* default */.A,{as:"h3",children:title}),/*#__PURE__*/(0,jsx_runtime.jsx)("p",{children:description})]})]});}function HomepageFeatures(){return/*#__PURE__*/(0,jsx_runtime.jsx)("section",{className:(styles_module_default()).features,children:/*#__PURE__*/(0,jsx_runtime.jsx)("div",{className:"container",children:/*#__PURE__*/(0,jsx_runtime.jsx)("div",{className:"row",children:FeatureList.map((props,idx)=>/*#__PURE__*/(0,jsx_runtime.jsx)(Feature,{...props},idx))})})});} -// EXTERNAL MODULE: ./src/pages/index.module.css -var index_module = __webpack_require__(1514); -var index_module_default = /*#__PURE__*/__webpack_require__.n(index_module); -;// ./src/pages/index.tsx -function HomepageHeader(){const{siteConfig}=(0,useDocusaurusContext/* default */.A)();return/*#__PURE__*/(0,jsx_runtime.jsx)("header",{className:(0,clsx/* default */.A)('hero hero--primary',(index_module_default()).heroBanner),children:/*#__PURE__*/(0,jsx_runtime.jsxs)("div",{className:"container",children:[/*#__PURE__*/(0,jsx_runtime.jsx)(Heading/* default */.A,{as:"h1",className:"hero__title",children:siteConfig.title}),/*#__PURE__*/(0,jsx_runtime.jsx)("p",{className:"hero__subtitle",children:siteConfig.tagline}),/*#__PURE__*/(0,jsx_runtime.jsx)("div",{className:(index_module_default()).buttons,children:/*#__PURE__*/(0,jsx_runtime.jsx)(Link/* default */.A,{className:"button button--secondary button--lg",to:"/docs/intro",children:"Docusaurus Tutorial - 5min \u23F1\uFE0F"})})]})});}function Home(){const{siteConfig}=(0,useDocusaurusContext/* default */.A)();return/*#__PURE__*/(0,jsx_runtime.jsxs)(Layout/* default */.A,{title:`Hello from ${siteConfig.title}`,description:"Description will go into a meta tag inYour Docusaurus site did not load properly.
-A very common reason is a wrong site baseUrl configuration.
-Current configured baseUrl = ${baseUrl} ${baseUrl==='/'?' (default value)':''}
-We suggest trying baseUrl =
-' - }; - - /** - * Updates configuration. - * - * NProgress.configure({ - * minimum: 0.1 - * }); - */ - NProgress.configure = function(options) { - var key, value; - for (key in options) { - value = options[key]; - if (value !== undefined && options.hasOwnProperty(key)) Settings[key] = value; - } - - return this; - }; - - /** - * Last number. - */ - - NProgress.status = null; - - /** - * Sets the progress bar status, where `n` is a number from `0.0` to `1.0`. - * - * NProgress.set(0.4); - * NProgress.set(1.0); - */ - - NProgress.set = function(n) { - var started = NProgress.isStarted(); - - n = clamp(n, Settings.minimum, 1); - NProgress.status = (n === 1 ? null : n); - - var progress = NProgress.render(!started), - bar = progress.querySelector(Settings.barSelector), - speed = Settings.speed, - ease = Settings.easing; - - progress.offsetWidth; /* Repaint */ - - queue(function(next) { - // Set positionUsing if it hasn't already been set - if (Settings.positionUsing === '') Settings.positionUsing = NProgress.getPositioningCSS(); - - // Add transition - css(bar, barPositionCSS(n, speed, ease)); - - if (n === 1) { - // Fade out - css(progress, { - transition: 'none', - opacity: 1 - }); - progress.offsetWidth; /* Repaint */ - - setTimeout(function() { - css(progress, { - transition: 'all ' + speed + 'ms linear', - opacity: 0 - }); - setTimeout(function() { - NProgress.remove(); - next(); - }, speed); - }, speed); - } else { - setTimeout(next, speed); - } - }); - - return this; - }; - - NProgress.isStarted = function() { - return typeof NProgress.status === 'number'; - }; - - /** - * Shows the progress bar. - * This is the same as setting the status to 0%, except that it doesn't go backwards. - * - * NProgress.start(); - * - */ - NProgress.start = function() { - if (!NProgress.status) NProgress.set(0); - - var work = function() { - setTimeout(function() { - if (!NProgress.status) return; - NProgress.trickle(); - work(); - }, Settings.trickleSpeed); - }; - - if (Settings.trickle) work(); - - return this; - }; - - /** - * Hides the progress bar. - * This is the *sort of* the same as setting the status to 100%, with the - * difference being `done()` makes some placebo effect of some realistic motion. - * - * NProgress.done(); - * - * If `true` is passed, it will show the progress bar even if its hidden. - * - * NProgress.done(true); - */ - - NProgress.done = function(force) { - if (!force && !NProgress.status) return this; - - return NProgress.inc(0.3 + 0.5 * Math.random()).set(1); - }; - - /** - * Increments by a random amount. - */ - - NProgress.inc = function(amount) { - var n = NProgress.status; - - if (!n) { - return NProgress.start(); - } else { - if (typeof amount !== 'number') { - amount = (1 - n) * clamp(Math.random() * n, 0.1, 0.95); - } - - n = clamp(n + amount, 0, 0.994); - return NProgress.set(n); - } - }; - - NProgress.trickle = function() { - return NProgress.inc(Math.random() * Settings.trickleRate); - }; - - /** - * Waits for all supplied jQuery promises and - * increases the progress as the promises resolve. - * - * @param $promise jQUery Promise - */ - (function() { - var initial = 0, current = 0; - - NProgress.promise = function($promise) { - if (!$promise || $promise.state() === "resolved") { - return this; - } - - if (current === 0) { - NProgress.start(); - } - - initial++; - current++; - - $promise.always(function() { - current--; - if (current === 0) { - initial = 0; - NProgress.done(); - } else { - NProgress.set((initial - current) / initial); - } - }); - - return this; - }; - - })(); - - /** - * (Internal) renders the progress bar markup based on the `template` - * setting. - */ - - NProgress.render = function(fromStart) { - if (NProgress.isRendered()) return document.getElementById('nprogress'); - - addClass(document.documentElement, 'nprogress-busy'); - - var progress = document.createElement('div'); - progress.id = 'nprogress'; - progress.innerHTML = Settings.template; - - var bar = progress.querySelector(Settings.barSelector), - perc = fromStart ? '-100' : toBarPerc(NProgress.status || 0), - parent = document.querySelector(Settings.parent), - spinner; - - css(bar, { - transition: 'all 0 linear', - transform: 'translate3d(' + perc + '%,0,0)' - }); - - if (!Settings.showSpinner) { - spinner = progress.querySelector(Settings.spinnerSelector); - spinner && removeElement(spinner); - } - - if (parent != document.body) { - addClass(parent, 'nprogress-custom-parent'); - } - - parent.appendChild(progress); - return progress; - }; - - /** - * Removes the element. Opposite of render(). - */ - - NProgress.remove = function() { - removeClass(document.documentElement, 'nprogress-busy'); - removeClass(document.querySelector(Settings.parent), 'nprogress-custom-parent'); - var progress = document.getElementById('nprogress'); - progress && removeElement(progress); - }; - - /** - * Checks if the progress bar is rendered. - */ - - NProgress.isRendered = function() { - return !!document.getElementById('nprogress'); - }; - - /** - * Determine which positioning CSS rule to use. - */ - - NProgress.getPositioningCSS = function() { - // Sniff on document.body.style - var bodyStyle = document.body.style; - - // Sniff prefixes - var vendorPrefix = ('WebkitTransform' in bodyStyle) ? 'Webkit' : - ('MozTransform' in bodyStyle) ? 'Moz' : - ('msTransform' in bodyStyle) ? 'ms' : - ('OTransform' in bodyStyle) ? 'O' : ''; - - if (vendorPrefix + 'Perspective' in bodyStyle) { - // Modern browsers with 3D support, e.g. Webkit, IE10 - return 'translate3d'; - } else if (vendorPrefix + 'Transform' in bodyStyle) { - // Browsers without 3D support, e.g. IE9 - return 'translate'; - } else { - // Browsers without translate() support, e.g. IE7-8 - return 'margin'; - } - }; - - /** - * Helpers - */ - - function clamp(n, min, max) { - if (n < min) return min; - if (n > max) return max; - return n; - } - - /** - * (Internal) converts a percentage (`0..1`) to a bar translateX - * percentage (`-100%..0%`). - */ - - function toBarPerc(n) { - return (-1 + n) * 100; - } - - - /** - * (Internal) returns the correct CSS for changing the bar's - * position given an n percentage, and speed and ease from Settings - */ - - function barPositionCSS(n, speed, ease) { - var barCSS; - - if (Settings.positionUsing === 'translate3d') { - barCSS = { transform: 'translate3d('+toBarPerc(n)+'%,0,0)' }; - } else if (Settings.positionUsing === 'translate') { - barCSS = { transform: 'translate('+toBarPerc(n)+'%,0)' }; - } else { - barCSS = { 'margin-left': toBarPerc(n)+'%' }; - } - - barCSS.transition = 'all '+speed+'ms '+ease; - - return barCSS; - } - - /** - * (Internal) Queues a function to be executed. - */ - - var queue = (function() { - var pending = []; - - function next() { - var fn = pending.shift(); - if (fn) { - fn(next); - } - } - - return function(fn) { - pending.push(fn); - if (pending.length == 1) next(); - }; - })(); - - /** - * (Internal) Applies css properties to an element, similar to the jQuery - * css method. - * - * While this helper does assist with vendor prefixed property names, it - * does not perform any manipulation of values prior to setting styles. - */ - - var css = (function() { - var cssPrefixes = [ 'Webkit', 'O', 'Moz', 'ms' ], - cssProps = {}; - - function camelCase(string) { - return string.replace(/^-ms-/, 'ms-').replace(/-([\da-z])/gi, function(match, letter) { - return letter.toUpperCase(); - }); - } - - function getVendorProp(name) { - var style = document.body.style; - if (name in style) return name; - - var i = cssPrefixes.length, - capName = name.charAt(0).toUpperCase() + name.slice(1), - vendorName; - while (i--) { - vendorName = cssPrefixes[i] + capName; - if (vendorName in style) return vendorName; - } - - return name; - } - - function getStyleProp(name) { - name = camelCase(name); - return cssProps[name] || (cssProps[name] = getVendorProp(name)); - } - - function applyCss(element, prop, value) { - prop = getStyleProp(prop); - element.style[prop] = value; - } - - return function(element, properties) { - var args = arguments, - prop, - value; - - if (args.length == 2) { - for (prop in properties) { - value = properties[prop]; - if (value !== undefined && properties.hasOwnProperty(prop)) applyCss(element, prop, value); - } - } else { - applyCss(element, args[1], args[2]); - } - } - })(); - - /** - * (Internal) Determines if an element or space separated list of class names contains a class name. - */ - - function hasClass(element, name) { - var list = typeof element == 'string' ? element : classList(element); - return list.indexOf(' ' + name + ' ') >= 0; - } - - /** - * (Internal) Adds a class to an element. - */ - - function addClass(element, name) { - var oldList = classList(element), - newList = oldList + name; - - if (hasClass(oldList, name)) return; - - // Trim the opening space. - element.className = newList.substring(1); - } - - /** - * (Internal) Removes a class from an element. - */ - - function removeClass(element, name) { - var oldList = classList(element), - newList; - - if (!hasClass(element, name)) return; - - // Replace the class name. - newList = oldList.replace(' ' + name + ' ', ' '); - - // Trim the opening and closing spaces. - element.className = newList.substring(1, newList.length - 1); - } - - /** - * (Internal) Gets a space separated list of the class names on the element. - * The list is wrapped with a single space on each end to facilitate finding - * matches within the list. - */ - - function classList(element) { - return (' ' + (element.className || '') + ' ').replace(/\s+/gi, ' '); - } - - /** - * (Internal) Removes an element from the DOM. - */ - - function removeElement(element) { - element && element.parentNode && element.parentNode.removeChild(element); - } - - return NProgress; -}); - - - -/***/ }), - -/***/ 3300: -/***/ (() => { - - - -/***/ }), - -/***/ 7317: -/***/ (() => { - - - -/***/ }), - -/***/ 7730: -/***/ (() => { - - - -/***/ }), - -/***/ 9934: -/***/ ((module, exports) => { - -/** - * @param {string} string The string to parse - * @returns {Array} Returns an energetic array. - */ -function parsePart(string) { - let res = []; - let m; - - for (let str of string.split(",").map((str) => str.trim())) { - // just a number - if (/^-?\d+$/.test(str)) { - res.push(parseInt(str, 10)); - } else if ( - (m = str.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)) - ) { - // 1-5 or 1..5 (equivalent) or 1...5 (doesn't include 5) - let [_, lhs, sep, rhs] = m; - - if (lhs && rhs) { - lhs = parseInt(lhs); - rhs = parseInt(rhs); - const incr = lhs < rhs ? 1 : -1; - - // Make it inclusive by moving the right 'stop-point' away by one. - if (sep === "-" || sep === ".." || sep === "\u2025") rhs += incr; - - for (let i = lhs; i !== rhs; i += incr) res.push(i); - } - } - } - - return res; -} - -exports["default"] = parsePart; -module.exports = parsePart; - - -/***/ }), - -/***/ 1069: -/***/ ((module) => { - -var components = {"core":{"meta":{"path":"components/prism-core.js","option":"mandatory"},"core":"Core"},"themes":{"meta":{"path":"themes/{id}.css","link":"index.html?theme={id}","exclusive":true},"prism":{"title":"Default","option":"default"},"prism-dark":"Dark","prism-funky":"Funky","prism-okaidia":{"title":"Okaidia","owner":"ocodia"},"prism-twilight":{"title":"Twilight","owner":"remybach"},"prism-coy":{"title":"Coy","owner":"tshedor"},"prism-solarizedlight":{"title":"Solarized Light","owner":"hectormatos2011 "},"prism-tomorrow":{"title":"Tomorrow Night","owner":"Rosey"}},"languages":{"meta":{"path":"components/prism-{id}","noCSS":true,"examplesPath":"examples/prism-{id}","addCheckAll":true},"markup":{"title":"Markup","alias":["html","xml","svg","mathml","ssml","atom","rss"],"aliasTitles":{"html":"HTML","xml":"XML","svg":"SVG","mathml":"MathML","ssml":"SSML","atom":"Atom","rss":"RSS"},"option":"default"},"css":{"title":"CSS","option":"default","modify":"markup"},"clike":{"title":"C-like","option":"default"},"javascript":{"title":"JavaScript","require":"clike","modify":"markup","optional":"regex","alias":"js","option":"default"},"abap":{"title":"ABAP","owner":"dellagustin"},"abnf":{"title":"ABNF","owner":"RunDevelopment"},"actionscript":{"title":"ActionScript","require":"javascript","modify":"markup","owner":"Golmote"},"ada":{"title":"Ada","owner":"Lucretia"},"agda":{"title":"Agda","owner":"xy-ren"},"al":{"title":"AL","owner":"RunDevelopment"},"antlr4":{"title":"ANTLR4","alias":"g4","owner":"RunDevelopment"},"apacheconf":{"title":"Apache Configuration","owner":"GuiTeK"},"apex":{"title":"Apex","require":["clike","sql"],"owner":"RunDevelopment"},"apl":{"title":"APL","owner":"ngn"},"applescript":{"title":"AppleScript","owner":"Golmote"},"aql":{"title":"AQL","owner":"RunDevelopment"},"arduino":{"title":"Arduino","require":"cpp","alias":"ino","owner":"dkern"},"arff":{"title":"ARFF","owner":"Golmote"},"armasm":{"title":"ARM Assembly","alias":"arm-asm","owner":"RunDevelopment"},"arturo":{"title":"Arturo","alias":"art","optional":["bash","css","javascript","markup","markdown","sql"],"owner":"drkameleon"},"asciidoc":{"alias":"adoc","title":"AsciiDoc","owner":"Golmote"},"aspnet":{"title":"ASP.NET (C#)","require":["markup","csharp"],"owner":"nauzilus"},"asm6502":{"title":"6502 Assembly","owner":"kzurawel"},"asmatmel":{"title":"Atmel AVR Assembly","owner":"cerkit"},"autohotkey":{"title":"AutoHotkey","owner":"aviaryan"},"autoit":{"title":"AutoIt","owner":"Golmote"},"avisynth":{"title":"AviSynth","alias":"avs","owner":"Zinfidel"},"avro-idl":{"title":"Avro IDL","alias":"avdl","owner":"RunDevelopment"},"awk":{"title":"AWK","alias":"gawk","aliasTitles":{"gawk":"GAWK"},"owner":"RunDevelopment"},"bash":{"title":"Bash","alias":["sh","shell"],"aliasTitles":{"sh":"Shell","shell":"Shell"},"owner":"zeitgeist87"},"basic":{"title":"BASIC","owner":"Golmote"},"batch":{"title":"Batch","owner":"Golmote"},"bbcode":{"title":"BBcode","alias":"shortcode","aliasTitles":{"shortcode":"Shortcode"},"owner":"RunDevelopment"},"bbj":{"title":"BBj","owner":"hyyan"},"bicep":{"title":"Bicep","owner":"johnnyreilly"},"birb":{"title":"Birb","require":"clike","owner":"Calamity210"},"bison":{"title":"Bison","require":"c","owner":"Golmote"},"bnf":{"title":"BNF","alias":"rbnf","aliasTitles":{"rbnf":"RBNF"},"owner":"RunDevelopment"},"bqn":{"title":"BQN","owner":"yewscion"},"brainfuck":{"title":"Brainfuck","owner":"Golmote"},"brightscript":{"title":"BrightScript","owner":"RunDevelopment"},"bro":{"title":"Bro","owner":"wayward710"},"bsl":{"title":"BSL (1C:Enterprise)","alias":"oscript","aliasTitles":{"oscript":"OneScript"},"owner":"Diversus23"},"c":{"title":"C","require":"clike","owner":"zeitgeist87"},"csharp":{"title":"C#","require":"clike","alias":["cs","dotnet"],"owner":"mvalipour"},"cpp":{"title":"C++","require":"c","owner":"zeitgeist87"},"cfscript":{"title":"CFScript","require":"clike","alias":"cfc","owner":"mjclemente"},"chaiscript":{"title":"ChaiScript","require":["clike","cpp"],"owner":"RunDevelopment"},"cil":{"title":"CIL","owner":"sbrl"},"cilkc":{"title":"Cilk/C","require":"c","alias":"cilk-c","owner":"OpenCilk"},"cilkcpp":{"title":"Cilk/C++","require":"cpp","alias":["cilk-cpp","cilk"],"owner":"OpenCilk"},"clojure":{"title":"Clojure","owner":"troglotit"},"cmake":{"title":"CMake","owner":"mjrogozinski"},"cobol":{"title":"COBOL","owner":"RunDevelopment"},"coffeescript":{"title":"CoffeeScript","require":"javascript","alias":"coffee","owner":"R-osey"},"concurnas":{"title":"Concurnas","alias":"conc","owner":"jasontatton"},"csp":{"title":"Content-Security-Policy","owner":"ScottHelme"},"cooklang":{"title":"Cooklang","owner":"ahue"},"coq":{"title":"Coq","owner":"RunDevelopment"},"crystal":{"title":"Crystal","require":"ruby","owner":"MakeNowJust"},"css-extras":{"title":"CSS Extras","require":"css","modify":"css","owner":"milesj"},"csv":{"title":"CSV","owner":"RunDevelopment"},"cue":{"title":"CUE","owner":"RunDevelopment"},"cypher":{"title":"Cypher","owner":"RunDevelopment"},"d":{"title":"D","require":"clike","owner":"Golmote"},"dart":{"title":"Dart","require":"clike","owner":"Golmote"},"dataweave":{"title":"DataWeave","owner":"machaval"},"dax":{"title":"DAX","owner":"peterbud"},"dhall":{"title":"Dhall","owner":"RunDevelopment"},"diff":{"title":"Diff","owner":"uranusjr"},"django":{"title":"Django/Jinja2","require":"markup-templating","alias":"jinja2","owner":"romanvm"},"dns-zone-file":{"title":"DNS zone file","owner":"RunDevelopment","alias":"dns-zone"},"docker":{"title":"Docker","alias":"dockerfile","owner":"JustinBeckwith"},"dot":{"title":"DOT (Graphviz)","alias":"gv","optional":"markup","owner":"RunDevelopment"},"ebnf":{"title":"EBNF","owner":"RunDevelopment"},"editorconfig":{"title":"EditorConfig","owner":"osipxd"},"eiffel":{"title":"Eiffel","owner":"Conaclos"},"ejs":{"title":"EJS","require":["javascript","markup-templating"],"owner":"RunDevelopment","alias":"eta","aliasTitles":{"eta":"Eta"}},"elixir":{"title":"Elixir","owner":"Golmote"},"elm":{"title":"Elm","owner":"zwilias"},"etlua":{"title":"Embedded Lua templating","require":["lua","markup-templating"],"owner":"RunDevelopment"},"erb":{"title":"ERB","require":["ruby","markup-templating"],"owner":"Golmote"},"erlang":{"title":"Erlang","owner":"Golmote"},"excel-formula":{"title":"Excel Formula","alias":["xlsx","xls"],"owner":"RunDevelopment"},"fsharp":{"title":"F#","require":"clike","owner":"simonreynolds7"},"factor":{"title":"Factor","owner":"catb0t"},"false":{"title":"False","owner":"edukisto"},"firestore-security-rules":{"title":"Firestore security rules","require":"clike","owner":"RunDevelopment"},"flow":{"title":"Flow","require":"javascript","owner":"Golmote"},"fortran":{"title":"Fortran","owner":"Golmote"},"ftl":{"title":"FreeMarker Template Language","require":"markup-templating","owner":"RunDevelopment"},"gml":{"title":"GameMaker Language","alias":"gamemakerlanguage","require":"clike","owner":"LiarOnce"},"gap":{"title":"GAP (CAS)","owner":"RunDevelopment"},"gcode":{"title":"G-code","owner":"RunDevelopment"},"gdscript":{"title":"GDScript","owner":"RunDevelopment"},"gedcom":{"title":"GEDCOM","owner":"Golmote"},"gettext":{"title":"gettext","alias":"po","owner":"RunDevelopment"},"gherkin":{"title":"Gherkin","owner":"hason"},"git":{"title":"Git","owner":"lgiraudel"},"glsl":{"title":"GLSL","require":"c","owner":"Golmote"},"gn":{"title":"GN","alias":"gni","owner":"RunDevelopment"},"linker-script":{"title":"GNU Linker Script","alias":"ld","owner":"RunDevelopment"},"go":{"title":"Go","require":"clike","owner":"arnehormann"},"go-module":{"title":"Go module","alias":"go-mod","owner":"RunDevelopment"},"gradle":{"title":"Gradle","require":"clike","owner":"zeabdelkhalek-badido18"},"graphql":{"title":"GraphQL","optional":"markdown","owner":"Golmote"},"groovy":{"title":"Groovy","require":"clike","owner":"robfletcher"},"haml":{"title":"Haml","require":"ruby","optional":["css","css-extras","coffeescript","erb","javascript","less","markdown","scss","textile"],"owner":"Golmote"},"handlebars":{"title":"Handlebars","require":"markup-templating","alias":["hbs","mustache"],"aliasTitles":{"mustache":"Mustache"},"owner":"Golmote"},"haskell":{"title":"Haskell","alias":"hs","owner":"bholst"},"haxe":{"title":"Haxe","require":"clike","optional":"regex","owner":"Golmote"},"hcl":{"title":"HCL","owner":"outsideris"},"hlsl":{"title":"HLSL","require":"c","owner":"RunDevelopment"},"hoon":{"title":"Hoon","owner":"matildepark"},"http":{"title":"HTTP","optional":["csp","css","hpkp","hsts","javascript","json","markup","uri"],"owner":"danielgtaylor"},"hpkp":{"title":"HTTP Public-Key-Pins","owner":"ScottHelme"},"hsts":{"title":"HTTP Strict-Transport-Security","owner":"ScottHelme"},"ichigojam":{"title":"IchigoJam","owner":"BlueCocoa"},"icon":{"title":"Icon","owner":"Golmote"},"icu-message-format":{"title":"ICU Message Format","owner":"RunDevelopment"},"idris":{"title":"Idris","alias":"idr","owner":"KeenS","require":"haskell"},"ignore":{"title":".ignore","owner":"osipxd","alias":["gitignore","hgignore","npmignore"],"aliasTitles":{"gitignore":".gitignore","hgignore":".hgignore","npmignore":".npmignore"}},"inform7":{"title":"Inform 7","owner":"Golmote"},"ini":{"title":"Ini","owner":"aviaryan"},"io":{"title":"Io","owner":"AlesTsurko"},"j":{"title":"J","owner":"Golmote"},"java":{"title":"Java","require":"clike","owner":"sherblot"},"javadoc":{"title":"JavaDoc","require":["markup","java","javadoclike"],"modify":"java","optional":"scala","owner":"RunDevelopment"},"javadoclike":{"title":"JavaDoc-like","modify":["java","javascript","php"],"owner":"RunDevelopment"},"javastacktrace":{"title":"Java stack trace","owner":"RunDevelopment"},"jexl":{"title":"Jexl","owner":"czosel"},"jolie":{"title":"Jolie","require":"clike","owner":"thesave"},"jq":{"title":"JQ","owner":"RunDevelopment"},"jsdoc":{"title":"JSDoc","require":["javascript","javadoclike","typescript"],"modify":"javascript","optional":["actionscript","coffeescript"],"owner":"RunDevelopment"},"js-extras":{"title":"JS Extras","require":"javascript","modify":"javascript","optional":["actionscript","coffeescript","flow","n4js","typescript"],"owner":"RunDevelopment"},"json":{"title":"JSON","alias":"webmanifest","aliasTitles":{"webmanifest":"Web App Manifest"},"owner":"CupOfTea696"},"json5":{"title":"JSON5","require":"json","owner":"RunDevelopment"},"jsonp":{"title":"JSONP","require":"json","owner":"RunDevelopment"},"jsstacktrace":{"title":"JS stack trace","owner":"sbrl"},"js-templates":{"title":"JS Templates","require":"javascript","modify":"javascript","optional":["css","css-extras","graphql","markdown","markup","sql"],"owner":"RunDevelopment"},"julia":{"title":"Julia","owner":"cdagnino"},"keepalived":{"title":"Keepalived Configure","owner":"dev-itsheng"},"keyman":{"title":"Keyman","owner":"mcdurdin"},"kotlin":{"title":"Kotlin","alias":["kt","kts"],"aliasTitles":{"kts":"Kotlin Script"},"require":"clike","owner":"Golmote"},"kumir":{"title":"KuMir (КуМир)","alias":"kum","owner":"edukisto"},"kusto":{"title":"Kusto","owner":"RunDevelopment"},"latex":{"title":"LaTeX","alias":["tex","context"],"aliasTitles":{"tex":"TeX","context":"ConTeXt"},"owner":"japborst"},"latte":{"title":"Latte","require":["clike","markup-templating","php"],"owner":"nette"},"less":{"title":"Less","require":"css","optional":"css-extras","owner":"Golmote"},"lilypond":{"title":"LilyPond","require":"scheme","alias":"ly","owner":"RunDevelopment"},"liquid":{"title":"Liquid","require":"markup-templating","owner":"cinhtau"},"lisp":{"title":"Lisp","alias":["emacs","elisp","emacs-lisp"],"owner":"JuanCaicedo"},"livescript":{"title":"LiveScript","owner":"Golmote"},"llvm":{"title":"LLVM IR","owner":"porglezomp"},"log":{"title":"Log file","optional":"javastacktrace","owner":"RunDevelopment"},"lolcode":{"title":"LOLCODE","owner":"Golmote"},"lua":{"title":"Lua","owner":"Golmote"},"magma":{"title":"Magma (CAS)","owner":"RunDevelopment"},"makefile":{"title":"Makefile","owner":"Golmote"},"markdown":{"title":"Markdown","require":"markup","optional":"yaml","alias":"md","owner":"Golmote"},"markup-templating":{"title":"Markup templating","require":"markup","owner":"Golmote"},"mata":{"title":"Mata","owner":"RunDevelopment"},"matlab":{"title":"MATLAB","owner":"Golmote"},"maxscript":{"title":"MAXScript","owner":"RunDevelopment"},"mel":{"title":"MEL","owner":"Golmote"},"mermaid":{"title":"Mermaid","owner":"RunDevelopment"},"metafont":{"title":"METAFONT","owner":"LaeriExNihilo"},"mizar":{"title":"Mizar","owner":"Golmote"},"mongodb":{"title":"MongoDB","owner":"airs0urce","require":"javascript"},"monkey":{"title":"Monkey","owner":"Golmote"},"moonscript":{"title":"MoonScript","alias":"moon","owner":"RunDevelopment"},"n1ql":{"title":"N1QL","owner":"TMWilds"},"n4js":{"title":"N4JS","require":"javascript","optional":"jsdoc","alias":"n4jsd","owner":"bsmith-n4"},"nand2tetris-hdl":{"title":"Nand To Tetris HDL","owner":"stephanmax"},"naniscript":{"title":"Naninovel Script","owner":"Elringus","alias":"nani"},"nasm":{"title":"NASM","owner":"rbmj"},"neon":{"title":"NEON","owner":"nette"},"nevod":{"title":"Nevod","owner":"nezaboodka"},"nginx":{"title":"nginx","owner":"volado"},"nim":{"title":"Nim","owner":"Golmote"},"nix":{"title":"Nix","owner":"Golmote"},"nsis":{"title":"NSIS","owner":"idleberg"},"objectivec":{"title":"Objective-C","require":"c","alias":"objc","owner":"uranusjr"},"ocaml":{"title":"OCaml","owner":"Golmote"},"odin":{"title":"Odin","owner":"edukisto"},"opencl":{"title":"OpenCL","require":"c","modify":["c","cpp"],"owner":"Milania1"},"openqasm":{"title":"OpenQasm","alias":"qasm","owner":"RunDevelopment"},"oz":{"title":"Oz","owner":"Golmote"},"parigp":{"title":"PARI/GP","owner":"Golmote"},"parser":{"title":"Parser","require":"markup","owner":"Golmote"},"pascal":{"title":"Pascal","alias":"objectpascal","aliasTitles":{"objectpascal":"Object Pascal"},"owner":"Golmote"},"pascaligo":{"title":"Pascaligo","owner":"DefinitelyNotAGoat"},"psl":{"title":"PATROL Scripting Language","owner":"bertysentry"},"pcaxis":{"title":"PC-Axis","alias":"px","owner":"RunDevelopment"},"peoplecode":{"title":"PeopleCode","alias":"pcode","owner":"RunDevelopment"},"perl":{"title":"Perl","owner":"Golmote"},"php":{"title":"PHP","require":"markup-templating","owner":"milesj"},"phpdoc":{"title":"PHPDoc","require":["php","javadoclike"],"modify":"php","owner":"RunDevelopment"},"php-extras":{"title":"PHP Extras","require":"php","modify":"php","owner":"milesj"},"plant-uml":{"title":"PlantUML","alias":"plantuml","owner":"RunDevelopment"},"plsql":{"title":"PL/SQL","require":"sql","owner":"Golmote"},"powerquery":{"title":"PowerQuery","alias":["pq","mscript"],"owner":"peterbud"},"powershell":{"title":"PowerShell","owner":"nauzilus"},"processing":{"title":"Processing","require":"clike","owner":"Golmote"},"prolog":{"title":"Prolog","owner":"Golmote"},"promql":{"title":"PromQL","owner":"arendjr"},"properties":{"title":".properties","owner":"Golmote"},"protobuf":{"title":"Protocol Buffers","require":"clike","owner":"just-boris"},"pug":{"title":"Pug","require":["markup","javascript"],"optional":["coffeescript","ejs","handlebars","less","livescript","markdown","scss","stylus","twig"],"owner":"Golmote"},"puppet":{"title":"Puppet","owner":"Golmote"},"pure":{"title":"Pure","optional":["c","cpp","fortran"],"owner":"Golmote"},"purebasic":{"title":"PureBasic","require":"clike","alias":"pbfasm","owner":"HeX0R101"},"purescript":{"title":"PureScript","require":"haskell","alias":"purs","owner":"sriharshachilakapati"},"python":{"title":"Python","alias":"py","owner":"multipetros"},"qsharp":{"title":"Q#","require":"clike","alias":"qs","owner":"fedonman"},"q":{"title":"Q (kdb+ database)","owner":"Golmote"},"qml":{"title":"QML","require":"javascript","owner":"RunDevelopment"},"qore":{"title":"Qore","require":"clike","owner":"temnroegg"},"r":{"title":"R","owner":"Golmote"},"racket":{"title":"Racket","require":"scheme","alias":"rkt","owner":"RunDevelopment"},"cshtml":{"title":"Razor C#","alias":"razor","require":["markup","csharp"],"optional":["css","css-extras","javascript","js-extras"],"owner":"RunDevelopment"},"jsx":{"title":"React JSX","require":["markup","javascript"],"optional":["jsdoc","js-extras","js-templates"],"owner":"vkbansal"},"tsx":{"title":"React TSX","require":["jsx","typescript"]},"reason":{"title":"Reason","require":"clike","owner":"Golmote"},"regex":{"title":"Regex","owner":"RunDevelopment"},"rego":{"title":"Rego","owner":"JordanSh"},"renpy":{"title":"Ren'py","alias":"rpy","owner":"HyuchiaDiego"},"rescript":{"title":"ReScript","alias":"res","owner":"vmarcosp"},"rest":{"title":"reST (reStructuredText)","owner":"Golmote"},"rip":{"title":"Rip","owner":"ravinggenius"},"roboconf":{"title":"Roboconf","owner":"Golmote"},"robotframework":{"title":"Robot Framework","alias":"robot","owner":"RunDevelopment"},"ruby":{"title":"Ruby","require":"clike","alias":"rb","owner":"samflores"},"rust":{"title":"Rust","owner":"Golmote"},"sas":{"title":"SAS","optional":["groovy","lua","sql"],"owner":"Golmote"},"sass":{"title":"Sass (Sass)","require":"css","optional":"css-extras","owner":"Golmote"},"scss":{"title":"Sass (SCSS)","require":"css","optional":"css-extras","owner":"MoOx"},"scala":{"title":"Scala","require":"java","owner":"jozic"},"scheme":{"title":"Scheme","owner":"bacchus123"},"shell-session":{"title":"Shell session","require":"bash","alias":["sh-session","shellsession"],"owner":"RunDevelopment"},"smali":{"title":"Smali","owner":"RunDevelopment"},"smalltalk":{"title":"Smalltalk","owner":"Golmote"},"smarty":{"title":"Smarty","require":"markup-templating","optional":"php","owner":"Golmote"},"sml":{"title":"SML","alias":"smlnj","aliasTitles":{"smlnj":"SML/NJ"},"owner":"RunDevelopment"},"solidity":{"title":"Solidity (Ethereum)","alias":"sol","require":"clike","owner":"glachaud"},"solution-file":{"title":"Solution file","alias":"sln","owner":"RunDevelopment"},"soy":{"title":"Soy (Closure Template)","require":"markup-templating","owner":"Golmote"},"sparql":{"title":"SPARQL","require":"turtle","owner":"Triply-Dev","alias":"rq"},"splunk-spl":{"title":"Splunk SPL","owner":"RunDevelopment"},"sqf":{"title":"SQF: Status Quo Function (Arma 3)","require":"clike","owner":"RunDevelopment"},"sql":{"title":"SQL","owner":"multipetros"},"squirrel":{"title":"Squirrel","require":"clike","owner":"RunDevelopment"},"stan":{"title":"Stan","owner":"RunDevelopment"},"stata":{"title":"Stata Ado","require":["mata","java","python"],"owner":"RunDevelopment"},"iecst":{"title":"Structured Text (IEC 61131-3)","owner":"serhioromano"},"stylus":{"title":"Stylus","owner":"vkbansal"},"supercollider":{"title":"SuperCollider","alias":"sclang","owner":"RunDevelopment"},"swift":{"title":"Swift","owner":"chrischares"},"systemd":{"title":"Systemd configuration file","owner":"RunDevelopment"},"t4-templating":{"title":"T4 templating","owner":"RunDevelopment"},"t4-cs":{"title":"T4 Text Templates (C#)","require":["t4-templating","csharp"],"alias":"t4","owner":"RunDevelopment"},"t4-vb":{"title":"T4 Text Templates (VB)","require":["t4-templating","vbnet"],"owner":"RunDevelopment"},"tap":{"title":"TAP","owner":"isaacs","require":"yaml"},"tcl":{"title":"Tcl","owner":"PeterChaplin"},"tt2":{"title":"Template Toolkit 2","require":["clike","markup-templating"],"owner":"gflohr"},"textile":{"title":"Textile","require":"markup","optional":"css","owner":"Golmote"},"toml":{"title":"TOML","owner":"RunDevelopment"},"tremor":{"title":"Tremor","alias":["trickle","troy"],"owner":"darach","aliasTitles":{"trickle":"trickle","troy":"troy"}},"turtle":{"title":"Turtle","alias":"trig","aliasTitles":{"trig":"TriG"},"owner":"jakubklimek"},"twig":{"title":"Twig","require":"markup-templating","owner":"brandonkelly"},"typescript":{"title":"TypeScript","require":"javascript","optional":"js-templates","alias":"ts","owner":"vkbansal"},"typoscript":{"title":"TypoScript","alias":"tsconfig","aliasTitles":{"tsconfig":"TSConfig"},"owner":"dkern"},"unrealscript":{"title":"UnrealScript","alias":["uscript","uc"],"owner":"RunDevelopment"},"uorazor":{"title":"UO Razor Script","owner":"jaseowns"},"uri":{"title":"URI","alias":"url","aliasTitles":{"url":"URL"},"owner":"RunDevelopment"},"v":{"title":"V","require":"clike","owner":"taggon"},"vala":{"title":"Vala","require":"clike","optional":"regex","owner":"TemplarVolk"},"vbnet":{"title":"VB.Net","require":"basic","owner":"Bigsby"},"velocity":{"title":"Velocity","require":"markup","owner":"Golmote"},"verilog":{"title":"Verilog","owner":"a-rey"},"vhdl":{"title":"VHDL","owner":"a-rey"},"vim":{"title":"vim","owner":"westonganger"},"visual-basic":{"title":"Visual Basic","alias":["vb","vba"],"aliasTitles":{"vba":"VBA"},"owner":"Golmote"},"warpscript":{"title":"WarpScript","owner":"RunDevelopment"},"wasm":{"title":"WebAssembly","owner":"Golmote"},"web-idl":{"title":"Web IDL","alias":"webidl","owner":"RunDevelopment"},"wgsl":{"title":"WGSL","owner":"Dr4gonthree"},"wiki":{"title":"Wiki markup","require":"markup","owner":"Golmote"},"wolfram":{"title":"Wolfram language","alias":["mathematica","nb","wl"],"aliasTitles":{"mathematica":"Mathematica","nb":"Mathematica Notebook"},"owner":"msollami"},"wren":{"title":"Wren","owner":"clsource"},"xeora":{"title":"Xeora","require":"markup","alias":"xeoracube","aliasTitles":{"xeoracube":"XeoraCube"},"owner":"freakmaxi"},"xml-doc":{"title":"XML doc (.net)","require":"markup","modify":["csharp","fsharp","vbnet"],"owner":"RunDevelopment"},"xojo":{"title":"Xojo (REALbasic)","owner":"Golmote"},"xquery":{"title":"XQuery","require":"markup","owner":"Golmote"},"yaml":{"title":"YAML","alias":"yml","owner":"hason"},"yang":{"title":"YANG","owner":"RunDevelopment"},"zig":{"title":"Zig","owner":"RunDevelopment"}},"plugins":{"meta":{"path":"plugins/{id}/prism-{id}","link":"plugins/{id}/"},"line-highlight":{"title":"Line Highlight","description":"Highlights specific lines and/or line ranges."},"line-numbers":{"title":"Line Numbers","description":"Line number at the beginning of code lines.","owner":"kuba-kubula"},"show-invisibles":{"title":"Show Invisibles","description":"Show hidden characters such as tabs and line breaks.","optional":["autolinker","data-uri-highlight"]},"autolinker":{"title":"Autolinker","description":"Converts URLs and emails in code to clickable links. Parses Markdown links in comments."},"wpd":{"title":"WebPlatform Docs","description":"Makes tokens link to WebPlatform.org documentation. The links open in a new tab."},"custom-class":{"title":"Custom Class","description":"This plugin allows you to prefix Prism's default classes ( .comment
can become.namespace--comment
) or replace them with your defined ones (like.editor__comment
). You can even add new classes.","owner":"dvkndn","noCSS":true},"file-highlight":{"title":"File Highlight","description":"Fetch external files and highlight them with Prism. Used on the Prism website itself.","noCSS":true},"show-language":{"title":"Show Language","description":"Display the highlighted language in code blocks (inline code does not show the label).","owner":"nauzilus","noCSS":true,"require":"toolbar"},"jsonp-highlight":{"title":"JSONP Highlight","description":"Fetch content with JSONP and highlight some interesting content (e.g. GitHub/Gists or Bitbucket API).","noCSS":true,"owner":"nauzilus"},"highlight-keywords":{"title":"Highlight Keywords","description":"Adds special CSS classes for each keyword for fine-grained highlighting.","owner":"vkbansal","noCSS":true},"remove-initial-line-feed":{"title":"Remove initial line feed","description":"Removes the initial line feed in code blocks.","owner":"Golmote","noCSS":true},"inline-color":{"title":"Inline color","description":"Adds a small inline preview for colors in style sheets.","require":"css-extras","owner":"RunDevelopment"},"previewers":{"title":"Previewers","description":"Previewers for angles, colors, gradients, easing and time.","require":"css-extras","owner":"Golmote"},"autoloader":{"title":"Autoloader","description":"Automatically loads the needed languages to highlight the code blocks.","owner":"Golmote","noCSS":true},"keep-markup":{"title":"Keep Markup","description":"Prevents custom markup from being dropped out during highlighting.","owner":"Golmote","optional":"normalize-whitespace","noCSS":true},"command-line":{"title":"Command Line","description":"Display a command line with a prompt and, optionally, the output/response from the commands.","owner":"chriswells0"},"unescaped-markup":{"title":"Unescaped Markup","description":"Write markup without having to escape anything."},"normalize-whitespace":{"title":"Normalize Whitespace","description":"Supports multiple operations to normalize whitespace in code blocks.","owner":"zeitgeist87","optional":"unescaped-markup","noCSS":true},"data-uri-highlight":{"title":"Data-URI Highlight","description":"Highlights data-URI contents.","owner":"Golmote","noCSS":true},"toolbar":{"title":"Toolbar","description":"Attach a toolbar for plugins to easily register buttons on the top of a code block.","owner":"mAAdhaTTah"},"copy-to-clipboard":{"title":"Copy to Clipboard Button","description":"Add a button that copies the code block to the clipboard when clicked.","owner":"mAAdhaTTah","require":"toolbar","noCSS":true},"download-button":{"title":"Download Button","description":"A button in the toolbar of a code block adding a convenient way to download a code file.","owner":"Golmote","require":"toolbar","noCSS":true},"match-braces":{"title":"Match braces","description":"Highlights matching braces.","owner":"RunDevelopment"},"diff-highlight":{"title":"Diff Highlight","description":"Highlights the code inside diff blocks.","owner":"RunDevelopment","require":"diff"},"filter-highlight-all":{"title":"Filter highlightAll","description":"Filters the elements thehighlightAll
andhighlightAllUnder
methods actually highlight.","owner":"RunDevelopment","noCSS":true},"treeview":{"title":"Treeview","description":"A language with special styles to highlight file system tree structures.","owner":"Golmote"}}}; -if ( true && module.exports) { module.exports = components; } - -/***/ }), - -/***/ 5558: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -const components = __webpack_require__(1069); -const getLoader = __webpack_require__(904); - - -/** - * The set of all languages which have been loaded using the below function. - * - * @type {Set} - */ -const loadedLanguages = new Set(); - -/** - * Loads the given languages and adds them to the current Prism instance. - * - * If no languages are provided, __all__ Prism languages will be loaded. - * - * @param {string|string[]} [languages] - * @returns {void} - */ -function loadLanguages(languages) { - if (languages === undefined) { - languages = Object.keys(components.languages).filter(l => l != 'meta'); - } else if (!Array.isArray(languages)) { - languages = [languages]; - } - - // the user might have loaded languages via some other way or used `prism.js` which already includes some - // we don't need to validate the ids because `getLoader` will ignore invalid ones - const loaded = [...loadedLanguages, ...Object.keys(Prism.languages)]; - - getLoader(components, languages, loaded).load(lang => { - if (!(lang in components.languages)) { - if (!loadLanguages.silent) { - console.warn('Language does not exist: ' + lang); - } - return; - } - - const pathToLanguage = './prism-' + lang; - - // remove from require cache and from Prism - delete __webpack_require__.c[/*require.resolve*/(__webpack_require__(1441).resolve(pathToLanguage))]; - delete Prism.languages[lang]; - - __webpack_require__(1441)(pathToLanguage); - - loadedLanguages.add(lang); - }); -} - -/** - * Set this to `true` to prevent all warning messages `loadLanguages` logs. - */ -loadLanguages.silent = false; - -module.exports = loadLanguages; - - -/***/ }), - -/***/ 5968: -/***/ (() => { - -(function (Prism) { - - /** - * Returns the placeholder for the given language id and index. - * - * @param {string} language - * @param {string|number} index - * @returns {string} - */ - function getPlaceholder(language, index) { - return '___' + language.toUpperCase() + index + '___'; - } - - Object.defineProperties(Prism.languages['markup-templating'] = {}, { - buildPlaceholders: { - /** - * Tokenize all inline templating expressions matching `placeholderPattern`. - * - * If `replaceFilter` is provided, only matches of `placeholderPattern` for which `replaceFilter` returns - * `true` will be replaced. - * - * @param {object} env The environment of the `before-tokenize` hook. - * @param {string} language The language id. - * @param {RegExp} placeholderPattern The matches of this pattern will be replaced by placeholders. - * @param {(match: string) => boolean} [replaceFilter] - */ - value: function (env, language, placeholderPattern, replaceFilter) { - if (env.language !== language) { - return; - } - - var tokenStack = env.tokenStack = []; - - env.code = env.code.replace(placeholderPattern, function (match) { - if (typeof replaceFilter === 'function' && !replaceFilter(match)) { - return match; - } - var i = tokenStack.length; - var placeholder; - - // Check for existing strings - while (env.code.indexOf(placeholder = getPlaceholder(language, i)) !== -1) { - ++i; - } - - // Create a sparse array - tokenStack[i] = match; - - return placeholder; - }); - - // Switch the grammar to markup - env.grammar = Prism.languages.markup; - } - }, - tokenizePlaceholders: { - /** - * Replace placeholders with proper tokens after tokenizing. - * - * @param {object} env The environment of the `after-tokenize` hook. - * @param {string} language The language id. - */ - value: function (env, language) { - if (env.language !== language || !env.tokenStack) { - return; - } - - // Switch the grammar back - env.grammar = Prism.languages[language]; - - var j = 0; - var keys = Object.keys(env.tokenStack); - - function walkTokens(tokens) { - for (var i = 0; i < tokens.length; i++) { - // all placeholders are replaced already - if (j >= keys.length) { - break; - } - - var token = tokens[i]; - if (typeof token === 'string' || (token.content && typeof token.content === 'string')) { - var k = keys[j]; - var t = env.tokenStack[k]; - var s = typeof token === 'string' ? token : token.content; - var placeholder = getPlaceholder(language, k); - - var index = s.indexOf(placeholder); - if (index > -1) { - ++j; - - var before = s.substring(0, index); - var middle = new Prism.Token(language, Prism.tokenize(t, env.grammar), 'language-' + language, t); - var after = s.substring(index + placeholder.length); - - var replacement = []; - if (before) { - replacement.push.apply(replacement, walkTokens([before])); - } - replacement.push(middle); - if (after) { - replacement.push.apply(replacement, walkTokens([after])); - } - - if (typeof token === 'string') { - tokens.splice.apply(tokens, [i, 1].concat(replacement)); - } else { - token.content = replacement; - } - } - } else if (token.content /* && typeof token.content !== 'string' */) { - walkTokens(token.content); - } - } - - return tokens; - } - - walkTokens(env.tokens); - } - } - }); - -}(Prism)); - - -/***/ }), - -/***/ 1441: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var map = { - "./": 5558 -}; - - -function webpackContext(req) { - var id = webpackContextResolve(req); - return __webpack_require__(id); -} -function webpackContextResolve(req) { - if(!__webpack_require__.o(map, req)) { - var e = new Error("Cannot find module '" + req + "'"); - e.code = 'MODULE_NOT_FOUND'; - throw e; - } - return map[req]; -} -webpackContext.keys = function webpackContextKeys() { - return Object.keys(map); -}; -webpackContext.resolve = webpackContextResolve; -module.exports = webpackContext; -webpackContext.id = 1441; - -/***/ }), - -/***/ 904: -/***/ ((module) => { - -"use strict"; - - -/** - * @typedef {Object } Components - * @typedef {Object } ComponentCategory - * - * @typedef ComponentEntry - * @property {string} [title] The title of the component. - * @property {string} [owner] The GitHub user name of the owner. - * @property {boolean} [noCSS=false] Whether the component doesn't have style sheets which should also be loaded. - * @property {string | string[]} [alias] An optional list of aliases for the id of the component. - * @property {Object } [aliasTitles] An optional map from an alias to its title. - * - * Aliases which are not in this map will the get title of the component. - * @property {string | string[]} [optional] - * @property {string | string[]} [require] - * @property {string | string[]} [modify] - */ - -var getLoader = (function () { - - /** - * A function which does absolutely nothing. - * - * @type {any} - */ - var noop = function () { }; - - /** - * Invokes the given callback for all elements of the given value. - * - * If the given value is an array, the callback will be invokes for all elements. If the given value is `null` or - * `undefined`, the callback will not be invoked. In all other cases, the callback will be invoked with the given - * value as parameter. - * - * @param {null | undefined | T | T[]} value - * @param {(value: T, index: number) => void} callbackFn - * @returns {void} - * @template T - */ - function forEach(value, callbackFn) { - if (Array.isArray(value)) { - value.forEach(callbackFn); - } else if (value != null) { - callbackFn(value, 0); - } - } - - /** - * Returns a new set for the given string array. - * - * @param {string[]} array - * @returns {StringSet} - * - * @typedef {Object } StringSet - */ - function toSet(array) { - /** @type {StringSet} */ - var set = {}; - for (var i = 0, l = array.length; i < l; i++) { - set[array[i]] = true; - } - return set; - } - - /** - * Creates a map of every components id to its entry. - * - * @param {Components} components - * @returns {EntryMap} - * - * @typedef {{ readonly [id: string]: Readonly | undefined }} EntryMap - */ - function createEntryMap(components) { - /** @type {Object >} */ - var map = {}; - - for (var categoryName in components) { - var category = components[categoryName]; - for (var id in category) { - if (id != 'meta') { - /** @type {ComponentEntry | string} */ - var entry = category[id]; - map[id] = typeof entry == 'string' ? { title: entry } : entry; - } - } - } - - return map; - } - - /** - * Creates a full dependencies map which includes all types of dependencies and their transitive dependencies. - * - * @param {EntryMap} entryMap - * @returns {DependencyResolver} - * - * @typedef {(id: string) => StringSet} DependencyResolver - */ - function createDependencyResolver(entryMap) { - /** @type {Object } */ - var map = {}; - var _stackArray = []; - - /** - * Adds the dependencies of the given component to the dependency map. - * - * @param {string} id - * @param {string[]} stack - */ - function addToMap(id, stack) { - if (id in map) { - return; - } - - stack.push(id); - - // check for circular dependencies - var firstIndex = stack.indexOf(id); - if (firstIndex < stack.length - 1) { - throw new Error('Circular dependency: ' + stack.slice(firstIndex).join(' -> ')); - } - - /** @type {StringSet} */ - var dependencies = {}; - - var entry = entryMap[id]; - if (entry) { - /** - * This will add the direct dependency and all of its transitive dependencies to the set of - * dependencies of `entry`. - * - * @param {string} depId - * @returns {void} - */ - function handleDirectDependency(depId) { - if (!(depId in entryMap)) { - throw new Error(id + ' depends on an unknown component ' + depId); - } - if (depId in dependencies) { - // if the given dependency is already in the set of deps, then so are its transitive deps - return; - } - - addToMap(depId, stack); - dependencies[depId] = true; - for (var transitiveDepId in map[depId]) { - dependencies[transitiveDepId] = true; - } - } - - forEach(entry.require, handleDirectDependency); - forEach(entry.optional, handleDirectDependency); - forEach(entry.modify, handleDirectDependency); - } - - map[id] = dependencies; - - stack.pop(); - } - - return function (id) { - var deps = map[id]; - if (!deps) { - addToMap(id, _stackArray); - deps = map[id]; - } - return deps; - }; - } - - /** - * Returns a function which resolves the aliases of its given id of alias. - * - * @param {EntryMap} entryMap - * @returns {(idOrAlias: string) => string} - */ - function createAliasResolver(entryMap) { - /** @type {Object | undefined} */ - var map; - - return function (idOrAlias) { - if (idOrAlias in entryMap) { - return idOrAlias; - } else { - // only create the alias map if necessary - if (!map) { - map = {}; - - for (var id in entryMap) { - var entry = entryMap[id]; - forEach(entry && entry.alias, function (alias) { - if (alias in map) { - throw new Error(alias + ' cannot be alias for both ' + id + ' and ' + map[alias]); - } - if (alias in entryMap) { - throw new Error(alias + ' cannot be alias of ' + id + ' because it is a component.'); - } - map[alias] = id; - }); - } - } - return map[idOrAlias] || idOrAlias; - } - }; - } - - /** - * @typedef LoadChainer - * @property {(before: T, after: () => T) => T} series - * @property {(values: T[]) => T} parallel - * @template T - */ - - /** - * Creates an implicit DAG from the given components and dependencies and call the given `loadComponent` for each - * component in topological order. - * - * @param {DependencyResolver} dependencyResolver - * @param {StringSet} ids - * @param {(id: string) => T} loadComponent - * @param {LoadChainer } [chainer] - * @returns {T} - * @template T - */ - function loadComponentsInOrder(dependencyResolver, ids, loadComponent, chainer) { - var series = chainer ? chainer.series : undefined; - var parallel = chainer ? chainer.parallel : noop; - - /** @type {Object } */ - var cache = {}; - - /** - * A set of ids of nodes which are not depended upon by any other node in the graph. - * - * @type {StringSet} - */ - var ends = {}; - - /** - * Loads the given component and its dependencies or returns the cached value. - * - * @param {string} id - * @returns {T} - */ - function handleId(id) { - if (id in cache) { - return cache[id]; - } - - // assume that it's an end - // if it isn't, it will be removed later - ends[id] = true; - - // all dependencies of the component in the given ids - var dependsOn = []; - for (var depId in dependencyResolver(id)) { - if (depId in ids) { - dependsOn.push(depId); - } - } - - /** - * The value to be returned. - * - * @type {T} - */ - var value; - - if (dependsOn.length === 0) { - value = loadComponent(id); - } else { - var depsValue = parallel(dependsOn.map(function (depId) { - var value = handleId(depId); - // none of the dependencies can be ends - delete ends[depId]; - return value; - })); - if (series) { - // the chainer will be responsibly for calling the function calling loadComponent - value = series(depsValue, function () { return loadComponent(id); }); - } else { - // we don't have a chainer, so we call loadComponent ourselves - loadComponent(id); - } - } - - // cache and return - return cache[id] = value; - } - - for (var id in ids) { - handleId(id); - } - - /** @type {T[]} */ - var endValues = []; - for (var endId in ends) { - endValues.push(cache[endId]); - } - return parallel(endValues); - } - - /** - * Returns whether the given object has any keys. - * - * @param {object} obj - */ - function hasKeys(obj) { - for (var key in obj) { - return true; - } - return false; - } - - /** - * Returns an object which provides methods to get the ids of the components which have to be loaded (`getIds`) and - * a way to efficiently load them in synchronously and asynchronous contexts (`load`). - * - * The set of ids to be loaded is a superset of `load`. If some of these ids are in `loaded`, the corresponding - * components will have to reloaded. - * - * The ids in `load` and `loaded` may be in any order and can contain duplicates. - * - * @param {Components} components - * @param {string[]} load - * @param {string[]} [loaded=[]] A list of already loaded components. - * - * If a component is in this list, then all of its requirements will also be assumed to be in the list. - * @returns {Loader} - * - * @typedef Loader - * @property {() => string[]} getIds A function to get all ids of the components to load. - * - * The returned ids will be duplicate-free, alias-free and in load order. - * @property {LoadFunction} load A functional interface to load components. - * - * @typedef { (loadComponent: (id: string) => T, chainer?: LoadChainer ) => T} LoadFunction - * A functional interface to load components. - * - * The `loadComponent` function will be called for every component in the order in which they have to be loaded. - * - * The `chainer` is useful for asynchronous loading and its `series` and `parallel` functions can be thought of as - * `Promise#then` and `Promise.all`. - * - * @example - * load(id => { loadComponent(id); }); // returns undefined - * - * await load( - * id => loadComponentAsync(id), // returns a Promise for each id - * { - * series: async (before, after) => { - * await before; - * await after(); - * }, - * parallel: async (values) => { - * await Promise.all(values); - * } - * } - * ); - */ - function getLoader(components, load, loaded) { - var entryMap = createEntryMap(components); - var resolveAlias = createAliasResolver(entryMap); - - load = load.map(resolveAlias); - loaded = (loaded || []).map(resolveAlias); - - var loadSet = toSet(load); - var loadedSet = toSet(loaded); - - // add requirements - - load.forEach(addRequirements); - function addRequirements(id) { - var entry = entryMap[id]; - forEach(entry && entry.require, function (reqId) { - if (!(reqId in loadedSet)) { - loadSet[reqId] = true; - addRequirements(reqId); - } - }); - } - - // add components to reload - - // A component x in `loaded` has to be reloaded if - // 1) a component in `load` modifies x. - // 2) x depends on a component in `load`. - // The above two condition have to be applied until nothing changes anymore. - - var dependencyResolver = createDependencyResolver(entryMap); - - /** @type {StringSet} */ - var loadAdditions = loadSet; - /** @type {StringSet} */ - var newIds; - while (hasKeys(loadAdditions)) { - newIds = {}; - - // condition 1) - for (var loadId in loadAdditions) { - var entry = entryMap[loadId]; - forEach(entry && entry.modify, function (modId) { - if (modId in loadedSet) { - newIds[modId] = true; - } - }); - } - - // condition 2) - for (var loadedId in loadedSet) { - if (!(loadedId in loadSet)) { - for (var depId in dependencyResolver(loadedId)) { - if (depId in loadSet) { - newIds[loadedId] = true; - break; - } - } - } - } - - loadAdditions = newIds; - for (var newId in loadAdditions) { - loadSet[newId] = true; - } - } - - /** @type {Loader} */ - var loader = { - getIds: function () { - var ids = []; - loader.load(function (id) { - ids.push(id); - }); - return ids; - }, - load: function (loadComponent, chainer) { - return loadComponentsInOrder(dependencyResolver, loadSet, loadComponent, chainer); - } - }; - - return loader; - } - - return getLoader; - -}()); - -if (true) { - module.exports = getLoader; -} - - -/***/ }), - -/***/ 362: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; -/** - * Copyright (c) 2013-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - - - -var ReactPropTypesSecret = __webpack_require__(6441); - -function emptyFunction() {} -function emptyFunctionWithReset() {} -emptyFunctionWithReset.resetWarningCache = emptyFunction; - -module.exports = function() { - function shim(props, propName, componentName, location, propFullName, secret) { - if (secret === ReactPropTypesSecret) { - // It is still safe when called from React. - return; - } - var err = new Error( - 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' + - 'Use PropTypes.checkPropTypes() to call them. ' + - 'Read more at http://fb.me/use-check-prop-types' - ); - err.name = 'Invariant Violation'; - throw err; - }; - shim.isRequired = shim; - function getShim() { - return shim; - }; - // Important! - // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`. - var ReactPropTypes = { - array: shim, - bigint: shim, - bool: shim, - func: shim, - number: shim, - object: shim, - string: shim, - symbol: shim, - - any: shim, - arrayOf: getShim, - element: shim, - elementType: shim, - instanceOf: getShim, - node: shim, - objectOf: getShim, - oneOf: getShim, - oneOfType: getShim, - shape: getShim, - exact: getShim, - - checkPropTypes: emptyFunctionWithReset, - resetWarningCache: emptyFunction - }; - - ReactPropTypes.PropTypes = ReactPropTypes; - - return ReactPropTypes; -}; - - -/***/ }), - -/***/ 2688: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -/** - * Copyright (c) 2013-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -if (false) { var throwOnDirectAccess, ReactIs; } else { - // By explicitly using `prop-types` you are opting into new production behavior. - // http://fb.me/prop-types-in-prod - module.exports = __webpack_require__(362)(); -} - - -/***/ }), - -/***/ 6441: -/***/ ((module) => { - -"use strict"; -/** - * Copyright (c) 2013-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - - - -var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; - -module.exports = ReactPropTypesSecret; - - -/***/ }), - -/***/ 7383: -/***/ ((module) => { - -/* global Map:readonly, Set:readonly, ArrayBuffer:readonly */ - -var hasElementType = typeof Element !== 'undefined'; -var hasMap = typeof Map === 'function'; -var hasSet = typeof Set === 'function'; -var hasArrayBuffer = typeof ArrayBuffer === 'function' && !!ArrayBuffer.isView; - -// Note: We **don't** need `envHasBigInt64Array` in fde es6/index.js - -function equal(a, b) { - // START: fast-deep-equal es6/index.js 3.1.3 - if (a === b) return true; - - if (a && b && typeof a == 'object' && typeof b == 'object') { - if (a.constructor !== b.constructor) return false; - - var length, i, keys; - if (Array.isArray(a)) { - length = a.length; - if (length != b.length) return false; - for (i = length; i-- !== 0;) - if (!equal(a[i], b[i])) return false; - return true; - } - - // START: Modifications: - // 1. Extra `has &&` helpers in initial condition allow es6 code - // to co-exist with es5. - // 2. Replace `for of` with es5 compliant iteration using `for`. - // Basically, take: - // - // ```js - // for (i of a.entries()) - // if (!b.has(i[0])) return false; - // ``` - // - // ... and convert to: - // - // ```js - // it = a.entries(); - // while (!(i = it.next()).done) - // if (!b.has(i.value[0])) return false; - // ``` - // - // **Note**: `i` access switches to `i.value`. - var it; - if (hasMap && (a instanceof Map) && (b instanceof Map)) { - if (a.size !== b.size) return false; - it = a.entries(); - while (!(i = it.next()).done) - if (!b.has(i.value[0])) return false; - it = a.entries(); - while (!(i = it.next()).done) - if (!equal(i.value[1], b.get(i.value[0]))) return false; - return true; - } - - if (hasSet && (a instanceof Set) && (b instanceof Set)) { - if (a.size !== b.size) return false; - it = a.entries(); - while (!(i = it.next()).done) - if (!b.has(i.value[0])) return false; - return true; - } - // END: Modifications - - if (hasArrayBuffer && ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) { - length = a.length; - if (length != b.length) return false; - for (i = length; i-- !== 0;) - if (a[i] !== b[i]) return false; - return true; - } - - if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags; - // START: Modifications: - // Apply guards for `Object.create(null)` handling. See: - // - https://github.com/FormidableLabs/react-fast-compare/issues/64 - // - https://github.com/epoberezkin/fast-deep-equal/issues/49 - if (a.valueOf !== Object.prototype.valueOf && typeof a.valueOf === 'function' && typeof b.valueOf === 'function') return a.valueOf() === b.valueOf(); - if (a.toString !== Object.prototype.toString && typeof a.toString === 'function' && typeof b.toString === 'function') return a.toString() === b.toString(); - // END: Modifications - - keys = Object.keys(a); - length = keys.length; - if (length !== Object.keys(b).length) return false; - - for (i = length; i-- !== 0;) - if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false; - // END: fast-deep-equal - - // START: react-fast-compare - // custom handling for DOM elements - if (hasElementType && a instanceof Element) return false; - - // custom handling for React/Preact - for (i = length; i-- !== 0;) { - if ((keys[i] === '_owner' || keys[i] === '__v' || keys[i] === '__o') && a.$$typeof) { - // React-specific: avoid traversing React elements' _owner - // Preact-specific: avoid traversing Preact elements' __v and __o - // __v = $_original / $_vnode - // __o = $_owner - // These properties contain circular references and are not needed when - // comparing the actual elements (and not their owners) - // .$$typeof and ._store on just reasonable markers of elements - - continue; - } - - // all other properties should be traversed as usual - if (!equal(a[keys[i]], b[keys[i]])) return false; - } - // END: react-fast-compare - - // START: fast-deep-equal - return true; - } - - return a !== a && b !== b; -} -// end fast-deep-equal - -module.exports = function isEqual(a, b) { - try { - return equal(a, b); - } catch (error) { - if (((error.message || '').match(/stack|recursion/i))) { - // warn on circular references, don't crash - // browsers give this different errors name and messages: - // chrome/safari: "RangeError", "Maximum call stack size exceeded" - // firefox: "InternalError", too much recursion" - // edge: "Error", "Out of stack space" - console.warn('react-fast-compare cannot handle circular refs'); - return false; - } - // some other error. we should definitely know about these - throw error; - } -}; - - -/***/ }), - -/***/ 9005: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ mg: () => (/* binding */ W), -/* harmony export */ vd: () => (/* binding */ q) -/* harmony export */ }); -/* unused harmony export HelmetData */ -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6540); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2688); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7383); -/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7315); -/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(invariant__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var shallowequal__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5317); -/* harmony import */ var shallowequal__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(shallowequal__WEBPACK_IMPORTED_MODULE_3__); -function a(){return a=Object.assign||function(t){for(var e=1;e =0||(i[r]=t[r]);return i}var l={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title",FRAGMENT:"Symbol(react.fragment)"},p={rel:["amphtml","canonical","alternate"]},f={type:["application/ld+json"]},d={charset:"",name:["robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},h=Object.keys(l).map(function(t){return l[t]}),m={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},y=Object.keys(m).reduce(function(t,e){return t[m[e]]=e,t},{}),T=function(t,e){for(var r=t.length-1;r>=0;r-=1){var n=t[r];if(Object.prototype.hasOwnProperty.call(n,e))return n[e]}return null},g=function(t){var e=T(t,l.TITLE),r=T(t,"titleTemplate");if(Array.isArray(e)&&(e=e.join("")),r&&e)return r.replace(/%s/g,function(){return e});var n=T(t,"defaultTitle");return e||n||void 0},b=function(t){return T(t,"onChangeClientState")||function(){}},v=function(t,e){return e.filter(function(e){return void 0!==e[t]}).map(function(e){return e[t]}).reduce(function(t,e){return a({},t,e)},{})},A=function(t,e){return e.filter(function(t){return void 0!==t[l.BASE]}).map(function(t){return t[l.BASE]}).reverse().reduce(function(e,r){if(!e.length)for(var n=Object.keys(r),i=0;i /g,">").replace(/"/g,""").replace(/'/g,"'")},x=function(t){return Object.keys(t).reduce(function(e,r){var n=void 0!==t[r]?r+'="'+t[r]+'"':""+r;return e?e+" "+n:n},"")},L=function(t,e){return void 0===e&&(e={}),Object.keys(t).reduce(function(e,r){return e[m[r]||r]=t[r],e},e)},j=function(e,r){return r.map(function(r,n){var i,o=((i={key:n})["data-rh"]=!0,i);return Object.keys(r).forEach(function(t){var e=m[t]||t;"innerHTML"===e||"cssText"===e?o.dangerouslySetInnerHTML={__html:r.innerHTML||r.cssText}:o[e]=r[t]}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(e,o)})},M=function(e,r,n){switch(e){case l.TITLE:return{toComponent:function(){return n=r.titleAttributes,(i={key:e=r.title})["data-rh"]=!0,o=L(n,i),[react__WEBPACK_IMPORTED_MODULE_0__.createElement(l.TITLE,o,e)];var e,n,i,o},toString:function(){return function(t,e,r,n){var i=x(r),o=S(e);return i?"<"+t+' data-rh="true" '+i+">"+w(o,n)+""+t+">":"<"+t+' data-rh="true">'+w(o,n)+""+t+">"}(e,r.title,r.titleAttributes,n)}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function(){return L(r)},toString:function(){return x(r)}};default:return{toComponent:function(){return j(e,r)},toString:function(){return function(t,e,r){return e.reduce(function(e,n){var i=Object.keys(n).filter(function(t){return!("innerHTML"===t||"cssText"===t)}).reduce(function(t,e){var i=void 0===n[e]?e:e+'="'+w(n[e],r)+'"';return t?t+" "+i:i},""),o=n.innerHTML||n.cssText||"",a=-1===P.indexOf(t);return e+"<"+t+' data-rh="true" '+i+(a?"/>":">"+o+""+t+">")},"")}(e,r,n)}}}},k=function(t){var e=t.baseTag,r=t.bodyAttributes,n=t.encode,i=t.htmlAttributes,o=t.noscriptTags,a=t.styleTags,s=t.title,c=void 0===s?"":s,u=t.titleAttributes,h=t.linkTags,m=t.metaTags,y=t.scriptTags,T={toComponent:function(){},toString:function(){return""}};if(t.prioritizeSeoTags){var g=function(t){var e=t.linkTags,r=t.scriptTags,n=t.encode,i=E(t.metaTags,d),o=E(e,p),a=E(r,f);return{priorityMethods:{toComponent:function(){return[].concat(j(l.META,i.priority),j(l.LINK,o.priority),j(l.SCRIPT,a.priority))},toString:function(){return M(l.META,i.priority,n)+" "+M(l.LINK,o.priority,n)+" "+M(l.SCRIPT,a.priority,n)}},metaTags:i.default,linkTags:o.default,scriptTags:a.default}}(t);T=g.priorityMethods,h=g.linkTags,m=g.metaTags,y=g.scriptTags}return{priority:T,base:M(l.BASE,e,n),bodyAttributes:M("bodyAttributes",r,n),htmlAttributes:M("htmlAttributes",i,n),link:M(l.LINK,h,n),meta:M(l.META,m,n),noscript:M(l.NOSCRIPT,o,n),script:M(l.SCRIPT,y,n),style:M(l.STYLE,a,n),title:M(l.TITLE,{title:c,titleAttributes:u},n)}},H=[],N=function(t,e){var r=this;void 0===e&&(e="undefined"!=typeof document),this.instances=[],this.value={setHelmet:function(t){r.context.helmet=t},helmetInstances:{get:function(){return r.canUseDOM?H:r.instances},add:function(t){(r.canUseDOM?H:r.instances).push(t)},remove:function(t){var e=(r.canUseDOM?H:r.instances).indexOf(t);(r.canUseDOM?H:r.instances).splice(e,1)}}},this.context=t,this.canUseDOM=e,e||(t.helmet=k({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))},R=react__WEBPACK_IMPORTED_MODULE_0__.createContext({}),D=prop_types__WEBPACK_IMPORTED_MODULE_4___default().shape({setHelmet:(prop_types__WEBPACK_IMPORTED_MODULE_4___default().func),helmetInstances:prop_types__WEBPACK_IMPORTED_MODULE_4___default().shape({get:(prop_types__WEBPACK_IMPORTED_MODULE_4___default().func),add:(prop_types__WEBPACK_IMPORTED_MODULE_4___default().func),remove:(prop_types__WEBPACK_IMPORTED_MODULE_4___default().func)})}),U="undefined"!=typeof document,q=/*#__PURE__*/function(e){function r(t){var n;return(n=e.call(this,t)||this).helmetData=new N(n.props.context,r.canUseDOM),n}return s(r,e),r.prototype.render=function(){/*#__PURE__*/return react__WEBPACK_IMPORTED_MODULE_0__.createElement(R.Provider,{value:this.helmetData.value},this.props.children)},r}(react__WEBPACK_IMPORTED_MODULE_0__.Component);q.canUseDOM=U,q.propTypes={context:prop_types__WEBPACK_IMPORTED_MODULE_4___default().shape({helmet:prop_types__WEBPACK_IMPORTED_MODULE_4___default().shape()}),children:(prop_types__WEBPACK_IMPORTED_MODULE_4___default().node).isRequired},q.defaultProps={context:{}},q.displayName="HelmetProvider";var Y=function(t,e){var r,n=document.head||document.querySelector(l.HEAD),i=n.querySelectorAll(t+"[data-rh]"),o=[].slice.call(i),a=[];return e&&e.length&&e.forEach(function(e){var n=document.createElement(t);for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&("innerHTML"===i?n.innerHTML=e.innerHTML:"cssText"===i?n.styleSheet?n.styleSheet.cssText=e.cssText:n.appendChild(document.createTextNode(e.cssText)):n.setAttribute(i,void 0===e[i]?"":e[i]));n.setAttribute("data-rh","true"),o.some(function(t,e){return r=e,n.isEqualNode(t)})?o.splice(r,1):a.push(n)}),o.forEach(function(t){return t.parentNode.removeChild(t)}),a.forEach(function(t){return n.appendChild(t)}),{oldTags:o,newTags:a}},B=function(t,e){var r=document.getElementsByTagName(t)[0];if(r){for(var n=r.getAttribute("data-rh"),i=n?n.split(","):[],o=[].concat(i),a=Object.keys(e),s=0;s =0;p-=1)r.removeAttribute(o[p]);i.length===o.length?r.removeAttribute("data-rh"):r.getAttribute("data-rh")!==a.join(",")&&r.setAttribute("data-rh",a.join(","))}},K=function(t,e){var r=t.baseTag,n=t.htmlAttributes,i=t.linkTags,o=t.metaTags,a=t.noscriptTags,s=t.onChangeClientState,c=t.scriptTags,u=t.styleTags,p=t.title,f=t.titleAttributes;B(l.BODY,t.bodyAttributes),B(l.HTML,n),function(t,e){void 0!==t&&document.title!==t&&(document.title=S(t)),B(l.TITLE,e)}(p,f);var d={baseTag:Y(l.BASE,r),linkTags:Y(l.LINK,i),metaTags:Y(l.META,o),noscriptTags:Y(l.NOSCRIPT,a),scriptTags:Y(l.SCRIPT,c),styleTags:Y(l.STYLE,u)},h={},m={};Object.keys(d).forEach(function(t){var e=d[t],r=e.newTags,n=e.oldTags;r.length&&(h[t]=r),n.length&&(m[t]=d[t].oldTags)}),e&&e(),s(t,h,m)},_=null,z=/*#__PURE__*/function(t){function e(){for(var e,r=arguments.length,n=new Array(r),i=0;i elements are self-closing and can not contain children. Refer to our API for more information.")}},o.flattenArrayTypeChildren=function(t){var e,r=t.child,n=t.arrayTypeChildren;return a({},n,((e={})[r.type]=[].concat(n[r.type]||[],[a({},t.newChildProps,this.mapNestedChildrenToProps(r,t.nestedChildren))]),e))},o.mapObjectTypeChildren=function(t){var e,r,n=t.child,i=t.newProps,o=t.newChildProps,s=t.nestedChildren;switch(n.type){case l.TITLE:return a({},i,((e={})[n.type]=s,e.titleAttributes=a({},o),e));case l.BODY:return a({},i,{bodyAttributes:a({},o)});case l.HTML:return a({},i,{htmlAttributes:a({},o)});default:return a({},i,((r={})[n.type]=a({},o),r))}},o.mapArrayTypeChildrenToProps=function(t,e){var r=a({},e);return Object.keys(t).forEach(function(e){var n;r=a({},r,((n={})[e]=t[e],n))}),r},o.warnOnInvalidChildren=function(t,e){return invariant__WEBPACK_IMPORTED_MODULE_2___default()(h.some(function(e){return t.type===e}),"function"==typeof t.type?"You may be attempting to nest components within each other, which is not allowed. Refer to our API for more information.":"Only elements types "+h.join(", ")+" are allowed. Helmet does not support rendering <"+t.type+"> elements. Refer to our API for more information."),invariant__WEBPACK_IMPORTED_MODULE_2___default()(!e||"string"==typeof e||Array.isArray(e)&&!e.some(function(t){return"string"!=typeof t}),"Helmet expects a string as a child of <"+t.type+">. Did you forget to wrap your children in braces? ( <"+t.type+">{``}"+t.type+"> ) Refer to our API for more information."),!0},o.mapChildrenToProps=function(e,r){var n=this,i={};return react__WEBPACK_IMPORTED_MODULE_0__.Children.forEach(e,function(t){if(t&&t.props){var e=t.props,o=e.children,a=u(e,F),s=Object.keys(a).reduce(function(t,e){return t[y[e]||e]=a[e],t},{}),c=t.type;switch("symbol"==typeof c?c=c.toString():n.warnOnInvalidChildren(t,o),c){case l.FRAGMENT:r=n.mapChildrenToProps(o,r);break;case l.LINK:case l.META:case l.NOSCRIPT:case l.SCRIPT:case l.STYLE:i=n.flattenArrayTypeChildren({child:t,arrayTypeChildren:i,newChildProps:s,nestedChildren:o});break;default:r=n.mapObjectTypeChildren({child:t,newProps:r,newChildProps:s,nestedChildren:o})}}}),this.mapArrayTypeChildrenToProps(i,r)},o.render=function(){var e=this.props,r=e.children,n=u(e,G),i=a({},n),o=n.helmetData;return r&&(i=this.mapChildrenToProps(r,i)),!o||o instanceof N||(o=new N(o.context,o.instances)),o?/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(z,a({},i,{context:o.value,helmetData:void 0})):/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(R.Consumer,null,function(e){/*#__PURE__*/return react__WEBPACK_IMPORTED_MODULE_0__.createElement(z,a({},i,{context:e}))})},r}(react__WEBPACK_IMPORTED_MODULE_0__.Component);W.propTypes={base:(prop_types__WEBPACK_IMPORTED_MODULE_4___default().object),bodyAttributes:(prop_types__WEBPACK_IMPORTED_MODULE_4___default().object),children:prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_4___default().node)),(prop_types__WEBPACK_IMPORTED_MODULE_4___default().node)]),defaultTitle:(prop_types__WEBPACK_IMPORTED_MODULE_4___default().string),defer:(prop_types__WEBPACK_IMPORTED_MODULE_4___default().bool),encodeSpecialCharacters:(prop_types__WEBPACK_IMPORTED_MODULE_4___default().bool),htmlAttributes:(prop_types__WEBPACK_IMPORTED_MODULE_4___default().object),link:prop_types__WEBPACK_IMPORTED_MODULE_4___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_4___default().object)),meta:prop_types__WEBPACK_IMPORTED_MODULE_4___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_4___default().object)),noscript:prop_types__WEBPACK_IMPORTED_MODULE_4___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_4___default().object)),onChangeClientState:(prop_types__WEBPACK_IMPORTED_MODULE_4___default().func),script:prop_types__WEBPACK_IMPORTED_MODULE_4___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_4___default().object)),style:prop_types__WEBPACK_IMPORTED_MODULE_4___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_4___default().object)),title:(prop_types__WEBPACK_IMPORTED_MODULE_4___default().string),titleAttributes:(prop_types__WEBPACK_IMPORTED_MODULE_4___default().object),titleTemplate:(prop_types__WEBPACK_IMPORTED_MODULE_4___default().string),prioritizeSeoTags:(prop_types__WEBPACK_IMPORTED_MODULE_4___default().bool),helmetData:(prop_types__WEBPACK_IMPORTED_MODULE_4___default().object)},W.defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1},W.displayName="Helmet"; -//# sourceMappingURL=index.module.js.map - - -/***/ }), - -/***/ 7303: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; } - -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } - -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - -function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - -var React = __webpack_require__(6540); - -var ALL_INITIALIZERS = []; -var READY_INITIALIZERS = []; - -function isWebpackReady(getModuleIds) { - if (false) {} - - return getModuleIds().every(function (moduleId) { - return typeof moduleId !== "undefined" && typeof __webpack_require__.m[moduleId] !== "undefined"; - }); -} - -var LoadableCaptureContext = React.createContext(null); - -function load(loader) { - var promise = loader(); - var state = { - loading: true, - loaded: null, - error: null - }; - state.promise = promise.then(function (loaded) { - state.loading = false; - state.loaded = loaded; - return loaded; - }).catch(function (err) { - state.loading = false; - state.error = err; - throw err; - }); - return state; -} - -function loadMap(obj) { - var state = { - loading: false, - loaded: {}, - error: null - }; - var promises = []; - - try { - Object.keys(obj).forEach(function (key) { - var result = load(obj[key]); - - if (!result.loading) { - state.loaded[key] = result.loaded; - state.error = result.error; - } else { - state.loading = true; - } - - promises.push(result.promise); - result.promise.then(function (res) { - state.loaded[key] = res; - }).catch(function (err) { - state.error = err; - }); - }); - } catch (err) { - state.error = err; - } - - state.promise = Promise.all(promises).then(function (res) { - state.loading = false; - return res; - }).catch(function (err) { - state.loading = false; - throw err; - }); - return state; -} - -function resolve(obj) { - return obj && obj.__esModule ? obj.default : obj; -} - -function render(loaded, props) { - return React.createElement(resolve(loaded), props); -} - -function createLoadableComponent(loadFn, options) { - var _class, _temp; - - if (!options.loading) { - throw new Error("react-loadable requires a `loading` component"); - } - - var opts = _extends({ - loader: null, - loading: null, - delay: 200, - timeout: null, - render: render, - webpack: null, - modules: null - }, options); - - var res = null; - - function init() { - if (!res) { - res = loadFn(opts.loader); - } - - return res.promise; - } - - ALL_INITIALIZERS.push(init); - - if (typeof opts.webpack === "function") { - READY_INITIALIZERS.push(function () { - if (isWebpackReady(opts.webpack)) { - return init(); - } - }); - } - - return _temp = _class = - /*#__PURE__*/ - function (_React$Component) { - _inheritsLoose(LoadableComponent, _React$Component); - - function LoadableComponent(props) { - var _this; - - _this = _React$Component.call(this, props) || this; - - _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "retry", function () { - _this.setState({ - error: null, - loading: true, - timedOut: false - }); - - res = loadFn(opts.loader); - - _this._loadModule(); - }); - - init(); - _this.state = { - error: res.error, - pastDelay: false, - timedOut: false, - loading: res.loading, - loaded: res.loaded - }; - return _this; - } - - LoadableComponent.preload = function preload() { - return init(); - }; - - var _proto = LoadableComponent.prototype; - - _proto.UNSAFE_componentWillMount = function UNSAFE_componentWillMount() { - this._loadModule(); - }; - - _proto.componentDidMount = function componentDidMount() { - this._mounted = true; - }; - - _proto._loadModule = function _loadModule() { - var _this2 = this; - - if (this.context && Array.isArray(opts.modules)) { - opts.modules.forEach(function (moduleName) { - _this2.context.report(moduleName); - }); - } - - if (!res.loading) { - return; - } - - var setStateWithMountCheck = function setStateWithMountCheck(newState) { - if (!_this2._mounted) { - return; - } - - _this2.setState(newState); - }; - - if (typeof opts.delay === 'number') { - if (opts.delay === 0) { - this.setState({ - pastDelay: true - }); - } else { - this._delay = setTimeout(function () { - setStateWithMountCheck({ - pastDelay: true - }); - }, opts.delay); - } - } - - if (typeof opts.timeout === "number") { - this._timeout = setTimeout(function () { - setStateWithMountCheck({ - timedOut: true - }); - }, opts.timeout); - } - - var update = function update() { - setStateWithMountCheck({ - error: res.error, - loaded: res.loaded, - loading: res.loading - }); - - _this2._clearTimeouts(); - }; - - res.promise.then(function () { - update(); - return null; - }).catch(function (err) { - update(); - return null; - }); - }; - - _proto.componentWillUnmount = function componentWillUnmount() { - this._mounted = false; - - this._clearTimeouts(); - }; - - _proto._clearTimeouts = function _clearTimeouts() { - clearTimeout(this._delay); - clearTimeout(this._timeout); - }; - - _proto.render = function render() { - if (this.state.loading || this.state.error) { - return React.createElement(opts.loading, { - isLoading: this.state.loading, - pastDelay: this.state.pastDelay, - timedOut: this.state.timedOut, - error: this.state.error, - retry: this.retry - }); - } else if (this.state.loaded) { - return opts.render(this.state.loaded, this.props); - } else { - return null; - } - }; - - return LoadableComponent; - }(React.Component), _defineProperty(_class, "contextType", LoadableCaptureContext), _temp; -} - -function Loadable(opts) { - return createLoadableComponent(load, opts); -} - -function LoadableMap(opts) { - if (typeof opts.render !== "function") { - throw new Error("LoadableMap requires a `render(loaded, props)` function"); - } - - return createLoadableComponent(loadMap, opts); -} - -Loadable.Map = LoadableMap; - -var Capture = -/*#__PURE__*/ -function (_React$Component2) { - _inheritsLoose(Capture, _React$Component2); - - function Capture() { - return _React$Component2.apply(this, arguments) || this; - } - - var _proto2 = Capture.prototype; - - _proto2.render = function render() { - return React.createElement(LoadableCaptureContext.Provider, { - value: { - report: this.props.report - } - }, React.Children.only(this.props.children)); - }; - - return Capture; -}(React.Component); - -Loadable.Capture = Capture; - -function flushInitializers(initializers) { - var promises = []; - - while (initializers.length) { - var init = initializers.pop(); - promises.push(init()); - } - - return Promise.all(promises).then(function () { - if (initializers.length) { - return flushInitializers(initializers); - } - }); -} - -Loadable.preloadAll = function () { - return new Promise(function (resolve, reject) { - flushInitializers(ALL_INITIALIZERS).then(resolve, reject); - }); -}; - -Loadable.preloadReady = function () { - return new Promise(function (resolve, reject) { - // We always will resolve, errors should be handled within loading UIs. - flushInitializers(READY_INITIALIZERS).then(resolve, resolve); - }); -}; - -module.exports = Loadable; - -/***/ }), - -/***/ 3971: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ u: () => (/* binding */ matchRoutes), -/* harmony export */ v: () => (/* binding */ renderRoutes) -/* harmony export */ }); -/* harmony import */ var react_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9519); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8102); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6540); - - - - -function matchRoutes(routes, pathname, -/*not public API*/ -branch) { - if (branch === void 0) { - branch = []; - } - - routes.some(function (route) { - var match = route.path ? (0,react_router__WEBPACK_IMPORTED_MODULE_1__/* .matchPath */ .B6)(pathname, route) : branch.length ? branch[branch.length - 1].match // use parent match - : react_router__WEBPACK_IMPORTED_MODULE_1__/* .Router */ .Ix.computeRootMatch(pathname); // use default "root" match - - if (match) { - branch.push({ - route: route, - match: match - }); - - if (route.routes) { - matchRoutes(route.routes, pathname, branch); - } - } - - return match; - }); - return branch; -} - -function renderRoutes(routes, extraProps, switchProps) { - if (extraProps === void 0) { - extraProps = {}; - } - - if (switchProps === void 0) { - switchProps = {}; - } - - return routes ? react__WEBPACK_IMPORTED_MODULE_0__.createElement(react_router__WEBPACK_IMPORTED_MODULE_1__/* .Switch */ .dO, switchProps, routes.map(function (route, i) { - return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react_router__WEBPACK_IMPORTED_MODULE_1__/* .Route */ .qh, { - key: route.key || i, - path: route.path, - exact: route.exact, - strict: route.strict, - render: function render(props) { - return route.render ? route.render((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A)({}, props, {}, extraProps, { - route: route - })) : react__WEBPACK_IMPORTED_MODULE_0__.createElement(route.component, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A)({}, props, extraProps, { - route: route - })); - } - }); - })) : null; -} - - -//# sourceMappingURL=react-router-config.js.map - - -/***/ }), - -/***/ 9519: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ B6: () => (/* binding */ matchPath), -/* harmony export */ Ix: () => (/* binding */ Router), -/* harmony export */ W6: () => (/* binding */ useHistory), -/* harmony export */ XZ: () => (/* binding */ context), -/* harmony export */ dO: () => (/* binding */ Switch), -/* harmony export */ kO: () => (/* binding */ StaticRouter), -/* harmony export */ qh: () => (/* binding */ Route), -/* harmony export */ zy: () => (/* binding */ useLocation) -/* harmony export */ }); -/* unused harmony exports MemoryRouter, Prompt, Redirect, __HistoryContext, generatePath, useParams, useRouteMatch, withRouter */ -/* harmony import */ var _babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1146); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6540); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(2688); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var history__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(6941); -/* harmony import */ var tiny_invariant__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(6143); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(8102); -/* harmony import */ var path_to_regexp__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8853); -/* harmony import */ var path_to_regexp__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(path_to_regexp__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var react_is__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1680); -/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(9257); -/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(8486); -/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_3__); - - - - - - - - - - - - -var MAX_SIGNED_31_BIT_INT = 1073741823; -var commonjsGlobal = typeof globalThis !== "undefined" // 'global proper' -? // eslint-disable-next-line no-undef -globalThis : typeof window !== "undefined" ? window // Browser -: typeof global !== "undefined" ? global // node.js -: {}; - -function getUniqueId() { - var key = "__global_unique_id__"; - return commonjsGlobal[key] = (commonjsGlobal[key] || 0) + 1; -} // Inlined Object.is polyfill. -// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is - - -function objectIs(x, y) { - if (x === y) { - return x !== 0 || 1 / x === 1 / y; - } else { - // eslint-disable-next-line no-self-compare - return x !== x && y !== y; - } -} - -function createEventEmitter(value) { - var handlers = []; - return { - on: function on(handler) { - handlers.push(handler); - }, - off: function off(handler) { - handlers = handlers.filter(function (h) { - return h !== handler; - }); - }, - get: function get() { - return value; - }, - set: function set(newValue, changedBits) { - value = newValue; - handlers.forEach(function (handler) { - return handler(value, changedBits); - }); - } - }; -} - -function onlyChild(children) { - return Array.isArray(children) ? children[0] : children; -} - -function createReactContext(defaultValue, calculateChangedBits) { - var _Provider$childContex, _Consumer$contextType; - - var contextProp = "__create-react-context-" + getUniqueId() + "__"; - - var Provider = /*#__PURE__*/function (_React$Component) { - (0,_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A)(Provider, _React$Component); - - function Provider() { - var _this; - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this; - _this.emitter = createEventEmitter(_this.props.value); - return _this; - } - - var _proto = Provider.prototype; - - _proto.getChildContext = function getChildContext() { - var _ref; - - return _ref = {}, _ref[contextProp] = this.emitter, _ref; - }; - - _proto.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { - if (this.props.value !== nextProps.value) { - var oldValue = this.props.value; - var newValue = nextProps.value; - var changedBits; - - if (objectIs(oldValue, newValue)) { - changedBits = 0; // No change - } else { - changedBits = typeof calculateChangedBits === "function" ? calculateChangedBits(oldValue, newValue) : MAX_SIGNED_31_BIT_INT; - - if (false) {} - - changedBits |= 0; - - if (changedBits !== 0) { - this.emitter.set(nextProps.value, changedBits); - } - } - } - }; - - _proto.render = function render() { - return this.props.children; - }; - - return Provider; - }(react__WEBPACK_IMPORTED_MODULE_0__.Component); - - Provider.childContextTypes = (_Provider$childContex = {}, _Provider$childContex[contextProp] = (prop_types__WEBPACK_IMPORTED_MODULE_5___default().object).isRequired, _Provider$childContex); - - var Consumer = /*#__PURE__*/function (_React$Component2) { - (0,_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A)(Consumer, _React$Component2); - - function Consumer() { - var _this2; - - for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - args[_key2] = arguments[_key2]; - } - - _this2 = _React$Component2.call.apply(_React$Component2, [this].concat(args)) || this; - _this2.observedBits = void 0; - _this2.state = { - value: _this2.getValue() - }; - - _this2.onUpdate = function (newValue, changedBits) { - var observedBits = _this2.observedBits | 0; - - if ((observedBits & changedBits) !== 0) { - _this2.setState({ - value: _this2.getValue() - }); - } - }; - - return _this2; - } - - var _proto2 = Consumer.prototype; - - _proto2.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { - var observedBits = nextProps.observedBits; - this.observedBits = observedBits === undefined || observedBits === null ? MAX_SIGNED_31_BIT_INT // Subscribe to all changes by default - : observedBits; - }; - - _proto2.componentDidMount = function componentDidMount() { - if (this.context[contextProp]) { - this.context[contextProp].on(this.onUpdate); - } - - var observedBits = this.props.observedBits; - this.observedBits = observedBits === undefined || observedBits === null ? MAX_SIGNED_31_BIT_INT // Subscribe to all changes by default - : observedBits; - }; - - _proto2.componentWillUnmount = function componentWillUnmount() { - if (this.context[contextProp]) { - this.context[contextProp].off(this.onUpdate); - } - }; - - _proto2.getValue = function getValue() { - if (this.context[contextProp]) { - return this.context[contextProp].get(); - } else { - return defaultValue; - } - }; - - _proto2.render = function render() { - return onlyChild(this.props.children)(this.state.value); - }; - - return Consumer; - }(react__WEBPACK_IMPORTED_MODULE_0__.Component); - - Consumer.contextTypes = (_Consumer$contextType = {}, _Consumer$contextType[contextProp] = (prop_types__WEBPACK_IMPORTED_MODULE_5___default().object), _Consumer$contextType); - return { - Provider: Provider, - Consumer: Consumer - }; -} - -// MIT License -var createContext = react__WEBPACK_IMPORTED_MODULE_0__.createContext || createReactContext; - -// TODO: Replace with React.createContext once we can assume React 16+ - -var createNamedContext = function createNamedContext(name) { - var context = createContext(); - context.displayName = name; - return context; -}; - -var historyContext = /*#__PURE__*/createNamedContext("Router-History"); - -var context = /*#__PURE__*/createNamedContext("Router"); - -/** - * The public API for putting history on context. - */ - -var Router = /*#__PURE__*/function (_React$Component) { - (0,_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A)(Router, _React$Component); - - Router.computeRootMatch = function computeRootMatch(pathname) { - return { - path: "/", - url: "/", - params: {}, - isExact: pathname === "/" - }; - }; - - function Router(props) { - var _this; - - _this = _React$Component.call(this, props) || this; - _this.state = { - location: props.history.location - }; // This is a bit of a hack. We have to start listening for location - // changes here in the constructor in case there are any s - // on the initial render. If there are, they will replace/push when - // they mount and since cDM fires in children before parents, we may - // get a new location before the is mounted. - - _this._isMounted = false; - _this._pendingLocation = null; - - if (!props.staticContext) { - _this.unlisten = props.history.listen(function (location) { - _this._pendingLocation = location; - }); - } - - return _this; - } - - var _proto = Router.prototype; - - _proto.componentDidMount = function componentDidMount() { - var _this2 = this; - - this._isMounted = true; - - if (this.unlisten) { - // Any pre-mount location changes have been captured at - // this point, so unregister the listener. - this.unlisten(); - } - - if (!this.props.staticContext) { - this.unlisten = this.props.history.listen(function (location) { - if (_this2._isMounted) { - _this2.setState({ - location: location - }); - } - }); - } - - if (this._pendingLocation) { - this.setState({ - location: this._pendingLocation - }); - } - }; - - _proto.componentWillUnmount = function componentWillUnmount() { - if (this.unlisten) { - this.unlisten(); - this._isMounted = false; - this._pendingLocation = null; - } - }; - - _proto.render = function render() { - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(context.Provider, { - value: { - history: this.props.history, - location: this.state.location, - match: Router.computeRootMatch(this.state.location.pathname), - staticContext: this.props.staticContext - } - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(historyContext.Provider, { - children: this.props.children || null, - value: this.props.history - })); - }; - - return Router; -}(react__WEBPACK_IMPORTED_MODULE_0__.Component); - -if (false) {} - -/** - * The public API for a that stores location in memory. - */ - -var MemoryRouter = /*#__PURE__*/function (_React$Component) { - (0,_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A)(MemoryRouter, _React$Component); - - function MemoryRouter() { - var _this; - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this; - _this.history = (0,history__WEBPACK_IMPORTED_MODULE_6__/* .createMemoryHistory */ .sC)(_this.props); - return _this; - } - - var _proto = MemoryRouter.prototype; - - _proto.render = function render() { - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(Router, { - history: this.history, - children: this.props.children - }); - }; - - return MemoryRouter; -}(react__WEBPACK_IMPORTED_MODULE_0__.Component); - -if (false) {} - -var Lifecycle = /*#__PURE__*/function (_React$Component) { - (0,_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A)(Lifecycle, _React$Component); - - function Lifecycle() { - return _React$Component.apply(this, arguments) || this; - } - - var _proto = Lifecycle.prototype; - - _proto.componentDidMount = function componentDidMount() { - if (this.props.onMount) this.props.onMount.call(this, this); - }; - - _proto.componentDidUpdate = function componentDidUpdate(prevProps) { - if (this.props.onUpdate) this.props.onUpdate.call(this, this, prevProps); - }; - - _proto.componentWillUnmount = function componentWillUnmount() { - if (this.props.onUnmount) this.props.onUnmount.call(this, this); - }; - - _proto.render = function render() { - return null; - }; - - return Lifecycle; -}(react__WEBPACK_IMPORTED_MODULE_0__.Component); - -/** - * The public API for prompting the user before navigating away from a screen. - */ - -function Prompt(_ref) { - var message = _ref.message, - _ref$when = _ref.when, - when = _ref$when === void 0 ? true : _ref$when; - return /*#__PURE__*/React.createElement(context.Consumer, null, function (context) { - !context ? false ? 0 : invariant(false) : void 0; - if (!when || context.staticContext) return null; - var method = context.history.block; - return /*#__PURE__*/React.createElement(Lifecycle, { - onMount: function onMount(self) { - self.release = method(message); - }, - onUpdate: function onUpdate(self, prevProps) { - if (prevProps.message !== message) { - self.release(); - self.release = method(message); - } - }, - onUnmount: function onUnmount(self) { - self.release(); - }, - message: message - }); - }); -} - -if (false) { var messageType; } - -var cache = {}; -var cacheLimit = 10000; -var cacheCount = 0; - -function compilePath(path) { - if (cache[path]) return cache[path]; - var generator = pathToRegexp.compile(path); - - if (cacheCount < cacheLimit) { - cache[path] = generator; - cacheCount++; - } - - return generator; -} -/** - * Public API for generating a URL pathname from a path and parameters. - */ - - -function generatePath(path, params) { - if (path === void 0) { - path = "/"; - } - - if (params === void 0) { - params = {}; - } - - return path === "/" ? path : compilePath(path)(params, { - pretty: true - }); -} - -/** - * The public API for navigating programmatically with a component. - */ - -function Redirect(_ref) { - var computedMatch = _ref.computedMatch, - to = _ref.to, - _ref$push = _ref.push, - push = _ref$push === void 0 ? false : _ref$push; - return /*#__PURE__*/React.createElement(context.Consumer, null, function (context) { - !context ? false ? 0 : invariant(false) : void 0; - var history = context.history, - staticContext = context.staticContext; - var method = push ? history.push : history.replace; - var location = createLocation(computedMatch ? typeof to === "string" ? generatePath(to, computedMatch.params) : _extends({}, to, { - pathname: generatePath(to.pathname, computedMatch.params) - }) : to); // When rendering in a static context, - // set the new location immediately. - - if (staticContext) { - method(location); - return null; - } - - return /*#__PURE__*/React.createElement(Lifecycle, { - onMount: function onMount() { - method(location); - }, - onUpdate: function onUpdate(self, prevProps) { - var prevLocation = createLocation(prevProps.to); - - if (!locationsAreEqual(prevLocation, _extends({}, location, { - key: prevLocation.key - }))) { - method(location); - } - }, - to: to - }); - }); -} - -if (false) {} - -var cache$1 = {}; -var cacheLimit$1 = 10000; -var cacheCount$1 = 0; - -function compilePath$1(path, options) { - var cacheKey = "" + options.end + options.strict + options.sensitive; - var pathCache = cache$1[cacheKey] || (cache$1[cacheKey] = {}); - if (pathCache[path]) return pathCache[path]; - var keys = []; - var regexp = path_to_regexp__WEBPACK_IMPORTED_MODULE_1___default()(path, keys, options); - var result = { - regexp: regexp, - keys: keys - }; - - if (cacheCount$1 < cacheLimit$1) { - pathCache[path] = result; - cacheCount$1++; - } - - return result; -} -/** - * Public API for matching a URL pathname to a path. - */ - - -function matchPath(pathname, options) { - if (options === void 0) { - options = {}; - } - - if (typeof options === "string" || Array.isArray(options)) { - options = { - path: options - }; - } - - var _options = options, - path = _options.path, - _options$exact = _options.exact, - exact = _options$exact === void 0 ? false : _options$exact, - _options$strict = _options.strict, - strict = _options$strict === void 0 ? false : _options$strict, - _options$sensitive = _options.sensitive, - sensitive = _options$sensitive === void 0 ? false : _options$sensitive; - var paths = [].concat(path); - return paths.reduce(function (matched, path) { - if (!path && path !== "") return null; - if (matched) return matched; - - var _compilePath = compilePath$1(path, { - end: exact, - strict: strict, - sensitive: sensitive - }), - regexp = _compilePath.regexp, - keys = _compilePath.keys; - - var match = regexp.exec(pathname); - if (!match) return null; - var url = match[0], - values = match.slice(1); - var isExact = pathname === url; - if (exact && !isExact) return null; - return { - path: path, - // the path used to match - url: path === "/" && url === "" ? "/" : url, - // the matched portion of the URL - isExact: isExact, - // whether or not we matched exactly - params: keys.reduce(function (memo, key, index) { - memo[key.name] = values[index]; - return memo; - }, {}) - }; - }, null); -} - -function isEmptyChildren(children) { - return react__WEBPACK_IMPORTED_MODULE_0__.Children.count(children) === 0; -} - -function evalChildrenDev(children, props, path) { - var value = children(props); - false ? 0 : void 0; - return value || null; -} -/** - * The public API for matching a single path and rendering. - */ - - -var Route = /*#__PURE__*/function (_React$Component) { - (0,_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A)(Route, _React$Component); - - function Route() { - return _React$Component.apply(this, arguments) || this; - } - - var _proto = Route.prototype; - - _proto.render = function render() { - var _this = this; - - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(context.Consumer, null, function (context$1) { - !context$1 ? false ? 0 : (0,tiny_invariant__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .A)(false) : void 0; - var location = _this.props.location || context$1.location; - var match = _this.props.computedMatch ? _this.props.computedMatch // already computed the match for us - : _this.props.path ? matchPath(location.pathname, _this.props) : context$1.match; - - var props = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .A)({}, context$1, { - location: location, - match: match - }); - - var _this$props = _this.props, - children = _this$props.children, - component = _this$props.component, - render = _this$props.render; // Preact uses an empty array as children by - // default, so use null if that's the case. - - if (Array.isArray(children) && isEmptyChildren(children)) { - children = null; - } - - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(context.Provider, { - value: props - }, props.match ? children ? typeof children === "function" ? false ? 0 : children(props) : children : component ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(component, props) : render ? render(props) : null : typeof children === "function" ? false ? 0 : children(props) : null); - }); - }; - - return Route; -}(react__WEBPACK_IMPORTED_MODULE_0__.Component); - -if (false) {} - -function addLeadingSlash(path) { - return path.charAt(0) === "/" ? path : "/" + path; -} - -function addBasename(basename, location) { - if (!basename) return location; - return (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .A)({}, location, { - pathname: addLeadingSlash(basename) + location.pathname - }); -} - -function stripBasename(basename, location) { - if (!basename) return location; - var base = addLeadingSlash(basename); - if (location.pathname.indexOf(base) !== 0) return location; - return (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .A)({}, location, { - pathname: location.pathname.substr(base.length) - }); -} - -function createURL(location) { - return typeof location === "string" ? location : (0,history__WEBPACK_IMPORTED_MODULE_6__/* .createPath */ .AO)(location); -} - -function staticHandler(methodName) { - return function () { - false ? 0 : (0,tiny_invariant__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .A)(false) ; - }; -} - -function noop() {} -/** - * The public top-level API for a "static" , so-called because it - * can't actually change the current location. Instead, it just records - * location changes in a context object. Useful mainly in testing and - * server-rendering scenarios. - */ - - -var StaticRouter = /*#__PURE__*/function (_React$Component) { - (0,_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A)(StaticRouter, _React$Component); - - function StaticRouter() { - var _this; - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this; - - _this.handlePush = function (location) { - return _this.navigateTo(location, "PUSH"); - }; - - _this.handleReplace = function (location) { - return _this.navigateTo(location, "REPLACE"); - }; - - _this.handleListen = function () { - return noop; - }; - - _this.handleBlock = function () { - return noop; - }; - - return _this; - } - - var _proto = StaticRouter.prototype; - - _proto.navigateTo = function navigateTo(location, action) { - var _this$props = this.props, - _this$props$basename = _this$props.basename, - basename = _this$props$basename === void 0 ? "" : _this$props$basename, - _this$props$context = _this$props.context, - context = _this$props$context === void 0 ? {} : _this$props$context; - context.action = action; - context.location = addBasename(basename, (0,history__WEBPACK_IMPORTED_MODULE_6__/* .createLocation */ .yJ)(location)); - context.url = createURL(context.location); - }; - - _proto.render = function render() { - var _this$props2 = this.props, - _this$props2$basename = _this$props2.basename, - basename = _this$props2$basename === void 0 ? "" : _this$props2$basename, - _this$props2$context = _this$props2.context, - context = _this$props2$context === void 0 ? {} : _this$props2$context, - _this$props2$location = _this$props2.location, - location = _this$props2$location === void 0 ? "/" : _this$props2$location, - rest = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .A)(_this$props2, ["basename", "context", "location"]); - - var history = { - createHref: function createHref(path) { - return addLeadingSlash(basename + createURL(path)); - }, - action: "POP", - location: stripBasename(basename, (0,history__WEBPACK_IMPORTED_MODULE_6__/* .createLocation */ .yJ)(location)), - push: this.handlePush, - replace: this.handleReplace, - go: staticHandler("go"), - goBack: staticHandler("goBack"), - goForward: staticHandler("goForward"), - listen: this.handleListen, - block: this.handleBlock - }; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(Router, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .A)({}, rest, { - history: history, - staticContext: context - })); - }; - - return StaticRouter; -}(react__WEBPACK_IMPORTED_MODULE_0__.Component); - -if (false) {} - -/** - * The public API for rendering the first that matches. - */ - -var Switch = /*#__PURE__*/function (_React$Component) { - (0,_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A)(Switch, _React$Component); - - function Switch() { - return _React$Component.apply(this, arguments) || this; - } - - var _proto = Switch.prototype; - - _proto.render = function render() { - var _this = this; - - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(context.Consumer, null, function (context) { - !context ? false ? 0 : (0,tiny_invariant__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .A)(false) : void 0; - var location = _this.props.location || context.location; - var element, match; // We use React.Children.forEach instead of React.Children.toArray().find() - // here because toArray adds keys to all child elements and we do not want - // to trigger an unmount/remount for two s that render the same - // component at different URLs. - - react__WEBPACK_IMPORTED_MODULE_0__.Children.forEach(_this.props.children, function (child) { - if (match == null && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.isValidElement(child)) { - element = child; - var path = child.props.path || child.props.from; - match = path ? matchPath(location.pathname, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .A)({}, child.props, { - path: path - })) : context.match; - } - }); - return match ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(element, { - location: location, - computedMatch: match - }) : null; - }); - }; - - return Switch; -}(react__WEBPACK_IMPORTED_MODULE_0__.Component); - -if (false) {} - -/** - * A public higher-order component to access the imperative API - */ - -function withRouter(Component) { - var displayName = "withRouter(" + (Component.displayName || Component.name) + ")"; - - var C = function C(props) { - var wrappedComponentRef = props.wrappedComponentRef, - remainingProps = _objectWithoutPropertiesLoose(props, ["wrappedComponentRef"]); - - return /*#__PURE__*/React.createElement(context.Consumer, null, function (context) { - !context ? false ? 0 : invariant(false) : void 0; - return /*#__PURE__*/React.createElement(Component, _extends({}, remainingProps, context, { - ref: wrappedComponentRef - })); - }); - }; - - C.displayName = displayName; - C.WrappedComponent = Component; - - if (false) {} - - return hoistStatics(C, Component); -} - -var useContext = react__WEBPACK_IMPORTED_MODULE_0__.useContext; -function useHistory() { - if (false) {} - - return useContext(historyContext); -} -function useLocation() { - if (false) {} - - return useContext(context).location; -} -function useParams() { - if (false) {} - - var match = useContext(context).match; - return match ? match.params : {}; -} -function useRouteMatch(path) { - if (false) {} - - var location = useLocation(); - var match = useContext(context).match; - return path ? matchPath(location.pathname, path) : match; -} - -if (false) { var secondaryBuildName, initialBuildName, buildNames, key, global$1; } - - -//# sourceMappingURL=react-router.js.map - - -/***/ }), - -/***/ 2803: -/***/ ((module) => { - -module.exports = Array.isArray || function (arr) { - return Object.prototype.toString.call(arr) == '[object Array]'; -}; - - -/***/ }), - -/***/ 8853: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var isarray = __webpack_require__(2803) - -/** - * Expose `pathToRegexp`. - */ -module.exports = pathToRegexp -module.exports.parse = parse -module.exports.compile = compile -module.exports.tokensToFunction = tokensToFunction -module.exports.tokensToRegExp = tokensToRegExp - -/** - * The main path matching regexp utility. - * - * @type {RegExp} - */ -var PATH_REGEXP = new RegExp([ - // Match escaped characters that would otherwise appear in future matches. - // This allows the user to escape special characters that won't transform. - '(\\\\.)', - // Match Express-style parameters and un-named parameters with a prefix - // and optional suffixes. Matches appear as: - // - // "/:test(\\d+)?" => ["/", "test", "\d+", undefined, "?", undefined] - // "/route(\\d+)" => [undefined, undefined, undefined, "\d+", undefined, undefined] - // "/*" => ["/", undefined, undefined, undefined, undefined, "*"] - '([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))' -].join('|'), 'g') - -/** - * Parse a string for the raw tokens. - * - * @param {string} str - * @param {Object=} options - * @return {!Array} - */ -function parse (str, options) { - var tokens = [] - var key = 0 - var index = 0 - var path = '' - var defaultDelimiter = options && options.delimiter || '/' - var res - - while ((res = PATH_REGEXP.exec(str)) != null) { - var m = res[0] - var escaped = res[1] - var offset = res.index - path += str.slice(index, offset) - index = offset + m.length - - // Ignore already escaped sequences. - if (escaped) { - path += escaped[1] - continue - } - - var next = str[index] - var prefix = res[2] - var name = res[3] - var capture = res[4] - var group = res[5] - var modifier = res[6] - var asterisk = res[7] - - // Push the current path onto the tokens. - if (path) { - tokens.push(path) - path = '' - } - - var partial = prefix != null && next != null && next !== prefix - var repeat = modifier === '+' || modifier === '*' - var optional = modifier === '?' || modifier === '*' - var delimiter = prefix || defaultDelimiter - var pattern = capture || group - var prevText = prefix || (typeof tokens[tokens.length - 1] === 'string' ? tokens[tokens.length - 1] : '') - - tokens.push({ - name: name || key++, - prefix: prefix || '', - delimiter: delimiter, - optional: optional, - repeat: repeat, - partial: partial, - asterisk: !!asterisk, - pattern: pattern ? escapeGroup(pattern) : (asterisk ? '.*' : restrictBacktrack(delimiter, prevText)) - }) - } - - // Match any characters still remaining. - if (index < str.length) { - path += str.substr(index) - } - - // If the path exists, push it onto the end. - if (path) { - tokens.push(path) - } - - return tokens -} - -function restrictBacktrack(delimiter, prevText) { - if (!prevText || prevText.indexOf(delimiter) > -1) { - return '[^' + escapeString(delimiter) + ']+?' - } - - return escapeString(prevText) + '|(?:(?!' + escapeString(prevText) + ')[^' + escapeString(delimiter) + '])+?' -} - -/** - * Compile a string to a template function for the path. - * - * @param {string} str - * @param {Object=} options - * @return {!function(Object=, Object=)} - */ -function compile (str, options) { - return tokensToFunction(parse(str, options), options) -} - -/** - * Prettier encoding of URI path segments. - * - * @param {string} - * @return {string} - */ -function encodeURIComponentPretty (str) { - return encodeURI(str).replace(/[\/?#]/g, function (c) { - return '%' + c.charCodeAt(0).toString(16).toUpperCase() - }) -} - -/** - * Encode the asterisk parameter. Similar to `pretty`, but allows slashes. - * - * @param {string} - * @return {string} - */ -function encodeAsterisk (str) { - return encodeURI(str).replace(/[?#]/g, function (c) { - return '%' + c.charCodeAt(0).toString(16).toUpperCase() - }) -} - -/** - * Expose a method for transforming tokens into the path function. - */ -function tokensToFunction (tokens, options) { - // Compile all the tokens into regexps. - var matches = new Array(tokens.length) - - // Compile all the patterns before compilation. - for (var i = 0; i < tokens.length; i++) { - if (typeof tokens[i] === 'object') { - matches[i] = new RegExp('^(?:' + tokens[i].pattern + ')$', flags(options)) - } - } - - return function (obj, opts) { - var path = '' - var data = obj || {} - var options = opts || {} - var encode = options.pretty ? encodeURIComponentPretty : encodeURIComponent - - for (var i = 0; i < tokens.length; i++) { - var token = tokens[i] - - if (typeof token === 'string') { - path += token - - continue - } - - var value = data[token.name] - var segment - - if (value == null) { - if (token.optional) { - // Prepend partial segment prefixes. - if (token.partial) { - path += token.prefix - } - - continue - } else { - throw new TypeError('Expected "' + token.name + '" to be defined') - } - } - - if (isarray(value)) { - if (!token.repeat) { - throw new TypeError('Expected "' + token.name + '" to not repeat, but received `' + JSON.stringify(value) + '`') - } - - if (value.length === 0) { - if (token.optional) { - continue - } else { - throw new TypeError('Expected "' + token.name + '" to not be empty') - } - } - - for (var j = 0; j < value.length; j++) { - segment = encode(value[j]) - - if (!matches[i].test(segment)) { - throw new TypeError('Expected all "' + token.name + '" to match "' + token.pattern + '", but received `' + JSON.stringify(segment) + '`') - } - - path += (j === 0 ? token.prefix : token.delimiter) + segment - } - - continue - } - - segment = token.asterisk ? encodeAsterisk(value) : encode(value) - - if (!matches[i].test(segment)) { - throw new TypeError('Expected "' + token.name + '" to match "' + token.pattern + '", but received "' + segment + '"') - } - - path += token.prefix + segment - } - - return path - } -} - -/** - * Escape a regular expression string. - * - * @param {string} str - * @return {string} - */ -function escapeString (str) { - return str.replace(/([.+*?=^!:${}()[\]|\/\\])/g, '\\$1') -} - -/** - * Escape the capturing group by escaping special characters and meaning. - * - * @param {string} group - * @return {string} - */ -function escapeGroup (group) { - return group.replace(/([=!:$\/()])/g, '\\$1') -} - -/** - * Attach the keys as a property of the regexp. - * - * @param {!RegExp} re - * @param {Array} keys - * @return {!RegExp} - */ -function attachKeys (re, keys) { - re.keys = keys - return re -} - -/** - * Get the flags for a regexp from the options. - * - * @param {Object} options - * @return {string} - */ -function flags (options) { - return options && options.sensitive ? '' : 'i' -} - -/** - * Pull out keys from a regexp. - * - * @param {!RegExp} path - * @param {!Array} keys - * @return {!RegExp} - */ -function regexpToRegexp (path, keys) { - // Use a negative lookahead to match only capturing groups. - var groups = path.source.match(/\((?!\?)/g) - - if (groups) { - for (var i = 0; i < groups.length; i++) { - keys.push({ - name: i, - prefix: null, - delimiter: null, - optional: false, - repeat: false, - partial: false, - asterisk: false, - pattern: null - }) - } - } - - return attachKeys(path, keys) -} - -/** - * Transform an array into a regexp. - * - * @param {!Array} path - * @param {Array} keys - * @param {!Object} options - * @return {!RegExp} - */ -function arrayToRegexp (path, keys, options) { - var parts = [] - - for (var i = 0; i < path.length; i++) { - parts.push(pathToRegexp(path[i], keys, options).source) - } - - var regexp = new RegExp('(?:' + parts.join('|') + ')', flags(options)) - - return attachKeys(regexp, keys) -} - -/** - * Create a path regexp from string input. - * - * @param {string} path - * @param {!Array} keys - * @param {!Object} options - * @return {!RegExp} - */ -function stringToRegexp (path, keys, options) { - return tokensToRegExp(parse(path, options), keys, options) -} - -/** - * Expose a function for taking tokens and returning a RegExp. - * - * @param {!Array} tokens - * @param {(Array|Object)=} keys - * @param {Object=} options - * @return {!RegExp} - */ -function tokensToRegExp (tokens, keys, options) { - if (!isarray(keys)) { - options = /** @type {!Object} */ (keys || options) - keys = [] - } - - options = options || {} - - var strict = options.strict - var end = options.end !== false - var route = '' - - // Iterate over the tokens and create our regexp string. - for (var i = 0; i < tokens.length; i++) { - var token = tokens[i] - - if (typeof token === 'string') { - route += escapeString(token) - } else { - var prefix = escapeString(token.prefix) - var capture = '(?:' + token.pattern + ')' - - keys.push(token) - - if (token.repeat) { - capture += '(?:' + prefix + capture + ')*' - } - - if (token.optional) { - if (!token.partial) { - capture = '(?:' + prefix + '(' + capture + '))?' - } else { - capture = prefix + '(' + capture + ')?' - } - } else { - capture = prefix + '(' + capture + ')' - } - - route += capture - } - } - - var delimiter = escapeString(options.delimiter || '/') - var endsWithDelimiter = route.slice(-delimiter.length) === delimiter - - // In non-strict mode we allow a slash at the end of match. If the path to - // match already ends with a slash, we remove it for consistency. The slash - // is valid at the end of a path match, not in the middle. This is important - // in non-ending mode, where "/test/" shouldn't match "/test//route". - if (!strict) { - route = (endsWithDelimiter ? route.slice(0, -delimiter.length) : route) + '(?:' + delimiter + '(?=$))?' - } - - if (end) { - route += '$' - } else { - // In non-ending mode, we need the capturing groups to match as much as - // possible by using a positive lookahead to the end or next path segment. - route += strict && endsWithDelimiter ? '' : '(?=' + delimiter + '|$)' - } - - return attachKeys(new RegExp('^' + route, flags(options)), keys) -} - -/** - * Normalize the given path string, returning a regular expression. - * - * An empty array can be passed in for the keys, which will hold the - * placeholder key descriptions. For example, using `/user/:id`, `keys` will - * contain `[{ name: 'id', delimiter: '/', optional: false, repeat: false }]`. - * - * @param {(string|RegExp|Array)} path - * @param {(Array|Object)=} keys - * @param {Object=} options - * @return {!RegExp} - */ -function pathToRegexp (path, keys, options) { - if (!isarray(keys)) { - options = /** @type {!Object} */ (keys || options) - keys = [] - } - - options = options || {} - - if (path instanceof RegExp) { - return regexpToRegexp(path, /** @type {!Array} */ (keys)) - } - - if (isarray(path)) { - return arrayToRegexp(/** @type {!Array} */ (path), /** @type {!Array} */ (keys), options) - } - - return stringToRegexp(/** @type {string} */ (path), /** @type {!Array} */ (keys), options) -} - - -/***/ }), - -/***/ 7788: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; -var __webpack_unused_export__; -/** @license React v16.13.1 - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b? -Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119; -function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}__webpack_unused_export__=l;__webpack_unused_export__=m;__webpack_unused_export__=k;__webpack_unused_export__=h;__webpack_unused_export__=c;__webpack_unused_export__=n;__webpack_unused_export__=e;__webpack_unused_export__=t;__webpack_unused_export__=r;__webpack_unused_export__=d; -__webpack_unused_export__=g;__webpack_unused_export__=f;__webpack_unused_export__=p;__webpack_unused_export__=function(a){return A(a)||z(a)===l};__webpack_unused_export__=A;__webpack_unused_export__=function(a){return z(a)===k};__webpack_unused_export__=function(a){return z(a)===h};__webpack_unused_export__=function(a){return"object"===typeof a&&null!==a&&a.$$typeof===c};__webpack_unused_export__=function(a){return z(a)===n};__webpack_unused_export__=function(a){return z(a)===e};__webpack_unused_export__=function(a){return z(a)===t}; -__webpack_unused_export__=function(a){return z(a)===r};__webpack_unused_export__=function(a){return z(a)===d};__webpack_unused_export__=function(a){return z(a)===g};__webpack_unused_export__=function(a){return z(a)===f};__webpack_unused_export__=function(a){return z(a)===p}; -__webpack_unused_export__=function(a){return"string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};__webpack_unused_export__=z; - - -/***/ }), - -/***/ 1680: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -if (true) { - /* unused reexport */ __webpack_require__(7788); -} else {} - - -/***/ }), - -/***/ 5317: -/***/ ((module) => { - -// - -module.exports = function shallowEqual(objA, objB, compare, compareContext) { - var ret = compare ? compare.call(compareContext, objA, objB) : void 0; - - if (ret !== void 0) { - return !!ret; - } - - if (objA === objB) { - return true; - } - - if (typeof objA !== "object" || !objA || typeof objB !== "object" || !objB) { - return false; - } - - var keysA = Object.keys(objA); - var keysB = Object.keys(objB); - - if (keysA.length !== keysB.length) { - return false; - } - - var bHasOwnProperty = Object.prototype.hasOwnProperty.bind(objB); - - // Test for A's keys different from B. - for (var idx = 0; idx < keysA.length; idx++) { - var key = keysA[idx]; - - if (!bHasOwnProperty(key)) { - return false; - } - - var valueA = objA[key]; - var valueB = objB[key]; - - ret = compare ? compare.call(compareContext, valueA, valueB, key) : void 0; - - if (ret === false || (ret === void 0 && valueA !== valueB)) { - return false; - } - } - - return true; -}; - - -/***/ }), - -/***/ 9982: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (__webpack_require__.p + "assets/images/docusaurus-plushie-banner-a60f7593abca1e3eef26a9afa244e4fb.jpeg"); - -/***/ }), - -/***/ 1674: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (__webpack_require__.p + "assets/images/docsVersionDropdown-35e13cbe46c9923327f30a76a90bff3b.png"); - -/***/ }), - -/***/ 3989: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (__webpack_require__.p + "assets/images/localeDropdown-f0d995e751e7656a1b0dbbc1134e49c2.png"); - -/***/ }), - -/***/ 1394: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAT3UlEQVR42u1dCVQVV5pWXNt2N0czykl33KImZ7IgKgqIghq3KCDK+qowCek2c2K0Mx3idBxakzYxJnZiq3Gf6Bg7UdN2R51MxnTSia3gew9Rwccm7oqiiIK4sPxTt1hEHo9XvPVW1fed852Dr+67UNb/1f3/+9/731atAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAO8i2CxGjDUJXzMGmcSZnmoHAF7B6GMJvYPNwq5gk1AmMS/YJMbaahtkNsRLbeghmoU4d7cDAO+NCEbhQCMjrZbe5q81bhdyVOwuXbtqZdDSZ+yau9oBgNcgGeIvmzDQJkUy1ix8ZKMtsWvuagcAXsNYs/iyLSNlIgk2GebLQjKJQ6R/32+mbcWYI8KTrm6HJwR4170yCV80Y6T1I4kklH122lFNG9e2wxMC3Ao/U1KnQLPgF2SK/xeri5TiIxlikX1DBXVANpoXSy/DzGCjYfdYs2FRiFkcxWxEu/GF0RAm3fT1Bv8JJyV+LLlV08ccnNuFCQeGAdrheWkkXxaSGueruZFDurlrzfn4QSbDGRgAqJD3JK4NMcU8oo3RIz1hOB4q6AZeCzKK0aoXCIs58DBBt9Esfip5Ke3UPkN1Eg8TdB8N+5grr+JRxPAJHiLoTgaZhf97MiuqvVqTgNPxEEEPcK0qBTIyNa6rnWw1CLooJjHMUZc6KMWnNs9xDg8Q9ACLQtMMvbhfeFi7tuoLZMhBz1NczaUw2H4OFizhAYFe5l0uM+61m53wgMAWM+C7aBr425Ey2c8umPpdxmO+oxQPWz8cvnOmTGf7Gf1DDHXs25lYxMrIfmafOdnvOe4WONZsk4XhaD7nkJpAPQN96w2a/cw+c7S/QYsC6vuq46D/CHD+7zQaRvDmYsXVbG6CEWmZQ5YGWRk0+8zR/phb1bg/9pkLgvVk/twso+EViETbfPw1PyuDHrDQ36n4o6GL1eHRn7skDhlrEnZyuvbKMN/TIglKM9AzmyfLbzL2sBjZz89sniJfg2G7Nvbwad+m3qB9OrQh/z0RTschzK1yXZAu8zi/CxQ9NJL4fT6d+kwdQG27drB6q9WxXbcO1GfaAPL78wswcBfx6Y2T6ZHxv5DJfuY1acj5Kl55JHHPtOCBaOozZQC18mltUxhWlNoyobjwDQVyng/hVhyBaYbBrEKhW0aNL2Y85LO2lB37daHhX86AAemAPC4z6R5sEt9j6nWXONr8vJ3D4qhj287tIRIIxMP7PmrKd151p1vV3MjRtmt7eiT0F+QbN4z6xQ6T/eO2XdrbbP8z3y5wtyAQT+VAxAh336wcczQVhPfsKM+ANJWsYp+xRFS7Hh2b/C6LSWBIEIgnsuh73T1b1VRA3ql/dxq5d5bd74/4OlJu21TgjtktCMT9uwbdFJDXjx5TBzQ5cigRR71I/hZJ7bpbTwf3mT4QxgSBuHtbrSHcnUlAlstwxXqdgcmjmsyTIJkIgag2SGcZ8qYCckcWyAUdTpBnsBr398yWKTAoCESd07xD3rFeHMdmqxztj81uNe5v6B+CYVAQiAeD9qPiIOkP/NIVN9l//nArg/ZNeNLh/nzjn7Tqr//rw2FQEIg6M+lN7RcY/LvR3PQHupdh6S9R+LH5ZMh8i17NfoeS81bSO6fX0cfn/ps2X/wL7bzyv/TNtYP0z5KjdLw0hwrKL1DR/Rt0r+q+Plys0d/HyMtDGib4nNlx5ur+QPcZuLPQTSa9bjk0oyuM2dX9adm4Zx57jeIzk+lXliX0Ru4KSjm1hlac/S/69MKXtP3yXvrr1b/Td8WplHbzOGWV5dPZO5fo+v0Slxi4ZgTiiUw66BoD/32BPQO/zI2Ba0cgbs6kg9aMPfFbWn5mM/258H80a+CaEYi7M+ngA7JR4ERpHgFqEogbM+lgDSelv0LfFx+B1SNIBxtzWsarlH27ABavZoF4YsOUHhliEuX4AlCOwsJC2rVrF7+JwjHGuU8Em4X9MHDn+afzOzRtzGVlZbR69WqKjY2lqKgoev/996m4uNihvqqrqyklJYU6dKhf3Kq/Pel6izuKK246bYQXLlygvXv30ldffUWZmZlO9cX6CAwMpI4dO1Lbtm3pueeeo61btzrUV1ZWFj3++ONWKxseffRRMpvNLe7vzTffrClF5ONDEydOhIuldb53ZqNTxpyfn08RERFWBsiM2mQytbi/+fPn29zCnJSU1KK+ioqKyNe3poTpU089RRs3bqTt27dTQEBAvUiuXr2quL8ff/xRFgYT7e7duxGk64E/FBsdFsfhw4epR48eNTsvO3WioKAgmjRpEvXu3Vv+rHPnzvTTTz8p7u/dd9+tqXwouS/Lly+nS5cuUUlJCa1fv17ui11j7pFSTJs2Tf4O+7tu3bpV//ndu3fr3v40Y8YMRX1VVFTQkCFD5O8sW7YMmXS98MLdQofEYbFYqFu3brLBsBGEBa11KC0tpcTERPkaa8NGGXs4ePCg/HZu06YN7du3z+r6/v3769/e6enpdvvbs2dPTeHrnj1l968xLl68SN2712yR/vbbb+3299lnn8ltn3jiCbp37x4y6XphedWdFouDBbiDBw+WDWb27NlUWVlp1aaqqooiIyPlNsOHD3/IqBrj9u3bNGjQILnt4sWLbbZbuHCh3Mbf37/J31kH9rvq+mPBuS2w0Yi18fPzk4NvW2C/iwmDtd22bRsy6RAINWvM48aNq48z2L9tgblH/fv3l9suWLDAZrt58+bJbZ5++ulmhcRGpscee8yu4a9YsUJuM2zYMNk1soXy8nLq16+f3Hbnzp0227EJAtZm4MCBVv0hkw4XS8aNGzdkV4S9bZmxMMM6f/683e+lpaVR+/Y1W5A//PBDq+vr1q2Tr7E2GRkZil2nrl27Um5ubpOTBuwaa/PNN9/Y7a/u97MRgsUmjcE+Y8JgbbZs2YJMut6oZGnJ6NGjHz5bQzKYggLlWXf2BmbxA/suC+LZbNKOHTsoLi6OWrduLXPz5s2K+2P5DNYXC5rz8h6sGbt8+bI8qrFrrI3S4JuNNOw7ycnJVtfffvvtZkcjTPNqnMtOb7BrRGPGjJFnlpiRfPDBB826VbbABNGrVy/rii/t2tGqVata7OY9++yz8ve7dOkiC41NAdfNng0dOlR2x5TCaDTKfwf77tKlS2UhsJiEuXFs0oCJ+9ChQ+pYauKOPel65sT0JJckCpXmJVhgzLLZM2fOpEWLFj00ArR0oqCp/AuLj9hI0lIwkbKRrG7mqy42YVyyZIl61mJhqYnruercdtUuI2HTzZs2baK1a9fSkSPOrURm8U1droOxb9++tGHDBixWxGJFkVJLjmEFYoMcCYuxmpsBQ5Cuu+Xu8+hk2SmoQ63L3ZFJ90w8cuD6YVi9KgWCTLrHuDB3uVwep5qqoQC1CASZdM8z+sQb9P6ZTbSjcD+KNnAvEGTSUfYHAkGQDoGhcBymeUGUHkUmHdS6wG5VlmFPOgjq/gAdEMQRbCCoZYEgkw5CIMikgxAIMukgBIJMOgiBIEgHIRBM84KgegSCTDoIgSCTzvcWXbNAv7bE0/oL0fSPG1F0+k4k3aoMp4rqmUSkL8LFAus563gCbb88h4ruR+hOCKoQCIJ07/CFDAP9rWg23a+GILgVCDLp3uGSghi6WREOMXAvEGTSPcrxUpzxtTRqQAQqEQgCck9WNzFQasksCEBVAkEm3WMjB8SBIB20QbhVmOYFbXBpQazLDYjlR25XhetGIJOyXuw5JntuF2TSNVd61EAlLpytqpa4sjCWJmSLMtdcidG2QKhV67CcxHVh2WJVLVcik65zjmVZ9QyRxmcKFHpSJMkoaGqOSHGnDPTGuXj53w1pLIvSnECk+yoPzRZPh2Un/r3x/YZZEifBxdLrcpOMB6JQyt3Fc7QokOb4OoJ0vdEs0LgTLRNGHQ/cnE07JZEcLo2SXTCtC2RCdmJ8aI64MNSSOI25YMik64COiqMxPy6M0cMI0oDCGmTSdeBWuUIcYbWBe6kGZrdacM/VIafF7sikazggb2nMYU8gJZURehJIVUhO0iPIpGt29HCdOBj/qDMXS3ohfIogXctLUDJd516xaeCvb8yhMv24WGekQP2VsFNJ3TDNq1G60r2qY4IkFLWLpIX3fMojIkEm3QsV0LMFlwuEcfS/P0N+ft29ypdf/qWnBEJhFiEJmXQIRDH7RQ2uP5fcW+zbt6PHBDIhJ/EluFhwsRRxzsl4OmgeTyZTiFdZXDzVUwLJd6uLhSBdO0H63huzdRWkM9fKreJAJl07SULGjy7H6iuTbhHXI5Ou8URhGBKFHCcKEZB7fxQ5iqUm/C41QSadk8WKrhHJJ4X6crFCLeKfkEnXiavl7HL31LJZutgPUrfcPSxXmIoNU3rcMGURsGGKpw1TyKTzKZTxmWJtnkT6OSOBxhyYRX6fPW9lML0C+3k9KdgUR47s4dSWW4kF3Gy5RSbdtXTUMEaM6NG84bVuRUNSAiThSCNNlkCDk/25FAfjqFE9XVO0IVtcW1uwoTLMInyEsj86FohSllaGU7mOyv5MPR7bIyRrXmcUjoNAQFR3h0BAVHeHQEBUdwchEFR3ByEQVHdHkA6BQCCY5oVAIBBk0tUrEH//Htwm/jyZSedWIMikc55JVxFdkkmHiwWBgAjSIRAQmXQQAkEmHYRAkEkHeRDIP0ujaOG5eJqWK8j8jfQzOyQHAkEmXfcC2XA12uaOuk1F0RAIgnRtC4Qd4XyifBZZ7kRaHefMRg5722wbjySsD9YX61MLx0OH5cwNnJwX1xXTvDoTyF3JeD8pjKHncx4Y+xTp51VXYuRrrM3CJk6ybUx22u2D/mLlPuquTc4RavqrVv2e9LthOcKqgPNRP0MmXQcCqZAMdsFZ28b/unTNf1QvGpceZ1cg48xx5NPOh4Z/PsVmG79tz1Prtj5q3ZPekD/4mZLaIZOu9dpXx+1XKBl3XFlFk9BMAw1+a4Tddo8Zhqkyk95EQbz5cLG0Xsk9S3TLUQfN8ddnErRS9seMIF3rZ4FYPC+QF3IFrQjkFjLpOAvE5UwsMGhFIBZk0rV+FsgJweMC+Vilp95a34uwBpl0rdffNXtWIKzS+9Hbs2hlYSwZThnkqWA2onx+LZr7KeDGFdxDsw3jwnIS18mnSWWLd9iIEmpJfMvtU8DIpHtwBMny/Ahii/8mBe88JxRb8BJIc3tCEUG6Nt0re/zgcozqBVLrfm3GNK+aC1Ef408cjBM5Po2qhfdS6dZTppBJd2/cEWoRuRQIY8/RfdWQSbfP3LlhSoPuxSGpcb7IpMO1UsIe/n1UkUm3OxrmCsF2jTs09aU+0kO5zQwcLhYHTBe5Fgdb1HirMlwLLtbdSVkv9lSS01ha93CCzMpP4UGQzve5g+7iHzk+z7CF97JWadIvr8EDqmJZcmTSvUSzd5aWKOX8swn1y+tVLpCD001JnezHHkdE/yYe1B17IkEm3U3BeTq/o8faK9Hy0nvVn3JrET5SvAxeeii/sfGwqqSY5DVk0j3sXh3jd/Rgm7V43+Ou8F7uSyyT+P1EizjdnkC+sDPk7x+TPrcvMukemr3K5DtA532PuyP3EZojvtvc9G6mggd3LcgoLAg49PD6FQTp7li5K6hGIE3tcVejQGSRWBKn2RpBLrXgAbK2vws0zu2PaV7t7P1whnV73NUuEHZstC2B3HFwtuVIkEn8cKxRiJFGkn8NyZgbGGw07IaROzmCZKtLIGyPu6oz6fY2VkkP5R4MEwJxlCGmOG4y6ferw525l5u2BHIdhsmRQOBiOUy2gNLhGCRb/M6ZIB3U8PZaZ5haNosbgRTcjXT8XnKFqbZGkK9gmDxtjlKPOLZwNs37j1uzHbwXYWlzOwMXwTCRKFSaKJyeK8huFU8jh5K6xNaJQqGUuVU2R476aVqzOAqGiaUmSnjmXiTXy0xePZOgLN7ISxymfL06pfhID+YcjJMTgXAah7xymu9CclfuR8jFJhTcy1EHSvgYlsE41VVq1NPccX0O1wJhFVcU3UuOmNzyfeWpcb7Ih/C1YYqnfAirsnijkt8l7iz/EZ1vUJQMnJif0NvRQnBrYZw8bZriRyDbrvE9euwpnqOs1E+OsNjhogsBh17sKT2YIhgnLxunRC7WZc3OF6ic4w1SN6WRLTJP0ehxOSRrXmfn6lwZxWgYJ8r+NKywmMbhdG5DLrkYp+ReqsbnGCa7qij1pzBOVDdh3HqN7zMN/3pjttLA/D9dVt8q6suoNmNNwl9gnPreRPV76c1czbE4WKJyUo6il8euFErxcWkROD9TUqdgk2EfjJOf3IgnRfLepViqrOY37mCbtKbmKhLH1pDvU9q6pVIi29SOmS19zWxNqC3MUM25W6Vg5KhmhRlaUavWHjgoxzAHs1scBe4ZclUOl4sjJt9AxrIoboVRUhmuNCA/F2ZJnOTRs0BC0wy9gk3iamyr5ad2lquCd1alZM2VGG6PNGBJQJbnCM+ze7+sSslKr56RPj7D0K92WQrWbnEiFLYsxZG1W2zEYMszeC0herUiQv77FGTIz7EDcRSVEPUYKMUnyGgYIY0qyVIAuVN6WMdrdyZiuYqXgvixRwX5KOjxmTWLHdnORLZchfnrEdLb9+XTCZKLEiv78GfvRXA0QsykmxXhlF8eST8UR9G6i9H0q7x4Cm10H2HZQoUkhmsSj0/IFnZOyBFeDctNGNoKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAsI3/BxVeQNnL1kBuAAAAAElFTkSuQmCC"); - -/***/ }), - -/***/ 3065: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - assets: () => (/* binding */ assets), - contentTitle: () => (/* binding */ contentTitle), - "default": () => (/* binding */ MDXContent), - frontMatter: () => (/* binding */ frontMatter), - metadata: () => (/* reexport */ site_src_pages_markdown_page_md_393_namespaceObject), - toc: () => (/* binding */ toc) -}); - -;// ./.docusaurus/docusaurus-plugin-content-pages/default/site-src-pages-markdown-page-md-393.json -const site_src_pages_markdown_page_md_393_namespaceObject = /*#__PURE__*/JSON.parse('{"type":"mdx","permalink":"/markdown-page","source":"@site/src/pages/markdown-page.md","title":"Markdown page example","description":"You don\'t need React to write simple standalone pages.","frontMatter":{"title":"Markdown page example"},"unlisted":false}'); -// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js -var jsx_runtime = __webpack_require__(4848); -// EXTERNAL MODULE: ../node_modules/@mdx-js/react/lib/index.js -var lib = __webpack_require__(3023); -;// ./src/pages/markdown-page.md - - -const frontMatter = { - title: 'Markdown page example' -}; -const contentTitle = 'Markdown page example'; - -const assets = { - -}; - - - -const toc = []; -function _createMdxContent(props) { - const _components = { - h1: "h1", - header: "header", - p: "p", - ...(0,lib/* useMDXComponents */.R)(), - ...props.components - }; - return (0,jsx_runtime.jsxs)(jsx_runtime.Fragment, { - children: [(0,jsx_runtime.jsx)(_components.header, { - children: (0,jsx_runtime.jsx)(_components.h1, { - id: "markdown-page-example", - children: "Markdown page example" - }) - }), "\n", (0,jsx_runtime.jsx)(_components.p, { - children: "You don't need React to write simple standalone pages." - })] - }); -} -function MDXContent(props = {}) { - const {wrapper: MDXLayout} = { - ...(0,lib/* useMDXComponents */.R)(), - ...props.components - }; - return MDXLayout ? (0,jsx_runtime.jsx)(MDXLayout, { - ...props, - children: (0,jsx_runtime.jsx)(_createMdxContent, { - ...props - }) - }) : _createMdxContent(props); -} - - - -/***/ }), - -/***/ 2863: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - assets: () => (/* binding */ assets), - contentTitle: () => (/* binding */ contentTitle), - "default": () => (/* binding */ MDXContent), - frontMatter: () => (/* binding */ frontMatter), - metadata: () => (/* reexport */ site_docs_intro_md_0e3_namespaceObject), - toc: () => (/* binding */ toc) -}); - -;// ./.docusaurus/docusaurus-plugin-content-docs/default/site-docs-intro-md-0e3.json -const site_docs_intro_md_0e3_namespaceObject = /*#__PURE__*/JSON.parse('{"id":"intro","title":"Tutorial Intro","description":"Let\'s discover Docusaurus in less than 5 minutes.","source":"@site/docs/intro.md","sourceDirName":".","slug":"/intro","permalink":"/docs/intro","draft":false,"unlisted":false,"editUrl":"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/intro.md","tags":[],"version":"current","sidebarPosition":1,"frontMatter":{"sidebar_position":1},"sidebar":"tutorialSidebar","next":{"title":"Tutorial - Basics","permalink":"/docs/category/tutorial---basics"}}'); -// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js -var jsx_runtime = __webpack_require__(4848); -// EXTERNAL MODULE: ../node_modules/@mdx-js/react/lib/index.js -var lib = __webpack_require__(3023); -;// ./docs/intro.md - - -const frontMatter = { - sidebar_position: 1 -}; -const contentTitle = 'Tutorial Intro'; - -const assets = { - -}; - - - -const toc = [{ - "value": "Getting Started", - "id": "getting-started", - "level": 2 -}, { - "value": "What you'll need", - "id": "what-youll-need", - "level": 3 -}, { - "value": "Generate a new site", - "id": "generate-a-new-site", - "level": 2 -}, { - "value": "Start your site", - "id": "start-your-site", - "level": 2 -}]; -function _createMdxContent(props) { - const _components = { - a: "a", - code: "code", - h1: "h1", - h2: "h2", - h3: "h3", - header: "header", - li: "li", - p: "p", - pre: "pre", - strong: "strong", - ul: "ul", - ...(0,lib/* useMDXComponents */.R)(), - ...props.components - }; - return (0,jsx_runtime.jsxs)(jsx_runtime.Fragment, { - children: [(0,jsx_runtime.jsx)(_components.header, { - children: (0,jsx_runtime.jsx)(_components.h1, { - id: "tutorial-intro", - children: "Tutorial Intro" - }) - }), "\n", (0,jsx_runtime.jsxs)(_components.p, { - children: ["Let's discover ", (0,jsx_runtime.jsx)(_components.strong, { - children: "Docusaurus in less than 5 minutes" - }), "."] - }), "\n", (0,jsx_runtime.jsx)(_components.h2, { - id: "getting-started", - children: "Getting Started" - }), "\n", (0,jsx_runtime.jsxs)(_components.p, { - children: ["Get started by ", (0,jsx_runtime.jsx)(_components.strong, { - children: "creating a new site" - }), "."] - }), "\n", (0,jsx_runtime.jsxs)(_components.p, { - children: ["Or ", (0,jsx_runtime.jsx)(_components.strong, { - children: "try Docusaurus immediately" - }), " with ", (0,jsx_runtime.jsx)(_components.strong, { - children: (0,jsx_runtime.jsx)(_components.a, { - href: "https://docusaurus.new", - children: "docusaurus.new" - }) - }), "."] - }), "\n", (0,jsx_runtime.jsx)(_components.h3, { - id: "what-youll-need", - children: "What you'll need" - }), "\n", (0,jsx_runtime.jsxs)(_components.ul, { - children: ["\n", (0,jsx_runtime.jsxs)(_components.li, { - children: [(0,jsx_runtime.jsx)(_components.a, { - href: "https://nodejs.org/en/download/", - children: "Node.js" - }), " version 18.0 or above:", "\n", (0,jsx_runtime.jsxs)(_components.ul, { - children: ["\n", (0,jsx_runtime.jsx)(_components.li, { - children: "When installing Node.js, you are recommended to check all checkboxes related to dependencies." - }), "\n"] - }), "\n"] - }), "\n"] - }), "\n", (0,jsx_runtime.jsx)(_components.h2, { - id: "generate-a-new-site", - children: "Generate a new site" - }), "\n", (0,jsx_runtime.jsxs)(_components.p, { - children: ["Generate a new Docusaurus site using the ", (0,jsx_runtime.jsx)(_components.strong, { - children: "classic template" - }), "."] - }), "\n", (0,jsx_runtime.jsx)(_components.p, { - children: "The classic template will automatically be added to your project after you run the command:" - }), "\n", (0,jsx_runtime.jsx)(_components.pre, { - children: (0,jsx_runtime.jsx)(_components.code, { - className: "language-bash", - children: "npm init docusaurus@latest my-website classic\n" - }) - }), "\n", (0,jsx_runtime.jsx)(_components.p, { - children: "You can type this command into Command Prompt, Powershell, Terminal, or any other integrated terminal of your code editor." - }), "\n", (0,jsx_runtime.jsx)(_components.p, { - children: "The command also installs all necessary dependencies you need to run Docusaurus." - }), "\n", (0,jsx_runtime.jsx)(_components.h2, { - id: "start-your-site", - children: "Start your site" - }), "\n", (0,jsx_runtime.jsx)(_components.p, { - children: "Run the development server:" - }), "\n", (0,jsx_runtime.jsx)(_components.pre, { - children: (0,jsx_runtime.jsx)(_components.code, { - className: "language-bash", - children: "cd my-website\nnpm run start\n" - }) - }), "\n", (0,jsx_runtime.jsxs)(_components.p, { - children: ["The ", (0,jsx_runtime.jsx)(_components.code, { - children: "cd" - }), " command changes the directory you're working with. In order to work with your newly created Docusaurus site, you'll need to navigate the terminal there."] - }), "\n", (0,jsx_runtime.jsxs)(_components.p, { - children: ["The ", (0,jsx_runtime.jsx)(_components.code, { - children: "npm run start" - }), " command builds your website locally and serves it through a development server, ready for you to view at ", (0,jsx_runtime.jsx)(_components.a, { - href: "http://localhost:3000/", - children: "http://localhost:3000/" - }), "."] - }), "\n", (0,jsx_runtime.jsxs)(_components.p, { - children: ["Open ", (0,jsx_runtime.jsx)(_components.code, { - children: "docs/intro.md" - }), " (this page) and edit some lines: the site ", (0,jsx_runtime.jsx)(_components.strong, { - children: "reloads automatically" - }), " and displays your changes."] - })] - }); -} -function MDXContent(props = {}) { - const {wrapper: MDXLayout} = { - ...(0,lib/* useMDXComponents */.R)(), - ...props.components - }; - return MDXLayout ? (0,jsx_runtime.jsx)(MDXLayout, { - ...props, - children: (0,jsx_runtime.jsx)(_createMdxContent, { - ...props - }) - }) : _createMdxContent(props); -} - - - -/***/ }), - -/***/ 8423: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - assets: () => (/* binding */ assets), - contentTitle: () => (/* binding */ contentTitle), - "default": () => (/* binding */ MDXContent), - frontMatter: () => (/* binding */ frontMatter), - metadata: () => (/* reexport */ site_docs_tutorial_basics_congratulations_md_822_namespaceObject), - toc: () => (/* binding */ toc) -}); - -;// ./.docusaurus/docusaurus-plugin-content-docs/default/site-docs-tutorial-basics-congratulations-md-822.json -const site_docs_tutorial_basics_congratulations_md_822_namespaceObject = /*#__PURE__*/JSON.parse('{"id":"tutorial-basics/congratulations","title":"Congratulations!","description":"You have just learned the basics of Docusaurus and made some changes to the initial template.","source":"@site/docs/tutorial-basics/congratulations.md","sourceDirName":"tutorial-basics","slug":"/tutorial-basics/congratulations","permalink":"/docs/tutorial-basics/congratulations","draft":false,"unlisted":false,"editUrl":"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/tutorial-basics/congratulations.md","tags":[],"version":"current","sidebarPosition":6,"frontMatter":{"sidebar_position":6},"sidebar":"tutorialSidebar","previous":{"title":"Deploy your site","permalink":"/docs/tutorial-basics/deploy-your-site"},"next":{"title":"Tutorial - Extras","permalink":"/docs/category/tutorial---extras"}}'); -// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js -var jsx_runtime = __webpack_require__(4848); -// EXTERNAL MODULE: ../node_modules/@mdx-js/react/lib/index.js -var lib = __webpack_require__(3023); -;// ./docs/tutorial-basics/congratulations.md - - -const frontMatter = { - sidebar_position: 6 -}; -const contentTitle = 'Congratulations!'; - -const assets = { - -}; - - - -const toc = [{ - "value": "What's next?", - "id": "whats-next", - "level": 2 -}]; -function _createMdxContent(props) { - const _components = { - a: "a", - code: "code", - h1: "h1", - h2: "h2", - header: "header", - li: "li", - p: "p", - strong: "strong", - ul: "ul", - ...(0,lib/* useMDXComponents */.R)(), - ...props.components - }; - return (0,jsx_runtime.jsxs)(jsx_runtime.Fragment, { - children: [(0,jsx_runtime.jsx)(_components.header, { - children: (0,jsx_runtime.jsx)(_components.h1, { - id: "congratulations", - children: "Congratulations!" - }) - }), "\n", (0,jsx_runtime.jsxs)(_components.p, { - children: ["You have just learned the ", (0,jsx_runtime.jsx)(_components.strong, { - children: "basics of Docusaurus" - }), " and made some changes to the ", (0,jsx_runtime.jsx)(_components.strong, { - children: "initial template" - }), "."] - }), "\n", (0,jsx_runtime.jsxs)(_components.p, { - children: ["Docusaurus has ", (0,jsx_runtime.jsx)(_components.strong, { - children: "much more to offer" - }), "!"] - }), "\n", (0,jsx_runtime.jsxs)(_components.p, { - children: ["Have ", (0,jsx_runtime.jsx)(_components.strong, { - children: "5 more minutes" - }), "? Take a look at ", (0,jsx_runtime.jsx)(_components.strong, { - children: (0,jsx_runtime.jsx)(_components.a, { - href: "/docs/tutorial-extras/manage-docs-versions", - children: "versioning" - }) - }), " and ", (0,jsx_runtime.jsx)(_components.strong, { - children: (0,jsx_runtime.jsx)(_components.a, { - href: "/docs/tutorial-extras/translate-your-site", - children: "i18n" - }) - }), "."] - }), "\n", (0,jsx_runtime.jsxs)(_components.p, { - children: ["Anything ", (0,jsx_runtime.jsx)(_components.strong, { - children: "unclear" - }), " or ", (0,jsx_runtime.jsx)(_components.strong, { - children: "buggy" - }), " in this tutorial? ", (0,jsx_runtime.jsx)(_components.a, { - href: "https://github.com/facebook/docusaurus/discussions/4610", - children: "Please report it!" - })] - }), "\n", (0,jsx_runtime.jsx)(_components.h2, { - id: "whats-next", - children: "What's next?" - }), "\n", (0,jsx_runtime.jsxs)(_components.ul, { - children: ["\n", (0,jsx_runtime.jsxs)(_components.li, { - children: ["Read the ", (0,jsx_runtime.jsx)(_components.a, { - href: "https://docusaurus.io/", - children: "official documentation" - })] - }), "\n", (0,jsx_runtime.jsxs)(_components.li, { - children: ["Modify your site configuration with ", (0,jsx_runtime.jsx)(_components.a, { - href: "https://docusaurus.io/docs/api/docusaurus-config", - children: (0,jsx_runtime.jsx)(_components.code, { - children: "docusaurus.config.js" - }) - })] - }), "\n", (0,jsx_runtime.jsxs)(_components.li, { - children: ["Add navbar and footer items with ", (0,jsx_runtime.jsx)(_components.a, { - href: "https://docusaurus.io/docs/api/themes/configuration", - children: (0,jsx_runtime.jsx)(_components.code, { - children: "themeConfig" - }) - })] - }), "\n", (0,jsx_runtime.jsxs)(_components.li, { - children: ["Add a custom ", (0,jsx_runtime.jsx)(_components.a, { - href: "https://docusaurus.io/docs/styling-layout", - children: "Design and Layout" - })] - }), "\n", (0,jsx_runtime.jsxs)(_components.li, { - children: ["Add a ", (0,jsx_runtime.jsx)(_components.a, { - href: "https://docusaurus.io/docs/search", - children: "search bar" - })] - }), "\n", (0,jsx_runtime.jsxs)(_components.li, { - children: ["Find inspirations in the ", (0,jsx_runtime.jsx)(_components.a, { - href: "https://docusaurus.io/showcase", - children: "Docusaurus showcase" - })] - }), "\n", (0,jsx_runtime.jsxs)(_components.li, { - children: ["Get involved in the ", (0,jsx_runtime.jsx)(_components.a, { - href: "https://docusaurus.io/community/support", - children: "Docusaurus Community" - })] - }), "\n"] - })] - }); -} -function MDXContent(props = {}) { - const {wrapper: MDXLayout} = { - ...(0,lib/* useMDXComponents */.R)(), - ...props.components - }; - return MDXLayout ? (0,jsx_runtime.jsx)(MDXLayout, { - ...props, - children: (0,jsx_runtime.jsx)(_createMdxContent, { - ...props - }) - }) : _createMdxContent(props); -} - - - -/***/ }), - -/***/ 2621: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - assets: () => (/* binding */ assets), - contentTitle: () => (/* binding */ contentTitle), - "default": () => (/* binding */ MDXContent), - frontMatter: () => (/* binding */ frontMatter), - metadata: () => (/* reexport */ site_docs_tutorial_basics_create_a_blog_post_md_533_namespaceObject), - toc: () => (/* binding */ toc) -}); - -;// ./.docusaurus/docusaurus-plugin-content-docs/default/site-docs-tutorial-basics-create-a-blog-post-md-533.json -const site_docs_tutorial_basics_create_a_blog_post_md_533_namespaceObject = /*#__PURE__*/JSON.parse('{"id":"tutorial-basics/create-a-blog-post","title":"Create a Blog Post","description":"Docusaurus creates a page for each blog post, but also a blog index page, a tag system, an RSS feed...","source":"@site/docs/tutorial-basics/create-a-blog-post.md","sourceDirName":"tutorial-basics","slug":"/tutorial-basics/create-a-blog-post","permalink":"/docs/tutorial-basics/create-a-blog-post","draft":false,"unlisted":false,"editUrl":"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/tutorial-basics/create-a-blog-post.md","tags":[],"version":"current","sidebarPosition":3,"frontMatter":{"sidebar_position":3},"sidebar":"tutorialSidebar","previous":{"title":"Create a Document","permalink":"/docs/tutorial-basics/create-a-document"},"next":{"title":"Markdown Features","permalink":"/docs/tutorial-basics/markdown-features"}}'); -// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js -var jsx_runtime = __webpack_require__(4848); -// EXTERNAL MODULE: ../node_modules/@mdx-js/react/lib/index.js -var lib = __webpack_require__(3023); -;// ./docs/tutorial-basics/create-a-blog-post.md - - -const frontMatter = { - sidebar_position: 3 -}; -const contentTitle = 'Create a Blog Post'; - -const assets = { - -}; - - - -const toc = [{ - "value": "Create your first Post", - "id": "create-your-first-post", - "level": 2 -}]; -function _createMdxContent(props) { - const _components = { - a: "a", - code: "code", - h1: "h1", - h2: "h2", - header: "header", - p: "p", - pre: "pre", - strong: "strong", - ...(0,lib/* useMDXComponents */.R)(), - ...props.components - }; - return (0,jsx_runtime.jsxs)(jsx_runtime.Fragment, { - children: [(0,jsx_runtime.jsx)(_components.header, { - children: (0,jsx_runtime.jsx)(_components.h1, { - id: "create-a-blog-post", - children: "Create a Blog Post" - }) - }), "\n", (0,jsx_runtime.jsxs)(_components.p, { - children: ["Docusaurus creates a ", (0,jsx_runtime.jsx)(_components.strong, { - children: "page for each blog post" - }), ", but also a ", (0,jsx_runtime.jsx)(_components.strong, { - children: "blog index page" - }), ", a ", (0,jsx_runtime.jsx)(_components.strong, { - children: "tag system" - }), ", an ", (0,jsx_runtime.jsx)(_components.strong, { - children: "RSS" - }), " feed..."] - }), "\n", (0,jsx_runtime.jsx)(_components.h2, { - id: "create-your-first-post", - children: "Create your first Post" - }), "\n", (0,jsx_runtime.jsxs)(_components.p, { - children: ["Create a file at ", (0,jsx_runtime.jsx)(_components.code, { - children: "blog/2021-02-28-greetings.md" - }), ":"] - }), "\n", (0,jsx_runtime.jsx)(_components.pre, { - children: (0,jsx_runtime.jsx)(_components.code, { - className: "language-md", - metastring: "title=\"blog/2021-02-28-greetings.md\"", - children: "---\nslug: greetings\ntitle: Greetings!\nauthors:\n - name: Joel Marcey\n title: Co-creator of Docusaurus 1\n url: https://github.com/JoelMarcey\n image_url: https://github.com/JoelMarcey.png\n - name: Sébastien Lorber\n title: Docusaurus maintainer\n url: https://sebastienlorber.com\n image_url: https://github.com/slorber.png\ntags: [greetings]\n---\n\nCongratulations, you have made your first post!\n\nFeel free to play around and edit this post as much as you like.\n" - }) - }), "\n", (0,jsx_runtime.jsxs)(_components.p, { - children: ["A new blog post is now available at ", (0,jsx_runtime.jsx)(_components.a, { - href: "http://localhost:3000/blog/greetings", - children: "http://localhost:3000/blog/greetings" - }), "."] - })] - }); -} -function MDXContent(props = {}) { - const {wrapper: MDXLayout} = { - ...(0,lib/* useMDXComponents */.R)(), - ...props.components - }; - return MDXLayout ? (0,jsx_runtime.jsx)(MDXLayout, { - ...props, - children: (0,jsx_runtime.jsx)(_createMdxContent, { - ...props - }) - }) : _createMdxContent(props); -} - - - -/***/ }), - -/***/ 1000: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - assets: () => (/* binding */ assets), - contentTitle: () => (/* binding */ contentTitle), - "default": () => (/* binding */ MDXContent), - frontMatter: () => (/* binding */ frontMatter), - metadata: () => (/* reexport */ site_docs_tutorial_basics_create_a_document_md_1e4_namespaceObject), - toc: () => (/* binding */ toc) -}); - -;// ./.docusaurus/docusaurus-plugin-content-docs/default/site-docs-tutorial-basics-create-a-document-md-1e4.json -const site_docs_tutorial_basics_create_a_document_md_1e4_namespaceObject = /*#__PURE__*/JSON.parse('{"id":"tutorial-basics/create-a-document","title":"Create a Document","description":"Documents are groups of pages connected through:","source":"@site/docs/tutorial-basics/create-a-document.md","sourceDirName":"tutorial-basics","slug":"/tutorial-basics/create-a-document","permalink":"/docs/tutorial-basics/create-a-document","draft":false,"unlisted":false,"editUrl":"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/tutorial-basics/create-a-document.md","tags":[],"version":"current","sidebarPosition":2,"frontMatter":{"sidebar_position":2},"sidebar":"tutorialSidebar","previous":{"title":"Create a Page","permalink":"/docs/tutorial-basics/create-a-page"},"next":{"title":"Create a Blog Post","permalink":"/docs/tutorial-basics/create-a-blog-post"}}'); -// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js -var jsx_runtime = __webpack_require__(4848); -// EXTERNAL MODULE: ../node_modules/@mdx-js/react/lib/index.js -var lib = __webpack_require__(3023); -;// ./docs/tutorial-basics/create-a-document.md - - -const frontMatter = { - sidebar_position: 2 -}; -const contentTitle = 'Create a Document'; - -const assets = { - -}; - - - -const toc = [{ - "value": "Create your first Doc", - "id": "create-your-first-doc", - "level": 2 -}, { - "value": "Configure the Sidebar", - "id": "configure-the-sidebar", - "level": 2 -}]; -function _createMdxContent(props) { - const _components = { - a: "a", - code: "code", - h1: "h1", - h2: "h2", - header: "header", - li: "li", - p: "p", - pre: "pre", - strong: "strong", - ul: "ul", - ...(0,lib/* useMDXComponents */.R)(), - ...props.components - }; - return (0,jsx_runtime.jsxs)(jsx_runtime.Fragment, { - children: [(0,jsx_runtime.jsx)(_components.header, { - children: (0,jsx_runtime.jsx)(_components.h1, { - id: "create-a-document", - children: "Create a Document" - }) - }), "\n", (0,jsx_runtime.jsxs)(_components.p, { - children: ["Documents are ", (0,jsx_runtime.jsx)(_components.strong, { - children: "groups of pages" - }), " connected through:"] - }), "\n", (0,jsx_runtime.jsxs)(_components.ul, { - children: ["\n", (0,jsx_runtime.jsxs)(_components.li, { - children: ["a ", (0,jsx_runtime.jsx)(_components.strong, { - children: "sidebar" - })] - }), "\n", (0,jsx_runtime.jsx)(_components.li, { - children: (0,jsx_runtime.jsx)(_components.strong, { - children: "previous/next navigation" - }) - }), "\n", (0,jsx_runtime.jsx)(_components.li, { - children: (0,jsx_runtime.jsx)(_components.strong, { - children: "versioning" - }) - }), "\n"] - }), "\n", (0,jsx_runtime.jsx)(_components.h2, { - id: "create-your-first-doc", - children: "Create your first Doc" - }), "\n", (0,jsx_runtime.jsxs)(_components.p, { - children: ["Create a Markdown file at ", (0,jsx_runtime.jsx)(_components.code, { - children: "docs/hello.md" - }), ":"] - }), "\n", (0,jsx_runtime.jsx)(_components.pre, { - children: (0,jsx_runtime.jsx)(_components.code, { - className: "language-md", - metastring: "title=\"docs/hello.md\"", - children: "# Hello\n\nThis is my **first Docusaurus document**!\n" - }) - }), "\n", (0,jsx_runtime.jsxs)(_components.p, { - children: ["A new document is now available at ", (0,jsx_runtime.jsx)(_components.a, { - href: "http://localhost:3000/docs/hello", - children: "http://localhost:3000/docs/hello" - }), "."] - }), "\n", (0,jsx_runtime.jsx)(_components.h2, { - id: "configure-the-sidebar", - children: "Configure the Sidebar" - }), "\n", (0,jsx_runtime.jsxs)(_components.p, { - children: ["Docusaurus automatically ", (0,jsx_runtime.jsx)(_components.strong, { - children: "creates a sidebar" - }), " from the ", (0,jsx_runtime.jsx)(_components.code, { - children: "docs" - }), " folder."] - }), "\n", (0,jsx_runtime.jsx)(_components.p, { - children: "Add metadata to customize the sidebar label and position:" - }), "\n", (0,jsx_runtime.jsx)(_components.pre, { - children: (0,jsx_runtime.jsx)(_components.code, { - className: "language-md", - metastring: "title=\"docs/hello.md\" {1-4}", - children: "---\nsidebar_label: 'Hi!'\nsidebar_position: 3\n---\n\n# Hello\n\nThis is my **first Docusaurus document**!\n" - }) - }), "\n", (0,jsx_runtime.jsxs)(_components.p, { - children: ["It is also possible to create your sidebar explicitly in ", (0,jsx_runtime.jsx)(_components.code, { - children: "sidebars.js" - }), ":"] - }), "\n", (0,jsx_runtime.jsx)(_components.pre, { - children: (0,jsx_runtime.jsx)(_components.code, { - className: "language-js", - metastring: "title=\"sidebars.js\"", - children: "export default {\n tutorialSidebar: [\n 'intro',\n // highlight-next-line\n 'hello',\n {\n type: 'category',\n label: 'Tutorial',\n items: ['tutorial-basics/create-a-document'],\n },\n ],\n};\n" - }) - })] - }); -} -function MDXContent(props = {}) { - const {wrapper: MDXLayout} = { - ...(0,lib/* useMDXComponents */.R)(), - ...props.components - }; - return MDXLayout ? (0,jsx_runtime.jsx)(MDXLayout, { - ...props, - children: (0,jsx_runtime.jsx)(_createMdxContent, { - ...props - }) - }) : _createMdxContent(props); -} - - - -/***/ }), - -/***/ 9009: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - assets: () => (/* binding */ assets), - contentTitle: () => (/* binding */ contentTitle), - "default": () => (/* binding */ MDXContent), - frontMatter: () => (/* binding */ frontMatter), - metadata: () => (/* reexport */ site_docs_tutorial_basics_create_a_page_md_5c8_namespaceObject), - toc: () => (/* binding */ toc) -}); - -;// ./.docusaurus/docusaurus-plugin-content-docs/default/site-docs-tutorial-basics-create-a-page-md-5c8.json -const site_docs_tutorial_basics_create_a_page_md_5c8_namespaceObject = /*#__PURE__*/JSON.parse('{"id":"tutorial-basics/create-a-page","title":"Create a Page","description":"Add Markdown or React files to src/pages to create a standalone page:","source":"@site/docs/tutorial-basics/create-a-page.md","sourceDirName":"tutorial-basics","slug":"/tutorial-basics/create-a-page","permalink":"/docs/tutorial-basics/create-a-page","draft":false,"unlisted":false,"editUrl":"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/tutorial-basics/create-a-page.md","tags":[],"version":"current","sidebarPosition":1,"frontMatter":{"sidebar_position":1},"sidebar":"tutorialSidebar","previous":{"title":"Tutorial - Basics","permalink":"/docs/category/tutorial---basics"},"next":{"title":"Create a Document","permalink":"/docs/tutorial-basics/create-a-document"}}'); -// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js -var jsx_runtime = __webpack_require__(4848); -// EXTERNAL MODULE: ../node_modules/@mdx-js/react/lib/index.js -var lib = __webpack_require__(3023); -;// ./docs/tutorial-basics/create-a-page.md - - -const frontMatter = { - sidebar_position: 1 -}; -const contentTitle = 'Create a Page'; - -const assets = { - -}; - - - -const toc = [{ - "value": "Create your first React Page", - "id": "create-your-first-react-page", - "level": 2 -}, { - "value": "Create your first Markdown Page", - "id": "create-your-first-markdown-page", - "level": 2 -}]; -function _createMdxContent(props) { - const _components = { - a: "a", - code: "code", - h1: "h1", - h2: "h2", - header: "header", - li: "li", - p: "p", - pre: "pre", - strong: "strong", - ul: "ul", - ...(0,lib/* useMDXComponents */.R)(), - ...props.components - }; - return (0,jsx_runtime.jsxs)(jsx_runtime.Fragment, { - children: [(0,jsx_runtime.jsx)(_components.header, { - children: (0,jsx_runtime.jsx)(_components.h1, { - id: "create-a-page", - children: "Create a Page" - }) - }), "\n", (0,jsx_runtime.jsxs)(_components.p, { - children: ["Add ", (0,jsx_runtime.jsx)(_components.strong, { - children: "Markdown or React" - }), " files to ", (0,jsx_runtime.jsx)(_components.code, { - children: "src/pages" - }), " to create a ", (0,jsx_runtime.jsx)(_components.strong, { - children: "standalone page" - }), ":"] - }), "\n", (0,jsx_runtime.jsxs)(_components.ul, { - children: ["\n", (0,jsx_runtime.jsxs)(_components.li, { - children: [(0,jsx_runtime.jsx)(_components.code, { - children: "src/pages/index.js" - }), " → ", (0,jsx_runtime.jsx)(_components.code, { - children: "localhost:3000/" - })] - }), "\n", (0,jsx_runtime.jsxs)(_components.li, { - children: [(0,jsx_runtime.jsx)(_components.code, { - children: "src/pages/foo.md" - }), " → ", (0,jsx_runtime.jsx)(_components.code, { - children: "localhost:3000/foo" - })] - }), "\n", (0,jsx_runtime.jsxs)(_components.li, { - children: [(0,jsx_runtime.jsx)(_components.code, { - children: "src/pages/foo/bar.js" - }), " → ", (0,jsx_runtime.jsx)(_components.code, { - children: "localhost:3000/foo/bar" - })] - }), "\n"] - }), "\n", (0,jsx_runtime.jsx)(_components.h2, { - id: "create-your-first-react-page", - children: "Create your first React Page" - }), "\n", (0,jsx_runtime.jsxs)(_components.p, { - children: ["Create a file at ", (0,jsx_runtime.jsx)(_components.code, { - children: "src/pages/my-react-page.js" - }), ":"] - }), "\n", (0,jsx_runtime.jsx)(_components.pre, { - children: (0,jsx_runtime.jsx)(_components.code, { - className: "language-jsx", - metastring: "title=\"src/pages/my-react-page.js\"", - children: "import React from 'react';\nimport Layout from '@theme/Layout';\n\nexport default function MyReactPage() {\n return (\n \n \n );\n}\n" - }) - }), "\n", (0,jsx_runtime.jsxs)(_components.p, { - children: ["A new page is now available at ", (0,jsx_runtime.jsx)(_components.a, { - href: "http://localhost:3000/my-react-page", - children: "http://localhost:3000/my-react-page" - }), "."] - }), "\n", (0,jsx_runtime.jsx)(_components.h2, { - id: "create-your-first-markdown-page", - children: "Create your first Markdown Page" - }), "\n", (0,jsx_runtime.jsxs)(_components.p, { - children: ["Create a file at ", (0,jsx_runtime.jsx)(_components.code, { - children: "src/pages/my-markdown-page.md" - }), ":"] - }), "\n", (0,jsx_runtime.jsx)(_components.pre, { - children: (0,jsx_runtime.jsx)(_components.code, { - className: "language-mdx", - metastring: "title=\"src/pages/my-markdown-page.md\"", - children: "# My Markdown page\n\nThis is a Markdown page\n" - }) - }), "\n", (0,jsx_runtime.jsxs)(_components.p, { - children: ["A new page is now available at ", (0,jsx_runtime.jsx)(_components.a, { - href: "http://localhost:3000/my-markdown-page", - children: "http://localhost:3000/my-markdown-page" - }), "."] - })] - }); -} -function MDXContent(props = {}) { - const {wrapper: MDXLayout} = { - ...(0,lib/* useMDXComponents */.R)(), - ...props.components - }; - return MDXLayout ? (0,jsx_runtime.jsx)(MDXLayout, { - ...props, - children: (0,jsx_runtime.jsx)(_createMdxContent, { - ...props - }) - }) : _createMdxContent(props); -} - - - -/***/ }), - -/***/ 9466: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - assets: () => (/* binding */ assets), - contentTitle: () => (/* binding */ contentTitle), - "default": () => (/* binding */ MDXContent), - frontMatter: () => (/* binding */ frontMatter), - metadata: () => (/* reexport */ site_docs_tutorial_basics_deploy_your_site_md_f55_namespaceObject), - toc: () => (/* binding */ toc) -}); - -;// ./.docusaurus/docusaurus-plugin-content-docs/default/site-docs-tutorial-basics-deploy-your-site-md-f55.json -const site_docs_tutorial_basics_deploy_your_site_md_f55_namespaceObject = /*#__PURE__*/JSON.parse('{"id":"tutorial-basics/deploy-your-site","title":"Deploy your site","description":"Docusaurus is a static-site-generator (also called Jamstack).","source":"@site/docs/tutorial-basics/deploy-your-site.md","sourceDirName":"tutorial-basics","slug":"/tutorial-basics/deploy-your-site","permalink":"/docs/tutorial-basics/deploy-your-site","draft":false,"unlisted":false,"editUrl":"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/tutorial-basics/deploy-your-site.md","tags":[],"version":"current","sidebarPosition":5,"frontMatter":{"sidebar_position":5},"sidebar":"tutorialSidebar","previous":{"title":"Markdown Features","permalink":"/docs/tutorial-basics/markdown-features"},"next":{"title":"Congratulations!","permalink":"/docs/tutorial-basics/congratulations"}}'); -// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js -var jsx_runtime = __webpack_require__(4848); -// EXTERNAL MODULE: ../node_modules/@mdx-js/react/lib/index.js -var lib = __webpack_require__(3023); -;// ./docs/tutorial-basics/deploy-your-site.md - - -const frontMatter = { - sidebar_position: 5 -}; -const contentTitle = 'Deploy your site'; - -const assets = { - -}; - - - -const toc = [{ - "value": "Build your site", - "id": "build-your-site", - "level": 2 -}, { - "value": "Deploy your site", - "id": "deploy-your-site-1", - "level": 2 -}]; -function _createMdxContent(props) { - const _components = { - a: "a", - code: "code", - h1: "h1", - h2: "h2", - header: "header", - p: "p", - pre: "pre", - strong: "strong", - ...(0,lib/* useMDXComponents */.R)(), - ...props.components - }; - return (0,jsx_runtime.jsxs)(jsx_runtime.Fragment, { - children: [(0,jsx_runtime.jsx)(_components.header, { - children: (0,jsx_runtime.jsx)(_components.h1, { - id: "deploy-your-site", - children: "Deploy your site" - }) - }), "\n", (0,jsx_runtime.jsxs)(_components.p, { - children: ["Docusaurus is a ", (0,jsx_runtime.jsx)(_components.strong, { - children: "static-site-generator" - }), " (also called ", (0,jsx_runtime.jsx)(_components.strong, { - children: (0,jsx_runtime.jsx)(_components.a, { - href: "https://jamstack.org/", - children: "Jamstack" - }) - }), ")."] - }), "\n", (0,jsx_runtime.jsxs)(_components.p, { - children: ["It builds your site as simple ", (0,jsx_runtime.jsx)(_components.strong, { - children: "static HTML, JavaScript and CSS files" - }), "."] - }), "\n", (0,jsx_runtime.jsx)(_components.h2, { - id: "build-your-site", - children: "Build your site" - }), "\n", (0,jsx_runtime.jsxs)(_components.p, { - children: ["Build your site ", (0,jsx_runtime.jsx)(_components.strong, { - children: "for production" - }), ":"] - }), "\n", (0,jsx_runtime.jsx)(_components.pre, { - children: (0,jsx_runtime.jsx)(_components.code, { - className: "language-bash", - children: "npm run build\n" - }) - }), "\n", (0,jsx_runtime.jsxs)(_components.p, { - children: ["The static files are generated in the ", (0,jsx_runtime.jsx)(_components.code, { - children: "build" - }), " folder."] - }), "\n", (0,jsx_runtime.jsx)(_components.h2, { - id: "deploy-your-site-1", - children: "Deploy your site" - }), "\n", (0,jsx_runtime.jsx)(_components.p, { - children: "Test your production build locally:" - }), "\n", (0,jsx_runtime.jsx)(_components.pre, { - children: (0,jsx_runtime.jsx)(_components.code, { - className: "language-bash", - children: "npm run serve\n" - }) - }), "\n", (0,jsx_runtime.jsxs)(_components.p, { - children: ["The ", (0,jsx_runtime.jsx)(_components.code, { - children: "build" - }), " folder is now served at ", (0,jsx_runtime.jsx)(_components.a, { - href: "http://localhost:3000/", - children: "http://localhost:3000/" - }), "."] - }), "\n", (0,jsx_runtime.jsxs)(_components.p, { - children: ["You can now deploy the ", (0,jsx_runtime.jsx)(_components.code, { - children: "build" - }), " folder ", (0,jsx_runtime.jsx)(_components.strong, { - children: "almost anywhere" - }), " easily, ", (0,jsx_runtime.jsx)(_components.strong, { - children: "for free" - }), " or very small cost (read the ", (0,jsx_runtime.jsx)(_components.strong, { - children: (0,jsx_runtime.jsx)(_components.a, { - href: "https://docusaurus.io/docs/deployment", - children: "Deployment Guide" - }) - }), ")."] - })] - }); -} -function MDXContent(props = {}) { - const {wrapper: MDXLayout} = { - ...(0,lib/* useMDXComponents */.R)(), - ...props.components - }; - return MDXLayout ? (0,jsx_runtime.jsx)(MDXLayout, { - ...props, - children: (0,jsx_runtime.jsx)(_createMdxContent, { - ...props - }) - }) : _createMdxContent(props); -} - - - -/***/ }), - -/***/ 6731: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - Highlight: () => (/* binding */ Highlight), - assets: () => (/* binding */ assets), - contentTitle: () => (/* binding */ contentTitle), - "default": () => (/* binding */ MDXContent), - frontMatter: () => (/* binding */ frontMatter), - metadata: () => (/* reexport */ site_docs_tutorial_basics_markdown_features_mdx_18c_namespaceObject), - toc: () => (/* binding */ toc) -}); - -;// ./.docusaurus/docusaurus-plugin-content-docs/default/site-docs-tutorial-basics-markdown-features-mdx-18c.json -const site_docs_tutorial_basics_markdown_features_mdx_18c_namespaceObject = /*#__PURE__*/JSON.parse('{"id":"tutorial-basics/markdown-features","title":"Markdown Features","description":"Docusaurus supports Markdown and a few additional features.","source":"@site/docs/tutorial-basics/markdown-features.mdx","sourceDirName":"tutorial-basics","slug":"/tutorial-basics/markdown-features","permalink":"/docs/tutorial-basics/markdown-features","draft":false,"unlisted":false,"editUrl":"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/tutorial-basics/markdown-features.mdx","tags":[],"version":"current","sidebarPosition":4,"frontMatter":{"sidebar_position":4},"sidebar":"tutorialSidebar","previous":{"title":"Create a Blog Post","permalink":"/docs/tutorial-basics/create-a-blog-post"},"next":{"title":"Deploy your site","permalink":"/docs/tutorial-basics/deploy-your-site"}}'); -// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js -var jsx_runtime = __webpack_require__(4848); -// EXTERNAL MODULE: ../node_modules/@mdx-js/react/lib/index.js -var lib = __webpack_require__(3023); -;// ./docs/tutorial-basics/markdown-features.mdx - - -const frontMatter = { - sidebar_position: 4 -}; -const contentTitle = 'Markdown Features'; - -const assets = { - -}; - - - -const Highlight = ({children, color}) => (0,jsx_runtime.jsx)("span", { - style: { - backgroundColor: color, - borderRadius: '20px', - color: '#fff', - padding: '10px', - cursor: 'pointer' - }, - onClick: () => { - alert(`You clicked the color ${color} with label ${children}`); - }, - children: children -}); -const toc = [{ - "value": "Front Matter", - "id": "front-matter", - "level": 2 -}, { - "value": "Links", - "id": "links", - "level": 2 -}, { - "value": "Images", - "id": "images", - "level": 2 -}, { - "value": "Code Blocks", - "id": "code-blocks", - "level": 2 -}, { - "value": "Admonitions", - "id": "admonitions", - "level": 2 -}, { - "value": "MDX and React Components", - "id": "mdx-and-react-components", - "level": 2 -}]; -function _createMdxContent(props) { - const _components = { - a: "a", - admonition: "admonition", - code: "code", - h1: "h1", - h2: "h2", - header: "header", - img: "img", - p: "p", - pre: "pre", - strong: "strong", - ...(0,lib/* useMDXComponents */.R)(), - ...props.components - }; - return (0,jsx_runtime.jsxs)(jsx_runtime.Fragment, { - children: [(0,jsx_runtime.jsx)(_components.header, { - children: (0,jsx_runtime.jsx)(_components.h1, { - id: "markdown-features", - children: "Markdown Features" - }) - }), "\n", (0,jsx_runtime.jsxs)(_components.p, { - children: ["Docusaurus supports ", (0,jsx_runtime.jsx)(_components.strong, { - children: (0,jsx_runtime.jsx)(_components.a, { - href: "https://daringfireball.net/projects/markdown/syntax", - children: "Markdown" - }) - }), " and a few ", (0,jsx_runtime.jsx)(_components.strong, { - children: "additional features" - }), "."] - }), "\n", (0,jsx_runtime.jsx)(_components.h2, { - id: "front-matter", - children: "Front Matter" - }), "\n", (0,jsx_runtime.jsxs)(_components.p, { - children: ["Markdown documents have metadata at the top called ", (0,jsx_runtime.jsx)(_components.a, { - href: "https://jekyllrb.com/docs/front-matter/", - children: "Front Matter" - }), ":"] - }), "\n", (0,jsx_runtime.jsx)(_components.pre, { - children: (0,jsx_runtime.jsx)(_components.code, { - className: "language-text", - metastring: "title=\"my-doc.md\"", - children: "// highlight-start\n---\nid: my-doc-id\ntitle: My document title\ndescription: My document description\nslug: /my-custom-url\n---\n// highlight-end\n\n## Markdown heading\n\nMarkdown text with [links](./hello.md)\n" - }) - }), "\n", (0,jsx_runtime.jsx)(_components.h2, { - id: "links", - children: "Links" - }), "\n", (0,jsx_runtime.jsx)(_components.p, { - children: "Regular Markdown links are supported, using url paths or relative file paths." - }), "\n", (0,jsx_runtime.jsx)(_components.pre, { - children: (0,jsx_runtime.jsx)(_components.code, { - className: "language-md", - children: "Let's see how to [Create a page](/create-a-page).\n" - }) - }), "\n", (0,jsx_runtime.jsx)(_components.pre, { - children: (0,jsx_runtime.jsx)(_components.code, { - className: "language-md", - children: "Let's see how to [Create a page](./create-a-page.md).\n" - }) - }), "\n", (0,jsx_runtime.jsxs)(_components.p, { - children: [(0,jsx_runtime.jsx)(_components.strong, { - children: "Result:" - }), " Let's see how to ", (0,jsx_runtime.jsx)(_components.a, { - href: "/docs/tutorial-basics/create-a-page", - children: "Create a page" - }), "."] - }), "\n", (0,jsx_runtime.jsx)(_components.h2, { - id: "images", - children: "Images" - }), "\n", (0,jsx_runtime.jsx)(_components.p, { - children: "Regular Markdown images are supported." - }), "\n", (0,jsx_runtime.jsxs)(_components.p, { - children: ["You can use absolute paths to reference images in the static directory (", (0,jsx_runtime.jsx)(_components.code, { - children: "static/img/docusaurus.png" - }), "):"] - }), "\n", (0,jsx_runtime.jsx)(_components.pre, { - children: (0,jsx_runtime.jsx)(_components.code, { - className: "language-md", - children: "\n" - }) - }), "\n", (0,jsx_runtime.jsx)(_components.p, { - children: (0,jsx_runtime.jsx)(_components.img, { - alt: "Docusaurus logo", - src: (__webpack_require__(1394)/* ["default"] */ .A) + "", - width: "200", - height: "200" - }) - }), "\n", (0,jsx_runtime.jsx)(_components.p, { - children: "You can reference images relative to the current file as well. This is particularly useful to colocate images close to the Markdown files using them:" - }), "\n", (0,jsx_runtime.jsx)(_components.pre, { - children: (0,jsx_runtime.jsx)(_components.code, { - className: "language-md", - children: "\n" - }) - }), "\n", (0,jsx_runtime.jsx)(_components.h2, { - id: "code-blocks", - children: "Code Blocks" - }), "\n", (0,jsx_runtime.jsx)(_components.p, { - children: "Markdown code blocks are supported with Syntax highlighting." - }), "\n", (0,jsx_runtime.jsx)(_components.pre, { - children: (0,jsx_runtime.jsx)(_components.code, { - className: "language-md", - children: "```jsx title=\"src/components/HelloDocusaurus.js\"\nfunction HelloDocusaurus() {\n returnMy React page
\nThis is a React page
\nHello, Docusaurus!
;\n}\n```\n" - }) - }), "\n", (0,jsx_runtime.jsx)(_components.pre, { - children: (0,jsx_runtime.jsx)(_components.code, { - className: "language-jsx", - metastring: "title=\"src/components/HelloDocusaurus.js\"", - children: "function HelloDocusaurus() {\n returnHello, Docusaurus!
;\n}\n" - }) - }), "\n", (0,jsx_runtime.jsx)(_components.h2, { - id: "admonitions", - children: "Admonitions" - }), "\n", (0,jsx_runtime.jsx)(_components.p, { - children: "Docusaurus has a special syntax to create admonitions and callouts:" - }), "\n", (0,jsx_runtime.jsx)(_components.pre, { - children: (0,jsx_runtime.jsx)(_components.code, { - className: "language-md", - children: ":::tip[My tip]\n\nUse this awesome feature option\n\n:::\n\n:::danger[Take care]\n\nThis action is dangerous\n\n:::\n" - }) - }), "\n", (0,jsx_runtime.jsx)(_components.admonition, { - title: "My tip", - type: "tip", - children: (0,jsx_runtime.jsx)(_components.p, { - children: "Use this awesome feature option" - }) - }), "\n", (0,jsx_runtime.jsx)(_components.admonition, { - title: "Take care", - type: "danger", - children: (0,jsx_runtime.jsx)(_components.p, { - children: "This action is dangerous" - }) - }), "\n", (0,jsx_runtime.jsx)(_components.h2, { - id: "mdx-and-react-components", - children: "MDX and React Components" - }), "\n", (0,jsx_runtime.jsxs)(_components.p, { - children: [(0,jsx_runtime.jsx)(_components.a, { - href: "https://mdxjs.com/", - children: "MDX" - }), " can make your documentation more ", (0,jsx_runtime.jsx)(_components.strong, { - children: "interactive" - }), " and allows using any ", (0,jsx_runtime.jsx)(_components.strong, { - children: "React components inside Markdown" - }), ":"] - }), "\n", (0,jsx_runtime.jsx)(_components.pre, { - children: (0,jsx_runtime.jsx)(_components.code, { - className: "language-jsx", - children: "export const Highlight = ({children, color}) => (\n {\n alert(`You clicked the color ${color} with label ${children}`)\n }}>\n {children}\n \n);\n\nThis isDocusaurus green !\n\nThis isFacebook blue !\n" - }) - }), "\n", "\n", (0,jsx_runtime.jsxs)(_components.p, { - children: ["This is ", (0,jsx_runtime.jsx)(Highlight, { - color: "#25c2a0", - children: "Docusaurus green" - }), " !"] - }), "\n", (0,jsx_runtime.jsxs)(_components.p, { - children: ["This is ", (0,jsx_runtime.jsx)(Highlight, { - color: "#1877F2", - children: "Facebook blue" - }), " !"] - })] - }); -} -function MDXContent(props = {}) { - const {wrapper: MDXLayout} = { - ...(0,lib/* useMDXComponents */.R)(), - ...props.components - }; - return MDXLayout ? (0,jsx_runtime.jsx)(MDXLayout, { - ...props, - children: (0,jsx_runtime.jsx)(_createMdxContent, { - ...props - }) - }) : _createMdxContent(props); -} - - - -/***/ }), - -/***/ 6052: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - assets: () => (/* binding */ assets), - contentTitle: () => (/* binding */ contentTitle), - "default": () => (/* binding */ MDXContent), - frontMatter: () => (/* binding */ frontMatter), - metadata: () => (/* reexport */ site_docs_tutorial_extras_manage_docs_versions_md_dff_namespaceObject), - toc: () => (/* binding */ toc) -}); - -;// ./.docusaurus/docusaurus-plugin-content-docs/default/site-docs-tutorial-extras-manage-docs-versions-md-dff.json -const site_docs_tutorial_extras_manage_docs_versions_md_dff_namespaceObject = /*#__PURE__*/JSON.parse('{"id":"tutorial-extras/manage-docs-versions","title":"Manage Docs Versions","description":"Docusaurus can manage multiple versions of your docs.","source":"@site/docs/tutorial-extras/manage-docs-versions.md","sourceDirName":"tutorial-extras","slug":"/tutorial-extras/manage-docs-versions","permalink":"/docs/tutorial-extras/manage-docs-versions","draft":false,"unlisted":false,"editUrl":"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/tutorial-extras/manage-docs-versions.md","tags":[],"version":"current","sidebarPosition":1,"frontMatter":{"sidebar_position":1},"sidebar":"tutorialSidebar","previous":{"title":"Tutorial - Extras","permalink":"/docs/category/tutorial---extras"},"next":{"title":"Translate your site","permalink":"/docs/tutorial-extras/translate-your-site"}}'); -// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js -var jsx_runtime = __webpack_require__(4848); -// EXTERNAL MODULE: ../node_modules/@mdx-js/react/lib/index.js -var lib = __webpack_require__(3023); -;// ./docs/tutorial-extras/manage-docs-versions.md - - -const frontMatter = { - sidebar_position: 1 -}; -const contentTitle = 'Manage Docs Versions'; - -const assets = { - -}; - - - -const toc = [{ - "value": "Create a docs version", - "id": "create-a-docs-version", - "level": 2 -}, { - "value": "Add a Version Dropdown", - "id": "add-a-version-dropdown", - "level": 2 -}, { - "value": "Update an existing version", - "id": "update-an-existing-version", - "level": 2 -}]; -function _createMdxContent(props) { - const _components = { - code: "code", - h1: "h1", - h2: "h2", - header: "header", - img: "img", - li: "li", - p: "p", - pre: "pre", - strong: "strong", - ul: "ul", - ...(0,lib/* useMDXComponents */.R)(), - ...props.components - }; - return (0,jsx_runtime.jsxs)(jsx_runtime.Fragment, { - children: [(0,jsx_runtime.jsx)(_components.header, { - children: (0,jsx_runtime.jsx)(_components.h1, { - id: "manage-docs-versions", - children: "Manage Docs Versions" - }) - }), "\n", (0,jsx_runtime.jsx)(_components.p, { - children: "Docusaurus can manage multiple versions of your docs." - }), "\n", (0,jsx_runtime.jsx)(_components.h2, { - id: "create-a-docs-version", - children: "Create a docs version" - }), "\n", (0,jsx_runtime.jsx)(_components.p, { - children: "Release a version 1.0 of your project:" - }), "\n", (0,jsx_runtime.jsx)(_components.pre, { - children: (0,jsx_runtime.jsx)(_components.code, { - className: "language-bash", - children: "npm run docusaurus docs:version 1.0\n" - }) - }), "\n", (0,jsx_runtime.jsxs)(_components.p, { - children: ["The ", (0,jsx_runtime.jsx)(_components.code, { - children: "docs" - }), " folder is copied into ", (0,jsx_runtime.jsx)(_components.code, { - children: "versioned_docs/version-1.0" - }), " and ", (0,jsx_runtime.jsx)(_components.code, { - children: "versions.json" - }), " is created."] - }), "\n", (0,jsx_runtime.jsx)(_components.p, { - children: "Your docs now have 2 versions:" - }), "\n", (0,jsx_runtime.jsxs)(_components.ul, { - children: ["\n", (0,jsx_runtime.jsxs)(_components.li, { - children: [(0,jsx_runtime.jsx)(_components.code, { - children: "1.0" - }), " at ", (0,jsx_runtime.jsx)(_components.code, { - children: "http://localhost:3000/docs/" - }), " for the version 1.0 docs"] - }), "\n", (0,jsx_runtime.jsxs)(_components.li, { - children: [(0,jsx_runtime.jsx)(_components.code, { - children: "current" - }), " at ", (0,jsx_runtime.jsx)(_components.code, { - children: "http://localhost:3000/docs/next/" - }), " for the ", (0,jsx_runtime.jsx)(_components.strong, { - children: "upcoming, unreleased docs" - })] - }), "\n"] - }), "\n", (0,jsx_runtime.jsx)(_components.h2, { - id: "add-a-version-dropdown", - children: "Add a Version Dropdown" - }), "\n", (0,jsx_runtime.jsx)(_components.p, { - children: "To navigate seamlessly across versions, add a version dropdown." - }), "\n", (0,jsx_runtime.jsxs)(_components.p, { - children: ["Modify the ", (0,jsx_runtime.jsx)(_components.code, { - children: "docusaurus.config.js" - }), " file:"] - }), "\n", (0,jsx_runtime.jsx)(_components.pre, { - children: (0,jsx_runtime.jsx)(_components.code, { - className: "language-js", - metastring: "title=\"docusaurus.config.js\"", - children: "export default {\n themeConfig: {\n navbar: {\n items: [\n // highlight-start\n {\n type: 'docsVersionDropdown',\n },\n // highlight-end\n ],\n },\n },\n};\n" - }) - }), "\n", (0,jsx_runtime.jsx)(_components.p, { - children: "The docs version dropdown appears in your navbar:" - }), "\n", (0,jsx_runtime.jsx)(_components.p, { - children: (0,jsx_runtime.jsx)(_components.img, { - alt: "Docs Version Dropdown", - src: (__webpack_require__(1674)/* ["default"] */ .A) + "", - width: "370", - height: "302" - }) - }), "\n", (0,jsx_runtime.jsx)(_components.h2, { - id: "update-an-existing-version", - children: "Update an existing version" - }), "\n", (0,jsx_runtime.jsx)(_components.p, { - children: "It is possible to edit versioned docs in their respective folder:" - }), "\n", (0,jsx_runtime.jsxs)(_components.ul, { - children: ["\n", (0,jsx_runtime.jsxs)(_components.li, { - children: [(0,jsx_runtime.jsx)(_components.code, { - children: "versioned_docs/version-1.0/hello.md" - }), " updates ", (0,jsx_runtime.jsx)(_components.code, { - children: "http://localhost:3000/docs/hello" - })] - }), "\n", (0,jsx_runtime.jsxs)(_components.li, { - children: [(0,jsx_runtime.jsx)(_components.code, { - children: "docs/hello.md" - }), " updates ", (0,jsx_runtime.jsx)(_components.code, { - children: "http://localhost:3000/docs/next/hello" - })] - }), "\n"] - })] - }); -} -function MDXContent(props = {}) { - const {wrapper: MDXLayout} = { - ...(0,lib/* useMDXComponents */.R)(), - ...props.components - }; - return MDXLayout ? (0,jsx_runtime.jsx)(MDXLayout, { - ...props, - children: (0,jsx_runtime.jsx)(_createMdxContent, { - ...props - }) - }) : _createMdxContent(props); -} - - - -/***/ }), - -/***/ 9912: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - assets: () => (/* binding */ assets), - contentTitle: () => (/* binding */ contentTitle), - "default": () => (/* binding */ MDXContent), - frontMatter: () => (/* binding */ frontMatter), - metadata: () => (/* reexport */ site_docs_tutorial_extras_translate_your_site_md_e44_namespaceObject), - toc: () => (/* binding */ toc) -}); - -;// ./.docusaurus/docusaurus-plugin-content-docs/default/site-docs-tutorial-extras-translate-your-site-md-e44.json -const site_docs_tutorial_extras_translate_your_site_md_e44_namespaceObject = /*#__PURE__*/JSON.parse('{"id":"tutorial-extras/translate-your-site","title":"Translate your site","description":"Let\'s translate docs/intro.md to French.","source":"@site/docs/tutorial-extras/translate-your-site.md","sourceDirName":"tutorial-extras","slug":"/tutorial-extras/translate-your-site","permalink":"/docs/tutorial-extras/translate-your-site","draft":false,"unlisted":false,"editUrl":"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/tutorial-extras/translate-your-site.md","tags":[],"version":"current","sidebarPosition":2,"frontMatter":{"sidebar_position":2},"sidebar":"tutorialSidebar","previous":{"title":"Manage Docs Versions","permalink":"/docs/tutorial-extras/manage-docs-versions"}}'); -// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js -var jsx_runtime = __webpack_require__(4848); -// EXTERNAL MODULE: ../node_modules/@mdx-js/react/lib/index.js -var lib = __webpack_require__(3023); -;// ./docs/tutorial-extras/translate-your-site.md - - -const frontMatter = { - sidebar_position: 2 -}; -const contentTitle = 'Translate your site'; - -const assets = { - -}; - - - -const toc = [{ - "value": "Configure i18n", - "id": "configure-i18n", - "level": 2 -}, { - "value": "Translate a doc", - "id": "translate-a-doc", - "level": 2 -}, { - "value": "Start your localized site", - "id": "start-your-localized-site", - "level": 2 -}, { - "value": "Add a Locale Dropdown", - "id": "add-a-locale-dropdown", - "level": 2 -}, { - "value": "Build your localized site", - "id": "build-your-localized-site", - "level": 2 -}]; -function _createMdxContent(props) { - const _components = { - a: "a", - admonition: "admonition", - code: "code", - h1: "h1", - h2: "h2", - header: "header", - img: "img", - p: "p", - pre: "pre", - ...(0,lib/* useMDXComponents */.R)(), - ...props.components - }; - return (0,jsx_runtime.jsxs)(jsx_runtime.Fragment, { - children: [(0,jsx_runtime.jsx)(_components.header, { - children: (0,jsx_runtime.jsx)(_components.h1, { - id: "translate-your-site", - children: "Translate your site" - }) - }), "\n", (0,jsx_runtime.jsxs)(_components.p, { - children: ["Let's translate ", (0,jsx_runtime.jsx)(_components.code, { - children: "docs/intro.md" - }), " to French."] - }), "\n", (0,jsx_runtime.jsx)(_components.h2, { - id: "configure-i18n", - children: "Configure i18n" - }), "\n", (0,jsx_runtime.jsxs)(_components.p, { - children: ["Modify ", (0,jsx_runtime.jsx)(_components.code, { - children: "docusaurus.config.js" - }), " to add support for the ", (0,jsx_runtime.jsx)(_components.code, { - children: "fr" - }), " locale:"] - }), "\n", (0,jsx_runtime.jsx)(_components.pre, { - children: (0,jsx_runtime.jsx)(_components.code, { - className: "language-js", - metastring: "title=\"docusaurus.config.js\"", - children: "export default {\n i18n: {\n defaultLocale: 'en',\n locales: ['en', 'fr'],\n },\n};\n" - }) - }), "\n", (0,jsx_runtime.jsx)(_components.h2, { - id: "translate-a-doc", - children: "Translate a doc" - }), "\n", (0,jsx_runtime.jsxs)(_components.p, { - children: ["Copy the ", (0,jsx_runtime.jsx)(_components.code, { - children: "docs/intro.md" - }), " file to the ", (0,jsx_runtime.jsx)(_components.code, { - children: "i18n/fr" - }), " folder:"] - }), "\n", (0,jsx_runtime.jsx)(_components.pre, { - children: (0,jsx_runtime.jsx)(_components.code, { - className: "language-bash", - children: "mkdir -p i18n/fr/docusaurus-plugin-content-docs/current/\n\ncp docs/intro.md i18n/fr/docusaurus-plugin-content-docs/current/intro.md\n" - }) - }), "\n", (0,jsx_runtime.jsxs)(_components.p, { - children: ["Translate ", (0,jsx_runtime.jsx)(_components.code, { - children: "i18n/fr/docusaurus-plugin-content-docs/current/intro.md" - }), " in French."] - }), "\n", (0,jsx_runtime.jsx)(_components.h2, { - id: "start-your-localized-site", - children: "Start your localized site" - }), "\n", (0,jsx_runtime.jsx)(_components.p, { - children: "Start your site on the French locale:" - }), "\n", (0,jsx_runtime.jsx)(_components.pre, { - children: (0,jsx_runtime.jsx)(_components.code, { - className: "language-bash", - children: "npm run start -- --locale fr\n" - }) - }), "\n", (0,jsx_runtime.jsxs)(_components.p, { - children: ["Your localized site is accessible at ", (0,jsx_runtime.jsx)(_components.a, { - href: "http://localhost:3000/fr/", - children: "http://localhost:3000/fr/" - }), " and the ", (0,jsx_runtime.jsx)(_components.code, { - children: "Getting Started" - }), " page is translated."] - }), "\n", (0,jsx_runtime.jsx)(_components.admonition, { - type: "caution", - children: (0,jsx_runtime.jsx)(_components.p, { - children: "In development, you can only use one locale at a time." - }) - }), "\n", (0,jsx_runtime.jsx)(_components.h2, { - id: "add-a-locale-dropdown", - children: "Add a Locale Dropdown" - }), "\n", (0,jsx_runtime.jsx)(_components.p, { - children: "To navigate seamlessly across languages, add a locale dropdown." - }), "\n", (0,jsx_runtime.jsxs)(_components.p, { - children: ["Modify the ", (0,jsx_runtime.jsx)(_components.code, { - children: "docusaurus.config.js" - }), " file:"] - }), "\n", (0,jsx_runtime.jsx)(_components.pre, { - children: (0,jsx_runtime.jsx)(_components.code, { - className: "language-js", - metastring: "title=\"docusaurus.config.js\"", - children: "export default {\n themeConfig: {\n navbar: {\n items: [\n // highlight-start\n {\n type: 'localeDropdown',\n },\n // highlight-end\n ],\n },\n },\n};\n" - }) - }), "\n", (0,jsx_runtime.jsx)(_components.p, { - children: "The locale dropdown now appears in your navbar:" - }), "\n", (0,jsx_runtime.jsx)(_components.p, { - children: (0,jsx_runtime.jsx)(_components.img, { - alt: "Locale Dropdown", - src: (__webpack_require__(3989)/* ["default"] */ .A) + "", - width: "370", - height: "302" - }) - }), "\n", (0,jsx_runtime.jsx)(_components.h2, { - id: "build-your-localized-site", - children: "Build your localized site" - }), "\n", (0,jsx_runtime.jsx)(_components.p, { - children: "Build your site for a specific locale:" - }), "\n", (0,jsx_runtime.jsx)(_components.pre, { - children: (0,jsx_runtime.jsx)(_components.code, { - className: "language-bash", - children: "npm run build -- --locale fr\n" - }) - }), "\n", (0,jsx_runtime.jsx)(_components.p, { - children: "Or build your site to include all the locales at once:" - }), "\n", (0,jsx_runtime.jsx)(_components.pre, { - children: (0,jsx_runtime.jsx)(_components.code, { - className: "language-bash", - children: "npm run build\n" - }) - })] - }); -} -function MDXContent(props = {}) { - const {wrapper: MDXLayout} = { - ...(0,lib/* useMDXComponents */.R)(), - ...props.components - }; - return MDXLayout ? (0,jsx_runtime.jsx)(MDXLayout, { - ...props, - children: (0,jsx_runtime.jsx)(_createMdxContent, { - ...props - }) - }) : _createMdxContent(props); -} - - - -/***/ }), - -/***/ 4812: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ assets: () => (/* binding */ assets), -/* harmony export */ contentTitle: () => (/* binding */ contentTitle), -/* harmony export */ "default": () => (/* binding */ MDXContent), -/* harmony export */ frontMatter: () => (/* binding */ frontMatter), -/* harmony export */ metadata: () => (/* reexport default export from named module */ _site_docusaurus_docusaurus_plugin_content_blog_default_site_blog_2019_05_28_first_blog_post_md_e27_json__WEBPACK_IMPORTED_MODULE_0__), -/* harmony export */ toc: () => (/* binding */ toc) -/* harmony export */ }); -/* harmony import */ var _site_docusaurus_docusaurus_plugin_content_blog_default_site_blog_2019_05_28_first_blog_post_md_e27_json__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2421); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4848); -/* harmony import */ var _mdx_js_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3023); - - -const frontMatter = { - slug: 'first-blog-post', - title: 'First Blog Post', - authors: [ - 'slorber', - 'yangshun' - ], - tags: [ - 'hola', - 'docusaurus' - ] -}; -const contentTitle = undefined; - -const assets = { -"authorsImageUrls": [undefined, undefined], -}; - - - -const toc = []; -function _createMdxContent(props) { - const _components = { - p: "p", - ...(0,_mdx_js_react__WEBPACK_IMPORTED_MODULE_2__/* .useMDXComponents */ .R)(), - ...props.components - }; - return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment, { - children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p, { - children: "Lorem ipsum dolor sit amet..." - }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p, { - children: "...consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet" - })] - }); -} -function MDXContent(props = {}) { - const {wrapper: MDXLayout} = { - ...(0,_mdx_js_react__WEBPACK_IMPORTED_MODULE_2__/* .useMDXComponents */ .R)(), - ...props.components - }; - return MDXLayout ? (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout, { - ...props, - children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent, { - ...props - }) - }) : _createMdxContent(props); -} - - - -/***/ }), - -/***/ 1576: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ assets: () => (/* binding */ assets), -/* harmony export */ contentTitle: () => (/* binding */ contentTitle), -/* harmony export */ "default": () => (/* binding */ MDXContent), -/* harmony export */ frontMatter: () => (/* binding */ frontMatter), -/* harmony export */ metadata: () => (/* reexport default export from named module */ _site_docusaurus_docusaurus_plugin_content_blog_default_site_blog_2019_05_28_first_blog_post_md_e27_json__WEBPACK_IMPORTED_MODULE_0__), -/* harmony export */ toc: () => (/* binding */ toc) -/* harmony export */ }); -/* harmony import */ var _site_docusaurus_docusaurus_plugin_content_blog_default_site_blog_2019_05_28_first_blog_post_md_e27_json__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2421); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4848); -/* harmony import */ var _mdx_js_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3023); - - -const frontMatter = { - slug: 'first-blog-post', - title: 'First Blog Post', - authors: [ - 'slorber', - 'yangshun' - ], - tags: [ - 'hola', - 'docusaurus' - ] -}; -const contentTitle = undefined; - -const assets = { -"authorsImageUrls": [undefined, undefined], -}; - - - -const toc = []; -function _createMdxContent(props) { - const _components = { - p: "p", - ...(0,_mdx_js_react__WEBPACK_IMPORTED_MODULE_2__/* .useMDXComponents */ .R)(), - ...props.components - }; - return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p, { - children: "Lorem ipsum dolor sit amet..." - }); -} -function MDXContent(props = {}) { - const {wrapper: MDXLayout} = { - ...(0,_mdx_js_react__WEBPACK_IMPORTED_MODULE_2__/* .useMDXComponents */ .R)(), - ...props.components - }; - return MDXLayout ? (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout, { - ...props, - children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent, { - ...props - }) - }) : _createMdxContent(props); -} - - - -/***/ }), - -/***/ 9655: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ assets: () => (/* binding */ assets), -/* harmony export */ contentTitle: () => (/* binding */ contentTitle), -/* harmony export */ "default": () => (/* binding */ MDXContent), -/* harmony export */ frontMatter: () => (/* binding */ frontMatter), -/* harmony export */ metadata: () => (/* reexport default export from named module */ _site_docusaurus_docusaurus_plugin_content_blog_default_site_blog_2019_05_29_long_blog_post_md_736_json__WEBPACK_IMPORTED_MODULE_0__), -/* harmony export */ toc: () => (/* binding */ toc) -/* harmony export */ }); -/* harmony import */ var _site_docusaurus_docusaurus_plugin_content_blog_default_site_blog_2019_05_29_long_blog_post_md_736_json__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5802); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4848); -/* harmony import */ var _mdx_js_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3023); - - -const frontMatter = { - slug: 'long-blog-post', - title: 'Long Blog Post', - authors: 'yangshun', - tags: [ - 'hello', - 'docusaurus' - ] -}; -const contentTitle = undefined; - -const assets = { -"authorsImageUrls": [undefined], -}; - - - -const toc = []; -function _createMdxContent(props) { - const _components = { - code: "code", - p: "p", - ...(0,_mdx_js_react__WEBPACK_IMPORTED_MODULE_2__/* .useMDXComponents */ .R)(), - ...props.components - }; - return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment, { - children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p, { - children: "This is the summary of a very long blog post," - }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p, { - children: ["Use a ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code, { - children: "" - }), " comment to limit blog post size in the list view."] - }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p, { - children: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet" - }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p, { - children: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet" - }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p, { - children: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet" - }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p, { - children: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet" - }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p, { - children: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet" - }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p, { - children: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet" - }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p, { - children: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet" - }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p, { - children: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet" - }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p, { - children: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet" - }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p, { - children: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet" - }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p, { - children: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet" - }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p, { - children: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet" - }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p, { - children: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet" - }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p, { - children: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet" - }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p, { - children: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet" - }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p, { - children: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet" - })] - }); -} -function MDXContent(props = {}) { - const {wrapper: MDXLayout} = { - ...(0,_mdx_js_react__WEBPACK_IMPORTED_MODULE_2__/* .useMDXComponents */ .R)(), - ...props.components - }; - return MDXLayout ? (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout, { - ...props, - children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent, { - ...props - }) - }) : _createMdxContent(props); -} - - - -/***/ }), - -/***/ 2185: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ assets: () => (/* binding */ assets), -/* harmony export */ contentTitle: () => (/* binding */ contentTitle), -/* harmony export */ "default": () => (/* binding */ MDXContent), -/* harmony export */ frontMatter: () => (/* binding */ frontMatter), -/* harmony export */ metadata: () => (/* reexport default export from named module */ _site_docusaurus_docusaurus_plugin_content_blog_default_site_blog_2019_05_29_long_blog_post_md_736_json__WEBPACK_IMPORTED_MODULE_0__), -/* harmony export */ toc: () => (/* binding */ toc) -/* harmony export */ }); -/* harmony import */ var _site_docusaurus_docusaurus_plugin_content_blog_default_site_blog_2019_05_29_long_blog_post_md_736_json__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5802); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4848); -/* harmony import */ var _mdx_js_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3023); - - -const frontMatter = { - slug: 'long-blog-post', - title: 'Long Blog Post', - authors: 'yangshun', - tags: [ - 'hello', - 'docusaurus' - ] -}; -const contentTitle = undefined; - -const assets = { -"authorsImageUrls": [undefined], -}; - - - -const toc = []; -function _createMdxContent(props) { - const _components = { - code: "code", - p: "p", - ...(0,_mdx_js_react__WEBPACK_IMPORTED_MODULE_2__/* .useMDXComponents */ .R)(), - ...props.components - }; - return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment, { - children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p, { - children: "This is the summary of a very long blog post," - }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p, { - children: ["Use a ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code, { - children: "" - }), " comment to limit blog post size in the list view."] - })] - }); -} -function MDXContent(props = {}) { - const {wrapper: MDXLayout} = { - ...(0,_mdx_js_react__WEBPACK_IMPORTED_MODULE_2__/* .useMDXComponents */ .R)(), - ...props.components - }; - return MDXLayout ? (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout, { - ...props, - children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent, { - ...props - }) - }) : _createMdxContent(props); -} - - - -/***/ }), - -/***/ 4986: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ assets: () => (/* binding */ assets), -/* harmony export */ contentTitle: () => (/* binding */ contentTitle), -/* harmony export */ "default": () => (/* binding */ MDXContent), -/* harmony export */ frontMatter: () => (/* binding */ frontMatter), -/* harmony export */ metadata: () => (/* reexport default export from named module */ _site_docusaurus_docusaurus_plugin_content_blog_default_site_blog_2021_08_01_mdx_blog_post_mdx_593_json__WEBPACK_IMPORTED_MODULE_0__), -/* harmony export */ toc: () => (/* binding */ toc) -/* harmony export */ }); -/* harmony import */ var _site_docusaurus_docusaurus_plugin_content_blog_default_site_blog_2021_08_01_mdx_blog_post_mdx_593_json__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1632); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4848); -/* harmony import */ var _mdx_js_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3023); - - -const frontMatter = { - slug: 'mdx-blog-post', - title: 'MDX Blog Post', - authors: [ - 'slorber' - ], - tags: [ - 'docusaurus' - ] -}; -const contentTitle = undefined; - -const assets = { -"authorsImageUrls": [undefined], -}; - -/*truncate*/ - - -const toc = []; -function _createMdxContent(props) { - const _components = { - a: "a", - admonition: "admonition", - code: "code", - p: "p", - pre: "pre", - ...(0,_mdx_js_react__WEBPACK_IMPORTED_MODULE_2__/* .useMDXComponents */ .R)(), - ...props.components - }; - return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment, { - children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p, { - children: ["Blog posts support ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a, { - href: "https://docusaurus.io/docs/markdown-features", - children: "Docusaurus Markdown features" - }), ", such as ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a, { - href: "https://mdxjs.com/", - children: "MDX" - }), "."] - }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.admonition, { - type: "tip", - children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p, { - children: "Use the power of React to create interactive blog posts." - }) - }), "\n", "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p, { - children: "For example, use JSX to create an interactive button:" - }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre, { - children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code, { - className: "language-js", - children: "\n" - }) - }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("button", { - onClick: () => alert('button clicked!'), - children: "Click me!" - })] - }); -} -function MDXContent(props = {}) { - const {wrapper: MDXLayout} = { - ...(0,_mdx_js_react__WEBPACK_IMPORTED_MODULE_2__/* .useMDXComponents */ .R)(), - ...props.components - }; - return MDXLayout ? (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout, { - ...props, - children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent, { - ...props - }) - }) : _createMdxContent(props); -} - - - -/***/ }), - -/***/ 7934: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ assets: () => (/* binding */ assets), -/* harmony export */ contentTitle: () => (/* binding */ contentTitle), -/* harmony export */ "default": () => (/* binding */ MDXContent), -/* harmony export */ frontMatter: () => (/* binding */ frontMatter), -/* harmony export */ metadata: () => (/* reexport default export from named module */ _site_docusaurus_docusaurus_plugin_content_blog_default_site_blog_2021_08_01_mdx_blog_post_mdx_593_json__WEBPACK_IMPORTED_MODULE_0__), -/* harmony export */ toc: () => (/* binding */ toc) -/* harmony export */ }); -/* harmony import */ var _site_docusaurus_docusaurus_plugin_content_blog_default_site_blog_2021_08_01_mdx_blog_post_mdx_593_json__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1632); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4848); -/* harmony import */ var _mdx_js_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3023); - - -const frontMatter = { - slug: 'mdx-blog-post', - title: 'MDX Blog Post', - authors: [ - 'slorber' - ], - tags: [ - 'docusaurus' - ] -}; -const contentTitle = undefined; - -const assets = { -"authorsImageUrls": [undefined], -}; - - - -const toc = []; -function _createMdxContent(props) { - const _components = { - a: "a", - admonition: "admonition", - p: "p", - ...(0,_mdx_js_react__WEBPACK_IMPORTED_MODULE_2__/* .useMDXComponents */ .R)(), - ...props.components - }; - return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment, { - children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p, { - children: ["Blog posts support ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a, { - href: "https://docusaurus.io/docs/markdown-features", - children: "Docusaurus Markdown features" - }), ", such as ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a, { - href: "https://mdxjs.com/", - children: "MDX" - }), "."] - }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.admonition, { - type: "tip", - children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p, { - children: "Use the power of React to create interactive blog posts." - }) - })] - }); -} -function MDXContent(props = {}) { - const {wrapper: MDXLayout} = { - ...(0,_mdx_js_react__WEBPACK_IMPORTED_MODULE_2__/* .useMDXComponents */ .R)(), - ...props.components - }; - return MDXLayout ? (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout, { - ...props, - children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent, { - ...props - }) - }) : _createMdxContent(props); -} - - - -/***/ }), - -/***/ 8297: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ assets: () => (/* binding */ assets), -/* harmony export */ contentTitle: () => (/* binding */ contentTitle), -/* harmony export */ "default": () => (/* binding */ MDXContent), -/* harmony export */ frontMatter: () => (/* binding */ frontMatter), -/* harmony export */ metadata: () => (/* reexport default export from named module */ _site_docusaurus_docusaurus_plugin_content_blog_default_site_blog_2021_08_26_welcome_index_md_d9f_json__WEBPACK_IMPORTED_MODULE_0__), -/* harmony export */ toc: () => (/* binding */ toc) -/* harmony export */ }); -/* harmony import */ var _site_docusaurus_docusaurus_plugin_content_blog_default_site_blog_2021_08_26_welcome_index_md_d9f_json__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8811); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4848); -/* harmony import */ var _mdx_js_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3023); - - -const frontMatter = { - slug: 'welcome', - title: 'Welcome', - authors: [ - 'slorber', - 'yangshun' - ], - tags: [ - 'facebook', - 'hello', - 'docusaurus' - ] -}; -const contentTitle = undefined; - -const assets = { -"authorsImageUrls": [undefined, undefined], -}; - - - -const toc = []; -function _createMdxContent(props) { - const _components = { - a: "a", - code: "code", - img: "img", - li: "li", - p: "p", - strong: "strong", - ul: "ul", - ...(0,_mdx_js_react__WEBPACK_IMPORTED_MODULE_2__/* .useMDXComponents */ .R)(), - ...props.components - }; - return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment, { - children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p, { - children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a, { - href: "https://docusaurus.io/docs/blog", - children: "Docusaurus blogging features" - }), " are powered by the ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a, { - href: "https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-content-blog", - children: "blog plugin" - }), "."] - }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p, { - children: "Here are a few tips you might find useful." - }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p, { - children: ["Simply add Markdown files (or folders) to the ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code, { - children: "blog" - }), " directory."] - }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p, { - children: ["Regular blog authors can be added to ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code, { - children: "authors.yml" - }), "."] - }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p, { - children: "The blog post date can be extracted from filenames, such as:" - }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.ul, { - children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.li, { - children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code, { - children: "2019-05-30-welcome.md" - }) - }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.li, { - children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code, { - children: "2019-05-30-welcome/index.md" - }) - }), "\n"] - }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p, { - children: "A blog post folder can be convenient to co-locate blog post images:" - }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p, { - children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.img, { - alt: "Docusaurus Plushie", - src: (__webpack_require__(9982)/* ["default"] */ .A) + "", - width: "1500", - height: "500" - }) - }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p, { - children: "The blog supports tags as well!" - }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p, { - children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.strong, { - children: "And if you don't want a blog" - }), ": just delete this directory, and use ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code, { - children: "blog: false" - }), " in your Docusaurus config."] - })] - }); -} -function MDXContent(props = {}) { - const {wrapper: MDXLayout} = { - ...(0,_mdx_js_react__WEBPACK_IMPORTED_MODULE_2__/* .useMDXComponents */ .R)(), - ...props.components - }; - return MDXLayout ? (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout, { - ...props, - children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent, { - ...props - }) - }) : _createMdxContent(props); -} - - - -/***/ }), - -/***/ 2219: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ assets: () => (/* binding */ assets), -/* harmony export */ contentTitle: () => (/* binding */ contentTitle), -/* harmony export */ "default": () => (/* binding */ MDXContent), -/* harmony export */ frontMatter: () => (/* binding */ frontMatter), -/* harmony export */ metadata: () => (/* reexport default export from named module */ _site_docusaurus_docusaurus_plugin_content_blog_default_site_blog_2021_08_26_welcome_index_md_d9f_json__WEBPACK_IMPORTED_MODULE_0__), -/* harmony export */ toc: () => (/* binding */ toc) -/* harmony export */ }); -/* harmony import */ var _site_docusaurus_docusaurus_plugin_content_blog_default_site_blog_2021_08_26_welcome_index_md_d9f_json__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8811); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4848); -/* harmony import */ var _mdx_js_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3023); - - -const frontMatter = { - slug: 'welcome', - title: 'Welcome', - authors: [ - 'slorber', - 'yangshun' - ], - tags: [ - 'facebook', - 'hello', - 'docusaurus' - ] -}; -const contentTitle = undefined; - -const assets = { -"authorsImageUrls": [undefined, undefined], -}; - - - -const toc = []; -function _createMdxContent(props) { - const _components = { - a: "a", - p: "p", - ...(0,_mdx_js_react__WEBPACK_IMPORTED_MODULE_2__/* .useMDXComponents */ .R)(), - ...props.components - }; - return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment, { - children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p, { - children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a, { - href: "https://docusaurus.io/docs/blog", - children: "Docusaurus blogging features" - }), " are powered by the ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a, { - href: "https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-content-blog", - children: "blog plugin" - }), "."] - }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p, { - children: "Here are a few tips you might find useful." - })] - }); -} -function MDXContent(props = {}) { - const {wrapper: MDXLayout} = { - ...(0,_mdx_js_react__WEBPACK_IMPORTED_MODULE_2__/* .useMDXComponents */ .R)(), - ...props.components - }; - return MDXLayout ? (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout, { - ...props, - children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent, { - ...props - }) - }) : _createMdxContent(props); -} - - - -/***/ }), - -/***/ 6845: -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -/** - * @license React - * react-dom-server-legacy.node.production.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -/* - - - JS Implementation of MurmurHash3 (r136) (as of May 20, 2011) - - Copyright (c) 2011 Gary Court - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in - all copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE. -*/ - -var React = __webpack_require__(6540), - ReactDOM = __webpack_require__(961), - REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), - REACT_PORTAL_TYPE = Symbol.for("react.portal"), - REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), - REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), - REACT_PROFILER_TYPE = Symbol.for("react.profiler"), - REACT_PROVIDER_TYPE = Symbol.for("react.provider"), - REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), - REACT_CONTEXT_TYPE = Symbol.for("react.context"), - REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), - REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), - REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), - REACT_MEMO_TYPE = Symbol.for("react.memo"), - REACT_LAZY_TYPE = Symbol.for("react.lazy"), - REACT_SCOPE_TYPE = Symbol.for("react.scope"), - REACT_DEBUG_TRACING_MODE_TYPE = Symbol.for("react.debug_trace_mode"), - REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), - REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"), - REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"), - MAYBE_ITERATOR_SYMBOL = Symbol.iterator, - isArrayImpl = Array.isArray; -function murmurhash3_32_gc(key, seed) { - var remainder = key.length & 3; - var bytes = key.length - remainder; - var h1 = seed; - for (seed = 0; seed < bytes; ) { - var k1 = - (key.charCodeAt(seed) & 255) | - ((key.charCodeAt(++seed) & 255) << 8) | - ((key.charCodeAt(++seed) & 255) << 16) | - ((key.charCodeAt(++seed) & 255) << 24); - ++seed; - k1 = - (3432918353 * (k1 & 65535) + - (((3432918353 * (k1 >>> 16)) & 65535) << 16)) & - 4294967295; - k1 = (k1 << 15) | (k1 >>> 17); - k1 = - (461845907 * (k1 & 65535) + (((461845907 * (k1 >>> 16)) & 65535) << 16)) & - 4294967295; - h1 ^= k1; - h1 = (h1 << 13) | (h1 >>> 19); - h1 = (5 * (h1 & 65535) + (((5 * (h1 >>> 16)) & 65535) << 16)) & 4294967295; - h1 = (h1 & 65535) + 27492 + ((((h1 >>> 16) + 58964) & 65535) << 16); - } - k1 = 0; - switch (remainder) { - case 3: - k1 ^= (key.charCodeAt(seed + 2) & 255) << 16; - case 2: - k1 ^= (key.charCodeAt(seed + 1) & 255) << 8; - case 1: - (k1 ^= key.charCodeAt(seed) & 255), - (k1 = - (3432918353 * (k1 & 65535) + - (((3432918353 * (k1 >>> 16)) & 65535) << 16)) & - 4294967295), - (k1 = (k1 << 15) | (k1 >>> 17)), - (h1 ^= - (461845907 * (k1 & 65535) + - (((461845907 * (k1 >>> 16)) & 65535) << 16)) & - 4294967295); - } - h1 ^= key.length; - h1 ^= h1 >>> 16; - h1 = - (2246822507 * (h1 & 65535) + (((2246822507 * (h1 >>> 16)) & 65535) << 16)) & - 4294967295; - h1 ^= h1 >>> 13; - h1 = - (3266489909 * (h1 & 65535) + (((3266489909 * (h1 >>> 16)) & 65535) << 16)) & - 4294967295; - return (h1 ^ (h1 >>> 16)) >>> 0; -} -var assign = Object.assign, - hasOwnProperty = Object.prototype.hasOwnProperty, - VALID_ATTRIBUTE_NAME_REGEX = RegExp( - "^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$" - ), - illegalAttributeNameCache = {}, - validatedAttributeNameCache = {}; -function isAttributeNameSafe(attributeName) { - if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) - return !0; - if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) return !1; - if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) - return (validatedAttributeNameCache[attributeName] = !0); - illegalAttributeNameCache[attributeName] = !0; - return !1; -} -var unitlessNumbers = new Set( - "animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split( - " " - ) - ), - aliases = new Map([ - ["acceptCharset", "accept-charset"], - ["htmlFor", "for"], - ["httpEquiv", "http-equiv"], - ["crossOrigin", "crossorigin"], - ["accentHeight", "accent-height"], - ["alignmentBaseline", "alignment-baseline"], - ["arabicForm", "arabic-form"], - ["baselineShift", "baseline-shift"], - ["capHeight", "cap-height"], - ["clipPath", "clip-path"], - ["clipRule", "clip-rule"], - ["colorInterpolation", "color-interpolation"], - ["colorInterpolationFilters", "color-interpolation-filters"], - ["colorProfile", "color-profile"], - ["colorRendering", "color-rendering"], - ["dominantBaseline", "dominant-baseline"], - ["enableBackground", "enable-background"], - ["fillOpacity", "fill-opacity"], - ["fillRule", "fill-rule"], - ["floodColor", "flood-color"], - ["floodOpacity", "flood-opacity"], - ["fontFamily", "font-family"], - ["fontSize", "font-size"], - ["fontSizeAdjust", "font-size-adjust"], - ["fontStretch", "font-stretch"], - ["fontStyle", "font-style"], - ["fontVariant", "font-variant"], - ["fontWeight", "font-weight"], - ["glyphName", "glyph-name"], - ["glyphOrientationHorizontal", "glyph-orientation-horizontal"], - ["glyphOrientationVertical", "glyph-orientation-vertical"], - ["horizAdvX", "horiz-adv-x"], - ["horizOriginX", "horiz-origin-x"], - ["imageRendering", "image-rendering"], - ["letterSpacing", "letter-spacing"], - ["lightingColor", "lighting-color"], - ["markerEnd", "marker-end"], - ["markerMid", "marker-mid"], - ["markerStart", "marker-start"], - ["overlinePosition", "overline-position"], - ["overlineThickness", "overline-thickness"], - ["paintOrder", "paint-order"], - ["panose-1", "panose-1"], - ["pointerEvents", "pointer-events"], - ["renderingIntent", "rendering-intent"], - ["shapeRendering", "shape-rendering"], - ["stopColor", "stop-color"], - ["stopOpacity", "stop-opacity"], - ["strikethroughPosition", "strikethrough-position"], - ["strikethroughThickness", "strikethrough-thickness"], - ["strokeDasharray", "stroke-dasharray"], - ["strokeDashoffset", "stroke-dashoffset"], - ["strokeLinecap", "stroke-linecap"], - ["strokeLinejoin", "stroke-linejoin"], - ["strokeMiterlimit", "stroke-miterlimit"], - ["strokeOpacity", "stroke-opacity"], - ["strokeWidth", "stroke-width"], - ["textAnchor", "text-anchor"], - ["textDecoration", "text-decoration"], - ["textRendering", "text-rendering"], - ["transformOrigin", "transform-origin"], - ["underlinePosition", "underline-position"], - ["underlineThickness", "underline-thickness"], - ["unicodeBidi", "unicode-bidi"], - ["unicodeRange", "unicode-range"], - ["unitsPerEm", "units-per-em"], - ["vAlphabetic", "v-alphabetic"], - ["vHanging", "v-hanging"], - ["vIdeographic", "v-ideographic"], - ["vMathematical", "v-mathematical"], - ["vectorEffect", "vector-effect"], - ["vertAdvY", "vert-adv-y"], - ["vertOriginX", "vert-origin-x"], - ["vertOriginY", "vert-origin-y"], - ["wordSpacing", "word-spacing"], - ["writingMode", "writing-mode"], - ["xmlnsXlink", "xmlns:xlink"], - ["xHeight", "x-height"] - ]), - matchHtmlRegExp = /["'&<>]/; -function escapeTextForBrowser(text) { - if ( - "boolean" === typeof text || - "number" === typeof text || - "bigint" === typeof text - ) - return "" + text; - text = "" + text; - var match = matchHtmlRegExp.exec(text); - if (match) { - var html = "", - index, - lastIndex = 0; - for (index = match.index; index < text.length; index++) { - switch (text.charCodeAt(index)) { - case 34: - match = """; - break; - case 38: - match = "&"; - break; - case 39: - match = "'"; - break; - case 60: - match = "<"; - break; - case 62: - match = ">"; - break; - default: - continue; - } - lastIndex !== index && (html += text.slice(lastIndex, index)); - lastIndex = index + 1; - html += match; - } - text = lastIndex !== index ? html + text.slice(lastIndex, index) : html; - } - return text; -} -var uppercasePattern = /([A-Z])/g, - msPattern = /^ms-/, - isJavaScriptProtocol = - /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i; -function sanitizeURL(url) { - return isJavaScriptProtocol.test("" + url) - ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')" - : url; -} -var ReactSharedInternals = - React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, - ReactDOMSharedInternals = - ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, - sharedNotPendingObject = { - pending: !1, - data: null, - method: null, - action: null - }, - previousDispatcher = ReactDOMSharedInternals.d; -ReactDOMSharedInternals.d = { - f: previousDispatcher.f, - r: previousDispatcher.r, - D: prefetchDNS, - C: preconnect, - L: preload, - m: preloadModule, - X: preinitScript, - S: preinitStyle, - M: preinitModuleScript -}; -var PRELOAD_NO_CREDS = [], - scriptRegex = /(<\/|<)(s)(cript)/gi; -function scriptReplacer(match, prefix, s, suffix) { - return "" + prefix + ("s" === s ? "\\u0073" : "\\u0053") + suffix; -} -function createResumableState( - identifierPrefix, - externalRuntimeConfig, - bootstrapScriptContent, - bootstrapScripts, - bootstrapModules -) { - return { - idPrefix: void 0 === identifierPrefix ? "" : identifierPrefix, - nextFormID: 0, - streamingFormat: 0, - bootstrapScriptContent: bootstrapScriptContent, - bootstrapScripts: bootstrapScripts, - bootstrapModules: bootstrapModules, - instructions: 0, - hasBody: !1, - hasHtml: !1, - unknownResources: {}, - dnsResources: {}, - connectResources: { default: {}, anonymous: {}, credentials: {} }, - imageResources: {}, - styleResources: {}, - scriptResources: {}, - moduleUnknownResources: {}, - moduleScriptResources: {} - }; -} -function createFormatContext(insertionMode, selectedValue, tagScope) { - return { - insertionMode: insertionMode, - selectedValue: selectedValue, - tagScope: tagScope - }; -} -function getChildFormatContext(parentContext, type, props) { - switch (type) { - case "noscript": - return createFormatContext(2, null, parentContext.tagScope | 1); - case "select": - return createFormatContext( - 2, - null != props.value ? props.value : props.defaultValue, - parentContext.tagScope - ); - case "svg": - return createFormatContext(3, null, parentContext.tagScope); - case "picture": - return createFormatContext(2, null, parentContext.tagScope | 2); - case "math": - return createFormatContext(4, null, parentContext.tagScope); - case "foreignObject": - return createFormatContext(2, null, parentContext.tagScope); - case "table": - return createFormatContext(5, null, parentContext.tagScope); - case "thead": - case "tbody": - case "tfoot": - return createFormatContext(6, null, parentContext.tagScope); - case "colgroup": - return createFormatContext(8, null, parentContext.tagScope); - case "tr": - return createFormatContext(7, null, parentContext.tagScope); - } - return 5 <= parentContext.insertionMode - ? createFormatContext(2, null, parentContext.tagScope) - : 0 === parentContext.insertionMode - ? "html" === type - ? createFormatContext(1, null, parentContext.tagScope) - : createFormatContext(2, null, parentContext.tagScope) - : 1 === parentContext.insertionMode - ? createFormatContext(2, null, parentContext.tagScope) - : parentContext; -} -var styleNameCache = new Map(); -function pushStyleAttribute(target, style) { - if ("object" !== typeof style) - throw Error( - "The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX." - ); - var isFirst = !0, - styleName; - for (styleName in style) - if (hasOwnProperty.call(style, styleName)) { - var styleValue = style[styleName]; - if ( - null != styleValue && - "boolean" !== typeof styleValue && - "" !== styleValue - ) { - if (0 === styleName.indexOf("--")) { - var nameChunk = escapeTextForBrowser(styleName); - styleValue = escapeTextForBrowser(("" + styleValue).trim()); - } else - (nameChunk = styleNameCache.get(styleName)), - void 0 === nameChunk && - ((nameChunk = escapeTextForBrowser( - styleName - .replace(uppercasePattern, "-$1") - .toLowerCase() - .replace(msPattern, "-ms-") - )), - styleNameCache.set(styleName, nameChunk)), - (styleValue = - "number" === typeof styleValue - ? 0 === styleValue || unitlessNumbers.has(styleName) - ? "" + styleValue - : styleValue + "px" - : escapeTextForBrowser(("" + styleValue).trim())); - isFirst - ? ((isFirst = !1), - target.push(' style="', nameChunk, ":", styleValue)) - : target.push(";", nameChunk, ":", styleValue); - } - } - isFirst || target.push('"'); -} -function pushBooleanAttribute(target, name, value) { - value && - "function" !== typeof value && - "symbol" !== typeof value && - target.push(" ", name, '=""'); -} -function pushStringAttribute(target, name, value) { - "function" !== typeof value && - "symbol" !== typeof value && - "boolean" !== typeof value && - target.push(" ", name, '="', escapeTextForBrowser(value), '"'); -} -var actionJavaScriptURL = escapeTextForBrowser( - "javascript:throw new Error('React form unexpectedly submitted.')" -); -function pushAdditionalFormField(value, key) { - this.push('"); -} -function validateAdditionalFormField(value) { - if ("string" !== typeof value) - throw Error( - "File/Blob fields are not yet supported in progressive forms. Will fallback to client hydration." - ); -} -function getCustomFormFields(resumableState, formAction) { - if ("function" === typeof formAction.$$FORM_ACTION) { - var id = resumableState.nextFormID++; - resumableState = resumableState.idPrefix + id; - try { - var customFields = formAction.$$FORM_ACTION(resumableState); - if (customFields) { - var formData = customFields.data; - null != formData && formData.forEach(validateAdditionalFormField); - } - return customFields; - } catch (x) { - if ("object" === typeof x && null !== x && "function" === typeof x.then) - throw x; - } - } - return null; -} -function pushFormActionAttribute( - target, - resumableState, - renderState, - formAction, - formEncType, - formMethod, - formTarget, - name -) { - var formData = null; - if ("function" === typeof formAction) { - var customFields = getCustomFormFields(resumableState, formAction); - null !== customFields - ? ((name = customFields.name), - (formAction = customFields.action || ""), - (formEncType = customFields.encType), - (formMethod = customFields.method), - (formTarget = customFields.target), - (formData = customFields.data)) - : (target.push(" ", "formAction", '="', actionJavaScriptURL, '"'), - (formTarget = formMethod = formEncType = formAction = name = null), - injectFormReplayingRuntime(resumableState, renderState)); - } - null != name && pushAttribute(target, "name", name); - null != formAction && pushAttribute(target, "formAction", formAction); - null != formEncType && pushAttribute(target, "formEncType", formEncType); - null != formMethod && pushAttribute(target, "formMethod", formMethod); - null != formTarget && pushAttribute(target, "formTarget", formTarget); - return formData; -} -function pushAttribute(target, name, value) { - switch (name) { - case "className": - pushStringAttribute(target, "class", value); - break; - case "tabIndex": - pushStringAttribute(target, "tabindex", value); - break; - case "dir": - case "role": - case "viewBox": - case "width": - case "height": - pushStringAttribute(target, name, value); - break; - case "style": - pushStyleAttribute(target, value); - break; - case "src": - case "href": - if ("" === value) break; - case "action": - case "formAction": - if ( - null == value || - "function" === typeof value || - "symbol" === typeof value || - "boolean" === typeof value - ) - break; - value = sanitizeURL("" + value); - target.push(" ", name, '="', escapeTextForBrowser(value), '"'); - break; - case "defaultValue": - case "defaultChecked": - case "innerHTML": - case "suppressContentEditableWarning": - case "suppressHydrationWarning": - case "ref": - break; - case "autoFocus": - case "multiple": - case "muted": - pushBooleanAttribute(target, name.toLowerCase(), value); - break; - case "xlinkHref": - if ( - "function" === typeof value || - "symbol" === typeof value || - "boolean" === typeof value - ) - break; - value = sanitizeURL("" + value); - target.push(" ", "xlink:href", '="', escapeTextForBrowser(value), '"'); - break; - case "contentEditable": - case "spellCheck": - case "draggable": - case "value": - case "autoReverse": - case "externalResourcesRequired": - case "focusable": - case "preserveAlpha": - "function" !== typeof value && - "symbol" !== typeof value && - target.push(" ", name, '="', escapeTextForBrowser(value), '"'); - break; - case "inert": - case "allowFullScreen": - case "async": - case "autoPlay": - case "controls": - case "default": - case "defer": - case "disabled": - case "disablePictureInPicture": - case "disableRemotePlayback": - case "formNoValidate": - case "hidden": - case "loop": - case "noModule": - case "noValidate": - case "open": - case "playsInline": - case "readOnly": - case "required": - case "reversed": - case "scoped": - case "seamless": - case "itemScope": - value && - "function" !== typeof value && - "symbol" !== typeof value && - target.push(" ", name, '=""'); - break; - case "capture": - case "download": - !0 === value - ? target.push(" ", name, '=""') - : !1 !== value && - "function" !== typeof value && - "symbol" !== typeof value && - target.push(" ", name, '="', escapeTextForBrowser(value), '"'); - break; - case "cols": - case "rows": - case "size": - case "span": - "function" !== typeof value && - "symbol" !== typeof value && - !isNaN(value) && - 1 <= value && - target.push(" ", name, '="', escapeTextForBrowser(value), '"'); - break; - case "rowSpan": - case "start": - "function" === typeof value || - "symbol" === typeof value || - isNaN(value) || - target.push(" ", name, '="', escapeTextForBrowser(value), '"'); - break; - case "xlinkActuate": - pushStringAttribute(target, "xlink:actuate", value); - break; - case "xlinkArcrole": - pushStringAttribute(target, "xlink:arcrole", value); - break; - case "xlinkRole": - pushStringAttribute(target, "xlink:role", value); - break; - case "xlinkShow": - pushStringAttribute(target, "xlink:show", value); - break; - case "xlinkTitle": - pushStringAttribute(target, "xlink:title", value); - break; - case "xlinkType": - pushStringAttribute(target, "xlink:type", value); - break; - case "xmlBase": - pushStringAttribute(target, "xml:base", value); - break; - case "xmlLang": - pushStringAttribute(target, "xml:lang", value); - break; - case "xmlSpace": - pushStringAttribute(target, "xml:space", value); - break; - default: - if ( - !(2 < name.length) || - ("o" !== name[0] && "O" !== name[0]) || - ("n" !== name[1] && "N" !== name[1]) - ) - if (((name = aliases.get(name) || name), isAttributeNameSafe(name))) { - switch (typeof value) { - case "function": - case "symbol": - return; - case "boolean": - var prefix$8 = name.toLowerCase().slice(0, 5); - if ("data-" !== prefix$8 && "aria-" !== prefix$8) return; - } - target.push(" ", name, '="', escapeTextForBrowser(value), '"'); - } - } -} -function pushInnerHTML(target, innerHTML, children) { - if (null != innerHTML) { - if (null != children) - throw Error( - "Can only set one of `children` or `props.dangerouslySetInnerHTML`." - ); - if ("object" !== typeof innerHTML || !("__html" in innerHTML)) - throw Error( - "`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information." - ); - innerHTML = innerHTML.__html; - null !== innerHTML && void 0 !== innerHTML && target.push("" + innerHTML); - } -} -function flattenOptionChildren(children) { - var content = ""; - React.Children.forEach(children, function (child) { - null != child && (content += child); - }); - return content; -} -function injectFormReplayingRuntime(resumableState, renderState) { - 0 === (resumableState.instructions & 16) && - ((resumableState.instructions |= 16), - renderState.bootstrapChunks.unshift( - renderState.startInlineScript, - 'addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error(\'React form unexpectedly submitted.\')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});', - "\x3c/script>" - )); -} -function pushLinkImpl(target, props) { - target.push(startChunkForTag("link")); - for (var propKey in props) - if (hasOwnProperty.call(props, propKey)) { - var propValue = props[propKey]; - if (null != propValue) - switch (propKey) { - case "children": - case "dangerouslySetInnerHTML": - throw Error( - "link is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`." - ); - default: - pushAttribute(target, propKey, propValue); - } - } - target.push("/>"); - return null; -} -var styleRegex = /(<\/|<)(s)(tyle)/gi; -function styleReplacer(match, prefix, s, suffix) { - return "" + prefix + ("s" === s ? "\\73 " : "\\53 ") + suffix; -} -function pushSelfClosing(target, props, tag) { - target.push(startChunkForTag(tag)); - for (var propKey in props) - if (hasOwnProperty.call(props, propKey)) { - var propValue = props[propKey]; - if (null != propValue) - switch (propKey) { - case "children": - case "dangerouslySetInnerHTML": - throw Error( - tag + - " is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`." - ); - default: - pushAttribute(target, propKey, propValue); - } - } - target.push("/>"); - return null; -} -function pushTitleImpl(target, props) { - target.push(startChunkForTag("title")); - var children = null, - innerHTML = null, - propKey; - for (propKey in props) - if (hasOwnProperty.call(props, propKey)) { - var propValue = props[propKey]; - if (null != propValue) - switch (propKey) { - case "children": - children = propValue; - break; - case "dangerouslySetInnerHTML": - innerHTML = propValue; - break; - default: - pushAttribute(target, propKey, propValue); - } - } - target.push(">"); - props = Array.isArray(children) - ? 2 > children.length - ? children[0] - : null - : children; - "function" !== typeof props && - "symbol" !== typeof props && - null !== props && - void 0 !== props && - target.push(escapeTextForBrowser("" + props)); - pushInnerHTML(target, innerHTML, children); - target.push(endChunkForTag("title")); - return null; -} -function pushScriptImpl(target, props) { - target.push(startChunkForTag("script")); - var children = null, - innerHTML = null, - propKey; - for (propKey in props) - if (hasOwnProperty.call(props, propKey)) { - var propValue = props[propKey]; - if (null != propValue) - switch (propKey) { - case "children": - children = propValue; - break; - case "dangerouslySetInnerHTML": - innerHTML = propValue; - break; - default: - pushAttribute(target, propKey, propValue); - } - } - target.push(">"); - pushInnerHTML(target, innerHTML, children); - "string" === typeof children && - target.push(("" + children).replace(scriptRegex, scriptReplacer)); - target.push(endChunkForTag("script")); - return null; -} -function pushStartGenericElement(target, props, tag) { - target.push(startChunkForTag(tag)); - var innerHTML = (tag = null), - propKey; - for (propKey in props) - if (hasOwnProperty.call(props, propKey)) { - var propValue = props[propKey]; - if (null != propValue) - switch (propKey) { - case "children": - tag = propValue; - break; - case "dangerouslySetInnerHTML": - innerHTML = propValue; - break; - default: - pushAttribute(target, propKey, propValue); - } - } - target.push(">"); - pushInnerHTML(target, innerHTML, tag); - return "string" === typeof tag - ? (target.push(escapeTextForBrowser(tag)), null) - : tag; -} -var VALID_TAG_REGEX = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/, - validatedTagCache = new Map(); -function startChunkForTag(tag) { - var tagStartChunk = validatedTagCache.get(tag); - if (void 0 === tagStartChunk) { - if (!VALID_TAG_REGEX.test(tag)) throw Error("Invalid tag: " + tag); - tagStartChunk = "<" + tag; - validatedTagCache.set(tag, tagStartChunk); - } - return tagStartChunk; -} -function pushStartInstance( - target$jscomp$0, - type, - props, - resumableState, - renderState, - hoistableState, - formatContext, - textEmbedded, - isFallback -) { - switch (type) { - case "div": - case "span": - case "svg": - case "path": - break; - case "a": - target$jscomp$0.push(startChunkForTag("a")); - var children = null, - innerHTML = null, - propKey; - for (propKey in props) - if (hasOwnProperty.call(props, propKey)) { - var propValue = props[propKey]; - if (null != propValue) - switch (propKey) { - case "children": - children = propValue; - break; - case "dangerouslySetInnerHTML": - innerHTML = propValue; - break; - case "href": - "" === propValue - ? pushStringAttribute(target$jscomp$0, "href", "") - : pushAttribute(target$jscomp$0, propKey, propValue); - break; - default: - pushAttribute(target$jscomp$0, propKey, propValue); - } - } - target$jscomp$0.push(">"); - pushInnerHTML(target$jscomp$0, innerHTML, children); - if ("string" === typeof children) { - target$jscomp$0.push(escapeTextForBrowser(children)); - var JSCompiler_inline_result = null; - } else JSCompiler_inline_result = children; - return JSCompiler_inline_result; - case "g": - case "p": - case "li": - break; - case "select": - target$jscomp$0.push(startChunkForTag("select")); - var children$jscomp$0 = null, - innerHTML$jscomp$0 = null, - propKey$jscomp$0; - for (propKey$jscomp$0 in props) - if (hasOwnProperty.call(props, propKey$jscomp$0)) { - var propValue$jscomp$0 = props[propKey$jscomp$0]; - if (null != propValue$jscomp$0) - switch (propKey$jscomp$0) { - case "children": - children$jscomp$0 = propValue$jscomp$0; - break; - case "dangerouslySetInnerHTML": - innerHTML$jscomp$0 = propValue$jscomp$0; - break; - case "defaultValue": - case "value": - break; - default: - pushAttribute( - target$jscomp$0, - propKey$jscomp$0, - propValue$jscomp$0 - ); - } - } - target$jscomp$0.push(">"); - pushInnerHTML(target$jscomp$0, innerHTML$jscomp$0, children$jscomp$0); - return children$jscomp$0; - case "option": - var selectedValue = formatContext.selectedValue; - target$jscomp$0.push(startChunkForTag("option")); - var children$jscomp$1 = null, - value = null, - selected = null, - innerHTML$jscomp$1 = null, - propKey$jscomp$1; - for (propKey$jscomp$1 in props) - if (hasOwnProperty.call(props, propKey$jscomp$1)) { - var propValue$jscomp$1 = props[propKey$jscomp$1]; - if (null != propValue$jscomp$1) - switch (propKey$jscomp$1) { - case "children": - children$jscomp$1 = propValue$jscomp$1; - break; - case "selected": - selected = propValue$jscomp$1; - break; - case "dangerouslySetInnerHTML": - innerHTML$jscomp$1 = propValue$jscomp$1; - break; - case "value": - value = propValue$jscomp$1; - default: - pushAttribute( - target$jscomp$0, - propKey$jscomp$1, - propValue$jscomp$1 - ); - } - } - if (null != selectedValue) { - var stringValue = - null !== value - ? "" + value - : flattenOptionChildren(children$jscomp$1); - if (isArrayImpl(selectedValue)) - for (var i = 0; i < selectedValue.length; i++) { - if ("" + selectedValue[i] === stringValue) { - target$jscomp$0.push(' selected=""'); - break; - } - } - else - "" + selectedValue === stringValue && - target$jscomp$0.push(' selected=""'); - } else selected && target$jscomp$0.push(' selected=""'); - target$jscomp$0.push(">"); - pushInnerHTML(target$jscomp$0, innerHTML$jscomp$1, children$jscomp$1); - return children$jscomp$1; - case "textarea": - target$jscomp$0.push(startChunkForTag("textarea")); - var value$jscomp$0 = null, - defaultValue = null, - children$jscomp$2 = null, - propKey$jscomp$2; - for (propKey$jscomp$2 in props) - if (hasOwnProperty.call(props, propKey$jscomp$2)) { - var propValue$jscomp$2 = props[propKey$jscomp$2]; - if (null != propValue$jscomp$2) - switch (propKey$jscomp$2) { - case "children": - children$jscomp$2 = propValue$jscomp$2; - break; - case "value": - value$jscomp$0 = propValue$jscomp$2; - break; - case "defaultValue": - defaultValue = propValue$jscomp$2; - break; - case "dangerouslySetInnerHTML": - throw Error( - "`dangerouslySetInnerHTML` does not make sense on