docusaurus/assets/js/17896441.074940a3.js
2025-04-11 09:47:21 +00:00

1 line
No EOL
43 KiB
JavaScript

"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([["87048"],{37796:function(e,t,n){n.d(t,{Z:()=>s});var r=n(85893);function s(e){return(0,r.jsx)("svg",{viewBox:"0 0 14 16",...e,children:(0,r.jsx)("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"})})}n(67294)},49356:function(e,t,n){n.d(t,{Z:()=>_});var r=n(85893),s=n(67294),i=n(90496),a=n(77827),l=n(55951);let o={admonition:"admonition_o5H7",admonitionHeading:"admonitionHeading_FzoX",admonitionIcon:"admonitionIcon_rXq6",admonitionContent:"admonitionContent_Knsx"};function c(e){let{type:t,className:n,children:s}=e;return(0,r.jsx)("div",{className:(0,i.Z)(l.k.common.admonition,l.k.common.admonitionType(t),o.admonition,n),children:s})}function d(e){let{icon:t,title:n}=e;return(0,r.jsxs)("div",{className:o.admonitionHeading,children:[(0,r.jsx)("span",{className:o.admonitionIcon,children:t}),n]})}function u(e){let{children:t}=e;return t?(0,r.jsx)("div",{className:o.admonitionContent,children:t}):null}function m(e){let{type:t,icon:n,title:s,children:i,className:a}=e;return(0,r.jsxs)(c,{type:t,className:a,children:[s||n?(0,r.jsx)(d,{title:s,icon:n}):null,(0,r.jsx)(u,{children:i})]})}let h={icon:(0,r.jsx)(function(e){return(0,r.jsx)("svg",{viewBox:"0 0 14 16",...e,children:(0,r.jsx)("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"})})},{}),title:(0,r.jsx)(a.Z,{id:"theme.admonition.note",description:"The default label used for the Note admonition (:::note)",children:"note"})};function f(e){return(0,r.jsx)(m,{...h,...e,className:(0,i.Z)("alert alert--secondary",e.className),children:e.children})}let x={icon:(0,r.jsx)(function(e){return(0,r.jsx)("svg",{viewBox:"0 0 12 16",...e,children:(0,r.jsx)("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"})})},{}),title:(0,r.jsx)(a.Z,{id:"theme.admonition.tip",description:"The default label used for the Tip admonition (:::tip)",children:"tip"})};function j(e){return(0,r.jsx)(m,{...x,...e,className:(0,i.Z)("alert alert--success",e.className),children:e.children})}var p=n(37796);let b={icon:(0,r.jsx)(p.Z,{}),title:(0,r.jsx)(a.Z,{id:"theme.admonition.info",description:"The default label used for the Info admonition (:::info)",children:"info"})};function v(e){return(0,r.jsx)(m,{...b,...e,className:(0,i.Z)("alert alert--info",e.className),children:e.children})}function g(e){return(0,r.jsx)("svg",{viewBox:"0 0 16 16",...e,children:(0,r.jsx)("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"})})}let N={icon:(0,r.jsx)(g,{}),title:(0,r.jsx)(a.Z,{id:"theme.admonition.warning",description:"The default label used for the Warning admonition (:::warning)",children:"warning"})},Z={icon:(0,r.jsx)(function(e){return(0,r.jsx)("svg",{viewBox:"0 0 12 16",...e,children:(0,r.jsx)("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"})})},{}),title:(0,r.jsx)(a.Z,{id:"theme.admonition.danger",description:"The default label used for the Danger admonition (:::danger)",children:"danger"})},k={icon:(0,r.jsx)(g,{}),title:(0,r.jsx)(a.Z,{id:"theme.admonition.caution",description:"The default label used for the Caution admonition (:::caution)",children:"caution"})};var y=n(57922);let C={note:f,tip:j,info:v,warning:function(e){return(0,r.jsx)(m,{...N,...e,className:(0,i.Z)("alert alert--warning",e.className),children:e.children})},danger:function(e){return(0,r.jsx)(m,{...Z,...e,className:(0,i.Z)("alert alert--danger",e.className),children:e.children})},secondary:e=>(0,r.jsx)(f,{title:"secondary",...e}),important:e=>(0,r.jsx)(v,{title:"important",...e}),success:e=>(0,r.jsx)(j,{title:"success",...e}),caution:function(e){return(0,r.jsx)(m,{...k,...e,className:(0,i.Z)("alert alert--warning",e.className),children:e.children})},"my-custom-admonition":function(e){return(0,r.jsxs)("div",{style:{border:"solid red",padding:10},children:[(0,r.jsx)(y.Z,{as:"h5",style:{color:"blue",fontSize:30},children:e.title}),(0,r.jsx)("div",{children:e.children})]})}};function _(e){let t=function(e){let{mdxAdmonitionTitle:t,rest:n}=function(e){let t=s.Children.toArray(e),n=t.find(e=>s.isValidElement(e)&&"mdxAdmonitionTitle"===e.type),i=t.filter(e=>e!==n);return{mdxAdmonitionTitle:n?.props.children,rest:i.length>0?(0,r.jsx)(r.Fragment,{children:i}):null}}(e.children),i=e.title??t;return{...e,...i&&{title:i},children:n}}(e),n=function(e){let t=C[e];return t||(console.warn(`No admonition component found for admonition type "${e}". Using Info as fallback.`),C.info)}(t.type);return(0,r.jsx)(n,{...t})}},12221:function(e,t,n){n.d(t,{Z:()=>c});var r=n(85893);n(67294);var s=n(90496),i=n(68746),a=n(55951),l=n(49356);function o(e){let{className:t}=e;return(0,r.jsx)(l.Z,{type:"caution",title:(0,r.jsx)(i.cI,{}),className:(0,s.Z)(t,a.k.common.unlistedBanner),children:(0,r.jsx)(i.eU,{})})}function c(e){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.T$,{}),(0,r.jsx)(o,{...e})]})}},74291:function(e,t,n){n.d(t,{Z:()=>d});var r=n(85893);n(67294);var s=n(90496),i=n(68746),a=n(55951),l=n(49356);function o(e){let{className:t}=e;return(0,r.jsx)(l.Z,{type:"caution",title:(0,r.jsx)(i.ht,{}),className:(0,s.Z)(t,a.k.common.draftBanner),children:(0,r.jsx)(i.xo,{})})}var c=n(12221);function d(e){let{metadata:t}=e,{unlisted:n,frontMatter:s}=t;return(0,r.jsxs)(r.Fragment,{children:[(n||s.unlisted)&&(0,r.jsx)(c.Z,{}),s.draft&&(0,r.jsx)(o,{})]})}},2769:function(e,t,n){n.d(t,{Z:()=>m});var r=n(85893),s=n(67294),i=n(90496),a=n(96700),l=n(71607),o=n(97812);let c={details:"details_Nokh",isBrowser:"isBrowser_QrB5",collapsibleContent:"collapsibleContent_EoA1"};function d(e){return!!e&&("SUMMARY"===e.tagName||d(e.parentElement))}function u(e){let{summary:t,children:n,...u}=e;(0,a.Z)().collectAnchor(u.id);let m=(0,l.Z)(),h=(0,s.useRef)(null),{collapsed:f,setCollapsed:x}=(0,o.u)({initialState:!u.open}),[j,p]=(0,s.useState)(u.open),b=s.isValidElement(t)?t:(0,r.jsx)("summary",{children:t??"Details"});return(0,r.jsxs)("details",{...u,ref:h,open:j,"data-collapsed":f,className:(0,i.Z)(c.details,m&&c.isBrowser,u.className),onMouseDown:e=>{d(e.target)&&e.detail>1&&e.preventDefault()},onClick:e=>{e.stopPropagation();let t=e.target;d(t)&&function e(t,n){return!!t&&(t===n||e(t.parentElement,n))}(t,h.current)&&(e.preventDefault(),f?(x(!1),p(!0)):x(!0))},children:[b,(0,r.jsx)(o.z,{lazy:!1,collapsed:f,onCollapseTransitionEnd:e=>{x(e),p(!e)},children:(0,r.jsx)("div",{className:c.collapsibleContent,children:n})})]})}function m(e){let{...t}=e;return(0,r.jsx)(u,{...t,className:(0,i.Z)("alert alert--info","details_Cn_P",t.className)})}},20012:function(e,t,n){n.d(t,{Z:()=>v});var r=n(85893);n(67294);var s=n(90496),i=n(55951),a=n(85921),l=n(71208),o=n(35363),c=n(77827),d=n(83631);function u(e){return(0,r.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,r.jsx)("path",{d:"M10 19v-5h4v5c0 .55.45 1 1 1h3c.55 0 1-.45 1-1v-7h1.7c.46 0 .68-.57.33-.87L12.67 3.6c-.38-.34-.96-.34-1.34 0l-8.36 7.53c-.34.3-.13.87.33.87H5v7c0 .55.45 1 1 1h3c.55 0 1-.45 1-1z",fill:"currentColor"})})}function m(){let e=(0,d.ZP)("/");return(0,r.jsx)("li",{className:"breadcrumbs__item",children:(0,r.jsx)(o.Z,{"aria-label":(0,c.I)({id:"theme.docs.breadcrumbs.home",message:"Home page",description:"The ARIA label for the home page in the breadcrumbs"}),className:"breadcrumbs__link",href:e,children:(0,r.jsx)(u,{className:"breadcrumbHomeIcon_uaSn"})})})}var h=n(53327),f=n(8156);function x(e){let t=function(e){let{breadcrumbs:t}=e,{siteConfig:n}=(0,f.Z)();return{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:t.filter(e=>e.href).map((e,t)=>({"@type":"ListItem",position:t+1,name:e.label,item:`${n.url}${e.href}`}))}}({breadcrumbs:e.breadcrumbs});return(0,r.jsx)(h.Z,{children:(0,r.jsx)("script",{type:"application/ld+json",children:JSON.stringify(t)})})}let j={breadcrumbsContainer:"breadcrumbsContainer_Wvrh"};function p(e){let{children:t,href:n,isLast:s}=e,i="breadcrumbs__link";return s?(0,r.jsx)("span",{className:i,children:t}):n?(0,r.jsx)(o.Z,{className:i,href:n,children:(0,r.jsx)("span",{children:t})}):(0,r.jsx)("span",{className:i,children:t})}function b(e){let{children:t,active:n}=e;return(0,r.jsx)("li",{className:(0,s.Z)("breadcrumbs__item",{"breadcrumbs__item--active":n}),children:t})}function v(){let e=(0,a.s1)(),t=(0,l.Ns)();return e?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(x,{breadcrumbs:e}),(0,r.jsx)("nav",{className:(0,s.Z)(i.k.docs.docBreadcrumbs,j.breadcrumbsContainer),"aria-label":(0,c.I)({id:"theme.docs.breadcrumbs.navAriaLabel",message:"Breadcrumbs",description:"The ARIA label for the breadcrumbs"}),children:(0,r.jsxs)("ul",{className:"breadcrumbs",children:[t&&(0,r.jsx)(m,{}),e.map((t,n)=>{let s=n===e.length-1,i="category"===t.type&&t.linkUnlisted?void 0:t.href;return(0,r.jsx)(b,{active:s,children:(0,r.jsx)(p,{href:i,isLast:s,children:t.label})},n)})]})})]}):null}},6749:function(e,t,n){n.r(t),n.d(t,{default:()=>I});var r=n(85893),s=n(67294),i=n(57335),a=n(50923);let l=s.createContext(null);function o(e){let{children:t,content:n}=e,i=(0,s.useMemo)(()=>({metadata:n.metadata,frontMatter:n.frontMatter,assets:n.assets,contentTitle:n.contentTitle,toc:n.toc}),[n]);return(0,r.jsx)(l.Provider,{value:i,children:t})}function c(){let e=(0,s.useContext)(l);if(null===e)throw new a.i6("DocProvider");return e}function d(){let{metadata:e,frontMatter:t,assets:n}=c();return(0,r.jsx)(i.d,{title:e.title,description:e.description,keywords:t.keywords,image:n.image??t.image})}var u=n(90496),m=n(28115),h=n(62742);function f(){let{metadata:e}=c();return(0,r.jsx)(h.Z,{className:"docusaurus-mt-lg",previous:e.previous,next:e.next})}var x=n(18219),j=n(4903),p=n(55951),b=n(47294),v=n(60114);function g(){let{metadata:e}=c(),{editUrl:t,lastUpdatedAt:n,lastUpdatedBy:s,tags:i}=e,a=i.length>0,l=!!(t||n||s);return a||l?(0,r.jsxs)("footer",{className:(0,u.Z)(p.k.docs.docFooter,"docusaurus-mt-lg"),children:[a&&(0,r.jsx)("div",{className:(0,u.Z)("row margin-top--sm",p.k.docs.docFooterTagsRow),children:(0,r.jsx)("div",{className:"col",children:(0,r.jsx)(b.Z,{tags:i})})}),l&&(0,r.jsx)(v.Z,{className:(0,u.Z)("margin-top--sm",p.k.docs.docFooterEditMetaRow),editUrl:t,lastUpdatedAt:n,lastUpdatedBy:s})]}):null}var N=n(57589);function Z(){let{toc:e,frontMatter:t}=c();return(0,r.jsx)(N.Z,{toc:e,minHeadingLevel:t.toc_min_heading_level,maxHeadingLevel:t.toc_max_heading_level,className:(0,u.Z)(p.k.docs.docTocMobile,"tocMobile_NSfz")})}var k=n(4458);function y(){let{toc:e,frontMatter:t}=c();return(0,r.jsx)(k.Z,{toc:e,minHeadingLevel:t.toc_min_heading_level,maxHeadingLevel:t.toc_max_heading_level,className:p.k.docs.docTocDesktop})}var C=n(57922),_=n(84015);function w(e){let{children:t}=e,n=function(){let{metadata:e,frontMatter:t,contentTitle:n}=c();return t.hide_title||void 0!==n?null:e.title}();return(0,r.jsxs)("div",{className:(0,u.Z)(p.k.docs.docMarkdown,"markdown"),children:[n&&(0,r.jsx)("header",{children:(0,r.jsx)(C.Z,{as:"h1",children:n})}),(0,r.jsx)(_.Z,{children:t})]})}var L=n(20012),B=n(74291);let T={docItemContainer:"docItemContainer_RhpI",docItemCol:"docItemCol_n6xZ"};function E(e){let{children:t}=e,n=function(){let{frontMatter:e,toc:t}=c(),n=(0,m.i)(),s=e.hide_table_of_contents,i=!s&&t.length>0;return{hidden:s,mobile:i?(0,r.jsx)(Z,{}):void 0,desktop:i&&("desktop"===n||"ssr"===n)?(0,r.jsx)(y,{}):void 0}}(),{metadata:s}=c();return(0,r.jsxs)("div",{className:"row",children:[(0,r.jsxs)("div",{className:(0,u.Z)("col",!n.hidden&&T.docItemCol),children:[(0,r.jsx)(B.Z,{metadata:s}),(0,r.jsx)(x.Z,{}),(0,r.jsxs)("div",{className:T.docItemContainer,children:[(0,r.jsxs)("article",{children:[(0,r.jsx)(L.Z,{}),(0,r.jsx)(j.Z,{}),n.mobile,(0,r.jsx)(w,{children:t}),(0,r.jsx)(g,{})]}),(0,r.jsx)(f,{})]})]}),n.desktop&&(0,r.jsx)("div",{className:"col col--3",children:n.desktop})]})}function I(e){let t=`docs-doc-id-${e.content.metadata.id}`,n=e.content;return(0,r.jsx)(o,{content:e.content,children:(0,r.jsxs)(i.FG,{className:t,children:[(0,r.jsx)(d,{}),(0,r.jsx)(E,{children:(0,r.jsx)(n,{})})]})})}},62742:function(e,t,n){n.d(t,{Z:()=>l});var r=n(85893);n(67294);var s=n(90496),i=n(77827),a=n(65773);function l(e){let{className:t,previous:n,next:l}=e;return(0,r.jsxs)("nav",{className:(0,s.Z)(t,"pagination-nav"),"aria-label":(0,i.I)({id:"theme.docs.paginator.navAriaLabel",message:"Docs pages",description:"The ARIA label for the docs pagination"}),children:[n&&(0,r.jsx)(a.Z,{...n,subLabel:(0,r.jsx)(i.Z,{id:"theme.docs.paginator.previous",description:"The label used to navigate to the previous doc",children:"Previous"})}),l&&(0,r.jsx)(a.Z,{...l,subLabel:(0,r.jsx)(i.Z,{id:"theme.docs.paginator.next",description:"The label used to navigate to the next doc",children:"Next"}),isNext:!0})]})}},4903:function(e,t,n){n.d(t,{Z:()=>o});var r=n(85893);n(67294);var s=n(90496),i=n(77827),a=n(55951),l=n(50223);function o(e){let{className:t}=e,n=(0,l.E)();return n.badge?(0,r.jsx)("span",{className:(0,s.Z)(t,a.k.docs.docVersionBadge,"badge badge--secondary"),children:(0,r.jsx)(i.Z,{id:"theme.docs.versionBadge.label",values:{versionLabel:n.label},children:"Version: {versionLabel}"})}):null}},18219:function(e,t,n){n.d(t,{Z:()=>j});var r=n(85893);n(67294);var s=n(90496),i=n(8156),a=n(35363),l=n(77827),o=n(90158),c=n(55951),d=n(99887),u=n(50223);let m={unreleased:function(e){let{siteTitle:t,versionMetadata:n}=e;return(0,r.jsx)(l.Z,{id:"theme.docs.versions.unreleasedVersionLabel",description:"The label used to tell the user that he's browsing an unreleased doc version",values:{siteTitle:t,versionLabel:(0,r.jsx)("b",{children:n.label})},children:"This is unreleased documentation for {siteTitle} {versionLabel} version."})},unmaintained:function(e){let{siteTitle:t,versionMetadata:n}=e;return(0,r.jsx)(l.Z,{id:"theme.docs.versions.unmaintainedVersionLabel",description:"The label used to tell the user that he's browsing an unmaintained doc version",values:{siteTitle:t,versionLabel:(0,r.jsx)("b",{children:n.label})},children:"This is documentation for {siteTitle} {versionLabel}, which is no longer actively maintained."})}};function h(e){let t=m[e.versionMetadata.banner];return(0,r.jsx)(t,{...e})}function f(e){let{versionLabel:t,to:n,onClick:s}=e;return(0,r.jsx)(l.Z,{id:"theme.docs.versions.latestVersionSuggestionLabel",description:"The label used to tell the user to check the latest version",values:{versionLabel:t,latestVersionLink:(0,r.jsx)("b",{children:(0,r.jsx)(a.Z,{to:n,onClick:s,children:(0,r.jsx)(l.Z,{id:"theme.docs.versions.latestVersionLinkLabel",description:"The label used for the latest version suggestion link label",children:"latest version"})})})},children:"For up-to-date documentation, see the {latestVersionLink} ({versionLabel})."})}function x(e){let{className:t,versionMetadata:n}=e,{siteConfig:{title:a}}=(0,i.Z)(),{pluginId:l}=(0,o.gA)({failfast:!0}),{savePreferredVersionName:u}=(0,d.J)(l),{latestDocSuggestion:m,latestVersionSuggestion:x}=(0,o.Jo)(l),j=m??x.docs.find(e=>e.id===x.mainDocId);return(0,r.jsxs)("div",{className:(0,s.Z)(t,c.k.docs.docVersionBanner,"alert alert--warning margin-bottom--md"),role:"alert",children:[(0,r.jsx)("div",{children:(0,r.jsx)(h,{siteTitle:a,versionMetadata:n})}),(0,r.jsx)("div",{className:"margin-top--md",children:(0,r.jsx)(f,{versionLabel:x.label,to:j.path,onClick:()=>u(x.name)})})]})}function j(e){let{className:t}=e,n=(0,u.E)();return n.banner?(0,r.jsx)(x,{className:t,versionMetadata:n}):null}},60114:function(e,t,n){n.d(t,{Z:()=>f});var r=n(85893);n(67294);var s=n(90496),i=n(77827),a=n(55951),l=n(35363);function o(e){let{className:t,...n}=e;return(0,r.jsx)("svg",{fill:"currentColor",height:"20",width:"20",viewBox:"0 0 40 40",className:(0,s.Z)("iconEdit_IMw_",t),"aria-hidden":"true",...n,children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"})})})}function c(e){let{editUrl:t}=e;return(0,r.jsxs)(l.Z,{to:t,className:a.k.common.editThisPage,children:[(0,r.jsx)(o,{}),(0,r.jsx)(i.Z,{id:"theme.common.editThisPage",description:"The link label to edit the current page",children:"Edit this page"})]})}var d=n(90177);function u(e){let{lastUpdatedAt:t}=e,n=new Date(t),s=(0,d.P)({day:"numeric",month:"short",year:"numeric",timeZone:"UTC"}).format(n);return(0,r.jsx)(i.Z,{id:"theme.lastUpdated.atDate",description:"The words used to describe on which date a page has been last updated",values:{date:(0,r.jsx)("b",{children:(0,r.jsx)("time",{dateTime:n.toISOString(),itemProp:"dateModified",children:s})})},children:" on {date}"})}function m(e){let{lastUpdatedBy:t}=e;return(0,r.jsx)(i.Z,{id:"theme.lastUpdated.byUser",description:"The words used to describe by who the page has been last updated",values:{user:(0,r.jsx)("b",{children:t})},children:" by {user}"})}function h(e){let{lastUpdatedAt:t,lastUpdatedBy:n}=e;return(0,r.jsxs)("span",{className:a.k.common.lastUpdated,children:[(0,r.jsx)(i.Z,{id:"theme.lastUpdated.lastUpdatedAtBy",description:"The sentence used to display when a page has been last updated, and by who",values:{atDate:t?(0,r.jsx)(u,{lastUpdatedAt:t}):"",byUser:n?(0,r.jsx)(m,{lastUpdatedBy:n}):""},children:"Last updated{atDate}{byUser}"}),!1]})}function f(e){let{className:t,editUrl:n,lastUpdatedAt:i,lastUpdatedBy:a}=e;return(0,r.jsxs)("div",{className:(0,s.Z)("row",t),children:[(0,r.jsx)("div",{className:"col",children:n&&(0,r.jsx)(c,{editUrl:n})}),(0,r.jsx)("div",{className:(0,s.Z)("col","lastUpdated_OHCJ"),children:(i||a)&&(0,r.jsx)(h,{lastUpdatedAt:i,lastUpdatedBy:a})})]})}},84015:function(e,t,n){n.d(t,{Z:()=>L});var r=n(85893),s=n(67294),i=n(80980),a=n(53327),l=n(27817);function o(e){return(0,r.jsx)("code",{...e})}function c(e){return void 0!==e.children&&s.Children.toArray(e.children).every(e=>"string"==typeof e&&!e.includes("\n"))?(0,r.jsx)(o,{...e}):(0,r.jsx)(l.Z,{...e})}var d=n(35363),u=n(2769);function m(e){let t=s.Children.toArray(e.children),n=t.find(e=>s.isValidElement(e)&&"summary"===e.type),i=(0,r.jsx)(r.Fragment,{children:t.filter(e=>e!==n)});return(0,r.jsx)(u.Z,{...e,summary:n,children:i})}var h=n(57922);function f(e){return(0,r.jsx)(h.Z,{...e})}var x=n(90496);let j={containsTaskList:"containsTaskList_k9gM"};var p=n(96700),b=n(49356),v=n(67490),g=n(85108),N=n(26378),Z=n(45245),k=n(57396);async function y(e){let{id:t,text:n,config:r}=e;k.Z.mermaidAPI.initialize(r);try{return await k.Z.render(t,n)}catch(e){throw document.querySelector(`#d${t}`)?.remove(),e}}function C(e){let{renderResult:t}=e,n=(0,s.useRef)(null);return(0,s.useEffect)(()=>{let e=n.current;t.bindFunctions?.(e)},[t]),(0,r.jsx)("div",{ref:n,className:"docusaurus-mermaid-container container_RUsj",dangerouslySetInnerHTML:{__html:t.svg}})}function _(e){let{value:t}=e,n=function(e){let{text:t,config:n}=e,[r,i]=(0,s.useState)(null),a=(0,s.useState)(`mermaid-svg-${Math.round(1e7*Math.random())}`)[0],l=function(){let{colorMode:e}=(0,Z.I)(),t=(0,N.L)().mermaid,n=t.theme[e],{options:r}=t;return(0,s.useMemo)(()=>({startOnLoad:!1,...r,theme:n}),[n,r])}(),o=n??l;return(0,s.useEffect)(()=>{y({id:a,text:t,config:o}).then(i).catch(e=>{i(()=>{throw e})})},[a,t,o]),r}({text:t});return null===n?null:(0,r.jsx)(C,{renderResult:n})}let w={...{Head:a.Z,details:m,Details:m,code:c,a:function(e){return(0,r.jsx)(d.Z,{...e})},pre:function(e){return(0,r.jsx)(r.Fragment,{children:e.children})},ul:function(e){return(0,r.jsx)("ul",{...e,className:function(e){if(void 0!==e)return(0,x.Z)(e,e?.includes("contains-task-list")&&j.containsTaskList)}(e.className)})},li:function(e){return(0,p.Z)().collectAnchor(e.id),(0,r.jsx)("li",{...e})},img:function(e){var t;return(0,r.jsx)("img",{decoding:"async",loading:"lazy",...e,className:(t=e.className,(0,x.Z)(t,"img_vXGZ"))})},h1:e=>(0,r.jsx)(f,{as:"h1",...e}),h2:e=>(0,r.jsx)(f,{as:"h2",...e}),h3:e=>(0,r.jsx)(f,{as:"h3",...e}),h4:e=>(0,r.jsx)(f,{as:"h4",...e}),h5:e=>(0,r.jsx)(f,{as:"h5",...e}),h6:e=>(0,r.jsx)(f,{as:"h6",...e}),admonition:b.Z,mermaid:function(e){return(0,r.jsx)(v.Z,{fallback:e=>(0,r.jsx)(g.Ac,{...e}),children:(0,r.jsx)(_,{...e})})}},Code:c,Highlight:function(e){let{children:t,color:n}=e;return(0,r.jsx)("span",{style:{backgroundColor:n,borderRadius:"2px",color:"#fff",padding:"0.2rem"},children:t})},TweetQuote:function(e){let{url:t,handle:n,name:s,job:i,children:a}=e,l=`https://unavatar.io/x/${n}`,o=`https://x.com/${n}`;return(0,r.jsxs)("figure",{className:"tweetQuote_h8Rz",children:[(0,r.jsx)("blockquote",{children:(0,r.jsx)(d.Z,{to:t,children:a})}),(0,r.jsx)("figcaption",{children:(0,r.jsx)(d.Z,{to:o,rel:"nofollow",children:(0,r.jsxs)("div",{className:"avatar",children:[(0,r.jsx)("img",{alt:s,className:(0,x.Z)("avatar__photo","avatarImg_b51M"),src:l}),(0,r.jsxs)("div",{className:(0,x.Z)("avatar__intro"),children:[(0,r.jsx)("strong",{className:"avatar__name",children:(0,r.jsx)("cite",{children:s})}),(0,r.jsx)("small",{className:"avatar__subtitle",itemProp:"description",children:i})]})]})})})]})}};function L(e){let{children:t}=e;return(0,r.jsx)(i.Z,{components:w,children:t})}},65773:function(e,t,n){n.d(t,{Z:()=>a});var r=n(85893);n(67294);var s=n(90496),i=n(35363);function a(e){let{permalink:t,title:n,subLabel:a,isNext:l}=e;return(0,r.jsxs)(i.Z,{className:(0,s.Z)("pagination-nav__link",l?"pagination-nav__link--next":"pagination-nav__link--prev"),to:t,children:[a&&(0,r.jsx)("div",{className:"pagination-nav__sublabel",children:a}),(0,r.jsx)("div",{className:"pagination-nav__label",children:n})]})}},4458:function(e,t,n){n.d(t,{Z:()=>a});var r=n(85893);n(67294);var s=n(90496),i=n(89477);function a(e){let{className:t,...n}=e;return(0,r.jsx)("div",{className:(0,s.Z)("tableOfContents_RLlU","thin-scrollbar",t),children:(0,r.jsx)(i.Z,{...n,linkClassName:"table-of-contents__link toc-highlight",linkActiveClassName:"table-of-contents__link--active"})})}},57589:function(e,t,n){n.d(t,{Z:()=>u});var r=n(85893);n(67294);var s=n(90496),i=n(97812),a=n(89477),l=n(77827);let o={tocCollapsibleButton:"tocCollapsibleButton_IbtT",tocCollapsibleButtonExpanded:"tocCollapsibleButtonExpanded_Nor3"};function c(e){let{collapsed:t,...n}=e;return(0,r.jsx)("button",{type:"button",...n,className:(0,s.Z)("clean-btn",o.tocCollapsibleButton,!t&&o.tocCollapsibleButtonExpanded,n.className),children:(0,r.jsx)(l.Z,{id:"theme.TOCCollapsible.toggleButtonLabel",description:"The label used by the button on the collapsible TOC component",children:"On this page"})})}let d={tocCollapsible:"tocCollapsible_BEWm",tocCollapsibleContent:"tocCollapsibleContent_FG8F",tocCollapsibleExpanded:"tocCollapsibleExpanded_FzA_"};function u(e){let{toc:t,className:n,minHeadingLevel:l,maxHeadingLevel:o}=e,{collapsed:u,toggleCollapsed:m}=(0,i.u)({initialState:!0});return(0,r.jsxs)("div",{className:(0,s.Z)(d.tocCollapsible,!u&&d.tocCollapsibleExpanded,n),children:[(0,r.jsx)(c,{collapsed:u,onClick:m}),(0,r.jsx)(i.z,{lazy:!0,className:d.tocCollapsibleContent,collapsed:u,children:(0,r.jsx)(a.Z,{toc:t,minHeadingLevel:l,maxHeadingLevel:o})})]})}},89477:function(e,t,n){n.d(t,{Z:()=>c});var r=n(85893),s=n(67294),i=n(26378);function a(e){let t=e.getBoundingClientRect();return t.top===t.bottom?a(e.parentNode):t}var l=n(35363);let o=s.memo(function e(t){let{toc:n,className:s,linkClassName:i,isChild:a}=t;return n.length?(0,r.jsx)("ul",{className:a?void 0:s,children:n.map(t=>(0,r.jsxs)("li",{children:[(0,r.jsx)(l.Z,{to:`#${t.id}`,className:i??void 0,dangerouslySetInnerHTML:{__html:t.value}}),(0,r.jsx)(e,{isChild:!0,toc:t.children,className:s,linkClassName:i})]},t.id))}):null});function c(e){let{toc:t,className:n="table-of-contents table-of-contents__left-border",linkClassName:l="table-of-contents__link",linkActiveClassName:c,minHeadingLevel:d,maxHeadingLevel:u,...m}=e,h=(0,i.L)(),f=d??h.tableOfContents.minHeadingLevel,x=u??h.tableOfContents.maxHeadingLevel,j=function(e){let{toc:t,minHeadingLevel:n,maxHeadingLevel:r}=e;return(0,s.useMemo)(()=>(function e(t){let{toc:n,minHeadingLevel:r,maxHeadingLevel:s}=t;return n.flatMap(t=>{let n=e({toc:t.children,minHeadingLevel:r,maxHeadingLevel:s});return t.level>=r&&t.level<=s?[{...t,children:n}]:n})})({toc:function(e){let t=e.map(e=>({...e,parentIndex:-1,children:[]})),n=Array(7).fill(-1);t.forEach((e,t)=>{let r=n.slice(2,e.level);e.parentIndex=Math.max(...r),n[e.level]=t});let r=[];return t.forEach(e=>{let{parentIndex:n,...s}=e;n>=0?t[n].children.push(s):r.push(s)}),r}(t),minHeadingLevel:n,maxHeadingLevel:r}),[t,n,r])}({toc:t,minHeadingLevel:f,maxHeadingLevel:x});var p=(0,s.useMemo)(()=>{if(l&&c)return{linkClassName:l,linkActiveClassName:c,minHeadingLevel:f,maxHeadingLevel:x}},[l,c,f,x]);let b=(0,s.useRef)(void 0),v=function(){let e=(0,s.useRef)(0),{navbar:{hideOnScroll:t}}=(0,i.L)();return(0,s.useEffect)(()=>{e.current=t?0:document.querySelector(".navbar").clientHeight},[t]),e}();return(0,s.useEffect)(()=>{if(!p)return()=>{};let{linkClassName:e,linkActiveClassName:t,minHeadingLevel:n,maxHeadingLevel:r}=p;function s(){let s=Array.from(document.getElementsByClassName(e)),i=function(e,t){let{anchorTopOffset:n}=t,r=e.find(e=>a(e).top>=n);if(r){var s;return(s=a(r)).top>0&&s.bottom<window.innerHeight/2?r:e[e.indexOf(r)-1]??null}return e[e.length-1]??null}(function(e){let{minHeadingLevel:t,maxHeadingLevel:n}=e,r=[];for(let e=t;e<=n;e+=1)r.push(`h${e}.anchor`);return Array.from(document.querySelectorAll(r.join()))}({minHeadingLevel:n,maxHeadingLevel:r}),{anchorTopOffset:v.current}),l=s.find(e=>i&&i.id===decodeURIComponent(e.href.substring(e.href.indexOf("#")+1)));s.forEach(e=>{e===l?(b.current&&b.current!==e&&b.current.classList.remove(t),e.classList.add(t),b.current=e):e.classList.remove(t)})}return document.addEventListener("scroll",s),document.addEventListener("resize",s),s(),()=>{document.removeEventListener("scroll",s),document.removeEventListener("resize",s)}},[p,v]),(0,r.jsx)(o,{toc:j,className:n,linkClassName:l,...m})}},63479:function(e,t,n){n.d(t,{Z:()=>l});var r=n(85893);n(67294);var s=n(90496),i=n(35363);let a={tag:"tag_Nd8t",tagRegular:"tagRegular_TiLs",tagWithCount:"tagWithCount_AQg7"};function l(e){let{permalink:t,label:n,count:l,description:o}=e;return(0,r.jsxs)(i.Z,{rel:"tag",href:t,title:o,className:(0,s.Z)(a.tag,l?a.tagWithCount:a.tagRegular),children:[n,l&&(0,r.jsx)("span",{children:l})]})}},47294:function(e,t,n){n.d(t,{Z:()=>l});var r=n(85893);n(67294);var s=n(90496),i=n(77827),a=n(63479);function l(e){let{tags:t}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("b",{children:(0,r.jsx)(i.Z,{id:"theme.tags.tagsListLabel",description:"The label alongside a tag list",children:"Tags:"})}),(0,r.jsx)("ul",{className:(0,s.Z)("tags_rTaS","padding--none","margin-left--sm"),children:t.map(e=>(0,r.jsx)("li",{className:"tag_l5va",children:(0,r.jsx)(a.Z,{...e})},e.permalink))})]})}},68746:function(e,t,n){n.d(t,{T$:()=>o,cI:()=>a,eU:()=>l,ht:()=>c,xo:()=>d});var r=n(85893);n(67294);var s=n(77827),i=n(53327);function a(){return(0,r.jsx)(s.Z,{id:"theme.contentVisibility.unlistedBanner.title",description:"The unlisted content banner title",children:"Unlisted page"})}function l(){return(0,r.jsx)(s.Z,{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."})}function o(){return(0,r.jsx)(i.Z,{children:(0,r.jsx)("meta",{name:"robots",content:"noindex, nofollow"})})}function c(){return(0,r.jsx)(s.Z,{id:"theme.contentVisibility.draftBanner.title",description:"The draft content banner title",children:"Draft page"})}function d(){return(0,r.jsx)(s.Z,{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."})}},90177:function(e,t,n){n.d(t,{P:()=>s});var r=n(8156);function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{i18n:{currentLocale:t}}=(0,r.Z)(),n=function(){let{i18n:{currentLocale:e,localeConfigs:t}}=(0,r.Z)();return t[e].calendar}();return new Intl.DateTimeFormat(t,{calendar:n,...e})}},56497:function(e,t,n){n.d(t,{Z:()=>i});var r=n(85893);n(67294);var s=n(71607);function i(e){let{children:t,fallback:n}=e;return(0,s.Z)()?(0,r.jsx)(r.Fragment,{children:t?.()}):n??null}},27817:function(e,t,n){n.d(t,{Z:()=>ex});var r={};n.r(r),n.d(r,{ButtonExample:()=>eu});var s=n(85893),i=n(67294),a=n(71607),l=n(90496),o=n(45245),c=n(26378);function d(){let{prism:e}=(0,c.L)(),{colorMode:t}=(0,o.I)(),n=e.theme,r=e.darkTheme||n;return"dark"===t?r:n}var u=n(55951),m=n(6324),h=n.n(m),f=n(50923);let x=/title=(?<quote>["'])(?<title>.*?)\1/,j=/\{(?<range>[\d,-]+)\}/,p={js:{start:"\\/\\/",end:""},jsBlock:{start:"\\/\\*",end:"\\*\\/"},jsx:{start:"\\{\\s*\\/\\*",end:"\\*\\/\\s*\\}"},bash:{start:"#",end:""},html:{start:"\x3c!--",end:"--\x3e"}},b={...p,lua:{start:"--",end:""},wasm:{start:"\\;\\;",end:""},tex:{start:"%",end:""},vb:{start:"['\u2018\u2019]",end:""},vbnet:{start:"(?:_\\s*)?['\u2018\u2019]",end:""},rem:{start:"[Rr][Ee][Mm]\\b",end:""},f90:{start:"!",end:""},ml:{start:"\\(\\*",end:"\\*\\)"},cobol:{start:"\\*>",end:""}},v=Object.keys(p);function g(e,t){let n=e.map(e=>{let{start:n,end:r}=b[e];return`(?:${n}\\s*(${t.flatMap(e=>[e.line,e.block?.start,e.block?.end].filter(Boolean)).join("|")})\\s*${r})`}).join("|");return RegExp(`^\\s*(?:${n})\\s*$`)}let N=(0,i.createContext)(null);function Z(e){let{metadata:t,wordWrap:n,children:r}=e,a=(0,i.useMemo)(()=>({metadata:t,wordWrap:n}),[t,n]);return(0,s.jsx)(N.Provider,{value:a,children:r})}function k(){let e=(0,i.useContext)(N);if(null===e)throw new f.i6("CodeBlockContextProvider");return e}function y(e){let{as:t,...n}=e,r=function(e){let t={color:"--prism-color",backgroundColor:"--prism-background-color"},n={};return Object.entries(e.plain).forEach(e=>{let[r,s]=e,i=t[r];i&&"string"==typeof s&&(n[i]=s)}),n}(d());return(0,s.jsx)(t,{...n,style:r,className:(0,l.Z)(n.className,"codeBlockContainer_jDV4",u.k.common.codeBlock)})}let C={codeBlock:"codeBlock_Gebt",codeBlockStandalone:"codeBlockStandalone_i_cY",codeBlockLines:"codeBlockLines_FJaf",codeBlockLinesWithNumbering:"codeBlockLinesWithNumbering_FU9Q"};function _(e){let{children:t,className:n}=e;return(0,s.jsx)(y,{as:"pre",tabIndex:0,className:(0,l.Z)(C.codeBlockStandalone,"thin-scrollbar",n),children:(0,s.jsx)("code",{className:C.codeBlockLines,children:t})})}let w={attributes:!0,characterData:!0,childList:!0,subtree:!0};function L(e){let{children:t}=e;return t}var B=n(7316);function T(e){let{line:t,token:n,...r}=e;return(0,s.jsx)("span",{...r})}let E={codeLine:"codeLine_qRmp",codeLineNumber:"codeLineNumber_dS_J",codeLineContent:"codeLineContent_XF5l"};function I(e){let{line:t,classNames:n,showLineNumbers:r,getLineProps:i,getTokenProps:a}=e,o=function(e){let t=1===e.length&&"\n"===e[0].content?e[0]:void 0;return t?[{...t,content:""}]:e}(t),c=i({line:o,className:(0,l.Z)(n,r&&E.codeLine)}),d=o.map((e,t)=>{let n=a({token:e});return(0,s.jsx)(T,{...n,line:o,token:e,children:n.children},t)});return(0,s.jsxs)("span",{...c,children:[r?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:E.codeLineNumber}),(0,s.jsx)("span",{className:E.codeLineContent,children:d})]}):d,(0,s.jsx)("br",{})]})}let M=i.forwardRef((e,t)=>(0,s.jsx)("pre",{ref:t,tabIndex:0,...e,className:(0,l.Z)(e.className,C.codeBlock,"thin-scrollbar")}));function A(e){let{metadata:t}=k();return(0,s.jsx)("code",{...e,className:(0,l.Z)(e.className,C.codeBlockLines,void 0!==t.lineNumbersStart&&C.codeBlockLinesWithNumbering),style:{...e.style,counterReset:void 0===t.lineNumbersStart?void 0:`line-count ${t.lineNumbersStart-1}`}})}function H(e){let{className:t}=e,{metadata:n,wordWrap:r}=k(),i=d(),{code:a,language:o,lineNumbersStart:c,lineClassNames:u}=n;return(0,s.jsx)(B.y$,{theme:i,code:a,language:o,children:e=>{let{className:n,style:i,tokens:a,getLineProps:o,getTokenProps:d}=e;return(0,s.jsx)(M,{ref:r.codeBlockRef,className:(0,l.Z)(t,n),style:i,children:(0,s.jsx)(A,{children:a.map((e,t)=>(0,s.jsx)(I,{line:e,getLineProps:o,getTokenProps:d,classNames:u[t],showLineNumbers:void 0!==c},t))})})}})}var S=n(56497),R=n(44771),z=n(77827);function F(e){let{className:t,...n}=e;return(0,s.jsx)("button",{type:"button",...n,className:(0,l.Z)("clean-btn",t)})}function U(e){return(0,s.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,s.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"})})}function V(e){return(0,s.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,s.jsx)("path",{fill:"currentColor",d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"})})}let $={copyButtonCopied:"copyButtonCopied_wDuR",copyButtonIcons:"copyButtonIcons_gMWc",copyButtonIcon:"copyButtonIcon_GXfb",copyButtonSuccessIcon:"copyButtonSuccessIcon_ktUX"};function D(e){let{className:t}=e,{copyCode:n,isCopied:r}=function(){let{metadata:{code:e}}=k(),[t,n]=(0,i.useState)(!1),r=(0,i.useRef)(void 0),s=(0,i.useCallback)(()=>{(0,R.Z)(e),n(!0),r.current=window.setTimeout(()=>{n(!1)},1e3)},[e]);return(0,i.useEffect)(()=>()=>window.clearTimeout(r.current),[]),{copyCode:s,isCopied:t}}();return(0,s.jsx)(F,{"aria-label":r?(0,z.I)({id:"theme.CodeBlock.copied",message:"Copied",description:"The copied button label on code blocks"}):(0,z.I)({id:"theme.CodeBlock.copyButtonAriaLabel",message:"Copy code to clipboard",description:"The ARIA label for copy code blocks button"}),title:(0,z.I)({id:"theme.CodeBlock.copy",message:"Copy",description:"The copy button label on code blocks"}),className:(0,l.Z)(t,$.copyButton,r&&$.copyButtonCopied),onClick:n,children:(0,s.jsxs)("span",{className:$.copyButtonIcons,"aria-hidden":"true",children:[(0,s.jsx)(U,{className:$.copyButtonIcon}),(0,s.jsx)(V,{className:$.copyButtonSuccessIcon})]})})}function O(e){return(0,s.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,s.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"})})}let W={wordWrapButtonIcon:"wordWrapButtonIcon___5r",wordWrapButtonEnabled:"wordWrapButtonEnabled_nam_"};function P(e){let{className:t}=e,{wordWrap:n}=k();if(!(n.isEnabled||n.isCodeScrollable))return!1;let r=(0,z.I)({id:"theme.CodeBlock.wordWrapToggle",message:"Toggle word wrap",description:"The title attribute for toggle word wrapping button of code block lines"});return(0,s.jsx)(F,{onClick:()=>n.toggle(),className:(0,l.Z)(t,n.isEnabled&&W.wordWrapButtonEnabled),"aria-label":r,title:r,children:(0,s.jsx)(O,{className:W.wordWrapButtonIcon,"aria-hidden":"true"})})}function q(e){let{className:t}=e;return(0,s.jsx)(S.Z,{children:()=>(0,s.jsxs)("div",{className:(0,l.Z)(t,"buttonGroup_KXnS"),children:[(0,s.jsx)(P,{}),(0,s.jsx)(D,{})]})})}let X={codeBlockContent:"codeBlockContent_cKMj",codeBlockTitle:"codeBlockTitle_U6Q0"};function Q(e){let{className:t}=e,{metadata:n}=k();return(0,s.jsxs)(y,{as:"div",className:(0,l.Z)(t,n.className),children:[n.title&&(0,s.jsx)("div",{className:X.codeBlockTitle,children:(0,s.jsx)(L,{children:n.title})}),(0,s.jsxs)("div",{className:X.codeBlockContent,children:[(0,s.jsx)(H,{}),(0,s.jsx)(q,{})]})]})}function G(e){let t=function(e){let{prism:t}=(0,c.L)();return function(e){var t,n,r;let s=(n=(t={language:e.language,defaultLanguage:e.defaultLanguage,className:e.className}).language??function(e){if(!e)return;let t=e.split(" ").find(e=>e.startsWith("language-"));return t?.replace(/language-/,"")}(t.className)??t.defaultLanguage,n?.toLowerCase()??"text"),{lineClassNames:i,code:a}=function(e,t){let n=e.replace(/\r?\n$/,"");return function(e,t){let{metastring:n,magicComments:r}=t;if(n&&j.test(n)){let t=n.match(j).groups.range;if(0===r.length)throw Error(`A highlight range has been given in code block's metastring (\`\`\` ${n}), but no magic comment config is available. Docusaurus applies the first magic comment entry's className for metastring ranges.`);let s=r[0].className;return{lineClassNames:Object.fromEntries(h()(t).filter(e=>e>0).map(e=>[e-1,[s]])),code:e}}return null}(n,{...t})??function(e,t){let{language:n,magicComments:r}=t;if(void 0===n)return{lineClassNames:{},code:e};let s=function(e,t){switch(e){case"js":case"javascript":case"ts":case"typescript":return g(["js","jsBlock"],t);case"jsx":case"tsx":return g(["js","jsBlock","jsx"],t);case"html":return g(["js","jsBlock","html"],t);case"python":case"py":case"bash":return g(["bash"],t);case"markdown":case"md":return g(["html","jsx","bash"],t);case"tex":case"latex":case"matlab":return g(["tex"],t);case"lua":case"haskell":return g(["lua"],t);case"sql":return g(["lua","jsBlock"],t);case"wasm":return g(["wasm"],t);case"vb":case"vba":case"visual-basic":return g(["vb","rem"],t);case"vbnet":return g(["vbnet","rem"],t);case"batch":return g(["rem"],t);case"basic":return g(["rem","f90"],t);case"fsharp":return g(["js","ml"],t);case"ocaml":case"sml":return g(["ml"],t);case"fortran":return g(["f90"],t);case"cobol":return g(["cobol"],t);default:return g(v,t)}}(n,r),i=e.split(/\r?\n/),a=Object.fromEntries(r.map(e=>[e.className,{start:0,range:""}])),l=Object.fromEntries(r.filter(e=>e.line).map(e=>{let{className:t,line:n}=e;return[n,t]})),o=Object.fromEntries(r.filter(e=>e.block).map(e=>{let{className:t,block:n}=e;return[n.start,t]})),c=Object.fromEntries(r.filter(e=>e.block).map(e=>{let{className:t,block:n}=e;return[n.end,t]}));for(let e=0;e<i.length;){let t=i[e].match(s);if(!t){e+=1;continue}let n=t.slice(1).find(e=>void 0!==e);l[n]?a[l[n]].range+=`${e},`:o[n]?a[o[n]].start=e:c[n]&&(a[c[n]].range+=`${a[c[n]].start}-${e-1},`),i.splice(e,1)}let d={};return Object.entries(a).forEach(e=>{let[t,{range:n}]=e;h()(n).forEach(e=>{d[e]??=[],d[e].push(t)})}),{code:i.join("\n"),lineClassNames:d}}(n,{...t})}(e.code,{metastring:e.metastring,magicComments:e.magicComments,language:s}),o=function(e){let{className:t,language:n}=e;return(0,l.Z)(t,n&&!t?.includes(`language-${n}`)&&`language-${n}`)}({className:e.className,language:s}),c=(r=e.metastring,(r?.match(x)?.groups.title??"")||e.title),d=function(e){let{showLineNumbers:t,metastring:n}=e;if("boolean"==typeof t)return t?1:void 0;if("number"==typeof t)return t;let r=n?.split(" ").find(e=>e.startsWith("showLineNumbers"));if(r)return r.startsWith("showLineNumbers=")?parseInt(r.replace("showLineNumbers=",""),10):1}({showLineNumbers:e.showLineNumbers,metastring:e.metastring});return{codeInput:e.code,code:a,className:o,language:s,title:c,lineNumbersStart:d,lineClassNames:i}}({code:e.children,className:e.className,metastring:e.metastring,magicComments:t.magicComments,defaultLanguage:t.defaultLanguage,language:e.language,title:e.title,showLineNumbers:e.showLineNumbers})}(e),n=function(){let[e,t]=(0,i.useState)(!1),[n,r]=(0,i.useState)(!1),s=(0,i.useRef)(null),a=(0,i.useCallback)(()=>{let n=s.current.querySelector("code");e?n.removeAttribute("style"):(n.style.whiteSpace="pre-wrap",n.style.overflowWrap="anywhere"),t(e=>!e)},[s,e]),l=(0,i.useCallback)(()=>{let{scrollWidth:e,clientWidth:t}=s.current;r(e>t||s.current.querySelector("code").hasAttribute("style"))},[s]),[o,c]=(0,i.useState)(),d=(0,i.useCallback)(()=>{c(s.current?.closest("[role=tabpanel][hidden]"))},[s,c]);return(0,i.useEffect)(()=>{d()},[d]),!function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:w,r=(0,f.zX)(t),s=(0,f.Ql)(n);(0,i.useEffect)(()=>{let t=new MutationObserver(r);return e&&t.observe(e,s),()=>t.disconnect()},[e,r,s])}(o,e=>{e.forEach(e=>{"attributes"===e.type&&"hidden"===e.attributeName&&(l(),d())})},{attributes:!0,characterData:!1,childList:!1,subtree:!1}),(0,i.useEffect)(()=>{l()},[e,l]),(0,i.useEffect)(()=>(window.addEventListener("resize",l,{passive:!0}),()=>{window.removeEventListener("resize",l)}),[l]),{codeBlockRef:s,isEnabled:e,isCodeScrollable:n,toggle:a}}();return(0,s.jsx)(Z,{metadata:t,wordWrap:n,children:(0,s.jsx)(Q,{})})}function J(e){let{children:t,...n}=e,r=(0,a.Z)(),l=i.Children.toArray(t).some(e=>(0,i.isValidElement)(e))?t:Array.isArray(t)?t.join(""):t;return(0,s.jsx)("string"==typeof l?G:_,{...n,children:l},String(r))}var K=n(10075);let Y=e=>`${e};`;function ee(e){let{code:t,children:n,...r}=e,i=d(),a=r.metastring?.includes("noInline")??!1;return(0,s.jsx)(K.nu,{noInline:a,theme:i,...r,code:t?.replace(/\n$/,""),transformCode:r.transformCode??Y,children:n})}function et(e){let{children:t}=e;return(0,s.jsx)("div",{className:"playgroundContainer_TDLX",children:t})}var en=n(85108),er=n(67490);function es(e){let{children:t}=e;return(0,s.jsx)("div",{className:(0,l.Z)("playgroundHeader_h_Hu"),children:t})}function ei(){return(0,s.jsx)("div",{children:"Loading..."})}function ea(){return(0,s.jsx)(S.Z,{fallback:(0,s.jsx)(ei,{}),children:()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(er.Z,{fallback:e=>(0,s.jsx)(en.Ac,{...e}),children:(0,s.jsx)(K.i5,{})}),(0,s.jsx)(K.IF,{})]})})}function el(){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(es,{children:(0,s.jsx)(z.Z,{id:"theme.Playground.result",description:"The result label of the live codeblocks",children:"Result"})}),(0,s.jsx)("div",{className:"playgroundPreview_u2xE",children:(0,s.jsx)(ea,{})})]})}function eo(){let e=(0,a.Z)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(es,{children:(0,s.jsx)(z.Z,{id:"theme.Playground.liveEditor",description:"The live editor label of the live codeblocks",children:"Live Editor"})}),(0,s.jsx)(K.uz,{className:"playgroundEditor_uqZ4"},String(e))]})}function ec(){let{playgroundPosition:e}=(0,c.L)().liveCodeBlock;return(0,s.jsx)(s.Fragment,{children:"top"===e?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(el,{}),(0,s.jsx)(eo,{})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(eo,{}),(0,s.jsx)(el,{})]})})}function ed(e){let{children:t,transformCode:n,...r}=e;return(0,s.jsx)(et,{children:(0,s.jsx)(ee,{code:t,...r,children:(0,s.jsx)(ec,{})})})}function eu(e){return(0,s.jsx)("button",{type:"button",...e,style:{backgroundColor:"white",color:"black",border:"solid red",borderRadius:20,padding:10,cursor:"pointer",...e.style}})}let em={React:i,...i,...r};function eh(e){return(0,s.jsx)(ed,{scope:em,...e})}function ef(e){return e.live?(0,s.jsx)(eh,{...e}):(0,s.jsx)(J,{...e})}function ex(e){return(0,s.jsx)(ef,{...e})}}}]);