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/404.html b/404.html index 6072b25bf..10b0d349b 100644 --- a/404.html +++ b/404.html @@ -2,17 +2,16 @@
- - - -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.
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.
index.js (CommonJS)",id:"-indexjs-commonjs",level:4},{value:" ping.js (CommonJS)",id:"-pingjs-commonjs",level:4},{value:"\ud83d\udcbb CLI",id:"-cli",level:2},{value:"\ud83d\udd17 Links",id:"-links",level:2},{value:"\ud83d\udc4b Contribute",id:"-contribute",level:2},{value:"\ud83d\ude88 Roadmap",id:"-roadmap",level:2}],p={toc:d};function c(e){let{components:n,...t}=e;return(0,a.kt)("wrapper",(0,r.Z)({},p,t,{components:n,mdxType:"MDXLayout"}),(0,a.kt)("div",{align:"center"},(0,a.kt)("img",{src:"https://raw.githubusercontent.com/sern-handler/.github/main/banner.png",width:"900px"})),(0,a.kt)("h1",{align:"center"},"Handlers. Redefined."),(0,a.kt)("h4",{align:"center"},"A customizable, batteries-included, powerful discord.js framework to streamline bot development."),(0,a.kt)("div",{align:"center",styles:"margin-top: 10px"},(0,a.kt)("img",{src:"https://img.shields.io/badge/open-source-brightgreen"}),(0,a.kt)("a",{href:"https://www.npmjs.com/package/@sern/handler"},(0,a.kt)("img",{src:"https://img.shields.io/npm/v/@sern/handler?maxAge=3600",alt:"NPM version"})),(0,a.kt)("a",{href:"https://www.npmjs.com/package/@sern/handler"},(0,a.kt)("img",{src:"https://img.shields.io/npm/dt/@sern/handler?maxAge=3600",alt:"NPM downloads"})),(0,a.kt)("a",{href:"https://opensource.org/licenses/MIT"},(0,a.kt)("img",{src:"https://img.shields.io/badge/license-MIT-brightgreen",alt:"License MIT"})),(0,a.kt)("a",{href:"https://sern.dev"},(0,a.kt)("img",{alt:"docs.rs",src:"https://img.shields.io/docsrs/docs"})),(0,a.kt)("img",{alt:"Lines of code",src:"https://img.shields.io/badge/total%20lines-2k-blue"})),(0,a.kt)("h2",{id:"-installation"},"\ud83d\udcdc Installation"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-sh"},"npm install @sern/handler\n")),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-sh"},"yarn add @sern/handler\n")),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-sh"},"pnpm add @sern/handler\n")),(0,a.kt)("h2",{id:"why"},"Why?"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"Most handlers don't support discord.js 14.7+"),(0,a.kt)("li",{parentName:"ul"},"Customizable commands"),(0,a.kt)("li",{parentName:"ul"},"Plug and play or customize to your liking"),(0,a.kt)("li",{parentName:"ul"},"Embraces reactive programming for consistent and reliable backend"),(0,a.kt)("li",{parentName:"ul"},"Customizable logger, error handling, and more"),(0,a.kt)("li",{parentName:"ul"},"Active development and growing ",(0,a.kt)("a",{parentName:"li",href:"https://sern.dev/discord"},"community"))),(0,a.kt)("h2",{id:"-quick-look"},"\ud83d\udc40 Quick Look"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"Support for discord.js v14 and all interactions"),(0,a.kt)("li",{parentName:"ul"},"Hybrid commands"),(0,a.kt)("li",{parentName:"ul"},"Lightweight and customizable"),(0,a.kt)("li",{parentName:"ul"},"ESM, CommonJS and TypeScript support"),(0,a.kt)("li",{parentName:"ul"},"A powerful CLI and awesome community-made plugins")),(0,a.kt)("h2",{id:"-basic-usage"},"\ud83d\udc76 Basic Usage"),(0,a.kt)("h4",{id:"-indexjs-commonjs"},(0,a.kt)("inlineCode",{parentName:"h4"}," index.js (CommonJS)")),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-js"},"// Import the discord.js Client and GatewayIntentBits\nconst { Client, GatewayIntentBits } = require('discord.js');\n\n// Import Sern namespace\nconst { Sern } = require('@sern/handler');\n\n// Our configuration file\nconst { defaultPrefix, token } = require('./config.json');\n\nconst client = new Client({\n intents: [\n GatewayIntentBits.Guilds,\n GatewayIntentBits.GuildMembers,\n GatewayIntentBits.GuildMessages\n ]\n});\nexport const useContainer = Sern.makeDependencies({\n build: root => root\n .add({ '@sern/client': single(client) })\n .add({ '@sern/logger': single(new DefaultLogging()) })\n});\n\n//View docs for all options\nSern.init({\n defaultPrefix: '!', // removing defaultPrefix will shut down text commands\n commands: 'src/commands',\n // events: 'src/events' (optional),\n containerConfig : {\n get: useContainer\n }\n});\n\nclient.login(token);\n")),(0,a.kt)("h4",{id:"-pingjs-commonjs"},(0,a.kt)("inlineCode",{parentName:"h4"}," ping.js (CommonJS)")),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-js"},"const { CommandType, commandModule } = require('@sern/handler');\n\nexports.default = commandModule({\n name: 'ping',\n description: 'A ping pong command',\n type: CommandType.Slash,\n execute(ctx) {\n ctx.reply('pong!');\n }\n});\n")),(0,a.kt)("p",null,"See our ",(0,a.kt)("a",{parentName:"p",href:"https://github.com/sern-handler/templates"},"templates")," for TypeScript examples and more."),(0,a.kt)("h2",{id:"-cli"},"\ud83d\udcbb CLI"),(0,a.kt)("p",null,"It is ",(0,a.kt)("strong",{parentName:"p"},"highly encouraged")," to use the ",(0,a.kt)("a",{parentName:"p",href:"https://github.com/sern-handler/cli"},"command line interface")," for your project. Don't forget to view it."),(0,a.kt)("h2",{id:"-links"},"\ud83d\udd17 Links"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("a",{parentName:"li",href:"https://sern.dev"},"Official Documentation and Guide")),(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("a",{parentName:"li",href:"https://sern.dev/discord"},"Support Server"))),(0,a.kt)("h2",{id:"-contribute"},"\ud83d\udc4b Contribute"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"Read our contribution ",(0,a.kt)("a",{parentName:"li",href:"https://github.com/sern-handler/handler/blob/main/.github/CONTRIBUTING.md"},"guidelines")," carefully"),(0,a.kt)("li",{parentName:"ul"},"Pull up on ",(0,a.kt)("a",{parentName:"li",href:"https://github.com/sern-handler/handler/issues"},"issues")," and report bugs"),(0,a.kt)("li",{parentName:"ul"},"All kinds of contributions are welcomed.")),(0,a.kt)("h2",{id:"-roadmap"},"\ud83d\ude88 Roadmap"),(0,a.kt)("p",null,"You can check our ",(0,a.kt)("a",{parentName:"p",href:"https://github.com/sern-handler/roadmap"},"roadmap")," to see what's going to be added or patched in the future."))}c.isMDXComponent=!0}}]);
\ No newline at end of file
diff --git a/assets/js/608ca171.16600ea2.js b/assets/js/608ca171.0f38ce7a.js
similarity index 57%
rename from assets/js/608ca171.16600ea2.js
rename to assets/js/608ca171.0f38ce7a.js
index d2bb5f404..c874c0b7d 100644
--- a/assets/js/608ca171.16600ea2.js
+++ b/assets/js/608ca171.0f38ce7a.js
@@ -1 +1 @@
-"use strict";(self.webpackChunk_sern_website=self.webpackChunk_sern_website||[]).push([[6146],{3905:(e,t,r)=>{r.d(t,{Zo:()=>s,kt:()=>m});var n=r(7294);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;tr.createElement("span",(0,o.Z)({key:t},s({token:e,key:t})))));return r.createElement("span",i,l?r.createElement(r.Fragment,null,r.createElement("span",{className:C}),r.createElement("span",{className:Z},u)):r.createElement(r.Fragment,null,u,r.createElement("br",null)))}var B=n(5999);const T={copyButtonCopied:"copyButtonCopied_obH4",copyButtonIcons:"copyButtonIcons_eSgA",copyButtonIcon:"copyButtonIcon_y97N",copyButtonSuccessIcon:"copyButtonSuccessIcon_LjdS"};function j(e){let{code:t,className:n}=e;const[o,l]=(0,r.useState)(!1),c=(0,r.useRef)(void 0),s=(0,r.useCallback)((()=>{!function(e,t){let{target:n=document.body}=void 0===t?{}:t;const o=document.createElement("textarea"),r=document.activeElement;o.value=e,o.setAttribute("readonly",""),o.style.contain="strict",o.style.position="absolute",o.style.left="-9999px",o.style.fontSize="12pt";const a=document.getSelection();let l=!1;a.rangeCount>0&&(l=a.getRangeAt(0)),n.append(o),o.select(),o.selectionStart=0,o.selectionEnd=e.length;let c=!1;try{c=document.execCommand("copy")}catch{}o.remove(),l&&(a.removeAllRanges(),a.addRange(l)),r&&r.focus()}(t),l(!0),c.current=window.setTimeout((()=>{l(!1)}),1e3)}),[t]);return(0,r.useEffect)((()=>()=>window.clearTimeout(c.current)),[]),r.createElement("button",{type:"button","aria-label":o?(0,B.I)({id:"theme.CodeBlock.copied",message:"Copied",description:"The copied button label on code blocks"}):(0,B.I)({id:"theme.CodeBlock.copyButtonAriaLabel",message:"Copy code to clipboard",description:"The ARIA label for copy code blocks button"}),title:(0,B.I)({id:"theme.CodeBlock.copy",message:"Copy",description:"The copy button label on code blocks"}),className:(0,a.Z)("clean-btn",n,T.copyButton,o&&T.copyButtonCopied),onClick:s},r.createElement("span",{className:T.copyButtonIcons,"aria-hidden":"true"},r.createElement("svg",{className:T.copyButtonIcon,viewBox:"0 0 24 24"},r.createElement("path",{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"})),r.createElement("svg",{className:T.copyButtonSuccessIcon,viewBox:"0 0 24 24"},r.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))))}const L="wordWrapButtonIcon_Bwma",O="wordWrapButtonEnabled_EoeP";function x(e){let{className:t,onClick:n,isEnabled:o}=e;const l=(0,B.I)({id:"theme.CodeBlock.wordWrapToggle",message:"Toggle word wrap",description:"The title attribute for toggle word wrapping button of code block lines"});return r.createElement("button",{type:"button",onClick:n,className:(0,a.Z)("clean-btn",t,o&&O),"aria-label":l,title:l},r.createElement("svg",{className:L,viewBox:"0 0 24 24","aria-hidden":"true"},r.createElement("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"})))}var _=n(6505),S=n(2944);function P(e){var t;let{children:n,className:i="",metastring:u,title:d,showLineNumbers:f,language:h}=e;const{prism:{defaultLanguage:g,magicComments:y}}=(0,l.L)(),v=null!=(t=null!=h?h:(0,s.Vo)(i))?t:g,b=(0,c.p)(),E=function(){const[e,t]=(0,r.useState)(!1),[n,o]=(0,r.useState)(!1),a=(0,r.useRef)(null),l=(0,r.useCallback)((()=>{const n=a.current.querySelector("code");e?n.removeAttribute("style"):(n.style.whiteSpace="pre-wrap",n.style.overflowWrap="anywhere"),t((e=>!e))}),[a,e]),c=(0,r.useCallback)((()=>{const{scrollWidth:e,clientWidth:t}=a.current,n=e>t||a.current.querySelector("code").hasAttribute("style");o(n)}),[a]);return m(a,c),(0,r.useEffect)((()=>{c()}),[e,c]),(0,r.useEffect)((()=>(window.addEventListener("resize",c,{passive:!0}),()=>{window.removeEventListener("resize",c)})),[c]),{codeBlockRef:a,isEnabled:e,isCodeScrollable:n,toggle:l}}(),N=(0,s.bc)(u)||d,{lineClassNames:C,code:Z}=(0,s.nZ)(n,{metastring:u,language:v,magicComments:y}),B=null!=f?f:(0,s.nt)(u);return r.createElement(_.Z,{as:"div",className:(0,a.Z)(i,v&&!i.includes("language-"+v)&&"language-"+v)},N&&r.createElement("div",{className:S.Z.codeBlockTitle},N),r.createElement("div",{className:S.Z.codeBlockContent},r.createElement(k,(0,o.Z)({},p,{theme:b,code:Z,language:null!=v?v:"text"}),(e=>{let{className:t,tokens:n,getLineProps:o,getTokenProps:l}=e;return r.createElement("pre",{tabIndex:0,ref:E.codeBlockRef,className:(0,a.Z)(t,S.Z.codeBlock,"thin-scrollbar")},r.createElement("code",{className:(0,a.Z)(S.Z.codeBlockLines,B&&S.Z.codeBlockLinesWithNumbering)},n.map(((e,t)=>r.createElement(w,{key:t,line:e,getLineProps:o,getTokenProps:l,classNames:C[t],showLineNumbers:B})))))})),r.createElement("div",{className:S.Z.buttonGroup},(E.isEnabled||E.isCodeScrollable)&&r.createElement(x,{className:S.Z.codeButton,onClick:()=>E.toggle(),isEnabled:E.isEnabled}),r.createElement(j,{className:S.Z.codeButton,code:Z}))))}},2503:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var o=n(7462),r=n(7294),a=n(6010),l=n(5999),c=n(6668);const s="anchorWithStickyNavbar_LWe7",i="anchorWithHideOnScrollNavbar_WYt5";function u(e){let{as:t,id:n,...u}=e;const{navbar:{hideOnScroll:m}}=(0,c.L)();return"h1"!==t&&n?r.createElement(t,(0,o.Z)({},u,{className:(0,a.Z)("anchor",m?i:s),id:n}),u.children,r.createElement("a",{className:"hash-link",href:"#"+n,title:(0,l.I)({id:"theme.common.headingLinkTitle",message:"Direct link to heading",description:"Title for link to heading"})},"\u200b")):r.createElement(t,(0,o.Z)({},u,{id:void 0}))}},5203:(e,t,n)=>{"use strict";n.d(t,{Z:()=>P});var o=n(7294),r=n(3905),a=n(7462),l=n(5742);var c=n(8573);var s=n(9960);var i=n(6010),u=n(2389),m=n(6043);const d="details_lb9f",p="isBrowser_bmU9",f="collapsibleContent_i85q";function h(e){return!!e&&("SUMMARY"===e.tagName||h(e.parentElement))}function g(e,t){return!!e&&(e===t||g(e.parentElement,t))}function y(e){let{summary:t,children:n,...r}=e;const l=(0,u.Z)(),c=(0,o.useRef)(null),{collapsed:s,setCollapsed:y}=(0,m.u)({initialState:!r.open}),[v,b]=(0,o.useState)(r.open);return o.createElement("details",(0,a.Z)({},r,{ref:c,open:v,"data-collapsed":s,className:(0,i.Z)(d,l&&p,r.className),onMouseDown:e=>{h(e.target)&&e.detail>1&&e.preventDefault()},onClick:e=>{e.stopPropagation();const t=e.target;h(t)&&g(t,c.current)&&(e.preventDefault(),s?(y(!1),b(!0)):y(!0))}}),null!=t?t:o.createElement("summary",null,"Details"),o.createElement(m.z,{lazy:!1,collapsed:s,disableSSRStyle:!0,onCollapseTransitionEnd:e=>{y(e),b(!e)}},o.createElement("div",{className:f},n)))}const v="details_b_Ee";function b(e){let{...t}=e;return o.createElement(y,(0,a.Z)({},t,{className:(0,i.Z)("alert alert--info",v,t.className)}))}var E=n(2503);function k(e){return o.createElement(E.Z,e)}const N="containsTaskList_mC6p";const C="img_ev3q";var Z=n(5281),w=n(5999);const B="admonition_LlT9",T="admonitionHeading_tbUL",j="admonitionIcon_kALy",L="admonitionContent_S0QG";const O={note:{infimaClassName:"secondary",iconComponent:function(){return o.createElement("svg",{viewBox:"0 0 14 16"},o.createElement("path",{fillRule:"evenodd",d:"M6.3 5.69a.942.942 0 0 1-.28-.7c0-.28.09-.52.28-.7.19-.18.42-.28.7-.28.28 0 .52.09.7.28.18.19.28.42.28.7 0 .28-.09.52-.28.7a1 1 0 0 1-.7.3c-.28 0-.52-.11-.7-.3zM8 7.99c-.02-.25-.11-.48-.31-.69-.2-.19-.42-.3-.69-.31H6c-.27.02-.48.13-.69.31-.2.2-.3.44-.31.69h1v3c.02.27.11.5.31.69.2.2.42.31.69.31h1c.27 0 .48-.11.69-.31.2-.19.3-.42.31-.69H8V7.98v.01zM7 2.3c-3.14 0-5.7 2.54-5.7 5.68 0 3.14 2.56 5.7 5.7 5.7s5.7-2.55 5.7-5.7c0-3.15-2.56-5.69-5.7-5.69v.01zM7 .98c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.12-7-7 3.14-7 7-7z"}))},label:o.createElement(w.Z,{id:"theme.admonition.note",description:"The default label used for the Note admonition (:::note)"},"note")},tip:{infimaClassName:"success",iconComponent:function(){return o.createElement("svg",{viewBox:"0 0 12 16"},o.createElement("path",{fillRule:"evenodd",d:"M6.5 0C3.48 0 1 2.19 1 5c0 .92.55 2.25 1 3 1.34 2.25 1.78 2.78 2 4v1h5v-1c.22-1.22.66-1.75 2-4 .45-.75 1-2.08 1-3 0-2.81-2.48-5-5.5-5zm3.64 7.48c-.25.44-.47.8-.67 1.11-.86 1.41-1.25 2.06-1.45 3.23-.02.05-.02.11-.02.17H5c0-.06 0-.13-.02-.17-.2-1.17-.59-1.83-1.45-3.23-.2-.31-.42-.67-.67-1.11C2.44 6.78 2 5.65 2 5c0-2.2 2.02-4 4.5-4 1.22 0 2.36.42 3.22 1.19C10.55 2.94 11 3.94 11 5c0 .66-.44 1.78-.86 2.48zM4 14h5c-.23 1.14-1.3 2-2.5 2s-2.27-.86-2.5-2z"}))},label:o.createElement(w.Z,{id:"theme.admonition.tip",description:"The default label used for the Tip admonition (:::tip)"},"tip")},danger:{infimaClassName:"danger",iconComponent:function(){return o.createElement("svg",{viewBox:"0 0 12 16"},o.createElement("path",{fillRule:"evenodd",d:"M5.05.31c.81 2.17.41 3.38-.52 4.31C3.55 5.67 1.98 6.45.9 7.98c-1.45 2.05-1.7 6.53 3.53 7.7-2.2-1.16-2.67-4.52-.3-6.61-.61 2.03.53 3.33 1.94 2.86 1.39-.47 2.3.53 2.27 1.67-.02.78-.31 1.44-1.13 1.81 3.42-.59 4.78-3.42 4.78-5.56 0-2.84-2.53-3.22-1.25-5.61-1.52.13-2.03 1.13-1.89 2.75.09 1.08-1.02 1.8-1.86 1.33-.67-.41-.66-1.19-.06-1.78C8.18 5.31 8.68 2.45 5.05.32L5.03.3l.02.01z"}))},label:o.createElement(w.Z,{id:"theme.admonition.danger",description:"The default label used for the Danger admonition (:::danger)"},"danger")},info:{infimaClassName:"info",iconComponent:function(){return o.createElement("svg",{viewBox:"0 0 14 16"},o.createElement("path",{fillRule:"evenodd",d:"M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"}))},label:o.createElement(w.Z,{id:"theme.admonition.info",description:"The default label used for the Info admonition (:::info)"},"info")},caution:{infimaClassName:"warning",iconComponent:function(){return o.createElement("svg",{viewBox:"0 0 16 16"},o.createElement("path",{fillRule:"evenodd",d:"M8.893 1.5c-.183-.31-.52-.5-.887-.5s-.703.19-.886.5L.138 13.499a.98.98 0 0 0 0 1.001c.193.31.53.501.886.501h13.964c.367 0 .704-.19.877-.5a1.03 1.03 0 0 0 .01-1.002L8.893 1.5zm.133 11.497H6.987v-2.003h2.039v2.003zm0-3.004H6.987V5.987h2.039v4.006z"}))},label:o.createElement(w.Z,{id:"theme.admonition.caution",description:"The default label used for the Caution admonition (:::caution)"},"caution")}},x={secondary:"note",important:"info",success:"tip",warning:"danger"};function _(e){var t;const{mdxAdmonitionTitle:n,rest:r}=function(e){const t=o.Children.toArray(e),n=t.find((e=>{var t;return o.isValidElement(e)&&"mdxAdmonitionTitle"===(null==(t=e.props)?void 0:t.mdxType)})),r=o.createElement(o.Fragment,null,t.filter((e=>e!==n)));return{mdxAdmonitionTitle:n,rest:r}}(e.children);return{...e,title:null!=(t=e.title)?t:n,children:r}}const S={head:function(e){const t=o.Children.map(e.children,(e=>o.isValidElement(e)?function(e){var t;if(null!=(t=e.props)&&t.mdxType&&e.props.originalType){const{mdxType:t,originalType:n,...r}=e.props;return o.createElement(e.props.originalType,r)}return e}(e):e));return o.createElement(l.Z,e,t)},code:function(e){const t=["a","b","big","i","span","em","strong","sup","sub","small"];return o.Children.toArray(e.children).every((e=>{var n;return"string"==typeof e&&!e.includes("\n")||(0,o.isValidElement)(e)&&t.includes(null==(n=e.props)?void 0:n.mdxType)}))?o.createElement("code",e):o.createElement(c.Z,e)},a:function(e){return o.createElement(s.Z,e)},pre:function(e){var t;return o.createElement(c.Z,(0,o.isValidElement)(e.children)&&"code"===(null==(t=e.children.props)?void 0:t.originalType)?e.children.props:{...e})},details:function(e){const t=o.Children.toArray(e.children),n=t.find((e=>{var t;return o.isValidElement(e)&&"summary"===(null==(t=e.props)?void 0:t.mdxType)})),r=o.createElement(o.Fragment,null,t.filter((e=>e!==n)));return o.createElement(b,(0,a.Z)({},e,{summary:n}),r)},ul:function(e){return o.createElement("ul",(0,a.Z)({},e,{className:(t=e.className,(0,i.Z)(t,(null==t?void 0:t.includes("contains-task-list"))&&N))}));var t},img:function(e){return o.createElement("img",(0,a.Z)({loading:"lazy"},e,{className:(t=e.className,(0,i.Z)(t,C))}));var t},h1:e=>o.createElement(k,(0,a.Z)({as:"h1"},e)),h2:e=>o.createElement(k,(0,a.Z)({as:"h2"},e)),h3:e=>o.createElement(k,(0,a.Z)({as:"h3"},e)),h4:e=>o.createElement(k,(0,a.Z)({as:"h4"},e)),h5:e=>o.createElement(k,(0,a.Z)({as:"h5"},e)),h6:e=>o.createElement(k,(0,a.Z)({as:"h6"},e)),admonition:function(e){const{children:t,type:n,title:r,icon:a}=_(e),l=function(e){var t;const n=null!=(t=x[e])?t:e;return O[n]||(console.warn('No admonition config found for admonition type "'+n+'". Using Info as fallback.'),O.info)}(n),c=null!=r?r:l.label,{iconComponent:s}=l,u=null!=a?a:o.createElement(s,null);return o.createElement("div",{className:(0,i.Z)(Z.k.common.admonition,Z.k.common.admonitionType(e.type),"alert","alert--"+l.infimaClassName,B)},o.createElement("div",{className:T},o.createElement("span",{className:j},u),c),o.createElement("div",{className:L},t))}};function P(e){let{children:t}=e;return o.createElement(r.Zo,{components:S},t)}},6412:(e,t,n)=>{"use strict";n.d(t,{p:()=>a});var o=n(2949),r=n(6668);function a(){const{prism:e}=(0,r.L)(),{colorMode:t}=(0,o.I)(),n=e.theme,a=e.darkTheme||n;return"dark"===t?a:n}},7016:(e,t,n)=>{"use strict";n.d(t,{QC:()=>p,Vo:()=>m,bc:()=>i,nZ:()=>d,nt:()=>u});var o=n(7594),r=n.n(o);const a=/title=(?["'])(?