docusaurus/assets/js/ccc49370.1b89eefe.js
2024-10-23 12:49:46 +00:00

4 lines
No EOL
52 KiB
JavaScript

"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([["2998"],{5666:function(e,t,n){n.d(t,{CS:()=>g,wj:()=>s,nO:()=>d,iZ:()=>p,n4:()=>c,Ne:()=>k,ci:()=>y,cH:()=>w});var r=n("24246"),a=n("27378"),l=n("50923"),i=n("3564");function s(){let e=(0,i.Z)(),t=e?.data?.blogMetadata;if(!t)throw Error("useBlogMetadata() can't be called on the current route because the blog metadata could not be found in route context");return t}let o=a.createContext(null);function c(e){let{children:t,content:n,isBlogPostPage:l=!1}=e,i=function(e){let{content:t,isBlogPostPage:n}=e;return(0,a.useMemo)(()=>({metadata:t.metadata,frontMatter:t.frontMatter,assets:t.assets,toc:t.toc,isBlogPostPage:n}),[t,n])}({content:n,isBlogPostPage:l});return(0,r.jsx)(o.Provider,{value:i,children:t})}function d(){let e=(0,a.useContext)(o);if(null===e)throw new l.i6("BlogPostProvider");return e}var u=n("83631"),m=n("8156");let h=e=>new Date(e).toISOString();function f(e){let t=e.map(j);return{author:1===t.length?t[0]:t}}function x(e,t,n){return e?{image:function(e){let{imageUrl:t,caption:n}=e;return{"@type":"ImageObject","@id":t,url:t,contentUrl:t,caption:n}}({imageUrl:t(e,{absolute:!0}),caption:`title image for the blog post: ${n}`})}:{}}function g(e){let{siteConfig:t}=(0,m.Z)(),{withBaseUrl:n}=(0,u.Cg)(),{metadata:{blogDescription:r,blogTitle:a,permalink:l}}=e,i=`${t.url}${l}`;return{"@context":"https://schema.org","@type":"Blog","@id":i,mainEntityOfPage:i,headline:a,description:r,blogPost:e.items.map(e=>(function(e,t,n){let{assets:r,frontMatter:a,metadata:l}=e,{date:i,title:s,description:o,lastUpdatedAt:c}=l,d=r.image??a.image,u=a.keywords??[],m=`${t.url}${l.permalink}`,g=c?h(c):void 0;return{"@type":"BlogPosting","@id":m,mainEntityOfPage:m,url:m,headline:s,name:s,description:o,datePublished:i,...g?{dateModified:g}:{},...f(l.authors),...x(d,n,s),...u?{keywords:u}:{}}})(e.content,t,n))}}function p(){let e=s(),{assets:t,metadata:n}=d(),{siteConfig:r}=(0,m.Z)(),{withBaseUrl:a}=(0,u.Cg)(),{date:l,title:i,description:o,frontMatter:c,lastUpdatedAt:g}=n,p=t.image??c.image,j=c.keywords??[],v=g?h(g):void 0,b=`${r.url}${n.permalink}`;return{"@context":"https://schema.org","@type":"BlogPosting","@id":b,mainEntityOfPage:b,url:b,headline:i,name:i,description:o,datePublished:l,...v?{dateModified:v}:{},...f(n.authors),...x(p,a,i),...j?{keywords:j}:{},isPartOf:{"@type":"Blog","@id":`${r.url}${e.blogBasePath}`,name:e.blogTitle}}}function j(e){return{"@type":"Person",...e.name?{name:e.name}:{},...e.title?{description:e.title}:{},...e.url?{url:e.url}:{},...e.email?{email:e.email}:{},...e.imageURL?{image:e.imageURL}:{}}}var v=n("3620"),b=n("35363"),Z=n("32263"),N=n("71208");function w(e){let{pathname:t}=(0,v.TH)();return(0,a.useMemo)(()=>e.filter(e=>{var n,r;return n=e,r=t,(!n.unlisted||!!(0,N.Mg)(n.permalink,r))&&!0}),[e,t])}function y(e){let t=Object.entries((0,Z.vM)(e,e=>`${new Date(e.date).getFullYear()}`));return t.reverse(),t}function k(e){let{items:t,ulClassName:n,liClassName:a,linkClassName:l,linkActiveClassName:i}=e;return(0,r.jsx)("ul",{className:n,children:t.map(e=>(0,r.jsx)("li",{className:a,children:(0,r.jsx)(b.Z,{isNavLink:!0,to:e.permalink,className:l,activeClassName:i,children:e.title})},e.permalink))})}},37796:function(e,t,n){n.d(t,{Z:function(){return a}});var r=n(24246);function a(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(27378)},49356:function(e,t,n){n.d(t,{Z:()=>C});var r=n("24246"),a=n("27378"),l=n("90496"),i=n("77827"),s=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:a}=e;return(0,r.jsx)("div",{className:(0,l.Z)(s.k.common.admonition,s.k.common.admonitionType(t),o.admonition,n),children:a})}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:a,children:l,className:i}=e;return(0,r.jsxs)(c,{type:t,className:i,children:[a||n?(0,r.jsx)(d,{title:a,icon:n}):null,(0,r.jsx)(u,{children:l})]})}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)(i.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,l.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)(i.Z,{id:"theme.admonition.tip",description:"The default label used for the Tip admonition (:::tip)",children:"tip"})};function g(e){return(0,r.jsx)(m,{...x,...e,className:(0,l.Z)("alert alert--success",e.className),children:e.children})}var p=n("37796");let j={icon:(0,r.jsx)(p.Z,{}),title:(0,r.jsx)(i.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,{...j,...e,className:(0,l.Z)("alert alert--info",e.className),children:e.children})}function b(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 Z={icon:(0,r.jsx)(b,{}),title:(0,r.jsx)(i.Z,{id:"theme.admonition.warning",description:"The default label used for the Warning admonition (:::warning)",children:"warning"})},N={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)(i.Z,{id:"theme.admonition.danger",description:"The default label used for the Danger admonition (:::danger)",children:"danger"})},w={icon:(0,r.jsx)(b,{}),title:(0,r.jsx)(i.Z,{id:"theme.admonition.caution",description:"The default label used for the Caution admonition (:::caution)",children:"caution"})},y={note:f,tip:g,info:v,warning:function(e){return(0,r.jsx)(m,{...Z,...e,className:(0,l.Z)("alert alert--warning",e.className),children:e.children})},danger:function(e){return(0,r.jsx)(m,{...N,...e,className:(0,l.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)(g,{title:"success",...e}),caution:function(e){return(0,r.jsx)(m,{...w,...e,className:(0,l.Z)("alert alert--warning",e.className),children:e.children})}};var k=n("57922");let _={...y,"my-custom-admonition":function(e){return(0,r.jsxs)("div",{style:{border:"solid red",padding:10},children:[(0,r.jsx)(k.Z,{as:"h5",style:{color:"blue",fontSize:30},children:e.title}),(0,r.jsx)("div",{children:e.children})]})}};function C(e){let t=function(e){let{mdxAdmonitionTitle:t,rest:n}=function(e){let t=a.Children.toArray(e),n=t.find(e=>a.isValidElement(e)&&"mdxAdmonitionTitle"===e.type),l=t.filter(e=>e!==n);return{mdxAdmonitionTitle:n?.props.children,rest:l.length>0?(0,r.jsx)(r.Fragment,{children:l}):null}}(e.children),l=e.title??t;return{...e,...l&&{title:l},children:n}}(e),n=function(e){let t=_[e];return t?t:(console.warn(`No admonition component found for admonition type "${e}". Using Info as fallback.`),_.info)}(t.type);return(0,r.jsx)(n,{...t})}},49162:function(e,t,n){n.d(t,{Z:()=>b});var r=n("24246");n("27378");var a=n("90496"),l=n("35363");let i="githubSvg_jqE4",s="xSvg_Q0g7",o=function(e){return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[(0,r.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,r.jsx)("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),(0,r.jsx)("path",{d:"M3.6 9h16.8"}),(0,r.jsx)("path",{d:"M3.6 15h16.8"}),(0,r.jsx)("path",{d:"M11.5 3a17 17 0 0 0 0 18"}),(0,r.jsx)("path",{d:"M12.5 3a17 17 0 0 1 0 18"})]})},c="authorSocials_tPnL",d="authorSocialLink_hEWM",u={twitter:{Icon:function(e){return(0,r.jsx)("svg",{viewBox:"0 0 256 209",width:"1em",height:"1em",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid",...e,children:(0,r.jsx)("path",{d:"M256 25.45c-9.42 4.177-19.542 7-30.166 8.27 10.845-6.5 19.172-16.793 23.093-29.057a105.183 105.183 0 0 1-33.351 12.745C205.995 7.201 192.346.822 177.239.822c-29.006 0-52.523 23.516-52.523 52.52 0 4.117.465 8.125 1.36 11.97-43.65-2.191-82.35-23.1-108.255-54.876-4.52 7.757-7.11 16.78-7.11 26.404 0 18.222 9.273 34.297 23.365 43.716a52.312 52.312 0 0 1-23.79-6.57c-.003.22-.003.44-.003.661 0 25.447 18.104 46.675 42.13 51.5a52.592 52.592 0 0 1-23.718.9c6.683 20.866 26.08 36.05 49.062 36.475-17.975 14.086-40.622 22.483-65.228 22.483-4.24 0-8.42-.249-12.529-.734 23.243 14.902 50.85 23.597 80.51 23.597 96.607 0 149.434-80.031 149.434-149.435 0-2.278-.05-4.543-.152-6.795A106.748 106.748 0 0 0 256 25.45",fill:"#55acee"})})},label:"Twitter"},github:{Icon:function(e){return(0,r.jsx)("svg",{viewBox:"0 0 256 250",width:"1em",height:"1em",...e,className:(0,a.Z)(e.className,i),xmlns:"http://www.w3.org/2000/svg",style:{"--dark":"#000","--light":"#fff"},preserveAspectRatio:"xMidYMid",children:(0,r.jsx)("path",{d:"M128.001 0C57.317 0 0 57.307 0 128.001c0 56.554 36.676 104.535 87.535 121.46 6.397 1.185 8.746-2.777 8.746-6.158 0-3.052-.12-13.135-.174-23.83-35.61 7.742-43.124-15.103-43.124-15.103-5.823-14.795-14.213-18.73-14.213-18.73-11.613-7.944.876-7.78.876-7.78 12.853.902 19.621 13.19 19.621 13.19 11.417 19.568 29.945 13.911 37.249 10.64 1.149-8.272 4.466-13.92 8.127-17.116-28.431-3.236-58.318-14.212-58.318-63.258 0-13.975 5-25.394 13.188-34.358-1.329-3.224-5.71-16.242 1.24-33.874 0 0 10.749-3.44 35.21 13.121 10.21-2.836 21.16-4.258 32.038-4.307 10.878.049 21.837 1.47 32.066 4.307 24.431-16.56 35.165-13.12 35.165-13.12 6.967 17.63 2.584 30.65 1.255 33.873 8.207 8.964 13.173 20.383 13.173 34.358 0 49.163-29.944 59.988-58.447 63.157 4.591 3.972 8.682 11.762 8.682 23.704 0 17.126-.148 30.91-.148 35.126 0 3.407 2.304 7.398 8.792 6.14C219.37 232.5 256 184.537 256 128.002 256 57.307 198.691 0 128.001 0Zm-80.06 182.34c-.282.636-1.283.827-2.194.39-.929-.417-1.45-1.284-1.15-1.922.276-.655 1.279-.838 2.205-.399.93.418 1.46 1.293 1.139 1.931Zm6.296 5.618c-.61.566-1.804.303-2.614-.591-.837-.892-.994-2.086-.375-2.66.63-.566 1.787-.301 2.626.591.838.903 1 2.088.363 2.66Zm4.32 7.188c-.785.545-2.067.034-2.86-1.104-.784-1.138-.784-2.503.017-3.05.795-.547 2.058-.055 2.861 1.075.782 1.157.782 2.522-.019 3.08Zm7.304 8.325c-.701.774-2.196.566-3.29-.49-1.119-1.032-1.43-2.496-.726-3.27.71-.776 2.213-.558 3.315.49 1.11 1.03 1.45 2.505.701 3.27Zm9.442 2.81c-.31 1.003-1.75 1.459-3.199 1.033-1.448-.439-2.395-1.613-2.103-2.626.301-1.01 1.747-1.484 3.207-1.028 1.446.436 2.396 1.602 2.095 2.622Zm10.744 1.193c.036 1.055-1.193 1.93-2.715 1.95-1.53.034-2.769-.82-2.786-1.86 0-1.065 1.202-1.932 2.733-1.958 1.522-.03 2.768.818 2.768 1.868Zm10.555-.405c.182 1.03-.875 2.088-2.387 2.37-1.485.271-2.861-.365-3.05-1.386-.184-1.056.893-2.114 2.376-2.387 1.514-.263 2.868.356 3.061 1.403Z"})})},label:"GitHub"},stackoverflow:{Icon:function(e){return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 169.61 200",width:"1em",height:"1em",...e,children:[(0,r.jsx)("path",{d:"M140.44 178.38v-48.65h21.61V200H0v-70.27h21.61v48.65z",fill:"#bcbbbb"}),(0,r.jsx)("path",{d:"M124.24 140.54l4.32-16.22-86.97-17.83-3.78 17.83zM49.7 82.16L130.72 120l7.56-16.22-81.02-37.83zm22.68-40l68.06 57.3 11.35-13.51-68.6-57.3-11.35 13.51zM116.14 0l-14.59 10.81 53.48 71.89 14.58-10.81zM37.81 162.16h86.43v-16.21H37.81z",fill:"#f48024"})]})},label:"Stack Overflow"},linkedin:{Icon:function(e){return(0,r.jsx)("svg",{width:"1em",height:"1em",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid",viewBox:"0 0 256 256",...e,children:(0,r.jsx)("path",{d:"M218.123 218.127h-37.931v-59.403c0-14.165-.253-32.4-19.728-32.4-19.756 0-22.779 15.434-22.779 31.369v60.43h-37.93V95.967h36.413v16.694h.51a39.907 39.907 0 0 1 35.928-19.733c38.445 0 45.533 25.288 45.533 58.186l-.016 67.013ZM56.955 79.27c-12.157.002-22.014-9.852-22.016-22.009-.002-12.157 9.851-22.014 22.008-22.016 12.157-.003 22.014 9.851 22.016 22.008A22.013 22.013 0 0 1 56.955 79.27m18.966 138.858H37.95V95.967h37.97v122.16ZM237.033.018H18.89C8.58-.098.125 8.161-.001 18.471v219.053c.122 10.315 8.576 18.582 18.89 18.474h218.144c10.336.128 18.823-8.139 18.966-18.474V18.454c-.147-10.33-8.635-18.588-18.966-18.453",fill:"#0A66C2"})})},label:"LinkedIn"},x:{Icon:function(e){return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 1200 1227",...e,className:(0,a.Z)(e.className,s),style:{"--dark":"#000","--light":"#fff"},children:(0,r.jsx)("path",{d:"M714.163 519.284 1160.89 0h-105.86L667.137 450.887 357.328 0H0l468.492 681.821L0 1226.37h105.866l409.625-476.152 327.181 476.152H1200L714.137 519.284h.026ZM569.165 687.828l-47.468-67.894-377.686-540.24h162.604l304.797 435.991 47.468 67.894 396.2 566.721H892.476L569.165 687.854v-.026Z"})})},label:"X"}};function m(e){var t;let{platform:n,link:i}=e;let{Icon:s,label:c}=u[t=n]??{Icon:o,label:t};return(0,r.jsx)(l.Z,{className:d,href:i,title:c,children:(0,r.jsx)(s,{className:(0,a.Z)(d)})})}function h(e){let{author:t}=e,n=Object.entries(t.socials??{});return(0,r.jsx)("div",{className:c,children:n.map(e=>{let[t,n]=e;return(0,r.jsx)(m,{platform:t,link:n},t)})})}var f=n("57922");let x={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_"};function g(e){return e.href?(0,r.jsx)(l.Z,{...e}):(0,r.jsx)(r.Fragment,{children:e.children})}function p(e){let{title:t}=e;return(0,r.jsx)("small",{className:x.authorTitle,title:t,children:t})}function j(e){let{name:t,as:n}=e;return n?(0,r.jsx)(f.Z,{as:n,className:x.authorName,children:t}):(0,r.jsx)("span",{className:x.authorName,children:t})}function v(e){let{count:t}=e;return(0,r.jsx)("span",{className:(0,a.Z)(x.authorBlogPostCount),children:t})}function b(e){let{as:t,author:n,className:l,count:i}=e,{name:s,title:o,url:c,imageURL:d,email:u,page:m}=n,f=m?.permalink||c||u&&`mailto:${u}`||void 0;return(0,r.jsxs)("div",{className:(0,a.Z)("avatar margin-bottom--sm",l,x[`author-as-${t}`]),children:[d&&(0,r.jsx)(g,{href:f,className:"avatar__photo-link",children:(0,r.jsx)("img",{className:(0,a.Z)("avatar__photo",x.authorImage),src:d,alt:s})}),(s||o)&&(0,r.jsxs)("div",{className:(0,a.Z)("avatar__intro",x.authorDetails),children:[(0,r.jsxs)("div",{className:"avatar__name",children:[s&&(0,r.jsx)(g,{href:f,children:(0,r.jsx)(j,{name:s,as:t})}),void 0!==i&&(0,r.jsx)(v,{count:i})]}),!!o&&(0,r.jsx)(p,{title:o}),(0,r.jsx)(h,{author:n})]})]})}},9942:function(e,t,n){n.d(t,{Z:()=>L});var r=n("24246"),a=n("27378"),l=n("90496"),i=n("98143"),s=n("28115"),o=n("77827"),c=n("5666"),d=n("26378"),u=n("57922");function m(e){let{year:t,yearGroupHeadingClassName:n,children:a}=e;return(0,r.jsxs)("div",{role:"group",children:[(0,r.jsx)(u.Z,{as:"h3",className:n,children:t}),a]})}let h=(0,a.memo)(function(e){let{items:t,yearGroupHeadingClassName:n,ListComponent:a}=e;if(!(0,d.L)().blog.sidebar.groupByYear)return(0,r.jsx)(a,{items:t});{let e=(0,c.ci)(t);return(0,r.jsx)(r.Fragment,{children:e.map(e=>{let[t,l]=e;return(0,r.jsx)(m,{year:t,yearGroupHeadingClassName:n,children:(0,r.jsx)(a,{items:l})},t)})})}}),f="sidebar_P3nc",x="sidebarItemTitle_VrjY",g="sidebarItemList_OSkG",p="sidebarItem_WJ0y",j="sidebarItemLink_Qrfg",v="sidebarItemLinkActive_nUeK",b="yearGroupHeading_lECJ",Z=e=>{let{items:t}=e;return(0,r.jsx)(c.Ne,{items:t,ulClassName:(0,l.Z)(g,"clean-list"),liClassName:p,linkClassName:j,linkActiveClassName:v})},N=(0,a.memo)(function(e){let{sidebar:t}=e,n=(0,c.cH)(t.items);return(0,r.jsx)("aside",{className:"col col--3",children:(0,r.jsxs)("nav",{className:(0,l.Z)(f,"thin-scrollbar"),"aria-label":(0,o.I)({id:"theme.blog.sidebar.navAriaLabel",message:"Blog recent posts navigation",description:"The ARIA label for recent posts in the blog sidebar"}),children:[(0,r.jsx)("div",{className:(0,l.Z)(x,"margin-bottom--md"),children:t.title}),(0,r.jsx)(h,{items:n,ListComponent:Z,yearGroupHeadingClassName:b})]})})});var w=n("44160");let y="yearGroupHeading_Ruz9",k=e=>{let{items:t}=e;return(0,r.jsx)(c.Ne,{items:t,ulClassName:"menu__list",liClassName:"menu__list-item",linkClassName:"menu__link",linkActiveClassName:"menu__link--active"})};function _(e){let{sidebar:t}=e,n=(0,c.cH)(t.items);return(0,r.jsx)(h,{items:n,ListComponent:k,yearGroupHeadingClassName:y})}let C=(0,a.memo)(function(e){return(0,r.jsx)(w.Zo,{component:_,props:e})});function B(e){let{sidebar:t}=e,n=(0,s.i)();return t?.items.length?"mobile"===n?(0,r.jsx)(C,{sidebar:t}):(0,r.jsx)(N,{sidebar:t}):null}function L(e){let{sidebar:t,toc:n,children:a,...s}=e,o=t&&t.items.length>0;return(0,r.jsx)(i.Z,{...s,children:(0,r.jsx)("div",{className:"container margin-vert--lg",children:(0,r.jsxs)("div",{className:"row",children:[(0,r.jsx)(B,{sidebar:t}),(0,r.jsx)("main",{className:(0,l.Z)("col",{"col--7":o,"col--9 col--offset-1":!o}),children:a}),n&&(0,r.jsx)("div",{className:"col col--2",children:n})]})})})}},76460:function(e,t,n){n.d(t,{Z:function(){return a}});var r=n(24246);function a(e){let{children:t,className:n}=e;return(0,r.jsx)("article",{className:n,children:t})}n(27378)},90437:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(24246);n(27378);var a=n(90496),l=n(59699),i=n(5666),s=n(84015);function o(e){let{children:t,className:n}=e,{isBlogPostPage:o}=(0,i.nO)();return(0,r.jsx)("div",{id:o?l.blogPostContainerID:void 0,className:(0,a.Z)("markdown",n),children:(0,r.jsx)(s.Z,{children:t})})}},54505:function(e,t,n){n.d(t,{Z:()=>h});var r=n("24246");n("27378");var a=n("90496"),l=n("77827"),i=n("11660"),s=n("90177"),o=n("5666");let c="container_x5Un";function d(e){let{readingTime:t}=e,n=function(){let{selectMessage:e}=(0,i.c)();return t=>{let n=Math.ceil(t);return e(n,(0,l.I)({id:"theme.blog.post.readingTime.plurals",description:'Pluralized label for "{readingTime} min read". 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 min read|{readingTime} min read"},{readingTime:n}))}}();return(0,r.jsx)(r.Fragment,{children:n(t)})}function u(e){let{date:t,formattedDate:n}=e;return(0,r.jsx)("time",{dateTime:t,children:n})}function m(){return(0,r.jsx)(r.Fragment,{children:" \xb7 "})}function h(e){let t,{className:n}=e,{metadata:l}=(0,o.nO)(),{date:i,readingTime:h}=l,f=(0,s.P)({day:"numeric",month:"long",year:"numeric",timeZone:"UTC"});return(0,r.jsxs)("div",{className:(0,a.Z)(c,"margin-vert--md",n),children:[(0,r.jsx)(u,{date:i,formattedDate:(t=i,f.format(new Date(t)))}),void 0!==h&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m,{}),(0,r.jsx)(d,{readingTime:h})]})]})}},37147:function(e,t,n){n.d(t,{Z:()=>o});var r=n("24246");n("27378");var a=n("90496"),l=n("35363"),i=n("5666");let s="title_UBNu";function o(e){let{className:t}=e,{metadata:n,isBlogPostPage:o}=(0,i.nO)(),{permalink:c,title:d}=n;return(0,r.jsx)(o?"h1":"h2",{className:(0,a.Z)(s,t),children:o?d:(0,r.jsx)(l.Z,{to:c,children:d})})}},80145:function(e,t,n){n.d(t,{Z:()=>N});var r=n("24246");n("27378");var a=n("90496"),l=n("5666"),i=n("76460"),s=n("37147"),o=n("54505"),c=n("49162");let d={authorCol:"authorCol_bvyx",imageOnlyAuthorRow:"imageOnlyAuthorRow_L2DM",imageOnlyAuthorCol:"imageOnlyAuthorCol_oyze"};function u(e){let{className:t}=e,{metadata:{authors:n},assets:i}=(0,l.nO)();if(0===n.length)return null;let s=n.every(e=>{let{name:t}=e;return!t}),o=1===n.length;return(0,r.jsx)("div",{className:(0,a.Z)("margin-top--md margin-bottom--sm",s?d.imageOnlyAuthorRow:"row",t),children:n.map((e,t)=>(0,r.jsx)("div",{className:(0,a.Z)(!s&&(o?"col col--12":"col col--6"),s?d.imageOnlyAuthorCol:d.authorCol),children:(0,r.jsx)(c.Z,{author:{...e,imageURL:i.authorsImageUrls[t]??e.imageURL}})},t))})}function m(){return(0,r.jsxs)("header",{children:[(0,r.jsx)(s.Z,{}),(0,r.jsx)(o.Z,{}),(0,r.jsx)(u,{})]})}var h=n("90437"),f=n("55951"),x=n("60114"),g=n("47294"),p=n("77827"),j=n("35363");function v(){return(0,r.jsx)("b",{children:(0,r.jsx)(p.Z,{id:"theme.blog.post.readMore",description:"The label used in blog post item excerpts to link to full blog posts",children:"Read more"})})}function b(e){let{blogPostTitle:t,...n}=e;return(0,r.jsx)(j.Z,{"aria-label":(0,p.I)({message:"Read more about {title}",id:"theme.blog.post.readMoreLabel",description:"The ARIA label for the link to full blog posts from excerpts"},{title:t}),...n,children:(0,r.jsx)(v,{})})}function Z(){let{metadata:e,isBlogPostPage:t}=(0,l.nO)(),{tags:n,title:i,editUrl:s,hasTruncateMarker:o,lastUpdatedBy:c,lastUpdatedAt:d}=e,u=!t&&o,m=n.length>0;if(!(m||u||s))return null;if(!t)return(0,r.jsxs)("footer",{className:"row docusaurus-mt-lg",children:[m&&(0,r.jsx)("div",{className:(0,a.Z)("col",{"col--9":u}),children:(0,r.jsx)(g.Z,{tags:n})}),u&&(0,r.jsx)("div",{className:(0,a.Z)("col text--right",{"col--3":m}),children:(0,r.jsx)(b,{blogPostTitle:i,to:e.permalink})})]});{let e=!!(s||d||c);return(0,r.jsxs)("footer",{className:"docusaurus-mt-lg",children:[m&&(0,r.jsx)("div",{className:(0,a.Z)("row","margin-top--sm",f.k.blog.blogFooterEditMetaRow),children:(0,r.jsx)("div",{className:"col",children:(0,r.jsx)(g.Z,{tags:n})})}),e&&(0,r.jsx)(x.Z,{className:(0,a.Z)("margin-top--sm",f.k.blog.blogFooterEditMetaRow),editUrl:s,lastUpdatedAt:d,lastUpdatedBy:c})]})}}function N(e){let{children:t,className:n}=e,s=function(){let{isBlogPostPage:e}=(0,l.nO)();return e?void 0:"margin-bottom--xl"}();return(0,r.jsxs)(i.Z,{className:(0,a.Z)(s,n),children:[(0,r.jsx)(m,{}),(0,r.jsx)(h.Z,{children:t}),(0,r.jsx)(Z,{})]})}},81061:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(24246);n(27378);var a=n(57335),l=n(5666);function i(){let{assets:e,metadata:t}=(0,l.nO)(),{title:n,description:i,date:s,tags:o,authors:c,frontMatter:d}=t,{keywords:u}=d,m=e.image??d.image;return(0,r.jsxs)(a.d,{title:n,description:i,keywords:u,image:m,children:[(0,r.jsx)("meta",{property:"og:type",content:"article"}),(0,r.jsx)("meta",{property:"article:published_time",content:s}),c.some(e=>e.url)&&(0,r.jsx)("meta",{property:"article:author",content:c.map(e=>e.url).filter(Boolean).join(",")}),o.length>0&&(0,r.jsx)("meta",{property:"article:tag",content:o.map(e=>e.label).join(",")})]})}},93363:function(e,t,n){n.r(t),n.d(t,{default:()=>v});var r=n("24246");n("27378");var a=n("90496"),l=n("57335"),i=n("55951"),s=n("5666"),o=n("9942"),c=n("80145"),d=n("77827"),u=n("65773");function m(e){let{nextItem:t,prevItem:n}=e;return(0,r.jsxs)("nav",{className:"pagination-nav docusaurus-mt-lg","aria-label":(0,d.I)({id:"theme.blog.post.paginator.navAriaLabel",message:"Blog post page navigation",description:"The ARIA label for the blog posts pagination"}),children:[n&&(0,r.jsx)(u.Z,{...n,subLabel:(0,r.jsx)(d.Z,{id:"theme.blog.post.paginator.newerPost",description:"The blog post button label to navigate to the newer/previous post",children:"Newer post"})}),t&&(0,r.jsx)(u.Z,{...t,subLabel:(0,r.jsx)(d.Z,{id:"theme.blog.post.paginator.olderPost",description:"The blog post button label to navigate to the older/next post",children:"Older post"}),isNext:!0})]})}var h=n("81061"),f=n("53327");function x(){let e=(0,s.iZ)();return(0,r.jsx)(f.Z,{children:(0,r.jsx)("script",{type:"application/ld+json",children:JSON.stringify(e)})})}var g=n("4458"),p=n("74291");function j(e){let{sidebar:t,children:n}=e,{metadata:a,toc:l}=(0,s.nO)(),{nextItem:i,prevItem:d,frontMatter:u}=a,{hide_table_of_contents:h,toc_min_heading_level:f,toc_max_heading_level:x}=u;return(0,r.jsxs)(o.Z,{sidebar:t,toc:!h&&l.length>0?(0,r.jsx)(g.Z,{toc:l,minHeadingLevel:f,maxHeadingLevel:x}):void 0,children:[(0,r.jsx)(p.Z,{metadata:a}),(0,r.jsx)(c.Z,{children:n}),(i||d)&&(0,r.jsx)(m,{nextItem:i,prevItem:d})]})}function v(e){let t=e.content;return(0,r.jsx)(s.n4,{content:e.content,isBlogPostPage:!0,children:(0,r.jsxs)(l.FG,{className:(0,a.Z)(i.k.wrapper.blogPages,i.k.page.blogPostPage),children:[(0,r.jsx)(h.Z,{}),(0,r.jsx)(x,{}),(0,r.jsx)(j,{sidebar:e.sidebar,children:(0,r.jsx)(t,{})})]})})}},12221:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(24246);n(27378);var a=n(90496),l=n(68746),i=n(55951),s=n(49356);function o(e){let{className:t}=e;return(0,r.jsx)(s.Z,{type:"caution",title:(0,r.jsx)(l.cI,{}),className:(0,a.Z)(t,i.k.common.unlistedBanner),children:(0,r.jsx)(l.eU,{})})}function c(e){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.T$,{}),(0,r.jsx)(o,{...e})]})}},74291:function(e,t,n){n.d(t,{Z:()=>d});var r=n("24246");n("27378");var a=n("90496"),l=n("68746"),i=n("55951"),s=n("49356");function o(e){let{className:t}=e;return(0,r.jsx)(s.Z,{type:"caution",title:(0,r.jsx)(l.ht,{}),className:(0,a.Z)(t,i.k.common.draftBanner),children:(0,r.jsx)(l.xo,{})})}var c=n("12221");function d(e){let{metadata:t}=e,{unlisted:n,frontMatter:a}=t;return(0,r.jsxs)(r.Fragment,{children:[(n||a.unlisted)&&(0,r.jsx)(c.Z,{}),a.draft&&(0,r.jsx)(o,{})]})}},2769:function(e,t,n){n.d(t,{Z:()=>h});var r=n("24246"),a=n("27378"),l=n("90496"),i=n("96700"),s=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,i.Z)().collectAnchor(u.id);let m=(0,s.Z)(),h=(0,a.useRef)(null),{collapsed:f,setCollapsed:x}=(0,o.u)({initialState:!u.open}),[g,p]=(0,a.useState)(u.open),j=a.isValidElement(t)?t:(0,r.jsx)("summary",{children:t??"Details"});return(0,r.jsxs)("details",{...u,ref:h,open:g,"data-collapsed":f,className:(0,l.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;if(!!(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:[j,(0,r.jsx)(o.z,{lazy:!1,collapsed:f,disableSSRStyle:!0,onCollapseTransitionEnd:e=>{x(e),p(!e)},children:(0,r.jsx)("div",{className:c.collapsibleContent,children:n})})]})}let m="details_Cn_P";function h(e){let{...t}=e;return(0,r.jsx)(u,{...t,className:(0,l.Z)("alert alert--info",m,t.className)})}},60114:function(e,t,n){n.d(t,{Z:()=>g});var r=n("24246");n("27378");var a=n("90496"),l=n("77827"),i=n("55951"),s=n("35363");let o="iconEdit_IMw_";function c(e){let{className:t,...n}=e;return(0,r.jsx)("svg",{fill:"currentColor",height:"20",width:"20",viewBox:"0 0 40 40",className:(0,a.Z)(o,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 d(e){let{editUrl:t}=e;return(0,r.jsxs)(s.Z,{to:t,className:i.k.common.editThisPage,children:[(0,r.jsx)(c,{}),(0,r.jsx)(l.Z,{id:"theme.common.editThisPage",description:"The link label to edit the current page",children:"Edit this page"})]})}var u=n("90177");function m(e){let{lastUpdatedAt:t}=e,n=new Date(t),a=(0,u.P)({day:"numeric",month:"short",year:"numeric",timeZone:"UTC"}).format(n);return(0,r.jsx)(l.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:a})})},children:" on {date}"})}function h(e){let{lastUpdatedBy:t}=e;return(0,r.jsx)(l.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 f(e){let{lastUpdatedAt:t,lastUpdatedBy:n}=e;return(0,r.jsxs)("span",{className:i.k.common.lastUpdated,children:[(0,r.jsx)(l.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)(m,{lastUpdatedAt:t}):"",byUser:n?(0,r.jsx)(h,{lastUpdatedBy:n}):""},children:"Last updated{atDate}{byUser}"}),!1]})}let x="lastUpdated_OHCJ";function g(e){let{className:t,editUrl:n,lastUpdatedAt:l,lastUpdatedBy:i}=e;return(0,r.jsxs)("div",{className:(0,a.Z)("row",t),children:[(0,r.jsx)("div",{className:"col",children:n&&(0,r.jsx)(d,{editUrl:n})}),(0,r.jsx)("div",{className:(0,a.Z)("col",x),children:(l||i)&&(0,r.jsx)(f,{lastUpdatedAt:l,lastUpdatedBy:i})})]})}},84015:function(e,t,n){n.d(t,{Z:()=>E});var r=n("24246"),a=n("27378"),l=n("80980"),i=n("53327"),s=n("95998");function o(e){return(0,r.jsx)("code",{...e})}function c(e){var t;return void 0!==(t=e).children&&a.Children.toArray(t.children).every(e=>"string"==typeof e&&!e.includes("\n"))?(0,r.jsx)(o,{...e}):(0,r.jsx)(s.Z,{...e})}var d=n("35363"),u=n("2769");function m(e){let t=a.Children.toArray(e.children),n=t.find(e=>a.isValidElement(e)&&"summary"===e.type),l=(0,r.jsx)(r.Fragment,{children:t.filter(e=>e!==n)});return(0,r.jsx)(u.Z,{...e,summary:n,children:l})}var h=n("57922");function f(e){return(0,r.jsx)(h.Z,{...e})}var x=n("90496");let g={containsTaskList:"containsTaskList_k9gM"};var p=n("96700");let j="img_vXGZ";var v=n("49356"),b=n("67490"),Z=n("85108"),N=n("26378"),w=n("45245"),y=n("57396");async function k(e){let{id:t,text:n,config:r}=e;y.Z.mermaidAPI.initialize(r);try{return await y.Z.render(t,n)}catch(e){throw document.querySelector(`#d${t}`)?.remove(),e}}let _="container_RUsj";function C(e){let{renderResult:t}=e,n=(0,a.useRef)(null);return(0,a.useEffect)(()=>{let e=n.current;t.bindFunctions?.(e)},[t]),(0,r.jsx)("div",{ref:n,className:`docusaurus-mermaid-container ${_}`,dangerouslySetInnerHTML:{__html:t.svg}})}function B(e){let{value:t}=e,n=function(e){let{text:t,config:n}=e,[r,l]=(0,a.useState)(null),i=(0,a.useRef)(`mermaid-svg-${Math.round(1e7*Math.random())}`).current,s=function(){let{colorMode:e}=(0,w.I)(),t=(0,N.L)().mermaid,n=t.theme[e],{options:r}=t;return(0,a.useMemo)(()=>({startOnLoad:!1,...r,theme:n}),[n,r])}(),o=n??s;return(0,a.useEffect)(()=>{k({id:i,text:t,config:o}).then(l).catch(e=>{l(()=>{throw e})})},[i,t,o]),r}({text:t});return null===n?null:(0,r.jsx)(C,{renderResult:n})}let L={Head:i.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")&&g.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,j))})},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:v.Z,mermaid:function(e){return(0,r.jsx)(b.Z,{fallback:e=>(0,r.jsx)(Z.Ac,{...e}),children:(0,r.jsx)(B,{...e})})}},M="tweetQuote_h8Rz",T="avatarImg_b51M",I={...L,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:a,job:l,children:i}=e,s=`https://unavatar.io/x/${n}`,o=`https://x.com/${n}`;return(0,r.jsxs)("figure",{className:M,children:[(0,r.jsx)("blockquote",{children:(0,r.jsx)(d.Z,{to:t,children:i})}),(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:a,className:(0,x.Z)("avatar__photo",T),src:s}),(0,r.jsxs)("div",{className:(0,x.Z)("avatar__intro"),children:[(0,r.jsx)("strong",{className:"avatar__name",children:(0,r.jsx)("cite",{children:a})}),(0,r.jsx)("small",{className:"avatar__subtitle",itemProp:"description",children:l})]})]})})})]})}};function E(e){let{children:t}=e;return(0,r.jsx)(l.Z,{components:I,children:t})}},65773:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(24246);n(27378);var a=n(90496),l=n(35363);function i(e){let{permalink:t,title:n,subLabel:i,isNext:s}=e;return(0,r.jsxs)(l.Z,{className:(0,a.Z)("pagination-nav__link",s?"pagination-nav__link--next":"pagination-nav__link--prev"),to:t,children:[i&&(0,r.jsx)("div",{className:"pagination-nav__sublabel",children:i}),(0,r.jsx)("div",{className:"pagination-nav__label",children:n})]})}},4458:function(e,t,n){n.d(t,{Z:()=>s});var r=n("24246");n("27378");var a=n("90496"),l=n("89477");let i="tableOfContents_RLlU";function s(e){let{className:t,...n}=e;return(0,r.jsx)("div",{className:(0,a.Z)(i,"thin-scrollbar",t),children:(0,r.jsx)(l.Z,{...n,linkClassName:"table-of-contents__link toc-highlight",linkActiveClassName:"table-of-contents__link--active"})})}},89477:function(e,t,n){n.d(t,{Z:()=>c});var r=n("24246"),a=n("27378"),l=n("26378");function i(e){let t=e.getBoundingClientRect();return t.top===t.bottom?i(e.parentNode):t}var s=n("35363");let o=a.memo(function e(t){let{toc:n,className:a,linkClassName:l,isChild:i}=t;return n.length?(0,r.jsx)("ul",{className:i?void 0:a,children:n.map(t=>(0,r.jsxs)("li",{children:[(0,r.jsx)(s.Z,{to:`#${t.id}`,className:l??void 0,dangerouslySetInnerHTML:{__html:t.value}}),(0,r.jsx)(e,{isChild:!0,toc:t.children,className:a,linkClassName:l})]},t.id))}):null});function c(e){let{toc:t,className:n="table-of-contents table-of-contents__left-border",linkClassName:s="table-of-contents__link",linkActiveClassName:c,minHeadingLevel:d,maxHeadingLevel:u,...m}=e,h=(0,l.L)(),f=d??h.tableOfContents.minHeadingLevel,x=u??h.tableOfContents.maxHeadingLevel,g=function(e){let{toc:t,minHeadingLevel:n,maxHeadingLevel:r}=e;return(0,a.useMemo)(()=>(function e(t){let{toc:n,minHeadingLevel:r,maxHeadingLevel:a}=t;return n.flatMap(t=>{var n;let l=e({toc:t.children,minHeadingLevel:r,maxHeadingLevel:a});return(n=t).level>=r&&n.level<=a?[{...t,children:l}]:l})})({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,...a}=e;n>=0?t[n].children.push(a):r.push(a)}),r}(t),minHeadingLevel:n,maxHeadingLevel:r}),[t,n,r])}({toc:t,minHeadingLevel:f,maxHeadingLevel:x});return!function(e){let t=(0,a.useRef)(void 0),n=function(){let e=(0,a.useRef)(0),{navbar:{hideOnScroll:t}}=(0,l.L)();return(0,a.useEffect)(()=>{e.current=t?0:document.querySelector(".navbar").clientHeight},[t]),e}();(0,a.useEffect)(()=>{if(!e)return()=>{};let{linkClassName:r,linkActiveClassName:a,minHeadingLevel:l,maxHeadingLevel:s}=e;function o(){var e;let o=(e=r,Array.from(document.getElementsByClassName(e))),c=function(e,t){let{anchorTopOffset:n}=t,r=e.find(e=>i(e).top>=n);if(r){var a;return(a=i(r)).top>0&&a.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:l,maxHeadingLevel:s}),{anchorTopOffset:n.current}),d=o.find(e=>{var t;return c&&c.id===decodeURIComponent((t=e).href.substring(t.href.indexOf("#")+1))});o.forEach(e=>{var n;n=e,e===d?(t.current&&t.current!==n&&t.current.classList.remove(a),n.classList.add(a),t.current=n):n.classList.remove(a)})}return document.addEventListener("scroll",o),document.addEventListener("resize",o),o(),()=>{document.removeEventListener("scroll",o),document.removeEventListener("resize",o)}},[e,n])}((0,a.useMemo)(()=>{if(s&&c)return{linkClassName:s,linkActiveClassName:c,minHeadingLevel:f,maxHeadingLevel:x}},[s,c,f,x])),(0,r.jsx)(o,{toc:g,className:n,linkClassName:s,...m})}},63479:function(e,t,n){n.d(t,{Z:()=>s});var r=n("24246");n("27378");var a=n("90496"),l=n("35363");let i={tag:"tag_Nd8t",tagRegular:"tagRegular_TiLs",tagWithCount:"tagWithCount_AQg7"};function s(e){let{permalink:t,label:n,count:s,description:o}=e;return(0,r.jsxs)(l.Z,{href:t,title:o,className:(0,a.Z)(i.tag,s?i.tagWithCount:i.tagRegular),children:[n,s&&(0,r.jsx)("span",{children:s})]})}},47294:function(e,t,n){n.d(t,{Z:()=>c});var r=n("24246");n("27378");var a=n("90496"),l=n("77827"),i=n("63479");let s="tags_rTaS",o="tag_l5va";function c(e){let{tags:t}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("b",{children:(0,r.jsx)(l.Z,{id:"theme.tags.tagsListLabel",description:"The label alongside a tag list",children:"Tags:"})}),(0,r.jsx)("ul",{className:(0,a.Z)(s,"padding--none","margin-left--sm"),children:t.map(e=>(0,r.jsx)("li",{className:o,children:(0,r.jsx)(i.Z,{...e})},e.permalink))})]})}},68746:function(e,t,n){n.d(t,{T$:function(){return o},cI:function(){return i},eU:function(){return s},ht:function(){return c},xo:function(){return d}});var r=n(24246);n(27378);var a=n(77827),l=n(53327);function i(){return(0,r.jsx)(a.Z,{id:"theme.contentVisibility.unlistedBanner.title",description:"The unlisted content banner title",children:"Unlisted page"})}function s(){return(0,r.jsx)(a.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)(l.Z,{children:(0,r.jsx)("meta",{name:"robots",content:"noindex, nofollow"})})}function c(){return(0,r.jsx)(a.Z,{id:"theme.contentVisibility.draftBanner.title",description:"The draft content banner title",children:"Draft page"})}function d(){return(0,r.jsx)(a.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:function(){return a}});var r=n(8156);function a(){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})}},11660:function(e,t,n){n.d(t,{c:function(){return o}});var r=n(27378),a=n(8156);let l=["zero","one","two","few","many","other"];function i(e){return l.filter(t=>e.includes(t))}let s={locale:"en",pluralForms:i(["one","other"]),select:e=>1===e?"one":"other"};function o(){let e=function(){let{i18n:{currentLocale:e}}=(0,a.Z)();return(0,r.useMemo)(()=>{try{return function(e){let t=new Intl.PluralRules(e);return{locale:e,pluralForms:i(t.resolvedOptions().pluralCategories),select:e=>t.select(e)}}(e)}catch(t){return console.error(`Failed to use Intl.PluralRules for locale "${e}".
Docusaurus will fallback to the default (English) implementation.
Error: ${t.message}
`),s}},[e])}();return{selectMessage:(t,n)=>(function(e,t,n){let r=e.split("|");if(1===r.length)return r[0];r.length>n.pluralForms.length&&console.error(`For locale=${n.locale}, a maximum of ${n.pluralForms.length} plural forms are expected (${n.pluralForms.join(",")}), but the message contains ${r.length}: ${e}`);let a=n.select(t);return r[Math.min(n.pluralForms.indexOf(a),r.length-1)]})(n,t,e)}}},56497:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(24246);n(27378);var a=n(71607);function l(e){let{children:t,fallback:n}=e;return(0,a.Z)()?(0,r.jsx)(r.Fragment,{children:t?.()}):n??null}},95998:function(e,t,n){n.d(t,{Z:()=>ei});var r,a={};n.r(a),n.d(a,{ButtonExample:()=>M});var l=n("24246"),i=n("27378"),s=n("90496"),o=n("71607"),c=n("10075"),d=n("77827"),u=n("8156"),m=n("56497"),h=n("85108"),f=n("45245"),x=n("26378");function g(){let{prism:e}=(0,x.L)(),{colorMode:t}=(0,f.I)(),n=e.theme,r=e.darkTheme||n;return"dark"===t?r:n}var p=n("67490");let j="playgroundContainer_6Ior",v="playgroundHeader_Tvsk",b="playgroundEditor_TySg",Z="playgroundPreview_mApW";function N(e){let{children:t}=e;return(0,l.jsx)("div",{className:(0,s.Z)(v),children:t})}function w(){return(0,l.jsx)("div",{children:"Loading..."})}function y(){return(0,l.jsx)(m.Z,{fallback:(0,l.jsx)(w,{}),children:()=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(p.Z,{fallback:e=>(0,l.jsx)(h.Ac,{...e}),children:(0,l.jsx)(c.i5,{})}),(0,l.jsx)(c.IF,{})]})})}function k(){return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(N,{children:(0,l.jsx)(d.Z,{id:"theme.Playground.result",description:"The result label of the live codeblocks",children:"Result"})}),(0,l.jsx)("div",{className:Z,children:(0,l.jsx)(y,{})})]})}function _(){let e=(0,o.Z)();return(0,l.jsx)(c.uz,{className:b},String(e))}function C(){return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(N,{children:(0,l.jsx)(d.Z,{id:"theme.Playground.liveEditor",description:"The live editor label of the live codeblocks",children:"Live Editor"})}),(0,l.jsx)(_,{})]})}let B=e=>`${e};`;function L(e){let{children:t,transformCode:n,...r}=e,{siteConfig:{themeConfig:a}}=(0,u.Z)(),{liveCodeBlock:{playgroundPosition:i}}=a,s=g(),o=r.metastring?.includes("noInline")??!1;return(0,l.jsx)("div",{className:j,children:(0,l.jsx)(c.nu,{code:t?.replace(/\n$/,""),noInline:o,transformCode:n??B,theme:s,...r,children:"top"===i?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(k,{}),(0,l.jsx)(C,{})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(C,{}),(0,l.jsx)(k,{})]})})})}function M(e){return(0,l.jsx)("button",{type:"button",...e,style:{backgroundColor:"white",color:"black",border:"solid red",borderRadius:20,padding:10,cursor:"pointer",...e.style}})}let T={React:i,...i,...a};var I=n("55951"),E=n("6324"),A=n.n(E);let H=/title=(?<quote>["'])(?<title>.*?)\1/,R=/\{(?<range>[\d,-]+)\}/,O={js:{start:"\\/\\/",end:""},jsBlock:{start:"\\/\\*",end:"\\*\\/"},jsx:{start:"\\{\\s*\\/\\*",end:"\\*\\/\\s*\\}"},bash:{start:"#",end:""},html:{start:"\x3c!--",end:"--\x3e"}},P={...O,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:""}},S=Object.keys(O);function z(e,t){let n=e.map(e=>{let{start:n,end:r}=P[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 $="codeBlockContainer_jDV4";function U(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,a]=e,l=t[r];l&&"string"==typeof a&&(n[l]=a)}),n}(g());return(0,l.jsx)(t,{...n,style:r,className:(0,s.Z)(n.className,$,I.k.common.codeBlock)})}let F={codeBlockContent:"codeBlockContent_vx7S",codeBlockTitle:"codeBlockTitle_bdru",codeBlock:"codeBlock_Gebt",codeBlockStandalone:"codeBlockStandalone_i_cY",codeBlockLines:"codeBlockLines_FJaf",codeBlockLinesWithNumbering:"codeBlockLinesWithNumbering_FU9Q",buttonGroup:"buttonGroup_cUGO"};function D(e){let{children:t,className:n}=e;return(0,l.jsx)(U,{as:"pre",tabIndex:0,className:(0,s.Z)(F.codeBlockStandalone,"thin-scrollbar",n),children:(0,l.jsx)("code",{className:F.codeBlockLines,children:t})})}var V=n("50923");let W={attributes:!0,characterData:!0,childList:!0,subtree:!0};var G=n("7316");let q={codeLine:"codeLine_qRmp",codeLineNumber:"codeLineNumber_dS_J",codeLineContent:"codeLineContent_XF5l"};function Q(e){let{line:t,classNames:n,showLineNumbers:r,getLineProps:a,getTokenProps:i}=e;1===t.length&&"\n"===t[0].content&&(t[0].content="");let o=a({line:t,className:(0,s.Z)(n,r&&q.codeLine)}),c=t.map((e,t)=>(0,l.jsx)("span",{...i({token:e})},t));return(0,l.jsxs)("span",{...o,children:[r?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:q.codeLineNumber}),(0,l.jsx)("span",{className:q.codeLineContent,children:c})]}):c,(0,l.jsx)("br",{})]})}var Y=n("44771");function X(e){return(0,l.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,l.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 J(e){return(0,l.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,l.jsx)("path",{fill:"currentColor",d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"})})}let K={copyButtonCopied:"copyButtonCopied_OkN_",copyButtonIcons:"copyButtonIcons_OqsO",copyButtonIcon:"copyButtonIcon_PgCn",copyButtonSuccessIcon:"copyButtonSuccessIcon_bsQG"};function ee(e){let{code:t,className:n}=e,[r,a]=(0,i.useState)(!1),o=(0,i.useRef)(void 0),c=(0,i.useCallback)(()=>{(0,Y.Z)(t),a(!0),o.current=window.setTimeout(()=>{a(!1)},1e3)},[t]);return(0,i.useEffect)(()=>()=>window.clearTimeout(o.current),[]),(0,l.jsx)("button",{type:"button","aria-label":r?(0,d.I)({id:"theme.CodeBlock.copied",message:"Copied",description:"The copied button label on code blocks"}):(0,d.I)({id:"theme.CodeBlock.copyButtonAriaLabel",message:"Copy code to clipboard",description:"The ARIA label for copy code blocks button"}),title:(0,d.I)({id:"theme.CodeBlock.copy",message:"Copy",description:"The copy button label on code blocks"}),className:(0,s.Z)("clean-btn",n,K.copyButton,r&&K.copyButtonCopied),onClick:c,children:(0,l.jsxs)("span",{className:K.copyButtonIcons,"aria-hidden":"true",children:[(0,l.jsx)(X,{className:K.copyButtonIcon}),(0,l.jsx)(J,{className:K.copyButtonSuccessIcon})]})})}function et(e){return(0,l.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,l.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 en={wordWrapButtonIcon:"wordWrapButtonIcon_MQXS",wordWrapButtonEnabled:"wordWrapButtonEnabled_TBIH"};function er(e){let{className:t,onClick:n,isEnabled:r}=e,a=(0,d.I)({id:"theme.CodeBlock.wordWrapToggle",message:"Toggle word wrap",description:"The title attribute for toggle word wrapping button of code block lines"});return(0,l.jsx)("button",{type:"button",onClick:n,className:(0,s.Z)("clean-btn",t,r&&en.wordWrapButtonEnabled),"aria-label":a,title:a,children:(0,l.jsx)(et,{className:en.wordWrapButtonIcon,"aria-hidden":"true"})})}function ea(e){var t,n,r;let{children:a,className:o="",metastring:c,title:d,showLineNumbers:u,language:m}=e,{prism:{defaultLanguage:h,magicComments:f}}=(0,x.L)();let p=(t=m??function(e){let t=e.split(" ").find(e=>e.startsWith("language-"));return t?.replace(/language-/,"")}(o)??h,t?.toLowerCase()),j=g(),v=function(){let[e,t]=(0,i.useState)(!1),[n,r]=(0,i.useState)(!1),a=(0,i.useRef)(null),l=(0,i.useCallback)(()=>{let n=a.current.querySelector("code");e?n.removeAttribute("style"):(n.style.whiteSpace="pre-wrap",n.style.overflowWrap="anywhere"),t(e=>!e)},[a,e]),s=(0,i.useCallback)(()=>{let{scrollWidth:e,clientWidth:t}=a.current;r(e>t||a.current.querySelector("code").hasAttribute("style"))},[a]);return!function(e,t){let[n,r]=(0,i.useState)(),a=(0,i.useCallback)(()=>{r(e.current?.closest("[role=tabpanel][hidden]"))},[e,r]);(0,i.useEffect)(()=>{a()},[a]),!function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:W,r=(0,V.zX)(t),a=(0,V.Ql)(n);(0,i.useEffect)(()=>{let t=new MutationObserver(r);return e&&t.observe(e,a),()=>t.disconnect()},[e,r,a])}(n,e=>{e.forEach(e=>{"attributes"===e.type&&"hidden"===e.attributeName&&(t(),a())})},{attributes:!0,characterData:!1,childList:!1,subtree:!1})}(a,s),(0,i.useEffect)(()=>{s()},[e,s]),(0,i.useEffect)(()=>(window.addEventListener("resize",s,{passive:!0}),()=>{window.removeEventListener("resize",s)}),[s]),{codeBlockRef:a,isEnabled:e,isCodeScrollable:n,toggle:l}}();let b=(n=c,(n?.match(H)?.groups.title??"")||d),{lineClassNames:Z,code:N}=function(e,t){let n=e.replace(/\n$/,""),{language:r,magicComments:a,metastring:l}=t;if(l&&R.test(l)){let e=l.match(R).groups.range;if(0===a.length)throw Error(`A highlight range has been given in code block's metastring (\`\`\` ${l}), but no magic comment config is available. Docusaurus applies the first magic comment entry's className for metastring ranges.`);let t=a[0].className;return{lineClassNames:Object.fromEntries(A()(e).filter(e=>e>0).map(e=>[e-1,[t]])),code:n}}if(void 0===r)return{lineClassNames:{},code:n};let i=function(e,t){switch(e){case"js":case"javascript":case"ts":case"typescript":return z(["js","jsBlock"],t);case"jsx":case"tsx":return z(["js","jsBlock","jsx"],t);case"html":return z(["js","jsBlock","html"],t);case"python":case"py":case"bash":return z(["bash"],t);case"markdown":case"md":return z(["html","jsx","bash"],t);case"tex":case"latex":case"matlab":return z(["tex"],t);case"lua":case"haskell":case"sql":return z(["lua"],t);case"wasm":return z(["wasm"],t);case"vb":case"vba":case"visual-basic":return z(["vb","rem"],t);case"vbnet":return z(["vbnet","rem"],t);case"batch":return z(["rem"],t);case"basic":return z(["rem","f90"],t);case"fsharp":return z(["js","ml"],t);case"ocaml":case"sml":return z(["ml"],t);case"fortran":return z(["f90"],t);case"cobol":return z(["cobol"],t);default:return z(S,t)}}(r,a),s=n.split("\n"),o=Object.fromEntries(a.map(e=>[e.className,{start:0,range:""}])),c=Object.fromEntries(a.filter(e=>e.line).map(e=>{let{className:t,line:n}=e;return[n,t]})),d=Object.fromEntries(a.filter(e=>e.block).map(e=>{let{className:t,block:n}=e;return[n.start,t]})),u=Object.fromEntries(a.filter(e=>e.block).map(e=>{let{className:t,block:n}=e;return[n.end,t]}));for(let e=0;e<s.length;){let t=s[e].match(i);if(!t){e+=1;continue}let n=t.slice(1).find(e=>void 0!==e);c[n]?o[c[n]].range+=`${e},`:d[n]?o[d[n]].start=e:u[n]&&(o[u[n]].range+=`${o[u[n]].start}-${e-1},`),s.splice(e,1)}n=s.join("\n");let m={};return Object.entries(o).forEach(e=>{let[t,{range:n}]=e;A()(n).forEach(e=>{m[e]??=[],m[e].push(t)})}),{lineClassNames:m,code:n}}(a,{metastring:c,language:p,magicComments:f});let w=u??(r=c,!!r?.includes("showLineNumbers"));return(0,l.jsxs)(U,{as:"div",className:(0,s.Z)(o,p&&!o.includes(`language-${p}`)&&`language-${p}`),children:[b&&(0,l.jsx)("div",{className:F.codeBlockTitle,children:b}),(0,l.jsxs)("div",{className:F.codeBlockContent,children:[(0,l.jsx)(G.y$,{theme:j,code:N,language:p??"text",children:e=>{let{className:t,style:n,tokens:r,getLineProps:a,getTokenProps:i}=e;return(0,l.jsx)("pre",{tabIndex:0,ref:v.codeBlockRef,className:(0,s.Z)(t,F.codeBlock,"thin-scrollbar"),style:n,children:(0,l.jsx)("code",{className:(0,s.Z)(F.codeBlockLines,w&&F.codeBlockLinesWithNumbering),children:r.map((e,t)=>(0,l.jsx)(Q,{line:e,getLineProps:a,getTokenProps:i,classNames:Z[t],showLineNumbers:w},t))})})}}),(0,l.jsxs)("div",{className:F.buttonGroup,children:[(v.isEnabled||v.isCodeScrollable)&&(0,l.jsx)(er,{className:F.codeButton,onClick:()=>v.toggle(),isEnabled:v.isEnabled}),(0,l.jsx)(ee,{className:F.codeButton,code:N})]})]})]})}let el=(r=function(e){var t;let{children:n,...r}=e,a=(0,o.Z)();let s=(t=n,i.Children.toArray(t).some(e=>(0,i.isValidElement)(e))?t:Array.isArray(t)?t.join(""):t),c="string"==typeof s?ea:D;return(0,l.jsx)(c,{...r,children:s},String(a))},function(e){return e.live?(0,l.jsx)(L,{scope:T,...e}):(0,l.jsx)(r,{...e})});function ei(e){return(0,l.jsx)(el,{...e})}}}]);